From c3c3d99449e5c415f65bb56671eb15d6dd5088ea Mon Sep 17 00:00:00 2001 From: weijiage Date: Fri, 21 Apr 2023 00:33:48 +0530 Subject: [PATCH 1/2] add UDP telemetry support --- config.go | 10 + defaults.go | 2 + go.mod | 50 +- go.sum | 1137 +- main.go | 11 +- .../iosxr/telemetry-proto/telemetry.pb.go | 758 - .../iosxr/telemetry-proto/telemetryxr.pb.go | 817 + .../{telemetry.proto => telemetryxr.proto} | 6 +- sample-config/udp.conf | 20 + schema/agent.pb.go | 5860 ++ schema/agent.proto | 352 + schema/agentd.pb.go | 2066 + schema/agentd.proto | 39 + schema/alarmd_oc.pb.go | 1255 + schema/alarmd_oc.proto | 26 + schema/am-if-oc_render.pb.go | 5004 ++ schema/am-if-oc_render.proto | 101 + schema/ancpd_oc.pb.go | 1608 + schema/ancpd_oc.proto | 33 + schema/authd_oc.pb.go | 10947 ++++ schema/authd_oc.proto | 238 + schema/bbe-smgd_ancp_stats_oc.pb.go | 1335 + schema/bbe-smgd_ancp_stats_oc.proto | 26 + schema/bbe-smgd_pppoe_stats_oc.pb.go | 2113 + schema/bbe-smgd_pppoe_stats_oc.proto | 46 + schema/bbe-smgd_rsmon_debug_oc.pb.go | 1819 + schema/bbe-smgd_rsmon_debug_oc.proto | 34 + schema/bbe-smgd_rsmon_stats_oc.pb.go | 1821 + schema/bbe-smgd_rsmon_stats_oc.proto | 34 + schema/bbe-smgd_smd_queue_stats_oc.pb.go | 4696 ++ schema/bbe-smgd_smd_queue_stats_oc.proto | 110 + .../bbe-smgd_sub_mgmt_network_stats_oc.pb.go | 10330 ++++ .../bbe-smgd_sub_mgmt_network_stats_oc.proto | 240 + schema/bbe-statsd-telemetry_oc.pb.go | 8995 +++ schema/bbe-statsd-telemetry_oc.proto | 160 + schema/chassisd_oc.pb.go | 5591 ++ schema/chassisd_oc.proto | 100 + schema/cmerror.pb.go | 1882 + schema/cmerror.proto | 134 + schema/cmerror_data.pb.go | 1585 + schema/cmerror_data.proto | 115 + schema/cosd_oc.pb.go | 2271 + schema/cosd_oc.proto | 41 + schema/cpu_memory_utilization.pb.go | 1066 + schema/cpu_memory_utilization.proto | 94 + schema/dcd_oc.pb.go | 1139 + schema/dcd_oc.proto | 24 + schema/eventd.pb.go | 1794 + schema/eventd.proto | 36 + schema/fabric.pb.go | 1816 + schema/fabric.proto | 127 + schema/fibtd-telemetry_oc.pb.go | 8023 +++ schema/fibtd-telemetry_oc.proto | 134 + schema/firewall.pb.go | 2336 + schema/firewall.proto | 154 + schema/go.mod | 17 + schema/go.sum | 50 + schema/inline_jflow.pb.go | 4269 ++ schema/inline_jflow.proto | 220 + schema/ipsec_telemetry.pb.go | 2431 + schema/ipsec_telemetry.proto | 177 + schema/jdhcpd_oc.pb.go | 17866 ++++++ schema/jdhcpd_oc.proto | 395 + schema/jdiameterd_render.pb.go | 3452 ++ schema/jdiameterd_render.proto | 65 + schema/jkdsd_cpu_oc.pb.go | 1471 + schema/jkdsd_cpu_oc.proto | 31 + schema/jkdsd_oc.pb.go | 1295 + schema/jkdsd_oc.proto | 29 + schema/jkhmd_oc.pb.go | 8490 +++ schema/jkhmd_oc.proto | 168 + schema/jkhmd_resiliency_render.pb.go | 2165 + schema/jkhmd_resiliency_render.proto | 47 + schema/jl2tpd_oc.pb.go | 1767 + schema/jl2tpd_oc.proto | 37 + schema/jpppd_oc.pb.go | 1492 + schema/jpppd_oc.proto | 30 + ...junos-xmlproxyd_junos-rsvp-interface.pb.go | 2387 + ...junos-xmlproxyd_junos-rsvp-interface.proto | 48 + ...unos-xmlproxyd_junos-rtg-task-memory.pb.go | 4904 ++ ...unos-xmlproxyd_junos-rtg-task-memory.proto | 96 + schema/kernel-ifstate-render.pb.go | 2319 + schema/kernel-ifstate-render.proto | 51 + schema/kmd_render.pb.go | 1625 + schema/kmd_render.proto | 38 + schema/l2ald_bd_render.pb.go | 1374 + schema/l2ald_bd_render.proto | 29 + schema/l2ald_evpn_render.pb.go | 1729 + schema/l2ald_evpn_render.proto | 33 + schema/l2ald_fdb_render.pb.go | 3414 + schema/l2ald_fdb_render.proto | 65 + schema/l2ald_oc.pb.go | 1728 + schema/l2ald_oc.proto | 33 + schema/l2ald_oc_intf.pb.go | 2225 + schema/l2ald_oc_intf.proto | 41 + schema/l2cpd_oc.pb.go | 5891 ++ schema/l2cpd_oc.proto | 109 + schema/lacpd_oc.pb.go | 3505 ++ schema/lacpd_oc.proto | 68 + schema/ldp_lsp_ingress_stats.pb.go | 1001 + schema/ldp_lsp_ingress_stats.proto | 46 + schema/ldp_lsp_transit_stats.pb.go | 1001 + schema/ldp_lsp_transit_stats.proto | 46 + schema/ldp_p2mp_lsp_stats.pb.go | 1141 + schema/ldp_p2mp_lsp_stats.proto | 52 + schema/ldp_p2mp_per_if_egress.pb.go | 1025 + schema/ldp_p2mp_per_if_egress.proto | 45 + schema/ldp_p2mp_per_if_ingress.pb.go | 1026 + schema/ldp_p2mp_per_if_ingress.proto | 45 + schema/logical_port.pb.go | 3363 + schema/logical_port.proto | 227 + schema/lsp_stats.pb.go | 817 + schema/lsp_stats.proto | 80 + schema/mib2d_arp_oc.pb.go | 1642 + schema/mib2d_arp_oc.proto | 33 + schema/mib2d_nd6_oc.pb.go | 1677 + schema/mib2d_nd6_oc.proto | 34 + schema/mib2d_oc.pb.go | 11062 ++++ schema/mib2d_oc.proto | 196 + schema/npu_memory_utilization.pb.go | 1342 + schema/npu_memory_utilization.proto | 102 + schema/npu_utilization.pb.go | 1483 + schema/npu_utilization.proto | 102 + schema/optics.pb.go | 2563 + schema/optics.proto | 180 + schema/packet_capture.pb.go | 1439 + schema/packet_capture.proto | 30 + schema/packet_stats.pb.go | 1241 + schema/packet_stats.proto | 88 + schema/pbj.pb.go | 684 + schema/pbj.proto | 76 + schema/pfe_ddos_oc.pb.go | 3482 ++ schema/pfe_ddos_oc.proto | 68 + schema/pfe_export_mon_oc.pb.go | 2868 + schema/pfe_export_mon_oc.proto | 57 + schema/pfe_ifl_oc.pb.go | 1843 + schema/pfe_ifl_oc.proto | 39 + schema/pfe_npu_resource.pb.go | 491 + schema/pfe_npu_resource.proto | 13 + schema/pfe_per_prefix_v4_stats.pb.go | 1494 + schema/pfe_per_prefix_v4_stats.proto | 29 + schema/pfe_per_prefix_v6_stats.pb.go | 1494 + schema/pfe_per_prefix_v6_stats.proto | 29 + schema/pfe_port_oc.pb.go | 1437 + schema/pfe_port_oc.proto | 33 + schema/pfe_port_qstats_ext.pb.go | 1348 + schema/pfe_port_qstats_ext.proto | 28 + schema/pfed_oc.pb.go | 1064 + schema/pfed_oc.proto | 26 + schema/port.pb.go | 3184 + schema/port.proto | 226 + schema/port_exp.pb.go | 612 + schema/port_exp.proto | 63 + schema/qmon.pb.go | 1761 + schema/qmon.proto | 79 + schema/rmopd_render.pb.go | 15694 +++++ schema/rmopd_render.proto | 314 + schema/rpd_bgp_rib_oc.pb.go | 28567 +++++++++ schema/rpd_bgp_rib_oc.proto | 507 + schema/rpd_evpn_global_render.pb.go | 1547 + schema/rpd_evpn_global_render.proto | 31 + schema/rpd_ipv6_ra_oc.pb.go | 782 + schema/rpd_ipv6_ra_oc.proto | 20 + schema/rpd_isis_oc.pb.go | 40701 ++++++++++++ schema/rpd_isis_oc.proto | 677 + schema/rpd_ldp_oc.pb.go | 10520 ++++ schema/rpd_ldp_oc.proto | 176 + schema/rpd_loc_rib_oc.pb.go | 3266 + schema/rpd_loc_rib_oc.proto | 58 + schema/rpd_ni_bgp_oc.pb.go | 51294 ++++++++++++++++ schema/rpd_ni_bgp_oc.proto | 883 + schema/rpd_ni_evpn_render.pb.go | 5728 ++ schema/rpd_ni_evpn_render.proto | 106 + schema/rpd_rsvp_oc.pb.go | 14618 +++++ schema/rpd_rsvp_oc.proto | 267 + schema/rpd_srte_policy_oc.pb.go | 6092 ++ schema/rpd_srte_policy_oc.proto | 105 + schema/rpd_te_oc.pb.go | 18637 ++++++ schema/rpd_te_oc.proto | 321 + schema/session_telemetry.pb.go | 1717 + schema/session_telemetry.proto | 80 + schema/smid_oc.pb.go | 8189 +++ schema/smid_oc.proto | 155 + schema/spu_cpu_util.pb.go | 1036 + schema/spu_cpu_util.proto | 22 + schema/spu_flow_stats.pb.go | 3994 ++ schema/spu_flow_stats.proto | 81 + schema/sr_stats_per_if_egress.pb.go | 1077 + schema/sr_stats_per_if_egress.proto | 48 + schema/sr_stats_per_if_ingress.pb.go | 1077 + schema/sr_stats_per_if_ingress.proto | 48 + schema/sr_stats_per_sid.pb.go | 1062 + schema/sr_stats_per_sid.proto | 50 + schema/sr_stats_per_sid_egress.pb.go | 1069 + schema/sr_stats_per_sid_egress.proto | 55 + schema/sr_te_bsid_stats.pb.go | 1082 + schema/sr_te_bsid_stats.proto | 53 + schema/sr_te_ingress_tunnel_stats.pb.go | 1000 + schema/sr_te_ingress_tunnel_stats.proto | 47 + schema/sr_te_ip_stats.pb.go | 1038 + schema/sr_te_ip_stats.proto | 50 + schema/sr_te_per_lsp_ingress_stats.pb.go | 1756 + schema/sr_te_per_lsp_ingress_stats.proto | 34 + schema/sr_te_per_lsp_transit_stats.pb.go | 1756 + schema/sr_te_per_lsp_transit_stats.proto | 34 + schema/sr_te_transit_tunnel_stats.pb.go | 1000 + schema/sr_te_transit_tunnel_stats.proto | 47 + schema/svcset_telemetry.pb.go | 3550 ++ schema/svcset_telemetry.proto | 133 + schema/telemetry_top.pb.go | 1661 + schema/telemetry_top.proto | 99 + schema/telemetry_top/telemetry_top.pb.go | 294 + schema/telemetry_top/telemetry_top.proto | 99 + schema/vrrpd_oc.pb.go | 9690 +++ schema/vrrpd_oc.proto | 166 + .../xmlproxyd_show_local_interface_OC.pb.go | 3104 + .../xmlproxyd_show_local_interface_OC.proto | 67 + subscribe_cisco_iosxr.go | 2 +- subscribe_cisco_iosxr_test.go | 2 +- udp.go | 508 + vendor/github.com/Shopify/sarama/go.mod | 34 - vendor/github.com/Shopify/sarama/go.sum | 81 - .../github.com/bufbuild/protocompile/LICENSE | 201 + .../github.com/bufbuild/protocompile/Makefile | 159 + .../bufbuild/protocompile/README.md | 91 + .../bufbuild/protocompile/ast/doc.go | 75 + .../bufbuild/protocompile/ast/enum.go | 165 + .../bufbuild/protocompile/ast/field.go | 672 + .../bufbuild/protocompile/ast/file.go | 277 + .../bufbuild/protocompile/ast/file_info.go | 676 + .../bufbuild/protocompile/ast/identifiers.go | 148 + .../bufbuild/protocompile/ast/message.go | 213 + .../bufbuild/protocompile/ast/no_source.go | 119 + .../bufbuild/protocompile/ast/node.go | 139 + .../bufbuild/protocompile/ast/options.go | 373 + .../bufbuild/protocompile/ast/ranges.go | 319 + .../bufbuild/protocompile/ast/service.go | 286 + .../bufbuild/protocompile/ast/values.go | 558 + .../bufbuild/protocompile/ast/walk.go | 910 + .../bufbuild/protocompile/compiler.go | 648 + .../github.com/bufbuild/protocompile/doc.go | 82 + .../github.com/bufbuild/protocompile/go.work | 7 + .../bufbuild/protocompile/go.work.sum | 408 + .../protocompile/internal/message_context.go | 98 + .../bufbuild/protocompile/internal/norace.go | 19 + .../bufbuild/protocompile/internal/options.go | 59 + .../bufbuild/protocompile/internal/race.go | 19 + .../bufbuild/protocompile/internal/tags.go | 243 + .../bufbuild/protocompile/internal/types.go | 35 + .../bufbuild/protocompile/internal/util.go | 119 + .../protocompile/linker/descriptors.go | 1880 + .../bufbuild/protocompile/linker/doc.go | 48 + .../bufbuild/protocompile/linker/files.go | 376 + .../bufbuild/protocompile/linker/linker.go | 183 + .../protocompile/linker/pathkey_no_unsafe.go | 35 + .../protocompile/linker/pathkey_unsafe.go | 36 + .../bufbuild/protocompile/linker/resolve.go | 825 + .../bufbuild/protocompile/linker/symbols.go | 567 + .../bufbuild/protocompile/linker/validate.go | 283 + .../bufbuild/protocompile/options/options.go | 1611 + .../bufbuild/protocompile/parser/ast.go | 216 + .../bufbuild/protocompile/parser/clone.go | 182 + .../bufbuild/protocompile/parser/doc.go | 25 + .../bufbuild/protocompile/parser/errors.go | 22 + .../bufbuild/protocompile/parser/lexer.go | 760 + .../bufbuild/protocompile/parser/parser.go | 193 + .../bufbuild/protocompile/parser/proto.y | 1219 + .../bufbuild/protocompile/parser/proto.y.go | 2408 + .../bufbuild/protocompile/parser/result.go | 928 + .../bufbuild/protocompile/parser/validate.go | 499 + .../bufbuild/protocompile/protoutil/protos.go | 261 + .../bufbuild/protocompile/reporter/errors.go | 68 + .../protocompile/reporter/reporter.go | 232 + .../bufbuild/protocompile/resolver.go | 194 + .../sourceinfo/source_code_info.go | 814 + .../bufbuild/protocompile/std_imports.go | 62 + .../bufbuild/protocompile/walk/walk.go | 445 + vendor/github.com/gogo/protobuf/AUTHORS | 15 + vendor/github.com/gogo/protobuf/CONTRIBUTORS | 23 + vendor/github.com/gogo/protobuf/LICENSE | 35 + .../{golang => gogo}/protobuf/proto/Makefile | 4 +- .../{golang => gogo}/protobuf/proto/clone.go | 51 +- .../gogo/protobuf/proto/custom_gogo.go | 39 + .../github.com/gogo/protobuf/proto/decode.go | 427 + .../gogo/protobuf/proto/deprecated.go | 63 + .../github.com/gogo/protobuf/proto/discard.go | 350 + .../gogo/protobuf/proto/duration.go | 100 + .../gogo/protobuf/proto/duration_gogo.go | 49 + .../github.com/gogo/protobuf/proto/encode.go | 205 + .../gogo/protobuf/proto/encode_gogo.go | 33 + .../{golang => gogo}/protobuf/proto/equal.go | 30 +- .../gogo/protobuf/proto/extensions.go | 605 + .../gogo/protobuf/proto/extensions_gogo.go | 389 + .../{golang => gogo}/protobuf/proto/lib.go | 192 +- .../gogo/protobuf/proto/lib_gogo.go | 50 + .../protobuf/proto/message_set.go | 138 +- .../gogo/protobuf/proto/pointer_reflect.go | 357 + .../protobuf/proto/pointer_reflect_gogo.go | 59 + .../gogo/protobuf/proto/pointer_unsafe.go | 308 + .../protobuf/proto/pointer_unsafe_gogo.go | 56 + .../gogo/protobuf/proto/properties.go | 610 + .../gogo/protobuf/proto/properties_gogo.go | 36 + .../gogo/protobuf/proto/skip_gogo.go | 119 + .../gogo/protobuf/proto/table_marshal.go | 3009 + .../gogo/protobuf/proto/table_marshal_gogo.go | 388 + .../gogo/protobuf/proto/table_merge.go | 676 + .../gogo/protobuf/proto/table_unmarshal.go | 2249 + .../protobuf/proto/table_unmarshal_gogo.go | 385 + .../{golang => gogo}/protobuf/proto/text.go | 192 +- .../gogo/protobuf/proto/text_gogo.go | 57 + .../protobuf/proto/text_parser.go | 233 +- .../gogo/protobuf/proto/timestamp.go | 113 + .../gogo/protobuf/proto/timestamp_gogo.go | 49 + .../gogo/protobuf/proto/wrappers.go | 1888 + .../gogo/protobuf/proto/wrappers_gogo.go | 113 + .../protoc-gen-gogo}/descriptor/Makefile | 9 +- .../protoc-gen-gogo/descriptor/descriptor.go | 118 + .../descriptor/descriptor.pb.go | 2865 + .../descriptor/descriptor_gostring.gen.go | 752 + .../protoc-gen-gogo/descriptor/helper.go | 390 + vendor/github.com/golang/protobuf/LICENSE | 3 - .../golang/protobuf/jsonpb/decode.go | 524 + .../golang/protobuf/jsonpb/encode.go | 559 + .../github.com/golang/protobuf/jsonpb/json.go | 69 + .../golang/protobuf/proto/buffer.go | 324 + .../golang/protobuf/proto/decode.go | 970 - .../golang/protobuf/proto/defaults.go | 63 + .../golang/protobuf/proto/deprecated.go | 113 + .../golang/protobuf/proto/discard.go | 159 +- .../golang/protobuf/proto/encode.go | 1362 - .../golang/protobuf/proto/extensions.go | 759 +- .../golang/protobuf/proto/pointer_reflect.go | 484 - .../golang/protobuf/proto/pointer_unsafe.go | 270 - .../golang/protobuf/proto/properties.go | 976 +- .../github.com/golang/protobuf/proto/proto.go | 167 + .../golang/protobuf/proto/registry.go | 317 + .../golang/protobuf/proto/text_decode.go | 801 + .../golang/protobuf/proto/text_encode.go | 560 + .../github.com/golang/protobuf/proto/wire.go | 78 + .../golang/protobuf/proto/wrappers.go | 34 + .../protoc-gen-go/descriptor/descriptor.pb.go | 2363 +- .../protoc-gen-go/descriptor/descriptor.proto | 849 - .../github.com/golang/protobuf/ptypes/any.go | 220 +- .../golang/protobuf/ptypes/any/any.pb.go | 220 +- .../golang/protobuf/ptypes/any/any.proto | 149 - .../github.com/golang/protobuf/ptypes/doc.go | 41 +- .../golang/protobuf/ptypes/duration.go | 120 +- .../protobuf/ptypes/duration/duration.pb.go | 187 +- .../protobuf/ptypes/duration/duration.proto | 117 - .../golang/protobuf/ptypes/regen.sh | 43 - .../golang/protobuf/ptypes/timestamp.go | 124 +- .../protobuf/ptypes/timestamp/timestamp.pb.go | 198 +- .../protobuf/ptypes/timestamp/timestamp.proto | 133 - vendor/github.com/golang/snappy/AUTHORS | 2 + vendor/github.com/golang/snappy/CONTRIBUTORS | 2 + vendor/github.com/golang/snappy/decode.go | 4 + .../github.com/golang/snappy/decode_arm64.s | 494 + .../snappy/{decode_amd64.go => decode_asm.go} | 1 + .../github.com/golang/snappy/decode_other.go | 24 +- vendor/github.com/golang/snappy/encode.go | 4 + .../github.com/golang/snappy/encode_arm64.s | 722 + .../snappy/{encode_amd64.go => encode_asm.go} | 1 + .../github.com/golang/snappy/encode_other.go | 2 +- vendor/github.com/golang/snappy/go.mod | 1 - vendor/github.com/gorilla/mux/go.mod | 3 - vendor/github.com/hashicorp/go-uuid/go.mod | 1 - vendor/github.com/jhump/protoreflect/LICENSE | 202 + .../jhump/protoreflect/desc/cache.go | 57 + .../jhump/protoreflect/desc/convert.go | 296 + .../jhump/protoreflect/desc/descriptor.go | 1835 + .../protoreflect/desc/descriptor_no_unsafe.go | 30 + .../protoreflect/desc/descriptor_unsafe.go | 59 + .../github.com/jhump/protoreflect/desc/doc.go | 62 + .../jhump/protoreflect/desc/imports.go | 360 + .../desc/internal/proto3_optional.go | 75 + .../protoreflect/desc/internal/registry.go | 48 + .../protoreflect/desc/internal/source_info.go | 107 + .../jhump/protoreflect/desc/internal/util.go | 293 + .../jhump/protoreflect/desc/load.go | 264 + .../jhump/protoreflect/desc/protoparse/ast.go | 724 + .../protoreflect/desc/protoparse/ast/doc.go | 27 + .../protoreflect/desc/protoparse/ast/enum.go | 154 + .../protoreflect/desc/protoparse/ast/field.go | 659 + .../protoreflect/desc/protoparse/ast/file.go | 234 + .../desc/protoparse/ast/identifiers.go | 134 + .../desc/protoparse/ast/message.go | 199 + .../desc/protoparse/ast/no_source.go | 103 + .../protoreflect/desc/protoparse/ast/node.go | 200 + .../desc/protoparse/ast/options.go | 361 + .../protoreflect/desc/protoparse/ast/print.go | 86 + .../desc/protoparse/ast/ranges.go | 305 + .../desc/protoparse/ast/service.go | 273 + .../desc/protoparse/ast/source_pos.go | 29 + .../desc/protoparse/ast/values.go | 569 + .../protoreflect/desc/protoparse/ast/walk.go | 492 + .../jhump/protoreflect/desc/protoparse/doc.go | 10 + .../protoreflect/desc/protoparse/errors.go | 117 + .../protoreflect/desc/protoparse/parser.go | 680 + .../desc/protoparse/resolve_files.go | 175 + .../desc/protoparse/test-source-info.txt | 6401 ++ .../protoreflect/desc/sourceinfo/locations.go | 207 + .../protoreflect/desc/sourceinfo/registry.go | 269 + .../protoreflect/desc/sourceinfo/wrappers.go | 629 + .../jhump/protoreflect/desc/wrap.go | 208 + .../protoreflect/internal/standard_files.go | 127 + .../protoreflect/internal/unrecognized.go | 20 + .../pbutil/Makefile | 7 + .../prometheus/client_model/go/metrics.pb.go | 477 +- vendor/golang.org/x/net/AUTHORS | 3 - vendor/golang.org/x/net/CONTRIBUTORS | 3 - vendor/golang.org/x/net/context/context.go | 6 +- vendor/golang.org/x/net/context/go17.go | 14 +- vendor/golang.org/x/net/context/pre_go17.go | 10 +- .../golang.org/x/net/http/httpguts/httplex.go | 54 +- .../x/net/http2/client_conn_pool.go | 50 +- vendor/golang.org/x/net/http2/errors.go | 2 +- vendor/golang.org/x/net/http2/flow.go | 88 +- vendor/golang.org/x/net/http2/frame.go | 96 +- vendor/golang.org/x/net/http2/go118.go | 17 + vendor/golang.org/x/net/http2/headermap.go | 18 + vendor/golang.org/x/net/http2/hpack/encode.go | 7 +- vendor/golang.org/x/net/http2/hpack/hpack.go | 97 +- .../golang.org/x/net/http2/hpack/huffman.go | 125 +- .../x/net/http2/hpack/static_table.go | 188 + vendor/golang.org/x/net/http2/hpack/tables.go | 78 +- vendor/golang.org/x/net/http2/http2.go | 22 +- vendor/golang.org/x/net/http2/not_go118.go | 17 + vendor/golang.org/x/net/http2/pipe.go | 11 + vendor/golang.org/x/net/http2/server.go | 465 +- vendor/golang.org/x/net/http2/transport.go | 1630 +- vendor/golang.org/x/net/http2/writesched.go | 4 +- .../x/net/http2/writesched_priority.go | 9 +- .../x/net/http2/writesched_random.go | 6 +- vendor/golang.org/x/net/idna/go118.go | 14 + vendor/golang.org/x/net/idna/idna10.0.0.go | 6 +- vendor/golang.org/x/net/idna/idna9.0.0.go | 4 +- vendor/golang.org/x/net/idna/pre_go118.go | 12 + vendor/golang.org/x/net/idna/punycode.go | 36 +- vendor/golang.org/x/net/idna/trieval.go | 34 +- vendor/golang.org/x/net/trace/histogram.go | 2 +- vendor/golang.org/x/net/trace/trace.go | 2 +- vendor/golang.org/x/sync/LICENSE | 27 + vendor/golang.org/x/sync/PATENTS | 22 + .../golang.org/x/sync/semaphore/semaphore.go | 136 + vendor/golang.org/x/sys/LICENSE | 27 + vendor/golang.org/x/sys/PATENTS | 22 + vendor/golang.org/x/sys/unix/README.md | 184 + .../golang.org/x/sys/unix/affinity_linux.go | 86 + vendor/golang.org/x/sys/unix/aliases.go | 15 + vendor/golang.org/x/sys/unix/asm_aix_ppc64.s | 18 + vendor/golang.org/x/sys/unix/asm_bsd_386.s | 29 + vendor/golang.org/x/sys/unix/asm_bsd_amd64.s | 29 + vendor/golang.org/x/sys/unix/asm_bsd_arm.s | 29 + vendor/golang.org/x/sys/unix/asm_bsd_arm64.s | 29 + vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s | 31 + .../golang.org/x/sys/unix/asm_bsd_riscv64.s | 29 + vendor/golang.org/x/sys/unix/asm_linux_386.s | 66 + .../golang.org/x/sys/unix/asm_linux_amd64.s | 58 + vendor/golang.org/x/sys/unix/asm_linux_arm.s | 57 + .../golang.org/x/sys/unix/asm_linux_arm64.s | 53 + .../golang.org/x/sys/unix/asm_linux_loong64.s | 54 + .../golang.org/x/sys/unix/asm_linux_mips64x.s | 57 + .../golang.org/x/sys/unix/asm_linux_mipsx.s | 55 + .../golang.org/x/sys/unix/asm_linux_ppc64x.s | 45 + .../golang.org/x/sys/unix/asm_linux_riscv64.s | 49 + .../golang.org/x/sys/unix/asm_linux_s390x.s | 57 + .../x/sys/unix/asm_openbsd_mips64.s | 30 + .../golang.org/x/sys/unix/asm_solaris_amd64.s | 18 + vendor/golang.org/x/sys/unix/asm_zos_s390x.s | 426 + .../golang.org/x/sys/unix/bluetooth_linux.go | 36 + vendor/golang.org/x/sys/unix/cap_freebsd.go | 196 + vendor/golang.org/x/sys/unix/constants.go | 14 + vendor/golang.org/x/sys/unix/dev_aix_ppc.go | 27 + vendor/golang.org/x/sys/unix/dev_aix_ppc64.go | 29 + vendor/golang.org/x/sys/unix/dev_darwin.go | 24 + vendor/golang.org/x/sys/unix/dev_dragonfly.go | 30 + vendor/golang.org/x/sys/unix/dev_freebsd.go | 30 + vendor/golang.org/x/sys/unix/dev_linux.go | 42 + vendor/golang.org/x/sys/unix/dev_netbsd.go | 29 + vendor/golang.org/x/sys/unix/dev_openbsd.go | 29 + vendor/golang.org/x/sys/unix/dev_zos.go | 29 + vendor/golang.org/x/sys/unix/dirent.go | 103 + vendor/golang.org/x/sys/unix/endian_big.go | 10 + vendor/golang.org/x/sys/unix/endian_little.go | 10 + vendor/golang.org/x/sys/unix/env_unix.go | 32 + vendor/golang.org/x/sys/unix/epoll_zos.go | 221 + vendor/golang.org/x/sys/unix/fcntl.go | 37 + vendor/golang.org/x/sys/unix/fcntl_darwin.go | 24 + .../x/sys/unix/fcntl_linux_32bit.go | 14 + vendor/golang.org/x/sys/unix/fdset.go | 30 + vendor/golang.org/x/sys/unix/fstatfs_zos.go | 164 + vendor/golang.org/x/sys/unix/gccgo.go | 60 + vendor/golang.org/x/sys/unix/gccgo_c.c | 45 + .../x/sys/unix/gccgo_linux_amd64.go | 21 + vendor/golang.org/x/sys/unix/ifreq_linux.go | 142 + vendor/golang.org/x/sys/unix/ioctl.go | 75 + vendor/golang.org/x/sys/unix/ioctl_linux.go | 233 + vendor/golang.org/x/sys/unix/ioctl_zos.go | 74 + vendor/golang.org/x/sys/unix/mkall.sh | 249 + vendor/golang.org/x/sys/unix/mkerrors.sh | 778 + vendor/golang.org/x/sys/unix/pagesize_unix.go | 16 + .../golang.org/x/sys/unix/pledge_openbsd.go | 163 + vendor/golang.org/x/sys/unix/ptrace_darwin.go | 12 + vendor/golang.org/x/sys/unix/ptrace_ios.go | 12 + vendor/golang.org/x/sys/unix/race.go | 31 + vendor/golang.org/x/sys/unix/race0.go | 26 + .../x/sys/unix/readdirent_getdents.go | 13 + .../x/sys/unix/readdirent_getdirentries.go | 20 + .../x/sys/unix/sockcmsg_dragonfly.go | 16 + .../golang.org/x/sys/unix/sockcmsg_linux.go | 85 + vendor/golang.org/x/sys/unix/sockcmsg_unix.go | 107 + .../x/sys/unix/sockcmsg_unix_other.go | 47 + vendor/golang.org/x/sys/unix/syscall.go | 87 + vendor/golang.org/x/sys/unix/syscall_aix.go | 600 + .../golang.org/x/sys/unix/syscall_aix_ppc.go | 54 + .../x/sys/unix/syscall_aix_ppc64.go | 85 + vendor/golang.org/x/sys/unix/syscall_bsd.go | 625 + .../golang.org/x/sys/unix/syscall_darwin.go | 831 + .../x/sys/unix/syscall_darwin_amd64.go | 51 + .../x/sys/unix/syscall_darwin_arm64.go | 51 + .../x/sys/unix/syscall_darwin_libSystem.go | 27 + .../x/sys/unix/syscall_dragonfly.go | 545 + .../x/sys/unix/syscall_dragonfly_amd64.go | 57 + .../golang.org/x/sys/unix/syscall_freebsd.go | 615 + .../x/sys/unix/syscall_freebsd_386.go | 72 + .../x/sys/unix/syscall_freebsd_amd64.go | 72 + .../x/sys/unix/syscall_freebsd_arm.go | 68 + .../x/sys/unix/syscall_freebsd_arm64.go | 68 + .../x/sys/unix/syscall_freebsd_riscv64.go | 68 + vendor/golang.org/x/sys/unix/syscall_hurd.go | 22 + .../golang.org/x/sys/unix/syscall_hurd_386.go | 29 + .../golang.org/x/sys/unix/syscall_illumos.go | 79 + vendor/golang.org/x/sys/unix/syscall_linux.go | 2492 + .../x/sys/unix/syscall_linux_386.go | 342 + .../x/sys/unix/syscall_linux_alarm.go | 14 + .../x/sys/unix/syscall_linux_amd64.go | 147 + .../x/sys/unix/syscall_linux_amd64_gc.go | 13 + .../x/sys/unix/syscall_linux_arm.go | 244 + .../x/sys/unix/syscall_linux_arm64.go | 195 + .../golang.org/x/sys/unix/syscall_linux_gc.go | 15 + .../x/sys/unix/syscall_linux_gc_386.go | 17 + .../x/sys/unix/syscall_linux_gc_arm.go | 14 + .../x/sys/unix/syscall_linux_gccgo_386.go | 31 + .../x/sys/unix/syscall_linux_gccgo_arm.go | 21 + .../x/sys/unix/syscall_linux_loong64.go | 222 + .../x/sys/unix/syscall_linux_mips64x.go | 191 + .../x/sys/unix/syscall_linux_mipsx.go | 203 + .../x/sys/unix/syscall_linux_ppc.go | 232 + .../x/sys/unix/syscall_linux_ppc64x.go | 118 + .../x/sys/unix/syscall_linux_riscv64.go | 180 + .../x/sys/unix/syscall_linux_s390x.go | 298 + .../x/sys/unix/syscall_linux_sparc64.go | 114 + .../golang.org/x/sys/unix/syscall_netbsd.go | 624 + .../x/sys/unix/syscall_netbsd_386.go | 38 + .../x/sys/unix/syscall_netbsd_amd64.go | 38 + .../x/sys/unix/syscall_netbsd_arm.go | 38 + .../x/sys/unix/syscall_netbsd_arm64.go | 38 + .../golang.org/x/sys/unix/syscall_openbsd.go | 390 + .../x/sys/unix/syscall_openbsd_386.go | 42 + .../x/sys/unix/syscall_openbsd_amd64.go | 42 + .../x/sys/unix/syscall_openbsd_arm.go | 42 + .../x/sys/unix/syscall_openbsd_arm64.go | 42 + .../x/sys/unix/syscall_openbsd_libc.go | 27 + .../x/sys/unix/syscall_openbsd_mips64.go | 39 + .../x/sys/unix/syscall_openbsd_ppc64.go | 42 + .../x/sys/unix/syscall_openbsd_riscv64.go | 42 + .../golang.org/x/sys/unix/syscall_solaris.go | 1133 + .../x/sys/unix/syscall_solaris_amd64.go | 28 + vendor/golang.org/x/sys/unix/syscall_unix.go | 589 + .../golang.org/x/sys/unix/syscall_unix_gc.go | 16 + .../x/sys/unix/syscall_unix_gc_ppc64x.go | 25 + .../x/sys/unix/syscall_zos_s390x.go | 1994 + vendor/golang.org/x/sys/unix/sysvshm_linux.go | 21 + vendor/golang.org/x/sys/unix/sysvshm_unix.go | 52 + .../x/sys/unix/sysvshm_unix_other.go | 14 + vendor/golang.org/x/sys/unix/timestruct.go | 77 + .../golang.org/x/sys/unix/unveil_openbsd.go | 42 + vendor/golang.org/x/sys/unix/xattr_bsd.go | 281 + .../golang.org/x/sys/unix/zerrors_aix_ppc.go | 1385 + .../x/sys/unix/zerrors_aix_ppc64.go | 1386 + .../x/sys/unix/zerrors_darwin_amd64.go | 1892 + .../x/sys/unix/zerrors_darwin_arm64.go | 1892 + .../x/sys/unix/zerrors_dragonfly_amd64.go | 1738 + .../x/sys/unix/zerrors_freebsd_386.go | 2043 + .../x/sys/unix/zerrors_freebsd_amd64.go | 2040 + .../x/sys/unix/zerrors_freebsd_arm.go | 2034 + .../x/sys/unix/zerrors_freebsd_arm64.go | 2034 + .../x/sys/unix/zerrors_freebsd_riscv64.go | 2148 + vendor/golang.org/x/sys/unix/zerrors_linux.go | 3473 ++ .../x/sys/unix/zerrors_linux_386.go | 829 + .../x/sys/unix/zerrors_linux_amd64.go | 829 + .../x/sys/unix/zerrors_linux_arm.go | 835 + .../x/sys/unix/zerrors_linux_arm64.go | 827 + .../x/sys/unix/zerrors_linux_loong64.go | 819 + .../x/sys/unix/zerrors_linux_mips.go | 836 + .../x/sys/unix/zerrors_linux_mips64.go | 836 + .../x/sys/unix/zerrors_linux_mips64le.go | 836 + .../x/sys/unix/zerrors_linux_mipsle.go | 836 + .../x/sys/unix/zerrors_linux_ppc.go | 888 + .../x/sys/unix/zerrors_linux_ppc64.go | 892 + .../x/sys/unix/zerrors_linux_ppc64le.go | 892 + .../x/sys/unix/zerrors_linux_riscv64.go | 816 + .../x/sys/unix/zerrors_linux_s390x.go | 891 + .../x/sys/unix/zerrors_linux_sparc64.go | 886 + .../x/sys/unix/zerrors_netbsd_386.go | 1780 + .../x/sys/unix/zerrors_netbsd_amd64.go | 1770 + .../x/sys/unix/zerrors_netbsd_arm.go | 1759 + .../x/sys/unix/zerrors_netbsd_arm64.go | 1770 + .../x/sys/unix/zerrors_openbsd_386.go | 1906 + .../x/sys/unix/zerrors_openbsd_amd64.go | 1906 + .../x/sys/unix/zerrors_openbsd_arm.go | 1906 + .../x/sys/unix/zerrors_openbsd_arm64.go | 1906 + .../x/sys/unix/zerrors_openbsd_mips64.go | 1906 + .../x/sys/unix/zerrors_openbsd_ppc64.go | 1905 + .../x/sys/unix/zerrors_openbsd_riscv64.go | 1904 + .../x/sys/unix/zerrors_solaris_amd64.go | 1557 + .../x/sys/unix/zerrors_zos_s390x.go | 860 + .../x/sys/unix/zptrace_armnn_linux.go | 42 + .../x/sys/unix/zptrace_linux_arm64.go | 17 + .../x/sys/unix/zptrace_mipsnn_linux.go | 51 + .../x/sys/unix/zptrace_mipsnnle_linux.go | 51 + .../x/sys/unix/zptrace_x86_linux.go | 81 + .../golang.org/x/sys/unix/zsyscall_aix_ppc.go | 1485 + .../x/sys/unix/zsyscall_aix_ppc64.go | 1443 + .../x/sys/unix/zsyscall_aix_ppc64_gc.go | 1192 + .../x/sys/unix/zsyscall_aix_ppc64_gccgo.go | 1070 + .../x/sys/unix/zsyscall_darwin_amd64.go | 2545 + .../x/sys/unix/zsyscall_darwin_amd64.s | 904 + .../x/sys/unix/zsyscall_darwin_arm64.go | 2545 + .../x/sys/unix/zsyscall_darwin_arm64.s | 904 + .../x/sys/unix/zsyscall_dragonfly_amd64.go | 1689 + .../x/sys/unix/zsyscall_freebsd_386.go | 1899 + .../x/sys/unix/zsyscall_freebsd_amd64.go | 1899 + .../x/sys/unix/zsyscall_freebsd_arm.go | 1899 + .../x/sys/unix/zsyscall_freebsd_arm64.go | 1899 + .../x/sys/unix/zsyscall_freebsd_riscv64.go | 1899 + .../x/sys/unix/zsyscall_illumos_amd64.go | 102 + .../golang.org/x/sys/unix/zsyscall_linux.go | 2174 + .../x/sys/unix/zsyscall_linux_386.go | 497 + .../x/sys/unix/zsyscall_linux_amd64.go | 664 + .../x/sys/unix/zsyscall_linux_arm.go | 612 + .../x/sys/unix/zsyscall_linux_arm64.go | 563 + .../x/sys/unix/zsyscall_linux_loong64.go | 487 + .../x/sys/unix/zsyscall_linux_mips.go | 664 + .../x/sys/unix/zsyscall_linux_mips64.go | 658 + .../x/sys/unix/zsyscall_linux_mips64le.go | 647 + .../x/sys/unix/zsyscall_linux_mipsle.go | 664 + .../x/sys/unix/zsyscall_linux_ppc.go | 669 + .../x/sys/unix/zsyscall_linux_ppc64.go | 715 + .../x/sys/unix/zsyscall_linux_ppc64le.go | 715 + .../x/sys/unix/zsyscall_linux_riscv64.go | 543 + .../x/sys/unix/zsyscall_linux_s390x.go | 506 + .../x/sys/unix/zsyscall_linux_sparc64.go | 659 + .../x/sys/unix/zsyscall_netbsd_386.go | 1860 + .../x/sys/unix/zsyscall_netbsd_amd64.go | 1860 + .../x/sys/unix/zsyscall_netbsd_arm.go | 1860 + .../x/sys/unix/zsyscall_netbsd_arm64.go | 1860 + .../x/sys/unix/zsyscall_openbsd_386.go | 2235 + .../x/sys/unix/zsyscall_openbsd_386.s | 669 + .../x/sys/unix/zsyscall_openbsd_amd64.go | 2235 + .../x/sys/unix/zsyscall_openbsd_amd64.s | 669 + .../x/sys/unix/zsyscall_openbsd_arm.go | 2235 + .../x/sys/unix/zsyscall_openbsd_arm.s | 669 + .../x/sys/unix/zsyscall_openbsd_arm64.go | 2235 + .../x/sys/unix/zsyscall_openbsd_arm64.s | 669 + .../x/sys/unix/zsyscall_openbsd_mips64.go | 2235 + .../x/sys/unix/zsyscall_openbsd_mips64.s | 669 + .../x/sys/unix/zsyscall_openbsd_ppc64.go | 2235 + .../x/sys/unix/zsyscall_openbsd_ppc64.s | 802 + .../x/sys/unix/zsyscall_openbsd_riscv64.go | 2235 + .../x/sys/unix/zsyscall_openbsd_riscv64.s | 669 + .../x/sys/unix/zsyscall_solaris_amd64.go | 2106 + .../x/sys/unix/zsyscall_zos_s390x.go | 1255 + .../x/sys/unix/zsysctl_openbsd_386.go | 281 + .../x/sys/unix/zsysctl_openbsd_amd64.go | 281 + .../x/sys/unix/zsysctl_openbsd_arm.go | 281 + .../x/sys/unix/zsysctl_openbsd_arm64.go | 281 + .../x/sys/unix/zsysctl_openbsd_mips64.go | 281 + .../x/sys/unix/zsysctl_openbsd_ppc64.go | 281 + .../x/sys/unix/zsysctl_openbsd_riscv64.go | 282 + .../x/sys/unix/zsysnum_darwin_amd64.go | 440 + .../x/sys/unix/zsysnum_darwin_arm64.go | 438 + .../x/sys/unix/zsysnum_dragonfly_amd64.go | 317 + .../x/sys/unix/zsysnum_freebsd_386.go | 394 + .../x/sys/unix/zsysnum_freebsd_amd64.go | 394 + .../x/sys/unix/zsysnum_freebsd_arm.go | 394 + .../x/sys/unix/zsysnum_freebsd_arm64.go | 394 + .../x/sys/unix/zsysnum_freebsd_riscv64.go | 394 + .../x/sys/unix/zsysnum_linux_386.go | 450 + .../x/sys/unix/zsysnum_linux_amd64.go | 372 + .../x/sys/unix/zsysnum_linux_arm.go | 414 + .../x/sys/unix/zsysnum_linux_arm64.go | 317 + .../x/sys/unix/zsysnum_linux_loong64.go | 311 + .../x/sys/unix/zsysnum_linux_mips.go | 434 + .../x/sys/unix/zsysnum_linux_mips64.go | 364 + .../x/sys/unix/zsysnum_linux_mips64le.go | 364 + .../x/sys/unix/zsysnum_linux_mipsle.go | 434 + .../x/sys/unix/zsysnum_linux_ppc.go | 441 + .../x/sys/unix/zsysnum_linux_ppc64.go | 413 + .../x/sys/unix/zsysnum_linux_ppc64le.go | 413 + .../x/sys/unix/zsysnum_linux_riscv64.go | 316 + .../x/sys/unix/zsysnum_linux_s390x.go | 378 + .../x/sys/unix/zsysnum_linux_sparc64.go | 392 + .../x/sys/unix/zsysnum_netbsd_386.go | 275 + .../x/sys/unix/zsysnum_netbsd_amd64.go | 275 + .../x/sys/unix/zsysnum_netbsd_arm.go | 275 + .../x/sys/unix/zsysnum_netbsd_arm64.go | 275 + .../x/sys/unix/zsysnum_openbsd_386.go | 220 + .../x/sys/unix/zsysnum_openbsd_amd64.go | 220 + .../x/sys/unix/zsysnum_openbsd_arm.go | 220 + .../x/sys/unix/zsysnum_openbsd_arm64.go | 219 + .../x/sys/unix/zsysnum_openbsd_mips64.go | 222 + .../x/sys/unix/zsysnum_openbsd_ppc64.go | 218 + .../x/sys/unix/zsysnum_openbsd_riscv64.go | 219 + .../x/sys/unix/zsysnum_zos_s390x.go | 2670 + .../golang.org/x/sys/unix/ztypes_aix_ppc.go | 354 + .../golang.org/x/sys/unix/ztypes_aix_ppc64.go | 358 + .../x/sys/unix/ztypes_darwin_amd64.go | 795 + .../x/sys/unix/ztypes_darwin_arm64.go | 795 + .../x/sys/unix/ztypes_dragonfly_amd64.go | 474 + .../x/sys/unix/ztypes_freebsd_386.go | 651 + .../x/sys/unix/ztypes_freebsd_amd64.go | 656 + .../x/sys/unix/ztypes_freebsd_arm.go | 642 + .../x/sys/unix/ztypes_freebsd_arm64.go | 636 + .../x/sys/unix/ztypes_freebsd_riscv64.go | 638 + vendor/golang.org/x/sys/unix/ztypes_linux.go | 5754 ++ .../golang.org/x/sys/unix/ztypes_linux_386.go | 696 + .../x/sys/unix/ztypes_linux_amd64.go | 711 + .../golang.org/x/sys/unix/ztypes_linux_arm.go | 691 + .../x/sys/unix/ztypes_linux_arm64.go | 690 + .../x/sys/unix/ztypes_linux_loong64.go | 691 + .../x/sys/unix/ztypes_linux_mips.go | 696 + .../x/sys/unix/ztypes_linux_mips64.go | 693 + .../x/sys/unix/ztypes_linux_mips64le.go | 693 + .../x/sys/unix/ztypes_linux_mipsle.go | 696 + .../golang.org/x/sys/unix/ztypes_linux_ppc.go | 704 + .../x/sys/unix/ztypes_linux_ppc64.go | 699 + .../x/sys/unix/ztypes_linux_ppc64le.go | 699 + .../x/sys/unix/ztypes_linux_riscv64.go | 718 + .../x/sys/unix/ztypes_linux_s390x.go | 713 + .../x/sys/unix/ztypes_linux_sparc64.go | 694 + .../x/sys/unix/ztypes_netbsd_386.go | 586 + .../x/sys/unix/ztypes_netbsd_amd64.go | 594 + .../x/sys/unix/ztypes_netbsd_arm.go | 591 + .../x/sys/unix/ztypes_netbsd_arm64.go | 594 + .../x/sys/unix/ztypes_openbsd_386.go | 569 + .../x/sys/unix/ztypes_openbsd_amd64.go | 569 + .../x/sys/unix/ztypes_openbsd_arm.go | 576 + .../x/sys/unix/ztypes_openbsd_arm64.go | 569 + .../x/sys/unix/ztypes_openbsd_mips64.go | 569 + .../x/sys/unix/ztypes_openbsd_ppc64.go | 571 + .../x/sys/unix/ztypes_openbsd_riscv64.go | 571 + .../x/sys/unix/ztypes_solaris_amd64.go | 517 + .../golang.org/x/sys/unix/ztypes_zos_s390x.go | 415 + vendor/golang.org/x/text/AUTHORS | 3 - vendor/golang.org/x/text/CONTRIBUTORS | 3 - vendor/golang.org/x/text/unicode/bidi/core.go | 26 +- .../golang.org/x/text/unicode/bidi/trieval.go | 12 - .../x/text/unicode/norm/forminfo.go | 9 +- .../x/text/unicode/norm/normalize.go | 11 +- .../x/text/unicode/norm/tables13.0.0.go | 4 +- .../googleapis/rpc/status/status.pb.go | 286 +- vendor/google.golang.org/grpc/.travis.yml | 24 - .../google.golang.org/grpc/CODE-OF-CONDUCT.md | 3 + vendor/google.golang.org/grpc/CONTRIBUTING.md | 64 +- vendor/google.golang.org/grpc/GOVERNANCE.md | 1 + vendor/google.golang.org/grpc/MAINTAINERS.md | 28 + vendor/google.golang.org/grpc/Makefile | 49 +- vendor/google.golang.org/grpc/NOTICE.txt | 13 + vendor/google.golang.org/grpc/README.md | 150 +- vendor/google.golang.org/grpc/SECURITY.md | 3 + .../grpc/attributes/attributes.go | 101 + vendor/google.golang.org/grpc/backoff.go | 85 +- .../google.golang.org/grpc/backoff/backoff.go | 52 + vendor/google.golang.org/grpc/balancer.go | 409 - .../grpc/balancer/balancer.go | 337 +- .../grpc/balancer/base/balancer.go | 223 +- .../grpc/balancer/base/base.go | 31 +- .../grpc/balancer/conn_state_evaluator.go | 74 + .../grpc/balancer/grpclb/state/state.go | 51 + .../grpc/balancer/roundrobin/roundrobin.go | 42 +- .../grpc/balancer_conn_wrappers.go | 467 +- .../grpc/balancer_v1_wrapper.go | 375 - .../grpc_binarylog_v1/binarylog.pb.go | 1183 + vendor/google.golang.org/grpc/call.go | 37 +- .../grpc/channelz/channelz.go | 36 + vendor/google.golang.org/grpc/clientconn.go | 2040 +- vendor/google.golang.org/grpc/codes/codes.go | 62 +- .../grpc/connectivity/connectivity.go | 48 +- .../grpc/credentials/credentials.go | 311 +- .../grpc/credentials/credentials_util_go17.go | 60 - .../credentials/credentials_util_pre_go17.go | 57 - .../grpc/credentials/insecure/insecure.go | 98 + .../google.golang.org/grpc/credentials/tls.go | 236 + vendor/google.golang.org/grpc/dialoptions.go | 637 + vendor/google.golang.org/grpc/doc.go | 2 + .../grpc/encoding/encoding.go | 29 +- .../grpc/encoding/gzip/gzip.go | 23 +- .../grpc/encoding/proto/proto.go | 70 +- vendor/google.golang.org/grpc/go16.go | 70 - vendor/google.golang.org/grpc/go17.go | 71 - vendor/google.golang.org/grpc/grpclb.go | 342 - .../grpclb/grpc_lb_v1/messages/messages.pb.go | 615 - .../grpclb/grpc_lb_v1/messages/messages.proto | 155 - .../google.golang.org/grpc/grpclb_picker.go | 159 - .../grpc/grpclb_remote_balancer.go | 254 - vendor/google.golang.org/grpc/grpclb_util.go | 90 - .../grpc/grpclog/component.go | 117 + .../google.golang.org/grpc/grpclog/grpclog.go | 49 +- .../google.golang.org/grpc/grpclog/logger.go | 6 +- .../grpc/grpclog/loggerv2.go | 121 +- vendor/google.golang.org/grpc/interceptor.go | 47 +- .../grpc/internal/backoff/backoff.go | 73 + .../balancer/gracefulswitch/gracefulswitch.go | 384 + .../grpc/internal/balancerload/load.go | 46 + .../grpc/internal/binarylog/binarylog.go | 189 + .../internal/binarylog/binarylog_testutil.go | 42 + .../grpc/internal/binarylog/env_config.go | 208 + .../grpc/internal/binarylog/method_logger.go | 435 + .../grpc/internal/binarylog/sink.go | 170 + .../grpc/internal/buffer/unbounded.go | 85 + .../grpc/internal/channelz/funcs.go | 789 + .../grpc/internal/channelz/id.go | 75 + .../grpc/internal/channelz/logging.go | 79 + .../grpc/internal/channelz/types.go | 722 + .../grpc/internal/channelz/types_linux.go | 51 + .../grpc/internal/channelz/types_nonlinux.go | 43 + .../grpc/internal/channelz/util_linux.go | 37 + .../channelz/util_nonlinux.go} | 18 +- .../grpc/internal/credentials/credentials.go | 49 + .../grpc/internal/credentials/spiffe.go | 75 + .../grpc/internal/credentials/syscallconn.go | 58 + .../credentials/util.go} | 24 +- .../grpc/internal/envconfig/envconfig.go | 62 + .../grpc/internal/envconfig/observability.go | 36 + .../grpc/internal/envconfig/xds.go | 92 + .../grpc/internal/grpclog/grpclog.go | 126 + .../grpc/internal/grpclog/prefixLogger.go | 81 + .../grpc/internal/grpcrand/grpcrand.go | 74 + .../grpc/internal/grpcsync/event.go | 61 + .../go17.go => internal/grpcsync/oncefunc.go} | 22 +- .../grpc/internal/grpcutil/compressor.go | 47 + .../grpc/internal/grpcutil/encode_duration.go | 63 + .../grpc/internal/grpcutil/grpcutil.go | 20 + .../grpc/internal/grpcutil/metadata.go | 40 + .../grpc/internal/grpcutil/method.go | 88 + .../grpc/internal/grpcutil/regex.go | 31 + .../grpc/internal/internal.go | 147 +- .../grpc/internal/metadata/metadata.go | 120 + .../grpc/internal/pretty/pretty.go | 82 + .../grpc/internal/resolver/config_selector.go | 167 + .../internal/resolver/dns/dns_resolver.go | 458 + .../resolver/passthrough/passthrough.go | 15 +- .../grpc/internal/resolver/unix/unix.go | 74 + .../internal/serviceconfig/serviceconfig.go | 180 + .../grpc/internal/status/status.go | 176 + .../grpc/internal/syscall/syscall_linux.go | 112 + .../grpc/internal/syscall/syscall_nonlinux.go | 77 + .../{ => internal}/transport/bdp_estimator.go | 7 +- .../grpc/internal/transport/controlbuf.go | 998 + .../grpc/internal/transport/defaults.go | 55 + .../grpc/internal/transport/flowcontrol.go | 215 + .../transport/handler_server.go | 210 +- .../grpc/internal/transport/http2_client.go | 1800 + .../grpc/internal/transport/http2_server.go | 1461 + .../grpc/internal/transport/http_util.go | 412 + .../transport/networktype/networktype.go | 46 + .../grpc/{ => internal/transport}/proxy.go | 86 +- .../{ => internal}/transport/transport.go | 576 +- .../grpc/internal/xds_handshake_cluster.go | 40 + .../grpc/keepalive/keepalive.go | 64 +- .../grpc/metadata/metadata.go | 190 +- .../grpc/naming/dns_resolver.go | 290 - .../google.golang.org/grpc/naming/naming.go | 59 - vendor/google.golang.org/grpc/peer/peer.go | 2 +- .../google.golang.org/grpc/picker_wrapper.go | 178 +- vendor/google.golang.org/grpc/pickfirst.go | 147 +- vendor/google.golang.org/grpc/preloader.go | 67 + vendor/google.golang.org/grpc/regenerate.sh | 123 + .../grpc/resolver/dns/dns_resolver.go | 377 - .../grpc/resolver/dns/go17.go | 35 - vendor/google.golang.org/grpc/resolver/map.go | 138 + .../grpc/resolver/resolver.go | 192 +- .../grpc/resolver_conn_wrapper.go | 220 +- vendor/google.golang.org/grpc/rpc_util.go | 599 +- vendor/google.golang.org/grpc/server.go | 1512 +- .../google.golang.org/grpc/service_config.go | 280 +- .../grpc/serviceconfig/serviceconfig.go | 44 + .../google.golang.org/grpc/stats/handlers.go | 3 +- vendor/google.golang.org/grpc/stats/stats.go | 41 +- .../google.golang.org/grpc/status/status.go | 140 +- vendor/google.golang.org/grpc/stream.go | 1802 +- vendor/google.golang.org/grpc/tap/tap.go | 25 +- vendor/google.golang.org/grpc/trace.go | 16 +- .../grpc/transport/control.go | 334 - .../google.golang.org/grpc/transport/go16.go | 51 - .../google.golang.org/grpc/transport/go17.go | 52 - .../grpc/transport/http2_client.go | 1386 - .../grpc/transport/http2_server.go | 1210 - .../grpc/transport/http_util.go | 530 - .../google.golang.org/grpc/transport/log.go | 50 - .../grpc/{naming/go18.go => version.go} | 14 +- vendor/google.golang.org/grpc/vet.sh | 233 +- vendor/google.golang.org/protobuf/LICENSE | 27 + vendor/google.golang.org/protobuf/PATENTS | 22 + .../protobuf/encoding/protojson/decode.go | 665 + .../protobuf/encoding/protojson/doc.go | 11 + .../protobuf/encoding/protojson/encode.go | 343 + .../encoding/protojson/well_known_types.go | 895 + .../protobuf/encoding/prototext/decode.go | 770 + .../protobuf/encoding/prototext/doc.go | 7 + .../protobuf/encoding/prototext/encode.go | 370 + .../protobuf/encoding/protowire/wire.go | 547 + .../protobuf/internal/descfmt/stringer.go | 318 + .../protobuf/internal/descopts/options.go | 29 + .../protobuf/internal/detrand/rand.go | 69 + .../internal/encoding/defval/default.go | 213 + .../protobuf/internal/encoding/json/decode.go | 340 + .../internal/encoding/json/decode_number.go | 254 + .../internal/encoding/json/decode_string.go | 91 + .../internal/encoding/json/decode_token.go | 192 + .../protobuf/internal/encoding/json/encode.go | 276 + .../encoding/messageset/messageset.go | 242 + .../protobuf/internal/encoding/tag/tag.go | 207 + .../protobuf/internal/encoding/text/decode.go | 685 + .../internal/encoding/text/decode_number.go | 192 + .../internal/encoding/text/decode_string.go | 161 + .../internal/encoding/text/decode_token.go | 373 + .../protobuf/internal/encoding/text/doc.go | 29 + .../protobuf/internal/encoding/text/encode.go | 270 + .../protobuf/internal/errors/errors.go | 89 + .../protobuf/internal/errors/is_go112.go | 40 + .../protobuf/internal/errors/is_go113.go | 13 + .../protobuf/internal/filedesc/build.go | 157 + .../protobuf/internal/filedesc/desc.go | 633 + .../protobuf/internal/filedesc/desc_init.go | 471 + .../protobuf/internal/filedesc/desc_lazy.go | 704 + .../protobuf/internal/filedesc/desc_list.go | 457 + .../internal/filedesc/desc_list_gen.go | 356 + .../protobuf/internal/filedesc/placeholder.go | 109 + .../protobuf/internal/filetype/build.go | 296 + .../protobuf/internal/flags/flags.go | 24 + .../internal/flags/proto_legacy_disable.go | 10 + .../internal/flags/proto_legacy_enable.go | 10 + .../protobuf/internal/genid/any_gen.go | 34 + .../protobuf/internal/genid/api_gen.go | 106 + .../protobuf/internal/genid/descriptor_gen.go | 871 + .../protobuf/internal/genid/doc.go | 11 + .../protobuf/internal/genid/duration_gen.go | 34 + .../protobuf/internal/genid/empty_gen.go | 19 + .../protobuf/internal/genid/field_mask_gen.go | 31 + .../protobuf/internal/genid/goname.go | 25 + .../protobuf/internal/genid/map_entry.go | 16 + .../internal/genid/source_context_gen.go | 31 + .../protobuf/internal/genid/struct_gen.go | 116 + .../protobuf/internal/genid/timestamp_gen.go | 34 + .../protobuf/internal/genid/type_gen.go | 184 + .../protobuf/internal/genid/wrappers.go | 13 + .../protobuf/internal/genid/wrappers_gen.go | 175 + .../protobuf/internal/impl/api_export.go | 177 + .../protobuf/internal/impl/checkinit.go | 141 + .../protobuf/internal/impl/codec_extension.go | 223 + .../protobuf/internal/impl/codec_field.go | 830 + .../protobuf/internal/impl/codec_gen.go | 5637 ++ .../protobuf/internal/impl/codec_map.go | 388 + .../protobuf/internal/impl/codec_map_go111.go | 38 + .../protobuf/internal/impl/codec_map_go112.go | 12 + .../protobuf/internal/impl/codec_message.go | 217 + .../internal/impl/codec_messageset.go | 123 + .../protobuf/internal/impl/codec_reflect.go | 210 + .../protobuf/internal/impl/codec_tables.go | 557 + .../protobuf/internal/impl/codec_unsafe.go | 18 + .../protobuf/internal/impl/convert.go | 495 + .../protobuf/internal/impl/convert_list.go | 141 + .../protobuf/internal/impl/convert_map.go | 121 + .../protobuf/internal/impl/decode.go | 285 + .../protobuf/internal/impl/encode.go | 201 + .../protobuf/internal/impl/enum.go | 21 + .../protobuf/internal/impl/extension.go | 156 + .../protobuf/internal/impl/legacy_enum.go | 218 + .../protobuf/internal/impl/legacy_export.go | 92 + .../internal/impl/legacy_extension.go | 176 + .../protobuf/internal/impl/legacy_file.go | 81 + .../protobuf/internal/impl/legacy_message.go | 563 + .../protobuf/internal/impl/merge.go | 176 + .../protobuf/internal/impl/merge_gen.go | 209 + .../protobuf/internal/impl/message.go | 279 + .../protobuf/internal/impl/message_reflect.go | 463 + .../internal/impl/message_reflect_field.go | 543 + .../internal/impl/message_reflect_gen.go | 249 + .../protobuf/internal/impl/pointer_reflect.go | 179 + .../protobuf/internal/impl/pointer_unsafe.go | 175 + .../protobuf/internal/impl/validate.go | 576 + .../protobuf/internal/impl/weak.go | 74 + .../protobuf/internal/msgfmt/format.go | 261 + .../protobuf/internal/order/order.go | 89 + .../protobuf/internal/order/range.go | 115 + .../protobuf/internal/pragma/pragma.go | 29 + .../protobuf/internal/set/ints.go | 58 + .../protobuf/internal/strs/strings.go | 196 + .../protobuf/internal/strs/strings_pure.go | 28 + .../protobuf/internal/strs/strings_unsafe.go | 95 + .../protobuf/internal/version/version.go | 79 + .../protobuf/proto/checkinit.go | 71 + .../protobuf/proto/decode.go | 294 + .../protobuf/proto/decode_gen.go | 603 + .../google.golang.org/protobuf/proto/doc.go | 86 + .../protobuf/proto/encode.go | 322 + .../protobuf/proto/encode_gen.go | 97 + .../google.golang.org/protobuf/proto/equal.go | 57 + .../protobuf/proto/extension.go | 92 + .../google.golang.org/protobuf/proto/merge.go | 139 + .../protobuf/proto/messageset.go | 93 + .../google.golang.org/protobuf/proto/proto.go | 43 + .../protobuf/proto/proto_methods.go | 20 + .../protobuf/proto/proto_reflect.go | 20 + .../google.golang.org/protobuf/proto/reset.go | 43 + .../google.golang.org/protobuf/proto/size.go | 97 + .../protobuf/proto/size_gen.go | 55 + .../protobuf/proto/wrappers.go | 29 + .../protobuf/reflect/protodesc/desc.go | 276 + .../protobuf/reflect/protodesc/desc_init.go | 248 + .../reflect/protodesc/desc_resolve.go | 286 + .../reflect/protodesc/desc_validate.go | 374 + .../protobuf/reflect/protodesc/proto.go | 252 + .../protobuf/reflect/protopath/path.go | 122 + .../protobuf/reflect/protopath/step.go | 241 + .../protobuf/reflect/protorange/range.go | 316 + .../protobuf/reflect/protoreflect/methods.go | 78 + .../protobuf/reflect/protoreflect/proto.go | 508 + .../protobuf/reflect/protoreflect/source.go | 129 + .../reflect/protoreflect/source_gen.go | 475 + .../protobuf/reflect/protoreflect/type.go | 666 + .../protobuf/reflect/protoreflect/value.go | 285 + .../reflect/protoreflect/value_equal.go | 168 + .../reflect/protoreflect/value_pure.go | 60 + .../reflect/protoreflect/value_union.go | 438 + .../reflect/protoreflect/value_unsafe.go | 99 + .../reflect/protoregistry/registry.go | 882 + .../protobuf/runtime/protoiface/legacy.go | 15 + .../protobuf/runtime/protoiface/methods.go | 168 + .../protobuf/runtime/protoimpl/impl.go | 44 + .../protobuf/runtime/protoimpl/version.go | 60 + .../types/descriptorpb/descriptor.pb.go | 4350 ++ .../protobuf/types/dynamicpb/dynamic.go | 717 + .../protobuf/types/known/anypb/any.pb.go | 495 + .../protobuf/types/known/apipb/api.pb.go | 575 + .../types/known/durationpb/duration.pb.go | 374 + .../protobuf/types/known/emptypb/empty.pb.go | 166 + .../types/known/fieldmaskpb/field_mask.pb.go | 588 + .../sourcecontextpb/source_context.pb.go | 176 + .../types/known/structpb/struct.pb.go | 810 + .../types/known/timestamppb/timestamp.pb.go | 383 + .../protobuf/types/known/typepb/type.pb.go | 964 + .../types/known/wrapperspb/wrappers.pb.go | 760 + .../protobuf/types/pluginpb/plugin.pb.go | 656 + vendor/modules.txt | 168 +- 1057 files changed, 793932 insertions(+), 22051 deletions(-) delete mode 100644 multi-vendor/cisco/iosxr/telemetry-proto/telemetry.pb.go create mode 100644 multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.pb.go rename multi-vendor/cisco/iosxr/telemetry-proto/{telemetry.proto => telemetryxr.proto} (98%) create mode 100644 sample-config/udp.conf create mode 100644 schema/agent.pb.go create mode 100755 schema/agent.proto create mode 100644 schema/agentd.pb.go create mode 100755 schema/agentd.proto create mode 100644 schema/alarmd_oc.pb.go create mode 100755 schema/alarmd_oc.proto create mode 100644 schema/am-if-oc_render.pb.go create mode 100644 schema/am-if-oc_render.proto create mode 100644 schema/ancpd_oc.pb.go create mode 100755 schema/ancpd_oc.proto create mode 100644 schema/authd_oc.pb.go create mode 100755 schema/authd_oc.proto create mode 100644 schema/bbe-smgd_ancp_stats_oc.pb.go create mode 100755 schema/bbe-smgd_ancp_stats_oc.proto create mode 100644 schema/bbe-smgd_pppoe_stats_oc.pb.go create mode 100755 schema/bbe-smgd_pppoe_stats_oc.proto create mode 100644 schema/bbe-smgd_rsmon_debug_oc.pb.go create mode 100755 schema/bbe-smgd_rsmon_debug_oc.proto create mode 100644 schema/bbe-smgd_rsmon_stats_oc.pb.go create mode 100755 schema/bbe-smgd_rsmon_stats_oc.proto create mode 100644 schema/bbe-smgd_smd_queue_stats_oc.pb.go create mode 100755 schema/bbe-smgd_smd_queue_stats_oc.proto create mode 100644 schema/bbe-smgd_sub_mgmt_network_stats_oc.pb.go create mode 100755 schema/bbe-smgd_sub_mgmt_network_stats_oc.proto create mode 100644 schema/bbe-statsd-telemetry_oc.pb.go create mode 100755 schema/bbe-statsd-telemetry_oc.proto create mode 100644 schema/chassisd_oc.pb.go create mode 100755 schema/chassisd_oc.proto create mode 100644 schema/cmerror.pb.go create mode 100755 schema/cmerror.proto create mode 100644 schema/cmerror_data.pb.go create mode 100755 schema/cmerror_data.proto create mode 100644 schema/cosd_oc.pb.go create mode 100755 schema/cosd_oc.proto create mode 100644 schema/cpu_memory_utilization.pb.go create mode 100755 schema/cpu_memory_utilization.proto create mode 100644 schema/dcd_oc.pb.go create mode 100755 schema/dcd_oc.proto create mode 100644 schema/eventd.pb.go create mode 100755 schema/eventd.proto create mode 100644 schema/fabric.pb.go create mode 100755 schema/fabric.proto create mode 100644 schema/fibtd-telemetry_oc.pb.go create mode 100755 schema/fibtd-telemetry_oc.proto create mode 100644 schema/firewall.pb.go create mode 100755 schema/firewall.proto create mode 100644 schema/go.mod create mode 100644 schema/go.sum create mode 100644 schema/inline_jflow.pb.go create mode 100755 schema/inline_jflow.proto create mode 100644 schema/ipsec_telemetry.pb.go create mode 100755 schema/ipsec_telemetry.proto create mode 100644 schema/jdhcpd_oc.pb.go create mode 100755 schema/jdhcpd_oc.proto create mode 100644 schema/jdiameterd_render.pb.go create mode 100755 schema/jdiameterd_render.proto create mode 100644 schema/jkdsd_cpu_oc.pb.go create mode 100755 schema/jkdsd_cpu_oc.proto create mode 100644 schema/jkdsd_oc.pb.go create mode 100755 schema/jkdsd_oc.proto create mode 100644 schema/jkhmd_oc.pb.go create mode 100755 schema/jkhmd_oc.proto create mode 100644 schema/jkhmd_resiliency_render.pb.go create mode 100755 schema/jkhmd_resiliency_render.proto create mode 100644 schema/jl2tpd_oc.pb.go create mode 100755 schema/jl2tpd_oc.proto create mode 100644 schema/jpppd_oc.pb.go create mode 100755 schema/jpppd_oc.proto create mode 100644 schema/junos-xmlproxyd_junos-rsvp-interface.pb.go create mode 100755 schema/junos-xmlproxyd_junos-rsvp-interface.proto create mode 100644 schema/junos-xmlproxyd_junos-rtg-task-memory.pb.go create mode 100755 schema/junos-xmlproxyd_junos-rtg-task-memory.proto create mode 100644 schema/kernel-ifstate-render.pb.go create mode 100755 schema/kernel-ifstate-render.proto create mode 100644 schema/kmd_render.pb.go create mode 100755 schema/kmd_render.proto create mode 100644 schema/l2ald_bd_render.pb.go create mode 100755 schema/l2ald_bd_render.proto create mode 100644 schema/l2ald_evpn_render.pb.go create mode 100755 schema/l2ald_evpn_render.proto create mode 100644 schema/l2ald_fdb_render.pb.go create mode 100755 schema/l2ald_fdb_render.proto create mode 100644 schema/l2ald_oc.pb.go create mode 100755 schema/l2ald_oc.proto create mode 100644 schema/l2ald_oc_intf.pb.go create mode 100755 schema/l2ald_oc_intf.proto create mode 100644 schema/l2cpd_oc.pb.go create mode 100755 schema/l2cpd_oc.proto create mode 100644 schema/lacpd_oc.pb.go create mode 100755 schema/lacpd_oc.proto create mode 100644 schema/ldp_lsp_ingress_stats.pb.go create mode 100755 schema/ldp_lsp_ingress_stats.proto create mode 100644 schema/ldp_lsp_transit_stats.pb.go create mode 100755 schema/ldp_lsp_transit_stats.proto create mode 100644 schema/ldp_p2mp_lsp_stats.pb.go create mode 100755 schema/ldp_p2mp_lsp_stats.proto create mode 100644 schema/ldp_p2mp_per_if_egress.pb.go create mode 100755 schema/ldp_p2mp_per_if_egress.proto create mode 100644 schema/ldp_p2mp_per_if_ingress.pb.go create mode 100755 schema/ldp_p2mp_per_if_ingress.proto create mode 100644 schema/logical_port.pb.go create mode 100755 schema/logical_port.proto create mode 100644 schema/lsp_stats.pb.go create mode 100755 schema/lsp_stats.proto create mode 100644 schema/mib2d_arp_oc.pb.go create mode 100755 schema/mib2d_arp_oc.proto create mode 100644 schema/mib2d_nd6_oc.pb.go create mode 100755 schema/mib2d_nd6_oc.proto create mode 100644 schema/mib2d_oc.pb.go create mode 100755 schema/mib2d_oc.proto create mode 100644 schema/npu_memory_utilization.pb.go create mode 100755 schema/npu_memory_utilization.proto create mode 100644 schema/npu_utilization.pb.go create mode 100755 schema/npu_utilization.proto create mode 100644 schema/optics.pb.go create mode 100755 schema/optics.proto create mode 100644 schema/packet_capture.pb.go create mode 100755 schema/packet_capture.proto create mode 100644 schema/packet_stats.pb.go create mode 100755 schema/packet_stats.proto create mode 100644 schema/pbj.pb.go create mode 100755 schema/pbj.proto create mode 100644 schema/pfe_ddos_oc.pb.go create mode 100755 schema/pfe_ddos_oc.proto create mode 100644 schema/pfe_export_mon_oc.pb.go create mode 100755 schema/pfe_export_mon_oc.proto create mode 100644 schema/pfe_ifl_oc.pb.go create mode 100755 schema/pfe_ifl_oc.proto create mode 100644 schema/pfe_npu_resource.pb.go create mode 100755 schema/pfe_npu_resource.proto create mode 100644 schema/pfe_per_prefix_v4_stats.pb.go create mode 100755 schema/pfe_per_prefix_v4_stats.proto create mode 100644 schema/pfe_per_prefix_v6_stats.pb.go create mode 100755 schema/pfe_per_prefix_v6_stats.proto create mode 100644 schema/pfe_port_oc.pb.go create mode 100755 schema/pfe_port_oc.proto create mode 100644 schema/pfe_port_qstats_ext.pb.go create mode 100755 schema/pfe_port_qstats_ext.proto create mode 100644 schema/pfed_oc.pb.go create mode 100755 schema/pfed_oc.proto create mode 100644 schema/port.pb.go create mode 100755 schema/port.proto create mode 100644 schema/port_exp.pb.go create mode 100755 schema/port_exp.proto create mode 100644 schema/qmon.pb.go create mode 100755 schema/qmon.proto create mode 100644 schema/rmopd_render.pb.go create mode 100755 schema/rmopd_render.proto create mode 100644 schema/rpd_bgp_rib_oc.pb.go create mode 100755 schema/rpd_bgp_rib_oc.proto create mode 100644 schema/rpd_evpn_global_render.pb.go create mode 100755 schema/rpd_evpn_global_render.proto create mode 100644 schema/rpd_ipv6_ra_oc.pb.go create mode 100755 schema/rpd_ipv6_ra_oc.proto create mode 100644 schema/rpd_isis_oc.pb.go create mode 100755 schema/rpd_isis_oc.proto create mode 100644 schema/rpd_ldp_oc.pb.go create mode 100755 schema/rpd_ldp_oc.proto create mode 100644 schema/rpd_loc_rib_oc.pb.go create mode 100755 schema/rpd_loc_rib_oc.proto create mode 100644 schema/rpd_ni_bgp_oc.pb.go create mode 100755 schema/rpd_ni_bgp_oc.proto create mode 100644 schema/rpd_ni_evpn_render.pb.go create mode 100755 schema/rpd_ni_evpn_render.proto create mode 100644 schema/rpd_rsvp_oc.pb.go create mode 100755 schema/rpd_rsvp_oc.proto create mode 100644 schema/rpd_srte_policy_oc.pb.go create mode 100755 schema/rpd_srte_policy_oc.proto create mode 100644 schema/rpd_te_oc.pb.go create mode 100755 schema/rpd_te_oc.proto create mode 100644 schema/session_telemetry.pb.go create mode 100755 schema/session_telemetry.proto create mode 100644 schema/smid_oc.pb.go create mode 100755 schema/smid_oc.proto create mode 100644 schema/spu_cpu_util.pb.go create mode 100755 schema/spu_cpu_util.proto create mode 100644 schema/spu_flow_stats.pb.go create mode 100755 schema/spu_flow_stats.proto create mode 100644 schema/sr_stats_per_if_egress.pb.go create mode 100755 schema/sr_stats_per_if_egress.proto create mode 100644 schema/sr_stats_per_if_ingress.pb.go create mode 100755 schema/sr_stats_per_if_ingress.proto create mode 100644 schema/sr_stats_per_sid.pb.go create mode 100755 schema/sr_stats_per_sid.proto create mode 100644 schema/sr_stats_per_sid_egress.pb.go create mode 100644 schema/sr_stats_per_sid_egress.proto create mode 100644 schema/sr_te_bsid_stats.pb.go create mode 100755 schema/sr_te_bsid_stats.proto create mode 100644 schema/sr_te_ingress_tunnel_stats.pb.go create mode 100755 schema/sr_te_ingress_tunnel_stats.proto create mode 100644 schema/sr_te_ip_stats.pb.go create mode 100755 schema/sr_te_ip_stats.proto create mode 100644 schema/sr_te_per_lsp_ingress_stats.pb.go create mode 100755 schema/sr_te_per_lsp_ingress_stats.proto create mode 100644 schema/sr_te_per_lsp_transit_stats.pb.go create mode 100755 schema/sr_te_per_lsp_transit_stats.proto create mode 100644 schema/sr_te_transit_tunnel_stats.pb.go create mode 100755 schema/sr_te_transit_tunnel_stats.proto create mode 100644 schema/svcset_telemetry.pb.go create mode 100755 schema/svcset_telemetry.proto create mode 100644 schema/telemetry_top.pb.go create mode 100755 schema/telemetry_top.proto create mode 100644 schema/telemetry_top/telemetry_top.pb.go create mode 100644 schema/telemetry_top/telemetry_top.proto create mode 100644 schema/vrrpd_oc.pb.go create mode 100755 schema/vrrpd_oc.proto create mode 100644 schema/xmlproxyd_show_local_interface_OC.pb.go create mode 100755 schema/xmlproxyd_show_local_interface_OC.proto create mode 100644 udp.go delete mode 100644 vendor/github.com/Shopify/sarama/go.mod delete mode 100644 vendor/github.com/Shopify/sarama/go.sum create mode 100644 vendor/github.com/bufbuild/protocompile/LICENSE create mode 100644 vendor/github.com/bufbuild/protocompile/Makefile create mode 100644 vendor/github.com/bufbuild/protocompile/README.md create mode 100644 vendor/github.com/bufbuild/protocompile/ast/doc.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/enum.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/field.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/file.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/file_info.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/identifiers.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/message.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/no_source.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/node.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/options.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/ranges.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/service.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/values.go create mode 100644 vendor/github.com/bufbuild/protocompile/ast/walk.go create mode 100644 vendor/github.com/bufbuild/protocompile/compiler.go create mode 100644 vendor/github.com/bufbuild/protocompile/doc.go create mode 100644 vendor/github.com/bufbuild/protocompile/go.work create mode 100644 vendor/github.com/bufbuild/protocompile/go.work.sum create mode 100644 vendor/github.com/bufbuild/protocompile/internal/message_context.go create mode 100644 vendor/github.com/bufbuild/protocompile/internal/norace.go create mode 100644 vendor/github.com/bufbuild/protocompile/internal/options.go create mode 100644 vendor/github.com/bufbuild/protocompile/internal/race.go create mode 100644 vendor/github.com/bufbuild/protocompile/internal/tags.go create mode 100644 vendor/github.com/bufbuild/protocompile/internal/types.go create mode 100644 vendor/github.com/bufbuild/protocompile/internal/util.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/descriptors.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/doc.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/files.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/linker.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/pathkey_no_unsafe.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/pathkey_unsafe.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/resolve.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/symbols.go create mode 100644 vendor/github.com/bufbuild/protocompile/linker/validate.go create mode 100644 vendor/github.com/bufbuild/protocompile/options/options.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/ast.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/clone.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/doc.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/errors.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/lexer.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/parser.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/proto.y create mode 100644 vendor/github.com/bufbuild/protocompile/parser/proto.y.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/result.go create mode 100644 vendor/github.com/bufbuild/protocompile/parser/validate.go create mode 100644 vendor/github.com/bufbuild/protocompile/protoutil/protos.go create mode 100644 vendor/github.com/bufbuild/protocompile/reporter/errors.go create mode 100644 vendor/github.com/bufbuild/protocompile/reporter/reporter.go create mode 100644 vendor/github.com/bufbuild/protocompile/resolver.go create mode 100644 vendor/github.com/bufbuild/protocompile/sourceinfo/source_code_info.go create mode 100644 vendor/github.com/bufbuild/protocompile/std_imports.go create mode 100644 vendor/github.com/bufbuild/protocompile/walk/walk.go create mode 100644 vendor/github.com/gogo/protobuf/AUTHORS create mode 100644 vendor/github.com/gogo/protobuf/CONTRIBUTORS create mode 100644 vendor/github.com/gogo/protobuf/LICENSE rename vendor/github.com/{golang => gogo}/protobuf/proto/Makefile (90%) rename vendor/github.com/{golang => gogo}/protobuf/proto/clone.go (83%) create mode 100644 vendor/github.com/gogo/protobuf/proto/custom_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/decode.go create mode 100644 vendor/github.com/gogo/protobuf/proto/deprecated.go create mode 100644 vendor/github.com/gogo/protobuf/proto/discard.go create mode 100644 vendor/github.com/gogo/protobuf/proto/duration.go create mode 100644 vendor/github.com/gogo/protobuf/proto/duration_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/encode.go create mode 100644 vendor/github.com/gogo/protobuf/proto/encode_gogo.go rename vendor/github.com/{golang => gogo}/protobuf/proto/equal.go (94%) create mode 100644 vendor/github.com/gogo/protobuf/proto/extensions.go create mode 100644 vendor/github.com/gogo/protobuf/proto/extensions_gogo.go rename vendor/github.com/{golang => gogo}/protobuf/proto/lib.go (82%) create mode 100644 vendor/github.com/gogo/protobuf/proto/lib_gogo.go rename vendor/github.com/{golang => gogo}/protobuf/proto/message_set.go (58%) create mode 100644 vendor/github.com/gogo/protobuf/proto/pointer_reflect.go create mode 100644 vendor/github.com/gogo/protobuf/proto/pointer_reflect_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/pointer_unsafe.go create mode 100644 vendor/github.com/gogo/protobuf/proto/pointer_unsafe_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/properties.go create mode 100644 vendor/github.com/gogo/protobuf/proto/properties_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/skip_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/table_marshal.go create mode 100644 vendor/github.com/gogo/protobuf/proto/table_marshal_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/table_merge.go create mode 100644 vendor/github.com/gogo/protobuf/proto/table_unmarshal.go create mode 100644 vendor/github.com/gogo/protobuf/proto/table_unmarshal_gogo.go rename vendor/github.com/{golang => gogo}/protobuf/proto/text.go (83%) create mode 100644 vendor/github.com/gogo/protobuf/proto/text_gogo.go rename vendor/github.com/{golang => gogo}/protobuf/proto/text_parser.go (81%) create mode 100644 vendor/github.com/gogo/protobuf/proto/timestamp.go create mode 100644 vendor/github.com/gogo/protobuf/proto/timestamp_gogo.go create mode 100644 vendor/github.com/gogo/protobuf/proto/wrappers.go create mode 100644 vendor/github.com/gogo/protobuf/proto/wrappers_gogo.go rename vendor/github.com/{golang/protobuf/protoc-gen-go => gogo/protobuf/protoc-gen-gogo}/descriptor/Makefile (81%) create mode 100644 vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.go create mode 100644 vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.pb.go create mode 100644 vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor_gostring.gen.go create mode 100644 vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/helper.go create mode 100644 vendor/github.com/golang/protobuf/jsonpb/decode.go create mode 100644 vendor/github.com/golang/protobuf/jsonpb/encode.go create mode 100644 vendor/github.com/golang/protobuf/jsonpb/json.go create mode 100644 vendor/github.com/golang/protobuf/proto/buffer.go delete mode 100644 vendor/github.com/golang/protobuf/proto/decode.go create mode 100644 vendor/github.com/golang/protobuf/proto/defaults.go create mode 100644 vendor/github.com/golang/protobuf/proto/deprecated.go delete mode 100644 vendor/github.com/golang/protobuf/proto/encode.go delete mode 100644 vendor/github.com/golang/protobuf/proto/pointer_reflect.go delete mode 100644 vendor/github.com/golang/protobuf/proto/pointer_unsafe.go create mode 100644 vendor/github.com/golang/protobuf/proto/proto.go create mode 100644 vendor/github.com/golang/protobuf/proto/registry.go create mode 100644 vendor/github.com/golang/protobuf/proto/text_decode.go create mode 100644 vendor/github.com/golang/protobuf/proto/text_encode.go create mode 100644 vendor/github.com/golang/protobuf/proto/wire.go create mode 100644 vendor/github.com/golang/protobuf/proto/wrappers.go delete mode 100644 vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto delete mode 100644 vendor/github.com/golang/protobuf/ptypes/any/any.proto delete mode 100644 vendor/github.com/golang/protobuf/ptypes/duration/duration.proto delete mode 100644 vendor/github.com/golang/protobuf/ptypes/regen.sh delete mode 100644 vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto create mode 100644 vendor/github.com/golang/snappy/decode_arm64.s rename vendor/github.com/golang/snappy/{decode_amd64.go => decode_asm.go} (93%) create mode 100644 vendor/github.com/golang/snappy/encode_arm64.s rename vendor/github.com/golang/snappy/{encode_amd64.go => encode_asm.go} (97%) delete mode 100644 vendor/github.com/golang/snappy/go.mod delete mode 100644 vendor/github.com/gorilla/mux/go.mod delete mode 100644 vendor/github.com/hashicorp/go-uuid/go.mod create mode 100644 vendor/github.com/jhump/protoreflect/LICENSE create mode 100644 vendor/github.com/jhump/protoreflect/desc/cache.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/convert.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/descriptor.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/descriptor_no_unsafe.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/descriptor_unsafe.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/doc.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/imports.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/internal/proto3_optional.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/internal/registry.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/internal/source_info.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/internal/util.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/load.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/doc.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/enum.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/field.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/file.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/identifiers.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/message.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/no_source.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/node.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/options.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/print.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/ranges.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/service.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/source_pos.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/values.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/ast/walk.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/doc.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/errors.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/parser.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/resolve_files.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/protoparse/test-source-info.txt create mode 100644 vendor/github.com/jhump/protoreflect/desc/sourceinfo/locations.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/sourceinfo/registry.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/sourceinfo/wrappers.go create mode 100644 vendor/github.com/jhump/protoreflect/desc/wrap.go create mode 100644 vendor/github.com/jhump/protoreflect/internal/standard_files.go create mode 100644 vendor/github.com/jhump/protoreflect/internal/unrecognized.go create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile delete mode 100644 vendor/golang.org/x/net/AUTHORS delete mode 100644 vendor/golang.org/x/net/CONTRIBUTORS create mode 100644 vendor/golang.org/x/net/http2/go118.go create mode 100644 vendor/golang.org/x/net/http2/hpack/static_table.go create mode 100644 vendor/golang.org/x/net/http2/not_go118.go create mode 100644 vendor/golang.org/x/net/idna/go118.go create mode 100644 vendor/golang.org/x/net/idna/pre_go118.go create mode 100644 vendor/golang.org/x/sync/LICENSE create mode 100644 vendor/golang.org/x/sync/PATENTS create mode 100644 vendor/golang.org/x/sync/semaphore/semaphore.go create mode 100644 vendor/golang.org/x/sys/LICENSE create mode 100644 vendor/golang.org/x/sys/PATENTS create mode 100644 vendor/golang.org/x/sys/unix/README.md create mode 100644 vendor/golang.org/x/sys/unix/affinity_linux.go create mode 100644 vendor/golang.org/x/sys/unix/aliases.go create mode 100644 vendor/golang.org/x/sys/unix/asm_aix_ppc64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_bsd_386.s create mode 100644 vendor/golang.org/x/sys/unix/asm_bsd_amd64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_bsd_arm.s create mode 100644 vendor/golang.org/x/sys/unix/asm_bsd_arm64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_386.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_amd64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_arm.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_arm64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_loong64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_mips64x.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_mipsx.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_riscv64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_linux_s390x.s create mode 100644 vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_solaris_amd64.s create mode 100644 vendor/golang.org/x/sys/unix/asm_zos_s390x.s create mode 100644 vendor/golang.org/x/sys/unix/bluetooth_linux.go create mode 100644 vendor/golang.org/x/sys/unix/cap_freebsd.go create mode 100644 vendor/golang.org/x/sys/unix/constants.go create mode 100644 vendor/golang.org/x/sys/unix/dev_aix_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/dev_aix_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/dev_darwin.go create mode 100644 vendor/golang.org/x/sys/unix/dev_dragonfly.go create mode 100644 vendor/golang.org/x/sys/unix/dev_freebsd.go create mode 100644 vendor/golang.org/x/sys/unix/dev_linux.go create mode 100644 vendor/golang.org/x/sys/unix/dev_netbsd.go create mode 100644 vendor/golang.org/x/sys/unix/dev_openbsd.go create mode 100644 vendor/golang.org/x/sys/unix/dev_zos.go create mode 100644 vendor/golang.org/x/sys/unix/dirent.go create mode 100644 vendor/golang.org/x/sys/unix/endian_big.go create mode 100644 vendor/golang.org/x/sys/unix/endian_little.go create mode 100644 vendor/golang.org/x/sys/unix/env_unix.go create mode 100644 vendor/golang.org/x/sys/unix/epoll_zos.go create mode 100644 vendor/golang.org/x/sys/unix/fcntl.go create mode 100644 vendor/golang.org/x/sys/unix/fcntl_darwin.go create mode 100644 vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go create mode 100644 vendor/golang.org/x/sys/unix/fdset.go create mode 100644 vendor/golang.org/x/sys/unix/fstatfs_zos.go create mode 100644 vendor/golang.org/x/sys/unix/gccgo.go create mode 100644 vendor/golang.org/x/sys/unix/gccgo_c.c create mode 100644 vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ifreq_linux.go create mode 100644 vendor/golang.org/x/sys/unix/ioctl.go create mode 100644 vendor/golang.org/x/sys/unix/ioctl_linux.go create mode 100644 vendor/golang.org/x/sys/unix/ioctl_zos.go create mode 100644 vendor/golang.org/x/sys/unix/mkall.sh create mode 100644 vendor/golang.org/x/sys/unix/mkerrors.sh create mode 100644 vendor/golang.org/x/sys/unix/pagesize_unix.go create mode 100644 vendor/golang.org/x/sys/unix/pledge_openbsd.go create mode 100644 vendor/golang.org/x/sys/unix/ptrace_darwin.go create mode 100644 vendor/golang.org/x/sys/unix/ptrace_ios.go create mode 100644 vendor/golang.org/x/sys/unix/race.go create mode 100644 vendor/golang.org/x/sys/unix/race0.go create mode 100644 vendor/golang.org/x/sys/unix/readdirent_getdents.go create mode 100644 vendor/golang.org/x/sys/unix/readdirent_getdirentries.go create mode 100644 vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go create mode 100644 vendor/golang.org/x/sys/unix/sockcmsg_linux.go create mode 100644 vendor/golang.org/x/sys/unix/sockcmsg_unix.go create mode 100644 vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go create mode 100644 vendor/golang.org/x/sys/unix/syscall.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_aix.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_aix_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_bsd.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_dragonfly.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_hurd.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_hurd_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_illumos.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_alarm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_gc.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_loong64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_netbsd.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_netbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_solaris.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_unix.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_unix_gc.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_zos_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/sysvshm_linux.go create mode 100644 vendor/golang.org/x/sys/unix/sysvshm_unix.go create mode 100644 vendor/golang.org/x/sys/unix/sysvshm_unix_other.go create mode 100644 vendor/golang.org/x/sys/unix/timestruct.go create mode 100644 vendor/golang.org/x/sys/unix/unveil_openbsd.go create mode 100644 vendor/golang.org/x/sys/unix/xattr_bsd.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_386.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_mips.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go create mode 100644 vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go create mode 100644 vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go create mode 100644 vendor/golang.org/x/sys/unix/zptrace_x86_linux.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_386.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_arm.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_mips.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go create mode 100644 vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go delete mode 100644 vendor/golang.org/x/text/AUTHORS delete mode 100644 vendor/golang.org/x/text/CONTRIBUTORS delete mode 100644 vendor/google.golang.org/grpc/.travis.yml create mode 100644 vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md create mode 100644 vendor/google.golang.org/grpc/GOVERNANCE.md create mode 100644 vendor/google.golang.org/grpc/MAINTAINERS.md create mode 100644 vendor/google.golang.org/grpc/NOTICE.txt create mode 100644 vendor/google.golang.org/grpc/SECURITY.md create mode 100644 vendor/google.golang.org/grpc/attributes/attributes.go create mode 100644 vendor/google.golang.org/grpc/backoff/backoff.go delete mode 100644 vendor/google.golang.org/grpc/balancer.go create mode 100644 vendor/google.golang.org/grpc/balancer/conn_state_evaluator.go create mode 100644 vendor/google.golang.org/grpc/balancer/grpclb/state/state.go delete mode 100644 vendor/google.golang.org/grpc/balancer_v1_wrapper.go create mode 100644 vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go create mode 100644 vendor/google.golang.org/grpc/channelz/channelz.go delete mode 100644 vendor/google.golang.org/grpc/credentials/credentials_util_go17.go delete mode 100644 vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go create mode 100644 vendor/google.golang.org/grpc/credentials/insecure/insecure.go create mode 100644 vendor/google.golang.org/grpc/credentials/tls.go create mode 100644 vendor/google.golang.org/grpc/dialoptions.go delete mode 100644 vendor/google.golang.org/grpc/go16.go delete mode 100644 vendor/google.golang.org/grpc/go17.go delete mode 100644 vendor/google.golang.org/grpc/grpclb.go delete mode 100644 vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.pb.go delete mode 100644 vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.proto delete mode 100644 vendor/google.golang.org/grpc/grpclb_picker.go delete mode 100644 vendor/google.golang.org/grpc/grpclb_remote_balancer.go delete mode 100644 vendor/google.golang.org/grpc/grpclb_util.go create mode 100644 vendor/google.golang.org/grpc/grpclog/component.go create mode 100644 vendor/google.golang.org/grpc/internal/backoff/backoff.go create mode 100644 vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go create mode 100644 vendor/google.golang.org/grpc/internal/balancerload/load.go create mode 100644 vendor/google.golang.org/grpc/internal/binarylog/binarylog.go create mode 100644 vendor/google.golang.org/grpc/internal/binarylog/binarylog_testutil.go create mode 100644 vendor/google.golang.org/grpc/internal/binarylog/env_config.go create mode 100644 vendor/google.golang.org/grpc/internal/binarylog/method_logger.go create mode 100644 vendor/google.golang.org/grpc/internal/binarylog/sink.go create mode 100644 vendor/google.golang.org/grpc/internal/buffer/unbounded.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/funcs.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/id.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/logging.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/types.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/types_linux.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/types_nonlinux.go create mode 100644 vendor/google.golang.org/grpc/internal/channelz/util_linux.go rename vendor/google.golang.org/grpc/{resolver/dns/go18.go => internal/channelz/util_nonlinux.go} (72%) create mode 100644 vendor/google.golang.org/grpc/internal/credentials/credentials.go create mode 100644 vendor/google.golang.org/grpc/internal/credentials/spiffe.go create mode 100644 vendor/google.golang.org/grpc/internal/credentials/syscallconn.go rename vendor/google.golang.org/grpc/{credentials/credentials_util_go18.go => internal/credentials/util.go} (63%) create mode 100644 vendor/google.golang.org/grpc/internal/envconfig/envconfig.go create mode 100644 vendor/google.golang.org/grpc/internal/envconfig/observability.go create mode 100644 vendor/google.golang.org/grpc/internal/envconfig/xds.go create mode 100644 vendor/google.golang.org/grpc/internal/grpclog/grpclog.go create mode 100644 vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcsync/event.go rename vendor/google.golang.org/grpc/{naming/go17.go => internal/grpcsync/oncefunc.go} (61%) create mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/compressor.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/encode_duration.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/grpcutil.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/metadata.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/method.go create mode 100644 vendor/google.golang.org/grpc/internal/grpcutil/regex.go create mode 100644 vendor/google.golang.org/grpc/internal/metadata/metadata.go create mode 100644 vendor/google.golang.org/grpc/internal/pretty/pretty.go create mode 100644 vendor/google.golang.org/grpc/internal/resolver/config_selector.go create mode 100644 vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go rename vendor/google.golang.org/grpc/{ => internal}/resolver/passthrough/passthrough.go (78%) create mode 100644 vendor/google.golang.org/grpc/internal/resolver/unix/unix.go create mode 100644 vendor/google.golang.org/grpc/internal/serviceconfig/serviceconfig.go create mode 100644 vendor/google.golang.org/grpc/internal/status/status.go create mode 100644 vendor/google.golang.org/grpc/internal/syscall/syscall_linux.go create mode 100644 vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go rename vendor/google.golang.org/grpc/{ => internal}/transport/bdp_estimator.go (94%) create mode 100644 vendor/google.golang.org/grpc/internal/transport/controlbuf.go create mode 100644 vendor/google.golang.org/grpc/internal/transport/defaults.go create mode 100644 vendor/google.golang.org/grpc/internal/transport/flowcontrol.go rename vendor/google.golang.org/grpc/{ => internal}/transport/handler_server.go (69%) create mode 100644 vendor/google.golang.org/grpc/internal/transport/http2_client.go create mode 100644 vendor/google.golang.org/grpc/internal/transport/http2_server.go create mode 100644 vendor/google.golang.org/grpc/internal/transport/http_util.go create mode 100644 vendor/google.golang.org/grpc/internal/transport/networktype/networktype.go rename vendor/google.golang.org/grpc/{ => internal/transport}/proxy.go (60%) rename vendor/google.golang.org/grpc/{ => internal}/transport/transport.go (57%) create mode 100644 vendor/google.golang.org/grpc/internal/xds_handshake_cluster.go delete mode 100644 vendor/google.golang.org/grpc/naming/dns_resolver.go delete mode 100644 vendor/google.golang.org/grpc/naming/naming.go create mode 100644 vendor/google.golang.org/grpc/preloader.go create mode 100644 vendor/google.golang.org/grpc/regenerate.sh delete mode 100644 vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go delete mode 100644 vendor/google.golang.org/grpc/resolver/dns/go17.go create mode 100644 vendor/google.golang.org/grpc/resolver/map.go create mode 100644 vendor/google.golang.org/grpc/serviceconfig/serviceconfig.go delete mode 100644 vendor/google.golang.org/grpc/transport/control.go delete mode 100644 vendor/google.golang.org/grpc/transport/go16.go delete mode 100644 vendor/google.golang.org/grpc/transport/go17.go delete mode 100644 vendor/google.golang.org/grpc/transport/http2_client.go delete mode 100644 vendor/google.golang.org/grpc/transport/http2_server.go delete mode 100644 vendor/google.golang.org/grpc/transport/http_util.go delete mode 100644 vendor/google.golang.org/grpc/transport/log.go rename vendor/google.golang.org/grpc/{naming/go18.go => version.go} (76%) create mode 100644 vendor/google.golang.org/protobuf/LICENSE create mode 100644 vendor/google.golang.org/protobuf/PATENTS create mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/decode.go create mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/doc.go create mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/encode.go create mode 100644 vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go create mode 100644 vendor/google.golang.org/protobuf/encoding/prototext/decode.go create mode 100644 vendor/google.golang.org/protobuf/encoding/prototext/doc.go create mode 100644 vendor/google.golang.org/protobuf/encoding/prototext/encode.go create mode 100644 vendor/google.golang.org/protobuf/encoding/protowire/wire.go create mode 100644 vendor/google.golang.org/protobuf/internal/descfmt/stringer.go create mode 100644 vendor/google.golang.org/protobuf/internal/descopts/options.go create mode 100644 vendor/google.golang.org/protobuf/internal/detrand/rand.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/defval/default.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/json/encode.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/text/decode.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/text/doc.go create mode 100644 vendor/google.golang.org/protobuf/internal/encoding/text/encode.go create mode 100644 vendor/google.golang.org/protobuf/internal/errors/errors.go create mode 100644 vendor/google.golang.org/protobuf/internal/errors/is_go112.go create mode 100644 vendor/google.golang.org/protobuf/internal/errors/is_go113.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/build.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/desc.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go create mode 100644 vendor/google.golang.org/protobuf/internal/filetype/build.go create mode 100644 vendor/google.golang.org/protobuf/internal/flags/flags.go create mode 100644 vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go create mode 100644 vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/any_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/api_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/doc.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/duration_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/empty_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/field_mask_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/goname.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/map_entry.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/source_context_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/struct_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/timestamp_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/type_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/wrappers.go create mode 100644 vendor/google.golang.org/protobuf/internal/genid/wrappers_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/api_export.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/checkinit.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_extension.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_field.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_map.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_message.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_tables.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/convert.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/convert_list.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/convert_map.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/decode.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/encode.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/enum.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/extension.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/legacy_export.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/legacy_file.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/legacy_message.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/merge.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/merge_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/message.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/message_reflect.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/validate.go create mode 100644 vendor/google.golang.org/protobuf/internal/impl/weak.go create mode 100644 vendor/google.golang.org/protobuf/internal/msgfmt/format.go create mode 100644 vendor/google.golang.org/protobuf/internal/order/order.go create mode 100644 vendor/google.golang.org/protobuf/internal/order/range.go create mode 100644 vendor/google.golang.org/protobuf/internal/pragma/pragma.go create mode 100644 vendor/google.golang.org/protobuf/internal/set/ints.go create mode 100644 vendor/google.golang.org/protobuf/internal/strs/strings.go create mode 100644 vendor/google.golang.org/protobuf/internal/strs/strings_pure.go create mode 100644 vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go create mode 100644 vendor/google.golang.org/protobuf/internal/version/version.go create mode 100644 vendor/google.golang.org/protobuf/proto/checkinit.go create mode 100644 vendor/google.golang.org/protobuf/proto/decode.go create mode 100644 vendor/google.golang.org/protobuf/proto/decode_gen.go create mode 100644 vendor/google.golang.org/protobuf/proto/doc.go create mode 100644 vendor/google.golang.org/protobuf/proto/encode.go create mode 100644 vendor/google.golang.org/protobuf/proto/encode_gen.go create mode 100644 vendor/google.golang.org/protobuf/proto/equal.go create mode 100644 vendor/google.golang.org/protobuf/proto/extension.go create mode 100644 vendor/google.golang.org/protobuf/proto/merge.go create mode 100644 vendor/google.golang.org/protobuf/proto/messageset.go create mode 100644 vendor/google.golang.org/protobuf/proto/proto.go create mode 100644 vendor/google.golang.org/protobuf/proto/proto_methods.go create mode 100644 vendor/google.golang.org/protobuf/proto/proto_reflect.go create mode 100644 vendor/google.golang.org/protobuf/proto/reset.go create mode 100644 vendor/google.golang.org/protobuf/proto/size.go create mode 100644 vendor/google.golang.org/protobuf/proto/size_gen.go create mode 100644 vendor/google.golang.org/protobuf/proto/wrappers.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protodesc/proto.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protopath/path.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protopath/step.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protorange/range.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/source.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/type.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/value.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/value_equal.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go create mode 100644 vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go create mode 100644 vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go create mode 100644 vendor/google.golang.org/protobuf/runtime/protoiface/methods.go create mode 100644 vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go create mode 100644 vendor/google.golang.org/protobuf/runtime/protoimpl/version.go create mode 100644 vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/dynamicpb/dynamic.go create mode 100644 vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/apipb/api.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/sourcecontextpb/source_context.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/typepb/type.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go create mode 100644 vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go diff --git a/config.go b/config.go index 19f2b93..b35bf44 100644 --- a/config.go +++ b/config.go @@ -27,6 +27,7 @@ type Config struct { Meta bool `json:"meta"` EOS bool `json:"eos"` GRPC GRPCConfig `json:"grpc"` + UDP UDPConfig `json:"udp"` TLS TLSConfig `json:"tls"` Influx InfluxConfig `json:"influx"` Kafka *KafkaConfig `json:"kafka"` @@ -75,6 +76,12 @@ type GRPCConfig struct { WS int32 `json:"ws"` } +type UDPConfig struct { + Port int `json:"port"` + Host string `json:"host"` + Protos []string `json:"protos"` +} + // TLSConfig is to specify TLS params type TLSConfig struct { ClientCrt string `json:"clientcrt"` @@ -277,6 +284,9 @@ func (jctx *JCtx) isConfigChanged(new Config) bool { if !reflect.DeepEqual(old.Influx, new.Influx) { return true } + if !reflect.DeepEqual(old.UDP, new.UDP) { + return true + } return false } diff --git a/defaults.go b/defaults.go index 461c7c3..26c0b2f 100644 --- a/defaults.go +++ b/defaults.go @@ -17,4 +17,6 @@ const ( MatchExpressionXpath = "\\/([^\\/]*)\\[(.*?)+?(?:\\])" // MatchExpressionKey is for pattern matching the single and multiple key value pairs MatchExpressionKey = "([A-Za-z0-9-/]*)=(.*?)?(?: and |$)+" + // UDPMatchExpressionKey is for pattern matching the single and multiple key value pairs for UDP data + UDPMatchExpressionKey = "([A-Za-z0-9-_]*)=(?:'(.*?)'|\"(.*?)\")?(?: and |$)+" ) diff --git a/go.mod b/go.mod index b2649e0..06fe7db 100644 --- a/go.mod +++ b/go.mod @@ -1,22 +1,50 @@ module github.com/Juniper/jtimon -go 1.13 +go 1.17 require ( + github.com/Juniper/jtimon/schema v0.0.0 github.com/Shopify/sarama v1.26.1 - github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 // indirect - github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect - github.com/golang/protobuf v1.0.0 + github.com/beorn7/perks v1.0.1 // indirect + github.com/gogo/protobuf v1.3.2 + github.com/golang/protobuf v1.5.2 github.com/gorilla/mux v1.8.0 github.com/influxdata/influxdb v1.5.2 - github.com/matttproud/golang_protobuf_extensions v1.0.0 // indirect + github.com/jhump/protoreflect v1.15.1 + github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/prometheus/client_golang v0.8.0 - github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/spf13/pflag v1.0.1 + golang.org/x/net v0.7.0 + google.golang.org/grpc v1.53.0 + google.golang.org/protobuf v1.28.2-0.20230222093303-bc1253ad3743 +) + +require ( + github.com/bufbuild/protocompile v0.4.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/eapache/go-resiliency v1.2.0 // indirect + github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect + github.com/eapache/queue v1.1.0 // indirect + github.com/golang/snappy v0.0.3 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect + github.com/jcmturner/gofork v1.0.0 // indirect + github.com/klauspost/compress v1.9.8 // indirect + github.com/pierrec/lz4 v2.4.1+incompatible // indirect github.com/prometheus/common v0.0.0-20180413074202-d0f7cd64bda4 // indirect github.com/prometheus/procfs v0.0.0-20180408092902-8b1c2da0d56d // indirect - github.com/spf13/pflag v1.0.1 - golang.org/x/net v0.0.0-20210917221730-978cfadd31cf - golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a // indirect - google.golang.org/genproto v0.0.0-20180413175816-7fd901a49ba6 // indirect - google.golang.org/grpc v1.11.3 + github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 // indirect + golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa // indirect + golang.org/x/sync v0.1.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect + gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect + gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect + gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect + gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect ) + +replace github.com/Juniper/jtimon/schema => ./schema + +replace github.com/Juniper/jtimon/schema/telemetry_top => ./schema/telemetry_top diff --git a/go.sum b/go.sum index 6a35780..2f20b55 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,424 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= +cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= +cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= +cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= +cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o= +cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk= +cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc= +cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc= +cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04= +cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno= +cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0= +cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ= +cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo= +cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8= +cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM= +cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc= +cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI= +cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE= +cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE= +cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4= +cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/bigquery v1.43.0/go.mod h1:ZMQcXHsl+xmU1z36G2jNGZmKp9zNY5BUua5wDgmNCfw= +cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI= +cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0= +cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk= +cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg= +cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590= +cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk= +cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk= +cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U= +cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA= +cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM= +cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4= +cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.12.0/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute v1.15.1/go.mod h1:bjjoF/NtFUrkD/urWfdHaKuOPDR5nWIs63rR+SXhcpA= +cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= +cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= +cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck= +cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg= +cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE= +cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0= +cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38= +cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA= +cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A= +cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s= +cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g= +cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4= +cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c= +cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek= +cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0= +cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM= +cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k= +cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= +cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI= +cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8= +cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc= +cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw= +cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= +cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI= +cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY= +cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= +cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= +cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60= +cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA= +cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM= +cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o= +cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc= +cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= +cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc= +cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A= +cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM= +cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY= +cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs= +cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g= +cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA= +cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg= +cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE= +cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw= +cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE= +cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= +cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE= +cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM= +cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA= +cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8= +cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI= +cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk= +cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM= +cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8= +cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8= +cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA= +cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0= +cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4= +cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs= +cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA= +cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk= +cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE= +cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo= +cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70= +cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg= +cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/pubsub v1.26.0/go.mod h1:QgBH3U/jdJy/ftjPhTkyXNj543Tin1pRYcdcPRnFIRI= +cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0= +cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE= +cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs= +cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA= +cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM= +cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA= +cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0= +cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU= +cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc= +cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y= +cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do= +cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk= +cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4= +cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q= +cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk= +cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk= +cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU= +cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4= +cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U= +cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco= +cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo= +cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E= +cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU= +cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4= +cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw= +cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0= +cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= +cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM= +cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA= +cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8= +cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4= +cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ= +cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg= +cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28= +cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y= +cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs= +cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg= +cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk= +cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M= +cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY= +cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E= +cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE= +cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g= +cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208= +cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w= +cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc= +cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A= +cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo= +cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= +cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/Shopify/sarama v1.26.1 h1:3jnfWKD7gVwbB1KSy/lE0szA9duPuSFLViK0o/d3DgA= github.com/Shopify/sarama v1.26.1/go.mod h1:NbSGBSSndYaIhRcBtY9V0U7AyH+x71bG668AuWys/yU= github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -13,86 +428,747 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8 github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= +github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo= +github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/frankban/quicktest v1.7.2 h1:2QxQoC1TS09S7fhCPsrvqYdvP1H5M1P1ih5ABm3BTYk= github.com/frankban/quicktest v1.7.2/go.mod h1:jaStnuzAqU1AJdCO0l53JDCJrVDKcS03DbaAcR7Ks/o= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/protobuf v1.0.0 h1:lsek0oXi8iFE9L+EXARyHIjU5rlWIhhTkjDz3vHhWWQ= -github.com/golang/protobuf v1.0.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= +github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3/go.mod h1:o//XUCC/F+yRGJoPO/VU0GSB0f8Nhgmxx0VIRUvaC0w= github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/influxdata/influxdb v1.5.2 h1:8aMxqeraY0u+2KCbuyv0F8AJolFZnrEUJaJEhavAr/4= github.com/influxdata/influxdb v1.5.2/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= +github.com/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= +github.com/jhump/gopoet v0.1.0/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= +github.com/jhump/goprotoc v0.5.0/go.mod h1:VrbvcYrQOrTi3i0Vf+m+oqQWk9l72mjkJCYo7UvLHRQ= +github.com/jhump/protoreflect v1.11.0/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= +github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= +github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.9.8 h1:VMAMUUOh+gaxKTMk+zqbjsSjsIcUcL/LF4o63i82QyA= github.com/klauspost/compress v1.9.8/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/matttproud/golang_protobuf_extensions v1.0.0 h1:YNOwxxSJzSUARoD9KRZLzM9Y858MNGCOACTvCW9TSAc= -github.com/matttproud/golang_protobuf_extensions v1.0.0/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= +github.com/lyft/protoc-gen-star v0.6.1/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/pierrec/lz4 v2.4.1+incompatible h1:mFe7ttWaflA46Mhqh+jUfjp2qTbPYxLB2/OyBppH9dg= github.com/pierrec/lz4 v2.4.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v0.8.0 h1:1921Yw9Gc3iSc4VQh3PIoOqgPCZS7G/4xQNVUp8Mda8= github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5 h1:cLL6NowurKLMfCeQy4tIeph12XNQWgANCNvdyrOYKV4= -github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.0.0-20180413074202-d0f7cd64bda4 h1:rPmL0pCWefiqV7RjMYuBUrLbMJmNVjRKz82caELPTUQ= github.com/prometheus/common v0.0.0-20180413074202-d0f7cd64bda4/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/procfs v0.0.0-20180408092902-8b1c2da0d56d h1:RCcsxyRr6+/pLg6wr0cUjPovhEhSNOtPh0SOz6u3hGU= github.com/prometheus/procfs v0.0.0-20180408092902-8b1c2da0d56d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 h1:dY6ETXrvDG7Sa4vE8ZQG4yqWg6UnOcbqTAahkV813vQ= github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= +github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/pflag v1.0.1 h1:aCvUg6QPl3ibpQUxyLkrEkCHtPqYJL4x9AuhqVqFis4= github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72 h1:+ELyKg6m8UBf0nPFSqD0mi7zUfwPyXo23HNjMnXPz7w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa h1:idItI2DDfCokpg0N51B2VtiLdJ4vAuXC9fnCb2gACo4= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210917221730-978cfadd31cf h1:R150MpwJIv1MpS0N/pc+NhTM8ajzvlmxlY5OYsrevXQ= -golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a h1:WXEvlFVvvGxCJLG6REjsT03iWnKLEWinaScsxF2Vm2o= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20180413175816-7fd901a49ba6 h1:VrRtqEIrO5wUzNwL/A2WTNUtDuAtvb3KPK3OrUriLqI= -google.golang.org/genproto v0.0.0-20180413175816-7fd901a49ba6/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/grpc v1.11.3 h1:yy64MFk0j8qZbdXVA0MaSE+s/+6nCUdiyf1uNSjAz0c= -google.golang.org/grpc v1.11.3/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo= +google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220329172620-7be39ac1afc7/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221024153911-1573dae28c9c/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221117204609-8f9c96812029/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= +google.golang.org/grpc v1.53.0 h1:LAv2ds7cmFV/XTS3XG1NneeENYrXGmorPxsBbptIjNc= +google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.2-0.20230222093303-bc1253ad3743 h1:yqElulDvOF26oZ2O+2/aoX7mQ8DY/6+p39neytrycd8= +google.golang.org/protobuf v1.28.2-0.20230222093303-bc1253ad3743/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/jcmturner/aescts.v1 v1.0.1 h1:cVVZBK2b1zY26haWB4vbBiZrfFQnfbTVrE3xZq6hrEw= gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo= gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM= @@ -104,5 +1180,18 @@ gopkg.in/jcmturner/gokrb5.v7 v7.5.0/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuv gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU= gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/main.go b/main.go index 5d71645..191abff 100644 --- a/main.go +++ b/main.go @@ -23,6 +23,7 @@ var ( prom = flag.Bool("prometheus", false, "Stats for prometheus monitoring system") promHost = flag.String("prometheus-host", "127.0.0.1", "IP to bind Prometheus service to") promPort = flag.Int32("prometheus-port", 8090, "Prometheus port") + udp = flag.Bool("udp", false, "Stats for udp monitoring system") prefixCheck = flag.Bool("prefix-check", false, "Report missing __prefix__ in telemetry packet") pProf = flag.Bool("pprof", false, "Profile JTIMON") pProfPort = flag.Int32("pprof-port", 6060, "Profile port") @@ -73,9 +74,13 @@ func main() { return } - workers := NewJWorkers(*configFiles, *configFileList, *maxRun) - workers.StartWorkers() - workers.Wait() + if *udp { + udpWork(configFiles) + } else { + workers := NewJWorkers(*configFiles, *configFileList, *maxRun) + workers.StartWorkers() + workers.Wait() + } log.Printf("all done ... exiting!") } diff --git a/multi-vendor/cisco/iosxr/telemetry-proto/telemetry.pb.go b/multi-vendor/cisco/iosxr/telemetry-proto/telemetry.pb.go deleted file mode 100644 index 9b589b1..0000000 --- a/multi-vendor/cisco/iosxr/telemetry-proto/telemetry.pb.go +++ /dev/null @@ -1,758 +0,0 @@ -// Code generated by protoc-gen-go. -// source: telemetry.proto -// DO NOT EDIT! - -/* -Package telemetry is a generated protocol buffer package. - -It is generated from these files: - telemetry.proto - -It has these top-level messages: - Telemetry - TelemetryField - TelemetryGPBTable - TelemetryRowGPB -*/ -package telemetry - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -// Telemetry message is the outermost payload message used to stream -// telemetry in a Model Driven Telemetry (MDT) system. MDT provides a -// mechanism for an external entity to subscribe to a data set defined in -// a Yang model and receive periodic or event-based updates of the data -// set from an MDT-capable device. -type Telemetry struct { - // - // node_id_str is a string encoded unique node ID of the MDT-capable - // device producing the message. (node_id_uuid alternative is not currently - // produced in IOS-XR) - // - // Types that are valid to be assigned to NodeId: - // *Telemetry_NodeIdStr - NodeId isTelemetry_NodeId `protobuf_oneof:"node_id"` - // - // subscription_id_str is the name of the subscription against which - // this content is being produced. (subscription_id alternative is not - // currently produced in IOS-XR) - // - // Types that are valid to be assigned to Subscription: - // *Telemetry_SubscriptionIdStr - Subscription isTelemetry_Subscription `protobuf_oneof:"subscription"` - // - // sensor_path is not currently produced in IOS-XR - // string sensor_path = 5; - // - // encoding_path is the Yang path leading to the content in this message. - // The Yang tree encoded in the content section of this message is rooted - // at the point described by the encoding_path. - EncodingPath string `protobuf:"bytes,6,opt,name=encoding_path,json=encodingPath" json:"encoding_path,omitempty"` - // - // model_version is not currently produced in IOS-XR - // string model_version = 7; - // - // collection_id identifies messages belonging to a collection round. - // Multiple message may be generated from a collection round. - CollectionId uint64 `protobuf:"varint,8,opt,name=collection_id,json=collectionId" json:"collection_id,omitempty"` - // - // collection_start_time is the time when the collection identified by - // the collection_id begins - encoded as milliseconds since the epoch. - // If a single collection is spread over multiple Telemetry Messages, - // collection_start_time may be encoded in the first Telemetry Message - // for the collection only. - CollectionStartTime uint64 `protobuf:"varint,9,opt,name=collection_start_time,json=collectionStartTime" json:"collection_start_time,omitempty"` - // - // msg_timestamp is the time when the data encoded in the Telemetry - // message is generated - encoded as milliseconds since the epoch. - MsgTimestamp uint64 `protobuf:"varint,10,opt,name=msg_timestamp,json=msgTimestamp" json:"msg_timestamp,omitempty"` - // - // data_gpbkv contains the payload data if data is being encoded in the - // self-describing GPB-KV format. - DataGpbkv []*TelemetryField `protobuf:"bytes,11,rep,name=data_gpbkv,json=dataGpbkv" json:"data_gpbkv,omitempty"` - // - // data_gpb contains the payload data if data is being encoded as - // serialised GPB messages. - DataGpb *TelemetryGPBTable `protobuf:"bytes,12,opt,name=data_gpb,json=dataGpb" json:"data_gpb,omitempty"` - // - // collection_end_time is the timestamp when the last Telemetry message - // for a collection has been encoded - encoded as milliseconds since the - // epoch. If a single collection is spread over multiple Telemetry - // messages, collection_end_time is encoded in the last Telemetry Message - // for the collection only. - CollectionEndTime uint64 `protobuf:"varint,13,opt,name=collection_end_time,json=collectionEndTime" json:"collection_end_time,omitempty"` -} - -func (m *Telemetry) Reset() { *m = Telemetry{} } -func (m *Telemetry) String() string { return proto.CompactTextString(m) } -func (*Telemetry) ProtoMessage() {} -func (*Telemetry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type isTelemetry_NodeId interface { - isTelemetry_NodeId() -} -type isTelemetry_Subscription interface { - isTelemetry_Subscription() -} - -type Telemetry_NodeIdStr struct { - NodeIdStr string `protobuf:"bytes,1,opt,name=node_id_str,json=nodeIdStr,oneof"` -} -type Telemetry_SubscriptionIdStr struct { - SubscriptionIdStr string `protobuf:"bytes,3,opt,name=subscription_id_str,json=subscriptionIdStr,oneof"` -} - -func (*Telemetry_NodeIdStr) isTelemetry_NodeId() {} -func (*Telemetry_SubscriptionIdStr) isTelemetry_Subscription() {} - -func (m *Telemetry) GetNodeId() isTelemetry_NodeId { - if m != nil { - return m.NodeId - } - return nil -} -func (m *Telemetry) GetSubscription() isTelemetry_Subscription { - if m != nil { - return m.Subscription - } - return nil -} - -func (m *Telemetry) GetNodeIdStr() string { - if x, ok := m.GetNodeId().(*Telemetry_NodeIdStr); ok { - return x.NodeIdStr - } - return "" -} - -func (m *Telemetry) GetSubscriptionIdStr() string { - if x, ok := m.GetSubscription().(*Telemetry_SubscriptionIdStr); ok { - return x.SubscriptionIdStr - } - return "" -} - -func (m *Telemetry) GetEncodingPath() string { - if m != nil { - return m.EncodingPath - } - return "" -} - -func (m *Telemetry) GetCollectionId() uint64 { - if m != nil { - return m.CollectionId - } - return 0 -} - -func (m *Telemetry) GetCollectionStartTime() uint64 { - if m != nil { - return m.CollectionStartTime - } - return 0 -} - -func (m *Telemetry) GetMsgTimestamp() uint64 { - if m != nil { - return m.MsgTimestamp - } - return 0 -} - -func (m *Telemetry) GetDataGpbkv() []*TelemetryField { - if m != nil { - return m.DataGpbkv - } - return nil -} - -func (m *Telemetry) GetDataGpb() *TelemetryGPBTable { - if m != nil { - return m.DataGpb - } - return nil -} - -func (m *Telemetry) GetCollectionEndTime() uint64 { - if m != nil { - return m.CollectionEndTime - } - return 0 -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Telemetry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _Telemetry_OneofMarshaler, _Telemetry_OneofUnmarshaler, _Telemetry_OneofSizer, []interface{}{ - (*Telemetry_NodeIdStr)(nil), - (*Telemetry_SubscriptionIdStr)(nil), - } -} - -func _Telemetry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Telemetry) - // node_id - switch x := m.NodeId.(type) { - case *Telemetry_NodeIdStr: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.NodeIdStr) - case nil: - default: - return fmt.Errorf("Telemetry.NodeId has unexpected type %T", x) - } - // subscription - switch x := m.Subscription.(type) { - case *Telemetry_SubscriptionIdStr: - b.EncodeVarint(3<<3 | proto.WireBytes) - b.EncodeStringBytes(x.SubscriptionIdStr) - case nil: - default: - return fmt.Errorf("Telemetry.Subscription has unexpected type %T", x) - } - return nil -} - -func _Telemetry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Telemetry) - switch tag { - case 1: // node_id.node_id_str - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.NodeId = &Telemetry_NodeIdStr{x} - return true, err - case 3: // subscription.subscription_id_str - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Subscription = &Telemetry_SubscriptionIdStr{x} - return true, err - default: - return false, nil - } -} - -func _Telemetry_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Telemetry) - // node_id - switch x := m.NodeId.(type) { - case *Telemetry_NodeIdStr: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.NodeIdStr))) - n += len(x.NodeIdStr) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - // subscription - switch x := m.Subscription.(type) { - case *Telemetry_SubscriptionIdStr: - n += proto.SizeVarint(3<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.SubscriptionIdStr))) - n += len(x.SubscriptionIdStr) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -// -// TelemetryField messages are used to export content in the self -// describing GPB KV form. The TelemetryField message is sufficient to -// decode telemetry messages for all models. KV-GPB encoding is very -// similar in concept, to JSON encoding -type TelemetryField struct { - // - // timestamp represents the starting time of the generation of data - // starting from this key, value pair in this message - encoded as - // milliseconds since the epoch. It is encoded when different from the - // msg_timestamp in the containing Telemetry Message. This field can be - // omitted if the value is the same as a TelemetryField message up the - // hierarchy within the same Telemetry Message as well. - Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` - // - // name: string encoding of the name in the key, value pair. It is - // the corresponding YANG element name. - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - // - // value_by_type, if present, for the corresponding YANG element - // represented by the name field in the same TelemetryField message. The - // value is encoded to the matching type as defined in the YANG model. - // YANG models often define new types (derived types) using one or more - // base types. The types included in the oneof grouping is sufficient to - // represent such derived types. Derived types represented as a Yang - // container are encoded using the nesting primitive defined in this - // encoding proposal. - // - // Types that are valid to be assigned to ValueByType: - // *TelemetryField_BytesValue - // *TelemetryField_StringValue - // *TelemetryField_BoolValue - // *TelemetryField_Uint32Value - // *TelemetryField_Uint64Value - // *TelemetryField_Sint32Value - // *TelemetryField_Sint64Value - // *TelemetryField_DoubleValue - // *TelemetryField_FloatValue - ValueByType isTelemetryField_ValueByType `protobuf_oneof:"value_by_type"` - // - // The Yang model may include nesting (e.g hierarchy of containers). The - // next level of nesting, if present, is encoded, starting from fields. - Fields []*TelemetryField `protobuf:"bytes,15,rep,name=fields" json:"fields,omitempty"` -} - -func (m *TelemetryField) Reset() { *m = TelemetryField{} } -func (m *TelemetryField) String() string { return proto.CompactTextString(m) } -func (*TelemetryField) ProtoMessage() {} -func (*TelemetryField) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type isTelemetryField_ValueByType interface { - isTelemetryField_ValueByType() -} - -type TelemetryField_BytesValue struct { - BytesValue []byte `protobuf:"bytes,4,opt,name=bytes_value,json=bytesValue,proto3,oneof"` -} -type TelemetryField_StringValue struct { - StringValue string `protobuf:"bytes,5,opt,name=string_value,json=stringValue,oneof"` -} -type TelemetryField_BoolValue struct { - BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,oneof"` -} -type TelemetryField_Uint32Value struct { - Uint32Value uint32 `protobuf:"varint,7,opt,name=uint32_value,json=uint32Value,oneof"` -} -type TelemetryField_Uint64Value struct { - Uint64Value uint64 `protobuf:"varint,8,opt,name=uint64_value,json=uint64Value,oneof"` -} -type TelemetryField_Sint32Value struct { - Sint32Value int32 `protobuf:"zigzag32,9,opt,name=sint32_value,json=sint32Value,oneof"` -} -type TelemetryField_Sint64Value struct { - Sint64Value int64 `protobuf:"zigzag64,10,opt,name=sint64_value,json=sint64Value,oneof"` -} -type TelemetryField_DoubleValue struct { - DoubleValue float64 `protobuf:"fixed64,11,opt,name=double_value,json=doubleValue,oneof"` -} -type TelemetryField_FloatValue struct { - FloatValue float32 `protobuf:"fixed32,12,opt,name=float_value,json=floatValue,oneof"` -} - -func (*TelemetryField_BytesValue) isTelemetryField_ValueByType() {} -func (*TelemetryField_StringValue) isTelemetryField_ValueByType() {} -func (*TelemetryField_BoolValue) isTelemetryField_ValueByType() {} -func (*TelemetryField_Uint32Value) isTelemetryField_ValueByType() {} -func (*TelemetryField_Uint64Value) isTelemetryField_ValueByType() {} -func (*TelemetryField_Sint32Value) isTelemetryField_ValueByType() {} -func (*TelemetryField_Sint64Value) isTelemetryField_ValueByType() {} -func (*TelemetryField_DoubleValue) isTelemetryField_ValueByType() {} -func (*TelemetryField_FloatValue) isTelemetryField_ValueByType() {} - -func (m *TelemetryField) GetValueByType() isTelemetryField_ValueByType { - if m != nil { - return m.ValueByType - } - return nil -} - -func (m *TelemetryField) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -func (m *TelemetryField) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *TelemetryField) GetBytesValue() []byte { - if x, ok := m.GetValueByType().(*TelemetryField_BytesValue); ok { - return x.BytesValue - } - return nil -} - -func (m *TelemetryField) GetStringValue() string { - if x, ok := m.GetValueByType().(*TelemetryField_StringValue); ok { - return x.StringValue - } - return "" -} - -func (m *TelemetryField) GetBoolValue() bool { - if x, ok := m.GetValueByType().(*TelemetryField_BoolValue); ok { - return x.BoolValue - } - return false -} - -func (m *TelemetryField) GetUint32Value() uint32 { - if x, ok := m.GetValueByType().(*TelemetryField_Uint32Value); ok { - return x.Uint32Value - } - return 0 -} - -func (m *TelemetryField) GetUint64Value() uint64 { - if x, ok := m.GetValueByType().(*TelemetryField_Uint64Value); ok { - return x.Uint64Value - } - return 0 -} - -func (m *TelemetryField) GetSint32Value() int32 { - if x, ok := m.GetValueByType().(*TelemetryField_Sint32Value); ok { - return x.Sint32Value - } - return 0 -} - -func (m *TelemetryField) GetSint64Value() int64 { - if x, ok := m.GetValueByType().(*TelemetryField_Sint64Value); ok { - return x.Sint64Value - } - return 0 -} - -func (m *TelemetryField) GetDoubleValue() float64 { - if x, ok := m.GetValueByType().(*TelemetryField_DoubleValue); ok { - return x.DoubleValue - } - return 0 -} - -func (m *TelemetryField) GetFloatValue() float32 { - if x, ok := m.GetValueByType().(*TelemetryField_FloatValue); ok { - return x.FloatValue - } - return 0 -} - -func (m *TelemetryField) GetFields() []*TelemetryField { - if m != nil { - return m.Fields - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TelemetryField) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TelemetryField_OneofMarshaler, _TelemetryField_OneofUnmarshaler, _TelemetryField_OneofSizer, []interface{}{ - (*TelemetryField_BytesValue)(nil), - (*TelemetryField_StringValue)(nil), - (*TelemetryField_BoolValue)(nil), - (*TelemetryField_Uint32Value)(nil), - (*TelemetryField_Uint64Value)(nil), - (*TelemetryField_Sint32Value)(nil), - (*TelemetryField_Sint64Value)(nil), - (*TelemetryField_DoubleValue)(nil), - (*TelemetryField_FloatValue)(nil), - } -} - -func _TelemetryField_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TelemetryField) - // value_by_type - switch x := m.ValueByType.(type) { - case *TelemetryField_BytesValue: - b.EncodeVarint(4<<3 | proto.WireBytes) - b.EncodeRawBytes(x.BytesValue) - case *TelemetryField_StringValue: - b.EncodeVarint(5<<3 | proto.WireBytes) - b.EncodeStringBytes(x.StringValue) - case *TelemetryField_BoolValue: - t := uint64(0) - if x.BoolValue { - t = 1 - } - b.EncodeVarint(6<<3 | proto.WireVarint) - b.EncodeVarint(t) - case *TelemetryField_Uint32Value: - b.EncodeVarint(7<<3 | proto.WireVarint) - b.EncodeVarint(uint64(x.Uint32Value)) - case *TelemetryField_Uint64Value: - b.EncodeVarint(8<<3 | proto.WireVarint) - b.EncodeVarint(uint64(x.Uint64Value)) - case *TelemetryField_Sint32Value: - b.EncodeVarint(9<<3 | proto.WireVarint) - b.EncodeZigzag32(uint64(x.Sint32Value)) - case *TelemetryField_Sint64Value: - b.EncodeVarint(10<<3 | proto.WireVarint) - b.EncodeZigzag64(uint64(x.Sint64Value)) - case *TelemetryField_DoubleValue: - b.EncodeVarint(11<<3 | proto.WireFixed64) - b.EncodeFixed64(math.Float64bits(x.DoubleValue)) - case *TelemetryField_FloatValue: - b.EncodeVarint(12<<3 | proto.WireFixed32) - b.EncodeFixed32(uint64(math.Float32bits(x.FloatValue))) - case nil: - default: - return fmt.Errorf("TelemetryField.ValueByType has unexpected type %T", x) - } - return nil -} - -func _TelemetryField_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TelemetryField) - switch tag { - case 4: // value_by_type.bytes_value - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.ValueByType = &TelemetryField_BytesValue{x} - return true, err - case 5: // value_by_type.string_value - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.ValueByType = &TelemetryField_StringValue{x} - return true, err - case 6: // value_by_type.bool_value - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.ValueByType = &TelemetryField_BoolValue{x != 0} - return true, err - case 7: // value_by_type.uint32_value - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.ValueByType = &TelemetryField_Uint32Value{uint32(x)} - return true, err - case 8: // value_by_type.uint64_value - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.ValueByType = &TelemetryField_Uint64Value{x} - return true, err - case 9: // value_by_type.sint32_value - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeZigzag32() - m.ValueByType = &TelemetryField_Sint32Value{int32(x)} - return true, err - case 10: // value_by_type.sint64_value - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeZigzag64() - m.ValueByType = &TelemetryField_Sint64Value{int64(x)} - return true, err - case 11: // value_by_type.double_value - if wire != proto.WireFixed64 { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeFixed64() - m.ValueByType = &TelemetryField_DoubleValue{math.Float64frombits(x)} - return true, err - case 12: // value_by_type.float_value - if wire != proto.WireFixed32 { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeFixed32() - m.ValueByType = &TelemetryField_FloatValue{math.Float32frombits(uint32(x))} - return true, err - default: - return false, nil - } -} - -func _TelemetryField_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TelemetryField) - // value_by_type - switch x := m.ValueByType.(type) { - case *TelemetryField_BytesValue: - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.BytesValue))) - n += len(x.BytesValue) - case *TelemetryField_StringValue: - n += proto.SizeVarint(5<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.StringValue))) - n += len(x.StringValue) - case *TelemetryField_BoolValue: - n += proto.SizeVarint(6<<3 | proto.WireVarint) - n += 1 - case *TelemetryField_Uint32Value: - n += proto.SizeVarint(7<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(x.Uint32Value)) - case *TelemetryField_Uint64Value: - n += proto.SizeVarint(8<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(x.Uint64Value)) - case *TelemetryField_Sint32Value: - n += proto.SizeVarint(9<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64((uint32(x.Sint32Value) << 1) ^ uint32((int32(x.Sint32Value) >> 31)))) - case *TelemetryField_Sint64Value: - n += proto.SizeVarint(10<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(uint64(x.Sint64Value<<1) ^ uint64((int64(x.Sint64Value) >> 63)))) - case *TelemetryField_DoubleValue: - n += proto.SizeVarint(11<<3 | proto.WireFixed64) - n += 8 - case *TelemetryField_FloatValue: - n += proto.SizeVarint(12<<3 | proto.WireFixed32) - n += 4 - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -// TelemetryGPBTable contains a repeated number of TelemetryRowGPB, -// each of which represents content from a subtree instance in the -// the YANG model. For example; a TelemetryGPBTable might contain -// the interface statistics of a collection of interfaces. -type TelemetryGPBTable struct { - Row []*TelemetryRowGPB `protobuf:"bytes,1,rep,name=row" json:"row,omitempty"` -} - -func (m *TelemetryGPBTable) Reset() { *m = TelemetryGPBTable{} } -func (m *TelemetryGPBTable) String() string { return proto.CompactTextString(m) } -func (*TelemetryGPBTable) ProtoMessage() {} -func (*TelemetryGPBTable) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *TelemetryGPBTable) GetRow() []*TelemetryRowGPB { - if m != nil { - return m.Row - } - return nil -} - -// -// TelemetryRowGPB, in conjunction with the Telemetry encoding_path and -// model_version, unambiguously represents the root of a subtree in -// the YANG model, and content from that subtree encoded in serialised -// GPB messages. For example; a TelemetryRowGPB might contain the -// interface statistics of one interface. Per encoding-path .proto -// messages are required to decode keys/content pairs below. -type TelemetryRowGPB struct { - // - // timestamp at which the data for this instance of the TelemetryRowGPB - // message was generated by an MDT-capable device - encoded as - // milliseconds since the epoch. When included, this is typically - // different from the msg_timestamp in the containing Telemetry message. - Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` - // - // keys: if the encoding-path includes one or more list elements, and/or - // ends in a list element, the keys field is a GPB encoded message that - // contains the sequence of key values for each such list element in the - // encoding-path traversed starting from the root. The set of keys - // unambiguously identifies the instance of data encoded in the - // TelemetryRowGPB message. Corresponding protobuf message definition will - // be required to decode the byte stream. The encoding_path field in - // Telemetry message, together with model_version field should be - // sufficient to identify the corresponding protobuf message. - Keys []byte `protobuf:"bytes,10,opt,name=keys,proto3" json:"keys,omitempty"` - // - // content: the content field is a GPB encoded message that contains the - // data for the corresponding encoding-path. A separate decoding pass - // would be performed by consumer with the content field as a GPB message - // and the matching .proto used to decode the message. Corresponding - // protobuf message definition will be required to decode the byte - // stream. The encoding_path field in Telemetry message, together with - // model_version field should be sufficient to identify the corresponding - // protobuf message. The decoded combination of keys (when present) and - // content, unambiguously represents an instance of the data set, as - // defined in the Yang model, identified by the encoding-path in the - // containing Telemetry message. - Content []byte `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` -} - -func (m *TelemetryRowGPB) Reset() { *m = TelemetryRowGPB{} } -func (m *TelemetryRowGPB) String() string { return proto.CompactTextString(m) } -func (*TelemetryRowGPB) ProtoMessage() {} -func (*TelemetryRowGPB) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *TelemetryRowGPB) GetTimestamp() uint64 { - if m != nil { - return m.Timestamp - } - return 0 -} - -func (m *TelemetryRowGPB) GetKeys() []byte { - if m != nil { - return m.Keys - } - return nil -} - -func (m *TelemetryRowGPB) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -func init() { - proto.RegisterType((*Telemetry)(nil), "telemetry.Telemetry") - proto.RegisterType((*TelemetryField)(nil), "telemetry.TelemetryField") - proto.RegisterType((*TelemetryGPBTable)(nil), "telemetry.TelemetryGPBTable") - proto.RegisterType((*TelemetryRowGPB)(nil), "telemetry.TelemetryRowGPB") -} - -func init() { proto.RegisterFile("telemetry.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 546 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x94, 0x41, 0x6f, 0x9b, 0x40, - 0x10, 0x85, 0xb3, 0xb1, 0x6b, 0x9b, 0x01, 0xc7, 0xf2, 0x46, 0x95, 0xb6, 0x55, 0xa4, 0x12, 0xe7, - 0xc2, 0xa1, 0xb2, 0x5a, 0x27, 0x4a, 0x7b, 0xad, 0xa5, 0xd6, 0xc9, 0xcd, 0xda, 0x58, 0xbd, 0x55, - 0x08, 0xcc, 0xc6, 0x41, 0x01, 0x16, 0xb1, 0xeb, 0x44, 0xfe, 0x77, 0xbd, 0xf7, 0x4f, 0x55, 0xb3, - 0x80, 0xc1, 0x6d, 0xa4, 0xdc, 0xe0, 0xcd, 0x37, 0x4f, 0xc3, 0xcc, 0x13, 0x30, 0xd2, 0x22, 0x11, - 0xa9, 0xd0, 0xc5, 0x6e, 0x9a, 0x17, 0x52, 0x4b, 0x6a, 0xed, 0x85, 0xc9, 0xef, 0x0e, 0x58, 0xab, - 0xfa, 0x8d, 0xba, 0x60, 0x67, 0x32, 0x12, 0x7e, 0x1c, 0xf9, 0x4a, 0x17, 0x8c, 0xb8, 0xc4, 0xb3, - 0x6e, 0x8e, 0xb8, 0x85, 0xe2, 0x6d, 0x74, 0xa7, 0x0b, 0xfa, 0x09, 0x4e, 0xd5, 0x36, 0x54, 0xeb, - 0x22, 0xce, 0x75, 0x2c, 0xb3, 0x9a, 0xec, 0x18, 0x92, 0xf0, 0x71, 0xbb, 0x58, 0x76, 0x5c, 0xc0, - 0x50, 0x64, 0x6b, 0x19, 0xc5, 0xd9, 0xc6, 0xcf, 0x03, 0xfd, 0xc0, 0x7a, 0xc8, 0x72, 0xa7, 0x16, - 0x97, 0x81, 0x7e, 0x40, 0x68, 0x2d, 0x93, 0x44, 0xac, 0x2b, 0x53, 0x36, 0x70, 0x89, 0xd7, 0xe5, - 0x4e, 0x23, 0xde, 0x46, 0x74, 0x06, 0x6f, 0x5b, 0x90, 0xd2, 0x41, 0xa1, 0x7d, 0x1d, 0xa7, 0x82, - 0x59, 0x06, 0x3e, 0x6d, 0x8a, 0x77, 0x58, 0x5b, 0xc5, 0xa9, 0x40, 0xe3, 0x54, 0x6d, 0x0c, 0xa6, - 0x74, 0x90, 0xe6, 0x0c, 0x4a, 0xe3, 0x54, 0x6d, 0x56, 0xb5, 0x46, 0xbf, 0x02, 0x44, 0x81, 0x0e, - 0xfc, 0x4d, 0x1e, 0x3e, 0x3e, 0x31, 0xdb, 0xed, 0x78, 0xf6, 0xec, 0xdd, 0xb4, 0xd9, 0xda, 0x7e, - 0x41, 0x3f, 0x62, 0x91, 0x44, 0xdc, 0x42, 0x78, 0x81, 0x2c, 0xfd, 0x02, 0x83, 0xba, 0x93, 0x39, - 0x2e, 0xf1, 0xec, 0xd9, 0xd9, 0x4b, 0x7d, 0x8b, 0xe5, 0x7c, 0x15, 0x84, 0x89, 0xe0, 0xfd, 0xaa, - 0x95, 0x4e, 0xa1, 0x35, 0xae, 0x2f, 0xb2, 0xa8, 0xfc, 0x92, 0xa1, 0x99, 0x6e, 0xdc, 0x94, 0xbe, - 0x67, 0x11, 0xce, 0x39, 0xb7, 0xa0, 0x5f, 0x5d, 0x66, 0x7e, 0x02, 0x4e, 0x7b, 0xcb, 0x93, 0x3f, - 0x1d, 0x38, 0x39, 0x9c, 0x90, 0x9e, 0x81, 0xd5, 0x7c, 0x31, 0x31, 0x9e, 0x8d, 0x40, 0x29, 0x74, - 0xb3, 0x20, 0x15, 0xec, 0xd8, 0x1c, 0xc2, 0x3c, 0xd3, 0x73, 0xb0, 0xc3, 0x9d, 0x16, 0xca, 0x7f, - 0x0a, 0x92, 0xad, 0x60, 0x5d, 0x97, 0x78, 0xce, 0xcd, 0x11, 0x07, 0x23, 0xfe, 0x44, 0x8d, 0x5e, - 0x80, 0xa3, 0x74, 0x81, 0x67, 0x2c, 0x99, 0x37, 0x55, 0x3a, 0xec, 0x52, 0x2d, 0xa1, 0x0f, 0x00, - 0xa1, 0x94, 0x49, 0x85, 0xe0, 0xa9, 0x07, 0x18, 0x20, 0xd4, 0xf6, 0x2e, 0xdb, 0x38, 0xd3, 0x97, - 0xb3, 0x0a, 0xe9, 0xbb, 0xc4, 0x1b, 0xa2, 0x4b, 0xa9, 0x1e, 0x40, 0xd7, 0x57, 0x15, 0x64, 0xd2, - 0x50, 0x43, 0xd7, 0x57, 0xcd, 0x3c, 0x6d, 0x27, 0x4c, 0xc1, 0xd8, 0xcc, 0x73, 0xe8, 0xa4, 0xda, - 0x4e, 0x78, 0x7e, 0x5a, 0x43, 0x2d, 0xa7, 0x48, 0x6e, 0xc3, 0x44, 0x54, 0x90, 0xed, 0x12, 0x8f, - 0x20, 0x54, 0xaa, 0x25, 0x74, 0x0e, 0xf6, 0x7d, 0x22, 0x03, 0x5d, 0x31, 0x78, 0xed, 0x63, 0xdc, - 0x90, 0x11, 0x4b, 0xe4, 0x33, 0xf4, 0xee, 0x71, 0xff, 0x8a, 0x8d, 0x5e, 0xcb, 0x50, 0x05, 0xce, - 0x47, 0x30, 0x34, 0x7e, 0x7e, 0xb8, 0xf3, 0xf5, 0x2e, 0x17, 0x93, 0x6f, 0x30, 0xfe, 0x2f, 0x36, - 0xf4, 0x23, 0x74, 0x0a, 0xf9, 0xcc, 0x88, 0x71, 0x7d, 0xff, 0x92, 0x2b, 0x97, 0xcf, 0x8b, 0xe5, - 0x9c, 0x23, 0x36, 0xf9, 0x05, 0xa3, 0x7f, 0xf4, 0xd7, 0x03, 0xf1, 0x28, 0x76, 0xca, 0x2c, 0xc7, - 0xe1, 0xe6, 0x99, 0x32, 0xe8, 0xaf, 0x65, 0xa6, 0x45, 0xa6, 0xcd, 0x3a, 0x1c, 0x5e, 0xbf, 0x86, - 0x3d, 0xf3, 0x13, 0xb9, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x43, 0x6f, 0x37, 0x57, 0x04, - 0x00, 0x00, -} diff --git a/multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.pb.go b/multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.pb.go new file mode 100644 index 0000000..a72edb1 --- /dev/null +++ b/multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.pb.go @@ -0,0 +1,817 @@ +// ---------------------------------------------------------------------------- +// +// August 2016 +// +// Copyright (c) 2016 by Cisco Systems, 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. +// ---------------------------------------------------------------------------- + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.0 +// protoc v3.19.4 +// source: telemetryxr.proto + +package telemetry_proto + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Telemetry message is the outermost payload message used to stream +// telemetry in a Model Driven Telemetry (MDT) system. MDT provides a +// mechanism for an external entity to subscribe to a data set defined in +// a Yang model and receive periodic or event-based updates of the data +// set from an MDT-capable device. +type Telemetry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + // node_id_str is a string encoded unique node ID of the MDT-capable + // device producing the message. (node_id_uuid alternative is not currently + // produced in IOS-XR) + // + // Types that are assignable to NodeId: + // *Telemetry_NodeIdStr + NodeId isTelemetry_NodeId `protobuf_oneof:"node_id"` + // + // subscription_id_str is the name of the subscription against which + // this content is being produced. (subscription_id alternative is not + // currently produced in IOS-XR) + // + // Types that are assignable to Subscription: + // *Telemetry_SubscriptionIdStr + Subscription isTelemetry_Subscription `protobuf_oneof:"subscription"` + // + // sensor_path is not currently produced in IOS-XR + // string sensor_path = 5; + // + // encoding_path is the Yang path leading to the content in this message. + // The Yang tree encoded in the content section of this message is rooted + // at the point described by the encoding_path. + EncodingPath string `protobuf:"bytes,6,opt,name=encoding_path,json=encodingPath,proto3" json:"encoding_path,omitempty"` + // + // model_version is not currently produced in IOS-XR + // string model_version = 7; + // + // collection_id identifies messages belonging to a collection round. + // Multiple message may be generated from a collection round. + CollectionId uint64 `protobuf:"varint,8,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` + // + // collection_start_time is the time when the collection identified by + // the collection_id begins - encoded as milliseconds since the epoch. + // If a single collection is spread over multiple Telemetry Messages, + // collection_start_time may be encoded in the first Telemetry Message + // for the collection only. + CollectionStartTime uint64 `protobuf:"varint,9,opt,name=collection_start_time,json=collectionStartTime,proto3" json:"collection_start_time,omitempty"` + // + // msg_timestamp is the time when the data encoded in the Telemetry + // message is generated - encoded as milliseconds since the epoch. + MsgTimestamp uint64 `protobuf:"varint,10,opt,name=msg_timestamp,json=msgTimestamp,proto3" json:"msg_timestamp,omitempty"` + // + // data_gpbkv contains the payload data if data is being encoded in the + // self-describing GPB-KV format. + DataGpbkv []*TelemetryField `protobuf:"bytes,11,rep,name=data_gpbkv,json=dataGpbkv,proto3" json:"data_gpbkv,omitempty"` + // + // data_gpb contains the payload data if data is being encoded as + // serialised GPB messages. + DataGpb *TelemetryGPBTable `protobuf:"bytes,12,opt,name=data_gpb,json=dataGpb,proto3" json:"data_gpb,omitempty"` + // + // collection_end_time is the timestamp when the last Telemetry message + // for a collection has been encoded - encoded as milliseconds since the + // epoch. If a single collection is spread over multiple Telemetry + // messages, collection_end_time is encoded in the last Telemetry Message + // for the collection only. + CollectionEndTime uint64 `protobuf:"varint,13,opt,name=collection_end_time,json=collectionEndTime,proto3" json:"collection_end_time,omitempty"` +} + +func (x *Telemetry) Reset() { + *x = Telemetry{} + if protoimpl.UnsafeEnabled { + mi := &file_telemetryxr_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Telemetry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Telemetry) ProtoMessage() {} + +func (x *Telemetry) ProtoReflect() protoreflect.Message { + mi := &file_telemetryxr_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Telemetry.ProtoReflect.Descriptor instead. +func (*Telemetry) Descriptor() ([]byte, []int) { + return file_telemetryxr_proto_rawDescGZIP(), []int{0} +} + +func (m *Telemetry) GetNodeId() isTelemetry_NodeId { + if m != nil { + return m.NodeId + } + return nil +} + +func (x *Telemetry) GetNodeIdStr() string { + if x, ok := x.GetNodeId().(*Telemetry_NodeIdStr); ok { + return x.NodeIdStr + } + return "" +} + +func (m *Telemetry) GetSubscription() isTelemetry_Subscription { + if m != nil { + return m.Subscription + } + return nil +} + +func (x *Telemetry) GetSubscriptionIdStr() string { + if x, ok := x.GetSubscription().(*Telemetry_SubscriptionIdStr); ok { + return x.SubscriptionIdStr + } + return "" +} + +func (x *Telemetry) GetEncodingPath() string { + if x != nil { + return x.EncodingPath + } + return "" +} + +func (x *Telemetry) GetCollectionId() uint64 { + if x != nil { + return x.CollectionId + } + return 0 +} + +func (x *Telemetry) GetCollectionStartTime() uint64 { + if x != nil { + return x.CollectionStartTime + } + return 0 +} + +func (x *Telemetry) GetMsgTimestamp() uint64 { + if x != nil { + return x.MsgTimestamp + } + return 0 +} + +func (x *Telemetry) GetDataGpbkv() []*TelemetryField { + if x != nil { + return x.DataGpbkv + } + return nil +} + +func (x *Telemetry) GetDataGpb() *TelemetryGPBTable { + if x != nil { + return x.DataGpb + } + return nil +} + +func (x *Telemetry) GetCollectionEndTime() uint64 { + if x != nil { + return x.CollectionEndTime + } + return 0 +} + +type isTelemetry_NodeId interface { + isTelemetry_NodeId() +} + +type Telemetry_NodeIdStr struct { + NodeIdStr string `protobuf:"bytes,1,opt,name=node_id_str,json=nodeIdStr,proto3,oneof"` // bytes node_id_uuid = 2; +} + +func (*Telemetry_NodeIdStr) isTelemetry_NodeId() {} + +type isTelemetry_Subscription interface { + isTelemetry_Subscription() +} + +type Telemetry_SubscriptionIdStr struct { + SubscriptionIdStr string `protobuf:"bytes,3,opt,name=subscription_id_str,json=subscriptionIdStr,proto3,oneof"` // uint32 subscription_id = 4; +} + +func (*Telemetry_SubscriptionIdStr) isTelemetry_Subscription() {} + +// +// TelemetryField messages are used to export content in the self +// describing GPB KV form. The TelemetryField message is sufficient to +// decode telemetry messages for all models. KV-GPB encoding is very +// similar in concept, to JSON encoding +type TelemetryField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + // timestamp represents the starting time of the generation of data + // starting from this key, value pair in this message - encoded as + // milliseconds since the epoch. It is encoded when different from the + // msg_timestamp in the containing Telemetry Message. This field can be + // omitted if the value is the same as a TelemetryField message up the + // hierarchy within the same Telemetry Message as well. + Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // + // name: string encoding of the name in the key, value pair. It is + // the corresponding YANG element name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // + // value_by_type, if present, for the corresponding YANG element + // represented by the name field in the same TelemetryField message. The + // value is encoded to the matching type as defined in the YANG model. + // YANG models often define new types (derived types) using one or more + // base types. The types included in the oneof grouping is sufficient to + // represent such derived types. Derived types represented as a Yang + // container are encoded using the nesting primitive defined in this + // encoding proposal. + // + // Types that are assignable to ValueByType: + // *TelemetryField_BytesValue + // *TelemetryField_StringValue + // *TelemetryField_BoolValue + // *TelemetryField_Uint32Value + // *TelemetryField_Uint64Value + // *TelemetryField_Sint32Value + // *TelemetryField_Sint64Value + // *TelemetryField_DoubleValue + // *TelemetryField_FloatValue + ValueByType isTelemetryField_ValueByType `protobuf_oneof:"value_by_type"` + // + // The Yang model may include nesting (e.g hierarchy of containers). The + // next level of nesting, if present, is encoded, starting from fields. + Fields []*TelemetryField `protobuf:"bytes,15,rep,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *TelemetryField) Reset() { + *x = TelemetryField{} + if protoimpl.UnsafeEnabled { + mi := &file_telemetryxr_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TelemetryField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TelemetryField) ProtoMessage() {} + +func (x *TelemetryField) ProtoReflect() protoreflect.Message { + mi := &file_telemetryxr_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TelemetryField.ProtoReflect.Descriptor instead. +func (*TelemetryField) Descriptor() ([]byte, []int) { + return file_telemetryxr_proto_rawDescGZIP(), []int{1} +} + +func (x *TelemetryField) GetTimestamp() uint64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +func (x *TelemetryField) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (m *TelemetryField) GetValueByType() isTelemetryField_ValueByType { + if m != nil { + return m.ValueByType + } + return nil +} + +func (x *TelemetryField) GetBytesValue() []byte { + if x, ok := x.GetValueByType().(*TelemetryField_BytesValue); ok { + return x.BytesValue + } + return nil +} + +func (x *TelemetryField) GetStringValue() string { + if x, ok := x.GetValueByType().(*TelemetryField_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *TelemetryField) GetBoolValue() bool { + if x, ok := x.GetValueByType().(*TelemetryField_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (x *TelemetryField) GetUint32Value() uint32 { + if x, ok := x.GetValueByType().(*TelemetryField_Uint32Value); ok { + return x.Uint32Value + } + return 0 +} + +func (x *TelemetryField) GetUint64Value() uint64 { + if x, ok := x.GetValueByType().(*TelemetryField_Uint64Value); ok { + return x.Uint64Value + } + return 0 +} + +func (x *TelemetryField) GetSint32Value() int32 { + if x, ok := x.GetValueByType().(*TelemetryField_Sint32Value); ok { + return x.Sint32Value + } + return 0 +} + +func (x *TelemetryField) GetSint64Value() int64 { + if x, ok := x.GetValueByType().(*TelemetryField_Sint64Value); ok { + return x.Sint64Value + } + return 0 +} + +func (x *TelemetryField) GetDoubleValue() float64 { + if x, ok := x.GetValueByType().(*TelemetryField_DoubleValue); ok { + return x.DoubleValue + } + return 0 +} + +func (x *TelemetryField) GetFloatValue() float32 { + if x, ok := x.GetValueByType().(*TelemetryField_FloatValue); ok { + return x.FloatValue + } + return 0 +} + +func (x *TelemetryField) GetFields() []*TelemetryField { + if x != nil { + return x.Fields + } + return nil +} + +type isTelemetryField_ValueByType interface { + isTelemetryField_ValueByType() +} + +type TelemetryField_BytesValue struct { + BytesValue []byte `protobuf:"bytes,4,opt,name=bytes_value,json=bytesValue,proto3,oneof"` +} + +type TelemetryField_StringValue struct { + StringValue string `protobuf:"bytes,5,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type TelemetryField_BoolValue struct { + BoolValue bool `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type TelemetryField_Uint32Value struct { + Uint32Value uint32 `protobuf:"varint,7,opt,name=uint32_value,json=uint32Value,proto3,oneof"` +} + +type TelemetryField_Uint64Value struct { + Uint64Value uint64 `protobuf:"varint,8,opt,name=uint64_value,json=uint64Value,proto3,oneof"` +} + +type TelemetryField_Sint32Value struct { + Sint32Value int32 `protobuf:"zigzag32,9,opt,name=sint32_value,json=sint32Value,proto3,oneof"` +} + +type TelemetryField_Sint64Value struct { + Sint64Value int64 `protobuf:"zigzag64,10,opt,name=sint64_value,json=sint64Value,proto3,oneof"` +} + +type TelemetryField_DoubleValue struct { + DoubleValue float64 `protobuf:"fixed64,11,opt,name=double_value,json=doubleValue,proto3,oneof"` +} + +type TelemetryField_FloatValue struct { + FloatValue float32 `protobuf:"fixed32,12,opt,name=float_value,json=floatValue,proto3,oneof"` +} + +func (*TelemetryField_BytesValue) isTelemetryField_ValueByType() {} + +func (*TelemetryField_StringValue) isTelemetryField_ValueByType() {} + +func (*TelemetryField_BoolValue) isTelemetryField_ValueByType() {} + +func (*TelemetryField_Uint32Value) isTelemetryField_ValueByType() {} + +func (*TelemetryField_Uint64Value) isTelemetryField_ValueByType() {} + +func (*TelemetryField_Sint32Value) isTelemetryField_ValueByType() {} + +func (*TelemetryField_Sint64Value) isTelemetryField_ValueByType() {} + +func (*TelemetryField_DoubleValue) isTelemetryField_ValueByType() {} + +func (*TelemetryField_FloatValue) isTelemetryField_ValueByType() {} + +// TelemetryGPBTable contains a repeated number of TelemetryRowGPB, +// each of which represents content from a subtree instance in the +// the YANG model. For example; a TelemetryGPBTable might contain +// the interface statistics of a collection of interfaces. +type TelemetryGPBTable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Row []*TelemetryRowGPB `protobuf:"bytes,1,rep,name=row,proto3" json:"row,omitempty"` +} + +func (x *TelemetryGPBTable) Reset() { + *x = TelemetryGPBTable{} + if protoimpl.UnsafeEnabled { + mi := &file_telemetryxr_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TelemetryGPBTable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TelemetryGPBTable) ProtoMessage() {} + +func (x *TelemetryGPBTable) ProtoReflect() protoreflect.Message { + mi := &file_telemetryxr_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TelemetryGPBTable.ProtoReflect.Descriptor instead. +func (*TelemetryGPBTable) Descriptor() ([]byte, []int) { + return file_telemetryxr_proto_rawDescGZIP(), []int{2} +} + +func (x *TelemetryGPBTable) GetRow() []*TelemetryRowGPB { + if x != nil { + return x.Row + } + return nil +} + +// +// TelemetryRowGPB, in conjunction with the Telemetry encoding_path and +// model_version, unambiguously represents the root of a subtree in +// the YANG model, and content from that subtree encoded in serialised +// GPB messages. For example; a TelemetryRowGPB might contain the +// interface statistics of one interface. Per encoding-path .proto +// messages are required to decode keys/content pairs below. +type TelemetryRowGPB struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // + // timestamp at which the data for this instance of the TelemetryRowGPB + // message was generated by an MDT-capable device - encoded as + // milliseconds since the epoch. When included, this is typically + // different from the msg_timestamp in the containing Telemetry message. + Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // + // keys: if the encoding-path includes one or more list elements, and/or + // ends in a list element, the keys field is a GPB encoded message that + // contains the sequence of key values for each such list element in the + // encoding-path traversed starting from the root. The set of keys + // unambiguously identifies the instance of data encoded in the + // TelemetryRowGPB message. Corresponding protobuf message definition will + // be required to decode the byte stream. The encoding_path field in + // Telemetry message, together with model_version field should be + // sufficient to identify the corresponding protobuf message. + Keys []byte `protobuf:"bytes,10,opt,name=keys,proto3" json:"keys,omitempty"` + // + // content: the content field is a GPB encoded message that contains the + // data for the corresponding encoding-path. A separate decoding pass + // would be performed by consumer with the content field as a GPB message + // and the matching .proto used to decode the message. Corresponding + // protobuf message definition will be required to decode the byte + // stream. The encoding_path field in Telemetry message, together with + // model_version field should be sufficient to identify the corresponding + // protobuf message. The decoded combination of keys (when present) and + // content, unambiguously represents an instance of the data set, as + // defined in the Yang model, identified by the encoding-path in the + // containing Telemetry message. + Content []byte `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` +} + +func (x *TelemetryRowGPB) Reset() { + *x = TelemetryRowGPB{} + if protoimpl.UnsafeEnabled { + mi := &file_telemetryxr_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TelemetryRowGPB) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TelemetryRowGPB) ProtoMessage() {} + +func (x *TelemetryRowGPB) ProtoReflect() protoreflect.Message { + mi := &file_telemetryxr_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TelemetryRowGPB.ProtoReflect.Descriptor instead. +func (*TelemetryRowGPB) Descriptor() ([]byte, []int) { + return file_telemetryxr_proto_rawDescGZIP(), []int{3} +} + +func (x *TelemetryRowGPB) GetTimestamp() uint64 { + if x != nil { + return x.Timestamp + } + return 0 +} + +func (x *TelemetryRowGPB) GetKeys() []byte { + if x != nil { + return x.Keys + } + return nil +} + +func (x *TelemetryRowGPB) GetContent() []byte { + if x != nil { + return x.Content + } + return nil +} + +var File_telemetryxr_proto protoreflect.FileDescriptor + +var file_telemetryxr_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x78, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x78, 0x72, + 0x22, 0xc4, 0x03, 0x0a, 0x09, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x12, 0x20, + 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x53, 0x74, 0x72, + 0x12, 0x30, 0x0a, 0x13, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x11, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x53, + 0x74, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6e, 0x63, 0x6f, 0x64, + 0x69, 0x6e, 0x67, 0x50, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x63, 0x6f, 0x6c, + 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6d, 0x73, 0x67, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3a, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x67, 0x70, + 0x62, 0x6b, 0x76, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x6d, 0x65, 0x74, 0x72, 0x79, 0x78, 0x72, 0x2e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, + 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x47, 0x70, 0x62, 0x6b, + 0x76, 0x12, 0x39, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x67, 0x70, 0x62, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x78, + 0x72, 0x2e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x47, 0x50, 0x42, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x47, 0x70, 0x62, 0x12, 0x2e, 0x0a, 0x13, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcd, 0x03, 0x0a, 0x0e, 0x54, 0x65, 0x6c, 0x65, + 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0b, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0b, 0x75, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, + 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, + 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x23, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x11, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x12, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x69, + 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x01, 0x48, + 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, + 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x33, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x78, 0x72, 0x2e, + 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, + 0x62, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x43, 0x0a, 0x11, 0x54, 0x65, 0x6c, 0x65, 0x6d, + 0x65, 0x74, 0x72, 0x79, 0x47, 0x50, 0x42, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x03, + 0x72, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x6c, 0x65, + 0x6d, 0x65, 0x74, 0x72, 0x79, 0x78, 0x72, 0x2e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, + 0x79, 0x52, 0x6f, 0x77, 0x47, 0x50, 0x42, 0x52, 0x03, 0x72, 0x6f, 0x77, 0x22, 0x5d, 0x0a, 0x0f, + 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x6f, 0x77, 0x47, 0x50, 0x42, 0x12, + 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, + 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6b, 0x65, 0x79, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x4a, 0x5a, 0x48, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x69, 0x6c, 0x65, 0x73, 0x68, + 0x73, 0x69, 0x6d, 0x61, 0x72, 0x69, 0x61, 0x2f, 0x6a, 0x74, 0x69, 0x6d, 0x6f, 0x6e, 0x2f, 0x6d, + 0x75, 0x6c, 0x74, 0x69, 0x2d, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x2f, 0x63, 0x69, 0x73, 0x63, + 0x6f, 0x2f, 0x69, 0x6f, 0x73, 0x78, 0x72, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, + 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_telemetryxr_proto_rawDescOnce sync.Once + file_telemetryxr_proto_rawDescData = file_telemetryxr_proto_rawDesc +) + +func file_telemetryxr_proto_rawDescGZIP() []byte { + file_telemetryxr_proto_rawDescOnce.Do(func() { + file_telemetryxr_proto_rawDescData = protoimpl.X.CompressGZIP(file_telemetryxr_proto_rawDescData) + }) + return file_telemetryxr_proto_rawDescData +} + +var file_telemetryxr_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_telemetryxr_proto_goTypes = []interface{}{ + (*Telemetry)(nil), // 0: telemetryxr.Telemetry + (*TelemetryField)(nil), // 1: telemetryxr.TelemetryField + (*TelemetryGPBTable)(nil), // 2: telemetryxr.TelemetryGPBTable + (*TelemetryRowGPB)(nil), // 3: telemetryxr.TelemetryRowGPB +} +var file_telemetryxr_proto_depIdxs = []int32{ + 1, // 0: telemetryxr.Telemetry.data_gpbkv:type_name -> telemetryxr.TelemetryField + 2, // 1: telemetryxr.Telemetry.data_gpb:type_name -> telemetryxr.TelemetryGPBTable + 1, // 2: telemetryxr.TelemetryField.fields:type_name -> telemetryxr.TelemetryField + 3, // 3: telemetryxr.TelemetryGPBTable.row:type_name -> telemetryxr.TelemetryRowGPB + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_telemetryxr_proto_init() } +func file_telemetryxr_proto_init() { + if File_telemetryxr_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_telemetryxr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Telemetry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_telemetryxr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TelemetryField); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_telemetryxr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TelemetryGPBTable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_telemetryxr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TelemetryRowGPB); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_telemetryxr_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Telemetry_NodeIdStr)(nil), + (*Telemetry_SubscriptionIdStr)(nil), + } + file_telemetryxr_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*TelemetryField_BytesValue)(nil), + (*TelemetryField_StringValue)(nil), + (*TelemetryField_BoolValue)(nil), + (*TelemetryField_Uint32Value)(nil), + (*TelemetryField_Uint64Value)(nil), + (*TelemetryField_Sint32Value)(nil), + (*TelemetryField_Sint64Value)(nil), + (*TelemetryField_DoubleValue)(nil), + (*TelemetryField_FloatValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_telemetryxr_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_telemetryxr_proto_goTypes, + DependencyIndexes: file_telemetryxr_proto_depIdxs, + MessageInfos: file_telemetryxr_proto_msgTypes, + }.Build() + File_telemetryxr_proto = out.File + file_telemetryxr_proto_rawDesc = nil + file_telemetryxr_proto_goTypes = nil + file_telemetryxr_proto_depIdxs = nil +} diff --git a/multi-vendor/cisco/iosxr/telemetry-proto/telemetry.proto b/multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.proto similarity index 98% rename from multi-vendor/cisco/iosxr/telemetry-proto/telemetry.proto rename to multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.proto index d3ec3ff..19d6ce9 100644 --- a/multi-vendor/cisco/iosxr/telemetry-proto/telemetry.proto +++ b/multi-vendor/cisco/iosxr/telemetry-proto/telemetryxr.proto @@ -19,7 +19,9 @@ */ syntax = "proto3"; -package telemetry; +package telemetryxr; + +option go_package = "github.com/Juniper/jtimon/multi-vendor/cisco/iosxr/telemetry-proto"; // Telemetry message is the outermost payload message used to stream // telemetry in a Model Driven Telemetry (MDT) system. MDT provides a @@ -179,4 +181,4 @@ message TelemetryRowGPB { // defined in the Yang model, identified by the encoding-path in the // containing Telemetry message. bytes content = 11; -} \ No newline at end of file +} diff --git a/sample-config/udp.conf b/sample-config/udp.conf new file mode 100644 index 0000000..36f4535 --- /dev/null +++ b/sample-config/udp.conf @@ -0,0 +1,20 @@ +{ + "udp": { + "host": "127.0.0.1", + "port": 6000 + }, + "influx": { + "server": "localhost", + "port": 8086, + "dbname": "testdb", + "user": "root", + "password": "Embe1mpls", + "recreate": true, + "measurement": "", + "batchsize": 1024, + "batchfrequency": 1000, + "http-timeout": 30, + "accumulator-frequency": 2000, + "write-per-measurement": true + } +} diff --git a/schema/agent.pb.go b/schema/agent.pb.go new file mode 100644 index 0000000..4ab91f9 --- /dev/null +++ b/schema/agent.pb.go @@ -0,0 +1,5860 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: agent.proto + +package schema + +import ( + context "context" + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Result of the operation +type ReturnCode int32 + +const ( + ReturnCode_SUCCESS ReturnCode = 0 + ReturnCode_NO_SUBSCRIPTION_ENTRY ReturnCode = 1 + ReturnCode_UNKNOWN_ERROR ReturnCode = 2 +) + +var ReturnCode_name = map[int32]string{ + 0: "SUCCESS", + 1: "NO_SUBSCRIPTION_ENTRY", + 2: "UNKNOWN_ERROR", +} + +var ReturnCode_value = map[string]int32{ + "SUCCESS": 0, + "NO_SUBSCRIPTION_ENTRY": 1, + "UNKNOWN_ERROR": 2, +} + +func (x ReturnCode) String() string { + return proto.EnumName(ReturnCode_name, int32(x)) +} + +func (ReturnCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{0} +} + +// Verbosity Level +type VerbosityLevel int32 + +const ( + VerbosityLevel_DETAIL VerbosityLevel = 0 + VerbosityLevel_TERSE VerbosityLevel = 1 + VerbosityLevel_BRIEF VerbosityLevel = 2 +) + +var VerbosityLevel_name = map[int32]string{ + 0: "DETAIL", + 1: "TERSE", + 2: "BRIEF", +} + +var VerbosityLevel_value = map[string]int32{ + "DETAIL": 0, + "TERSE": 1, + "BRIEF": 2, +} + +func (x VerbosityLevel) String() string { + return proto.EnumName(VerbosityLevel_name, int32(x)) +} + +func (VerbosityLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{1} +} + +// Encoding Type Supported +type EncodingType int32 + +const ( + EncodingType_UNDEFINED EncodingType = 0 + EncodingType_XML EncodingType = 1 + EncodingType_JSON_IETF EncodingType = 2 + EncodingType_PROTO3 EncodingType = 3 +) + +var EncodingType_name = map[int32]string{ + 0: "UNDEFINED", + 1: "XML", + 2: "JSON_IETF", + 3: "PROTO3", +} + +var EncodingType_value = map[string]int32{ + "UNDEFINED": 0, + "XML": 1, + "JSON_IETF": 2, + "PROTO3": 3, +} + +func (x EncodingType) String() string { + return proto.EnumName(EncodingType_name, int32(x)) +} + +func (EncodingType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{2} +} + +// Subscription modes +type SubscriptionMode int32 + +const ( + SubscriptionMode_LONG_LIVED SubscriptionMode = 0 + // Not supported + SubscriptionMode_ONE_OFF SubscriptionMode = 1 + // Not supported + SubscriptionMode_POLL SubscriptionMode = 2 +) + +var SubscriptionMode_name = map[int32]string{ + 0: "LONG_LIVED", + 1: "ONE_OFF", + 2: "POLL", +} + +var SubscriptionMode_value = map[string]int32{ + "LONG_LIVED": 0, + "ONE_OFF": 1, + "POLL": 2, +} + +func (x SubscriptionMode) String() string { + return proto.EnumName(SubscriptionMode_name, int32(x)) +} + +func (SubscriptionMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{3} +} + +// Collector endpoints to send data specified as an ip+port combination. +type Collector struct { + // IP address of collector endpoint + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Transport protocol port number for the collector destination. + Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Collector) Reset() { *m = Collector{} } +func (m *Collector) String() string { return proto.CompactTextString(m) } +func (*Collector) ProtoMessage() {} +func (*Collector) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{0} +} +func (m *Collector) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Collector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Collector.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Collector) XXX_Merge(src proto.Message) { + xxx_messageInfo_Collector.Merge(m, src) +} +func (m *Collector) XXX_Size() int { + return m.Size() +} +func (m *Collector) XXX_DiscardUnknown() { + xxx_messageInfo_Collector.DiscardUnknown(m) +} + +var xxx_messageInfo_Collector proto.InternalMessageInfo + +func (m *Collector) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *Collector) GetPort() uint32 { + if m != nil { + return m.Port + } + return 0 +} + +// Data associated with a telemetry subscription +type SubscriptionInput struct { + // List of optional collector endpoints to send data for + // this subscription. + // If no collector destinations are specified, the collector + // destination is assumed to be the requester on the rpc channel. + CollectorList []*Collector `protobuf:"bytes,1,rep,name=collector_list,json=collectorList,proto3" json:"collector_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscriptionInput) Reset() { *m = SubscriptionInput{} } +func (m *SubscriptionInput) String() string { return proto.CompactTextString(m) } +func (*SubscriptionInput) ProtoMessage() {} +func (*SubscriptionInput) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{1} +} +func (m *SubscriptionInput) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscriptionInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscriptionInput.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SubscriptionInput) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscriptionInput.Merge(m, src) +} +func (m *SubscriptionInput) XXX_Size() int { + return m.Size() +} +func (m *SubscriptionInput) XXX_DiscardUnknown() { + xxx_messageInfo_SubscriptionInput.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscriptionInput proto.InternalMessageInfo + +func (m *SubscriptionInput) GetCollectorList() []*Collector { + if m != nil { + return m.CollectorList + } + return nil +} + +// Data model path +type Path struct { + // Data model path of interest + // Path specification for elements of OpenConfig data models + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // Regular expression to be used in filtering state leaves + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // If this is set to true, the target device will only send + // updates to the collector upon a change in data value + SuppressUnchanged bool `protobuf:"varint,3,opt,name=suppress_unchanged,json=suppressUnchanged,proto3" json:"suppress_unchanged,omitempty"` + // Maximum time in ms the target device may go without sending + // a message to the collector. If this time expires with + // suppress-unchanged set, the target device must send an update + // message regardless if the data values have changed. + MaxSilentInterval uint32 `protobuf:"varint,4,opt,name=max_silent_interval,json=maxSilentInterval,proto3" json:"max_silent_interval,omitempty"` + // Time in ms between collection and transmission of the + // specified data to the collector platform. The target device + // will sample the corresponding data (e.g,. a counter) and + // immediately send to the collector destination. + // + // If sample-frequency is set to 0, then the network device + // must emit an update upon every datum change. + SampleFrequency uint32 `protobuf:"varint,5,opt,name=sample_frequency,json=sampleFrequency,proto3" json:"sample_frequency,omitempty"` + // EOM needed for each walk cycle of this path? + // For periodic sensor, applicable for each complete reap + // For event sensor, applicable when initial dump is over + // (same as EOS) + NeedEom bool `protobuf:"varint,6,opt,name=need_eom,json=needEom,proto3" json:"need_eom,omitempty"` + // To denote if the path is from OC, IETF + // or some other standards + Origin string `protobuf:"bytes,100,opt,name=origin,proto3" json:"origin,omitempty"` + // Allow the target to decide if the updates need to be sent + // periodically or on-change for the leaves under this path. + // If this is set to true and sample_frequency is non-zero, + // then whichever leaves support on-change will be + // streamed on change and other leaves will be streamed + // at the cadence requested as per sample_frequency. + // If this is set to true and sample_frequency is zero, + // then it will be considered as on-change only. + // If this is set to false, then the streaming will be + // will be periodic if sample_frequency is non-zero + // and will be on-change if sample_frequency is zero. + TargetDefined bool `protobuf:"varint,101,opt,name=target_defined,json=targetDefined,proto3" json:"target_defined,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Path) Reset() { *m = Path{} } +func (m *Path) String() string { return proto.CompactTextString(m) } +func (*Path) ProtoMessage() {} +func (*Path) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{2} +} +func (m *Path) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Path.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Path) XXX_Merge(src proto.Message) { + xxx_messageInfo_Path.Merge(m, src) +} +func (m *Path) XXX_Size() int { + return m.Size() +} +func (m *Path) XXX_DiscardUnknown() { + xxx_messageInfo_Path.DiscardUnknown(m) +} + +var xxx_messageInfo_Path proto.InternalMessageInfo + +func (m *Path) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *Path) GetFilter() string { + if m != nil { + return m.Filter + } + return "" +} + +func (m *Path) GetSuppressUnchanged() bool { + if m != nil { + return m.SuppressUnchanged + } + return false +} + +func (m *Path) GetMaxSilentInterval() uint32 { + if m != nil { + return m.MaxSilentInterval + } + return 0 +} + +func (m *Path) GetSampleFrequency() uint32 { + if m != nil { + return m.SampleFrequency + } + return 0 +} + +func (m *Path) GetNeedEom() bool { + if m != nil { + return m.NeedEom + } + return false +} + +func (m *Path) GetOrigin() string { + if m != nil { + return m.Origin + } + return "" +} + +func (m *Path) GetTargetDefined() bool { + if m != nil { + return m.TargetDefined + } + return false +} + +// Configure subscription request additional features. +type SubscriptionAdditionalConfig struct { + // limit the number of records sent in the stream + LimitRecords int32 `protobuf:"varint,1,opt,name=limit_records,json=limitRecords,proto3" json:"limit_records,omitempty"` + // limit the time the stream remains open + LimitTimeSeconds int32 `protobuf:"varint,2,opt,name=limit_time_seconds,json=limitTimeSeconds,proto3" json:"limit_time_seconds,omitempty"` + // EOS needed for this subscription? + NeedEos bool `protobuf:"varint,3,opt,name=need_eos,json=needEos,proto3" json:"need_eos,omitempty"` + // Subscription mode (long-lived, one_off or poll) + Mode SubscriptionMode `protobuf:"varint,4,opt,name=mode,proto3,enum=telemetry.SubscriptionMode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscriptionAdditionalConfig) Reset() { *m = SubscriptionAdditionalConfig{} } +func (m *SubscriptionAdditionalConfig) String() string { return proto.CompactTextString(m) } +func (*SubscriptionAdditionalConfig) ProtoMessage() {} +func (*SubscriptionAdditionalConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{3} +} +func (m *SubscriptionAdditionalConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscriptionAdditionalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscriptionAdditionalConfig.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SubscriptionAdditionalConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscriptionAdditionalConfig.Merge(m, src) +} +func (m *SubscriptionAdditionalConfig) XXX_Size() int { + return m.Size() +} +func (m *SubscriptionAdditionalConfig) XXX_DiscardUnknown() { + xxx_messageInfo_SubscriptionAdditionalConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscriptionAdditionalConfig proto.InternalMessageInfo + +func (m *SubscriptionAdditionalConfig) GetLimitRecords() int32 { + if m != nil { + return m.LimitRecords + } + return 0 +} + +func (m *SubscriptionAdditionalConfig) GetLimitTimeSeconds() int32 { + if m != nil { + return m.LimitTimeSeconds + } + return 0 +} + +func (m *SubscriptionAdditionalConfig) GetNeedEos() bool { + if m != nil { + return m.NeedEos + } + return false +} + +func (m *SubscriptionAdditionalConfig) GetMode() SubscriptionMode { + if m != nil { + return m.Mode + } + return SubscriptionMode_LONG_LIVED +} + +// Message sent for a telemetry subscription request +type SubscriptionRequest struct { + // Data associated with a telemetry subscription + Input *SubscriptionInput `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + // List of data models paths and filters + // which are used in a telemetry operation. + PathList []*Path `protobuf:"bytes,2,rep,name=path_list,json=pathList,proto3" json:"path_list,omitempty"` + // The below configuration is not defined in Openconfig RPC. + // It is a proposed extension to configure additional + // subscription request features. + AdditionalConfig *SubscriptionAdditionalConfig `protobuf:"bytes,3,opt,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscriptionRequest) Reset() { *m = SubscriptionRequest{} } +func (m *SubscriptionRequest) String() string { return proto.CompactTextString(m) } +func (*SubscriptionRequest) ProtoMessage() {} +func (*SubscriptionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{4} +} +func (m *SubscriptionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscriptionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SubscriptionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscriptionRequest.Merge(m, src) +} +func (m *SubscriptionRequest) XXX_Size() int { + return m.Size() +} +func (m *SubscriptionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubscriptionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscriptionRequest proto.InternalMessageInfo + +func (m *SubscriptionRequest) GetInput() *SubscriptionInput { + if m != nil { + return m.Input + } + return nil +} + +func (m *SubscriptionRequest) GetPathList() []*Path { + if m != nil { + return m.PathList + } + return nil +} + +func (m *SubscriptionRequest) GetAdditionalConfig() *SubscriptionAdditionalConfig { + if m != nil { + return m.AdditionalConfig + } + return nil +} + +// Response message to a telemetry subscription creation or get request. +type SubscriptionResponse struct { + // Unique id for the subscription on the device. This is + // generated by the device and returned in a subscription + // request or when listing existing subscriptions + SubscriptionId uint32 `protobuf:"varint,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscriptionResponse) Reset() { *m = SubscriptionResponse{} } +func (m *SubscriptionResponse) String() string { return proto.CompactTextString(m) } +func (*SubscriptionResponse) ProtoMessage() {} +func (*SubscriptionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{5} +} +func (m *SubscriptionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscriptionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SubscriptionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscriptionResponse.Merge(m, src) +} +func (m *SubscriptionResponse) XXX_Size() int { + return m.Size() +} +func (m *SubscriptionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SubscriptionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscriptionResponse proto.InternalMessageInfo + +func (m *SubscriptionResponse) GetSubscriptionId() uint32 { + if m != nil { + return m.SubscriptionId + } + return 0 +} + +type SubscriptionReply struct { + // Response message to a telemetry subscription creation or + // get request. + Response *SubscriptionResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` + // List of data models paths and filters + // which are used in a telemetry operation. + PathList []*Path `protobuf:"bytes,2,rep,name=path_list,json=pathList,proto3" json:"path_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscriptionReply) Reset() { *m = SubscriptionReply{} } +func (m *SubscriptionReply) String() string { return proto.CompactTextString(m) } +func (*SubscriptionReply) ProtoMessage() {} +func (*SubscriptionReply) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{6} +} +func (m *SubscriptionReply) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SubscriptionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SubscriptionReply.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SubscriptionReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscriptionReply.Merge(m, src) +} +func (m *SubscriptionReply) XXX_Size() int { + return m.Size() +} +func (m *SubscriptionReply) XXX_DiscardUnknown() { + xxx_messageInfo_SubscriptionReply.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscriptionReply proto.InternalMessageInfo + +func (m *SubscriptionReply) GetResponse() *SubscriptionResponse { + if m != nil { + return m.Response + } + return nil +} + +func (m *SubscriptionReply) GetPathList() []*Path { + if m != nil { + return m.PathList + } + return nil +} + +// Simple Key-value, where value could be one of scalar types +type KeyValue struct { + // Key + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // One of possible values + // + // Types that are valid to be assigned to Value: + // *KeyValue_DoubleValue + // *KeyValue_IntValue + // *KeyValue_UintValue + // *KeyValue_SintValue + // *KeyValue_BoolValue + // *KeyValue_StrValue + // *KeyValue_BytesValue + // *KeyValue_FloatValue + Value isKeyValue_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValue) Reset() { *m = KeyValue{} } +func (m *KeyValue) String() string { return proto.CompactTextString(m) } +func (*KeyValue) ProtoMessage() {} +func (*KeyValue) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{7} +} +func (m *KeyValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *KeyValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValue.Merge(m, src) +} +func (m *KeyValue) XXX_Size() int { + return m.Size() +} +func (m *KeyValue) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValue.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyValue proto.InternalMessageInfo + +type isKeyValue_Value interface { + isKeyValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type KeyValue_DoubleValue struct { + DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"` +} +type KeyValue_IntValue struct { + IntValue int64 `protobuf:"varint,6,opt,name=int_value,json=intValue,proto3,oneof" json:"int_value,omitempty"` +} +type KeyValue_UintValue struct { + UintValue uint64 `protobuf:"varint,7,opt,name=uint_value,json=uintValue,proto3,oneof" json:"uint_value,omitempty"` +} +type KeyValue_SintValue struct { + SintValue int64 `protobuf:"zigzag64,8,opt,name=sint_value,json=sintValue,proto3,oneof" json:"sint_value,omitempty"` +} +type KeyValue_BoolValue struct { + BoolValue bool `protobuf:"varint,9,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"` +} +type KeyValue_StrValue struct { + StrValue string `protobuf:"bytes,10,opt,name=str_value,json=strValue,proto3,oneof" json:"str_value,omitempty"` +} +type KeyValue_BytesValue struct { + BytesValue []byte `protobuf:"bytes,11,opt,name=bytes_value,json=bytesValue,proto3,oneof" json:"bytes_value,omitempty"` +} +type KeyValue_FloatValue struct { + FloatValue float32 `protobuf:"fixed32,12,opt,name=float_value,json=floatValue,proto3,oneof" json:"float_value,omitempty"` +} + +func (*KeyValue_DoubleValue) isKeyValue_Value() {} +func (*KeyValue_IntValue) isKeyValue_Value() {} +func (*KeyValue_UintValue) isKeyValue_Value() {} +func (*KeyValue_SintValue) isKeyValue_Value() {} +func (*KeyValue_BoolValue) isKeyValue_Value() {} +func (*KeyValue_StrValue) isKeyValue_Value() {} +func (*KeyValue_BytesValue) isKeyValue_Value() {} +func (*KeyValue_FloatValue) isKeyValue_Value() {} + +func (m *KeyValue) GetValue() isKeyValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *KeyValue) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *KeyValue) GetDoubleValue() float64 { + if x, ok := m.GetValue().(*KeyValue_DoubleValue); ok { + return x.DoubleValue + } + return 0 +} + +func (m *KeyValue) GetIntValue() int64 { + if x, ok := m.GetValue().(*KeyValue_IntValue); ok { + return x.IntValue + } + return 0 +} + +func (m *KeyValue) GetUintValue() uint64 { + if x, ok := m.GetValue().(*KeyValue_UintValue); ok { + return x.UintValue + } + return 0 +} + +func (m *KeyValue) GetSintValue() int64 { + if x, ok := m.GetValue().(*KeyValue_SintValue); ok { + return x.SintValue + } + return 0 +} + +func (m *KeyValue) GetBoolValue() bool { + if x, ok := m.GetValue().(*KeyValue_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (m *KeyValue) GetStrValue() string { + if x, ok := m.GetValue().(*KeyValue_StrValue); ok { + return x.StrValue + } + return "" +} + +func (m *KeyValue) GetBytesValue() []byte { + if x, ok := m.GetValue().(*KeyValue_BytesValue); ok { + return x.BytesValue + } + return nil +} + +func (m *KeyValue) GetFloatValue() float32 { + if x, ok := m.GetValue().(*KeyValue_FloatValue); ok { + return x.FloatValue + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*KeyValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*KeyValue_DoubleValue)(nil), + (*KeyValue_IntValue)(nil), + (*KeyValue_UintValue)(nil), + (*KeyValue_SintValue)(nil), + (*KeyValue_BoolValue)(nil), + (*KeyValue_StrValue)(nil), + (*KeyValue_BytesValue)(nil), + (*KeyValue_FloatValue)(nil), + } +} + +type OpenConfigData struct { + // router name:export IP address + SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"` + // line card / RE (slot number) + ComponentId uint32 `protobuf:"varint,2,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"` + // PFE (if applicable) + SubComponentId uint32 `protobuf:"varint,3,opt,name=sub_component_id,json=subComponentId,proto3" json:"sub_component_id,omitempty"` + // Path specification for elements of OpenConfig data models + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + // Sequence number, monotonically increasing for each + // system_id, component_id, sub_component_id + path. + SequenceNumber uint64 `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + // timestamp (milliseconds since epoch) + Timestamp uint64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // List of key-value pairs + Kv []*KeyValue `protobuf:"bytes,7,rep,name=kv,proto3" json:"kv,omitempty"` + // For delete. If filled, it indicates delete + Delete []*Delete `protobuf:"bytes,8,rep,name=delete,proto3" json:"delete,omitempty"` + // [Deprecated] If filled, it indicates end of marker for the + // respective path in the list. + Eom []*Eom `protobuf:"bytes,9,rep,name=eom,proto3" json:"eom,omitempty"` // Deprecated: Do not use. + // If filled, it indicates end of sync for complete subscription + SyncResponse bool `protobuf:"varint,10,opt,name=sync_response,json=syncResponse,proto3" json:"sync_response,omitempty"` + // Indicates end of wrap + IsWrap bool `protobuf:"varint,11,opt,name=is_wrap,json=isWrap,proto3" json:"is_wrap,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OpenConfigData) Reset() { *m = OpenConfigData{} } +func (m *OpenConfigData) String() string { return proto.CompactTextString(m) } +func (*OpenConfigData) ProtoMessage() {} +func (*OpenConfigData) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{8} +} +func (m *OpenConfigData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenConfigData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenConfigData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OpenConfigData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenConfigData.Merge(m, src) +} +func (m *OpenConfigData) XXX_Size() int { + return m.Size() +} +func (m *OpenConfigData) XXX_DiscardUnknown() { + xxx_messageInfo_OpenConfigData.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenConfigData proto.InternalMessageInfo + +func (m *OpenConfigData) GetSystemId() string { + if m != nil { + return m.SystemId + } + return "" +} + +func (m *OpenConfigData) GetComponentId() uint32 { + if m != nil { + return m.ComponentId + } + return 0 +} + +func (m *OpenConfigData) GetSubComponentId() uint32 { + if m != nil { + return m.SubComponentId + } + return 0 +} + +func (m *OpenConfigData) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *OpenConfigData) GetSequenceNumber() uint64 { + if m != nil { + return m.SequenceNumber + } + return 0 +} + +func (m *OpenConfigData) GetTimestamp() uint64 { + if m != nil { + return m.Timestamp + } + return 0 +} + +func (m *OpenConfigData) GetKv() []*KeyValue { + if m != nil { + return m.Kv + } + return nil +} + +func (m *OpenConfigData) GetDelete() []*Delete { + if m != nil { + return m.Delete + } + return nil +} + +// Deprecated: Do not use. +func (m *OpenConfigData) GetEom() []*Eom { + if m != nil { + return m.Eom + } + return nil +} + +func (m *OpenConfigData) GetSyncResponse() bool { + if m != nil { + return m.SyncResponse + } + return false +} + +func (m *OpenConfigData) GetIsWrap() bool { + if m != nil { + return m.IsWrap + } + return false +} + +// Message indicating delete for a particular path +type Delete struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Delete) Reset() { *m = Delete{} } +func (m *Delete) String() string { return proto.CompactTextString(m) } +func (*Delete) ProtoMessage() {} +func (*Delete) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{9} +} +func (m *Delete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Delete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Delete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Delete) XXX_Merge(src proto.Message) { + xxx_messageInfo_Delete.Merge(m, src) +} +func (m *Delete) XXX_Size() int { + return m.Size() +} +func (m *Delete) XXX_DiscardUnknown() { + xxx_messageInfo_Delete.DiscardUnknown(m) +} + +var xxx_messageInfo_Delete proto.InternalMessageInfo + +func (m *Delete) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +// Message indicating EOM for a particular path +type Eom struct { + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Eom) Reset() { *m = Eom{} } +func (m *Eom) String() string { return proto.CompactTextString(m) } +func (*Eom) ProtoMessage() {} +func (*Eom) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{10} +} +func (m *Eom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Eom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Eom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Eom) XXX_Merge(src proto.Message) { + xxx_messageInfo_Eom.Merge(m, src) +} +func (m *Eom) XXX_Size() int { + return m.Size() +} +func (m *Eom) XXX_DiscardUnknown() { + xxx_messageInfo_Eom.DiscardUnknown(m) +} + +var xxx_messageInfo_Eom proto.InternalMessageInfo + +func (m *Eom) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +// Message sent for a telemetry subscription cancellation request +type CancelSubscriptionRequest struct { + // Subscription identifier as returned by the device when + // subscription was requested + SubscriptionId uint32 `protobuf:"varint,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelSubscriptionRequest) Reset() { *m = CancelSubscriptionRequest{} } +func (m *CancelSubscriptionRequest) String() string { return proto.CompactTextString(m) } +func (*CancelSubscriptionRequest) ProtoMessage() {} +func (*CancelSubscriptionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{11} +} +func (m *CancelSubscriptionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelSubscriptionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CancelSubscriptionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelSubscriptionRequest.Merge(m, src) +} +func (m *CancelSubscriptionRequest) XXX_Size() int { + return m.Size() +} +func (m *CancelSubscriptionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelSubscriptionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelSubscriptionRequest proto.InternalMessageInfo + +func (m *CancelSubscriptionRequest) GetSubscriptionId() uint32 { + if m != nil { + return m.SubscriptionId + } + return 0 +} + +// Reply to telemetry subscription cancellation request +type CancelSubscriptionReply struct { + // Return code + Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=telemetry.ReturnCode" json:"code,omitempty"` + // Return code string + CodeStr string `protobuf:"bytes,2,opt,name=code_str,json=codeStr,proto3" json:"code_str,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelSubscriptionReply) Reset() { *m = CancelSubscriptionReply{} } +func (m *CancelSubscriptionReply) String() string { return proto.CompactTextString(m) } +func (*CancelSubscriptionReply) ProtoMessage() {} +func (*CancelSubscriptionReply) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{12} +} +func (m *CancelSubscriptionReply) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CancelSubscriptionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CancelSubscriptionReply.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CancelSubscriptionReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelSubscriptionReply.Merge(m, src) +} +func (m *CancelSubscriptionReply) XXX_Size() int { + return m.Size() +} +func (m *CancelSubscriptionReply) XXX_DiscardUnknown() { + xxx_messageInfo_CancelSubscriptionReply.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelSubscriptionReply proto.InternalMessageInfo + +func (m *CancelSubscriptionReply) GetCode() ReturnCode { + if m != nil { + return m.Code + } + return ReturnCode_SUCCESS +} + +func (m *CancelSubscriptionReply) GetCodeStr() string { + if m != nil { + return m.CodeStr + } + return "" +} + +// Message sent for a telemetry get request +type GetSubscriptionsRequest struct { + // Subscription identifier as returned by the device when + // subscription was requested + // --- or --- + // 0xFFFFFFFF for all subscription identifiers + SubscriptionId uint32 `protobuf:"varint,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSubscriptionsRequest) Reset() { *m = GetSubscriptionsRequest{} } +func (m *GetSubscriptionsRequest) String() string { return proto.CompactTextString(m) } +func (*GetSubscriptionsRequest) ProtoMessage() {} +func (*GetSubscriptionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{13} +} +func (m *GetSubscriptionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetSubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetSubscriptionsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetSubscriptionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSubscriptionsRequest.Merge(m, src) +} +func (m *GetSubscriptionsRequest) XXX_Size() int { + return m.Size() +} +func (m *GetSubscriptionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetSubscriptionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSubscriptionsRequest proto.InternalMessageInfo + +func (m *GetSubscriptionsRequest) GetSubscriptionId() uint32 { + if m != nil { + return m.SubscriptionId + } + return 0 +} + +// Reply to telemetry subscription get request +type GetSubscriptionsReply struct { + // List of current telemetry subscriptions + SubscriptionList []*SubscriptionReply `protobuf:"bytes,1,rep,name=subscription_list,json=subscriptionList,proto3" json:"subscription_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetSubscriptionsReply) Reset() { *m = GetSubscriptionsReply{} } +func (m *GetSubscriptionsReply) String() string { return proto.CompactTextString(m) } +func (*GetSubscriptionsReply) ProtoMessage() {} +func (*GetSubscriptionsReply) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{14} +} +func (m *GetSubscriptionsReply) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetSubscriptionsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetSubscriptionsReply.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetSubscriptionsReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetSubscriptionsReply.Merge(m, src) +} +func (m *GetSubscriptionsReply) XXX_Size() int { + return m.Size() +} +func (m *GetSubscriptionsReply) XXX_DiscardUnknown() { + xxx_messageInfo_GetSubscriptionsReply.DiscardUnknown(m) +} + +var xxx_messageInfo_GetSubscriptionsReply proto.InternalMessageInfo + +func (m *GetSubscriptionsReply) GetSubscriptionList() []*SubscriptionReply { + if m != nil { + return m.SubscriptionList + } + return nil +} + +// Message sent for telemetry agent operational states request +type GetOperationalStateRequest struct { + // Per-subscription_id level operational state can be requested. + // + // Subscription identifier as returned by the device when + // subscription was requested + // --- or --- + // 0xFFFFFFFF for all subscription identifiers including agent-level + // operational stats + // --- or --- + // If subscription_id is not present then sent only agent-level + // operational stats + SubscriptionId uint32 `protobuf:"varint,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` + // Control verbosity of the output + Verbosity VerbosityLevel `protobuf:"varint,2,opt,name=verbosity,proto3,enum=telemetry.VerbosityLevel" json:"verbosity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOperationalStateRequest) Reset() { *m = GetOperationalStateRequest{} } +func (m *GetOperationalStateRequest) String() string { return proto.CompactTextString(m) } +func (*GetOperationalStateRequest) ProtoMessage() {} +func (*GetOperationalStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{15} +} +func (m *GetOperationalStateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetOperationalStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetOperationalStateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetOperationalStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperationalStateRequest.Merge(m, src) +} +func (m *GetOperationalStateRequest) XXX_Size() int { + return m.Size() +} +func (m *GetOperationalStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetOperationalStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOperationalStateRequest proto.InternalMessageInfo + +func (m *GetOperationalStateRequest) GetSubscriptionId() uint32 { + if m != nil { + return m.SubscriptionId + } + return 0 +} + +func (m *GetOperationalStateRequest) GetVerbosity() VerbosityLevel { + if m != nil { + return m.Verbosity + } + return VerbosityLevel_DETAIL +} + +// Reply to telemetry agent operational states request +type GetOperationalStateReply struct { + // List of key-value pairs where + // key = operational state definition + // value = operational state value + Kv []*KeyValue `protobuf:"bytes,1,rep,name=kv,proto3" json:"kv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOperationalStateReply) Reset() { *m = GetOperationalStateReply{} } +func (m *GetOperationalStateReply) String() string { return proto.CompactTextString(m) } +func (*GetOperationalStateReply) ProtoMessage() {} +func (*GetOperationalStateReply) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{16} +} +func (m *GetOperationalStateReply) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetOperationalStateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetOperationalStateReply.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetOperationalStateReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOperationalStateReply.Merge(m, src) +} +func (m *GetOperationalStateReply) XXX_Size() int { + return m.Size() +} +func (m *GetOperationalStateReply) XXX_DiscardUnknown() { + xxx_messageInfo_GetOperationalStateReply.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOperationalStateReply proto.InternalMessageInfo + +func (m *GetOperationalStateReply) GetKv() []*KeyValue { + if m != nil { + return m.Kv + } + return nil +} + +// Message sent for a data encoding request +type DataEncodingRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataEncodingRequest) Reset() { *m = DataEncodingRequest{} } +func (m *DataEncodingRequest) String() string { return proto.CompactTextString(m) } +func (*DataEncodingRequest) ProtoMessage() {} +func (*DataEncodingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{17} +} +func (m *DataEncodingRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataEncodingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataEncodingRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DataEncodingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataEncodingRequest.Merge(m, src) +} +func (m *DataEncodingRequest) XXX_Size() int { + return m.Size() +} +func (m *DataEncodingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DataEncodingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DataEncodingRequest proto.InternalMessageInfo + +// Reply to data encodings supported request +type DataEncodingReply struct { + EncodingList []EncodingType `protobuf:"varint,1,rep,packed,name=encoding_list,json=encodingList,proto3,enum=telemetry.EncodingType" json:"encoding_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataEncodingReply) Reset() { *m = DataEncodingReply{} } +func (m *DataEncodingReply) String() string { return proto.CompactTextString(m) } +func (*DataEncodingReply) ProtoMessage() {} +func (*DataEncodingReply) Descriptor() ([]byte, []int) { + return fileDescriptor_56ede974c0020f77, []int{18} +} +func (m *DataEncodingReply) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DataEncodingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DataEncodingReply.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DataEncodingReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataEncodingReply.Merge(m, src) +} +func (m *DataEncodingReply) XXX_Size() int { + return m.Size() +} +func (m *DataEncodingReply) XXX_DiscardUnknown() { + xxx_messageInfo_DataEncodingReply.DiscardUnknown(m) +} + +var xxx_messageInfo_DataEncodingReply proto.InternalMessageInfo + +func (m *DataEncodingReply) GetEncodingList() []EncodingType { + if m != nil { + return m.EncodingList + } + return nil +} + +func init() { + proto.RegisterEnum("telemetry.ReturnCode", ReturnCode_name, ReturnCode_value) + proto.RegisterEnum("telemetry.VerbosityLevel", VerbosityLevel_name, VerbosityLevel_value) + proto.RegisterEnum("telemetry.EncodingType", EncodingType_name, EncodingType_value) + proto.RegisterEnum("telemetry.SubscriptionMode", SubscriptionMode_name, SubscriptionMode_value) + proto.RegisterType((*Collector)(nil), "telemetry.Collector") + proto.RegisterType((*SubscriptionInput)(nil), "telemetry.SubscriptionInput") + proto.RegisterType((*Path)(nil), "telemetry.Path") + proto.RegisterType((*SubscriptionAdditionalConfig)(nil), "telemetry.SubscriptionAdditionalConfig") + proto.RegisterType((*SubscriptionRequest)(nil), "telemetry.SubscriptionRequest") + proto.RegisterType((*SubscriptionResponse)(nil), "telemetry.SubscriptionResponse") + proto.RegisterType((*SubscriptionReply)(nil), "telemetry.SubscriptionReply") + proto.RegisterType((*KeyValue)(nil), "telemetry.KeyValue") + proto.RegisterType((*OpenConfigData)(nil), "telemetry.OpenConfigData") + proto.RegisterType((*Delete)(nil), "telemetry.Delete") + proto.RegisterType((*Eom)(nil), "telemetry.Eom") + proto.RegisterType((*CancelSubscriptionRequest)(nil), "telemetry.CancelSubscriptionRequest") + proto.RegisterType((*CancelSubscriptionReply)(nil), "telemetry.CancelSubscriptionReply") + proto.RegisterType((*GetSubscriptionsRequest)(nil), "telemetry.GetSubscriptionsRequest") + proto.RegisterType((*GetSubscriptionsReply)(nil), "telemetry.GetSubscriptionsReply") + proto.RegisterType((*GetOperationalStateRequest)(nil), "telemetry.GetOperationalStateRequest") + proto.RegisterType((*GetOperationalStateReply)(nil), "telemetry.GetOperationalStateReply") + proto.RegisterType((*DataEncodingRequest)(nil), "telemetry.DataEncodingRequest") + proto.RegisterType((*DataEncodingReply)(nil), "telemetry.DataEncodingReply") +} + +func init() { proto.RegisterFile("agent.proto", fileDescriptor_56ede974c0020f77) } + +var fileDescriptor_56ede974c0020f77 = []byte{ + // 1486 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0xcd, 0x72, 0x1a, 0xc7, + 0x16, 0x66, 0x00, 0x09, 0x38, 0xfc, 0x78, 0x68, 0x59, 0x57, 0x48, 0xd6, 0x95, 0xf1, 0xc8, 0x2e, + 0x63, 0x95, 0x25, 0x6e, 0xe1, 0xc5, 0x2d, 0x97, 0x6f, 0x95, 0xcb, 0x42, 0x48, 0xe2, 0x1a, 0x83, + 0xd2, 0x20, 0x3b, 0xc9, 0x66, 0x32, 0xcc, 0xb4, 0x50, 0x4b, 0xf3, 0x97, 0xe9, 0x46, 0x31, 0x1b, + 0xef, 0xf3, 0x02, 0x79, 0x8f, 0x3c, 0x40, 0xf6, 0xd9, 0xa4, 0x2a, 0x8f, 0x90, 0xf2, 0x73, 0x64, + 0x91, 0xea, 0x9e, 0x01, 0x0d, 0x8a, 0xb0, 0xe3, 0x15, 0xd3, 0xdf, 0xf9, 0xfa, 0x9c, 0xd3, 0xa7, + 0xbf, 0x73, 0x66, 0x80, 0xbc, 0x31, 0x22, 0x2e, 0xdf, 0xf3, 0x03, 0x8f, 0x7b, 0x28, 0xc7, 0x89, + 0x4d, 0x1c, 0xc2, 0x83, 0x89, 0xf6, 0x1c, 0x72, 0x4d, 0xcf, 0xb6, 0x89, 0xc9, 0xbd, 0x00, 0x55, + 0x20, 0x63, 0x58, 0x56, 0x40, 0x18, 0xab, 0x28, 0x55, 0xa5, 0x96, 0xc3, 0xd3, 0x25, 0x42, 0x90, + 0xf6, 0xbd, 0x80, 0x57, 0x92, 0x55, 0xa5, 0x56, 0xc4, 0xf2, 0x59, 0x3b, 0x81, 0x72, 0x7f, 0x3c, + 0x64, 0x66, 0x40, 0x7d, 0x4e, 0x3d, 0xb7, 0xed, 0xfa, 0x63, 0x8e, 0x5e, 0x40, 0xc9, 0x9c, 0xfa, + 0xd3, 0x6d, 0xca, 0x78, 0x45, 0xa9, 0xa6, 0x6a, 0xf9, 0xc6, 0xdd, 0xbd, 0x59, 0xcc, 0xbd, 0x59, + 0x40, 0x5c, 0x9c, 0x71, 0x3b, 0x94, 0x71, 0xed, 0xa7, 0x24, 0xa4, 0x4f, 0x0c, 0x7e, 0x2e, 0xc3, + 0x19, 0xfc, 0x3c, 0xca, 0x42, 0x3e, 0xa3, 0x7f, 0xc1, 0xf2, 0x19, 0xb5, 0x39, 0x09, 0x64, 0x12, + 0x39, 0x1c, 0xad, 0xd0, 0x2e, 0x20, 0x36, 0xf6, 0x7d, 0x91, 0xa6, 0x3e, 0x76, 0xcd, 0x73, 0xc3, + 0x1d, 0x11, 0xab, 0x92, 0xaa, 0x2a, 0xb5, 0x2c, 0x2e, 0x4f, 0x2d, 0xa7, 0x53, 0x03, 0xda, 0x83, + 0x15, 0xc7, 0x78, 0xaf, 0x33, 0x6a, 0x13, 0x97, 0xeb, 0xd4, 0xe5, 0x24, 0xb8, 0x32, 0xec, 0x4a, + 0x5a, 0x1e, 0xac, 0xec, 0x18, 0xef, 0xfb, 0xd2, 0xd2, 0x8e, 0x0c, 0xe8, 0x09, 0xa8, 0xcc, 0x70, + 0x7c, 0x9b, 0xe8, 0x67, 0x01, 0xf9, 0x7e, 0x4c, 0x5c, 0x73, 0x52, 0x59, 0x92, 0xe4, 0x3b, 0x21, + 0x7e, 0x38, 0x85, 0xd1, 0x3a, 0x64, 0x5d, 0x42, 0x2c, 0x9d, 0x78, 0x4e, 0x65, 0x59, 0xc6, 0xcf, + 0x88, 0x75, 0xcb, 0x73, 0x44, 0xf2, 0x5e, 0x40, 0x47, 0xd4, 0xad, 0x58, 0x61, 0xf2, 0xe1, 0x0a, + 0x3d, 0x82, 0x12, 0x37, 0x82, 0x11, 0xe1, 0xba, 0x45, 0xce, 0xa8, 0x4b, 0xac, 0x0a, 0x91, 0x1b, + 0x8b, 0x21, 0x7a, 0x10, 0x82, 0xda, 0x2f, 0x0a, 0x6c, 0xc6, 0x6b, 0xfd, 0xca, 0xb2, 0xa8, 0xf8, + 0x35, 0xec, 0xa6, 0xe7, 0x9e, 0xd1, 0x11, 0xda, 0x86, 0xa2, 0x4d, 0x1d, 0xca, 0xf5, 0x80, 0x98, + 0x5e, 0x60, 0x85, 0xf7, 0xb7, 0x84, 0x0b, 0x12, 0xc4, 0x21, 0x86, 0x9e, 0x02, 0x0a, 0x49, 0x9c, + 0x3a, 0x44, 0x67, 0xc4, 0xf4, 0x5c, 0x8b, 0xc9, 0x6a, 0x2e, 0x61, 0x55, 0x5a, 0x06, 0xd4, 0x21, + 0xfd, 0x10, 0x8f, 0x9d, 0x86, 0x45, 0xd5, 0x8c, 0x4e, 0xc3, 0x50, 0x1d, 0xd2, 0x8e, 0x67, 0x11, + 0x59, 0xb4, 0x52, 0xe3, 0x5e, 0xec, 0x6a, 0xe3, 0x49, 0xbe, 0xf1, 0x2c, 0x82, 0x25, 0x51, 0xfb, + 0x4d, 0x81, 0x95, 0xb8, 0x09, 0x8b, 0x92, 0x31, 0x8e, 0x1a, 0xb0, 0x44, 0x85, 0x6c, 0x64, 0xba, + 0xf9, 0xc6, 0xe6, 0x02, 0x4f, 0x52, 0x5a, 0x38, 0xa4, 0xa2, 0xa7, 0x90, 0x13, 0x7a, 0x08, 0xc5, + 0x95, 0x94, 0xe2, 0xba, 0x13, 0xdb, 0x27, 0xf4, 0x83, 0xb3, 0x82, 0x21, 0x24, 0x85, 0x06, 0x50, + 0x36, 0x66, 0xc5, 0xd2, 0x4d, 0x59, 0x2d, 0x79, 0x9c, 0x7c, 0xe3, 0xf1, 0x82, 0x68, 0x37, 0x8b, + 0x8b, 0x55, 0xe3, 0x06, 0xa2, 0xbd, 0x84, 0xbb, 0xf3, 0xc7, 0x61, 0xbe, 0xe7, 0x32, 0x82, 0x1e, + 0xc3, 0x1d, 0x16, 0xc3, 0x75, 0x6a, 0xc9, 0x93, 0x15, 0x71, 0x29, 0x0e, 0xb7, 0x2d, 0xed, 0xc3, + 0x7c, 0xef, 0x60, 0xe2, 0xdb, 0x13, 0xf4, 0x02, 0xb2, 0x41, 0xe4, 0x29, 0x2a, 0xc8, 0xfd, 0x05, + 0x29, 0x4e, 0x03, 0xe2, 0xd9, 0x86, 0x2f, 0x2b, 0x8b, 0xf6, 0x73, 0x12, 0xb2, 0xaf, 0xc9, 0xe4, + 0xad, 0x61, 0x8f, 0x09, 0x52, 0x21, 0x75, 0x49, 0x26, 0x51, 0xb3, 0x89, 0x47, 0xb4, 0x0d, 0x05, + 0xcb, 0x1b, 0x0f, 0x6d, 0xa2, 0x5f, 0x09, 0x86, 0x14, 0xbc, 0x72, 0x9c, 0xc0, 0xf9, 0x10, 0x0d, + 0xb7, 0xfd, 0x1b, 0x72, 0xd4, 0xe5, 0x11, 0x43, 0xe8, 0x3d, 0x75, 0x9c, 0xc0, 0x59, 0xea, 0xf2, + 0xd0, 0x7c, 0x1f, 0x60, 0x7c, 0x6d, 0xcf, 0x54, 0x95, 0x5a, 0xfa, 0x38, 0x81, 0x73, 0xe3, 0x38, + 0x81, 0x5d, 0x13, 0xb2, 0x55, 0xa5, 0x86, 0x04, 0x81, 0xc5, 0x09, 0x43, 0xcf, 0xb3, 0x23, 0x42, + 0x4e, 0x68, 0x50, 0x10, 0x04, 0x36, 0xcb, 0x80, 0xf1, 0x20, 0xb2, 0x83, 0x48, 0x5f, 0x64, 0xc0, + 0x78, 0x10, 0x9a, 0x1f, 0x40, 0x7e, 0x38, 0xe1, 0x84, 0x45, 0x84, 0x7c, 0x55, 0xa9, 0x15, 0x8e, + 0x13, 0x18, 0x24, 0x38, 0xa3, 0x9c, 0xd9, 0x9e, 0x31, 0x4d, 0xa2, 0x50, 0x55, 0x6a, 0x49, 0x41, + 0x91, 0xa0, 0xa4, 0xec, 0x67, 0x60, 0x49, 0x1a, 0xb5, 0x1f, 0x53, 0x50, 0xea, 0xf9, 0xc4, 0x0d, + 0x35, 0x70, 0x60, 0x70, 0x03, 0xdd, 0x83, 0x1c, 0x9b, 0x30, 0x4e, 0x9c, 0xe9, 0x4d, 0xe7, 0x70, + 0x36, 0x04, 0xda, 0x16, 0x7a, 0x00, 0x05, 0xd3, 0x73, 0x7c, 0xcf, 0x95, 0x83, 0xc6, 0x8a, 0x66, + 0x67, 0x7e, 0x86, 0xb5, 0x2d, 0x54, 0x03, 0x95, 0x8d, 0x87, 0xfa, 0x1c, 0x2d, 0x35, 0x13, 0x4c, + 0x33, 0xc6, 0x9c, 0x4e, 0xc4, 0x74, 0x6c, 0x22, 0x0a, 0xb5, 0x85, 0xb3, 0x87, 0xe8, 0xee, 0xd8, + 0x19, 0x92, 0x40, 0x5e, 0x54, 0x1a, 0x97, 0xa6, 0x70, 0x57, 0xa2, 0x68, 0x13, 0x72, 0xa2, 0xe5, + 0x19, 0x37, 0x1c, 0x5f, 0xde, 0x54, 0x1a, 0x5f, 0x03, 0x68, 0x1b, 0x92, 0x97, 0x57, 0x95, 0x8c, + 0x94, 0xcc, 0x4a, 0x4c, 0x32, 0x53, 0x7d, 0xe0, 0xe4, 0xe5, 0x15, 0x7a, 0x02, 0xcb, 0x16, 0xb1, + 0x09, 0x17, 0x17, 0x25, 0x88, 0xe5, 0x18, 0xf1, 0x40, 0x1a, 0x70, 0x44, 0x40, 0x0f, 0x21, 0x25, + 0x26, 0x60, 0x4e, 0xf2, 0x4a, 0x31, 0x5e, 0xcb, 0x73, 0xf6, 0x93, 0x15, 0x05, 0x0b, 0xb3, 0x98, + 0x58, 0x6c, 0xe2, 0x9a, 0xfa, 0x4c, 0xf1, 0x20, 0x67, 0x4c, 0x41, 0x80, 0xb3, 0x7e, 0x5a, 0x83, + 0x0c, 0x65, 0xfa, 0x0f, 0x81, 0xe1, 0xcb, 0xdb, 0xcb, 0xe2, 0x65, 0xca, 0xde, 0x05, 0x86, 0xaf, + 0x6d, 0xc2, 0x72, 0x18, 0xf5, 0xb6, 0x57, 0x85, 0xb6, 0x0e, 0x29, 0x31, 0x74, 0x6f, 0x33, 0x1d, + 0xc0, 0x7a, 0xd3, 0x70, 0x4d, 0x62, 0xdf, 0x36, 0x8e, 0xfe, 0x71, 0xfb, 0xea, 0xb0, 0x76, 0x9b, + 0x17, 0xd1, 0xc4, 0x4f, 0x20, 0x6d, 0x8a, 0xd9, 0xa8, 0xc8, 0xd9, 0xb8, 0x1a, 0x3b, 0x3e, 0x26, + 0x7c, 0x1c, 0xb8, 0x4d, 0x39, 0x15, 0x05, 0x45, 0x4c, 0x58, 0xf1, 0xab, 0x33, 0x3e, 0x7d, 0xa7, + 0x65, 0xc4, 0xba, 0xcf, 0x03, 0x6d, 0x1f, 0xd6, 0x8e, 0x08, 0x8f, 0x7b, 0x67, 0x5f, 0x9c, 0xe4, + 0x10, 0x56, 0xff, 0xee, 0x43, 0xa4, 0xd8, 0x86, 0xf2, 0x9c, 0x87, 0xd8, 0x6b, 0x7a, 0x73, 0xe1, + 0xc0, 0xf1, 0xed, 0x09, 0x56, 0xe3, 0xdb, 0xe4, 0x1c, 0xf9, 0x00, 0x1b, 0x47, 0x84, 0xf7, 0x7c, + 0x12, 0x18, 0xe1, 0x80, 0xec, 0x73, 0x83, 0x93, 0x2f, 0x4d, 0x15, 0xfd, 0x17, 0x72, 0x57, 0x24, + 0x18, 0x7a, 0x8c, 0xf2, 0x89, 0x2c, 0x45, 0xa9, 0xb1, 0x1e, 0xcb, 0xe4, 0xed, 0xd4, 0xd6, 0x21, + 0x57, 0xc4, 0xc6, 0xd7, 0x5c, 0xed, 0x25, 0x54, 0x6e, 0x8d, 0x2f, 0x8e, 0x19, 0xea, 0x5a, 0xf9, + 0xa4, 0xae, 0xb5, 0x55, 0x58, 0x11, 0x9d, 0xdc, 0x72, 0x4d, 0xcf, 0xa2, 0xee, 0x28, 0xca, 0x5c, + 0xfb, 0x0a, 0xca, 0xf3, 0xb0, 0x70, 0xf8, 0x3f, 0x28, 0x92, 0x08, 0xb8, 0xae, 0x59, 0xa9, 0xb1, + 0x16, 0x97, 0x78, 0x64, 0x1f, 0x4c, 0x7c, 0x82, 0x0b, 0x53, 0xb6, 0x28, 0xd5, 0xce, 0x11, 0xc0, + 0xb5, 0x02, 0x50, 0x1e, 0x32, 0xfd, 0xd3, 0x66, 0xb3, 0xd5, 0xef, 0xab, 0x09, 0xb4, 0x0e, 0xab, + 0xdd, 0x9e, 0xde, 0x3f, 0xdd, 0xef, 0x37, 0x71, 0xfb, 0x64, 0xd0, 0xee, 0x75, 0xf5, 0x56, 0x77, + 0x80, 0xbf, 0x51, 0x15, 0x54, 0x86, 0xe2, 0x69, 0xf7, 0x75, 0xb7, 0xf7, 0xae, 0xab, 0xb7, 0x30, + 0xee, 0x61, 0x35, 0xb9, 0xd3, 0x80, 0xd2, 0x7c, 0x41, 0x10, 0xc0, 0xf2, 0x41, 0x6b, 0xf0, 0xaa, + 0xdd, 0x51, 0x13, 0x28, 0x07, 0x4b, 0x83, 0x16, 0xee, 0xb7, 0x54, 0x45, 0x3c, 0xee, 0xe3, 0x76, + 0xeb, 0x50, 0x4d, 0xee, 0xbc, 0x82, 0x42, 0x3c, 0x35, 0x54, 0x84, 0xdc, 0x69, 0xf7, 0xa0, 0x75, + 0xd8, 0xee, 0xb6, 0x0e, 0xd4, 0x04, 0xca, 0x40, 0xea, 0xeb, 0x37, 0x1d, 0x55, 0x11, 0xf8, 0xff, + 0xfb, 0xbd, 0xae, 0xde, 0x6e, 0x0d, 0x0e, 0xd5, 0xa4, 0x70, 0x7c, 0x82, 0x7b, 0x83, 0xde, 0x33, + 0x35, 0xb5, 0xf3, 0x1c, 0xd4, 0x9b, 0x6f, 0x77, 0x54, 0x02, 0xe8, 0xf4, 0xba, 0x47, 0x7a, 0xa7, + 0xfd, 0x56, 0xfa, 0xc9, 0x43, 0xa6, 0xd7, 0x6d, 0xe9, 0xbd, 0xc3, 0x43, 0x55, 0x41, 0x59, 0x48, + 0x9f, 0xf4, 0x3a, 0x1d, 0x35, 0xd9, 0xf8, 0x33, 0x05, 0x2b, 0xd7, 0x93, 0x73, 0x30, 0xad, 0x16, + 0xea, 0x03, 0x9a, 0x95, 0x2e, 0xf2, 0x3d, 0x24, 0x68, 0x6b, 0xa1, 0x06, 0xe5, 0xdd, 0x6c, 0xc4, + 0x95, 0x31, 0x3f, 0x8f, 0xb5, 0xc4, 0x7f, 0x14, 0x44, 0xe1, 0x9e, 0x29, 0x7b, 0x73, 0x70, 0xc3, + 0xb5, 0x74, 0x82, 0x1e, 0xc6, 0x3f, 0x44, 0x17, 0x4d, 0x82, 0x0d, 0xed, 0x33, 0x2c, 0xdf, 0x9e, + 0x68, 0x09, 0x64, 0xc2, 0xfa, 0x88, 0xf0, 0x5b, 0xe3, 0x30, 0x14, 0x77, 0xb1, 0xa0, 0x97, 0x37, + 0xaa, 0x9f, 0xe4, 0x84, 0x41, 0x6c, 0xd8, 0x8c, 0x07, 0xb9, 0xa9, 0x75, 0xf4, 0x68, 0xde, 0xc7, + 0x82, 0x5e, 0xdc, 0xd8, 0xfe, 0x1c, 0x2d, 0x8c, 0x86, 0x41, 0x15, 0xdf, 0x9d, 0x31, 0xed, 0xb3, + 0xb9, 0x0b, 0xb9, 0xa5, 0x59, 0x36, 0x36, 0x17, 0xda, 0xa5, 0xcf, 0xfd, 0xef, 0x7e, 0xfd, 0xb8, + 0xa5, 0xfc, 0xfe, 0x71, 0x4b, 0xf9, 0xe3, 0xe3, 0x96, 0xf2, 0x2d, 0x1e, 0x51, 0xbe, 0x77, 0x31, + 0x76, 0xa9, 0x4f, 0x82, 0x3d, 0x97, 0xf0, 0x3a, 0x35, 0xc9, 0x90, 0x04, 0xa3, 0xfa, 0x39, 0x31, + 0x6c, 0x7e, 0x3e, 0xf4, 0xf8, 0x2e, 0x75, 0x47, 0x84, 0xf1, 0xdd, 0x0b, 0x4e, 0x77, 0x5d, 0x83, + 0xd3, 0x2b, 0x52, 0xf7, 0x2f, 0x47, 0xf5, 0x0b, 0x4e, 0xeb, 0x86, 0x65, 0xf8, 0x9c, 0x04, 0xac, + 0xae, 0x5f, 0x8c, 0x5d, 0x8f, 0xd5, 0x99, 0x79, 0x4e, 0x1c, 0x63, 0xb8, 0x2c, 0xff, 0xd7, 0x3c, + 0xfb, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x98, 0x4b, 0xa8, 0xe6, 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// OpenConfigTelemetryClient is the client API for OpenConfigTelemetry service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type OpenConfigTelemetryClient interface { + // Request an inline subscription for data at the specified path. + // The device should send telemetry data back on the same + // connection as the subscription request. + TelemetrySubscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (OpenConfigTelemetry_TelemetrySubscribeClient, error) + // Terminates and removes an exisiting telemetry subscription + CancelTelemetrySubscription(ctx context.Context, in *CancelSubscriptionRequest, opts ...grpc.CallOption) (*CancelSubscriptionReply, error) + // Get the list of current telemetry subscriptions from the + // target. This command returns a list of existing subscriptions + // not including those that are established via configuration. + GetTelemetrySubscriptions(ctx context.Context, in *GetSubscriptionsRequest, opts ...grpc.CallOption) (*GetSubscriptionsReply, error) + // Get Telemetry Agent Operational States + GetTelemetryOperationalState(ctx context.Context, in *GetOperationalStateRequest, opts ...grpc.CallOption) (*GetOperationalStateReply, error) + // Return the set of data encodings supported by the device for + // telemetry data + GetDataEncodings(ctx context.Context, in *DataEncodingRequest, opts ...grpc.CallOption) (*DataEncodingReply, error) +} + +type openConfigTelemetryClient struct { + cc *grpc.ClientConn +} + +func NewOpenConfigTelemetryClient(cc *grpc.ClientConn) OpenConfigTelemetryClient { + return &openConfigTelemetryClient{cc} +} + +func (c *openConfigTelemetryClient) TelemetrySubscribe(ctx context.Context, in *SubscriptionRequest, opts ...grpc.CallOption) (OpenConfigTelemetry_TelemetrySubscribeClient, error) { + stream, err := c.cc.NewStream(ctx, &_OpenConfigTelemetry_serviceDesc.Streams[0], "/telemetry.OpenConfigTelemetry/telemetrySubscribe", opts...) + if err != nil { + return nil, err + } + x := &openConfigTelemetryTelemetrySubscribeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type OpenConfigTelemetry_TelemetrySubscribeClient interface { + Recv() (*OpenConfigData, error) + grpc.ClientStream +} + +type openConfigTelemetryTelemetrySubscribeClient struct { + grpc.ClientStream +} + +func (x *openConfigTelemetryTelemetrySubscribeClient) Recv() (*OpenConfigData, error) { + m := new(OpenConfigData) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *openConfigTelemetryClient) CancelTelemetrySubscription(ctx context.Context, in *CancelSubscriptionRequest, opts ...grpc.CallOption) (*CancelSubscriptionReply, error) { + out := new(CancelSubscriptionReply) + err := c.cc.Invoke(ctx, "/telemetry.OpenConfigTelemetry/cancelTelemetrySubscription", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *openConfigTelemetryClient) GetTelemetrySubscriptions(ctx context.Context, in *GetSubscriptionsRequest, opts ...grpc.CallOption) (*GetSubscriptionsReply, error) { + out := new(GetSubscriptionsReply) + err := c.cc.Invoke(ctx, "/telemetry.OpenConfigTelemetry/getTelemetrySubscriptions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *openConfigTelemetryClient) GetTelemetryOperationalState(ctx context.Context, in *GetOperationalStateRequest, opts ...grpc.CallOption) (*GetOperationalStateReply, error) { + out := new(GetOperationalStateReply) + err := c.cc.Invoke(ctx, "/telemetry.OpenConfigTelemetry/getTelemetryOperationalState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *openConfigTelemetryClient) GetDataEncodings(ctx context.Context, in *DataEncodingRequest, opts ...grpc.CallOption) (*DataEncodingReply, error) { + out := new(DataEncodingReply) + err := c.cc.Invoke(ctx, "/telemetry.OpenConfigTelemetry/getDataEncodings", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OpenConfigTelemetryServer is the server API for OpenConfigTelemetry service. +type OpenConfigTelemetryServer interface { + // Request an inline subscription for data at the specified path. + // The device should send telemetry data back on the same + // connection as the subscription request. + TelemetrySubscribe(*SubscriptionRequest, OpenConfigTelemetry_TelemetrySubscribeServer) error + // Terminates and removes an exisiting telemetry subscription + CancelTelemetrySubscription(context.Context, *CancelSubscriptionRequest) (*CancelSubscriptionReply, error) + // Get the list of current telemetry subscriptions from the + // target. This command returns a list of existing subscriptions + // not including those that are established via configuration. + GetTelemetrySubscriptions(context.Context, *GetSubscriptionsRequest) (*GetSubscriptionsReply, error) + // Get Telemetry Agent Operational States + GetTelemetryOperationalState(context.Context, *GetOperationalStateRequest) (*GetOperationalStateReply, error) + // Return the set of data encodings supported by the device for + // telemetry data + GetDataEncodings(context.Context, *DataEncodingRequest) (*DataEncodingReply, error) +} + +// UnimplementedOpenConfigTelemetryServer can be embedded to have forward compatible implementations. +type UnimplementedOpenConfigTelemetryServer struct { +} + +func (*UnimplementedOpenConfigTelemetryServer) TelemetrySubscribe(req *SubscriptionRequest, srv OpenConfigTelemetry_TelemetrySubscribeServer) error { + return status.Errorf(codes.Unimplemented, "method TelemetrySubscribe not implemented") +} +func (*UnimplementedOpenConfigTelemetryServer) CancelTelemetrySubscription(ctx context.Context, req *CancelSubscriptionRequest) (*CancelSubscriptionReply, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelTelemetrySubscription not implemented") +} +func (*UnimplementedOpenConfigTelemetryServer) GetTelemetrySubscriptions(ctx context.Context, req *GetSubscriptionsRequest) (*GetSubscriptionsReply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTelemetrySubscriptions not implemented") +} +func (*UnimplementedOpenConfigTelemetryServer) GetTelemetryOperationalState(ctx context.Context, req *GetOperationalStateRequest) (*GetOperationalStateReply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTelemetryOperationalState not implemented") +} +func (*UnimplementedOpenConfigTelemetryServer) GetDataEncodings(ctx context.Context, req *DataEncodingRequest) (*DataEncodingReply, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDataEncodings not implemented") +} + +func RegisterOpenConfigTelemetryServer(s *grpc.Server, srv OpenConfigTelemetryServer) { + s.RegisterService(&_OpenConfigTelemetry_serviceDesc, srv) +} + +func _OpenConfigTelemetry_TelemetrySubscribe_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscriptionRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(OpenConfigTelemetryServer).TelemetrySubscribe(m, &openConfigTelemetryTelemetrySubscribeServer{stream}) +} + +type OpenConfigTelemetry_TelemetrySubscribeServer interface { + Send(*OpenConfigData) error + grpc.ServerStream +} + +type openConfigTelemetryTelemetrySubscribeServer struct { + grpc.ServerStream +} + +func (x *openConfigTelemetryTelemetrySubscribeServer) Send(m *OpenConfigData) error { + return x.ServerStream.SendMsg(m) +} + +func _OpenConfigTelemetry_CancelTelemetrySubscription_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelSubscriptionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OpenConfigTelemetryServer).CancelTelemetrySubscription(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/telemetry.OpenConfigTelemetry/CancelTelemetrySubscription", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OpenConfigTelemetryServer).CancelTelemetrySubscription(ctx, req.(*CancelSubscriptionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OpenConfigTelemetry_GetTelemetrySubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSubscriptionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OpenConfigTelemetryServer).GetTelemetrySubscriptions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/telemetry.OpenConfigTelemetry/GetTelemetrySubscriptions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OpenConfigTelemetryServer).GetTelemetrySubscriptions(ctx, req.(*GetSubscriptionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OpenConfigTelemetry_GetTelemetryOperationalState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOperationalStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OpenConfigTelemetryServer).GetTelemetryOperationalState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/telemetry.OpenConfigTelemetry/GetTelemetryOperationalState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OpenConfigTelemetryServer).GetTelemetryOperationalState(ctx, req.(*GetOperationalStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OpenConfigTelemetry_GetDataEncodings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DataEncodingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OpenConfigTelemetryServer).GetDataEncodings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/telemetry.OpenConfigTelemetry/GetDataEncodings", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OpenConfigTelemetryServer).GetDataEncodings(ctx, req.(*DataEncodingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _OpenConfigTelemetry_serviceDesc = grpc.ServiceDesc{ + ServiceName: "telemetry.OpenConfigTelemetry", + HandlerType: (*OpenConfigTelemetryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "cancelTelemetrySubscription", + Handler: _OpenConfigTelemetry_CancelTelemetrySubscription_Handler, + }, + { + MethodName: "getTelemetrySubscriptions", + Handler: _OpenConfigTelemetry_GetTelemetrySubscriptions_Handler, + }, + { + MethodName: "getTelemetryOperationalState", + Handler: _OpenConfigTelemetry_GetTelemetryOperationalState_Handler, + }, + { + MethodName: "getDataEncodings", + Handler: _OpenConfigTelemetry_GetDataEncodings_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "telemetrySubscribe", + Handler: _OpenConfigTelemetry_TelemetrySubscribe_Handler, + ServerStreams: true, + }, + }, + Metadata: "agent.proto", +} + +func (m *Collector) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Collector) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Collector) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Port != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Port)) + i-- + dAtA[i] = 0x10 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SubscriptionInput) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubscriptionInput) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscriptionInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.CollectorList) > 0 { + for iNdEx := len(m.CollectorList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectorList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Path) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Path) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Path) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TargetDefined { + i-- + if m.TargetDefined { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if len(m.Origin) > 0 { + i -= len(m.Origin) + copy(dAtA[i:], m.Origin) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Origin))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + if m.NeedEom { + i-- + if m.NeedEom { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.SampleFrequency != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SampleFrequency)) + i-- + dAtA[i] = 0x28 + } + if m.MaxSilentInterval != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.MaxSilentInterval)) + i-- + dAtA[i] = 0x20 + } + if m.SuppressUnchanged { + i-- + if m.SuppressUnchanged { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Filter) > 0 { + i -= len(m.Filter) + copy(dAtA[i:], m.Filter) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Filter))) + i-- + dAtA[i] = 0x12 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SubscriptionAdditionalConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubscriptionAdditionalConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscriptionAdditionalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mode != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x20 + } + if m.NeedEos { + i-- + if m.NeedEos { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.LimitTimeSeconds != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.LimitTimeSeconds)) + i-- + dAtA[i] = 0x10 + } + if m.LimitRecords != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.LimitRecords)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SubscriptionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubscriptionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AdditionalConfig != nil { + { + size, err := m.AdditionalConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.PathList) > 0 { + for iNdEx := len(m.PathList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PathList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Input != nil { + { + size, err := m.Input.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SubscriptionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubscriptionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriptionId != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SubscriptionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SubscriptionReply) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SubscriptionReply) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubscriptionReply) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PathList) > 0 { + for iNdEx := len(m.PathList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PathList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Response != nil { + { + size, err := m.Response.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *KeyValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *KeyValue_DoubleValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_DoubleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DoubleValue)))) + i-- + dAtA[i] = 0x29 + return len(dAtA) - i, nil +} +func (m *KeyValue_IntValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_IntValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintAgent(dAtA, i, uint64(m.IntValue)) + i-- + dAtA[i] = 0x30 + return len(dAtA) - i, nil +} +func (m *KeyValue_UintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_UintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintAgent(dAtA, i, uint64(m.UintValue)) + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *KeyValue_SintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_SintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintAgent(dAtA, i, uint64((uint64(m.SintValue)<<1)^uint64((m.SintValue>>63)))) + i-- + dAtA[i] = 0x40 + return len(dAtA) - i, nil +} +func (m *KeyValue_BoolValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i-- + if m.BoolValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + return len(dAtA) - i, nil +} +func (m *KeyValue_StrValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_StrValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StrValue) + copy(dAtA[i:], m.StrValue) + i = encodeVarintAgent(dAtA, i, uint64(len(m.StrValue))) + i-- + dAtA[i] = 0x52 + return len(dAtA) - i, nil +} +func (m *KeyValue_BytesValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_BytesValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BytesValue != nil { + i -= len(m.BytesValue) + copy(dAtA[i:], m.BytesValue) + i = encodeVarintAgent(dAtA, i, uint64(len(m.BytesValue))) + i-- + dAtA[i] = 0x5a + } + return len(dAtA) - i, nil +} +func (m *KeyValue_FloatValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *KeyValue_FloatValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.FloatValue)))) + i-- + dAtA[i] = 0x65 + return len(dAtA) - i, nil +} +func (m *OpenConfigData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpenConfigData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenConfigData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IsWrap { + i-- + if m.IsWrap { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.SyncResponse { + i-- + if m.SyncResponse { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if len(m.Eom) > 0 { + for iNdEx := len(m.Eom) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Eom[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.Delete) > 0 { + for iNdEx := len(m.Delete) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Delete[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Kv) > 0 { + for iNdEx := len(m.Kv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Kv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.Timestamp != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Timestamp)) + i-- + dAtA[i] = 0x30 + } + if m.SequenceNumber != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SequenceNumber)) + i-- + dAtA[i] = 0x28 + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x22 + } + if m.SubComponentId != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SubComponentId)) + i-- + dAtA[i] = 0x18 + } + if m.ComponentId != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.ComponentId)) + i-- + dAtA[i] = 0x10 + } + if len(m.SystemId) > 0 { + i -= len(m.SystemId) + copy(dAtA[i:], m.SystemId) + i = encodeVarintAgent(dAtA, i, uint64(len(m.SystemId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Delete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Delete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Delete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Eom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Eom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Eom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CancelSubscriptionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CancelSubscriptionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelSubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriptionId != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SubscriptionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CancelSubscriptionReply) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CancelSubscriptionReply) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelSubscriptionReply) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.CodeStr) > 0 { + i -= len(m.CodeStr) + copy(dAtA[i:], m.CodeStr) + i = encodeVarintAgent(dAtA, i, uint64(len(m.CodeStr))) + i-- + dAtA[i] = 0x12 + } + if m.Code != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Code)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetSubscriptionsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetSubscriptionsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetSubscriptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriptionId != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SubscriptionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetSubscriptionsReply) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetSubscriptionsReply) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetSubscriptionsReply) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SubscriptionList) > 0 { + for iNdEx := len(m.SubscriptionList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubscriptionList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GetOperationalStateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetOperationalStateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetOperationalStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Verbosity != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.Verbosity)) + i-- + dAtA[i] = 0x10 + } + if m.SubscriptionId != 0 { + i = encodeVarintAgent(dAtA, i, uint64(m.SubscriptionId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *GetOperationalStateReply) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetOperationalStateReply) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetOperationalStateReply) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Kv) > 0 { + for iNdEx := len(m.Kv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Kv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgent(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *DataEncodingRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DataEncodingRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataEncodingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *DataEncodingReply) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DataEncodingReply) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DataEncodingReply) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.EncodingList) > 0 { + dAtA5 := make([]byte, len(m.EncodingList)*10) + var j4 int + for _, num := range m.EncodingList { + for num >= 1<<7 { + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j4++ + } + dAtA5[j4] = uint8(num) + j4++ + } + i -= j4 + copy(dAtA[i:], dAtA5[:j4]) + i = encodeVarintAgent(dAtA, i, uint64(j4)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAgent(dAtA []byte, offset int, v uint64) int { + offset -= sovAgent(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Collector) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Port != 0 { + n += 1 + sovAgent(uint64(m.Port)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubscriptionInput) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CollectorList) > 0 { + for _, e := range m.CollectorList { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Path) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Filter) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.SuppressUnchanged { + n += 2 + } + if m.MaxSilentInterval != 0 { + n += 1 + sovAgent(uint64(m.MaxSilentInterval)) + } + if m.SampleFrequency != 0 { + n += 1 + sovAgent(uint64(m.SampleFrequency)) + } + if m.NeedEom { + n += 2 + } + l = len(m.Origin) + if l > 0 { + n += 2 + l + sovAgent(uint64(l)) + } + if m.TargetDefined { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubscriptionAdditionalConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LimitRecords != 0 { + n += 1 + sovAgent(uint64(m.LimitRecords)) + } + if m.LimitTimeSeconds != 0 { + n += 1 + sovAgent(uint64(m.LimitTimeSeconds)) + } + if m.NeedEos { + n += 2 + } + if m.Mode != 0 { + n += 1 + sovAgent(uint64(m.Mode)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubscriptionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Input != nil { + l = m.Input.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.PathList) > 0 { + for _, e := range m.PathList { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.AdditionalConfig != nil { + l = m.AdditionalConfig.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubscriptionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriptionId != 0 { + n += 1 + sovAgent(uint64(m.SubscriptionId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubscriptionReply) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Response != nil { + l = m.Response.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.PathList) > 0 { + for _, e := range m.PathList { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *KeyValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *KeyValue_DoubleValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *KeyValue_IntValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovAgent(uint64(m.IntValue)) + return n +} +func (m *KeyValue_UintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovAgent(uint64(m.UintValue)) + return n +} +func (m *KeyValue_SintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sozAgent(uint64(m.SintValue)) + return n +} +func (m *KeyValue_BoolValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + return n +} +func (m *KeyValue_StrValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StrValue) + n += 1 + l + sovAgent(uint64(l)) + return n +} +func (m *KeyValue_BytesValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BytesValue != nil { + l = len(m.BytesValue) + n += 1 + l + sovAgent(uint64(l)) + } + return n +} +func (m *KeyValue_FloatValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 5 + return n +} +func (m *OpenConfigData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SystemId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.ComponentId != 0 { + n += 1 + sovAgent(uint64(m.ComponentId)) + } + if m.SubComponentId != 0 { + n += 1 + sovAgent(uint64(m.SubComponentId)) + } + l = len(m.Path) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.SequenceNumber != 0 { + n += 1 + sovAgent(uint64(m.SequenceNumber)) + } + if m.Timestamp != 0 { + n += 1 + sovAgent(uint64(m.Timestamp)) + } + if len(m.Kv) > 0 { + for _, e := range m.Kv { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.Delete) > 0 { + for _, e := range m.Delete { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.Eom) > 0 { + for _, e := range m.Eom { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.SyncResponse { + n += 2 + } + if m.IsWrap { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Delete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Eom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CancelSubscriptionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriptionId != 0 { + n += 1 + sovAgent(uint64(m.SubscriptionId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CancelSubscriptionReply) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Code != 0 { + n += 1 + sovAgent(uint64(m.Code)) + } + l = len(m.CodeStr) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetSubscriptionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriptionId != 0 { + n += 1 + sovAgent(uint64(m.SubscriptionId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetSubscriptionsReply) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SubscriptionList) > 0 { + for _, e := range m.SubscriptionList { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetOperationalStateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriptionId != 0 { + n += 1 + sovAgent(uint64(m.SubscriptionId)) + } + if m.Verbosity != 0 { + n += 1 + sovAgent(uint64(m.Verbosity)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetOperationalStateReply) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Kv) > 0 { + for _, e := range m.Kv { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DataEncodingRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DataEncodingReply) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.EncodingList) > 0 { + l = 0 + for _, e := range m.EncodingList { + l += sovAgent(uint64(e)) + } + n += 1 + sovAgent(uint64(l)) + l + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAgent(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAgent(x uint64) (n int) { + return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Collector) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Collector: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Collector: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubscriptionInput) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubscriptionInput: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubscriptionInput: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectorList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectorList = append(m.CollectorList, &Collector{}) + if err := m.CollectorList[len(m.CollectorList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Path) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Path: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Path: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Filter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuppressUnchanged", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SuppressUnchanged = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSilentInterval", wireType) + } + m.MaxSilentInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxSilentInterval |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SampleFrequency", wireType) + } + m.SampleFrequency = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SampleFrequency |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NeedEom", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NeedEom = bool(v != 0) + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Origin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetDefined", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TargetDefined = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubscriptionAdditionalConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubscriptionAdditionalConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubscriptionAdditionalConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitRecords", wireType) + } + m.LimitRecords = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LimitRecords |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LimitTimeSeconds", wireType) + } + m.LimitTimeSeconds = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LimitTimeSeconds |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NeedEos", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NeedEos = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + m.Mode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mode |= SubscriptionMode(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubscriptionRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubscriptionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubscriptionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Input == nil { + m.Input = &SubscriptionInput{} + } + if err := m.Input.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PathList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PathList = append(m.PathList, &Path{}) + if err := m.PathList[len(m.PathList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdditionalConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdditionalConfig == nil { + m.AdditionalConfig = &SubscriptionAdditionalConfig{} + } + if err := m.AdditionalConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubscriptionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubscriptionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubscriptionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionId", wireType) + } + m.SubscriptionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SubscriptionId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SubscriptionReply) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SubscriptionReply: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubscriptionReply: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Response == nil { + m.Response = &SubscriptionResponse{} + } + if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PathList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PathList = append(m.PathList, &Path{}) + if err := m.PathList[len(m.PathList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *KeyValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: KeyValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KeyValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field DoubleValue", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = &KeyValue_DoubleValue{float64(math.Float64frombits(v))} + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IntValue", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &KeyValue_IntValue{v} + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UintValue", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &KeyValue_UintValue{v} + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SintValue", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + v = (v >> 1) ^ uint64((int64(v&1)<<63)>>63) + m.Value = &KeyValue_SintValue{int64(v)} + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Value = &KeyValue_BoolValue{b} + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = &KeyValue_StrValue{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesValue", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := make([]byte, postIndex-iNdEx) + copy(v, dAtA[iNdEx:postIndex]) + m.Value = &KeyValue_BytesValue{v} + iNdEx = postIndex + case 12: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatValue", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Value = &KeyValue_FloatValue{float32(math.Float32frombits(v))} + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpenConfigData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpenConfigData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenConfigData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ComponentId", wireType) + } + m.ComponentId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ComponentId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubComponentId", wireType) + } + m.SubComponentId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SubComponentId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceNumber", wireType) + } + m.SequenceNumber = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SequenceNumber |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + m.Timestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kv = append(m.Kv, &KeyValue{}) + if err := m.Kv[len(m.Kv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delete", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delete = append(m.Delete, &Delete{}) + if err := m.Delete[len(m.Delete)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Eom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Eom = append(m.Eom, &Eom{}) + if err := m.Eom[len(m.Eom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SyncResponse", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SyncResponse = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsWrap", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsWrap = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Delete) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Eom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Eom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Eom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CancelSubscriptionRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CancelSubscriptionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CancelSubscriptionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionId", wireType) + } + m.SubscriptionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SubscriptionId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CancelSubscriptionReply) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CancelSubscriptionReply: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CancelSubscriptionReply: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + m.Code = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Code |= ReturnCode(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CodeStr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CodeStr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetSubscriptionsRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetSubscriptionsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetSubscriptionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionId", wireType) + } + m.SubscriptionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SubscriptionId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetSubscriptionsReply) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetSubscriptionsReply: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetSubscriptionsReply: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubscriptionList = append(m.SubscriptionList, &SubscriptionReply{}) + if err := m.SubscriptionList[len(m.SubscriptionList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetOperationalStateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetOperationalStateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetOperationalStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionId", wireType) + } + m.SubscriptionId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SubscriptionId |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Verbosity", wireType) + } + m.Verbosity = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Verbosity |= VerbosityLevel(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetOperationalStateReply) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetOperationalStateReply: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetOperationalStateReply: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kv = append(m.Kv, &KeyValue{}) + if err := m.Kv[len(m.Kv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataEncodingRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DataEncodingRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataEncodingRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DataEncodingReply) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DataEncodingReply: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DataEncodingReply: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v EncodingType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= EncodingType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EncodingList = append(m.EncodingList, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthAgent + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.EncodingList) == 0 { + m.EncodingList = make([]EncodingType, 0, elementCount) + } + for iNdEx < postIndex { + var v EncodingType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= EncodingType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EncodingList = append(m.EncodingList, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field EncodingList", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAgent(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAgent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAgent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAgent + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAgent + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAgent + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAgent + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAgent = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAgent = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAgent = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/agent.proto b/schema/agent.proto new file mode 100755 index 0000000..50560c8 --- /dev/null +++ b/schema/agent.proto @@ -0,0 +1,352 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Nitin Kumar 04/07/2016 +// Abbas Sakarwala 04/07/2016 +// +// This file defines the Openconfig Telemetry RPC APIs (for gRPC). +// +// https://github.com/openconfig/public/blob/master/release/models/rpc/openconfig-rpc-api.yang +// +// Version 1.0 +// + +syntax = "proto3"; +option go_package = "github.com/Juniper/jtimon/schema"; +package telemetry; + +// Interface exported by Agent +service OpenConfigTelemetry { + // Request an inline subscription for data at the specified path. + // The device should send telemetry data back on the same + // connection as the subscription request. + rpc telemetrySubscribe(SubscriptionRequest) returns (stream OpenConfigData) {} + + // Terminates and removes an exisiting telemetry subscription + rpc cancelTelemetrySubscription(CancelSubscriptionRequest) returns (CancelSubscriptionReply) {} + + // Get the list of current telemetry subscriptions from the + // target. This command returns a list of existing subscriptions + // not including those that are established via configuration. + rpc getTelemetrySubscriptions(GetSubscriptionsRequest) returns (GetSubscriptionsReply) {} + + // Get Telemetry Agent Operational States + rpc getTelemetryOperationalState(GetOperationalStateRequest) returns (GetOperationalStateReply) {} + + // Return the set of data encodings supported by the device for + // telemetry data + rpc getDataEncodings(DataEncodingRequest) returns (DataEncodingReply) {} +} + +// Collector endpoints to send data specified as an ip+port combination. +message Collector { + // IP address of collector endpoint + string address = 1; + + // Transport protocol port number for the collector destination. + uint32 port = 2; +} + +// Data associated with a telemetry subscription +message SubscriptionInput { + // List of optional collector endpoints to send data for + // this subscription. + // If no collector destinations are specified, the collector + // destination is assumed to be the requester on the rpc channel. + repeated Collector collector_list = 1; +} + +// Data model path +message Path { + // Data model path of interest + // Path specification for elements of OpenConfig data models + string path = 1; + + // Regular expression to be used in filtering state leaves + string filter = 2; + + // If this is set to true, the target device will only send + // updates to the collector upon a change in data value + bool suppress_unchanged = 3; + + // Maximum time in ms the target device may go without sending + // a message to the collector. If this time expires with + // suppress-unchanged set, the target device must send an update + // message regardless if the data values have changed. + uint32 max_silent_interval = 4; + + // Time in ms between collection and transmission of the + // specified data to the collector platform. The target device + // will sample the corresponding data (e.g,. a counter) and + // immediately send to the collector destination. + // + // If sample-frequency is set to 0, then the network device + // must emit an update upon every datum change. + uint32 sample_frequency = 5; + + // EOM needed for each walk cycle of this path? + // For periodic sensor, applicable for each complete reap + // For event sensor, applicable when initial dump is over + // (same as EOS) + bool need_eom = 6; + + // To denote if the path is from OC, IETF + // or some other standards + string origin = 100; + + // Allow the target to decide if the updates need to be sent + // periodically or on-change for the leaves under this path. + // If this is set to true and sample_frequency is non-zero, + // then whichever leaves support on-change will be + // streamed on change and other leaves will be streamed + // at the cadence requested as per sample_frequency. + // If this is set to true and sample_frequency is zero, + // then it will be considered as on-change only. + // If this is set to false, then the streaming will be + // will be periodic if sample_frequency is non-zero + // and will be on-change if sample_frequency is zero. + bool target_defined = 101; +} + +// Configure subscription request additional features. +message SubscriptionAdditionalConfig { + // limit the number of records sent in the stream + int32 limit_records = 1; + + // limit the time the stream remains open + int32 limit_time_seconds = 2; + + // EOS needed for this subscription? + bool need_eos = 3; + + // Subscription mode (long-lived, one_off or poll) + SubscriptionMode mode = 4; +} + +// Message sent for a telemetry subscription request +message SubscriptionRequest { + // Data associated with a telemetry subscription + SubscriptionInput input = 1; + + // List of data models paths and filters + // which are used in a telemetry operation. + repeated Path path_list = 2; + + // The below configuration is not defined in Openconfig RPC. + // It is a proposed extension to configure additional + // subscription request features. + SubscriptionAdditionalConfig additional_config = 3; +} + +// Reply to inline subscription for data at the specified path is done in +// two-folds. +// 1. Reply data message sent out using out-of-band channel. +// 2. Telemetry data send back on the same connection as the +// subscription request. + +// 1. Reply data message sent out using out-of-band channel. + +// Response message to a telemetry subscription creation or get request. +message SubscriptionResponse { + // Unique id for the subscription on the device. This is + // generated by the device and returned in a subscription + // request or when listing existing subscriptions + uint32 subscription_id = 1; +} + +message SubscriptionReply { + // Response message to a telemetry subscription creation or + // get request. + SubscriptionResponse response = 1; + + // List of data models paths and filters + // which are used in a telemetry operation. + repeated Path path_list = 2; +} + +// 2. Telemetry data send back on the same connection as the +// subscription request. + +// Simple Key-value, where value could be one of scalar types +message KeyValue { + // Key + string key = 1; + + // One of possible values + oneof value { + double double_value = 5; + int64 int_value = 6; + uint64 uint_value = 7; + sint64 sint_value = 8; + bool bool_value = 9; + string str_value = 10; + bytes bytes_value = 11; + float float_value = 12; + } +} + +message OpenConfigData { + // router name:export IP address + string system_id = 1; + + // line card / RE (slot number) + uint32 component_id = 2; + + // PFE (if applicable) + uint32 sub_component_id = 3; + + // Path specification for elements of OpenConfig data models + string path = 4; + + // Sequence number, monotonically increasing for each + // system_id, component_id, sub_component_id + path. + uint64 sequence_number = 5; + + // timestamp (milliseconds since epoch) + uint64 timestamp = 6; + + // List of key-value pairs + repeated KeyValue kv = 7; + + // For delete. If filled, it indicates delete + repeated Delete delete = 8; + + // [Deprecated] If filled, it indicates end of marker for the + // respective path in the list. + repeated Eom eom = 9 [deprecated=true]; + + // If filled, it indicates end of sync for complete subscription + bool sync_response = 10; + + // Indicates end of wrap + bool is_wrap = 11; +} + +// Message indicating delete for a particular path +message Delete { + string path = 1; +} + +// Message indicating EOM for a particular path +message Eom { + string path = 1; +} + +// Message sent for a telemetry subscription cancellation request +message CancelSubscriptionRequest { + // Subscription identifier as returned by the device when + // subscription was requested + uint32 subscription_id = 1; +} + +// Result of the operation +enum ReturnCode { + SUCCESS = 0; + NO_SUBSCRIPTION_ENTRY = 1; + UNKNOWN_ERROR = 2; +} + +// Reply to telemetry subscription cancellation request +message CancelSubscriptionReply { + // Return code + ReturnCode code = 1; + + // Return code string + string code_str = 2; +}; + +// Message sent for a telemetry get request +message GetSubscriptionsRequest { + // Subscription identifier as returned by the device when + // subscription was requested + // --- or --- + // 0xFFFFFFFF for all subscription identifiers + uint32 subscription_id = 1; +} + +// Reply to telemetry subscription get request +message GetSubscriptionsReply { + // List of current telemetry subscriptions + repeated SubscriptionReply subscription_list = 1; +} + +// Verbosity Level +enum VerbosityLevel { + DETAIL = 0; + TERSE = 1; + BRIEF = 2; +} + +// Message sent for telemetry agent operational states request +message GetOperationalStateRequest { + // Per-subscription_id level operational state can be requested. + // + // Subscription identifier as returned by the device when + // subscription was requested + // --- or --- + // 0xFFFFFFFF for all subscription identifiers including agent-level + // operational stats + // --- or --- + // If subscription_id is not present then sent only agent-level + // operational stats + uint32 subscription_id = 1; + + // Control verbosity of the output + VerbosityLevel verbosity = 2; +} + +// Reply to telemetry agent operational states request +message GetOperationalStateReply { + // List of key-value pairs where + // key = operational state definition + // value = operational state value + repeated KeyValue kv = 1; +} + +// Message sent for a data encoding request +message DataEncodingRequest { +} + +// Reply to data encodings supported request +message DataEncodingReply { + repeated EncodingType encoding_list = 1; +} + +// Encoding Type Supported +enum EncodingType { + UNDEFINED = 0; + XML = 1; + JSON_IETF = 2; + PROTO3 = 3; +} + +// Subscription modes +enum SubscriptionMode { + LONG_LIVED = 0; + // Not supported + ONE_OFF = 1; + // Not supported + POLL = 2; +} diff --git a/schema/agentd.pb.go b/schema/agentd.pb.go new file mode 100644 index 0000000..0cffb24 --- /dev/null +++ b/schema/agentd.pb.go @@ -0,0 +1,2066 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: agentd.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type TelemetrySystem struct { + Subscriptions *TelemetrySystemSubscriptionsType `protobuf:"bytes,151,opt,name=subscriptions" json:"subscriptions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystem) Reset() { *m = TelemetrySystem{} } +func (m *TelemetrySystem) String() string { return proto.CompactTextString(m) } +func (*TelemetrySystem) ProtoMessage() {} +func (*TelemetrySystem) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0} +} +func (m *TelemetrySystem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystem.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystem) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystem.Merge(m, src) +} +func (m *TelemetrySystem) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystem) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystem.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystem proto.InternalMessageInfo + +func (m *TelemetrySystem) GetSubscriptions() *TelemetrySystemSubscriptionsType { + if m != nil { + return m.Subscriptions + } + return nil +} + +type TelemetrySystemSubscriptionsType struct { + Dynamic *TelemetrySystemSubscriptionsTypeDynamicType `protobuf:"bytes,151,opt,name=dynamic" json:"dynamic,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsType) Reset() { *m = TelemetrySystemSubscriptionsType{} } +func (m *TelemetrySystemSubscriptionsType) String() string { return proto.CompactTextString(m) } +func (*TelemetrySystemSubscriptionsType) ProtoMessage() {} +func (*TelemetrySystemSubscriptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0} +} +func (m *TelemetrySystemSubscriptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsType.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsType) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsType proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsType) GetDynamic() *TelemetrySystemSubscriptionsTypeDynamicType { + if m != nil { + return m.Dynamic + } + return nil +} + +type TelemetrySystemSubscriptionsTypeDynamicType struct { + Subscription []*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList `protobuf:"bytes,151,rep,name=subscription" json:"subscription,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicType) Reset() { + *m = TelemetrySystemSubscriptionsTypeDynamicType{} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) String() string { + return proto.CompactTextString(m) +} +func (*TelemetrySystemSubscriptionsTypeDynamicType) ProtoMessage() {} +func (*TelemetrySystemSubscriptionsTypeDynamicType) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0, 0} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicType.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicType.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicType proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsTypeDynamicType) GetSubscription() []*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList { + if m != nil { + return m.Subscription + } + return nil +} + +type TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList struct { + SubscriptionId *uint64 `protobuf:"varint,51,opt,name=subscription_id,json=subscriptionId" json:"subscription_id,omitempty"` + State *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + SensorPaths *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType `protobuf:"bytes,152,opt,name=sensor_paths,json=sensorPaths" json:"sensor_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) Reset() { + *m = TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList{} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) String() string { + return proto.CompactTextString(m) +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) ProtoMessage() {} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0, 0, 0} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) GetSubscriptionId() uint64 { + if m != nil && m.SubscriptionId != nil { + return *m.SubscriptionId + } + return 0 +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) GetState() *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) GetSensorPaths() *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType { + if m != nil { + return m.SensorPaths + } + return nil +} + +type TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType struct { + SubscriptionId *uint64 `protobuf:"varint,51,opt,name=subscription_id,json=subscriptionId" json:"subscription_id,omitempty"` + SampleInterval *uint64 `protobuf:"varint,52,opt,name=sample_interval,json=sampleInterval" json:"sample_interval,omitempty"` + HeartbeatInterval *uint64 `protobuf:"varint,53,opt,name=heartbeat_interval,json=heartbeatInterval" json:"heartbeat_interval,omitempty"` + SuppressRedundant *bool `protobuf:"varint,54,opt,name=suppress_redundant,json=suppressRedundant" json:"suppress_redundant,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) Reset() { + *m = TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType{} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) String() string { + return proto.CompactTextString(m) +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) ProtoMessage() {} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0, 0, 0, 0} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) GetSubscriptionId() uint64 { + if m != nil && m.SubscriptionId != nil { + return *m.SubscriptionId + } + return 0 +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) GetSampleInterval() uint64 { + if m != nil && m.SampleInterval != nil { + return *m.SampleInterval + } + return 0 +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) GetHeartbeatInterval() uint64 { + if m != nil && m.HeartbeatInterval != nil { + return *m.HeartbeatInterval + } + return 0 +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) GetSuppressRedundant() bool { + if m != nil && m.SuppressRedundant != nil { + return *m.SuppressRedundant + } + return false +} + +type TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType struct { + SensorPath []*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList `protobuf:"bytes,151,rep,name=sensor_path,json=sensorPath" json:"sensor_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) Reset() { + *m = TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType{} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) String() string { + return proto.CompactTextString(m) +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) ProtoMessage() {} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0, 0, 0, 1} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) GetSensorPath() []*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList { + if m != nil { + return m.SensorPath + } + return nil +} + +type TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList struct { + Path *string `protobuf:"bytes,51,opt,name=path" json:"path,omitempty"` + State *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) Reset() { + *m = TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList{} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) String() string { + return proto.CompactTextString(m) +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) ProtoMessage() { +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0, 0, 0, 1, 0} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) GetPath() string { + if m != nil && m.Path != nil { + return *m.Path + } + return "" +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) GetState() *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType { + if m != nil { + return m.State + } + return nil +} + +type TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType struct { + Path *string `protobuf:"bytes,51,opt,name=path" json:"path,omitempty"` + ExcludeFilter *string `protobuf:"bytes,52,opt,name=exclude_filter,json=excludeFilter" json:"exclude_filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) Reset() { + *m = TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType{} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) String() string { + return proto.CompactTextString(m) +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) ProtoMessage() { +} +func (*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_f929025cc6d20165, []int{0, 0, 0, 0, 1, 0, 0} +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType.Merge(m, src) +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) XXX_Size() int { + return m.Size() +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType proto.InternalMessageInfo + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) GetPath() string { + if m != nil && m.Path != nil { + return *m.Path + } + return "" +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) GetExcludeFilter() string { + if m != nil && m.ExcludeFilter != nil { + return *m.ExcludeFilter + } + return "" +} + +var E_JnprTelemetrySystemExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*TelemetrySystem)(nil), + Field: 31, + Name: "jnpr_telemetry_system_ext", + Tag: "bytes,31,opt,name=jnpr_telemetry_system_ext", + Filename: "agentd.proto", +} + +func init() { + proto.RegisterType((*TelemetrySystem)(nil), "telemetry_system") + proto.RegisterType((*TelemetrySystemSubscriptionsType)(nil), "telemetry_system.subscriptions_type") + proto.RegisterType((*TelemetrySystemSubscriptionsTypeDynamicType)(nil), "telemetry_system.subscriptions_type.dynamic_type") + proto.RegisterType((*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList)(nil), "telemetry_system.subscriptions_type.dynamic_type.subscription_list") + proto.RegisterType((*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType)(nil), "telemetry_system.subscriptions_type.dynamic_type.subscription_list.state_type") + proto.RegisterType((*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType)(nil), "telemetry_system.subscriptions_type.dynamic_type.subscription_list.sensor_paths_type") + proto.RegisterType((*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList)(nil), "telemetry_system.subscriptions_type.dynamic_type.subscription_list.sensor_paths_type.sensor_path_list") + proto.RegisterType((*TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType)(nil), "telemetry_system.subscriptions_type.dynamic_type.subscription_list.sensor_paths_type.sensor_path_list.state_type") + proto.RegisterExtension(E_JnprTelemetrySystemExt) +} + +func init() { proto.RegisterFile("agentd.proto", fileDescriptor_f929025cc6d20165) } + +var fileDescriptor_f929025cc6d20165 = []byte{ + // 565 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x92, 0xcd, 0x6e, 0xd3, 0x40, + 0x14, 0x85, 0xe5, 0xfe, 0xa8, 0xc9, 0x24, 0x2d, 0xcd, 0x20, 0x81, 0xeb, 0x45, 0x88, 0x10, 0x88, + 0x6c, 0x62, 0x8b, 0xf2, 0xb3, 0x60, 0x85, 0x8a, 0x00, 0x15, 0x50, 0x85, 0x5c, 0xd8, 0xb0, 0x31, + 0x93, 0xf8, 0x36, 0x9e, 0xd4, 0x19, 0x0f, 0x33, 0xd7, 0x25, 0x59, 0x82, 0x58, 0xc0, 0x13, 0xc0, + 0x9a, 0xe7, 0xe0, 0x01, 0x90, 0xd8, 0xf0, 0x08, 0x28, 0x3b, 0xde, 0x02, 0xd9, 0x8e, 0x89, 0x1d, + 0x0b, 0x09, 0xa4, 0xd2, 0xed, 0x77, 0xcf, 0x9c, 0x7b, 0xe6, 0xea, 0x90, 0x26, 0x1b, 0x82, 0x40, + 0xdf, 0x96, 0x2a, 0xc2, 0xc8, 0x3a, 0x8f, 0x10, 0xc2, 0x18, 0x50, 0x4d, 0x3d, 0x8c, 0x64, 0x06, + 0x2f, 0x7f, 0xab, 0x93, 0xed, 0x05, 0xd7, 0x53, 0x8d, 0x30, 0xa6, 0x8f, 0xc9, 0xa6, 0x8e, 0xfb, + 0x7a, 0xa0, 0xb8, 0x44, 0x1e, 0x09, 0x6d, 0x7e, 0x34, 0x3a, 0x46, 0xb7, 0xb1, 0x7b, 0xc5, 0x5e, + 0x96, 0xda, 0x25, 0x9d, 0x87, 0x53, 0x09, 0x6e, 0xf9, 0xad, 0xf5, 0xb3, 0x46, 0x68, 0x55, 0x45, + 0x9f, 0x90, 0x0d, 0x7f, 0x2a, 0xd8, 0x98, 0x0f, 0x72, 0xf7, 0xeb, 0x7f, 0xe3, 0x6e, 0xcf, 0x1f, + 0x65, 0xab, 0x72, 0x0b, 0xeb, 0x5d, 0x8d, 0x34, 0x8b, 0x13, 0x1a, 0x90, 0x66, 0xf1, 0x71, 0xb2, + 0x63, 0xb5, 0xdb, 0xd8, 0xbd, 0xf7, 0xcf, 0x3b, 0x4a, 0x73, 0x2f, 0xe4, 0x1a, 0xdd, 0x92, 0xb3, + 0xf5, 0x61, 0x83, 0xb4, 0x2a, 0x1a, 0x6a, 0x93, 0x73, 0x25, 0xc8, 0x7d, 0xf3, 0x46, 0xc7, 0xe8, + 0xae, 0xed, 0xad, 0xbf, 0xbd, 0xbb, 0x52, 0x33, 0xdc, 0xad, 0xe2, 0x74, 0xdf, 0xa7, 0x40, 0xd6, + 0x35, 0x32, 0x84, 0xfc, 0x18, 0x07, 0xa7, 0x10, 0xd4, 0x4e, 0x1d, 0xb3, 0x4b, 0x65, 0xee, 0x74, + 0x4a, 0x9a, 0x1a, 0x84, 0x8e, 0x94, 0x27, 0x19, 0x06, 0xda, 0xfc, 0x94, 0x6d, 0x7b, 0x7e, 0x2a, + 0xdb, 0x0a, 0xc6, 0xd9, 0xd2, 0x46, 0x86, 0x9e, 0x26, 0xc4, 0xfa, 0x62, 0x10, 0xb2, 0x08, 0x44, + 0xaf, 0xfd, 0xe1, 0x40, 0x95, 0xcb, 0x24, 0x42, 0x36, 0x96, 0x21, 0x78, 0x5c, 0x20, 0xa8, 0x13, + 0x16, 0x9a, 0x37, 0xe7, 0xc2, 0x14, 0xef, 0xcf, 0x29, 0xed, 0x11, 0x1a, 0x00, 0x53, 0xd8, 0x07, + 0x86, 0x0b, 0xed, 0xad, 0x54, 0xdb, 0xfa, 0x3d, 0x29, 0xca, 0x75, 0x2c, 0xa5, 0x02, 0xad, 0x3d, + 0x05, 0x7e, 0x2c, 0x7c, 0x26, 0xd0, 0xbc, 0xdd, 0x31, 0xba, 0x35, 0xb7, 0x95, 0x4f, 0xdc, 0x7c, + 0x60, 0x7d, 0x5e, 0x25, 0xad, 0xca, 0x0f, 0xe9, 0x7b, 0x83, 0x34, 0x0a, 0x34, 0xaf, 0xd9, 0xd1, + 0x7f, 0xb9, 0x67, 0x91, 0x64, 0x4d, 0x24, 0x8b, 0x03, 0x5b, 0x6f, 0x56, 0xc8, 0xf6, 0xb2, 0x80, + 0xee, 0x90, 0xb5, 0x34, 0x57, 0x72, 0xda, 0x7a, 0xde, 0xbd, 0x14, 0x25, 0xd1, 0xcb, 0x95, 0x7b, + 0x75, 0x36, 0xa1, 0xab, 0xad, 0xb4, 0x1e, 0x96, 0x9a, 0x41, 0x8b, 0x99, 0xe7, 0x61, 0xaf, 0x92, + 0x2d, 0x98, 0x0c, 0xc2, 0xd8, 0x07, 0xef, 0x88, 0x87, 0x08, 0x2a, 0xed, 0x40, 0xdd, 0xdd, 0x9c, + 0xd3, 0x07, 0x29, 0xbc, 0x03, 0x64, 0x67, 0x24, 0xa4, 0xf2, 0x96, 0x3f, 0xe2, 0xc1, 0x04, 0xe9, + 0x45, 0xfb, 0x51, 0x2c, 0xb8, 0x04, 0x75, 0x00, 0xf8, 0x3a, 0x52, 0xc7, 0xfa, 0x30, 0x4d, 0xa6, + 0xcd, 0x4b, 0xe9, 0xf7, 0x5b, 0x95, 0xef, 0xbb, 0x17, 0x12, 0xb3, 0x67, 0x39, 0x3d, 0x4c, 0xe1, + 0xfd, 0x09, 0xee, 0xbd, 0xfc, 0x3a, 0x6b, 0x1b, 0xdf, 0x67, 0x6d, 0xe3, 0xc7, 0xac, 0x6d, 0xbc, + 0x70, 0x87, 0x1c, 0xed, 0x51, 0x66, 0x6d, 0x0b, 0x40, 0x87, 0x0f, 0xa0, 0x0f, 0x6a, 0xe8, 0x04, + 0xc0, 0x42, 0x0c, 0xfa, 0x11, 0xf6, 0xb8, 0x18, 0x82, 0xc6, 0xde, 0x08, 0x79, 0x4f, 0x30, 0xe4, + 0x27, 0xe0, 0xc8, 0xe3, 0xa1, 0x33, 0x42, 0xee, 0x30, 0x9f, 0x49, 0x04, 0xa5, 0x1d, 0x6f, 0x14, + 0x8b, 0x48, 0x3b, 0x7a, 0x10, 0xc0, 0x98, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x6c, 0x6a, 0xbe, + 0xfa, 0xba, 0x05, 0x00, 0x00, +} + +func (m *TelemetrySystem) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystem) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subscriptions != nil { + { + size, err := m.Subscriptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Dynamic != nil { + { + size, err := m.Dynamic.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subscription) > 0 { + for iNdEx := len(m.Subscription) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subscription[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SensorPaths != nil { + { + size, err := m.SensorPaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SubscriptionId != nil { + i = encodeVarintAgentd(dAtA, i, uint64(*m.SubscriptionId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SuppressRedundant != nil { + i-- + if *m.SuppressRedundant { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.HeartbeatInterval != nil { + i = encodeVarintAgentd(dAtA, i, uint64(*m.HeartbeatInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SampleInterval != nil { + i = encodeVarintAgentd(dAtA, i, uint64(*m.SampleInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.SubscriptionId != nil { + i = encodeVarintAgentd(dAtA, i, uint64(*m.SubscriptionId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SensorPath) > 0 { + for iNdEx := len(m.SensorPath) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SensorPath[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAgentd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Path != nil { + i -= len(*m.Path) + copy(dAtA[i:], *m.Path) + i = encodeVarintAgentd(dAtA, i, uint64(len(*m.Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExcludeFilter != nil { + i -= len(*m.ExcludeFilter) + copy(dAtA[i:], *m.ExcludeFilter) + i = encodeVarintAgentd(dAtA, i, uint64(len(*m.ExcludeFilter))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Path != nil { + i -= len(*m.Path) + copy(dAtA[i:], *m.Path) + i = encodeVarintAgentd(dAtA, i, uint64(len(*m.Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintAgentd(dAtA []byte, offset int, v uint64) int { + offset -= sovAgentd(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TelemetrySystem) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Subscriptions != nil { + l = m.Subscriptions.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dynamic != nil { + l = m.Dynamic.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subscription) > 0 { + for _, e := range m.Subscription { + l = e.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriptionId != nil { + n += 2 + sovAgentd(uint64(*m.SubscriptionId)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + if m.SensorPaths != nil { + l = m.SensorPaths.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriptionId != nil { + n += 2 + sovAgentd(uint64(*m.SubscriptionId)) + } + if m.SampleInterval != nil { + n += 2 + sovAgentd(uint64(*m.SampleInterval)) + } + if m.HeartbeatInterval != nil { + n += 2 + sovAgentd(uint64(*m.HeartbeatInterval)) + } + if m.SuppressRedundant != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SensorPath) > 0 { + for _, e := range m.SensorPath { + l = e.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Path != nil { + l = len(*m.Path) + n += 2 + l + sovAgentd(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovAgentd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Path != nil { + l = len(*m.Path) + n += 2 + l + sovAgentd(uint64(l)) + } + if m.ExcludeFilter != nil { + l = len(*m.ExcludeFilter) + n += 2 + l + sovAgentd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAgentd(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAgentd(x uint64) (n int) { + return sovAgentd(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TelemetrySystem) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: telemetry_system: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: telemetry_system: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscriptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subscriptions == nil { + m.Subscriptions = &TelemetrySystemSubscriptionsType{} + } + if err := m.Subscriptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriptions_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriptions_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dynamic", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Dynamic == nil { + m.Dynamic = &TelemetrySystemSubscriptionsTypeDynamicType{} + } + if err := m.Dynamic.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsTypeDynamicType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dynamic_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dynamic_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subscription = append(m.Subscription, &TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList{}) + if err := m.Subscription[len(m.Subscription)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscription_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscription_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriptionId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SensorPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SensorPaths == nil { + m.SensorPaths = &TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType{} + } + if err := m.SensorPaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriptionId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriptionId = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SampleInterval", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SampleInterval = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HeartbeatInterval", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HeartbeatInterval = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuppressRedundant", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SuppressRedundant = &b + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sensor_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sensor_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SensorPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SensorPath = append(m.SensorPath, &TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList{}) + if err := m.SensorPath[len(m.SensorPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sensor_path_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sensor_path_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Path = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetrySystemSubscriptionsTypeDynamicTypeSubscriptionListSensorPathsTypeSensorPathListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Path = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeFilter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgentd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgentd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAgentd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExcludeFilter = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgentd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAgentd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAgentd(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAgentd + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAgentd + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAgentd + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAgentd + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAgentd + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAgentd + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAgentd = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAgentd = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAgentd = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/agentd.proto b/schema/agentd.proto new file mode 100755 index 0000000..522d992 --- /dev/null +++ b/schema/agentd.proto @@ -0,0 +1,39 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional telemetry_system jnpr_telemetry_system_ext = 31; +} + +message telemetry_system { + optional subscriptions_type subscriptions = 151; + message subscriptions_type { + optional dynamic_type dynamic = 151; + message dynamic_type { + message subscription_list { + optional uint64 subscription_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint64 subscription_id = 51; + optional uint64 sample_interval = 52; + optional uint64 heartbeat_interval = 53; + optional bool suppress_redundant = 54; + } + optional sensor_paths_type sensor_paths = 152; + message sensor_paths_type { + message sensor_path_list { + optional string path = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string path = 51; + optional string exclude_filter = 52; + } + } + repeated sensor_path_list sensor_path = 151; + } + } + repeated subscription_list subscription = 151; + } + } +} diff --git a/schema/alarmd_oc.pb.go b/schema/alarmd_oc.pb.go new file mode 100644 index 0000000..b966c36 --- /dev/null +++ b/schema/alarmd_oc.pb.go @@ -0,0 +1,1255 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: alarmd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type SystemAlarm struct { + Alarms *SystemAlarmAlarmsType `protobuf:"bytes,150,opt,name=alarms" json:"alarms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemAlarm) Reset() { *m = SystemAlarm{} } +func (m *SystemAlarm) String() string { return proto.CompactTextString(m) } +func (*SystemAlarm) ProtoMessage() {} +func (*SystemAlarm) Descriptor() ([]byte, []int) { + return fileDescriptor_bb073604d2df3a66, []int{0} +} +func (m *SystemAlarm) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemAlarm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemAlarm.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemAlarm) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemAlarm.Merge(m, src) +} +func (m *SystemAlarm) XXX_Size() int { + return m.Size() +} +func (m *SystemAlarm) XXX_DiscardUnknown() { + xxx_messageInfo_SystemAlarm.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemAlarm proto.InternalMessageInfo + +func (m *SystemAlarm) GetAlarms() *SystemAlarmAlarmsType { + if m != nil { + return m.Alarms + } + return nil +} + +type SystemAlarmAlarmsType struct { + Alarm []*SystemAlarmAlarmsTypeAlarmList `protobuf:"bytes,151,rep,name=alarm" json:"alarm,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemAlarmAlarmsType) Reset() { *m = SystemAlarmAlarmsType{} } +func (m *SystemAlarmAlarmsType) String() string { return proto.CompactTextString(m) } +func (*SystemAlarmAlarmsType) ProtoMessage() {} +func (*SystemAlarmAlarmsType) Descriptor() ([]byte, []int) { + return fileDescriptor_bb073604d2df3a66, []int{0, 0} +} +func (m *SystemAlarmAlarmsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemAlarmAlarmsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemAlarmAlarmsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemAlarmAlarmsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemAlarmAlarmsType.Merge(m, src) +} +func (m *SystemAlarmAlarmsType) XXX_Size() int { + return m.Size() +} +func (m *SystemAlarmAlarmsType) XXX_DiscardUnknown() { + xxx_messageInfo_SystemAlarmAlarmsType.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemAlarmAlarmsType proto.InternalMessageInfo + +func (m *SystemAlarmAlarmsType) GetAlarm() []*SystemAlarmAlarmsTypeAlarmList { + if m != nil { + return m.Alarm + } + return nil +} + +type SystemAlarmAlarmsTypeAlarmList struct { + Id *string `protobuf:"bytes,51,opt,name=id" json:"id,omitempty"` + State *SystemAlarmAlarmsTypeAlarmListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemAlarmAlarmsTypeAlarmList) Reset() { *m = SystemAlarmAlarmsTypeAlarmList{} } +func (m *SystemAlarmAlarmsTypeAlarmList) String() string { return proto.CompactTextString(m) } +func (*SystemAlarmAlarmsTypeAlarmList) ProtoMessage() {} +func (*SystemAlarmAlarmsTypeAlarmList) Descriptor() ([]byte, []int) { + return fileDescriptor_bb073604d2df3a66, []int{0, 0, 0} +} +func (m *SystemAlarmAlarmsTypeAlarmList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemAlarmAlarmsTypeAlarmList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemAlarmAlarmsTypeAlarmList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemAlarmAlarmsTypeAlarmList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemAlarmAlarmsTypeAlarmList.Merge(m, src) +} +func (m *SystemAlarmAlarmsTypeAlarmList) XXX_Size() int { + return m.Size() +} +func (m *SystemAlarmAlarmsTypeAlarmList) XXX_DiscardUnknown() { + xxx_messageInfo_SystemAlarmAlarmsTypeAlarmList.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemAlarmAlarmsTypeAlarmList proto.InternalMessageInfo + +func (m *SystemAlarmAlarmsTypeAlarmList) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *SystemAlarmAlarmsTypeAlarmList) GetState() *SystemAlarmAlarmsTypeAlarmListStateType { + if m != nil { + return m.State + } + return nil +} + +type SystemAlarmAlarmsTypeAlarmListStateType struct { + Id *string `protobuf:"bytes,51,opt,name=id" json:"id,omitempty"` + Resource *string `protobuf:"bytes,53,opt,name=resource" json:"resource,omitempty"` + Text *string `protobuf:"bytes,52,opt,name=text" json:"text,omitempty"` + TimeCreated *uint64 `protobuf:"varint,54,opt,name=time_created,json=timeCreated" json:"time_created,omitempty"` + Severity *string `protobuf:"bytes,55,opt,name=severity" json:"severity,omitempty"` + TypeId *string `protobuf:"bytes,56,opt,name=type_id,json=typeId" json:"type_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) Reset() { + *m = SystemAlarmAlarmsTypeAlarmListStateType{} +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) String() string { return proto.CompactTextString(m) } +func (*SystemAlarmAlarmsTypeAlarmListStateType) ProtoMessage() {} +func (*SystemAlarmAlarmsTypeAlarmListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bb073604d2df3a66, []int{0, 0, 0, 0} +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemAlarmAlarmsTypeAlarmListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemAlarmAlarmsTypeAlarmListStateType.Merge(m, src) +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) XXX_Size() int { + return m.Size() +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_SystemAlarmAlarmsTypeAlarmListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemAlarmAlarmsTypeAlarmListStateType proto.InternalMessageInfo + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) GetResource() string { + if m != nil && m.Resource != nil { + return *m.Resource + } + return "" +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) GetText() string { + if m != nil && m.Text != nil { + return *m.Text + } + return "" +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) GetTimeCreated() uint64 { + if m != nil && m.TimeCreated != nil { + return *m.TimeCreated + } + return 0 +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) GetSeverity() string { + if m != nil && m.Severity != nil { + return *m.Severity + } + return "" +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) GetTypeId() string { + if m != nil && m.TypeId != nil { + return *m.TypeId + } + return "" +} + +var E_JnprSystemAlarmExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SystemAlarm)(nil), + Field: 111, + Name: "jnpr_system_alarm_ext", + Tag: "bytes,111,opt,name=jnpr_system_alarm_ext", + Filename: "alarmd_oc.proto", +} + +func init() { + proto.RegisterType((*SystemAlarm)(nil), "system_alarm") + proto.RegisterType((*SystemAlarmAlarmsType)(nil), "system_alarm.alarms_type") + proto.RegisterType((*SystemAlarmAlarmsTypeAlarmList)(nil), "system_alarm.alarms_type.alarm_list") + proto.RegisterType((*SystemAlarmAlarmsTypeAlarmListStateType)(nil), "system_alarm.alarms_type.alarm_list.state_type") + proto.RegisterExtension(E_JnprSystemAlarmExt) +} + +func init() { proto.RegisterFile("alarmd_oc.proto", fileDescriptor_bb073604d2df3a66) } + +var fileDescriptor_bb073604d2df3a66 = []byte{ + // 420 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xcf, 0x6e, 0x13, 0x31, + 0x10, 0xc6, 0xe5, 0x6d, 0x53, 0xca, 0xa4, 0x80, 0x64, 0x54, 0xd5, 0xec, 0x21, 0x0a, 0x88, 0x43, + 0x2e, 0xd9, 0x95, 0xc2, 0x5f, 0xc1, 0x05, 0x8a, 0x40, 0x82, 0x03, 0x87, 0xed, 0x09, 0x2e, 0xc6, + 0xdd, 0x1d, 0x25, 0xde, 0x66, 0xd7, 0x2b, 0x7b, 0x52, 0x9a, 0x2b, 0x8f, 0xc0, 0x01, 0x5e, 0x20, + 0x0f, 0xc3, 0x91, 0x37, 0x00, 0xe5, 0x49, 0x90, 0x6d, 0x20, 0xe1, 0x80, 0xd4, 0xdb, 0x7c, 0xbf, + 0xf1, 0x7c, 0xdf, 0x78, 0xe0, 0x86, 0x9a, 0x2b, 0xdb, 0x54, 0xd2, 0x94, 0x59, 0x67, 0x0d, 0x99, + 0xf4, 0x26, 0xe1, 0x1c, 0x1b, 0x24, 0xbb, 0x94, 0x64, 0xba, 0x08, 0xef, 0xac, 0x76, 0xe0, 0xc0, + 0x2d, 0x1d, 0x61, 0x23, 0xc3, 0x7b, 0x3e, 0x81, 0xbd, 0x50, 0x38, 0xf1, 0x85, 0x0d, 0xd9, 0xa8, + 0x3f, 0xb9, 0x95, 0x6d, 0xf7, 0xb3, 0xd8, 0x94, 0xb4, 0xec, 0xb0, 0xf8, 0xfd, 0x32, 0xfd, 0x91, + 0x40, 0x7f, 0x8b, 0xf3, 0xa7, 0xd0, 0x0b, 0x52, 0x7c, 0x65, 0xc3, 0x9d, 0x51, 0x7f, 0x72, 0xf7, + 0xbf, 0x16, 0xb1, 0x96, 0x73, 0xed, 0xa8, 0x88, 0x33, 0xe9, 0xe7, 0x04, 0x60, 0x43, 0xf9, 0x21, + 0x24, 0xba, 0x12, 0xf7, 0x86, 0x6c, 0x74, 0xf5, 0xb8, 0xf7, 0xe9, 0x59, 0xb2, 0xcf, 0x8a, 0x44, + 0x57, 0xfc, 0x15, 0xf4, 0x1c, 0x29, 0x42, 0x1f, 0xe1, 0xb7, 0xcc, 0x2f, 0x13, 0x91, 0x85, 0x91, + 0xb8, 0x7b, 0x1c, 0x4f, 0x57, 0x0c, 0x60, 0x43, 0xf9, 0xf5, 0x4d, 0x5a, 0x88, 0x49, 0x61, 0xdf, + 0xa2, 0x33, 0x0b, 0x5b, 0xa2, 0x78, 0x10, 0xe8, 0x5f, 0xcd, 0x39, 0xec, 0x12, 0x5e, 0x90, 0xb8, + 0x1f, 0x78, 0xa8, 0xf9, 0x6d, 0x38, 0x20, 0xdd, 0xa0, 0x2c, 0x2d, 0x2a, 0xc2, 0x4a, 0x3c, 0x1c, + 0xb2, 0xd1, 0x6e, 0xd1, 0xf7, 0xec, 0x45, 0x44, 0xde, 0xd2, 0xe1, 0x39, 0x5a, 0x4d, 0x4b, 0xf1, + 0x28, 0x5a, 0xfe, 0xd1, 0xfc, 0x08, 0xae, 0xf8, 0x35, 0xa4, 0xae, 0xc4, 0xe3, 0xd0, 0xda, 0xf3, + 0xf2, 0x75, 0xf5, 0xe4, 0x1d, 0x1c, 0xd6, 0x6d, 0x67, 0xe5, 0xf6, 0x27, 0xa5, 0x0f, 0x3c, 0xca, + 0xde, 0x2c, 0x5a, 0xdd, 0xa1, 0x7d, 0x8b, 0xf4, 0xd1, 0xd8, 0x33, 0x77, 0x82, 0xad, 0x33, 0xd6, + 0x09, 0x13, 0xce, 0x72, 0xed, 0x9f, 0xb3, 0x14, 0xdc, 0x9b, 0x9c, 0x04, 0xf2, 0xdc, 0x83, 0x97, + 0x17, 0x74, 0xfc, 0xe1, 0xdb, 0x7a, 0xc0, 0xbe, 0xaf, 0x07, 0xec, 0xe7, 0x7a, 0xc0, 0xde, 0x17, + 0x53, 0x4d, 0x59, 0x1d, 0x2d, 0xb3, 0x16, 0x29, 0xd7, 0x25, 0x9e, 0xa2, 0x9d, 0xe6, 0x33, 0x54, + 0x73, 0x9a, 0x9d, 0x1a, 0x1a, 0xeb, 0x76, 0x8a, 0x8e, 0xc6, 0x35, 0xe9, 0x71, 0xab, 0x48, 0x9f, + 0x63, 0xde, 0x9d, 0x4d, 0xf3, 0x9a, 0x74, 0xae, 0x2a, 0xd5, 0x11, 0x5a, 0x97, 0xcb, 0x7a, 0xd1, + 0x1a, 0x97, 0xbb, 0x72, 0x86, 0x8d, 0xfa, 0x15, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x4b, 0x90, 0x46, + 0x8a, 0x02, 0x00, 0x00, +} + +func (m *SystemAlarm) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemAlarm) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemAlarm) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Alarms != nil { + { + size, err := m.Alarms.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAlarmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xb2 + } + return len(dAtA) - i, nil +} + +func (m *SystemAlarmAlarmsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemAlarmAlarmsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemAlarmAlarmsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Alarm) > 0 { + for iNdEx := len(m.Alarm) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Alarm[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAlarmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *SystemAlarmAlarmsTypeAlarmList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemAlarmAlarmsTypeAlarmList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemAlarmAlarmsTypeAlarmList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAlarmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintAlarmdOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TypeId != nil { + i -= len(*m.TypeId) + copy(dAtA[i:], *m.TypeId) + i = encodeVarintAlarmdOc(dAtA, i, uint64(len(*m.TypeId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Severity != nil { + i -= len(*m.Severity) + copy(dAtA[i:], *m.Severity) + i = encodeVarintAlarmdOc(dAtA, i, uint64(len(*m.Severity))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.TimeCreated != nil { + i = encodeVarintAlarmdOc(dAtA, i, uint64(*m.TimeCreated)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Resource != nil { + i -= len(*m.Resource) + copy(dAtA[i:], *m.Resource) + i = encodeVarintAlarmdOc(dAtA, i, uint64(len(*m.Resource))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Text != nil { + i -= len(*m.Text) + copy(dAtA[i:], *m.Text) + i = encodeVarintAlarmdOc(dAtA, i, uint64(len(*m.Text))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintAlarmdOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintAlarmdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovAlarmdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SystemAlarm) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Alarms != nil { + l = m.Alarms.Size() + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SystemAlarmAlarmsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Alarm) > 0 { + for _, e := range m.Alarm { + l = e.Size() + n += 2 + l + sovAlarmdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SystemAlarmAlarmsTypeAlarmList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SystemAlarmAlarmsTypeAlarmListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.Text != nil { + l = len(*m.Text) + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.Resource != nil { + l = len(*m.Resource) + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.TimeCreated != nil { + n += 2 + sovAlarmdOc(uint64(*m.TimeCreated)) + } + if m.Severity != nil { + l = len(*m.Severity) + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.TypeId != nil { + l = len(*m.TypeId) + n += 2 + l + sovAlarmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAlarmdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAlarmdOc(x uint64) (n int) { + return sovAlarmdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SystemAlarm) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_alarm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_alarm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 150: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Alarms == nil { + m.Alarms = &SystemAlarmAlarmsType{} + } + if err := m.Alarms.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAlarmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemAlarmAlarmsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: alarms_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: alarms_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Alarm = append(m.Alarm, &SystemAlarmAlarmsTypeAlarmList{}) + if err := m.Alarm[len(m.Alarm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAlarmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemAlarmAlarmsTypeAlarmList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: alarm_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: alarm_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &SystemAlarmAlarmsTypeAlarmListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAlarmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemAlarmAlarmsTypeAlarmListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Text = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Resource = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeCreated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TimeCreated = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Severity = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TypeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAlarmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAlarmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TypeId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAlarmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAlarmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAlarmdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAlarmdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAlarmdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAlarmdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAlarmdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAlarmdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAlarmdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAlarmdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/alarmd_oc.proto b/schema/alarmd_oc.proto new file mode 100755 index 0000000..2184acf --- /dev/null +++ b/schema/alarmd_oc.proto @@ -0,0 +1,26 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional system_alarm jnpr_system_alarm_ext = 111; +} + +message system_alarm { + optional alarms_type alarms = 150; + message alarms_type { + message alarm_list { + optional string id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string id = 51; + optional string resource = 53; + optional string text = 52; + optional uint64 time_created = 54; + optional string severity = 55; + optional string type_id = 56; + } + } + repeated alarm_list alarm = 151; + } +} diff --git a/schema/am-if-oc_render.pb.go b/schema/am-if-oc_render.pb.go new file mode 100644 index 0000000..3e129d4 --- /dev/null +++ b/schema/am-if-oc_render.pb.go @@ -0,0 +1,5004 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: am-if-oc_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesIpCounters struct { + Interface []*InterfacesIpCountersInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCounters) Reset() { *m = InterfacesIpCounters{} } +func (m *InterfacesIpCounters) String() string { return proto.CompactTextString(m) } +func (*InterfacesIpCounters) ProtoMessage() {} +func (*InterfacesIpCounters) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0} +} +func (m *InterfacesIpCounters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCounters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCounters.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCounters) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCounters.Merge(m, src) +} +func (m *InterfacesIpCounters) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCounters) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCounters.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCounters proto.InternalMessageInfo + +func (m *InterfacesIpCounters) GetInterface() []*InterfacesIpCountersInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesIpCountersInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + InitTime *uint64 `protobuf:"varint,52,opt,name=init_time,json=initTime" json:"init_time,omitempty"` + State []*InterfacesIpCountersInterfaceListStateList `protobuf:"bytes,151,rep,name=state" json:"state,omitempty"` + Subinterfaces []*InterfacesIpCountersInterfaceListSubinterfacesList `protobuf:"bytes,152,rep,name=subinterfaces" json:"subinterfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceList) Reset() { *m = InterfacesIpCountersInterfaceList{} } +func (m *InterfacesIpCountersInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesIpCountersInterfaceList) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0} +} +func (m *InterfacesIpCountersInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesIpCountersInterfaceList) GetInitTime() uint64 { + if m != nil && m.InitTime != nil { + return *m.InitTime + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceList) GetState() []*InterfacesIpCountersInterfaceListStateList { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesIpCountersInterfaceList) GetSubinterfaces() []*InterfacesIpCountersInterfaceListSubinterfacesList { + if m != nil { + return m.Subinterfaces + } + return nil +} + +type InterfacesIpCountersInterfaceListStateList struct { + ParentAeName *string `protobuf:"bytes,51,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + OperStatus *string `protobuf:"bytes,52,opt,name=oper_status,json=operStatus" json:"oper_status,omitempty"` + HighSpeed *uint32 `protobuf:"varint,53,opt,name=high_speed,json=highSpeed" json:"high_speed,omitempty"` + Counters []*InterfacesIpCountersInterfaceListStateListCountersList `protobuf:"bytes,151,rep,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListStateList) Reset() { + *m = InterfacesIpCountersInterfaceListStateList{} +} +func (m *InterfacesIpCountersInterfaceListStateList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListStateList) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListStateList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 0} +} +func (m *InterfacesIpCountersInterfaceListStateList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListStateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListStateList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListStateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListStateList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListStateList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListStateList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListStateList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListStateList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListStateList) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *InterfacesIpCountersInterfaceListStateList) GetOperStatus() string { + if m != nil && m.OperStatus != nil { + return *m.OperStatus + } + return "" +} + +func (m *InterfacesIpCountersInterfaceListStateList) GetHighSpeed() uint32 { + if m != nil && m.HighSpeed != nil { + return *m.HighSpeed + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateList) GetCounters() []*InterfacesIpCountersInterfaceListStateListCountersList { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesIpCountersInterfaceListStateListCountersList struct { + InPkts *uint64 `protobuf:"varint,51,opt,name=in_pkts,json=inPkts" json:"in_pkts,omitempty"` + InOctets *uint64 `protobuf:"varint,52,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InUnicastPkts *uint64 `protobuf:"varint,53,opt,name=in_unicast_pkts,json=inUnicastPkts" json:"in_unicast_pkts,omitempty"` + InMulticastPkts *uint64 `protobuf:"varint,54,opt,name=in_multicast_pkts,json=inMulticastPkts" json:"in_multicast_pkts,omitempty"` + InBroadcastPkts *uint64 `protobuf:"varint,55,opt,name=in_broadcast_pkts,json=inBroadcastPkts" json:"in_broadcast_pkts,omitempty"` + InPausePkts *uint64 `protobuf:"varint,56,opt,name=in_pause_pkts,json=inPausePkts" json:"in_pause_pkts,omitempty"` + OutPkts *uint64 `protobuf:"varint,57,opt,name=out_pkts,json=outPkts" json:"out_pkts,omitempty"` + OutOctets *uint64 `protobuf:"varint,58,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutUnicastPkts *uint64 `protobuf:"varint,59,opt,name=out_unicast_pkts,json=outUnicastPkts" json:"out_unicast_pkts,omitempty"` + OutMulticastPkts *uint64 `protobuf:"varint,60,opt,name=out_multicast_pkts,json=outMulticastPkts" json:"out_multicast_pkts,omitempty"` + OutBroadcastPkts *uint64 `protobuf:"varint,61,opt,name=out_broadcast_pkts,json=outBroadcastPkts" json:"out_broadcast_pkts,omitempty"` + OutPausePkts *uint64 `protobuf:"varint,62,opt,name=out_pause_pkts,json=outPausePkts" json:"out_pause_pkts,omitempty"` + InErrors *uint64 `protobuf:"varint,63,opt,name=in_errors,json=inErrors" json:"in_errors,omitempty"` + InDiscards *uint64 `protobuf:"varint,64,opt,name=in_discards,json=inDiscards" json:"in_discards,omitempty"` + InUnknownProtoPkts *uint64 `protobuf:"varint,65,opt,name=in_unknown_proto_pkts,json=inUnknownProtoPkts" json:"in_unknown_proto_pkts,omitempty"` + CarrierTransitions *uint64 `protobuf:"varint,66,opt,name=carrier_transitions,json=carrierTransitions" json:"carrier_transitions,omitempty"` + OutErrors *uint64 `protobuf:"varint,67,opt,name=out_errors,json=outErrors" json:"out_errors,omitempty"` + OutDiscards *uint64 `protobuf:"varint,68,opt,name=out_discards,json=outDiscards" json:"out_discards,omitempty"` + OutUnknownProtoPkts *uint64 `protobuf:"varint,69,opt,name=out_unknown_proto_pkts,json=outUnknownProtoPkts" json:"out_unknown_proto_pkts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) Reset() { + *m = InterfacesIpCountersInterfaceListStateListCountersList{} +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListStateListCountersList) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListStateListCountersList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 0, 0} +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListStateListCountersList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListStateListCountersList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListStateListCountersList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListStateListCountersList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInPkts() uint64 { + if m != nil && m.InPkts != nil { + return *m.InPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInUnicastPkts() uint64 { + if m != nil && m.InUnicastPkts != nil { + return *m.InUnicastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInMulticastPkts() uint64 { + if m != nil && m.InMulticastPkts != nil { + return *m.InMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInBroadcastPkts() uint64 { + if m != nil && m.InBroadcastPkts != nil { + return *m.InBroadcastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInPausePkts() uint64 { + if m != nil && m.InPausePkts != nil { + return *m.InPausePkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutPkts() uint64 { + if m != nil && m.OutPkts != nil { + return *m.OutPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutUnicastPkts() uint64 { + if m != nil && m.OutUnicastPkts != nil { + return *m.OutUnicastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutMulticastPkts() uint64 { + if m != nil && m.OutMulticastPkts != nil { + return *m.OutMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutBroadcastPkts() uint64 { + if m != nil && m.OutBroadcastPkts != nil { + return *m.OutBroadcastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutPausePkts() uint64 { + if m != nil && m.OutPausePkts != nil { + return *m.OutPausePkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInErrors() uint64 { + if m != nil && m.InErrors != nil { + return *m.InErrors + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInDiscards() uint64 { + if m != nil && m.InDiscards != nil { + return *m.InDiscards + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetInUnknownProtoPkts() uint64 { + if m != nil && m.InUnknownProtoPkts != nil { + return *m.InUnknownProtoPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetCarrierTransitions() uint64 { + if m != nil && m.CarrierTransitions != nil { + return *m.CarrierTransitions + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutErrors() uint64 { + if m != nil && m.OutErrors != nil { + return *m.OutErrors + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutDiscards() uint64 { + if m != nil && m.OutDiscards != nil { + return *m.OutDiscards + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) GetOutUnknownProtoPkts() uint64 { + if m != nil && m.OutUnknownProtoPkts != nil { + return *m.OutUnknownProtoPkts + } + return 0 +} + +type InterfacesIpCountersInterfaceListSubinterfacesList struct { + Subinterface []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList `protobuf:"bytes,151,rep,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesList{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesList) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListSubinterfacesList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) GetSubinterface() []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList { + if m != nil { + return m.Subinterface + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + InitTime *uint64 `protobuf:"varint,52,opt,name=init_time,json=initTime" json:"init_time,omitempty"` + State []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList `protobuf:"bytes,151,rep,name=state" json:"state,omitempty"` + Ipv4 *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type `protobuf:"bytes,153,opt,name=ipv4" json:"ipv4,omitempty"` + Ipv6 *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type `protobuf:"bytes,154,opt,name=ipv6" json:"ipv6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) GetInitTime() uint64 { + if m != nil && m.InitTime != nil { + return *m.InitTime + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) GetState() []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) GetIpv4() *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type { + if m != nil { + return m.Ipv4 + } + return nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) GetIpv6() *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type { + if m != nil { + return m.Ipv6 + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList struct { + ParentAeName *string `protobuf:"bytes,51,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + OperStatus *string `protobuf:"bytes,52,opt,name=oper_status,json=operStatus" json:"oper_status,omitempty"` + Counters []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList `protobuf:"bytes,151,rep,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) GetOperStatus() string { + if m != nil && m.OperStatus != nil { + return *m.OperStatus + } + return "" +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) GetCounters() []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList struct { + InPkts *uint64 `protobuf:"varint,51,opt,name=in_pkts,json=inPkts" json:"in_pkts,omitempty"` + InOctets *uint64 `protobuf:"varint,52,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + OutPkts *uint64 `protobuf:"varint,53,opt,name=out_pkts,json=outPkts" json:"out_pkts,omitempty"` + OutOctets *uint64 `protobuf:"varint,54,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + InUnicastPkts *uint64 `protobuf:"varint,55,opt,name=in_unicast_pkts,json=inUnicastPkts" json:"in_unicast_pkts,omitempty"` + InMulticastPkts *uint64 `protobuf:"varint,56,opt,name=in_multicast_pkts,json=inMulticastPkts" json:"in_multicast_pkts,omitempty"` + OutUnicastPkts *uint64 `protobuf:"varint,57,opt,name=out_unicast_pkts,json=outUnicastPkts" json:"out_unicast_pkts,omitempty"` + OutMulticastPkts *uint64 `protobuf:"varint,58,opt,name=out_multicast_pkts,json=outMulticastPkts" json:"out_multicast_pkts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) ProtoMessage() { +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 0, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetInPkts() uint64 { + if m != nil && m.InPkts != nil { + return *m.InPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetOutPkts() uint64 { + if m != nil && m.OutPkts != nil { + return *m.OutPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetInUnicastPkts() uint64 { + if m != nil && m.InUnicastPkts != nil { + return *m.InUnicastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetInMulticastPkts() uint64 { + if m != nil && m.InMulticastPkts != nil { + return *m.InMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetOutUnicastPkts() uint64 { + if m != nil && m.OutUnicastPkts != nil { + return *m.OutUnicastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) GetOutMulticastPkts() uint64 { + if m != nil && m.OutMulticastPkts != nil { + return *m.OutMulticastPkts + } + return 0 +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type struct { + State *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType `protobuf:"bytes,153,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 1} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) GetState() *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType struct { + Counters []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList `protobuf:"bytes,153,rep,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) ProtoMessage() { +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 1, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) GetCounters() []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList struct { + InPkts *uint64 `protobuf:"varint,51,opt,name=in_pkts,json=inPkts" json:"in_pkts,omitempty"` + InOctets *uint64 `protobuf:"varint,52,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InMulticastPkts *uint64 `protobuf:"varint,53,opt,name=in_multicast_pkts,json=inMulticastPkts" json:"in_multicast_pkts,omitempty"` + InMulticastOctets *uint64 `protobuf:"varint,54,opt,name=in_multicast_octets,json=inMulticastOctets" json:"in_multicast_octets,omitempty"` + OutPkts *uint64 `protobuf:"varint,55,opt,name=out_pkts,json=outPkts" json:"out_pkts,omitempty"` + OutOctets *uint64 `protobuf:"varint,56,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutMulticastPkts *uint64 `protobuf:"varint,57,opt,name=out_multicast_pkts,json=outMulticastPkts" json:"out_multicast_pkts,omitempty"` + OutMulticastOctets *uint64 `protobuf:"varint,58,opt,name=out_multicast_octets,json=outMulticastOctets" json:"out_multicast_octets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) ProtoMessage() { +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 1, 0, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetInPkts() uint64 { + if m != nil && m.InPkts != nil { + return *m.InPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetInMulticastPkts() uint64 { + if m != nil && m.InMulticastPkts != nil { + return *m.InMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetInMulticastOctets() uint64 { + if m != nil && m.InMulticastOctets != nil { + return *m.InMulticastOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetOutPkts() uint64 { + if m != nil && m.OutPkts != nil { + return *m.OutPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetOutMulticastPkts() uint64 { + if m != nil && m.OutMulticastPkts != nil { + return *m.OutMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) GetOutMulticastOctets() uint64 { + if m != nil && m.OutMulticastOctets != nil { + return *m.OutMulticastOctets + } + return 0 +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type struct { + State *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType `protobuf:"bytes,154,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) ProtoMessage() {} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 2} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) GetState() *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType struct { + Counters []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList `protobuf:"bytes,154,rep,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) ProtoMessage() { +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 2, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) GetCounters() []*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList struct { + InPkts *uint64 `protobuf:"varint,51,opt,name=in_pkts,json=inPkts" json:"in_pkts,omitempty"` + InOctets *uint64 `protobuf:"varint,52,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InMulticastPkts *uint64 `protobuf:"varint,53,opt,name=in_multicast_pkts,json=inMulticastPkts" json:"in_multicast_pkts,omitempty"` + InMulticastOctets *uint64 `protobuf:"varint,54,opt,name=in_multicast_octets,json=inMulticastOctets" json:"in_multicast_octets,omitempty"` + OutPkts *uint64 `protobuf:"varint,55,opt,name=out_pkts,json=outPkts" json:"out_pkts,omitempty"` + OutOctets *uint64 `protobuf:"varint,56,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutMulticastPkts *uint64 `protobuf:"varint,57,opt,name=out_multicast_pkts,json=outMulticastPkts" json:"out_multicast_pkts,omitempty"` + OutMulticastOctets *uint64 `protobuf:"varint,58,opt,name=out_multicast_octets,json=outMulticastOctets" json:"out_multicast_octets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) Reset() { + *m = InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList{} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) ProtoMessage() { +} +func (*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) Descriptor() ([]byte, []int) { + return fileDescriptor_c710b3a3b914432f, []int{0, 0, 1, 0, 2, 0, 0} +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList.Merge(m, src) +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList proto.InternalMessageInfo + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetInPkts() uint64 { + if m != nil && m.InPkts != nil { + return *m.InPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetInMulticastPkts() uint64 { + if m != nil && m.InMulticastPkts != nil { + return *m.InMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetInMulticastOctets() uint64 { + if m != nil && m.InMulticastOctets != nil { + return *m.InMulticastOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetOutPkts() uint64 { + if m != nil && m.OutPkts != nil { + return *m.OutPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetOutMulticastPkts() uint64 { + if m != nil && m.OutMulticastPkts != nil { + return *m.OutMulticastPkts + } + return 0 +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) GetOutMulticastOctets() uint64 { + if m != nil && m.OutMulticastOctets != nil { + return *m.OutMulticastOctets + } + return 0 +} + +var E_JnprInterfacesIpCountersExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesIpCounters)(nil), + Field: 163, + Name: "jnpr_interfaces_ip_counters_ext", + Tag: "bytes,163,opt,name=jnpr_interfaces_ip_counters_ext", + Filename: "am-if-oc_render.proto", +} + +func init() { + proto.RegisterType((*InterfacesIpCounters)(nil), "interfaces_ip_counters") + proto.RegisterType((*InterfacesIpCountersInterfaceList)(nil), "interfaces_ip_counters.interface_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListStateList)(nil), "interfaces_ip_counters.interface_list.state_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListStateListCountersList)(nil), "interfaces_ip_counters.interface_list.state_list.counters_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesList)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.state_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.state_list.counters_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.ipv4_type") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.ipv4_type.state_type") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.ipv4_type.state_type.counters_list") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.ipv6_type") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.ipv6_type.state_type") + proto.RegisterType((*InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList)(nil), "interfaces_ip_counters.interface_list.subinterfaces_list.subinterface_list.ipv6_type.state_type.counters_list") + proto.RegisterExtension(E_JnprInterfacesIpCountersExt) +} + +func init() { proto.RegisterFile("am-if-oc_render.proto", fileDescriptor_c710b3a3b914432f) } + +var fileDescriptor_c710b3a3b914432f = []byte{ + // 1038 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xd7, 0xb6, 0x0e, 0x89, 0x5f, 0xe2, 0xb4, 0x99, 0xd0, 0x66, 0xeb, 0xd0, 0xd4, 0x54, 0x55, + 0x65, 0x21, 0x6c, 0xd3, 0x3f, 0x71, 0xfe, 0xf0, 0xa7, 0x6d, 0xda, 0x48, 0x14, 0x44, 0x89, 0x36, + 0x2d, 0x07, 0x84, 0x34, 0xd9, 0xd8, 0x53, 0x7b, 0xec, 0x78, 0x66, 0x35, 0x33, 0xdb, 0xa4, 0x37, + 0x40, 0xe2, 0xc4, 0x07, 0x80, 0xe6, 0xc0, 0x85, 0x23, 0x1f, 0xa1, 0x5f, 0x80, 0x23, 0x47, 0x6e, + 0x54, 0x39, 0xc1, 0xb7, 0x40, 0x33, 0xb3, 0xeb, 0xf5, 0x3a, 0x9b, 0x28, 0xad, 0x62, 0x4e, 0x1c, + 0xf7, 0xf7, 0x7e, 0xf3, 0xde, 0xfb, 0xed, 0xfb, 0xcd, 0xdb, 0x85, 0x0b, 0x7e, 0xaf, 0x42, 0x9f, + 0x56, 0x78, 0x03, 0x0b, 0xc2, 0x9a, 0x44, 0x54, 0x03, 0xc1, 0x15, 0x2f, 0xce, 0x2a, 0xb2, 0x43, + 0x7a, 0x44, 0x89, 0xe7, 0x58, 0xf1, 0xc0, 0x82, 0x57, 0xbf, 0x7d, 0x07, 0x2e, 0x52, 0xa6, 0x88, + 0x78, 0xea, 0x37, 0x88, 0xc4, 0x34, 0xc0, 0x0d, 0x1e, 0xea, 0x67, 0x89, 0xd6, 0x21, 0xdf, 0x8f, + 0xb8, 0x3f, 0x39, 0xa5, 0xb3, 0xe5, 0xc9, 0x9b, 0xd7, 0xab, 0xd9, 0xe4, 0x04, 0xc6, 0x3b, 0x54, + 0x2a, 0x2f, 0x39, 0x59, 0xfc, 0x65, 0x1e, 0xa6, 0xd3, 0x51, 0x74, 0x09, 0x72, 0xcc, 0xef, 0x11, + 0xf7, 0x56, 0xc9, 0x29, 0xe7, 0xd7, 0xc6, 0xbe, 0xbf, 0x7b, 0x66, 0xc2, 0xf1, 0x0c, 0x84, 0xe6, + 0x75, 0x51, 0xaa, 0xb0, 0xa2, 0x3d, 0xe2, 0xde, 0x2e, 0x39, 0xe5, 0x9c, 0x37, 0xa1, 0x81, 0xc7, + 0xb4, 0x47, 0xd0, 0xa7, 0x30, 0x26, 0x95, 0xaf, 0xfa, 0xdd, 0xdc, 0x38, 0x59, 0x37, 0x55, 0x73, + 0xc8, 0x36, 0x66, 0x13, 0xa0, 0x2d, 0x28, 0xc8, 0x70, 0x3b, 0x39, 0xed, 0xfe, 0x6c, 0x33, 0xae, + 0x9c, 0x34, 0xe3, 0xe0, 0x61, 0x9b, 0x39, 0x9d, 0xb0, 0xf8, 0x72, 0x1c, 0x20, 0xa9, 0x8b, 0xae, + 0xc1, 0x74, 0xe0, 0x0b, 0xc2, 0x14, 0xf6, 0x09, 0x4e, 0xc4, 0x7b, 0x53, 0x16, 0xbd, 0x47, 0x1e, + 0x69, 0xf5, 0x57, 0x60, 0x92, 0x07, 0x44, 0x60, 0x7d, 0x30, 0x94, 0x46, 0x7f, 0xde, 0x03, 0x0d, + 0x6d, 0x1a, 0x04, 0x5d, 0x06, 0x68, 0xd3, 0x56, 0x1b, 0xcb, 0x80, 0x90, 0xa6, 0xbb, 0x58, 0x72, + 0xca, 0x05, 0x2f, 0xaf, 0x91, 0x4d, 0x0d, 0xa0, 0x6f, 0x60, 0x22, 0xee, 0x38, 0x7e, 0x47, 0x77, + 0x5e, 0xfb, 0x1d, 0x55, 0x63, 0x8a, 0xd5, 0xd5, 0xcf, 0x58, 0xfc, 0x7b, 0x0c, 0x0a, 0xa9, 0x18, + 0x9a, 0x83, 0x71, 0xca, 0x70, 0xd0, 0x55, 0xd2, 0xc8, 0xc9, 0x79, 0x6f, 0x51, 0xb6, 0xd1, 0x55, + 0xd2, 0x8e, 0x11, 0xf3, 0x86, 0x22, 0x4a, 0x26, 0x63, 0xfc, 0xd2, 0x3c, 0xa3, 0xeb, 0x70, 0x8e, + 0x32, 0x1c, 0x32, 0xda, 0xf0, 0xa5, 0xb2, 0xa7, 0x17, 0x0d, 0xa5, 0x40, 0xd9, 0x13, 0x8b, 0x9a, + 0x24, 0xef, 0xc1, 0x0c, 0x65, 0xb8, 0x17, 0xee, 0xa8, 0x01, 0x66, 0xdd, 0x30, 0xcf, 0x51, 0xf6, + 0x45, 0x8c, 0x0f, 0x70, 0xb7, 0x05, 0xf7, 0x9b, 0x09, 0x77, 0x29, 0xe6, 0xae, 0xc5, 0xb8, 0xe1, + 0x5e, 0x85, 0x82, 0xee, 0xda, 0x0f, 0x25, 0xb1, 0xbc, 0x65, 0xc3, 0x9b, 0xa4, 0x6c, 0x43, 0x63, + 0x86, 0x73, 0x09, 0x26, 0x78, 0x18, 0xa5, 0x59, 0x31, 0xe1, 0x71, 0x1e, 0xda, 0xe3, 0x97, 0x01, + 0x74, 0x28, 0x12, 0xb7, 0x6a, 0x82, 0x79, 0x1e, 0xaa, 0x48, 0x5d, 0x19, 0xce, 0xeb, 0x70, 0x4a, + 0xde, 0x87, 0x86, 0x34, 0xcd, 0x43, 0x35, 0xa8, 0xef, 0x7d, 0x40, 0x9a, 0x39, 0x24, 0xf0, 0x23, + 0xc3, 0xd5, 0x39, 0xd2, 0x0a, 0x23, 0xf6, 0x90, 0xc4, 0x8f, 0xfb, 0xec, 0xb4, 0xc6, 0x6b, 0x30, + 0x6d, 0xfa, 0x4f, 0x44, 0x7e, 0x62, 0x98, 0x53, 0x5a, 0x45, 0x5f, 0xa5, 0x1d, 0x13, 0x11, 0x82, + 0x0b, 0xe9, 0xde, 0x89, 0xc7, 0xb4, 0x6e, 0x9e, 0xb5, 0x19, 0x29, 0xc3, 0x4d, 0x2a, 0x1b, 0xbe, + 0x68, 0x4a, 0xf7, 0xae, 0x09, 0x03, 0x65, 0x0f, 0x22, 0x04, 0xdd, 0x80, 0x0b, 0x66, 0x8e, 0x5d, + 0xc6, 0x77, 0x19, 0x36, 0xfb, 0xc4, 0x96, 0xba, 0x67, 0xa8, 0x48, 0x4f, 0xd3, 0xc4, 0x36, 0x74, + 0xc8, 0x14, 0xac, 0xc1, 0x6c, 0xc3, 0x17, 0x82, 0x12, 0x81, 0x95, 0xf0, 0x99, 0xa4, 0x8a, 0x72, + 0x26, 0xdd, 0x35, 0x7b, 0x20, 0x0a, 0x3d, 0x4e, 0x22, 0xf1, 0xcb, 0x8e, 0x5a, 0xbc, 0xdf, 0x7f, + 0xd9, 0x51, 0x8f, 0xef, 0x82, 0x16, 0x94, 0x34, 0xf9, 0xc0, 0x4e, 0x92, 0x87, 0xaa, 0xdf, 0xe5, + 0x2d, 0xb8, 0x68, 0xe7, 0x71, 0xa8, 0xcd, 0x75, 0x43, 0x9e, 0x35, 0x53, 0x49, 0xf7, 0x59, 0xfc, + 0x67, 0x06, 0xd0, 0xe1, 0x3b, 0x8e, 0x02, 0x98, 0x1a, 0x44, 0xe3, 0x3b, 0xf6, 0xf9, 0x1b, 0x6f, + 0x8d, 0x14, 0x64, 0xef, 0x5b, 0xaa, 0x42, 0xf1, 0xd5, 0x79, 0x98, 0x39, 0xc4, 0x41, 0xf3, 0x30, + 0x46, 0x59, 0x93, 0xec, 0x99, 0x5b, 0x57, 0x88, 0x37, 0xa8, 0xc5, 0x8e, 0x5f, 0xa1, 0xbd, 0xa1, + 0x15, 0xfa, 0xd5, 0x29, 0xb6, 0x9e, 0xb1, 0x67, 0x3b, 0x90, 0xa3, 0xc1, 0xb3, 0xdb, 0xee, 0x0b, + 0xa7, 0xe4, 0x94, 0x27, 0x6f, 0x3e, 0x39, 0xcd, 0x6a, 0x3a, 0x31, 0x56, 0xcf, 0x03, 0xe2, 0x99, + 0x1a, 0x51, 0xad, 0xba, 0xbb, 0x3f, 0x9a, 0x5a, 0xf5, 0xa4, 0x56, 0xbd, 0xf8, 0x43, 0x6e, 0x14, + 0xdb, 0xfd, 0x3b, 0xe7, 0xf0, 0xfe, 0x6e, 0x8e, 0x66, 0x40, 0x47, 0x2e, 0xf9, 0xdf, 0xce, 0x9c, + 0xce, 0x92, 0x1f, 0x5c, 0xa0, 0x8b, 0xc7, 0x2d, 0xd0, 0xfa, 0xf0, 0x02, 0xcd, 0xf8, 0x3c, 0x2c, + 0x9d, 0xf8, 0xf3, 0xb0, 0x9c, 0xfd, 0x79, 0xc8, 0x5a, 0xca, 0x2b, 0xaf, 0xb1, 0x94, 0x57, 0xb3, + 0x97, 0x72, 0xf1, 0xaf, 0x1c, 0xe4, 0xfb, 0x3e, 0x44, 0xbb, 0xf1, 0xe5, 0x8a, 0xec, 0xbe, 0x35, + 0x12, 0xbb, 0x47, 0x53, 0x34, 0x6e, 0xb4, 0xf5, 0x8a, 0x7f, 0x9e, 0x8d, 0xed, 0x68, 0xfa, 0xf8, + 0x71, 0xd0, 0x47, 0x2f, 0xac, 0x8f, 0xd8, 0xa8, 0x7b, 0x39, 0xd2, 0x51, 0x2f, 0x4f, 0xc9, 0x51, + 0x99, 0xf3, 0x5e, 0xcc, 0x9e, 0x77, 0x15, 0x66, 0x53, 0xdc, 0x94, 0xd7, 0x66, 0x06, 0xd8, 0x19, + 0x6e, 0x5d, 0x3a, 0xce, 0xad, 0xcb, 0xc3, 0x6e, 0xcd, 0xf6, 0xcb, 0xca, 0x11, 0x1f, 0xf1, 0x0f, + 0xe0, 0xed, 0x34, 0x3b, 0xf5, 0x17, 0x81, 0x06, 0xf9, 0x36, 0x7f, 0xec, 0xb0, 0xfa, 0x90, 0xc3, + 0xf6, 0x47, 0xe3, 0xb0, 0xfa, 0x9b, 0x38, 0x6c, 0x7f, 0x34, 0x0e, 0xab, 0xff, 0xef, 0xb0, 0xff, + 0xc2, 0x61, 0xab, 0xbb, 0x70, 0xa5, 0xc3, 0x02, 0x81, 0xb3, 0xa7, 0x87, 0xc9, 0x9e, 0x42, 0x73, + 0xd5, 0xcf, 0x42, 0x46, 0x03, 0x22, 0x1e, 0x11, 0xb5, 0xcb, 0x45, 0x57, 0x6e, 0x12, 0x26, 0xf5, + 0x0f, 0xd9, 0xaf, 0xd6, 0x86, 0x73, 0x47, 0x8c, 0xde, 0x9b, 0xd7, 0x99, 0x1f, 0xf6, 0x63, 0x0f, + 0x83, 0xfb, 0x51, 0x64, 0x7d, 0x4f, 0xad, 0x6d, 0xfd, 0x7e, 0xb0, 0xe0, 0xfc, 0x71, 0xb0, 0xe0, + 0xbc, 0x3a, 0x58, 0x70, 0xbe, 0xf6, 0x5a, 0x54, 0x55, 0x3b, 0xb6, 0x4c, 0x95, 0x11, 0x55, 0xa3, + 0x0d, 0xb2, 0x4d, 0x44, 0xab, 0xd6, 0x26, 0xfe, 0x8e, 0x6a, 0x6f, 0x73, 0x55, 0xa1, 0xac, 0x45, + 0xa4, 0xaa, 0x74, 0x14, 0xad, 0x30, 0x5f, 0xd1, 0x67, 0xa4, 0x16, 0x74, 0x5b, 0xb5, 0x8e, 0xa2, + 0x35, 0xbf, 0xe9, 0x07, 0x3a, 0x6d, 0x0d, 0x77, 0x42, 0xc6, 0x65, 0x4d, 0x36, 0xda, 0xa4, 0xe7, + 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x64, 0x0b, 0xad, 0x0a, 0x0f, 0x00, 0x00, +} + +func (m *InterfacesIpCounters) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCounters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCounters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterfaces) > 0 { + for iNdEx := len(m.Subinterfaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.State) > 0 { + for iNdEx := len(m.State) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.State[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.InitTime != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InitTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintAmIfOcRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListStateList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListStateList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListStateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Counters) > 0 { + for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.HighSpeed != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.HighSpeed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OperStatus != nil { + i -= len(*m.OperStatus) + copy(dAtA[i:], *m.OperStatus) + i = encodeVarintAmIfOcRender(dAtA, i, uint64(len(*m.OperStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintAmIfOcRender(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutUnknownProtoPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutUnknownProtoPkts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.OutDiscards != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutDiscards)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.OutErrors != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.CarrierTransitions != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.CarrierTransitions)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.InUnknownProtoPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InUnknownProtoPkts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InDiscards != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InDiscards)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.InErrors != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.OutPausePkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutPausePkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.OutBroadcastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutBroadcastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.OutUnicastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.OutOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.OutPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.InPausePkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InPausePkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InBroadcastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InBroadcastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InUnicastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterface) > 0 { + for iNdEx := len(m.Subinterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6 != nil { + { + size, err := m.Ipv6.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Ipv4 != nil { + { + size, err := m.Ipv4.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if len(m.State) > 0 { + for iNdEx := len(m.State) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.State[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.InitTime != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InitTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Index != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Counters) > 0 { + for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.OperStatus != nil { + i -= len(*m.OperStatus) + copy(dAtA[i:], *m.OperStatus) + i = encodeVarintAmIfOcRender(dAtA, i, uint64(len(*m.OperStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintAmIfOcRender(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.OutUnicastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.InMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InUnicastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OutOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OutPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Counters) > 0 { + for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutMulticastOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutMulticastOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.OutMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.OutOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OutPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InMulticastOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InMulticastOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Counters) > 0 { + for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAmIfOcRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutMulticastOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutMulticastOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.OutMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.OutOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OutPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.OutPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InMulticastOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InMulticastOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InMulticastPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InOctets != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InPkts != nil { + i = encodeVarintAmIfOcRender(dAtA, i, uint64(*m.InPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintAmIfOcRender(dAtA []byte, offset int, v uint64) int { + offset -= sovAmIfOcRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesIpCounters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.InitTime != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InitTime)) + } + if len(m.State) > 0 { + for _, e := range m.State { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if len(m.Subinterfaces) > 0 { + for _, e := range m.Subinterfaces { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListStateList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.OperStatus != nil { + l = len(*m.OperStatus) + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.HighSpeed != nil { + n += 2 + sovAmIfOcRender(uint64(*m.HighSpeed)) + } + if len(m.Counters) > 0 { + for _, e := range m.Counters { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListStateListCountersList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InPkts)) + } + if m.InOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InOctets)) + } + if m.InUnicastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InUnicastPkts)) + } + if m.InMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InMulticastPkts)) + } + if m.InBroadcastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InBroadcastPkts)) + } + if m.InPausePkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InPausePkts)) + } + if m.OutPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutPkts)) + } + if m.OutOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutOctets)) + } + if m.OutUnicastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutUnicastPkts)) + } + if m.OutMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutMulticastPkts)) + } + if m.OutBroadcastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutBroadcastPkts)) + } + if m.OutPausePkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutPausePkts)) + } + if m.InErrors != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InErrors)) + } + if m.InDiscards != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InDiscards)) + } + if m.InUnknownProtoPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InUnknownProtoPkts)) + } + if m.CarrierTransitions != nil { + n += 2 + sovAmIfOcRender(uint64(*m.CarrierTransitions)) + } + if m.OutErrors != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutErrors)) + } + if m.OutDiscards != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutDiscards)) + } + if m.OutUnknownProtoPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutUnknownProtoPkts)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subinterface) > 0 { + for _, e := range m.Subinterface { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovAmIfOcRender(uint64(*m.Index)) + } + if m.InitTime != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InitTime)) + } + if len(m.State) > 0 { + for _, e := range m.State { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.Ipv4 != nil { + l = m.Ipv4.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.Ipv6 != nil { + l = m.Ipv6.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.OperStatus != nil { + l = len(*m.OperStatus) + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if len(m.Counters) > 0 { + for _, e := range m.Counters { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InPkts)) + } + if m.InOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InOctets)) + } + if m.OutPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutPkts)) + } + if m.OutOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutOctets)) + } + if m.InUnicastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InUnicastPkts)) + } + if m.InMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InMulticastPkts)) + } + if m.OutUnicastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutUnicastPkts)) + } + if m.OutMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutMulticastPkts)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Counters) > 0 { + for _, e := range m.Counters { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InPkts)) + } + if m.InOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InOctets)) + } + if m.InMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InMulticastPkts)) + } + if m.InMulticastOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InMulticastOctets)) + } + if m.OutPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutPkts)) + } + if m.OutOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutOctets)) + } + if m.OutMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutMulticastPkts)) + } + if m.OutMulticastOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutMulticastOctets)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Counters) > 0 { + for _, e := range m.Counters { + l = e.Size() + n += 2 + l + sovAmIfOcRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InPkts)) + } + if m.InOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InOctets)) + } + if m.InMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InMulticastPkts)) + } + if m.InMulticastOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.InMulticastOctets)) + } + if m.OutPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutPkts)) + } + if m.OutOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutOctets)) + } + if m.OutMulticastPkts != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutMulticastPkts)) + } + if m.OutMulticastOctets != nil { + n += 2 + sovAmIfOcRender(uint64(*m.OutMulticastOctets)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAmIfOcRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAmIfOcRender(x uint64) (n int) { + return sovAmIfOcRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesIpCounters) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_ip_counters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_ip_counters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesIpCountersInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitTime = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.State = append(m.State, &InterfacesIpCountersInterfaceListStateList{}) + if err := m.State[len(m.State)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterfaces = append(m.Subinterfaces, &InterfacesIpCountersInterfaceListSubinterfacesList{}) + if err := m.Subinterfaces[len(m.Subinterfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListStateList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperStatus = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighSpeed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HighSpeed = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Counters = append(m.Counters, &InterfacesIpCountersInterfaceListStateListCountersList{}) + if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListStateListCountersList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPkts = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnicastPkts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastPkts = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InBroadcastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InBroadcastPkts = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPausePkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPausePkts = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPkts = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutUnicastPkts = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastPkts = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutBroadcastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutBroadcastPkts = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPausePkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPausePkts = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InErrors = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDiscards = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnknownProtoPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnknownProtoPkts = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CarrierTransitions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CarrierTransitions = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutErrors = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDiscards = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutUnknownProtoPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutUnknownProtoPkts = &v + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterfaces_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterfaces_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterface = append(m.Subinterface, &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList{}) + if err := m.Subinterface[len(m.Subinterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitTime = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.State = append(m.State, &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList{}) + if err := m.State[len(m.State)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4 == nil { + m.Ipv4 = &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type{} + } + if err := m.Ipv4.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6 == nil { + m.Ipv6 = &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type{} + } + if err := m.Ipv6.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperStatus = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Counters = append(m.Counters, &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList{}) + if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListStateListCountersList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPkts = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPkts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnicastPkts = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastPkts = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutUnicastPkts = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastPkts = &v + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Counters = append(m.Counters, &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList{}) + if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv4TypeStateTypeCountersList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPkts = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastPkts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastOctets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPkts = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastPkts = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastOctets = &v + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAmIfOcRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAmIfOcRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Counters = append(m.Counters, &InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList{}) + if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesIpCountersInterfaceListSubinterfacesListSubinterfaceListIpv6TypeStateTypeCountersList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPkts = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastPkts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastOctets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPkts = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastPkts = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastOctets = &v + default: + iNdEx = preIndex + skippy, err := skipAmIfOcRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAmIfOcRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAmIfOcRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAmIfOcRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAmIfOcRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAmIfOcRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAmIfOcRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAmIfOcRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAmIfOcRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAmIfOcRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/am-if-oc_render.proto b/schema/am-if-oc_render.proto new file mode 100644 index 0000000..b976c1d --- /dev/null +++ b/schema/am-if-oc_render.proto @@ -0,0 +1,101 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_ip_counters jnpr_interfaces_ip_counters_ext = 163; +} + +message interfaces_ip_counters { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional uint64 init_time = 52; + message state_list { + optional string parent_ae_name = 51; + optional string oper_status = 52; + optional uint32 high_speed = 53; + message counters_list { + optional uint64 in_pkts = 51; + optional uint64 in_octets = 52; + optional uint64 in_unicast_pkts = 53; + optional uint64 in_multicast_pkts = 54; + optional uint64 in_broadcast_pkts = 55; + optional uint64 in_pause_pkts = 56; + optional uint64 out_pkts = 57; + optional uint64 out_octets = 58; + optional uint64 out_unicast_pkts = 59; + optional uint64 out_multicast_pkts = 60; + optional uint64 out_broadcast_pkts = 61; + optional uint64 out_pause_pkts = 62; + optional uint64 in_errors = 63; + optional uint64 in_discards = 64; + optional uint64 in_unknown_proto_pkts = 65; + optional uint64 carrier_transitions = 66; + optional uint64 out_errors = 67; + optional uint64 out_discards = 68; + optional uint64 out_unknown_proto_pkts = 69; + } + repeated counters_list counters = 151; + } + repeated state_list state = 151; + message subinterfaces_list { + message subinterface_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional uint64 init_time = 52; + message state_list { + optional string parent_ae_name = 51; + optional string oper_status = 52; + message counters_list { + optional uint64 in_pkts = 51; + optional uint64 in_octets = 52; + optional uint64 out_pkts = 53; + optional uint64 out_octets = 54; + optional uint64 in_unicast_pkts = 55; + optional uint64 in_multicast_pkts = 56; + optional uint64 out_unicast_pkts = 57; + optional uint64 out_multicast_pkts = 58; + } + repeated counters_list counters = 151; + } + repeated state_list state = 151; + optional ipv4_type ipv4 = 153; + message ipv4_type { + optional state_type state = 153; + message state_type { + message counters_list { + optional uint64 in_pkts = 51; + optional uint64 in_octets = 52; + optional uint64 in_multicast_pkts = 53; + optional uint64 in_multicast_octets = 54; + optional uint64 out_pkts = 55; + optional uint64 out_octets = 56; + optional uint64 out_multicast_pkts = 57; + optional uint64 out_multicast_octets = 58; + } + repeated counters_list counters = 153; + } + } + optional ipv6_type ipv6 = 154; + message ipv6_type { + optional state_type state = 154; + message state_type { + message counters_list { + optional uint64 in_pkts = 51; + optional uint64 in_octets = 52; + optional uint64 in_multicast_pkts = 53; + optional uint64 in_multicast_octets = 54; + optional uint64 out_pkts = 55; + optional uint64 out_octets = 56; + optional uint64 out_multicast_pkts = 57; + optional uint64 out_multicast_octets = 58; + } + repeated counters_list counters = 154; + } + } + } + repeated subinterface_list subinterface = 151; + } + repeated subinterfaces_list subinterfaces = 152; + } + repeated interface_list interface = 151; +} diff --git a/schema/ancpd_oc.pb.go b/schema/ancpd_oc.pb.go new file mode 100644 index 0000000..96b81da --- /dev/null +++ b/schema/ancpd_oc.pb.go @@ -0,0 +1,1608 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ancpd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosAncp struct { + System *JunosAncpSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncp) Reset() { *m = JunosAncp{} } +func (m *JunosAncp) String() string { return proto.CompactTextString(m) } +func (*JunosAncp) ProtoMessage() {} +func (*JunosAncp) Descriptor() ([]byte, []int) { + return fileDescriptor_802aa389b0dda049, []int{0} +} +func (m *JunosAncp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncp) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncp.Merge(m, src) +} +func (m *JunosAncp) XXX_Size() int { + return m.Size() +} +func (m *JunosAncp) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncp.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncp proto.InternalMessageInfo + +func (m *JunosAncp) GetSystem() *JunosAncpSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosAncpSystemType struct { + SubscriberManagement *JunosAncpSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpSystemType) Reset() { *m = JunosAncpSystemType{} } +func (m *JunosAncpSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosAncpSystemType) ProtoMessage() {} +func (*JunosAncpSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_802aa389b0dda049, []int{0, 0} +} +func (m *JunosAncpSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpSystemType.Merge(m, src) +} +func (m *JunosAncpSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpSystemType proto.InternalMessageInfo + +func (m *JunosAncpSystemType) GetSubscriberManagement() *JunosAncpSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosAncpSystemTypeSubscriberManagementType struct { + AccessNetwork *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType `protobuf:"bytes,151,opt,name=access_network,json=accessNetwork" json:"access_network,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpSystemTypeSubscriberManagementType) Reset() { + *m = JunosAncpSystemTypeSubscriberManagementType{} +} +func (m *JunosAncpSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosAncpSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_802aa389b0dda049, []int{0, 0, 0} +} +func (m *JunosAncpSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosAncpSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosAncpSystemTypeSubscriberManagementType) GetAccessNetwork() *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType { + if m != nil { + return m.AccessNetwork + } + return nil +} + +type JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType struct { + Ancp *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType `protobuf:"bytes,151,opt,name=ancp" json:"ancp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) Reset() { + *m = JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType{} +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) ProtoMessage() {} +func (*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) Descriptor() ([]byte, []int) { + return fileDescriptor_802aa389b0dda049, []int{0, 0, 0, 0} +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType.Merge(m, src) +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType proto.InternalMessageInfo + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) GetAncp() *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType { + if m != nil { + return m.Ancp + } + return nil +} + +type JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType struct { + Protocol *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType `protobuf:"bytes,151,opt,name=protocol" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Reset() { + *m = JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType{} +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) ProtoMessage() {} +func (*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Descriptor() ([]byte, []int) { + return fileDescriptor_802aa389b0dda049, []int{0, 0, 0, 0, 0} +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType.Merge(m, src) +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType proto.InternalMessageInfo + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) GetProtocol() *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType { + if m != nil { + return m.Protocol + } + return nil +} + +type JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType struct { + ConfiguredNeighborCount *uint32 `protobuf:"varint,51,opt,name=configured_neighbor_count,json=configuredNeighborCount" json:"configured_neighbor_count,omitempty"` + EstablishingNeighborCount *uint32 `protobuf:"varint,52,opt,name=establishing_neighbor_count,json=establishingNeighborCount" json:"establishing_neighbor_count,omitempty"` + EstablishedNeighborCount *uint32 `protobuf:"varint,53,opt,name=established_neighbor_count,json=establishedNeighborCount" json:"established_neighbor_count,omitempty"` + NotEstablishedNeighborCount *uint32 `protobuf:"varint,54,opt,name=not_established_neighbor_count,json=notEstablishedNeighborCount" json:"not_established_neighbor_count,omitempty"` + TotalNeighborCount *uint32 `protobuf:"varint,55,opt,name=total_neighbor_count,json=totalNeighborCount" json:"total_neighbor_count,omitempty"` + MappedStaticSubscriberCount *uint32 `protobuf:"varint,56,opt,name=mapped_static_subscriber_count,json=mappedStaticSubscriberCount" json:"mapped_static_subscriber_count,omitempty"` + PortUpCount *uint64 `protobuf:"varint,57,opt,name=port_up_count,json=portUpCount" json:"port_up_count,omitempty"` + PortDownCount *uint64 `protobuf:"varint,58,opt,name=port_down_count,json=portDownCount" json:"port_down_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) Reset() { + *m = JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType{} +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) ProtoMessage() { +} +func (*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) Descriptor() ([]byte, []int) { + return fileDescriptor_802aa389b0dda049, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType.Merge(m, src) +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType proto.InternalMessageInfo + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetConfiguredNeighborCount() uint32 { + if m != nil && m.ConfiguredNeighborCount != nil { + return *m.ConfiguredNeighborCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetEstablishingNeighborCount() uint32 { + if m != nil && m.EstablishingNeighborCount != nil { + return *m.EstablishingNeighborCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetEstablishedNeighborCount() uint32 { + if m != nil && m.EstablishedNeighborCount != nil { + return *m.EstablishedNeighborCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetNotEstablishedNeighborCount() uint32 { + if m != nil && m.NotEstablishedNeighborCount != nil { + return *m.NotEstablishedNeighborCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetTotalNeighborCount() uint32 { + if m != nil && m.TotalNeighborCount != nil { + return *m.TotalNeighborCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetMappedStaticSubscriberCount() uint32 { + if m != nil && m.MappedStaticSubscriberCount != nil { + return *m.MappedStaticSubscriberCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetPortUpCount() uint64 { + if m != nil && m.PortUpCount != nil { + return *m.PortUpCount + } + return 0 +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) GetPortDownCount() uint64 { + if m != nil && m.PortDownCount != nil { + return *m.PortDownCount + } + return 0 +} + +var E_JnprJunosAncpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosAncp)(nil), + Field: 32, + Name: "jnpr_junos_ancp_ext", + Tag: "bytes,32,opt,name=jnpr_junos_ancp_ext", + Filename: "ancpd_oc.proto", +} + +func init() { + proto.RegisterType((*JunosAncp)(nil), "junos_ancp") + proto.RegisterType((*JunosAncpSystemType)(nil), "junos_ancp.system_type") + proto.RegisterType((*JunosAncpSystemTypeSubscriberManagementType)(nil), "junos_ancp.system_type.subscriber_management_type") + proto.RegisterType((*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType)(nil), "junos_ancp.system_type.subscriber_management_type.access_network_type") + proto.RegisterType((*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType)(nil), "junos_ancp.system_type.subscriber_management_type.access_network_type.ancp_type") + proto.RegisterType((*JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType)(nil), "junos_ancp.system_type.subscriber_management_type.access_network_type.ancp_type.protocol_type") + proto.RegisterExtension(E_JnprJunosAncpExt) +} + +func init() { proto.RegisterFile("ancpd_oc.proto", fileDescriptor_802aa389b0dda049) } + +var fileDescriptor_802aa389b0dda049 = []byte{ + // 559 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x6a, 0x14, 0x4f, + 0x14, 0xc5, 0x69, 0xfe, 0xf9, 0xc7, 0x58, 0xc3, 0x44, 0xe9, 0x44, 0x32, 0xe9, 0xc0, 0x30, 0x64, + 0x21, 0xd9, 0xa4, 0x3b, 0xc4, 0xef, 0x20, 0x82, 0xc6, 0xb8, 0x08, 0x18, 0x64, 0x06, 0x37, 0x2e, + 0x2c, 0xab, 0x6b, 0xae, 0xdd, 0x35, 0x99, 0xae, 0x2a, 0xaa, 0x6e, 0x9b, 0x04, 0x1f, 0xc4, 0x27, + 0xf0, 0x5d, 0x5c, 0xea, 0x5a, 0x17, 0x32, 0xb8, 0xf2, 0x29, 0xa4, 0xab, 0xe6, 0x33, 0xc9, 0x08, + 0x42, 0x96, 0x7d, 0xcf, 0xef, 0x9c, 0x73, 0xa1, 0x6e, 0x93, 0x65, 0x26, 0xb9, 0xee, 0x52, 0xc5, + 0x63, 0x6d, 0x14, 0xaa, 0x68, 0x05, 0xa1, 0x0f, 0x05, 0xa0, 0x39, 0xa3, 0xa8, 0xb4, 0x1f, 0x6e, + 0x7e, 0x5e, 0x22, 0xa4, 0x57, 0x4a, 0x65, 0x69, 0x45, 0x87, 0x3b, 0x64, 0xd1, 0x9e, 0x59, 0x84, + 0xa2, 0xf1, 0x29, 0x68, 0x05, 0x5b, 0xb5, 0xdd, 0xb5, 0x78, 0xa2, 0xc6, 0x5e, 0xa2, 0x78, 0xa6, + 0xa1, 0x3d, 0xe4, 0xa2, 0x5f, 0xd7, 0x48, 0x6d, 0x6a, 0x1e, 0xe6, 0xe4, 0x96, 0x2d, 0x53, 0xcb, + 0x8d, 0x48, 0xc1, 0xd0, 0x82, 0x49, 0x96, 0x41, 0x01, 0x12, 0x47, 0x81, 0xbb, 0x73, 0x02, 0xe3, + 0x4b, 0x5d, 0xbe, 0x6b, 0x75, 0xa2, 0xbd, 0x1c, 0x4b, 0xd1, 0xef, 0x45, 0x12, 0xcd, 0x37, 0x85, + 0x92, 0x2c, 0x33, 0xce, 0xc1, 0x5a, 0x2a, 0x01, 0x4f, 0x94, 0x39, 0x1e, 0x6d, 0xf0, 0xe2, 0xdf, + 0x37, 0x88, 0x67, 0x93, 0xfc, 0x56, 0x75, 0x3f, 0x3c, 0xf2, 0xb3, 0xe8, 0xfb, 0xff, 0x64, 0xe5, + 0x12, 0x2c, 0x04, 0xb2, 0x50, 0x35, 0x8d, 0xda, 0x5f, 0x5d, 0x4d, 0x7b, 0x5c, 0xf9, 0xfd, 0x1e, + 0x2e, 0x3e, 0xfa, 0xb1, 0x40, 0xae, 0x8f, 0x67, 0xe1, 0x47, 0xb2, 0xe4, 0xde, 0x97, 0xab, 0xfe, + 0xa8, 0xf8, 0xed, 0x55, 0x17, 0xc7, 0xa3, 0x06, 0xbf, 0xc6, 0xb8, 0x30, 0xfa, 0xf6, 0x1f, 0xa9, + 0xcf, 0x68, 0xe1, 0x1e, 0x59, 0xe7, 0x4a, 0xbe, 0x17, 0x59, 0x69, 0xa0, 0x4b, 0x25, 0x88, 0x2c, + 0x4f, 0x95, 0xa1, 0x5c, 0x95, 0x12, 0x1b, 0x77, 0x5a, 0xc1, 0x56, 0xbd, 0xbd, 0x36, 0x01, 0x8e, + 0x86, 0xfa, 0x7e, 0x25, 0x87, 0x4f, 0xc8, 0x06, 0x58, 0x64, 0x69, 0x5f, 0xd8, 0x5c, 0xc8, 0xec, + 0xbc, 0xfb, 0xae, 0x73, 0xaf, 0x4f, 0x23, 0xb3, 0xfe, 0xc7, 0x24, 0x1a, 0x8b, 0x17, 0xcb, 0xef, + 0x39, 0x7b, 0x63, 0x8a, 0x98, 0x75, 0xef, 0x93, 0xa6, 0x54, 0x48, 0xff, 0x92, 0x70, 0xdf, 0x25, + 0x6c, 0x48, 0x85, 0x07, 0xf3, 0x42, 0x76, 0xc8, 0x2a, 0x2a, 0x64, 0xfd, 0xf3, 0xd6, 0x07, 0xce, + 0x1a, 0x3a, 0xed, 0x42, 0x6d, 0xc1, 0xb4, 0x86, 0x2e, 0xb5, 0xc8, 0x50, 0x70, 0x3a, 0xf5, 0x48, + 0xde, 0xfb, 0xd0, 0xd7, 0x7a, 0xaa, 0xe3, 0xa0, 0xce, 0x98, 0xf1, 0x21, 0x9b, 0xa4, 0xae, 0x95, + 0x41, 0x5a, 0xea, 0xa1, 0xe7, 0x51, 0x2b, 0xd8, 0x5a, 0x68, 0xd7, 0xaa, 0xe1, 0x6b, 0xed, 0x99, + 0xdb, 0xe4, 0x86, 0x63, 0xba, 0xea, 0x44, 0x0e, 0xa9, 0x3d, 0x47, 0x39, 0xeb, 0x73, 0x75, 0x22, + 0x1d, 0xb7, 0xd7, 0x21, 0x2b, 0x3d, 0xa9, 0x0d, 0x9d, 0xdc, 0x10, 0x85, 0x53, 0x0c, 0xd7, 0xe2, + 0xc3, 0x52, 0x0a, 0x0d, 0x66, 0xf8, 0x17, 0xd8, 0x0e, 0x48, 0xab, 0x8c, 0x6d, 0xb4, 0xdc, 0xcd, + 0xd5, 0xa6, 0x6e, 0xae, 0x7d, 0xb3, 0x0a, 0x38, 0xac, 0xbe, 0x9f, 0x4a, 0xae, 0x0f, 0x4e, 0xf1, + 0xd9, 0xbb, 0x2f, 0x83, 0x66, 0xf0, 0x75, 0xd0, 0x0c, 0x7e, 0x0e, 0x9a, 0xc1, 0x9b, 0x76, 0x26, + 0xb0, 0xe2, 0xab, 0xb8, 0x58, 0x02, 0x26, 0x82, 0x43, 0x0a, 0x26, 0x4b, 0x72, 0x60, 0x7d, 0xcc, + 0x53, 0x85, 0xdb, 0x42, 0x66, 0x60, 0x71, 0xbb, 0x87, 0x62, 0x5b, 0x32, 0x14, 0x1f, 0x20, 0xd1, + 0xc7, 0x59, 0xd2, 0x43, 0x91, 0xb0, 0x2e, 0xd3, 0x08, 0xc6, 0x26, 0x7e, 0xc3, 0xc4, 0xf2, 0x1c, + 0x0a, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x15, 0xdf, 0xd9, 0x04, 0x05, 0x00, 0x00, +} + +func (m *JunosAncp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAncpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAncpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AccessNetwork != nil { + { + size, err := m.AccessNetwork.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAncpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ancp != nil { + { + size, err := m.Ancp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAncpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocol != nil { + { + size, err := m.Protocol.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAncpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PortDownCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.PortDownCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.PortUpCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.PortUpCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.MappedStaticSubscriberCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.MappedStaticSubscriberCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TotalNeighborCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.TotalNeighborCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NotEstablishedNeighborCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.NotEstablishedNeighborCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.EstablishedNeighborCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.EstablishedNeighborCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.EstablishingNeighborCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.EstablishingNeighborCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ConfiguredNeighborCount != nil { + i = encodeVarintAncpdOc(dAtA, i, uint64(*m.ConfiguredNeighborCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintAncpdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovAncpdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosAncp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovAncpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovAncpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AccessNetwork != nil { + l = m.AccessNetwork.Size() + n += 2 + l + sovAncpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ancp != nil { + l = m.Ancp.Size() + n += 2 + l + sovAncpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = m.Protocol.Size() + n += 2 + l + sovAncpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConfiguredNeighborCount != nil { + n += 2 + sovAncpdOc(uint64(*m.ConfiguredNeighborCount)) + } + if m.EstablishingNeighborCount != nil { + n += 2 + sovAncpdOc(uint64(*m.EstablishingNeighborCount)) + } + if m.EstablishedNeighborCount != nil { + n += 2 + sovAncpdOc(uint64(*m.EstablishedNeighborCount)) + } + if m.NotEstablishedNeighborCount != nil { + n += 2 + sovAncpdOc(uint64(*m.NotEstablishedNeighborCount)) + } + if m.TotalNeighborCount != nil { + n += 2 + sovAncpdOc(uint64(*m.TotalNeighborCount)) + } + if m.MappedStaticSubscriberCount != nil { + n += 2 + sovAncpdOc(uint64(*m.MappedStaticSubscriberCount)) + } + if m.PortUpCount != nil { + n += 2 + sovAncpdOc(uint64(*m.PortUpCount)) + } + if m.PortDownCount != nil { + n += 2 + sovAncpdOc(uint64(*m.PortDownCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAncpdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAncpdOc(x uint64) (n int) { + return sovAncpdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosAncp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_ancp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_ancp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAncpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAncpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosAncpSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAncpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAncpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAncpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosAncpSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAncpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessNetwork", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAncpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAncpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AccessNetwork == nil { + m.AccessNetwork = &JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType{} + } + if err := m.AccessNetwork.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAncpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: access_network_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: access_network_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ancp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAncpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAncpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ancp == nil { + m.Ancp = &JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType{} + } + if err := m.Ancp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAncpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ancp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ancp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAncpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAncpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocol == nil { + m.Protocol = &JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType{} + } + if err := m.Protocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAncpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeProtocolType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredNeighborCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredNeighborCount = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EstablishingNeighborCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EstablishingNeighborCount = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EstablishedNeighborCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EstablishedNeighborCount = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NotEstablishedNeighborCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NotEstablishedNeighborCount = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalNeighborCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalNeighborCount = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MappedStaticSubscriberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MappedStaticSubscriberCount = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PortUpCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PortUpCount = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PortDownCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PortDownCount = &v + default: + iNdEx = preIndex + skippy, err := skipAncpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAncpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAncpdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAncpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAncpdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAncpdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAncpdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAncpdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAncpdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAncpdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ancpd_oc.proto b/schema/ancpd_oc.proto new file mode 100755 index 0000000..b336452 --- /dev/null +++ b/schema/ancpd_oc.proto @@ -0,0 +1,33 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_ancp jnpr_junos_ancp_ext = 32; +} + +message junos_ancp { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional access_network_type access_network = 151; + message access_network_type { + optional ancp_type ancp = 151; + message ancp_type { + optional protocol_type protocol = 151; + message protocol_type { + optional uint32 configured_neighbor_count = 51; + optional uint32 establishing_neighbor_count = 52; + optional uint32 established_neighbor_count = 53; + optional uint32 not_established_neighbor_count = 54; + optional uint32 total_neighbor_count = 55; + optional uint32 mapped_static_subscriber_count = 56; + optional uint64 port_up_count = 57; + optional uint64 port_down_count = 58; + } + } + } + } + } +} diff --git a/schema/authd_oc.pb.go b/schema/authd_oc.pb.go new file mode 100644 index 0000000..40ba3cc --- /dev/null +++ b/schema/authd_oc.pb.go @@ -0,0 +1,10947 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: authd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosAuthentication struct { + System *JunosAuthenticationSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthentication) Reset() { *m = JunosAuthentication{} } +func (m *JunosAuthentication) String() string { return proto.CompactTextString(m) } +func (*JunosAuthentication) ProtoMessage() {} +func (*JunosAuthentication) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0} +} +func (m *JunosAuthentication) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthentication.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthentication) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthentication.Merge(m, src) +} +func (m *JunosAuthentication) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthentication) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthentication.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthentication proto.InternalMessageInfo + +func (m *JunosAuthentication) GetSystem() *JunosAuthenticationSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosAuthenticationSystemType struct { + SubscriberManagement *JunosAuthenticationSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemType) Reset() { *m = JunosAuthenticationSystemType{} } +func (m *JunosAuthenticationSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosAuthenticationSystemType) ProtoMessage() {} +func (*JunosAuthenticationSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0} +} +func (m *JunosAuthenticationSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemType.Merge(m, src) +} +func (m *JunosAuthenticationSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemType) GetSubscriberManagement() *JunosAuthenticationSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementType struct { + Aaa *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType `protobuf:"bytes,151,opt,name=aaa" json:"aaa,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosAuthenticationSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) GetAaa() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType { + if m != nil { + return m.Aaa + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType struct { + AuthenticationStatistics *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType `protobuf:"bytes,152,opt,name=authentication_statistics,json=authenticationStatistics" json:"authentication_statistics,omitempty"` + AccountingStatistics *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType `protobuf:"bytes,153,opt,name=accounting_statistics,json=accountingStatistics" json:"accounting_statistics,omitempty"` + DynamicRequestStatistics *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType `protobuf:"bytes,154,opt,name=dynamic_request_statistics,json=dynamicRequestStatistics" json:"dynamic_request_statistics,omitempty"` + RadiusServers *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType `protobuf:"bytes,155,opt,name=radius_servers,json=radiusServers" json:"radius_servers,omitempty"` + AddressAssignmentStatistics *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType `protobuf:"bytes,156,opt,name=address_assignment_statistics,json=addressAssignmentStatistics" json:"address_assignment_statistics,omitempty"` + Diameter *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType `protobuf:"bytes,157,opt,name=diameter" json:"diameter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) ProtoMessage() {} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) GetAuthenticationStatistics() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType { + if m != nil { + return m.AuthenticationStatistics + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) GetAccountingStatistics() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType { + if m != nil { + return m.AccountingStatistics + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) GetDynamicRequestStatistics() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType { + if m != nil { + return m.DynamicRequestStatistics + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) GetRadiusServers() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType { + if m != nil { + return m.RadiusServers + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) GetAddressAssignmentStatistics() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType { + if m != nil { + return m.AddressAssignmentStatistics + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) GetDiameter() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType { + if m != nil { + return m.Diameter + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType struct { + ReqReceived *uint64 `protobuf:"varint,51,opt,name=req_received,json=reqReceived" json:"req_received,omitempty"` + ReqAccepted *uint64 `protobuf:"varint,52,opt,name=req_accepted,json=reqAccepted" json:"req_accepted,omitempty"` + ReqRejected *uint64 `protobuf:"varint,53,opt,name=req_rejected,json=reqRejected" json:"req_rejected,omitempty"` + ReqChallenge *uint64 `protobuf:"varint,54,opt,name=req_challenge,json=reqChallenge" json:"req_challenge,omitempty"` + ReqTimeout *uint64 `protobuf:"varint,55,opt,name=req_timeout,json=reqTimeout" json:"req_timeout,omitempty"` + PreAuthenReqReceived *uint64 `protobuf:"varint,56,opt,name=pre_authen_req_received,json=preAuthenReqReceived" json:"pre_authen_req_received,omitempty"` + PreAuthenReqAccepted *uint64 `protobuf:"varint,57,opt,name=pre_authen_req_accepted,json=preAuthenReqAccepted" json:"pre_authen_req_accepted,omitempty"` + PreAuthenReqRejected *uint64 `protobuf:"varint,58,opt,name=pre_authen_req_rejected,json=preAuthenReqRejected" json:"pre_authen_req_rejected,omitempty"` + PreAuthenReqChallenge *uint64 `protobuf:"varint,59,opt,name=pre_authen_req_challenge,json=preAuthenReqChallenge" json:"pre_authen_req_challenge,omitempty"` + PreAuthenReqTimeout *uint64 `protobuf:"varint,60,opt,name=pre_authen_req_timeout,json=preAuthenReqTimeout" json:"pre_authen_req_timeout,omitempty"` + ReAuthenReqReceived *uint64 `protobuf:"varint,61,opt,name=re_authen_req_received,json=reAuthenReqReceived" json:"re_authen_req_received,omitempty"` + ReAuthenReqAccepted *uint64 `protobuf:"varint,62,opt,name=re_authen_req_accepted,json=reAuthenReqAccepted" json:"re_authen_req_accepted,omitempty"` + ReAuthenReqRejected *uint64 `protobuf:"varint,63,opt,name=re_authen_req_rejected,json=reAuthenReqRejected" json:"re_authen_req_rejected,omitempty"` + ReAuthenReqInternalErrors *uint64 `protobuf:"varint,64,opt,name=re_authen_req_internal_errors,json=reAuthenReqInternalErrors" json:"re_authen_req_internal_errors,omitempty"` + ReAuthenReqChallenge *uint64 `protobuf:"varint,65,opt,name=re_authen_req_challenge,json=reAuthenReqChallenge" json:"re_authen_req_challenge,omitempty"` + ReAuthenReqTimeout *uint64 `protobuf:"varint,66,opt,name=re_authen_req_timeout,json=reAuthenReqTimeout" json:"re_authen_req_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReqReceived() uint64 { + if m != nil && m.ReqReceived != nil { + return *m.ReqReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReqAccepted() uint64 { + if m != nil && m.ReqAccepted != nil { + return *m.ReqAccepted + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReqRejected() uint64 { + if m != nil && m.ReqRejected != nil { + return *m.ReqRejected + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReqChallenge() uint64 { + if m != nil && m.ReqChallenge != nil { + return *m.ReqChallenge + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReqTimeout() uint64 { + if m != nil && m.ReqTimeout != nil { + return *m.ReqTimeout + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetPreAuthenReqReceived() uint64 { + if m != nil && m.PreAuthenReqReceived != nil { + return *m.PreAuthenReqReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetPreAuthenReqAccepted() uint64 { + if m != nil && m.PreAuthenReqAccepted != nil { + return *m.PreAuthenReqAccepted + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetPreAuthenReqRejected() uint64 { + if m != nil && m.PreAuthenReqRejected != nil { + return *m.PreAuthenReqRejected + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetPreAuthenReqChallenge() uint64 { + if m != nil && m.PreAuthenReqChallenge != nil { + return *m.PreAuthenReqChallenge + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetPreAuthenReqTimeout() uint64 { + if m != nil && m.PreAuthenReqTimeout != nil { + return *m.PreAuthenReqTimeout + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReAuthenReqReceived() uint64 { + if m != nil && m.ReAuthenReqReceived != nil { + return *m.ReAuthenReqReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReAuthenReqAccepted() uint64 { + if m != nil && m.ReAuthenReqAccepted != nil { + return *m.ReAuthenReqAccepted + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReAuthenReqRejected() uint64 { + if m != nil && m.ReAuthenReqRejected != nil { + return *m.ReAuthenReqRejected + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReAuthenReqInternalErrors() uint64 { + if m != nil && m.ReAuthenReqInternalErrors != nil { + return *m.ReAuthenReqInternalErrors + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReAuthenReqChallenge() uint64 { + if m != nil && m.ReAuthenReqChallenge != nil { + return *m.ReAuthenReqChallenge + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) GetReAuthenReqTimeout() uint64 { + if m != nil && m.ReAuthenReqTimeout != nil { + return *m.ReAuthenReqTimeout + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType struct { + AcctReqReceived *uint64 `protobuf:"varint,51,opt,name=acct_req_received,json=acctReqReceived" json:"acct_req_received,omitempty"` + AcctReqTimeout *uint64 `protobuf:"varint,52,opt,name=acct_req_timeout,json=acctReqTimeout" json:"acct_req_timeout,omitempty"` + AcctRespFailure *uint64 `protobuf:"varint,53,opt,name=acct_resp_failure,json=acctRespFailure" json:"acct_resp_failure,omitempty"` + AcctRespSuccess *uint64 `protobuf:"varint,54,opt,name=acct_resp_success,json=acctRespSuccess" json:"acct_resp_success,omitempty"` + AcctReqStart *uint64 `protobuf:"varint,55,opt,name=acct_req_start,json=acctReqStart" json:"acct_req_start,omitempty"` + AcctReqInterim *uint64 `protobuf:"varint,56,opt,name=acct_req_interim,json=acctReqInterim" json:"acct_req_interim,omitempty"` + AcctReqStop *uint64 `protobuf:"varint,57,opt,name=acct_req_stop,json=acctReqStop" json:"acct_req_stop,omitempty"` + AcctRespTotal *uint64 `protobuf:"varint,58,opt,name=acct_resp_total,json=acctRespTotal" json:"acct_resp_total,omitempty"` + AcctRespStart *uint64 `protobuf:"varint,59,opt,name=acct_resp_start,json=acctRespStart" json:"acct_resp_start,omitempty"` + AcctRespInterim *uint64 `protobuf:"varint,60,opt,name=acct_resp_interim,json=acctRespInterim" json:"acct_resp_interim,omitempty"` + AcctRespStop *uint64 `protobuf:"varint,61,opt,name=acct_resp_stop,json=acctRespStop" json:"acct_resp_stop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 1} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctReqReceived() uint64 { + if m != nil && m.AcctReqReceived != nil { + return *m.AcctReqReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctReqTimeout() uint64 { + if m != nil && m.AcctReqTimeout != nil { + return *m.AcctReqTimeout + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctRespFailure() uint64 { + if m != nil && m.AcctRespFailure != nil { + return *m.AcctRespFailure + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctRespSuccess() uint64 { + if m != nil && m.AcctRespSuccess != nil { + return *m.AcctRespSuccess + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctReqStart() uint64 { + if m != nil && m.AcctReqStart != nil { + return *m.AcctReqStart + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctReqInterim() uint64 { + if m != nil && m.AcctReqInterim != nil { + return *m.AcctReqInterim + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctReqStop() uint64 { + if m != nil && m.AcctReqStop != nil { + return *m.AcctReqStop + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctRespTotal() uint64 { + if m != nil && m.AcctRespTotal != nil { + return *m.AcctRespTotal + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctRespStart() uint64 { + if m != nil && m.AcctRespStart != nil { + return *m.AcctRespStart + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctRespInterim() uint64 { + if m != nil && m.AcctRespInterim != nil { + return *m.AcctRespInterim + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) GetAcctRespStop() uint64 { + if m != nil && m.AcctRespStop != nil { + return *m.AcctRespStop + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType struct { + DynamicReqReceived *uint64 `protobuf:"varint,51,opt,name=dynamic_req_received,json=dynamicReqReceived" json:"dynamic_req_received,omitempty"` + DynamicReqSuccess *uint64 `protobuf:"varint,52,opt,name=dynamic_req_success,json=dynamicReqSuccess" json:"dynamic_req_success,omitempty"` + DynamicReqError *uint64 `protobuf:"varint,53,opt,name=dynamic_req_error,json=dynamicReqError" json:"dynamic_req_error,omitempty"` + DynamicReqSilentlyDrop *uint64 `protobuf:"varint,54,opt,name=dynamic_req_silently_drop,json=dynamicReqSilentlyDrop" json:"dynamic_req_silently_drop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 2} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) GetDynamicReqReceived() uint64 { + if m != nil && m.DynamicReqReceived != nil { + return *m.DynamicReqReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) GetDynamicReqSuccess() uint64 { + if m != nil && m.DynamicReqSuccess != nil { + return *m.DynamicReqSuccess + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) GetDynamicReqError() uint64 { + if m != nil && m.DynamicReqError != nil { + return *m.DynamicReqError + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) GetDynamicReqSilentlyDrop() uint64 { + if m != nil && m.DynamicReqSilentlyDrop != nil { + return *m.DynamicReqSilentlyDrop + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType struct { + RadiusServer []*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList `protobuf:"bytes,151,rep,name=radius_server,json=radiusServer" json:"radius_server,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 3} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) GetRadiusServer() []*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList { + if m != nil { + return m.RadiusServer + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList struct { + ServerAddress *string `protobuf:"bytes,52,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` + Statistics *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + ResponseTime *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType `protobuf:"bytes,152,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 3, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) GetServerAddress() string { + if m != nil && m.ServerAddress != nil { + return *m.ServerAddress + } + return "" +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) GetStatistics() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) GetResponseTime() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType { + if m != nil { + return m.ResponseTime + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType struct { + ServerLastRtt *uint64 `protobuf:"varint,51,opt,name=server_last_rtt,json=serverLastRtt" json:"server_last_rtt,omitempty"` + AuthAccessRequests *uint64 `protobuf:"varint,52,opt,name=auth_access_requests,json=authAccessRequests" json:"auth_access_requests,omitempty"` + AuthRolloverRequests *uint64 `protobuf:"varint,53,opt,name=auth_rollover_requests,json=authRolloverRequests" json:"auth_rollover_requests,omitempty"` + AuthRetransmissions *uint64 `protobuf:"varint,54,opt,name=auth_retransmissions,json=authRetransmissions" json:"auth_retransmissions,omitempty"` + AuthAccessAccepts *uint64 `protobuf:"varint,55,opt,name=auth_access_accepts,json=authAccessAccepts" json:"auth_access_accepts,omitempty"` + AuthAccessRejects *uint64 `protobuf:"varint,56,opt,name=auth_access_rejects,json=authAccessRejects" json:"auth_access_rejects,omitempty"` + AuthAccessChallenges *uint64 `protobuf:"varint,57,opt,name=auth_access_challenges,json=authAccessChallenges" json:"auth_access_challenges,omitempty"` + AuthMalformedResponses *uint64 `protobuf:"varint,58,opt,name=auth_malformed_responses,json=authMalformedResponses" json:"auth_malformed_responses,omitempty"` + AuthBadAuthenticators *uint64 `protobuf:"varint,59,opt,name=auth_bad_authenticators,json=authBadAuthenticators" json:"auth_bad_authenticators,omitempty"` + AuthReqPending *uint64 `protobuf:"varint,60,opt,name=auth_req_pending,json=authReqPending" json:"auth_req_pending,omitempty"` + AuthRequestTimeouts *uint64 `protobuf:"varint,61,opt,name=auth_request_timeouts,json=authRequestTimeouts" json:"auth_request_timeouts,omitempty"` + AuthUnknownResponses *uint64 `protobuf:"varint,62,opt,name=auth_unknown_responses,json=authUnknownResponses" json:"auth_unknown_responses,omitempty"` + AuthPacketsDropped *uint64 `protobuf:"varint,63,opt,name=auth_packets_dropped,json=authPacketsDropped" json:"auth_packets_dropped,omitempty"` + PreauthAccessRequests *uint64 `protobuf:"varint,64,opt,name=preauth_access_requests,json=preauthAccessRequests" json:"preauth_access_requests,omitempty"` + PreauthRolloverRequests *uint64 `protobuf:"varint,65,opt,name=preauth_rollover_requests,json=preauthRolloverRequests" json:"preauth_rollover_requests,omitempty"` + PreauthRetransmissions *uint64 `protobuf:"varint,66,opt,name=preauth_retransmissions,json=preauthRetransmissions" json:"preauth_retransmissions,omitempty"` + PreauthAccessAccepts *uint64 `protobuf:"varint,67,opt,name=preauth_access_accepts,json=preauthAccessAccepts" json:"preauth_access_accepts,omitempty"` + PreauthAccessRejects *uint64 `protobuf:"varint,68,opt,name=preauth_access_rejects,json=preauthAccessRejects" json:"preauth_access_rejects,omitempty"` + PreauthAccessChallenges *uint64 `protobuf:"varint,69,opt,name=preauth_access_challenges,json=preauthAccessChallenges" json:"preauth_access_challenges,omitempty"` + PreauthMalformedResponses *uint64 `protobuf:"varint,70,opt,name=preauth_malformed_responses,json=preauthMalformedResponses" json:"preauth_malformed_responses,omitempty"` + PreauthBadAuthenticators *uint64 `protobuf:"varint,71,opt,name=preauth_bad_authenticators,json=preauthBadAuthenticators" json:"preauth_bad_authenticators,omitempty"` + PreauthReqPending *uint64 `protobuf:"varint,72,opt,name=preauth_req_pending,json=preauthReqPending" json:"preauth_req_pending,omitempty"` + PreauthRequestTimeouts *uint64 `protobuf:"varint,73,opt,name=preauth_request_timeouts,json=preauthRequestTimeouts" json:"preauth_request_timeouts,omitempty"` + PreauthUnknownResponses *uint64 `protobuf:"varint,74,opt,name=preauth_unknown_responses,json=preauthUnknownResponses" json:"preauth_unknown_responses,omitempty"` + PreauthPacketsDropped *uint64 `protobuf:"varint,75,opt,name=preauth_packets_dropped,json=preauthPacketsDropped" json:"preauth_packets_dropped,omitempty"` + AcctStartRequests *uint64 `protobuf:"varint,76,opt,name=acct_start_requests,json=acctStartRequests" json:"acct_start_requests,omitempty"` + AcctInterimRequests *uint64 `protobuf:"varint,77,opt,name=acct_interim_requests,json=acctInterimRequests" json:"acct_interim_requests,omitempty"` + AcctStopRequests *uint64 `protobuf:"varint,78,opt,name=acct_stop_requests,json=acctStopRequests" json:"acct_stop_requests,omitempty"` + AcctRolloverRequests *uint64 `protobuf:"varint,79,opt,name=acct_rollover_requests,json=acctRolloverRequests" json:"acct_rollover_requests,omitempty"` + AcctRetransmissions *uint64 `protobuf:"varint,80,opt,name=acct_retransmissions,json=acctRetransmissions" json:"acct_retransmissions,omitempty"` + AcctStartResponses *uint64 `protobuf:"varint,81,opt,name=acct_start_responses,json=acctStartResponses" json:"acct_start_responses,omitempty"` + AcctInterimResponses *uint64 `protobuf:"varint,82,opt,name=acct_interim_responses,json=acctInterimResponses" json:"acct_interim_responses,omitempty"` + AcctStopResponses *uint64 `protobuf:"varint,83,opt,name=acct_stop_responses,json=acctStopResponses" json:"acct_stop_responses,omitempty"` + AcctMalformedResponses *uint64 `protobuf:"varint,84,opt,name=acct_malformed_responses,json=acctMalformedResponses" json:"acct_malformed_responses,omitempty"` + AcctBadAuthenticators *uint64 `protobuf:"varint,85,opt,name=acct_bad_authenticators,json=acctBadAuthenticators" json:"acct_bad_authenticators,omitempty"` + AcctReqPending *uint64 `protobuf:"varint,86,opt,name=acct_req_pending,json=acctReqPending" json:"acct_req_pending,omitempty"` + AcctRequestTimeouts *uint64 `protobuf:"varint,87,opt,name=acct_request_timeouts,json=acctRequestTimeouts" json:"acct_request_timeouts,omitempty"` + AcctUnknownResponses *uint64 `protobuf:"varint,88,opt,name=acct_unknown_responses,json=acctUnknownResponses" json:"acct_unknown_responses,omitempty"` + AcctPacketsDropped *uint64 `protobuf:"varint,89,opt,name=acct_packets_dropped,json=acctPacketsDropped" json:"acct_packets_dropped,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 3, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetServerLastRtt() uint64 { + if m != nil && m.ServerLastRtt != nil { + return *m.ServerLastRtt + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthAccessRequests() uint64 { + if m != nil && m.AuthAccessRequests != nil { + return *m.AuthAccessRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthRolloverRequests() uint64 { + if m != nil && m.AuthRolloverRequests != nil { + return *m.AuthRolloverRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthRetransmissions() uint64 { + if m != nil && m.AuthRetransmissions != nil { + return *m.AuthRetransmissions + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthAccessAccepts() uint64 { + if m != nil && m.AuthAccessAccepts != nil { + return *m.AuthAccessAccepts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthAccessRejects() uint64 { + if m != nil && m.AuthAccessRejects != nil { + return *m.AuthAccessRejects + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthAccessChallenges() uint64 { + if m != nil && m.AuthAccessChallenges != nil { + return *m.AuthAccessChallenges + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthMalformedResponses() uint64 { + if m != nil && m.AuthMalformedResponses != nil { + return *m.AuthMalformedResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthBadAuthenticators() uint64 { + if m != nil && m.AuthBadAuthenticators != nil { + return *m.AuthBadAuthenticators + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthReqPending() uint64 { + if m != nil && m.AuthReqPending != nil { + return *m.AuthReqPending + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthRequestTimeouts() uint64 { + if m != nil && m.AuthRequestTimeouts != nil { + return *m.AuthRequestTimeouts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthUnknownResponses() uint64 { + if m != nil && m.AuthUnknownResponses != nil { + return *m.AuthUnknownResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAuthPacketsDropped() uint64 { + if m != nil && m.AuthPacketsDropped != nil { + return *m.AuthPacketsDropped + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthAccessRequests() uint64 { + if m != nil && m.PreauthAccessRequests != nil { + return *m.PreauthAccessRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthRolloverRequests() uint64 { + if m != nil && m.PreauthRolloverRequests != nil { + return *m.PreauthRolloverRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthRetransmissions() uint64 { + if m != nil && m.PreauthRetransmissions != nil { + return *m.PreauthRetransmissions + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthAccessAccepts() uint64 { + if m != nil && m.PreauthAccessAccepts != nil { + return *m.PreauthAccessAccepts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthAccessRejects() uint64 { + if m != nil && m.PreauthAccessRejects != nil { + return *m.PreauthAccessRejects + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthAccessChallenges() uint64 { + if m != nil && m.PreauthAccessChallenges != nil { + return *m.PreauthAccessChallenges + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthMalformedResponses() uint64 { + if m != nil && m.PreauthMalformedResponses != nil { + return *m.PreauthMalformedResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthBadAuthenticators() uint64 { + if m != nil && m.PreauthBadAuthenticators != nil { + return *m.PreauthBadAuthenticators + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthReqPending() uint64 { + if m != nil && m.PreauthReqPending != nil { + return *m.PreauthReqPending + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthRequestTimeouts() uint64 { + if m != nil && m.PreauthRequestTimeouts != nil { + return *m.PreauthRequestTimeouts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthUnknownResponses() uint64 { + if m != nil && m.PreauthUnknownResponses != nil { + return *m.PreauthUnknownResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetPreauthPacketsDropped() uint64 { + if m != nil && m.PreauthPacketsDropped != nil { + return *m.PreauthPacketsDropped + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctStartRequests() uint64 { + if m != nil && m.AcctStartRequests != nil { + return *m.AcctStartRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctInterimRequests() uint64 { + if m != nil && m.AcctInterimRequests != nil { + return *m.AcctInterimRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctStopRequests() uint64 { + if m != nil && m.AcctStopRequests != nil { + return *m.AcctStopRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctRolloverRequests() uint64 { + if m != nil && m.AcctRolloverRequests != nil { + return *m.AcctRolloverRequests + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctRetransmissions() uint64 { + if m != nil && m.AcctRetransmissions != nil { + return *m.AcctRetransmissions + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctStartResponses() uint64 { + if m != nil && m.AcctStartResponses != nil { + return *m.AcctStartResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctInterimResponses() uint64 { + if m != nil && m.AcctInterimResponses != nil { + return *m.AcctInterimResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctStopResponses() uint64 { + if m != nil && m.AcctStopResponses != nil { + return *m.AcctStopResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctMalformedResponses() uint64 { + if m != nil && m.AcctMalformedResponses != nil { + return *m.AcctMalformedResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctBadAuthenticators() uint64 { + if m != nil && m.AcctBadAuthenticators != nil { + return *m.AcctBadAuthenticators + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctReqPending() uint64 { + if m != nil && m.AcctReqPending != nil { + return *m.AcctReqPending + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctRequestTimeouts() uint64 { + if m != nil && m.AcctRequestTimeouts != nil { + return *m.AcctRequestTimeouts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctUnknownResponses() uint64 { + if m != nil && m.AcctUnknownResponses != nil { + return *m.AcctUnknownResponses + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) GetAcctPacketsDropped() uint64 { + if m != nil && m.AcctPacketsDropped != nil { + return *m.AcctPacketsDropped + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType struct { + OneMinuteMinimumResponseTime *uint64 `protobuf:"varint,51,opt,name=one_minute_minimum_response_time,json=oneMinuteMinimumResponseTime" json:"one_minute_minimum_response_time,omitempty"` + OneMinuteAverageResponseTime *uint64 `protobuf:"varint,52,opt,name=one_minute_average_response_time,json=oneMinuteAverageResponseTime" json:"one_minute_average_response_time,omitempty"` + OneMinuteMaximumResponseTime *uint64 `protobuf:"varint,53,opt,name=one_minute_maximum_response_time,json=oneMinuteMaximumResponseTime" json:"one_minute_maximum_response_time,omitempty"` + OneMinuteMessagesSent *uint64 `protobuf:"varint,54,opt,name=one_minute_messages_sent,json=oneMinuteMessagesSent" json:"one_minute_messages_sent,omitempty"` + OneMinuteMessagesReceived *uint64 `protobuf:"varint,55,opt,name=one_minute_messages_received,json=oneMinuteMessagesReceived" json:"one_minute_messages_received,omitempty"` + OneMinuteMessagesNoResponse *uint64 `protobuf:"varint,56,opt,name=one_minute_messages_no_response,json=oneMinuteMessagesNoResponse" json:"one_minute_messages_no_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 3, 0, 1} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) GetOneMinuteMinimumResponseTime() uint64 { + if m != nil && m.OneMinuteMinimumResponseTime != nil { + return *m.OneMinuteMinimumResponseTime + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) GetOneMinuteAverageResponseTime() uint64 { + if m != nil && m.OneMinuteAverageResponseTime != nil { + return *m.OneMinuteAverageResponseTime + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) GetOneMinuteMaximumResponseTime() uint64 { + if m != nil && m.OneMinuteMaximumResponseTime != nil { + return *m.OneMinuteMaximumResponseTime + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) GetOneMinuteMessagesSent() uint64 { + if m != nil && m.OneMinuteMessagesSent != nil { + return *m.OneMinuteMessagesSent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) GetOneMinuteMessagesReceived() uint64 { + if m != nil && m.OneMinuteMessagesReceived != nil { + return *m.OneMinuteMessagesReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) GetOneMinuteMessagesNoResponse() uint64 { + if m != nil && m.OneMinuteMessagesNoResponse != nil { + return *m.OneMinuteMessagesNoResponse + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType struct { + LogicalSystemRoutingInstances *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType `protobuf:"bytes,151,opt,name=logical_system_routing_instances,json=logicalSystemRoutingInstances" json:"logical_system_routing_instances,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 4} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) GetLogicalSystemRoutingInstances() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType { + if m != nil { + return m.LogicalSystemRoutingInstances + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType struct { + LogicalSystemRoutingInstance []*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList `protobuf:"bytes,151,rep,name=logical_system_routing_instance,json=logicalSystemRoutingInstance" json:"logical_system_routing_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 4, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) GetLogicalSystemRoutingInstance() []*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList { + if m != nil { + return m.LogicalSystemRoutingInstance + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Pools *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType `protobuf:"bytes,151,opt,name=pools" json:"pools,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 4, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) GetPools() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType { + if m != nil { + return m.Pools + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType struct { + Pool []*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList `protobuf:"bytes,151,rep,name=pool" json:"pool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 4, 0, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) GetPool() []*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList { + if m != nil { + return m.Pool + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList struct { + PoolName *string `protobuf:"bytes,51,opt,name=pool_name,json=poolName" json:"pool_name,omitempty"` + OutOfMemory *uint64 `protobuf:"varint,52,opt,name=out_of_memory,json=outOfMemory" json:"out_of_memory,omitempty"` + OutOfAddress *uint64 `protobuf:"varint,53,opt,name=out_of_address,json=outOfAddress" json:"out_of_address,omitempty"` + AddressTotal *uint64 `protobuf:"varint,54,opt,name=address_total,json=addressTotal" json:"address_total,omitempty"` + AddressInUse *uint64 `protobuf:"varint,55,opt,name=address_in_use,json=addressInUse" json:"address_in_use,omitempty"` + AddressUsagePercent *uint64 `protobuf:"varint,56,opt,name=address_usage_percent,json=addressUsagePercent" json:"address_usage_percent,omitempty"` + LinkedPoolName *string `protobuf:"bytes,57,opt,name=linked_pool_name,json=linkedPoolName" json:"linked_pool_name,omitempty"` + LinkedPoolHead *string `protobuf:"bytes,58,opt,name=linked_pool_head,json=linkedPoolHead" json:"linked_pool_head,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 4, 0, 0, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetPoolName() string { + if m != nil && m.PoolName != nil { + return *m.PoolName + } + return "" +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetOutOfMemory() uint64 { + if m != nil && m.OutOfMemory != nil { + return *m.OutOfMemory + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetOutOfAddress() uint64 { + if m != nil && m.OutOfAddress != nil { + return *m.OutOfAddress + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetAddressTotal() uint64 { + if m != nil && m.AddressTotal != nil { + return *m.AddressTotal + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetAddressInUse() uint64 { + if m != nil && m.AddressInUse != nil { + return *m.AddressInUse + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetAddressUsagePercent() uint64 { + if m != nil && m.AddressUsagePercent != nil { + return *m.AddressUsagePercent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetLinkedPoolName() string { + if m != nil && m.LinkedPoolName != nil { + return *m.LinkedPoolName + } + return "" +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) GetLinkedPoolHead() string { + if m != nil && m.LinkedPoolHead != nil { + return *m.LinkedPoolHead + } + return "" +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType struct { + Clients *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType `protobuf:"bytes,151,opt,name=clients" json:"clients,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) ProtoMessage() {} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 5} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) GetClients() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType { + if m != nil { + return m.Clients + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType struct { + Nasreq *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType `protobuf:"bytes,151,opt,name=nasreq" json:"nasreq,omitempty"` + Gx *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType `protobuf:"bytes,152,opt,name=gx" json:"gx,omitempty"` + Gy *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType `protobuf:"bytes,153,opt,name=gy" json:"gy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 5, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) GetNasreq() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType { + if m != nil { + return m.Nasreq + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) GetGx() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType { + if m != nil { + return m.Gx + } + return nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) GetGy() *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType { + if m != nil { + return m.Gy + } + return nil +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType struct { + AuthenticationRequestMessagesSent *uint64 `protobuf:"varint,51,opt,name=authentication_request_messages_sent,json=authenticationRequestMessagesSent" json:"authentication_request_messages_sent,omitempty"` + AuthenticationRequestMessageFailures *uint64 `protobuf:"varint,52,opt,name=authentication_request_message_failures,json=authenticationRequestMessageFailures" json:"authentication_request_message_failures,omitempty"` + AuthenticationRequestMessagesTimeouts *uint64 `protobuf:"varint,53,opt,name=authentication_request_messages_timeouts,json=authenticationRequestMessagesTimeouts" json:"authentication_request_messages_timeouts,omitempty"` + AuthenticationDeniesFailures *uint64 `protobuf:"varint,54,opt,name=authentication_denies_failures,json=authenticationDeniesFailures" json:"authentication_denies_failures,omitempty"` + AuthenticationGrantsReceived *uint64 `protobuf:"varint,55,opt,name=authentication_grants_received,json=authenticationGrantsReceived" json:"authentication_grants_received,omitempty"` + AuthorizationRequestMessagesSent *uint64 `protobuf:"varint,56,opt,name=authorization_request_messages_sent,json=authorizationRequestMessagesSent" json:"authorization_request_messages_sent,omitempty"` + AuthorizationRequestMessageFailures *uint64 `protobuf:"varint,57,opt,name=authorization_request_message_failures,json=authorizationRequestMessageFailures" json:"authorization_request_message_failures,omitempty"` + AuthorizationRequestMessagesTimeouts *uint64 `protobuf:"varint,58,opt,name=authorization_request_messages_timeouts,json=authorizationRequestMessagesTimeouts" json:"authorization_request_messages_timeouts,omitempty"` + AuthorizationDeniesFailures *uint64 `protobuf:"varint,59,opt,name=authorization_denies_failures,json=authorizationDeniesFailures" json:"authorization_denies_failures,omitempty"` + AuthorizationGrantsReceived *uint64 `protobuf:"varint,60,opt,name=authorization_grants_received,json=authorizationGrantsReceived" json:"authorization_grants_received,omitempty"` + SessionTerminateRequestMessagesSent *uint64 `protobuf:"varint,61,opt,name=session_terminate_request_messages_sent,json=sessionTerminateRequestMessagesSent" json:"session_terminate_request_messages_sent,omitempty"` + SessionTerminateRequestMessageFailures *uint64 `protobuf:"varint,62,opt,name=session_terminate_request_message_failures,json=sessionTerminateRequestMessageFailures" json:"session_terminate_request_message_failures,omitempty"` + SessionTerminateRequestMessagesTimeouts *uint64 `protobuf:"varint,63,opt,name=session_terminate_request_messages_timeouts,json=sessionTerminateRequestMessagesTimeouts" json:"session_terminate_request_messages_timeouts,omitempty"` + SessionTerminateResponseMessagesFailures *uint64 `protobuf:"varint,64,opt,name=session_terminate_response_messages_failures,json=sessionTerminateResponseMessagesFailures" json:"session_terminate_response_messages_failures,omitempty"` + SessionTerminateResponseMessagesReceived *uint64 `protobuf:"varint,65,opt,name=session_terminate_response_messages_received,json=sessionTerminateResponseMessagesReceived" json:"session_terminate_response_messages_received,omitempty"` + AbortSessionRequestsReceived *uint64 `protobuf:"varint,66,opt,name=abort_session_requests_received,json=abortSessionRequestsReceived" json:"abort_session_requests_received,omitempty"` + AbortSessionResponseAckMessagesSent *uint64 `protobuf:"varint,67,opt,name=abort_session_response_ack_messages_sent,json=abortSessionResponseAckMessagesSent" json:"abort_session_response_ack_messages_sent,omitempty"` + AbortSessionResponseNackMessagesSent *uint64 `protobuf:"varint,68,opt,name=abort_session_response_nack_messages_sent,json=abortSessionResponseNackMessagesSent" json:"abort_session_response_nack_messages_sent,omitempty"` + AbortSessionResponseMessageFailures *uint64 `protobuf:"varint,69,opt,name=abort_session_response_message_failures,json=abortSessionResponseMessageFailures" json:"abort_session_response_message_failures,omitempty"` + TransmitQueueTimeOuts *uint64 `protobuf:"varint,70,opt,name=transmit_queue_time_outs,json=transmitQueueTimeOuts" json:"transmit_queue_time_outs,omitempty"` + ResponseParseErrors *uint64 `protobuf:"varint,71,opt,name=response_parse_errors,json=responseParseErrors" json:"response_parse_errors,omitempty"` + ResponsesDropped *uint64 `protobuf:"varint,72,opt,name=responses_dropped,json=responsesDropped" json:"responses_dropped,omitempty"` + OutstandingRequests *uint64 `protobuf:"varint,73,opt,name=outstanding_requests,json=outstandingRequests" json:"outstanding_requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 5, 0, 0} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthenticationRequestMessagesSent() uint64 { + if m != nil && m.AuthenticationRequestMessagesSent != nil { + return *m.AuthenticationRequestMessagesSent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthenticationRequestMessageFailures() uint64 { + if m != nil && m.AuthenticationRequestMessageFailures != nil { + return *m.AuthenticationRequestMessageFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthenticationRequestMessagesTimeouts() uint64 { + if m != nil && m.AuthenticationRequestMessagesTimeouts != nil { + return *m.AuthenticationRequestMessagesTimeouts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthenticationDeniesFailures() uint64 { + if m != nil && m.AuthenticationDeniesFailures != nil { + return *m.AuthenticationDeniesFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthenticationGrantsReceived() uint64 { + if m != nil && m.AuthenticationGrantsReceived != nil { + return *m.AuthenticationGrantsReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthorizationRequestMessagesSent() uint64 { + if m != nil && m.AuthorizationRequestMessagesSent != nil { + return *m.AuthorizationRequestMessagesSent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthorizationRequestMessageFailures() uint64 { + if m != nil && m.AuthorizationRequestMessageFailures != nil { + return *m.AuthorizationRequestMessageFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthorizationRequestMessagesTimeouts() uint64 { + if m != nil && m.AuthorizationRequestMessagesTimeouts != nil { + return *m.AuthorizationRequestMessagesTimeouts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthorizationDeniesFailures() uint64 { + if m != nil && m.AuthorizationDeniesFailures != nil { + return *m.AuthorizationDeniesFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAuthorizationGrantsReceived() uint64 { + if m != nil && m.AuthorizationGrantsReceived != nil { + return *m.AuthorizationGrantsReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetSessionTerminateRequestMessagesSent() uint64 { + if m != nil && m.SessionTerminateRequestMessagesSent != nil { + return *m.SessionTerminateRequestMessagesSent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetSessionTerminateRequestMessageFailures() uint64 { + if m != nil && m.SessionTerminateRequestMessageFailures != nil { + return *m.SessionTerminateRequestMessageFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetSessionTerminateRequestMessagesTimeouts() uint64 { + if m != nil && m.SessionTerminateRequestMessagesTimeouts != nil { + return *m.SessionTerminateRequestMessagesTimeouts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetSessionTerminateResponseMessagesFailures() uint64 { + if m != nil && m.SessionTerminateResponseMessagesFailures != nil { + return *m.SessionTerminateResponseMessagesFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetSessionTerminateResponseMessagesReceived() uint64 { + if m != nil && m.SessionTerminateResponseMessagesReceived != nil { + return *m.SessionTerminateResponseMessagesReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAbortSessionRequestsReceived() uint64 { + if m != nil && m.AbortSessionRequestsReceived != nil { + return *m.AbortSessionRequestsReceived + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAbortSessionResponseAckMessagesSent() uint64 { + if m != nil && m.AbortSessionResponseAckMessagesSent != nil { + return *m.AbortSessionResponseAckMessagesSent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAbortSessionResponseNackMessagesSent() uint64 { + if m != nil && m.AbortSessionResponseNackMessagesSent != nil { + return *m.AbortSessionResponseNackMessagesSent + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetAbortSessionResponseMessageFailures() uint64 { + if m != nil && m.AbortSessionResponseMessageFailures != nil { + return *m.AbortSessionResponseMessageFailures + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetTransmitQueueTimeOuts() uint64 { + if m != nil && m.TransmitQueueTimeOuts != nil { + return *m.TransmitQueueTimeOuts + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetResponseParseErrors() uint64 { + if m != nil && m.ResponseParseErrors != nil { + return *m.ResponseParseErrors + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetResponsesDropped() uint64 { + if m != nil && m.ResponsesDropped != nil { + return *m.ResponsesDropped + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) GetOutstandingRequests() uint64 { + if m != nil && m.OutstandingRequests != nil { + return *m.OutstandingRequests + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType struct { + CcrInitial *uint64 `protobuf:"varint,51,opt,name=ccr_initial,json=ccrInitial" json:"ccr_initial,omitempty"` + CcrInitialRetry *uint64 `protobuf:"varint,52,opt,name=ccr_initial_retry,json=ccrInitialRetry" json:"ccr_initial_retry,omitempty"` + CcaInitial *uint64 `protobuf:"varint,53,opt,name=cca_initial,json=ccaInitial" json:"cca_initial,omitempty"` + CcaInitialGrant *uint64 `protobuf:"varint,54,opt,name=cca_initial_grant,json=ccaInitialGrant" json:"cca_initial_grant,omitempty"` + CcaInitialDeny *uint64 `protobuf:"varint,55,opt,name=cca_initial_deny,json=ccaInitialDeny" json:"cca_initial_deny,omitempty"` + CcaInitialFailure *uint64 `protobuf:"varint,56,opt,name=cca_initial_failure,json=ccaInitialFailure" json:"cca_initial_failure,omitempty"` + CcrUpdate *uint64 `protobuf:"varint,57,opt,name=ccr_update,json=ccrUpdate" json:"ccr_update,omitempty"` + CcrUpdateRetry *uint64 `protobuf:"varint,58,opt,name=ccr_update_retry,json=ccrUpdateRetry" json:"ccr_update_retry,omitempty"` + CcaUpdate *uint64 `protobuf:"varint,59,opt,name=cca_update,json=ccaUpdate" json:"cca_update,omitempty"` + CcaUpdateTimeout *uint64 `protobuf:"varint,60,opt,name=cca_update_timeout,json=ccaUpdateTimeout" json:"cca_update_timeout,omitempty"` + CcrTerminate *uint64 `protobuf:"varint,61,opt,name=ccr_terminate,json=ccrTerminate" json:"ccr_terminate,omitempty"` + CcrTerminateRetry *uint64 `protobuf:"varint,62,opt,name=ccr_terminate_retry,json=ccrTerminateRetry" json:"ccr_terminate_retry,omitempty"` + CcaTerminate *uint64 `protobuf:"varint,63,opt,name=cca_terminate,json=ccaTerminate" json:"cca_terminate,omitempty"` + CcaTerminateTimeout *uint64 `protobuf:"varint,64,opt,name=cca_terminate_timeout,json=ccaTerminateTimeout" json:"cca_terminate_timeout,omitempty"` + CcaParseError *uint64 `protobuf:"varint,65,opt,name=cca_parse_error,json=ccaParseError" json:"cca_parse_error,omitempty"` + CcaDropped *uint64 `protobuf:"varint,66,opt,name=cca_dropped,json=ccaDropped" json:"cca_dropped,omitempty"` + CcaInitialBadResultCode *uint64 `protobuf:"varint,67,opt,name=cca_initial_bad_result_code,json=ccaInitialBadResultCode" json:"cca_initial_bad_result_code,omitempty"` + CcaInitialBadData *uint64 `protobuf:"varint,68,opt,name=cca_initial_bad_data,json=ccaInitialBadData" json:"cca_initial_bad_data,omitempty"` + RarUpdate *uint64 `protobuf:"varint,69,opt,name=rar_update,json=rarUpdate" json:"rar_update,omitempty"` + RarUpdateRetry *uint64 `protobuf:"varint,70,opt,name=rar_update_retry,json=rarUpdateRetry" json:"rar_update_retry,omitempty"` + RarUpdateDrop *uint64 `protobuf:"varint,71,opt,name=rar_update_drop,json=rarUpdateDrop" json:"rar_update_drop,omitempty"` + RaaUpdateAck *uint64 `protobuf:"varint,72,opt,name=raa_update_ack,json=raaUpdateAck" json:"raa_update_ack,omitempty"` + RaaUpdateNak *uint64 `protobuf:"varint,73,opt,name=raa_update_nak,json=raaUpdateNak" json:"raa_update_nak,omitempty"` + RarDisconnect *uint64 `protobuf:"varint,74,opt,name=rar_disconnect,json=rarDisconnect" json:"rar_disconnect,omitempty"` + RarDisconnectRetry *uint64 `protobuf:"varint,75,opt,name=rar_disconnect_retry,json=rarDisconnectRetry" json:"rar_disconnect_retry,omitempty"` + RarDisconnectDrop *uint64 `protobuf:"varint,76,opt,name=rar_disconnect_drop,json=rarDisconnectDrop" json:"rar_disconnect_drop,omitempty"` + RaaDisconnectAck *uint64 `protobuf:"varint,77,opt,name=raa_disconnect_ack,json=raaDisconnectAck" json:"raa_disconnect_ack,omitempty"` + RaaDisconnectNak *uint64 `protobuf:"varint,78,opt,name=raa_disconnect_nak,json=raaDisconnectNak" json:"raa_disconnect_nak,omitempty"` + RarAudit *uint64 `protobuf:"varint,79,opt,name=rar_audit,json=rarAudit" json:"rar_audit,omitempty"` + RarAuditRetry *uint64 `protobuf:"varint,80,opt,name=rar_audit_retry,json=rarAuditRetry" json:"rar_audit_retry,omitempty"` + RarAuditDrop *uint64 `protobuf:"varint,81,opt,name=rar_audit_drop,json=rarAuditDrop" json:"rar_audit_drop,omitempty"` + RaaAuditAck *uint64 `protobuf:"varint,82,opt,name=raa_audit_ack,json=raaAuditAck" json:"raa_audit_ack,omitempty"` + RaaAuditNak *uint64 `protobuf:"varint,83,opt,name=raa_audit_nak,json=raaAuditNak" json:"raa_audit_nak,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 5, 0, 1} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcrInitial() uint64 { + if m != nil && m.CcrInitial != nil { + return *m.CcrInitial + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcrInitialRetry() uint64 { + if m != nil && m.CcrInitialRetry != nil { + return *m.CcrInitialRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaInitial() uint64 { + if m != nil && m.CcaInitial != nil { + return *m.CcaInitial + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaInitialGrant() uint64 { + if m != nil && m.CcaInitialGrant != nil { + return *m.CcaInitialGrant + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaInitialDeny() uint64 { + if m != nil && m.CcaInitialDeny != nil { + return *m.CcaInitialDeny + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaInitialFailure() uint64 { + if m != nil && m.CcaInitialFailure != nil { + return *m.CcaInitialFailure + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcrUpdate() uint64 { + if m != nil && m.CcrUpdate != nil { + return *m.CcrUpdate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcrUpdateRetry() uint64 { + if m != nil && m.CcrUpdateRetry != nil { + return *m.CcrUpdateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaUpdate() uint64 { + if m != nil && m.CcaUpdate != nil { + return *m.CcaUpdate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaUpdateTimeout() uint64 { + if m != nil && m.CcaUpdateTimeout != nil { + return *m.CcaUpdateTimeout + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcrTerminate() uint64 { + if m != nil && m.CcrTerminate != nil { + return *m.CcrTerminate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcrTerminateRetry() uint64 { + if m != nil && m.CcrTerminateRetry != nil { + return *m.CcrTerminateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaTerminate() uint64 { + if m != nil && m.CcaTerminate != nil { + return *m.CcaTerminate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaTerminateTimeout() uint64 { + if m != nil && m.CcaTerminateTimeout != nil { + return *m.CcaTerminateTimeout + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaParseError() uint64 { + if m != nil && m.CcaParseError != nil { + return *m.CcaParseError + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaDropped() uint64 { + if m != nil && m.CcaDropped != nil { + return *m.CcaDropped + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaInitialBadResultCode() uint64 { + if m != nil && m.CcaInitialBadResultCode != nil { + return *m.CcaInitialBadResultCode + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetCcaInitialBadData() uint64 { + if m != nil && m.CcaInitialBadData != nil { + return *m.CcaInitialBadData + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarUpdate() uint64 { + if m != nil && m.RarUpdate != nil { + return *m.RarUpdate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarUpdateRetry() uint64 { + if m != nil && m.RarUpdateRetry != nil { + return *m.RarUpdateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarUpdateDrop() uint64 { + if m != nil && m.RarUpdateDrop != nil { + return *m.RarUpdateDrop + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRaaUpdateAck() uint64 { + if m != nil && m.RaaUpdateAck != nil { + return *m.RaaUpdateAck + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRaaUpdateNak() uint64 { + if m != nil && m.RaaUpdateNak != nil { + return *m.RaaUpdateNak + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarDisconnect() uint64 { + if m != nil && m.RarDisconnect != nil { + return *m.RarDisconnect + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarDisconnectRetry() uint64 { + if m != nil && m.RarDisconnectRetry != nil { + return *m.RarDisconnectRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarDisconnectDrop() uint64 { + if m != nil && m.RarDisconnectDrop != nil { + return *m.RarDisconnectDrop + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRaaDisconnectAck() uint64 { + if m != nil && m.RaaDisconnectAck != nil { + return *m.RaaDisconnectAck + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRaaDisconnectNak() uint64 { + if m != nil && m.RaaDisconnectNak != nil { + return *m.RaaDisconnectNak + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarAudit() uint64 { + if m != nil && m.RarAudit != nil { + return *m.RarAudit + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarAuditRetry() uint64 { + if m != nil && m.RarAuditRetry != nil { + return *m.RarAuditRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRarAuditDrop() uint64 { + if m != nil && m.RarAuditDrop != nil { + return *m.RarAuditDrop + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRaaAuditAck() uint64 { + if m != nil && m.RaaAuditAck != nil { + return *m.RaaAuditAck + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) GetRaaAuditNak() uint64 { + if m != nil && m.RaaAuditNak != nil { + return *m.RaaAuditNak + } + return 0 +} + +type JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType struct { + CcrInitial *uint64 `protobuf:"varint,51,opt,name=ccr_initial,json=ccrInitial" json:"ccr_initial,omitempty"` + CcrInitialRetry *uint64 `protobuf:"varint,52,opt,name=ccr_initial_retry,json=ccrInitialRetry" json:"ccr_initial_retry,omitempty"` + CcrInitialAlternateRetry *uint64 `protobuf:"varint,53,opt,name=ccr_initial_alternate_retry,json=ccrInitialAlternateRetry" json:"ccr_initial_alternate_retry,omitempty"` + CcaInitial *uint64 `protobuf:"varint,54,opt,name=cca_initial,json=ccaInitial" json:"cca_initial,omitempty"` + CcaInitialAlternate *uint64 `protobuf:"varint,55,opt,name=cca_initial_alternate,json=ccaInitialAlternate" json:"cca_initial_alternate,omitempty"` + CcrUpdate *uint64 `protobuf:"varint,56,opt,name=ccr_update,json=ccrUpdate" json:"ccr_update,omitempty"` + CcrUpdateRetry *uint64 `protobuf:"varint,57,opt,name=ccr_update_retry,json=ccrUpdateRetry" json:"ccr_update_retry,omitempty"` + CcrUpdateAlternateRetry *uint64 `protobuf:"varint,58,opt,name=ccr_update_alternate_retry,json=ccrUpdateAlternateRetry" json:"ccr_update_alternate_retry,omitempty"` + CcaUpdate *uint64 `protobuf:"varint,59,opt,name=cca_update,json=ccaUpdate" json:"cca_update,omitempty"` + CcaUpdateAlternate *uint64 `protobuf:"varint,60,opt,name=cca_update_alternate,json=ccaUpdateAlternate" json:"cca_update_alternate,omitempty"` + CcrTerminate *uint64 `protobuf:"varint,61,opt,name=ccr_terminate,json=ccrTerminate" json:"ccr_terminate,omitempty"` + CcrTerminateRetry *uint64 `protobuf:"varint,62,opt,name=ccr_terminate_retry,json=ccrTerminateRetry" json:"ccr_terminate_retry,omitempty"` + CcrTerminateAlternateRetry *uint64 `protobuf:"varint,63,opt,name=ccr_terminate_alternate_retry,json=ccrTerminateAlternateRetry" json:"ccr_terminate_alternate_retry,omitempty"` + CcaTerminate *uint64 `protobuf:"varint,64,opt,name=cca_terminate,json=ccaTerminate" json:"cca_terminate,omitempty"` + CcaTerminateAlternate *uint64 `protobuf:"varint,65,opt,name=cca_terminate_alternate,json=ccaTerminateAlternate" json:"cca_terminate_alternate,omitempty"` + CcaTerminateTimeout *uint64 `protobuf:"varint,66,opt,name=cca_terminate_timeout,json=ccaTerminateTimeout" json:"cca_terminate_timeout,omitempty"` + CcaParseError *uint64 `protobuf:"varint,67,opt,name=cca_parse_error,json=ccaParseError" json:"cca_parse_error,omitempty"` + CcaDropped *uint64 `protobuf:"varint,68,opt,name=cca_dropped,json=ccaDropped" json:"cca_dropped,omitempty"` + CcaInitialBadResultCode *uint64 `protobuf:"varint,69,opt,name=cca_initial_bad_result_code,json=ccaInitialBadResultCode" json:"cca_initial_bad_result_code,omitempty"` + CcaInitialBadData *uint64 `protobuf:"varint,70,opt,name=cca_initial_bad_data,json=ccaInitialBadData" json:"cca_initial_bad_data,omitempty"` + Asr *uint64 `protobuf:"varint,71,opt,name=asr" json:"asr,omitempty"` + AsrRetry *uint64 `protobuf:"varint,72,opt,name=asr_retry,json=asrRetry" json:"asr_retry,omitempty"` + AsrParseError *uint64 `protobuf:"varint,73,opt,name=asr_parse_error,json=asrParseError" json:"asr_parse_error,omitempty"` + AsrUpdateDrop *uint64 `protobuf:"varint,74,opt,name=asr_update_drop,json=asrUpdateDrop" json:"asr_update_drop,omitempty"` + AsaAck *uint64 `protobuf:"varint,75,opt,name=asa_ack,json=asaAck" json:"asa_ack,omitempty"` + AsaNak *uint64 `protobuf:"varint,76,opt,name=asa_nak,json=asaNak" json:"asa_nak,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) Reset() { + *m = JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType{} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) ProtoMessage() { +} +func (*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) Descriptor() ([]byte, []int) { + return fileDescriptor_42f2508cdbfcd884, []int{0, 0, 0, 0, 5, 0, 2} +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType.Merge(m, src) +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) XXX_Size() int { + return m.Size() +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType proto.InternalMessageInfo + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrInitial() uint64 { + if m != nil && m.CcrInitial != nil { + return *m.CcrInitial + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrInitialRetry() uint64 { + if m != nil && m.CcrInitialRetry != nil { + return *m.CcrInitialRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrInitialAlternateRetry() uint64 { + if m != nil && m.CcrInitialAlternateRetry != nil { + return *m.CcrInitialAlternateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaInitial() uint64 { + if m != nil && m.CcaInitial != nil { + return *m.CcaInitial + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaInitialAlternate() uint64 { + if m != nil && m.CcaInitialAlternate != nil { + return *m.CcaInitialAlternate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrUpdate() uint64 { + if m != nil && m.CcrUpdate != nil { + return *m.CcrUpdate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrUpdateRetry() uint64 { + if m != nil && m.CcrUpdateRetry != nil { + return *m.CcrUpdateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrUpdateAlternateRetry() uint64 { + if m != nil && m.CcrUpdateAlternateRetry != nil { + return *m.CcrUpdateAlternateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaUpdate() uint64 { + if m != nil && m.CcaUpdate != nil { + return *m.CcaUpdate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaUpdateAlternate() uint64 { + if m != nil && m.CcaUpdateAlternate != nil { + return *m.CcaUpdateAlternate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrTerminate() uint64 { + if m != nil && m.CcrTerminate != nil { + return *m.CcrTerminate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrTerminateRetry() uint64 { + if m != nil && m.CcrTerminateRetry != nil { + return *m.CcrTerminateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcrTerminateAlternateRetry() uint64 { + if m != nil && m.CcrTerminateAlternateRetry != nil { + return *m.CcrTerminateAlternateRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaTerminate() uint64 { + if m != nil && m.CcaTerminate != nil { + return *m.CcaTerminate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaTerminateAlternate() uint64 { + if m != nil && m.CcaTerminateAlternate != nil { + return *m.CcaTerminateAlternate + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaTerminateTimeout() uint64 { + if m != nil && m.CcaTerminateTimeout != nil { + return *m.CcaTerminateTimeout + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaParseError() uint64 { + if m != nil && m.CcaParseError != nil { + return *m.CcaParseError + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaDropped() uint64 { + if m != nil && m.CcaDropped != nil { + return *m.CcaDropped + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaInitialBadResultCode() uint64 { + if m != nil && m.CcaInitialBadResultCode != nil { + return *m.CcaInitialBadResultCode + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetCcaInitialBadData() uint64 { + if m != nil && m.CcaInitialBadData != nil { + return *m.CcaInitialBadData + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetAsr() uint64 { + if m != nil && m.Asr != nil { + return *m.Asr + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetAsrRetry() uint64 { + if m != nil && m.AsrRetry != nil { + return *m.AsrRetry + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetAsrParseError() uint64 { + if m != nil && m.AsrParseError != nil { + return *m.AsrParseError + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetAsrUpdateDrop() uint64 { + if m != nil && m.AsrUpdateDrop != nil { + return *m.AsrUpdateDrop + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetAsaAck() uint64 { + if m != nil && m.AsaAck != nil { + return *m.AsaAck + } + return 0 +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) GetAsaNak() uint64 { + if m != nil && m.AsaNak != nil { + return *m.AsaNak + } + return 0 +} + +var E_JnprJunosAuthenticationExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosAuthentication)(nil), + Field: 33, + Name: "jnpr_junos_authentication_ext", + Tag: "bytes,33,opt,name=jnpr_junos_authentication_ext", + Filename: "authd_oc.proto", +} + +func init() { + proto.RegisterType((*JunosAuthentication)(nil), "junos_authentication") + proto.RegisterType((*JunosAuthenticationSystemType)(nil), "junos_authentication.system_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementType)(nil), "junos_authentication.system_type.subscriber_management_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.authentication_statistics_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.accounting_statistics_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.dynamic_request_statistics_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.radius_servers_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.radius_servers_type.radius_server_list") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.radius_servers_type.radius_server_list.statistics_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.radius_servers_type.radius_server_list.response_time_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.address_assignment_statistics_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.address_assignment_statistics_type.logical_system_routing_instances_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.address_assignment_statistics_type.logical_system_routing_instances_type.logical_system_routing_instance_list") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.address_assignment_statistics_type.logical_system_routing_instances_type.logical_system_routing_instance_list.pools_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.address_assignment_statistics_type.logical_system_routing_instances_type.logical_system_routing_instance_list.pools_type.pool_list") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.diameter_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.diameter_type.clients_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.diameter_type.clients_type.nasreq_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.diameter_type.clients_type.gx_type") + proto.RegisterType((*JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType)(nil), "junos_authentication.system_type.subscriber_management_type.aaa_type.diameter_type.clients_type.gy_type") + proto.RegisterExtension(E_JnprJunosAuthenticationExt) +} + +func init() { proto.RegisterFile("authd_oc.proto", fileDescriptor_42f2508cdbfcd884) } + +var fileDescriptor_42f2508cdbfcd884 = []byte{ + // 3322 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0x4b, 0x8c, 0x14, 0xc7, + 0x19, 0xd6, 0x00, 0xe6, 0xf1, 0xef, 0x03, 0xb6, 0x97, 0x85, 0xa1, 0x79, 0xc3, 0xf2, 0x08, 0xc6, + 0xb3, 0x18, 0xf3, 0x32, 0x60, 0xcc, 0x2c, 0x0b, 0x36, 0xd8, 0xbb, 0xe0, 0x59, 0x88, 0x1f, 0x71, + 0xdc, 0x2e, 0x7a, 0x8a, 0xd9, 0x66, 0x67, 0xba, 0x7b, 0xab, 0x6a, 0x30, 0x9b, 0x44, 0x8a, 0x62, + 0xc9, 0xf2, 0x2d, 0x87, 0x1c, 0xf2, 0x76, 0x0e, 0x51, 0x72, 0x8b, 0x4f, 0xb9, 0x26, 0x39, 0xfb, + 0x60, 0x45, 0x91, 0x22, 0x45, 0x72, 0x0e, 0x91, 0xe5, 0x63, 0x2e, 0x39, 0x44, 0xca, 0x29, 0x87, + 0xa8, 0xaa, 0xfe, 0xaa, 0xea, 0xd7, 0xee, 0xe2, 0x64, 0x41, 0xf1, 0x09, 0xb6, 0xfe, 0xef, 0xff, + 0xeb, 0x7f, 0xd5, 0x5f, 0x7f, 0xff, 0x35, 0x30, 0x4c, 0xfa, 0x62, 0xae, 0x1d, 0x24, 0x61, 0x23, + 0x65, 0x89, 0x48, 0xfc, 0x51, 0x41, 0xbb, 0xb4, 0x47, 0x05, 0x5b, 0x0c, 0x44, 0x92, 0xea, 0xc5, + 0x03, 0x9f, 0xbc, 0x03, 0x5b, 0xef, 0xf7, 0xe3, 0x84, 0x07, 0x12, 0x4d, 0x63, 0x11, 0x85, 0x44, + 0x44, 0x49, 0xec, 0x9d, 0x87, 0xf5, 0x7c, 0x91, 0x0b, 0xda, 0xab, 0xff, 0xa8, 0xb6, 0xaf, 0x76, + 0x74, 0xe0, 0xe4, 0xfe, 0x46, 0x15, 0xae, 0xa1, 0x41, 0x81, 0x58, 0x4c, 0x69, 0x0b, 0x39, 0xfc, + 0x7f, 0x7e, 0x13, 0x06, 0x32, 0xeb, 0x1e, 0x83, 0x31, 0xde, 0xbf, 0xcb, 0x43, 0x16, 0xdd, 0xa5, + 0x2c, 0xe8, 0x91, 0x98, 0x74, 0x68, 0x8f, 0xc6, 0xc2, 0x88, 0xbe, 0xb8, 0xa2, 0xe8, 0x46, 0x25, + 0xbf, 0xde, 0x75, 0xab, 0xa3, 0x4d, 0x5b, 0x92, 0xff, 0x8f, 0xb7, 0xc1, 0x5f, 0x9a, 0xc9, 0x7b, + 0x03, 0xd6, 0x12, 0x42, 0x8c, 0x02, 0x57, 0xff, 0x17, 0x05, 0x1a, 0x84, 0x10, 0xad, 0x89, 0x14, + 0xe9, 0xff, 0xeb, 0x1b, 0xb0, 0xd1, 0xac, 0x78, 0xbf, 0xac, 0xc1, 0x8e, 0xbc, 0xd0, 0x80, 0x0b, + 0x22, 0x22, 0x2e, 0xa2, 0x90, 0xd7, 0x7f, 0xac, 0x77, 0x6f, 0xaf, 0xca, 0xee, 0x8d, 0x25, 0xf7, + 0xd1, 0xca, 0xd5, 0xf3, 0xf4, 0x59, 0x4b, 0xf6, 0x7e, 0x58, 0x83, 0x31, 0x12, 0x86, 0x49, 0x3f, + 0x16, 0x51, 0xdc, 0xc9, 0x2a, 0xf8, 0x13, 0xad, 0xe0, 0xbb, 0xab, 0xa4, 0x60, 0xd5, 0x1e, 0x18, + 0x43, 0x47, 0xcb, 0x28, 0xf6, 0xab, 0x1a, 0xf8, 0xed, 0xc5, 0x98, 0xf4, 0xa2, 0x30, 0x60, 0x74, + 0xa1, 0x4f, 0xb9, 0xc8, 0x6a, 0xf7, 0x53, 0xad, 0x1d, 0x5d, 0x1d, 0xed, 0x96, 0xde, 0x08, 0xfd, + 0x87, 0x80, 0x96, 0xa6, 0x67, 0xd4, 0xfc, 0x5e, 0x0d, 0x86, 0x19, 0x69, 0x47, 0x7d, 0x1e, 0x70, + 0xca, 0x1e, 0x50, 0xc6, 0xeb, 0x3f, 0xd3, 0xaa, 0xbd, 0xb9, 0x3a, 0xaa, 0xe5, 0x85, 0x6b, 0x75, + 0x86, 0xf4, 0xe2, 0xac, 0x5e, 0xf3, 0x3e, 0xae, 0xc1, 0x6e, 0xd2, 0x6e, 0x33, 0xca, 0x79, 0x40, + 0x38, 0x8f, 0x3a, 0xb1, 0x92, 0x93, 0xf1, 0xd6, 0xcf, 0xb5, 0x4a, 0x73, 0xab, 0x14, 0xcb, 0xe5, + 0xf6, 0xd2, 0x1a, 0xee, 0x44, 0x4c, 0xd3, 0x42, 0x32, 0x3e, 0x4b, 0x61, 0x63, 0x3b, 0x22, 0x3d, + 0x2a, 0x28, 0xab, 0x7f, 0xa4, 0x35, 0x9b, 0x5d, 0xa5, 0x38, 0xa2, 0x58, 0xad, 0x84, 0xdd, 0xc5, + 0xff, 0x78, 0x3d, 0xec, 0x59, 0xfe, 0x88, 0x78, 0xfb, 0x61, 0x90, 0xd1, 0x85, 0x80, 0xd1, 0x90, + 0x46, 0x0f, 0x68, 0xbb, 0xfe, 0xdc, 0xbe, 0xda, 0xd1, 0x75, 0xad, 0x01, 0x46, 0x17, 0x5a, 0xb8, + 0x64, 0x20, 0x24, 0x0c, 0x69, 0x2a, 0x68, 0xbb, 0x7e, 0xca, 0x42, 0x9a, 0xb8, 0xe4, 0xa4, 0xdc, + 0xa7, 0xa1, 0x84, 0x9c, 0xce, 0x48, 0xd1, 0x4b, 0xde, 0x41, 0x18, 0x92, 0x90, 0x70, 0x8e, 0x74, + 0xbb, 0x34, 0xee, 0xd0, 0xfa, 0x19, 0x85, 0x91, 0x7c, 0x57, 0xcc, 0x9a, 0xb7, 0x17, 0x24, 0x4f, + 0x20, 0xa2, 0x1e, 0x4d, 0xfa, 0xa2, 0x7e, 0x56, 0x41, 0x80, 0xd1, 0x85, 0xdb, 0x7a, 0xc5, 0x3b, + 0x0d, 0xdb, 0x53, 0x46, 0xd1, 0x5f, 0x41, 0x4e, 0xf3, 0x73, 0x0a, 0xbc, 0x35, 0x65, 0xb4, 0xa9, + 0xa8, 0xad, 0x8c, 0x09, 0x65, 0x36, 0x6b, 0xcd, 0xf3, 0x65, 0x36, 0x6b, 0x56, 0xd5, 0x6e, 0x68, + 0xe1, 0xf9, 0xaa, 0xdd, 0xd0, 0xd4, 0xb3, 0x50, 0x2f, 0xb0, 0x39, 0xab, 0x2f, 0x28, 0xbe, 0xb1, + 0x2c, 0x9f, 0x33, 0xff, 0x39, 0xd8, 0x56, 0x60, 0x34, 0x9e, 0xb8, 0xa8, 0xd8, 0x46, 0xb3, 0x6c, + 0xc6, 0x25, 0xcf, 0xc1, 0xb6, 0x25, 0x3c, 0xf2, 0x82, 0x66, 0xaa, 0x72, 0x48, 0x89, 0xc9, 0xfa, + 0xe3, 0x52, 0x89, 0xc9, 0xba, 0xa3, 0x62, 0x27, 0xf4, 0xc6, 0x8b, 0x15, 0x3b, 0xa1, 0x33, 0x2e, + 0xc3, 0xee, 0x3c, 0x53, 0x14, 0x0b, 0xca, 0x62, 0xd2, 0x0d, 0x28, 0x63, 0x09, 0xe3, 0xf5, 0xcb, + 0x8a, 0x77, 0x47, 0x86, 0xf7, 0x3a, 0x22, 0xae, 0x2a, 0x80, 0x8c, 0xc2, 0x52, 0xde, 0x6c, 0xea, + 0x28, 0x54, 0x3a, 0xf3, 0x59, 0x18, 0xab, 0xf6, 0xe5, 0xa4, 0x62, 0xf2, 0xca, 0xae, 0xf4, 0x3f, + 0x5f, 0x0b, 0xfe, 0xd2, 0x15, 0xdb, 0x3b, 0x06, 0x23, 0x24, 0x0c, 0x45, 0x50, 0x71, 0x60, 0x36, + 0x4b, 0x42, 0xd6, 0xc1, 0x47, 0x61, 0x8b, 0xc5, 0x9a, 0x8d, 0xf5, 0xc1, 0x19, 0x46, 0xa8, 0x89, + 0x9f, 0x93, 0xca, 0xd3, 0xe0, 0x1e, 0x89, 0xba, 0x7d, 0x46, 0xf1, 0x00, 0xa1, 0x54, 0x9e, 0x5e, + 0xd3, 0xcb, 0x79, 0x2c, 0xef, 0x87, 0x21, 0xe5, 0x1c, 0x0f, 0x92, 0xc5, 0xce, 0xea, 0x65, 0x6f, + 0x1c, 0x86, 0xad, 0x06, 0x5c, 0x10, 0x66, 0x8e, 0xd3, 0x20, 0xee, 0x3f, 0x2b, 0xd7, 0x72, 0x7a, + 0xaa, 0xc8, 0x44, 0x3d, 0x3c, 0x49, 0x46, 0xcf, 0xeb, 0x7a, 0xd5, 0x3b, 0x00, 0x43, 0x19, 0x79, + 0x49, 0x8a, 0x27, 0x67, 0xc0, 0x8a, 0x4b, 0x52, 0xef, 0x30, 0x6c, 0x76, 0xfa, 0x89, 0x44, 0x90, + 0x2e, 0x1e, 0x94, 0x21, 0xa3, 0xdd, 0x6d, 0xb9, 0x98, 0xc7, 0x69, 0xe5, 0x2e, 0xe4, 0x71, 0x5a, + 0xbb, 0x9c, 0xbd, 0x46, 0xbd, 0x8b, 0x79, 0x7b, 0x8d, 0x7e, 0xce, 0x5e, 0x25, 0x33, 0x49, 0x31, + 0xff, 0x07, 0x9d, 0xc8, 0x24, 0xf5, 0xff, 0x5e, 0x83, 0xbd, 0x2b, 0x5c, 0x7b, 0xde, 0x09, 0xd8, + 0x9a, 0x81, 0x14, 0x43, 0xed, 0xb9, 0x4b, 0xd1, 0x46, 0xbb, 0x01, 0xa3, 0x59, 0x0e, 0x13, 0x19, + 0x1d, 0xf0, 0x11, 0xc7, 0x60, 0x62, 0x73, 0x0c, 0x46, 0xb2, 0x78, 0x75, 0x12, 0x4c, 0xcc, 0x1d, + 0x5a, 0xe5, 0xbf, 0xf7, 0x3c, 0xec, 0xc8, 0xc9, 0x8e, 0xba, 0x34, 0x16, 0xdd, 0xc5, 0xa0, 0xcd, + 0x92, 0x14, 0x63, 0xbf, 0x2d, 0xb3, 0x03, 0x92, 0xa7, 0x58, 0x92, 0xfa, 0x1f, 0xd6, 0x61, 0xb4, + 0xe2, 0x22, 0xf5, 0x7e, 0x50, 0x83, 0xa1, 0xdc, 0xba, 0x6c, 0x0a, 0xd7, 0x1e, 0x1d, 0x38, 0xd9, + 0x7d, 0x6c, 0x97, 0x77, 0x7e, 0x2d, 0xe8, 0x46, 0x5c, 0xb4, 0x06, 0xb3, 0xf7, 0xb9, 0xff, 0xd7, + 0x6d, 0xe0, 0x95, 0x41, 0xde, 0x71, 0x18, 0xc6, 0x3f, 0xf1, 0x6e, 0x55, 0x5e, 0xdd, 0x34, 0xf9, + 0xd4, 0xfb, 0x97, 0xd7, 0x6c, 0xac, 0xb5, 0x86, 0x34, 0xb1, 0xa9, 0x69, 0xde, 0x47, 0x35, 0x80, + 0x4c, 0x03, 0x80, 0xbd, 0xee, 0x77, 0x9e, 0xa4, 0x59, 0x8d, 0x62, 0x53, 0x90, 0x51, 0xc8, 0xfb, + 0xb5, 0xf4, 0x3c, 0xe5, 0x69, 0x12, 0x73, 0xaa, 0xea, 0x82, 0x69, 0x88, 0xbf, 0xfb, 0x44, 0x55, + 0xcc, 0xa9, 0xa0, 0xb5, 0x1c, 0x34, 0x6b, 0xb2, 0x2e, 0xf9, 0xbf, 0xd8, 0x02, 0x9b, 0x8b, 0xc7, + 0xe2, 0x30, 0x6c, 0x36, 0x32, 0x08, 0x17, 0x01, 0x13, 0x02, 0x4f, 0x04, 0xc6, 0xe0, 0x55, 0xc2, + 0x45, 0x4b, 0x08, 0x79, 0x7c, 0xa4, 0x15, 0xea, 0x4a, 0xe1, 0xdc, 0x9c, 0x32, 0x73, 0x1a, 0x3c, + 0x49, 0x6b, 0x2a, 0x12, 0xb6, 0x95, 0xdc, 0x3b, 0x05, 0xdb, 0x14, 0x07, 0x4b, 0xba, 0xdd, 0x44, + 0x6e, 0x60, 0x79, 0xf4, 0x99, 0x50, 0xf2, 0x5a, 0x48, 0xb4, 0x5c, 0xcf, 0xe2, 0x3e, 0x8c, 0x0a, + 0x46, 0x62, 0xde, 0x8b, 0x38, 0x8f, 0x92, 0xd8, 0xd4, 0xc3, 0x51, 0xc5, 0x93, 0x27, 0xc9, 0x73, + 0x9a, 0x55, 0x4d, 0x5f, 0x7a, 0x1c, 0x0b, 0xe3, 0x88, 0xd3, 0x4c, 0x5f, 0x79, 0x25, 0xbc, 0xbe, + 0xef, 0x38, 0x16, 0xc8, 0x91, 0xac, 0x25, 0x8a, 0x60, 0x0d, 0x41, 0xbc, 0xbd, 0xa8, 0xb8, 0x69, + 0x33, 0x1c, 0x8b, 0xbd, 0xa8, 0xb8, 0x77, 0x0e, 0xd4, 0x87, 0x4a, 0xd0, 0x23, 0xdd, 0x7b, 0x09, + 0xeb, 0xd1, 0x76, 0x60, 0x62, 0xc1, 0xb1, 0x7c, 0x2a, 0xa9, 0xd3, 0x86, 0xdc, 0x32, 0x54, 0xef, + 0x0c, 0x6c, 0x57, 0x9c, 0x77, 0x49, 0x3b, 0x9b, 0x39, 0xf2, 0x5a, 0xc5, 0x46, 0x43, 0xae, 0x4e, + 0x92, 0x76, 0x33, 0x47, 0x54, 0x55, 0x5f, 0xbb, 0x6e, 0x21, 0x48, 0x69, 0xdc, 0x8e, 0xe2, 0x0e, + 0x96, 0xd5, 0x61, 0xed, 0xb6, 0x85, 0x5b, 0x7a, 0xd5, 0x3b, 0x09, 0x63, 0x06, 0xa9, 0x6a, 0x25, + 0xde, 0x65, 0xdc, 0x34, 0x17, 0x08, 0x97, 0x34, 0xbc, 0xd0, 0x9c, 0x17, 0xfa, 0xf1, 0x7c, 0x9c, + 0xbc, 0x17, 0x67, 0xac, 0xb9, 0xe4, 0xbc, 0x70, 0x47, 0x13, 0x9d, 0x2d, 0x26, 0x6d, 0x52, 0x12, + 0xce, 0x53, 0xc1, 0x55, 0x7d, 0x4b, 0x6d, 0x6f, 0xa1, 0xd2, 0xe6, 0x96, 0x26, 0x4d, 0x69, 0x8a, + 0xb4, 0x3e, 0x65, 0xb4, 0x32, 0xd7, 0x2e, 0xdb, 0x36, 0xab, 0x22, 0xdd, 0xce, 0xc3, 0x0e, 0xc3, + 0x57, 0xce, 0x38, 0xdd, 0x52, 0x18, 0xc1, 0xa5, 0xa4, 0x3b, 0xeb, 0xf6, 0x2c, 0xe6, 0x9d, 0xee, + 0x2b, 0xb6, 0x19, 0xce, 0x42, 0xea, 0x9d, 0x82, 0x6d, 0x05, 0x65, 0x4d, 0xf6, 0x5d, 0xb1, 0xad, + 0x64, 0x39, 0x01, 0xcb, 0x5c, 0x26, 0x07, 0xa7, 0x2a, 0xb8, 0x4c, 0x1a, 0x66, 0x0c, 0x2c, 0x67, + 0xe2, 0xd5, 0x9c, 0x81, 0xa5, 0x64, 0xbc, 0x04, 0x3b, 0x0d, 0x6f, 0x55, 0x3e, 0x5e, 0xd3, 0xdd, + 0x1a, 0x42, 0x2a, 0x52, 0xf2, 0x22, 0xf8, 0x86, 0xbf, 0x22, 0x2b, 0x5f, 0x52, 0xec, 0x75, 0x44, + 0x94, 0x13, 0xb3, 0x01, 0xa3, 0xce, 0xbd, 0x2e, 0x37, 0x5f, 0xd6, 0x07, 0xce, 0xba, 0xd6, 0xa6, + 0xe7, 0x39, 0xa8, 0x67, 0xf0, 0xf9, 0x0c, 0xbd, 0x5e, 0x88, 0x47, 0x3e, 0x49, 0x33, 0x3e, 0x2a, + 0xe7, 0xe9, 0x8d, 0x9c, 0x8f, 0x4a, 0xa9, 0x9a, 0x49, 0xbc, 0x62, 0xb6, 0xbe, 0x92, 0x4b, 0xbc, + 0x42, 0xc2, 0xca, 0x72, 0x22, 0x5b, 0x14, 0xd5, 0xf1, 0xb8, 0x94, 0x7b, 0x15, 0xcb, 0x49, 0x18, + 0x0a, 0xd5, 0xf6, 0xd8, 0x64, 0x3b, 0xa9, 0x86, 0x14, 0xc2, 0x74, 0x3e, 0x8e, 0x63, 0x1a, 0x0f, + 0x5f, 0x18, 0x0a, 0x6c, 0x7f, 0x2c, 0xcf, 0x71, 0xf0, 0x70, 0x8f, 0x24, 0x75, 0x0c, 0x33, 0x8a, + 0x61, 0x8b, 0xde, 0x22, 0x49, 0x73, 0x95, 0x57, 0x35, 0x4d, 0xa5, 0x73, 0x70, 0x13, 0x8f, 0xaa, + 0x6c, 0x9e, 0xaa, 0x2a, 0xaf, 0x6e, 0xb5, 0xf2, 0x27, 0xe0, 0x96, 0x53, 0xab, 0x98, 0xfe, 0x27, + 0x90, 0xc5, 0x98, 0x6e, 0x3c, 0xfd, 0x1a, 0x9e, 0x6e, 0x67, 0xbb, 0x71, 0xb2, 0x51, 0xcd, 0x19, + 0x6f, 0x78, 0x5a, 0x4e, 0x35, 0x6b, 0xbd, 0xe1, 0x72, 0x2e, 0x56, 0xe6, 0x1b, 0x96, 0xd9, 0xac, + 0x8b, 0xa5, 0xfd, 0x06, 0x2f, 0x6b, 0xaf, 0xc4, 0x57, 0xe5, 0xfa, 0x6d, 0xac, 0xbd, 0x61, 0x28, + 0x96, 0xa8, 0xbd, 0x92, 0xb3, 0x22, 0xcb, 0xef, 0x60, 0xed, 0x0d, 0x43, 0x51, 0x5d, 0x7b, 0x4d, + 0x1f, 0x6d, 0xf2, 0xfb, 0xeb, 0xb9, 0x8e, 0x3b, 0x5b, 0x7b, 0x11, 0x99, 0xcf, 0xec, 0xd7, 0xb3, + 0x7e, 0x2e, 0xd7, 0x5e, 0xc9, 0x53, 0xce, 0xe9, 0x37, 0x9c, 0xd7, 0x2a, 0x6b, 0xaf, 0xe4, 0x2a, + 0x66, 0xf3, 0x9b, 0x2e, 0x3a, 0xf9, 0x54, 0xf6, 0x7f, 0xb3, 0x16, 0xbc, 0x72, 0x17, 0xe1, 0x5d, + 0x83, 0x7d, 0x49, 0x4c, 0x83, 0x5e, 0x14, 0xf7, 0x85, 0xfa, 0x27, 0xea, 0xf5, 0x5d, 0xe8, 0x74, + 0xc7, 0xa3, 0x9b, 0x86, 0x5d, 0x49, 0x4c, 0xa7, 0x15, 0x6c, 0x5a, 0xa3, 0x5a, 0x99, 0xfe, 0xa3, + 0x20, 0x87, 0x3c, 0xa0, 0x8c, 0x74, 0x68, 0x41, 0xce, 0xa9, 0x82, 0x9c, 0xa6, 0x46, 0x2d, 0x23, + 0xa7, 0x47, 0x1e, 0x56, 0xe8, 0x73, 0xba, 0xa8, 0x8f, 0x46, 0xe5, 0xe4, 0x9c, 0x85, 0x7a, 0x56, + 0x0e, 0xe5, 0x9c, 0x74, 0xa8, 0xec, 0xa9, 0x62, 0x81, 0xfd, 0xc6, 0x98, 0xe3, 0x47, 0xea, 0x2c, + 0x8d, 0x85, 0xf7, 0x22, 0xec, 0xaa, 0x62, 0xb4, 0xdf, 0x14, 0xba, 0xf5, 0xd8, 0x51, 0x62, 0xb6, + 0x9f, 0x16, 0x53, 0xb0, 0xb7, 0x4a, 0x40, 0x9c, 0x58, 0x2b, 0xb0, 0x1d, 0xd9, 0x59, 0x92, 0x31, + 0x93, 0x18, 0x1b, 0xfc, 0x0f, 0x06, 0xe0, 0xc0, 0xca, 0xf3, 0x2b, 0xef, 0xb3, 0x1a, 0xec, 0xeb, + 0x26, 0x9d, 0x28, 0x24, 0xdd, 0x00, 0x5b, 0x4f, 0x96, 0xf4, 0xd5, 0xc7, 0x70, 0x14, 0x73, 0x41, + 0xe2, 0x90, 0xda, 0xa6, 0xfa, 0xfb, 0xb5, 0x27, 0x35, 0x56, 0x6b, 0xac, 0xa4, 0x92, 0xee, 0x60, + 0x77, 0x23, 0x6c, 0x56, 0xa1, 0x5a, 0x1a, 0x74, 0xdd, 0x60, 0xfc, 0xf7, 0x37, 0xc1, 0xa1, 0x47, + 0x12, 0xe4, 0xfd, 0xbb, 0x06, 0x7b, 0x57, 0x40, 0x9a, 0x0f, 0xa6, 0xdf, 0xfe, 0x9f, 0x39, 0x61, + 0x25, 0x94, 0xfe, 0xf0, 0xda, 0xb5, 0x9c, 0xa7, 0xfc, 0xcf, 0xd6, 0xc3, 0xf8, 0xa3, 0x88, 0xf1, + 0x76, 0xc0, 0xba, 0x98, 0xe0, 0x81, 0xb6, 0x1f, 0x64, 0x6a, 0xc9, 0xfb, 0x4b, 0x0d, 0x9e, 0x4a, + 0x93, 0xa4, 0x6b, 0xb3, 0xe5, 0x0f, 0x5f, 0x45, 0x47, 0x35, 0x94, 0x09, 0x3a, 0xbb, 0xb4, 0x39, + 0xfe, 0xef, 0xd6, 0x01, 0xb8, 0x55, 0xef, 0x6f, 0x35, 0x58, 0x27, 0xff, 0x34, 0xf9, 0xf0, 0xc9, + 0x57, 0xdc, 0x4c, 0xf5, 0x5f, 0x9d, 0x24, 0xca, 0x2e, 0xff, 0xd3, 0x35, 0xb0, 0xc9, 0xae, 0x79, + 0x07, 0xf0, 0x8f, 0x72, 0xd8, 0x37, 0xca, 0xf5, 0x19, 0x19, 0xfa, 0x03, 0x30, 0x94, 0xf4, 0x45, + 0x90, 0xdc, 0x0b, 0x7a, 0xb4, 0x97, 0xb0, 0x45, 0x33, 0x2f, 0x4e, 0xfa, 0xe2, 0xe6, 0xbd, 0x69, + 0xb5, 0xe4, 0x8d, 0xc3, 0x30, 0x62, 0xcc, 0x47, 0xbd, 0x2e, 0xc2, 0x83, 0x0a, 0x64, 0x3e, 0xe6, + 0x0f, 0xc2, 0x90, 0xf1, 0x83, 0x9e, 0x25, 0xe1, 0xc8, 0x18, 0x17, 0xf5, 0x28, 0x69, 0x1c, 0x86, + 0x0d, 0x28, 0x8a, 0x83, 0x3e, 0xa7, 0x76, 0xcc, 0xa5, 0x57, 0xaf, 0xc7, 0x77, 0x38, 0x55, 0x57, + 0x29, 0xa2, 0xfa, 0xb2, 0x36, 0x06, 0x29, 0x65, 0xa1, 0x2c, 0xde, 0xe7, 0xf0, 0x2a, 0xd5, 0xc4, + 0x3b, 0x92, 0x76, 0x4b, 0x93, 0xe4, 0x45, 0xdd, 0x8d, 0xe2, 0x79, 0xda, 0x0e, 0x9c, 0xcd, 0xf2, + 0x33, 0x6e, 0x53, 0x6b, 0x58, 0xaf, 0xdf, 0x32, 0x26, 0x17, 0x90, 0x73, 0x94, 0xe8, 0x01, 0x71, + 0x0e, 0xf9, 0x32, 0x25, 0x6d, 0xff, 0xd3, 0x43, 0x30, 0x94, 0x9b, 0xd6, 0x7b, 0xdf, 0x86, 0x0d, + 0x61, 0x37, 0xa2, 0xb1, 0xb0, 0x47, 0xe5, 0xdd, 0xc7, 0xf0, 0x28, 0xd0, 0xc0, 0x3d, 0x74, 0x2e, + 0x9b, 0x1d, 0xfd, 0xdf, 0x8f, 0xc3, 0x60, 0x96, 0xe2, 0x7d, 0x50, 0x83, 0xf5, 0x31, 0xe1, 0x8c, + 0x2e, 0x18, 0x6d, 0xba, 0x8f, 0x5b, 0x9b, 0x86, 0xde, 0x0f, 0x9f, 0x53, 0xf5, 0x1f, 0xde, 0x22, + 0xac, 0xe9, 0x3c, 0x34, 0xb3, 0x91, 0xb9, 0xc7, 0xae, 0x42, 0xe7, 0xa1, 0xde, 0x7e, 0x4d, 0xe7, + 0xa1, 0xda, 0x7a, 0xd1, 0x3c, 0x03, 0x3e, 0x81, 0xad, 0x17, 0xcd, 0xd6, 0x8b, 0xfe, 0x87, 0xc3, + 0x30, 0x90, 0xf1, 0x86, 0x77, 0x13, 0xc6, 0x0b, 0xcf, 0x37, 0xa6, 0x15, 0xcc, 0x77, 0x20, 0xba, + 0xa3, 0xda, 0x9f, 0xc7, 0x62, 0x67, 0x98, 0xeb, 0x46, 0xee, 0xc0, 0x91, 0xe5, 0x05, 0x9a, 0x01, + 0xb4, 0x99, 0xd6, 0x8c, 0x2f, 0x27, 0x13, 0xa7, 0xd2, 0xdc, 0x7b, 0x1d, 0x8e, 0xae, 0xa4, 0xa7, + 0xed, 0x5d, 0xf5, 0x41, 0x3f, 0xb4, 0xac, 0xae, 0xb6, 0x9b, 0x9d, 0x2a, 0xbd, 0x5f, 0xb5, 0x69, + 0x1c, 0x51, 0xee, 0xd4, 0xd4, 0x25, 0x61, 0x57, 0x1e, 0x35, 0xa5, 0x40, 0x56, 0xbd, 0xb2, 0x94, + 0x0e, 0x23, 0x32, 0x00, 0x85, 0x2e, 0xac, 0x20, 0xe5, 0x25, 0x05, 0xb2, 0x8d, 0xd8, 0x34, 0x1c, + 0x94, 0xf4, 0x84, 0x45, 0xdf, 0x5a, 0x2e, 0x16, 0xba, 0xa0, 0xec, 0xcb, 0x41, 0xab, 0x42, 0x31, + 0x0b, 0x87, 0x97, 0x15, 0xe7, 0x4c, 0xd4, 0xa3, 0xa3, 0x83, 0xcb, 0x48, 0xb4, 0x96, 0x62, 0x7c, + 0x97, 0xd1, 0xd1, 0xc6, 0xe1, 0xbc, 0x8b, 0xef, 0x52, 0x7a, 0xda, 0x30, 0x4c, 0xc2, 0xee, 0xbc, + 0xd8, 0x62, 0x14, 0xf4, 0xb0, 0x69, 0x67, 0x0e, 0x54, 0x08, 0x42, 0x49, 0x46, 0x31, 0x06, 0x17, + 0x2b, 0x64, 0x14, 0x42, 0x70, 0x1b, 0x8e, 0x70, 0xaa, 0x3e, 0x28, 0x03, 0x41, 0x59, 0x2f, 0x8a, + 0x89, 0xa0, 0x4b, 0x84, 0x41, 0x8f, 0xa7, 0x0e, 0x22, 0xfc, 0xb6, 0x41, 0x57, 0x45, 0xe2, 0x2d, + 0x38, 0xb6, 0xa2, 0x54, 0x67, 0xaa, 0x1e, 0x61, 0x1d, 0x5e, 0x5e, 0xb0, 0xb5, 0xfa, 0x6d, 0x78, + 0xfa, 0x11, 0x34, 0xb6, 0x41, 0xd1, 0xb3, 0xae, 0x23, 0x2b, 0x68, 0x6d, 0xe3, 0xf2, 0x0e, 0x1c, + 0xaf, 0x92, 0x8e, 0x1f, 0x37, 0x56, 0xbc, 0xd5, 0x5d, 0x4f, 0xc5, 0x8e, 0x96, 0xc5, 0x6b, 0x0e, + 0x23, 0xdf, 0x6a, 0xff, 0x88, 0xf2, 0x6d, 0x08, 0x9b, 0x8f, 0x26, 0xdf, 0xc6, 0xf3, 0x2a, 0xec, + 0x25, 0x77, 0x13, 0x26, 0x02, 0xb3, 0x8b, 0x99, 0x3e, 0x38, 0x91, 0x93, 0x78, 0x32, 0x25, 0x6c, + 0x56, 0xa3, 0xcc, 0x18, 0xc2, 0x8a, 0xb9, 0x03, 0x47, 0x8b, 0x62, 0x50, 0x45, 0x12, 0xce, 0x17, + 0xf2, 0xe2, 0x0a, 0x1e, 0xa6, 0x9c, 0x3c, 0x8d, 0x6e, 0x86, 0xf3, 0xb9, 0xbc, 0x78, 0x1d, 0xbe, + 0xb6, 0x84, 0xd8, 0xb8, 0x2c, 0x77, 0x0a, 0x8f, 0x53, 0x85, 0xdc, 0x19, 0x52, 0x10, 0x7c, 0x1b, + 0x8e, 0x2c, 0x21, 0xb8, 0x94, 0x6d, 0x57, 0x97, 0x56, 0xb7, 0x98, 0x6a, 0x67, 0xa1, 0x8e, 0x23, + 0x17, 0x11, 0x2c, 0xf4, 0x69, 0x1f, 0x3f, 0xcb, 0x55, 0x5e, 0xe9, 0xa9, 0xdd, 0x98, 0xa1, 0xbf, + 0x26, 0xc9, 0x32, 0x8b, 0x6e, 0xf6, 0xf5, 0x94, 0xc9, 0x2a, 0x90, 0x12, 0xc6, 0xa9, 0x79, 0x99, + 0x7d, 0xc9, 0xbc, 0xea, 0x6a, 0xe2, 0x2d, 0x49, 0xc3, 0x37, 0xd9, 0xa7, 0x61, 0xc4, 0x4e, 0x16, + 0xec, 0xb4, 0x40, 0x4f, 0xe9, 0xb6, 0x58, 0x82, 0x19, 0x7b, 0x3d, 0x0b, 0x5b, 0xa5, 0x16, 0x82, + 0xa8, 0xb1, 0x86, 0x1b, 0x31, 0xe9, 0x01, 0xdd, 0x68, 0x86, 0x66, 0x42, 0xeb, 0xff, 0x11, 0x60, + 0x03, 0x5e, 0xca, 0xde, 0x5e, 0x18, 0x08, 0x43, 0x16, 0x44, 0x71, 0x24, 0x22, 0xd2, 0xc5, 0xcb, + 0x0e, 0xc2, 0x90, 0x5d, 0xd7, 0x2b, 0xde, 0x31, 0x18, 0xc9, 0x00, 0xd4, 0x54, 0xca, 0x74, 0x9d, + 0x9b, 0x1d, 0xac, 0x25, 0x97, 0xb5, 0x30, 0x62, 0x85, 0x9d, 0x36, 0xc2, 0x48, 0x4e, 0x98, 0x05, + 0xe8, 0x2a, 0x65, 0x9e, 0x58, 0x1d, 0x4c, 0x15, 0x26, 0xd9, 0xf7, 0x65, 0xb1, 0x6d, 0x1a, 0x2f, + 0xe2, 0x55, 0x32, 0xec, 0xa0, 0x53, 0x34, 0x5e, 0xf4, 0x1a, 0x30, 0x9a, 0x45, 0x9a, 0x67, 0x5e, + 0x7c, 0x48, 0x70, 0x60, 0xf3, 0xd0, 0xbb, 0x1b, 0xa4, 0x81, 0x41, 0x3f, 0x6d, 0x13, 0x41, 0xf1, + 0x06, 0xd8, 0x14, 0x86, 0xec, 0x8e, 0x5a, 0xd0, 0x1b, 0x1b, 0x32, 0x1a, 0x7c, 0xde, 0x6c, 0x8c, + 0x20, 0x6d, 0xaf, 0x12, 0x44, 0x8c, 0xa0, 0x0b, 0x46, 0x10, 0x41, 0x41, 0xc7, 0xc1, 0x73, 0xe4, + 0xc2, 0xaf, 0x0d, 0xb6, 0x58, 0x98, 0x79, 0xaa, 0x3e, 0x08, 0x43, 0x72, 0x5b, 0x5b, 0x0b, 0xcc, + 0x0b, 0x6b, 0x18, 0x32, 0x7b, 0xd8, 0xb5, 0xa9, 0x2c, 0x57, 0x30, 0xa4, 0x7a, 0x97, 0x8c, 0xa9, + 0x2c, 0x53, 0x17, 0xa4, 0x86, 0x4a, 0x28, 0xc9, 0x08, 0x7d, 0xd1, 0x08, 0x25, 0x4e, 0xe8, 0x49, + 0x18, 0xcb, 0x81, 0xac, 0xaa, 0xba, 0xa4, 0x8d, 0x66, 0xc1, 0x46, 0xdb, 0xc3, 0x20, 0x03, 0x96, + 0x4d, 0x69, 0x2c, 0x50, 0x72, 0x3f, 0x97, 0xcc, 0x26, 0x25, 0x4c, 0x16, 0x4f, 0xda, 0x94, 0x30, + 0xf9, 0x7b, 0x11, 0x76, 0x66, 0x83, 0x77, 0x97, 0xa8, 0x21, 0x61, 0xbf, 0x2b, 0x82, 0x30, 0x69, + 0x53, 0x2c, 0x29, 0xdb, 0x5d, 0x10, 0x27, 0x49, 0xbb, 0xa5, 0xe8, 0x57, 0x92, 0x36, 0xf5, 0x26, + 0x60, 0x6b, 0x91, 0xbb, 0x4d, 0x04, 0xc1, 0x8a, 0x31, 0x92, 0x63, 0x9b, 0x22, 0x82, 0xc8, 0x90, + 0x31, 0x62, 0x63, 0xaf, 0x2b, 0xc0, 0x26, 0x46, 0x32, 0xb1, 0x77, 0x64, 0x74, 0xae, 0x3e, 0xdf, + 0xc3, 0x16, 0xa4, 0x3d, 0x7b, 0x18, 0x36, 0x67, 0x90, 0xea, 0xbd, 0x58, 0x1f, 0xe9, 0x21, 0x0b, + 0x94, 0x26, 0xca, 0x4f, 0x28, 0x46, 0x6c, 0x12, 0x90, 0x70, 0x1e, 0x4f, 0xf2, 0x20, 0x23, 0x98, + 0x00, 0xcd, 0x70, 0xbe, 0x80, 0x8a, 0xc9, 0x3c, 0x9e, 0x5f, 0x87, 0x9a, 0x21, 0xf3, 0xde, 0x21, + 0x89, 0x62, 0x41, 0x3b, 0xe2, 0x61, 0x12, 0xc7, 0x34, 0x14, 0x38, 0x4b, 0x97, 0x5b, 0x4e, 0xd9, + 0x45, 0xef, 0x04, 0x6c, 0xcd, 0xc3, 0xd0, 0x90, 0x57, 0xf0, 0xb7, 0x19, 0x59, 0xb0, 0x36, 0xa6, + 0x01, 0xa3, 0x05, 0x0e, 0x65, 0x10, 0xce, 0xce, 0x73, 0x0c, 0xca, 0xa8, 0xe3, 0xe0, 0x49, 0x75, + 0x33, 0x78, 0x69, 0xd8, 0x34, 0x96, 0x28, 0x42, 0x1c, 0x5c, 0x1a, 0x57, 0x46, 0x4b, 0x03, 0x67, + 0x2a, 0xd0, 0xd2, 0xc8, 0x9d, 0x20, 0xe3, 0x11, 0x90, 0x7e, 0x3b, 0x12, 0x38, 0x28, 0xdf, 0xc8, + 0x08, 0x6b, 0xca, 0xbf, 0x8d, 0xd7, 0x15, 0x11, 0xad, 0xba, 0x65, 0x5d, 0xa0, 0x20, 0xda, 0xa0, + 0x71, 0xed, 0x29, 0x8d, 0x53, 0xb6, 0xbc, 0x66, 0xfc, 0xa9, 0x61, 0xca, 0x8c, 0x03, 0x30, 0x24, + 0x15, 0xd3, 0x28, 0x69, 0x41, 0x0b, 0x7f, 0x5a, 0x45, 0x88, 0x02, 0x49, 0xe5, 0x73, 0x18, 0xa9, + 0xf7, 0x6c, 0x1e, 0x33, 0x43, 0xe6, 0xfd, 0x3f, 0x6f, 0x84, 0x0d, 0xf8, 0xa9, 0xb1, 0xba, 0x05, + 0xf5, 0x05, 0x79, 0x38, 0x1c, 0x96, 0x74, 0xd5, 0x6f, 0x77, 0x6c, 0x66, 0xea, 0x02, 0x5b, 0x77, + 0x5c, 0x4d, 0x03, 0xa8, 0xac, 0xc7, 0x67, 0x4a, 0xf5, 0x18, 0x4f, 0x7e, 0x49, 0x3e, 0x16, 0xda, + 0x51, 0x07, 0xb5, 0x92, 0x0b, 0xd5, 0xf3, 0xdc, 0xa3, 0x54, 0xcf, 0xe7, 0x2b, 0xab, 0xe7, 0x05, + 0xf0, 0x33, 0xc8, 0xa2, 0x6d, 0xe7, 0xcd, 0xc1, 0x47, 0x9e, 0x82, 0x69, 0x2b, 0x94, 0xde, 0x13, + 0xba, 0x2e, 0x14, 0x65, 0x63, 0xf1, 0xf5, 0x2c, 0xd0, 0x99, 0xf5, 0x58, 0xca, 0x6f, 0x13, 0x76, + 0xe7, 0xf1, 0x45, 0x2b, 0x75, 0x39, 0xf6, 0xb3, 0x9c, 0x05, 0x43, 0x4b, 0x15, 0xfc, 0x72, 0x45, + 0x05, 0x3f, 0x03, 0xdb, 0xf3, 0x15, 0xdc, 0x59, 0xac, 0xab, 0xf2, 0x58, 0x16, 0xee, 0x8c, 0x5e, + 0xb2, 0xf2, 0x4f, 0x7e, 0xa9, 0xca, 0x7f, 0xe5, 0x11, 0x2a, 0xff, 0xd4, 0x97, 0xad, 0xfc, 0x57, + 0xff, 0xbb, 0xca, 0x7f, 0x6d, 0xa9, 0xca, 0xbf, 0x05, 0xd6, 0x12, 0xce, 0xb0, 0x48, 0xcb, 0xff, + 0xca, 0x4a, 0x43, 0x38, 0xc3, 0x48, 0xe8, 0xaa, 0xbc, 0x91, 0x70, 0x66, 0xeb, 0xbb, 0x24, 0x66, + 0xcd, 0xbc, 0x8e, 0xbf, 0xa2, 0xe2, 0x2c, 0x63, 0x26, 0xe2, 0xb2, 0xf7, 0xc0, 0x0d, 0x8b, 0xcb, + 0xdc, 0x03, 0xdb, 0x61, 0x03, 0xe1, 0x44, 0x55, 0x19, 0x5d, 0x87, 0xd7, 0x13, 0x4e, 0x64, 0x81, + 0x41, 0x82, 0x2c, 0x2d, 0xaf, 0x5a, 0xc2, 0x0c, 0x99, 0x3f, 0xbf, 0x00, 0xbb, 0xef, 0xc7, 0x29, + 0x0b, 0xaa, 0x86, 0x24, 0x01, 0x7d, 0x28, 0xbc, 0xed, 0x8d, 0x1b, 0xfd, 0x38, 0x4a, 0x29, 0x9b, + 0xa1, 0xe2, 0xbd, 0x84, 0xcd, 0xcb, 0x06, 0x98, 0xcb, 0xde, 0x72, 0xbf, 0x1a, 0xaf, 0x8c, 0x55, + 0x8e, 0x57, 0x5a, 0xbe, 0x14, 0x7a, 0x43, 0x52, 0x9a, 0x39, 0xc2, 0xd5, 0x87, 0x62, 0xf2, 0xdd, + 0x4f, 0xbe, 0xd8, 0x53, 0xfb, 0xd3, 0x17, 0x7b, 0x6a, 0x9f, 0x7f, 0xb1, 0xa7, 0xf6, 0x56, 0xab, + 0x13, 0x09, 0x29, 0x43, 0x6e, 0xd1, 0x88, 0xa9, 0x98, 0x88, 0x42, 0x7a, 0x97, 0xb2, 0xce, 0xc4, + 0x1c, 0x25, 0x5d, 0x31, 0x77, 0x37, 0x11, 0xcf, 0x44, 0x71, 0x87, 0x72, 0xf1, 0xcc, 0x7d, 0x11, + 0x3d, 0x13, 0x13, 0x11, 0x3d, 0xa0, 0x13, 0xe9, 0x7c, 0x67, 0xe2, 0xbe, 0x88, 0x26, 0x48, 0x9b, + 0xa4, 0x82, 0x32, 0x3e, 0xa1, 0xf5, 0x9f, 0xe0, 0xe1, 0x1c, 0xed, 0x91, 0xff, 0x04, 0x00, 0x00, + 0xff, 0xff, 0x68, 0xb0, 0x2a, 0x38, 0x45, 0x30, 0x00, 0x00, +} + +func (m *JunosAuthentication) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthentication) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthentication) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Aaa != nil { + { + size, err := m.Aaa.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Diameter != nil { + { + size, err := m.Diameter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.AddressAssignmentStatistics != nil { + { + size, err := m.AddressAssignmentStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.RadiusServers != nil { + { + size, err := m.RadiusServers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.DynamicRequestStatistics != nil { + { + size, err := m.DynamicRequestStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.AccountingStatistics != nil { + { + size, err := m.AccountingStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.AuthenticationStatistics != nil { + { + size, err := m.AuthenticationStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ReAuthenReqTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReAuthenReqTimeout)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.ReAuthenReqChallenge != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReAuthenReqChallenge)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.ReAuthenReqInternalErrors != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReAuthenReqInternalErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.ReAuthenReqRejected != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReAuthenReqRejected)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.ReAuthenReqAccepted != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReAuthenReqAccepted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.ReAuthenReqReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReAuthenReqReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.PreAuthenReqTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreAuthenReqTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.PreAuthenReqChallenge != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreAuthenReqChallenge)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.PreAuthenReqRejected != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreAuthenReqRejected)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.PreAuthenReqAccepted != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreAuthenReqAccepted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.PreAuthenReqReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreAuthenReqReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ReqTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReqTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ReqChallenge != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReqChallenge)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ReqRejected != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReqRejected)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ReqAccepted != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReqAccepted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ReqReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ReqReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AcctRespStop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRespStop)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.AcctRespInterim != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRespInterim)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.AcctRespStart != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRespStart)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.AcctRespTotal != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRespTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AcctReqStop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctReqStop)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.AcctReqInterim != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctReqInterim)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.AcctReqStart != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctReqStart)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.AcctRespSuccess != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRespSuccess)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AcctRespFailure != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRespFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.AcctReqTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctReqTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AcctReqReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctReqReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DynamicReqSilentlyDrop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.DynamicReqSilentlyDrop)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DynamicReqError != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.DynamicReqError)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DynamicReqSuccess != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.DynamicReqSuccess)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DynamicReqReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.DynamicReqReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RadiusServer) > 0 { + for iNdEx := len(m.RadiusServer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RadiusServer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResponseTime != nil { + { + size, err := m.ResponseTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ServerAddress != nil { + i -= len(*m.ServerAddress) + copy(dAtA[i:], *m.ServerAddress) + i = encodeVarintAuthdOc(dAtA, i, uint64(len(*m.ServerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AcctPacketsDropped != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctPacketsDropped)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.AcctUnknownResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctUnknownResponses)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.AcctRequestTimeouts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRequestTimeouts)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.AcctReqPending != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctReqPending)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.AcctBadAuthenticators != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctBadAuthenticators)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.AcctMalformedResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctMalformedResponses)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.AcctStopResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctStopResponses)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.AcctInterimResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctInterimResponses)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.AcctStartResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctStartResponses)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.AcctRetransmissions != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRetransmissions)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.AcctRolloverRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctRolloverRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.AcctStopRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctStopRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.AcctInterimRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctInterimRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.AcctStartRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AcctStartRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.PreauthPacketsDropped != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthPacketsDropped)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.PreauthUnknownResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthUnknownResponses)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.PreauthRequestTimeouts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthRequestTimeouts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.PreauthReqPending != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthReqPending)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.PreauthBadAuthenticators != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthBadAuthenticators)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.PreauthMalformedResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthMalformedResponses)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.PreauthAccessChallenges != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthAccessChallenges)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.PreauthAccessRejects != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthAccessRejects)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.PreauthAccessAccepts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthAccessAccepts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.PreauthRetransmissions != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthRetransmissions)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.PreauthRolloverRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthRolloverRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.PreauthAccessRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.PreauthAccessRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.AuthPacketsDropped != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthPacketsDropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.AuthUnknownResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthUnknownResponses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.AuthRequestTimeouts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthRequestTimeouts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.AuthReqPending != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthReqPending)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.AuthBadAuthenticators != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthBadAuthenticators)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.AuthMalformedResponses != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthMalformedResponses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AuthAccessChallenges != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthAccessChallenges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.AuthAccessRejects != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthAccessRejects)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.AuthAccessAccepts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthAccessAccepts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.AuthRetransmissions != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthRetransmissions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AuthRolloverRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthRolloverRequests)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.AuthAccessRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthAccessRequests)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ServerLastRtt != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ServerLastRtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OneMinuteMessagesNoResponse != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OneMinuteMessagesNoResponse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OneMinuteMessagesReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OneMinuteMessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OneMinuteMessagesSent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OneMinuteMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OneMinuteMaximumResponseTime != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OneMinuteMaximumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OneMinuteAverageResponseTime != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OneMinuteAverageResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OneMinuteMinimumResponseTime != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OneMinuteMinimumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogicalSystemRoutingInstances != nil { + { + size, err := m.LogicalSystemRoutingInstances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LogicalSystemRoutingInstance) > 0 { + for iNdEx := len(m.LogicalSystemRoutingInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LogicalSystemRoutingInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Pools != nil { + { + size, err := m.Pools.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintAuthdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Pool) > 0 { + for iNdEx := len(m.Pool) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pool[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LinkedPoolHead != nil { + i -= len(*m.LinkedPoolHead) + copy(dAtA[i:], *m.LinkedPoolHead) + i = encodeVarintAuthdOc(dAtA, i, uint64(len(*m.LinkedPoolHead))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.LinkedPoolName != nil { + i -= len(*m.LinkedPoolName) + copy(dAtA[i:], *m.LinkedPoolName) + i = encodeVarintAuthdOc(dAtA, i, uint64(len(*m.LinkedPoolName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.AddressUsagePercent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AddressUsagePercent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.AddressInUse != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AddressInUse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.AddressTotal != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AddressTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OutOfAddress != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OutOfAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OutOfMemory != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OutOfMemory)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PoolName != nil { + i -= len(*m.PoolName) + copy(dAtA[i:], *m.PoolName) + i = encodeVarintAuthdOc(dAtA, i, uint64(len(*m.PoolName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Clients != nil { + { + size, err := m.Clients.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Gy != nil { + { + size, err := m.Gy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Gx != nil { + { + size, err := m.Gx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Nasreq != nil { + { + size, err := m.Nasreq.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAuthdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutstandingRequests != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.OutstandingRequests)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.ResponsesDropped != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ResponsesDropped)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.ResponseParseErrors != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.ResponseParseErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.TransmitQueueTimeOuts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.TransmitQueueTimeOuts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.AbortSessionResponseMessageFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AbortSessionResponseMessageFailures)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.AbortSessionResponseNackMessagesSent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AbortSessionResponseNackMessagesSent)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.AbortSessionResponseAckMessagesSent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AbortSessionResponseAckMessagesSent)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.AbortSessionRequestsReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AbortSessionRequestsReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.SessionTerminateResponseMessagesReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.SessionTerminateResponseMessagesReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.SessionTerminateResponseMessagesFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.SessionTerminateResponseMessagesFailures)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.SessionTerminateRequestMessagesTimeouts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.SessionTerminateRequestMessagesTimeouts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.SessionTerminateRequestMessageFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.SessionTerminateRequestMessageFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.SessionTerminateRequestMessagesSent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.SessionTerminateRequestMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.AuthorizationGrantsReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthorizationGrantsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.AuthorizationDeniesFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthorizationDeniesFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.AuthorizationRequestMessagesTimeouts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthorizationRequestMessagesTimeouts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AuthorizationRequestMessageFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthorizationRequestMessageFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.AuthorizationRequestMessagesSent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthorizationRequestMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.AuthenticationGrantsReceived != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthenticationGrantsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.AuthenticationDeniesFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthenticationDeniesFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AuthenticationRequestMessagesTimeouts != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthenticationRequestMessagesTimeouts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.AuthenticationRequestMessageFailures != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthenticationRequestMessageFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AuthenticationRequestMessagesSent != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AuthenticationRequestMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RaaAuditNak != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RaaAuditNak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.RaaAuditAck != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RaaAuditAck)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.RarAuditDrop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarAuditDrop)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.RarAuditRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarAuditRetry)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.RarAudit != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarAudit)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.RaaDisconnectNak != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RaaDisconnectNak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.RaaDisconnectAck != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RaaDisconnectAck)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.RarDisconnectDrop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarDisconnectDrop)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.RarDisconnectRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarDisconnectRetry)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.RarDisconnect != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarDisconnect)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.RaaUpdateNak != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RaaUpdateNak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.RaaUpdateAck != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RaaUpdateAck)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.RarUpdateDrop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarUpdateDrop)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.RarUpdateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarUpdateRetry)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.RarUpdate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.RarUpdate)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.CcaInitialBadData != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialBadData)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.CcaInitialBadResultCode != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialBadResultCode)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.CcaDropped != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaDropped)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.CcaParseError != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaParseError)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.CcaTerminateTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaTerminateTimeout)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.CcaTerminate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaTerminate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.CcrTerminateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrTerminateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.CcrTerminate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrTerminate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.CcaUpdateTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaUpdateTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.CcaUpdate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaUpdate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.CcrUpdateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrUpdateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.CcrUpdate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrUpdate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.CcaInitialFailure != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.CcaInitialDeny != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialDeny)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.CcaInitialGrant != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialGrant)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.CcaInitial != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitial)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.CcrInitialRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrInitialRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.CcrInitial != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrInitial)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AsaNak != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AsaNak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.AsaAck != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AsaAck)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.AsrUpdateDrop != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AsrUpdateDrop)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.AsrParseError != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AsrParseError)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.AsrRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.AsrRetry)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.Asr != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.Asr)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.CcaInitialBadData != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialBadData)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.CcaInitialBadResultCode != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialBadResultCode)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.CcaDropped != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaDropped)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.CcaParseError != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaParseError)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.CcaTerminateTimeout != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaTerminateTimeout)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.CcaTerminateAlternate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaTerminateAlternate)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.CcaTerminate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaTerminate)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.CcrTerminateAlternateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrTerminateAlternateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.CcrTerminateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrTerminateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.CcrTerminate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrTerminate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.CcaUpdateAlternate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaUpdateAlternate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.CcaUpdate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaUpdate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.CcrUpdateAlternateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrUpdateAlternateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.CcrUpdateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrUpdateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.CcrUpdate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrUpdate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.CcaInitialAlternate != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitialAlternate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.CcaInitial != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcaInitial)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.CcrInitialAlternateRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrInitialAlternateRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.CcrInitialRetry != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrInitialRetry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.CcrInitial != nil { + i = encodeVarintAuthdOc(dAtA, i, uint64(*m.CcrInitial)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintAuthdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovAuthdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosAuthentication) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Aaa != nil { + l = m.Aaa.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AuthenticationStatistics != nil { + l = m.AuthenticationStatistics.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.AccountingStatistics != nil { + l = m.AccountingStatistics.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.DynamicRequestStatistics != nil { + l = m.DynamicRequestStatistics.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.RadiusServers != nil { + l = m.RadiusServers.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.AddressAssignmentStatistics != nil { + l = m.AddressAssignmentStatistics.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.Diameter != nil { + l = m.Diameter.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ReqReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.ReqReceived)) + } + if m.ReqAccepted != nil { + n += 2 + sovAuthdOc(uint64(*m.ReqAccepted)) + } + if m.ReqRejected != nil { + n += 2 + sovAuthdOc(uint64(*m.ReqRejected)) + } + if m.ReqChallenge != nil { + n += 2 + sovAuthdOc(uint64(*m.ReqChallenge)) + } + if m.ReqTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.ReqTimeout)) + } + if m.PreAuthenReqReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.PreAuthenReqReceived)) + } + if m.PreAuthenReqAccepted != nil { + n += 2 + sovAuthdOc(uint64(*m.PreAuthenReqAccepted)) + } + if m.PreAuthenReqRejected != nil { + n += 2 + sovAuthdOc(uint64(*m.PreAuthenReqRejected)) + } + if m.PreAuthenReqChallenge != nil { + n += 2 + sovAuthdOc(uint64(*m.PreAuthenReqChallenge)) + } + if m.PreAuthenReqTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.PreAuthenReqTimeout)) + } + if m.ReAuthenReqReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.ReAuthenReqReceived)) + } + if m.ReAuthenReqAccepted != nil { + n += 2 + sovAuthdOc(uint64(*m.ReAuthenReqAccepted)) + } + if m.ReAuthenReqRejected != nil { + n += 2 + sovAuthdOc(uint64(*m.ReAuthenReqRejected)) + } + if m.ReAuthenReqInternalErrors != nil { + n += 2 + sovAuthdOc(uint64(*m.ReAuthenReqInternalErrors)) + } + if m.ReAuthenReqChallenge != nil { + n += 2 + sovAuthdOc(uint64(*m.ReAuthenReqChallenge)) + } + if m.ReAuthenReqTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.ReAuthenReqTimeout)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AcctReqReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctReqReceived)) + } + if m.AcctReqTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctReqTimeout)) + } + if m.AcctRespFailure != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRespFailure)) + } + if m.AcctRespSuccess != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRespSuccess)) + } + if m.AcctReqStart != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctReqStart)) + } + if m.AcctReqInterim != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctReqInterim)) + } + if m.AcctReqStop != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctReqStop)) + } + if m.AcctRespTotal != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRespTotal)) + } + if m.AcctRespStart != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRespStart)) + } + if m.AcctRespInterim != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRespInterim)) + } + if m.AcctRespStop != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRespStop)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DynamicReqReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.DynamicReqReceived)) + } + if m.DynamicReqSuccess != nil { + n += 2 + sovAuthdOc(uint64(*m.DynamicReqSuccess)) + } + if m.DynamicReqError != nil { + n += 2 + sovAuthdOc(uint64(*m.DynamicReqError)) + } + if m.DynamicReqSilentlyDrop != nil { + n += 2 + sovAuthdOc(uint64(*m.DynamicReqSilentlyDrop)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RadiusServer) > 0 { + for _, e := range m.RadiusServer { + l = e.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ServerAddress != nil { + l = len(*m.ServerAddress) + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.ResponseTime != nil { + l = m.ResponseTime.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ServerLastRtt != nil { + n += 2 + sovAuthdOc(uint64(*m.ServerLastRtt)) + } + if m.AuthAccessRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthAccessRequests)) + } + if m.AuthRolloverRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthRolloverRequests)) + } + if m.AuthRetransmissions != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthRetransmissions)) + } + if m.AuthAccessAccepts != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthAccessAccepts)) + } + if m.AuthAccessRejects != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthAccessRejects)) + } + if m.AuthAccessChallenges != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthAccessChallenges)) + } + if m.AuthMalformedResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthMalformedResponses)) + } + if m.AuthBadAuthenticators != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthBadAuthenticators)) + } + if m.AuthReqPending != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthReqPending)) + } + if m.AuthRequestTimeouts != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthRequestTimeouts)) + } + if m.AuthUnknownResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthUnknownResponses)) + } + if m.AuthPacketsDropped != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthPacketsDropped)) + } + if m.PreauthAccessRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthAccessRequests)) + } + if m.PreauthRolloverRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthRolloverRequests)) + } + if m.PreauthRetransmissions != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthRetransmissions)) + } + if m.PreauthAccessAccepts != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthAccessAccepts)) + } + if m.PreauthAccessRejects != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthAccessRejects)) + } + if m.PreauthAccessChallenges != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthAccessChallenges)) + } + if m.PreauthMalformedResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthMalformedResponses)) + } + if m.PreauthBadAuthenticators != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthBadAuthenticators)) + } + if m.PreauthReqPending != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthReqPending)) + } + if m.PreauthRequestTimeouts != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthRequestTimeouts)) + } + if m.PreauthUnknownResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthUnknownResponses)) + } + if m.PreauthPacketsDropped != nil { + n += 2 + sovAuthdOc(uint64(*m.PreauthPacketsDropped)) + } + if m.AcctStartRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctStartRequests)) + } + if m.AcctInterimRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctInterimRequests)) + } + if m.AcctStopRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctStopRequests)) + } + if m.AcctRolloverRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRolloverRequests)) + } + if m.AcctRetransmissions != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRetransmissions)) + } + if m.AcctStartResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctStartResponses)) + } + if m.AcctInterimResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctInterimResponses)) + } + if m.AcctStopResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctStopResponses)) + } + if m.AcctMalformedResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctMalformedResponses)) + } + if m.AcctBadAuthenticators != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctBadAuthenticators)) + } + if m.AcctReqPending != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctReqPending)) + } + if m.AcctRequestTimeouts != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctRequestTimeouts)) + } + if m.AcctUnknownResponses != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctUnknownResponses)) + } + if m.AcctPacketsDropped != nil { + n += 2 + sovAuthdOc(uint64(*m.AcctPacketsDropped)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OneMinuteMinimumResponseTime != nil { + n += 2 + sovAuthdOc(uint64(*m.OneMinuteMinimumResponseTime)) + } + if m.OneMinuteAverageResponseTime != nil { + n += 2 + sovAuthdOc(uint64(*m.OneMinuteAverageResponseTime)) + } + if m.OneMinuteMaximumResponseTime != nil { + n += 2 + sovAuthdOc(uint64(*m.OneMinuteMaximumResponseTime)) + } + if m.OneMinuteMessagesSent != nil { + n += 2 + sovAuthdOc(uint64(*m.OneMinuteMessagesSent)) + } + if m.OneMinuteMessagesReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.OneMinuteMessagesReceived)) + } + if m.OneMinuteMessagesNoResponse != nil { + n += 2 + sovAuthdOc(uint64(*m.OneMinuteMessagesNoResponse)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LogicalSystemRoutingInstances != nil { + l = m.LogicalSystemRoutingInstances.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LogicalSystemRoutingInstance) > 0 { + for _, e := range m.LogicalSystemRoutingInstance { + l = e.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.Pools != nil { + l = m.Pools.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Pool) > 0 { + for _, e := range m.Pool { + l = e.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PoolName != nil { + l = len(*m.PoolName) + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.OutOfMemory != nil { + n += 2 + sovAuthdOc(uint64(*m.OutOfMemory)) + } + if m.OutOfAddress != nil { + n += 2 + sovAuthdOc(uint64(*m.OutOfAddress)) + } + if m.AddressTotal != nil { + n += 2 + sovAuthdOc(uint64(*m.AddressTotal)) + } + if m.AddressInUse != nil { + n += 2 + sovAuthdOc(uint64(*m.AddressInUse)) + } + if m.AddressUsagePercent != nil { + n += 2 + sovAuthdOc(uint64(*m.AddressUsagePercent)) + } + if m.LinkedPoolName != nil { + l = len(*m.LinkedPoolName) + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.LinkedPoolHead != nil { + l = len(*m.LinkedPoolHead) + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Clients != nil { + l = m.Clients.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Nasreq != nil { + l = m.Nasreq.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.Gx != nil { + l = m.Gx.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.Gy != nil { + l = m.Gy.Size() + n += 2 + l + sovAuthdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AuthenticationRequestMessagesSent != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthenticationRequestMessagesSent)) + } + if m.AuthenticationRequestMessageFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthenticationRequestMessageFailures)) + } + if m.AuthenticationRequestMessagesTimeouts != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthenticationRequestMessagesTimeouts)) + } + if m.AuthenticationDeniesFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthenticationDeniesFailures)) + } + if m.AuthenticationGrantsReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthenticationGrantsReceived)) + } + if m.AuthorizationRequestMessagesSent != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthorizationRequestMessagesSent)) + } + if m.AuthorizationRequestMessageFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthorizationRequestMessageFailures)) + } + if m.AuthorizationRequestMessagesTimeouts != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthorizationRequestMessagesTimeouts)) + } + if m.AuthorizationDeniesFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthorizationDeniesFailures)) + } + if m.AuthorizationGrantsReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.AuthorizationGrantsReceived)) + } + if m.SessionTerminateRequestMessagesSent != nil { + n += 2 + sovAuthdOc(uint64(*m.SessionTerminateRequestMessagesSent)) + } + if m.SessionTerminateRequestMessageFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.SessionTerminateRequestMessageFailures)) + } + if m.SessionTerminateRequestMessagesTimeouts != nil { + n += 2 + sovAuthdOc(uint64(*m.SessionTerminateRequestMessagesTimeouts)) + } + if m.SessionTerminateResponseMessagesFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.SessionTerminateResponseMessagesFailures)) + } + if m.SessionTerminateResponseMessagesReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.SessionTerminateResponseMessagesReceived)) + } + if m.AbortSessionRequestsReceived != nil { + n += 2 + sovAuthdOc(uint64(*m.AbortSessionRequestsReceived)) + } + if m.AbortSessionResponseAckMessagesSent != nil { + n += 2 + sovAuthdOc(uint64(*m.AbortSessionResponseAckMessagesSent)) + } + if m.AbortSessionResponseNackMessagesSent != nil { + n += 2 + sovAuthdOc(uint64(*m.AbortSessionResponseNackMessagesSent)) + } + if m.AbortSessionResponseMessageFailures != nil { + n += 2 + sovAuthdOc(uint64(*m.AbortSessionResponseMessageFailures)) + } + if m.TransmitQueueTimeOuts != nil { + n += 2 + sovAuthdOc(uint64(*m.TransmitQueueTimeOuts)) + } + if m.ResponseParseErrors != nil { + n += 2 + sovAuthdOc(uint64(*m.ResponseParseErrors)) + } + if m.ResponsesDropped != nil { + n += 2 + sovAuthdOc(uint64(*m.ResponsesDropped)) + } + if m.OutstandingRequests != nil { + n += 2 + sovAuthdOc(uint64(*m.OutstandingRequests)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CcrInitial != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrInitial)) + } + if m.CcrInitialRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrInitialRetry)) + } + if m.CcaInitial != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitial)) + } + if m.CcaInitialGrant != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialGrant)) + } + if m.CcaInitialDeny != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialDeny)) + } + if m.CcaInitialFailure != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialFailure)) + } + if m.CcrUpdate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrUpdate)) + } + if m.CcrUpdateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrUpdateRetry)) + } + if m.CcaUpdate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaUpdate)) + } + if m.CcaUpdateTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaUpdateTimeout)) + } + if m.CcrTerminate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrTerminate)) + } + if m.CcrTerminateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrTerminateRetry)) + } + if m.CcaTerminate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaTerminate)) + } + if m.CcaTerminateTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaTerminateTimeout)) + } + if m.CcaParseError != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaParseError)) + } + if m.CcaDropped != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaDropped)) + } + if m.CcaInitialBadResultCode != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialBadResultCode)) + } + if m.CcaInitialBadData != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialBadData)) + } + if m.RarUpdate != nil { + n += 2 + sovAuthdOc(uint64(*m.RarUpdate)) + } + if m.RarUpdateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.RarUpdateRetry)) + } + if m.RarUpdateDrop != nil { + n += 2 + sovAuthdOc(uint64(*m.RarUpdateDrop)) + } + if m.RaaUpdateAck != nil { + n += 2 + sovAuthdOc(uint64(*m.RaaUpdateAck)) + } + if m.RaaUpdateNak != nil { + n += 2 + sovAuthdOc(uint64(*m.RaaUpdateNak)) + } + if m.RarDisconnect != nil { + n += 2 + sovAuthdOc(uint64(*m.RarDisconnect)) + } + if m.RarDisconnectRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.RarDisconnectRetry)) + } + if m.RarDisconnectDrop != nil { + n += 2 + sovAuthdOc(uint64(*m.RarDisconnectDrop)) + } + if m.RaaDisconnectAck != nil { + n += 2 + sovAuthdOc(uint64(*m.RaaDisconnectAck)) + } + if m.RaaDisconnectNak != nil { + n += 2 + sovAuthdOc(uint64(*m.RaaDisconnectNak)) + } + if m.RarAudit != nil { + n += 2 + sovAuthdOc(uint64(*m.RarAudit)) + } + if m.RarAuditRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.RarAuditRetry)) + } + if m.RarAuditDrop != nil { + n += 2 + sovAuthdOc(uint64(*m.RarAuditDrop)) + } + if m.RaaAuditAck != nil { + n += 2 + sovAuthdOc(uint64(*m.RaaAuditAck)) + } + if m.RaaAuditNak != nil { + n += 2 + sovAuthdOc(uint64(*m.RaaAuditNak)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CcrInitial != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrInitial)) + } + if m.CcrInitialRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrInitialRetry)) + } + if m.CcrInitialAlternateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrInitialAlternateRetry)) + } + if m.CcaInitial != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitial)) + } + if m.CcaInitialAlternate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialAlternate)) + } + if m.CcrUpdate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrUpdate)) + } + if m.CcrUpdateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrUpdateRetry)) + } + if m.CcrUpdateAlternateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrUpdateAlternateRetry)) + } + if m.CcaUpdate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaUpdate)) + } + if m.CcaUpdateAlternate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaUpdateAlternate)) + } + if m.CcrTerminate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrTerminate)) + } + if m.CcrTerminateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrTerminateRetry)) + } + if m.CcrTerminateAlternateRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.CcrTerminateAlternateRetry)) + } + if m.CcaTerminate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaTerminate)) + } + if m.CcaTerminateAlternate != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaTerminateAlternate)) + } + if m.CcaTerminateTimeout != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaTerminateTimeout)) + } + if m.CcaParseError != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaParseError)) + } + if m.CcaDropped != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaDropped)) + } + if m.CcaInitialBadResultCode != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialBadResultCode)) + } + if m.CcaInitialBadData != nil { + n += 2 + sovAuthdOc(uint64(*m.CcaInitialBadData)) + } + if m.Asr != nil { + n += 2 + sovAuthdOc(uint64(*m.Asr)) + } + if m.AsrRetry != nil { + n += 2 + sovAuthdOc(uint64(*m.AsrRetry)) + } + if m.AsrParseError != nil { + n += 2 + sovAuthdOc(uint64(*m.AsrParseError)) + } + if m.AsrUpdateDrop != nil { + n += 2 + sovAuthdOc(uint64(*m.AsrUpdateDrop)) + } + if m.AsaAck != nil { + n += 2 + sovAuthdOc(uint64(*m.AsaAck)) + } + if m.AsaNak != nil { + n += 2 + sovAuthdOc(uint64(*m.AsaNak)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovAuthdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAuthdOc(x uint64) (n int) { + return sovAuthdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosAuthentication) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_authentication: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_authentication: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosAuthenticationSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosAuthenticationSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aaa", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aaa == nil { + m.Aaa = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType{} + } + if err := m.Aaa.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aaa_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aaa_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AuthenticationStatistics == nil { + m.AuthenticationStatistics = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType{} + } + if err := m.AuthenticationStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountingStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AccountingStatistics == nil { + m.AccountingStatistics = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType{} + } + if err := m.AccountingStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicRequestStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DynamicRequestStatistics == nil { + m.DynamicRequestStatistics = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType{} + } + if err := m.DynamicRequestStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RadiusServers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RadiusServers == nil { + m.RadiusServers = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType{} + } + if err := m.RadiusServers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressAssignmentStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddressAssignmentStatistics == nil { + m.AddressAssignmentStatistics = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType{} + } + if err := m.AddressAssignmentStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Diameter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Diameter == nil { + m.Diameter = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType{} + } + if err := m.Diameter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAuthenticationStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: authentication_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: authentication_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReqReceived = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqAccepted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReqAccepted = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqRejected", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReqRejected = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqChallenge", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReqChallenge = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReqTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReqTimeout = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthenReqReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreAuthenReqReceived = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthenReqAccepted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreAuthenReqAccepted = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthenReqRejected", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreAuthenReqRejected = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthenReqChallenge", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreAuthenReqChallenge = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreAuthenReqTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreAuthenReqTimeout = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReAuthenReqReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReAuthenReqReceived = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReAuthenReqAccepted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReAuthenReqAccepted = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReAuthenReqRejected", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReAuthenReqRejected = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReAuthenReqInternalErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReAuthenReqInternalErrors = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReAuthenReqChallenge", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReAuthenReqChallenge = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReAuthenReqTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReAuthenReqTimeout = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAccountingStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: accounting_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: accounting_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctReqReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctReqReceived = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctReqTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctReqTimeout = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRespFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRespFailure = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRespSuccess", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRespSuccess = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctReqStart", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctReqStart = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctReqInterim", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctReqInterim = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctReqStop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctReqStop = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRespTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRespTotal = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRespStart", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRespStart = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRespInterim", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRespInterim = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRespStop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRespStop = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDynamicRequestStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dynamic_request_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dynamic_request_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicReqReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DynamicReqReceived = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicReqSuccess", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DynamicReqSuccess = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicReqError", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DynamicReqError = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicReqSilentlyDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DynamicReqSilentlyDrop = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: radius_servers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: radius_servers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RadiusServer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RadiusServer = append(m.RadiusServer, &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList{}) + if err := m.RadiusServer[len(m.RadiusServer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: radius_server_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: radius_server_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerAddress = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResponseTime == nil { + m.ResponseTime = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType{} + } + if err := m.ResponseTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerLastRtt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerLastRtt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthAccessRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthAccessRequests = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRolloverRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthRolloverRequests = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRetransmissions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthRetransmissions = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthAccessAccepts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthAccessAccepts = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthAccessRejects", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthAccessRejects = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthAccessChallenges", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthAccessChallenges = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthMalformedResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthMalformedResponses = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthBadAuthenticators", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthBadAuthenticators = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthReqPending", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthReqPending = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthRequestTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthRequestTimeouts = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthUnknownResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthUnknownResponses = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthPacketsDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthPacketsDropped = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthAccessRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthAccessRequests = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthRolloverRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthRolloverRequests = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthRetransmissions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthRetransmissions = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthAccessAccepts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthAccessAccepts = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthAccessRejects", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthAccessRejects = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthAccessChallenges", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthAccessChallenges = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthMalformedResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthMalformedResponses = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthBadAuthenticators", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthBadAuthenticators = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthReqPending", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthReqPending = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthRequestTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthRequestTimeouts = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthUnknownResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthUnknownResponses = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreauthPacketsDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreauthPacketsDropped = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctStartRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctStartRequests = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctInterimRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctInterimRequests = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctStopRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctStopRequests = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRolloverRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRolloverRequests = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRetransmissions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRetransmissions = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctStartResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctStartResponses = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctInterimResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctInterimResponses = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctStopResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctStopResponses = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctMalformedResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctMalformedResponses = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctBadAuthenticators", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctBadAuthenticators = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctReqPending", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctReqPending = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctRequestTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctRequestTimeouts = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctUnknownResponses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctUnknownResponses = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcctPacketsDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcctPacketsDropped = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeRadiusServersTypeRadiusServerListResponseTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: response_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: response_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMinimumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMinimumResponseTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteAverageResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteAverageResponseTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMaximumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMaximumResponseTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesSent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesNoResponse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesNoResponse = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_assignment_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_assignment_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LogicalSystemRoutingInstances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LogicalSystemRoutingInstances == nil { + m.LogicalSystemRoutingInstances = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType{} + } + if err := m.LogicalSystemRoutingInstances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: logical_system_routing_instances_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: logical_system_routing_instances_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LogicalSystemRoutingInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LogicalSystemRoutingInstance = append(m.LogicalSystemRoutingInstance, &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList{}) + if err := m.LogicalSystemRoutingInstance[len(m.LogicalSystemRoutingInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: logical_system_routing_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: logical_system_routing_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pools", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pools == nil { + m.Pools = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType{} + } + if err := m.Pools.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pools_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pools_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pool", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pool = append(m.Pool, &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList{}) + if err := m.Pool[len(m.Pool)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeAddressAssignmentStatisticsTypeLogicalSystemRoutingInstancesTypeLogicalSystemRoutingInstanceListPoolsTypePoolList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pool_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pool_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoolName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PoolName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOfMemory", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOfMemory = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOfAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOfAddress = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AddressTotal = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressInUse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AddressInUse = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressUsagePercent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AddressUsagePercent = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkedPoolName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkedPoolName = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkedPoolHead", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkedPoolHead = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: diameter_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: diameter_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Clients", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Clients == nil { + m.Clients = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType{} + } + if err := m.Clients.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: clients_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: clients_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nasreq", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nasreq == nil { + m.Nasreq = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType{} + } + if err := m.Nasreq.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gx == nil { + m.Gx = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType{} + } + if err := m.Gx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAuthdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAuthdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gy == nil { + m.Gy = &JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType{} + } + if err := m.Gy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeNasreqType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nasreq_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nasreq_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationRequestMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationRequestMessagesSent = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationRequestMessageFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationRequestMessageFailures = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationRequestMessagesTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationRequestMessagesTimeouts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationDeniesFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationDeniesFailures = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationGrantsReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationGrantsReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationRequestMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthorizationRequestMessagesSent = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationRequestMessageFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthorizationRequestMessageFailures = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationRequestMessagesTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthorizationRequestMessagesTimeouts = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationDeniesFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthorizationDeniesFailures = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthorizationGrantsReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthorizationGrantsReceived = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionTerminateRequestMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionTerminateRequestMessagesSent = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionTerminateRequestMessageFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionTerminateRequestMessageFailures = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionTerminateRequestMessagesTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionTerminateRequestMessagesTimeouts = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionTerminateResponseMessagesFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionTerminateResponseMessagesFailures = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionTerminateResponseMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionTerminateResponseMessagesReceived = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AbortSessionRequestsReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AbortSessionRequestsReceived = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AbortSessionResponseAckMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AbortSessionResponseAckMessagesSent = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AbortSessionResponseNackMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AbortSessionResponseNackMessagesSent = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AbortSessionResponseMessageFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AbortSessionResponseMessageFailures = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmitQueueTimeOuts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmitQueueTimeOuts = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseParseErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ResponseParseErrors = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponsesDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ResponsesDropped = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutstandingRequests", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutstandingRequests = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGxType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: gx_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: gx_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrInitial", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrInitial = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrInitialRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrInitialRetry = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitial", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitial = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialGrant", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialGrant = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialDeny", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialDeny = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialFailure = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrUpdate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrUpdate = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrUpdateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrUpdateRetry = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaUpdate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaUpdate = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaUpdateTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaUpdateTimeout = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrTerminate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrTerminate = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrTerminateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrTerminateRetry = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaTerminate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaTerminate = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaTerminateTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaTerminateTimeout = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaParseError", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaParseError = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaDropped = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialBadResultCode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialBadResultCode = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialBadData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialBadData = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarUpdate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarUpdate = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarUpdateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarUpdateRetry = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarUpdateDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarUpdateDrop = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaaUpdateAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaaUpdateAck = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaaUpdateNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaaUpdateNak = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarDisconnect", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarDisconnect = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarDisconnectRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarDisconnectRetry = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarDisconnectDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarDisconnectDrop = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaaDisconnectAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaaDisconnectAck = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaaDisconnectNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaaDisconnectNak = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarAudit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarAudit = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarAuditRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarAuditRetry = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RarAuditDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RarAuditDrop = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaaAuditAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaaAuditAck = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaaAuditNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaaAuditNak = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAuthenticationSystemTypeSubscriberManagementTypeAaaTypeDiameterTypeClientsTypeGyType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: gy_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: gy_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrInitial", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrInitial = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrInitialRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrInitialRetry = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrInitialAlternateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrInitialAlternateRetry = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitial", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitial = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialAlternate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialAlternate = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrUpdate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrUpdate = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrUpdateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrUpdateRetry = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrUpdateAlternateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrUpdateAlternateRetry = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaUpdate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaUpdate = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaUpdateAlternate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaUpdateAlternate = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrTerminate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrTerminate = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrTerminateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrTerminateRetry = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcrTerminateAlternateRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcrTerminateAlternateRetry = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaTerminate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaTerminate = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaTerminateAlternate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaTerminateAlternate = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaTerminateTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaTerminateTimeout = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaParseError", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaParseError = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaDropped = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialBadResultCode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialBadResultCode = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CcaInitialBadData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CcaInitialBadData = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Asr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Asr = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsrRetry", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AsrRetry = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsrParseError", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AsrParseError = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsrUpdateDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AsrUpdateDrop = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsaAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AsaAck = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AsaNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AsaNak = &v + default: + iNdEx = preIndex + skippy, err := skipAuthdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAuthdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAuthdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAuthdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAuthdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAuthdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAuthdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAuthdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAuthdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAuthdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/authd_oc.proto b/schema/authd_oc.proto new file mode 100755 index 0000000..cebd2fa --- /dev/null +++ b/schema/authd_oc.proto @@ -0,0 +1,238 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_authentication jnpr_junos_authentication_ext = 33; +} + +message junos_authentication { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional aaa_type aaa = 151; + message aaa_type { + optional authentication_statistics_type authentication_statistics = 152; + message authentication_statistics_type { + optional uint64 req_received = 51; + optional uint64 req_accepted = 52; + optional uint64 req_rejected = 53; + optional uint64 req_challenge = 54; + optional uint64 req_timeout = 55; + optional uint64 pre_authen_req_received = 56; + optional uint64 pre_authen_req_accepted = 57; + optional uint64 pre_authen_req_rejected = 58; + optional uint64 pre_authen_req_challenge = 59; + optional uint64 pre_authen_req_timeout = 60; + optional uint64 re_authen_req_received = 61; + optional uint64 re_authen_req_accepted = 62; + optional uint64 re_authen_req_rejected = 63; + optional uint64 re_authen_req_internal_errors = 64; + optional uint64 re_authen_req_challenge = 65; + optional uint64 re_authen_req_timeout = 66; + } + optional accounting_statistics_type accounting_statistics = 153; + message accounting_statistics_type { + optional uint64 acct_req_received = 51; + optional uint64 acct_req_timeout = 52; + optional uint64 acct_resp_failure = 53; + optional uint64 acct_resp_success = 54; + optional uint64 acct_req_start = 55; + optional uint64 acct_req_interim = 56; + optional uint64 acct_req_stop = 57; + optional uint64 acct_resp_total = 58; + optional uint64 acct_resp_start = 59; + optional uint64 acct_resp_interim = 60; + optional uint64 acct_resp_stop = 61; + } + optional dynamic_request_statistics_type dynamic_request_statistics = 154; + message dynamic_request_statistics_type { + optional uint64 dynamic_req_received = 51; + optional uint64 dynamic_req_success = 52; + optional uint64 dynamic_req_error = 53; + optional uint64 dynamic_req_silently_drop = 54; + } + optional radius_servers_type radius_servers = 155; + message radius_servers_type { + message radius_server_list { + optional string server_address = 52 [(telemetry_options).is_key = true]; + optional statistics_type statistics = 151; + message statistics_type { + optional uint64 server_last_rtt = 51; + optional uint64 auth_access_requests = 52; + optional uint64 auth_rollover_requests = 53; + optional uint64 auth_retransmissions = 54; + optional uint64 auth_access_accepts = 55; + optional uint64 auth_access_rejects = 56; + optional uint64 auth_access_challenges = 57; + optional uint64 auth_malformed_responses = 58; + optional uint64 auth_bad_authenticators = 59; + optional uint64 auth_req_pending = 60; + optional uint64 auth_request_timeouts = 61; + optional uint64 auth_unknown_responses = 62; + optional uint64 auth_packets_dropped = 63; + optional uint64 preauth_access_requests = 64; + optional uint64 preauth_rollover_requests = 65; + optional uint64 preauth_retransmissions = 66; + optional uint64 preauth_access_accepts = 67; + optional uint64 preauth_access_rejects = 68; + optional uint64 preauth_access_challenges = 69; + optional uint64 preauth_malformed_responses = 70; + optional uint64 preauth_bad_authenticators = 71; + optional uint64 preauth_req_pending = 72; + optional uint64 preauth_request_timeouts = 73; + optional uint64 preauth_unknown_responses = 74; + optional uint64 preauth_packets_dropped = 75; + optional uint64 acct_start_requests = 76; + optional uint64 acct_interim_requests = 77; + optional uint64 acct_stop_requests = 78; + optional uint64 acct_rollover_requests = 79; + optional uint64 acct_retransmissions = 80; + optional uint64 acct_start_responses = 81; + optional uint64 acct_interim_responses = 82; + optional uint64 acct_stop_responses = 83; + optional uint64 acct_malformed_responses = 84; + optional uint64 acct_bad_authenticators = 85; + optional uint64 acct_req_pending = 86; + optional uint64 acct_request_timeouts = 87; + optional uint64 acct_unknown_responses = 88; + optional uint64 acct_packets_dropped = 89; + } + optional response_time_type response_time = 152; + message response_time_type { + optional uint64 one_minute_minimum_response_time = 51; + optional uint64 one_minute_average_response_time = 52; + optional uint64 one_minute_maximum_response_time = 53; + optional uint64 one_minute_messages_sent = 54; + optional uint64 one_minute_messages_received = 55; + optional uint64 one_minute_messages_no_response = 56; + } + } + repeated radius_server_list radius_server = 151; + } + optional address_assignment_statistics_type address_assignment_statistics = 156; + message address_assignment_statistics_type { + optional logical_system_routing_instances_type logical_system_routing_instances = 151; + message logical_system_routing_instances_type { + message logical_system_routing_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional pools_type pools = 151; + message pools_type { + message pool_list { + optional string pool_name = 51 [(telemetry_options).is_key = true]; + optional uint64 out_of_memory = 52; + optional uint64 out_of_address = 53; + optional uint64 address_total = 54; + optional uint64 address_in_use = 55; + optional uint64 address_usage_percent = 56; + optional string linked_pool_name = 57; + optional string linked_pool_head = 58; + } + repeated pool_list pool = 151; + } + } + repeated logical_system_routing_instance_list logical_system_routing_instance = 151; + } + } + optional diameter_type diameter = 157; + message diameter_type { + optional clients_type clients = 151; + message clients_type { + optional nasreq_type nasreq = 151; + message nasreq_type { + optional uint64 authentication_request_messages_sent = 51; + optional uint64 authentication_request_message_failures = 52; + optional uint64 authentication_request_messages_timeouts = 53; + optional uint64 authentication_denies_failures = 54; + optional uint64 authentication_grants_received = 55; + optional uint64 authorization_request_messages_sent = 56; + optional uint64 authorization_request_message_failures = 57; + optional uint64 authorization_request_messages_timeouts = 58; + optional uint64 authorization_denies_failures = 59; + optional uint64 authorization_grants_received = 60; + optional uint64 session_terminate_request_messages_sent = 61; + optional uint64 session_terminate_request_message_failures = 62; + optional uint64 session_terminate_request_messages_timeouts = 63; + optional uint64 session_terminate_response_messages_failures = 64; + optional uint64 session_terminate_response_messages_received = 65; + optional uint64 abort_session_requests_received = 66; + optional uint64 abort_session_response_ack_messages_sent = 67; + optional uint64 abort_session_response_nack_messages_sent = 68; + optional uint64 abort_session_response_message_failures = 69; + optional uint64 transmit_queue_time_outs = 70; + optional uint64 response_parse_errors = 71; + optional uint64 responses_dropped = 72; + optional uint64 outstanding_requests = 73; + } + optional gx_type gx = 152; + message gx_type { + optional uint64 ccr_initial = 51; + optional uint64 ccr_initial_retry = 52; + optional uint64 cca_initial = 53; + optional uint64 cca_initial_grant = 54; + optional uint64 cca_initial_deny = 55; + optional uint64 cca_initial_failure = 56; + optional uint64 ccr_update = 57; + optional uint64 ccr_update_retry = 58; + optional uint64 cca_update = 59; + optional uint64 cca_update_timeout = 60; + optional uint64 ccr_terminate = 61; + optional uint64 ccr_terminate_retry = 62; + optional uint64 cca_terminate = 63; + optional uint64 cca_terminate_timeout = 64; + optional uint64 cca_parse_error = 65; + optional uint64 cca_dropped = 66; + optional uint64 cca_initial_bad_result_code = 67; + optional uint64 cca_initial_bad_data = 68; + optional uint64 rar_update = 69; + optional uint64 rar_update_retry = 70; + optional uint64 rar_update_drop = 71; + optional uint64 raa_update_ack = 72; + optional uint64 raa_update_nak = 73; + optional uint64 rar_disconnect = 74; + optional uint64 rar_disconnect_retry = 75; + optional uint64 rar_disconnect_drop = 76; + optional uint64 raa_disconnect_ack = 77; + optional uint64 raa_disconnect_nak = 78; + optional uint64 rar_audit = 79; + optional uint64 rar_audit_retry = 80; + optional uint64 rar_audit_drop = 81; + optional uint64 raa_audit_ack = 82; + optional uint64 raa_audit_nak = 83; + } + optional gy_type gy = 153; + message gy_type { + optional uint64 ccr_initial = 51; + optional uint64 ccr_initial_retry = 52; + optional uint64 ccr_initial_alternate_retry = 53; + optional uint64 cca_initial = 54; + optional uint64 cca_initial_alternate = 55; + optional uint64 ccr_update = 56; + optional uint64 ccr_update_retry = 57; + optional uint64 ccr_update_alternate_retry = 58; + optional uint64 cca_update = 59; + optional uint64 cca_update_alternate = 60; + optional uint64 ccr_terminate = 61; + optional uint64 ccr_terminate_retry = 62; + optional uint64 ccr_terminate_alternate_retry = 63; + optional uint64 cca_terminate = 64; + optional uint64 cca_terminate_alternate = 65; + optional uint64 cca_terminate_timeout = 66; + optional uint64 cca_parse_error = 67; + optional uint64 cca_dropped = 68; + optional uint64 cca_initial_bad_result_code = 69; + optional uint64 cca_initial_bad_data = 70; + optional uint64 asr = 71; + optional uint64 asr_retry = 72; + optional uint64 asr_parse_error = 73; + optional uint64 asr_update_drop = 74; + optional uint64 asa_ack = 75; + optional uint64 asa_nak = 76; + } + } + } + } + } + } +} diff --git a/schema/bbe-smgd_ancp_stats_oc.pb.go b/schema/bbe-smgd_ancp_stats_oc.pb.go new file mode 100644 index 0000000..3aa8a52 --- /dev/null +++ b/schema/bbe-smgd_ancp_stats_oc.pb.go @@ -0,0 +1,1335 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-smgd_ancp_stats_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosAncpStats struct { + System *JunosAncpStatsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpStats) Reset() { *m = JunosAncpStats{} } +func (m *JunosAncpStats) String() string { return proto.CompactTextString(m) } +func (*JunosAncpStats) ProtoMessage() {} +func (*JunosAncpStats) Descriptor() ([]byte, []int) { + return fileDescriptor_04b5e3e7408ddbf4, []int{0} +} +func (m *JunosAncpStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpStats.Merge(m, src) +} +func (m *JunosAncpStats) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpStats) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpStats.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpStats proto.InternalMessageInfo + +func (m *JunosAncpStats) GetSystem() *JunosAncpStatsSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosAncpStatsSystemType struct { + SubscriberManagement *JunosAncpStatsSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpStatsSystemType) Reset() { *m = JunosAncpStatsSystemType{} } +func (m *JunosAncpStatsSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosAncpStatsSystemType) ProtoMessage() {} +func (*JunosAncpStatsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_04b5e3e7408ddbf4, []int{0, 0} +} +func (m *JunosAncpStatsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpStatsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpStatsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpStatsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpStatsSystemType.Merge(m, src) +} +func (m *JunosAncpStatsSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpStatsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpStatsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpStatsSystemType proto.InternalMessageInfo + +func (m *JunosAncpStatsSystemType) GetSubscriberManagement() *JunosAncpStatsSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosAncpStatsSystemTypeSubscriberManagementType struct { + AccessNetwork *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType `protobuf:"bytes,151,opt,name=access_network,json=accessNetwork" json:"access_network,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) Reset() { + *m = JunosAncpStatsSystemTypeSubscriberManagementType{} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpStatsSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosAncpStatsSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_04b5e3e7408ddbf4, []int{0, 0, 0} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) GetAccessNetwork() *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType { + if m != nil { + return m.AccessNetwork + } + return nil +} + +type JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType struct { + Ancp *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType `protobuf:"bytes,151,opt,name=ancp" json:"ancp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) Reset() { + *m = JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType{} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) ProtoMessage() {} +func (*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) Descriptor() ([]byte, []int) { + return fileDescriptor_04b5e3e7408ddbf4, []int{0, 0, 0, 0} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType.Merge(m, src) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType proto.InternalMessageInfo + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) GetAncp() *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType { + if m != nil { + return m.Ancp + } + return nil +} + +type JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType struct { + Adapter *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType `protobuf:"bytes,151,opt,name=adapter" json:"adapter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Reset() { + *m = JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType{} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) ProtoMessage() {} +func (*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Descriptor() ([]byte, []int) { + return fileDescriptor_04b5e3e7408ddbf4, []int{0, 0, 0, 0, 0} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType.Merge(m, src) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType proto.InternalMessageInfo + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) GetAdapter() *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType { + if m != nil { + return m.Adapter + } + return nil +} + +type JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType struct { + MappedDynamicSubscriberCount *uint32 `protobuf:"varint,51,opt,name=mapped_dynamic_subscriber_count,json=mappedDynamicSubscriberCount" json:"mapped_dynamic_subscriber_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) Reset() { + *m = JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType{} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) String() string { + return proto.CompactTextString(m) +} +func (*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) ProtoMessage() { +} +func (*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) Descriptor() ([]byte, []int) { + return fileDescriptor_04b5e3e7408ddbf4, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType.Merge(m, src) +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) XXX_Size() int { + return m.Size() +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType proto.InternalMessageInfo + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) GetMappedDynamicSubscriberCount() uint32 { + if m != nil && m.MappedDynamicSubscriberCount != nil { + return *m.MappedDynamicSubscriberCount + } + return 0 +} + +var E_JnprJunosAncpStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosAncpStats)(nil), + Field: 34, + Name: "jnpr_junos_ancp_stats_ext", + Tag: "bytes,34,opt,name=jnpr_junos_ancp_stats_ext", + Filename: "bbe-smgd_ancp_stats_oc.proto", +} + +func init() { + proto.RegisterType((*JunosAncpStats)(nil), "junos_ancp_stats") + proto.RegisterType((*JunosAncpStatsSystemType)(nil), "junos_ancp_stats.system_type") + proto.RegisterType((*JunosAncpStatsSystemTypeSubscriberManagementType)(nil), "junos_ancp_stats.system_type.subscriber_management_type") + proto.RegisterType((*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType)(nil), "junos_ancp_stats.system_type.subscriber_management_type.access_network_type") + proto.RegisterType((*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType)(nil), "junos_ancp_stats.system_type.subscriber_management_type.access_network_type.ancp_type") + proto.RegisterType((*JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType)(nil), "junos_ancp_stats.system_type.subscriber_management_type.access_network_type.ancp_type.adapter_type") + proto.RegisterExtension(E_JnprJunosAncpStatsExt) +} + +func init() { proto.RegisterFile("bbe-smgd_ancp_stats_oc.proto", fileDescriptor_04b5e3e7408ddbf4) } + +var fileDescriptor_04b5e3e7408ddbf4 = []byte{ + // 435 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x91, 0xbd, 0x6e, 0x13, 0x41, + 0x14, 0x85, 0xb5, 0x10, 0x40, 0x4c, 0x08, 0x82, 0x0d, 0x11, 0x66, 0x15, 0x4c, 0x94, 0x2a, 0x8d, + 0x67, 0x25, 0x90, 0x10, 0xa2, 0xe3, 0x27, 0x4d, 0x04, 0x14, 0xb6, 0xa0, 0xa0, 0x19, 0x66, 0x67, + 0xaf, 0xd6, 0x63, 0x67, 0x7e, 0x34, 0xf7, 0x1a, 0xe2, 0x86, 0xd7, 0xe0, 0x95, 0xa0, 0xe3, 0x11, + 0x90, 0x1b, 0x5e, 0x22, 0x05, 0x5a, 0xcf, 0xae, 0x59, 0x82, 0xa1, 0x40, 0xa4, 0x3d, 0xf7, 0xdc, + 0x73, 0xbe, 0xb9, 0xc3, 0x76, 0x8b, 0x02, 0x06, 0x68, 0xaa, 0x52, 0x48, 0xab, 0xbc, 0x40, 0x92, + 0x84, 0xc2, 0x29, 0xee, 0x83, 0x23, 0x97, 0x6d, 0x13, 0x1c, 0x83, 0x01, 0x0a, 0x73, 0x41, 0xce, + 0x47, 0x71, 0xff, 0xcb, 0x25, 0x76, 0x63, 0x32, 0xb3, 0x0e, 0x3b, 0x2b, 0xe9, 0x43, 0x76, 0x19, + 0xe7, 0x48, 0x60, 0x7a, 0x9f, 0x92, 0xbd, 0xe4, 0x60, 0xf3, 0xfe, 0x5d, 0x7e, 0xd6, 0xc3, 0xa3, + 0x41, 0xd0, 0xdc, 0xc3, 0xb0, 0x71, 0x67, 0xa7, 0x1b, 0x6c, 0xb3, 0xa3, 0xa7, 0x96, 0xed, 0xe0, + 0xac, 0x40, 0x15, 0x74, 0x01, 0x41, 0x18, 0x69, 0x65, 0x05, 0x06, 0x2c, 0xb5, 0xb1, 0x8f, 0xfe, + 0x1a, 0xcb, 0xd7, 0xee, 0xc6, 0xc6, 0x5b, 0x3f, 0x67, 0x2f, 0x57, 0xa3, 0xec, 0xf4, 0x22, 0xcb, + 0xfe, 0xbc, 0x94, 0x12, 0xbb, 0x2e, 0x95, 0x02, 0x44, 0x61, 0x81, 0x3e, 0xb8, 0x30, 0x6d, 0x39, + 0x5e, 0xfc, 0x2b, 0x07, 0xff, 0x35, 0x2f, 0xb2, 0x6d, 0x45, 0xf1, 0x55, 0xd4, 0xb2, 0xef, 0x17, + 0xd8, 0xf6, 0x1a, 0x5b, 0x3a, 0x65, 0x1b, 0x75, 0x5f, 0xcb, 0xf0, 0xe6, 0x7f, 0x32, 0xf0, 0x65, + 0xca, 0x92, 0x66, 0x59, 0x92, 0x2d, 0x12, 0x76, 0x75, 0xa5, 0xa5, 0x1f, 0xd9, 0x15, 0x59, 0x4a, + 0x4f, 0x10, 0xda, 0x76, 0x75, 0x3e, 0xed, 0xbc, 0xa9, 0x89, 0x28, 0x6d, 0x69, 0xf6, 0x9a, 0x5d, + 0xeb, 0x0e, 0xd2, 0x43, 0x76, 0xcf, 0x48, 0xef, 0xa1, 0x14, 0xe5, 0xdc, 0x4a, 0xa3, 0x95, 0xe8, + 0x14, 0x2a, 0x37, 0xb3, 0xd4, 0x7b, 0xb0, 0x97, 0x1c, 0x6c, 0x0d, 0x77, 0xa3, 0xed, 0x79, 0x74, + 0x8d, 0x56, 0xa6, 0x67, 0xb5, 0xe7, 0x71, 0xc9, 0xee, 0x4c, 0xac, 0x0f, 0xe2, 0xec, 0x53, 0x04, + 0x9c, 0x50, 0x7a, 0x9b, 0x1f, 0xcd, 0xac, 0xf6, 0x10, 0x9a, 0x7f, 0xc1, 0x11, 0x58, 0x74, 0x01, + 0x7b, 0xfb, 0xcb, 0x03, 0xdc, 0xfc, 0xed, 0x00, 0xc3, 0x9d, 0x3a, 0xec, 0xa8, 0x56, 0x9f, 0x58, + 0xe5, 0x47, 0xb5, 0x76, 0x78, 0x42, 0x4f, 0xdf, 0x7d, 0x5e, 0xf4, 0x93, 0xaf, 0x8b, 0x7e, 0xf2, + 0x6d, 0xd1, 0x4f, 0xde, 0x0e, 0x2b, 0x4d, 0xf5, 0x6a, 0x9d, 0xcc, 0x2d, 0x50, 0xae, 0x15, 0x14, + 0x10, 0xaa, 0x7c, 0x0c, 0xf2, 0x98, 0xc6, 0x85, 0xa3, 0x81, 0xb6, 0x15, 0x20, 0x0d, 0x26, 0xa4, + 0x07, 0x56, 0x92, 0x7e, 0x0f, 0xb9, 0x9f, 0x56, 0xf9, 0x84, 0x74, 0xde, 0x1c, 0x01, 0xf3, 0x88, + 0x9c, 0xa3, 0x1a, 0x83, 0x91, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xb8, 0x13, 0x56, 0xc7, + 0x03, 0x00, 0x00, +} + +func (m *JunosAncpStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdAncpStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpStatsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpStatsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpStatsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdAncpStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AccessNetwork != nil { + { + size, err := m.AccessNetwork.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdAncpStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ancp != nil { + { + size, err := m.Ancp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdAncpStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Adapter != nil { + { + size, err := m.Adapter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdAncpStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MappedDynamicSubscriberCount != nil { + i = encodeVarintBbeSmgdAncpStatsOc(dAtA, i, uint64(*m.MappedDynamicSubscriberCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeSmgdAncpStatsOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeSmgdAncpStatsOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosAncpStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeSmgdAncpStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpStatsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeSmgdAncpStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AccessNetwork != nil { + l = m.AccessNetwork.Size() + n += 2 + l + sovBbeSmgdAncpStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ancp != nil { + l = m.Ancp.Size() + n += 2 + l + sovBbeSmgdAncpStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Adapter != nil { + l = m.Adapter.Size() + n += 2 + l + sovBbeSmgdAncpStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MappedDynamicSubscriberCount != nil { + n += 2 + sovBbeSmgdAncpStatsOc(uint64(*m.MappedDynamicSubscriberCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeSmgdAncpStatsOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeSmgdAncpStatsOc(x uint64) (n int) { + return sovBbeSmgdAncpStatsOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosAncpStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_ancp_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_ancp_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosAncpStatsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdAncpStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpStatsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosAncpStatsSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdAncpStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessNetwork", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AccessNetwork == nil { + m.AccessNetwork = &JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType{} + } + if err := m.AccessNetwork.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdAncpStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: access_network_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: access_network_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ancp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ancp == nil { + m.Ancp = &JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType{} + } + if err := m.Ancp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdAncpStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ancp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ancp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Adapter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Adapter == nil { + m.Adapter = &JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType{} + } + if err := m.Adapter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdAncpStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosAncpStatsSystemTypeSubscriberManagementTypeAccessNetworkTypeAncpTypeAdapterType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adapter_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adapter_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MappedDynamicSubscriberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MappedDynamicSubscriberCount = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdAncpStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdAncpStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeSmgdAncpStatsOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdAncpStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeSmgdAncpStatsOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeSmgdAncpStatsOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeSmgdAncpStatsOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeSmgdAncpStatsOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeSmgdAncpStatsOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeSmgdAncpStatsOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-smgd_ancp_stats_oc.proto b/schema/bbe-smgd_ancp_stats_oc.proto new file mode 100755 index 0000000..a3b6282 --- /dev/null +++ b/schema/bbe-smgd_ancp_stats_oc.proto @@ -0,0 +1,26 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_ancp_stats jnpr_junos_ancp_stats_ext = 34; +} + +message junos_ancp_stats { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional access_network_type access_network = 151; + message access_network_type { + optional ancp_type ancp = 151; + message ancp_type { + optional adapter_type adapter = 151; + message adapter_type { + optional uint32 mapped_dynamic_subscriber_count = 51; + } + } + } + } + } +} diff --git a/schema/bbe-smgd_pppoe_stats_oc.pb.go b/schema/bbe-smgd_pppoe_stats_oc.pb.go new file mode 100644 index 0000000..bd71f35 --- /dev/null +++ b/schema/bbe-smgd_pppoe_stats_oc.pb.go @@ -0,0 +1,2113 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-smgd_pppoe_stats_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPppoeStats struct { + System *JunosPppoeStatsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppoeStats) Reset() { *m = JunosPppoeStats{} } +func (m *JunosPppoeStats) String() string { return proto.CompactTextString(m) } +func (*JunosPppoeStats) ProtoMessage() {} +func (*JunosPppoeStats) Descriptor() ([]byte, []int) { + return fileDescriptor_f41d360f8015fe44, []int{0} +} +func (m *JunosPppoeStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppoeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppoeStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppoeStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppoeStats.Merge(m, src) +} +func (m *JunosPppoeStats) XXX_Size() int { + return m.Size() +} +func (m *JunosPppoeStats) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppoeStats.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppoeStats proto.InternalMessageInfo + +func (m *JunosPppoeStats) GetSystem() *JunosPppoeStatsSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosPppoeStatsSystemType struct { + SubscriberManagement *JunosPppoeStatsSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppoeStatsSystemType) Reset() { *m = JunosPppoeStatsSystemType{} } +func (m *JunosPppoeStatsSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosPppoeStatsSystemType) ProtoMessage() {} +func (*JunosPppoeStatsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_f41d360f8015fe44, []int{0, 0} +} +func (m *JunosPppoeStatsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppoeStatsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppoeStatsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppoeStatsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppoeStatsSystemType.Merge(m, src) +} +func (m *JunosPppoeStatsSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppoeStatsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppoeStatsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppoeStatsSystemType proto.InternalMessageInfo + +func (m *JunosPppoeStatsSystemType) GetSubscriberManagement() *JunosPppoeStatsSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosPppoeStatsSystemTypeSubscriberManagementType struct { + ClientProtocols *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType `protobuf:"bytes,151,opt,name=client_protocols,json=clientProtocols" json:"client_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) Reset() { + *m = JunosPppoeStatsSystemTypeSubscriberManagementType{} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppoeStatsSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosPppoeStatsSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_f41d360f8015fe44, []int{0, 0, 0} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) GetClientProtocols() *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType { + if m != nil { + return m.ClientProtocols + } + return nil +} + +type JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType struct { + Pppoe *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType `protobuf:"bytes,151,opt,name=pppoe" json:"pppoe,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) Reset() { + *m = JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType{} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) ProtoMessage() {} +func (*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_f41d360f8015fe44, []int{0, 0, 0, 0} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType.Merge(m, src) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType proto.InternalMessageInfo + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) GetPppoe() *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType { + if m != nil { + return m.Pppoe + } + return nil +} + +type JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType struct { + Statistics *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) Reset() { + *m = JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType{} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) ProtoMessage() { +} +func (*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) Descriptor() ([]byte, []int) { + return fileDescriptor_f41d360f8015fe44, []int{0, 0, 0, 0, 0} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType.Merge(m, src) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType proto.InternalMessageInfo + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) GetStatistics() *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +type JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType struct { + PadiPacketsSent *uint32 `protobuf:"varint,51,opt,name=padi_packets_sent,json=padiPacketsSent" json:"padi_packets_sent,omitempty"` + PadiPacketsReceived *uint32 `protobuf:"varint,52,opt,name=padi_packets_received,json=padiPacketsReceived" json:"padi_packets_received,omitempty"` + PadoPacketsSent *uint32 `protobuf:"varint,53,opt,name=pado_packets_sent,json=padoPacketsSent" json:"pado_packets_sent,omitempty"` + PadoPacketsReceived *uint32 `protobuf:"varint,54,opt,name=pado_packets_received,json=padoPacketsReceived" json:"pado_packets_received,omitempty"` + PadrPacketsSent *uint32 `protobuf:"varint,55,opt,name=padr_packets_sent,json=padrPacketsSent" json:"padr_packets_sent,omitempty"` + PadrPacketsReceived *uint32 `protobuf:"varint,56,opt,name=padr_packets_received,json=padrPacketsReceived" json:"padr_packets_received,omitempty"` + PadsPacketsSent *uint32 `protobuf:"varint,57,opt,name=pads_packets_sent,json=padsPacketsSent" json:"pads_packets_sent,omitempty"` + PadsPacketsReceived *uint32 `protobuf:"varint,58,opt,name=pads_packets_received,json=padsPacketsReceived" json:"pads_packets_received,omitempty"` + PadtPacketsSent *uint32 `protobuf:"varint,59,opt,name=padt_packets_sent,json=padtPacketsSent" json:"padt_packets_sent,omitempty"` + PadtPacketsReceived *uint32 `protobuf:"varint,60,opt,name=padt_packets_received,json=padtPacketsReceived" json:"padt_packets_received,omitempty"` + ServiceErrorSent *uint32 `protobuf:"varint,61,opt,name=service_error_sent,json=serviceErrorSent" json:"service_error_sent,omitempty"` + ServiceErrorReceived *uint32 `protobuf:"varint,62,opt,name=service_error_received,json=serviceErrorReceived" json:"service_error_received,omitempty"` + AcErrorSent *uint32 `protobuf:"varint,63,opt,name=ac_error_sent,json=acErrorSent" json:"ac_error_sent,omitempty"` + AcErrorReceived *uint32 `protobuf:"varint,64,opt,name=ac_error_received,json=acErrorReceived" json:"ac_error_received,omitempty"` + GenericErrorSent *uint32 `protobuf:"varint,65,opt,name=generic_error_sent,json=genericErrorSent" json:"generic_error_sent,omitempty"` + GenericErrorReceived *uint32 `protobuf:"varint,66,opt,name=generic_error_received,json=genericErrorReceived" json:"generic_error_received,omitempty"` + MalformedPacketsReceived *uint32 `protobuf:"varint,67,opt,name=malformed_packets_received,json=malformedPacketsReceived" json:"malformed_packets_received,omitempty"` + UnknownPacketsReceived *uint32 `protobuf:"varint,68,opt,name=unknown_packets_received,json=unknownPacketsReceived" json:"unknown_packets_received,omitempty"` + EraInflightCount *uint32 `protobuf:"varint,69,opt,name=era_inflight_count,json=eraInflightCount" json:"era_inflight_count,omitempty"` + EraReportedSuccesses *uint32 `protobuf:"varint,70,opt,name=era_reported_successes,json=eraReportedSuccesses" json:"era_reported_successes,omitempty"` + EraReportedFailures *uint32 `protobuf:"varint,71,opt,name=era_reported_failures,json=eraReportedFailures" json:"era_reported_failures,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) Reset() { + *m = JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType{} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) ProtoMessage() { +} +func (*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_f41d360f8015fe44, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType.Merge(m, src) +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadiPacketsSent() uint32 { + if m != nil && m.PadiPacketsSent != nil { + return *m.PadiPacketsSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadiPacketsReceived() uint32 { + if m != nil && m.PadiPacketsReceived != nil { + return *m.PadiPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadoPacketsSent() uint32 { + if m != nil && m.PadoPacketsSent != nil { + return *m.PadoPacketsSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadoPacketsReceived() uint32 { + if m != nil && m.PadoPacketsReceived != nil { + return *m.PadoPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadrPacketsSent() uint32 { + if m != nil && m.PadrPacketsSent != nil { + return *m.PadrPacketsSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadrPacketsReceived() uint32 { + if m != nil && m.PadrPacketsReceived != nil { + return *m.PadrPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadsPacketsSent() uint32 { + if m != nil && m.PadsPacketsSent != nil { + return *m.PadsPacketsSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadsPacketsReceived() uint32 { + if m != nil && m.PadsPacketsReceived != nil { + return *m.PadsPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadtPacketsSent() uint32 { + if m != nil && m.PadtPacketsSent != nil { + return *m.PadtPacketsSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetPadtPacketsReceived() uint32 { + if m != nil && m.PadtPacketsReceived != nil { + return *m.PadtPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetServiceErrorSent() uint32 { + if m != nil && m.ServiceErrorSent != nil { + return *m.ServiceErrorSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetServiceErrorReceived() uint32 { + if m != nil && m.ServiceErrorReceived != nil { + return *m.ServiceErrorReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetAcErrorSent() uint32 { + if m != nil && m.AcErrorSent != nil { + return *m.AcErrorSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetAcErrorReceived() uint32 { + if m != nil && m.AcErrorReceived != nil { + return *m.AcErrorReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetGenericErrorSent() uint32 { + if m != nil && m.GenericErrorSent != nil { + return *m.GenericErrorSent + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetGenericErrorReceived() uint32 { + if m != nil && m.GenericErrorReceived != nil { + return *m.GenericErrorReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetMalformedPacketsReceived() uint32 { + if m != nil && m.MalformedPacketsReceived != nil { + return *m.MalformedPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetUnknownPacketsReceived() uint32 { + if m != nil && m.UnknownPacketsReceived != nil { + return *m.UnknownPacketsReceived + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetEraInflightCount() uint32 { + if m != nil && m.EraInflightCount != nil { + return *m.EraInflightCount + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetEraReportedSuccesses() uint32 { + if m != nil && m.EraReportedSuccesses != nil { + return *m.EraReportedSuccesses + } + return 0 +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) GetEraReportedFailures() uint32 { + if m != nil && m.EraReportedFailures != nil { + return *m.EraReportedFailures + } + return 0 +} + +var E_JnprJunosPppoeStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPppoeStats)(nil), + Field: 35, + Name: "jnpr_junos_pppoe_stats_ext", + Tag: "bytes,35,opt,name=jnpr_junos_pppoe_stats_ext", + Filename: "bbe-smgd_pppoe_stats_oc.proto", +} + +func init() { + proto.RegisterType((*JunosPppoeStats)(nil), "junos_pppoe_stats") + proto.RegisterType((*JunosPppoeStatsSystemType)(nil), "junos_pppoe_stats.system_type") + proto.RegisterType((*JunosPppoeStatsSystemTypeSubscriberManagementType)(nil), "junos_pppoe_stats.system_type.subscriber_management_type") + proto.RegisterType((*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType)(nil), "junos_pppoe_stats.system_type.subscriber_management_type.client_protocols_type") + proto.RegisterType((*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType)(nil), "junos_pppoe_stats.system_type.subscriber_management_type.client_protocols_type.pppoe_type") + proto.RegisterType((*JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType)(nil), "junos_pppoe_stats.system_type.subscriber_management_type.client_protocols_type.pppoe_type.statistics_type") + proto.RegisterExtension(E_JnprJunosPppoeStatsExt) +} + +func init() { proto.RegisterFile("bbe-smgd_pppoe_stats_oc.proto", fileDescriptor_f41d360f8015fe44) } + +var fileDescriptor_f41d360f8015fe44 = []byte{ + // 718 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcb, 0x6e, 0xd3, 0x4c, + 0x18, 0x86, 0x95, 0xc5, 0xff, 0xeb, 0xff, 0x27, 0x54, 0x6d, 0xdd, 0x03, 0x96, 0x25, 0xa2, 0xaa, + 0x6c, 0xaa, 0x8a, 0x38, 0x52, 0x29, 0xf4, 0x40, 0x39, 0xb5, 0xb4, 0x88, 0x4a, 0x40, 0x95, 0xee, + 0xba, 0x31, 0x13, 0xe7, 0xab, 0x33, 0x49, 0x3c, 0x63, 0x66, 0xbe, 0xf4, 0x20, 0x2e, 0x81, 0x0b, + 0x40, 0x5c, 0x05, 0x3b, 0x6e, 0x80, 0x0d, 0x4b, 0xee, 0x80, 0xaa, 0x57, 0x82, 0xc6, 0xe3, 0x4c, + 0xec, 0x38, 0xb0, 0x40, 0xb0, 0xcc, 0xf7, 0xbe, 0xef, 0xf3, 0xbd, 0xe3, 0x8c, 0x86, 0xdc, 0x6a, + 0xb5, 0xa0, 0xae, 0xe2, 0xa8, 0x1d, 0x24, 0x49, 0x22, 0x20, 0x50, 0x48, 0x51, 0x05, 0x22, 0xf4, + 0x13, 0x29, 0x50, 0x78, 0x73, 0x08, 0x7d, 0x88, 0x01, 0xe5, 0x65, 0x80, 0x22, 0x31, 0xc3, 0xe5, + 0x4f, 0x53, 0x64, 0xb6, 0x3b, 0xe0, 0x42, 0xe5, 0x33, 0xce, 0x06, 0xf9, 0x57, 0x5d, 0x2a, 0x84, + 0xd8, 0xfd, 0x50, 0x59, 0xaa, 0xac, 0x54, 0xd7, 0x6a, 0x7e, 0xc9, 0xe4, 0x1b, 0x47, 0x80, 0x97, + 0x09, 0x34, 0x33, 0xbb, 0x77, 0x75, 0x83, 0x54, 0x73, 0x73, 0x47, 0x90, 0x05, 0x35, 0x68, 0xa9, + 0x50, 0xb2, 0x16, 0xc8, 0x20, 0xa6, 0x9c, 0x46, 0x10, 0x03, 0xc7, 0x21, 0x77, 0xeb, 0xd7, 0x5c, + 0x7f, 0x62, 0xd8, 0xac, 0x9c, 0x1f, 0x69, 0x2f, 0xad, 0xe4, 0x7d, 0xaf, 0x12, 0xef, 0xe7, 0x21, + 0xe7, 0x1d, 0x99, 0x09, 0xfb, 0x4c, 0xff, 0x4c, 0x8f, 0x1f, 0x8a, 0xbe, 0x1a, 0x56, 0x79, 0xfd, + 0xdb, 0x55, 0xfc, 0x71, 0xa4, 0x29, 0x38, 0x6d, 0xc6, 0x47, 0xc3, 0xa9, 0xf7, 0x85, 0x90, 0x85, + 0x89, 0x56, 0xe7, 0x2d, 0xf9, 0x27, 0x5d, 0x3b, 0xec, 0x72, 0xf2, 0x87, 0xbb, 0xf8, 0x06, 0x94, + 0xd6, 0x32, 0x9b, 0xbc, 0xcf, 0xff, 0x13, 0x32, 0x9a, 0x3a, 0xef, 0x2b, 0x84, 0xe8, 0x3d, 0x4c, + 0x21, 0x0b, 0xed, 0x37, 0xe9, 0xfe, 0xbd, 0x1e, 0xfe, 0x68, 0x9b, 0xe9, 0x95, 0x5b, 0xef, 0x7d, + 0xfc, 0x8f, 0x4c, 0x8f, 0xe9, 0xce, 0x2a, 0x99, 0x4d, 0x68, 0x9b, 0x05, 0x09, 0x0d, 0x7b, 0x80, + 0x2a, 0x50, 0xfa, 0x1a, 0xdd, 0x5d, 0xaa, 0xac, 0x4c, 0x35, 0xa7, 0xb5, 0x70, 0x64, 0xe6, 0xc7, + 0xc0, 0xd1, 0x59, 0x23, 0x0b, 0x05, 0xaf, 0x84, 0x10, 0xd8, 0x19, 0xb4, 0xdd, 0xf5, 0xd4, 0x3f, + 0x97, 0xf3, 0x37, 0x33, 0x29, 0xe3, 0x8b, 0x22, 0xff, 0x9e, 0xe5, 0x8b, 0x32, 0x5f, 0x94, 0xf9, + 0xf7, 0x2d, 0x5f, 0x4c, 0xe6, 0xcb, 0x22, 0x7f, 0xc3, 0xf2, 0x65, 0x99, 0x2f, 0xcb, 0xfc, 0x4d, + 0xcb, 0x97, 0x93, 0xf9, 0xaa, 0xc8, 0xdf, 0xb2, 0x7c, 0x55, 0xe6, 0xab, 0x32, 0x7f, 0xdb, 0xf2, + 0xd5, 0x64, 0x3e, 0x16, 0xf9, 0x0f, 0x2c, 0x1f, 0xcb, 0x7c, 0x2c, 0xf3, 0x77, 0x2c, 0x1f, 0xc7, + 0xf9, 0x77, 0x88, 0xa3, 0x40, 0x9e, 0xb1, 0x10, 0x02, 0x90, 0x52, 0x48, 0xb3, 0xe0, 0x61, 0x1a, + 0x98, 0xc9, 0x94, 0x7d, 0x2d, 0xa4, 0x1b, 0xd6, 0xc9, 0x62, 0xd1, 0x6d, 0x57, 0x3c, 0x4a, 0x13, + 0xf3, 0xf9, 0x84, 0xdd, 0xb1, 0x4c, 0xa6, 0x68, 0x98, 0xc7, 0x3f, 0x4e, 0xcd, 0x55, 0x1a, 0x8e, + 0xc8, 0xab, 0x64, 0xd6, 0x7a, 0x2c, 0xf4, 0x89, 0x39, 0x67, 0xe6, 0xcb, 0x77, 0x8e, 0x80, 0x83, + 0x64, 0x05, 0xe8, 0x53, 0xd3, 0x39, 0x53, 0x0a, 0x9d, 0x8b, 0x6e, 0x8b, 0xdf, 0x35, 0x9d, 0xf3, + 0x09, 0xbb, 0x63, 0x87, 0x78, 0x31, 0xed, 0x9f, 0x0a, 0x19, 0x43, 0xbb, 0xfc, 0x41, 0xf7, 0xd2, + 0xa4, 0x6b, 0x1d, 0xe3, 0x5f, 0x75, 0x93, 0xb8, 0x03, 0xde, 0xe3, 0xe2, 0x9c, 0x97, 0xb3, 0xcf, + 0xd2, 0xec, 0x62, 0xa6, 0x4f, 0xf8, 0x3f, 0x40, 0xd2, 0x80, 0xf1, 0xd3, 0x3e, 0x8b, 0x3a, 0x18, + 0x84, 0x62, 0xc0, 0xd1, 0xdd, 0x37, 0x67, 0x03, 0x49, 0x5f, 0x64, 0xc2, 0x9e, 0x9e, 0xeb, 0xb3, + 0x69, 0xb7, 0x84, 0x44, 0x48, 0x84, 0x76, 0xa0, 0x06, 0x61, 0x08, 0x4a, 0x81, 0x72, 0x0f, 0xcc, + 0xd9, 0x40, 0xd2, 0x66, 0x26, 0x1e, 0x0f, 0x35, 0x7d, 0x4f, 0x0a, 0xa9, 0x53, 0xca, 0xfa, 0x03, + 0x09, 0xca, 0x7d, 0x6e, 0xee, 0x49, 0x2e, 0x74, 0x90, 0x49, 0xdb, 0x11, 0xf1, 0xba, 0x3c, 0x91, + 0x41, 0xe9, 0x65, 0x0a, 0xe0, 0x02, 0x9d, 0x9b, 0xfe, 0xe1, 0x80, 0xb3, 0x04, 0xe4, 0x2b, 0xc0, + 0x73, 0x21, 0x7b, 0xfa, 0x3e, 0x2a, 0x21, 0x95, 0x7b, 0x3b, 0x7d, 0xd0, 0x9c, 0xf2, 0x83, 0xd6, + 0x5c, 0xd4, 0xb8, 0x43, 0x3d, 0x3e, 0xd2, 0xd3, 0x63, 0x3d, 0xdc, 0xbf, 0xc0, 0xdd, 0x37, 0x5f, + 0xaf, 0x6b, 0x95, 0x6f, 0xd7, 0xb5, 0xca, 0xd5, 0x75, 0xad, 0x72, 0xd2, 0x8c, 0x18, 0xea, 0xb0, + 0x66, 0xfb, 0x1c, 0xb0, 0xc1, 0x42, 0x68, 0x81, 0x8c, 0x1a, 0x1d, 0xa0, 0x7d, 0xec, 0xb4, 0x04, + 0xd6, 0x19, 0x8f, 0x40, 0x61, 0xbd, 0x8b, 0xac, 0xce, 0x29, 0xb2, 0x33, 0x68, 0x24, 0xbd, 0xa8, + 0xd1, 0x45, 0xd6, 0xa0, 0x6d, 0x9a, 0x20, 0x48, 0xd5, 0x30, 0xad, 0x1b, 0x2a, 0xec, 0x40, 0x4c, + 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x0b, 0x2c, 0xfa, 0xb1, 0x07, 0x00, 0x00, +} + +func (m *JunosPppoeStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppoeStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppoeStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppoeStatsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppoeStatsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppoeStatsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientProtocols != nil { + { + size, err := m.ClientProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Pppoe != nil { + { + size, err := m.Pppoe.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EraReportedFailures != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.EraReportedFailures)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.EraReportedSuccesses != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.EraReportedSuccesses)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.EraInflightCount != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.EraInflightCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.UnknownPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.UnknownPacketsReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.MalformedPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.MalformedPacketsReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.GenericErrorReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.GenericErrorReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.GenericErrorSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.GenericErrorSent)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.AcErrorReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.AcErrorReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.AcErrorSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.AcErrorSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.ServiceErrorReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.ServiceErrorReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.ServiceErrorSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.ServiceErrorSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.PadtPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadtPacketsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.PadtPacketsSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadtPacketsSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.PadsPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadsPacketsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.PadsPacketsSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadsPacketsSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.PadrPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadrPacketsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.PadrPacketsSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadrPacketsSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.PadoPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadoPacketsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.PadoPacketsSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadoPacketsSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.PadiPacketsReceived != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadiPacketsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PadiPacketsSent != nil { + i = encodeVarintBbeSmgdPppoeStatsOc(dAtA, i, uint64(*m.PadiPacketsSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeSmgdPppoeStatsOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeSmgdPppoeStatsOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPppoeStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeSmgdPppoeStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppoeStatsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeSmgdPppoeStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ClientProtocols != nil { + l = m.ClientProtocols.Size() + n += 2 + l + sovBbeSmgdPppoeStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pppoe != nil { + l = m.Pppoe.Size() + n += 2 + l + sovBbeSmgdPppoeStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovBbeSmgdPppoeStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PadiPacketsSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadiPacketsSent)) + } + if m.PadiPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadiPacketsReceived)) + } + if m.PadoPacketsSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadoPacketsSent)) + } + if m.PadoPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadoPacketsReceived)) + } + if m.PadrPacketsSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadrPacketsSent)) + } + if m.PadrPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadrPacketsReceived)) + } + if m.PadsPacketsSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadsPacketsSent)) + } + if m.PadsPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadsPacketsReceived)) + } + if m.PadtPacketsSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadtPacketsSent)) + } + if m.PadtPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.PadtPacketsReceived)) + } + if m.ServiceErrorSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.ServiceErrorSent)) + } + if m.ServiceErrorReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.ServiceErrorReceived)) + } + if m.AcErrorSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.AcErrorSent)) + } + if m.AcErrorReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.AcErrorReceived)) + } + if m.GenericErrorSent != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.GenericErrorSent)) + } + if m.GenericErrorReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.GenericErrorReceived)) + } + if m.MalformedPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.MalformedPacketsReceived)) + } + if m.UnknownPacketsReceived != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.UnknownPacketsReceived)) + } + if m.EraInflightCount != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.EraInflightCount)) + } + if m.EraReportedSuccesses != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.EraReportedSuccesses)) + } + if m.EraReportedFailures != nil { + n += 2 + sovBbeSmgdPppoeStatsOc(uint64(*m.EraReportedFailures)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeSmgdPppoeStatsOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeSmgdPppoeStatsOc(x uint64) (n int) { + return sovBbeSmgdPppoeStatsOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPppoeStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pppoe_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pppoe_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosPppoeStatsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdPppoeStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppoeStatsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosPppoeStatsSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdPppoeStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClientProtocols == nil { + m.ClientProtocols = &JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType{} + } + if err := m.ClientProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdPppoeStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: client_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: client_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pppoe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pppoe == nil { + m.Pppoe = &JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType{} + } + if err := m.Pppoe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdPppoeStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pppoe_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pppoe_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdPppoeStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppoeStatsSystemTypeSubscriberManagementTypeClientProtocolsTypePppoeTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadiPacketsSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadiPacketsSent = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadiPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadiPacketsReceived = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadoPacketsSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadoPacketsSent = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadoPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadoPacketsReceived = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadrPacketsSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadrPacketsSent = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadrPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadrPacketsReceived = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadsPacketsSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadsPacketsSent = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadsPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadsPacketsReceived = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadtPacketsSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadtPacketsSent = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PadtPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PadtPacketsReceived = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceErrorSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServiceErrorSent = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceErrorReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServiceErrorReceived = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcErrorSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcErrorSent = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcErrorReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AcErrorReceived = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GenericErrorSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GenericErrorSent = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GenericErrorReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GenericErrorReceived = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MalformedPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MalformedPacketsReceived = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownPacketsReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnknownPacketsReceived = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraInflightCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraInflightCount = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraReportedSuccesses", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraReportedSuccesses = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraReportedFailures", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraReportedFailures = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdPppoeStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeSmgdPppoeStatsOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdPppoeStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeSmgdPppoeStatsOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeSmgdPppoeStatsOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeSmgdPppoeStatsOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeSmgdPppoeStatsOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeSmgdPppoeStatsOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeSmgdPppoeStatsOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-smgd_pppoe_stats_oc.proto b/schema/bbe-smgd_pppoe_stats_oc.proto new file mode 100755 index 0000000..13dbb8e --- /dev/null +++ b/schema/bbe-smgd_pppoe_stats_oc.proto @@ -0,0 +1,46 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pppoe_stats jnpr_junos_pppoe_stats_ext = 35; +} + +message junos_pppoe_stats { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional client_protocols_type client_protocols = 151; + message client_protocols_type { + optional pppoe_type pppoe = 151; + message pppoe_type { + optional statistics_type statistics = 151; + message statistics_type { + optional uint32 padi_packets_sent = 51; + optional uint32 padi_packets_received = 52; + optional uint32 pado_packets_sent = 53; + optional uint32 pado_packets_received = 54; + optional uint32 padr_packets_sent = 55; + optional uint32 padr_packets_received = 56; + optional uint32 pads_packets_sent = 57; + optional uint32 pads_packets_received = 58; + optional uint32 padt_packets_sent = 59; + optional uint32 padt_packets_received = 60; + optional uint32 service_error_sent = 61; + optional uint32 service_error_received = 62; + optional uint32 ac_error_sent = 63; + optional uint32 ac_error_received = 64; + optional uint32 generic_error_sent = 65; + optional uint32 generic_error_received = 66; + optional uint32 malformed_packets_received = 67; + optional uint32 unknown_packets_received = 68; + optional uint32 era_inflight_count = 69; + optional uint32 era_reported_successes = 70; + optional uint32 era_reported_failures = 71; + } + } + } + } + } +} diff --git a/schema/bbe-smgd_rsmon_debug_oc.pb.go b/schema/bbe-smgd_rsmon_debug_oc.pb.go new file mode 100644 index 0000000..4a943c1 --- /dev/null +++ b/schema/bbe-smgd_rsmon_debug_oc.pb.go @@ -0,0 +1,1819 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-smgd_rsmon_debug_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type DebugRsmonDebug struct { + System *DebugRsmonDebugSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebug) Reset() { *m = DebugRsmonDebug{} } +func (m *DebugRsmonDebug) String() string { return proto.CompactTextString(m) } +func (*DebugRsmonDebug) ProtoMessage() {} +func (*DebugRsmonDebug) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0} +} +func (m *DebugRsmonDebug) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebug) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebug.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebug) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebug.Merge(m, src) +} +func (m *DebugRsmonDebug) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebug) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebug.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebug proto.InternalMessageInfo + +func (m *DebugRsmonDebug) GetSystem() *DebugRsmonDebugSystemType { + if m != nil { + return m.System + } + return nil +} + +type DebugRsmonDebugSystemType struct { + SubscriberManagement *DebugRsmonDebugSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemType) Reset() { *m = DebugRsmonDebugSystemType{} } +func (m *DebugRsmonDebugSystemType) String() string { return proto.CompactTextString(m) } +func (*DebugRsmonDebugSystemType) ProtoMessage() {} +func (*DebugRsmonDebugSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0} +} +func (m *DebugRsmonDebugSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemType.Merge(m, src) +} +func (m *DebugRsmonDebugSystemType) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemType proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemType) GetSubscriberManagement() *DebugRsmonDebugSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type DebugRsmonDebugSystemTypeSubscriberManagementType struct { + Infra *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType `protobuf:"bytes,151,opt,name=infra" json:"infra,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) Reset() { + *m = DebugRsmonDebugSystemTypeSubscriberManagementType{} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*DebugRsmonDebugSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0, 0} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) GetInfra() *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType { + if m != nil { + return m.Infra + } + return nil +} + +type DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType struct { + ResourceMonitor *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType `protobuf:"bytes,151,opt,name=resource_monitor,json=resourceMonitor" json:"resource_monitor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) Reset() { + *m = DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType{} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) String() string { + return proto.CompactTextString(m) +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) ProtoMessage() {} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0, 0, 0} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType.Merge(m, src) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) GetResourceMonitor() *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType { + if m != nil { + return m.ResourceMonitor + } + return nil +} + +type DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType struct { + Fpcs *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType `protobuf:"bytes,151,opt,name=fpcs" json:"fpcs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Reset() { + *m = DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType{} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) String() string { + return proto.CompactTextString(m) +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) ProtoMessage() { +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0, 0, 0, 0} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.Merge(m, src) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) GetFpcs() *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType { + if m != nil { + return m.Fpcs + } + return nil +} + +type DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType struct { + Fpc []*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList `protobuf:"bytes,151,rep,name=fpc" json:"fpc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Reset() { + *m = DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType{} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) String() string { + return proto.CompactTextString(m) +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) ProtoMessage() { +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0, 0, 0, 0, 0} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType.Merge(m, src) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) GetFpc() []*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList { + if m != nil { + return m.Fpc + } + return nil +} + +type DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList struct { + Slot *uint32 `protobuf:"varint,61,opt,name=slot" json:"slot,omitempty"` + Statistics *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Reset() { + *m = DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList{} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) String() string { + return proto.CompactTextString(m) +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) ProtoMessage() { +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList.Merge(m, src) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) GetSlot() uint32 { + if m != nil && m.Slot != nil { + return *m.Slot + } + return 0 +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) GetStatistics() *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +type DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType struct { + AverageRtt *uint32 `protobuf:"varint,61,opt,name=average_rtt,json=averageRtt" json:"average_rtt,omitempty"` + CurrentRtt *uint32 `protobuf:"varint,62,opt,name=current_rtt,json=currentRtt" json:"current_rtt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Reset() { + *m = DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType{} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) ProtoMessage() { +} +func (*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_ef015e367e22db8a, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType.Merge(m, src) +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType proto.InternalMessageInfo + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetAverageRtt() uint32 { + if m != nil && m.AverageRtt != nil { + return *m.AverageRtt + } + return 0 +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetCurrentRtt() uint32 { + if m != nil && m.CurrentRtt != nil { + return *m.CurrentRtt + } + return 0 +} + +var E_JnprDebugRsmonDebugExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*DebugRsmonDebug)(nil), + Field: 36, + Name: "jnpr_debug_rsmon_debug_ext", + Tag: "bytes,36,opt,name=jnpr_debug_rsmon_debug_ext", + Filename: "bbe-smgd_rsmon_debug_oc.proto", +} + +func init() { + proto.RegisterType((*DebugRsmonDebug)(nil), "debug_rsmon_debug") + proto.RegisterType((*DebugRsmonDebugSystemType)(nil), "debug_rsmon_debug.system_type") + proto.RegisterType((*DebugRsmonDebugSystemTypeSubscriberManagementType)(nil), "debug_rsmon_debug.system_type.subscriber_management_type") + proto.RegisterType((*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType)(nil), "debug_rsmon_debug.system_type.subscriber_management_type.infra_type") + proto.RegisterType((*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType)(nil), "debug_rsmon_debug.system_type.subscriber_management_type.infra_type.resource_monitor_type") + proto.RegisterType((*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType)(nil), "debug_rsmon_debug.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type") + proto.RegisterType((*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList)(nil), "debug_rsmon_debug.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list") + proto.RegisterType((*DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType)(nil), "debug_rsmon_debug.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.statistics_type") + proto.RegisterExtension(E_JnprDebugRsmonDebugExt) +} + +func init() { proto.RegisterFile("bbe-smgd_rsmon_debug_oc.proto", fileDescriptor_ef015e367e22db8a) } + +var fileDescriptor_ef015e367e22db8a = []byte{ + // 522 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x90, 0xb1, 0x6f, 0xd3, 0x40, + 0x14, 0xc6, 0xe5, 0xb6, 0x29, 0xe1, 0x45, 0xa8, 0x60, 0x28, 0x04, 0x4b, 0x84, 0x0a, 0x31, 0x64, + 0xc9, 0x59, 0xea, 0x82, 0x40, 0x02, 0xa1, 0xaa, 0x2c, 0x48, 0x65, 0x70, 0xb7, 0x32, 0x1c, 0x67, + 0xe7, 0xc5, 0xb9, 0x34, 0xbe, 0xb3, 0xee, 0x9e, 0x4b, 0x33, 0x20, 0x21, 0x06, 0xfe, 0x05, 0x06, + 0x24, 0x36, 0x36, 0xfe, 0x09, 0x36, 0x46, 0x16, 0x90, 0xd8, 0x50, 0xfe, 0x12, 0x64, 0x5f, 0xdc, + 0x44, 0x4d, 0x61, 0x40, 0xd0, 0xed, 0xf4, 0xbd, 0xef, 0x7d, 0xdf, 0xef, 0x1e, 0xdc, 0x8a, 0x63, + 0xec, 0xd9, 0x2c, 0xed, 0x73, 0x63, 0x33, 0xad, 0x78, 0x1f, 0xe3, 0x22, 0xe5, 0x3a, 0x61, 0xb9, + 0xd1, 0xa4, 0x83, 0xab, 0x84, 0x63, 0xcc, 0x90, 0xcc, 0x84, 0x93, 0xce, 0x9d, 0x78, 0xe7, 0x63, + 0x13, 0xae, 0x38, 0xdf, 0xc2, 0x8e, 0x7f, 0x0f, 0xd6, 0xed, 0xc4, 0x12, 0x66, 0xed, 0x77, 0xde, + 0x96, 0xd7, 0x6d, 0x6d, 0x77, 0xd8, 0x92, 0x89, 0x39, 0x07, 0xa7, 0x49, 0x8e, 0xd1, 0xcc, 0x1e, + 0x7c, 0xbf, 0x00, 0xad, 0x05, 0xdd, 0xd7, 0xb0, 0x69, 0x8b, 0xd8, 0x26, 0x46, 0xc6, 0x68, 0x78, + 0x26, 0x94, 0x48, 0x31, 0x43, 0x45, 0x75, 0xee, 0xfd, 0x3f, 0xe7, 0xb2, 0x33, 0x97, 0x5d, 0xe5, + 0xb5, 0xf9, 0x6c, 0xef, 0x64, 0x14, 0x7c, 0x5b, 0x87, 0xe0, 0xf7, 0x4b, 0xfe, 0x73, 0x68, 0x48, + 0x35, 0x30, 0xa2, 0xee, 0xdf, 0xfd, 0xeb, 0x7e, 0x56, 0xe5, 0x38, 0x14, 0x97, 0x19, 0xfc, 0x68, + 0x00, 0xcc, 0x55, 0xff, 0xad, 0x07, 0x97, 0x0d, 0x5a, 0x5d, 0x98, 0x04, 0x79, 0xa6, 0x95, 0x24, + 0x6d, 0xea, 0xde, 0x83, 0x7f, 0xd1, 0xcb, 0x4e, 0xa7, 0x3b, 0x9a, 0x8d, 0x5a, 0xde, 0x73, 0x6a, + 0xf0, 0x79, 0x0d, 0x36, 0xcf, 0xb4, 0xfa, 0x13, 0x58, 0x1b, 0xe4, 0x89, 0xad, 0xa9, 0xfa, 0xff, + 0x8f, 0x8a, 0x95, 0x3d, 0x8e, 0xaf, 0xaa, 0x0c, 0x3e, 0xad, 0xc2, 0xc5, 0x13, 0xcd, 0x7f, 0xed, + 0xc1, 0xea, 0x20, 0x4f, 0x4a, 0x90, 0xd5, 0x6e, 0x6b, 0x3b, 0x3b, 0x0f, 0x90, 0xf2, 0xc5, 0xc7, + 0xd2, 0x52, 0x54, 0x56, 0x07, 0xef, 0x57, 0xa0, 0x59, 0x2b, 0xfe, 0x4d, 0x58, 0xb3, 0x63, 0x4d, + 0xed, 0x87, 0x5b, 0x5e, 0xf7, 0xd2, 0x4e, 0xe3, 0xcd, 0xe3, 0x95, 0xa6, 0x17, 0x55, 0x92, 0xff, + 0xc1, 0x03, 0xb0, 0x24, 0x48, 0x5a, 0x92, 0xf3, 0xd3, 0xbd, 0x3a, 0x57, 0x62, 0x36, 0x07, 0x70, + 0x37, 0x5d, 0x20, 0x0a, 0xf6, 0x61, 0xe3, 0xd4, 0xd8, 0xbf, 0x0d, 0x2d, 0x71, 0x84, 0x46, 0xa4, + 0xc8, 0x0d, 0xcd, 0x7e, 0x15, 0xc1, 0x4c, 0x8a, 0x88, 0x4a, 0x43, 0x52, 0x18, 0x53, 0x32, 0x95, + 0x86, 0x47, 0xce, 0x30, 0x93, 0x22, 0xa2, 0x07, 0x29, 0x04, 0x23, 0x95, 0x1b, 0xbe, 0xf4, 0x4b, + 0x8e, 0xc7, 0xe4, 0xdf, 0x60, 0x4f, 0x0b, 0x25, 0x73, 0x34, 0xcf, 0x90, 0x5e, 0x6a, 0x73, 0x68, + 0xf7, 0x51, 0x59, 0x6d, 0x6c, 0xfb, 0x6e, 0x75, 0x1c, 0x7f, 0xf9, 0x38, 0xd1, 0xf5, 0x32, 0x6e, + 0xb7, 0x7a, 0x96, 0x6a, 0xf5, 0x7a, 0x72, 0x4c, 0x3b, 0x2f, 0xbe, 0x4c, 0x3b, 0xde, 0xd7, 0x69, + 0xc7, 0xfb, 0x39, 0xed, 0x78, 0x07, 0x51, 0x2a, 0x89, 0x8d, 0x5c, 0x36, 0x53, 0x48, 0xa1, 0x4c, + 0x30, 0x46, 0x93, 0x86, 0x43, 0x14, 0x63, 0x1a, 0xc6, 0x9a, 0x7a, 0x52, 0xa5, 0x68, 0xa9, 0x37, + 0x22, 0xd9, 0x53, 0x82, 0xe4, 0x11, 0x86, 0xf9, 0x61, 0x1a, 0x8e, 0x48, 0x86, 0xa2, 0x2f, 0x72, + 0x42, 0x63, 0x43, 0x3e, 0x2a, 0x94, 0xb6, 0xa1, 0x4d, 0x86, 0x98, 0x89, 0x5f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x64, 0x69, 0x4e, 0xd2, 0x27, 0x05, 0x00, 0x00, +} + +func (m *DebugRsmonDebug) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebug) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebug) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Infra != nil { + { + size, err := m.Infra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResourceMonitor != nil { + { + size, err := m.ResourceMonitor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Fpcs != nil { + { + size, err := m.Fpcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Fpc) > 0 { + for iNdEx := len(m.Fpc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fpc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Slot != nil { + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(*m.Slot)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + return len(dAtA) - i, nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CurrentRtt != nil { + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(*m.CurrentRtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.AverageRtt != nil { + i = encodeVarintBbeSmgdRsmonDebugOc(dAtA, i, uint64(*m.AverageRtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeSmgdRsmonDebugOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeSmgdRsmonDebugOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DebugRsmonDebug) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Infra != nil { + l = m.Infra.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceMonitor != nil { + l = m.ResourceMonitor.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Fpcs != nil { + l = m.Fpcs.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fpc) > 0 { + for _, e := range m.Fpc { + l = e.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slot != nil { + n += 2 + sovBbeSmgdRsmonDebugOc(uint64(*m.Slot)) + } + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovBbeSmgdRsmonDebugOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AverageRtt != nil { + n += 2 + sovBbeSmgdRsmonDebugOc(uint64(*m.AverageRtt)) + } + if m.CurrentRtt != nil { + n += 2 + sovBbeSmgdRsmonDebugOc(uint64(*m.CurrentRtt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeSmgdRsmonDebugOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeSmgdRsmonDebugOc(x uint64) (n int) { + return sovBbeSmgdRsmonDebugOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DebugRsmonDebug) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: debug_rsmon_debug: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: debug_rsmon_debug: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &DebugRsmonDebugSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &DebugRsmonDebugSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Infra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Infra == nil { + m.Infra = &DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType{} + } + if err := m.Infra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceMonitor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceMonitor == nil { + m.ResourceMonitor = &DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType{} + } + if err := m.ResourceMonitor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: resource_monitor_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: resource_monitor_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpcs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fpcs == nil { + m.Fpcs = &DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType{} + } + if err := m.Fpcs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpcs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpcs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpc", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fpc = append(m.Fpc, &DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList{}) + if err := m.Fpc[len(m.Fpc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpc_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpc_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Slot = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugRsmonDebugSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageRtt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageRtt = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentRtt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentRtt = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonDebugOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeSmgdRsmonDebugOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdRsmonDebugOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeSmgdRsmonDebugOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeSmgdRsmonDebugOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeSmgdRsmonDebugOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeSmgdRsmonDebugOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeSmgdRsmonDebugOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeSmgdRsmonDebugOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-smgd_rsmon_debug_oc.proto b/schema/bbe-smgd_rsmon_debug_oc.proto new file mode 100755 index 0000000..37fe089 --- /dev/null +++ b/schema/bbe-smgd_rsmon_debug_oc.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional debug_rsmon_debug jnpr_debug_rsmon_debug_ext = 36; +} + +message debug_rsmon_debug { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional infra_type infra = 151; + message infra_type { + optional resource_monitor_type resource_monitor = 151; + message resource_monitor_type { + optional fpcs_type fpcs = 151; + message fpcs_type { + message fpc_list { + optional uint32 slot = 61 [(telemetry_options).is_key = true]; + optional statistics_type statistics = 151; + message statistics_type { + optional uint32 average_rtt = 61; + optional uint32 current_rtt = 62; + } + } + repeated fpc_list fpc = 151; + } + } + } + } + } +} diff --git a/schema/bbe-smgd_rsmon_stats_oc.pb.go b/schema/bbe-smgd_rsmon_stats_oc.pb.go new file mode 100644 index 0000000..f587c57 --- /dev/null +++ b/schema/bbe-smgd_rsmon_stats_oc.pb.go @@ -0,0 +1,1821 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-smgd_rsmon_stats_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosRsmonStats struct { + System *JunosRsmonStatsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStats) Reset() { *m = JunosRsmonStats{} } +func (m *JunosRsmonStats) String() string { return proto.CompactTextString(m) } +func (*JunosRsmonStats) ProtoMessage() {} +func (*JunosRsmonStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0} +} +func (m *JunosRsmonStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStats.Merge(m, src) +} +func (m *JunosRsmonStats) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStats) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStats.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStats proto.InternalMessageInfo + +func (m *JunosRsmonStats) GetSystem() *JunosRsmonStatsSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosRsmonStatsSystemType struct { + SubscriberManagement *JunosRsmonStatsSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemType) Reset() { *m = JunosRsmonStatsSystemType{} } +func (m *JunosRsmonStatsSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosRsmonStatsSystemType) ProtoMessage() {} +func (*JunosRsmonStatsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0} +} +func (m *JunosRsmonStatsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemType.Merge(m, src) +} +func (m *JunosRsmonStatsSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemType proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemType) GetSubscriberManagement() *JunosRsmonStatsSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosRsmonStatsSystemTypeSubscriberManagementType struct { + Infra *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType `protobuf:"bytes,151,opt,name=infra" json:"infra,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) Reset() { + *m = JunosRsmonStatsSystemTypeSubscriberManagementType{} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosRsmonStatsSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0, 0} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) GetInfra() *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType { + if m != nil { + return m.Infra + } + return nil +} + +type JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType struct { + ResourceMonitor *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType `protobuf:"bytes,151,opt,name=resource_monitor,json=resourceMonitor" json:"resource_monitor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) Reset() { + *m = JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType{} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) ProtoMessage() {} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0, 0, 0} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType.Merge(m, src) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) GetResourceMonitor() *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType { + if m != nil { + return m.ResourceMonitor + } + return nil +} + +type JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType struct { + RsmonInfra *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType `protobuf:"bytes,151,opt,name=rsmon_infra,json=rsmonInfra" json:"rsmon_infra,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Reset() { + *m = JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType{} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) ProtoMessage() { +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0, 0, 0, 0} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.Merge(m, src) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) GetRsmonInfra() *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType { + if m != nil { + return m.RsmonInfra + } + return nil +} + +type JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType struct { + Fpcs *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType `protobuf:"bytes,151,opt,name=fpcs" json:"fpcs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) Reset() { + *m = JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType{} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) ProtoMessage() { +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType.Merge(m, src) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) GetFpcs() *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType { + if m != nil { + return m.Fpcs + } + return nil +} + +type JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType struct { + Fpc []*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList `protobuf:"bytes,151,rep,name=fpc" json:"fpc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) Reset() { + *m = JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType{} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) ProtoMessage() { +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType.Merge(m, src) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) GetFpc() []*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList { + if m != nil { + return m.Fpc + } + return nil +} + +type JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList struct { + Slot *uint32 `protobuf:"varint,51,opt,name=slot" json:"slot,omitempty"` + DelayRoundTripExceeded *uint32 `protobuf:"varint,61,opt,name=delay_round_trip_exceeded,json=delayRoundTripExceeded" json:"delay_round_trip_exceeded,omitempty"` + DelayRoundTripNominal *uint32 `protobuf:"varint,62,opt,name=delay_round_trip_nominal,json=delayRoundTripNominal" json:"delay_round_trip_nominal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) Reset() { + *m = JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList{} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) ProtoMessage() { +} +func (*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) Descriptor() ([]byte, []int) { + return fileDescriptor_ae6cf8ea325e0e06, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList.Merge(m, src) +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) XXX_Size() int { + return m.Size() +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList proto.InternalMessageInfo + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) GetSlot() uint32 { + if m != nil && m.Slot != nil { + return *m.Slot + } + return 0 +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) GetDelayRoundTripExceeded() uint32 { + if m != nil && m.DelayRoundTripExceeded != nil { + return *m.DelayRoundTripExceeded + } + return 0 +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) GetDelayRoundTripNominal() uint32 { + if m != nil && m.DelayRoundTripNominal != nil { + return *m.DelayRoundTripNominal + } + return 0 +} + +var E_JnprJunosRsmonStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosRsmonStats)(nil), + Field: 37, + Name: "jnpr_junos_rsmon_stats_ext", + Tag: "bytes,37,opt,name=jnpr_junos_rsmon_stats_ext", + Filename: "bbe-smgd_rsmon_stats_oc.proto", +} + +func init() { + proto.RegisterType((*JunosRsmonStats)(nil), "junos_rsmon_stats") + proto.RegisterType((*JunosRsmonStatsSystemType)(nil), "junos_rsmon_stats.system_type") + proto.RegisterType((*JunosRsmonStatsSystemTypeSubscriberManagementType)(nil), "junos_rsmon_stats.system_type.subscriber_management_type") + proto.RegisterType((*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType)(nil), "junos_rsmon_stats.system_type.subscriber_management_type.infra_type") + proto.RegisterType((*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType)(nil), "junos_rsmon_stats.system_type.subscriber_management_type.infra_type.resource_monitor_type") + proto.RegisterType((*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType)(nil), "junos_rsmon_stats.system_type.subscriber_management_type.infra_type.resource_monitor_type.rsmon_infra_type") + proto.RegisterType((*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType)(nil), "junos_rsmon_stats.system_type.subscriber_management_type.infra_type.resource_monitor_type.rsmon_infra_type.fpcs_type") + proto.RegisterType((*JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList)(nil), "junos_rsmon_stats.system_type.subscriber_management_type.infra_type.resource_monitor_type.rsmon_infra_type.fpcs_type.fpc_list") + proto.RegisterExtension(E_JnprJunosRsmonStatsExt) +} + +func init() { proto.RegisterFile("bbe-smgd_rsmon_stats_oc.proto", fileDescriptor_ae6cf8ea325e0e06) } + +var fileDescriptor_ae6cf8ea325e0e06 = []byte{ + // 552 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x91, 0xbd, 0x6a, 0x15, 0x4d, + 0x18, 0xc7, 0x99, 0x7c, 0xbd, 0xe7, 0x9d, 0x83, 0x18, 0x47, 0x13, 0x37, 0x0b, 0x1e, 0x82, 0x20, + 0xa4, 0x39, 0xbb, 0x10, 0x8b, 0x10, 0x41, 0x91, 0x60, 0x0a, 0x03, 0x49, 0xb1, 0xb1, 0x8a, 0xc5, + 0xb8, 0x1f, 0x4f, 0x36, 0x73, 0xb2, 0x3b, 0xb3, 0xcc, 0x3c, 0xab, 0x39, 0x8d, 0x85, 0x85, 0x82, + 0x60, 0x61, 0x25, 0xa2, 0xe0, 0x85, 0x78, 0x03, 0x96, 0xde, 0x80, 0x20, 0x69, 0xbd, 0x09, 0x99, + 0x9d, 0x6c, 0x72, 0x92, 0x13, 0x2d, 0xc4, 0x8f, 0x6e, 0xf9, 0x3f, 0xff, 0x8f, 0x1f, 0xb3, 0xf4, + 0x5a, 0x92, 0x40, 0xdf, 0x94, 0x79, 0xc6, 0xb5, 0x29, 0x95, 0xe4, 0x06, 0x63, 0x34, 0x5c, 0xa5, + 0x41, 0xa5, 0x15, 0x2a, 0xff, 0x32, 0x42, 0x01, 0x25, 0xa0, 0x1e, 0x72, 0x54, 0x95, 0x13, 0xaf, + 0x7f, 0xeb, 0xd0, 0x4b, 0x83, 0x5a, 0x2a, 0x33, 0x9a, 0x61, 0x2b, 0x74, 0xc6, 0x0c, 0x0d, 0x42, + 0xe9, 0xbd, 0x21, 0x8b, 0x64, 0xa9, 0xbb, 0xdc, 0x0b, 0xc6, 0x4c, 0x81, 0x73, 0x70, 0x1c, 0x56, + 0x10, 0x1d, 0xd9, 0xfd, 0xf7, 0x1d, 0xda, 0x1d, 0xd1, 0x99, 0xa2, 0x73, 0xa6, 0x4e, 0x4c, 0xaa, + 0x45, 0x02, 0x9a, 0x97, 0xb1, 0x8c, 0x73, 0x28, 0x41, 0x62, 0xdb, 0xbb, 0xfa, 0xf3, 0xde, 0xe0, + 0xdc, 0xb0, 0x9b, 0xbc, 0x72, 0x72, 0xdb, 0x3c, 0x3e, 0xf9, 0xef, 0xfe, 0xa3, 0xfe, 0x8f, 0x43, + 0xec, 0x21, 0x9d, 0x16, 0x72, 0x57, 0xc7, 0xed, 0xfe, 0xbd, 0x5f, 0xde, 0x0f, 0x9a, 0x1e, 0x87, + 0xe2, 0x3a, 0xfd, 0x0f, 0x33, 0x94, 0x9e, 0xa8, 0xec, 0x39, 0xa1, 0xb3, 0x1a, 0x8c, 0xaa, 0x75, + 0x0a, 0xbc, 0x54, 0x52, 0xa0, 0xd2, 0xed, 0xee, 0xce, 0xef, 0xd8, 0x0d, 0xce, 0xb6, 0x3b, 0x9a, + 0x8b, 0xad, 0xbc, 0xe9, 0x54, 0xff, 0xc5, 0x34, 0x9d, 0x3b, 0xd7, 0xca, 0x5e, 0x11, 0xda, 0x75, + 0x08, 0xa7, 0x5e, 0x65, 0xff, 0xcf, 0xd1, 0x05, 0x23, 0x73, 0x0e, 0x97, 0x36, 0xca, 0xfd, 0xe6, + 0x05, 0xbf, 0x4c, 0xd2, 0xd9, 0xb3, 0x06, 0xf6, 0x92, 0xd0, 0xa9, 0xdd, 0x2a, 0x35, 0x2d, 0x5d, + 0xfd, 0x17, 0xe9, 0x02, 0x3b, 0xec, 0x38, 0x1b, 0x06, 0xff, 0xe3, 0x04, 0xfd, 0xff, 0x58, 0x63, + 0xaf, 0x09, 0x9d, 0xdc, 0xad, 0x52, 0x4b, 0x36, 0xb9, 0xd4, 0x5d, 0x7e, 0xfa, 0x4f, 0xc8, 0xec, + 0x17, 0x2f, 0x84, 0xc1, 0xc8, 0xb2, 0xf8, 0x6f, 0x09, 0xed, 0xb4, 0x0a, 0x5b, 0xa0, 0x53, 0xa6, + 0x50, 0xe8, 0xdd, 0x5c, 0x24, 0x4b, 0x17, 0xd6, 0xa6, 0x9f, 0xdd, 0x9d, 0xe8, 0x90, 0xa8, 0x91, + 0xd8, 0x2a, 0x5d, 0xc8, 0xa0, 0x88, 0x87, 0x5c, 0xab, 0x5a, 0x66, 0x1c, 0xb5, 0xa8, 0x38, 0x1c, + 0xa4, 0x00, 0x19, 0x64, 0xde, 0x6d, 0xeb, 0x8f, 0xe6, 0x1b, 0x43, 0x64, 0xef, 0x0f, 0xb4, 0xa8, + 0xd6, 0x8f, 0xae, 0x6c, 0x85, 0x7a, 0x63, 0x51, 0xa9, 0x4a, 0x21, 0xe3, 0xc2, 0xbb, 0xd3, 0x24, + 0xe7, 0x4e, 0x27, 0xb7, 0xdc, 0xf1, 0x56, 0x4e, 0xfd, 0x81, 0xac, 0x34, 0x1f, 0x7b, 0x26, 0x0e, + 0x07, 0xc8, 0xae, 0x06, 0x1b, 0xb5, 0x14, 0x15, 0xe8, 0x2d, 0xc0, 0x27, 0x4a, 0xef, 0x9b, 0x6d, + 0x90, 0x46, 0x69, 0xe3, 0xdd, 0x68, 0xfe, 0x3b, 0x1b, 0x7f, 0xdd, 0x68, 0xde, 0xd6, 0x6d, 0x58, + 0x39, 0xb2, 0xea, 0xb6, 0x15, 0xd7, 0x0f, 0x70, 0xed, 0xd1, 0xa7, 0xc3, 0x1e, 0xf9, 0x7c, 0xd8, + 0x23, 0x5f, 0x0f, 0x7b, 0x64, 0x27, 0xca, 0x05, 0xda, 0xb0, 0xed, 0x0e, 0x24, 0x60, 0x28, 0x52, + 0x48, 0x40, 0xe7, 0xe1, 0x1e, 0xc4, 0x05, 0xee, 0x25, 0x0a, 0xfb, 0x42, 0xe6, 0x60, 0xb0, 0x3f, + 0x40, 0xd1, 0x97, 0x31, 0x8a, 0xc7, 0x10, 0x56, 0xfb, 0x79, 0x38, 0x40, 0x11, 0xc6, 0x59, 0x5c, + 0x21, 0x68, 0x13, 0x3a, 0xea, 0xd0, 0xa4, 0x7b, 0x50, 0xc6, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xfe, 0x6d, 0x0a, 0xbd, 0x6d, 0x05, 0x00, 0x00, +} + +func (m *JunosRsmonStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Infra != nil { + { + size, err := m.Infra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResourceMonitor != nil { + { + size, err := m.ResourceMonitor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RsmonInfra != nil { + { + size, err := m.RsmonInfra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Fpcs != nil { + { + size, err := m.Fpcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Fpc) > 0 { + for iNdEx := len(m.Fpc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fpc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DelayRoundTripNominal != nil { + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(*m.DelayRoundTripNominal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DelayRoundTripExceeded != nil { + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(*m.DelayRoundTripExceeded)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.Slot != nil { + i = encodeVarintBbeSmgdRsmonStatsOc(dAtA, i, uint64(*m.Slot)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeSmgdRsmonStatsOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeSmgdRsmonStatsOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosRsmonStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Infra != nil { + l = m.Infra.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceMonitor != nil { + l = m.ResourceMonitor.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RsmonInfra != nil { + l = m.RsmonInfra.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Fpcs != nil { + l = m.Fpcs.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fpc) > 0 { + for _, e := range m.Fpc { + l = e.Size() + n += 2 + l + sovBbeSmgdRsmonStatsOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slot != nil { + n += 2 + sovBbeSmgdRsmonStatsOc(uint64(*m.Slot)) + } + if m.DelayRoundTripExceeded != nil { + n += 2 + sovBbeSmgdRsmonStatsOc(uint64(*m.DelayRoundTripExceeded)) + } + if m.DelayRoundTripNominal != nil { + n += 2 + sovBbeSmgdRsmonStatsOc(uint64(*m.DelayRoundTripNominal)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeSmgdRsmonStatsOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeSmgdRsmonStatsOc(x uint64) (n int) { + return sovBbeSmgdRsmonStatsOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosRsmonStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_rsmon_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_rsmon_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosRsmonStatsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosRsmonStatsSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Infra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Infra == nil { + m.Infra = &JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType{} + } + if err := m.Infra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceMonitor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceMonitor == nil { + m.ResourceMonitor = &JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType{} + } + if err := m.ResourceMonitor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: resource_monitor_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: resource_monitor_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsmonInfra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RsmonInfra == nil { + m.RsmonInfra = &JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType{} + } + if err := m.RsmonInfra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rsmon_infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rsmon_infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpcs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fpcs == nil { + m.Fpcs = &JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType{} + } + if err := m.Fpcs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpcs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpcs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpc", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fpc = append(m.Fpc, &JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList{}) + if err := m.Fpc[len(m.Fpc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsmonStatsSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeRsmonInfraTypeFpcsTypeFpcList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpc_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpc_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Slot = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelayRoundTripExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DelayRoundTripExceeded = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelayRoundTripNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DelayRoundTripNominal = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdRsmonStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeSmgdRsmonStatsOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdRsmonStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeSmgdRsmonStatsOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeSmgdRsmonStatsOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeSmgdRsmonStatsOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeSmgdRsmonStatsOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeSmgdRsmonStatsOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeSmgdRsmonStatsOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-smgd_rsmon_stats_oc.proto b/schema/bbe-smgd_rsmon_stats_oc.proto new file mode 100755 index 0000000..f9221df --- /dev/null +++ b/schema/bbe-smgd_rsmon_stats_oc.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_rsmon_stats jnpr_junos_rsmon_stats_ext = 37; +} + +message junos_rsmon_stats { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional infra_type infra = 151; + message infra_type { + optional resource_monitor_type resource_monitor = 151; + message resource_monitor_type { + optional rsmon_infra_type rsmon_infra = 151; + message rsmon_infra_type { + optional fpcs_type fpcs = 151; + message fpcs_type { + message fpc_list { + optional uint32 slot = 51 [(telemetry_options).is_key = true]; + optional uint32 delay_round_trip_exceeded = 61; + optional uint32 delay_round_trip_nominal = 62; + } + repeated fpc_list fpc = 151; + } + } + } + } + } + } +} diff --git a/schema/bbe-smgd_smd_queue_stats_oc.pb.go b/schema/bbe-smgd_smd_queue_stats_oc.pb.go new file mode 100644 index 0000000..69ccfd3 --- /dev/null +++ b/schema/bbe-smgd_smd_queue_stats_oc.pb.go @@ -0,0 +1,4696 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-smgd_smd_queue_stats_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type DebugQueueStats struct { + System *DebugQueueStatsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStats) Reset() { *m = DebugQueueStats{} } +func (m *DebugQueueStats) String() string { return proto.CompactTextString(m) } +func (*DebugQueueStats) ProtoMessage() {} +func (*DebugQueueStats) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0} +} +func (m *DebugQueueStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStats.Merge(m, src) +} +func (m *DebugQueueStats) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStats) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStats.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStats proto.InternalMessageInfo + +func (m *DebugQueueStats) GetSystem() *DebugQueueStatsSystemType { + if m != nil { + return m.System + } + return nil +} + +type DebugQueueStatsSystemType struct { + SubscriberManagement *DebugQueueStatsSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStatsSystemType) Reset() { *m = DebugQueueStatsSystemType{} } +func (m *DebugQueueStatsSystemType) String() string { return proto.CompactTextString(m) } +func (*DebugQueueStatsSystemType) ProtoMessage() {} +func (*DebugQueueStatsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0, 0} +} +func (m *DebugQueueStatsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStatsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStatsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStatsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStatsSystemType.Merge(m, src) +} +func (m *DebugQueueStatsSystemType) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStatsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStatsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStatsSystemType proto.InternalMessageInfo + +func (m *DebugQueueStatsSystemType) GetSubscriberManagement() *DebugQueueStatsSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type DebugQueueStatsSystemTypeSubscriberManagementType struct { + Uplanes *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType `protobuf:"bytes,151,opt,name=uplanes" json:"uplanes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) Reset() { + *m = DebugQueueStatsSystemTypeSubscriberManagementType{} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*DebugQueueStatsSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*DebugQueueStatsSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0, 0, 0} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) GetUplanes() *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType { + if m != nil { + return m.Uplanes + } + return nil +} + +type DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType struct { + Uplane []*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList `protobuf:"bytes,151,rep,name=uplane" json:"uplane,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) Reset() { + *m = DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType{} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) String() string { + return proto.CompactTextString(m) +} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) ProtoMessage() {} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0, 0, 0, 0} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType.Merge(m, src) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType proto.InternalMessageInfo + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) GetUplane() []*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList { + if m != nil { + return m.Uplane + } + return nil +} + +type DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList struct { + UplaneId *uint32 `protobuf:"varint,51,opt,name=uplane_id,json=uplaneId" json:"uplane_id,omitempty"` + Infra *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType `protobuf:"bytes,151,opt,name=infra" json:"infra,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Reset() { + *m = DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList{} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) String() string { + return proto.CompactTextString(m) +} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) ProtoMessage() {} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0, 0, 0, 0, 0} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList.Merge(m, src) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList proto.InternalMessageInfo + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) GetUplaneId() uint32 { + if m != nil && m.UplaneId != nil { + return *m.UplaneId + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) GetInfra() *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType { + if m != nil { + return m.Infra + } + return nil +} + +type DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType struct { + Era *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType `protobuf:"bytes,151,opt,name=era" json:"era,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Reset() { + *m = DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType{} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) String() string { + return proto.CompactTextString(m) +} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) ProtoMessage() { +} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0, 0, 0, 0, 0, 0} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType.Merge(m, src) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType proto.InternalMessageInfo + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) GetEra() *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType { + if m != nil { + return m.Era + } + return nil +} + +type DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType struct { + IoToSmdDvlanQCount *uint32 `protobuf:"varint,51,opt,name=io_to_smd_dvlan_q_count,json=ioToSmdDvlanQCount" json:"io_to_smd_dvlan_q_count,omitempty"` + IoToSmdDvlanMaxQCount *uint32 `protobuf:"varint,52,opt,name=io_to_smd_dvlan_max_q_count,json=ioToSmdDvlanMaxQCount" json:"io_to_smd_dvlan_max_q_count,omitempty"` + IoToSmdPadiQCnt *uint32 `protobuf:"varint,53,opt,name=io_to_smd_padi_q_cnt,json=ioToSmdPadiQCnt" json:"io_to_smd_padi_q_cnt,omitempty"` + IoToSmdPadiQCntPeak *uint32 `protobuf:"varint,54,opt,name=io_to_smd_padi_q_cnt_peak,json=ioToSmdPadiQCntPeak" json:"io_to_smd_padi_q_cnt_peak,omitempty"` + IoToSmdDiscoverQCnt *uint32 `protobuf:"varint,55,opt,name=io_to_smd_discover_q_cnt,json=ioToSmdDiscoverQCnt" json:"io_to_smd_discover_q_cnt,omitempty"` + IoToSmdDiscoverQCntPeak *uint32 `protobuf:"varint,56,opt,name=io_to_smd_discover_q_cnt_peak,json=ioToSmdDiscoverQCntPeak" json:"io_to_smd_discover_q_cnt_peak,omitempty"` + IoToSmdSolicitQCnt *uint32 `protobuf:"varint,57,opt,name=io_to_smd_solicit_q_cnt,json=ioToSmdSolicitQCnt" json:"io_to_smd_solicit_q_cnt,omitempty"` + IoToSmdSolicitQCntPeak *uint32 `protobuf:"varint,58,opt,name=io_to_smd_solicit_q_cnt_peak,json=ioToSmdSolicitQCntPeak" json:"io_to_smd_solicit_q_cnt_peak,omitempty"` + IoToSmdDhcpQCnt *uint32 `protobuf:"varint,59,opt,name=io_to_smd_dhcp_q_cnt,json=ioToSmdDhcpQCnt" json:"io_to_smd_dhcp_q_cnt,omitempty"` + IoToSmdDhcpQCntPeak *uint32 `protobuf:"varint,60,opt,name=io_to_smd_dhcp_q_cnt_peak,json=ioToSmdDhcpQCntPeak" json:"io_to_smd_dhcp_q_cnt_peak,omitempty"` + IoToSmdHagQCnt *uint32 `protobuf:"varint,61,opt,name=io_to_smd_hag_q_cnt,json=ioToSmdHagQCnt" json:"io_to_smd_hag_q_cnt,omitempty"` + IoToSmdHagQCntPeak *uint32 `protobuf:"varint,62,opt,name=io_to_smd_hag_q_cnt_peak,json=ioToSmdHagQCntPeak" json:"io_to_smd_hag_q_cnt_peak,omitempty"` + IoToSmdTotalQCnt *uint32 `protobuf:"varint,63,opt,name=io_to_smd_total_q_cnt,json=ioToSmdTotalQCnt" json:"io_to_smd_total_q_cnt,omitempty"` + IoToSmdTotalQCntPeak *uint32 `protobuf:"varint,64,opt,name=io_to_smd_total_q_cnt_peak,json=ioToSmdTotalQCntPeak" json:"io_to_smd_total_q_cnt_peak,omitempty"` + SmdDvlanQCount *uint32 `protobuf:"varint,65,opt,name=smd_dvlan_q_count,json=smdDvlanQCount" json:"smd_dvlan_q_count,omitempty"` + SmdDvlanMaxQCount *uint32 `protobuf:"varint,66,opt,name=smd_dvlan_max_q_count,json=smdDvlanMaxQCount" json:"smd_dvlan_max_q_count,omitempty"` + SmdPadiQCnt *uint32 `protobuf:"varint,67,opt,name=smd_padi_q_cnt,json=smdPadiQCnt" json:"smd_padi_q_cnt,omitempty"` + SmdPadiQCntPeak *uint32 `protobuf:"varint,68,opt,name=smd_padi_q_cnt_peak,json=smdPadiQCntPeak" json:"smd_padi_q_cnt_peak,omitempty"` + SmdDiscoverQCnt *uint32 `protobuf:"varint,69,opt,name=smd_discover_q_cnt,json=smdDiscoverQCnt" json:"smd_discover_q_cnt,omitempty"` + SmdDiscoverQCntPeak *uint32 `protobuf:"varint,70,opt,name=smd_discover_q_cnt_peak,json=smdDiscoverQCntPeak" json:"smd_discover_q_cnt_peak,omitempty"` + SmdSolicitQCnt *uint32 `protobuf:"varint,71,opt,name=smd_solicit_q_cnt,json=smdSolicitQCnt" json:"smd_solicit_q_cnt,omitempty"` + SmdSolicitQCntPeak *uint32 `protobuf:"varint,72,opt,name=smd_solicit_q_cnt_peak,json=smdSolicitQCntPeak" json:"smd_solicit_q_cnt_peak,omitempty"` + SmdDhcpQCnt *uint32 `protobuf:"varint,73,opt,name=smd_dhcp_q_cnt,json=smdDhcpQCnt" json:"smd_dhcp_q_cnt,omitempty"` + SmdDhcpQCntPeak *uint32 `protobuf:"varint,74,opt,name=smd_dhcp_q_cnt_peak,json=smdDhcpQCntPeak" json:"smd_dhcp_q_cnt_peak,omitempty"` + SmdHagQCnt *uint32 `protobuf:"varint,75,opt,name=smd_hag_q_cnt,json=smdHagQCnt" json:"smd_hag_q_cnt,omitempty"` + SmdHagQCntPeak *uint32 `protobuf:"varint,76,opt,name=smd_hag_q_cnt_peak,json=smdHagQCntPeak" json:"smd_hag_q_cnt_peak,omitempty"` + SmdTotalQCnt *uint32 `protobuf:"varint,77,opt,name=smd_total_q_cnt,json=smdTotalQCnt" json:"smd_total_q_cnt,omitempty"` + SmdTotalQCntPeak *uint32 `protobuf:"varint,78,opt,name=smd_total_q_cnt_peak,json=smdTotalQCntPeak" json:"smd_total_q_cnt_peak,omitempty"` + SmdNotificationQueueCnt *uint32 `protobuf:"varint,79,opt,name=smd_notification_queue_cnt,json=smdNotificationQueueCnt" json:"smd_notification_queue_cnt,omitempty"` + SmdNotificationQueueCntPeak *uint32 `protobuf:"varint,80,opt,name=smd_notification_queue_cnt_peak,json=smdNotificationQueueCntPeak" json:"smd_notification_queue_cnt_peak,omitempty"` + SmdMessageQueueCnt *uint32 `protobuf:"varint,81,opt,name=smd_message_queue_cnt,json=smdMessageQueueCnt" json:"smd_message_queue_cnt,omitempty"` + SmdMessageQueueCntPeak *uint32 `protobuf:"varint,82,opt,name=smd_message_queue_cnt_peak,json=smdMessageQueueCntPeak" json:"smd_message_queue_cnt_peak,omitempty"` + SmdPacketQueueCnt *uint32 `protobuf:"varint,83,opt,name=smd_packet_queue_cnt,json=smdPacketQueueCnt" json:"smd_packet_queue_cnt,omitempty"` + SmdPacketQueueCntPeak *uint32 `protobuf:"varint,84,opt,name=smd_packet_queue_cnt_peak,json=smdPacketQueueCntPeak" json:"smd_packet_queue_cnt_peak,omitempty"` + SmdPacketLowQueueCnt *uint32 `protobuf:"varint,85,opt,name=smd_packet_low_queue_cnt,json=smdPacketLowQueueCnt" json:"smd_packet_low_queue_cnt,omitempty"` + SmdPacketLowQueueCntPeak *uint32 `protobuf:"varint,86,opt,name=smd_packet_low_queue_cnt_peak,json=smdPacketLowQueueCntPeak" json:"smd_packet_low_queue_cnt_peak,omitempty"` + IoPktCountLow *uint64 `protobuf:"varint,87,opt,name=io_pkt_count_low,json=ioPktCountLow" json:"io_pkt_count_low,omitempty"` + IoPktCountMlow *uint64 `protobuf:"varint,88,opt,name=io_pkt_count_mlow,json=ioPktCountMlow" json:"io_pkt_count_mlow,omitempty"` + IoPktCountMed *uint64 `protobuf:"varint,89,opt,name=io_pkt_count_med,json=ioPktCountMed" json:"io_pkt_count_med,omitempty"` + IoPktCountHigh *uint64 `protobuf:"varint,90,opt,name=io_pkt_count_high,json=ioPktCountHigh" json:"io_pkt_count_high,omitempty"` + IoPacketsDroppedLow *uint64 `protobuf:"varint,91,opt,name=io_packets_dropped_low,json=ioPacketsDroppedLow" json:"io_packets_dropped_low,omitempty"` + IoPacketsDroppedMlow *uint64 `protobuf:"varint,92,opt,name=io_packets_dropped_mlow,json=ioPacketsDroppedMlow" json:"io_packets_dropped_mlow,omitempty"` + IoPacketsDroppedMed *uint64 `protobuf:"varint,93,opt,name=io_packets_dropped_med,json=ioPacketsDroppedMed" json:"io_packets_dropped_med,omitempty"` + IoPacketsDroppedHigh *uint64 `protobuf:"varint,94,opt,name=io_packets_dropped_high,json=ioPacketsDroppedHigh" json:"io_packets_dropped_high,omitempty"` + IoPacketsDroppedPadiQlen *uint64 `protobuf:"varint,95,opt,name=io_packets_dropped_padi_qlen,json=ioPacketsDroppedPadiQlen" json:"io_packets_dropped_padi_qlen,omitempty"` + IoPacketsDroppedPadiImbalance *uint64 `protobuf:"varint,96,opt,name=io_packets_dropped_padi_imbalance,json=ioPacketsDroppedPadiImbalance" json:"io_packets_dropped_padi_imbalance,omitempty"` + IoPacketsDroppedDiscoverQlen *uint64 `protobuf:"varint,97,opt,name=io_packets_dropped_discover_qlen,json=ioPacketsDroppedDiscoverQlen" json:"io_packets_dropped_discover_qlen,omitempty"` + IoPacketsDroppedDiscoverImbalance *uint64 `protobuf:"varint,98,opt,name=io_packets_dropped_discover_imbalance,json=ioPacketsDroppedDiscoverImbalance" json:"io_packets_dropped_discover_imbalance,omitempty"` + IoPacketsDroppedSolicitQlen *uint64 `protobuf:"varint,99,opt,name=io_packets_dropped_solicit_qlen,json=ioPacketsDroppedSolicitQlen" json:"io_packets_dropped_solicit_qlen,omitempty"` + IoPacketsDroppedSolicitImbalance *uint64 `protobuf:"varint,100,opt,name=io_packets_dropped_solicit_imbalance,json=ioPacketsDroppedSolicitImbalance" json:"io_packets_dropped_solicit_imbalance,omitempty"` + IoPacketsDroppedDvlanQlen *uint64 `protobuf:"varint,101,opt,name=io_packets_dropped_dvlan_qlen,json=ioPacketsDroppedDvlanQlen" json:"io_packets_dropped_dvlan_qlen,omitempty"` + IoPacketsDroppedDvlanImbalance *uint64 `protobuf:"varint,102,opt,name=io_packets_dropped_dvlan_imbalance,json=ioPacketsDroppedDvlanImbalance" json:"io_packets_dropped_dvlan_imbalance,omitempty"` + IoPacketsDroppedHagQlen *uint64 `protobuf:"varint,103,opt,name=io_packets_dropped_hag_qlen,json=ioPacketsDroppedHagQlen" json:"io_packets_dropped_hag_qlen,omitempty"` + IoPacketsDroppedHagImbalance *uint64 `protobuf:"varint,104,opt,name=io_packets_dropped_hag_imbalance,json=ioPacketsDroppedHagImbalance" json:"io_packets_dropped_hag_imbalance,omitempty"` + MaxAllowedInFlightCurrent *uint32 `protobuf:"varint,105,opt,name=max_allowed_in_flight_current,json=maxAllowedInFlightCurrent" json:"max_allowed_in_flight_current,omitempty"` + MaxAllowedInFlightActual *uint32 `protobuf:"varint,106,opt,name=max_allowed_in_flight_actual,json=maxAllowedInFlightActual" json:"max_allowed_in_flight_actual,omitempty"` + MaxAllowedInFlightCurrentAbsolute *uint32 `protobuf:"varint,107,opt,name=max_allowed_in_flight_current_absolute,json=maxAllowedInFlightCurrentAbsolute" json:"max_allowed_in_flight_current_absolute,omitempty"` + MaxAllowedInFlightMaxEverAbsolute *uint32 `protobuf:"varint,108,opt,name=max_allowed_in_flight_max_ever_absolute,json=maxAllowedInFlightMaxEverAbsolute" json:"max_allowed_in_flight_max_ever_absolute,omitempty"` + MinAllowedInFlight *uint32 `protobuf:"varint,109,opt,name=min_allowed_in_flight,json=minAllowedInFlight" json:"min_allowed_in_flight,omitempty"` + MaxLowPriPktToEnqueue *uint32 `protobuf:"varint,110,opt,name=max_low_pri_pkt_to_enqueue,json=maxLowPriPktToEnqueue" json:"max_low_pri_pkt_to_enqueue,omitempty"` + InFlightDvlan *uint32 `protobuf:"varint,111,opt,name=in_flight_dvlan,json=inFlightDvlan" json:"in_flight_dvlan,omitempty"` + InFlightDvlanPeak *uint32 `protobuf:"varint,112,opt,name=in_flight_dvlan_peak,json=inFlightDvlanPeak" json:"in_flight_dvlan_peak,omitempty"` + InFlightDhcp *uint32 `protobuf:"varint,113,opt,name=in_flight_dhcp,json=inFlightDhcp" json:"in_flight_dhcp,omitempty"` + InFlightDhcpPeak *uint32 `protobuf:"varint,114,opt,name=in_flight_dhcp_peak,json=inFlightDhcpPeak" json:"in_flight_dhcp_peak,omitempty"` + InFlightPpp *uint32 `protobuf:"varint,115,opt,name=in_flight_ppp,json=inFlightPpp" json:"in_flight_ppp,omitempty"` + InFlightPppPeak *uint32 `protobuf:"varint,116,opt,name=in_flight_ppp_peak,json=inFlightPppPeak" json:"in_flight_ppp_peak,omitempty"` + InFlightHag *uint32 `protobuf:"varint,117,opt,name=in_flight_hag,json=inFlightHag" json:"in_flight_hag,omitempty"` + InFlightHagPeak *uint32 `protobuf:"varint,118,opt,name=in_flight_hag_peak,json=inFlightHagPeak" json:"in_flight_hag_peak,omitempty"` + InFlightTotal *uint32 `protobuf:"varint,119,opt,name=in_flight_total,json=inFlightTotal" json:"in_flight_total,omitempty"` + InFlightTotalPeak *uint32 `protobuf:"varint,120,opt,name=in_flight_total_peak,json=inFlightTotalPeak" json:"in_flight_total_peak,omitempty"` + InNegoDvlan *uint32 `protobuf:"varint,121,opt,name=in_nego_dvlan,json=inNegoDvlan" json:"in_nego_dvlan,omitempty"` + InNegoDvlanPeak *uint32 `protobuf:"varint,122,opt,name=in_nego_dvlan_peak,json=inNegoDvlanPeak" json:"in_nego_dvlan_peak,omitempty"` + InNegoDhcp *uint32 `protobuf:"varint,123,opt,name=in_nego_dhcp,json=inNegoDhcp" json:"in_nego_dhcp,omitempty"` + InNegoDhcpPeak *uint32 `protobuf:"varint,124,opt,name=in_nego_dhcp_peak,json=inNegoDhcpPeak" json:"in_nego_dhcp_peak,omitempty"` + InNegoPpp *uint32 `protobuf:"varint,125,opt,name=in_nego_ppp,json=inNegoPpp" json:"in_nego_ppp,omitempty"` + InNegoPppPeak *uint32 `protobuf:"varint,126,opt,name=in_nego_ppp_peak,json=inNegoPppPeak" json:"in_nego_ppp_peak,omitempty"` + InNegoHag *uint32 `protobuf:"varint,127,opt,name=in_nego_hag,json=inNegoHag" json:"in_nego_hag,omitempty"` + InNegoHagPeak *uint32 `protobuf:"varint,128,opt,name=in_nego_hag_peak,json=inNegoHagPeak" json:"in_nego_hag_peak,omitempty"` + InNegoTotal *uint32 `protobuf:"varint,129,opt,name=in_nego_total,json=inNegoTotal" json:"in_nego_total,omitempty"` + InNegoTotalPeak *uint32 `protobuf:"varint,130,opt,name=in_nego_total_peak,json=inNegoTotalPeak" json:"in_nego_total_peak,omitempty"` + InNegoOverrides *uint32 `protobuf:"varint,131,opt,name=in_nego_overrides,json=inNegoOverrides" json:"in_nego_overrides,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) Reset() { + *m = DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType{} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) String() string { + return proto.CompactTextString(m) +} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) ProtoMessage() { +} +func (*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) Descriptor() ([]byte, []int) { + return fileDescriptor_25315a2411c1892a, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType.Merge(m, src) +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) XXX_Size() int { + return m.Size() +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) XXX_DiscardUnknown() { + xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType.DiscardUnknown(m) +} + +var xxx_messageInfo_DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType proto.InternalMessageInfo + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdDvlanQCount() uint32 { + if m != nil && m.IoToSmdDvlanQCount != nil { + return *m.IoToSmdDvlanQCount + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdDvlanMaxQCount() uint32 { + if m != nil && m.IoToSmdDvlanMaxQCount != nil { + return *m.IoToSmdDvlanMaxQCount + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdPadiQCnt() uint32 { + if m != nil && m.IoToSmdPadiQCnt != nil { + return *m.IoToSmdPadiQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdPadiQCntPeak() uint32 { + if m != nil && m.IoToSmdPadiQCntPeak != nil { + return *m.IoToSmdPadiQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdDiscoverQCnt() uint32 { + if m != nil && m.IoToSmdDiscoverQCnt != nil { + return *m.IoToSmdDiscoverQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdDiscoverQCntPeak() uint32 { + if m != nil && m.IoToSmdDiscoverQCntPeak != nil { + return *m.IoToSmdDiscoverQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdSolicitQCnt() uint32 { + if m != nil && m.IoToSmdSolicitQCnt != nil { + return *m.IoToSmdSolicitQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdSolicitQCntPeak() uint32 { + if m != nil && m.IoToSmdSolicitQCntPeak != nil { + return *m.IoToSmdSolicitQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdDhcpQCnt() uint32 { + if m != nil && m.IoToSmdDhcpQCnt != nil { + return *m.IoToSmdDhcpQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdDhcpQCntPeak() uint32 { + if m != nil && m.IoToSmdDhcpQCntPeak != nil { + return *m.IoToSmdDhcpQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdHagQCnt() uint32 { + if m != nil && m.IoToSmdHagQCnt != nil { + return *m.IoToSmdHagQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdHagQCntPeak() uint32 { + if m != nil && m.IoToSmdHagQCntPeak != nil { + return *m.IoToSmdHagQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdTotalQCnt() uint32 { + if m != nil && m.IoToSmdTotalQCnt != nil { + return *m.IoToSmdTotalQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoToSmdTotalQCntPeak() uint32 { + if m != nil && m.IoToSmdTotalQCntPeak != nil { + return *m.IoToSmdTotalQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdDvlanQCount() uint32 { + if m != nil && m.SmdDvlanQCount != nil { + return *m.SmdDvlanQCount + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdDvlanMaxQCount() uint32 { + if m != nil && m.SmdDvlanMaxQCount != nil { + return *m.SmdDvlanMaxQCount + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdPadiQCnt() uint32 { + if m != nil && m.SmdPadiQCnt != nil { + return *m.SmdPadiQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdPadiQCntPeak() uint32 { + if m != nil && m.SmdPadiQCntPeak != nil { + return *m.SmdPadiQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdDiscoverQCnt() uint32 { + if m != nil && m.SmdDiscoverQCnt != nil { + return *m.SmdDiscoverQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdDiscoverQCntPeak() uint32 { + if m != nil && m.SmdDiscoverQCntPeak != nil { + return *m.SmdDiscoverQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdSolicitQCnt() uint32 { + if m != nil && m.SmdSolicitQCnt != nil { + return *m.SmdSolicitQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdSolicitQCntPeak() uint32 { + if m != nil && m.SmdSolicitQCntPeak != nil { + return *m.SmdSolicitQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdDhcpQCnt() uint32 { + if m != nil && m.SmdDhcpQCnt != nil { + return *m.SmdDhcpQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdDhcpQCntPeak() uint32 { + if m != nil && m.SmdDhcpQCntPeak != nil { + return *m.SmdDhcpQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdHagQCnt() uint32 { + if m != nil && m.SmdHagQCnt != nil { + return *m.SmdHagQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdHagQCntPeak() uint32 { + if m != nil && m.SmdHagQCntPeak != nil { + return *m.SmdHagQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdTotalQCnt() uint32 { + if m != nil && m.SmdTotalQCnt != nil { + return *m.SmdTotalQCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdTotalQCntPeak() uint32 { + if m != nil && m.SmdTotalQCntPeak != nil { + return *m.SmdTotalQCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdNotificationQueueCnt() uint32 { + if m != nil && m.SmdNotificationQueueCnt != nil { + return *m.SmdNotificationQueueCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdNotificationQueueCntPeak() uint32 { + if m != nil && m.SmdNotificationQueueCntPeak != nil { + return *m.SmdNotificationQueueCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdMessageQueueCnt() uint32 { + if m != nil && m.SmdMessageQueueCnt != nil { + return *m.SmdMessageQueueCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdMessageQueueCntPeak() uint32 { + if m != nil && m.SmdMessageQueueCntPeak != nil { + return *m.SmdMessageQueueCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdPacketQueueCnt() uint32 { + if m != nil && m.SmdPacketQueueCnt != nil { + return *m.SmdPacketQueueCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdPacketQueueCntPeak() uint32 { + if m != nil && m.SmdPacketQueueCntPeak != nil { + return *m.SmdPacketQueueCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdPacketLowQueueCnt() uint32 { + if m != nil && m.SmdPacketLowQueueCnt != nil { + return *m.SmdPacketLowQueueCnt + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetSmdPacketLowQueueCntPeak() uint32 { + if m != nil && m.SmdPacketLowQueueCntPeak != nil { + return *m.SmdPacketLowQueueCntPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPktCountLow() uint64 { + if m != nil && m.IoPktCountLow != nil { + return *m.IoPktCountLow + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPktCountMlow() uint64 { + if m != nil && m.IoPktCountMlow != nil { + return *m.IoPktCountMlow + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPktCountMed() uint64 { + if m != nil && m.IoPktCountMed != nil { + return *m.IoPktCountMed + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPktCountHigh() uint64 { + if m != nil && m.IoPktCountHigh != nil { + return *m.IoPktCountHigh + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedLow() uint64 { + if m != nil && m.IoPacketsDroppedLow != nil { + return *m.IoPacketsDroppedLow + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedMlow() uint64 { + if m != nil && m.IoPacketsDroppedMlow != nil { + return *m.IoPacketsDroppedMlow + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedMed() uint64 { + if m != nil && m.IoPacketsDroppedMed != nil { + return *m.IoPacketsDroppedMed + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedHigh() uint64 { + if m != nil && m.IoPacketsDroppedHigh != nil { + return *m.IoPacketsDroppedHigh + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedPadiQlen() uint64 { + if m != nil && m.IoPacketsDroppedPadiQlen != nil { + return *m.IoPacketsDroppedPadiQlen + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedPadiImbalance() uint64 { + if m != nil && m.IoPacketsDroppedPadiImbalance != nil { + return *m.IoPacketsDroppedPadiImbalance + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedDiscoverQlen() uint64 { + if m != nil && m.IoPacketsDroppedDiscoverQlen != nil { + return *m.IoPacketsDroppedDiscoverQlen + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedDiscoverImbalance() uint64 { + if m != nil && m.IoPacketsDroppedDiscoverImbalance != nil { + return *m.IoPacketsDroppedDiscoverImbalance + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedSolicitQlen() uint64 { + if m != nil && m.IoPacketsDroppedSolicitQlen != nil { + return *m.IoPacketsDroppedSolicitQlen + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedSolicitImbalance() uint64 { + if m != nil && m.IoPacketsDroppedSolicitImbalance != nil { + return *m.IoPacketsDroppedSolicitImbalance + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedDvlanQlen() uint64 { + if m != nil && m.IoPacketsDroppedDvlanQlen != nil { + return *m.IoPacketsDroppedDvlanQlen + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedDvlanImbalance() uint64 { + if m != nil && m.IoPacketsDroppedDvlanImbalance != nil { + return *m.IoPacketsDroppedDvlanImbalance + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedHagQlen() uint64 { + if m != nil && m.IoPacketsDroppedHagQlen != nil { + return *m.IoPacketsDroppedHagQlen + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetIoPacketsDroppedHagImbalance() uint64 { + if m != nil && m.IoPacketsDroppedHagImbalance != nil { + return *m.IoPacketsDroppedHagImbalance + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetMaxAllowedInFlightCurrent() uint32 { + if m != nil && m.MaxAllowedInFlightCurrent != nil { + return *m.MaxAllowedInFlightCurrent + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetMaxAllowedInFlightActual() uint32 { + if m != nil && m.MaxAllowedInFlightActual != nil { + return *m.MaxAllowedInFlightActual + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetMaxAllowedInFlightCurrentAbsolute() uint32 { + if m != nil && m.MaxAllowedInFlightCurrentAbsolute != nil { + return *m.MaxAllowedInFlightCurrentAbsolute + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetMaxAllowedInFlightMaxEverAbsolute() uint32 { + if m != nil && m.MaxAllowedInFlightMaxEverAbsolute != nil { + return *m.MaxAllowedInFlightMaxEverAbsolute + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetMinAllowedInFlight() uint32 { + if m != nil && m.MinAllowedInFlight != nil { + return *m.MinAllowedInFlight + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetMaxLowPriPktToEnqueue() uint32 { + if m != nil && m.MaxLowPriPktToEnqueue != nil { + return *m.MaxLowPriPktToEnqueue + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightDvlan() uint32 { + if m != nil && m.InFlightDvlan != nil { + return *m.InFlightDvlan + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightDvlanPeak() uint32 { + if m != nil && m.InFlightDvlanPeak != nil { + return *m.InFlightDvlanPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightDhcp() uint32 { + if m != nil && m.InFlightDhcp != nil { + return *m.InFlightDhcp + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightDhcpPeak() uint32 { + if m != nil && m.InFlightDhcpPeak != nil { + return *m.InFlightDhcpPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightPpp() uint32 { + if m != nil && m.InFlightPpp != nil { + return *m.InFlightPpp + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightPppPeak() uint32 { + if m != nil && m.InFlightPppPeak != nil { + return *m.InFlightPppPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightHag() uint32 { + if m != nil && m.InFlightHag != nil { + return *m.InFlightHag + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightHagPeak() uint32 { + if m != nil && m.InFlightHagPeak != nil { + return *m.InFlightHagPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightTotal() uint32 { + if m != nil && m.InFlightTotal != nil { + return *m.InFlightTotal + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInFlightTotalPeak() uint32 { + if m != nil && m.InFlightTotalPeak != nil { + return *m.InFlightTotalPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoDvlan() uint32 { + if m != nil && m.InNegoDvlan != nil { + return *m.InNegoDvlan + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoDvlanPeak() uint32 { + if m != nil && m.InNegoDvlanPeak != nil { + return *m.InNegoDvlanPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoDhcp() uint32 { + if m != nil && m.InNegoDhcp != nil { + return *m.InNegoDhcp + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoDhcpPeak() uint32 { + if m != nil && m.InNegoDhcpPeak != nil { + return *m.InNegoDhcpPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoPpp() uint32 { + if m != nil && m.InNegoPpp != nil { + return *m.InNegoPpp + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoPppPeak() uint32 { + if m != nil && m.InNegoPppPeak != nil { + return *m.InNegoPppPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoHag() uint32 { + if m != nil && m.InNegoHag != nil { + return *m.InNegoHag + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoHagPeak() uint32 { + if m != nil && m.InNegoHagPeak != nil { + return *m.InNegoHagPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoTotal() uint32 { + if m != nil && m.InNegoTotal != nil { + return *m.InNegoTotal + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoTotalPeak() uint32 { + if m != nil && m.InNegoTotalPeak != nil { + return *m.InNegoTotalPeak + } + return 0 +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) GetInNegoOverrides() uint32 { + if m != nil && m.InNegoOverrides != nil { + return *m.InNegoOverrides + } + return 0 +} + +var E_JnprDebugQueueStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*DebugQueueStats)(nil), + Field: 38, + Name: "jnpr_debug_queue_stats_ext", + Tag: "bytes,38,opt,name=jnpr_debug_queue_stats_ext", + Filename: "bbe-smgd_smd_queue_stats_oc.proto", +} + +func init() { + proto.RegisterType((*DebugQueueStats)(nil), "debug_queue_stats") + proto.RegisterType((*DebugQueueStatsSystemType)(nil), "debug_queue_stats.system_type") + proto.RegisterType((*DebugQueueStatsSystemTypeSubscriberManagementType)(nil), "debug_queue_stats.system_type.subscriber_management_type") + proto.RegisterType((*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType)(nil), "debug_queue_stats.system_type.subscriber_management_type.uplanes_type") + proto.RegisterType((*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList)(nil), "debug_queue_stats.system_type.subscriber_management_type.uplanes_type.uplane_list") + proto.RegisterType((*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType)(nil), "debug_queue_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type") + proto.RegisterType((*DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType)(nil), "debug_queue_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.era_type") + proto.RegisterExtension(E_JnprDebugQueueStatsExt) +} + +func init() { proto.RegisterFile("bbe-smgd_smd_queue_stats_oc.proto", fileDescriptor_25315a2411c1892a) } + +var fileDescriptor_25315a2411c1892a = []byte{ + // 1731 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdb, 0x56, 0x14, 0xcb, + 0x19, 0x5e, 0x13, 0xa3, 0xd1, 0x42, 0x50, 0x9b, 0x53, 0x33, 0x2a, 0x02, 0x2a, 0x92, 0x28, 0x33, + 0xf1, 0xac, 0x68, 0x54, 0x64, 0x20, 0x60, 0x00, 0x87, 0x81, 0x9c, 0x4c, 0x4c, 0x5b, 0xd3, 0x5d, + 0xf4, 0x14, 0xd3, 0xdd, 0xd5, 0x76, 0xd5, 0x30, 0x43, 0xce, 0x9a, 0x95, 0xab, 0x3c, 0x40, 0x1e, + 0x64, 0x2f, 0xf7, 0x33, 0xec, 0xcb, 0xfd, 0x08, 0x7b, 0xf9, 0x24, 0x7b, 0xd5, 0x5f, 0x3d, 0x7d, + 0x1e, 0x2e, 0xf6, 0x72, 0x5f, 0x52, 0xf5, 0x1d, 0xfe, 0xfa, 0xeb, 0xeb, 0xaa, 0x62, 0xd0, 0x6c, + 0xb3, 0x49, 0x16, 0xb9, 0x6b, 0x5b, 0x06, 0x77, 0x2d, 0xe3, 0x7d, 0x87, 0x74, 0x88, 0xc1, 0x05, + 0x16, 0xdc, 0x60, 0x66, 0xc5, 0x0f, 0x98, 0x60, 0xe5, 0x51, 0x41, 0x1c, 0xe2, 0x12, 0x11, 0x1c, + 0x19, 0x82, 0xf9, 0x6a, 0x70, 0xee, 0xbf, 0x37, 0xd0, 0x05, 0x8b, 0x34, 0x3b, 0x76, 0x92, 0xa3, + 0x3d, 0x44, 0xa7, 0xf8, 0x11, 0x17, 0xc4, 0xd5, 0xff, 0x5f, 0x9a, 0x29, 0x2d, 0x0c, 0xdd, 0x99, + 0xae, 0xe4, 0x40, 0x15, 0x85, 0x30, 0xc4, 0x91, 0x4f, 0x1a, 0x21, 0xbc, 0xfc, 0xf5, 0x3c, 0x1a, + 0x4a, 0x8c, 0x6b, 0x0c, 0x8d, 0xf3, 0x4e, 0x93, 0x9b, 0x01, 0x6d, 0x92, 0xc0, 0x70, 0xb1, 0x87, + 0x6d, 0xe2, 0x12, 0x4f, 0xf4, 0x75, 0x1f, 0x1f, 0xaf, 0x5b, 0x29, 0x24, 0x2b, 0xcb, 0xb1, 0x78, + 0x6e, 0x2b, 0x9a, 0x2a, 0x7f, 0xba, 0x8e, 0xca, 0x83, 0x49, 0x1a, 0x46, 0x3f, 0xeb, 0xf8, 0x0e, + 0xf6, 0x08, 0xef, 0x57, 0xb0, 0xf6, 0x83, 0x2b, 0xa8, 0x84, 0x4a, 0xaa, 0x9c, 0xbe, 0x6e, 0xf9, + 0xab, 0x6b, 0xe8, 0x6c, 0x72, 0x46, 0x6b, 0xa3, 0x53, 0xea, 0x6f, 0x69, 0x79, 0x62, 0x61, 0xe8, + 0x4e, 0xe3, 0xcb, 0x58, 0x86, 0x7f, 0x18, 0x0e, 0xe5, 0xa2, 0x11, 0x5a, 0x94, 0x3f, 0x5d, 0x45, + 0x43, 0x89, 0x71, 0x6d, 0x0e, 0x9d, 0x09, 0xff, 0xa4, 0x96, 0x7e, 0x77, 0xa6, 0xb4, 0x30, 0xfc, + 0xf2, 0xe4, 0xc7, 0x17, 0x3f, 0x39, 0x5d, 0x6a, 0x9c, 0x56, 0xe3, 0x1b, 0x96, 0x26, 0xd0, 0x49, + 0xea, 0xed, 0x07, 0xb8, 0xdf, 0x92, 0xb7, 0x5f, 0xbe, 0xbe, 0x0a, 0x18, 0xa8, 0x4e, 0x29, 0xb3, + 0xf2, 0xff, 0xe6, 0x10, 0x8a, 0x47, 0xb5, 0x23, 0x74, 0x82, 0xc4, 0x25, 0xec, 0xff, 0xa8, 0x25, + 0x54, 0x48, 0xbf, 0x16, 0xe9, 0x59, 0xfe, 0x30, 0x8b, 0x4e, 0xf7, 0x47, 0xb4, 0xbb, 0x68, 0x92, + 0x32, 0x43, 0x30, 0xf8, 0x8e, 0xac, 0x43, 0x07, 0x7b, 0xc6, 0x7b, 0xc3, 0x64, 0x1d, 0x4f, 0xa8, + 0xf6, 0x35, 0x34, 0xca, 0xf6, 0xd8, 0xae, 0x6b, 0xd5, 0xe4, 0xdc, 0xce, 0x8a, 0x9c, 0xd1, 0x96, + 0xd0, 0xc5, 0x2c, 0xc9, 0xc5, 0xbd, 0x88, 0x78, 0x0f, 0x88, 0xe3, 0x49, 0xe2, 0x16, 0xee, 0x85, + 0xdc, 0x45, 0x34, 0x16, 0x73, 0x7d, 0x6c, 0x51, 0x49, 0xf3, 0x84, 0x7e, 0x1f, 0x48, 0xe7, 0x42, + 0x52, 0x1d, 0x5b, 0x74, 0x67, 0xc5, 0x13, 0xda, 0x03, 0x34, 0x55, 0x04, 0x37, 0x7c, 0x82, 0xdb, + 0xfa, 0x03, 0xe0, 0x8c, 0x66, 0x38, 0x75, 0x82, 0xdb, 0xda, 0x7d, 0xa4, 0x27, 0x4a, 0xa4, 0xdc, + 0x64, 0x87, 0x24, 0x08, 0xad, 0x1e, 0xa6, 0x68, 0xb5, 0x70, 0x12, 0xec, 0x9e, 0xa1, 0xcb, 0x83, + 0x68, 0xca, 0xf2, 0x11, 0x70, 0x27, 0x0b, 0xb8, 0x60, 0x9b, 0x6a, 0x27, 0x67, 0x0e, 0x35, 0xa9, + 0x08, 0x5d, 0x1f, 0xa7, 0xda, 0xb9, 0xab, 0xe6, 0xc0, 0xf4, 0x29, 0xba, 0x34, 0x80, 0xa4, 0x3c, + 0x97, 0x80, 0x39, 0x91, 0x67, 0x82, 0x65, 0xaa, 0xa1, 0x56, 0xcb, 0xf4, 0x43, 0xbf, 0x27, 0xa9, + 0x86, 0xd6, 0x5a, 0xa6, 0x9f, 0x6f, 0x68, 0x0c, 0x57, 0x4e, 0x4f, 0xd3, 0x9d, 0x09, 0x39, 0x60, + 0x73, 0x13, 0x8d, 0xc6, 0xbc, 0x16, 0xb6, 0x43, 0x97, 0x5f, 0x01, 0x63, 0x24, 0x64, 0xac, 0x63, + 0x1b, 0x4c, 0xee, 0x25, 0xbb, 0x1f, 0x81, 0x95, 0xc7, 0xb3, 0x54, 0x1f, 0x42, 0x06, 0x58, 0x54, + 0xd1, 0x78, 0xcc, 0x12, 0x4c, 0x60, 0x27, 0x34, 0x79, 0x0e, 0x94, 0xf3, 0x21, 0x65, 0x4f, 0xce, + 0x80, 0xcd, 0x23, 0x54, 0x2e, 0x24, 0x28, 0xa3, 0x17, 0xc0, 0x1a, 0xcb, 0xb2, 0xc0, 0xea, 0xe7, + 0xe8, 0x42, 0x3e, 0xf0, 0xcb, 0x6a, 0x2d, 0x3c, 0x1d, 0xf6, 0x5f, 0xa2, 0xf1, 0xe2, 0x98, 0xbf, + 0x04, 0xf8, 0x05, 0x9e, 0x8b, 0xf8, 0x55, 0x34, 0x92, 0x09, 0xf7, 0x0a, 0x40, 0x87, 0x78, 0x22, + 0xd8, 0xb7, 0xd0, 0x68, 0x51, 0xa4, 0x6b, 0x6a, 0xd7, 0x78, 0x26, 0xce, 0x37, 0x91, 0x56, 0x10, + 0xe4, 0xd5, 0x08, 0x9c, 0x0a, 0xf1, 0x3d, 0x34, 0x39, 0x28, 0xbe, 0x6b, 0x6a, 0x83, 0x79, 0x41, + 0x74, 0xc3, 0x96, 0xa4, 0x43, 0xfb, 0xeb, 0xa8, 0x25, 0xc9, 0xc0, 0xde, 0x41, 0x13, 0x03, 0xa2, + 0xba, 0xae, 0x36, 0x97, 0xe7, 0x63, 0x1a, 0x36, 0x25, 0x11, 0xd0, 0x8d, 0xa8, 0x29, 0x51, 0x38, + 0xc3, 0xa6, 0x64, 0x63, 0xf9, 0x2a, 0x5e, 0x67, 0x32, 0x92, 0xb3, 0x68, 0x38, 0x1d, 0xc6, 0xdf, + 0x00, 0x0e, 0xf1, 0x38, 0x88, 0xbf, 0x50, 0x7d, 0xcb, 0x44, 0x70, 0x33, 0x5a, 0x55, 0x32, 0x7e, + 0xd7, 0xd1, 0xb9, 0x6c, 0xf0, 0xb6, 0x00, 0x78, 0x96, 0x27, 0x43, 0x57, 0x41, 0x63, 0x85, 0x71, + 0xdb, 0x56, 0x21, 0xe5, 0xd9, 0xa8, 0x3d, 0x41, 0x65, 0x89, 0xf7, 0x98, 0xa0, 0xfb, 0xd4, 0xc4, + 0x82, 0x32, 0x2f, 0x3c, 0xe7, 0xa5, 0xc3, 0x6b, 0x75, 0x9e, 0x70, 0xd7, 0xda, 0x4e, 0x00, 0x76, + 0xe4, 0xbc, 0x34, 0xab, 0xa1, 0x2b, 0x83, 0xc9, 0xca, 0xb7, 0x0e, 0x0a, 0x17, 0x07, 0x28, 0x40, + 0x09, 0xb7, 0x55, 0x84, 0x5d, 0xc2, 0x39, 0xb6, 0x49, 0xc2, 0x7d, 0x27, 0xda, 0xae, 0x2d, 0x35, + 0x17, 0x19, 0x2f, 0xa9, 0xaa, 0x73, 0x14, 0xe5, 0xd9, 0x50, 0x27, 0x52, 0x9e, 0x17, 0x7e, 0xc7, + 0x63, 0x2a, 0xda, 0x66, 0x9b, 0x88, 0x84, 0xdb, 0x6e, 0xf4, 0xc1, 0xd4, 0x61, 0x2a, 0x32, 0x7b, + 0x84, 0xa6, 0x8a, 0x08, 0xca, 0x6b, 0x4f, 0xdd, 0x26, 0x39, 0x16, 0x58, 0x3d, 0x40, 0x7a, 0x82, + 0xe9, 0xb0, 0x6e, 0xc2, 0xee, 0xb7, 0xea, 0xfb, 0x8f, 0x88, 0x9b, 0xac, 0x1b, 0x39, 0x3e, 0x47, + 0x97, 0x07, 0xf1, 0x94, 0xeb, 0xef, 0x80, 0xac, 0x17, 0x91, 0xc1, 0xf8, 0x06, 0x3a, 0x4f, 0x99, + 0xe1, 0xb7, 0x85, 0x3a, 0x0c, 0xa4, 0x84, 0xfe, 0xfb, 0x99, 0xd2, 0xc2, 0x4f, 0x1b, 0xc3, 0x94, + 0xd5, 0xdb, 0x02, 0x4e, 0x82, 0x4d, 0xd6, 0x95, 0x9f, 0x55, 0x0a, 0xe8, 0x4a, 0xe4, 0x1f, 0x00, + 0x39, 0x12, 0x23, 0xb7, 0x1c, 0xd6, 0xcd, 0x69, 0xba, 0xc4, 0xd2, 0xff, 0x98, 0xd5, 0xdc, 0x22, + 0x56, 0x4e, 0xb3, 0x45, 0xed, 0x96, 0xfe, 0x26, 0xab, 0xb9, 0x4e, 0xed, 0x96, 0x76, 0x17, 0x4d, + 0x48, 0x28, 0xac, 0x81, 0x1b, 0x56, 0xc0, 0x7c, 0x9f, 0x58, 0x50, 0xed, 0x9f, 0x00, 0x3f, 0x4a, + 0x99, 0x5a, 0x20, 0xaf, 0xa9, 0x39, 0x59, 0xf3, 0x7d, 0xb8, 0xc5, 0xb2, 0x24, 0xa8, 0xfc, 0xcf, + 0xc0, 0x1a, 0xcb, 0xb2, 0xa0, 0xfe, 0x62, 0x2f, 0xb9, 0x8a, 0xb7, 0xc5, 0x5e, 0x72, 0x2d, 0xc5, + 0x5e, 0xb0, 0xa2, 0xbf, 0x14, 0x7b, 0xc1, 0xba, 0x9e, 0xc1, 0x9d, 0x99, 0xa5, 0xa9, 0xd3, 0xd4, + 0x21, 0x9e, 0x6e, 0x00, 0x57, 0xcf, 0x72, 0xe1, 0x50, 0x75, 0x88, 0xa7, 0xad, 0xa3, 0xd9, 0x41, + 0x7c, 0xea, 0x36, 0xb1, 0x83, 0x3d, 0x93, 0xe8, 0xef, 0x40, 0xe4, 0x72, 0x91, 0xc8, 0x46, 0x1f, + 0xa4, 0xad, 0xa1, 0x99, 0x02, 0xa5, 0xf8, 0xf0, 0x95, 0xd5, 0x60, 0x10, 0xba, 0x94, 0x15, 0x8a, + 0xce, 0x60, 0x59, 0x51, 0x1d, 0x5d, 0x3f, 0x4e, 0x27, 0xae, 0xaa, 0x09, 0x62, 0xb3, 0x83, 0xc4, + 0xe2, 0xca, 0x6a, 0xe8, 0x4a, 0x81, 0x62, 0x74, 0x6a, 0xcb, 0xc2, 0x4c, 0xd0, 0xba, 0x98, 0xd5, + 0xea, 0x1f, 0xde, 0xb2, 0xae, 0x6d, 0x74, 0xed, 0x18, 0x95, 0xb8, 0x2c, 0x0b, 0xa4, 0x66, 0x06, + 0x48, 0xc5, 0x55, 0xbd, 0x80, 0x27, 0x56, 0x6e, 0x9d, 0xea, 0x26, 0x96, 0x35, 0x11, 0x10, 0x9a, + 0xca, 0xad, 0x0f, 0xee, 0x64, 0x59, 0xd1, 0x2b, 0x34, 0x37, 0x50, 0x21, 0xae, 0x67, 0x1f, 0x64, + 0xa6, 0x0b, 0x65, 0xe2, 0x6a, 0x9e, 0xc2, 0x53, 0x36, 0x17, 0x3f, 0x79, 0x5f, 0xc8, 0x5a, 0x6c, + 0x10, 0x99, 0xcc, 0x45, 0x10, 0xdb, 0x50, 0x49, 0xf1, 0xde, 0x4b, 0x76, 0x5c, 0x47, 0xab, 0x78, + 0xef, 0xd7, 0xb1, 0x9d, 0xea, 0x89, 0x7c, 0x59, 0x60, 0xc7, 0x61, 0x5d, 0x62, 0x19, 0xd4, 0x33, + 0xf6, 0x1d, 0x6a, 0xb7, 0x84, 0x61, 0x76, 0x82, 0x40, 0xfe, 0xff, 0x48, 0xe1, 0x38, 0x9a, 0x72, + 0x71, 0x6f, 0x59, 0x61, 0x36, 0xbc, 0x35, 0x40, 0xac, 0x28, 0x80, 0xfc, 0x1e, 0x8a, 0x15, 0xb0, + 0x29, 0x3a, 0xd8, 0xd1, 0x0f, 0xd4, 0x79, 0x96, 0x17, 0x58, 0x86, 0x79, 0x6d, 0x07, 0xcd, 0x1f, + 0x5b, 0x81, 0x81, 0x9b, 0x9c, 0x39, 0x1d, 0x41, 0xf4, 0x36, 0x28, 0xcd, 0x0e, 0x2c, 0x65, 0x39, + 0x04, 0x6a, 0x0d, 0x74, 0xa3, 0x58, 0x52, 0x8e, 0x12, 0x99, 0xe9, 0x48, 0xd3, 0x19, 0xa4, 0xb9, + 0x85, 0x7b, 0xab, 0x87, 0x24, 0x88, 0x34, 0x6f, 0xa3, 0x71, 0x97, 0x7a, 0x79, 0x4d, 0xdd, 0x55, + 0x37, 0x99, 0x4b, 0xbd, 0x8c, 0x82, 0xf6, 0x18, 0x95, 0xa5, 0xa1, 0x3c, 0xe3, 0xfd, 0x80, 0xc2, + 0xa9, 0x29, 0x98, 0x41, 0x3c, 0x38, 0xf0, 0x75, 0x4f, 0xdd, 0x2e, 0x2e, 0xee, 0x6d, 0xb2, 0x6e, + 0x3d, 0xa0, 0xf5, 0xb6, 0xd8, 0x63, 0xab, 0x6a, 0x52, 0x9b, 0x47, 0xe7, 0xe2, 0xaa, 0x21, 0x5f, + 0x3a, 0x03, 0xfc, 0x30, 0x0d, 0xd5, 0x21, 0x4d, 0xf2, 0xc2, 0xcb, 0xe0, 0xd4, 0x25, 0xe2, 0xab, + 0x0b, 0x2f, 0x05, 0x86, 0xdb, 0xe3, 0x1a, 0x1a, 0x49, 0x10, 0x5a, 0xa6, 0xaf, 0xbf, 0x57, 0x2f, + 0x8d, 0x08, 0xda, 0x32, 0x7d, 0x6d, 0x11, 0x8d, 0xa6, 0x51, 0x4a, 0x35, 0x08, 0x5f, 0xc3, 0x09, + 0x28, 0x88, 0xce, 0xa1, 0xe1, 0x18, 0xee, 0xfb, 0xbe, 0xce, 0xd5, 0x03, 0xab, 0x0f, 0xac, 0xfb, + 0xbe, 0x7c, 0x47, 0xa6, 0x30, 0x4a, 0x51, 0x84, 0xff, 0x2a, 0xc4, 0xc0, 0xbc, 0x60, 0x0b, 0xdb, + 0x7a, 0x27, 0x2d, 0xb8, 0x8e, 0xed, 0xb4, 0xa0, 0x0c, 0x3e, 0x08, 0x1e, 0xa6, 0x05, 0xd7, 0xb1, + 0x0d, 0x82, 0xa9, 0x7e, 0xc2, 0x03, 0x4a, 0xef, 0xa6, 0xfb, 0x09, 0x4f, 0xa7, 0x74, 0x3f, 0xd5, + 0x43, 0x0b, 0x64, 0x7b, 0xe9, 0x7e, 0x02, 0x38, 0x51, 0xa9, 0x47, 0x6c, 0x16, 0x6e, 0xd3, 0x51, + 0xbf, 0xd2, 0x6d, 0x62, 0x33, 0xb5, 0x49, 0xaa, 0xd2, 0x18, 0xa3, 0x24, 0xff, 0xda, 0xaf, 0x34, + 0x02, 0x82, 0xe0, 0x0c, 0x3a, 0x1b, 0x81, 0xe5, 0xf6, 0xfc, 0x4d, 0xbd, 0x2c, 0x43, 0x98, 0xdc, + 0x1c, 0x79, 0x07, 0x27, 0x10, 0x4a, 0xed, 0xef, 0xe1, 0x7f, 0x43, 0x11, 0x0c, 0xc4, 0xa6, 0xd1, + 0x50, 0x1f, 0x2a, 0xb7, 0xe5, 0x1f, 0x00, 0x3a, 0xa3, 0x40, 0x72, 0x53, 0xe4, 0xbd, 0x1f, 0xcf, + 0x2b, 0xa5, 0x7f, 0xf6, 0xfb, 0x12, 0x82, 0xb2, 0x42, 0x72, 0x3b, 0xfe, 0x95, 0x14, 0x92, 0x9b, + 0xb1, 0x10, 0x0b, 0x45, 0x5b, 0xf1, 0xef, 0x52, 0x52, 0xa9, 0xbf, 0x13, 0x57, 0xe3, 0x86, 0xa9, + 0x7d, 0xf8, 0x50, 0x4a, 0x76, 0x4c, 0x6d, 0xc3, 0xad, 0xb8, 0x63, 0x89, 0x4d, 0xf8, 0x58, 0x4a, + 0xb6, 0x2c, 0xde, 0x83, 0x9b, 0x71, 0x43, 0xe4, 0x35, 0x14, 0x50, 0x8b, 0x70, 0xfd, 0x3f, 0x29, + 0xf0, 0xeb, 0xfe, 0xf8, 0x92, 0x8d, 0xca, 0x07, 0x9e, 0x1f, 0x18, 0xb9, 0x9f, 0x3d, 0x0c, 0xd2, + 0x13, 0xda, 0x64, 0xe5, 0x55, 0xc7, 0xa3, 0x3e, 0x09, 0xb6, 0x89, 0xe8, 0xb2, 0xa0, 0xcd, 0x77, + 0x89, 0xc7, 0x59, 0xc0, 0xf5, 0x79, 0xf8, 0xb5, 0x44, 0xcb, 0xff, 0x5a, 0xd2, 0x98, 0x90, 0x72, + 0x35, 0x39, 0x0c, 0xcf, 0xb4, 0x5d, 0x39, 0xb8, 0xda, 0x13, 0x2f, 0xdf, 0x7d, 0xf3, 0x79, 0xba, + 0xf4, 0xed, 0xe7, 0xe9, 0xd2, 0x77, 0x9f, 0xa7, 0x4b, 0x6f, 0x1a, 0x36, 0x15, 0x95, 0x03, 0xa5, + 0x5d, 0xf1, 0x88, 0xa8, 0x52, 0x93, 0x34, 0x49, 0x60, 0x57, 0x5b, 0x04, 0x3b, 0xa2, 0xd5, 0x64, + 0x62, 0x91, 0x7a, 0x36, 0xe1, 0x62, 0xf1, 0x40, 0xd0, 0x45, 0x0f, 0x0b, 0x7a, 0x48, 0xaa, 0x7e, + 0xdb, 0xae, 0x1e, 0x08, 0x5a, 0xc5, 0x16, 0xf6, 0x05, 0x09, 0x78, 0xd5, 0x38, 0xe8, 0x78, 0x8c, + 0x57, 0xb9, 0xd9, 0x22, 0x2e, 0xfe, 0x3e, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x1e, 0xad, 0x96, 0x8b, + 0x14, 0x00, 0x00, +} + +func (m *DebugQueueStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugQueueStatsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStatsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStatsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Uplanes != nil { + { + size, err := m.Uplanes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Uplane) > 0 { + for iNdEx := len(m.Uplane) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Uplane[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Infra != nil { + { + size, err := m.Infra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.UplaneId != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.UplaneId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Era != nil { + { + size, err := m.Era.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InNegoOverrides != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoOverrides)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x98 + } + if m.InNegoTotalPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoTotalPeak)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x90 + } + if m.InNegoTotal != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoTotal)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x88 + } + if m.InNegoHagPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoHagPeak)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x80 + } + if m.InNegoHag != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoHag)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xf8 + } + if m.InNegoPppPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoPppPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xf0 + } + if m.InNegoPpp != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoPpp)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xe8 + } + if m.InNegoDhcpPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoDhcpPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xe0 + } + if m.InNegoDhcp != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoDhcp)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xd8 + } + if m.InNegoDvlanPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoDvlanPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xd0 + } + if m.InNegoDvlan != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InNegoDvlan)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc8 + } + if m.InFlightTotalPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightTotalPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc0 + } + if m.InFlightTotal != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightTotal)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xb8 + } + if m.InFlightHagPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightHagPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xb0 + } + if m.InFlightHag != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightHag)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xa8 + } + if m.InFlightPppPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightPppPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xa0 + } + if m.InFlightPpp != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightPpp)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x98 + } + if m.InFlightDhcpPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightDhcpPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x90 + } + if m.InFlightDhcp != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightDhcp)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x88 + } + if m.InFlightDvlanPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightDvlanPeak)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x80 + } + if m.InFlightDvlan != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.InFlightDvlan)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf8 + } + if m.MaxLowPriPktToEnqueue != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.MaxLowPriPktToEnqueue)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf0 + } + if m.MinAllowedInFlight != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.MinAllowedInFlight)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe8 + } + if m.MaxAllowedInFlightMaxEverAbsolute != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.MaxAllowedInFlightMaxEverAbsolute)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe0 + } + if m.MaxAllowedInFlightCurrentAbsolute != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.MaxAllowedInFlightCurrentAbsolute)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd8 + } + if m.MaxAllowedInFlightActual != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.MaxAllowedInFlightActual)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd0 + } + if m.MaxAllowedInFlightCurrent != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.MaxAllowedInFlightCurrent)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 + } + if m.IoPacketsDroppedHagImbalance != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedHagImbalance)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 + } + if m.IoPacketsDroppedHagQlen != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedHagQlen)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 + } + if m.IoPacketsDroppedDvlanImbalance != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedDvlanImbalance)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 + } + if m.IoPacketsDroppedDvlanQlen != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedDvlanQlen)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if m.IoPacketsDroppedSolicitImbalance != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedSolicitImbalance)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa0 + } + if m.IoPacketsDroppedSolicitQlen != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedSolicitQlen)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x98 + } + if m.IoPacketsDroppedDiscoverImbalance != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedDiscoverImbalance)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x90 + } + if m.IoPacketsDroppedDiscoverQlen != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedDiscoverQlen)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x88 + } + if m.IoPacketsDroppedPadiImbalance != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedPadiImbalance)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x80 + } + if m.IoPacketsDroppedPadiQlen != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedPadiQlen)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf8 + } + if m.IoPacketsDroppedHigh != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedHigh)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.IoPacketsDroppedMed != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedMed)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.IoPacketsDroppedMlow != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedMlow)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.IoPacketsDroppedLow != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPacketsDroppedLow)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.IoPktCountHigh != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPktCountHigh)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.IoPktCountMed != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPktCountMed)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.IoPktCountMlow != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPktCountMlow)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.IoPktCountLow != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoPktCountLow)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.SmdPacketLowQueueCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdPacketLowQueueCntPeak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.SmdPacketLowQueueCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdPacketLowQueueCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.SmdPacketQueueCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdPacketQueueCntPeak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.SmdPacketQueueCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdPacketQueueCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.SmdMessageQueueCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdMessageQueueCntPeak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.SmdMessageQueueCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdMessageQueueCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.SmdNotificationQueueCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdNotificationQueueCntPeak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.SmdNotificationQueueCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdNotificationQueueCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.SmdTotalQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdTotalQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.SmdTotalQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdTotalQCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.SmdHagQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdHagQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.SmdHagQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdHagQCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.SmdDhcpQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdDhcpQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.SmdDhcpQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdDhcpQCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.SmdSolicitQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdSolicitQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.SmdSolicitQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdSolicitQCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.SmdDiscoverQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdDiscoverQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.SmdDiscoverQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdDiscoverQCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.SmdPadiQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdPadiQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.SmdPadiQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdPadiQCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.SmdDvlanMaxQCount != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdDvlanMaxQCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.SmdDvlanQCount != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.SmdDvlanQCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.IoToSmdTotalQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdTotalQCntPeak)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.IoToSmdTotalQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdTotalQCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.IoToSmdHagQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdHagQCntPeak)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.IoToSmdHagQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdHagQCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.IoToSmdDhcpQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdDhcpQCntPeak)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.IoToSmdDhcpQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdDhcpQCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.IoToSmdSolicitQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdSolicitQCntPeak)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.IoToSmdSolicitQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdSolicitQCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.IoToSmdDiscoverQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdDiscoverQCntPeak)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.IoToSmdDiscoverQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdDiscoverQCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.IoToSmdPadiQCntPeak != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdPadiQCntPeak)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.IoToSmdPadiQCnt != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdPadiQCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.IoToSmdDvlanMaxQCount != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdDvlanMaxQCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.IoToSmdDvlanQCount != nil { + i = encodeVarintBbeSmgdSmdQueueStatsOc(dAtA, i, uint64(*m.IoToSmdDvlanQCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeSmgdSmdQueueStatsOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeSmgdSmdQueueStatsOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DebugQueueStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeSmgdSmdQueueStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugQueueStatsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeSmgdSmdQueueStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Uplanes != nil { + l = m.Uplanes.Size() + n += 2 + l + sovBbeSmgdSmdQueueStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Uplane) > 0 { + for _, e := range m.Uplane { + l = e.Size() + n += 2 + l + sovBbeSmgdSmdQueueStatsOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UplaneId != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.UplaneId)) + } + if m.Infra != nil { + l = m.Infra.Size() + n += 2 + l + sovBbeSmgdSmdQueueStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Era != nil { + l = m.Era.Size() + n += 2 + l + sovBbeSmgdSmdQueueStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IoToSmdDvlanQCount != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdDvlanQCount)) + } + if m.IoToSmdDvlanMaxQCount != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdDvlanMaxQCount)) + } + if m.IoToSmdPadiQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdPadiQCnt)) + } + if m.IoToSmdPadiQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdPadiQCntPeak)) + } + if m.IoToSmdDiscoverQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdDiscoverQCnt)) + } + if m.IoToSmdDiscoverQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdDiscoverQCntPeak)) + } + if m.IoToSmdSolicitQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdSolicitQCnt)) + } + if m.IoToSmdSolicitQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdSolicitQCntPeak)) + } + if m.IoToSmdDhcpQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdDhcpQCnt)) + } + if m.IoToSmdDhcpQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdDhcpQCntPeak)) + } + if m.IoToSmdHagQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdHagQCnt)) + } + if m.IoToSmdHagQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdHagQCntPeak)) + } + if m.IoToSmdTotalQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdTotalQCnt)) + } + if m.IoToSmdTotalQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoToSmdTotalQCntPeak)) + } + if m.SmdDvlanQCount != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdDvlanQCount)) + } + if m.SmdDvlanMaxQCount != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdDvlanMaxQCount)) + } + if m.SmdPadiQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdPadiQCnt)) + } + if m.SmdPadiQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdPadiQCntPeak)) + } + if m.SmdDiscoverQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdDiscoverQCnt)) + } + if m.SmdDiscoverQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdDiscoverQCntPeak)) + } + if m.SmdSolicitQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdSolicitQCnt)) + } + if m.SmdSolicitQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdSolicitQCntPeak)) + } + if m.SmdDhcpQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdDhcpQCnt)) + } + if m.SmdDhcpQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdDhcpQCntPeak)) + } + if m.SmdHagQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdHagQCnt)) + } + if m.SmdHagQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdHagQCntPeak)) + } + if m.SmdTotalQCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdTotalQCnt)) + } + if m.SmdTotalQCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdTotalQCntPeak)) + } + if m.SmdNotificationQueueCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdNotificationQueueCnt)) + } + if m.SmdNotificationQueueCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdNotificationQueueCntPeak)) + } + if m.SmdMessageQueueCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdMessageQueueCnt)) + } + if m.SmdMessageQueueCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdMessageQueueCntPeak)) + } + if m.SmdPacketQueueCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdPacketQueueCnt)) + } + if m.SmdPacketQueueCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdPacketQueueCntPeak)) + } + if m.SmdPacketLowQueueCnt != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdPacketLowQueueCnt)) + } + if m.SmdPacketLowQueueCntPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.SmdPacketLowQueueCntPeak)) + } + if m.IoPktCountLow != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPktCountLow)) + } + if m.IoPktCountMlow != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPktCountMlow)) + } + if m.IoPktCountMed != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPktCountMed)) + } + if m.IoPktCountHigh != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPktCountHigh)) + } + if m.IoPacketsDroppedLow != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedLow)) + } + if m.IoPacketsDroppedMlow != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedMlow)) + } + if m.IoPacketsDroppedMed != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedMed)) + } + if m.IoPacketsDroppedHigh != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedHigh)) + } + if m.IoPacketsDroppedPadiQlen != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedPadiQlen)) + } + if m.IoPacketsDroppedPadiImbalance != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedPadiImbalance)) + } + if m.IoPacketsDroppedDiscoverQlen != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedDiscoverQlen)) + } + if m.IoPacketsDroppedDiscoverImbalance != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedDiscoverImbalance)) + } + if m.IoPacketsDroppedSolicitQlen != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedSolicitQlen)) + } + if m.IoPacketsDroppedSolicitImbalance != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedSolicitImbalance)) + } + if m.IoPacketsDroppedDvlanQlen != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedDvlanQlen)) + } + if m.IoPacketsDroppedDvlanImbalance != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedDvlanImbalance)) + } + if m.IoPacketsDroppedHagQlen != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedHagQlen)) + } + if m.IoPacketsDroppedHagImbalance != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.IoPacketsDroppedHagImbalance)) + } + if m.MaxAllowedInFlightCurrent != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.MaxAllowedInFlightCurrent)) + } + if m.MaxAllowedInFlightActual != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.MaxAllowedInFlightActual)) + } + if m.MaxAllowedInFlightCurrentAbsolute != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.MaxAllowedInFlightCurrentAbsolute)) + } + if m.MaxAllowedInFlightMaxEverAbsolute != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.MaxAllowedInFlightMaxEverAbsolute)) + } + if m.MinAllowedInFlight != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.MinAllowedInFlight)) + } + if m.MaxLowPriPktToEnqueue != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.MaxLowPriPktToEnqueue)) + } + if m.InFlightDvlan != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightDvlan)) + } + if m.InFlightDvlanPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightDvlanPeak)) + } + if m.InFlightDhcp != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightDhcp)) + } + if m.InFlightDhcpPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightDhcpPeak)) + } + if m.InFlightPpp != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightPpp)) + } + if m.InFlightPppPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightPppPeak)) + } + if m.InFlightHag != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightHag)) + } + if m.InFlightHagPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightHagPeak)) + } + if m.InFlightTotal != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightTotal)) + } + if m.InFlightTotalPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InFlightTotalPeak)) + } + if m.InNegoDvlan != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoDvlan)) + } + if m.InNegoDvlanPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoDvlanPeak)) + } + if m.InNegoDhcp != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoDhcp)) + } + if m.InNegoDhcpPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoDhcpPeak)) + } + if m.InNegoPpp != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoPpp)) + } + if m.InNegoPppPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoPppPeak)) + } + if m.InNegoHag != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoHag)) + } + if m.InNegoHagPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoHagPeak)) + } + if m.InNegoTotal != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoTotal)) + } + if m.InNegoTotalPeak != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoTotalPeak)) + } + if m.InNegoOverrides != nil { + n += 2 + sovBbeSmgdSmdQueueStatsOc(uint64(*m.InNegoOverrides)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeSmgdSmdQueueStatsOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeSmgdSmdQueueStatsOc(x uint64) (n int) { + return sovBbeSmgdSmdQueueStatsOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DebugQueueStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: debug_queue_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: debug_queue_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &DebugQueueStatsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugQueueStatsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &DebugQueueStatsSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uplanes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Uplanes == nil { + m.Uplanes = &DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType{} + } + if err := m.Uplanes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: uplanes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: uplanes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uplane", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uplane = append(m.Uplane, &DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList{}) + if err := m.Uplane[len(m.Uplane)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: uplane_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: uplane_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UplaneId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UplaneId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Infra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Infra == nil { + m.Infra = &DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType{} + } + if err := m.Infra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Era", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Era == nil { + m.Era = &DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType{} + } + if err := m.Era.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DebugQueueStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeEraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: era_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: era_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdDvlanQCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdDvlanQCount = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdDvlanMaxQCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdDvlanMaxQCount = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdPadiQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdPadiQCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdPadiQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdPadiQCntPeak = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdDiscoverQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdDiscoverQCnt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdDiscoverQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdDiscoverQCntPeak = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdSolicitQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdSolicitQCnt = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdSolicitQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdSolicitQCntPeak = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdDhcpQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdDhcpQCnt = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdDhcpQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdDhcpQCntPeak = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdHagQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdHagQCnt = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdHagQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdHagQCntPeak = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdTotalQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdTotalQCnt = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoToSmdTotalQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoToSmdTotalQCntPeak = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdDvlanQCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdDvlanQCount = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdDvlanMaxQCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdDvlanMaxQCount = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdPadiQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdPadiQCnt = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdPadiQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdPadiQCntPeak = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdDiscoverQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdDiscoverQCnt = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdDiscoverQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdDiscoverQCntPeak = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdSolicitQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdSolicitQCnt = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdSolicitQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdSolicitQCntPeak = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdDhcpQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdDhcpQCnt = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdDhcpQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdDhcpQCntPeak = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdHagQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdHagQCnt = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdHagQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdHagQCntPeak = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdTotalQCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdTotalQCnt = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdTotalQCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdTotalQCntPeak = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdNotificationQueueCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdNotificationQueueCnt = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdNotificationQueueCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdNotificationQueueCntPeak = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdMessageQueueCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdMessageQueueCnt = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdMessageQueueCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdMessageQueueCntPeak = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdPacketQueueCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdPacketQueueCnt = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdPacketQueueCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdPacketQueueCntPeak = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdPacketLowQueueCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdPacketLowQueueCnt = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SmdPacketLowQueueCntPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SmdPacketLowQueueCntPeak = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPktCountLow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPktCountLow = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPktCountMlow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPktCountMlow = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPktCountMed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPktCountMed = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPktCountHigh", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPktCountHigh = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedLow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedLow = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedMlow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedMlow = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedMed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedMed = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedHigh", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedHigh = &v + case 95: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedPadiQlen", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedPadiQlen = &v + case 96: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedPadiImbalance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedPadiImbalance = &v + case 97: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedDiscoverQlen", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedDiscoverQlen = &v + case 98: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedDiscoverImbalance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedDiscoverImbalance = &v + case 99: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedSolicitQlen", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedSolicitQlen = &v + case 100: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedSolicitImbalance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedSolicitImbalance = &v + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedDvlanQlen", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedDvlanQlen = &v + case 102: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedDvlanImbalance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedDvlanImbalance = &v + case 103: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedHagQlen", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedHagQlen = &v + case 104: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IoPacketsDroppedHagImbalance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IoPacketsDroppedHagImbalance = &v + case 105: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowedInFlightCurrent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAllowedInFlightCurrent = &v + case 106: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowedInFlightActual", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAllowedInFlightActual = &v + case 107: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowedInFlightCurrentAbsolute", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAllowedInFlightCurrentAbsolute = &v + case 108: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAllowedInFlightMaxEverAbsolute", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAllowedInFlightMaxEverAbsolute = &v + case 109: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinAllowedInFlight", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinAllowedInFlight = &v + case 110: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxLowPriPktToEnqueue", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxLowPriPktToEnqueue = &v + case 111: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightDvlan", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightDvlan = &v + case 112: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightDvlanPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightDvlanPeak = &v + case 113: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightDhcp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightDhcp = &v + case 114: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightDhcpPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightDhcpPeak = &v + case 115: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightPpp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightPpp = &v + case 116: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightPppPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightPppPeak = &v + case 117: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightHag", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightHag = &v + case 118: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightHagPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightHagPeak = &v + case 119: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightTotal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightTotal = &v + case 120: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFlightTotalPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFlightTotalPeak = &v + case 121: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoDvlan", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoDvlan = &v + case 122: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoDvlanPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoDvlanPeak = &v + case 123: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoDhcp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoDhcp = &v + case 124: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoDhcpPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoDhcpPeak = &v + case 125: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoPpp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoPpp = &v + case 126: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoPppPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoPppPeak = &v + case 127: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoHag", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoHag = &v + case 128: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoHagPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoHagPeak = &v + case 129: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoTotal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoTotal = &v + case 130: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoTotalPeak", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoTotalPeak = &v + case 131: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InNegoOverrides", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InNegoOverrides = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSmdQueueStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeSmgdSmdQueueStatsOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdSmdQueueStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeSmgdSmdQueueStatsOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeSmgdSmdQueueStatsOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeSmgdSmdQueueStatsOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeSmgdSmdQueueStatsOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeSmgdSmdQueueStatsOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-smgd_smd_queue_stats_oc.proto b/schema/bbe-smgd_smd_queue_stats_oc.proto new file mode 100755 index 0000000..9fd214d --- /dev/null +++ b/schema/bbe-smgd_smd_queue_stats_oc.proto @@ -0,0 +1,110 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional debug_queue_stats jnpr_debug_queue_stats_ext = 38; +} + +message debug_queue_stats { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional uplanes_type uplanes = 151; + message uplanes_type { + message uplane_list { + optional uint32 uplane_id = 51 [(telemetry_options).is_key = true]; + optional infra_type infra = 151; + message infra_type { + optional era_type era = 151; + message era_type { + optional uint32 io_to_smd_dvlan_q_count = 51; + optional uint32 io_to_smd_dvlan_max_q_count = 52; + optional uint32 io_to_smd_padi_q_cnt = 53; + optional uint32 io_to_smd_padi_q_cnt_peak = 54; + optional uint32 io_to_smd_discover_q_cnt = 55; + optional uint32 io_to_smd_discover_q_cnt_peak = 56; + optional uint32 io_to_smd_solicit_q_cnt = 57; + optional uint32 io_to_smd_solicit_q_cnt_peak = 58; + optional uint32 io_to_smd_dhcp_q_cnt = 59; + optional uint32 io_to_smd_dhcp_q_cnt_peak = 60; + optional uint32 io_to_smd_hag_q_cnt = 61; + optional uint32 io_to_smd_hag_q_cnt_peak = 62; + optional uint32 io_to_smd_total_q_cnt = 63; + optional uint32 io_to_smd_total_q_cnt_peak = 64; + optional uint32 smd_dvlan_q_count = 65; + optional uint32 smd_dvlan_max_q_count = 66; + optional uint32 smd_padi_q_cnt = 67; + optional uint32 smd_padi_q_cnt_peak = 68; + optional uint32 smd_discover_q_cnt = 69; + optional uint32 smd_discover_q_cnt_peak = 70; + optional uint32 smd_solicit_q_cnt = 71; + optional uint32 smd_solicit_q_cnt_peak = 72; + optional uint32 smd_dhcp_q_cnt = 73; + optional uint32 smd_dhcp_q_cnt_peak = 74; + optional uint32 smd_hag_q_cnt = 75; + optional uint32 smd_hag_q_cnt_peak = 76; + optional uint32 smd_total_q_cnt = 77; + optional uint32 smd_total_q_cnt_peak = 78; + optional uint32 smd_notification_queue_cnt = 79; + optional uint32 smd_notification_queue_cnt_peak = 80; + optional uint32 smd_message_queue_cnt = 81; + optional uint32 smd_message_queue_cnt_peak = 82; + optional uint32 smd_packet_queue_cnt = 83; + optional uint32 smd_packet_queue_cnt_peak = 84; + optional uint32 smd_packet_low_queue_cnt = 85; + optional uint32 smd_packet_low_queue_cnt_peak = 86; + optional uint64 io_pkt_count_low = 87; + optional uint64 io_pkt_count_mlow = 88; + optional uint64 io_pkt_count_med = 89; + optional uint64 io_pkt_count_high = 90; + optional uint64 io_packets_dropped_low = 91; + optional uint64 io_packets_dropped_mlow = 92; + optional uint64 io_packets_dropped_med = 93; + optional uint64 io_packets_dropped_high = 94; + optional uint64 io_packets_dropped_padi_qlen = 95; + optional uint64 io_packets_dropped_padi_imbalance = 96; + optional uint64 io_packets_dropped_discover_qlen = 97; + optional uint64 io_packets_dropped_discover_imbalance = 98; + optional uint64 io_packets_dropped_solicit_qlen = 99; + optional uint64 io_packets_dropped_solicit_imbalance = 100; + optional uint64 io_packets_dropped_dvlan_qlen = 101; + optional uint64 io_packets_dropped_dvlan_imbalance = 102; + optional uint64 io_packets_dropped_hag_qlen = 103; + optional uint64 io_packets_dropped_hag_imbalance = 104; + optional uint32 max_allowed_in_flight_current = 105; + optional uint32 max_allowed_in_flight_actual = 106; + optional uint32 max_allowed_in_flight_current_absolute = 107; + optional uint32 max_allowed_in_flight_max_ever_absolute = 108; + optional uint32 min_allowed_in_flight = 109; + optional uint32 max_low_pri_pkt_to_enqueue = 110; + optional uint32 in_flight_dvlan = 111; + optional uint32 in_flight_dvlan_peak = 112; + optional uint32 in_flight_dhcp = 113; + optional uint32 in_flight_dhcp_peak = 114; + optional uint32 in_flight_ppp = 115; + optional uint32 in_flight_ppp_peak = 116; + optional uint32 in_flight_hag = 117; + optional uint32 in_flight_hag_peak = 118; + optional uint32 in_flight_total = 119; + optional uint32 in_flight_total_peak = 120; + optional uint32 in_nego_dvlan = 121; + optional uint32 in_nego_dvlan_peak = 122; + optional uint32 in_nego_dhcp = 123; + optional uint32 in_nego_dhcp_peak = 124; + optional uint32 in_nego_ppp = 125; + optional uint32 in_nego_ppp_peak = 126; + optional uint32 in_nego_hag = 127; + optional uint32 in_nego_hag_peak = 128; + optional uint32 in_nego_total = 129; + optional uint32 in_nego_total_peak = 130; + optional uint32 in_nego_overrides = 131; + } + } + } + repeated uplane_list uplane = 151; + } + } + } +} diff --git a/schema/bbe-smgd_sub_mgmt_network_stats_oc.pb.go b/schema/bbe-smgd_sub_mgmt_network_stats_oc.pb.go new file mode 100644 index 0000000..982f9fa --- /dev/null +++ b/schema/bbe-smgd_sub_mgmt_network_stats_oc.pb.go @@ -0,0 +1,10330 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-smgd_sub_mgmt_network_stats_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosNetworkStats struct { + System *JunosNetworkStatsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStats) Reset() { *m = JunosNetworkStats{} } +func (m *JunosNetworkStats) String() string { return proto.CompactTextString(m) } +func (*JunosNetworkStats) ProtoMessage() {} +func (*JunosNetworkStats) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0} +} +func (m *JunosNetworkStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStats.Merge(m, src) +} +func (m *JunosNetworkStats) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStats) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStats.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStats proto.InternalMessageInfo + +func (m *JunosNetworkStats) GetSystem() *JunosNetworkStatsSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosNetworkStatsSystemType struct { + SubscriberManagement *JunosNetworkStatsSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemType) Reset() { *m = JunosNetworkStatsSystemType{} } +func (m *JunosNetworkStatsSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosNetworkStatsSystemType) ProtoMessage() {} +func (*JunosNetworkStatsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0} +} +func (m *JunosNetworkStatsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemType) GetSubscriberManagement() *JunosNetworkStatsSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosNetworkStatsSystemTypeSubscriberManagementType struct { + Uplanes *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType `protobuf:"bytes,151,opt,name=uplanes" json:"uplanes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosNetworkStatsSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) GetUplanes() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType { + if m != nil { + return m.Uplanes + } + return nil +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType struct { + Uplane []*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList `protobuf:"bytes,151,rep,name=uplane" json:"uplane,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) ProtoMessage() {} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) GetUplane() []*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList { + if m != nil { + return m.Uplane + } + return nil +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList struct { + UplaneId *uint32 `protobuf:"varint,51,opt,name=uplane_id,json=uplaneId" json:"uplane_id,omitempty"` + Infra *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType `protobuf:"bytes,151,opt,name=infra" json:"infra,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) ProtoMessage() {} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) GetUplaneId() uint32 { + if m != nil && m.UplaneId != nil { + return *m.UplaneId + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) GetInfra() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType { + if m != nil { + return m.Infra + } + return nil +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType struct { + Network *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType `protobuf:"bytes,151,opt,name=network" json:"network,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) GetNetwork() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType { + if m != nil { + return m.Network + } + return nil +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType struct { + Io *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType `protobuf:"bytes,151,opt,name=io" json:"io,omitempty"` + Dhcp *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType `protobuf:"bytes,152,opt,name=dhcp" json:"dhcp,omitempty"` + Ppp *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType `protobuf:"bytes,153,opt,name=ppp" json:"ppp,omitempty"` + Pppoe *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType `protobuf:"bytes,154,opt,name=pppoe" json:"pppoe,omitempty"` + Dvlan *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType `protobuf:"bytes,156,opt,name=dvlan" json:"dvlan,omitempty"` + L2Tp *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType `protobuf:"bytes,155,opt,name=l2tp" json:"l2tp,omitempty"` + Hag *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType `protobuf:"bytes,157,opt,name=hag" json:"hag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetIo() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType { + if m != nil { + return m.Io + } + return nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetDhcp() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType { + if m != nil { + return m.Dhcp + } + return nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetPpp() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType { + if m != nil { + return m.Ppp + } + return nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetPppoe() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType { + if m != nil { + return m.Pppoe + } + return nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetDvlan() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType { + if m != nil { + return m.Dvlan + } + return nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetL2Tp() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType { + if m != nil { + return m.L2Tp + } + return nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) GetHag() *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType { + if m != nil { + return m.Hag + } + return nil +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType struct { + L2RxPacketsCnt *uint64 `protobuf:"varint,51,opt,name=l2_rx_packets_cnt,json=l2RxPacketsCnt" json:"l2_rx_packets_cnt,omitempty"` + L2RxPacketsFailed *uint64 `protobuf:"varint,52,opt,name=l2_rx_packets_failed,json=l2RxPacketsFailed" json:"l2_rx_packets_failed,omitempty"` + L2RxMalformedCnt *uint64 `protobuf:"varint,53,opt,name=l2_rx_malformed_cnt,json=l2RxMalformedCnt" json:"l2_rx_malformed_cnt,omitempty"` + L2RxIfdInvalid *uint64 `protobuf:"varint,54,opt,name=l2_rx_ifd_invalid,json=l2RxIfdInvalid" json:"l2_rx_ifd_invalid,omitempty"` + L2RxIflInvalid *uint64 `protobuf:"varint,55,opt,name=l2_rx_ifl_invalid,json=l2RxIflInvalid" json:"l2_rx_ifl_invalid,omitempty"` + L2RxNoIffCnt *uint64 `protobuf:"varint,56,opt,name=l2_rx_no_iff_cnt,json=l2RxNoIffCnt" json:"l2_rx_no_iff_cnt,omitempty"` + L2RxIfCreateFailed *uint64 `protobuf:"varint,57,opt,name=l2_rx_if_create_failed,json=l2RxIfCreateFailed" json:"l2_rx_if_create_failed,omitempty"` + L2BbeIoRcvL3UnknownAddressFamily *uint64 `protobuf:"varint,58,opt,name=l2_bbe_io_rcv_l3_unknown_address_family,json=l2BbeIoRcvL3UnknownAddressFamily" json:"l2_bbe_io_rcv_l3_unknown_address_family,omitempty"` + L2RxUnsupportedInetProtocol *uint64 `protobuf:"varint,59,opt,name=l2_rx_unsupported_inet_protocol,json=l2RxUnsupportedInetProtocol" json:"l2_rx_unsupported_inet_protocol,omitempty"` + L2RxUnsupportedInet6Protocol *uint64 `protobuf:"varint,60,opt,name=l2_rx_unsupported_inet6_protocol,json=l2RxUnsupportedInet6Protocol" json:"l2_rx_unsupported_inet6_protocol,omitempty"` + L2RxUnsupportedUdpProtocol *uint64 `protobuf:"varint,61,opt,name=l2_rx_unsupported_udp_protocol,json=l2RxUnsupportedUdpProtocol" json:"l2_rx_unsupported_udp_protocol,omitempty"` + L2RxUnsupportedPuntAf *uint64 `protobuf:"varint,62,opt,name=l2_rx_unsupported_punt_af,json=l2RxUnsupportedPuntAf" json:"l2_rx_unsupported_punt_af,omitempty"` + L2RxV4DataPathPuntPkt *uint64 `protobuf:"varint,63,opt,name=l2_rx_v4_data_path_punt_pkt,json=l2RxV4DataPathPuntPkt" json:"l2_rx_v4_data_path_punt_pkt,omitempty"` + L2RxV4DataPathPuntPktDrop *uint64 `protobuf:"varint,64,opt,name=l2_rx_v4_data_path_punt_pkt_drop,json=l2RxV4DataPathPuntPktDrop" json:"l2_rx_v4_data_path_punt_pkt_drop,omitempty"` + L2RxV6DataPathPuntPkt *uint64 `protobuf:"varint,65,opt,name=l2_rx_v6_data_path_punt_pkt,json=l2RxV6DataPathPuntPkt" json:"l2_rx_v6_data_path_punt_pkt,omitempty"` + L2RxV6DataPathPuntPktDrop *uint64 `protobuf:"varint,66,opt,name=l2_rx_v6_data_path_punt_pkt_drop,json=l2RxV6DataPathPuntPktDrop" json:"l2_rx_v6_data_path_punt_pkt_drop,omitempty"` + L2TxPacketsCnt *uint64 `protobuf:"varint,67,opt,name=l2_tx_packets_cnt,json=l2TxPacketsCnt" json:"l2_tx_packets_cnt,omitempty"` + L2TxMalformedCnt *uint64 `protobuf:"varint,68,opt,name=l2_tx_malformed_cnt,json=l2TxMalformedCnt" json:"l2_tx_malformed_cnt,omitempty"` + L2TxNoIfdCnt *uint64 `protobuf:"varint,69,opt,name=l2_tx_no_ifd_cnt,json=l2TxNoIfdCnt" json:"l2_tx_no_ifd_cnt,omitempty"` + L2TxIflInvalid *uint64 `protobuf:"varint,70,opt,name=l2_tx_ifl_invalid,json=l2TxIflInvalid" json:"l2_tx_ifl_invalid,omitempty"` + L2BbeIoSendTxFailed *uint64 `protobuf:"varint,71,opt,name=l2_bbe_io_send_tx_failed,json=l2BbeIoSendTxFailed" json:"l2_bbe_io_send_tx_failed,omitempty"` + L2BbeIoSendTxFailedPartial *uint64 `protobuf:"varint,72,opt,name=l2_bbe_io_send_tx_failed_partial,json=l2BbeIoSendTxFailedPartial" json:"l2_bbe_io_send_tx_failed_partial,omitempty"` + L2TxV4OutErrorLocalIntf *uint64 `protobuf:"varint,73,opt,name=l2_tx_v4_out_error_local_intf,json=l2TxV4OutErrorLocalIntf" json:"l2_tx_v4_out_error_local_intf,omitempty"` + L2TxV6OutErrorLocalIntf *uint64 `protobuf:"varint,74,opt,name=l2_tx_v6_out_error_local_intf,json=l2TxV6OutErrorLocalIntf" json:"l2_tx_v6_out_error_local_intf,omitempty"` + L3RxPacketCnt *uint64 `protobuf:"varint,75,opt,name=l3_rx_packet_cnt,json=l3RxPacketCnt" json:"l3_rx_packet_cnt,omitempty"` + L3RxUnsupportedProtocol *uint64 `protobuf:"varint,76,opt,name=l3_rx_unsupported_protocol,json=l3RxUnsupportedProtocol" json:"l3_rx_unsupported_protocol,omitempty"` + L3TxPacketCnt *uint64 `protobuf:"varint,77,opt,name=l3_tx_packet_cnt,json=l3TxPacketCnt" json:"l3_tx_packet_cnt,omitempty"` + L3TxSendFailed *uint64 `protobuf:"varint,78,opt,name=l3_tx_send_failed,json=l3TxSendFailed" json:"l3_tx_send_failed,omitempty"` + L3TxV4KernelForward *uint64 `protobuf:"varint,79,opt,name=l3_tx_v4_kernel_forward,json=l3TxV4KernelForward" json:"l3_tx_v4_kernel_forward,omitempty"` + L3TxV4KernelForwardDrops *uint64 `protobuf:"varint,80,opt,name=l3_tx_v4_kernel_forward_drops,json=l3TxV4KernelForwardDrops" json:"l3_tx_v4_kernel_forward_drops,omitempty"` + L3TxV6KernelForward *uint64 `protobuf:"varint,81,opt,name=l3_tx_v6_kernel_forward,json=l3TxV6KernelForward" json:"l3_tx_v6_kernel_forward,omitempty"` + L3TxV6KernelForwardDrops *uint64 `protobuf:"varint,82,opt,name=l3_tx_v6_kernel_forward_drops,json=l3TxV6KernelForwardDrops" json:"l3_tx_v6_kernel_forward_drops,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxPacketsCnt() uint64 { + if m != nil && m.L2RxPacketsCnt != nil { + return *m.L2RxPacketsCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxPacketsFailed() uint64 { + if m != nil && m.L2RxPacketsFailed != nil { + return *m.L2RxPacketsFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxMalformedCnt() uint64 { + if m != nil && m.L2RxMalformedCnt != nil { + return *m.L2RxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxIfdInvalid() uint64 { + if m != nil && m.L2RxIfdInvalid != nil { + return *m.L2RxIfdInvalid + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxIflInvalid() uint64 { + if m != nil && m.L2RxIflInvalid != nil { + return *m.L2RxIflInvalid + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxNoIffCnt() uint64 { + if m != nil && m.L2RxNoIffCnt != nil { + return *m.L2RxNoIffCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxIfCreateFailed() uint64 { + if m != nil && m.L2RxIfCreateFailed != nil { + return *m.L2RxIfCreateFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2BbeIoRcvL3UnknownAddressFamily() uint64 { + if m != nil && m.L2BbeIoRcvL3UnknownAddressFamily != nil { + return *m.L2BbeIoRcvL3UnknownAddressFamily + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxUnsupportedInetProtocol() uint64 { + if m != nil && m.L2RxUnsupportedInetProtocol != nil { + return *m.L2RxUnsupportedInetProtocol + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxUnsupportedInet6Protocol() uint64 { + if m != nil && m.L2RxUnsupportedInet6Protocol != nil { + return *m.L2RxUnsupportedInet6Protocol + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxUnsupportedUdpProtocol() uint64 { + if m != nil && m.L2RxUnsupportedUdpProtocol != nil { + return *m.L2RxUnsupportedUdpProtocol + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxUnsupportedPuntAf() uint64 { + if m != nil && m.L2RxUnsupportedPuntAf != nil { + return *m.L2RxUnsupportedPuntAf + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxV4DataPathPuntPkt() uint64 { + if m != nil && m.L2RxV4DataPathPuntPkt != nil { + return *m.L2RxV4DataPathPuntPkt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxV4DataPathPuntPktDrop() uint64 { + if m != nil && m.L2RxV4DataPathPuntPktDrop != nil { + return *m.L2RxV4DataPathPuntPktDrop + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxV6DataPathPuntPkt() uint64 { + if m != nil && m.L2RxV6DataPathPuntPkt != nil { + return *m.L2RxV6DataPathPuntPkt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2RxV6DataPathPuntPktDrop() uint64 { + if m != nil && m.L2RxV6DataPathPuntPktDrop != nil { + return *m.L2RxV6DataPathPuntPktDrop + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2TxPacketsCnt() uint64 { + if m != nil && m.L2TxPacketsCnt != nil { + return *m.L2TxPacketsCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2TxMalformedCnt() uint64 { + if m != nil && m.L2TxMalformedCnt != nil { + return *m.L2TxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2TxNoIfdCnt() uint64 { + if m != nil && m.L2TxNoIfdCnt != nil { + return *m.L2TxNoIfdCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2TxIflInvalid() uint64 { + if m != nil && m.L2TxIflInvalid != nil { + return *m.L2TxIflInvalid + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2BbeIoSendTxFailed() uint64 { + if m != nil && m.L2BbeIoSendTxFailed != nil { + return *m.L2BbeIoSendTxFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2BbeIoSendTxFailedPartial() uint64 { + if m != nil && m.L2BbeIoSendTxFailedPartial != nil { + return *m.L2BbeIoSendTxFailedPartial + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2TxV4OutErrorLocalIntf() uint64 { + if m != nil && m.L2TxV4OutErrorLocalIntf != nil { + return *m.L2TxV4OutErrorLocalIntf + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL2TxV6OutErrorLocalIntf() uint64 { + if m != nil && m.L2TxV6OutErrorLocalIntf != nil { + return *m.L2TxV6OutErrorLocalIntf + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3RxPacketCnt() uint64 { + if m != nil && m.L3RxPacketCnt != nil { + return *m.L3RxPacketCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3RxUnsupportedProtocol() uint64 { + if m != nil && m.L3RxUnsupportedProtocol != nil { + return *m.L3RxUnsupportedProtocol + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3TxPacketCnt() uint64 { + if m != nil && m.L3TxPacketCnt != nil { + return *m.L3TxPacketCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3TxSendFailed() uint64 { + if m != nil && m.L3TxSendFailed != nil { + return *m.L3TxSendFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3TxV4KernelForward() uint64 { + if m != nil && m.L3TxV4KernelForward != nil { + return *m.L3TxV4KernelForward + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3TxV4KernelForwardDrops() uint64 { + if m != nil && m.L3TxV4KernelForwardDrops != nil { + return *m.L3TxV4KernelForwardDrops + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3TxV6KernelForward() uint64 { + if m != nil && m.L3TxV6KernelForward != nil { + return *m.L3TxV6KernelForward + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) GetL3TxV6KernelForwardDrops() uint64 { + if m != nil && m.L3TxV6KernelForwardDrops != nil { + return *m.L3TxV6KernelForwardDrops + } + return 0 +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType struct { + RxPacketCnt *uint64 `protobuf:"varint,51,opt,name=rx_packet_cnt,json=rxPacketCnt" json:"rx_packet_cnt,omitempty"` + EraDrops *uint64 `protobuf:"varint,52,opt,name=era_drops,json=eraDrops" json:"era_drops,omitempty"` + RxNoConnection *uint64 `protobuf:"varint,53,opt,name=rx_no_connection,json=rxNoConnection" json:"rx_no_connection,omitempty"` + RxMalformedCnt *uint64 `protobuf:"varint,54,opt,name=rx_malformed_cnt,json=rxMalformedCnt" json:"rx_malformed_cnt,omitempty"` + RxNoIfCnt *uint64 `protobuf:"varint,55,opt,name=rx_no_if_cnt,json=rxNoIfCnt" json:"rx_no_if_cnt,omitempty"` + RxIflInvalid *uint64 `protobuf:"varint,56,opt,name=rx_ifl_invalid,json=rxIflInvalid" json:"rx_ifl_invalid,omitempty"` + RxSendFailed *uint64 `protobuf:"varint,57,opt,name=rx_send_failed,json=rxSendFailed" json:"rx_send_failed,omitempty"` + TxPacketCnt *uint64 `protobuf:"varint,58,opt,name=tx_packet_cnt,json=txPacketCnt" json:"tx_packet_cnt,omitempty"` + PacketsTransmitted *uint64 `protobuf:"varint,59,opt,name=packets_transmitted,json=packetsTransmitted" json:"packets_transmitted,omitempty"` + TxMalformedCnt *uint64 `protobuf:"varint,60,opt,name=tx_malformed_cnt,json=txMalformedCnt" json:"tx_malformed_cnt,omitempty"` + TxNullPkt *uint64 `protobuf:"varint,61,opt,name=tx_null_pkt,json=txNullPkt" json:"tx_null_pkt,omitempty"` + TxNoIfCnt *uint64 `protobuf:"varint,62,opt,name=tx_no_if_cnt,json=txNoIfCnt" json:"tx_no_if_cnt,omitempty"` + TxNoIffCnt *uint64 `protobuf:"varint,63,opt,name=tx_no_iff_cnt,json=txNoIffCnt" json:"tx_no_iff_cnt,omitempty"` + TxNoRttCnt *uint64 `protobuf:"varint,64,opt,name=tx_no_rtt_cnt,json=txNoRttCnt" json:"tx_no_rtt_cnt,omitempty"` + TxArpFailed *uint64 `protobuf:"varint,65,opt,name=tx_arp_failed,json=txArpFailed" json:"tx_arp_failed,omitempty"` + TxIfInvalid *uint64 `protobuf:"varint,66,opt,name=tx_if_invalid,json=txIfInvalid" json:"tx_if_invalid,omitempty"` + TxSendFailed *uint64 `protobuf:"varint,67,opt,name=tx_send_failed,json=txSendFailed" json:"tx_send_failed,omitempty"` + RxWhileNotConnected *uint64 `protobuf:"varint,68,opt,name=rx_while_not_connected,json=rxWhileNotConnected" json:"rx_while_not_connected,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxPacketCnt() uint64 { + if m != nil && m.RxPacketCnt != nil { + return *m.RxPacketCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetEraDrops() uint64 { + if m != nil && m.EraDrops != nil { + return *m.EraDrops + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxNoConnection() uint64 { + if m != nil && m.RxNoConnection != nil { + return *m.RxNoConnection + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxMalformedCnt() uint64 { + if m != nil && m.RxMalformedCnt != nil { + return *m.RxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxNoIfCnt() uint64 { + if m != nil && m.RxNoIfCnt != nil { + return *m.RxNoIfCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxIflInvalid() uint64 { + if m != nil && m.RxIflInvalid != nil { + return *m.RxIflInvalid + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxSendFailed() uint64 { + if m != nil && m.RxSendFailed != nil { + return *m.RxSendFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxPacketCnt() uint64 { + if m != nil && m.TxPacketCnt != nil { + return *m.TxPacketCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetPacketsTransmitted() uint64 { + if m != nil && m.PacketsTransmitted != nil { + return *m.PacketsTransmitted + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxMalformedCnt() uint64 { + if m != nil && m.TxMalformedCnt != nil { + return *m.TxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxNullPkt() uint64 { + if m != nil && m.TxNullPkt != nil { + return *m.TxNullPkt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxNoIfCnt() uint64 { + if m != nil && m.TxNoIfCnt != nil { + return *m.TxNoIfCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxNoIffCnt() uint64 { + if m != nil && m.TxNoIffCnt != nil { + return *m.TxNoIffCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxNoRttCnt() uint64 { + if m != nil && m.TxNoRttCnt != nil { + return *m.TxNoRttCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxArpFailed() uint64 { + if m != nil && m.TxArpFailed != nil { + return *m.TxArpFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxIfInvalid() uint64 { + if m != nil && m.TxIfInvalid != nil { + return *m.TxIfInvalid + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetTxSendFailed() uint64 { + if m != nil && m.TxSendFailed != nil { + return *m.TxSendFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) GetRxWhileNotConnected() uint64 { + if m != nil && m.RxWhileNotConnected != nil { + return *m.RxWhileNotConnected + } + return 0 +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType struct { + RxNetworkPktCnt *uint64 `protobuf:"varint,51,opt,name=rx_network_pkt_cnt,json=rxNetworkPktCnt" json:"rx_network_pkt_cnt,omitempty"` + RxPluginPktCnt *uint64 `protobuf:"varint,52,opt,name=rx_plugin_pkt_cnt,json=rxPluginPktCnt" json:"rx_plugin_pkt_cnt,omitempty"` + RxLcpConfReqCnt *uint64 `protobuf:"varint,53,opt,name=rx_lcp_conf_req_cnt,json=rxLcpConfReqCnt" json:"rx_lcp_conf_req_cnt,omitempty"` + RxLcpConfAckCnt *uint64 `protobuf:"varint,54,opt,name=rx_lcp_conf_ack_cnt,json=rxLcpConfAckCnt" json:"rx_lcp_conf_ack_cnt,omitempty"` + RxLcpConfNackCnt *uint64 `protobuf:"varint,55,opt,name=rx_lcp_conf_nack_cnt,json=rxLcpConfNackCnt" json:"rx_lcp_conf_nack_cnt,omitempty"` + RxLcpConfRejCnt *uint64 `protobuf:"varint,56,opt,name=rx_lcp_conf_rej_cnt,json=rxLcpConfRejCnt" json:"rx_lcp_conf_rej_cnt,omitempty"` + RxLcpTermReqCnt *uint64 `protobuf:"varint,57,opt,name=rx_lcp_term_req_cnt,json=rxLcpTermReqCnt" json:"rx_lcp_term_req_cnt,omitempty"` + RxLcpTermAckCnt *uint64 `protobuf:"varint,58,opt,name=rx_lcp_term_ack_cnt,json=rxLcpTermAckCnt" json:"rx_lcp_term_ack_cnt,omitempty"` + RxLcpCodeRejCnt *uint64 `protobuf:"varint,59,opt,name=rx_lcp_code_rej_cnt,json=rxLcpCodeRejCnt" json:"rx_lcp_code_rej_cnt,omitempty"` + RxLcpProtocolRejCnt *uint64 `protobuf:"varint,60,opt,name=rx_lcp_protocol_rej_cnt,json=rxLcpProtocolRejCnt" json:"rx_lcp_protocol_rej_cnt,omitempty"` + RxLcpEchoReqCnt *uint64 `protobuf:"varint,61,opt,name=rx_lcp_echo_req_cnt,json=rxLcpEchoReqCnt" json:"rx_lcp_echo_req_cnt,omitempty"` + RxLcpEchoReplyCnt *uint64 `protobuf:"varint,62,opt,name=rx_lcp_echo_reply_cnt,json=rxLcpEchoReplyCnt" json:"rx_lcp_echo_reply_cnt,omitempty"` + RxLcpDiscardReqCnt *uint64 `protobuf:"varint,63,opt,name=rx_lcp_discard_req_cnt,json=rxLcpDiscardReqCnt" json:"rx_lcp_discard_req_cnt,omitempty"` + RxPapReqCnt *uint64 `protobuf:"varint,64,opt,name=rx_pap_req_cnt,json=rxPapReqCnt" json:"rx_pap_req_cnt,omitempty"` + RxPapAckCnt *uint64 `protobuf:"varint,65,opt,name=rx_pap_ack_cnt,json=rxPapAckCnt" json:"rx_pap_ack_cnt,omitempty"` + RxPapNackCnt *uint64 `protobuf:"varint,66,opt,name=rx_pap_nack_cnt,json=rxPapNackCnt" json:"rx_pap_nack_cnt,omitempty"` + RxChapChallengeCnt *uint64 `protobuf:"varint,67,opt,name=rx_chap_challenge_cnt,json=rxChapChallengeCnt" json:"rx_chap_challenge_cnt,omitempty"` + RxChapRespCnt *uint64 `protobuf:"varint,68,opt,name=rx_chap_resp_cnt,json=rxChapRespCnt" json:"rx_chap_resp_cnt,omitempty"` + RxChapSuccessCnt *uint64 `protobuf:"varint,69,opt,name=rx_chap_success_cnt,json=rxChapSuccessCnt" json:"rx_chap_success_cnt,omitempty"` + RxChapFailureCnt *uint64 `protobuf:"varint,70,opt,name=rx_chap_failure_cnt,json=rxChapFailureCnt" json:"rx_chap_failure_cnt,omitempty"` + RxIpcpReqCnt *uint64 `protobuf:"varint,71,opt,name=rx_ipcp_req_cnt,json=rxIpcpReqCnt" json:"rx_ipcp_req_cnt,omitempty"` + RxIpcpAckCnt *uint64 `protobuf:"varint,72,opt,name=rx_ipcp_ack_cnt,json=rxIpcpAckCnt" json:"rx_ipcp_ack_cnt,omitempty"` + RxIpcpNackCnt *uint64 `protobuf:"varint,73,opt,name=rx_ipcp_nack_cnt,json=rxIpcpNackCnt" json:"rx_ipcp_nack_cnt,omitempty"` + RxIpv6CpReqCnt *uint64 `protobuf:"varint,74,opt,name=rx_ipv6cp_req_cnt,json=rxIpv6cpReqCnt" json:"rx_ipv6cp_req_cnt,omitempty"` + RxIpv6CpAckCnt *uint64 `protobuf:"varint,75,opt,name=rx_ipv6cp_ack_cnt,json=rxIpv6cpAckCnt" json:"rx_ipv6cp_ack_cnt,omitempty"` + RxIpv6CpNackCnt *uint64 `protobuf:"varint,76,opt,name=rx_ipv6cp_nack_cnt,json=rxIpv6cpNackCnt" json:"rx_ipv6cp_nack_cnt,omitempty"` + RxMalformedCnt *uint64 `protobuf:"varint,77,opt,name=rx_malformed_cnt,json=rxMalformedCnt" json:"rx_malformed_cnt,omitempty"` + RxNoIfCnt *uint64 `protobuf:"varint,78,opt,name=rx_no_if_cnt,json=rxNoIfCnt" json:"rx_no_if_cnt,omitempty"` + RxUnsupported *uint64 `protobuf:"varint,79,opt,name=rx_unsupported,json=rxUnsupported" json:"rx_unsupported,omitempty"` + TxCnt *uint64 `protobuf:"varint,80,opt,name=tx_cnt,json=txCnt" json:"tx_cnt,omitempty"` + TxLcpConfReqCnt *uint64 `protobuf:"varint,81,opt,name=tx_lcp_conf_req_cnt,json=txLcpConfReqCnt" json:"tx_lcp_conf_req_cnt,omitempty"` + TxLcpConfAckCnt *uint64 `protobuf:"varint,82,opt,name=tx_lcp_conf_ack_cnt,json=txLcpConfAckCnt" json:"tx_lcp_conf_ack_cnt,omitempty"` + TxLcpConfNackCnt *uint64 `protobuf:"varint,83,opt,name=tx_lcp_conf_nack_cnt,json=txLcpConfNackCnt" json:"tx_lcp_conf_nack_cnt,omitempty"` + TxLcpConfRejCnt *uint64 `protobuf:"varint,84,opt,name=tx_lcp_conf_rej_cnt,json=txLcpConfRejCnt" json:"tx_lcp_conf_rej_cnt,omitempty"` + TxLcpEchoReqCnt *uint64 `protobuf:"varint,85,opt,name=tx_lcp_echo_req_cnt,json=txLcpEchoReqCnt" json:"tx_lcp_echo_req_cnt,omitempty"` + TxLcpEchoReplyCnt *uint64 `protobuf:"varint,86,opt,name=tx_lcp_echo_reply_cnt,json=txLcpEchoReplyCnt" json:"tx_lcp_echo_reply_cnt,omitempty"` + TxLcpDiscardReqCnt *uint64 `protobuf:"varint,87,opt,name=tx_lcp_discard_req_cnt,json=txLcpDiscardReqCnt" json:"tx_lcp_discard_req_cnt,omitempty"` + TxLcpTermReqCnt *uint64 `protobuf:"varint,88,opt,name=tx_lcp_term_req_cnt,json=txLcpTermReqCnt" json:"tx_lcp_term_req_cnt,omitempty"` + TxLcpTermAckCnt *uint64 `protobuf:"varint,89,opt,name=tx_lcp_term_ack_cnt,json=txLcpTermAckCnt" json:"tx_lcp_term_ack_cnt,omitempty"` + TxPapReqCnt *uint64 `protobuf:"varint,90,opt,name=tx_pap_req_cnt,json=txPapReqCnt" json:"tx_pap_req_cnt,omitempty"` + TxPapAckCnt *uint64 `protobuf:"varint,91,opt,name=tx_pap_ack_cnt,json=txPapAckCnt" json:"tx_pap_ack_cnt,omitempty"` + TxPapNackCnt *uint64 `protobuf:"varint,92,opt,name=tx_pap_nack_cnt,json=txPapNackCnt" json:"tx_pap_nack_cnt,omitempty"` + TxChapChallengeCnt *uint64 `protobuf:"varint,93,opt,name=tx_chap_challenge_cnt,json=txChapChallengeCnt" json:"tx_chap_challenge_cnt,omitempty"` + TxChapRespCnt *uint64 `protobuf:"varint,94,opt,name=tx_chap_resp_cnt,json=txChapRespCnt" json:"tx_chap_resp_cnt,omitempty"` + TxChapSuccessCnt *uint64 `protobuf:"varint,95,opt,name=tx_chap_success_cnt,json=txChapSuccessCnt" json:"tx_chap_success_cnt,omitempty"` + TxChapFailureCnt *uint64 `protobuf:"varint,96,opt,name=tx_chap_failure_cnt,json=txChapFailureCnt" json:"tx_chap_failure_cnt,omitempty"` + TxIpcpReqCnt *uint64 `protobuf:"varint,97,opt,name=tx_ipcp_req_cnt,json=txIpcpReqCnt" json:"tx_ipcp_req_cnt,omitempty"` + TxIpcpAckCnt *uint64 `protobuf:"varint,98,opt,name=tx_ipcp_ack_cnt,json=txIpcpAckCnt" json:"tx_ipcp_ack_cnt,omitempty"` + TxIpcpNackCnt *uint64 `protobuf:"varint,99,opt,name=tx_ipcp_nack_cnt,json=txIpcpNackCnt" json:"tx_ipcp_nack_cnt,omitempty"` + TxIpv6CpReqCnt *uint64 `protobuf:"varint,100,opt,name=tx_ipv6cp_req_cnt,json=txIpv6cpReqCnt" json:"tx_ipv6cp_req_cnt,omitempty"` + TxIpv6CpAckCnt *uint64 `protobuf:"varint,101,opt,name=tx_ipv6cp_ack_cnt,json=txIpv6cpAckCnt" json:"tx_ipv6cp_ack_cnt,omitempty"` + TxIpv6CpNackCnt *uint64 `protobuf:"varint,102,opt,name=tx_ipv6cp_nack_cnt,json=txIpv6cpNackCnt" json:"tx_ipv6cp_nack_cnt,omitempty"` + TxUnknownPktCnt *uint64 `protobuf:"varint,103,opt,name=tx_unknown_pkt_cnt,json=txUnknownPktCnt" json:"tx_unknown_pkt_cnt,omitempty"` + TxSendFailed *uint64 `protobuf:"varint,104,opt,name=tx_send_failed,json=txSendFailed" json:"tx_send_failed,omitempty"` + TxMalformedCnt *uint64 `protobuf:"varint,105,opt,name=tx_malformed_cnt,json=txMalformedCnt" json:"tx_malformed_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 2} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxNetworkPktCnt() uint64 { + if m != nil && m.RxNetworkPktCnt != nil { + return *m.RxNetworkPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxPluginPktCnt() uint64 { + if m != nil && m.RxPluginPktCnt != nil { + return *m.RxPluginPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpConfReqCnt() uint64 { + if m != nil && m.RxLcpConfReqCnt != nil { + return *m.RxLcpConfReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpConfAckCnt() uint64 { + if m != nil && m.RxLcpConfAckCnt != nil { + return *m.RxLcpConfAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpConfNackCnt() uint64 { + if m != nil && m.RxLcpConfNackCnt != nil { + return *m.RxLcpConfNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpConfRejCnt() uint64 { + if m != nil && m.RxLcpConfRejCnt != nil { + return *m.RxLcpConfRejCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpTermReqCnt() uint64 { + if m != nil && m.RxLcpTermReqCnt != nil { + return *m.RxLcpTermReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpTermAckCnt() uint64 { + if m != nil && m.RxLcpTermAckCnt != nil { + return *m.RxLcpTermAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpCodeRejCnt() uint64 { + if m != nil && m.RxLcpCodeRejCnt != nil { + return *m.RxLcpCodeRejCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpProtocolRejCnt() uint64 { + if m != nil && m.RxLcpProtocolRejCnt != nil { + return *m.RxLcpProtocolRejCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpEchoReqCnt() uint64 { + if m != nil && m.RxLcpEchoReqCnt != nil { + return *m.RxLcpEchoReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpEchoReplyCnt() uint64 { + if m != nil && m.RxLcpEchoReplyCnt != nil { + return *m.RxLcpEchoReplyCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxLcpDiscardReqCnt() uint64 { + if m != nil && m.RxLcpDiscardReqCnt != nil { + return *m.RxLcpDiscardReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxPapReqCnt() uint64 { + if m != nil && m.RxPapReqCnt != nil { + return *m.RxPapReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxPapAckCnt() uint64 { + if m != nil && m.RxPapAckCnt != nil { + return *m.RxPapAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxPapNackCnt() uint64 { + if m != nil && m.RxPapNackCnt != nil { + return *m.RxPapNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxChapChallengeCnt() uint64 { + if m != nil && m.RxChapChallengeCnt != nil { + return *m.RxChapChallengeCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxChapRespCnt() uint64 { + if m != nil && m.RxChapRespCnt != nil { + return *m.RxChapRespCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxChapSuccessCnt() uint64 { + if m != nil && m.RxChapSuccessCnt != nil { + return *m.RxChapSuccessCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxChapFailureCnt() uint64 { + if m != nil && m.RxChapFailureCnt != nil { + return *m.RxChapFailureCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxIpcpReqCnt() uint64 { + if m != nil && m.RxIpcpReqCnt != nil { + return *m.RxIpcpReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxIpcpAckCnt() uint64 { + if m != nil && m.RxIpcpAckCnt != nil { + return *m.RxIpcpAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxIpcpNackCnt() uint64 { + if m != nil && m.RxIpcpNackCnt != nil { + return *m.RxIpcpNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxIpv6CpReqCnt() uint64 { + if m != nil && m.RxIpv6CpReqCnt != nil { + return *m.RxIpv6CpReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxIpv6CpAckCnt() uint64 { + if m != nil && m.RxIpv6CpAckCnt != nil { + return *m.RxIpv6CpAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxIpv6CpNackCnt() uint64 { + if m != nil && m.RxIpv6CpNackCnt != nil { + return *m.RxIpv6CpNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxMalformedCnt() uint64 { + if m != nil && m.RxMalformedCnt != nil { + return *m.RxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxNoIfCnt() uint64 { + if m != nil && m.RxNoIfCnt != nil { + return *m.RxNoIfCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetRxUnsupported() uint64 { + if m != nil && m.RxUnsupported != nil { + return *m.RxUnsupported + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxCnt() uint64 { + if m != nil && m.TxCnt != nil { + return *m.TxCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpConfReqCnt() uint64 { + if m != nil && m.TxLcpConfReqCnt != nil { + return *m.TxLcpConfReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpConfAckCnt() uint64 { + if m != nil && m.TxLcpConfAckCnt != nil { + return *m.TxLcpConfAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpConfNackCnt() uint64 { + if m != nil && m.TxLcpConfNackCnt != nil { + return *m.TxLcpConfNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpConfRejCnt() uint64 { + if m != nil && m.TxLcpConfRejCnt != nil { + return *m.TxLcpConfRejCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpEchoReqCnt() uint64 { + if m != nil && m.TxLcpEchoReqCnt != nil { + return *m.TxLcpEchoReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpEchoReplyCnt() uint64 { + if m != nil && m.TxLcpEchoReplyCnt != nil { + return *m.TxLcpEchoReplyCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpDiscardReqCnt() uint64 { + if m != nil && m.TxLcpDiscardReqCnt != nil { + return *m.TxLcpDiscardReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpTermReqCnt() uint64 { + if m != nil && m.TxLcpTermReqCnt != nil { + return *m.TxLcpTermReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxLcpTermAckCnt() uint64 { + if m != nil && m.TxLcpTermAckCnt != nil { + return *m.TxLcpTermAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxPapReqCnt() uint64 { + if m != nil && m.TxPapReqCnt != nil { + return *m.TxPapReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxPapAckCnt() uint64 { + if m != nil && m.TxPapAckCnt != nil { + return *m.TxPapAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxPapNackCnt() uint64 { + if m != nil && m.TxPapNackCnt != nil { + return *m.TxPapNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxChapChallengeCnt() uint64 { + if m != nil && m.TxChapChallengeCnt != nil { + return *m.TxChapChallengeCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxChapRespCnt() uint64 { + if m != nil && m.TxChapRespCnt != nil { + return *m.TxChapRespCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxChapSuccessCnt() uint64 { + if m != nil && m.TxChapSuccessCnt != nil { + return *m.TxChapSuccessCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxChapFailureCnt() uint64 { + if m != nil && m.TxChapFailureCnt != nil { + return *m.TxChapFailureCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxIpcpReqCnt() uint64 { + if m != nil && m.TxIpcpReqCnt != nil { + return *m.TxIpcpReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxIpcpAckCnt() uint64 { + if m != nil && m.TxIpcpAckCnt != nil { + return *m.TxIpcpAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxIpcpNackCnt() uint64 { + if m != nil && m.TxIpcpNackCnt != nil { + return *m.TxIpcpNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxIpv6CpReqCnt() uint64 { + if m != nil && m.TxIpv6CpReqCnt != nil { + return *m.TxIpv6CpReqCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxIpv6CpAckCnt() uint64 { + if m != nil && m.TxIpv6CpAckCnt != nil { + return *m.TxIpv6CpAckCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxIpv6CpNackCnt() uint64 { + if m != nil && m.TxIpv6CpNackCnt != nil { + return *m.TxIpv6CpNackCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxUnknownPktCnt() uint64 { + if m != nil && m.TxUnknownPktCnt != nil { + return *m.TxUnknownPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxSendFailed() uint64 { + if m != nil && m.TxSendFailed != nil { + return *m.TxSendFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) GetTxMalformedCnt() uint64 { + if m != nil && m.TxMalformedCnt != nil { + return *m.TxMalformedCnt + } + return 0 +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType struct { + RxCnt *uint64 `protobuf:"varint,51,opt,name=rx_cnt,json=rxCnt" json:"rx_cnt,omitempty"` + RxPadiCnt *uint64 `protobuf:"varint,52,opt,name=rx_padi_cnt,json=rxPadiCnt" json:"rx_padi_cnt,omitempty"` + RxPadrCnt *uint64 `protobuf:"varint,53,opt,name=rx_padr_cnt,json=rxPadrCnt" json:"rx_padr_cnt,omitempty"` + RxPppCnt *uint64 `protobuf:"varint,54,opt,name=rx_ppp_cnt,json=rxPppCnt" json:"rx_ppp_cnt,omitempty"` + RxMalformedCnt *uint64 `protobuf:"varint,55,opt,name=rx_malformed_cnt,json=rxMalformedCnt" json:"rx_malformed_cnt,omitempty"` + RxNoIfCnt *uint64 `protobuf:"varint,56,opt,name=rx_no_if_cnt,json=rxNoIfCnt" json:"rx_no_if_cnt,omitempty"` + RxUnsupported *uint64 `protobuf:"varint,57,opt,name=rx_unsupported,json=rxUnsupported" json:"rx_unsupported,omitempty"` + RxPadiEraDiscards *uint64 `protobuf:"varint,58,opt,name=rx_padi_era_discards,json=rxPadiEraDiscards" json:"rx_padi_era_discards,omitempty"` + TxCnt *uint64 `protobuf:"varint,59,opt,name=tx_cnt,json=txCnt" json:"tx_cnt,omitempty"` + TxSendFailed *uint64 `protobuf:"varint,60,opt,name=tx_send_failed,json=txSendFailed" json:"tx_send_failed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 3} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxCnt() uint64 { + if m != nil && m.RxCnt != nil { + return *m.RxCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxPadiCnt() uint64 { + if m != nil && m.RxPadiCnt != nil { + return *m.RxPadiCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxPadrCnt() uint64 { + if m != nil && m.RxPadrCnt != nil { + return *m.RxPadrCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxPppCnt() uint64 { + if m != nil && m.RxPppCnt != nil { + return *m.RxPppCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxMalformedCnt() uint64 { + if m != nil && m.RxMalformedCnt != nil { + return *m.RxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxNoIfCnt() uint64 { + if m != nil && m.RxNoIfCnt != nil { + return *m.RxNoIfCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxUnsupported() uint64 { + if m != nil && m.RxUnsupported != nil { + return *m.RxUnsupported + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetRxPadiEraDiscards() uint64 { + if m != nil && m.RxPadiEraDiscards != nil { + return *m.RxPadiEraDiscards + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetTxCnt() uint64 { + if m != nil && m.TxCnt != nil { + return *m.TxCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) GetTxSendFailed() uint64 { + if m != nil && m.TxSendFailed != nil { + return *m.TxSendFailed + } + return 0 +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType struct { + RxPacketCnt *uint64 `protobuf:"varint,51,opt,name=rx_packet_cnt,json=rxPacketCnt" json:"rx_packet_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 4} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) GetRxPacketCnt() uint64 { + if m != nil && m.RxPacketCnt != nil { + return *m.RxPacketCnt + } + return 0 +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType struct { + RxCnt *uint64 `protobuf:"varint,51,opt,name=rx_cnt,json=rxCnt" json:"rx_cnt,omitempty"` + RxPktCnt *uint64 `protobuf:"varint,52,opt,name=rx_pkt_cnt,json=rxPktCnt" json:"rx_pkt_cnt,omitempty"` + PppRxPktCnt *uint64 `protobuf:"varint,53,opt,name=ppp_rx_pkt_cnt,json=pppRxPktCnt" json:"ppp_rx_pkt_cnt,omitempty"` + TxPktCnt *uint64 `protobuf:"varint,54,opt,name=tx_pkt_cnt,json=txPktCnt" json:"tx_pkt_cnt,omitempty"` + PppRxLcpConfReqCount *uint64 `protobuf:"varint,55,opt,name=ppp_rx_lcp_conf_req_count,json=pppRxLcpConfReqCount" json:"ppp_rx_lcp_conf_req_count,omitempty"` + PppRxLcpConfAckCount *uint64 `protobuf:"varint,56,opt,name=ppp_rx_lcp_conf_ack_count,json=pppRxLcpConfAckCount" json:"ppp_rx_lcp_conf_ack_count,omitempty"` + PppRxLcpConfNackCount *uint64 `protobuf:"varint,57,opt,name=ppp_rx_lcp_conf_nack_count,json=pppRxLcpConfNackCount" json:"ppp_rx_lcp_conf_nack_count,omitempty"` + PppRxLcpTermReqCount *uint64 `protobuf:"varint,58,opt,name=ppp_rx_lcp_term_req_count,json=pppRxLcpTermReqCount" json:"ppp_rx_lcp_term_req_count,omitempty"` + PppRxLcpTermAckCount *uint64 `protobuf:"varint,59,opt,name=ppp_rx_lcp_term_ack_count,json=pppRxLcpTermAckCount" json:"ppp_rx_lcp_term_ack_count,omitempty"` + PppRxLcpEchoReqCount *uint64 `protobuf:"varint,60,opt,name=ppp_rx_lcp_echo_req_count,json=pppRxLcpEchoReqCount" json:"ppp_rx_lcp_echo_req_count,omitempty"` + PppRxLcpEchoRespCount *uint64 `protobuf:"varint,61,opt,name=ppp_rx_lcp_echo_resp_count,json=pppRxLcpEchoRespCount" json:"ppp_rx_lcp_echo_resp_count,omitempty"` + PppRxPapReqCount *uint64 `protobuf:"varint,62,opt,name=ppp_rx_pap_req_count,json=pppRxPapReqCount" json:"ppp_rx_pap_req_count,omitempty"` + PppRxPapAckCount *uint64 `protobuf:"varint,63,opt,name=ppp_rx_pap_ack_count,json=pppRxPapAckCount" json:"ppp_rx_pap_ack_count,omitempty"` + PppRxPapNackCount *uint64 `protobuf:"varint,64,opt,name=ppp_rx_pap_nack_count,json=pppRxPapNackCount" json:"ppp_rx_pap_nack_count,omitempty"` + PppRxChapChallengeCount *uint64 `protobuf:"varint,65,opt,name=ppp_rx_chap_challenge_count,json=pppRxChapChallengeCount" json:"ppp_rx_chap_challenge_count,omitempty"` + PppRxChapRespCount *uint64 `protobuf:"varint,66,opt,name=ppp_rx_chap_resp_count,json=pppRxChapRespCount" json:"ppp_rx_chap_resp_count,omitempty"` + PppRxChapSuccessCount *uint64 `protobuf:"varint,67,opt,name=ppp_rx_chap_success_count,json=pppRxChapSuccessCount" json:"ppp_rx_chap_success_count,omitempty"` + PppRxChapFailCount *uint64 `protobuf:"varint,68,opt,name=ppp_rx_chap_fail_count,json=pppRxChapFailCount" json:"ppp_rx_chap_fail_count,omitempty"` + PppRxIpcpConfReqCount *uint64 `protobuf:"varint,69,opt,name=ppp_rx_ipcp_conf_req_count,json=pppRxIpcpConfReqCount" json:"ppp_rx_ipcp_conf_req_count,omitempty"` + PppRxIpcpConfAckCount *uint64 `protobuf:"varint,70,opt,name=ppp_rx_ipcp_conf_ack_count,json=pppRxIpcpConfAckCount" json:"ppp_rx_ipcp_conf_ack_count,omitempty"` + PppRxIpcpConfNackCount *uint64 `protobuf:"varint,71,opt,name=ppp_rx_ipcp_conf_nack_count,json=pppRxIpcpConfNackCount" json:"ppp_rx_ipcp_conf_nack_count,omitempty"` + RxMalformedCnt *uint64 `protobuf:"varint,72,opt,name=rx_malformed_cnt,json=rxMalformedCnt" json:"rx_malformed_cnt,omitempty"` + PppRxUnknownProtocol *uint64 `protobuf:"varint,73,opt,name=ppp_rx_unknown_protocol,json=pppRxUnknownProtocol" json:"ppp_rx_unknown_protocol,omitempty"` + RxMsgCnt *uint64 `protobuf:"varint,74,opt,name=rx_msg_cnt,json=rxMsgCnt" json:"rx_msg_cnt,omitempty"` + RxMsgProcessdCnt *uint64 `protobuf:"varint,75,opt,name=rx_msg_processd_cnt,json=rxMsgProcessdCnt" json:"rx_msg_processd_cnt,omitempty"` + RxMsgErr *uint64 `protobuf:"varint,76,opt,name=rx_msg_err,json=rxMsgErr" json:"rx_msg_err,omitempty"` + RxInvalidMsgCnt *uint64 `protobuf:"varint,77,opt,name=rx_invalid_msg_cnt,json=rxInvalidMsgCnt" json:"rx_invalid_msg_cnt,omitempty"` + TxCnt *uint64 `protobuf:"varint,78,opt,name=tx_cnt,json=txCnt" json:"tx_cnt,omitempty"` + PppTxLcpConfReqCount *uint64 `protobuf:"varint,79,opt,name=ppp_tx_lcp_conf_req_count,json=pppTxLcpConfReqCount" json:"ppp_tx_lcp_conf_req_count,omitempty"` + PppTxLcpConfAckCount *uint64 `protobuf:"varint,80,opt,name=ppp_tx_lcp_conf_ack_count,json=pppTxLcpConfAckCount" json:"ppp_tx_lcp_conf_ack_count,omitempty"` + PppTxLcpConfNackCount *uint64 `protobuf:"varint,81,opt,name=ppp_tx_lcp_conf_nack_count,json=pppTxLcpConfNackCount" json:"ppp_tx_lcp_conf_nack_count,omitempty"` + PppTxLcpEchoReqCount *uint64 `protobuf:"varint,82,opt,name=ppp_tx_lcp_echo_req_count,json=pppTxLcpEchoReqCount" json:"ppp_tx_lcp_echo_req_count,omitempty"` + PppTxLcpEchoRespCount *uint64 `protobuf:"varint,83,opt,name=ppp_tx_lcp_echo_resp_count,json=pppTxLcpEchoRespCount" json:"ppp_tx_lcp_echo_resp_count,omitempty"` + PppTxLcpTermReqCount *uint64 `protobuf:"varint,84,opt,name=ppp_tx_lcp_term_req_count,json=pppTxLcpTermReqCount" json:"ppp_tx_lcp_term_req_count,omitempty"` + PppTxLcpTermAckCount *uint64 `protobuf:"varint,85,opt,name=ppp_tx_lcp_term_ack_count,json=pppTxLcpTermAckCount" json:"ppp_tx_lcp_term_ack_count,omitempty"` + PppTxPapReqCount *uint64 `protobuf:"varint,86,opt,name=ppp_tx_pap_req_count,json=pppTxPapReqCount" json:"ppp_tx_pap_req_count,omitempty"` + PppTxPapAckCount *uint64 `protobuf:"varint,87,opt,name=ppp_tx_pap_ack_count,json=pppTxPapAckCount" json:"ppp_tx_pap_ack_count,omitempty"` + PppTxPapNackCount *uint64 `protobuf:"varint,88,opt,name=ppp_tx_pap_nack_count,json=pppTxPapNackCount" json:"ppp_tx_pap_nack_count,omitempty"` + PppTxChapChallengeCount *uint64 `protobuf:"varint,89,opt,name=ppp_tx_chap_challenge_count,json=pppTxChapChallengeCount" json:"ppp_tx_chap_challenge_count,omitempty"` + PppTxChapRespCount *uint64 `protobuf:"varint,90,opt,name=ppp_tx_chap_resp_count,json=pppTxChapRespCount" json:"ppp_tx_chap_resp_count,omitempty"` + PppTxChapSuccessCount *uint64 `protobuf:"varint,91,opt,name=ppp_tx_chap_success_count,json=pppTxChapSuccessCount" json:"ppp_tx_chap_success_count,omitempty"` + PppTxChapFailCount *uint64 `protobuf:"varint,92,opt,name=ppp_tx_chap_fail_count,json=pppTxChapFailCount" json:"ppp_tx_chap_fail_count,omitempty"` + PppTxIpcpConfReqCount *uint64 `protobuf:"varint,93,opt,name=ppp_tx_ipcp_conf_req_count,json=pppTxIpcpConfReqCount" json:"ppp_tx_ipcp_conf_req_count,omitempty"` + PppTxIpcpConfAckCount *uint64 `protobuf:"varint,94,opt,name=ppp_tx_ipcp_conf_ack_count,json=pppTxIpcpConfAckCount" json:"ppp_tx_ipcp_conf_ack_count,omitempty"` + PppTxIpcpConfNackCount *uint64 `protobuf:"varint,95,opt,name=ppp_tx_ipcp_conf_nack_count,json=pppTxIpcpConfNackCount" json:"ppp_tx_ipcp_conf_nack_count,omitempty"` + PppTxUnknownProtocol *uint64 `protobuf:"varint,96,opt,name=ppp_tx_unknown_protocol,json=pppTxUnknownProtocol" json:"ppp_tx_unknown_protocol,omitempty"` + TxPktSendFailed *uint64 `protobuf:"varint,97,opt,name=tx_pkt_send_failed,json=txPktSendFailed" json:"tx_pkt_send_failed,omitempty"` + TxPktErr *uint64 `protobuf:"varint,98,opt,name=tx_pkt_err,json=txPktErr" json:"tx_pkt_err,omitempty"` + TxMsgCnt *uint64 `protobuf:"varint,99,opt,name=tx_msg_cnt,json=txMsgCnt" json:"tx_msg_cnt,omitempty"` + TxMsgErr *uint64 `protobuf:"varint,100,opt,name=tx_msg_err,json=txMsgErr" json:"tx_msg_err,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 5} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxCnt() uint64 { + if m != nil && m.RxCnt != nil { + return *m.RxCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxPktCnt() uint64 { + if m != nil && m.RxPktCnt != nil { + return *m.RxPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxPktCnt() uint64 { + if m != nil && m.PppRxPktCnt != nil { + return *m.PppRxPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetTxPktCnt() uint64 { + if m != nil && m.TxPktCnt != nil { + return *m.TxPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpConfReqCount() uint64 { + if m != nil && m.PppRxLcpConfReqCount != nil { + return *m.PppRxLcpConfReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpConfAckCount() uint64 { + if m != nil && m.PppRxLcpConfAckCount != nil { + return *m.PppRxLcpConfAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpConfNackCount() uint64 { + if m != nil && m.PppRxLcpConfNackCount != nil { + return *m.PppRxLcpConfNackCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpTermReqCount() uint64 { + if m != nil && m.PppRxLcpTermReqCount != nil { + return *m.PppRxLcpTermReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpTermAckCount() uint64 { + if m != nil && m.PppRxLcpTermAckCount != nil { + return *m.PppRxLcpTermAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpEchoReqCount() uint64 { + if m != nil && m.PppRxLcpEchoReqCount != nil { + return *m.PppRxLcpEchoReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxLcpEchoRespCount() uint64 { + if m != nil && m.PppRxLcpEchoRespCount != nil { + return *m.PppRxLcpEchoRespCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxPapReqCount() uint64 { + if m != nil && m.PppRxPapReqCount != nil { + return *m.PppRxPapReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxPapAckCount() uint64 { + if m != nil && m.PppRxPapAckCount != nil { + return *m.PppRxPapAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxPapNackCount() uint64 { + if m != nil && m.PppRxPapNackCount != nil { + return *m.PppRxPapNackCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxChapChallengeCount() uint64 { + if m != nil && m.PppRxChapChallengeCount != nil { + return *m.PppRxChapChallengeCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxChapRespCount() uint64 { + if m != nil && m.PppRxChapRespCount != nil { + return *m.PppRxChapRespCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxChapSuccessCount() uint64 { + if m != nil && m.PppRxChapSuccessCount != nil { + return *m.PppRxChapSuccessCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxChapFailCount() uint64 { + if m != nil && m.PppRxChapFailCount != nil { + return *m.PppRxChapFailCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxIpcpConfReqCount() uint64 { + if m != nil && m.PppRxIpcpConfReqCount != nil { + return *m.PppRxIpcpConfReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxIpcpConfAckCount() uint64 { + if m != nil && m.PppRxIpcpConfAckCount != nil { + return *m.PppRxIpcpConfAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxIpcpConfNackCount() uint64 { + if m != nil && m.PppRxIpcpConfNackCount != nil { + return *m.PppRxIpcpConfNackCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxMalformedCnt() uint64 { + if m != nil && m.RxMalformedCnt != nil { + return *m.RxMalformedCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppRxUnknownProtocol() uint64 { + if m != nil && m.PppRxUnknownProtocol != nil { + return *m.PppRxUnknownProtocol + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxMsgCnt() uint64 { + if m != nil && m.RxMsgCnt != nil { + return *m.RxMsgCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxMsgProcessdCnt() uint64 { + if m != nil && m.RxMsgProcessdCnt != nil { + return *m.RxMsgProcessdCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxMsgErr() uint64 { + if m != nil && m.RxMsgErr != nil { + return *m.RxMsgErr + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetRxInvalidMsgCnt() uint64 { + if m != nil && m.RxInvalidMsgCnt != nil { + return *m.RxInvalidMsgCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetTxCnt() uint64 { + if m != nil && m.TxCnt != nil { + return *m.TxCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpConfReqCount() uint64 { + if m != nil && m.PppTxLcpConfReqCount != nil { + return *m.PppTxLcpConfReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpConfAckCount() uint64 { + if m != nil && m.PppTxLcpConfAckCount != nil { + return *m.PppTxLcpConfAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpConfNackCount() uint64 { + if m != nil && m.PppTxLcpConfNackCount != nil { + return *m.PppTxLcpConfNackCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpEchoReqCount() uint64 { + if m != nil && m.PppTxLcpEchoReqCount != nil { + return *m.PppTxLcpEchoReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpEchoRespCount() uint64 { + if m != nil && m.PppTxLcpEchoRespCount != nil { + return *m.PppTxLcpEchoRespCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpTermReqCount() uint64 { + if m != nil && m.PppTxLcpTermReqCount != nil { + return *m.PppTxLcpTermReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxLcpTermAckCount() uint64 { + if m != nil && m.PppTxLcpTermAckCount != nil { + return *m.PppTxLcpTermAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxPapReqCount() uint64 { + if m != nil && m.PppTxPapReqCount != nil { + return *m.PppTxPapReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxPapAckCount() uint64 { + if m != nil && m.PppTxPapAckCount != nil { + return *m.PppTxPapAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxPapNackCount() uint64 { + if m != nil && m.PppTxPapNackCount != nil { + return *m.PppTxPapNackCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxChapChallengeCount() uint64 { + if m != nil && m.PppTxChapChallengeCount != nil { + return *m.PppTxChapChallengeCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxChapRespCount() uint64 { + if m != nil && m.PppTxChapRespCount != nil { + return *m.PppTxChapRespCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxChapSuccessCount() uint64 { + if m != nil && m.PppTxChapSuccessCount != nil { + return *m.PppTxChapSuccessCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxChapFailCount() uint64 { + if m != nil && m.PppTxChapFailCount != nil { + return *m.PppTxChapFailCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxIpcpConfReqCount() uint64 { + if m != nil && m.PppTxIpcpConfReqCount != nil { + return *m.PppTxIpcpConfReqCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxIpcpConfAckCount() uint64 { + if m != nil && m.PppTxIpcpConfAckCount != nil { + return *m.PppTxIpcpConfAckCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxIpcpConfNackCount() uint64 { + if m != nil && m.PppTxIpcpConfNackCount != nil { + return *m.PppTxIpcpConfNackCount + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetPppTxUnknownProtocol() uint64 { + if m != nil && m.PppTxUnknownProtocol != nil { + return *m.PppTxUnknownProtocol + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetTxPktSendFailed() uint64 { + if m != nil && m.TxPktSendFailed != nil { + return *m.TxPktSendFailed + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetTxPktErr() uint64 { + if m != nil && m.TxPktErr != nil { + return *m.TxPktErr + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetTxMsgCnt() uint64 { + if m != nil && m.TxMsgCnt != nil { + return *m.TxMsgCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) GetTxMsgErr() uint64 { + if m != nil && m.TxMsgErr != nil { + return *m.TxMsgErr + } + return 0 +} + +type JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType struct { + RxNetworkPktCnt *uint64 `protobuf:"varint,51,opt,name=rx_network_pkt_cnt,json=rxNetworkPktCnt" json:"rx_network_pkt_cnt,omitempty"` + RxMalformedPktCnt *uint64 `protobuf:"varint,52,opt,name=rx_malformed_pkt_cnt,json=rxMalformedPktCnt" json:"rx_malformed_pkt_cnt,omitempty"` + RxNoIfPktCnt *uint64 `protobuf:"varint,53,opt,name=rx_no_if_pkt_cnt,json=rxNoIfPktCnt" json:"rx_no_if_pkt_cnt,omitempty"` + RxSendSucceededPktCnt *uint64 `protobuf:"varint,54,opt,name=rx_send_succeeded_pkt_cnt,json=rxSendSucceededPktCnt" json:"rx_send_succeeded_pkt_cnt,omitempty"` + RxSendFailedPktCnt *uint64 `protobuf:"varint,55,opt,name=rx_send_failed_pkt_cnt,json=rxSendFailedPktCnt" json:"rx_send_failed_pkt_cnt,omitempty"` + RxUnsupportedPktCnt *uint64 `protobuf:"varint,56,opt,name=rx_unsupported_pkt_cnt,json=rxUnsupportedPktCnt" json:"rx_unsupported_pkt_cnt,omitempty"` + RxSetupRequestCnt *uint64 `protobuf:"varint,57,opt,name=rx_setup_request_cnt,json=rxSetupRequestCnt" json:"rx_setup_request_cnt,omitempty"` + RxHelloPktCnt *uint64 `protobuf:"varint,58,opt,name=rx_hello_pkt_cnt,json=rxHelloPktCnt" json:"rx_hello_pkt_cnt,omitempty"` + RxTearDownPktCnt *uint64 `protobuf:"varint,59,opt,name=rx_tear_down_pkt_cnt,json=rxTearDownPktCnt" json:"rx_tear_down_pkt_cnt,omitempty"` + RxNotifyPktCnt *uint64 `protobuf:"varint,60,opt,name=rx_notify_pkt_cnt,json=rxNotifyPktCnt" json:"rx_notify_pkt_cnt,omitempty"` + TxNetworkPktCnt *uint64 `protobuf:"varint,61,opt,name=tx_network_pkt_cnt,json=txNetworkPktCnt" json:"tx_network_pkt_cnt,omitempty"` + TxNullPktCnt *uint64 `protobuf:"varint,62,opt,name=tx_null_pkt_cnt,json=txNullPktCnt" json:"tx_null_pkt_cnt,omitempty"` + TxNoIfPktCnt *uint64 `protobuf:"varint,63,opt,name=tx_no_if_pkt_cnt,json=txNoIfPktCnt" json:"tx_no_if_pkt_cnt,omitempty"` + TxSendSucceededPktCnt *uint64 `protobuf:"varint,64,opt,name=tx_send_succeeded_pkt_cnt,json=txSendSucceededPktCnt" json:"tx_send_succeeded_pkt_cnt,omitempty"` + TxSendFailedPktCnt *uint64 `protobuf:"varint,65,opt,name=tx_send_failed_pkt_cnt,json=txSendFailedPktCnt" json:"tx_send_failed_pkt_cnt,omitempty"` + TxSetupRequestPktCnt *uint64 `protobuf:"varint,66,opt,name=tx_setup_request_pkt_cnt,json=txSetupRequestPktCnt" json:"tx_setup_request_pkt_cnt,omitempty"` + TxSetupAcceptPktCnt *uint64 `protobuf:"varint,67,opt,name=tx_setup_accept_pkt_cnt,json=txSetupAcceptPktCnt" json:"tx_setup_accept_pkt_cnt,omitempty"` + TxSetupDenyPktCnt *uint64 `protobuf:"varint,68,opt,name=tx_setup_deny_pkt_cnt,json=txSetupDenyPktCnt" json:"tx_setup_deny_pkt_cnt,omitempty"` + TxHelloPktCnt *uint64 `protobuf:"varint,69,opt,name=tx_hello_pkt_cnt,json=txHelloPktCnt" json:"tx_hello_pkt_cnt,omitempty"` + TxTearDownPktCnt *uint64 `protobuf:"varint,70,opt,name=tx_tear_down_pkt_cnt,json=txTearDownPktCnt" json:"tx_tear_down_pkt_cnt,omitempty"` + TxNotifyPktCnt *uint64 `protobuf:"varint,71,opt,name=tx_notify_pkt_cnt,json=txNotifyPktCnt" json:"tx_notify_pkt_cnt,omitempty"` + InflightHagSessionsCnt *uint64 `protobuf:"varint,72,opt,name=inflight_hag_sessions_cnt,json=inflightHagSessionsCnt" json:"inflight_hag_sessions_cnt,omitempty"` + SuccessfulHagSessionsCnt *uint64 `protobuf:"varint,73,opt,name=successful_hag_sessions_cnt,json=successfulHagSessionsCnt" json:"successful_hag_sessions_cnt,omitempty"` + FailedHagSessionsCnt *uint64 `protobuf:"varint,74,opt,name=failed_hag_sessions_cnt,json=failedHagSessionsCnt" json:"failed_hag_sessions_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) Reset() { + *m = JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType{} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) String() string { + return proto.CompactTextString(m) +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) ProtoMessage() { +} +func (*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) Descriptor() ([]byte, []int) { + return fileDescriptor_dcec3dee7e0b9012, []int{0, 0, 0, 0, 0, 0, 0, 6} +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType.Merge(m, src) +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) XXX_Size() int { + return m.Size() +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType proto.InternalMessageInfo + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxNetworkPktCnt() uint64 { + if m != nil && m.RxNetworkPktCnt != nil { + return *m.RxNetworkPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxMalformedPktCnt() uint64 { + if m != nil && m.RxMalformedPktCnt != nil { + return *m.RxMalformedPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxNoIfPktCnt() uint64 { + if m != nil && m.RxNoIfPktCnt != nil { + return *m.RxNoIfPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxSendSucceededPktCnt() uint64 { + if m != nil && m.RxSendSucceededPktCnt != nil { + return *m.RxSendSucceededPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxSendFailedPktCnt() uint64 { + if m != nil && m.RxSendFailedPktCnt != nil { + return *m.RxSendFailedPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxUnsupportedPktCnt() uint64 { + if m != nil && m.RxUnsupportedPktCnt != nil { + return *m.RxUnsupportedPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxSetupRequestCnt() uint64 { + if m != nil && m.RxSetupRequestCnt != nil { + return *m.RxSetupRequestCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxHelloPktCnt() uint64 { + if m != nil && m.RxHelloPktCnt != nil { + return *m.RxHelloPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxTearDownPktCnt() uint64 { + if m != nil && m.RxTearDownPktCnt != nil { + return *m.RxTearDownPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetRxNotifyPktCnt() uint64 { + if m != nil && m.RxNotifyPktCnt != nil { + return *m.RxNotifyPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxNetworkPktCnt() uint64 { + if m != nil && m.TxNetworkPktCnt != nil { + return *m.TxNetworkPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxNullPktCnt() uint64 { + if m != nil && m.TxNullPktCnt != nil { + return *m.TxNullPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxNoIfPktCnt() uint64 { + if m != nil && m.TxNoIfPktCnt != nil { + return *m.TxNoIfPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxSendSucceededPktCnt() uint64 { + if m != nil && m.TxSendSucceededPktCnt != nil { + return *m.TxSendSucceededPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxSendFailedPktCnt() uint64 { + if m != nil && m.TxSendFailedPktCnt != nil { + return *m.TxSendFailedPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxSetupRequestPktCnt() uint64 { + if m != nil && m.TxSetupRequestPktCnt != nil { + return *m.TxSetupRequestPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxSetupAcceptPktCnt() uint64 { + if m != nil && m.TxSetupAcceptPktCnt != nil { + return *m.TxSetupAcceptPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxSetupDenyPktCnt() uint64 { + if m != nil && m.TxSetupDenyPktCnt != nil { + return *m.TxSetupDenyPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxHelloPktCnt() uint64 { + if m != nil && m.TxHelloPktCnt != nil { + return *m.TxHelloPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxTearDownPktCnt() uint64 { + if m != nil && m.TxTearDownPktCnt != nil { + return *m.TxTearDownPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetTxNotifyPktCnt() uint64 { + if m != nil && m.TxNotifyPktCnt != nil { + return *m.TxNotifyPktCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetInflightHagSessionsCnt() uint64 { + if m != nil && m.InflightHagSessionsCnt != nil { + return *m.InflightHagSessionsCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetSuccessfulHagSessionsCnt() uint64 { + if m != nil && m.SuccessfulHagSessionsCnt != nil { + return *m.SuccessfulHagSessionsCnt + } + return 0 +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) GetFailedHagSessionsCnt() uint64 { + if m != nil && m.FailedHagSessionsCnt != nil { + return *m.FailedHagSessionsCnt + } + return 0 +} + +var E_JnprJunosNetworkStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosNetworkStats)(nil), + Field: 39, + Name: "jnpr_junos_network_stats_ext", + Tag: "bytes,39,opt,name=jnpr_junos_network_stats_ext", + Filename: "bbe-smgd_sub_mgmt_network_stats_oc.proto", +} + +func init() { + proto.RegisterType((*JunosNetworkStats)(nil), "junos_network_stats") + proto.RegisterType((*JunosNetworkStatsSystemType)(nil), "junos_network_stats.system_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementType)(nil), "junos_network_stats.system_type.subscriber_management_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.io_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.dhcp_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.ppp_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.pppoe_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.dvlan_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.l2tp_type") + proto.RegisterType((*JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType)(nil), "junos_network_stats.system_type.subscriber_management_type.uplanes_type.uplane_list.infra_type.network_type.hag_type") + proto.RegisterExtension(E_JnprJunosNetworkStatsExt) +} + +func init() { + proto.RegisterFile("bbe-smgd_sub_mgmt_network_stats_oc.proto", fileDescriptor_dcec3dee7e0b9012) +} + +var fileDescriptor_dcec3dee7e0b9012 = []byte{ + // 3183 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0xcb, 0x53, 0x1c, 0xc7, + 0x19, 0x2f, 0x64, 0xcb, 0x86, 0x06, 0x24, 0x18, 0x40, 0xac, 0x56, 0xb2, 0xac, 0xc8, 0xb1, 0xa5, + 0x54, 0x22, 0x70, 0x00, 0xad, 0x40, 0x48, 0x96, 0x78, 0x5a, 0xc8, 0x02, 0xad, 0x96, 0x95, 0xfc, + 0xf6, 0x78, 0x98, 0xe9, 0xdd, 0x1d, 0x98, 0x9d, 0x69, 0xf7, 0x7c, 0x8b, 0x96, 0x6b, 0xaa, 0x52, + 0x49, 0x55, 0xaa, 0x52, 0xb9, 0xe5, 0x7d, 0x4e, 0xe5, 0x94, 0x5b, 0xee, 0xb9, 0xe5, 0x98, 0x8b, + 0x0f, 0xa9, 0xca, 0x21, 0xf1, 0x31, 0xff, 0x41, 0x6e, 0xa9, 0x7e, 0xcd, 0x74, 0xcf, 0xf4, 0xc6, + 0x4e, 0x25, 0x96, 0x2f, 0x2a, 0x31, 0xfd, 0xfb, 0xf5, 0xf7, 0xcd, 0xf7, 0xf8, 0xf5, 0x37, 0x0d, + 0xe8, 0xda, 0xc1, 0x01, 0xbe, 0x9e, 0x76, 0xdb, 0x81, 0x9b, 0xf6, 0x0e, 0xdc, 0x6e, 0xbb, 0x0b, + 0x6e, 0x8c, 0xe1, 0x59, 0x42, 0x8f, 0xdc, 0x14, 0x3c, 0x48, 0xdd, 0xc4, 0x9f, 0x23, 0x34, 0x81, + 0xa4, 0x3a, 0x05, 0x38, 0xc2, 0x5d, 0x0c, 0xf4, 0xc4, 0x85, 0x84, 0x88, 0x87, 0x57, 0xfe, 0xd0, + 0x44, 0x53, 0x87, 0xbd, 0x38, 0x49, 0x4d, 0x96, 0xb3, 0x82, 0x5e, 0x4a, 0x4f, 0x52, 0xc0, 0xdd, + 0xca, 0xcf, 0x87, 0x2e, 0x0f, 0x5d, 0x1b, 0x5d, 0xb8, 0x3c, 0x67, 0x81, 0xcd, 0x09, 0x8c, 0x0b, + 0x27, 0x04, 0x37, 0x24, 0xa1, 0xfa, 0xb7, 0x7d, 0x34, 0xaa, 0x3d, 0x77, 0x3e, 0x43, 0x33, 0x69, + 0xef, 0x20, 0xf5, 0x69, 0x78, 0x80, 0xa9, 0xdb, 0xf5, 0x62, 0xaf, 0x8d, 0xbb, 0x38, 0x06, 0xb5, + 0xf3, 0xea, 0x97, 0xed, 0x3c, 0x67, 0xa5, 0x0b, 0xa3, 0xd3, 0xf9, 0xda, 0x6e, 0xb6, 0x54, 0xfd, + 0x6b, 0x03, 0x55, 0x07, 0x93, 0x1c, 0x1f, 0xbd, 0xdc, 0x23, 0x91, 0x17, 0xe3, 0x54, 0xf9, 0x70, + 0xff, 0x7f, 0xf0, 0x61, 0x4e, 0xee, 0x25, 0x1c, 0x52, 0x3b, 0x57, 0x3f, 0x7f, 0x8c, 0xc6, 0xf4, + 0x15, 0xa7, 0x8b, 0x5e, 0x12, 0x3f, 0x33, 0xa3, 0x2f, 0x5c, 0x1b, 0x5d, 0x68, 0xfe, 0xbf, 0x8c, + 0xca, 0x1f, 0xdc, 0x28, 0x4c, 0xa1, 0x21, 0x8d, 0x54, 0x3f, 0xaf, 0xa3, 0x51, 0xed, 0xb9, 0x73, + 0x05, 0x8d, 0xc8, 0x1f, 0xc3, 0xa0, 0xb2, 0x78, 0x79, 0xe8, 0xda, 0xf8, 0xfa, 0xe9, 0x1f, 0xdc, + 0x3b, 0x35, 0x3c, 0xd4, 0x18, 0x16, 0xcf, 0x77, 0x02, 0xe7, 0x18, 0x9d, 0x0e, 0xe3, 0x16, 0xf5, + 0x54, 0x58, 0xdc, 0xaf, 0xc3, 0xc3, 0x39, 0x6e, 0x42, 0x44, 0x4b, 0x98, 0xab, 0xfe, 0xfe, 0x11, + 0x42, 0xf9, 0x53, 0xe7, 0x47, 0x43, 0xe8, 0x65, 0x69, 0x52, 0x79, 0x12, 0x7d, 0xcd, 0x9e, 0xcc, + 0xa9, 0x8d, 0x45, 0x12, 0xe5, 0x4f, 0xd5, 0x9f, 0xed, 0xa1, 0x31, 0x7d, 0xc5, 0xf9, 0xe1, 0x10, + 0x3a, 0x15, 0x26, 0xca, 0x2b, 0x78, 0x9e, 0x5e, 0xcd, 0x85, 0x89, 0xf0, 0xee, 0x54, 0x98, 0x38, + 0x3f, 0x19, 0x42, 0x2f, 0x06, 0x1d, 0x9f, 0x54, 0x7e, 0x21, 0x3c, 0x39, 0x7e, 0xae, 0x9e, 0x30, + 0xcb, 0xc2, 0x17, 0xee, 0x84, 0xf3, 0xe3, 0x21, 0xf4, 0x02, 0x21, 0xa4, 0xf2, 0x4b, 0xe1, 0x4c, + 0xef, 0xb9, 0x3a, 0x43, 0x88, 0xf4, 0x85, 0xb9, 0xe0, 0xfc, 0x74, 0x08, 0x9d, 0x26, 0x84, 0x24, + 0xb8, 0xf2, 0x2b, 0xe1, 0xcc, 0xb3, 0xe7, 0xed, 0x4c, 0x82, 0x65, 0x6d, 0xf3, 0xff, 0x73, 0x87, + 0x82, 0xe3, 0xc8, 0x8b, 0x2b, 0xbf, 0xf9, 0x26, 0x1c, 0xe2, 0xa6, 0xa5, 0x43, 0xfc, 0xff, 0xbc, + 0x74, 0xa2, 0x05, 0x20, 0x95, 0x5f, 0x7f, 0x13, 0xa5, 0xc3, 0x2c, 0xcb, 0xd2, 0x61, 0xff, 0xe5, + 0xa5, 0xd3, 0xf1, 0xda, 0x95, 0xdf, 0x7e, 0x13, 0xa5, 0xd3, 0xf1, 0xda, 0xb2, 0x74, 0x3a, 0x5e, + 0xbb, 0xfa, 0xaf, 0x71, 0xf4, 0xb2, 0xec, 0x31, 0xe7, 0x3b, 0x68, 0x32, 0x5a, 0x70, 0x69, 0xdf, + 0x25, 0x9e, 0x7f, 0x84, 0x21, 0x75, 0xfd, 0x18, 0xb8, 0x6a, 0xbe, 0xd8, 0x38, 0x13, 0x2d, 0x34, + 0xfa, 0x75, 0xf1, 0x78, 0x23, 0x06, 0x67, 0x1e, 0x4d, 0x9b, 0xd0, 0x96, 0x17, 0x46, 0x38, 0xa8, + 0x2c, 0x71, 0xf4, 0xa4, 0x86, 0xde, 0xe6, 0x0b, 0xce, 0x75, 0x34, 0x25, 0x08, 0x5d, 0x2f, 0x6a, + 0x25, 0xb4, 0x8b, 0x03, 0xbe, 0xfb, 0x0d, 0x8e, 0x9f, 0x60, 0xf8, 0x5d, 0xb5, 0xc0, 0xf6, 0xcf, + 0x5c, 0x09, 0x5b, 0x81, 0x1b, 0xc6, 0xc7, 0x5e, 0x14, 0x06, 0x95, 0x5a, 0xee, 0xca, 0x4e, 0x2b, + 0xd8, 0x11, 0x4f, 0x75, 0x68, 0x94, 0x41, 0x6f, 0xea, 0xd0, 0x48, 0x41, 0xdf, 0x40, 0x13, 0x02, + 0x1a, 0x27, 0x6e, 0xd8, 0x6a, 0x71, 0x0f, 0x96, 0x39, 0x72, 0x8c, 0x21, 0xf7, 0x92, 0x9d, 0x56, + 0x8b, 0x59, 0x5f, 0x40, 0xe7, 0xd4, 0x96, 0xae, 0x4f, 0xb1, 0x07, 0x58, 0xbd, 0xdf, 0x0a, 0x47, + 0x3b, 0x62, 0xdf, 0x0d, 0xbe, 0x24, 0x5f, 0xf0, 0x31, 0xba, 0x1a, 0x2d, 0xb8, 0x07, 0x07, 0xd8, + 0x0d, 0x13, 0x97, 0xfa, 0xc7, 0x6e, 0xb4, 0xe8, 0xf6, 0xe2, 0xa3, 0x38, 0x79, 0x16, 0xbb, 0x5e, + 0x10, 0x50, 0x9c, 0xb2, 0x20, 0x75, 0xc3, 0xe8, 0xa4, 0x72, 0x8b, 0x6f, 0x72, 0x39, 0x5a, 0x58, + 0x3f, 0xc0, 0x3b, 0x49, 0xc3, 0x3f, 0x7e, 0xb8, 0xf8, 0x44, 0x20, 0xd7, 0x04, 0x70, 0x9b, 0xe3, + 0x9c, 0x4d, 0xf4, 0xaa, 0x70, 0xa3, 0x17, 0xa7, 0x3d, 0x42, 0x12, 0x0a, 0x98, 0x05, 0x03, 0x83, + 0xcb, 0xe7, 0x18, 0x3f, 0x89, 0x2a, 0xab, 0x7c, 0xab, 0x0b, 0xcc, 0x9f, 0x27, 0x39, 0x68, 0x27, + 0xc6, 0x50, 0x97, 0x10, 0x67, 0x1b, 0x5d, 0xb6, 0xef, 0x52, 0xcb, 0xb7, 0xb9, 0xcd, 0xb7, 0xb9, + 0x68, 0xd9, 0xa6, 0x96, 0xed, 0xb3, 0x8e, 0x2e, 0x95, 0xf7, 0xe9, 0x05, 0x24, 0xdf, 0xe5, 0x0e, + 0xdf, 0xa5, 0x5a, 0xd8, 0xe5, 0x49, 0x40, 0xb2, 0x3d, 0x96, 0xd1, 0xf9, 0xf2, 0x1e, 0xa4, 0x17, + 0x83, 0xeb, 0xb5, 0x2a, 0x6f, 0x71, 0xfa, 0x4c, 0x81, 0x5e, 0xef, 0xc5, 0xb0, 0xd6, 0x72, 0x6e, + 0xa1, 0x0b, 0x82, 0x79, 0xbc, 0xe4, 0x06, 0x1e, 0x78, 0x2e, 0xf1, 0xa0, 0x23, 0xa8, 0xe4, 0x08, + 0x2a, 0x77, 0x73, 0xee, 0xd3, 0xa5, 0x4d, 0x0f, 0xbc, 0xba, 0x07, 0x1d, 0x46, 0xad, 0x1f, 0x81, + 0xb3, 0xa1, 0x22, 0x60, 0xe5, 0xba, 0x01, 0x4d, 0x48, 0xe5, 0x1e, 0xdf, 0xe0, 0xbc, 0x75, 0x83, + 0x4d, 0x9a, 0x10, 0xcd, 0x81, 0x9a, 0xcd, 0x81, 0x35, 0xcd, 0x81, 0xda, 0x60, 0x07, 0x6a, 0x03, + 0x1d, 0x58, 0xd7, 0x1c, 0xa8, 0xd9, 0x1c, 0x10, 0x75, 0x0e, 0x66, 0x77, 0x6e, 0xa8, 0x3a, 0x6f, + 0xea, 0xdd, 0x29, 0x9a, 0x0d, 0x8a, 0xcd, 0xb6, 0xa9, 0x9a, 0xad, 0x69, 0x36, 0x9b, 0x68, 0x0b, + 0x90, 0x6d, 0x21, 0xb0, 0x5b, 0xaa, 0x2d, 0x9a, 0xbc, 0x2d, 0xb4, 0xa6, 0x04, 0xb3, 0xd3, 0xb6, + 0x73, 0x0f, 0xb4, 0x4e, 0xbb, 0x81, 0x2a, 0x79, 0x37, 0xa4, 0x38, 0x0e, 0x18, 0x4d, 0xf6, 0xd0, + 0xdb, 0x9c, 0x31, 0x25, 0xcb, 0x7f, 0x1f, 0xc7, 0x41, 0xb3, 0x2f, 0x9b, 0x68, 0x93, 0x07, 0xca, + 0x4a, 0x73, 0x89, 0x47, 0x21, 0xf4, 0xa2, 0xca, 0x7d, 0x55, 0x65, 0x25, 0x7a, 0x5d, 0x20, 0x9c, + 0xb7, 0xd0, 0x2b, 0xc2, 0xcf, 0xe3, 0x25, 0x37, 0xe9, 0x81, 0x8b, 0x29, 0x4d, 0xa8, 0x1b, 0x25, + 0xbe, 0xc7, 0xdc, 0x86, 0x56, 0x65, 0x87, 0x6f, 0x31, 0xcb, 0x7c, 0x7e, 0xba, 0xf4, 0xa8, 0x07, + 0x5b, 0x0c, 0xf0, 0x90, 0xad, 0xef, 0xc4, 0xd0, 0xd2, 0xf8, 0x35, 0x3b, 0xff, 0x81, 0xc6, 0xaf, + 0x95, 0xf9, 0x57, 0xd1, 0x44, 0xb4, 0x98, 0x8b, 0x23, 0x8f, 0xe7, 0x3b, 0x9c, 0x32, 0x1e, 0x2d, + 0x2a, 0x61, 0x64, 0x01, 0x5d, 0x45, 0x55, 0x01, 0x34, 0xda, 0x41, 0xb5, 0xd3, 0x43, 0x69, 0x65, + 0xd1, 0xec, 0x07, 0xd5, 0x4b, 0xc2, 0x0a, 0x18, 0x56, 0x76, 0x95, 0x95, 0xa6, 0x66, 0x85, 0xa5, + 0x8d, 0x03, 0x79, 0x40, 0x65, 0x12, 0xf6, 0x64, 0xda, 0x16, 0x9b, 0x7d, 0x16, 0x42, 0x19, 0xff, + 0x25, 0x34, 0x2b, 0xa0, 0xc7, 0x4b, 0xee, 0x11, 0xa6, 0x31, 0x8e, 0xdc, 0x56, 0x42, 0x9f, 0x79, + 0x34, 0xa8, 0x3c, 0x92, 0x59, 0x5b, 0x64, 0x31, 0x7b, 0x87, 0xaf, 0x6d, 0x8b, 0x25, 0xe7, 0x2e, + 0x7a, 0x65, 0x00, 0x8b, 0x97, 0x76, 0x5a, 0xa9, 0x73, 0x6e, 0xc5, 0xc2, 0x65, 0x95, 0x9d, 0x6a, + 0x66, 0x6b, 0x45, 0xb3, 0x8f, 0x35, 0xb3, 0xb5, 0x41, 0x66, 0x6b, 0x76, 0xb3, 0x0d, 0xcd, 0x6c, + 0xad, 0x6c, 0xb6, 0xfa, 0xc7, 0xd3, 0x68, 0x24, 0x9b, 0xea, 0x9c, 0x2b, 0x68, 0xdc, 0x4c, 0x99, + 0x38, 0xf9, 0x46, 0xa9, 0x16, 0xca, 0x0b, 0x68, 0x04, 0x53, 0x4f, 0x6e, 0x2f, 0xce, 0xba, 0x61, + 0x4c, 0x3d, 0xf1, 0x16, 0xd7, 0xd0, 0x84, 0x38, 0x5a, 0xfc, 0x24, 0x8e, 0xb1, 0x0f, 0x61, 0x12, + 0xcb, 0xf3, 0xed, 0x0c, 0xed, 0xef, 0x25, 0x1b, 0xd9, 0x53, 0x89, 0x34, 0x9b, 0xb3, 0xa6, 0x90, + 0x46, 0x6b, 0xbe, 0x8a, 0xc6, 0xd4, 0x71, 0xc5, 0x51, 0xe2, 0x5c, 0x1b, 0xa1, 0xbc, 0x29, 0x19, + 0xe0, 0xdb, 0xe8, 0x4c, 0xe1, 0xe8, 0x93, 0x07, 0x1a, 0xd5, 0xdb, 0x51, 0xa0, 0xf4, 0xfc, 0xaf, + 0x28, 0x94, 0x96, 0xfd, 0x2b, 0x68, 0xdc, 0x2c, 0x27, 0x71, 0x50, 0x8d, 0x82, 0x16, 0x81, 0x79, + 0x34, 0xa5, 0xf4, 0x07, 0xa8, 0x17, 0xa7, 0xdd, 0x10, 0x00, 0x07, 0xf2, 0x1c, 0x72, 0xe4, 0x52, + 0x33, 0x5f, 0x61, 0xef, 0x5a, 0x12, 0x22, 0x71, 0xdc, 0x9c, 0x01, 0xf3, 0x5d, 0x2f, 0xa1, 0x51, + 0xa6, 0x41, 0xbd, 0x28, 0xe2, 0x8a, 0x2a, 0x4e, 0x93, 0x11, 0xe8, 0xef, 0xf5, 0xa2, 0x88, 0xa9, + 0xe8, 0xab, 0x68, 0x0c, 0xf4, 0x58, 0xbc, 0x95, 0x01, 0x64, 0x2c, 0xbe, 0xc5, 0xfd, 0xd7, 0xce, + 0x76, 0x71, 0x2a, 0x20, 0xc8, 0x4f, 0xf6, 0x0c, 0x42, 0x41, 0xbc, 0xe2, 0xbd, 0x1c, 0xd2, 0x00, + 0xfe, 0x86, 0x22, 0x0a, 0x1e, 0x25, 0x2a, 0x54, 0x6b, 0x2a, 0x0a, 0x6b, 0x94, 0x18, 0x91, 0x0a, + 0x5b, 0x59, 0xd0, 0xd7, 0x15, 0x66, 0xa7, 0xa5, 0xc5, 0xbc, 0xd0, 0x73, 0x42, 0xac, 0xc7, 0x40, + 0x8f, 0xf9, 0x22, 0x3a, 0x47, 0xfb, 0xee, 0xb3, 0x4e, 0x18, 0x61, 0x37, 0x4e, 0x40, 0xd5, 0x0e, + 0x0e, 0xa4, 0x5a, 0x4f, 0xd1, 0xfe, 0xbb, 0x6c, 0x71, 0x2f, 0x81, 0x0d, 0xb5, 0x54, 0xfd, 0xa7, + 0x83, 0x86, 0xd5, 0x17, 0x80, 0xf3, 0x5d, 0xe4, 0xb0, 0x12, 0x91, 0x23, 0x1e, 0x3b, 0x4f, 0xf2, + 0xe2, 0x3d, 0x4b, 0xfb, 0x7b, 0x62, 0xa1, 0x7e, 0xa4, 0xb4, 0x80, 0x15, 0x79, 0xd4, 0x6b, 0x87, + 0x71, 0x86, 0x5d, 0x52, 0xa5, 0x57, 0xe7, 0xcf, 0x25, 0xf4, 0x7b, 0x68, 0x8a, 0xf6, 0xdd, 0xc8, + 0x27, 0xcc, 0xa7, 0x96, 0x4b, 0xf1, 0x67, 0xda, 0xc4, 0x76, 0x96, 0xf6, 0x1f, 0xfa, 0x64, 0x23, + 0x89, 0x5b, 0x0d, 0xfc, 0x99, 0x05, 0xed, 0xf9, 0x47, 0x5a, 0x55, 0xe7, 0xe8, 0x35, 0xff, 0x88, + 0xa1, 0xe7, 0xd0, 0xb4, 0x8e, 0x8e, 0x15, 0x5c, 0x94, 0xf7, 0x44, 0x06, 0xdf, 0xf3, 0x04, 0xbe, + 0xe4, 0xcb, 0xa1, 0x36, 0xbb, 0xe9, 0xbe, 0x1c, 0x9a, 0x68, 0xc0, 0xb4, 0x9b, 0x79, 0xbe, 0xa2, + 0xa1, 0x9b, 0x98, 0x76, 0x4b, 0x9e, 0x73, 0xb4, 0x72, 0xe5, 0x56, 0x01, 0xbd, 0x56, 0xf6, 0x24, + 0xc0, 0x99, 0x27, 0xab, 0x86, 0x27, 0x01, 0x96, 0x9e, 0x2c, 0xa1, 0x59, 0x89, 0x56, 0xaa, 0x9e, + 0x31, 0x6e, 0xab, 0xf4, 0x3e, 0xf4, 0xb3, 0xf9, 0xa8, 0xe4, 0x3f, 0xf6, 0x3b, 0x49, 0xe6, 0xff, + 0x1d, 0xcd, 0xc6, 0x96, 0xdf, 0x49, 0xa4, 0xff, 0x6f, 0xa2, 0x19, 0x13, 0x4d, 0xa2, 0x13, 0xad, + 0x3f, 0x26, 0x35, 0x3c, 0x89, 0x4e, 0xe4, 0x78, 0x2b, 0x19, 0x41, 0x98, 0xfa, 0x4c, 0x2f, 0x95, + 0x09, 0xd1, 0x30, 0x0e, 0xa7, 0x6c, 0x8a, 0x35, 0x69, 0xe5, 0x35, 0xae, 0x20, 0xc4, 0x23, 0x19, + 0xf6, 0x5e, 0x2e, 0x8f, 0xa4, 0x04, 0x52, 0x51, 0x5c, 0xd3, 0x40, 0x32, 0x82, 0xaf, 0xa3, 0xb3, + 0x12, 0x94, 0xa5, 0x7d, 0x5d, 0x89, 0x51, 0xdd, 0x23, 0x2a, 0xe5, 0xdf, 0xe7, 0xaf, 0xe5, 0x77, + 0x3c, 0xc2, 0xfe, 0x89, 0x22, 0x1c, 0xb7, 0xb1, 0x36, 0xf2, 0x38, 0xb4, 0xbf, 0xd1, 0xf1, 0xc8, + 0x86, 0x5a, 0x62, 0x94, 0xab, 0x5c, 0x56, 0x39, 0x85, 0xe2, 0x94, 0x68, 0x33, 0xcf, 0xb8, 0x40, + 0x37, 0x70, 0x4a, 0xe4, 0x7c, 0xa4, 0x80, 0x69, 0xcf, 0xf7, 0xd9, 0x68, 0x9e, 0xcf, 0x3c, 0x13, + 0x02, 0xbb, 0x2f, 0x16, 0x0a, 0x70, 0xd6, 0xc9, 0x3d, 0x2a, 0x1c, 0xd9, 0xd6, 0xe1, 0xdb, 0x62, + 0x21, 0x7f, 0xc1, 0x90, 0xf8, 0x79, 0xac, 0xde, 0xce, 0x34, 0x99, 0xf8, 0x2a, 0x58, 0x1a, 0x4c, + 0xc5, 0xe1, 0xbe, 0x0e, 0x93, 0xe1, 0x12, 0x2f, 0xc5, 0x61, 0x59, 0xbc, 0x76, 0xd4, 0x4b, 0x31, + 0x9c, 0x0a, 0x98, 0x68, 0xed, 0x90, 0x1c, 0xd7, 0x34, 0xc3, 0x0f, 0x54, 0x6b, 0xef, 0xf0, 0xe7, + 0xd2, 0xb4, 0x01, 0x55, 0x9b, 0xbe, 0x63, 0x42, 0xa5, 0x79, 0xa1, 0x2e, 0x12, 0x9a, 0x39, 0xf0, + 0x50, 0x95, 0xa2, 0xc0, 0x2a, 0x17, 0x6c, 0xe7, 0xda, 0xee, 0x57, 0x3a, 0xd7, 0xf6, 0x8a, 0xe7, + 0xda, 0xeb, 0xbc, 0x94, 0xb4, 0xb9, 0x48, 0x0e, 0x20, 0xe3, 0x54, 0x1f, 0x86, 0x9c, 0x19, 0xf4, + 0x12, 0xf4, 0xf9, 0x0e, 0x62, 0xc6, 0x38, 0x0d, 0x7d, 0xd9, 0x41, 0x60, 0xd1, 0x2e, 0x31, 0x4c, + 0x9c, 0x85, 0xb2, 0x76, 0x81, 0x45, 0xbb, 0x1a, 0x05, 0x74, 0xae, 0x5d, 0x60, 0xd3, 0xae, 0x7d, + 0x51, 0x0e, 0x60, 0xd1, 0x2e, 0xb0, 0x68, 0x57, 0xb3, 0xe4, 0xcb, 0xa1, 0x89, 0x36, 0x7a, 0xff, + 0x89, 0x86, 0x36, 0x7b, 0x1f, 0xac, 0xbd, 0xff, 0x54, 0xf4, 0x3e, 0xd8, 0x7a, 0x1f, 0xec, 0xbd, + 0xff, 0xae, 0xe8, 0x2b, 0x28, 0xf7, 0x7e, 0xee, 0x93, 0xa1, 0xa7, 0xef, 0x69, 0x3e, 0x99, 0x7a, + 0x0a, 0x16, 0x3d, 0x7d, 0xbf, 0x80, 0x96, 0xd1, 0x7c, 0x8d, 0x9f, 0x92, 0xba, 0xae, 0x7c, 0x90, + 0x0f, 0x1d, 0x9a, 0xae, 0x80, 0xa9, 0x2b, 0x1f, 0x6a, 0xa0, 0x5c, 0x57, 0xa0, 0xa0, 0x2b, 0x1f, + 0xa9, 0x03, 0xd7, 0xd4, 0x15, 0xb0, 0xea, 0xca, 0xc7, 0xea, 0xfd, 0x6d, 0xba, 0x02, 0x45, 0x5d, + 0xf9, 0x44, 0x54, 0x23, 0x14, 0x75, 0x05, 0x2c, 0xba, 0xe2, 0xaa, 0xca, 0x28, 0xeb, 0x0a, 0x58, + 0x74, 0xe5, 0x53, 0x1d, 0x6e, 0xea, 0x0a, 0x14, 0x74, 0xc5, 0x53, 0x2f, 0x68, 0xea, 0x0a, 0x14, + 0x74, 0xe5, 0x40, 0x87, 0xe5, 0xba, 0x02, 0x45, 0x5d, 0xf1, 0xd5, 0x4b, 0x15, 0x74, 0x05, 0x4a, + 0xba, 0x12, 0xa8, 0x09, 0xae, 0xa8, 0x2b, 0x50, 0xd2, 0x15, 0x6c, 0x42, 0x73, 0x5d, 0x81, 0xb2, + 0xae, 0xb4, 0x54, 0x91, 0x98, 0xba, 0x22, 0xc0, 0xea, 0x36, 0x45, 0x8d, 0x2d, 0x6d, 0x05, 0x96, + 0x97, 0x27, 0x72, 0x6e, 0x29, 0xcf, 0x5d, 0x1d, 0xcb, 0xdc, 0x65, 0x1b, 0x4b, 0x43, 0xdb, 0x58, + 0x5a, 0xfd, 0xc7, 0x29, 0x84, 0xf2, 0x1b, 0x4e, 0xa6, 0x38, 0xb4, 0xaf, 0x8d, 0x58, 0xa7, 0x69, + 0x5f, 0x0e, 0xaf, 0xfc, 0x54, 0x0b, 0x42, 0x6d, 0xa4, 0x1a, 0x61, 0x27, 0x5a, 0x10, 0x1a, 0xeb, + 0x54, 0x9b, 0xa2, 0xc4, 0x3a, 0x65, 0xeb, 0x17, 0x11, 0x62, 0xeb, 0x84, 0x68, 0x63, 0xd3, 0x30, + 0xed, 0xd7, 0x09, 0x19, 0x24, 0xac, 0x37, 0xbf, 0x92, 0xb0, 0x2e, 0x7f, 0xb9, 0xb0, 0xae, 0xd8, + 0x84, 0x75, 0x9e, 0x4f, 0x68, 0xfc, 0x7d, 0xf8, 0x17, 0x8f, 0x10, 0x84, 0x54, 0x8e, 0x45, 0x93, + 0xe2, 0xc5, 0xb6, 0xa8, 0x27, 0x95, 0x22, 0xd5, 0x94, 0x78, 0x55, 0x57, 0xe2, 0x72, 0x36, 0x6e, + 0x97, 0xb3, 0x51, 0x7d, 0x13, 0xa1, 0xfc, 0xce, 0xf6, 0xab, 0x7c, 0x89, 0x55, 0xff, 0x34, 0x85, + 0x46, 0xb2, 0x6b, 0xd5, 0x41, 0x49, 0x91, 0x41, 0x35, 0xc6, 0x5c, 0x16, 0x54, 0x51, 0x28, 0xaf, + 0xa1, 0x33, 0x2c, 0xde, 0x1a, 0x42, 0x64, 0x65, 0x94, 0x10, 0xd2, 0x50, 0xa0, 0x8b, 0x08, 0x41, + 0x0e, 0x90, 0x79, 0x01, 0xb5, 0x7a, 0x13, 0x9d, 0x97, 0x5b, 0x98, 0x67, 0x4d, 0xd2, 0xcb, 0x12, + 0x34, 0xcd, 0x77, 0xd3, 0x0e, 0x1c, 0xb6, 0x66, 0x23, 0xf2, 0x1e, 0xe0, 0xc4, 0xe5, 0x32, 0x91, + 0x75, 0x0d, 0x27, 0xae, 0xa0, 0x6a, 0x91, 0x18, 0xe7, 0x4c, 0x91, 0xca, 0x19, 0x9d, 0xc9, 0x7b, + 0xc8, 0x62, 0x33, 0x97, 0x72, 0xce, 0xbc, 0x65, 0xda, 0x54, 0x7a, 0x3e, 0x88, 0x98, 0x9b, 0x5c, + 0x2d, 0x13, 0xd7, 0xec, 0x16, 0xf3, 0x03, 0x8d, 0x13, 0x6f, 0x9b, 0x44, 0x75, 0xaa, 0x59, 0xde, + 0x52, 0x12, 0x99, 0xf2, 0x72, 0xe6, 0x1d, 0xf3, 0x2d, 0x05, 0x33, 0x25, 0x82, 0x3a, 0x87, 0xa6, + 0x55, 0x56, 0xd5, 0xa1, 0xc2, 0x49, 0x62, 0x1a, 0x9e, 0x10, 0xb9, 0x15, 0x27, 0x8b, 0x05, 0x9f, + 0xbf, 0xd7, 0x5d, 0x13, 0x9f, 0xbd, 0xd3, 0x9b, 0x68, 0x46, 0xc3, 0x6b, 0xb1, 0x17, 0xf3, 0xf0, + 0xa4, 0x22, 0xe4, 0x71, 0xbf, 0x8d, 0x2e, 0x48, 0x46, 0xf1, 0xd4, 0xe1, 0x3c, 0x31, 0x22, 0xcf, + 0x72, 0x9e, 0x79, 0xf4, 0x70, 0xf6, 0x02, 0x3a, 0xa7, 0xb3, 0xb5, 0x30, 0xac, 0xcb, 0x6f, 0x6e, + 0x45, 0xcc, 0x63, 0xb0, 0x9c, 0xc5, 0xdd, 0x3c, 0x8b, 0x38, 0x6d, 0x43, 0x8b, 0x9e, 0x7e, 0x20, + 0xd9, 0xac, 0xb1, 0x96, 0x95, 0xb4, 0xcd, 0x82, 0x35, 0xd6, 0xb9, 0xc5, 0x64, 0xf1, 0xd3, 0xa4, + 0xd0, 0x05, 0x5b, 0x9a, 0x39, 0x76, 0xac, 0x18, 0x6d, 0x60, 0xa3, 0xe6, 0x11, 0xdd, 0xb6, 0x50, + 0xb3, 0x3c, 0xac, 0x66, 0x51, 0xcd, 0xa9, 0x5a, 0x36, 0xc4, 0xc4, 0x7d, 0xce, 0xe0, 0xe6, 0x29, + 0xb1, 0xe9, 0xe9, 0x7d, 0xab, 0x9e, 0xde, 0x40, 0xb3, 0xd2, 0x4c, 0x76, 0xfc, 0xa8, 0xfb, 0xb9, + 0x1d, 0xad, 0x80, 0xd5, 0x11, 0xa4, 0x2e, 0xe7, 0x84, 0xf2, 0x74, 0xd3, 0xb6, 0x36, 0x85, 0x0f, + 0xd3, 0xfe, 0x6e, 0xda, 0xce, 0x3f, 0x28, 0xd8, 0x2a, 0xa1, 0x09, 0x0b, 0x7e, 0xa0, 0x4d, 0xe0, + 0x13, 0x1c, 0x56, 0x97, 0x0b, 0xb9, 0x8c, 0x31, 0x38, 0xa6, 0x54, 0xce, 0xde, 0x62, 0xb3, 0x2d, + 0x4a, 0xd5, 0x84, 0x2e, 0x6e, 0x1d, 0x32, 0x93, 0xbb, 0xd9, 0x84, 0x2e, 0x16, 0xa4, 0xe5, 0x5c, + 0xa5, 0xf7, 0x74, 0x95, 0x96, 0x8d, 0x0a, 0x56, 0x1d, 0x7b, 0x94, 0xbd, 0x67, 0x73, 0x90, 0x8e, + 0x81, 0x55, 0xc7, 0xea, 0x65, 0x62, 0x51, 0xc7, 0xc0, 0xae, 0x63, 0x8f, 0xb3, 0xcc, 0x37, 0x07, + 0xea, 0x18, 0x58, 0x55, 0xa5, 0x61, 0xda, 0xb4, 0xa9, 0x0a, 0xd8, 0x55, 0x65, 0xdf, 0xb4, 0x69, + 0xaa, 0x8a, 0x69, 0xb3, 0xa0, 0x9d, 0x4d, 0xd3, 0xa6, 0x4d, 0x3b, 0xc1, 0xaa, 0x9d, 0x4f, 0xca, + 0xc4, 0x2c, 0x40, 0x52, 0x97, 0xa0, 0xa8, 0x63, 0x4f, 0x33, 0x5d, 0x6a, 0xda, 0x74, 0x0c, 0x8a, + 0x3a, 0xf6, 0xae, 0x89, 0x2f, 0xea, 0x18, 0x94, 0x74, 0xec, 0xbd, 0x4c, 0xc7, 0x9a, 0x56, 0x1d, + 0x83, 0x01, 0x3a, 0xf6, 0x7e, 0xa6, 0x63, 0xcd, 0xff, 0xa0, 0x63, 0x50, 0xd6, 0xb1, 0x0f, 0x32, + 0x65, 0x69, 0xda, 0x75, 0x0c, 0xac, 0x3a, 0xf6, 0xa1, 0x96, 0xaf, 0x41, 0x3a, 0x06, 0x65, 0x1d, + 0xfb, 0xa8, 0x60, 0xad, 0xa4, 0x63, 0x60, 0xd7, 0xb1, 0x8f, 0x35, 0x73, 0x83, 0x74, 0x0c, 0xec, + 0x3a, 0xf6, 0x89, 0x85, 0x5a, 0xd4, 0x31, 0x18, 0xa0, 0x63, 0x6e, 0xa6, 0x63, 0x4d, 0x8b, 0x8e, + 0x49, 0x75, 0x02, 0x8b, 0x3a, 0x7d, 0xaa, 0xd5, 0x56, 0x51, 0x9d, 0xc4, 0x3c, 0xcd, 0x86, 0x1a, + 0x7d, 0x30, 0xf3, 0xd4, 0x3c, 0x5d, 0x3f, 0x02, 0x6d, 0x52, 0xce, 0x27, 0x20, 0xa6, 0x3e, 0x07, + 0xda, 0x04, 0xc4, 0xd4, 0x47, 0xac, 0x2a, 0xd5, 0xf1, 0xd5, 0xaa, 0x94, 0x9b, 0x7c, 0x95, 0x71, + 0x03, 0x6d, 0x75, 0x8b, 0xd2, 0xea, 0xef, 0x46, 0xd0, 0xb0, 0xfa, 0x6d, 0xf4, 0x7f, 0x77, 0x8d, + 0x29, 0xa6, 0xd3, 0x5c, 0xbf, 0xcd, 0x11, 0x6f, 0x52, 0xd3, 0x70, 0x49, 0x78, 0x43, 0xdd, 0xcd, + 0x87, 0xad, 0xc2, 0xb4, 0x37, 0x26, 0x46, 0x63, 0x89, 0x5b, 0x46, 0xe7, 0xd5, 0x45, 0x39, 0xaf, + 0x36, 0x1c, 0x68, 0xbb, 0x8b, 0xe9, 0x6f, 0x46, 0xdc, 0x99, 0xef, 0xab, 0x65, 0xc9, 0x14, 0x97, + 0x6a, 0x5a, 0x3c, 0x33, 0xda, 0x4d, 0x75, 0x61, 0x95, 0x07, 0x55, 0x72, 0xc4, 0xe5, 0xaf, 0xf1, + 0xcb, 0x1f, 0xc9, 0x59, 0x56, 0xb7, 0x83, 0xfa, 0x6f, 0x7e, 0xf4, 0x77, 0x4f, 0x31, 0xf4, 0xb8, + 0x2c, 0xf4, 0x70, 0x0a, 0xda, 0xf5, 0xe6, 0x24, 0x33, 0x03, 0x3d, 0xa6, 0x0b, 0x6c, 0x25, 0xbf, + 0x41, 0xea, 0xe0, 0x28, 0x4a, 0xb2, 0xfd, 0x6f, 0xa9, 0x99, 0xff, 0x3e, 0x7b, 0x2c, 0x77, 0x16, + 0xb7, 0xb2, 0x80, 0x3d, 0xea, 0x06, 0xfa, 0x87, 0xd6, 0xaa, 0x3a, 0x97, 0x9a, 0xd8, 0xa3, 0x9b, + 0xf9, 0x97, 0x96, 0xb8, 0x46, 0x8a, 0x13, 0x08, 0x5b, 0x27, 0x19, 0xf8, 0x76, 0xfe, 0x1b, 0x0f, + 0xf6, 0x5c, 0x42, 0x45, 0xc5, 0x15, 0xb3, 0x7b, 0x47, 0x55, 0x9c, 0x99, 0x5d, 0xf1, 0x05, 0xab, + 0x7e, 0x11, 0xa0, 0xdd, 0x65, 0x8e, 0x65, 0xbf, 0x0c, 0x90, 0x39, 0x85, 0x62, 0x4e, 0xef, 0x66, + 0x38, 0x23, 0xa7, 0x30, 0x30, 0xa7, 0x62, 0x6a, 0x9b, 0x81, 0x41, 0x39, 0x05, 0x7b, 0x4e, 0xd7, + 0xd4, 0x65, 0x41, 0x29, 0xa7, 0x35, 0x54, 0x81, 0x62, 0x7a, 0x14, 0x4b, 0x4c, 0x6c, 0xd3, 0x60, + 0xa4, 0x48, 0xf2, 0x96, 0xd0, 0x6c, 0xc6, 0xf3, 0x7c, 0x1f, 0x93, 0x9c, 0x26, 0x26, 0xb6, 0x29, + 0x49, 0x5b, 0xe3, 0x8b, 0x92, 0x25, 0x2e, 0x80, 0x04, 0x2b, 0xc0, 0x71, 0x9e, 0x86, 0x4d, 0x75, + 0x01, 0xc4, 0x39, 0x9b, 0x38, 0x56, 0x99, 0x10, 0xdf, 0xfd, 0x66, 0x35, 0x6c, 0xa9, 0xef, 0xfe, + 0x42, 0x35, 0x80, 0xad, 0x1a, 0xb6, 0xd5, 0xf5, 0x44, 0xb9, 0x1a, 0xa0, 0x54, 0x0d, 0x6f, 0xab, + 0x4f, 0x6a, 0xa3, 0x1a, 0x56, 0xd0, 0xf9, 0x30, 0x6e, 0x45, 0x61, 0xbb, 0x03, 0x2e, 0x13, 0x80, + 0x14, 0xa7, 0x69, 0x98, 0xc4, 0xa9, 0x36, 0x87, 0x9d, 0x53, 0x80, 0xfb, 0x5e, 0x7b, 0x5f, 0x2e, + 0x33, 0xea, 0x1d, 0x74, 0x41, 0x1e, 0x03, 0xad, 0x5e, 0x54, 0x26, 0x8b, 0x99, 0xac, 0x92, 0x43, + 0x0a, 0xf4, 0x1b, 0x68, 0x56, 0x66, 0xb2, 0x44, 0x15, 0x43, 0xda, 0xb4, 0x58, 0x36, 0x69, 0xb7, + 0xba, 0xe8, 0xe2, 0x61, 0x4c, 0xa8, 0x6b, 0xf9, 0x3b, 0x1d, 0x17, 0xf7, 0xc1, 0x99, 0x9d, 0x7b, + 0xd0, 0x8b, 0x43, 0x82, 0xa9, 0x2c, 0xe4, 0x74, 0x1f, 0xc7, 0x69, 0x42, 0xd3, 0xca, 0x55, 0xfe, + 0x07, 0x3e, 0xd3, 0xb6, 0x3f, 0xf0, 0x69, 0x54, 0xd8, 0x96, 0x0f, 0xd8, 0x82, 0x64, 0xed, 0xb3, + 0xc7, 0x5b, 0x7d, 0x58, 0xff, 0xf4, 0xcf, 0x5f, 0x5c, 0x1a, 0xfa, 0xcb, 0x17, 0x97, 0x86, 0xfe, + 0xfe, 0xc5, 0xa5, 0xa1, 0x0f, 0x1a, 0xed, 0x90, 0xff, 0xcd, 0x1d, 0xdb, 0x7f, 0x2e, 0xc6, 0x30, + 0x1f, 0xfa, 0xf8, 0x00, 0xd3, 0xf6, 0x7c, 0x07, 0x7b, 0x11, 0x74, 0x0e, 0x12, 0xb8, 0x1e, 0xc6, + 0x6d, 0x9c, 0xc2, 0xf5, 0x43, 0x08, 0xaf, 0xc7, 0x1e, 0x84, 0xc7, 0x78, 0x9e, 0x1c, 0xb5, 0xe7, + 0x0f, 0x21, 0x9c, 0xf7, 0x02, 0x8f, 0x00, 0xa6, 0xe9, 0xbc, 0xf0, 0x7d, 0x3e, 0xf5, 0x3b, 0xb8, + 0xeb, 0xfd, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x0c, 0xb3, 0xec, 0x42, 0x2b, 0x00, 0x00, +} + +func (m *JunosNetworkStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Uplanes != nil { + { + size, err := m.Uplanes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Uplane) > 0 { + for iNdEx := len(m.Uplane) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Uplane[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Infra != nil { + { + size, err := m.Infra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.UplaneId != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.UplaneId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Network != nil { + { + size, err := m.Network.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Hag != nil { + { + size, err := m.Hag.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Dvlan != nil { + { + size, err := m.Dvlan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.L2Tp != nil { + { + size, err := m.L2Tp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Pppoe != nil { + { + size, err := m.Pppoe.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Ppp != nil { + { + size, err := m.Ppp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Dhcp != nil { + { + size, err := m.Dhcp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Io != nil { + { + size, err := m.Io.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L3TxV6KernelForwardDrops != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3TxV6KernelForwardDrops)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.L3TxV6KernelForward != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3TxV6KernelForward)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.L3TxV4KernelForwardDrops != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3TxV4KernelForwardDrops)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.L3TxV4KernelForward != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3TxV4KernelForward)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.L3TxSendFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3TxSendFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.L3TxPacketCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3TxPacketCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.L3RxUnsupportedProtocol != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3RxUnsupportedProtocol)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.L3RxPacketCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L3RxPacketCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.L2TxV6OutErrorLocalIntf != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2TxV6OutErrorLocalIntf)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.L2TxV4OutErrorLocalIntf != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2TxV4OutErrorLocalIntf)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.L2BbeIoSendTxFailedPartial != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2BbeIoSendTxFailedPartial)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.L2BbeIoSendTxFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2BbeIoSendTxFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.L2TxIflInvalid != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2TxIflInvalid)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.L2TxNoIfdCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2TxNoIfdCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.L2TxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2TxMalformedCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.L2TxPacketsCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2TxPacketsCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.L2RxV6DataPathPuntPktDrop != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxV6DataPathPuntPktDrop)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.L2RxV6DataPathPuntPkt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxV6DataPathPuntPkt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.L2RxV4DataPathPuntPktDrop != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxV4DataPathPuntPktDrop)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.L2RxV4DataPathPuntPkt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxV4DataPathPuntPkt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.L2RxUnsupportedPuntAf != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxUnsupportedPuntAf)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.L2RxUnsupportedUdpProtocol != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxUnsupportedUdpProtocol)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.L2RxUnsupportedInet6Protocol != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxUnsupportedInet6Protocol)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.L2RxUnsupportedInetProtocol != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxUnsupportedInetProtocol)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.L2BbeIoRcvL3UnknownAddressFamily != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2BbeIoRcvL3UnknownAddressFamily)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.L2RxIfCreateFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxIfCreateFailed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.L2RxNoIffCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxNoIffCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.L2RxIflInvalid != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxIflInvalid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.L2RxIfdInvalid != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxIfdInvalid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.L2RxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxMalformedCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.L2RxPacketsFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxPacketsFailed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.L2RxPacketsCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.L2RxPacketsCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RxWhileNotConnected != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxWhileNotConnected)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.TxSendFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSendFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.TxIfInvalid != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIfInvalid)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.TxArpFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxArpFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.TxNoRttCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNoRttCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.TxNoIffCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNoIffCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.TxNoIfCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNoIfCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.TxNullPkt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNullPkt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.TxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxMalformedCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.PacketsTransmitted != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PacketsTransmitted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.TxPacketCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPacketCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.RxSendFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxSendFailed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.RxIflInvalid != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIflInvalid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.RxNoIfCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNoIfCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.RxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMalformedCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RxNoConnection != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNoConnection)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.EraDrops != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.EraDrops)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RxPacketCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPacketCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxMalformedCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 + } + if m.TxSendFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSendFailed)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 + } + if m.TxUnknownPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxUnknownPktCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 + } + if m.TxIpv6CpNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIpv6CpNackCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 + } + if m.TxIpv6CpAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIpv6CpAckCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if m.TxIpv6CpReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIpv6CpReqCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa0 + } + if m.TxIpcpNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIpcpNackCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x98 + } + if m.TxIpcpAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIpcpAckCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x90 + } + if m.TxIpcpReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxIpcpReqCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x88 + } + if m.TxChapFailureCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxChapFailureCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x80 + } + if m.TxChapSuccessCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxChapSuccessCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf8 + } + if m.TxChapRespCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxChapRespCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.TxChapChallengeCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxChapChallengeCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.TxPapNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPapNackCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.TxPapAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPapAckCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.TxPapReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPapReqCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.TxLcpTermAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpTermAckCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.TxLcpTermReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpTermReqCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.TxLcpDiscardReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpDiscardReqCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.TxLcpEchoReplyCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpEchoReplyCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.TxLcpEchoReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpEchoReqCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.TxLcpConfRejCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpConfRejCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.TxLcpConfNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpConfNackCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.TxLcpConfAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpConfAckCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.TxLcpConfReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxLcpConfReqCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.TxCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxCnt)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.RxUnsupported != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxUnsupported)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.RxNoIfCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNoIfCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.RxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMalformedCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.RxIpv6CpNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIpv6CpNackCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.RxIpv6CpAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIpv6CpAckCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.RxIpv6CpReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIpv6CpReqCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.RxIpcpNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIpcpNackCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.RxIpcpAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIpcpAckCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.RxIpcpReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxIpcpReqCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.RxChapFailureCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxChapFailureCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.RxChapSuccessCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxChapSuccessCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.RxChapRespCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxChapRespCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.RxChapChallengeCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxChapChallengeCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.RxPapNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPapNackCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.RxPapAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPapAckCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.RxPapReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPapReqCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RxLcpDiscardReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpDiscardReqCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.RxLcpEchoReplyCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpEchoReplyCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.RxLcpEchoReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpEchoReqCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.RxLcpProtocolRejCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpProtocolRejCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.RxLcpCodeRejCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpCodeRejCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.RxLcpTermAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpTermAckCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.RxLcpTermReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpTermReqCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.RxLcpConfRejCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpConfRejCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.RxLcpConfNackCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpConfNackCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.RxLcpConfAckCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpConfAckCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RxLcpConfReqCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxLcpConfReqCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.RxPluginPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPluginPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RxNetworkPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNetworkPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TxSendFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSendFailed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.TxCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.RxPadiEraDiscards != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPadiEraDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.RxUnsupported != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxUnsupported)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.RxNoIfCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNoIfCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.RxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMalformedCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.RxPppCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPppCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RxPadrCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPadrCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.RxPadiCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPadiCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RxCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RxPacketCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPacketCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TxMsgErr != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxMsgErr)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa0 + } + if m.TxMsgCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxMsgCnt)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x98 + } + if m.TxPktErr != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPktErr)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x90 + } + if m.TxPktSendFailed != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPktSendFailed)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x88 + } + if m.PppTxUnknownProtocol != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxUnknownProtocol)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x80 + } + if m.PppTxIpcpConfNackCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxIpcpConfNackCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf8 + } + if m.PppTxIpcpConfAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxIpcpConfAckCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.PppTxIpcpConfReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxIpcpConfReqCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.PppTxChapFailCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxChapFailCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.PppTxChapSuccessCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxChapSuccessCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.PppTxChapRespCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxChapRespCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.PppTxChapChallengeCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxChapChallengeCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.PppTxPapNackCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxPapNackCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.PppTxPapAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxPapAckCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.PppTxPapReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxPapReqCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.PppTxLcpTermAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpTermAckCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.PppTxLcpTermReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpTermReqCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.PppTxLcpEchoRespCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpEchoRespCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.PppTxLcpEchoReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpEchoReqCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.PppTxLcpConfNackCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpConfNackCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.PppTxLcpConfAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpConfAckCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.PppTxLcpConfReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppTxLcpConfReqCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.TxCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.RxInvalidMsgCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxInvalidMsgCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.RxMsgErr != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMsgErr)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.RxMsgProcessdCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMsgProcessdCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.RxMsgCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMsgCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.PppRxUnknownProtocol != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxUnknownProtocol)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.RxMalformedCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMalformedCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.PppRxIpcpConfNackCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxIpcpConfNackCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.PppRxIpcpConfAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxIpcpConfAckCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.PppRxIpcpConfReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxIpcpConfReqCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.PppRxChapFailCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxChapFailCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.PppRxChapSuccessCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxChapSuccessCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.PppRxChapRespCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxChapRespCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.PppRxChapChallengeCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxChapChallengeCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.PppRxPapNackCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxPapNackCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.PppRxPapAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxPapAckCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.PppRxPapReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxPapReqCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.PppRxLcpEchoRespCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpEchoRespCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.PppRxLcpEchoReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpEchoReqCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.PppRxLcpTermAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpTermAckCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.PppRxLcpTermReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpTermReqCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.PppRxLcpConfNackCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpConfNackCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.PppRxLcpConfAckCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpConfAckCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.PppRxLcpConfReqCount != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxLcpConfReqCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TxPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.PppRxPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.PppRxPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.RxPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RxCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FailedHagSessionsCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.FailedHagSessionsCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.SuccessfulHagSessionsCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.SuccessfulHagSessionsCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.InflightHagSessionsCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.InflightHagSessionsCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.TxNotifyPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNotifyPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.TxTearDownPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxTearDownPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.TxHelloPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxHelloPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.TxSetupDenyPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSetupDenyPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.TxSetupAcceptPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSetupAcceptPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.TxSetupRequestPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSetupRequestPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.TxSendFailedPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSendFailedPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.TxSendSucceededPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxSendSucceededPktCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.TxNoIfPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNoIfPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.TxNullPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNullPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.TxNetworkPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.TxNetworkPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.RxNotifyPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNotifyPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.RxTearDownPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxTearDownPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.RxHelloPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxHelloPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.RxSetupRequestCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxSetupRequestCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.RxUnsupportedPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxUnsupportedPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.RxSendFailedPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxSendFailedPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.RxSendSucceededPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxSendSucceededPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RxNoIfPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNoIfPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.RxMalformedPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxMalformedPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RxNetworkPktCnt != nil { + i = encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA, i, uint64(*m.RxNetworkPktCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeSmgdSubMgmtNetworkStatsOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeSmgdSubMgmtNetworkStatsOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosNetworkStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Uplanes != nil { + l = m.Uplanes.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Uplane) > 0 { + for _, e := range m.Uplane { + l = e.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UplaneId != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.UplaneId)) + } + if m.Infra != nil { + l = m.Infra.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Network != nil { + l = m.Network.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Io != nil { + l = m.Io.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.Dhcp != nil { + l = m.Dhcp.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.Ppp != nil { + l = m.Ppp.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.Pppoe != nil { + l = m.Pppoe.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.L2Tp != nil { + l = m.L2Tp.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.Dvlan != nil { + l = m.Dvlan.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.Hag != nil { + l = m.Hag.Size() + n += 2 + l + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.L2RxPacketsCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxPacketsCnt)) + } + if m.L2RxPacketsFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxPacketsFailed)) + } + if m.L2RxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxMalformedCnt)) + } + if m.L2RxIfdInvalid != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxIfdInvalid)) + } + if m.L2RxIflInvalid != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxIflInvalid)) + } + if m.L2RxNoIffCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxNoIffCnt)) + } + if m.L2RxIfCreateFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxIfCreateFailed)) + } + if m.L2BbeIoRcvL3UnknownAddressFamily != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2BbeIoRcvL3UnknownAddressFamily)) + } + if m.L2RxUnsupportedInetProtocol != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxUnsupportedInetProtocol)) + } + if m.L2RxUnsupportedInet6Protocol != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxUnsupportedInet6Protocol)) + } + if m.L2RxUnsupportedUdpProtocol != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxUnsupportedUdpProtocol)) + } + if m.L2RxUnsupportedPuntAf != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxUnsupportedPuntAf)) + } + if m.L2RxV4DataPathPuntPkt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxV4DataPathPuntPkt)) + } + if m.L2RxV4DataPathPuntPktDrop != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxV4DataPathPuntPktDrop)) + } + if m.L2RxV6DataPathPuntPkt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxV6DataPathPuntPkt)) + } + if m.L2RxV6DataPathPuntPktDrop != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2RxV6DataPathPuntPktDrop)) + } + if m.L2TxPacketsCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2TxPacketsCnt)) + } + if m.L2TxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2TxMalformedCnt)) + } + if m.L2TxNoIfdCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2TxNoIfdCnt)) + } + if m.L2TxIflInvalid != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2TxIflInvalid)) + } + if m.L2BbeIoSendTxFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2BbeIoSendTxFailed)) + } + if m.L2BbeIoSendTxFailedPartial != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2BbeIoSendTxFailedPartial)) + } + if m.L2TxV4OutErrorLocalIntf != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2TxV4OutErrorLocalIntf)) + } + if m.L2TxV6OutErrorLocalIntf != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L2TxV6OutErrorLocalIntf)) + } + if m.L3RxPacketCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3RxPacketCnt)) + } + if m.L3RxUnsupportedProtocol != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3RxUnsupportedProtocol)) + } + if m.L3TxPacketCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3TxPacketCnt)) + } + if m.L3TxSendFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3TxSendFailed)) + } + if m.L3TxV4KernelForward != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3TxV4KernelForward)) + } + if m.L3TxV4KernelForwardDrops != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3TxV4KernelForwardDrops)) + } + if m.L3TxV6KernelForward != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3TxV6KernelForward)) + } + if m.L3TxV6KernelForwardDrops != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.L3TxV6KernelForwardDrops)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RxPacketCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPacketCnt)) + } + if m.EraDrops != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.EraDrops)) + } + if m.RxNoConnection != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNoConnection)) + } + if m.RxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMalformedCnt)) + } + if m.RxNoIfCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNoIfCnt)) + } + if m.RxIflInvalid != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIflInvalid)) + } + if m.RxSendFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxSendFailed)) + } + if m.TxPacketCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPacketCnt)) + } + if m.PacketsTransmitted != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PacketsTransmitted)) + } + if m.TxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxMalformedCnt)) + } + if m.TxNullPkt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNullPkt)) + } + if m.TxNoIfCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNoIfCnt)) + } + if m.TxNoIffCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNoIffCnt)) + } + if m.TxNoRttCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNoRttCnt)) + } + if m.TxArpFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxArpFailed)) + } + if m.TxIfInvalid != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIfInvalid)) + } + if m.TxSendFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSendFailed)) + } + if m.RxWhileNotConnected != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxWhileNotConnected)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RxNetworkPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNetworkPktCnt)) + } + if m.RxPluginPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPluginPktCnt)) + } + if m.RxLcpConfReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpConfReqCnt)) + } + if m.RxLcpConfAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpConfAckCnt)) + } + if m.RxLcpConfNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpConfNackCnt)) + } + if m.RxLcpConfRejCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpConfRejCnt)) + } + if m.RxLcpTermReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpTermReqCnt)) + } + if m.RxLcpTermAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpTermAckCnt)) + } + if m.RxLcpCodeRejCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpCodeRejCnt)) + } + if m.RxLcpProtocolRejCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpProtocolRejCnt)) + } + if m.RxLcpEchoReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpEchoReqCnt)) + } + if m.RxLcpEchoReplyCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpEchoReplyCnt)) + } + if m.RxLcpDiscardReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxLcpDiscardReqCnt)) + } + if m.RxPapReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPapReqCnt)) + } + if m.RxPapAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPapAckCnt)) + } + if m.RxPapNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPapNackCnt)) + } + if m.RxChapChallengeCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxChapChallengeCnt)) + } + if m.RxChapRespCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxChapRespCnt)) + } + if m.RxChapSuccessCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxChapSuccessCnt)) + } + if m.RxChapFailureCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxChapFailureCnt)) + } + if m.RxIpcpReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIpcpReqCnt)) + } + if m.RxIpcpAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIpcpAckCnt)) + } + if m.RxIpcpNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIpcpNackCnt)) + } + if m.RxIpv6CpReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIpv6CpReqCnt)) + } + if m.RxIpv6CpAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIpv6CpAckCnt)) + } + if m.RxIpv6CpNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxIpv6CpNackCnt)) + } + if m.RxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMalformedCnt)) + } + if m.RxNoIfCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNoIfCnt)) + } + if m.RxUnsupported != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxUnsupported)) + } + if m.TxCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxCnt)) + } + if m.TxLcpConfReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpConfReqCnt)) + } + if m.TxLcpConfAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpConfAckCnt)) + } + if m.TxLcpConfNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpConfNackCnt)) + } + if m.TxLcpConfRejCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpConfRejCnt)) + } + if m.TxLcpEchoReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpEchoReqCnt)) + } + if m.TxLcpEchoReplyCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpEchoReplyCnt)) + } + if m.TxLcpDiscardReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpDiscardReqCnt)) + } + if m.TxLcpTermReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpTermReqCnt)) + } + if m.TxLcpTermAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxLcpTermAckCnt)) + } + if m.TxPapReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPapReqCnt)) + } + if m.TxPapAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPapAckCnt)) + } + if m.TxPapNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPapNackCnt)) + } + if m.TxChapChallengeCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxChapChallengeCnt)) + } + if m.TxChapRespCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxChapRespCnt)) + } + if m.TxChapSuccessCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxChapSuccessCnt)) + } + if m.TxChapFailureCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxChapFailureCnt)) + } + if m.TxIpcpReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIpcpReqCnt)) + } + if m.TxIpcpAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIpcpAckCnt)) + } + if m.TxIpcpNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIpcpNackCnt)) + } + if m.TxIpv6CpReqCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIpv6CpReqCnt)) + } + if m.TxIpv6CpAckCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIpv6CpAckCnt)) + } + if m.TxIpv6CpNackCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxIpv6CpNackCnt)) + } + if m.TxUnknownPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxUnknownPktCnt)) + } + if m.TxSendFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSendFailed)) + } + if m.TxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxMalformedCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RxCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxCnt)) + } + if m.RxPadiCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPadiCnt)) + } + if m.RxPadrCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPadrCnt)) + } + if m.RxPppCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPppCnt)) + } + if m.RxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMalformedCnt)) + } + if m.RxNoIfCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNoIfCnt)) + } + if m.RxUnsupported != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxUnsupported)) + } + if m.RxPadiEraDiscards != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPadiEraDiscards)) + } + if m.TxCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxCnt)) + } + if m.TxSendFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSendFailed)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RxPacketCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPacketCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RxCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxCnt)) + } + if m.RxPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxPktCnt)) + } + if m.PppRxPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxPktCnt)) + } + if m.TxPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPktCnt)) + } + if m.PppRxLcpConfReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpConfReqCount)) + } + if m.PppRxLcpConfAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpConfAckCount)) + } + if m.PppRxLcpConfNackCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpConfNackCount)) + } + if m.PppRxLcpTermReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpTermReqCount)) + } + if m.PppRxLcpTermAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpTermAckCount)) + } + if m.PppRxLcpEchoReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpEchoReqCount)) + } + if m.PppRxLcpEchoRespCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxLcpEchoRespCount)) + } + if m.PppRxPapReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxPapReqCount)) + } + if m.PppRxPapAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxPapAckCount)) + } + if m.PppRxPapNackCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxPapNackCount)) + } + if m.PppRxChapChallengeCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxChapChallengeCount)) + } + if m.PppRxChapRespCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxChapRespCount)) + } + if m.PppRxChapSuccessCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxChapSuccessCount)) + } + if m.PppRxChapFailCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxChapFailCount)) + } + if m.PppRxIpcpConfReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxIpcpConfReqCount)) + } + if m.PppRxIpcpConfAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxIpcpConfAckCount)) + } + if m.PppRxIpcpConfNackCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxIpcpConfNackCount)) + } + if m.RxMalformedCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMalformedCnt)) + } + if m.PppRxUnknownProtocol != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppRxUnknownProtocol)) + } + if m.RxMsgCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMsgCnt)) + } + if m.RxMsgProcessdCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMsgProcessdCnt)) + } + if m.RxMsgErr != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMsgErr)) + } + if m.RxInvalidMsgCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxInvalidMsgCnt)) + } + if m.TxCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxCnt)) + } + if m.PppTxLcpConfReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpConfReqCount)) + } + if m.PppTxLcpConfAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpConfAckCount)) + } + if m.PppTxLcpConfNackCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpConfNackCount)) + } + if m.PppTxLcpEchoReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpEchoReqCount)) + } + if m.PppTxLcpEchoRespCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpEchoRespCount)) + } + if m.PppTxLcpTermReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpTermReqCount)) + } + if m.PppTxLcpTermAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxLcpTermAckCount)) + } + if m.PppTxPapReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxPapReqCount)) + } + if m.PppTxPapAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxPapAckCount)) + } + if m.PppTxPapNackCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxPapNackCount)) + } + if m.PppTxChapChallengeCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxChapChallengeCount)) + } + if m.PppTxChapRespCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxChapRespCount)) + } + if m.PppTxChapSuccessCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxChapSuccessCount)) + } + if m.PppTxChapFailCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxChapFailCount)) + } + if m.PppTxIpcpConfReqCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxIpcpConfReqCount)) + } + if m.PppTxIpcpConfAckCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxIpcpConfAckCount)) + } + if m.PppTxIpcpConfNackCount != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxIpcpConfNackCount)) + } + if m.PppTxUnknownProtocol != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.PppTxUnknownProtocol)) + } + if m.TxPktSendFailed != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPktSendFailed)) + } + if m.TxPktErr != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxPktErr)) + } + if m.TxMsgCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxMsgCnt)) + } + if m.TxMsgErr != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxMsgErr)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RxNetworkPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNetworkPktCnt)) + } + if m.RxMalformedPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxMalformedPktCnt)) + } + if m.RxNoIfPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNoIfPktCnt)) + } + if m.RxSendSucceededPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxSendSucceededPktCnt)) + } + if m.RxSendFailedPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxSendFailedPktCnt)) + } + if m.RxUnsupportedPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxUnsupportedPktCnt)) + } + if m.RxSetupRequestCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxSetupRequestCnt)) + } + if m.RxHelloPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxHelloPktCnt)) + } + if m.RxTearDownPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxTearDownPktCnt)) + } + if m.RxNotifyPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.RxNotifyPktCnt)) + } + if m.TxNetworkPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNetworkPktCnt)) + } + if m.TxNullPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNullPktCnt)) + } + if m.TxNoIfPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNoIfPktCnt)) + } + if m.TxSendSucceededPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSendSucceededPktCnt)) + } + if m.TxSendFailedPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSendFailedPktCnt)) + } + if m.TxSetupRequestPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSetupRequestPktCnt)) + } + if m.TxSetupAcceptPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSetupAcceptPktCnt)) + } + if m.TxSetupDenyPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxSetupDenyPktCnt)) + } + if m.TxHelloPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxHelloPktCnt)) + } + if m.TxTearDownPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxTearDownPktCnt)) + } + if m.TxNotifyPktCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.TxNotifyPktCnt)) + } + if m.InflightHagSessionsCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.InflightHagSessionsCnt)) + } + if m.SuccessfulHagSessionsCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.SuccessfulHagSessionsCnt)) + } + if m.FailedHagSessionsCnt != nil { + n += 2 + sovBbeSmgdSubMgmtNetworkStatsOc(uint64(*m.FailedHagSessionsCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeSmgdSubMgmtNetworkStatsOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeSmgdSubMgmtNetworkStatsOc(x uint64) (n int) { + return sovBbeSmgdSubMgmtNetworkStatsOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosNetworkStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_network_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_network_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosNetworkStatsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosNetworkStatsSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uplanes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Uplanes == nil { + m.Uplanes = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType{} + } + if err := m.Uplanes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: uplanes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: uplanes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uplane", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uplane = append(m.Uplane, &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList{}) + if err := m.Uplane[len(m.Uplane)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: uplane_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: uplane_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UplaneId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UplaneId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Infra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Infra == nil { + m.Infra = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType{} + } + if err := m.Infra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Network == nil { + m.Network = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType{} + } + if err := m.Network.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Io", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Io == nil { + m.Io = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType{} + } + if err := m.Io.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dhcp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Dhcp == nil { + m.Dhcp = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType{} + } + if err := m.Dhcp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ppp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ppp == nil { + m.Ppp = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType{} + } + if err := m.Ppp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pppoe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pppoe == nil { + m.Pppoe = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType{} + } + if err := m.Pppoe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2Tp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2Tp == nil { + m.L2Tp = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType{} + } + if err := m.L2Tp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dvlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Dvlan == nil { + m.Dvlan = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType{} + } + if err := m.Dvlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hag", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hag == nil { + m.Hag = &JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType{} + } + if err := m.Hag.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeIoType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: io_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: io_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxPacketsCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxPacketsCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxPacketsFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxPacketsFailed = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxMalformedCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxIfdInvalid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxIfdInvalid = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxIflInvalid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxIflInvalid = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxNoIffCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxNoIffCnt = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxIfCreateFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxIfCreateFailed = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2BbeIoRcvL3UnknownAddressFamily", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2BbeIoRcvL3UnknownAddressFamily = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxUnsupportedInetProtocol", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxUnsupportedInetProtocol = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxUnsupportedInet6Protocol", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxUnsupportedInet6Protocol = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxUnsupportedUdpProtocol", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxUnsupportedUdpProtocol = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxUnsupportedPuntAf", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxUnsupportedPuntAf = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxV4DataPathPuntPkt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxV4DataPathPuntPkt = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxV4DataPathPuntPktDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxV4DataPathPuntPktDrop = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxV6DataPathPuntPkt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxV6DataPathPuntPkt = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2RxV6DataPathPuntPktDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2RxV6DataPathPuntPktDrop = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TxPacketsCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TxPacketsCnt = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TxMalformedCnt = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TxNoIfdCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TxNoIfdCnt = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TxIflInvalid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TxIflInvalid = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2BbeIoSendTxFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2BbeIoSendTxFailed = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2BbeIoSendTxFailedPartial", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2BbeIoSendTxFailedPartial = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TxV4OutErrorLocalIntf", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TxV4OutErrorLocalIntf = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TxV6OutErrorLocalIntf", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TxV6OutErrorLocalIntf = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3RxPacketCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3RxPacketCnt = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3RxUnsupportedProtocol", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3RxUnsupportedProtocol = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3TxPacketCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3TxPacketCnt = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3TxSendFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3TxSendFailed = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3TxV4KernelForward", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3TxV4KernelForward = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3TxV4KernelForwardDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3TxV4KernelForwardDrops = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3TxV6KernelForward", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3TxV6KernelForward = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L3TxV6KernelForwardDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L3TxV6KernelForwardDrops = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDhcpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dhcp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dhcp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPacketCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPacketCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraDrops = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNoConnection", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNoConnection = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMalformedCnt = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNoIfCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNoIfCnt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIflInvalid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIflInvalid = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxSendFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxSendFailed = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPacketCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPacketCnt = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketsTransmitted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketsTransmitted = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxMalformedCnt = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNullPkt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNullPkt = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNoIfCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNoIfCnt = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNoIffCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNoIffCnt = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNoRttCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNoRttCnt = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxArpFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxArpFailed = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIfInvalid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIfInvalid = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSendFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSendFailed = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxWhileNotConnected", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxWhileNotConnected = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ppp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ppp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNetworkPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNetworkPktCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPluginPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPluginPktCnt = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpConfReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpConfReqCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpConfAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpConfAckCnt = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpConfNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpConfNackCnt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpConfRejCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpConfRejCnt = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpTermReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpTermReqCnt = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpTermAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpTermAckCnt = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpCodeRejCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpCodeRejCnt = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpProtocolRejCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpProtocolRejCnt = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpEchoReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpEchoReqCnt = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpEchoReplyCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpEchoReplyCnt = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxLcpDiscardReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxLcpDiscardReqCnt = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPapReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPapReqCnt = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPapAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPapAckCnt = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPapNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPapNackCnt = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxChapChallengeCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxChapChallengeCnt = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxChapRespCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxChapRespCnt = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxChapSuccessCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxChapSuccessCnt = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxChapFailureCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxChapFailureCnt = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIpcpReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIpcpReqCnt = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIpcpAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIpcpAckCnt = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIpcpNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIpcpNackCnt = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIpv6CpReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIpv6CpReqCnt = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIpv6CpAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIpv6CpAckCnt = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxIpv6CpNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxIpv6CpNackCnt = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMalformedCnt = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNoIfCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNoIfCnt = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxUnsupported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxUnsupported = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxCnt = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpConfReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpConfReqCnt = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpConfAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpConfAckCnt = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpConfNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpConfNackCnt = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpConfRejCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpConfRejCnt = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpEchoReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpEchoReqCnt = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpEchoReplyCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpEchoReplyCnt = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpDiscardReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpDiscardReqCnt = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpTermReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpTermReqCnt = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLcpTermAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxLcpTermAckCnt = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPapReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPapReqCnt = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPapAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPapAckCnt = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPapNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPapNackCnt = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxChapChallengeCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxChapChallengeCnt = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxChapRespCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxChapRespCnt = &v + case 95: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxChapSuccessCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxChapSuccessCnt = &v + case 96: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxChapFailureCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxChapFailureCnt = &v + case 97: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIpcpReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIpcpReqCnt = &v + case 98: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIpcpAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIpcpAckCnt = &v + case 99: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIpcpNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIpcpNackCnt = &v + case 100: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIpv6CpReqCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIpv6CpReqCnt = &v + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIpv6CpAckCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIpv6CpAckCnt = &v + case 102: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxIpv6CpNackCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxIpv6CpNackCnt = &v + case 103: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxUnknownPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxUnknownPktCnt = &v + case 104: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSendFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSendFailed = &v + case 105: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxMalformedCnt = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypePppoeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pppoe_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pppoe_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPadiCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPadiCnt = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPadrCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPadrCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPppCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPppCnt = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMalformedCnt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNoIfCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNoIfCnt = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxUnsupported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxUnsupported = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPadiEraDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPadiEraDiscards = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxCnt = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSendFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSendFailed = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeDvlanType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dvlan_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dvlan_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPacketCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPacketCnt = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeL2TpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2tp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2tp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxPktCnt = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxPktCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPktCnt = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpConfReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpConfReqCount = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpConfAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpConfAckCount = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpConfNackCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpConfNackCount = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpTermReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpTermReqCount = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpTermAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpTermAckCount = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpEchoReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpEchoReqCount = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxLcpEchoRespCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxLcpEchoRespCount = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxPapReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxPapReqCount = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxPapAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxPapAckCount = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxPapNackCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxPapNackCount = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxChapChallengeCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxChapChallengeCount = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxChapRespCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxChapRespCount = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxChapSuccessCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxChapSuccessCount = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxChapFailCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxChapFailCount = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxIpcpConfReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxIpcpConfReqCount = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxIpcpConfAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxIpcpConfAckCount = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxIpcpConfNackCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxIpcpConfNackCount = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMalformedCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMalformedCnt = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppRxUnknownProtocol", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppRxUnknownProtocol = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMsgCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMsgCnt = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMsgProcessdCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMsgProcessdCnt = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMsgErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMsgErr = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxInvalidMsgCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxInvalidMsgCnt = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxCnt = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpConfReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpConfReqCount = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpConfAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpConfAckCount = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpConfNackCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpConfNackCount = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpEchoReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpEchoReqCount = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpEchoRespCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpEchoRespCount = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpTermReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpTermReqCount = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxLcpTermAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxLcpTermAckCount = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxPapReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxPapReqCount = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxPapAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxPapAckCount = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxPapNackCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxPapNackCount = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxChapChallengeCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxChapChallengeCount = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxChapRespCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxChapRespCount = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxChapSuccessCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxChapSuccessCount = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxChapFailCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxChapFailCount = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxIpcpConfReqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxIpcpConfReqCount = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxIpcpConfAckCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxIpcpConfAckCount = &v + case 95: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxIpcpConfNackCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxIpcpConfNackCount = &v + case 96: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppTxUnknownProtocol", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppTxUnknownProtocol = &v + case 97: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPktSendFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPktSendFailed = &v + case 98: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxPktErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxPktErr = &v + case 99: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxMsgCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxMsgCnt = &v + case 100: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxMsgErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxMsgErr = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosNetworkStatsSystemTypeSubscriberManagementTypeUplanesTypeUplaneListInfraTypeNetworkTypeHagType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hag_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hag_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNetworkPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNetworkPktCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxMalformedPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxMalformedPktCnt = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNoIfPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNoIfPktCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxSendSucceededPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxSendSucceededPktCnt = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxSendFailedPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxSendFailedPktCnt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxUnsupportedPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxUnsupportedPktCnt = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxSetupRequestCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxSetupRequestCnt = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxHelloPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxHelloPktCnt = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxTearDownPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxTearDownPktCnt = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RxNotifyPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RxNotifyPktCnt = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNetworkPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNetworkPktCnt = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNullPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNullPktCnt = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNoIfPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNoIfPktCnt = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSendSucceededPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSendSucceededPktCnt = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSendFailedPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSendFailedPktCnt = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSetupRequestPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSetupRequestPktCnt = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSetupAcceptPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSetupAcceptPktCnt = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxSetupDenyPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxSetupDenyPktCnt = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxHelloPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxHelloPktCnt = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxTearDownPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxTearDownPktCnt = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxNotifyPktCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TxNotifyPktCnt = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InflightHagSessionsCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InflightHagSessionsCnt = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulHagSessionsCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SuccessfulHagSessionsCnt = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedHagSessionsCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FailedHagSessionsCnt = &v + default: + iNdEx = preIndex + skippy, err := skipBbeSmgdSubMgmtNetworkStatsOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeSmgdSubMgmtNetworkStatsOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeSmgdSubMgmtNetworkStatsOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeSmgdSubMgmtNetworkStatsOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeSmgdSubMgmtNetworkStatsOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeSmgdSubMgmtNetworkStatsOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-smgd_sub_mgmt_network_stats_oc.proto b/schema/bbe-smgd_sub_mgmt_network_stats_oc.proto new file mode 100755 index 0000000..fd1346b --- /dev/null +++ b/schema/bbe-smgd_sub_mgmt_network_stats_oc.proto @@ -0,0 +1,240 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_network_stats jnpr_junos_network_stats_ext = 39; +} + +message junos_network_stats { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional uplanes_type uplanes = 151; + message uplanes_type { + message uplane_list { + optional uint32 uplane_id = 51 [(telemetry_options).is_key = true]; + optional infra_type infra = 151; + message infra_type { + optional network_type network = 151; + message network_type { + optional io_type io = 151; + message io_type { + optional uint64 l2_rx_packets_cnt = 51; + optional uint64 l2_rx_packets_failed = 52; + optional uint64 l2_rx_malformed_cnt = 53; + optional uint64 l2_rx_ifd_invalid = 54; + optional uint64 l2_rx_ifl_invalid = 55; + optional uint64 l2_rx_no_iff_cnt = 56; + optional uint64 l2_rx_if_create_failed = 57; + optional uint64 l2_bbe_io_rcv_l3_unknown_address_family = 58; + optional uint64 l2_rx_unsupported_inet_protocol = 59; + optional uint64 l2_rx_unsupported_inet6_protocol = 60; + optional uint64 l2_rx_unsupported_udp_protocol = 61; + optional uint64 l2_rx_unsupported_punt_af = 62; + optional uint64 l2_rx_v4_data_path_punt_pkt = 63; + optional uint64 l2_rx_v4_data_path_punt_pkt_drop = 64; + optional uint64 l2_rx_v6_data_path_punt_pkt = 65; + optional uint64 l2_rx_v6_data_path_punt_pkt_drop = 66; + optional uint64 l2_tx_packets_cnt = 67; + optional uint64 l2_tx_malformed_cnt = 68; + optional uint64 l2_tx_no_ifd_cnt = 69; + optional uint64 l2_tx_ifl_invalid = 70; + optional uint64 l2_bbe_io_send_tx_failed = 71; + optional uint64 l2_bbe_io_send_tx_failed_partial = 72; + optional uint64 l2_tx_v4_out_error_local_intf = 73; + optional uint64 l2_tx_v6_out_error_local_intf = 74; + optional uint64 l3_rx_packet_cnt = 75; + optional uint64 l3_rx_unsupported_protocol = 76; + optional uint64 l3_tx_packet_cnt = 77; + optional uint64 l3_tx_send_failed = 78; + optional uint64 l3_tx_v4_kernel_forward = 79; + optional uint64 l3_tx_v4_kernel_forward_drops = 80; + optional uint64 l3_tx_v6_kernel_forward = 81; + optional uint64 l3_tx_v6_kernel_forward_drops = 82; + } + optional dhcp_type dhcp = 152; + message dhcp_type { + optional uint64 rx_packet_cnt = 51; + optional uint64 era_drops = 52; + optional uint64 rx_no_connection = 53; + optional uint64 rx_malformed_cnt = 54; + optional uint64 rx_no_if_cnt = 55; + optional uint64 rx_ifl_invalid = 56; + optional uint64 rx_send_failed = 57; + optional uint64 tx_packet_cnt = 58; + optional uint64 packets_transmitted = 59; + optional uint64 tx_malformed_cnt = 60; + optional uint64 tx_null_pkt = 61; + optional uint64 tx_no_if_cnt = 62; + optional uint64 tx_no_iff_cnt = 63; + optional uint64 tx_no_rtt_cnt = 64; + optional uint64 tx_arp_failed = 65; + optional uint64 tx_if_invalid = 66; + optional uint64 tx_send_failed = 67; + optional uint64 rx_while_not_connected = 68; + } + optional ppp_type ppp = 153; + message ppp_type { + optional uint64 rx_network_pkt_cnt = 51; + optional uint64 rx_plugin_pkt_cnt = 52; + optional uint64 rx_lcp_conf_req_cnt = 53; + optional uint64 rx_lcp_conf_ack_cnt = 54; + optional uint64 rx_lcp_conf_nack_cnt = 55; + optional uint64 rx_lcp_conf_rej_cnt = 56; + optional uint64 rx_lcp_term_req_cnt = 57; + optional uint64 rx_lcp_term_ack_cnt = 58; + optional uint64 rx_lcp_code_rej_cnt = 59; + optional uint64 rx_lcp_protocol_rej_cnt = 60; + optional uint64 rx_lcp_echo_req_cnt = 61; + optional uint64 rx_lcp_echo_reply_cnt = 62; + optional uint64 rx_lcp_discard_req_cnt = 63; + optional uint64 rx_pap_req_cnt = 64; + optional uint64 rx_pap_ack_cnt = 65; + optional uint64 rx_pap_nack_cnt = 66; + optional uint64 rx_chap_challenge_cnt = 67; + optional uint64 rx_chap_resp_cnt = 68; + optional uint64 rx_chap_success_cnt = 69; + optional uint64 rx_chap_failure_cnt = 70; + optional uint64 rx_ipcp_req_cnt = 71; + optional uint64 rx_ipcp_ack_cnt = 72; + optional uint64 rx_ipcp_nack_cnt = 73; + optional uint64 rx_ipv6cp_req_cnt = 74; + optional uint64 rx_ipv6cp_ack_cnt = 75; + optional uint64 rx_ipv6cp_nack_cnt = 76; + optional uint64 rx_malformed_cnt = 77; + optional uint64 rx_no_if_cnt = 78; + optional uint64 rx_unsupported = 79; + optional uint64 tx_cnt = 80; + optional uint64 tx_lcp_conf_req_cnt = 81; + optional uint64 tx_lcp_conf_ack_cnt = 82; + optional uint64 tx_lcp_conf_nack_cnt = 83; + optional uint64 tx_lcp_conf_rej_cnt = 84; + optional uint64 tx_lcp_echo_req_cnt = 85; + optional uint64 tx_lcp_echo_reply_cnt = 86; + optional uint64 tx_lcp_discard_req_cnt = 87; + optional uint64 tx_lcp_term_req_cnt = 88; + optional uint64 tx_lcp_term_ack_cnt = 89; + optional uint64 tx_pap_req_cnt = 90; + optional uint64 tx_pap_ack_cnt = 91; + optional uint64 tx_pap_nack_cnt = 92; + optional uint64 tx_chap_challenge_cnt = 93; + optional uint64 tx_chap_resp_cnt = 94; + optional uint64 tx_chap_success_cnt = 95; + optional uint64 tx_chap_failure_cnt = 96; + optional uint64 tx_ipcp_req_cnt = 97; + optional uint64 tx_ipcp_ack_cnt = 98; + optional uint64 tx_ipcp_nack_cnt = 99; + optional uint64 tx_ipv6cp_req_cnt = 100; + optional uint64 tx_ipv6cp_ack_cnt = 101; + optional uint64 tx_ipv6cp_nack_cnt = 102; + optional uint64 tx_unknown_pkt_cnt = 103; + optional uint64 tx_send_failed = 104; + optional uint64 tx_malformed_cnt = 105; + } + optional pppoe_type pppoe = 154; + message pppoe_type { + optional uint64 rx_cnt = 51; + optional uint64 rx_padi_cnt = 52; + optional uint64 rx_padr_cnt = 53; + optional uint64 rx_ppp_cnt = 54; + optional uint64 rx_malformed_cnt = 55; + optional uint64 rx_no_if_cnt = 56; + optional uint64 rx_unsupported = 57; + optional uint64 rx_padi_era_discards = 58; + optional uint64 tx_cnt = 59; + optional uint64 tx_send_failed = 60; + } + optional dvlan_type dvlan = 156; + message dvlan_type { + optional uint64 rx_packet_cnt = 51; + } + optional l2tp_type l2tp = 155; + message l2tp_type { + optional uint64 rx_cnt = 51; + optional uint64 rx_pkt_cnt = 52; + optional uint64 ppp_rx_pkt_cnt = 53; + optional uint64 tx_pkt_cnt = 54; + optional uint64 ppp_rx_lcp_conf_req_count = 55; + optional uint64 ppp_rx_lcp_conf_ack_count = 56; + optional uint64 ppp_rx_lcp_conf_nack_count = 57; + optional uint64 ppp_rx_lcp_term_req_count = 58; + optional uint64 ppp_rx_lcp_term_ack_count = 59; + optional uint64 ppp_rx_lcp_echo_req_count = 60; + optional uint64 ppp_rx_lcp_echo_resp_count = 61; + optional uint64 ppp_rx_pap_req_count = 62; + optional uint64 ppp_rx_pap_ack_count = 63; + optional uint64 ppp_rx_pap_nack_count = 64; + optional uint64 ppp_rx_chap_challenge_count = 65; + optional uint64 ppp_rx_chap_resp_count = 66; + optional uint64 ppp_rx_chap_success_count = 67; + optional uint64 ppp_rx_chap_fail_count = 68; + optional uint64 ppp_rx_ipcp_conf_req_count = 69; + optional uint64 ppp_rx_ipcp_conf_ack_count = 70; + optional uint64 ppp_rx_ipcp_conf_nack_count = 71; + optional uint64 rx_malformed_cnt = 72; + optional uint64 ppp_rx_unknown_protocol = 73; + optional uint64 rx_msg_cnt = 74; + optional uint64 rx_msg_processd_cnt = 75; + optional uint64 rx_msg_err = 76; + optional uint64 rx_invalid_msg_cnt = 77; + optional uint64 tx_cnt = 78; + optional uint64 ppp_tx_lcp_conf_req_count = 79; + optional uint64 ppp_tx_lcp_conf_ack_count = 80; + optional uint64 ppp_tx_lcp_conf_nack_count = 81; + optional uint64 ppp_tx_lcp_echo_req_count = 82; + optional uint64 ppp_tx_lcp_echo_resp_count = 83; + optional uint64 ppp_tx_lcp_term_req_count = 84; + optional uint64 ppp_tx_lcp_term_ack_count = 85; + optional uint64 ppp_tx_pap_req_count = 86; + optional uint64 ppp_tx_pap_ack_count = 87; + optional uint64 ppp_tx_pap_nack_count = 88; + optional uint64 ppp_tx_chap_challenge_count = 89; + optional uint64 ppp_tx_chap_resp_count = 90; + optional uint64 ppp_tx_chap_success_count = 91; + optional uint64 ppp_tx_chap_fail_count = 92; + optional uint64 ppp_tx_ipcp_conf_req_count = 93; + optional uint64 ppp_tx_ipcp_conf_ack_count = 94; + optional uint64 ppp_tx_ipcp_conf_nack_count = 95; + optional uint64 ppp_tx_unknown_protocol = 96; + optional uint64 tx_pkt_send_failed = 97; + optional uint64 tx_pkt_err = 98; + optional uint64 tx_msg_cnt = 99; + optional uint64 tx_msg_err = 100; + } + optional hag_type hag = 157; + message hag_type { + optional uint64 rx_network_pkt_cnt = 51; + optional uint64 rx_malformed_pkt_cnt = 52; + optional uint64 rx_no_if_pkt_cnt = 53; + optional uint64 rx_send_succeeded_pkt_cnt = 54; + optional uint64 rx_send_failed_pkt_cnt = 55; + optional uint64 rx_unsupported_pkt_cnt = 56; + optional uint64 rx_setup_request_cnt = 57; + optional uint64 rx_hello_pkt_cnt = 58; + optional uint64 rx_tear_down_pkt_cnt = 59; + optional uint64 rx_notify_pkt_cnt = 60; + optional uint64 tx_network_pkt_cnt = 61; + optional uint64 tx_null_pkt_cnt = 62; + optional uint64 tx_no_if_pkt_cnt = 63; + optional uint64 tx_send_succeeded_pkt_cnt = 64; + optional uint64 tx_send_failed_pkt_cnt = 65; + optional uint64 tx_setup_request_pkt_cnt = 66; + optional uint64 tx_setup_accept_pkt_cnt = 67; + optional uint64 tx_setup_deny_pkt_cnt = 68; + optional uint64 tx_hello_pkt_cnt = 69; + optional uint64 tx_tear_down_pkt_cnt = 70; + optional uint64 tx_notify_pkt_cnt = 71; + optional uint64 inflight_hag_sessions_cnt = 72; + optional uint64 successful_hag_sessions_cnt = 73; + optional uint64 failed_hag_sessions_cnt = 74; + } + } + } + } + repeated uplane_list uplane = 151; + } + } + } +} diff --git a/schema/bbe-statsd-telemetry_oc.pb.go b/schema/bbe-statsd-telemetry_oc.pb.go new file mode 100644 index 0000000..719f36a --- /dev/null +++ b/schema/bbe-statsd-telemetry_oc.pb.go @@ -0,0 +1,8995 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: bbe-statsd-telemetry_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosStatistics struct { + System *JunosStatisticsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatistics) Reset() { *m = JunosStatistics{} } +func (m *JunosStatistics) String() string { return proto.CompactTextString(m) } +func (*JunosStatistics) ProtoMessage() {} +func (*JunosStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0} +} +func (m *JunosStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatistics.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatistics.Merge(m, src) +} +func (m *JunosStatistics) XXX_Size() int { + return m.Size() +} +func (m *JunosStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatistics proto.InternalMessageInfo + +func (m *JunosStatistics) GetSystem() *JunosStatisticsSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosStatisticsSystemType struct { + SubscriberManagement *JunosStatisticsSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemType) Reset() { *m = JunosStatisticsSystemType{} } +func (m *JunosStatisticsSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosStatisticsSystemType) ProtoMessage() {} +func (*JunosStatisticsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0} +} +func (m *JunosStatisticsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemType.Merge(m, src) +} +func (m *JunosStatisticsSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemType) GetSubscriberManagement() *JunosStatisticsSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementType struct { + DynamicInterfaces *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType `protobuf:"bytes,151,opt,name=dynamic_interfaces,json=dynamicInterfaces" json:"dynamic_interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosStatisticsSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementType) GetDynamicInterfaces() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType { + if m != nil { + return m.DynamicInterfaces + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType struct { + Interfaces *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType `protobuf:"bytes,151,opt,name=interfaces" json:"interfaces,omitempty"` + InterfaceSets *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType `protobuf:"bytes,155,opt,name=interface_sets,json=interfaceSets" json:"interface_sets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) ProtoMessage() {} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) GetInterfaces() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) GetInterfaceSets() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType { + if m != nil { + return m.InterfaceSets + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType struct { + MaxPollingInterfaces *uint32 `protobuf:"varint,51,opt,name=max_polling_interfaces,json=maxPollingInterfaces" json:"max_polling_interfaces,omitempty"` + CurrentPollingInterfaces *uint32 `protobuf:"varint,52,opt,name=current_polling_interfaces,json=currentPollingInterfaces" json:"current_polling_interfaces,omitempty"` + MetaData *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType `protobuf:"bytes,151,opt,name=meta_data,json=metaData" json:"meta_data,omitempty"` + QueueStatistics *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType `protobuf:"bytes,155,opt,name=queue_statistics,json=queueStatistics" json:"queue_statistics,omitempty"` + SubscriberStatistics *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType `protobuf:"bytes,160,opt,name=subscriber_statistics,json=subscriberStatistics" json:"subscriber_statistics,omitempty"` + Services *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType `protobuf:"bytes,180,opt,name=services" json:"services,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) GetMaxPollingInterfaces() uint32 { + if m != nil && m.MaxPollingInterfaces != nil { + return *m.MaxPollingInterfaces + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) GetCurrentPollingInterfaces() uint32 { + if m != nil && m.CurrentPollingInterfaces != nil { + return *m.CurrentPollingInterfaces + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) GetMetaData() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType { + if m != nil { + return m.MetaData + } + return nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) GetQueueStatistics() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType { + if m != nil { + return m.QueueStatistics + } + return nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) GetSubscriberStatistics() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType { + if m != nil { + return m.SubscriberStatistics + } + return nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) GetServices() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType { + if m != nil { + return m.Services + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType struct { + Interface []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) GetInterface() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList struct { + Sid *uint64 `protobuf:"varint,51,opt,name=sid" json:"sid,omitempty"` + InterfaceIndex *uint32 `protobuf:"varint,55,opt,name=interface_index,json=interfaceIndex" json:"interface_index,omitempty"` + SessionType *string `protobuf:"bytes,56,opt,name=session_type,json=sessionType" json:"session_type,omitempty"` + UserName *string `protobuf:"bytes,57,opt,name=user_name,json=userName" json:"user_name,omitempty"` + ProfileName *string `protobuf:"bytes,58,opt,name=profile_name,json=profileName" json:"profile_name,omitempty"` + InterfaceName *string `protobuf:"bytes,59,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` + InterfaceSetName *string `protobuf:"bytes,63,opt,name=interface_set_name,json=interfaceSetName" json:"interface_set_name,omitempty"` + UnderlyingInterfaceName *string `protobuf:"bytes,60,opt,name=underlying_interface_name,json=underlyingInterfaceName" json:"underlying_interface_name,omitempty"` + CvlanTag *uint32 `protobuf:"varint,61,opt,name=cvlan_tag,json=cvlanTag" json:"cvlan_tag,omitempty"` + SvlanTag *uint32 `protobuf:"varint,62,opt,name=svlan_tag,json=svlanTag" json:"svlan_tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetSid() uint64 { + if m != nil && m.Sid != nil { + return *m.Sid + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetInterfaceIndex() uint32 { + if m != nil && m.InterfaceIndex != nil { + return *m.InterfaceIndex + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetSessionType() string { + if m != nil && m.SessionType != nil { + return *m.SessionType + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetUserName() string { + if m != nil && m.UserName != nil { + return *m.UserName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetProfileName() string { + if m != nil && m.ProfileName != nil { + return *m.ProfileName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetInterfaceName() string { + if m != nil && m.InterfaceName != nil { + return *m.InterfaceName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetInterfaceSetName() string { + if m != nil && m.InterfaceSetName != nil { + return *m.InterfaceSetName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetUnderlyingInterfaceName() string { + if m != nil && m.UnderlyingInterfaceName != nil { + return *m.UnderlyingInterfaceName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetCvlanTag() uint32 { + if m != nil && m.CvlanTag != nil { + return *m.CvlanTag + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) GetSvlanTag() uint32 { + if m != nil && m.SvlanTag != nil { + return *m.SvlanTag + } + return 0 +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType struct { + Interface []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 1} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) GetInterface() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList struct { + Sid *uint64 `protobuf:"varint,51,opt,name=sid" json:"sid,omitempty"` + PollingEnabled *bool `protobuf:"varint,52,opt,name=polling_enabled,json=pollingEnabled" json:"polling_enabled,omitempty"` + Fpcs *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType `protobuf:"bytes,151,opt,name=fpcs" json:"fpcs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) GetSid() uint64 { + if m != nil && m.Sid != nil { + return *m.Sid + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) GetPollingEnabled() bool { + if m != nil && m.PollingEnabled != nil { + return *m.PollingEnabled + } + return false +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) GetFpcs() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType { + if m != nil { + return m.Fpcs + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType struct { + Fpc []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList `protobuf:"bytes,151,rep,name=fpc" json:"fpc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) GetFpc() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList { + if m != nil { + return m.Fpc + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList struct { + Slot *uint32 `protobuf:"varint,51,opt,name=slot" json:"slot,omitempty"` + LastUpdateTime *uint32 `protobuf:"varint,52,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"` + Queues *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType `protobuf:"bytes,151,opt,name=queues" json:"queues,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 1, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) GetSlot() uint32 { + if m != nil && m.Slot != nil { + return *m.Slot + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) GetLastUpdateTime() uint32 { + if m != nil && m.LastUpdateTime != nil { + return *m.LastUpdateTime + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) GetQueues() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType { + if m != nil { + return m.Queues + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType struct { + Queue []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList `protobuf:"bytes,151,rep,name=queue" json:"queue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 1, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) GetQueue() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList { + if m != nil { + return m.Queue + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList struct { + QueueNo *uint32 `protobuf:"varint,50,opt,name=queue_no,json=queueNo" json:"queue_no,omitempty"` + TransmittedPackets *uint64 `protobuf:"varint,52,opt,name=transmitted_packets,json=transmittedPackets" json:"transmitted_packets,omitempty"` + TransmittedBytes *uint64 `protobuf:"varint,53,opt,name=transmitted_bytes,json=transmittedBytes" json:"transmitted_bytes,omitempty"` + DroppedPackets *uint64 `protobuf:"varint,54,opt,name=dropped_packets,json=droppedPackets" json:"dropped_packets,omitempty"` + DroppedBytes *uint64 `protobuf:"varint,55,opt,name=dropped_bytes,json=droppedBytes" json:"dropped_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) GetQueueNo() uint32 { + if m != nil && m.QueueNo != nil { + return *m.QueueNo + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) GetTransmittedPackets() uint64 { + if m != nil && m.TransmittedPackets != nil { + return *m.TransmittedPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) GetTransmittedBytes() uint64 { + if m != nil && m.TransmittedBytes != nil { + return *m.TransmittedBytes + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) GetDroppedPackets() uint64 { + if m != nil && m.DroppedPackets != nil { + return *m.DroppedPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) GetDroppedBytes() uint64 { + if m != nil && m.DroppedBytes != nil { + return *m.DroppedBytes + } + return 0 +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType struct { + Interface []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 2} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) GetInterface() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList struct { + Sid *uint64 `protobuf:"varint,50,opt,name=sid" json:"sid,omitempty"` + IpInPackets *uint64 `protobuf:"varint,55,opt,name=ip_in_packets,json=ipInPackets" json:"ip_in_packets,omitempty"` + IpOutPackets *uint64 `protobuf:"varint,56,opt,name=ip_out_packets,json=ipOutPackets" json:"ip_out_packets,omitempty"` + IpInBytes *uint64 `protobuf:"varint,57,opt,name=ip_in_bytes,json=ipInBytes" json:"ip_in_bytes,omitempty"` + IpOutBytes *uint64 `protobuf:"varint,58,opt,name=ip_out_bytes,json=ipOutBytes" json:"ip_out_bytes,omitempty"` + Ipv6InPackets *uint64 `protobuf:"varint,59,opt,name=ipv6_in_packets,json=ipv6InPackets" json:"ipv6_in_packets,omitempty"` + Ipv6OutPackets *uint64 `protobuf:"varint,60,opt,name=ipv6_out_packets,json=ipv6OutPackets" json:"ipv6_out_packets,omitempty"` + Ipv6InBytes *uint64 `protobuf:"varint,61,opt,name=ipv6_in_bytes,json=ipv6InBytes" json:"ipv6_in_bytes,omitempty"` + Ipv6OutBytes *uint64 `protobuf:"varint,62,opt,name=ipv6_out_bytes,json=ipv6OutBytes" json:"ipv6_out_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 2, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetSid() uint64 { + if m != nil && m.Sid != nil { + return *m.Sid + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpInPackets() uint64 { + if m != nil && m.IpInPackets != nil { + return *m.IpInPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpOutPackets() uint64 { + if m != nil && m.IpOutPackets != nil { + return *m.IpOutPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpInBytes() uint64 { + if m != nil && m.IpInBytes != nil { + return *m.IpInBytes + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpOutBytes() uint64 { + if m != nil && m.IpOutBytes != nil { + return *m.IpOutBytes + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpv6InPackets() uint64 { + if m != nil && m.Ipv6InPackets != nil { + return *m.Ipv6InPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpv6OutPackets() uint64 { + if m != nil && m.Ipv6OutPackets != nil { + return *m.Ipv6OutPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpv6InBytes() uint64 { + if m != nil && m.Ipv6InBytes != nil { + return *m.Ipv6InBytes + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) GetIpv6OutBytes() uint64 { + if m != nil && m.Ipv6OutBytes != nil { + return *m.Ipv6OutBytes + } + return 0 +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType struct { + Interface []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList `protobuf:"bytes,190,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) GetInterface() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList struct { + Sid *uint64 `protobuf:"varint,50,opt,name=sid" json:"sid,omitempty"` + ServiceStatistics *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType `protobuf:"bytes,181,opt,name=service_statistics,json=serviceStatistics" json:"service_statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) GetSid() uint64 { + if m != nil && m.Sid != nil { + return *m.Sid + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) GetServiceStatistics() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType { + if m != nil { + return m.ServiceStatistics + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType struct { + Service []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList `protobuf:"bytes,191,rep,name=service" json:"service,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) GetService() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList { + if m != nil { + return m.Service + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList struct { + Ssid *uint64 `protobuf:"varint,192,opt,name=ssid" json:"ssid,omitempty"` + ServiceInstanceName *string `protobuf:"bytes,193,opt,name=service_instance_name,json=serviceInstanceName" json:"service_instance_name,omitempty"` + Families *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType `protobuf:"bytes,194,opt,name=families" json:"families,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) GetSsid() uint64 { + if m != nil && m.Ssid != nil { + return *m.Ssid + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) GetServiceInstanceName() string { + if m != nil && m.ServiceInstanceName != nil { + return *m.ServiceInstanceName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) GetFamilies() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType { + if m != nil { + return m.Families + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType struct { + Family []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList `protobuf:"bytes,195,rep,name=family" json:"family,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) GetFamily() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList { + if m != nil { + return m.Family + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList struct { + FamiliesPresent *string `protobuf:"bytes,196,opt,name=families_present,json=familiesPresent" json:"families_present,omitempty"` + FilterDirections *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType `protobuf:"bytes,197,opt,name=filter_directions,json=filterDirections" json:"filter_directions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) GetFamiliesPresent() string { + if m != nil && m.FamiliesPresent != nil { + return *m.FamiliesPresent + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) GetFilterDirections() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType { + if m != nil { + return m.FilterDirections + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType struct { + FilterDirection []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList `protobuf:"bytes,198,rep,name=filter_direction,json=filterDirection" json:"filter_direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) GetFilterDirection() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList { + if m != nil { + return m.FilterDirection + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList struct { + Direction *uint32 `protobuf:"varint,199,opt,name=direction" json:"direction,omitempty"` + Packets *uint64 `protobuf:"varint,59,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,60,opt,name=bytes" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) GetDirection() uint32 { + if m != nil && m.Direction != nil { + return *m.Direction + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType struct { + MaxPollingInterfaces *uint32 `protobuf:"varint,51,opt,name=max_polling_interfaces,json=maxPollingInterfaces" json:"max_polling_interfaces,omitempty"` + CurrentPollingInterfaces *uint32 `protobuf:"varint,52,opt,name=current_polling_interfaces,json=currentPollingInterfaces" json:"current_polling_interfaces,omitempty"` + MetaData *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType `protobuf:"bytes,151,opt,name=meta_data,json=metaData" json:"meta_data,omitempty"` + QueueStatistics *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType `protobuf:"bytes,155,opt,name=queue_statistics,json=queueStatistics" json:"queue_statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) GetMaxPollingInterfaces() uint32 { + if m != nil && m.MaxPollingInterfaces != nil { + return *m.MaxPollingInterfaces + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) GetCurrentPollingInterfaces() uint32 { + if m != nil && m.CurrentPollingInterfaces != nil { + return *m.CurrentPollingInterfaces + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) GetMetaData() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType { + if m != nil { + return m.MetaData + } + return nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) GetQueueStatistics() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType { + if m != nil { + return m.QueueStatistics + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType struct { + InterfaceSet []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList `protobuf:"bytes,155,rep,name=interface_set,json=interfaceSet" json:"interface_set,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) GetInterfaceSet() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList { + if m != nil { + return m.InterfaceSet + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList struct { + ContainerId *uint32 `protobuf:"varint,51,opt,name=container_id,json=containerId" json:"container_id,omitempty"` + InterfaceSetName *string `protobuf:"bytes,55,opt,name=interface_set_name,json=interfaceSetName" json:"interface_set_name,omitempty"` + InterfaceSetType *string `protobuf:"bytes,56,opt,name=interface_set_type,json=interfaceSetType" json:"interface_set_type,omitempty"` + DeviceName *string `protobuf:"bytes,57,opt,name=device_name,json=deviceName" json:"device_name,omitempty"` + Stag *uint32 `protobuf:"varint,58,opt,name=stag" json:"stag,omitempty"` + Ctag *uint32 `protobuf:"varint,59,opt,name=ctag" json:"ctag,omitempty"` + CosEgressTcpName *string `protobuf:"bytes,60,opt,name=cos_egress_tcp_name,json=cosEgressTcpName" json:"cos_egress_tcp_name,omitempty"` + CosEgressTcpRemainderName *string `protobuf:"bytes,61,opt,name=cos_egress_tcp_remainder_name,json=cosEgressTcpRemainderName" json:"cos_egress_tcp_remainder_name,omitempty"` + InterfaceSetMemberCount *uint32 `protobuf:"varint,62,opt,name=interface_set_member_count,json=interfaceSetMemberCount" json:"interface_set_member_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetContainerId() uint32 { + if m != nil && m.ContainerId != nil { + return *m.ContainerId + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetInterfaceSetName() string { + if m != nil && m.InterfaceSetName != nil { + return *m.InterfaceSetName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetInterfaceSetType() string { + if m != nil && m.InterfaceSetType != nil { + return *m.InterfaceSetType + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetDeviceName() string { + if m != nil && m.DeviceName != nil { + return *m.DeviceName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetStag() uint32 { + if m != nil && m.Stag != nil { + return *m.Stag + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetCtag() uint32 { + if m != nil && m.Ctag != nil { + return *m.Ctag + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetCosEgressTcpName() string { + if m != nil && m.CosEgressTcpName != nil { + return *m.CosEgressTcpName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetCosEgressTcpRemainderName() string { + if m != nil && m.CosEgressTcpRemainderName != nil { + return *m.CosEgressTcpRemainderName + } + return "" +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) GetInterfaceSetMemberCount() uint32 { + if m != nil && m.InterfaceSetMemberCount != nil { + return *m.InterfaceSetMemberCount + } + return 0 +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType struct { + InterfaceSet []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList `protobuf:"bytes,151,rep,name=interface_set,json=interfaceSet" json:"interface_set,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 1} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) GetInterfaceSet() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList { + if m != nil { + return m.InterfaceSet + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList struct { + ContainerId *uint32 `protobuf:"varint,51,opt,name=container_id,json=containerId" json:"container_id,omitempty"` + PollingEnabled *bool `protobuf:"varint,52,opt,name=polling_enabled,json=pollingEnabled" json:"polling_enabled,omitempty"` + Fpcs *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType `protobuf:"bytes,151,opt,name=fpcs" json:"fpcs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 1, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) GetContainerId() uint32 { + if m != nil && m.ContainerId != nil { + return *m.ContainerId + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) GetPollingEnabled() bool { + if m != nil && m.PollingEnabled != nil { + return *m.PollingEnabled + } + return false +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) GetFpcs() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType { + if m != nil { + return m.Fpcs + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType struct { + Fpc []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList `protobuf:"bytes,151,rep,name=fpc" json:"fpc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 1, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) GetFpc() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList { + if m != nil { + return m.Fpc + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList struct { + Slot *uint32 `protobuf:"varint,51,opt,name=slot" json:"slot,omitempty"` + LastUpdateTime *uint32 `protobuf:"varint,52,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"` + Queues *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType `protobuf:"bytes,151,opt,name=queues" json:"queues,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 1, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) GetSlot() uint32 { + if m != nil && m.Slot != nil { + return *m.Slot + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) GetLastUpdateTime() uint32 { + if m != nil && m.LastUpdateTime != nil { + return *m.LastUpdateTime + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) GetQueues() *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType { + if m != nil { + return m.Queues + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType struct { + Queue []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList `protobuf:"bytes,151,rep,name=queue" json:"queue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 1, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) GetQueue() []*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList { + if m != nil { + return m.Queue + } + return nil +} + +type JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList struct { + QueueNo *uint32 `protobuf:"varint,50,opt,name=queue_no,json=queueNo" json:"queue_no,omitempty"` + TransmittedPackets *uint64 `protobuf:"varint,52,opt,name=transmitted_packets,json=transmittedPackets" json:"transmitted_packets,omitempty"` + TransmittedBytes *uint64 `protobuf:"varint,53,opt,name=transmitted_bytes,json=transmittedBytes" json:"transmitted_bytes,omitempty"` + DroppedPackets *uint64 `protobuf:"varint,54,opt,name=dropped_packets,json=droppedPackets" json:"dropped_packets,omitempty"` + DroppedBytes *uint64 `protobuf:"varint,55,opt,name=dropped_bytes,json=droppedBytes" json:"dropped_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) Reset() { + *m = JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList{} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) String() string { + return proto.CompactTextString(m) +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) ProtoMessage() { +} +func (*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) Descriptor() ([]byte, []int) { + return fileDescriptor_5b36c59d64d7b7d6, []int{0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0} +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList.Merge(m, src) +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) XXX_Size() int { + return m.Size() +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList proto.InternalMessageInfo + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) GetQueueNo() uint32 { + if m != nil && m.QueueNo != nil { + return *m.QueueNo + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) GetTransmittedPackets() uint64 { + if m != nil && m.TransmittedPackets != nil { + return *m.TransmittedPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) GetTransmittedBytes() uint64 { + if m != nil && m.TransmittedBytes != nil { + return *m.TransmittedBytes + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) GetDroppedPackets() uint64 { + if m != nil && m.DroppedPackets != nil { + return *m.DroppedPackets + } + return 0 +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) GetDroppedBytes() uint64 { + if m != nil && m.DroppedBytes != nil { + return *m.DroppedBytes + } + return 0 +} + +var E_JnprJunosStatisticsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosStatistics)(nil), + Field: 81, + Name: "jnpr_junos_statistics_ext", + Tag: "bytes,81,opt,name=jnpr_junos_statistics_ext", + Filename: "bbe-statsd-telemetry_oc.proto", +} + +func init() { + proto.RegisterType((*JunosStatistics)(nil), "junos_statistics") + proto.RegisterType((*JunosStatisticsSystemType)(nil), "junos_statistics.system_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementType)(nil), "junos_statistics.system_type.subscriber_management_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.meta_data_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.meta_data_type.interface_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.queue_statistics_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.queue_statistics_type.interface_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.queue_statistics_type.interface_list.fpcs_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.queue_statistics_type.interface_list.fpcs_type.fpc_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.queue_statistics_type.interface_list.fpcs_type.fpc_list.queues_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.queue_statistics_type.interface_list.fpcs_type.fpc_list.queues_type.queue_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.subscriber_statistics_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.subscriber_statistics_type.interface_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list.service_statistics_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list.service_statistics_type.service_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list.service_statistics_type.service_list.families_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list.service_statistics_type.service_list.families_type.family_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list.service_statistics_type.service_list.families_type.family_list.filter_directions_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interfaces_type.services_type.interface_list.service_statistics_type.service_list.families_type.family_list.filter_directions_type.filter_direction_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.meta_data_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.meta_data_type.interface_set_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.queue_statistics_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.queue_statistics_type.interface_set_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.queue_statistics_type.interface_set_list.fpcs_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.queue_statistics_type.interface_set_list.fpcs_type.fpc_list") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.queue_statistics_type.interface_set_list.fpcs_type.fpc_list.queues_type") + proto.RegisterType((*JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList)(nil), "junos_statistics.system_type.subscriber_management_type.dynamic_interfaces_type.interface_sets_type.queue_statistics_type.interface_set_list.fpcs_type.fpc_list.queues_type.queue_list") + proto.RegisterExtension(E_JnprJunosStatisticsExt) +} + +func init() { proto.RegisterFile("bbe-statsd-telemetry_oc.proto", fileDescriptor_5b36c59d64d7b7d6) } + +var fileDescriptor_5b36c59d64d7b7d6 = []byte{ + // 1805 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x5b, 0x8f, 0x1c, 0x47, + 0x15, 0x56, 0x79, 0x67, 0xbd, 0x33, 0x67, 0x76, 0x76, 0xc7, 0xb5, 0xb6, 0xb7, 0xdd, 0x91, 0xcd, + 0x12, 0x02, 0x8c, 0x04, 0x3b, 0x23, 0x9c, 0x60, 0x3b, 0xbe, 0x24, 0x2b, 0x13, 0x3f, 0x6c, 0xa4, + 0x98, 0x65, 0xbc, 0xbc, 0xf0, 0xd2, 0xa9, 0xe9, 0xae, 0x1d, 0xd7, 0x7a, 0xba, 0xba, 0xe9, 0xaa, + 0x59, 0x76, 0x40, 0xa0, 0x24, 0x82, 0x20, 0x2e, 0x11, 0xca, 0x03, 0x04, 0x89, 0x44, 0xb1, 0xa2, + 0x00, 0x12, 0x4a, 0x04, 0x88, 0x05, 0x5e, 0xa2, 0x70, 0x09, 0xd8, 0x3c, 0x71, 0x51, 0x10, 0x20, + 0x9e, 0x90, 0x79, 0x01, 0x89, 0xbf, 0x80, 0x84, 0xaa, 0xaa, 0xbb, 0xa7, 0x7b, 0x2e, 0x8b, 0x81, + 0xec, 0x8d, 0xbc, 0x4d, 0x7d, 0xe7, 0xab, 0x53, 0x5f, 0x9d, 0x73, 0xaa, 0xba, 0xe6, 0xc0, 0xc9, + 0x56, 0x8b, 0x2e, 0x0a, 0x49, 0xa4, 0xf0, 0x16, 0x25, 0xed, 0x50, 0x9f, 0xca, 0xa8, 0xe7, 0x04, + 0x6e, 0x3d, 0x8c, 0x02, 0x19, 0xd8, 0x73, 0x7d, 0x4c, 0x06, 0xa1, 0x01, 0xef, 0xfd, 0xc7, 0x12, + 0x54, 0xd7, 0xbb, 0x3c, 0x10, 0x8e, 0x9a, 0xc8, 0x84, 0x64, 0xae, 0xc0, 0x67, 0xe0, 0xb0, 0xe8, + 0x09, 0x49, 0x7d, 0xeb, 0x39, 0xb4, 0x80, 0x6a, 0xe5, 0xd3, 0x27, 0xeb, 0x83, 0x9c, 0xba, 0x21, + 0x38, 0xb2, 0x17, 0xd2, 0x66, 0xcc, 0xb6, 0x5f, 0x5c, 0x82, 0x72, 0x06, 0xc7, 0x1c, 0x8e, 0x89, + 0x6e, 0x4b, 0xb8, 0x11, 0x6b, 0xd1, 0xc8, 0xf1, 0x09, 0x27, 0x6d, 0xea, 0x53, 0x2e, 0x13, 0xb7, + 0xe7, 0xb6, 0x75, 0x5b, 0x1f, 0x39, 0xd7, 0xac, 0x78, 0xb4, 0x6f, 0x7b, 0x2c, 0x35, 0xd9, 0x2f, + 0x3e, 0x0c, 0xf6, 0xf8, 0x49, 0xf8, 0x09, 0x04, 0xd8, 0xeb, 0x71, 0xe2, 0x33, 0xd7, 0x61, 0x5c, + 0xd2, 0x68, 0x8d, 0xb8, 0x54, 0x24, 0x62, 0x56, 0xfe, 0x5b, 0x31, 0xf5, 0x61, 0x9f, 0x46, 0xe4, + 0x91, 0xd8, 0xb0, 0x9c, 0xe2, 0xf6, 0x3f, 0x2f, 0xc1, 0xfc, 0x18, 0x3a, 0x7e, 0x12, 0x01, 0x0c, + 0xcb, 0x7a, 0xfc, 0xad, 0x96, 0x55, 0x1f, 0x94, 0x99, 0x59, 0x14, 0x7f, 0x19, 0xc1, 0x4c, 0x3a, + 0x74, 0x04, 0x95, 0xc2, 0xfa, 0x86, 0xd1, 0xe1, 0xed, 0x9c, 0x0e, 0xbd, 0x8e, 0xd1, 0x52, 0x49, + 0xc1, 0x6b, 0x54, 0x0a, 0xfb, 0xe5, 0x1a, 0xcc, 0x0e, 0x86, 0xe9, 0x01, 0x38, 0xee, 0x93, 0x4d, + 0x27, 0x0c, 0x3a, 0x1d, 0xc6, 0xdb, 0xd9, 0x44, 0xde, 0xbf, 0x80, 0x6a, 0x95, 0xe6, 0x51, 0x9f, + 0x6c, 0xae, 0x18, 0x63, 0x3f, 0xf0, 0xf8, 0x22, 0xd8, 0x6e, 0x37, 0x8a, 0x94, 0xa8, 0x11, 0x33, + 0x1f, 0xd0, 0x33, 0xad, 0x98, 0x31, 0x3c, 0xfb, 0x19, 0x04, 0x25, 0x9f, 0x4a, 0xe2, 0x78, 0x44, + 0x92, 0x24, 0x33, 0xc1, 0x4e, 0x67, 0xa6, 0x9e, 0x2e, 0x69, 0x82, 0x53, 0x54, 0xe3, 0x47, 0x88, + 0x24, 0xf8, 0x25, 0x04, 0xd5, 0x8f, 0x77, 0x69, 0x97, 0x66, 0x16, 0x4f, 0x12, 0xb5, 0xb1, 0xe3, + 0xb2, 0x06, 0x57, 0x36, 0xea, 0x66, 0x35, 0x7c, 0xad, 0x7f, 0x8b, 0x7c, 0x1f, 0xe5, 0x8e, 0x7f, + 0x46, 0xe9, 0x4d, 0xa3, 0xf4, 0x53, 0x3b, 0xae, 0x74, 0xe4, 0xf2, 0x43, 0x37, 0x48, 0x46, 0xf3, + 0x97, 0x10, 0x14, 0x05, 0x8d, 0x36, 0x98, 0xaa, 0x8a, 0x2d, 0x23, 0x93, 0xef, 0xbc, 0xcc, 0x78, + 0xc5, 0x38, 0xcd, 0xc9, 0xd0, 0xfe, 0x41, 0x01, 0x66, 0xf2, 0x35, 0x80, 0x5f, 0x40, 0x50, 0x4a, + 0xa7, 0xab, 0x4a, 0x9c, 0xa8, 0x95, 0x4f, 0x7f, 0x66, 0x97, 0x2b, 0x31, 0x73, 0x74, 0x3b, 0x4c, + 0xc8, 0x66, 0x5f, 0x91, 0xfd, 0xc4, 0x44, 0xf6, 0x02, 0x51, 0x56, 0x3c, 0x0f, 0x13, 0x82, 0x79, + 0xfa, 0x74, 0x16, 0x2e, 0x4f, 0x3e, 0xb5, 0x74, 0xa8, 0x88, 0x9a, 0x0a, 0xc1, 0xef, 0xcd, 0x1c, + 0x6e, 0x87, 0x71, 0x8f, 0x6e, 0x5a, 0x67, 0xf5, 0x41, 0xec, 0x7b, 0x58, 0x56, 0x28, 0x7e, 0x27, + 0x4c, 0x0b, 0x2a, 0x04, 0x0b, 0xb8, 0x5e, 0xde, 0x3a, 0xb7, 0x80, 0x6a, 0xa5, 0x66, 0x39, 0xc6, + 0x56, 0x55, 0x5c, 0xee, 0x81, 0x52, 0x57, 0xd0, 0xc8, 0xe1, 0xc4, 0xa7, 0xd6, 0x83, 0xda, 0x5e, + 0x54, 0xc0, 0x55, 0xe2, 0x53, 0x35, 0x3f, 0x8c, 0x82, 0x35, 0xd6, 0xa1, 0xc6, 0x7e, 0xde, 0xcc, + 0x8f, 0x31, 0x4d, 0x79, 0x77, 0x56, 0xb6, 0x26, 0x5d, 0xd0, 0xa4, 0xfe, 0x85, 0xa4, 0x69, 0xef, + 0x07, 0x9c, 0xbb, 0xb6, 0x0c, 0xf5, 0x61, 0x4d, 0xad, 0x66, 0xef, 0x2e, 0xcd, 0x3e, 0x0f, 0x27, + 0xba, 0xdc, 0xa3, 0x51, 0xa7, 0x97, 0xbb, 0x6f, 0xcc, 0xa4, 0x8b, 0x7a, 0xd2, 0x7c, 0x9f, 0xb0, + 0x9c, 0x5b, 0xe9, 0x1e, 0x28, 0xb9, 0x1b, 0x1d, 0xc2, 0x1d, 0x49, 0xda, 0xd6, 0x25, 0x1d, 0x96, + 0xa2, 0x06, 0x56, 0x49, 0x5b, 0x19, 0x45, 0x6a, 0x7c, 0xc8, 0x18, 0x45, 0x6c, 0xb4, 0xdf, 0x00, + 0x38, 0x36, 0xf2, 0x88, 0xe2, 0x6f, 0x8e, 0x2a, 0x9e, 0xcf, 0xa1, 0xbd, 0xb9, 0x30, 0xb6, 0x29, + 0xa2, 0x27, 0x4b, 0xff, 0x51, 0x11, 0x25, 0x17, 0x3a, 0xe5, 0xa4, 0xd5, 0xa1, 0x9e, 0xbe, 0xcd, + 0x8b, 0xcd, 0x99, 0x18, 0xbe, 0x62, 0x50, 0xb5, 0xf9, 0xc2, 0x5a, 0xe8, 0xa6, 0x1f, 0xd6, 0xaf, + 0xec, 0x8f, 0x7d, 0xd7, 0x95, 0x26, 0x73, 0xf0, 0xb5, 0x3c, 0xfb, 0xb3, 0x53, 0x50, 0x4a, 0x31, + 0xfc, 0x0a, 0x82, 0x89, 0xb5, 0xd0, 0x4d, 0x92, 0xf5, 0xf5, 0xfd, 0x26, 0x5a, 0xfd, 0x32, 0xf9, + 0x53, 0x32, 0xed, 0xdb, 0x93, 0x50, 0x4c, 0x10, 0x7c, 0x02, 0x0a, 0xa2, 0x13, 0x48, 0xf3, 0x5d, + 0x4e, 0x92, 0xa6, 0x21, 0x5c, 0x83, 0x6a, 0x87, 0x08, 0xe9, 0x74, 0x43, 0x8f, 0x48, 0xea, 0x48, + 0xe6, 0xd3, 0xf8, 0x23, 0x3c, 0xa3, 0xf0, 0x8f, 0x6a, 0x78, 0x95, 0xf9, 0x14, 0xbf, 0x8e, 0xe0, + 0xb0, 0x96, 0x94, 0x26, 0xee, 0xe5, 0x7d, 0x1b, 0x03, 0x33, 0x2f, 0xce, 0x66, 0xac, 0xda, 0xde, + 0x9a, 0x80, 0x72, 0x06, 0xc7, 0xb7, 0x11, 0x4c, 0xea, 0x71, 0x92, 0xd3, 0xef, 0x1e, 0x88, 0xfd, + 0xc4, 0x3e, 0x74, 0xaa, 0x8d, 0x7e, 0xfb, 0xcf, 0x08, 0xa0, 0x8f, 0xe2, 0x05, 0x28, 0x9a, 0x11, + 0x0f, 0xac, 0xd3, 0xd9, 0x94, 0x4f, 0x69, 0xf8, 0x6a, 0x80, 0x1b, 0x30, 0x27, 0x23, 0xc2, 0x85, + 0xcf, 0xa4, 0xa4, 0x9e, 0x13, 0x12, 0xf7, 0x86, 0x7a, 0x61, 0xaa, 0xc4, 0x17, 0x9a, 0x38, 0x63, + 0x5a, 0x31, 0x16, 0xfc, 0x3e, 0x38, 0x92, 0x9d, 0xd0, 0xea, 0x49, 0x2a, 0xac, 0x0f, 0x6a, 0x7a, + 0x35, 0x63, 0xb8, 0xac, 0x70, 0x75, 0x13, 0x78, 0x51, 0x10, 0x86, 0x19, 0xcf, 0x67, 0x34, 0x75, + 0x26, 0x86, 0x13, 0xaf, 0xef, 0x82, 0x4a, 0x42, 0x34, 0x1e, 0xcf, 0x6a, 0xda, 0x74, 0x0c, 0x6a, + 0x6f, 0xf6, 0x0b, 0x85, 0xdc, 0x7f, 0x89, 0xc1, 0xab, 0xf4, 0x3b, 0xa3, 0xae, 0xd2, 0x2f, 0xa2, + 0x3d, 0x7c, 0xd1, 0x6c, 0x73, 0x9f, 0xfe, 0xee, 0xd0, 0xb8, 0xfb, 0xf4, 0xf4, 0xd0, 0x7d, 0x7a, + 0x2f, 0x54, 0x58, 0xe8, 0x30, 0x9e, 0xc6, 0xd0, 0x04, 0xa7, 0xcc, 0xc2, 0x65, 0x9e, 0x04, 0xf0, + 0x3e, 0x98, 0x61, 0xa1, 0x13, 0x74, 0x65, 0x4a, 0x3a, 0x67, 0x22, 0xc8, 0xc2, 0x0f, 0x77, 0x65, + 0xc2, 0x3a, 0x05, 0x65, 0xe3, 0xc9, 0x04, 0xf9, 0x41, 0x4d, 0x29, 0x29, 0x3f, 0x26, 0x5f, 0x0b, + 0x30, 0x1d, 0x7b, 0x31, 0x84, 0xf3, 0x9a, 0x00, 0xda, 0x87, 0x61, 0xbc, 0x07, 0x66, 0x59, 0xb8, + 0x71, 0x26, 0xab, 0xe6, 0x82, 0x26, 0x55, 0x14, 0xdc, 0xd7, 0x53, 0x83, 0xaa, 0xe6, 0x65, 0x15, + 0x5d, 0x34, 0xa9, 0x57, 0x78, 0x46, 0x93, 0xde, 0x9d, 0xf1, 0x68, 0x16, 0xbd, 0x94, 0xec, 0x4e, + 0xf9, 0x33, 0xab, 0xea, 0xdd, 0xc5, 0xde, 0x0c, 0xe9, 0xa1, 0x64, 0x77, 0xda, 0x97, 0xa9, 0x8f, + 0x2f, 0xcc, 0x42, 0x25, 0xf7, 0x6e, 0xc3, 0xcf, 0xe7, 0x4a, 0xe2, 0x75, 0x53, 0x12, 0x9f, 0xde, + 0xdd, 0xc7, 0xe3, 0x36, 0x45, 0xf0, 0xa7, 0xca, 0xdd, 0x17, 0xc1, 0x2d, 0x04, 0x38, 0xf6, 0x9b, + 0x7d, 0xb7, 0xff, 0xd0, 0x5c, 0xc0, 0x5f, 0x45, 0x7b, 0xba, 0xa9, 0xfa, 0xb0, 0xb2, 0xf8, 0xff, + 0x76, 0x6c, 0xe8, 0xbf, 0xe7, 0xed, 0xbf, 0x96, 0x61, 0x7e, 0x0c, 0x5d, 0x7d, 0x59, 0xa6, 0x62, + 0x9b, 0xf5, 0x13, 0x93, 0xad, 0x97, 0xf6, 0xe7, 0xce, 0x52, 0x5c, 0xe7, 0x34, 0x11, 0x6d, 0x3f, + 0x0d, 0xea, 0x5d, 0xdc, 0xb7, 0x60, 0x1b, 0x0a, 0x42, 0x25, 0xf4, 0xa7, 0x28, 0x9b, 0x51, 0x8d, + 0xe1, 0xfb, 0xe1, 0x58, 0xc2, 0x65, 0x5c, 0x48, 0xc2, 0x93, 0x77, 0xe8, 0xcf, 0x90, 0x7e, 0x88, + 0xce, 0xc5, 0xd6, 0xe5, 0xd8, 0xa8, 0x1f, 0xa1, 0xbf, 0x46, 0x50, 0x5c, 0x23, 0x3e, 0xeb, 0x30, + 0x2a, 0xac, 0x9f, 0x9b, 0xec, 0x7f, 0xef, 0x00, 0xc4, 0xa8, 0x9e, 0x88, 0x8e, 0xff, 0x51, 0x25, + 0x43, 0xfb, 0xcd, 0x29, 0xa8, 0xe4, 0x6c, 0xf8, 0x0f, 0x08, 0x0e, 0x6b, 0xa4, 0x67, 0xbd, 0x61, + 0x8a, 0xe0, 0xb5, 0x03, 0xb7, 0x41, 0x33, 0xea, 0x99, 0xf2, 0x88, 0x77, 0x63, 0xff, 0x6d, 0x12, + 0xca, 0x19, 0x1c, 0x7f, 0x00, 0xaa, 0xe9, 0xa4, 0x30, 0xa2, 0x82, 0x72, 0x69, 0xfd, 0x42, 0xe7, + 0x3e, 0x29, 0x94, 0xd9, 0xc4, 0xbe, 0x62, 0xcc, 0xf8, 0xa9, 0x43, 0x70, 0x64, 0x8d, 0x75, 0x24, + 0x8d, 0x1c, 0x8f, 0x45, 0xd4, 0x95, 0x2c, 0xe0, 0xc2, 0xfa, 0xa5, 0xa9, 0x83, 0x37, 0x0f, 0x74, + 0x98, 0xea, 0x43, 0xfb, 0x32, 0xa5, 0x52, 0x35, 0xf8, 0x23, 0x29, 0x6c, 0xdf, 0x9c, 0x80, 0xe3, + 0xa3, 0xc9, 0xf8, 0x6b, 0x87, 0xa0, 0x3a, 0x68, 0xb2, 0x6e, 0x99, 0x2a, 0xfa, 0xfb, 0xff, 0x63, + 0x78, 0x86, 0x60, 0x53, 0x72, 0xb3, 0x03, 0x41, 0xb3, 0x7d, 0x38, 0x36, 0x92, 0x89, 0xef, 0x83, + 0x52, 0x3f, 0x52, 0xb7, 0x51, 0xf6, 0x95, 0xd8, 0x37, 0x60, 0x0b, 0xa6, 0xf2, 0xdf, 0xfb, 0x64, + 0x88, 0x8f, 0xc2, 0xa4, 0xf9, 0x24, 0x9b, 0xcf, 0xbb, 0x19, 0xd8, 0xdf, 0x9e, 0x83, 0xb9, 0x11, + 0xdd, 0xc4, 0x3d, 0x69, 0x15, 0x3e, 0x3b, 0xaa, 0x55, 0x28, 0x76, 0xa3, 0x79, 0x3a, 0xbe, 0x5d, + 0xf8, 0xad, 0x6d, 0xda, 0x85, 0x9f, 0xdc, 0x15, 0x69, 0x77, 0xd7, 0x32, 0xb4, 0x7f, 0x3f, 0xdc, + 0xf0, 0x7a, 0x15, 0x41, 0x25, 0xe7, 0x51, 0x09, 0x57, 0x07, 0xec, 0x69, 0xb4, 0x07, 0x41, 0xcd, + 0x53, 0x4c, 0xf5, 0x4f, 0x67, 0xfb, 0x3e, 0xf6, 0xb3, 0x13, 0x83, 0x2d, 0x22, 0x5d, 0xf8, 0x35, + 0x98, 0x76, 0x03, 0x2e, 0x09, 0xe3, 0x34, 0x72, 0xe2, 0x46, 0x46, 0x5a, 0xfa, 0xe5, 0xd4, 0xb4, + 0xec, 0x8d, 0x69, 0x31, 0x9d, 0x1d, 0xd3, 0x62, 0x1a, 0x62, 0x67, 0x1a, 0x64, 0x39, 0xb6, 0xee, + 0x92, 0xbd, 0x03, 0xca, 0x1e, 0xd5, 0xc7, 0x3f, 0xd3, 0x27, 0x03, 0x03, 0x69, 0x77, 0x18, 0x0a, + 0x42, 0x92, 0xb6, 0x7e, 0x8b, 0x57, 0x9a, 0xfa, 0xb7, 0xc2, 0x5c, 0x85, 0x5d, 0x30, 0x98, 0xfa, + 0x8d, 0x17, 0x61, 0xce, 0x0d, 0x84, 0x43, 0xdb, 0x11, 0x15, 0xc2, 0x91, 0x6e, 0x98, 0xed, 0x69, + 0x55, 0xdd, 0x40, 0x5c, 0xd1, 0x96, 0x55, 0x37, 0xd4, 0x6e, 0x97, 0xe0, 0xe4, 0x00, 0x3d, 0xa2, + 0x3e, 0x61, 0xdc, 0x4b, 0x3a, 0x76, 0x97, 0xf4, 0xc4, 0x13, 0xd9, 0x89, 0xcd, 0x84, 0xa1, 0x3d, + 0x5c, 0x00, 0x3b, 0xbf, 0x4f, 0x9f, 0xfa, 0x2a, 0xb5, 0x6e, 0xd0, 0xe5, 0x32, 0x6e, 0x81, 0xcd, + 0x67, 0xf7, 0xfb, 0x98, 0xb6, 0x7f, 0x48, 0x99, 0xed, 0xcf, 0x97, 0xc7, 0x75, 0xc4, 0xb6, 0x86, + 0xaa, 0x2b, 0xfe, 0x2b, 0xf7, 0x0c, 0xda, 0xbb, 0x73, 0xf1, 0xef, 0x8b, 0xec, 0x47, 0xa5, 0xff, + 0xb1, 0xc8, 0xee, 0xba, 0x6b, 0xf6, 0xea, 0x40, 0xd7, 0xec, 0xb9, 0xfd, 0x15, 0x97, 0xa1, 0xee, + 0xd9, 0xf3, 0xb9, 0xee, 0xd9, 0x56, 0xbe, 0x7b, 0x76, 0x73, 0xbf, 0x8a, 0x1f, 0xe8, 0xa2, 0xfd, + 0xf1, 0x2d, 0xef, 0xa2, 0xdd, 0x1a, 0xea, 0xa2, 0xbd, 0xb2, 0xef, 0x63, 0x31, 0xb2, 0x9b, 0xf6, + 0xda, 0x40, 0x37, 0xed, 0x37, 0x83, 0xdd, 0xb4, 0x1f, 0x1f, 0xa8, 0x7d, 0xbd, 0xcd, 0xba, 0x6a, + 0xe7, 0x29, 0x9c, 0x58, 0xe7, 0x61, 0xe4, 0x0c, 0xa6, 0xc8, 0xa1, 0x9b, 0x12, 0xcf, 0xd7, 0x1f, + 0xed, 0x72, 0x16, 0xd2, 0xe8, 0x2a, 0x95, 0x9f, 0x08, 0xa2, 0x1b, 0xe2, 0x1a, 0xe5, 0x22, 0x88, + 0x84, 0xf5, 0x11, 0x5d, 0xb1, 0x47, 0x86, 0x12, 0xdb, 0x3c, 0xae, 0x9c, 0x3d, 0xaa, 0xd0, 0xfe, + 0x23, 0xe2, 0xca, 0xa6, 0xbc, 0xfc, 0xf8, 0xaf, 0xee, 0x9c, 0x42, 0xbf, 0xbd, 0x73, 0x0a, 0xfd, + 0xe5, 0xce, 0x29, 0xf4, 0xb1, 0x66, 0x9b, 0x49, 0x35, 0x57, 0xb9, 0xae, 0x73, 0x2a, 0x1b, 0xcc, + 0xa5, 0x2d, 0x1a, 0xb5, 0x1b, 0xd7, 0x29, 0xe9, 0xc8, 0xeb, 0xad, 0x40, 0x2e, 0x32, 0xde, 0xa6, + 0x42, 0x2e, 0xae, 0x4b, 0xb6, 0xc8, 0x89, 0x64, 0x1b, 0xb4, 0x11, 0xde, 0x68, 0x37, 0xd6, 0x25, + 0x6b, 0x10, 0x8f, 0x84, 0x92, 0x46, 0xa2, 0x61, 0x34, 0x37, 0x84, 0x7b, 0x9d, 0xfa, 0xe4, 0x5f, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xf7, 0x17, 0x4f, 0x6c, 0x21, 0x00, 0x00, +} + +func (m *JunosStatistics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatistics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DynamicInterfaces != nil { + { + size, err := m.DynamicInterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceSets != nil { + { + size, err := m.InterfaceSets.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Services != nil { + { + size, err := m.Services.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xa2 + } + if m.SubscriberStatistics != nil { + { + size, err := m.SubscriberStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.QueueStatistics != nil { + { + size, err := m.QueueStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.MetaData != nil { + { + size, err := m.MetaData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.CurrentPollingInterfaces != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.CurrentPollingInterfaces)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPollingInterfaces != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.MaxPollingInterfaces)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceSetName != nil { + i -= len(*m.InterfaceSetName) + copy(dAtA[i:], *m.InterfaceSetName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.InterfaceSetName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.SvlanTag != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.SvlanTag)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.CvlanTag != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.CvlanTag)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.UnderlyingInterfaceName != nil { + i -= len(*m.UnderlyingInterfaceName) + copy(dAtA[i:], *m.UnderlyingInterfaceName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.UnderlyingInterfaceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.InterfaceName != nil { + i -= len(*m.InterfaceName) + copy(dAtA[i:], *m.InterfaceName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.InterfaceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.ProfileName != nil { + i -= len(*m.ProfileName) + copy(dAtA[i:], *m.ProfileName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.ProfileName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.UserName != nil { + i -= len(*m.UserName) + copy(dAtA[i:], *m.UserName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.UserName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SessionType != nil { + i -= len(*m.SessionType) + copy(dAtA[i:], *m.SessionType) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.SessionType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.InterfaceIndex != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.InterfaceIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sid != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Sid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Fpcs != nil { + { + size, err := m.Fpcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.PollingEnabled != nil { + i-- + if *m.PollingEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Sid != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Sid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Fpc) > 0 { + for iNdEx := len(m.Fpc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fpc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Queues != nil { + { + size, err := m.Queues.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LastUpdateTime != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.LastUpdateTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Slot != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Slot)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Queue) > 0 { + for iNdEx := len(m.Queue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Queue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DroppedBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.DroppedBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.DroppedPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TransmittedBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.TransmittedBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TransmittedPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.TransmittedPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.QueueNo != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.QueueNo)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x90 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6OutBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Ipv6OutBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.Ipv6InBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Ipv6InBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.Ipv6OutPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Ipv6OutPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.Ipv6InPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Ipv6InPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.IpOutBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.IpOutBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.IpInBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.IpInBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.IpOutPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.IpOutPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.IpInPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.IpInPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sid != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Sid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x90 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xf2 + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ServiceStatistics != nil { + { + size, err := m.ServiceStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xaa + } + if m.Sid != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Sid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x90 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Service) > 0 { + for iNdEx := len(m.Service) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Service[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xfa + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Families != nil { + { + size, err := m.Families.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0x92 + } + if m.ServiceInstanceName != nil { + i -= len(*m.ServiceInstanceName) + copy(dAtA[i:], *m.ServiceInstanceName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.ServiceInstanceName))) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0x8a + } + if m.Ssid != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Ssid)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0x80 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Family) > 0 { + for iNdEx := len(m.Family) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Family[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FilterDirections != nil { + { + size, err := m.FilterDirections.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xaa + } + if m.FamiliesPresent != nil { + i -= len(*m.FamiliesPresent) + copy(dAtA[i:], *m.FamiliesPresent) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.FamiliesPresent))) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.FilterDirection) > 0 { + for iNdEx := len(m.FilterDirection) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FilterDirection[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xb2 + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Direction != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Direction)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xb8 + } + if m.Bytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.Packets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.QueueStatistics != nil { + { + size, err := m.QueueStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.MetaData != nil { + { + size, err := m.MetaData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.CurrentPollingInterfaces != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.CurrentPollingInterfaces)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPollingInterfaces != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.MaxPollingInterfaces)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.InterfaceSet) > 0 { + for iNdEx := len(m.InterfaceSet) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InterfaceSet[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceSetMemberCount != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.InterfaceSetMemberCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.CosEgressTcpRemainderName != nil { + i -= len(*m.CosEgressTcpRemainderName) + copy(dAtA[i:], *m.CosEgressTcpRemainderName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.CosEgressTcpRemainderName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.CosEgressTcpName != nil { + i -= len(*m.CosEgressTcpName) + copy(dAtA[i:], *m.CosEgressTcpName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.CosEgressTcpName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.Ctag != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Ctag)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.Stag != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Stag)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DeviceName != nil { + i -= len(*m.DeviceName) + copy(dAtA[i:], *m.DeviceName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.DeviceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.InterfaceSetType != nil { + i -= len(*m.InterfaceSetType) + copy(dAtA[i:], *m.InterfaceSetType) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.InterfaceSetType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.InterfaceSetName != nil { + i -= len(*m.InterfaceSetName) + copy(dAtA[i:], *m.InterfaceSetName) + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(len(*m.InterfaceSetName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.ContainerId != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.ContainerId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.InterfaceSet) > 0 { + for iNdEx := len(m.InterfaceSet) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InterfaceSet[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Fpcs != nil { + { + size, err := m.Fpcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.PollingEnabled != nil { + i-- + if *m.PollingEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ContainerId != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.ContainerId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Fpc) > 0 { + for iNdEx := len(m.Fpc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fpc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Queues != nil { + { + size, err := m.Queues.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LastUpdateTime != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.LastUpdateTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Slot != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.Slot)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Queue) > 0 { + for iNdEx := len(m.Queue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Queue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DroppedBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.DroppedBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.DroppedPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TransmittedBytes != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.TransmittedBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TransmittedPackets != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.TransmittedPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.QueueNo != nil { + i = encodeVarintBbeStatsdTelemetryOc(dAtA, i, uint64(*m.QueueNo)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x90 + } + return len(dAtA) - i, nil +} + +func encodeVarintBbeStatsdTelemetryOc(dAtA []byte, offset int, v uint64) int { + offset -= sovBbeStatsdTelemetryOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DynamicInterfaces != nil { + l = m.DynamicInterfaces.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.InterfaceSets != nil { + l = m.InterfaceSets.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPollingInterfaces != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.MaxPollingInterfaces)) + } + if m.CurrentPollingInterfaces != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.CurrentPollingInterfaces)) + } + if m.MetaData != nil { + l = m.MetaData.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.QueueStatistics != nil { + l = m.QueueStatistics.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.SubscriberStatistics != nil { + l = m.SubscriberStatistics.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.Services != nil { + l = m.Services.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sid != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Sid)) + } + if m.InterfaceIndex != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.InterfaceIndex)) + } + if m.SessionType != nil { + l = len(*m.SessionType) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.UserName != nil { + l = len(*m.UserName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.ProfileName != nil { + l = len(*m.ProfileName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.InterfaceName != nil { + l = len(*m.InterfaceName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.UnderlyingInterfaceName != nil { + l = len(*m.UnderlyingInterfaceName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.CvlanTag != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.CvlanTag)) + } + if m.SvlanTag != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.SvlanTag)) + } + if m.InterfaceSetName != nil { + l = len(*m.InterfaceSetName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sid != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Sid)) + } + if m.PollingEnabled != nil { + n += 3 + } + if m.Fpcs != nil { + l = m.Fpcs.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fpc) > 0 { + for _, e := range m.Fpc { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slot != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Slot)) + } + if m.LastUpdateTime != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.LastUpdateTime)) + } + if m.Queues != nil { + l = m.Queues.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Queue) > 0 { + for _, e := range m.Queue { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QueueNo != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.QueueNo)) + } + if m.TransmittedPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.TransmittedPackets)) + } + if m.TransmittedBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.TransmittedBytes)) + } + if m.DroppedPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.DroppedPackets)) + } + if m.DroppedBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.DroppedBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sid != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Sid)) + } + if m.IpInPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.IpInPackets)) + } + if m.IpOutPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.IpOutPackets)) + } + if m.IpInBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.IpInBytes)) + } + if m.IpOutBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.IpOutBytes)) + } + if m.Ipv6InPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Ipv6InPackets)) + } + if m.Ipv6OutPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Ipv6OutPackets)) + } + if m.Ipv6InBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Ipv6InBytes)) + } + if m.Ipv6OutBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Ipv6OutBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sid != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Sid)) + } + if m.ServiceStatistics != nil { + l = m.ServiceStatistics.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Service) > 0 { + for _, e := range m.Service { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ssid != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Ssid)) + } + if m.ServiceInstanceName != nil { + l = len(*m.ServiceInstanceName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.Families != nil { + l = m.Families.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Family) > 0 { + for _, e := range m.Family { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FamiliesPresent != nil { + l = len(*m.FamiliesPresent) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.FilterDirections != nil { + l = m.FilterDirections.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FilterDirection) > 0 { + for _, e := range m.FilterDirection { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Bytes)) + } + if m.Direction != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Direction)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPollingInterfaces != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.MaxPollingInterfaces)) + } + if m.CurrentPollingInterfaces != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.CurrentPollingInterfaces)) + } + if m.MetaData != nil { + l = m.MetaData.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.QueueStatistics != nil { + l = m.QueueStatistics.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InterfaceSet) > 0 { + for _, e := range m.InterfaceSet { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ContainerId != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.ContainerId)) + } + if m.InterfaceSetName != nil { + l = len(*m.InterfaceSetName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.InterfaceSetType != nil { + l = len(*m.InterfaceSetType) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.DeviceName != nil { + l = len(*m.DeviceName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.Stag != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Stag)) + } + if m.Ctag != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Ctag)) + } + if m.CosEgressTcpName != nil { + l = len(*m.CosEgressTcpName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.CosEgressTcpRemainderName != nil { + l = len(*m.CosEgressTcpRemainderName) + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.InterfaceSetMemberCount != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.InterfaceSetMemberCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InterfaceSet) > 0 { + for _, e := range m.InterfaceSet { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ContainerId != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.ContainerId)) + } + if m.PollingEnabled != nil { + n += 3 + } + if m.Fpcs != nil { + l = m.Fpcs.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fpc) > 0 { + for _, e := range m.Fpc { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slot != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.Slot)) + } + if m.LastUpdateTime != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.LastUpdateTime)) + } + if m.Queues != nil { + l = m.Queues.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Queue) > 0 { + for _, e := range m.Queue { + l = e.Size() + n += 2 + l + sovBbeStatsdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QueueNo != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.QueueNo)) + } + if m.TransmittedPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.TransmittedPackets)) + } + if m.TransmittedBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.TransmittedBytes)) + } + if m.DroppedPackets != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.DroppedPackets)) + } + if m.DroppedBytes != nil { + n += 2 + sovBbeStatsdTelemetryOc(uint64(*m.DroppedBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovBbeStatsdTelemetryOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBbeStatsdTelemetryOc(x uint64) (n int) { + return sovBbeStatsdTelemetryOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_statistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_statistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosStatisticsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosStatisticsSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicInterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DynamicInterfaces == nil { + m.DynamicInterfaces = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType{} + } + if err := m.DynamicInterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dynamic_interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dynamic_interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceSets == nil { + m.InterfaceSets = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType{} + } + if err := m.InterfaceSets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPollingInterfaces", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPollingInterfaces = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPollingInterfaces", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentPollingInterfaces = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetaData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MetaData == nil { + m.MetaData = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType{} + } + if err := m.MetaData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.QueueStatistics == nil { + m.QueueStatistics = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType{} + } + if err := m.QueueStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberStatistics == nil { + m.SubscriberStatistics = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType{} + } + if err := m.SubscriberStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 180: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Services", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Services == nil { + m.Services = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType{} + } + if err := m.Services.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: meta_data_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: meta_data_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeMetaDataTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sid = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InterfaceIndex = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionType = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.UserName = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProfileName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProfileName = &s + iNdEx = postIndex + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceName = &s + iNdEx = postIndex + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnderlyingInterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.UnderlyingInterfaceName = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CvlanTag", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CvlanTag = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvlanTag", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvlanTag = &v + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceSetName = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queue_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queue_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sid = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PollingEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PollingEnabled = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpcs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fpcs == nil { + m.Fpcs = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType{} + } + if err := m.Fpcs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpcs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpcs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpc", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fpc = append(m.Fpc, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList{}) + if err := m.Fpc[len(m.Fpc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpc_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpc_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Slot = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastUpdateTime = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Queues == nil { + m.Queues = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType{} + } + if err := m.Queues.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queues_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queues_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Queue = append(m.Queue, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList{}) + if err := m.Queue[len(m.Queue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeQueueStatisticsTypeInterfaceListFpcsTypeFpcListQueuesTypeQueueList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queue_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queue_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 50: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueNo", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueNo = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmittedPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmittedPackets = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmittedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmittedBytes = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedPackets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedBytes = &v + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeSubscriberStatisticsTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 50: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sid = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpInPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpInPackets = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpOutPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpOutPackets = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpInBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpInBytes = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpOutBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpOutBytes = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6InPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6InPackets = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6OutPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6OutPackets = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6InBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6InBytes = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6OutBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6OutBytes = &v + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: services_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: services_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 190: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 50: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sid = &v + case 181: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ServiceStatistics == nil { + m.ServiceStatistics = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType{} + } + if err := m.ServiceStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: service_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: service_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 191: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Service = append(m.Service, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList{}) + if err := m.Service[len(m.Service)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: service_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: service_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 192: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ssid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ssid = &v + case 193: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceInstanceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServiceInstanceName = &s + iNdEx = postIndex + case 194: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Families", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Families == nil { + m.Families = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType{} + } + if err := m.Families.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: families_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: families_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 195: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Family", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Family = append(m.Family, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList{}) + if err := m.Family[len(m.Family)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: family_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: family_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 196: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FamiliesPresent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FamiliesPresent = &s + iNdEx = postIndex + case 197: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilterDirections", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FilterDirections == nil { + m.FilterDirections = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType{} + } + if err := m.FilterDirections.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: filter_directions_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: filter_directions_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 198: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilterDirection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FilterDirection = append(m.FilterDirection, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList{}) + if err := m.FilterDirection[len(m.FilterDirection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfacesTypeServicesTypeInterfaceListServiceStatisticsTypeServiceListFamiliesTypeFamilyListFilterDirectionsTypeFilterDirectionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: filter_direction_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: filter_direction_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 199: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Direction = &v + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_sets_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_sets_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPollingInterfaces", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPollingInterfaces = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPollingInterfaces", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentPollingInterfaces = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetaData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MetaData == nil { + m.MetaData = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType{} + } + if err := m.MetaData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.QueueStatistics == nil { + m.QueueStatistics = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType{} + } + if err := m.QueueStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: meta_data_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: meta_data_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterfaceSet = append(m.InterfaceSet, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList{}) + if err := m.InterfaceSet[len(m.InterfaceSet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeMetaDataTypeInterfaceSetList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_set_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_set_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ContainerId = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceSetName = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSetType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceSetType = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DeviceName = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Stag", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Stag = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ctag", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ctag = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosEgressTcpName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CosEgressTcpName = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosEgressTcpRemainderName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CosEgressTcpRemainderName = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSetMemberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InterfaceSetMemberCount = &v + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queue_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queue_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceSet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterfaceSet = append(m.InterfaceSet, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList{}) + if err := m.InterfaceSet[len(m.InterfaceSet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_set_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_set_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ContainerId = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PollingEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PollingEnabled = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpcs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fpcs == nil { + m.Fpcs = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType{} + } + if err := m.Fpcs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpcs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpcs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpc", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fpc = append(m.Fpc, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList{}) + if err := m.Fpc[len(m.Fpc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpc_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpc_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Slot = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastUpdateTime = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Queues == nil { + m.Queues = &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType{} + } + if err := m.Queues.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queues_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queues_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Queue = append(m.Queue, &JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList{}) + if err := m.Queue[len(m.Queue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosStatisticsSystemTypeSubscriberManagementTypeDynamicInterfacesTypeInterfaceSetsTypeQueueStatisticsTypeInterfaceSetListFpcsTypeFpcListQueuesTypeQueueList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queue_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queue_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 50: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueNo", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueNo = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmittedPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmittedPackets = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmittedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmittedBytes = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedPackets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedBytes = &v + default: + iNdEx = preIndex + skippy, err := skipBbeStatsdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthBbeStatsdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBbeStatsdTelemetryOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBbeStatsdTelemetryOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBbeStatsdTelemetryOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBbeStatsdTelemetryOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBbeStatsdTelemetryOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBbeStatsdTelemetryOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBbeStatsdTelemetryOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBbeStatsdTelemetryOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/bbe-statsd-telemetry_oc.proto b/schema/bbe-statsd-telemetry_oc.proto new file mode 100755 index 0000000..6d7974a --- /dev/null +++ b/schema/bbe-statsd-telemetry_oc.proto @@ -0,0 +1,160 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_statistics jnpr_junos_statistics_ext = 81; +} + +message junos_statistics { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional dynamic_interfaces_type dynamic_interfaces = 151; + message dynamic_interfaces_type { + optional interfaces_type interfaces = 151; + message interfaces_type { + optional uint32 max_polling_interfaces = 51; + optional uint32 current_polling_interfaces = 52; + optional meta_data_type meta_data = 151; + message meta_data_type { + message interface_list { + optional uint64 sid = 51 [(telemetry_options).is_key = true]; + optional uint32 interface_index = 55; + optional string session_type = 56; + optional string user_name = 57; + optional string profile_name = 58; + optional string interface_name = 59; + optional string interface_set_name = 63; + optional string underlying_interface_name = 60; + optional uint32 cvlan_tag = 61; + optional uint32 svlan_tag = 62; + } + repeated interface_list interface = 151; + } + optional queue_statistics_type queue_statistics = 155; + message queue_statistics_type { + message interface_list { + optional uint64 sid = 51 [(telemetry_options).is_key = true]; + optional bool polling_enabled = 52; + optional fpcs_type fpcs = 151; + message fpcs_type { + message fpc_list { + optional uint32 slot = 51 [(telemetry_options).is_key = true]; + optional uint32 last_update_time = 52; + optional queues_type queues = 151; + message queues_type { + message queue_list { + optional uint32 queue_no = 50 [(telemetry_options).is_key = true]; + optional uint64 transmitted_packets = 52; + optional uint64 transmitted_bytes = 53; + optional uint64 dropped_packets = 54; + optional uint64 dropped_bytes = 55; + } + repeated queue_list queue = 151; + } + } + repeated fpc_list fpc = 151; + } + } + repeated interface_list interface = 151; + } + optional subscriber_statistics_type subscriber_statistics = 160; + message subscriber_statistics_type { + message interface_list { + optional uint64 sid = 50 [(telemetry_options).is_key = true]; + optional uint64 ip_in_packets = 55; + optional uint64 ip_out_packets = 56; + optional uint64 ip_in_bytes = 57; + optional uint64 ip_out_bytes = 58; + optional uint64 ipv6_in_packets = 59; + optional uint64 ipv6_out_packets = 60; + optional uint64 ipv6_in_bytes = 61; + optional uint64 ipv6_out_bytes = 62; + } + repeated interface_list interface = 151; + } + optional services_type services = 180; + message services_type { + message interface_list { + optional uint64 sid = 50 [(telemetry_options).is_key = true]; + optional service_statistics_type service_statistics = 181; + message service_statistics_type { + message service_list { + optional uint64 ssid = 192 [(telemetry_options).is_key = true]; + optional string service_instance_name = 193; + optional families_type families = 194; + message families_type { + message family_list { + optional string families_present = 196 [(telemetry_options).is_key = true]; + optional filter_directions_type filter_directions = 197; + message filter_directions_type { + message filter_direction_list { + optional uint32 direction = 199 [(telemetry_options).is_key = true]; + optional uint64 packets = 59; + optional uint64 bytes = 60; + } + repeated filter_direction_list filter_direction = 198; + } + } + repeated family_list family = 195; + } + } + repeated service_list service = 191; + } + } + repeated interface_list interface = 190; + } + } + optional interface_sets_type interface_sets = 155; + message interface_sets_type { + optional uint32 max_polling_interfaces = 51; + optional uint32 current_polling_interfaces = 52; + optional meta_data_type meta_data = 151; + message meta_data_type { + message interface_set_list { + optional uint32 container_id = 51 [(telemetry_options).is_key = true]; + optional string interface_set_name = 55; + optional string interface_set_type = 56; + optional string device_name = 57; + optional uint32 stag = 58; + optional uint32 ctag = 59; + optional string cos_egress_tcp_name = 60; + optional string cos_egress_tcp_remainder_name = 61; + optional uint32 interface_set_member_count = 62; + } + repeated interface_set_list interface_set = 155; + } + optional queue_statistics_type queue_statistics = 155; + message queue_statistics_type { + message interface_set_list { + optional uint32 container_id = 51 [(telemetry_options).is_key = true]; + optional bool polling_enabled = 52; + optional fpcs_type fpcs = 151; + message fpcs_type { + message fpc_list { + optional uint32 slot = 51 [(telemetry_options).is_key = true]; + optional uint32 last_update_time = 52; + optional queues_type queues = 151; + message queues_type { + message queue_list { + optional uint32 queue_no = 50 [(telemetry_options).is_key = true]; + optional uint64 transmitted_packets = 52; + optional uint64 transmitted_bytes = 53; + optional uint64 dropped_packets = 54; + optional uint64 dropped_bytes = 55; + } + repeated queue_list queue = 151; + } + } + repeated fpc_list fpc = 151; + } + } + repeated interface_set_list interface_set = 151; + } + } + } + } + } +} diff --git a/schema/chassisd_oc.pb.go b/schema/chassisd_oc.pb.go new file mode 100644 index 0000000..f28fdf1 --- /dev/null +++ b/schema/chassisd_oc.pb.go @@ -0,0 +1,5591 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: chassisd_oc.proto + +package schema + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Components struct { + Component []*ComponentsComponentList `protobuf:"bytes,151,rep,name=component" json:"component,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Components) Reset() { *m = Components{} } +func (m *Components) String() string { return proto.CompactTextString(m) } +func (*Components) ProtoMessage() {} +func (*Components) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0} +} +func (m *Components) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Components) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Components.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Components) XXX_Merge(src proto.Message) { + xxx_messageInfo_Components.Merge(m, src) +} +func (m *Components) XXX_Size() int { + return m.Size() +} +func (m *Components) XXX_DiscardUnknown() { + xxx_messageInfo_Components.DiscardUnknown(m) +} + +var xxx_messageInfo_Components proto.InternalMessageInfo + +func (m *Components) GetComponent() []*ComponentsComponentList { + if m != nil { + return m.Component + } + return nil +} + +type ComponentsComponentList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *ComponentsComponentListStateType `protobuf:"bytes,152,opt,name=state" json:"state,omitempty"` + Properties *ComponentsComponentListPropertiesType `protobuf:"bytes,156,opt,name=properties" json:"properties,omitempty"` + Subcomponents *ComponentsComponentListSubcomponentsType `protobuf:"bytes,153,opt,name=subcomponents" json:"subcomponents,omitempty"` + Transceiver *ComponentsComponentListTransceiverType `protobuf:"bytes,161,opt,name=transceiver" json:"transceiver,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentList) Reset() { *m = ComponentsComponentList{} } +func (m *ComponentsComponentList) String() string { return proto.CompactTextString(m) } +func (*ComponentsComponentList) ProtoMessage() {} +func (*ComponentsComponentList) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0} +} +func (m *ComponentsComponentList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentList.Merge(m, src) +} +func (m *ComponentsComponentList) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentList) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentList.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentList proto.InternalMessageInfo + +func (m *ComponentsComponentList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ComponentsComponentList) GetState() *ComponentsComponentListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *ComponentsComponentList) GetProperties() *ComponentsComponentListPropertiesType { + if m != nil { + return m.Properties + } + return nil +} + +func (m *ComponentsComponentList) GetSubcomponents() *ComponentsComponentListSubcomponentsType { + if m != nil { + return m.Subcomponents + } + return nil +} + +func (m *ComponentsComponentList) GetTransceiver() *ComponentsComponentListTransceiverType { + if m != nil { + return m.Transceiver + } + return nil +} + +type ComponentsComponentListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Type *string `protobuf:"bytes,52,opt,name=type" json:"type,omitempty"` + Id *string `protobuf:"bytes,53,opt,name=id" json:"id,omitempty"` + Location *string `protobuf:"bytes,54,opt,name=location" json:"location,omitempty"` + Description *string `protobuf:"bytes,55,opt,name=description" json:"description,omitempty"` + MfgName *string `protobuf:"bytes,56,opt,name=mfg_name,json=mfgName" json:"mfg_name,omitempty"` + MfgDate *string `protobuf:"bytes,57,opt,name=mfg_date,json=mfgDate" json:"mfg_date,omitempty"` + HardwareVersion *string `protobuf:"bytes,58,opt,name=hardware_version,json=hardwareVersion" json:"hardware_version,omitempty"` + FirmwareVersion *string `protobuf:"bytes,59,opt,name=firmware_version,json=firmwareVersion" json:"firmware_version,omitempty"` + SoftwareVersion *string `protobuf:"bytes,60,opt,name=software_version,json=softwareVersion" json:"software_version,omitempty"` + SerialNo *string `protobuf:"bytes,61,opt,name=serial_no,json=serialNo" json:"serial_no,omitempty"` + PartNo *string `protobuf:"bytes,62,opt,name=part_no,json=partNo" json:"part_no,omitempty"` + Removable *bool `protobuf:"varint,63,opt,name=removable" json:"removable,omitempty"` + OperStatus *string `protobuf:"bytes,64,opt,name=oper_status,json=operStatus" json:"oper_status,omitempty"` + Empty *bool `protobuf:"varint,65,opt,name=empty" json:"empty,omitempty"` + Parent *string `protobuf:"bytes,66,opt,name=parent" json:"parent,omitempty"` + Temperature *ComponentsComponentListStateTypeTemperatureType `protobuf:"bytes,160,opt,name=temperature" json:"temperature,omitempty"` + Memory *ComponentsComponentListStateTypeMemoryType `protobuf:"bytes,170,opt,name=memory" json:"memory,omitempty"` + AllocatedPower *uint32 `protobuf:"varint,67,opt,name=allocated_power,json=allocatedPower" json:"allocated_power,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListStateType) Reset() { *m = ComponentsComponentListStateType{} } +func (m *ComponentsComponentListStateType) String() string { return proto.CompactTextString(m) } +func (*ComponentsComponentListStateType) ProtoMessage() {} +func (*ComponentsComponentListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 0} +} +func (m *ComponentsComponentListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListStateType.Merge(m, src) +} +func (m *ComponentsComponentListStateType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListStateType proto.InternalMessageInfo + +func (m *ComponentsComponentListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ComponentsComponentListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *ComponentsComponentListStateType) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *ComponentsComponentListStateType) GetLocation() string { + if m != nil && m.Location != nil { + return *m.Location + } + return "" +} + +func (m *ComponentsComponentListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *ComponentsComponentListStateType) GetMfgName() string { + if m != nil && m.MfgName != nil { + return *m.MfgName + } + return "" +} + +func (m *ComponentsComponentListStateType) GetMfgDate() string { + if m != nil && m.MfgDate != nil { + return *m.MfgDate + } + return "" +} + +func (m *ComponentsComponentListStateType) GetHardwareVersion() string { + if m != nil && m.HardwareVersion != nil { + return *m.HardwareVersion + } + return "" +} + +func (m *ComponentsComponentListStateType) GetFirmwareVersion() string { + if m != nil && m.FirmwareVersion != nil { + return *m.FirmwareVersion + } + return "" +} + +func (m *ComponentsComponentListStateType) GetSoftwareVersion() string { + if m != nil && m.SoftwareVersion != nil { + return *m.SoftwareVersion + } + return "" +} + +func (m *ComponentsComponentListStateType) GetSerialNo() string { + if m != nil && m.SerialNo != nil { + return *m.SerialNo + } + return "" +} + +func (m *ComponentsComponentListStateType) GetPartNo() string { + if m != nil && m.PartNo != nil { + return *m.PartNo + } + return "" +} + +func (m *ComponentsComponentListStateType) GetRemovable() bool { + if m != nil && m.Removable != nil { + return *m.Removable + } + return false +} + +func (m *ComponentsComponentListStateType) GetOperStatus() string { + if m != nil && m.OperStatus != nil { + return *m.OperStatus + } + return "" +} + +func (m *ComponentsComponentListStateType) GetEmpty() bool { + if m != nil && m.Empty != nil { + return *m.Empty + } + return false +} + +func (m *ComponentsComponentListStateType) GetParent() string { + if m != nil && m.Parent != nil { + return *m.Parent + } + return "" +} + +func (m *ComponentsComponentListStateType) GetTemperature() *ComponentsComponentListStateTypeTemperatureType { + if m != nil { + return m.Temperature + } + return nil +} + +func (m *ComponentsComponentListStateType) GetMemory() *ComponentsComponentListStateTypeMemoryType { + if m != nil { + return m.Memory + } + return nil +} + +func (m *ComponentsComponentListStateType) GetAllocatedPower() uint32 { + if m != nil && m.AllocatedPower != nil { + return *m.AllocatedPower + } + return 0 +} + +type ComponentsComponentListStateTypeTemperatureType struct { + Instant *float64 `protobuf:"fixed64,81,opt,name=instant" json:"instant,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListStateTypeTemperatureType) Reset() { + *m = ComponentsComponentListStateTypeTemperatureType{} +} +func (m *ComponentsComponentListStateTypeTemperatureType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListStateTypeTemperatureType) ProtoMessage() {} +func (*ComponentsComponentListStateTypeTemperatureType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 0, 0} +} +func (m *ComponentsComponentListStateTypeTemperatureType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListStateTypeTemperatureType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListStateTypeTemperatureType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListStateTypeTemperatureType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListStateTypeTemperatureType.Merge(m, src) +} +func (m *ComponentsComponentListStateTypeTemperatureType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListStateTypeTemperatureType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListStateTypeTemperatureType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListStateTypeTemperatureType proto.InternalMessageInfo + +func (m *ComponentsComponentListStateTypeTemperatureType) GetInstant() float64 { + if m != nil && m.Instant != nil { + return *m.Instant + } + return 0 +} + +type ComponentsComponentListStateTypeMemoryType struct { + Available *uint64 `protobuf:"varint,91,opt,name=available" json:"available,omitempty"` + Utilized *uint64 `protobuf:"varint,92,opt,name=utilized" json:"utilized,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListStateTypeMemoryType) Reset() { + *m = ComponentsComponentListStateTypeMemoryType{} +} +func (m *ComponentsComponentListStateTypeMemoryType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListStateTypeMemoryType) ProtoMessage() {} +func (*ComponentsComponentListStateTypeMemoryType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 0, 1} +} +func (m *ComponentsComponentListStateTypeMemoryType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListStateTypeMemoryType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListStateTypeMemoryType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListStateTypeMemoryType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListStateTypeMemoryType.Merge(m, src) +} +func (m *ComponentsComponentListStateTypeMemoryType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListStateTypeMemoryType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListStateTypeMemoryType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListStateTypeMemoryType proto.InternalMessageInfo + +func (m *ComponentsComponentListStateTypeMemoryType) GetAvailable() uint64 { + if m != nil && m.Available != nil { + return *m.Available + } + return 0 +} + +func (m *ComponentsComponentListStateTypeMemoryType) GetUtilized() uint64 { + if m != nil && m.Utilized != nil { + return *m.Utilized + } + return 0 +} + +type ComponentsComponentListPropertiesType struct { + Property []*ComponentsComponentListPropertiesTypePropertyList `protobuf:"bytes,151,rep,name=property" json:"property,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListPropertiesType) Reset() { *m = ComponentsComponentListPropertiesType{} } +func (m *ComponentsComponentListPropertiesType) String() string { return proto.CompactTextString(m) } +func (*ComponentsComponentListPropertiesType) ProtoMessage() {} +func (*ComponentsComponentListPropertiesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 1} +} +func (m *ComponentsComponentListPropertiesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListPropertiesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListPropertiesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListPropertiesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListPropertiesType.Merge(m, src) +} +func (m *ComponentsComponentListPropertiesType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListPropertiesType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListPropertiesType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListPropertiesType proto.InternalMessageInfo + +func (m *ComponentsComponentListPropertiesType) GetProperty() []*ComponentsComponentListPropertiesTypePropertyList { + if m != nil { + return m.Property + } + return nil +} + +type ComponentsComponentListPropertiesTypePropertyList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *ComponentsComponentListPropertiesTypePropertyListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListPropertiesTypePropertyList) Reset() { + *m = ComponentsComponentListPropertiesTypePropertyList{} +} +func (m *ComponentsComponentListPropertiesTypePropertyList) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListPropertiesTypePropertyList) ProtoMessage() {} +func (*ComponentsComponentListPropertiesTypePropertyList) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 1, 0} +} +func (m *ComponentsComponentListPropertiesTypePropertyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListPropertiesTypePropertyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListPropertiesTypePropertyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyList.Merge(m, src) +} +func (m *ComponentsComponentListPropertiesTypePropertyList) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListPropertiesTypePropertyList) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyList.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyList proto.InternalMessageInfo + +func (m *ComponentsComponentListPropertiesTypePropertyList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ComponentsComponentListPropertiesTypePropertyList) GetState() *ComponentsComponentListPropertiesTypePropertyListStateType { + if m != nil { + return m.State + } + return nil +} + +type ComponentsComponentListPropertiesTypePropertyListStateType struct { + Value *string `protobuf:"bytes,51,opt,name=value" json:"value,omitempty"` + Configurable *bool `protobuf:"varint,52,opt,name=configurable" json:"configurable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) Reset() { + *m = ComponentsComponentListPropertiesTypePropertyListStateType{} +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListPropertiesTypePropertyListStateType) ProtoMessage() {} +func (*ComponentsComponentListPropertiesTypePropertyListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 1, 0, 0} +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyListStateType.Merge(m, src) +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListPropertiesTypePropertyListStateType proto.InternalMessageInfo + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) GetConfigurable() bool { + if m != nil && m.Configurable != nil { + return *m.Configurable + } + return false +} + +type ComponentsComponentListSubcomponentsType struct { + Subcomponent []*ComponentsComponentListSubcomponentsTypeSubcomponentList `protobuf:"bytes,151,rep,name=subcomponent" json:"subcomponent,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListSubcomponentsType) Reset() { + *m = ComponentsComponentListSubcomponentsType{} +} +func (m *ComponentsComponentListSubcomponentsType) String() string { return proto.CompactTextString(m) } +func (*ComponentsComponentListSubcomponentsType) ProtoMessage() {} +func (*ComponentsComponentListSubcomponentsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 2} +} +func (m *ComponentsComponentListSubcomponentsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListSubcomponentsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListSubcomponentsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListSubcomponentsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListSubcomponentsType.Merge(m, src) +} +func (m *ComponentsComponentListSubcomponentsType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListSubcomponentsType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListSubcomponentsType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListSubcomponentsType proto.InternalMessageInfo + +func (m *ComponentsComponentListSubcomponentsType) GetSubcomponent() []*ComponentsComponentListSubcomponentsTypeSubcomponentList { + if m != nil { + return m.Subcomponent + } + return nil +} + +type ComponentsComponentListSubcomponentsTypeSubcomponentList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) Reset() { + *m = ComponentsComponentListSubcomponentsTypeSubcomponentList{} +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListSubcomponentsTypeSubcomponentList) ProtoMessage() {} +func (*ComponentsComponentListSubcomponentsTypeSubcomponentList) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 2, 0} +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentList.Merge(m, src) +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentList.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentList proto.InternalMessageInfo + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) GetState() *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType { + if m != nil { + return m.State + } + return nil +} + +type ComponentsComponentListSubcomponentsTypeSubcomponentListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) Reset() { + *m = ComponentsComponentListSubcomponentsTypeSubcomponentListStateType{} +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) ProtoMessage() {} +func (*ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 2, 0, 0} +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentListStateType.Merge(m, src) +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListSubcomponentsTypeSubcomponentListStateType proto.InternalMessageInfo + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +type ComponentsComponentListTransceiverType struct { + State *ComponentsComponentListTransceiverTypeStateType `protobuf:"bytes,162,opt,name=state" json:"state,omitempty"` + PhysicalChannels *ComponentsComponentListTransceiverTypePhysicalChannelsType `protobuf:"bytes,191,opt,name=physical_channels,json=physicalChannels" json:"physical_channels,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListTransceiverType) Reset() { + *m = ComponentsComponentListTransceiverType{} +} +func (m *ComponentsComponentListTransceiverType) String() string { return proto.CompactTextString(m) } +func (*ComponentsComponentListTransceiverType) ProtoMessage() {} +func (*ComponentsComponentListTransceiverType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 3} +} +func (m *ComponentsComponentListTransceiverType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListTransceiverType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListTransceiverType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListTransceiverType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListTransceiverType.Merge(m, src) +} +func (m *ComponentsComponentListTransceiverType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListTransceiverType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListTransceiverType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListTransceiverType proto.InternalMessageInfo + +func (m *ComponentsComponentListTransceiverType) GetState() *ComponentsComponentListTransceiverTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *ComponentsComponentListTransceiverType) GetPhysicalChannels() *ComponentsComponentListTransceiverTypePhysicalChannelsType { + if m != nil { + return m.PhysicalChannels + } + return nil +} + +type ComponentsComponentListTransceiverTypeStateType struct { + FormFactorPreconf *string `protobuf:"bytes,255,opt,name=form_factor_preconf,json=formFactorPreconf" json:"form_factor_preconf,omitempty"` + EthernetPmdPreconf *string `protobuf:"bytes,256,opt,name=ethernet_pmd_preconf,json=ethernetPmdPreconf" json:"ethernet_pmd_preconf,omitempty"` + Present *string `protobuf:"bytes,266,opt,name=present" json:"present,omitempty"` + FormFactor *string `protobuf:"bytes,257,opt,name=form_factor,json=formFactor" json:"form_factor,omitempty"` + ConnectorType *string `protobuf:"bytes,258,opt,name=connector_type,json=connectorType" json:"connector_type,omitempty"` + Vendor *string `protobuf:"bytes,259,opt,name=vendor" json:"vendor,omitempty"` + VendorPart *string `protobuf:"bytes,260,opt,name=vendor_part,json=vendorPart" json:"vendor_part,omitempty"` + VendorRev *string `protobuf:"bytes,261,opt,name=vendor_rev,json=vendorRev" json:"vendor_rev,omitempty"` + EthernetPmd *string `protobuf:"bytes,262,opt,name=ethernet_pmd,json=ethernetPmd" json:"ethernet_pmd,omitempty"` + SonetSdhComplianceCode *string `protobuf:"bytes,263,opt,name=sonet_sdh_compliance_code,json=sonetSdhComplianceCode" json:"sonet_sdh_compliance_code,omitempty"` + OtnComplianceCode *string `protobuf:"bytes,264,opt,name=otn_compliance_code,json=otnComplianceCode" json:"otn_compliance_code,omitempty"` + SerialNo *string `protobuf:"bytes,265,opt,name=serial_no,json=serialNo" json:"serial_no,omitempty"` + DateCode *string `protobuf:"bytes,286,opt,name=date_code,json=dateCode" json:"date_code,omitempty"` + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListTransceiverTypeStateType) Reset() { + *m = ComponentsComponentListTransceiverTypeStateType{} +} +func (m *ComponentsComponentListTransceiverTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListTransceiverTypeStateType) ProtoMessage() {} +func (*ComponentsComponentListTransceiverTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 3, 0} +} +func (m *ComponentsComponentListTransceiverTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListTransceiverTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListTransceiverTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListTransceiverTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListTransceiverTypeStateType.Merge(m, src) +} +func (m *ComponentsComponentListTransceiverTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListTransceiverTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListTransceiverTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListTransceiverTypeStateType proto.InternalMessageInfo + +func (m *ComponentsComponentListTransceiverTypeStateType) GetFormFactorPreconf() string { + if m != nil && m.FormFactorPreconf != nil { + return *m.FormFactorPreconf + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetEthernetPmdPreconf() string { + if m != nil && m.EthernetPmdPreconf != nil { + return *m.EthernetPmdPreconf + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetPresent() string { + if m != nil && m.Present != nil { + return *m.Present + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetFormFactor() string { + if m != nil && m.FormFactor != nil { + return *m.FormFactor + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetConnectorType() string { + if m != nil && m.ConnectorType != nil { + return *m.ConnectorType + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetVendor() string { + if m != nil && m.Vendor != nil { + return *m.Vendor + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetVendorPart() string { + if m != nil && m.VendorPart != nil { + return *m.VendorPart + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetVendorRev() string { + if m != nil && m.VendorRev != nil { + return *m.VendorRev + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetEthernetPmd() string { + if m != nil && m.EthernetPmd != nil { + return *m.EthernetPmd + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetSonetSdhComplianceCode() string { + if m != nil && m.SonetSdhComplianceCode != nil { + return *m.SonetSdhComplianceCode + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetOtnComplianceCode() string { + if m != nil && m.OtnComplianceCode != nil { + return *m.OtnComplianceCode + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetSerialNo() string { + if m != nil && m.SerialNo != nil { + return *m.SerialNo + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetDateCode() string { + if m != nil && m.DateCode != nil { + return *m.DateCode + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type ComponentsComponentListTransceiverTypePhysicalChannelsType struct { + Channel []*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList `protobuf:"bytes,91,rep,name=channel" json:"channel,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) Reset() { + *m = ComponentsComponentListTransceiverTypePhysicalChannelsType{} +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListTransceiverTypePhysicalChannelsType) ProtoMessage() {} +func (*ComponentsComponentListTransceiverTypePhysicalChannelsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 3, 1} +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsType.Merge(m, src) +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsType proto.InternalMessageInfo + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) GetChannel() []*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList { + if m != nil { + return m.Channel + } + return nil +} + +type ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList struct { + Index *uint32 `protobuf:"varint,191,opt,name=index" json:"index,omitempty"` + State *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType `protobuf:"bytes,849,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) Reset() { + *m = ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList{} +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) ProtoMessage() {} +func (*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 3, 1, 0} +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList.Merge(m, src) +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList proto.InternalMessageInfo + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) GetState() *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType { + if m != nil { + return m.State + } + return nil +} + +type ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType struct { + Index *uint32 `protobuf:"varint,39,opt,name=index" json:"index,omitempty"` + Description *string `protobuf:"bytes,41,opt,name=description" json:"description,omitempty"` + TxLaser *bool `protobuf:"varint,42,opt,name=tx_laser,json=txLaser" json:"tx_laser,omitempty"` + TargetOutputPower *float64 `protobuf:"fixed64,43,opt,name=target_output_power,json=targetOutputPower" json:"target_output_power,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) Reset() { + *m = ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType{} +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) ProtoMessage() { +} +func (*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0e8a9475610846cf, []int{0, 0, 3, 1, 0, 0} +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType.Merge(m, src) +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType proto.InternalMessageInfo + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) GetTxLaser() bool { + if m != nil && m.TxLaser != nil { + return *m.TxLaser + } + return false +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) GetTargetOutputPower() float64 { + if m != nil && m.TargetOutputPower != nil { + return *m.TargetOutputPower + } + return 0 +} + +var E_JnprComponentsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Components)(nil), + Field: 40, + Name: "jnpr_components_ext", + Tag: "bytes,40,opt,name=jnpr_components_ext", + Filename: "chassisd_oc.proto", +} + +func init() { + proto.RegisterType((*Components)(nil), "components") + proto.RegisterType((*ComponentsComponentList)(nil), "components.component_list") + proto.RegisterType((*ComponentsComponentListStateType)(nil), "components.component_list.state_type") + proto.RegisterType((*ComponentsComponentListStateTypeTemperatureType)(nil), "components.component_list.state_type.temperature_type") + proto.RegisterType((*ComponentsComponentListStateTypeMemoryType)(nil), "components.component_list.state_type.memory_type") + proto.RegisterType((*ComponentsComponentListPropertiesType)(nil), "components.component_list.properties_type") + proto.RegisterType((*ComponentsComponentListPropertiesTypePropertyList)(nil), "components.component_list.properties_type.property_list") + proto.RegisterType((*ComponentsComponentListPropertiesTypePropertyListStateType)(nil), "components.component_list.properties_type.property_list.state_type") + proto.RegisterType((*ComponentsComponentListSubcomponentsType)(nil), "components.component_list.subcomponents_type") + proto.RegisterType((*ComponentsComponentListSubcomponentsTypeSubcomponentList)(nil), "components.component_list.subcomponents_type.subcomponent_list") + proto.RegisterType((*ComponentsComponentListSubcomponentsTypeSubcomponentListStateType)(nil), "components.component_list.subcomponents_type.subcomponent_list.state_type") + proto.RegisterType((*ComponentsComponentListTransceiverType)(nil), "components.component_list.transceiver_type") + proto.RegisterType((*ComponentsComponentListTransceiverTypeStateType)(nil), "components.component_list.transceiver_type.state_type") + proto.RegisterType((*ComponentsComponentListTransceiverTypePhysicalChannelsType)(nil), "components.component_list.transceiver_type.physical_channels_type") + proto.RegisterType((*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList)(nil), "components.component_list.transceiver_type.physical_channels_type.channel_list") + proto.RegisterType((*ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType)(nil), "components.component_list.transceiver_type.physical_channels_type.channel_list.state_type") + proto.RegisterExtension(E_JnprComponentsExt) +} + +func init() { proto.RegisterFile("chassisd_oc.proto", fileDescriptor_0e8a9475610846cf) } + +var fileDescriptor_0e8a9475610846cf = []byte{ + // 1284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0x1b, 0xc5, + 0x1b, 0xd6, 0xba, 0xf9, 0xf2, 0xeb, 0xa6, 0x8d, 0x27, 0x55, 0x33, 0xd9, 0x5f, 0x94, 0x9f, 0x55, + 0x09, 0xea, 0xb6, 0xc4, 0x56, 0x4b, 0x29, 0x6d, 0x29, 0xb4, 0x24, 0x50, 0xa4, 0x02, 0x69, 0x70, + 0x0b, 0x12, 0x2d, 0xd2, 0x32, 0xd9, 0x1d, 0xdb, 0x9b, 0xee, 0xce, 0x2c, 0x33, 0x63, 0x37, 0xe6, + 0x04, 0xe5, 0x9b, 0x0b, 0xc7, 0x82, 0x40, 0x88, 0x8f, 0x03, 0x12, 0x27, 0x10, 0x07, 0xc4, 0x89, + 0x2b, 0x27, 0x04, 0xff, 0x01, 0xaa, 0xc4, 0xdf, 0x01, 0x9a, 0x99, 0x5d, 0x7b, 0xed, 0x84, 0x34, + 0xa5, 0xdc, 0xfc, 0x3e, 0xcf, 0xf3, 0x3e, 0x33, 0xfb, 0xce, 0x3b, 0xef, 0x18, 0xca, 0x7e, 0x9b, + 0x48, 0x19, 0xca, 0xc0, 0xe3, 0x7e, 0x2d, 0x11, 0x5c, 0x71, 0x77, 0x56, 0xd1, 0x88, 0xc6, 0x54, + 0x89, 0x9e, 0xa7, 0x78, 0x62, 0xc1, 0x43, 0x7f, 0xce, 0x01, 0xf8, 0x3c, 0x4e, 0x38, 0xa3, 0x4c, + 0x49, 0x74, 0x06, 0x8a, 0xfd, 0x08, 0xdf, 0x76, 0x2a, 0x7b, 0xaa, 0xa5, 0x13, 0x6e, 0x6d, 0x20, + 0x18, 0xfc, 0xf4, 0xa2, 0x50, 0xaa, 0xc6, 0x40, 0xed, 0x7e, 0x3a, 0x07, 0xfb, 0x86, 0x59, 0x34, + 0x0f, 0x63, 0x8c, 0xc4, 0x14, 0x3f, 0x5c, 0x71, 0xaa, 0xc5, 0xe5, 0xf1, 0x5b, 0x17, 0x0a, 0x53, + 0x4e, 0xc3, 0x40, 0xe8, 0x1c, 0x8c, 0x4b, 0x45, 0x14, 0xc5, 0x1f, 0x3b, 0x15, 0xa7, 0x5a, 0x3a, + 0xf1, 0xc0, 0x3f, 0x2f, 0x52, 0x33, 0x42, 0x4f, 0xf5, 0x12, 0xda, 0xb0, 0x49, 0xe8, 0x59, 0x80, + 0x44, 0xf0, 0x84, 0x0a, 0x15, 0x52, 0x89, 0x3f, 0xb3, 0x16, 0x47, 0x77, 0xb0, 0x18, 0xa8, 0xad, + 0x4f, 0x2e, 0x1d, 0x5d, 0x85, 0x69, 0xd9, 0x59, 0x1f, 0xe4, 0xe2, 0x4f, 0xac, 0xdf, 0xd2, 0x4e, + 0x5b, 0xca, 0x27, 0x58, 0xcb, 0x61, 0x13, 0xb4, 0x0a, 0x25, 0x25, 0x08, 0x93, 0x3e, 0x0d, 0xbb, + 0x54, 0xe0, 0x2f, 0xad, 0xe7, 0xb1, 0x1d, 0x3c, 0x73, 0x72, 0xeb, 0x98, 0x37, 0x70, 0xbf, 0x9e, + 0x00, 0x18, 0x14, 0x02, 0xa1, 0x7c, 0x69, 0xd3, 0x9a, 0x22, 0x18, 0xd3, 0x1c, 0x3e, 0x69, 0x31, + 0xa3, 0xdb, 0x07, 0x85, 0x30, 0xc0, 0x8f, 0x18, 0xa4, 0x10, 0x06, 0xc8, 0x85, 0xa9, 0x88, 0xfb, + 0x44, 0x85, 0x9c, 0xe1, 0x53, 0x06, 0xed, 0xc7, 0xa8, 0x02, 0xa5, 0x80, 0x4a, 0x5f, 0x84, 0x89, + 0xa1, 0x1f, 0x35, 0x74, 0x1e, 0x42, 0xf3, 0x30, 0x15, 0x37, 0x5b, 0x9e, 0x59, 0xf9, 0xb4, 0xa1, + 0x27, 0xe3, 0x66, 0x6b, 0x55, 0x2f, 0x9e, 0x52, 0x81, 0x3e, 0xd3, 0x33, 0x7d, 0xea, 0x29, 0x7d, + 0x5a, 0x47, 0x60, 0xa6, 0x4d, 0x44, 0x70, 0x93, 0x08, 0xea, 0x75, 0xa9, 0x90, 0xda, 0xfc, 0xac, + 0x91, 0xec, 0xcf, 0xf0, 0x97, 0x2c, 0xac, 0xa5, 0xcd, 0x50, 0xc4, 0x43, 0xd2, 0xc7, 0xac, 0x34, + 0xc3, 0x73, 0x52, 0xc9, 0x9b, 0x6a, 0x48, 0x7a, 0xce, 0x4a, 0x33, 0x3c, 0x93, 0xfe, 0x0f, 0x8a, + 0x92, 0x8a, 0x90, 0x44, 0x1e, 0xe3, 0xf8, 0x71, 0xfb, 0xd5, 0x16, 0x58, 0xe5, 0x68, 0x0e, 0x26, + 0x13, 0x22, 0x94, 0xa6, 0x9e, 0x30, 0xd4, 0x84, 0x0e, 0x57, 0x39, 0x5a, 0x80, 0xa2, 0xa0, 0x31, + 0xef, 0x92, 0xf5, 0x88, 0xe2, 0xf3, 0x15, 0xa7, 0x3a, 0xd5, 0x18, 0x00, 0xe8, 0xff, 0x50, 0xd2, + 0x1d, 0xe4, 0xe9, 0x33, 0xe9, 0x48, 0x7c, 0xc1, 0xa4, 0x82, 0x86, 0xae, 0x18, 0x04, 0x1d, 0x80, + 0x71, 0x1a, 0x27, 0xaa, 0x87, 0x9f, 0x34, 0xa9, 0x36, 0x40, 0x07, 0x41, 0xdb, 0xeb, 0xdb, 0xb5, + 0xdc, 0x5f, 0x8c, 0x32, 0x85, 0x5e, 0x86, 0x92, 0xa2, 0x71, 0x42, 0x05, 0x51, 0x1d, 0x41, 0xf1, + 0x17, 0xb6, 0x5d, 0x4e, 0xed, 0xea, 0x56, 0xd4, 0x72, 0x99, 0x59, 0xe7, 0x0c, 0x10, 0x74, 0x09, + 0x26, 0x62, 0x1a, 0x73, 0xd1, 0xc3, 0xdf, 0x5a, 0xd7, 0xe3, 0xbb, 0x73, 0xb5, 0x49, 0xd6, 0x30, + 0x75, 0x40, 0x87, 0x61, 0x3f, 0x89, 0x4c, 0xc3, 0xd0, 0xc0, 0x4b, 0xf8, 0x4d, 0x2a, 0xf0, 0x4a, + 0xc5, 0xa9, 0x4e, 0x37, 0xf6, 0xf5, 0xe1, 0x35, 0x8d, 0xba, 0x0f, 0xc1, 0xcc, 0xe8, 0xae, 0x10, + 0x86, 0xc9, 0x90, 0x49, 0x45, 0x98, 0xc2, 0x2f, 0x54, 0x9c, 0xaa, 0xd3, 0xc8, 0x42, 0xf7, 0x19, + 0x28, 0xe5, 0x56, 0xd3, 0x95, 0x27, 0x5d, 0x12, 0x46, 0xa6, 0xf2, 0xd7, 0x2b, 0x4e, 0x75, 0xac, + 0x31, 0x00, 0x74, 0x0b, 0x77, 0x54, 0x18, 0x85, 0xaf, 0xd3, 0x00, 0xbf, 0x62, 0xc8, 0x7e, 0xec, + 0xfe, 0x54, 0x80, 0xfd, 0x23, 0x77, 0x1d, 0xbd, 0x08, 0x53, 0x29, 0xd4, 0xcb, 0x46, 0xda, 0xe9, + 0xdd, 0x8f, 0x8a, 0x2c, 0xee, 0xd9, 0x81, 0xd7, 0xb7, 0x72, 0x7f, 0x75, 0x60, 0x7a, 0x88, 0xdb, + 0x69, 0xdc, 0x5d, 0xcb, 0xc6, 0xdd, 0x6d, 0x7b, 0x04, 0x2b, 0xff, 0x76, 0x03, 0x5b, 0x87, 0xa1, + 0x7b, 0x71, 0x68, 0x30, 0x1c, 0x80, 0xf1, 0x2e, 0x89, 0x3a, 0xd9, 0x64, 0xb0, 0x01, 0x3a, 0x04, + 0x7b, 0x7d, 0xce, 0x9a, 0x61, 0xab, 0x23, 0x4c, 0x51, 0x4f, 0x9a, 0x9e, 0x1c, 0xc2, 0xdc, 0xef, + 0x0a, 0x80, 0xb6, 0xce, 0x35, 0x14, 0xc0, 0xde, 0x3c, 0x9a, 0x95, 0xf0, 0xfc, 0x3d, 0x4d, 0xc7, + 0x21, 0xc8, 0x56, 0x72, 0xc8, 0xd5, 0xfd, 0xc1, 0x81, 0xf2, 0x16, 0xcd, 0x4e, 0x15, 0x25, 0x23, + 0x15, 0xbd, 0x74, 0x9f, 0xfb, 0xd9, 0xa6, 0xb0, 0x95, 0xbb, 0x4d, 0x5c, 0xf7, 0x9b, 0x22, 0xcc, + 0x8c, 0x8e, 0x6d, 0xf4, 0x7c, 0xb6, 0xb3, 0xaf, 0xee, 0x7e, 0x89, 0x47, 0x93, 0xb7, 0x79, 0xeb, + 0x12, 0x28, 0x27, 0xed, 0x9e, 0x0c, 0x7d, 0x12, 0x79, 0x7e, 0x9b, 0x30, 0x46, 0x23, 0x89, 0x7f, + 0xb6, 0xd6, 0xcb, 0xf7, 0x62, 0xbd, 0xc5, 0xc5, 0x2e, 0x33, 0x93, 0xe1, 0x2b, 0x29, 0xec, 0xde, + 0x1e, 0x1b, 0xfa, 0xf0, 0x3a, 0xcc, 0x36, 0xb9, 0x88, 0xbd, 0x26, 0xf1, 0x15, 0x17, 0x5e, 0x22, + 0xa8, 0x6e, 0x1b, 0xfc, 0x97, 0x63, 0x0a, 0x51, 0xd6, 0xdc, 0x45, 0x43, 0xad, 0x59, 0x06, 0x1d, + 0x87, 0x03, 0x54, 0xb5, 0xa9, 0x60, 0x54, 0x79, 0x49, 0x1c, 0xf4, 0x33, 0xde, 0x28, 0x98, 0x0c, + 0x94, 0x91, 0x6b, 0x71, 0x90, 0xa5, 0xcc, 0xc3, 0x64, 0x22, 0xa8, 0xd4, 0xfd, 0xf5, 0xa1, 0x55, + 0x65, 0xb1, 0x7e, 0x95, 0x72, 0xcb, 0xe3, 0x37, 0x2d, 0x0d, 0x83, 0x65, 0xd1, 0x83, 0xfa, 0x8f, + 0x07, 0x63, 0xd4, 0x6c, 0xcf, 0xbc, 0x80, 0xb7, 0xac, 0x68, 0xba, 0x0f, 0x5f, 0xd5, 0x1f, 0x32, + 0x07, 0x13, 0x5d, 0xca, 0x02, 0x2e, 0xf0, 0x5b, 0x96, 0x4f, 0x43, 0xbd, 0x84, 0xfd, 0xe5, 0xe9, + 0xd1, 0x8f, 0xdf, 0x4e, 0x97, 0xb0, 0xd8, 0x1a, 0x11, 0x0a, 0x2d, 0x42, 0x1a, 0x79, 0x82, 0x76, + 0xf1, 0x3b, 0x56, 0x50, 0xb4, 0x50, 0x83, 0x76, 0xf5, 0xfd, 0xca, 0x7f, 0x32, 0x7e, 0xd7, 0x2a, + 0x4a, 0xb9, 0x4f, 0x45, 0x67, 0x61, 0x5e, 0x72, 0x2d, 0x90, 0x41, 0xdb, 0xd3, 0x87, 0x15, 0x85, + 0x84, 0xf9, 0xd4, 0xf3, 0x79, 0x40, 0xf1, 0x7b, 0x36, 0xe1, 0xa0, 0x51, 0x5c, 0x09, 0xda, 0x2b, + 0x7d, 0x7e, 0x85, 0x07, 0xe6, 0x0c, 0xb8, 0x62, 0x5b, 0xb2, 0xde, 0xb7, 0x59, 0x65, 0xae, 0xd8, + 0x48, 0xc2, 0x42, 0xfe, 0xc9, 0xfb, 0xa0, 0x30, 0xf2, 0xe6, 0x2d, 0x40, 0x51, 0x3f, 0xd4, 0xd6, + 0xe4, 0xf3, 0x94, 0xd5, 0x88, 0xc9, 0xc5, 0x30, 0x49, 0x99, 0x1e, 0x09, 0x81, 0x69, 0xf6, 0xa9, + 0x46, 0x16, 0xba, 0x3f, 0xee, 0x81, 0x83, 0xdb, 0xb7, 0x11, 0x0a, 0x61, 0x32, 0x05, 0xf0, 0x75, + 0x33, 0x20, 0x2e, 0xdf, 0x7f, 0x6f, 0xd6, 0xd2, 0xc8, 0x0e, 0x8c, 0xcc, 0xdf, 0xfd, 0xbe, 0x00, + 0x7b, 0xf3, 0x0c, 0x5a, 0x80, 0xf1, 0x90, 0x05, 0x74, 0xd3, 0x5e, 0x8b, 0xe9, 0x6c, 0x50, 0x58, + 0x10, 0xbd, 0x96, 0xdd, 0xc7, 0xdf, 0x27, 0xcc, 0xa5, 0xb9, 0xf6, 0x1f, 0x6f, 0x6c, 0x9b, 0xc9, + 0xf1, 0x91, 0x33, 0x3a, 0x93, 0xed, 0xfe, 0x0e, 0x9b, 0xb7, 0x32, 0xdd, 0xd7, 0xc8, 0xdf, 0xad, + 0x23, 0xdb, 0xfe, 0xdd, 0x52, 0x9b, 0x5e, 0x44, 0x24, 0x15, 0xf8, 0xa8, 0x3d, 0x09, 0xb5, 0xf9, + 0x9c, 0x0e, 0x51, 0x0d, 0x66, 0x15, 0x11, 0x2d, 0xaa, 0x3c, 0xde, 0x51, 0x49, 0x47, 0xa5, 0x8f, + 0xf1, 0x31, 0xf3, 0xae, 0x96, 0x2d, 0x75, 0xd9, 0x30, 0xe6, 0x3d, 0x3e, 0x7b, 0x15, 0x66, 0x37, + 0x58, 0x22, 0xbc, 0xdc, 0x1c, 0xa4, 0x9b, 0x0a, 0xcd, 0xd5, 0x2e, 0x75, 0x58, 0x98, 0x50, 0xb1, + 0x4a, 0xd5, 0x4d, 0x2e, 0x6e, 0xc8, 0x2b, 0x94, 0x49, 0x2e, 0x24, 0xae, 0x9a, 0x52, 0x95, 0x72, + 0xa5, 0x6a, 0x94, 0xb5, 0xc1, 0x4a, 0x3f, 0x7e, 0x7a, 0x53, 0x2d, 0xbf, 0xfa, 0xcb, 0x9d, 0x45, + 0xe7, 0xb7, 0x3b, 0x8b, 0xce, 0x1f, 0x77, 0x16, 0x9d, 0x6b, 0x8d, 0x56, 0xa8, 0x6a, 0x1b, 0xd6, + 0xaf, 0xc6, 0xa8, 0xaa, 0x87, 0x3e, 0x5d, 0xa7, 0xa2, 0x55, 0x6f, 0x53, 0x12, 0xa9, 0xf6, 0x3a, + 0x57, 0x4b, 0x21, 0x6b, 0x51, 0xa9, 0x96, 0x36, 0x54, 0xb8, 0xc4, 0x88, 0x0a, 0xbb, 0xb4, 0x9e, + 0xdc, 0x68, 0xd5, 0x37, 0x54, 0x58, 0x27, 0x01, 0x49, 0x14, 0x15, 0xb2, 0xee, 0x6d, 0x74, 0x18, + 0x97, 0x75, 0xe9, 0xb7, 0x69, 0x4c, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xba, 0x53, 0xae, 0xab, + 0xc8, 0x0c, 0x00, 0x00, +} + +func (m *Components) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Components) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Components) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Component) > 0 { + for iNdEx := len(m.Component) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Component[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Transceiver != nil { + { + size, err := m.Transceiver.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.Properties != nil { + { + size, err := m.Properties.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Subcomponents != nil { + { + size, err := m.Subcomponents.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Memory != nil { + { + size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xd2 + } + if m.Temperature != nil { + { + size, err := m.Temperature.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.AllocatedPower != nil { + i = encodeVarintChassisdOc(dAtA, i, uint64(*m.AllocatedPower)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.Parent != nil { + i -= len(*m.Parent) + copy(dAtA[i:], *m.Parent) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Parent))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x92 + } + if m.Empty != nil { + i-- + if *m.Empty { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.OperStatus != nil { + i -= len(*m.OperStatus) + copy(dAtA[i:], *m.OperStatus) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.OperStatus))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.Removable != nil { + i-- + if *m.Removable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.PartNo != nil { + i -= len(*m.PartNo) + copy(dAtA[i:], *m.PartNo) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.PartNo))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.SerialNo != nil { + i -= len(*m.SerialNo) + copy(dAtA[i:], *m.SerialNo) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.SerialNo))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.SoftwareVersion != nil { + i -= len(*m.SoftwareVersion) + copy(dAtA[i:], *m.SoftwareVersion) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.SoftwareVersion))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.FirmwareVersion != nil { + i -= len(*m.FirmwareVersion) + copy(dAtA[i:], *m.FirmwareVersion) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.FirmwareVersion))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.HardwareVersion != nil { + i -= len(*m.HardwareVersion) + copy(dAtA[i:], *m.HardwareVersion) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.HardwareVersion))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.MfgDate != nil { + i -= len(*m.MfgDate) + copy(dAtA[i:], *m.MfgDate) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.MfgDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.MfgName != nil { + i -= len(*m.MfgName) + copy(dAtA[i:], *m.MfgName) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.MfgName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Location != nil { + i -= len(*m.Location) + copy(dAtA[i:], *m.Location) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Location))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListStateTypeTemperatureType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListStateTypeTemperatureType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListStateTypeTemperatureType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Instant != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.Instant)))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x89 + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListStateTypeMemoryType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListStateTypeMemoryType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListStateTypeMemoryType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Utilized != nil { + i = encodeVarintChassisdOc(dAtA, i, uint64(*m.Utilized)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.Available != nil { + i = encodeVarintChassisdOc(dAtA, i, uint64(*m.Available)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListPropertiesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListPropertiesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListPropertiesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Property) > 0 { + for iNdEx := len(m.Property) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Property[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListPropertiesTypePropertyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListPropertiesTypePropertyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListPropertiesTypePropertyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Configurable != nil { + i-- + if *m.Configurable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListSubcomponentsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListSubcomponentsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListSubcomponentsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subcomponent) > 0 { + for iNdEx := len(m.Subcomponent) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subcomponent[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListTransceiverType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListTransceiverType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListTransceiverType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PhysicalChannels != nil { + { + size, err := m.PhysicalChannels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xfa + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListTransceiverTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListTransceiverTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListTransceiverTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DateCode != nil { + i -= len(*m.DateCode) + copy(dAtA[i:], *m.DateCode) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.DateCode))) + i-- + dAtA[i] = 0x11 + i-- + dAtA[i] = 0xf2 + } + if m.Present != nil { + i -= len(*m.Present) + copy(dAtA[i:], *m.Present) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Present))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xd2 + } + if m.SerialNo != nil { + i -= len(*m.SerialNo) + copy(dAtA[i:], *m.SerialNo) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.SerialNo))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xca + } + if m.OtnComplianceCode != nil { + i -= len(*m.OtnComplianceCode) + copy(dAtA[i:], *m.OtnComplianceCode) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.OtnComplianceCode))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xc2 + } + if m.SonetSdhComplianceCode != nil { + i -= len(*m.SonetSdhComplianceCode) + copy(dAtA[i:], *m.SonetSdhComplianceCode) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.SonetSdhComplianceCode))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xba + } + if m.EthernetPmd != nil { + i -= len(*m.EthernetPmd) + copy(dAtA[i:], *m.EthernetPmd) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.EthernetPmd))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xb2 + } + if m.VendorRev != nil { + i -= len(*m.VendorRev) + copy(dAtA[i:], *m.VendorRev) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.VendorRev))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xaa + } + if m.VendorPart != nil { + i -= len(*m.VendorPart) + copy(dAtA[i:], *m.VendorPart) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.VendorPart))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xa2 + } + if m.Vendor != nil { + i -= len(*m.Vendor) + copy(dAtA[i:], *m.Vendor) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Vendor))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x9a + } + if m.ConnectorType != nil { + i -= len(*m.ConnectorType) + copy(dAtA[i:], *m.ConnectorType) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.ConnectorType))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x92 + } + if m.FormFactor != nil { + i -= len(*m.FormFactor) + copy(dAtA[i:], *m.FormFactor) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.FormFactor))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x8a + } + if m.EthernetPmdPreconf != nil { + i -= len(*m.EthernetPmdPreconf) + copy(dAtA[i:], *m.EthernetPmdPreconf) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.EthernetPmdPreconf))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x82 + } + if m.FormFactorPreconf != nil { + i -= len(*m.FormFactorPreconf) + copy(dAtA[i:], *m.FormFactorPreconf) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.FormFactorPreconf))) + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xfa + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Channel) > 0 { + for iNdEx := len(m.Channel) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Channel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xda + } + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChassisdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x35 + i-- + dAtA[i] = 0x8a + } + if m.Index != nil { + i = encodeVarintChassisdOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xf8 + } + return len(dAtA) - i, nil +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TargetOutputPower != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.TargetOutputPower)))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd9 + } + if m.TxLaser != nil { + i-- + if *m.TxLaser { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd0 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintChassisdOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xca + } + if m.Index != nil { + i = encodeVarintChassisdOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func encodeVarintChassisdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovChassisdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Components) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Component) > 0 { + for _, e := range m.Component { + l = e.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Subcomponents != nil { + l = m.Subcomponents.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Properties != nil { + l = m.Properties.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Transceiver != nil { + l = m.Transceiver.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Location != nil { + l = len(*m.Location) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.MfgName != nil { + l = len(*m.MfgName) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.MfgDate != nil { + l = len(*m.MfgDate) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.HardwareVersion != nil { + l = len(*m.HardwareVersion) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.FirmwareVersion != nil { + l = len(*m.FirmwareVersion) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.SoftwareVersion != nil { + l = len(*m.SoftwareVersion) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.SerialNo != nil { + l = len(*m.SerialNo) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.PartNo != nil { + l = len(*m.PartNo) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Removable != nil { + n += 3 + } + if m.OperStatus != nil { + l = len(*m.OperStatus) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Empty != nil { + n += 3 + } + if m.Parent != nil { + l = len(*m.Parent) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.AllocatedPower != nil { + n += 2 + sovChassisdOc(uint64(*m.AllocatedPower)) + } + if m.Temperature != nil { + l = m.Temperature.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Memory != nil { + l = m.Memory.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListStateTypeTemperatureType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Instant != nil { + n += 10 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListStateTypeMemoryType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Available != nil { + n += 2 + sovChassisdOc(uint64(*m.Available)) + } + if m.Utilized != nil { + n += 2 + sovChassisdOc(uint64(*m.Utilized)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListPropertiesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Property) > 0 { + for _, e := range m.Property { + l = e.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListPropertiesTypePropertyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Configurable != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListSubcomponentsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subcomponent) > 0 { + for _, e := range m.Subcomponent { + l = e.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListTransceiverType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.PhysicalChannels != nil { + l = m.PhysicalChannels.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListTransceiverTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.FormFactorPreconf != nil { + l = len(*m.FormFactorPreconf) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.EthernetPmdPreconf != nil { + l = len(*m.EthernetPmdPreconf) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.FormFactor != nil { + l = len(*m.FormFactor) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.ConnectorType != nil { + l = len(*m.ConnectorType) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Vendor != nil { + l = len(*m.Vendor) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.VendorPart != nil { + l = len(*m.VendorPart) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.VendorRev != nil { + l = len(*m.VendorRev) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.EthernetPmd != nil { + l = len(*m.EthernetPmd) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.SonetSdhComplianceCode != nil { + l = len(*m.SonetSdhComplianceCode) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.OtnComplianceCode != nil { + l = len(*m.OtnComplianceCode) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.SerialNo != nil { + l = len(*m.SerialNo) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.Present != nil { + l = len(*m.Present) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.DateCode != nil { + l = len(*m.DateCode) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Channel) > 0 { + for _, e := range m.Channel { + l = e.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovChassisdOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovChassisdOc(uint64(*m.Index)) + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovChassisdOc(uint64(l)) + } + if m.TxLaser != nil { + n += 3 + } + if m.TargetOutputPower != nil { + n += 10 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovChassisdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozChassisdOc(x uint64) (n int) { + return sovChassisdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Components) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: components: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: components: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Component = append(m.Component, &ComponentsComponentList{}) + if err := m.Component[len(m.Component)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: component_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: component_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ComponentsComponentListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subcomponents", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subcomponents == nil { + m.Subcomponents = &ComponentsComponentListSubcomponentsType{} + } + if err := m.Subcomponents.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Properties", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Properties == nil { + m.Properties = &ComponentsComponentListPropertiesType{} + } + if err := m.Properties.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transceiver", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Transceiver == nil { + m.Transceiver = &ComponentsComponentListTransceiverType{} + } + if err := m.Transceiver.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Location = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MfgName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MfgName = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MfgDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MfgDate = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HardwareVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HardwareVersion = &s + iNdEx = postIndex + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirmwareVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FirmwareVersion = &s + iNdEx = postIndex + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SoftwareVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SoftwareVersion = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SerialNo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SerialNo = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartNo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PartNo = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Removable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Removable = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperStatus = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Empty", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Empty = &b + case 66: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Parent = &s + iNdEx = postIndex + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocatedPower", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllocatedPower = &v + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Temperature", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Temperature == nil { + m.Temperature = &ComponentsComponentListStateTypeTemperatureType{} + } + if err := m.Temperature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 170: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Memory == nil { + m.Memory = &ComponentsComponentListStateTypeMemoryType{} + } + if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListStateTypeTemperatureType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: temperature_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: temperature_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 81: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Instant", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.Instant = &v2 + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListStateTypeMemoryType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: memory_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: memory_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Available", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Available = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilized", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Utilized = &v + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListPropertiesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: properties_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: properties_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Property", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Property = append(m.Property, &ComponentsComponentListPropertiesTypePropertyList{}) + if err := m.Property[len(m.Property)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListPropertiesTypePropertyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: property_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: property_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ComponentsComponentListPropertiesTypePropertyListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListPropertiesTypePropertyListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Configurable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Configurable = &b + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListSubcomponentsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subcomponents_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subcomponents_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subcomponent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subcomponent = append(m.Subcomponent, &ComponentsComponentListSubcomponentsTypeSubcomponentList{}) + if err := m.Subcomponent[len(m.Subcomponent)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subcomponent_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subcomponent_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ComponentsComponentListSubcomponentsTypeSubcomponentListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListSubcomponentsTypeSubcomponentListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListTransceiverType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: transceiver_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: transceiver_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ComponentsComponentListTransceiverTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 191: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PhysicalChannels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PhysicalChannels == nil { + m.PhysicalChannels = &ComponentsComponentListTransceiverTypePhysicalChannelsType{} + } + if err := m.PhysicalChannels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListTransceiverTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 255: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FormFactorPreconf", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FormFactorPreconf = &s + iNdEx = postIndex + case 256: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetPmdPreconf", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EthernetPmdPreconf = &s + iNdEx = postIndex + case 257: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FormFactor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FormFactor = &s + iNdEx = postIndex + case 258: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectorType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ConnectorType = &s + iNdEx = postIndex + case 259: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vendor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Vendor = &s + iNdEx = postIndex + case 260: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VendorPart", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VendorPart = &s + iNdEx = postIndex + case 261: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VendorRev", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VendorRev = &s + iNdEx = postIndex + case 262: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetPmd", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EthernetPmd = &s + iNdEx = postIndex + case 263: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SonetSdhComplianceCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SonetSdhComplianceCode = &s + iNdEx = postIndex + case 264: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OtnComplianceCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OtnComplianceCode = &s + iNdEx = postIndex + case 265: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SerialNo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SerialNo = &s + iNdEx = postIndex + case 266: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Present", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Present = &s + iNdEx = postIndex + case 286: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DateCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DateCode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: physical_channels_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: physical_channels_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 91: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Channel = append(m.Channel, &ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList{}) + if err := m.Channel[len(m.Channel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: channel_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: channel_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 191: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 849: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsComponentListTransceiverTypePhysicalChannelsTypeChannelListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 39: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 41: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChassisdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChassisdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 42: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TxLaser", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.TxLaser = &b + case 43: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetOutputPower", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.TargetOutputPower = &v2 + default: + iNdEx = preIndex + skippy, err := skipChassisdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthChassisdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipChassisdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowChassisdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthChassisdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupChassisdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthChassisdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthChassisdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowChassisdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupChassisdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/chassisd_oc.proto b/schema/chassisd_oc.proto new file mode 100755 index 0000000..1f3acc4 --- /dev/null +++ b/schema/chassisd_oc.proto @@ -0,0 +1,100 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional components jnpr_components_ext = 40; +} + +message components { + message component_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 152; + message state_type { + optional string name = 51; + optional string type = 52; + optional string id = 53; + optional string location = 54; + optional string description = 55; + optional string mfg_name = 56; + optional string mfg_date = 57; + optional string hardware_version = 58; + optional string firmware_version = 59; + optional string software_version = 60; + optional string serial_no = 61; + optional string part_no = 62; + optional bool removable = 63; + optional string oper_status = 64; + optional bool empty = 65; + optional string parent = 66; + optional temperature_type temperature = 160; + message temperature_type { + optional double instant = 81; + } + optional memory_type memory = 170; + message memory_type { + optional uint64 available = 91; + optional uint64 utilized = 92; + } + optional uint32 allocated_power = 67; + } + optional properties_type properties = 156; + message properties_type { + message property_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string value = 51; + optional bool configurable = 52; + } + } + repeated property_list property = 151; + } + optional subcomponents_type subcomponents = 153; + message subcomponents_type { + message subcomponent_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + } + } + repeated subcomponent_list subcomponent = 151; + } + optional transceiver_type transceiver = 161; + message transceiver_type { + optional state_type state = 162; + message state_type { + optional string form_factor_preconf = 255; + optional string ethernet_pmd_preconf = 256; + optional string present = 266; + optional string form_factor = 257; + optional string connector_type = 258; + optional string vendor = 259; + optional string vendor_part = 260; + optional string vendor_rev = 261; + optional string ethernet_pmd = 262; + optional string sonet_sdh_compliance_code = 263; + optional string otn_compliance_code = 264; + optional string serial_no = 265; + optional string date_code = 286; + optional bool enabled = 51; + } + optional physical_channels_type physical_channels = 191; + message physical_channels_type { + message channel_list { + optional uint32 index = 191 [(telemetry_options).is_key = true]; + optional state_type state = 849; + message state_type { + optional uint32 index = 39; + optional string description = 41; + optional bool tx_laser = 42; + optional double target_output_power = 43; + } + } + repeated channel_list channel = 91; + } + } + } + repeated component_list component = 151; +} diff --git a/schema/cmerror.pb.go b/schema/cmerror.pb.go new file mode 100644 index 0000000..1c43d5f --- /dev/null +++ b/schema/cmerror.pb.go @@ -0,0 +1,1882 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cmerror.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Juniper Error Item information +// +type Error struct { + // Identifier that uniquely identifies the source of + // the error. + // e.g. + // + // junos/system/linecard/0/pcie/0/lane/0/pcie_cmerror_uncorrectable_major + // + Identifier *string `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"` + // Name of the error + Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + // Instance id of the associated resource + ComponentId *uint32 `protobuf:"varint,3,opt,name=component_id,json=componentId" json:"component_id,omitempty"` + // Fru information + FruType *string `protobuf:"bytes,4,opt,name=fru_type,json=fruType" json:"fru_type,omitempty"` + FruSlot *uint32 `protobuf:"varint,5,opt,name=fru_slot,json=fruSlot" json:"fru_slot,omitempty"` + // Scope,Category,Severity + // in which this error belong to. + Scope *string `protobuf:"bytes,6,opt,name=scope" json:"scope,omitempty"` + Category *string `protobuf:"bytes,7,opt,name=category" json:"category,omitempty"` + Severity *string `protobuf:"bytes,8,opt,name=severity" json:"severity,omitempty"` + // Thresholds and action configured for this + // error. + Threshold *uint32 `protobuf:"varint,9,opt,name=threshold" json:"threshold,omitempty"` + Limit *uint32 `protobuf:"varint,10,opt,name=limit" json:"limit,omitempty"` + RaisingThreshold *uint32 `protobuf:"varint,11,opt,name=raising_threshold,json=raisingThreshold" json:"raising_threshold,omitempty"` + ClearingThreshold *uint32 `protobuf:"varint,12,opt,name=clearing_threshold,json=clearingThreshold" json:"clearing_threshold,omitempty"` + Action *uint32 `protobuf:"varint,13,opt,name=action" json:"action,omitempty"` + // local/global/both + ActionHandlingType *uint32 `protobuf:"varint,14,opt,name=action_handling_type,json=actionHandlingType" json:"action_handling_type,omitempty"` + // user configured thresholds and limits for this error. + ConfiguredThreshold *uint32 `protobuf:"varint,15,opt,name=configured_threshold,json=configuredThreshold" json:"configured_threshold,omitempty"` + ConfiguredLimit *uint32 `protobuf:"varint,16,opt,name=configured_limit,json=configuredLimit" json:"configured_limit,omitempty"` + ConfiguredAction *uint32 `protobuf:"varint,17,opt,name=configured_action,json=configuredAction" json:"configured_action,omitempty"` + ConfiguredClearAction *uint32 `protobuf:"varint,18,opt,name=configured_clear_action,json=configuredClearAction" json:"configured_clear_action,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_747f0735808ade43, []int{0} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Error.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return m.Size() +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Error proto.InternalMessageInfo + +func (m *Error) GetIdentifier() string { + if m != nil && m.Identifier != nil { + return *m.Identifier + } + return "" +} + +func (m *Error) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *Error) GetComponentId() uint32 { + if m != nil && m.ComponentId != nil { + return *m.ComponentId + } + return 0 +} + +func (m *Error) GetFruType() string { + if m != nil && m.FruType != nil { + return *m.FruType + } + return "" +} + +func (m *Error) GetFruSlot() uint32 { + if m != nil && m.FruSlot != nil { + return *m.FruSlot + } + return 0 +} + +func (m *Error) GetScope() string { + if m != nil && m.Scope != nil { + return *m.Scope + } + return "" +} + +func (m *Error) GetCategory() string { + if m != nil && m.Category != nil { + return *m.Category + } + return "" +} + +func (m *Error) GetSeverity() string { + if m != nil && m.Severity != nil { + return *m.Severity + } + return "" +} + +func (m *Error) GetThreshold() uint32 { + if m != nil && m.Threshold != nil { + return *m.Threshold + } + return 0 +} + +func (m *Error) GetLimit() uint32 { + if m != nil && m.Limit != nil { + return *m.Limit + } + return 0 +} + +func (m *Error) GetRaisingThreshold() uint32 { + if m != nil && m.RaisingThreshold != nil { + return *m.RaisingThreshold + } + return 0 +} + +func (m *Error) GetClearingThreshold() uint32 { + if m != nil && m.ClearingThreshold != nil { + return *m.ClearingThreshold + } + return 0 +} + +func (m *Error) GetAction() uint32 { + if m != nil && m.Action != nil { + return *m.Action + } + return 0 +} + +func (m *Error) GetActionHandlingType() uint32 { + if m != nil && m.ActionHandlingType != nil { + return *m.ActionHandlingType + } + return 0 +} + +func (m *Error) GetConfiguredThreshold() uint32 { + if m != nil && m.ConfiguredThreshold != nil { + return *m.ConfiguredThreshold + } + return 0 +} + +func (m *Error) GetConfiguredLimit() uint32 { + if m != nil && m.ConfiguredLimit != nil { + return *m.ConfiguredLimit + } + return 0 +} + +func (m *Error) GetConfiguredAction() uint32 { + if m != nil && m.ConfiguredAction != nil { + return *m.ConfiguredAction + } + return 0 +} + +func (m *Error) GetConfiguredClearAction() uint32 { + if m != nil && m.ConfiguredClearAction != nil { + return *m.ConfiguredClearAction + } + return 0 +} + +type GlobalErrorConfiguration struct { + // configuration bucket identifier + Scope *string `protobuf:"bytes,1,opt,name=scope" json:"scope,omitempty"` + Category *string `protobuf:"bytes,2,opt,name=category" json:"category,omitempty"` + Severity *string `protobuf:"bytes,3,opt,name=severity" json:"severity,omitempty"` + // configured parameters for this bucket. + Threshold *uint32 `protobuf:"varint,4,opt,name=threshold" json:"threshold,omitempty"` + Action *uint32 `protobuf:"varint,5,opt,name=action" json:"action,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GlobalErrorConfiguration) Reset() { *m = GlobalErrorConfiguration{} } +func (m *GlobalErrorConfiguration) String() string { return proto.CompactTextString(m) } +func (*GlobalErrorConfiguration) ProtoMessage() {} +func (*GlobalErrorConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_747f0735808ade43, []int{1} +} +func (m *GlobalErrorConfiguration) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GlobalErrorConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GlobalErrorConfiguration.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GlobalErrorConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_GlobalErrorConfiguration.Merge(m, src) +} +func (m *GlobalErrorConfiguration) XXX_Size() int { + return m.Size() +} +func (m *GlobalErrorConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_GlobalErrorConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_GlobalErrorConfiguration proto.InternalMessageInfo + +func (m *GlobalErrorConfiguration) GetScope() string { + if m != nil && m.Scope != nil { + return *m.Scope + } + return "" +} + +func (m *GlobalErrorConfiguration) GetCategory() string { + if m != nil && m.Category != nil { + return *m.Category + } + return "" +} + +func (m *GlobalErrorConfiguration) GetSeverity() string { + if m != nil && m.Severity != nil { + return *m.Severity + } + return "" +} + +func (m *GlobalErrorConfiguration) GetThreshold() uint32 { + if m != nil && m.Threshold != nil { + return *m.Threshold + } + return 0 +} + +func (m *GlobalErrorConfiguration) GetAction() uint32 { + if m != nil && m.Action != nil { + return *m.Action + } + return 0 +} + +// +// Top-level Cmerror message +// +type Cmerror struct { + // collection of error items + ErrorItem []*Error `protobuf:"bytes,1,rep,name=error_item,json=errorItem" json:"error_item,omitempty"` + // last configuration change for cmerror. + LastConfigurationChange *uint64 `protobuf:"varint,2,opt,name=last_configuration_change,json=lastConfigurationChange" json:"last_configuration_change,omitempty"` + // This will toggle at start of every wrap cycle + WrapCycleMarker *bool `protobuf:"varint,3,opt,name=wrap_cycle_marker,json=wrapCycleMarker" json:"wrap_cycle_marker,omitempty"` + // Fru slot identifier + FruSlot *uint32 `protobuf:"varint,4,opt,name=fru_slot,json=fruSlot" json:"fru_slot,omitempty"` + FruType *string `protobuf:"bytes,5,opt,name=fru_type,json=fruType" json:"fru_type,omitempty"` + // Collection of global configuration items + GlobalConfigurationItem []*GlobalErrorConfiguration `protobuf:"bytes,6,rep,name=global_configuration_item,json=globalConfigurationItem" json:"global_configuration_item,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Cmerror) Reset() { *m = Cmerror{} } +func (m *Cmerror) String() string { return proto.CompactTextString(m) } +func (*Cmerror) ProtoMessage() {} +func (*Cmerror) Descriptor() ([]byte, []int) { + return fileDescriptor_747f0735808ade43, []int{2} +} +func (m *Cmerror) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Cmerror) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Cmerror.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Cmerror) XXX_Merge(src proto.Message) { + xxx_messageInfo_Cmerror.Merge(m, src) +} +func (m *Cmerror) XXX_Size() int { + return m.Size() +} +func (m *Cmerror) XXX_DiscardUnknown() { + xxx_messageInfo_Cmerror.DiscardUnknown(m) +} + +var xxx_messageInfo_Cmerror proto.InternalMessageInfo + +func (m *Cmerror) GetErrorItem() []*Error { + if m != nil { + return m.ErrorItem + } + return nil +} + +func (m *Cmerror) GetLastConfigurationChange() uint64 { + if m != nil && m.LastConfigurationChange != nil { + return *m.LastConfigurationChange + } + return 0 +} + +func (m *Cmerror) GetWrapCycleMarker() bool { + if m != nil && m.WrapCycleMarker != nil { + return *m.WrapCycleMarker + } + return false +} + +func (m *Cmerror) GetFruSlot() uint32 { + if m != nil && m.FruSlot != nil { + return *m.FruSlot + } + return 0 +} + +func (m *Cmerror) GetFruType() string { + if m != nil && m.FruType != nil { + return *m.FruType + } + return "" +} + +func (m *Cmerror) GetGlobalConfigurationItem() []*GlobalErrorConfiguration { + if m != nil { + return m.GlobalConfigurationItem + } + return nil +} + +var E_JnprCmerrorExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Cmerror)(nil), + Field: 20, + Name: "jnpr_cmerror_ext", + Tag: "bytes,20,opt,name=jnpr_cmerror_ext", + Filename: "cmerror.proto", +} + +func init() { + proto.RegisterType((*Error)(nil), "Error") + proto.RegisterType((*GlobalErrorConfiguration)(nil), "GlobalErrorConfiguration") + proto.RegisterType((*Cmerror)(nil), "Cmerror") + proto.RegisterExtension(E_JnprCmerrorExt) +} + +func init() { proto.RegisterFile("cmerror.proto", fileDescriptor_747f0735808ade43) } + +var fileDescriptor_747f0735808ade43 = []byte{ + // 678 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xcd, 0x6e, 0xdb, 0x38, + 0x10, 0xc7, 0x21, 0xc7, 0x76, 0x6c, 0x3a, 0x1f, 0x36, 0xe3, 0x5d, 0xcb, 0xc1, 0x22, 0xf0, 0x06, + 0x58, 0xc0, 0xdb, 0xc2, 0x76, 0x9b, 0x43, 0x0f, 0x39, 0xb5, 0x31, 0x82, 0x36, 0xfd, 0x3a, 0x28, + 0xe9, 0xa5, 0x17, 0x95, 0x91, 0xc7, 0x12, 0x1d, 0x89, 0x14, 0xa8, 0x71, 0x12, 0x5f, 0x7b, 0xe8, + 0x63, 0xf4, 0xd6, 0x77, 0xe9, 0xb1, 0x8f, 0x50, 0xe4, 0x49, 0x0a, 0x91, 0xb2, 0x25, 0x07, 0x48, + 0x6e, 0xe2, 0xfc, 0xfe, 0x7f, 0x92, 0x33, 0x9c, 0x11, 0xd9, 0xf6, 0x22, 0x50, 0x4a, 0xaa, 0x61, + 0xac, 0x24, 0xca, 0xfd, 0x3d, 0x84, 0x10, 0x22, 0x40, 0xb5, 0x70, 0x51, 0xc6, 0x26, 0x78, 0xf8, + 0xad, 0x42, 0x2a, 0xa7, 0xa9, 0x88, 0xfe, 0x47, 0x08, 0x9f, 0x80, 0x40, 0x3e, 0xe5, 0xa0, 0x6c, + 0xab, 0x67, 0xf5, 0xeb, 0x27, 0x95, 0xaf, 0x2f, 0x4b, 0x35, 0xcb, 0x29, 0x00, 0x4a, 0x49, 0x59, + 0xb0, 0x08, 0xec, 0x52, 0x2a, 0x70, 0xf4, 0x37, 0xfd, 0x97, 0x6c, 0x79, 0x32, 0x8a, 0xa5, 0x00, + 0x81, 0x2e, 0x9f, 0xd8, 0x1b, 0x3d, 0xab, 0xbf, 0xed, 0x34, 0x56, 0xb1, 0xb3, 0x09, 0xed, 0x92, + 0xda, 0x54, 0xcd, 0x5d, 0x5c, 0xc4, 0x60, 0x97, 0xb5, 0x75, 0x73, 0xaa, 0xe6, 0x17, 0x8b, 0x18, + 0x96, 0x28, 0x09, 0x25, 0xda, 0x15, 0xed, 0x4c, 0xd1, 0x79, 0x28, 0x91, 0xb6, 0x49, 0x25, 0xf1, + 0x64, 0x0c, 0x76, 0x55, 0x5b, 0xcc, 0x82, 0xee, 0x93, 0x9a, 0xc7, 0x10, 0x7c, 0xa9, 0x16, 0xf6, + 0xa6, 0x06, 0xab, 0x75, 0xca, 0x12, 0xb8, 0x06, 0xc5, 0x71, 0x61, 0xd7, 0x0c, 0x5b, 0xae, 0xe9, + 0x3f, 0xa4, 0x8e, 0x81, 0x82, 0x24, 0x90, 0xe1, 0xc4, 0xae, 0xeb, 0x93, 0xf2, 0x40, 0x7a, 0x56, + 0xc8, 0x23, 0x8e, 0x36, 0xd1, 0xc4, 0x2c, 0xe8, 0x53, 0xd2, 0x52, 0x8c, 0x27, 0x5c, 0xf8, 0x6e, + 0xee, 0x6d, 0x68, 0x45, 0x33, 0x03, 0x17, 0xab, 0x2d, 0x06, 0x84, 0x7a, 0x21, 0x30, 0xb5, 0xae, + 0xde, 0xd2, 0xea, 0xd6, 0x92, 0xe4, 0xf2, 0xbf, 0x49, 0x95, 0x79, 0xc8, 0xa5, 0xb0, 0xb7, 0xb5, + 0x24, 0x5b, 0xd1, 0x67, 0xa4, 0x6d, 0xbe, 0xdc, 0x80, 0x89, 0x49, 0xa8, 0x77, 0x4b, 0xeb, 0xb6, + 0xa3, 0x55, 0xd4, 0xb0, 0x37, 0x19, 0xd2, 0x25, 0x7c, 0x4e, 0xda, 0x9e, 0x14, 0x53, 0xee, 0xcf, + 0x15, 0x4c, 0x0a, 0x47, 0xef, 0x6a, 0xc7, 0x5e, 0xce, 0xf2, 0xc3, 0xff, 0x27, 0xcd, 0x82, 0xc5, + 0x64, 0xde, 0xd4, 0xf2, 0xdd, 0x3c, 0xfe, 0x7e, 0x59, 0x83, 0x82, 0x34, 0xbb, 0x72, 0xcb, 0xd4, + 0x20, 0x07, 0xaf, 0xcc, 0xe5, 0x5f, 0x90, 0x4e, 0x41, 0xac, 0x93, 0x5e, 0x5a, 0xa8, 0xb6, 0xfc, + 0x95, 0xe3, 0x71, 0x4a, 0x8d, 0xef, 0xf0, 0xbb, 0x45, 0xec, 0xd7, 0xa1, 0xbc, 0x64, 0xa1, 0x6e, + 0xc7, 0x71, 0x26, 0x62, 0x7a, 0xd3, 0x55, 0x1f, 0x58, 0x0f, 0xf5, 0x41, 0xe9, 0x91, 0x3e, 0xd8, + 0x78, 0xac, 0x0f, 0xca, 0xf7, 0xfb, 0x20, 0x7f, 0x95, 0x4a, 0xf1, 0x55, 0x0e, 0x7f, 0x94, 0xc8, + 0xe6, 0xd8, 0x0c, 0x54, 0x3a, 0x2b, 0xfa, 0xc3, 0xe5, 0x08, 0x91, 0x6d, 0xf5, 0x36, 0xfa, 0x8d, + 0xa3, 0xea, 0x50, 0x5f, 0xdc, 0xa9, 0x6b, 0x72, 0x86, 0x10, 0xd1, 0x63, 0xd2, 0x0d, 0x59, 0x82, + 0xae, 0x57, 0x4c, 0xc6, 0xf5, 0x02, 0x26, 0x7c, 0x33, 0x40, 0x65, 0xa7, 0x93, 0x0a, 0xd6, 0x92, + 0x1d, 0x6b, 0x4c, 0x9f, 0x90, 0xd6, 0x8d, 0x62, 0xb1, 0xeb, 0x2d, 0xbc, 0x10, 0xdc, 0x88, 0xa9, + 0x2b, 0x50, 0x3a, 0x93, 0x9a, 0xb3, 0x9b, 0x82, 0x71, 0x1a, 0xff, 0xa0, 0xc3, 0x6b, 0x13, 0x54, + 0x5e, 0x9f, 0xa0, 0xe2, 0xdc, 0x55, 0xd6, 0xe7, 0xee, 0x13, 0xe9, 0xfa, 0xba, 0xe0, 0xf7, 0xee, + 0xa7, 0x73, 0xaa, 0xea, 0x9c, 0xba, 0xc3, 0x87, 0x9e, 0xc4, 0xe9, 0x18, 0xef, 0x5a, 0x30, 0x4d, + 0xfa, 0xf8, 0x1d, 0x69, 0xce, 0x44, 0xac, 0xdc, 0xec, 0xe7, 0xe3, 0xc2, 0x2d, 0xd2, 0xce, 0xf0, + 0xed, 0x5c, 0xf0, 0x18, 0xd4, 0x47, 0xc0, 0x1b, 0xa9, 0xae, 0x92, 0x73, 0x10, 0x89, 0x54, 0x89, + 0xdd, 0xee, 0x59, 0xfd, 0xc6, 0x51, 0x6d, 0x98, 0x15, 0xd6, 0xd9, 0x49, 0xad, 0xd9, 0xe2, 0xf4, + 0x16, 0x4f, 0xbe, 0xfc, 0xbc, 0x3b, 0xb0, 0x7e, 0xdd, 0x1d, 0x58, 0xbf, 0xef, 0x0e, 0xac, 0xcf, + 0x8e, 0xcf, 0x71, 0x38, 0x33, 0x3b, 0x0d, 0x05, 0xe0, 0x88, 0x7b, 0x70, 0x09, 0xca, 0x1f, 0x05, + 0xc0, 0x42, 0x0c, 0x2e, 0x25, 0x0e, 0xb8, 0xf0, 0x21, 0xc1, 0xc1, 0x0c, 0xf9, 0x40, 0x30, 0xe4, + 0xd7, 0x30, 0x8a, 0xaf, 0xfc, 0xd1, 0x0c, 0xf9, 0x88, 0x4d, 0x58, 0x8c, 0xa0, 0x92, 0x91, 0x3b, + 0x9b, 0x0b, 0x99, 0x8c, 0x12, 0x2f, 0x80, 0x88, 0xfd, 0x09, 0x00, 0x00, 0xff, 0xff, 0x69, 0x64, + 0xbf, 0x1b, 0x25, 0x05, 0x00, 0x00, +} + +func (m *Error) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Error) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ConfiguredClearAction != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ConfiguredClearAction)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.ConfiguredAction != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ConfiguredAction)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.ConfiguredLimit != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ConfiguredLimit)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.ConfiguredThreshold != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ConfiguredThreshold)) + i-- + dAtA[i] = 0x78 + } + if m.ActionHandlingType != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ActionHandlingType)) + i-- + dAtA[i] = 0x70 + } + if m.Action != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.Action)) + i-- + dAtA[i] = 0x68 + } + if m.ClearingThreshold != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ClearingThreshold)) + i-- + dAtA[i] = 0x60 + } + if m.RaisingThreshold != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.RaisingThreshold)) + i-- + dAtA[i] = 0x58 + } + if m.Limit != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.Limit)) + i-- + dAtA[i] = 0x50 + } + if m.Threshold != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.Threshold)) + i-- + dAtA[i] = 0x48 + } + if m.Severity != nil { + i -= len(*m.Severity) + copy(dAtA[i:], *m.Severity) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Severity))) + i-- + dAtA[i] = 0x42 + } + if m.Category != nil { + i -= len(*m.Category) + copy(dAtA[i:], *m.Category) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Category))) + i-- + dAtA[i] = 0x3a + } + if m.Scope != nil { + i -= len(*m.Scope) + copy(dAtA[i:], *m.Scope) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Scope))) + i-- + dAtA[i] = 0x32 + } + if m.FruSlot != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.FruSlot)) + i-- + dAtA[i] = 0x28 + } + if m.FruType != nil { + i -= len(*m.FruType) + copy(dAtA[i:], *m.FruType) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.FruType))) + i-- + dAtA[i] = 0x22 + } + if m.ComponentId != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.ComponentId)) + i-- + dAtA[i] = 0x18 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x12 + } + if m.Identifier != nil { + i -= len(*m.Identifier) + copy(dAtA[i:], *m.Identifier) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GlobalErrorConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GlobalErrorConfiguration) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GlobalErrorConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Action != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.Action)) + i-- + dAtA[i] = 0x28 + } + if m.Threshold != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.Threshold)) + i-- + dAtA[i] = 0x20 + } + if m.Severity != nil { + i -= len(*m.Severity) + copy(dAtA[i:], *m.Severity) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Severity))) + i-- + dAtA[i] = 0x1a + } + if m.Category != nil { + i -= len(*m.Category) + copy(dAtA[i:], *m.Category) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Category))) + i-- + dAtA[i] = 0x12 + } + if m.Scope != nil { + i -= len(*m.Scope) + copy(dAtA[i:], *m.Scope) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.Scope))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Cmerror) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Cmerror) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Cmerror) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.GlobalConfigurationItem) > 0 { + for iNdEx := len(m.GlobalConfigurationItem) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GlobalConfigurationItem[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCmerror(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.FruType != nil { + i -= len(*m.FruType) + copy(dAtA[i:], *m.FruType) + i = encodeVarintCmerror(dAtA, i, uint64(len(*m.FruType))) + i-- + dAtA[i] = 0x2a + } + if m.FruSlot != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.FruSlot)) + i-- + dAtA[i] = 0x20 + } + if m.WrapCycleMarker != nil { + i-- + if *m.WrapCycleMarker { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.LastConfigurationChange != nil { + i = encodeVarintCmerror(dAtA, i, uint64(*m.LastConfigurationChange)) + i-- + dAtA[i] = 0x10 + } + if len(m.ErrorItem) > 0 { + for iNdEx := len(m.ErrorItem) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ErrorItem[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCmerror(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintCmerror(dAtA []byte, offset int, v uint64) int { + offset -= sovCmerror(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Error) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Identifier != nil { + l = len(*m.Identifier) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.ComponentId != nil { + n += 1 + sovCmerror(uint64(*m.ComponentId)) + } + if m.FruType != nil { + l = len(*m.FruType) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.FruSlot != nil { + n += 1 + sovCmerror(uint64(*m.FruSlot)) + } + if m.Scope != nil { + l = len(*m.Scope) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Category != nil { + l = len(*m.Category) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Severity != nil { + l = len(*m.Severity) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Threshold != nil { + n += 1 + sovCmerror(uint64(*m.Threshold)) + } + if m.Limit != nil { + n += 1 + sovCmerror(uint64(*m.Limit)) + } + if m.RaisingThreshold != nil { + n += 1 + sovCmerror(uint64(*m.RaisingThreshold)) + } + if m.ClearingThreshold != nil { + n += 1 + sovCmerror(uint64(*m.ClearingThreshold)) + } + if m.Action != nil { + n += 1 + sovCmerror(uint64(*m.Action)) + } + if m.ActionHandlingType != nil { + n += 1 + sovCmerror(uint64(*m.ActionHandlingType)) + } + if m.ConfiguredThreshold != nil { + n += 1 + sovCmerror(uint64(*m.ConfiguredThreshold)) + } + if m.ConfiguredLimit != nil { + n += 2 + sovCmerror(uint64(*m.ConfiguredLimit)) + } + if m.ConfiguredAction != nil { + n += 2 + sovCmerror(uint64(*m.ConfiguredAction)) + } + if m.ConfiguredClearAction != nil { + n += 2 + sovCmerror(uint64(*m.ConfiguredClearAction)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GlobalErrorConfiguration) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Scope != nil { + l = len(*m.Scope) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Category != nil { + l = len(*m.Category) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Severity != nil { + l = len(*m.Severity) + n += 1 + l + sovCmerror(uint64(l)) + } + if m.Threshold != nil { + n += 1 + sovCmerror(uint64(*m.Threshold)) + } + if m.Action != nil { + n += 1 + sovCmerror(uint64(*m.Action)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Cmerror) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ErrorItem) > 0 { + for _, e := range m.ErrorItem { + l = e.Size() + n += 1 + l + sovCmerror(uint64(l)) + } + } + if m.LastConfigurationChange != nil { + n += 1 + sovCmerror(uint64(*m.LastConfigurationChange)) + } + if m.WrapCycleMarker != nil { + n += 2 + } + if m.FruSlot != nil { + n += 1 + sovCmerror(uint64(*m.FruSlot)) + } + if m.FruType != nil { + l = len(*m.FruType) + n += 1 + l + sovCmerror(uint64(l)) + } + if len(m.GlobalConfigurationItem) > 0 { + for _, e := range m.GlobalConfigurationItem { + l = e.Size() + n += 1 + l + sovCmerror(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovCmerror(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCmerror(x uint64) (n int) { + return sovCmerror(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Error) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Error: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Identifier = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ComponentId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ComponentId = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FruType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FruType = &s + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FruSlot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FruSlot = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Scope = &s + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Category = &s + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Severity = &s + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Threshold = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Limit = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RaisingThreshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RaisingThreshold = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClearingThreshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClearingThreshold = &v + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Action = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionHandlingType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActionHandlingType = &v + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredThreshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredThreshold = &v + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredLimit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredLimit = &v + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredAction", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredAction = &v + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredClearAction", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredClearAction = &v + default: + iNdEx = preIndex + skippy, err := skipCmerror(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCmerror + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCmerror + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GlobalErrorConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GlobalErrorConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GlobalErrorConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Scope = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Category = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Severity = &s + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Threshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Threshold = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Action = &v + default: + iNdEx = preIndex + skippy, err := skipCmerror(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCmerror + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCmerror + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Cmerror) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Cmerror: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cmerror: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorItem", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ErrorItem = append(m.ErrorItem, &Error{}) + if err := m.ErrorItem[len(m.ErrorItem)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastConfigurationChange", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastConfigurationChange = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WrapCycleMarker", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.WrapCycleMarker = &b + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FruSlot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FruSlot = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FruType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FruType = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalConfigurationItem", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerror + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCmerror + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCmerror + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GlobalConfigurationItem = append(m.GlobalConfigurationItem, &GlobalErrorConfiguration{}) + if err := m.GlobalConfigurationItem[len(m.GlobalConfigurationItem)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCmerror(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCmerror + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCmerror + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCmerror(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCmerror + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCmerror + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCmerror + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCmerror + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCmerror + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCmerror + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCmerror = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCmerror = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCmerror = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/cmerror.proto b/schema/cmerror.proto new file mode 100755 index 0000000..d741873 --- /dev/null +++ b/schema/cmerror.proto @@ -0,0 +1,134 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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 optional 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. +// + +// +// Balagopal Ambalakkat,Sumanth Kamatala, 2016 +// +// This defines the gpb message format used exporting +// cmerror configuration information. +// +// The top level message is Cmerror +// The message is a collection of error items. +// +// +// Version 1.0 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// Juniper Error Item information +// +message Error { + + // Identifier that uniquely identifies the source of + // the error. + // e.g. + // + // junos/system/linecard/0/pcie/0/lane/0/pcie_cmerror_uncorrectable_major + // + optional string identifier = 1 [(telemetry_options).is_key = true]; + + // Name of the error + optional string name = 2; + + // Instance id of the associated resource + optional uint32 component_id = 3; + + // Fru information + optional string fru_type = 4; + optional uint32 fru_slot = 5; + + + + // Scope,Category,Severity + // in which this error belong to. + optional string scope = 6; + optional string category = 7; + optional string severity = 8; + + // Thresholds and action configured for this + // error. + optional uint32 threshold = 9; + optional uint32 limit = 10; + optional uint32 raising_threshold = 11; + optional uint32 clearing_threshold = 12; + optional uint32 action = 13; + + // local/global/both + optional uint32 action_handling_type = 14; + + // user configured thresholds and limits for this error. + optional uint32 configured_threshold = 15; + optional uint32 configured_limit = 16; + optional uint32 configured_action = 17; + optional uint32 configured_clear_action = 18; + +} + +message GlobalErrorConfiguration { + + // configuration bucket identifier + optional string scope = 1; + optional string category = 2; + optional string severity = 3; + + // configured parameters for this bucket. + optional uint32 threshold = 4; + optional uint32 action = 5; + +} + +// +// Top-level Cmerror message +// +message Cmerror { + + // collection of error items + repeated Error error_item = 1; + + // last configuration change for cmerror. + optional uint64 last_configuration_change = 2; + + /* This will toggle at start of every wrap cycle */ + optional bool wrap_cycle_marker = 3; + + // Fru slot identifier + optional uint32 fru_slot = 4; + optional string fru_type = 5; + + // Collection of global configuration items + repeated GlobalErrorConfiguration global_configuration_item = 6; +} + + +// +// This occupies branch 20 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional Cmerror jnpr_cmerror_ext = 20; +} + diff --git a/schema/cmerror_data.pb.go b/schema/cmerror_data.pb.go new file mode 100644 index 0000000..2bec7f4 --- /dev/null +++ b/schema/cmerror_data.pb.go @@ -0,0 +1,1585 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cmerror_data.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Juniper Error Item information +// +type ErrorData struct { + // Identifier that uniquely identifies the source of + // the error. + Identifier *string `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"` + Count *uint64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` + LastUpdated *uint64 `protobuf:"varint,3,opt,name=last_updated,json=lastUpdated" json:"last_updated,omitempty"` + IsEnabled *bool `protobuf:"varint,4,opt,name=is_enabled,json=isEnabled" json:"is_enabled,omitempty"` + // Additional Metadata for error processing + ModuleId *uint32 `protobuf:"varint,5,opt,name=module_id,json=moduleId" json:"module_id,omitempty"` + ComponentId *uint32 `protobuf:"varint,6,opt,name=component_id,json=componentId" json:"component_id,omitempty"` + ErrorCode *uint32 `protobuf:"varint,7,opt,name=error_code,json=errorCode" json:"error_code,omitempty"` + // Additional stats for each of the error + OccurCount *uint32 `protobuf:"varint,8,opt,name=occur_count,json=occurCount" json:"occur_count,omitempty"` + ClearedCount *uint32 `protobuf:"varint,9,opt,name=cleared_count,json=clearedCount" json:"cleared_count,omitempty"` + LastClearedAt *uint64 `protobuf:"varint,10,opt,name=last_cleared_at,json=lastClearedAt" json:"last_cleared_at,omitempty"` + ActionCount *uint32 `protobuf:"varint,11,opt,name=action_count,json=actionCount" json:"action_count,omitempty"` + LastActionTakenAt *uint64 `protobuf:"varint,12,opt,name=last_action_taken_at,json=lastActionTakenAt" json:"last_action_taken_at,omitempty"` + // Fru information + FruType *string `protobuf:"bytes,13,opt,name=fru_type,json=fruType" json:"fru_type,omitempty"` + FruSlot *uint32 `protobuf:"varint,14,opt,name=fru_slot,json=fruSlot" json:"fru_slot,omitempty"` + // Help information regarding the error. + Description *string `protobuf:"bytes,15,opt,name=description" json:"description,omitempty"` + Help *string `protobuf:"bytes,16,opt,name=help" json:"help,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorData) Reset() { *m = ErrorData{} } +func (m *ErrorData) String() string { return proto.CompactTextString(m) } +func (*ErrorData) ProtoMessage() {} +func (*ErrorData) Descriptor() ([]byte, []int) { + return fileDescriptor_9e62e0d982e26602, []int{0} +} +func (m *ErrorData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ErrorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ErrorData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ErrorData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorData.Merge(m, src) +} +func (m *ErrorData) XXX_Size() int { + return m.Size() +} +func (m *ErrorData) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorData.DiscardUnknown(m) +} + +var xxx_messageInfo_ErrorData proto.InternalMessageInfo + +func (m *ErrorData) GetIdentifier() string { + if m != nil && m.Identifier != nil { + return *m.Identifier + } + return "" +} + +func (m *ErrorData) GetCount() uint64 { + if m != nil && m.Count != nil { + return *m.Count + } + return 0 +} + +func (m *ErrorData) GetLastUpdated() uint64 { + if m != nil && m.LastUpdated != nil { + return *m.LastUpdated + } + return 0 +} + +func (m *ErrorData) GetIsEnabled() bool { + if m != nil && m.IsEnabled != nil { + return *m.IsEnabled + } + return false +} + +func (m *ErrorData) GetModuleId() uint32 { + if m != nil && m.ModuleId != nil { + return *m.ModuleId + } + return 0 +} + +func (m *ErrorData) GetComponentId() uint32 { + if m != nil && m.ComponentId != nil { + return *m.ComponentId + } + return 0 +} + +func (m *ErrorData) GetErrorCode() uint32 { + if m != nil && m.ErrorCode != nil { + return *m.ErrorCode + } + return 0 +} + +func (m *ErrorData) GetOccurCount() uint32 { + if m != nil && m.OccurCount != nil { + return *m.OccurCount + } + return 0 +} + +func (m *ErrorData) GetClearedCount() uint32 { + if m != nil && m.ClearedCount != nil { + return *m.ClearedCount + } + return 0 +} + +func (m *ErrorData) GetLastClearedAt() uint64 { + if m != nil && m.LastClearedAt != nil { + return *m.LastClearedAt + } + return 0 +} + +func (m *ErrorData) GetActionCount() uint32 { + if m != nil && m.ActionCount != nil { + return *m.ActionCount + } + return 0 +} + +func (m *ErrorData) GetLastActionTakenAt() uint64 { + if m != nil && m.LastActionTakenAt != nil { + return *m.LastActionTakenAt + } + return 0 +} + +func (m *ErrorData) GetFruType() string { + if m != nil && m.FruType != nil { + return *m.FruType + } + return "" +} + +func (m *ErrorData) GetFruSlot() uint32 { + if m != nil && m.FruSlot != nil { + return *m.FruSlot + } + return 0 +} + +func (m *ErrorData) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *ErrorData) GetHelp() string { + if m != nil && m.Help != nil { + return *m.Help + } + return "" +} + +type ErrorResourceInfo struct { + // resource id e.g pfe identifier + Id *uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` + // resource type e.g pfe/pic + Type *string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` + // resource state e.g enabled /disabled + State *uint32 `protobuf:"varint,3,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorResourceInfo) Reset() { *m = ErrorResourceInfo{} } +func (m *ErrorResourceInfo) String() string { return proto.CompactTextString(m) } +func (*ErrorResourceInfo) ProtoMessage() {} +func (*ErrorResourceInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_9e62e0d982e26602, []int{1} +} +func (m *ErrorResourceInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ErrorResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ErrorResourceInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ErrorResourceInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorResourceInfo.Merge(m, src) +} +func (m *ErrorResourceInfo) XXX_Size() int { + return m.Size() +} +func (m *ErrorResourceInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorResourceInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ErrorResourceInfo proto.InternalMessageInfo + +func (m *ErrorResourceInfo) GetId() uint32 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *ErrorResourceInfo) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *ErrorResourceInfo) GetState() uint32 { + if m != nil && m.State != nil { + return *m.State + } + return 0 +} + +// +// Top-level CmerrorData message +// +type CmerrorData struct { + // collection of error items + ErrorItem []*ErrorData `protobuf:"bytes,1,rep,name=error_item,json=errorItem" json:"error_item,omitempty"` + // Fru slot identifier + FruSlot *uint32 `protobuf:"varint,2,opt,name=fru_slot,json=fruSlot" json:"fru_slot,omitempty"` + FruType *string `protobuf:"bytes,3,opt,name=fru_type,json=fruType" json:"fru_type,omitempty"` + // collection of resource states from fru + ResourceItem []*ErrorResourceInfo `protobuf:"bytes,4,rep,name=resource_item,json=resourceItem" json:"resource_item,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CmerrorData) Reset() { *m = CmerrorData{} } +func (m *CmerrorData) String() string { return proto.CompactTextString(m) } +func (*CmerrorData) ProtoMessage() {} +func (*CmerrorData) Descriptor() ([]byte, []int) { + return fileDescriptor_9e62e0d982e26602, []int{2} +} +func (m *CmerrorData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CmerrorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CmerrorData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CmerrorData) XXX_Merge(src proto.Message) { + xxx_messageInfo_CmerrorData.Merge(m, src) +} +func (m *CmerrorData) XXX_Size() int { + return m.Size() +} +func (m *CmerrorData) XXX_DiscardUnknown() { + xxx_messageInfo_CmerrorData.DiscardUnknown(m) +} + +var xxx_messageInfo_CmerrorData proto.InternalMessageInfo + +func (m *CmerrorData) GetErrorItem() []*ErrorData { + if m != nil { + return m.ErrorItem + } + return nil +} + +func (m *CmerrorData) GetFruSlot() uint32 { + if m != nil && m.FruSlot != nil { + return *m.FruSlot + } + return 0 +} + +func (m *CmerrorData) GetFruType() string { + if m != nil && m.FruType != nil { + return *m.FruType + } + return "" +} + +func (m *CmerrorData) GetResourceItem() []*ErrorResourceInfo { + if m != nil { + return m.ResourceItem + } + return nil +} + +var E_JnprCmerrorDataExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*CmerrorData)(nil), + Field: 21, + Name: "jnpr_cmerror_data_ext", + Tag: "bytes,21,opt,name=jnpr_cmerror_data_ext", + Filename: "cmerror_data.proto", +} + +func init() { + proto.RegisterType((*ErrorData)(nil), "ErrorData") + proto.RegisterType((*ErrorResourceInfo)(nil), "ErrorResourceInfo") + proto.RegisterType((*CmerrorData)(nil), "CmerrorData") + proto.RegisterExtension(E_JnprCmerrorDataExt) +} + +func init() { proto.RegisterFile("cmerror_data.proto", fileDescriptor_9e62e0d982e26602) } + +var fileDescriptor_9e62e0d982e26602 = []byte{ + // 626 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x93, 0xcf, 0x6e, 0x13, 0x3d, + 0x14, 0xc5, 0x35, 0x69, 0xf2, 0x35, 0xf1, 0x24, 0xfd, 0xe3, 0xaf, 0x15, 0x86, 0x8a, 0x2a, 0x54, + 0x02, 0x05, 0xa4, 0x24, 0x52, 0x17, 0x20, 0xb1, 0xa2, 0x0d, 0x5d, 0x04, 0x09, 0x16, 0xd3, 0x22, + 0x21, 0x36, 0x83, 0x3b, 0xbe, 0x49, 0x9c, 0xce, 0xd8, 0x23, 0xfb, 0x0e, 0xb4, 0x5b, 0x5e, 0x86, + 0x57, 0xe9, 0x92, 0x47, 0x40, 0x7d, 0x12, 0x64, 0x3b, 0xa9, 0xa6, 0x62, 0x37, 0xb9, 0xbf, 0x73, + 0x8f, 0x7d, 0xae, 0x6f, 0x08, 0xcd, 0x0a, 0x30, 0x46, 0x9b, 0x54, 0x70, 0xe4, 0xa3, 0xd2, 0x68, + 0xd4, 0x4f, 0xfe, 0x47, 0xc8, 0xa1, 0x00, 0x34, 0x37, 0x29, 0xea, 0x32, 0x14, 0x8f, 0x6e, 0x9b, + 0xa4, 0x73, 0xe6, 0x94, 0xef, 0x39, 0x72, 0xfa, 0x9c, 0x10, 0x29, 0x40, 0xa1, 0x9c, 0x49, 0x30, + 0x2c, 0xea, 0x47, 0x83, 0xce, 0x69, 0xeb, 0xe7, 0xbb, 0x46, 0x3b, 0x4a, 0x6a, 0x80, 0x1e, 0x90, + 0x56, 0xa6, 0x2b, 0x85, 0xac, 0xd1, 0x8f, 0x06, 0x4d, 0xaf, 0x60, 0x51, 0x12, 0x6a, 0x74, 0x40, + 0xba, 0x39, 0xb7, 0x98, 0x56, 0xa5, 0xe0, 0x08, 0x82, 0x6d, 0xdc, 0x6b, 0x76, 0xa2, 0x24, 0x76, + 0xe8, 0x73, 0x20, 0xf4, 0x29, 0x21, 0xd2, 0xa6, 0xa0, 0xf8, 0x65, 0x0e, 0x82, 0x35, 0xfb, 0xd1, + 0xa0, 0x9d, 0x74, 0xa4, 0x3d, 0x0b, 0x05, 0x7a, 0x40, 0x3a, 0x85, 0x16, 0x55, 0x0e, 0xa9, 0x14, + 0xac, 0xd5, 0x8f, 0x06, 0xbd, 0xa4, 0x1d, 0x0a, 0x53, 0x41, 0x9f, 0x91, 0x6e, 0xa6, 0x8b, 0x52, + 0x2b, 0x50, 0xe8, 0xf8, 0x7f, 0x9e, 0xc7, 0xf7, 0xb5, 0xa9, 0xb7, 0x0f, 0x33, 0xc8, 0xb4, 0x00, + 0xb6, 0xe9, 0x05, 0x1d, 0x5f, 0x99, 0x68, 0x01, 0xf4, 0x05, 0x89, 0x75, 0x96, 0x55, 0x0e, 0xbb, + 0x28, 0x6d, 0xc7, 0xd7, 0x51, 0x88, 0x27, 0x13, 0x9f, 0xe7, 0x15, 0xe9, 0x65, 0x39, 0x70, 0x03, + 0x62, 0xa5, 0xec, 0xd4, 0x95, 0xdd, 0x15, 0x0b, 0xda, 0x21, 0xd9, 0xf6, 0xd9, 0xd7, 0x0d, 0x1c, + 0x19, 0xa9, 0xc7, 0xef, 0x39, 0x3a, 0x09, 0xf0, 0xc4, 0x8f, 0x8a, 0x67, 0x28, 0xb5, 0x5a, 0x39, + 0xc7, 0x75, 0xe7, 0x38, 0xa0, 0x60, 0xfc, 0x9a, 0xec, 0x79, 0xe3, 0x95, 0x1c, 0xf9, 0x15, 0x28, + 0xe7, 0xde, 0xad, 0xbb, 0xef, 0x3a, 0xc9, 0x89, 0x57, 0x5c, 0x38, 0xc1, 0x09, 0xd2, 0xc7, 0xa4, + 0x3d, 0x33, 0x55, 0x8a, 0x37, 0x25, 0xb0, 0x9e, 0x7b, 0xce, 0x64, 0x73, 0x66, 0xaa, 0x8b, 0x9b, + 0x12, 0xd6, 0xc8, 0xe6, 0x1a, 0xd9, 0x96, 0x1f, 0x8e, 0x43, 0xe7, 0xb9, 0x46, 0xda, 0x27, 0xb1, + 0x00, 0x9b, 0x19, 0x59, 0x3a, 0x2f, 0xb6, 0xed, 0x1b, 0xeb, 0x25, 0x4a, 0x49, 0x73, 0x01, 0x79, + 0xc9, 0x76, 0x3c, 0xf2, 0xdf, 0x47, 0x1f, 0xc9, 0xae, 0xdf, 0xa4, 0x04, 0xac, 0xae, 0x4c, 0x06, + 0x53, 0x35, 0xd3, 0x74, 0x8b, 0x34, 0xa4, 0xf0, 0x9b, 0xd4, 0x4b, 0x1a, 0x52, 0xb8, 0x46, 0x7f, + 0x99, 0x46, 0x68, 0x74, 0xdf, 0x74, 0x8f, 0xb4, 0x2c, 0x72, 0x04, 0xbf, 0x2a, 0xbd, 0x24, 0xfc, + 0x38, 0xfa, 0x15, 0x91, 0x78, 0x12, 0xb6, 0xd8, 0xef, 0xe6, 0xcb, 0xf5, 0x73, 0x4a, 0x84, 0x82, + 0x45, 0xfd, 0x8d, 0x41, 0x7c, 0x4c, 0x46, 0xf7, 0xbb, 0xbb, 0x7a, 0xda, 0x29, 0x42, 0xf1, 0x20, + 0x5a, 0xe3, 0x61, 0xb4, 0xfa, 0x40, 0x36, 0x1e, 0x0e, 0xe4, 0x0d, 0xe9, 0x99, 0xd5, 0xd5, 0xc3, + 0x19, 0x4d, 0x7f, 0x06, 0x1d, 0xfd, 0x93, 0x2a, 0xe9, 0xae, 0x85, 0xee, 0xb8, 0xb7, 0x5f, 0xc8, + 0xfe, 0x52, 0x95, 0x26, 0xad, 0xff, 0xe7, 0x52, 0xb8, 0x46, 0xfa, 0x68, 0xf4, 0xa1, 0x52, 0xb2, + 0x04, 0xf3, 0x09, 0xf0, 0x87, 0x36, 0x57, 0xf6, 0x1c, 0x94, 0xd5, 0xc6, 0xb2, 0xfd, 0x7e, 0x34, + 0x88, 0x8f, 0xbb, 0xa3, 0x5a, 0xbe, 0x84, 0x3a, 0x8f, 0x5a, 0xe1, 0xec, 0x1a, 0x4f, 0xbf, 0xdd, + 0xde, 0x1d, 0x46, 0xbf, 0xef, 0x0e, 0xa3, 0x3f, 0x77, 0x87, 0xd1, 0xd7, 0x64, 0x2e, 0x71, 0xb4, + 0x0c, 0x8e, 0x23, 0x05, 0x38, 0x96, 0x19, 0x5c, 0x82, 0x99, 0x8f, 0x17, 0xc0, 0x73, 0x5c, 0x5c, + 0x6a, 0x1c, 0x4a, 0x35, 0x07, 0x8b, 0xc3, 0x25, 0xca, 0xa1, 0xe2, 0x28, 0xbf, 0xc3, 0xb8, 0xbc, + 0x9a, 0x8f, 0x97, 0x28, 0xc7, 0x5c, 0xf0, 0x12, 0xc1, 0xd8, 0x71, 0xba, 0xac, 0x94, 0xb6, 0x63, + 0x9b, 0x2d, 0xa0, 0xe0, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa6, 0x54, 0x4d, 0x2a, 0x29, 0x04, + 0x00, 0x00, +} + +func (m *ErrorData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ErrorData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ErrorData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Help != nil { + i -= len(*m.Help) + copy(dAtA[i:], *m.Help) + i = encodeVarintCmerrorData(dAtA, i, uint64(len(*m.Help))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintCmerrorData(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x7a + } + if m.FruSlot != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.FruSlot)) + i-- + dAtA[i] = 0x70 + } + if m.FruType != nil { + i -= len(*m.FruType) + copy(dAtA[i:], *m.FruType) + i = encodeVarintCmerrorData(dAtA, i, uint64(len(*m.FruType))) + i-- + dAtA[i] = 0x6a + } + if m.LastActionTakenAt != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.LastActionTakenAt)) + i-- + dAtA[i] = 0x60 + } + if m.ActionCount != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.ActionCount)) + i-- + dAtA[i] = 0x58 + } + if m.LastClearedAt != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.LastClearedAt)) + i-- + dAtA[i] = 0x50 + } + if m.ClearedCount != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.ClearedCount)) + i-- + dAtA[i] = 0x48 + } + if m.OccurCount != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.OccurCount)) + i-- + dAtA[i] = 0x40 + } + if m.ErrorCode != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.ErrorCode)) + i-- + dAtA[i] = 0x38 + } + if m.ComponentId != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.ComponentId)) + i-- + dAtA[i] = 0x30 + } + if m.ModuleId != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.ModuleId)) + i-- + dAtA[i] = 0x28 + } + if m.IsEnabled != nil { + i-- + if *m.IsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.LastUpdated != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.LastUpdated)) + i-- + dAtA[i] = 0x18 + } + if m.Count != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.Count)) + i-- + dAtA[i] = 0x10 + } + if m.Identifier != nil { + i -= len(*m.Identifier) + copy(dAtA[i:], *m.Identifier) + i = encodeVarintCmerrorData(dAtA, i, uint64(len(*m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ErrorResourceInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ErrorResourceInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ErrorResourceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.State)) + i-- + dAtA[i] = 0x18 + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintCmerrorData(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x12 + } + if m.Id != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CmerrorData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CmerrorData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CmerrorData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ResourceItem) > 0 { + for iNdEx := len(m.ResourceItem) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ResourceItem[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCmerrorData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.FruType != nil { + i -= len(*m.FruType) + copy(dAtA[i:], *m.FruType) + i = encodeVarintCmerrorData(dAtA, i, uint64(len(*m.FruType))) + i-- + dAtA[i] = 0x1a + } + if m.FruSlot != nil { + i = encodeVarintCmerrorData(dAtA, i, uint64(*m.FruSlot)) + i-- + dAtA[i] = 0x10 + } + if len(m.ErrorItem) > 0 { + for iNdEx := len(m.ErrorItem) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ErrorItem[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCmerrorData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintCmerrorData(dAtA []byte, offset int, v uint64) int { + offset -= sovCmerrorData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ErrorData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Identifier != nil { + l = len(*m.Identifier) + n += 1 + l + sovCmerrorData(uint64(l)) + } + if m.Count != nil { + n += 1 + sovCmerrorData(uint64(*m.Count)) + } + if m.LastUpdated != nil { + n += 1 + sovCmerrorData(uint64(*m.LastUpdated)) + } + if m.IsEnabled != nil { + n += 2 + } + if m.ModuleId != nil { + n += 1 + sovCmerrorData(uint64(*m.ModuleId)) + } + if m.ComponentId != nil { + n += 1 + sovCmerrorData(uint64(*m.ComponentId)) + } + if m.ErrorCode != nil { + n += 1 + sovCmerrorData(uint64(*m.ErrorCode)) + } + if m.OccurCount != nil { + n += 1 + sovCmerrorData(uint64(*m.OccurCount)) + } + if m.ClearedCount != nil { + n += 1 + sovCmerrorData(uint64(*m.ClearedCount)) + } + if m.LastClearedAt != nil { + n += 1 + sovCmerrorData(uint64(*m.LastClearedAt)) + } + if m.ActionCount != nil { + n += 1 + sovCmerrorData(uint64(*m.ActionCount)) + } + if m.LastActionTakenAt != nil { + n += 1 + sovCmerrorData(uint64(*m.LastActionTakenAt)) + } + if m.FruType != nil { + l = len(*m.FruType) + n += 1 + l + sovCmerrorData(uint64(l)) + } + if m.FruSlot != nil { + n += 1 + sovCmerrorData(uint64(*m.FruSlot)) + } + if m.Description != nil { + l = len(*m.Description) + n += 1 + l + sovCmerrorData(uint64(l)) + } + if m.Help != nil { + l = len(*m.Help) + n += 2 + l + sovCmerrorData(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ErrorResourceInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 1 + sovCmerrorData(uint64(*m.Id)) + } + if m.Type != nil { + l = len(*m.Type) + n += 1 + l + sovCmerrorData(uint64(l)) + } + if m.State != nil { + n += 1 + sovCmerrorData(uint64(*m.State)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CmerrorData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ErrorItem) > 0 { + for _, e := range m.ErrorItem { + l = e.Size() + n += 1 + l + sovCmerrorData(uint64(l)) + } + } + if m.FruSlot != nil { + n += 1 + sovCmerrorData(uint64(*m.FruSlot)) + } + if m.FruType != nil { + l = len(*m.FruType) + n += 1 + l + sovCmerrorData(uint64(l)) + } + if len(m.ResourceItem) > 0 { + for _, e := range m.ResourceItem { + l = e.Size() + n += 1 + l + sovCmerrorData(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovCmerrorData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCmerrorData(x uint64) (n int) { + return sovCmerrorData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ErrorData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ErrorData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ErrorData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Identifier = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Count = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastUpdated = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsEnabled = &b + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ModuleId = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ComponentId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ComponentId = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorCode", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ErrorCode = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OccurCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OccurCount = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClearedCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClearedCount = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastClearedAt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastClearedAt = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActionCount = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastActionTakenAt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastActionTakenAt = &v + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FruType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FruType = &s + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FruSlot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FruSlot = &v + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Help", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Help = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCmerrorData(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCmerrorData + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCmerrorData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ErrorResourceInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ErrorResourceInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ErrorResourceInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.State = &v + default: + iNdEx = preIndex + skippy, err := skipCmerrorData(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCmerrorData + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCmerrorData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CmerrorData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CmerrorData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CmerrorData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorItem", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ErrorItem = append(m.ErrorItem, &ErrorData{}) + if err := m.ErrorItem[len(m.ErrorItem)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FruSlot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FruSlot = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FruType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FruType = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceItem", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCmerrorData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCmerrorData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceItem = append(m.ResourceItem, &ErrorResourceInfo{}) + if err := m.ResourceItem[len(m.ResourceItem)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCmerrorData(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCmerrorData + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCmerrorData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCmerrorData(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCmerrorData + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCmerrorData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCmerrorData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCmerrorData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCmerrorData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCmerrorData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCmerrorData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/cmerror_data.proto b/schema/cmerror_data.proto new file mode 100755 index 0000000..cae25fb --- /dev/null +++ b/schema/cmerror_data.proto @@ -0,0 +1,115 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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 optional 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. +// + +// +// Balagopal Ambalakkat,Sumanth Kamatala, 2016 +// +// This defines the gpb message format used exporting +// cmerror data information. +// +// The top level message is CmerrorData +// The message is a collection of ErrorData items. +// +// +// Version 1.0 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// + // Juniper Error Item information + // + message ErrorData { + + // Identifier that uniquely identifies the source of + // the error. + optional string identifier = 1 [(telemetry_options).is_key = true]; + optional uint64 count = 2 [(telemetry_options).is_counter = true]; + optional uint64 last_updated = 3 [(telemetry_options).is_timestamp = true]; + optional bool is_enabled = 4; + + // Additional Metadata for error processing + optional uint32 module_id = 5; + optional uint32 component_id = 6; + optional uint32 error_code = 7; + + // Additional stats for each of the error + optional uint32 occur_count = 8 [(telemetry_options).is_counter = true]; + optional uint32 cleared_count = 9 [(telemetry_options).is_counter = true]; + optional uint64 last_cleared_at = 10 [(telemetry_options).is_timestamp = true]; + optional uint32 action_count = 11[(telemetry_options).is_counter = true]; + optional uint64 last_action_taken_at = 12 [(telemetry_options).is_timestamp = true]; + + + // Fru information + optional string fru_type = 13; + optional uint32 fru_slot = 14; + + // Help information regarding the error. + optional string description = 15; + optional string help = 16; + + + } + +message ErrorResourceInfo { + + // resource id e.g pfe identifier + optional uint32 id = 1; + + // resource type e.g pfe/pic + optional string type = 2; + + // resource state e.g enabled /disabled + optional uint32 state = 3; + +} + + // + // Top-level CmerrorData message + // + message CmerrorData { + + // collection of error items + repeated ErrorData error_item = 1; + + // Fru slot identifier + optional uint32 fru_slot = 2; + optional string fru_type = 3; + + // collection of resource states from fru + repeated ErrorResourceInfo resource_item = 4; + + } + + + // + // This occupies branch 21 from JuniperNetworksSensors + // + extend JuniperNetworksSensors { + optional CmerrorData jnpr_cmerror_data_ext = 21; + } + diff --git a/schema/cosd_oc.pb.go b/schema/cosd_oc.pb.go new file mode 100644 index 0000000..b1e7ca7 --- /dev/null +++ b/schema/cosd_oc.pb.go @@ -0,0 +1,2271 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cosd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Qos struct { + Interfaces *QosInterfacesType `protobuf:"bytes,151,opt,name=interfaces" json:"interfaces,omitempty"` + ForwardingGroups *QosForwardingGroupsType `protobuf:"bytes,152,opt,name=forwarding_groups,json=forwardingGroups" json:"forwarding_groups,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Qos) Reset() { *m = Qos{} } +func (m *Qos) String() string { return proto.CompactTextString(m) } +func (*Qos) ProtoMessage() {} +func (*Qos) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0} +} +func (m *Qos) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Qos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Qos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Qos) XXX_Merge(src proto.Message) { + xxx_messageInfo_Qos.Merge(m, src) +} +func (m *Qos) XXX_Size() int { + return m.Size() +} +func (m *Qos) XXX_DiscardUnknown() { + xxx_messageInfo_Qos.DiscardUnknown(m) +} + +var xxx_messageInfo_Qos proto.InternalMessageInfo + +func (m *Qos) GetInterfaces() *QosInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +func (m *Qos) GetForwardingGroups() *QosForwardingGroupsType { + if m != nil { + return m.ForwardingGroups + } + return nil +} + +type QosInterfacesType struct { + Interface []*QosInterfacesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosInterfacesType) Reset() { *m = QosInterfacesType{} } +func (m *QosInterfacesType) String() string { return proto.CompactTextString(m) } +func (*QosInterfacesType) ProtoMessage() {} +func (*QosInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 0} +} +func (m *QosInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosInterfacesType.Merge(m, src) +} +func (m *QosInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *QosInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_QosInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_QosInterfacesType proto.InternalMessageInfo + +func (m *QosInterfacesType) GetInterface() []*QosInterfacesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type QosInterfacesTypeInterfaceList struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + State *QosInterfacesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *QosInterfacesTypeInterfaceListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosInterfacesTypeInterfaceList) Reset() { *m = QosInterfacesTypeInterfaceList{} } +func (m *QosInterfacesTypeInterfaceList) String() string { return proto.CompactTextString(m) } +func (*QosInterfacesTypeInterfaceList) ProtoMessage() {} +func (*QosInterfacesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 0, 0} +} +func (m *QosInterfacesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosInterfacesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosInterfacesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosInterfacesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosInterfacesTypeInterfaceList.Merge(m, src) +} +func (m *QosInterfacesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *QosInterfacesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_QosInterfacesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_QosInterfacesTypeInterfaceList proto.InternalMessageInfo + +func (m *QosInterfacesTypeInterfaceList) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *QosInterfacesTypeInterfaceList) GetState() *QosInterfacesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *QosInterfacesTypeInterfaceList) GetInterfaceRef() *QosInterfacesTypeInterfaceListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +type QosInterfacesTypeInterfaceListStateType struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosInterfacesTypeInterfaceListStateType) Reset() { + *m = QosInterfacesTypeInterfaceListStateType{} +} +func (m *QosInterfacesTypeInterfaceListStateType) String() string { return proto.CompactTextString(m) } +func (*QosInterfacesTypeInterfaceListStateType) ProtoMessage() {} +func (*QosInterfacesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 0, 0, 0} +} +func (m *QosInterfacesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosInterfacesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosInterfacesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosInterfacesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosInterfacesTypeInterfaceListStateType.Merge(m, src) +} +func (m *QosInterfacesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *QosInterfacesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_QosInterfacesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_QosInterfacesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *QosInterfacesTypeInterfaceListStateType) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +type QosInterfacesTypeInterfaceListInterfaceRefType struct { + State *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) Reset() { + *m = QosInterfacesTypeInterfaceListInterfaceRefType{} +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*QosInterfacesTypeInterfaceListInterfaceRefType) ProtoMessage() {} +func (*QosInterfacesTypeInterfaceListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 0, 0, 1} +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefType.Merge(m, src) +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefType proto.InternalMessageInfo + +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) GetState() *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type QosInterfacesTypeInterfaceListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + JnxIflsetinterface *string `protobuf:"bytes,52,opt,name=jnx_iflsetinterface,json=jnxIflsetinterface" json:"jnx_iflsetinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) Reset() { + *m = QosInterfacesTypeInterfaceListInterfaceRefTypeStateType{} +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) ProtoMessage() {} +func (*QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 0, 0, 1, 0} +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_QosInterfacesTypeInterfaceListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) GetJnxIflsetinterface() string { + if m != nil && m.JnxIflsetinterface != nil { + return *m.JnxIflsetinterface + } + return "" +} + +type QosForwardingGroupsType struct { + ForwardingGroup []*QosForwardingGroupsTypeForwardingGroupList `protobuf:"bytes,151,rep,name=forwarding_group,json=forwardingGroup" json:"forwarding_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosForwardingGroupsType) Reset() { *m = QosForwardingGroupsType{} } +func (m *QosForwardingGroupsType) String() string { return proto.CompactTextString(m) } +func (*QosForwardingGroupsType) ProtoMessage() {} +func (*QosForwardingGroupsType) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 1} +} +func (m *QosForwardingGroupsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosForwardingGroupsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosForwardingGroupsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosForwardingGroupsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosForwardingGroupsType.Merge(m, src) +} +func (m *QosForwardingGroupsType) XXX_Size() int { + return m.Size() +} +func (m *QosForwardingGroupsType) XXX_DiscardUnknown() { + xxx_messageInfo_QosForwardingGroupsType.DiscardUnknown(m) +} + +var xxx_messageInfo_QosForwardingGroupsType proto.InternalMessageInfo + +func (m *QosForwardingGroupsType) GetForwardingGroup() []*QosForwardingGroupsTypeForwardingGroupList { + if m != nil { + return m.ForwardingGroup + } + return nil +} + +type QosForwardingGroupsTypeForwardingGroupList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *QosForwardingGroupsTypeForwardingGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosForwardingGroupsTypeForwardingGroupList) Reset() { + *m = QosForwardingGroupsTypeForwardingGroupList{} +} +func (m *QosForwardingGroupsTypeForwardingGroupList) String() string { + return proto.CompactTextString(m) +} +func (*QosForwardingGroupsTypeForwardingGroupList) ProtoMessage() {} +func (*QosForwardingGroupsTypeForwardingGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 1, 0} +} +func (m *QosForwardingGroupsTypeForwardingGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosForwardingGroupsTypeForwardingGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosForwardingGroupsTypeForwardingGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupList.Merge(m, src) +} +func (m *QosForwardingGroupsTypeForwardingGroupList) XXX_Size() int { + return m.Size() +} +func (m *QosForwardingGroupsTypeForwardingGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupList proto.InternalMessageInfo + +func (m *QosForwardingGroupsTypeForwardingGroupList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *QosForwardingGroupsTypeForwardingGroupList) GetState() *QosForwardingGroupsTypeForwardingGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +type QosForwardingGroupsTypeForwardingGroupListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + OutputQueue *string `protobuf:"bytes,52,opt,name=output_queue,json=outputQueue" json:"output_queue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) Reset() { + *m = QosForwardingGroupsTypeForwardingGroupListStateType{} +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*QosForwardingGroupsTypeForwardingGroupListStateType) ProtoMessage() {} +func (*QosForwardingGroupsTypeForwardingGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_6caf35228bc78289, []int{0, 1, 0, 0} +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupListStateType.Merge(m, src) +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_QosForwardingGroupsTypeForwardingGroupListStateType proto.InternalMessageInfo + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) GetOutputQueue() string { + if m != nil && m.OutputQueue != nil { + return *m.OutputQueue + } + return "" +} + +var E_JnprQosExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Qos)(nil), + Field: 134, + Name: "jnpr_qos_ext", + Tag: "bytes,134,opt,name=jnpr_qos_ext", + Filename: "cosd_oc.proto", +} + +func init() { + proto.RegisterType((*Qos)(nil), "qos") + proto.RegisterType((*QosInterfacesType)(nil), "qos.interfaces_type") + proto.RegisterType((*QosInterfacesTypeInterfaceList)(nil), "qos.interfaces_type.interface_list") + proto.RegisterType((*QosInterfacesTypeInterfaceListStateType)(nil), "qos.interfaces_type.interface_list.state_type") + proto.RegisterType((*QosInterfacesTypeInterfaceListInterfaceRefType)(nil), "qos.interfaces_type.interface_list.interface_ref_type") + proto.RegisterType((*QosInterfacesTypeInterfaceListInterfaceRefTypeStateType)(nil), "qos.interfaces_type.interface_list.interface_ref_type.state_type") + proto.RegisterType((*QosForwardingGroupsType)(nil), "qos.forwarding_groups_type") + proto.RegisterType((*QosForwardingGroupsTypeForwardingGroupList)(nil), "qos.forwarding_groups_type.forwarding_group_list") + proto.RegisterType((*QosForwardingGroupsTypeForwardingGroupListStateType)(nil), "qos.forwarding_groups_type.forwarding_group_list.state_type") + proto.RegisterExtension(E_JnprQosExt) +} + +func init() { proto.RegisterFile("cosd_oc.proto", fileDescriptor_6caf35228bc78289) } + +var fileDescriptor_6caf35228bc78289 = []byte{ + // 534 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0x4b, 0x6e, 0x13, 0x41, + 0x10, 0xd5, 0x24, 0x8e, 0x94, 0x94, 0x1d, 0x12, 0x3a, 0x7c, 0xcc, 0x80, 0xac, 0x04, 0x36, 0xde, + 0x78, 0x46, 0x84, 0xcf, 0x02, 0xb1, 0x08, 0x46, 0x11, 0x32, 0x0b, 0xa4, 0x4c, 0x36, 0x88, 0x8f, + 0x86, 0x89, 0x5d, 0x1e, 0xf7, 0xc4, 0xee, 0x1e, 0x77, 0xd7, 0x10, 0x67, 0xcb, 0x02, 0x89, 0x13, + 0xc0, 0x49, 0x38, 0x02, 0x42, 0x82, 0x05, 0x27, 0x40, 0xc8, 0x27, 0x41, 0x76, 0xe3, 0xb4, 0xc7, + 0xb6, 0x50, 0x60, 0xd9, 0xaf, 0xea, 0x55, 0xbd, 0x7a, 0xfd, 0x60, 0xbd, 0x29, 0x75, 0x2b, 0x94, + 0x4d, 0x2f, 0x55, 0x92, 0xa4, 0xbb, 0x45, 0xd8, 0xc5, 0x1e, 0x92, 0x3a, 0x0d, 0x49, 0xa6, 0x06, + 0xbc, 0xf9, 0x61, 0x15, 0x96, 0xfb, 0x52, 0xb3, 0x7b, 0x00, 0x5c, 0x10, 0xaa, 0x76, 0xd4, 0x44, + 0x5d, 0xfe, 0xe8, 0x6c, 0x3b, 0xd5, 0xe2, 0xee, 0x25, 0xaf, 0x2f, 0xb5, 0x67, 0xf1, 0x90, 0x4e, + 0x53, 0x0c, 0xa6, 0x1a, 0x59, 0x03, 0x2e, 0xb6, 0xa5, 0x3a, 0x89, 0x54, 0x8b, 0x8b, 0x38, 0x8c, + 0x95, 0xcc, 0x52, 0x5d, 0xfe, 0x64, 0xd8, 0xd7, 0xc7, 0xec, 0xb9, 0xb2, 0x19, 0xb2, 0x69, 0xf1, + 0x27, 0x63, 0xd8, 0xfd, 0x5c, 0x80, 0x8d, 0x99, 0x55, 0xac, 0x0e, 0x6b, 0x67, 0xd0, 0x48, 0xd4, + 0x72, 0xb5, 0xb8, 0x7b, 0x6b, 0x91, 0x28, 0xfb, 0x0e, 0xbb, 0x5c, 0x53, 0x60, 0x69, 0xee, 0xcf, + 0x65, 0xb8, 0x90, 0xaf, 0xb2, 0x2a, 0x94, 0x2c, 0xc2, 0x5b, 0xe5, 0x3b, 0xdb, 0x4e, 0x75, 0xad, + 0xbe, 0xf2, 0x6e, 0x6f, 0x69, 0xd5, 0x09, 0x8a, 0x67, 0xa5, 0x46, 0x8b, 0xed, 0xc3, 0x8a, 0xa6, + 0x88, 0x70, 0xe2, 0x88, 0x77, 0x8e, 0xe5, 0xde, 0x98, 0x61, 0xce, 0x34, 0x6c, 0xf6, 0x0a, 0xd6, + 0x6d, 0x8f, 0xc2, 0xf6, 0xc4, 0xa2, 0xfb, 0xe7, 0x19, 0x97, 0x63, 0x9a, 0xb1, 0x56, 0x7e, 0x80, + 0x6d, 0xd7, 0x07, 0xb0, 0x2b, 0xd9, 0xce, 0xa2, 0xe3, 0x72, 0x57, 0xb9, 0xdf, 0x1c, 0x60, 0xf3, + 0x53, 0xd9, 0xf3, 0x99, 0x63, 0x1f, 0xfd, 0x9f, 0xba, 0xf9, 0xfb, 0xdd, 0x97, 0x39, 0x85, 0x37, + 0xa6, 0x7f, 0xd5, 0xc8, 0xb3, 0x00, 0xf3, 0x61, 0x2b, 0x11, 0x83, 0x90, 0xb7, 0xbb, 0x1a, 0xc9, + 0xf6, 0xdd, 0x1d, 0xf7, 0xb1, 0x44, 0x0c, 0x1a, 0xf9, 0x8a, 0xfb, 0x65, 0x09, 0xae, 0x2c, 0x4e, + 0x19, 0x7b, 0x0d, 0x9b, 0xb3, 0x95, 0x49, 0x8c, 0x6e, 0xff, 0x25, 0x9d, 0x73, 0xb0, 0x09, 0xd5, + 0xc6, 0x4c, 0x66, 0xdd, 0xef, 0x0e, 0x5c, 0x5e, 0xd8, 0xca, 0xae, 0x41, 0x41, 0x44, 0x3d, 0xcc, + 0x27, 0x6b, 0x0c, 0xb1, 0xc3, 0x19, 0x97, 0x1f, 0xfe, 0xb3, 0x90, 0x05, 0x06, 0x3f, 0xce, 0x19, + 0xcc, 0xa6, 0xb7, 0xff, 0x59, 0xbb, 0x03, 0x25, 0x99, 0x51, 0x9a, 0x51, 0xd8, 0xcf, 0x30, 0x9b, + 0xf8, 0x59, 0x34, 0xd8, 0xc1, 0x08, 0x7a, 0xb0, 0x07, 0xa5, 0x44, 0xa4, 0x2a, 0xec, 0x4b, 0x1d, + 0xe2, 0x80, 0xd8, 0x55, 0xef, 0x69, 0x26, 0x78, 0x8a, 0xea, 0x19, 0xd2, 0x89, 0x54, 0xc7, 0xfa, + 0x10, 0x85, 0x96, 0x4a, 0x97, 0xdf, 0x1b, 0xe5, 0x85, 0x91, 0xf2, 0x00, 0x46, 0x9c, 0x03, 0xa9, + 0xf7, 0x07, 0x54, 0x7f, 0xf3, 0x75, 0x58, 0x71, 0x7e, 0x0c, 0x2b, 0xce, 0xaf, 0x61, 0xc5, 0x79, + 0x11, 0xc4, 0x9c, 0xbc, 0xc4, 0x8c, 0xf0, 0x04, 0x92, 0xcf, 0x9b, 0x78, 0x84, 0x2a, 0xf6, 0x3b, + 0x18, 0x75, 0xa9, 0x73, 0x24, 0xa9, 0xc6, 0x45, 0x8c, 0x9a, 0x6a, 0x09, 0xf1, 0x9a, 0x88, 0x88, + 0xbf, 0x45, 0x3f, 0x3d, 0x8e, 0xfd, 0x84, 0xb8, 0x1f, 0xb5, 0xa2, 0x94, 0x50, 0x69, 0x3f, 0x4c, + 0x32, 0x21, 0xb5, 0xaf, 0x9b, 0x1d, 0xec, 0x45, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x91, + 0xdf, 0x7f, 0xd4, 0x04, 0x00, 0x00, +} + +func (m *Qos) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Qos) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Qos) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ForwardingGroups != nil { + { + size, err := m.ForwardingGroups.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *QosInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *QosInterfacesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosInterfacesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosInterfacesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *QosInterfacesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosInterfacesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosInterfacesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.JnxIflsetinterface != nil { + i -= len(*m.JnxIflsetinterface) + copy(dAtA[i:], *m.JnxIflsetinterface) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.JnxIflsetinterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *QosForwardingGroupsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosForwardingGroupsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosForwardingGroupsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ForwardingGroup) > 0 { + for iNdEx := len(m.ForwardingGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ForwardingGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *QosForwardingGroupsTypeForwardingGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosForwardingGroupsTypeForwardingGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosForwardingGroupsTypeForwardingGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCosdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutputQueue != nil { + i -= len(*m.OutputQueue) + copy(dAtA[i:], *m.OutputQueue) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.OutputQueue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintCosdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintCosdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovCosdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Qos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.ForwardingGroups != nil { + l = m.ForwardingGroups.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosInterfacesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosInterfacesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.JnxIflsetinterface != nil { + l = len(*m.JnxIflsetinterface) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosForwardingGroupsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ForwardingGroup) > 0 { + for _, e := range m.ForwardingGroup { + l = e.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosForwardingGroupsTypeForwardingGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.OutputQueue != nil { + l = len(*m.OutputQueue) + n += 2 + l + sovCosdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovCosdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCosdOc(x uint64) (n int) { + return sovCosdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Qos) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: qos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: qos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &QosInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForwardingGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ForwardingGroups == nil { + m.ForwardingGroups = &QosForwardingGroupsType{} + } + if err := m.ForwardingGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &QosInterfacesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosInterfacesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &QosInterfacesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &QosInterfacesTypeInterfaceListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosInterfacesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &QosInterfacesTypeInterfaceListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosInterfacesTypeInterfaceListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxIflsetinterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.JnxIflsetinterface = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosForwardingGroupsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: forwarding_groups_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: forwarding_groups_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForwardingGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ForwardingGroup = append(m.ForwardingGroup, &QosForwardingGroupsTypeForwardingGroupList{}) + if err := m.ForwardingGroup[len(m.ForwardingGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosForwardingGroupsTypeForwardingGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: forwarding_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: forwarding_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &QosForwardingGroupsTypeForwardingGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QosForwardingGroupsTypeForwardingGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutputQueue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCosdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCosdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCosdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OutputQueue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCosdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCosdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCosdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCosdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCosdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCosdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCosdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCosdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCosdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCosdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCosdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCosdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/cosd_oc.proto b/schema/cosd_oc.proto new file mode 100755 index 0000000..0fe03b7 --- /dev/null +++ b/schema/cosd_oc.proto @@ -0,0 +1,41 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional qos jnpr_qos_ext = 134; +} + +message qos { + optional interfaces_type interfaces = 151; + message interfaces_type { + message interface_list { + optional string interface_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface_id = 51; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional string jnx_iflsetinterface = 52; + } + } + } + repeated interface_list interface = 151; + } + optional forwarding_groups_type forwarding_groups = 152; + message forwarding_groups_type { + message forwarding_group_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional string output_queue = 52; + } + } + repeated forwarding_group_list forwarding_group = 151; + } +} diff --git a/schema/cpu_memory_utilization.pb.go b/schema/cpu_memory_utilization.pb.go new file mode 100644 index 0000000..833c92d --- /dev/null +++ b/schema/cpu_memory_utilization.pb.go @@ -0,0 +1,1066 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: cpu_memory_utilization.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// The top level message is CpuMemoryUtilization +// +type CpuMemoryUtilization struct { + Utilization []*CpuMemoryUtilizationSummary `protobuf:"bytes,1,rep,name=utilization" json:"utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CpuMemoryUtilization) Reset() { *m = CpuMemoryUtilization{} } +func (m *CpuMemoryUtilization) String() string { return proto.CompactTextString(m) } +func (*CpuMemoryUtilization) ProtoMessage() {} +func (*CpuMemoryUtilization) Descriptor() ([]byte, []int) { + return fileDescriptor_d3a983ae9003ef42, []int{0} +} +func (m *CpuMemoryUtilization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CpuMemoryUtilization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CpuMemoryUtilization.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CpuMemoryUtilization) XXX_Merge(src proto.Message) { + xxx_messageInfo_CpuMemoryUtilization.Merge(m, src) +} +func (m *CpuMemoryUtilization) XXX_Size() int { + return m.Size() +} +func (m *CpuMemoryUtilization) XXX_DiscardUnknown() { + xxx_messageInfo_CpuMemoryUtilization.DiscardUnknown(m) +} + +var xxx_messageInfo_CpuMemoryUtilization proto.InternalMessageInfo + +func (m *CpuMemoryUtilization) GetUtilization() []*CpuMemoryUtilizationSummary { + if m != nil { + return m.Utilization + } + return nil +} + +// This array gives the CPU memory utilization on per partition basis +// and also the per application memory utilization for each partition +type CpuMemoryUtilizationSummary struct { + // Name of the partition. + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // The total size of the partition in bytes + Size_ *uint64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` + // The amount of memory currently allocated from the partition in bytes + BytesAllocated *uint64 `protobuf:"varint,3,opt,name=bytes_allocated,json=bytesAllocated" json:"bytes_allocated,omitempty"` + // The amount of memory that is currently allocated, expressed + // as percentage of the total (0--100). + Utilization *int32 `protobuf:"varint,4,opt,name=utilization" json:"utilization,omitempty"` + // Per application based memory utilization for this memory partition + ApplicationUtilization []*CpuMemoryUtilizationPerApplication `protobuf:"bytes,5,rep,name=application_utilization,json=applicationUtilization" json:"application_utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CpuMemoryUtilizationSummary) Reset() { *m = CpuMemoryUtilizationSummary{} } +func (m *CpuMemoryUtilizationSummary) String() string { return proto.CompactTextString(m) } +func (*CpuMemoryUtilizationSummary) ProtoMessage() {} +func (*CpuMemoryUtilizationSummary) Descriptor() ([]byte, []int) { + return fileDescriptor_d3a983ae9003ef42, []int{1} +} +func (m *CpuMemoryUtilizationSummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CpuMemoryUtilizationSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CpuMemoryUtilizationSummary.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CpuMemoryUtilizationSummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_CpuMemoryUtilizationSummary.Merge(m, src) +} +func (m *CpuMemoryUtilizationSummary) XXX_Size() int { + return m.Size() +} +func (m *CpuMemoryUtilizationSummary) XXX_DiscardUnknown() { + xxx_messageInfo_CpuMemoryUtilizationSummary.DiscardUnknown(m) +} + +var xxx_messageInfo_CpuMemoryUtilizationSummary proto.InternalMessageInfo + +func (m *CpuMemoryUtilizationSummary) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *CpuMemoryUtilizationSummary) GetSize_() uint64 { + if m != nil && m.Size_ != nil { + return *m.Size_ + } + return 0 +} + +func (m *CpuMemoryUtilizationSummary) GetBytesAllocated() uint64 { + if m != nil && m.BytesAllocated != nil { + return *m.BytesAllocated + } + return 0 +} + +func (m *CpuMemoryUtilizationSummary) GetUtilization() int32 { + if m != nil && m.Utilization != nil { + return *m.Utilization + } + return 0 +} + +func (m *CpuMemoryUtilizationSummary) GetApplicationUtilization() []*CpuMemoryUtilizationPerApplication { + if m != nil { + return m.ApplicationUtilization + } + return nil +} + +// This describes per Application specific CPU memory utilization +type CpuMemoryUtilizationPerApplication struct { + // Application name + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // Number of bytes allocated + BytesAllocated *uint64 `protobuf:"varint,2,opt,name=bytes_allocated,json=bytesAllocated" json:"bytes_allocated,omitempty"` + // Number of allocations + Allocations *uint64 `protobuf:"varint,3,opt,name=allocations" json:"allocations,omitempty"` + // Number of frees + Frees *uint64 `protobuf:"varint,4,opt,name=frees" json:"frees,omitempty"` + // Number of allocations failed + AllocationsFailed *uint64 `protobuf:"varint,5,opt,name=allocations_failed,json=allocationsFailed" json:"allocations_failed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CpuMemoryUtilizationPerApplication) Reset() { *m = CpuMemoryUtilizationPerApplication{} } +func (m *CpuMemoryUtilizationPerApplication) String() string { return proto.CompactTextString(m) } +func (*CpuMemoryUtilizationPerApplication) ProtoMessage() {} +func (*CpuMemoryUtilizationPerApplication) Descriptor() ([]byte, []int) { + return fileDescriptor_d3a983ae9003ef42, []int{2} +} +func (m *CpuMemoryUtilizationPerApplication) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CpuMemoryUtilizationPerApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CpuMemoryUtilizationPerApplication.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CpuMemoryUtilizationPerApplication) XXX_Merge(src proto.Message) { + xxx_messageInfo_CpuMemoryUtilizationPerApplication.Merge(m, src) +} +func (m *CpuMemoryUtilizationPerApplication) XXX_Size() int { + return m.Size() +} +func (m *CpuMemoryUtilizationPerApplication) XXX_DiscardUnknown() { + xxx_messageInfo_CpuMemoryUtilizationPerApplication.DiscardUnknown(m) +} + +var xxx_messageInfo_CpuMemoryUtilizationPerApplication proto.InternalMessageInfo + +func (m *CpuMemoryUtilizationPerApplication) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *CpuMemoryUtilizationPerApplication) GetBytesAllocated() uint64 { + if m != nil && m.BytesAllocated != nil { + return *m.BytesAllocated + } + return 0 +} + +func (m *CpuMemoryUtilizationPerApplication) GetAllocations() uint64 { + if m != nil && m.Allocations != nil { + return *m.Allocations + } + return 0 +} + +func (m *CpuMemoryUtilizationPerApplication) GetFrees() uint64 { + if m != nil && m.Frees != nil { + return *m.Frees + } + return 0 +} + +func (m *CpuMemoryUtilizationPerApplication) GetAllocationsFailed() uint64 { + if m != nil && m.AllocationsFailed != nil { + return *m.AllocationsFailed + } + return 0 +} + +var E_CpuMemoryUtilExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*CpuMemoryUtilization)(nil), + Field: 1, + Name: "cpu_memory_util_ext", + Tag: "bytes,1,opt,name=cpu_memory_util_ext", + Filename: "cpu_memory_utilization.proto", +} + +func init() { + proto.RegisterType((*CpuMemoryUtilization)(nil), "CpuMemoryUtilization") + proto.RegisterType((*CpuMemoryUtilizationSummary)(nil), "CpuMemoryUtilizationSummary") + proto.RegisterType((*CpuMemoryUtilizationPerApplication)(nil), "CpuMemoryUtilizationPerApplication") + proto.RegisterExtension(E_CpuMemoryUtilExt) +} + +func init() { proto.RegisterFile("cpu_memory_utilization.proto", fileDescriptor_d3a983ae9003ef42) } + +var fileDescriptor_d3a983ae9003ef42 = []byte{ + // 409 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x6e, 0xd4, 0x30, + 0x10, 0xc6, 0xe5, 0x36, 0x39, 0xe0, 0x95, 0xf8, 0xe3, 0x16, 0x1a, 0x41, 0xb5, 0x8a, 0xc2, 0x81, + 0x5c, 0x92, 0x48, 0x3d, 0x72, 0x40, 0x2a, 0x08, 0x0e, 0x48, 0x20, 0x94, 0x0a, 0x0e, 0x08, 0x14, + 0xbc, 0xd9, 0x69, 0xd6, 0x69, 0x62, 0x5b, 0xf6, 0x04, 0x9a, 0x3e, 0x61, 0x8f, 0x3c, 0x02, 0xda, + 0x07, 0xe0, 0x19, 0x10, 0xde, 0xa2, 0x7a, 0x51, 0xa0, 0x37, 0xcf, 0x37, 0xdf, 0x37, 0x9a, 0xdf, + 0xc8, 0xf4, 0xb0, 0xd6, 0x43, 0xd5, 0x43, 0xaf, 0xcc, 0x58, 0x0d, 0x28, 0x3a, 0x71, 0xc1, 0x51, + 0x28, 0x99, 0x6b, 0xa3, 0x50, 0x3d, 0xdc, 0x43, 0xe8, 0xa0, 0x07, 0x34, 0x63, 0x85, 0x4a, 0x6f, + 0xc4, 0xe4, 0x03, 0xdd, 0x7f, 0xa1, 0x87, 0x37, 0x2e, 0xf3, 0xfe, 0x3a, 0xc2, 0x9e, 0xd1, 0x99, + 0x37, 0x21, 0x22, 0xf1, 0x6e, 0x3a, 0x3b, 0x3a, 0xcc, 0xa7, 0xbc, 0x27, 0x43, 0xdf, 0x73, 0x33, + 0x96, 0x7e, 0x20, 0xf9, 0x49, 0xe8, 0xa3, 0xff, 0x98, 0x19, 0xa3, 0x81, 0xe4, 0x3d, 0x44, 0x24, + 0x26, 0xe9, 0xad, 0xd2, 0xbd, 0x7f, 0x6b, 0x56, 0x5c, 0x40, 0xb4, 0x13, 0x93, 0x34, 0x28, 0xdd, + 0x9b, 0x3d, 0xa1, 0x77, 0x16, 0x23, 0x82, 0xad, 0x78, 0xd7, 0xa9, 0x9a, 0x23, 0x2c, 0xa3, 0x5d, + 0xd7, 0xbe, 0xed, 0xe4, 0xe3, 0x3f, 0x2a, 0x8b, 0xb7, 0x17, 0x0e, 0x62, 0x92, 0x86, 0x5b, 0x2b, + 0xb1, 0x4f, 0xf4, 0x80, 0x6b, 0xdd, 0x89, 0xda, 0x95, 0xfe, 0x81, 0xa2, 0xd0, 0xe1, 0x3d, 0x9e, + 0xc4, 0x7b, 0x07, 0xe6, 0xf8, 0x3a, 0x56, 0x3e, 0xf0, 0x66, 0x78, 0xae, 0xe4, 0x92, 0xd0, 0xe4, + 0xe6, 0xf8, 0x24, 0xf7, 0x04, 0xe3, 0xce, 0xbf, 0x18, 0xaf, 0x2c, 0x42, 0x49, 0x7b, 0x75, 0x08, + 0x5f, 0x62, 0xfb, 0x34, 0x3c, 0x35, 0x00, 0xd6, 0xf1, 0x07, 0xe5, 0xa6, 0x60, 0x19, 0x65, 0x9e, + 0xa9, 0x3a, 0xe5, 0xa2, 0x83, 0x65, 0x14, 0x3a, 0xcb, 0x3d, 0xaf, 0xf3, 0xca, 0x35, 0x9e, 0x7e, + 0xa6, 0x7b, 0x7f, 0x7d, 0xa4, 0x0a, 0xce, 0x91, 0x1d, 0xe4, 0xaf, 0x07, 0x29, 0x34, 0x98, 0xb7, + 0x80, 0xdf, 0x94, 0x39, 0xb3, 0x27, 0x20, 0xad, 0x32, 0xd6, 0xb1, 0xcc, 0x8e, 0xee, 0x4f, 0x5e, + 0xaf, 0xbc, 0x5b, 0xfb, 0xea, 0xcb, 0x73, 0x7c, 0xfe, 0xe5, 0x72, 0x3d, 0x27, 0xdf, 0xd7, 0x73, + 0xf2, 0x63, 0x3d, 0x27, 0x1f, 0xcb, 0x46, 0x60, 0xde, 0x6e, 0x06, 0xe7, 0x12, 0xb0, 0x10, 0x35, + 0x2c, 0xc0, 0x34, 0xc5, 0x0a, 0x78, 0x87, 0xab, 0x85, 0xc2, 0x4c, 0xc8, 0x06, 0x2c, 0x66, 0x2d, + 0x8a, 0x4c, 0x72, 0x14, 0x5f, 0xa1, 0xd0, 0x67, 0x4d, 0xd1, 0xa2, 0x28, 0xf8, 0x92, 0x6b, 0x04, + 0x63, 0x8b, 0xaa, 0x1d, 0xa4, 0xb2, 0x85, 0xad, 0x57, 0xd0, 0xf3, 0x5f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0xaa, 0x4c, 0xa6, 0x76, 0x08, 0x03, 0x00, 0x00, +} + +func (m *CpuMemoryUtilization) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CpuMemoryUtilization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CpuMemoryUtilization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Utilization) > 0 { + for iNdEx := len(m.Utilization) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Utilization[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CpuMemoryUtilizationSummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CpuMemoryUtilizationSummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CpuMemoryUtilizationSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ApplicationUtilization) > 0 { + for iNdEx := len(m.ApplicationUtilization) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApplicationUtilization[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.Utilization != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.Utilization)) + i-- + dAtA[i] = 0x20 + } + if m.BytesAllocated != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.BytesAllocated)) + i-- + dAtA[i] = 0x18 + } + if m.Size_ != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.Size_)) + i-- + dAtA[i] = 0x10 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CpuMemoryUtilizationPerApplication) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CpuMemoryUtilizationPerApplication) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CpuMemoryUtilizationPerApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AllocationsFailed != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.AllocationsFailed)) + i-- + dAtA[i] = 0x28 + } + if m.Frees != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.Frees)) + i-- + dAtA[i] = 0x20 + } + if m.Allocations != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.Allocations)) + i-- + dAtA[i] = 0x18 + } + if m.BytesAllocated != nil { + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(*m.BytesAllocated)) + i-- + dAtA[i] = 0x10 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintCpuMemoryUtilization(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintCpuMemoryUtilization(dAtA []byte, offset int, v uint64) int { + offset -= sovCpuMemoryUtilization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CpuMemoryUtilization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Utilization) > 0 { + for _, e := range m.Utilization { + l = e.Size() + n += 1 + l + sovCpuMemoryUtilization(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CpuMemoryUtilizationSummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovCpuMemoryUtilization(uint64(l)) + } + if m.Size_ != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.Size_)) + } + if m.BytesAllocated != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.BytesAllocated)) + } + if m.Utilization != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.Utilization)) + } + if len(m.ApplicationUtilization) > 0 { + for _, e := range m.ApplicationUtilization { + l = e.Size() + n += 1 + l + sovCpuMemoryUtilization(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CpuMemoryUtilizationPerApplication) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovCpuMemoryUtilization(uint64(l)) + } + if m.BytesAllocated != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.BytesAllocated)) + } + if m.Allocations != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.Allocations)) + } + if m.Frees != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.Frees)) + } + if m.AllocationsFailed != nil { + n += 1 + sovCpuMemoryUtilization(uint64(*m.AllocationsFailed)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovCpuMemoryUtilization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCpuMemoryUtilization(x uint64) (n int) { + return sovCpuMemoryUtilization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CpuMemoryUtilization) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuMemoryUtilization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuMemoryUtilization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Utilization = append(m.Utilization, &CpuMemoryUtilizationSummary{}) + if err := m.Utilization[len(m.Utilization)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuMemoryUtilizationSummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuMemoryUtilizationSummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuMemoryUtilizationSummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Size_ = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesAllocated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BytesAllocated = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Utilization = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplicationUtilization", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApplicationUtilization = append(m.ApplicationUtilization, &CpuMemoryUtilizationPerApplication{}) + if err := m.ApplicationUtilization[len(m.ApplicationUtilization)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuMemoryUtilizationPerApplication) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuMemoryUtilizationPerApplication: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuMemoryUtilizationPerApplication: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesAllocated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BytesAllocated = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocations", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Allocations = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Frees", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Frees = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocationsFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllocationsFailed = &v + default: + iNdEx = preIndex + skippy, err := skipCpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCpuMemoryUtilization(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCpuMemoryUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCpuMemoryUtilization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCpuMemoryUtilization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCpuMemoryUtilization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCpuMemoryUtilization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCpuMemoryUtilization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCpuMemoryUtilization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/cpu_memory_utilization.proto b/schema/cpu_memory_utilization.proto new file mode 100755 index 0000000..2b70d5d --- /dev/null +++ b/schema/cpu_memory_utilization.proto @@ -0,0 +1,94 @@ + +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Chandresh Bhise, Rajesh Pillai, March 2016 +// +// This defines the gpb message format used by the cpu memory utilization sensor. +// The top level message is CpuMemoryUtilization +// Included here are the stats for, +// - Overall CPU memory utilization +// - Per Application based CPU memory utilization +// +// +// Version 1.0 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This sensor occupies branch 1 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional CpuMemoryUtilization cpu_memory_util_ext = 1; +} + +// +// The top level message is CpuMemoryUtilization +// +message CpuMemoryUtilization { + repeated CpuMemoryUtilizationSummary utilization = 1; +} + + +// This array gives the CPU memory utilization on per partition basis +// and also the per application memory utilization for each partition +message CpuMemoryUtilizationSummary { + // Name of the partition. + optional string name = 1; + + // The total size of the partition in bytes + optional uint64 size = 2; + + // The amount of memory currently allocated from the partition in bytes + optional uint64 bytes_allocated = 3; + + // The amount of memory that is currently allocated, expressed + // as percentage of the total (0--100). + optional int32 utilization = 4; + + // Per application based memory utilization for this memory partition + repeated CpuMemoryUtilizationPerApplication application_utilization = 5; + +} + +// This describes per Application specific CPU memory utilization +message CpuMemoryUtilizationPerApplication { + // Application name + optional string name = 1; + + // Number of bytes allocated + optional uint64 bytes_allocated = 2; + + // Number of allocations + optional uint64 allocations = 3; + + // Number of frees + optional uint64 frees = 4; + + // Number of allocations failed + optional uint64 allocations_failed = 5; +} diff --git a/schema/dcd_oc.pb.go b/schema/dcd_oc.pb.go new file mode 100644 index 0000000..f5c84b8 --- /dev/null +++ b/schema/dcd_oc.pb.go @@ -0,0 +1,1139 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: dcd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesInterface struct { + Interface []*InterfacesInterfaceInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesInterface) Reset() { *m = InterfacesInterface{} } +func (m *InterfacesInterface) String() string { return proto.CompactTextString(m) } +func (*InterfacesInterface) ProtoMessage() {} +func (*InterfacesInterface) Descriptor() ([]byte, []int) { + return fileDescriptor_49af152afdbe540c, []int{0} +} +func (m *InterfacesInterface) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesInterface.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesInterface) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesInterface.Merge(m, src) +} +func (m *InterfacesInterface) XXX_Size() int { + return m.Size() +} +func (m *InterfacesInterface) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesInterface.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesInterface proto.InternalMessageInfo + +func (m *InterfacesInterface) GetInterface() []*InterfacesInterfaceInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesInterfaceInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Aggregation *InterfacesInterfaceInterfaceListAggregationType `protobuf:"bytes,151,opt,name=aggregation" json:"aggregation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesInterfaceInterfaceList) Reset() { *m = InterfacesInterfaceInterfaceList{} } +func (m *InterfacesInterfaceInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesInterfaceInterfaceList) ProtoMessage() {} +func (*InterfacesInterfaceInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_49af152afdbe540c, []int{0, 0} +} +func (m *InterfacesInterfaceInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesInterfaceInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesInterfaceInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesInterfaceInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesInterfaceInterfaceList.Merge(m, src) +} +func (m *InterfacesInterfaceInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesInterfaceInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesInterfaceInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesInterfaceInterfaceList proto.InternalMessageInfo + +func (m *InterfacesInterfaceInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesInterfaceInterfaceList) GetAggregation() *InterfacesInterfaceInterfaceListAggregationType { + if m != nil { + return m.Aggregation + } + return nil +} + +type InterfacesInterfaceInterfaceListAggregationType struct { + State *InterfacesInterfaceInterfaceListAggregationTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesInterfaceInterfaceListAggregationType) Reset() { + *m = InterfacesInterfaceInterfaceListAggregationType{} +} +func (m *InterfacesInterfaceInterfaceListAggregationType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesInterfaceInterfaceListAggregationType) ProtoMessage() {} +func (*InterfacesInterfaceInterfaceListAggregationType) Descriptor() ([]byte, []int) { + return fileDescriptor_49af152afdbe540c, []int{0, 0, 0} +} +func (m *InterfacesInterfaceInterfaceListAggregationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesInterfaceInterfaceListAggregationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesInterfaceInterfaceListAggregationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationType.Merge(m, src) +} +func (m *InterfacesInterfaceInterfaceListAggregationType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesInterfaceInterfaceListAggregationType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationType proto.InternalMessageInfo + +func (m *InterfacesInterfaceInterfaceListAggregationType) GetState() *InterfacesInterfaceInterfaceListAggregationTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesInterfaceInterfaceListAggregationTypeStateType struct { + LagType *string `protobuf:"bytes,51,opt,name=lag_type,json=lagType" json:"lag_type,omitempty"` + MinLinks *uint32 `protobuf:"varint,52,opt,name=min_links,json=minLinks" json:"min_links,omitempty"` + LagSpeed *uint32 `protobuf:"varint,53,opt,name=lag_speed,json=lagSpeed" json:"lag_speed,omitempty"` + Member []string `protobuf:"bytes,54,rep,name=member" json:"member,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) Reset() { + *m = InterfacesInterfaceInterfaceListAggregationTypeStateType{} +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesInterfaceInterfaceListAggregationTypeStateType) ProtoMessage() {} +func (*InterfacesInterfaceInterfaceListAggregationTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_49af152afdbe540c, []int{0, 0, 0, 0} +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationTypeStateType.Merge(m, src) +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesInterfaceInterfaceListAggregationTypeStateType proto.InternalMessageInfo + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) GetLagType() string { + if m != nil && m.LagType != nil { + return *m.LagType + } + return "" +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) GetMinLinks() uint32 { + if m != nil && m.MinLinks != nil { + return *m.MinLinks + } + return 0 +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) GetLagSpeed() uint32 { + if m != nil && m.LagSpeed != nil { + return *m.LagSpeed + } + return 0 +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) GetMember() []string { + if m != nil { + return m.Member + } + return nil +} + +var E_JnprInterfacesInterfaceExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesInterface)(nil), + Field: 41, + Name: "jnpr_interfaces_interface_ext", + Tag: "bytes,41,opt,name=jnpr_interfaces_interface_ext", + Filename: "dcd_oc.proto", +} + +func init() { + proto.RegisterType((*InterfacesInterface)(nil), "interfaces_interface") + proto.RegisterType((*InterfacesInterfaceInterfaceList)(nil), "interfaces_interface.interface_list") + proto.RegisterType((*InterfacesInterfaceInterfaceListAggregationType)(nil), "interfaces_interface.interface_list.aggregation_type") + proto.RegisterType((*InterfacesInterfaceInterfaceListAggregationTypeStateType)(nil), "interfaces_interface.interface_list.aggregation_type.state_type") + proto.RegisterExtension(E_JnprInterfacesInterfaceExt) +} + +func init() { proto.RegisterFile("dcd_oc.proto", fileDescriptor_49af152afdbe540c) } + +var fileDescriptor_49af152afdbe540c = []byte{ + // 416 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x50, 0x3d, 0x8f, 0xd3, 0x40, + 0x10, 0xd5, 0x5e, 0x38, 0x48, 0x36, 0x80, 0x90, 0xf9, 0xf2, 0x19, 0x11, 0x59, 0x88, 0xc2, 0x14, + 0xb1, 0xa5, 0x83, 0xa3, 0xa0, 0x3a, 0x1d, 0xa2, 0x00, 0x21, 0x8a, 0x3d, 0x24, 0x10, 0xcd, 0xb2, + 0xb1, 0x87, 0xcd, 0x3a, 0xf6, 0xee, 0xb2, 0x3b, 0x07, 0x97, 0x96, 0x3f, 0xc1, 0x5f, 0xa2, 0xa0, + 0xe0, 0x27, 0xa0, 0x14, 0x94, 0xfc, 0x06, 0x64, 0x1b, 0x9c, 0x80, 0x52, 0xa0, 0xeb, 0xe6, 0xbd, + 0x37, 0xef, 0x3d, 0xcd, 0xd0, 0x8b, 0x45, 0x5e, 0x70, 0x93, 0xa7, 0xd6, 0x19, 0x34, 0xd1, 0x55, + 0x84, 0x0a, 0x6a, 0x40, 0xb7, 0xe4, 0x68, 0x6c, 0x47, 0xde, 0xf9, 0x3a, 0xa0, 0xd7, 0x94, 0x46, + 0x70, 0xef, 0x44, 0x0e, 0x9e, 0xf7, 0x63, 0xf0, 0x98, 0x8e, 0x7a, 0x10, 0x7e, 0x26, 0xf1, 0x20, + 0x19, 0xef, 0xdf, 0x4d, 0xb7, 0xad, 0xae, 0x49, 0x5e, 0x29, 0x8f, 0x6c, 0xed, 0x8b, 0x7e, 0xee, + 0xd0, 0xcb, 0x7f, 0xab, 0xc1, 0x1e, 0x3d, 0xa7, 0x45, 0x0d, 0xe1, 0xfd, 0x98, 0x24, 0xa3, 0xa3, + 0xdd, 0x4f, 0x87, 0x3b, 0x43, 0xc2, 0x5a, 0x2a, 0x78, 0x4d, 0xc7, 0x42, 0x4a, 0x07, 0x52, 0xa0, + 0x32, 0xba, 0x29, 0x25, 0xc9, 0x78, 0xff, 0xe0, 0x7f, 0x4a, 0xd3, 0x0d, 0x23, 0xc7, 0xa5, 0x05, + 0xb6, 0x19, 0x15, 0xfd, 0x20, 0xf4, 0xca, 0xbf, 0x1b, 0xc1, 0x2b, 0xba, 0xeb, 0x51, 0x20, 0xfc, + 0x29, 0x3a, 0x3c, 0x53, 0x51, 0xda, 0x66, 0x74, 0x9d, 0x5d, 0x5e, 0xb4, 0xa4, 0x74, 0x4d, 0x06, + 0x7b, 0x74, 0x58, 0x09, 0xd9, 0xce, 0xdd, 0xd1, 0xec, 0x42, 0x25, 0xe4, 0xcb, 0x46, 0xba, 0x45, + 0x47, 0xb5, 0xd2, 0xbc, 0x52, 0x7a, 0xe1, 0xc3, 0x07, 0x31, 0x49, 0x2e, 0xb1, 0x61, 0xad, 0xf4, + 0xf3, 0x06, 0x37, 0x62, 0xe3, 0xf3, 0x16, 0xa0, 0x08, 0x0f, 0x3a, 0xb1, 0x12, 0xf2, 0xb8, 0xc1, + 0xc1, 0x0d, 0x7a, 0xbe, 0x86, 0x7a, 0x06, 0x2e, 0x7c, 0x18, 0x0f, 0x92, 0x11, 0xfb, 0x8d, 0x1e, + 0xbd, 0xa7, 0xb7, 0x4b, 0x6d, 0x1d, 0xdf, 0x76, 0x09, 0x87, 0x53, 0x0c, 0x6e, 0xa6, 0xcf, 0x4e, + 0xb4, 0xb2, 0xe0, 0x5e, 0x00, 0x7e, 0x34, 0x6e, 0xe1, 0x8f, 0x41, 0x7b, 0xe3, 0x7c, 0x78, 0xaf, + 0xfd, 0xc1, 0xf5, 0xad, 0x3f, 0x60, 0x51, 0x13, 0xfa, 0xb4, 0x57, 0xfa, 0xe9, 0xc9, 0x29, 0x1e, + 0xbd, 0xfd, 0xb2, 0x9a, 0x90, 0x6f, 0xab, 0x09, 0xf9, 0xbe, 0x9a, 0x90, 0x37, 0x4c, 0x2a, 0x4c, + 0xcb, 0xae, 0x22, 0xd5, 0x80, 0x99, 0xca, 0x61, 0x06, 0x4e, 0x66, 0x73, 0x10, 0x15, 0xce, 0x67, + 0x06, 0xa7, 0x4a, 0x4b, 0xf0, 0x38, 0x2d, 0x51, 0x4d, 0xb5, 0x40, 0xf5, 0x01, 0x32, 0xbb, 0x90, + 0x59, 0x89, 0x2a, 0x13, 0x85, 0xb0, 0x08, 0xce, 0x67, 0xbc, 0x3c, 0xd1, 0xc6, 0x67, 0x3e, 0x9f, + 0x43, 0x2d, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x37, 0x7b, 0x55, 0x55, 0xc7, 0x02, 0x00, 0x00, +} + +func (m *InterfacesInterface) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesInterface) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesInterface) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDcdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesInterfaceInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesInterfaceInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesInterfaceInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Aggregation != nil { + { + size, err := m.Aggregation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDcdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintDcdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesInterfaceInterfaceListAggregationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesInterfaceInterfaceListAggregationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesInterfaceInterfaceListAggregationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDcdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Member) > 0 { + for iNdEx := len(m.Member) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Member[iNdEx]) + copy(dAtA[i:], m.Member[iNdEx]) + i = encodeVarintDcdOc(dAtA, i, uint64(len(m.Member[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + } + if m.LagSpeed != nil { + i = encodeVarintDcdOc(dAtA, i, uint64(*m.LagSpeed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MinLinks != nil { + i = encodeVarintDcdOc(dAtA, i, uint64(*m.MinLinks)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LagType != nil { + i -= len(*m.LagType) + copy(dAtA[i:], *m.LagType) + i = encodeVarintDcdOc(dAtA, i, uint64(len(*m.LagType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintDcdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovDcdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesInterface) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovDcdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesInterfaceInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovDcdOc(uint64(l)) + } + if m.Aggregation != nil { + l = m.Aggregation.Size() + n += 2 + l + sovDcdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesInterfaceInterfaceListAggregationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovDcdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LagType != nil { + l = len(*m.LagType) + n += 2 + l + sovDcdOc(uint64(l)) + } + if m.MinLinks != nil { + n += 2 + sovDcdOc(uint64(*m.MinLinks)) + } + if m.LagSpeed != nil { + n += 2 + sovDcdOc(uint64(*m.LagSpeed)) + } + if len(m.Member) > 0 { + for _, s := range m.Member { + l = len(s) + n += 2 + l + sovDcdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovDcdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDcdOc(x uint64) (n int) { + return sovDcdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesInterface) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_interface: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_interface: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDcdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDcdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesInterfaceInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDcdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesInterfaceInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDcdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDcdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDcdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDcdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregation == nil { + m.Aggregation = &InterfacesInterfaceInterfaceListAggregationType{} + } + if err := m.Aggregation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDcdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesInterfaceInterfaceListAggregationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregation_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregation_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDcdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDcdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesInterfaceInterfaceListAggregationTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDcdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesInterfaceInterfaceListAggregationTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LagType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDcdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDcdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LagType = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinLinks", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinLinks = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LagSpeed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LagSpeed = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDcdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDcdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDcdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Member = append(m.Member, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDcdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDcdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDcdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDcdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDcdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDcdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthDcdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDcdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDcdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDcdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDcdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDcdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/dcd_oc.proto b/schema/dcd_oc.proto new file mode 100755 index 0000000..7ee0849 --- /dev/null +++ b/schema/dcd_oc.proto @@ -0,0 +1,24 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_interface jnpr_interfaces_interface_ext = 41; +} + +message interfaces_interface { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional aggregation_type aggregation = 151; + message aggregation_type { + optional state_type state = 151; + message state_type { + optional string lag_type = 51; + optional uint32 min_links = 52; + optional uint32 lag_speed = 53; + repeated string member = 54; + } + } + } + repeated interface_list interface = 151; +} diff --git a/schema/eventd.pb.go b/schema/eventd.pb.go new file mode 100644 index 0000000..3d2a3f0 --- /dev/null +++ b/schema/eventd.pb.go @@ -0,0 +1,1794 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: eventd.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosEvents struct { + Events *JunosEventsEventsType `protobuf:"bytes,151,opt,name=events" json:"events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEvents) Reset() { *m = JunosEvents{} } +func (m *JunosEvents) String() string { return proto.CompactTextString(m) } +func (*JunosEvents) ProtoMessage() {} +func (*JunosEvents) Descriptor() ([]byte, []int) { + return fileDescriptor_d5807bd979efd0cf, []int{0} +} +func (m *JunosEvents) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEvents.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEvents) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEvents.Merge(m, src) +} +func (m *JunosEvents) XXX_Size() int { + return m.Size() +} +func (m *JunosEvents) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEvents.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEvents proto.InternalMessageInfo + +func (m *JunosEvents) GetEvents() *JunosEventsEventsType { + if m != nil { + return m.Events + } + return nil +} + +type JunosEventsEventsType struct { + Event []*JunosEventsEventsTypeEventList `protobuf:"bytes,151,rep,name=event" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEventsEventsType) Reset() { *m = JunosEventsEventsType{} } +func (m *JunosEventsEventsType) String() string { return proto.CompactTextString(m) } +func (*JunosEventsEventsType) ProtoMessage() {} +func (*JunosEventsEventsType) Descriptor() ([]byte, []int) { + return fileDescriptor_d5807bd979efd0cf, []int{0, 0} +} +func (m *JunosEventsEventsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEventsEventsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEventsEventsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEventsEventsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEventsEventsType.Merge(m, src) +} +func (m *JunosEventsEventsType) XXX_Size() int { + return m.Size() +} +func (m *JunosEventsEventsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEventsEventsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEventsEventsType proto.InternalMessageInfo + +func (m *JunosEventsEventsType) GetEvent() []*JunosEventsEventsTypeEventList { + if m != nil { + return m.Event + } + return nil +} + +type JunosEventsEventsTypeEventList struct { + Id *string `protobuf:"bytes,51,opt,name=id" json:"id,omitempty"` + Type *string `protobuf:"bytes,52,opt,name=type" json:"type,omitempty"` + Timestamp *JunosEventsEventsTypeEventListTimestampType `protobuf:"bytes,151,opt,name=timestamp" json:"timestamp,omitempty"` + Priority *string `protobuf:"bytes,53,opt,name=priority" json:"priority,omitempty"` + Facility *string `protobuf:"bytes,54,opt,name=facility" json:"facility,omitempty"` + Pid *uint32 `protobuf:"varint,55,opt,name=pid" json:"pid,omitempty"` + Message *string `protobuf:"bytes,56,opt,name=message" json:"message,omitempty"` + Daemon *string `protobuf:"bytes,57,opt,name=daemon" json:"daemon,omitempty"` + Hostname *string `protobuf:"bytes,58,opt,name=hostname" json:"hostname,omitempty"` + Lsname *string `protobuf:"bytes,59,opt,name=lsname" json:"lsname,omitempty"` + Attributes []*JunosEventsEventsTypeEventListAttributesList `protobuf:"bytes,152,rep,name=attributes" json:"attributes,omitempty"` + Logoptions *int32 `protobuf:"varint,60,opt,name=logoptions" json:"logoptions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEventsEventsTypeEventList) Reset() { *m = JunosEventsEventsTypeEventList{} } +func (m *JunosEventsEventsTypeEventList) String() string { return proto.CompactTextString(m) } +func (*JunosEventsEventsTypeEventList) ProtoMessage() {} +func (*JunosEventsEventsTypeEventList) Descriptor() ([]byte, []int) { + return fileDescriptor_d5807bd979efd0cf, []int{0, 0, 0} +} +func (m *JunosEventsEventsTypeEventList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEventsEventsTypeEventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEventsEventsTypeEventList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEventsEventsTypeEventList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEventsEventsTypeEventList.Merge(m, src) +} +func (m *JunosEventsEventsTypeEventList) XXX_Size() int { + return m.Size() +} +func (m *JunosEventsEventsTypeEventList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEventsEventsTypeEventList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEventsEventsTypeEventList proto.InternalMessageInfo + +func (m *JunosEventsEventsTypeEventList) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetTimestamp() *JunosEventsEventsTypeEventListTimestampType { + if m != nil { + return m.Timestamp + } + return nil +} + +func (m *JunosEventsEventsTypeEventList) GetPriority() string { + if m != nil && m.Priority != nil { + return *m.Priority + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetFacility() string { + if m != nil && m.Facility != nil { + return *m.Facility + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetPid() uint32 { + if m != nil && m.Pid != nil { + return *m.Pid + } + return 0 +} + +func (m *JunosEventsEventsTypeEventList) GetMessage() string { + if m != nil && m.Message != nil { + return *m.Message + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetDaemon() string { + if m != nil && m.Daemon != nil { + return *m.Daemon + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetHostname() string { + if m != nil && m.Hostname != nil { + return *m.Hostname + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetLsname() string { + if m != nil && m.Lsname != nil { + return *m.Lsname + } + return "" +} + +func (m *JunosEventsEventsTypeEventList) GetAttributes() []*JunosEventsEventsTypeEventListAttributesList { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *JunosEventsEventsTypeEventList) GetLogoptions() int32 { + if m != nil && m.Logoptions != nil { + return *m.Logoptions + } + return 0 +} + +type JunosEventsEventsTypeEventListTimestampType struct { + Seconds *uint32 `protobuf:"varint,51,opt,name=seconds" json:"seconds,omitempty"` + Microseconds *uint32 `protobuf:"varint,52,opt,name=microseconds" json:"microseconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEventsEventsTypeEventListTimestampType) Reset() { + *m = JunosEventsEventsTypeEventListTimestampType{} +} +func (m *JunosEventsEventsTypeEventListTimestampType) String() string { + return proto.CompactTextString(m) +} +func (*JunosEventsEventsTypeEventListTimestampType) ProtoMessage() {} +func (*JunosEventsEventsTypeEventListTimestampType) Descriptor() ([]byte, []int) { + return fileDescriptor_d5807bd979efd0cf, []int{0, 0, 0, 0} +} +func (m *JunosEventsEventsTypeEventListTimestampType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEventsEventsTypeEventListTimestampType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEventsEventsTypeEventListTimestampType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEventsEventsTypeEventListTimestampType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEventsEventsTypeEventListTimestampType.Merge(m, src) +} +func (m *JunosEventsEventsTypeEventListTimestampType) XXX_Size() int { + return m.Size() +} +func (m *JunosEventsEventsTypeEventListTimestampType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEventsEventsTypeEventListTimestampType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEventsEventsTypeEventListTimestampType proto.InternalMessageInfo + +func (m *JunosEventsEventsTypeEventListTimestampType) GetSeconds() uint32 { + if m != nil && m.Seconds != nil { + return *m.Seconds + } + return 0 +} + +func (m *JunosEventsEventsTypeEventListTimestampType) GetMicroseconds() uint32 { + if m != nil && m.Microseconds != nil { + return *m.Microseconds + } + return 0 +} + +type JunosEventsEventsTypeEventListAttributesList struct { + Key *string `protobuf:"bytes,51,opt,name=key" json:"key,omitempty"` + Value *string `protobuf:"bytes,52,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEventsEventsTypeEventListAttributesList) Reset() { + *m = JunosEventsEventsTypeEventListAttributesList{} +} +func (m *JunosEventsEventsTypeEventListAttributesList) String() string { + return proto.CompactTextString(m) +} +func (*JunosEventsEventsTypeEventListAttributesList) ProtoMessage() {} +func (*JunosEventsEventsTypeEventListAttributesList) Descriptor() ([]byte, []int) { + return fileDescriptor_d5807bd979efd0cf, []int{0, 0, 0, 1} +} +func (m *JunosEventsEventsTypeEventListAttributesList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEventsEventsTypeEventListAttributesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEventsEventsTypeEventListAttributesList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEventsEventsTypeEventListAttributesList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEventsEventsTypeEventListAttributesList.Merge(m, src) +} +func (m *JunosEventsEventsTypeEventListAttributesList) XXX_Size() int { + return m.Size() +} +func (m *JunosEventsEventsTypeEventListAttributesList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEventsEventsTypeEventListAttributesList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEventsEventsTypeEventListAttributesList proto.InternalMessageInfo + +func (m *JunosEventsEventsTypeEventListAttributesList) GetKey() string { + if m != nil && m.Key != nil { + return *m.Key + } + return "" +} + +func (m *JunosEventsEventsTypeEventListAttributesList) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +var E_JnprJunosEventsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosEvents)(nil), + Field: 42, + Name: "jnpr_junos_events_ext", + Tag: "bytes,42,opt,name=jnpr_junos_events_ext", + Filename: "eventd.proto", +} + +func init() { + proto.RegisterType((*JunosEvents)(nil), "junos_events") + proto.RegisterType((*JunosEventsEventsType)(nil), "junos_events.events_type") + proto.RegisterType((*JunosEventsEventsTypeEventList)(nil), "junos_events.events_type.event_list") + proto.RegisterType((*JunosEventsEventsTypeEventListTimestampType)(nil), "junos_events.events_type.event_list.timestamp_type") + proto.RegisterType((*JunosEventsEventsTypeEventListAttributesList)(nil), "junos_events.events_type.event_list.attributes_list") + proto.RegisterExtension(E_JnprJunosEventsExt) +} + +func init() { proto.RegisterFile("eventd.proto", fileDescriptor_d5807bd979efd0cf) } + +var fileDescriptor_d5807bd979efd0cf = []byte{ + // 527 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x4e, 0xdc, 0x3c, + 0x14, 0x55, 0x80, 0xf0, 0xc1, 0xe5, 0xe7, 0xab, 0xdc, 0x1f, 0xdc, 0x2c, 0x46, 0x23, 0xd4, 0xc5, + 0xa8, 0x12, 0x89, 0x04, 0xf4, 0x0f, 0xba, 0x40, 0x48, 0x6c, 0x58, 0xb0, 0x48, 0xd5, 0x45, 0xbb, + 0x49, 0xcd, 0xe4, 0x36, 0xe3, 0x21, 0xb1, 0x23, 0xfb, 0x0e, 0x65, 0xb6, 0x5d, 0xf6, 0x05, 0xda, + 0x97, 0xe9, 0xbe, 0xbb, 0xf6, 0x11, 0x2a, 0x9e, 0xa4, 0xb2, 0x4d, 0x60, 0xa8, 0x54, 0x89, 0x55, + 0xee, 0x39, 0xc7, 0xe7, 0xc4, 0xf7, 0xfa, 0xc2, 0x2a, 0x9e, 0xa3, 0xa2, 0x32, 0x6d, 0x8d, 0x26, + 0x9d, 0xdc, 0x27, 0xac, 0xb1, 0x41, 0x32, 0xd3, 0x82, 0x74, 0x1b, 0xc8, 0xcd, 0x9f, 0x31, 0xac, + 0x8e, 0x27, 0x4a, 0xdb, 0xc2, 0x9f, 0xb5, 0x6c, 0x1b, 0x16, 0x43, 0xc5, 0xbf, 0x46, 0xfd, 0x68, + 0xb0, 0xb2, 0xfd, 0x38, 0x9d, 0xd5, 0xd3, 0xf0, 0x29, 0x68, 0xda, 0x62, 0x7e, 0x75, 0x32, 0xf9, + 0x12, 0xc3, 0xca, 0x0c, 0xcf, 0xf6, 0x21, 0xf6, 0xd0, 0x45, 0xcc, 0x0f, 0x56, 0xb6, 0x9f, 0xfc, + 0x33, 0x22, 0xd4, 0x45, 0x2d, 0x2d, 0xe5, 0xc1, 0x93, 0x7c, 0x5f, 0x00, 0xb8, 0x61, 0xd9, 0x3a, + 0xcc, 0xc9, 0x92, 0xef, 0xf4, 0xa3, 0xc1, 0x72, 0x3e, 0x27, 0x4b, 0xc6, 0x60, 0xc1, 0x19, 0xf9, + 0xae, 0x67, 0x7c, 0xcd, 0x72, 0x58, 0x26, 0xd9, 0xa0, 0x25, 0xd1, 0xb4, 0xdd, 0xb5, 0x77, 0xee, + 0xf2, 0xcf, 0xf4, 0xda, 0x16, 0x1a, 0xba, 0x89, 0x61, 0x09, 0x2c, 0xb5, 0x46, 0x6a, 0x23, 0x69, + 0xca, 0x9f, 0xf9, 0x7f, 0x5d, 0x63, 0xa7, 0x7d, 0x14, 0x43, 0x59, 0x3b, 0xed, 0x79, 0xd0, 0x3a, + 0xcc, 0xee, 0xc1, 0x7c, 0x2b, 0x4b, 0xfe, 0xa2, 0x1f, 0x0d, 0xd6, 0x72, 0x57, 0x32, 0x0e, 0xff, + 0x35, 0x68, 0xad, 0xa8, 0x90, 0xbf, 0xf4, 0x87, 0x3b, 0xc8, 0x1e, 0xc1, 0x62, 0x29, 0xb0, 0xd1, + 0x8a, 0xbf, 0xf2, 0xc2, 0x15, 0x72, 0xf9, 0x23, 0x6d, 0x49, 0x89, 0x06, 0xf9, 0x5e, 0xc8, 0xef, + 0xb0, 0xf3, 0xd4, 0xd6, 0x2b, 0xfb, 0xc1, 0x13, 0x10, 0x7b, 0x0b, 0x20, 0x88, 0x8c, 0x3c, 0x9d, + 0x10, 0x5a, 0xfe, 0x2d, 0x0c, 0x7e, 0xf7, 0x4e, 0x43, 0xb8, 0xf1, 0x85, 0x87, 0x98, 0x09, 0x62, + 0x3d, 0x80, 0x5a, 0x57, 0xba, 0x25, 0xa9, 0x95, 0xe5, 0xaf, 0xfb, 0xd1, 0x20, 0xce, 0x67, 0x98, + 0xe4, 0x04, 0xd6, 0x6f, 0xcf, 0xd0, 0xb5, 0x6b, 0x71, 0xa8, 0x55, 0x69, 0xfd, 0xab, 0xad, 0xe5, + 0x1d, 0x64, 0x9b, 0xb0, 0xda, 0xc8, 0xa1, 0xd1, 0x9d, 0xbc, 0xeb, 0xe5, 0x5b, 0x5c, 0x72, 0x00, + 0xff, 0xff, 0x75, 0x1d, 0xb6, 0x01, 0xf3, 0x67, 0x38, 0x0d, 0x2b, 0x70, 0x18, 0x7f, 0x3e, 0x98, + 0x5b, 0x8a, 0x72, 0xc7, 0xb0, 0x07, 0x10, 0x9f, 0x8b, 0x7a, 0xd2, 0xed, 0x42, 0x00, 0x7b, 0xef, + 0xe0, 0xe1, 0x58, 0xb5, 0xa6, 0x98, 0xed, 0xbc, 0xc0, 0x0b, 0x62, 0x1b, 0xe9, 0xf1, 0x44, 0xc9, + 0x16, 0xcd, 0x09, 0xd2, 0x27, 0x6d, 0xce, 0xec, 0x1b, 0x54, 0x56, 0x1b, 0xcb, 0x9f, 0xfa, 0x85, + 0x59, 0xbb, 0x35, 0xab, 0x9c, 0xb9, 0x90, 0x63, 0xc7, 0x1c, 0x79, 0xe2, 0xe8, 0x82, 0x0e, 0x3f, + 0xfc, 0xb8, 0xec, 0x45, 0xbf, 0x2e, 0x7b, 0xd1, 0xef, 0xcb, 0x5e, 0xf4, 0x3e, 0xaf, 0x24, 0x39, + 0x8f, 0x8b, 0x4c, 0x15, 0x52, 0x26, 0x87, 0x78, 0x8a, 0xa6, 0xca, 0x46, 0x28, 0x6a, 0x1a, 0x9d, + 0x6a, 0xda, 0x92, 0xaa, 0x42, 0x4b, 0x5b, 0x63, 0x92, 0x5b, 0x4a, 0x90, 0x3c, 0xc7, 0xac, 0x3d, + 0xab, 0xb2, 0x31, 0xc9, 0x4c, 0x94, 0xa2, 0x25, 0x34, 0x36, 0x0b, 0xf7, 0xcc, 0xec, 0x70, 0x84, + 0x8d, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x51, 0xe2, 0x96, 0xb2, 0x03, 0x00, 0x00, +} + +func (m *JunosEvents) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEvents) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEvents) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Events != nil { + { + size, err := m.Events.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEventd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosEventsEventsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEventsEventsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEventsEventsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Event) > 0 { + for iNdEx := len(m.Event) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Event[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEventd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosEventsEventsTypeEventList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEventsEventsTypeEventList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEventsEventsTypeEventList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Attributes) > 0 { + for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEventd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Timestamp != nil { + { + size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEventd(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Logoptions != nil { + i = encodeVarintEventd(dAtA, i, uint64(*m.Logoptions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.Lsname != nil { + i -= len(*m.Lsname) + copy(dAtA[i:], *m.Lsname) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Lsname))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.Hostname != nil { + i -= len(*m.Hostname) + copy(dAtA[i:], *m.Hostname) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Hostname))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.Daemon != nil { + i -= len(*m.Daemon) + copy(dAtA[i:], *m.Daemon) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Daemon))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.Message != nil { + i -= len(*m.Message) + copy(dAtA[i:], *m.Message) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Message))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Pid != nil { + i = encodeVarintEventd(dAtA, i, uint64(*m.Pid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Facility != nil { + i -= len(*m.Facility) + copy(dAtA[i:], *m.Facility) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Facility))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Priority != nil { + i -= len(*m.Priority) + copy(dAtA[i:], *m.Priority) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Priority))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosEventsEventsTypeEventListTimestampType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEventsEventsTypeEventListTimestampType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEventsEventsTypeEventListTimestampType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Microseconds != nil { + i = encodeVarintEventd(dAtA, i, uint64(*m.Microseconds)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Seconds != nil { + i = encodeVarintEventd(dAtA, i, uint64(*m.Seconds)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosEventsEventsTypeEventListAttributesList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEventsEventsTypeEventListAttributesList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEventsEventsTypeEventListAttributesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Key != nil { + i -= len(*m.Key) + copy(dAtA[i:], *m.Key) + i = encodeVarintEventd(dAtA, i, uint64(len(*m.Key))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintEventd(dAtA []byte, offset int, v uint64) int { + offset -= sovEventd(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosEvents) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Events != nil { + l = m.Events.Size() + n += 2 + l + sovEventd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEventsEventsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Event) > 0 { + for _, e := range m.Event { + l = e.Size() + n += 2 + l + sovEventd(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEventsEventsTypeEventList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Priority != nil { + l = len(*m.Priority) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Facility != nil { + l = len(*m.Facility) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Pid != nil { + n += 2 + sovEventd(uint64(*m.Pid)) + } + if m.Message != nil { + l = len(*m.Message) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Daemon != nil { + l = len(*m.Daemon) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Hostname != nil { + l = len(*m.Hostname) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Lsname != nil { + l = len(*m.Lsname) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Logoptions != nil { + n += 2 + sovEventd(uint64(*m.Logoptions)) + } + if m.Timestamp != nil { + l = m.Timestamp.Size() + n += 2 + l + sovEventd(uint64(l)) + } + if len(m.Attributes) > 0 { + for _, e := range m.Attributes { + l = e.Size() + n += 2 + l + sovEventd(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEventsEventsTypeEventListTimestampType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Seconds != nil { + n += 2 + sovEventd(uint64(*m.Seconds)) + } + if m.Microseconds != nil { + n += 2 + sovEventd(uint64(*m.Microseconds)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEventsEventsTypeEventListAttributesList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Key != nil { + l = len(*m.Key) + n += 2 + l + sovEventd(uint64(l)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovEventd(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovEventd(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEventd(x uint64) (n int) { + return sovEventd(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosEvents) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_events: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_events: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Events == nil { + m.Events = &JunosEventsEventsType{} + } + if err := m.Events.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEventd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEventsEventsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: events_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: events_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Event = append(m.Event, &JunosEventsEventsTypeEventList{}) + if err := m.Event[len(m.Event)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEventd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEventsEventsTypeEventList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: event_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: event_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Priority = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Facility", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Facility = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Pid = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Message = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Daemon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Daemon = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Hostname = &s + iNdEx = postIndex + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lsname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Lsname = &s + iNdEx = postIndex + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Logoptions", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Logoptions = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Timestamp == nil { + m.Timestamp = &JunosEventsEventsTypeEventListTimestampType{} + } + if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Attributes = append(m.Attributes, &JunosEventsEventsTypeEventListAttributesList{}) + if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEventd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEventsEventsTypeEventListTimestampType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: timestamp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: timestamp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Seconds", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Seconds = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Microseconds", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Microseconds = &v + default: + iNdEx = preIndex + skippy, err := skipEventd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEventsEventsTypeEventListAttributesList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Key = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEventd + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEventd + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEventd + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEventd(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEventd + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipEventd(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEventd + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEventd + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowEventd + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthEventd + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupEventd + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthEventd + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthEventd = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowEventd = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupEventd = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/eventd.proto b/schema/eventd.proto new file mode 100755 index 0000000..4f855e6 --- /dev/null +++ b/schema/eventd.proto @@ -0,0 +1,36 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_events jnpr_junos_events_ext = 42; +} + +message junos_events { + optional events_type events = 151; + message events_type { + message event_list { + optional string id = 51; + optional string type = 52; + optional timestamp_type timestamp = 151; + message timestamp_type { + optional uint32 seconds = 51; + optional uint32 microseconds = 52; + } + optional string priority = 53; + optional string facility = 54; + optional uint32 pid = 55; + optional string message = 56; + optional string daemon = 57; + optional string hostname = 58; + optional string lsname = 59; + message attributes_list { + optional string key = 51 [(telemetry_options).is_key = true]; + optional string value = 52; + } + repeated attributes_list attributes = 152; + optional int32 logoptions = 60; + } + repeated event_list event = 151; + } +} diff --git a/schema/fabric.pb.go b/schema/fabric.pb.go new file mode 100644 index 0000000..b78bd10 --- /dev/null +++ b/schema/fabric.pb.go @@ -0,0 +1,1816 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: fabric.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type FabricMessageSensorLocation int32 + +const ( + FabricMessage_Linecard FabricMessageSensorLocation = 1 + FabricMessage_Switch_Fabric FabricMessageSensorLocation = 2 +) + +var FabricMessageSensorLocation_name = map[int32]string{ + 1: "Linecard", + 2: "Switch_Fabric", +} + +var FabricMessageSensorLocation_value = map[string]int32{ + "Linecard": 1, + "Switch_Fabric": 2, +} + +func (x FabricMessageSensorLocation) Enum() *FabricMessageSensorLocation { + p := new(FabricMessageSensorLocation) + *p = x + return p +} + +func (x FabricMessageSensorLocation) String() string { + return proto.EnumName(FabricMessageSensorLocation_name, int32(x)) +} + +func (x *FabricMessageSensorLocation) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FabricMessageSensorLocation_value, data, "FabricMessageSensorLocation") + if err != nil { + return err + } + *x = FabricMessageSensorLocation(value) + return nil +} + +func (FabricMessageSensorLocation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_284efff686d8e9bf, []int{0, 0} +} + +type EdgeStatsIdentifierType int32 + +const ( + EdgeStats_Switch_Fabric EdgeStatsIdentifierType = 1 + EdgeStats_Linecard EdgeStatsIdentifierType = 2 +) + +var EdgeStatsIdentifierType_name = map[int32]string{ + 1: "Switch_Fabric", + 2: "Linecard", +} + +var EdgeStatsIdentifierType_value = map[string]int32{ + "Switch_Fabric": 1, + "Linecard": 2, +} + +func (x EdgeStatsIdentifierType) Enum() *EdgeStatsIdentifierType { + p := new(EdgeStatsIdentifierType) + *p = x + return p +} + +func (x EdgeStatsIdentifierType) String() string { + return proto.EnumName(EdgeStatsIdentifierType_name, int32(x)) +} + +func (x *EdgeStatsIdentifierType) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(EdgeStatsIdentifierType_value, data, "EdgeStatsIdentifierType") + if err != nil { + return err + } + *x = EdgeStatsIdentifierType(value) + return nil +} + +func (EdgeStatsIdentifierType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_284efff686d8e9bf, []int{1, 0} +} + +type FabricMessage struct { + Edges []*EdgeStats `protobuf:"bytes,1,rep,name=edges" json:"edges,omitempty"` + Location *FabricMessageSensorLocation `protobuf:"varint,2,opt,name=location,enum=FabricMessageSensorLocation" json:"location,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FabricMessage) Reset() { *m = FabricMessage{} } +func (m *FabricMessage) String() string { return proto.CompactTextString(m) } +func (*FabricMessage) ProtoMessage() {} +func (*FabricMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_284efff686d8e9bf, []int{0} +} +func (m *FabricMessage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FabricMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FabricMessage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FabricMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_FabricMessage.Merge(m, src) +} +func (m *FabricMessage) XXX_Size() int { + return m.Size() +} +func (m *FabricMessage) XXX_DiscardUnknown() { + xxx_messageInfo_FabricMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_FabricMessage proto.InternalMessageInfo + +func (m *FabricMessage) GetEdges() []*EdgeStats { + if m != nil { + return m.Edges + } + return nil +} + +func (m *FabricMessage) GetLocation() FabricMessageSensorLocation { + if m != nil && m.Location != nil { + return *m.Location + } + return FabricMessage_Linecard +} + +type EdgeStats struct { + SourceType *EdgeStatsIdentifierType `protobuf:"varint,1,opt,name=source_type,json=sourceType,enum=EdgeStatsIdentifierType" json:"source_type,omitempty"` + SourceSlot *uint32 `protobuf:"varint,2,opt,name=source_slot,json=sourceSlot" json:"source_slot,omitempty"` + SourcePfe *uint32 `protobuf:"varint,3,opt,name=source_pfe,json=sourcePfe" json:"source_pfe,omitempty"` + DestinationType *EdgeStatsIdentifierType `protobuf:"varint,4,opt,name=destination_type,json=destinationType,enum=EdgeStatsIdentifierType" json:"destination_type,omitempty"` + DestinationSlot *uint32 `protobuf:"varint,5,opt,name=destination_slot,json=destinationSlot" json:"destination_slot,omitempty"` + DestinationPfe *uint32 `protobuf:"varint,6,opt,name=destination_pfe,json=destinationPfe" json:"destination_pfe,omitempty"` + // stats from src's perspective + ClassStats []*ClassStats `protobuf:"bytes,7,rep,name=class_stats,json=classStats" json:"class_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EdgeStats) Reset() { *m = EdgeStats{} } +func (m *EdgeStats) String() string { return proto.CompactTextString(m) } +func (*EdgeStats) ProtoMessage() {} +func (*EdgeStats) Descriptor() ([]byte, []int) { + return fileDescriptor_284efff686d8e9bf, []int{1} +} +func (m *EdgeStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EdgeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EdgeStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EdgeStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_EdgeStats.Merge(m, src) +} +func (m *EdgeStats) XXX_Size() int { + return m.Size() +} +func (m *EdgeStats) XXX_DiscardUnknown() { + xxx_messageInfo_EdgeStats.DiscardUnknown(m) +} + +var xxx_messageInfo_EdgeStats proto.InternalMessageInfo + +func (m *EdgeStats) GetSourceType() EdgeStatsIdentifierType { + if m != nil && m.SourceType != nil { + return *m.SourceType + } + return EdgeStats_Switch_Fabric +} + +func (m *EdgeStats) GetSourceSlot() uint32 { + if m != nil && m.SourceSlot != nil { + return *m.SourceSlot + } + return 0 +} + +func (m *EdgeStats) GetSourcePfe() uint32 { + if m != nil && m.SourcePfe != nil { + return *m.SourcePfe + } + return 0 +} + +func (m *EdgeStats) GetDestinationType() EdgeStatsIdentifierType { + if m != nil && m.DestinationType != nil { + return *m.DestinationType + } + return EdgeStats_Switch_Fabric +} + +func (m *EdgeStats) GetDestinationSlot() uint32 { + if m != nil && m.DestinationSlot != nil { + return *m.DestinationSlot + } + return 0 +} + +func (m *EdgeStats) GetDestinationPfe() uint32 { + if m != nil && m.DestinationPfe != nil { + return *m.DestinationPfe + } + return 0 +} + +func (m *EdgeStats) GetClassStats() []*ClassStats { + if m != nil { + return m.ClassStats + } + return nil +} + +type ClassStats struct { + // service class, 0 being highest + Priority *string `protobuf:"bytes,1,opt,name=priority" json:"priority,omitempty"` + // transmit data from src to dst + TransmitCounts *Counters `protobuf:"bytes,2,opt,name=transmit_counts,json=transmitCounts" json:"transmit_counts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClassStats) Reset() { *m = ClassStats{} } +func (m *ClassStats) String() string { return proto.CompactTextString(m) } +func (*ClassStats) ProtoMessage() {} +func (*ClassStats) Descriptor() ([]byte, []int) { + return fileDescriptor_284efff686d8e9bf, []int{2} +} +func (m *ClassStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ClassStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ClassStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ClassStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClassStats.Merge(m, src) +} +func (m *ClassStats) XXX_Size() int { + return m.Size() +} +func (m *ClassStats) XXX_DiscardUnknown() { + xxx_messageInfo_ClassStats.DiscardUnknown(m) +} + +var xxx_messageInfo_ClassStats proto.InternalMessageInfo + +func (m *ClassStats) GetPriority() string { + if m != nil && m.Priority != nil { + return *m.Priority + } + return "" +} + +func (m *ClassStats) GetTransmitCounts() *Counters { + if m != nil { + return m.TransmitCounts + } + return nil +} + +type Counters struct { + // Counter: total packets/cells from this source->destination + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + // Counter: total bytes from this source->destination + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rate: packets/cells per seconds, measured across an interval of 1 second. + PacketsPerSecond *uint64 `protobuf:"varint,3,opt,name=packets_per_second,json=packetsPerSecond" json:"packets_per_second,omitempty"` + // Rate: bits per seconds, measured across an interval of 1 second. + BytesPerSecond *uint64 `protobuf:"varint,4,opt,name=bytes_per_second,json=bytesPerSecond" json:"bytes_per_second,omitempty"` + // Counter: total number of dropped packets/cells from this source->destination + DropPackets *uint64 `protobuf:"varint,5,opt,name=drop_packets,json=dropPackets" json:"drop_packets,omitempty"` + // Counter: total number of dropped bytes from this source->destination + DropBytes *uint64 `protobuf:"varint,6,opt,name=drop_bytes,json=dropBytes" json:"drop_bytes,omitempty"` + // Rate: the rate at which packets/cells are dropped, in pps/cps, measured + // across an interval of 1 second. + DropPacketsPerSecond *uint64 `protobuf:"varint,7,opt,name=drop_packets_per_second,json=dropPacketsPerSecond" json:"drop_packets_per_second,omitempty"` + // Rate: the rate at which bytes are dropped, in bytes per sec, measured + // across an interval of 1 second. + DropBytesPerSecond *uint64 `protobuf:"varint,8,opt,name=drop_bytes_per_second,json=dropBytesPerSecond" json:"drop_bytes_per_second,omitempty"` + // Average: avg queue depth,TAQL:time-average-queue-len, in packets + QueueDepthAverage *uint64 `protobuf:"varint,9,opt,name=queue_depth_average,json=queueDepthAverage" json:"queue_depth_average,omitempty"` + // Gauge: current queue depth, in packets + QueueDepthCurrent *uint64 `protobuf:"varint,10,opt,name=queue_depth_current,json=queueDepthCurrent" json:"queue_depth_current,omitempty"` + // Peak: the max measured queue depth, in packets, across all measurements since boot. + QueueDepthPeak *uint64 `protobuf:"varint,11,opt,name=queue_depth_peak,json=queueDepthPeak" json:"queue_depth_peak,omitempty"` + // The configured maximum depth of the queue, in packets + QueueDepthMaximum *uint64 `protobuf:"varint,12,opt,name=queue_depth_maximum,json=queueDepthMaximum" json:"queue_depth_maximum,omitempty"` + // Counter: total number of errored packets + ErrorPackets *uint64 `protobuf:"varint,13,opt,name=error_packets,json=errorPackets" json:"error_packets,omitempty"` + // Rate: the rate of errored packets, in pps, measured across an interval of 1 second. + ErrorPacketsPerSecond *uint64 `protobuf:"varint,14,opt,name=error_packets_per_second,json=errorPacketsPerSecond" json:"error_packets_per_second,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Counters) Reset() { *m = Counters{} } +func (m *Counters) String() string { return proto.CompactTextString(m) } +func (*Counters) ProtoMessage() {} +func (*Counters) Descriptor() ([]byte, []int) { + return fileDescriptor_284efff686d8e9bf, []int{3} +} +func (m *Counters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Counters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Counters.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Counters) XXX_Merge(src proto.Message) { + xxx_messageInfo_Counters.Merge(m, src) +} +func (m *Counters) XXX_Size() int { + return m.Size() +} +func (m *Counters) XXX_DiscardUnknown() { + xxx_messageInfo_Counters.DiscardUnknown(m) +} + +var xxx_messageInfo_Counters proto.InternalMessageInfo + +func (m *Counters) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *Counters) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *Counters) GetPacketsPerSecond() uint64 { + if m != nil && m.PacketsPerSecond != nil { + return *m.PacketsPerSecond + } + return 0 +} + +func (m *Counters) GetBytesPerSecond() uint64 { + if m != nil && m.BytesPerSecond != nil { + return *m.BytesPerSecond + } + return 0 +} + +func (m *Counters) GetDropPackets() uint64 { + if m != nil && m.DropPackets != nil { + return *m.DropPackets + } + return 0 +} + +func (m *Counters) GetDropBytes() uint64 { + if m != nil && m.DropBytes != nil { + return *m.DropBytes + } + return 0 +} + +func (m *Counters) GetDropPacketsPerSecond() uint64 { + if m != nil && m.DropPacketsPerSecond != nil { + return *m.DropPacketsPerSecond + } + return 0 +} + +func (m *Counters) GetDropBytesPerSecond() uint64 { + if m != nil && m.DropBytesPerSecond != nil { + return *m.DropBytesPerSecond + } + return 0 +} + +func (m *Counters) GetQueueDepthAverage() uint64 { + if m != nil && m.QueueDepthAverage != nil { + return *m.QueueDepthAverage + } + return 0 +} + +func (m *Counters) GetQueueDepthCurrent() uint64 { + if m != nil && m.QueueDepthCurrent != nil { + return *m.QueueDepthCurrent + } + return 0 +} + +func (m *Counters) GetQueueDepthPeak() uint64 { + if m != nil && m.QueueDepthPeak != nil { + return *m.QueueDepthPeak + } + return 0 +} + +func (m *Counters) GetQueueDepthMaximum() uint64 { + if m != nil && m.QueueDepthMaximum != nil { + return *m.QueueDepthMaximum + } + return 0 +} + +func (m *Counters) GetErrorPackets() uint64 { + if m != nil && m.ErrorPackets != nil { + return *m.ErrorPackets + } + return 0 +} + +func (m *Counters) GetErrorPacketsPerSecond() uint64 { + if m != nil && m.ErrorPacketsPerSecond != nil { + return *m.ErrorPacketsPerSecond + } + return 0 +} + +var E_FabricMessageExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*FabricMessage)(nil), + Field: 2, + Name: "fabricMessageExt", + Tag: "bytes,2,opt,name=fabricMessageExt", + Filename: "fabric.proto", +} + +func init() { + proto.RegisterEnum("FabricMessageSensorLocation", FabricMessageSensorLocation_name, FabricMessageSensorLocation_value) + proto.RegisterEnum("EdgeStatsIdentifierType", EdgeStatsIdentifierType_name, EdgeStatsIdentifierType_value) + proto.RegisterType((*FabricMessage)(nil), "fabric_message") + proto.RegisterType((*EdgeStats)(nil), "edge_stats") + proto.RegisterType((*ClassStats)(nil), "class_stats") + proto.RegisterType((*Counters)(nil), "counters") + proto.RegisterExtension(E_FabricMessageExt) +} + +func init() { proto.RegisterFile("fabric.proto", fileDescriptor_284efff686d8e9bf) } + +var fileDescriptor_284efff686d8e9bf = []byte{ + // 742 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcb, 0x6e, 0xfb, 0x44, + 0x14, 0xc6, 0xe5, 0xb4, 0x69, 0x93, 0x93, 0x6b, 0xa7, 0x54, 0xb5, 0xa8, 0xd4, 0x4b, 0x54, 0xa1, + 0x0a, 0x29, 0x36, 0x0a, 0x42, 0x42, 0x08, 0x21, 0x48, 0x81, 0x05, 0xa2, 0x28, 0x72, 0xba, 0x62, + 0x63, 0x26, 0xf6, 0x49, 0x32, 0xb9, 0x78, 0xcc, 0xcc, 0xb8, 0x6d, 0xb6, 0xbc, 0x0e, 0x4b, 0x36, + 0x3c, 0x02, 0x4b, 0x1e, 0x01, 0xf5, 0x49, 0x90, 0x67, 0xe2, 0x64, 0x92, 0xaa, 0xd2, 0x7f, 0xd7, + 0x39, 0xdf, 0xf7, 0x9d, 0xf3, 0xcb, 0x9c, 0x7a, 0xa0, 0x3e, 0xa6, 0x23, 0xc1, 0x22, 0x2f, 0x15, + 0x5c, 0xf1, 0x8f, 0x4f, 0x15, 0x2e, 0x70, 0x89, 0x4a, 0xac, 0x42, 0xc5, 0x53, 0x53, 0xec, 0xfc, + 0xe9, 0x40, 0xd3, 0xb8, 0xc2, 0x25, 0x4a, 0x49, 0x27, 0x48, 0x6e, 0xa0, 0x8c, 0xf1, 0x04, 0xa5, + 0xeb, 0x5c, 0x1f, 0xdc, 0xd5, 0x7a, 0x35, 0x2f, 0x3f, 0x85, 0x52, 0x51, 0x25, 0x03, 0xa3, 0x90, + 0x3e, 0x54, 0x16, 0x3c, 0xa2, 0x8a, 0xf1, 0xc4, 0x2d, 0x5d, 0x3b, 0x77, 0xcd, 0xde, 0x95, 0xb7, + 0xdb, 0xc5, 0x93, 0x98, 0x48, 0x2e, 0xc2, 0xc2, 0xd6, 0x2f, 0xff, 0xf1, 0x6d, 0xa9, 0xe2, 0x04, + 0x9b, 0x5c, 0xa7, 0x07, 0xad, 0x3d, 0x0f, 0xa9, 0x43, 0xe5, 0x67, 0x96, 0x60, 0x44, 0x45, 0xdc, + 0x76, 0xc8, 0x09, 0x34, 0x86, 0xcf, 0x4c, 0x45, 0xd3, 0xf0, 0x47, 0xdd, 0xba, 0x5d, 0xea, 0xfc, + 0x75, 0x00, 0xb0, 0xa5, 0x21, 0xf7, 0x50, 0x93, 0x3c, 0x13, 0x11, 0x86, 0x6a, 0x95, 0xa2, 0xeb, + 0x68, 0x92, 0x0b, 0x8b, 0xd7, 0x63, 0x31, 0x26, 0x8a, 0x8d, 0x19, 0x0a, 0x6d, 0x29, 0x28, 0xc0, + 0xc4, 0x1e, 0x57, 0x29, 0x92, 0x4f, 0x36, 0x4d, 0xe4, 0x82, 0x2b, 0xfd, 0x73, 0x1a, 0x7b, 0xbe, + 0xe1, 0x82, 0x2b, 0x72, 0x0b, 0xeb, 0x53, 0x98, 0x8e, 0xd1, 0x3d, 0xb0, 0x6d, 0x55, 0x23, 0x0c, + 0xc6, 0x48, 0x1e, 0xa0, 0x1d, 0xa3, 0x54, 0x2c, 0xd1, 0xbf, 0xc8, 0x70, 0x1d, 0x7e, 0x30, 0x57, + 0xcb, 0xca, 0x6a, 0xb8, 0xcf, 0x76, 0xdb, 0x69, 0xc2, 0xb2, 0x3d, 0xda, 0x4e, 0x68, 0x4c, 0x0f, + 0xec, 0x92, 0x66, 0x3d, 0xb2, 0x03, 0x4d, 0x4b, 0xcd, 0x81, 0xbb, 0x50, 0x8b, 0x16, 0x54, 0x4a, + 0x03, 0xe6, 0x1e, 0xeb, 0x9d, 0xd7, 0x3d, 0xab, 0x16, 0x80, 0x3e, 0x0c, 0xf3, 0xbf, 0xf3, 0xad, + 0xed, 0xb1, 0xbf, 0xdd, 0x93, 0xb3, 0xb3, 0xc8, 0x52, 0x27, 0xde, 0x19, 0x41, 0x6e, 0xa0, 0x92, + 0x0a, 0xc6, 0x05, 0x53, 0x2b, 0xbd, 0xb2, 0xea, 0xe6, 0x7f, 0xa3, 0x28, 0x93, 0x1e, 0xb4, 0x94, + 0xa0, 0x89, 0x5c, 0x32, 0x15, 0x46, 0x3c, 0x4b, 0x94, 0xd4, 0x7b, 0xa9, 0xf5, 0xaa, 0x9e, 0x3e, + 0xa2, 0x90, 0x41, 0xb3, 0x70, 0xdc, 0x6b, 0x43, 0xe7, 0xef, 0x32, 0x54, 0x0a, 0x91, 0x5c, 0xc1, + 0x71, 0x4a, 0xa3, 0x39, 0x2a, 0xa9, 0x47, 0x1c, 0xea, 0x11, 0xae, 0x13, 0x14, 0x55, 0x72, 0x01, + 0xe5, 0xd1, 0x4a, 0xa1, 0xe9, 0xbb, 0x91, 0x4d, 0x8d, 0x7c, 0x0e, 0x64, 0xed, 0x0b, 0x53, 0x14, + 0xa1, 0xc4, 0x88, 0x27, 0xb1, 0x5e, 0xb9, 0x71, 0x5e, 0x3b, 0x41, 0x7b, 0x6d, 0x18, 0xa0, 0x18, + 0x6a, 0x99, 0xf8, 0xd0, 0xd6, 0x69, 0x3b, 0x72, 0x68, 0x47, 0x9a, 0x5a, 0xde, 0x06, 0xee, 0xa0, + 0x1e, 0x0b, 0x9e, 0x86, 0x05, 0x68, 0xd9, 0x26, 0xa9, 0xe5, 0xd2, 0x60, 0x0d, 0x7b, 0x0b, 0xa0, + 0x9d, 0x86, 0xf8, 0xc8, 0xf6, 0x55, 0x73, 0xa1, 0xaf, 0xa9, 0xbf, 0x86, 0x73, 0xbb, 0x9f, 0xcd, + 0x71, 0x6c, 0x73, 0x7c, 0x64, 0xb5, 0xde, 0xd2, 0x7c, 0x09, 0x67, 0xdb, 0x19, 0x76, 0xb6, 0x62, + 0x67, 0xc9, 0x66, 0xdc, 0x36, 0xf9, 0x05, 0x9c, 0xfe, 0x9e, 0x61, 0x86, 0x61, 0x8c, 0xa9, 0x9a, + 0x86, 0xf4, 0x09, 0x05, 0x9d, 0xa0, 0x5b, 0xb5, 0x73, 0x27, 0xda, 0xf1, 0x7d, 0x6e, 0xf8, 0xce, + 0xe8, 0xfb, 0xb1, 0x28, 0x13, 0x02, 0x13, 0xe5, 0xc2, 0x3b, 0xb1, 0x7b, 0xa3, 0xe7, 0xd7, 0x6c, + 0xc7, 0x52, 0xa4, 0x73, 0xb7, 0xb6, 0x73, 0xcd, 0xdb, 0xcc, 0x00, 0xe9, 0x7c, 0x7f, 0xce, 0x92, + 0xbe, 0xb0, 0x65, 0xb6, 0x74, 0xeb, 0xef, 0xcc, 0x79, 0x30, 0x3a, 0xf9, 0x14, 0x1a, 0x28, 0x04, + 0x17, 0x9b, 0xf5, 0x34, 0xec, 0x6b, 0xaf, 0x6b, 0xad, 0xd8, 0xcf, 0x37, 0xe0, 0xee, 0x78, 0xed, + 0xeb, 0x6b, 0xda, 0x73, 0xce, 0xec, 0xd8, 0xe6, 0x06, 0xbf, 0x7a, 0x84, 0xb6, 0x79, 0x3d, 0x1f, + 0xcc, 0xe3, 0xf9, 0xc3, 0x8b, 0x22, 0xe7, 0xde, 0x4f, 0x59, 0xc2, 0x52, 0x14, 0xbf, 0xa0, 0x7a, + 0xe6, 0x62, 0x2e, 0x87, 0xfa, 0xb1, 0x2c, 0x3e, 0x84, 0xd6, 0xde, 0x7b, 0x1b, 0xbc, 0xe9, 0xd0, + 0xff, 0xed, 0x9f, 0xd7, 0x4b, 0xe7, 0xdf, 0xd7, 0x4b, 0xe7, 0xbf, 0xd7, 0x4b, 0xe7, 0xd7, 0x60, + 0xc2, 0x94, 0x37, 0x33, 0x2d, 0xbd, 0x04, 0x95, 0xcf, 0x22, 0x1c, 0xa1, 0x98, 0xf8, 0x53, 0xa4, + 0x0b, 0x35, 0x1d, 0x71, 0xd5, 0x65, 0xc9, 0x04, 0xa5, 0xea, 0xce, 0x14, 0xeb, 0xe6, 0xef, 0xc3, + 0x13, 0xfa, 0xe9, 0x7c, 0xe2, 0xcf, 0x14, 0xf3, 0x69, 0x4c, 0xd3, 0xfc, 0xbb, 0xf2, 0xc3, 0x59, + 0x96, 0x70, 0xe9, 0xcb, 0x68, 0x8a, 0x4b, 0xfa, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x54, + 0xa4, 0x3d, 0x60, 0x06, 0x00, 0x00, +} + +func (m *FabricMessage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FabricMessage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FabricMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Location != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.Location)) + i-- + dAtA[i] = 0x10 + } + if len(m.Edges) > 0 { + for iNdEx := len(m.Edges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Edges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFabric(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *EdgeStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EdgeStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EdgeStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ClassStats) > 0 { + for iNdEx := len(m.ClassStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ClassStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFabric(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.DestinationPfe != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DestinationPfe)) + i-- + dAtA[i] = 0x30 + } + if m.DestinationSlot != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DestinationSlot)) + i-- + dAtA[i] = 0x28 + } + if m.DestinationType != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DestinationType)) + i-- + dAtA[i] = 0x20 + } + if m.SourcePfe != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.SourcePfe)) + i-- + dAtA[i] = 0x18 + } + if m.SourceSlot != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.SourceSlot)) + i-- + dAtA[i] = 0x10 + } + if m.SourceType != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.SourceType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ClassStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClassStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ClassStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TransmitCounts != nil { + { + size, err := m.TransmitCounts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFabric(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Priority != nil { + i -= len(*m.Priority) + copy(dAtA[i:], *m.Priority) + i = encodeVarintFabric(dAtA, i, uint64(len(*m.Priority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Counters) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Counters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Counters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ErrorPacketsPerSecond != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.ErrorPacketsPerSecond)) + i-- + dAtA[i] = 0x70 + } + if m.ErrorPackets != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.ErrorPackets)) + i-- + dAtA[i] = 0x68 + } + if m.QueueDepthMaximum != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.QueueDepthMaximum)) + i-- + dAtA[i] = 0x60 + } + if m.QueueDepthPeak != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.QueueDepthPeak)) + i-- + dAtA[i] = 0x58 + } + if m.QueueDepthCurrent != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.QueueDepthCurrent)) + i-- + dAtA[i] = 0x50 + } + if m.QueueDepthAverage != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.QueueDepthAverage)) + i-- + dAtA[i] = 0x48 + } + if m.DropBytesPerSecond != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DropBytesPerSecond)) + i-- + dAtA[i] = 0x40 + } + if m.DropPacketsPerSecond != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DropPacketsPerSecond)) + i-- + dAtA[i] = 0x38 + } + if m.DropBytes != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DropBytes)) + i-- + dAtA[i] = 0x30 + } + if m.DropPackets != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.DropPackets)) + i-- + dAtA[i] = 0x28 + } + if m.BytesPerSecond != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.BytesPerSecond)) + i-- + dAtA[i] = 0x20 + } + if m.PacketsPerSecond != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.PacketsPerSecond)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintFabric(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintFabric(dAtA []byte, offset int, v uint64) int { + offset -= sovFabric(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FabricMessage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Edges) > 0 { + for _, e := range m.Edges { + l = e.Size() + n += 1 + l + sovFabric(uint64(l)) + } + } + if m.Location != nil { + n += 1 + sovFabric(uint64(*m.Location)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *EdgeStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SourceType != nil { + n += 1 + sovFabric(uint64(*m.SourceType)) + } + if m.SourceSlot != nil { + n += 1 + sovFabric(uint64(*m.SourceSlot)) + } + if m.SourcePfe != nil { + n += 1 + sovFabric(uint64(*m.SourcePfe)) + } + if m.DestinationType != nil { + n += 1 + sovFabric(uint64(*m.DestinationType)) + } + if m.DestinationSlot != nil { + n += 1 + sovFabric(uint64(*m.DestinationSlot)) + } + if m.DestinationPfe != nil { + n += 1 + sovFabric(uint64(*m.DestinationPfe)) + } + if len(m.ClassStats) > 0 { + for _, e := range m.ClassStats { + l = e.Size() + n += 1 + l + sovFabric(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ClassStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Priority != nil { + l = len(*m.Priority) + n += 1 + l + sovFabric(uint64(l)) + } + if m.TransmitCounts != nil { + l = m.TransmitCounts.Size() + n += 1 + l + sovFabric(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Counters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovFabric(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovFabric(uint64(*m.Bytes)) + } + if m.PacketsPerSecond != nil { + n += 1 + sovFabric(uint64(*m.PacketsPerSecond)) + } + if m.BytesPerSecond != nil { + n += 1 + sovFabric(uint64(*m.BytesPerSecond)) + } + if m.DropPackets != nil { + n += 1 + sovFabric(uint64(*m.DropPackets)) + } + if m.DropBytes != nil { + n += 1 + sovFabric(uint64(*m.DropBytes)) + } + if m.DropPacketsPerSecond != nil { + n += 1 + sovFabric(uint64(*m.DropPacketsPerSecond)) + } + if m.DropBytesPerSecond != nil { + n += 1 + sovFabric(uint64(*m.DropBytesPerSecond)) + } + if m.QueueDepthAverage != nil { + n += 1 + sovFabric(uint64(*m.QueueDepthAverage)) + } + if m.QueueDepthCurrent != nil { + n += 1 + sovFabric(uint64(*m.QueueDepthCurrent)) + } + if m.QueueDepthPeak != nil { + n += 1 + sovFabric(uint64(*m.QueueDepthPeak)) + } + if m.QueueDepthMaximum != nil { + n += 1 + sovFabric(uint64(*m.QueueDepthMaximum)) + } + if m.ErrorPackets != nil { + n += 1 + sovFabric(uint64(*m.ErrorPackets)) + } + if m.ErrorPacketsPerSecond != nil { + n += 1 + sovFabric(uint64(*m.ErrorPacketsPerSecond)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovFabric(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFabric(x uint64) (n int) { + return sovFabric(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FabricMessage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fabric_message: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fabric_message: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Edges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFabric + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFabric + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Edges = append(m.Edges, &EdgeStats{}) + if err := m.Edges[len(m.Edges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var v FabricMessageSensorLocation + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= FabricMessageSensorLocation(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Location = &v + default: + iNdEx = preIndex + skippy, err := skipFabric(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EdgeStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: edge_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: edge_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceType", wireType) + } + var v EdgeStatsIdentifierType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= EdgeStatsIdentifierType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SourceType = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceSlot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SourceSlot = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SourcePfe", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SourcePfe = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationType", wireType) + } + var v EdgeStatsIdentifierType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= EdgeStatsIdentifierType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DestinationType = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationSlot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DestinationSlot = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationPfe", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DestinationPfe = &v + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFabric + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFabric + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClassStats = append(m.ClassStats, &ClassStats{}) + if err := m.ClassStats[len(m.ClassStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFabric(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClassStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: class_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: class_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFabric + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFabric + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Priority = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmitCounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFabric + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFabric + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TransmitCounts == nil { + m.TransmitCounts = &Counters{} + } + if err := m.TransmitCounts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFabric(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Counters) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketsPerSecond", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketsPerSecond = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesPerSecond", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BytesPerSecond = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropPackets = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropBytes = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropPacketsPerSecond", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropPacketsPerSecond = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropBytesPerSecond", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropBytesPerSecond = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueDepthAverage", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueDepthAverage = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueDepthCurrent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueDepthCurrent = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueDepthPeak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueDepthPeak = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueDepthMaximum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueDepthMaximum = &v + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ErrorPackets = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorPacketsPerSecond", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFabric + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ErrorPacketsPerSecond = &v + default: + iNdEx = preIndex + skippy, err := skipFabric(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFabric + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFabric(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFabric + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFabric + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFabric + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthFabric + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFabric + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFabric + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFabric = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFabric = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFabric = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/fabric.proto b/schema/fabric.proto new file mode 100755 index 0000000..eb73f42 --- /dev/null +++ b/schema/fabric.proto @@ -0,0 +1,127 @@ +// +// This defines the gpb message format used by the fabric sensor. +// +// The top level message is 'fabric_message' +// +// Version 1.0 +// +// Copyrights (c) 2015, 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +message fabric_message { + enum sensor_location { + Linecard = 1; // LC + Switch_Fabric = 2; // FAB + }; + repeated edge_stats edges = 1; + optional sensor_location location = 2 [(telemetry_options).is_key = true]; +} + +message edge_stats { + enum identifier_type { + Switch_Fabric = 1; + Linecard = 2; + }; + optional identifier_type source_type = 1 [(telemetry_options).is_key = true]; + optional uint32 source_slot = 2 [(telemetry_options).is_key = true]; + optional uint32 source_pfe = 3 [(telemetry_options).is_key = true]; + optional identifier_type destination_type = 4 [(telemetry_options).is_key = true]; + optional uint32 destination_slot = 5 [(telemetry_options).is_key = true]; + optional uint32 destination_pfe = 6 [(telemetry_options).is_key = true]; + + // stats from src's perspective + repeated class_stats class_stats = 7; +} + +//Example of fabric edge stats: +//1. LOC: LC, SRC: LC/FPC/PFE, Dst: LC/FPC/PFE (FPC XM/MQ cos dstats) +//2. LOC: LC, SRC: LC/FPC/PFE, Dst: Fab/*/* (FPC XM/MQ FO) +//3. LOC: LC, SRC: Fab/*/*, Dst: LC/FPC/PFE (FPC XM/MQ FI) +//4. LOC: FAB, SRC: Fab/plane/*, Dst: LC/FPC/PFE (SCB XF/PF TX) +//5. LOC: FAB, SRC: LC/FPC/PFE, Dst: Fab/plane/* (SCB XF/PF RX) + +message class_stats { + // service class, 0 being highest + optional string priority = 1 [(telemetry_options).is_key = true]; + + // transmit data from src to dst + optional counters transmit_counts = 2; +} + +message counters { + // Counter: total packets/cells from this source->destination + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + + // Counter: total bytes from this source->destination + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rate: packets/cells per seconds, measured across an interval of 1 second. + optional uint64 packets_per_second = 3 [(telemetry_options).is_gauge = true]; + + // Rate: bits per seconds, measured across an interval of 1 second. + optional uint64 bytes_per_second = 4 [(telemetry_options).is_gauge = true]; + + // Counter: total number of dropped packets/cells from this source->destination + optional uint64 drop_packets = 5 [(telemetry_options).is_counter = true]; + + // Counter: total number of dropped bytes from this source->destination + optional uint64 drop_bytes = 6 [(telemetry_options).is_counter = true]; + + // Rate: the rate at which packets/cells are dropped, in pps/cps, measured + // across an interval of 1 second. + optional uint64 drop_packets_per_second = 7 [(telemetry_options).is_gauge = true]; + + // Rate: the rate at which bytes are dropped, in bytes per sec, measured + // across an interval of 1 second. + optional uint64 drop_bytes_per_second = 8 [(telemetry_options).is_gauge = true]; + + // Average: avg queue depth,TAQL:time-average-queue-len, in packets + optional uint64 queue_depth_average = 9 [(telemetry_options).is_gauge = true]; + + // Gauge: current queue depth, in packets + optional uint64 queue_depth_current = 10 [(telemetry_options).is_gauge = true]; + + // Peak: the max measured queue depth, in packets, across all measurements since boot. + optional uint64 queue_depth_peak = 11 [(telemetry_options).is_gauge = true]; + + // The configured maximum depth of the queue, in packets + optional uint64 queue_depth_maximum = 12 [(telemetry_options).is_gauge = true]; + + // Counter: total number of errored packets + optional uint64 error_packets = 13 [(telemetry_options).is_counter = true]; + + // Rate: the rate of errored packets, in pps, measured across an interval of 1 second. + optional uint64 error_packets_per_second = 14 [(telemetry_options).is_gauge = true]; +} + +// +// this occupies branch 2 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional fabric_message fabricMessageExt = 2; +} + diff --git a/schema/fibtd-telemetry_oc.pb.go b/schema/fibtd-telemetry_oc.pb.go new file mode 100644 index 0000000..b326ab2 --- /dev/null +++ b/schema/fibtd-telemetry_oc.pb.go @@ -0,0 +1,8023 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: fibtd-telemetry_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstances struct { + NetworkInstance []*NetworkInstancesNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances) Reset() { *m = NetworkInstances{} } +func (m *NetworkInstances) String() string { return proto.CompactTextString(m) } +func (*NetworkInstances) ProtoMessage() {} +func (*NetworkInstances) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0} +} +func (m *NetworkInstances) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances.Merge(m, src) +} +func (m *NetworkInstances) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances proto.InternalMessageInfo + +func (m *NetworkInstances) GetNetworkInstance() []*NetworkInstancesNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Afts *NetworkInstancesNetworkInstanceListAftsType `protobuf:"bytes,151,opt,name=afts" json:"afts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceList) Reset() { *m = NetworkInstancesNetworkInstanceList{} } +func (m *NetworkInstancesNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0} +} +func (m *NetworkInstancesNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceList) GetAfts() *NetworkInstancesNetworkInstanceListAftsType { + if m != nil { + return m.Afts + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsType struct { + Ipv4Unicast *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType `protobuf:"bytes,151,opt,name=ipv4_unicast,json=ipv4Unicast" json:"ipv4_unicast,omitempty"` + Ipv6Unicast *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType `protobuf:"bytes,152,opt,name=ipv6_unicast,json=ipv6Unicast" json:"ipv6_unicast,omitempty"` + Mpls *NetworkInstancesNetworkInstanceListAftsTypeMplsType `protobuf:"bytes,153,opt,name=mpls" json:"mpls,omitempty"` + NextHopGroups *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType `protobuf:"bytes,154,opt,name=next_hop_groups,json=nextHopGroups" json:"next_hop_groups,omitempty"` + NextHops *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType `protobuf:"bytes,155,opt,name=next_hops,json=nextHops" json:"next_hops,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsType) GetIpv4Unicast() *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType { + if m != nil { + return m.Ipv4Unicast + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) GetIpv6Unicast() *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType { + if m != nil { + return m.Ipv6Unicast + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) GetMpls() *NetworkInstancesNetworkInstanceListAftsTypeMplsType { + if m != nil { + return m.Mpls + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) GetNextHopGroups() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType { + if m != nil { + return m.NextHopGroups + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) GetNextHops() *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType { + if m != nil { + return m.NextHops + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType struct { + Ipv4Entry []*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList `protobuf:"bytes,151,rep,name=ipv4_entry,json=ipv4Entry" json:"ipv4_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) GetIpv4Entry() []*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList { + if m != nil { + return m.Ipv4Entry + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + NextHopGroup *uint64 `protobuf:"varint,52,opt,name=next_hop_group,json=nextHopGroup" json:"next_hop_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) GetNextHopGroup() uint64 { + if m != nil && m.NextHopGroup != nil { + return *m.NextHopGroup + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType struct { + Ipv6Entry []*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList `protobuf:"bytes,151,rep,name=ipv6_entry,json=ipv6Entry" json:"ipv6_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 1} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) GetIpv6Entry() []*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList { + if m != nil { + return m.Ipv6Entry + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 1, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + NextHopGroup *uint64 `protobuf:"varint,52,opt,name=next_hop_group,json=nextHopGroup" json:"next_hop_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) GetNextHopGroup() uint64 { + if m != nil && m.NextHopGroup != nil { + return *m.NextHopGroup + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeMplsType struct { + LabelEntry []*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList `protobuf:"bytes,151,rep,name=label_entry,json=labelEntry" json:"label_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeMplsType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeMplsType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeMplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 2} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) GetLabelEntry() []*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList { + if m != nil { + return m.LabelEntry + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList struct { + Label *string `protobuf:"bytes,51,opt,name=label" json:"label,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 2, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) GetLabel() string { + if m != nil && m.Label != nil { + return *m.Label + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType struct { + Label *string `protobuf:"bytes,51,opt,name=label" json:"label,omitempty"` + NextHopGroup *uint64 `protobuf:"varint,52,opt,name=next_hop_group,json=nextHopGroup" json:"next_hop_group,omitempty"` + PoppedMplsLabelStack []string `protobuf:"bytes,53,rep,name=popped_mpls_label_stack,json=poppedMplsLabelStack" json:"popped_mpls_label_stack,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) GetLabel() string { + if m != nil && m.Label != nil { + return *m.Label + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) GetNextHopGroup() uint64 { + if m != nil && m.NextHopGroup != nil { + return *m.NextHopGroup + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) GetPoppedMplsLabelStack() []string { + if m != nil { + return m.PoppedMplsLabelStack + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType struct { + NextHopGroup []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList `protobuf:"bytes,151,rep,name=next_hop_group,json=nextHopGroup" json:"next_hop_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) GetNextHopGroup() []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList { + if m != nil { + return m.NextHopGroup + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList struct { + Id *uint64 `protobuf:"varint,51,opt,name=id" json:"id,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + NextHops *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType `protobuf:"bytes,152,opt,name=next_hops,json=nextHops" json:"next_hops,omitempty"` + Conditional *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType `protobuf:"bytes,53,opt,name=conditional" json:"conditional,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) GetId() uint64 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) GetNextHops() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType { + if m != nil { + return m.NextHops + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) GetConditional() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType { + if m != nil { + return m.Conditional + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType struct { + Id *uint64 `protobuf:"varint,51,opt,name=id" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) GetId() uint64 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType struct { + NextHop []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList `protobuf:"bytes,151,rep,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 1} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) GetNextHop() []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList { + if m != nil { + return m.NextHop + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList struct { + Index *uint64 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 1, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) GetIndex() uint64 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType struct { + Index *uint64 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Weight *uint64 `protobuf:"varint,52,opt,name=weight" json:"weight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 1, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) GetIndex() uint64 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) GetWeight() uint64 { + if m != nil && m.Weight != nil { + return *m.Weight + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType struct { + Condition []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList `protobuf:"bytes,54,rep,name=condition" json:"condition,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 2} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) GetCondition() []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList { + if m != nil { + return m.Condition + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList struct { + Id *uint64 `protobuf:"varint,55,opt,name=id" json:"id,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType `protobuf:"bytes,56,opt,name=state" json:"state,omitempty"` + InputInterfaces *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType `protobuf:"bytes,60,opt,name=input_interfaces,json=inputInterfaces" json:"input_interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 2, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) GetId() uint64 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) GetInputInterfaces() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType { + if m != nil { + return m.InputInterfaces + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType struct { + Id *uint64 `protobuf:"varint,57,opt,name=id" json:"id,omitempty"` + Dscp []uint32 `protobuf:"varint,58,rep,name=dscp" json:"dscp,omitempty"` + NextHopGroup *uint64 `protobuf:"varint,59,opt,name=next_hop_group,json=nextHopGroup" json:"next_hop_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 2, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) GetId() uint64 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) GetDscp() []uint32 { + if m != nil { + return m.Dscp + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) GetNextHopGroup() uint64 { + if m != nil && m.NextHopGroup != nil { + return *m.NextHopGroup + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType struct { + InputInterface []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList `protobuf:"bytes,61,rep,name=input_interface,json=inputInterface" json:"input_interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 2, 0, 1} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) GetInputInterface() []*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList { + if m != nil { + return m.InputInterface + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList struct { + Id *string `protobuf:"bytes,62,opt,name=id" json:"id,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType `protobuf:"bytes,63,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 2, 0, 1, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType struct { + Id *string `protobuf:"bytes,64,opt,name=id" json:"id,omitempty"` + Interface *string `protobuf:"bytes,65,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,66,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 3, 0, 2, 0, 1, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsType struct { + NextHop []*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList `protobuf:"bytes,151,rep,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) GetNextHop() []*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList { + if m != nil { + return m.NextHop + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList struct { + Index *uint64 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType `protobuf:"bytes,153,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + Juniper *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType `protobuf:"bytes,152,opt,name=juniper" json:"juniper,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) GetIndex() uint64 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) GetInterfaceRef() *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) GetJuniper() *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType { + if m != nil { + return m.Juniper + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType struct { + Index *uint64 `protobuf:"varint,54,opt,name=index" json:"index,omitempty"` + IpAddress *string `protobuf:"bytes,51,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + MacAddress *string `protobuf:"bytes,52,opt,name=mac_address,json=macAddress" json:"mac_address,omitempty"` + PushedMplsLabelStack []string `protobuf:"bytes,53,rep,name=pushed_mpls_label_stack,json=pushedMplsLabelStack" json:"pushed_mpls_label_stack,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) ProtoMessage() {} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4, 0, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) GetIndex() uint64 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) GetIpAddress() string { + if m != nil && m.IpAddress != nil { + return *m.IpAddress + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) GetMacAddress() string { + if m != nil && m.MacAddress != nil { + return *m.MacAddress + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) GetPushedMplsLabelStack() []string { + if m != nil { + return m.PushedMplsLabelStack + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType struct { + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4, 0, 1} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4, 0, 1, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType struct { + State *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4, 0, 2} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) GetState() *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType struct { + UnmappedNexthop *bool `protobuf:"varint,51,opt,name=unmapped_nexthop,json=unmappedNexthop" json:"unmapped_nexthop,omitempty"` + MappedNextHopIndex []uint64 `protobuf:"varint,52,rep,name=mapped_next_hop_index,json=mappedNextHopIndex" json:"mapped_next_hop_index,omitempty"` + LspId *uint32 `protobuf:"varint,53,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) Reset() { + *m = NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType{} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5bef6d0266d7cc46, []int{0, 0, 0, 4, 0, 2, 0} +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) GetUnmappedNexthop() bool { + if m != nil && m.UnmappedNexthop != nil { + return *m.UnmappedNexthop + } + return false +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) GetMappedNextHopIndex() []uint64 { + if m != nil { + return m.MappedNextHopIndex + } + return nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) GetLspId() uint32 { + if m != nil && m.LspId != nil { + return *m.LspId + } + return 0 +} + +var E_JnprNetworkInstancesExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstances)(nil), + Field: 117, + Name: "jnpr_network_instances_ext", + Tag: "bytes,117,opt,name=jnpr_network_instances_ext", + Filename: "fibtd-telemetry_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstances)(nil), "network_instances") + proto.RegisterType((*NetworkInstancesNetworkInstanceList)(nil), "network_instances.network_instance_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsType)(nil), "network_instances.network_instance_list.afts_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType)(nil), "network_instances.network_instance_list.afts_type.ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList)(nil), "network_instances.network_instance_list.afts_type.ipv4_unicast_type.ipv4_entry_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType)(nil), "network_instances.network_instance_list.afts_type.ipv4_unicast_type.ipv4_entry_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType)(nil), "network_instances.network_instance_list.afts_type.ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList)(nil), "network_instances.network_instance_list.afts_type.ipv6_unicast_type.ipv6_entry_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType)(nil), "network_instances.network_instance_list.afts_type.ipv6_unicast_type.ipv6_entry_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeMplsType)(nil), "network_instances.network_instance_list.afts_type.mpls_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList)(nil), "network_instances.network_instance_list.afts_type.mpls_type.label_entry_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType)(nil), "network_instances.network_instance_list.afts_type.mpls_type.label_entry_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.next_hops_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.next_hops_type.next_hop_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.next_hops_type.next_hop_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.conditional_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.conditional_type.condition_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.conditional_type.condition_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.conditional_type.condition_list.input_interfaces_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.conditional_type.condition_list.input_interfaces_type.input_interface_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType)(nil), "network_instances.network_instance_list.afts_type.next_hop_groups_type.next_hop_group_list.conditional_type.condition_list.input_interfaces_type.input_interface_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsType)(nil), "network_instances.network_instance_list.afts_type.next_hops_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList)(nil), "network_instances.network_instance_list.afts_type.next_hops_type.next_hop_list") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType)(nil), "network_instances.network_instance_list.afts_type.next_hops_type.next_hop_list.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType)(nil), "network_instances.network_instance_list.afts_type.next_hops_type.next_hop_list.interface_ref_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType)(nil), "network_instances.network_instance_list.afts_type.next_hops_type.next_hop_list.interface_ref_type.state_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType)(nil), "network_instances.network_instance_list.afts_type.next_hops_type.next_hop_list.juniper_type") + proto.RegisterType((*NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType)(nil), "network_instances.network_instance_list.afts_type.next_hops_type.next_hop_list.juniper_type.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesExt) +} + +func init() { proto.RegisterFile("fibtd-telemetry_oc.proto", fileDescriptor_5bef6d0266d7cc46) } + +var fileDescriptor_5bef6d0266d7cc46 = []byte{ + // 1305 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xdf, 0x8f, 0x13, 0xd5, + 0x17, 0xcf, 0xb4, 0x5d, 0x68, 0x4f, 0xb7, 0xbb, 0xe5, 0xb2, 0x0b, 0xf3, 0x9d, 0x2f, 0x60, 0x43, + 0x7c, 0x28, 0x24, 0xdb, 0x46, 0x58, 0xaa, 0x22, 0x2a, 0x10, 0x09, 0x2c, 0x91, 0x35, 0x0e, 0x68, + 0x0c, 0x1a, 0xc7, 0x69, 0xe7, 0xb6, 0x9d, 0x6e, 0x3b, 0x73, 0x9d, 0x7b, 0x0b, 0x25, 0xc6, 0x5f, + 0xa8, 0xe8, 0x93, 0x09, 0xc6, 0x44, 0x91, 0x98, 0xe8, 0x8b, 0xbe, 0xea, 0x1f, 0xe0, 0x0b, 0x89, + 0x09, 0x8f, 0x3c, 0xf2, 0x68, 0xf6, 0xd5, 0x27, 0xa3, 0x7f, 0x80, 0x99, 0x7b, 0xe7, 0x47, 0xe7, + 0x07, 0x08, 0x6c, 0xbb, 0xab, 0x6f, 0xdb, 0xcf, 0xbd, 0x7b, 0x3e, 0xe7, 0x9c, 0xcf, 0xb9, 0xe7, + 0x9c, 0x16, 0xe4, 0xb6, 0xd9, 0x64, 0xc6, 0x12, 0xc3, 0x7d, 0x3c, 0xc0, 0xcc, 0xb9, 0xa2, 0xd9, + 0xad, 0x1a, 0x71, 0x6c, 0x66, 0x2b, 0x3b, 0x43, 0x8c, 0xd9, 0x44, 0x80, 0xfb, 0xff, 0x38, 0x08, + 0x3b, 0x2c, 0xcc, 0x2e, 0xdb, 0xce, 0x9a, 0x66, 0x5a, 0x94, 0xe9, 0x56, 0x0b, 0x53, 0x74, 0x01, + 0xca, 0x71, 0x50, 0xfe, 0x4a, 0xaa, 0x64, 0xab, 0xc5, 0x43, 0xd5, 0x5a, 0xe2, 0x7a, 0x02, 0xd1, + 0xfa, 0x26, 0x65, 0xea, 0xbc, 0x07, 0xaf, 0x78, 0xa8, 0xf2, 0xc9, 0x41, 0x58, 0x4c, 0xbd, 0x8a, + 0xfe, 0x07, 0x39, 0x4b, 0x1f, 0x60, 0xf9, 0x70, 0x45, 0xaa, 0x16, 0x4e, 0xce, 0x5c, 0x3d, 0x9e, + 0xc9, 0x4b, 0x2a, 0x87, 0xd0, 0x69, 0xc8, 0xe9, 0x6d, 0x46, 0x5d, 0x7a, 0xa9, 0x5a, 0x3c, 0x74, + 0xe8, 0x41, 0xe9, 0x6b, 0xee, 0x7f, 0x69, 0xec, 0x0a, 0xc1, 0x2a, 0x37, 0xa0, 0x7c, 0x7a, 0x00, + 0x0a, 0x01, 0x86, 0xba, 0x30, 0x6b, 0x92, 0x4b, 0xcb, 0xda, 0xd0, 0x32, 0x5b, 0x3a, 0x65, 0xbe, + 0xf9, 0x17, 0x1e, 0xde, 0x7c, 0x6d, 0xdc, 0x8e, 0x20, 0x2c, 0xba, 0xd0, 0x2b, 0x02, 0xf1, 0x98, + 0x1a, 0x01, 0xd3, 0xd7, 0x1b, 0x62, 0x6a, 0x24, 0x99, 0x1a, 0x3e, 0xd3, 0xcb, 0x90, 0x1b, 0x90, + 0x3e, 0x95, 0x6f, 0x08, 0x86, 0x63, 0x8f, 0xc0, 0xe0, 0xfe, 0xbf, 0x97, 0x34, 0xf7, 0x4f, 0x44, + 0x60, 0xde, 0xc2, 0x23, 0xa6, 0x75, 0x6d, 0xa2, 0x75, 0x1c, 0x7b, 0x48, 0xa8, 0xfc, 0x8d, 0xb0, + 0x7e, 0xfa, 0x11, 0xac, 0xc7, 0x4c, 0x09, 0xa2, 0x92, 0x8b, 0x9e, 0xb1, 0xc9, 0x69, 0x8e, 0x21, + 0x0d, 0x0a, 0xfe, 0x35, 0x2a, 0xdf, 0x14, 0x5c, 0x27, 0x36, 0xc0, 0xe5, 0xb1, 0xe4, 0x3d, 0x16, + 0xaa, 0x7c, 0x90, 0x85, 0x1d, 0x09, 0xc9, 0x10, 0x03, 0xe0, 0x20, 0xb6, 0x98, 0x73, 0xc5, 0xaf, + 0xf5, 0x0b, 0x93, 0xa8, 0x86, 0x5a, 0x68, 0x57, 0xbc, 0x8b, 0x82, 0x0b, 0x9c, 0x72, 0x3f, 0x2b, + 0x7f, 0x49, 0x30, 0x1f, 0x3b, 0x46, 0x7b, 0x61, 0x1b, 0x71, 0x70, 0xdb, 0x1c, 0x45, 0x5f, 0x83, + 0x07, 0xa2, 0x4b, 0x30, 0x43, 0x99, 0xce, 0xb0, 0x5f, 0xb1, 0xda, 0x34, 0x7c, 0xac, 0x71, 0x0a, + 0x91, 0x39, 0x41, 0xa7, 0x9c, 0x05, 0x08, 0x41, 0xb4, 0x2b, 0xea, 0x64, 0xe0, 0xdd, 0xe3, 0x30, + 0x17, 0x15, 0x59, 0x5e, 0xae, 0x48, 0xd5, 0x9c, 0x3a, 0x3b, 0x2e, 0xb2, 0x2f, 0x41, 0x23, 0x4d, + 0x82, 0xc6, 0x44, 0x24, 0x68, 0x24, 0xc2, 0x6b, 0xc4, 0x25, 0x68, 0x44, 0x24, 0x68, 0x6c, 0xbe, + 0x04, 0xf7, 0xf7, 0x71, 0xca, 0x12, 0x7c, 0x97, 0x85, 0x42, 0xf0, 0xd8, 0x91, 0x0d, 0xc5, 0xbe, + 0xde, 0xc4, 0xfd, 0x68, 0xee, 0xcf, 0x6d, 0xa4, 0x81, 0xd4, 0xc6, 0x0c, 0x8a, 0xa4, 0x03, 0x47, + 0x44, 0xd6, 0xbf, 0xcf, 0x40, 0x39, 0x7e, 0x01, 0xfd, 0x1f, 0x66, 0x38, 0x16, 0xcd, 0xba, 0xc0, + 0x90, 0x1d, 0x4b, 0xfa, 0x6b, 0x13, 0x75, 0x2e, 0x25, 0xdb, 0xef, 0x47, 0xb2, 0xbd, 0x10, 0xf1, + 0xcd, 0x77, 0xea, 0x81, 0x72, 0x8d, 0x8e, 0xc0, 0x6e, 0x62, 0x13, 0x82, 0x0d, 0x8d, 0x3b, 0x20, + 0xb8, 0x29, 0xd3, 0x5b, 0x6b, 0xf2, 0x91, 0x4a, 0xb6, 0x5a, 0x50, 0x17, 0xc4, 0xf1, 0x39, 0xd2, + 0xa7, 0x2f, 0xba, 0x87, 0xe7, 0xdd, 0x33, 0xe5, 0x3a, 0x82, 0x85, 0xb4, 0x8e, 0x89, 0xae, 0x4a, + 0x09, 0x5a, 0x4f, 0xb1, 0xd7, 0x27, 0xd4, 0x94, 0x63, 0xa0, 0xd0, 0x2f, 0x5a, 0x40, 0x7f, 0x96, + 0x61, 0x67, 0xca, 0x2d, 0xb4, 0x08, 0x19, 0xd3, 0xe0, 0x59, 0xca, 0xf9, 0x0a, 0x66, 0x4c, 0x03, + 0xbd, 0x1b, 0x93, 0xaf, 0x3d, 0x45, 0x4f, 0x93, 0x62, 0xa2, 0xcf, 0xa4, 0xf1, 0xb1, 0xe2, 0x8d, + 0xe0, 0xde, 0x34, 0x7d, 0xb8, 0xd7, 0xfc, 0x41, 0x9f, 0x4b, 0x50, 0x6c, 0xd9, 0x96, 0x61, 0x32, + 0xd3, 0xb6, 0xf4, 0xbe, 0x7c, 0x84, 0xfb, 0xd2, 0x9f, 0xa6, 0x2f, 0x63, 0x74, 0xde, 0xda, 0x30, + 0x86, 0x28, 0x7b, 0x22, 0x85, 0x3e, 0x17, 0xea, 0xe7, 0x0a, 0xa7, 0xfc, 0x94, 0x0d, 0x8b, 0xcd, + 0xab, 0xbf, 0x2f, 0x25, 0xc8, 0xfb, 0x90, 0x5f, 0x79, 0xa3, 0xcd, 0xcb, 0x65, 0x78, 0x85, 0x97, + 0xe5, 0x76, 0x2f, 0xb3, 0xca, 0xb5, 0x0c, 0x94, 0x22, 0x47, 0x6e, 0x43, 0x31, 0x2d, 0x03, 0x8f, + 0xa2, 0xe5, 0x28, 0x30, 0x74, 0x53, 0x8a, 0x95, 0xe4, 0x47, 0xd2, 0x56, 0xc5, 0x90, 0xd2, 0x7d, + 0x8e, 0xc6, 0xbb, 0xcf, 0x58, 0x20, 0x7e, 0x04, 0xbb, 0x60, 0xdb, 0x65, 0x6c, 0x76, 0xba, 0xcc, + 0xeb, 0x3a, 0xde, 0x27, 0xe5, 0x6e, 0x01, 0xca, 0x71, 0xc9, 0xd1, 0x0d, 0x09, 0x0a, 0x01, 0x28, + 0x37, 0xb8, 0x68, 0xef, 0x6c, 0x66, 0xd1, 0x85, 0x80, 0x37, 0x83, 0x83, 0xcf, 0xca, 0x8f, 0x79, + 0x98, 0x8b, 0x9e, 0x7a, 0x6d, 0xe4, 0xc9, 0x78, 0x1b, 0xf9, 0x36, 0x10, 0xed, 0x29, 0xae, 0xd9, + 0x35, 0x69, 0x0b, 0x43, 0x48, 0xe9, 0x33, 0xbf, 0x48, 0x50, 0x36, 0x2d, 0x32, 0x64, 0x9a, 0x69, + 0x31, 0xec, 0xb4, 0xf5, 0x16, 0xa6, 0xf2, 0x31, 0xee, 0xea, 0xf5, 0x2d, 0x75, 0x35, 0xee, 0x94, + 0xf0, 0x7a, 0x9e, 0xc3, 0x2b, 0x01, 0xaa, 0xbc, 0x9a, 0xd2, 0x0b, 0x9e, 0xf6, 0x7b, 0x01, 0x42, + 0x90, 0x33, 0x68, 0x8b, 0xc8, 0x47, 0x2b, 0xd9, 0x6a, 0x49, 0xe5, 0x7f, 0xa7, 0x8c, 0xc0, 0x67, + 0x52, 0xd6, 0x8d, 0x5f, 0x73, 0xb0, 0x98, 0xea, 0x02, 0xba, 0xe3, 0xee, 0x5f, 0xd1, 0x13, 0xf9, + 0x59, 0x5e, 0x9d, 0x3f, 0xfc, 0xfb, 0x12, 0x16, 0x47, 0x45, 0x25, 0xcf, 0x45, 0xb3, 0xa8, 0xdc, + 0xcd, 0xc0, 0x42, 0xda, 0x45, 0xaf, 0xa8, 0x9f, 0x1b, 0xdf, 0x6e, 0xdc, 0xb4, 0xde, 0x0e, 0x8a, + 0xfa, 0x79, 0x5e, 0x29, 0x3f, 0xff, 0x47, 0x02, 0x4f, 0x69, 0x5b, 0x6f, 0xa6, 0xd4, 0xcf, 0x71, + 0xbe, 0x31, 0xb9, 0x81, 0xee, 0x81, 0x42, 0x28, 0xf2, 0x09, 0x0e, 0x87, 0x00, 0xda, 0x0f, 0xb3, + 0x74, 0xd8, 0x0c, 0x2f, 0x9c, 0xac, 0x48, 0xd5, 0x92, 0x1a, 0xc1, 0x94, 0x5b, 0x85, 0xc4, 0x34, + 0x5a, 0x4b, 0x0e, 0xa3, 0x97, 0x36, 0xfc, 0x7d, 0xf1, 0x5e, 0x33, 0xe6, 0x56, 0xfe, 0xa1, 0x66, + 0xcc, 0xdb, 0xb1, 0x11, 0x73, 0x71, 0xc2, 0x8e, 0xa5, 0x6f, 0x3a, 0xa5, 0x50, 0x26, 0x07, 0xb7, + 0xfd, 0x9f, 0x03, 0x9a, 0x93, 0xe6, 0x8e, 0xb0, 0x08, 0x1f, 0x66, 0x03, 0x4c, 0xc5, 0x6d, 0x74, + 0x19, 0xb6, 0xf7, 0x86, 0x96, 0x49, 0xb0, 0xe3, 0x6f, 0x5c, 0x6f, 0x4c, 0xda, 0x07, 0xcf, 0xbe, + 0x60, 0xf7, 0xd9, 0x94, 0x1b, 0x52, 0xfa, 0xf4, 0x6c, 0x8c, 0x4f, 0xcf, 0xbd, 0xee, 0xd7, 0x4d, + 0x4d, 0x37, 0x0c, 0x07, 0x53, 0xea, 0xad, 0xf5, 0x05, 0x93, 0x9c, 0x10, 0x00, 0x7a, 0x0c, 0x8a, + 0x03, 0xbd, 0x15, 0x9c, 0x2f, 0xf3, 0x73, 0x18, 0xe8, 0x2d, 0xff, 0x82, 0xbb, 0xd5, 0x0f, 0x69, + 0xf7, 0x7e, 0x5b, 0x3d, 0x3f, 0x8e, 0x6d, 0xf5, 0xbf, 0x4b, 0x80, 0x92, 0x99, 0x43, 0x1f, 0xc7, + 0xb7, 0x91, 0xc1, 0xf4, 0xe5, 0x4a, 0x79, 0xbf, 0xab, 0x91, 0xc4, 0x45, 0xde, 0xeb, 0xe1, 0x7f, + 0x7a, 0xaf, 0xcb, 0x29, 0xef, 0xf5, 0x8b, 0x0c, 0xcc, 0x8e, 0x6b, 0x84, 0xde, 0x8b, 0x85, 0xd9, + 0x99, 0x66, 0x45, 0xa4, 0x04, 0xf8, 0x61, 0xb4, 0x34, 0x0e, 0x40, 0x79, 0x68, 0x0d, 0x74, 0xfe, + 0xe5, 0xcc, 0xb5, 0xe3, 0x36, 0x11, 0x37, 0xd0, 0xbc, 0x3a, 0xef, 0xe3, 0xab, 0x02, 0x46, 0x4f, + 0xc0, 0xe2, 0xd8, 0x45, 0x4e, 0x28, 0xaa, 0x6a, 0xb9, 0x92, 0xad, 0xe6, 0x54, 0x14, 0xde, 0x3e, + 0x63, 0x93, 0x15, 0x5e, 0x62, 0x8b, 0xb0, 0xad, 0x4f, 0x89, 0x66, 0x1a, 0x7c, 0xc9, 0x2f, 0xa9, + 0x33, 0x7d, 0x4a, 0x56, 0x8c, 0xa3, 0x5d, 0x50, 0x7a, 0x16, 0x71, 0xb4, 0x44, 0xe4, 0x1a, 0x1e, + 0x31, 0xb4, 0xbb, 0x76, 0x56, 0x84, 0xb0, 0x2a, 0x8e, 0xe9, 0x79, 0x6c, 0x51, 0xdb, 0xa1, 0xf2, + 0x90, 0x27, 0x0c, 0x25, 0x13, 0xa6, 0xee, 0x76, 0xcd, 0xad, 0x46, 0x7f, 0x6d, 0xa5, 0xa7, 0x46, + 0xec, 0xe4, 0x5b, 0xb7, 0xd7, 0xf7, 0x49, 0x77, 0xd6, 0xf7, 0x49, 0xbf, 0xad, 0xef, 0x93, 0x2e, + 0xaa, 0x1d, 0x33, 0xc8, 0x8f, 0x6b, 0xa5, 0x6e, 0xb6, 0x70, 0x13, 0x3b, 0x9d, 0x7a, 0x17, 0xeb, + 0x7d, 0xd6, 0x6d, 0xda, 0x6c, 0xc9, 0xb4, 0x3a, 0x98, 0xb2, 0xa5, 0x1e, 0x33, 0x97, 0x2c, 0x9d, + 0x99, 0x97, 0x70, 0x9d, 0xac, 0x75, 0xea, 0x3d, 0x66, 0xd6, 0x75, 0x43, 0x27, 0x0c, 0x3b, 0xb4, + 0xae, 0xf5, 0x86, 0x96, 0x4d, 0xeb, 0xb4, 0xd5, 0xc5, 0x03, 0xfd, 0xef, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x60, 0xa7, 0x8b, 0xda, 0x6f, 0x16, 0x00, 0x00, +} + +func (m *NetworkInstances) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Afts != nil { + { + size, err := m.Afts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NextHops != nil { + { + size, err := m.NextHops.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.NextHopGroups != nil { + { + size, err := m.NextHopGroups.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Mpls != nil { + { + size, err := m.Mpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Ipv6Unicast != nil { + { + size, err := m.Ipv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Ipv4Unicast != nil { + { + size, err := m.Ipv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ipv4Entry) > 0 { + for iNdEx := len(m.Ipv4Entry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ipv4Entry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NextHopGroup != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.NextHopGroup)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ipv6Entry) > 0 { + for iNdEx := len(m.Ipv6Entry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ipv6Entry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NextHopGroup != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.NextHopGroup)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LabelEntry) > 0 { + for iNdEx := len(m.LabelEntry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LabelEntry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Label != nil { + i -= len(*m.Label) + copy(dAtA[i:], *m.Label) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Label))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PoppedMplsLabelStack) > 0 { + for iNdEx := len(m.PoppedMplsLabelStack) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PoppedMplsLabelStack[iNdEx]) + copy(dAtA[i:], m.PoppedMplsLabelStack[iNdEx]) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(m.PoppedMplsLabelStack[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if m.NextHopGroup != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.NextHopGroup)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Label != nil { + i -= len(*m.Label) + copy(dAtA[i:], *m.Label) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Label))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NextHopGroup) > 0 { + for iNdEx := len(m.NextHopGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextHopGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NextHops != nil { + { + size, err := m.NextHops.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Conditional != nil { + { + size, err := m.Conditional.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Id != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Id != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NextHop) > 0 { + for iNdEx := len(m.NextHop) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextHop[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Weight != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Weight)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Index != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Condition) > 0 { + for iNdEx := len(m.Condition) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Condition[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InputInterfaces != nil { + { + size, err := m.InputInterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Id != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NextHopGroup != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.NextHopGroup)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if len(m.Dscp) > 0 { + for iNdEx := len(m.Dscp) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(m.Dscp[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + } + if m.Id != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.InputInterface) > 0 { + for iNdEx := len(m.InputInterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InputInterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x8a + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NextHop) > 0 { + for iNdEx := len(m.NextHop) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextHop[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Juniper != nil { + { + size, err := m.Juniper.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Index != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.PushedMplsLabelStack) > 0 { + for iNdEx := len(m.PushedMplsLabelStack) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PushedMplsLabelStack[iNdEx]) + copy(dAtA[i:], m.PushedMplsLabelStack[iNdEx]) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(m.PushedMplsLabelStack[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if m.MacAddress != nil { + i -= len(*m.MacAddress) + copy(dAtA[i:], *m.MacAddress) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.MacAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.IpAddress != nil { + i -= len(*m.IpAddress) + copy(dAtA[i:], *m.IpAddress) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.IpAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LspId != nil { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(*m.LspId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if len(m.MappedNextHopIndex) > 0 { + for iNdEx := len(m.MappedNextHopIndex) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintFibtdTelemetryOc(dAtA, i, uint64(m.MappedNextHopIndex[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + } + if m.UnmappedNexthop != nil { + i-- + if *m.UnmappedNexthop { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintFibtdTelemetryOc(dAtA []byte, offset int, v uint64) int { + offset -= sovFibtdTelemetryOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstances) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Afts != nil { + l = m.Afts.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv4Unicast != nil { + l = m.Ipv4Unicast.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Ipv6Unicast != nil { + l = m.Ipv6Unicast.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Mpls != nil { + l = m.Mpls.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.NextHopGroups != nil { + l = m.NextHopGroups.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.NextHops != nil { + l = m.NextHops.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ipv4Entry) > 0 { + for _, e := range m.Ipv4Entry { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.NextHopGroup != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.NextHopGroup)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ipv6Entry) > 0 { + for _, e := range m.Ipv6Entry { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.NextHopGroup != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.NextHopGroup)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LabelEntry) > 0 { + for _, e := range m.LabelEntry { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Label != nil { + l = len(*m.Label) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Label != nil { + l = len(*m.Label) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.NextHopGroup != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.NextHopGroup)) + } + if len(m.PoppedMplsLabelStack) > 0 { + for _, s := range m.PoppedMplsLabelStack { + l = len(s) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NextHopGroup) > 0 { + for _, e := range m.NextHopGroup { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Id)) + } + if m.Conditional != nil { + l = m.Conditional.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.NextHops != nil { + l = m.NextHops.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Id)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NextHop) > 0 { + for _, e := range m.NextHop { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Index)) + } + if m.Weight != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Weight)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Condition) > 0 { + for _, e := range m.Condition { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Id)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.InputInterfaces != nil { + l = m.InputInterfaces.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Id)) + } + if len(m.Dscp) > 0 { + for _, e := range m.Dscp { + n += 2 + sovFibtdTelemetryOc(uint64(e)) + } + } + if m.NextHopGroup != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.NextHopGroup)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InputInterface) > 0 { + for _, e := range m.InputInterface { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NextHop) > 0 { + for _, e := range m.NextHop { + l = e.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Juniper != nil { + l = m.Juniper.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IpAddress != nil { + l = len(*m.IpAddress) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.MacAddress != nil { + l = len(*m.MacAddress) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if len(m.PushedMplsLabelStack) > 0 { + for _, s := range m.PushedMplsLabelStack { + l = len(s) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + } + if m.Index != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Index)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovFibtdTelemetryOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UnmappedNexthop != nil { + n += 3 + } + if len(m.MappedNextHopIndex) > 0 { + for _, e := range m.MappedNextHopIndex { + n += 2 + sovFibtdTelemetryOc(uint64(e)) + } + } + if m.LspId != nil { + n += 2 + sovFibtdTelemetryOc(uint64(*m.LspId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovFibtdTelemetryOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFibtdTelemetryOc(x uint64) (n int) { + return sovFibtdTelemetryOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstances) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Afts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Afts == nil { + m.Afts = &NetworkInstancesNetworkInstanceListAftsType{} + } + if err := m.Afts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afts_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afts_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Unicast == nil { + m.Ipv4Unicast = &NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType{} + } + if err := m.Ipv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Unicast == nil { + m.Ipv6Unicast = &NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType{} + } + if err := m.Ipv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Mpls == nil { + m.Mpls = &NetworkInstancesNetworkInstanceListAftsTypeMplsType{} + } + if err := m.Mpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHopGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NextHopGroups == nil { + m.NextHopGroups = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType{} + } + if err := m.NextHopGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHops", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NextHops == nil { + m.NextHops = &NetworkInstancesNetworkInstanceListAftsTypeNextHopsType{} + } + if err := m.NextHops.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Entry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv4Entry = append(m.Ipv4Entry, &NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList{}) + if err := m.Ipv4Entry[len(m.Ipv4Entry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHopGroup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NextHopGroup = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Entry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv6Entry = append(m.Ipv6Entry, &NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList{}) + if err := m.Ipv6Entry[len(m.Ipv6Entry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHopGroup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NextHopGroup = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelEntry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LabelEntry = append(m.LabelEntry, &NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList{}) + if err := m.LabelEntry[len(m.LabelEntry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: label_entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: label_entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Label = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeMplsTypeLabelEntryListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Label = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHopGroup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NextHopGroup = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PoppedMplsLabelStack", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PoppedMplsLabelStack = append(m.PoppedMplsLabelStack, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hop_groups_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hop_groups_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHopGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextHopGroup = append(m.NextHopGroup, &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList{}) + if err := m.NextHopGroup[len(m.NextHopGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hop_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hop_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditional", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conditional == nil { + m.Conditional = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType{} + } + if err := m.Conditional.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHops", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NextHops == nil { + m.NextHops = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType{} + } + if err := m.NextHops.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hops_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hops_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextHop = append(m.NextHop, &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList{}) + if err := m.NextHop[len(m.NextHop)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hop_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hop_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListNextHopsTypeNextHopListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Weight = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: conditional_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: conditional_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Condition", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Condition = append(m.Condition, &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList{}) + if err := m.Condition[len(m.Condition)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: condition_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: condition_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InputInterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InputInterfaces == nil { + m.InputInterfaces = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType{} + } + if err := m.InputInterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 58: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dscp = append(m.Dscp, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Dscp) == 0 { + m.Dscp = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dscp = append(m.Dscp, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Dscp", wireType) + } + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHopGroup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NextHopGroup = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: input_interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: input_interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InputInterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InputInterface = append(m.InputInterface, &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList{}) + if err := m.InputInterface[len(m.InputInterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: input_interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: input_interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopGroupsTypeNextHopGroupListConditionalTypeConditionListInputInterfacesTypeInputInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 65: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hops_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hops_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextHop = append(m.NextHop, &NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList{}) + if err := m.NextHop[len(m.NextHop)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hop_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hop_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Juniper", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Juniper == nil { + m.Juniper = &NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType{} + } + if err := m.Juniper.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IpAddress = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MacAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PushedMplsLabelStack", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PushedMplsLabelStack = append(m.PushedMplsLabelStack, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: juniper_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: juniper_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNetworkInstanceListAftsTypeNextHopsTypeNextHopListJuniperTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnmappedNexthop", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.UnmappedNexthop = &b + case 52: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MappedNextHopIndex = append(m.MappedNextHopIndex, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MappedNextHopIndex) == 0 { + m.MappedNextHopIndex = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MappedNextHopIndex = append(m.MappedNextHopIndex, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MappedNextHopIndex", wireType) + } + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspId = &v + default: + iNdEx = preIndex + skippy, err := skipFibtdTelemetryOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFibtdTelemetryOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFibtdTelemetryOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFibtdTelemetryOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthFibtdTelemetryOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFibtdTelemetryOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFibtdTelemetryOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFibtdTelemetryOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFibtdTelemetryOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFibtdTelemetryOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/fibtd-telemetry_oc.proto b/schema/fibtd-telemetry_oc.proto new file mode 100755 index 0000000..7ed807f --- /dev/null +++ b/schema/fibtd-telemetry_oc.proto @@ -0,0 +1,134 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances jnpr_network_instances_ext = 117; +} + +message network_instances { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional afts_type afts = 151; + message afts_type { + optional ipv4_unicast_type ipv4_unicast = 151; + message ipv4_unicast_type { + message ipv4_entry_list { + optional string prefix = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string prefix = 51; + optional uint64 next_hop_group = 52; + } + } + repeated ipv4_entry_list ipv4_entry = 151; + } + optional ipv6_unicast_type ipv6_unicast = 152; + message ipv6_unicast_type { + message ipv6_entry_list { + optional string prefix = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string prefix = 51; + optional uint64 next_hop_group = 52; + } + } + repeated ipv6_entry_list ipv6_entry = 151; + } + optional mpls_type mpls = 153; + message mpls_type { + message label_entry_list { + optional string label = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string label = 51; + optional uint64 next_hop_group = 52; + repeated string popped_mpls_label_stack = 53; + } + } + repeated label_entry_list label_entry = 151; + } + optional next_hop_groups_type next_hop_groups = 154; + message next_hop_groups_type { + message next_hop_group_list { + optional uint64 id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint64 id = 51; + } + optional next_hops_type next_hops = 152; + message next_hops_type { + message next_hop_list { + optional uint64 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint64 index = 51; + optional uint64 weight = 52; + } + } + repeated next_hop_list next_hop = 151; + } + optional conditional_type conditional = 53; + message conditional_type { + message condition_list { + optional uint64 id = 55 [(telemetry_options).is_key = true]; + optional state_type state = 56; + message state_type { + optional uint64 id = 57; + repeated uint32 dscp = 58; + optional uint64 next_hop_group = 59; + } + optional input_interfaces_type input_interfaces = 60; + message input_interfaces_type { + message input_interface_list { + optional string id = 62 [(telemetry_options).is_key = true]; + optional state_type state = 63; + message state_type { + optional string id = 64; + optional string interface = 65; + optional uint32 subinterface = 66; + } + } + repeated input_interface_list input_interface = 61; + } + } + repeated condition_list condition = 54; + } + } + repeated next_hop_group_list next_hop_group = 151; + } + optional next_hops_type next_hops = 155; + message next_hops_type { + message next_hop_list { + optional uint64 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint64 index = 54; + optional string ip_address = 51; + optional string mac_address = 52; + repeated string pushed_mpls_label_stack = 53; + } + optional interface_ref_type interface_ref = 153; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + optional juniper_type juniper = 152; + message juniper_type { + optional state_type state = 151; + message state_type { + optional bool unmapped_nexthop = 51; + repeated uint64 mapped_next_hop_index = 52; + optional uint32 lsp_id = 53; + } + } + } + repeated next_hop_list next_hop = 151; + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/firewall.pb.go b/schema/firewall.pb.go new file mode 100644 index 0000000..e7c67de --- /dev/null +++ b/schema/firewall.pb.go @@ -0,0 +1,2336 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: firewall.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type Firewall struct { + FirewallStats []*FirewallStats `protobuf:"bytes,1,rep,name=firewall_stats,json=firewallStats" json:"firewall_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Firewall) Reset() { *m = Firewall{} } +func (m *Firewall) String() string { return proto.CompactTextString(m) } +func (*Firewall) ProtoMessage() {} +func (*Firewall) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{0} +} +func (m *Firewall) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Firewall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Firewall.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Firewall) XXX_Merge(src proto.Message) { + xxx_messageInfo_Firewall.Merge(m, src) +} +func (m *Firewall) XXX_Size() int { + return m.Size() +} +func (m *Firewall) XXX_DiscardUnknown() { + xxx_messageInfo_Firewall.DiscardUnknown(m) +} + +var xxx_messageInfo_Firewall proto.InternalMessageInfo + +func (m *Firewall) GetFirewallStats() []*FirewallStats { + if m != nil { + return m.FirewallStats + } + return nil +} + +// +// Firewall filter statistics +// +type FirewallStats struct { + FilterName *string `protobuf:"bytes,1,req,name=filter_name,json=filterName" json:"filter_name,omitempty"` + // The Unix timestamp (seconds since 00:00:00 UTC 1970-01-01) of + // last filter state change event such as filter add, filter change, + // or counter clear. + Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` + MemoryUsage []*MemoryUsage `protobuf:"bytes,3,rep,name=memory_usage,json=memoryUsage" json:"memory_usage,omitempty"` + CounterStats []*CounterStats `protobuf:"bytes,4,rep,name=counter_stats,json=counterStats" json:"counter_stats,omitempty"` + PolicerStats []*PolicerStats `protobuf:"bytes,5,rep,name=policer_stats,json=policerStats" json:"policer_stats,omitempty"` + HierarchicalPolicerStats []*HierarchicalPolicerStats `protobuf:"bytes,6,rep,name=hierarchical_policer_stats,json=hierarchicalPolicerStats" json:"hierarchical_policer_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FirewallStats) Reset() { *m = FirewallStats{} } +func (m *FirewallStats) String() string { return proto.CompactTextString(m) } +func (*FirewallStats) ProtoMessage() {} +func (*FirewallStats) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{1} +} +func (m *FirewallStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FirewallStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FirewallStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FirewallStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_FirewallStats.Merge(m, src) +} +func (m *FirewallStats) XXX_Size() int { + return m.Size() +} +func (m *FirewallStats) XXX_DiscardUnknown() { + xxx_messageInfo_FirewallStats.DiscardUnknown(m) +} + +var xxx_messageInfo_FirewallStats proto.InternalMessageInfo + +func (m *FirewallStats) GetFilterName() string { + if m != nil && m.FilterName != nil { + return *m.FilterName + } + return "" +} + +func (m *FirewallStats) GetTimestamp() uint64 { + if m != nil && m.Timestamp != nil { + return *m.Timestamp + } + return 0 +} + +func (m *FirewallStats) GetMemoryUsage() []*MemoryUsage { + if m != nil { + return m.MemoryUsage + } + return nil +} + +func (m *FirewallStats) GetCounterStats() []*CounterStats { + if m != nil { + return m.CounterStats + } + return nil +} + +func (m *FirewallStats) GetPolicerStats() []*PolicerStats { + if m != nil { + return m.PolicerStats + } + return nil +} + +func (m *FirewallStats) GetHierarchicalPolicerStats() []*HierarchicalPolicerStats { + if m != nil { + return m.HierarchicalPolicerStats + } + return nil +} + +// +// Memory usage +// +type MemoryUsage struct { + // The router has typically several types of memories (e.g. CPU's memory, + // ASIC's forwarding memories) in which the firewall object is written. + // This field indicates the name of the memory subsystem whose utilization + // is being reported. + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // The amount of the memory allocated in bytes to the filter + Allocated *uint64 `protobuf:"varint,2,opt,name=allocated" json:"allocated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MemoryUsage) Reset() { *m = MemoryUsage{} } +func (m *MemoryUsage) String() string { return proto.CompactTextString(m) } +func (*MemoryUsage) ProtoMessage() {} +func (*MemoryUsage) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{2} +} +func (m *MemoryUsage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MemoryUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MemoryUsage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MemoryUsage) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemoryUsage.Merge(m, src) +} +func (m *MemoryUsage) XXX_Size() int { + return m.Size() +} +func (m *MemoryUsage) XXX_DiscardUnknown() { + xxx_messageInfo_MemoryUsage.DiscardUnknown(m) +} + +var xxx_messageInfo_MemoryUsage proto.InternalMessageInfo + +func (m *MemoryUsage) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *MemoryUsage) GetAllocated() uint64 { + if m != nil && m.Allocated != nil { + return *m.Allocated + } + return 0 +} + +// +// Counter statistics +// +type CounterStats struct { + // Counter name + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // The total number of packets seen by the counter + Packets *uint64 `protobuf:"varint,2,opt,name=packets" json:"packets,omitempty"` + // The total number of bytes seen by the counter + Bytes *uint64 `protobuf:"varint,3,opt,name=bytes" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CounterStats) Reset() { *m = CounterStats{} } +func (m *CounterStats) String() string { return proto.CompactTextString(m) } +func (*CounterStats) ProtoMessage() {} +func (*CounterStats) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{3} +} +func (m *CounterStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CounterStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CounterStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CounterStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_CounterStats.Merge(m, src) +} +func (m *CounterStats) XXX_Size() int { + return m.Size() +} +func (m *CounterStats) XXX_DiscardUnknown() { + xxx_messageInfo_CounterStats.DiscardUnknown(m) +} + +var xxx_messageInfo_CounterStats proto.InternalMessageInfo + +func (m *CounterStats) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *CounterStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *CounterStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +// +// Policer statistics +// +type PolicerStats struct { + // Policer instance name + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // The total number of packets marked out-of-specification by the policer + OutOfSpecPackets *uint64 `protobuf:"varint,2,opt,name=out_of_spec_packets,json=outOfSpecPackets" json:"out_of_spec_packets,omitempty"` + // The total number of bytes marked out-of-specification by the policer + OutOfSpecBytes *uint64 `protobuf:"varint,3,opt,name=out_of_spec_bytes,json=outOfSpecBytes" json:"out_of_spec_bytes,omitempty"` + // Additional statistics when enhanced policer statistics are available + ExtendedPolicerStats *ExtendedPolicerStats `protobuf:"bytes,4,opt,name=extended_policer_stats,json=extendedPolicerStats" json:"extended_policer_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PolicerStats) Reset() { *m = PolicerStats{} } +func (m *PolicerStats) String() string { return proto.CompactTextString(m) } +func (*PolicerStats) ProtoMessage() {} +func (*PolicerStats) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{4} +} +func (m *PolicerStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PolicerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PolicerStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PolicerStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_PolicerStats.Merge(m, src) +} +func (m *PolicerStats) XXX_Size() int { + return m.Size() +} +func (m *PolicerStats) XXX_DiscardUnknown() { + xxx_messageInfo_PolicerStats.DiscardUnknown(m) +} + +var xxx_messageInfo_PolicerStats proto.InternalMessageInfo + +func (m *PolicerStats) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *PolicerStats) GetOutOfSpecPackets() uint64 { + if m != nil && m.OutOfSpecPackets != nil { + return *m.OutOfSpecPackets + } + return 0 +} + +func (m *PolicerStats) GetOutOfSpecBytes() uint64 { + if m != nil && m.OutOfSpecBytes != nil { + return *m.OutOfSpecBytes + } + return 0 +} + +func (m *PolicerStats) GetExtendedPolicerStats() *ExtendedPolicerStats { + if m != nil { + return m.ExtendedPolicerStats + } + return nil +} + +// +// Extended policer statistics when enhanced policer statistics are available +// +type ExtendedPolicerStats struct { + // The total number of packets subjected to policing + OfferedPackets *uint64 `protobuf:"varint,1,opt,name=offered_packets,json=offeredPackets" json:"offered_packets,omitempty"` + // The total number of bytes subjected to policing + OfferedBytes *uint64 `protobuf:"varint,2,opt,name=offered_bytes,json=offeredBytes" json:"offered_bytes,omitempty"` + // The total number of packets not discarded by the policer + TransmittedPackets *uint64 `protobuf:"varint,3,opt,name=transmitted_packets,json=transmittedPackets" json:"transmitted_packets,omitempty"` + // The total number of bytes not discarded by the policer + TransmittedBytes *uint64 `protobuf:"varint,4,opt,name=transmitted_bytes,json=transmittedBytes" json:"transmitted_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtendedPolicerStats) Reset() { *m = ExtendedPolicerStats{} } +func (m *ExtendedPolicerStats) String() string { return proto.CompactTextString(m) } +func (*ExtendedPolicerStats) ProtoMessage() {} +func (*ExtendedPolicerStats) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{5} +} +func (m *ExtendedPolicerStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExtendedPolicerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExtendedPolicerStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExtendedPolicerStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtendedPolicerStats.Merge(m, src) +} +func (m *ExtendedPolicerStats) XXX_Size() int { + return m.Size() +} +func (m *ExtendedPolicerStats) XXX_DiscardUnknown() { + xxx_messageInfo_ExtendedPolicerStats.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtendedPolicerStats proto.InternalMessageInfo + +func (m *ExtendedPolicerStats) GetOfferedPackets() uint64 { + if m != nil && m.OfferedPackets != nil { + return *m.OfferedPackets + } + return 0 +} + +func (m *ExtendedPolicerStats) GetOfferedBytes() uint64 { + if m != nil && m.OfferedBytes != nil { + return *m.OfferedBytes + } + return 0 +} + +func (m *ExtendedPolicerStats) GetTransmittedPackets() uint64 { + if m != nil && m.TransmittedPackets != nil { + return *m.TransmittedPackets + } + return 0 +} + +func (m *ExtendedPolicerStats) GetTransmittedBytes() uint64 { + if m != nil && m.TransmittedBytes != nil { + return *m.TransmittedBytes + } + return 0 +} + +// +// Hierarchical policer statistics +// +type HierarchicalPolicerStats struct { + // Hierarchical policer instance name + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // The total number of packets marked out-of-specification by + // the premium policer + PremiumPackets *uint64 `protobuf:"varint,2,opt,name=premium_packets,json=premiumPackets" json:"premium_packets,omitempty"` + // The total number of bytes marked out-of-specification by + // the premium policer + PremiumBytes *uint64 `protobuf:"varint,3,opt,name=premium_bytes,json=premiumBytes" json:"premium_bytes,omitempty"` + // The total number of packets marked out-of-specification by + // the aggregate policer + AggregatePackets *uint64 `protobuf:"varint,4,opt,name=aggregate_packets,json=aggregatePackets" json:"aggregate_packets,omitempty"` + // The total number of bytes marked out-of-specification by + // the aggregate policer + AggregateBytes *uint64 `protobuf:"varint,5,opt,name=aggregate_bytes,json=aggregateBytes" json:"aggregate_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HierarchicalPolicerStats) Reset() { *m = HierarchicalPolicerStats{} } +func (m *HierarchicalPolicerStats) String() string { return proto.CompactTextString(m) } +func (*HierarchicalPolicerStats) ProtoMessage() {} +func (*HierarchicalPolicerStats) Descriptor() ([]byte, []int) { + return fileDescriptor_00e54131a1710129, []int{6} +} +func (m *HierarchicalPolicerStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HierarchicalPolicerStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_HierarchicalPolicerStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *HierarchicalPolicerStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_HierarchicalPolicerStats.Merge(m, src) +} +func (m *HierarchicalPolicerStats) XXX_Size() int { + return m.Size() +} +func (m *HierarchicalPolicerStats) XXX_DiscardUnknown() { + xxx_messageInfo_HierarchicalPolicerStats.DiscardUnknown(m) +} + +var xxx_messageInfo_HierarchicalPolicerStats proto.InternalMessageInfo + +func (m *HierarchicalPolicerStats) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *HierarchicalPolicerStats) GetPremiumPackets() uint64 { + if m != nil && m.PremiumPackets != nil { + return *m.PremiumPackets + } + return 0 +} + +func (m *HierarchicalPolicerStats) GetPremiumBytes() uint64 { + if m != nil && m.PremiumBytes != nil { + return *m.PremiumBytes + } + return 0 +} + +func (m *HierarchicalPolicerStats) GetAggregatePackets() uint64 { + if m != nil && m.AggregatePackets != nil { + return *m.AggregatePackets + } + return 0 +} + +func (m *HierarchicalPolicerStats) GetAggregateBytes() uint64 { + if m != nil && m.AggregateBytes != nil { + return *m.AggregateBytes + } + return 0 +} + +var E_JnprFirewallExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Firewall)(nil), + Field: 6, + Name: "jnpr_firewall_ext", + Tag: "bytes,6,opt,name=jnpr_firewall_ext", + Filename: "firewall.proto", +} + +func init() { + proto.RegisterType((*Firewall)(nil), "Firewall") + proto.RegisterType((*FirewallStats)(nil), "FirewallStats") + proto.RegisterType((*MemoryUsage)(nil), "MemoryUsage") + proto.RegisterType((*CounterStats)(nil), "CounterStats") + proto.RegisterType((*PolicerStats)(nil), "PolicerStats") + proto.RegisterType((*ExtendedPolicerStats)(nil), "ExtendedPolicerStats") + proto.RegisterType((*HierarchicalPolicerStats)(nil), "HierarchicalPolicerStats") + proto.RegisterExtension(E_JnprFirewallExt) +} + +func init() { proto.RegisterFile("firewall.proto", fileDescriptor_00e54131a1710129) } + +var fileDescriptor_00e54131a1710129 = []byte{ + // 664 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4d, 0x6f, 0xd3, 0x4a, + 0x14, 0xd5, 0xa4, 0xc9, 0x7b, 0xed, 0xe4, 0xab, 0x71, 0xfb, 0x1e, 0x6e, 0x91, 0x4a, 0x14, 0x24, + 0x14, 0x21, 0xd5, 0x46, 0x11, 0xb0, 0x60, 0x05, 0x45, 0x45, 0x08, 0xd4, 0x52, 0xb9, 0x42, 0x48, + 0x6c, 0xcc, 0xd4, 0xb9, 0x71, 0x26, 0xb5, 0x3d, 0xd6, 0xcc, 0x0d, 0x6d, 0xb7, 0xfc, 0x3a, 0x56, + 0x88, 0x5f, 0x80, 0x50, 0xff, 0x03, 0x7b, 0x64, 0x8f, 0x9d, 0x8c, 0x21, 0xed, 0xf2, 0x9e, 0x73, + 0xcf, 0x3d, 0x73, 0xe6, 0xda, 0x43, 0x3b, 0x13, 0x2e, 0xe1, 0x82, 0x45, 0x91, 0x93, 0x4a, 0x81, + 0x62, 0x77, 0x0b, 0x21, 0x82, 0x18, 0x50, 0x5e, 0xf9, 0x28, 0x52, 0x0d, 0x0e, 0x5e, 0xd0, 0xf5, + 0x57, 0x45, 0x9b, 0xf5, 0x64, 0x29, 0xf1, 0x15, 0x32, 0x54, 0x36, 0xe9, 0xaf, 0x0d, 0x9b, 0xa3, + 0x8e, 0x53, 0xb6, 0x9c, 0x66, 0xa8, 0xd7, 0x9e, 0x98, 0xe5, 0xe0, 0x5b, 0x8d, 0xb6, 0x2b, 0x0d, + 0xd6, 0x03, 0xda, 0x9c, 0xf0, 0x08, 0x41, 0xfa, 0x09, 0x8b, 0xc1, 0x26, 0xfd, 0xda, 0x70, 0xe3, + 0xa0, 0xf1, 0xe5, 0x79, 0x6d, 0x9d, 0x78, 0x54, 0x33, 0xc7, 0x2c, 0x06, 0xeb, 0x3e, 0xdd, 0x40, + 0x1e, 0x83, 0x42, 0x16, 0xa7, 0x76, 0xad, 0x4f, 0x86, 0xf5, 0xbc, 0x6b, 0x93, 0x78, 0x4b, 0xdc, + 0x72, 0x69, 0x2b, 0x86, 0x58, 0xc8, 0x2b, 0x7f, 0xae, 0x58, 0x08, 0xf6, 0x5a, 0x7e, 0xa6, 0x96, + 0x73, 0x94, 0x83, 0xef, 0x33, 0xcc, 0x6b, 0xc6, 0xcb, 0xc2, 0x1a, 0xd1, 0x76, 0x20, 0xe6, 0x49, + 0x66, 0xaf, 0x53, 0xd4, 0x73, 0x45, 0xdb, 0x79, 0xa9, 0x51, 0x1d, 0xa2, 0x15, 0x18, 0x55, 0xa6, + 0x49, 0x45, 0xc4, 0x83, 0x85, 0xa6, 0x51, 0x68, 0x4e, 0x34, 0x5a, 0x68, 0x52, 0xa3, 0xb2, 0x3e, + 0xd0, 0xdd, 0x29, 0x07, 0xc9, 0x64, 0x30, 0xe5, 0x01, 0x8b, 0xfc, 0xea, 0x80, 0x7f, 0xf2, 0x01, + 0x3b, 0xce, 0x6b, 0xa3, 0xa5, 0x32, 0xcc, 0x9e, 0xde, 0xc0, 0x0c, 0x8e, 0x68, 0xd3, 0x08, 0x67, + 0xed, 0xd0, 0xfa, 0xdf, 0xd7, 0x98, 0x43, 0xd9, 0x05, 0xb2, 0x28, 0x12, 0x01, 0x43, 0x18, 0x1b, + 0x17, 0xd8, 0x27, 0xde, 0x12, 0x1f, 0x84, 0xb4, 0x65, 0x26, 0xbf, 0x6d, 0xde, 0x3d, 0xfa, 0x6f, + 0xca, 0x82, 0x73, 0x40, 0x65, 0x4c, 0xb3, 0x89, 0x57, 0xa2, 0xd6, 0x5d, 0xda, 0x38, 0xbb, 0x42, + 0x50, 0xf6, 0x9a, 0x49, 0x6b, 0x6c, 0xf0, 0x83, 0xd0, 0x96, 0x19, 0xe4, 0x36, 0xa7, 0xc7, 0x74, + 0x4b, 0xcc, 0xd1, 0x17, 0x13, 0x5f, 0xa5, 0x10, 0xf8, 0x2b, 0x5d, 0x37, 0xc5, 0x1c, 0xdf, 0x4d, + 0x4e, 0x53, 0x08, 0x4e, 0x0a, 0xfb, 0x47, 0xb4, 0x67, 0xaa, 0x56, 0x1c, 0xa5, 0xb3, 0xd0, 0x1c, + 0x64, 0xa4, 0xf5, 0x96, 0xfe, 0x0f, 0x97, 0x08, 0xc9, 0x18, 0xc6, 0x7f, 0x2c, 0xa8, 0xde, 0x27, + 0xc3, 0xe6, 0xe8, 0x3f, 0xe7, 0xb0, 0xa0, 0x2b, 0xcb, 0xd9, 0x86, 0x15, 0x68, 0x16, 0x70, 0x7b, + 0x55, 0xbb, 0xe5, 0xd0, 0xae, 0x98, 0x4c, 0x40, 0x66, 0x26, 0x45, 0x12, 0x52, 0x3d, 0x95, 0x66, + 0xcb, 0x1c, 0x0f, 0x69, 0xbb, 0xec, 0xd7, 0x19, 0x2a, 0xb9, 0x5b, 0x05, 0xa7, 0x13, 0x3c, 0xa5, + 0x5b, 0x28, 0x59, 0xa2, 0x62, 0x8e, 0x68, 0xcc, 0xaf, 0xa4, 0xb6, 0x8c, 0x8e, 0xd2, 0x63, 0x44, + 0x7b, 0xa6, 0x4e, 0xfb, 0xd4, 0x2b, 0xf7, 0x6b, 0xf0, 0xb9, 0xd7, 0xe0, 0x17, 0xa1, 0xf6, 0x4d, + 0x1f, 0xec, 0x6d, 0xdb, 0x74, 0x68, 0x37, 0x95, 0x10, 0xf3, 0x79, 0xbc, 0x7a, 0x93, 0x9d, 0x82, + 0x35, 0xf2, 0x97, 0xfd, 0x2b, 0x76, 0xd8, 0x2a, 0x38, 0x9d, 0x7f, 0x44, 0x7b, 0x2c, 0x0c, 0x25, + 0x84, 0x0c, 0x61, 0x31, 0xbd, 0x9a, 0x63, 0xc1, 0x97, 0xf3, 0x1d, 0xda, 0x5d, 0x6a, 0xb4, 0x43, + 0xa3, 0x72, 0x9e, 0x05, 0x9b, 0x7b, 0x3c, 0x3b, 0xa6, 0xbd, 0x59, 0x92, 0x4a, 0x7f, 0xf1, 0xfc, + 0xc1, 0x25, 0x5a, 0x77, 0x9c, 0x37, 0xf3, 0x84, 0xa7, 0x20, 0x8f, 0x01, 0x2f, 0x84, 0x3c, 0x57, + 0xa7, 0x90, 0x28, 0x21, 0xb3, 0x5f, 0x3b, 0xfb, 0x72, 0x36, 0x16, 0xaf, 0xa2, 0xd7, 0xcd, 0xc4, + 0x65, 0x75, 0x78, 0x89, 0x07, 0x9f, 0xbe, 0x5e, 0xef, 0x91, 0xef, 0xd7, 0x7b, 0xe4, 0xe7, 0xf5, + 0x1e, 0xf9, 0xe8, 0x85, 0x1c, 0x9d, 0x99, 0x9e, 0xe5, 0x24, 0x80, 0x2e, 0x0f, 0xe0, 0x0c, 0x64, + 0xe8, 0x4e, 0x81, 0x45, 0x38, 0x3d, 0x13, 0xb8, 0xcf, 0x93, 0x10, 0x14, 0xee, 0xcf, 0x90, 0xef, + 0x27, 0x0c, 0xf9, 0x67, 0x70, 0xd3, 0xf3, 0xd0, 0x9d, 0x21, 0x77, 0xd9, 0x98, 0xa5, 0x08, 0x52, + 0xb9, 0xfe, 0x6c, 0x9e, 0x08, 0xe5, 0xaa, 0x60, 0x0a, 0x31, 0xfb, 0x1d, 0x00, 0x00, 0xff, 0xff, + 0x0d, 0x53, 0x72, 0x93, 0xdd, 0x05, 0x00, 0x00, +} + +func (m *Firewall) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Firewall) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Firewall) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.FirewallStats) > 0 { + for iNdEx := len(m.FirewallStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FirewallStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFirewall(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *FirewallStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FirewallStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FirewallStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.HierarchicalPolicerStats) > 0 { + for iNdEx := len(m.HierarchicalPolicerStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HierarchicalPolicerStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFirewall(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.PolicerStats) > 0 { + for iNdEx := len(m.PolicerStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PolicerStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFirewall(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.CounterStats) > 0 { + for iNdEx := len(m.CounterStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CounterStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFirewall(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.MemoryUsage) > 0 { + for iNdEx := len(m.MemoryUsage) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MemoryUsage[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFirewall(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Timestamp != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.Timestamp)) + i-- + dAtA[i] = 0x10 + } + if m.FilterName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("filter_name") + } else { + i -= len(*m.FilterName) + copy(dAtA[i:], *m.FilterName) + i = encodeVarintFirewall(dAtA, i, uint64(len(*m.FilterName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MemoryUsage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MemoryUsage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MemoryUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Allocated != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.Allocated)) + i-- + dAtA[i] = 0x10 + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintFirewall(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CounterStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CounterStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CounterStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bytes != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x18 + } + if m.Packets != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x10 + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintFirewall(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PolicerStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PolicerStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PolicerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExtendedPolicerStats != nil { + { + size, err := m.ExtendedPolicerStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintFirewall(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.OutOfSpecBytes != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.OutOfSpecBytes)) + i-- + dAtA[i] = 0x18 + } + if m.OutOfSpecPackets != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.OutOfSpecPackets)) + i-- + dAtA[i] = 0x10 + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintFirewall(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ExtendedPolicerStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExtendedPolicerStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExtendedPolicerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TransmittedBytes != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.TransmittedBytes)) + i-- + dAtA[i] = 0x20 + } + if m.TransmittedPackets != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.TransmittedPackets)) + i-- + dAtA[i] = 0x18 + } + if m.OfferedBytes != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.OfferedBytes)) + i-- + dAtA[i] = 0x10 + } + if m.OfferedPackets != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.OfferedPackets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *HierarchicalPolicerStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HierarchicalPolicerStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HierarchicalPolicerStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AggregateBytes != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.AggregateBytes)) + i-- + dAtA[i] = 0x28 + } + if m.AggregatePackets != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.AggregatePackets)) + i-- + dAtA[i] = 0x20 + } + if m.PremiumBytes != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.PremiumBytes)) + i-- + dAtA[i] = 0x18 + } + if m.PremiumPackets != nil { + i = encodeVarintFirewall(dAtA, i, uint64(*m.PremiumPackets)) + i-- + dAtA[i] = 0x10 + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintFirewall(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintFirewall(dAtA []byte, offset int, v uint64) int { + offset -= sovFirewall(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Firewall) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FirewallStats) > 0 { + for _, e := range m.FirewallStats { + l = e.Size() + n += 1 + l + sovFirewall(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FirewallStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FilterName != nil { + l = len(*m.FilterName) + n += 1 + l + sovFirewall(uint64(l)) + } + if m.Timestamp != nil { + n += 1 + sovFirewall(uint64(*m.Timestamp)) + } + if len(m.MemoryUsage) > 0 { + for _, e := range m.MemoryUsage { + l = e.Size() + n += 1 + l + sovFirewall(uint64(l)) + } + } + if len(m.CounterStats) > 0 { + for _, e := range m.CounterStats { + l = e.Size() + n += 1 + l + sovFirewall(uint64(l)) + } + } + if len(m.PolicerStats) > 0 { + for _, e := range m.PolicerStats { + l = e.Size() + n += 1 + l + sovFirewall(uint64(l)) + } + } + if len(m.HierarchicalPolicerStats) > 0 { + for _, e := range m.HierarchicalPolicerStats { + l = e.Size() + n += 1 + l + sovFirewall(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *MemoryUsage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovFirewall(uint64(l)) + } + if m.Allocated != nil { + n += 1 + sovFirewall(uint64(*m.Allocated)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CounterStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovFirewall(uint64(l)) + } + if m.Packets != nil { + n += 1 + sovFirewall(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovFirewall(uint64(*m.Bytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PolicerStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovFirewall(uint64(l)) + } + if m.OutOfSpecPackets != nil { + n += 1 + sovFirewall(uint64(*m.OutOfSpecPackets)) + } + if m.OutOfSpecBytes != nil { + n += 1 + sovFirewall(uint64(*m.OutOfSpecBytes)) + } + if m.ExtendedPolicerStats != nil { + l = m.ExtendedPolicerStats.Size() + n += 1 + l + sovFirewall(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ExtendedPolicerStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OfferedPackets != nil { + n += 1 + sovFirewall(uint64(*m.OfferedPackets)) + } + if m.OfferedBytes != nil { + n += 1 + sovFirewall(uint64(*m.OfferedBytes)) + } + if m.TransmittedPackets != nil { + n += 1 + sovFirewall(uint64(*m.TransmittedPackets)) + } + if m.TransmittedBytes != nil { + n += 1 + sovFirewall(uint64(*m.TransmittedBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *HierarchicalPolicerStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovFirewall(uint64(l)) + } + if m.PremiumPackets != nil { + n += 1 + sovFirewall(uint64(*m.PremiumPackets)) + } + if m.PremiumBytes != nil { + n += 1 + sovFirewall(uint64(*m.PremiumBytes)) + } + if m.AggregatePackets != nil { + n += 1 + sovFirewall(uint64(*m.AggregatePackets)) + } + if m.AggregateBytes != nil { + n += 1 + sovFirewall(uint64(*m.AggregateBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovFirewall(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozFirewall(x uint64) (n int) { + return sovFirewall(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Firewall) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Firewall: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Firewall: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirewallStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FirewallStats = append(m.FirewallStats, &FirewallStats{}) + if err := m.FirewallStats[len(m.FirewallStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FirewallStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FirewallStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FirewallStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FilterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FilterName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Timestamp = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryUsage", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MemoryUsage = append(m.MemoryUsage, &MemoryUsage{}) + if err := m.MemoryUsage[len(m.MemoryUsage)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CounterStats = append(m.CounterStats, &CounterStats{}) + if err := m.CounterStats[len(m.CounterStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicerStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PolicerStats = append(m.PolicerStats, &PolicerStats{}) + if err := m.PolicerStats[len(m.PolicerStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HierarchicalPolicerStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HierarchicalPolicerStats = append(m.HierarchicalPolicerStats, &HierarchicalPolicerStats{}) + if err := m.HierarchicalPolicerStats[len(m.HierarchicalPolicerStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("filter_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemoryUsage) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MemoryUsage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemoryUsage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Allocated = &v + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CounterStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CounterStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CounterStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PolicerStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PolicerStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PolicerStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOfSpecPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOfSpecPackets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOfSpecBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOfSpecBytes = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedPolicerStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtendedPolicerStats == nil { + m.ExtendedPolicerStats = &ExtendedPolicerStats{} + } + if err := m.ExtendedPolicerStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExtendedPolicerStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExtendedPolicerStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExtendedPolicerStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferedPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OfferedPackets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OfferedBytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmittedPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmittedPackets = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TransmittedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TransmittedBytes = &v + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HierarchicalPolicerStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HierarchicalPolicerStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HierarchicalPolicerStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthFirewall + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthFirewall + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PremiumPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PremiumPackets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PremiumBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PremiumBytes = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregatePackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AggregatePackets = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFirewall + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AggregateBytes = &v + default: + iNdEx = preIndex + skippy, err := skipFirewall(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthFirewall + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipFirewall(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFirewall + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFirewall + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowFirewall + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthFirewall + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupFirewall + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthFirewall + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthFirewall = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowFirewall = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupFirewall = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/firewall.proto b/schema/firewall.proto new file mode 100755 index 0000000..440e0ae --- /dev/null +++ b/schema/firewall.proto @@ -0,0 +1,154 @@ +// +// Copyrights (c) 2015, 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Liang Zhang, 2015-05-29 +// +// This file defines the messages in Protocol Buffers used by +// the firewall sensor. The top-level message is Firewall. +// +// Version 1.1 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 6 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional Firewall jnpr_firewall_ext = 6; +} + +// +// Top-level message +// +message Firewall { + repeated FirewallStats firewall_stats = 1; +} + +// +// Firewall filter statistics +// +message FirewallStats { + required string filter_name = 1 [(telemetry_options).is_key = true]; + + // The Unix timestamp (seconds since 00:00:00 UTC 1970-01-01) of + // last filter state change event such as filter add, filter change, + // or counter clear. + optional uint64 timestamp = 2 [(telemetry_options).is_timestamp = true]; + + repeated MemoryUsage memory_usage = 3; + repeated CounterStats counter_stats = 4; + repeated PolicerStats policer_stats = 5; + repeated HierarchicalPolicerStats hierarchical_policer_stats = 6; +} + +// +// Memory usage +// +message MemoryUsage { + // The router has typically several types of memories (e.g. CPU's memory, + // ASIC's forwarding memories) in which the firewall object is written. + // This field indicates the name of the memory subsystem whose utilization + // is being reported. + required string name = 1 [(telemetry_options).is_key = true]; + + // The amount of the memory allocated in bytes to the filter + optional uint64 allocated = 2 [(telemetry_options).is_gauge = true]; +} + +// +// Counter statistics +// +message CounterStats { + // Counter name + required string name = 1 [(telemetry_options).is_key = true]; + + // The total number of packets seen by the counter + optional uint64 packets = 2 [(telemetry_options).is_counter = true]; + + // The total number of bytes seen by the counter + optional uint64 bytes = 3 [(telemetry_options).is_counter = true]; +} + +// +// Policer statistics +// +message PolicerStats { + // Policer instance name + required string name = 1 [(telemetry_options).is_key = true]; + + // The total number of packets marked out-of-specification by the policer + optional uint64 out_of_spec_packets = 2 [(telemetry_options).is_counter = true]; + + // The total number of bytes marked out-of-specification by the policer + optional uint64 out_of_spec_bytes = 3 [(telemetry_options).is_counter = true]; + + // Additional statistics when enhanced policer statistics are available + optional ExtendedPolicerStats extended_policer_stats = 4; +} + +// +// Extended policer statistics when enhanced policer statistics are available +// +message ExtendedPolicerStats { + // The total number of packets subjected to policing + optional uint64 offered_packets = 1 [(telemetry_options).is_counter = true]; + + // The total number of bytes subjected to policing + optional uint64 offered_bytes = 2 [(telemetry_options).is_counter = true]; + + // The total number of packets not discarded by the policer + optional uint64 transmitted_packets = 3 [(telemetry_options).is_counter = true]; + + // The total number of bytes not discarded by the policer + optional uint64 transmitted_bytes = 4 [(telemetry_options).is_counter = true]; +} + +// +// Hierarchical policer statistics +// +message HierarchicalPolicerStats { + // Hierarchical policer instance name + required string name = 1 [(telemetry_options).is_key = true]; + + // The total number of packets marked out-of-specification by + // the premium policer + optional uint64 premium_packets = 2 [(telemetry_options).is_counter = true]; + + // The total number of bytes marked out-of-specification by + // the premium policer + optional uint64 premium_bytes = 3 [(telemetry_options).is_counter = true]; + + // The total number of packets marked out-of-specification by + // the aggregate policer + optional uint64 aggregate_packets = 4 [(telemetry_options).is_counter = true]; + + // The total number of bytes marked out-of-specification by + // the aggregate policer + optional uint64 aggregate_bytes = 5 [(telemetry_options).is_counter = true]; +} + diff --git a/schema/go.mod b/schema/go.mod new file mode 100644 index 0000000..004fbae --- /dev/null +++ b/schema/go.mod @@ -0,0 +1,17 @@ +module schema + +go 1.19 + +require ( + github.com/gogo/protobuf v1.3.2 + google.golang.org/grpc v1.53.0 +) + +require ( + github.com/golang/protobuf v1.5.2 // indirect + golang.org/x/net v0.5.0 // indirect + golang.org/x/sys v0.4.0 // indirect + golang.org/x/text v0.6.0 // indirect + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect + google.golang.org/protobuf v1.28.1 // indirect +) diff --git a/schema/go.sum b/schema/go.sum new file mode 100644 index 0000000..819bc8e --- /dev/null +++ b/schema/go.sum @@ -0,0 +1,50 @@ +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/grpc v1.53.0 h1:LAv2ds7cmFV/XTS3XG1NneeENYrXGmorPxsBbptIjNc= +google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/schema/inline_jflow.pb.go b/schema/inline_jflow.pb.go new file mode 100644 index 0000000..d88f105 --- /dev/null +++ b/schema/inline_jflow.pb.go @@ -0,0 +1,4269 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: inline_jflow.proto + +package schema + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InlineJflow struct { + // Version of exported flow records (v10 or v9) + Ipv4FlowsExportFormat *string `protobuf:"bytes,2,opt,name=ipv4_flows_export_format,json=ipv4FlowsExportFormat" json:"ipv4_flows_export_format,omitempty"` + Ipv6FlowsExportFormat *string `protobuf:"bytes,3,opt,name=ipv6_flows_export_format,json=ipv6FlowsExportFormat" json:"ipv6_flows_export_format,omitempty"` + VplsFlowsExportFormat *string `protobuf:"bytes,4,opt,name=vpls_flows_export_format,json=vplsFlowsExportFormat" json:"vpls_flows_export_format,omitempty"` + MplsFlowsExportFormat *string `protobuf:"bytes,5,opt,name=mpls_flows_export_format,json=mplsFlowsExportFormat" json:"mpls_flows_export_format,omitempty"` + // Total number of IPv4/IPv6/MPLS routes + Ipv4RouteRecordCnt *uint32 `protobuf:"varint,6,opt,name=ipv4_route_record_cnt,json=ipv4RouteRecordCnt" json:"ipv4_route_record_cnt,omitempty"` + Ipv6RouteRecordCnt *uint32 `protobuf:"varint,7,opt,name=ipv6_route_record_cnt,json=ipv6RouteRecordCnt" json:"ipv6_route_record_cnt,omitempty"` + MplsRouteRecordCnt *uint32 `protobuf:"varint,8,opt,name=mpls_route_record_cnt,json=mplsRouteRecordCnt" json:"mpls_route_record_cnt,omitempty"` + // Total number of Autonomous System information + AutonomousSystemRecordCnt *uint32 `protobuf:"varint,9,opt,name=autonomous_system_record_cnt,json=autonomousSystemRecordCnt" json:"autonomous_system_record_cnt,omitempty"` + // Maximum number of flows supported. + Ipv4MaxFlowsCount *uint64 `protobuf:"varint,10,opt,name=ipv4_max_flows_count,json=ipv4MaxFlowsCount" json:"ipv4_max_flows_count,omitempty"` + Ipv6MaxFlowsCount *uint64 `protobuf:"varint,11,opt,name=ipv6_max_flows_count,json=ipv6MaxFlowsCount" json:"ipv6_max_flows_count,omitempty"` + VplsMaxFlowsCount *uint64 `protobuf:"varint,12,opt,name=vpls_max_flows_count,json=vplsMaxFlowsCount" json:"vpls_max_flows_count,omitempty"` + MplsMaxFlowsCount *uint64 `protobuf:"varint,13,opt,name=mpls_max_flows_count,json=mplsMaxFlowsCount" json:"mpls_max_flows_count,omitempty"` + // Total number of heap memory allocation failure + MemoryAllocFailCnt *uint32 `protobuf:"varint,14,opt,name=memory_alloc_fail_cnt,json=memoryAllocFailCnt" json:"memory_alloc_fail_cnt,omitempty"` + // Value of Configured Observation Domain ID + Ipv4ConfiguredObservationDomainId *uint32 `protobuf:"varint,15,opt,name=ipv4_configured_observation_domain_id,json=ipv4ConfiguredObservationDomainId" json:"ipv4_configured_observation_domain_id,omitempty"` + Ipv6ConfiguredObservationDomainId *uint32 `protobuf:"varint,16,opt,name=ipv6_configured_observation_domain_id,json=ipv6ConfiguredObservationDomainId" json:"ipv6_configured_observation_domain_id,omitempty"` + VplsConfiguredObservationDomainId *uint32 `protobuf:"varint,17,opt,name=vpls_configured_observation_domain_id,json=vplsConfiguredObservationDomainId" json:"vpls_configured_observation_domain_id,omitempty"` + MplsConfiguredObservationDomainId *uint32 `protobuf:"varint,18,opt,name=mpls_configured_observation_domain_id,json=mplsConfiguredObservationDomainId" json:"mpls_configured_observation_domain_id,omitempty"` + // Timestamp of last clear command + LastClearTimestamp *uint32 `protobuf:"varint,19,opt,name=last_clear_timestamp,json=lastClearTimestamp" json:"last_clear_timestamp,omitempty"` + // Status of ipv6_extended_attrib knob + Ipv6ExtendedAttribute *bool `protobuf:"varint,20,opt,name=ipv6_extended_attribute,json=ipv6ExtendedAttribute" json:"ipv6_extended_attribute,omitempty"` + // Status of flex_flow_sizing knob + FlexibleFlowSizing *bool `protobuf:"varint,21,opt,name=flexible_flow_sizing,json=flexibleFlowSizing" json:"flexible_flow_sizing,omitempty"` + // Status of use_extended_flow_memory knob + UseExtendedFlowMemory *bool `protobuf:"varint,22,opt,name=use_extended_flow_memory,json=useExtendedFlowMemory" json:"use_extended_flow_memory,omitempty"` + // Version of Bridge exported flow records (v10 or v9) + BridgeFlowsExportFormat *string `protobuf:"bytes,23,opt,name=bridge_flows_export_format,json=bridgeFlowsExportFormat" json:"bridge_flows_export_format,omitempty"` + // Maximum number of flows supported for Bridge. + BridgeMaxFlowsCount *uint64 `protobuf:"varint,24,opt,name=bridge_max_flows_count,json=bridgeMaxFlowsCount" json:"bridge_max_flows_count,omitempty"` + // Value of Configured Observation Domain ID for Bridge + BridgeConfiguredObservationDomainId *uint32 `protobuf:"varint,25,opt,name=bridge_configured_observation_domain_id,json=bridgeConfiguredObservationDomainId" json:"bridge_configured_observation_domain_id,omitempty"` + // NPU level statistics + NpuStats []*InlineJflowNpuStats `protobuf:"bytes,50,rep,name=npu_stats,json=npuStats" json:"npu_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InlineJflow) Reset() { *m = InlineJflow{} } +func (m *InlineJflow) String() string { return proto.CompactTextString(m) } +func (*InlineJflow) ProtoMessage() {} +func (*InlineJflow) Descriptor() ([]byte, []int) { + return fileDescriptor_2f414b06d7d500f7, []int{0} +} +func (m *InlineJflow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InlineJflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InlineJflow.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InlineJflow) XXX_Merge(src proto.Message) { + xxx_messageInfo_InlineJflow.Merge(m, src) +} +func (m *InlineJflow) XXX_Size() int { + return m.Size() +} +func (m *InlineJflow) XXX_DiscardUnknown() { + xxx_messageInfo_InlineJflow.DiscardUnknown(m) +} + +var xxx_messageInfo_InlineJflow proto.InternalMessageInfo + +func (m *InlineJflow) GetIpv4FlowsExportFormat() string { + if m != nil && m.Ipv4FlowsExportFormat != nil { + return *m.Ipv4FlowsExportFormat + } + return "" +} + +func (m *InlineJflow) GetIpv6FlowsExportFormat() string { + if m != nil && m.Ipv6FlowsExportFormat != nil { + return *m.Ipv6FlowsExportFormat + } + return "" +} + +func (m *InlineJflow) GetVplsFlowsExportFormat() string { + if m != nil && m.VplsFlowsExportFormat != nil { + return *m.VplsFlowsExportFormat + } + return "" +} + +func (m *InlineJflow) GetMplsFlowsExportFormat() string { + if m != nil && m.MplsFlowsExportFormat != nil { + return *m.MplsFlowsExportFormat + } + return "" +} + +func (m *InlineJflow) GetIpv4RouteRecordCnt() uint32 { + if m != nil && m.Ipv4RouteRecordCnt != nil { + return *m.Ipv4RouteRecordCnt + } + return 0 +} + +func (m *InlineJflow) GetIpv6RouteRecordCnt() uint32 { + if m != nil && m.Ipv6RouteRecordCnt != nil { + return *m.Ipv6RouteRecordCnt + } + return 0 +} + +func (m *InlineJflow) GetMplsRouteRecordCnt() uint32 { + if m != nil && m.MplsRouteRecordCnt != nil { + return *m.MplsRouteRecordCnt + } + return 0 +} + +func (m *InlineJflow) GetAutonomousSystemRecordCnt() uint32 { + if m != nil && m.AutonomousSystemRecordCnt != nil { + return *m.AutonomousSystemRecordCnt + } + return 0 +} + +func (m *InlineJflow) GetIpv4MaxFlowsCount() uint64 { + if m != nil && m.Ipv4MaxFlowsCount != nil { + return *m.Ipv4MaxFlowsCount + } + return 0 +} + +func (m *InlineJflow) GetIpv6MaxFlowsCount() uint64 { + if m != nil && m.Ipv6MaxFlowsCount != nil { + return *m.Ipv6MaxFlowsCount + } + return 0 +} + +func (m *InlineJflow) GetVplsMaxFlowsCount() uint64 { + if m != nil && m.VplsMaxFlowsCount != nil { + return *m.VplsMaxFlowsCount + } + return 0 +} + +func (m *InlineJflow) GetMplsMaxFlowsCount() uint64 { + if m != nil && m.MplsMaxFlowsCount != nil { + return *m.MplsMaxFlowsCount + } + return 0 +} + +func (m *InlineJflow) GetMemoryAllocFailCnt() uint32 { + if m != nil && m.MemoryAllocFailCnt != nil { + return *m.MemoryAllocFailCnt + } + return 0 +} + +func (m *InlineJflow) GetIpv4ConfiguredObservationDomainId() uint32 { + if m != nil && m.Ipv4ConfiguredObservationDomainId != nil { + return *m.Ipv4ConfiguredObservationDomainId + } + return 0 +} + +func (m *InlineJflow) GetIpv6ConfiguredObservationDomainId() uint32 { + if m != nil && m.Ipv6ConfiguredObservationDomainId != nil { + return *m.Ipv6ConfiguredObservationDomainId + } + return 0 +} + +func (m *InlineJflow) GetVplsConfiguredObservationDomainId() uint32 { + if m != nil && m.VplsConfiguredObservationDomainId != nil { + return *m.VplsConfiguredObservationDomainId + } + return 0 +} + +func (m *InlineJflow) GetMplsConfiguredObservationDomainId() uint32 { + if m != nil && m.MplsConfiguredObservationDomainId != nil { + return *m.MplsConfiguredObservationDomainId + } + return 0 +} + +func (m *InlineJflow) GetLastClearTimestamp() uint32 { + if m != nil && m.LastClearTimestamp != nil { + return *m.LastClearTimestamp + } + return 0 +} + +func (m *InlineJflow) GetIpv6ExtendedAttribute() bool { + if m != nil && m.Ipv6ExtendedAttribute != nil { + return *m.Ipv6ExtendedAttribute + } + return false +} + +func (m *InlineJflow) GetFlexibleFlowSizing() bool { + if m != nil && m.FlexibleFlowSizing != nil { + return *m.FlexibleFlowSizing + } + return false +} + +func (m *InlineJflow) GetUseExtendedFlowMemory() bool { + if m != nil && m.UseExtendedFlowMemory != nil { + return *m.UseExtendedFlowMemory + } + return false +} + +func (m *InlineJflow) GetBridgeFlowsExportFormat() string { + if m != nil && m.BridgeFlowsExportFormat != nil { + return *m.BridgeFlowsExportFormat + } + return "" +} + +func (m *InlineJflow) GetBridgeMaxFlowsCount() uint64 { + if m != nil && m.BridgeMaxFlowsCount != nil { + return *m.BridgeMaxFlowsCount + } + return 0 +} + +func (m *InlineJflow) GetBridgeConfiguredObservationDomainId() uint32 { + if m != nil && m.BridgeConfiguredObservationDomainId != nil { + return *m.BridgeConfiguredObservationDomainId + } + return 0 +} + +func (m *InlineJflow) GetNpuStats() []*InlineJflowNpuStats { + if m != nil { + return m.NpuStats + } + return nil +} + +type InlineJflowNpuStats struct { + // All NPUs in the system are globally identified + // + // 8 4 4 bits + NpuIdentifier *uint32 `protobuf:"varint,1,req,name=npu_identifier,json=npuIdentifier" json:"npu_identifier,omitempty"` + // IPv4 NPU Stats + // Total number of IPv4 packets and bytes sampled + Ipv4FlowPackets *uint64 `protobuf:"varint,51,opt,name=ipv4_flow_packets,json=ipv4FlowPackets" json:"ipv4_flow_packets,omitempty"` + Ipv4FlowBytes *uint64 `protobuf:"varint,52,opt,name=ipv4_flow_bytes,json=ipv4FlowBytes" json:"ipv4_flow_bytes,omitempty"` + // Total number of IPv4 flows created + Ipv4TotalFlows *uint64 `protobuf:"varint,53,opt,name=ipv4_total_flows,json=ipv4TotalFlows" json:"ipv4_total_flows,omitempty"` + // Total number of IPv4 flows that are active currently + Ipv4ActiveFlows *uint64 `protobuf:"varint,54,opt,name=ipv4_active_flows,json=ipv4ActiveFlows" json:"ipv4_active_flows,omitempty"` + // Total number of IPv4 flows exported to collector + Ipv4FlowsExported *uint64 `protobuf:"varint,55,opt,name=ipv4_flows_exported,json=ipv4FlowsExported" json:"ipv4_flows_exported,omitempty"` + // Total number of IPv4 flow packets exported to collector + Ipv4PacketsExported *uint64 `protobuf:"varint,56,opt,name=ipv4_packets_exported,json=ipv4PacketsExported" json:"ipv4_packets_exported,omitempty"` + // Total number of IPv4 flows exported due to idle time out + Ipv4FlowsInactiveTimedOut *uint64 `protobuf:"varint,57,opt,name=ipv4_flows_inactive_timed_out,json=ipv4FlowsInactiveTimedOut" json:"ipv4_flows_inactive_timed_out,omitempty"` + // Total number of IPv4 flows exported due to active time out + Ipv4FlowsActiveTimedOut *uint64 `protobuf:"varint,58,opt,name=ipv4_flows_active_timed_out,json=ipv4FlowsActiveTimedOut" json:"ipv4_flows_active_timed_out,omitempty"` + // Total number of IPv4 flow creation failure (flow insert faiure) + Ipv4FlowCreateFailure *uint64 `protobuf:"varint,59,opt,name=ipv4_flow_create_failure,json=ipv4FlowCreateFailure" json:"ipv4_flow_create_failure,omitempty"` + // Total number of route, autonomous system lookup failure + Ipv4RouteLookupFailure *uint64 `protobuf:"varint,60,opt,name=ipv4_route_lookup_failure,json=ipv4RouteLookupFailure" json:"ipv4_route_lookup_failure,omitempty"` + Ipv4AutonomousSystemLookupFailure *uint64 `protobuf:"varint,61,opt,name=ipv4_autonomous_system_lookup_failure,json=ipv4AutonomousSystemLookupFailure" json:"ipv4_autonomous_system_lookup_failure,omitempty"` + // Total number of exporting flow record to collector failed + Ipv4FlowPacketExportFailure *uint64 `protobuf:"varint,62,opt,name=ipv4_flow_packet_export_failure,json=ipv4FlowPacketExportFailure" json:"ipv4_flow_packet_export_failure,omitempty"` + // IPv4 flow table utlization in percentage + Ipv4FlowTableUtilization *float32 `protobuf:"fixed32,63,opt,name=ipv4_flow_table_utilization,json=ipv4FlowTableUtilization" json:"ipv4_flow_table_utilization,omitempty"` + // Absolute number of flow inserted + Ipv4FlowInsertCount *uint64 `protobuf:"varint,64,opt,name=ipv4_flow_insert_count,json=ipv4FlowInsertCount" json:"ipv4_flow_insert_count,omitempty"` + // IPv6 NPU Stats + Ipv6FlowPackets *uint64 `protobuf:"varint,101,opt,name=ipv6_flow_packets,json=ipv6FlowPackets" json:"ipv6_flow_packets,omitempty"` + Ipv6FlowBytes *uint64 `protobuf:"varint,102,opt,name=ipv6_flow_bytes,json=ipv6FlowBytes" json:"ipv6_flow_bytes,omitempty"` + Ipv6TotalFlows *uint64 `protobuf:"varint,103,opt,name=ipv6_total_flows,json=ipv6TotalFlows" json:"ipv6_total_flows,omitempty"` + Ipv6ActiveFlows *uint64 `protobuf:"varint,104,opt,name=ipv6_active_flows,json=ipv6ActiveFlows" json:"ipv6_active_flows,omitempty"` + Ipv6FlowsExported *uint64 `protobuf:"varint,105,opt,name=ipv6_flows_exported,json=ipv6FlowsExported" json:"ipv6_flows_exported,omitempty"` + Ipv6PacketsExported *uint64 `protobuf:"varint,106,opt,name=ipv6_packets_exported,json=ipv6PacketsExported" json:"ipv6_packets_exported,omitempty"` + Ipv6FlowsInactiveTimedOut *uint64 `protobuf:"varint,107,opt,name=ipv6_flows_inactive_timed_out,json=ipv6FlowsInactiveTimedOut" json:"ipv6_flows_inactive_timed_out,omitempty"` + Ipv6FlowsActiveTimedOut *uint64 `protobuf:"varint,108,opt,name=ipv6_flows_active_timed_out,json=ipv6FlowsActiveTimedOut" json:"ipv6_flows_active_timed_out,omitempty"` + Ipv6FlowCreateFailure *uint64 `protobuf:"varint,109,opt,name=ipv6_flow_create_failure,json=ipv6FlowCreateFailure" json:"ipv6_flow_create_failure,omitempty"` + Ipv6RouteLookupFailure *uint64 `protobuf:"varint,110,opt,name=ipv6_route_lookup_failure,json=ipv6RouteLookupFailure" json:"ipv6_route_lookup_failure,omitempty"` + Ipv6AutonomousSystemLookupFailure *uint64 `protobuf:"varint,111,opt,name=ipv6_autonomous_system_lookup_failure,json=ipv6AutonomousSystemLookupFailure" json:"ipv6_autonomous_system_lookup_failure,omitempty"` + Ipv6FlowPacketExportFailure *uint64 `protobuf:"varint,112,opt,name=ipv6_flow_packet_export_failure,json=ipv6FlowPacketExportFailure" json:"ipv6_flow_packet_export_failure,omitempty"` + Ipv6FlowTableUtilization *float32 `protobuf:"fixed32,113,opt,name=ipv6_flow_table_utilization,json=ipv6FlowTableUtilization" json:"ipv6_flow_table_utilization,omitempty"` + Ipv6FlowInsertCount *uint64 `protobuf:"varint,114,opt,name=ipv6_flow_insert_count,json=ipv6FlowInsertCount" json:"ipv6_flow_insert_count,omitempty"` + // VPLS NPU Stats + VplsFlowPackets *uint64 `protobuf:"varint,151,opt,name=vpls_flow_packets,json=vplsFlowPackets" json:"vpls_flow_packets,omitempty"` + VplsFlowBytes *uint64 `protobuf:"varint,152,opt,name=vpls_flow_bytes,json=vplsFlowBytes" json:"vpls_flow_bytes,omitempty"` + VplsTotalFlows *uint64 `protobuf:"varint,153,opt,name=vpls_total_flows,json=vplsTotalFlows" json:"vpls_total_flows,omitempty"` + VplsActiveFlows *uint64 `protobuf:"varint,154,opt,name=vpls_active_flows,json=vplsActiveFlows" json:"vpls_active_flows,omitempty"` + VplsFlowsExported *uint64 `protobuf:"varint,155,opt,name=vpls_flows_exported,json=vplsFlowsExported" json:"vpls_flows_exported,omitempty"` + VplsPacketsExported *uint64 `protobuf:"varint,156,opt,name=vpls_packets_exported,json=vplsPacketsExported" json:"vpls_packets_exported,omitempty"` + VplsFlowsInactiveTimedOut *uint64 `protobuf:"varint,157,opt,name=vpls_flows_inactive_timed_out,json=vplsFlowsInactiveTimedOut" json:"vpls_flows_inactive_timed_out,omitempty"` + VplsFlowsActiveTimedOut *uint64 `protobuf:"varint,158,opt,name=vpls_flows_active_timed_out,json=vplsFlowsActiveTimedOut" json:"vpls_flows_active_timed_out,omitempty"` + VplsFlowCreateFailure *uint64 `protobuf:"varint,159,opt,name=vpls_flow_create_failure,json=vplsFlowCreateFailure" json:"vpls_flow_create_failure,omitempty"` + VplsRouteLookupFailure *uint64 `protobuf:"varint,160,opt,name=vpls_route_lookup_failure,json=vplsRouteLookupFailure" json:"vpls_route_lookup_failure,omitempty"` + VplsAutonomousSystemLookupFailure *uint64 `protobuf:"varint,161,opt,name=vpls_autonomous_system_lookup_failure,json=vplsAutonomousSystemLookupFailure" json:"vpls_autonomous_system_lookup_failure,omitempty"` + VplsFlowPacketExportFailure *uint64 `protobuf:"varint,162,opt,name=vpls_flow_packet_export_failure,json=vplsFlowPacketExportFailure" json:"vpls_flow_packet_export_failure,omitempty"` + VplsFlowTableUtilization *float32 `protobuf:"fixed32,163,opt,name=vpls_flow_table_utilization,json=vplsFlowTableUtilization" json:"vpls_flow_table_utilization,omitempty"` + VplsFlowInsertCount *uint64 `protobuf:"varint,164,opt,name=vpls_flow_insert_count,json=vplsFlowInsertCount" json:"vpls_flow_insert_count,omitempty"` + // MPLS NPU Stats + MplsFlowPackets *uint64 `protobuf:"varint,201,opt,name=mpls_flow_packets,json=mplsFlowPackets" json:"mpls_flow_packets,omitempty"` + MplsFlowBytes *uint64 `protobuf:"varint,202,opt,name=mpls_flow_bytes,json=mplsFlowBytes" json:"mpls_flow_bytes,omitempty"` + MplsTotalFlows *uint64 `protobuf:"varint,203,opt,name=mpls_total_flows,json=mplsTotalFlows" json:"mpls_total_flows,omitempty"` + MplsActiveFlows *uint64 `protobuf:"varint,204,opt,name=mpls_active_flows,json=mplsActiveFlows" json:"mpls_active_flows,omitempty"` + MplsFlowsExported *uint64 `protobuf:"varint,205,opt,name=mpls_flows_exported,json=mplsFlowsExported" json:"mpls_flows_exported,omitempty"` + MplsPacketsExported *uint64 `protobuf:"varint,206,opt,name=mpls_packets_exported,json=mplsPacketsExported" json:"mpls_packets_exported,omitempty"` + MplsFlowsInactiveTimedOut *uint64 `protobuf:"varint,207,opt,name=mpls_flows_inactive_timed_out,json=mplsFlowsInactiveTimedOut" json:"mpls_flows_inactive_timed_out,omitempty"` + MplsFlowsActiveTimedOut *uint64 `protobuf:"varint,208,opt,name=mpls_flows_active_timed_out,json=mplsFlowsActiveTimedOut" json:"mpls_flows_active_timed_out,omitempty"` + MplsFlowCreateFailure *uint64 `protobuf:"varint,209,opt,name=mpls_flow_create_failure,json=mplsFlowCreateFailure" json:"mpls_flow_create_failure,omitempty"` + MplsRouteLookupFailure *uint64 `protobuf:"varint,210,opt,name=mpls_route_lookup_failure,json=mplsRouteLookupFailure" json:"mpls_route_lookup_failure,omitempty"` + MplsAutonomousSystemLookupFailure *uint64 `protobuf:"varint,211,opt,name=mpls_autonomous_system_lookup_failure,json=mplsAutonomousSystemLookupFailure" json:"mpls_autonomous_system_lookup_failure,omitempty"` + MplsFlowPacketExportFailure *uint64 `protobuf:"varint,212,opt,name=mpls_flow_packet_export_failure,json=mplsFlowPacketExportFailure" json:"mpls_flow_packet_export_failure,omitempty"` + MplsFlowTableUtilization *float32 `protobuf:"fixed32,213,opt,name=mpls_flow_table_utilization,json=mplsFlowTableUtilization" json:"mpls_flow_table_utilization,omitempty"` + MplsFlowInsertCount *uint64 `protobuf:"varint,214,opt,name=mpls_flow_insert_count,json=mplsFlowInsertCount" json:"mpls_flow_insert_count,omitempty"` + // BRIDGE NPU Stats + BridgeFlowPackets *uint64 `protobuf:"varint,251,opt,name=bridge_flow_packets,json=bridgeFlowPackets" json:"bridge_flow_packets,omitempty"` + BridgeFlowBytes *uint64 `protobuf:"varint,252,opt,name=bridge_flow_bytes,json=bridgeFlowBytes" json:"bridge_flow_bytes,omitempty"` + BridgeTotalFlows *uint64 `protobuf:"varint,253,opt,name=bridge_total_flows,json=bridgeTotalFlows" json:"bridge_total_flows,omitempty"` + BridgeActiveFlows *uint64 `protobuf:"varint,254,opt,name=bridge_active_flows,json=bridgeActiveFlows" json:"bridge_active_flows,omitempty"` + BridgeFlowsExported *uint64 `protobuf:"varint,255,opt,name=bridge_flows_exported,json=bridgeFlowsExported" json:"bridge_flows_exported,omitempty"` + BridgePacketsExported *uint64 `protobuf:"varint,256,opt,name=bridge_packets_exported,json=bridgePacketsExported" json:"bridge_packets_exported,omitempty"` + BridgeFlowsInactiveTimedOut *uint64 `protobuf:"varint,257,opt,name=bridge_flows_inactive_timed_out,json=bridgeFlowsInactiveTimedOut" json:"bridge_flows_inactive_timed_out,omitempty"` + BridgeFlowsActiveTimedOut *uint64 `protobuf:"varint,258,opt,name=bridge_flows_active_timed_out,json=bridgeFlowsActiveTimedOut" json:"bridge_flows_active_timed_out,omitempty"` + BridgeFlowCreateFailure *uint64 `protobuf:"varint,259,opt,name=bridge_flow_create_failure,json=bridgeFlowCreateFailure" json:"bridge_flow_create_failure,omitempty"` + BridgeRouteLookupFailure *uint64 `protobuf:"varint,260,opt,name=bridge_route_lookup_failure,json=bridgeRouteLookupFailure" json:"bridge_route_lookup_failure,omitempty"` + BridgeAutonomousSystemLookupFailure *uint64 `protobuf:"varint,261,opt,name=bridge_autonomous_system_lookup_failure,json=bridgeAutonomousSystemLookupFailure" json:"bridge_autonomous_system_lookup_failure,omitempty"` + BridgeFlowPacketExportFailure *uint64 `protobuf:"varint,262,opt,name=bridge_flow_packet_export_failure,json=bridgeFlowPacketExportFailure" json:"bridge_flow_packet_export_failure,omitempty"` + BridgeFlowTableUtilization *float32 `protobuf:"fixed32,263,opt,name=bridge_flow_table_utilization,json=bridgeFlowTableUtilization" json:"bridge_flow_table_utilization,omitempty"` + BridgeFlowInsertCount *uint64 `protobuf:"varint,264,opt,name=bridge_flow_insert_count,json=bridgeFlowInsertCount" json:"bridge_flow_insert_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InlineJflowNpuStats) Reset() { *m = InlineJflowNpuStats{} } +func (m *InlineJflowNpuStats) String() string { return proto.CompactTextString(m) } +func (*InlineJflowNpuStats) ProtoMessage() {} +func (*InlineJflowNpuStats) Descriptor() ([]byte, []int) { + return fileDescriptor_2f414b06d7d500f7, []int{1} +} +func (m *InlineJflowNpuStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InlineJflowNpuStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InlineJflowNpuStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InlineJflowNpuStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_InlineJflowNpuStats.Merge(m, src) +} +func (m *InlineJflowNpuStats) XXX_Size() int { + return m.Size() +} +func (m *InlineJflowNpuStats) XXX_DiscardUnknown() { + xxx_messageInfo_InlineJflowNpuStats.DiscardUnknown(m) +} + +var xxx_messageInfo_InlineJflowNpuStats proto.InternalMessageInfo + +func (m *InlineJflowNpuStats) GetNpuIdentifier() uint32 { + if m != nil && m.NpuIdentifier != nil { + return *m.NpuIdentifier + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowPackets() uint64 { + if m != nil && m.Ipv4FlowPackets != nil { + return *m.Ipv4FlowPackets + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowBytes() uint64 { + if m != nil && m.Ipv4FlowBytes != nil { + return *m.Ipv4FlowBytes + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4TotalFlows() uint64 { + if m != nil && m.Ipv4TotalFlows != nil { + return *m.Ipv4TotalFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4ActiveFlows() uint64 { + if m != nil && m.Ipv4ActiveFlows != nil { + return *m.Ipv4ActiveFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowsExported() uint64 { + if m != nil && m.Ipv4FlowsExported != nil { + return *m.Ipv4FlowsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4PacketsExported() uint64 { + if m != nil && m.Ipv4PacketsExported != nil { + return *m.Ipv4PacketsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowsInactiveTimedOut() uint64 { + if m != nil && m.Ipv4FlowsInactiveTimedOut != nil { + return *m.Ipv4FlowsInactiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowsActiveTimedOut() uint64 { + if m != nil && m.Ipv4FlowsActiveTimedOut != nil { + return *m.Ipv4FlowsActiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowCreateFailure() uint64 { + if m != nil && m.Ipv4FlowCreateFailure != nil { + return *m.Ipv4FlowCreateFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4RouteLookupFailure() uint64 { + if m != nil && m.Ipv4RouteLookupFailure != nil { + return *m.Ipv4RouteLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4AutonomousSystemLookupFailure() uint64 { + if m != nil && m.Ipv4AutonomousSystemLookupFailure != nil { + return *m.Ipv4AutonomousSystemLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowPacketExportFailure() uint64 { + if m != nil && m.Ipv4FlowPacketExportFailure != nil { + return *m.Ipv4FlowPacketExportFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowTableUtilization() float32 { + if m != nil && m.Ipv4FlowTableUtilization != nil { + return *m.Ipv4FlowTableUtilization + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv4FlowInsertCount() uint64 { + if m != nil && m.Ipv4FlowInsertCount != nil { + return *m.Ipv4FlowInsertCount + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowPackets() uint64 { + if m != nil && m.Ipv6FlowPackets != nil { + return *m.Ipv6FlowPackets + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowBytes() uint64 { + if m != nil && m.Ipv6FlowBytes != nil { + return *m.Ipv6FlowBytes + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6TotalFlows() uint64 { + if m != nil && m.Ipv6TotalFlows != nil { + return *m.Ipv6TotalFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6ActiveFlows() uint64 { + if m != nil && m.Ipv6ActiveFlows != nil { + return *m.Ipv6ActiveFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowsExported() uint64 { + if m != nil && m.Ipv6FlowsExported != nil { + return *m.Ipv6FlowsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6PacketsExported() uint64 { + if m != nil && m.Ipv6PacketsExported != nil { + return *m.Ipv6PacketsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowsInactiveTimedOut() uint64 { + if m != nil && m.Ipv6FlowsInactiveTimedOut != nil { + return *m.Ipv6FlowsInactiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowsActiveTimedOut() uint64 { + if m != nil && m.Ipv6FlowsActiveTimedOut != nil { + return *m.Ipv6FlowsActiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowCreateFailure() uint64 { + if m != nil && m.Ipv6FlowCreateFailure != nil { + return *m.Ipv6FlowCreateFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6RouteLookupFailure() uint64 { + if m != nil && m.Ipv6RouteLookupFailure != nil { + return *m.Ipv6RouteLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6AutonomousSystemLookupFailure() uint64 { + if m != nil && m.Ipv6AutonomousSystemLookupFailure != nil { + return *m.Ipv6AutonomousSystemLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowPacketExportFailure() uint64 { + if m != nil && m.Ipv6FlowPacketExportFailure != nil { + return *m.Ipv6FlowPacketExportFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowTableUtilization() float32 { + if m != nil && m.Ipv6FlowTableUtilization != nil { + return *m.Ipv6FlowTableUtilization + } + return 0 +} + +func (m *InlineJflowNpuStats) GetIpv6FlowInsertCount() uint64 { + if m != nil && m.Ipv6FlowInsertCount != nil { + return *m.Ipv6FlowInsertCount + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowPackets() uint64 { + if m != nil && m.VplsFlowPackets != nil { + return *m.VplsFlowPackets + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowBytes() uint64 { + if m != nil && m.VplsFlowBytes != nil { + return *m.VplsFlowBytes + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsTotalFlows() uint64 { + if m != nil && m.VplsTotalFlows != nil { + return *m.VplsTotalFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsActiveFlows() uint64 { + if m != nil && m.VplsActiveFlows != nil { + return *m.VplsActiveFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowsExported() uint64 { + if m != nil && m.VplsFlowsExported != nil { + return *m.VplsFlowsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsPacketsExported() uint64 { + if m != nil && m.VplsPacketsExported != nil { + return *m.VplsPacketsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowsInactiveTimedOut() uint64 { + if m != nil && m.VplsFlowsInactiveTimedOut != nil { + return *m.VplsFlowsInactiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowsActiveTimedOut() uint64 { + if m != nil && m.VplsFlowsActiveTimedOut != nil { + return *m.VplsFlowsActiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowCreateFailure() uint64 { + if m != nil && m.VplsFlowCreateFailure != nil { + return *m.VplsFlowCreateFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsRouteLookupFailure() uint64 { + if m != nil && m.VplsRouteLookupFailure != nil { + return *m.VplsRouteLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsAutonomousSystemLookupFailure() uint64 { + if m != nil && m.VplsAutonomousSystemLookupFailure != nil { + return *m.VplsAutonomousSystemLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowPacketExportFailure() uint64 { + if m != nil && m.VplsFlowPacketExportFailure != nil { + return *m.VplsFlowPacketExportFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowTableUtilization() float32 { + if m != nil && m.VplsFlowTableUtilization != nil { + return *m.VplsFlowTableUtilization + } + return 0 +} + +func (m *InlineJflowNpuStats) GetVplsFlowInsertCount() uint64 { + if m != nil && m.VplsFlowInsertCount != nil { + return *m.VplsFlowInsertCount + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowPackets() uint64 { + if m != nil && m.MplsFlowPackets != nil { + return *m.MplsFlowPackets + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowBytes() uint64 { + if m != nil && m.MplsFlowBytes != nil { + return *m.MplsFlowBytes + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsTotalFlows() uint64 { + if m != nil && m.MplsTotalFlows != nil { + return *m.MplsTotalFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsActiveFlows() uint64 { + if m != nil && m.MplsActiveFlows != nil { + return *m.MplsActiveFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowsExported() uint64 { + if m != nil && m.MplsFlowsExported != nil { + return *m.MplsFlowsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsPacketsExported() uint64 { + if m != nil && m.MplsPacketsExported != nil { + return *m.MplsPacketsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowsInactiveTimedOut() uint64 { + if m != nil && m.MplsFlowsInactiveTimedOut != nil { + return *m.MplsFlowsInactiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowsActiveTimedOut() uint64 { + if m != nil && m.MplsFlowsActiveTimedOut != nil { + return *m.MplsFlowsActiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowCreateFailure() uint64 { + if m != nil && m.MplsFlowCreateFailure != nil { + return *m.MplsFlowCreateFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsRouteLookupFailure() uint64 { + if m != nil && m.MplsRouteLookupFailure != nil { + return *m.MplsRouteLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsAutonomousSystemLookupFailure() uint64 { + if m != nil && m.MplsAutonomousSystemLookupFailure != nil { + return *m.MplsAutonomousSystemLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowPacketExportFailure() uint64 { + if m != nil && m.MplsFlowPacketExportFailure != nil { + return *m.MplsFlowPacketExportFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowTableUtilization() float32 { + if m != nil && m.MplsFlowTableUtilization != nil { + return *m.MplsFlowTableUtilization + } + return 0 +} + +func (m *InlineJflowNpuStats) GetMplsFlowInsertCount() uint64 { + if m != nil && m.MplsFlowInsertCount != nil { + return *m.MplsFlowInsertCount + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowPackets() uint64 { + if m != nil && m.BridgeFlowPackets != nil { + return *m.BridgeFlowPackets + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowBytes() uint64 { + if m != nil && m.BridgeFlowBytes != nil { + return *m.BridgeFlowBytes + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeTotalFlows() uint64 { + if m != nil && m.BridgeTotalFlows != nil { + return *m.BridgeTotalFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeActiveFlows() uint64 { + if m != nil && m.BridgeActiveFlows != nil { + return *m.BridgeActiveFlows + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowsExported() uint64 { + if m != nil && m.BridgeFlowsExported != nil { + return *m.BridgeFlowsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgePacketsExported() uint64 { + if m != nil && m.BridgePacketsExported != nil { + return *m.BridgePacketsExported + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowsInactiveTimedOut() uint64 { + if m != nil && m.BridgeFlowsInactiveTimedOut != nil { + return *m.BridgeFlowsInactiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowsActiveTimedOut() uint64 { + if m != nil && m.BridgeFlowsActiveTimedOut != nil { + return *m.BridgeFlowsActiveTimedOut + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowCreateFailure() uint64 { + if m != nil && m.BridgeFlowCreateFailure != nil { + return *m.BridgeFlowCreateFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeRouteLookupFailure() uint64 { + if m != nil && m.BridgeRouteLookupFailure != nil { + return *m.BridgeRouteLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeAutonomousSystemLookupFailure() uint64 { + if m != nil && m.BridgeAutonomousSystemLookupFailure != nil { + return *m.BridgeAutonomousSystemLookupFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowPacketExportFailure() uint64 { + if m != nil && m.BridgeFlowPacketExportFailure != nil { + return *m.BridgeFlowPacketExportFailure + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowTableUtilization() float32 { + if m != nil && m.BridgeFlowTableUtilization != nil { + return *m.BridgeFlowTableUtilization + } + return 0 +} + +func (m *InlineJflowNpuStats) GetBridgeFlowInsertCount() uint64 { + if m != nil && m.BridgeFlowInsertCount != nil { + return *m.BridgeFlowInsertCount + } + return 0 +} + +var E_InlineJflowStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InlineJflow)(nil), + Field: 9, + Name: "inline_jflow_stats_ext", + Tag: "bytes,9,opt,name=inline_jflow_stats_ext", + Filename: "inline_jflow.proto", +} + +func init() { + proto.RegisterType((*InlineJflow)(nil), "InlineJflow") + proto.RegisterType((*InlineJflowNpuStats)(nil), "InlineJflowNpuStats") + proto.RegisterExtension(E_InlineJflowStatsExt) +} + +func init() { proto.RegisterFile("inline_jflow.proto", fileDescriptor_2f414b06d7d500f7) } + +var fileDescriptor_2f414b06d7d500f7 = []byte{ + // 1741 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x98, 0x69, 0x73, 0x14, 0xb9, + 0x19, 0xc7, 0x6b, 0x0c, 0x24, 0x20, 0xe3, 0xab, 0xc7, 0x47, 0x1b, 0xc7, 0x30, 0x40, 0x51, 0xf1, + 0x1b, 0x7b, 0xc0, 0x80, 0x00, 0x93, 0x60, 0x8c, 0xb1, 0x83, 0x09, 0x57, 0x8d, 0x9d, 0x4a, 0x8a, + 0x4a, 0x55, 0xa7, 0x3d, 0x2d, 0x8f, 0x65, 0xb7, 0xba, 0x27, 0xdd, 0x6a, 0x63, 0xf3, 0x2a, 0x21, + 0xd9, 0xe3, 0x1b, 0xec, 0x7d, 0xef, 0x87, 0xd9, 0x93, 0x65, 0xcf, 0xd7, 0xbb, 0x7c, 0x8d, 0x3d, + 0x4b, 0x52, 0x77, 0x8f, 0x8e, 0x9e, 0x19, 0xbf, 0x03, 0x3f, 0xcf, 0xff, 0x2f, 0xe9, 0xe9, 0xe7, + 0x27, 0x8d, 0x04, 0x2c, 0x1c, 0xf8, 0x38, 0x40, 0xce, 0xd6, 0x86, 0x1f, 0x3e, 0x9a, 0x69, 0x46, + 0x21, 0x0d, 0x8f, 0x95, 0x29, 0xf2, 0x11, 0x41, 0x34, 0xda, 0x73, 0x68, 0xd8, 0x14, 0x7f, 0x3c, + 0xf5, 0x43, 0x2f, 0xe8, 0x5d, 0xe1, 0xb9, 0xb7, 0x59, 0xaa, 0x75, 0x09, 0xd8, 0xb8, 0xb9, 0x73, + 0xc1, 0x61, 0xff, 0x89, 0x1d, 0xb4, 0xdb, 0x0c, 0x23, 0xea, 0x6c, 0x84, 0x11, 0x71, 0xa9, 0xdd, + 0x53, 0x29, 0x4d, 0x1d, 0xa9, 0x8d, 0xb0, 0xf8, 0x32, 0x0b, 0x2f, 0xf1, 0xe8, 0x32, 0x0f, 0xa6, + 0x42, 0x58, 0x28, 0x3c, 0x90, 0x0b, 0x61, 0xa1, 0x70, 0xa7, 0xe9, 0xc7, 0x85, 0xc2, 0x83, 0x42, + 0xc8, 0xe2, 0x85, 0x42, 0xd2, 0x4e, 0x78, 0x48, 0x08, 0x49, 0xa1, 0xf0, 0x1c, 0xe0, 0x6b, 0x70, + 0xa2, 0x30, 0xa1, 0xc8, 0x89, 0x50, 0x3d, 0x8c, 0x3c, 0xa7, 0x1e, 0x50, 0xfb, 0x77, 0x95, 0xd2, + 0x54, 0x5f, 0xcd, 0x62, 0xc1, 0x1a, 0x8b, 0xd5, 0x78, 0x68, 0x31, 0xc8, 0x24, 0xd0, 0x94, 0xfc, + 0x3e, 0x97, 0x40, 0x53, 0xc2, 0xa7, 0x67, 0x48, 0x0e, 0x0b, 0x09, 0x0b, 0x6a, 0x92, 0x79, 0xf0, + 0x07, 0x37, 0xa1, 0x61, 0x10, 0x92, 0x30, 0x89, 0x9d, 0x78, 0x2f, 0xa6, 0x88, 0xc8, 0xca, 0x23, + 0x5c, 0x39, 0xde, 0xca, 0x59, 0xe5, 0x29, 0x2d, 0x83, 0x2a, 0x18, 0xe6, 0x2b, 0x23, 0xee, 0x6e, + 0x5a, 0x96, 0x7a, 0x98, 0x04, 0xd4, 0x06, 0x95, 0xd2, 0xd4, 0xc1, 0xda, 0x10, 0x8b, 0xdd, 0x75, + 0x77, 0x79, 0x45, 0x16, 0x59, 0x20, 0x15, 0x40, 0x43, 0xd0, 0x9b, 0x0b, 0xa0, 0x21, 0xe0, 0x5f, + 0x4b, 0x17, 0x1c, 0x15, 0x02, 0x16, 0x33, 0x04, 0xa4, 0x48, 0xd0, 0x27, 0x04, 0xc4, 0x10, 0x5c, + 0x06, 0x23, 0x04, 0x91, 0x30, 0xda, 0x73, 0x5c, 0xdf, 0x0f, 0xeb, 0xce, 0x86, 0x8b, 0x7d, 0xbe, + 0xfa, 0x7e, 0xb6, 0xfa, 0x1b, 0x87, 0x9e, 0x5c, 0xef, 0xb1, 0x4b, 0x35, 0x4b, 0xe4, 0x2c, 0xb0, + 0x94, 0x65, 0x17, 0xfb, 0x6c, 0xf5, 0x0f, 0xc0, 0x19, 0xbe, 0xfa, 0x7a, 0x18, 0x6c, 0xe0, 0x46, + 0x12, 0x21, 0xcf, 0x09, 0xd7, 0x63, 0x14, 0xed, 0xb8, 0x14, 0x87, 0x81, 0xe3, 0x85, 0xc4, 0xc5, + 0x81, 0x83, 0x3d, 0x7b, 0x80, 0xd7, 0xf1, 0x24, 0x4b, 0x5e, 0xcc, 0x73, 0xef, 0xb7, 0x52, 0x6f, + 0xf2, 0xcc, 0x15, 0x2f, 0x75, 0x84, 0xdd, 0x1d, 0x07, 0x73, 0x47, 0xd8, 0xd5, 0x91, 0xd7, 0xaf, + 0xab, 0xe3, 0x90, 0x70, 0x64, 0xc9, 0x5d, 0x1d, 0xc9, 0xbe, 0x1c, 0x2d, 0xe1, 0x48, 0xba, 0x3a, + 0x9e, 0x05, 0xc3, 0xbe, 0x1b, 0x53, 0xa7, 0xee, 0x23, 0x37, 0x72, 0x28, 0x26, 0x28, 0xa6, 0x2e, + 0x69, 0xda, 0x65, 0xd1, 0xb8, 0x2c, 0xb6, 0xc8, 0x42, 0x6b, 0x59, 0xc4, 0x82, 0x60, 0x8c, 0xd7, + 0x09, 0xed, 0x52, 0x14, 0x78, 0xc8, 0x73, 0x5c, 0x4a, 0x23, 0xbc, 0x9e, 0x50, 0x64, 0x0f, 0x57, + 0x4a, 0x53, 0x87, 0x05, 0xfb, 0x4b, 0x69, 0x74, 0x21, 0x0b, 0xb2, 0x91, 0x36, 0x7c, 0xb4, 0x8b, + 0xd7, 0x7d, 0xc4, 0x9b, 0xc3, 0x89, 0xf1, 0x63, 0x1c, 0x34, 0xec, 0x11, 0x2e, 0xb2, 0xb2, 0x18, + 0xeb, 0x8e, 0x55, 0x1e, 0x61, 0xd0, 0x27, 0x31, 0x6a, 0x0d, 0xc4, 0x55, 0xa2, 0x17, 0xec, 0x51, + 0x31, 0x54, 0x12, 0xa3, 0x6c, 0x24, 0x26, 0xbc, 0xcb, 0x83, 0xd6, 0x55, 0x70, 0x6c, 0x3d, 0xc2, + 0x5e, 0x03, 0x15, 0xee, 0x17, 0x63, 0x7c, 0xbf, 0x18, 0x13, 0x19, 0xe6, 0x8e, 0x71, 0x1e, 0x8c, + 0xa6, 0x62, 0xbd, 0x8d, 0x6d, 0xde, 0xc6, 0x65, 0x11, 0x55, 0x1b, 0x79, 0x0d, 0xfc, 0x31, 0x15, + 0x75, 0xfd, 0x34, 0xe3, 0xbc, 0xb2, 0xa7, 0x45, 0x7a, 0xe7, 0x8f, 0x73, 0x0e, 0x1c, 0x09, 0x9a, + 0x89, 0x13, 0x53, 0x97, 0xc6, 0xf6, 0x6c, 0xe5, 0xc0, 0x54, 0xef, 0xec, 0xf0, 0x8c, 0xb4, 0x83, + 0xdf, 0x6b, 0x26, 0xab, 0x2c, 0x56, 0x3b, 0x1c, 0xa4, 0xff, 0x3a, 0xf5, 0xf4, 0x34, 0x28, 0x17, + 0x64, 0x58, 0x67, 0x40, 0x3f, 0xb3, 0xc2, 0x1e, 0x0a, 0x28, 0xde, 0xc0, 0x28, 0xb2, 0x4b, 0x95, + 0x9e, 0xa9, 0xbe, 0x5a, 0x5f, 0xd0, 0x4c, 0x56, 0xf2, 0x3f, 0x5a, 0xe7, 0xc0, 0x50, 0x7e, 0x24, + 0x38, 0x4d, 0xb7, 0xbe, 0x8d, 0x68, 0x6c, 0x9f, 0x67, 0xeb, 0xce, 0x60, 0x1c, 0xc8, 0x8e, 0x84, + 0x07, 0x22, 0x6a, 0x4d, 0x83, 0x81, 0x96, 0x64, 0x7d, 0x8f, 0xa2, 0xd8, 0xbe, 0x20, 0x0b, 0xfa, + 0x32, 0xc1, 0x0d, 0x16, 0xb3, 0xaa, 0x60, 0x90, 0xa7, 0xd3, 0x90, 0xba, 0xbe, 0x28, 0xaf, 0x7d, + 0x51, 0xce, 0xef, 0x67, 0xe1, 0x35, 0x16, 0xe5, 0xf5, 0xcd, 0xa7, 0xe4, 0xd6, 0x29, 0xde, 0x49, + 0xbf, 0xa8, 0x0d, 0x8d, 0x29, 0x2d, 0xf0, 0xb0, 0x90, 0x5c, 0x04, 0x65, 0xe3, 0x60, 0x43, 0x9e, + 0x7d, 0x49, 0x16, 0x0d, 0x69, 0x47, 0x1b, 0xf2, 0xac, 0x2b, 0xe9, 0x59, 0x91, 0xae, 0xbb, 0x25, + 0xbc, 0x2c, 0x0b, 0xb9, 0x75, 0xba, 0xf8, 0x5c, 0xfa, 0x17, 0x30, 0x29, 0x8d, 0x88, 0x83, 0x74, + 0xb2, 0x8c, 0x27, 0xcf, 0x09, 0x13, 0x6a, 0x5f, 0x91, 0x2d, 0xc6, 0xf3, 0xb1, 0x57, 0xd2, 0x4c, + 0x86, 0x97, 0x77, 0x3f, 0xa1, 0xd6, 0x22, 0x98, 0x90, 0x8c, 0x0c, 0x9b, 0x39, 0xd9, 0x66, 0x2c, + 0xb7, 0x59, 0x50, 0x4d, 0xae, 0x49, 0x07, 0xbb, 0x53, 0x8f, 0x90, 0x4b, 0x11, 0xdf, 0x5a, 0x93, + 0x08, 0xd9, 0x57, 0x65, 0x87, 0xfc, 0x7c, 0x5f, 0xe4, 0x49, 0xcb, 0x22, 0xc7, 0xba, 0x0e, 0xc6, + 0xa5, 0x43, 0xd3, 0x0f, 0xc3, 0xed, 0xa4, 0x99, 0x1b, 0xfc, 0x49, 0x36, 0x18, 0xcd, 0xcf, 0xcf, + 0x3b, 0x3c, 0x2b, 0x73, 0xf8, 0x7b, 0xba, 0x3d, 0x9b, 0x47, 0x9c, 0xe6, 0xf6, 0x67, 0xd9, 0x8d, + 0xef, 0xd2, 0x0b, 0xda, 0x89, 0xa7, 0x1a, 0xff, 0x15, 0x9c, 0xd0, 0x1b, 0x34, 0xc7, 0x3b, 0xb5, + 0xbc, 0x26, 0x5b, 0x4e, 0xa8, 0xed, 0x9a, 0x92, 0x9e, 0x9a, 0xdd, 0x94, 0x8a, 0xed, 0x50, 0x97, + 0xed, 0x4c, 0x09, 0xc5, 0x3e, 0x7e, 0xcc, 0x31, 0xb4, 0xe7, 0x2b, 0xa5, 0xa9, 0x1e, 0x6e, 0x54, + 0x29, 0xd5, 0xec, 0xcc, 0x68, 0x8d, 0xe5, 0xfd, 0xad, 0x95, 0x66, 0xcd, 0x81, 0xd1, 0x96, 0x0b, + 0x0e, 0x62, 0x14, 0xd1, 0x74, 0xc3, 0xb8, 0x6e, 0xf4, 0x0d, 0x33, 0x58, 0xe1, 0x29, 0x62, 0xdf, + 0x10, 0xcd, 0x0d, 0x55, 0xde, 0x90, 0xde, 0xdc, 0xd0, 0xe4, 0x0d, 0xca, 0xbc, 0x6d, 0xe8, 0xbc, + 0x41, 0x9d, 0x37, 0xa8, 0xf0, 0xd6, 0xd0, 0x79, 0x83, 0x06, 0x6f, 0x50, 0xe5, 0x6d, 0xd3, 0x98, + 0x92, 0xc9, 0x1b, 0xd4, 0x79, 0xc3, 0x3a, 0x6f, 0xb0, 0x88, 0x37, 0x68, 0xf2, 0xb6, 0xa5, 0xd7, + 0x0d, 0x16, 0xf3, 0x06, 0xdb, 0xf3, 0xb6, 0xad, 0xf3, 0x06, 0x3b, 0xf1, 0x06, 0xdb, 0xf1, 0xe6, + 0xeb, 0xbc, 0xc1, 0xf6, 0xbc, 0xc1, 0x42, 0xde, 0x88, 0xce, 0x1b, 0x6c, 0xc7, 0x1b, 0x2c, 0xe6, + 0x2d, 0xd0, 0x79, 0x83, 0x6d, 0x79, 0x83, 0xdd, 0x79, 0x0b, 0x75, 0xde, 0xe0, 0x7e, 0x78, 0x83, + 0x9d, 0x78, 0x6b, 0xea, 0xbc, 0xc1, 0xce, 0xbc, 0xc1, 0x76, 0xbc, 0xfd, 0x5b, 0xe7, 0x0d, 0x76, + 0xe0, 0x0d, 0x16, 0xf0, 0x16, 0x19, 0x7d, 0xa3, 0xf3, 0x36, 0x0b, 0x86, 0xf2, 0x0b, 0x48, 0xce, + 0xdb, 0x2b, 0x25, 0xa5, 0xbb, 0xb3, 0x1b, 0x48, 0x06, 0xdc, 0x0c, 0x18, 0x68, 0x69, 0x04, 0x70, + 0xaf, 0x2a, 0x8a, 0xbe, 0x4c, 0x21, 0x88, 0x3b, 0x0b, 0x06, 0x79, 0xbe, 0x4c, 0xdc, 0x6b, 0x8a, + 0xa0, 0x9f, 0xc5, 0x25, 0xe4, 0xb2, 0x59, 0x29, 0xc8, 0xbd, 0x6e, 0xce, 0x4a, 0x66, 0x0e, 0x82, + 0xb2, 0x71, 0x95, 0x42, 0x9e, 0xfd, 0x86, 0xa2, 0x1a, 0xd2, 0x6e, 0x53, 0xc8, 0xb3, 0xe6, 0x00, + 0xbf, 0x62, 0x99, 0xd0, 0xbd, 0xa9, 0x28, 0xb9, 0xb9, 0x4e, 0xdd, 0x2d, 0x30, 0x29, 0x8d, 0x59, + 0x40, 0xdd, 0x5b, 0x8a, 0xc7, 0x78, 0x3e, 0xba, 0x81, 0xdd, 0x4d, 0x30, 0x21, 0x39, 0x19, 0x3e, + 0x6f, 0x2b, 0x3e, 0x63, 0xb9, 0x8f, 0xc6, 0xdd, 0xbc, 0x74, 0x9d, 0xd4, 0xb9, 0x7b, 0x47, 0xb1, + 0xc8, 0xaf, 0x95, 0x2a, 0x78, 0x0b, 0x80, 0xcf, 0xb1, 0x18, 0xbc, 0x77, 0x15, 0x87, 0xd1, 0x9d, + 0xec, 0x0e, 0xa7, 0x02, 0xf2, 0x8f, 0xf4, 0x47, 0x7e, 0x57, 0xf2, 0xde, 0x53, 0xec, 0xf8, 0x8f, + 0xfd, 0xce, 0xe8, 0xdd, 0x01, 0x27, 0xf4, 0x5e, 0xd5, 0xd1, 0x7b, 0x5f, 0xf1, 0x9c, 0x50, 0x3b, + 0x57, 0x65, 0x6f, 0x49, 0xaa, 0x78, 0x01, 0x7b, 0x1f, 0x94, 0x14, 0xf8, 0x32, 0x27, 0x03, 0xbe, + 0xab, 0x60, 0xb4, 0x65, 0xa3, 0xc0, 0xf7, 0xa1, 0xd9, 0x3f, 0x05, 0xf4, 0x11, 0x83, 0xbe, 0x8f, + 0xd5, 0x3e, 0x27, 0x26, 0x7d, 0x44, 0xa3, 0xef, 0x13, 0x95, 0x3e, 0xa2, 0xd3, 0x47, 0x74, 0xfa, + 0x3e, 0x55, 0xe9, 0x23, 0x06, 0x7d, 0xc4, 0xa0, 0xef, 0x33, 0x73, 0x56, 0x1a, 0x7d, 0xa4, 0x80, + 0xbe, 0xcf, 0x55, 0xfa, 0x48, 0x11, 0x7d, 0xa4, 0x90, 0xbe, 0xa7, 0x6a, 0xf5, 0x48, 0x31, 0x7d, + 0xa4, 0x23, 0x7d, 0x5f, 0xa8, 0xf4, 0x91, 0x4e, 0xf4, 0x91, 0x0e, 0xf4, 0x3d, 0x53, 0xe9, 0x23, + 0xed, 0xe9, 0x23, 0xed, 0xe8, 0xfb, 0x52, 0xa5, 0x8f, 0xb4, 0xa3, 0x8f, 0xb4, 0xa5, 0xef, 0x2b, + 0x95, 0x3e, 0xd2, 0x96, 0x3e, 0xb2, 0x2f, 0xfa, 0xbe, 0x56, 0xe9, 0x23, 0xfb, 0xa1, 0x8f, 0x74, + 0xa1, 0xef, 0x1b, 0x95, 0x3e, 0xd2, 0x99, 0x3e, 0xd2, 0x81, 0xbe, 0x6f, 0x55, 0xfa, 0x48, 0x07, + 0xfa, 0x48, 0x31, 0x7d, 0xdf, 0x99, 0xfd, 0xa3, 0xd3, 0x07, 0x41, 0x59, 0xba, 0x15, 0xe7, 0xfc, + 0xfd, 0xa8, 0xf6, 0x6c, 0xeb, 0x5a, 0x9c, 0x11, 0x38, 0x0b, 0x86, 0x64, 0x9d, 0x60, 0xf0, 0x27, + 0x95, 0x8f, 0x96, 0x4a, 0x50, 0x78, 0x01, 0x58, 0xa9, 0x46, 0xe6, 0xf0, 0x67, 0x45, 0x34, 0x28, + 0x32, 0x24, 0x12, 0x5b, 0x33, 0x54, 0x58, 0xfc, 0xa5, 0x68, 0x86, 0x32, 0x8d, 0x73, 0x60, 0xa4, + 0xe0, 0xbe, 0x8f, 0x3c, 0xfb, 0x57, 0xb5, 0x2a, 0xc6, 0x95, 0x1f, 0x79, 0xd6, 0x35, 0x90, 0xbe, + 0x04, 0x98, 0x4c, 0xfe, 0xa7, 0x47, 0x69, 0x62, 0x91, 0xa6, 0x53, 0x79, 0x07, 0x9c, 0x50, 0xc6, + 0x2e, 0xe0, 0xf2, 0xbf, 0x8a, 0xcf, 0x84, 0x34, 0x0b, 0x83, 0xcc, 0x5b, 0x60, 0x52, 0x71, 0x33, + 0xbc, 0x9e, 0x28, 0x5e, 0xe3, 0x92, 0xd7, 0x82, 0xfe, 0xc3, 0x56, 0x7e, 0x03, 0xd1, 0xf9, 0xfc, + 0x9f, 0x62, 0x23, 0xbd, 0x85, 0xa8, 0x84, 0x2e, 0x81, 0x74, 0xb6, 0xc5, 0x8c, 0xfe, 0x5f, 0x71, + 0xb1, 0x45, 0x6a, 0x01, 0xa5, 0xff, 0xcc, 0x5f, 0x47, 0xba, 0x72, 0xfa, 0x82, 0x62, 0x99, 0xbe, + 0x92, 0x74, 0x26, 0xf5, 0x01, 0x38, 0x69, 0xf6, 0xb5, 0xce, 0xea, 0x8b, 0x8a, 0xef, 0xa4, 0xde, + 0xe5, 0x2a, 0xad, 0x2b, 0xca, 0x57, 0x28, 0xe0, 0xf5, 0xa5, 0x1e, 0x99, 0xd7, 0x63, 0x2d, 0x37, + 0x83, 0xd8, 0x79, 0x60, 0xcb, 0x56, 0x0a, 0xb3, 0x2f, 0x17, 0xf5, 0x97, 0x46, 0xed, 0xdc, 0x43, + 0x30, 0x2a, 0xbf, 0xef, 0x8b, 0xc7, 0x20, 0x07, 0xed, 0x52, 0x6b, 0x6c, 0xe6, 0x76, 0x12, 0xe0, + 0x26, 0x8a, 0xee, 0x21, 0xfa, 0x28, 0x8c, 0xb6, 0xe3, 0x55, 0x14, 0xc4, 0x61, 0x14, 0xf3, 0xa7, + 0xe3, 0xde, 0xd9, 0xa3, 0xf2, 0x4b, 0x51, 0xad, 0x8c, 0x5b, 0xff, 0xe1, 0x2f, 0x42, 0x4b, 0xbb, + 0xf4, 0xc6, 0xbf, 0x3e, 0x7a, 0x7e, 0xbc, 0xf4, 0xec, 0xf9, 0xf1, 0xd2, 0xf7, 0xcf, 0x8f, 0x97, + 0x1e, 0xd6, 0x1a, 0x98, 0xce, 0x6c, 0x09, 0xcb, 0x99, 0x00, 0xd1, 0x2a, 0xae, 0xa3, 0x75, 0x14, + 0x35, 0xaa, 0x9b, 0xc8, 0xf5, 0xe9, 0xe6, 0x7a, 0x48, 0xa7, 0x71, 0xd0, 0x40, 0x31, 0x9d, 0xde, + 0xa2, 0x78, 0x3a, 0x70, 0x59, 0xbb, 0x55, 0x9b, 0xdb, 0x8d, 0xea, 0x16, 0xc5, 0x55, 0xd7, 0x73, + 0x9b, 0x14, 0x45, 0x71, 0xd5, 0xd9, 0x4a, 0x82, 0x30, 0xae, 0xc6, 0xf5, 0x4d, 0x44, 0xdc, 0xdf, + 0x02, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x4a, 0x76, 0xe2, 0x9c, 0x18, 0x00, 0x00, +} + +func (m *InlineJflow) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InlineJflow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InlineJflow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NpuStats) > 0 { + for iNdEx := len(m.NpuStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NpuStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintInlineJflow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x92 + } + } + if m.BridgeConfiguredObservationDomainId != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeConfiguredObservationDomainId)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc8 + } + if m.BridgeMaxFlowsCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeMaxFlowsCount)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if m.BridgeFlowsExportFormat != nil { + i -= len(*m.BridgeFlowsExportFormat) + copy(dAtA[i:], *m.BridgeFlowsExportFormat) + i = encodeVarintInlineJflow(dAtA, i, uint64(len(*m.BridgeFlowsExportFormat))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + if m.UseExtendedFlowMemory != nil { + i-- + if *m.UseExtendedFlowMemory { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.FlexibleFlowSizing != nil { + i-- + if *m.FlexibleFlowSizing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.Ipv6ExtendedAttribute != nil { + i-- + if *m.Ipv6ExtendedAttribute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.LastClearTimestamp != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.LastClearTimestamp)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.MplsConfiguredObservationDomainId != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsConfiguredObservationDomainId)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.VplsConfiguredObservationDomainId != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsConfiguredObservationDomainId)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.Ipv6ConfiguredObservationDomainId != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6ConfiguredObservationDomainId)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.Ipv4ConfiguredObservationDomainId != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4ConfiguredObservationDomainId)) + i-- + dAtA[i] = 0x78 + } + if m.MemoryAllocFailCnt != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MemoryAllocFailCnt)) + i-- + dAtA[i] = 0x70 + } + if m.MplsMaxFlowsCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsMaxFlowsCount)) + i-- + dAtA[i] = 0x68 + } + if m.VplsMaxFlowsCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsMaxFlowsCount)) + i-- + dAtA[i] = 0x60 + } + if m.Ipv6MaxFlowsCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6MaxFlowsCount)) + i-- + dAtA[i] = 0x58 + } + if m.Ipv4MaxFlowsCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4MaxFlowsCount)) + i-- + dAtA[i] = 0x50 + } + if m.AutonomousSystemRecordCnt != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.AutonomousSystemRecordCnt)) + i-- + dAtA[i] = 0x48 + } + if m.MplsRouteRecordCnt != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsRouteRecordCnt)) + i-- + dAtA[i] = 0x40 + } + if m.Ipv6RouteRecordCnt != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6RouteRecordCnt)) + i-- + dAtA[i] = 0x38 + } + if m.Ipv4RouteRecordCnt != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4RouteRecordCnt)) + i-- + dAtA[i] = 0x30 + } + if m.MplsFlowsExportFormat != nil { + i -= len(*m.MplsFlowsExportFormat) + copy(dAtA[i:], *m.MplsFlowsExportFormat) + i = encodeVarintInlineJflow(dAtA, i, uint64(len(*m.MplsFlowsExportFormat))) + i-- + dAtA[i] = 0x2a + } + if m.VplsFlowsExportFormat != nil { + i -= len(*m.VplsFlowsExportFormat) + copy(dAtA[i:], *m.VplsFlowsExportFormat) + i = encodeVarintInlineJflow(dAtA, i, uint64(len(*m.VplsFlowsExportFormat))) + i-- + dAtA[i] = 0x22 + } + if m.Ipv6FlowsExportFormat != nil { + i -= len(*m.Ipv6FlowsExportFormat) + copy(dAtA[i:], *m.Ipv6FlowsExportFormat) + i = encodeVarintInlineJflow(dAtA, i, uint64(len(*m.Ipv6FlowsExportFormat))) + i-- + dAtA[i] = 0x1a + } + if m.Ipv4FlowsExportFormat != nil { + i -= len(*m.Ipv4FlowsExportFormat) + copy(dAtA[i:], *m.Ipv4FlowsExportFormat) + i = encodeVarintInlineJflow(dAtA, i, uint64(len(*m.Ipv4FlowsExportFormat))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *InlineJflowNpuStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InlineJflowNpuStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InlineJflowNpuStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BridgeFlowInsertCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowInsertCount)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xc0 + } + if m.BridgeFlowTableUtilization != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.BridgeFlowTableUtilization)))) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xbd + } + if m.BridgeFlowPacketExportFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowPacketExportFailure)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xb0 + } + if m.BridgeAutonomousSystemLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeAutonomousSystemLookupFailure)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xa8 + } + if m.BridgeRouteLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeRouteLookupFailure)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0xa0 + } + if m.BridgeFlowCreateFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowCreateFailure)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x98 + } + if m.BridgeFlowsActiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowsActiveTimedOut)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x90 + } + if m.BridgeFlowsInactiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowsInactiveTimedOut)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x88 + } + if m.BridgePacketsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgePacketsExported)) + i-- + dAtA[i] = 0x10 + i-- + dAtA[i] = 0x80 + } + if m.BridgeFlowsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowsExported)) + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xf8 + } + if m.BridgeActiveFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeActiveFlows)) + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xf0 + } + if m.BridgeTotalFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeTotalFlows)) + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xe8 + } + if m.BridgeFlowBytes != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowBytes)) + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xe0 + } + if m.BridgeFlowPackets != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.BridgeFlowPackets)) + i-- + dAtA[i] = 0xf + i-- + dAtA[i] = 0xd8 + } + if m.MplsFlowInsertCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowInsertCount)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xb0 + } + if m.MplsFlowTableUtilization != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.MplsFlowTableUtilization)))) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xad + } + if m.MplsFlowPacketExportFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowPacketExportFailure)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xa0 + } + if m.MplsAutonomousSystemLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsAutonomousSystemLookupFailure)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x98 + } + if m.MplsRouteLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsRouteLookupFailure)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x90 + } + if m.MplsFlowCreateFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowCreateFailure)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x88 + } + if m.MplsFlowsActiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowsActiveTimedOut)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x80 + } + if m.MplsFlowsInactiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowsInactiveTimedOut)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xf8 + } + if m.MplsPacketsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsPacketsExported)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xf0 + } + if m.MplsFlowsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowsExported)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xe8 + } + if m.MplsActiveFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsActiveFlows)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xe0 + } + if m.MplsTotalFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsTotalFlows)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd8 + } + if m.MplsFlowBytes != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowBytes)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd0 + } + if m.MplsFlowPackets != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.MplsFlowPackets)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc8 + } + if m.VplsFlowInsertCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowInsertCount)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xa0 + } + if m.VplsFlowTableUtilization != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.VplsFlowTableUtilization)))) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9d + } + if m.VplsFlowPacketExportFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowPacketExportFailure)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x90 + } + if m.VplsAutonomousSystemLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsAutonomousSystemLookupFailure)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x88 + } + if m.VplsRouteLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsRouteLookupFailure)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x80 + } + if m.VplsFlowCreateFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowCreateFailure)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf8 + } + if m.VplsFlowsActiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowsActiveTimedOut)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf0 + } + if m.VplsFlowsInactiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowsInactiveTimedOut)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe8 + } + if m.VplsPacketsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsPacketsExported)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe0 + } + if m.VplsFlowsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowsExported)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd8 + } + if m.VplsActiveFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsActiveFlows)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd0 + } + if m.VplsTotalFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsTotalFlows)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc8 + } + if m.VplsFlowBytes != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowBytes)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc0 + } + if m.VplsFlowPackets != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.VplsFlowPackets)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xb8 + } + if m.Ipv6FlowInsertCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowInsertCount)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x90 + } + if m.Ipv6FlowTableUtilization != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.Ipv6FlowTableUtilization)))) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x8d + } + if m.Ipv6FlowPacketExportFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowPacketExportFailure)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x80 + } + if m.Ipv6AutonomousSystemLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6AutonomousSystemLookupFailure)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf8 + } + if m.Ipv6RouteLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6RouteLookupFailure)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf0 + } + if m.Ipv6FlowCreateFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowCreateFailure)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe8 + } + if m.Ipv6FlowsActiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowsActiveTimedOut)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe0 + } + if m.Ipv6FlowsInactiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowsInactiveTimedOut)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd8 + } + if m.Ipv6PacketsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6PacketsExported)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd0 + } + if m.Ipv6FlowsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowsExported)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 + } + if m.Ipv6ActiveFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6ActiveFlows)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 + } + if m.Ipv6TotalFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6TotalFlows)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 + } + if m.Ipv6FlowBytes != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowBytes)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 + } + if m.Ipv6FlowPackets != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv6FlowPackets)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if m.Ipv4FlowInsertCount != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowInsertCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.Ipv4FlowTableUtilization != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.Ipv4FlowTableUtilization)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfd + } + if m.Ipv4FlowPacketExportFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowPacketExportFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.Ipv4AutonomousSystemLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4AutonomousSystemLookupFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.Ipv4RouteLookupFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4RouteLookupFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.Ipv4FlowCreateFailure != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowCreateFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.Ipv4FlowsActiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowsActiveTimedOut)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.Ipv4FlowsInactiveTimedOut != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowsInactiveTimedOut)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Ipv4PacketsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4PacketsExported)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Ipv4FlowsExported != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowsExported)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Ipv4ActiveFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4ActiveFlows)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Ipv4TotalFlows != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4TotalFlows)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Ipv4FlowBytes != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Ipv4FlowPackets != nil { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.Ipv4FlowPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + if m.NpuIdentifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("npu_identifier") + } else { + i = encodeVarintInlineJflow(dAtA, i, uint64(*m.NpuIdentifier)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintInlineJflow(dAtA []byte, offset int, v uint64) int { + offset -= sovInlineJflow(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InlineJflow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv4FlowsExportFormat != nil { + l = len(*m.Ipv4FlowsExportFormat) + n += 1 + l + sovInlineJflow(uint64(l)) + } + if m.Ipv6FlowsExportFormat != nil { + l = len(*m.Ipv6FlowsExportFormat) + n += 1 + l + sovInlineJflow(uint64(l)) + } + if m.VplsFlowsExportFormat != nil { + l = len(*m.VplsFlowsExportFormat) + n += 1 + l + sovInlineJflow(uint64(l)) + } + if m.MplsFlowsExportFormat != nil { + l = len(*m.MplsFlowsExportFormat) + n += 1 + l + sovInlineJflow(uint64(l)) + } + if m.Ipv4RouteRecordCnt != nil { + n += 1 + sovInlineJflow(uint64(*m.Ipv4RouteRecordCnt)) + } + if m.Ipv6RouteRecordCnt != nil { + n += 1 + sovInlineJflow(uint64(*m.Ipv6RouteRecordCnt)) + } + if m.MplsRouteRecordCnt != nil { + n += 1 + sovInlineJflow(uint64(*m.MplsRouteRecordCnt)) + } + if m.AutonomousSystemRecordCnt != nil { + n += 1 + sovInlineJflow(uint64(*m.AutonomousSystemRecordCnt)) + } + if m.Ipv4MaxFlowsCount != nil { + n += 1 + sovInlineJflow(uint64(*m.Ipv4MaxFlowsCount)) + } + if m.Ipv6MaxFlowsCount != nil { + n += 1 + sovInlineJflow(uint64(*m.Ipv6MaxFlowsCount)) + } + if m.VplsMaxFlowsCount != nil { + n += 1 + sovInlineJflow(uint64(*m.VplsMaxFlowsCount)) + } + if m.MplsMaxFlowsCount != nil { + n += 1 + sovInlineJflow(uint64(*m.MplsMaxFlowsCount)) + } + if m.MemoryAllocFailCnt != nil { + n += 1 + sovInlineJflow(uint64(*m.MemoryAllocFailCnt)) + } + if m.Ipv4ConfiguredObservationDomainId != nil { + n += 1 + sovInlineJflow(uint64(*m.Ipv4ConfiguredObservationDomainId)) + } + if m.Ipv6ConfiguredObservationDomainId != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6ConfiguredObservationDomainId)) + } + if m.VplsConfiguredObservationDomainId != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsConfiguredObservationDomainId)) + } + if m.MplsConfiguredObservationDomainId != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsConfiguredObservationDomainId)) + } + if m.LastClearTimestamp != nil { + n += 2 + sovInlineJflow(uint64(*m.LastClearTimestamp)) + } + if m.Ipv6ExtendedAttribute != nil { + n += 3 + } + if m.FlexibleFlowSizing != nil { + n += 3 + } + if m.UseExtendedFlowMemory != nil { + n += 3 + } + if m.BridgeFlowsExportFormat != nil { + l = len(*m.BridgeFlowsExportFormat) + n += 2 + l + sovInlineJflow(uint64(l)) + } + if m.BridgeMaxFlowsCount != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeMaxFlowsCount)) + } + if m.BridgeConfiguredObservationDomainId != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeConfiguredObservationDomainId)) + } + if len(m.NpuStats) > 0 { + for _, e := range m.NpuStats { + l = e.Size() + n += 2 + l + sovInlineJflow(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InlineJflowNpuStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NpuIdentifier != nil { + n += 1 + sovInlineJflow(uint64(*m.NpuIdentifier)) + } + if m.Ipv4FlowPackets != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowPackets)) + } + if m.Ipv4FlowBytes != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowBytes)) + } + if m.Ipv4TotalFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4TotalFlows)) + } + if m.Ipv4ActiveFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4ActiveFlows)) + } + if m.Ipv4FlowsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowsExported)) + } + if m.Ipv4PacketsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4PacketsExported)) + } + if m.Ipv4FlowsInactiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowsInactiveTimedOut)) + } + if m.Ipv4FlowsActiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowsActiveTimedOut)) + } + if m.Ipv4FlowCreateFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowCreateFailure)) + } + if m.Ipv4RouteLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4RouteLookupFailure)) + } + if m.Ipv4AutonomousSystemLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4AutonomousSystemLookupFailure)) + } + if m.Ipv4FlowPacketExportFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowPacketExportFailure)) + } + if m.Ipv4FlowTableUtilization != nil { + n += 6 + } + if m.Ipv4FlowInsertCount != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv4FlowInsertCount)) + } + if m.Ipv6FlowPackets != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowPackets)) + } + if m.Ipv6FlowBytes != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowBytes)) + } + if m.Ipv6TotalFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6TotalFlows)) + } + if m.Ipv6ActiveFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6ActiveFlows)) + } + if m.Ipv6FlowsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowsExported)) + } + if m.Ipv6PacketsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6PacketsExported)) + } + if m.Ipv6FlowsInactiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowsInactiveTimedOut)) + } + if m.Ipv6FlowsActiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowsActiveTimedOut)) + } + if m.Ipv6FlowCreateFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowCreateFailure)) + } + if m.Ipv6RouteLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6RouteLookupFailure)) + } + if m.Ipv6AutonomousSystemLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6AutonomousSystemLookupFailure)) + } + if m.Ipv6FlowPacketExportFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowPacketExportFailure)) + } + if m.Ipv6FlowTableUtilization != nil { + n += 6 + } + if m.Ipv6FlowInsertCount != nil { + n += 2 + sovInlineJflow(uint64(*m.Ipv6FlowInsertCount)) + } + if m.VplsFlowPackets != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowPackets)) + } + if m.VplsFlowBytes != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowBytes)) + } + if m.VplsTotalFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsTotalFlows)) + } + if m.VplsActiveFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsActiveFlows)) + } + if m.VplsFlowsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowsExported)) + } + if m.VplsPacketsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsPacketsExported)) + } + if m.VplsFlowsInactiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowsInactiveTimedOut)) + } + if m.VplsFlowsActiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowsActiveTimedOut)) + } + if m.VplsFlowCreateFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowCreateFailure)) + } + if m.VplsRouteLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsRouteLookupFailure)) + } + if m.VplsAutonomousSystemLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsAutonomousSystemLookupFailure)) + } + if m.VplsFlowPacketExportFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowPacketExportFailure)) + } + if m.VplsFlowTableUtilization != nil { + n += 6 + } + if m.VplsFlowInsertCount != nil { + n += 2 + sovInlineJflow(uint64(*m.VplsFlowInsertCount)) + } + if m.MplsFlowPackets != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowPackets)) + } + if m.MplsFlowBytes != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowBytes)) + } + if m.MplsTotalFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsTotalFlows)) + } + if m.MplsActiveFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsActiveFlows)) + } + if m.MplsFlowsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowsExported)) + } + if m.MplsPacketsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsPacketsExported)) + } + if m.MplsFlowsInactiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowsInactiveTimedOut)) + } + if m.MplsFlowsActiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowsActiveTimedOut)) + } + if m.MplsFlowCreateFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowCreateFailure)) + } + if m.MplsRouteLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsRouteLookupFailure)) + } + if m.MplsAutonomousSystemLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsAutonomousSystemLookupFailure)) + } + if m.MplsFlowPacketExportFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowPacketExportFailure)) + } + if m.MplsFlowTableUtilization != nil { + n += 6 + } + if m.MplsFlowInsertCount != nil { + n += 2 + sovInlineJflow(uint64(*m.MplsFlowInsertCount)) + } + if m.BridgeFlowPackets != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowPackets)) + } + if m.BridgeFlowBytes != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowBytes)) + } + if m.BridgeTotalFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeTotalFlows)) + } + if m.BridgeActiveFlows != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeActiveFlows)) + } + if m.BridgeFlowsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowsExported)) + } + if m.BridgePacketsExported != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgePacketsExported)) + } + if m.BridgeFlowsInactiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowsInactiveTimedOut)) + } + if m.BridgeFlowsActiveTimedOut != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowsActiveTimedOut)) + } + if m.BridgeFlowCreateFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowCreateFailure)) + } + if m.BridgeRouteLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeRouteLookupFailure)) + } + if m.BridgeAutonomousSystemLookupFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeAutonomousSystemLookupFailure)) + } + if m.BridgeFlowPacketExportFailure != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowPacketExportFailure)) + } + if m.BridgeFlowTableUtilization != nil { + n += 6 + } + if m.BridgeFlowInsertCount != nil { + n += 2 + sovInlineJflow(uint64(*m.BridgeFlowInsertCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovInlineJflow(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozInlineJflow(x uint64) (n int) { + return sovInlineJflow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InlineJflow) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InlineJflow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InlineJflow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowsExportFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthInlineJflow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthInlineJflow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ipv4FlowsExportFormat = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowsExportFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthInlineJflow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthInlineJflow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ipv6FlowsExportFormat = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowsExportFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthInlineJflow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthInlineJflow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VplsFlowsExportFormat = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowsExportFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthInlineJflow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthInlineJflow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MplsFlowsExportFormat = &s + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4RouteRecordCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4RouteRecordCnt = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6RouteRecordCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6RouteRecordCnt = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsRouteRecordCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsRouteRecordCnt = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutonomousSystemRecordCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutonomousSystemRecordCnt = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4MaxFlowsCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4MaxFlowsCount = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6MaxFlowsCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6MaxFlowsCount = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsMaxFlowsCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsMaxFlowsCount = &v + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsMaxFlowsCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsMaxFlowsCount = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryAllocFailCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemoryAllocFailCnt = &v + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4ConfiguredObservationDomainId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4ConfiguredObservationDomainId = &v + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6ConfiguredObservationDomainId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6ConfiguredObservationDomainId = &v + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsConfiguredObservationDomainId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsConfiguredObservationDomainId = &v + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsConfiguredObservationDomainId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsConfiguredObservationDomainId = &v + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastClearTimestamp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastClearTimestamp = &v + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6ExtendedAttribute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Ipv6ExtendedAttribute = &b + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlexibleFlowSizing", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.FlexibleFlowSizing = &b + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseExtendedFlowMemory", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.UseExtendedFlowMemory = &b + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowsExportFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthInlineJflow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthInlineJflow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.BridgeFlowsExportFormat = &s + iNdEx = postIndex + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeMaxFlowsCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeMaxFlowsCount = &v + case 25: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeConfiguredObservationDomainId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeConfiguredObservationDomainId = &v + case 50: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NpuStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthInlineJflow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthInlineJflow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NpuStats = append(m.NpuStats, &InlineJflowNpuStats{}) + if err := m.NpuStats[len(m.NpuStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipInlineJflow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthInlineJflow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthInlineJflow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InlineJflowNpuStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InlineJflowNpuStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InlineJflowNpuStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NpuIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NpuIdentifier = &v + hasFields[0] |= uint64(0x00000001) + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowPackets = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowBytes = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4TotalFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4TotalFlows = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4ActiveFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4ActiveFlows = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowsExported = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4PacketsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4PacketsExported = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowsInactiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowsInactiveTimedOut = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowsActiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowsActiveTimedOut = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowCreateFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowCreateFailure = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4RouteLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4RouteLookupFailure = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4AutonomousSystemLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4AutonomousSystemLookupFailure = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowPacketExportFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowPacketExportFailure = &v + case 63: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowTableUtilization", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.Ipv4FlowTableUtilization = &v2 + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4FlowInsertCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv4FlowInsertCount = &v + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowPackets = &v + case 102: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowBytes = &v + case 103: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6TotalFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6TotalFlows = &v + case 104: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6ActiveFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6ActiveFlows = &v + case 105: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowsExported = &v + case 106: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6PacketsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6PacketsExported = &v + case 107: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowsInactiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowsInactiveTimedOut = &v + case 108: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowsActiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowsActiveTimedOut = &v + case 109: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowCreateFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowCreateFailure = &v + case 110: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6RouteLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6RouteLookupFailure = &v + case 111: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6AutonomousSystemLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6AutonomousSystemLookupFailure = &v + case 112: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowPacketExportFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowPacketExportFailure = &v + case 113: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowTableUtilization", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.Ipv6FlowTableUtilization = &v2 + case 114: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6FlowInsertCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ipv6FlowInsertCount = &v + case 151: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowPackets = &v + case 152: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowBytes = &v + case 153: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsTotalFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsTotalFlows = &v + case 154: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsActiveFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsActiveFlows = &v + case 155: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowsExported = &v + case 156: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsPacketsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsPacketsExported = &v + case 157: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowsInactiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowsInactiveTimedOut = &v + case 158: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowsActiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowsActiveTimedOut = &v + case 159: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowCreateFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowCreateFailure = &v + case 160: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsRouteLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsRouteLookupFailure = &v + case 161: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsAutonomousSystemLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsAutonomousSystemLookupFailure = &v + case 162: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowPacketExportFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowPacketExportFailure = &v + case 163: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowTableUtilization", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.VplsFlowTableUtilization = &v2 + case 164: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsFlowInsertCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsFlowInsertCount = &v + case 201: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowPackets = &v + case 202: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowBytes = &v + case 203: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsTotalFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsTotalFlows = &v + case 204: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsActiveFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsActiveFlows = &v + case 205: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowsExported = &v + case 206: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsPacketsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsPacketsExported = &v + case 207: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowsInactiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowsInactiveTimedOut = &v + case 208: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowsActiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowsActiveTimedOut = &v + case 209: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowCreateFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowCreateFailure = &v + case 210: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsRouteLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsRouteLookupFailure = &v + case 211: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsAutonomousSystemLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsAutonomousSystemLookupFailure = &v + case 212: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowPacketExportFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowPacketExportFailure = &v + case 213: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowTableUtilization", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.MplsFlowTableUtilization = &v2 + case 214: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsFlowInsertCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MplsFlowInsertCount = &v + case 251: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowPackets = &v + case 252: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowBytes = &v + case 253: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeTotalFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeTotalFlows = &v + case 254: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeActiveFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeActiveFlows = &v + case 255: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowsExported = &v + case 256: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgePacketsExported", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgePacketsExported = &v + case 257: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowsInactiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowsInactiveTimedOut = &v + case 258: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowsActiveTimedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowsActiveTimedOut = &v + case 259: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowCreateFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowCreateFailure = &v + case 260: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeRouteLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeRouteLookupFailure = &v + case 261: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeAutonomousSystemLookupFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeAutonomousSystemLookupFailure = &v + case 262: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowPacketExportFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowPacketExportFailure = &v + case 263: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowTableUtilization", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.BridgeFlowTableUtilization = &v2 + case 264: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BridgeFlowInsertCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BridgeFlowInsertCount = &v + default: + iNdEx = preIndex + skippy, err := skipInlineJflow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthInlineJflow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthInlineJflow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("npu_identifier") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipInlineJflow(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowInlineJflow + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthInlineJflow + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupInlineJflow + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthInlineJflow + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthInlineJflow = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowInlineJflow = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupInlineJflow = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/inline_jflow.proto b/schema/inline_jflow.proto new file mode 100755 index 0000000..0e63634 --- /dev/null +++ b/schema/inline_jflow.proto @@ -0,0 +1,220 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// +// Manikandan Poornachary, Mar 2016 +// +// Inline Jflow service creates/updates flow, construct flow records +// either in v9 or v10 format, and exports to collector. +// This service maintains set of counters which are FPC Slot level, +// NPU level and family level. This file provides a template for the +// GBP stream format of these counters. +// +// Version 1.0 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 9 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional InlineJflow inline_jflow_stats_ext = 9; +} + +message InlineJflow { + + // Version of exported flow records (v10 or v9) + optional string ipv4_flows_export_format = 2; + optional string ipv6_flows_export_format = 3; + optional string vpls_flows_export_format = 4; + optional string mpls_flows_export_format = 5; + + // Total number of IPv4/IPv6/MPLS routes + optional uint32 ipv4_route_record_cnt = 6; + optional uint32 ipv6_route_record_cnt = 7; + optional uint32 mpls_route_record_cnt = 8; + + // Total number of Autonomous System information + optional uint32 autonomous_system_record_cnt = 9; + + // Maximum number of flows supported. + optional uint64 ipv4_max_flows_count = 10; + optional uint64 ipv6_max_flows_count = 11; + optional uint64 vpls_max_flows_count = 12; + optional uint64 mpls_max_flows_count = 13; + + // Total number of heap memory allocation failure + optional uint32 memory_alloc_fail_cnt = 14 [(telemetry_options).is_counter = true]; + + // Value of Configured Observation Domain ID + optional uint32 ipv4_configured_observation_domain_id = 15; + optional uint32 ipv6_configured_observation_domain_id = 16; + optional uint32 vpls_configured_observation_domain_id = 17; + optional uint32 mpls_configured_observation_domain_id = 18; + + // Timestamp of last clear command + optional uint32 last_clear_timestamp = 19; + + // Status of ipv6_extended_attrib knob + optional bool ipv6_extended_attribute = 20; + + // Status of flex_flow_sizing knob + optional bool flexible_flow_sizing = 21; + + // Status of use_extended_flow_memory knob + optional bool use_extended_flow_memory = 22; + + // Version of Bridge exported flow records (v10 or v9) + optional string bridge_flows_export_format = 23; + + // Maximum number of flows supported for Bridge. + optional uint64 bridge_max_flows_count = 24; + + // Value of Configured Observation Domain ID for Bridge + optional uint32 bridge_configured_observation_domain_id = 25; + + // NPU level statistics + repeated InlineJflowNpuStats npu_stats = 50; +} + +message InlineJflowNpuStats { + + // All NPUs in the system are globally identified + // + // 8 4 4 bits + required uint32 npu_identifier = 1; + + // IPv4 NPU Stats + // Total number of IPv4 packets and bytes sampled + optional uint64 ipv4_flow_packets = 51 [(telemetry_options).is_counter = true]; + optional uint64 ipv4_flow_bytes = 52 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flows created + optional uint64 ipv4_total_flows = 53 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flows that are active currently + optional uint64 ipv4_active_flows = 54 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flows exported to collector + optional uint64 ipv4_flows_exported = 55 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flow packets exported to collector + optional uint64 ipv4_packets_exported = 56 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flows exported due to idle time out + optional uint64 ipv4_flows_inactive_timed_out = 57 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flows exported due to active time out + optional uint64 ipv4_flows_active_timed_out = 58 [(telemetry_options).is_counter = true]; + + // Total number of IPv4 flow creation failure (flow insert faiure) + optional uint64 ipv4_flow_create_failure = 59 [(telemetry_options).is_counter = true]; + + // Total number of route, autonomous system lookup failure + optional uint64 ipv4_route_lookup_failure = 60 [(telemetry_options).is_counter = true]; + optional uint64 ipv4_autonomous_system_lookup_failure = 61 [(telemetry_options).is_counter = true]; + + // Total number of exporting flow record to collector failed + optional uint64 ipv4_flow_packet_export_failure = 62 [(telemetry_options).is_counter = true]; + + // IPv4 flow table utlization in percentage + optional float ipv4_flow_table_utilization = 63 [(telemetry_options).is_gauge = true]; + + // Absolute number of flow inserted + optional uint64 ipv4_flow_insert_count = 64 [(telemetry_options).is_counter = true]; + + // IPv6 NPU Stats + optional uint64 ipv6_flow_packets = 101 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_flow_bytes = 102 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_total_flows = 103 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_active_flows = 104 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_flows_exported = 105 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_packets_exported = 106 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_flows_inactive_timed_out = 107 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_flows_active_timed_out = 108 [(telemetry_options).is_counter = true]; + + optional uint64 ipv6_flow_create_failure = 109 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_route_lookup_failure = 110 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_autonomous_system_lookup_failure = 111 [(telemetry_options).is_counter = true]; + optional uint64 ipv6_flow_packet_export_failure = 112 [(telemetry_options).is_counter = true]; + + optional float ipv6_flow_table_utilization = 113 [(telemetry_options).is_gauge = true]; + optional uint64 ipv6_flow_insert_count = 114 [(telemetry_options).is_counter = true]; + + // VPLS NPU Stats + optional uint64 vpls_flow_packets = 151 [(telemetry_options).is_counter = true]; + optional uint64 vpls_flow_bytes = 152 [(telemetry_options).is_counter = true]; + optional uint64 vpls_total_flows = 153 [(telemetry_options).is_counter = true]; + optional uint64 vpls_active_flows = 154 [(telemetry_options).is_counter = true]; + optional uint64 vpls_flows_exported = 155 [(telemetry_options).is_counter = true]; + optional uint64 vpls_packets_exported = 156 [(telemetry_options).is_counter = true]; + optional uint64 vpls_flows_inactive_timed_out = 157 [(telemetry_options).is_counter = true]; + optional uint64 vpls_flows_active_timed_out = 158 [(telemetry_options).is_counter = true]; + + optional uint64 vpls_flow_create_failure = 159 [(telemetry_options).is_counter = true]; + optional uint64 vpls_route_lookup_failure = 160 [(telemetry_options).is_counter = true]; + optional uint64 vpls_autonomous_system_lookup_failure = 161 [(telemetry_options).is_counter = true]; + optional uint64 vpls_flow_packet_export_failure = 162 [(telemetry_options).is_counter = true]; + + optional float vpls_flow_table_utilization = 163 [(telemetry_options).is_gauge = true]; + optional uint64 vpls_flow_insert_count = 164 [(telemetry_options).is_counter = true]; + + // MPLS NPU Stats + optional uint64 mpls_flow_packets = 201 [(telemetry_options).is_counter = true]; + optional uint64 mpls_flow_bytes = 202 [(telemetry_options).is_counter = true]; + optional uint64 mpls_total_flows = 203 [(telemetry_options).is_counter = true]; + optional uint64 mpls_active_flows = 204 [(telemetry_options).is_counter = true]; + optional uint64 mpls_flows_exported = 205 [(telemetry_options).is_counter = true]; + optional uint64 mpls_packets_exported = 206 [(telemetry_options).is_counter = true]; + optional uint64 mpls_flows_inactive_timed_out = 207 [(telemetry_options).is_counter = true]; + optional uint64 mpls_flows_active_timed_out = 208 [(telemetry_options).is_counter = true]; + + optional uint64 mpls_flow_create_failure = 209 [(telemetry_options).is_counter = true]; + optional uint64 mpls_route_lookup_failure = 210 [(telemetry_options).is_counter = true]; + optional uint64 mpls_autonomous_system_lookup_failure = 211 [(telemetry_options).is_counter = true]; + optional uint64 mpls_flow_packet_export_failure = 212 [(telemetry_options).is_counter = true]; + + optional float mpls_flow_table_utilization = 213 [(telemetry_options).is_gauge = true]; + optional uint64 mpls_flow_insert_count = 214 [(telemetry_options).is_counter = true]; + + // BRIDGE NPU Stats + optional uint64 bridge_flow_packets = 251 [(telemetry_options).is_counter = true]; + optional uint64 bridge_flow_bytes = 252 [(telemetry_options).is_counter = true]; + optional uint64 bridge_total_flows = 253 [(telemetry_options).is_counter = true]; + optional uint64 bridge_active_flows = 254 [(telemetry_options).is_counter = true]; + optional uint64 bridge_flows_exported = 255 [(telemetry_options).is_counter = true]; + optional uint64 bridge_packets_exported = 256 [(telemetry_options).is_counter = true]; + optional uint64 bridge_flows_inactive_timed_out = 257 [(telemetry_options).is_counter = true]; + optional uint64 bridge_flows_active_timed_out = 258 [(telemetry_options).is_counter = true]; + + optional uint64 bridge_flow_create_failure = 259 [(telemetry_options).is_counter = true]; + optional uint64 bridge_route_lookup_failure = 260 [(telemetry_options).is_counter = true]; + optional uint64 bridge_autonomous_system_lookup_failure = 261 [(telemetry_options).is_counter = true]; + optional uint64 bridge_flow_packet_export_failure = 262 [(telemetry_options).is_counter = true]; + + optional float bridge_flow_table_utilization = 263 [(telemetry_options).is_gauge = true]; + optional uint64 bridge_flow_insert_count = 264 [(telemetry_options).is_counter = true]; + +} + diff --git a/schema/ipsec_telemetry.pb.go b/schema/ipsec_telemetry.pb.go new file mode 100644 index 0000000..71e16fb --- /dev/null +++ b/schema/ipsec_telemetry.pb.go @@ -0,0 +1,2431 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ipsec_telemetry.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type IPsecVPN struct { + IpsecGlobalInfo []*IPsecGlobalInfo `protobuf:"bytes,1,rep,name=ipsec_global_info,json=ipsecGlobalInfo" json:"ipsec_global_info,omitempty"` + IpsecSvcsetInfo []*IPsecPerSvcsetInfo `protobuf:"bytes,2,rep,name=ipsec_svcset_info,json=ipsecSvcsetInfo" json:"ipsec_svcset_info,omitempty"` + IpsecTunnelInfo []*IPsecPerTunnelInfo `protobuf:"bytes,3,rep,name=ipsec_tunnel_info,json=ipsecTunnelInfo" json:"ipsec_tunnel_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPsecVPN) Reset() { *m = IPsecVPN{} } +func (m *IPsecVPN) String() string { return proto.CompactTextString(m) } +func (*IPsecVPN) ProtoMessage() {} +func (*IPsecVPN) Descriptor() ([]byte, []int) { + return fileDescriptor_62544e4535d94422, []int{0} +} +func (m *IPsecVPN) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IPsecVPN) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IPsecVPN.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IPsecVPN) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPsecVPN.Merge(m, src) +} +func (m *IPsecVPN) XXX_Size() int { + return m.Size() +} +func (m *IPsecVPN) XXX_DiscardUnknown() { + xxx_messageInfo_IPsecVPN.DiscardUnknown(m) +} + +var xxx_messageInfo_IPsecVPN proto.InternalMessageInfo + +func (m *IPsecVPN) GetIpsecGlobalInfo() []*IPsecGlobalInfo { + if m != nil { + return m.IpsecGlobalInfo + } + return nil +} + +func (m *IPsecVPN) GetIpsecSvcsetInfo() []*IPsecPerSvcsetInfo { + if m != nil { + return m.IpsecSvcsetInfo + } + return nil +} + +func (m *IPsecVPN) GetIpsecTunnelInfo() []*IPsecPerTunnelInfo { + if m != nil { + return m.IpsecTunnelInfo + } + return nil +} + +type IPsecGlobalInfo struct { + // RE-Pconn Connect Retry + RePconnConnect *uint64 `protobuf:"varint,1,opt,name=re_pconn_connect,json=rePconnConnect" json:"re_pconn_connect,omitempty"` + // RE-Pconn Status + PconnStatus *uint64 `protobuf:"varint,2,opt,name=pconn_status,json=pconnStatus" json:"pconn_status,omitempty"` + // Request Enq Succ + SaTriggerEnqSuccess *uint64 `protobuf:"varint,3,opt,name=sa_trigger_enq_success,json=saTriggerEnqSuccess" json:"sa_trigger_enq_success,omitempty"` + // Request Enq Fail + SaTriggerEnqFail *uint64 `protobuf:"varint,4,opt,name=sa_trigger_enq_fail,json=saTriggerEnqFail" json:"sa_trigger_enq_fail,omitempty"` + // Retry Enq Succ + SaTriggerRetrySuccess *uint64 `protobuf:"varint,5,opt,name=sa_trigger_retry_success,json=saTriggerRetrySuccess" json:"sa_trigger_retry_success,omitempty"` + // Retry Enq Fail + SaTriggerRetryFail *uint64 `protobuf:"varint,6,opt,name=sa_trigger_retry_fail,json=saTriggerRetryFail" json:"sa_trigger_retry_fail,omitempty"` + // Trigger Send Succ + SaTriggerSent *uint64 `protobuf:"varint,7,opt,name=sa_trigger_sent,json=saTriggerSent" json:"sa_trigger_sent,omitempty"` + // Trigger Send Fail + SaTriggerFail *uint64 `protobuf:"varint,8,opt,name=sa_trigger_fail,json=saTriggerFail" json:"sa_trigger_fail,omitempty"` + // Trigger Alloc + SaTriggerAlloc *uint64 `protobuf:"varint,9,opt,name=sa_trigger_alloc,json=saTriggerAlloc" json:"sa_trigger_alloc,omitempty"` + // Alloc Fail + SaTriggerAllocFail *uint64 `protobuf:"varint,10,opt,name=sa_trigger_alloc_fail,json=saTriggerAllocFail" json:"sa_trigger_alloc_fail,omitempty"` + // Trigger Free + SaTriggerFree *uint64 `protobuf:"varint,11,opt,name=sa_trigger_free,json=saTriggerFree" json:"sa_trigger_free,omitempty"` + // Outstanding Trig Msg in Queue + SaTrigEnqCount *uint64 `protobuf:"varint,12,opt,name=sa_trig_enq_count,json=saTrigEnqCount" json:"sa_trig_enq_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPsecGlobalInfo) Reset() { *m = IPsecGlobalInfo{} } +func (m *IPsecGlobalInfo) String() string { return proto.CompactTextString(m) } +func (*IPsecGlobalInfo) ProtoMessage() {} +func (*IPsecGlobalInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_62544e4535d94422, []int{1} +} +func (m *IPsecGlobalInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IPsecGlobalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IPsecGlobalInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IPsecGlobalInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPsecGlobalInfo.Merge(m, src) +} +func (m *IPsecGlobalInfo) XXX_Size() int { + return m.Size() +} +func (m *IPsecGlobalInfo) XXX_DiscardUnknown() { + xxx_messageInfo_IPsecGlobalInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_IPsecGlobalInfo proto.InternalMessageInfo + +func (m *IPsecGlobalInfo) GetRePconnConnect() uint64 { + if m != nil && m.RePconnConnect != nil { + return *m.RePconnConnect + } + return 0 +} + +func (m *IPsecGlobalInfo) GetPconnStatus() uint64 { + if m != nil && m.PconnStatus != nil { + return *m.PconnStatus + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerEnqSuccess() uint64 { + if m != nil && m.SaTriggerEnqSuccess != nil { + return *m.SaTriggerEnqSuccess + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerEnqFail() uint64 { + if m != nil && m.SaTriggerEnqFail != nil { + return *m.SaTriggerEnqFail + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerRetrySuccess() uint64 { + if m != nil && m.SaTriggerRetrySuccess != nil { + return *m.SaTriggerRetrySuccess + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerRetryFail() uint64 { + if m != nil && m.SaTriggerRetryFail != nil { + return *m.SaTriggerRetryFail + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerSent() uint64 { + if m != nil && m.SaTriggerSent != nil { + return *m.SaTriggerSent + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerFail() uint64 { + if m != nil && m.SaTriggerFail != nil { + return *m.SaTriggerFail + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerAlloc() uint64 { + if m != nil && m.SaTriggerAlloc != nil { + return *m.SaTriggerAlloc + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerAllocFail() uint64 { + if m != nil && m.SaTriggerAllocFail != nil { + return *m.SaTriggerAllocFail + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTriggerFree() uint64 { + if m != nil && m.SaTriggerFree != nil { + return *m.SaTriggerFree + } + return 0 +} + +func (m *IPsecGlobalInfo) GetSaTrigEnqCount() uint64 { + if m != nil && m.SaTrigEnqCount != nil { + return *m.SaTrigEnqCount + } + return 0 +} + +type IPsecPerSvcsetInfo struct { + // Service Set ID + SvcsetId *uint64 `protobuf:"varint,1,req,name=svcset_id,json=svcsetId" json:"svcset_id,omitempty"` + // Rule Lookup Fail + RuleLookupFailed *uint64 `protobuf:"varint,2,opt,name=rule_lookup_failed,json=ruleLookupFailed" json:"rule_lookup_failed,omitempty"` + // SA Lookup Fail + SaLookupFailed *uint64 `protobuf:"varint,3,opt,name=sa_lookup_failed,json=saLookupFailed" json:"sa_lookup_failed,omitempty"` + // Pre Frags + ExceedsTunnelMtu *uint64 `protobuf:"varint,4,opt,name=exceeds_tunnel_mtu,json=exceedsTunnelMtu" json:"exceeds_tunnel_mtu,omitempty"` + // Clear Pkts Recvd for encap + ClearPktReceived *uint64 `protobuf:"varint,5,opt,name=clear_pkt_received,json=clearPktReceived" json:"clear_pkt_received,omitempty"` + // ESP Pkts Recvd + EspPktReceived *uint64 `protobuf:"varint,6,opt,name=esp_pkt_received,json=espPktReceived" json:"esp_pkt_received,omitempty"` + // Encap Pkts From Crypto + EncapCallback *uint64 `protobuf:"varint,7,opt,name=encap_callback,json=encapCallback" json:"encap_callback,omitempty"` + // Decap Pkts From Crypto + DecapCallback *uint64 `protobuf:"varint,8,opt,name=decap_callback,json=decapCallback" json:"decap_callback,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPsecPerSvcsetInfo) Reset() { *m = IPsecPerSvcsetInfo{} } +func (m *IPsecPerSvcsetInfo) String() string { return proto.CompactTextString(m) } +func (*IPsecPerSvcsetInfo) ProtoMessage() {} +func (*IPsecPerSvcsetInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_62544e4535d94422, []int{2} +} +func (m *IPsecPerSvcsetInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IPsecPerSvcsetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IPsecPerSvcsetInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IPsecPerSvcsetInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPsecPerSvcsetInfo.Merge(m, src) +} +func (m *IPsecPerSvcsetInfo) XXX_Size() int { + return m.Size() +} +func (m *IPsecPerSvcsetInfo) XXX_DiscardUnknown() { + xxx_messageInfo_IPsecPerSvcsetInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_IPsecPerSvcsetInfo proto.InternalMessageInfo + +func (m *IPsecPerSvcsetInfo) GetSvcsetId() uint64 { + if m != nil && m.SvcsetId != nil { + return *m.SvcsetId + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetRuleLookupFailed() uint64 { + if m != nil && m.RuleLookupFailed != nil { + return *m.RuleLookupFailed + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetSaLookupFailed() uint64 { + if m != nil && m.SaLookupFailed != nil { + return *m.SaLookupFailed + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetExceedsTunnelMtu() uint64 { + if m != nil && m.ExceedsTunnelMtu != nil { + return *m.ExceedsTunnelMtu + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetClearPktReceived() uint64 { + if m != nil && m.ClearPktReceived != nil { + return *m.ClearPktReceived + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetEspPktReceived() uint64 { + if m != nil && m.EspPktReceived != nil { + return *m.EspPktReceived + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetEncapCallback() uint64 { + if m != nil && m.EncapCallback != nil { + return *m.EncapCallback + } + return 0 +} + +func (m *IPsecPerSvcsetInfo) GetDecapCallback() uint64 { + if m != nil && m.DecapCallback != nil { + return *m.DecapCallback + } + return 0 +} + +type IPsecPerTunnelInfo struct { + // Tunnel IDs on PIC + TunnelId *uint64 `protobuf:"varint,1,req,name=tunnel_id,json=tunnelId" json:"tunnel_id,omitempty"` + // Seq Num Zero + EspRplzero *uint64 `protobuf:"varint,2,opt,name=esp_rplzero,json=espRplzero" json:"esp_rplzero,omitempty"` + // Bad Pad + IpsecBadHeaders *uint64 `protobuf:"varint,3,opt,name=ipsec_bad_headers,json=ipsecBadHeaders" json:"ipsec_bad_headers,omitempty"` + // ESP Tail Err + EspBadTrailers *uint64 `protobuf:"varint,4,opt,name=esp_bad_trailers,json=espBadTrailers" json:"esp_bad_trailers,omitempty"` + // Next Proto Err + DecapNxtProtoErr *uint64 `protobuf:"varint,5,opt,name=decap_nxt_proto_err,json=decapNxtProtoErr" json:"decap_nxt_proto_err,omitempty"` + // Inner Len Err + DecapInnerLenErr *uint64 `protobuf:"varint,6,opt,name=decap_inner_len_err,json=decapInnerLenErr" json:"decap_inner_len_err,omitempty"` + // Outer Hdr Err + DecapHdrErr *uint64 `protobuf:"varint,7,opt,name=decap_hdr_err,json=decapHdrErr" json:"decap_hdr_err,omitempty"` + // Inner Saddr Err + DecapInnerSaddrErr *uint64 `protobuf:"varint,8,opt,name=decap_inner_saddr_err,json=decapInnerSaddrErr" json:"decap_inner_saddr_err,omitempty"` + // Inner Daddr Err + DecapInnerDaddrErr *uint64 `protobuf:"varint,9,opt,name=decap_inner_daddr_err,json=decapInnerDaddrErr" json:"decap_inner_daddr_err,omitempty"` + // Sn Alloc Fail + DecapSnAllocFail *uint64 `protobuf:"varint,10,opt,name=decap_sn_alloc_fail,json=decapSnAllocFail" json:"decap_sn_alloc_fail,omitempty"` + // Sn Ext Fail + DecapSnExtFail *uint64 `protobuf:"varint,11,opt,name=decap_sn_ext_fail,json=decapSnExtFail" json:"decap_sn_ext_fail,omitempty"` + // Auth Fail + EspAuthFailed *uint64 `protobuf:"varint,12,opt,name=esp_auth_failed,json=espAuthFailed" json:"esp_auth_failed,omitempty"` + // Reinject Fail + DecapReinjectFail *uint64 `protobuf:"varint,13,opt,name=decap_reinject_fail,json=decapReinjectFail" json:"decap_reinject_fail,omitempty"` + // Session Transient Drop + DecapSnTransientDrop *uint64 `protobuf:"varint,14,opt,name=decap_sn_transient_drop,json=decapSnTransientDrop" json:"decap_sn_transient_drop,omitempty"` + // Replay Before Win + EspRplbeforewindow *uint64 `protobuf:"varint,15,opt,name=esp_rplbeforewindow,json=espRplbeforewindow" json:"esp_rplbeforewindow,omitempty"` + // Replayed Pkts + EspRplduplicate *uint64 `protobuf:"varint,16,opt,name=esp_rplduplicate,json=espRplduplicate" json:"esp_rplduplicate,omitempty"` + // Encrypted Bytes + EspProtectedBytesSent *uint64 `protobuf:"varint,17,opt,name=esp_protected_bytes_sent,json=espProtectedBytesSent" json:"esp_protected_bytes_sent,omitempty"` + // Decrypted Bytes + EspProtectedBytesRecvd *uint64 `protobuf:"varint,18,opt,name=esp_protected_bytes_recvd,json=espProtectedBytesRecvd" json:"esp_protected_bytes_recvd,omitempty"` + // Encrypted Packets + Encrypts *uint64 `protobuf:"varint,19,opt,name=encrypts" json:"encrypts,omitempty"` + // Decrypted Packets + Decrypts *uint64 `protobuf:"varint,20,opt,name=decrypts" json:"decrypts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IPsecPerTunnelInfo) Reset() { *m = IPsecPerTunnelInfo{} } +func (m *IPsecPerTunnelInfo) String() string { return proto.CompactTextString(m) } +func (*IPsecPerTunnelInfo) ProtoMessage() {} +func (*IPsecPerTunnelInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_62544e4535d94422, []int{3} +} +func (m *IPsecPerTunnelInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IPsecPerTunnelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IPsecPerTunnelInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IPsecPerTunnelInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_IPsecPerTunnelInfo.Merge(m, src) +} +func (m *IPsecPerTunnelInfo) XXX_Size() int { + return m.Size() +} +func (m *IPsecPerTunnelInfo) XXX_DiscardUnknown() { + xxx_messageInfo_IPsecPerTunnelInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_IPsecPerTunnelInfo proto.InternalMessageInfo + +func (m *IPsecPerTunnelInfo) GetTunnelId() uint64 { + if m != nil && m.TunnelId != nil { + return *m.TunnelId + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspRplzero() uint64 { + if m != nil && m.EspRplzero != nil { + return *m.EspRplzero + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetIpsecBadHeaders() uint64 { + if m != nil && m.IpsecBadHeaders != nil { + return *m.IpsecBadHeaders + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspBadTrailers() uint64 { + if m != nil && m.EspBadTrailers != nil { + return *m.EspBadTrailers + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapNxtProtoErr() uint64 { + if m != nil && m.DecapNxtProtoErr != nil { + return *m.DecapNxtProtoErr + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapInnerLenErr() uint64 { + if m != nil && m.DecapInnerLenErr != nil { + return *m.DecapInnerLenErr + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapHdrErr() uint64 { + if m != nil && m.DecapHdrErr != nil { + return *m.DecapHdrErr + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapInnerSaddrErr() uint64 { + if m != nil && m.DecapInnerSaddrErr != nil { + return *m.DecapInnerSaddrErr + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapInnerDaddrErr() uint64 { + if m != nil && m.DecapInnerDaddrErr != nil { + return *m.DecapInnerDaddrErr + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapSnAllocFail() uint64 { + if m != nil && m.DecapSnAllocFail != nil { + return *m.DecapSnAllocFail + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapSnExtFail() uint64 { + if m != nil && m.DecapSnExtFail != nil { + return *m.DecapSnExtFail + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspAuthFailed() uint64 { + if m != nil && m.EspAuthFailed != nil { + return *m.EspAuthFailed + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapReinjectFail() uint64 { + if m != nil && m.DecapReinjectFail != nil { + return *m.DecapReinjectFail + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecapSnTransientDrop() uint64 { + if m != nil && m.DecapSnTransientDrop != nil { + return *m.DecapSnTransientDrop + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspRplbeforewindow() uint64 { + if m != nil && m.EspRplbeforewindow != nil { + return *m.EspRplbeforewindow + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspRplduplicate() uint64 { + if m != nil && m.EspRplduplicate != nil { + return *m.EspRplduplicate + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspProtectedBytesSent() uint64 { + if m != nil && m.EspProtectedBytesSent != nil { + return *m.EspProtectedBytesSent + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEspProtectedBytesRecvd() uint64 { + if m != nil && m.EspProtectedBytesRecvd != nil { + return *m.EspProtectedBytesRecvd + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetEncrypts() uint64 { + if m != nil && m.Encrypts != nil { + return *m.Encrypts + } + return 0 +} + +func (m *IPsecPerTunnelInfo) GetDecrypts() uint64 { + if m != nil && m.Decrypts != nil { + return *m.Decrypts + } + return 0 +} + +var E_JnprIPsecVPNExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*IPsecVPN)(nil), + Field: 77, + Name: "jnprIPsecVPNExt", + Tag: "bytes,77,opt,name=jnprIPsecVPNExt", + Filename: "ipsec_telemetry.proto", +} + +func init() { + proto.RegisterType((*IPsecVPN)(nil), "IPsecVPN") + proto.RegisterType((*IPsecGlobalInfo)(nil), "IPsecGlobalInfo") + proto.RegisterType((*IPsecPerSvcsetInfo)(nil), "IPsecPerSvcsetInfo") + proto.RegisterType((*IPsecPerTunnelInfo)(nil), "IPsecPerTunnelInfo") + proto.RegisterExtension(E_JnprIPsecVPNExt) +} + +func init() { proto.RegisterFile("ipsec_telemetry.proto", fileDescriptor_62544e4535d94422) } + +var fileDescriptor_62544e4535d94422 = []byte{ + // 1016 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x95, 0xdf, 0x4e, 0x1b, 0x47, + 0x14, 0xc6, 0x65, 0xa0, 0x09, 0x8c, 0x09, 0x98, 0x71, 0x48, 0xb6, 0xa9, 0x44, 0x29, 0x52, 0x2b, + 0x53, 0x05, 0x5b, 0x49, 0x55, 0x55, 0xad, 0x2a, 0x55, 0x81, 0x90, 0x86, 0x8a, 0x20, 0xcb, 0x46, + 0xbd, 0xe8, 0xcd, 0x76, 0x3c, 0x73, 0xb0, 0xd7, 0x5e, 0x66, 0x97, 0x99, 0xb3, 0x60, 0x7a, 0xd7, + 0x17, 0xea, 0x73, 0x54, 0xbd, 0xea, 0x0b, 0x54, 0xaa, 0x78, 0x92, 0x68, 0xfe, 0xad, 0xd7, 0x86, + 0x9b, 0x48, 0xfe, 0xbe, 0xdf, 0x77, 0xe6, 0xec, 0xc9, 0x99, 0x81, 0x6c, 0x27, 0xb9, 0x06, 0x1e, + 0x23, 0xa4, 0x70, 0x09, 0xa8, 0x6e, 0xdb, 0xb9, 0xca, 0x30, 0x7b, 0xd1, 0x2c, 0x85, 0x18, 0xb3, + 0xdc, 0x89, 0x7b, 0xff, 0xd4, 0xc8, 0xea, 0x49, 0x57, 0x03, 0xff, 0xb5, 0x7b, 0x46, 0x7f, 0x24, + 0x5b, 0x2e, 0x3a, 0x4c, 0xb3, 0x01, 0x4b, 0xe3, 0x44, 0x5e, 0x64, 0x51, 0x6d, 0x77, 0xb9, 0x55, + 0x7f, 0xdd, 0x68, 0x5b, 0xea, 0x67, 0x6b, 0x9c, 0xc8, 0x8b, 0xac, 0xb7, 0x69, 0xd1, 0x99, 0x40, + 0x7f, 0x0a, 0x69, 0x7d, 0xcd, 0x35, 0xa0, 0x4b, 0x2f, 0xd9, 0x74, 0xd3, 0xa5, 0xbb, 0xa0, 0xfa, + 0xd6, 0xab, 0x14, 0x98, 0x09, 0xb3, 0x02, 0x58, 0x48, 0x09, 0xfe, 0xf8, 0xe5, 0x85, 0x02, 0xe7, + 0xd6, 0xab, 0x14, 0x98, 0x09, 0x7b, 0x7f, 0xad, 0x90, 0xcd, 0x85, 0x36, 0x69, 0x8b, 0x34, 0x14, + 0xc4, 0x39, 0xcf, 0xa4, 0x8c, 0xcd, 0x3f, 0xc0, 0x31, 0xaa, 0xed, 0xd6, 0x5a, 0x2b, 0xbd, 0x0d, + 0x05, 0x5d, 0xa3, 0x1c, 0x39, 0x95, 0x7e, 0x41, 0xd6, 0x1d, 0xa6, 0x91, 0x61, 0xa1, 0xa3, 0x25, + 0x4b, 0xd5, 0xad, 0xd6, 0xb7, 0x12, 0xfd, 0x86, 0x3c, 0xd3, 0x2c, 0x46, 0x95, 0x0c, 0x87, 0xa0, + 0x62, 0x90, 0x57, 0xb1, 0x2e, 0x38, 0x07, 0xad, 0xa3, 0x65, 0x0b, 0x37, 0x35, 0x3b, 0x77, 0xe6, + 0xb1, 0xbc, 0xea, 0x3b, 0x8b, 0x1e, 0x90, 0xe6, 0x42, 0xe8, 0x82, 0x25, 0x69, 0xb4, 0x62, 0x13, + 0x8d, 0x6a, 0xe2, 0x1d, 0x4b, 0x52, 0xfa, 0x1d, 0x89, 0x2a, 0xb8, 0xb2, 0xff, 0x5f, 0xe1, 0x94, + 0x4f, 0x6c, 0x66, 0xbb, 0xcc, 0xf4, 0x8c, 0x1b, 0xce, 0x79, 0x45, 0xb6, 0xef, 0x05, 0xed, 0x49, + 0x8f, 0x6c, 0x8a, 0xce, 0xa7, 0xec, 0x59, 0x5f, 0x91, 0xcd, 0x4a, 0x44, 0x83, 0xc4, 0xe8, 0xb1, + 0x85, 0x9f, 0x94, 0x70, 0x1f, 0x24, 0x2e, 0x70, 0xb6, 0xe8, 0xea, 0x02, 0x67, 0xeb, 0xb5, 0x48, + 0xa3, 0xc2, 0xb1, 0x34, 0xcd, 0x78, 0xb4, 0xe6, 0x86, 0x5d, 0x82, 0x6f, 0x8c, 0xba, 0xd0, 0xac, + 0x25, 0x5d, 0x5d, 0xb2, 0xd0, 0xac, 0xc5, 0x1f, 0x68, 0xf6, 0x42, 0x01, 0x44, 0xf5, 0xc5, 0x26, + 0x14, 0x00, 0xdd, 0x27, 0x5b, 0x9e, 0xb3, 0xc3, 0xe6, 0x59, 0x21, 0x31, 0x5a, 0xaf, 0x76, 0x71, + 0x2c, 0xaf, 0x8e, 0x8c, 0xba, 0xf7, 0xdf, 0x12, 0xa1, 0xf7, 0x37, 0x93, 0x7e, 0x46, 0xd6, 0xc2, + 0x0e, 0x8b, 0xa8, 0xb6, 0xbb, 0xd4, 0x5a, 0xe9, 0xad, 0x3a, 0xe1, 0x44, 0xd0, 0x97, 0x84, 0xaa, + 0x22, 0x85, 0x38, 0xcd, 0xb2, 0x49, 0x91, 0xdb, 0xa6, 0x41, 0xf8, 0x65, 0x69, 0x18, 0xe7, 0xd4, + 0x1a, 0xef, 0xac, 0xee, 0x27, 0x32, 0xcf, 0x2e, 0x87, 0x5e, 0xe6, 0xc8, 0x97, 0x84, 0xc2, 0x94, + 0x03, 0x08, 0x1d, 0xf6, 0xff, 0x12, 0x8b, 0xb0, 0x25, 0xde, 0x71, 0xbb, 0xfe, 0x01, 0x0b, 0x43, + 0xf3, 0x14, 0x98, 0x8a, 0xf3, 0x09, 0xc6, 0x0a, 0x38, 0x24, 0xd7, 0x20, 0xfc, 0x7e, 0x34, 0xac, + 0xd3, 0x9d, 0x60, 0xcf, 0xeb, 0xa6, 0x0b, 0xd0, 0xf9, 0x3c, 0xeb, 0xb6, 0x62, 0x03, 0x74, 0x5e, + 0x25, 0xbf, 0x24, 0x1b, 0x20, 0x39, 0xcb, 0x63, 0xce, 0xd2, 0x74, 0xc0, 0xf8, 0x24, 0x2c, 0x84, + 0x55, 0x8f, 0xbc, 0x68, 0x30, 0x01, 0x73, 0x98, 0xdf, 0x07, 0xab, 0x06, 0x6c, 0xef, 0xcf, 0xc7, + 0xb3, 0xf9, 0xce, 0xee, 0xa9, 0x99, 0x6f, 0xb8, 0xe2, 0xe5, 0x7c, 0x9d, 0x70, 0x22, 0xe8, 0xe7, + 0xa4, 0x6e, 0x7a, 0x55, 0x79, 0xfa, 0x07, 0xa8, 0xcc, 0x0f, 0x96, 0x80, 0xce, 0x7b, 0x4e, 0xa1, + 0x5f, 0x87, 0x67, 0x62, 0xc0, 0x44, 0x3c, 0x02, 0x26, 0x40, 0x85, 0xfb, 0xe7, 0x5e, 0x84, 0x43, + 0x26, 0xde, 0x3b, 0x39, 0x7c, 0xb8, 0x21, 0x51, 0x99, 0x39, 0x2b, 0xed, 0x47, 0x6a, 0x3e, 0xfc, + 0x90, 0x89, 0x73, 0xaf, 0x9a, 0x5b, 0xea, 0xbe, 0x48, 0x4e, 0x31, 0xb6, 0x6f, 0x63, 0x0c, 0x4a, + 0x85, 0x89, 0x5a, 0xeb, 0x6c, 0x8a, 0x5d, 0x63, 0x1c, 0x2b, 0x35, 0xc3, 0x13, 0x29, 0x41, 0xc5, + 0x29, 0x48, 0x8b, 0x3f, 0xaa, 0xe0, 0x27, 0xc6, 0x39, 0x05, 0x69, 0xf0, 0x3d, 0xe2, 0x26, 0x13, + 0x8f, 0x84, 0xb2, 0xa0, 0x9b, 0x6a, 0xdd, 0x8a, 0xef, 0x85, 0x32, 0xcc, 0x2b, 0xb2, 0x5d, 0x2d, + 0xa9, 0x99, 0xf0, 0xac, 0x1b, 0x2d, 0x9d, 0x15, 0xed, 0x1b, 0xeb, 0x81, 0x88, 0x28, 0x23, 0x6b, + 0x8b, 0x91, 0xb7, 0x21, 0x52, 0x36, 0xae, 0xe5, 0xfd, 0x6b, 0xe7, 0x1a, 0xef, 0xcb, 0xd9, 0xa5, + 0xdb, 0x27, 0x5b, 0x25, 0x0e, 0x53, 0x74, 0xb0, 0xbb, 0x76, 0x1b, 0x1e, 0x3e, 0x9e, 0x62, 0xb8, + 0x9f, 0x66, 0xd6, 0xac, 0xc0, 0x51, 0xd8, 0xf4, 0x75, 0xbf, 0x3b, 0x3a, 0x7f, 0x53, 0xe0, 0xc8, + 0x2f, 0x7a, 0x3b, 0x74, 0xa0, 0x20, 0x91, 0x63, 0xe0, 0xbe, 0xe8, 0x13, 0xcb, 0xba, 0xd3, 0x7a, + 0xde, 0xb1, 0x75, 0xbf, 0x25, 0xcf, 0xcb, 0x16, 0x50, 0x31, 0xa9, 0x13, 0x90, 0x18, 0x0b, 0x95, + 0xe5, 0xd1, 0x86, 0xcd, 0x3c, 0xf5, 0x8d, 0x9c, 0x07, 0xf3, 0xad, 0xca, 0x72, 0xda, 0x21, 0x4d, + 0xbf, 0x47, 0x03, 0xb8, 0xc8, 0x14, 0xdc, 0x24, 0x52, 0x64, 0x37, 0xd1, 0xa6, 0x9b, 0x8c, 0xdb, + 0xa7, 0xaa, 0x43, 0xf7, 0xdd, 0xae, 0xa8, 0x3c, 0x15, 0x45, 0x9e, 0x26, 0x9c, 0x21, 0x44, 0x0d, + 0xb7, 0x56, 0x8e, 0x2e, 0x65, 0xf3, 0x46, 0xdb, 0xfb, 0xa4, 0x32, 0x04, 0x8e, 0x20, 0xe2, 0xc1, + 0x2d, 0x82, 0x76, 0x0f, 0xe8, 0x96, 0x7b, 0xa3, 0xcd, 0xbd, 0x0a, 0xf6, 0xa1, 0x71, 0xed, 0x43, + 0xfa, 0x3d, 0xf9, 0xf4, 0xa1, 0xa0, 0x02, 0x7e, 0x2d, 0x22, 0x6a, 0x93, 0xcf, 0xee, 0x25, 0x7b, + 0xc6, 0xa5, 0x2f, 0xc8, 0x2a, 0x48, 0xae, 0x6e, 0x73, 0xd4, 0x51, 0xd3, 0x92, 0xe5, 0x6f, 0xe3, + 0x09, 0xf0, 0xde, 0x53, 0xe7, 0x85, 0xdf, 0x3f, 0x9c, 0x92, 0xcd, 0xb1, 0xcc, 0x55, 0xf8, 0x23, + 0x7f, 0x3c, 0x45, 0xfa, 0xbc, 0xfd, 0x4b, 0x21, 0x93, 0x1c, 0xd4, 0x19, 0xe0, 0x4d, 0xa6, 0x26, + 0xa6, 0x37, 0x9d, 0x29, 0x1d, 0x7d, 0xd8, 0xad, 0xb5, 0xea, 0xaf, 0xd7, 0xda, 0x01, 0xee, 0x2d, + 0x46, 0x0f, 0x7f, 0xff, 0xfb, 0x6e, 0xa7, 0xf6, 0xef, 0xdd, 0x4e, 0xed, 0xff, 0xbb, 0x9d, 0xda, + 0x6f, 0xbd, 0x61, 0x82, 0xed, 0xb1, 0xab, 0xd5, 0x96, 0x80, 0x9d, 0x84, 0xc3, 0x00, 0xd4, 0xb0, + 0x33, 0x02, 0x96, 0xe2, 0x68, 0x90, 0xe1, 0x41, 0x22, 0x87, 0xa0, 0xf1, 0x60, 0x8c, 0xc9, 0x81, + 0x64, 0x98, 0x5c, 0x43, 0x27, 0x9f, 0x0c, 0x3b, 0x63, 0x4c, 0x3a, 0x4c, 0xb0, 0x1c, 0x41, 0xe9, + 0x4e, 0x3c, 0x2e, 0x64, 0xa6, 0x3b, 0x9a, 0x8f, 0xe0, 0x92, 0x7d, 0x0c, 0x00, 0x00, 0xff, 0xff, + 0x97, 0xd7, 0xde, 0xeb, 0xbe, 0x08, 0x00, 0x00, +} + +func (m *IPsecVPN) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IPsecVPN) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IPsecVPN) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.IpsecTunnelInfo) > 0 { + for iNdEx := len(m.IpsecTunnelInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IpsecTunnelInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.IpsecSvcsetInfo) > 0 { + for iNdEx := len(m.IpsecSvcsetInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IpsecSvcsetInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.IpsecGlobalInfo) > 0 { + for iNdEx := len(m.IpsecGlobalInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IpsecGlobalInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *IPsecGlobalInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IPsecGlobalInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IPsecGlobalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SaTrigEnqCount != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTrigEnqCount)) + i-- + dAtA[i] = 0x60 + } + if m.SaTriggerFree != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerFree)) + i-- + dAtA[i] = 0x58 + } + if m.SaTriggerAllocFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerAllocFail)) + i-- + dAtA[i] = 0x50 + } + if m.SaTriggerAlloc != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerAlloc)) + i-- + dAtA[i] = 0x48 + } + if m.SaTriggerFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerFail)) + i-- + dAtA[i] = 0x40 + } + if m.SaTriggerSent != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerSent)) + i-- + dAtA[i] = 0x38 + } + if m.SaTriggerRetryFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerRetryFail)) + i-- + dAtA[i] = 0x30 + } + if m.SaTriggerRetrySuccess != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerRetrySuccess)) + i-- + dAtA[i] = 0x28 + } + if m.SaTriggerEnqFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerEnqFail)) + i-- + dAtA[i] = 0x20 + } + if m.SaTriggerEnqSuccess != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaTriggerEnqSuccess)) + i-- + dAtA[i] = 0x18 + } + if m.PconnStatus != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.PconnStatus)) + i-- + dAtA[i] = 0x10 + } + if m.RePconnConnect != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.RePconnConnect)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *IPsecPerSvcsetInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IPsecPerSvcsetInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IPsecPerSvcsetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DecapCallback != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapCallback)) + i-- + dAtA[i] = 0x40 + } + if m.EncapCallback != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EncapCallback)) + i-- + dAtA[i] = 0x38 + } + if m.EspPktReceived != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspPktReceived)) + i-- + dAtA[i] = 0x30 + } + if m.ClearPktReceived != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.ClearPktReceived)) + i-- + dAtA[i] = 0x28 + } + if m.ExceedsTunnelMtu != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.ExceedsTunnelMtu)) + i-- + dAtA[i] = 0x20 + } + if m.SaLookupFailed != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SaLookupFailed)) + i-- + dAtA[i] = 0x18 + } + if m.RuleLookupFailed != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.RuleLookupFailed)) + i-- + dAtA[i] = 0x10 + } + if m.SvcsetId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("svcset_id") + } else { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.SvcsetId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *IPsecPerTunnelInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IPsecPerTunnelInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IPsecPerTunnelInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Decrypts != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.Decrypts)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.Encrypts != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.Encrypts)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.EspProtectedBytesRecvd != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspProtectedBytesRecvd)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.EspProtectedBytesSent != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspProtectedBytesSent)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.EspRplduplicate != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspRplduplicate)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.EspRplbeforewindow != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspRplbeforewindow)) + i-- + dAtA[i] = 0x78 + } + if m.DecapSnTransientDrop != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapSnTransientDrop)) + i-- + dAtA[i] = 0x70 + } + if m.DecapReinjectFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapReinjectFail)) + i-- + dAtA[i] = 0x68 + } + if m.EspAuthFailed != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspAuthFailed)) + i-- + dAtA[i] = 0x60 + } + if m.DecapSnExtFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapSnExtFail)) + i-- + dAtA[i] = 0x58 + } + if m.DecapSnAllocFail != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapSnAllocFail)) + i-- + dAtA[i] = 0x50 + } + if m.DecapInnerDaddrErr != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapInnerDaddrErr)) + i-- + dAtA[i] = 0x48 + } + if m.DecapInnerSaddrErr != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapInnerSaddrErr)) + i-- + dAtA[i] = 0x40 + } + if m.DecapHdrErr != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapHdrErr)) + i-- + dAtA[i] = 0x38 + } + if m.DecapInnerLenErr != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapInnerLenErr)) + i-- + dAtA[i] = 0x30 + } + if m.DecapNxtProtoErr != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.DecapNxtProtoErr)) + i-- + dAtA[i] = 0x28 + } + if m.EspBadTrailers != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspBadTrailers)) + i-- + dAtA[i] = 0x20 + } + if m.IpsecBadHeaders != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.IpsecBadHeaders)) + i-- + dAtA[i] = 0x18 + } + if m.EspRplzero != nil { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.EspRplzero)) + i-- + dAtA[i] = 0x10 + } + if m.TunnelId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("tunnel_id") + } else { + i = encodeVarintIpsecTelemetry(dAtA, i, uint64(*m.TunnelId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintIpsecTelemetry(dAtA []byte, offset int, v uint64) int { + offset -= sovIpsecTelemetry(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *IPsecVPN) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.IpsecGlobalInfo) > 0 { + for _, e := range m.IpsecGlobalInfo { + l = e.Size() + n += 1 + l + sovIpsecTelemetry(uint64(l)) + } + } + if len(m.IpsecSvcsetInfo) > 0 { + for _, e := range m.IpsecSvcsetInfo { + l = e.Size() + n += 1 + l + sovIpsecTelemetry(uint64(l)) + } + } + if len(m.IpsecTunnelInfo) > 0 { + for _, e := range m.IpsecTunnelInfo { + l = e.Size() + n += 1 + l + sovIpsecTelemetry(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IPsecGlobalInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RePconnConnect != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.RePconnConnect)) + } + if m.PconnStatus != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.PconnStatus)) + } + if m.SaTriggerEnqSuccess != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerEnqSuccess)) + } + if m.SaTriggerEnqFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerEnqFail)) + } + if m.SaTriggerRetrySuccess != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerRetrySuccess)) + } + if m.SaTriggerRetryFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerRetryFail)) + } + if m.SaTriggerSent != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerSent)) + } + if m.SaTriggerFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerFail)) + } + if m.SaTriggerAlloc != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerAlloc)) + } + if m.SaTriggerAllocFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerAllocFail)) + } + if m.SaTriggerFree != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTriggerFree)) + } + if m.SaTrigEnqCount != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaTrigEnqCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IPsecPerSvcsetInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SvcsetId != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SvcsetId)) + } + if m.RuleLookupFailed != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.RuleLookupFailed)) + } + if m.SaLookupFailed != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.SaLookupFailed)) + } + if m.ExceedsTunnelMtu != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.ExceedsTunnelMtu)) + } + if m.ClearPktReceived != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.ClearPktReceived)) + } + if m.EspPktReceived != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.EspPktReceived)) + } + if m.EncapCallback != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.EncapCallback)) + } + if m.DecapCallback != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapCallback)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IPsecPerTunnelInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.TunnelId)) + } + if m.EspRplzero != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.EspRplzero)) + } + if m.IpsecBadHeaders != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.IpsecBadHeaders)) + } + if m.EspBadTrailers != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.EspBadTrailers)) + } + if m.DecapNxtProtoErr != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapNxtProtoErr)) + } + if m.DecapInnerLenErr != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapInnerLenErr)) + } + if m.DecapHdrErr != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapHdrErr)) + } + if m.DecapInnerSaddrErr != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapInnerSaddrErr)) + } + if m.DecapInnerDaddrErr != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapInnerDaddrErr)) + } + if m.DecapSnAllocFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapSnAllocFail)) + } + if m.DecapSnExtFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapSnExtFail)) + } + if m.EspAuthFailed != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.EspAuthFailed)) + } + if m.DecapReinjectFail != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapReinjectFail)) + } + if m.DecapSnTransientDrop != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.DecapSnTransientDrop)) + } + if m.EspRplbeforewindow != nil { + n += 1 + sovIpsecTelemetry(uint64(*m.EspRplbeforewindow)) + } + if m.EspRplduplicate != nil { + n += 2 + sovIpsecTelemetry(uint64(*m.EspRplduplicate)) + } + if m.EspProtectedBytesSent != nil { + n += 2 + sovIpsecTelemetry(uint64(*m.EspProtectedBytesSent)) + } + if m.EspProtectedBytesRecvd != nil { + n += 2 + sovIpsecTelemetry(uint64(*m.EspProtectedBytesRecvd)) + } + if m.Encrypts != nil { + n += 2 + sovIpsecTelemetry(uint64(*m.Encrypts)) + } + if m.Decrypts != nil { + n += 2 + sovIpsecTelemetry(uint64(*m.Decrypts)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovIpsecTelemetry(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIpsecTelemetry(x uint64) (n int) { + return sovIpsecTelemetry(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *IPsecVPN) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IPsecVPN: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IPsecVPN: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpsecGlobalInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIpsecTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpsecGlobalInfo = append(m.IpsecGlobalInfo, &IPsecGlobalInfo{}) + if err := m.IpsecGlobalInfo[len(m.IpsecGlobalInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpsecSvcsetInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIpsecTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpsecSvcsetInfo = append(m.IpsecSvcsetInfo, &IPsecPerSvcsetInfo{}) + if err := m.IpsecSvcsetInfo[len(m.IpsecSvcsetInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpsecTunnelInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIpsecTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpsecTunnelInfo = append(m.IpsecTunnelInfo, &IPsecPerTunnelInfo{}) + if err := m.IpsecTunnelInfo[len(m.IpsecTunnelInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIpsecTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IPsecGlobalInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IPsecGlobalInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IPsecGlobalInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RePconnConnect", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RePconnConnect = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PconnStatus", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PconnStatus = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerEnqSuccess", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerEnqSuccess = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerEnqFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerEnqFail = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerRetrySuccess", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerRetrySuccess = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerRetryFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerRetryFail = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerSent = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerFail = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerAlloc", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerAlloc = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerAllocFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerAllocFail = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTriggerFree", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTriggerFree = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaTrigEnqCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaTrigEnqCount = &v + default: + iNdEx = preIndex + skippy, err := skipIpsecTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IPsecPerSvcsetInfo) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IPsecPerSvcsetInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IPsecPerSvcsetInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetId = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleLookupFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RuleLookupFailed = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SaLookupFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SaLookupFailed = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExceedsTunnelMtu", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExceedsTunnelMtu = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClearPktReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClearPktReceived = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspPktReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspPktReceived = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EncapCallback", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EncapCallback = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapCallback", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapCallback = &v + default: + iNdEx = preIndex + skippy, err := skipIpsecTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("svcset_id") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IPsecPerTunnelInfo) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IPsecPerTunnelInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IPsecPerTunnelInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TunnelId = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspRplzero", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspRplzero = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpsecBadHeaders", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpsecBadHeaders = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspBadTrailers", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspBadTrailers = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapNxtProtoErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapNxtProtoErr = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapInnerLenErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapInnerLenErr = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapHdrErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapHdrErr = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapInnerSaddrErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapInnerSaddrErr = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapInnerDaddrErr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapInnerDaddrErr = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapSnAllocFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapSnAllocFail = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapSnExtFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapSnExtFail = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspAuthFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspAuthFailed = &v + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapReinjectFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapReinjectFail = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DecapSnTransientDrop", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DecapSnTransientDrop = &v + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspRplbeforewindow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspRplbeforewindow = &v + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspRplduplicate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspRplduplicate = &v + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspProtectedBytesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspProtectedBytesSent = &v + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EspProtectedBytesRecvd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EspProtectedBytesRecvd = &v + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Encrypts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Encrypts = &v + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Decrypts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Decrypts = &v + default: + iNdEx = preIndex + skippy, err := skipIpsecTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthIpsecTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("tunnel_id") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIpsecTelemetry(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIpsecTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthIpsecTelemetry + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIpsecTelemetry + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIpsecTelemetry + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIpsecTelemetry = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIpsecTelemetry = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIpsecTelemetry = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ipsec_telemetry.proto b/schema/ipsec_telemetry.proto new file mode 100755 index 0000000..19593ec --- /dev/null +++ b/schema/ipsec_telemetry.proto @@ -0,0 +1,177 @@ +// Copyright (c) 2015, 2016 Juniper Networks, Inc. +// 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. + + +// +// Version 1.1 +// + +// +// Shibu Piriyath 2017-09-11 +// +// This file defines the messages in Protocol Buffers used by +// the IPSec sensor. The top-level message is IPsecVPN. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 77 from JuniperNetworksSensors + +extend JuniperNetworksSensors { + optional IPsecVPN jnprIPsecVPNExt = 77; +} + +// +// Top-level message +// + +message IPsecVPN { + repeated IPsecGlobalInfo ipsec_global_info = 1; + repeated IPsecPerSvcsetInfo ipsec_svcset_info = 2; + repeated IPsecPerTunnelInfo ipsec_tunnel_info = 3; +} + +message IPsecGlobalInfo { + + // RE-Pconn Connect Retry + optional uint64 re_pconn_connect = 1; + + // RE-Pconn Status + optional uint64 pconn_status = 2; + + // Request Enq Succ + optional uint64 sa_trigger_enq_success = 3; + + // Request Enq Fail + optional uint64 sa_trigger_enq_fail = 4; + + // Retry Enq Succ + optional uint64 sa_trigger_retry_success = 5; + + // Retry Enq Fail + optional uint64 sa_trigger_retry_fail = 6; + + // Trigger Send Succ + optional uint64 sa_trigger_sent = 7; + + // Trigger Send Fail + optional uint64 sa_trigger_fail = 8; + + // Trigger Alloc + optional uint64 sa_trigger_alloc = 9; + + // Alloc Fail + optional uint64 sa_trigger_alloc_fail = 10; + + // Trigger Free + optional uint64 sa_trigger_free = 11; + + // Outstanding Trig Msg in Queue + optional uint64 sa_trig_enq_count = 12; +} + + +message IPsecPerSvcsetInfo { + + // Service Set ID + required uint64 svcset_id = 1; + + // Rule Lookup Fail + optional uint64 rule_lookup_failed = 2; + + // SA Lookup Fail + optional uint64 sa_lookup_failed = 3; + + // Pre Frags + optional uint64 exceeds_tunnel_mtu = 4; + + // Clear Pkts Recvd for encap + optional uint64 clear_pkt_received = 5; + + // ESP Pkts Recvd + optional uint64 esp_pkt_received = 6; + + // Encap Pkts From Crypto + optional uint64 encap_callback = 7; + + // Decap Pkts From Crypto + optional uint64 decap_callback = 8; +} + +message IPsecPerTunnelInfo { + + // Tunnel IDs on PIC + required uint64 tunnel_id = 1; + + // Seq Num Zero + optional uint64 esp_rplzero = 2; + + // Bad Pad + optional uint64 ipsec_bad_headers = 3; + + // ESP Tail Err + optional uint64 esp_bad_trailers = 4; + + // Next Proto Err + optional uint64 decap_nxt_proto_err = 5; + + // Inner Len Err + optional uint64 decap_inner_len_err = 6; + + // Outer Hdr Err + optional uint64 decap_hdr_err = 7; + + // Inner Saddr Err + optional uint64 decap_inner_saddr_err = 8; + + // Inner Daddr Err + optional uint64 decap_inner_daddr_err = 9; + + // Sn Alloc Fail + optional uint64 decap_sn_alloc_fail = 10; + + // Sn Ext Fail + optional uint64 decap_sn_ext_fail = 11; + + // Auth Fail + optional uint64 esp_auth_failed = 12; + + // Reinject Fail + optional uint64 decap_reinject_fail = 13; + + // Session Transient Drop + optional uint64 decap_sn_transient_drop = 14; + + // Replay Before Win + optional uint64 esp_rplbeforewindow = 15; + + // Replayed Pkts + optional uint64 esp_rplduplicate = 16; + + // Encrypted Bytes + optional uint64 esp_protected_bytes_sent = 17; + + // Decrypted Bytes + optional uint64 esp_protected_bytes_recvd= 18; + + // Encrypted Packets + optional uint64 encrypts = 19; + + // Decrypted Packets + optional uint64 decrypts = 20; +} diff --git a/schema/jdhcpd_oc.pb.go b/schema/jdhcpd_oc.pb.go new file mode 100644 index 0000000..b433bf2 --- /dev/null +++ b/schema/jdhcpd_oc.pb.go @@ -0,0 +1,17866 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jdhcpd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosDhcp struct { + System *JunosDhcpSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcp) Reset() { *m = JunosDhcp{} } +func (m *JunosDhcp) String() string { return proto.CompactTextString(m) } +func (*JunosDhcp) ProtoMessage() {} +func (*JunosDhcp) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0} +} +func (m *JunosDhcp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcp) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcp.Merge(m, src) +} +func (m *JunosDhcp) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcp) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcp.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcp proto.InternalMessageInfo + +func (m *JunosDhcp) GetSystem() *JunosDhcpSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosDhcpSystemType struct { + SubscriberManagement *JunosDhcpSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemType) Reset() { *m = JunosDhcpSystemType{} } +func (m *JunosDhcpSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosDhcpSystemType) ProtoMessage() {} +func (*JunosDhcpSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0} +} +func (m *JunosDhcpSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemType.Merge(m, src) +} +func (m *JunosDhcpSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemType proto.InternalMessageInfo + +func (m *JunosDhcpSystemType) GetSubscriberManagement() *JunosDhcpSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementType struct { + ClientProtocols *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType `protobuf:"bytes,151,opt,name=client_protocols,json=clientProtocols" json:"client_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosDhcpSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementType) GetClientProtocols() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType { + if m != nil { + return m.ClientProtocols + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType struct { + Dhcp *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType `protobuf:"bytes,151,opt,name=dhcp" json:"dhcp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) ProtoMessage() {} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) GetDhcp() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType { + if m != nil { + return m.Dhcp + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType struct { + V4 *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type `protobuf:"bytes,151,opt,name=v4" json:"v4,omitempty"` + V6 *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type `protobuf:"bytes,152,opt,name=v6" json:"v6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) ProtoMessage() {} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) GetV4() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type { + if m != nil { + return m.V4 + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) GetV6() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type { + if m != nil { + return m.V6 + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type struct { + GlobalStatistics *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType `protobuf:"bytes,152,opt,name=global_statistics,json=globalStatistics" json:"global_statistics,omitempty"` + RoutingInstances *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType `protobuf:"bytes,151,opt,name=routing_instances,json=routingInstances" json:"routing_instances,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) ProtoMessage() {} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) GetGlobalStatistics() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType { + if m != nil { + return m.GlobalStatistics + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) GetRoutingInstances() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType { + if m != nil { + return m.RoutingInstances + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType struct { + DroppedTotal *uint64 `protobuf:"varint,51,opt,name=dropped_total,json=droppedTotal" json:"dropped_total,omitempty"` + DroppedBadRead *uint64 `protobuf:"varint,52,opt,name=dropped_bad_read,json=droppedBadRead" json:"dropped_bad_read,omitempty"` + DroppedIpHeader *uint64 `protobuf:"varint,53,opt,name=dropped_ip_header,json=droppedIpHeader" json:"dropped_ip_header,omitempty"` + DroppedShortPacket *uint64 `protobuf:"varint,54,opt,name=dropped_short_packet,json=droppedShortPacket" json:"dropped_short_packet,omitempty"` + DroppedNoInterface *uint64 `protobuf:"varint,55,opt,name=dropped_no_interface,json=droppedNoInterface" json:"dropped_no_interface,omitempty"` + DroppedNoRoutingInstance *uint64 `protobuf:"varint,56,opt,name=dropped_no_routing_instance,json=droppedNoRoutingInstance" json:"dropped_no_routing_instance,omitempty"` + DroppedNoMemory *uint64 `protobuf:"varint,57,opt,name=dropped_no_memory,json=droppedNoMemory" json:"dropped_no_memory,omitempty"` + DroppedRecoveryInProgress *uint64 `protobuf:"varint,58,opt,name=dropped_recovery_in_progress,json=droppedRecoveryInProgress" json:"dropped_recovery_in_progress,omitempty"` + EraInflightCount *uint64 `protobuf:"varint,61,opt,name=era_inflight_count,json=eraInflightCount" json:"era_inflight_count,omitempty"` + EraReportedFailures *uint64 `protobuf:"varint,62,opt,name=era_reported_failures,json=eraReportedFailures" json:"era_reported_failures,omitempty"` + EraReportedSuccesses *uint64 `protobuf:"varint,63,opt,name=era_reported_successes,json=eraReportedSuccesses" json:"era_reported_successes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedTotal() uint64 { + if m != nil && m.DroppedTotal != nil { + return *m.DroppedTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedBadRead() uint64 { + if m != nil && m.DroppedBadRead != nil { + return *m.DroppedBadRead + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedIpHeader() uint64 { + if m != nil && m.DroppedIpHeader != nil { + return *m.DroppedIpHeader + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedShortPacket() uint64 { + if m != nil && m.DroppedShortPacket != nil { + return *m.DroppedShortPacket + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedNoInterface() uint64 { + if m != nil && m.DroppedNoInterface != nil { + return *m.DroppedNoInterface + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedNoRoutingInstance() uint64 { + if m != nil && m.DroppedNoRoutingInstance != nil { + return *m.DroppedNoRoutingInstance + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedNoMemory() uint64 { + if m != nil && m.DroppedNoMemory != nil { + return *m.DroppedNoMemory + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetDroppedRecoveryInProgress() uint64 { + if m != nil && m.DroppedRecoveryInProgress != nil { + return *m.DroppedRecoveryInProgress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetEraInflightCount() uint64 { + if m != nil && m.EraInflightCount != nil { + return *m.EraInflightCount + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetEraReportedFailures() uint64 { + if m != nil && m.EraReportedFailures != nil { + return *m.EraReportedFailures + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) GetEraReportedSuccesses() uint64 { + if m != nil && m.EraReportedSuccesses != nil { + return *m.EraReportedSuccesses + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType struct { + RoutingInstance []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList `protobuf:"bytes,151,rep,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) GetRoutingInstance() []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList { + if m != nil { + return m.RoutingInstance + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList struct { + RiName *string `protobuf:"bytes,51,opt,name=ri_name,json=riName" json:"ri_name,omitempty"` + Server *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType `protobuf:"bytes,151,opt,name=server" json:"server,omitempty"` + Relay *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType `protobuf:"bytes,152,opt,name=relay" json:"relay,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) GetRiName() string { + if m != nil && m.RiName != nil { + return *m.RiName + } + return "" +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) GetServer() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType { + if m != nil { + return m.Server + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) GetRelay() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType { + if m != nil { + return m.Relay + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType struct { + Statistics *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + Bindings *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType `protobuf:"bytes,152,opt,name=bindings" json:"bindings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) GetStatistics() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) GetBindings() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType { + if m != nil { + return m.Bindings + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType struct { + DroppedV4ServerTotal *uint64 `protobuf:"varint,51,opt,name=dropped_v4server_total,json=droppedV4serverTotal" json:"dropped_v4server_total,omitempty"` + DroppedV4ServerBadHware *uint64 `protobuf:"varint,52,opt,name=dropped_v4server_bad_hware,json=droppedV4serverBadHware" json:"dropped_v4server_bad_hware,omitempty"` + DroppedV4ServerBootpPkt *uint64 `protobuf:"varint,53,opt,name=dropped_v4server_bootp_pkt,json=droppedV4serverBootpPkt" json:"dropped_v4server_bootp_pkt,omitempty"` + DroppedV4ServerBadBootpOpcode *uint64 `protobuf:"varint,54,opt,name=dropped_v4server_bad_bootp_opcode,json=droppedV4serverBadBootpOpcode" json:"dropped_v4server_bad_bootp_opcode,omitempty"` + DroppedV4ServerBadOptions *uint64 `protobuf:"varint,55,opt,name=dropped_v4server_bad_options,json=droppedV4serverBadOptions" json:"dropped_v4server_bad_options,omitempty"` + DroppedV4ServerBadAddress *uint64 `protobuf:"varint,56,opt,name=dropped_v4server_bad_address,json=droppedV4serverBadAddress" json:"dropped_v4server_bad_address,omitempty"` + DroppedV4ServerNoAddress *uint64 `protobuf:"varint,57,opt,name=dropped_v4server_no_address,json=droppedV4serverNoAddress" json:"dropped_v4server_no_address,omitempty"` + DroppedV4ServerNoInterfaceCfg *uint64 `protobuf:"varint,58,opt,name=dropped_v4server_no_interface_cfg,json=droppedV4serverNoInterfaceCfg" json:"dropped_v4server_no_interface_cfg,omitempty"` + DroppedV4ServerNoLocalAddress *uint64 `protobuf:"varint,59,opt,name=dropped_v4server_no_local_address,json=droppedV4serverNoLocalAddress" json:"dropped_v4server_no_local_address,omitempty"` + DroppedV4ServerShortPkt *uint64 `protobuf:"varint,60,opt,name=dropped_v4server_short_pkt,json=droppedV4serverShortPkt" json:"dropped_v4server_short_pkt,omitempty"` + DroppedV4ServerNoBadSend *uint64 `protobuf:"varint,61,opt,name=dropped_v4server_no_bad_send,json=droppedV4serverNoBadSend" json:"dropped_v4server_no_bad_send,omitempty"` + DroppedV4ServerNoOption60 *uint64 `protobuf:"varint,62,opt,name=dropped_v4server_no_option60,json=droppedV4serverNoOption60" json:"dropped_v4server_no_option60,omitempty"` + DroppedV4ServerNoOption82 *uint64 `protobuf:"varint,63,opt,name=dropped_v4server_no_option82,json=droppedV4serverNoOption82" json:"dropped_v4server_no_option82,omitempty"` + DroppedV4ServerAuthentication *uint64 `protobuf:"varint,64,opt,name=dropped_v4server_authentication,json=droppedV4serverAuthentication" json:"dropped_v4server_authentication,omitempty"` + DroppedV4ServerDynamicProfile *uint64 `protobuf:"varint,65,opt,name=dropped_v4server_dynamic_profile,json=droppedV4serverDynamicProfile" json:"dropped_v4server_dynamic_profile,omitempty"` + DroppedV4ServerNoLicense *uint64 `protobuf:"varint,66,opt,name=dropped_v4server_no_license,json=droppedV4serverNoLicense" json:"dropped_v4server_no_license,omitempty"` + DroppedV4ServerNoBadDhcpOpcode *uint64 `protobuf:"varint,67,opt,name=dropped_v4server_no_bad_dhcp_opcode,json=droppedV4serverNoBadDhcpOpcode" json:"dropped_v4server_no_bad_dhcp_opcode,omitempty"` + DroppedV4ServerNoOptions *uint64 `protobuf:"varint,68,opt,name=dropped_v4server_no_options,json=droppedV4serverNoOptions" json:"dropped_v4server_no_options,omitempty"` + DroppedV4ServerHopLimit *uint64 `protobuf:"varint,69,opt,name=dropped_v4server_hop_limit,json=droppedV4serverHopLimit" json:"dropped_v4server_hop_limit,omitempty"` + DroppedV4ServerTtlExpired *uint64 `protobuf:"varint,70,opt,name=dropped_v4server_ttl_expired,json=droppedV4serverTtlExpired" json:"dropped_v4server_ttl_expired,omitempty"` + DroppedV4ServerBadUdpChecksum *uint64 `protobuf:"varint,71,opt,name=dropped_v4server_bad_udp_checksum,json=droppedV4serverBadUdpChecksum" json:"dropped_v4server_bad_udp_checksum,omitempty"` + DroppedV4ServerInactiveVlan *uint64 `protobuf:"varint,72,opt,name=dropped_v4server_inactive_vlan,json=droppedV4serverInactiveVlan" json:"dropped_v4server_inactive_vlan,omitempty"` + DroppedV4ServerEraStartFailed *uint64 `protobuf:"varint,73,opt,name=dropped_v4server_era_start_failed,json=droppedV4serverEraStartFailed" json:"dropped_v4server_era_start_failed,omitempty"` + DroppedV4ServerClientLookup *uint64 `protobuf:"varint,74,opt,name=dropped_v4server_client_lookup,json=droppedV4serverClientLookup" json:"dropped_v4server_client_lookup,omitempty"` + DroppedV4ServerLeaseTimeViolation *uint64 `protobuf:"varint,75,opt,name=dropped_v4server_lease_time_violation,json=droppedV4serverLeaseTimeViolation" json:"dropped_v4server_lease_time_violation,omitempty"` + OfferDelayed *uint64 `protobuf:"varint,76,opt,name=offer_delayed,json=offerDelayed" json:"offer_delayed,omitempty"` + OfferDelayInProgress *uint64 `protobuf:"varint,77,opt,name=offer_delay_in_progress,json=offerDelayInProgress" json:"offer_delay_in_progress,omitempty"` + OfferDelayTotal *uint64 `protobuf:"varint,78,opt,name=offer_delay_total,json=offerDelayTotal" json:"offer_delay_total,omitempty"` + MsgRecvV4ServerBootRequest *uint64 `protobuf:"varint,79,opt,name=msg_recv_v4server_boot_request,json=msgRecvV4serverBootRequest" json:"msg_recv_v4server_boot_request,omitempty"` + MsgRecvV4ServerDecline *uint64 `protobuf:"varint,80,opt,name=msg_recv_v4server_decline,json=msgRecvV4serverDecline" json:"msg_recv_v4server_decline,omitempty"` + MsgRecvV4ServerDiscover *uint64 `protobuf:"varint,81,opt,name=msg_recv_v4server_discover,json=msgRecvV4serverDiscover" json:"msg_recv_v4server_discover,omitempty"` + MsgRecvV4ServerInform *uint64 `protobuf:"varint,82,opt,name=msg_recv_v4server_inform,json=msgRecvV4serverInform" json:"msg_recv_v4server_inform,omitempty"` + MsgRecvV4ServerRelease *uint64 `protobuf:"varint,83,opt,name=msg_recv_v4server_release,json=msgRecvV4serverRelease" json:"msg_recv_v4server_release,omitempty"` + MsgRecvV4ServerRequest *uint64 `protobuf:"varint,84,opt,name=msg_recv_v4server_request,json=msgRecvV4serverRequest" json:"msg_recv_v4server_request,omitempty"` + MsgRecvV4ServerRenew *uint64 `protobuf:"varint,85,opt,name=msg_recv_v4server_renew,json=msgRecvV4serverRenew" json:"msg_recv_v4server_renew,omitempty"` + MsgRecvV4ServerRebind *uint64 `protobuf:"varint,86,opt,name=msg_recv_v4server_rebind,json=msgRecvV4serverRebind" json:"msg_recv_v4server_rebind,omitempty"` + MsgRecvV4ServerLeaseQuery *uint64 `protobuf:"varint,87,opt,name=msg_recv_v4server_lease_query,json=msgRecvV4serverLeaseQuery" json:"msg_recv_v4server_lease_query,omitempty"` + MsgRecvV4ServerBulkleaseQuery *uint64 `protobuf:"varint,88,opt,name=msg_recv_v4server_bulklease_query,json=msgRecvV4serverBulkleaseQuery" json:"msg_recv_v4server_bulklease_query,omitempty"` + MsgSentV4ServerBootReply *uint64 `protobuf:"varint,89,opt,name=msg_sent_v4server_boot_reply,json=msgSentV4serverBootReply" json:"msg_sent_v4server_boot_reply,omitempty"` + MsgSentV4ServerOffer *uint64 `protobuf:"varint,90,opt,name=msg_sent_v4server_offer,json=msgSentV4serverOffer" json:"msg_sent_v4server_offer,omitempty"` + MsgSentV4ServerBootAck *uint64 `protobuf:"varint,91,opt,name=msg_sent_v4server_boot_ack,json=msgSentV4serverBootAck" json:"msg_sent_v4server_boot_ack,omitempty"` + MsgSentV4ServerNak *uint64 `protobuf:"varint,92,opt,name=msg_sent_v4server_nak,json=msgSentV4serverNak" json:"msg_sent_v4server_nak,omitempty"` + MsgSentV4ServerForceRenew *uint64 `protobuf:"varint,93,opt,name=msg_sent_v4server_force_renew,json=msgSentV4serverForceRenew" json:"msg_sent_v4server_force_renew,omitempty"` + MsgSentV4ServerUnassigned *uint64 `protobuf:"varint,94,opt,name=msg_sent_v4server_unassigned,json=msgSentV4serverUnassigned" json:"msg_sent_v4server_unassigned,omitempty"` + MsgSentV4ServerUnknown *uint64 `protobuf:"varint,95,opt,name=msg_sent_v4server_unknown,json=msgSentV4serverUnknown" json:"msg_sent_v4server_unknown,omitempty"` + MsgSentV4ServerActive *uint64 `protobuf:"varint,96,opt,name=msg_sent_v4server_active,json=msgSentV4serverActive" json:"msg_sent_v4server_active,omitempty"` + MsgSentV4ServerQueryDone *uint64 `protobuf:"varint,97,opt,name=msg_sent_v4server_query_done,json=msgSentV4serverQueryDone" json:"msg_sent_v4server_query_done,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerTotal() uint64 { + if m != nil && m.DroppedV4ServerTotal != nil { + return *m.DroppedV4ServerTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerBadHware() uint64 { + if m != nil && m.DroppedV4ServerBadHware != nil { + return *m.DroppedV4ServerBadHware + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerBootpPkt() uint64 { + if m != nil && m.DroppedV4ServerBootpPkt != nil { + return *m.DroppedV4ServerBootpPkt + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerBadBootpOpcode() uint64 { + if m != nil && m.DroppedV4ServerBadBootpOpcode != nil { + return *m.DroppedV4ServerBadBootpOpcode + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerBadOptions() uint64 { + if m != nil && m.DroppedV4ServerBadOptions != nil { + return *m.DroppedV4ServerBadOptions + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerBadAddress() uint64 { + if m != nil && m.DroppedV4ServerBadAddress != nil { + return *m.DroppedV4ServerBadAddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoAddress() uint64 { + if m != nil && m.DroppedV4ServerNoAddress != nil { + return *m.DroppedV4ServerNoAddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoInterfaceCfg() uint64 { + if m != nil && m.DroppedV4ServerNoInterfaceCfg != nil { + return *m.DroppedV4ServerNoInterfaceCfg + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoLocalAddress() uint64 { + if m != nil && m.DroppedV4ServerNoLocalAddress != nil { + return *m.DroppedV4ServerNoLocalAddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerShortPkt() uint64 { + if m != nil && m.DroppedV4ServerShortPkt != nil { + return *m.DroppedV4ServerShortPkt + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoBadSend() uint64 { + if m != nil && m.DroppedV4ServerNoBadSend != nil { + return *m.DroppedV4ServerNoBadSend + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoOption60() uint64 { + if m != nil && m.DroppedV4ServerNoOption60 != nil { + return *m.DroppedV4ServerNoOption60 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoOption82() uint64 { + if m != nil && m.DroppedV4ServerNoOption82 != nil { + return *m.DroppedV4ServerNoOption82 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerAuthentication() uint64 { + if m != nil && m.DroppedV4ServerAuthentication != nil { + return *m.DroppedV4ServerAuthentication + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerDynamicProfile() uint64 { + if m != nil && m.DroppedV4ServerDynamicProfile != nil { + return *m.DroppedV4ServerDynamicProfile + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoLicense() uint64 { + if m != nil && m.DroppedV4ServerNoLicense != nil { + return *m.DroppedV4ServerNoLicense + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoBadDhcpOpcode() uint64 { + if m != nil && m.DroppedV4ServerNoBadDhcpOpcode != nil { + return *m.DroppedV4ServerNoBadDhcpOpcode + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerNoOptions() uint64 { + if m != nil && m.DroppedV4ServerNoOptions != nil { + return *m.DroppedV4ServerNoOptions + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerHopLimit() uint64 { + if m != nil && m.DroppedV4ServerHopLimit != nil { + return *m.DroppedV4ServerHopLimit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerTtlExpired() uint64 { + if m != nil && m.DroppedV4ServerTtlExpired != nil { + return *m.DroppedV4ServerTtlExpired + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerBadUdpChecksum() uint64 { + if m != nil && m.DroppedV4ServerBadUdpChecksum != nil { + return *m.DroppedV4ServerBadUdpChecksum + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerInactiveVlan() uint64 { + if m != nil && m.DroppedV4ServerInactiveVlan != nil { + return *m.DroppedV4ServerInactiveVlan + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerEraStartFailed() uint64 { + if m != nil && m.DroppedV4ServerEraStartFailed != nil { + return *m.DroppedV4ServerEraStartFailed + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerClientLookup() uint64 { + if m != nil && m.DroppedV4ServerClientLookup != nil { + return *m.DroppedV4ServerClientLookup + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV4ServerLeaseTimeViolation() uint64 { + if m != nil && m.DroppedV4ServerLeaseTimeViolation != nil { + return *m.DroppedV4ServerLeaseTimeViolation + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetOfferDelayed() uint64 { + if m != nil && m.OfferDelayed != nil { + return *m.OfferDelayed + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetOfferDelayInProgress() uint64 { + if m != nil && m.OfferDelayInProgress != nil { + return *m.OfferDelayInProgress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetOfferDelayTotal() uint64 { + if m != nil && m.OfferDelayTotal != nil { + return *m.OfferDelayTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerBootRequest() uint64 { + if m != nil && m.MsgRecvV4ServerBootRequest != nil { + return *m.MsgRecvV4ServerBootRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerDecline() uint64 { + if m != nil && m.MsgRecvV4ServerDecline != nil { + return *m.MsgRecvV4ServerDecline + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerDiscover() uint64 { + if m != nil && m.MsgRecvV4ServerDiscover != nil { + return *m.MsgRecvV4ServerDiscover + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerInform() uint64 { + if m != nil && m.MsgRecvV4ServerInform != nil { + return *m.MsgRecvV4ServerInform + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerRelease() uint64 { + if m != nil && m.MsgRecvV4ServerRelease != nil { + return *m.MsgRecvV4ServerRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerRequest() uint64 { + if m != nil && m.MsgRecvV4ServerRequest != nil { + return *m.MsgRecvV4ServerRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerRenew() uint64 { + if m != nil && m.MsgRecvV4ServerRenew != nil { + return *m.MsgRecvV4ServerRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerRebind() uint64 { + if m != nil && m.MsgRecvV4ServerRebind != nil { + return *m.MsgRecvV4ServerRebind + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerLeaseQuery() uint64 { + if m != nil && m.MsgRecvV4ServerLeaseQuery != nil { + return *m.MsgRecvV4ServerLeaseQuery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV4ServerBulkleaseQuery() uint64 { + if m != nil && m.MsgRecvV4ServerBulkleaseQuery != nil { + return *m.MsgRecvV4ServerBulkleaseQuery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerBootReply() uint64 { + if m != nil && m.MsgSentV4ServerBootReply != nil { + return *m.MsgSentV4ServerBootReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerOffer() uint64 { + if m != nil && m.MsgSentV4ServerOffer != nil { + return *m.MsgSentV4ServerOffer + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerBootAck() uint64 { + if m != nil && m.MsgSentV4ServerBootAck != nil { + return *m.MsgSentV4ServerBootAck + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerNak() uint64 { + if m != nil && m.MsgSentV4ServerNak != nil { + return *m.MsgSentV4ServerNak + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerForceRenew() uint64 { + if m != nil && m.MsgSentV4ServerForceRenew != nil { + return *m.MsgSentV4ServerForceRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerUnassigned() uint64 { + if m != nil && m.MsgSentV4ServerUnassigned != nil { + return *m.MsgSentV4ServerUnassigned + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerUnknown() uint64 { + if m != nil && m.MsgSentV4ServerUnknown != nil { + return *m.MsgSentV4ServerUnknown + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerActive() uint64 { + if m != nil && m.MsgSentV4ServerActive != nil { + return *m.MsgSentV4ServerActive + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV4ServerQueryDone() uint64 { + if m != nil && m.MsgSentV4ServerQueryDone != nil { + return *m.MsgSentV4ServerQueryDone + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType struct { + BindingStateV4ServerBinding *uint64 `protobuf:"varint,51,opt,name=binding_state_v4server_binding,json=bindingStateV4serverBinding" json:"binding_state_v4server_binding,omitempty"` + BindingStateV4ServerInit *uint64 `protobuf:"varint,52,opt,name=binding_state_v4server_init,json=bindingStateV4serverInit" json:"binding_state_v4server_init,omitempty"` + BindingStateV4ServerBound *uint64 `protobuf:"varint,53,opt,name=binding_state_v4server_bound,json=bindingStateV4serverBound" json:"binding_state_v4server_bound,omitempty"` + BindingStateV4ServerSelecting *uint64 `protobuf:"varint,54,opt,name=binding_state_v4server_selecting,json=bindingStateV4serverSelecting" json:"binding_state_v4server_selecting,omitempty"` + BindingStateV4ServerRequesting *uint64 `protobuf:"varint,55,opt,name=binding_state_v4server_requesting,json=bindingStateV4serverRequesting" json:"binding_state_v4server_requesting,omitempty"` + BindingStateV4ServerRenew *uint64 `protobuf:"varint,56,opt,name=binding_state_v4server_renew,json=bindingStateV4serverRenew" json:"binding_state_v4server_renew,omitempty"` + BindingStateV4ServerRelease *uint64 `protobuf:"varint,57,opt,name=binding_state_v4server_release,json=bindingStateV4serverRelease" json:"binding_state_v4server_release,omitempty"` + BindingStateServerRestoring *uint64 `protobuf:"varint,58,opt,name=binding_state_server_restoring,json=bindingStateServerRestoring" json:"binding_state_server_restoring,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 0, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerBinding() uint64 { + if m != nil && m.BindingStateV4ServerBinding != nil { + return *m.BindingStateV4ServerBinding + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerInit() uint64 { + if m != nil && m.BindingStateV4ServerInit != nil { + return *m.BindingStateV4ServerInit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerBound() uint64 { + if m != nil && m.BindingStateV4ServerBound != nil { + return *m.BindingStateV4ServerBound + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerSelecting() uint64 { + if m != nil && m.BindingStateV4ServerSelecting != nil { + return *m.BindingStateV4ServerSelecting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerRequesting() uint64 { + if m != nil && m.BindingStateV4ServerRequesting != nil { + return *m.BindingStateV4ServerRequesting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerRenew() uint64 { + if m != nil && m.BindingStateV4ServerRenew != nil { + return *m.BindingStateV4ServerRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV4ServerRelease() uint64 { + if m != nil && m.BindingStateV4ServerRelease != nil { + return *m.BindingStateV4ServerRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateServerRestoring() uint64 { + if m != nil && m.BindingStateServerRestoring != nil { + return *m.BindingStateServerRestoring + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType struct { + Statistics *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + Bindings *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType `protobuf:"bytes,152,opt,name=bindings" json:"bindings,omitempty"` + Servers *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType `protobuf:"bytes,153,opt,name=servers" json:"servers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) GetStatistics() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) GetBindings() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType { + if m != nil { + return m.Bindings + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) GetServers() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType { + if m != nil { + return m.Servers + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType struct { + DroppedV4RelayTotal *uint64 `protobuf:"varint,51,opt,name=dropped_v4relay_total,json=droppedV4relayTotal" json:"dropped_v4relay_total,omitempty"` + DroppedV4RelayBadHardware *uint64 `protobuf:"varint,52,opt,name=dropped_v4relay_bad_hardware,json=droppedV4relayBadHardware" json:"dropped_v4relay_bad_hardware,omitempty"` + DroppedV4RelayBootpPacket *uint64 `protobuf:"varint,53,opt,name=dropped_v4relay_bootp_packet,json=droppedV4relayBootpPacket" json:"dropped_v4relay_bootp_packet,omitempty"` + DroppedV4RelayBadBootpOpcode *uint64 `protobuf:"varint,54,opt,name=dropped_v4relay_bad_bootp_opcode,json=droppedV4relayBadBootpOpcode" json:"dropped_v4relay_bad_bootp_opcode,omitempty"` + DroppedV4RelayBadOptions *uint64 `protobuf:"varint,55,opt,name=dropped_v4relay_bad_options,json=droppedV4relayBadOptions" json:"dropped_v4relay_bad_options,omitempty"` + DroppedV4RelayBadAddress *uint64 `protobuf:"varint,56,opt,name=dropped_v4relay_bad_address,json=droppedV4relayBadAddress" json:"dropped_v4relay_bad_address,omitempty"` + DroppedV4RelayNoAddress *uint64 `protobuf:"varint,57,opt,name=dropped_v4relay_no_address,json=droppedV4relayNoAddress" json:"dropped_v4relay_no_address,omitempty"` + DroppedV4RelayNoInterfaceCfg *uint64 `protobuf:"varint,58,opt,name=dropped_v4relay_no_interface_cfg,json=droppedV4relayNoInterfaceCfg" json:"dropped_v4relay_no_interface_cfg,omitempty"` + DroppedV4RelayNoLocalAddress *uint64 `protobuf:"varint,59,opt,name=dropped_v4relay_no_local_address,json=droppedV4relayNoLocalAddress" json:"dropped_v4relay_no_local_address,omitempty"` + DroppedV4RelayShortPacket *uint64 `protobuf:"varint,60,opt,name=dropped_v4relay_short_packet,json=droppedV4relayShortPacket" json:"dropped_v4relay_short_packet,omitempty"` + DroppedV4RelayBadSend *uint64 `protobuf:"varint,61,opt,name=dropped_v4relay_bad_send,json=droppedV4relayBadSend" json:"dropped_v4relay_bad_send,omitempty"` + DroppedV4RelayOption_60 *uint64 `protobuf:"varint,62,opt,name=dropped_v4relay_option_60,json=droppedV4relayOption60" json:"dropped_v4relay_option_60,omitempty"` + DroppedV4RelayRelayOption *uint64 `protobuf:"varint,63,opt,name=dropped_v4relay_relay_option,json=droppedV4relayRelayOption" json:"dropped_v4relay_relay_option,omitempty"` + DroppedV4RelayOption_82 *uint64 `protobuf:"varint,64,opt,name=dropped_v4relay_option_82,json=droppedV4relayOption82" json:"dropped_v4relay_option_82,omitempty"` + DroppedV4RelayAuthentication *uint64 `protobuf:"varint,65,opt,name=dropped_v4relay_authentication,json=droppedV4relayAuthentication" json:"dropped_v4relay_authentication,omitempty"` + DroppedV4RelayDynamicProfile *uint64 `protobuf:"varint,66,opt,name=dropped_v4relay_dynamic_profile,json=droppedV4relayDynamicProfile" json:"dropped_v4relay_dynamic_profile,omitempty"` + DroppedV4RelayLicense *uint64 `protobuf:"varint,67,opt,name=dropped_v4relay_license,json=droppedV4relayLicense" json:"dropped_v4relay_license,omitempty"` + DroppedV4RelayBadDhcpOpcode *uint64 `protobuf:"varint,68,opt,name=dropped_v4relay_bad_dhcp_opcode,json=droppedV4relayBadDhcpOpcode" json:"dropped_v4relay_bad_dhcp_opcode,omitempty"` + DroppedV4RelayNoOptions *uint64 `protobuf:"varint,69,opt,name=dropped_v4relay_no_options,json=droppedV4relayNoOptions" json:"dropped_v4relay_no_options,omitempty"` + DroppedV4RelayHopLimit *uint64 `protobuf:"varint,70,opt,name=dropped_v4relay_hop_limit,json=droppedV4relayHopLimit" json:"dropped_v4relay_hop_limit,omitempty"` + DroppedV4RelayTtlExpired *uint64 `protobuf:"varint,71,opt,name=dropped_v4relay_ttl_expired,json=droppedV4relayTtlExpired" json:"dropped_v4relay_ttl_expired,omitempty"` + DroppedV4RelayBadUdpChecksum *uint64 `protobuf:"varint,72,opt,name=dropped_v4relay_bad_udp_checksum,json=droppedV4relayBadUdpChecksum" json:"dropped_v4relay_bad_udp_checksum,omitempty"` + DroppedV4RelayInactiveVlan *uint64 `protobuf:"varint,73,opt,name=dropped_v4relay_inactive_vlan,json=droppedV4relayInactiveVlan" json:"dropped_v4relay_inactive_vlan,omitempty"` + DroppedV4RelayEraStartFailed *uint64 `protobuf:"varint,74,opt,name=dropped_v4relay_era_start_failed,json=droppedV4relayEraStartFailed" json:"dropped_v4relay_era_start_failed,omitempty"` + DroppedV4RelayClientLookup *uint64 `protobuf:"varint,75,opt,name=dropped_v4relay_client_lookup,json=droppedV4relayClientLookup" json:"dropped_v4relay_client_lookup,omitempty"` + DroppedV4RelayProxyNoServerAddr *uint64 `protobuf:"varint,76,opt,name=dropped_v4relay_proxy_no_server_addr,json=droppedV4relayProxyNoServerAddr" json:"dropped_v4relay_proxy_no_server_addr,omitempty"` + DroppedV4RelayLeaseTimeViolation *uint64 `protobuf:"varint,77,opt,name=dropped_v4relay_lease_time_violation,json=droppedV4relayLeaseTimeViolation" json:"dropped_v4relay_lease_time_violation,omitempty"` + DroppedV4RelayLeasequeryReplNoCircuitid *uint64 `protobuf:"varint,78,opt,name=dropped_v4relay_leasequery_repl_no_circuitid,json=droppedV4relayLeasequeryReplNoCircuitid" json:"dropped_v4relay_leasequery_repl_no_circuitid,omitempty"` + DroppedV4RelayLeasequeryReplWithErrorCode *uint64 `protobuf:"varint,79,opt,name=dropped_v4relay_leasequery_repl_with_error_code,json=droppedV4relayLeasequeryReplWithErrorCode" json:"dropped_v4relay_leasequery_repl_with_error_code,omitempty"` + DroppedV4RelayLeasequeryReplWithQueryTerm *uint64 `protobuf:"varint,80,opt,name=dropped_v4relay_leasequery_repl_with_query_term,json=droppedV4relayLeasequeryReplWithQueryTerm" json:"dropped_v4relay_leasequery_repl_with_query_term,omitempty"` + DroppedV4RelayOlderLeasequeryReply *uint64 `protobuf:"varint,81,opt,name=dropped_v4relay_older_leasequery_reply,json=droppedV4relayOlderLeasequeryReply" json:"dropped_v4relay_older_leasequery_reply,omitempty"` + DroppedV4RelayAbortLeasequeryReplyProc *uint64 `protobuf:"varint,82,opt,name=dropped_v4relay_abort_leasequery_reply_proc,json=droppedV4relayAbortLeasequeryReplyProc" json:"dropped_v4relay_abort_leasequery_reply_proc,omitempty"` + DroppedV4RelayDuringLeasequeryReply *uint64 `protobuf:"varint,83,opt,name=dropped_v4relay_during_leasequery_reply,json=droppedV4relayDuringLeasequeryReply" json:"dropped_v4relay_during_leasequery_reply,omitempty"` + DroppedV4RelayRelaySourceNoLpbkInterface *uint64 `protobuf:"varint,84,opt,name=dropped_v4relay_relay_source_no_lpbk_interface,json=droppedV4relayRelaySourceNoLpbkInterface" json:"dropped_v4relay_relay_source_no_lpbk_interface,omitempty"` + V4RelayBootpRequestRcvd *uint64 `protobuf:"varint,85,opt,name=v4relay_bootp_request_rcvd,json=v4relayBootpRequestRcvd" json:"v4relay_bootp_request_rcvd,omitempty"` + MsgRecvV4RelayDecline *uint64 `protobuf:"varint,86,opt,name=msg_recv_v4relay_decline,json=msgRecvV4relayDecline" json:"msg_recv_v4relay_decline,omitempty"` + MsgRecvV4RelayDiscover *uint64 `protobuf:"varint,87,opt,name=msg_recv_v4relay_discover,json=msgRecvV4relayDiscover" json:"msg_recv_v4relay_discover,omitempty"` + MsgRecvV4RelayInform *uint64 `protobuf:"varint,88,opt,name=msg_recv_v4relay_inform,json=msgRecvV4relayInform" json:"msg_recv_v4relay_inform,omitempty"` + MsgRecvV4RelayRelease *uint64 `protobuf:"varint,89,opt,name=msg_recv_v4relay_release,json=msgRecvV4relayRelease" json:"msg_recv_v4relay_release,omitempty"` + MsgRecvV4RelayRequest *uint64 `protobuf:"varint,90,opt,name=msg_recv_v4relay_request,json=msgRecvV4relayRequest" json:"msg_recv_v4relay_request,omitempty"` + MsgRecvV4RelayLeaseactive *uint64 `protobuf:"varint,91,opt,name=msg_recv_v4relay_leaseactive,json=msgRecvV4relayLeaseactive" json:"msg_recv_v4relay_leaseactive,omitempty"` + MsgRecvV4RelayLeaseunassigned *uint64 `protobuf:"varint,92,opt,name=msg_recv_v4relay_leaseunassigned,json=msgRecvV4relayLeaseunassigned" json:"msg_recv_v4relay_leaseunassigned,omitempty"` + MsgRecvV4RelayLeaseunknown *uint64 `protobuf:"varint,93,opt,name=msg_recv_v4relay_leaseunknown,json=msgRecvV4relayLeaseunknown" json:"msg_recv_v4relay_leaseunknown,omitempty"` + MsgRecvV4RelayLeasequerydone *uint64 `protobuf:"varint,94,opt,name=msg_recv_v4relay_leasequerydone,json=msgRecvV4relayLeasequerydone" json:"msg_recv_v4relay_leasequerydone,omitempty"` + V4RelayBootpReplyRcvd *uint64 `protobuf:"varint,95,opt,name=v4relay_bootp_reply_rcvd,json=v4relayBootpReplyRcvd" json:"v4relay_bootp_reply_rcvd,omitempty"` + MsgRecvV4RelayOffer *uint64 `protobuf:"varint,96,opt,name=msg_recv_v4relay_offer,json=msgRecvV4relayOffer" json:"msg_recv_v4relay_offer,omitempty"` + MsgRecvV4RelayAck *uint64 `protobuf:"varint,97,opt,name=msg_recv_v4relay_ack,json=msgRecvV4relayAck" json:"msg_recv_v4relay_ack,omitempty"` + MsgRecvV4RelayNak *uint64 `protobuf:"varint,98,opt,name=msg_recv_v4relay_nak,json=msgRecvV4relayNak" json:"msg_recv_v4relay_nak,omitempty"` + MsgRecvV4RelayForcerenew *uint64 `protobuf:"varint,99,opt,name=msg_recv_v4relay_forcerenew,json=msgRecvV4relayForcerenew" json:"msg_recv_v4relay_forcerenew,omitempty"` + V4RelayBootpReplySent *uint64 `protobuf:"varint,100,opt,name=v4relay_bootp_reply_sent,json=v4relayBootpReplySent" json:"v4relay_bootp_reply_sent,omitempty"` + MsgSentV4RelayOffer *uint64 `protobuf:"varint,101,opt,name=msg_sent_v4relay_offer,json=msgSentV4relayOffer" json:"msg_sent_v4relay_offer,omitempty"` + MsgSentV4RelayAck *uint64 `protobuf:"varint,102,opt,name=msg_sent_v4relay_ack,json=msgSentV4relayAck" json:"msg_sent_v4relay_ack,omitempty"` + MsgSentV4RelayNak *uint64 `protobuf:"varint,103,opt,name=msg_sent_v4relay_nak,json=msgSentV4relayNak" json:"msg_sent_v4relay_nak,omitempty"` + MsgSentV4RelayForcerenew *uint64 `protobuf:"varint,104,opt,name=msg_sent_v4relay_forcerenew,json=msgSentV4relayForcerenew" json:"msg_sent_v4relay_forcerenew,omitempty"` + MsgSentV4RelayLeasequery *uint64 `protobuf:"varint,105,opt,name=msg_sent_v4relay_leasequery,json=msgSentV4relayLeasequery" json:"msg_sent_v4relay_leasequery,omitempty"` + MsgSentV4RelayBulkleasequery *uint64 `protobuf:"varint,106,opt,name=msg_sent_v4relay_bulkleasequery,json=msgSentV4relayBulkleasequery" json:"msg_sent_v4relay_bulkleasequery,omitempty"` + V4RelayBootpRequestSent *uint64 `protobuf:"varint,107,opt,name=v4relay_bootp_request_sent,json=v4relayBootpRequestSent" json:"v4relay_bootp_request_sent,omitempty"` + MsgSentV4RelayDecline *uint64 `protobuf:"varint,108,opt,name=msg_sent_v4relay_decline,json=msgSentV4relayDecline" json:"msg_sent_v4relay_decline,omitempty"` + MsgSentV4RelayDiscover *uint64 `protobuf:"varint,109,opt,name=msg_sent_v4relay_discover,json=msgSentV4relayDiscover" json:"msg_sent_v4relay_discover,omitempty"` + MsgSentV4RelayInform *uint64 `protobuf:"varint,110,opt,name=msg_sent_v4relay_inform,json=msgSentV4relayInform" json:"msg_sent_v4relay_inform,omitempty"` + MsgSentV4RelayRelease *uint64 `protobuf:"varint,111,opt,name=msg_sent_v4relay_release,json=msgSentV4relayRelease" json:"msg_sent_v4relay_release,omitempty"` + MsgSentV4RelayRequest *uint64 `protobuf:"varint,112,opt,name=msg_sent_v4relay_request,json=msgSentV4relayRequest" json:"msg_sent_v4relay_request,omitempty"` + V4RelayBootpForwardedTotal *uint64 `protobuf:"varint,113,opt,name=v4relay_bootp_forwarded_total,json=v4relayBootpForwardedTotal" json:"v4relay_bootp_forwarded_total,omitempty"` + V4RelayBootpRequestFwd *uint64 `protobuf:"varint,114,opt,name=v4relay_bootp_request_fwd,json=v4relayBootpRequestFwd" json:"v4relay_bootp_request_fwd,omitempty"` + V4RelayBootpReplyFwd *uint64 `protobuf:"varint,115,opt,name=v4relay_bootp_reply_fwd,json=v4relayBootpReplyFwd" json:"v4relay_bootp_reply_fwd,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 1, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayTotal() uint64 { + if m != nil && m.DroppedV4RelayTotal != nil { + return *m.DroppedV4RelayTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadHardware() uint64 { + if m != nil && m.DroppedV4RelayBadHardware != nil { + return *m.DroppedV4RelayBadHardware + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBootpPacket() uint64 { + if m != nil && m.DroppedV4RelayBootpPacket != nil { + return *m.DroppedV4RelayBootpPacket + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadBootpOpcode() uint64 { + if m != nil && m.DroppedV4RelayBadBootpOpcode != nil { + return *m.DroppedV4RelayBadBootpOpcode + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadOptions() uint64 { + if m != nil && m.DroppedV4RelayBadOptions != nil { + return *m.DroppedV4RelayBadOptions + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadAddress() uint64 { + if m != nil && m.DroppedV4RelayBadAddress != nil { + return *m.DroppedV4RelayBadAddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayNoAddress() uint64 { + if m != nil && m.DroppedV4RelayNoAddress != nil { + return *m.DroppedV4RelayNoAddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayNoInterfaceCfg() uint64 { + if m != nil && m.DroppedV4RelayNoInterfaceCfg != nil { + return *m.DroppedV4RelayNoInterfaceCfg + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayNoLocalAddress() uint64 { + if m != nil && m.DroppedV4RelayNoLocalAddress != nil { + return *m.DroppedV4RelayNoLocalAddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayShortPacket() uint64 { + if m != nil && m.DroppedV4RelayShortPacket != nil { + return *m.DroppedV4RelayShortPacket + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadSend() uint64 { + if m != nil && m.DroppedV4RelayBadSend != nil { + return *m.DroppedV4RelayBadSend + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayOption_60() uint64 { + if m != nil && m.DroppedV4RelayOption_60 != nil { + return *m.DroppedV4RelayOption_60 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayRelayOption() uint64 { + if m != nil && m.DroppedV4RelayRelayOption != nil { + return *m.DroppedV4RelayRelayOption + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayOption_82() uint64 { + if m != nil && m.DroppedV4RelayOption_82 != nil { + return *m.DroppedV4RelayOption_82 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayAuthentication() uint64 { + if m != nil && m.DroppedV4RelayAuthentication != nil { + return *m.DroppedV4RelayAuthentication + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayDynamicProfile() uint64 { + if m != nil && m.DroppedV4RelayDynamicProfile != nil { + return *m.DroppedV4RelayDynamicProfile + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayLicense() uint64 { + if m != nil && m.DroppedV4RelayLicense != nil { + return *m.DroppedV4RelayLicense + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadDhcpOpcode() uint64 { + if m != nil && m.DroppedV4RelayBadDhcpOpcode != nil { + return *m.DroppedV4RelayBadDhcpOpcode + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayNoOptions() uint64 { + if m != nil && m.DroppedV4RelayNoOptions != nil { + return *m.DroppedV4RelayNoOptions + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayHopLimit() uint64 { + if m != nil && m.DroppedV4RelayHopLimit != nil { + return *m.DroppedV4RelayHopLimit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayTtlExpired() uint64 { + if m != nil && m.DroppedV4RelayTtlExpired != nil { + return *m.DroppedV4RelayTtlExpired + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayBadUdpChecksum() uint64 { + if m != nil && m.DroppedV4RelayBadUdpChecksum != nil { + return *m.DroppedV4RelayBadUdpChecksum + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayInactiveVlan() uint64 { + if m != nil && m.DroppedV4RelayInactiveVlan != nil { + return *m.DroppedV4RelayInactiveVlan + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayEraStartFailed() uint64 { + if m != nil && m.DroppedV4RelayEraStartFailed != nil { + return *m.DroppedV4RelayEraStartFailed + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayClientLookup() uint64 { + if m != nil && m.DroppedV4RelayClientLookup != nil { + return *m.DroppedV4RelayClientLookup + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayProxyNoServerAddr() uint64 { + if m != nil && m.DroppedV4RelayProxyNoServerAddr != nil { + return *m.DroppedV4RelayProxyNoServerAddr + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayLeaseTimeViolation() uint64 { + if m != nil && m.DroppedV4RelayLeaseTimeViolation != nil { + return *m.DroppedV4RelayLeaseTimeViolation + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayLeasequeryReplNoCircuitid() uint64 { + if m != nil && m.DroppedV4RelayLeasequeryReplNoCircuitid != nil { + return *m.DroppedV4RelayLeasequeryReplNoCircuitid + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayLeasequeryReplWithErrorCode() uint64 { + if m != nil && m.DroppedV4RelayLeasequeryReplWithErrorCode != nil { + return *m.DroppedV4RelayLeasequeryReplWithErrorCode + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayLeasequeryReplWithQueryTerm() uint64 { + if m != nil && m.DroppedV4RelayLeasequeryReplWithQueryTerm != nil { + return *m.DroppedV4RelayLeasequeryReplWithQueryTerm + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayOlderLeasequeryReply() uint64 { + if m != nil && m.DroppedV4RelayOlderLeasequeryReply != nil { + return *m.DroppedV4RelayOlderLeasequeryReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayAbortLeasequeryReplyProc() uint64 { + if m != nil && m.DroppedV4RelayAbortLeasequeryReplyProc != nil { + return *m.DroppedV4RelayAbortLeasequeryReplyProc + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayDuringLeasequeryReply() uint64 { + if m != nil && m.DroppedV4RelayDuringLeasequeryReply != nil { + return *m.DroppedV4RelayDuringLeasequeryReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV4RelayRelaySourceNoLpbkInterface() uint64 { + if m != nil && m.DroppedV4RelayRelaySourceNoLpbkInterface != nil { + return *m.DroppedV4RelayRelaySourceNoLpbkInterface + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpRequestRcvd() uint64 { + if m != nil && m.V4RelayBootpRequestRcvd != nil { + return *m.V4RelayBootpRequestRcvd + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayDecline() uint64 { + if m != nil && m.MsgRecvV4RelayDecline != nil { + return *m.MsgRecvV4RelayDecline + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayDiscover() uint64 { + if m != nil && m.MsgRecvV4RelayDiscover != nil { + return *m.MsgRecvV4RelayDiscover + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayInform() uint64 { + if m != nil && m.MsgRecvV4RelayInform != nil { + return *m.MsgRecvV4RelayInform + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayRelease() uint64 { + if m != nil && m.MsgRecvV4RelayRelease != nil { + return *m.MsgRecvV4RelayRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayRequest() uint64 { + if m != nil && m.MsgRecvV4RelayRequest != nil { + return *m.MsgRecvV4RelayRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayLeaseactive() uint64 { + if m != nil && m.MsgRecvV4RelayLeaseactive != nil { + return *m.MsgRecvV4RelayLeaseactive + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayLeaseunassigned() uint64 { + if m != nil && m.MsgRecvV4RelayLeaseunassigned != nil { + return *m.MsgRecvV4RelayLeaseunassigned + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayLeaseunknown() uint64 { + if m != nil && m.MsgRecvV4RelayLeaseunknown != nil { + return *m.MsgRecvV4RelayLeaseunknown + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayLeasequerydone() uint64 { + if m != nil && m.MsgRecvV4RelayLeasequerydone != nil { + return *m.MsgRecvV4RelayLeasequerydone + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpReplyRcvd() uint64 { + if m != nil && m.V4RelayBootpReplyRcvd != nil { + return *m.V4RelayBootpReplyRcvd + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayOffer() uint64 { + if m != nil && m.MsgRecvV4RelayOffer != nil { + return *m.MsgRecvV4RelayOffer + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayAck() uint64 { + if m != nil && m.MsgRecvV4RelayAck != nil { + return *m.MsgRecvV4RelayAck + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayNak() uint64 { + if m != nil && m.MsgRecvV4RelayNak != nil { + return *m.MsgRecvV4RelayNak + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV4RelayForcerenew() uint64 { + if m != nil && m.MsgRecvV4RelayForcerenew != nil { + return *m.MsgRecvV4RelayForcerenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpReplySent() uint64 { + if m != nil && m.V4RelayBootpReplySent != nil { + return *m.V4RelayBootpReplySent + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayOffer() uint64 { + if m != nil && m.MsgSentV4RelayOffer != nil { + return *m.MsgSentV4RelayOffer + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayAck() uint64 { + if m != nil && m.MsgSentV4RelayAck != nil { + return *m.MsgSentV4RelayAck + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayNak() uint64 { + if m != nil && m.MsgSentV4RelayNak != nil { + return *m.MsgSentV4RelayNak + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayForcerenew() uint64 { + if m != nil && m.MsgSentV4RelayForcerenew != nil { + return *m.MsgSentV4RelayForcerenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayLeasequery() uint64 { + if m != nil && m.MsgSentV4RelayLeasequery != nil { + return *m.MsgSentV4RelayLeasequery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayBulkleasequery() uint64 { + if m != nil && m.MsgSentV4RelayBulkleasequery != nil { + return *m.MsgSentV4RelayBulkleasequery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpRequestSent() uint64 { + if m != nil && m.V4RelayBootpRequestSent != nil { + return *m.V4RelayBootpRequestSent + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayDecline() uint64 { + if m != nil && m.MsgSentV4RelayDecline != nil { + return *m.MsgSentV4RelayDecline + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayDiscover() uint64 { + if m != nil && m.MsgSentV4RelayDiscover != nil { + return *m.MsgSentV4RelayDiscover + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayInform() uint64 { + if m != nil && m.MsgSentV4RelayInform != nil { + return *m.MsgSentV4RelayInform + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayRelease() uint64 { + if m != nil && m.MsgSentV4RelayRelease != nil { + return *m.MsgSentV4RelayRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV4RelayRequest() uint64 { + if m != nil && m.MsgSentV4RelayRequest != nil { + return *m.MsgSentV4RelayRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpForwardedTotal() uint64 { + if m != nil && m.V4RelayBootpForwardedTotal != nil { + return *m.V4RelayBootpForwardedTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpRequestFwd() uint64 { + if m != nil && m.V4RelayBootpRequestFwd != nil { + return *m.V4RelayBootpRequestFwd + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV4RelayBootpReplyFwd() uint64 { + if m != nil && m.V4RelayBootpReplyFwd != nil { + return *m.V4RelayBootpReplyFwd + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType struct { + BindingStateV4RelayBinding *uint64 `protobuf:"varint,51,opt,name=binding_state_v4relay_binding,json=bindingStateV4relayBinding" json:"binding_state_v4relay_binding,omitempty"` + BindingStateV4RelayInit *uint64 `protobuf:"varint,52,opt,name=binding_state_v4relay_init,json=bindingStateV4relayInit" json:"binding_state_v4relay_init,omitempty"` + BindingStateV4RelayBound *uint64 `protobuf:"varint,53,opt,name=binding_state_v4relay_bound,json=bindingStateV4relayBound" json:"binding_state_v4relay_bound,omitempty"` + BindingStateV4RelaySelecting *uint64 `protobuf:"varint,54,opt,name=binding_state_v4relay_selecting,json=bindingStateV4relaySelecting" json:"binding_state_v4relay_selecting,omitempty"` + BindingStateV4RelayRequesting *uint64 `protobuf:"varint,55,opt,name=binding_state_v4relay_requesting,json=bindingStateV4relayRequesting" json:"binding_state_v4relay_requesting,omitempty"` + BindingStateV4RelayRenew *uint64 `protobuf:"varint,56,opt,name=binding_state_v4relay_renew,json=bindingStateV4relayRenew" json:"binding_state_v4relay_renew,omitempty"` + BindingStateV4RelayRelease *uint64 `protobuf:"varint,57,opt,name=binding_state_v4relay_release,json=bindingStateV4relayRelease" json:"binding_state_v4relay_release,omitempty"` + BindingStateV4RelayRestoring *uint64 `protobuf:"varint,58,opt,name=binding_state_v4relay_restoring,json=bindingStateV4relayRestoring" json:"binding_state_v4relay_restoring,omitempty"` + BindingStateV4RelayRebind *uint64 `protobuf:"varint,59,opt,name=binding_state_v4relay_rebind,json=bindingStateV4relayRebind" json:"binding_state_v4relay_rebind,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 1, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayBinding() uint64 { + if m != nil && m.BindingStateV4RelayBinding != nil { + return *m.BindingStateV4RelayBinding + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayInit() uint64 { + if m != nil && m.BindingStateV4RelayInit != nil { + return *m.BindingStateV4RelayInit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayBound() uint64 { + if m != nil && m.BindingStateV4RelayBound != nil { + return *m.BindingStateV4RelayBound + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelaySelecting() uint64 { + if m != nil && m.BindingStateV4RelaySelecting != nil { + return *m.BindingStateV4RelaySelecting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayRequesting() uint64 { + if m != nil && m.BindingStateV4RelayRequesting != nil { + return *m.BindingStateV4RelayRequesting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayRenew() uint64 { + if m != nil && m.BindingStateV4RelayRenew != nil { + return *m.BindingStateV4RelayRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayRelease() uint64 { + if m != nil && m.BindingStateV4RelayRelease != nil { + return *m.BindingStateV4RelayRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayRestoring() uint64 { + if m != nil && m.BindingStateV4RelayRestoring != nil { + return *m.BindingStateV4RelayRestoring + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV4RelayRebind() uint64 { + if m != nil && m.BindingStateV4RelayRebind != nil { + return *m.BindingStateV4RelayRebind + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType struct { + Server []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList `protobuf:"bytes,151,rep,name=server" json:"server,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 1, 2} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) GetServer() []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList { + if m != nil { + return m.Server + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList struct { + ServerIp *string `protobuf:"bytes,51,opt,name=server_ip,json=serverIp" json:"server_ip,omitempty"` + ResponseTime *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType `protobuf:"bytes,151,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) GetServerIp() string { + if m != nil && m.ServerIp != nil { + return *m.ServerIp + } + return "" +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) GetResponseTime() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType { + if m != nil { + return m.ResponseTime + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType struct { + OneMinuteMinimumResponseTime *uint64 `protobuf:"varint,51,opt,name=one_minute_minimum_response_time,json=oneMinuteMinimumResponseTime" json:"one_minute_minimum_response_time,omitempty"` + OneMinuteAverageResponseTime *uint64 `protobuf:"varint,52,opt,name=one_minute_average_response_time,json=oneMinuteAverageResponseTime" json:"one_minute_average_response_time,omitempty"` + OneMinuteMaximumResponseTime *uint64 `protobuf:"varint,53,opt,name=one_minute_maximum_response_time,json=oneMinuteMaximumResponseTime" json:"one_minute_maximum_response_time,omitempty"` + OneMinuteMessagesSent *uint64 `protobuf:"varint,54,opt,name=one_minute_messages_sent,json=oneMinuteMessagesSent" json:"one_minute_messages_sent,omitempty"` + OneMinuteMessagesReceived *uint64 `protobuf:"varint,55,opt,name=one_minute_messages_received,json=oneMinuteMessagesReceived" json:"one_minute_messages_received,omitempty"` + OneMinuteMessagesNoResponse *uint64 `protobuf:"varint,56,opt,name=one_minute_messages_no_response,json=oneMinuteMessagesNoResponse" json:"one_minute_messages_no_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMinimumResponseTime() uint64 { + if m != nil && m.OneMinuteMinimumResponseTime != nil { + return *m.OneMinuteMinimumResponseTime + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteAverageResponseTime() uint64 { + if m != nil && m.OneMinuteAverageResponseTime != nil { + return *m.OneMinuteAverageResponseTime + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMaximumResponseTime() uint64 { + if m != nil && m.OneMinuteMaximumResponseTime != nil { + return *m.OneMinuteMaximumResponseTime + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMessagesSent() uint64 { + if m != nil && m.OneMinuteMessagesSent != nil { + return *m.OneMinuteMessagesSent + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMessagesReceived() uint64 { + if m != nil && m.OneMinuteMessagesReceived != nil { + return *m.OneMinuteMessagesReceived + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMessagesNoResponse() uint64 { + if m != nil && m.OneMinuteMessagesNoResponse != nil { + return *m.OneMinuteMessagesNoResponse + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type struct { + GlobalStatistics *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType `protobuf:"bytes,152,opt,name=global_statistics,json=globalStatistics" json:"global_statistics,omitempty"` + RoutingInstances *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType `protobuf:"bytes,151,opt,name=routing_instances,json=routingInstances" json:"routing_instances,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) ProtoMessage() {} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) GetGlobalStatistics() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType { + if m != nil { + return m.GlobalStatistics + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) GetRoutingInstances() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType { + if m != nil { + return m.RoutingInstances + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType struct { + DroppedTotal *uint64 `protobuf:"varint,51,opt,name=dropped_total,json=droppedTotal" json:"dropped_total,omitempty"` + DroppedBadRead *uint64 `protobuf:"varint,52,opt,name=dropped_bad_read,json=droppedBadRead" json:"dropped_bad_read,omitempty"` + DroppedIpHeader *uint64 `protobuf:"varint,53,opt,name=dropped_ip_header,json=droppedIpHeader" json:"dropped_ip_header,omitempty"` + DroppedShortPacket *uint64 `protobuf:"varint,54,opt,name=dropped_short_packet,json=droppedShortPacket" json:"dropped_short_packet,omitempty"` + DroppedNoInterface *uint64 `protobuf:"varint,55,opt,name=dropped_no_interface,json=droppedNoInterface" json:"dropped_no_interface,omitempty"` + DroppedNoRoutingInstance *uint64 `protobuf:"varint,56,opt,name=dropped_no_routing_instance,json=droppedNoRoutingInstance" json:"dropped_no_routing_instance,omitempty"` + DroppedNoSafd *uint64 `protobuf:"varint,57,opt,name=dropped_no_safd,json=droppedNoSafd" json:"dropped_no_safd,omitempty"` + DroppedNoMemory *uint64 `protobuf:"varint,58,opt,name=dropped_no_memory,json=droppedNoMemory" json:"dropped_no_memory,omitempty"` + DroppedRecoveryInProgress *uint64 `protobuf:"varint,59,opt,name=dropped_recovery_in_progress,json=droppedRecoveryInProgress" json:"dropped_recovery_in_progress,omitempty"` + EraInflightCount *uint64 `protobuf:"varint,61,opt,name=era_inflight_count,json=eraInflightCount" json:"era_inflight_count,omitempty"` + EraReportedFailures *uint64 `protobuf:"varint,62,opt,name=era_reported_failures,json=eraReportedFailures" json:"era_reported_failures,omitempty"` + EraReportedSuccesses *uint64 `protobuf:"varint,63,opt,name=era_reported_successes,json=eraReportedSuccesses" json:"era_reported_successes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedTotal() uint64 { + if m != nil && m.DroppedTotal != nil { + return *m.DroppedTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedBadRead() uint64 { + if m != nil && m.DroppedBadRead != nil { + return *m.DroppedBadRead + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedIpHeader() uint64 { + if m != nil && m.DroppedIpHeader != nil { + return *m.DroppedIpHeader + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedShortPacket() uint64 { + if m != nil && m.DroppedShortPacket != nil { + return *m.DroppedShortPacket + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedNoInterface() uint64 { + if m != nil && m.DroppedNoInterface != nil { + return *m.DroppedNoInterface + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedNoRoutingInstance() uint64 { + if m != nil && m.DroppedNoRoutingInstance != nil { + return *m.DroppedNoRoutingInstance + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedNoSafd() uint64 { + if m != nil && m.DroppedNoSafd != nil { + return *m.DroppedNoSafd + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedNoMemory() uint64 { + if m != nil && m.DroppedNoMemory != nil { + return *m.DroppedNoMemory + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetDroppedRecoveryInProgress() uint64 { + if m != nil && m.DroppedRecoveryInProgress != nil { + return *m.DroppedRecoveryInProgress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetEraInflightCount() uint64 { + if m != nil && m.EraInflightCount != nil { + return *m.EraInflightCount + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetEraReportedFailures() uint64 { + if m != nil && m.EraReportedFailures != nil { + return *m.EraReportedFailures + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) GetEraReportedSuccesses() uint64 { + if m != nil && m.EraReportedSuccesses != nil { + return *m.EraReportedSuccesses + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType struct { + RoutingInstance []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList `protobuf:"bytes,151,rep,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) GetRoutingInstance() []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList { + if m != nil { + return m.RoutingInstance + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList struct { + RiName *string `protobuf:"bytes,51,opt,name=ri_name,json=riName" json:"ri_name,omitempty"` + Server *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType `protobuf:"bytes,151,opt,name=server" json:"server,omitempty"` + Relay *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType `protobuf:"bytes,152,opt,name=relay" json:"relay,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) GetRiName() string { + if m != nil && m.RiName != nil { + return *m.RiName + } + return "" +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) GetServer() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType { + if m != nil { + return m.Server + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) GetRelay() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType { + if m != nil { + return m.Relay + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType struct { + Statistics *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + Bindings *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType `protobuf:"bytes,152,opt,name=bindings" json:"bindings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) GetStatistics() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) GetBindings() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType { + if m != nil { + return m.Bindings + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType struct { + DroppedV6ServerTotal *uint64 `protobuf:"varint,51,opt,name=dropped_v6server_total,json=droppedV6serverTotal" json:"dropped_v6server_total,omitempty"` + DroppedV6ServerNoSafd *uint64 `protobuf:"varint,52,opt,name=dropped_v6server_no_safd,json=droppedV6serverNoSafd" json:"dropped_v6server_no_safd,omitempty"` + DroppedV6ServerNoRoutingInstance *uint64 `protobuf:"varint,53,opt,name=dropped_v6server_no_routing_instance,json=droppedV6serverNoRoutingInstance" json:"dropped_v6server_no_routing_instance,omitempty"` + DroppedV6ServerBadSend *uint64 `protobuf:"varint,54,opt,name=dropped_v6server_bad_send,json=droppedV6serverBadSend" json:"dropped_v6server_bad_send,omitempty"` + DroppedV6ServerShortPacket *uint64 `protobuf:"varint,55,opt,name=dropped_v6server_short_packet,json=droppedV6serverShortPacket" json:"dropped_v6server_short_packet,omitempty"` + DroppedV6ServerBadMsgtype *uint64 `protobuf:"varint,56,opt,name=dropped_v6server_bad_msgtype,json=droppedV6serverBadMsgtype" json:"dropped_v6server_bad_msgtype,omitempty"` + DroppedV6ServerBadOptions *uint64 `protobuf:"varint,57,opt,name=dropped_v6server_bad_options,json=droppedV6serverBadOptions" json:"dropped_v6server_bad_options,omitempty"` + DroppedV6ServerBadSrcaddress *uint64 `protobuf:"varint,58,opt,name=dropped_v6server_bad_srcaddress,json=droppedV6serverBadSrcaddress" json:"dropped_v6server_bad_srcaddress,omitempty"` + DroppedV6ServerRelayHopCount *uint64 `protobuf:"varint,59,opt,name=dropped_v6server_relay_hop_count,json=droppedV6serverRelayHopCount" json:"dropped_v6server_relay_hop_count,omitempty"` + DroppedV6ServerBadUdpChecksum *uint64 `protobuf:"varint,60,opt,name=dropped_v6server_bad_udp_checksum,json=droppedV6serverBadUdpChecksum" json:"dropped_v6server_bad_udp_checksum,omitempty"` + DroppedV6ServerNoClientId *uint64 `protobuf:"varint,61,opt,name=dropped_v6server_no_client_id,json=droppedV6serverNoClientId" json:"dropped_v6server_no_client_id,omitempty"` + DroppedV6ServerStrictReconfigure *uint64 `protobuf:"varint,62,opt,name=dropped_v6server_strict_reconfigure,json=droppedV6serverStrictReconfigure" json:"dropped_v6server_strict_reconfigure,omitempty"` + DroppedV6ServerOption_18 *uint64 `protobuf:"varint,63,opt,name=dropped_v6server_option_18,json=droppedV6serverOption18" json:"dropped_v6server_option_18,omitempty"` + DroppedV6ServerAuthentication *uint64 `protobuf:"varint,64,opt,name=dropped_v6server_authentication,json=droppedV6serverAuthentication" json:"dropped_v6server_authentication,omitempty"` + DroppedV6ServerDynamicProfile *uint64 `protobuf:"varint,65,opt,name=dropped_v6server_dynamic_profile,json=droppedV6serverDynamicProfile" json:"dropped_v6server_dynamic_profile,omitempty"` + DroppedV6ServerLicense *uint64 `protobuf:"varint,66,opt,name=dropped_v6server_license,json=droppedV6serverLicense" json:"dropped_v6server_license,omitempty"` + DroppedV6ServerInactiveVlan *uint64 `protobuf:"varint,67,opt,name=dropped_v6server_inactive_vlan,json=droppedV6serverInactiveVlan" json:"dropped_v6server_inactive_vlan,omitempty"` + DroppedV6ServerEraStartFailed *uint64 `protobuf:"varint,68,opt,name=dropped_v6server_era_start_failed,json=droppedV6serverEraStartFailed" json:"dropped_v6server_era_start_failed,omitempty"` + DroppedV6ServerClientLookup *uint64 `protobuf:"varint,69,opt,name=dropped_v6server_client_lookup,json=droppedV6serverClientLookup" json:"dropped_v6server_client_lookup,omitempty"` + DroppedV6ServerLeaseTimeViolation *uint64 `protobuf:"varint,70,opt,name=dropped_v6server_lease_time_violation,json=droppedV6serverLeaseTimeViolation" json:"dropped_v6server_lease_time_violation,omitempty"` + AdvertiseDelayed *uint64 `protobuf:"varint,71,opt,name=advertise_delayed,json=advertiseDelayed" json:"advertise_delayed,omitempty"` + AdvertiseQueued *uint64 `protobuf:"varint,72,opt,name=advertise_queued,json=advertiseQueued" json:"advertise_queued,omitempty"` + AdvertiseTotal *uint64 `protobuf:"varint,73,opt,name=advertise_total,json=advertiseTotal" json:"advertise_total,omitempty"` + MsgRecvV6ServerDhcpv6Decline *uint64 `protobuf:"varint,74,opt,name=msg_recv_v6server_dhcpv6_decline,json=msgRecvV6serverDhcpv6Decline" json:"msg_recv_v6server_dhcpv6_decline,omitempty"` + MsgRecvV6ServerDhcpv6Solicit *uint64 `protobuf:"varint,75,opt,name=msg_recv_v6server_dhcpv6_solicit,json=msgRecvV6serverDhcpv6Solicit" json:"msg_recv_v6server_dhcpv6_solicit,omitempty"` + MsgRecvV6ServerDhcpv6InformationRequest *uint64 `protobuf:"varint,76,opt,name=msg_recv_v6server_dhcpv6_information_request,json=msgRecvV6serverDhcpv6InformationRequest" json:"msg_recv_v6server_dhcpv6_information_request,omitempty"` + MsgRecvV6ServerDhcpv6Release *uint64 `protobuf:"varint,77,opt,name=msg_recv_v6server_dhcpv6_release,json=msgRecvV6serverDhcpv6Release" json:"msg_recv_v6server_dhcpv6_release,omitempty"` + MsgRecvV6ServerDhcpv6Request *uint64 `protobuf:"varint,78,opt,name=msg_recv_v6server_dhcpv6_request,json=msgRecvV6serverDhcpv6Request" json:"msg_recv_v6server_dhcpv6_request,omitempty"` + MsgRecvV6ServerDhcpv6Confirm *uint64 `protobuf:"varint,79,opt,name=msg_recv_v6server_dhcpv6_confirm,json=msgRecvV6serverDhcpv6Confirm" json:"msg_recv_v6server_dhcpv6_confirm,omitempty"` + MsgRecvV6ServerDhcpv6Renew *uint64 `protobuf:"varint,80,opt,name=msg_recv_v6server_dhcpv6_renew,json=msgRecvV6serverDhcpv6Renew" json:"msg_recv_v6server_dhcpv6_renew,omitempty"` + MsgRecvV6ServerDhcpv6Rebind *uint64 `protobuf:"varint,81,opt,name=msg_recv_v6server_dhcpv6_rebind,json=msgRecvV6serverDhcpv6Rebind" json:"msg_recv_v6server_dhcpv6_rebind,omitempty"` + MsgRecvV6ServerDhcpv6RelayForw *uint64 `protobuf:"varint,82,opt,name=msg_recv_v6server_dhcpv6_relay_forw,json=msgRecvV6serverDhcpv6RelayForw" json:"msg_recv_v6server_dhcpv6_relay_forw,omitempty"` + MsgRecvV6ServerDhcpv6Leasequery *uint64 `protobuf:"varint,83,opt,name=msg_recv_v6server_dhcpv6_leasequery,json=msgRecvV6serverDhcpv6Leasequery" json:"msg_recv_v6server_dhcpv6_leasequery,omitempty"` + MsgSentV6ServerAdvertise *uint64 `protobuf:"varint,84,opt,name=msg_sent_v6server_advertise,json=msgSentV6serverAdvertise" json:"msg_sent_v6server_advertise,omitempty"` + MsgSentV6ServerReply *uint64 `protobuf:"varint,85,opt,name=msg_sent_v6server_reply,json=msgSentV6serverReply" json:"msg_sent_v6server_reply,omitempty"` + MsgSentV6ServerLogicalNak *uint64 `protobuf:"varint,86,opt,name=msg_sent_v6server_logical_nak,json=msgSentV6serverLogicalNak" json:"msg_sent_v6server_logical_nak,omitempty"` + MsgSentV6ServerReconfigure *uint64 `protobuf:"varint,87,opt,name=msg_sent_v6server_reconfigure,json=msgSentV6serverReconfigure" json:"msg_sent_v6server_reconfigure,omitempty"` + MsgSentV6ServerRelayRepl *uint64 `protobuf:"varint,88,opt,name=msg_sent_v6server_relay_repl,json=msgSentV6serverRelayRepl" json:"msg_sent_v6server_relay_repl,omitempty"` + MsgSentV6ServerLeasequeryRepl *uint64 `protobuf:"varint,89,opt,name=msg_sent_v6server_leasequery_repl,json=msgSentV6serverLeasequeryRepl" json:"msg_sent_v6server_leasequery_repl,omitempty"` + MsgSentV6ServerLeasequeryData *uint64 `protobuf:"varint,90,opt,name=msg_sent_v6server_leasequery_data,json=msgSentV6serverLeasequeryData" json:"msg_sent_v6server_leasequery_data,omitempty"` + MsgSentV6ServerLeasequeryDone *uint64 `protobuf:"varint,91,opt,name=msg_sent_v6server_leasequery_done,json=msgSentV6serverLeasequeryDone" json:"msg_sent_v6server_leasequery_done,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerTotal() uint64 { + if m != nil && m.DroppedV6ServerTotal != nil { + return *m.DroppedV6ServerTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerNoSafd() uint64 { + if m != nil && m.DroppedV6ServerNoSafd != nil { + return *m.DroppedV6ServerNoSafd + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerNoRoutingInstance() uint64 { + if m != nil && m.DroppedV6ServerNoRoutingInstance != nil { + return *m.DroppedV6ServerNoRoutingInstance + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerBadSend() uint64 { + if m != nil && m.DroppedV6ServerBadSend != nil { + return *m.DroppedV6ServerBadSend + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerShortPacket() uint64 { + if m != nil && m.DroppedV6ServerShortPacket != nil { + return *m.DroppedV6ServerShortPacket + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerBadMsgtype() uint64 { + if m != nil && m.DroppedV6ServerBadMsgtype != nil { + return *m.DroppedV6ServerBadMsgtype + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerBadOptions() uint64 { + if m != nil && m.DroppedV6ServerBadOptions != nil { + return *m.DroppedV6ServerBadOptions + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerBadSrcaddress() uint64 { + if m != nil && m.DroppedV6ServerBadSrcaddress != nil { + return *m.DroppedV6ServerBadSrcaddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerRelayHopCount() uint64 { + if m != nil && m.DroppedV6ServerRelayHopCount != nil { + return *m.DroppedV6ServerRelayHopCount + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerBadUdpChecksum() uint64 { + if m != nil && m.DroppedV6ServerBadUdpChecksum != nil { + return *m.DroppedV6ServerBadUdpChecksum + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerNoClientId() uint64 { + if m != nil && m.DroppedV6ServerNoClientId != nil { + return *m.DroppedV6ServerNoClientId + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerStrictReconfigure() uint64 { + if m != nil && m.DroppedV6ServerStrictReconfigure != nil { + return *m.DroppedV6ServerStrictReconfigure + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerOption_18() uint64 { + if m != nil && m.DroppedV6ServerOption_18 != nil { + return *m.DroppedV6ServerOption_18 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerAuthentication() uint64 { + if m != nil && m.DroppedV6ServerAuthentication != nil { + return *m.DroppedV6ServerAuthentication + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerDynamicProfile() uint64 { + if m != nil && m.DroppedV6ServerDynamicProfile != nil { + return *m.DroppedV6ServerDynamicProfile + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerLicense() uint64 { + if m != nil && m.DroppedV6ServerLicense != nil { + return *m.DroppedV6ServerLicense + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerInactiveVlan() uint64 { + if m != nil && m.DroppedV6ServerInactiveVlan != nil { + return *m.DroppedV6ServerInactiveVlan + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerEraStartFailed() uint64 { + if m != nil && m.DroppedV6ServerEraStartFailed != nil { + return *m.DroppedV6ServerEraStartFailed + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerClientLookup() uint64 { + if m != nil && m.DroppedV6ServerClientLookup != nil { + return *m.DroppedV6ServerClientLookup + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetDroppedV6ServerLeaseTimeViolation() uint64 { + if m != nil && m.DroppedV6ServerLeaseTimeViolation != nil { + return *m.DroppedV6ServerLeaseTimeViolation + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetAdvertiseDelayed() uint64 { + if m != nil && m.AdvertiseDelayed != nil { + return *m.AdvertiseDelayed + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetAdvertiseQueued() uint64 { + if m != nil && m.AdvertiseQueued != nil { + return *m.AdvertiseQueued + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetAdvertiseTotal() uint64 { + if m != nil && m.AdvertiseTotal != nil { + return *m.AdvertiseTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Decline() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Decline != nil { + return *m.MsgRecvV6ServerDhcpv6Decline + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Solicit() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Solicit != nil { + return *m.MsgRecvV6ServerDhcpv6Solicit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6InformationRequest() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6InformationRequest != nil { + return *m.MsgRecvV6ServerDhcpv6InformationRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Release() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Release != nil { + return *m.MsgRecvV6ServerDhcpv6Release + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Request() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Request != nil { + return *m.MsgRecvV6ServerDhcpv6Request + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Confirm() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Confirm != nil { + return *m.MsgRecvV6ServerDhcpv6Confirm + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Renew() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Renew != nil { + return *m.MsgRecvV6ServerDhcpv6Renew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Rebind() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Rebind != nil { + return *m.MsgRecvV6ServerDhcpv6Rebind + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6RelayForw() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6RelayForw != nil { + return *m.MsgRecvV6ServerDhcpv6RelayForw + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgRecvV6ServerDhcpv6Leasequery() uint64 { + if m != nil && m.MsgRecvV6ServerDhcpv6Leasequery != nil { + return *m.MsgRecvV6ServerDhcpv6Leasequery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerAdvertise() uint64 { + if m != nil && m.MsgSentV6ServerAdvertise != nil { + return *m.MsgSentV6ServerAdvertise + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerReply() uint64 { + if m != nil && m.MsgSentV6ServerReply != nil { + return *m.MsgSentV6ServerReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerLogicalNak() uint64 { + if m != nil && m.MsgSentV6ServerLogicalNak != nil { + return *m.MsgSentV6ServerLogicalNak + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerReconfigure() uint64 { + if m != nil && m.MsgSentV6ServerReconfigure != nil { + return *m.MsgSentV6ServerReconfigure + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerRelayRepl() uint64 { + if m != nil && m.MsgSentV6ServerRelayRepl != nil { + return *m.MsgSentV6ServerRelayRepl + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerLeasequeryRepl() uint64 { + if m != nil && m.MsgSentV6ServerLeasequeryRepl != nil { + return *m.MsgSentV6ServerLeasequeryRepl + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerLeasequeryData() uint64 { + if m != nil && m.MsgSentV6ServerLeasequeryData != nil { + return *m.MsgSentV6ServerLeasequeryData + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) GetMsgSentV6ServerLeasequeryDone() uint64 { + if m != nil && m.MsgSentV6ServerLeasequeryDone != nil { + return *m.MsgSentV6ServerLeasequeryDone + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType struct { + BindingStateV6ServerBinding *uint64 `protobuf:"varint,51,opt,name=binding_state_v6server_binding,json=bindingStateV6serverBinding" json:"binding_state_v6server_binding,omitempty"` + BindingStateV6ServerInit *uint64 `protobuf:"varint,52,opt,name=binding_state_v6server_init,json=bindingStateV6serverInit" json:"binding_state_v6server_init,omitempty"` + BindingStateV6ServerBound *uint64 `protobuf:"varint,53,opt,name=binding_state_v6server_bound,json=bindingStateV6serverBound" json:"binding_state_v6server_bound,omitempty"` + BindingStateV6ServerSelecting *uint64 `protobuf:"varint,54,opt,name=binding_state_v6server_selecting,json=bindingStateV6serverSelecting" json:"binding_state_v6server_selecting,omitempty"` + BindingStateV6ServerRequesting *uint64 `protobuf:"varint,55,opt,name=binding_state_v6server_requesting,json=bindingStateV6serverRequesting" json:"binding_state_v6server_requesting,omitempty"` + BindingStateV6ServerRenew *uint64 `protobuf:"varint,56,opt,name=binding_state_v6server_renew,json=bindingStateV6serverRenew" json:"binding_state_v6server_renew,omitempty"` + BindingStateV6ServerRelease *uint64 `protobuf:"varint,57,opt,name=binding_state_v6server_release,json=bindingStateV6serverRelease" json:"binding_state_v6server_release,omitempty"` + BindingStateServerRestoring *uint64 `protobuf:"varint,58,opt,name=binding_state_server_restoring,json=bindingStateServerRestoring" json:"binding_state_server_restoring,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 0, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerBinding() uint64 { + if m != nil && m.BindingStateV6ServerBinding != nil { + return *m.BindingStateV6ServerBinding + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerInit() uint64 { + if m != nil && m.BindingStateV6ServerInit != nil { + return *m.BindingStateV6ServerInit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerBound() uint64 { + if m != nil && m.BindingStateV6ServerBound != nil { + return *m.BindingStateV6ServerBound + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerSelecting() uint64 { + if m != nil && m.BindingStateV6ServerSelecting != nil { + return *m.BindingStateV6ServerSelecting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerRequesting() uint64 { + if m != nil && m.BindingStateV6ServerRequesting != nil { + return *m.BindingStateV6ServerRequesting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerRenew() uint64 { + if m != nil && m.BindingStateV6ServerRenew != nil { + return *m.BindingStateV6ServerRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateV6ServerRelease() uint64 { + if m != nil && m.BindingStateV6ServerRelease != nil { + return *m.BindingStateV6ServerRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) GetBindingStateServerRestoring() uint64 { + if m != nil && m.BindingStateServerRestoring != nil { + return *m.BindingStateServerRestoring + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType struct { + Statistics *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + Bindings *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType `protobuf:"bytes,152,opt,name=bindings" json:"bindings,omitempty"` + Servers *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType `protobuf:"bytes,153,opt,name=servers" json:"servers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) GetStatistics() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) GetBindings() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType { + if m != nil { + return m.Bindings + } + return nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) GetServers() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType { + if m != nil { + return m.Servers + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType struct { + DroppedV6RelayTotal *uint64 `protobuf:"varint,51,opt,name=dropped_v6relay_total,json=droppedV6relayTotal" json:"dropped_v6relay_total,omitempty"` + DroppedV6RelayNoSafd *uint64 `protobuf:"varint,52,opt,name=dropped_v6relay_no_safd,json=droppedV6relayNoSafd" json:"dropped_v6relay_no_safd,omitempty"` + DroppedV6RelayNoRoutingInstance *uint64 `protobuf:"varint,53,opt,name=dropped_v6relay_no_routing_instance,json=droppedV6relayNoRoutingInstance" json:"dropped_v6relay_no_routing_instance,omitempty"` + DroppedV6RelayBadSend *uint64 `protobuf:"varint,54,opt,name=dropped_v6relay_bad_send,json=droppedV6relayBadSend" json:"dropped_v6relay_bad_send,omitempty"` + DroppedV6RelayShortPacket *uint64 `protobuf:"varint,55,opt,name=dropped_v6relay_short_packet,json=droppedV6relayShortPacket" json:"dropped_v6relay_short_packet,omitempty"` + DroppedV6RelayBadMsgtype *uint64 `protobuf:"varint,56,opt,name=dropped_v6relay_bad_msgtype,json=droppedV6relayBadMsgtype" json:"dropped_v6relay_bad_msgtype,omitempty"` + DroppedV6RelayBadOptions *uint64 `protobuf:"varint,57,opt,name=dropped_v6relay_bad_options,json=droppedV6relayBadOptions" json:"dropped_v6relay_bad_options,omitempty"` + DroppedV6RelayBadSrcaddress *uint64 `protobuf:"varint,58,opt,name=dropped_v6relay_bad_srcaddress,json=droppedV6relayBadSrcaddress" json:"dropped_v6relay_bad_srcaddress,omitempty"` + DroppedV6RelayRelayHopCount *uint64 `protobuf:"varint,59,opt,name=dropped_v6relay_relay_hop_count,json=droppedV6relayRelayHopCount" json:"dropped_v6relay_relay_hop_count,omitempty"` + DroppedV6RelayBadUdpChecksum *uint64 `protobuf:"varint,60,opt,name=dropped_v6relay_bad_udp_checksum,json=droppedV6relayBadUdpChecksum" json:"dropped_v6relay_bad_udp_checksum,omitempty"` + DroppedV6RelayNoClientId *uint64 `protobuf:"varint,61,opt,name=dropped_v6relay_no_client_id,json=droppedV6relayNoClientId" json:"dropped_v6relay_no_client_id,omitempty"` + DroppedV6RelayStrictReconfigure *uint64 `protobuf:"varint,62,opt,name=dropped_v6relay_strict_reconfigure,json=droppedV6relayStrictReconfigure" json:"dropped_v6relay_strict_reconfigure,omitempty"` + DroppedV6RelayRelayOption *uint64 `protobuf:"varint,63,opt,name=dropped_v6relay_relay_option,json=droppedV6relayRelayOption" json:"dropped_v6relay_relay_option,omitempty"` + DroppedV6RelayOption_18 *uint64 `protobuf:"varint,64,opt,name=dropped_v6relay_option_18,json=droppedV6relayOption18" json:"dropped_v6relay_option_18,omitempty"` + DroppedV6RelayOption_37 *uint64 `protobuf:"varint,65,opt,name=dropped_v6relay_option_37,json=droppedV6relayOption37" json:"dropped_v6relay_option_37,omitempty"` + DroppedV6RelayAuthentication *uint64 `protobuf:"varint,66,opt,name=dropped_v6relay_authentication,json=droppedV6relayAuthentication" json:"dropped_v6relay_authentication,omitempty"` + DroppedV6RelayDynamicProfile *uint64 `protobuf:"varint,67,opt,name=dropped_v6relay_dynamic_profile,json=droppedV6relayDynamicProfile" json:"dropped_v6relay_dynamic_profile,omitempty"` + DroppedV6RelayLicense *uint64 `protobuf:"varint,68,opt,name=dropped_v6relay_license,json=droppedV6relayLicense" json:"dropped_v6relay_license,omitempty"` + DroppedV6RelayInactiveVlan *uint64 `protobuf:"varint,69,opt,name=dropped_v6relay_inactive_vlan,json=droppedV6relayInactiveVlan" json:"dropped_v6relay_inactive_vlan,omitempty"` + DroppedV6RelayEraStartFailed *uint64 `protobuf:"varint,70,opt,name=dropped_v6relay_era_start_failed,json=droppedV6relayEraStartFailed" json:"dropped_v6relay_era_start_failed,omitempty"` + DroppedV6RelayClientLookup *uint64 `protobuf:"varint,71,opt,name=dropped_v6relay_client_lookup,json=droppedV6relayClientLookup" json:"dropped_v6relay_client_lookup,omitempty"` + DroppedV6RelayLeaseTimeViolation *uint64 `protobuf:"varint,72,opt,name=dropped_v6relay_lease_time_violation,json=droppedV6relayLeaseTimeViolation" json:"dropped_v6relay_lease_time_violation,omitempty"` + DroppedV6RelayLeasequeryReplNoClientData *uint64 `protobuf:"varint,73,opt,name=dropped_v6relay_leasequery_repl_no_client_data,json=droppedV6relayLeasequeryReplNoClientData" json:"dropped_v6relay_leasequery_repl_no_client_data,omitempty"` + DroppedV6RelayLeasequeryReplNoInterfaceid *uint64 `protobuf:"varint,74,opt,name=dropped_v6relay_leasequery_repl_no_interfaceid,json=droppedV6relayLeasequeryReplNoInterfaceid" json:"dropped_v6relay_leasequery_repl_no_interfaceid,omitempty"` + DroppedV6RelayLeasequeryReplWithClientLink *uint64 `protobuf:"varint,75,opt,name=dropped_v6relay_leasequery_repl_with_client_link,json=droppedV6relayLeasequeryReplWithClientLink" json:"dropped_v6relay_leasequery_repl_with_client_link,omitempty"` + DroppedV6RelayLeasequeryReplNoRelayData *uint64 `protobuf:"varint,76,opt,name=dropped_v6relay_leasequery_repl_no_relay_data,json=droppedV6relayLeasequeryReplNoRelayData" json:"dropped_v6relay_leasequery_repl_no_relay_data,omitempty"` + DroppedV6RelayLeasequeryReplWithHopCnt *uint64 `protobuf:"varint,77,opt,name=dropped_v6relay_leasequery_repl_with_hop_cnt,json=droppedV6relayLeasequeryReplWithHopCnt" json:"dropped_v6relay_leasequery_repl_with_hop_cnt,omitempty"` + DroppedV6RelayLeasequeryReplWithErrorCode *uint64 `protobuf:"varint,78,opt,name=dropped_v6relay_leasequery_repl_with_error_code,json=droppedV6relayLeasequeryReplWithErrorCode" json:"dropped_v6relay_leasequery_repl_with_error_code,omitempty"` + DroppedV6RelayLeasequeryReplWithQueryTerm *uint64 `protobuf:"varint,79,opt,name=dropped_v6relay_leasequery_repl_with_query_term,json=droppedV6relayLeasequeryReplWithQueryTerm" json:"dropped_v6relay_leasequery_repl_with_query_term,omitempty"` + DroppedV6RelayOlderLeasequeryReply *uint64 `protobuf:"varint,80,opt,name=dropped_v6relay_older_leasequery_reply,json=droppedV6relayOlderLeasequeryReply" json:"dropped_v6relay_older_leasequery_reply,omitempty"` + DroppedV6RelayAbortLeasequeryReplyProc *uint64 `protobuf:"varint,81,opt,name=dropped_v6relay_abort_leasequery_reply_proc,json=droppedV6relayAbortLeasequeryReplyProc" json:"dropped_v6relay_abort_leasequery_reply_proc,omitempty"` + DroppedV6RelayDuringLeasequeryReply *uint64 `protobuf:"varint,82,opt,name=dropped_v6relay_during_leasequery_reply,json=droppedV6relayDuringLeasequeryReply" json:"dropped_v6relay_during_leasequery_reply,omitempty"` + DroppedV6RelayRelaySourceNoLpbkInterface *uint64 `protobuf:"varint,83,opt,name=dropped_v6relay_relay_source_no_lpbk_interface,json=droppedV6relayRelaySourceNoLpbkInterface" json:"dropped_v6relay_relay_source_no_lpbk_interface,omitempty"` + MsgRecvV6RelayDecline *uint64 `protobuf:"varint,84,opt,name=msg_recv_v6relay_decline,json=msgRecvV6relayDecline" json:"msg_recv_v6relay_decline,omitempty"` + MsgRecvV6RelaySolicit *uint64 `protobuf:"varint,85,opt,name=msg_recv_v6relay_solicit,json=msgRecvV6relaySolicit" json:"msg_recv_v6relay_solicit,omitempty"` + MsgRecvV6RelayInformationRequest *uint64 `protobuf:"varint,86,opt,name=msg_recv_v6relay_information_request,json=msgRecvV6relayInformationRequest" json:"msg_recv_v6relay_information_request,omitempty"` + MsgRecvV6RelayRelease *uint64 `protobuf:"varint,87,opt,name=msg_recv_v6relay_release,json=msgRecvV6relayRelease" json:"msg_recv_v6relay_release,omitempty"` + MsgRecvV6RelayRequest *uint64 `protobuf:"varint,88,opt,name=msg_recv_v6relay_request,json=msgRecvV6relayRequest" json:"msg_recv_v6relay_request,omitempty"` + MsgRecvV6RelayConfirm *uint64 `protobuf:"varint,89,opt,name=msg_recv_v6relay_confirm,json=msgRecvV6relayConfirm" json:"msg_recv_v6relay_confirm,omitempty"` + MsgRecvV6RelayRenew *uint64 `protobuf:"varint,90,opt,name=msg_recv_v6relay_renew,json=msgRecvV6relayRenew" json:"msg_recv_v6relay_renew,omitempty"` + MsgRecvV6RelayRebind *uint64 `protobuf:"varint,91,opt,name=msg_recv_v6relay_rebind,json=msgRecvV6relayRebind" json:"msg_recv_v6relay_rebind,omitempty"` + MsgRecvV6RelayRelayForw *uint64 `protobuf:"varint,92,opt,name=msg_recv_v6relay_relay_forw,json=msgRecvV6relayRelayForw" json:"msg_recv_v6relay_relay_forw,omitempty"` + MsgRecvV6RelayLeasequeryRepl *uint64 `protobuf:"varint,93,opt,name=msg_recv_v6relay_leasequery_repl,json=msgRecvV6relayLeasequeryRepl" json:"msg_recv_v6relay_leasequery_repl,omitempty"` + MsgRecvV6RelayLeasequeryData *uint64 `protobuf:"varint,94,opt,name=msg_recv_v6relay_leasequery_data,json=msgRecvV6relayLeasequeryData" json:"msg_recv_v6relay_leasequery_data,omitempty"` + MsgRecvV6RelayLeasequeryDone *uint64 `protobuf:"varint,95,opt,name=msg_recv_v6relay_leasequery_done,json=msgRecvV6relayLeasequeryDone" json:"msg_recv_v6relay_leasequery_done,omitempty"` + MsgRecvV6RelayAdvertise *uint64 `protobuf:"varint,96,opt,name=msg_recv_v6relay_advertise,json=msgRecvV6relayAdvertise" json:"msg_recv_v6relay_advertise,omitempty"` + MsgRecvV6RelayReply *uint64 `protobuf:"varint,97,opt,name=msg_recv_v6relay_reply,json=msgRecvV6relayReply" json:"msg_recv_v6relay_reply,omitempty"` + MsgRecvV6RelayReconfigure *uint64 `protobuf:"varint,98,opt,name=msg_recv_v6relay_reconfigure,json=msgRecvV6relayReconfigure" json:"msg_recv_v6relay_reconfigure,omitempty"` + MsgRecvV6RelayRelayRepl *uint64 `protobuf:"varint,99,opt,name=msg_recv_v6relay_relay_repl,json=msgRecvV6relayRelayRepl" json:"msg_recv_v6relay_relay_repl,omitempty"` + MsgRecvV6RelayLeasequery *uint64 `protobuf:"varint,100,opt,name=msg_recv_v6relay_leasequery,json=msgRecvV6relayLeasequery" json:"msg_recv_v6relay_leasequery,omitempty"` + MsgSentV6RelayReply *uint64 `protobuf:"varint,101,opt,name=msg_sent_v6relay_reply,json=msgSentV6relayReply" json:"msg_sent_v6relay_reply,omitempty"` + MsgSentV6RelayReconfigure *uint64 `protobuf:"varint,102,opt,name=msg_sent_v6relay_reconfigure,json=msgSentV6relayReconfigure" json:"msg_sent_v6relay_reconfigure,omitempty"` + MsgSentV6RelayRelayRepl *uint64 `protobuf:"varint,103,opt,name=msg_sent_v6relay_relay_repl,json=msgSentV6relayRelayRepl" json:"msg_sent_v6relay_relay_repl,omitempty"` + MsgSentV6RelayLeasequery *uint64 `protobuf:"varint,104,opt,name=msg_sent_v6relay_leasequery,json=msgSentV6relayLeasequery" json:"msg_sent_v6relay_leasequery,omitempty"` + MsgSentV6RelayDecline *uint64 `protobuf:"varint,105,opt,name=msg_sent_v6relay_decline,json=msgSentV6relayDecline" json:"msg_sent_v6relay_decline,omitempty"` + MsgSentV6RelaySolicit *uint64 `protobuf:"varint,106,opt,name=msg_sent_v6relay_solicit,json=msgSentV6relaySolicit" json:"msg_sent_v6relay_solicit,omitempty"` + MsgSentV6RelayInformationRequest *uint64 `protobuf:"varint,107,opt,name=msg_sent_v6relay_information_request,json=msgSentV6relayInformationRequest" json:"msg_sent_v6relay_information_request,omitempty"` + MsgSentV6RelayRelease *uint64 `protobuf:"varint,108,opt,name=msg_sent_v6relay_release,json=msgSentV6relayRelease" json:"msg_sent_v6relay_release,omitempty"` + MsgSentV6RelayRequest *uint64 `protobuf:"varint,109,opt,name=msg_sent_v6relay_request,json=msgSentV6relayRequest" json:"msg_sent_v6relay_request,omitempty"` + MsgSentV6RelayConfirm *uint64 `protobuf:"varint,110,opt,name=msg_sent_v6relay_confirm,json=msgSentV6relayConfirm" json:"msg_sent_v6relay_confirm,omitempty"` + MsgSentV6RelayRenew *uint64 `protobuf:"varint,111,opt,name=msg_sent_v6relay_renew,json=msgSentV6relayRenew" json:"msg_sent_v6relay_renew,omitempty"` + MsgSentV6RelayRebind *uint64 `protobuf:"varint,112,opt,name=msg_sent_v6relay_rebind,json=msgSentV6relayRebind" json:"msg_sent_v6relay_rebind,omitempty"` + MsgSentV6RelayRelayForw *uint64 `protobuf:"varint,113,opt,name=msg_sent_v6relay_relay_forw,json=msgSentV6relayRelayForw" json:"msg_sent_v6relay_relay_forw,omitempty"` + MsgSentV6RelayLeasequeryRepl *uint64 `protobuf:"varint,114,opt,name=msg_sent_v6relay_leasequery_repl,json=msgSentV6relayLeasequeryRepl" json:"msg_sent_v6relay_leasequery_repl,omitempty"` + MsgSentV6RelayLeasequeryData *uint64 `protobuf:"varint,115,opt,name=msg_sent_v6relay_leasequery_data,json=msgSentV6relayLeasequeryData" json:"msg_sent_v6relay_leasequery_data,omitempty"` + MsgSentV6RelayLeasequeryDone *uint64 `protobuf:"varint,116,opt,name=msg_sent_v6relay_leasequery_done,json=msgSentV6relayLeasequeryDone" json:"msg_sent_v6relay_leasequery_done,omitempty"` + V6RelayFwdTotal *uint64 `protobuf:"varint,117,opt,name=v6relay_fwd_total,json=v6relayFwdTotal" json:"v6relay_fwd_total,omitempty"` + V6RelayFwdRequest *uint64 `protobuf:"varint,118,opt,name=v6relay_fwd_request,json=v6relayFwdRequest" json:"v6relay_fwd_request,omitempty"` + V6RelayFwdReply *uint64 `protobuf:"varint,119,opt,name=v6relay_fwd_reply,json=v6relayFwdReply" json:"v6relay_fwd_reply,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 1, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayTotal() uint64 { + if m != nil && m.DroppedV6RelayTotal != nil { + return *m.DroppedV6RelayTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayNoSafd() uint64 { + if m != nil && m.DroppedV6RelayNoSafd != nil { + return *m.DroppedV6RelayNoSafd + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayNoRoutingInstance() uint64 { + if m != nil && m.DroppedV6RelayNoRoutingInstance != nil { + return *m.DroppedV6RelayNoRoutingInstance + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayBadSend() uint64 { + if m != nil && m.DroppedV6RelayBadSend != nil { + return *m.DroppedV6RelayBadSend + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayShortPacket() uint64 { + if m != nil && m.DroppedV6RelayShortPacket != nil { + return *m.DroppedV6RelayShortPacket + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayBadMsgtype() uint64 { + if m != nil && m.DroppedV6RelayBadMsgtype != nil { + return *m.DroppedV6RelayBadMsgtype + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayBadOptions() uint64 { + if m != nil && m.DroppedV6RelayBadOptions != nil { + return *m.DroppedV6RelayBadOptions + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayBadSrcaddress() uint64 { + if m != nil && m.DroppedV6RelayBadSrcaddress != nil { + return *m.DroppedV6RelayBadSrcaddress + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayRelayHopCount() uint64 { + if m != nil && m.DroppedV6RelayRelayHopCount != nil { + return *m.DroppedV6RelayRelayHopCount + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayBadUdpChecksum() uint64 { + if m != nil && m.DroppedV6RelayBadUdpChecksum != nil { + return *m.DroppedV6RelayBadUdpChecksum + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayNoClientId() uint64 { + if m != nil && m.DroppedV6RelayNoClientId != nil { + return *m.DroppedV6RelayNoClientId + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayStrictReconfigure() uint64 { + if m != nil && m.DroppedV6RelayStrictReconfigure != nil { + return *m.DroppedV6RelayStrictReconfigure + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayRelayOption() uint64 { + if m != nil && m.DroppedV6RelayRelayOption != nil { + return *m.DroppedV6RelayRelayOption + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayOption_18() uint64 { + if m != nil && m.DroppedV6RelayOption_18 != nil { + return *m.DroppedV6RelayOption_18 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayOption_37() uint64 { + if m != nil && m.DroppedV6RelayOption_37 != nil { + return *m.DroppedV6RelayOption_37 + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayAuthentication() uint64 { + if m != nil && m.DroppedV6RelayAuthentication != nil { + return *m.DroppedV6RelayAuthentication + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayDynamicProfile() uint64 { + if m != nil && m.DroppedV6RelayDynamicProfile != nil { + return *m.DroppedV6RelayDynamicProfile + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLicense() uint64 { + if m != nil && m.DroppedV6RelayLicense != nil { + return *m.DroppedV6RelayLicense + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayInactiveVlan() uint64 { + if m != nil && m.DroppedV6RelayInactiveVlan != nil { + return *m.DroppedV6RelayInactiveVlan + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayEraStartFailed() uint64 { + if m != nil && m.DroppedV6RelayEraStartFailed != nil { + return *m.DroppedV6RelayEraStartFailed + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayClientLookup() uint64 { + if m != nil && m.DroppedV6RelayClientLookup != nil { + return *m.DroppedV6RelayClientLookup + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeaseTimeViolation() uint64 { + if m != nil && m.DroppedV6RelayLeaseTimeViolation != nil { + return *m.DroppedV6RelayLeaseTimeViolation + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplNoClientData() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplNoClientData != nil { + return *m.DroppedV6RelayLeasequeryReplNoClientData + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplNoInterfaceid() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplNoInterfaceid != nil { + return *m.DroppedV6RelayLeasequeryReplNoInterfaceid + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplWithClientLink() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplWithClientLink != nil { + return *m.DroppedV6RelayLeasequeryReplWithClientLink + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplNoRelayData() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplNoRelayData != nil { + return *m.DroppedV6RelayLeasequeryReplNoRelayData + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplWithHopCnt() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplWithHopCnt != nil { + return *m.DroppedV6RelayLeasequeryReplWithHopCnt + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplWithErrorCode() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplWithErrorCode != nil { + return *m.DroppedV6RelayLeasequeryReplWithErrorCode + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayLeasequeryReplWithQueryTerm() uint64 { + if m != nil && m.DroppedV6RelayLeasequeryReplWithQueryTerm != nil { + return *m.DroppedV6RelayLeasequeryReplWithQueryTerm + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayOlderLeasequeryReply() uint64 { + if m != nil && m.DroppedV6RelayOlderLeasequeryReply != nil { + return *m.DroppedV6RelayOlderLeasequeryReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayAbortLeasequeryReplyProc() uint64 { + if m != nil && m.DroppedV6RelayAbortLeasequeryReplyProc != nil { + return *m.DroppedV6RelayAbortLeasequeryReplyProc + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayDuringLeasequeryReply() uint64 { + if m != nil && m.DroppedV6RelayDuringLeasequeryReply != nil { + return *m.DroppedV6RelayDuringLeasequeryReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetDroppedV6RelayRelaySourceNoLpbkInterface() uint64 { + if m != nil && m.DroppedV6RelayRelaySourceNoLpbkInterface != nil { + return *m.DroppedV6RelayRelaySourceNoLpbkInterface + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayDecline() uint64 { + if m != nil && m.MsgRecvV6RelayDecline != nil { + return *m.MsgRecvV6RelayDecline + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelaySolicit() uint64 { + if m != nil && m.MsgRecvV6RelaySolicit != nil { + return *m.MsgRecvV6RelaySolicit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayInformationRequest() uint64 { + if m != nil && m.MsgRecvV6RelayInformationRequest != nil { + return *m.MsgRecvV6RelayInformationRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayRelease() uint64 { + if m != nil && m.MsgRecvV6RelayRelease != nil { + return *m.MsgRecvV6RelayRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayRequest() uint64 { + if m != nil && m.MsgRecvV6RelayRequest != nil { + return *m.MsgRecvV6RelayRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayConfirm() uint64 { + if m != nil && m.MsgRecvV6RelayConfirm != nil { + return *m.MsgRecvV6RelayConfirm + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayRenew() uint64 { + if m != nil && m.MsgRecvV6RelayRenew != nil { + return *m.MsgRecvV6RelayRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayRebind() uint64 { + if m != nil && m.MsgRecvV6RelayRebind != nil { + return *m.MsgRecvV6RelayRebind + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayRelayForw() uint64 { + if m != nil && m.MsgRecvV6RelayRelayForw != nil { + return *m.MsgRecvV6RelayRelayForw + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayLeasequeryRepl() uint64 { + if m != nil && m.MsgRecvV6RelayLeasequeryRepl != nil { + return *m.MsgRecvV6RelayLeasequeryRepl + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayLeasequeryData() uint64 { + if m != nil && m.MsgRecvV6RelayLeasequeryData != nil { + return *m.MsgRecvV6RelayLeasequeryData + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayLeasequeryDone() uint64 { + if m != nil && m.MsgRecvV6RelayLeasequeryDone != nil { + return *m.MsgRecvV6RelayLeasequeryDone + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayAdvertise() uint64 { + if m != nil && m.MsgRecvV6RelayAdvertise != nil { + return *m.MsgRecvV6RelayAdvertise + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayReply() uint64 { + if m != nil && m.MsgRecvV6RelayReply != nil { + return *m.MsgRecvV6RelayReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayReconfigure() uint64 { + if m != nil && m.MsgRecvV6RelayReconfigure != nil { + return *m.MsgRecvV6RelayReconfigure + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayRelayRepl() uint64 { + if m != nil && m.MsgRecvV6RelayRelayRepl != nil { + return *m.MsgRecvV6RelayRelayRepl + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgRecvV6RelayLeasequery() uint64 { + if m != nil && m.MsgRecvV6RelayLeasequery != nil { + return *m.MsgRecvV6RelayLeasequery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayReply() uint64 { + if m != nil && m.MsgSentV6RelayReply != nil { + return *m.MsgSentV6RelayReply + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayReconfigure() uint64 { + if m != nil && m.MsgSentV6RelayReconfigure != nil { + return *m.MsgSentV6RelayReconfigure + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayRelayRepl() uint64 { + if m != nil && m.MsgSentV6RelayRelayRepl != nil { + return *m.MsgSentV6RelayRelayRepl + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayLeasequery() uint64 { + if m != nil && m.MsgSentV6RelayLeasequery != nil { + return *m.MsgSentV6RelayLeasequery + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayDecline() uint64 { + if m != nil && m.MsgSentV6RelayDecline != nil { + return *m.MsgSentV6RelayDecline + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelaySolicit() uint64 { + if m != nil && m.MsgSentV6RelaySolicit != nil { + return *m.MsgSentV6RelaySolicit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayInformationRequest() uint64 { + if m != nil && m.MsgSentV6RelayInformationRequest != nil { + return *m.MsgSentV6RelayInformationRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayRelease() uint64 { + if m != nil && m.MsgSentV6RelayRelease != nil { + return *m.MsgSentV6RelayRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayRequest() uint64 { + if m != nil && m.MsgSentV6RelayRequest != nil { + return *m.MsgSentV6RelayRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayConfirm() uint64 { + if m != nil && m.MsgSentV6RelayConfirm != nil { + return *m.MsgSentV6RelayConfirm + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayRenew() uint64 { + if m != nil && m.MsgSentV6RelayRenew != nil { + return *m.MsgSentV6RelayRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayRebind() uint64 { + if m != nil && m.MsgSentV6RelayRebind != nil { + return *m.MsgSentV6RelayRebind + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayRelayForw() uint64 { + if m != nil && m.MsgSentV6RelayRelayForw != nil { + return *m.MsgSentV6RelayRelayForw + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayLeasequeryRepl() uint64 { + if m != nil && m.MsgSentV6RelayLeasequeryRepl != nil { + return *m.MsgSentV6RelayLeasequeryRepl + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayLeasequeryData() uint64 { + if m != nil && m.MsgSentV6RelayLeasequeryData != nil { + return *m.MsgSentV6RelayLeasequeryData + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetMsgSentV6RelayLeasequeryDone() uint64 { + if m != nil && m.MsgSentV6RelayLeasequeryDone != nil { + return *m.MsgSentV6RelayLeasequeryDone + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV6RelayFwdTotal() uint64 { + if m != nil && m.V6RelayFwdTotal != nil { + return *m.V6RelayFwdTotal + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV6RelayFwdRequest() uint64 { + if m != nil && m.V6RelayFwdRequest != nil { + return *m.V6RelayFwdRequest + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) GetV6RelayFwdReply() uint64 { + if m != nil && m.V6RelayFwdReply != nil { + return *m.V6RelayFwdReply + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType struct { + BindingStateV6RelayBinding *uint64 `protobuf:"varint,51,opt,name=binding_state_v6relay_binding,json=bindingStateV6relayBinding" json:"binding_state_v6relay_binding,omitempty"` + BindingStateV6RelayInit *uint64 `protobuf:"varint,52,opt,name=binding_state_v6relay_init,json=bindingStateV6relayInit" json:"binding_state_v6relay_init,omitempty"` + BindingStateV6RelayBound *uint64 `protobuf:"varint,53,opt,name=binding_state_v6relay_bound,json=bindingStateV6relayBound" json:"binding_state_v6relay_bound,omitempty"` + BindingStateV6RelaySelecting *uint64 `protobuf:"varint,54,opt,name=binding_state_v6relay_selecting,json=bindingStateV6relaySelecting" json:"binding_state_v6relay_selecting,omitempty"` + BindingStateV6RelayRequesting *uint64 `protobuf:"varint,55,opt,name=binding_state_v6relay_requesting,json=bindingStateV6relayRequesting" json:"binding_state_v6relay_requesting,omitempty"` + BindingStateV6RelayRenew *uint64 `protobuf:"varint,56,opt,name=binding_state_v6relay_renew,json=bindingStateV6relayRenew" json:"binding_state_v6relay_renew,omitempty"` + BindingStateV6RelayRelease *uint64 `protobuf:"varint,57,opt,name=binding_state_v6relay_release,json=bindingStateV6relayRelease" json:"binding_state_v6relay_release,omitempty"` + BindingStateRelayRestoring *uint64 `protobuf:"varint,58,opt,name=binding_state_relay_restoring,json=bindingStateRelayRestoring" json:"binding_state_relay_restoring,omitempty"` + BindingStateV6RelayRebind *uint64 `protobuf:"varint,59,opt,name=binding_state_v6relay_rebind,json=bindingStateV6relayRebind" json:"binding_state_v6relay_rebind,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 1, 1} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayBinding() uint64 { + if m != nil && m.BindingStateV6RelayBinding != nil { + return *m.BindingStateV6RelayBinding + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayInit() uint64 { + if m != nil && m.BindingStateV6RelayInit != nil { + return *m.BindingStateV6RelayInit + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayBound() uint64 { + if m != nil && m.BindingStateV6RelayBound != nil { + return *m.BindingStateV6RelayBound + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelaySelecting() uint64 { + if m != nil && m.BindingStateV6RelaySelecting != nil { + return *m.BindingStateV6RelaySelecting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayRequesting() uint64 { + if m != nil && m.BindingStateV6RelayRequesting != nil { + return *m.BindingStateV6RelayRequesting + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayRenew() uint64 { + if m != nil && m.BindingStateV6RelayRenew != nil { + return *m.BindingStateV6RelayRenew + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayRelease() uint64 { + if m != nil && m.BindingStateV6RelayRelease != nil { + return *m.BindingStateV6RelayRelease + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateRelayRestoring() uint64 { + if m != nil && m.BindingStateRelayRestoring != nil { + return *m.BindingStateRelayRestoring + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) GetBindingStateV6RelayRebind() uint64 { + if m != nil && m.BindingStateV6RelayRebind != nil { + return *m.BindingStateV6RelayRebind + } + return 0 +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType struct { + Server []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList `protobuf:"bytes,151,rep,name=server" json:"server,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 1, 2} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) GetServer() []*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList { + if m != nil { + return m.Server + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList struct { + ServerIpv6 *string `protobuf:"bytes,51,opt,name=server_ipv6,json=serverIpv6" json:"server_ipv6,omitempty"` + ResponseTime *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType `protobuf:"bytes,151,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 1, 2, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) GetServerIpv6() string { + if m != nil && m.ServerIpv6 != nil { + return *m.ServerIpv6 + } + return "" +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) GetResponseTime() *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType { + if m != nil { + return m.ResponseTime + } + return nil +} + +type JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType struct { + OneMinuteMinimumResponseTime *uint64 `protobuf:"varint,51,opt,name=one_minute_minimum_response_time,json=oneMinuteMinimumResponseTime" json:"one_minute_minimum_response_time,omitempty"` + OneMinuteAverageResponseTime *uint64 `protobuf:"varint,52,opt,name=one_minute_average_response_time,json=oneMinuteAverageResponseTime" json:"one_minute_average_response_time,omitempty"` + OneMinuteMaximumResponseTime *uint64 `protobuf:"varint,53,opt,name=one_minute_maximum_response_time,json=oneMinuteMaximumResponseTime" json:"one_minute_maximum_response_time,omitempty"` + OneMinuteMessagesSent *uint64 `protobuf:"varint,54,opt,name=one_minute_messages_sent,json=oneMinuteMessagesSent" json:"one_minute_messages_sent,omitempty"` + OneMinuteMessagesReceived *uint64 `protobuf:"varint,55,opt,name=one_minute_messages_received,json=oneMinuteMessagesReceived" json:"one_minute_messages_received,omitempty"` + OneMinuteMessagesNoResponse *uint64 `protobuf:"varint,56,opt,name=one_minute_messages_no_response,json=oneMinuteMessagesNoResponse" json:"one_minute_messages_no_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Reset() { + *m = JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType{} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) ProtoMessage() { +} +func (*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_659f84dfcfa1403f, []int{0, 0, 0, 0, 0, 1, 1, 0, 1, 2, 0, 0} +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType.Merge(m, src) +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_Size() int { + return m.Size() +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType proto.InternalMessageInfo + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMinimumResponseTime() uint64 { + if m != nil && m.OneMinuteMinimumResponseTime != nil { + return *m.OneMinuteMinimumResponseTime + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteAverageResponseTime() uint64 { + if m != nil && m.OneMinuteAverageResponseTime != nil { + return *m.OneMinuteAverageResponseTime + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMaximumResponseTime() uint64 { + if m != nil && m.OneMinuteMaximumResponseTime != nil { + return *m.OneMinuteMaximumResponseTime + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMessagesSent() uint64 { + if m != nil && m.OneMinuteMessagesSent != nil { + return *m.OneMinuteMessagesSent + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMessagesReceived() uint64 { + if m != nil && m.OneMinuteMessagesReceived != nil { + return *m.OneMinuteMessagesReceived + } + return 0 +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) GetOneMinuteMessagesNoResponse() uint64 { + if m != nil && m.OneMinuteMessagesNoResponse != nil { + return *m.OneMinuteMessagesNoResponse + } + return 0 +} + +var E_JnprJunosDhcpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosDhcp)(nil), + Field: 43, + Name: "jnpr_junos_dhcp_ext", + Tag: "bytes,43,opt,name=jnpr_junos_dhcp_ext", + Filename: "jdhcpd_oc.proto", +} + +func init() { + proto.RegisterType((*JunosDhcp)(nil), "junos_dhcp") + proto.RegisterType((*JunosDhcpSystemType)(nil), "junos_dhcp.system_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementType)(nil), "junos_dhcp.system_type.subscriber_management_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.global_statistics_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.server_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.server_type.statistics_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.server_type.bindings_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.relay_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.relay_type.statistics_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.relay_type.bindings_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.relay_type.servers_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.relay_type.servers_type.server_list") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v4_type.routing_instances_type.routing_instance_list.relay_type.servers_type.server_list.response_time_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.global_statistics_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.server_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.server_type.statistics_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.server_type.bindings_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.relay_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.relay_type.statistics_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.relay_type.bindings_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.relay_type.servers_type") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.relay_type.servers_type.server_list") + proto.RegisterType((*JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType)(nil), "junos_dhcp.system_type.subscriber_management_type.client_protocols_type.dhcp_type.v6_type.routing_instances_type.routing_instance_list.relay_type.servers_type.server_list.response_time_type") + proto.RegisterExtension(E_JnprJunosDhcpExt) +} + +func init() { proto.RegisterFile("jdhcpd_oc.proto", fileDescriptor_659f84dfcfa1403f) } + +var fileDescriptor_659f84dfcfa1403f = []byte{ + // 5064 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0xd9, 0x8f, 0xdc, 0x46, + 0x7a, 0x47, 0xfb, 0x76, 0xc9, 0x5e, 0x49, 0x94, 0x47, 0x43, 0xb5, 0x46, 0x87, 0x8f, 0xc8, 0xf2, + 0x35, 0xb2, 0xc6, 0x52, 0x69, 0x74, 0xf8, 0x98, 0xd3, 0x1a, 0x69, 0x34, 0x1a, 0xf7, 0xe8, 0xb0, + 0x65, 0xcb, 0x34, 0x87, 0xac, 0xe9, 0xa6, 0xba, 0x9b, 0xa4, 0x48, 0x76, 0x8f, 0xe6, 0x35, 0x40, + 0x90, 0x3c, 0x27, 0x40, 0x9c, 0x20, 0x0f, 0x9b, 0xcd, 0x26, 0x40, 0x90, 0xe3, 0x69, 0x93, 0x00, + 0xc1, 0x02, 0xda, 0x2c, 0x92, 0x05, 0xf6, 0x21, 0x0f, 0xf9, 0x0f, 0x12, 0x38, 0x09, 0x90, 0x97, + 0xe4, 0x1f, 0xc8, 0xcb, 0xa2, 0x2e, 0xb2, 0xaa, 0xf8, 0x91, 0xdd, 0xbb, 0xb0, 0xd6, 0xe3, 0x85, + 0x9f, 0x84, 0x66, 0x7d, 0xdf, 0xaf, 0xbe, 0x3a, 0xf8, 0x15, 0xeb, 0xf7, 0xfd, 0x46, 0x68, 0xef, + 0x3d, 0xbf, 0xe3, 0xc5, 0xbe, 0x13, 0x79, 0xd3, 0x71, 0x12, 0x65, 0x51, 0xf3, 0x40, 0x46, 0x7a, + 0xa4, 0x4f, 0xb2, 0x64, 0xc7, 0xc9, 0xa2, 0x98, 0x3f, 0x7c, 0xe9, 0xff, 0x7f, 0xda, 0x40, 0xe8, + 0xde, 0x20, 0x8c, 0x52, 0x87, 0x9a, 0x5b, 0x6f, 0xa3, 0xa7, 0xd2, 0x9d, 0x34, 0x23, 0x7d, 0xfb, + 0xcb, 0xc6, 0xf1, 0xc6, 0xc9, 0x3d, 0x33, 0x93, 0xd3, 0x45, 0xeb, 0x34, 0x6f, 0x72, 0xb2, 0x9d, + 0x98, 0xb4, 0x84, 0x5d, 0xf3, 0x1f, 0x7f, 0xda, 0x40, 0x7b, 0x94, 0x06, 0xab, 0x83, 0x26, 0xd2, + 0xc1, 0x66, 0xea, 0x25, 0xc1, 0x26, 0x49, 0x9c, 0xbe, 0x1b, 0xba, 0x6d, 0xd2, 0x27, 0x61, 0x26, + 0x11, 0x67, 0x2a, 0x10, 0xa7, 0x41, 0x2f, 0xde, 0xd9, 0x0b, 0x45, 0xdb, 0xb5, 0xbc, 0xa9, 0xf9, + 0xf0, 0x9f, 0x1a, 0xa8, 0x59, 0xed, 0x65, 0x65, 0x68, 0x9f, 0xd7, 0x0b, 0xe8, 0x4f, 0x36, 0x58, + 0x2f, 0xea, 0xa5, 0x32, 0x88, 0xcb, 0xbf, 0x7c, 0x10, 0xd3, 0x26, 0x16, 0x0f, 0x6d, 0x2f, 0x7f, + 0xbc, 0x2e, 0x9f, 0x36, 0xff, 0xf2, 0x27, 0x0d, 0x34, 0x01, 0xda, 0x5a, 0x6d, 0xf4, 0x04, 0xed, + 0x50, 0x06, 0xd1, 0xfa, 0xba, 0x82, 0x98, 0xa6, 0x08, 0x3c, 0x1c, 0xd6, 0x41, 0xf3, 0xcf, 0x1f, + 0x36, 0xd0, 0xb3, 0xf9, 0x43, 0xab, 0x8b, 0x1e, 0x1b, 0x9e, 0x91, 0xbd, 0xde, 0xf9, 0xfa, 0x7b, + 0x9d, 0x1e, 0x9e, 0xe1, 0xbd, 0x3f, 0x36, 0x3c, 0xc3, 0x3a, 0xc3, 0xf6, 0x1f, 0x3d, 0xc2, 0xce, + 0xb0, 0xec, 0x0c, 0x37, 0xff, 0xf0, 0x2e, 0x7a, 0x5a, 0x74, 0x6e, 0x7d, 0xbf, 0x81, 0xf6, 0xb7, + 0x7b, 0xd1, 0xa6, 0xdb, 0x73, 0xd2, 0xcc, 0xcd, 0x82, 0x34, 0x0b, 0xbc, 0x54, 0x06, 0x72, 0xff, + 0xd1, 0x8d, 0x7a, 0xba, 0xd4, 0x29, 0x8f, 0x6f, 0x1f, 0x7f, 0xbe, 0x91, 0x3f, 0x66, 0x11, 0x26, + 0xd1, 0x20, 0x0b, 0xc2, 0xb6, 0x13, 0x84, 0x69, 0xe6, 0x86, 0x1e, 0xc9, 0xb7, 0xe4, 0xa3, 0x8c, + 0xb0, 0xd4, 0xa9, 0x88, 0x50, 0x3c, 0x5f, 0x91, 0x8f, 0x9b, 0x3f, 0x7e, 0x02, 0x1d, 0x84, 0x87, + 0x63, 0xbd, 0x8c, 0x9e, 0xf7, 0x93, 0x28, 0x8e, 0x89, 0xef, 0x64, 0x51, 0xe6, 0xf6, 0xec, 0x77, + 0x8e, 0x37, 0x4e, 0x3e, 0xd1, 0x7a, 0x4e, 0x3c, 0xbc, 0x41, 0x9f, 0x59, 0x27, 0xd1, 0x3e, 0x69, + 0xb4, 0xe9, 0xfa, 0x4e, 0x42, 0x5c, 0xdf, 0x3e, 0xc3, 0xec, 0xbe, 0x27, 0x9e, 0xcf, 0xbb, 0x7e, + 0x8b, 0xb8, 0xbe, 0xf5, 0x3a, 0xda, 0x2f, 0x2d, 0x83, 0xd8, 0xe9, 0x10, 0xd7, 0x27, 0x89, 0x7d, + 0x96, 0x99, 0xee, 0x15, 0x0d, 0x2b, 0xf1, 0x65, 0xf6, 0xd8, 0x7a, 0x1b, 0xbd, 0x20, 0x6d, 0xd3, + 0x4e, 0x94, 0x64, 0x4e, 0xec, 0x7a, 0x5d, 0x92, 0xd9, 0x98, 0x99, 0x5b, 0xa2, 0x6d, 0x83, 0x36, + 0xad, 0xb3, 0x16, 0xd5, 0x23, 0x8c, 0x9c, 0x20, 0xcc, 0x48, 0xb2, 0xe5, 0x7a, 0xc4, 0x3e, 0xa7, + 0x79, 0xac, 0x45, 0x2b, 0xb2, 0xc5, 0x7a, 0x17, 0x1d, 0x56, 0x3c, 0xcc, 0x09, 0xb3, 0x67, 0x99, + 0xa3, 0x9d, 0x3b, 0xb6, 0xf4, 0x99, 0x53, 0x87, 0x13, 0x46, 0x4e, 0x9f, 0xf4, 0xa3, 0x64, 0xc7, + 0x3e, 0xaf, 0x0d, 0x67, 0x2d, 0xba, 0xc6, 0x1e, 0x5b, 0xef, 0xa3, 0x29, 0x69, 0x9b, 0x10, 0x2f, + 0x1a, 0x92, 0x64, 0xc7, 0x09, 0x42, 0xba, 0x8a, 0xed, 0x84, 0xa4, 0xa9, 0x7d, 0x81, 0xb9, 0x1d, + 0x12, 0x36, 0x2d, 0x61, 0xb2, 0x12, 0xae, 0x0b, 0x03, 0xeb, 0x4d, 0x64, 0x91, 0xc4, 0x75, 0x82, + 0x70, 0xab, 0x17, 0xb4, 0x3b, 0x99, 0xe3, 0x45, 0x83, 0x30, 0xb3, 0xdf, 0x65, 0x6e, 0xfb, 0x48, + 0xe2, 0xae, 0x88, 0x86, 0x05, 0xfa, 0xdc, 0x9a, 0x41, 0x13, 0xd4, 0x3a, 0x21, 0x71, 0x94, 0x64, + 0xc4, 0x77, 0xb6, 0xdc, 0xa0, 0x37, 0x48, 0x48, 0x6a, 0xbf, 0xc7, 0x1c, 0x0e, 0x90, 0xc4, 0x6d, + 0x89, 0xb6, 0x65, 0xd1, 0x64, 0x9d, 0x41, 0x07, 0x35, 0x9f, 0x74, 0xe0, 0x79, 0x24, 0x4d, 0x49, + 0x6a, 0xbf, 0xcf, 0x9c, 0x5e, 0x50, 0x9c, 0x36, 0x64, 0x5b, 0xf3, 0xf7, 0x6e, 0xa1, 0x83, 0xf0, + 0x56, 0xb3, 0xfe, 0xae, 0x81, 0xf6, 0x95, 0x26, 0xf5, 0xcb, 0xc6, 0xf1, 0xc7, 0x4f, 0xee, 0x99, + 0xf9, 0xdd, 0xc6, 0xaf, 0x7d, 0xeb, 0x97, 0x1e, 0x3b, 0xbd, 0x20, 0xcd, 0x5a, 0x7b, 0x8d, 0x17, + 0xa2, 0xf9, 0x0f, 0x37, 0xd0, 0x04, 0x68, 0x6a, 0x1d, 0x45, 0x4f, 0x27, 0x81, 0x13, 0xba, 0x7d, + 0xc2, 0x5e, 0x84, 0x67, 0xe7, 0x9f, 0xfc, 0xed, 0x0f, 0x1e, 0x7b, 0xa6, 0xd1, 0x7a, 0x2a, 0x09, + 0xd6, 0xdc, 0x3e, 0xb1, 0xfe, 0xb6, 0x81, 0x9e, 0x4a, 0x49, 0x32, 0x24, 0x89, 0x7c, 0xc1, 0xff, + 0x60, 0xb7, 0x0c, 0x73, 0x9a, 0xc7, 0x25, 0xcf, 0x71, 0xf6, 0xc3, 0xfa, 0xab, 0x06, 0x7a, 0x32, + 0x21, 0x3d, 0x77, 0x47, 0x66, 0xcc, 0xdf, 0xdf, 0x35, 0xe1, 0xb2, 0xb0, 0x78, 0xb4, 0x3c, 0xc4, + 0xe6, 0xef, 0x1c, 0x43, 0x7b, 0x94, 0x41, 0x58, 0x3f, 0x6b, 0x20, 0xa4, 0xe4, 0x7c, 0x31, 0xe1, + 0x3f, 0xdc, 0x8d, 0x13, 0x3e, 0x6d, 0x1e, 0x13, 0x4a, 0xe0, 0xd6, 0x4f, 0x1a, 0xe8, 0x99, 0xcd, + 0x20, 0xf4, 0x83, 0xb0, 0x9d, 0x9f, 0x5c, 0x3f, 0xd8, 0x95, 0xa3, 0x90, 0x51, 0xf2, 0x31, 0xe4, + 0x41, 0x37, 0xff, 0x7e, 0x12, 0xed, 0x35, 0x4f, 0x8e, 0x33, 0xe8, 0xa0, 0xcc, 0x77, 0xc3, 0x33, + 0x12, 0x44, 0x39, 0x42, 0x64, 0xaa, 0xbe, 0x25, 0x1a, 0xf9, 0x51, 0x72, 0x11, 0x35, 0x4b, 0x5e, + 0xf4, 0x4c, 0xe9, 0x6c, 0xbb, 0x09, 0x11, 0x87, 0xca, 0xa4, 0xe1, 0x39, 0xef, 0xfa, 0x97, 0x69, + 0x33, 0xec, 0x1c, 0x45, 0x59, 0xec, 0xc4, 0xdd, 0x4c, 0x1c, 0x33, 0x25, 0x67, 0xda, 0xbe, 0xde, + 0xcd, 0xac, 0xcb, 0xe8, 0x45, 0xb0, 0x67, 0x0e, 0x10, 0xc5, 0x5e, 0xe4, 0x13, 0x71, 0xf6, 0x1c, + 0x29, 0x07, 0xc0, 0x60, 0xae, 0x33, 0x23, 0x35, 0xd3, 0x6b, 0x48, 0x51, 0x9c, 0x05, 0x51, 0x98, + 0x8a, 0xe3, 0xe8, 0x50, 0x19, 0xe4, 0x3a, 0x37, 0xa8, 0x04, 0x70, 0x7d, 0x9f, 0x1d, 0x15, 0xb3, + 0x55, 0x00, 0x73, 0xdc, 0x40, 0x3d, 0xd6, 0x72, 0x80, 0x30, 0xca, 0xfd, 0xcf, 0x6b, 0xc7, 0x9a, + 0xf4, 0x5f, 0x8b, 0xa4, 0x3b, 0x34, 0x15, 0xea, 0x81, 0xea, 0x78, 0x5b, 0x6d, 0x71, 0x5e, 0x1d, + 0x29, 0x81, 0xe4, 0x87, 0xeb, 0xc2, 0x56, 0xbb, 0x0a, 0xa9, 0x17, 0x79, 0x6e, 0x2f, 0x0f, 0xe7, + 0x62, 0x05, 0xd2, 0x2a, 0xb5, 0x92, 0x31, 0x41, 0x6b, 0x2b, 0x3e, 0x0b, 0xba, 0x99, 0x7d, 0x09, + 0x5c, 0x5b, 0xfe, 0x6d, 0xd0, 0xcd, 0xac, 0xf7, 0x80, 0x09, 0x0d, 0x23, 0x36, 0xa7, 0x29, 0x09, + 0x7d, 0x71, 0x88, 0x96, 0x27, 0x64, 0xde, 0xf5, 0x37, 0x48, 0xe8, 0x83, 0x0b, 0x12, 0x46, 0x62, + 0x41, 0xf1, 0xdb, 0xe2, 0x4c, 0x3d, 0x54, 0xf2, 0xbf, 0x2e, 0x0c, 0xea, 0x01, 0x66, 0x67, 0xc4, + 0xf9, 0x5a, 0x05, 0x30, 0x3b, 0x63, 0x2d, 0xa3, 0x63, 0x25, 0x00, 0x77, 0x90, 0x75, 0x48, 0x98, + 0x05, 0x9e, 0x4b, 0x8d, 0xec, 0x0f, 0xc0, 0x69, 0x9c, 0xd3, 0x8c, 0xac, 0x0f, 0xd1, 0xf1, 0x12, + 0x8e, 0xbf, 0x13, 0xba, 0xfd, 0xc0, 0xa3, 0x79, 0x63, 0x2b, 0xe8, 0x11, 0x7b, 0x0e, 0x04, 0x5a, + 0xe4, 0x56, 0xeb, 0xdc, 0xa8, 0x6a, 0x8b, 0xf5, 0x02, 0x8f, 0x84, 0x29, 0xb1, 0xe7, 0x2b, 0x66, + 0x74, 0x95, 0xb7, 0x5b, 0x57, 0xd1, 0xcb, 0x55, 0x2b, 0xc2, 0xf2, 0x95, 0x78, 0xdf, 0x16, 0x18, + 0xcc, 0x51, 0x68, 0x61, 0x16, 0x3b, 0x9e, 0x7c, 0xe1, 0x2a, 0x62, 0x91, 0xef, 0xdb, 0x62, 0x45, + 0x2c, 0xf2, 0x75, 0x83, 0xb6, 0x56, 0x27, 0x8a, 0x9d, 0x5e, 0xd0, 0x0f, 0x32, 0x7b, 0x09, 0xdc, + 0x5a, 0x97, 0xa3, 0x78, 0x95, 0x36, 0x83, 0x2b, 0x9b, 0x65, 0x3d, 0x87, 0x3c, 0x88, 0x83, 0x84, + 0xf8, 0xf6, 0x32, 0xb8, 0xb2, 0x37, 0xb2, 0xde, 0x12, 0x37, 0xa8, 0xcc, 0x3b, 0x03, 0x3f, 0x76, + 0xbc, 0x0e, 0xf1, 0xba, 0xe9, 0xa0, 0x6f, 0x7f, 0x58, 0x95, 0x77, 0x6e, 0xfa, 0xf1, 0x82, 0x30, + 0xb2, 0x16, 0xd0, 0xd1, 0x12, 0x52, 0x10, 0xba, 0x5e, 0x16, 0x0c, 0x89, 0x33, 0xec, 0xb9, 0xa1, + 0x7d, 0x99, 0xc1, 0x1c, 0x36, 0x60, 0x56, 0x84, 0xcd, 0xad, 0x9e, 0x1b, 0x82, 0xe1, 0xd0, 0x8f, + 0xc2, 0x34, 0x73, 0x93, 0x8c, 0x7d, 0x45, 0x12, 0xdf, 0x5e, 0x01, 0xc3, 0x59, 0x4a, 0xdc, 0x0d, + 0x6a, 0xb5, 0xcc, 0x8c, 0xc0, 0x70, 0xc4, 0x09, 0xd5, 0x8b, 0xa2, 0xee, 0x20, 0xb6, 0xaf, 0x80, + 0xe1, 0x2c, 0x30, 0x9b, 0x55, 0x66, 0x62, 0xad, 0xa3, 0xdf, 0x2a, 0x81, 0xf4, 0x88, 0x9b, 0x12, + 0x27, 0x0b, 0xfa, 0xc4, 0x19, 0x06, 0x51, 0x8f, 0xef, 0xfe, 0xab, 0x0c, 0xeb, 0x45, 0x03, 0x6b, + 0x95, 0x9a, 0xde, 0x08, 0xfa, 0xe4, 0x96, 0x34, 0xa4, 0x37, 0x9a, 0x68, 0x6b, 0x8b, 0x6e, 0x7b, + 0xfa, 0x51, 0x41, 0x7c, 0x7b, 0x95, 0xdf, 0x68, 0xd8, 0xc3, 0x45, 0xfe, 0xcc, 0x3a, 0x8b, 0x26, + 0x15, 0x23, 0xed, 0x3b, 0xfd, 0x1a, 0x3f, 0xbd, 0x0a, 0x73, 0xe5, 0x13, 0xfd, 0x75, 0xb4, 0x5f, + 0x75, 0xe3, 0xc7, 0xdd, 0x1a, 0xbf, 0x0f, 0x14, 0x0e, 0xfc, 0xa4, 0x9b, 0x47, 0x47, 0xfb, 0x69, + 0x9b, 0xde, 0x05, 0x86, 0xfa, 0x69, 0xe5, 0x24, 0xe4, 0xfe, 0x80, 0xa4, 0x99, 0x7d, 0x9d, 0x39, + 0x36, 0xfb, 0x69, 0xbb, 0x45, 0xbc, 0xa1, 0x7a, 0x60, 0xb5, 0xb8, 0x85, 0x75, 0x1e, 0x1d, 0x2a, + 0x63, 0xf8, 0xc4, 0xeb, 0x05, 0x21, 0xb1, 0xd7, 0x99, 0xfb, 0x41, 0xc3, 0x7d, 0x91, 0xb7, 0xd2, + 0x4d, 0x0f, 0xb8, 0x06, 0x29, 0xbb, 0x76, 0xd8, 0x1f, 0xf1, 0x4d, 0x6f, 0xfa, 0x8a, 0x66, 0xeb, + 0x1c, 0xb2, 0xcb, 0xce, 0x41, 0xb8, 0x15, 0x25, 0x7d, 0xbb, 0xc5, 0x5c, 0x27, 0x0c, 0xd7, 0x15, + 0xd6, 0x08, 0x07, 0x9c, 0x10, 0xb6, 0xa2, 0xf6, 0x06, 0x18, 0x70, 0x8b, 0xb7, 0x56, 0xb9, 0xf2, + 0xa9, 0xba, 0x51, 0xe1, 0xca, 0xa7, 0xe9, 0x2c, 0x9a, 0x84, 0x5c, 0x43, 0xb2, 0x6d, 0xdf, 0xe4, + 0xab, 0x59, 0x72, 0x0c, 0xc9, 0x36, 0x3c, 0xca, 0x84, 0xd0, 0xaf, 0x1e, 0xfb, 0x16, 0x38, 0xca, + 0x16, 0x6b, 0xb4, 0x3e, 0x40, 0x47, 0xca, 0x8e, 0x7c, 0xd7, 0xde, 0x1f, 0x90, 0x64, 0xc7, 0xbe, + 0xcd, 0x93, 0x82, 0xe1, 0xcd, 0x36, 0xeb, 0x47, 0xd4, 0x80, 0xbe, 0x85, 0xc0, 0xe6, 0x18, 0xf4, + 0xba, 0x2a, 0xca, 0xc7, 0xfc, 0x2d, 0x34, 0xf7, 0x87, 0xb4, 0xe2, 0x48, 0xef, 0xa1, 0x29, 0x8a, + 0x94, 0xd2, 0xd7, 0xce, 0xdc, 0x66, 0x71, 0x6f, 0xc7, 0xfe, 0x84, 0x27, 0xc7, 0x7e, 0xda, 0xde, + 0x20, 0x61, 0xa6, 0x6f, 0xb2, 0xb8, 0xb7, 0x23, 0xe7, 0x4e, 0xf7, 0x67, 0x7b, 0xd9, 0xbe, 0x93, + 0xcf, 0x9d, 0xea, 0x7a, 0x9d, 0xb6, 0x59, 0x17, 0xf8, 0xf6, 0x02, 0xba, 0x75, 0xbd, 0xae, 0xfd, + 0x69, 0xbe, 0x5c, 0x66, 0xa7, 0x73, 0x5e, 0xd7, 0x3a, 0x8d, 0x26, 0xca, 0xbe, 0xa1, 0xdb, 0xb5, + 0x3f, 0xe3, 0xf7, 0x78, 0xc3, 0x6d, 0xcd, 0xed, 0xca, 0x19, 0xd7, 0x5d, 0xb6, 0xa2, 0xc4, 0x23, + 0x62, 0x9d, 0xef, 0xe6, 0x33, 0xae, 0xba, 0x2e, 0x53, 0x0b, 0xbe, 0xd8, 0xef, 0x43, 0xf3, 0x34, + 0x08, 0xdd, 0x34, 0x0d, 0xda, 0x21, 0xf1, 0xed, 0xcf, 0x41, 0x80, 0x9b, 0xb9, 0x81, 0xdc, 0x9f, + 0x26, 0x40, 0x37, 0x8c, 0xb6, 0x43, 0xdb, 0x01, 0x07, 0x7c, 0x93, 0xb7, 0xca, 0x8d, 0xa6, 0xbb, + 0xf2, 0x9c, 0x6c, 0x7f, 0x91, 0x6f, 0x34, 0xd5, 0x73, 0x8e, 0x35, 0xc2, 0x8b, 0xcb, 0x36, 0x87, + 0xe3, 0x47, 0x21, 0xb1, 0x5d, 0x70, 0x71, 0xd9, 0xc6, 0x58, 0x8c, 0x42, 0xd2, 0xfc, 0xd1, 0x13, + 0xe8, 0x79, 0xed, 0x9b, 0x9e, 0x26, 0x6d, 0xf1, 0x80, 0x51, 0x41, 0x44, 0x59, 0x3c, 0xfe, 0x58, + 0x7c, 0xbd, 0x1f, 0x16, 0x3f, 0x37, 0xa8, 0x51, 0xbe, 0x80, 0xfc, 0x19, 0x3d, 0x8f, 0x2b, 0x40, + 0x82, 0x30, 0xc8, 0xc4, 0x57, 0xbc, 0x0d, 0x21, 0xac, 0x84, 0xfc, 0x48, 0xad, 0x8a, 0x21, 0x1a, + 0x84, 0xbe, 0xf8, 0x90, 0x3f, 0x04, 0x46, 0x40, 0x0d, 0xe8, 0x47, 0x4e, 0x05, 0x40, 0x4a, 0x7a, + 0xc4, 0xa3, 0x97, 0x1c, 0xf9, 0x25, 0x0f, 0x81, 0x6c, 0x48, 0x23, 0x6b, 0x05, 0xbd, 0x58, 0x01, + 0x24, 0x12, 0x0f, 0x45, 0xe2, 0x9f, 0xf3, 0x47, 0x21, 0xa4, 0x56, 0x6e, 0x55, 0x33, 0x28, 0xbe, + 0x41, 0x67, 0xab, 0x07, 0xc5, 0x37, 0x68, 0xf5, 0xca, 0xc8, 0xfc, 0x79, 0xbe, 0x7a, 0x65, 0x64, + 0x12, 0x2d, 0x81, 0xe4, 0x10, 0x69, 0x16, 0x25, 0x74, 0x34, 0x17, 0xca, 0x20, 0x1b, 0x02, 0x42, + 0x98, 0x34, 0xbf, 0x9c, 0x41, 0xa8, 0xb8, 0x9d, 0x5b, 0xff, 0x02, 0x5e, 0xc3, 0xff, 0x6c, 0x17, + 0x12, 0x09, 0xb5, 0xb7, 0xf0, 0x87, 0xc0, 0x2d, 0xfc, 0x4f, 0x77, 0xe3, 0x20, 0x2a, 0x2e, 0xe1, + 0xd6, 0x8f, 0x1b, 0xe8, 0x69, 0xbe, 0x9c, 0xa9, 0xfd, 0xc7, 0x3c, 0xfe, 0xef, 0xef, 0xca, 0x45, + 0xe0, 0x31, 0xf2, 0xf0, 0x65, 0xc4, 0xcd, 0x1f, 0xbd, 0x58, 0xa6, 0x10, 0x66, 0xd0, 0x44, 0xf1, + 0xf1, 0x97, 0x28, 0x9f, 0x54, 0x3c, 0x07, 0x1d, 0xc8, 0x3f, 0xf6, 0x92, 0xe2, 0xb3, 0x4a, 0xfb, + 0x1e, 0xe7, 0x3e, 0x8c, 0x3f, 0x70, 0x13, 0x5f, 0xa1, 0x10, 0x0e, 0xe9, 0xae, 0xf3, 0xae, 0x7f, + 0x59, 0x18, 0x80, 0x00, 0x9c, 0x43, 0xe0, 0xf4, 0xf3, 0x59, 0x10, 0x80, 0xb1, 0x08, 0x9c, 0x85, + 0x5e, 0x56, 0xaf, 0x58, 0x45, 0x04, 0x00, 0x8f, 0x30, 0x55, 0x8a, 0x42, 0xa5, 0x11, 0xb4, 0x5b, + 0x4d, 0x81, 0xa3, 0xb3, 0x08, 0x76, 0x09, 0x42, 0xde, 0x6a, 0x2a, 0xdc, 0x75, 0x0e, 0xa1, 0xec, + 0x0e, 0xde, 0xb7, 0xb9, 0x7b, 0x89, 0x41, 0x98, 0xd4, 0xbd, 0x0b, 0x02, 0x01, 0x98, 0x82, 0x0a, + 0xfe, 0x60, 0xca, 0x84, 0xd0, 0xe8, 0x03, 0x18, 0x07, 0x62, 0x0f, 0x4a, 0x38, 0x1a, 0x79, 0x00, + 0xac, 0xa9, 0x56, 0x52, 0xb8, 0x04, 0xad, 0xa9, 0x5a, 0x59, 0x38, 0x87, 0x6c, 0x68, 0x32, 0x15, + 0xf2, 0x60, 0xa2, 0x34, 0x93, 0x8c, 0x39, 0x38, 0x8f, 0x0e, 0x99, 0x8e, 0x7c, 0x01, 0x9d, 0x9c, + 0x36, 0x38, 0xa8, 0x7b, 0xc2, 0x9c, 0x01, 0x77, 0x55, 0x01, 0x4a, 0x9c, 0x01, 0x6b, 0x6c, 0x15, + 0x10, 0x35, 0x7d, 0xcf, 0xce, 0x08, 0xb6, 0x00, 0xec, 0x7b, 0x76, 0xc6, 0x5a, 0x54, 0xef, 0x6e, + 0xdc, 0xd5, 0x60, 0x1b, 0xe6, 0xa0, 0x69, 0x37, 0xc8, 0x86, 0x25, 0x95, 0xb4, 0xe0, 0x28, 0x26, + 0xd7, 0x30, 0x0f, 0xc1, 0x18, 0x54, 0x03, 0x46, 0x93, 0x26, 0x8c, 0xa4, 0x19, 0x16, 0xa0, 0xb9, + 0x97, 0x1c, 0xc3, 0x62, 0xb9, 0x7b, 0x93, 0x5f, 0x58, 0x34, 0x6e, 0xa0, 0x72, 0xed, 0x14, 0x72, + 0x01, 0x7e, 0x11, 0xe4, 0x5b, 0xb8, 0x04, 0xbf, 0x08, 0xf2, 0x25, 0x04, 0x96, 0xa0, 0x60, 0x16, + 0x96, 0xa1, 0x25, 0xc8, 0x89, 0x05, 0xe0, 0xfd, 0x55, 0x79, 0x85, 0x0f, 0xa1, 0xf7, 0x57, 0xa1, + 0x15, 0x2a, 0xb2, 0x90, 0xc6, 0x2a, 0x5c, 0xae, 0xc8, 0x42, 0x2a, 0xa9, 0x30, 0x87, 0x8e, 0x98, + 0x38, 0x3a, 0xa7, 0xc0, 0xb9, 0x80, 0xa6, 0x0e, 0xa2, 0x51, 0x0a, 0x40, 0x28, 0x25, 0x46, 0xe1, + 0x0a, 0x14, 0x8a, 0x41, 0x28, 0x00, 0xa1, 0xe8, 0x7c, 0xc2, 0x55, 0x28, 0x14, 0x8d, 0x4e, 0xb8, + 0x86, 0x5e, 0x31, 0x21, 0xe2, 0x24, 0x7a, 0xc0, 0x96, 0x54, 0x7e, 0x77, 0xfb, 0x7e, 0x22, 0x38, + 0x81, 0x63, 0x3a, 0xd2, 0x3a, 0xb5, 0x5c, 0x8b, 0xf8, 0xe7, 0x10, 0x4d, 0x2d, 0xd6, 0x5a, 0x19, + 0x0e, 0x24, 0x27, 0x38, 0x67, 0x70, 0xdc, 0xd8, 0xa6, 0x65, 0x6e, 0xe2, 0x2e, 0x7a, 0x13, 0xc4, + 0xe3, 0x9f, 0xf4, 0xf4, 0xc2, 0x46, 0x03, 0xf5, 0x82, 0xc4, 0x1b, 0x04, 0x59, 0xe0, 0x0b, 0x6a, + 0xe1, 0x55, 0x00, 0x97, 0x79, 0xd0, 0x1b, 0xdc, 0x5a, 0xb4, 0x20, 0xcd, 0xad, 0x4d, 0x74, 0x6a, + 0x14, 0xfc, 0x76, 0x90, 0x75, 0x1c, 0x92, 0x24, 0x51, 0xe2, 0xb0, 0x17, 0x84, 0x73, 0x10, 0xaf, + 0xd5, 0xf5, 0x70, 0x3b, 0xc8, 0x3a, 0x4b, 0xd4, 0x63, 0x81, 0xbe, 0x2e, 0xe3, 0xf6, 0xc1, 0x7f, + 0x67, 0x24, 0xe9, 0x0b, 0xa2, 0x62, 0x64, 0x1f, 0xec, 0xda, 0x72, 0x83, 0x24, 0x7d, 0xab, 0x85, + 0x4e, 0x94, 0x12, 0x5b, 0xcf, 0x97, 0x77, 0xec, 0xa2, 0xa7, 0x1d, 0xc1, 0x63, 0xbc, 0x64, 0x64, + 0x39, 0x6a, 0xab, 0xe3, 0xef, 0x58, 0x9f, 0xa2, 0x37, 0x4a, 0x19, 0x6f, 0x93, 0x1e, 0x11, 0x26, + 0x26, 0xdd, 0x30, 0x9e, 0x60, 0x39, 0x4e, 0x18, 0xe9, 0x8f, 0x3a, 0x18, 0xc0, 0xeb, 0x49, 0xe4, + 0x59, 0x37, 0xd0, 0xab, 0xa5, 0x44, 0x38, 0xa0, 0xdf, 0xd2, 0xe5, 0x88, 0x39, 0x09, 0xf2, 0xb2, + 0x91, 0x10, 0x99, 0xb1, 0x19, 0xf2, 0x17, 0x68, 0x1a, 0x3e, 0x20, 0xd2, 0x68, 0x40, 0x6f, 0xbe, + 0xf4, 0xa8, 0x8c, 0x37, 0xbb, 0x4a, 0x21, 0x9c, 0xd3, 0x24, 0x27, 0x81, 0x23, 0x63, 0x83, 0xb9, + 0xac, 0x45, 0xab, 0xf1, 0x66, 0xb7, 0x28, 0x8f, 0x5f, 0x44, 0x4d, 0xfd, 0x1b, 0x48, 0x5c, 0x7b, + 0x9c, 0xc4, 0x1b, 0xfa, 0x82, 0x3b, 0x99, 0x1c, 0x2a, 0x9f, 0x40, 0xe2, 0xc2, 0xd3, 0xf2, 0x86, + 0xbe, 0x41, 0x9f, 0x88, 0x51, 0x0b, 0x6e, 0xca, 0xa4, 0x4f, 0xf8, 0x28, 0x05, 0x35, 0xa5, 0x33, + 0x3d, 0xc2, 0x51, 0x32, 0x53, 0xb7, 0x0d, 0xa6, 0x87, 0x7b, 0x4a, 0x62, 0x4a, 0x67, 0x7a, 0x64, + 0xba, 0x62, 0xbc, 0xd4, 0xc7, 0x06, 0xd3, 0x23, 0xf2, 0x14, 0xa3, 0xa5, 0xa0, 0x50, 0xe5, 0xad, + 0xea, 0x13, 0x28, 0x54, 0x79, 0x9f, 0x82, 0x1d, 0x39, 0x27, 0x75, 0x07, 0x76, 0xe4, 0x94, 0x94, + 0xa0, 0x1b, 0x34, 0x47, 0x06, 0x29, 0xae, 0xfd, 0x9f, 0x1a, 0x0c, 0x51, 0xf1, 0x4e, 0x70, 0x03, + 0x7a, 0xc7, 0x85, 0x01, 0x14, 0xce, 0xe2, 0x33, 0x83, 0x20, 0x2a, 0x40, 0x0a, 0x23, 0x9a, 0x55, + 0xab, 0x80, 0x38, 0x77, 0x71, 0xd7, 0xa0, 0x21, 0x55, 0x14, 0xce, 0x5f, 0x2c, 0xa1, 0x63, 0x30, + 0x04, 0xdb, 0xac, 0x8c, 0x89, 0xe0, 0xf4, 0xc9, 0x14, 0x00, 0x92, 0xdb, 0xd0, 0xc9, 0x34, 0x77, + 0x1b, 0x7d, 0xdf, 0xd8, 0x5e, 0xe3, 0x04, 0xca, 0x84, 0xbe, 0xd7, 0xe2, 0xde, 0x0e, 0xdb, 0x69, + 0xef, 0xa0, 0x83, 0xa5, 0xfe, 0x39, 0x45, 0xc5, 0xd9, 0x93, 0x03, 0x7a, 0xb7, 0x9c, 0xa1, 0x3a, + 0x85, 0x5e, 0x28, 0x39, 0xb9, 0x5e, 0x57, 0x70, 0x26, 0xfb, 0x75, 0x97, 0x39, 0xaf, 0x0b, 0x3a, + 0x84, 0x6e, 0xd7, 0xde, 0x84, 0x1c, 0xd6, 0xdc, 0x2e, 0x3d, 0xc1, 0x4b, 0x0e, 0x8c, 0x93, 0xe2, + 0x37, 0x7e, 0x2f, 0x27, 0x67, 0x14, 0xbf, 0xe5, 0xbc, 0xbd, 0x6a, 0x3a, 0x52, 0x12, 0x66, 0xb6, + 0x5f, 0x31, 0x1d, 0x1b, 0x24, 0xcc, 0xe4, 0x74, 0x08, 0x56, 0x48, 0x9d, 0x0e, 0x92, 0x4f, 0x07, + 0xe7, 0x83, 0xca, 0xd3, 0xa1, 0x39, 0xd1, 0xe9, 0xd8, 0xca, 0x47, 0xa7, 0xb8, 0x28, 0xd3, 0xa1, + 0x39, 0xd0, 0xe9, 0x68, 0x43, 0x0e, 0xca, 0x74, 0x68, 0x0e, 0xca, 0x74, 0x74, 0x0c, 0xae, 0xca, + 0x9c, 0x0e, 0xc8, 0xbd, 0xd8, 0x64, 0x76, 0x00, 0xb9, 0x17, 0x1b, 0x4c, 0xee, 0x51, 0xcd, 0x3d, + 0x27, 0x54, 0x39, 0xc4, 0xbd, 0x7c, 0x8f, 0x2a, 0x10, 0xf3, 0x9a, 0x4d, 0x75, 0x46, 0x64, 0xcb, + 0xd2, 0xad, 0xcc, 0x88, 0x6c, 0x61, 0x74, 0x9e, 0x4f, 0xcf, 0x88, 0x3d, 0x83, 0xe7, 0x83, 0x32, + 0xa2, 0xee, 0x28, 0x33, 0x62, 0xdf, 0xe0, 0x16, 0xc1, 0x8c, 0xa8, 0xb9, 0x8a, 0x8c, 0x18, 0x1a, + 0xfc, 0x2d, 0x90, 0x11, 0x35, 0x37, 0x99, 0x11, 0x23, 0x28, 0x54, 0x23, 0x23, 0x1a, 0x8e, 0x3c, + 0x23, 0xc6, 0xb0, 0x23, 0xcf, 0x88, 0x73, 0xe8, 0x88, 0x3e, 0xb3, 0x5b, 0x51, 0xb2, 0xed, 0x26, + 0x7e, 0xae, 0x3c, 0xbb, 0xcf, 0xf3, 0x90, 0x3a, 0xb9, 0xcb, 0xd2, 0x84, 0xdf, 0xfd, 0xcf, 0xa3, + 0x43, 0xf0, 0xe2, 0x6c, 0x6d, 0xfb, 0x76, 0xc2, 0xa7, 0x09, 0x58, 0x9b, 0xe5, 0x6d, 0x56, 0xf0, + 0x81, 0x5e, 0x36, 0xea, 0x98, 0xf2, 0x69, 0x2a, 0xbd, 0x6b, 0xcb, 0xdb, 0x7e, 0xf3, 0x7f, 0x4a, + 0x04, 0xea, 0x1c, 0x3a, 0x62, 0xd2, 0x74, 0x02, 0x56, 0xe3, 0x4f, 0x9b, 0x3a, 0x4b, 0xc7, 0xa1, + 0x05, 0x7d, 0x7a, 0x11, 0x35, 0x61, 0x08, 0x85, 0x3d, 0x9d, 0x04, 0xfc, 0x19, 0x79, 0x0a, 0x70, + 0xaf, 0x72, 0x58, 0x05, 0x77, 0x6a, 0x43, 0xbd, 0x33, 0xea, 0x74, 0x09, 0x1d, 0x83, 0xdd, 0x4d, + 0xe6, 0x74, 0x0a, 0x80, 0x28, 0x88, 0x53, 0x80, 0x81, 0xd5, 0xb6, 0x42, 0xc1, 0x9b, 0x1e, 0x01, + 0x70, 0x14, 0xda, 0xb4, 0x72, 0x38, 0x2a, 0x6b, 0x6a, 0x83, 0x18, 0x34, 0x69, 0x54, 0xae, 0x86, + 0xce, 0x99, 0x36, 0x41, 0x00, 0xbe, 0xa1, 0x2b, 0x67, 0xc4, 0xe4, 0x4c, 0xa7, 0x40, 0x10, 0x61, + 0x03, 0xf1, 0xbf, 0x12, 0x86, 0x15, 0x94, 0x2e, 0x42, 0xfc, 0xaf, 0xc0, 0xa0, 0x0f, 0x9b, 0x3f, + 0x78, 0x1a, 0x3d, 0xa7, 0x52, 0x67, 0xd6, 0xcf, 0x34, 0xad, 0xd9, 0xe3, 0x27, 0xf7, 0xcc, 0xfc, + 0xf5, 0x6e, 0xa7, 0xfb, 0xa4, 0x98, 0x88, 0xc9, 0xee, 0x44, 0xf0, 0xcd, 0x9f, 0x3f, 0x99, 0xcb, + 0xba, 0x98, 0xc6, 0xee, 0x25, 0xf4, 0xac, 0xac, 0x16, 0xc4, 0xba, 0xca, 0xee, 0x19, 0x51, 0x24, + 0x88, 0xad, 0xff, 0x6e, 0xa0, 0xe7, 0x13, 0x92, 0xc6, 0x51, 0x28, 0x2e, 0x5b, 0x92, 0x76, 0x7e, + 0xf8, 0x6d, 0x9a, 0x82, 0x69, 0x6d, 0x08, 0x9c, 0x10, 0x7d, 0x4e, 0x3e, 0xa3, 0x37, 0xc3, 0xe6, + 0xdf, 0x3c, 0x8e, 0xac, 0xb2, 0x11, 0xbd, 0x51, 0x47, 0x21, 0x71, 0xfa, 0x41, 0x38, 0xc8, 0xd8, + 0x3f, 0x41, 0x7f, 0xd0, 0x77, 0xf4, 0x09, 0xe1, 0x79, 0x66, 0x2a, 0x0a, 0xc9, 0x35, 0x66, 0x76, + 0x8d, 0x5b, 0xb5, 0x14, 0x78, 0x03, 0xc7, 0x1d, 0x92, 0xc4, 0x6d, 0x13, 0x03, 0xe7, 0x8c, 0x81, + 0x33, 0xc7, 0xad, 0x6a, 0x70, 0xfa, 0xee, 0x03, 0x20, 0x9e, 0xb3, 0x66, 0x3c, 0xdc, 0x4a, 0xc3, + 0x39, 0x87, 0x6c, 0x15, 0x87, 0xa4, 0xa9, 0xdb, 0x26, 0x29, 0x3f, 0x5b, 0x79, 0xda, 0x99, 0x28, + 0xfc, 0x45, 0x2b, 0x3b, 0x59, 0xdf, 0x47, 0x53, 0x90, 0x63, 0x42, 0x3c, 0x12, 0x0c, 0x89, 0x2f, + 0x25, 0x57, 0x25, 0xe7, 0x96, 0x30, 0xb0, 0x16, 0xd1, 0x31, 0x08, 0x20, 0x8c, 0xf2, 0x51, 0x88, + 0x5c, 0x73, 0xb8, 0x84, 0xb1, 0x16, 0xc9, 0x31, 0x34, 0x7f, 0xe8, 0xa0, 0xa7, 0x85, 0x50, 0xfd, + 0x1b, 0x10, 0xa6, 0xe3, 0x5d, 0x2f, 0x4c, 0xc7, 0xbf, 0xa4, 0x30, 0xfd, 0x3f, 0xbf, 0x13, 0xa6, + 0xff, 0x6a, 0xc2, 0xf4, 0x13, 0x68, 0xaf, 0xe2, 0x9e, 0xba, 0x5b, 0xbe, 0x38, 0xe9, 0x9e, 0xcf, + 0x5d, 0x36, 0xdc, 0x2d, 0x1f, 0x16, 0xb0, 0x5f, 0xf8, 0xd5, 0x04, 0xec, 0x17, 0xbf, 0xad, 0x02, + 0xf6, 0xff, 0xbd, 0xbd, 0x8b, 0x04, 0xec, 0xf8, 0xeb, 0x10, 0xb0, 0xff, 0xc9, 0xad, 0xdd, 0x2e, + 0x60, 0xc7, 0xdf, 0x2e, 0x01, 0x3b, 0xfe, 0x5a, 0x04, 0xec, 0x0f, 0x8f, 0x7c, 0x73, 0x02, 0x76, + 0xfc, 0x1b, 0x21, 0x60, 0xc7, 0x8f, 0x48, 0xc0, 0xfe, 0x7f, 0x13, 0xf5, 0x02, 0x76, 0x5c, 0x27, + 0x60, 0xc7, 0xaa, 0x80, 0x5d, 0xad, 0x14, 0xe2, 0x42, 0x8b, 0xca, 0x52, 0xf0, 0x19, 0xbd, 0x5a, + 0x85, 0xa5, 0x10, 0x95, 0xa5, 0x62, 0xb5, 0x96, 0xa0, 0x38, 0x96, 0xb2, 0xcf, 0x59, 0xbd, 0x96, + 0x90, 0x83, 0x98, 0x47, 0x80, 0x5a, 0x7a, 0xc2, 0x8a, 0xae, 0x94, 0xd5, 0x2c, 0xb1, 0x5e, 0x7a, + 0xc2, 0xb9, 0x9e, 0x94, 0x15, 0x2d, 0xd5, 0x42, 0x0b, 0xd6, 0xb5, 0xd6, 0xfc, 0xa4, 0x3b, 0xa7, + 0x17, 0x5a, 0xb0, 0x2a, 0xb7, 0xe6, 0x27, 0x9e, 0x5a, 0xbc, 0x54, 0x7b, 0xef, 0xa7, 0x6d, 0x3a, + 0xb9, 0xa6, 0x84, 0xbd, 0x08, 0xe0, 0x1a, 0x37, 0xa8, 0x04, 0x90, 0x85, 0xb7, 0xf3, 0x55, 0x00, + 0xb2, 0xf4, 0xa6, 0x16, 0x1f, 0xb5, 0xf1, 0x27, 0x9e, 0x2c, 0x1d, 0x1b, 0x25, 0x68, 0x65, 0x16, + 0x72, 0x1b, 0xad, 0x78, 0x85, 0x0b, 0xc1, 0x8d, 0x28, 0xe4, 0xf1, 0x23, 0xec, 0x22, 0x88, 0xd3, + 0x12, 0xe5, 0x3c, 0x7e, 0x9c, 0xa9, 0xba, 0x5a, 0x5c, 0x25, 0xf3, 0xbd, 0xa4, 0xeb, 0x6a, 0x31, + 0x28, 0xf3, 0xfd, 0x00, 0x58, 0x9d, 0x30, 0x92, 0xa5, 0xb0, 0x40, 0x16, 0xa4, 0x0f, 0x95, 0x76, + 0x08, 0xaf, 0x84, 0xad, 0xf8, 0xd6, 0x35, 0x45, 0x7c, 0x9d, 0xaf, 0x6f, 0x96, 0x04, 0x5e, 0xc6, + 0x4e, 0xf6, 0x70, 0x2b, 0x68, 0x0f, 0x12, 0x22, 0x0e, 0x5a, 0x73, 0xa7, 0x6d, 0x30, 0xc3, 0x56, + 0x61, 0xa7, 0x55, 0x48, 0x25, 0x9c, 0x28, 0x34, 0x9f, 0x9e, 0x15, 0x27, 0xef, 0xa4, 0x81, 0xc2, + 0x57, 0xe9, 0xf4, 0xac, 0x26, 0x6c, 0xc7, 0x63, 0x09, 0xdb, 0xf1, 0x48, 0x61, 0x3b, 0x1e, 0x4f, + 0xd8, 0x8e, 0x41, 0x61, 0xfb, 0x2c, 0xf0, 0x02, 0xeb, 0xaa, 0x76, 0xf3, 0xb5, 0x91, 0xf5, 0x66, + 0x55, 0xf0, 0x8c, 0x41, 0xfd, 0xf5, 0x82, 0x5e, 0x6e, 0xc6, 0x23, 0xf4, 0xd7, 0xb8, 0x4a, 0x7f, + 0xbd, 0x08, 0x0e, 0xa4, 0x46, 0x7f, 0x8d, 0x41, 0xfd, 0xf5, 0x12, 0x18, 0x4e, 0xa5, 0xfe, 0x1a, + 0xd7, 0xe9, 0xaf, 0x97, 0x75, 0xfd, 0x35, 0xae, 0xd4, 0x5f, 0xbf, 0x81, 0xf6, 0xbb, 0xfe, 0x90, + 0x24, 0x59, 0x90, 0x92, 0x5c, 0x83, 0xcd, 0xab, 0xd9, 0xfb, 0xf2, 0x06, 0xa9, 0xc3, 0x7e, 0x0d, + 0x15, 0xcf, 0x9c, 0xfb, 0x03, 0x32, 0x20, 0xbe, 0xa8, 0x5a, 0xef, 0xcd, 0x9f, 0x7f, 0xc4, 0x1e, + 0x5b, 0xaf, 0xa2, 0xe2, 0x91, 0xc8, 0xd3, 0xbc, 0x34, 0xfd, 0xbd, 0xfc, 0x31, 0xcf, 0xd0, 0xcb, + 0x6a, 0xe5, 0x24, 0xdf, 0x2a, 0x1d, 0x2f, 0x1e, 0xe2, 0x9c, 0x8d, 0xbd, 0xa2, 0x97, 0x2b, 0xe4, + 0x4e, 0x61, 0x46, 0x92, 0x94, 0xad, 0xc3, 0x49, 0xa3, 0x5e, 0xe0, 0x05, 0x99, 0xa8, 0x48, 0xc3, + 0x38, 0x1b, 0xdc, 0xc6, 0xba, 0x8b, 0xde, 0xac, 0xc4, 0xe1, 0x4c, 0x2d, 0x9b, 0xb8, 0x9c, 0x45, + 0xe5, 0xb5, 0xe9, 0x57, 0x41, 0xcc, 0x95, 0xc2, 0x5e, 0xf2, 0xaa, 0x75, 0x61, 0x4a, 0x16, 0xec, + 0x5a, 0x4d, 0x98, 0x92, 0x07, 0xab, 0xc7, 0xe1, 0xa1, 0xad, 0xd5, 0xe2, 0x8c, 0x8e, 0x87, 0xe5, + 0x94, 0xa4, 0x2f, 0xaa, 0xce, 0x30, 0xce, 0x02, 0xb7, 0xd1, 0xf5, 0xf3, 0xa5, 0x78, 0x42, 0xb2, + 0x2d, 0xea, 0xca, 0xcd, 0x8a, 0x68, 0x42, 0xb2, 0x4d, 0x6f, 0xfd, 0x35, 0x18, 0x8c, 0x97, 0xe3, + 0x15, 0xe4, 0xc3, 0x15, 0x20, 0x4c, 0xee, 0x7d, 0x15, 0xbd, 0x5c, 0x37, 0xc3, 0xbc, 0xcc, 0xb1, + 0x2d, 0x4a, 0xc6, 0x47, 0xab, 0x26, 0x99, 0x15, 0x3b, 0xb6, 0xad, 0xd5, 0x1a, 0x30, 0xa5, 0x56, + 0xc1, 0xcb, 0xc4, 0xc7, 0x40, 0x30, 0xa5, 0xea, 0xa1, 0x15, 0x4d, 0xf2, 0xf4, 0x2a, 0xdf, 0x07, + 0x51, 0x0f, 0xce, 0x8b, 0x26, 0x32, 0xb3, 0xca, 0x76, 0xbd, 0x78, 0x50, 0x9c, 0x7e, 0x71, 0x6f, + 0x47, 0x11, 0xce, 0xab, 0xae, 0xbc, 0x30, 0xad, 0xa9, 0xb1, 0xf3, 0xac, 0x11, 0xb5, 0x03, 0xcf, + 0xed, 0xb1, 0x1a, 0xd1, 0x2d, 0x5d, 0x4c, 0x2d, 0x93, 0x05, 0xb7, 0x58, 0x73, 0xbb, 0xb2, 0x28, + 0x69, 0x76, 0x5c, 0x9c, 0x4d, 0xb7, 0xf3, 0xb5, 0xd5, 0xbb, 0x2f, 0x4e, 0x25, 0x4d, 0x1b, 0xad, + 0x9f, 0xdc, 0x74, 0x04, 0xa2, 0x1e, 0x6c, 0x97, 0x10, 0x18, 0xe3, 0x1a, 0xf7, 0xa4, 0x04, 0xdf, + 0x18, 0x84, 0x5e, 0xae, 0x17, 0xc5, 0xe1, 0x23, 0xe6, 0x40, 0xb4, 0x42, 0xfd, 0x48, 0x24, 0xdf, + 0xcd, 0x5c, 0x51, 0x2d, 0xae, 0x46, 0x5a, 0x74, 0x33, 0x77, 0x34, 0x52, 0x14, 0xca, 0xd2, 0x71, + 0x0d, 0xd2, 0xb8, 0xca, 0x6f, 0x3c, 0x86, 0xf2, 0x1b, 0x8f, 0x52, 0x7e, 0xe3, 0x51, 0xca, 0x6f, + 0x5c, 0xab, 0xfc, 0xc6, 0x23, 0x95, 0xdf, 0xb8, 0x5e, 0xf9, 0x8d, 0xc7, 0x52, 0x7e, 0xe3, 0xd1, + 0xca, 0x6f, 0x3c, 0x9e, 0xf2, 0x1b, 0x8f, 0xa1, 0xfc, 0xc6, 0x23, 0x95, 0xdf, 0xb8, 0x5e, 0xf9, + 0x8d, 0xc7, 0x50, 0x7e, 0xe3, 0x47, 0xa0, 0xfc, 0xfe, 0xe7, 0xb3, 0xdf, 0x98, 0xf2, 0x1b, 0xff, + 0x26, 0x28, 0xbf, 0xf1, 0xb7, 0x5c, 0xf9, 0x8d, 0x1f, 0x85, 0xf2, 0xfb, 0xdf, 0x5f, 0xa9, 0x57, + 0x7e, 0xe3, 0x1a, 0xe5, 0x37, 0x56, 0x94, 0xdf, 0x67, 0x15, 0x99, 0x28, 0xce, 0x85, 0x9a, 0xca, + 0xc5, 0xfb, 0x05, 0xdd, 0x4b, 0xdc, 0xbb, 0x57, 0xd5, 0xcb, 0x50, 0xee, 0x56, 0x71, 0xed, 0x3e, + 0x66, 0x42, 0x98, 0xb7, 0x6e, 0xed, 0xfa, 0x6f, 0x08, 0x85, 0xb1, 0x71, 0xfd, 0xd7, 0x84, 0xc2, + 0xda, 0x7d, 0x17, 0x90, 0x28, 0x1b, 0x7f, 0x34, 0x8e, 0x4b, 0x12, 0x65, 0x55, 0x2f, 0xaa, 0xf4, + 0xac, 0x5f, 0xb8, 0xed, 0x52, 0xe7, 0xf2, 0xbe, 0x5d, 0xe1, 0xae, 0x5f, 0xb7, 0xcb, 0xee, 0xf2, + 0xb6, 0xad, 0x5d, 0x36, 0x94, 0x71, 0x9b, 0x97, 0xed, 0xc3, 0xe5, 0xd1, 0x17, 0x77, 0x6d, 0x55, + 0xb0, 0x8b, 0x55, 0x41, 0x9b, 0x79, 0xd5, 0x36, 0x50, 0xf4, 0x9b, 0xb6, 0x76, 0x63, 0xaf, 0x50, + 0xbe, 0x5e, 0x32, 0x6e, 0xec, 0x90, 0xf2, 0xf5, 0xbd, 0xf2, 0x8a, 0x00, 0xd7, 0x6c, 0xdb, 0xdc, + 0x11, 0xf9, 0x2d, 0xfb, 0x2a, 0x7a, 0xa9, 0xb4, 0xa2, 0x55, 0x97, 0x6c, 0x63, 0x5f, 0x95, 0xef, + 0xd8, 0xc0, 0xf6, 0xa8, 0x13, 0x83, 0xe3, 0x5a, 0x31, 0x38, 0xd6, 0xc4, 0xe0, 0xa7, 0x67, 0x4d, + 0x31, 0x38, 0x56, 0xc4, 0xe0, 0xa7, 0x67, 0x6b, 0x5c, 0xdf, 0x39, 0x27, 0xee, 0xd4, 0xa0, 0xeb, + 0x3b, 0xe7, 0x34, 0x1d, 0x39, 0x06, 0x75, 0xe4, 0xf3, 0xd0, 0x4a, 0xd4, 0xe8, 0xc8, 0x31, 0xac, + 0x23, 0x5f, 0x80, 0x60, 0x6a, 0x74, 0xe4, 0x58, 0xd7, 0x91, 0x2f, 0x42, 0xaf, 0xa6, 0xbc, 0xd7, + 0x6b, 0x74, 0x18, 0x24, 0x81, 0x5e, 0x32, 0xe8, 0xb0, 0x7a, 0x09, 0x34, 0xae, 0x90, 0x40, 0x2f, + 0x43, 0x43, 0xa8, 0x91, 0x40, 0x63, 0x48, 0x02, 0xfd, 0x21, 0x14, 0x8a, 0x76, 0xa3, 0xd7, 0x78, + 0xc6, 0x1a, 0xcd, 0xf2, 0x65, 0x83, 0xfd, 0xa9, 0xd2, 0x2c, 0xab, 0x2a, 0x54, 0x5c, 0xad, 0x59, + 0xe6, 0x51, 0xb2, 0x4f, 0xdd, 0x15, 0x5d, 0x85, 0x8a, 0x61, 0xd5, 0x32, 0x73, 0x60, 0x5f, 0xbd, + 0xee, 0x58, 0x3d, 0xe4, 0x55, 0xb5, 0x40, 0xaa, 0xc9, 0x5f, 0xab, 0xef, 0x61, 0xa5, 0x70, 0xb0, + 0x7c, 0xf4, 0xf6, 0xa8, 0x2e, 0x98, 0x6a, 0x59, 0x4e, 0x76, 0x10, 0x76, 0xc5, 0xdd, 0xfe, 0xf5, + 0xba, 0x4e, 0x6e, 0x07, 0x59, 0x47, 0x4c, 0x7e, 0x10, 0x76, 0xad, 0xcf, 0xd1, 0x5b, 0x63, 0x0c, + 0x44, 0x6c, 0x70, 0x3a, 0x53, 0xab, 0xba, 0xbe, 0x1b, 0x1e, 0x07, 0x7b, 0xcb, 0xd9, 0x44, 0x7d, + 0xa6, 0xc8, 0xc7, 0xeb, 0x46, 0xc1, 0xd2, 0x69, 0x98, 0x89, 0x6b, 0xff, 0x89, 0x51, 0x23, 0xa0, + 0x99, 0x35, 0xcc, 0x34, 0x65, 0x37, 0x1e, 0x4f, 0x3d, 0xbe, 0x36, 0x7a, 0x1d, 0xaa, 0xd5, 0xe3, + 0x78, 0x3c, 0xf5, 0xf8, 0xf5, 0xf1, 0xfa, 0x80, 0xd5, 0xe3, 0xb8, 0x56, 0x3d, 0xbe, 0xae, 0xab, + 0xc7, 0xf1, 0x78, 0xea, 0x71, 0x3c, 0x5a, 0x3d, 0xfe, 0x11, 0x34, 0xf1, 0x63, 0xa9, 0xc7, 0x71, + 0xbd, 0x7a, 0xbc, 0xa5, 0xab, 0xc7, 0xf1, 0x98, 0xea, 0x71, 0x3c, 0x96, 0x7a, 0x7c, 0x03, 0x7a, + 0x6f, 0x6b, 0xd4, 0xe3, 0x9a, 0x38, 0x1a, 0xeb, 0x72, 0xc7, 0x1b, 0xba, 0x38, 0x1a, 0x6b, 0x72, + 0x47, 0xc8, 0x51, 0x32, 0x6a, 0x37, 0x21, 0x47, 0x49, 0xa5, 0xad, 0xa1, 0x57, 0x4a, 0x8e, 0x10, + 0x85, 0xc6, 0xf9, 0x87, 0xe3, 0x3a, 0x08, 0xc0, 0x9d, 0x41, 0x81, 0xc8, 0x3b, 0xd7, 0x6d, 0x28, + 0x10, 0x50, 0x17, 0x8e, 0x75, 0x15, 0xe4, 0xc7, 0xb0, 0x63, 0x75, 0x8f, 0x92, 0x15, 0xfb, 0x04, + 0x72, 0x94, 0x74, 0x98, 0xa6, 0x81, 0xc6, 0xaa, 0x46, 0xee, 0x8e, 0xae, 0x81, 0xc6, 0x8a, 0x3c, + 0x4e, 0x93, 0xcb, 0x63, 0x4d, 0x8f, 0xf6, 0xa9, 0x2e, 0x97, 0xc7, 0x8a, 0x14, 0xcd, 0xba, 0xa4, + 0x0a, 0x9b, 0xb5, 0xbd, 0xc3, 0x88, 0xae, 0xcf, 0xf4, 0xff, 0x3c, 0x42, 0xd9, 0x27, 0x8c, 0xe1, + 0xd2, 0x09, 0x40, 0xf0, 0x25, 0x17, 0x9a, 0xf3, 0x29, 0x1d, 0xc2, 0xa0, 0x55, 0x46, 0xe0, 0xb0, + 0x04, 0xfa, 0x79, 0x3d, 0x0e, 0xcb, 0x9a, 0xa3, 0x70, 0xa2, 0x90, 0x08, 0xf9, 0x79, 0x35, 0x4e, + 0x64, 0xfe, 0x8f, 0x1a, 0x32, 0x09, 0xe4, 0x54, 0xdb, 0x17, 0xd0, 0xa4, 0x14, 0x4c, 0x1b, 0xbc, + 0x7c, 0xf4, 0x95, 0x76, 0xe1, 0xe5, 0xa3, 0xaf, 0xb0, 0xf6, 0x47, 0x04, 0xb9, 0x53, 0xf1, 0x6d, + 0xb9, 0xa9, 0xff, 0x11, 0x81, 0x74, 0x2d, 0xbe, 0x2a, 0xab, 0x17, 0x92, 0xad, 0x82, 0x57, 0xb9, + 0x90, 0x6c, 0x01, 0xde, 0x05, 0xbc, 0x15, 0x8a, 0xd2, 0xd7, 0xf5, 0xed, 0xe6, 0x9c, 0xe9, 0x32, + 0x75, 0x6d, 0xc8, 0x86, 0x4c, 0x1d, 0x18, 0xb2, 0xe1, 0x54, 0x0c, 0x79, 0xcb, 0x60, 0x16, 0xab, + 0x86, 0x6c, 0x00, 0xe4, 0x43, 0x6e, 0xe7, 0x43, 0xd6, 0xfc, 0x8d, 0x21, 0x6b, 0xde, 0xca, 0x90, + 0x0d, 0x0d, 0x7b, 0x69, 0xc8, 0x9a, 0x38, 0xda, 0xc8, 0x88, 0x81, 0x2e, 0x8e, 0x06, 0x33, 0xa2, + 0xe6, 0x28, 0x33, 0xe2, 0x3d, 0xc8, 0xd1, 0xc8, 0x88, 0x9a, 0x23, 0x94, 0x11, 0xbb, 0x79, 0x46, + 0x54, 0x40, 0xaa, 0x33, 0xa2, 0x39, 0x7d, 0x2c, 0x23, 0xf6, 0xa0, 0x40, 0x40, 0x5d, 0xb8, 0x91, + 0x11, 0xfb, 0xb0, 0x63, 0x75, 0x8f, 0x32, 0x23, 0x86, 0x90, 0xa3, 0x91, 0x11, 0x8d, 0x1e, 0x69, + 0x46, 0x8c, 0xe0, 0xfd, 0xa5, 0x64, 0x44, 0xc3, 0x89, 0x65, 0xc4, 0xd8, 0x60, 0xbc, 0x81, 0x8c, + 0x08, 0xec, 0x2a, 0x96, 0x11, 0xef, 0x57, 0xee, 0x2a, 0x35, 0x23, 0x56, 0xec, 0x2a, 0xbe, 0x31, + 0x13, 0xfd, 0x8f, 0x13, 0xea, 0x32, 0x62, 0x15, 0x0e, 0xcb, 0x88, 0x69, 0x3d, 0x8e, 0x9a, 0x11, + 0x2b, 0x71, 0x68, 0x46, 0xcc, 0x46, 0xe0, 0xd0, 0x8c, 0xf8, 0x3a, 0xda, 0x2f, 0xdd, 0xb7, 0xb6, + 0xa5, 0x4e, 0x6f, 0xc0, 0xcb, 0x77, 0xa2, 0x61, 0x79, 0x5b, 0x48, 0xf5, 0xa6, 0xd1, 0x01, 0xd5, + 0x56, 0x6e, 0x8d, 0x21, 0xff, 0x6b, 0x92, 0xc2, 0x5a, 0x6e, 0x0b, 0x03, 0x9b, 0x27, 0x8e, 0x6d, + 0x13, 0x9b, 0x25, 0x8d, 0xe6, 0x7f, 0x8d, 0xa1, 0xd2, 0xc7, 0xa3, 0x55, 0xfa, 0x78, 0x84, 0x4a, + 0x1f, 0x8f, 0x50, 0xe9, 0xe3, 0x3a, 0x95, 0x3e, 0x1e, 0xa5, 0xd2, 0xc7, 0xb5, 0x2a, 0x7d, 0x3c, + 0x8e, 0x4a, 0x1f, 0x8f, 0x54, 0xe9, 0xe3, 0xb1, 0x54, 0xfa, 0x78, 0xb4, 0x4a, 0x1f, 0x8f, 0x52, + 0xe9, 0xe3, 0x5a, 0x95, 0x3e, 0x1e, 0xad, 0xd2, 0xd7, 0xd3, 0x4b, 0x09, 0x02, 0xd6, 0xe8, 0x6b, + 0x10, 0xad, 0x51, 0x0a, 0x7d, 0x3c, 0x52, 0xa1, 0xaf, 0x26, 0x81, 0xe6, 0x5f, 0x7c, 0x53, 0x0a, + 0x7d, 0xfc, 0x88, 0x15, 0xfa, 0xff, 0x6a, 0x28, 0xf4, 0x4f, 0xe4, 0x3f, 0x83, 0x78, 0x88, 0x75, + 0x21, 0x21, 0x92, 0x1a, 0xfd, 0x21, 0xfe, 0x75, 0xab, 0xf4, 0xf1, 0x77, 0x2a, 0xfd, 0xef, 0x54, + 0xfa, 0xa3, 0x55, 0xfa, 0x17, 0x36, 0xd0, 0x81, 0x7b, 0x61, 0x9c, 0x38, 0xc5, 0x16, 0x74, 0xc8, + 0x83, 0xcc, 0x9a, 0x9c, 0xbe, 0x32, 0x08, 0x83, 0x98, 0x24, 0x6b, 0x24, 0xdb, 0x8e, 0x92, 0x2e, + 0x8d, 0x39, 0x8d, 0x92, 0xd4, 0x7e, 0x83, 0xed, 0xd9, 0x3d, 0xca, 0x96, 0x6d, 0xed, 0xa3, 0x00, + 0x57, 0xe8, 0xef, 0xc5, 0x8e, 0x17, 0x2f, 0x3d, 0xc8, 0xe6, 0xbf, 0xf8, 0xf9, 0x57, 0x47, 0x1b, + 0xff, 0xf6, 0xd5, 0xd1, 0xc6, 0x7f, 0x7c, 0x75, 0xb4, 0x71, 0xa7, 0xd5, 0x0e, 0x32, 0x6a, 0x4f, + 0xe1, 0xa6, 0x43, 0x92, 0x9d, 0x0a, 0x3c, 0xb2, 0x49, 0x92, 0xf6, 0xa9, 0x0e, 0x71, 0x7b, 0x59, + 0x67, 0x33, 0xca, 0xde, 0x0a, 0xc2, 0x36, 0x49, 0xb3, 0xb7, 0xee, 0x65, 0xc1, 0x5b, 0xa1, 0x9b, + 0x05, 0x43, 0x72, 0x2a, 0xee, 0xb6, 0x4f, 0xdd, 0xcb, 0x82, 0x53, 0xae, 0xef, 0xc6, 0x19, 0x49, + 0xd2, 0x53, 0x3c, 0xc2, 0x53, 0xa9, 0xd7, 0x21, 0x7d, 0xf7, 0x17, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xe5, 0x6d, 0x38, 0xa6, 0xdc, 0x61, 0x00, 0x00, +} + +func (m *JunosDhcp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientProtocols != nil { + { + size, err := m.ClientProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Dhcp != nil { + { + size, err := m.Dhcp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.V6 != nil { + { + size, err := m.V6.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.V4 != nil { + { + size, err := m.V4.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.GlobalStatistics != nil { + { + size, err := m.GlobalStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.RoutingInstances != nil { + { + size, err := m.RoutingInstances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EraReportedSuccesses != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.EraReportedSuccesses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.EraReportedFailures != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.EraReportedFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.EraInflightCount != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.EraInflightCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedRecoveryInProgress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedRecoveryInProgress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedNoMemory != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoMemory)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedNoRoutingInstance != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoRoutingInstance)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedNoInterface != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoInterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedShortPacket != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedShortPacket)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedIpHeader != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedIpHeader)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedBadRead != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedBadRead)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RoutingInstance) > 0 { + for iNdEx := len(m.RoutingInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RoutingInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Relay != nil { + { + size, err := m.Relay.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Server != nil { + { + size, err := m.Server.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.RiName != nil { + i -= len(*m.RiName) + copy(dAtA[i:], *m.RiName) + i = encodeVarintJdhcpdOc(dAtA, i, uint64(len(*m.RiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bindings != nil { + { + size, err := m.Bindings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MsgSentV4ServerQueryDone != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerQueryDone)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x88 + } + if m.MsgSentV4ServerActive != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerActive)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x80 + } + if m.MsgSentV4ServerUnknown != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerUnknown)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf8 + } + if m.MsgSentV4ServerUnassigned != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerUnassigned)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.MsgSentV4ServerForceRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerForceRenew)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.MsgSentV4ServerNak != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerNak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.MsgSentV4ServerBootAck != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerBootAck)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.MsgSentV4ServerOffer != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerOffer)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.MsgSentV4ServerBootReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4ServerBootReply)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.MsgRecvV4ServerBulkleaseQuery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerBulkleaseQuery)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.MsgRecvV4ServerLeaseQuery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerLeaseQuery)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.MsgRecvV4ServerRebind != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerRebind)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.MsgRecvV4ServerRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerRenew)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.MsgRecvV4ServerRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerRequest)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.MsgRecvV4ServerRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerRelease)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.MsgRecvV4ServerInform != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerInform)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.MsgRecvV4ServerDiscover != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerDiscover)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.MsgRecvV4ServerDecline != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerDecline)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.MsgRecvV4ServerBootRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4ServerBootRequest)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.OfferDelayTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OfferDelayTotal)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.OfferDelayInProgress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OfferDelayInProgress)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.OfferDelayed != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OfferDelayed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV4ServerLeaseTimeViolation != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerLeaseTimeViolation)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV4ServerClientLookup != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerClientLookup)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV4ServerEraStartFailed != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerEraStartFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV4ServerInactiveVlan != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerInactiveVlan)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV4ServerBadUdpChecksum != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerBadUdpChecksum)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV4ServerTtlExpired != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerTtlExpired)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV4ServerHopLimit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerHopLimit)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV4ServerNoOptions != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoOptions)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV4ServerNoBadDhcpOpcode != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoBadDhcpOpcode)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.DroppedV4ServerNoLicense != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoLicense)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.DroppedV4ServerDynamicProfile != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerDynamicProfile)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.DroppedV4ServerAuthentication != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerAuthentication)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.DroppedV4ServerNoOption82 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoOption82)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.DroppedV4ServerNoOption60 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoOption60)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DroppedV4ServerNoBadSend != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoBadSend)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedV4ServerShortPkt != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerShortPkt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV4ServerNoLocalAddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoLocalAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV4ServerNoInterfaceCfg != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoInterfaceCfg)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV4ServerNoAddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerNoAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV4ServerBadAddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerBadAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV4ServerBadOptions != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerBadOptions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV4ServerBadBootpOpcode != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerBadBootpOpcode)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV4ServerBootpPkt != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerBootpPkt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV4ServerBadHware != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerBadHware)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV4ServerTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4ServerTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BindingStateServerRestoring != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateServerRestoring)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.BindingStateV4ServerRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerRelease)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.BindingStateV4ServerRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerRenew)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.BindingStateV4ServerRequesting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerRequesting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.BindingStateV4ServerSelecting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerSelecting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.BindingStateV4ServerBound != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerBound)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.BindingStateV4ServerInit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerInit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.BindingStateV4ServerBinding != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4ServerBinding)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Servers != nil { + { + size, err := m.Servers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Bindings != nil { + { + size, err := m.Bindings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.V4RelayBootpReplyFwd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpReplyFwd)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x98 + } + if m.V4RelayBootpRequestFwd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpRequestFwd)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x90 + } + if m.V4RelayBootpForwardedTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpForwardedTotal)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x88 + } + if m.MsgSentV4RelayRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayRequest)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x80 + } + if m.MsgSentV4RelayRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayRelease)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf8 + } + if m.MsgSentV4RelayInform != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayInform)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf0 + } + if m.MsgSentV4RelayDiscover != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayDiscover)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe8 + } + if m.MsgSentV4RelayDecline != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayDecline)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe0 + } + if m.V4RelayBootpRequestSent != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpRequestSent)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd8 + } + if m.MsgSentV4RelayBulkleasequery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayBulkleasequery)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd0 + } + if m.MsgSentV4RelayLeasequery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayLeasequery)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 + } + if m.MsgSentV4RelayForcerenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayForcerenew)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 + } + if m.MsgSentV4RelayNak != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayNak)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 + } + if m.MsgSentV4RelayAck != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayAck)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 + } + if m.MsgSentV4RelayOffer != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV4RelayOffer)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if m.V4RelayBootpReplySent != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpReplySent)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa0 + } + if m.MsgRecvV4RelayForcerenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayForcerenew)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x98 + } + if m.MsgRecvV4RelayNak != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayNak)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x90 + } + if m.MsgRecvV4RelayAck != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayAck)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x88 + } + if m.MsgRecvV4RelayOffer != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayOffer)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x80 + } + if m.V4RelayBootpReplyRcvd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpReplyRcvd)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf8 + } + if m.MsgRecvV4RelayLeasequerydone != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayLeasequerydone)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.MsgRecvV4RelayLeaseunknown != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayLeaseunknown)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.MsgRecvV4RelayLeaseunassigned != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayLeaseunassigned)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.MsgRecvV4RelayLeaseactive != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayLeaseactive)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.MsgRecvV4RelayRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayRequest)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.MsgRecvV4RelayRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayRelease)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.MsgRecvV4RelayInform != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayInform)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.MsgRecvV4RelayDiscover != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayDiscover)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.MsgRecvV4RelayDecline != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV4RelayDecline)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.V4RelayBootpRequestRcvd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V4RelayBootpRequestRcvd)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV4RelayRelaySourceNoLpbkInterface != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayRelaySourceNoLpbkInterface)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV4RelayDuringLeasequeryReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayDuringLeasequeryReply)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.DroppedV4RelayAbortLeasequeryReplyProc != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayAbortLeasequeryReplyProc)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.DroppedV4RelayOlderLeasequeryReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayOlderLeasequeryReply)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.DroppedV4RelayLeasequeryReplWithQueryTerm != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayLeasequeryReplWithQueryTerm)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.DroppedV4RelayLeasequeryReplWithErrorCode != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayLeasequeryReplWithErrorCode)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.DroppedV4RelayLeasequeryReplNoCircuitid != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayLeasequeryReplNoCircuitid)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.DroppedV4RelayLeaseTimeViolation != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayLeaseTimeViolation)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedV4RelayProxyNoServerAddr != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayProxyNoServerAddr)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV4RelayClientLookup != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayClientLookup)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV4RelayEraStartFailed != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayEraStartFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV4RelayInactiveVlan != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayInactiveVlan)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV4RelayBadUdpChecksum != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadUdpChecksum)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV4RelayTtlExpired != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayTtlExpired)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV4RelayHopLimit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayHopLimit)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV4RelayNoOptions != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayNoOptions)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV4RelayBadDhcpOpcode != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadDhcpOpcode)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV4RelayLicense != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayLicense)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.DroppedV4RelayDynamicProfile != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayDynamicProfile)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.DroppedV4RelayAuthentication != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayAuthentication)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.DroppedV4RelayOption_82 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayOption_82)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.DroppedV4RelayRelayOption != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayRelayOption)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.DroppedV4RelayOption_60 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayOption_60)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DroppedV4RelayBadSend != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadSend)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedV4RelayShortPacket != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayShortPacket)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV4RelayNoLocalAddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayNoLocalAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV4RelayNoInterfaceCfg != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayNoInterfaceCfg)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV4RelayNoAddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayNoAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV4RelayBadAddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadAddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV4RelayBadOptions != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadOptions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV4RelayBadBootpOpcode != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadBootpOpcode)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV4RelayBootpPacket != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBootpPacket)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV4RelayBadHardware != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayBadHardware)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV4RelayTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV4RelayTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BindingStateV4RelayRebind != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayRebind)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.BindingStateV4RelayRestoring != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayRestoring)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.BindingStateV4RelayRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayRelease)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.BindingStateV4RelayRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayRenew)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.BindingStateV4RelayRequesting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayRequesting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.BindingStateV4RelaySelecting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelaySelecting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.BindingStateV4RelayBound != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayBound)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.BindingStateV4RelayInit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayInit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.BindingStateV4RelayBinding != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV4RelayBinding)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Server) > 0 { + for iNdEx := len(m.Server) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Server[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResponseTime != nil { + { + size, err := m.ResponseTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ServerIp != nil { + i -= len(*m.ServerIp) + copy(dAtA[i:], *m.ServerIp) + i = encodeVarintJdhcpdOc(dAtA, i, uint64(len(*m.ServerIp))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OneMinuteMessagesNoResponse != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMessagesNoResponse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OneMinuteMessagesReceived != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OneMinuteMessagesSent != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OneMinuteMaximumResponseTime != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMaximumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OneMinuteAverageResponseTime != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteAverageResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OneMinuteMinimumResponseTime != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMinimumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.GlobalStatistics != nil { + { + size, err := m.GlobalStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.RoutingInstances != nil { + { + size, err := m.RoutingInstances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EraReportedSuccesses != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.EraReportedSuccesses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.EraReportedFailures != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.EraReportedFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.EraInflightCount != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.EraInflightCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedRecoveryInProgress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedRecoveryInProgress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedNoMemory != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoMemory)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedNoSafd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoSafd)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedNoRoutingInstance != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoRoutingInstance)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedNoInterface != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedNoInterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedShortPacket != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedShortPacket)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedIpHeader != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedIpHeader)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedBadRead != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedBadRead)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RoutingInstance) > 0 { + for iNdEx := len(m.RoutingInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RoutingInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Relay != nil { + { + size, err := m.Relay.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Server != nil { + { + size, err := m.Server.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.RiName != nil { + i -= len(*m.RiName) + copy(dAtA[i:], *m.RiName) + i = encodeVarintJdhcpdOc(dAtA, i, uint64(len(*m.RiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bindings != nil { + { + size, err := m.Bindings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MsgSentV6ServerLeasequeryDone != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerLeasequeryDone)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.MsgSentV6ServerLeasequeryData != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerLeasequeryData)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.MsgSentV6ServerLeasequeryRepl != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerLeasequeryRepl)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.MsgSentV6ServerRelayRepl != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerRelayRepl)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.MsgSentV6ServerReconfigure != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerReconfigure)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.MsgSentV6ServerLogicalNak != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerLogicalNak)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.MsgSentV6ServerReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerReply)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.MsgSentV6ServerAdvertise != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6ServerAdvertise)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.MsgRecvV6ServerDhcpv6Leasequery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Leasequery)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.MsgRecvV6ServerDhcpv6RelayForw != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6RelayForw)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.MsgRecvV6ServerDhcpv6Rebind != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Rebind)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.MsgRecvV6ServerDhcpv6Renew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Renew)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.MsgRecvV6ServerDhcpv6Confirm != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Confirm)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.MsgRecvV6ServerDhcpv6Request != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Request)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.MsgRecvV6ServerDhcpv6Release != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Release)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.MsgRecvV6ServerDhcpv6InformationRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6InformationRequest)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.MsgRecvV6ServerDhcpv6Solicit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Solicit)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.MsgRecvV6ServerDhcpv6Decline != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6ServerDhcpv6Decline)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.AdvertiseTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.AdvertiseTotal)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.AdvertiseQueued != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.AdvertiseQueued)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.AdvertiseDelayed != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.AdvertiseDelayed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV6ServerLeaseTimeViolation != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerLeaseTimeViolation)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV6ServerClientLookup != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerClientLookup)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV6ServerEraStartFailed != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerEraStartFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV6ServerInactiveVlan != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerInactiveVlan)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.DroppedV6ServerLicense != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerLicense)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.DroppedV6ServerDynamicProfile != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerDynamicProfile)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.DroppedV6ServerAuthentication != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerAuthentication)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.DroppedV6ServerOption_18 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerOption_18)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.DroppedV6ServerStrictReconfigure != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerStrictReconfigure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DroppedV6ServerNoClientId != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerNoClientId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedV6ServerBadUdpChecksum != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerBadUdpChecksum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV6ServerRelayHopCount != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerRelayHopCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV6ServerBadSrcaddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerBadSrcaddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV6ServerBadOptions != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerBadOptions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV6ServerBadMsgtype != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerBadMsgtype)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV6ServerShortPacket != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerShortPacket)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV6ServerBadSend != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerBadSend)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV6ServerNoRoutingInstance != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerNoRoutingInstance)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV6ServerNoSafd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerNoSafd)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV6ServerTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6ServerTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BindingStateServerRestoring != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateServerRestoring)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.BindingStateV6ServerRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerRelease)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.BindingStateV6ServerRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerRenew)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.BindingStateV6ServerRequesting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerRequesting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.BindingStateV6ServerSelecting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerSelecting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.BindingStateV6ServerBound != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerBound)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.BindingStateV6ServerInit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerInit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.BindingStateV6ServerBinding != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6ServerBinding)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Servers != nil { + { + size, err := m.Servers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Bindings != nil { + { + size, err := m.Bindings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.V6RelayFwdReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V6RelayFwdReply)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xb8 + } + if m.V6RelayFwdRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V6RelayFwdRequest)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xb0 + } + if m.V6RelayFwdTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.V6RelayFwdTotal)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xa8 + } + if m.MsgSentV6RelayLeasequeryDone != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayLeasequeryDone)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xa0 + } + if m.MsgSentV6RelayLeasequeryData != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayLeasequeryData)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x98 + } + if m.MsgSentV6RelayLeasequeryRepl != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayLeasequeryRepl)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x90 + } + if m.MsgSentV6RelayRelayForw != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayRelayForw)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x88 + } + if m.MsgSentV6RelayRebind != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayRebind)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x80 + } + if m.MsgSentV6RelayRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayRenew)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf8 + } + if m.MsgSentV6RelayConfirm != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayConfirm)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf0 + } + if m.MsgSentV6RelayRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayRequest)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe8 + } + if m.MsgSentV6RelayRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayRelease)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xe0 + } + if m.MsgSentV6RelayInformationRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayInformationRequest)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd8 + } + if m.MsgSentV6RelaySolicit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelaySolicit)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xd0 + } + if m.MsgSentV6RelayDecline != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayDecline)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 + } + if m.MsgSentV6RelayLeasequery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayLeasequery)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 + } + if m.MsgSentV6RelayRelayRepl != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayRelayRepl)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 + } + if m.MsgSentV6RelayReconfigure != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayReconfigure)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 + } + if m.MsgSentV6RelayReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgSentV6RelayReply)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if m.MsgRecvV6RelayLeasequery != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayLeasequery)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa0 + } + if m.MsgRecvV6RelayRelayRepl != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayRelayRepl)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x98 + } + if m.MsgRecvV6RelayReconfigure != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayReconfigure)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x90 + } + if m.MsgRecvV6RelayReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayReply)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x88 + } + if m.MsgRecvV6RelayAdvertise != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayAdvertise)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0x80 + } + if m.MsgRecvV6RelayLeasequeryDone != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayLeasequeryDone)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf8 + } + if m.MsgRecvV6RelayLeasequeryData != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayLeasequeryData)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.MsgRecvV6RelayLeasequeryRepl != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayLeasequeryRepl)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.MsgRecvV6RelayRelayForw != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayRelayForw)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.MsgRecvV6RelayRebind != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayRebind)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.MsgRecvV6RelayRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayRenew)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.MsgRecvV6RelayConfirm != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayConfirm)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc8 + } + if m.MsgRecvV6RelayRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayRequest)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc0 + } + if m.MsgRecvV6RelayRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayRelease)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.MsgRecvV6RelayInformationRequest != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayInformationRequest)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.MsgRecvV6RelaySolicit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelaySolicit)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.MsgRecvV6RelayDecline != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.MsgRecvV6RelayDecline)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV6RelayRelaySourceNoLpbkInterface != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayRelaySourceNoLpbkInterface)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.DroppedV6RelayDuringLeasequeryReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayDuringLeasequeryReply)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.DroppedV6RelayAbortLeasequeryReplyProc != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayAbortLeasequeryReplyProc)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.DroppedV6RelayOlderLeasequeryReply != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayOlderLeasequeryReply)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + if m.DroppedV6RelayLeasequeryReplWithQueryTerm != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplWithQueryTerm)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.DroppedV6RelayLeasequeryReplWithErrorCode != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplWithErrorCode)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.DroppedV6RelayLeasequeryReplWithHopCnt != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplWithHopCnt)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedV6RelayLeasequeryReplNoRelayData != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplNoRelayData)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV6RelayLeasequeryReplWithClientLink != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplWithClientLink)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV6RelayLeasequeryReplNoInterfaceid != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplNoInterfaceid)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV6RelayLeasequeryReplNoClientData != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeasequeryReplNoClientData)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV6RelayLeaseTimeViolation != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLeaseTimeViolation)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV6RelayClientLookup != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayClientLookup)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV6RelayEraStartFailed != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayEraStartFailed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV6RelayInactiveVlan != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayInactiveVlan)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV6RelayLicense != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayLicense)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV6RelayDynamicProfile != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayDynamicProfile)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.DroppedV6RelayAuthentication != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayAuthentication)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.DroppedV6RelayOption_37 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayOption_37)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.DroppedV6RelayOption_18 != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayOption_18)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.DroppedV6RelayRelayOption != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayRelayOption)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.DroppedV6RelayStrictReconfigure != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayStrictReconfigure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DroppedV6RelayNoClientId != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayNoClientId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.DroppedV6RelayBadUdpChecksum != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayBadUdpChecksum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.DroppedV6RelayRelayHopCount != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayRelayHopCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.DroppedV6RelayBadSrcaddress != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayBadSrcaddress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.DroppedV6RelayBadOptions != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayBadOptions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DroppedV6RelayBadMsgtype != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayBadMsgtype)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.DroppedV6RelayShortPacket != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayShortPacket)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DroppedV6RelayBadSend != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayBadSend)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DroppedV6RelayNoRoutingInstance != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayNoRoutingInstance)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DroppedV6RelayNoSafd != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayNoSafd)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DroppedV6RelayTotal != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.DroppedV6RelayTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BindingStateV6RelayRebind != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayRebind)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.BindingStateRelayRestoring != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateRelayRestoring)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.BindingStateV6RelayRelease != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayRelease)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.BindingStateV6RelayRenew != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayRenew)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.BindingStateV6RelayRequesting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayRequesting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.BindingStateV6RelaySelecting != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelaySelecting)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.BindingStateV6RelayBound != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayBound)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.BindingStateV6RelayInit != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayInit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.BindingStateV6RelayBinding != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.BindingStateV6RelayBinding)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Server) > 0 { + for iNdEx := len(m.Server) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Server[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResponseTime != nil { + { + size, err := m.ResponseTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdhcpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ServerIpv6 != nil { + i -= len(*m.ServerIpv6) + copy(dAtA[i:], *m.ServerIpv6) + i = encodeVarintJdhcpdOc(dAtA, i, uint64(len(*m.ServerIpv6))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OneMinuteMessagesNoResponse != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMessagesNoResponse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OneMinuteMessagesReceived != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OneMinuteMessagesSent != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OneMinuteMaximumResponseTime != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMaximumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OneMinuteAverageResponseTime != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteAverageResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OneMinuteMinimumResponseTime != nil { + i = encodeVarintJdhcpdOc(dAtA, i, uint64(*m.OneMinuteMinimumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJdhcpdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovJdhcpdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosDhcp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ClientProtocols != nil { + l = m.ClientProtocols.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Dhcp != nil { + l = m.Dhcp.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.V4 != nil { + l = m.V4.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.V6 != nil { + l = m.V6.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RoutingInstances != nil { + l = m.RoutingInstances.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.GlobalStatistics != nil { + l = m.GlobalStatistics.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DroppedTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedTotal)) + } + if m.DroppedBadRead != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedBadRead)) + } + if m.DroppedIpHeader != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedIpHeader)) + } + if m.DroppedShortPacket != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedShortPacket)) + } + if m.DroppedNoInterface != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoInterface)) + } + if m.DroppedNoRoutingInstance != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoRoutingInstance)) + } + if m.DroppedNoMemory != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoMemory)) + } + if m.DroppedRecoveryInProgress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedRecoveryInProgress)) + } + if m.EraInflightCount != nil { + n += 2 + sovJdhcpdOc(uint64(*m.EraInflightCount)) + } + if m.EraReportedFailures != nil { + n += 2 + sovJdhcpdOc(uint64(*m.EraReportedFailures)) + } + if m.EraReportedSuccesses != nil { + n += 2 + sovJdhcpdOc(uint64(*m.EraReportedSuccesses)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RoutingInstance) > 0 { + for _, e := range m.RoutingInstance { + l = e.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RiName != nil { + l = len(*m.RiName) + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Server != nil { + l = m.Server.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Relay != nil { + l = m.Relay.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Bindings != nil { + l = m.Bindings.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DroppedV4ServerTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerTotal)) + } + if m.DroppedV4ServerBadHware != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerBadHware)) + } + if m.DroppedV4ServerBootpPkt != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerBootpPkt)) + } + if m.DroppedV4ServerBadBootpOpcode != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerBadBootpOpcode)) + } + if m.DroppedV4ServerBadOptions != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerBadOptions)) + } + if m.DroppedV4ServerBadAddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerBadAddress)) + } + if m.DroppedV4ServerNoAddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoAddress)) + } + if m.DroppedV4ServerNoInterfaceCfg != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoInterfaceCfg)) + } + if m.DroppedV4ServerNoLocalAddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoLocalAddress)) + } + if m.DroppedV4ServerShortPkt != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerShortPkt)) + } + if m.DroppedV4ServerNoBadSend != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoBadSend)) + } + if m.DroppedV4ServerNoOption60 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoOption60)) + } + if m.DroppedV4ServerNoOption82 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoOption82)) + } + if m.DroppedV4ServerAuthentication != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerAuthentication)) + } + if m.DroppedV4ServerDynamicProfile != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerDynamicProfile)) + } + if m.DroppedV4ServerNoLicense != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoLicense)) + } + if m.DroppedV4ServerNoBadDhcpOpcode != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoBadDhcpOpcode)) + } + if m.DroppedV4ServerNoOptions != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerNoOptions)) + } + if m.DroppedV4ServerHopLimit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerHopLimit)) + } + if m.DroppedV4ServerTtlExpired != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerTtlExpired)) + } + if m.DroppedV4ServerBadUdpChecksum != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerBadUdpChecksum)) + } + if m.DroppedV4ServerInactiveVlan != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerInactiveVlan)) + } + if m.DroppedV4ServerEraStartFailed != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerEraStartFailed)) + } + if m.DroppedV4ServerClientLookup != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerClientLookup)) + } + if m.DroppedV4ServerLeaseTimeViolation != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4ServerLeaseTimeViolation)) + } + if m.OfferDelayed != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OfferDelayed)) + } + if m.OfferDelayInProgress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OfferDelayInProgress)) + } + if m.OfferDelayTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OfferDelayTotal)) + } + if m.MsgRecvV4ServerBootRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerBootRequest)) + } + if m.MsgRecvV4ServerDecline != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerDecline)) + } + if m.MsgRecvV4ServerDiscover != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerDiscover)) + } + if m.MsgRecvV4ServerInform != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerInform)) + } + if m.MsgRecvV4ServerRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerRelease)) + } + if m.MsgRecvV4ServerRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerRequest)) + } + if m.MsgRecvV4ServerRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerRenew)) + } + if m.MsgRecvV4ServerRebind != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerRebind)) + } + if m.MsgRecvV4ServerLeaseQuery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerLeaseQuery)) + } + if m.MsgRecvV4ServerBulkleaseQuery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4ServerBulkleaseQuery)) + } + if m.MsgSentV4ServerBootReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerBootReply)) + } + if m.MsgSentV4ServerOffer != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerOffer)) + } + if m.MsgSentV4ServerBootAck != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerBootAck)) + } + if m.MsgSentV4ServerNak != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerNak)) + } + if m.MsgSentV4ServerForceRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerForceRenew)) + } + if m.MsgSentV4ServerUnassigned != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerUnassigned)) + } + if m.MsgSentV4ServerUnknown != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerUnknown)) + } + if m.MsgSentV4ServerActive != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerActive)) + } + if m.MsgSentV4ServerQueryDone != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4ServerQueryDone)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BindingStateV4ServerBinding != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerBinding)) + } + if m.BindingStateV4ServerInit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerInit)) + } + if m.BindingStateV4ServerBound != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerBound)) + } + if m.BindingStateV4ServerSelecting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerSelecting)) + } + if m.BindingStateV4ServerRequesting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerRequesting)) + } + if m.BindingStateV4ServerRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerRenew)) + } + if m.BindingStateV4ServerRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4ServerRelease)) + } + if m.BindingStateServerRestoring != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateServerRestoring)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Bindings != nil { + l = m.Bindings.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Servers != nil { + l = m.Servers.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DroppedV4RelayTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayTotal)) + } + if m.DroppedV4RelayBadHardware != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadHardware)) + } + if m.DroppedV4RelayBootpPacket != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBootpPacket)) + } + if m.DroppedV4RelayBadBootpOpcode != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadBootpOpcode)) + } + if m.DroppedV4RelayBadOptions != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadOptions)) + } + if m.DroppedV4RelayBadAddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadAddress)) + } + if m.DroppedV4RelayNoAddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayNoAddress)) + } + if m.DroppedV4RelayNoInterfaceCfg != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayNoInterfaceCfg)) + } + if m.DroppedV4RelayNoLocalAddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayNoLocalAddress)) + } + if m.DroppedV4RelayShortPacket != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayShortPacket)) + } + if m.DroppedV4RelayBadSend != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadSend)) + } + if m.DroppedV4RelayOption_60 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayOption_60)) + } + if m.DroppedV4RelayRelayOption != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayRelayOption)) + } + if m.DroppedV4RelayOption_82 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayOption_82)) + } + if m.DroppedV4RelayAuthentication != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayAuthentication)) + } + if m.DroppedV4RelayDynamicProfile != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayDynamicProfile)) + } + if m.DroppedV4RelayLicense != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayLicense)) + } + if m.DroppedV4RelayBadDhcpOpcode != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadDhcpOpcode)) + } + if m.DroppedV4RelayNoOptions != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayNoOptions)) + } + if m.DroppedV4RelayHopLimit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayHopLimit)) + } + if m.DroppedV4RelayTtlExpired != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayTtlExpired)) + } + if m.DroppedV4RelayBadUdpChecksum != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayBadUdpChecksum)) + } + if m.DroppedV4RelayInactiveVlan != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayInactiveVlan)) + } + if m.DroppedV4RelayEraStartFailed != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayEraStartFailed)) + } + if m.DroppedV4RelayClientLookup != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayClientLookup)) + } + if m.DroppedV4RelayProxyNoServerAddr != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayProxyNoServerAddr)) + } + if m.DroppedV4RelayLeaseTimeViolation != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayLeaseTimeViolation)) + } + if m.DroppedV4RelayLeasequeryReplNoCircuitid != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayLeasequeryReplNoCircuitid)) + } + if m.DroppedV4RelayLeasequeryReplWithErrorCode != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayLeasequeryReplWithErrorCode)) + } + if m.DroppedV4RelayLeasequeryReplWithQueryTerm != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayLeasequeryReplWithQueryTerm)) + } + if m.DroppedV4RelayOlderLeasequeryReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayOlderLeasequeryReply)) + } + if m.DroppedV4RelayAbortLeasequeryReplyProc != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayAbortLeasequeryReplyProc)) + } + if m.DroppedV4RelayDuringLeasequeryReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayDuringLeasequeryReply)) + } + if m.DroppedV4RelayRelaySourceNoLpbkInterface != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV4RelayRelaySourceNoLpbkInterface)) + } + if m.V4RelayBootpRequestRcvd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpRequestRcvd)) + } + if m.MsgRecvV4RelayDecline != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayDecline)) + } + if m.MsgRecvV4RelayDiscover != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayDiscover)) + } + if m.MsgRecvV4RelayInform != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayInform)) + } + if m.MsgRecvV4RelayRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayRelease)) + } + if m.MsgRecvV4RelayRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayRequest)) + } + if m.MsgRecvV4RelayLeaseactive != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayLeaseactive)) + } + if m.MsgRecvV4RelayLeaseunassigned != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayLeaseunassigned)) + } + if m.MsgRecvV4RelayLeaseunknown != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayLeaseunknown)) + } + if m.MsgRecvV4RelayLeasequerydone != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayLeasequerydone)) + } + if m.V4RelayBootpReplyRcvd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpReplyRcvd)) + } + if m.MsgRecvV4RelayOffer != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayOffer)) + } + if m.MsgRecvV4RelayAck != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayAck)) + } + if m.MsgRecvV4RelayNak != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayNak)) + } + if m.MsgRecvV4RelayForcerenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV4RelayForcerenew)) + } + if m.V4RelayBootpReplySent != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpReplySent)) + } + if m.MsgSentV4RelayOffer != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayOffer)) + } + if m.MsgSentV4RelayAck != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayAck)) + } + if m.MsgSentV4RelayNak != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayNak)) + } + if m.MsgSentV4RelayForcerenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayForcerenew)) + } + if m.MsgSentV4RelayLeasequery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayLeasequery)) + } + if m.MsgSentV4RelayBulkleasequery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayBulkleasequery)) + } + if m.V4RelayBootpRequestSent != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpRequestSent)) + } + if m.MsgSentV4RelayDecline != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayDecline)) + } + if m.MsgSentV4RelayDiscover != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayDiscover)) + } + if m.MsgSentV4RelayInform != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayInform)) + } + if m.MsgSentV4RelayRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayRelease)) + } + if m.MsgSentV4RelayRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV4RelayRequest)) + } + if m.V4RelayBootpForwardedTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpForwardedTotal)) + } + if m.V4RelayBootpRequestFwd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpRequestFwd)) + } + if m.V4RelayBootpReplyFwd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V4RelayBootpReplyFwd)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BindingStateV4RelayBinding != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayBinding)) + } + if m.BindingStateV4RelayInit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayInit)) + } + if m.BindingStateV4RelayBound != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayBound)) + } + if m.BindingStateV4RelaySelecting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelaySelecting)) + } + if m.BindingStateV4RelayRequesting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayRequesting)) + } + if m.BindingStateV4RelayRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayRenew)) + } + if m.BindingStateV4RelayRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayRelease)) + } + if m.BindingStateV4RelayRestoring != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayRestoring)) + } + if m.BindingStateV4RelayRebind != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV4RelayRebind)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Server) > 0 { + for _, e := range m.Server { + l = e.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ServerIp != nil { + l = len(*m.ServerIp) + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.ResponseTime != nil { + l = m.ResponseTime.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OneMinuteMinimumResponseTime != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMinimumResponseTime)) + } + if m.OneMinuteAverageResponseTime != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteAverageResponseTime)) + } + if m.OneMinuteMaximumResponseTime != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMaximumResponseTime)) + } + if m.OneMinuteMessagesSent != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMessagesSent)) + } + if m.OneMinuteMessagesReceived != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMessagesReceived)) + } + if m.OneMinuteMessagesNoResponse != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMessagesNoResponse)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RoutingInstances != nil { + l = m.RoutingInstances.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.GlobalStatistics != nil { + l = m.GlobalStatistics.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DroppedTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedTotal)) + } + if m.DroppedBadRead != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedBadRead)) + } + if m.DroppedIpHeader != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedIpHeader)) + } + if m.DroppedShortPacket != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedShortPacket)) + } + if m.DroppedNoInterface != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoInterface)) + } + if m.DroppedNoRoutingInstance != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoRoutingInstance)) + } + if m.DroppedNoSafd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoSafd)) + } + if m.DroppedNoMemory != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedNoMemory)) + } + if m.DroppedRecoveryInProgress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedRecoveryInProgress)) + } + if m.EraInflightCount != nil { + n += 2 + sovJdhcpdOc(uint64(*m.EraInflightCount)) + } + if m.EraReportedFailures != nil { + n += 2 + sovJdhcpdOc(uint64(*m.EraReportedFailures)) + } + if m.EraReportedSuccesses != nil { + n += 2 + sovJdhcpdOc(uint64(*m.EraReportedSuccesses)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RoutingInstance) > 0 { + for _, e := range m.RoutingInstance { + l = e.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RiName != nil { + l = len(*m.RiName) + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Server != nil { + l = m.Server.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Relay != nil { + l = m.Relay.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Bindings != nil { + l = m.Bindings.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DroppedV6ServerTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerTotal)) + } + if m.DroppedV6ServerNoSafd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerNoSafd)) + } + if m.DroppedV6ServerNoRoutingInstance != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerNoRoutingInstance)) + } + if m.DroppedV6ServerBadSend != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerBadSend)) + } + if m.DroppedV6ServerShortPacket != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerShortPacket)) + } + if m.DroppedV6ServerBadMsgtype != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerBadMsgtype)) + } + if m.DroppedV6ServerBadOptions != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerBadOptions)) + } + if m.DroppedV6ServerBadSrcaddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerBadSrcaddress)) + } + if m.DroppedV6ServerRelayHopCount != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerRelayHopCount)) + } + if m.DroppedV6ServerBadUdpChecksum != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerBadUdpChecksum)) + } + if m.DroppedV6ServerNoClientId != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerNoClientId)) + } + if m.DroppedV6ServerStrictReconfigure != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerStrictReconfigure)) + } + if m.DroppedV6ServerOption_18 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerOption_18)) + } + if m.DroppedV6ServerAuthentication != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerAuthentication)) + } + if m.DroppedV6ServerDynamicProfile != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerDynamicProfile)) + } + if m.DroppedV6ServerLicense != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerLicense)) + } + if m.DroppedV6ServerInactiveVlan != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerInactiveVlan)) + } + if m.DroppedV6ServerEraStartFailed != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerEraStartFailed)) + } + if m.DroppedV6ServerClientLookup != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerClientLookup)) + } + if m.DroppedV6ServerLeaseTimeViolation != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6ServerLeaseTimeViolation)) + } + if m.AdvertiseDelayed != nil { + n += 2 + sovJdhcpdOc(uint64(*m.AdvertiseDelayed)) + } + if m.AdvertiseQueued != nil { + n += 2 + sovJdhcpdOc(uint64(*m.AdvertiseQueued)) + } + if m.AdvertiseTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.AdvertiseTotal)) + } + if m.MsgRecvV6ServerDhcpv6Decline != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Decline)) + } + if m.MsgRecvV6ServerDhcpv6Solicit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Solicit)) + } + if m.MsgRecvV6ServerDhcpv6InformationRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6InformationRequest)) + } + if m.MsgRecvV6ServerDhcpv6Release != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Release)) + } + if m.MsgRecvV6ServerDhcpv6Request != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Request)) + } + if m.MsgRecvV6ServerDhcpv6Confirm != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Confirm)) + } + if m.MsgRecvV6ServerDhcpv6Renew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Renew)) + } + if m.MsgRecvV6ServerDhcpv6Rebind != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Rebind)) + } + if m.MsgRecvV6ServerDhcpv6RelayForw != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6RelayForw)) + } + if m.MsgRecvV6ServerDhcpv6Leasequery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6ServerDhcpv6Leasequery)) + } + if m.MsgSentV6ServerAdvertise != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerAdvertise)) + } + if m.MsgSentV6ServerReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerReply)) + } + if m.MsgSentV6ServerLogicalNak != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerLogicalNak)) + } + if m.MsgSentV6ServerReconfigure != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerReconfigure)) + } + if m.MsgSentV6ServerRelayRepl != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerRelayRepl)) + } + if m.MsgSentV6ServerLeasequeryRepl != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerLeasequeryRepl)) + } + if m.MsgSentV6ServerLeasequeryData != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerLeasequeryData)) + } + if m.MsgSentV6ServerLeasequeryDone != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6ServerLeasequeryDone)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BindingStateV6ServerBinding != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerBinding)) + } + if m.BindingStateV6ServerInit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerInit)) + } + if m.BindingStateV6ServerBound != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerBound)) + } + if m.BindingStateV6ServerSelecting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerSelecting)) + } + if m.BindingStateV6ServerRequesting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerRequesting)) + } + if m.BindingStateV6ServerRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerRenew)) + } + if m.BindingStateV6ServerRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6ServerRelease)) + } + if m.BindingStateServerRestoring != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateServerRestoring)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Bindings != nil { + l = m.Bindings.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.Servers != nil { + l = m.Servers.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DroppedV6RelayTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayTotal)) + } + if m.DroppedV6RelayNoSafd != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayNoSafd)) + } + if m.DroppedV6RelayNoRoutingInstance != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayNoRoutingInstance)) + } + if m.DroppedV6RelayBadSend != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayBadSend)) + } + if m.DroppedV6RelayShortPacket != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayShortPacket)) + } + if m.DroppedV6RelayBadMsgtype != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayBadMsgtype)) + } + if m.DroppedV6RelayBadOptions != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayBadOptions)) + } + if m.DroppedV6RelayBadSrcaddress != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayBadSrcaddress)) + } + if m.DroppedV6RelayRelayHopCount != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayRelayHopCount)) + } + if m.DroppedV6RelayBadUdpChecksum != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayBadUdpChecksum)) + } + if m.DroppedV6RelayNoClientId != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayNoClientId)) + } + if m.DroppedV6RelayStrictReconfigure != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayStrictReconfigure)) + } + if m.DroppedV6RelayRelayOption != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayRelayOption)) + } + if m.DroppedV6RelayOption_18 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayOption_18)) + } + if m.DroppedV6RelayOption_37 != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayOption_37)) + } + if m.DroppedV6RelayAuthentication != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayAuthentication)) + } + if m.DroppedV6RelayDynamicProfile != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayDynamicProfile)) + } + if m.DroppedV6RelayLicense != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLicense)) + } + if m.DroppedV6RelayInactiveVlan != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayInactiveVlan)) + } + if m.DroppedV6RelayEraStartFailed != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayEraStartFailed)) + } + if m.DroppedV6RelayClientLookup != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayClientLookup)) + } + if m.DroppedV6RelayLeaseTimeViolation != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeaseTimeViolation)) + } + if m.DroppedV6RelayLeasequeryReplNoClientData != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplNoClientData)) + } + if m.DroppedV6RelayLeasequeryReplNoInterfaceid != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplNoInterfaceid)) + } + if m.DroppedV6RelayLeasequeryReplWithClientLink != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplWithClientLink)) + } + if m.DroppedV6RelayLeasequeryReplNoRelayData != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplNoRelayData)) + } + if m.DroppedV6RelayLeasequeryReplWithHopCnt != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplWithHopCnt)) + } + if m.DroppedV6RelayLeasequeryReplWithErrorCode != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplWithErrorCode)) + } + if m.DroppedV6RelayLeasequeryReplWithQueryTerm != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayLeasequeryReplWithQueryTerm)) + } + if m.DroppedV6RelayOlderLeasequeryReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayOlderLeasequeryReply)) + } + if m.DroppedV6RelayAbortLeasequeryReplyProc != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayAbortLeasequeryReplyProc)) + } + if m.DroppedV6RelayDuringLeasequeryReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayDuringLeasequeryReply)) + } + if m.DroppedV6RelayRelaySourceNoLpbkInterface != nil { + n += 2 + sovJdhcpdOc(uint64(*m.DroppedV6RelayRelaySourceNoLpbkInterface)) + } + if m.MsgRecvV6RelayDecline != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayDecline)) + } + if m.MsgRecvV6RelaySolicit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelaySolicit)) + } + if m.MsgRecvV6RelayInformationRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayInformationRequest)) + } + if m.MsgRecvV6RelayRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayRelease)) + } + if m.MsgRecvV6RelayRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayRequest)) + } + if m.MsgRecvV6RelayConfirm != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayConfirm)) + } + if m.MsgRecvV6RelayRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayRenew)) + } + if m.MsgRecvV6RelayRebind != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayRebind)) + } + if m.MsgRecvV6RelayRelayForw != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayRelayForw)) + } + if m.MsgRecvV6RelayLeasequeryRepl != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayLeasequeryRepl)) + } + if m.MsgRecvV6RelayLeasequeryData != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayLeasequeryData)) + } + if m.MsgRecvV6RelayLeasequeryDone != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayLeasequeryDone)) + } + if m.MsgRecvV6RelayAdvertise != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayAdvertise)) + } + if m.MsgRecvV6RelayReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayReply)) + } + if m.MsgRecvV6RelayReconfigure != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayReconfigure)) + } + if m.MsgRecvV6RelayRelayRepl != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayRelayRepl)) + } + if m.MsgRecvV6RelayLeasequery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgRecvV6RelayLeasequery)) + } + if m.MsgSentV6RelayReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayReply)) + } + if m.MsgSentV6RelayReconfigure != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayReconfigure)) + } + if m.MsgSentV6RelayRelayRepl != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayRelayRepl)) + } + if m.MsgSentV6RelayLeasequery != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayLeasequery)) + } + if m.MsgSentV6RelayDecline != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayDecline)) + } + if m.MsgSentV6RelaySolicit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelaySolicit)) + } + if m.MsgSentV6RelayInformationRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayInformationRequest)) + } + if m.MsgSentV6RelayRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayRelease)) + } + if m.MsgSentV6RelayRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayRequest)) + } + if m.MsgSentV6RelayConfirm != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayConfirm)) + } + if m.MsgSentV6RelayRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayRenew)) + } + if m.MsgSentV6RelayRebind != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayRebind)) + } + if m.MsgSentV6RelayRelayForw != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayRelayForw)) + } + if m.MsgSentV6RelayLeasequeryRepl != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayLeasequeryRepl)) + } + if m.MsgSentV6RelayLeasequeryData != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayLeasequeryData)) + } + if m.MsgSentV6RelayLeasequeryDone != nil { + n += 2 + sovJdhcpdOc(uint64(*m.MsgSentV6RelayLeasequeryDone)) + } + if m.V6RelayFwdTotal != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V6RelayFwdTotal)) + } + if m.V6RelayFwdRequest != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V6RelayFwdRequest)) + } + if m.V6RelayFwdReply != nil { + n += 2 + sovJdhcpdOc(uint64(*m.V6RelayFwdReply)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BindingStateV6RelayBinding != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayBinding)) + } + if m.BindingStateV6RelayInit != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayInit)) + } + if m.BindingStateV6RelayBound != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayBound)) + } + if m.BindingStateV6RelaySelecting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelaySelecting)) + } + if m.BindingStateV6RelayRequesting != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayRequesting)) + } + if m.BindingStateV6RelayRenew != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayRenew)) + } + if m.BindingStateV6RelayRelease != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayRelease)) + } + if m.BindingStateRelayRestoring != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateRelayRestoring)) + } + if m.BindingStateV6RelayRebind != nil { + n += 2 + sovJdhcpdOc(uint64(*m.BindingStateV6RelayRebind)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Server) > 0 { + for _, e := range m.Server { + l = e.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ServerIpv6 != nil { + l = len(*m.ServerIpv6) + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.ResponseTime != nil { + l = m.ResponseTime.Size() + n += 2 + l + sovJdhcpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OneMinuteMinimumResponseTime != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMinimumResponseTime)) + } + if m.OneMinuteAverageResponseTime != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteAverageResponseTime)) + } + if m.OneMinuteMaximumResponseTime != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMaximumResponseTime)) + } + if m.OneMinuteMessagesSent != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMessagesSent)) + } + if m.OneMinuteMessagesReceived != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMessagesReceived)) + } + if m.OneMinuteMessagesNoResponse != nil { + n += 2 + sovJdhcpdOc(uint64(*m.OneMinuteMessagesNoResponse)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJdhcpdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJdhcpdOc(x uint64) (n int) { + return sovJdhcpdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosDhcp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_dhcp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_dhcp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosDhcpSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosDhcpSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClientProtocols == nil { + m.ClientProtocols = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType{} + } + if err := m.ClientProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: client_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: client_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dhcp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Dhcp == nil { + m.Dhcp = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType{} + } + if err := m.Dhcp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dhcp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dhcp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field V4", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.V4 == nil { + m.V4 = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type{} + } + if err := m.V4.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field V6", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.V6 == nil { + m.V6 = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type{} + } + if err := m.V6.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: v4_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: v4_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RoutingInstances == nil { + m.RoutingInstances = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType{} + } + if err := m.RoutingInstances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GlobalStatistics == nil { + m.GlobalStatistics = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType{} + } + if err := m.GlobalStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeGlobalStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: global_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: global_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedTotal = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedBadRead", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedBadRead = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedIpHeader", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedIpHeader = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedShortPacket", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedShortPacket = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoInterface", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoInterface = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoRoutingInstance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoRoutingInstance = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoMemory", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoMemory = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedRecoveryInProgress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedRecoveryInProgress = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraInflightCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraInflightCount = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraReportedFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraReportedFailures = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraReportedSuccesses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraReportedSuccesses = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_instances_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_instances_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoutingInstance = append(m.RoutingInstance, &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList{}) + if err := m.RoutingInstance[len(m.RoutingInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Server == nil { + m.Server = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType{} + } + if err := m.Server.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relay", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Relay == nil { + m.Relay = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType{} + } + if err := m.Relay.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bindings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Bindings == nil { + m.Bindings = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType{} + } + if err := m.Bindings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerTotal = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerBadHware", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerBadHware = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerBootpPkt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerBootpPkt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerBadBootpOpcode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerBadBootpOpcode = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerBadOptions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerBadOptions = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerBadAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerBadAddress = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoAddress = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoInterfaceCfg", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoInterfaceCfg = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoLocalAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoLocalAddress = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerShortPkt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerShortPkt = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoBadSend", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoBadSend = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoOption60", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoOption60 = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoOption82", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoOption82 = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerAuthentication", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerAuthentication = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerDynamicProfile", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerDynamicProfile = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoLicense", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoLicense = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoBadDhcpOpcode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoBadDhcpOpcode = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerNoOptions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerNoOptions = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerHopLimit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerHopLimit = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerTtlExpired", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerTtlExpired = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerBadUdpChecksum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerBadUdpChecksum = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerInactiveVlan", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerInactiveVlan = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerEraStartFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerEraStartFailed = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerClientLookup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerClientLookup = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4ServerLeaseTimeViolation", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4ServerLeaseTimeViolation = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferDelayed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OfferDelayed = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferDelayInProgress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OfferDelayInProgress = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OfferDelayTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OfferDelayTotal = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerBootRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerBootRequest = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerDecline", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerDecline = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerDiscover", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerDiscover = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerInform", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerInform = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerRelease = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerRequest = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerRenew = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerRebind", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerRebind = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerLeaseQuery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerLeaseQuery = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4ServerBulkleaseQuery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4ServerBulkleaseQuery = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerBootReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerBootReply = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerOffer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerOffer = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerBootAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerBootAck = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerNak = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerForceRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerForceRenew = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerUnassigned", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerUnassigned = &v + case 95: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerUnknown", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerUnknown = &v + case 96: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerActive", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerActive = &v + case 97: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4ServerQueryDone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4ServerQueryDone = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bindings_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bindings_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerBinding", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerBinding = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerInit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerInit = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerBound", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerBound = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerSelecting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerSelecting = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerRequesting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerRequesting = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerRenew = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4ServerRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4ServerRelease = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateServerRestoring", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateServerRestoring = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: relay_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: relay_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bindings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Bindings == nil { + m.Bindings = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType{} + } + if err := m.Bindings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Servers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Servers == nil { + m.Servers = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType{} + } + if err := m.Servers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayTotal = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadHardware", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadHardware = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBootpPacket", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBootpPacket = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadBootpOpcode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadBootpOpcode = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadOptions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadOptions = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadAddress = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayNoAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayNoAddress = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayNoInterfaceCfg", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayNoInterfaceCfg = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayNoLocalAddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayNoLocalAddress = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayShortPacket", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayShortPacket = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadSend", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadSend = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayOption_60", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayOption_60 = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayRelayOption", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayRelayOption = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayOption_82", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayOption_82 = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayAuthentication", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayAuthentication = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayDynamicProfile", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayDynamicProfile = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayLicense", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayLicense = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadDhcpOpcode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadDhcpOpcode = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayNoOptions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayNoOptions = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayHopLimit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayHopLimit = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayTtlExpired", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayTtlExpired = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayBadUdpChecksum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayBadUdpChecksum = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayInactiveVlan", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayInactiveVlan = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayEraStartFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayEraStartFailed = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayClientLookup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayClientLookup = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayProxyNoServerAddr", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayProxyNoServerAddr = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayLeaseTimeViolation", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayLeaseTimeViolation = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayLeasequeryReplNoCircuitid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayLeasequeryReplNoCircuitid = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayLeasequeryReplWithErrorCode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayLeasequeryReplWithErrorCode = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayLeasequeryReplWithQueryTerm", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayLeasequeryReplWithQueryTerm = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayOlderLeasequeryReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayOlderLeasequeryReply = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayAbortLeasequeryReplyProc", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayAbortLeasequeryReplyProc = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayDuringLeasequeryReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayDuringLeasequeryReply = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV4RelayRelaySourceNoLpbkInterface", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV4RelayRelaySourceNoLpbkInterface = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpRequestRcvd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpRequestRcvd = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayDecline", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayDecline = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayDiscover", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayDiscover = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayInform", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayInform = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayRelease = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayRequest = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayLeaseactive", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayLeaseactive = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayLeaseunassigned", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayLeaseunassigned = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayLeaseunknown", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayLeaseunknown = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayLeasequerydone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayLeasequerydone = &v + case 95: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpReplyRcvd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpReplyRcvd = &v + case 96: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayOffer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayOffer = &v + case 97: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayAck = &v + case 98: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayNak = &v + case 99: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV4RelayForcerenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV4RelayForcerenew = &v + case 100: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpReplySent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpReplySent = &v + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayOffer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayOffer = &v + case 102: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayAck = &v + case 103: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayNak = &v + case 104: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayForcerenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayForcerenew = &v + case 105: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayLeasequery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayLeasequery = &v + case 106: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayBulkleasequery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayBulkleasequery = &v + case 107: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpRequestSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpRequestSent = &v + case 108: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayDecline", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayDecline = &v + case 109: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayDiscover", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayDiscover = &v + case 110: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayInform", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayInform = &v + case 111: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayRelease = &v + case 112: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV4RelayRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV4RelayRequest = &v + case 113: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpForwardedTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpForwardedTotal = &v + case 114: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpRequestFwd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpRequestFwd = &v + case 115: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V4RelayBootpReplyFwd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V4RelayBootpReplyFwd = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bindings_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bindings_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayBinding", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayBinding = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayInit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayInit = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayBound", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayBound = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelaySelecting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelaySelecting = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayRequesting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayRequesting = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayRenew = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayRelease = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayRestoring", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayRestoring = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV4RelayRebind", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV4RelayRebind = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: servers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: servers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Server = append(m.Server, &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList{}) + if err := m.Server[len(m.Server)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerIp = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResponseTime == nil { + m.ResponseTime = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType{} + } + if err := m.ResponseTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV4TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: response_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: response_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMinimumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMinimumResponseTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteAverageResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteAverageResponseTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMaximumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMaximumResponseTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesSent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesNoResponse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesNoResponse = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: v6_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: v6_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RoutingInstances == nil { + m.RoutingInstances = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType{} + } + if err := m.RoutingInstances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GlobalStatistics == nil { + m.GlobalStatistics = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType{} + } + if err := m.GlobalStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeGlobalStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: global_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: global_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedTotal = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedBadRead", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedBadRead = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedIpHeader", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedIpHeader = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedShortPacket", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedShortPacket = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoInterface", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoInterface = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoRoutingInstance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoRoutingInstance = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoSafd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoSafd = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedNoMemory", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedNoMemory = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedRecoveryInProgress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedRecoveryInProgress = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraInflightCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraInflightCount = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraReportedFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraReportedFailures = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EraReportedSuccesses", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EraReportedSuccesses = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_instances_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_instances_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoutingInstance = append(m.RoutingInstance, &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList{}) + if err := m.RoutingInstance[len(m.RoutingInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Server == nil { + m.Server = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType{} + } + if err := m.Server.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relay", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Relay == nil { + m.Relay = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType{} + } + if err := m.Relay.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bindings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Bindings == nil { + m.Bindings = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType{} + } + if err := m.Bindings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerTotal = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerNoSafd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerNoSafd = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerNoRoutingInstance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerNoRoutingInstance = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerBadSend", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerBadSend = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerShortPacket", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerShortPacket = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerBadMsgtype", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerBadMsgtype = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerBadOptions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerBadOptions = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerBadSrcaddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerBadSrcaddress = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerRelayHopCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerRelayHopCount = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerBadUdpChecksum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerBadUdpChecksum = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerNoClientId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerNoClientId = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerStrictReconfigure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerStrictReconfigure = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerOption_18", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerOption_18 = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerAuthentication", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerAuthentication = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerDynamicProfile", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerDynamicProfile = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerLicense", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerLicense = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerInactiveVlan", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerInactiveVlan = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerEraStartFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerEraStartFailed = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerClientLookup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerClientLookup = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6ServerLeaseTimeViolation", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6ServerLeaseTimeViolation = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertiseDelayed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertiseDelayed = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertiseQueued", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertiseQueued = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertiseTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertiseTotal = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Decline", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Decline = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Solicit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Solicit = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6InformationRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6InformationRequest = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Release", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Release = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Request", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Request = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Confirm", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Confirm = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Renew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Renew = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Rebind", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Rebind = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6RelayForw", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6RelayForw = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6ServerDhcpv6Leasequery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6ServerDhcpv6Leasequery = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerAdvertise", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerAdvertise = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerReply = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerLogicalNak", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerLogicalNak = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerReconfigure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerReconfigure = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerRelayRepl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerRelayRepl = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerLeasequeryRepl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerLeasequeryRepl = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerLeasequeryData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerLeasequeryData = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6ServerLeasequeryDone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6ServerLeasequeryDone = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListServerTypeBindingsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bindings_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bindings_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerBinding", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerBinding = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerInit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerInit = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerBound", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerBound = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerSelecting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerSelecting = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerRequesting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerRequesting = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerRenew = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6ServerRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6ServerRelease = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateServerRestoring", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateServerRestoring = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: relay_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: relay_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bindings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Bindings == nil { + m.Bindings = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType{} + } + if err := m.Bindings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Servers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Servers == nil { + m.Servers = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType{} + } + if err := m.Servers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayTotal = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayNoSafd", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayNoSafd = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayNoRoutingInstance", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayNoRoutingInstance = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayBadSend", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayBadSend = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayShortPacket", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayShortPacket = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayBadMsgtype", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayBadMsgtype = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayBadOptions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayBadOptions = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayBadSrcaddress", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayBadSrcaddress = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayRelayHopCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayRelayHopCount = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayBadUdpChecksum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayBadUdpChecksum = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayNoClientId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayNoClientId = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayStrictReconfigure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayStrictReconfigure = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayRelayOption", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayRelayOption = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayOption_18", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayOption_18 = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayOption_37", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayOption_37 = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayAuthentication", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayAuthentication = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayDynamicProfile", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayDynamicProfile = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLicense", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLicense = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayInactiveVlan", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayInactiveVlan = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayEraStartFailed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayEraStartFailed = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayClientLookup", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayClientLookup = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeaseTimeViolation", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeaseTimeViolation = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplNoClientData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplNoClientData = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplNoInterfaceid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplNoInterfaceid = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplWithClientLink", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplWithClientLink = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplNoRelayData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplNoRelayData = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplWithHopCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplWithHopCnt = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplWithErrorCode", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplWithErrorCode = &v + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayLeasequeryReplWithQueryTerm", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayLeasequeryReplWithQueryTerm = &v + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayOlderLeasequeryReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayOlderLeasequeryReply = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayAbortLeasequeryReplyProc", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayAbortLeasequeryReplyProc = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayDuringLeasequeryReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayDuringLeasequeryReply = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedV6RelayRelaySourceNoLpbkInterface", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedV6RelayRelaySourceNoLpbkInterface = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayDecline", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayDecline = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelaySolicit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelaySolicit = &v + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayInformationRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayInformationRequest = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayRelease = &v + case 88: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayRequest = &v + case 89: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayConfirm", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayConfirm = &v + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayRenew = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayRebind", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayRebind = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayRelayForw", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayRelayForw = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayLeasequeryRepl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayLeasequeryRepl = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayLeasequeryData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayLeasequeryData = &v + case 95: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayLeasequeryDone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayLeasequeryDone = &v + case 96: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayAdvertise", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayAdvertise = &v + case 97: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayReply = &v + case 98: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayReconfigure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayReconfigure = &v + case 99: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayRelayRepl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayRelayRepl = &v + case 100: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgRecvV6RelayLeasequery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgRecvV6RelayLeasequery = &v + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayReply = &v + case 102: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayReconfigure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayReconfigure = &v + case 103: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayRelayRepl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayRelayRepl = &v + case 104: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayLeasequery", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayLeasequery = &v + case 105: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayDecline", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayDecline = &v + case 106: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelaySolicit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelaySolicit = &v + case 107: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayInformationRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayInformationRequest = &v + case 108: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayRelease = &v + case 109: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayRequest = &v + case 110: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayConfirm", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayConfirm = &v + case 111: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayRenew = &v + case 112: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayRebind", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayRebind = &v + case 113: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayRelayForw", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayRelayForw = &v + case 114: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayLeasequeryRepl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayLeasequeryRepl = &v + case 115: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayLeasequeryData", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayLeasequeryData = &v + case 116: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MsgSentV6RelayLeasequeryDone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MsgSentV6RelayLeasequeryDone = &v + case 117: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V6RelayFwdTotal", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V6RelayFwdTotal = &v + case 118: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V6RelayFwdRequest", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V6RelayFwdRequest = &v + case 119: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field V6RelayFwdReply", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.V6RelayFwdReply = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeBindingsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bindings_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bindings_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayBinding", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayBinding = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayInit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayInit = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayBound", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayBound = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelaySelecting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelaySelecting = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayRequesting", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayRequesting = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayRenew", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayRenew = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayRelease", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayRelease = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateRelayRestoring", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateRelayRestoring = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BindingStateV6RelayRebind", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BindingStateV6RelayRebind = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: servers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: servers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Server = append(m.Server, &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList{}) + if err := m.Server[len(m.Server)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerIpv6", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerIpv6 = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdhcpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdhcpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResponseTime == nil { + m.ResponseTime = &JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType{} + } + if err := m.ResponseTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDhcpSystemTypeSubscriberManagementTypeClientProtocolsTypeDhcpTypeV6TypeRoutingInstancesTypeRoutingInstanceListRelayTypeServersTypeServerListResponseTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: response_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: response_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMinimumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMinimumResponseTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteAverageResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteAverageResponseTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMaximumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMaximumResponseTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesSent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesNoResponse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesNoResponse = &v + default: + iNdEx = preIndex + skippy, err := skipJdhcpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdhcpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJdhcpdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJdhcpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJdhcpdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJdhcpdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJdhcpdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJdhcpdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJdhcpdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJdhcpdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jdhcpd_oc.proto b/schema/jdhcpd_oc.proto new file mode 100755 index 0000000..5c320a6 --- /dev/null +++ b/schema/jdhcpd_oc.proto @@ -0,0 +1,395 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_dhcp jnpr_junos_dhcp_ext = 43; +} + +message junos_dhcp { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional client_protocols_type client_protocols = 151; + message client_protocols_type { + optional dhcp_type dhcp = 151; + message dhcp_type { + optional v4_type v4 = 151; + message v4_type { + optional global_statistics_type global_statistics = 152; + message global_statistics_type { + optional uint64 dropped_total = 51; + optional uint64 dropped_bad_read = 52; + optional uint64 dropped_ip_header = 53; + optional uint64 dropped_short_packet = 54; + optional uint64 dropped_no_interface = 55; + optional uint64 dropped_no_routing_instance = 56; + optional uint64 dropped_no_memory = 57; + optional uint64 dropped_recovery_in_progress = 58; + optional uint64 era_inflight_count = 61; + optional uint64 era_reported_failures = 62; + optional uint64 era_reported_successes = 63; + } + optional routing_instances_type routing_instances = 151; + message routing_instances_type { + message routing_instance_list { + optional string ri_name = 51 [(telemetry_options).is_key = true]; + optional server_type server = 151; + message server_type { + optional statistics_type statistics = 151; + message statistics_type { + optional uint64 dropped_v4server_total = 51; + optional uint64 dropped_v4server_bad_hware = 52; + optional uint64 dropped_v4server_bootp_pkt = 53; + optional uint64 dropped_v4server_bad_bootp_opcode = 54; + optional uint64 dropped_v4server_bad_options = 55; + optional uint64 dropped_v4server_bad_address = 56; + optional uint64 dropped_v4server_no_address = 57; + optional uint64 dropped_v4server_no_interface_cfg = 58; + optional uint64 dropped_v4server_no_local_address = 59; + optional uint64 dropped_v4server_short_pkt = 60; + optional uint64 dropped_v4server_no_bad_send = 61; + optional uint64 dropped_v4server_no_option60 = 62; + optional uint64 dropped_v4server_no_option82 = 63; + optional uint64 dropped_v4server_authentication = 64; + optional uint64 dropped_v4server_dynamic_profile = 65; + optional uint64 dropped_v4server_no_license = 66; + optional uint64 dropped_v4server_no_bad_dhcp_opcode = 67; + optional uint64 dropped_v4server_no_options = 68; + optional uint64 dropped_v4server_hop_limit = 69; + optional uint64 dropped_v4server_ttl_expired = 70; + optional uint64 dropped_v4server_bad_udp_checksum = 71; + optional uint64 dropped_v4server_inactive_vlan = 72; + optional uint64 dropped_v4server_era_start_failed = 73; + optional uint64 dropped_v4server_client_lookup = 74; + optional uint64 dropped_v4server_lease_time_violation = 75; + optional uint64 offer_delayed = 76; + optional uint64 offer_delay_in_progress = 77; + optional uint64 offer_delay_total = 78; + optional uint64 msg_recv_v4server_boot_request = 79; + optional uint64 msg_recv_v4server_decline = 80; + optional uint64 msg_recv_v4server_discover = 81; + optional uint64 msg_recv_v4server_inform = 82; + optional uint64 msg_recv_v4server_release = 83; + optional uint64 msg_recv_v4server_request = 84; + optional uint64 msg_recv_v4server_renew = 85; + optional uint64 msg_recv_v4server_rebind = 86; + optional uint64 msg_recv_v4server_lease_query = 87; + optional uint64 msg_recv_v4server_bulklease_query = 88; + optional uint64 msg_sent_v4server_boot_reply = 89; + optional uint64 msg_sent_v4server_offer = 90; + optional uint64 msg_sent_v4server_boot_ack = 91; + optional uint64 msg_sent_v4server_nak = 92; + optional uint64 msg_sent_v4server_force_renew = 93; + optional uint64 msg_sent_v4server_unassigned = 94; + optional uint64 msg_sent_v4server_unknown = 95; + optional uint64 msg_sent_v4server_active = 96; + optional uint64 msg_sent_v4server_query_done = 97; + } + optional bindings_type bindings = 152; + message bindings_type { + optional uint64 binding_state_v4server_binding = 51; + optional uint64 binding_state_v4server_init = 52; + optional uint64 binding_state_v4server_bound = 53; + optional uint64 binding_state_v4server_selecting = 54; + optional uint64 binding_state_v4server_requesting = 55; + optional uint64 binding_state_v4server_renew = 56; + optional uint64 binding_state_v4server_release = 57; + optional uint64 binding_state_server_restoring = 58; + } + } + optional relay_type relay = 152; + message relay_type { + optional statistics_type statistics = 151; + message statistics_type { + optional uint64 dropped_v4relay_total = 51; + optional uint64 dropped_v4relay_bad_hardware = 52; + optional uint64 dropped_v4relay_bootp_packet = 53; + optional uint64 dropped_v4relay_bad_bootp_opcode = 54; + optional uint64 dropped_v4relay_bad_options = 55; + optional uint64 dropped_v4relay_bad_address = 56; + optional uint64 dropped_v4relay_no_address = 57; + optional uint64 dropped_v4relay_no_interface_cfg = 58; + optional uint64 dropped_v4relay_no_local_address = 59; + optional uint64 dropped_v4relay_short_packet = 60; + optional uint64 dropped_v4relay_bad_send = 61; + optional uint64 dropped_v4relay_option_60 = 62; + optional uint64 dropped_v4relay_relay_option = 63; + optional uint64 dropped_v4relay_option_82 = 64; + optional uint64 dropped_v4relay_authentication = 65; + optional uint64 dropped_v4relay_dynamic_profile = 66; + optional uint64 dropped_v4relay_license = 67; + optional uint64 dropped_v4relay_bad_dhcp_opcode = 68; + optional uint64 dropped_v4relay_no_options = 69; + optional uint64 dropped_v4relay_hop_limit = 70; + optional uint64 dropped_v4relay_ttl_expired = 71; + optional uint64 dropped_v4relay_bad_udp_checksum = 72; + optional uint64 dropped_v4relay_inactive_vlan = 73; + optional uint64 dropped_v4relay_era_start_failed = 74; + optional uint64 dropped_v4relay_client_lookup = 75; + optional uint64 dropped_v4relay_proxy_no_server_addr = 76; + optional uint64 dropped_v4relay_lease_time_violation = 77; + optional uint64 dropped_v4relay_leasequery_repl_no_circuitid = 78; + optional uint64 dropped_v4relay_leasequery_repl_with_error_code = 79; + optional uint64 dropped_v4relay_leasequery_repl_with_query_term = 80; + optional uint64 dropped_v4relay_older_leasequery_reply = 81; + optional uint64 dropped_v4relay_abort_leasequery_reply_proc = 82; + optional uint64 dropped_v4relay_during_leasequery_reply = 83; + optional uint64 dropped_v4relay_relay_source_no_lpbk_interface = 84; + optional uint64 v4relay_bootp_request_rcvd = 85; + optional uint64 msg_recv_v4relay_decline = 86; + optional uint64 msg_recv_v4relay_discover = 87; + optional uint64 msg_recv_v4relay_inform = 88; + optional uint64 msg_recv_v4relay_release = 89; + optional uint64 msg_recv_v4relay_request = 90; + optional uint64 msg_recv_v4relay_leaseactive = 91; + optional uint64 msg_recv_v4relay_leaseunassigned = 92; + optional uint64 msg_recv_v4relay_leaseunknown = 93; + optional uint64 msg_recv_v4relay_leasequerydone = 94; + optional uint64 v4relay_bootp_reply_rcvd = 95; + optional uint64 msg_recv_v4relay_offer = 96; + optional uint64 msg_recv_v4relay_ack = 97; + optional uint64 msg_recv_v4relay_nak = 98; + optional uint64 msg_recv_v4relay_forcerenew = 99; + optional uint64 v4relay_bootp_reply_sent = 100; + optional uint64 msg_sent_v4relay_offer = 101; + optional uint64 msg_sent_v4relay_ack = 102; + optional uint64 msg_sent_v4relay_nak = 103; + optional uint64 msg_sent_v4relay_forcerenew = 104; + optional uint64 msg_sent_v4relay_leasequery = 105; + optional uint64 msg_sent_v4relay_bulkleasequery = 106; + optional uint64 v4relay_bootp_request_sent = 107; + optional uint64 msg_sent_v4relay_decline = 108; + optional uint64 msg_sent_v4relay_discover = 109; + optional uint64 msg_sent_v4relay_inform = 110; + optional uint64 msg_sent_v4relay_release = 111; + optional uint64 msg_sent_v4relay_request = 112; + optional uint64 v4relay_bootp_forwarded_total = 113; + optional uint64 v4relay_bootp_request_fwd = 114; + optional uint64 v4relay_bootp_reply_fwd = 115; + } + optional bindings_type bindings = 152; + message bindings_type { + optional uint64 binding_state_v4relay_binding = 51; + optional uint64 binding_state_v4relay_init = 52; + optional uint64 binding_state_v4relay_bound = 53; + optional uint64 binding_state_v4relay_selecting = 54; + optional uint64 binding_state_v4relay_requesting = 55; + optional uint64 binding_state_v4relay_renew = 56; + optional uint64 binding_state_v4relay_release = 57; + optional uint64 binding_state_v4relay_restoring = 58; + optional uint64 binding_state_v4relay_rebind = 59; + } + optional servers_type servers = 153; + message servers_type { + message server_list { + optional string server_ip = 51 [(telemetry_options).is_key = true]; + optional response_time_type response_time = 151; + message response_time_type { + optional uint64 one_minute_minimum_response_time = 51; + optional uint64 one_minute_average_response_time = 52; + optional uint64 one_minute_maximum_response_time = 53; + optional uint64 one_minute_messages_sent = 54; + optional uint64 one_minute_messages_received = 55; + optional uint64 one_minute_messages_no_response = 56; + } + } + repeated server_list server = 151; + } + } + } + repeated routing_instance_list routing_instance = 151; + } + } + optional v6_type v6 = 152; + message v6_type { + optional global_statistics_type global_statistics = 152; + message global_statistics_type { + optional uint64 dropped_total = 51; + optional uint64 dropped_bad_read = 52; + optional uint64 dropped_ip_header = 53; + optional uint64 dropped_short_packet = 54; + optional uint64 dropped_no_interface = 55; + optional uint64 dropped_no_routing_instance = 56; + optional uint64 dropped_no_safd = 57; + optional uint64 dropped_no_memory = 58; + optional uint64 dropped_recovery_in_progress = 59; + optional uint64 era_inflight_count = 61; + optional uint64 era_reported_failures = 62; + optional uint64 era_reported_successes = 63; + } + optional routing_instances_type routing_instances = 151; + message routing_instances_type { + message routing_instance_list { + optional string ri_name = 51 [(telemetry_options).is_key = true]; + optional server_type server = 151; + message server_type { + optional statistics_type statistics = 151; + message statistics_type { + optional uint64 dropped_v6server_total = 51; + optional uint64 dropped_v6server_no_safd = 52; + optional uint64 dropped_v6server_no_routing_instance = 53; + optional uint64 dropped_v6server_bad_send = 54; + optional uint64 dropped_v6server_short_packet = 55; + optional uint64 dropped_v6server_bad_msgtype = 56; + optional uint64 dropped_v6server_bad_options = 57; + optional uint64 dropped_v6server_bad_srcaddress = 58; + optional uint64 dropped_v6server_relay_hop_count = 59; + optional uint64 dropped_v6server_bad_udp_checksum = 60; + optional uint64 dropped_v6server_no_client_id = 61; + optional uint64 dropped_v6server_strict_reconfigure = 62; + optional uint64 dropped_v6server_option_18 = 63; + optional uint64 dropped_v6server_authentication = 64; + optional uint64 dropped_v6server_dynamic_profile = 65; + optional uint64 dropped_v6server_license = 66; + optional uint64 dropped_v6server_inactive_vlan = 67; + optional uint64 dropped_v6server_era_start_failed = 68; + optional uint64 dropped_v6server_client_lookup = 69; + optional uint64 dropped_v6server_lease_time_violation = 70; + optional uint64 advertise_delayed = 71; + optional uint64 advertise_queued = 72; + optional uint64 advertise_total = 73; + optional uint64 msg_recv_v6server_dhcpv6_decline = 74; + optional uint64 msg_recv_v6server_dhcpv6_solicit = 75; + optional uint64 msg_recv_v6server_dhcpv6_information_request = 76; + optional uint64 msg_recv_v6server_dhcpv6_release = 77; + optional uint64 msg_recv_v6server_dhcpv6_request = 78; + optional uint64 msg_recv_v6server_dhcpv6_confirm = 79; + optional uint64 msg_recv_v6server_dhcpv6_renew = 80; + optional uint64 msg_recv_v6server_dhcpv6_rebind = 81; + optional uint64 msg_recv_v6server_dhcpv6_relay_forw = 82; + optional uint64 msg_recv_v6server_dhcpv6_leasequery = 83; + optional uint64 msg_sent_v6server_advertise = 84; + optional uint64 msg_sent_v6server_reply = 85; + optional uint64 msg_sent_v6server_logical_nak = 86; + optional uint64 msg_sent_v6server_reconfigure = 87; + optional uint64 msg_sent_v6server_relay_repl = 88; + optional uint64 msg_sent_v6server_leasequery_repl = 89; + optional uint64 msg_sent_v6server_leasequery_data = 90; + optional uint64 msg_sent_v6server_leasequery_done = 91; + } + optional bindings_type bindings = 152; + message bindings_type { + optional uint64 binding_state_v6server_binding = 51; + optional uint64 binding_state_v6server_init = 52; + optional uint64 binding_state_v6server_bound = 53; + optional uint64 binding_state_v6server_selecting = 54; + optional uint64 binding_state_v6server_requesting = 55; + optional uint64 binding_state_v6server_renew = 56; + optional uint64 binding_state_v6server_release = 57; + optional uint64 binding_state_server_restoring = 58; + } + } + optional relay_type relay = 152; + message relay_type { + optional statistics_type statistics = 151; + message statistics_type { + optional uint64 dropped_v6relay_total = 51; + optional uint64 dropped_v6relay_no_safd = 52; + optional uint64 dropped_v6relay_no_routing_instance = 53; + optional uint64 dropped_v6relay_bad_send = 54; + optional uint64 dropped_v6relay_short_packet = 55; + optional uint64 dropped_v6relay_bad_msgtype = 56; + optional uint64 dropped_v6relay_bad_options = 57; + optional uint64 dropped_v6relay_bad_srcaddress = 58; + optional uint64 dropped_v6relay_relay_hop_count = 59; + optional uint64 dropped_v6relay_bad_udp_checksum = 60; + optional uint64 dropped_v6relay_no_client_id = 61; + optional uint64 dropped_v6relay_strict_reconfigure = 62; + optional uint64 dropped_v6relay_relay_option = 63; + optional uint64 dropped_v6relay_option_18 = 64; + optional uint64 dropped_v6relay_option_37 = 65; + optional uint64 dropped_v6relay_authentication = 66; + optional uint64 dropped_v6relay_dynamic_profile = 67; + optional uint64 dropped_v6relay_license = 68; + optional uint64 dropped_v6relay_inactive_vlan = 69; + optional uint64 dropped_v6relay_era_start_failed = 70; + optional uint64 dropped_v6relay_client_lookup = 71; + optional uint64 dropped_v6relay_lease_time_violation = 72; + optional uint64 dropped_v6relay_leasequery_repl_no_client_data = 73; + optional uint64 dropped_v6relay_leasequery_repl_no_interfaceid = 74; + optional uint64 dropped_v6relay_leasequery_repl_with_client_link = 75; + optional uint64 dropped_v6relay_leasequery_repl_no_relay_data = 76; + optional uint64 dropped_v6relay_leasequery_repl_with_hop_cnt = 77; + optional uint64 dropped_v6relay_leasequery_repl_with_error_code = 78; + optional uint64 dropped_v6relay_leasequery_repl_with_query_term = 79; + optional uint64 dropped_v6relay_older_leasequery_reply = 80; + optional uint64 dropped_v6relay_abort_leasequery_reply_proc = 81; + optional uint64 dropped_v6relay_during_leasequery_reply = 82; + optional uint64 dropped_v6relay_relay_source_no_lpbk_interface = 83; + optional uint64 msg_recv_v6relay_decline = 84; + optional uint64 msg_recv_v6relay_solicit = 85; + optional uint64 msg_recv_v6relay_information_request = 86; + optional uint64 msg_recv_v6relay_release = 87; + optional uint64 msg_recv_v6relay_request = 88; + optional uint64 msg_recv_v6relay_confirm = 89; + optional uint64 msg_recv_v6relay_renew = 90; + optional uint64 msg_recv_v6relay_rebind = 91; + optional uint64 msg_recv_v6relay_relay_forw = 92; + optional uint64 msg_recv_v6relay_leasequery_repl = 93; + optional uint64 msg_recv_v6relay_leasequery_data = 94; + optional uint64 msg_recv_v6relay_leasequery_done = 95; + optional uint64 msg_recv_v6relay_advertise = 96; + optional uint64 msg_recv_v6relay_reply = 97; + optional uint64 msg_recv_v6relay_reconfigure = 98; + optional uint64 msg_recv_v6relay_relay_repl = 99; + optional uint64 msg_recv_v6relay_leasequery = 100; + optional uint64 msg_sent_v6relay_reply = 101; + optional uint64 msg_sent_v6relay_reconfigure = 102; + optional uint64 msg_sent_v6relay_relay_repl = 103; + optional uint64 msg_sent_v6relay_leasequery = 104; + optional uint64 msg_sent_v6relay_decline = 105; + optional uint64 msg_sent_v6relay_solicit = 106; + optional uint64 msg_sent_v6relay_information_request = 107; + optional uint64 msg_sent_v6relay_release = 108; + optional uint64 msg_sent_v6relay_request = 109; + optional uint64 msg_sent_v6relay_confirm = 110; + optional uint64 msg_sent_v6relay_renew = 111; + optional uint64 msg_sent_v6relay_rebind = 112; + optional uint64 msg_sent_v6relay_relay_forw = 113; + optional uint64 msg_sent_v6relay_leasequery_repl = 114; + optional uint64 msg_sent_v6relay_leasequery_data = 115; + optional uint64 msg_sent_v6relay_leasequery_done = 116; + optional uint64 v6relay_fwd_total = 117; + optional uint64 v6relay_fwd_request = 118; + optional uint64 v6relay_fwd_reply = 119; + } + optional bindings_type bindings = 152; + message bindings_type { + optional uint64 binding_state_v6relay_binding = 51; + optional uint64 binding_state_v6relay_init = 52; + optional uint64 binding_state_v6relay_bound = 53; + optional uint64 binding_state_v6relay_selecting = 54; + optional uint64 binding_state_v6relay_requesting = 55; + optional uint64 binding_state_v6relay_renew = 56; + optional uint64 binding_state_v6relay_release = 57; + optional uint64 binding_state_relay_restoring = 58; + optional uint64 binding_state_v6relay_rebind = 59; + } + optional servers_type servers = 153; + message servers_type { + message server_list { + optional string server_ipv6 = 51 [(telemetry_options).is_key = true]; + optional response_time_type response_time = 151; + message response_time_type { + optional uint64 one_minute_minimum_response_time = 51; + optional uint64 one_minute_average_response_time = 52; + optional uint64 one_minute_maximum_response_time = 53; + optional uint64 one_minute_messages_sent = 54; + optional uint64 one_minute_messages_received = 55; + optional uint64 one_minute_messages_no_response = 56; + } + } + repeated server_list server = 151; + } + } + } + repeated routing_instance_list routing_instance = 151; + } + } + } + } + } + } +} diff --git a/schema/jdiameterd_render.pb.go b/schema/jdiameterd_render.pb.go new file mode 100644 index 0000000..2450934 --- /dev/null +++ b/schema/jdiameterd_render.pb.go @@ -0,0 +1,3452 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jdiameterd_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosDiameter struct { + System *JunosDiameterSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameter) Reset() { *m = JunosDiameter{} } +func (m *JunosDiameter) String() string { return proto.CompactTextString(m) } +func (*JunosDiameter) ProtoMessage() {} +func (*JunosDiameter) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0} +} +func (m *JunosDiameter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameter) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameter.Merge(m, src) +} +func (m *JunosDiameter) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameter) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameter.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameter proto.InternalMessageInfo + +func (m *JunosDiameter) GetSystem() *JunosDiameterSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosDiameterSystemType struct { + SubscriberManagement *JunosDiameterSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemType) Reset() { *m = JunosDiameterSystemType{} } +func (m *JunosDiameterSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosDiameterSystemType) ProtoMessage() {} +func (*JunosDiameterSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0} +} +func (m *JunosDiameterSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemType.Merge(m, src) +} +func (m *JunosDiameterSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemType proto.InternalMessageInfo + +func (m *JunosDiameterSystemType) GetSubscriberManagement() *JunosDiameterSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementType struct { + Aaa *JunosDiameterSystemTypeSubscriberManagementTypeAaaType `protobuf:"bytes,151,opt,name=aaa" json:"aaa,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosDiameterSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementType) GetAaa() *JunosDiameterSystemTypeSubscriberManagementTypeAaaType { + if m != nil { + return m.Aaa + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaType struct { + Diameter *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType `protobuf:"bytes,151,opt,name=diameter" json:"diameter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaType) ProtoMessage() {} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) GetDiameter() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType { + if m != nil { + return m.Diameter + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType struct { + Peers *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType `protobuf:"bytes,151,opt,name=peers" json:"peers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) ProtoMessage() {} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) GetPeers() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType { + if m != nil { + return m.Peers + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType struct { + Peer []*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList `protobuf:"bytes,151,rep,name=peer" json:"peer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) ProtoMessage() {} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) GetPeer() []*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList { + if m != nil { + return m.Peer + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList struct { + PeerName *string `protobuf:"bytes,52,opt,name=peer_name,json=peerName" json:"peer_name,omitempty"` + Nasreq *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType `protobuf:"bytes,151,opt,name=nasreq" json:"nasreq,omitempty"` + Gx *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType `protobuf:"bytes,152,opt,name=gx" json:"gx,omitempty"` + Gy *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType `protobuf:"bytes,153,opt,name=gy" json:"gy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) GetPeerName() string { + if m != nil && m.PeerName != nil { + return *m.PeerName + } + return "" +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) GetNasreq() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType { + if m != nil { + return m.Nasreq + } + return nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) GetGx() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType { + if m != nil { + return m.Gx + } + return nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) GetGy() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType { + if m != nil { + return m.Gy + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType struct { + ResponseTime *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType `protobuf:"bytes,151,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) GetResponseTime() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType { + if m != nil { + return m.ResponseTime + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType struct { + OneMinuteMinimumResponseTime *uint64 `protobuf:"varint,51,opt,name=one_minute_minimum_response_time,json=oneMinuteMinimumResponseTime" json:"one_minute_minimum_response_time,omitempty"` + OneMinuteAverageResponseTime *uint64 `protobuf:"varint,52,opt,name=one_minute_average_response_time,json=oneMinuteAverageResponseTime" json:"one_minute_average_response_time,omitempty"` + OneMinuteMaximumResponseTime *uint64 `protobuf:"varint,53,opt,name=one_minute_maximum_response_time,json=oneMinuteMaximumResponseTime" json:"one_minute_maximum_response_time,omitempty"` + OneMinuteMessagesSent *uint64 `protobuf:"varint,54,opt,name=one_minute_messages_sent,json=oneMinuteMessagesSent" json:"one_minute_messages_sent,omitempty"` + OneMinuteMessagesReceived *uint64 `protobuf:"varint,55,opt,name=one_minute_messages_received,json=oneMinuteMessagesReceived" json:"one_minute_messages_received,omitempty"` + OneMinuteMessagesNoResponse *uint64 `protobuf:"varint,56,opt,name=one_minute_messages_no_response,json=oneMinuteMessagesNoResponse" json:"one_minute_messages_no_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) GetOneMinuteMinimumResponseTime() uint64 { + if m != nil && m.OneMinuteMinimumResponseTime != nil { + return *m.OneMinuteMinimumResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) GetOneMinuteAverageResponseTime() uint64 { + if m != nil && m.OneMinuteAverageResponseTime != nil { + return *m.OneMinuteAverageResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) GetOneMinuteMaximumResponseTime() uint64 { + if m != nil && m.OneMinuteMaximumResponseTime != nil { + return *m.OneMinuteMaximumResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) GetOneMinuteMessagesSent() uint64 { + if m != nil && m.OneMinuteMessagesSent != nil { + return *m.OneMinuteMessagesSent + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) GetOneMinuteMessagesReceived() uint64 { + if m != nil && m.OneMinuteMessagesReceived != nil { + return *m.OneMinuteMessagesReceived + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) GetOneMinuteMessagesNoResponse() uint64 { + if m != nil && m.OneMinuteMessagesNoResponse != nil { + return *m.OneMinuteMessagesNoResponse + } + return 0 +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType struct { + ResponseTime *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType `protobuf:"bytes,151,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) GetResponseTime() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType { + if m != nil { + return m.ResponseTime + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType struct { + OneMinuteMinimumResponseTime *uint64 `protobuf:"varint,51,opt,name=one_minute_minimum_response_time,json=oneMinuteMinimumResponseTime" json:"one_minute_minimum_response_time,omitempty"` + OneMinuteAverageResponseTime *uint64 `protobuf:"varint,52,opt,name=one_minute_average_response_time,json=oneMinuteAverageResponseTime" json:"one_minute_average_response_time,omitempty"` + OneMinuteMaximumResponseTime *uint64 `protobuf:"varint,53,opt,name=one_minute_maximum_response_time,json=oneMinuteMaximumResponseTime" json:"one_minute_maximum_response_time,omitempty"` + OneMinuteMessagesSent *uint64 `protobuf:"varint,54,opt,name=one_minute_messages_sent,json=oneMinuteMessagesSent" json:"one_minute_messages_sent,omitempty"` + OneMinuteMessagesReceived *uint64 `protobuf:"varint,55,opt,name=one_minute_messages_received,json=oneMinuteMessagesReceived" json:"one_minute_messages_received,omitempty"` + OneMinuteMessagesNoResponse *uint64 `protobuf:"varint,56,opt,name=one_minute_messages_no_response,json=oneMinuteMessagesNoResponse" json:"one_minute_messages_no_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) GetOneMinuteMinimumResponseTime() uint64 { + if m != nil && m.OneMinuteMinimumResponseTime != nil { + return *m.OneMinuteMinimumResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) GetOneMinuteAverageResponseTime() uint64 { + if m != nil && m.OneMinuteAverageResponseTime != nil { + return *m.OneMinuteAverageResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) GetOneMinuteMaximumResponseTime() uint64 { + if m != nil && m.OneMinuteMaximumResponseTime != nil { + return *m.OneMinuteMaximumResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) GetOneMinuteMessagesSent() uint64 { + if m != nil && m.OneMinuteMessagesSent != nil { + return *m.OneMinuteMessagesSent + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) GetOneMinuteMessagesReceived() uint64 { + if m != nil && m.OneMinuteMessagesReceived != nil { + return *m.OneMinuteMessagesReceived + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) GetOneMinuteMessagesNoResponse() uint64 { + if m != nil && m.OneMinuteMessagesNoResponse != nil { + return *m.OneMinuteMessagesNoResponse + } + return 0 +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType struct { + ResponseTime *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType `protobuf:"bytes,151,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0, 2} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) GetResponseTime() *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType { + if m != nil { + return m.ResponseTime + } + return nil +} + +type JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType struct { + OneMinuteMinimumResponseTime *uint64 `protobuf:"varint,51,opt,name=one_minute_minimum_response_time,json=oneMinuteMinimumResponseTime" json:"one_minute_minimum_response_time,omitempty"` + OneMinuteAverageResponseTime *uint64 `protobuf:"varint,52,opt,name=one_minute_average_response_time,json=oneMinuteAverageResponseTime" json:"one_minute_average_response_time,omitempty"` + OneMinuteMaximumResponseTime *uint64 `protobuf:"varint,53,opt,name=one_minute_maximum_response_time,json=oneMinuteMaximumResponseTime" json:"one_minute_maximum_response_time,omitempty"` + OneMinuteMessagesSent *uint64 `protobuf:"varint,54,opt,name=one_minute_messages_sent,json=oneMinuteMessagesSent" json:"one_minute_messages_sent,omitempty"` + OneMinuteMessagesReceived *uint64 `protobuf:"varint,55,opt,name=one_minute_messages_received,json=oneMinuteMessagesReceived" json:"one_minute_messages_received,omitempty"` + OneMinuteMessagesNoResponse *uint64 `protobuf:"varint,56,opt,name=one_minute_messages_no_response,json=oneMinuteMessagesNoResponse" json:"one_minute_messages_no_response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) Reset() { + *m = JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType{} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) ProtoMessage() { +} +func (*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_c2442cc5af5ff1ef, []int{0, 0, 0, 0, 0, 0, 0, 2, 0} +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType.Merge(m, src) +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) XXX_Size() int { + return m.Size() +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType proto.InternalMessageInfo + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) GetOneMinuteMinimumResponseTime() uint64 { + if m != nil && m.OneMinuteMinimumResponseTime != nil { + return *m.OneMinuteMinimumResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) GetOneMinuteAverageResponseTime() uint64 { + if m != nil && m.OneMinuteAverageResponseTime != nil { + return *m.OneMinuteAverageResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) GetOneMinuteMaximumResponseTime() uint64 { + if m != nil && m.OneMinuteMaximumResponseTime != nil { + return *m.OneMinuteMaximumResponseTime + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) GetOneMinuteMessagesSent() uint64 { + if m != nil && m.OneMinuteMessagesSent != nil { + return *m.OneMinuteMessagesSent + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) GetOneMinuteMessagesReceived() uint64 { + if m != nil && m.OneMinuteMessagesReceived != nil { + return *m.OneMinuteMessagesReceived + } + return 0 +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) GetOneMinuteMessagesNoResponse() uint64 { + if m != nil && m.OneMinuteMessagesNoResponse != nil { + return *m.OneMinuteMessagesNoResponse + } + return 0 +} + +var E_JnprJunosDiameterExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosDiameter)(nil), + Field: 103, + Name: "jnpr_junos_diameter_ext", + Tag: "bytes,103,opt,name=jnpr_junos_diameter_ext", + Filename: "jdiameterd_render.proto", +} + +func init() { + proto.RegisterType((*JunosDiameter)(nil), "junos_diameter") + proto.RegisterType((*JunosDiameterSystemType)(nil), "junos_diameter.system_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementType)(nil), "junos_diameter.system_type.subscriber_management_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list.nasreq_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list.nasreq_type.response_time_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list.gx_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list.gx_type.response_time_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list.gy_type") + proto.RegisterType((*JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType)(nil), "junos_diameter.system_type.subscriber_management_type.aaa_type.diameter_type.peers_type.peer_list.gy_type.response_time_type") + proto.RegisterExtension(E_JnprJunosDiameterExt) +} + +func init() { proto.RegisterFile("jdiameterd_render.proto", fileDescriptor_c2442cc5af5ff1ef) } + +var fileDescriptor_c2442cc5af5ff1ef = []byte{ + // 701 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0x4d, 0x4f, 0x13, 0x41, + 0x18, 0xce, 0x42, 0xc1, 0x32, 0x15, 0x8d, 0x03, 0xd8, 0x75, 0x21, 0xd8, 0x70, 0xea, 0x85, 0x6d, + 0x82, 0x08, 0xc6, 0x0b, 0x4a, 0xd0, 0x03, 0x49, 0x39, 0xac, 0x1e, 0x8c, 0x97, 0x75, 0xda, 0xbe, + 0x59, 0x66, 0xe9, 0xcc, 0xae, 0x33, 0x53, 0xe8, 0xc6, 0x78, 0xd0, 0x8b, 0x3f, 0x41, 0x3d, 0x78, + 0xf2, 0xe2, 0xc1, 0x1f, 0xe2, 0xd1, 0x83, 0xf1, 0xa8, 0x06, 0x0f, 0x24, 0xfe, 0x0a, 0xb3, 0x3b, + 0xbb, 0xa5, 0x2d, 0x85, 0x83, 0x4a, 0x63, 0x08, 0x27, 0x98, 0xe7, 0x7d, 0x9f, 0x8f, 0xd9, 0x7d, + 0xb6, 0xa8, 0xe8, 0x37, 0x28, 0x61, 0xa0, 0x40, 0x34, 0x5c, 0x01, 0xbc, 0x01, 0xc2, 0x0e, 0x45, + 0xa0, 0x02, 0x6b, 0x4a, 0x41, 0x13, 0x18, 0x28, 0x11, 0xb9, 0x2a, 0x08, 0x35, 0xb8, 0xf0, 0xae, + 0x88, 0x2e, 0xf9, 0x2d, 0x1e, 0x48, 0x37, 0x63, 0xe1, 0x65, 0x34, 0x2e, 0x23, 0xa9, 0x80, 0x99, + 0xaf, 0x8d, 0x92, 0x51, 0x2e, 0x2c, 0xcd, 0xda, 0xbd, 0x1b, 0xb6, 0x1e, 0xbb, 0x2a, 0x0a, 0xc1, + 0x49, 0x77, 0xad, 0x2f, 0x57, 0x51, 0xa1, 0x0b, 0xc7, 0x4d, 0x34, 0x23, 0x5b, 0x35, 0x59, 0x17, + 0xb4, 0x06, 0xc2, 0x65, 0x84, 0x13, 0x0f, 0x18, 0x70, 0x95, 0x89, 0xae, 0x9c, 0x20, 0x6a, 0x0f, + 0x64, 0x6a, 0xbf, 0xe9, 0xc3, 0x59, 0xb5, 0x33, 0xb2, 0xbe, 0xce, 0x20, 0xeb, 0x78, 0x12, 0x76, + 0xd0, 0x28, 0x21, 0x24, 0xb3, 0x5e, 0xfb, 0x33, 0x6b, 0x9b, 0x10, 0xa2, 0x33, 0xc4, 0x62, 0xd6, + 0xcf, 0x69, 0x94, 0xcf, 0x10, 0xec, 0xa3, 0x7c, 0xa6, 0x96, 0xb9, 0x54, 0xff, 0xd2, 0xc5, 0xce, + 0x88, 0xda, 0xb3, 0xa3, 0x6f, 0xfd, 0x9a, 0x42, 0x93, 0x3d, 0x33, 0x1c, 0xa0, 0xb1, 0x10, 0x40, + 0xc8, 0xcc, 0xfa, 0xd1, 0x3f, 0xb5, 0xb6, 0x13, 0x6d, 0x9d, 0x42, 0xfb, 0x58, 0x07, 0x18, 0xa1, + 0x43, 0x14, 0xef, 0xa1, 0x5c, 0x7c, 0x8a, 0xed, 0x47, 0xcb, 0x85, 0xa5, 0xda, 0x69, 0xd9, 0x27, + 0xff, 0xba, 0x4d, 0x2a, 0x95, 0x93, 0x18, 0x5a, 0xdf, 0xaf, 0xa0, 0x89, 0x0e, 0x86, 0x17, 0xd2, + 0x03, 0x27, 0x0c, 0xcc, 0xe5, 0x92, 0x51, 0x9e, 0x58, 0x1f, 0x7b, 0x79, 0x67, 0x24, 0x6f, 0x38, + 0xf9, 0x18, 0xdf, 0x22, 0x0c, 0xf0, 0x2b, 0x03, 0x8d, 0x73, 0x22, 0x05, 0x3c, 0xcd, 0x1e, 0x16, + 0x3f, 0xfd, 0xb4, 0xb6, 0x76, 0x4c, 0x3f, 0x18, 0x7d, 0xc0, 0xcf, 0xd0, 0x88, 0xd7, 0x36, 0xdf, + 0xe8, 0x10, 0xfe, 0x10, 0x42, 0x78, 0x6d, 0x1d, 0x60, 0xc4, 0x6b, 0x27, 0xe6, 0x91, 0xf9, 0x76, + 0x88, 0xe6, 0x51, 0x66, 0x1e, 0x59, 0x07, 0x39, 0x54, 0xe8, 0x7a, 0x22, 0xf8, 0x83, 0x81, 0x26, + 0x05, 0xc8, 0x30, 0xe0, 0x12, 0x5c, 0x45, 0x19, 0x64, 0xaf, 0xe6, 0x85, 0x31, 0xdc, 0x77, 0x63, + 0xf7, 0xa4, 0xd0, 0x81, 0x2f, 0x66, 0xd8, 0x43, 0xca, 0xc0, 0xfa, 0x38, 0x8a, 0xf0, 0xd1, 0x25, + 0x7c, 0x1f, 0x95, 0x02, 0x0e, 0x2e, 0xa3, 0xbc, 0xa5, 0x92, 0x3f, 0x94, 0xb5, 0x98, 0xdb, 0x7b, + 0xa7, 0x1b, 0x25, 0xa3, 0x9c, 0x73, 0xe6, 0x02, 0x0e, 0xd5, 0x64, 0xad, 0xaa, 0xb7, 0x9c, 0x2e, + 0xf9, 0x3e, 0x1d, 0xb2, 0x0b, 0x82, 0x78, 0xd0, 0xa7, 0xb3, 0xdc, 0xa7, 0x73, 0x57, 0x6f, 0x9d, + 0xa0, 0xc3, 0x48, 0x7b, 0x40, 0x9e, 0x9b, 0xfd, 0x79, 0xf4, 0x56, 0x8f, 0xce, 0x2a, 0x32, 0xbb, + 0x75, 0x40, 0x4a, 0xe2, 0x81, 0x74, 0x65, 0xfc, 0x3b, 0xbe, 0x92, 0xf0, 0x67, 0x0e, 0xf9, 0xe9, + 0xf4, 0x01, 0x70, 0x85, 0xd7, 0xd0, 0xdc, 0x20, 0xa2, 0x80, 0x3a, 0xd0, 0x5d, 0x68, 0x98, 0xab, + 0x09, 0xf9, 0xda, 0x11, 0xb2, 0x93, 0x2e, 0xe0, 0x0d, 0x74, 0x7d, 0x90, 0x00, 0x0f, 0x3a, 0xb7, + 0x30, 0x6f, 0x25, 0x1a, 0xb3, 0x47, 0x34, 0xb6, 0x82, 0xec, 0x0e, 0xd6, 0xb7, 0x1c, 0xba, 0x90, + 0xd6, 0x1e, 0xbf, 0x3f, 0xae, 0x65, 0xcf, 0x87, 0xf7, 0xed, 0x9d, 0x17, 0xec, 0x2c, 0x16, 0x2c, + 0xfa, 0x1f, 0x0a, 0x16, 0x9d, 0x17, 0xec, 0x0c, 0x16, 0xec, 0xb6, 0x8b, 0x8a, 0x3e, 0x0f, 0x85, + 0xdb, 0xdb, 0x20, 0x17, 0xda, 0x0a, 0x17, 0xed, 0xcd, 0x16, 0xa7, 0x21, 0x88, 0x2d, 0x50, 0x7b, + 0x81, 0xd8, 0x89, 0x73, 0xcb, 0x40, 0x48, 0xd3, 0x4b, 0x5a, 0x77, 0xb9, 0xaf, 0x75, 0xce, 0x74, + 0x2c, 0xb4, 0x19, 0x63, 0x1b, 0x29, 0x74, 0xaf, 0xad, 0xd6, 0x9f, 0x7c, 0xda, 0x9f, 0x37, 0x3e, + 0xef, 0xcf, 0x1b, 0x3f, 0xf6, 0xe7, 0x8d, 0xc7, 0x8e, 0x47, 0x55, 0xcc, 0x8b, 0x65, 0x6d, 0x0e, + 0xaa, 0x42, 0xeb, 0x50, 0x03, 0xe1, 0x55, 0xb6, 0x81, 0x34, 0xd5, 0x76, 0x2d, 0x50, 0x8b, 0x94, + 0x7b, 0x20, 0xd5, 0xa2, 0xaf, 0xe8, 0x22, 0x27, 0x8a, 0xee, 0x42, 0x25, 0xdc, 0xf1, 0x2a, 0xbe, + 0xa2, 0x15, 0xd2, 0x20, 0xa1, 0x02, 0x21, 0x2b, 0x3a, 0x6d, 0x45, 0xd6, 0xb7, 0x81, 0x91, 0xdf, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x42, 0x80, 0xfe, 0x91, 0x0c, 0x00, 0x00, +} + +func (m *JunosDiameter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Aaa != nil { + { + size, err := m.Aaa.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Diameter != nil { + { + size, err := m.Diameter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Peers != nil { + { + size, err := m.Peers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Peer) > 0 { + for iNdEx := len(m.Peer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Peer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Gy != nil { + { + size, err := m.Gy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Gx != nil { + { + size, err := m.Gx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Nasreq != nil { + { + size, err := m.Nasreq.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.PeerName != nil { + i -= len(*m.PeerName) + copy(dAtA[i:], *m.PeerName) + i = encodeVarintJdiameterdRender(dAtA, i, uint64(len(*m.PeerName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResponseTime != nil { + { + size, err := m.ResponseTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OneMinuteMessagesNoResponse != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesNoResponse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OneMinuteMessagesReceived != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OneMinuteMessagesSent != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OneMinuteMaximumResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMaximumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OneMinuteAverageResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteAverageResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OneMinuteMinimumResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMinimumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResponseTime != nil { + { + size, err := m.ResponseTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OneMinuteMessagesNoResponse != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesNoResponse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OneMinuteMessagesReceived != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OneMinuteMessagesSent != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OneMinuteMaximumResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMaximumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OneMinuteAverageResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteAverageResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OneMinuteMinimumResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMinimumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResponseTime != nil { + { + size, err := m.ResponseTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJdiameterdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OneMinuteMessagesNoResponse != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesNoResponse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OneMinuteMessagesReceived != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OneMinuteMessagesSent != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OneMinuteMaximumResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMaximumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.OneMinuteAverageResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteAverageResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OneMinuteMinimumResponseTime != nil { + i = encodeVarintJdiameterdRender(dAtA, i, uint64(*m.OneMinuteMinimumResponseTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJdiameterdRender(dAtA []byte, offset int, v uint64) int { + offset -= sovJdiameterdRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosDiameter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Aaa != nil { + l = m.Aaa.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Diameter != nil { + l = m.Diameter.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Peers != nil { + l = m.Peers.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Peer) > 0 { + for _, e := range m.Peer { + l = e.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerName != nil { + l = len(*m.PeerName) + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.Nasreq != nil { + l = m.Nasreq.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.Gx != nil { + l = m.Gx.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.Gy != nil { + l = m.Gy.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResponseTime != nil { + l = m.ResponseTime.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OneMinuteMinimumResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMinimumResponseTime)) + } + if m.OneMinuteAverageResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteAverageResponseTime)) + } + if m.OneMinuteMaximumResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMaximumResponseTime)) + } + if m.OneMinuteMessagesSent != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesSent)) + } + if m.OneMinuteMessagesReceived != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesReceived)) + } + if m.OneMinuteMessagesNoResponse != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesNoResponse)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResponseTime != nil { + l = m.ResponseTime.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OneMinuteMinimumResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMinimumResponseTime)) + } + if m.OneMinuteAverageResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteAverageResponseTime)) + } + if m.OneMinuteMaximumResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMaximumResponseTime)) + } + if m.OneMinuteMessagesSent != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesSent)) + } + if m.OneMinuteMessagesReceived != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesReceived)) + } + if m.OneMinuteMessagesNoResponse != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesNoResponse)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResponseTime != nil { + l = m.ResponseTime.Size() + n += 2 + l + sovJdiameterdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OneMinuteMinimumResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMinimumResponseTime)) + } + if m.OneMinuteAverageResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteAverageResponseTime)) + } + if m.OneMinuteMaximumResponseTime != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMaximumResponseTime)) + } + if m.OneMinuteMessagesSent != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesSent)) + } + if m.OneMinuteMessagesReceived != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesReceived)) + } + if m.OneMinuteMessagesNoResponse != nil { + n += 2 + sovJdiameterdRender(uint64(*m.OneMinuteMessagesNoResponse)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJdiameterdRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJdiameterdRender(x uint64) (n int) { + return sovJdiameterdRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosDiameter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_diameter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_diameter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosDiameterSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosDiameterSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aaa", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aaa == nil { + m.Aaa = &JunosDiameterSystemTypeSubscriberManagementTypeAaaType{} + } + if err := m.Aaa.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aaa_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aaa_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Diameter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Diameter == nil { + m.Diameter = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType{} + } + if err := m.Diameter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: diameter_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: diameter_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Peers == nil { + m.Peers = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType{} + } + if err := m.Peers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Peer = append(m.Peer, &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList{}) + if err := m.Peer[len(m.Peer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peer_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peer_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nasreq", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nasreq == nil { + m.Nasreq = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType{} + } + if err := m.Nasreq.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gx == nil { + m.Gx = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType{} + } + if err := m.Gx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gy == nil { + m.Gy = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType{} + } + if err := m.Gy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nasreq_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nasreq_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResponseTime == nil { + m.ResponseTime = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType{} + } + if err := m.ResponseTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListNasreqTypeResponseTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: response_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: response_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMinimumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMinimumResponseTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteAverageResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteAverageResponseTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMaximumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMaximumResponseTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesSent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesNoResponse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesNoResponse = &v + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: gx_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: gx_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResponseTime == nil { + m.ResponseTime = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType{} + } + if err := m.ResponseTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGxTypeResponseTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: response_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: response_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMinimumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMinimumResponseTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteAverageResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteAverageResponseTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMaximumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMaximumResponseTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesSent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesNoResponse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesNoResponse = &v + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: gy_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: gy_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResponseTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJdiameterdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJdiameterdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResponseTime == nil { + m.ResponseTime = &JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType{} + } + if err := m.ResponseTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosDiameterSystemTypeSubscriberManagementTypeAaaTypeDiameterTypePeersTypePeerListGyTypeResponseTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: response_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: response_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMinimumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMinimumResponseTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteAverageResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteAverageResponseTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMaximumResponseTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMaximumResponseTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesSent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMinuteMessagesNoResponse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OneMinuteMessagesNoResponse = &v + default: + iNdEx = preIndex + skippy, err := skipJdiameterdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJdiameterdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJdiameterdRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJdiameterdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJdiameterdRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJdiameterdRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJdiameterdRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJdiameterdRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJdiameterdRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJdiameterdRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jdiameterd_render.proto b/schema/jdiameterd_render.proto new file mode 100755 index 0000000..8e89a3d --- /dev/null +++ b/schema/jdiameterd_render.proto @@ -0,0 +1,65 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_diameter jnpr_junos_diameter_ext = 103; +} + +message junos_diameter { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional aaa_type aaa = 151; + message aaa_type { + optional diameter_type diameter = 151; + message diameter_type { + optional peers_type peers = 151; + message peers_type { + message peer_list { + optional string peer_name = 52 [(telemetry_options).is_key = true]; + optional nasreq_type nasreq = 151; + message nasreq_type { + optional response_time_type response_time = 151; + message response_time_type { + optional uint64 one_minute_minimum_response_time = 51; + optional uint64 one_minute_average_response_time = 52; + optional uint64 one_minute_maximum_response_time = 53; + optional uint64 one_minute_messages_sent = 54; + optional uint64 one_minute_messages_received = 55; + optional uint64 one_minute_messages_no_response = 56; + } + } + optional gx_type gx = 152; + message gx_type { + optional response_time_type response_time = 151; + message response_time_type { + optional uint64 one_minute_minimum_response_time = 51; + optional uint64 one_minute_average_response_time = 52; + optional uint64 one_minute_maximum_response_time = 53; + optional uint64 one_minute_messages_sent = 54; + optional uint64 one_minute_messages_received = 55; + optional uint64 one_minute_messages_no_response = 56; + } + } + optional gy_type gy = 153; + message gy_type { + optional response_time_type response_time = 151; + message response_time_type { + optional uint64 one_minute_minimum_response_time = 51; + optional uint64 one_minute_average_response_time = 52; + optional uint64 one_minute_maximum_response_time = 53; + optional uint64 one_minute_messages_sent = 54; + optional uint64 one_minute_messages_received = 55; + optional uint64 one_minute_messages_no_response = 56; + } + } + } + repeated peer_list peer = 151; + } + } + } + } + } +} diff --git a/schema/jkdsd_cpu_oc.pb.go b/schema/jkdsd_cpu_oc.pb.go new file mode 100644 index 0000000..1338b0e --- /dev/null +++ b/schema/jkdsd_cpu_oc.pb.go @@ -0,0 +1,1471 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jkdsd_cpu_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type ComponentsDebug struct { + Component []*ComponentsDebugComponentList `protobuf:"bytes,151,rep,name=component" json:"component,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsDebug) Reset() { *m = ComponentsDebug{} } +func (m *ComponentsDebug) String() string { return proto.CompactTextString(m) } +func (*ComponentsDebug) ProtoMessage() {} +func (*ComponentsDebug) Descriptor() ([]byte, []int) { + return fileDescriptor_904bd24d5b27d4fa, []int{0} +} +func (m *ComponentsDebug) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsDebug) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsDebug.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsDebug) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsDebug.Merge(m, src) +} +func (m *ComponentsDebug) XXX_Size() int { + return m.Size() +} +func (m *ComponentsDebug) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsDebug.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsDebug proto.InternalMessageInfo + +func (m *ComponentsDebug) GetComponent() []*ComponentsDebugComponentList { + if m != nil { + return m.Component + } + return nil +} + +type ComponentsDebugComponentList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Cpu *ComponentsDebugComponentListCpuType `protobuf:"bytes,151,opt,name=cpu" json:"cpu,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsDebugComponentList) Reset() { *m = ComponentsDebugComponentList{} } +func (m *ComponentsDebugComponentList) String() string { return proto.CompactTextString(m) } +func (*ComponentsDebugComponentList) ProtoMessage() {} +func (*ComponentsDebugComponentList) Descriptor() ([]byte, []int) { + return fileDescriptor_904bd24d5b27d4fa, []int{0, 0} +} +func (m *ComponentsDebugComponentList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsDebugComponentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsDebugComponentList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsDebugComponentList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsDebugComponentList.Merge(m, src) +} +func (m *ComponentsDebugComponentList) XXX_Size() int { + return m.Size() +} +func (m *ComponentsDebugComponentList) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsDebugComponentList.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsDebugComponentList proto.InternalMessageInfo + +func (m *ComponentsDebugComponentList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ComponentsDebugComponentList) GetCpu() *ComponentsDebugComponentListCpuType { + if m != nil { + return m.Cpu + } + return nil +} + +type ComponentsDebugComponentListCpuType struct { + Utilization *ComponentsDebugComponentListCpuTypeUtilizationType `protobuf:"bytes,151,opt,name=utilization" json:"utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsDebugComponentListCpuType) Reset() { *m = ComponentsDebugComponentListCpuType{} } +func (m *ComponentsDebugComponentListCpuType) String() string { return proto.CompactTextString(m) } +func (*ComponentsDebugComponentListCpuType) ProtoMessage() {} +func (*ComponentsDebugComponentListCpuType) Descriptor() ([]byte, []int) { + return fileDescriptor_904bd24d5b27d4fa, []int{0, 0, 0} +} +func (m *ComponentsDebugComponentListCpuType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsDebugComponentListCpuType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsDebugComponentListCpuType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsDebugComponentListCpuType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsDebugComponentListCpuType.Merge(m, src) +} +func (m *ComponentsDebugComponentListCpuType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsDebugComponentListCpuType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsDebugComponentListCpuType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsDebugComponentListCpuType proto.InternalMessageInfo + +func (m *ComponentsDebugComponentListCpuType) GetUtilization() *ComponentsDebugComponentListCpuTypeUtilizationType { + if m != nil { + return m.Utilization + } + return nil +} + +type ComponentsDebugComponentListCpuTypeUtilizationType struct { + State *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) Reset() { + *m = ComponentsDebugComponentListCpuTypeUtilizationType{} +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsDebugComponentListCpuTypeUtilizationType) ProtoMessage() {} +func (*ComponentsDebugComponentListCpuTypeUtilizationType) Descriptor() ([]byte, []int) { + return fileDescriptor_904bd24d5b27d4fa, []int{0, 0, 0, 0} +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationType.Merge(m, src) +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationType proto.InternalMessageInfo + +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) GetState() *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type ComponentsDebugComponentListCpuTypeUtilizationTypeStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Instant *uint32 `protobuf:"varint,52,opt,name=instant" json:"instant,omitempty"` + Avg *uint32 `protobuf:"varint,53,opt,name=avg" json:"avg,omitempty"` + Min *uint32 `protobuf:"varint,54,opt,name=min" json:"min,omitempty"` + Max *uint32 `protobuf:"varint,55,opt,name=max" json:"max,omitempty"` + Interval *uint64 `protobuf:"varint,56,opt,name=interval" json:"interval,omitempty"` + MinTime *uint64 `protobuf:"varint,57,opt,name=min_time,json=minTime" json:"min_time,omitempty"` + MaxTime *uint64 `protobuf:"varint,58,opt,name=max_time,json=maxTime" json:"max_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) Reset() { + *m = ComponentsDebugComponentListCpuTypeUtilizationTypeStateType{} +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) ProtoMessage() {} +func (*ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_904bd24d5b27d4fa, []int{0, 0, 0, 0, 0} +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationTypeStateType.Merge(m, src) +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ComponentsDebugComponentListCpuTypeUtilizationTypeStateType proto.InternalMessageInfo + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetInstant() uint32 { + if m != nil && m.Instant != nil { + return *m.Instant + } + return 0 +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetAvg() uint32 { + if m != nil && m.Avg != nil { + return *m.Avg + } + return 0 +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetMin() uint32 { + if m != nil && m.Min != nil { + return *m.Min + } + return 0 +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetMax() uint32 { + if m != nil && m.Max != nil { + return *m.Max + } + return 0 +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetInterval() uint64 { + if m != nil && m.Interval != nil { + return *m.Interval + } + return 0 +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetMinTime() uint64 { + if m != nil && m.MinTime != nil { + return *m.MinTime + } + return 0 +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) GetMaxTime() uint64 { + if m != nil && m.MaxTime != nil { + return *m.MaxTime + } + return 0 +} + +var E_JnprComponentsDebugExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*ComponentsDebug)(nil), + Field: 107, + Name: "jnpr_components_debug_ext", + Tag: "bytes,107,opt,name=jnpr_components_debug_ext", + Filename: "jkdsd_cpu_oc.proto", +} + +func init() { + proto.RegisterType((*ComponentsDebug)(nil), "components_debug") + proto.RegisterType((*ComponentsDebugComponentList)(nil), "components_debug.component_list") + proto.RegisterType((*ComponentsDebugComponentListCpuType)(nil), "components_debug.component_list.cpu_type") + proto.RegisterType((*ComponentsDebugComponentListCpuTypeUtilizationType)(nil), "components_debug.component_list.cpu_type.utilization_type") + proto.RegisterType((*ComponentsDebugComponentListCpuTypeUtilizationTypeStateType)(nil), "components_debug.component_list.cpu_type.utilization_type.state_type") + proto.RegisterExtension(E_JnprComponentsDebugExt) +} + +func init() { proto.RegisterFile("jkdsd_cpu_oc.proto", fileDescriptor_904bd24d5b27d4fa) } + +var fileDescriptor_904bd24d5b27d4fa = []byte{ + // 470 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0xbd, 0x8e, 0xd3, 0x40, + 0x14, 0x85, 0x35, 0x9b, 0xac, 0x36, 0x3b, 0x2b, 0x50, 0x18, 0x24, 0x98, 0xb8, 0x88, 0x22, 0xaa, + 0x50, 0xc4, 0x96, 0x96, 0xff, 0x08, 0x09, 0xb4, 0xb0, 0x0d, 0x05, 0x85, 0xa1, 0x42, 0x20, 0x33, + 0x71, 0xae, 0x9c, 0x71, 0x3c, 0x3f, 0xf2, 0x5c, 0x07, 0x2f, 0x25, 0x3d, 0x35, 0x35, 0x0f, 0xc1, + 0x0b, 0x50, 0x51, 0xf2, 0x08, 0x28, 0xbc, 0x08, 0xb2, 0x9d, 0x3f, 0x42, 0x01, 0xa2, 0x9b, 0xfb, + 0x9d, 0x7b, 0xcf, 0xd1, 0x1c, 0xca, 0xd2, 0xf9, 0xd4, 0x4d, 0xa3, 0xd8, 0x16, 0x91, 0x89, 0x7d, + 0x9b, 0x1b, 0x34, 0xde, 0x55, 0x84, 0x0c, 0x14, 0x60, 0x7e, 0x11, 0xa1, 0xb1, 0x0d, 0xbc, 0xf1, + 0xb3, 0x4d, 0xbb, 0xb1, 0x51, 0xd6, 0x68, 0xd0, 0xe8, 0xa2, 0x29, 0x4c, 0x8a, 0x84, 0x3d, 0xa2, + 0xc7, 0x1b, 0xc6, 0x3f, 0x91, 0x41, 0x6b, 0x78, 0x72, 0x3a, 0xf0, 0xf7, 0xd7, 0xb6, 0x20, 0xca, + 0xa4, 0xc3, 0x70, 0x7b, 0xe3, 0x7d, 0x6c, 0xd3, 0xcb, 0xbf, 0xab, 0xac, 0x47, 0xdb, 0x5a, 0x28, + 0xe0, 0xb7, 0x06, 0x64, 0x78, 0x7c, 0x76, 0xf8, 0xe1, 0xf1, 0x41, 0x87, 0x84, 0x35, 0x62, 0x0f, + 0x69, 0x2b, 0xb6, 0x45, 0x15, 0x44, 0x86, 0x27, 0xa7, 0x37, 0xff, 0x16, 0xe4, 0x57, 0xbf, 0xc2, + 0x0b, 0x0b, 0x61, 0x75, 0xe6, 0x7d, 0x6e, 0xd1, 0xce, 0x9a, 0xb0, 0x37, 0xf4, 0xa4, 0x40, 0x99, + 0xc9, 0xf7, 0x02, 0xa5, 0xd1, 0x6b, 0xcb, 0xf1, 0x3f, 0x5b, 0xfa, 0x3b, 0xd7, 0x4d, 0xc6, 0xae, + 0x9f, 0xf7, 0xe5, 0x80, 0x76, 0xf7, 0x37, 0xd8, 0x6b, 0x7a, 0xe8, 0x50, 0x20, 0xac, 0xd3, 0xce, + 0xff, 0x3f, 0xcd, 0xaf, 0x8d, 0x9a, 0xe0, 0xc6, 0xd4, 0xfb, 0x4a, 0x28, 0xdd, 0x52, 0xc6, 0x76, + 0x6b, 0x5c, 0xf5, 0xc7, 0xe9, 0x91, 0xd4, 0x0e, 0x85, 0x46, 0x7e, 0x7b, 0x40, 0x86, 0x97, 0xc2, + 0xf5, 0xc8, 0xba, 0xb4, 0x25, 0x16, 0x09, 0xbf, 0x53, 0xd3, 0xea, 0x59, 0x11, 0x25, 0x35, 0xbf, + 0xdb, 0x10, 0x25, 0x75, 0x4d, 0x44, 0xc9, 0xef, 0xad, 0x88, 0x28, 0x99, 0x47, 0x3b, 0x52, 0x23, + 0xe4, 0x0b, 0x91, 0xf1, 0xfb, 0x03, 0x32, 0x6c, 0x87, 0x9b, 0x99, 0xf5, 0x68, 0x47, 0x49, 0x1d, + 0xa1, 0x54, 0xc0, 0x1f, 0xd4, 0xda, 0x91, 0x92, 0xfa, 0xa5, 0x54, 0x50, 0x4b, 0xa2, 0x6c, 0xa4, + 0xf1, 0x4a, 0x12, 0x65, 0x25, 0x8d, 0x81, 0xf6, 0x52, 0x6d, 0xf3, 0x68, 0xbf, 0x98, 0x08, 0x4a, + 0x64, 0xd7, 0xfd, 0x67, 0x85, 0x96, 0x16, 0xf2, 0xe7, 0x80, 0xef, 0x4c, 0x3e, 0x77, 0x2f, 0x40, + 0x3b, 0x93, 0x3b, 0x3e, 0xaf, 0xeb, 0xbc, 0xf2, 0x47, 0x9d, 0xe1, 0xb5, 0xca, 0xec, 0xc9, 0x86, + 0x3e, 0xad, 0xe0, 0x79, 0x89, 0x67, 0x6f, 0xbf, 0x2d, 0xfb, 0xe4, 0xfb, 0xb2, 0x4f, 0x7e, 0x2c, + 0xfb, 0xe4, 0x55, 0x98, 0x48, 0xf4, 0xd3, 0xc6, 0xda, 0xd7, 0x80, 0x81, 0x8c, 0x61, 0x02, 0x79, + 0x12, 0xcc, 0x40, 0x64, 0x38, 0x9b, 0x18, 0x1c, 0x49, 0x9d, 0x80, 0xc3, 0x51, 0x8a, 0x72, 0xa4, + 0x05, 0xca, 0x05, 0x04, 0x76, 0x9e, 0x04, 0x29, 0xca, 0x40, 0x4c, 0x85, 0x45, 0xc8, 0x5d, 0x10, + 0xa5, 0x85, 0x36, 0x2e, 0x70, 0xf1, 0x0c, 0x94, 0xf8, 0x15, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x37, + 0x1b, 0x92, 0x58, 0x03, 0x00, 0x00, +} + +func (m *ComponentsDebug) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsDebug) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsDebug) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Component) > 0 { + for iNdEx := len(m.Component) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Component[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *ComponentsDebugComponentList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsDebugComponentList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsDebugComponentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Cpu != nil { + { + size, err := m.Cpu.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ComponentsDebugComponentListCpuType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsDebugComponentListCpuType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsDebugComponentListCpuType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Utilization != nil { + { + size, err := m.Utilization.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MaxTime != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.MaxTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.MinTime != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.MinTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Interval != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.Interval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Max != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.Max)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Min != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.Min)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Avg != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.Avg)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Instant != nil { + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(*m.Instant)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintJkdsdCpuOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintJkdsdCpuOc(dAtA []byte, offset int, v uint64) int { + offset -= sovJkdsdCpuOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ComponentsDebug) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Component) > 0 { + for _, e := range m.Component { + l = e.Size() + n += 2 + l + sovJkdsdCpuOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsDebugComponentList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovJkdsdCpuOc(uint64(l)) + } + if m.Cpu != nil { + l = m.Cpu.Size() + n += 2 + l + sovJkdsdCpuOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsDebugComponentListCpuType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Utilization != nil { + l = m.Utilization.Size() + n += 2 + l + sovJkdsdCpuOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovJkdsdCpuOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovJkdsdCpuOc(uint64(l)) + } + if m.Instant != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.Instant)) + } + if m.Avg != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.Avg)) + } + if m.Min != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.Min)) + } + if m.Max != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.Max)) + } + if m.Interval != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.Interval)) + } + if m.MinTime != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.MinTime)) + } + if m.MaxTime != nil { + n += 2 + sovJkdsdCpuOc(uint64(*m.MaxTime)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJkdsdCpuOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJkdsdCpuOc(x uint64) (n int) { + return sovJkdsdCpuOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ComponentsDebug) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: components_debug: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: components_debug: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Component = append(m.Component, &ComponentsDebugComponentList{}) + if err := m.Component[len(m.Component)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdCpuOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsDebugComponentList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: component_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: component_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Cpu == nil { + m.Cpu = &ComponentsDebugComponentListCpuType{} + } + if err := m.Cpu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdCpuOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsDebugComponentListCpuType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: cpu_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: cpu_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Utilization == nil { + m.Utilization = &ComponentsDebugComponentListCpuTypeUtilizationType{} + } + if err := m.Utilization.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdCpuOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: utilization_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: utilization_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ComponentsDebugComponentListCpuTypeUtilizationTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdCpuOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ComponentsDebugComponentListCpuTypeUtilizationTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Instant", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Instant = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Avg", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Avg = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Min = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Max = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Interval = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinTime = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxTime = &v + default: + iNdEx = preIndex + skippy, err := skipJkdsdCpuOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdCpuOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJkdsdCpuOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkdsdCpuOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJkdsdCpuOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJkdsdCpuOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJkdsdCpuOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJkdsdCpuOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJkdsdCpuOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJkdsdCpuOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jkdsd_cpu_oc.proto b/schema/jkdsd_cpu_oc.proto new file mode 100755 index 0000000..7043112 --- /dev/null +++ b/schema/jkdsd_cpu_oc.proto @@ -0,0 +1,31 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional components_debug jnpr_components_debug_ext = 107; +} + +message components_debug { + message component_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional cpu_type cpu = 151; + message cpu_type { + optional utilization_type utilization = 151; + message utilization_type { + optional state_type state = 151; + message state_type { + optional string name = 51; + optional uint32 instant = 52; + optional uint32 avg = 53; + optional uint32 min = 54; + optional uint32 max = 55; + optional uint64 interval = 56; + optional uint64 min_time = 57; + optional uint64 max_time = 58; + } + } + } + } + repeated component_list component = 151; +} diff --git a/schema/jkdsd_oc.pb.go b/schema/jkdsd_oc.pb.go new file mode 100644 index 0000000..8a21502 --- /dev/null +++ b/schema/jkdsd_oc.pb.go @@ -0,0 +1,1295 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jkdsd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type SystemDebug struct { + Processes *SystemDebugProcessesType `protobuf:"bytes,151,opt,name=processes" json:"processes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemDebug) Reset() { *m = SystemDebug{} } +func (m *SystemDebug) String() string { return proto.CompactTextString(m) } +func (*SystemDebug) ProtoMessage() {} +func (*SystemDebug) Descriptor() ([]byte, []int) { + return fileDescriptor_27d522bd05346529, []int{0} +} +func (m *SystemDebug) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemDebug) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemDebug.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemDebug) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemDebug.Merge(m, src) +} +func (m *SystemDebug) XXX_Size() int { + return m.Size() +} +func (m *SystemDebug) XXX_DiscardUnknown() { + xxx_messageInfo_SystemDebug.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemDebug proto.InternalMessageInfo + +func (m *SystemDebug) GetProcesses() *SystemDebugProcessesType { + if m != nil { + return m.Processes + } + return nil +} + +type SystemDebugProcessesType struct { + Process []*SystemDebugProcessesTypeProcessList `protobuf:"bytes,151,rep,name=process" json:"process,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemDebugProcessesType) Reset() { *m = SystemDebugProcessesType{} } +func (m *SystemDebugProcessesType) String() string { return proto.CompactTextString(m) } +func (*SystemDebugProcessesType) ProtoMessage() {} +func (*SystemDebugProcessesType) Descriptor() ([]byte, []int) { + return fileDescriptor_27d522bd05346529, []int{0, 0} +} +func (m *SystemDebugProcessesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemDebugProcessesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemDebugProcessesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemDebugProcessesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemDebugProcessesType.Merge(m, src) +} +func (m *SystemDebugProcessesType) XXX_Size() int { + return m.Size() +} +func (m *SystemDebugProcessesType) XXX_DiscardUnknown() { + xxx_messageInfo_SystemDebugProcessesType.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemDebugProcessesType proto.InternalMessageInfo + +func (m *SystemDebugProcessesType) GetProcess() []*SystemDebugProcessesTypeProcessList { + if m != nil { + return m.Process + } + return nil +} + +type SystemDebugProcessesTypeProcessList struct { + Pid *uint64 `protobuf:"varint,51,opt,name=pid" json:"pid,omitempty"` + State *SystemDebugProcessesTypeProcessListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemDebugProcessesTypeProcessList) Reset() { *m = SystemDebugProcessesTypeProcessList{} } +func (m *SystemDebugProcessesTypeProcessList) String() string { return proto.CompactTextString(m) } +func (*SystemDebugProcessesTypeProcessList) ProtoMessage() {} +func (*SystemDebugProcessesTypeProcessList) Descriptor() ([]byte, []int) { + return fileDescriptor_27d522bd05346529, []int{0, 0, 0} +} +func (m *SystemDebugProcessesTypeProcessList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemDebugProcessesTypeProcessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemDebugProcessesTypeProcessList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemDebugProcessesTypeProcessList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemDebugProcessesTypeProcessList.Merge(m, src) +} +func (m *SystemDebugProcessesTypeProcessList) XXX_Size() int { + return m.Size() +} +func (m *SystemDebugProcessesTypeProcessList) XXX_DiscardUnknown() { + xxx_messageInfo_SystemDebugProcessesTypeProcessList.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemDebugProcessesTypeProcessList proto.InternalMessageInfo + +func (m *SystemDebugProcessesTypeProcessList) GetPid() uint64 { + if m != nil && m.Pid != nil { + return *m.Pid + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessList) GetState() *SystemDebugProcessesTypeProcessListStateType { + if m != nil { + return m.State + } + return nil +} + +type SystemDebugProcessesTypeProcessListStateType struct { + Pid *uint64 `protobuf:"varint,51,opt,name=pid" json:"pid,omitempty"` + Name *string `protobuf:"bytes,52,opt,name=name" json:"name,omitempty"` + StartTime *uint64 `protobuf:"varint,53,opt,name=start_time,json=startTime" json:"start_time,omitempty"` + Uptime *uint64 `protobuf:"varint,54,opt,name=uptime" json:"uptime,omitempty"` + CpuUsageUser *uint64 `protobuf:"varint,55,opt,name=cpu_usage_user,json=cpuUsageUser" json:"cpu_usage_user,omitempty"` + CpuUsageSystem *uint64 `protobuf:"varint,56,opt,name=cpu_usage_system,json=cpuUsageSystem" json:"cpu_usage_system,omitempty"` + CpuUtilization *uint32 `protobuf:"varint,57,opt,name=cpu_utilization,json=cpuUtilization" json:"cpu_utilization,omitempty"` + MemoryUsage *uint64 `protobuf:"varint,58,opt,name=memory_usage,json=memoryUsage" json:"memory_usage,omitempty"` + MemoryUtilization *uint32 `protobuf:"varint,59,opt,name=memory_utilization,json=memoryUtilization" json:"memory_utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemDebugProcessesTypeProcessListStateType) Reset() { + *m = SystemDebugProcessesTypeProcessListStateType{} +} +func (m *SystemDebugProcessesTypeProcessListStateType) String() string { + return proto.CompactTextString(m) +} +func (*SystemDebugProcessesTypeProcessListStateType) ProtoMessage() {} +func (*SystemDebugProcessesTypeProcessListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_27d522bd05346529, []int{0, 0, 0, 0} +} +func (m *SystemDebugProcessesTypeProcessListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SystemDebugProcessesTypeProcessListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SystemDebugProcessesTypeProcessListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SystemDebugProcessesTypeProcessListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemDebugProcessesTypeProcessListStateType.Merge(m, src) +} +func (m *SystemDebugProcessesTypeProcessListStateType) XXX_Size() int { + return m.Size() +} +func (m *SystemDebugProcessesTypeProcessListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_SystemDebugProcessesTypeProcessListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemDebugProcessesTypeProcessListStateType proto.InternalMessageInfo + +func (m *SystemDebugProcessesTypeProcessListStateType) GetPid() uint64 { + if m != nil && m.Pid != nil { + return *m.Pid + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetStartTime() uint64 { + if m != nil && m.StartTime != nil { + return *m.StartTime + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetUptime() uint64 { + if m != nil && m.Uptime != nil { + return *m.Uptime + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetCpuUsageUser() uint64 { + if m != nil && m.CpuUsageUser != nil { + return *m.CpuUsageUser + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetCpuUsageSystem() uint64 { + if m != nil && m.CpuUsageSystem != nil { + return *m.CpuUsageSystem + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetCpuUtilization() uint32 { + if m != nil && m.CpuUtilization != nil { + return *m.CpuUtilization + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetMemoryUsage() uint64 { + if m != nil && m.MemoryUsage != nil { + return *m.MemoryUsage + } + return 0 +} + +func (m *SystemDebugProcessesTypeProcessListStateType) GetMemoryUtilization() uint32 { + if m != nil && m.MemoryUtilization != nil { + return *m.MemoryUtilization + } + return 0 +} + +var E_JnprSystemDebugExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SystemDebug)(nil), + Field: 106, + Name: "jnpr_system_debug_ext", + Tag: "bytes,106,opt,name=jnpr_system_debug_ext", + Filename: "jkdsd_oc.proto", +} + +func init() { + proto.RegisterType((*SystemDebug)(nil), "system_debug") + proto.RegisterType((*SystemDebugProcessesType)(nil), "system_debug.processes_type") + proto.RegisterType((*SystemDebugProcessesTypeProcessList)(nil), "system_debug.processes_type.process_list") + proto.RegisterType((*SystemDebugProcessesTypeProcessListStateType)(nil), "system_debug.processes_type.process_list.state_type") + proto.RegisterExtension(E_JnprSystemDebugExt) +} + +func init() { proto.RegisterFile("jkdsd_oc.proto", fileDescriptor_27d522bd05346529) } + +var fileDescriptor_27d522bd05346529 = []byte{ + // 487 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4f, 0x6e, 0xd3, 0x40, + 0x14, 0xc6, 0xe5, 0x26, 0x05, 0x32, 0x49, 0x43, 0x19, 0x04, 0xb5, 0x22, 0x88, 0x02, 0x42, 0xc2, + 0x2c, 0x62, 0x4b, 0xa5, 0xfc, 0x6b, 0x37, 0xa8, 0x2a, 0x1b, 0x90, 0x58, 0xb8, 0x74, 0x01, 0x9b, + 0xc1, 0xb1, 0x9f, 0x9c, 0x71, 0x62, 0xcf, 0x68, 0xe6, 0x19, 0x1a, 0x96, 0x88, 0x3b, 0x70, 0x08, + 0xb6, 0x1c, 0x82, 0x25, 0xe2, 0x04, 0x28, 0x27, 0x41, 0x9e, 0x89, 0xb1, 0xbb, 0x41, 0xec, 0x32, + 0xdf, 0xf7, 0x9b, 0xdf, 0xcb, 0xf3, 0x90, 0x61, 0xb6, 0x48, 0x74, 0xc2, 0x44, 0xec, 0x4b, 0x25, + 0x50, 0x8c, 0xae, 0x23, 0x2c, 0x21, 0x07, 0x54, 0x2b, 0x86, 0x42, 0xda, 0xf0, 0xee, 0xaf, 0x2e, + 0x19, 0xe8, 0x95, 0x46, 0xc8, 0x59, 0x02, 0xb3, 0x32, 0xa5, 0x47, 0xa4, 0x27, 0x95, 0x88, 0x41, + 0x6b, 0xd0, 0xee, 0x57, 0x67, 0xe2, 0x78, 0xfd, 0xfd, 0x5b, 0x7e, 0x1b, 0xf1, 0xff, 0xf6, 0x0c, + 0x57, 0x12, 0xc2, 0x86, 0x1f, 0x7d, 0xe9, 0x92, 0xe1, 0xc5, 0x96, 0x9e, 0x90, 0xcb, 0x9b, 0xa4, + 0xb2, 0x75, 0xbc, 0xfe, 0xfe, 0x83, 0x7f, 0xd9, 0xea, 0x23, 0x5b, 0x72, 0x8d, 0x61, 0x7d, 0x75, + 0xf4, 0xad, 0x43, 0x06, 0xed, 0x86, 0xee, 0x91, 0x8e, 0xe4, 0x89, 0xfb, 0x70, 0xe2, 0x78, 0xdd, + 0xe3, 0xed, 0xcf, 0xcf, 0xb7, 0xae, 0x38, 0x61, 0x95, 0xd0, 0x57, 0x64, 0x5b, 0x63, 0x84, 0x50, + 0xff, 0xf7, 0x83, 0xff, 0x9e, 0xe6, 0x9b, 0x7b, 0x76, 0x27, 0xeb, 0x18, 0x7d, 0xdf, 0x22, 0xa4, + 0x49, 0xe9, 0x6e, 0x6b, 0xa8, 0x9d, 0x46, 0x49, 0xb7, 0x88, 0x72, 0x70, 0x0f, 0x26, 0x8e, 0xd7, + 0x0b, 0xcd, 0x6f, 0x7a, 0xdb, 0xdc, 0x51, 0xc8, 0x90, 0xe7, 0xe0, 0x3e, 0x32, 0x70, 0xcf, 0x24, + 0x6f, 0x78, 0x0e, 0xf4, 0x26, 0xb9, 0x54, 0x4a, 0x53, 0x3d, 0x36, 0xd5, 0xe6, 0x44, 0xef, 0x91, + 0x61, 0x2c, 0x4b, 0x56, 0xea, 0x28, 0x05, 0x56, 0x6a, 0x50, 0xee, 0x13, 0xd3, 0x0f, 0x62, 0x59, + 0x9e, 0x55, 0xe1, 0x99, 0x06, 0x45, 0x3d, 0xb2, 0xdb, 0x50, 0x76, 0x33, 0xf7, 0xa9, 0xe1, 0x86, + 0x35, 0x77, 0x6a, 0x52, 0x7a, 0x9f, 0x5c, 0x35, 0x24, 0xf2, 0x25, 0xff, 0x14, 0x21, 0x17, 0x85, + 0xfb, 0x6c, 0xe2, 0x78, 0x3b, 0x16, 0x6c, 0x52, 0x7a, 0x87, 0x0c, 0x72, 0xc8, 0x85, 0x5a, 0x59, + 0xab, 0x7b, 0x68, 0x74, 0x7d, 0x9b, 0x19, 0x23, 0x9d, 0x12, 0x5a, 0x23, 0x2d, 0xdd, 0x91, 0xd1, + 0x5d, 0xdb, 0x80, 0x4d, 0x71, 0xf8, 0x96, 0xdc, 0xc8, 0x0a, 0xa9, 0x58, 0xfb, 0xcb, 0x33, 0x38, + 0x47, 0xba, 0xe7, 0xbf, 0x2c, 0x0b, 0x2e, 0x41, 0xbd, 0x06, 0xfc, 0x28, 0xd4, 0x42, 0x9f, 0x42, + 0xa1, 0x85, 0xd2, 0x6e, 0x66, 0xde, 0x6a, 0xe7, 0xc2, 0x5b, 0x85, 0xb4, 0x92, 0xd8, 0x6d, 0x4e, + 0xaa, 0xe0, 0xc5, 0x39, 0x1e, 0xbf, 0xff, 0xb1, 0x1e, 0x3b, 0x3f, 0xd7, 0x63, 0xe7, 0xf7, 0x7a, + 0xec, 0xbc, 0x0b, 0x53, 0x8e, 0x7e, 0x66, 0x95, 0x7e, 0x01, 0x18, 0xf0, 0x18, 0x66, 0xa0, 0xd2, + 0x60, 0x0e, 0xd1, 0x12, 0xe7, 0x33, 0x81, 0x53, 0x5e, 0xa4, 0xa0, 0x71, 0x9a, 0x21, 0x9f, 0x16, + 0x11, 0xf2, 0x0f, 0x10, 0xc8, 0x45, 0x1a, 0x64, 0xc8, 0x83, 0x28, 0x89, 0x24, 0x82, 0xd2, 0x01, + 0xcb, 0xca, 0x42, 0xe8, 0x40, 0xc7, 0x73, 0xc8, 0xa3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x65, + 0xc4, 0xa5, 0x2b, 0x37, 0x03, 0x00, 0x00, +} + +func (m *SystemDebug) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemDebug) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemDebug) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Processes != nil { + { + size, err := m.Processes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *SystemDebugProcessesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemDebugProcessesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemDebugProcessesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Process) > 0 { + for iNdEx := len(m.Process) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Process[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *SystemDebugProcessesTypeProcessList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemDebugProcessesTypeProcessList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemDebugProcessesTypeProcessList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkdsdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Pid != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.Pid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *SystemDebugProcessesTypeProcessListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SystemDebugProcessesTypeProcessListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SystemDebugProcessesTypeProcessListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MemoryUtilization != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.MemoryUtilization)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.MemoryUsage != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.MemoryUsage)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.CpuUtilization != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.CpuUtilization)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.CpuUsageSystem != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.CpuUsageSystem)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.CpuUsageUser != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.CpuUsageUser)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Uptime != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.Uptime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.StartTime != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.StartTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintJkdsdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Pid != nil { + i = encodeVarintJkdsdOc(dAtA, i, uint64(*m.Pid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJkdsdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovJkdsdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SystemDebug) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Processes != nil { + l = m.Processes.Size() + n += 2 + l + sovJkdsdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SystemDebugProcessesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Process) > 0 { + for _, e := range m.Process { + l = e.Size() + n += 2 + l + sovJkdsdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SystemDebugProcessesTypeProcessList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pid != nil { + n += 2 + sovJkdsdOc(uint64(*m.Pid)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovJkdsdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SystemDebugProcessesTypeProcessListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pid != nil { + n += 2 + sovJkdsdOc(uint64(*m.Pid)) + } + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovJkdsdOc(uint64(l)) + } + if m.StartTime != nil { + n += 2 + sovJkdsdOc(uint64(*m.StartTime)) + } + if m.Uptime != nil { + n += 2 + sovJkdsdOc(uint64(*m.Uptime)) + } + if m.CpuUsageUser != nil { + n += 2 + sovJkdsdOc(uint64(*m.CpuUsageUser)) + } + if m.CpuUsageSystem != nil { + n += 2 + sovJkdsdOc(uint64(*m.CpuUsageSystem)) + } + if m.CpuUtilization != nil { + n += 2 + sovJkdsdOc(uint64(*m.CpuUtilization)) + } + if m.MemoryUsage != nil { + n += 2 + sovJkdsdOc(uint64(*m.MemoryUsage)) + } + if m.MemoryUtilization != nil { + n += 2 + sovJkdsdOc(uint64(*m.MemoryUtilization)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJkdsdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJkdsdOc(x uint64) (n int) { + return sovJkdsdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SystemDebug) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_debug: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_debug: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Processes == nil { + m.Processes = &SystemDebugProcessesType{} + } + if err := m.Processes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemDebugProcessesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: processes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: processes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Process = append(m.Process, &SystemDebugProcessesTypeProcessList{}) + if err := m.Process[len(m.Process)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemDebugProcessesTypeProcessList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: process_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: process_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Pid = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkdsdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkdsdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &SystemDebugProcessesTypeProcessListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkdsdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SystemDebugProcessesTypeProcessListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Pid = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkdsdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkdsdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StartTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Uptime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Uptime = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageUser", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CpuUsageUser = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsageSystem", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CpuUsageSystem = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUtilization", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CpuUtilization = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryUsage", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemoryUsage = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryUtilization", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemoryUtilization = &v + default: + iNdEx = preIndex + skippy, err := skipJkdsdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkdsdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJkdsdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkdsdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJkdsdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJkdsdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJkdsdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJkdsdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJkdsdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJkdsdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jkdsd_oc.proto b/schema/jkdsd_oc.proto new file mode 100755 index 0000000..422fd64 --- /dev/null +++ b/schema/jkdsd_oc.proto @@ -0,0 +1,29 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional system_debug jnpr_system_debug_ext = 106; +} + +message system_debug { + optional processes_type processes = 151; + message processes_type { + message process_list { + optional uint64 pid = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint64 pid = 51; + optional string name = 52; + optional uint64 start_time = 53; + optional uint64 uptime = 54; + optional uint64 cpu_usage_user = 55; + optional uint64 cpu_usage_system = 56; + optional uint32 cpu_utilization = 57; + optional uint64 memory_usage = 58; + optional uint32 memory_utilization = 59; + } + } + repeated process_list process = 151; + } +} diff --git a/schema/jkhmd_oc.pb.go b/schema/jkhmd_oc.pb.go new file mode 100644 index 0000000..cd8ee34 --- /dev/null +++ b/schema/jkhmd_oc.pb.go @@ -0,0 +1,8490 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jkhmd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosKernelHealth struct { + Chassis *JunosKernelHealthChassisType `protobuf:"bytes,191,opt,name=chassis" json:"chassis,omitempty"` + RoutingOptions *JunosKernelHealthRoutingOptionsType `protobuf:"bytes,509,opt,name=routing_options,json=routingOptions" json:"routing_options,omitempty"` + Security *JunosKernelHealthSecurityType `protobuf:"bytes,183,opt,name=security" json:"security,omitempty"` + Kernel *JunosKernelHealthKernelType `protobuf:"bytes,192,opt,name=kernel" json:"kernel,omitempty"` + KernelIfstate *JunosKernelHealthKernelIfstateType `protobuf:"bytes,186,opt,name=kernel_ifstate,json=kernelIfstate" json:"kernel_ifstate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealth) Reset() { *m = JunosKernelHealth{} } +func (m *JunosKernelHealth) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealth) ProtoMessage() {} +func (*JunosKernelHealth) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0} +} +func (m *JunosKernelHealth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealth.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealth) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealth.Merge(m, src) +} +func (m *JunosKernelHealth) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealth) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealth.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealth proto.InternalMessageInfo + +func (m *JunosKernelHealth) GetChassis() *JunosKernelHealthChassisType { + if m != nil { + return m.Chassis + } + return nil +} + +func (m *JunosKernelHealth) GetRoutingOptions() *JunosKernelHealthRoutingOptionsType { + if m != nil { + return m.RoutingOptions + } + return nil +} + +func (m *JunosKernelHealth) GetSecurity() *JunosKernelHealthSecurityType { + if m != nil { + return m.Security + } + return nil +} + +func (m *JunosKernelHealth) GetKernel() *JunosKernelHealthKernelType { + if m != nil { + return m.Kernel + } + return nil +} + +func (m *JunosKernelHealth) GetKernelIfstate() *JunosKernelHealthKernelIfstateType { + if m != nil { + return m.KernelIfstate + } + return nil +} + +type JunosKernelHealthChassisType struct { + Gres *JunosKernelHealthChassisTypeGresType `protobuf:"bytes,181,opt,name=gres" json:"gres,omitempty"` + Issu *JunosKernelHealthChassisTypeIssuType `protobuf:"bytes,182,opt,name=issu" json:"issu,omitempty"` + AggregatedDevices *JunosKernelHealthChassisTypeAggregatedDevicesType `protobuf:"bytes,351,opt,name=aggregated_devices,json=aggregatedDevices" json:"aggregated_devices,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthChassisType) Reset() { *m = JunosKernelHealthChassisType{} } +func (m *JunosKernelHealthChassisType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthChassisType) ProtoMessage() {} +func (*JunosKernelHealthChassisType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 0} +} +func (m *JunosKernelHealthChassisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthChassisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthChassisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthChassisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthChassisType.Merge(m, src) +} +func (m *JunosKernelHealthChassisType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthChassisType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthChassisType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthChassisType proto.InternalMessageInfo + +func (m *JunosKernelHealthChassisType) GetGres() *JunosKernelHealthChassisTypeGresType { + if m != nil { + return m.Gres + } + return nil +} + +func (m *JunosKernelHealthChassisType) GetIssu() *JunosKernelHealthChassisTypeIssuType { + if m != nil { + return m.Issu + } + return nil +} + +func (m *JunosKernelHealthChassisType) GetAggregatedDevices() *JunosKernelHealthChassisTypeAggregatedDevicesType { + if m != nil { + return m.AggregatedDevices + } + return nil +} + +type JunosKernelHealthChassisTypeGresType struct { + GresTime *uint64 `protobuf:"varint,51,opt,name=gres_time,json=gresTime" json:"gres_time,omitempty"` + SlaveConnectTime *uint64 `protobuf:"varint,52,opt,name=slave_connect_time,json=slaveConnectTime" json:"slave_connect_time,omitempty"` + ConfiguredState *string `protobuf:"bytes,53,opt,name=configured_state,json=configuredState" json:"configured_state,omitempty"` + MasterKernelReady *string `protobuf:"bytes,54,opt,name=master_kernel_ready,json=masterKernelReady" json:"master_kernel_ready,omitempty"` + SlaveKernelReady *string `protobuf:"bytes,55,opt,name=slave_kernel_ready,json=slaveKernelReady" json:"slave_kernel_ready,omitempty"` + ErrorState *string `protobuf:"bytes,56,opt,name=error_state,json=errorState" json:"error_state,omitempty"` + OtherRePresent *string `protobuf:"bytes,151,opt,name=other_re_present,json=otherRePresent" json:"other_re_present,omitempty"` + OtherReAlive *string `protobuf:"bytes,152,opt,name=other_re_alive,json=otherReAlive" json:"other_re_alive,omitempty"` + IsProtocolMaster *string `protobuf:"bytes,165,opt,name=is_protocol_master,json=isProtocolMaster" json:"is_protocol_master,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthChassisTypeGresType) Reset() { *m = JunosKernelHealthChassisTypeGresType{} } +func (m *JunosKernelHealthChassisTypeGresType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthChassisTypeGresType) ProtoMessage() {} +func (*JunosKernelHealthChassisTypeGresType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 0, 0} +} +func (m *JunosKernelHealthChassisTypeGresType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthChassisTypeGresType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthChassisTypeGresType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthChassisTypeGresType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthChassisTypeGresType.Merge(m, src) +} +func (m *JunosKernelHealthChassisTypeGresType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthChassisTypeGresType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthChassisTypeGresType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthChassisTypeGresType proto.InternalMessageInfo + +func (m *JunosKernelHealthChassisTypeGresType) GetGresTime() uint64 { + if m != nil && m.GresTime != nil { + return *m.GresTime + } + return 0 +} + +func (m *JunosKernelHealthChassisTypeGresType) GetSlaveConnectTime() uint64 { + if m != nil && m.SlaveConnectTime != nil { + return *m.SlaveConnectTime + } + return 0 +} + +func (m *JunosKernelHealthChassisTypeGresType) GetConfiguredState() string { + if m != nil && m.ConfiguredState != nil { + return *m.ConfiguredState + } + return "" +} + +func (m *JunosKernelHealthChassisTypeGresType) GetMasterKernelReady() string { + if m != nil && m.MasterKernelReady != nil { + return *m.MasterKernelReady + } + return "" +} + +func (m *JunosKernelHealthChassisTypeGresType) GetSlaveKernelReady() string { + if m != nil && m.SlaveKernelReady != nil { + return *m.SlaveKernelReady + } + return "" +} + +func (m *JunosKernelHealthChassisTypeGresType) GetErrorState() string { + if m != nil && m.ErrorState != nil { + return *m.ErrorState + } + return "" +} + +func (m *JunosKernelHealthChassisTypeGresType) GetOtherRePresent() string { + if m != nil && m.OtherRePresent != nil { + return *m.OtherRePresent + } + return "" +} + +func (m *JunosKernelHealthChassisTypeGresType) GetOtherReAlive() string { + if m != nil && m.OtherReAlive != nil { + return *m.OtherReAlive + } + return "" +} + +func (m *JunosKernelHealthChassisTypeGresType) GetIsProtocolMaster() string { + if m != nil && m.IsProtocolMaster != nil { + return *m.IsProtocolMaster + } + return "" +} + +type JunosKernelHealthChassisTypeIssuType struct { + FailureStage *string `protobuf:"bytes,51,opt,name=failure_stage,json=failureStage" json:"failure_stage,omitempty"` + CurrentIssuStage *string `protobuf:"bytes,52,opt,name=current_issu_stage,json=currentIssuStage" json:"current_issu_stage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthChassisTypeIssuType) Reset() { *m = JunosKernelHealthChassisTypeIssuType{} } +func (m *JunosKernelHealthChassisTypeIssuType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthChassisTypeIssuType) ProtoMessage() {} +func (*JunosKernelHealthChassisTypeIssuType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 0, 1} +} +func (m *JunosKernelHealthChassisTypeIssuType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthChassisTypeIssuType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthChassisTypeIssuType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthChassisTypeIssuType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthChassisTypeIssuType.Merge(m, src) +} +func (m *JunosKernelHealthChassisTypeIssuType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthChassisTypeIssuType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthChassisTypeIssuType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthChassisTypeIssuType proto.InternalMessageInfo + +func (m *JunosKernelHealthChassisTypeIssuType) GetFailureStage() string { + if m != nil && m.FailureStage != nil { + return *m.FailureStage + } + return "" +} + +func (m *JunosKernelHealthChassisTypeIssuType) GetCurrentIssuStage() string { + if m != nil && m.CurrentIssuStage != nil { + return *m.CurrentIssuStage + } + return "" +} + +type JunosKernelHealthChassisTypeAggregatedDevicesType struct { + PsLtUnstackCnt *uint32 `protobuf:"varint,311,opt,name=ps_lt_unstack_cnt,json=psLtUnstackCnt" json:"ps_lt_unstack_cnt,omitempty"` + PsIflCccDownCnt *uint32 `protobuf:"varint,312,opt,name=ps_ifl_ccc_down_cnt,json=psIflCccDownCnt" json:"ps_ifl_ccc_down_cnt,omitempty"` + RltLpLinkDownCnt *uint32 `protobuf:"varint,313,opt,name=rlt_lp_link_down_cnt,json=rltLpLinkDownCnt" json:"rlt_lp_link_down_cnt,omitempty"` + AeUnstackCnt *uint32 `protobuf:"varint,314,opt,name=ae_unstack_cnt,json=aeUnstackCnt" json:"ae_unstack_cnt,omitempty"` + AeLpLinkDownCnt *uint32 `protobuf:"varint,315,opt,name=ae_lp_link_down_cnt,json=aeLpLinkDownCnt" json:"ae_lp_link_down_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) Reset() { + *m = JunosKernelHealthChassisTypeAggregatedDevicesType{} +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthChassisTypeAggregatedDevicesType) ProtoMessage() {} +func (*JunosKernelHealthChassisTypeAggregatedDevicesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 0, 2} +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthChassisTypeAggregatedDevicesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthChassisTypeAggregatedDevicesType.Merge(m, src) +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthChassisTypeAggregatedDevicesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthChassisTypeAggregatedDevicesType proto.InternalMessageInfo + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) GetPsLtUnstackCnt() uint32 { + if m != nil && m.PsLtUnstackCnt != nil { + return *m.PsLtUnstackCnt + } + return 0 +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) GetPsIflCccDownCnt() uint32 { + if m != nil && m.PsIflCccDownCnt != nil { + return *m.PsIflCccDownCnt + } + return 0 +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) GetRltLpLinkDownCnt() uint32 { + if m != nil && m.RltLpLinkDownCnt != nil { + return *m.RltLpLinkDownCnt + } + return 0 +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) GetAeUnstackCnt() uint32 { + if m != nil && m.AeUnstackCnt != nil { + return *m.AeUnstackCnt + } + return 0 +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) GetAeLpLinkDownCnt() uint32 { + if m != nil && m.AeLpLinkDownCnt != nil { + return *m.AeLpLinkDownCnt + } + return 0 +} + +type JunosKernelHealthRoutingOptionsType struct { + NonstopRouting *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType `protobuf:"bytes,510,opt,name=nonstop_routing,json=nonstopRouting" json:"nonstop_routing,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthRoutingOptionsType) Reset() { *m = JunosKernelHealthRoutingOptionsType{} } +func (m *JunosKernelHealthRoutingOptionsType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthRoutingOptionsType) ProtoMessage() {} +func (*JunosKernelHealthRoutingOptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 1} +} +func (m *JunosKernelHealthRoutingOptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthRoutingOptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthRoutingOptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthRoutingOptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthRoutingOptionsType.Merge(m, src) +} +func (m *JunosKernelHealthRoutingOptionsType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthRoutingOptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthRoutingOptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthRoutingOptionsType proto.InternalMessageInfo + +func (m *JunosKernelHealthRoutingOptionsType) GetNonstopRouting() *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType { + if m != nil { + return m.NonstopRouting + } + return nil +} + +type JunosKernelHealthRoutingOptionsTypeNonstopRoutingType struct { + JsrSplitFailureCnt *uint32 `protobuf:"varint,506,opt,name=jsr_split_failure_cnt,json=jsrSplitFailureCnt" json:"jsr_split_failure_cnt,omitempty"` + JsrMergeFailureCnt *uint32 `protobuf:"varint,507,opt,name=jsr_merge_failure_cnt,json=jsrMergeFailureCnt" json:"jsr_merge_failure_cnt,omitempty"` + JsrPrlQueueFullCnt *uint32 `protobuf:"varint,508,opt,name=jsr_prl_queue_full_cnt,json=jsrPrlQueueFullCnt" json:"jsr_prl_queue_full_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) Reset() { + *m = JunosKernelHealthRoutingOptionsTypeNonstopRoutingType{} +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) ProtoMessage() {} +func (*JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 1, 0} +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthRoutingOptionsTypeNonstopRoutingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthRoutingOptionsTypeNonstopRoutingType.Merge(m, src) +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthRoutingOptionsTypeNonstopRoutingType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthRoutingOptionsTypeNonstopRoutingType proto.InternalMessageInfo + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) GetJsrSplitFailureCnt() uint32 { + if m != nil && m.JsrSplitFailureCnt != nil { + return *m.JsrSplitFailureCnt + } + return 0 +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) GetJsrMergeFailureCnt() uint32 { + if m != nil && m.JsrMergeFailureCnt != nil { + return *m.JsrMergeFailureCnt + } + return 0 +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) GetJsrPrlQueueFullCnt() uint32 { + if m != nil && m.JsrPrlQueueFullCnt != nil { + return *m.JsrPrlQueueFullCnt + } + return 0 +} + +type JunosKernelHealthSecurityType struct { + VeriexecState *string `protobuf:"bytes,51,opt,name=veriexec_state,json=veriexecState" json:"veriexec_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthSecurityType) Reset() { *m = JunosKernelHealthSecurityType{} } +func (m *JunosKernelHealthSecurityType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthSecurityType) ProtoMessage() {} +func (*JunosKernelHealthSecurityType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 2} +} +func (m *JunosKernelHealthSecurityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthSecurityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthSecurityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthSecurityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthSecurityType.Merge(m, src) +} +func (m *JunosKernelHealthSecurityType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthSecurityType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthSecurityType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthSecurityType proto.InternalMessageInfo + +func (m *JunosKernelHealthSecurityType) GetVeriexecState() string { + if m != nil && m.VeriexecState != nil { + return *m.VeriexecState + } + return "" +} + +type JunosKernelHealthKernelType struct { + PeerInfra *JunosKernelHealthKernelTypePeerInfraType `protobuf:"bytes,184,opt,name=peer_infra,json=peerInfra" json:"peer_infra,omitempty"` + Vpls *JunosKernelHealthKernelTypeVplsType `protobuf:"bytes,201,opt,name=vpls" json:"vpls,omitempty"` + Tunnel *JunosKernelHealthKernelTypeTunnelType `protobuf:"bytes,202,opt,name=tunnel" json:"tunnel,omitempty"` + Multicast *JunosKernelHealthKernelTypeMulticastType `protobuf:"bytes,203,opt,name=multicast" json:"multicast,omitempty"` + Tnp *JunosKernelHealthKernelTypeTnpType `protobuf:"bytes,225,opt,name=tnp" json:"tnp,omitempty"` + RecordMetaData *JunosKernelHealthKernelTypeRecordMetaDataType `protobuf:"bytes,185,opt,name=record_meta_data,json=recordMetaData" json:"record_meta_data,omitempty"` + Rtsock *JunosKernelHealthKernelTypeRtsockType `protobuf:"bytes,153,opt,name=rtsock" json:"rtsock,omitempty"` + Tcpip *JunosKernelHealthKernelTypeTcpipType `protobuf:"bytes,598,opt,name=tcpip" json:"tcpip,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelType) Reset() { *m = JunosKernelHealthKernelType{} } +func (m *JunosKernelHealthKernelType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelType) ProtoMessage() {} +func (*JunosKernelHealthKernelType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3} +} +func (m *JunosKernelHealthKernelType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelType.Merge(m, src) +} +func (m *JunosKernelHealthKernelType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelType) GetPeerInfra() *JunosKernelHealthKernelTypePeerInfraType { + if m != nil { + return m.PeerInfra + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetVpls() *JunosKernelHealthKernelTypeVplsType { + if m != nil { + return m.Vpls + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetTunnel() *JunosKernelHealthKernelTypeTunnelType { + if m != nil { + return m.Tunnel + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetMulticast() *JunosKernelHealthKernelTypeMulticastType { + if m != nil { + return m.Multicast + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetTnp() *JunosKernelHealthKernelTypeTnpType { + if m != nil { + return m.Tnp + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetRecordMetaData() *JunosKernelHealthKernelTypeRecordMetaDataType { + if m != nil { + return m.RecordMetaData + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetRtsock() *JunosKernelHealthKernelTypeRtsockType { + if m != nil { + return m.Rtsock + } + return nil +} + +func (m *JunosKernelHealthKernelType) GetTcpip() *JunosKernelHealthKernelTypeTcpipType { + if m != nil { + return m.Tcpip + } + return nil +} + +type JunosKernelHealthKernelTypePeerInfraType struct { + PeerPfemanConnDrops *uint32 `protobuf:"varint,51,opt,name=peer_pfeman_conn_drops,json=peerPfemanConnDrops" json:"peer_pfeman_conn_drops,omitempty"` + SpuriousPptWkups *uint32 `protobuf:"varint,52,opt,name=spurious_ppt_wkups,json=spuriousPptWkups" json:"spurious_ppt_wkups,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypePeerInfraType) Reset() { + *m = JunosKernelHealthKernelTypePeerInfraType{} +} +func (m *JunosKernelHealthKernelTypePeerInfraType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypePeerInfraType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypePeerInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 0} +} +func (m *JunosKernelHealthKernelTypePeerInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypePeerInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypePeerInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypePeerInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypePeerInfraType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypePeerInfraType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypePeerInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypePeerInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypePeerInfraType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypePeerInfraType) GetPeerPfemanConnDrops() uint32 { + if m != nil && m.PeerPfemanConnDrops != nil { + return *m.PeerPfemanConnDrops + } + return 0 +} + +func (m *JunosKernelHealthKernelTypePeerInfraType) GetSpuriousPptWkups() uint32 { + if m != nil && m.SpuriousPptWkups != nil { + return *m.SpuriousPptWkups + } + return 0 +} + +type JunosKernelHealthKernelTypeVplsType struct { + UnicastTokenCnt *uint32 `protobuf:"varint,213,opt,name=unicast_token_cnt,json=unicastTokenCnt" json:"unicast_token_cnt,omitempty"` + UnicastTokenMax *uint32 `protobuf:"varint,214,opt,name=unicast_token_max,json=unicastTokenMax" json:"unicast_token_max,omitempty"` + FloodTokenCnt *uint32 `protobuf:"varint,215,opt,name=flood_token_cnt,json=floodTokenCnt" json:"flood_token_cnt,omitempty"` + FloodTokenMax *uint32 `protobuf:"varint,216,opt,name=flood_token_max,json=floodTokenMax" json:"flood_token_max,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeVplsType) Reset() { *m = JunosKernelHealthKernelTypeVplsType{} } +func (m *JunosKernelHealthKernelTypeVplsType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypeVplsType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeVplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 1} +} +func (m *JunosKernelHealthKernelTypeVplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeVplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeVplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeVplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeVplsType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeVplsType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeVplsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeVplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeVplsType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeVplsType) GetUnicastTokenCnt() uint32 { + if m != nil && m.UnicastTokenCnt != nil { + return *m.UnicastTokenCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeVplsType) GetUnicastTokenMax() uint32 { + if m != nil && m.UnicastTokenMax != nil { + return *m.UnicastTokenMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeVplsType) GetFloodTokenCnt() uint32 { + if m != nil && m.FloodTokenCnt != nil { + return *m.FloodTokenCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeVplsType) GetFloodTokenMax() uint32 { + if m != nil && m.FloodTokenMax != nil { + return *m.FloodTokenMax + } + return 0 +} + +type JunosKernelHealthKernelTypeTunnelType struct { + RpfTunnelidCnt *uint32 `protobuf:"varint,217,opt,name=rpf_tunnelid_cnt,json=rpfTunnelidCnt" json:"rpf_tunnelid_cnt,omitempty"` + RpfTunnelidMax *uint32 `protobuf:"varint,218,opt,name=rpf_tunnelid_max,json=rpfTunnelidMax" json:"rpf_tunnelid_max,omitempty"` + NonrpfTunnelidCnt *uint32 `protobuf:"varint,219,opt,name=nonrpf_tunnelid_cnt,json=nonrpfTunnelidCnt" json:"nonrpf_tunnelid_cnt,omitempty"` + NonrpfTunnelidMax *uint32 `protobuf:"varint,220,opt,name=nonrpf_tunnelid_max,json=nonrpfTunnelidMax" json:"nonrpf_tunnelid_max,omitempty"` + LoopedCnt *uint32 `protobuf:"varint,221,opt,name=looped_cnt,json=loopedCnt" json:"looped_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTunnelType) Reset() { *m = JunosKernelHealthKernelTypeTunnelType{} } +func (m *JunosKernelHealthKernelTypeTunnelType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypeTunnelType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTunnelType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 2} +} +func (m *JunosKernelHealthKernelTypeTunnelType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTunnelType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTunnelType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTunnelType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTunnelType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTunnelType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTunnelType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTunnelType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTunnelType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTunnelType) GetRpfTunnelidCnt() uint32 { + if m != nil && m.RpfTunnelidCnt != nil { + return *m.RpfTunnelidCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTunnelType) GetRpfTunnelidMax() uint32 { + if m != nil && m.RpfTunnelidMax != nil { + return *m.RpfTunnelidMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTunnelType) GetNonrpfTunnelidCnt() uint32 { + if m != nil && m.NonrpfTunnelidCnt != nil { + return *m.NonrpfTunnelidCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTunnelType) GetNonrpfTunnelidMax() uint32 { + if m != nil && m.NonrpfTunnelidMax != nil { + return *m.NonrpfTunnelidMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTunnelType) GetLoopedCnt() uint32 { + if m != nil && m.LoopedCnt != nil { + return *m.LoopedCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeMulticastType struct { + IifmismatchErrCnt *uint64 `protobuf:"varint,222,opt,name=iifmismatch_err_cnt,json=iifmismatchErrCnt" json:"iifmismatch_err_cnt,omitempty"` + RslvReqErrCnt *uint64 `protobuf:"varint,223,opt,name=rslv_req_err_cnt,json=rslvReqErrCnt" json:"rslv_req_err_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeMulticastType) Reset() { + *m = JunosKernelHealthKernelTypeMulticastType{} +} +func (m *JunosKernelHealthKernelTypeMulticastType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypeMulticastType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeMulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 3} +} +func (m *JunosKernelHealthKernelTypeMulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeMulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeMulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeMulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeMulticastType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeMulticastType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeMulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeMulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeMulticastType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeMulticastType) GetIifmismatchErrCnt() uint64 { + if m != nil && m.IifmismatchErrCnt != nil { + return *m.IifmismatchErrCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeMulticastType) GetRslvReqErrCnt() uint64 { + if m != nil && m.RslvReqErrCnt != nil { + return *m.RslvReqErrCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeTnpType struct { + TnpHelloDropCnt *uint64 `protobuf:"varint,211,opt,name=tnp_hello_drop_cnt,json=tnpHelloDropCnt" json:"tnp_hello_drop_cnt,omitempty"` + TnpFragDropCnt *uint64 `protobuf:"varint,212,opt,name=tnp_frag_drop_cnt,json=tnpFragDropCnt" json:"tnp_frag_drop_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTnpType) Reset() { *m = JunosKernelHealthKernelTypeTnpType{} } +func (m *JunosKernelHealthKernelTypeTnpType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypeTnpType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTnpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 4} +} +func (m *JunosKernelHealthKernelTypeTnpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTnpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTnpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTnpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTnpType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTnpType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTnpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTnpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTnpType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTnpType) GetTnpHelloDropCnt() uint64 { + if m != nil && m.TnpHelloDropCnt != nil { + return *m.TnpHelloDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTnpType) GetTnpFragDropCnt() uint64 { + if m != nil && m.TnpFragDropCnt != nil { + return *m.TnpFragDropCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeRecordMetaDataType struct { + RecordTime *uint64 `protobuf:"varint,51,opt,name=record_time,json=recordTime" json:"record_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) Reset() { + *m = JunosKernelHealthKernelTypeRecordMetaDataType{} +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeRecordMetaDataType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeRecordMetaDataType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 5} +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeRecordMetaDataType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeRecordMetaDataType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeRecordMetaDataType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeRecordMetaDataType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) GetRecordTime() uint64 { + if m != nil && m.RecordTime != nil { + return *m.RecordTime + } + return 0 +} + +type JunosKernelHealthKernelTypeRtsockType struct { + TotalVetoCnt *uint64 `protobuf:"varint,148,opt,name=total_veto_cnt,json=totalVetoCnt" json:"total_veto_cnt,omitempty"` + TotalErrorCnt *uint64 `protobuf:"varint,149,opt,name=total_error_cnt,json=totalErrorCnt" json:"total_error_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeRtsockType) Reset() { *m = JunosKernelHealthKernelTypeRtsockType{} } +func (m *JunosKernelHealthKernelTypeRtsockType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypeRtsockType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeRtsockType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 6} +} +func (m *JunosKernelHealthKernelTypeRtsockType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeRtsockType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeRtsockType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeRtsockType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeRtsockType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeRtsockType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeRtsockType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeRtsockType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeRtsockType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeRtsockType) GetTotalVetoCnt() uint64 { + if m != nil && m.TotalVetoCnt != nil { + return *m.TotalVetoCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeRtsockType) GetTotalErrorCnt() uint64 { + if m != nil && m.TotalErrorCnt != nil { + return *m.TotalErrorCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeTcpipType struct { + Tcp *JunosKernelHealthKernelTypeTcpipTypeTcpType `protobuf:"bytes,511,opt,name=tcp" json:"tcp,omitempty"` + Nhidx *JunosKernelHealthKernelTypeTcpipTypeNhidxType `protobuf:"bytes,593,opt,name=nhidx" json:"nhidx,omitempty"` + Rtb *JunosKernelHealthKernelTypeTcpipTypeRtbType `protobuf:"bytes,594,opt,name=rtb" json:"rtb,omitempty"` + Arp *JunosKernelHealthKernelTypeTcpipTypeArpType `protobuf:"bytes,595,opt,name=arp" json:"arp,omitempty"` + Ndp *JunosKernelHealthKernelTypeTcpipTypeNdpType `protobuf:"bytes,596,opt,name=ndp" json:"ndp,omitempty"` + Netisr *JunosKernelHealthKernelTypeTcpipTypeNetisrType `protobuf:"bytes,597,opt,name=netisr" json:"netisr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipType) Reset() { *m = JunosKernelHealthKernelTypeTcpipType{} } +func (m *JunosKernelHealthKernelTypeTcpipType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelTypeTcpipType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7} +} +func (m *JunosKernelHealthKernelTypeTcpipType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipType) GetTcp() *JunosKernelHealthKernelTypeTcpipTypeTcpType { + if m != nil { + return m.Tcp + } + return nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) GetNhidx() *JunosKernelHealthKernelTypeTcpipTypeNhidxType { + if m != nil { + return m.Nhidx + } + return nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) GetRtb() *JunosKernelHealthKernelTypeTcpipTypeRtbType { + if m != nil { + return m.Rtb + } + return nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) GetArp() *JunosKernelHealthKernelTypeTcpipTypeArpType { + if m != nil { + return m.Arp + } + return nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) GetNdp() *JunosKernelHealthKernelTypeTcpipTypeNdpType { + if m != nil { + return m.Ndp + } + return nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) GetNetisr() *JunosKernelHealthKernelTypeTcpipTypeNetisrType { + if m != nil { + return m.Netisr + } + return nil +} + +type JunosKernelHealthKernelTypeTcpipTypeTcpType struct { + TcpDdosAttackCnt *uint32 `protobuf:"varint,502,opt,name=tcp_ddos_attack_cnt,json=tcpDdosAttackCnt" json:"tcp_ddos_attack_cnt,omitempty"` + TcpConndropsCnt *uint32 `protobuf:"varint,503,opt,name=tcp_conndrops_cnt,json=tcpConndropsCnt" json:"tcp_conndrops_cnt,omitempty"` + TcpTimeWaitConn *uint64 `protobuf:"varint,504,opt,name=tcp_time_wait_conn,json=tcpTimeWaitConn" json:"tcp_time_wait_conn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) Reset() { + *m = JunosKernelHealthKernelTypeTcpipTypeTcpType{} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeTcpipTypeTcpType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipTypeTcpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7, 0} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeTcpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeTcpType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeTcpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeTcpType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) GetTcpDdosAttackCnt() uint32 { + if m != nil && m.TcpDdosAttackCnt != nil { + return *m.TcpDdosAttackCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) GetTcpConndropsCnt() uint32 { + if m != nil && m.TcpConndropsCnt != nil { + return *m.TcpConndropsCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) GetTcpTimeWaitConn() uint64 { + if m != nil && m.TcpTimeWaitConn != nil { + return *m.TcpTimeWaitConn + } + return 0 +} + +type JunosKernelHealthKernelTypeTcpipTypeNhidxType struct { + NexthopPubMax *uint32 `protobuf:"varint,401,opt,name=nexthop_pub_max,json=nexthopPubMax" json:"nexthop_pub_max,omitempty"` + NexthopPrivMax *uint32 `protobuf:"varint,402,opt,name=nexthop_priv_max,json=nexthopPrivMax" json:"nexthop_priv_max,omitempty"` + NexthopPubCnt *uint32 `protobuf:"varint,403,opt,name=nexthop_pub_cnt,json=nexthopPubCnt" json:"nexthop_pub_cnt,omitempty"` + NexthopPrivCnt *uint32 `protobuf:"varint,404,opt,name=nexthop_priv_cnt,json=nexthopPrivCnt" json:"nexthop_priv_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) Reset() { + *m = JunosKernelHealthKernelTypeTcpipTypeNhidxType{} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeTcpipTypeNhidxType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipTypeNhidxType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7, 1} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNhidxType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNhidxType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNhidxType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNhidxType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) GetNexthopPubMax() uint32 { + if m != nil && m.NexthopPubMax != nil { + return *m.NexthopPubMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) GetNexthopPrivMax() uint32 { + if m != nil && m.NexthopPrivMax != nil { + return *m.NexthopPrivMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) GetNexthopPubCnt() uint32 { + if m != nil && m.NexthopPubCnt != nil { + return *m.NexthopPubCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) GetNexthopPrivCnt() uint32 { + if m != nil && m.NexthopPrivCnt != nil { + return *m.NexthopPrivCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeTcpipTypeRtbType struct { + RouteCloneMax *uint32 `protobuf:"varint,405,opt,name=route_clone_max,json=routeCloneMax" json:"route_clone_max,omitempty"` + RouteCloneCnt *uint32 `protobuf:"varint,406,opt,name=route_clone_cnt,json=routeCloneCnt" json:"route_clone_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) Reset() { + *m = JunosKernelHealthKernelTypeTcpipTypeRtbType{} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeTcpipTypeRtbType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipTypeRtbType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7, 2} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeRtbType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeRtbType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeRtbType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeRtbType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) GetRouteCloneMax() uint32 { + if m != nil && m.RouteCloneMax != nil { + return *m.RouteCloneMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) GetRouteCloneCnt() uint32 { + if m != nil && m.RouteCloneCnt != nil { + return *m.RouteCloneCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeTcpipTypeArpType struct { + NbrcacheIriMax *uint32 `protobuf:"varint,407,opt,name=nbrcache_iri_max,json=nbrcacheIriMax" json:"nbrcache_iri_max,omitempty"` + NbrcacheMgmtMax *uint32 `protobuf:"varint,408,opt,name=nbrcache_mgmt_max,json=nbrcacheMgmtMax" json:"nbrcache_mgmt_max,omitempty"` + NbrcachePublicMax *uint32 `protobuf:"varint,409,opt,name=nbrcache_public_max,json=nbrcachePublicMax" json:"nbrcache_public_max,omitempty"` + NbrcacheIriCnt *uint32 `protobuf:"varint,410,opt,name=nbrcache_iri_cnt,json=nbrcacheIriCnt" json:"nbrcache_iri_cnt,omitempty"` + NbrcacheMgmtCnt *uint32 `protobuf:"varint,411,opt,name=nbrcache_mgmt_cnt,json=nbrcacheMgmtCnt" json:"nbrcache_mgmt_cnt,omitempty"` + NbrcachePublicCnt *uint32 `protobuf:"varint,412,opt,name=nbrcache_public_cnt,json=nbrcachePublicCnt" json:"nbrcache_public_cnt,omitempty"` + NbrcacheIriDropCnt *uint32 `protobuf:"varint,413,opt,name=nbrcache_iri_drop_cnt,json=nbrcacheIriDropCnt" json:"nbrcache_iri_drop_cnt,omitempty"` + NbrcacheMgmtDropCnt *uint32 `protobuf:"varint,414,opt,name=nbrcache_mgmt_drop_cnt,json=nbrcacheMgmtDropCnt" json:"nbrcache_mgmt_drop_cnt,omitempty"` + NbrcachePublicDropCnt *uint32 `protobuf:"varint,415,opt,name=nbrcache_public_drop_cnt,json=nbrcachePublicDropCnt" json:"nbrcache_public_drop_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) Reset() { + *m = JunosKernelHealthKernelTypeTcpipTypeArpType{} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeTcpipTypeArpType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipTypeArpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7, 3} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeArpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeArpType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeArpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeArpType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcacheIriMax() uint32 { + if m != nil && m.NbrcacheIriMax != nil { + return *m.NbrcacheIriMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcacheMgmtMax() uint32 { + if m != nil && m.NbrcacheMgmtMax != nil { + return *m.NbrcacheMgmtMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcachePublicMax() uint32 { + if m != nil && m.NbrcachePublicMax != nil { + return *m.NbrcachePublicMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcacheIriCnt() uint32 { + if m != nil && m.NbrcacheIriCnt != nil { + return *m.NbrcacheIriCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcacheMgmtCnt() uint32 { + if m != nil && m.NbrcacheMgmtCnt != nil { + return *m.NbrcacheMgmtCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcachePublicCnt() uint32 { + if m != nil && m.NbrcachePublicCnt != nil { + return *m.NbrcachePublicCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcacheIriDropCnt() uint32 { + if m != nil && m.NbrcacheIriDropCnt != nil { + return *m.NbrcacheIriDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcacheMgmtDropCnt() uint32 { + if m != nil && m.NbrcacheMgmtDropCnt != nil { + return *m.NbrcacheMgmtDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) GetNbrcachePublicDropCnt() uint32 { + if m != nil && m.NbrcachePublicDropCnt != nil { + return *m.NbrcachePublicDropCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeTcpipTypeNdpType struct { + NbrcacheIriMax *uint32 `protobuf:"varint,416,opt,name=nbrcache_iri_max,json=nbrcacheIriMax" json:"nbrcache_iri_max,omitempty"` + NbrcacheMgmtMax *uint32 `protobuf:"varint,417,opt,name=nbrcache_mgmt_max,json=nbrcacheMgmtMax" json:"nbrcache_mgmt_max,omitempty"` + NbrcachePublicMax *uint32 `protobuf:"varint,418,opt,name=nbrcache_public_max,json=nbrcachePublicMax" json:"nbrcache_public_max,omitempty"` + NbrcacheIriCnt *uint32 `protobuf:"varint,419,opt,name=nbrcache_iri_cnt,json=nbrcacheIriCnt" json:"nbrcache_iri_cnt,omitempty"` + NbrcacheMgmtCnt *uint32 `protobuf:"varint,420,opt,name=nbrcache_mgmt_cnt,json=nbrcacheMgmtCnt" json:"nbrcache_mgmt_cnt,omitempty"` + NbrcachePublicCnt *uint32 `protobuf:"varint,421,opt,name=nbrcache_public_cnt,json=nbrcachePublicCnt" json:"nbrcache_public_cnt,omitempty"` + NbrcacheIriDropCnt *uint32 `protobuf:"varint,422,opt,name=nbrcache_iri_drop_cnt,json=nbrcacheIriDropCnt" json:"nbrcache_iri_drop_cnt,omitempty"` + NbrcacheMgmtDropCnt *uint32 `protobuf:"varint,423,opt,name=nbrcache_mgmt_drop_cnt,json=nbrcacheMgmtDropCnt" json:"nbrcache_mgmt_drop_cnt,omitempty"` + NbrcachePublicDropCnt *uint32 `protobuf:"varint,424,opt,name=nbrcache_public_drop_cnt,json=nbrcachePublicDropCnt" json:"nbrcache_public_drop_cnt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) Reset() { + *m = JunosKernelHealthKernelTypeTcpipTypeNdpType{} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeTcpipTypeNdpType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipTypeNdpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7, 4} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNdpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNdpType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNdpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNdpType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcacheIriMax() uint32 { + if m != nil && m.NbrcacheIriMax != nil { + return *m.NbrcacheIriMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcacheMgmtMax() uint32 { + if m != nil && m.NbrcacheMgmtMax != nil { + return *m.NbrcacheMgmtMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcachePublicMax() uint32 { + if m != nil && m.NbrcachePublicMax != nil { + return *m.NbrcachePublicMax + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcacheIriCnt() uint32 { + if m != nil && m.NbrcacheIriCnt != nil { + return *m.NbrcacheIriCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcacheMgmtCnt() uint32 { + if m != nil && m.NbrcacheMgmtCnt != nil { + return *m.NbrcacheMgmtCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcachePublicCnt() uint32 { + if m != nil && m.NbrcachePublicCnt != nil { + return *m.NbrcachePublicCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcacheIriDropCnt() uint32 { + if m != nil && m.NbrcacheIriDropCnt != nil { + return *m.NbrcacheIriDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcacheMgmtDropCnt() uint32 { + if m != nil && m.NbrcacheMgmtDropCnt != nil { + return *m.NbrcacheMgmtDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) GetNbrcachePublicDropCnt() uint32 { + if m != nil && m.NbrcachePublicDropCnt != nil { + return *m.NbrcachePublicDropCnt + } + return 0 +} + +type JunosKernelHealthKernelTypeTcpipTypeNetisrType struct { + EtherWmCnt *uint32 `protobuf:"varint,425,opt,name=ether_wm_cnt,json=etherWmCnt" json:"ether_wm_cnt,omitempty"` + EtherDropCnt *uint32 `protobuf:"varint,426,opt,name=ether_drop_cnt,json=etherDropCnt" json:"ether_drop_cnt,omitempty"` + EtherPktHandled *uint64 `protobuf:"varint,427,opt,name=ether_pkt_handled,json=etherPktHandled" json:"ether_pkt_handled,omitempty"` + EtherPktQueued *uint64 `protobuf:"varint,428,opt,name=ether_pkt_queued,json=etherPktQueued" json:"ether_pkt_queued,omitempty"` + IpWmCnt *uint32 `protobuf:"varint,429,opt,name=ip_wm_cnt,json=ipWmCnt" json:"ip_wm_cnt,omitempty"` + IpDropCnt *uint32 `protobuf:"varint,430,opt,name=ip_drop_cnt,json=ipDropCnt" json:"ip_drop_cnt,omitempty"` + IpPktHandled *uint64 `protobuf:"varint,431,opt,name=ip_pkt_handled,json=ipPktHandled" json:"ip_pkt_handled,omitempty"` + IpPktQueued *uint64 `protobuf:"varint,432,opt,name=ip_pkt_queued,json=ipPktQueued" json:"ip_pkt_queued,omitempty"` + Ip6WmCnt *uint32 `protobuf:"varint,433,opt,name=ip6_wm_cnt,json=ip6WmCnt" json:"ip6_wm_cnt,omitempty"` + Ip6DropCnt *uint32 `protobuf:"varint,434,opt,name=ip6_drop_cnt,json=ip6DropCnt" json:"ip6_drop_cnt,omitempty"` + Ip6PktHandled *uint64 `protobuf:"varint,435,opt,name=ip6_pkt_handled,json=ip6PktHandled" json:"ip6_pkt_handled,omitempty"` + Ip6PktQueued *uint64 `protobuf:"varint,436,opt,name=ip6_pkt_queued,json=ip6PktQueued" json:"ip6_pkt_queued,omitempty"` + ArpWmCnt *uint32 `protobuf:"varint,437,opt,name=arp_wm_cnt,json=arpWmCnt" json:"arp_wm_cnt,omitempty"` + ArpDropCnt *uint32 `protobuf:"varint,438,opt,name=arp_drop_cnt,json=arpDropCnt" json:"arp_drop_cnt,omitempty"` + ArpPktHandled *uint64 `protobuf:"varint,439,opt,name=arp_pkt_handled,json=arpPktHandled" json:"arp_pkt_handled,omitempty"` + ArpPktQueued *uint64 `protobuf:"varint,440,opt,name=arp_pkt_queued,json=arpPktQueued" json:"arp_pkt_queued,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) Reset() { + *m = JunosKernelHealthKernelTypeTcpipTypeNetisrType{} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelHealthKernelTypeTcpipTypeNetisrType) ProtoMessage() {} +func (*JunosKernelHealthKernelTypeTcpipTypeNetisrType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 3, 7, 5} +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNetisrType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNetisrType.Merge(m, src) +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNetisrType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelTypeTcpipTypeNetisrType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetEtherWmCnt() uint32 { + if m != nil && m.EtherWmCnt != nil { + return *m.EtherWmCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetEtherDropCnt() uint32 { + if m != nil && m.EtherDropCnt != nil { + return *m.EtherDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetEtherPktHandled() uint64 { + if m != nil && m.EtherPktHandled != nil { + return *m.EtherPktHandled + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetEtherPktQueued() uint64 { + if m != nil && m.EtherPktQueued != nil { + return *m.EtherPktQueued + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIpWmCnt() uint32 { + if m != nil && m.IpWmCnt != nil { + return *m.IpWmCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIpDropCnt() uint32 { + if m != nil && m.IpDropCnt != nil { + return *m.IpDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIpPktHandled() uint64 { + if m != nil && m.IpPktHandled != nil { + return *m.IpPktHandled + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIpPktQueued() uint64 { + if m != nil && m.IpPktQueued != nil { + return *m.IpPktQueued + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIp6WmCnt() uint32 { + if m != nil && m.Ip6WmCnt != nil { + return *m.Ip6WmCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIp6DropCnt() uint32 { + if m != nil && m.Ip6DropCnt != nil { + return *m.Ip6DropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIp6PktHandled() uint64 { + if m != nil && m.Ip6PktHandled != nil { + return *m.Ip6PktHandled + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetIp6PktQueued() uint64 { + if m != nil && m.Ip6PktQueued != nil { + return *m.Ip6PktQueued + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetArpWmCnt() uint32 { + if m != nil && m.ArpWmCnt != nil { + return *m.ArpWmCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetArpDropCnt() uint32 { + if m != nil && m.ArpDropCnt != nil { + return *m.ArpDropCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetArpPktHandled() uint64 { + if m != nil && m.ArpPktHandled != nil { + return *m.ArpPktHandled + } + return 0 +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) GetArpPktQueued() uint64 { + if m != nil && m.ArpPktQueued != nil { + return *m.ArpPktQueued + } + return 0 +} + +type JunosKernelHealthKernelIfstateType struct { + DeadIfstatesCnt *uint32 `protobuf:"varint,51,opt,name=dead_ifstates_cnt,json=deadIfstatesCnt" json:"dead_ifstates_cnt,omitempty"` + AliveIfstatesCnt *uint32 `protobuf:"varint,52,opt,name=alive_ifstates_cnt,json=aliveIfstatesCnt" json:"alive_ifstates_cnt,omitempty"` + DelayedUnrefsCnt *uint32 `protobuf:"varint,53,opt,name=delayed_unrefs_cnt,json=delayedUnrefsCnt" json:"delayed_unrefs_cnt,omitempty"` + DelayedUnrefsMax *uint32 `protobuf:"varint,54,opt,name=delayed_unrefs_max,json=delayedUnrefsMax" json:"delayed_unrefs_max,omitempty"` + StuckClientsCnt *uint32 `protobuf:"varint,55,opt,name=stuck_clients_cnt,json=stuckClientsCnt" json:"stuck_clients_cnt,omitempty"` + DeadClientsCnt *uint32 `protobuf:"varint,56,opt,name=dead_clients_cnt,json=deadClientsCnt" json:"dead_clients_cnt,omitempty"` + AliveClientsCnt *uint32 `protobuf:"varint,57,opt,name=alive_clients_cnt,json=aliveClientsCnt" json:"alive_clients_cnt,omitempty"` + ClientLimitReached *uint32 `protobuf:"varint,58,opt,name=client_limit_reached,json=clientLimitReached" json:"client_limit_reached,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelHealthKernelIfstateType) Reset() { *m = JunosKernelHealthKernelIfstateType{} } +func (m *JunosKernelHealthKernelIfstateType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelHealthKernelIfstateType) ProtoMessage() {} +func (*JunosKernelHealthKernelIfstateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ef45f12b88bd767, []int{0, 4} +} +func (m *JunosKernelHealthKernelIfstateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelHealthKernelIfstateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelHealthKernelIfstateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelHealthKernelIfstateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelHealthKernelIfstateType.Merge(m, src) +} +func (m *JunosKernelHealthKernelIfstateType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelHealthKernelIfstateType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelHealthKernelIfstateType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelHealthKernelIfstateType proto.InternalMessageInfo + +func (m *JunosKernelHealthKernelIfstateType) GetDeadIfstatesCnt() uint32 { + if m != nil && m.DeadIfstatesCnt != nil { + return *m.DeadIfstatesCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetAliveIfstatesCnt() uint32 { + if m != nil && m.AliveIfstatesCnt != nil { + return *m.AliveIfstatesCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetDelayedUnrefsCnt() uint32 { + if m != nil && m.DelayedUnrefsCnt != nil { + return *m.DelayedUnrefsCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetDelayedUnrefsMax() uint32 { + if m != nil && m.DelayedUnrefsMax != nil { + return *m.DelayedUnrefsMax + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetStuckClientsCnt() uint32 { + if m != nil && m.StuckClientsCnt != nil { + return *m.StuckClientsCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetDeadClientsCnt() uint32 { + if m != nil && m.DeadClientsCnt != nil { + return *m.DeadClientsCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetAliveClientsCnt() uint32 { + if m != nil && m.AliveClientsCnt != nil { + return *m.AliveClientsCnt + } + return 0 +} + +func (m *JunosKernelHealthKernelIfstateType) GetClientLimitReached() uint32 { + if m != nil && m.ClientLimitReached != nil { + return *m.ClientLimitReached + } + return 0 +} + +var E_JnprJunosKernelHealthExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosKernelHealth)(nil), + Field: 85, + Name: "jnpr_junos_kernel_health_ext", + Tag: "bytes,85,opt,name=jnpr_junos_kernel_health_ext", + Filename: "jkhmd_oc.proto", +} + +func init() { + proto.RegisterType((*JunosKernelHealth)(nil), "junos_kernel_health") + proto.RegisterType((*JunosKernelHealthChassisType)(nil), "junos_kernel_health.chassis_type") + proto.RegisterType((*JunosKernelHealthChassisTypeGresType)(nil), "junos_kernel_health.chassis_type.gres_type") + proto.RegisterType((*JunosKernelHealthChassisTypeIssuType)(nil), "junos_kernel_health.chassis_type.issu_type") + proto.RegisterType((*JunosKernelHealthChassisTypeAggregatedDevicesType)(nil), "junos_kernel_health.chassis_type.aggregated_devices_type") + proto.RegisterType((*JunosKernelHealthRoutingOptionsType)(nil), "junos_kernel_health.routing_options_type") + proto.RegisterType((*JunosKernelHealthRoutingOptionsTypeNonstopRoutingType)(nil), "junos_kernel_health.routing_options_type.nonstop_routing_type") + proto.RegisterType((*JunosKernelHealthSecurityType)(nil), "junos_kernel_health.security_type") + proto.RegisterType((*JunosKernelHealthKernelType)(nil), "junos_kernel_health.kernel_type") + proto.RegisterType((*JunosKernelHealthKernelTypePeerInfraType)(nil), "junos_kernel_health.kernel_type.peer_infra_type") + proto.RegisterType((*JunosKernelHealthKernelTypeVplsType)(nil), "junos_kernel_health.kernel_type.vpls_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTunnelType)(nil), "junos_kernel_health.kernel_type.tunnel_type") + proto.RegisterType((*JunosKernelHealthKernelTypeMulticastType)(nil), "junos_kernel_health.kernel_type.multicast_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTnpType)(nil), "junos_kernel_health.kernel_type.tnp_type") + proto.RegisterType((*JunosKernelHealthKernelTypeRecordMetaDataType)(nil), "junos_kernel_health.kernel_type.record_meta_data_type") + proto.RegisterType((*JunosKernelHealthKernelTypeRtsockType)(nil), "junos_kernel_health.kernel_type.rtsock_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipType)(nil), "junos_kernel_health.kernel_type.tcpip_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipTypeTcpType)(nil), "junos_kernel_health.kernel_type.tcpip_type.tcp_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipTypeNhidxType)(nil), "junos_kernel_health.kernel_type.tcpip_type.nhidx_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipTypeRtbType)(nil), "junos_kernel_health.kernel_type.tcpip_type.rtb_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipTypeArpType)(nil), "junos_kernel_health.kernel_type.tcpip_type.arp_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipTypeNdpType)(nil), "junos_kernel_health.kernel_type.tcpip_type.ndp_type") + proto.RegisterType((*JunosKernelHealthKernelTypeTcpipTypeNetisrType)(nil), "junos_kernel_health.kernel_type.tcpip_type.netisr_type") + proto.RegisterType((*JunosKernelHealthKernelIfstateType)(nil), "junos_kernel_health.kernel_ifstate_type") + proto.RegisterExtension(E_JnprJunosKernelHealthExt) +} + +func init() { proto.RegisterFile("jkhmd_oc.proto", fileDescriptor_0ef45f12b88bd767) } + +var fileDescriptor_0ef45f12b88bd767 = []byte{ + // 2330 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x98, 0xdb, 0x73, 0x1c, 0x47, + 0xf5, 0xc7, 0x6b, 0x2d, 0xc5, 0x96, 0x8e, 0xb4, 0x2b, 0xed, 0xc8, 0x4e, 0xa6, 0x36, 0xbf, 0x9f, + 0x63, 0x27, 0xe5, 0x8a, 0x2f, 0xb1, 0x94, 0x4a, 0x1c, 0xd9, 0x4e, 0xa5, 0x08, 0x89, 0x6c, 0x63, + 0x07, 0x2b, 0x88, 0xb5, 0x8d, 0xab, 0x28, 0xa0, 0x69, 0xcd, 0xf4, 0xee, 0xb6, 0x76, 0x76, 0xa6, + 0xdd, 0xd3, 0x23, 0xc9, 0x8f, 0xfc, 0x09, 0x5c, 0x4c, 0x12, 0x08, 0x77, 0xc2, 0xfd, 0x9e, 0xc4, + 0x76, 0xc2, 0x03, 0x79, 0xe4, 0x52, 0x45, 0x01, 0xb9, 0x70, 0x0d, 0x06, 0x17, 0xfc, 0x0b, 0x40, + 0x11, 0x20, 0xd4, 0xe9, 0xd3, 0xb3, 0x3b, 0x2b, 0x2d, 0x96, 0xe5, 0xb7, 0xdd, 0x73, 0x3e, 0xe7, + 0xdb, 0xdf, 0x99, 0xee, 0x3e, 0xdd, 0xbb, 0x50, 0x59, 0x6a, 0xb7, 0x3a, 0x21, 0x4b, 0x82, 0x69, + 0xa5, 0x13, 0x93, 0xd4, 0xa6, 0x8c, 0x88, 0x44, 0x47, 0x18, 0x7d, 0x91, 0x99, 0x44, 0x51, 0xf0, + 0xee, 0x67, 0x67, 0x60, 0x6a, 0x29, 0x8b, 0x93, 0x94, 0xb5, 0x85, 0x8e, 0x45, 0xc4, 0x5a, 0x82, + 0x47, 0xa6, 0xe5, 0x3d, 0x02, 0xdb, 0x82, 0x16, 0x4f, 0x53, 0x99, 0xfa, 0x3f, 0x2a, 0xed, 0x2a, + 0xed, 0x1d, 0x7b, 0x60, 0xf7, 0xf4, 0x00, 0x6e, 0xda, 0x41, 0xcc, 0x5c, 0x54, 0xa2, 0x9e, 0x97, + 0x78, 0x67, 0x60, 0x42, 0x27, 0x99, 0x91, 0x71, 0x93, 0x25, 0xca, 0xc8, 0x24, 0x4e, 0xfd, 0x7f, + 0x0f, 0x59, 0x95, 0x7d, 0x03, 0x55, 0xd6, 0xc0, 0xa4, 0x56, 0x71, 0xd1, 0xf7, 0x50, 0xd0, 0x7b, + 0x14, 0x46, 0x52, 0x11, 0x64, 0x5a, 0x9a, 0x8b, 0xfe, 0x15, 0xf2, 0x74, 0xf7, 0x40, 0xb5, 0x9c, + 0x22, 0x99, 0x6e, 0x91, 0x77, 0x14, 0xb6, 0x12, 0xe8, 0xbf, 0x42, 0xe5, 0xbb, 0x06, 0x96, 0xbb, + 0x6f, 0xb6, 0xd8, 0x15, 0x78, 0x0b, 0x50, 0x71, 0x61, 0xd9, 0x48, 0x0d, 0x37, 0xc2, 0x7f, 0x99, + 0x24, 0xf6, 0xde, 0x48, 0xc2, 0xb1, 0x24, 0x55, 0xa6, 0xe0, 0x29, 0x8a, 0xd5, 0xae, 0x6d, 0x83, + 0xf1, 0xe2, 0xcb, 0xf3, 0xde, 0x09, 0xc3, 0x4d, 0x2d, 0x52, 0xff, 0x45, 0x12, 0x3e, 0xb0, 0xe1, + 0xeb, 0x9e, 0x46, 0x9c, 0xb4, 0x6d, 0x25, 0x2a, 0xc8, 0x34, 0xcd, 0xfc, 0xcb, 0x37, 0xad, 0x80, + 0xb8, 0x53, 0xc0, 0x8f, 0x9e, 0x04, 0x8f, 0x37, 0x9b, 0x5a, 0x34, 0xb9, 0x11, 0x21, 0x0b, 0xc5, + 0xb2, 0x0c, 0x44, 0xea, 0x5f, 0xdb, 0x62, 0xf5, 0x8e, 0x6e, 0xac, 0xb7, 0xbe, 0x98, 0xd4, 0xab, + 0xbd, 0xc4, 0x31, 0x8a, 0xd7, 0x3e, 0x32, 0x04, 0xa3, 0xdd, 0x07, 0xf0, 0xee, 0xcc, 0xbf, 0xc8, + 0x8e, 0xf0, 0x1f, 0xdc, 0x55, 0xda, 0x3b, 0x5c, 0x1f, 0xc1, 0xc0, 0x59, 0xd9, 0x11, 0xde, 0x7d, + 0xe0, 0xa5, 0x11, 0x5f, 0x16, 0x2c, 0x48, 0xe2, 0x58, 0x04, 0x86, 0xa8, 0x43, 0x96, 0x9a, 0xb4, + 0x99, 0x39, 0x4a, 0x58, 0x7a, 0x1f, 0x4c, 0x06, 0x49, 0xdc, 0x90, 0xcd, 0x4c, 0x8b, 0x90, 0xd1, + 0x64, 0x3d, 0xb4, 0xab, 0xb4, 0x77, 0xb4, 0x3e, 0xd1, 0x8b, 0x9f, 0xc1, 0xb0, 0x37, 0x0d, 0x53, + 0x1d, 0x9e, 0x1a, 0xa1, 0xf3, 0x67, 0xd2, 0x82, 0x87, 0x17, 0xfd, 0x59, 0x4b, 0x57, 0x29, 0xf5, + 0x6e, 0x9b, 0xa9, 0x63, 0xa2, 0x67, 0xa4, 0x0f, 0x3f, 0x6c, 0x71, 0x32, 0x52, 0xa4, 0xef, 0x82, + 0x31, 0xa1, 0x75, 0xa2, 0x9d, 0x87, 0x23, 0x16, 0x03, 0x1b, 0xa2, 0xe1, 0xf7, 0xc1, 0x64, 0x62, + 0x5a, 0x42, 0x33, 0x2d, 0x98, 0xd2, 0x22, 0x15, 0xb1, 0xf1, 0x9f, 0x2a, 0x59, 0xac, 0x62, 0x13, + 0x75, 0xb1, 0x40, 0x61, 0x6f, 0x0f, 0x54, 0xba, 0x28, 0x8f, 0xe4, 0xb2, 0xf0, 0x9f, 0x26, 0x70, + 0xdc, 0x81, 0x8f, 0x61, 0xd0, 0x3b, 0x08, 0x9e, 0x4c, 0x99, 0xdd, 0xd9, 0x41, 0x12, 0x31, 0x7a, + 0x02, 0xff, 0x39, 0x42, 0x27, 0x65, 0xba, 0xe0, 0x32, 0xf3, 0x36, 0x51, 0xfb, 0x10, 0x8c, 0x76, + 0x57, 0x80, 0x77, 0x0f, 0x94, 0x1b, 0x5c, 0x46, 0x99, 0x16, 0x68, 0xb8, 0x49, 0xd3, 0x30, 0x5a, + 0x1f, 0x77, 0xc1, 0x33, 0x18, 0xc3, 0x37, 0x10, 0x64, 0x5a, 0x8b, 0xd8, 0x30, 0x5b, 0x49, 0xe4, + 0x21, 0xd2, 0x77, 0x99, 0x53, 0x69, 0x9a, 0x59, 0xba, 0xf6, 0x56, 0x09, 0xee, 0xf8, 0x1f, 0x4b, + 0xc2, 0xdb, 0x0f, 0x55, 0x95, 0xb2, 0xc8, 0xb0, 0x2c, 0x4e, 0x0d, 0x0f, 0xda, 0x2c, 0x88, 0x8d, + 0x7f, 0x05, 0x57, 0x5a, 0xb9, 0x5e, 0x51, 0xe9, 0x69, 0x73, 0x8e, 0xe2, 0x73, 0xb1, 0xf1, 0x0e, + 0xc2, 0x94, 0x4a, 0x99, 0x6c, 0x44, 0x2c, 0x08, 0x02, 0x16, 0x26, 0x2b, 0xb1, 0xa5, 0xaf, 0x12, + 0x3d, 0xa1, 0xd2, 0x53, 0x8d, 0x68, 0x2e, 0x08, 0x8e, 0x25, 0x2b, 0x31, 0xe2, 0x33, 0xb0, 0x5d, + 0x47, 0x86, 0x45, 0x8a, 0x45, 0x32, 0x6e, 0xf7, 0xf8, 0x97, 0x88, 0x9f, 0xd4, 0x91, 0x39, 0xad, + 0x4e, 0xcb, 0xb8, 0x9d, 0x17, 0xec, 0x81, 0x0a, 0x17, 0x7d, 0x46, 0x5e, 0x26, 0x74, 0x9c, 0x8b, + 0x7e, 0x1b, 0x5c, 0xac, 0x97, 0xfd, 0xa1, 0xb3, 0xc1, 0x45, 0x9f, 0x6a, 0xed, 0xf2, 0x16, 0xd8, + 0x3e, 0xa8, 0xb1, 0x79, 0x2d, 0x98, 0x88, 0x93, 0x38, 0x35, 0x89, 0x62, 0x2e, 0xef, 0xff, 0x87, + 0xba, 0xe3, 0x3b, 0x6e, 0xba, 0x3b, 0x4e, 0xaf, 0x51, 0x70, 0x2d, 0xd3, 0x45, 0xeb, 0x14, 0xac, + 0x3d, 0x5f, 0x82, 0xed, 0x83, 0x40, 0xef, 0x01, 0xd8, 0xb1, 0x94, 0x6a, 0x96, 0xaa, 0x48, 0x1a, + 0x96, 0x4f, 0x3b, 0x3e, 0xcc, 0x3f, 0x87, 0xec, 0xc3, 0x78, 0x4b, 0xa9, 0x3e, 0x83, 0xc9, 0x13, + 0x94, 0xc3, 0xc7, 0x77, 0x35, 0x1d, 0xa1, 0x9b, 0xa2, 0xaf, 0xe6, 0xad, 0x5e, 0xcd, 0x3c, 0x26, + 0x0b, 0x35, 0x0f, 0xc2, 0xed, 0x58, 0xa3, 0x74, 0xc4, 0x2e, 0x64, 0x22, 0x13, 0xac, 0x91, 0x45, + 0x91, 0x2d, 0xfa, 0x57, 0xaf, 0x68, 0x41, 0x47, 0xef, 0xc5, 0xe4, 0x89, 0x2c, 0x8a, 0xf0, 0xc5, + 0xcd, 0x42, 0xb9, 0xaf, 0x85, 0xe3, 0xfc, 0x2c, 0x0b, 0x2d, 0xc5, 0xaa, 0x08, 0xdc, 0x66, 0xa2, + 0xb5, 0x59, 0xce, 0xa3, 0x76, 0x3f, 0xd5, 0x7e, 0xbe, 0x13, 0xc6, 0x0a, 0xcd, 0xdb, 0x5b, 0x00, + 0x50, 0x42, 0x68, 0x26, 0xe3, 0x86, 0xe6, 0xfe, 0x55, 0xea, 0x8a, 0xf7, 0x6f, 0xd4, 0xf3, 0xa7, + 0x7b, 0x35, 0xf4, 0x52, 0x47, 0x31, 0x70, 0x0a, 0xbf, 0x7b, 0x8f, 0xc2, 0xf0, 0xb2, 0x8a, 0x52, + 0xff, 0x27, 0xa4, 0xb5, 0x7f, 0x43, 0x2d, 0xa4, 0x5d, 0x83, 0xc5, 0x8f, 0xde, 0x71, 0xd8, 0x6a, + 0xb2, 0x18, 0x8f, 0xa0, 0x9f, 0x92, 0xc4, 0x7d, 0x1b, 0x4a, 0x10, 0xef, 0x8e, 0x23, 0xfa, 0xe2, + 0x3d, 0x09, 0xa3, 0x9d, 0x2c, 0x32, 0x32, 0xe0, 0xa9, 0xf1, 0x7f, 0x46, 0x4a, 0x33, 0x1b, 0x2a, + 0x75, 0x4b, 0xdc, 0x73, 0x75, 0xbf, 0x7b, 0x8f, 0xc0, 0x90, 0x89, 0x95, 0xff, 0xe7, 0xd2, 0x0d, + 0xce, 0xe8, 0x3e, 0x4f, 0xb1, 0x22, 0x0d, 0x2c, 0xf3, 0x38, 0x4c, 0x6a, 0x11, 0x24, 0x3a, 0x64, + 0x1d, 0x61, 0x38, 0x0b, 0xb9, 0xe1, 0xfe, 0x4b, 0x24, 0x35, 0xbb, 0xa1, 0xd4, 0xda, 0xca, 0xfc, + 0xec, 0xb7, 0xe1, 0x79, 0x61, 0xf8, 0x31, 0x6e, 0x38, 0xbe, 0x37, 0x6d, 0xd2, 0x24, 0x68, 0xfb, + 0xcf, 0xdc, 0xec, 0x7b, 0x23, 0xde, 0xbd, 0x37, 0xfa, 0xe2, 0x3d, 0x0e, 0xb7, 0x99, 0x40, 0x49, + 0xe5, 0xbf, 0x31, 0x7c, 0x83, 0x23, 0xb2, 0xef, 0x49, 0x11, 0x27, 0x11, 0x2a, 0xad, 0x19, 0x98, + 0x58, 0xb3, 0x42, 0x70, 0x95, 0xdb, 0x90, 0x6a, 0x88, 0x0e, 0x8f, 0xed, 0x31, 0xc5, 0x42, 0x9d, + 0xa8, 0xd4, 0xae, 0xd3, 0x72, 0x7d, 0x0a, 0xb3, 0x0b, 0x36, 0x89, 0x27, 0xd5, 0x31, 0x4c, 0xd9, + 0xc3, 0x44, 0x65, 0x5a, 0x26, 0x59, 0xca, 0x94, 0x32, 0x6c, 0xa5, 0x9d, 0xa9, 0xd4, 0xb6, 0xd2, + 0x72, 0x7d, 0x32, 0xcf, 0x2c, 0x28, 0x73, 0x1e, 0xe3, 0xb5, 0x2b, 0x25, 0x18, 0xed, 0x2e, 0x26, + 0xef, 0x00, 0x54, 0xb3, 0xd8, 0x4d, 0x65, 0xd2, 0x16, 0xd4, 0x87, 0x5e, 0x2f, 0x51, 0x1f, 0x72, + 0x99, 0xb3, 0x98, 0xc0, 0x3d, 0xb8, 0x0e, 0xee, 0xf0, 0x55, 0xff, 0x8d, 0x01, 0xf0, 0x3c, 0x5f, + 0xf5, 0xee, 0x85, 0x89, 0x46, 0x94, 0x24, 0x61, 0x41, 0xf7, 0xd7, 0x84, 0x96, 0x6d, 0xbc, 0xab, + 0xba, 0x06, 0x44, 0xcd, 0xdf, 0xac, 0x03, 0xe7, 0xf9, 0x6a, 0xed, 0xaf, 0x25, 0x18, 0x2b, 0xac, + 0x61, 0x3c, 0xf5, 0xb4, 0x6a, 0x30, 0x0a, 0xc9, 0xd0, 0x0e, 0xf1, 0x5b, 0xaa, 0xac, 0x68, 0xd5, + 0x38, 0xeb, 0xe2, 0x38, 0xc6, 0x5a, 0x14, 0x07, 0xf9, 0xdd, 0x7a, 0x14, 0x7d, 0xcf, 0xc0, 0x54, + 0x9c, 0xc4, 0xeb, 0x84, 0x7f, 0x4f, 0x74, 0x95, 0x72, 0x45, 0xed, 0x01, 0x05, 0x28, 0xff, 0x87, + 0x81, 0x05, 0x38, 0xc2, 0x4e, 0x80, 0x28, 0x49, 0x94, 0x20, 0xe1, 0x37, 0x89, 0x1b, 0xa5, 0x10, + 0x76, 0xad, 0x36, 0x54, 0xfa, 0x37, 0x18, 0x0e, 0x21, 0x65, 0xa3, 0x23, 0xd3, 0x0e, 0x37, 0x41, + 0x8b, 0x09, 0xad, 0x6d, 0xe9, 0x1f, 0x4b, 0xf6, 0xe6, 0x52, 0x2d, 0xe4, 0x8e, 0x6b, 0x8d, 0x9e, + 0xf6, 0xc2, 0xa4, 0x4e, 0xa3, 0x65, 0xa6, 0xc5, 0x85, 0x2e, 0x7d, 0x8d, 0xe8, 0x32, 0x26, 0xea, + 0xe2, 0x02, 0x91, 0xb5, 0x10, 0x46, 0xf2, 0x3d, 0x88, 0x0b, 0x09, 0x3f, 0xb7, 0x44, 0x14, 0x25, + 0x76, 0xd9, 0xd9, 0xba, 0x57, 0xa9, 0x6e, 0xc2, 0xc4, 0xea, 0x24, 0x66, 0x70, 0xd1, 0xe1, 0x18, + 0xfb, 0xa1, 0x8a, 0x74, 0x43, 0xf3, 0x66, 0x0f, 0x7e, 0x8d, 0xe0, 0x8a, 0x89, 0xd5, 0x09, 0xcd, + 0x9b, 0x8e, 0xad, 0x1d, 0x81, 0x1d, 0x03, 0xb7, 0x27, 0x5e, 0x6d, 0x5c, 0xa2, 0x70, 0x61, 0x03, + 0x0a, 0xe1, 0x25, 0xac, 0xf6, 0x41, 0x18, 0x2b, 0xec, 0x3f, 0x6c, 0xe0, 0x26, 0x31, 0x3c, 0x62, + 0xcb, 0xc2, 0x24, 0x76, 0xc4, 0x4f, 0xd0, 0x88, 0xe3, 0x36, 0xfc, 0x3e, 0x61, 0x12, 0xb7, 0xa6, + 0x08, 0xa3, 0x7b, 0x13, 0x72, 0x97, 0xdc, 0xe3, 0xdb, 0xf8, 0x71, 0x0c, 0xa3, 0xb1, 0xbf, 0x78, + 0x00, 0xbd, 0x9d, 0xe9, 0xbd, 0x0b, 0x86, 0x4c, 0xa0, 0xfc, 0xb7, 0xe9, 0x10, 0x3d, 0xb4, 0x89, + 0x4d, 0x8d, 0x1f, 0xf3, 0x4e, 0x16, 0x28, 0x6f, 0x1e, 0x6e, 0x8b, 0x5b, 0x32, 0x5c, 0xf5, 0x7f, + 0x39, 0x7c, 0x93, 0xed, 0xab, 0x20, 0x65, 0x2b, 0x5d, 0xab, 0xb0, 0x9f, 0xd1, 0x97, 0x36, 0x8b, + 0xfe, 0xaf, 0x86, 0x37, 0xef, 0x4b, 0x9b, 0x45, 0xe7, 0x4b, 0x9b, 0x45, 0x14, 0xe2, 0x5a, 0xf9, + 0xaf, 0xde, 0x82, 0x10, 0xd7, 0xf9, 0x03, 0x72, 0xad, 0x50, 0x28, 0x0e, 0x95, 0xff, 0xda, 0x2d, + 0x08, 0xc5, 0x61, 0x2e, 0x14, 0x87, 0xca, 0x5b, 0x80, 0xad, 0xb1, 0x30, 0x32, 0xd5, 0xfe, 0xeb, + 0xa4, 0x75, 0x78, 0x53, 0x5a, 0xb6, 0xd4, 0xf5, 0x66, 0xfa, 0x52, 0xbb, 0x54, 0x82, 0x91, 0x7c, + 0x36, 0xf0, 0x66, 0x8e, 0x9f, 0xc3, 0x30, 0x49, 0x19, 0x37, 0xdd, 0x6b, 0xd9, 0xdf, 0xe8, 0xd2, + 0x30, 0x69, 0x02, 0x75, 0x2c, 0x4c, 0xd2, 0xc7, 0x4c, 0x7e, 0x35, 0x3b, 0x00, 0x55, 0xe4, 0xb1, + 0xf3, 0xda, 0xc6, 0x6b, 0xe9, 0xbf, 0x13, 0x3d, 0x61, 0x02, 0x35, 0x97, 0x27, 0x10, 0xc6, 0x0d, + 0x83, 0x03, 0xc9, 0x8e, 0x60, 0x2b, 0x5c, 0x1a, 0x5b, 0xe6, 0xff, 0x63, 0xc8, 0x6d, 0x98, 0x40, + 0xe1, 0x12, 0x3e, 0xcf, 0xa5, 0xc1, 0xaa, 0xda, 0x0b, 0x25, 0x80, 0xde, 0xd4, 0xe2, 0x1a, 0x8d, + 0xc5, 0xaa, 0x69, 0x25, 0x8a, 0xa9, 0x6c, 0xd1, 0xf6, 0x8c, 0x8f, 0xd2, 0x38, 0x65, 0x17, 0x5f, + 0xc8, 0x16, 0xb1, 0x5f, 0xec, 0x83, 0xc9, 0x2e, 0xa8, 0xe5, 0xb2, 0x25, 0x3f, 0x46, 0x64, 0x25, + 0x27, 0xb5, 0x5c, 0x76, 0x4d, 0xb7, 0xa8, 0x89, 0xde, 0x3f, 0xbe, 0x4e, 0xd3, 0x35, 0xc4, 0x3e, + 0x4d, 0xbb, 0x93, 0xd6, 0x6b, 0xe2, 0x16, 0xf9, 0x00, 0x8c, 0xe4, 0x6b, 0x08, 0xf5, 0xf1, 0xf6, + 0x27, 0x58, 0x10, 0x25, 0xb1, 0xb0, 0x4e, 0x2e, 0x39, 0x7d, 0x1b, 0x9f, 0xc3, 0xb0, 0x33, 0x52, + 0x04, 0x51, 0xfe, 0x93, 0xeb, 0x40, 0x54, 0x7f, 0x65, 0x08, 0x46, 0xf2, 0x95, 0x65, 0x5d, 0x2d, + 0xea, 0x80, 0x07, 0x2d, 0xc1, 0xa4, 0x96, 0x56, 0xff, 0xa9, 0xdc, 0x95, 0x4b, 0x9c, 0xd2, 0x12, + 0x07, 0x38, 0x00, 0xd5, 0x2e, 0xda, 0x69, 0x76, 0x8c, 0x65, 0x9f, 0x76, 0xf3, 0x94, 0x67, 0xe6, + 0x9b, 0x1d, 0x93, 0xf7, 0xf4, 0x1c, 0x56, 0xd9, 0x62, 0x24, 0x03, 0x8b, 0x3f, 0x33, 0xe4, 0x5a, + 0xb4, 0xcb, 0x2d, 0xd8, 0x54, 0xfe, 0xca, 0x8b, 0x46, 0xd0, 0xff, 0xa7, 0xd6, 0x1b, 0x71, 0x0b, + 0xa6, 0xdf, 0x08, 0xb2, 0x9f, 0x1e, 0x60, 0x24, 0x3f, 0x2b, 0xd6, 0x18, 0x41, 0xfc, 0xd9, 0x81, + 0x46, 0xdc, 0x55, 0xb9, 0xcf, 0x48, 0xb7, 0xd1, 0x7e, 0xc6, 0xdd, 0x7a, 0x0b, 0x6e, 0xf2, 0xc6, + 0x7c, 0x08, 0x6e, 0xef, 0x77, 0xd4, 0x2d, 0xfa, 0x2c, 0x15, 0x4d, 0x15, 0x6d, 0xe5, 0x55, 0x47, + 0xc0, 0x5f, 0x6b, 0xad, 0x5b, 0xf7, 0x39, 0xaa, 0xdb, 0xd1, 0xef, 0x2f, 0x6f, 0xee, 0x38, 0x85, + 0xf9, 0x9e, 0x1e, 0x38, 0x85, 0x9f, 0xdf, 0xc4, 0x14, 0x7e, 0x61, 0x73, 0x53, 0xf8, 0xc5, 0x4d, + 0x4d, 0xe1, 0x97, 0x36, 0x31, 0x85, 0x5f, 0xde, 0xdc, 0x14, 0x3e, 0xb7, 0xf9, 0x29, 0xfc, 0xca, + 0xad, 0x4c, 0xe1, 0x57, 0x6f, 0x71, 0x0a, 0xbf, 0x76, 0xc3, 0x29, 0x7c, 0x73, 0x18, 0xc6, 0x0a, + 0xad, 0xd4, 0xdb, 0x0d, 0xe3, 0xc2, 0xfe, 0x4b, 0xb0, 0xd2, 0xb1, 0xd5, 0x5f, 0xa7, 0x6a, 0xb0, + 0xc1, 0xf3, 0x1d, 0xf7, 0x53, 0x97, 0x90, 0xee, 0x10, 0xdf, 0x20, 0x88, 0x2a, 0x73, 0x4f, 0x07, + 0xa0, 0x4a, 0x98, 0x6a, 0x1b, 0xd6, 0xe2, 0x71, 0x18, 0x89, 0xd0, 0xff, 0xa6, 0xeb, 0x90, 0x36, + 0xb3, 0xd0, 0x36, 0x27, 0x29, 0x8e, 0x73, 0xd6, 0x83, 0xed, 0xcf, 0xbc, 0xd0, 0xff, 0x16, 0xb1, + 0x95, 0x9c, 0xb5, 0x3f, 0xf0, 0x42, 0xef, 0x4e, 0x18, 0x95, 0x2a, 0xb7, 0xf7, 0x6d, 0x1a, 0x79, + 0x9b, 0x54, 0xe4, 0xed, 0x2e, 0x18, 0x93, 0xaa, 0x67, 0xec, 0x3b, 0x94, 0x1e, 0x95, 0x2a, 0x77, + 0xb5, 0x07, 0x2a, 0x52, 0xf5, 0x59, 0xfa, 0x2e, 0x0d, 0x33, 0x2e, 0x55, 0xc1, 0xcf, 0x3d, 0x50, + 0x76, 0x98, 0x33, 0xf3, 0x3d, 0xa2, 0xc6, 0x2c, 0xe5, 0x9c, 0xfc, 0x3f, 0x80, 0x54, 0xb3, 0xb9, + 0x95, 0xef, 0xd3, 0x58, 0x23, 0x52, 0xcd, 0x92, 0x97, 0xdd, 0x30, 0x8e, 0xe9, 0xae, 0x99, 0x1f, + 0xb8, 0x57, 0x29, 0xd5, 0x6c, 0xee, 0xe6, 0x5e, 0x98, 0x40, 0xa4, 0x68, 0xe7, 0x79, 0x1a, 0xa8, + 0x2c, 0xd5, 0x6c, 0xc1, 0x8f, 0xb5, 0x3d, 0x5b, 0x34, 0xf4, 0x42, 0xd7, 0xf6, 0x6c, 0x9f, 0x23, + 0x6c, 0xa9, 0xce, 0xd1, 0x8b, 0xce, 0x11, 0xd7, 0xaa, 0xeb, 0x08, 0xd3, 0x5d, 0x47, 0x97, 0x9d, + 0x23, 0xae, 0x55, 0xc1, 0x11, 0x22, 0x45, 0x47, 0x57, 0x9c, 0x23, 0xae, 0x55, 0xbf, 0xa3, 0x1c, + 0x74, 0x8e, 0xae, 0x3a, 0x47, 0xc4, 0x91, 0xa3, 0xda, 0xdb, 0x5b, 0x60, 0x6a, 0xc0, 0x5f, 0x99, + 0x78, 0x87, 0x0c, 0x05, 0x0f, 0xf3, 0x20, 0x9d, 0xb6, 0xf4, 0x53, 0x67, 0x02, 0x13, 0xee, 0x3f, + 0xce, 0xfc, 0xb0, 0xb5, 0x7f, 0x58, 0xf5, 0xc3, 0xee, 0x67, 0x8e, 0xcd, 0xac, 0xa1, 0x43, 0x11, + 0xf1, 0x8b, 0x22, 0x64, 0x59, 0xac, 0x45, 0x83, 0xe8, 0x87, 0x88, 0x76, 0x99, 0x73, 0x36, 0x31, + 0x98, 0xc6, 0xe6, 0x32, 0x3b, 0x80, 0xc6, 0xd6, 0xb2, 0x1f, 0xaa, 0xa9, 0xc9, 0xf0, 0x26, 0x11, + 0x49, 0x11, 0x1b, 0x92, 0x3e, 0x4c, 0xae, 0x6d, 0x62, 0x8e, 0xe2, 0xee, 0x26, 0x6e, 0x9f, 0xb0, + 0x88, 0x1e, 0xa1, 0x2e, 0x84, 0xf1, 0x02, 0xb9, 0x1f, 0xaa, 0xf4, 0x7c, 0x45, 0xf4, 0xa8, 0xfb, + 0x47, 0x08, 0x13, 0x05, 0xf6, 0x7e, 0xd8, 0x4e, 0x14, 0x8b, 0x64, 0x47, 0x1a, 0xa6, 0x05, 0xee, + 0xe9, 0xd0, 0x7f, 0x98, 0x3a, 0x0a, 0xe5, 0x4e, 0x63, 0xaa, 0x4e, 0x99, 0x87, 0x3b, 0xf0, 0x7f, + 0x4b, 0xb1, 0xd2, 0x6c, 0xc0, 0xdd, 0x8a, 0x89, 0x55, 0xe3, 0xdd, 0x31, 0xfd, 0x44, 0x16, 0x4b, + 0x25, 0xf4, 0x93, 0xc2, 0xac, 0x24, 0xba, 0x9d, 0x9e, 0x11, 0x71, 0x9a, 0xe8, 0xd4, 0x3f, 0x67, + 0x2f, 0x65, 0xdb, 0x07, 0x5d, 0xca, 0xea, 0x3e, 0x4a, 0x3e, 0x81, 0x09, 0xfa, 0xbb, 0xf2, 0xa4, + 0x0d, 0x1f, 0x5f, 0x35, 0x8f, 0x7f, 0xf8, 0xc7, 0xd7, 0x77, 0x96, 0x7e, 0x71, 0x7d, 0x67, 0xe9, + 0x4f, 0xd7, 0x77, 0x96, 0xde, 0x5f, 0x6f, 0x4a, 0x83, 0x02, 0xa8, 0x8f, 0x57, 0xb6, 0x19, 0x19, + 0x88, 0x45, 0xa1, 0x9b, 0x33, 0xa4, 0xb3, 0x98, 0x98, 0x83, 0x32, 0x6e, 0x8a, 0xd4, 0x1c, 0x5c, + 0x32, 0xf2, 0x60, 0xcc, 0x8d, 0x5c, 0x16, 0x33, 0xaa, 0xdd, 0x9c, 0x59, 0x32, 0x72, 0x86, 0x87, + 0x5c, 0x19, 0xa1, 0xd3, 0x19, 0xf2, 0x3e, 0x93, 0x06, 0x2d, 0xd1, 0xe1, 0xff, 0x0d, 0x00, 0x00, + 0xff, 0xff, 0xc3, 0x01, 0x08, 0x4d, 0x95, 0x18, 0x00, 0x00, +} + +func (m *JunosKernelHealth) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RoutingOptions != nil { + { + size, err := m.RoutingOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xea + } + if m.Kernel != nil { + { + size, err := m.Kernel.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0x82 + } + if m.Chassis != nil { + { + size, err := m.Chassis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xfa + } + if m.KernelIfstate != nil { + { + size, err := m.KernelIfstate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xd2 + } + if m.Security != nil { + { + size, err := m.Security.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthChassisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthChassisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthChassisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AggregatedDevices != nil { + { + size, err := m.AggregatedDevices.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x15 + i-- + dAtA[i] = 0xfa + } + if m.Issu != nil { + { + size, err := m.Issu.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xb2 + } + if m.Gres != nil { + { + size, err := m.Gres.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthChassisTypeGresType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthChassisTypeGresType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthChassisTypeGresType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IsProtocolMaster != nil { + i -= len(*m.IsProtocolMaster) + copy(dAtA[i:], *m.IsProtocolMaster) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.IsProtocolMaster))) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xaa + } + if m.OtherReAlive != nil { + i -= len(*m.OtherReAlive) + copy(dAtA[i:], *m.OtherReAlive) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.OtherReAlive))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.OtherRePresent != nil { + i -= len(*m.OtherRePresent) + copy(dAtA[i:], *m.OtherRePresent) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.OtherRePresent))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ErrorState != nil { + i -= len(*m.ErrorState) + copy(dAtA[i:], *m.ErrorState) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.ErrorState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.SlaveKernelReady != nil { + i -= len(*m.SlaveKernelReady) + copy(dAtA[i:], *m.SlaveKernelReady) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.SlaveKernelReady))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.MasterKernelReady != nil { + i -= len(*m.MasterKernelReady) + copy(dAtA[i:], *m.MasterKernelReady) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.MasterKernelReady))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ConfiguredState != nil { + i -= len(*m.ConfiguredState) + copy(dAtA[i:], *m.ConfiguredState) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.ConfiguredState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.SlaveConnectTime != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.SlaveConnectTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.GresTime != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.GresTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthChassisTypeIssuType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthChassisTypeIssuType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthChassisTypeIssuType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CurrentIssuStage != nil { + i -= len(*m.CurrentIssuStage) + copy(dAtA[i:], *m.CurrentIssuStage) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.CurrentIssuStage))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.FailureStage != nil { + i -= len(*m.FailureStage) + copy(dAtA[i:], *m.FailureStage) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.FailureStage))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AeLpLinkDownCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.AeLpLinkDownCnt)) + i-- + dAtA[i] = 0x13 + i-- + dAtA[i] = 0xd8 + } + if m.AeUnstackCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.AeUnstackCnt)) + i-- + dAtA[i] = 0x13 + i-- + dAtA[i] = 0xd0 + } + if m.RltLpLinkDownCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RltLpLinkDownCnt)) + i-- + dAtA[i] = 0x13 + i-- + dAtA[i] = 0xc8 + } + if m.PsIflCccDownCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.PsIflCccDownCnt)) + i-- + dAtA[i] = 0x13 + i-- + dAtA[i] = 0xc0 + } + if m.PsLtUnstackCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.PsLtUnstackCnt)) + i-- + dAtA[i] = 0x13 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthRoutingOptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthRoutingOptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthRoutingOptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NonstopRouting != nil { + { + size, err := m.NonstopRouting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xf2 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.JsrPrlQueueFullCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.JsrPrlQueueFullCnt)) + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xe0 + } + if m.JsrMergeFailureCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.JsrMergeFailureCnt)) + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xd8 + } + if m.JsrSplitFailureCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.JsrSplitFailureCnt)) + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthSecurityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthSecurityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthSecurityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VeriexecState != nil { + i -= len(*m.VeriexecState) + copy(dAtA[i:], *m.VeriexecState) + i = encodeVarintJkhmdOc(dAtA, i, uint64(len(*m.VeriexecState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Tcpip != nil { + { + size, err := m.Tcpip.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x25 + i-- + dAtA[i] = 0xb2 + } + if m.Tnp != nil { + { + size, err := m.Tnp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xe + i-- + dAtA[i] = 0x8a + } + if m.Multicast != nil { + { + size, err := m.Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xda + } + if m.Tunnel != nil { + { + size, err := m.Tunnel.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd2 + } + if m.Vpls != nil { + { + size, err := m.Vpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xca + } + if m.RecordMetaData != nil { + { + size, err := m.RecordMetaData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xca + } + if m.PeerInfra != nil { + { + size, err := m.PeerInfra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xc2 + } + if m.Rtsock != nil { + { + size, err := m.Rtsock.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypePeerInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypePeerInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypePeerInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SpuriousPptWkups != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.SpuriousPptWkups)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PeerPfemanConnDrops != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.PeerPfemanConnDrops)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeVplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeVplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeVplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FloodTokenMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.FloodTokenMax)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xc0 + } + if m.FloodTokenCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.FloodTokenCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xb8 + } + if m.UnicastTokenMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.UnicastTokenMax)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xb0 + } + if m.UnicastTokenCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.UnicastTokenCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xa8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTunnelType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTunnelType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTunnelType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LoopedCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.LoopedCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xe8 + } + if m.NonrpfTunnelidMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NonrpfTunnelidMax)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xe0 + } + if m.NonrpfTunnelidCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NonrpfTunnelidCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xd8 + } + if m.RpfTunnelidMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RpfTunnelidMax)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xd0 + } + if m.RpfTunnelidCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RpfTunnelidCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeMulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeMulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeMulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RslvReqErrCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RslvReqErrCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xf8 + } + if m.IifmismatchErrCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.IifmismatchErrCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xf0 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTnpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTnpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTnpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TnpFragDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TnpFragDropCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0xa0 + } + if m.TnpHelloDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TnpHelloDropCnt)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RecordTime != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RecordTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeRtsockType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeRtsockType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeRtsockType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalErrorCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TotalErrorCnt)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xa8 + } + if m.TotalVetoCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TotalVetoCnt)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xa0 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Netisr != nil { + { + size, err := m.Netisr.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x25 + i-- + dAtA[i] = 0xaa + } + if m.Ndp != nil { + { + size, err := m.Ndp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x25 + i-- + dAtA[i] = 0xa2 + } + if m.Arp != nil { + { + size, err := m.Arp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x25 + i-- + dAtA[i] = 0x9a + } + if m.Rtb != nil { + { + size, err := m.Rtb.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x25 + i-- + dAtA[i] = 0x92 + } + if m.Nhidx != nil { + { + size, err := m.Nhidx.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x25 + i-- + dAtA[i] = 0x8a + } + if m.Tcp != nil { + { + size, err := m.Tcp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xfa + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TcpTimeWaitConn != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TcpTimeWaitConn)) + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xc0 + } + if m.TcpConndropsCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TcpConndropsCnt)) + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xb8 + } + if m.TcpDdosAttackCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.TcpDdosAttackCnt)) + i-- + dAtA[i] = 0x1f + i-- + dAtA[i] = 0xb0 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NexthopPrivCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NexthopPrivCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xa0 + } + if m.NexthopPubCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NexthopPubCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0x98 + } + if m.NexthopPrivMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NexthopPrivMax)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0x90 + } + if m.NexthopPubMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NexthopPubMax)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0x88 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RouteCloneCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RouteCloneCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xb0 + } + if m.RouteCloneMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.RouteCloneMax)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xa8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NbrcachePublicDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcachePublicDropCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xf8 + } + if m.NbrcacheMgmtDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheMgmtDropCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xf0 + } + if m.NbrcacheIriDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheIriDropCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xe8 + } + if m.NbrcachePublicCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcachePublicCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xe0 + } + if m.NbrcacheMgmtCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheMgmtCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xd8 + } + if m.NbrcacheIriCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheIriCnt)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xd0 + } + if m.NbrcachePublicMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcachePublicMax)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xc8 + } + if m.NbrcacheMgmtMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheMgmtMax)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xc0 + } + if m.NbrcacheIriMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheIriMax)) + i-- + dAtA[i] = 0x19 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NbrcachePublicDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcachePublicDropCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xc0 + } + if m.NbrcacheMgmtDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheMgmtDropCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xb8 + } + if m.NbrcacheIriDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheIriDropCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xb0 + } + if m.NbrcachePublicCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcachePublicCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xa8 + } + if m.NbrcacheMgmtCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheMgmtCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xa0 + } + if m.NbrcacheIriCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheIriCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0x98 + } + if m.NbrcachePublicMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcachePublicMax)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0x90 + } + if m.NbrcacheMgmtMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheMgmtMax)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0x88 + } + if m.NbrcacheIriMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.NbrcacheIriMax)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0x80 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ArpPktQueued != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.ArpPktQueued)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0xc0 + } + if m.ArpPktHandled != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.ArpPktHandled)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0xb8 + } + if m.ArpDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.ArpDropCnt)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0xb0 + } + if m.ArpWmCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.ArpWmCnt)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0xa8 + } + if m.Ip6PktQueued != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.Ip6PktQueued)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0xa0 + } + if m.Ip6PktHandled != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.Ip6PktHandled)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0x98 + } + if m.Ip6DropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.Ip6DropCnt)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0x90 + } + if m.Ip6WmCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.Ip6WmCnt)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0x88 + } + if m.IpPktQueued != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.IpPktQueued)) + i-- + dAtA[i] = 0x1b + i-- + dAtA[i] = 0x80 + } + if m.IpPktHandled != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.IpPktHandled)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xf8 + } + if m.IpDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.IpDropCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xf0 + } + if m.IpWmCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.IpWmCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xe8 + } + if m.EtherPktQueued != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.EtherPktQueued)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xe0 + } + if m.EtherPktHandled != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.EtherPktHandled)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xd8 + } + if m.EtherDropCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.EtherDropCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xd0 + } + if m.EtherWmCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.EtherWmCnt)) + i-- + dAtA[i] = 0x1a + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelHealthKernelIfstateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelHealthKernelIfstateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelHealthKernelIfstateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientLimitReached != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.ClientLimitReached)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AliveClientsCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.AliveClientsCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.DeadClientsCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.DeadClientsCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.StuckClientsCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.StuckClientsCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.DelayedUnrefsMax != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.DelayedUnrefsMax)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DelayedUnrefsCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.DelayedUnrefsCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.AliveIfstatesCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.AliveIfstatesCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.DeadIfstatesCnt != nil { + i = encodeVarintJkhmdOc(dAtA, i, uint64(*m.DeadIfstatesCnt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJkhmdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovJkhmdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosKernelHealth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Security != nil { + l = m.Security.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.KernelIfstate != nil { + l = m.KernelIfstate.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Chassis != nil { + l = m.Chassis.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Kernel != nil { + l = m.Kernel.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.RoutingOptions != nil { + l = m.RoutingOptions.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthChassisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Gres != nil { + l = m.Gres.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Issu != nil { + l = m.Issu.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.AggregatedDevices != nil { + l = m.AggregatedDevices.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthChassisTypeGresType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GresTime != nil { + n += 2 + sovJkhmdOc(uint64(*m.GresTime)) + } + if m.SlaveConnectTime != nil { + n += 2 + sovJkhmdOc(uint64(*m.SlaveConnectTime)) + } + if m.ConfiguredState != nil { + l = len(*m.ConfiguredState) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.MasterKernelReady != nil { + l = len(*m.MasterKernelReady) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.SlaveKernelReady != nil { + l = len(*m.SlaveKernelReady) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.ErrorState != nil { + l = len(*m.ErrorState) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.OtherRePresent != nil { + l = len(*m.OtherRePresent) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.OtherReAlive != nil { + l = len(*m.OtherReAlive) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.IsProtocolMaster != nil { + l = len(*m.IsProtocolMaster) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthChassisTypeIssuType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FailureStage != nil { + l = len(*m.FailureStage) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.CurrentIssuStage != nil { + l = len(*m.CurrentIssuStage) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PsLtUnstackCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.PsLtUnstackCnt)) + } + if m.PsIflCccDownCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.PsIflCccDownCnt)) + } + if m.RltLpLinkDownCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.RltLpLinkDownCnt)) + } + if m.AeUnstackCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.AeUnstackCnt)) + } + if m.AeLpLinkDownCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.AeLpLinkDownCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthRoutingOptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NonstopRouting != nil { + l = m.NonstopRouting.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.JsrSplitFailureCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.JsrSplitFailureCnt)) + } + if m.JsrMergeFailureCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.JsrMergeFailureCnt)) + } + if m.JsrPrlQueueFullCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.JsrPrlQueueFullCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthSecurityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VeriexecState != nil { + l = len(*m.VeriexecState) + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Rtsock != nil { + l = m.Rtsock.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.PeerInfra != nil { + l = m.PeerInfra.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.RecordMetaData != nil { + l = m.RecordMetaData.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Vpls != nil { + l = m.Vpls.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Tunnel != nil { + l = m.Tunnel.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Multicast != nil { + l = m.Multicast.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Tnp != nil { + l = m.Tnp.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Tcpip != nil { + l = m.Tcpip.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypePeerInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerPfemanConnDrops != nil { + n += 2 + sovJkhmdOc(uint64(*m.PeerPfemanConnDrops)) + } + if m.SpuriousPptWkups != nil { + n += 2 + sovJkhmdOc(uint64(*m.SpuriousPptWkups)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeVplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UnicastTokenCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.UnicastTokenCnt)) + } + if m.UnicastTokenMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.UnicastTokenMax)) + } + if m.FloodTokenCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.FloodTokenCnt)) + } + if m.FloodTokenMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.FloodTokenMax)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTunnelType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RpfTunnelidCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.RpfTunnelidCnt)) + } + if m.RpfTunnelidMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.RpfTunnelidMax)) + } + if m.NonrpfTunnelidCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NonrpfTunnelidCnt)) + } + if m.NonrpfTunnelidMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NonrpfTunnelidMax)) + } + if m.LoopedCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.LoopedCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeMulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IifmismatchErrCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.IifmismatchErrCnt)) + } + if m.RslvReqErrCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.RslvReqErrCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTnpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TnpHelloDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.TnpHelloDropCnt)) + } + if m.TnpFragDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.TnpFragDropCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RecordTime != nil { + n += 2 + sovJkhmdOc(uint64(*m.RecordTime)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeRtsockType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TotalVetoCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.TotalVetoCnt)) + } + if m.TotalErrorCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.TotalErrorCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tcp != nil { + l = m.Tcp.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Nhidx != nil { + l = m.Nhidx.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Rtb != nil { + l = m.Rtb.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Arp != nil { + l = m.Arp.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Ndp != nil { + l = m.Ndp.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.Netisr != nil { + l = m.Netisr.Size() + n += 2 + l + sovJkhmdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TcpDdosAttackCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.TcpDdosAttackCnt)) + } + if m.TcpConndropsCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.TcpConndropsCnt)) + } + if m.TcpTimeWaitConn != nil { + n += 2 + sovJkhmdOc(uint64(*m.TcpTimeWaitConn)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NexthopPubMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NexthopPubMax)) + } + if m.NexthopPrivMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NexthopPrivMax)) + } + if m.NexthopPubCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NexthopPubCnt)) + } + if m.NexthopPrivCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NexthopPrivCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteCloneMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.RouteCloneMax)) + } + if m.RouteCloneCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.RouteCloneCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NbrcacheIriMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheIriMax)) + } + if m.NbrcacheMgmtMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheMgmtMax)) + } + if m.NbrcachePublicMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcachePublicMax)) + } + if m.NbrcacheIriCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheIriCnt)) + } + if m.NbrcacheMgmtCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheMgmtCnt)) + } + if m.NbrcachePublicCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcachePublicCnt)) + } + if m.NbrcacheIriDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheIriDropCnt)) + } + if m.NbrcacheMgmtDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheMgmtDropCnt)) + } + if m.NbrcachePublicDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcachePublicDropCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NbrcacheIriMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheIriMax)) + } + if m.NbrcacheMgmtMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheMgmtMax)) + } + if m.NbrcachePublicMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcachePublicMax)) + } + if m.NbrcacheIriCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheIriCnt)) + } + if m.NbrcacheMgmtCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheMgmtCnt)) + } + if m.NbrcachePublicCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcachePublicCnt)) + } + if m.NbrcacheIriDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheIriDropCnt)) + } + if m.NbrcacheMgmtDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcacheMgmtDropCnt)) + } + if m.NbrcachePublicDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.NbrcachePublicDropCnt)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EtherWmCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.EtherWmCnt)) + } + if m.EtherDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.EtherDropCnt)) + } + if m.EtherPktHandled != nil { + n += 2 + sovJkhmdOc(uint64(*m.EtherPktHandled)) + } + if m.EtherPktQueued != nil { + n += 2 + sovJkhmdOc(uint64(*m.EtherPktQueued)) + } + if m.IpWmCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.IpWmCnt)) + } + if m.IpDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.IpDropCnt)) + } + if m.IpPktHandled != nil { + n += 2 + sovJkhmdOc(uint64(*m.IpPktHandled)) + } + if m.IpPktQueued != nil { + n += 2 + sovJkhmdOc(uint64(*m.IpPktQueued)) + } + if m.Ip6WmCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.Ip6WmCnt)) + } + if m.Ip6DropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.Ip6DropCnt)) + } + if m.Ip6PktHandled != nil { + n += 2 + sovJkhmdOc(uint64(*m.Ip6PktHandled)) + } + if m.Ip6PktQueued != nil { + n += 2 + sovJkhmdOc(uint64(*m.Ip6PktQueued)) + } + if m.ArpWmCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.ArpWmCnt)) + } + if m.ArpDropCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.ArpDropCnt)) + } + if m.ArpPktHandled != nil { + n += 2 + sovJkhmdOc(uint64(*m.ArpPktHandled)) + } + if m.ArpPktQueued != nil { + n += 2 + sovJkhmdOc(uint64(*m.ArpPktQueued)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelHealthKernelIfstateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DeadIfstatesCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.DeadIfstatesCnt)) + } + if m.AliveIfstatesCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.AliveIfstatesCnt)) + } + if m.DelayedUnrefsCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.DelayedUnrefsCnt)) + } + if m.DelayedUnrefsMax != nil { + n += 2 + sovJkhmdOc(uint64(*m.DelayedUnrefsMax)) + } + if m.StuckClientsCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.StuckClientsCnt)) + } + if m.DeadClientsCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.DeadClientsCnt)) + } + if m.AliveClientsCnt != nil { + n += 2 + sovJkhmdOc(uint64(*m.AliveClientsCnt)) + } + if m.ClientLimitReached != nil { + n += 2 + sovJkhmdOc(uint64(*m.ClientLimitReached)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJkhmdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJkhmdOc(x uint64) (n int) { + return sovJkhmdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosKernelHealth) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_kernel_health: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_kernel_health: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 183: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Security", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Security == nil { + m.Security = &JunosKernelHealthSecurityType{} + } + if err := m.Security.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 186: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelIfstate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KernelIfstate == nil { + m.KernelIfstate = &JunosKernelHealthKernelIfstateType{} + } + if err := m.KernelIfstate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 191: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Chassis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Chassis == nil { + m.Chassis = &JunosKernelHealthChassisType{} + } + if err := m.Chassis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 192: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kernel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Kernel == nil { + m.Kernel = &JunosKernelHealthKernelType{} + } + if err := m.Kernel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 509: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RoutingOptions == nil { + m.RoutingOptions = &JunosKernelHealthRoutingOptionsType{} + } + if err := m.RoutingOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthChassisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: chassis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: chassis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 181: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gres", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gres == nil { + m.Gres = &JunosKernelHealthChassisTypeGresType{} + } + if err := m.Gres.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 182: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Issu", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Issu == nil { + m.Issu = &JunosKernelHealthChassisTypeIssuType{} + } + if err := m.Issu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 351: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregatedDevices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AggregatedDevices == nil { + m.AggregatedDevices = &JunosKernelHealthChassisTypeAggregatedDevicesType{} + } + if err := m.AggregatedDevices.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthChassisTypeGresType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: gres_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: gres_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GresTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GresTime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveConnectTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SlaveConnectTime = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ConfiguredState = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MasterKernelReady", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MasterKernelReady = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SlaveKernelReady", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SlaveKernelReady = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ErrorState = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OtherRePresent", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OtherRePresent = &s + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OtherReAlive", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OtherReAlive = &s + iNdEx = postIndex + case 165: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IsProtocolMaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IsProtocolMaster = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthChassisTypeIssuType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: issu_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: issu_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FailureStage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FailureStage = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentIssuStage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CurrentIssuStage = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthChassisTypeAggregatedDevicesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregated_devices_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregated_devices_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 311: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PsLtUnstackCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PsLtUnstackCnt = &v + case 312: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PsIflCccDownCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PsIflCccDownCnt = &v + case 313: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RltLpLinkDownCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RltLpLinkDownCnt = &v + case 314: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AeUnstackCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AeUnstackCnt = &v + case 315: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AeLpLinkDownCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AeLpLinkDownCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthRoutingOptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_options_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_options_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 510: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NonstopRouting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NonstopRouting == nil { + m.NonstopRouting = &JunosKernelHealthRoutingOptionsTypeNonstopRoutingType{} + } + if err := m.NonstopRouting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthRoutingOptionsTypeNonstopRoutingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nonstop_routing_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nonstop_routing_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 506: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JsrSplitFailureCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JsrSplitFailureCnt = &v + case 507: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JsrMergeFailureCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JsrMergeFailureCnt = &v + case 508: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JsrPrlQueueFullCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JsrPrlQueueFullCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthSecurityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: security_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: security_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VeriexecState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VeriexecState = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: kernel_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: kernel_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtsock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rtsock == nil { + m.Rtsock = &JunosKernelHealthKernelTypeRtsockType{} + } + if err := m.Rtsock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 184: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerInfra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PeerInfra == nil { + m.PeerInfra = &JunosKernelHealthKernelTypePeerInfraType{} + } + if err := m.PeerInfra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 185: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordMetaData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RecordMetaData == nil { + m.RecordMetaData = &JunosKernelHealthKernelTypeRecordMetaDataType{} + } + if err := m.RecordMetaData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 201: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vpls == nil { + m.Vpls = &JunosKernelHealthKernelTypeVplsType{} + } + if err := m.Vpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 202: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tunnel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tunnel == nil { + m.Tunnel = &JunosKernelHealthKernelTypeTunnelType{} + } + if err := m.Tunnel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 203: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Multicast == nil { + m.Multicast = &JunosKernelHealthKernelTypeMulticastType{} + } + if err := m.Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 225: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tnp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tnp == nil { + m.Tnp = &JunosKernelHealthKernelTypeTnpType{} + } + if err := m.Tnp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 598: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tcpip", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tcpip == nil { + m.Tcpip = &JunosKernelHealthKernelTypeTcpipType{} + } + if err := m.Tcpip.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypePeerInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peer_infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peer_infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerPfemanConnDrops", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeerPfemanConnDrops = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpuriousPptWkups", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpuriousPptWkups = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeVplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 213: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnicastTokenCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnicastTokenCnt = &v + case 214: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnicastTokenMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnicastTokenMax = &v + case 215: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FloodTokenCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FloodTokenCnt = &v + case 216: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FloodTokenMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FloodTokenMax = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTunnelType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tunnel_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tunnel_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 217: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RpfTunnelidCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RpfTunnelidCnt = &v + case 218: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RpfTunnelidMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RpfTunnelidMax = &v + case 219: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NonrpfTunnelidCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NonrpfTunnelidCnt = &v + case 220: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NonrpfTunnelidMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NonrpfTunnelidMax = &v + case 221: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LoopedCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LoopedCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeMulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 222: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IifmismatchErrCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IifmismatchErrCnt = &v + case 223: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RslvReqErrCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RslvReqErrCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTnpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tnp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tnp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 211: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TnpHelloDropCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TnpHelloDropCnt = &v + case 212: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TnpFragDropCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TnpFragDropCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeRecordMetaDataType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: record_meta_data_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: record_meta_data_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecordTime = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeRtsockType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rtsock_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rtsock_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 148: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalVetoCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalVetoCnt = &v + case 149: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalErrorCnt", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalErrorCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tcpip_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tcpip_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 511: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tcp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tcp == nil { + m.Tcp = &JunosKernelHealthKernelTypeTcpipTypeTcpType{} + } + if err := m.Tcp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 593: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nhidx", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nhidx == nil { + m.Nhidx = &JunosKernelHealthKernelTypeTcpipTypeNhidxType{} + } + if err := m.Nhidx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 594: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtb", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rtb == nil { + m.Rtb = &JunosKernelHealthKernelTypeTcpipTypeRtbType{} + } + if err := m.Rtb.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 595: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Arp == nil { + m.Arp = &JunosKernelHealthKernelTypeTcpipTypeArpType{} + } + if err := m.Arp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 596: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ndp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ndp == nil { + m.Ndp = &JunosKernelHealthKernelTypeTcpipTypeNdpType{} + } + if err := m.Ndp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 597: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Netisr", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Netisr == nil { + m.Netisr = &JunosKernelHealthKernelTypeTcpipTypeNetisrType{} + } + if err := m.Netisr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipTypeTcpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tcp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tcp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 502: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpDdosAttackCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TcpDdosAttackCnt = &v + case 503: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpConndropsCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TcpConndropsCnt = &v + case 504: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpTimeWaitConn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TcpTimeWaitConn = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNhidxType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nhidx_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nhidx_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 401: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopPubMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopPubMax = &v + case 402: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopPrivMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopPrivMax = &v + case 403: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopPubCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopPubCnt = &v + case 404: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopPrivCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopPrivCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipTypeRtbType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rtb_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rtb_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 405: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteCloneMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RouteCloneMax = &v + case 406: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteCloneCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RouteCloneCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipTypeArpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: arp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: arp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 407: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheIriMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheIriMax = &v + case 408: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheMgmtMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheMgmtMax = &v + case 409: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcachePublicMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcachePublicMax = &v + case 410: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheIriCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheIriCnt = &v + case 411: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheMgmtCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheMgmtCnt = &v + case 412: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcachePublicCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcachePublicCnt = &v + case 413: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheIriDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheIriDropCnt = &v + case 414: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheMgmtDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheMgmtDropCnt = &v + case 415: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcachePublicDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcachePublicDropCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNdpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ndp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ndp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 416: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheIriMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheIriMax = &v + case 417: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheMgmtMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheMgmtMax = &v + case 418: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcachePublicMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcachePublicMax = &v + case 419: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheIriCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheIriCnt = &v + case 420: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheMgmtCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheMgmtCnt = &v + case 421: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcachePublicCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcachePublicCnt = &v + case 422: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheIriDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheIriDropCnt = &v + case 423: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcacheMgmtDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcacheMgmtDropCnt = &v + case 424: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NbrcachePublicDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NbrcachePublicDropCnt = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelTypeTcpipTypeNetisrType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: netisr_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: netisr_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 425: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EtherWmCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EtherWmCnt = &v + case 426: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EtherDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EtherDropCnt = &v + case 427: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EtherPktHandled", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EtherPktHandled = &v + case 428: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EtherPktQueued", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EtherPktQueued = &v + case 429: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpWmCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpWmCnt = &v + case 430: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpDropCnt = &v + case 431: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPktHandled", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpPktHandled = &v + case 432: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPktQueued", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpPktQueued = &v + case 433: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip6WmCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ip6WmCnt = &v + case 434: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip6DropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ip6DropCnt = &v + case 435: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip6PktHandled", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ip6PktHandled = &v + case 436: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip6PktQueued", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ip6PktQueued = &v + case 437: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArpWmCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArpWmCnt = &v + case 438: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArpDropCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArpDropCnt = &v + case 439: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArpPktHandled", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArpPktHandled = &v + case 440: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArpPktQueued", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArpPktQueued = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelHealthKernelIfstateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: kernel_ifstate_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: kernel_ifstate_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeadIfstatesCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeadIfstatesCnt = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AliveIfstatesCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AliveIfstatesCnt = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelayedUnrefsCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DelayedUnrefsCnt = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DelayedUnrefsMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DelayedUnrefsMax = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StuckClientsCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StuckClientsCnt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeadClientsCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeadClientsCnt = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AliveClientsCnt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AliveClientsCnt = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientLimitReached", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientLimitReached = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJkhmdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkhmdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJkhmdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJkhmdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJkhmdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJkhmdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJkhmdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJkhmdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jkhmd_oc.proto b/schema/jkhmd_oc.proto new file mode 100755 index 0000000..9f2889f --- /dev/null +++ b/schema/jkhmd_oc.proto @@ -0,0 +1,168 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_kernel_health jnpr_junos_kernel_health_ext = 85; +} + +message junos_kernel_health { + optional chassis_type chassis = 191; + message chassis_type { + optional gres_type gres = 181; + message gres_type { + optional uint64 gres_time = 51; + optional uint64 slave_connect_time = 52; + optional string configured_state = 53; + optional string master_kernel_ready = 54; + optional string slave_kernel_ready = 55; + optional string error_state = 56; + optional string other_re_present = 151; + optional string other_re_alive = 152; + optional string is_protocol_master = 165; + } + optional issu_type issu = 182; + message issu_type { + optional string failure_stage = 51; + optional string current_issu_stage = 52; + } + optional aggregated_devices_type aggregated_devices = 351; + message aggregated_devices_type { + optional uint32 ps_lt_unstack_cnt = 311; + optional uint32 ps_ifl_ccc_down_cnt = 312; + optional uint32 rlt_lp_link_down_cnt = 313; + optional uint32 ae_unstack_cnt = 314; + optional uint32 ae_lp_link_down_cnt = 315; + } + } + optional routing_options_type routing_options = 509; + message routing_options_type { + optional nonstop_routing_type nonstop_routing = 510; + message nonstop_routing_type { + optional uint32 jsr_split_failure_cnt = 506; + optional uint32 jsr_merge_failure_cnt = 507; + optional uint32 jsr_prl_queue_full_cnt = 508; + } + } + optional security_type security = 183; + message security_type { + optional string veriexec_state = 51; + } + optional kernel_type kernel = 192; + message kernel_type { + optional peer_infra_type peer_infra = 184; + message peer_infra_type { + optional uint32 peer_pfeman_conn_drops = 51; + optional uint32 spurious_ppt_wkups = 52; + } + optional vpls_type vpls = 201; + message vpls_type { + optional uint32 unicast_token_cnt = 213; + optional uint32 unicast_token_max = 214; + optional uint32 flood_token_cnt = 215; + optional uint32 flood_token_max = 216; + } + optional tunnel_type tunnel = 202; + message tunnel_type { + optional uint32 rpf_tunnelid_cnt = 217; + optional uint32 rpf_tunnelid_max = 218; + optional uint32 nonrpf_tunnelid_cnt = 219; + optional uint32 nonrpf_tunnelid_max = 220; + optional uint32 looped_cnt = 221; + } + optional multicast_type multicast = 203; + message multicast_type { + optional uint64 iifmismatch_err_cnt = 222; + optional uint64 rslv_req_err_cnt = 223; + } + optional tnp_type tnp = 225; + message tnp_type { + optional uint64 tnp_hello_drop_cnt = 211; + optional uint64 tnp_frag_drop_cnt = 212; + } + optional record_meta_data_type record_meta_data = 185; + message record_meta_data_type { + optional uint64 record_time = 51; + } + optional rtsock_type rtsock = 153; + message rtsock_type { + optional uint64 total_veto_cnt = 148; + optional uint64 total_error_cnt = 149; + } + optional tcpip_type tcpip = 598; + message tcpip_type { + optional tcp_type tcp = 511; + message tcp_type { + optional uint32 tcp_ddos_attack_cnt = 502; + optional uint32 tcp_conndrops_cnt = 503; + optional uint64 tcp_time_wait_conn = 504; + } + optional nhidx_type nhidx = 593; + message nhidx_type { + optional uint32 nexthop_pub_max = 401; + optional uint32 nexthop_priv_max = 402; + optional uint32 nexthop_pub_cnt = 403; + optional uint32 nexthop_priv_cnt = 404; + } + optional rtb_type rtb = 594; + message rtb_type { + optional uint32 route_clone_max = 405; + optional uint32 route_clone_cnt = 406; + } + optional arp_type arp = 595; + message arp_type { + optional uint32 nbrcache_iri_max = 407; + optional uint32 nbrcache_mgmt_max = 408; + optional uint32 nbrcache_public_max = 409; + optional uint32 nbrcache_iri_cnt = 410; + optional uint32 nbrcache_mgmt_cnt = 411; + optional uint32 nbrcache_public_cnt = 412; + optional uint32 nbrcache_iri_drop_cnt = 413; + optional uint32 nbrcache_mgmt_drop_cnt = 414; + optional uint32 nbrcache_public_drop_cnt = 415; + } + optional ndp_type ndp = 596; + message ndp_type { + optional uint32 nbrcache_iri_max = 416; + optional uint32 nbrcache_mgmt_max = 417; + optional uint32 nbrcache_public_max = 418; + optional uint32 nbrcache_iri_cnt = 419; + optional uint32 nbrcache_mgmt_cnt = 420; + optional uint32 nbrcache_public_cnt = 421; + optional uint32 nbrcache_iri_drop_cnt = 422; + optional uint32 nbrcache_mgmt_drop_cnt = 423; + optional uint32 nbrcache_public_drop_cnt = 424; + } + optional netisr_type netisr = 597; + message netisr_type { + optional uint32 ether_wm_cnt = 425; + optional uint32 ether_drop_cnt = 426; + optional uint64 ether_pkt_handled = 427; + optional uint64 ether_pkt_queued = 428; + optional uint32 ip_wm_cnt = 429; + optional uint32 ip_drop_cnt = 430; + optional uint64 ip_pkt_handled = 431; + optional uint64 ip_pkt_queued = 432; + optional uint32 ip6_wm_cnt = 433; + optional uint32 ip6_drop_cnt = 434; + optional uint64 ip6_pkt_handled = 435; + optional uint64 ip6_pkt_queued = 436; + optional uint32 arp_wm_cnt = 437; + optional uint32 arp_drop_cnt = 438; + optional uint64 arp_pkt_handled = 439; + optional uint64 arp_pkt_queued = 440; + } + } + } + optional kernel_ifstate_type kernel_ifstate = 186; + message kernel_ifstate_type { + optional uint32 dead_ifstates_cnt = 51; + optional uint32 alive_ifstates_cnt = 52; + optional uint32 delayed_unrefs_cnt = 53; + optional uint32 delayed_unrefs_max = 54; + optional uint32 stuck_clients_cnt = 55; + optional uint32 dead_clients_cnt = 56; + optional uint32 alive_clients_cnt = 57; + optional uint32 client_limit_reached = 58; + } +} diff --git a/schema/jkhmd_resiliency_render.pb.go b/schema/jkhmd_resiliency_render.pb.go new file mode 100644 index 0000000..c4f06c7 --- /dev/null +++ b/schema/jkhmd_resiliency_render.pb.go @@ -0,0 +1,2165 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jkhmd_resiliency_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosKernel struct { + ExceptionProfiles *JunosKernelExceptionProfilesType `protobuf:"bytes,151,opt,name=exception_profiles,json=exceptionProfiles" json:"exception_profiles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernel) Reset() { *m = JunosKernel{} } +func (m *JunosKernel) String() string { return proto.CompactTextString(m) } +func (*JunosKernel) ProtoMessage() {} +func (*JunosKernel) Descriptor() ([]byte, []int) { + return fileDescriptor_f84bd7927cdadaac, []int{0} +} +func (m *JunosKernel) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernel.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernel) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernel.Merge(m, src) +} +func (m *JunosKernel) XXX_Size() int { + return m.Size() +} +func (m *JunosKernel) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernel.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernel proto.InternalMessageInfo + +func (m *JunosKernel) GetExceptionProfiles() *JunosKernelExceptionProfilesType { + if m != nil { + return m.ExceptionProfiles + } + return nil +} + +type JunosKernelExceptionProfilesType struct { + OsProfile *JunosKernelExceptionProfilesTypeOsProfileType `protobuf:"bytes,152,opt,name=os_profile,json=osProfile" json:"os_profile,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelExceptionProfilesType) Reset() { *m = JunosKernelExceptionProfilesType{} } +func (m *JunosKernelExceptionProfilesType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelExceptionProfilesType) ProtoMessage() {} +func (*JunosKernelExceptionProfilesType) Descriptor() ([]byte, []int) { + return fileDescriptor_f84bd7927cdadaac, []int{0, 0} +} +func (m *JunosKernelExceptionProfilesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelExceptionProfilesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelExceptionProfilesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelExceptionProfilesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelExceptionProfilesType.Merge(m, src) +} +func (m *JunosKernelExceptionProfilesType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelExceptionProfilesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelExceptionProfilesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelExceptionProfilesType proto.InternalMessageInfo + +func (m *JunosKernelExceptionProfilesType) GetOsProfile() *JunosKernelExceptionProfilesTypeOsProfileType { + if m != nil { + return m.OsProfile + } + return nil +} + +type JunosKernelExceptionProfilesTypeOsProfileType struct { + IncidentDescriptor *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType `protobuf:"bytes,151,opt,name=incident_descriptor,json=incidentDescriptor" json:"incident_descriptor,omitempty"` + ExceptionType *string `protobuf:"bytes,52,opt,name=exception_type,json=exceptionType" json:"exception_type,omitempty"` + ExceptionOwner *string `protobuf:"bytes,53,opt,name=exception_owner,json=exceptionOwner" json:"exception_owner,omitempty"` + OsCounters *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType `protobuf:"bytes,152,opt,name=os_counters,json=osCounters" json:"os_counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) Reset() { + *m = JunosKernelExceptionProfilesTypeOsProfileType{} +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelExceptionProfilesTypeOsProfileType) ProtoMessage() {} +func (*JunosKernelExceptionProfilesTypeOsProfileType) Descriptor() ([]byte, []int) { + return fileDescriptor_f84bd7927cdadaac, []int{0, 0, 0} +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileType.Merge(m, src) +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileType proto.InternalMessageInfo + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) GetIncidentDescriptor() *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType { + if m != nil { + return m.IncidentDescriptor + } + return nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) GetExceptionType() string { + if m != nil && m.ExceptionType != nil { + return *m.ExceptionType + } + return "" +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) GetExceptionOwner() string { + if m != nil && m.ExceptionOwner != nil { + return *m.ExceptionOwner + } + return "" +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) GetOsCounters() *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType { + if m != nil { + return m.OsCounters + } + return nil +} + +type JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType struct { + ExceptionCode *string `protobuf:"bytes,52,opt,name=exception_code,json=exceptionCode" json:"exception_code,omitempty"` + Description *string `protobuf:"bytes,53,opt,name=description" json:"description,omitempty"` + HostId *string `protobuf:"bytes,54,opt,name=host_id,json=hostId" json:"host_id,omitempty"` + ResourceId *string `protobuf:"bytes,55,opt,name=resource_id,json=resourceId" json:"resource_id,omitempty"` + Timestamp *uint64 `protobuf:"varint,56,opt,name=timestamp" json:"timestamp,omitempty"` + Id *uint64 `protobuf:"varint,51,opt,name=id" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) Reset() { + *m = JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType{} +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) ProtoMessage() {} +func (*JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) Descriptor() ([]byte, []int) { + return fileDescriptor_f84bd7927cdadaac, []int{0, 0, 0, 0} +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType.Merge(m, src) +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType proto.InternalMessageInfo + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) GetExceptionCode() string { + if m != nil && m.ExceptionCode != nil { + return *m.ExceptionCode + } + return "" +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) GetHostId() string { + if m != nil && m.HostId != nil { + return *m.HostId + } + return "" +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) GetResourceId() string { + if m != nil && m.ResourceId != nil { + return *m.ResourceId + } + return "" +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) GetTimestamp() uint64 { + if m != nil && m.Timestamp != nil { + return *m.Timestamp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) GetId() uint64 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +type JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType struct { + IsrsLowOnMbufClusters *uint32 `protobuf:"varint,51,opt,name=isrs_low_on_mbuf_clusters,json=isrsLowOnMbufClusters" json:"isrs_low_on_mbuf_clusters,omitempty"` + IsrsMbufAllocFailures *uint64 `protobuf:"varint,52,opt,name=isrs_mbuf_alloc_failures,json=isrsMbufAllocFailures" json:"isrs_mbuf_alloc_failures,omitempty"` + IsrsMbufClusterAllocFailures *uint64 `protobuf:"varint,53,opt,name=isrs_mbuf_cluster_alloc_failures,json=isrsMbufClusterAllocFailures" json:"isrs_mbuf_cluster_alloc_failures,omitempty"` + NwQueueDropsEther *uint32 `protobuf:"varint,54,opt,name=nw_queue_drops_ether,json=nwQueueDropsEther" json:"nw_queue_drops_ether,omitempty"` + NwQueueDropsIp *uint32 `protobuf:"varint,55,opt,name=nw_queue_drops_ip,json=nwQueueDropsIp" json:"nw_queue_drops_ip,omitempty"` + NwQueueDropsIpv6 *uint32 `protobuf:"varint,56,opt,name=nw_queue_drops_ipv6,json=nwQueueDropsIpv6" json:"nw_queue_drops_ipv6,omitempty"` + NwQueueDropsArp *uint32 `protobuf:"varint,57,opt,name=nw_queue_drops_arp,json=nwQueueDropsArp" json:"nw_queue_drops_arp,omitempty"` + NwQueueDropsBgp *uint64 `protobuf:"varint,58,opt,name=nw_queue_drops_bgp,json=nwQueueDropsBgp" json:"nw_queue_drops_bgp,omitempty"` + NwQueueDropsOspf *uint64 `protobuf:"varint,59,opt,name=nw_queue_drops_ospf,json=nwQueueDropsOspf" json:"nw_queue_drops_ospf,omitempty"` + NwQueueDropsRsvp *uint64 `protobuf:"varint,60,opt,name=nw_queue_drops_rsvp,json=nwQueueDropsRsvp" json:"nw_queue_drops_rsvp,omitempty"` + NwQueueDropsIsis *uint64 `protobuf:"varint,61,opt,name=nw_queue_drops_isis,json=nwQueueDropsIsis" json:"nw_queue_drops_isis,omitempty"` + NwQueueDropsMpls *uint64 `protobuf:"varint,62,opt,name=nw_queue_drops_mpls,json=nwQueueDropsMpls" json:"nw_queue_drops_mpls,omitempty"` + NwQueueDropsTcp *uint64 `protobuf:"varint,63,opt,name=nw_queue_drops_tcp,json=nwQueueDropsTcp" json:"nw_queue_drops_tcp,omitempty"` + NwQueueDropsUdp *uint64 `protobuf:"varint,64,opt,name=nw_queue_drops_udp,json=nwQueueDropsUdp" json:"nw_queue_drops_udp,omitempty"` + NwQueueDropsIcmp *uint64 `protobuf:"varint,65,opt,name=nw_queue_drops_icmp,json=nwQueueDropsIcmp" json:"nw_queue_drops_icmp,omitempty"` + NwQueueDropsIcmp6 *uint64 `protobuf:"varint,66,opt,name=nw_queue_drops_icmp6,json=nwQueueDropsIcmp6" json:"nw_queue_drops_icmp6,omitempty"` + NwQueueDropsTtp *uint64 `protobuf:"varint,67,opt,name=nw_queue_drops_ttp,json=nwQueueDropsTtp" json:"nw_queue_drops_ttp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) Reset() { + *m = JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType{} +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) ProtoMessage() {} +func (*JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_f84bd7927cdadaac, []int{0, 0, 0, 1} +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType.Merge(m, src) +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType proto.InternalMessageInfo + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetIsrsLowOnMbufClusters() uint32 { + if m != nil && m.IsrsLowOnMbufClusters != nil { + return *m.IsrsLowOnMbufClusters + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetIsrsMbufAllocFailures() uint64 { + if m != nil && m.IsrsMbufAllocFailures != nil { + return *m.IsrsMbufAllocFailures + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetIsrsMbufClusterAllocFailures() uint64 { + if m != nil && m.IsrsMbufClusterAllocFailures != nil { + return *m.IsrsMbufClusterAllocFailures + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsEther() uint32 { + if m != nil && m.NwQueueDropsEther != nil { + return *m.NwQueueDropsEther + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsIp() uint32 { + if m != nil && m.NwQueueDropsIp != nil { + return *m.NwQueueDropsIp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsIpv6() uint32 { + if m != nil && m.NwQueueDropsIpv6 != nil { + return *m.NwQueueDropsIpv6 + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsArp() uint32 { + if m != nil && m.NwQueueDropsArp != nil { + return *m.NwQueueDropsArp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsBgp() uint64 { + if m != nil && m.NwQueueDropsBgp != nil { + return *m.NwQueueDropsBgp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsOspf() uint64 { + if m != nil && m.NwQueueDropsOspf != nil { + return *m.NwQueueDropsOspf + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsRsvp() uint64 { + if m != nil && m.NwQueueDropsRsvp != nil { + return *m.NwQueueDropsRsvp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsIsis() uint64 { + if m != nil && m.NwQueueDropsIsis != nil { + return *m.NwQueueDropsIsis + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsMpls() uint64 { + if m != nil && m.NwQueueDropsMpls != nil { + return *m.NwQueueDropsMpls + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsTcp() uint64 { + if m != nil && m.NwQueueDropsTcp != nil { + return *m.NwQueueDropsTcp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsUdp() uint64 { + if m != nil && m.NwQueueDropsUdp != nil { + return *m.NwQueueDropsUdp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsIcmp() uint64 { + if m != nil && m.NwQueueDropsIcmp != nil { + return *m.NwQueueDropsIcmp + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsIcmp6() uint64 { + if m != nil && m.NwQueueDropsIcmp6 != nil { + return *m.NwQueueDropsIcmp6 + } + return 0 +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) GetNwQueueDropsTtp() uint64 { + if m != nil && m.NwQueueDropsTtp != nil { + return *m.NwQueueDropsTtp + } + return 0 +} + +var E_JnprJunosKernelExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosKernel)(nil), + Field: 120, + Name: "jnpr_junos_kernel_ext", + Tag: "bytes,120,opt,name=jnpr_junos_kernel_ext", + Filename: "jkhmd_resiliency_render.proto", +} + +func init() { + proto.RegisterType((*JunosKernel)(nil), "junos_kernel") + proto.RegisterType((*JunosKernelExceptionProfilesType)(nil), "junos_kernel.exception_profiles_type") + proto.RegisterType((*JunosKernelExceptionProfilesTypeOsProfileType)(nil), "junos_kernel.exception_profiles_type.os_profile_type") + proto.RegisterType((*JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType)(nil), "junos_kernel.exception_profiles_type.os_profile_type.incident_descriptor_type") + proto.RegisterType((*JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType)(nil), "junos_kernel.exception_profiles_type.os_profile_type.os_counters_type") + proto.RegisterExtension(E_JnprJunosKernelExt) +} + +func init() { proto.RegisterFile("jkhmd_resiliency_render.proto", fileDescriptor_f84bd7927cdadaac) } + +var fileDescriptor_f84bd7927cdadaac = []byte{ + // 792 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xc7, 0xb5, 0x55, 0x55, 0x94, 0x71, 0x9d, 0x34, 0x13, 0xaa, 0x0c, 0x56, 0x09, 0x16, 0x52, + 0x45, 0x10, 0x8a, 0x57, 0x02, 0x92, 0x96, 0xf2, 0x9a, 0xa4, 0x8d, 0x94, 0x42, 0x1b, 0x58, 0x9a, + 0x03, 0x5c, 0x86, 0xf5, 0xee, 0x63, 0x7b, 0x9c, 0xdd, 0x99, 0x61, 0x9e, 0x59, 0xdb, 0xb9, 0xf1, + 0x2d, 0xe0, 0x23, 0x21, 0x71, 0x80, 0x0b, 0x77, 0x94, 0x0b, 0x5f, 0x80, 0x0f, 0x80, 0x66, 0xbc, + 0x8e, 0x5f, 0x76, 0x2b, 0x55, 0x3d, 0xfa, 0xff, 0xff, 0x3d, 0x2f, 0xff, 0xc7, 0xf6, 0x90, 0xb7, + 0x87, 0x17, 0x83, 0x3c, 0xe5, 0x06, 0x50, 0x64, 0x02, 0x64, 0x72, 0xc9, 0x0d, 0xc8, 0x14, 0x4c, + 0x47, 0x1b, 0x65, 0x55, 0x6b, 0xcb, 0x42, 0x06, 0x39, 0x58, 0x73, 0xc9, 0xad, 0xd2, 0x53, 0xf1, + 0xdd, 0x3f, 0x6f, 0x93, 0xdb, 0xc3, 0x42, 0x2a, 0xe4, 0x17, 0x60, 0x24, 0x64, 0xf4, 0x9c, 0x50, + 0x98, 0x24, 0xa0, 0xad, 0x50, 0x92, 0x6b, 0xa3, 0x7a, 0x22, 0x03, 0x64, 0xbf, 0x06, 0xed, 0x60, + 0xb7, 0xf1, 0xe1, 0xfd, 0xce, 0x22, 0xdb, 0xa9, 0x82, 0xdc, 0x5e, 0x6a, 0x88, 0x36, 0xaf, 0x8d, + 0x6f, 0x4b, 0xbd, 0xf5, 0x6f, 0x83, 0x6c, 0xbf, 0x04, 0xa7, 0xe7, 0x84, 0x28, 0x9c, 0x69, 0xec, + 0xb7, 0xe9, 0xa8, 0xfd, 0x57, 0x1a, 0xd5, 0x99, 0x17, 0x4e, 0x47, 0xaf, 0x29, 0x2c, 0x67, 0xb6, + 0xfe, 0x23, 0x64, 0x63, 0xc5, 0xa6, 0xbf, 0x04, 0x64, 0x4b, 0xc8, 0x44, 0xa4, 0x20, 0x2d, 0x4f, + 0x01, 0x13, 0x23, 0xb4, 0x55, 0x66, 0x96, 0xef, 0xf9, 0x6b, 0x0d, 0xed, 0xd4, 0x74, 0x9c, 0x6e, + 0x43, 0x67, 0xce, 0xe3, 0x6b, 0x83, 0xde, 0x27, 0xeb, 0xf3, 0xbe, 0x8e, 0x62, 0x1f, 0xb7, 0x83, + 0xdd, 0xb5, 0xa8, 0x79, 0xad, 0xbe, 0x70, 0x9b, 0xbe, 0x47, 0x36, 0xe6, 0x98, 0x1a, 0x4b, 0x30, + 0x6c, 0xdf, 0x73, 0xf3, 0xea, 0x33, 0xa7, 0xd2, 0x01, 0x69, 0x28, 0xe4, 0x89, 0x2a, 0xa4, 0x05, + 0x83, 0xb3, 0xf3, 0x9d, 0xbc, 0x5e, 0x92, 0x85, 0x4e, 0xd3, 0x04, 0x44, 0xe1, 0x71, 0x29, 0xb4, + 0xfe, 0x08, 0x08, 0x7b, 0x59, 0xd4, 0xe5, 0x58, 0x89, 0x4a, 0xab, 0xb1, 0x8e, 0x55, 0x0a, 0xb4, + 0x4d, 0x1a, 0xb3, 0x4a, 0xa1, 0x64, 0x19, 0x69, 0x51, 0xa2, 0xdb, 0xe4, 0x8d, 0x81, 0x42, 0xcb, + 0x45, 0xca, 0x0e, 0xbc, 0x7b, 0xcb, 0x7d, 0x3c, 0x4d, 0xe9, 0x3b, 0xa4, 0x61, 0x00, 0x55, 0x61, + 0x12, 0x70, 0xe6, 0x03, 0x6f, 0x92, 0x99, 0x74, 0x9a, 0xd2, 0x7b, 0x64, 0xcd, 0x8a, 0x1c, 0xd0, + 0xc6, 0xb9, 0x66, 0x0f, 0xdb, 0xc1, 0xee, 0xcd, 0x68, 0x2e, 0xd0, 0x75, 0x72, 0x43, 0xa4, 0xec, + 0x23, 0x2f, 0xdf, 0x10, 0x69, 0xeb, 0xef, 0x5b, 0xe4, 0xce, 0x6a, 0x5c, 0xfa, 0x90, 0xbc, 0x25, + 0xd0, 0x20, 0xcf, 0xd4, 0x98, 0x2b, 0xc9, 0xf3, 0x6e, 0xd1, 0xe3, 0x49, 0x56, 0xa0, 0x3f, 0xad, + 0xab, 0x6d, 0x46, 0x77, 0x1d, 0xf0, 0x8d, 0x1a, 0x9f, 0xc9, 0x67, 0xdd, 0xa2, 0x77, 0x5c, 0x9a, + 0xf4, 0x01, 0x61, 0xbe, 0xd2, 0x97, 0xc4, 0x59, 0xa6, 0x12, 0xde, 0x8b, 0x45, 0x56, 0x18, 0x40, + 0x7f, 0x89, 0x9b, 0xd3, 0x42, 0x57, 0x73, 0xe8, 0xdc, 0x93, 0xd2, 0xa4, 0x27, 0xa4, 0x3d, 0x2f, + 0x2c, 0x67, 0xad, 0x36, 0xd8, 0xf7, 0x0d, 0xee, 0xcd, 0x1a, 0x94, 0x43, 0x97, 0xfb, 0x84, 0xe4, + 0x4d, 0x39, 0xe6, 0x3f, 0x17, 0x50, 0x00, 0x4f, 0x8d, 0xd2, 0xc8, 0xc1, 0x0e, 0xc0, 0xf8, 0x23, + 0x36, 0xa3, 0x4d, 0x39, 0xfe, 0xce, 0x59, 0x8f, 0x9d, 0xf3, 0xc4, 0x19, 0xf4, 0x7d, 0xb2, 0xb9, + 0x52, 0x20, 0xb4, 0xbf, 0x6a, 0x33, 0x5a, 0x5f, 0xa4, 0x4f, 0x35, 0xdd, 0x23, 0x5b, 0x15, 0x74, + 0x74, 0xe0, 0x6f, 0xdc, 0x8c, 0xee, 0x2c, 0xc3, 0xa3, 0x03, 0xfa, 0x01, 0xa1, 0x2b, 0x78, 0x6c, + 0x34, 0xfb, 0xc4, 0xd3, 0x1b, 0x8b, 0xf4, 0xa1, 0xd1, 0x35, 0x70, 0xb7, 0xaf, 0xd9, 0x23, 0x9f, + 0x78, 0x09, 0x3e, 0xea, 0xd7, 0x2d, 0xa2, 0x50, 0xf7, 0xd8, 0xa7, 0x9e, 0x5e, 0x5a, 0xe4, 0x0c, + 0x75, 0xaf, 0x06, 0x37, 0x38, 0xd2, 0xec, 0xb3, 0x2a, 0x1e, 0xe1, 0xa8, 0x36, 0x26, 0x0a, 0x64, + 0x9f, 0x57, 0xf1, 0x53, 0x14, 0x58, 0x83, 0xe7, 0x3a, 0x43, 0xf6, 0x45, 0x15, 0x7f, 0xa6, 0x33, + 0xac, 0x09, 0x6a, 0x13, 0xcd, 0xbe, 0xac, 0x06, 0x7d, 0x91, 0xd4, 0x5d, 0xa5, 0x48, 0x35, 0xfb, + 0xaa, 0x0a, 0x9f, 0xa7, 0xb5, 0x7b, 0x27, 0xb9, 0x66, 0x87, 0x35, 0x7b, 0x27, 0xb9, 0xae, 0xf9, + 0xa5, 0x38, 0xfc, 0x80, 0x1d, 0x79, 0x7e, 0x73, 0x95, 0xaf, 0xfb, 0x3e, 0xad, 0xd5, 0xec, 0xb8, + 0x66, 0x73, 0xab, 0x1f, 0xfd, 0x40, 0xee, 0x0e, 0xa5, 0x36, 0x7c, 0xf1, 0xfd, 0xe1, 0x30, 0xb1, + 0x74, 0xbb, 0xf3, 0xb4, 0x90, 0x42, 0x83, 0x79, 0x0e, 0x76, 0xac, 0xcc, 0x05, 0x7e, 0x0f, 0x12, + 0x95, 0x41, 0x36, 0xf1, 0x2f, 0x56, 0x73, 0xe9, 0xc5, 0x8a, 0xa8, 0x6b, 0xf2, 0xd4, 0x29, 0x5f, + 0x7b, 0xe1, 0xc9, 0xc4, 0x1e, 0xfd, 0xf4, 0xfb, 0xd5, 0x4e, 0xf0, 0xd7, 0xd5, 0x4e, 0xf0, 0xcf, + 0xd5, 0x4e, 0xf0, 0x63, 0xd4, 0x17, 0xd6, 0xd5, 0xb8, 0x96, 0x1d, 0x09, 0x36, 0x14, 0x09, 0x74, + 0xc1, 0xf4, 0xc3, 0x01, 0xc4, 0x99, 0x1d, 0x74, 0x95, 0xdd, 0x13, 0xb2, 0x0f, 0x68, 0xf7, 0x86, + 0x56, 0xec, 0xc9, 0xd8, 0x8a, 0x11, 0x84, 0xfa, 0xa2, 0x1f, 0x0e, 0xad, 0x08, 0xe3, 0x34, 0xd6, + 0xee, 0x7f, 0x1b, 0x4e, 0xf7, 0x0c, 0x31, 0x19, 0x40, 0x1e, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, + 0xda, 0xbd, 0x71, 0x88, 0x43, 0x07, 0x00, 0x00, +} + +func (m *JunosKernel) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernel) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernel) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExceptionProfiles != nil { + { + size, err := m.ExceptionProfiles.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelExceptionProfilesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelExceptionProfilesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelExceptionProfilesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OsProfile != nil { + { + size, err := m.OsProfile.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OsCounters != nil { + { + size, err := m.OsCounters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.IncidentDescriptor != nil { + { + size, err := m.IncidentDescriptor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ExceptionOwner != nil { + i -= len(*m.ExceptionOwner) + copy(dAtA[i:], *m.ExceptionOwner) + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(len(*m.ExceptionOwner))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.ExceptionType != nil { + i -= len(*m.ExceptionType) + copy(dAtA[i:], *m.ExceptionType) + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(len(*m.ExceptionType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Timestamp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.Timestamp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ResourceId != nil { + i -= len(*m.ResourceId) + copy(dAtA[i:], *m.ResourceId) + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(len(*m.ResourceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.HostId != nil { + i -= len(*m.HostId) + copy(dAtA[i:], *m.HostId) + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(len(*m.HostId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.ExceptionCode != nil { + i -= len(*m.ExceptionCode) + copy(dAtA[i:], *m.ExceptionCode) + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(len(*m.ExceptionCode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Id != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NwQueueDropsTtp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsTtp)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.NwQueueDropsIcmp6 != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsIcmp6)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.NwQueueDropsIcmp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsIcmp)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.NwQueueDropsUdp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsUdp)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.NwQueueDropsTcp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsTcp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.NwQueueDropsMpls != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsMpls)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.NwQueueDropsIsis != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsIsis)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.NwQueueDropsRsvp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsRsvp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.NwQueueDropsOspf != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsOspf)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.NwQueueDropsBgp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsBgp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.NwQueueDropsArp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsArp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.NwQueueDropsIpv6 != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsIpv6)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.NwQueueDropsIp != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsIp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NwQueueDropsEther != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.NwQueueDropsEther)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.IsrsMbufClusterAllocFailures != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.IsrsMbufClusterAllocFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.IsrsMbufAllocFailures != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.IsrsMbufAllocFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.IsrsLowOnMbufClusters != nil { + i = encodeVarintJkhmdResiliencyRender(dAtA, i, uint64(*m.IsrsLowOnMbufClusters)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJkhmdResiliencyRender(dAtA []byte, offset int, v uint64) int { + offset -= sovJkhmdResiliencyRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosKernel) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ExceptionProfiles != nil { + l = m.ExceptionProfiles.Size() + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelExceptionProfilesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OsProfile != nil { + l = m.OsProfile.Size() + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ExceptionType != nil { + l = len(*m.ExceptionType) + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.ExceptionOwner != nil { + l = len(*m.ExceptionOwner) + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.IncidentDescriptor != nil { + l = m.IncidentDescriptor.Size() + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.OsCounters != nil { + l = m.OsCounters.Size() + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.Id)) + } + if m.ExceptionCode != nil { + l = len(*m.ExceptionCode) + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.HostId != nil { + l = len(*m.HostId) + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.ResourceId != nil { + l = len(*m.ResourceId) + n += 2 + l + sovJkhmdResiliencyRender(uint64(l)) + } + if m.Timestamp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.Timestamp)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IsrsLowOnMbufClusters != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.IsrsLowOnMbufClusters)) + } + if m.IsrsMbufAllocFailures != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.IsrsMbufAllocFailures)) + } + if m.IsrsMbufClusterAllocFailures != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.IsrsMbufClusterAllocFailures)) + } + if m.NwQueueDropsEther != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsEther)) + } + if m.NwQueueDropsIp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsIp)) + } + if m.NwQueueDropsIpv6 != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsIpv6)) + } + if m.NwQueueDropsArp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsArp)) + } + if m.NwQueueDropsBgp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsBgp)) + } + if m.NwQueueDropsOspf != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsOspf)) + } + if m.NwQueueDropsRsvp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsRsvp)) + } + if m.NwQueueDropsIsis != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsIsis)) + } + if m.NwQueueDropsMpls != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsMpls)) + } + if m.NwQueueDropsTcp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsTcp)) + } + if m.NwQueueDropsUdp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsUdp)) + } + if m.NwQueueDropsIcmp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsIcmp)) + } + if m.NwQueueDropsIcmp6 != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsIcmp6)) + } + if m.NwQueueDropsTtp != nil { + n += 2 + sovJkhmdResiliencyRender(uint64(*m.NwQueueDropsTtp)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJkhmdResiliencyRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJkhmdResiliencyRender(x uint64) (n int) { + return sovJkhmdResiliencyRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosKernel) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_kernel: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_kernel: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExceptionProfiles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExceptionProfiles == nil { + m.ExceptionProfiles = &JunosKernelExceptionProfilesType{} + } + if err := m.ExceptionProfiles.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdResiliencyRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelExceptionProfilesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: exception_profiles_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: exception_profiles_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OsProfile", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OsProfile == nil { + m.OsProfile = &JunosKernelExceptionProfilesTypeOsProfileType{} + } + if err := m.OsProfile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdResiliencyRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelExceptionProfilesTypeOsProfileType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: os_profile_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: os_profile_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExceptionType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExceptionType = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExceptionOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExceptionOwner = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncidentDescriptor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IncidentDescriptor == nil { + m.IncidentDescriptor = &JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType{} + } + if err := m.IncidentDescriptor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OsCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OsCounters == nil { + m.OsCounters = &JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType{} + } + if err := m.OsCounters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJkhmdResiliencyRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeIncidentDescriptorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: incident_descriptor_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: incident_descriptor_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExceptionCode = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HostId = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ResourceId = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Timestamp = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdResiliencyRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelExceptionProfilesTypeOsProfileTypeOsCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: os_counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: os_counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsrsLowOnMbufClusters", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsrsLowOnMbufClusters = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsrsMbufAllocFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsrsMbufAllocFailures = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsrsMbufClusterAllocFailures", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsrsMbufClusterAllocFailures = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsEther", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsEther = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsIp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsIp = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsIpv6", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsIpv6 = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsArp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsArp = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsBgp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsBgp = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsOspf", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsOspf = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsRsvp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsRsvp = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsIsis", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsIsis = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsMpls", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsMpls = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsTcp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsTcp = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsUdp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsUdp = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsIcmp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsIcmp = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsIcmp6", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsIcmp6 = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NwQueueDropsTtp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NwQueueDropsTtp = &v + default: + iNdEx = preIndex + skippy, err := skipJkhmdResiliencyRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJkhmdResiliencyRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJkhmdResiliencyRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJkhmdResiliencyRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJkhmdResiliencyRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJkhmdResiliencyRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJkhmdResiliencyRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJkhmdResiliencyRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJkhmdResiliencyRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJkhmdResiliencyRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jkhmd_resiliency_render.proto b/schema/jkhmd_resiliency_render.proto new file mode 100755 index 0000000..b69c501 --- /dev/null +++ b/schema/jkhmd_resiliency_render.proto @@ -0,0 +1,47 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_kernel jnpr_junos_kernel_ext = 120; +} + +message junos_kernel { + optional exception_profiles_type exception_profiles = 151; + message exception_profiles_type { + optional os_profile_type os_profile = 152; + message os_profile_type { + optional incident_descriptor_type incident_descriptor = 151; + message incident_descriptor_type { + optional string exception_code = 52; + optional string description = 53; + optional string host_id = 54; + optional string resource_id = 55; + optional uint64 timestamp = 56; + optional uint64 id = 51; + } + optional string exception_type = 52; + optional string exception_owner = 53; + optional os_counters_type os_counters = 152; + message os_counters_type { + optional uint32 isrs_low_on_mbuf_clusters = 51; + optional uint64 isrs_mbuf_alloc_failures = 52; + optional uint64 isrs_mbuf_cluster_alloc_failures = 53; + optional uint32 nw_queue_drops_ether = 54; + optional uint32 nw_queue_drops_ip = 55; + optional uint32 nw_queue_drops_ipv6 = 56; + optional uint32 nw_queue_drops_arp = 57; + optional uint64 nw_queue_drops_bgp = 58; + optional uint64 nw_queue_drops_ospf = 59; + optional uint64 nw_queue_drops_rsvp = 60; + optional uint64 nw_queue_drops_isis = 61; + optional uint64 nw_queue_drops_mpls = 62; + optional uint64 nw_queue_drops_tcp = 63; + optional uint64 nw_queue_drops_udp = 64; + optional uint64 nw_queue_drops_icmp = 65; + optional uint64 nw_queue_drops_icmp6 = 66; + optional uint64 nw_queue_drops_ttp = 67; + } + } + } +} diff --git a/schema/jl2tpd_oc.pb.go b/schema/jl2tpd_oc.pb.go new file mode 100644 index 0000000..d5b5eab --- /dev/null +++ b/schema/jl2tpd_oc.pb.go @@ -0,0 +1,1767 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jl2tpd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosL2Tp struct { + System *JunosL2TpSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosL2Tp) Reset() { *m = JunosL2Tp{} } +func (m *JunosL2Tp) String() string { return proto.CompactTextString(m) } +func (*JunosL2Tp) ProtoMessage() {} +func (*JunosL2Tp) Descriptor() ([]byte, []int) { + return fileDescriptor_fe9259f956296c37, []int{0} +} +func (m *JunosL2Tp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosL2Tp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosL2Tp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosL2Tp) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosL2Tp.Merge(m, src) +} +func (m *JunosL2Tp) XXX_Size() int { + return m.Size() +} +func (m *JunosL2Tp) XXX_DiscardUnknown() { + xxx_messageInfo_JunosL2Tp.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosL2Tp proto.InternalMessageInfo + +func (m *JunosL2Tp) GetSystem() *JunosL2TpSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosL2TpSystemType struct { + SubscriberManagement *JunosL2TpSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosL2TpSystemType) Reset() { *m = JunosL2TpSystemType{} } +func (m *JunosL2TpSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosL2TpSystemType) ProtoMessage() {} +func (*JunosL2TpSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_fe9259f956296c37, []int{0, 0} +} +func (m *JunosL2TpSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosL2TpSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosL2TpSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosL2TpSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosL2TpSystemType.Merge(m, src) +} +func (m *JunosL2TpSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosL2TpSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosL2TpSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosL2TpSystemType proto.InternalMessageInfo + +func (m *JunosL2TpSystemType) GetSubscriberManagement() *JunosL2TpSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosL2TpSystemTypeSubscriberManagementType struct { + ClientProtocols *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType `protobuf:"bytes,151,opt,name=client_protocols,json=clientProtocols" json:"client_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosL2TpSystemTypeSubscriberManagementType) Reset() { + *m = JunosL2TpSystemTypeSubscriberManagementType{} +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosL2TpSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosL2TpSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_fe9259f956296c37, []int{0, 0, 0} +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosL2TpSystemTypeSubscriberManagementType) GetClientProtocols() *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType { + if m != nil { + return m.ClientProtocols + } + return nil +} + +type JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType struct { + L2Tp *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType `protobuf:"bytes,151,opt,name=l2tp" json:"l2tp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) Reset() { + *m = JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType{} +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) ProtoMessage() {} +func (*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_fe9259f956296c37, []int{0, 0, 0, 0} +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType.Merge(m, src) +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType proto.InternalMessageInfo + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) GetL2Tp() *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType { + if m != nil { + return m.L2Tp + } + return nil +} + +type JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType struct { + Summary *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType `protobuf:"bytes,151,opt,name=summary" json:"summary,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) Reset() { + *m = JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType{} +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) String() string { + return proto.CompactTextString(m) +} +func (*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) ProtoMessage() {} +func (*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) Descriptor() ([]byte, []int) { + return fileDescriptor_fe9259f956296c37, []int{0, 0, 0, 0, 0} +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType.Merge(m, src) +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) XXX_Size() int { + return m.Size() +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType proto.InternalMessageInfo + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) GetSummary() *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType { + if m != nil { + return m.Summary + } + return nil +} + +type JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType struct { + L2TpStatsTotalTunnels *uint32 `protobuf:"varint,51,opt,name=l2tp_stats_total_tunnels,json=l2tpStatsTotalTunnels" json:"l2tp_stats_total_tunnels,omitempty"` + L2TpStatsTotalSessions *uint32 `protobuf:"varint,52,opt,name=l2tp_stats_total_sessions,json=l2tpStatsTotalSessions" json:"l2tp_stats_total_sessions,omitempty"` + L2TpStatsControlRxPackets *uint32 `protobuf:"varint,53,opt,name=l2tp_stats_control_rx_packets,json=l2tpStatsControlRxPackets" json:"l2tp_stats_control_rx_packets,omitempty"` + L2TpStatsControlRxBytes *uint32 `protobuf:"varint,54,opt,name=l2tp_stats_control_rx_bytes,json=l2tpStatsControlRxBytes" json:"l2tp_stats_control_rx_bytes,omitempty"` + L2TpStatsControlTxPackets *uint32 `protobuf:"varint,55,opt,name=l2tp_stats_control_tx_packets,json=l2tpStatsControlTxPackets" json:"l2tp_stats_control_tx_packets,omitempty"` + L2TpStatsControlTxBytes *uint32 `protobuf:"varint,56,opt,name=l2tp_stats_control_tx_bytes,json=l2tpStatsControlTxBytes" json:"l2tp_stats_control_tx_bytes,omitempty"` + L2TpEraTypeIcrqInflightCount *uint32 `protobuf:"varint,57,opt,name=l2tp_era_type_icrq_inflight_count,json=l2tpEraTypeIcrqInflightCount" json:"l2tp_era_type_icrq_inflight_count,omitempty"` + L2TpEraTypeIcrqReportedSuccesses *uint32 `protobuf:"varint,58,opt,name=l2tp_era_type_icrq_reported_successes,json=l2tpEraTypeIcrqReportedSuccesses" json:"l2tp_era_type_icrq_reported_successes,omitempty"` + L2TpEraTypeIcrqReportedFailures *uint32 `protobuf:"varint,59,opt,name=l2tp_era_type_icrq_reported_failures,json=l2tpEraTypeIcrqReportedFailures" json:"l2tp_era_type_icrq_reported_failures,omitempty"` + L2TpEraTypeSccrqInflightCount *uint32 `protobuf:"varint,60,opt,name=l2tp_era_type_sccrq_inflight_count,json=l2tpEraTypeSccrqInflightCount" json:"l2tp_era_type_sccrq_inflight_count,omitempty"` + L2TpEraTypeSccrqReportedSuccesses *uint32 `protobuf:"varint,61,opt,name=l2tp_era_type_sccrq_reported_successes,json=l2tpEraTypeSccrqReportedSuccesses" json:"l2tp_era_type_sccrq_reported_successes,omitempty"` + L2TpEraTypeSccrqReportedFailures *uint32 `protobuf:"varint,62,opt,name=l2tp_era_type_sccrq_reported_failures,json=l2tpEraTypeSccrqReportedFailures" json:"l2tp_era_type_sccrq_reported_failures,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) Reset() { + *m = JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType{} +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) String() string { + return proto.CompactTextString(m) +} +func (*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) ProtoMessage() { +} +func (*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) Descriptor() ([]byte, []int) { + return fileDescriptor_fe9259f956296c37, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType.Merge(m, src) +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) XXX_Size() int { + return m.Size() +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType proto.InternalMessageInfo + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpStatsTotalTunnels() uint32 { + if m != nil && m.L2TpStatsTotalTunnels != nil { + return *m.L2TpStatsTotalTunnels + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpStatsTotalSessions() uint32 { + if m != nil && m.L2TpStatsTotalSessions != nil { + return *m.L2TpStatsTotalSessions + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpStatsControlRxPackets() uint32 { + if m != nil && m.L2TpStatsControlRxPackets != nil { + return *m.L2TpStatsControlRxPackets + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpStatsControlRxBytes() uint32 { + if m != nil && m.L2TpStatsControlRxBytes != nil { + return *m.L2TpStatsControlRxBytes + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpStatsControlTxPackets() uint32 { + if m != nil && m.L2TpStatsControlTxPackets != nil { + return *m.L2TpStatsControlTxPackets + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpStatsControlTxBytes() uint32 { + if m != nil && m.L2TpStatsControlTxBytes != nil { + return *m.L2TpStatsControlTxBytes + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpEraTypeIcrqInflightCount() uint32 { + if m != nil && m.L2TpEraTypeIcrqInflightCount != nil { + return *m.L2TpEraTypeIcrqInflightCount + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpEraTypeIcrqReportedSuccesses() uint32 { + if m != nil && m.L2TpEraTypeIcrqReportedSuccesses != nil { + return *m.L2TpEraTypeIcrqReportedSuccesses + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpEraTypeIcrqReportedFailures() uint32 { + if m != nil && m.L2TpEraTypeIcrqReportedFailures != nil { + return *m.L2TpEraTypeIcrqReportedFailures + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpEraTypeSccrqInflightCount() uint32 { + if m != nil && m.L2TpEraTypeSccrqInflightCount != nil { + return *m.L2TpEraTypeSccrqInflightCount + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpEraTypeSccrqReportedSuccesses() uint32 { + if m != nil && m.L2TpEraTypeSccrqReportedSuccesses != nil { + return *m.L2TpEraTypeSccrqReportedSuccesses + } + return 0 +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) GetL2TpEraTypeSccrqReportedFailures() uint32 { + if m != nil && m.L2TpEraTypeSccrqReportedFailures != nil { + return *m.L2TpEraTypeSccrqReportedFailures + } + return 0 +} + +var E_JnprJunosL2TpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosL2Tp)(nil), + Field: 44, + Name: "jnpr_junos_l2tp_ext", + Tag: "bytes,44,opt,name=jnpr_junos_l2tp_ext", + Filename: "jl2tpd_oc.proto", +} + +func init() { + proto.RegisterType((*JunosL2Tp)(nil), "junos_l2tp") + proto.RegisterType((*JunosL2TpSystemType)(nil), "junos_l2tp.system_type") + proto.RegisterType((*JunosL2TpSystemTypeSubscriberManagementType)(nil), "junos_l2tp.system_type.subscriber_management_type") + proto.RegisterType((*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType)(nil), "junos_l2tp.system_type.subscriber_management_type.client_protocols_type") + proto.RegisterType((*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType)(nil), "junos_l2tp.system_type.subscriber_management_type.client_protocols_type.l2tp_type") + proto.RegisterType((*JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType)(nil), "junos_l2tp.system_type.subscriber_management_type.client_protocols_type.l2tp_type.summary_type") + proto.RegisterExtension(E_JnprJunosL2TpExt) +} + +func init() { proto.RegisterFile("jl2tpd_oc.proto", fileDescriptor_fe9259f956296c37) } + +var fileDescriptor_fe9259f956296c37 = []byte{ + // 666 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0x4f, 0x4f, 0x13, 0x5d, + 0x14, 0xc6, 0xd3, 0xe4, 0x0d, 0xbc, 0xdc, 0xbe, 0x6f, 0x20, 0x83, 0xc8, 0x50, 0x05, 0x81, 0xa8, + 0x61, 0x21, 0x53, 0x83, 0x7f, 0x10, 0x44, 0x63, 0x20, 0xfe, 0x81, 0x88, 0x62, 0xdb, 0x95, 0x9b, + 0xeb, 0xf4, 0x72, 0x68, 0xa7, 0x4c, 0xef, 0x1d, 0xee, 0x39, 0xa3, 0xad, 0x5f, 0xc4, 0x8f, 0xe2, + 0x57, 0x70, 0xe9, 0xda, 0x95, 0x21, 0x26, 0x7e, 0x03, 0x57, 0x2e, 0xcc, 0xbd, 0xd3, 0x69, 0x4b, + 0x3b, 0xd5, 0x98, 0xb0, 0xec, 0x79, 0x9e, 0xe7, 0xf7, 0x9c, 0x33, 0xcd, 0x65, 0x93, 0x8d, 0x70, + 0x8d, 0xa2, 0x43, 0xae, 0x84, 0x17, 0x69, 0x45, 0xaa, 0x30, 0x4d, 0x10, 0x42, 0x13, 0x48, 0xb7, + 0x39, 0xa9, 0x28, 0x19, 0x2e, 0x7f, 0xcc, 0x33, 0xd6, 0x88, 0xa5, 0x42, 0x6e, 0xdc, 0xce, 0x4d, + 0x36, 0x86, 0x6d, 0x24, 0x68, 0xba, 0x1f, 0x72, 0x8b, 0xb9, 0x95, 0xfc, 0xda, 0xac, 0xd7, 0x53, + 0xbd, 0x44, 0xe2, 0xd4, 0x8e, 0xa0, 0xd4, 0xf1, 0x15, 0x7e, 0x30, 0x96, 0xef, 0x9b, 0x3b, 0x75, + 0x36, 0x83, 0x71, 0x15, 0x85, 0x0e, 0xaa, 0xa0, 0x79, 0xd3, 0x97, 0x7e, 0x0d, 0x9a, 0x20, 0x29, + 0x05, 0xae, 0x8d, 0x00, 0x7a, 0x99, 0xa9, 0xa4, 0xeb, 0x42, 0x4f, 0xdb, 0xef, 0x4a, 0x85, 0x9f, + 0x13, 0xac, 0x30, 0x3a, 0xe4, 0x10, 0x9b, 0x12, 0x61, 0x60, 0x7e, 0xda, 0x4b, 0x85, 0x0a, 0x31, + 0xdd, 0xe1, 0xd9, 0xdf, 0xef, 0xe0, 0x0d, 0xb2, 0x92, 0xcd, 0x26, 0x93, 0xf1, 0x41, 0x3a, 0x2d, + 0x7c, 0xff, 0x97, 0xcd, 0x64, 0x5a, 0x9d, 0x1a, 0xfb, 0xc7, 0xf4, 0xa5, 0x3b, 0x94, 0xce, 0x6b, + 0x07, 0xcf, 0x10, 0x92, 0x6d, 0x6c, 0x41, 0xe1, 0xdb, 0x38, 0x9b, 0xe8, 0xce, 0x9c, 0xf7, 0x6c, + 0x1c, 0xe3, 0x66, 0xd3, 0xd7, 0xed, 0xb4, 0x99, 0x9f, 0x7f, 0xb3, 0xd7, 0xa9, 0x48, 0xd6, 0x48, + 0x0b, 0x0b, 0x5f, 0xc6, 0xd8, 0x7f, 0xfd, 0x8a, 0xb3, 0xce, 0x5c, 0x9b, 0x41, 0xf2, 0x09, 0x39, + 0x29, 0xf2, 0x43, 0x4e, 0xb1, 0x94, 0x10, 0xa2, 0x7b, 0x6b, 0x31, 0xb7, 0xf2, 0x7f, 0x69, 0xc6, + 0xe8, 0x65, 0x23, 0x57, 0x8c, 0x5a, 0x49, 0x44, 0x67, 0x83, 0xcd, 0x0d, 0x05, 0x11, 0x10, 0x03, + 0x25, 0xd1, 0xbd, 0x6d, 0x93, 0x17, 0xcf, 0x26, 0xcb, 0x1d, 0xd5, 0x79, 0xc4, 0xe6, 0xfb, 0xa2, + 0x42, 0x49, 0xd2, 0x2a, 0xe4, 0xba, 0xc5, 0x23, 0x5f, 0x1c, 0x03, 0xa1, 0x7b, 0xc7, 0xc6, 0xe7, + 0xba, 0xf1, 0x9d, 0xc4, 0x52, 0x6a, 0x1d, 0x24, 0x06, 0x67, 0x8b, 0x5d, 0xca, 0x26, 0x54, 0xdb, + 0x04, 0xe8, 0xde, 0xb5, 0xf9, 0xd9, 0xe1, 0xfc, 0xb6, 0x91, 0x47, 0xf4, 0x53, 0xaf, 0x7f, 0x3d, + 0xbb, 0xbf, 0xf2, 0x87, 0x7e, 0x4a, 0xfb, 0xef, 0x65, 0xf7, 0x57, 0x3a, 0xfd, 0x4f, 0xd9, 0x92, + 0x4d, 0x83, 0xf6, 0xed, 0x9f, 0xc0, 0x03, 0xa1, 0x4f, 0x78, 0x20, 0x8f, 0xc2, 0xa0, 0x56, 0x27, + 0x2e, 0x54, 0x2c, 0xc9, 0xdd, 0xb0, 0x8c, 0xcb, 0xc6, 0xf8, 0x58, 0xfb, 0x95, 0x76, 0x04, 0xbb, + 0x42, 0x9f, 0xec, 0x76, 0x4c, 0x3b, 0xc6, 0xe3, 0xbc, 0x64, 0xd7, 0x32, 0x40, 0x1a, 0x22, 0xa5, + 0x09, 0x0e, 0x39, 0xc6, 0x42, 0x00, 0x22, 0xa0, 0xbb, 0x69, 0x61, 0x8b, 0x03, 0xb0, 0x52, 0xc7, + 0x58, 0x4e, 0x7d, 0xce, 0x3e, 0xbb, 0xfa, 0x3b, 0xe0, 0x91, 0x1f, 0x84, 0xb1, 0x06, 0x74, 0xef, + 0x5b, 0xde, 0x95, 0x11, 0xbc, 0x27, 0x1d, 0x9b, 0xb3, 0xcb, 0x96, 0xcf, 0xe2, 0x50, 0x64, 0x5c, + 0xba, 0x65, 0x61, 0xf3, 0x7d, 0xb0, 0xb2, 0x18, 0x3a, 0xf5, 0x15, 0xbb, 0x9e, 0x85, 0xca, 0xb8, + 0xf5, 0x81, 0xc5, 0x2d, 0x0d, 0xe2, 0x86, 0x8f, 0x1d, 0xfa, 0x7a, 0x03, 0xc8, 0xee, 0xb5, 0x0f, + 0x87, 0xbe, 0xde, 0x19, 0x62, 0x7a, 0xee, 0x66, 0x99, 0x4d, 0x37, 0x64, 0xa4, 0x79, 0xef, 0x31, + 0x73, 0x68, 0x91, 0x33, 0xeb, 0xed, 0xc5, 0x32, 0x88, 0x40, 0xbf, 0x00, 0x7a, 0xa7, 0xf4, 0x31, + 0x96, 0x41, 0xa2, 0xd2, 0xe8, 0xde, 0xb0, 0x8f, 0x3f, 0xdf, 0xf7, 0xf8, 0x4b, 0x53, 0x06, 0xb0, + 0x67, 0x7e, 0x3f, 0x37, 0x6d, 0x2d, 0xda, 0x7e, 0xf3, 0xe9, 0x74, 0x21, 0xf7, 0xf9, 0x74, 0x21, + 0xf7, 0xf5, 0x74, 0x21, 0xf7, 0xba, 0x54, 0x0b, 0xc8, 0xf8, 0x0d, 0xce, 0x93, 0x40, 0xc5, 0x40, + 0x40, 0x15, 0x74, 0xad, 0x58, 0x07, 0x3f, 0xa4, 0x7a, 0x55, 0xd1, 0x6a, 0x20, 0x6b, 0x80, 0xb4, + 0xda, 0xa0, 0x60, 0x55, 0xfa, 0x14, 0xbc, 0x85, 0x62, 0x74, 0x5c, 0x2b, 0x36, 0x28, 0x28, 0xfa, + 0x87, 0x7e, 0x44, 0xa0, 0xb1, 0x98, 0x6c, 0x58, 0x44, 0x51, 0x87, 0xa6, 0xff, 0x2b, 0x00, 0x00, + 0xff, 0xff, 0x8b, 0xf4, 0xf9, 0x45, 0x97, 0x06, 0x00, 0x00, +} + +func (m *JunosL2Tp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosL2Tp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosL2Tp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJl2TpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosL2TpSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosL2TpSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosL2TpSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJl2TpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosL2TpSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientProtocols != nil { + { + size, err := m.ClientProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJl2TpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L2Tp != nil { + { + size, err := m.L2Tp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJl2TpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Summary != nil { + { + size, err := m.Summary.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJl2TpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L2TpEraTypeSccrqReportedFailures != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpEraTypeSccrqReportedFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.L2TpEraTypeSccrqReportedSuccesses != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpEraTypeSccrqReportedSuccesses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.L2TpEraTypeSccrqInflightCount != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpEraTypeSccrqInflightCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.L2TpEraTypeIcrqReportedFailures != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpEraTypeIcrqReportedFailures)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.L2TpEraTypeIcrqReportedSuccesses != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpEraTypeIcrqReportedSuccesses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.L2TpEraTypeIcrqInflightCount != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpEraTypeIcrqInflightCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.L2TpStatsControlTxBytes != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpStatsControlTxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.L2TpStatsControlTxPackets != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpStatsControlTxPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.L2TpStatsControlRxBytes != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpStatsControlRxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.L2TpStatsControlRxPackets != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpStatsControlRxPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.L2TpStatsTotalSessions != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpStatsTotalSessions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.L2TpStatsTotalTunnels != nil { + i = encodeVarintJl2TpdOc(dAtA, i, uint64(*m.L2TpStatsTotalTunnels)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJl2TpdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovJl2TpdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosL2Tp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovJl2TpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosL2TpSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovJl2TpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosL2TpSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ClientProtocols != nil { + l = m.ClientProtocols.Size() + n += 2 + l + sovJl2TpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.L2Tp != nil { + l = m.L2Tp.Size() + n += 2 + l + sovJl2TpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Summary != nil { + l = m.Summary.Size() + n += 2 + l + sovJl2TpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.L2TpStatsTotalTunnels != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpStatsTotalTunnels)) + } + if m.L2TpStatsTotalSessions != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpStatsTotalSessions)) + } + if m.L2TpStatsControlRxPackets != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpStatsControlRxPackets)) + } + if m.L2TpStatsControlRxBytes != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpStatsControlRxBytes)) + } + if m.L2TpStatsControlTxPackets != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpStatsControlTxPackets)) + } + if m.L2TpStatsControlTxBytes != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpStatsControlTxBytes)) + } + if m.L2TpEraTypeIcrqInflightCount != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpEraTypeIcrqInflightCount)) + } + if m.L2TpEraTypeIcrqReportedSuccesses != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpEraTypeIcrqReportedSuccesses)) + } + if m.L2TpEraTypeIcrqReportedFailures != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpEraTypeIcrqReportedFailures)) + } + if m.L2TpEraTypeSccrqInflightCount != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpEraTypeSccrqInflightCount)) + } + if m.L2TpEraTypeSccrqReportedSuccesses != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpEraTypeSccrqReportedSuccesses)) + } + if m.L2TpEraTypeSccrqReportedFailures != nil { + n += 2 + sovJl2TpdOc(uint64(*m.L2TpEraTypeSccrqReportedFailures)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJl2TpdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJl2TpdOc(x uint64) (n int) { + return sovJl2TpdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosL2Tp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_l2tp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_l2tp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJl2TpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJl2TpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosL2TpSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJl2TpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosL2TpSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJl2TpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJl2TpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosL2TpSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJl2TpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosL2TpSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJl2TpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJl2TpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClientProtocols == nil { + m.ClientProtocols = &JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType{} + } + if err := m.ClientProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJl2TpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: client_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: client_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2Tp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJl2TpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJl2TpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2Tp == nil { + m.L2Tp = &JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType{} + } + if err := m.L2Tp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJl2TpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2tp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2tp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJl2TpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJl2TpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Summary == nil { + m.Summary = &JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType{} + } + if err := m.Summary.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJl2TpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosL2TpSystemTypeSubscriberManagementTypeClientProtocolsTypeL2TpTypeSummaryType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: summary_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: summary_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpStatsTotalTunnels", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpStatsTotalTunnels = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpStatsTotalSessions", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpStatsTotalSessions = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpStatsControlRxPackets", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpStatsControlRxPackets = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpStatsControlRxBytes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpStatsControlRxBytes = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpStatsControlTxPackets", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpStatsControlTxPackets = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpStatsControlTxBytes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpStatsControlTxBytes = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpEraTypeIcrqInflightCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpEraTypeIcrqInflightCount = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpEraTypeIcrqReportedSuccesses", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpEraTypeIcrqReportedSuccesses = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpEraTypeIcrqReportedFailures", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpEraTypeIcrqReportedFailures = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpEraTypeSccrqInflightCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpEraTypeSccrqInflightCount = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpEraTypeSccrqReportedSuccesses", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpEraTypeSccrqReportedSuccesses = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpEraTypeSccrqReportedFailures", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpEraTypeSccrqReportedFailures = &v + default: + iNdEx = preIndex + skippy, err := skipJl2TpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJl2TpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJl2TpdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJl2TpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJl2TpdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJl2TpdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJl2TpdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJl2TpdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJl2TpdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJl2TpdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jl2tpd_oc.proto b/schema/jl2tpd_oc.proto new file mode 100755 index 0000000..8b4f703 --- /dev/null +++ b/schema/jl2tpd_oc.proto @@ -0,0 +1,37 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_l2tp jnpr_junos_l2tp_ext = 44; +} + +message junos_l2tp { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional client_protocols_type client_protocols = 151; + message client_protocols_type { + optional l2tp_type l2tp = 151; + message l2tp_type { + optional summary_type summary = 151; + message summary_type { + optional uint32 l2tp_stats_total_tunnels = 51; + optional uint32 l2tp_stats_total_sessions = 52; + optional uint32 l2tp_stats_control_rx_packets = 53; + optional uint32 l2tp_stats_control_rx_bytes = 54; + optional uint32 l2tp_stats_control_tx_packets = 55; + optional uint32 l2tp_stats_control_tx_bytes = 56; + optional uint32 l2tp_era_type_icrq_inflight_count = 57; + optional uint32 l2tp_era_type_icrq_reported_successes = 58; + optional uint32 l2tp_era_type_icrq_reported_failures = 59; + optional uint32 l2tp_era_type_sccrq_inflight_count = 60; + optional uint32 l2tp_era_type_sccrq_reported_successes = 61; + optional uint32 l2tp_era_type_sccrq_reported_failures = 62; + } + } + } + } + } +} diff --git a/schema/jpppd_oc.pb.go b/schema/jpppd_oc.pb.go new file mode 100644 index 0000000..7a93d5a --- /dev/null +++ b/schema/jpppd_oc.pb.go @@ -0,0 +1,1492 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: jpppd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPpp struct { + System *JunosPppSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPpp) Reset() { *m = JunosPpp{} } +func (m *JunosPpp) String() string { return proto.CompactTextString(m) } +func (*JunosPpp) ProtoMessage() {} +func (*JunosPpp) Descriptor() ([]byte, []int) { + return fileDescriptor_cc2b6110eba96f19, []int{0} +} +func (m *JunosPpp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPpp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPpp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPpp) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPpp.Merge(m, src) +} +func (m *JunosPpp) XXX_Size() int { + return m.Size() +} +func (m *JunosPpp) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPpp.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPpp proto.InternalMessageInfo + +func (m *JunosPpp) GetSystem() *JunosPppSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosPppSystemType struct { + SubscriberManagement *JunosPppSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppSystemType) Reset() { *m = JunosPppSystemType{} } +func (m *JunosPppSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosPppSystemType) ProtoMessage() {} +func (*JunosPppSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_cc2b6110eba96f19, []int{0, 0} +} +func (m *JunosPppSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppSystemType.Merge(m, src) +} +func (m *JunosPppSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppSystemType proto.InternalMessageInfo + +func (m *JunosPppSystemType) GetSubscriberManagement() *JunosPppSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosPppSystemTypeSubscriberManagementType struct { + ClientProtocols *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType `protobuf:"bytes,151,opt,name=client_protocols,json=clientProtocols" json:"client_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppSystemTypeSubscriberManagementType) Reset() { + *m = JunosPppSystemTypeSubscriberManagementType{} +} +func (m *JunosPppSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosPppSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_cc2b6110eba96f19, []int{0, 0, 0} +} +func (m *JunosPppSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosPppSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosPppSystemTypeSubscriberManagementType) GetClientProtocols() *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType { + if m != nil { + return m.ClientProtocols + } + return nil +} + +type JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType struct { + Ppp *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType `protobuf:"bytes,151,opt,name=ppp" json:"ppp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) Reset() { + *m = JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType{} +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) ProtoMessage() {} +func (*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_cc2b6110eba96f19, []int{0, 0, 0, 0} +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType.Merge(m, src) +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType proto.InternalMessageInfo + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) GetPpp() *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType { + if m != nil { + return m.Ppp + } + return nil +} + +type JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType struct { + Statistics *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) Reset() { + *m = JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType{} +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) ProtoMessage() {} +func (*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) Descriptor() ([]byte, []int) { + return fileDescriptor_cc2b6110eba96f19, []int{0, 0, 0, 0, 0} +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType.Merge(m, src) +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType proto.InternalMessageInfo + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) GetStatistics() *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +type JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType struct { + PppStatsTotalSubscriberSessions *uint32 `protobuf:"varint,51,opt,name=ppp_stats_total_subscriber_sessions,json=pppStatsTotalSubscriberSessions" json:"ppp_stats_total_subscriber_sessions,omitempty"` + PppStatsSessionsDisablePhase *uint32 `protobuf:"varint,52,opt,name=ppp_stats_sessions_disable_phase,json=pppStatsSessionsDisablePhase" json:"ppp_stats_sessions_disable_phase,omitempty"` + PppStatsSessionsEstablishPhase *uint32 `protobuf:"varint,53,opt,name=ppp_stats_sessions_establish_phase,json=pppStatsSessionsEstablishPhase" json:"ppp_stats_sessions_establish_phase,omitempty"` + PppStatsSessionsNetworkPhase *uint32 `protobuf:"varint,54,opt,name=ppp_stats_sessions_network_phase,json=pppStatsSessionsNetworkPhase" json:"ppp_stats_sessions_network_phase,omitempty"` + PppStatsSessionsAuthenticatePhase *uint32 `protobuf:"varint,55,opt,name=ppp_stats_sessions_authenticate_phase,json=pppStatsSessionsAuthenticatePhase" json:"ppp_stats_sessions_authenticate_phase,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) Reset() { + *m = JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType{} +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) ProtoMessage() { +} +func (*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_cc2b6110eba96f19, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType.Merge(m, src) +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) GetPppStatsTotalSubscriberSessions() uint32 { + if m != nil && m.PppStatsTotalSubscriberSessions != nil { + return *m.PppStatsTotalSubscriberSessions + } + return 0 +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) GetPppStatsSessionsDisablePhase() uint32 { + if m != nil && m.PppStatsSessionsDisablePhase != nil { + return *m.PppStatsSessionsDisablePhase + } + return 0 +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) GetPppStatsSessionsEstablishPhase() uint32 { + if m != nil && m.PppStatsSessionsEstablishPhase != nil { + return *m.PppStatsSessionsEstablishPhase + } + return 0 +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) GetPppStatsSessionsNetworkPhase() uint32 { + if m != nil && m.PppStatsSessionsNetworkPhase != nil { + return *m.PppStatsSessionsNetworkPhase + } + return 0 +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) GetPppStatsSessionsAuthenticatePhase() uint32 { + if m != nil && m.PppStatsSessionsAuthenticatePhase != nil { + return *m.PppStatsSessionsAuthenticatePhase + } + return 0 +} + +var E_JnprJunosPppExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPpp)(nil), + Field: 45, + Name: "jnpr_junos_ppp_ext", + Tag: "bytes,45,opt,name=jnpr_junos_ppp_ext", + Filename: "jpppd_oc.proto", +} + +func init() { + proto.RegisterType((*JunosPpp)(nil), "junos_ppp") + proto.RegisterType((*JunosPppSystemType)(nil), "junos_ppp.system_type") + proto.RegisterType((*JunosPppSystemTypeSubscriberManagementType)(nil), "junos_ppp.system_type.subscriber_management_type") + proto.RegisterType((*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType)(nil), "junos_ppp.system_type.subscriber_management_type.client_protocols_type") + proto.RegisterType((*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType)(nil), "junos_ppp.system_type.subscriber_management_type.client_protocols_type.ppp_type") + proto.RegisterType((*JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType)(nil), "junos_ppp.system_type.subscriber_management_type.client_protocols_type.ppp_type.statistics_type") + proto.RegisterExtension(E_JnprJunosPppExt) +} + +func init() { proto.RegisterFile("jpppd_oc.proto", fileDescriptor_cc2b6110eba96f19) } + +var fileDescriptor_cc2b6110eba96f19 = []byte{ + // 525 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0x87, 0x65, 0x15, 0x5a, 0xd8, 0x0a, 0x8a, 0x0c, 0x85, 0xc8, 0x42, 0xa1, 0x14, 0x21, 0xf5, + 0x12, 0x5b, 0xfc, 0x97, 0xb8, 0x81, 0x28, 0x48, 0x15, 0x20, 0x2b, 0xe1, 0xc4, 0xc5, 0x5d, 0x3b, + 0x23, 0x7b, 0x53, 0x67, 0x77, 0xe4, 0x99, 0x40, 0x73, 0xe4, 0x01, 0x38, 0x73, 0x82, 0x07, 0xe0, + 0xc6, 0x5b, 0x70, 0xe4, 0x11, 0x50, 0x6e, 0xbc, 0x05, 0x5a, 0x6f, 0x9c, 0x44, 0x91, 0x39, 0x20, + 0xf5, 0xb8, 0x33, 0xdf, 0x7c, 0xf3, 0x5b, 0x69, 0xc4, 0xe5, 0x11, 0x22, 0x0e, 0x13, 0x93, 0x85, + 0x58, 0x19, 0x36, 0xc1, 0x55, 0x86, 0x12, 0xc6, 0xc0, 0xd5, 0x34, 0x61, 0x83, 0xae, 0xb8, 0xff, + 0x67, 0x4b, 0x5c, 0x1c, 0x4d, 0xb4, 0xa1, 0x04, 0x11, 0xfd, 0x48, 0x6c, 0xd2, 0x94, 0x18, 0xc6, + 0x9d, 0x2f, 0xde, 0x9e, 0x77, 0xb0, 0x7d, 0xff, 0x7a, 0xb8, 0x68, 0x86, 0xae, 0x93, 0xf0, 0x14, + 0xa1, 0x3f, 0xc7, 0x82, 0xef, 0x5b, 0x62, 0x7b, 0xa5, 0xee, 0xe7, 0x62, 0x97, 0x26, 0x29, 0x65, + 0x95, 0x4a, 0xa1, 0x4a, 0xc6, 0x52, 0xcb, 0x1c, 0xc6, 0xa0, 0xb9, 0xf1, 0xdd, 0x6b, 0xf7, 0x85, + 0xad, 0x43, 0x6e, 0xd5, 0xb5, 0x65, 0xef, 0xcd, 0xa2, 0x15, 0xfc, 0xd8, 0x14, 0xc1, 0xbf, 0x87, + 0x7c, 0x12, 0x57, 0xb2, 0x52, 0xd9, 0x67, 0xfd, 0xcd, 0xcc, 0x94, 0xd4, 0x44, 0x78, 0xf5, 0xdf, + 0x11, 0xc2, 0x75, 0x95, 0x0b, 0xb6, 0xe3, 0xca, 0x71, 0x53, 0x0d, 0xbe, 0x9e, 0x17, 0xbb, 0xad, + 0xa8, 0x9f, 0x89, 0x0d, 0x44, 0x6c, 0x12, 0xc4, 0x67, 0x94, 0x20, 0x44, 0x44, 0x17, 0xc5, 0xda, + 0x83, 0x6f, 0xe7, 0xc4, 0x85, 0xa6, 0xe2, 0x7f, 0xf2, 0x84, 0x20, 0x96, 0xac, 0x88, 0x55, 0xb6, + 0xf8, 0xfb, 0xf1, 0x59, 0x6f, 0x0e, 0x97, 0x3b, 0x5c, 0x92, 0x95, 0xa5, 0xc1, 0xe7, 0x0d, 0xb1, + 0xb3, 0xd6, 0xf7, 0x5f, 0x8b, 0x3b, 0x76, 0xd6, 0x96, 0x29, 0x61, 0xc3, 0xb2, 0x4c, 0x56, 0x96, + 0x13, 0x10, 0x29, 0xa3, 0xa9, 0xf3, 0x60, 0xcf, 0x3b, 0xb8, 0xd4, 0xbf, 0x85, 0x88, 0x03, 0x4b, + 0xbe, 0xb3, 0xe0, 0x60, 0xc1, 0x0d, 0xe6, 0x98, 0xff, 0x52, 0xec, 0x2d, 0x6d, 0xcd, 0x70, 0x32, + 0x54, 0x24, 0xd3, 0x12, 0x12, 0x2c, 0x24, 0x41, 0xe7, 0x61, 0xad, 0xba, 0xd9, 0xa8, 0x9a, 0xd9, + 0x17, 0x0e, 0x8a, 0x2d, 0xe3, 0x1f, 0x89, 0xfd, 0x16, 0x0f, 0x10, 0xcb, 0xb4, 0x54, 0x54, 0xcc, + 0x4d, 0x8f, 0x6a, 0x53, 0x77, 0xdd, 0x74, 0xd8, 0x60, 0xce, 0xd5, 0x9e, 0x49, 0x03, 0x7f, 0x34, + 0xd5, 0xc9, 0xdc, 0xf4, 0xb8, 0x3d, 0xd3, 0x5b, 0x07, 0x39, 0x4f, 0x2c, 0xee, 0xb6, 0x78, 0xe4, + 0x84, 0x0b, 0xd0, 0xac, 0x32, 0xc9, 0xcd, 0x07, 0x9f, 0xd4, 0xb2, 0xdb, 0xeb, 0xb2, 0x67, 0x2b, + 0x64, 0x6d, 0x7c, 0x1a, 0x0b, 0x7f, 0xa4, 0xb1, 0x4a, 0x16, 0x37, 0x90, 0xc0, 0x29, 0xfb, 0x37, + 0xc2, 0xa3, 0x89, 0x56, 0x08, 0xd5, 0x7c, 0x3b, 0x0d, 0x40, 0x93, 0xa9, 0xa8, 0xd3, 0xab, 0x4f, + 0x46, 0x2c, 0x4f, 0xa6, 0xbf, 0x63, 0xc7, 0x8f, 0xec, 0x33, 0x46, 0x3c, 0x3c, 0xe5, 0xe7, 0xc7, + 0x3f, 0x67, 0x5d, 0xef, 0xd7, 0xac, 0xeb, 0xfd, 0x9e, 0x75, 0xbd, 0xf7, 0xfd, 0x5c, 0xb1, 0xa5, + 0xad, 0x2c, 0xd4, 0xc0, 0x91, 0xca, 0x20, 0x85, 0x2a, 0x8f, 0x0a, 0x90, 0x25, 0x17, 0xa9, 0xe1, + 0x9e, 0xd2, 0x39, 0x10, 0xf7, 0x46, 0xac, 0x7a, 0x5a, 0xb2, 0xfa, 0x00, 0x11, 0x9e, 0xe4, 0xd1, + 0x88, 0x55, 0x24, 0x87, 0x12, 0x19, 0x2a, 0x8a, 0x5c, 0xbc, 0x88, 0xb2, 0x02, 0xc6, 0xf2, 0x6f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x78, 0x18, 0x13, 0xc5, 0x04, 0x00, 0x00, +} + +func (m *JunosPpp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPpp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPpp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJpppdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJpppdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientProtocols != nil { + { + size, err := m.ClientProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJpppdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ppp != nil { + { + size, err := m.Ppp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJpppdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJpppdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PppStatsSessionsAuthenticatePhase != nil { + i = encodeVarintJpppdOc(dAtA, i, uint64(*m.PppStatsSessionsAuthenticatePhase)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.PppStatsSessionsNetworkPhase != nil { + i = encodeVarintJpppdOc(dAtA, i, uint64(*m.PppStatsSessionsNetworkPhase)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.PppStatsSessionsEstablishPhase != nil { + i = encodeVarintJpppdOc(dAtA, i, uint64(*m.PppStatsSessionsEstablishPhase)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.PppStatsSessionsDisablePhase != nil { + i = encodeVarintJpppdOc(dAtA, i, uint64(*m.PppStatsSessionsDisablePhase)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PppStatsTotalSubscriberSessions != nil { + i = encodeVarintJpppdOc(dAtA, i, uint64(*m.PppStatsTotalSubscriberSessions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJpppdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovJpppdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPpp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovJpppdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovJpppdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ClientProtocols != nil { + l = m.ClientProtocols.Size() + n += 2 + l + sovJpppdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ppp != nil { + l = m.Ppp.Size() + n += 2 + l + sovJpppdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovJpppdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PppStatsTotalSubscriberSessions != nil { + n += 2 + sovJpppdOc(uint64(*m.PppStatsTotalSubscriberSessions)) + } + if m.PppStatsSessionsDisablePhase != nil { + n += 2 + sovJpppdOc(uint64(*m.PppStatsSessionsDisablePhase)) + } + if m.PppStatsSessionsEstablishPhase != nil { + n += 2 + sovJpppdOc(uint64(*m.PppStatsSessionsEstablishPhase)) + } + if m.PppStatsSessionsNetworkPhase != nil { + n += 2 + sovJpppdOc(uint64(*m.PppStatsSessionsNetworkPhase)) + } + if m.PppStatsSessionsAuthenticatePhase != nil { + n += 2 + sovJpppdOc(uint64(*m.PppStatsSessionsAuthenticatePhase)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJpppdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJpppdOc(x uint64) (n int) { + return sovJpppdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPpp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_ppp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_ppp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJpppdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJpppdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosPppSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJpppdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJpppdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJpppdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosPppSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJpppdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJpppdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJpppdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClientProtocols == nil { + m.ClientProtocols = &JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType{} + } + if err := m.ClientProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJpppdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: client_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: client_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ppp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJpppdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJpppdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ppp == nil { + m.Ppp = &JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType{} + } + if err := m.Ppp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJpppdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ppp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ppp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJpppdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJpppdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJpppdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPppSystemTypeSubscriberManagementTypeClientProtocolsTypePppTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppStatsTotalSubscriberSessions", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppStatsTotalSubscriberSessions = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppStatsSessionsDisablePhase", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppStatsSessionsDisablePhase = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppStatsSessionsEstablishPhase", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppStatsSessionsEstablishPhase = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppStatsSessionsNetworkPhase", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppStatsSessionsNetworkPhase = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppStatsSessionsAuthenticatePhase", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppStatsSessionsAuthenticatePhase = &v + default: + iNdEx = preIndex + skippy, err := skipJpppdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJpppdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJpppdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJpppdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJpppdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJpppdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJpppdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJpppdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJpppdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJpppdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/jpppd_oc.proto b/schema/jpppd_oc.proto new file mode 100755 index 0000000..188ca90 --- /dev/null +++ b/schema/jpppd_oc.proto @@ -0,0 +1,30 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_ppp jnpr_junos_ppp_ext = 45; +} + +message junos_ppp { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional client_protocols_type client_protocols = 151; + message client_protocols_type { + optional ppp_type ppp = 151; + message ppp_type { + optional statistics_type statistics = 151; + message statistics_type { + optional uint32 ppp_stats_total_subscriber_sessions = 51; + optional uint32 ppp_stats_sessions_disable_phase = 52; + optional uint32 ppp_stats_sessions_establish_phase = 53; + optional uint32 ppp_stats_sessions_network_phase = 54; + optional uint32 ppp_stats_sessions_authenticate_phase = 55; + } + } + } + } + } +} diff --git a/schema/junos-xmlproxyd_junos-rsvp-interface.pb.go b/schema/junos-xmlproxyd_junos-rsvp-interface.pb.go new file mode 100644 index 0000000..d18ef4e --- /dev/null +++ b/schema/junos-xmlproxyd_junos-rsvp-interface.pb.go @@ -0,0 +1,2387 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: junos-xmlproxyd_junos-rsvp-interface.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosRsvpInterface struct { + RsvpInterfaceInformation *JunosRsvpInterfaceRsvpInterfaceInformationType `protobuf:"bytes,151,opt,name=rsvp_interface_information,json=rsvpInterfaceInformation" json:"rsvp_interface_information,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsvpInterface) Reset() { *m = JunosRsvpInterface{} } +func (m *JunosRsvpInterface) String() string { return proto.CompactTextString(m) } +func (*JunosRsvpInterface) ProtoMessage() {} +func (*JunosRsvpInterface) Descriptor() ([]byte, []int) { + return fileDescriptor_df4225f46c0f8328, []int{0} +} +func (m *JunosRsvpInterface) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsvpInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsvpInterface.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsvpInterface) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsvpInterface.Merge(m, src) +} +func (m *JunosRsvpInterface) XXX_Size() int { + return m.Size() +} +func (m *JunosRsvpInterface) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsvpInterface.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsvpInterface proto.InternalMessageInfo + +func (m *JunosRsvpInterface) GetRsvpInterfaceInformation() *JunosRsvpInterfaceRsvpInterfaceInformationType { + if m != nil { + return m.RsvpInterfaceInformation + } + return nil +} + +type JunosRsvpInterfaceRsvpInterfaceInformationType struct { + ActiveCount *uint32 `protobuf:"varint,51,opt,name=active_count,json=activeCount" json:"active_count,omitempty"` + RsvpInterface []*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList `protobuf:"bytes,151,rep,name=rsvp_interface,json=rsvpInterface" json:"rsvp_interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) Reset() { + *m = JunosRsvpInterfaceRsvpInterfaceInformationType{} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationType) ProtoMessage() {} +func (*JunosRsvpInterfaceRsvpInterfaceInformationType) Descriptor() ([]byte, []int) { + return fileDescriptor_df4225f46c0f8328, []int{0, 0} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationType.Merge(m, src) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationType proto.InternalMessageInfo + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) GetActiveCount() uint32 { + if m != nil && m.ActiveCount != nil { + return *m.ActiveCount + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) GetRsvpInterface() []*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList { + if m != nil { + return m.RsvpInterface + } + return nil +} + +type JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList struct { + InterfaceName *string `protobuf:"bytes,51,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` + Index *uint32 `protobuf:"varint,52,opt,name=index" json:"index,omitempty"` + RsvpStatus *string `protobuf:"bytes,53,opt,name=rsvp_status,json=rsvpStatus" json:"rsvp_status,omitempty"` + AuthenticationFlag *string `protobuf:"bytes,54,opt,name=authentication_flag,json=authenticationFlag" json:"authentication_flag,omitempty"` + AggregateFlag *string `protobuf:"bytes,55,opt,name=aggregate_flag,json=aggregateFlag" json:"aggregate_flag,omitempty"` + AckFlag *string `protobuf:"bytes,56,opt,name=ack_flag,json=ackFlag" json:"ack_flag,omitempty"` + ProtectFlag *string `protobuf:"bytes,57,opt,name=protect_flag,json=protectFlag" json:"protect_flag,omitempty"` + HelloInterval *uint32 `protobuf:"varint,58,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + InterfaceAddress *string `protobuf:"bytes,59,opt,name=interface_address,json=interfaceAddress" json:"interface_address,omitempty"` + MessageStatistics []*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList `protobuf:"bytes,151,rep,name=message_statistics,json=messageStatistics" json:"message_statistics,omitempty"` + RsvpTelink *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType `protobuf:"bytes,152,opt,name=rsvp_telink,json=rsvpTelink" json:"rsvp_telink,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) Reset() { + *m = JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList{} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) ProtoMessage() {} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_df4225f46c0f8328, []int{0, 0, 0} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList.Merge(m, src) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList proto.InternalMessageInfo + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetInterfaceName() string { + if m != nil && m.InterfaceName != nil { + return *m.InterfaceName + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetRsvpStatus() string { + if m != nil && m.RsvpStatus != nil { + return *m.RsvpStatus + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetAuthenticationFlag() string { + if m != nil && m.AuthenticationFlag != nil { + return *m.AuthenticationFlag + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetAggregateFlag() string { + if m != nil && m.AggregateFlag != nil { + return *m.AggregateFlag + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetAckFlag() string { + if m != nil && m.AckFlag != nil { + return *m.AckFlag + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetProtectFlag() string { + if m != nil && m.ProtectFlag != nil { + return *m.ProtectFlag + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetInterfaceAddress() string { + if m != nil && m.InterfaceAddress != nil { + return *m.InterfaceAddress + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetMessageStatistics() []*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList { + if m != nil { + return m.MessageStatistics + } + return nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) GetRsvpTelink() *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType { + if m != nil { + return m.RsvpTelink + } + return nil +} + +type JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList struct { + RsvpMessage *string `protobuf:"bytes,51,opt,name=rsvp_message,json=rsvpMessage" json:"rsvp_message,omitempty"` + MessagesSent *uint32 `protobuf:"varint,52,opt,name=messages_sent,json=messagesSent" json:"messages_sent,omitempty"` + MessagesReceived *uint32 `protobuf:"varint,53,opt,name=messages_received,json=messagesReceived" json:"messages_received,omitempty"` + MessagesSent_5Seconds *uint32 `protobuf:"varint,54,opt,name=messages_sent_5seconds,json=messagesSent5seconds" json:"messages_sent_5seconds,omitempty"` + MessagesReceived_5Seconds *uint32 `protobuf:"varint,55,opt,name=messages_received_5seconds,json=messagesReceived5seconds" json:"messages_received_5seconds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) Reset() { + *m = JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList{} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) ProtoMessage() { +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) Descriptor() ([]byte, []int) { + return fileDescriptor_df4225f46c0f8328, []int{0, 0, 0, 0} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList.Merge(m, src) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) XXX_Size() int { + return m.Size() +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList proto.InternalMessageInfo + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) GetRsvpMessage() string { + if m != nil && m.RsvpMessage != nil { + return *m.RsvpMessage + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) GetMessagesSent() uint32 { + if m != nil && m.MessagesSent != nil { + return *m.MessagesSent + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) GetMessagesReceived() uint32 { + if m != nil && m.MessagesReceived != nil { + return *m.MessagesReceived + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) GetMessagesSent_5Seconds() uint32 { + if m != nil && m.MessagesSent_5Seconds != nil { + return *m.MessagesSent_5Seconds + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) GetMessagesReceived_5Seconds() uint32 { + if m != nil && m.MessagesReceived_5Seconds != nil { + return *m.MessagesReceived_5Seconds + } + return 0 +} + +type JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType struct { + ActiveReservation *uint32 `protobuf:"varint,51,opt,name=active_reservation,json=activeReservation" json:"active_reservation,omitempty"` + PreemptionCount *uint32 `protobuf:"varint,52,opt,name=preemption_count,json=preemptionCount" json:"preemption_count,omitempty"` + UpdateThreshold *uint32 `protobuf:"varint,53,opt,name=update_threshold,json=updateThreshold" json:"update_threshold,omitempty"` + Subscription *uint32 `protobuf:"varint,54,opt,name=subscription" json:"subscription,omitempty"` + StaticBandwidth *string `protobuf:"bytes,55,opt,name=static_bandwidth,json=staticBandwidth" json:"static_bandwidth,omitempty"` + AvailableBandwidth *string `protobuf:"bytes,56,opt,name=available_bandwidth,json=availableBandwidth" json:"available_bandwidth,omitempty"` + ReservedBandwidth []*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList `protobuf:"bytes,151,rep,name=reserved_bandwidth,json=reservedBandwidth" json:"reserved_bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) Reset() { + *m = JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType{} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) ProtoMessage() { +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) Descriptor() ([]byte, []int) { + return fileDescriptor_df4225f46c0f8328, []int{0, 0, 0, 1} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType.Merge(m, src) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) XXX_Size() int { + return m.Size() +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType proto.InternalMessageInfo + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetActiveReservation() uint32 { + if m != nil && m.ActiveReservation != nil { + return *m.ActiveReservation + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetPreemptionCount() uint32 { + if m != nil && m.PreemptionCount != nil { + return *m.PreemptionCount + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetUpdateThreshold() uint32 { + if m != nil && m.UpdateThreshold != nil { + return *m.UpdateThreshold + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetSubscription() uint32 { + if m != nil && m.Subscription != nil { + return *m.Subscription + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetStaticBandwidth() string { + if m != nil && m.StaticBandwidth != nil { + return *m.StaticBandwidth + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetAvailableBandwidth() string { + if m != nil && m.AvailableBandwidth != nil { + return *m.AvailableBandwidth + } + return "" +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) GetReservedBandwidth() []*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList { + if m != nil { + return m.ReservedBandwidth + } + return nil +} + +type JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList struct { + BandwidthPriority *uint32 `protobuf:"varint,51,opt,name=bandwidth_priority,json=bandwidthPriority" json:"bandwidth_priority,omitempty"` + TotalReservedBandwidth *string `protobuf:"bytes,52,opt,name=total_reserved_bandwidth,json=totalReservedBandwidth" json:"total_reserved_bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) Reset() { + *m = JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList{} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) ProtoMessage() { +} +func (*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) Descriptor() ([]byte, []int) { + return fileDescriptor_df4225f46c0f8328, []int{0, 0, 0, 1, 0} +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList.Merge(m, src) +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) XXX_Size() int { + return m.Size() +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList proto.InternalMessageInfo + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) GetBandwidthPriority() uint32 { + if m != nil && m.BandwidthPriority != nil { + return *m.BandwidthPriority + } + return 0 +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) GetTotalReservedBandwidth() string { + if m != nil && m.TotalReservedBandwidth != nil { + return *m.TotalReservedBandwidth + } + return "" +} + +var E_JnprJunosRsvpInterfaceExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosRsvpInterface)(nil), + Field: 46, + Name: "jnpr_junos_rsvp_interface_ext", + Tag: "bytes,46,opt,name=jnpr_junos_rsvp_interface_ext", + Filename: "junos-xmlproxyd_junos-rsvp-interface.proto", +} + +func init() { + proto.RegisterType((*JunosRsvpInterface)(nil), "junos_rsvp_interface") + proto.RegisterType((*JunosRsvpInterfaceRsvpInterfaceInformationType)(nil), "junos_rsvp_interface.rsvp_interface_information_type") + proto.RegisterType((*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList)(nil), "junos_rsvp_interface.rsvp_interface_information_type.rsvp_interface_list") + proto.RegisterType((*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList)(nil), "junos_rsvp_interface.rsvp_interface_information_type.rsvp_interface_list.message_statistics_list") + proto.RegisterType((*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType)(nil), "junos_rsvp_interface.rsvp_interface_information_type.rsvp_interface_list.rsvp_telink_type") + proto.RegisterType((*JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList)(nil), "junos_rsvp_interface.rsvp_interface_information_type.rsvp_interface_list.rsvp_telink_type.reserved_bandwidth_list") + proto.RegisterExtension(E_JnprJunosRsvpInterfaceExt) +} + +func init() { + proto.RegisterFile("junos-xmlproxyd_junos-rsvp-interface.proto", fileDescriptor_df4225f46c0f8328) +} + +var fileDescriptor_df4225f46c0f8328 = []byte{ + // 856 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xd7, 0x16, 0x2a, 0xca, 0xb3, 0x37, 0x71, 0x26, 0xa1, 0xd9, 0x5a, 0x22, 0xfd, 0x40, 0x48, + 0x29, 0x60, 0x5b, 0x2a, 0x09, 0x0d, 0x85, 0x03, 0x04, 0x81, 0x94, 0x4a, 0x54, 0x68, 0xd3, 0x53, + 0x2f, 0xcb, 0x78, 0xf7, 0x65, 0x3d, 0xf1, 0x7a, 0x66, 0x99, 0x79, 0x76, 0x1d, 0x89, 0x13, 0x17, + 0xd4, 0x23, 0x17, 0xe0, 0xcc, 0x5f, 0xd3, 0x0b, 0x12, 0x7f, 0x02, 0xca, 0x5f, 0x82, 0x66, 0x66, + 0xd7, 0x1f, 0x89, 0x23, 0x24, 0x14, 0x8e, 0xfb, 0xfb, 0x78, 0xf3, 0xe6, 0x7d, 0xcc, 0xc2, 0x07, + 0xa7, 0x63, 0xa9, 0x4c, 0x67, 0x3a, 0x2a, 0x4a, 0xad, 0xa6, 0x67, 0x59, 0xe2, 0xbf, 0xb5, 0x99, + 0x94, 0x1d, 0x21, 0x09, 0xf5, 0x09, 0x4f, 0xb1, 0x5b, 0x6a, 0x45, 0xaa, 0xbd, 0x49, 0x58, 0xe0, + 0x08, 0x49, 0x9f, 0x25, 0xa4, 0x4a, 0x0f, 0x3e, 0xf8, 0x75, 0x0d, 0xb6, 0x9c, 0x27, 0xb1, 0x9e, + 0x64, 0xe6, 0x61, 0x04, 0xed, 0x65, 0x24, 0x11, 0xf2, 0x44, 0xe9, 0x11, 0x27, 0xa1, 0x64, 0xf4, + 0x5b, 0x70, 0x2f, 0xd8, 0x6d, 0x3c, 0xda, 0xef, 0xae, 0xf2, 0x76, 0xaf, 0x36, 0x26, 0x74, 0x56, + 0x62, 0x1c, 0x59, 0xc1, 0x51, 0xcd, 0x1f, 0xcd, 0xe9, 0xf6, 0xcf, 0x21, 0xdc, 0xfd, 0x17, 0x37, + 0xbb, 0x0f, 0x4d, 0x9e, 0x92, 0x98, 0x60, 0x92, 0xaa, 0xb1, 0xa4, 0xe8, 0xe3, 0x7b, 0xc1, 0x6e, + 0x18, 0x37, 0x3c, 0xf6, 0x95, 0x85, 0xd8, 0x0f, 0xb0, 0xb6, 0x1c, 0xc5, 0x26, 0xfc, 0xc6, 0x6e, + 0xe3, 0xd1, 0xd1, 0x7f, 0x4a, 0xf8, 0x22, 0x5f, 0x08, 0x43, 0x71, 0xb8, 0x74, 0x89, 0xf6, 0x9f, + 0x0d, 0xd8, 0x5c, 0x21, 0x63, 0x1f, 0xc1, 0xda, 0x1c, 0x91, 0x7c, 0x84, 0x2e, 0xdf, 0xb7, 0x0f, + 0x6f, 0xfe, 0xf4, 0xc5, 0x8d, 0x5b, 0x41, 0x1c, 0xce, 0xc8, 0x67, 0x7c, 0x84, 0x6c, 0x0b, 0x6e, + 0x0a, 0x99, 0xe1, 0x34, 0xda, 0x73, 0x97, 0xf2, 0x1f, 0xec, 0x2e, 0x34, 0x5c, 0x68, 0x43, 0x9c, + 0xc6, 0x26, 0xda, 0xb7, 0x01, 0x62, 0xb0, 0xd0, 0xb1, 0x43, 0x58, 0x0f, 0x36, 0xf9, 0x98, 0x06, + 0x28, 0x49, 0xa4, 0x3e, 0xed, 0x93, 0x82, 0xe7, 0xd1, 0x27, 0x4e, 0xc8, 0x96, 0xa9, 0x6f, 0x0a, + 0x9e, 0xb3, 0xf7, 0x61, 0x8d, 0xe7, 0xb9, 0xc6, 0x9c, 0x13, 0x7a, 0xed, 0x63, 0xa7, 0x0d, 0x67, + 0xa8, 0x93, 0xdd, 0x81, 0x5b, 0x3c, 0x1d, 0x7a, 0xc1, 0x81, 0x13, 0xbc, 0xc5, 0xd3, 0xa1, 0xa3, + 0xee, 0x43, 0xd3, 0x4e, 0x10, 0xa6, 0xe4, 0xe9, 0x4f, 0x1d, 0xdd, 0xa8, 0xb0, 0xfa, 0x90, 0x01, + 0x16, 0x85, 0xf2, 0x25, 0x99, 0xf0, 0x22, 0x7a, 0xe2, 0x6e, 0x15, 0x3a, 0xf4, 0xa8, 0x02, 0xd9, + 0x87, 0xb0, 0x31, 0xaf, 0x10, 0xcf, 0x32, 0x8d, 0xc6, 0x44, 0x9f, 0xb9, 0x70, 0xad, 0x19, 0xf1, + 0xa5, 0xc7, 0xd9, 0x2f, 0x01, 0xb0, 0x11, 0x1a, 0xc3, 0x73, 0x74, 0xe5, 0x10, 0x86, 0x44, 0x6a, + 0xea, 0xf6, 0xf2, 0x6b, 0x6b, 0x6f, 0xf7, 0xf2, 0x21, 0xbe, 0xed, 0x1b, 0x15, 0x71, 0x3c, 0xc3, + 0xd9, 0x8f, 0x55, 0x7b, 0x08, 0x0b, 0x21, 0x87, 0xd1, 0xef, 0x7e, 0x37, 0x5e, 0x5c, 0x5f, 0x2e, + 0x0b, 0xd1, 0xfd, 0x02, 0xb9, 0xde, 0x3f, 0x77, 0x40, 0xfb, 0xd5, 0x0d, 0xd8, 0xbe, 0x22, 0x59, + 0xb6, 0x0b, 0x4d, 0xe7, 0xad, 0xf8, 0xe5, 0xd1, 0x73, 0x49, 0x7f, 0xeb, 0x19, 0xf6, 0x1e, 0x84, + 0x95, 0xc8, 0x24, 0x06, 0x25, 0x55, 0x03, 0xd8, 0xac, 0xc1, 0x63, 0x94, 0x64, 0x3b, 0x35, 0x13, + 0x69, 0x4c, 0x51, 0x4c, 0x30, 0x73, 0xd3, 0x18, 0xc6, 0xad, 0x9a, 0x88, 0x2b, 0x9c, 0xed, 0xc1, + 0xed, 0xa5, 0x88, 0xc9, 0xbe, 0xc1, 0x54, 0xc9, 0xcc, 0xb8, 0xb1, 0x0c, 0xe3, 0xad, 0xc5, 0xd0, + 0x35, 0xc7, 0x3e, 0x87, 0xf6, 0xa5, 0x23, 0xe6, 0xce, 0xc7, 0xce, 0x19, 0x5d, 0x3c, 0xab, 0xe6, + 0xdb, 0xaf, 0xdf, 0x84, 0xd6, 0xc5, 0x62, 0xb1, 0x0e, 0xb0, 0xea, 0xbd, 0xd0, 0x68, 0xec, 0xc8, + 0xb9, 0x17, 0xcc, 0xbf, 0x1a, 0x1b, 0x9e, 0x89, 0xe7, 0x04, 0x7b, 0x08, 0xad, 0x52, 0x23, 0x8e, + 0x4a, 0xd7, 0x13, 0xff, 0xc4, 0xf8, 0x62, 0xac, 0xcf, 0x71, 0xff, 0xcc, 0x3c, 0x84, 0xd6, 0xb8, + 0xcc, 0xec, 0x0a, 0xd1, 0x40, 0xa3, 0x19, 0xa8, 0xa2, 0x2e, 0xc7, 0xba, 0xc7, 0x9f, 0xd7, 0x30, + 0x7b, 0x00, 0x4d, 0x33, 0xee, 0x9b, 0x54, 0x0b, 0xe7, 0xaf, 0x6a, 0xb0, 0x84, 0xd9, 0x70, 0xae, + 0x81, 0x69, 0xd2, 0xe7, 0x32, 0x7b, 0x29, 0x32, 0x1a, 0x54, 0x6b, 0xb9, 0xee, 0xf1, 0xc3, 0x1a, + 0x76, 0x0b, 0x3f, 0xe1, 0xa2, 0xe0, 0xfd, 0x02, 0x17, 0xd4, 0x07, 0xd5, 0xc2, 0xd7, 0xd4, 0xdc, + 0xf0, 0x47, 0x00, 0xcc, 0x5f, 0x1f, 0xb3, 0x05, 0x43, 0xb5, 0x37, 0xfa, 0xff, 0x9b, 0xd5, 0xee, + 0xe5, 0x53, 0xab, 0x45, 0xaa, 0x89, 0x59, 0x92, 0xed, 0x57, 0x01, 0x6c, 0x5f, 0x21, 0x67, 0x7b, + 0xc0, 0xe6, 0x48, 0xa9, 0x85, 0xd2, 0x82, 0xce, 0x7c, 0x17, 0xeb, 0x81, 0xde, 0x98, 0x09, 0xbe, + 0xab, 0x78, 0x76, 0x00, 0x11, 0x29, 0xe2, 0x45, 0xb2, 0xe2, 0xee, 0x7b, 0xae, 0x58, 0xb7, 0x1d, + 0x1f, 0x5f, 0xcc, 0xe5, 0x49, 0x09, 0xef, 0x9e, 0xca, 0x52, 0x27, 0xab, 0x0a, 0x93, 0xe0, 0x94, + 0xd8, 0x76, 0xf7, 0xe9, 0x58, 0x8a, 0x12, 0xf5, 0x33, 0xa4, 0x97, 0x4a, 0x0f, 0xed, 0x1c, 0x1b, + 0xa5, 0x4d, 0xd4, 0x75, 0xeb, 0xff, 0xce, 0xca, 0x92, 0xc6, 0x77, 0x6c, 0xd0, 0xa7, 0x96, 0x89, + 0x17, 0x7f, 0x1f, 0x5f, 0x4f, 0xe9, 0xf0, 0xfb, 0xd7, 0xe7, 0x3b, 0xc1, 0x5f, 0xe7, 0x3b, 0xc1, + 0xdf, 0xe7, 0x3b, 0xc1, 0x8b, 0x38, 0x17, 0x64, 0x43, 0xd8, 0x13, 0xba, 0x12, 0xa9, 0x27, 0x52, + 0xec, 0xa3, 0xce, 0x7b, 0x03, 0xe4, 0x05, 0x0d, 0xfa, 0x8a, 0x3a, 0x42, 0xe6, 0x68, 0xa8, 0x73, + 0x4a, 0xa2, 0x23, 0xb9, 0x1d, 0xe3, 0x5e, 0x39, 0xcc, 0x7b, 0xa7, 0x24, 0x7a, 0x3c, 0xe3, 0x25, + 0xa1, 0x36, 0x3d, 0x9f, 0x7e, 0xcf, 0xa4, 0x03, 0x1c, 0xf1, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x31, 0xd6, 0x71, 0x08, 0x2e, 0x08, 0x00, 0x00, +} + +func (m *JunosRsvpInterface) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsvpInterface) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsvpInterface) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RsvpInterfaceInformation != nil { + { + size, err := m.RsvpInterfaceInformation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RsvpInterface) > 0 { + for iNdEx := len(m.RsvpInterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RsvpInterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.ActiveCount != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.ActiveCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RsvpTelink != nil { + { + size, err := m.RsvpTelink.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if len(m.MessageStatistics) > 0 { + for iNdEx := len(m.MessageStatistics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MessageStatistics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.InterfaceAddress != nil { + i -= len(*m.InterfaceAddress) + copy(dAtA[i:], *m.InterfaceAddress) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.InterfaceAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.HelloInterval != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.ProtectFlag != nil { + i -= len(*m.ProtectFlag) + copy(dAtA[i:], *m.ProtectFlag) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.ProtectFlag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.AckFlag != nil { + i -= len(*m.AckFlag) + copy(dAtA[i:], *m.AckFlag) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.AckFlag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.AggregateFlag != nil { + i -= len(*m.AggregateFlag) + copy(dAtA[i:], *m.AggregateFlag) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.AggregateFlag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.AuthenticationFlag != nil { + i -= len(*m.AuthenticationFlag) + copy(dAtA[i:], *m.AuthenticationFlag) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.AuthenticationFlag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.RsvpStatus != nil { + i -= len(*m.RsvpStatus) + copy(dAtA[i:], *m.RsvpStatus) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.RsvpStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Index != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InterfaceName != nil { + i -= len(*m.InterfaceName) + copy(dAtA[i:], *m.InterfaceName) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.InterfaceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MessagesReceived_5Seconds != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.MessagesReceived_5Seconds)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.MessagesSent_5Seconds != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.MessagesSent_5Seconds)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.MessagesReceived != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.MessagesReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MessagesSent != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.MessagesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RsvpMessage != nil { + i -= len(*m.RsvpMessage) + copy(dAtA[i:], *m.RsvpMessage) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.RsvpMessage))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ReservedBandwidth) > 0 { + for iNdEx := len(m.ReservedBandwidth) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReservedBandwidth[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.AvailableBandwidth != nil { + i -= len(*m.AvailableBandwidth) + copy(dAtA[i:], *m.AvailableBandwidth) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.AvailableBandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.StaticBandwidth != nil { + i -= len(*m.StaticBandwidth) + copy(dAtA[i:], *m.StaticBandwidth) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.StaticBandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Subscription != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.Subscription)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.UpdateThreshold != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.UpdateThreshold)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.PreemptionCount != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.PreemptionCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ActiveReservation != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.ActiveReservation)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalReservedBandwidth != nil { + i -= len(*m.TotalReservedBandwidth) + copy(dAtA[i:], *m.TotalReservedBandwidth) + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(len(*m.TotalReservedBandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.BandwidthPriority != nil { + i = encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA, i, uint64(*m.BandwidthPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintJunosXmlproxydJunosRsvpInterface(dAtA []byte, offset int, v uint64) int { + offset -= sovJunosXmlproxydJunosRsvpInterface(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosRsvpInterface) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RsvpInterfaceInformation != nil { + l = m.RsvpInterfaceInformation.Size() + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ActiveCount != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.ActiveCount)) + } + if len(m.RsvpInterface) > 0 { + for _, e := range m.RsvpInterface { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceName != nil { + l = len(*m.InterfaceName) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.Index != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.Index)) + } + if m.RsvpStatus != nil { + l = len(*m.RsvpStatus) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.AuthenticationFlag != nil { + l = len(*m.AuthenticationFlag) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.AggregateFlag != nil { + l = len(*m.AggregateFlag) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.AckFlag != nil { + l = len(*m.AckFlag) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.ProtectFlag != nil { + l = len(*m.ProtectFlag) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.HelloInterval != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.HelloInterval)) + } + if m.InterfaceAddress != nil { + l = len(*m.InterfaceAddress) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if len(m.MessageStatistics) > 0 { + for _, e := range m.MessageStatistics { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + } + if m.RsvpTelink != nil { + l = m.RsvpTelink.Size() + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RsvpMessage != nil { + l = len(*m.RsvpMessage) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.MessagesSent != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.MessagesSent)) + } + if m.MessagesReceived != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.MessagesReceived)) + } + if m.MessagesSent_5Seconds != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.MessagesSent_5Seconds)) + } + if m.MessagesReceived_5Seconds != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.MessagesReceived_5Seconds)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ActiveReservation != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.ActiveReservation)) + } + if m.PreemptionCount != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.PreemptionCount)) + } + if m.UpdateThreshold != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.UpdateThreshold)) + } + if m.Subscription != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.Subscription)) + } + if m.StaticBandwidth != nil { + l = len(*m.StaticBandwidth) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.AvailableBandwidth != nil { + l = len(*m.AvailableBandwidth) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if len(m.ReservedBandwidth) > 0 { + for _, e := range m.ReservedBandwidth { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BandwidthPriority != nil { + n += 2 + sovJunosXmlproxydJunosRsvpInterface(uint64(*m.BandwidthPriority)) + } + if m.TotalReservedBandwidth != nil { + l = len(*m.TotalReservedBandwidth) + n += 2 + l + sovJunosXmlproxydJunosRsvpInterface(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJunosXmlproxydJunosRsvpInterface(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJunosXmlproxydJunosRsvpInterface(x uint64) (n int) { + return sovJunosXmlproxydJunosRsvpInterface(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosRsvpInterface) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_rsvp_interface: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_rsvp_interface: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsvpInterfaceInformation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RsvpInterfaceInformation == nil { + m.RsvpInterfaceInformation = &JunosRsvpInterfaceRsvpInterfaceInformationType{} + } + if err := m.RsvpInterfaceInformation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRsvpInterface(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rsvp_interface_information_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rsvp_interface_information_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveCount = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsvpInterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RsvpInterface = append(m.RsvpInterface, &JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList{}) + if err := m.RsvpInterface[len(m.RsvpInterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRsvpInterface(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rsvp_interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rsvp_interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsvpStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RsvpStatus = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationFlag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AuthenticationFlag = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateFlag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AggregateFlag = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AckFlag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AckFlag = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtectFlag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProtectFlag = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceAddress = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MessageStatistics = append(m.MessageStatistics, &JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList{}) + if err := m.MessageStatistics[len(m.MessageStatistics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsvpTelink", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RsvpTelink == nil { + m.RsvpTelink = &JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType{} + } + if err := m.RsvpTelink.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRsvpInterface(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListMessageStatisticsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: message_statistics_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: message_statistics_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsvpMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RsvpMessage = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessagesSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MessagesSent = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessagesReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MessagesReceived = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessagesSent_5Seconds", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MessagesSent_5Seconds = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessagesReceived_5Seconds", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MessagesReceived_5Seconds = &v + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRsvpInterface(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rsvp_telink_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rsvp_telink_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveReservation", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveReservation = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreemptionCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreemptionCount = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateThreshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateThreshold = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subscription = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StaticBandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.StaticBandwidth = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableBandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AvailableBandwidth = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservedBandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReservedBandwidth = append(m.ReservedBandwidth, &JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList{}) + if err := m.ReservedBandwidth[len(m.ReservedBandwidth)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRsvpInterface(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRsvpInterfaceRsvpInterfaceInformationTypeRsvpInterfaceListRsvpTelinkTypeReservedBandwidthList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: reserved_bandwidth_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: reserved_bandwidth_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BandwidthPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BandwidthPriority = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalReservedBandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TotalReservedBandwidth = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRsvpInterface(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJunosXmlproxydJunosRsvpInterface(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJunosXmlproxydJunosRsvpInterface + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJunosXmlproxydJunosRsvpInterface + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJunosXmlproxydJunosRsvpInterface + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJunosXmlproxydJunosRsvpInterface = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJunosXmlproxydJunosRsvpInterface = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJunosXmlproxydJunosRsvpInterface = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/junos-xmlproxyd_junos-rsvp-interface.proto b/schema/junos-xmlproxyd_junos-rsvp-interface.proto new file mode 100755 index 0000000..d71ae50 --- /dev/null +++ b/schema/junos-xmlproxyd_junos-rsvp-interface.proto @@ -0,0 +1,48 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_rsvp_interface jnpr_junos_rsvp_interface_ext = 46; +} + +message junos_rsvp_interface { + optional rsvp_interface_information_type rsvp_interface_information = 151; + message rsvp_interface_information_type { + optional uint32 active_count = 51; + message rsvp_interface_list { + optional string interface_name = 51 [(telemetry_options).is_key = true]; + optional uint32 index = 52; + optional string rsvp_status = 53; + optional string authentication_flag = 54; + optional string aggregate_flag = 55; + optional string ack_flag = 56; + optional string protect_flag = 57; + optional uint32 hello_interval = 58; + optional string interface_address = 59; + message message_statistics_list { + optional string rsvp_message = 51 [(telemetry_options).is_key = true]; + optional uint32 messages_sent = 52; + optional uint32 messages_received = 53; + optional uint32 messages_sent_5seconds = 54; + optional uint32 messages_received_5seconds = 55; + } + repeated message_statistics_list message_statistics = 151; + optional rsvp_telink_type rsvp_telink = 152; + message rsvp_telink_type { + optional uint32 active_reservation = 51; + optional uint32 preemption_count = 52; + optional uint32 update_threshold = 53; + optional uint32 subscription = 54; + optional string static_bandwidth = 55; + optional string available_bandwidth = 56; + message reserved_bandwidth_list { + optional uint32 bandwidth_priority = 51 [(telemetry_options).is_key = true]; + optional string total_reserved_bandwidth = 52; + } + repeated reserved_bandwidth_list reserved_bandwidth = 151; + } + } + repeated rsvp_interface_list rsvp_interface = 151; + } +} diff --git a/schema/junos-xmlproxyd_junos-rtg-task-memory.pb.go b/schema/junos-xmlproxyd_junos-rtg-task-memory.pb.go new file mode 100644 index 0000000..82093d6 --- /dev/null +++ b/schema/junos-xmlproxyd_junos-rtg-task-memory.pb.go @@ -0,0 +1,4904 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: junos-xmlproxyd_junos-rtg-task-memory.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosTaskMemory struct { + TaskMemoryInformation *JunosTaskMemoryTaskMemoryInformationType `protobuf:"bytes,151,opt,name=task_memory_information,json=taskMemoryInformation" json:"task_memory_information,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemory) Reset() { *m = JunosTaskMemory{} } +func (m *JunosTaskMemory) String() string { return proto.CompactTextString(m) } +func (*JunosTaskMemory) ProtoMessage() {} +func (*JunosTaskMemory) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0} +} +func (m *JunosTaskMemory) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemory.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemory) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemory.Merge(m, src) +} +func (m *JunosTaskMemory) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemory) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemory.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemory proto.InternalMessageInfo + +func (m *JunosTaskMemory) GetTaskMemoryInformation() *JunosTaskMemoryTaskMemoryInformationType { + if m != nil { + return m.TaskMemoryInformation + } + return nil +} + +type JunosTaskMemoryTaskMemoryInformationType struct { + TaskMemoryOverallReport *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType `protobuf:"bytes,151,opt,name=task_memory_overall_report,json=taskMemoryOverallReport" json:"task_memory_overall_report,omitempty"` + TaskMemoryAllocatorReport *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType `protobuf:"bytes,152,opt,name=task_memory_allocator_report,json=taskMemoryAllocatorReport" json:"task_memory_allocator_report,omitempty"` + TaskMemoryMallocUsageReport *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType `protobuf:"bytes,153,opt,name=task_memory_malloc_usage_report,json=taskMemoryMallocUsageReport" json:"task_memory_malloc_usage_report,omitempty"` + TaskMemoryDynamicAllocs *uint64 `protobuf:"varint,51,opt,name=task_memory_dynamic_allocs,json=taskMemoryDynamicAllocs" json:"task_memory_dynamic_allocs,omitempty"` + TaskMemoryMaxDynamicAllocs *uint64 `protobuf:"varint,52,opt,name=task_memory_max_dynamic_allocs,json=taskMemoryMaxDynamicAllocs" json:"task_memory_max_dynamic_allocs,omitempty"` + TaskMemoryBssBytes *uint64 `protobuf:"varint,53,opt,name=task_memory_bss_bytes,json=taskMemoryBssBytes" json:"task_memory_bss_bytes,omitempty"` + TaskMemoryMaxBssBytes *uint64 `protobuf:"varint,54,opt,name=task_memory_max_bss_bytes,json=taskMemoryMaxBssBytes" json:"task_memory_max_bss_bytes,omitempty"` + TaskMemoryPageDataBytes *uint64 `protobuf:"varint,55,opt,name=task_memory_page_data_bytes,json=taskMemoryPageDataBytes" json:"task_memory_page_data_bytes,omitempty"` + TaskMemoryMaxPageDataBytes *uint64 `protobuf:"varint,56,opt,name=task_memory_max_page_data_bytes,json=taskMemoryMaxPageDataBytes" json:"task_memory_max_page_data_bytes,omitempty"` + TaskMemoryDirBytes *uint64 `protobuf:"varint,57,opt,name=task_memory_dir_bytes,json=taskMemoryDirBytes" json:"task_memory_dir_bytes,omitempty"` + TaskMemoryMaxDirBytes *uint64 `protobuf:"varint,58,opt,name=task_memory_max_dir_bytes,json=taskMemoryMaxDirBytes" json:"task_memory_max_dir_bytes,omitempty"` + TaskMemoryTotalBytesInUse *uint64 `protobuf:"varint,59,opt,name=task_memory_total_bytes_in_use,json=taskMemoryTotalBytesInUse" json:"task_memory_total_bytes_in_use,omitempty"` + TaskMemoryTotalBytesPercent *uint32 `protobuf:"varint,60,opt,name=task_memory_total_bytes_percent,json=taskMemoryTotalBytesPercent" json:"task_memory_total_bytes_percent,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationType) String() string { return proto.CompactTextString(m) } +func (*JunosTaskMemoryTaskMemoryInformationType) ProtoMessage() {} +func (*JunosTaskMemoryTaskMemoryInformationType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryOverallReport() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType { + if m != nil { + return m.TaskMemoryOverallReport + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryAllocatorReport() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType { + if m != nil { + return m.TaskMemoryAllocatorReport + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryMallocUsageReport() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType { + if m != nil { + return m.TaskMemoryMallocUsageReport + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryDynamicAllocs() uint64 { + if m != nil && m.TaskMemoryDynamicAllocs != nil { + return *m.TaskMemoryDynamicAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryMaxDynamicAllocs() uint64 { + if m != nil && m.TaskMemoryMaxDynamicAllocs != nil { + return *m.TaskMemoryMaxDynamicAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryBssBytes() uint64 { + if m != nil && m.TaskMemoryBssBytes != nil { + return *m.TaskMemoryBssBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryMaxBssBytes() uint64 { + if m != nil && m.TaskMemoryMaxBssBytes != nil { + return *m.TaskMemoryMaxBssBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryPageDataBytes() uint64 { + if m != nil && m.TaskMemoryPageDataBytes != nil { + return *m.TaskMemoryPageDataBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryMaxPageDataBytes() uint64 { + if m != nil && m.TaskMemoryMaxPageDataBytes != nil { + return *m.TaskMemoryMaxPageDataBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryDirBytes() uint64 { + if m != nil && m.TaskMemoryDirBytes != nil { + return *m.TaskMemoryDirBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryMaxDirBytes() uint64 { + if m != nil && m.TaskMemoryMaxDirBytes != nil { + return *m.TaskMemoryMaxDirBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryTotalBytesInUse() uint64 { + if m != nil && m.TaskMemoryTotalBytesInUse != nil { + return *m.TaskMemoryTotalBytesInUse + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) GetTaskMemoryTotalBytesPercent() uint32 { + if m != nil && m.TaskMemoryTotalBytesPercent != nil { + return *m.TaskMemoryTotalBytesPercent + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType struct { + TaskSizeBlockList *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType `protobuf:"bytes,151,opt,name=task_size_block_list,json=taskSizeBlockList" json:"task_size_block_list,omitempty"` + TaskMemoryStatsList *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType `protobuf:"bytes,152,opt,name=task_memory_stats_list,json=taskMemoryStatsList" json:"task_memory_stats_list,omitempty"` + TaskMemoryTotalBytes *uint64 `protobuf:"varint,51,opt,name=task_memory_total_bytes,json=taskMemoryTotalBytes" json:"task_memory_total_bytes,omitempty"` + TaskMemoryTotalMaxBytes *uint64 `protobuf:"varint,52,opt,name=task_memory_total_max_bytes,json=taskMemoryTotalMaxBytes" json:"task_memory_total_max_bytes,omitempty"` + TaskMemoryTotalFreeBytes *uint64 `protobuf:"varint,53,opt,name=task_memory_total_free_bytes,json=taskMemoryTotalFreeBytes" json:"task_memory_total_free_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) ProtoMessage() {} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) GetTaskSizeBlockList() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType { + if m != nil { + return m.TaskSizeBlockList + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) GetTaskMemoryStatsList() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType { + if m != nil { + return m.TaskMemoryStatsList + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) GetTaskMemoryTotalBytes() uint64 { + if m != nil && m.TaskMemoryTotalBytes != nil { + return *m.TaskMemoryTotalBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) GetTaskMemoryTotalMaxBytes() uint64 { + if m != nil && m.TaskMemoryTotalMaxBytes != nil { + return *m.TaskMemoryTotalMaxBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) GetTaskMemoryTotalFreeBytes() uint64 { + if m != nil && m.TaskMemoryTotalFreeBytes != nil { + return *m.TaskMemoryTotalFreeBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType struct { + TaskSizeBlock []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList `protobuf:"bytes,151,rep,name=task_size_block,json=taskSizeBlock" json:"task_size_block,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 0, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) GetTaskSizeBlock() []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList { + if m != nil { + return m.TaskSizeBlock + } + return nil +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList struct { + TsbSize *uint32 `protobuf:"varint,51,opt,name=tsb_size,json=tsbSize" json:"tsb_size,omitempty"` + TsbAllocBytes *uint32 `protobuf:"varint,52,opt,name=tsb_alloc_bytes,json=tsbAllocBytes" json:"tsb_alloc_bytes,omitempty"` + TsbAllocs *uint32 `protobuf:"varint,53,opt,name=tsb_allocs,json=tsbAllocs" json:"tsb_allocs,omitempty"` + TsbMaxAllocs *uint32 `protobuf:"varint,54,opt,name=tsb_max_allocs,json=tsbMaxAllocs" json:"tsb_max_allocs,omitempty"` + TsbMaxBytes *uint64 `protobuf:"varint,55,opt,name=tsb_max_bytes,json=tsbMaxBytes" json:"tsb_max_bytes,omitempty"` + TsbFreeBytes *uint64 `protobuf:"varint,56,opt,name=tsb_free_bytes,json=tsbFreeBytes" json:"tsb_free_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 0, 0, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) GetTsbSize() uint32 { + if m != nil && m.TsbSize != nil { + return *m.TsbSize + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) GetTsbAllocBytes() uint32 { + if m != nil && m.TsbAllocBytes != nil { + return *m.TsbAllocBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) GetTsbAllocs() uint32 { + if m != nil && m.TsbAllocs != nil { + return *m.TsbAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) GetTsbMaxAllocs() uint32 { + if m != nil && m.TsbMaxAllocs != nil { + return *m.TsbMaxAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) GetTsbMaxBytes() uint64 { + if m != nil && m.TsbMaxBytes != nil { + return *m.TsbMaxBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) GetTsbFreeBytes() uint64 { + if m != nil && m.TsbFreeBytes != nil { + return *m.TsbFreeBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType struct { + TaskMemoryStats []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList `protobuf:"bytes,151,rep,name=task_memory_stats,json=taskMemoryStats" json:"task_memory_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 0, 1} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) GetTaskMemoryStats() []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList { + if m != nil { + return m.TaskMemoryStats + } + return nil +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList struct { + TmsName *string `protobuf:"bytes,51,opt,name=tms_name,json=tmsName" json:"tms_name,omitempty"` + TmsAllocs *uint32 `protobuf:"varint,52,opt,name=tms_allocs,json=tmsAllocs" json:"tms_allocs,omitempty"` + TmsAllocBytes *uint64 `protobuf:"varint,53,opt,name=tms_alloc_bytes,json=tmsAllocBytes" json:"tms_alloc_bytes,omitempty"` + TmsMaxAllocs *uint32 `protobuf:"varint,54,opt,name=tms_max_allocs,json=tmsMaxAllocs" json:"tms_max_allocs,omitempty"` + TmsMaxBytes *uint64 `protobuf:"varint,55,opt,name=tms_max_bytes,json=tmsMaxBytes" json:"tms_max_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 0, 1, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) GetTmsName() string { + if m != nil && m.TmsName != nil { + return *m.TmsName + } + return "" +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) GetTmsAllocs() uint32 { + if m != nil && m.TmsAllocs != nil { + return *m.TmsAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) GetTmsAllocBytes() uint64 { + if m != nil && m.TmsAllocBytes != nil { + return *m.TmsAllocBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) GetTmsMaxAllocs() uint32 { + if m != nil && m.TmsMaxAllocs != nil { + return *m.TmsMaxAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) GetTmsMaxBytes() uint64 { + if m != nil && m.TmsMaxBytes != nil { + return *m.TmsMaxBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType struct { + TaskBlockList *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType `protobuf:"bytes,151,opt,name=task_block_list,json=taskBlockList" json:"task_block_list,omitempty"` + TaskLitePageList *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType `protobuf:"bytes,152,opt,name=task_lite_page_list,json=taskLitePageList" json:"task_lite_page_list,omitempty"` + TaskMemoryTotalBytes *uint64 `protobuf:"varint,52,opt,name=task_memory_total_bytes,json=taskMemoryTotalBytes" json:"task_memory_total_bytes,omitempty"` + TaskMemoryTotalMaxBytes *uint64 `protobuf:"varint,53,opt,name=task_memory_total_max_bytes,json=taskMemoryTotalMaxBytes" json:"task_memory_total_max_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) ProtoMessage() {} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 1} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) GetTaskBlockList() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType { + if m != nil { + return m.TaskBlockList + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) GetTaskLitePageList() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType { + if m != nil { + return m.TaskLitePageList + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) GetTaskMemoryTotalBytes() uint64 { + if m != nil && m.TaskMemoryTotalBytes != nil { + return *m.TaskMemoryTotalBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) GetTaskMemoryTotalMaxBytes() uint64 { + if m != nil && m.TaskMemoryTotalMaxBytes != nil { + return *m.TaskMemoryTotalMaxBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType struct { + TaskBlock []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList `protobuf:"bytes,151,rep,name=task_block,json=taskBlock" json:"task_block,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 1, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) GetTaskBlock() []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList { + if m != nil { + return m.TaskBlock + } + return nil +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList struct { + TbName *string `protobuf:"bytes,51,opt,name=tb_name,json=tbName" json:"tb_name,omitempty"` + TbSize *uint32 `protobuf:"varint,52,opt,name=tb_size,json=tbSize" json:"tb_size,omitempty"` + TbAllocSize *uint32 `protobuf:"varint,53,opt,name=tb_alloc_size,json=tbAllocSize" json:"tb_alloc_size,omitempty"` + TbAllocBlocks *uint32 `protobuf:"varint,54,opt,name=tb_alloc_blocks,json=tbAllocBlocks" json:"tb_alloc_blocks,omitempty"` + TbAllocBytes *uint64 `protobuf:"varint,55,opt,name=tb_alloc_bytes,json=tbAllocBytes" json:"tb_alloc_bytes,omitempty"` + TbMaxAllocBlocks *uint32 `protobuf:"varint,56,opt,name=tb_max_alloc_blocks,json=tbMaxAllocBlocks" json:"tb_max_alloc_blocks,omitempty"` + TbMaxAllocBytes *uint64 `protobuf:"varint,57,opt,name=tb_max_alloc_bytes,json=tbMaxAllocBytes" json:"tb_max_alloc_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 1, 0, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbName() string { + if m != nil && m.TbName != nil { + return *m.TbName + } + return "" +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbSize() uint32 { + if m != nil && m.TbSize != nil { + return *m.TbSize + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbAllocSize() uint32 { + if m != nil && m.TbAllocSize != nil { + return *m.TbAllocSize + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbAllocBlocks() uint32 { + if m != nil && m.TbAllocBlocks != nil { + return *m.TbAllocBlocks + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbAllocBytes() uint64 { + if m != nil && m.TbAllocBytes != nil { + return *m.TbAllocBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbMaxAllocBlocks() uint32 { + if m != nil && m.TbMaxAllocBlocks != nil { + return *m.TbMaxAllocBlocks + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) GetTbMaxAllocBytes() uint64 { + if m != nil && m.TbMaxAllocBytes != nil { + return *m.TbMaxAllocBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType struct { + TaskLitePage []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList `protobuf:"bytes,151,rep,name=task_lite_page,json=taskLitePage" json:"task_lite_page,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 1, 1} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) GetTaskLitePage() []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList { + if m != nil { + return m.TaskLitePage + } + return nil +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList struct { + TlpName *string `protobuf:"bytes,51,opt,name=tlp_name,json=tlpName" json:"tlp_name,omitempty"` + TlpAllocBytes *uint64 `protobuf:"varint,52,opt,name=tlp_alloc_bytes,json=tlpAllocBytes" json:"tlp_alloc_bytes,omitempty"` + TlpMaxAllocBytes *uint64 `protobuf:"varint,53,opt,name=tlp_max_alloc_bytes,json=tlpMaxAllocBytes" json:"tlp_max_alloc_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 1, 1, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) GetTlpName() string { + if m != nil && m.TlpName != nil { + return *m.TlpName + } + return "" +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) GetTlpAllocBytes() uint64 { + if m != nil && m.TlpAllocBytes != nil { + return *m.TlpAllocBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) GetTlpMaxAllocBytes() uint64 { + if m != nil && m.TlpMaxAllocBytes != nil { + return *m.TlpMaxAllocBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType struct { + TaskMallocList *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType `protobuf:"bytes,151,opt,name=task_malloc_list,json=taskMallocList" json:"task_malloc_list,omitempty"` + TaskMemoryTotalBytes *uint64 `protobuf:"varint,57,opt,name=task_memory_total_bytes,json=taskMemoryTotalBytes" json:"task_memory_total_bytes,omitempty"` + TaskMemoryTotalMaxBytes *uint64 `protobuf:"varint,58,opt,name=task_memory_total_max_bytes,json=taskMemoryTotalMaxBytes" json:"task_memory_total_max_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) ProtoMessage() {} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 2} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) GetTaskMallocList() *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType { + if m != nil { + return m.TaskMallocList + } + return nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) GetTaskMemoryTotalBytes() uint64 { + if m != nil && m.TaskMemoryTotalBytes != nil { + return *m.TaskMemoryTotalBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) GetTaskMemoryTotalMaxBytes() uint64 { + if m != nil && m.TaskMemoryTotalMaxBytes != nil { + return *m.TaskMemoryTotalMaxBytes + } + return 0 +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType struct { + TaskMalloc []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList `protobuf:"bytes,151,rep,name=task_malloc,json=taskMalloc" json:"task_malloc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 2, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) GetTaskMalloc() []*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList { + if m != nil { + return m.TaskMalloc + } + return nil +} + +type JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList struct { + TmName *string `protobuf:"bytes,51,opt,name=tm_name,json=tmName" json:"tm_name,omitempty"` + TmAllocs *uint32 `protobuf:"varint,52,opt,name=tm_allocs,json=tmAllocs" json:"tm_allocs,omitempty"` + TmAllocBytes *uint64 `protobuf:"varint,53,opt,name=tm_alloc_bytes,json=tmAllocBytes" json:"tm_alloc_bytes,omitempty"` + TmMaxAllocs *uint32 `protobuf:"varint,54,opt,name=tm_max_allocs,json=tmMaxAllocs" json:"tm_max_allocs,omitempty"` + TmMaxAllocBytes *uint64 `protobuf:"varint,55,opt,name=tm_max_alloc_bytes,json=tmMaxAllocBytes" json:"tm_max_alloc_bytes,omitempty"` + TmFunctionCalls *uint32 `protobuf:"varint,56,opt,name=tm_function_calls,json=tmFunctionCalls" json:"tm_function_calls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) Reset() { + *m = JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList{} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) ProtoMessage() { +} +func (*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) Descriptor() ([]byte, []int) { + return fileDescriptor_556964e7067b5362, []int{0, 0, 2, 0, 0} +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList.Merge(m, src) +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) XXX_Size() int { + return m.Size() +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList proto.InternalMessageInfo + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) GetTmName() string { + if m != nil && m.TmName != nil { + return *m.TmName + } + return "" +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) GetTmAllocs() uint32 { + if m != nil && m.TmAllocs != nil { + return *m.TmAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) GetTmAllocBytes() uint64 { + if m != nil && m.TmAllocBytes != nil { + return *m.TmAllocBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) GetTmMaxAllocs() uint32 { + if m != nil && m.TmMaxAllocs != nil { + return *m.TmMaxAllocs + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) GetTmMaxAllocBytes() uint64 { + if m != nil && m.TmMaxAllocBytes != nil { + return *m.TmMaxAllocBytes + } + return 0 +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) GetTmFunctionCalls() uint32 { + if m != nil && m.TmFunctionCalls != nil { + return *m.TmFunctionCalls + } + return 0 +} + +var E_JnprJunosTaskMemoryExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosTaskMemory)(nil), + Field: 47, + Name: "jnpr_junos_task_memory_ext", + Tag: "bytes,47,opt,name=jnpr_junos_task_memory_ext", + Filename: "junos-xmlproxyd_junos-rtg-task-memory.proto", +} + +func init() { + proto.RegisterType((*JunosTaskMemory)(nil), "junos_task_memory") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationType)(nil), "junos_task_memory.task_memory_information_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType)(nil), "junos_task_memory.task_memory_information_type.task_memory_overall_report_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType)(nil), "junos_task_memory.task_memory_information_type.task_memory_overall_report_type.task_size_block_list_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList)(nil), "junos_task_memory.task_memory_information_type.task_memory_overall_report_type.task_size_block_list_type.task_size_block_list") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType)(nil), "junos_task_memory.task_memory_information_type.task_memory_overall_report_type.task_memory_stats_list_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList)(nil), "junos_task_memory.task_memory_information_type.task_memory_overall_report_type.task_memory_stats_list_type.task_memory_stats_list") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType)(nil), "junos_task_memory.task_memory_information_type.task_memory_allocator_report_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType)(nil), "junos_task_memory.task_memory_information_type.task_memory_allocator_report_type.task_block_list_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList)(nil), "junos_task_memory.task_memory_information_type.task_memory_allocator_report_type.task_block_list_type.task_block_list") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType)(nil), "junos_task_memory.task_memory_information_type.task_memory_allocator_report_type.task_lite_page_list_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList)(nil), "junos_task_memory.task_memory_information_type.task_memory_allocator_report_type.task_lite_page_list_type.task_lite_page_list") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType)(nil), "junos_task_memory.task_memory_information_type.task_memory_malloc_usage_report_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType)(nil), "junos_task_memory.task_memory_information_type.task_memory_malloc_usage_report_type.task_malloc_list_type") + proto.RegisterType((*JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList)(nil), "junos_task_memory.task_memory_information_type.task_memory_malloc_usage_report_type.task_malloc_list_type.task_malloc_list") + proto.RegisterExtension(E_JnprJunosTaskMemoryExt) +} + +func init() { + proto.RegisterFile("junos-xmlproxyd_junos-rtg-task-memory.proto", fileDescriptor_556964e7067b5362) +} + +var fileDescriptor_556964e7067b5362 = []byte{ + // 1347 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4f, 0x6f, 0xdc, 0xc4, + 0x1b, 0x96, 0x9b, 0x5f, 0xff, 0x64, 0xb6, 0xdb, 0x24, 0xee, 0x9f, 0x6c, 0x9d, 0x1f, 0x21, 0x94, + 0x08, 0x45, 0x54, 0xbb, 0x2b, 0x4a, 0xd2, 0xa4, 0x69, 0x85, 0xe8, 0x36, 0x54, 0x6a, 0xd5, 0xb4, + 0xc5, 0x49, 0x2f, 0x5c, 0xcc, 0xec, 0x66, 0xb2, 0xf1, 0xc6, 0x63, 0x5b, 0x9e, 0x37, 0x61, 0xb7, + 0x48, 0x1c, 0x7a, 0x07, 0x54, 0x21, 0xa0, 0x80, 0x40, 0xe2, 0x80, 0xb8, 0x70, 0xe0, 0xc6, 0x57, + 0x40, 0x70, 0x41, 0xe2, 0x0b, 0xa0, 0x1c, 0xb9, 0x20, 0xc1, 0x17, 0x40, 0x33, 0x63, 0xaf, 0x67, + 0x6c, 0x6f, 0x42, 0xdb, 0x24, 0xc7, 0x9d, 0xf7, 0x7d, 0xde, 0x79, 0x66, 0x9e, 0xf7, 0x7d, 0x66, + 0x8d, 0x2e, 0x76, 0xb6, 0xfc, 0x80, 0x55, 0xbb, 0xd4, 0x0b, 0xa3, 0xa0, 0xdb, 0x5b, 0x73, 0xe4, + 0xef, 0x08, 0xda, 0x55, 0xc0, 0x6c, 0xb3, 0x4a, 0x09, 0x0d, 0xa2, 0x5e, 0x2d, 0x8c, 0x02, 0x08, + 0xac, 0xd3, 0x40, 0x3c, 0x42, 0x09, 0x44, 0x3d, 0x07, 0x82, 0x50, 0x2e, 0x5e, 0x78, 0x3c, 0x8d, + 0xc6, 0x04, 0xc8, 0xe1, 0x00, 0x47, 0x02, 0xcc, 0x0d, 0x34, 0xae, 0xfc, 0x74, 0x5c, 0x7f, 0x3d, + 0x88, 0x28, 0x06, 0x37, 0xf0, 0x2b, 0x9f, 0x1b, 0x53, 0xc6, 0x4c, 0xe9, 0x52, 0xbd, 0x96, 0x43, + 0xd5, 0x06, 0x40, 0x1c, 0xe8, 0x85, 0xc4, 0x3e, 0xcb, 0xa3, 0xcb, 0x22, 0x78, 0x2b, 0x8d, 0x59, + 0x8f, 0x5f, 0x46, 0xff, 0xdf, 0x0d, 0x67, 0x7e, 0x68, 0x20, 0x4b, 0x4d, 0x08, 0xb6, 0x49, 0x84, + 0x3d, 0xcf, 0x89, 0x48, 0x18, 0x44, 0x90, 0xd0, 0xb9, 0xf7, 0x94, 0x74, 0x6a, 0x83, 0x4b, 0x4a, + 0xba, 0xe3, 0x29, 0xdd, 0x7b, 0x32, 0x6c, 0x8b, 0xa8, 0xf9, 0x89, 0xa1, 0x13, 0xc6, 0x9e, 0x17, + 0xb4, 0x30, 0x04, 0x51, 0xc2, 0xe8, 0x89, 0x64, 0xf4, 0xf6, 0xf3, 0x30, 0xca, 0x16, 0x95, 0x9c, + 0xce, 0xa7, 0x9c, 0xae, 0x27, 0x09, 0x31, 0xab, 0xaf, 0x0c, 0xf4, 0xa2, 0x5a, 0x80, 0x8a, 0x0a, + 0xce, 0x16, 0xc3, 0x6d, 0x92, 0x10, 0xfb, 0x42, 0x12, 0x5b, 0x7d, 0x1e, 0x62, 0x05, 0x75, 0x25, + 0xb7, 0x89, 0x94, 0xdb, 0xb2, 0xc8, 0x79, 0xc0, 0x53, 0x62, 0x76, 0x57, 0x75, 0x09, 0xd7, 0x7a, + 0x3e, 0xa6, 0x6e, 0x4b, 0x9e, 0x92, 0x55, 0x5e, 0x9f, 0x32, 0x66, 0xfe, 0xa7, 0x5e, 0xf8, 0x92, + 0x8c, 0x8b, 0x33, 0x32, 0xb3, 0x81, 0x26, 0x75, 0x06, 0xdd, 0x6c, 0x81, 0x59, 0x51, 0xc0, 0x52, + 0x19, 0x74, 0xf5, 0x1a, 0xaf, 0xa1, 0xb3, 0x6a, 0x8d, 0x26, 0x63, 0x4e, 0xb3, 0x07, 0x84, 0x55, + 0xe6, 0x04, 0xd4, 0x4c, 0xa1, 0x0d, 0xc6, 0x1a, 0x3c, 0x62, 0x2e, 0xa0, 0xf3, 0xd9, 0x6d, 0x53, + 0xd8, 0x65, 0x01, 0x3b, 0xab, 0xed, 0xd8, 0x47, 0x5e, 0x43, 0x13, 0x2a, 0x32, 0xe4, 0x57, 0xb5, + 0x86, 0x01, 0xc7, 0xd8, 0xf9, 0xec, 0x71, 0xef, 0xe3, 0x36, 0x59, 0xc2, 0x80, 0x25, 0xfa, 0x46, + 0x56, 0xc8, 0x6e, 0xae, 0xc2, 0x42, 0xc1, 0x79, 0xf5, 0x22, 0x99, 0xf3, 0xae, 0xb9, 0x51, 0x0c, + 0xbd, 0x92, 0x3d, 0xef, 0x92, 0x1b, 0x0d, 0x3c, 0x6f, 0x0a, 0x5b, 0x2c, 0x38, 0x6f, 0x1f, 0x79, + 0x5d, 0x17, 0x08, 0x02, 0xc0, 0x9e, 0xc4, 0x39, 0xae, 0xef, 0x6c, 0x31, 0x52, 0xb9, 0x2a, 0xe0, + 0x4a, 0xfb, 0xae, 0xf2, 0x1c, 0x81, 0xbe, 0xe5, 0x3f, 0x60, 0xc4, 0x5c, 0xd2, 0x0f, 0xad, 0x96, + 0x08, 0x49, 0xd4, 0x22, 0x3e, 0x54, 0xae, 0x4d, 0x19, 0x33, 0x65, 0xb5, 0xcd, 0xd2, 0x1a, 0xf7, + 0x65, 0x8a, 0xf5, 0x0f, 0xd2, 0xcb, 0x14, 0xcc, 0x35, 0x1f, 0x94, 0x33, 0x22, 0x87, 0xb9, 0x0f, + 0x89, 0xd3, 0xf4, 0x82, 0xd6, 0xa6, 0xe3, 0xb9, 0xac, 0x6f, 0x24, 0xee, 0x3e, 0x1b, 0x49, 0xad, + 0x68, 0x33, 0x39, 0x32, 0x63, 0x3c, 0xb4, 0xe2, 0x3e, 0x24, 0x0d, 0x1e, 0xb8, 0xe3, 0x32, 0x30, + 0xbf, 0x35, 0xd0, 0x39, 0xb5, 0x20, 0x03, 0x0c, 0x4c, 0xf2, 0x8b, 0x6d, 0x65, 0xf3, 0x40, 0xf8, + 0xe5, 0xb6, 0x93, 0x0c, 0x4f, 0xa7, 0xb7, 0xbd, 0xc2, 0x43, 0x82, 0xe3, 0x9c, 0xfe, 0x36, 0x28, + 0x5a, 0xc5, 0x93, 0x7c, 0xa6, 0x48, 0xa3, 0xec, 0x54, 0x48, 0x98, 0x98, 0x2a, 0x01, 0x9d, 0xcd, + 0x4e, 0x85, 0x80, 0xf2, 0xb1, 0x12, 0xe8, 0x37, 0x74, 0xd3, 0x95, 0xe8, 0xf5, 0x88, 0x10, 0x6d, + 0x8e, 0x2b, 0x19, 0xf8, 0xcd, 0x88, 0x10, 0x81, 0xb7, 0x7e, 0x1a, 0x8a, 0xdb, 0xbb, 0x48, 0x09, + 0xf3, 0x7b, 0x03, 0x8d, 0x64, 0xa2, 0xbc, 0x1f, 0x86, 0x66, 0x4a, 0x97, 0x3e, 0x38, 0xb4, 0x7e, + 0x28, 0x8c, 0xd8, 0x65, 0xad, 0x49, 0xac, 0xbf, 0x06, 0xb4, 0xaf, 0x39, 0x85, 0x4e, 0x00, 0x6b, + 0x8a, 0x65, 0x21, 0x43, 0xb9, 0x71, 0xf4, 0xd1, 0x9b, 0x47, 0x4e, 0x18, 0xf6, 0x71, 0x60, 0x4d, + 0x8e, 0x37, 0x5f, 0x41, 0x23, 0x3c, 0x43, 0x1a, 0x78, 0x7a, 0xe9, 0x65, 0xbb, 0x0c, 0xac, 0x29, + 0x7c, 0x52, 0x5e, 0xf5, 0x0b, 0x08, 0xf5, 0xf3, 0xe4, 0xc5, 0x96, 0xed, 0xe1, 0x24, 0x85, 0x99, + 0xd3, 0xe8, 0x14, 0x0f, 0x73, 0xe5, 0xe2, 0x94, 0xcb, 0x22, 0xe5, 0x24, 0xb0, 0xe6, 0x32, 0xee, + 0xc6, 0x59, 0x17, 0x50, 0x39, 0xc9, 0x52, 0x5d, 0xaf, 0x24, 0x93, 0xe4, 0x46, 0x71, 0x25, 0x45, + 0x45, 0x69, 0x6c, 0xbc, 0x52, 0xaa, 0xdc, 0x37, 0x43, 0x7a, 0xe3, 0x64, 0x7a, 0xd4, 0xfc, 0xd1, + 0x40, 0x63, 0xb9, 0x78, 0xa2, 0xde, 0x23, 0xe3, 0x10, 0xc7, 0x65, 0x40, 0xcc, 0x1e, 0xc9, 0x4c, + 0x91, 0xf5, 0xeb, 0xc0, 0x29, 0x17, 0x32, 0x52, 0xe6, 0xf8, 0x98, 0x4a, 0x19, 0x87, 0x53, 0x19, + 0x29, 0xbb, 0x8b, 0x29, 0x11, 0xf2, 0x50, 0xa6, 0x3e, 0x7d, 0x5c, 0x1e, 0xca, 0xe2, 0x8b, 0xe7, + 0x2a, 0x27, 0x61, 0x6d, 0x36, 0xca, 0x49, 0x4e, 0x7a, 0xf9, 0x94, 0x15, 0xc9, 0x48, 0x99, 0x2e, + 0x63, 0x9c, 0xa5, 0xcb, 0x28, 0x92, 0xa4, 0x40, 0x7f, 0x0e, 0xa3, 0x97, 0xf6, 0xfc, 0xef, 0x62, + 0x7e, 0x9c, 0x8c, 0x58, 0xde, 0x72, 0xd7, 0xf7, 0xfd, 0x9f, 0x52, 0x2d, 0xb3, 0x93, 0x74, 0x33, + 0x31, 0x4a, 0xa9, 0xd7, 0x7e, 0x69, 0x20, 0xe1, 0x6f, 0x8e, 0xe7, 0x02, 0x91, 0x6f, 0xac, 0x6a, + 0xb4, 0x9d, 0x03, 0x62, 0xa5, 0xef, 0x26, 0x99, 0x8d, 0xf2, 0xc8, 0x1d, 0x17, 0x08, 0x7f, 0xc5, + 0xf7, 0x32, 0xd9, 0xd9, 0x67, 0x37, 0xd9, 0xb9, 0x5d, 0x4d, 0xd6, 0xfa, 0x65, 0x28, 0x36, 0x97, + 0xac, 0x3f, 0x7e, 0x66, 0x20, 0x94, 0x06, 0x92, 0xe1, 0xda, 0x3e, 0x1c, 0xdd, 0xb2, 0x8b, 0xf6, + 0x70, 0x5f, 0x47, 0xeb, 0xc9, 0x91, 0x5c, 0x57, 0x99, 0x93, 0xe8, 0x38, 0x34, 0x0b, 0x26, 0xe8, + 0x18, 0x34, 0xc5, 0x00, 0x8d, 0x8b, 0xb8, 0x30, 0x4a, 0x39, 0x3d, 0xc7, 0x40, 0x1a, 0x24, 0x6f, + 0xf6, 0xc4, 0x1f, 0x45, 0x58, 0x7a, 0x5f, 0x09, 0xa4, 0xf5, 0xf5, 0x4d, 0xb4, 0xef, 0xa1, 0x7c, + 0xcf, 0x64, 0x6e, 0xca, 0x71, 0x96, 0xe0, 0x25, 0xc7, 0x4b, 0xf7, 0xda, 0xf9, 0xd8, 0xdb, 0x54, + 0xab, 0xad, 0xa2, 0xd3, 0xa0, 0x58, 0x69, 0x52, 0x71, 0x41, 0x54, 0x1c, 0x85, 0xbe, 0x9f, 0xc6, + 0x45, 0x2f, 0x22, 0x53, 0x4f, 0x57, 0xfe, 0xd2, 0x8d, 0x28, 0xd9, 0x42, 0xcc, 0xdf, 0x8f, 0xa0, + 0xca, 0xa0, 0x86, 0x33, 0xbf, 0x33, 0xd0, 0x29, 0x3d, 0xb8, 0x2f, 0xef, 0xdd, 0xd3, 0xb5, 0x7d, + 0x51, 0xc0, 0x3e, 0xa9, 0x8e, 0x82, 0xf5, 0x51, 0xf1, 0x8c, 0x0a, 0x9b, 0xf4, 0xc2, 0x42, 0x9b, + 0xf4, 0x42, 0xa1, 0x32, 0x17, 0xca, 0x0b, 0x73, 0xaf, 0x1d, 0xf7, 0x41, 0x2f, 0xcc, 0x48, 0xe0, + 0x85, 0xb9, 0x4b, 0x95, 0x93, 0x32, 0x0a, 0x5e, 0xa8, 0xdf, 0xea, 0xce, 0x51, 0x34, 0xfd, 0x5f, + 0xbe, 0x87, 0xcc, 0x4f, 0x0d, 0x34, 0x2a, 0x13, 0x65, 0x86, 0x6a, 0x78, 0x9d, 0x83, 0xf8, 0x02, + 0xab, 0x65, 0x77, 0x93, 0xd6, 0x22, 0x64, 0x96, 0x5f, 0x64, 0x7b, 0x19, 0xcb, 0x95, 0x67, 0x37, + 0x96, 0xc5, 0xdd, 0x8d, 0xe5, 0x87, 0xa1, 0xe4, 0x7b, 0x24, 0x43, 0xcf, 0xfc, 0xda, 0x40, 0x25, + 0x25, 0x92, 0x74, 0xe1, 0xfb, 0x87, 0x77, 0x43, 0xb9, 0x55, 0x1b, 0xa5, 0x57, 0x66, 0xfd, 0x5d, + 0x20, 0xa3, 0x70, 0x18, 0x5a, 0xe8, 0x30, 0x54, 0xf4, 0xde, 0x04, 0x1a, 0x06, 0xaa, 0xbf, 0xd0, + 0x27, 0x80, 0x2a, 0xff, 0x9f, 0x68, 0x41, 0xaf, 0x9d, 0x8c, 0x33, 0xe4, 0x7d, 0x8b, 0x87, 0x37, + 0xff, 0x3a, 0x97, 0x80, 0xa6, 0x8f, 0x33, 0xb7, 0x03, 0x9a, 0xeb, 0xdc, 0xf9, 0xd8, 0x0e, 0xa8, + 0xd6, 0xb8, 0xe6, 0xab, 0x68, 0x0c, 0xa8, 0xb3, 0xbe, 0xe5, 0xb7, 0xc4, 0xa5, 0xb5, 0xb0, 0xe7, + 0x25, 0x46, 0x33, 0x02, 0xf4, 0x66, 0xbc, 0x7e, 0x83, 0x2f, 0x2f, 0xb6, 0x91, 0xd5, 0xf1, 0xc3, + 0xc8, 0xc9, 0x69, 0xe0, 0x90, 0x2e, 0x98, 0xe3, 0xb5, 0xdb, 0x5b, 0xbe, 0x1b, 0x92, 0xe8, 0x2e, + 0x81, 0xf7, 0x82, 0x68, 0x93, 0xad, 0x10, 0x9f, 0x05, 0x11, 0xab, 0xd4, 0x45, 0x73, 0x9b, 0x79, + 0xe9, 0xec, 0x73, 0xbc, 0xdc, 0x6d, 0xbe, 0xbc, 0xda, 0xef, 0x90, 0xb7, 0xba, 0xd0, 0x78, 0xf7, + 0xe7, 0x9d, 0x49, 0xe3, 0xb7, 0x9d, 0x49, 0xe3, 0x8f, 0x9d, 0x49, 0xe3, 0x1d, 0xbb, 0xed, 0x02, + 0x07, 0xf3, 0xda, 0x35, 0x9f, 0x40, 0xdd, 0x6d, 0x91, 0x26, 0x89, 0xda, 0xf5, 0x0d, 0x82, 0x3d, + 0xd8, 0x68, 0x06, 0x50, 0x75, 0xfd, 0x36, 0x61, 0x50, 0xed, 0x80, 0x5b, 0xf5, 0x31, 0xb8, 0xdb, + 0xa4, 0x1e, 0x6e, 0xb6, 0xeb, 0x1d, 0x70, 0xeb, 0x78, 0x0d, 0x87, 0x40, 0x22, 0x56, 0x97, 0xac, + 0xeb, 0xac, 0xb5, 0x41, 0x28, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0x6c, 0x6b, 0x64, 0x8b, 0x21, + 0x13, 0x00, 0x00, +} + +func (m *JunosTaskMemory) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemory) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemory) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TaskMemoryInformation != nil { + { + size, err := m.TaskMemoryInformation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TaskMemoryMallocUsageReport != nil { + { + size, err := m.TaskMemoryMallocUsageReport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.TaskMemoryAllocatorReport != nil { + { + size, err := m.TaskMemoryAllocatorReport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.TaskMemoryOverallReport != nil { + { + size, err := m.TaskMemoryOverallReport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.TaskMemoryTotalBytesPercent != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalBytesPercent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.TaskMemoryTotalBytesInUse != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalBytesInUse)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.TaskMemoryMaxDirBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryMaxDirBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.TaskMemoryDirBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryDirBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.TaskMemoryMaxPageDataBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryMaxPageDataBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TaskMemoryPageDataBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryPageDataBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TaskMemoryMaxBssBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryMaxBssBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TaskMemoryBssBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryBssBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TaskMemoryMaxDynamicAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryMaxDynamicAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TaskMemoryDynamicAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryDynamicAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TaskMemoryStatsList != nil { + { + size, err := m.TaskMemoryStatsList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.TaskSizeBlockList != nil { + { + size, err := m.TaskSizeBlockList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.TaskMemoryTotalFreeBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalFreeBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TaskMemoryTotalMaxBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalMaxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TaskMemoryTotalBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskSizeBlock) > 0 { + for iNdEx := len(m.TaskSizeBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskSizeBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TsbFreeBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TsbFreeBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TsbMaxBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TsbMaxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TsbMaxAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TsbMaxAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TsbAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TsbAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TsbAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TsbAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TsbSize != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TsbSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskMemoryStats) > 0 { + for iNdEx := len(m.TaskMemoryStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskMemoryStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TmsMaxBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmsMaxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TmsMaxAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmsMaxAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TmsAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmsAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TmsAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmsAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TmsName != nil { + i -= len(*m.TmsName) + copy(dAtA[i:], *m.TmsName) + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(len(*m.TmsName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TaskLitePageList != nil { + { + size, err := m.TaskLitePageList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.TaskBlockList != nil { + { + size, err := m.TaskBlockList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.TaskMemoryTotalMaxBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalMaxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TaskMemoryTotalBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskBlock) > 0 { + for iNdEx := len(m.TaskBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TbMaxAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TbMaxAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.TbMaxAllocBlocks != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TbMaxAllocBlocks)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TbAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TbAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TbAllocBlocks != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TbAllocBlocks)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TbAllocSize != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TbAllocSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TbSize != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TbSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TbName != nil { + i -= len(*m.TbName) + copy(dAtA[i:], *m.TbName) + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(len(*m.TbName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskLitePage) > 0 { + for iNdEx := len(m.TaskLitePage) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskLitePage[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TlpMaxAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TlpMaxAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TlpAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TlpAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TlpName != nil { + i -= len(*m.TlpName) + copy(dAtA[i:], *m.TlpName) + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(len(*m.TlpName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TaskMallocList != nil { + { + size, err := m.TaskMallocList.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.TaskMemoryTotalMaxBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalMaxBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.TaskMemoryTotalBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TaskMemoryTotalBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskMalloc) > 0 { + for iNdEx := len(m.TaskMalloc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskMalloc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TmFunctionCalls != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmFunctionCalls)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TmMaxAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmMaxAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TmMaxAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmMaxAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.TmAllocBytes != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmAllocBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TmAllocs != nil { + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(*m.TmAllocs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TmName != nil { + i -= len(*m.TmName) + copy(dAtA[i:], *m.TmName) + i = encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA, i, uint64(len(*m.TmName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintJunosXmlproxydJunosRtgTaskMemory(dAtA []byte, offset int, v uint64) int { + offset -= sovJunosXmlproxydJunosRtgTaskMemory(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosTaskMemory) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskMemoryInformation != nil { + l = m.TaskMemoryInformation.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskMemoryDynamicAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryDynamicAllocs)) + } + if m.TaskMemoryMaxDynamicAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryMaxDynamicAllocs)) + } + if m.TaskMemoryBssBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryBssBytes)) + } + if m.TaskMemoryMaxBssBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryMaxBssBytes)) + } + if m.TaskMemoryPageDataBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryPageDataBytes)) + } + if m.TaskMemoryMaxPageDataBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryMaxPageDataBytes)) + } + if m.TaskMemoryDirBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryDirBytes)) + } + if m.TaskMemoryMaxDirBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryMaxDirBytes)) + } + if m.TaskMemoryTotalBytesInUse != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalBytesInUse)) + } + if m.TaskMemoryTotalBytesPercent != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalBytesPercent)) + } + if m.TaskMemoryOverallReport != nil { + l = m.TaskMemoryOverallReport.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TaskMemoryAllocatorReport != nil { + l = m.TaskMemoryAllocatorReport.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TaskMemoryMallocUsageReport != nil { + l = m.TaskMemoryMallocUsageReport.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskMemoryTotalBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalBytes)) + } + if m.TaskMemoryTotalMaxBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalMaxBytes)) + } + if m.TaskMemoryTotalFreeBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalFreeBytes)) + } + if m.TaskSizeBlockList != nil { + l = m.TaskSizeBlockList.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TaskMemoryStatsList != nil { + l = m.TaskMemoryStatsList.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TaskSizeBlock) > 0 { + for _, e := range m.TaskSizeBlock { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TsbSize != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TsbSize)) + } + if m.TsbAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TsbAllocBytes)) + } + if m.TsbAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TsbAllocs)) + } + if m.TsbMaxAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TsbMaxAllocs)) + } + if m.TsbMaxBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TsbMaxBytes)) + } + if m.TsbFreeBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TsbFreeBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TaskMemoryStats) > 0 { + for _, e := range m.TaskMemoryStats { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TmsName != nil { + l = len(*m.TmsName) + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TmsAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmsAllocs)) + } + if m.TmsAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmsAllocBytes)) + } + if m.TmsMaxAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmsMaxAllocs)) + } + if m.TmsMaxBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmsMaxBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskMemoryTotalBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalBytes)) + } + if m.TaskMemoryTotalMaxBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalMaxBytes)) + } + if m.TaskBlockList != nil { + l = m.TaskBlockList.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TaskLitePageList != nil { + l = m.TaskLitePageList.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TaskBlock) > 0 { + for _, e := range m.TaskBlock { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TbName != nil { + l = len(*m.TbName) + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TbSize != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TbSize)) + } + if m.TbAllocSize != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TbAllocSize)) + } + if m.TbAllocBlocks != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TbAllocBlocks)) + } + if m.TbAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TbAllocBytes)) + } + if m.TbMaxAllocBlocks != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TbMaxAllocBlocks)) + } + if m.TbMaxAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TbMaxAllocBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TaskLitePage) > 0 { + for _, e := range m.TaskLitePage { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TlpName != nil { + l = len(*m.TlpName) + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TlpAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TlpAllocBytes)) + } + if m.TlpMaxAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TlpMaxAllocBytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskMemoryTotalBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalBytes)) + } + if m.TaskMemoryTotalMaxBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TaskMemoryTotalMaxBytes)) + } + if m.TaskMallocList != nil { + l = m.TaskMallocList.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TaskMalloc) > 0 { + for _, e := range m.TaskMalloc { + l = e.Size() + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TmName != nil { + l = len(*m.TmName) + n += 2 + l + sovJunosXmlproxydJunosRtgTaskMemory(uint64(l)) + } + if m.TmAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmAllocs)) + } + if m.TmAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmAllocBytes)) + } + if m.TmMaxAllocs != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmMaxAllocs)) + } + if m.TmMaxAllocBytes != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmMaxAllocBytes)) + } + if m.TmFunctionCalls != nil { + n += 2 + sovJunosXmlproxydJunosRtgTaskMemory(uint64(*m.TmFunctionCalls)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovJunosXmlproxydJunosRtgTaskMemory(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozJunosXmlproxydJunosRtgTaskMemory(x uint64) (n int) { + return sovJunosXmlproxydJunosRtgTaskMemory(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosTaskMemory) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_task_memory: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_task_memory: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryInformation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskMemoryInformation == nil { + m.TaskMemoryInformation = &JunosTaskMemoryTaskMemoryInformationType{} + } + if err := m.TaskMemoryInformation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_memory_information_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_memory_information_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryDynamicAllocs", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryDynamicAllocs = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryMaxDynamicAllocs", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryMaxDynamicAllocs = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryBssBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryBssBytes = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryMaxBssBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryMaxBssBytes = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryPageDataBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryPageDataBytes = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryMaxPageDataBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryMaxPageDataBytes = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryDirBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryDirBytes = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryMaxDirBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryMaxDirBytes = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalBytesInUse", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalBytesInUse = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalBytesPercent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalBytesPercent = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryOverallReport", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskMemoryOverallReport == nil { + m.TaskMemoryOverallReport = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType{} + } + if err := m.TaskMemoryOverallReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryAllocatorReport", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskMemoryAllocatorReport == nil { + m.TaskMemoryAllocatorReport = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType{} + } + if err := m.TaskMemoryAllocatorReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryMallocUsageReport", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskMemoryMallocUsageReport == nil { + m.TaskMemoryMallocUsageReport = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType{} + } + if err := m.TaskMemoryMallocUsageReport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_memory_overall_report_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_memory_overall_report_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalBytes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalMaxBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalMaxBytes = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalFreeBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalFreeBytes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskSizeBlockList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskSizeBlockList == nil { + m.TaskSizeBlockList = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType{} + } + if err := m.TaskSizeBlockList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryStatsList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskMemoryStatsList == nil { + m.TaskMemoryStatsList = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType{} + } + if err := m.TaskMemoryStatsList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_size_block_list_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_size_block_list_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskSizeBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskSizeBlock = append(m.TaskSizeBlock, &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList{}) + if err := m.TaskSizeBlock[len(m.TaskSizeBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskSizeBlockListTypeTaskSizeBlockList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_size_block_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_size_block_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TsbSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TsbSize = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TsbAllocBytes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TsbAllocBytes = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TsbAllocs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TsbAllocs = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TsbMaxAllocs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TsbMaxAllocs = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TsbMaxBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TsbMaxBytes = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TsbFreeBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TsbFreeBytes = &v + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_memory_stats_list_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_memory_stats_list_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskMemoryStats = append(m.TaskMemoryStats, &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList{}) + if err := m.TaskMemoryStats[len(m.TaskMemoryStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryOverallReportTypeTaskMemoryStatsListTypeTaskMemoryStatsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_memory_stats_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_memory_stats_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TmsName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TmsName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmsAllocs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmsAllocs = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmsAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmsAllocBytes = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmsMaxAllocs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmsMaxAllocs = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmsMaxBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmsMaxBytes = &v + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_memory_allocator_report_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_memory_allocator_report_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalBytes = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalMaxBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalMaxBytes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskBlockList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskBlockList == nil { + m.TaskBlockList = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType{} + } + if err := m.TaskBlockList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskLitePageList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskLitePageList == nil { + m.TaskLitePageList = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType{} + } + if err := m.TaskLitePageList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_block_list_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_block_list_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskBlock = append(m.TaskBlock, &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList{}) + if err := m.TaskBlock[len(m.TaskBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskBlockListTypeTaskBlockList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_block_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_block_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TbName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TbName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TbSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TbSize = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TbAllocSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TbAllocSize = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TbAllocBlocks", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TbAllocBlocks = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TbAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TbAllocBytes = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TbMaxAllocBlocks", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TbMaxAllocBlocks = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TbMaxAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TbMaxAllocBytes = &v + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_lite_page_list_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_lite_page_list_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskLitePage", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskLitePage = append(m.TaskLitePage, &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList{}) + if err := m.TaskLitePage[len(m.TaskLitePage)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryAllocatorReportTypeTaskLitePageListTypeTaskLitePageList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_lite_page_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_lite_page_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TlpName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TlpName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlpAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlpAllocBytes = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlpMaxAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlpMaxAllocBytes = &v + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_memory_malloc_usage_report_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_memory_malloc_usage_report_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalBytes = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMemoryTotalMaxBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TaskMemoryTotalMaxBytes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMallocList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskMallocList == nil { + m.TaskMallocList = &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType{} + } + if err := m.TaskMallocList.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_malloc_list_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_malloc_list_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskMalloc", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskMalloc = append(m.TaskMalloc, &JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList{}) + if err := m.TaskMalloc[len(m.TaskMalloc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTaskMemoryTaskMemoryInformationTypeTaskMemoryMallocUsageReportTypeTaskMallocListTypeTaskMallocList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: task_malloc_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: task_malloc_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TmName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TmName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmAllocs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmAllocs = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmAllocBytes = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmMaxAllocs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmMaxAllocs = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmMaxAllocBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmMaxAllocBytes = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TmFunctionCalls", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TmFunctionCalls = &v + default: + iNdEx = preIndex + skippy, err := skipJunosXmlproxydJunosRtgTaskMemory(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipJunosXmlproxydJunosRtgTaskMemory(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupJunosXmlproxydJunosRtgTaskMemory + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthJunosXmlproxydJunosRtgTaskMemory = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowJunosXmlproxydJunosRtgTaskMemory = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupJunosXmlproxydJunosRtgTaskMemory = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/junos-xmlproxyd_junos-rtg-task-memory.proto b/schema/junos-xmlproxyd_junos-rtg-task-memory.proto new file mode 100755 index 0000000..2fa1c6e --- /dev/null +++ b/schema/junos-xmlproxyd_junos-rtg-task-memory.proto @@ -0,0 +1,96 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_task_memory jnpr_junos_task_memory_ext = 47; +} + +message junos_task_memory { + optional task_memory_information_type task_memory_information = 151; + message task_memory_information_type { + optional task_memory_overall_report_type task_memory_overall_report = 151; + message task_memory_overall_report_type { + optional task_size_block_list_type task_size_block_list = 151; + message task_size_block_list_type { + message task_size_block_list { + optional uint32 tsb_size = 51 [(telemetry_options).is_key = true]; + optional uint32 tsb_alloc_bytes = 52; + optional uint32 tsb_allocs = 53; + optional uint32 tsb_max_allocs = 54; + optional uint64 tsb_max_bytes = 55; + optional uint64 tsb_free_bytes = 56; + } + repeated task_size_block_list task_size_block = 151; + } + optional task_memory_stats_list_type task_memory_stats_list = 152; + message task_memory_stats_list_type { + message task_memory_stats_list { + optional string tms_name = 51 [(telemetry_options).is_key = true]; + optional uint32 tms_allocs = 52; + optional uint64 tms_alloc_bytes = 53; + optional uint32 tms_max_allocs = 54; + optional uint64 tms_max_bytes = 55; + } + repeated task_memory_stats_list task_memory_stats = 151; + } + optional uint64 task_memory_total_bytes = 51; + optional uint64 task_memory_total_max_bytes = 52; + optional uint64 task_memory_total_free_bytes = 53; + } + optional task_memory_allocator_report_type task_memory_allocator_report = 152; + message task_memory_allocator_report_type { + optional task_block_list_type task_block_list = 151; + message task_block_list_type { + message task_block_list { + optional string tb_name = 51 [(telemetry_options).is_key = true]; + optional uint32 tb_size = 52; + optional uint32 tb_alloc_size = 53; + optional uint32 tb_alloc_blocks = 54; + optional uint64 tb_alloc_bytes = 55; + optional uint32 tb_max_alloc_blocks = 56; + optional uint64 tb_max_alloc_bytes = 57; + } + repeated task_block_list task_block = 151; + } + optional task_lite_page_list_type task_lite_page_list = 152; + message task_lite_page_list_type { + message task_lite_page_list { + optional string tlp_name = 51 [(telemetry_options).is_key = true]; + optional uint64 tlp_alloc_bytes = 52; + optional uint64 tlp_max_alloc_bytes = 53; + } + repeated task_lite_page_list task_lite_page = 151; + } + optional uint64 task_memory_total_bytes = 52; + optional uint64 task_memory_total_max_bytes = 53; + } + optional task_memory_malloc_usage_report_type task_memory_malloc_usage_report = 153; + message task_memory_malloc_usage_report_type { + optional task_malloc_list_type task_malloc_list = 151; + message task_malloc_list_type { + message task_malloc_list { + optional string tm_name = 51 [(telemetry_options).is_key = true]; + optional uint32 tm_allocs = 52; + optional uint64 tm_alloc_bytes = 53; + optional uint32 tm_max_allocs = 54; + optional uint64 tm_max_alloc_bytes = 55; + optional uint32 tm_function_calls = 56; + } + repeated task_malloc_list task_malloc = 151; + } + optional uint64 task_memory_total_bytes = 57; + optional uint64 task_memory_total_max_bytes = 58; + } + optional uint64 task_memory_dynamic_allocs = 51; + optional uint64 task_memory_max_dynamic_allocs = 52; + optional uint64 task_memory_bss_bytes = 53; + optional uint64 task_memory_max_bss_bytes = 54; + optional uint64 task_memory_page_data_bytes = 55; + optional uint64 task_memory_max_page_data_bytes = 56; + optional uint64 task_memory_dir_bytes = 57; + optional uint64 task_memory_max_dir_bytes = 58; + optional uint64 task_memory_total_bytes_in_use = 59; + optional uint32 task_memory_total_bytes_percent = 60; + } +} diff --git a/schema/kernel-ifstate-render.pb.go b/schema/kernel-ifstate-render.pb.go new file mode 100644 index 0000000..59bf03f --- /dev/null +++ b/schema/kernel-ifstate-render.pb.go @@ -0,0 +1,2319 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: kernel-ifstate-render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosKernelIfstate struct { + KernelIfstate *JunosKernelIfstateKernelIfstateType `protobuf:"bytes,181,opt,name=kernel_ifstate,json=kernelIfstate" json:"kernel_ifstate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelIfstate) Reset() { *m = JunosKernelIfstate{} } +func (m *JunosKernelIfstate) String() string { return proto.CompactTextString(m) } +func (*JunosKernelIfstate) ProtoMessage() {} +func (*JunosKernelIfstate) Descriptor() ([]byte, []int) { + return fileDescriptor_7e8a66594c8c18c4, []int{0} +} +func (m *JunosKernelIfstate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelIfstate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelIfstate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelIfstate) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelIfstate.Merge(m, src) +} +func (m *JunosKernelIfstate) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelIfstate) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelIfstate.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelIfstate proto.InternalMessageInfo + +func (m *JunosKernelIfstate) GetKernelIfstate() *JunosKernelIfstateKernelIfstateType { + if m != nil { + return m.KernelIfstate + } + return nil +} + +type JunosKernelIfstateKernelIfstateType struct { + Stats []*JunosKernelIfstateKernelIfstateTypeStatsList `protobuf:"bytes,141,rep,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelIfstateKernelIfstateType) Reset() { *m = JunosKernelIfstateKernelIfstateType{} } +func (m *JunosKernelIfstateKernelIfstateType) String() string { return proto.CompactTextString(m) } +func (*JunosKernelIfstateKernelIfstateType) ProtoMessage() {} +func (*JunosKernelIfstateKernelIfstateType) Descriptor() ([]byte, []int) { + return fileDescriptor_7e8a66594c8c18c4, []int{0, 0} +} +func (m *JunosKernelIfstateKernelIfstateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelIfstateKernelIfstateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelIfstateKernelIfstateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelIfstateKernelIfstateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelIfstateKernelIfstateType.Merge(m, src) +} +func (m *JunosKernelIfstateKernelIfstateType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelIfstateKernelIfstateType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelIfstateKernelIfstateType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelIfstateKernelIfstateType proto.InternalMessageInfo + +func (m *JunosKernelIfstateKernelIfstateType) GetStats() []*JunosKernelIfstateKernelIfstateTypeStatsList { + if m != nil { + return m.Stats + } + return nil +} + +type JunosKernelIfstateKernelIfstateTypeStatsList struct { + RecordTime *uint32 `protobuf:"varint,121,opt,name=record_time,json=recordTime" json:"record_time,omitempty"` + RecordSeqNum *uint32 `protobuf:"varint,122,opt,name=record_seq_num,json=recordSeqNum" json:"record_seq_num,omitempty"` + ChurnRate *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType `protobuf:"bytes,151,opt,name=churn_rate,json=churnRate" json:"churn_rate,omitempty"` + PeerConsumptionRate []*JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList `protobuf:"bytes,152,rep,name=peer_consumption_rate,json=peerConsumptionRate" json:"peer_consumption_rate,omitempty"` + VetosStatistics *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType `protobuf:"bytes,153,opt,name=vetos_statistics,json=vetosStatistics" json:"vetos_statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) Reset() { + *m = JunosKernelIfstateKernelIfstateTypeStatsList{} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelIfstateKernelIfstateTypeStatsList) ProtoMessage() {} +func (*JunosKernelIfstateKernelIfstateTypeStatsList) Descriptor() ([]byte, []int) { + return fileDescriptor_7e8a66594c8c18c4, []int{0, 0, 0} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsList.Merge(m, src) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsList proto.InternalMessageInfo + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) GetRecordTime() uint32 { + if m != nil && m.RecordTime != nil { + return *m.RecordTime + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) GetRecordSeqNum() uint32 { + if m != nil && m.RecordSeqNum != nil { + return *m.RecordSeqNum + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) GetChurnRate() *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType { + if m != nil { + return m.ChurnRate + } + return nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) GetPeerConsumptionRate() []*JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList { + if m != nil { + return m.PeerConsumptionRate + } + return nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) GetVetosStatistics() *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType { + if m != nil { + return m.VetosStatistics + } + return nil +} + +type JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType struct { + OverallChurnRate *uint32 `protobuf:"varint,51,opt,name=overall_churn_rate,json=overallChurnRate" json:"overall_churn_rate,omitempty"` + RouteAddRate *uint32 `protobuf:"varint,52,opt,name=route_add_rate,json=routeAddRate" json:"route_add_rate,omitempty"` + RouteChangeRate *uint32 `protobuf:"varint,53,opt,name=route_change_rate,json=routeChangeRate" json:"route_change_rate,omitempty"` + RouteDeleteRate *uint32 `protobuf:"varint,54,opt,name=route_delete_rate,json=routeDeleteRate" json:"route_delete_rate,omitempty"` + NexthopAddRate *uint32 `protobuf:"varint,55,opt,name=nexthop_add_rate,json=nexthopAddRate" json:"nexthop_add_rate,omitempty"` + NexthopDeleteRate *uint32 `protobuf:"varint,56,opt,name=nexthop_delete_rate,json=nexthopDeleteRate" json:"nexthop_delete_rate,omitempty"` + NexthopChangeRate *uint32 `protobuf:"varint,57,opt,name=nexthop_change_rate,json=nexthopChangeRate" json:"nexthop_change_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) Reset() { + *m = JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType{} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) ProtoMessage() {} +func (*JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) Descriptor() ([]byte, []int) { + return fileDescriptor_7e8a66594c8c18c4, []int{0, 0, 0, 0} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType.Merge(m, src) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType proto.InternalMessageInfo + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetOverallChurnRate() uint32 { + if m != nil && m.OverallChurnRate != nil { + return *m.OverallChurnRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetRouteAddRate() uint32 { + if m != nil && m.RouteAddRate != nil { + return *m.RouteAddRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetRouteChangeRate() uint32 { + if m != nil && m.RouteChangeRate != nil { + return *m.RouteChangeRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetRouteDeleteRate() uint32 { + if m != nil && m.RouteDeleteRate != nil { + return *m.RouteDeleteRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetNexthopAddRate() uint32 { + if m != nil && m.NexthopAddRate != nil { + return *m.NexthopAddRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetNexthopDeleteRate() uint32 { + if m != nil && m.NexthopDeleteRate != nil { + return *m.NexthopDeleteRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) GetNexthopChangeRate() uint32 { + if m != nil && m.NexthopChangeRate != nil { + return *m.NexthopChangeRate + } + return 0 +} + +type JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList struct { + PeerIndex *uint32 `protobuf:"varint,51,opt,name=peer_index,json=peerIndex" json:"peer_index,omitempty"` + ConsumptionRateCounter *uint32 `protobuf:"varint,52,opt,name=consumption_rate_counter,json=consumptionRateCounter" json:"consumption_rate_counter,omitempty"` + ConsumptionRouteAddRate *uint32 `protobuf:"varint,53,opt,name=consumption_route_add_rate,json=consumptionRouteAddRate" json:"consumption_route_add_rate,omitempty"` + ConsumptionRouteChangeRate *uint32 `protobuf:"varint,54,opt,name=consumption_route_change_rate,json=consumptionRouteChangeRate" json:"consumption_route_change_rate,omitempty"` + ConsumptionRouteDeleteRate *uint32 `protobuf:"varint,55,opt,name=consumption_route_delete_rate,json=consumptionRouteDeleteRate" json:"consumption_route_delete_rate,omitempty"` + ConsumptionNexthopAddRate *uint32 `protobuf:"varint,56,opt,name=consumption_nexthop_add_rate,json=consumptionNexthopAddRate" json:"consumption_nexthop_add_rate,omitempty"` + ConsumptionNexthopChangeRate *uint32 `protobuf:"varint,57,opt,name=consumption_nexthop_change_rate,json=consumptionNexthopChangeRate" json:"consumption_nexthop_change_rate,omitempty"` + ConsumptionNexthopDeleteRate *uint32 `protobuf:"varint,58,opt,name=consumption_nexthop_delete_rate,json=consumptionNexthopDeleteRate" json:"consumption_nexthop_delete_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) Reset() { + *m = JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList{} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) ProtoMessage() {} +func (*JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) Descriptor() ([]byte, []int) { + return fileDescriptor_7e8a66594c8c18c4, []int{0, 0, 0, 1} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList.Merge(m, src) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList proto.InternalMessageInfo + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetPeerIndex() uint32 { + if m != nil && m.PeerIndex != nil { + return *m.PeerIndex + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionRateCounter() uint32 { + if m != nil && m.ConsumptionRateCounter != nil { + return *m.ConsumptionRateCounter + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionRouteAddRate() uint32 { + if m != nil && m.ConsumptionRouteAddRate != nil { + return *m.ConsumptionRouteAddRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionRouteChangeRate() uint32 { + if m != nil && m.ConsumptionRouteChangeRate != nil { + return *m.ConsumptionRouteChangeRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionRouteDeleteRate() uint32 { + if m != nil && m.ConsumptionRouteDeleteRate != nil { + return *m.ConsumptionRouteDeleteRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionNexthopAddRate() uint32 { + if m != nil && m.ConsumptionNexthopAddRate != nil { + return *m.ConsumptionNexthopAddRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionNexthopChangeRate() uint32 { + if m != nil && m.ConsumptionNexthopChangeRate != nil { + return *m.ConsumptionNexthopChangeRate + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) GetConsumptionNexthopDeleteRate() uint32 { + if m != nil && m.ConsumptionNexthopDeleteRate != nil { + return *m.ConsumptionNexthopDeleteRate + } + return 0 +} + +type JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType struct { + VetoVmPageCountSevere *uint32 `protobuf:"varint,51,opt,name=veto_vm_page_count_severe,json=vetoVmPageCountSevere" json:"veto_vm_page_count_severe,omitempty"` + VetoIfstateMemory *uint32 `protobuf:"varint,52,opt,name=veto_ifstate_memory,json=vetoIfstateMemory" json:"veto_ifstate_memory,omitempty"` + VetoMemoryOverconsumed *uint32 `protobuf:"varint,53,opt,name=veto_memory_overconsumed,json=vetoMemoryOverconsumed" json:"veto_memory_overconsumed,omitempty"` + VetoPfeVetoMaxRoutes *uint32 `protobuf:"varint,54,opt,name=veto_pfe_veto_max_routes,json=vetoPfeVetoMaxRoutes" json:"veto_pfe_veto_max_routes,omitempty"` + VetoTooManyDelayedUnrefs *uint32 `protobuf:"varint,55,opt,name=veto_too_many_delayed_unrefs,json=vetoTooManyDelayedUnrefs" json:"veto_too_many_delayed_unrefs,omitempty"` + VetoNhMemoryUsage *uint32 `protobuf:"varint,56,opt,name=veto_nh_memory_usage,json=vetoNhMemoryUsage" json:"veto_nh_memory_usage,omitempty"` + VetoMbufCluster *uint32 `protobuf:"varint,57,opt,name=veto_mbuf_cluster,json=vetoMbufCluster" json:"veto_mbuf_cluster,omitempty"` + VetoFlabelSpaceExhaustion *uint32 `protobuf:"varint,58,opt,name=veto_flabel_space_exhaustion,json=vetoFlabelSpaceExhaustion" json:"veto_flabel_space_exhaustion,omitempty"` + VetoFlabelSpaceConsumption *uint32 `protobuf:"varint,59,opt,name=veto_flabel_space_consumption,json=vetoFlabelSpaceConsumption" json:"veto_flabel_space_consumption,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) Reset() { + *m = JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType{} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) ProtoMessage() {} +func (*JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_7e8a66594c8c18c4, []int{0, 0, 0, 2} +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType.Merge(m, src) +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType proto.InternalMessageInfo + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoVmPageCountSevere() uint32 { + if m != nil && m.VetoVmPageCountSevere != nil { + return *m.VetoVmPageCountSevere + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoIfstateMemory() uint32 { + if m != nil && m.VetoIfstateMemory != nil { + return *m.VetoIfstateMemory + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoMemoryOverconsumed() uint32 { + if m != nil && m.VetoMemoryOverconsumed != nil { + return *m.VetoMemoryOverconsumed + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoPfeVetoMaxRoutes() uint32 { + if m != nil && m.VetoPfeVetoMaxRoutes != nil { + return *m.VetoPfeVetoMaxRoutes + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoTooManyDelayedUnrefs() uint32 { + if m != nil && m.VetoTooManyDelayedUnrefs != nil { + return *m.VetoTooManyDelayedUnrefs + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoNhMemoryUsage() uint32 { + if m != nil && m.VetoNhMemoryUsage != nil { + return *m.VetoNhMemoryUsage + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoMbufCluster() uint32 { + if m != nil && m.VetoMbufCluster != nil { + return *m.VetoMbufCluster + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoFlabelSpaceExhaustion() uint32 { + if m != nil && m.VetoFlabelSpaceExhaustion != nil { + return *m.VetoFlabelSpaceExhaustion + } + return 0 +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) GetVetoFlabelSpaceConsumption() uint32 { + if m != nil && m.VetoFlabelSpaceConsumption != nil { + return *m.VetoFlabelSpaceConsumption + } + return 0 +} + +var E_JnprJunosKernelIfstateExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosKernelIfstate)(nil), + Field: 72, + Name: "jnpr_junos_kernel_ifstate_ext", + Tag: "bytes,72,opt,name=jnpr_junos_kernel_ifstate_ext", + Filename: "kernel-ifstate-render.proto", +} + +func init() { + proto.RegisterType((*JunosKernelIfstate)(nil), "junos_kernel_ifstate") + proto.RegisterType((*JunosKernelIfstateKernelIfstateType)(nil), "junos_kernel_ifstate.kernel_ifstate_type") + proto.RegisterType((*JunosKernelIfstateKernelIfstateTypeStatsList)(nil), "junos_kernel_ifstate.kernel_ifstate_type.stats_list") + proto.RegisterType((*JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType)(nil), "junos_kernel_ifstate.kernel_ifstate_type.stats_list.churn_rate_type") + proto.RegisterType((*JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList)(nil), "junos_kernel_ifstate.kernel_ifstate_type.stats_list.peer_consumption_rate_list") + proto.RegisterType((*JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType)(nil), "junos_kernel_ifstate.kernel_ifstate_type.stats_list.vetos_statistics_type") + proto.RegisterExtension(E_JnprJunosKernelIfstateExt) +} + +func init() { proto.RegisterFile("kernel-ifstate-render.proto", fileDescriptor_7e8a66594c8c18c4) } + +var fileDescriptor_7e8a66594c8c18c4 = []byte{ + // 940 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xd6, 0x96, 0x56, 0xa2, 0x13, 0x9a, 0x9f, 0x4d, 0xd3, 0x3a, 0x4b, 0x1a, 0x22, 0x54, 0xa1, + 0x80, 0xb0, 0x2d, 0x95, 0xd2, 0x86, 0x56, 0x02, 0x5a, 0x27, 0x88, 0xa6, 0x4a, 0x5a, 0xec, 0xb6, + 0x17, 0xdc, 0x0c, 0xe3, 0xdd, 0x63, 0xef, 0x26, 0xbb, 0x33, 0xdb, 0x99, 0x59, 0x63, 0x73, 0x19, + 0x71, 0x0b, 0x57, 0x88, 0x9f, 0xc7, 0xe0, 0x82, 0x67, 0x80, 0x4b, 0x1e, 0x01, 0xe5, 0x49, 0xd0, + 0xcc, 0x59, 0xc7, 0x63, 0x7b, 0x23, 0x55, 0xb9, 0xf4, 0xf9, 0xbe, 0xf3, 0xcd, 0x99, 0xf3, 0x9d, + 0x33, 0x6b, 0xf2, 0xee, 0x31, 0x48, 0x0e, 0x69, 0x3d, 0xe9, 0x29, 0xcd, 0x34, 0xd4, 0x25, 0xf0, + 0x08, 0x64, 0x23, 0x97, 0x42, 0x8b, 0x60, 0x55, 0x43, 0x0a, 0x19, 0x68, 0x39, 0xa2, 0x5a, 0xe4, + 0x18, 0x7c, 0xff, 0x64, 0x99, 0x5c, 0x3f, 0x2a, 0xb8, 0x50, 0x14, 0x53, 0x69, 0x99, 0xea, 0x7f, + 0x43, 0x16, 0xa7, 0x23, 0xb5, 0xbf, 0xbc, 0x2d, 0x6f, 0x7b, 0xe1, 0xce, 0x87, 0x8d, 0x2a, 0x7e, + 0x63, 0xfa, 0x27, 0xd5, 0xa3, 0x1c, 0xda, 0xd7, 0x30, 0xf8, 0x04, 0x63, 0xc1, 0xaf, 0x4b, 0x64, + 0xb5, 0x82, 0xe6, 0x3f, 0x25, 0x57, 0xcc, 0x2f, 0x55, 0xfb, 0xc9, 0xdb, 0x7a, 0x6b, 0x7b, 0xe1, + 0xce, 0xdd, 0x37, 0x3e, 0xa1, 0x61, 0xf3, 0x68, 0x9a, 0x28, 0xdd, 0x46, 0x8d, 0xe0, 0xcf, 0x45, + 0x42, 0x26, 0x51, 0xff, 0x03, 0xb2, 0x20, 0x21, 0x14, 0x32, 0xa2, 0x3a, 0xc9, 0xa0, 0x36, 0xda, + 0xf2, 0xb6, 0xaf, 0x3d, 0xbe, 0x72, 0xf2, 0xe5, 0xa5, 0xb7, 0xbd, 0x36, 0x41, 0xe4, 0x45, 0x92, + 0x81, 0x7f, 0x9b, 0x2c, 0x96, 0x3c, 0x05, 0xaf, 0x29, 0x2f, 0xb2, 0xda, 0x0f, 0x86, 0xda, 0x7e, + 0x07, 0xa3, 0x1d, 0x78, 0x7d, 0x58, 0x64, 0x7e, 0x44, 0x48, 0x18, 0x17, 0x92, 0x53, 0x69, 0x1a, + 0xf2, 0x1b, 0x36, 0x64, 0xf7, 0x22, 0xe5, 0x36, 0x26, 0x3a, 0xd8, 0xab, 0xab, 0x36, 0xd0, 0x36, + 0xad, 0xff, 0xd1, 0x23, 0x6b, 0x39, 0x80, 0xa4, 0xa1, 0xe0, 0xaa, 0xc8, 0x72, 0x9d, 0x88, 0xf2, + 0xc4, 0xdf, 0xb1, 0x41, 0xcf, 0x2e, 0x74, 0x62, 0xa5, 0x24, 0xf6, 0x6e, 0xd5, 0x60, 0xad, 0x09, + 0x64, 0xcb, 0x18, 0x90, 0xe5, 0x01, 0x68, 0xa1, 0xa8, 0xd1, 0x48, 0x94, 0x4e, 0x42, 0x55, 0xfb, + 0x03, 0xaf, 0xbc, 0x7f, 0xa1, 0x02, 0x66, 0xd5, 0xf0, 0xe2, 0x4b, 0x36, 0xdc, 0x39, 0x8b, 0x06, + 0x7f, 0x5f, 0x22, 0x4b, 0x33, 0xdd, 0xf1, 0x3f, 0x26, 0xbe, 0x18, 0x80, 0x64, 0x69, 0x4a, 0x1d, + 0x03, 0x3e, 0xb1, 0x16, 0x2d, 0x97, 0x48, 0xeb, 0xac, 0x81, 0xc6, 0x4c, 0x51, 0x68, 0xa0, 0x2c, + 0x8a, 0x90, 0x79, 0xb7, 0x34, 0xd3, 0x44, 0x1f, 0x45, 0x91, 0x65, 0x7d, 0x44, 0x56, 0x90, 0x15, + 0xc6, 0x8c, 0xf7, 0x01, 0x89, 0x9f, 0x5a, 0xe2, 0x92, 0x05, 0x5a, 0x36, 0x3e, 0xcd, 0x8d, 0x20, + 0x05, 0x5d, 0x72, 0xef, 0x39, 0xdc, 0x5d, 0x1b, 0xb7, 0xdc, 0x6d, 0xb2, 0xcc, 0x61, 0xa8, 0x63, + 0x91, 0x4f, 0xce, 0xbf, 0x6f, 0xa9, 0x8b, 0x65, 0x7c, 0x5c, 0x41, 0x83, 0xac, 0x8e, 0x99, 0xae, + 0xee, 0x8e, 0x25, 0xaf, 0x94, 0x90, 0xa3, 0xec, 0xf0, 0xdd, 0x9a, 0x3f, 0x9b, 0xe2, 0x4f, 0xaa, + 0x0e, 0x7e, 0xbe, 0x4c, 0x82, 0xf3, 0x5d, 0xf7, 0x6f, 0x13, 0x62, 0xd1, 0x84, 0x47, 0x30, 0xc4, + 0x66, 0x8e, 0x57, 0xe3, 0xaa, 0x01, 0x9e, 0x98, 0xb8, 0xbf, 0x43, 0x6a, 0x73, 0xe9, 0xa1, 0x28, + 0xb8, 0x06, 0x59, 0xb6, 0xf5, 0x46, 0x38, 0x3d, 0x39, 0x2d, 0x44, 0xfd, 0x87, 0x24, 0x98, 0xca, + 0x9c, 0xb6, 0x04, 0x3b, 0x7d, 0xd3, 0xcd, 0x75, 0xdd, 0x79, 0x44, 0x6e, 0xcd, 0x27, 0xbb, 0xb7, + 0xc6, 0xee, 0x07, 0xb3, 0xf9, 0x8e, 0x69, 0x95, 0x12, 0x6e, 0xa3, 0xef, 0x57, 0x4b, 0x38, 0x1d, + 0xff, 0x82, 0x6c, 0xb8, 0x12, 0x73, 0xbe, 0xa2, 0x55, 0xeb, 0x0e, 0xe7, 0x70, 0xda, 0xe2, 0x3d, + 0xf2, 0x5e, 0x95, 0xc0, 0xbc, 0x7d, 0x1b, 0xf3, 0x1a, 0xce, 0x55, 0xce, 0x91, 0x71, 0x2f, 0xf3, + 0xe0, 0x3c, 0x99, 0xc9, 0x75, 0x82, 0x5f, 0x2e, 0x93, 0xb5, 0xca, 0x2d, 0xf4, 0x77, 0xc8, 0xba, + 0x01, 0xe8, 0x20, 0xa3, 0x39, 0xeb, 0x97, 0x0e, 0x53, 0x05, 0x03, 0x90, 0xe3, 0x3d, 0xb3, 0x99, + 0xaf, 0xb2, 0xe7, 0xac, 0x8f, 0x0e, 0x77, 0x2c, 0x68, 0x86, 0xd2, 0x66, 0x8e, 0xb7, 0x3e, 0x83, + 0x4c, 0xc8, 0x51, 0x39, 0x1a, 0x2b, 0x06, 0x2a, 0xdf, 0xff, 0x03, 0x0b, 0x98, 0x79, 0xb2, 0x7c, + 0xe4, 0x51, 0xb3, 0xbc, 0x58, 0x33, 0x44, 0xe5, 0x4c, 0xdc, 0x30, 0x38, 0xb2, 0x9f, 0x39, 0xa8, + 0x7f, 0xaf, 0xcc, 0xcc, 0x7b, 0x40, 0x51, 0x82, 0x0d, 0xd1, 0x55, 0x55, 0x4e, 0xc3, 0x75, 0x13, + 0x7e, 0xde, 0x83, 0x57, 0x46, 0x80, 0x0d, 0xad, 0x9b, 0xca, 0xff, 0x9c, 0x6c, 0x58, 0xba, 0x16, + 0x26, 0x85, 0x8f, 0x4c, 0xdb, 0xd8, 0x08, 0x22, 0x5a, 0x70, 0x09, 0x3d, 0x55, 0x8e, 0x81, 0xd5, + 0x7e, 0x21, 0xc4, 0x01, 0xe3, 0xa3, 0x5d, 0x24, 0xbc, 0xb4, 0xb8, 0xdf, 0x24, 0x56, 0x97, 0xf2, + 0x78, 0x5c, 0x74, 0xa1, 0x58, 0xff, 0x6c, 0x4f, 0x0d, 0x76, 0x18, 0x63, 0xbd, 0x2f, 0x0d, 0x60, + 0x5e, 0x0b, 0xac, 0xaf, 0x5b, 0xf4, 0x68, 0x98, 0x16, 0xca, 0xec, 0x0a, 0xda, 0x6c, 0x5f, 0xbb, + 0x83, 0x6e, 0xd1, 0x6b, 0x61, 0xd8, 0x4c, 0x98, 0xe5, 0xf6, 0x52, 0xd6, 0x85, 0x94, 0xaa, 0x9c, + 0x85, 0x40, 0x61, 0x18, 0xb3, 0x42, 0x19, 0x0f, 0x4b, 0x5b, 0xad, 0x39, 0x5f, 0x59, 0x4a, 0xc7, + 0x30, 0xf6, 0xce, 0x08, 0x66, 0xca, 0xe7, 0x05, 0x9c, 0x29, 0xa8, 0x3d, 0xc4, 0x29, 0x9f, 0x51, + 0x70, 0x5e, 0xfb, 0x07, 0x39, 0xb9, 0x75, 0xc4, 0x73, 0x49, 0xab, 0x1e, 0x75, 0x0a, 0x43, 0xed, + 0xdf, 0x6c, 0xec, 0x17, 0x3c, 0xc9, 0x41, 0x1e, 0x82, 0xfe, 0x5e, 0xc8, 0x63, 0xd5, 0x01, 0xae, + 0x84, 0x54, 0xb5, 0xaf, 0xed, 0xe7, 0x60, 0xad, 0xf2, 0x73, 0xd0, 0x5e, 0x37, 0xa2, 0xfb, 0x06, + 0x79, 0xea, 0xfe, 0x0f, 0xd8, 0x1b, 0xea, 0xc7, 0xdf, 0xfd, 0x73, 0xba, 0xe9, 0xfd, 0x7b, 0xba, + 0xe9, 0xfd, 0x77, 0xba, 0xe9, 0x7d, 0xdb, 0xee, 0x27, 0xda, 0x48, 0x98, 0x13, 0x1a, 0x1c, 0x74, + 0x33, 0x09, 0xa1, 0x0b, 0xb2, 0xdf, 0x8c, 0x81, 0xa5, 0x3a, 0xee, 0x0a, 0x5d, 0x4f, 0x78, 0x1f, + 0x94, 0xae, 0x1f, 0xe9, 0xa4, 0xce, 0x99, 0x4e, 0x06, 0xd0, 0xcc, 0x8f, 0xfb, 0xcd, 0x23, 0x9d, + 0x34, 0x59, 0xc4, 0x72, 0x0d, 0x52, 0x35, 0xb1, 0xfc, 0xa6, 0x0a, 0x63, 0xc8, 0xd8, 0xff, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x60, 0xef, 0x6d, 0xcc, 0x0b, 0x09, 0x00, 0x00, +} + +func (m *JunosKernelIfstate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelIfstate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelIfstate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.KernelIfstate != nil { + { + size, err := m.KernelIfstate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelIfstateKernelIfstateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelIfstateKernelIfstateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelIfstateKernelIfstateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Stats) > 0 { + for iNdEx := len(m.Stats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Stats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xea + } + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VetosStatistics != nil { + { + size, err := m.VetosStatistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if len(m.PeerConsumptionRate) > 0 { + for iNdEx := len(m.PeerConsumptionRate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PeerConsumptionRate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.ChurnRate != nil { + { + size, err := m.ChurnRate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.RecordSeqNum != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.RecordSeqNum)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xd0 + } + if m.RecordTime != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.RecordTime)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NexthopChangeRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.NexthopChangeRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.NexthopDeleteRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.NexthopDeleteRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.NexthopAddRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.NexthopAddRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.RouteDeleteRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.RouteDeleteRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RouteChangeRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.RouteChangeRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.RouteAddRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.RouteAddRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.OverallChurnRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.OverallChurnRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ConsumptionNexthopDeleteRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionNexthopDeleteRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.ConsumptionNexthopChangeRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionNexthopChangeRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.ConsumptionNexthopAddRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionNexthopAddRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ConsumptionRouteDeleteRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionRouteDeleteRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ConsumptionRouteChangeRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionRouteChangeRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ConsumptionRouteAddRate != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionRouteAddRate)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ConsumptionRateCounter != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.ConsumptionRateCounter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PeerIndex != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.PeerIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VetoFlabelSpaceConsumption != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoFlabelSpaceConsumption)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.VetoFlabelSpaceExhaustion != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoFlabelSpaceExhaustion)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.VetoMbufCluster != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoMbufCluster)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.VetoNhMemoryUsage != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoNhMemoryUsage)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.VetoTooManyDelayedUnrefs != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoTooManyDelayedUnrefs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.VetoPfeVetoMaxRoutes != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoPfeVetoMaxRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.VetoMemoryOverconsumed != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoMemoryOverconsumed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.VetoIfstateMemory != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoIfstateMemory)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.VetoVmPageCountSevere != nil { + i = encodeVarintKernelIfstateRender(dAtA, i, uint64(*m.VetoVmPageCountSevere)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintKernelIfstateRender(dAtA []byte, offset int, v uint64) int { + offset -= sovKernelIfstateRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosKernelIfstate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KernelIfstate != nil { + l = m.KernelIfstate.Size() + n += 2 + l + sovKernelIfstateRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelIfstateKernelIfstateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.Size() + n += 2 + l + sovKernelIfstateRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RecordTime != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.RecordTime)) + } + if m.RecordSeqNum != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.RecordSeqNum)) + } + if m.ChurnRate != nil { + l = m.ChurnRate.Size() + n += 2 + l + sovKernelIfstateRender(uint64(l)) + } + if len(m.PeerConsumptionRate) > 0 { + for _, e := range m.PeerConsumptionRate { + l = e.Size() + n += 2 + l + sovKernelIfstateRender(uint64(l)) + } + } + if m.VetosStatistics != nil { + l = m.VetosStatistics.Size() + n += 2 + l + sovKernelIfstateRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OverallChurnRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.OverallChurnRate)) + } + if m.RouteAddRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.RouteAddRate)) + } + if m.RouteChangeRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.RouteChangeRate)) + } + if m.RouteDeleteRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.RouteDeleteRate)) + } + if m.NexthopAddRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.NexthopAddRate)) + } + if m.NexthopDeleteRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.NexthopDeleteRate)) + } + if m.NexthopChangeRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.NexthopChangeRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerIndex != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.PeerIndex)) + } + if m.ConsumptionRateCounter != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionRateCounter)) + } + if m.ConsumptionRouteAddRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionRouteAddRate)) + } + if m.ConsumptionRouteChangeRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionRouteChangeRate)) + } + if m.ConsumptionRouteDeleteRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionRouteDeleteRate)) + } + if m.ConsumptionNexthopAddRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionNexthopAddRate)) + } + if m.ConsumptionNexthopChangeRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionNexthopChangeRate)) + } + if m.ConsumptionNexthopDeleteRate != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.ConsumptionNexthopDeleteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VetoVmPageCountSevere != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoVmPageCountSevere)) + } + if m.VetoIfstateMemory != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoIfstateMemory)) + } + if m.VetoMemoryOverconsumed != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoMemoryOverconsumed)) + } + if m.VetoPfeVetoMaxRoutes != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoPfeVetoMaxRoutes)) + } + if m.VetoTooManyDelayedUnrefs != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoTooManyDelayedUnrefs)) + } + if m.VetoNhMemoryUsage != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoNhMemoryUsage)) + } + if m.VetoMbufCluster != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoMbufCluster)) + } + if m.VetoFlabelSpaceExhaustion != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoFlabelSpaceExhaustion)) + } + if m.VetoFlabelSpaceConsumption != nil { + n += 2 + sovKernelIfstateRender(uint64(*m.VetoFlabelSpaceConsumption)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovKernelIfstateRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozKernelIfstateRender(x uint64) (n int) { + return sovKernelIfstateRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosKernelIfstate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_kernel_ifstate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_kernel_ifstate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 181: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KernelIfstate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKernelIfstateRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KernelIfstate == nil { + m.KernelIfstate = &JunosKernelIfstateKernelIfstateType{} + } + if err := m.KernelIfstate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKernelIfstateRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelIfstateKernelIfstateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: kernel_ifstate_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: kernel_ifstate_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 141: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKernelIfstateRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stats = append(m.Stats, &JunosKernelIfstateKernelIfstateTypeStatsList{}) + if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKernelIfstateRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: stats_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: stats_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 121: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecordTime = &v + case 122: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordSeqNum", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecordSeqNum = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChurnRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKernelIfstateRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ChurnRate == nil { + m.ChurnRate = &JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType{} + } + if err := m.ChurnRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerConsumptionRate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKernelIfstateRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PeerConsumptionRate = append(m.PeerConsumptionRate, &JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList{}) + if err := m.PeerConsumptionRate[len(m.PeerConsumptionRate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VetosStatistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKernelIfstateRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.VetosStatistics == nil { + m.VetosStatistics = &JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType{} + } + if err := m.VetosStatistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKernelIfstateRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListChurnRateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: churn_rate_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: churn_rate_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OverallChurnRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OverallChurnRate = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteAddRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RouteAddRate = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteChangeRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RouteChangeRate = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteDeleteRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RouteDeleteRate = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopAddRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopAddRate = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopDeleteRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopDeleteRate = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopChangeRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopChangeRate = &v + default: + iNdEx = preIndex + skippy, err := skipKernelIfstateRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListPeerConsumptionRateList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peer_consumption_rate_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peer_consumption_rate_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeerIndex = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionRateCounter", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionRateCounter = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionRouteAddRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionRouteAddRate = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionRouteChangeRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionRouteChangeRate = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionRouteDeleteRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionRouteDeleteRate = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionNexthopAddRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionNexthopAddRate = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionNexthopChangeRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionNexthopChangeRate = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionNexthopDeleteRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConsumptionNexthopDeleteRate = &v + default: + iNdEx = preIndex + skippy, err := skipKernelIfstateRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKernelIfstateKernelIfstateTypeStatsListVetosStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vetos_statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vetos_statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoVmPageCountSevere", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoVmPageCountSevere = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoIfstateMemory", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoIfstateMemory = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoMemoryOverconsumed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoMemoryOverconsumed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoPfeVetoMaxRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoPfeVetoMaxRoutes = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoTooManyDelayedUnrefs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoTooManyDelayedUnrefs = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoNhMemoryUsage", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoNhMemoryUsage = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoMbufCluster", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoMbufCluster = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoFlabelSpaceExhaustion", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoFlabelSpaceExhaustion = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VetoFlabelSpaceConsumption", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VetoFlabelSpaceConsumption = &v + default: + iNdEx = preIndex + skippy, err := skipKernelIfstateRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKernelIfstateRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipKernelIfstateRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKernelIfstateRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthKernelIfstateRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupKernelIfstateRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthKernelIfstateRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthKernelIfstateRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKernelIfstateRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKernelIfstateRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/kernel-ifstate-render.proto b/schema/kernel-ifstate-render.proto new file mode 100755 index 0000000..4993cc0 --- /dev/null +++ b/schema/kernel-ifstate-render.proto @@ -0,0 +1,51 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_kernel_ifstate jnpr_junos_kernel_ifstate_ext = 72; +} + +message junos_kernel_ifstate { + optional kernel_ifstate_type kernel_ifstate = 181; + message kernel_ifstate_type { + message stats_list { + optional uint32 record_time = 121 [(telemetry_options).is_key = true]; + optional uint32 record_seq_num = 122; + optional churn_rate_type churn_rate = 151; + message churn_rate_type { + optional uint32 overall_churn_rate = 51; + optional uint32 route_add_rate = 52; + optional uint32 route_change_rate = 53; + optional uint32 route_delete_rate = 54; + optional uint32 nexthop_add_rate = 55; + optional uint32 nexthop_delete_rate = 56; + optional uint32 nexthop_change_rate = 57; + } + message peer_consumption_rate_list { + optional uint32 peer_index = 51 [(telemetry_options).is_key = true]; + optional uint32 consumption_rate_counter = 52; + optional uint32 consumption_route_add_rate = 53; + optional uint32 consumption_route_change_rate = 54; + optional uint32 consumption_route_delete_rate = 55; + optional uint32 consumption_nexthop_add_rate = 56; + optional uint32 consumption_nexthop_change_rate = 57; + optional uint32 consumption_nexthop_delete_rate = 58; + } + repeated peer_consumption_rate_list peer_consumption_rate = 152; + optional vetos_statistics_type vetos_statistics = 153; + message vetos_statistics_type { + optional uint32 veto_vm_page_count_severe = 51; + optional uint32 veto_ifstate_memory = 52; + optional uint32 veto_memory_overconsumed = 53; + optional uint32 veto_pfe_veto_max_routes = 54; + optional uint32 veto_too_many_delayed_unrefs = 55; + optional uint32 veto_nh_memory_usage = 56; + optional uint32 veto_mbuf_cluster = 57; + optional uint32 veto_flabel_space_exhaustion = 58; + optional uint32 veto_flabel_space_consumption = 59; + } + } + repeated stats_list stats = 141; + } +} diff --git a/schema/kmd_render.pb.go b/schema/kmd_render.pb.go new file mode 100644 index 0000000..8b6f5bd --- /dev/null +++ b/schema/kmd_render.pb.go @@ -0,0 +1,1625 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: kmd_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosKeyManagement struct { + IkeSecurityAssociations *JunosKeyManagementIkeSecurityAssociationsType `protobuf:"bytes,151,opt,name=ike_security_associations,json=ikeSecurityAssociations" json:"ike_security_associations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKeyManagement) Reset() { *m = JunosKeyManagement{} } +func (m *JunosKeyManagement) String() string { return proto.CompactTextString(m) } +func (*JunosKeyManagement) ProtoMessage() {} +func (*JunosKeyManagement) Descriptor() ([]byte, []int) { + return fileDescriptor_17c775346df31e4a, []int{0} +} +func (m *JunosKeyManagement) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKeyManagement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKeyManagement.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKeyManagement) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKeyManagement.Merge(m, src) +} +func (m *JunosKeyManagement) XXX_Size() int { + return m.Size() +} +func (m *JunosKeyManagement) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKeyManagement.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKeyManagement proto.InternalMessageInfo + +func (m *JunosKeyManagement) GetIkeSecurityAssociations() *JunosKeyManagementIkeSecurityAssociationsType { + if m != nil { + return m.IkeSecurityAssociations + } + return nil +} + +type JunosKeyManagementIkeSecurityAssociationsType struct { + IkeSecurityAssociation []*JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList `protobuf:"bytes,151,rep,name=ike_security_association,json=ikeSecurityAssociation" json:"ike_security_association,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKeyManagementIkeSecurityAssociationsType) Reset() { + *m = JunosKeyManagementIkeSecurityAssociationsType{} +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosKeyManagementIkeSecurityAssociationsType) ProtoMessage() {} +func (*JunosKeyManagementIkeSecurityAssociationsType) Descriptor() ([]byte, []int) { + return fileDescriptor_17c775346df31e4a, []int{0, 0} +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsType.Merge(m, src) +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) XXX_Size() int { + return m.Size() +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsType proto.InternalMessageInfo + +func (m *JunosKeyManagementIkeSecurityAssociationsType) GetIkeSecurityAssociation() []*JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList { + if m != nil { + return m.IkeSecurityAssociation + } + return nil +} + +type JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList struct { + RemoteIp *string `protobuf:"bytes,51,opt,name=remote_ip,json=remoteIp" json:"remote_ip,omitempty"` + LocalIp *string `protobuf:"bytes,52,opt,name=local_ip,json=localIp" json:"local_ip,omitempty"` + NumberIpsecSaCreated *uint32 `protobuf:"varint,53,opt,name=number_ipsec_sa_created,json=numberIpsecSaCreated" json:"number_ipsec_sa_created,omitempty"` + NumberIpsecSaDeleted *uint32 `protobuf:"varint,54,opt,name=number_ipsec_sa_deleted,json=numberIpsecSaDeleted" json:"number_ipsec_sa_deleted,omitempty"` + NumberIpsecSaRekey *uint32 `protobuf:"varint,55,opt,name=number_ipsec_sa_rekey,json=numberIpsecSaRekey" json:"number_ipsec_sa_rekey,omitempty"` + ExchangeType *string `protobuf:"bytes,56,opt,name=exchange_type,json=exchangeType" json:"exchange_type,omitempty"` + InBytes *uint32 `protobuf:"varint,57,opt,name=in_bytes,json=inBytes" json:"in_bytes,omitempty"` + InPackets *uint32 `protobuf:"varint,58,opt,name=in_packets,json=inPackets" json:"in_packets,omitempty"` + OutBytes *uint32 `protobuf:"varint,59,opt,name=out_bytes,json=outBytes" json:"out_bytes,omitempty"` + OutPackets *uint32 `protobuf:"varint,60,opt,name=out_packets,json=outPackets" json:"out_packets,omitempty"` + DeletePayloadReceived *uint32 `protobuf:"varint,61,opt,name=delete_payload_received,json=deletePayloadReceived" json:"delete_payload_received,omitempty"` + DeletePayloadTransmitted *uint32 `protobuf:"varint,62,opt,name=delete_payload_transmitted,json=deletePayloadTransmitted" json:"delete_payload_transmitted,omitempty"` + DpdRequestPayloadReceived *uint32 `protobuf:"varint,63,opt,name=dpd_request_payload_received,json=dpdRequestPayloadReceived" json:"dpd_request_payload_received,omitempty"` + DpdRequestPayloadTransmitted *uint32 `protobuf:"varint,64,opt,name=dpd_request_payload_transmitted,json=dpdRequestPayloadTransmitted" json:"dpd_request_payload_transmitted,omitempty"` + DpdResponsePayloadReceived *uint32 `protobuf:"varint,65,opt,name=dpd_response_payload_received,json=dpdResponsePayloadReceived" json:"dpd_response_payload_received,omitempty"` + DpdResponsePayloadTransmitted *uint32 `protobuf:"varint,66,opt,name=dpd_response_payload_transmitted,json=dpdResponsePayloadTransmitted" json:"dpd_response_payload_transmitted,omitempty"` + DpdResponsePayloadMissed *uint32 `protobuf:"varint,67,opt,name=dpd_response_payload_missed,json=dpdResponsePayloadMissed" json:"dpd_response_payload_missed,omitempty"` + DpdResponsePayloadMaximumDelay *uint32 `protobuf:"varint,68,opt,name=dpd_response_payload_maximum_delay,json=dpdResponsePayloadMaximumDelay" json:"dpd_response_payload_maximum_delay,omitempty"` + DpdResponseSeqPayloadMissed *uint32 `protobuf:"varint,69,opt,name=dpd_response_seq_payload_missed,json=dpdResponseSeqPayloadMissed" json:"dpd_response_seq_payload_missed,omitempty"` + InvalidSpiNotifyReceived *uint32 `protobuf:"varint,70,opt,name=invalid_spi_notify_received,json=invalidSpiNotifyReceived" json:"invalid_spi_notify_received,omitempty"` + InvalidSpiNotifyTransmitted *uint32 `protobuf:"varint,71,opt,name=invalid_spi_notify_transmitted,json=invalidSpiNotifyTransmitted" json:"invalid_spi_notify_transmitted,omitempty"` + RoutingInstance *string `protobuf:"bytes,72,opt,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) Reset() { + *m = JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList{} +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) String() string { + return proto.CompactTextString(m) +} +func (*JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) ProtoMessage() {} +func (*JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) Descriptor() ([]byte, []int) { + return fileDescriptor_17c775346df31e4a, []int{0, 0, 0} +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList.Merge(m, src) +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) XXX_Size() int { + return m.Size() +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList proto.InternalMessageInfo + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetRemoteIp() string { + if m != nil && m.RemoteIp != nil { + return *m.RemoteIp + } + return "" +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetLocalIp() string { + if m != nil && m.LocalIp != nil { + return *m.LocalIp + } + return "" +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetNumberIpsecSaCreated() uint32 { + if m != nil && m.NumberIpsecSaCreated != nil { + return *m.NumberIpsecSaCreated + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetNumberIpsecSaDeleted() uint32 { + if m != nil && m.NumberIpsecSaDeleted != nil { + return *m.NumberIpsecSaDeleted + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetNumberIpsecSaRekey() uint32 { + if m != nil && m.NumberIpsecSaRekey != nil { + return *m.NumberIpsecSaRekey + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetExchangeType() string { + if m != nil && m.ExchangeType != nil { + return *m.ExchangeType + } + return "" +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetInBytes() uint32 { + if m != nil && m.InBytes != nil { + return *m.InBytes + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetInPackets() uint32 { + if m != nil && m.InPackets != nil { + return *m.InPackets + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetOutBytes() uint32 { + if m != nil && m.OutBytes != nil { + return *m.OutBytes + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetOutPackets() uint32 { + if m != nil && m.OutPackets != nil { + return *m.OutPackets + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDeletePayloadReceived() uint32 { + if m != nil && m.DeletePayloadReceived != nil { + return *m.DeletePayloadReceived + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDeletePayloadTransmitted() uint32 { + if m != nil && m.DeletePayloadTransmitted != nil { + return *m.DeletePayloadTransmitted + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdRequestPayloadReceived() uint32 { + if m != nil && m.DpdRequestPayloadReceived != nil { + return *m.DpdRequestPayloadReceived + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdRequestPayloadTransmitted() uint32 { + if m != nil && m.DpdRequestPayloadTransmitted != nil { + return *m.DpdRequestPayloadTransmitted + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdResponsePayloadReceived() uint32 { + if m != nil && m.DpdResponsePayloadReceived != nil { + return *m.DpdResponsePayloadReceived + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdResponsePayloadTransmitted() uint32 { + if m != nil && m.DpdResponsePayloadTransmitted != nil { + return *m.DpdResponsePayloadTransmitted + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdResponsePayloadMissed() uint32 { + if m != nil && m.DpdResponsePayloadMissed != nil { + return *m.DpdResponsePayloadMissed + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdResponsePayloadMaximumDelay() uint32 { + if m != nil && m.DpdResponsePayloadMaximumDelay != nil { + return *m.DpdResponsePayloadMaximumDelay + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetDpdResponseSeqPayloadMissed() uint32 { + if m != nil && m.DpdResponseSeqPayloadMissed != nil { + return *m.DpdResponseSeqPayloadMissed + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetInvalidSpiNotifyReceived() uint32 { + if m != nil && m.InvalidSpiNotifyReceived != nil { + return *m.InvalidSpiNotifyReceived + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetInvalidSpiNotifyTransmitted() uint32 { + if m != nil && m.InvalidSpiNotifyTransmitted != nil { + return *m.InvalidSpiNotifyTransmitted + } + return 0 +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) GetRoutingInstance() string { + if m != nil && m.RoutingInstance != nil { + return *m.RoutingInstance + } + return "" +} + +var E_JnprJunosKeyManagementExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosKeyManagement)(nil), + Field: 48, + Name: "jnpr_junos_key_management_ext", + Tag: "bytes,48,opt,name=jnpr_junos_key_management_ext", + Filename: "kmd_render.proto", +} + +func init() { + proto.RegisterType((*JunosKeyManagement)(nil), "junos_key_management") + proto.RegisterType((*JunosKeyManagementIkeSecurityAssociationsType)(nil), "junos_key_management.ike_security_associations_type") + proto.RegisterType((*JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList)(nil), "junos_key_management.ike_security_associations_type.ike_security_association_list") + proto.RegisterExtension(E_JnprJunosKeyManagementExt) +} + +func init() { proto.RegisterFile("kmd_render.proto", fileDescriptor_17c775346df31e4a) } + +var fileDescriptor_17c775346df31e4a = []byte{ + // 768 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4f, 0x73, 0xdb, 0x44, + 0x18, 0xc6, 0x47, 0xc3, 0xa1, 0xc9, 0x86, 0x0e, 0x1d, 0xd1, 0x10, 0xd9, 0xa9, 0xdd, 0x4c, 0xb9, + 0x84, 0x43, 0x6c, 0x28, 0x6d, 0x81, 0xd2, 0x50, 0xf2, 0x8f, 0x92, 0x30, 0xed, 0x74, 0xe4, 0x9e, + 0xb8, 0x2c, 0x1b, 0xe9, 0xc5, 0x5e, 0x4b, 0xda, 0x5d, 0xef, 0xbe, 0x0a, 0xd6, 0x87, 0xe0, 0xcc, + 0x91, 0xaf, 0xc3, 0x91, 0xe1, 0x03, 0x30, 0x4c, 0x3e, 0x09, 0xb3, 0xbb, 0x72, 0xab, 0xd8, 0x4a, + 0x0e, 0x3d, 0xea, 0x7d, 0xde, 0xe7, 0xb7, 0x8f, 0x1e, 0x5b, 0x4b, 0xee, 0x64, 0x45, 0x4a, 0x35, + 0x88, 0x14, 0xf4, 0x40, 0x69, 0x89, 0xb2, 0xfb, 0x31, 0x42, 0x0e, 0x05, 0xa0, 0xae, 0x28, 0x4a, + 0xe5, 0x87, 0x0f, 0xfe, 0xdd, 0x20, 0x77, 0xa7, 0xa5, 0x90, 0x86, 0x66, 0x50, 0xd1, 0x82, 0x09, + 0x36, 0x86, 0x02, 0x04, 0x86, 0x33, 0xd2, 0xe1, 0x19, 0x50, 0x03, 0x49, 0xa9, 0x39, 0x56, 0x94, + 0x19, 0x23, 0x13, 0xce, 0x90, 0x4b, 0x61, 0xa2, 0x3f, 0x82, 0x9d, 0x60, 0x77, 0xe3, 0xe1, 0xa3, + 0x41, 0x9b, 0x75, 0x70, 0xad, 0x8f, 0x62, 0xa5, 0x20, 0xde, 0xe2, 0x19, 0x8c, 0x6a, 0xf9, 0xa0, + 0xa1, 0x76, 0xff, 0x21, 0xa4, 0x7f, 0xb3, 0x37, 0xfc, 0x3d, 0x20, 0xd1, 0x75, 0x2b, 0x36, 0xd5, + 0x07, 0xbb, 0x1b, 0x0f, 0xe3, 0xf7, 0x49, 0x75, 0xad, 0x4c, 0x73, 0x6e, 0x30, 0xfe, 0xa4, 0x3d, + 0x73, 0xf7, 0xcf, 0x75, 0xd2, 0xbb, 0xd1, 0x19, 0x6e, 0x93, 0x75, 0x0d, 0x85, 0x44, 0xa0, 0x5c, + 0x45, 0x5f, 0xee, 0x04, 0xbb, 0xeb, 0xf1, 0x9a, 0x1f, 0x9c, 0xaa, 0xb0, 0x43, 0xd6, 0x72, 0x99, + 0xb0, 0xdc, 0x6a, 0x8f, 0x9c, 0x76, 0xcb, 0x3d, 0x9f, 0xaa, 0xf0, 0x31, 0xd9, 0x12, 0x65, 0x71, + 0x0e, 0x9a, 0x72, 0x65, 0x20, 0xa1, 0x86, 0xd1, 0x44, 0x03, 0x43, 0x48, 0xa3, 0xc7, 0x3b, 0xc1, + 0xee, 0xed, 0xf8, 0xae, 0x97, 0x4f, 0xad, 0x3a, 0x62, 0x47, 0x5e, 0x6b, 0xb3, 0xa5, 0x90, 0x83, + 0xb5, 0x3d, 0x69, 0xb1, 0x1d, 0x7b, 0x2d, 0xfc, 0x82, 0x6c, 0x2e, 0xdb, 0x34, 0x64, 0x50, 0x45, + 0x5f, 0x39, 0x53, 0x78, 0xc5, 0x14, 0x5b, 0x25, 0xfc, 0x94, 0xdc, 0x86, 0x79, 0x32, 0x61, 0x62, + 0x0c, 0xae, 0xc1, 0xe8, 0x6b, 0xf7, 0x02, 0x1f, 0x2e, 0x86, 0x6f, 0xec, 0xef, 0xd5, 0x21, 0x6b, + 0x5c, 0xd0, 0xf3, 0x0a, 0xc1, 0x44, 0xdf, 0x38, 0xd4, 0x2d, 0x2e, 0x0e, 0xed, 0x63, 0xd8, 0x23, + 0x84, 0x0b, 0xaa, 0x58, 0x92, 0x01, 0x9a, 0xe8, 0xa9, 0x13, 0xd7, 0xb9, 0x78, 0xed, 0x07, 0xb6, + 0x37, 0x59, 0x62, 0x6d, 0xfd, 0xd6, 0xa9, 0x6b, 0xb2, 0x44, 0xef, 0xbd, 0x4f, 0x36, 0xac, 0xb8, + 0x30, 0x3f, 0x73, 0x32, 0x91, 0x25, 0x2e, 0xdc, 0x4f, 0xc8, 0x96, 0x7f, 0x6d, 0xaa, 0x58, 0x95, + 0x4b, 0x66, 0x3f, 0x85, 0x04, 0xf8, 0x05, 0xa4, 0xd1, 0xbe, 0x5b, 0xde, 0xf4, 0xf2, 0x6b, 0xaf, + 0xc6, 0xb5, 0x18, 0x3e, 0x23, 0xdd, 0x25, 0x1f, 0x6a, 0x26, 0x4c, 0xc1, 0xd1, 0x36, 0xf8, 0x9d, + 0xb3, 0x46, 0x57, 0xac, 0x6f, 0xde, 0xe9, 0xe1, 0x73, 0x72, 0x2f, 0x55, 0xf6, 0xa8, 0x59, 0x09, + 0x06, 0x57, 0x8f, 0x7e, 0xee, 0xfc, 0x9d, 0x54, 0xa5, 0xb1, 0x5f, 0x59, 0x3e, 0xfe, 0x84, 0xdc, + 0x6f, 0x03, 0x34, 0x33, 0x7c, 0xef, 0x18, 0xf7, 0x56, 0x18, 0xcd, 0x1c, 0x07, 0xa4, 0xe7, 0x31, + 0x46, 0x49, 0x61, 0x5a, 0x3a, 0x38, 0x70, 0x90, 0xae, 0x83, 0xf8, 0x9d, 0xe5, 0x24, 0x2f, 0xc8, + 0x4e, 0x2b, 0xa2, 0x19, 0xe5, 0xd0, 0x51, 0x7a, 0xab, 0x94, 0x66, 0x96, 0x7d, 0xb2, 0xdd, 0x0a, + 0x2a, 0xb8, 0x31, 0x90, 0x46, 0x47, 0x75, 0xa5, 0x2b, 0x8c, 0x97, 0x4e, 0x0f, 0xcf, 0xc8, 0x83, + 0x76, 0x3b, 0x9b, 0xf3, 0xa2, 0x2c, 0xec, 0x9f, 0x9b, 0x55, 0xd1, 0xb1, 0xa3, 0xf4, 0x5b, 0x28, + 0x7e, 0xed, 0xd8, 0x6e, 0x85, 0xc7, 0x8b, 0x76, 0x6b, 0x96, 0x81, 0xd9, 0x72, 0x9c, 0x13, 0x07, + 0xda, 0x6e, 0x80, 0x46, 0x30, 0xbb, 0x9a, 0x68, 0x9f, 0x6c, 0x73, 0x71, 0xc1, 0x72, 0x9e, 0x52, + 0xa3, 0x38, 0x15, 0x12, 0xf9, 0xaf, 0xd5, 0xbb, 0x6a, 0x7f, 0xf0, 0x2f, 0x54, 0xaf, 0x8c, 0x14, + 0x7f, 0xe5, 0x16, 0xde, 0x16, 0x7b, 0x44, 0xfa, 0x2d, 0xf6, 0x66, 0xad, 0x2f, 0x7c, 0x86, 0x65, + 0x42, 0xb3, 0xd4, 0xcf, 0xc8, 0x1d, 0x2d, 0x4b, 0xe4, 0x62, 0x4c, 0xb9, 0x30, 0xc8, 0x44, 0x02, + 0xd1, 0x8f, 0xee, 0xf3, 0xfb, 0xa8, 0x9e, 0x9f, 0xd6, 0xe3, 0xa7, 0x8a, 0xf4, 0xa6, 0x42, 0x69, + 0xda, 0x76, 0x27, 0x52, 0x98, 0x63, 0xb8, 0x35, 0x38, 0x2b, 0x05, 0x57, 0xa0, 0x5f, 0x01, 0xfe, + 0x26, 0x75, 0x66, 0x46, 0x20, 0x8c, 0xd4, 0x26, 0xfa, 0xdc, 0xdd, 0xf1, 0x9b, 0xad, 0xb7, 0x69, + 0xdc, 0xb1, 0xd0, 0x33, 0xab, 0xfc, 0x04, 0xd5, 0xcb, 0xb7, 0xf3, 0x93, 0x39, 0x1e, 0xfe, 0xf2, + 0xd7, 0x65, 0x3f, 0xf8, 0xfb, 0xb2, 0x1f, 0xfc, 0x77, 0xd9, 0x0f, 0x7e, 0x8e, 0xc7, 0x1c, 0x2d, + 0xc2, 0x9e, 0x30, 0x10, 0x80, 0x43, 0x9e, 0xc0, 0x39, 0xe8, 0xf1, 0x70, 0x02, 0x2c, 0xc7, 0xc9, + 0xb9, 0xc4, 0x3d, 0x2e, 0xc6, 0x60, 0x70, 0x6f, 0x8a, 0x7c, 0x4f, 0x30, 0xe4, 0x17, 0x30, 0x54, + 0xd9, 0x78, 0x38, 0x45, 0x3e, 0x64, 0x29, 0x53, 0x08, 0xda, 0x0c, 0x7d, 0xfc, 0xa1, 0x49, 0x26, + 0x50, 0xb0, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xd0, 0xbb, 0xdf, 0xdc, 0x06, 0x00, 0x00, +} + +func (m *JunosKeyManagement) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKeyManagement) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKeyManagement) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IkeSecurityAssociations != nil { + { + size, err := m.IkeSecurityAssociations.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKmdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosKeyManagementIkeSecurityAssociationsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKeyManagementIkeSecurityAssociationsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKeyManagementIkeSecurityAssociationsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.IkeSecurityAssociation) > 0 { + for iNdEx := len(m.IkeSecurityAssociation) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IkeSecurityAssociation[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintKmdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RoutingInstance != nil { + i -= len(*m.RoutingInstance) + copy(dAtA[i:], *m.RoutingInstance) + i = encodeVarintKmdRender(dAtA, i, uint64(len(*m.RoutingInstance))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.InvalidSpiNotifyTransmitted != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.InvalidSpiNotifyTransmitted)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.InvalidSpiNotifyReceived != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.InvalidSpiNotifyReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.DpdResponseSeqPayloadMissed != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdResponseSeqPayloadMissed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.DpdResponsePayloadMaximumDelay != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdResponsePayloadMaximumDelay)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.DpdResponsePayloadMissed != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdResponsePayloadMissed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.DpdResponsePayloadTransmitted != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdResponsePayloadTransmitted)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.DpdResponsePayloadReceived != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdResponsePayloadReceived)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.DpdRequestPayloadTransmitted != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdRequestPayloadTransmitted)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.DpdRequestPayloadReceived != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DpdRequestPayloadReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.DeletePayloadTransmitted != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DeletePayloadTransmitted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DeletePayloadReceived != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.DeletePayloadReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutPackets != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.OutPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.OutBytes != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.OutBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.InPackets != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.InPackets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InBytes != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.InBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.ExchangeType != nil { + i -= len(*m.ExchangeType) + copy(dAtA[i:], *m.ExchangeType) + i = encodeVarintKmdRender(dAtA, i, uint64(len(*m.ExchangeType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.NumberIpsecSaRekey != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.NumberIpsecSaRekey)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NumberIpsecSaDeleted != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.NumberIpsecSaDeleted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.NumberIpsecSaCreated != nil { + i = encodeVarintKmdRender(dAtA, i, uint64(*m.NumberIpsecSaCreated)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.LocalIp != nil { + i -= len(*m.LocalIp) + copy(dAtA[i:], *m.LocalIp) + i = encodeVarintKmdRender(dAtA, i, uint64(len(*m.LocalIp))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.RemoteIp != nil { + i -= len(*m.RemoteIp) + copy(dAtA[i:], *m.RemoteIp) + i = encodeVarintKmdRender(dAtA, i, uint64(len(*m.RemoteIp))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintKmdRender(dAtA []byte, offset int, v uint64) int { + offset -= sovKmdRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosKeyManagement) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IkeSecurityAssociations != nil { + l = m.IkeSecurityAssociations.Size() + n += 2 + l + sovKmdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKeyManagementIkeSecurityAssociationsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.IkeSecurityAssociation) > 0 { + for _, e := range m.IkeSecurityAssociation { + l = e.Size() + n += 2 + l + sovKmdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteIp != nil { + l = len(*m.RemoteIp) + n += 2 + l + sovKmdRender(uint64(l)) + } + if m.LocalIp != nil { + l = len(*m.LocalIp) + n += 2 + l + sovKmdRender(uint64(l)) + } + if m.NumberIpsecSaCreated != nil { + n += 2 + sovKmdRender(uint64(*m.NumberIpsecSaCreated)) + } + if m.NumberIpsecSaDeleted != nil { + n += 2 + sovKmdRender(uint64(*m.NumberIpsecSaDeleted)) + } + if m.NumberIpsecSaRekey != nil { + n += 2 + sovKmdRender(uint64(*m.NumberIpsecSaRekey)) + } + if m.ExchangeType != nil { + l = len(*m.ExchangeType) + n += 2 + l + sovKmdRender(uint64(l)) + } + if m.InBytes != nil { + n += 2 + sovKmdRender(uint64(*m.InBytes)) + } + if m.InPackets != nil { + n += 2 + sovKmdRender(uint64(*m.InPackets)) + } + if m.OutBytes != nil { + n += 2 + sovKmdRender(uint64(*m.OutBytes)) + } + if m.OutPackets != nil { + n += 2 + sovKmdRender(uint64(*m.OutPackets)) + } + if m.DeletePayloadReceived != nil { + n += 2 + sovKmdRender(uint64(*m.DeletePayloadReceived)) + } + if m.DeletePayloadTransmitted != nil { + n += 2 + sovKmdRender(uint64(*m.DeletePayloadTransmitted)) + } + if m.DpdRequestPayloadReceived != nil { + n += 2 + sovKmdRender(uint64(*m.DpdRequestPayloadReceived)) + } + if m.DpdRequestPayloadTransmitted != nil { + n += 2 + sovKmdRender(uint64(*m.DpdRequestPayloadTransmitted)) + } + if m.DpdResponsePayloadReceived != nil { + n += 2 + sovKmdRender(uint64(*m.DpdResponsePayloadReceived)) + } + if m.DpdResponsePayloadTransmitted != nil { + n += 2 + sovKmdRender(uint64(*m.DpdResponsePayloadTransmitted)) + } + if m.DpdResponsePayloadMissed != nil { + n += 2 + sovKmdRender(uint64(*m.DpdResponsePayloadMissed)) + } + if m.DpdResponsePayloadMaximumDelay != nil { + n += 2 + sovKmdRender(uint64(*m.DpdResponsePayloadMaximumDelay)) + } + if m.DpdResponseSeqPayloadMissed != nil { + n += 2 + sovKmdRender(uint64(*m.DpdResponseSeqPayloadMissed)) + } + if m.InvalidSpiNotifyReceived != nil { + n += 2 + sovKmdRender(uint64(*m.InvalidSpiNotifyReceived)) + } + if m.InvalidSpiNotifyTransmitted != nil { + n += 2 + sovKmdRender(uint64(*m.InvalidSpiNotifyTransmitted)) + } + if m.RoutingInstance != nil { + l = len(*m.RoutingInstance) + n += 2 + l + sovKmdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovKmdRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozKmdRender(x uint64) (n int) { + return sovKmdRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosKeyManagement) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_key_management: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_key_management: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IkeSecurityAssociations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKmdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKmdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IkeSecurityAssociations == nil { + m.IkeSecurityAssociations = &JunosKeyManagementIkeSecurityAssociationsType{} + } + if err := m.IkeSecurityAssociations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKmdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKmdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKmdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKeyManagementIkeSecurityAssociationsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ike_security_associations_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ike_security_associations_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IkeSecurityAssociation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthKmdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthKmdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IkeSecurityAssociation = append(m.IkeSecurityAssociation, &JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList{}) + if err := m.IkeSecurityAssociation[len(m.IkeSecurityAssociation)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKmdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKmdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKmdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosKeyManagementIkeSecurityAssociationsTypeIkeSecurityAssociationList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ike_security_association_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ike_security_association_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKmdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKmdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteIp = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKmdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKmdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalIp = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberIpsecSaCreated", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumberIpsecSaCreated = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberIpsecSaDeleted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumberIpsecSaDeleted = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberIpsecSaRekey", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumberIpsecSaRekey = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExchangeType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKmdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKmdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExchangeType = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InBytes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InBytes = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPackets", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPackets = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutBytes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutBytes = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPackets", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPackets = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletePayloadReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeletePayloadReceived = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeletePayloadTransmitted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeletePayloadTransmitted = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdRequestPayloadReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdRequestPayloadReceived = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdRequestPayloadTransmitted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdRequestPayloadTransmitted = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdResponsePayloadReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdResponsePayloadReceived = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdResponsePayloadTransmitted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdResponsePayloadTransmitted = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdResponsePayloadMissed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdResponsePayloadMissed = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdResponsePayloadMaximumDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdResponsePayloadMaximumDelay = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DpdResponseSeqPayloadMissed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DpdResponseSeqPayloadMissed = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidSpiNotifyReceived", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidSpiNotifyReceived = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidSpiNotifyTransmitted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidSpiNotifyTransmitted = &v + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstance", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKmdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKmdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKmdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RoutingInstance = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipKmdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthKmdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthKmdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipKmdRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKmdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKmdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowKmdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthKmdRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupKmdRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthKmdRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthKmdRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKmdRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKmdRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/kmd_render.proto b/schema/kmd_render.proto new file mode 100755 index 0000000..0a2dade --- /dev/null +++ b/schema/kmd_render.proto @@ -0,0 +1,38 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_key_management jnpr_junos_key_management_ext = 48; +} + +message junos_key_management { + optional ike_security_associations_type ike_security_associations = 151; + message ike_security_associations_type { + message ike_security_association_list { + optional string remote_ip = 51; + optional string local_ip = 52; + optional uint32 number_ipsec_sa_created = 53; + optional uint32 number_ipsec_sa_deleted = 54; + optional uint32 number_ipsec_sa_rekey = 55; + optional string exchange_type = 56; + optional uint32 in_bytes = 57; + optional uint32 in_packets = 58; + optional uint32 out_bytes = 59; + optional uint32 out_packets = 60; + optional uint32 delete_payload_received = 61; + optional uint32 delete_payload_transmitted = 62; + optional uint32 dpd_request_payload_received = 63; + optional uint32 dpd_request_payload_transmitted = 64; + optional uint32 dpd_response_payload_received = 65; + optional uint32 dpd_response_payload_transmitted = 66; + optional uint32 dpd_response_payload_missed = 67; + optional uint32 dpd_response_payload_maximum_delay = 68; + optional uint32 dpd_response_seq_payload_missed = 69; + optional uint32 invalid_spi_notify_received = 70; + optional uint32 invalid_spi_notify_transmitted = 71; + optional string routing_instance = 72; + } + repeated ike_security_association_list ike_security_association = 151; + } +} diff --git a/schema/l2ald_bd_render.pb.go b/schema/l2ald_bd_render.pb.go new file mode 100644 index 0000000..3f0f503 --- /dev/null +++ b/schema/l2ald_bd_render.pb.go @@ -0,0 +1,1374 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: l2ald_bd_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesBridgeDomain struct { + NetworkInstance []*NetworkInstancesBridgeDomainNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesBridgeDomain) Reset() { *m = NetworkInstancesBridgeDomain{} } +func (m *NetworkInstancesBridgeDomain) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesBridgeDomain) ProtoMessage() {} +func (*NetworkInstancesBridgeDomain) Descriptor() ([]byte, []int) { + return fileDescriptor_90265904e384351a, []int{0} +} +func (m *NetworkInstancesBridgeDomain) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesBridgeDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesBridgeDomain.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesBridgeDomain) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesBridgeDomain.Merge(m, src) +} +func (m *NetworkInstancesBridgeDomain) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesBridgeDomain) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesBridgeDomain.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesBridgeDomain proto.InternalMessageInfo + +func (m *NetworkInstancesBridgeDomain) GetNetworkInstance() []*NetworkInstancesBridgeDomainNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesBridgeDomainNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Vlan []*NetworkInstancesBridgeDomainNetworkInstanceListVlanList `protobuf:"bytes,151,rep,name=vlan" json:"vlan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) Reset() { + *m = NetworkInstancesBridgeDomainNetworkInstanceList{} +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesBridgeDomainNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesBridgeDomainNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_90265904e384351a, []int{0, 0} +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) GetVlan() []*NetworkInstancesBridgeDomainNetworkInstanceListVlanList { + if m != nil { + return m.Vlan + } + return nil +} + +type NetworkInstancesBridgeDomainNetworkInstanceListVlanList struct { + VlanName *string `protobuf:"bytes,51,opt,name=vlan_name,json=vlanName" json:"vlan_name,omitempty"` + VlanId *uint32 `protobuf:"varint,52,opt,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"` + Status *string `protobuf:"bytes,53,opt,name=status" json:"status,omitempty"` + Vni *uint32 `protobuf:"varint,54,opt,name=vni" json:"vni,omitempty"` + L3Interface *string `protobuf:"bytes,55,opt,name=l3_interface,json=l3Interface" json:"l3_interface,omitempty"` + NumLocalMacEntries *uint32 `protobuf:"varint,56,opt,name=num_local_mac_entries,json=numLocalMacEntries" json:"num_local_mac_entries,omitempty"` + NumArReplicatorEntries *uint32 `protobuf:"varint,57,opt,name=num_ar_replicator_entries,json=numArReplicatorEntries" json:"num_ar_replicator_entries,omitempty"` + EthernetTagId *uint32 `protobuf:"varint,58,opt,name=ethernet_tag_id,json=ethernetTagId" json:"ethernet_tag_id,omitempty"` + Member []*NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList `protobuf:"bytes,161,rep,name=member" json:"member,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) Reset() { + *m = NetworkInstancesBridgeDomainNetworkInstanceListVlanList{} +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesBridgeDomainNetworkInstanceListVlanList) ProtoMessage() {} +func (*NetworkInstancesBridgeDomainNetworkInstanceListVlanList) Descriptor() ([]byte, []int) { + return fileDescriptor_90265904e384351a, []int{0, 0, 0} +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanList.Merge(m, src) +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanList proto.InternalMessageInfo + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetVlanName() string { + if m != nil && m.VlanName != nil { + return *m.VlanName + } + return "" +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetVlanId() uint32 { + if m != nil && m.VlanId != nil { + return *m.VlanId + } + return 0 +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetVni() uint32 { + if m != nil && m.Vni != nil { + return *m.Vni + } + return 0 +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetL3Interface() string { + if m != nil && m.L3Interface != nil { + return *m.L3Interface + } + return "" +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetNumLocalMacEntries() uint32 { + if m != nil && m.NumLocalMacEntries != nil { + return *m.NumLocalMacEntries + } + return 0 +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetNumArReplicatorEntries() uint32 { + if m != nil && m.NumArReplicatorEntries != nil { + return *m.NumArReplicatorEntries + } + return 0 +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetEthernetTagId() uint32 { + if m != nil && m.EthernetTagId != nil { + return *m.EthernetTagId + } + return 0 +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) GetMember() []*NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList { + if m != nil { + return m.Member + } + return nil +} + +type NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList struct { + Interface *string `protobuf:"bytes,61,opt,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) Reset() { + *m = NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList{} +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) ProtoMessage() {} +func (*NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) Descriptor() ([]byte, []int) { + return fileDescriptor_90265904e384351a, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList.Merge(m, src) +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList proto.InternalMessageInfo + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +var E_JnprNetworkInstancesBridgeDomainExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesBridgeDomain)(nil), + Field: 115, + Name: "jnpr_network_instances_bridge_domain_ext", + Tag: "bytes,115,opt,name=jnpr_network_instances_bridge_domain_ext", + Filename: "l2ald_bd_render.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesBridgeDomain)(nil), "network_instances_bridge_domain") + proto.RegisterType((*NetworkInstancesBridgeDomainNetworkInstanceList)(nil), "network_instances_bridge_domain.network_instance_list") + proto.RegisterType((*NetworkInstancesBridgeDomainNetworkInstanceListVlanList)(nil), "network_instances_bridge_domain.network_instance_list.vlan_list") + proto.RegisterType((*NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList)(nil), "network_instances_bridge_domain.network_instance_list.vlan_list.member_list") + proto.RegisterExtension(E_JnprNetworkInstancesBridgeDomainExt) +} + +func init() { proto.RegisterFile("l2ald_bd_render.proto", fileDescriptor_90265904e384351a) } + +var fileDescriptor_90265904e384351a = []byte{ + // 542 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x41, 0x6f, 0xd3, 0x3e, + 0x18, 0xc6, 0x95, 0xff, 0xba, 0xfe, 0x57, 0x97, 0x69, 0x93, 0x51, 0xb7, 0xac, 0x42, 0xa5, 0x0c, + 0x09, 0x55, 0x42, 0x4d, 0x44, 0x0b, 0x83, 0x4d, 0x42, 0x1a, 0x15, 0x3b, 0x14, 0x8d, 0x1e, 0x02, + 0x5c, 0xb8, 0x18, 0x27, 0x79, 0x49, 0xdd, 0x25, 0x4e, 0x64, 0xbf, 0x29, 0xe3, 0xca, 0x27, 0xe0, + 0xc6, 0x99, 0x4f, 0xc2, 0x15, 0x89, 0x0b, 0x12, 0x5f, 0x00, 0xf5, 0x93, 0xa0, 0x38, 0x6d, 0x07, + 0x0c, 0xa9, 0x12, 0xdc, 0xe2, 0xdf, 0xfb, 0x3c, 0x8f, 0x1f, 0xdb, 0x21, 0x8d, 0xb8, 0xc7, 0xe3, + 0x90, 0xf9, 0x21, 0x53, 0x20, 0x43, 0x50, 0x4e, 0xa6, 0x52, 0x4c, 0x9b, 0x57, 0x11, 0x62, 0x48, + 0x00, 0xd5, 0x5b, 0x86, 0x69, 0x56, 0xc2, 0xfd, 0x6f, 0xeb, 0xe4, 0xba, 0x04, 0x7c, 0x93, 0xaa, + 0x33, 0x26, 0xa4, 0x46, 0x2e, 0x03, 0xd0, 0xcc, 0x57, 0x22, 0x8c, 0x80, 0x85, 0x69, 0xc2, 0x85, + 0xa4, 0x3e, 0xd9, 0xfe, 0x5d, 0x62, 0x7f, 0xb0, 0xda, 0x6b, 0x9d, 0x7a, 0xef, 0xc0, 0x59, 0x61, + 0xbe, 0x34, 0x67, 0xb1, 0xd0, 0xe8, 0x6d, 0xcd, 0xf1, 0x70, 0x4e, 0x9b, 0x5f, 0x2a, 0xa4, 0xf1, + 0x47, 0x29, 0xdd, 0x23, 0x15, 0xc9, 0x13, 0xb0, 0xfb, 0x6d, 0xab, 0x53, 0x1b, 0xac, 0xbf, 0x3b, + 0xfe, 0x6f, 0xc3, 0xf2, 0x0c, 0xa2, 0x2f, 0x48, 0x65, 0x1a, 0x73, 0xb9, 0x28, 0x73, 0xfc, 0x77, + 0x65, 0x9c, 0x22, 0xa3, 0xac, 0x65, 0xe2, 0x9a, 0x9f, 0xd6, 0x48, 0x6d, 0xc9, 0xe8, 0xfe, 0x7c, + 0x71, 0xb9, 0xc4, 0x46, 0xc1, 0x47, 0x45, 0x91, 0x5d, 0xf2, 0xbf, 0xd1, 0x88, 0xd0, 0xbe, 0xdb, + 0xb6, 0x3a, 0x9b, 0x5e, 0xb5, 0x58, 0x0e, 0x43, 0xba, 0x43, 0xaa, 0x1a, 0x39, 0xe6, 0xda, 0xbe, + 0x57, 0x38, 0xbd, 0xf9, 0x8a, 0x6e, 0x93, 0xb5, 0xa9, 0x14, 0xf6, 0x81, 0x11, 0x17, 0x9f, 0xf4, + 0x06, 0xb9, 0x12, 0xf7, 0x99, 0x90, 0x08, 0xea, 0x35, 0x0f, 0xc0, 0xbe, 0x6f, 0xf4, 0xf5, 0xb8, + 0x3f, 0x5c, 0x20, 0x7a, 0x87, 0x34, 0x64, 0x9e, 0xb0, 0x38, 0x0d, 0x78, 0xcc, 0x12, 0x1e, 0x30, + 0x90, 0xa8, 0x04, 0x68, 0xfb, 0x81, 0x89, 0xa1, 0x32, 0x4f, 0x4e, 0x8b, 0xd9, 0x53, 0x1e, 0x9c, + 0x94, 0x13, 0x7a, 0x48, 0xf6, 0x0a, 0x0b, 0x57, 0x4c, 0x41, 0x16, 0x8b, 0x80, 0x63, 0xaa, 0x96, + 0xb6, 0x43, 0x63, 0xdb, 0x91, 0x79, 0xf2, 0x48, 0x79, 0xcb, 0xf1, 0xc2, 0x7a, 0x8b, 0x6c, 0x01, + 0x8e, 0x41, 0x49, 0x40, 0x86, 0x3c, 0x2a, 0xce, 0x76, 0x64, 0x0c, 0x9b, 0x0b, 0xfc, 0x9c, 0x47, + 0xc3, 0x90, 0x02, 0xa9, 0x26, 0x90, 0xf8, 0xa0, 0xec, 0x8f, 0xe5, 0x33, 0x9c, 0xfe, 0xeb, 0x33, + 0x38, 0x65, 0x5e, 0xf9, 0x24, 0xf3, 0xf0, 0xe6, 0x6d, 0x52, 0xff, 0x09, 0xd3, 0x6b, 0xa4, 0x76, + 0x71, 0x57, 0x0f, 0xcd, 0x5d, 0x5d, 0x80, 0xa3, 0xf7, 0x16, 0xe9, 0x4c, 0x64, 0xa6, 0xd8, 0x8a, + 0x26, 0x0c, 0xce, 0x91, 0xee, 0x3a, 0x4f, 0x72, 0x29, 0x32, 0x50, 0xa3, 0x52, 0xac, 0x9f, 0x81, + 0xd4, 0xa9, 0xd2, 0xb6, 0x6e, 0x5b, 0x9d, 0x7a, 0xaf, 0xbd, 0xea, 0x38, 0xde, 0xcd, 0x62, 0xab, + 0xd1, 0xaf, 0x3f, 0xb4, 0x1e, 0x18, 0xc9, 0x63, 0xa3, 0x38, 0x39, 0xc7, 0xc1, 0xab, 0xcf, 0xb3, + 0x96, 0xf5, 0x75, 0xd6, 0xb2, 0xbe, 0xcf, 0x5a, 0xd6, 0x4b, 0x2f, 0x12, 0xe8, 0x4c, 0xca, 0x6d, + 0x8b, 0x7c, 0x57, 0x04, 0xe0, 0x83, 0x8a, 0xdc, 0x31, 0xf0, 0x18, 0xc7, 0x7e, 0x8a, 0x5d, 0x21, + 0x23, 0xd0, 0xd8, 0x9d, 0xa0, 0xe8, 0x4a, 0x8e, 0x62, 0x0a, 0x6e, 0x76, 0x16, 0xb9, 0x13, 0x14, + 0x2e, 0x0f, 0x79, 0x86, 0xa0, 0xb4, 0xcb, 0x26, 0xb9, 0x4c, 0xb5, 0xab, 0x83, 0x31, 0x24, 0xfc, + 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x50, 0x2a, 0xd0, 0xf7, 0x03, 0x00, 0x00, +} + +func (m *NetworkInstancesBridgeDomain) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesBridgeDomain) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesBridgeDomain) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldBdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Vlan) > 0 { + for iNdEx := len(m.Vlan) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Vlan[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldBdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2AldBdRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Member) > 0 { + for iNdEx := len(m.Member) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Member[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldBdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + } + if m.EthernetTagId != nil { + i = encodeVarintL2AldBdRender(dAtA, i, uint64(*m.EthernetTagId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.NumArReplicatorEntries != nil { + i = encodeVarintL2AldBdRender(dAtA, i, uint64(*m.NumArReplicatorEntries)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.NumLocalMacEntries != nil { + i = encodeVarintL2AldBdRender(dAtA, i, uint64(*m.NumLocalMacEntries)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.L3Interface != nil { + i -= len(*m.L3Interface) + copy(dAtA[i:], *m.L3Interface) + i = encodeVarintL2AldBdRender(dAtA, i, uint64(len(*m.L3Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Vni != nil { + i = encodeVarintL2AldBdRender(dAtA, i, uint64(*m.Vni)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintL2AldBdRender(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.VlanId != nil { + i = encodeVarintL2AldBdRender(dAtA, i, uint64(*m.VlanId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.VlanName != nil { + i -= len(*m.VlanName) + copy(dAtA[i:], *m.VlanName) + i = encodeVarintL2AldBdRender(dAtA, i, uint64(len(*m.VlanName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintL2AldBdRender(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func encodeVarintL2AldBdRender(dAtA []byte, offset int, v uint64) int { + offset -= sovL2AldBdRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesBridgeDomain) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + if len(m.Vlan) > 0 { + for _, e := range m.Vlan { + l = e.Size() + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VlanName != nil { + l = len(*m.VlanName) + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + if m.VlanId != nil { + n += 2 + sovL2AldBdRender(uint64(*m.VlanId)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + if m.Vni != nil { + n += 2 + sovL2AldBdRender(uint64(*m.Vni)) + } + if m.L3Interface != nil { + l = len(*m.L3Interface) + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + if m.NumLocalMacEntries != nil { + n += 2 + sovL2AldBdRender(uint64(*m.NumLocalMacEntries)) + } + if m.NumArReplicatorEntries != nil { + n += 2 + sovL2AldBdRender(uint64(*m.NumArReplicatorEntries)) + } + if m.EthernetTagId != nil { + n += 2 + sovL2AldBdRender(uint64(*m.EthernetTagId)) + } + if len(m.Member) > 0 { + for _, e := range m.Member { + l = e.Size() + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovL2AldBdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovL2AldBdRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozL2AldBdRender(x uint64) (n int) { + return sovL2AldBdRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesBridgeDomain) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_bridge_domain: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_bridge_domain: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesBridgeDomainNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldBdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Vlan = append(m.Vlan, &NetworkInstancesBridgeDomainNetworkInstanceListVlanList{}) + if err := m.Vlan[len(m.Vlan)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldBdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vlan_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vlan_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VlanName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanId = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Vni", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Vni = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.L3Interface = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumLocalMacEntries", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumLocalMacEntries = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumArReplicatorEntries", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumArReplicatorEntries = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetTagId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EthernetTagId = &v + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Member = append(m.Member, &NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList{}) + if err := m.Member[len(m.Member)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldBdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesBridgeDomainNetworkInstanceListVlanListMemberList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: member_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: member_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldBdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldBdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldBdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldBdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipL2AldBdRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldBdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthL2AldBdRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupL2AldBdRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthL2AldBdRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthL2AldBdRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowL2AldBdRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupL2AldBdRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/l2ald_bd_render.proto b/schema/l2ald_bd_render.proto new file mode 100755 index 0000000..f242b98 --- /dev/null +++ b/schema/l2ald_bd_render.proto @@ -0,0 +1,29 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_bridge_domain jnpr_network_instances_bridge_domain_ext = 115; +} + +message network_instances_bridge_domain { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + message vlan_list { + optional string vlan_name = 51 [(telemetry_options).is_key = true]; + optional uint32 vlan_id = 52; + optional string status = 53; + optional uint32 vni = 54; + optional string l3_interface = 55; + optional uint32 num_local_mac_entries = 56; + optional uint32 num_ar_replicator_entries = 57; + optional uint32 ethernet_tag_id = 58; + message member_list { + optional string interface = 61; + } + repeated member_list member = 161; + } + repeated vlan_list vlan = 151; + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/l2ald_evpn_render.pb.go b/schema/l2ald_evpn_render.pb.go new file mode 100644 index 0000000..6c6b167 --- /dev/null +++ b/schema/l2ald_evpn_render.pb.go @@ -0,0 +1,1729 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: l2ald_evpn_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesL2Evpn struct { + NetworkInstance []*NetworkInstancesL2EvpnNetworkInstanceList `protobuf:"bytes,161,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesL2Evpn) Reset() { *m = NetworkInstancesL2Evpn{} } +func (m *NetworkInstancesL2Evpn) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesL2Evpn) ProtoMessage() {} +func (*NetworkInstancesL2Evpn) Descriptor() ([]byte, []int) { + return fileDescriptor_68cd9c60450fccb8, []int{0} +} +func (m *NetworkInstancesL2Evpn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesL2Evpn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesL2Evpn.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesL2Evpn) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesL2Evpn.Merge(m, src) +} +func (m *NetworkInstancesL2Evpn) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesL2Evpn) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesL2Evpn.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesL2Evpn proto.InternalMessageInfo + +func (m *NetworkInstancesL2Evpn) GetNetworkInstance() []*NetworkInstancesL2EvpnNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesL2EvpnNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Protocols *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType `protobuf:"bytes,151,opt,name=protocols" json:"protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) Reset() { + *m = NetworkInstancesL2EvpnNetworkInstanceList{} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesL2EvpnNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesL2EvpnNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_68cd9c60450fccb8, []int{0, 0} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) GetProtocols() *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType { + if m != nil { + return m.Protocols + } + return nil +} + +type NetworkInstancesL2EvpnNetworkInstanceListProtocolsType struct { + Protocol *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType `protobuf:"bytes,151,opt,name=protocol" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) Reset() { + *m = NetworkInstancesL2EvpnNetworkInstanceListProtocolsType{} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) ProtoMessage() {} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_68cd9c60450fccb8, []int{0, 0, 0} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsType.Merge(m, src) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) GetProtocol() *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType { + if m != nil { + return m.Protocol + } + return nil +} + +type NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType struct { + Evpn *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType `protobuf:"bytes,151,opt,name=evpn" json:"evpn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) Reset() { + *m = NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType{} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) ProtoMessage() {} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) Descriptor() ([]byte, []int) { + return fileDescriptor_68cd9c60450fccb8, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType.Merge(m, src) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType proto.InternalMessageInfo + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) GetEvpn() *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType { + if m != nil { + return m.Evpn + } + return nil +} + +type NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType struct { + VxlanTunnelEndPoint []*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList `protobuf:"bytes,152,rep,name=vxlan_tunnel_end_point,json=vxlanTunnelEndPoint" json:"vxlan_tunnel_end_point,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Reset() { + *m = NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType{} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) ProtoMessage() {} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Descriptor() ([]byte, []int) { + return fileDescriptor_68cd9c60450fccb8, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType.Merge(m, src) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType proto.InternalMessageInfo + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetVxlanTunnelEndPoint() []*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList { + if m != nil { + return m.VxlanTunnelEndPoint + } + return nil +} + +type NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList struct { + SourceIpAddress *string `protobuf:"bytes,51,opt,name=source_ip_address,json=sourceIpAddress" json:"source_ip_address,omitempty"` + RemoteIpAddress *string `protobuf:"bytes,52,opt,name=remote_ip_address,json=remoteIpAddress" json:"remote_ip_address,omitempty"` + Status *string `protobuf:"bytes,53,opt,name=status" json:"status,omitempty"` + Mode *string `protobuf:"bytes,54,opt,name=mode" json:"mode,omitempty"` + NexthopIndex *uint32 `protobuf:"varint,55,opt,name=nexthop_index,json=nexthopIndex" json:"nexthop_index,omitempty"` + SourceInterface *string `protobuf:"bytes,56,opt,name=source_interface,json=sourceInterface" json:"source_interface,omitempty"` + EventType *string `protobuf:"bytes,57,opt,name=event_type,json=eventType" json:"event_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) Reset() { + *m = NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList{} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) ProtoMessage() { +} +func (*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) Descriptor() ([]byte, []int) { + return fileDescriptor_68cd9c60450fccb8, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList.Merge(m, src) +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList proto.InternalMessageInfo + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetSourceIpAddress() string { + if m != nil && m.SourceIpAddress != nil { + return *m.SourceIpAddress + } + return "" +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetRemoteIpAddress() string { + if m != nil && m.RemoteIpAddress != nil { + return *m.RemoteIpAddress + } + return "" +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetMode() string { + if m != nil && m.Mode != nil { + return *m.Mode + } + return "" +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetNexthopIndex() uint32 { + if m != nil && m.NexthopIndex != nil { + return *m.NexthopIndex + } + return 0 +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetSourceInterface() string { + if m != nil && m.SourceInterface != nil { + return *m.SourceInterface + } + return "" +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) GetEventType() string { + if m != nil && m.EventType != nil { + return *m.EventType + } + return "" +} + +var E_JnprNetworkInstancesL2EvpnExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesL2Evpn)(nil), + Field: 116, + Name: "jnpr_network_instances_l2evpn_ext", + Tag: "bytes,116,opt,name=jnpr_network_instances_l2evpn_ext", + Filename: "l2ald_evpn_render.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesL2Evpn)(nil), "network_instances_l2evpn") + proto.RegisterType((*NetworkInstancesL2EvpnNetworkInstanceList)(nil), "network_instances_l2evpn.network_instance_list") + proto.RegisterType((*NetworkInstancesL2EvpnNetworkInstanceListProtocolsType)(nil), "network_instances_l2evpn.network_instance_list.protocols_type") + proto.RegisterType((*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType)(nil), "network_instances_l2evpn.network_instance_list.protocols_type.protocol_type") + proto.RegisterType((*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType)(nil), "network_instances_l2evpn.network_instance_list.protocols_type.protocol_type.evpn_type") + proto.RegisterType((*NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList)(nil), "network_instances_l2evpn.network_instance_list.protocols_type.protocol_type.evpn_type.vxlan_tunnel_end_point_list") + proto.RegisterExtension(E_JnprNetworkInstancesL2EvpnExt) +} + +func init() { proto.RegisterFile("l2ald_evpn_render.proto", fileDescriptor_68cd9c60450fccb8) } + +var fileDescriptor_68cd9c60450fccb8 = []byte{ + // 567 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x4f, 0x13, 0x41, + 0x14, 0xc7, 0xb3, 0x50, 0x90, 0x0e, 0x22, 0x30, 0x44, 0x58, 0xd6, 0x40, 0xaa, 0x5e, 0xaa, 0x09, + 0xbb, 0xb1, 0xfe, 0xf6, 0x60, 0x94, 0x84, 0x03, 0x86, 0x10, 0xb3, 0x12, 0x0f, 0x1a, 0x33, 0x0e, + 0xbb, 0xcf, 0x76, 0xca, 0x76, 0x66, 0x32, 0xf3, 0x5a, 0x4b, 0xe2, 0xc9, 0x7f, 0x02, 0xaf, 0xde, + 0xfc, 0x53, 0xbc, 0x18, 0xb9, 0x7b, 0xd1, 0xfe, 0x25, 0x66, 0x67, 0xdb, 0x62, 0x95, 0x9a, 0x18, + 0xf5, 0xb6, 0xf3, 0xf9, 0xbe, 0xf7, 0xfd, 0xbe, 0xec, 0xbc, 0x21, 0x2b, 0x59, 0x8d, 0x67, 0x29, + 0x83, 0x8e, 0x96, 0xcc, 0x80, 0x4c, 0xc1, 0x84, 0xda, 0x28, 0x54, 0xc1, 0x12, 0x42, 0x06, 0x2d, + 0x40, 0x73, 0xc8, 0x50, 0xe9, 0x02, 0x5e, 0xfa, 0x72, 0x86, 0xf8, 0x12, 0xf0, 0xb5, 0x32, 0x07, + 0x4c, 0x48, 0x8b, 0x5c, 0x26, 0x60, 0x59, 0x56, 0xcb, 0xdb, 0xe9, 0x73, 0xb2, 0xf0, 0xb3, 0xe6, + 0xbf, 0xf7, 0x2a, 0x93, 0xd5, 0xd9, 0x5a, 0x14, 0x8e, 0xeb, 0xfa, 0x45, 0x60, 0x99, 0xb0, 0x18, + 0xcf, 0xf7, 0xf1, 0x76, 0x9f, 0x06, 0xdf, 0xa6, 0xc9, 0xf9, 0x53, 0x4b, 0xe9, 0x2a, 0x29, 0x49, + 0xde, 0x02, 0xff, 0x7a, 0xc5, 0xab, 0x96, 0x37, 0xa7, 0xde, 0x3e, 0x98, 0x98, 0xf1, 0x62, 0x87, + 0xe8, 0x0b, 0x52, 0x76, 0x73, 0x27, 0x2a, 0xb3, 0xfe, 0x91, 0x57, 0xf1, 0xaa, 0xb3, 0xb5, 0xfb, + 0x7f, 0x38, 0x4a, 0x38, 0x74, 0x60, 0x78, 0xa8, 0x21, 0x3e, 0x71, 0x0c, 0x3e, 0x4d, 0x91, 0x73, + 0xa3, 0x2a, 0x15, 0x64, 0x66, 0x40, 0x06, 0x81, 0x3b, 0x7f, 0x17, 0x38, 0x3c, 0x16, 0xf1, 0x43, + 0xfb, 0xe0, 0x73, 0x89, 0xcc, 0x8d, 0x68, 0xf4, 0x80, 0x94, 0x72, 0xdb, 0x41, 0xf0, 0xd3, 0x7f, + 0x19, 0x1c, 0xba, 0x0d, 0x71, 0x23, 0xb8, 0x90, 0xe0, 0x78, 0x92, 0x94, 0x87, 0x8c, 0x7e, 0xf0, + 0xc8, 0x72, 0xa7, 0x9b, 0x71, 0xc9, 0xb0, 0x2d, 0x25, 0x64, 0x0c, 0x64, 0xca, 0xb4, 0x12, 0x12, + 0xfd, 0x77, 0xc5, 0x0a, 0x98, 0xff, 0x33, 0x4d, 0x78, 0x7a, 0x6a, 0xb1, 0x45, 0x4b, 0x4e, 0xdc, + 0x73, 0xda, 0x96, 0x4c, 0x1f, 0xe7, 0x4a, 0x70, 0x34, 0x41, 0x2e, 0xfc, 0xa6, 0x89, 0x5e, 0x25, + 0x8b, 0x56, 0xb5, 0x4d, 0x02, 0x4c, 0x68, 0xc6, 0xd3, 0xd4, 0x80, 0xb5, 0xc5, 0x72, 0xc5, 0xf3, + 0x85, 0xb0, 0xad, 0x1f, 0x16, 0x98, 0x5e, 0x23, 0x8b, 0x06, 0x5a, 0x0a, 0x47, 0x6a, 0x6f, 0xfc, + 0xb8, 0x88, 0xf3, 0x85, 0x7e, 0xd2, 0xb2, 0x4c, 0xa6, 0x2d, 0x72, 0x6c, 0x5b, 0xff, 0xa6, 0xf3, + 0xec, 0x9f, 0x28, 0x25, 0xa5, 0x96, 0x4a, 0xc1, 0xbf, 0xe5, 0xa8, 0xfb, 0xa6, 0x97, 0xc9, 0x9c, + 0x84, 0x2e, 0x36, 0x94, 0x66, 0x42, 0xa6, 0xd0, 0xf5, 0x6f, 0x57, 0xbc, 0xea, 0x5c, 0x7c, 0xb6, + 0x0f, 0xb7, 0x73, 0x46, 0xaf, 0x90, 0x85, 0xc1, 0xbc, 0x12, 0xc1, 0xbc, 0xe2, 0x09, 0xf8, 0x77, + 0x46, 0xc6, 0x1d, 0x60, 0xba, 0x46, 0x08, 0x74, 0x40, 0xa2, 0xfb, 0x73, 0xfe, 0x5d, 0x57, 0x54, + 0x76, 0x64, 0xef, 0x50, 0xc3, 0xbd, 0x37, 0xe4, 0x62, 0x53, 0x6a, 0xc3, 0xc6, 0x5d, 0x14, 0x83, + 0x2e, 0xd2, 0x95, 0xf0, 0x51, 0x5b, 0x0a, 0x0d, 0x66, 0xb7, 0xa8, 0xb2, 0x4f, 0x40, 0x5a, 0x65, + 0xac, 0x8f, 0x6e, 0xe9, 0x56, 0xc7, 0x5e, 0x73, 0xbc, 0x96, 0x9b, 0xef, 0x8e, 0xbe, 0x6b, 0xbb, + 0xe3, 0xb4, 0xad, 0x2e, 0x6e, 0xbe, 0xfc, 0xd8, 0x5b, 0xf7, 0x8e, 0x7b, 0xeb, 0xde, 0xd7, 0xde, + 0xba, 0xf7, 0x2c, 0xae, 0x0b, 0x0c, 0x9b, 0x45, 0x52, 0x6e, 0x19, 0x89, 0x04, 0xf6, 0xc1, 0xd4, + 0xa3, 0x06, 0xf0, 0x0c, 0x1b, 0xfb, 0x0a, 0x37, 0x84, 0xac, 0x83, 0xc5, 0x8d, 0x26, 0x8a, 0x0d, + 0xc9, 0x51, 0x74, 0x20, 0xd2, 0x07, 0xf5, 0xa8, 0x89, 0x22, 0xe2, 0x29, 0xd7, 0x08, 0xc6, 0x46, + 0xac, 0xd9, 0x96, 0xca, 0x46, 0x36, 0x69, 0x40, 0x8b, 0x7f, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x30, + 0xfb, 0x8f, 0x27, 0xec, 0x04, 0x00, 0x00, +} + +func (m *NetworkInstancesL2Evpn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesL2Evpn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesL2Evpn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocols != nil { + { + size, err := m.Protocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocol != nil { + { + size, err := m.Protocol.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Evpn != nil { + { + size, err := m.Evpn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.VxlanTunnelEndPoint) > 0 { + for iNdEx := len(m.VxlanTunnelEndPoint) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VxlanTunnelEndPoint[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EventType != nil { + i -= len(*m.EventType) + copy(dAtA[i:], *m.EventType) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.EventType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SourceInterface != nil { + i -= len(*m.SourceInterface) + copy(dAtA[i:], *m.SourceInterface) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.SourceInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.NexthopIndex != nil { + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(*m.NexthopIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Mode != nil { + i -= len(*m.Mode) + copy(dAtA[i:], *m.Mode) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.Mode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.RemoteIpAddress != nil { + i -= len(*m.RemoteIpAddress) + copy(dAtA[i:], *m.RemoteIpAddress) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.RemoteIpAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.SourceIpAddress != nil { + i -= len(*m.SourceIpAddress) + copy(dAtA[i:], *m.SourceIpAddress) + i = encodeVarintL2AldEvpnRender(dAtA, i, uint64(len(*m.SourceIpAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintL2AldEvpnRender(dAtA []byte, offset int, v uint64) int { + offset -= sovL2AldEvpnRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesL2Evpn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.Protocols != nil { + l = m.Protocols.Size() + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = m.Protocol.Size() + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Evpn != nil { + l = m.Evpn.Size() + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.VxlanTunnelEndPoint) > 0 { + for _, e := range m.VxlanTunnelEndPoint { + l = e.Size() + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SourceIpAddress != nil { + l = len(*m.SourceIpAddress) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.RemoteIpAddress != nil { + l = len(*m.RemoteIpAddress) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.Mode != nil { + l = len(*m.Mode) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.NexthopIndex != nil { + n += 2 + sovL2AldEvpnRender(uint64(*m.NexthopIndex)) + } + if m.SourceInterface != nil { + l = len(*m.SourceInterface) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.EventType != nil { + l = len(*m.EventType) + n += 2 + l + sovL2AldEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovL2AldEvpnRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozL2AldEvpnRender(x uint64) (n int) { + return sovL2AldEvpnRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesL2Evpn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_l2evpn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_l2evpn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesL2EvpnNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesL2EvpnNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocols == nil { + m.Protocols = &NetworkInstancesL2EvpnNetworkInstanceListProtocolsType{} + } + if err := m.Protocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocol == nil { + m.Protocol = &NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType{} + } + if err := m.Protocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Evpn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Evpn == nil { + m.Evpn = &NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType{} + } + if err := m.Evpn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: evpn_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: evpn_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VxlanTunnelEndPoint", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VxlanTunnelEndPoint = append(m.VxlanTunnelEndPoint, &NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList{}) + if err := m.VxlanTunnelEndPoint[len(m.VxlanTunnelEndPoint)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesL2EvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeVxlanTunnelEndPointList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vxlan_tunnel_end_point_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vxlan_tunnel_end_point_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceIpAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SourceIpAddress = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteIpAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteIpAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Mode = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopIndex = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SourceInterface = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EventType = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipL2AldEvpnRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldEvpnRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthL2AldEvpnRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupL2AldEvpnRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthL2AldEvpnRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthL2AldEvpnRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowL2AldEvpnRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupL2AldEvpnRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/l2ald_evpn_render.proto b/schema/l2ald_evpn_render.proto new file mode 100755 index 0000000..2c33eb4 --- /dev/null +++ b/schema/l2ald_evpn_render.proto @@ -0,0 +1,33 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_l2evpn jnpr_network_instances_l2evpn_ext = 116; +} + +message network_instances_l2evpn { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional protocols_type protocols = 151; + message protocols_type { + optional protocol_type protocol = 151; + message protocol_type { + optional evpn_type evpn = 151; + message evpn_type { + message vxlan_tunnel_end_point_list { + optional string source_ip_address = 51; + optional string remote_ip_address = 52 [(telemetry_options).is_key = true]; + optional string status = 53; + optional string mode = 54; + optional uint32 nexthop_index = 55; + optional string source_interface = 56; + optional string event_type = 57; + } + repeated vxlan_tunnel_end_point_list vxlan_tunnel_end_point = 152; + } + } + } + } + repeated network_instance_list network_instance = 161; +} diff --git a/schema/l2ald_fdb_render.pb.go b/schema/l2ald_fdb_render.pb.go new file mode 100644 index 0000000..5350389 --- /dev/null +++ b/schema/l2ald_fdb_render.pb.go @@ -0,0 +1,3414 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: l2ald_fdb_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesFdb struct { + NetworkInstance []*NetworkInstancesFdbNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdb) Reset() { *m = NetworkInstancesFdb{} } +func (m *NetworkInstancesFdb) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesFdb) ProtoMessage() {} +func (*NetworkInstancesFdb) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0} +} +func (m *NetworkInstancesFdb) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdb.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdb) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdb.Merge(m, src) +} +func (m *NetworkInstancesFdb) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdb) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdb.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdb proto.InternalMessageInfo + +func (m *NetworkInstancesFdb) GetNetworkInstance() []*NetworkInstancesFdbNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesFdbNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + MacTableInfo *NetworkInstancesFdbNetworkInstanceListMacTableInfoType `protobuf:"bytes,171,opt,name=mac_table_info,json=macTableInfo" json:"mac_table_info,omitempty"` + MacTable *NetworkInstancesFdbNetworkInstanceListMacTableType `protobuf:"bytes,151,opt,name=mac_table,json=macTable" json:"mac_table,omitempty"` + MacipTableInfo *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType `protobuf:"bytes,181,opt,name=macip_table_info,json=macipTableInfo" json:"macip_table_info,omitempty"` + MacipTable *NetworkInstancesFdbNetworkInstanceListMacipTableType `protobuf:"bytes,161,opt,name=macip_table,json=macipTable" json:"macip_table,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceList) Reset() { + *m = NetworkInstancesFdbNetworkInstanceList{} +} +func (m *NetworkInstancesFdbNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesFdbNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0} +} +func (m *NetworkInstancesFdbNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceList) GetMacTableInfo() *NetworkInstancesFdbNetworkInstanceListMacTableInfoType { + if m != nil { + return m.MacTableInfo + } + return nil +} + +func (m *NetworkInstancesFdbNetworkInstanceList) GetMacTable() *NetworkInstancesFdbNetworkInstanceListMacTableType { + if m != nil { + return m.MacTable + } + return nil +} + +func (m *NetworkInstancesFdbNetworkInstanceList) GetMacipTableInfo() *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType { + if m != nil { + return m.MacipTableInfo + } + return nil +} + +func (m *NetworkInstancesFdbNetworkInstanceList) GetMacipTable() *NetworkInstancesFdbNetworkInstanceListMacipTableType { + if m != nil { + return m.MacipTable + } + return nil +} + +type NetworkInstancesFdbNetworkInstanceListMacTableInfoType struct { + Learning *bool `protobuf:"varint,71,opt,name=learning" json:"learning,omitempty"` + AgingTime *uint32 `protobuf:"varint,72,opt,name=aging_time,json=agingTime" json:"aging_time,omitempty"` + TableSize *uint32 `protobuf:"varint,73,opt,name=table_size,json=tableSize" json:"table_size,omitempty"` + NumLocalEntries *uint32 `protobuf:"varint,74,opt,name=num_local_entries,json=numLocalEntries" json:"num_local_entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacTableInfoType{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacTableInfoType) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacTableInfoType) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 0} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableInfoType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableInfoType.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableInfoType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableInfoType proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) GetLearning() bool { + if m != nil && m.Learning != nil { + return *m.Learning + } + return false +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) GetAgingTime() uint32 { + if m != nil && m.AgingTime != nil { + return *m.AgingTime + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) GetTableSize() uint32 { + if m != nil && m.TableSize != nil { + return *m.TableSize + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) GetNumLocalEntries() uint32 { + if m != nil && m.NumLocalEntries != nil { + return *m.NumLocalEntries + } + return 0 +} + +type NetworkInstancesFdbNetworkInstanceListMacTableType struct { + Entries *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType `protobuf:"bytes,151,opt,name=entries" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacTableType{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacTableType) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacTableType) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 1} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableType.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableType proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) GetEntries() *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType { + if m != nil { + return m.Entries + } + return nil +} + +type NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType struct { + Entry []*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList `protobuf:"bytes,151,rep,name=entry" json:"entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 1, 0} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) GetEntry() []*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList { + if m != nil { + return m.Entry + } + return nil +} + +type NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList struct { + MacAddress *string `protobuf:"bytes,51,opt,name=mac_address,json=macAddress" json:"mac_address,omitempty"` + VlanId *uint32 `protobuf:"varint,52,opt,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"` + Vni *uint32 `protobuf:"varint,53,opt,name=vni" json:"vni,omitempty"` + VlanName *string `protobuf:"bytes,54,opt,name=vlan_name,json=vlanName" json:"vlan_name,omitempty"` + Interface *string `protobuf:"bytes,55,opt,name=interface" json:"interface,omitempty"` + EntryType *string `protobuf:"bytes,56,opt,name=entry_type,json=entryType" json:"entry_type,omitempty"` + EventType *string `protobuf:"bytes,57,opt,name=event_type,json=eventType" json:"event_type,omitempty"` + EthernetTagId *uint32 `protobuf:"varint,58,opt,name=ethernet_tag_id,json=ethernetTagId" json:"ethernet_tag_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 1, 0, 0} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetMacAddress() string { + if m != nil && m.MacAddress != nil { + return *m.MacAddress + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetVlanId() uint32 { + if m != nil && m.VlanId != nil { + return *m.VlanId + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetVni() uint32 { + if m != nil && m.Vni != nil { + return *m.Vni + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetVlanName() string { + if m != nil && m.VlanName != nil { + return *m.VlanName + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetEntryType() string { + if m != nil && m.EntryType != nil { + return *m.EntryType + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetEventType() string { + if m != nil && m.EventType != nil { + return *m.EventType + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) GetEthernetTagId() uint32 { + if m != nil && m.EthernetTagId != nil { + return *m.EthernetTagId + } + return 0 +} + +type NetworkInstancesFdbNetworkInstanceListMacipTableInfoType struct { + Learning *bool `protobuf:"varint,81,opt,name=learning" json:"learning,omitempty"` + AgingTime *uint32 `protobuf:"varint,82,opt,name=aging_time,json=agingTime" json:"aging_time,omitempty"` + TableSize *uint32 `protobuf:"varint,83,opt,name=table_size,json=tableSize" json:"table_size,omitempty"` + ProxyMacip *bool `protobuf:"varint,84,opt,name=proxy_macip,json=proxyMacip" json:"proxy_macip,omitempty"` + NumLocalEntries *uint32 `protobuf:"varint,85,opt,name=num_local_entries,json=numLocalEntries" json:"num_local_entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacipTableInfoType{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 2} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableInfoType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableInfoType.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableInfoType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableInfoType proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) GetLearning() bool { + if m != nil && m.Learning != nil { + return *m.Learning + } + return false +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) GetAgingTime() uint32 { + if m != nil && m.AgingTime != nil { + return *m.AgingTime + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) GetTableSize() uint32 { + if m != nil && m.TableSize != nil { + return *m.TableSize + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) GetProxyMacip() bool { + if m != nil && m.ProxyMacip != nil { + return *m.ProxyMacip + } + return false +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) GetNumLocalEntries() uint32 { + if m != nil && m.NumLocalEntries != nil { + return *m.NumLocalEntries + } + return 0 +} + +type NetworkInstancesFdbNetworkInstanceListMacipTableType struct { + Entries *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType `protobuf:"bytes,161,opt,name=entries" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacipTableType{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableType) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableType) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 3} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableType.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableType proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) GetEntries() *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType { + if m != nil { + return m.Entries + } + return nil +} + +type NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType struct { + Entry []*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList `protobuf:"bytes,161,rep,name=entry" json:"entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 3, 0} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) GetEntry() []*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList { + if m != nil { + return m.Entry + } + return nil +} + +type NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList struct { + IpAddress *string `protobuf:"bytes,51,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + MacAddress *string `protobuf:"bytes,52,opt,name=mac_address,json=macAddress" json:"mac_address,omitempty"` + VlanId *uint32 `protobuf:"varint,53,opt,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"` + Vni *uint32 `protobuf:"varint,54,opt,name=vni" json:"vni,omitempty"` + VlanName *string `protobuf:"bytes,55,opt,name=vlan_name,json=vlanName" json:"vlan_name,omitempty"` + Interface *string `protobuf:"bytes,56,opt,name=interface" json:"interface,omitempty"` + L3Interface *string `protobuf:"bytes,57,opt,name=l3_interface,json=l3Interface" json:"l3_interface,omitempty"` + EntryType *string `protobuf:"bytes,58,opt,name=entry_type,json=entryType" json:"entry_type,omitempty"` + EventType *string `protobuf:"bytes,59,opt,name=event_type,json=eventType" json:"event_type,omitempty"` + EthernetTagId *uint32 `protobuf:"varint,60,opt,name=ethernet_tag_id,json=ethernetTagId" json:"ethernet_tag_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) Reset() { + *m = NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList{} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) ProtoMessage() {} +func (*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_1194cdb0d4efc56b, []int{0, 0, 3, 0, 0} +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList.Merge(m, src) +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList proto.InternalMessageInfo + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetIpAddress() string { + if m != nil && m.IpAddress != nil { + return *m.IpAddress + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetMacAddress() string { + if m != nil && m.MacAddress != nil { + return *m.MacAddress + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetVlanId() uint32 { + if m != nil && m.VlanId != nil { + return *m.VlanId + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetVni() uint32 { + if m != nil && m.Vni != nil { + return *m.Vni + } + return 0 +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetVlanName() string { + if m != nil && m.VlanName != nil { + return *m.VlanName + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetL3Interface() string { + if m != nil && m.L3Interface != nil { + return *m.L3Interface + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetEntryType() string { + if m != nil && m.EntryType != nil { + return *m.EntryType + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetEventType() string { + if m != nil && m.EventType != nil { + return *m.EventType + } + return "" +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) GetEthernetTagId() uint32 { + if m != nil && m.EthernetTagId != nil { + return *m.EthernetTagId + } + return 0 +} + +var E_JnprNetworkInstancesFdbExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesFdb)(nil), + Field: 114, + Name: "jnpr_network_instances_fdb_ext", + Tag: "bytes,114,opt,name=jnpr_network_instances_fdb_ext", + Filename: "l2ald_fdb_render.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesFdb)(nil), "network_instances_fdb") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceList)(nil), "network_instances_fdb.network_instance_list") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacTableInfoType)(nil), "network_instances_fdb.network_instance_list.mac_table_info_type") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacTableType)(nil), "network_instances_fdb.network_instance_list.mac_table_type") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType)(nil), "network_instances_fdb.network_instance_list.mac_table_type.entries_type") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList)(nil), "network_instances_fdb.network_instance_list.mac_table_type.entries_type.entry_list") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacipTableInfoType)(nil), "network_instances_fdb.network_instance_list.macip_table_info_type") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacipTableType)(nil), "network_instances_fdb.network_instance_list.macip_table_type") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType)(nil), "network_instances_fdb.network_instance_list.macip_table_type.entries_type") + proto.RegisterType((*NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList)(nil), "network_instances_fdb.network_instance_list.macip_table_type.entries_type.entry_list") + proto.RegisterExtension(E_JnprNetworkInstancesFdbExt) +} + +func init() { proto.RegisterFile("l2ald_fdb_render.proto", fileDescriptor_1194cdb0d4efc56b) } + +var fileDescriptor_1194cdb0d4efc56b = []byte{ + // 828 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x4d, 0x6f, 0xe3, 0x44, + 0x18, 0xc7, 0xe5, 0x66, 0x97, 0x4d, 0x26, 0xdd, 0xa6, 0x78, 0xb5, 0xbb, 0xc6, 0x62, 0xb3, 0x61, + 0x0f, 0x28, 0x42, 0x34, 0x91, 0xda, 0x7d, 0xa3, 0x0b, 0xd2, 0x52, 0xa9, 0xd0, 0x54, 0x50, 0x09, + 0x27, 0x95, 0x80, 0xcb, 0x30, 0xb1, 0x9f, 0x38, 0x93, 0xda, 0x63, 0x6b, 0x66, 0x12, 0x9a, 0x9e, + 0x10, 0x5f, 0x82, 0x03, 0xa7, 0x9e, 0x39, 0x73, 0x04, 0x09, 0x4e, 0x1c, 0xe1, 0x03, 0x20, 0xa1, + 0x7e, 0x07, 0x8e, 0x48, 0x68, 0x66, 0x92, 0xe6, 0xa5, 0x6e, 0xd4, 0xb7, 0x5b, 0xfd, 0x7f, 0x1e, + 0x3f, 0xff, 0xc7, 0x33, 0xbf, 0x7f, 0x83, 0x1e, 0x44, 0xeb, 0x24, 0x0a, 0x70, 0x27, 0x68, 0x63, + 0x0e, 0x2c, 0x00, 0x5e, 0x4b, 0x79, 0x22, 0x13, 0xf7, 0x9e, 0x84, 0x08, 0x62, 0x90, 0x7c, 0x88, + 0x65, 0x92, 0x1a, 0xf1, 0xc9, 0x5f, 0x25, 0x74, 0x9f, 0x81, 0xfc, 0x36, 0xe1, 0x07, 0x98, 0x32, + 0x21, 0x09, 0xf3, 0x41, 0xa8, 0x77, 0xed, 0x2f, 0xd1, 0xea, 0x7c, 0xc1, 0xf9, 0xc1, 0xaa, 0xe4, + 0xaa, 0xc5, 0xf5, 0xf7, 0x6b, 0x99, 0xaf, 0x9c, 0x51, 0x71, 0x44, 0x85, 0xf4, 0x4a, 0x23, 0xb9, + 0x31, 0x52, 0xdd, 0xbf, 0x57, 0xce, 0x7a, 0xea, 0x56, 0xfb, 0x2d, 0x74, 0x8b, 0x91, 0x18, 0x9c, + 0x8d, 0x8a, 0x55, 0x2d, 0x6c, 0xdd, 0xfe, 0xfe, 0xf5, 0x52, 0xde, 0xf2, 0xb4, 0x64, 0x87, 0x68, + 0x25, 0x26, 0x3e, 0x96, 0xa4, 0x1d, 0x01, 0xa6, 0xac, 0x93, 0x38, 0x3f, 0x59, 0x15, 0xab, 0x5a, + 0x5c, 0x7f, 0x7d, 0x99, 0x65, 0x6a, 0xb3, 0x33, 0xb0, 0x1c, 0xa6, 0xe0, 0x2d, 0xc7, 0xc4, 0x6f, + 0x29, 0xad, 0xc1, 0x3a, 0x89, 0xfd, 0x15, 0x2a, 0x9c, 0x36, 0xa9, 0x0f, 0x56, 0x1e, 0xaf, 0xae, + 0xe8, 0xa1, 0xc7, 0xe7, 0xc7, 0xe3, 0xed, 0x18, 0xad, 0xc6, 0xc4, 0xa7, 0xe9, 0xf4, 0x57, 0xfc, + 0x6c, 0x1c, 0xb6, 0x2e, 0xeb, 0x30, 0x33, 0xc5, 0x18, 0xad, 0x68, 0x79, 0xf2, 0x25, 0x18, 0x15, + 0xa7, 0x1a, 0x9d, 0x63, 0xe3, 0xf4, 0xd1, 0x95, 0x9d, 0xb4, 0x09, 0x9a, 0x98, 0xb8, 0x3f, 0x5a, + 0xe8, 0x5e, 0xc6, 0x81, 0xda, 0x2e, 0xca, 0x47, 0x40, 0x38, 0xa3, 0x2c, 0x74, 0x3e, 0xad, 0x58, + 0xd5, 0xbc, 0x77, 0xfa, 0x6c, 0x3f, 0x42, 0x88, 0x84, 0x94, 0x85, 0x58, 0xd2, 0x18, 0x9c, 0x9d, + 0x8a, 0x55, 0xbd, 0xeb, 0x15, 0xb4, 0xd2, 0xa2, 0x31, 0xa8, 0xb2, 0x99, 0x26, 0xe8, 0x11, 0x38, + 0x0d, 0x53, 0xd6, 0x4a, 0x93, 0x1e, 0x81, 0xfd, 0x1e, 0x7a, 0x93, 0xf5, 0x63, 0x1c, 0x25, 0x3e, + 0x89, 0x30, 0x30, 0xc9, 0x29, 0x08, 0x67, 0x57, 0x77, 0x95, 0x58, 0x3f, 0xfe, 0x4c, 0xe9, 0xdb, + 0x46, 0x76, 0xff, 0xcd, 0x4d, 0x23, 0xa3, 0x17, 0xf3, 0xd1, 0x9d, 0xf1, 0x4b, 0xa3, 0x9b, 0xdd, + 0xb9, 0xc6, 0xcd, 0xd6, 0x46, 0xb3, 0xcc, 0xc1, 0x8c, 0x27, 0xbb, 0xff, 0x2d, 0xa1, 0xe5, 0xe9, + 0x8a, 0xdd, 0x43, 0xb7, 0xd5, 0xf3, 0x70, 0x1c, 0x9f, 0xe6, 0x4d, 0x79, 0xea, 0x87, 0xa1, 0x49, + 0x99, 0xb1, 0x70, 0xbf, 0x5b, 0x42, 0x68, 0xa2, 0xda, 0x8f, 0x35, 0x02, 0x98, 0x04, 0x01, 0x07, + 0x21, 0x4c, 0xae, 0xf4, 0x15, 0x7e, 0x6c, 0x14, 0xfb, 0x21, 0xba, 0x33, 0x88, 0x08, 0xc3, 0x34, + 0x70, 0x9e, 0xea, 0x63, 0x7c, 0x43, 0x3d, 0x36, 0x02, 0x7b, 0x15, 0xe5, 0x06, 0x8c, 0x3a, 0xcf, + 0xb4, 0xa8, 0xfe, 0xb4, 0x9f, 0xa0, 0x82, 0x6e, 0xd5, 0x09, 0x7d, 0x3e, 0x9d, 0xd0, 0xbc, 0xd2, + 0xf7, 0x54, 0x4a, 0xdf, 0x46, 0x05, 0xca, 0x24, 0xf0, 0x0e, 0xf1, 0xc1, 0x79, 0xa1, 0xdd, 0x26, + 0x82, 0xba, 0x5c, 0xb3, 0x9b, 0x5a, 0xde, 0x79, 0x69, 0xca, 0x5a, 0x69, 0xa9, 0x73, 0x52, 0xe5, + 0x01, 0x30, 0x69, 0xca, 0x1f, 0x8c, 0xca, 0x4a, 0xd1, 0xe5, 0x77, 0x51, 0x09, 0x64, 0x17, 0x38, + 0x03, 0x89, 0x25, 0x09, 0xd5, 0xca, 0x9b, 0x7a, 0xbb, 0xbb, 0x63, 0xb9, 0x45, 0xc2, 0x46, 0xe0, + 0xfe, 0x6a, 0xa1, 0xfb, 0x99, 0x01, 0x99, 0xe1, 0xf2, 0x8b, 0x85, 0x5c, 0x7a, 0x8b, 0xb9, 0x6c, + 0xce, 0x73, 0xf9, 0x18, 0x15, 0x53, 0x9e, 0x1c, 0x0e, 0xb1, 0x36, 0x76, 0x5a, 0x7a, 0x38, 0xd2, + 0xd2, 0xe7, 0x4a, 0xc9, 0x06, 0x77, 0x3f, 0x1b, 0xdc, 0x5f, 0x6e, 0xcd, 0xfe, 0x9f, 0xd0, 0xbb, + 0xc3, 0x04, 0xdd, 0x51, 0x90, 0x77, 0xaf, 0x15, 0xe4, 0x73, 0xe0, 0xfd, 0x2d, 0x37, 0x07, 0x6f, + 0x34, 0x86, 0xf7, 0xd8, 0xc0, 0xbb, 0x7f, 0x73, 0xae, 0x19, 0xf8, 0xfe, 0x3e, 0x8b, 0xef, 0x23, + 0x84, 0x68, 0x3a, 0x47, 0x6f, 0x81, 0xa6, 0x63, 0x78, 0xe7, 0xe8, 0x7e, 0xba, 0x88, 0xee, 0x67, + 0x59, 0x74, 0x3f, 0x3f, 0x87, 0xee, 0x17, 0x17, 0xa0, 0xfb, 0xe5, 0x3c, 0xdd, 0xef, 0xa0, 0xe5, + 0x68, 0x03, 0x4f, 0x1a, 0x0c, 0xc0, 0xc5, 0x68, 0xa3, 0x71, 0x4e, 0x00, 0x36, 0x17, 0x07, 0xe0, + 0xd5, 0x05, 0x02, 0xf0, 0x61, 0x46, 0x00, 0x36, 0x05, 0x2a, 0xf7, 0x58, 0xca, 0x71, 0xe6, 0x45, + 0x61, 0x38, 0x94, 0xf6, 0xc3, 0xda, 0x6e, 0x9f, 0xd1, 0x14, 0xf8, 0x9e, 0x69, 0x11, 0x4d, 0x60, + 0x22, 0xe1, 0xc2, 0xe1, 0x9a, 0xac, 0x07, 0xd9, 0x77, 0xec, 0xb9, 0x6a, 0xec, 0xde, 0xec, 0xaf, + 0xb9, 0xf8, 0x24, 0x68, 0x6f, 0x1f, 0xca, 0xad, 0x6f, 0xfe, 0x38, 0x29, 0x5b, 0x7f, 0x9e, 0x94, + 0xad, 0x7f, 0x4e, 0xca, 0xd6, 0xd7, 0x5e, 0x48, 0x65, 0xad, 0x67, 0x3c, 0xd4, 0xb0, 0x3a, 0xf5, + 0xa1, 0x0d, 0x3c, 0xac, 0x77, 0x81, 0x44, 0xb2, 0xdb, 0x4e, 0xe4, 0x1a, 0x65, 0x21, 0x08, 0xb9, + 0xd6, 0x93, 0x74, 0x8d, 0x11, 0x49, 0x07, 0x50, 0x4f, 0x0f, 0xc2, 0x7a, 0x4f, 0xd2, 0x3a, 0x09, + 0x48, 0x2a, 0x81, 0x8b, 0x3a, 0xee, 0xf5, 0x59, 0x22, 0xea, 0xc2, 0xef, 0x42, 0x4c, 0xfe, 0x0f, + 0x00, 0x00, 0xff, 0xff, 0x25, 0x68, 0x98, 0xde, 0xd8, 0x08, 0x00, 0x00, +} + +func (m *NetworkInstancesFdb) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdb) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdb) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MacipTableInfo != nil { + { + size, err := m.MacipTableInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xaa + } + if m.MacTableInfo != nil { + { + size, err := m.MacTableInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + if m.MacipTable != nil { + { + size, err := m.MacipTable.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.MacTable != nil { + { + size, err := m.MacTable.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NumLocalEntries != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.NumLocalEntries)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.TableSize != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.TableSize)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.AgingTime != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.AgingTime)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.Learning != nil { + i-- + if *m.Learning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Entries != nil { + { + size, err := m.Entries.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Entry) > 0 { + for iNdEx := len(m.Entry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EthernetTagId != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.EthernetTagId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.EventType != nil { + i -= len(*m.EventType) + copy(dAtA[i:], *m.EventType) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.EventType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.EntryType != nil { + i -= len(*m.EntryType) + copy(dAtA[i:], *m.EntryType) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.EntryType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.VlanName != nil { + i -= len(*m.VlanName) + copy(dAtA[i:], *m.VlanName) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.VlanName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Vni != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.Vni)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.VlanId != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.VlanId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MacAddress != nil { + i -= len(*m.MacAddress) + copy(dAtA[i:], *m.MacAddress) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.MacAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NumLocalEntries != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.NumLocalEntries)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.ProxyMacip != nil { + i-- + if *m.ProxyMacip { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.TableSize != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.TableSize)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.AgingTime != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.AgingTime)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.Learning != nil { + i-- + if *m.Learning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Entries != nil { + { + size, err := m.Entries.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Entry) > 0 { + for iNdEx := len(m.Entry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Entry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EthernetTagId != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.EthernetTagId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.EventType != nil { + i -= len(*m.EventType) + copy(dAtA[i:], *m.EventType) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.EventType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.EntryType != nil { + i -= len(*m.EntryType) + copy(dAtA[i:], *m.EntryType) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.EntryType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.L3Interface != nil { + i -= len(*m.L3Interface) + copy(dAtA[i:], *m.L3Interface) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.L3Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.VlanName != nil { + i -= len(*m.VlanName) + copy(dAtA[i:], *m.VlanName) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.VlanName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Vni != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.Vni)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.VlanId != nil { + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(*m.VlanId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MacAddress != nil { + i -= len(*m.MacAddress) + copy(dAtA[i:], *m.MacAddress) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.MacAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.IpAddress != nil { + i -= len(*m.IpAddress) + copy(dAtA[i:], *m.IpAddress) + i = encodeVarintL2AldFdbRender(dAtA, i, uint64(len(*m.IpAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintL2AldFdbRender(dAtA []byte, offset int, v uint64) int { + offset -= sovL2AldFdbRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesFdb) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.MacTable != nil { + l = m.MacTable.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.MacipTable != nil { + l = m.MacipTable.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.MacTableInfo != nil { + l = m.MacTableInfo.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.MacipTableInfo != nil { + l = m.MacipTableInfo.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Learning != nil { + n += 3 + } + if m.AgingTime != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.AgingTime)) + } + if m.TableSize != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.TableSize)) + } + if m.NumLocalEntries != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.NumLocalEntries)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Entries != nil { + l = m.Entries.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Entry) > 0 { + for _, e := range m.Entry { + l = e.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MacAddress != nil { + l = len(*m.MacAddress) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.VlanId != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.VlanId)) + } + if m.Vni != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.Vni)) + } + if m.VlanName != nil { + l = len(*m.VlanName) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.EntryType != nil { + l = len(*m.EntryType) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.EventType != nil { + l = len(*m.EventType) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.EthernetTagId != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.EthernetTagId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Learning != nil { + n += 3 + } + if m.AgingTime != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.AgingTime)) + } + if m.TableSize != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.TableSize)) + } + if m.ProxyMacip != nil { + n += 3 + } + if m.NumLocalEntries != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.NumLocalEntries)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Entries != nil { + l = m.Entries.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Entry) > 0 { + for _, e := range m.Entry { + l = e.Size() + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IpAddress != nil { + l = len(*m.IpAddress) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.MacAddress != nil { + l = len(*m.MacAddress) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.VlanId != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.VlanId)) + } + if m.Vni != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.Vni)) + } + if m.VlanName != nil { + l = len(*m.VlanName) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.L3Interface != nil { + l = len(*m.L3Interface) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.EntryType != nil { + l = len(*m.EntryType) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.EventType != nil { + l = len(*m.EventType) + n += 2 + l + sovL2AldFdbRender(uint64(l)) + } + if m.EthernetTagId != nil { + n += 2 + sovL2AldFdbRender(uint64(*m.EthernetTagId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovL2AldFdbRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozL2AldFdbRender(x uint64) (n int) { + return sovL2AldFdbRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesFdb) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_fdb: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_fdb: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesFdbNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacTable", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MacTable == nil { + m.MacTable = &NetworkInstancesFdbNetworkInstanceListMacTableType{} + } + if err := m.MacTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacipTable", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MacipTable == nil { + m.MacipTable = &NetworkInstancesFdbNetworkInstanceListMacipTableType{} + } + if err := m.MacipTable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacTableInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MacTableInfo == nil { + m.MacTableInfo = &NetworkInstancesFdbNetworkInstanceListMacTableInfoType{} + } + if err := m.MacTableInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 181: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacipTableInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MacipTableInfo == nil { + m.MacipTableInfo = &NetworkInstancesFdbNetworkInstanceListMacipTableInfoType{} + } + if err := m.MacipTableInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableInfoType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mac_table_info_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mac_table_info_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Learning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Learning = &b + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AgingTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AgingTime = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableSize = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumLocalEntries", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumLocalEntries = &v + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mac_table_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mac_table_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entries == nil { + m.Entries = &NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType{} + } + if err := m.Entries.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: entries_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: entries_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Entry = append(m.Entry, &NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList{}) + if err := m.Entry[len(m.Entry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacTableTypeEntriesTypeEntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MacAddress = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanId = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Vni", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Vni = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VlanName = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EntryType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EntryType = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EventType = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetTagId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EthernetTagId = &v + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableInfoType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: macip_table_info_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: macip_table_info_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Learning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Learning = &b + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AgingTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AgingTime = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableSize = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProxyMacip", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ProxyMacip = &b + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumLocalEntries", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumLocalEntries = &v + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: macip_table_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: macip_table_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Entries == nil { + m.Entries = &NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType{} + } + if err := m.Entries.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: entries_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: entries_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Entry = append(m.Entry, &NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList{}) + if err := m.Entry[len(m.Entry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesFdbNetworkInstanceListMacipTableTypeEntriesTypeEntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IpAddress = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MacAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanId = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Vni", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Vni = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VlanName = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.L3Interface = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EntryType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EntryType = &s + iNdEx = postIndex + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldFdbRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EventType = &s + iNdEx = postIndex + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetTagId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EthernetTagId = &v + default: + iNdEx = preIndex + skippy, err := skipL2AldFdbRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldFdbRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipL2AldFdbRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldFdbRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthL2AldFdbRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupL2AldFdbRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthL2AldFdbRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthL2AldFdbRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowL2AldFdbRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupL2AldFdbRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/l2ald_fdb_render.proto b/schema/l2ald_fdb_render.proto new file mode 100755 index 0000000..bd60486 --- /dev/null +++ b/schema/l2ald_fdb_render.proto @@ -0,0 +1,65 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_fdb jnpr_network_instances_fdb_ext = 114; +} + +message network_instances_fdb { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional mac_table_info_type mac_table_info = 171; + message mac_table_info_type { + optional bool learning = 71; + optional uint32 aging_time = 72; + optional uint32 table_size = 73; + optional uint32 num_local_entries = 74; + } + optional mac_table_type mac_table = 151; + message mac_table_type { + optional entries_type entries = 151; + message entries_type { + message entry_list { + optional string mac_address = 51; + optional uint32 vlan_id = 52; + optional uint32 vni = 53; + optional string vlan_name = 54 [(telemetry_options).is_key = true]; + optional string interface = 55; + optional string entry_type = 56; + optional string event_type = 57; + optional uint32 ethernet_tag_id = 58; + } + repeated entry_list entry = 151; + } + } + optional macip_table_info_type macip_table_info = 181; + message macip_table_info_type { + optional bool learning = 81; + optional uint32 aging_time = 82; + optional uint32 table_size = 83; + optional bool proxy_macip = 84; + optional uint32 num_local_entries = 85; + } + optional macip_table_type macip_table = 161; + message macip_table_type { + optional entries_type entries = 161; + message entries_type { + message entry_list { + optional string ip_address = 51; + optional string mac_address = 52; + optional uint32 vlan_id = 53; + optional uint32 vni = 54; + optional string vlan_name = 55 [(telemetry_options).is_key = true]; + optional string interface = 56; + optional string l3_interface = 57; + optional string entry_type = 58; + optional string event_type = 59; + optional uint32 ethernet_tag_id = 60; + } + repeated entry_list entry = 161; + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/l2ald_oc.pb.go b/schema/l2ald_oc.pb.go new file mode 100644 index 0000000..a3b8a14 --- /dev/null +++ b/schema/l2ald_oc.pb.go @@ -0,0 +1,1728 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: l2ald_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type VlansL2Al struct { + Vlan []*VlansL2AlVlanList `protobuf:"bytes,151,rep,name=vlan" json:"vlan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2Al) Reset() { *m = VlansL2Al{} } +func (m *VlansL2Al) String() string { return proto.CompactTextString(m) } +func (*VlansL2Al) ProtoMessage() {} +func (*VlansL2Al) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0} +} +func (m *VlansL2Al) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2Al) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2Al.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2Al) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2Al.Merge(m, src) +} +func (m *VlansL2Al) XXX_Size() int { + return m.Size() +} +func (m *VlansL2Al) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2Al.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2Al proto.InternalMessageInfo + +func (m *VlansL2Al) GetVlan() []*VlansL2AlVlanList { + if m != nil { + return m.Vlan + } + return nil +} + +type VlansL2AlVlanList struct { + VlanId *uint32 `protobuf:"varint,51,opt,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"` + State *VlansL2AlVlanListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Members *VlansL2AlVlanListMembersType `protobuf:"bytes,152,opt,name=members" json:"members,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2AlVlanList) Reset() { *m = VlansL2AlVlanList{} } +func (m *VlansL2AlVlanList) String() string { return proto.CompactTextString(m) } +func (*VlansL2AlVlanList) ProtoMessage() {} +func (*VlansL2AlVlanList) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0, 0} +} +func (m *VlansL2AlVlanList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2AlVlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2AlVlanList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2AlVlanList) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2AlVlanList.Merge(m, src) +} +func (m *VlansL2AlVlanList) XXX_Size() int { + return m.Size() +} +func (m *VlansL2AlVlanList) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2AlVlanList.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2AlVlanList proto.InternalMessageInfo + +func (m *VlansL2AlVlanList) GetVlanId() uint32 { + if m != nil && m.VlanId != nil { + return *m.VlanId + } + return 0 +} + +func (m *VlansL2AlVlanList) GetState() *VlansL2AlVlanListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *VlansL2AlVlanList) GetMembers() *VlansL2AlVlanListMembersType { + if m != nil { + return m.Members + } + return nil +} + +type VlansL2AlVlanListStateType struct { + VlanId *uint32 `protobuf:"varint,52,opt,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"` + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Status *string `protobuf:"bytes,53,opt,name=status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2AlVlanListStateType) Reset() { *m = VlansL2AlVlanListStateType{} } +func (m *VlansL2AlVlanListStateType) String() string { return proto.CompactTextString(m) } +func (*VlansL2AlVlanListStateType) ProtoMessage() {} +func (*VlansL2AlVlanListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0, 0, 0} +} +func (m *VlansL2AlVlanListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2AlVlanListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2AlVlanListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2AlVlanListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2AlVlanListStateType.Merge(m, src) +} +func (m *VlansL2AlVlanListStateType) XXX_Size() int { + return m.Size() +} +func (m *VlansL2AlVlanListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2AlVlanListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2AlVlanListStateType proto.InternalMessageInfo + +func (m *VlansL2AlVlanListStateType) GetVlanId() uint32 { + if m != nil && m.VlanId != nil { + return *m.VlanId + } + return 0 +} + +func (m *VlansL2AlVlanListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *VlansL2AlVlanListStateType) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +type VlansL2AlVlanListMembersType struct { + Member []*VlansL2AlVlanListMembersTypeMemberList `protobuf:"bytes,151,rep,name=member" json:"member,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2AlVlanListMembersType) Reset() { *m = VlansL2AlVlanListMembersType{} } +func (m *VlansL2AlVlanListMembersType) String() string { return proto.CompactTextString(m) } +func (*VlansL2AlVlanListMembersType) ProtoMessage() {} +func (*VlansL2AlVlanListMembersType) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0, 0, 1} +} +func (m *VlansL2AlVlanListMembersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2AlVlanListMembersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2AlVlanListMembersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2AlVlanListMembersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2AlVlanListMembersType.Merge(m, src) +} +func (m *VlansL2AlVlanListMembersType) XXX_Size() int { + return m.Size() +} +func (m *VlansL2AlVlanListMembersType) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2AlVlanListMembersType.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2AlVlanListMembersType proto.InternalMessageInfo + +func (m *VlansL2AlVlanListMembersType) GetMember() []*VlansL2AlVlanListMembersTypeMemberList { + if m != nil { + return m.Member + } + return nil +} + +type VlansL2AlVlanListMembersTypeMemberList struct { + InterfaceRef *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType `protobuf:"bytes,151,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2AlVlanListMembersTypeMemberList) Reset() { + *m = VlansL2AlVlanListMembersTypeMemberList{} +} +func (m *VlansL2AlVlanListMembersTypeMemberList) String() string { return proto.CompactTextString(m) } +func (*VlansL2AlVlanListMembersTypeMemberList) ProtoMessage() {} +func (*VlansL2AlVlanListMembersTypeMemberList) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0, 0, 1, 0} +} +func (m *VlansL2AlVlanListMembersTypeMemberList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2AlVlanListMembersTypeMemberList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2AlVlanListMembersTypeMemberList) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberList.Merge(m, src) +} +func (m *VlansL2AlVlanListMembersTypeMemberList) XXX_Size() int { + return m.Size() +} +func (m *VlansL2AlVlanListMembersTypeMemberList) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberList.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberList proto.InternalMessageInfo + +func (m *VlansL2AlVlanListMembersTypeMemberList) GetInterfaceRef() *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +type VlansL2AlVlanListMembersTypeMemberListInterfaceRefType struct { + State *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) Reset() { + *m = VlansL2AlVlanListMembersTypeMemberListInterfaceRefType{} +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) ProtoMessage() {} +func (*VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0, 0, 1, 0, 0} +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefType.Merge(m, src) +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefType proto.InternalMessageInfo + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) GetState() *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) Reset() { + *m = VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType{} +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) ProtoMessage() {} +func (*VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_3d20593bdd4ba4e6, []int{0, 0, 1, 0, 0, 0} +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +var E_JnprVlansL2AlExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*VlansL2Al)(nil), + Field: 50, + Name: "jnpr_vlans_l2al_ext", + Tag: "bytes,50,opt,name=jnpr_vlans_l2al_ext", + Filename: "l2ald_oc.proto", +} + +func init() { + proto.RegisterType((*VlansL2Al)(nil), "vlans_l2al") + proto.RegisterType((*VlansL2AlVlanList)(nil), "vlans_l2al.vlan_list") + proto.RegisterType((*VlansL2AlVlanListStateType)(nil), "vlans_l2al.vlan_list.state_type") + proto.RegisterType((*VlansL2AlVlanListMembersType)(nil), "vlans_l2al.vlan_list.members_type") + proto.RegisterType((*VlansL2AlVlanListMembersTypeMemberList)(nil), "vlans_l2al.vlan_list.members_type.member_list") + proto.RegisterType((*VlansL2AlVlanListMembersTypeMemberListInterfaceRefType)(nil), "vlans_l2al.vlan_list.members_type.member_list.interface_ref_type") + proto.RegisterType((*VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType)(nil), "vlans_l2al.vlan_list.members_type.member_list.interface_ref_type.state_type") + proto.RegisterExtension(E_JnprVlansL2AlExt) +} + +func init() { proto.RegisterFile("l2ald_oc.proto", fileDescriptor_3d20593bdd4ba4e6) } + +var fileDescriptor_3d20593bdd4ba4e6 = []byte{ + // 461 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x51, 0x4d, 0x6b, 0x13, 0x51, + 0x14, 0x65, 0x62, 0x92, 0x9a, 0x9b, 0x56, 0xe4, 0x15, 0xed, 0x30, 0x48, 0x08, 0x5d, 0x85, 0x42, + 0x66, 0x60, 0x54, 0x04, 0x41, 0xd0, 0x82, 0x88, 0x52, 0x04, 0xa7, 0xe0, 0xc2, 0xcd, 0xf3, 0x65, + 0x72, 0x33, 0x79, 0xd3, 0x99, 0x37, 0xc3, 0x7b, 0x37, 0xb5, 0xdd, 0xfa, 0x27, 0x74, 0xe5, 0xce, + 0x9d, 0x3f, 0xc4, 0xa5, 0x3f, 0x41, 0xf2, 0x0f, 0xdc, 0xb9, 0x94, 0xf9, 0x48, 0x26, 0xb5, 0x05, + 0x91, 0xee, 0xde, 0x39, 0xef, 0x9c, 0x73, 0x0f, 0xf7, 0xc2, 0xad, 0xc4, 0x17, 0xc9, 0x94, 0x67, + 0xa1, 0x9b, 0xeb, 0x8c, 0x32, 0x67, 0x97, 0x30, 0xc1, 0x14, 0x49, 0x9f, 0x73, 0xca, 0xf2, 0x8a, + 0xdc, 0xff, 0xd6, 0x01, 0x38, 0x4d, 0x84, 0x32, 0xbc, 0x50, 0xb3, 0x03, 0x68, 0x17, 0xc8, 0xfe, + 0x64, 0x0d, 0x6f, 0x8c, 0xfa, 0xfe, 0x1d, 0xb7, 0xf9, 0x2b, 0x9f, 0x3c, 0x91, 0x86, 0x82, 0x52, + 0xe3, 0xfc, 0x6a, 0x43, 0x6f, 0xcd, 0xb1, 0x01, 0x6c, 0x95, 0x40, 0x4e, 0xed, 0xfb, 0x43, 0x6b, + 0xb4, 0x73, 0xd8, 0xf9, 0xf8, 0xb4, 0x75, 0xd3, 0x0a, 0xba, 0x05, 0xfb, 0x72, 0xca, 0x1e, 0x41, + 0xc7, 0x90, 0x20, 0x2c, 0xa2, 0xad, 0x51, 0xdf, 0x1f, 0x5e, 0x19, 0xed, 0x96, 0x1a, 0x4e, 0xe7, + 0x39, 0x06, 0x95, 0x9e, 0x3d, 0x81, 0xad, 0x14, 0xd3, 0x09, 0x6a, 0x63, 0x7f, 0xae, 0xac, 0xfb, + 0x57, 0x5b, 0x6b, 0x55, 0x65, 0x5e, 0x79, 0x9c, 0x37, 0x00, 0x4d, 0x26, 0xdb, 0x6b, 0x5a, 0x3e, + 0x28, 0x5a, 0xae, 0xeb, 0x31, 0x68, 0x2b, 0x91, 0x62, 0xd9, 0xbd, 0x17, 0x94, 0x6f, 0x76, 0x17, + 0xba, 0x85, 0x75, 0x61, 0xec, 0x87, 0x25, 0x5b, 0x23, 0xe7, 0x77, 0x0b, 0xb6, 0x37, 0x87, 0xb1, + 0x17, 0xd0, 0xad, 0xf0, 0x6a, 0x6f, 0xee, 0xbf, 0x1b, 0xd6, 0xa0, 0x5a, 0x68, 0x6d, 0x77, 0xbe, + 0xb4, 0xa0, 0xbf, 0xc1, 0xb3, 0x08, 0x76, 0xa4, 0x22, 0xd4, 0x33, 0x11, 0x22, 0xd7, 0x38, 0x5b, + 0x2d, 0xef, 0xd9, 0xff, 0xe5, 0xbb, 0x17, 0x42, 0xaa, 0x05, 0x6d, 0xaf, 0xb9, 0x00, 0x67, 0xce, + 0x57, 0x0b, 0xd8, 0x65, 0x11, 0x0b, 0xff, 0x3a, 0xda, 0xd1, 0xb5, 0xe7, 0x5e, 0x3e, 0xb0, 0x73, + 0x70, 0xe1, 0x42, 0xf7, 0xa0, 0xb7, 0x76, 0xd5, 0xd7, 0x68, 0x88, 0xc7, 0xc7, 0xb0, 0x1b, 0xab, + 0x5c, 0xf3, 0xa6, 0x06, 0xc7, 0x33, 0x62, 0x7b, 0xee, 0xab, 0x85, 0x92, 0x39, 0xea, 0xd7, 0x48, + 0x1f, 0x32, 0x7d, 0x62, 0x8e, 0x51, 0x99, 0x4c, 0x1b, 0xdb, 0x2f, 0x6b, 0xf7, 0x37, 0x6a, 0x07, + 0xb7, 0x8b, 0x80, 0xb7, 0x05, 0x3e, 0xf2, 0x45, 0xf2, 0xfc, 0x8c, 0x0e, 0xdf, 0x7f, 0x5f, 0x0e, + 0xac, 0x1f, 0xcb, 0x81, 0xf5, 0x73, 0x39, 0xb0, 0xde, 0x05, 0x91, 0x24, 0x37, 0xae, 0xe2, 0x5c, + 0x85, 0xe4, 0xc9, 0x10, 0x27, 0xa8, 0x23, 0x6f, 0x8e, 0x22, 0xa1, 0xf9, 0x24, 0xa3, 0xb1, 0x54, + 0x11, 0x1a, 0x1a, 0xc7, 0x24, 0xc7, 0x4a, 0x90, 0x3c, 0x45, 0x2f, 0x3f, 0x89, 0xbc, 0x98, 0xa4, + 0x27, 0xa6, 0x22, 0x27, 0xd4, 0xc6, 0xe3, 0xf1, 0x42, 0x65, 0xc6, 0x33, 0xe1, 0x1c, 0x53, 0xf1, + 0x27, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0e, 0x66, 0x85, 0x8b, 0x03, 0x00, 0x00, +} + +func (m *VlansL2Al) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2Al) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2Al) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Vlan) > 0 { + for iNdEx := len(m.Vlan) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Vlan[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *VlansL2AlVlanList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2AlVlanList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2AlVlanList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Members != nil { + { + size, err := m.Members.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.VlanId != nil { + i = encodeVarintL2AldOc(dAtA, i, uint64(*m.VlanId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *VlansL2AlVlanListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2AlVlanListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2AlVlanListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintL2AldOc(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.VlanId != nil { + i = encodeVarintL2AldOc(dAtA, i, uint64(*m.VlanId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2AldOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *VlansL2AlVlanListMembersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2AlVlanListMembersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2AlVlanListMembersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Member) > 0 { + for iNdEx := len(m.Member) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Member[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *VlansL2AlVlanListMembersTypeMemberList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2AlVlanListMembersTypeMemberList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2AlVlanListMembersTypeMemberList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintL2AldOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintL2AldOc(dAtA []byte, offset int, v uint64) int { + offset -= sovL2AldOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *VlansL2Al) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Vlan) > 0 { + for _, e := range m.Vlan { + l = e.Size() + n += 2 + l + sovL2AldOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *VlansL2AlVlanList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VlanId != nil { + n += 2 + sovL2AldOc(uint64(*m.VlanId)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.Members != nil { + l = m.Members.Size() + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *VlansL2AlVlanListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.VlanId != nil { + n += 2 + sovL2AldOc(uint64(*m.VlanId)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *VlansL2AlVlanListMembersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Member) > 0 { + for _, e := range m.Member { + l = e.Size() + n += 2 + l + sovL2AldOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *VlansL2AlVlanListMembersTypeMemberList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovL2AldOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovL2AldOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozL2AldOc(x uint64) (n int) { + return sovL2AldOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *VlansL2Al) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vlans_l2al: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vlans_l2al: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Vlan = append(m.Vlan, &VlansL2AlVlanList{}) + if err := m.Vlan[len(m.Vlan)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VlansL2AlVlanList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vlan_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vlan_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &VlansL2AlVlanListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Members == nil { + m.Members = &VlansL2AlVlanListMembersType{} + } + if err := m.Members.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VlansL2AlVlanListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanId = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VlansL2AlVlanListMembersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: members_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: members_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Member = append(m.Member, &VlansL2AlVlanListMembersTypeMemberList{}) + if err := m.Member[len(m.Member)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VlansL2AlVlanListMembersTypeMemberList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: member_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: member_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &VlansL2AlVlanListMembersTypeMemberListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VlansL2AlVlanListMembersTypeMemberListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipL2AldOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthL2AldOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupL2AldOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthL2AldOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthL2AldOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowL2AldOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupL2AldOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/l2ald_oc.proto b/schema/l2ald_oc.proto new file mode 100755 index 0000000..e06d398 --- /dev/null +++ b/schema/l2ald_oc.proto @@ -0,0 +1,33 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional vlans_l2al jnpr_vlans_l2al_ext = 50; +} + +message vlans_l2al { + message vlan_list { + optional uint32 vlan_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 vlan_id = 52; + optional string name = 51; + optional string status = 53; + } + optional members_type members = 152; + message members_type { + message member_list { + optional interface_ref_type interface_ref = 151; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + } + } + } + repeated member_list member = 151; + } + } + repeated vlan_list vlan = 151; +} diff --git a/schema/l2ald_oc_intf.pb.go b/schema/l2ald_oc_intf.pb.go new file mode 100644 index 0000000..96c19ac --- /dev/null +++ b/schema/l2ald_oc_intf.pb.go @@ -0,0 +1,2225 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: l2ald_oc_intf.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesL2AlInterface struct { + Interface []*InterfacesL2AlInterfaceInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterface) Reset() { *m = InterfacesL2AlInterface{} } +func (m *InterfacesL2AlInterface) String() string { return proto.CompactTextString(m) } +func (*InterfacesL2AlInterface) ProtoMessage() {} +func (*InterfacesL2AlInterface) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0} +} +func (m *InterfacesL2AlInterface) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterface.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterface) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterface.Merge(m, src) +} +func (m *InterfacesL2AlInterface) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterface) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterface.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterface proto.InternalMessageInfo + +func (m *InterfacesL2AlInterface) GetInterface() []*InterfacesL2AlInterfaceInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Subinterfaces *InterfacesL2AlInterfaceInterfaceListSubinterfacesType `protobuf:"bytes,151,opt,name=subinterfaces" json:"subinterfaces,omitempty"` + Ethernet *InterfacesL2AlInterfaceInterfaceListEthernetType `protobuf:"bytes,152,opt,name=ethernet" json:"ethernet,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceList) Reset() { *m = InterfacesL2AlInterfaceInterfaceList{} } +func (m *InterfacesL2AlInterfaceInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesL2AlInterfaceInterfaceList) ProtoMessage() {} +func (*InterfacesL2AlInterfaceInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceList.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceList proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesL2AlInterfaceInterfaceList) GetSubinterfaces() *InterfacesL2AlInterfaceInterfaceListSubinterfacesType { + if m != nil { + return m.Subinterfaces + } + return nil +} + +func (m *InterfacesL2AlInterfaceInterfaceList) GetEthernet() *InterfacesL2AlInterfaceInterfaceListEthernetType { + if m != nil { + return m.Ethernet + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceListSubinterfacesType struct { + Subinterface []*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList `protobuf:"bytes,151,rep,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListSubinterfacesType{} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesType) ProtoMessage() {} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesType.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesType proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) GetSubinterface() []*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList { + if m != nil { + return m.Subinterface + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Vlan *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType `protobuf:"bytes,151,opt,name=vlan" json:"vlan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList{} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) ProtoMessage() {} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 0, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) GetVlan() *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType { + if m != nil { + return m.Vlan + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType struct { + State *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType `protobuf:"bytes,152,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType{} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) ProtoMessage() { +} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 0, 0, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) GetState() *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType struct { + VlanId *uint32 `protobuf:"varint,51,opt,name=vlan_id,json=vlanId" json:"vlan_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType{} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) ProtoMessage() { +} +func (*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 0, 0, 0, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) GetVlanId() uint32 { + if m != nil && m.VlanId != nil { + return *m.VlanId + } + return 0 +} + +type InterfacesL2AlInterfaceInterfaceListEthernetType struct { + SwitchedVlan *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType `protobuf:"bytes,151,opt,name=switched_vlan,json=switchedVlan" json:"switched_vlan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListEthernetType{} +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListEthernetType) ProtoMessage() {} +func (*InterfacesL2AlInterfaceInterfaceListEthernetType) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 1} +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetType.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetType proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) GetSwitchedVlan() *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType { + if m != nil { + return m.SwitchedVlan + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType struct { + State *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType{} +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) ProtoMessage() {} +func (*InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 1, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) GetState() *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType struct { + InterfaceMode *string `protobuf:"bytes,51,opt,name=interface_mode,json=interfaceMode" json:"interface_mode,omitempty"` + NativeVlan *uint32 `protobuf:"varint,52,opt,name=native_vlan,json=nativeVlan" json:"native_vlan,omitempty"` + AccessVlan *uint32 `protobuf:"varint,53,opt,name=access_vlan,json=accessVlan" json:"access_vlan,omitempty"` + TrunkVlans []string `protobuf:"bytes,54,rep,name=trunk_vlans,json=trunkVlans" json:"trunk_vlans,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) Reset() { + *m = InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType{} +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) ProtoMessage() {} +func (*InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_6671014b8a781111, []int{0, 0, 1, 0, 0} +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType.Merge(m, src) +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType proto.InternalMessageInfo + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) GetInterfaceMode() string { + if m != nil && m.InterfaceMode != nil { + return *m.InterfaceMode + } + return "" +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) GetNativeVlan() uint32 { + if m != nil && m.NativeVlan != nil { + return *m.NativeVlan + } + return 0 +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) GetAccessVlan() uint32 { + if m != nil && m.AccessVlan != nil { + return *m.AccessVlan + } + return 0 +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) GetTrunkVlans() []string { + if m != nil { + return m.TrunkVlans + } + return nil +} + +var E_JnprInterfacesL2AlInterfaceExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesL2AlInterface)(nil), + Field: 49, + Name: "jnpr_interfaces_l2al_interface_ext", + Tag: "bytes,49,opt,name=jnpr_interfaces_l2al_interface_ext", + Filename: "l2ald_oc_intf.proto", +} + +func init() { + proto.RegisterType((*InterfacesL2AlInterface)(nil), "interfaces_l2al_interface") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceList)(nil), "interfaces_l2al_interface.interface_list") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListSubinterfacesType)(nil), "interfaces_l2al_interface.interface_list.subinterfaces_type") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList)(nil), "interfaces_l2al_interface.interface_list.subinterfaces_type.subinterface_list") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType)(nil), "interfaces_l2al_interface.interface_list.subinterfaces_type.subinterface_list.vlan_type") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType)(nil), "interfaces_l2al_interface.interface_list.subinterfaces_type.subinterface_list.vlan_type.state_type") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListEthernetType)(nil), "interfaces_l2al_interface.interface_list.ethernet_type") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType)(nil), "interfaces_l2al_interface.interface_list.ethernet_type.switched_vlan_type") + proto.RegisterType((*InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType)(nil), "interfaces_l2al_interface.interface_list.ethernet_type.switched_vlan_type.state_type") + proto.RegisterExtension(E_JnprInterfacesL2AlInterfaceExt) +} + +func init() { proto.RegisterFile("l2ald_oc_intf.proto", fileDescriptor_6671014b8a781111) } + +var fileDescriptor_6671014b8a781111 = []byte{ + // 577 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xe5, 0xa6, 0x85, 0x64, 0xd2, 0x20, 0xb1, 0x3d, 0x34, 0x35, 0x52, 0x88, 0x2a, 0x55, + 0x0a, 0x87, 0xd8, 0x22, 0xfc, 0x93, 0x10, 0x07, 0x54, 0x09, 0x89, 0x56, 0xd0, 0x83, 0xf9, 0x23, + 0xc4, 0xc5, 0x6c, 0xec, 0x69, 0xb2, 0x89, 0xb3, 0xb6, 0xbc, 0x93, 0x36, 0xe5, 0x82, 0xc4, 0x43, + 0x00, 0x12, 0x07, 0xde, 0x80, 0xe7, 0xe0, 0x46, 0x1f, 0x80, 0x03, 0xca, 0x85, 0xd7, 0x40, 0xf6, + 0xd6, 0x4e, 0xac, 0x10, 0xa9, 0x82, 0x72, 0xdc, 0x6f, 0x66, 0xbe, 0x6f, 0xf6, 0x67, 0x2f, 0x6c, + 0x04, 0x1d, 0x1e, 0xf8, 0x6e, 0xe8, 0xb9, 0x42, 0xd2, 0xa1, 0x15, 0xc5, 0x21, 0x85, 0xe6, 0x06, + 0x61, 0x80, 0x23, 0xa4, 0xf8, 0xc4, 0xa5, 0x30, 0xd2, 0xe2, 0xf6, 0xf7, 0x0a, 0x6c, 0x09, 0x49, + 0x18, 0x1f, 0x72, 0x0f, 0x95, 0x9b, 0xcc, 0xb9, 0xf9, 0x99, 0x3d, 0x86, 0x4a, 0x7e, 0xa8, 0x7f, + 0x34, 0x9a, 0xa5, 0x56, 0xb5, 0x73, 0xc3, 0x5a, 0xda, 0x3f, 0xab, 0xb8, 0x81, 0x50, 0xe4, 0xcc, + 0x86, 0xcd, 0x5f, 0x65, 0xb8, 0x52, 0xac, 0xb2, 0x2d, 0x58, 0x95, 0x7c, 0x84, 0xf5, 0x5b, 0x4d, + 0xa3, 0x55, 0xd9, 0x5d, 0x7b, 0xff, 0x70, 0xa5, 0x6c, 0x38, 0xa9, 0xc4, 0x3c, 0xa8, 0xa9, 0x71, + 0x77, 0x96, 0x93, 0x64, 0x1b, 0xad, 0x6a, 0xe7, 0xc1, 0xb9, 0xb3, 0xad, 0xc2, 0xbc, 0x4b, 0x27, + 0x11, 0x3a, 0x45, 0x4f, 0xf6, 0x1c, 0xca, 0x48, 0x7d, 0x8c, 0x25, 0x52, 0xfd, 0x93, 0xf6, 0xbf, + 0x77, 0x7e, 0xff, 0x6c, 0x54, 0x5b, 0xe7, 0x4e, 0xe6, 0x8f, 0x12, 0xb0, 0xc5, 0x6c, 0xa6, 0x60, + 0x7d, 0x5e, 0xcd, 0x60, 0x1e, 0xfc, 0xcb, 0x85, 0x0a, 0x92, 0x26, 0x5e, 0x08, 0x31, 0x4f, 0x57, + 0xe0, 0xea, 0x42, 0x0f, 0xbb, 0x06, 0x6b, 0x42, 0xfa, 0x38, 0x49, 0xc1, 0xd7, 0x32, 0xf0, 0x5a, + 0x63, 0x23, 0x58, 0x3d, 0x0a, 0xb8, 0xcc, 0x80, 0xbf, 0xba, 0xd8, 0xfd, 0xac, 0xc4, 0x5b, 0x13, + 0x4b, 0x63, 0xcc, 0xaf, 0x06, 0x54, 0x72, 0x8d, 0xbd, 0x85, 0x35, 0x45, 0x9c, 0x30, 0xfb, 0x1c, + 0xde, 0xff, 0x4a, 0xb7, 0xd2, 0x18, 0xbd, 0x88, 0x8e, 0x34, 0x77, 0x00, 0x66, 0x22, 0xdb, 0x84, + 0xcb, 0x69, 0xb3, 0xf0, 0x35, 0x25, 0xe7, 0x52, 0x72, 0xdc, 0xf3, 0xcd, 0x2f, 0x25, 0xa8, 0x15, + 0x3e, 0x3d, 0x8b, 0xa0, 0xa6, 0x8e, 0x05, 0x79, 0x7d, 0xf4, 0xdd, 0x79, 0x74, 0xfb, 0x7f, 0xf9, + 0x2f, 0x59, 0x05, 0x37, 0xbd, 0xe3, 0x7a, 0xa6, 0xbd, 0x4c, 0xa0, 0x7d, 0x5e, 0x01, 0xb6, 0xd8, + 0xc4, 0x82, 0x8c, 0xde, 0xd9, 0x02, 0x2f, 0x2e, 0x6e, 0x81, 0x3f, 0xf0, 0xfa, 0x60, 0x14, 0x80, + 0xed, 0xcc, 0x3f, 0xef, 0x51, 0xe8, 0x9f, 0x3d, 0x6b, 0xa7, 0x96, 0xab, 0x4f, 0x43, 0x1f, 0xd9, + 0x75, 0xa8, 0x4a, 0x4e, 0xe2, 0x08, 0x35, 0xaa, 0xdb, 0x29, 0x5b, 0xd0, 0x52, 0x72, 0xb7, 0xa4, + 0x81, 0x7b, 0x1e, 0x2a, 0xa5, 0x1b, 0xee, 0xe8, 0x06, 0x2d, 0x65, 0x0d, 0x14, 0x8f, 0xe5, 0x30, + 0xad, 0xab, 0xfa, 0xdd, 0x66, 0xa9, 0x55, 0x71, 0x20, 0x95, 0x92, 0xba, 0xba, 0xff, 0x0e, 0xb6, + 0x07, 0x32, 0x8a, 0xdd, 0xa5, 0x97, 0x77, 0x71, 0x42, 0x6c, 0xd3, 0xda, 0x1f, 0x4b, 0x11, 0x61, + 0x7c, 0x80, 0x74, 0x1c, 0xc6, 0x43, 0xf5, 0x0c, 0xa5, 0x0a, 0x63, 0x55, 0xbf, 0x99, 0xb2, 0x33, + 0x97, 0xb3, 0x73, 0x1a, 0x89, 0xfd, 0x5e, 0x5e, 0x7e, 0xd2, 0xe1, 0x41, 0x7e, 0x7a, 0x34, 0xa1, + 0xdd, 0x37, 0xdf, 0xa6, 0x0d, 0xe3, 0x74, 0xda, 0x30, 0x7e, 0x4e, 0x1b, 0xc6, 0x6b, 0xa7, 0x27, + 0xc8, 0x1a, 0xe8, 0x2c, 0x4b, 0x22, 0xd9, 0xc2, 0xc3, 0x2e, 0xc6, 0x3d, 0xbb, 0x8f, 0x3c, 0xa0, + 0x7e, 0x37, 0xa4, 0xb6, 0x90, 0x3d, 0x54, 0xd4, 0x1e, 0x90, 0x68, 0x6b, 0x12, 0x76, 0x34, 0xec, + 0xd9, 0x03, 0x12, 0x36, 0xf7, 0x79, 0x44, 0x18, 0x2b, 0xdb, 0x1d, 0x8c, 0x65, 0xa8, 0x6c, 0xe5, + 0xf5, 0x71, 0xc4, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x24, 0x77, 0x0e, 0x0c, 0xdf, 0x05, 0x00, + 0x00, +} + +func (m *InterfacesL2AlInterface) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterface) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterface) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ethernet != nil { + { + size, err := m.Ethernet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Subinterfaces != nil { + { + size, err := m.Subinterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterface) > 0 { + for iNdEx := len(m.Subinterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Vlan != nil { + { + size, err := m.Vlan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VlanId != nil { + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(*m.VlanId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SwitchedVlan != nil { + { + size, err := m.SwitchedVlan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TrunkVlans) > 0 { + for iNdEx := len(m.TrunkVlans) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TrunkVlans[iNdEx]) + copy(dAtA[i:], m.TrunkVlans[iNdEx]) + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(len(m.TrunkVlans[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + } + if m.AccessVlan != nil { + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(*m.AccessVlan)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NativeVlan != nil { + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(*m.NativeVlan)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InterfaceMode != nil { + i -= len(*m.InterfaceMode) + copy(dAtA[i:], *m.InterfaceMode) + i = encodeVarintL2AldOcIntf(dAtA, i, uint64(len(*m.InterfaceMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintL2AldOcIntf(dAtA []byte, offset int, v uint64) int { + offset -= sovL2AldOcIntf(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesL2AlInterface) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.Subinterfaces != nil { + l = m.Subinterfaces.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.Ethernet != nil { + l = m.Ethernet.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subinterface) > 0 { + for _, e := range m.Subinterface { + l = e.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovL2AldOcIntf(uint64(*m.Index)) + } + if m.Vlan != nil { + l = m.Vlan.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VlanId != nil { + n += 2 + sovL2AldOcIntf(uint64(*m.VlanId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SwitchedVlan != nil { + l = m.SwitchedVlan.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceMode != nil { + l = len(*m.InterfaceMode) + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + if m.NativeVlan != nil { + n += 2 + sovL2AldOcIntf(uint64(*m.NativeVlan)) + } + if m.AccessVlan != nil { + n += 2 + sovL2AldOcIntf(uint64(*m.AccessVlan)) + } + if len(m.TrunkVlans) > 0 { + for _, s := range m.TrunkVlans { + l = len(s) + n += 2 + l + sovL2AldOcIntf(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovL2AldOcIntf(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozL2AldOcIntf(x uint64) (n int) { + return sovL2AldOcIntf(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesL2AlInterface) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_l2al_interface: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_l2al_interface: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesL2AlInterfaceInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subinterfaces == nil { + m.Subinterfaces = &InterfacesL2AlInterfaceInterfaceListSubinterfacesType{} + } + if err := m.Subinterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ethernet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ethernet == nil { + m.Ethernet = &InterfacesL2AlInterfaceInterfaceListEthernetType{} + } + if err := m.Ethernet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterface = append(m.Subinterface, &InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList{}) + if err := m.Subinterface[len(m.Subinterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vlan == nil { + m.Vlan = &InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType{} + } + if err := m.Vlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vlan_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vlan_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListSubinterfacesTypeSubinterfaceListVlanTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanId = &v + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ethernet_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ethernet_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SwitchedVlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SwitchedVlan == nil { + m.SwitchedVlan = &InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType{} + } + if err := m.SwitchedVlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: switched_vlan_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: switched_vlan_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesL2AlInterfaceInterfaceListEthernetTypeSwitchedVlanTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceMode = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NativeVlan", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NativeVlan = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessVlan", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AccessVlan = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrunkVlans", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2AldOcIntf + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrunkVlans = append(m.TrunkVlans, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2AldOcIntf(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2AldOcIntf + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipL2AldOcIntf(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2AldOcIntf + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthL2AldOcIntf + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupL2AldOcIntf + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthL2AldOcIntf + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthL2AldOcIntf = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowL2AldOcIntf = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupL2AldOcIntf = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/l2ald_oc_intf.proto b/schema/l2ald_oc_intf.proto new file mode 100755 index 0000000..08491c6 --- /dev/null +++ b/schema/l2ald_oc_intf.proto @@ -0,0 +1,41 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_l2al_interface jnpr_interfaces_l2al_interface_ext = 49; +} + +message interfaces_l2al_interface { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional subinterfaces_type subinterfaces = 151; + message subinterfaces_type { + message subinterface_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional vlan_type vlan = 151; + message vlan_type { + optional state_type state = 152; + message state_type { + optional uint32 vlan_id = 51; + } + } + } + repeated subinterface_list subinterface = 151; + } + optional ethernet_type ethernet = 152; + message ethernet_type { + optional switched_vlan_type switched_vlan = 151; + message switched_vlan_type { + optional state_type state = 151; + message state_type { + optional string interface_mode = 51; + optional uint32 native_vlan = 52; + optional uint32 access_vlan = 53; + repeated string trunk_vlans = 54; + } + } + } + } + repeated interface_list interface = 151; +} diff --git a/schema/l2cpd_oc.pb.go b/schema/l2cpd_oc.pb.go new file mode 100644 index 0000000..2fc6c35 --- /dev/null +++ b/schema/l2cpd_oc.pb.go @@ -0,0 +1,5891 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: l2cpd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LldpL2Cp struct { + State *LldpL2CpStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Interfaces *LldpL2CpInterfacesType `protobuf:"bytes,152,opt,name=interfaces" json:"interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2Cp) Reset() { *m = LldpL2Cp{} } +func (m *LldpL2Cp) String() string { return proto.CompactTextString(m) } +func (*LldpL2Cp) ProtoMessage() {} +func (*LldpL2Cp) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0} +} +func (m *LldpL2Cp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2Cp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2Cp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2Cp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2Cp.Merge(m, src) +} +func (m *LldpL2Cp) XXX_Size() int { + return m.Size() +} +func (m *LldpL2Cp) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2Cp.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2Cp proto.InternalMessageInfo + +func (m *LldpL2Cp) GetState() *LldpL2CpStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LldpL2Cp) GetInterfaces() *LldpL2CpInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +type LldpL2CpStateType struct { + Enabled *bool `protobuf:"varint,91,opt,name=enabled" json:"enabled,omitempty"` + HelloTimer *uint64 `protobuf:"varint,92,opt,name=hello_timer,json=helloTimer" json:"hello_timer,omitempty"` + SuppressTlvAdvertisement []string `protobuf:"bytes,93,rep,name=suppress_tlv_advertisement,json=suppressTlvAdvertisement" json:"suppress_tlv_advertisement,omitempty"` + SystemName *string `protobuf:"bytes,51,opt,name=system_name,json=systemName" json:"system_name,omitempty"` + SystemDescription *string `protobuf:"bytes,52,opt,name=system_description,json=systemDescription" json:"system_description,omitempty"` + ChassisId *string `protobuf:"bytes,53,opt,name=chassis_id,json=chassisId" json:"chassis_id,omitempty"` + ChassisIdType *string `protobuf:"bytes,54,opt,name=chassis_id_type,json=chassisIdType" json:"chassis_id_type,omitempty"` + Counters *LldpL2CpStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + LocPortIdType *string `protobuf:"bytes,101,opt,name=loc_port_id_type,json=locPortIdType" json:"loc_port_id_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpStateType) Reset() { *m = LldpL2CpStateType{} } +func (m *LldpL2CpStateType) String() string { return proto.CompactTextString(m) } +func (*LldpL2CpStateType) ProtoMessage() {} +func (*LldpL2CpStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 0} +} +func (m *LldpL2CpStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpStateType.Merge(m, src) +} +func (m *LldpL2CpStateType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpStateType proto.InternalMessageInfo + +func (m *LldpL2CpStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *LldpL2CpStateType) GetHelloTimer() uint64 { + if m != nil && m.HelloTimer != nil { + return *m.HelloTimer + } + return 0 +} + +func (m *LldpL2CpStateType) GetSuppressTlvAdvertisement() []string { + if m != nil { + return m.SuppressTlvAdvertisement + } + return nil +} + +func (m *LldpL2CpStateType) GetSystemName() string { + if m != nil && m.SystemName != nil { + return *m.SystemName + } + return "" +} + +func (m *LldpL2CpStateType) GetSystemDescription() string { + if m != nil && m.SystemDescription != nil { + return *m.SystemDescription + } + return "" +} + +func (m *LldpL2CpStateType) GetChassisId() string { + if m != nil && m.ChassisId != nil { + return *m.ChassisId + } + return "" +} + +func (m *LldpL2CpStateType) GetChassisIdType() string { + if m != nil && m.ChassisIdType != nil { + return *m.ChassisIdType + } + return "" +} + +func (m *LldpL2CpStateType) GetCounters() *LldpL2CpStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +func (m *LldpL2CpStateType) GetLocPortIdType() string { + if m != nil && m.LocPortIdType != nil { + return *m.LocPortIdType + } + return "" +} + +type LldpL2CpStateTypeCountersType struct { + FrameIn *uint64 `protobuf:"varint,51,opt,name=frame_in,json=frameIn" json:"frame_in,omitempty"` + FrameOut *uint64 `protobuf:"varint,52,opt,name=frame_out,json=frameOut" json:"frame_out,omitempty"` + FrameErrorIn *uint64 `protobuf:"varint,53,opt,name=frame_error_in,json=frameErrorIn" json:"frame_error_in,omitempty"` + FrameDiscard *uint64 `protobuf:"varint,54,opt,name=frame_discard,json=frameDiscard" json:"frame_discard,omitempty"` + TlvDiscard *uint64 `protobuf:"varint,55,opt,name=tlv_discard,json=tlvDiscard" json:"tlv_discard,omitempty"` + TlvUnknown *uint64 `protobuf:"varint,56,opt,name=tlv_unknown,json=tlvUnknown" json:"tlv_unknown,omitempty"` + LastClear *string `protobuf:"bytes,57,opt,name=last_clear,json=lastClear" json:"last_clear,omitempty"` + TlvAccepted *uint64 `protobuf:"varint,58,opt,name=tlv_accepted,json=tlvAccepted" json:"tlv_accepted,omitempty"` + EntriesAgedOut *uint64 `protobuf:"varint,59,opt,name=entries_aged_out,json=entriesAgedOut" json:"entries_aged_out,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpStateTypeCountersType) Reset() { *m = LldpL2CpStateTypeCountersType{} } +func (m *LldpL2CpStateTypeCountersType) String() string { return proto.CompactTextString(m) } +func (*LldpL2CpStateTypeCountersType) ProtoMessage() {} +func (*LldpL2CpStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 0, 0} +} +func (m *LldpL2CpStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpStateTypeCountersType.Merge(m, src) +} +func (m *LldpL2CpStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpStateTypeCountersType proto.InternalMessageInfo + +func (m *LldpL2CpStateTypeCountersType) GetFrameIn() uint64 { + if m != nil && m.FrameIn != nil { + return *m.FrameIn + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetFrameOut() uint64 { + if m != nil && m.FrameOut != nil { + return *m.FrameOut + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetFrameErrorIn() uint64 { + if m != nil && m.FrameErrorIn != nil { + return *m.FrameErrorIn + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetFrameDiscard() uint64 { + if m != nil && m.FrameDiscard != nil { + return *m.FrameDiscard + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetTlvDiscard() uint64 { + if m != nil && m.TlvDiscard != nil { + return *m.TlvDiscard + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetTlvUnknown() uint64 { + if m != nil && m.TlvUnknown != nil { + return *m.TlvUnknown + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetLastClear() string { + if m != nil && m.LastClear != nil { + return *m.LastClear + } + return "" +} + +func (m *LldpL2CpStateTypeCountersType) GetTlvAccepted() uint64 { + if m != nil && m.TlvAccepted != nil { + return *m.TlvAccepted + } + return 0 +} + +func (m *LldpL2CpStateTypeCountersType) GetEntriesAgedOut() uint64 { + if m != nil && m.EntriesAgedOut != nil { + return *m.EntriesAgedOut + } + return 0 +} + +type LldpL2CpInterfacesType struct { + Interface []*LldpL2CpInterfacesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesType) Reset() { *m = LldpL2CpInterfacesType{} } +func (m *LldpL2CpInterfacesType) String() string { return proto.CompactTextString(m) } +func (*LldpL2CpInterfacesType) ProtoMessage() {} +func (*LldpL2CpInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1} +} +func (m *LldpL2CpInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesType.Merge(m, src) +} +func (m *LldpL2CpInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesType) GetInterface() []*LldpL2CpInterfacesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceList struct { + Name *string `protobuf:"bytes,52,opt,name=name" json:"name,omitempty"` + State *LldpL2CpInterfacesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Neighbors *LldpL2CpInterfacesTypeInterfaceListNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) Reset() { *m = LldpL2CpInterfacesTypeInterfaceList{} } +func (m *LldpL2CpInterfacesTypeInterfaceList) String() string { return proto.CompactTextString(m) } +func (*LldpL2CpInterfacesTypeInterfaceList) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceList.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceList proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) GetState() *LldpL2CpInterfacesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) GetNeighbors() *LldpL2CpInterfacesTypeInterfaceListNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListStateType struct { + Name *string `protobuf:"bytes,53,opt,name=name" json:"name,omitempty"` + Enabled *bool `protobuf:"varint,54,opt,name=enabled" json:"enabled,omitempty"` + Counters *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + LocPortId *string `protobuf:"bytes,55,opt,name=loc_port_id,json=locPortId" json:"loc_port_id,omitempty"` + LocPortDescription *string `protobuf:"bytes,56,opt,name=loc_port_description,json=locPortDescription" json:"loc_port_description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListStateType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListStateType) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) GetCounters() *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) GetLocPortId() string { + if m != nil && m.LocPortId != nil { + return *m.LocPortId + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) GetLocPortDescription() string { + if m != nil && m.LocPortDescription != nil { + return *m.LocPortDescription + } + return "" +} + +type LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType struct { + FrameIn *uint64 `protobuf:"varint,57,opt,name=frame_in,json=frameIn" json:"frame_in,omitempty"` + FrameOut *uint64 `protobuf:"varint,58,opt,name=frame_out,json=frameOut" json:"frame_out,omitempty"` + FrameErrorIn *uint64 `protobuf:"varint,59,opt,name=frame_error_in,json=frameErrorIn" json:"frame_error_in,omitempty"` + FrameDiscard *uint64 `protobuf:"varint,60,opt,name=frame_discard,json=frameDiscard" json:"frame_discard,omitempty"` + TlvDiscard *uint64 `protobuf:"varint,61,opt,name=tlv_discard,json=tlvDiscard" json:"tlv_discard,omitempty"` + TlvUnknown *uint64 `protobuf:"varint,62,opt,name=tlv_unknown,json=tlvUnknown" json:"tlv_unknown,omitempty"` + LastClear *string `protobuf:"bytes,63,opt,name=last_clear,json=lastClear" json:"last_clear,omitempty"` + FrameErrorOut *uint64 `protobuf:"varint,64,opt,name=frame_error_out,json=frameErrorOut" json:"frame_error_out,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 0, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetFrameIn() uint64 { + if m != nil && m.FrameIn != nil { + return *m.FrameIn + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetFrameOut() uint64 { + if m != nil && m.FrameOut != nil { + return *m.FrameOut + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetFrameErrorIn() uint64 { + if m != nil && m.FrameErrorIn != nil { + return *m.FrameErrorIn + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetFrameDiscard() uint64 { + if m != nil && m.FrameDiscard != nil { + return *m.FrameDiscard + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetTlvDiscard() uint64 { + if m != nil && m.TlvDiscard != nil { + return *m.TlvDiscard + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetTlvUnknown() uint64 { + if m != nil && m.TlvUnknown != nil { + return *m.TlvUnknown + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetLastClear() string { + if m != nil && m.LastClear != nil { + return *m.LastClear + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) GetFrameErrorOut() uint64 { + if m != nil && m.FrameErrorOut != nil { + return *m.FrameErrorOut + } + return 0 +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsType struct { + Neighbor []*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsType) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) GetNeighbor() []*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList struct { + Id *string `protobuf:"bytes,66,opt,name=id" json:"id,omitempty"` + State *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + CustomTlvs *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType `protobuf:"bytes,152,opt,name=custom_tlvs,json=customTlvs" json:"custom_tlvs,omitempty"` + Capabilities *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType `protobuf:"bytes,153,opt,name=capabilities" json:"capabilities,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) GetState() *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) GetCustomTlvs() *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType { + if m != nil { + return m.CustomTlvs + } + return nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) GetCapabilities() *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType { + if m != nil { + return m.Capabilities + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType struct { + SystemName *string `protobuf:"bytes,67,opt,name=system_name,json=systemName" json:"system_name,omitempty"` + SystemDescription *string `protobuf:"bytes,68,opt,name=system_description,json=systemDescription" json:"system_description,omitempty"` + ChassisId *string `protobuf:"bytes,69,opt,name=chassis_id,json=chassisId" json:"chassis_id,omitempty"` + ChassisIdType *string `protobuf:"bytes,70,opt,name=chassis_id_type,json=chassisIdType" json:"chassis_id_type,omitempty"` + Id *string `protobuf:"bytes,71,opt,name=id" json:"id,omitempty"` + Age *uint64 `protobuf:"varint,72,opt,name=age" json:"age,omitempty"` + LastUpdate *int64 `protobuf:"varint,73,opt,name=last_update,json=lastUpdate" json:"last_update,omitempty"` + Ttl *uint32 `protobuf:"varint,79,opt,name=ttl" json:"ttl,omitempty"` + PortId *string `protobuf:"bytes,74,opt,name=port_id,json=portId" json:"port_id,omitempty"` + PortIdType *string `protobuf:"bytes,75,opt,name=port_id_type,json=portIdType" json:"port_id_type,omitempty"` + PortDescription *string `protobuf:"bytes,76,opt,name=port_description,json=portDescription" json:"port_description,omitempty"` + ManagementAddress *string `protobuf:"bytes,77,opt,name=management_address,json=managementAddress" json:"management_address,omitempty"` + ManagementAddressType *string `protobuf:"bytes,78,opt,name=management_address_type,json=managementAddressType" json:"management_address_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetSystemName() string { + if m != nil && m.SystemName != nil { + return *m.SystemName + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetSystemDescription() string { + if m != nil && m.SystemDescription != nil { + return *m.SystemDescription + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetChassisId() string { + if m != nil && m.ChassisId != nil { + return *m.ChassisId + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetChassisIdType() string { + if m != nil && m.ChassisIdType != nil { + return *m.ChassisIdType + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetId() string { + if m != nil && m.Id != nil { + return *m.Id + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetAge() uint64 { + if m != nil && m.Age != nil { + return *m.Age + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetLastUpdate() int64 { + if m != nil && m.LastUpdate != nil { + return *m.LastUpdate + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetTtl() uint32 { + if m != nil && m.Ttl != nil { + return *m.Ttl + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetPortId() string { + if m != nil && m.PortId != nil { + return *m.PortId + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetPortIdType() string { + if m != nil && m.PortIdType != nil { + return *m.PortIdType + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetPortDescription() string { + if m != nil && m.PortDescription != nil { + return *m.PortDescription + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetManagementAddress() string { + if m != nil && m.ManagementAddress != nil { + return *m.ManagementAddress + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) GetManagementAddressType() string { + if m != nil && m.ManagementAddressType != nil { + return *m.ManagementAddressType + } + return "" +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType struct { + Tlv []*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList `protobuf:"bytes,79,rep,name=tlv" json:"tlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 1} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) GetTlv() []*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList { + if m != nil { + return m.Tlv + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList struct { + Type *int32 `protobuf:"varint,80,opt,name=type" json:"type,omitempty"` + Oui *string `protobuf:"bytes,81,opt,name=oui" json:"oui,omitempty"` + OuiSubtype *string `protobuf:"bytes,82,opt,name=oui_subtype,json=ouiSubtype" json:"oui_subtype,omitempty"` + State *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) ProtoMessage() { +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 1, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) GetType() int32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) GetOui() string { + if m != nil && m.Oui != nil { + return *m.Oui + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) GetOuiSubtype() string { + if m != nil && m.OuiSubtype != nil { + return *m.OuiSubtype + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) GetState() *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType { + if m != nil { + return m.State + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType struct { + Type *int32 `protobuf:"varint,83,opt,name=type" json:"type,omitempty"` + Oui *string `protobuf:"bytes,84,opt,name=oui" json:"oui,omitempty"` + OuiSubtype *string `protobuf:"bytes,85,opt,name=oui_subtype,json=ouiSubtype" json:"oui_subtype,omitempty"` + Value *string `protobuf:"bytes,86,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) ProtoMessage() { +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 1, 0, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) GetType() int32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) GetOui() string { + if m != nil && m.Oui != nil { + return *m.Oui + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) GetOuiSubtype() string { + if m != nil && m.OuiSubtype != nil { + return *m.OuiSubtype + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType struct { + Capability []*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList `protobuf:"bytes,151,rep,name=capability" json:"capability,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) ProtoMessage() {} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 2} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) GetCapability() []*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList { + if m != nil { + return m.Capability + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList struct { + Name *string `protobuf:"bytes,88,opt,name=name" json:"name,omitempty"` + State *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) ProtoMessage() { +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 2, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) GetState() *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType { + if m != nil { + return m.State + } + return nil +} + +type LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType struct { + Name *string `protobuf:"bytes,89,opt,name=name" json:"name,omitempty"` + Enabled *bool `protobuf:"varint,90,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) Reset() { + *m = LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType{} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) ProtoMessage() { +} +func (*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_c03dcda3397cbbab, []int{0, 1, 0, 1, 0, 2, 0, 0} +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType.Merge(m, src) +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) XXX_Size() int { + return m.Size() +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType proto.InternalMessageInfo + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +var E_JnprLldpL2CpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LldpL2Cp)(nil), + Field: 51, + Name: "jnpr_lldp_l2cp_ext", + Tag: "bytes,51,opt,name=jnpr_lldp_l2cp_ext", + Filename: "l2cpd_oc.proto", +} + +func init() { + proto.RegisterType((*LldpL2Cp)(nil), "lldp_l2cp") + proto.RegisterType((*LldpL2CpStateType)(nil), "lldp_l2cp.state_type") + proto.RegisterType((*LldpL2CpStateTypeCountersType)(nil), "lldp_l2cp.state_type.counters_type") + proto.RegisterType((*LldpL2CpInterfacesType)(nil), "lldp_l2cp.interfaces_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceList)(nil), "lldp_l2cp.interfaces_type.interface_list") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListStateType)(nil), "lldp_l2cp.interfaces_type.interface_list.state_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType)(nil), "lldp_l2cp.interfaces_type.interface_list.state_type.counters_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsType)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.custom_tlvs_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.custom_tlvs_type.tlv_list") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.custom_tlvs_type.tlv_list.state_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.capabilities_type") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.capabilities_type.capability_list") + proto.RegisterType((*LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType)(nil), "lldp_l2cp.interfaces_type.interface_list.neighbors_type.neighbor_list.capabilities_type.capability_list.state_type") + proto.RegisterExtension(E_JnprLldpL2CpExt) +} + +func init() { proto.RegisterFile("l2cpd_oc.proto", fileDescriptor_c03dcda3397cbbab) } + +var fileDescriptor_c03dcda3397cbbab = []byte{ + // 1275 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x73, 0xdb, 0x44, + 0x14, 0x1f, 0xc5, 0x09, 0xb5, 0x5f, 0x62, 0x3b, 0x5d, 0xd2, 0xa9, 0xaa, 0x0e, 0xc1, 0x50, 0xa6, + 0xb8, 0x33, 0xc4, 0x66, 0xd2, 0x3f, 0xb4, 0x69, 0x81, 0x26, 0x6d, 0x4a, 0xd3, 0x86, 0x24, 0x55, + 0x12, 0x5a, 0x0a, 0x8c, 0xba, 0x96, 0xb6, 0xf6, 0x26, 0xb2, 0xa4, 0xd1, 0xae, 0xdc, 0xfa, 0xc0, + 0xa5, 0x37, 0xe0, 0xc8, 0xa1, 0x30, 0x7c, 0x0a, 0x4e, 0x0c, 0x37, 0x38, 0x30, 0xc3, 0xf4, 0xc4, + 0x47, 0x60, 0xf2, 0x0d, 0x38, 0x70, 0x67, 0x76, 0xd7, 0x92, 0xe5, 0x3f, 0x69, 0x3c, 0x9d, 0x84, + 0x9b, 0xf4, 0x7b, 0xbf, 0x7d, 0xbb, 0x6f, 0xdf, 0xfb, 0xbd, 0xb7, 0x50, 0x70, 0xe7, 0xed, 0xc0, + 0xb1, 0x7c, 0xbb, 0x12, 0x84, 0x3e, 0xf7, 0x8d, 0xd7, 0x39, 0x71, 0x49, 0x93, 0xf0, 0xb0, 0x6d, + 0x71, 0x3f, 0x50, 0xe0, 0xdb, 0xbf, 0x9c, 0x86, 0x9c, 0xeb, 0x3a, 0x81, 0x25, 0xc8, 0xe8, 0x3d, + 0x98, 0x60, 0x1c, 0x73, 0xa2, 0x3f, 0xd7, 0x4a, 0x5a, 0x79, 0x72, 0xfe, 0x44, 0x25, 0xb1, 0x55, + 0xa4, 0xc1, 0xe2, 0xed, 0x80, 0x98, 0x8a, 0x84, 0xae, 0x02, 0x50, 0x8f, 0x93, 0xf0, 0x31, 0xb6, + 0x09, 0xd3, 0x7f, 0x50, 0x4b, 0x8c, 0xd4, 0x92, 0xae, 0x55, 0xad, 0x4b, 0xd1, 0x8d, 0x17, 0x13, + 0x00, 0x5d, 0x97, 0x48, 0x87, 0x63, 0xc4, 0xc3, 0x35, 0x97, 0x38, 0xfa, 0x17, 0x25, 0xad, 0x9c, + 0x35, 0xe3, 0x5f, 0xf4, 0x26, 0x4c, 0x36, 0x88, 0xeb, 0xfa, 0x16, 0xa7, 0x4d, 0x12, 0xea, 0x5f, + 0x96, 0xb4, 0xf2, 0xb8, 0x09, 0x12, 0xda, 0x12, 0x08, 0xba, 0x06, 0x06, 0x8b, 0x82, 0x20, 0x24, + 0x8c, 0x59, 0xdc, 0x6d, 0x59, 0xd8, 0x69, 0x91, 0x90, 0x53, 0x46, 0x9a, 0xc4, 0xe3, 0xfa, 0x57, + 0xa5, 0x4c, 0x39, 0x67, 0xea, 0x31, 0x63, 0xcb, 0x6d, 0x2d, 0xa6, 0xed, 0xc2, 0x3d, 0x6b, 0x33, + 0x4e, 0x9a, 0x96, 0x87, 0x9b, 0x44, 0x3f, 0x5f, 0xd2, 0xca, 0x39, 0x13, 0x14, 0xb4, 0x86, 0x9b, + 0x04, 0xcd, 0x01, 0xea, 0x10, 0x1c, 0xc2, 0xec, 0x90, 0x06, 0x9c, 0xfa, 0x9e, 0x7e, 0x41, 0xf2, + 0x8e, 0x2b, 0xcb, 0xcd, 0xae, 0x01, 0xbd, 0x01, 0x60, 0x37, 0x30, 0x63, 0x94, 0x59, 0xd4, 0xd1, + 0x2f, 0x4a, 0x5a, 0xae, 0x83, 0xac, 0x38, 0xe8, 0x2c, 0x14, 0xbb, 0x66, 0x19, 0xba, 0x7e, 0x49, + 0x72, 0xf2, 0x09, 0x67, 0x4b, 0xdc, 0xc7, 0x75, 0xc8, 0xda, 0x7e, 0x24, 0xae, 0x8b, 0xc5, 0xc9, + 0x38, 0x33, 0x34, 0x19, 0x95, 0x98, 0xa6, 0xae, 0x38, 0x59, 0x85, 0xde, 0x85, 0x69, 0xd7, 0xb7, + 0xad, 0xc0, 0x0f, 0x79, 0xb2, 0x15, 0x51, 0x5b, 0xb9, 0xbe, 0xbd, 0xe1, 0x87, 0x5c, 0x6d, 0x65, + 0xfc, 0x36, 0x06, 0xf9, 0x1e, 0x27, 0xe8, 0x14, 0x64, 0x1f, 0x87, 0xb8, 0x49, 0x2c, 0xea, 0xc9, + 0x0b, 0x19, 0x37, 0x8f, 0xc9, 0xff, 0x15, 0x0f, 0x9d, 0x86, 0x9c, 0x32, 0xf9, 0x11, 0x97, 0x97, + 0x30, 0x6e, 0x2a, 0xee, 0x7a, 0xc4, 0xd1, 0x3b, 0x50, 0x50, 0x46, 0x12, 0x86, 0x7e, 0x28, 0x56, + 0x5f, 0x94, 0x8c, 0x29, 0x89, 0x2e, 0x0b, 0x70, 0xc5, 0x43, 0x67, 0x20, 0xaf, 0x58, 0x0e, 0x65, + 0x36, 0x0e, 0x1d, 0x79, 0x01, 0x31, 0xe9, 0xa6, 0xc2, 0x44, 0x5a, 0x44, 0x2e, 0x63, 0xca, 0x07, + 0x2a, 0xeb, 0xdc, 0x6d, 0xf5, 0x11, 0x22, 0x6f, 0xd7, 0xf3, 0x9f, 0x78, 0xfa, 0xe5, 0x84, 0xb0, + 0xad, 0x10, 0x91, 0x08, 0x17, 0x33, 0x6e, 0xd9, 0x2e, 0xc1, 0xa1, 0x7e, 0x45, 0x25, 0x42, 0x20, + 0x37, 0x04, 0x80, 0xde, 0x82, 0x29, 0x59, 0x2c, 0xb6, 0x4d, 0x02, 0x4e, 0x1c, 0x7d, 0x41, 0x3a, + 0x10, 0x3e, 0x17, 0x3b, 0x10, 0x2a, 0xc3, 0x34, 0xf1, 0x78, 0x48, 0x09, 0xb3, 0x70, 0x9d, 0x38, + 0x32, 0xe4, 0xab, 0x92, 0x56, 0xe8, 0xe0, 0x8b, 0x75, 0xe2, 0xac, 0x47, 0xdc, 0xf8, 0x67, 0x06, + 0x8a, 0x7d, 0xc5, 0x8e, 0x6e, 0x43, 0x2e, 0x81, 0x44, 0x0a, 0x33, 0xe5, 0xc9, 0xf9, 0x73, 0xfb, + 0x8b, 0xa3, 0xfb, 0x6f, 0xb9, 0x94, 0x71, 0xb3, 0xbb, 0xd8, 0xf8, 0x7e, 0x06, 0x0a, 0xbd, 0x56, + 0x74, 0x0a, 0xc6, 0x65, 0xb9, 0xca, 0x32, 0x5c, 0x9a, 0x78, 0x76, 0x7d, 0x2c, 0xab, 0x99, 0x12, + 0x42, 0x77, 0xfb, 0x34, 0x7c, 0x61, 0xe4, 0x3d, 0x87, 0x48, 0xfc, 0x3e, 0xe4, 0x3c, 0x42, 0xeb, + 0x8d, 0x9a, 0x1f, 0x26, 0x0a, 0xbf, 0x3c, 0xba, 0xc3, 0x64, 0xad, 0x72, 0xda, 0xf5, 0x65, 0x7c, + 0x37, 0xde, 0x23, 0x7f, 0xd4, 0x89, 0x47, 0xe9, 0x45, 0x05, 0x92, 0x6a, 0x09, 0x97, 0x7a, 0x5b, + 0x82, 0x35, 0x28, 0x8e, 0xa5, 0x57, 0x89, 0x72, 0x5f, 0xed, 0xcc, 0xc2, 0x64, 0x4a, 0x3b, 0xb2, + 0xfa, 0x44, 0xf1, 0xc4, 0xb2, 0x41, 0xef, 0xc3, 0x4c, 0x62, 0x4f, 0x77, 0x85, 0xcb, 0x92, 0x88, + 0x3a, 0xc4, 0x54, 0x5b, 0x30, 0x7e, 0x7a, 0xa9, 0xc8, 0xae, 0xbc, 0x44, 0x64, 0x0b, 0x07, 0x8a, + 0xec, 0xea, 0x28, 0x22, 0xbb, 0x76, 0xb0, 0xc8, 0x3e, 0x3c, 0x48, 0x64, 0x1f, 0x1d, 0x20, 0xb2, + 0x8f, 0xfb, 0x45, 0x76, 0x16, 0x8a, 0xe9, 0xb3, 0x8a, 0x70, 0xae, 0x4b, 0x1f, 0xf9, 0xee, 0x61, + 0x85, 0x7e, 0x7e, 0x2e, 0x40, 0xa1, 0xb7, 0x56, 0x90, 0x0d, 0xd9, 0x18, 0x89, 0xd5, 0x73, 0xeb, + 0x55, 0x0b, 0x2f, 0xf9, 0x55, 0xd2, 0x4a, 0x1c, 0x1b, 0xbf, 0xe6, 0x21, 0xdf, 0x63, 0x43, 0x27, + 0x60, 0x8c, 0x3a, 0xfa, 0x52, 0x5a, 0x56, 0x63, 0xd4, 0x41, 0x8d, 0x3e, 0x51, 0xdd, 0x3b, 0x9c, + 0xa3, 0x0c, 0x51, 0x5c, 0x1b, 0x26, 0xed, 0x88, 0x71, 0xbf, 0x29, 0x66, 0x59, 0xa2, 0xb9, 0xfb, + 0x87, 0xb4, 0x5f, 0xca, 0x75, 0x67, 0x24, 0x2b, 0x64, 0xcb, 0x6d, 0x31, 0xf4, 0x35, 0x4c, 0xd9, + 0x38, 0xc0, 0x35, 0xea, 0x52, 0x4e, 0x09, 0xd3, 0x7f, 0x54, 0x7b, 0x3f, 0x38, 0xac, 0xbd, 0x53, + 0xbe, 0xd5, 0xe6, 0x3d, 0xdb, 0x19, 0x7f, 0x64, 0x7a, 0x5a, 0x42, 0xdf, 0x60, 0xbe, 0x31, 0xe2, + 0x60, 0xbe, 0x39, 0xda, 0x60, 0x5e, 0x1e, 0x61, 0x30, 0xdf, 0x1a, 0x36, 0x98, 0x0b, 0xb2, 0x40, + 0x3e, 0x91, 0x26, 0x51, 0x19, 0xd3, 0x90, 0xc1, 0x75, 0xa2, 0xdf, 0x96, 0x65, 0x2d, 0x3e, 0xc5, + 0xc1, 0xa5, 0x26, 0xa2, 0xc0, 0x11, 0x15, 0xb3, 0x52, 0xd2, 0xca, 0x19, 0x53, 0xca, 0x64, 0x5b, + 0x22, 0x62, 0x09, 0xe7, 0xae, 0xbe, 0x5e, 0xd2, 0xca, 0x79, 0x53, 0x7c, 0xa2, 0x93, 0x70, 0x2c, + 0xee, 0x35, 0x77, 0xa4, 0xe7, 0xd7, 0x02, 0xd5, 0x68, 0x4a, 0x30, 0xd5, 0x33, 0xc0, 0xef, 0xaa, + 0x5b, 0x08, 0x92, 0xe9, 0x8d, 0xce, 0xc1, 0xf4, 0x40, 0x1b, 0x5a, 0x95, 0xac, 0x62, 0xd0, 0xdb, + 0x83, 0xc4, 0x85, 0x35, 0xb1, 0x87, 0xeb, 0xf2, 0xe1, 0x63, 0x61, 0xc7, 0x11, 0x0f, 0x22, 0xfd, + 0x53, 0x75, 0x61, 0x5d, 0xcb, 0xa2, 0x32, 0xa0, 0x4b, 0x70, 0x72, 0x90, 0xae, 0x8e, 0xb1, 0x26, + 0xd7, 0x9c, 0x18, 0x58, 0x23, 0xdf, 0x13, 0x2f, 0x32, 0x30, 0xdd, 0x5f, 0x67, 0x28, 0x84, 0x0c, + 0x77, 0x5b, 0xfa, 0xba, 0x14, 0xf2, 0xa3, 0x23, 0xaa, 0xe6, 0x8a, 0x68, 0x56, 0x52, 0xe2, 0x62, + 0x33, 0xe3, 0xf7, 0x31, 0xc8, 0xc6, 0x88, 0x98, 0x30, 0xf2, 0xe8, 0x1b, 0x25, 0xad, 0x3c, 0x61, + 0xca, 0x6f, 0x91, 0x08, 0x3f, 0xa2, 0xfa, 0x3d, 0x19, 0x8d, 0xf8, 0x14, 0xb9, 0xf3, 0x23, 0x6a, + 0xb1, 0xa8, 0x26, 0xc9, 0xa6, 0xba, 0x6e, 0x3f, 0xa2, 0x9b, 0x0a, 0x41, 0xcf, 0xb4, 0xbe, 0x4e, + 0xb0, 0x7b, 0xd4, 0xb1, 0x0c, 0xf6, 0x08, 0x83, 0xf6, 0xcf, 0x4e, 0x79, 0xd8, 0xcd, 0xc1, 0xc8, + 0xb6, 0xf6, 0x8d, 0x6c, 0x7b, 0x20, 0xb2, 0x19, 0x98, 0x68, 0x61, 0x37, 0x22, 0xfa, 0x67, 0xd2, + 0xa4, 0x7e, 0x8c, 0xe7, 0x19, 0x38, 0x3e, 0x20, 0x5c, 0xf4, 0x8d, 0x06, 0x90, 0xa0, 0xed, 0xb8, + 0x3f, 0x37, 0x8e, 0xaa, 0x51, 0x74, 0x91, 0xb6, 0x4a, 0x6f, 0x6a, 0x73, 0xe3, 0x5f, 0x0d, 0x8a, + 0x7d, 0xf6, 0xe4, 0x79, 0xf4, 0x60, 0xf0, 0x79, 0xf4, 0x6d, 0x7f, 0x02, 0xd9, 0xff, 0x75, 0xea, + 0x21, 0x89, 0x5c, 0x18, 0xfa, 0x08, 0xfa, 0x7c, 0xf8, 0x23, 0xe8, 0x61, 0xcf, 0x23, 0x68, 0x61, + 0x03, 0xd0, 0x8e, 0x17, 0x84, 0x56, 0x72, 0x7a, 0x8b, 0x3c, 0xe5, 0xe8, 0x64, 0xe5, 0x4e, 0xe4, + 0xd1, 0x80, 0x84, 0x6b, 0x84, 0x3f, 0xf1, 0xc3, 0x5d, 0xb6, 0x49, 0x3c, 0x26, 0x1e, 0x6f, 0xe7, + 0x65, 0xb0, 0xd0, 0x0d, 0xd6, 0x2c, 0x8a, 0xe5, 0xab, 0xae, 0x13, 0xac, 0xce, 0xdb, 0xc1, 0xf2, + 0x53, 0xbe, 0xf4, 0xe8, 0xcf, 0xbd, 0x59, 0xed, 0xaf, 0xbd, 0x59, 0xed, 0xef, 0xbd, 0x59, 0xed, + 0xa1, 0x59, 0xa7, 0xbc, 0xb2, 0xa3, 0x9c, 0x55, 0x3c, 0xc2, 0xab, 0xd4, 0x26, 0x35, 0x12, 0xd6, + 0xab, 0x0d, 0x82, 0x5d, 0xde, 0xa8, 0xf9, 0x7c, 0x8e, 0x7a, 0x75, 0xc2, 0xf8, 0xdc, 0x0e, 0xa7, + 0x73, 0x1e, 0xe6, 0xb4, 0x45, 0xaa, 0xc1, 0x6e, 0xbd, 0xba, 0xc3, 0x69, 0x15, 0x3b, 0x38, 0x10, + 0x4f, 0x9d, 0xaa, 0xb5, 0x13, 0x79, 0x3e, 0xab, 0x32, 0xbb, 0x41, 0x9a, 0xf8, 0xbf, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x8f, 0x97, 0x49, 0x9b, 0x93, 0x0e, 0x00, 0x00, +} + +func (m *LldpL2Cp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2Cp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2Cp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LocPortIdType != nil { + i -= len(*m.LocPortIdType) + copy(dAtA[i:], *m.LocPortIdType) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.LocPortIdType))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + if len(m.SuppressTlvAdvertisement) > 0 { + for iNdEx := len(m.SuppressTlvAdvertisement) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SuppressTlvAdvertisement[iNdEx]) + copy(dAtA[i:], m.SuppressTlvAdvertisement[iNdEx]) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(m.SuppressTlvAdvertisement[iNdEx]))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xea + } + } + if m.HelloTimer != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.HelloTimer)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.ChassisIdType != nil { + i -= len(*m.ChassisIdType) + copy(dAtA[i:], *m.ChassisIdType) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.ChassisIdType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ChassisId != nil { + i -= len(*m.ChassisId) + copy(dAtA[i:], *m.ChassisId) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.ChassisId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.SystemDescription != nil { + i -= len(*m.SystemDescription) + copy(dAtA[i:], *m.SystemDescription) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.SystemDescription))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.SystemName != nil { + i -= len(*m.SystemName) + copy(dAtA[i:], *m.SystemName) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.SystemName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EntriesAgedOut != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.EntriesAgedOut)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.TlvAccepted != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.TlvAccepted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.LastClear != nil { + i -= len(*m.LastClear) + copy(dAtA[i:], *m.LastClear) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.LastClear))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.TlvUnknown != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.TlvUnknown)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TlvDiscard != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.TlvDiscard)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.FrameDiscard != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameDiscard)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.FrameErrorIn != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameErrorIn)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.FrameOut != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameOut)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.FrameIn != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameIn)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LocPortDescription != nil { + i -= len(*m.LocPortDescription) + copy(dAtA[i:], *m.LocPortDescription) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.LocPortDescription))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.LocPortId != nil { + i -= len(*m.LocPortId) + copy(dAtA[i:], *m.LocPortId) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.LocPortId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FrameErrorOut != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameErrorOut)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.LastClear != nil { + i -= len(*m.LastClear) + copy(dAtA[i:], *m.LastClear) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.LastClear))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.TlvUnknown != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.TlvUnknown)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.TlvDiscard != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.TlvDiscard)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.FrameDiscard != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameDiscard)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.FrameErrorIn != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameErrorIn)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.FrameOut != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameOut)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.FrameIn != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.FrameIn)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Capabilities != nil { + { + size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.CustomTlvs != nil { + { + size, err := m.CustomTlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x92 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ttl != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.Ttl)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf8 + } + if m.ManagementAddressType != nil { + i -= len(*m.ManagementAddressType) + copy(dAtA[i:], *m.ManagementAddressType) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.ManagementAddressType))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf2 + } + if m.ManagementAddress != nil { + i -= len(*m.ManagementAddress) + copy(dAtA[i:], *m.ManagementAddress) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.ManagementAddress))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xea + } + if m.PortDescription != nil { + i -= len(*m.PortDescription) + copy(dAtA[i:], *m.PortDescription) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.PortDescription))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe2 + } + if m.PortIdType != nil { + i -= len(*m.PortIdType) + copy(dAtA[i:], *m.PortIdType) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.PortIdType))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xda + } + if m.PortId != nil { + i -= len(*m.PortId) + copy(dAtA[i:], *m.PortId) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.PortId))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd2 + } + if m.LastUpdate != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.LastUpdate)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.Age != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.Age)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.Id != nil { + i -= len(*m.Id) + copy(dAtA[i:], *m.Id) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Id))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + if m.ChassisIdType != nil { + i -= len(*m.ChassisIdType) + copy(dAtA[i:], *m.ChassisIdType) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.ChassisIdType))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb2 + } + if m.ChassisId != nil { + i -= len(*m.ChassisId) + copy(dAtA[i:], *m.ChassisId) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.ChassisId))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xaa + } + if m.SystemDescription != nil { + i -= len(*m.SystemDescription) + copy(dAtA[i:], *m.SystemDescription) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.SystemDescription))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa2 + } + if m.SystemName != nil { + i -= len(*m.SystemName) + copy(dAtA[i:], *m.SystemName) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.SystemName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Tlv) > 0 { + for iNdEx := len(m.Tlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xfa + } + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.OuiSubtype != nil { + i -= len(*m.OuiSubtype) + copy(dAtA[i:], *m.OuiSubtype) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.OuiSubtype))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x92 + } + if m.Oui != nil { + i -= len(*m.Oui) + copy(dAtA[i:], *m.Oui) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Oui))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x8a + } + if m.Type != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb2 + } + if m.OuiSubtype != nil { + i -= len(*m.OuiSubtype) + copy(dAtA[i:], *m.OuiSubtype) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.OuiSubtype))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xaa + } + if m.Oui != nil { + i -= len(*m.Oui) + copy(dAtA[i:], *m.Oui) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Oui))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa2 + } + if m.Type != nil { + i = encodeVarintL2CpdOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Capability) > 0 { + for iNdEx := len(m.Capability) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Capability[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintL2CpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintL2CpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xca + } + return len(dAtA) - i, nil +} + +func encodeVarintL2CpdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovL2CpdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LldpL2Cp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemName != nil { + l = len(*m.SystemName) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.SystemDescription != nil { + l = len(*m.SystemDescription) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.ChassisId != nil { + l = len(*m.ChassisId) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.ChassisIdType != nil { + l = len(*m.ChassisIdType) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.HelloTimer != nil { + n += 2 + sovL2CpdOc(uint64(*m.HelloTimer)) + } + if len(m.SuppressTlvAdvertisement) > 0 { + for _, s := range m.SuppressTlvAdvertisement { + l = len(s) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + } + if m.LocPortIdType != nil { + l = len(*m.LocPortIdType) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FrameIn != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameIn)) + } + if m.FrameOut != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameOut)) + } + if m.FrameErrorIn != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameErrorIn)) + } + if m.FrameDiscard != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameDiscard)) + } + if m.TlvDiscard != nil { + n += 2 + sovL2CpdOc(uint64(*m.TlvDiscard)) + } + if m.TlvUnknown != nil { + n += 2 + sovL2CpdOc(uint64(*m.TlvUnknown)) + } + if m.LastClear != nil { + l = len(*m.LastClear) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.TlvAccepted != nil { + n += 2 + sovL2CpdOc(uint64(*m.TlvAccepted)) + } + if m.EntriesAgedOut != nil { + n += 2 + sovL2CpdOc(uint64(*m.EntriesAgedOut)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.LocPortId != nil { + l = len(*m.LocPortId) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.LocPortDescription != nil { + l = len(*m.LocPortDescription) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FrameIn != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameIn)) + } + if m.FrameOut != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameOut)) + } + if m.FrameErrorIn != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameErrorIn)) + } + if m.FrameDiscard != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameDiscard)) + } + if m.TlvDiscard != nil { + n += 2 + sovL2CpdOc(uint64(*m.TlvDiscard)) + } + if m.TlvUnknown != nil { + n += 2 + sovL2CpdOc(uint64(*m.TlvUnknown)) + } + if m.LastClear != nil { + l = len(*m.LastClear) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.FrameErrorOut != nil { + n += 2 + sovL2CpdOc(uint64(*m.FrameErrorOut)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.CustomTlvs != nil { + l = m.CustomTlvs.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Capabilities != nil { + l = m.Capabilities.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemName != nil { + l = len(*m.SystemName) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.SystemDescription != nil { + l = len(*m.SystemDescription) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.ChassisId != nil { + l = len(*m.ChassisId) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.ChassisIdType != nil { + l = len(*m.ChassisIdType) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Id != nil { + l = len(*m.Id) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Age != nil { + n += 2 + sovL2CpdOc(uint64(*m.Age)) + } + if m.LastUpdate != nil { + n += 2 + sovL2CpdOc(uint64(*m.LastUpdate)) + } + if m.PortId != nil { + l = len(*m.PortId) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.PortIdType != nil { + l = len(*m.PortIdType) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.PortDescription != nil { + l = len(*m.PortDescription) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.ManagementAddress != nil { + l = len(*m.ManagementAddress) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.ManagementAddressType != nil { + l = len(*m.ManagementAddressType) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Ttl != nil { + n += 2 + sovL2CpdOc(uint64(*m.Ttl)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tlv) > 0 { + for _, e := range m.Tlv { + l = e.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovL2CpdOc(uint64(*m.Type)) + } + if m.Oui != nil { + l = len(*m.Oui) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.OuiSubtype != nil { + l = len(*m.OuiSubtype) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovL2CpdOc(uint64(*m.Type)) + } + if m.Oui != nil { + l = len(*m.Oui) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.OuiSubtype != nil { + l = len(*m.OuiSubtype) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Capability) > 0 { + for _, e := range m.Capability { + l = e.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovL2CpdOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovL2CpdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozL2CpdOc(x uint64) (n int) { + return sovL2CpdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LldpL2Cp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lldp_l2cp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lldp_l2cp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LldpL2CpStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &LldpL2CpInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemDescription", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemDescription = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChassisId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ChassisId = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChassisIdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ChassisIdType = &s + iNdEx = postIndex + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloTimer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloTimer = &v + case 93: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SuppressTlvAdvertisement", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SuppressTlvAdvertisement = append(m.SuppressTlvAdvertisement, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocPortIdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocPortIdType = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &LldpL2CpStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameIn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameIn = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameOut = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameErrorIn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameErrorIn = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameDiscard", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameDiscard = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlvDiscard", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlvDiscard = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlvUnknown", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlvUnknown = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastClear", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastClear = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlvAccepted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlvAccepted = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EntriesAgedOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EntriesAgedOut = &v + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &LldpL2CpInterfacesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LldpL2CpInterfacesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &LldpL2CpInterfacesTypeInterfaceListNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocPortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocPortId = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocPortDescription", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocPortDescription = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameIn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameIn = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameOut = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameErrorIn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameErrorIn = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameDiscard", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameDiscard = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlvDiscard", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlvDiscard = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TlvUnknown", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TlvUnknown = &v + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastClear", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastClear = &s + iNdEx = postIndex + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameErrorOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FrameErrorOut = &v + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 66: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomTlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CustomTlvs == nil { + m.CustomTlvs = &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType{} + } + if err := m.CustomTlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Capabilities == nil { + m.Capabilities = &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType{} + } + if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 67: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemName = &s + iNdEx = postIndex + case 68: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemDescription", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemDescription = &s + iNdEx = postIndex + case 69: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChassisId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ChassisId = &s + iNdEx = postIndex + case 70: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChassisIdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ChassisIdType = &s + iNdEx = postIndex + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Id = &s + iNdEx = postIndex + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Age = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdate", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastUpdate = &v + case 74: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PortId = &s + iNdEx = postIndex + case 75: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortIdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PortIdType = &s + iNdEx = postIndex + case 76: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortDescription", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PortDescription = &s + iNdEx = postIndex + case 77: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ManagementAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ManagementAddress = &s + iNdEx = postIndex + case 78: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ManagementAddressType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ManagementAddressType = &s + iNdEx = postIndex + case 79: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ttl", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ttl = &v + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: custom_tlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: custom_tlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 79: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tlv = append(m.Tlv, &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList{}) + if err := m.Tlv[len(m.Tlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 81: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Oui", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Oui = &s + iNdEx = postIndex + case 82: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OuiSubtype", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OuiSubtype = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCustomTlvsTypeTlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 84: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Oui", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Oui = &s + iNdEx = postIndex + case 85: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OuiSubtype", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OuiSubtype = &s + iNdEx = postIndex + case 86: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: capabilities_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: capabilities_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Capability = append(m.Capability, &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList{}) + if err := m.Capability[len(m.Capability)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: capability_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: capability_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 88: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LldpL2CpInterfacesTypeInterfaceListNeighborsTypeNeighborListCapabilitiesTypeCapabilityListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 89: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthL2CpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthL2CpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipL2CpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthL2CpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipL2CpdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowL2CpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthL2CpdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupL2CpdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthL2CpdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthL2CpdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowL2CpdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupL2CpdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/l2cpd_oc.proto b/schema/l2cpd_oc.proto new file mode 100755 index 0000000..fe093b1 --- /dev/null +++ b/schema/l2cpd_oc.proto @@ -0,0 +1,109 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional lldp_l2cp jnpr_lldp_l2cp_ext = 51; +} + +message lldp_l2cp { + optional state_type state = 151; + message state_type { + optional bool enabled = 91; + optional uint64 hello_timer = 92; + repeated string suppress_tlv_advertisement = 93; + optional string system_name = 51; + optional string system_description = 52; + optional string chassis_id = 53; + optional string chassis_id_type = 54; + optional counters_type counters = 151; + message counters_type { + optional uint64 frame_in = 51; + optional uint64 frame_out = 52; + optional uint64 frame_error_in = 53; + optional uint64 frame_discard = 54; + optional uint64 tlv_discard = 55; + optional uint64 tlv_unknown = 56; + optional string last_clear = 57; + optional uint64 tlv_accepted = 58; + optional uint64 entries_aged_out = 59; + } + optional string loc_port_id_type = 101; + } + optional interfaces_type interfaces = 152; + message interfaces_type { + message interface_list { + optional string name = 52 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 53; + optional bool enabled = 54; + optional counters_type counters = 151; + message counters_type { + optional uint64 frame_in = 57; + optional uint64 frame_out = 58; + optional uint64 frame_error_in = 59; + optional uint64 frame_discard = 60; + optional uint64 tlv_discard = 61; + optional uint64 tlv_unknown = 62; + optional string last_clear = 63; + optional uint64 frame_error_out = 64; + } + optional string loc_port_id = 55; + optional string loc_port_description = 56; + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string id = 66 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string system_name = 67; + optional string system_description = 68; + optional string chassis_id = 69; + optional string chassis_id_type = 70; + optional string id = 71; + optional uint64 age = 72; + optional int64 last_update = 73; + optional uint32 ttl = 79; + optional string port_id = 74; + optional string port_id_type = 75; + optional string port_description = 76; + optional string management_address = 77; + optional string management_address_type = 78; + } + optional custom_tlvs_type custom_tlvs = 152; + message custom_tlvs_type { + message tlv_list { + optional int32 type = 80; + optional string oui = 81; + optional string oui_subtype = 82; + optional state_type state = 151; + message state_type { + optional int32 type = 83; + optional string oui = 84; + optional string oui_subtype = 85; + optional string value = 86; + } + } + repeated tlv_list tlv = 79; + } + optional capabilities_type capabilities = 153; + message capabilities_type { + message capability_list { + optional string name = 88 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 89; + optional bool enabled = 90; + } + } + repeated capability_list capability = 151; + } + } + repeated neighbor_list neighbor = 151; + } + } + repeated interface_list interface = 151; + } +} diff --git a/schema/lacpd_oc.pb.go b/schema/lacpd_oc.pb.go new file mode 100644 index 0000000..7200647 --- /dev/null +++ b/schema/lacpd_oc.pb.go @@ -0,0 +1,3505 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lacpd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LacpLacp struct { + State *LacpLacpStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Interfaces *LacpLacpInterfacesType `protobuf:"bytes,152,opt,name=interfaces" json:"interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacp) Reset() { *m = LacpLacp{} } +func (m *LacpLacp) String() string { return proto.CompactTextString(m) } +func (*LacpLacp) ProtoMessage() {} +func (*LacpLacp) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0} +} +func (m *LacpLacp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacp) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacp.Merge(m, src) +} +func (m *LacpLacp) XXX_Size() int { + return m.Size() +} +func (m *LacpLacp) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacp.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacp proto.InternalMessageInfo + +func (m *LacpLacp) GetState() *LacpLacpStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LacpLacp) GetInterfaces() *LacpLacpInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +type LacpLacpStateType struct { + SystemPriority *uint32 `protobuf:"varint,51,opt,name=system_priority,json=systemPriority" json:"system_priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpStateType) Reset() { *m = LacpLacpStateType{} } +func (m *LacpLacpStateType) String() string { return proto.CompactTextString(m) } +func (*LacpLacpStateType) ProtoMessage() {} +func (*LacpLacpStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 0} +} +func (m *LacpLacpStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpStateType.Merge(m, src) +} +func (m *LacpLacpStateType) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpStateType proto.InternalMessageInfo + +func (m *LacpLacpStateType) GetSystemPriority() uint32 { + if m != nil && m.SystemPriority != nil { + return *m.SystemPriority + } + return 0 +} + +type LacpLacpInterfacesType struct { + Interface []*LacpLacpInterfacesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesType) Reset() { *m = LacpLacpInterfacesType{} } +func (m *LacpLacpInterfacesType) String() string { return proto.CompactTextString(m) } +func (*LacpLacpInterfacesType) ProtoMessage() {} +func (*LacpLacpInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1} +} +func (m *LacpLacpInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesType.Merge(m, src) +} +func (m *LacpLacpInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesType proto.InternalMessageInfo + +func (m *LacpLacpInterfacesType) GetInterface() []*LacpLacpInterfacesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type LacpLacpInterfacesTypeInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *LacpLacpInterfacesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Members *LacpLacpInterfacesTypeInterfaceListMembersType `protobuf:"bytes,152,opt,name=members" json:"members,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesTypeInterfaceList) Reset() { *m = LacpLacpInterfacesTypeInterfaceList{} } +func (m *LacpLacpInterfacesTypeInterfaceList) String() string { return proto.CompactTextString(m) } +func (*LacpLacpInterfacesTypeInterfaceList) ProtoMessage() {} +func (*LacpLacpInterfacesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1, 0} +} +func (m *LacpLacpInterfacesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceList.Merge(m, src) +} +func (m *LacpLacpInterfacesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesTypeInterfaceList proto.InternalMessageInfo + +func (m *LacpLacpInterfacesTypeInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceList) GetState() *LacpLacpInterfacesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LacpLacpInterfacesTypeInterfaceList) GetMembers() *LacpLacpInterfacesTypeInterfaceListMembersType { + if m != nil { + return m.Members + } + return nil +} + +type LacpLacpInterfacesTypeInterfaceListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Interval *string `protobuf:"bytes,52,opt,name=interval" json:"interval,omitempty"` + LacpMode *string `protobuf:"bytes,53,opt,name=lacp_mode,json=lacpMode" json:"lacp_mode,omitempty"` + SystemIdMac *string `protobuf:"bytes,54,opt,name=system_id_mac,json=systemIdMac" json:"system_id_mac,omitempty"` + SystemPriority *uint32 `protobuf:"varint,55,opt,name=system_priority,json=systemPriority" json:"system_priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) Reset() { + *m = LacpLacpInterfacesTypeInterfaceListStateType{} +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LacpLacpInterfacesTypeInterfaceListStateType) ProtoMessage() {} +func (*LacpLacpInterfacesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1, 0, 0} +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListStateType.Merge(m, src) +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) GetInterval() string { + if m != nil && m.Interval != nil { + return *m.Interval + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) GetLacpMode() string { + if m != nil && m.LacpMode != nil { + return *m.LacpMode + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) GetSystemIdMac() string { + if m != nil && m.SystemIdMac != nil { + return *m.SystemIdMac + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) GetSystemPriority() uint32 { + if m != nil && m.SystemPriority != nil { + return *m.SystemPriority + } + return 0 +} + +type LacpLacpInterfacesTypeInterfaceListMembersType struct { + Member []*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList `protobuf:"bytes,151,rep,name=member" json:"member,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) Reset() { + *m = LacpLacpInterfacesTypeInterfaceListMembersType{} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) String() string { + return proto.CompactTextString(m) +} +func (*LacpLacpInterfacesTypeInterfaceListMembersType) ProtoMessage() {} +func (*LacpLacpInterfacesTypeInterfaceListMembersType) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1, 0, 1} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersType.Merge(m, src) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersType.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersType proto.InternalMessageInfo + +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) GetMember() []*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList { + if m != nil { + return m.Member + } + return nil +} + +type LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + State *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) Reset() { + *m = LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList{} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) String() string { + return proto.CompactTextString(m) +} +func (*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) ProtoMessage() {} +func (*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1, 0, 1, 0} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList.Merge(m, src) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList proto.InternalMessageInfo + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) GetState() *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType { + if m != nil { + return m.State + } + return nil +} + +type LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Activity *string `protobuf:"bytes,52,opt,name=activity" json:"activity,omitempty"` + Timeout *string `protobuf:"bytes,53,opt,name=timeout" json:"timeout,omitempty"` + Synchronization *string `protobuf:"bytes,54,opt,name=synchronization" json:"synchronization,omitempty"` + Aggregatable *bool `protobuf:"varint,55,opt,name=aggregatable" json:"aggregatable,omitempty"` + Collecting *bool `protobuf:"varint,56,opt,name=collecting" json:"collecting,omitempty"` + Distributing *bool `protobuf:"varint,57,opt,name=distributing" json:"distributing,omitempty"` + SystemId *string `protobuf:"bytes,58,opt,name=system_id,json=systemId" json:"system_id,omitempty"` + OperKey *uint32 `protobuf:"varint,59,opt,name=oper_key,json=operKey" json:"oper_key,omitempty"` + PartnerId *string `protobuf:"bytes,61,opt,name=partner_id,json=partnerId" json:"partner_id,omitempty"` + PartnerKey *uint32 `protobuf:"varint,62,opt,name=partner_key,json=partnerKey" json:"partner_key,omitempty"` + PortNum *uint32 `protobuf:"varint,60,opt,name=port_num,json=portNum" json:"port_num,omitempty"` + PartnerPortNum *uint32 `protobuf:"varint,63,opt,name=partner_port_num,json=partnerPortNum" json:"partner_port_num,omitempty"` + Counters *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + MuxState *string `protobuf:"bytes,64,opt,name=mux_state,json=muxState" json:"mux_state,omitempty"` + PartnerTimeout *string `protobuf:"bytes,65,opt,name=partner_timeout,json=partnerTimeout" json:"partner_timeout,omitempty"` + PartnerSynchronization *string `protobuf:"bytes,66,opt,name=partner_synchronization,json=partnerSynchronization" json:"partner_synchronization,omitempty"` + PartnerAggregatable *bool `protobuf:"varint,67,opt,name=partner_aggregatable,json=partnerAggregatable" json:"partner_aggregatable,omitempty"` + PartnerCollecting *bool `protobuf:"varint,68,opt,name=partner_collecting,json=partnerCollecting" json:"partner_collecting,omitempty"` + PartnerDistributing *bool `protobuf:"varint,69,opt,name=partner_distributing,json=partnerDistributing" json:"partner_distributing,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) Reset() { + *m = LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType{} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) ProtoMessage() {} +func (*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1, 0, 1, 0, 0} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType.Merge(m, src) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType proto.InternalMessageInfo + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetActivity() string { + if m != nil && m.Activity != nil { + return *m.Activity + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetTimeout() string { + if m != nil && m.Timeout != nil { + return *m.Timeout + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetSynchronization() string { + if m != nil && m.Synchronization != nil { + return *m.Synchronization + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetAggregatable() bool { + if m != nil && m.Aggregatable != nil { + return *m.Aggregatable + } + return false +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetCollecting() bool { + if m != nil && m.Collecting != nil { + return *m.Collecting + } + return false +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetDistributing() bool { + if m != nil && m.Distributing != nil { + return *m.Distributing + } + return false +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetOperKey() uint32 { + if m != nil && m.OperKey != nil { + return *m.OperKey + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerId() string { + if m != nil && m.PartnerId != nil { + return *m.PartnerId + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerKey() uint32 { + if m != nil && m.PartnerKey != nil { + return *m.PartnerKey + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPortNum() uint32 { + if m != nil && m.PortNum != nil { + return *m.PortNum + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerPortNum() uint32 { + if m != nil && m.PartnerPortNum != nil { + return *m.PartnerPortNum + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetCounters() *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetMuxState() string { + if m != nil && m.MuxState != nil { + return *m.MuxState + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerTimeout() string { + if m != nil && m.PartnerTimeout != nil { + return *m.PartnerTimeout + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerSynchronization() string { + if m != nil && m.PartnerSynchronization != nil { + return *m.PartnerSynchronization + } + return "" +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerAggregatable() bool { + if m != nil && m.PartnerAggregatable != nil { + return *m.PartnerAggregatable + } + return false +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerCollecting() bool { + if m != nil && m.PartnerCollecting != nil { + return *m.PartnerCollecting + } + return false +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) GetPartnerDistributing() bool { + if m != nil && m.PartnerDistributing != nil { + return *m.PartnerDistributing + } + return false +} + +type LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType struct { + LacpInPkts *uint64 `protobuf:"varint,51,opt,name=lacp_in_pkts,json=lacpInPkts" json:"lacp_in_pkts,omitempty"` + LacpOutPkts *uint64 `protobuf:"varint,52,opt,name=lacp_out_pkts,json=lacpOutPkts" json:"lacp_out_pkts,omitempty"` + LacpRxErrors *uint64 `protobuf:"varint,53,opt,name=lacp_rx_errors,json=lacpRxErrors" json:"lacp_rx_errors,omitempty"` + LacpTxErrors *uint64 `protobuf:"varint,54,opt,name=lacp_tx_errors,json=lacpTxErrors" json:"lacp_tx_errors,omitempty"` + LacpUnknownErrors *uint64 `protobuf:"varint,55,opt,name=lacp_unknown_errors,json=lacpUnknownErrors" json:"lacp_unknown_errors,omitempty"` + LacpErrors *uint64 `protobuf:"varint,56,opt,name=lacp_errors,json=lacpErrors" json:"lacp_errors,omitempty"` + CollectionTime *string `protobuf:"bytes,57,opt,name=collection_time,json=collectionTime" json:"collection_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) Reset() { + *m = LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType{} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) ProtoMessage() { +} +func (*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_8bfdbbc56d07876e, []int{0, 1, 0, 1, 0, 0, 0} +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType.Merge(m, src) +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType proto.InternalMessageInfo + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetLacpInPkts() uint64 { + if m != nil && m.LacpInPkts != nil { + return *m.LacpInPkts + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetLacpOutPkts() uint64 { + if m != nil && m.LacpOutPkts != nil { + return *m.LacpOutPkts + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetLacpRxErrors() uint64 { + if m != nil && m.LacpRxErrors != nil { + return *m.LacpRxErrors + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetLacpTxErrors() uint64 { + if m != nil && m.LacpTxErrors != nil { + return *m.LacpTxErrors + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetLacpUnknownErrors() uint64 { + if m != nil && m.LacpUnknownErrors != nil { + return *m.LacpUnknownErrors + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetLacpErrors() uint64 { + if m != nil && m.LacpErrors != nil { + return *m.LacpErrors + } + return 0 +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) GetCollectionTime() string { + if m != nil && m.CollectionTime != nil { + return *m.CollectionTime + } + return "" +} + +var E_JnprLacpLacpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LacpLacp)(nil), + Field: 52, + Name: "jnpr_lacp_lacp_ext", + Tag: "bytes,52,opt,name=jnpr_lacp_lacp_ext", + Filename: "lacpd_oc.proto", +} + +func init() { + proto.RegisterType((*LacpLacp)(nil), "lacp_lacp") + proto.RegisterType((*LacpLacpStateType)(nil), "lacp_lacp.state_type") + proto.RegisterType((*LacpLacpInterfacesType)(nil), "lacp_lacp.interfaces_type") + proto.RegisterType((*LacpLacpInterfacesTypeInterfaceList)(nil), "lacp_lacp.interfaces_type.interface_list") + proto.RegisterType((*LacpLacpInterfacesTypeInterfaceListStateType)(nil), "lacp_lacp.interfaces_type.interface_list.state_type") + proto.RegisterType((*LacpLacpInterfacesTypeInterfaceListMembersType)(nil), "lacp_lacp.interfaces_type.interface_list.members_type") + proto.RegisterType((*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList)(nil), "lacp_lacp.interfaces_type.interface_list.members_type.member_list") + proto.RegisterType((*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType)(nil), "lacp_lacp.interfaces_type.interface_list.members_type.member_list.state_type") + proto.RegisterType((*LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType)(nil), "lacp_lacp.interfaces_type.interface_list.members_type.member_list.state_type.counters_type") + proto.RegisterExtension(E_JnprLacpLacpExt) +} + +func init() { proto.RegisterFile("lacpd_oc.proto", fileDescriptor_8bfdbbc56d07876e) } + +var fileDescriptor_8bfdbbc56d07876e = []byte{ + // 934 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0x96, 0x4b, 0x4a, 0x9c, 0xd7, 0x89, 0x4d, 0x27, 0x40, 0x37, 0x0b, 0xa4, 0x51, 0x40, 0x8a, + 0x91, 0x88, 0x2d, 0x4a, 0x9a, 0x94, 0x96, 0x8f, 0x36, 0x6d, 0x24, 0x42, 0x49, 0x09, 0x9b, 0x72, + 0xa1, 0x87, 0x65, 0xbc, 0x3b, 0x38, 0x63, 0x7b, 0x67, 0x56, 0xb3, 0xb3, 0xa9, 0xcd, 0x91, 0x3f, + 0x01, 0x12, 0x77, 0xfe, 0x03, 0xff, 0x80, 0x23, 0xf7, 0x5e, 0x50, 0xc4, 0x85, 0x3f, 0xc0, 0x19, + 0xcd, 0xd7, 0x7e, 0xb8, 0x41, 0xaa, 0xa0, 0x87, 0x56, 0x9a, 0xe7, 0x7d, 0x9e, 0x77, 0xde, 0x79, + 0x9f, 0x67, 0x1d, 0x68, 0x4f, 0x70, 0x94, 0xc6, 0x21, 0x8f, 0x7a, 0xa9, 0xe0, 0x92, 0xfb, 0xab, + 0x92, 0x4c, 0x48, 0x42, 0xa4, 0x98, 0x85, 0x92, 0xa7, 0x06, 0xdc, 0xfc, 0xab, 0x03, 0x4b, 0x8a, + 0x17, 0xaa, 0xff, 0xd0, 0x7b, 0x70, 0x39, 0x93, 0x58, 0x12, 0xef, 0xc7, 0xc6, 0x46, 0xa3, 0xdb, + 0xba, 0xfe, 0x5a, 0xaf, 0xa8, 0xf5, 0x74, 0x21, 0x94, 0xb3, 0x94, 0x04, 0x86, 0x84, 0x6e, 0x03, + 0x50, 0x26, 0x89, 0xf8, 0x0e, 0x47, 0x24, 0xf3, 0x7e, 0x32, 0x12, 0xbf, 0x22, 0x29, 0xab, 0x46, + 0x57, 0xa1, 0xfb, 0x37, 0x00, 0xca, 0x8e, 0x68, 0x0b, 0x3a, 0xd9, 0x2c, 0x93, 0x24, 0x09, 0x53, + 0x41, 0xb9, 0xa0, 0x72, 0xe6, 0x7d, 0xb0, 0xd1, 0xe8, 0xae, 0x04, 0x6d, 0x03, 0x1f, 0x5b, 0xd4, + 0xff, 0xb5, 0x0d, 0x9d, 0xb9, 0xb6, 0xe8, 0x33, 0x58, 0x2a, 0x20, 0x35, 0xf9, 0x4b, 0xdd, 0xd6, + 0xf5, 0x77, 0xff, 0x7d, 0x8c, 0xf2, 0x1c, 0x4e, 0x68, 0x26, 0x83, 0x52, 0xec, 0x3f, 0x5d, 0x81, + 0x76, 0xbd, 0x8a, 0xd6, 0x60, 0x81, 0xe1, 0x84, 0xe8, 0x71, 0x96, 0xf6, 0x2f, 0xff, 0x70, 0xe7, + 0x52, 0xb3, 0x11, 0x68, 0x08, 0x3d, 0x98, 0xdb, 0xd6, 0xce, 0x73, 0xdf, 0x79, 0xc1, 0x32, 0xbf, + 0x82, 0xc5, 0x84, 0x24, 0x03, 0x22, 0x8a, 0x4d, 0xee, 0x3e, 0x7f, 0x3b, 0xab, 0x34, 0x0d, 0x5d, + 0x1f, 0xff, 0x97, 0x46, 0x6d, 0xc7, 0xa8, 0xfa, 0x12, 0xfb, 0x04, 0x1f, 0x9a, 0xba, 0xd5, 0x19, + 0x9e, 0x78, 0x3b, 0x1a, 0x2f, 0xce, 0xe8, 0x0d, 0x9b, 0x8c, 0x84, 0xc7, 0xc4, 0xbb, 0x61, 0x8a, + 0x0a, 0x38, 0xe2, 0x31, 0x41, 0x9b, 0xb0, 0x62, 0x0d, 0xa3, 0x71, 0x98, 0xe0, 0xc8, 0xdb, 0xd5, + 0x84, 0x96, 0x01, 0x0f, 0xe3, 0x23, 0x1c, 0x5d, 0x64, 0xea, 0xde, 0x85, 0xa6, 0xfe, 0x09, 0xb0, + 0x5c, 0x7d, 0x02, 0x7a, 0x0c, 0x2f, 0x9b, 0xb3, 0xb3, 0x73, 0xff, 0xbf, 0xed, 0xc2, 0x1e, 0x8c, + 0xcf, 0xb6, 0xa5, 0xff, 0xf7, 0x12, 0xb4, 0x2a, 0x38, 0x7a, 0xbb, 0x1a, 0x9f, 0x9a, 0xcd, 0x25, + 0x8e, 0xe2, 0x39, 0xaf, 0x8f, 0xfe, 0xff, 0x40, 0xcf, 0x86, 0xc0, 0x7f, 0xda, 0xac, 0x39, 0xf6, + 0xe6, 0x33, 0x93, 0x55, 0x47, 0xf2, 0xa1, 0x89, 0x23, 0x49, 0xcf, 0xd4, 0x5e, 0xad, 0x77, 0xee, + 0x8c, 0x3c, 0x58, 0x94, 0x34, 0x21, 0x3c, 0x97, 0xd6, 0x39, 0x77, 0x44, 0x5d, 0x65, 0x0a, 0x8b, + 0x4e, 0x05, 0x67, 0xf4, 0x7b, 0x2c, 0x29, 0x67, 0xd6, 0xba, 0x79, 0x18, 0x6d, 0xc2, 0x32, 0x1e, + 0x0e, 0x05, 0x19, 0x62, 0x89, 0x07, 0x13, 0xa2, 0xbd, 0x6b, 0x06, 0x35, 0x0c, 0xad, 0x03, 0x44, + 0x7c, 0x32, 0x21, 0x91, 0xa4, 0x6c, 0xe8, 0xdd, 0xd4, 0x8c, 0x0a, 0xa2, 0x7a, 0xc4, 0x34, 0x93, + 0x82, 0x0e, 0x72, 0xcd, 0xf8, 0xd0, 0xf4, 0xa8, 0x62, 0x2a, 0x67, 0x45, 0x94, 0xbc, 0x5b, 0xe6, + 0x21, 0x2e, 0x46, 0x68, 0x0d, 0x9a, 0x3c, 0x25, 0x22, 0x1c, 0x93, 0x99, 0x77, 0x5b, 0x87, 0x67, + 0x51, 0x9d, 0x1f, 0x90, 0x19, 0x7a, 0x0b, 0x20, 0xc5, 0x42, 0x32, 0x22, 0x94, 0xf0, 0x63, 0xb3, + 0x1e, 0x8b, 0x1c, 0xc6, 0xe8, 0x1a, 0xb4, 0x5c, 0x59, 0x89, 0x3f, 0xd1, 0x62, 0xa7, 0x50, 0xfa, + 0x35, 0x68, 0xa6, 0x5c, 0xc8, 0x90, 0xe5, 0x89, 0xf7, 0x91, 0x69, 0xad, 0xce, 0x0f, 0xf3, 0x04, + 0x75, 0xe1, 0x15, 0xa7, 0x2d, 0x28, 0x9f, 0x9a, 0xe8, 0x5a, 0xfc, 0xd8, 0x32, 0xa7, 0xd0, 0x8c, + 0x78, 0xae, 0x3c, 0xc9, 0x5c, 0x34, 0x1e, 0xbf, 0xd0, 0x68, 0xf4, 0x5c, 0x7b, 0x13, 0x94, 0xe2, + 0x36, 0xb5, 0xb6, 0x24, 0x9f, 0x86, 0x26, 0x95, 0x77, 0xcc, 0xda, 0x92, 0x7c, 0x7a, 0xa2, 0x7f, + 0x4d, 0xb6, 0xa0, 0xe3, 0x1e, 0xe0, 0x72, 0x70, 0x57, 0x53, 0xdc, 0xfc, 0x8f, 0x6c, 0x1c, 0xf6, + 0xe0, 0xaa, 0x23, 0xce, 0xc7, 0x62, 0x5f, 0x0b, 0x5e, 0xb7, 0xe5, 0x93, 0xb9, 0x74, 0xbc, 0x0f, + 0xaf, 0x3a, 0x61, 0x2d, 0x25, 0xf7, 0xb4, 0xc3, 0xab, 0xb6, 0x76, 0xb7, 0x1a, 0x96, 0x6d, 0x40, + 0x4e, 0x52, 0x09, 0xcd, 0x7d, 0x2d, 0xb8, 0x62, 0x2b, 0xf7, 0xca, 0xec, 0x54, 0x6e, 0xa8, 0x65, + 0xe8, 0xa0, 0x76, 0xc3, 0xfd, 0x4a, 0xc9, 0xff, 0xf9, 0x12, 0xac, 0xd4, 0xf6, 0x85, 0x36, 0x60, + 0x59, 0xbb, 0x41, 0x59, 0x98, 0x8e, 0x65, 0xa6, 0xbf, 0xa2, 0x85, 0x00, 0x14, 0x76, 0xc8, 0x8e, + 0xc7, 0x32, 0x53, 0xbf, 0x64, 0x9a, 0xc1, 0x73, 0x69, 0x28, 0x3b, 0x9a, 0xd2, 0x52, 0xe0, 0x97, + 0xb9, 0xd4, 0x9c, 0x77, 0xcc, 0x1f, 0xd3, 0x50, 0x4c, 0x43, 0x22, 0x04, 0x17, 0x99, 0xfe, 0xaa, + 0x16, 0x02, 0xdd, 0x3b, 0x98, 0x1e, 0x68, 0xac, 0x60, 0xc9, 0x82, 0xb5, 0x5b, 0xb2, 0x1e, 0x39, + 0x56, 0x0f, 0x56, 0x35, 0x2b, 0x67, 0x63, 0xc6, 0x9f, 0x30, 0x47, 0xdd, 0xd3, 0xd4, 0x2b, 0xaa, + 0xf4, 0xb5, 0xa9, 0x58, 0xfe, 0x35, 0xd0, 0xa3, 0x38, 0xde, 0xcd, 0xf2, 0x01, 0x96, 0xb0, 0x05, + 0x1d, 0xb7, 0x4e, 0xce, 0xb4, 0xdd, 0xfa, 0x33, 0x5b, 0x0a, 0xda, 0x25, 0xac, 0xec, 0xbe, 0x75, + 0x0c, 0x68, 0xc4, 0x52, 0x11, 0x16, 0xf1, 0x0c, 0xc9, 0x54, 0xa2, 0xab, 0xbd, 0xcf, 0x73, 0x46, + 0x53, 0x22, 0x1e, 0x12, 0xf9, 0x84, 0x8b, 0x71, 0x76, 0x42, 0x58, 0xa6, 0x6e, 0xda, 0xd1, 0x69, + 0x86, 0x32, 0xcd, 0x41, 0x47, 0xc9, 0xbf, 0xc0, 0x51, 0xaa, 0xfe, 0x1d, 0x4c, 0xe5, 0xfe, 0xb7, + 0xbf, 0x9d, 0xaf, 0x37, 0x7e, 0x3f, 0x5f, 0x6f, 0xfc, 0x71, 0xbe, 0xde, 0xf8, 0x26, 0x18, 0x52, + 0xd9, 0x1b, 0x99, 0x66, 0x3d, 0x46, 0x64, 0x9f, 0x46, 0x64, 0x40, 0xc4, 0xb0, 0x7f, 0x4a, 0xf0, + 0x44, 0x9e, 0x0e, 0xb8, 0xdc, 0xa6, 0x6c, 0x48, 0x32, 0xb9, 0x3d, 0x92, 0x74, 0x9b, 0x61, 0x49, + 0xcf, 0x48, 0x3f, 0x1d, 0x0f, 0xfb, 0x23, 0x49, 0xfb, 0x38, 0xc6, 0xa9, 0xb2, 0xad, 0x1f, 0x8e, + 0x72, 0xc6, 0xb3, 0x7e, 0x16, 0x9d, 0x92, 0x04, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x42, 0xc6, + 0xb2, 0x20, 0xc5, 0x08, 0x00, 0x00, +} + +func (m *LacpLacp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SystemPriority != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.SystemPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Members != nil { + { + size, err := m.Members.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SystemPriority != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.SystemPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.SystemIdMac != nil { + i -= len(*m.SystemIdMac) + copy(dAtA[i:], *m.SystemIdMac) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.SystemIdMac))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.LacpMode != nil { + i -= len(*m.LacpMode) + copy(dAtA[i:], *m.LacpMode) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.LacpMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Interval != nil { + i -= len(*m.Interval) + copy(dAtA[i:], *m.Interval) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Interval))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Member) > 0 { + for iNdEx := len(m.Member) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Member[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLacpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.PartnerDistributing != nil { + i-- + if *m.PartnerDistributing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.PartnerCollecting != nil { + i-- + if *m.PartnerCollecting { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.PartnerAggregatable != nil { + i-- + if *m.PartnerAggregatable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.PartnerSynchronization != nil { + i -= len(*m.PartnerSynchronization) + copy(dAtA[i:], *m.PartnerSynchronization) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.PartnerSynchronization))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x92 + } + if m.PartnerTimeout != nil { + i -= len(*m.PartnerTimeout) + copy(dAtA[i:], *m.PartnerTimeout) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.PartnerTimeout))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x8a + } + if m.MuxState != nil { + i -= len(*m.MuxState) + copy(dAtA[i:], *m.MuxState) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.MuxState))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.PartnerPortNum != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.PartnerPortNum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.PartnerKey != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.PartnerKey)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.PartnerId != nil { + i -= len(*m.PartnerId) + copy(dAtA[i:], *m.PartnerId) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.PartnerId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.PortNum != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.PortNum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.OperKey != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.OperKey)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.SystemId != nil { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.Distributing != nil { + i-- + if *m.Distributing { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Collecting != nil { + i-- + if *m.Collecting { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Aggregatable != nil { + i-- + if *m.Aggregatable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Synchronization != nil { + i -= len(*m.Synchronization) + copy(dAtA[i:], *m.Synchronization) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Synchronization))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Timeout != nil { + i -= len(*m.Timeout) + copy(dAtA[i:], *m.Timeout) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Timeout))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Activity != nil { + i -= len(*m.Activity) + copy(dAtA[i:], *m.Activity) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Activity))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CollectionTime != nil { + i -= len(*m.CollectionTime) + copy(dAtA[i:], *m.CollectionTime) + i = encodeVarintLacpdOc(dAtA, i, uint64(len(*m.CollectionTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.LacpErrors != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.LacpErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.LacpUnknownErrors != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.LacpUnknownErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.LacpTxErrors != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.LacpTxErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.LacpRxErrors != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.LacpRxErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.LacpOutPkts != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.LacpOutPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LacpInPkts != nil { + i = encodeVarintLacpdOc(dAtA, i, uint64(*m.LacpInPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintLacpdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovLacpdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LacpLacp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemPriority != nil { + n += 2 + sovLacpdOc(uint64(*m.SystemPriority)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Members != nil { + l = m.Members.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Interval != nil { + l = len(*m.Interval) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.LacpMode != nil { + l = len(*m.LacpMode) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.SystemIdMac != nil { + l = len(*m.SystemIdMac) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.SystemPriority != nil { + n += 2 + sovLacpdOc(uint64(*m.SystemPriority)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Member) > 0 { + for _, e := range m.Member { + l = e.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Activity != nil { + l = len(*m.Activity) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Timeout != nil { + l = len(*m.Timeout) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Synchronization != nil { + l = len(*m.Synchronization) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.Aggregatable != nil { + n += 3 + } + if m.Collecting != nil { + n += 3 + } + if m.Distributing != nil { + n += 3 + } + if m.SystemId != nil { + l = len(*m.SystemId) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.OperKey != nil { + n += 2 + sovLacpdOc(uint64(*m.OperKey)) + } + if m.PortNum != nil { + n += 2 + sovLacpdOc(uint64(*m.PortNum)) + } + if m.PartnerId != nil { + l = len(*m.PartnerId) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.PartnerKey != nil { + n += 2 + sovLacpdOc(uint64(*m.PartnerKey)) + } + if m.PartnerPortNum != nil { + n += 2 + sovLacpdOc(uint64(*m.PartnerPortNum)) + } + if m.MuxState != nil { + l = len(*m.MuxState) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.PartnerTimeout != nil { + l = len(*m.PartnerTimeout) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.PartnerSynchronization != nil { + l = len(*m.PartnerSynchronization) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.PartnerAggregatable != nil { + n += 3 + } + if m.PartnerCollecting != nil { + n += 3 + } + if m.PartnerDistributing != nil { + n += 3 + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LacpInPkts != nil { + n += 2 + sovLacpdOc(uint64(*m.LacpInPkts)) + } + if m.LacpOutPkts != nil { + n += 2 + sovLacpdOc(uint64(*m.LacpOutPkts)) + } + if m.LacpRxErrors != nil { + n += 2 + sovLacpdOc(uint64(*m.LacpRxErrors)) + } + if m.LacpTxErrors != nil { + n += 2 + sovLacpdOc(uint64(*m.LacpTxErrors)) + } + if m.LacpUnknownErrors != nil { + n += 2 + sovLacpdOc(uint64(*m.LacpUnknownErrors)) + } + if m.LacpErrors != nil { + n += 2 + sovLacpdOc(uint64(*m.LacpErrors)) + } + if m.CollectionTime != nil { + l = len(*m.CollectionTime) + n += 2 + l + sovLacpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLacpdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLacpdOc(x uint64) (n int) { + return sovLacpdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LacpLacp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lacp_lacp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lacp_lacp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LacpLacpStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &LacpLacpInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SystemPriority = &v + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &LacpLacpInterfacesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LacpLacpInterfacesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Members == nil { + m.Members = &LacpLacpInterfacesTypeInterfaceListMembersType{} + } + if err := m.Members.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interval", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interval = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LacpMode = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemIdMac", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemIdMac = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SystemPriority = &v + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: members_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: members_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Member = append(m.Member, &LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList{}) + if err := m.Member[len(m.Member)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: member_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: member_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Activity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Activity = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Timeout = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Synchronization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Synchronization = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregatable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Aggregatable = &b + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Collecting", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Collecting = &b + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Distributing", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Distributing = &b + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OperKey", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OperKey = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PortNum", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PortNum = &v + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PartnerId = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerKey", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PartnerKey = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerPortNum", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PartnerPortNum = &v + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MuxState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MuxState = &s + iNdEx = postIndex + case 65: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerTimeout", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PartnerTimeout = &s + iNdEx = postIndex + case 66: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerSynchronization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PartnerSynchronization = &s + iNdEx = postIndex + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerAggregatable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PartnerAggregatable = &b + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerCollecting", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PartnerCollecting = &b + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartnerDistributing", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PartnerDistributing = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LacpLacpInterfacesTypeInterfaceListMembersTypeMemberListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpInPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LacpInPkts = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpOutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LacpOutPkts = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpRxErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LacpRxErrors = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpTxErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LacpTxErrors = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpUnknownErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LacpUnknownErrors = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LacpErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LacpErrors = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLacpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLacpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CollectionTime = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLacpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLacpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLacpdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLacpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLacpdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLacpdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLacpdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLacpdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLacpdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLacpdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/lacpd_oc.proto b/schema/lacpd_oc.proto new file mode 100755 index 0000000..1e88525 --- /dev/null +++ b/schema/lacpd_oc.proto @@ -0,0 +1,68 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional lacp_lacp jnpr_lacp_lacp_ext = 52; +} + +message lacp_lacp { + optional state_type state = 151; + message state_type { + optional uint32 system_priority = 51; + } + optional interfaces_type interfaces = 152; + message interfaces_type { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional string interval = 52; + optional string lacp_mode = 53; + optional string system_id_mac = 54; + optional uint32 system_priority = 55; + } + optional members_type members = 152; + message members_type { + message member_list { + optional string interface = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional string activity = 52; + optional string timeout = 53; + optional string synchronization = 54; + optional bool aggregatable = 55; + optional bool collecting = 56; + optional bool distributing = 57; + optional string system_id = 58; + optional uint32 oper_key = 59; + optional string partner_id = 61; + optional uint32 partner_key = 62; + optional uint32 port_num = 60; + optional uint32 partner_port_num = 63; + optional counters_type counters = 151; + message counters_type { + optional uint64 lacp_in_pkts = 51; + optional uint64 lacp_out_pkts = 52; + optional uint64 lacp_rx_errors = 53; + optional uint64 lacp_tx_errors = 54; + optional uint64 lacp_unknown_errors = 55; + optional uint64 lacp_errors = 56; + optional string collection_time = 57; + } + optional string mux_state = 64; + optional string partner_timeout = 65; + optional string partner_synchronization = 66; + optional bool partner_aggregatable = 67; + optional bool partner_collecting = 68; + optional bool partner_distributing = 69; + } + } + repeated member_list member = 151; + } + } + repeated interface_list interface = 151; + } +} diff --git a/schema/ldp_lsp_ingress_stats.pb.go b/schema/ldp_lsp_ingress_stats.pb.go new file mode 100644 index 0000000..d9abd86 --- /dev/null +++ b/schema/ldp_lsp_ingress_stats.pb.go @@ -0,0 +1,1001 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ldp_lsp_ingress_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LdpLspIngressStats struct { + // List of LDP LSP stats record + LdpLspIngressStatsRecords []*LdpLspIngressRecord `protobuf:"bytes,1,rep,name=ldp_lsp_ingress_stats_records,json=ldpLspIngressStatsRecords" json:"ldp_lsp_ingress_stats_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpLspIngressStats) Reset() { *m = LdpLspIngressStats{} } +func (m *LdpLspIngressStats) String() string { return proto.CompactTextString(m) } +func (*LdpLspIngressStats) ProtoMessage() {} +func (*LdpLspIngressStats) Descriptor() ([]byte, []int) { + return fileDescriptor_44710a4bf6e19bef, []int{0} +} +func (m *LdpLspIngressStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpLspIngressStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpLspIngressStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpLspIngressStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpLspIngressStats.Merge(m, src) +} +func (m *LdpLspIngressStats) XXX_Size() int { + return m.Size() +} +func (m *LdpLspIngressStats) XXX_DiscardUnknown() { + xxx_messageInfo_LdpLspIngressStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpLspIngressStats proto.InternalMessageInfo + +func (m *LdpLspIngressStats) GetLdpLspIngressStatsRecords() []*LdpLspIngressRecord { + if m != nil { + return m.LdpLspIngressStatsRecords + } + return nil +} + +// +// LDP LSP Ingress statistics record +// +type LdpLspIngressRecord struct { + // IP prefix + IpPrefix *string `protobuf:"bytes,1,req,name=ip_prefix,json=ipPrefix" json:"ip_prefix,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *LabelDistributionProtocolLspIngressStats `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpLspIngressRecord) Reset() { *m = LdpLspIngressRecord{} } +func (m *LdpLspIngressRecord) String() string { return proto.CompactTextString(m) } +func (*LdpLspIngressRecord) ProtoMessage() {} +func (*LdpLspIngressRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_44710a4bf6e19bef, []int{1} +} +func (m *LdpLspIngressRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpLspIngressRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpLspIngressRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpLspIngressRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpLspIngressRecord.Merge(m, src) +} +func (m *LdpLspIngressRecord) XXX_Size() int { + return m.Size() +} +func (m *LdpLspIngressRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LdpLspIngressRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpLspIngressRecord proto.InternalMessageInfo + +func (m *LdpLspIngressRecord) GetIpPrefix() string { + if m != nil && m.IpPrefix != nil { + return *m.IpPrefix + } + return "" +} + +func (m *LdpLspIngressRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *LdpLspIngressRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *LdpLspIngressRecord) GetStats() *LabelDistributionProtocolLspIngressStats { + if m != nil { + return m.Stats + } + return nil +} + +type LabelDistributionProtocolLspIngressStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LabelDistributionProtocolLspIngressStats) Reset() { + *m = LabelDistributionProtocolLspIngressStats{} +} +func (m *LabelDistributionProtocolLspIngressStats) String() string { return proto.CompactTextString(m) } +func (*LabelDistributionProtocolLspIngressStats) ProtoMessage() {} +func (*LabelDistributionProtocolLspIngressStats) Descriptor() ([]byte, []int) { + return fileDescriptor_44710a4bf6e19bef, []int{2} +} +func (m *LabelDistributionProtocolLspIngressStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LabelDistributionProtocolLspIngressStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LabelDistributionProtocolLspIngressStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LabelDistributionProtocolLspIngressStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabelDistributionProtocolLspIngressStats.Merge(m, src) +} +func (m *LabelDistributionProtocolLspIngressStats) XXX_Size() int { + return m.Size() +} +func (m *LabelDistributionProtocolLspIngressStats) XXX_DiscardUnknown() { + xxx_messageInfo_LabelDistributionProtocolLspIngressStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LabelDistributionProtocolLspIngressStats proto.InternalMessageInfo + +func (m *LabelDistributionProtocolLspIngressStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LabelDistributionProtocolLspIngressStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LabelDistributionProtocolLspIngressStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *LabelDistributionProtocolLspIngressStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprLdpLspIngressStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LdpLspIngressStats)(nil), + Field: 153, + Name: "jnpr_ldp_lsp_ingress_stats_ext", + Tag: "bytes,153,opt,name=jnpr_ldp_lsp_ingress_stats_ext", + Filename: "ldp_lsp_ingress_stats.proto", +} + +func init() { + proto.RegisterType((*LdpLspIngressStats)(nil), "LdpLspIngressStats") + proto.RegisterType((*LdpLspIngressRecord)(nil), "LdpLspIngressRecord") + proto.RegisterType((*LabelDistributionProtocolLspIngressStats)(nil), "LabelDistributionProtocolLspIngressStats") + proto.RegisterExtension(E_JnprLdpLspIngressStatsExt) +} + +func init() { proto.RegisterFile("ldp_lsp_ingress_stats.proto", fileDescriptor_44710a4bf6e19bef) } + +var fileDescriptor_44710a4bf6e19bef = []byte{ + // 461 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x3f, 0x8e, 0xd3, 0x40, + 0x18, 0xc5, 0x35, 0xd9, 0x44, 0x64, 0x27, 0xd0, 0x4c, 0x90, 0xf0, 0xb2, 0x22, 0x58, 0x29, 0x90, + 0x29, 0x62, 0x4b, 0x5b, 0x50, 0xd0, 0x80, 0x56, 0x50, 0x2c, 0x8a, 0x56, 0x2b, 0xaf, 0x44, 0x41, + 0x33, 0x8c, 0xed, 0x6f, 0x9d, 0x71, 0x9c, 0x99, 0xd1, 0xcc, 0x67, 0xc8, 0xb6, 0xdc, 0x82, 0x7b, + 0x70, 0x08, 0x4a, 0x0e, 0x40, 0x81, 0x72, 0x12, 0x64, 0x0f, 0x09, 0x7f, 0x92, 0x82, 0xf6, 0xbd, + 0xdf, 0xfb, 0xec, 0xf7, 0x6c, 0x7a, 0x5a, 0x17, 0x86, 0xd7, 0xce, 0x70, 0xa9, 0x4a, 0x0b, 0xce, + 0x71, 0x87, 0x02, 0x5d, 0x6c, 0xac, 0x46, 0xfd, 0x70, 0x8c, 0x50, 0xc3, 0x0a, 0xd0, 0xde, 0x72, + 0xd4, 0xc6, 0x8b, 0xd3, 0x9a, 0xb2, 0x79, 0x61, 0xe6, 0xce, 0x5c, 0xf8, 0xc4, 0x75, 0x1b, 0x60, + 0x6f, 0xe9, 0xa3, 0x83, 0x97, 0xb8, 0x85, 0x5c, 0xdb, 0xc2, 0x05, 0x24, 0x3c, 0x8a, 0x46, 0x67, + 0xf7, 0xe3, 0xbf, 0xb2, 0x69, 0x67, 0xa6, 0x27, 0xf5, 0xde, 0x41, 0xef, 0xb8, 0xe9, 0x77, 0x42, + 0xc7, 0x07, 0x22, 0x6c, 0x4a, 0x8f, 0xa5, 0xe1, 0xc6, 0xc2, 0x8d, 0x5c, 0x07, 0x24, 0xec, 0x45, + 0xc7, 0xe7, 0x83, 0x4f, 0x2f, 0x7b, 0x43, 0x92, 0x0e, 0xa5, 0xb9, 0xea, 0x64, 0xf6, 0x8c, 0x8e, + 0xa5, 0x72, 0x28, 0x54, 0x0e, 0x5c, 0x16, 0xa0, 0x50, 0xde, 0x48, 0xb0, 0x41, 0x2f, 0x24, 0xd1, + 0xbd, 0x2d, 0xcd, 0xb6, 0xc4, 0xc5, 0x0e, 0x60, 0x11, 0xbd, 0x9b, 0xeb, 0x46, 0x21, 0x58, 0xae, + 0xc4, 0x0a, 0x82, 0xa3, 0x90, 0xfc, 0x3e, 0x3f, 0xfa, 0x65, 0x5d, 0x8a, 0x15, 0xb0, 0x17, 0x74, + 0xd0, 0xb5, 0x0c, 0xfa, 0x21, 0x89, 0x46, 0x67, 0x4f, 0xe3, 0xb9, 0xc8, 0xa0, 0x7e, 0x25, 0x1d, + 0x5a, 0x99, 0x35, 0x28, 0xb5, 0xba, 0x6a, 0x37, 0xcb, 0x75, 0xfd, 0x6f, 0x3d, 0x9f, 0x9b, 0x7e, + 0x21, 0x34, 0xfa, 0xdf, 0x0c, 0x7b, 0x4c, 0xef, 0x18, 0x91, 0x2f, 0x01, 0xdb, 0x35, 0x49, 0xd4, + 0xef, 0x5e, 0x29, 0x20, 0xe9, 0x56, 0x65, 0xa7, 0x74, 0x90, 0xdd, 0x22, 0xb8, 0xae, 0xe2, 0xce, + 0xf6, 0x1a, 0x7b, 0x42, 0x47, 0x9e, 0xe3, 0x56, 0xa0, 0x2f, 0xe5, 0x91, 0x90, 0xa4, 0xd4, 0x3b, + 0xa9, 0x40, 0x68, 0x97, 0x6d, 0x03, 0x9e, 0xea, 0xff, 0x49, 0x0d, 0x5b, 0xbd, 0x65, 0x9e, 0x1b, + 0x3a, 0xa9, 0x94, 0xb1, 0xfc, 0xf0, 0x27, 0x87, 0x35, 0xb2, 0x07, 0xf1, 0x9b, 0x46, 0x49, 0x03, + 0xf6, 0x12, 0xf0, 0xa3, 0xb6, 0x4b, 0x77, 0x0d, 0xca, 0x69, 0xeb, 0x82, 0xcf, 0xa4, 0x9b, 0x6a, + 0x1c, 0xef, 0xff, 0x44, 0xe9, 0x49, 0x7b, 0x74, 0x5f, 0x7f, 0xbd, 0xc6, 0xf3, 0xf7, 0x5f, 0x37, + 0x13, 0xf2, 0x6d, 0x33, 0x21, 0x3f, 0x36, 0x13, 0xf2, 0x2e, 0x2d, 0x25, 0xc6, 0x95, 0x7f, 0x40, + 0xac, 0x00, 0x13, 0x99, 0x43, 0x06, 0xb6, 0x4c, 0x16, 0x20, 0x6a, 0x5c, 0x64, 0x1a, 0x67, 0x52, + 0x95, 0xe0, 0x70, 0x56, 0xa1, 0x9c, 0x29, 0x81, 0xf2, 0x03, 0x24, 0x66, 0x59, 0x26, 0x15, 0xca, + 0x44, 0x14, 0xc2, 0x20, 0x58, 0x97, 0xf0, 0xaa, 0x51, 0xda, 0x25, 0x2e, 0x5f, 0xc0, 0x4a, 0xfc, + 0x0c, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xd7, 0xd6, 0x98, 0x0a, 0x03, 0x00, 0x00, +} + +func (m *LdpLspIngressStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpLspIngressStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpLspIngressStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LdpLspIngressStatsRecords) > 0 { + for iNdEx := len(m.LdpLspIngressStatsRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LdpLspIngressStatsRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LdpLspIngressRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpLspIngressRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpLspIngressRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier != nil { + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.IpPrefix == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("ip_prefix") + } else { + i -= len(*m.IpPrefix) + copy(dAtA[i:], *m.IpPrefix) + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(len(*m.IpPrefix))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LabelDistributionProtocolLspIngressStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LabelDistributionProtocolLspIngressStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LabelDistributionProtocolLspIngressStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintLdpLspIngressStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintLdpLspIngressStats(dAtA []byte, offset int, v uint64) int { + offset -= sovLdpLspIngressStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LdpLspIngressStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LdpLspIngressStatsRecords) > 0 { + for _, e := range m.LdpLspIngressStatsRecords { + l = e.Size() + n += 1 + l + sovLdpLspIngressStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LdpLspIngressRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IpPrefix != nil { + l = len(*m.IpPrefix) + n += 1 + l + sovLdpLspIngressStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovLdpLspIngressStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovLdpLspIngressStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovLdpLspIngressStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LabelDistributionProtocolLspIngressStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovLdpLspIngressStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLdpLspIngressStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovLdpLspIngressStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovLdpLspIngressStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLdpLspIngressStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLdpLspIngressStats(x uint64) (n int) { + return sovLdpLspIngressStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LdpLspIngressStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpLspIngressStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpLspIngressStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LdpLspIngressStatsRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LdpLspIngressStatsRecords = append(m.LdpLspIngressStatsRecords, &LdpLspIngressRecord{}) + if err := m.LdpLspIngressStatsRecords[len(m.LdpLspIngressStatsRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LdpLspIngressRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpLspIngressRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpLspIngressRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPrefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IpPrefix = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &LabelDistributionProtocolLspIngressStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("ip_prefix") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LabelDistributionProtocolLspIngressStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LabelDistributionProtocolLspIngressStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelDistributionProtocolLspIngressStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipLdpLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLdpLspIngressStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpLspIngressStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLdpLspIngressStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLdpLspIngressStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLdpLspIngressStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLdpLspIngressStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLdpLspIngressStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLdpLspIngressStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ldp_lsp_ingress_stats.proto b/schema/ldp_lsp_ingress_stats.proto new file mode 100755 index 0000000..9707c13 --- /dev/null +++ b/schema/ldp_lsp_ingress_stats.proto @@ -0,0 +1,46 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 50 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LdpLspIngressStats jnpr_ldp_lsp_ingress_stats_ext = 153; +} + +// +// Top-level message +// +message LdpLspIngressStats { + // List of LDP LSP stats record + repeated LdpLspIngressRecord ldp_lsp_ingress_stats_records = 1; +} + +// +// LDP LSP Ingress statistics record +// +message LdpLspIngressRecord { + + // IP prefix + required string ip_prefix = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Statistics + optional LabelDistributionProtocolLspIngressStats stats = 4; +} + +message LabelDistributionProtocolLspIngressStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/ldp_lsp_transit_stats.pb.go b/schema/ldp_lsp_transit_stats.pb.go new file mode 100644 index 0000000..d02c15f --- /dev/null +++ b/schema/ldp_lsp_transit_stats.pb.go @@ -0,0 +1,1001 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ldp_lsp_transit_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LdpLspTransitStats struct { + // List of LDP LSP stats record + LdpLspTransitStatsRecords []*LdpLspTransitRecord `protobuf:"bytes,1,rep,name=ldp_lsp_transit_stats_records,json=ldpLspTransitStatsRecords" json:"ldp_lsp_transit_stats_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpLspTransitStats) Reset() { *m = LdpLspTransitStats{} } +func (m *LdpLspTransitStats) String() string { return proto.CompactTextString(m) } +func (*LdpLspTransitStats) ProtoMessage() {} +func (*LdpLspTransitStats) Descriptor() ([]byte, []int) { + return fileDescriptor_a6b688fa85cbb319, []int{0} +} +func (m *LdpLspTransitStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpLspTransitStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpLspTransitStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpLspTransitStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpLspTransitStats.Merge(m, src) +} +func (m *LdpLspTransitStats) XXX_Size() int { + return m.Size() +} +func (m *LdpLspTransitStats) XXX_DiscardUnknown() { + xxx_messageInfo_LdpLspTransitStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpLspTransitStats proto.InternalMessageInfo + +func (m *LdpLspTransitStats) GetLdpLspTransitStatsRecords() []*LdpLspTransitRecord { + if m != nil { + return m.LdpLspTransitStatsRecords + } + return nil +} + +// +// LDP LSP Transit statistics record +// +type LdpLspTransitRecord struct { + // IP prefix + IpPrefix *string `protobuf:"bytes,1,req,name=ip_prefix,json=ipPrefix" json:"ip_prefix,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *LabelDistributionProtocolLspTransitStats `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpLspTransitRecord) Reset() { *m = LdpLspTransitRecord{} } +func (m *LdpLspTransitRecord) String() string { return proto.CompactTextString(m) } +func (*LdpLspTransitRecord) ProtoMessage() {} +func (*LdpLspTransitRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_a6b688fa85cbb319, []int{1} +} +func (m *LdpLspTransitRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpLspTransitRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpLspTransitRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpLspTransitRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpLspTransitRecord.Merge(m, src) +} +func (m *LdpLspTransitRecord) XXX_Size() int { + return m.Size() +} +func (m *LdpLspTransitRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LdpLspTransitRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpLspTransitRecord proto.InternalMessageInfo + +func (m *LdpLspTransitRecord) GetIpPrefix() string { + if m != nil && m.IpPrefix != nil { + return *m.IpPrefix + } + return "" +} + +func (m *LdpLspTransitRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *LdpLspTransitRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *LdpLspTransitRecord) GetStats() *LabelDistributionProtocolLspTransitStats { + if m != nil { + return m.Stats + } + return nil +} + +type LabelDistributionProtocolLspTransitStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LabelDistributionProtocolLspTransitStats) Reset() { + *m = LabelDistributionProtocolLspTransitStats{} +} +func (m *LabelDistributionProtocolLspTransitStats) String() string { return proto.CompactTextString(m) } +func (*LabelDistributionProtocolLspTransitStats) ProtoMessage() {} +func (*LabelDistributionProtocolLspTransitStats) Descriptor() ([]byte, []int) { + return fileDescriptor_a6b688fa85cbb319, []int{2} +} +func (m *LabelDistributionProtocolLspTransitStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LabelDistributionProtocolLspTransitStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LabelDistributionProtocolLspTransitStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LabelDistributionProtocolLspTransitStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabelDistributionProtocolLspTransitStats.Merge(m, src) +} +func (m *LabelDistributionProtocolLspTransitStats) XXX_Size() int { + return m.Size() +} +func (m *LabelDistributionProtocolLspTransitStats) XXX_DiscardUnknown() { + xxx_messageInfo_LabelDistributionProtocolLspTransitStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LabelDistributionProtocolLspTransitStats proto.InternalMessageInfo + +func (m *LabelDistributionProtocolLspTransitStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LabelDistributionProtocolLspTransitStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LabelDistributionProtocolLspTransitStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *LabelDistributionProtocolLspTransitStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprLdpLspTransitStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LdpLspTransitStats)(nil), + Field: 154, + Name: "jnpr_ldp_lsp_transit_stats_ext", + Tag: "bytes,154,opt,name=jnpr_ldp_lsp_transit_stats_ext", + Filename: "ldp_lsp_transit_stats.proto", +} + +func init() { + proto.RegisterType((*LdpLspTransitStats)(nil), "LdpLspTransitStats") + proto.RegisterType((*LdpLspTransitRecord)(nil), "LdpLspTransitRecord") + proto.RegisterType((*LabelDistributionProtocolLspTransitStats)(nil), "LabelDistributionProtocolLspTransitStats") + proto.RegisterExtension(E_JnprLdpLspTransitStatsExt) +} + +func init() { proto.RegisterFile("ldp_lsp_transit_stats.proto", fileDescriptor_a6b688fa85cbb319) } + +var fileDescriptor_a6b688fa85cbb319 = []byte{ + // 461 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbd, 0x8e, 0xd3, 0x40, + 0x14, 0x85, 0x35, 0xbb, 0x89, 0xc8, 0x4e, 0xa0, 0x99, 0x20, 0xe1, 0x65, 0x45, 0xb0, 0x52, 0x20, + 0x53, 0xc4, 0x96, 0xb6, 0xa0, 0xa0, 0x01, 0xad, 0xa0, 0x00, 0x45, 0xab, 0x95, 0x17, 0x51, 0xd0, + 0x0c, 0x13, 0xfb, 0x6e, 0x72, 0x1d, 0x67, 0x66, 0x34, 0x73, 0x03, 0xd9, 0x96, 0xc7, 0xe0, 0x39, + 0x78, 0x08, 0x4a, 0x1e, 0x80, 0x02, 0xe5, 0x49, 0x90, 0x3d, 0x64, 0xf9, 0x49, 0x0a, 0xda, 0x73, + 0xbe, 0x73, 0xed, 0x73, 0x6c, 0x7e, 0x52, 0x97, 0x56, 0xd6, 0xde, 0x4a, 0x72, 0x4a, 0x7b, 0x24, + 0xe9, 0x49, 0x91, 0x4f, 0xad, 0x33, 0x64, 0xee, 0x0f, 0x08, 0x6a, 0x58, 0x02, 0xb9, 0x6b, 0x49, + 0xc6, 0x06, 0x71, 0x54, 0x73, 0x31, 0x29, 0xed, 0xc4, 0xdb, 0x37, 0x21, 0x71, 0xd9, 0x04, 0xc4, + 0x5b, 0xfe, 0x60, 0xef, 0x25, 0xe9, 0xa0, 0x30, 0xae, 0xf4, 0x11, 0x8b, 0x0f, 0x93, 0xfe, 0xe9, + 0xdd, 0xf4, 0xaf, 0x6c, 0xde, 0x9a, 0xf9, 0x71, 0xbd, 0x73, 0x30, 0x38, 0x7e, 0xf4, 0x9d, 0xf1, + 0xc1, 0x9e, 0x88, 0x18, 0xf1, 0x23, 0xb4, 0xd2, 0x3a, 0xb8, 0xc2, 0x75, 0xc4, 0xe2, 0x83, 0xe4, + 0xe8, 0xac, 0xfb, 0xe9, 0xf9, 0x41, 0x8f, 0xe5, 0x3d, 0xb4, 0x17, 0xad, 0x2c, 0x9e, 0xf0, 0x01, + 0x6a, 0x4f, 0x4a, 0x17, 0x20, 0xb1, 0x04, 0x4d, 0x78, 0x85, 0xe0, 0xa2, 0x83, 0x98, 0x25, 0x77, + 0xb6, 0xb4, 0xd8, 0x12, 0xaf, 0x6e, 0x00, 0x91, 0xf0, 0xdb, 0x85, 0x59, 0x69, 0x02, 0x27, 0xb5, + 0x5a, 0x42, 0x74, 0x18, 0xb3, 0xdf, 0xe7, 0xfb, 0xbf, 0xac, 0x73, 0xb5, 0x04, 0xf1, 0x8c, 0x77, + 0xdb, 0x96, 0x51, 0x27, 0x66, 0x49, 0xff, 0xf4, 0x71, 0x3a, 0x51, 0x53, 0xa8, 0x5f, 0xa0, 0x27, + 0x87, 0xd3, 0x15, 0xa1, 0xd1, 0x17, 0xcd, 0x66, 0x85, 0xa9, 0xff, 0xad, 0x17, 0x72, 0xa3, 0x2f, + 0x8c, 0x27, 0xff, 0x9b, 0x11, 0x0f, 0xf9, 0x2d, 0xab, 0x8a, 0x05, 0x50, 0xb3, 0x26, 0x4b, 0x3a, + 0xed, 0x2b, 0x45, 0x2c, 0xdf, 0xaa, 0xe2, 0x84, 0x77, 0xa7, 0xd7, 0x04, 0xbe, 0xad, 0x78, 0x63, + 0x07, 0x4d, 0x3c, 0xe2, 0xfd, 0xc0, 0x49, 0xa7, 0x28, 0x94, 0x0a, 0x48, 0xcc, 0x72, 0x1e, 0x9c, + 0x5c, 0x11, 0x34, 0xcb, 0x36, 0x81, 0x40, 0x75, 0xfe, 0xa4, 0x7a, 0x8d, 0xde, 0x30, 0x4f, 0x2d, + 0x1f, 0x56, 0xda, 0x3a, 0xb9, 0xff, 0x93, 0xc3, 0x9a, 0xc4, 0xbd, 0xf4, 0xf5, 0x4a, 0xa3, 0x05, + 0x77, 0x0e, 0xf4, 0xd1, 0xb8, 0x85, 0xbf, 0x04, 0xed, 0x8d, 0xf3, 0xd1, 0x67, 0xd6, 0x4e, 0x35, + 0x48, 0x77, 0x7f, 0xa2, 0xfc, 0xb8, 0x39, 0xba, 0xab, 0xbf, 0x5c, 0xd3, 0xd9, 0xfb, 0xaf, 0x9b, + 0x21, 0xfb, 0xb6, 0x19, 0xb2, 0x1f, 0x9b, 0x21, 0x7b, 0x97, 0xcf, 0x90, 0xd2, 0x2a, 0x3c, 0x20, + 0xd5, 0x40, 0x19, 0x16, 0x30, 0x05, 0x37, 0xcb, 0xe6, 0xa0, 0x6a, 0x9a, 0x4f, 0x0d, 0x8d, 0x51, + 0xcf, 0xc0, 0xd3, 0xb8, 0x22, 0x1c, 0x6b, 0x45, 0xf8, 0x01, 0x32, 0xbb, 0x98, 0x65, 0x15, 0x61, + 0xa6, 0x4a, 0x65, 0x09, 0x9c, 0xcf, 0x64, 0xb5, 0xd2, 0xc6, 0x67, 0xbe, 0x98, 0xc3, 0x52, 0xfd, + 0x0c, 0x00, 0x00, 0xff, 0xff, 0xff, 0x6f, 0x2b, 0x4e, 0x0a, 0x03, 0x00, 0x00, +} + +func (m *LdpLspTransitStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpLspTransitStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpLspTransitStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LdpLspTransitStatsRecords) > 0 { + for iNdEx := len(m.LdpLspTransitStatsRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LdpLspTransitStatsRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LdpLspTransitRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpLspTransitRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpLspTransitRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier != nil { + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.IpPrefix == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("ip_prefix") + } else { + i -= len(*m.IpPrefix) + copy(dAtA[i:], *m.IpPrefix) + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(len(*m.IpPrefix))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LabelDistributionProtocolLspTransitStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LabelDistributionProtocolLspTransitStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LabelDistributionProtocolLspTransitStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintLdpLspTransitStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintLdpLspTransitStats(dAtA []byte, offset int, v uint64) int { + offset -= sovLdpLspTransitStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LdpLspTransitStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LdpLspTransitStatsRecords) > 0 { + for _, e := range m.LdpLspTransitStatsRecords { + l = e.Size() + n += 1 + l + sovLdpLspTransitStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LdpLspTransitRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IpPrefix != nil { + l = len(*m.IpPrefix) + n += 1 + l + sovLdpLspTransitStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovLdpLspTransitStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovLdpLspTransitStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovLdpLspTransitStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LabelDistributionProtocolLspTransitStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovLdpLspTransitStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLdpLspTransitStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovLdpLspTransitStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovLdpLspTransitStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLdpLspTransitStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLdpLspTransitStats(x uint64) (n int) { + return sovLdpLspTransitStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LdpLspTransitStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpLspTransitStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpLspTransitStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LdpLspTransitStatsRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LdpLspTransitStatsRecords = append(m.LdpLspTransitStatsRecords, &LdpLspTransitRecord{}) + if err := m.LdpLspTransitStatsRecords[len(m.LdpLspTransitStatsRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LdpLspTransitRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpLspTransitRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpLspTransitRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPrefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IpPrefix = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &LabelDistributionProtocolLspTransitStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("ip_prefix") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LabelDistributionProtocolLspTransitStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LabelDistributionProtocolLspTransitStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelDistributionProtocolLspTransitStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipLdpLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLdpLspTransitStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpLspTransitStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLdpLspTransitStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLdpLspTransitStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLdpLspTransitStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLdpLspTransitStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLdpLspTransitStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLdpLspTransitStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ldp_lsp_transit_stats.proto b/schema/ldp_lsp_transit_stats.proto new file mode 100755 index 0000000..6692cbb --- /dev/null +++ b/schema/ldp_lsp_transit_stats.proto @@ -0,0 +1,46 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 50 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LdpLspTransitStats jnpr_ldp_lsp_transit_stats_ext = 154; +} + +// +// Top-level message +// +message LdpLspTransitStats { + // List of LDP LSP stats record + repeated LdpLspTransitRecord ldp_lsp_transit_stats_records = 1; +} + +// +// LDP LSP Transit statistics record +// +message LdpLspTransitRecord { + + // IP prefix + required string ip_prefix = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Statistics + optional LabelDistributionProtocolLspTransitStats stats = 4; +} + +message LabelDistributionProtocolLspTransitStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/ldp_p2mp_lsp_stats.pb.go b/schema/ldp_p2mp_lsp_stats.pb.go new file mode 100644 index 0000000..bfe8689 --- /dev/null +++ b/schema/ldp_p2mp_lsp_stats.pb.go @@ -0,0 +1,1141 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ldp_p2mp_lsp_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LdpP2MpLspStats struct { + // List of LDP P2MP LSP stats record + LdpP2MpLspStatsRecords []*LdpP2MpLspRecord `protobuf:"bytes,1,rep,name=ldp_p2mp_lsp_stats_records,json=ldpP2mpLspStatsRecords" json:"ldp_p2mp_lsp_stats_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpP2MpLspStats) Reset() { *m = LdpP2MpLspStats{} } +func (m *LdpP2MpLspStats) String() string { return proto.CompactTextString(m) } +func (*LdpP2MpLspStats) ProtoMessage() {} +func (*LdpP2MpLspStats) Descriptor() ([]byte, []int) { + return fileDescriptor_de3095a4de0e0ad1, []int{0} +} +func (m *LdpP2MpLspStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpP2MpLspStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpP2MpLspStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpP2MpLspStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpP2MpLspStats.Merge(m, src) +} +func (m *LdpP2MpLspStats) XXX_Size() int { + return m.Size() +} +func (m *LdpP2MpLspStats) XXX_DiscardUnknown() { + xxx_messageInfo_LdpP2MpLspStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpP2MpLspStats proto.InternalMessageInfo + +func (m *LdpP2MpLspStats) GetLdpP2MpLspStatsRecords() []*LdpP2MpLspRecord { + if m != nil { + return m.LdpP2MpLspStatsRecords + } + return nil +} + +type LdpP2MpLspRecord struct { + // IP prefix + RootAddress *string `protobuf:"bytes,1,req,name=root_address,json=rootAddress" json:"root_address,omitempty"` + LspId *uint32 `protobuf:"varint,2,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + // Source Ip address + SourceIp *string `protobuf:"bytes,3,opt,name=source_ip,json=sourceIp" json:"source_ip,omitempty"` + // Group Ip address + GroupIp *string `protobuf:"bytes,4,opt,name=group_ip,json=groupIp" json:"group_ip,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,5,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. + CounterName *string `protobuf:"bytes,6,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *LabelDistributionProtocolP2MpLspStats `protobuf:"bytes,7,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpP2MpLspRecord) Reset() { *m = LdpP2MpLspRecord{} } +func (m *LdpP2MpLspRecord) String() string { return proto.CompactTextString(m) } +func (*LdpP2MpLspRecord) ProtoMessage() {} +func (*LdpP2MpLspRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_de3095a4de0e0ad1, []int{1} +} +func (m *LdpP2MpLspRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpP2MpLspRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpP2MpLspRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpP2MpLspRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpP2MpLspRecord.Merge(m, src) +} +func (m *LdpP2MpLspRecord) XXX_Size() int { + return m.Size() +} +func (m *LdpP2MpLspRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LdpP2MpLspRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpP2MpLspRecord proto.InternalMessageInfo + +func (m *LdpP2MpLspRecord) GetRootAddress() string { + if m != nil && m.RootAddress != nil { + return *m.RootAddress + } + return "" +} + +func (m *LdpP2MpLspRecord) GetLspId() uint32 { + if m != nil && m.LspId != nil { + return *m.LspId + } + return 0 +} + +func (m *LdpP2MpLspRecord) GetSourceIp() string { + if m != nil && m.SourceIp != nil { + return *m.SourceIp + } + return "" +} + +func (m *LdpP2MpLspRecord) GetGroupIp() string { + if m != nil && m.GroupIp != nil { + return *m.GroupIp + } + return "" +} + +func (m *LdpP2MpLspRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *LdpP2MpLspRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *LdpP2MpLspRecord) GetStats() *LabelDistributionProtocolP2MpLspStats { + if m != nil { + return m.Stats + } + return nil +} + +type LabelDistributionProtocolP2MpLspStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LabelDistributionProtocolP2MpLspStats) Reset() { *m = LabelDistributionProtocolP2MpLspStats{} } +func (m *LabelDistributionProtocolP2MpLspStats) String() string { return proto.CompactTextString(m) } +func (*LabelDistributionProtocolP2MpLspStats) ProtoMessage() {} +func (*LabelDistributionProtocolP2MpLspStats) Descriptor() ([]byte, []int) { + return fileDescriptor_de3095a4de0e0ad1, []int{2} +} +func (m *LabelDistributionProtocolP2MpLspStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LabelDistributionProtocolP2MpLspStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LabelDistributionProtocolP2MpLspStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LabelDistributionProtocolP2MpLspStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabelDistributionProtocolP2MpLspStats.Merge(m, src) +} +func (m *LabelDistributionProtocolP2MpLspStats) XXX_Size() int { + return m.Size() +} +func (m *LabelDistributionProtocolP2MpLspStats) XXX_DiscardUnknown() { + xxx_messageInfo_LabelDistributionProtocolP2MpLspStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LabelDistributionProtocolP2MpLspStats proto.InternalMessageInfo + +func (m *LabelDistributionProtocolP2MpLspStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpLspStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpLspStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpLspStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprLdpP2MpLspStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LdpP2MpLspStats)(nil), + Field: 155, + Name: "jnpr_ldp_p2mp_lsp_stats_ext", + Tag: "bytes,155,opt,name=jnpr_ldp_p2mp_lsp_stats_ext", + Filename: "ldp_p2mp_lsp_stats.proto", +} + +func init() { + proto.RegisterType((*LdpP2MpLspStats)(nil), "LdpP2mpLspStats") + proto.RegisterType((*LdpP2MpLspRecord)(nil), "LdpP2mpLspRecord") + proto.RegisterType((*LabelDistributionProtocolP2MpLspStats)(nil), "LabelDistributionProtocolP2mpLspStats") + proto.RegisterExtension(E_JnprLdpP2MpLspStatsExt) +} + +func init() { proto.RegisterFile("ldp_p2mp_lsp_stats.proto", fileDescriptor_de3095a4de0e0ad1) } + +var fileDescriptor_de3095a4de0e0ad1 = []byte{ + // 507 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6f, 0xd3, 0x3c, + 0x1c, 0xc6, 0xe5, 0x6e, 0xdd, 0x3a, 0xf7, 0x7d, 0xc5, 0xf0, 0xa4, 0x11, 0x6d, 0xa8, 0x54, 0x95, + 0x98, 0x72, 0x69, 0x22, 0xf5, 0xc0, 0x01, 0x71, 0x80, 0x09, 0x0e, 0x45, 0x65, 0x9a, 0xb2, 0x1b, + 0x17, 0xcf, 0x4d, 0xfe, 0xa4, 0x6e, 0x13, 0xdb, 0xb2, 0xff, 0x81, 0xed, 0xca, 0xd7, 0xe0, 0x53, + 0xf0, 0x0d, 0x38, 0x72, 0xe4, 0x23, 0xa0, 0x7e, 0x12, 0xe4, 0x84, 0x76, 0x5d, 0xe1, 0xc0, 0xf5, + 0x79, 0x7e, 0xcf, 0x13, 0xe7, 0xb1, 0x69, 0x50, 0x64, 0x86, 0x9b, 0x51, 0x69, 0x78, 0xe1, 0x0c, + 0x77, 0x28, 0xd0, 0x45, 0xc6, 0x6a, 0xd4, 0x27, 0x47, 0x08, 0x05, 0x94, 0x80, 0xf6, 0x96, 0xa3, + 0x36, 0x8d, 0x38, 0xb8, 0xa6, 0x0f, 0x26, 0x99, 0xb9, 0x1c, 0x95, 0x66, 0xe2, 0xcc, 0x95, 0xa7, + 0xd9, 0x3b, 0x7a, 0xf2, 0x67, 0x07, 0xb7, 0x90, 0x6a, 0x9b, 0xb9, 0x80, 0xf4, 0x77, 0xc2, 0xee, + 0xe8, 0x61, 0x74, 0x97, 0x4a, 0x6a, 0x27, 0x39, 0x2e, 0xee, 0xf7, 0x34, 0xb2, 0x1b, 0x7c, 0x6b, + 0xd1, 0xc3, 0x6d, 0x98, 0x85, 0xf4, 0x3f, 0xab, 0x35, 0x72, 0x91, 0x65, 0x16, 0x9c, 0x6f, 0x6d, + 0x85, 0x07, 0xe7, 0xed, 0xcf, 0x2f, 0x5b, 0x1d, 0x92, 0x74, 0xbd, 0xf5, 0xaa, 0x71, 0xd8, 0x63, + 0xba, 0xe7, 0x0f, 0x21, 0xb3, 0xa0, 0xd5, 0x27, 0xe1, 0xff, 0x2b, 0xa6, 0x5d, 0x38, 0x33, 0xce, + 0xd8, 0x80, 0x1e, 0x38, 0x5d, 0xd9, 0x14, 0xb8, 0x34, 0xc1, 0x4e, 0x9f, 0xdc, 0x95, 0x74, 0x1a, + 0x7d, 0x6c, 0x58, 0x9f, 0x76, 0x72, 0xab, 0x2b, 0xe3, 0x91, 0xdd, 0x4d, 0x64, 0xbf, 0x96, 0xc7, + 0x86, 0x3d, 0xa3, 0x47, 0x52, 0x39, 0x14, 0xca, 0xf7, 0x64, 0xa0, 0x50, 0x7e, 0x90, 0x60, 0x83, + 0xf6, 0xe6, 0x07, 0xd9, 0x8a, 0x18, 0xaf, 0x01, 0xff, 0x17, 0xa9, 0xae, 0x14, 0x82, 0xe5, 0x4a, + 0x94, 0x10, 0xec, 0x6d, 0xb6, 0x77, 0x7f, 0x5b, 0x17, 0xa2, 0x04, 0xf6, 0x82, 0xb6, 0xeb, 0x19, + 0x83, 0xfd, 0x3e, 0x09, 0xbb, 0xa3, 0xb3, 0x68, 0x22, 0xa6, 0x50, 0xbc, 0x96, 0x0e, 0xad, 0x9c, + 0x56, 0x28, 0xb5, 0xba, 0xf4, 0xd7, 0x91, 0xea, 0xe2, 0xde, 0x84, 0x4d, 0x68, 0xf0, 0x95, 0xd0, + 0xa7, 0xff, 0x14, 0x60, 0x4f, 0xe8, 0xbe, 0x11, 0xe9, 0x02, 0xd0, 0x4f, 0x4a, 0xc2, 0xdd, 0xfa, + 0x30, 0x01, 0x49, 0x56, 0x2a, 0x3b, 0xa5, 0xed, 0xe9, 0x2d, 0x82, 0xab, 0xd7, 0x5c, 0xdb, 0x8d, + 0xc6, 0xce, 0x68, 0xb7, 0xe1, 0xb8, 0x15, 0x08, 0xf5, 0x9e, 0x6b, 0x84, 0x36, 0x4e, 0x22, 0x10, + 0xfc, 0xea, 0x3e, 0xd0, 0x50, 0xbb, 0x9b, 0x54, 0xc7, 0xeb, 0x9e, 0x79, 0x9e, 0xd3, 0xd3, 0xb9, + 0x32, 0x96, 0xff, 0xe5, 0x29, 0xc1, 0x0d, 0xb2, 0x47, 0xd1, 0xdb, 0x4a, 0x49, 0x03, 0xf6, 0x02, + 0xf0, 0x93, 0xb6, 0x0b, 0x77, 0x05, 0xca, 0x69, 0xeb, 0x82, 0x2f, 0xa4, 0x5e, 0xe8, 0x30, 0xda, + 0x7a, 0x96, 0xc9, 0xb1, 0xaf, 0xdb, 0x12, 0xdf, 0xdc, 0xe0, 0xf9, 0xf5, 0xf7, 0x65, 0x8f, 0xfc, + 0x58, 0xf6, 0xc8, 0xcf, 0x65, 0x8f, 0xbc, 0x4f, 0x72, 0x89, 0xd1, 0xbc, 0xa9, 0x8e, 0x14, 0x60, + 0x2c, 0x53, 0x98, 0x82, 0xcd, 0xe3, 0x19, 0x88, 0x02, 0x67, 0x53, 0x8d, 0x43, 0xa9, 0x72, 0x70, + 0x38, 0x9c, 0xa3, 0x1c, 0x2a, 0x81, 0xf2, 0x23, 0xc4, 0x66, 0x91, 0xc7, 0x73, 0x94, 0xb1, 0xc8, + 0x84, 0x41, 0xb0, 0x2e, 0xe6, 0xf3, 0x4a, 0x69, 0x17, 0xbb, 0x74, 0x06, 0xa5, 0xf8, 0x15, 0x00, + 0x00, 0xff, 0xff, 0xb1, 0x8e, 0x2e, 0xfe, 0x53, 0x03, 0x00, 0x00, +} + +func (m *LdpP2MpLspStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpP2MpLspStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpP2MpLspStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LdpP2MpLspStatsRecords) > 0 { + for iNdEx := len(m.LdpP2MpLspStatsRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LdpP2MpLspStatsRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LdpP2MpLspRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpP2MpLspRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpP2MpLspRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x32 + } + if m.InstanceIdentifier != nil { + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x28 + } + if m.GroupIp != nil { + i -= len(*m.GroupIp) + copy(dAtA[i:], *m.GroupIp) + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(len(*m.GroupIp))) + i-- + dAtA[i] = 0x22 + } + if m.SourceIp != nil { + i -= len(*m.SourceIp) + copy(dAtA[i:], *m.SourceIp) + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(len(*m.SourceIp))) + i-- + dAtA[i] = 0x1a + } + if m.LspId != nil { + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(*m.LspId)) + i-- + dAtA[i] = 0x10 + } + if m.RootAddress == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("root_address") + } else { + i -= len(*m.RootAddress) + copy(dAtA[i:], *m.RootAddress) + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(len(*m.RootAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LabelDistributionProtocolP2MpLspStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LabelDistributionProtocolP2MpLspStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LabelDistributionProtocolP2MpLspStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintLdpP2MpLspStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintLdpP2MpLspStats(dAtA []byte, offset int, v uint64) int { + offset -= sovLdpP2MpLspStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LdpP2MpLspStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LdpP2MpLspStatsRecords) > 0 { + for _, e := range m.LdpP2MpLspStatsRecords { + l = e.Size() + n += 1 + l + sovLdpP2MpLspStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LdpP2MpLspRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RootAddress != nil { + l = len(*m.RootAddress) + n += 1 + l + sovLdpP2MpLspStats(uint64(l)) + } + if m.LspId != nil { + n += 1 + sovLdpP2MpLspStats(uint64(*m.LspId)) + } + if m.SourceIp != nil { + l = len(*m.SourceIp) + n += 1 + l + sovLdpP2MpLspStats(uint64(l)) + } + if m.GroupIp != nil { + l = len(*m.GroupIp) + n += 1 + l + sovLdpP2MpLspStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovLdpP2MpLspStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovLdpP2MpLspStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovLdpP2MpLspStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LabelDistributionProtocolP2MpLspStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovLdpP2MpLspStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLdpP2MpLspStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovLdpP2MpLspStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovLdpP2MpLspStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLdpP2MpLspStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLdpP2MpLspStats(x uint64) (n int) { + return sovLdpP2MpLspStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LdpP2MpLspStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpP2mpLspStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpP2mpLspStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LdpP2MpLspStatsRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LdpP2MpLspStatsRecords = append(m.LdpP2MpLspStatsRecords, &LdpP2MpLspRecord{}) + if err := m.LdpP2MpLspStatsRecords[len(m.LdpP2MpLspStatsRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpLspStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LdpP2MpLspRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpP2mpLspRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpP2mpLspRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RootAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RootAddress = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspId = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SourceIp = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.GroupIp = &s + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &LabelDistributionProtocolP2MpLspStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpLspStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("root_address") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LabelDistributionProtocolP2MpLspStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LabelDistributionProtocolP2mpLspStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelDistributionProtocolP2mpLspStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpLspStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpLspStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLdpP2MpLspStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpLspStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLdpP2MpLspStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLdpP2MpLspStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLdpP2MpLspStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLdpP2MpLspStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLdpP2MpLspStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLdpP2MpLspStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ldp_p2mp_lsp_stats.proto b/schema/ldp_p2mp_lsp_stats.proto new file mode 100755 index 0000000..6a3b855 --- /dev/null +++ b/schema/ldp_p2mp_lsp_stats.proto @@ -0,0 +1,52 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 52 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LdpP2mpLspStats jnpr_ldp_p2mp_lsp_stats_ext = 155; +} + +// +// Top-level message +// +message LdpP2mpLspStats { + // List of LDP P2MP LSP stats record + repeated LdpP2mpLspRecord ldp_p2mp_lsp_stats_records = 1; +} + +message LdpP2mpLspRecord { + + // IP prefix + required string root_address = 1 [(telemetry_options).is_key = true]; + + optional uint32 lsp_id = 2 [(telemetry_options).is_key = true]; + + // Source Ip address + optional string source_ip = 3 [(telemetry_options).is_key = true]; + + // Group Ip address + optional string group_ip = 4 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 5 [(telemetry_options).is_key = true]; + + // Name of the counter. + optional string counter_name = 6 [(telemetry_options).is_key = true]; + + // Statistics + optional LabelDistributionProtocolP2mpLspStats stats = 7; +} + +message LabelDistributionProtocolP2mpLspStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_counter = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_counter = true]; +} + diff --git a/schema/ldp_p2mp_per_if_egress.pb.go b/schema/ldp_p2mp_per_if_egress.pb.go new file mode 100644 index 0000000..557f228 --- /dev/null +++ b/schema/ldp_p2mp_per_if_egress.pb.go @@ -0,0 +1,1025 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ldp_p2mp_per_if_egress.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LdpP2MpPerIfEgress struct { + // List of LDP P2mp stats per IF egress records + PerIfRecords []*LdpP2MpInterfaceRecord `protobuf:"bytes,1,rep,name=per_if_records,json=perIfRecords" json:"per_if_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpP2MpPerIfEgress) Reset() { *m = LdpP2MpPerIfEgress{} } +func (m *LdpP2MpPerIfEgress) String() string { return proto.CompactTextString(m) } +func (*LdpP2MpPerIfEgress) ProtoMessage() {} +func (*LdpP2MpPerIfEgress) Descriptor() ([]byte, []int) { + return fileDescriptor_90ec76097a3bb737, []int{0} +} +func (m *LdpP2MpPerIfEgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpP2MpPerIfEgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpP2MpPerIfEgress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpP2MpPerIfEgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpP2MpPerIfEgress.Merge(m, src) +} +func (m *LdpP2MpPerIfEgress) XXX_Size() int { + return m.Size() +} +func (m *LdpP2MpPerIfEgress) XXX_DiscardUnknown() { + xxx_messageInfo_LdpP2MpPerIfEgress.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpP2MpPerIfEgress proto.InternalMessageInfo + +func (m *LdpP2MpPerIfEgress) GetPerIfRecords() []*LdpP2MpInterfaceRecord { + if m != nil { + return m.PerIfRecords + } + return nil +} + +// +// SR statistics record +// +type LdpP2MpInterfaceRecord struct { + // Interface name, e.g., xe-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,2,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Traffic statistics + IngressStats *LabelDistributionProtocolP2MpIfStats `protobuf:"bytes,3,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + EgressStats *LabelDistributionProtocolP2MpIfStats `protobuf:"bytes,4,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpP2MpInterfaceRecord) Reset() { *m = LdpP2MpInterfaceRecord{} } +func (m *LdpP2MpInterfaceRecord) String() string { return proto.CompactTextString(m) } +func (*LdpP2MpInterfaceRecord) ProtoMessage() {} +func (*LdpP2MpInterfaceRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_90ec76097a3bb737, []int{1} +} +func (m *LdpP2MpInterfaceRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpP2MpInterfaceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpP2MpInterfaceRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpP2MpInterfaceRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpP2MpInterfaceRecord.Merge(m, src) +} +func (m *LdpP2MpInterfaceRecord) XXX_Size() int { + return m.Size() +} +func (m *LdpP2MpInterfaceRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LdpP2MpInterfaceRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpP2MpInterfaceRecord proto.InternalMessageInfo + +func (m *LdpP2MpInterfaceRecord) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *LdpP2MpInterfaceRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *LdpP2MpInterfaceRecord) GetIngressStats() *LabelDistributionProtocolP2MpIfStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *LdpP2MpInterfaceRecord) GetEgressStats() *LabelDistributionProtocolP2MpIfStats { + if m != nil { + return m.EgressStats + } + return nil +} + +type LabelDistributionProtocolP2MpIfStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LabelDistributionProtocolP2MpIfStats) Reset() { *m = LabelDistributionProtocolP2MpIfStats{} } +func (m *LabelDistributionProtocolP2MpIfStats) String() string { return proto.CompactTextString(m) } +func (*LabelDistributionProtocolP2MpIfStats) ProtoMessage() {} +func (*LabelDistributionProtocolP2MpIfStats) Descriptor() ([]byte, []int) { + return fileDescriptor_90ec76097a3bb737, []int{2} +} +func (m *LabelDistributionProtocolP2MpIfStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LabelDistributionProtocolP2MpIfStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LabelDistributionProtocolP2MpIfStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LabelDistributionProtocolP2MpIfStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabelDistributionProtocolP2MpIfStats.Merge(m, src) +} +func (m *LabelDistributionProtocolP2MpIfStats) XXX_Size() int { + return m.Size() +} +func (m *LabelDistributionProtocolP2MpIfStats) XXX_DiscardUnknown() { + xxx_messageInfo_LabelDistributionProtocolP2MpIfStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LabelDistributionProtocolP2MpIfStats proto.InternalMessageInfo + +func (m *LabelDistributionProtocolP2MpIfStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpIfStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpIfStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpIfStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprLdpP2MpPerIfEgressExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LdpP2MpPerIfEgress)(nil), + Field: 156, + Name: "jnpr_ldp_p2mp_per_if_egress_ext", + Tag: "bytes,156,opt,name=jnpr_ldp_p2mp_per_if_egress_ext", + Filename: "ldp_p2mp_per_if_egress.proto", +} + +func init() { + proto.RegisterType((*LdpP2MpPerIfEgress)(nil), "LdpP2mpPerIfEgress") + proto.RegisterType((*LdpP2MpInterfaceRecord)(nil), "LdpP2mpInterfaceRecord") + proto.RegisterType((*LabelDistributionProtocolP2MpIfStats)(nil), "LabelDistributionProtocolP2mpIfStats") + proto.RegisterExtension(E_JnprLdpP2MpPerIfEgressExt) +} + +func init() { proto.RegisterFile("ldp_p2mp_per_if_egress.proto", fileDescriptor_90ec76097a3bb737) } + +var fileDescriptor_90ec76097a3bb737 = []byte{ + // 466 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x6e, 0x13, 0x3d, + 0x14, 0xc5, 0xe5, 0x34, 0xfd, 0xda, 0x3a, 0xf9, 0x58, 0xb8, 0x12, 0x1d, 0xfe, 0x28, 0x1d, 0x45, + 0x80, 0x66, 0x93, 0x19, 0x29, 0x4b, 0x24, 0x24, 0x54, 0x51, 0x89, 0x56, 0x55, 0x15, 0x4d, 0x76, + 0x6c, 0x8c, 0x67, 0x72, 0x67, 0xe2, 0xc9, 0x8c, 0x6d, 0xec, 0x1b, 0x68, 0xb7, 0x3c, 0x07, 0x0f, + 0xc1, 0x63, 0xb0, 0xe4, 0x11, 0x50, 0x9e, 0x82, 0x25, 0x1a, 0x4f, 0xa0, 0x95, 0xda, 0x05, 0x2c, + 0x7d, 0xce, 0xef, 0x1c, 0xfb, 0x5e, 0x99, 0x3e, 0xad, 0x17, 0x86, 0x9b, 0x69, 0x63, 0xb8, 0x01, + 0xcb, 0x65, 0xc1, 0xa1, 0xb4, 0xe0, 0x5c, 0x6c, 0xac, 0x46, 0xfd, 0xf8, 0x10, 0xa1, 0x86, 0x06, + 0xd0, 0x5e, 0x73, 0xd4, 0xa6, 0x13, 0xc7, 0x73, 0xca, 0x2e, 0x16, 0x66, 0x36, 0x6d, 0xcc, 0x0c, + 0xec, 0x59, 0x71, 0xea, 0x03, 0xec, 0x15, 0x7d, 0xb0, 0x6d, 0xb0, 0x90, 0x6b, 0xbb, 0x70, 0x01, + 0x09, 0x77, 0xa2, 0xc1, 0xf4, 0x28, 0xde, 0xc2, 0x67, 0x0a, 0xc1, 0x16, 0x22, 0x87, 0xd4, 0xfb, + 0xe9, 0xd0, 0xb4, 0xe9, 0xee, 0xe0, 0xc6, 0x3f, 0x09, 0x7d, 0x78, 0x3f, 0xc8, 0x46, 0x74, 0x4f, + 0x16, 0x5c, 0x89, 0x06, 0x02, 0x12, 0xf6, 0xa2, 0x83, 0x93, 0xdd, 0xcf, 0xaf, 0x7b, 0xfb, 0x24, + 0xfd, 0x4f, 0x16, 0x97, 0xa2, 0x01, 0x16, 0xd1, 0x61, 0xae, 0xd7, 0x6d, 0xa8, 0x83, 0x7a, 0x21, + 0xb9, 0x81, 0x06, 0x5b, 0xcb, 0x93, 0xe7, 0xf4, 0x7f, 0xa9, 0xfc, 0x73, 0xb9, 0x43, 0x81, 0x2e, + 0xd8, 0x09, 0x49, 0x34, 0x98, 0x3e, 0x8f, 0x2f, 0x44, 0x06, 0xf5, 0x1b, 0xe9, 0xd0, 0xca, 0x6c, + 0x8d, 0x52, 0xab, 0x59, 0x3b, 0x69, 0xae, 0x6b, 0xff, 0x9e, 0x62, 0xde, 0xc2, 0xe9, 0x70, 0x9b, + 0xf5, 0x27, 0xf6, 0x96, 0x0e, 0xe1, 0x76, 0x55, 0xff, 0x5f, 0xaa, 0x06, 0x70, 0xd3, 0x34, 0xfe, + 0x4a, 0xe8, 0xb3, 0xbf, 0x49, 0xb1, 0x63, 0xba, 0x67, 0x44, 0xbe, 0x02, 0x6c, 0x77, 0x4b, 0xa2, + 0xbe, 0x9f, 0x31, 0x20, 0xe9, 0x6f, 0x95, 0x3d, 0xa1, 0xbb, 0xd9, 0x35, 0x82, 0xf3, 0x2b, 0xf8, + 0x63, 0x77, 0x1a, 0x7b, 0x41, 0x07, 0x1d, 0xc7, 0xad, 0x40, 0xf0, 0xa3, 0x77, 0x48, 0x48, 0x52, + 0xda, 0x39, 0xa9, 0x40, 0x60, 0x63, 0x7a, 0xd0, 0x06, 0x3a, 0xaa, 0x7f, 0x9b, 0xda, 0x6f, 0xf5, + 0x96, 0x79, 0xf9, 0x81, 0x1e, 0x57, 0xca, 0x58, 0x7e, 0xff, 0xe7, 0xe1, 0x70, 0x85, 0xec, 0x28, + 0x3e, 0x5f, 0x2b, 0x69, 0xc0, 0x5e, 0x02, 0x7e, 0xd2, 0x76, 0xe5, 0xe6, 0xa0, 0x9c, 0xb6, 0x2e, + 0xf8, 0x42, 0xfc, 0xa6, 0x0e, 0xe3, 0xbb, 0x9f, 0x28, 0x7d, 0xd4, 0xb6, 0xde, 0xd5, 0x4f, 0xaf, + 0xf0, 0xe4, 0xfd, 0xb7, 0xcd, 0x88, 0x7c, 0xdf, 0x8c, 0xc8, 0x8f, 0xcd, 0x88, 0xbc, 0x4b, 0x4b, + 0x89, 0x71, 0xd5, 0x5d, 0x10, 0x2b, 0xc0, 0x44, 0xe6, 0x90, 0x81, 0x2d, 0x93, 0x25, 0x88, 0x1a, + 0x97, 0x99, 0xc6, 0x89, 0x54, 0x25, 0x38, 0x9c, 0x54, 0x28, 0x27, 0x4a, 0xa0, 0xfc, 0x08, 0x89, + 0x59, 0x95, 0x49, 0x85, 0x32, 0x11, 0x0b, 0x61, 0x10, 0xac, 0x4b, 0x78, 0xb5, 0x56, 0xda, 0x25, + 0x2e, 0x5f, 0x42, 0x23, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x68, 0xe4, 0x35, 0xaa, 0x0b, 0x03, + 0x00, 0x00, +} + +func (m *LdpP2MpPerIfEgress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpP2MpPerIfEgress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpP2MpPerIfEgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PerIfRecords) > 0 { + for iNdEx := len(m.PerIfRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PerIfRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LdpP2MpInterfaceRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpP2MpInterfaceRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpP2MpInterfaceRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x12 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LabelDistributionProtocolP2MpIfStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LabelDistributionProtocolP2MpIfStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LabelDistributionProtocolP2MpIfStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintLdpP2MpPerIfEgress(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintLdpP2MpPerIfEgress(dAtA []byte, offset int, v uint64) int { + offset -= sovLdpP2MpPerIfEgress(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LdpP2MpPerIfEgress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PerIfRecords) > 0 { + for _, e := range m.PerIfRecords { + l = e.Size() + n += 1 + l + sovLdpP2MpPerIfEgress(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LdpP2MpInterfaceRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovLdpP2MpPerIfEgress(uint64(l)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovLdpP2MpPerIfEgress(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovLdpP2MpPerIfEgress(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovLdpP2MpPerIfEgress(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LabelDistributionProtocolP2MpIfStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovLdpP2MpPerIfEgress(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLdpP2MpPerIfEgress(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovLdpP2MpPerIfEgress(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovLdpP2MpPerIfEgress(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLdpP2MpPerIfEgress(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLdpP2MpPerIfEgress(x uint64) (n int) { + return sovLdpP2MpPerIfEgress(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LdpP2MpPerIfEgress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpP2mpPerIfEgress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpP2mpPerIfEgress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerIfRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PerIfRecords = append(m.PerIfRecords, &LdpP2MpInterfaceRecord{}) + if err := m.PerIfRecords[len(m.PerIfRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpPerIfEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LdpP2MpInterfaceRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpP2mpInterfaceRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpP2mpInterfaceRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &LabelDistributionProtocolP2MpIfStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &LabelDistributionProtocolP2MpIfStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpPerIfEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LabelDistributionProtocolP2MpIfStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LabelDistributionProtocolP2mpIfStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelDistributionProtocolP2mpIfStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpPerIfEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpPerIfEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLdpP2MpPerIfEgress(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpPerIfEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLdpP2MpPerIfEgress + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLdpP2MpPerIfEgress + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLdpP2MpPerIfEgress + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLdpP2MpPerIfEgress = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLdpP2MpPerIfEgress = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLdpP2MpPerIfEgress = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ldp_p2mp_per_if_egress.proto b/schema/ldp_p2mp_per_if_egress.proto new file mode 100755 index 0000000..af9c5b0 --- /dev/null +++ b/schema/ldp_p2mp_per_if_egress.proto @@ -0,0 +1,45 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 54 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LdpP2mpPerIfEgress jnpr_ldp_p2mp_per_if_egress_ext = 156; +} + +// +// Top-level message +// +message LdpP2mpPerIfEgress { + // List of LDP P2mp stats per IF egress records + repeated LdpP2mpInterfaceRecord per_if_records = 1; +} + +// +// SR statistics record +// +message LdpP2mpInterfaceRecord { + // Interface name, e.g., xe-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 2 [(telemetry_options).is_key = true]; + + // Traffic statistics + optional LabelDistributionProtocolP2mpIfStats ingress_stats = 3; + optional LabelDistributionProtocolP2mpIfStats egress_stats = 4; +} + +message LabelDistributionProtocolP2mpIfStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters. + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/ldp_p2mp_per_if_ingress.pb.go b/schema/ldp_p2mp_per_if_ingress.pb.go new file mode 100644 index 0000000..71280b5 --- /dev/null +++ b/schema/ldp_p2mp_per_if_ingress.pb.go @@ -0,0 +1,1026 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: ldp_p2mp_per_if_ingress.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LdpP2MpPerIfIngress struct { + // List of LDP P2mp stats per IF ingress records + PerIfRecords []*LdpP2MpIngIfRecord `protobuf:"bytes,1,rep,name=per_if_records,json=perIfRecords" json:"per_if_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpP2MpPerIfIngress) Reset() { *m = LdpP2MpPerIfIngress{} } +func (m *LdpP2MpPerIfIngress) String() string { return proto.CompactTextString(m) } +func (*LdpP2MpPerIfIngress) ProtoMessage() {} +func (*LdpP2MpPerIfIngress) Descriptor() ([]byte, []int) { + return fileDescriptor_4aec5355035b7126, []int{0} +} +func (m *LdpP2MpPerIfIngress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpP2MpPerIfIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpP2MpPerIfIngress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpP2MpPerIfIngress) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpP2MpPerIfIngress.Merge(m, src) +} +func (m *LdpP2MpPerIfIngress) XXX_Size() int { + return m.Size() +} +func (m *LdpP2MpPerIfIngress) XXX_DiscardUnknown() { + xxx_messageInfo_LdpP2MpPerIfIngress.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpP2MpPerIfIngress proto.InternalMessageInfo + +func (m *LdpP2MpPerIfIngress) GetPerIfRecords() []*LdpP2MpIngIfRecord { + if m != nil { + return m.PerIfRecords + } + return nil +} + +// +// SR statistics record +// +type LdpP2MpIngIfRecord struct { + // Interface name, e.g., xe-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,2,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Traffic statistics + IngressStats *LabelDistributionProtocolP2MpIngIfStats `protobuf:"bytes,3,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + EgressStats *LabelDistributionProtocolP2MpIngIfStats `protobuf:"bytes,4,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LdpP2MpIngIfRecord) Reset() { *m = LdpP2MpIngIfRecord{} } +func (m *LdpP2MpIngIfRecord) String() string { return proto.CompactTextString(m) } +func (*LdpP2MpIngIfRecord) ProtoMessage() {} +func (*LdpP2MpIngIfRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_4aec5355035b7126, []int{1} +} +func (m *LdpP2MpIngIfRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LdpP2MpIngIfRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LdpP2MpIngIfRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LdpP2MpIngIfRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LdpP2MpIngIfRecord.Merge(m, src) +} +func (m *LdpP2MpIngIfRecord) XXX_Size() int { + return m.Size() +} +func (m *LdpP2MpIngIfRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LdpP2MpIngIfRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LdpP2MpIngIfRecord proto.InternalMessageInfo + +func (m *LdpP2MpIngIfRecord) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *LdpP2MpIngIfRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *LdpP2MpIngIfRecord) GetIngressStats() *LabelDistributionProtocolP2MpIngIfStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *LdpP2MpIngIfRecord) GetEgressStats() *LabelDistributionProtocolP2MpIngIfStats { + if m != nil { + return m.EgressStats + } + return nil +} + +type LabelDistributionProtocolP2MpIngIfStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) Reset() { + *m = LabelDistributionProtocolP2MpIngIfStats{} +} +func (m *LabelDistributionProtocolP2MpIngIfStats) String() string { return proto.CompactTextString(m) } +func (*LabelDistributionProtocolP2MpIngIfStats) ProtoMessage() {} +func (*LabelDistributionProtocolP2MpIngIfStats) Descriptor() ([]byte, []int) { + return fileDescriptor_4aec5355035b7126, []int{2} +} +func (m *LabelDistributionProtocolP2MpIngIfStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LabelDistributionProtocolP2MpIngIfStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LabelDistributionProtocolP2MpIngIfStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LabelDistributionProtocolP2MpIngIfStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabelDistributionProtocolP2MpIngIfStats.Merge(m, src) +} +func (m *LabelDistributionProtocolP2MpIngIfStats) XXX_Size() int { + return m.Size() +} +func (m *LabelDistributionProtocolP2MpIngIfStats) XXX_DiscardUnknown() { + xxx_messageInfo_LabelDistributionProtocolP2MpIngIfStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LabelDistributionProtocolP2MpIngIfStats proto.InternalMessageInfo + +func (m *LabelDistributionProtocolP2MpIngIfStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprLdpP2MpPerIfIngressExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LdpP2MpPerIfIngress)(nil), + Field: 157, + Name: "jnpr_ldp_p2mp_per_if_ingress_ext", + Tag: "bytes,157,opt,name=jnpr_ldp_p2mp_per_if_ingress_ext", + Filename: "ldp_p2mp_per_if_ingress.proto", +} + +func init() { + proto.RegisterType((*LdpP2MpPerIfIngress)(nil), "LdpP2mpPerIfIngress") + proto.RegisterType((*LdpP2MpIngIfRecord)(nil), "LdpP2mpIngIfRecord") + proto.RegisterType((*LabelDistributionProtocolP2MpIngIfStats)(nil), "LabelDistributionProtocolP2mpIngIfStats") + proto.RegisterExtension(E_JnprLdpP2MpPerIfIngressExt) +} + +func init() { proto.RegisterFile("ldp_p2mp_per_if_ingress.proto", fileDescriptor_4aec5355035b7126) } + +var fileDescriptor_4aec5355035b7126 = []byte{ + // 460 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x6e, 0xd3, 0x40, + 0x14, 0x86, 0x35, 0x69, 0x4a, 0xdb, 0x49, 0x60, 0x31, 0x41, 0x22, 0x2a, 0x22, 0x58, 0x59, 0x80, + 0x37, 0xb1, 0xa5, 0xec, 0x60, 0x85, 0x2a, 0x58, 0x04, 0x4a, 0x15, 0xb9, 0x3b, 0x36, 0xc3, 0xd8, + 0x79, 0x76, 0xc6, 0xb1, 0x67, 0x46, 0x33, 0x2f, 0xd0, 0x6e, 0xb9, 0x07, 0xa7, 0xe0, 0x12, 0x2c, + 0x39, 0x02, 0xca, 0x31, 0x58, 0x21, 0x7b, 0x4c, 0x5b, 0x89, 0x22, 0xd1, 0xe5, 0xbc, 0xff, 0xfb, + 0x7f, 0xfb, 0xfd, 0x7a, 0xf4, 0x49, 0xb5, 0x32, 0xdc, 0xcc, 0x6b, 0xc3, 0x0d, 0x58, 0x2e, 0x73, + 0x2e, 0x55, 0x61, 0xc1, 0xb9, 0xc8, 0x58, 0x8d, 0xfa, 0x78, 0x84, 0x50, 0x41, 0x0d, 0x68, 0x2f, + 0x39, 0x6a, 0xe3, 0x87, 0xd3, 0x25, 0x1d, 0x9d, 0xae, 0xcc, 0x72, 0x5e, 0x9b, 0x25, 0xd8, 0x45, + 0xbe, 0xf0, 0x0e, 0xf6, 0x82, 0x3e, 0xe8, 0x32, 0x2c, 0x64, 0xda, 0xae, 0xdc, 0x98, 0x04, 0x7b, + 0xe1, 0x60, 0x3e, 0x8a, 0x3a, 0x7a, 0xa1, 0x8a, 0x45, 0x9e, 0xb4, 0x5a, 0x32, 0x34, 0x8d, 0xd5, + 0x3f, 0xdc, 0xf4, 0x17, 0xa1, 0xec, 0x6f, 0x88, 0x4d, 0xe8, 0x81, 0xcc, 0xb9, 0x12, 0x35, 0x8c, + 0x49, 0xd0, 0x0b, 0x8f, 0x4e, 0xf6, 0xbf, 0xbc, 0xea, 0x1d, 0x92, 0xe4, 0x9e, 0xcc, 0xcf, 0x44, + 0x0d, 0x2c, 0xa4, 0xc3, 0x4c, 0x6f, 0x15, 0x82, 0xf5, 0x50, 0x2f, 0x20, 0xd7, 0xd0, 0xa0, 0x93, + 0x5a, 0xf2, 0x3d, 0xbd, 0xdf, 0x2d, 0xc6, 0x1d, 0x0a, 0x74, 0xe3, 0xbd, 0x80, 0x84, 0x83, 0x79, + 0x18, 0x9d, 0x8a, 0x14, 0xaa, 0xd7, 0xd2, 0xa1, 0x95, 0xe9, 0x16, 0xa5, 0x56, 0xcb, 0x66, 0xc5, + 0x4c, 0x57, 0x57, 0xff, 0x72, 0xde, 0xf0, 0xc9, 0xb0, 0xb3, 0xb7, 0x2f, 0xf6, 0x8e, 0x0e, 0xe1, + 0x66, 0x5a, 0xff, 0x8e, 0x69, 0x03, 0xb8, 0x0e, 0x9b, 0x7e, 0x23, 0xf4, 0xf9, 0x7f, 0x1a, 0xd9, + 0x53, 0x7a, 0x60, 0x44, 0xb6, 0x01, 0x6c, 0xca, 0x25, 0x61, 0xbf, 0x5d, 0x76, 0x4c, 0x92, 0x3f, + 0x53, 0xf6, 0x98, 0xee, 0xa7, 0x97, 0x08, 0xae, 0xed, 0xe2, 0x4a, 0xf6, 0x33, 0xf6, 0x8c, 0x0e, + 0x3c, 0xc7, 0xad, 0x40, 0x68, 0x3b, 0xf0, 0x48, 0x40, 0x12, 0xea, 0x95, 0x44, 0x20, 0xb0, 0x29, + 0x3d, 0x6a, 0x0c, 0x9e, 0xea, 0xdf, 0xa4, 0x0e, 0x9b, 0x79, 0xc3, 0xbc, 0x44, 0x1a, 0x94, 0xca, + 0x58, 0xfe, 0x8f, 0xfb, 0xe1, 0x70, 0x81, 0xec, 0x51, 0xf4, 0x76, 0xab, 0xa4, 0x01, 0x7b, 0x06, + 0xf8, 0x59, 0xdb, 0x8d, 0x3b, 0x07, 0xe5, 0xb4, 0x75, 0xe3, 0xaf, 0xa4, 0x2d, 0xec, 0x61, 0x74, + 0xcb, 0x1d, 0x25, 0xc7, 0x4d, 0xee, 0x2d, 0xc2, 0x9b, 0x0b, 0x3c, 0xf9, 0xf8, 0x7d, 0x37, 0x21, + 0x3f, 0x76, 0x13, 0xf2, 0x73, 0x37, 0x21, 0x1f, 0x92, 0x42, 0x62, 0x54, 0xfa, 0x4f, 0x44, 0x0a, + 0x30, 0x96, 0x19, 0xa4, 0x60, 0x8b, 0x78, 0x0d, 0xa2, 0xc2, 0x75, 0xaa, 0x71, 0x26, 0x55, 0x01, + 0x0e, 0x67, 0x25, 0xca, 0x99, 0x12, 0x28, 0x3f, 0x41, 0x6c, 0x36, 0x45, 0x5c, 0xa2, 0x8c, 0xc5, + 0x4a, 0x18, 0x04, 0xeb, 0x62, 0x5e, 0x6e, 0x95, 0x76, 0xb1, 0xcb, 0xd6, 0x50, 0x8b, 0xdf, 0x01, + 0x00, 0x00, 0xff, 0xff, 0xe5, 0xad, 0xce, 0x50, 0x11, 0x03, 0x00, 0x00, +} + +func (m *LdpP2MpPerIfIngress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpP2MpPerIfIngress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpP2MpPerIfIngress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PerIfRecords) > 0 { + for iNdEx := len(m.PerIfRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PerIfRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LdpP2MpIngIfRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LdpP2MpIngIfRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LdpP2MpIngIfRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x12 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintLdpP2MpPerIfIngress(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintLdpP2MpPerIfIngress(dAtA []byte, offset int, v uint64) int { + offset -= sovLdpP2MpPerIfIngress(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LdpP2MpPerIfIngress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PerIfRecords) > 0 { + for _, e := range m.PerIfRecords { + l = e.Size() + n += 1 + l + sovLdpP2MpPerIfIngress(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LdpP2MpIngIfRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovLdpP2MpPerIfIngress(uint64(l)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovLdpP2MpPerIfIngress(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovLdpP2MpPerIfIngress(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovLdpP2MpPerIfIngress(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LabelDistributionProtocolP2MpIngIfStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovLdpP2MpPerIfIngress(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLdpP2MpPerIfIngress(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovLdpP2MpPerIfIngress(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovLdpP2MpPerIfIngress(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLdpP2MpPerIfIngress(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLdpP2MpPerIfIngress(x uint64) (n int) { + return sovLdpP2MpPerIfIngress(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LdpP2MpPerIfIngress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpP2mpPerIfIngress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpP2mpPerIfIngress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerIfRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PerIfRecords = append(m.PerIfRecords, &LdpP2MpIngIfRecord{}) + if err := m.PerIfRecords[len(m.PerIfRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpPerIfIngress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LdpP2MpIngIfRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LdpP2mpIngIfRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LdpP2mpIngIfRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &LabelDistributionProtocolP2MpIngIfStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &LabelDistributionProtocolP2MpIngIfStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpPerIfIngress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LabelDistributionProtocolP2MpIngIfStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LabelDistributionProtocolP2mpIngIfStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LabelDistributionProtocolP2mpIngIfStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipLdpP2MpPerIfIngress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLdpP2MpPerIfIngress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLdpP2MpPerIfIngress(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLdpP2MpPerIfIngress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLdpP2MpPerIfIngress + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLdpP2MpPerIfIngress + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLdpP2MpPerIfIngress + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLdpP2MpPerIfIngress = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLdpP2MpPerIfIngress = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLdpP2MpPerIfIngress = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/ldp_p2mp_per_if_ingress.proto b/schema/ldp_p2mp_per_if_ingress.proto new file mode 100755 index 0000000..6de0ffc --- /dev/null +++ b/schema/ldp_p2mp_per_if_ingress.proto @@ -0,0 +1,45 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 55 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LdpP2mpPerIfIngress jnpr_ldp_p2mp_per_if_ingress_ext = 157; +} + +// +// Top-level message +// +message LdpP2mpPerIfIngress { + // List of LDP P2mp stats per IF ingress records + repeated LdpP2mpIngIfRecord per_if_records = 1; +} + +// +// SR statistics record +// +message LdpP2mpIngIfRecord { + // Interface name, e.g., xe-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 2 [(telemetry_options).is_key = true]; + + // Traffic statistics + optional LabelDistributionProtocolP2mpIngIfStats ingress_stats = 3; + optional LabelDistributionProtocolP2mpIngIfStats egress_stats = 4; +} + +message LabelDistributionProtocolP2mpIngIfStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters. + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/logical_port.pb.go b/schema/logical_port.pb.go new file mode 100644 index 0000000..2d20d95 --- /dev/null +++ b/schema/logical_port.pb.go @@ -0,0 +1,3363 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: logical_port.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LogicalPort struct { + InterfaceInfo []*LogicalInterfaceInfo `protobuf:"bytes,1,rep,name=interface_info,json=interfaceInfo" json:"interface_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LogicalPort) Reset() { *m = LogicalPort{} } +func (m *LogicalPort) String() string { return proto.CompactTextString(m) } +func (*LogicalPort) ProtoMessage() {} +func (*LogicalPort) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{0} +} +func (m *LogicalPort) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LogicalPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LogicalPort.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LogicalPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_LogicalPort.Merge(m, src) +} +func (m *LogicalPort) XXX_Size() int { + return m.Size() +} +func (m *LogicalPort) XXX_DiscardUnknown() { + xxx_messageInfo_LogicalPort.DiscardUnknown(m) +} + +var xxx_messageInfo_LogicalPort proto.InternalMessageInfo + +func (m *LogicalPort) GetInterfaceInfo() []*LogicalInterfaceInfo { + if m != nil { + return m.InterfaceInfo + } + return nil +} + +// +// Logical Interaface information +// +type LogicalInterfaceInfo struct { + // Logical interface name (e.g. xe-0/0/0.0) + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Time reset + InitTime *uint64 `protobuf:"varint,2,req,name=init_time,json=initTime" json:"init_time,omitempty"` + // Global Index + SnmpIfIndex *uint32 `protobuf:"varint,3,opt,name=snmp_if_index,json=snmpIfIndex" json:"snmp_if_index,omitempty"` + // Name of the aggregate bundle + ParentAeName *string `protobuf:"bytes,4,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + // Inbound traffic statistics + IngressStats *IngressInterfaceStats `protobuf:"bytes,5,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + // Outbound traffic statistics + EgressStats *EgressInterfaceStats `protobuf:"bytes,6,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + // Link state UP\DOWN etc. + OpState *OperationalState `protobuf:"bytes,7,opt,name=op_state,json=opState" json:"op_state,omitempty"` + // administrative status, i.e.. enabled/disabled + AdministractiveStatus *string `protobuf:"bytes,8,opt,name=administractive_status,json=administractiveStatus" json:"administractive_status,omitempty"` + // Description of the interface + Description *string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"` + // This corresponds to the ifLastChange object in the standard interface MIB + LastChange *uint32 `protobuf:"varint,10,opt,name=last_change,json=lastChange" json:"last_change,omitempty"` + // This corresponds to the ifHighSpeed object in the standard interface MIB + HighSpeed *uint32 `protobuf:"varint,11,opt,name=high_speed,json=highSpeed" json:"high_speed,omitempty"` + // Ingress queue information + IngressQueueInfo []*LogicalInterfaceQueueStats `protobuf:"bytes,12,rep,name=ingress_queue_info,json=ingressQueueInfo" json:"ingress_queue_info,omitempty"` + // Egress queue information + EgressQueueInfo []*LogicalInterfaceQueueStats `protobuf:"bytes,13,rep,name=egress_queue_info,json=egressQueueInfo" json:"egress_queue_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LogicalInterfaceInfo) Reset() { *m = LogicalInterfaceInfo{} } +func (m *LogicalInterfaceInfo) String() string { return proto.CompactTextString(m) } +func (*LogicalInterfaceInfo) ProtoMessage() {} +func (*LogicalInterfaceInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{1} +} +func (m *LogicalInterfaceInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LogicalInterfaceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LogicalInterfaceInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LogicalInterfaceInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_LogicalInterfaceInfo.Merge(m, src) +} +func (m *LogicalInterfaceInfo) XXX_Size() int { + return m.Size() +} +func (m *LogicalInterfaceInfo) XXX_DiscardUnknown() { + xxx_messageInfo_LogicalInterfaceInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_LogicalInterfaceInfo proto.InternalMessageInfo + +func (m *LogicalInterfaceInfo) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *LogicalInterfaceInfo) GetInitTime() uint64 { + if m != nil && m.InitTime != nil { + return *m.InitTime + } + return 0 +} + +func (m *LogicalInterfaceInfo) GetSnmpIfIndex() uint32 { + if m != nil && m.SnmpIfIndex != nil { + return *m.SnmpIfIndex + } + return 0 +} + +func (m *LogicalInterfaceInfo) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *LogicalInterfaceInfo) GetIngressStats() *IngressInterfaceStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *LogicalInterfaceInfo) GetEgressStats() *EgressInterfaceStats { + if m != nil { + return m.EgressStats + } + return nil +} + +func (m *LogicalInterfaceInfo) GetOpState() *OperationalState { + if m != nil { + return m.OpState + } + return nil +} + +func (m *LogicalInterfaceInfo) GetAdministractiveStatus() string { + if m != nil && m.AdministractiveStatus != nil { + return *m.AdministractiveStatus + } + return "" +} + +func (m *LogicalInterfaceInfo) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *LogicalInterfaceInfo) GetLastChange() uint32 { + if m != nil && m.LastChange != nil { + return *m.LastChange + } + return 0 +} + +func (m *LogicalInterfaceInfo) GetHighSpeed() uint32 { + if m != nil && m.HighSpeed != nil { + return *m.HighSpeed + } + return 0 +} + +func (m *LogicalInterfaceInfo) GetIngressQueueInfo() []*LogicalInterfaceQueueStats { + if m != nil { + return m.IngressQueueInfo + } + return nil +} + +func (m *LogicalInterfaceInfo) GetEgressQueueInfo() []*LogicalInterfaceQueueStats { + if m != nil { + return m.EgressQueueInfo + } + return nil +} + +// +// Interface inbound/Ingress traffic statistics +// +type IngressInterfaceStats struct { + // Count of packets + IfPackets *uint64 `protobuf:"varint,1,req,name=if_packets,json=ifPackets" json:"if_packets,omitempty"` + // Count of bytes + IfOctets *uint64 `protobuf:"varint,2,req,name=if_octets,json=ifOctets" json:"if_octets,omitempty"` + // Count of unicast packets + IfUcastPackets *uint64 `protobuf:"varint,3,opt,name=if_ucast_packets,json=ifUcastPackets" json:"if_ucast_packets,omitempty"` + // Count of multicast packets + IfMcastPackets *uint64 `protobuf:"varint,4,opt,name=if_mcast_packets,json=ifMcastPackets" json:"if_mcast_packets,omitempty"` + IfFcStats []*ForwardingClassAccounting `protobuf:"bytes,5,rep,name=if_fc_stats,json=ifFcStats" json:"if_fc_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IngressInterfaceStats) Reset() { *m = IngressInterfaceStats{} } +func (m *IngressInterfaceStats) String() string { return proto.CompactTextString(m) } +func (*IngressInterfaceStats) ProtoMessage() {} +func (*IngressInterfaceStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{2} +} +func (m *IngressInterfaceStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressInterfaceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IngressInterfaceStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IngressInterfaceStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressInterfaceStats.Merge(m, src) +} +func (m *IngressInterfaceStats) XXX_Size() int { + return m.Size() +} +func (m *IngressInterfaceStats) XXX_DiscardUnknown() { + xxx_messageInfo_IngressInterfaceStats.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressInterfaceStats proto.InternalMessageInfo + +func (m *IngressInterfaceStats) GetIfPackets() uint64 { + if m != nil && m.IfPackets != nil { + return *m.IfPackets + } + return 0 +} + +func (m *IngressInterfaceStats) GetIfOctets() uint64 { + if m != nil && m.IfOctets != nil { + return *m.IfOctets + } + return 0 +} + +func (m *IngressInterfaceStats) GetIfUcastPackets() uint64 { + if m != nil && m.IfUcastPackets != nil { + return *m.IfUcastPackets + } + return 0 +} + +func (m *IngressInterfaceStats) GetIfMcastPackets() uint64 { + if m != nil && m.IfMcastPackets != nil { + return *m.IfMcastPackets + } + return 0 +} + +func (m *IngressInterfaceStats) GetIfFcStats() []*ForwardingClassAccounting { + if m != nil { + return m.IfFcStats + } + return nil +} + +// +// Interface outbound/Egress traffic statistics +// +type EgressInterfaceStats struct { + // Count of packets + IfPackets *uint64 `protobuf:"varint,1,req,name=if_packets,json=ifPackets" json:"if_packets,omitempty"` + // Count of bytes + IfOctets *uint64 `protobuf:"varint,2,req,name=if_octets,json=ifOctets" json:"if_octets,omitempty"` + // Count of unicast packets + IfUcastPackets *uint64 `protobuf:"varint,3,opt,name=if_ucast_packets,json=ifUcastPackets" json:"if_ucast_packets,omitempty"` + // Count of multicast packets + IfMcastPackets *uint64 `protobuf:"varint,4,opt,name=if_mcast_packets,json=ifMcastPackets" json:"if_mcast_packets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EgressInterfaceStats) Reset() { *m = EgressInterfaceStats{} } +func (m *EgressInterfaceStats) String() string { return proto.CompactTextString(m) } +func (*EgressInterfaceStats) ProtoMessage() {} +func (*EgressInterfaceStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{3} +} +func (m *EgressInterfaceStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EgressInterfaceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EgressInterfaceStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EgressInterfaceStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_EgressInterfaceStats.Merge(m, src) +} +func (m *EgressInterfaceStats) XXX_Size() int { + return m.Size() +} +func (m *EgressInterfaceStats) XXX_DiscardUnknown() { + xxx_messageInfo_EgressInterfaceStats.DiscardUnknown(m) +} + +var xxx_messageInfo_EgressInterfaceStats proto.InternalMessageInfo + +func (m *EgressInterfaceStats) GetIfPackets() uint64 { + if m != nil && m.IfPackets != nil { + return *m.IfPackets + } + return 0 +} + +func (m *EgressInterfaceStats) GetIfOctets() uint64 { + if m != nil && m.IfOctets != nil { + return *m.IfOctets + } + return 0 +} + +func (m *EgressInterfaceStats) GetIfUcastPackets() uint64 { + if m != nil && m.IfUcastPackets != nil { + return *m.IfUcastPackets + } + return 0 +} + +func (m *EgressInterfaceStats) GetIfMcastPackets() uint64 { + if m != nil && m.IfMcastPackets != nil { + return *m.IfMcastPackets + } + return 0 +} + +// +// Interface operational State details +// +type OperationalState struct { + // If the link is up/down + OperationalStatus *string `protobuf:"bytes,1,opt,name=operational_status,json=operationalStatus" json:"operational_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OperationalState) Reset() { *m = OperationalState{} } +func (m *OperationalState) String() string { return proto.CompactTextString(m) } +func (*OperationalState) ProtoMessage() {} +func (*OperationalState) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{4} +} +func (m *OperationalState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OperationalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OperationalState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OperationalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperationalState.Merge(m, src) +} +func (m *OperationalState) XXX_Size() int { + return m.Size() +} +func (m *OperationalState) XXX_DiscardUnknown() { + xxx_messageInfo_OperationalState.DiscardUnknown(m) +} + +var xxx_messageInfo_OperationalState proto.InternalMessageInfo + +func (m *OperationalState) GetOperationalStatus() string { + if m != nil && m.OperationalStatus != nil { + return *m.OperationalStatus + } + return "" +} + +// +// Interface forwarding class accounting +// +type ForwardingClassAccounting struct { + // Interface protocol + IfFamily *string `protobuf:"bytes,1,opt,name=if_family,json=ifFamily" json:"if_family,omitempty"` + // Forwarding class number + FcNumber *uint32 `protobuf:"varint,2,opt,name=fc_number,json=fcNumber" json:"fc_number,omitempty"` + // Count of packets + IfPackets *uint64 `protobuf:"varint,3,opt,name=if_packets,json=ifPackets" json:"if_packets,omitempty"` + // Count of bytes + IfOctets *uint64 `protobuf:"varint,4,opt,name=if_octets,json=ifOctets" json:"if_octets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ForwardingClassAccounting) Reset() { *m = ForwardingClassAccounting{} } +func (m *ForwardingClassAccounting) String() string { return proto.CompactTextString(m) } +func (*ForwardingClassAccounting) ProtoMessage() {} +func (*ForwardingClassAccounting) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{5} +} +func (m *ForwardingClassAccounting) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ForwardingClassAccounting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ForwardingClassAccounting.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ForwardingClassAccounting) XXX_Merge(src proto.Message) { + xxx_messageInfo_ForwardingClassAccounting.Merge(m, src) +} +func (m *ForwardingClassAccounting) XXX_Size() int { + return m.Size() +} +func (m *ForwardingClassAccounting) XXX_DiscardUnknown() { + xxx_messageInfo_ForwardingClassAccounting.DiscardUnknown(m) +} + +var xxx_messageInfo_ForwardingClassAccounting proto.InternalMessageInfo + +func (m *ForwardingClassAccounting) GetIfFamily() string { + if m != nil && m.IfFamily != nil { + return *m.IfFamily + } + return "" +} + +func (m *ForwardingClassAccounting) GetFcNumber() uint32 { + if m != nil && m.FcNumber != nil { + return *m.FcNumber + } + return 0 +} + +func (m *ForwardingClassAccounting) GetIfPackets() uint64 { + if m != nil && m.IfPackets != nil { + return *m.IfPackets + } + return 0 +} + +func (m *ForwardingClassAccounting) GetIfOctets() uint64 { + if m != nil && m.IfOctets != nil { + return *m.IfOctets + } + return 0 +} + +// +// logical Interface family stats accounting +// +type FamilyAccounting struct { + // Interface protocol + IfFamily *string `protobuf:"bytes,1,opt,name=if_family,json=ifFamily" json:"if_family,omitempty"` + // Count of packets + IfPackets *uint64 `protobuf:"varint,2,opt,name=if_packets,json=ifPackets" json:"if_packets,omitempty"` + // Count of v4 bytes + IfOctets *uint64 `protobuf:"varint,3,opt,name=if_octets,json=ifOctets" json:"if_octets,omitempty"` + // Count of v6 packets + IfV6Packets *uint64 `protobuf:"varint,4,opt,name=if_v6_packets,json=ifV6Packets" json:"if_v6_packets,omitempty"` + // Count of v6 bytes + IfV6Octets *uint64 `protobuf:"varint,5,opt,name=if_v6_octets,json=ifV6Octets" json:"if_v6_octets,omitempty"` + // Count of multicast packets + IfMcastPackets *uint64 `protobuf:"varint,6,opt,name=if_mcast_packets,json=ifMcastPackets" json:"if_mcast_packets,omitempty"` + // Count of multicast bytes + IfMcastOctets *uint64 `protobuf:"varint,7,opt,name=if_mcast_octets,json=ifMcastOctets" json:"if_mcast_octets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FamilyAccounting) Reset() { *m = FamilyAccounting{} } +func (m *FamilyAccounting) String() string { return proto.CompactTextString(m) } +func (*FamilyAccounting) ProtoMessage() {} +func (*FamilyAccounting) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{6} +} +func (m *FamilyAccounting) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FamilyAccounting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FamilyAccounting.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FamilyAccounting) XXX_Merge(src proto.Message) { + xxx_messageInfo_FamilyAccounting.Merge(m, src) +} +func (m *FamilyAccounting) XXX_Size() int { + return m.Size() +} +func (m *FamilyAccounting) XXX_DiscardUnknown() { + xxx_messageInfo_FamilyAccounting.DiscardUnknown(m) +} + +var xxx_messageInfo_FamilyAccounting proto.InternalMessageInfo + +func (m *FamilyAccounting) GetIfFamily() string { + if m != nil && m.IfFamily != nil { + return *m.IfFamily + } + return "" +} + +func (m *FamilyAccounting) GetIfPackets() uint64 { + if m != nil && m.IfPackets != nil { + return *m.IfPackets + } + return 0 +} + +func (m *FamilyAccounting) GetIfOctets() uint64 { + if m != nil && m.IfOctets != nil { + return *m.IfOctets + } + return 0 +} + +func (m *FamilyAccounting) GetIfV6Packets() uint64 { + if m != nil && m.IfV6Packets != nil { + return *m.IfV6Packets + } + return 0 +} + +func (m *FamilyAccounting) GetIfV6Octets() uint64 { + if m != nil && m.IfV6Octets != nil { + return *m.IfV6Octets + } + return 0 +} + +func (m *FamilyAccounting) GetIfMcastPackets() uint64 { + if m != nil && m.IfMcastPackets != nil { + return *m.IfMcastPackets + } + return 0 +} + +func (m *FamilyAccounting) GetIfMcastOctets() uint64 { + if m != nil && m.IfMcastOctets != nil { + return *m.IfMcastOctets + } + return 0 +} + +// +// Interface queue statistics +// +type LogicalInterfaceQueueStats struct { + // Queue number + QueueNumber *uint32 `protobuf:"varint,1,opt,name=queue_number,json=queueNumber" json:"queue_number,omitempty"` + // The total number of packets that have been added to this queue + Packets *uint64 `protobuf:"varint,2,opt,name=packets" json:"packets,omitempty"` + // The total number of bytes that have been added to this queue + Bytes *uint64 `protobuf:"varint,3,opt,name=bytes" json:"bytes,omitempty"` + // The total number of tail dropped packets + TailDropPackets *uint64 `protobuf:"varint,4,opt,name=tail_drop_packets,json=tailDropPackets" json:"tail_drop_packets,omitempty"` + // The total number of rate-limited packets + RateLimitDropPackets *uint64 `protobuf:"varint,5,opt,name=rate_limit_drop_packets,json=rateLimitDropPackets" json:"rate_limit_drop_packets,omitempty"` + // The total number of rate-limited bytes + RateLimitDropBytes *uint64 `protobuf:"varint,6,opt,name=rate_limit_drop_bytes,json=rateLimitDropBytes" json:"rate_limit_drop_bytes,omitempty"` + // The total number of red-dropped packets + RedDropPackets *uint64 `protobuf:"varint,7,opt,name=red_drop_packets,json=redDropPackets" json:"red_drop_packets,omitempty"` + // The total number of red-dropped bytes + RedDropBytes *uint64 `protobuf:"varint,8,opt,name=red_drop_bytes,json=redDropBytes" json:"red_drop_bytes,omitempty"` + // Average queue depth, in packets + AverageBufferOccupancy *uint64 `protobuf:"varint,9,opt,name=average_buffer_occupancy,json=averageBufferOccupancy" json:"average_buffer_occupancy,omitempty"` + // Current queue depth, in packets + CurrentBufferOccupancy *uint64 `protobuf:"varint,10,opt,name=current_buffer_occupancy,json=currentBufferOccupancy" json:"current_buffer_occupancy,omitempty"` + // The max measured queue depth, in packets, across all measurements since boot + PeakBufferOccupancy *uint64 `protobuf:"varint,11,opt,name=peak_buffer_occupancy,json=peakBufferOccupancy" json:"peak_buffer_occupancy,omitempty"` + // Allocated buffer size + AllocatedBufferSize *uint64 `protobuf:"varint,12,opt,name=allocated_buffer_size,json=allocatedBufferSize" json:"allocated_buffer_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LogicalInterfaceQueueStats) Reset() { *m = LogicalInterfaceQueueStats{} } +func (m *LogicalInterfaceQueueStats) String() string { return proto.CompactTextString(m) } +func (*LogicalInterfaceQueueStats) ProtoMessage() {} +func (*LogicalInterfaceQueueStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ed53654dcd9b9a05, []int{7} +} +func (m *LogicalInterfaceQueueStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LogicalInterfaceQueueStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LogicalInterfaceQueueStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LogicalInterfaceQueueStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LogicalInterfaceQueueStats.Merge(m, src) +} +func (m *LogicalInterfaceQueueStats) XXX_Size() int { + return m.Size() +} +func (m *LogicalInterfaceQueueStats) XXX_DiscardUnknown() { + xxx_messageInfo_LogicalInterfaceQueueStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LogicalInterfaceQueueStats proto.InternalMessageInfo + +func (m *LogicalInterfaceQueueStats) GetQueueNumber() uint32 { + if m != nil && m.QueueNumber != nil { + return *m.QueueNumber + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetTailDropPackets() uint64 { + if m != nil && m.TailDropPackets != nil { + return *m.TailDropPackets + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetRateLimitDropPackets() uint64 { + if m != nil && m.RateLimitDropPackets != nil { + return *m.RateLimitDropPackets + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetRateLimitDropBytes() uint64 { + if m != nil && m.RateLimitDropBytes != nil { + return *m.RateLimitDropBytes + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetRedDropPackets() uint64 { + if m != nil && m.RedDropPackets != nil { + return *m.RedDropPackets + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetRedDropBytes() uint64 { + if m != nil && m.RedDropBytes != nil { + return *m.RedDropBytes + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetAverageBufferOccupancy() uint64 { + if m != nil && m.AverageBufferOccupancy != nil { + return *m.AverageBufferOccupancy + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetCurrentBufferOccupancy() uint64 { + if m != nil && m.CurrentBufferOccupancy != nil { + return *m.CurrentBufferOccupancy + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetPeakBufferOccupancy() uint64 { + if m != nil && m.PeakBufferOccupancy != nil { + return *m.PeakBufferOccupancy + } + return 0 +} + +func (m *LogicalInterfaceQueueStats) GetAllocatedBufferSize() uint64 { + if m != nil && m.AllocatedBufferSize != nil { + return *m.AllocatedBufferSize + } + return 0 +} + +var E_JnprLogicalInterfaceExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LogicalPort)(nil), + Field: 7, + Name: "jnprLogicalInterfaceExt", + Tag: "bytes,7,opt,name=jnprLogicalInterfaceExt", + Filename: "logical_port.proto", +} + +func init() { + proto.RegisterType((*LogicalPort)(nil), "LogicalPort") + proto.RegisterType((*LogicalInterfaceInfo)(nil), "LogicalInterfaceInfo") + proto.RegisterType((*IngressInterfaceStats)(nil), "IngressInterfaceStats") + proto.RegisterType((*EgressInterfaceStats)(nil), "EgressInterfaceStats") + proto.RegisterType((*OperationalState)(nil), "OperationalState") + proto.RegisterType((*ForwardingClassAccounting)(nil), "ForwardingClassAccounting") + proto.RegisterType((*FamilyAccounting)(nil), "FamilyAccounting") + proto.RegisterType((*LogicalInterfaceQueueStats)(nil), "logicalInterfaceQueueStats") + proto.RegisterExtension(E_JnprLogicalInterfaceExt) +} + +func init() { proto.RegisterFile("logical_port.proto", fileDescriptor_ed53654dcd9b9a05) } + +var fileDescriptor_ed53654dcd9b9a05 = []byte{ + // 1046 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x5d, 0x73, 0xdb, 0x44, + 0x14, 0x1d, 0xb9, 0x75, 0xe2, 0x5c, 0xdb, 0x89, 0xa3, 0xc6, 0x89, 0x48, 0x87, 0xd4, 0xe3, 0x61, + 0x06, 0x33, 0x25, 0xf6, 0xd0, 0x19, 0x3a, 0xa5, 0x74, 0x06, 0x92, 0x92, 0x30, 0x86, 0x92, 0x14, + 0x07, 0x78, 0xe0, 0x65, 0xd9, 0xc8, 0x77, 0xed, 0x4d, 0xa4, 0x5d, 0xb1, 0x5a, 0xa5, 0x4d, 0x1f, + 0x19, 0xf8, 0x39, 0xbc, 0xf1, 0x0b, 0x78, 0xe2, 0x91, 0x9f, 0xc0, 0xe4, 0x8f, 0xc0, 0xec, 0x4a, + 0x72, 0x25, 0xc7, 0xe1, 0xe3, 0x91, 0x37, 0xfb, 0xdc, 0x73, 0xce, 0xee, 0x3d, 0x7b, 0xb5, 0x12, + 0xb8, 0x81, 0x9c, 0x70, 0x9f, 0x06, 0x24, 0x92, 0x4a, 0xf7, 0x23, 0x25, 0xb5, 0xdc, 0xbe, 0xa3, + 0x31, 0xc0, 0x10, 0xb5, 0xba, 0x24, 0x5a, 0x46, 0x29, 0xd8, 0xfd, 0x1c, 0xea, 0xcf, 0x52, 0xea, + 0x73, 0xa9, 0xb4, 0xfb, 0x04, 0x56, 0xb9, 0xd0, 0xa8, 0x18, 0xf5, 0x91, 0x70, 0xc1, 0xa4, 0xe7, + 0x74, 0x6e, 0xf5, 0xea, 0x0f, 0xda, 0xfd, 0x8c, 0x35, 0xcc, 0xab, 0x43, 0xc1, 0xe4, 0xa8, 0xc9, + 0x8b, 0x7f, 0xbb, 0x3f, 0x56, 0x61, 0x63, 0x11, 0xcf, 0xdd, 0x81, 0x65, 0xce, 0x88, 0xa0, 0x21, + 0x7a, 0x4e, 0xa7, 0xd2, 0x5b, 0xd9, 0xaf, 0xfe, 0xf0, 0x71, 0xa5, 0xe6, 0x8c, 0x96, 0x38, 0x3b, + 0xa2, 0x21, 0xba, 0x5d, 0x58, 0xe1, 0x82, 0x6b, 0xa2, 0x79, 0x88, 0x5e, 0xa5, 0x53, 0xe9, 0xdd, + 0xb6, 0x8c, 0x96, 0x33, 0xaa, 0x19, 0xfc, 0x2b, 0x1e, 0xa2, 0xfb, 0x0e, 0x34, 0x63, 0x11, 0x46, + 0x84, 0x33, 0xc2, 0xc5, 0x18, 0x5f, 0x7a, 0xb7, 0x3a, 0x4e, 0xaf, 0x99, 0x3b, 0xd5, 0x4d, 0x6d, + 0xc8, 0x86, 0xa6, 0xe2, 0xde, 0x87, 0xd5, 0x88, 0x2a, 0x14, 0x9a, 0x50, 0x4c, 0x57, 0xbd, 0xdd, + 0x71, 0x5e, 0xaf, 0xda, 0x48, 0x8b, 0x7b, 0x68, 0xd7, 0xfe, 0x10, 0x9a, 0x5c, 0x4c, 0x14, 0xc6, + 0x31, 0x89, 0x35, 0xd5, 0xb1, 0x57, 0xed, 0x38, 0xbd, 0xfa, 0x83, 0xcd, 0xfe, 0x30, 0x45, 0x67, + 0x9d, 0x9c, 0x98, 0xea, 0xa8, 0x91, 0x91, 0xed, 0x3f, 0xf7, 0x11, 0x34, 0xb0, 0xa8, 0x5d, 0xb2, + 0xda, 0x76, 0xff, 0x60, 0x91, 0xb4, 0x8e, 0x05, 0xe5, 0xbb, 0x50, 0x93, 0x91, 0x55, 0xa1, 0xb7, + 0x6c, 0x55, 0xeb, 0xfd, 0xe3, 0x08, 0x15, 0xd5, 0x5c, 0x0a, 0x1a, 0x18, 0x12, 0x8e, 0x96, 0x65, + 0x64, 0x7f, 0xb8, 0xef, 0xc3, 0x26, 0x1d, 0x87, 0x5c, 0xf0, 0x58, 0x2b, 0xea, 0x6b, 0x7e, 0x81, + 0x56, 0x9a, 0xc4, 0x5e, 0xcd, 0x74, 0x36, 0x6a, 0xcf, 0x55, 0x4f, 0x6c, 0xd1, 0xed, 0x40, 0x7d, + 0x8c, 0xb1, 0xaf, 0x78, 0x64, 0x5c, 0xbd, 0x15, 0xcb, 0x2d, 0x42, 0xee, 0x3d, 0xa8, 0x07, 0x34, + 0xd6, 0xc4, 0x9f, 0x52, 0x31, 0x41, 0x0f, 0x4c, 0xa6, 0x23, 0x30, 0xd0, 0x53, 0x8b, 0xb8, 0x6f, + 0x02, 0x4c, 0xf9, 0x64, 0x4a, 0xe2, 0x08, 0x71, 0xec, 0xd5, 0x6d, 0x7d, 0xc5, 0x20, 0x27, 0x06, + 0x70, 0x87, 0xe0, 0xe6, 0xe9, 0x7d, 0x9f, 0x60, 0x92, 0x0d, 0x4d, 0xc3, 0x0e, 0xcd, 0xdd, 0x7e, + 0x30, 0x37, 0x0c, 0x5f, 0x1a, 0x4a, 0x1a, 0x46, 0x2b, 0x93, 0x59, 0xc8, 0x0e, 0xc9, 0xa7, 0xb0, + 0x8e, 0xd7, 0x9c, 0x9a, 0xff, 0xec, 0xb4, 0x86, 0x65, 0xa3, 0xee, 0x9f, 0x0e, 0xb4, 0x17, 0x1e, + 0x9e, 0xfb, 0x16, 0x00, 0x67, 0x24, 0xa2, 0xfe, 0x39, 0xea, 0xd8, 0x8e, 0x62, 0x3a, 0x68, 0x9e, + 0x33, 0x5a, 0xe1, 0xec, 0x79, 0x8a, 0xdb, 0x69, 0x64, 0x44, 0xfa, 0xda, 0x90, 0x2a, 0x45, 0x52, + 0x8d, 0xb3, 0x63, 0x0b, 0xbb, 0x03, 0x68, 0x71, 0x46, 0x12, 0xdf, 0x64, 0x97, 0xfb, 0x99, 0x81, + 0x9c, 0x51, 0x57, 0x39, 0xfb, 0xda, 0x54, 0x73, 0xd3, 0x54, 0x10, 0x96, 0x04, 0xb7, 0xe7, 0x04, + 0x5f, 0x14, 0x05, 0x8f, 0xa1, 0xce, 0x19, 0x61, 0xfe, 0x6c, 0x2a, 0x4d, 0x10, 0xdb, 0xfd, 0x43, + 0xa9, 0x5e, 0x50, 0x35, 0xe6, 0x62, 0xf2, 0x34, 0xa0, 0x71, 0xbc, 0xe7, 0xfb, 0x32, 0x11, 0x9a, + 0x8b, 0x89, 0xe9, 0xe0, 0xd0, 0xb7, 0x7d, 0x76, 0x7f, 0x75, 0x60, 0xe3, 0xe0, 0x7f, 0x1e, 0x40, + 0x77, 0x0f, 0x5a, 0xf3, 0x0f, 0x84, 0xbb, 0x0b, 0xae, 0x7c, 0x8d, 0xe5, 0xcf, 0x80, 0x63, 0xe7, + 0x7a, 0x5d, 0x96, 0xd9, 0x49, 0xdc, 0xfd, 0xd9, 0x81, 0x37, 0x6e, 0x0c, 0x2c, 0x6b, 0x93, 0xd1, + 0x90, 0x07, 0x97, 0xa9, 0x47, 0x7e, 0x43, 0xd4, 0x38, 0x3b, 0xb4, 0xb0, 0xe1, 0x30, 0x9f, 0x88, + 0x24, 0x3c, 0x45, 0xe5, 0x55, 0x8a, 0x37, 0x4e, 0x8d, 0xf9, 0x47, 0x16, 0x9e, 0x0b, 0xb5, 0x14, + 0xc2, 0x4d, 0xa1, 0x96, 0x1a, 0x9f, 0x85, 0xda, 0xfd, 0xa5, 0x02, 0xad, 0x74, 0xe1, 0xff, 0xb8, + 0xcd, 0xf2, 0x16, 0x2a, 0xff, 0x66, 0x0b, 0xb7, 0x16, 0x6e, 0xc1, 0x5c, 0xb3, 0x9c, 0x91, 0x8b, + 0x87, 0x8b, 0xcf, 0xa8, 0xce, 0xd9, 0x37, 0x0f, 0x73, 0xbb, 0xb7, 0xa1, 0x91, 0x52, 0x33, 0xc7, + 0x6a, 0x91, 0x09, 0x86, 0x59, 0x9a, 0x95, 0xf2, 0xd1, 0x2f, 0xfd, 0xdd, 0xec, 0xef, 0xc2, 0xda, + 0x4c, 0x90, 0x99, 0x2f, 0x17, 0xf9, 0xcd, 0x8c, 0x9f, 0xc5, 0xf6, 0x53, 0x15, 0xb6, 0x6f, 0xbe, + 0x20, 0xdc, 0x1e, 0x34, 0xd2, 0x1b, 0x25, 0x3b, 0x46, 0xa7, 0xf4, 0xe2, 0xb0, 0xa5, 0xec, 0x24, + 0xef, 0xc1, 0xf2, 0xc2, 0x0c, 0x73, 0xd4, 0xbd, 0x0b, 0xd5, 0xd3, 0x4b, 0x8d, 0x73, 0xe9, 0xa5, + 0x98, 0xfb, 0x1e, 0xac, 0x6b, 0xca, 0x03, 0x32, 0x56, 0x32, 0x5a, 0x1c, 0xdf, 0x9a, 0xa9, 0x7f, + 0xa2, 0x64, 0x94, 0x37, 0xfa, 0x04, 0xb6, 0x14, 0xd5, 0x48, 0x02, 0x1e, 0x72, 0x5d, 0x16, 0x96, + 0xd2, 0xdc, 0x30, 0xac, 0x67, 0x86, 0x54, 0x54, 0x3f, 0x82, 0xf6, 0xbc, 0x3a, 0xdd, 0x5d, 0x29, + 0x5c, 0xb7, 0xa4, 0xdd, 0xb7, 0x5b, 0x1d, 0x40, 0x4b, 0xe1, 0xb8, 0xbc, 0x60, 0x29, 0xe1, 0x55, + 0x85, 0xe3, 0xe2, 0x52, 0xf7, 0x61, 0x75, 0x26, 0x48, 0xd7, 0xa8, 0x15, 0xe9, 0x8d, 0x8c, 0x9e, + 0xba, 0x7f, 0x04, 0x1e, 0xbd, 0x40, 0x45, 0x27, 0x48, 0x4e, 0x13, 0xc6, 0x50, 0x11, 0xe9, 0xfb, + 0x49, 0x44, 0x85, 0x7f, 0x69, 0xdf, 0x41, 0xa9, 0xac, 0xe3, 0x8c, 0x36, 0x33, 0xda, 0xbe, 0x65, + 0x1d, 0xe7, 0x24, 0x63, 0xe0, 0x27, 0xca, 0xbe, 0xc1, 0xaf, 0x19, 0x40, 0xc9, 0x20, 0xa3, 0xcd, + 0x1b, 0x7c, 0x00, 0xed, 0x08, 0xe9, 0xf9, 0x75, 0x75, 0xbd, 0xa8, 0xbe, 0x63, 0x38, 0x0b, 0xa4, + 0x34, 0x08, 0xa4, 0x4f, 0x35, 0x8e, 0x73, 0x7d, 0xcc, 0x5f, 0xa1, 0xd7, 0x28, 0x49, 0x67, 0x9c, + 0x54, 0x7f, 0xc2, 0x5f, 0xe1, 0x63, 0x02, 0x5b, 0x67, 0x22, 0x52, 0xf3, 0x9f, 0x40, 0x07, 0x2f, + 0xb5, 0xbb, 0xd5, 0xff, 0x2c, 0x11, 0x3c, 0x42, 0x75, 0x84, 0xfa, 0x85, 0x54, 0xe7, 0xf1, 0x09, + 0x8a, 0x58, 0xaa, 0x38, 0x7b, 0xf7, 0x37, 0xfa, 0x85, 0xaf, 0xb0, 0xd1, 0x4d, 0x2e, 0xfb, 0xdf, + 0xfd, 0x76, 0xb5, 0xe3, 0xfc, 0x7e, 0xb5, 0xe3, 0xfc, 0x71, 0xb5, 0xe3, 0x7c, 0x3b, 0x9a, 0x70, + 0xdd, 0x3f, 0x4b, 0x6d, 0xfb, 0x02, 0xf5, 0x80, 0xfb, 0x78, 0x8a, 0x6a, 0x32, 0x98, 0x22, 0x0d, + 0xf4, 0xf4, 0x54, 0xea, 0x5d, 0x2e, 0x26, 0x18, 0xeb, 0xdd, 0x33, 0xcd, 0x77, 0x05, 0x35, 0x1f, + 0x06, 0x83, 0xe8, 0x7c, 0x32, 0x38, 0xd3, 0x7c, 0x40, 0xc7, 0x34, 0xd2, 0xa8, 0xe2, 0x01, 0x39, + 0x4b, 0x84, 0x8c, 0x07, 0xb1, 0x3f, 0xc5, 0x90, 0xfe, 0x15, 0x00, 0x00, 0xff, 0xff, 0x38, 0x55, + 0xa2, 0x25, 0x39, 0x0a, 0x00, 0x00, +} + +func (m *LogicalPort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LogicalPort) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LogicalPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.InterfaceInfo) > 0 { + for iNdEx := len(m.InterfaceInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InterfaceInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LogicalInterfaceInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LogicalInterfaceInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LogicalInterfaceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.EgressQueueInfo) > 0 { + for iNdEx := len(m.EgressQueueInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EgressQueueInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + } + if len(m.IngressQueueInfo) > 0 { + for iNdEx := len(m.IngressQueueInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IngressQueueInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if m.HighSpeed != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.HighSpeed)) + i-- + dAtA[i] = 0x58 + } + if m.LastChange != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.LastChange)) + i-- + dAtA[i] = 0x50 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x4a + } + if m.AdministractiveStatus != nil { + i -= len(*m.AdministractiveStatus) + copy(dAtA[i:], *m.AdministractiveStatus) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.AdministractiveStatus))) + i-- + dAtA[i] = 0x42 + } + if m.OpState != nil { + { + size, err := m.OpState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x22 + } + if m.SnmpIfIndex != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.SnmpIfIndex)) + i-- + dAtA[i] = 0x18 + } + if m.InitTime == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("init_time") + } else { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.InitTime)) + i-- + dAtA[i] = 0x10 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IngressInterfaceStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressInterfaceStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressInterfaceStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.IfFcStats) > 0 { + for iNdEx := len(m.IfFcStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IfFcStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLogicalPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.IfMcastPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfMcastPackets)) + i-- + dAtA[i] = 0x20 + } + if m.IfUcastPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfUcastPackets)) + i-- + dAtA[i] = 0x18 + } + if m.IfOctets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_octets") + } else { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfOctets)) + i-- + dAtA[i] = 0x10 + } + if m.IfPackets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_packets") + } else { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfPackets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EgressInterfaceStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EgressInterfaceStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EgressInterfaceStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfMcastPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfMcastPackets)) + i-- + dAtA[i] = 0x20 + } + if m.IfUcastPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfUcastPackets)) + i-- + dAtA[i] = 0x18 + } + if m.IfOctets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_octets") + } else { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfOctets)) + i-- + dAtA[i] = 0x10 + } + if m.IfPackets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_packets") + } else { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfPackets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *OperationalState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OperationalState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperationalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OperationalStatus != nil { + i -= len(*m.OperationalStatus) + copy(dAtA[i:], *m.OperationalStatus) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.OperationalStatus))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ForwardingClassAccounting) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ForwardingClassAccounting) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ForwardingClassAccounting) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfOctets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfOctets)) + i-- + dAtA[i] = 0x20 + } + if m.IfPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfPackets)) + i-- + dAtA[i] = 0x18 + } + if m.FcNumber != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.FcNumber)) + i-- + dAtA[i] = 0x10 + } + if m.IfFamily != nil { + i -= len(*m.IfFamily) + copy(dAtA[i:], *m.IfFamily) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.IfFamily))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FamilyAccounting) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FamilyAccounting) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FamilyAccounting) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfMcastOctets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfMcastOctets)) + i-- + dAtA[i] = 0x38 + } + if m.IfMcastPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfMcastPackets)) + i-- + dAtA[i] = 0x30 + } + if m.IfV6Octets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfV6Octets)) + i-- + dAtA[i] = 0x28 + } + if m.IfV6Packets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfV6Packets)) + i-- + dAtA[i] = 0x20 + } + if m.IfOctets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfOctets)) + i-- + dAtA[i] = 0x18 + } + if m.IfPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.IfPackets)) + i-- + dAtA[i] = 0x10 + } + if m.IfFamily != nil { + i -= len(*m.IfFamily) + copy(dAtA[i:], *m.IfFamily) + i = encodeVarintLogicalPort(dAtA, i, uint64(len(*m.IfFamily))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *LogicalInterfaceQueueStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LogicalInterfaceQueueStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LogicalInterfaceQueueStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AllocatedBufferSize != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.AllocatedBufferSize)) + i-- + dAtA[i] = 0x60 + } + if m.PeakBufferOccupancy != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.PeakBufferOccupancy)) + i-- + dAtA[i] = 0x58 + } + if m.CurrentBufferOccupancy != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.CurrentBufferOccupancy)) + i-- + dAtA[i] = 0x50 + } + if m.AverageBufferOccupancy != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.AverageBufferOccupancy)) + i-- + dAtA[i] = 0x48 + } + if m.RedDropBytes != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.RedDropBytes)) + i-- + dAtA[i] = 0x40 + } + if m.RedDropPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.RedDropPackets)) + i-- + dAtA[i] = 0x38 + } + if m.RateLimitDropBytes != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.RateLimitDropBytes)) + i-- + dAtA[i] = 0x30 + } + if m.RateLimitDropPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.RateLimitDropPackets)) + i-- + dAtA[i] = 0x28 + } + if m.TailDropPackets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.TailDropPackets)) + i-- + dAtA[i] = 0x20 + } + if m.Bytes != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x18 + } + if m.Packets != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x10 + } + if m.QueueNumber != nil { + i = encodeVarintLogicalPort(dAtA, i, uint64(*m.QueueNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintLogicalPort(dAtA []byte, offset int, v uint64) int { + offset -= sovLogicalPort(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LogicalPort) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InterfaceInfo) > 0 { + for _, e := range m.InterfaceInfo { + l = e.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LogicalInterfaceInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.InitTime != nil { + n += 1 + sovLogicalPort(uint64(*m.InitTime)) + } + if m.SnmpIfIndex != nil { + n += 1 + sovLogicalPort(uint64(*m.SnmpIfIndex)) + } + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.OpState != nil { + l = m.OpState.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.AdministractiveStatus != nil { + l = len(*m.AdministractiveStatus) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.LastChange != nil { + n += 1 + sovLogicalPort(uint64(*m.LastChange)) + } + if m.HighSpeed != nil { + n += 1 + sovLogicalPort(uint64(*m.HighSpeed)) + } + if len(m.IngressQueueInfo) > 0 { + for _, e := range m.IngressQueueInfo { + l = e.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + } + if len(m.EgressQueueInfo) > 0 { + for _, e := range m.EgressQueueInfo { + l = e.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IngressInterfaceStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfPackets)) + } + if m.IfOctets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfOctets)) + } + if m.IfUcastPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfUcastPackets)) + } + if m.IfMcastPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfMcastPackets)) + } + if len(m.IfFcStats) > 0 { + for _, e := range m.IfFcStats { + l = e.Size() + n += 1 + l + sovLogicalPort(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *EgressInterfaceStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfPackets)) + } + if m.IfOctets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfOctets)) + } + if m.IfUcastPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfUcastPackets)) + } + if m.IfMcastPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfMcastPackets)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *OperationalState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OperationalStatus != nil { + l = len(*m.OperationalStatus) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ForwardingClassAccounting) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfFamily != nil { + l = len(*m.IfFamily) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.FcNumber != nil { + n += 1 + sovLogicalPort(uint64(*m.FcNumber)) + } + if m.IfPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfPackets)) + } + if m.IfOctets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfOctets)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FamilyAccounting) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfFamily != nil { + l = len(*m.IfFamily) + n += 1 + l + sovLogicalPort(uint64(l)) + } + if m.IfPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfPackets)) + } + if m.IfOctets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfOctets)) + } + if m.IfV6Packets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfV6Packets)) + } + if m.IfV6Octets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfV6Octets)) + } + if m.IfMcastPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfMcastPackets)) + } + if m.IfMcastOctets != nil { + n += 1 + sovLogicalPort(uint64(*m.IfMcastOctets)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LogicalInterfaceQueueStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QueueNumber != nil { + n += 1 + sovLogicalPort(uint64(*m.QueueNumber)) + } + if m.Packets != nil { + n += 1 + sovLogicalPort(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLogicalPort(uint64(*m.Bytes)) + } + if m.TailDropPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.TailDropPackets)) + } + if m.RateLimitDropPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.RateLimitDropPackets)) + } + if m.RateLimitDropBytes != nil { + n += 1 + sovLogicalPort(uint64(*m.RateLimitDropBytes)) + } + if m.RedDropPackets != nil { + n += 1 + sovLogicalPort(uint64(*m.RedDropPackets)) + } + if m.RedDropBytes != nil { + n += 1 + sovLogicalPort(uint64(*m.RedDropBytes)) + } + if m.AverageBufferOccupancy != nil { + n += 1 + sovLogicalPort(uint64(*m.AverageBufferOccupancy)) + } + if m.CurrentBufferOccupancy != nil { + n += 1 + sovLogicalPort(uint64(*m.CurrentBufferOccupancy)) + } + if m.PeakBufferOccupancy != nil { + n += 1 + sovLogicalPort(uint64(*m.PeakBufferOccupancy)) + } + if m.AllocatedBufferSize != nil { + n += 1 + sovLogicalPort(uint64(*m.AllocatedBufferSize)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLogicalPort(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLogicalPort(x uint64) (n int) { + return sovLogicalPort(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LogicalPort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LogicalPort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LogicalPort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterfaceInfo = append(m.InterfaceInfo, &LogicalInterfaceInfo{}) + if err := m.InterfaceInfo[len(m.InterfaceInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LogicalInterfaceInfo) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LogicalInterfaceInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LogicalInterfaceInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitTime = &v + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnmpIfIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnmpIfIndex = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &IngressInterfaceStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &EgressInterfaceStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OpState", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OpState == nil { + m.OpState = &OperationalState{} + } + if err := m.OpState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdministractiveStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdministractiveStatus = &s + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastChange", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastChange = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighSpeed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HighSpeed = &v + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressQueueInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IngressQueueInfo = append(m.IngressQueueInfo, &LogicalInterfaceQueueStats{}) + if err := m.IngressQueueInfo[len(m.IngressQueueInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressQueueInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EgressQueueInfo = append(m.EgressQueueInfo, &LogicalInterfaceQueueStats{}) + if err := m.EgressQueueInfo[len(m.EgressQueueInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("init_time") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressInterfaceStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressInterfaceStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressInterfaceStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfPackets = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfOctets = &v + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfUcastPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfUcastPackets = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfMcastPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfMcastPackets = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfFcStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IfFcStats = append(m.IfFcStats, &ForwardingClassAccounting{}) + if err := m.IfFcStats[len(m.IfFcStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_packets") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_octets") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EgressInterfaceStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EgressInterfaceStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EgressInterfaceStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfPackets = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfOctets = &v + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfUcastPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfUcastPackets = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfMcastPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfMcastPackets = &v + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_packets") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_octets") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OperationalState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OperationalState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OperationalState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperationalStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperationalStatus = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ForwardingClassAccounting) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ForwardingClassAccounting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ForwardingClassAccounting: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfFamily", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfFamily = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FcNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FcNumber = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfPackets = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfOctets = &v + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FamilyAccounting) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FamilyAccounting: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FamilyAccounting: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfFamily", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLogicalPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLogicalPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfFamily = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfPackets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfOctets = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfV6Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfV6Packets = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfV6Octets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfV6Octets = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfMcastPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfMcastPackets = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfMcastOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfMcastOctets = &v + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LogicalInterfaceQueueStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: logicalInterfaceQueueStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: logicalInterfaceQueueStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueNumber = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TailDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TailDropPackets = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimitDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RateLimitDropPackets = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimitDropBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RateLimitDropBytes = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropPackets = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropBytes = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageBufferOccupancy", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageBufferOccupancy = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentBufferOccupancy", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentBufferOccupancy = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeakBufferOccupancy", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeakBufferOccupancy = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocatedBufferSize", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllocatedBufferSize = &v + default: + iNdEx = preIndex + skippy, err := skipLogicalPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLogicalPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLogicalPort(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLogicalPort + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLogicalPort + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLogicalPort + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLogicalPort + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLogicalPort = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLogicalPort = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLogicalPort = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/logical_port.proto b/schema/logical_port.proto new file mode 100755 index 0000000..172f7b7 --- /dev/null +++ b/schema/logical_port.proto @@ -0,0 +1,227 @@ +// Copyright (c) 2015, 2021 Juniper Networks, Inc. +// 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. + + +// +// Version 1.1 +// + +// +// Nitin Kumar, 2015-05-29 +// +// This file defines the messages in Protocol Buffers used by +// the interface sensor. The top-level message is LogicalPort. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 7 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LogicalPort jnprLogicalInterfaceExt = 7; +} + + +// +// Top-level message +// +message LogicalPort { + repeated LogicalInterfaceInfo interface_info = 1; +} + + +// +// Logical Interaface information +// +message LogicalInterfaceInfo { + // Logical interface name (e.g. xe-0/0/0.0) + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Time reset + required uint64 init_time = 2 [(telemetry_options).is_timestamp = true]; + + // Global Index + optional uint32 snmp_if_index = 3 [(telemetry_options).is_key = true]; + + // Name of the aggregate bundle + optional string parent_ae_name = 4 [(telemetry_options).is_key = true]; + + // Inbound traffic statistics + optional IngressInterfaceStats ingress_stats = 5; + + // Outbound traffic statistics + optional EgressInterfaceStats egress_stats = 6; + + // Link state UP\DOWN etc. + optional OperationalState op_state = 7; + + // administrative status, i.e.. enabled/disabled + optional string administractive_status = 8; + + // Description of the interface + optional string description = 9; + + // This corresponds to the ifLastChange object in the standard interface MIB + optional uint32 last_change = 10; + + // This corresponds to the ifHighSpeed object in the standard interface MIB + optional uint32 high_speed = 11; + + // Ingress queue information + repeated logicalInterfaceQueueStats ingress_queue_info = 12; + + // Egress queue information + repeated logicalInterfaceQueueStats egress_queue_info = 13; + +} + + +// +// Interface inbound/Ingress traffic statistics +// +message IngressInterfaceStats { + // Count of packets + required uint64 if_packets = 1 [(telemetry_options).is_counter = true]; + + // Count of bytes + required uint64 if_octets = 2 [(telemetry_options).is_counter = true]; + + // Count of unicast packets + optional uint64 if_ucast_packets = 3 [(telemetry_options).is_counter = true]; + + // Count of multicast packets + optional uint64 if_mcast_packets = 4 [(telemetry_options).is_counter = true]; + + repeated ForwardingClassAccounting if_fc_stats = 5; + +} + + +// +// Interface outbound/Egress traffic statistics +// +message EgressInterfaceStats { + // Count of packets + required uint64 if_packets = 1 [(telemetry_options).is_counter = true]; + + // Count of bytes + required uint64 if_octets = 2 [(telemetry_options).is_counter = true]; + + // Count of unicast packets + optional uint64 if_ucast_packets = 3 [(telemetry_options).is_counter = true]; + + // Count of multicast packets + optional uint64 if_mcast_packets = 4 [(telemetry_options).is_counter = true]; + +} + + +// +// Interface operational State details +// +message OperationalState { + // If the link is up/down + optional string operational_status = 1; +} + + +// +// Interface forwarding class accounting +// +message ForwardingClassAccounting { + // Interface protocol + optional string if_family = 1 [(telemetry_options).is_key = true]; + + // Forwarding class number + optional uint32 fc_number = 2 [(telemetry_options).is_key = true]; + + // Count of packets + optional uint64 if_packets = 3 [(telemetry_options).is_counter = true]; + + // Count of bytes + optional uint64 if_octets = 4 [(telemetry_options).is_counter = true]; +} + +// +// logical Interface family stats accounting +// +message FamilyAccounting { + // Interface protocol + optional string if_family = 1 [(telemetry_options).is_key = true]; + + // Count of packets + optional uint64 if_packets = 2 [(telemetry_options).is_counter = true]; + + // Count of v4 bytes + optional uint64 if_octets = 3 [(telemetry_options).is_counter = true]; + + // Count of v6 packets + optional uint64 if_v6_packets = 4 [(telemetry_options).is_counter = true]; + + // Count of v6 bytes + optional uint64 if_v6_octets = 5 [(telemetry_options).is_counter = true]; + + // Count of multicast packets + optional uint64 if_mcast_packets = 6 [(telemetry_options).is_counter = true]; + + // Count of multicast bytes + optional uint64 if_mcast_octets = 7 [(telemetry_options).is_counter = true]; + +} + +// +// Interface queue statistics +// +message logicalInterfaceQueueStats { + // Queue number + optional uint32 queue_number = 1 [(telemetry_options).is_key = true]; + + // The total number of packets that have been added to this queue + optional uint64 packets = 2 [(telemetry_options).is_counter = true]; + + // The total number of bytes that have been added to this queue + optional uint64 bytes = 3 [(telemetry_options).is_counter = true]; + + // The total number of tail dropped packets + optional uint64 tail_drop_packets = 4 [(telemetry_options).is_counter = true]; + + // The total number of rate-limited packets + optional uint64 rate_limit_drop_packets = 5 [(telemetry_options).is_counter = true]; + + // The total number of rate-limited bytes + optional uint64 rate_limit_drop_bytes = 6 [(telemetry_options).is_counter = true]; + + // The total number of red-dropped packets + optional uint64 red_drop_packets = 7 [(telemetry_options).is_counter = true]; + + // The total number of red-dropped bytes + optional uint64 red_drop_bytes = 8 [(telemetry_options).is_counter = true]; + + // Average queue depth, in packets + optional uint64 average_buffer_occupancy = 9 [(telemetry_options).is_gauge = true]; + + // Current queue depth, in packets + optional uint64 current_buffer_occupancy = 10 [(telemetry_options).is_gauge = true]; + + // The max measured queue depth, in packets, across all measurements since boot + optional uint64 peak_buffer_occupancy = 11 [(telemetry_options).is_gauge = true]; + + // Allocated buffer size + optional uint64 allocated_buffer_size = 12 [(telemetry_options).is_gauge = true]; +} + diff --git a/schema/lsp_stats.pb.go b/schema/lsp_stats.pb.go new file mode 100644 index 0000000..548e625 --- /dev/null +++ b/schema/lsp_stats.pb.go @@ -0,0 +1,817 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: lsp_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type LspStats struct { + // List of LSP statistics records + LspStatsRecords []*LspStatsRecord `protobuf:"bytes,1,rep,name=lsp_stats_records,json=lspStatsRecords" json:"lsp_stats_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LspStats) Reset() { *m = LspStats{} } +func (m *LspStats) String() string { return proto.CompactTextString(m) } +func (*LspStats) ProtoMessage() {} +func (*LspStats) Descriptor() ([]byte, []int) { + return fileDescriptor_edc5e73ce6e34840, []int{0} +} +func (m *LspStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LspStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LspStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LspStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_LspStats.Merge(m, src) +} +func (m *LspStats) XXX_Size() int { + return m.Size() +} +func (m *LspStats) XXX_DiscardUnknown() { + xxx_messageInfo_LspStats.DiscardUnknown(m) +} + +var xxx_messageInfo_LspStats proto.InternalMessageInfo + +func (m *LspStats) GetLspStatsRecords() []*LspStatsRecord { + if m != nil { + return m.LspStatsRecords + } + return nil +} + +// +// LSP statistics record +// +type LspStatsRecord struct { + // Name of the LSP + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,req,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an LSP has multiple counters. + // When an LSP is resignalled, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,req,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // The total number of packets + Packets *uint64 `protobuf:"varint,4,opt,name=packets" json:"packets,omitempty"` + // The total number of bytes + Bytes *uint64 `protobuf:"varint,5,opt,name=bytes" json:"bytes,omitempty"` + // Packet rate computed over the most recent 3 second interval + PacketRate *uint64 `protobuf:"varint,6,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + // Byte rate computed over the most recent 3 second interval + ByteRate *uint64 `protobuf:"varint,7,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LspStatsRecord) Reset() { *m = LspStatsRecord{} } +func (m *LspStatsRecord) String() string { return proto.CompactTextString(m) } +func (*LspStatsRecord) ProtoMessage() {} +func (*LspStatsRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_edc5e73ce6e34840, []int{1} +} +func (m *LspStatsRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LspStatsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LspStatsRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LspStatsRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LspStatsRecord.Merge(m, src) +} +func (m *LspStatsRecord) XXX_Size() int { + return m.Size() +} +func (m *LspStatsRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LspStatsRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LspStatsRecord proto.InternalMessageInfo + +func (m *LspStatsRecord) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *LspStatsRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *LspStatsRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *LspStatsRecord) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *LspStatsRecord) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *LspStatsRecord) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *LspStatsRecord) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprLspStatisticsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LspStats)(nil), + Field: 5, + Name: "jnpr_lsp_statistics_ext", + Tag: "bytes,5,opt,name=jnpr_lsp_statistics_ext", + Filename: "lsp_stats.proto", +} + +func init() { + proto.RegisterType((*LspStats)(nil), "LspStats") + proto.RegisterType((*LspStatsRecord)(nil), "LspStatsRecord") + proto.RegisterExtension(E_JnprLspStatisticsExt) +} + +func init() { proto.RegisterFile("lsp_stats.proto", fileDescriptor_edc5e73ce6e34840) } + +var fileDescriptor_edc5e73ce6e34840 = []byte{ + // 390 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xc1, 0x6e, 0x13, 0x31, + 0x10, 0x86, 0xe5, 0x6d, 0x42, 0x13, 0x07, 0xa8, 0x70, 0x91, 0xba, 0x50, 0x29, 0x5d, 0xf5, 0xb4, + 0x97, 0xec, 0x4a, 0x3d, 0x70, 0x80, 0x0b, 0xaa, 0x84, 0x10, 0x08, 0xf5, 0xb0, 0x3d, 0xc1, 0xc5, + 0x38, 0x9b, 0x61, 0xe3, 0x4d, 0x62, 0x5b, 0x9e, 0x09, 0xb4, 0x57, 0x6e, 0xbc, 0x19, 0x47, 0x1e, + 0x01, 0xe5, 0x49, 0x90, 0xd7, 0xdd, 0x92, 0x1e, 0xe7, 0xfb, 0x3f, 0xff, 0x1e, 0x0d, 0x3f, 0x5a, + 0xa3, 0x93, 0x48, 0x8a, 0xb0, 0x70, 0xde, 0x92, 0x7d, 0x79, 0x4c, 0xb0, 0x86, 0x0d, 0x90, 0xbf, + 0x95, 0x64, 0x5d, 0x84, 0xe7, 0xef, 0xf9, 0xe8, 0x13, 0xba, 0xeb, 0xa0, 0x89, 0x37, 0xfc, 0xd9, + 0xfd, 0x1b, 0xe9, 0xa1, 0xb6, 0x7e, 0x81, 0x29, 0xcb, 0x0e, 0xf2, 0xc9, 0xc5, 0x51, 0xd1, 0x5b, + 0x55, 0xc7, 0xab, 0xd0, 0xbe, 0x37, 0xe3, 0xf9, 0xaf, 0x84, 0x3f, 0x7d, 0xe8, 0x88, 0x17, 0x7c, + 0x60, 0xd4, 0x06, 0x52, 0x96, 0x25, 0xf9, 0xf8, 0x72, 0xf8, 0xf3, 0x6d, 0x32, 0x62, 0x55, 0x87, + 0xc4, 0x2b, 0x7e, 0xac, 0x0d, 0x92, 0x32, 0x35, 0x48, 0xbd, 0x00, 0x43, 0xfa, 0x9b, 0x06, 0x9f, + 0x26, 0x59, 0x92, 0x3f, 0xe9, 0x4d, 0xd1, 0x1b, 0x1f, 0xee, 0x05, 0x91, 0xf3, 0xc7, 0xb5, 0xdd, + 0x1a, 0x02, 0x2f, 0xbb, 0xea, 0x83, 0xfd, 0xea, 0xc9, 0x5d, 0x74, 0x15, 0x7e, 0x38, 0xe3, 0x87, + 0x4e, 0xd5, 0x2b, 0x20, 0x4c, 0x07, 0x19, 0xcb, 0x07, 0x9d, 0x94, 0xb2, 0xaa, 0xa7, 0xe2, 0x94, + 0x0f, 0xe7, 0xb7, 0x04, 0x98, 0x0e, 0xf7, 0xe3, 0xc8, 0xc4, 0x19, 0x9f, 0x44, 0x4f, 0x7a, 0x45, + 0x90, 0x3e, 0x0a, 0x4a, 0xc5, 0x23, 0xaa, 0x14, 0x81, 0x38, 0xe5, 0xe3, 0x60, 0xc6, 0xf8, 0xb0, + 0x8b, 0x47, 0x01, 0x84, 0xf0, 0xf5, 0x67, 0x7e, 0xd2, 0x1a, 0xe7, 0x65, 0x7f, 0x4d, 0x8d, 0xa4, + 0x6b, 0x94, 0x70, 0x43, 0xe2, 0xa4, 0xf8, 0xb8, 0x35, 0xda, 0x81, 0xbf, 0x02, 0xfa, 0x61, 0xfd, + 0x0a, 0xaf, 0xc1, 0xa0, 0xf5, 0x71, 0x8b, 0xc9, 0xc5, 0xf8, 0xff, 0x9d, 0x9f, 0x87, 0x8a, 0xbb, + 0x29, 0x16, 0xbc, 0xbb, 0xa1, 0xcb, 0xaf, 0xbf, 0x77, 0x53, 0xf6, 0x67, 0x37, 0x65, 0x7f, 0x77, + 0x53, 0xf6, 0xa5, 0x6a, 0x34, 0x15, 0x6d, 0x2c, 0x2c, 0x0c, 0x50, 0xa9, 0x6b, 0x98, 0x83, 0x6f, + 0xca, 0x25, 0xa8, 0x35, 0x2d, 0xe7, 0x96, 0x66, 0xda, 0x34, 0x80, 0x34, 0x6b, 0x49, 0xcf, 0x8c, + 0x22, 0xfd, 0x1d, 0x4a, 0xb7, 0x6a, 0xca, 0x96, 0x74, 0xa9, 0x16, 0xca, 0x11, 0x78, 0x2c, 0x65, + 0xbb, 0x35, 0x16, 0x4b, 0xac, 0x97, 0xb0, 0x51, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x3e, + 0x6e, 0xd5, 0x38, 0x02, 0x00, 0x00, +} + +func (m *LspStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LspStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LspStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LspStatsRecords) > 0 { + for iNdEx := len(m.LspStatsRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LspStatsRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintLspStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *LspStatsRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LspStatsRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LspStatsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintLspStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x38 + } + if m.PacketRate != nil { + i = encodeVarintLspStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x30 + } + if m.Bytes != nil { + i = encodeVarintLspStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x28 + } + if m.Packets != nil { + i = encodeVarintLspStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x20 + } + if m.CounterName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("counter_name") + } else { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintLspStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("instance_identifier") + } else { + i = encodeVarintLspStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintLspStats(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintLspStats(dAtA []byte, offset int, v uint64) int { + offset -= sovLspStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LspStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.LspStatsRecords) > 0 { + for _, e := range m.LspStatsRecords { + l = e.Size() + n += 1 + l + sovLspStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LspStatsRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovLspStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovLspStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovLspStats(uint64(l)) + } + if m.Packets != nil { + n += 1 + sovLspStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovLspStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovLspStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovLspStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovLspStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozLspStats(x uint64) (n int) { + return sovLspStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LspStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LspStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LspStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspStatsRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthLspStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LspStatsRecords = append(m.LspStatsRecords, &LspStatsRecord{}) + if err := m.LspStatsRecords[len(m.LspStatsRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipLspStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLspStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLspStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LspStatsRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LspStatsRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LspStatsRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLspStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthLspStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthLspStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowLspStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipLspStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthLspStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthLspStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("instance_identifier") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("counter_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipLspStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLspStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLspStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowLspStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthLspStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupLspStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthLspStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthLspStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowLspStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupLspStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/lsp_stats.proto b/schema/lsp_stats.proto new file mode 100755 index 0000000..8298190 --- /dev/null +++ b/schema/lsp_stats.proto @@ -0,0 +1,80 @@ +// +// Copyrights (c) 2015, 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Nitin Kumar, 2015 +// +// This file defines the messages in Protocol Buffers used by +// the LSP statistics sensor. The top-level message is LspStats. +// +// Version 1.0 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 5 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional LspStats jnpr_lsp_statistics_ext = 5; +} + +// +// Top-level message +// +message LspStats { + // List of LSP statistics records + repeated LspStatsRecord lsp_stats_records = 1; +} + +// +// LSP statistics record +// +message LspStatsRecord { + // Name of the LSP + required string name = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + required uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an LSP has multiple counters. + // When an LSP is resignalled, it is possible that a new counter is + // created in the hardware. + required string counter_name = 3 [(telemetry_options).is_key = true]; + + // The total number of packets + optional uint64 packets = 4 [(telemetry_options).is_counter = true]; + + // The total number of bytes + optional uint64 bytes = 5 [(telemetry_options).is_counter = true]; + + // Packet rate computed over the most recent 3 second interval + optional uint64 packet_rate = 6; + + // Byte rate computed over the most recent 3 second interval + optional uint64 byte_rate = 7; +} + diff --git a/schema/mib2d_arp_oc.pb.go b/schema/mib2d_arp_oc.pb.go new file mode 100644 index 0000000..5839b0f --- /dev/null +++ b/schema/mib2d_arp_oc.pb.go @@ -0,0 +1,1642 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: mib2d_arp_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type ArpInformationMibArp struct { + Ipv4 *ArpInformationMibArpIpv4Type `protobuf:"bytes,151,opt,name=ipv4" json:"ipv4,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArpInformationMibArp) Reset() { *m = ArpInformationMibArp{} } +func (m *ArpInformationMibArp) String() string { return proto.CompactTextString(m) } +func (*ArpInformationMibArp) ProtoMessage() {} +func (*ArpInformationMibArp) Descriptor() ([]byte, []int) { + return fileDescriptor_6609990a88c6913e, []int{0} +} +func (m *ArpInformationMibArp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArpInformationMibArp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArpInformationMibArp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ArpInformationMibArp) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArpInformationMibArp.Merge(m, src) +} +func (m *ArpInformationMibArp) XXX_Size() int { + return m.Size() +} +func (m *ArpInformationMibArp) XXX_DiscardUnknown() { + xxx_messageInfo_ArpInformationMibArp.DiscardUnknown(m) +} + +var xxx_messageInfo_ArpInformationMibArp proto.InternalMessageInfo + +func (m *ArpInformationMibArp) GetIpv4() *ArpInformationMibArpIpv4Type { + if m != nil { + return m.Ipv4 + } + return nil +} + +type ArpInformationMibArpIpv4Type struct { + Neighbors *ArpInformationMibArpIpv4TypeNeighborsType `protobuf:"bytes,151,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArpInformationMibArpIpv4Type) Reset() { *m = ArpInformationMibArpIpv4Type{} } +func (m *ArpInformationMibArpIpv4Type) String() string { return proto.CompactTextString(m) } +func (*ArpInformationMibArpIpv4Type) ProtoMessage() {} +func (*ArpInformationMibArpIpv4Type) Descriptor() ([]byte, []int) { + return fileDescriptor_6609990a88c6913e, []int{0, 0} +} +func (m *ArpInformationMibArpIpv4Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArpInformationMibArpIpv4Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArpInformationMibArpIpv4Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ArpInformationMibArpIpv4Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArpInformationMibArpIpv4Type.Merge(m, src) +} +func (m *ArpInformationMibArpIpv4Type) XXX_Size() int { + return m.Size() +} +func (m *ArpInformationMibArpIpv4Type) XXX_DiscardUnknown() { + xxx_messageInfo_ArpInformationMibArpIpv4Type.DiscardUnknown(m) +} + +var xxx_messageInfo_ArpInformationMibArpIpv4Type proto.InternalMessageInfo + +func (m *ArpInformationMibArpIpv4Type) GetNeighbors() *ArpInformationMibArpIpv4TypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type ArpInformationMibArpIpv4TypeNeighborsType struct { + Neighbor []*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsType) Reset() { + *m = ArpInformationMibArpIpv4TypeNeighborsType{} +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*ArpInformationMibArpIpv4TypeNeighborsType) ProtoMessage() {} +func (*ArpInformationMibArpIpv4TypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_6609990a88c6913e, []int{0, 0, 0} +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsType.Merge(m, src) +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsType proto.InternalMessageInfo + +func (m *ArpInformationMibArpIpv4TypeNeighborsType) GetNeighbor() []*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + State *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) Reset() { + *m = ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList{} +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) ProtoMessage() {} +func (*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_6609990a88c6913e, []int{0, 0, 0, 0} +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) GetState() *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +type ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + LinkLayerAddress *string `protobuf:"bytes,52,opt,name=link_layer_address,json=linkLayerAddress" json:"link_layer_address,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + HostName *string `protobuf:"bytes,61,opt,name=host_name,json=hostName" json:"host_name,omitempty"` + TableId *uint32 `protobuf:"varint,62,opt,name=table_id,json=tableId" json:"table_id,omitempty"` + NeighborState *string `protobuf:"bytes,63,opt,name=neighbor_state,json=neighborState" json:"neighbor_state,omitempty"` + Expiry *uint32 `protobuf:"varint,64,opt,name=expiry" json:"expiry,omitempty"` + IsPublish *bool `protobuf:"varint,65,opt,name=is_publish,json=isPublish" json:"is_publish,omitempty"` + InterfaceName *string `protobuf:"bytes,66,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` + LogicalRouterId *uint32 `protobuf:"varint,67,opt,name=logical_router_id,json=logicalRouterId" json:"logical_router_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) Reset() { + *m = ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType{} +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) ProtoMessage() {} +func (*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_6609990a88c6913e, []int{0, 0, 0, 0, 0} +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetLinkLayerAddress() string { + if m != nil && m.LinkLayerAddress != nil { + return *m.LinkLayerAddress + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetHostName() string { + if m != nil && m.HostName != nil { + return *m.HostName + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetTableId() uint32 { + if m != nil && m.TableId != nil { + return *m.TableId + } + return 0 +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetNeighborState() string { + if m != nil && m.NeighborState != nil { + return *m.NeighborState + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetExpiry() uint32 { + if m != nil && m.Expiry != nil { + return *m.Expiry + } + return 0 +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetIsPublish() bool { + if m != nil && m.IsPublish != nil { + return *m.IsPublish + } + return false +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetInterfaceName() string { + if m != nil && m.InterfaceName != nil { + return *m.InterfaceName + } + return "" +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) GetLogicalRouterId() uint32 { + if m != nil && m.LogicalRouterId != nil { + return *m.LogicalRouterId + } + return 0 +} + +var E_JnprArpInformationMibArpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*ArpInformationMibArp)(nil), + Field: 53, + Name: "jnpr_arp_information_mib_arp_ext", + Tag: "bytes,53,opt,name=jnpr_arp_information_mib_arp_ext", + Filename: "mib2d_arp_oc.proto", +} + +func init() { + proto.RegisterType((*ArpInformationMibArp)(nil), "arp_information_mib_arp") + proto.RegisterType((*ArpInformationMibArpIpv4Type)(nil), "arp_information_mib_arp.ipv4_type") + proto.RegisterType((*ArpInformationMibArpIpv4TypeNeighborsType)(nil), "arp_information_mib_arp.ipv4_type.neighbors_type") + proto.RegisterType((*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList)(nil), "arp_information_mib_arp.ipv4_type.neighbors_type.neighbor_list") + proto.RegisterType((*ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType)(nil), "arp_information_mib_arp.ipv4_type.neighbors_type.neighbor_list.state_type") + proto.RegisterExtension(E_JnprArpInformationMibArpExt) +} + +func init() { proto.RegisterFile("mib2d_arp_oc.proto", fileDescriptor_6609990a88c6913e) } + +var fileDescriptor_6609990a88c6913e = []byte{ + // 559 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xd1, 0x6a, 0x13, 0x4f, + 0x14, 0xc6, 0xd9, 0xb4, 0xf9, 0xff, 0x93, 0x29, 0xad, 0x3a, 0xa2, 0x5d, 0x53, 0x2c, 0xa1, 0x20, + 0x04, 0xb1, 0xbb, 0x58, 0x5b, 0x04, 0x41, 0xdb, 0x54, 0xbc, 0x68, 0xd1, 0x52, 0xb6, 0x77, 0x22, + 0x8c, 0xb3, 0xd9, 0xd3, 0xcd, 0x49, 0x77, 0x67, 0x86, 0x99, 0x49, 0x4d, 0x6e, 0x7d, 0x09, 0x5f, + 0xc1, 0x47, 0x29, 0x78, 0xe3, 0x9d, 0xb7, 0xd2, 0xf7, 0x10, 0x64, 0x66, 0xdb, 0x0d, 0xbd, 0x08, + 0x22, 0x5e, 0x9e, 0xef, 0x3b, 0xe7, 0x77, 0xbe, 0x9d, 0xb3, 0x84, 0x96, 0x98, 0x6e, 0x65, 0x8c, + 0x6b, 0xc5, 0xe4, 0x20, 0x52, 0x5a, 0x5a, 0xd9, 0xb9, 0x6b, 0xa1, 0x80, 0x12, 0xac, 0x9e, 0x32, + 0x2b, 0x55, 0x25, 0x6e, 0xfc, 0x6a, 0x92, 0x55, 0xd7, 0x85, 0xe2, 0x54, 0xea, 0x92, 0x5b, 0x94, + 0x82, 0x95, 0x98, 0xba, 0x49, 0xfa, 0x9c, 0x2c, 0xa2, 0x3a, 0xdf, 0x0e, 0xbf, 0x04, 0xdd, 0xa0, + 0xb7, 0xb4, 0xb5, 0x11, 0xcd, 0x69, 0x8c, 0x5c, 0x17, 0xb3, 0x53, 0x05, 0x89, 0x1f, 0xe8, 0x7c, + 0x6d, 0x92, 0x76, 0xad, 0xd1, 0x63, 0xd2, 0x16, 0x80, 0xf9, 0x30, 0x95, 0xda, 0x5c, 0xb3, 0x9e, + 0xfe, 0x99, 0x15, 0xd5, 0x43, 0x15, 0x7a, 0x06, 0xe9, 0x5c, 0x2c, 0x92, 0x95, 0x9b, 0x2e, 0xfd, + 0x40, 0x5a, 0xd7, 0x8a, 0xdb, 0xb1, 0xd0, 0x5b, 0xda, 0xda, 0xfd, 0xeb, 0x1d, 0x75, 0xc9, 0x0a, + 0x34, 0x36, 0xa9, 0x89, 0x9d, 0x1f, 0x0b, 0x64, 0xf9, 0x86, 0x47, 0xef, 0x91, 0x06, 0xaa, 0xf0, + 0x59, 0x37, 0xe8, 0xb5, 0xf7, 0x9b, 0x9f, 0xf7, 0x1a, 0xad, 0x20, 0x69, 0xa0, 0xa2, 0x9c, 0x34, + 0x8d, 0xe5, 0x16, 0xae, 0xbf, 0xf3, 0xf0, 0x1f, 0x33, 0x44, 0x9e, 0x56, 0x3d, 0x40, 0x45, 0xee, + 0x7c, 0x6b, 0x10, 0x32, 0x53, 0xe9, 0xca, 0x2c, 0x88, 0x4f, 0xf0, 0x84, 0xd0, 0x02, 0xc5, 0x19, + 0x2b, 0xf8, 0x14, 0x34, 0xe3, 0x59, 0xa6, 0xc1, 0x98, 0x70, 0xdb, 0xfb, 0xb7, 0x9d, 0xf3, 0xd6, + 0x19, 0xfd, 0x4a, 0xa7, 0xf7, 0xc9, 0x7f, 0x52, 0x63, 0x8e, 0x22, 0xdc, 0xf1, 0x1d, 0x57, 0x15, + 0x5d, 0x23, 0xed, 0xa1, 0x34, 0x96, 0x09, 0x5e, 0x42, 0xf8, 0xd2, 0x5b, 0x2d, 0x27, 0x1c, 0xf1, + 0x12, 0xe8, 0x03, 0xd2, 0xb2, 0x3c, 0x2d, 0x80, 0x61, 0x16, 0xbe, 0xea, 0x06, 0xbd, 0xe5, 0xe4, + 0x7f, 0x5f, 0x1f, 0x64, 0xf4, 0xd1, 0xec, 0x30, 0xac, 0x7a, 0x88, 0x5d, 0x3f, 0x5c, 0xbf, 0xde, + 0x89, 0x13, 0xdd, 0x5a, 0x98, 0x28, 0xd4, 0xd3, 0x70, 0xcf, 0xcf, 0x5f, 0x55, 0xf4, 0x21, 0x21, + 0x68, 0x98, 0x1a, 0xa7, 0x05, 0x9a, 0x61, 0xd8, 0xef, 0x06, 0xbd, 0x56, 0xd2, 0x46, 0x73, 0x5c, + 0x09, 0x8e, 0x8e, 0xc2, 0x82, 0x3e, 0xe5, 0x03, 0xa8, 0xa2, 0xed, 0x57, 0xf4, 0x5a, 0xf5, 0xf9, + 0x1e, 0x93, 0x3b, 0x85, 0xcc, 0x71, 0xc0, 0x0b, 0xa6, 0xe5, 0xd8, 0x82, 0x76, 0x41, 0x5f, 0xfb, + 0x45, 0xb7, 0xae, 0x8c, 0xc4, 0xeb, 0x07, 0xd9, 0x8b, 0x09, 0xe9, 0x8e, 0x84, 0xd2, 0x6c, 0xce, + 0x99, 0x18, 0x4c, 0x2c, 0x5d, 0x8d, 0x0e, 0xc7, 0x02, 0x15, 0xe8, 0x23, 0xb0, 0x9f, 0xa4, 0x3e, + 0x33, 0x27, 0x20, 0x8c, 0xfb, 0x99, 0x77, 0xfc, 0x8d, 0xc3, 0x79, 0x37, 0x4e, 0xd6, 0x1c, 0xba, + 0xaf, 0xd5, 0xc1, 0xcc, 0x7b, 0x87, 0x69, 0x5f, 0xab, 0x37, 0x13, 0xbb, 0xff, 0xf1, 0xe2, 0x72, + 0x3d, 0xf8, 0x7e, 0xb9, 0x1e, 0xfc, 0xbc, 0x5c, 0x0f, 0xde, 0x27, 0x39, 0xda, 0x68, 0x54, 0xad, + 0x89, 0x04, 0xd8, 0x18, 0x07, 0x90, 0x82, 0xce, 0xe3, 0x21, 0xf0, 0xc2, 0x0e, 0x53, 0x69, 0x37, + 0x51, 0xe4, 0x60, 0xec, 0xe6, 0xc8, 0xe2, 0xa6, 0xe0, 0x16, 0xcf, 0x21, 0x56, 0x67, 0x79, 0x3c, + 0xb2, 0x18, 0xf3, 0x8c, 0x2b, 0x0b, 0xda, 0xc4, 0x6c, 0x34, 0x16, 0xd2, 0xc4, 0x66, 0x30, 0x84, + 0x92, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xab, 0x35, 0xe0, 0x7c, 0x05, 0x04, 0x00, 0x00, +} + +func (m *ArpInformationMibArp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArpInformationMibArp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArpInformationMibArp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv4 != nil { + { + size, err := m.Ipv4.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DArpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *ArpInformationMibArpIpv4Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArpInformationMibArpIpv4Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArpInformationMibArpIpv4Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DArpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DArpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DArpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogicalRouterId != nil { + i = encodeVarintMib2DArpOc(dAtA, i, uint64(*m.LogicalRouterId)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.InterfaceName != nil { + i -= len(*m.InterfaceName) + copy(dAtA[i:], *m.InterfaceName) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.InterfaceName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x92 + } + if m.IsPublish != nil { + i-- + if *m.IsPublish { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.Expiry != nil { + i = encodeVarintMib2DArpOc(dAtA, i, uint64(*m.Expiry)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.NeighborState != nil { + i -= len(*m.NeighborState) + copy(dAtA[i:], *m.NeighborState) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.NeighborState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.TableId != nil { + i = encodeVarintMib2DArpOc(dAtA, i, uint64(*m.TableId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.HostName != nil { + i -= len(*m.HostName) + copy(dAtA[i:], *m.HostName) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.HostName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LinkLayerAddress != nil { + i -= len(*m.LinkLayerAddress) + copy(dAtA[i:], *m.LinkLayerAddress) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.LinkLayerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DArpOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintMib2DArpOc(dAtA []byte, offset int, v uint64) int { + offset -= sovMib2DArpOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ArpInformationMibArp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv4 != nil { + l = m.Ipv4.Size() + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ArpInformationMibArpIpv4Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.LinkLayerAddress != nil { + l = len(*m.LinkLayerAddress) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.HostName != nil { + l = len(*m.HostName) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.TableId != nil { + n += 2 + sovMib2DArpOc(uint64(*m.TableId)) + } + if m.NeighborState != nil { + l = len(*m.NeighborState) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.Expiry != nil { + n += 2 + sovMib2DArpOc(uint64(*m.Expiry)) + } + if m.IsPublish != nil { + n += 3 + } + if m.InterfaceName != nil { + l = len(*m.InterfaceName) + n += 2 + l + sovMib2DArpOc(uint64(l)) + } + if m.LogicalRouterId != nil { + n += 2 + sovMib2DArpOc(uint64(*m.LogicalRouterId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovMib2DArpOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMib2DArpOc(x uint64) (n int) { + return sovMib2DArpOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ArpInformationMibArp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: arp_information_mib_arp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: arp_information_mib_arp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4 == nil { + m.Ipv4 = &ArpInformationMibArpIpv4Type{} + } + if err := m.Ipv4.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DArpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArpInformationMibArpIpv4Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &ArpInformationMibArpIpv4TypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DArpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArpInformationMibArpIpv4TypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DArpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DArpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArpInformationMibArpIpv4TypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkLayerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkLayerAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HostName = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableId = &v + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborState = &s + iNdEx = postIndex + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Expiry = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPublish", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsPublish = &b + case 66: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DArpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DArpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceName = &s + iNdEx = postIndex + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogicalRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LogicalRouterId = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DArpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DArpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMib2DArpOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DArpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMib2DArpOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMib2DArpOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMib2DArpOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMib2DArpOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMib2DArpOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMib2DArpOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/mib2d_arp_oc.proto b/schema/mib2d_arp_oc.proto new file mode 100755 index 0000000..2d20b4d --- /dev/null +++ b/schema/mib2d_arp_oc.proto @@ -0,0 +1,33 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional arp_information_mib_arp jnpr_arp_information_mib_arp_ext = 53; +} + +message arp_information_mib_arp { + optional ipv4_type ipv4 = 151; + message ipv4_type { + optional neighbors_type neighbors = 151; + message neighbors_type { + message neighbor_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string ip = 51; + optional string link_layer_address = 52; + optional string origin = 53; + optional string host_name = 61; + optional uint32 table_id = 62; + optional string neighbor_state = 63; + optional uint32 expiry = 64; + optional bool is_publish = 65; + optional string interface_name = 66; + optional uint32 logical_router_id = 67; + } + } + repeated neighbor_list neighbor = 151; + } + } +} diff --git a/schema/mib2d_nd6_oc.pb.go b/schema/mib2d_nd6_oc.pb.go new file mode 100644 index 0000000..5d2fc17 --- /dev/null +++ b/schema/mib2d_nd6_oc.pb.go @@ -0,0 +1,1677 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: mib2d_nd6_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Nd6InformationMibNd6 struct { + Ipv6 *Nd6InformationMibNd6Ipv6Type `protobuf:"bytes,151,opt,name=ipv6" json:"ipv6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Nd6InformationMibNd6) Reset() { *m = Nd6InformationMibNd6{} } +func (m *Nd6InformationMibNd6) String() string { return proto.CompactTextString(m) } +func (*Nd6InformationMibNd6) ProtoMessage() {} +func (*Nd6InformationMibNd6) Descriptor() ([]byte, []int) { + return fileDescriptor_b6dca21213f5e620, []int{0} +} +func (m *Nd6InformationMibNd6) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nd6InformationMibNd6) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nd6InformationMibNd6.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nd6InformationMibNd6) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nd6InformationMibNd6.Merge(m, src) +} +func (m *Nd6InformationMibNd6) XXX_Size() int { + return m.Size() +} +func (m *Nd6InformationMibNd6) XXX_DiscardUnknown() { + xxx_messageInfo_Nd6InformationMibNd6.DiscardUnknown(m) +} + +var xxx_messageInfo_Nd6InformationMibNd6 proto.InternalMessageInfo + +func (m *Nd6InformationMibNd6) GetIpv6() *Nd6InformationMibNd6Ipv6Type { + if m != nil { + return m.Ipv6 + } + return nil +} + +type Nd6InformationMibNd6Ipv6Type struct { + Neighbors *Nd6InformationMibNd6Ipv6TypeNeighborsType `protobuf:"bytes,151,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Nd6InformationMibNd6Ipv6Type) Reset() { *m = Nd6InformationMibNd6Ipv6Type{} } +func (m *Nd6InformationMibNd6Ipv6Type) String() string { return proto.CompactTextString(m) } +func (*Nd6InformationMibNd6Ipv6Type) ProtoMessage() {} +func (*Nd6InformationMibNd6Ipv6Type) Descriptor() ([]byte, []int) { + return fileDescriptor_b6dca21213f5e620, []int{0, 0} +} +func (m *Nd6InformationMibNd6Ipv6Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nd6InformationMibNd6Ipv6Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nd6InformationMibNd6Ipv6Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nd6InformationMibNd6Ipv6Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nd6InformationMibNd6Ipv6Type.Merge(m, src) +} +func (m *Nd6InformationMibNd6Ipv6Type) XXX_Size() int { + return m.Size() +} +func (m *Nd6InformationMibNd6Ipv6Type) XXX_DiscardUnknown() { + xxx_messageInfo_Nd6InformationMibNd6Ipv6Type.DiscardUnknown(m) +} + +var xxx_messageInfo_Nd6InformationMibNd6Ipv6Type proto.InternalMessageInfo + +func (m *Nd6InformationMibNd6Ipv6Type) GetNeighbors() *Nd6InformationMibNd6Ipv6TypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type Nd6InformationMibNd6Ipv6TypeNeighborsType struct { + Neighbor []*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) Reset() { + *m = Nd6InformationMibNd6Ipv6TypeNeighborsType{} +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*Nd6InformationMibNd6Ipv6TypeNeighborsType) ProtoMessage() {} +func (*Nd6InformationMibNd6Ipv6TypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b6dca21213f5e620, []int{0, 0, 0} +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsType.Merge(m, src) +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsType proto.InternalMessageInfo + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) GetNeighbor() []*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + State *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) Reset() { + *m = Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList{} +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) ProtoMessage() {} +func (*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_b6dca21213f5e620, []int{0, 0, 0, 0} +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) GetState() *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +type Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + LinkLayerAddress *string `protobuf:"bytes,52,opt,name=link_layer_address,json=linkLayerAddress" json:"link_layer_address,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + IsRouter *bool `protobuf:"varint,54,opt,name=is_router,json=isRouter" json:"is_router,omitempty"` + NeighborState *string `protobuf:"bytes,55,opt,name=neighbor_state,json=neighborState" json:"neighbor_state,omitempty"` + TableId *uint32 `protobuf:"varint,61,opt,name=table_id,json=tableId" json:"table_id,omitempty"` + IsSecure *bool `protobuf:"varint,62,opt,name=is_secure,json=isSecure" json:"is_secure,omitempty"` + Expiry *uint32 `protobuf:"varint,64,opt,name=expiry" json:"expiry,omitempty"` + IsPublish *bool `protobuf:"varint,63,opt,name=is_publish,json=isPublish" json:"is_publish,omitempty"` + InterfaceName *string `protobuf:"bytes,65,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` + LogicalRouterId *uint32 `protobuf:"varint,66,opt,name=logical_router_id,json=logicalRouterId" json:"logical_router_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) Reset() { + *m = Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType{} +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) ProtoMessage() {} +func (*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b6dca21213f5e620, []int{0, 0, 0, 0, 0} +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetLinkLayerAddress() string { + if m != nil && m.LinkLayerAddress != nil { + return *m.LinkLayerAddress + } + return "" +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetIsRouter() bool { + if m != nil && m.IsRouter != nil { + return *m.IsRouter + } + return false +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetNeighborState() string { + if m != nil && m.NeighborState != nil { + return *m.NeighborState + } + return "" +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetTableId() uint32 { + if m != nil && m.TableId != nil { + return *m.TableId + } + return 0 +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetIsSecure() bool { + if m != nil && m.IsSecure != nil { + return *m.IsSecure + } + return false +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetExpiry() uint32 { + if m != nil && m.Expiry != nil { + return *m.Expiry + } + return 0 +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetIsPublish() bool { + if m != nil && m.IsPublish != nil { + return *m.IsPublish + } + return false +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetInterfaceName() string { + if m != nil && m.InterfaceName != nil { + return *m.InterfaceName + } + return "" +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) GetLogicalRouterId() uint32 { + if m != nil && m.LogicalRouterId != nil { + return *m.LogicalRouterId + } + return 0 +} + +var E_JnprNd6InformationMibNd6Ext = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Nd6InformationMibNd6)(nil), + Field: 54, + Name: "jnpr_nd6_information_mib_nd6_ext", + Tag: "bytes,54,opt,name=jnpr_nd6_information_mib_nd6_ext", + Filename: "mib2d_nd6_oc.proto", +} + +func init() { + proto.RegisterType((*Nd6InformationMibNd6)(nil), "nd6_information_mib_nd6") + proto.RegisterType((*Nd6InformationMibNd6Ipv6Type)(nil), "nd6_information_mib_nd6.ipv6_type") + proto.RegisterType((*Nd6InformationMibNd6Ipv6TypeNeighborsType)(nil), "nd6_information_mib_nd6.ipv6_type.neighbors_type") + proto.RegisterType((*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList)(nil), "nd6_information_mib_nd6.ipv6_type.neighbors_type.neighbor_list") + proto.RegisterType((*Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType)(nil), "nd6_information_mib_nd6.ipv6_type.neighbors_type.neighbor_list.state_type") + proto.RegisterExtension(E_JnprNd6InformationMibNd6Ext) +} + +func init() { proto.RegisterFile("mib2d_nd6_oc.proto", fileDescriptor_b6dca21213f5e620) } + +var fileDescriptor_b6dca21213f5e620 = []byte{ + // 572 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0xdb, 0x6a, 0x14, 0x41, + 0x10, 0x65, 0x36, 0x17, 0x77, 0x3b, 0x24, 0x6a, 0x8b, 0x66, 0xdc, 0x60, 0x58, 0x02, 0xc2, 0x22, + 0x66, 0x06, 0xa3, 0x6e, 0x40, 0xd0, 0x5c, 0xc0, 0x87, 0x04, 0x5d, 0xc2, 0xe4, 0x4d, 0x84, 0xb6, + 0x67, 0xa7, 0x32, 0x5b, 0x9b, 0x99, 0xee, 0xa1, 0xbb, 0x36, 0xee, 0xbe, 0xfa, 0x13, 0x82, 0xff, + 0x23, 0xf8, 0xe8, 0x27, 0x48, 0x40, 0xf0, 0x03, 0xfc, 0x00, 0x99, 0x9e, 0xbd, 0x90, 0x87, 0x20, + 0xe2, 0x63, 0x9d, 0x53, 0xe7, 0xd4, 0xa9, 0xee, 0x62, 0x3c, 0xc7, 0x78, 0x27, 0x11, 0x2a, 0xe9, + 0x08, 0xdd, 0x0b, 0x0a, 0xa3, 0x49, 0x37, 0xef, 0x10, 0x64, 0x90, 0x03, 0x99, 0xb1, 0x20, 0x5d, + 0x54, 0xe0, 0xd6, 0x97, 0x65, 0xb6, 0x5e, 0x76, 0xa1, 0x3a, 0xd3, 0x26, 0x97, 0x84, 0x5a, 0x89, + 0x1c, 0xe3, 0x52, 0xc9, 0x77, 0xd9, 0x22, 0x16, 0x17, 0x1d, 0xff, 0xb3, 0xd7, 0xf2, 0xda, 0x2b, + 0x3b, 0x5b, 0xc1, 0x35, 0x8d, 0x41, 0xd9, 0x25, 0x68, 0x5c, 0x40, 0xe4, 0x04, 0xcd, 0xaf, 0x4b, + 0xac, 0x31, 0xc3, 0xf8, 0x09, 0x6b, 0x28, 0xc0, 0xb4, 0x1f, 0x6b, 0x63, 0xa7, 0x5e, 0x4f, 0xfe, + 0xee, 0x15, 0xcc, 0x44, 0x95, 0xf5, 0xdc, 0xa4, 0xf9, 0x73, 0x91, 0xad, 0x5d, 0x65, 0xf9, 0x7b, + 0x56, 0x9f, 0x22, 0xe5, 0x8c, 0x85, 0xf6, 0xca, 0xce, 0xde, 0x3f, 0xcf, 0x98, 0x95, 0x22, 0x43, + 0x4b, 0xd1, 0xcc, 0xb1, 0xf9, 0x7b, 0x81, 0xad, 0x5e, 0xe1, 0xf8, 0x5d, 0x56, 0xc3, 0xc2, 0x7f, + 0xda, 0xf2, 0xda, 0x8d, 0xc3, 0xa5, 0x4f, 0xfb, 0xb5, 0xba, 0x17, 0xd5, 0xb0, 0xe0, 0x92, 0x2d, + 0x59, 0x92, 0x04, 0xd3, 0x3d, 0x8f, 0xff, 0x33, 0x43, 0xe0, 0xdc, 0xaa, 0x07, 0xa8, 0x9c, 0x9b, + 0xbf, 0x6a, 0x8c, 0xcd, 0x51, 0xbe, 0x36, 0x0f, 0xe2, 0x12, 0x3c, 0x66, 0x3c, 0x43, 0x75, 0x2e, + 0x32, 0x39, 0x06, 0x23, 0x64, 0x92, 0x18, 0xb0, 0xd6, 0x7f, 0xe6, 0xf8, 0x5b, 0x25, 0xf3, 0xa6, + 0x24, 0x0e, 0x2a, 0x9c, 0xdf, 0x63, 0xcb, 0xda, 0x60, 0x8a, 0xca, 0x7f, 0xee, 0x3a, 0x26, 0x15, + 0xdf, 0x60, 0x0d, 0xb4, 0xc2, 0xe8, 0x21, 0x81, 0xf1, 0x3b, 0x2d, 0xaf, 0x5d, 0x8f, 0xea, 0x68, + 0x23, 0x57, 0xf3, 0x87, 0xf3, 0xd7, 0x17, 0xd5, 0xb6, 0xbb, 0x4e, 0x3c, 0x7b, 0xa2, 0xd3, 0x12, + 0xe4, 0xf7, 0x59, 0x9d, 0x64, 0x9c, 0x81, 0xc0, 0xc4, 0x7f, 0xd9, 0xf2, 0xda, 0xab, 0xd1, 0x0d, + 0x57, 0x1f, 0x25, 0x13, 0x7b, 0x0b, 0xbd, 0xa1, 0x01, 0xff, 0xd5, 0xd4, 0xfe, 0xd4, 0xd5, 0x65, + 0x26, 0x18, 0x15, 0x68, 0xc6, 0xfe, 0xbe, 0x53, 0x4d, 0x2a, 0xfe, 0x80, 0x31, 0xb4, 0xa2, 0x18, + 0xc6, 0x19, 0xda, 0xbe, 0xbf, 0xe7, 0x54, 0x0d, 0xb4, 0x27, 0x15, 0x50, 0xa6, 0x42, 0x45, 0x60, + 0xce, 0x64, 0x0f, 0x84, 0x92, 0x39, 0xf8, 0x07, 0x55, 0xaa, 0x19, 0xda, 0x95, 0x39, 0xf0, 0x47, + 0xec, 0x76, 0xa6, 0x53, 0xec, 0xc9, 0x6c, 0xb2, 0x5e, 0x19, 0xef, 0xd0, 0x0d, 0xba, 0x39, 0x21, + 0xaa, 0x35, 0x8f, 0x92, 0x17, 0x23, 0xd6, 0x1a, 0xa8, 0xc2, 0x88, 0x6b, 0xfe, 0x50, 0xc0, 0x88, + 0xf8, 0x7a, 0x70, 0x3c, 0x54, 0x58, 0x80, 0xe9, 0x02, 0x7d, 0xd4, 0xe6, 0xdc, 0x9e, 0x82, 0xb2, + 0xe5, 0xa5, 0x77, 0xdc, 0x01, 0xf8, 0xd7, 0x1d, 0x40, 0xb4, 0x51, 0x5a, 0x77, 0x93, 0xce, 0xd1, + 0x9c, 0x7b, 0x8b, 0x71, 0x37, 0xe9, 0xbc, 0x1e, 0xd1, 0xe1, 0x87, 0x6f, 0x97, 0x9b, 0xde, 0xf7, + 0xcb, 0x4d, 0xef, 0xc7, 0xe5, 0xa6, 0xf7, 0x2e, 0x4a, 0x91, 0x82, 0x41, 0x35, 0x26, 0x50, 0x40, + 0x21, 0xf6, 0x20, 0x06, 0x93, 0x86, 0x7d, 0x90, 0x19, 0xf5, 0x63, 0x4d, 0xdb, 0xa8, 0x52, 0xb0, + 0xb4, 0x3d, 0x20, 0xdc, 0x56, 0x92, 0xf0, 0x02, 0xc2, 0xe2, 0x3c, 0x0d, 0x07, 0x84, 0xa1, 0x4c, + 0x64, 0x41, 0x60, 0x6c, 0x28, 0x06, 0x43, 0xa5, 0x6d, 0x68, 0x7b, 0x7d, 0xc8, 0xe5, 0x9f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xfd, 0x7e, 0xb1, 0x71, 0x22, 0x04, 0x00, 0x00, +} + +func (m *Nd6InformationMibNd6) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nd6InformationMibNd6) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nd6InformationMibNd6) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6 != nil { + { + size, err := m.Ipv6.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Nd6InformationMibNd6Ipv6Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nd6InformationMibNd6Ipv6Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nd6InformationMibNd6Ipv6Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogicalRouterId != nil { + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(*m.LogicalRouterId)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.InterfaceName != nil { + i -= len(*m.InterfaceName) + copy(dAtA[i:], *m.InterfaceName) + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(len(*m.InterfaceName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x8a + } + if m.Expiry != nil { + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(*m.Expiry)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.IsPublish != nil { + i-- + if *m.IsPublish { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.IsSecure != nil { + i-- + if *m.IsSecure { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.TableId != nil { + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(*m.TableId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.NeighborState != nil { + i -= len(*m.NeighborState) + copy(dAtA[i:], *m.NeighborState) + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(len(*m.NeighborState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.IsRouter != nil { + i-- + if *m.IsRouter { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LinkLayerAddress != nil { + i -= len(*m.LinkLayerAddress) + copy(dAtA[i:], *m.LinkLayerAddress) + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(len(*m.LinkLayerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DNd6Oc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintMib2DNd6Oc(dAtA []byte, offset int, v uint64) int { + offset -= sovMib2DNd6Oc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Nd6InformationMibNd6) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv6 != nil { + l = m.Ipv6.Size() + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Nd6InformationMibNd6Ipv6Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.LinkLayerAddress != nil { + l = len(*m.LinkLayerAddress) + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.IsRouter != nil { + n += 3 + } + if m.NeighborState != nil { + l = len(*m.NeighborState) + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.TableId != nil { + n += 2 + sovMib2DNd6Oc(uint64(*m.TableId)) + } + if m.IsSecure != nil { + n += 3 + } + if m.IsPublish != nil { + n += 3 + } + if m.Expiry != nil { + n += 2 + sovMib2DNd6Oc(uint64(*m.Expiry)) + } + if m.InterfaceName != nil { + l = len(*m.InterfaceName) + n += 2 + l + sovMib2DNd6Oc(uint64(l)) + } + if m.LogicalRouterId != nil { + n += 2 + sovMib2DNd6Oc(uint64(*m.LogicalRouterId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovMib2DNd6Oc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMib2DNd6Oc(x uint64) (n int) { + return sovMib2DNd6Oc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Nd6InformationMibNd6) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nd6_information_mib_nd6: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nd6_information_mib_nd6: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6 == nil { + m.Ipv6 = &Nd6InformationMibNd6Ipv6Type{} + } + if err := m.Ipv6.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DNd6Oc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nd6InformationMibNd6Ipv6Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &Nd6InformationMibNd6Ipv6TypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DNd6Oc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DNd6Oc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DNd6Oc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nd6InformationMibNd6Ipv6TypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkLayerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkLayerAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsRouter", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsRouter = &b + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborState = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableId = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsSecure", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsSecure = &b + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPublish", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsPublish = &b + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Expiry = &v + case 65: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceName = &s + iNdEx = postIndex + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogicalRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LogicalRouterId = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DNd6Oc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DNd6Oc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMib2DNd6Oc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DNd6Oc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMib2DNd6Oc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMib2DNd6Oc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMib2DNd6Oc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMib2DNd6Oc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMib2DNd6Oc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMib2DNd6Oc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/mib2d_nd6_oc.proto b/schema/mib2d_nd6_oc.proto new file mode 100755 index 0000000..b1f078b --- /dev/null +++ b/schema/mib2d_nd6_oc.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional nd6_information_mib_nd6 jnpr_nd6_information_mib_nd6_ext = 54; +} + +message nd6_information_mib_nd6 { + optional ipv6_type ipv6 = 151; + message ipv6_type { + optional neighbors_type neighbors = 151; + message neighbors_type { + message neighbor_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string ip = 51; + optional string link_layer_address = 52; + optional string origin = 53; + optional bool is_router = 54; + optional string neighbor_state = 55; + optional uint32 table_id = 61; + optional bool is_secure = 62; + optional uint32 expiry = 64; + optional bool is_publish = 63; + optional string interface_name = 65; + optional uint32 logical_router_id = 66; + } + } + repeated neighbor_list neighbor = 151; + } + } +} diff --git a/schema/mib2d_oc.pb.go b/schema/mib2d_oc.pb.go new file mode 100644 index 0000000..d236228 --- /dev/null +++ b/schema/mib2d_oc.pb.go @@ -0,0 +1,11062 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: mib2d_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesMib struct { + Interface []*InterfacesMibInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMib) Reset() { *m = InterfacesMib{} } +func (m *InterfacesMib) String() string { return proto.CompactTextString(m) } +func (*InterfacesMib) ProtoMessage() {} +func (*InterfacesMib) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0} +} +func (m *InterfacesMib) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMib) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMib.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMib) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMib.Merge(m, src) +} +func (m *InterfacesMib) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMib) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMib.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMib proto.InternalMessageInfo + +func (m *InterfacesMib) GetInterface() []*InterfacesMibInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesMibInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *InterfacesMibInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Subinterfaces *InterfacesMibInterfaceListSubinterfacesType `protobuf:"bytes,152,opt,name=subinterfaces" json:"subinterfaces,omitempty"` + HoldTime *InterfacesMibInterfaceListHoldTimeType `protobuf:"bytes,155,opt,name=hold_time,json=holdTime" json:"hold_time,omitempty"` + Ethernet *InterfacesMibInterfaceListEthernetType `protobuf:"bytes,153,opt,name=ethernet" json:"ethernet,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceList) Reset() { *m = InterfacesMibInterfaceList{} } +func (m *InterfacesMibInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesMibInterfaceList) ProtoMessage() {} +func (*InterfacesMibInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0} +} +func (m *InterfacesMibInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceList.Merge(m, src) +} +func (m *InterfacesMibInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceList proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesMibInterfaceList) GetState() *InterfacesMibInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesMibInterfaceList) GetSubinterfaces() *InterfacesMibInterfaceListSubinterfacesType { + if m != nil { + return m.Subinterfaces + } + return nil +} + +func (m *InterfacesMibInterfaceList) GetHoldTime() *InterfacesMibInterfaceListHoldTimeType { + if m != nil { + return m.HoldTime + } + return nil +} + +func (m *InterfacesMibInterfaceList) GetEthernet() *InterfacesMibInterfaceListEthernetType { + if m != nil { + return m.Ethernet + } + return nil +} + +type InterfacesMibInterfaceListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Type *string `protobuf:"bytes,52,opt,name=type" json:"type,omitempty"` + Mtu *uint32 `protobuf:"varint,53,opt,name=mtu" json:"mtu,omitempty"` + LoopbackMode *bool `protobuf:"varint,56,opt,name=loopback_mode,json=loopbackMode" json:"loopback_mode,omitempty"` + Description *string `protobuf:"bytes,54,opt,name=description" json:"description,omitempty"` + Enabled *bool `protobuf:"varint,55,opt,name=enabled" json:"enabled,omitempty"` + Ifindex *uint32 `protobuf:"varint,61,opt,name=ifindex" json:"ifindex,omitempty"` + AdminStatus *string `protobuf:"bytes,62,opt,name=admin_status,json=adminStatus" json:"admin_status,omitempty"` + OperStatus *string `protobuf:"bytes,63,opt,name=oper_status,json=operStatus" json:"oper_status,omitempty"` + LastChange *uint64 `protobuf:"varint,64,opt,name=last_change,json=lastChange" json:"last_change,omitempty"` + Logical *bool `protobuf:"varint,65,opt,name=logical" json:"logical,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListStateType) Reset() { *m = InterfacesMibInterfaceListStateType{} } +func (m *InterfacesMibInterfaceListStateType) String() string { return proto.CompactTextString(m) } +func (*InterfacesMibInterfaceListStateType) ProtoMessage() {} +func (*InterfacesMibInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 0} +} +func (m *InterfacesMibInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesMibInterfaceListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *InterfacesMibInterfaceListStateType) GetMtu() uint32 { + if m != nil && m.Mtu != nil { + return *m.Mtu + } + return 0 +} + +func (m *InterfacesMibInterfaceListStateType) GetLoopbackMode() bool { + if m != nil && m.LoopbackMode != nil { + return *m.LoopbackMode + } + return false +} + +func (m *InterfacesMibInterfaceListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *InterfacesMibInterfaceListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *InterfacesMibInterfaceListStateType) GetIfindex() uint32 { + if m != nil && m.Ifindex != nil { + return *m.Ifindex + } + return 0 +} + +func (m *InterfacesMibInterfaceListStateType) GetAdminStatus() string { + if m != nil && m.AdminStatus != nil { + return *m.AdminStatus + } + return "" +} + +func (m *InterfacesMibInterfaceListStateType) GetOperStatus() string { + if m != nil && m.OperStatus != nil { + return *m.OperStatus + } + return "" +} + +func (m *InterfacesMibInterfaceListStateType) GetLastChange() uint64 { + if m != nil && m.LastChange != nil { + return *m.LastChange + } + return 0 +} + +func (m *InterfacesMibInterfaceListStateType) GetLogical() bool { + if m != nil && m.Logical != nil { + return *m.Logical + } + return false +} + +type InterfacesMibInterfaceListSubinterfacesType struct { + Subinterface []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList `protobuf:"bytes,151,rep,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesType) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1} +} +func (m *InterfacesMibInterfaceListSubinterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesType) GetSubinterface() []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList { + if m != nil { + return m.Subinterface + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Ipv4 *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type `protobuf:"bytes,152,opt,name=ipv4" json:"ipv4,omitempty"` + Ipv6 *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type `protobuf:"bytes,153,opt,name=ipv6" json:"ipv6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) GetIpv4() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type { + if m != nil { + return m.Ipv4 + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) GetIpv6() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type { + if m != nil { + return m.Ipv6 + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Description *string `protobuf:"bytes,53,opt,name=description" json:"description,omitempty"` + Enabled *bool `protobuf:"varint,54,opt,name=enabled" json:"enabled,omitempty"` + Name *string `protobuf:"bytes,52,opt,name=name" json:"name,omitempty"` + Ifindex *uint32 `protobuf:"varint,55,opt,name=ifindex" json:"ifindex,omitempty"` + AdminStatus *string `protobuf:"bytes,56,opt,name=admin_status,json=adminStatus" json:"admin_status,omitempty"` + OperStatus *string `protobuf:"bytes,57,opt,name=oper_status,json=operStatus" json:"oper_status,omitempty"` + LastChange *uint64 `protobuf:"varint,58,opt,name=last_change,json=lastChange" json:"last_change,omitempty"` + Logical *bool `protobuf:"varint,65,opt,name=logical" json:"logical,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetIfindex() uint32 { + if m != nil && m.Ifindex != nil { + return *m.Ifindex + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetAdminStatus() string { + if m != nil && m.AdminStatus != nil { + return *m.AdminStatus + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetOperStatus() string { + if m != nil && m.OperStatus != nil { + return *m.OperStatus + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetLastChange() uint64 { + if m != nil && m.LastChange != nil { + return *m.LastChange + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetLogical() bool { + if m != nil && m.Logical != nil { + return *m.Logical + } + return false +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type struct { + Addresses *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType `protobuf:"bytes,151,opt,name=addresses" json:"addresses,omitempty"` + Neighbors *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + Unnumbered *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType `protobuf:"bytes,153,opt,name=unnumbered" json:"unnumbered,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType `protobuf:"bytes,154,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) GetAddresses() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType { + if m != nil { + return m.Addresses + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) GetNeighbors() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) GetUnnumbered() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType { + if m != nil { + return m.Unnumbered + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType struct { + Address []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList `protobuf:"bytes,151,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) GetAddress() []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList { + if m != nil { + return m.Address + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + PrefixLength *uint32 `protobuf:"varint,52,opt,name=prefix_length,json=prefixLength" json:"prefix_length,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 0, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) GetPrefixLength() uint32 { + if m != nil && m.PrefixLength != nil { + return *m.PrefixLength + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType struct { + Neighbor []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 1} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) GetNeighbor() []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 1, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + LinkLayerAddress *string `protobuf:"bytes,52,opt,name=link_layer_address,json=linkLayerAddress" json:"link_layer_address,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + HostName *string `protobuf:"bytes,54,opt,name=host_name,json=hostName" json:"host_name,omitempty"` + TableId *uint32 `protobuf:"varint,55,opt,name=table_id,json=tableId" json:"table_id,omitempty"` + NeighborState *string `protobuf:"bytes,56,opt,name=neighbor_state,json=neighborState" json:"neighbor_state,omitempty"` + Expiry *uint32 `protobuf:"varint,57,opt,name=expiry" json:"expiry,omitempty"` + IsPublish *bool `protobuf:"varint,58,opt,name=is_publish,json=isPublish" json:"is_publish,omitempty"` + InterfaceName *string `protobuf:"bytes,59,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` + LogicalRouterId *uint32 `protobuf:"varint,60,opt,name=logical_router_id,json=logicalRouterId" json:"logical_router_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 1, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetLinkLayerAddress() string { + if m != nil && m.LinkLayerAddress != nil { + return *m.LinkLayerAddress + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetHostName() string { + if m != nil && m.HostName != nil { + return *m.HostName + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetTableId() uint32 { + if m != nil && m.TableId != nil { + return *m.TableId + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetNeighborState() string { + if m != nil && m.NeighborState != nil { + return *m.NeighborState + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetExpiry() uint32 { + if m != nil && m.Expiry != nil { + return *m.Expiry + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetIsPublish() bool { + if m != nil && m.IsPublish != nil { + return *m.IsPublish + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetInterfaceName() string { + if m != nil && m.InterfaceName != nil { + return *m.InterfaceName + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) GetLogicalRouterId() uint32 { + if m != nil && m.LogicalRouterId != nil { + return *m.LogicalRouterId + } + return 0 +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType struct { + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 2} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) GetInterfaceRef() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 2, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType struct { + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 2, 1} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 2, 1, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + Mtu *uint32 `protobuf:"varint,52,opt,name=mtu" json:"mtu,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 1, 3} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) GetMtu() uint32 { + if m != nil && m.Mtu != nil { + return *m.Mtu + } + return 0 +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type struct { + Addresses *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType `protobuf:"bytes,151,opt,name=addresses" json:"addresses,omitempty"` + Neighbors *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + Unnumbered *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType `protobuf:"bytes,153,opt,name=unnumbered" json:"unnumbered,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType `protobuf:"bytes,154,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) GetAddresses() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType { + if m != nil { + return m.Addresses + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) GetNeighbors() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) GetUnnumbered() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType { + if m != nil { + return m.Unnumbered + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType struct { + Address []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList `protobuf:"bytes,151,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) GetAddress() []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList { + if m != nil { + return m.Address + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + PrefixLength *uint32 `protobuf:"varint,52,opt,name=prefix_length,json=prefixLength" json:"prefix_length,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + Status *string `protobuf:"bytes,54,opt,name=status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 0, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) GetPrefixLength() uint32 { + if m != nil && m.PrefixLength != nil { + return *m.PrefixLength + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType struct { + Neighbor []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 1} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) GetNeighbor() []*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 1, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + LinkLayerAddress *string `protobuf:"bytes,52,opt,name=link_layer_address,json=linkLayerAddress" json:"link_layer_address,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + IsRouter *bool `protobuf:"varint,54,opt,name=is_router,json=isRouter" json:"is_router,omitempty"` + NeighborState *string `protobuf:"bytes,55,opt,name=neighbor_state,json=neighborState" json:"neighbor_state,omitempty"` + TableId *uint32 `protobuf:"varint,56,opt,name=table_id,json=tableId" json:"table_id,omitempty"` + IsSecure *bool `protobuf:"varint,57,opt,name=is_secure,json=isSecure" json:"is_secure,omitempty"` + Expiry *uint32 `protobuf:"varint,59,opt,name=expiry" json:"expiry,omitempty"` + IsPublish *bool `protobuf:"varint,58,opt,name=is_publish,json=isPublish" json:"is_publish,omitempty"` + InterfaceName *string `protobuf:"bytes,60,opt,name=interface_name,json=interfaceName" json:"interface_name,omitempty"` + LogicalRouterId *uint32 `protobuf:"varint,61,opt,name=logical_router_id,json=logicalRouterId" json:"logical_router_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 1, 0, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetLinkLayerAddress() string { + if m != nil && m.LinkLayerAddress != nil { + return *m.LinkLayerAddress + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetIsRouter() bool { + if m != nil && m.IsRouter != nil { + return *m.IsRouter + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetNeighborState() string { + if m != nil && m.NeighborState != nil { + return *m.NeighborState + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetTableId() uint32 { + if m != nil && m.TableId != nil { + return *m.TableId + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetIsSecure() bool { + if m != nil && m.IsSecure != nil { + return *m.IsSecure + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetExpiry() uint32 { + if m != nil && m.Expiry != nil { + return *m.Expiry + } + return 0 +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetIsPublish() bool { + if m != nil && m.IsPublish != nil { + return *m.IsPublish + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetInterfaceName() string { + if m != nil && m.InterfaceName != nil { + return *m.InterfaceName + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) GetLogicalRouterId() uint32 { + if m != nil && m.LogicalRouterId != nil { + return *m.LogicalRouterId + } + return 0 +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType struct { + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 2} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) GetInterfaceRef() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 2, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType struct { + State *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 2, 1} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) GetState() *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) ProtoMessage() { +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 2, 1, 0} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + Mtu *uint32 `protobuf:"varint,52,opt,name=mtu" json:"mtu,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) Reset() { + *m = InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType{} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) ProtoMessage() {} +func (*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 1, 0, 2, 3} +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) GetMtu() uint32 { + if m != nil && m.Mtu != nil { + return *m.Mtu + } + return 0 +} + +type InterfacesMibInterfaceListHoldTimeType struct { + State *InterfacesMibInterfaceListHoldTimeTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListHoldTimeType) Reset() { + *m = InterfacesMibInterfaceListHoldTimeType{} +} +func (m *InterfacesMibInterfaceListHoldTimeType) String() string { return proto.CompactTextString(m) } +func (*InterfacesMibInterfaceListHoldTimeType) ProtoMessage() {} +func (*InterfacesMibInterfaceListHoldTimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 2} +} +func (m *InterfacesMibInterfaceListHoldTimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListHoldTimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListHoldTimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListHoldTimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListHoldTimeType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListHoldTimeType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListHoldTimeType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListHoldTimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListHoldTimeType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListHoldTimeType) GetState() *InterfacesMibInterfaceListHoldTimeTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListHoldTimeTypeStateType struct { + Up *uint32 `protobuf:"varint,51,opt,name=up" json:"up,omitempty"` + Down *uint32 `protobuf:"varint,52,opt,name=down" json:"down,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) Reset() { + *m = InterfacesMibInterfaceListHoldTimeTypeStateType{} +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListHoldTimeTypeStateType) ProtoMessage() {} +func (*InterfacesMibInterfaceListHoldTimeTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 2, 0} +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListHoldTimeTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListHoldTimeTypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListHoldTimeTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListHoldTimeTypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) GetUp() uint32 { + if m != nil && m.Up != nil { + return *m.Up + } + return 0 +} + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) GetDown() uint32 { + if m != nil && m.Down != nil { + return *m.Down + } + return 0 +} + +type InterfacesMibInterfaceListEthernetType struct { + State *InterfacesMibInterfaceListEthernetTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListEthernetType) Reset() { + *m = InterfacesMibInterfaceListEthernetType{} +} +func (m *InterfacesMibInterfaceListEthernetType) String() string { return proto.CompactTextString(m) } +func (*InterfacesMibInterfaceListEthernetType) ProtoMessage() {} +func (*InterfacesMibInterfaceListEthernetType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 3} +} +func (m *InterfacesMibInterfaceListEthernetType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListEthernetType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListEthernetType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListEthernetType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListEthernetType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListEthernetType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListEthernetType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListEthernetType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListEthernetType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListEthernetType) GetState() *InterfacesMibInterfaceListEthernetTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesMibInterfaceListEthernetTypeStateType struct { + MacAddress *string `protobuf:"bytes,51,opt,name=mac_address,json=macAddress" json:"mac_address,omitempty"` + AutoNegotiate *bool `protobuf:"varint,52,opt,name=auto_negotiate,json=autoNegotiate" json:"auto_negotiate,omitempty"` + DuplexMode *string `protobuf:"bytes,53,opt,name=duplex_mode,json=duplexMode" json:"duplex_mode,omitempty"` + PortSpeed *string `protobuf:"bytes,54,opt,name=port_speed,json=portSpeed" json:"port_speed,omitempty"` + EnableFlowControl *bool `protobuf:"varint,55,opt,name=enable_flow_control,json=enableFlowControl" json:"enable_flow_control,omitempty"` + HwMacAddress *string `protobuf:"bytes,56,opt,name=hw_mac_address,json=hwMacAddress" json:"hw_mac_address,omitempty"` + NegotiatedDuplexMode *string `protobuf:"bytes,57,opt,name=negotiated_duplex_mode,json=negotiatedDuplexMode" json:"negotiated_duplex_mode,omitempty"` + NegotiatedPortSpeed *string `protobuf:"bytes,58,opt,name=negotiated_port_speed,json=negotiatedPortSpeed" json:"negotiated_port_speed,omitempty"` + Counters *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) Reset() { + *m = InterfacesMibInterfaceListEthernetTypeStateType{} +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListEthernetTypeStateType) ProtoMessage() {} +func (*InterfacesMibInterfaceListEthernetTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 3, 0} +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetMacAddress() string { + if m != nil && m.MacAddress != nil { + return *m.MacAddress + } + return "" +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetAutoNegotiate() bool { + if m != nil && m.AutoNegotiate != nil { + return *m.AutoNegotiate + } + return false +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetDuplexMode() string { + if m != nil && m.DuplexMode != nil { + return *m.DuplexMode + } + return "" +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetPortSpeed() string { + if m != nil && m.PortSpeed != nil { + return *m.PortSpeed + } + return "" +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetEnableFlowControl() bool { + if m != nil && m.EnableFlowControl != nil { + return *m.EnableFlowControl + } + return false +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetHwMacAddress() string { + if m != nil && m.HwMacAddress != nil { + return *m.HwMacAddress + } + return "" +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetNegotiatedDuplexMode() string { + if m != nil && m.NegotiatedDuplexMode != nil { + return *m.NegotiatedDuplexMode + } + return "" +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetNegotiatedPortSpeed() string { + if m != nil && m.NegotiatedPortSpeed != nil { + return *m.NegotiatedPortSpeed + } + return "" +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) GetCounters() *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesMibInterfaceListEthernetTypeStateTypeCountersType struct { + InMacControlFrames *uint64 `protobuf:"varint,51,opt,name=in_mac_control_frames,json=inMacControlFrames" json:"in_mac_control_frames,omitempty"` + InMacPauseFrames *uint64 `protobuf:"varint,52,opt,name=in_mac_pause_frames,json=inMacPauseFrames" json:"in_mac_pause_frames,omitempty"` + InOversizeFrames *uint64 `protobuf:"varint,53,opt,name=in_oversize_frames,json=inOversizeFrames" json:"in_oversize_frames,omitempty"` + InJabberFrames *uint64 `protobuf:"varint,54,opt,name=in_jabber_frames,json=inJabberFrames" json:"in_jabber_frames,omitempty"` + InFragmentFrames *uint64 `protobuf:"varint,55,opt,name=in_fragment_frames,json=inFragmentFrames" json:"in_fragment_frames,omitempty"` + In_8021QFrames *uint64 `protobuf:"varint,56,opt,name=in_8021q_frames,json=in8021qFrames" json:"in_8021q_frames,omitempty"` + InCrcErrors *uint64 `protobuf:"varint,57,opt,name=in_crc_errors,json=inCrcErrors" json:"in_crc_errors,omitempty"` + InBlockErrors *uint64 `protobuf:"varint,58,opt,name=in_block_errors,json=inBlockErrors" json:"in_block_errors,omitempty"` + OutMacControlFrames *uint64 `protobuf:"varint,60,opt,name=out_mac_control_frames,json=outMacControlFrames" json:"out_mac_control_frames,omitempty"` + OutMacPauseFrames *uint64 `protobuf:"varint,59,opt,name=out_mac_pause_frames,json=outMacPauseFrames" json:"out_mac_pause_frames,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) Reset() { + *m = InterfacesMibInterfaceListEthernetTypeStateTypeCountersType{} +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) ProtoMessage() {} +func (*InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_152d1f4638f28fa5, []int{0, 0, 3, 0, 0} +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateTypeCountersType.Merge(m, src) +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesMibInterfaceListEthernetTypeStateTypeCountersType proto.InternalMessageInfo + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInMacControlFrames() uint64 { + if m != nil && m.InMacControlFrames != nil { + return *m.InMacControlFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInMacPauseFrames() uint64 { + if m != nil && m.InMacPauseFrames != nil { + return *m.InMacPauseFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInOversizeFrames() uint64 { + if m != nil && m.InOversizeFrames != nil { + return *m.InOversizeFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInJabberFrames() uint64 { + if m != nil && m.InJabberFrames != nil { + return *m.InJabberFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInFragmentFrames() uint64 { + if m != nil && m.InFragmentFrames != nil { + return *m.InFragmentFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetIn_8021QFrames() uint64 { + if m != nil && m.In_8021QFrames != nil { + return *m.In_8021QFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInCrcErrors() uint64 { + if m != nil && m.InCrcErrors != nil { + return *m.InCrcErrors + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetInBlockErrors() uint64 { + if m != nil && m.InBlockErrors != nil { + return *m.InBlockErrors + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetOutMacControlFrames() uint64 { + if m != nil && m.OutMacControlFrames != nil { + return *m.OutMacControlFrames + } + return 0 +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) GetOutMacPauseFrames() uint64 { + if m != nil && m.OutMacPauseFrames != nil { + return *m.OutMacPauseFrames + } + return 0 +} + +var E_JnprInterfacesMibExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesMib)(nil), + Field: 55, + Name: "jnpr_interfaces_mib_ext", + Tag: "bytes,55,opt,name=jnpr_interfaces_mib_ext", + Filename: "mib2d_oc.proto", +} + +func init() { + proto.RegisterType((*InterfacesMib)(nil), "interfaces_mib") + proto.RegisterType((*InterfacesMibInterfaceList)(nil), "interfaces_mib.interface_list") + proto.RegisterType((*InterfacesMibInterfaceListStateType)(nil), "interfaces_mib.interface_list.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesType)(nil), "interfaces_mib.interface_list.subinterfaces_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.neighbors_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.neighbors_type.neighbor_list") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.unnumbered_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.unnumbered_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.unnumbered_type.interface_ref_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.unnumbered_type.interface_ref_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv4_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.neighbors_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.neighbors_type.neighbor_list") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.unnumbered_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.unnumbered_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.unnumbered_type.interface_ref_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.unnumbered_type.interface_ref_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType)(nil), "interfaces_mib.interface_list.subinterfaces_type.subinterface_list.ipv6_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListHoldTimeType)(nil), "interfaces_mib.interface_list.hold_time_type") + proto.RegisterType((*InterfacesMibInterfaceListHoldTimeTypeStateType)(nil), "interfaces_mib.interface_list.hold_time_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListEthernetType)(nil), "interfaces_mib.interface_list.ethernet_type") + proto.RegisterType((*InterfacesMibInterfaceListEthernetTypeStateType)(nil), "interfaces_mib.interface_list.ethernet_type.state_type") + proto.RegisterType((*InterfacesMibInterfaceListEthernetTypeStateTypeCountersType)(nil), "interfaces_mib.interface_list.ethernet_type.state_type.counters_type") + proto.RegisterExtension(E_JnprInterfacesMibExt) +} + +func init() { proto.RegisterFile("mib2d_oc.proto", fileDescriptor_152d1f4638f28fa5) } + +var fileDescriptor_152d1f4638f28fa5 = []byte{ + // 1741 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0xcb, 0x6f, 0x1b, 0xc7, + 0x19, 0xc7, 0xca, 0x74, 0x4c, 0x7e, 0x12, 0x69, 0x6b, 0x64, 0x3b, 0xcc, 0xa6, 0x71, 0x54, 0xa7, + 0x09, 0x98, 0xc2, 0x22, 0x63, 0x59, 0x5e, 0x31, 0x7e, 0xb4, 0x8e, 0x5d, 0x1b, 0x50, 0x1a, 0x29, + 0x06, 0xd5, 0x43, 0x5a, 0xb4, 0x98, 0xee, 0x63, 0x48, 0x8e, 0xb4, 0xdc, 0xd9, 0xec, 0xce, 0x5a, + 0x52, 0x03, 0xb4, 0x40, 0x1f, 0xe8, 0x21, 0x41, 0x0f, 0x2d, 0xd0, 0xe7, 0x25, 0xa7, 0xa2, 0xff, + 0x44, 0x81, 0xdc, 0x9a, 0xa2, 0x87, 0xa6, 0xff, 0x41, 0xe1, 0x53, 0x4f, 0xbd, 0xf5, 0xd0, 0x5b, + 0x31, 0x33, 0x3b, 0xfb, 0xa0, 0x68, 0x29, 0x72, 0xf5, 0x08, 0x7c, 0xd3, 0xfc, 0xe6, 0x9b, 0xef, + 0xfb, 0xf8, 0xbd, 0xe6, 0xb7, 0x23, 0x68, 0x8c, 0xa8, 0xb3, 0xe8, 0x61, 0xe6, 0xb6, 0xc3, 0x88, + 0x71, 0x66, 0xce, 0x71, 0xe2, 0x93, 0x11, 0xe1, 0xd1, 0x0e, 0xe6, 0x2c, 0x54, 0xe0, 0xe5, 0xbf, + 0x74, 0xa1, 0x41, 0x03, 0x4e, 0xa2, 0xbe, 0xed, 0x92, 0x18, 0x8f, 0xa8, 0x83, 0x6e, 0x43, 0x2d, + 0x43, 0x9a, 0xbf, 0x31, 0xe6, 0x4f, 0xb5, 0xa6, 0x17, 0x2f, 0xb5, 0xcb, 0x42, 0xf9, 0x12, 0xfb, + 0x34, 0xe6, 0xbd, 0xfc, 0x84, 0xf9, 0x9f, 0xe5, 0x82, 0x46, 0xb9, 0x8b, 0x5e, 0x80, 0x4a, 0x60, + 0x8f, 0x48, 0xf3, 0xda, 0xbc, 0xd1, 0xaa, 0xdd, 0x3d, 0xfd, 0xe3, 0x3b, 0x53, 0x55, 0xa3, 0x27, + 0x21, 0x74, 0x07, 0x4e, 0xc7, 0xdc, 0xe6, 0xd2, 0x90, 0xd1, 0x9a, 0x5e, 0x7c, 0x7d, 0x6f, 0x43, + 0x6d, 0x29, 0x8c, 0xf9, 0x4e, 0x48, 0x7a, 0xea, 0x20, 0x7a, 0x0f, 0xea, 0x71, 0xe2, 0xe4, 0xa7, + 0x9a, 0xbf, 0x55, 0x9a, 0xae, 0xee, 0xa7, 0xa9, 0x78, 0x48, 0x69, 0x2c, 0x2b, 0x42, 0xdf, 0x84, + 0xda, 0x90, 0xf9, 0x1e, 0xe6, 0x74, 0x44, 0x9a, 0x7f, 0x50, 0x5a, 0x17, 0xf6, 0xd1, 0x9a, 0x1d, + 0x50, 0x1a, 0xab, 0x62, 0xfd, 0x2d, 0x3a, 0x22, 0x68, 0x05, 0xaa, 0x84, 0x0f, 0x49, 0x14, 0x10, + 0xde, 0xfc, 0x9d, 0xd2, 0x75, 0x65, 0x1f, 0x5d, 0x5a, 0x3e, 0x55, 0xa5, 0x97, 0xe6, 0x27, 0x53, + 0x00, 0x79, 0x1c, 0x10, 0x2a, 0x46, 0x37, 0x0d, 0x2b, 0x82, 0x8a, 0xd8, 0x6b, 0x2e, 0x29, 0x4c, + 0xca, 0x9d, 0x83, 0x53, 0x23, 0x9e, 0x34, 0xaf, 0xcf, 0x1b, 0xad, 0x7a, 0x4f, 0xfc, 0x89, 0x5e, + 0x81, 0xba, 0xcf, 0x58, 0xe8, 0xd8, 0xee, 0x26, 0x1e, 0x31, 0x8f, 0x34, 0xbb, 0xf3, 0x46, 0xab, + 0xda, 0x9b, 0xd1, 0xe0, 0x2a, 0xf3, 0x08, 0x9a, 0x87, 0x69, 0x8f, 0xc4, 0x6e, 0x44, 0x43, 0x4e, + 0x59, 0xd0, 0xb4, 0xa4, 0xc6, 0x22, 0x84, 0x9a, 0x70, 0x86, 0x04, 0xb6, 0xe3, 0x13, 0xaf, 0xb9, + 0x2c, 0x15, 0xe8, 0xa5, 0xd8, 0xa1, 0x7d, 0x1a, 0x78, 0x64, 0xbb, 0x79, 0x5b, 0x9a, 0xd5, 0x4b, + 0xf4, 0x65, 0x98, 0xb1, 0xbd, 0x11, 0x0d, 0xb0, 0xf8, 0x21, 0x49, 0xdc, 0xfc, 0x9a, 0x52, 0x2b, + 0xb1, 0x75, 0x09, 0xa1, 0x97, 0x61, 0x9a, 0x85, 0x24, 0xd2, 0x12, 0x5f, 0x97, 0x12, 0x20, 0xa0, + 0x5c, 0xc0, 0xb7, 0x63, 0x8e, 0xdd, 0xa1, 0x1d, 0x0c, 0x48, 0xf3, 0xce, 0xbc, 0xd1, 0xaa, 0xf4, + 0x40, 0x40, 0xf7, 0x24, 0x22, 0xcc, 0xfb, 0x6c, 0x40, 0x5d, 0xdb, 0x6f, 0xbe, 0xa5, 0x1c, 0x4b, + 0x97, 0xe6, 0x5f, 0x5f, 0x07, 0xb4, 0xbb, 0x00, 0xd0, 0x10, 0x66, 0x8a, 0xa8, 0xae, 0xfe, 0x7b, + 0x07, 0x2e, 0xa5, 0x12, 0xa4, 0x5a, 0xa4, 0xa4, 0xd9, 0xfc, 0xb4, 0x05, 0xb3, 0xbb, 0x64, 0xd0, + 0x8b, 0x70, 0x5a, 0x45, 0x4b, 0xe4, 0xb2, 0xae, 0x3b, 0x45, 0x61, 0x88, 0x8c, 0xb5, 0xca, 0xda, + 0x21, 0x78, 0x35, 0xa1, 0x9f, 0x1c, 0xa8, 0xd0, 0xf0, 0xd1, 0x92, 0x6e, 0xa3, 0xd5, 0xc3, 0xb0, + 0x22, 0x14, 0x2a, 0x23, 0x52, 0x77, 0x6a, 0xc3, 0xd2, 0x8d, 0x70, 0x58, 0x36, 0xac, 0xdc, 0x86, + 0x65, 0x7e, 0x58, 0xee, 0x92, 0xf3, 0xa5, 0xd0, 0xea, 0x98, 0x8e, 0x15, 0xf7, 0xf5, 0x3d, 0x8b, + 0xdb, 0x2a, 0x17, 0xb7, 0xee, 0xbb, 0xa5, 0x42, 0xdf, 0x15, 0x0a, 0x7e, 0x79, 0xef, 0x82, 0xef, + 0xee, 0x5b, 0xf0, 0x6f, 0xee, 0x57, 0xf0, 0x37, 0x0e, 0x50, 0xf0, 0x9f, 0xcd, 0x42, 0x2d, 0xcb, + 0x02, 0xfa, 0x00, 0x6a, 0xb6, 0xe7, 0x45, 0x24, 0x8e, 0x49, 0xac, 0xcb, 0xe9, 0xbb, 0x87, 0x9a, + 0xe8, 0x76, 0xa6, 0x5f, 0xe5, 0x24, 0xb7, 0x27, 0x8c, 0x07, 0x84, 0x0e, 0x86, 0x0e, 0x8b, 0xb2, + 0x61, 0x7d, 0xc8, 0xc6, 0x33, 0xfd, 0xa9, 0xf1, 0x6c, 0x8d, 0x7e, 0x08, 0x90, 0x04, 0x41, 0x32, + 0x72, 0x48, 0x44, 0x3c, 0x5d, 0x7f, 0xdf, 0x3b, 0x5c, 0xeb, 0xb9, 0x01, 0x65, 0xbe, 0x60, 0x11, + 0x31, 0xdd, 0xc4, 0xbf, 0x57, 0xa6, 0xdf, 0x3b, 0x5c, 0xd3, 0xbb, 0xda, 0xd9, 0xfc, 0xd3, 0x29, + 0x68, 0x94, 0x73, 0x81, 0x7e, 0x6a, 0xc0, 0x99, 0x14, 0xd2, 0x13, 0x8e, 0x1e, 0x65, 0xf2, 0xf5, + 0x52, 0xcd, 0x41, 0x6d, 0xda, 0xfc, 0xc5, 0x94, 0x68, 0x89, 0x7c, 0x07, 0x5d, 0x80, 0x29, 0x1a, + 0x96, 0x49, 0xc2, 0x14, 0x0d, 0xd1, 0x87, 0xc6, 0xd8, 0xe0, 0xe3, 0xc7, 0xe6, 0xec, 0x84, 0x78, + 0x7e, 0xbb, 0x34, 0x55, 0x1a, 0xb9, 0xcb, 0xd2, 0xd7, 0x57, 0xa0, 0x1e, 0x46, 0xa4, 0x4f, 0xb7, + 0xb1, 0x4f, 0x82, 0x01, 0x1f, 0xca, 0xe1, 0x50, 0xef, 0xcd, 0x28, 0xf0, 0x1d, 0x89, 0xa1, 0x8b, + 0xf0, 0x1c, 0x8b, 0xe8, 0x80, 0xea, 0x79, 0x93, 0xae, 0xcc, 0x8f, 0x4f, 0x43, 0xa3, 0x5c, 0xb9, + 0xe8, 0xe7, 0x06, 0x54, 0x35, 0xa4, 0x73, 0xb5, 0x71, 0x94, 0xbd, 0x92, 0x2d, 0x55, 0xb2, 0x32, + 0xe3, 0xe6, 0x4f, 0x2a, 0x50, 0x2f, 0xed, 0x3d, 0x29, 0x5d, 0x1f, 0x8d, 0xa7, 0x2b, 0x39, 0x3e, + 0x7f, 0x27, 0xe4, 0xeb, 0x6f, 0x53, 0x7b, 0x26, 0xec, 0x0a, 0x20, 0x9f, 0x06, 0x9b, 0xd8, 0xb7, + 0x77, 0x48, 0x84, 0x75, 0x57, 0xa8, 0x91, 0x7e, 0x4e, 0xec, 0xbc, 0x23, 0x36, 0xde, 0x52, 0xf8, + 0x93, 0x32, 0x87, 0x5e, 0x14, 0x4c, 0x31, 0xe6, 0x58, 0xde, 0x07, 0x8a, 0x21, 0x55, 0x05, 0xb0, + 0x26, 0xee, 0x84, 0x17, 0xa0, 0xca, 0xc5, 0x8d, 0x81, 0xa9, 0xa7, 0x2f, 0x05, 0xb9, 0x5e, 0xf1, + 0xd0, 0xab, 0x79, 0xc2, 0xb1, 0x8a, 0x99, 0xba, 0x16, 0xb2, 0x48, 0xaf, 0xcb, 0x2b, 0xf9, 0x22, + 0x3c, 0x47, 0xb6, 0x43, 0x1a, 0xed, 0xc8, 0x3b, 0xa1, 0xde, 0x4b, 0x57, 0xe8, 0x25, 0x00, 0x1a, + 0xe3, 0x30, 0x71, 0x7c, 0x1a, 0x0f, 0xe5, 0x75, 0x50, 0xed, 0xd5, 0x68, 0xfc, 0x50, 0x01, 0x42, + 0x7b, 0x1e, 0x45, 0xe9, 0xda, 0x4d, 0xa5, 0x3d, 0x43, 0xa5, 0x7f, 0x5f, 0x85, 0xd9, 0xf4, 0x96, + 0xc0, 0x11, 0x4b, 0x38, 0x89, 0x84, 0xa3, 0xb7, 0xa4, 0xa1, 0xb3, 0xe9, 0x46, 0x4f, 0xe2, 0x2b, + 0x9e, 0xf9, 0xf7, 0x0a, 0x9c, 0x1d, 0x1b, 0x6f, 0xe8, 0x47, 0x63, 0xf9, 0x1e, 0x1e, 0xe9, 0x34, + 0x9d, 0xc0, 0x58, 0x7e, 0x6d, 0x40, 0xfe, 0x93, 0x70, 0x44, 0xfa, 0xfa, 0x56, 0x09, 0x8f, 0xd6, + 0x93, 0x92, 0x4d, 0xe5, 0xd1, 0x4c, 0x86, 0xf5, 0x48, 0xdf, 0x7c, 0xad, 0x54, 0x7a, 0x05, 0x26, + 0x71, 0xad, 0xc4, 0x24, 0xcc, 0xff, 0x1a, 0x80, 0x76, 0x2b, 0x43, 0xbf, 0x1c, 0xef, 0xa4, 0x0f, + 0x8e, 0xfb, 0xf7, 0x4c, 0xe8, 0xa7, 0xb5, 0xd2, 0x6f, 0xfa, 0x52, 0xf1, 0x5b, 0x51, 0x75, 0x55, + 0x0e, 0xa0, 0xcb, 0x63, 0x74, 0x3a, 0x1d, 0x86, 0x25, 0x22, 0xdc, 0xfd, 0x7c, 0x31, 0xd2, 0x5f, + 0x2f, 0x4b, 0xd9, 0xd7, 0x8b, 0xf9, 0x33, 0x24, 0x29, 0x8d, 0x75, 0xf4, 0x94, 0xc6, 0x3a, 0x49, + 0x4a, 0x63, 0x9d, 0x28, 0xa5, 0xb1, 0x4e, 0x8e, 0xd2, 0x58, 0x4f, 0x2a, 0xc1, 0x4f, 0x8e, 0x95, + 0xd2, 0x58, 0x07, 0xa0, 0x34, 0x7f, 0x3c, 0x69, 0x4a, 0x63, 0x3d, 0x0d, 0xa5, 0x79, 0xff, 0xc8, + 0x28, 0x8d, 0xc0, 0xd3, 0xaf, 0x19, 0x75, 0x2b, 0xa6, 0x2b, 0xf3, 0xcf, 0xc7, 0x4b, 0x75, 0xac, + 0x03, 0x51, 0x9d, 0x8f, 0x4f, 0x9c, 0xea, 0x58, 0x4f, 0x45, 0x75, 0xfe, 0x75, 0x4c, 0x54, 0x87, + 0xc6, 0x29, 0x51, 0x48, 0xbf, 0x88, 0xab, 0x34, 0x56, 0x04, 0x61, 0x02, 0x9f, 0x59, 0x9e, 0xc4, + 0x67, 0x8a, 0x8c, 0xa8, 0x5b, 0x66, 0x44, 0x4a, 0x7d, 0x4c, 0xdc, 0x24, 0x22, 0x92, 0xed, 0x48, + 0xf5, 0xeb, 0x72, 0x5d, 0xe0, 0x41, 0x37, 0xff, 0x3f, 0x1e, 0x74, 0xeb, 0x73, 0xf3, 0xa0, 0xdb, + 0x27, 0xcf, 0x83, 0xac, 0x2f, 0x0c, 0x0f, 0xb2, 0x9e, 0x31, 0x1e, 0x64, 0x3d, 0x13, 0x3c, 0xe8, + 0x57, 0x06, 0x34, 0xca, 0xcf, 0xce, 0xe8, 0xdd, 0xb1, 0x80, 0x75, 0x0f, 0xf4, 0x6a, 0x3d, 0xe1, + 0xd7, 0xbe, 0x31, 0x3e, 0x59, 0x92, 0x30, 0x7d, 0x48, 0x9b, 0x4a, 0x42, 0x84, 0xa0, 0xe2, 0xb1, + 0xad, 0x20, 0x75, 0x4a, 0xfe, 0x6d, 0xfe, 0xfb, 0x0c, 0xd4, 0x4b, 0x0f, 0xd8, 0x68, 0x6d, 0xcc, + 0xa9, 0xe5, 0x83, 0x3c, 0x7f, 0x4f, 0xf0, 0xe9, 0xa3, 0x33, 0x25, 0xa7, 0x5e, 0x86, 0xe9, 0x91, + 0xed, 0x66, 0x73, 0x4d, 0x25, 0x01, 0x46, 0xb6, 0xab, 0x27, 0xda, 0xab, 0xd0, 0xb0, 0x13, 0xce, + 0x70, 0x40, 0x06, 0x8c, 0x53, 0xe1, 0xc8, 0x92, 0x0c, 0x6d, 0x5d, 0xa0, 0x6b, 0x1a, 0x14, 0x7a, + 0xbc, 0x24, 0xf4, 0xc9, 0xb6, 0x7a, 0x12, 0x57, 0xd3, 0x0f, 0x14, 0x24, 0x1f, 0xc4, 0x5f, 0x02, + 0x08, 0x59, 0xc4, 0x71, 0x1c, 0x92, 0xf4, 0x51, 0xb0, 0xd6, 0xab, 0x09, 0x64, 0x5d, 0x00, 0xa8, + 0x0d, 0x73, 0x2a, 0x57, 0xb8, 0xef, 0xb3, 0x2d, 0xec, 0xb2, 0x80, 0x47, 0xcc, 0x4f, 0x5f, 0xc6, + 0x67, 0xd5, 0xd6, 0x03, 0x9f, 0x6d, 0xdd, 0x53, 0x1b, 0xe8, 0x2b, 0xd0, 0x18, 0x6e, 0xe1, 0xa2, + 0xeb, 0xea, 0x1b, 0x70, 0x66, 0xb8, 0xb5, 0x9a, 0x3b, 0xbf, 0x04, 0x17, 0x33, 0xbf, 0x3d, 0x5c, + 0x74, 0x50, 0x3d, 0x13, 0x9e, 0xcf, 0x77, 0xbf, 0x91, 0xbb, 0xba, 0x08, 0x17, 0x0a, 0xa7, 0x0a, + 0x5e, 0xdf, 0x90, 0x87, 0xe6, 0xf2, 0xcd, 0x87, 0x99, 0xff, 0x0e, 0x54, 0x5d, 0x96, 0x88, 0x54, + 0x64, 0x3c, 0xfa, 0xfe, 0x53, 0x66, 0xaa, 0xad, 0x15, 0xa5, 0xff, 0xc1, 0xd0, 0x4b, 0xf3, 0x1f, + 0xa7, 0xa0, 0x5e, 0xda, 0x43, 0x57, 0xe1, 0x02, 0x0d, 0x64, 0x14, 0xd2, 0x80, 0xe1, 0x7e, 0x64, + 0x8f, 0x88, 0xca, 0x63, 0xa5, 0x87, 0x68, 0xb0, 0x6a, 0xbb, 0x69, 0xc8, 0x1e, 0xc8, 0x1d, 0xb4, + 0x00, 0x73, 0xe9, 0x91, 0xd0, 0x4e, 0x62, 0xa2, 0x0f, 0x2c, 0xc9, 0x03, 0xe7, 0xe4, 0x81, 0x87, + 0x62, 0x23, 0x15, 0xbf, 0x22, 0x66, 0x0b, 0x66, 0x8f, 0x48, 0x14, 0xd3, 0x1f, 0x64, 0xd2, 0xd7, + 0xb5, 0xf4, 0xbb, 0xe9, 0x46, 0x2a, 0xdd, 0x82, 0x73, 0x34, 0xc0, 0x1b, 0xb6, 0xe3, 0x90, 0x48, + 0xcb, 0x5a, 0x52, 0xb6, 0x41, 0x83, 0xb7, 0x25, 0x5c, 0xd2, 0xdb, 0x8f, 0xec, 0xc1, 0x88, 0x04, + 0x5c, 0xcb, 0x2e, 0x6b, 0xbd, 0x0f, 0xd2, 0x8d, 0x54, 0xfa, 0x35, 0x38, 0x4b, 0x03, 0xdc, 0x7d, + 0x63, 0xf1, 0xea, 0xfb, 0x5a, 0xb4, 0x2b, 0x45, 0xeb, 0x34, 0x90, 0x68, 0x2a, 0x77, 0x59, 0x8c, + 0x72, 0xec, 0x46, 0x2e, 0x26, 0x51, 0x24, 0xbe, 0x2a, 0xde, 0x94, 0x52, 0xd3, 0x34, 0xb8, 0x17, + 0xb9, 0xf7, 0x25, 0x94, 0xea, 0x72, 0x7c, 0xe6, 0x6e, 0x6a, 0xa9, 0x1b, 0x5a, 0xd7, 0x5d, 0x81, + 0xa6, 0x72, 0xd7, 0xe0, 0x22, 0x4b, 0xf8, 0xa4, 0xe0, 0xde, 0x92, 0xe2, 0x73, 0x2c, 0xe1, 0xbb, + 0xa2, 0xdb, 0x81, 0xf3, 0xfa, 0x50, 0x29, 0xbc, 0x37, 0xe5, 0x91, 0x59, 0x75, 0xa4, 0x10, 0xdf, + 0x1b, 0x18, 0x9e, 0xdf, 0x08, 0xc2, 0x08, 0x97, 0x4b, 0x05, 0x93, 0x6d, 0x8e, 0x9e, 0x6f, 0xbf, + 0x9d, 0x04, 0x34, 0x24, 0xd1, 0x1a, 0xe1, 0x5b, 0x2c, 0xda, 0x8c, 0xd7, 0x49, 0x10, 0x0b, 0x77, + 0x97, 0x65, 0x79, 0x9d, 0x1d, 0x2b, 0xaf, 0xde, 0x79, 0xa1, 0x68, 0x25, 0xc3, 0x56, 0xa9, 0x73, + 0x7f, 0x9b, 0xdf, 0xfd, 0xfe, 0xa7, 0x8f, 0x2f, 0x19, 0x9f, 0x3d, 0xbe, 0x64, 0xfc, 0xf3, 0xf1, + 0x25, 0xe3, 0x3b, 0xbd, 0x01, 0xe5, 0xed, 0x0d, 0xa5, 0xb6, 0x1d, 0x10, 0xde, 0xa1, 0x2e, 0x71, + 0x48, 0x34, 0xe8, 0x0c, 0x89, 0xed, 0xf3, 0xa1, 0xc3, 0xf8, 0x02, 0x0d, 0x06, 0x24, 0xe6, 0x0b, + 0x1b, 0x9c, 0x2e, 0x04, 0x36, 0xa7, 0x8f, 0x48, 0x27, 0xdc, 0x1c, 0x74, 0x36, 0x38, 0xed, 0xd8, + 0x9e, 0x1d, 0x8a, 0xda, 0xeb, 0xe0, 0x8d, 0x24, 0x60, 0x71, 0x27, 0x76, 0x87, 0x64, 0x64, 0xff, + 0x2f, 0x00, 0x00, 0xff, 0xff, 0xae, 0x49, 0x7d, 0x87, 0x32, 0x1d, 0x00, 0x00, +} + +func (m *InterfacesMib) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMib) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMib) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HoldTime != nil { + { + size, err := m.HoldTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Ethernet != nil { + { + size, err := m.Ethernet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Subinterfaces != nil { + { + size, err := m.Subinterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Logical != nil { + i-- + if *m.Logical { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.LastChange != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.LastChange)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.OperStatus != nil { + i -= len(*m.OperStatus) + copy(dAtA[i:], *m.OperStatus) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.OperStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.AdminStatus != nil { + i -= len(*m.AdminStatus) + copy(dAtA[i:], *m.AdminStatus) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.AdminStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.Ifindex != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Ifindex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.LoopbackMode != nil { + i-- + if *m.LoopbackMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Mtu != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Mtu)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterface) > 0 { + for iNdEx := len(m.Subinterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6 != nil { + { + size, err := m.Ipv6.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Ipv4 != nil { + { + size, err := m.Ipv4.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Logical != nil { + i-- + if *m.Logical { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.LastChange != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.LastChange)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.OperStatus != nil { + i -= len(*m.OperStatus) + copy(dAtA[i:], *m.OperStatus) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.OperStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.AdminStatus != nil { + i -= len(*m.AdminStatus) + copy(dAtA[i:], *m.AdminStatus) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.AdminStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Ifindex != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Ifindex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Index != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Unnumbered != nil { + { + size, err := m.Unnumbered.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Addresses != nil { + { + size, err := m.Addresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Address[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.PrefixLength != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.PrefixLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogicalRouterId != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.LogicalRouterId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.InterfaceName != nil { + i -= len(*m.InterfaceName) + copy(dAtA[i:], *m.InterfaceName) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.InterfaceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.IsPublish != nil { + i-- + if *m.IsPublish { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.Expiry != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Expiry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.NeighborState != nil { + i -= len(*m.NeighborState) + copy(dAtA[i:], *m.NeighborState) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.NeighborState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.TableId != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.TableId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.HostName != nil { + i -= len(*m.HostName) + copy(dAtA[i:], *m.HostName) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.HostName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LinkLayerAddress != nil { + i -= len(*m.LinkLayerAddress) + copy(dAtA[i:], *m.LinkLayerAddress) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.LinkLayerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mtu != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Mtu)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Unnumbered != nil { + { + size, err := m.Unnumbered.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Addresses != nil { + { + size, err := m.Addresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Address[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.PrefixLength != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.PrefixLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogicalRouterId != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.LogicalRouterId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.InterfaceName != nil { + i -= len(*m.InterfaceName) + copy(dAtA[i:], *m.InterfaceName) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.InterfaceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.Expiry != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Expiry)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.IsPublish != nil { + i-- + if *m.IsPublish { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.IsSecure != nil { + i-- + if *m.IsSecure { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.TableId != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.TableId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.NeighborState != nil { + i -= len(*m.NeighborState) + copy(dAtA[i:], *m.NeighborState) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.NeighborState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.IsRouter != nil { + i-- + if *m.IsRouter { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LinkLayerAddress != nil { + i -= len(*m.LinkLayerAddress) + copy(dAtA[i:], *m.LinkLayerAddress) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.LinkLayerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mtu != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Mtu)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListHoldTimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListHoldTimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListHoldTimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Down != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Down)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Up != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.Up)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListEthernetType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListEthernetType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListEthernetType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMib2DOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NegotiatedPortSpeed != nil { + i -= len(*m.NegotiatedPortSpeed) + copy(dAtA[i:], *m.NegotiatedPortSpeed) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.NegotiatedPortSpeed))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.NegotiatedDuplexMode != nil { + i -= len(*m.NegotiatedDuplexMode) + copy(dAtA[i:], *m.NegotiatedDuplexMode) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.NegotiatedDuplexMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.HwMacAddress != nil { + i -= len(*m.HwMacAddress) + copy(dAtA[i:], *m.HwMacAddress) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.HwMacAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.EnableFlowControl != nil { + i-- + if *m.EnableFlowControl { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.PortSpeed != nil { + i -= len(*m.PortSpeed) + copy(dAtA[i:], *m.PortSpeed) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.PortSpeed))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.DuplexMode != nil { + i -= len(*m.DuplexMode) + copy(dAtA[i:], *m.DuplexMode) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.DuplexMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AutoNegotiate != nil { + i-- + if *m.AutoNegotiate { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MacAddress != nil { + i -= len(*m.MacAddress) + copy(dAtA[i:], *m.MacAddress) + i = encodeVarintMib2DOc(dAtA, i, uint64(len(*m.MacAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutMacControlFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.OutMacControlFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.OutMacPauseFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.OutMacPauseFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.InBlockErrors != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InBlockErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InCrcErrors != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InCrcErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.In_8021QFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.In_8021QFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InFragmentFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InFragmentFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InJabberFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InJabberFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InOversizeFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InOversizeFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InMacPauseFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InMacPauseFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InMacControlFrames != nil { + i = encodeVarintMib2DOc(dAtA, i, uint64(*m.InMacControlFrames)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintMib2DOc(dAtA []byte, offset int, v uint64) int { + offset -= sovMib2DOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesMib) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Subinterfaces != nil { + l = m.Subinterfaces.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Ethernet != nil { + l = m.Ethernet.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.HoldTime != nil { + l = m.HoldTime.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Mtu != nil { + n += 2 + sovMib2DOc(uint64(*m.Mtu)) + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.LoopbackMode != nil { + n += 3 + } + if m.Ifindex != nil { + n += 2 + sovMib2DOc(uint64(*m.Ifindex)) + } + if m.AdminStatus != nil { + l = len(*m.AdminStatus) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.OperStatus != nil { + l = len(*m.OperStatus) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.LastChange != nil { + n += 2 + sovMib2DOc(uint64(*m.LastChange)) + } + if m.Logical != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subinterface) > 0 { + for _, e := range m.Subinterface { + l = e.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovMib2DOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Ipv4 != nil { + l = m.Ipv4.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Ipv6 != nil { + l = m.Ipv6.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovMib2DOc(uint64(*m.Index)) + } + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.Ifindex != nil { + n += 2 + sovMib2DOc(uint64(*m.Ifindex)) + } + if m.AdminStatus != nil { + l = len(*m.AdminStatus) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.OperStatus != nil { + l = len(*m.OperStatus) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.LastChange != nil { + n += 2 + sovMib2DOc(uint64(*m.LastChange)) + } + if m.Logical != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Addresses != nil { + l = m.Addresses.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Unnumbered != nil { + l = m.Unnumbered.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, e := range m.Address { + l = e.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.PrefixLength != nil { + n += 2 + sovMib2DOc(uint64(*m.PrefixLength)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.LinkLayerAddress != nil { + l = len(*m.LinkLayerAddress) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.HostName != nil { + l = len(*m.HostName) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.TableId != nil { + n += 2 + sovMib2DOc(uint64(*m.TableId)) + } + if m.NeighborState != nil { + l = len(*m.NeighborState) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Expiry != nil { + n += 2 + sovMib2DOc(uint64(*m.Expiry)) + } + if m.IsPublish != nil { + n += 3 + } + if m.InterfaceName != nil { + l = len(*m.InterfaceName) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.LogicalRouterId != nil { + n += 2 + sovMib2DOc(uint64(*m.LogicalRouterId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovMib2DOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.Mtu != nil { + n += 2 + sovMib2DOc(uint64(*m.Mtu)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Addresses != nil { + l = m.Addresses.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Unnumbered != nil { + l = m.Unnumbered.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, e := range m.Address { + l = e.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.PrefixLength != nil { + n += 2 + sovMib2DOc(uint64(*m.PrefixLength)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.LinkLayerAddress != nil { + l = len(*m.LinkLayerAddress) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.IsRouter != nil { + n += 3 + } + if m.NeighborState != nil { + l = len(*m.NeighborState) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.TableId != nil { + n += 2 + sovMib2DOc(uint64(*m.TableId)) + } + if m.IsSecure != nil { + n += 3 + } + if m.IsPublish != nil { + n += 3 + } + if m.Expiry != nil { + n += 2 + sovMib2DOc(uint64(*m.Expiry)) + } + if m.InterfaceName != nil { + l = len(*m.InterfaceName) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.LogicalRouterId != nil { + n += 2 + sovMib2DOc(uint64(*m.LogicalRouterId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovMib2DOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.Mtu != nil { + n += 2 + sovMib2DOc(uint64(*m.Mtu)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListHoldTimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Up != nil { + n += 2 + sovMib2DOc(uint64(*m.Up)) + } + if m.Down != nil { + n += 2 + sovMib2DOc(uint64(*m.Down)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListEthernetType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MacAddress != nil { + l = len(*m.MacAddress) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.AutoNegotiate != nil { + n += 3 + } + if m.DuplexMode != nil { + l = len(*m.DuplexMode) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.PortSpeed != nil { + l = len(*m.PortSpeed) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.EnableFlowControl != nil { + n += 3 + } + if m.HwMacAddress != nil { + l = len(*m.HwMacAddress) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.NegotiatedDuplexMode != nil { + l = len(*m.NegotiatedDuplexMode) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.NegotiatedPortSpeed != nil { + l = len(*m.NegotiatedPortSpeed) + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovMib2DOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InMacControlFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.InMacControlFrames)) + } + if m.InMacPauseFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.InMacPauseFrames)) + } + if m.InOversizeFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.InOversizeFrames)) + } + if m.InJabberFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.InJabberFrames)) + } + if m.InFragmentFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.InFragmentFrames)) + } + if m.In_8021QFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.In_8021QFrames)) + } + if m.InCrcErrors != nil { + n += 2 + sovMib2DOc(uint64(*m.InCrcErrors)) + } + if m.InBlockErrors != nil { + n += 2 + sovMib2DOc(uint64(*m.InBlockErrors)) + } + if m.OutMacPauseFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.OutMacPauseFrames)) + } + if m.OutMacControlFrames != nil { + n += 2 + sovMib2DOc(uint64(*m.OutMacControlFrames)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovMib2DOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMib2DOc(x uint64) (n int) { + return sovMib2DOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesMib) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_mib: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_mib: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesMibInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subinterfaces == nil { + m.Subinterfaces = &InterfacesMibInterfaceListSubinterfacesType{} + } + if err := m.Subinterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ethernet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ethernet == nil { + m.Ethernet = &InterfacesMibInterfaceListEthernetType{} + } + if err := m.Ethernet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HoldTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HoldTime == nil { + m.HoldTime = &InterfacesMibInterfaceListHoldTimeType{} + } + if err := m.HoldTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mtu", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mtu = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LoopbackMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LoopbackMode = &b + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ifindex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ifindex = &v + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdminStatus = &s + iNdEx = postIndex + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperStatus = &s + iNdEx = postIndex + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastChange", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastChange = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Logical", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Logical = &b + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterface = append(m.Subinterface, &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList{}) + if err := m.Subinterface[len(m.Subinterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4 == nil { + m.Ipv4 = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type{} + } + if err := m.Ipv4.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6 == nil { + m.Ipv6 = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type{} + } + if err := m.Ipv6.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ifindex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ifindex = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdminStatus = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperStatus = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastChange", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastChange = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Logical", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Logical = &b + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Addresses == nil { + m.Addresses = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType{} + } + if err := m.Addresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unnumbered", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Unnumbered == nil { + m.Unnumbered = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType{} + } + if err := m.Unnumbered.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList{}) + if err := m.Address[len(m.Address)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLength", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PrefixLength = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkLayerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkLayerAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HostName = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableId = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborState = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Expiry = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPublish", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsPublish = &b + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceName = &s + iNdEx = postIndex + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogicalRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LogicalRouterId = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unnumbered_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unnumbered_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeUnnumberedTypeInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mtu", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mtu = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Addresses == nil { + m.Addresses = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType{} + } + if err := m.Addresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unnumbered", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Unnumbered == nil { + m.Unnumbered = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType{} + } + if err := m.Unnumbered.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList{}) + if err := m.Address[len(m.Address)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLength", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PrefixLength = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkLayerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkLayerAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsRouter", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsRouter = &b + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborState = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TableId = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsSecure", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsSecure = &b + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPublish", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsPublish = &b + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Expiry = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceName = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogicalRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LogicalRouterId = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unnumbered_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unnumbered_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeUnnumberedTypeInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mtu", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mtu = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListHoldTimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hold_time_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hold_time_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListHoldTimeTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListHoldTimeTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Up", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Up = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Down", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Down = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListEthernetType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ethernet_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ethernet_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesMibInterfaceListEthernetTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListEthernetTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MacAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MacAddress = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoNegotiate", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AutoNegotiate = &b + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DuplexMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DuplexMode = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortSpeed", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PortSpeed = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableFlowControl", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.EnableFlowControl = &b + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HwMacAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HwMacAddress = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NegotiatedDuplexMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NegotiatedDuplexMode = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NegotiatedPortSpeed", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NegotiatedPortSpeed = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMib2DOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMib2DOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &InterfacesMibInterfaceListEthernetTypeStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesMibInterfaceListEthernetTypeStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMacControlFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMacControlFrames = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMacPauseFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMacPauseFrames = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOversizeFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOversizeFrames = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InJabberFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InJabberFrames = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFragmentFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFragmentFrames = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field In_8021QFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.In_8021QFrames = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InCrcErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InCrcErrors = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InBlockErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InBlockErrors = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMacPauseFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMacPauseFrames = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMacControlFrames", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMacControlFrames = &v + default: + iNdEx = preIndex + skippy, err := skipMib2DOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMib2DOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMib2DOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMib2DOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMib2DOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMib2DOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMib2DOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMib2DOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMib2DOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMib2DOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/mib2d_oc.proto b/schema/mib2d_oc.proto new file mode 100755 index 0000000..af9de99 --- /dev/null +++ b/schema/mib2d_oc.proto @@ -0,0 +1,196 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_mib jnpr_interfaces_mib_ext = 55; +} + +message interfaces_mib { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional string type = 52; + optional uint32 mtu = 53; + optional bool loopback_mode = 56; + optional string description = 54; + optional bool enabled = 55; + optional uint32 ifindex = 61; + optional string admin_status = 62; + optional string oper_status = 63; + optional uint64 last_change = 64; + optional bool logical = 65; + } + optional subinterfaces_type subinterfaces = 152; + message subinterfaces_type { + message subinterface_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 index = 51; + optional string description = 53; + optional bool enabled = 54; + optional string name = 52; + optional uint32 ifindex = 55; + optional string admin_status = 56; + optional string oper_status = 57; + optional uint64 last_change = 58; + optional bool logical = 65; + } + optional ipv4_type ipv4 = 152; + message ipv4_type { + optional addresses_type addresses = 151; + message addresses_type { + message address_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string ip = 51; + optional uint32 prefix_length = 52; + optional string origin = 53; + } + } + repeated address_list address = 151; + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string ip = 51; + optional string link_layer_address = 52; + optional string origin = 53; + optional string host_name = 54; + optional uint32 table_id = 55; + optional string neighbor_state = 56; + optional uint32 expiry = 57; + optional bool is_publish = 58; + optional string interface_name = 59; + optional uint32 logical_router_id = 60; + } + } + repeated neighbor_list neighbor = 151; + } + optional unnumbered_type unnumbered = 153; + message unnumbered_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + } + optional state_type state = 154; + message state_type { + optional bool enabled = 51; + optional uint32 mtu = 52; + } + } + optional ipv6_type ipv6 = 153; + message ipv6_type { + optional addresses_type addresses = 151; + message addresses_type { + message address_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string ip = 51; + optional uint32 prefix_length = 52; + optional string origin = 53; + optional string status = 54; + } + } + repeated address_list address = 151; + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string ip = 51; + optional string link_layer_address = 52; + optional string origin = 53; + optional bool is_router = 54; + optional string neighbor_state = 55; + optional uint32 table_id = 56; + optional bool is_secure = 57; + optional uint32 expiry = 59; + optional bool is_publish = 58; + optional string interface_name = 60; + optional uint32 logical_router_id = 61; + } + } + repeated neighbor_list neighbor = 151; + } + optional unnumbered_type unnumbered = 153; + message unnumbered_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + } + optional state_type state = 154; + message state_type { + optional bool enabled = 51; + optional uint32 mtu = 52; + } + } + } + repeated subinterface_list subinterface = 151; + } + optional hold_time_type hold_time = 155; + message hold_time_type { + optional state_type state = 151; + message state_type { + optional uint32 up = 51; + optional uint32 down = 52; + } + } + optional ethernet_type ethernet = 153; + message ethernet_type { + optional state_type state = 151; + message state_type { + optional string mac_address = 51; + optional bool auto_negotiate = 52; + optional string duplex_mode = 53; + optional string port_speed = 54; + optional bool enable_flow_control = 55; + optional string hw_mac_address = 56; + optional string negotiated_duplex_mode = 57; + optional string negotiated_port_speed = 58; + optional counters_type counters = 151; + message counters_type { + optional uint64 in_mac_control_frames = 51; + optional uint64 in_mac_pause_frames = 52; + optional uint64 in_oversize_frames = 53; + optional uint64 in_jabber_frames = 54; + optional uint64 in_fragment_frames = 55; + optional uint64 in_8021q_frames = 56; + optional uint64 in_crc_errors = 57; + optional uint64 in_block_errors = 58; + optional uint64 out_mac_control_frames = 60; + optional uint64 out_mac_pause_frames = 59; + } + } + } + } + repeated interface_list interface = 151; +} diff --git a/schema/npu_memory_utilization.pb.go b/schema/npu_memory_utilization.pb.go new file mode 100644 index 0000000..ca41b81 --- /dev/null +++ b/schema/npu_memory_utilization.pb.go @@ -0,0 +1,1342 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: npu_memory_utilization.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Top level message NetworkProcessorMemoryUtilization +type NetworkProcessorMemoryUtilization struct { + MemoryStats []*NpuMemory `protobuf:"bytes,1,rep,name=memory_stats,json=memoryStats" json:"memory_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkProcessorMemoryUtilization) Reset() { *m = NetworkProcessorMemoryUtilization{} } +func (m *NetworkProcessorMemoryUtilization) String() string { return proto.CompactTextString(m) } +func (*NetworkProcessorMemoryUtilization) ProtoMessage() {} +func (*NetworkProcessorMemoryUtilization) Descriptor() ([]byte, []int) { + return fileDescriptor_1c2c00ab8118d5b6, []int{0} +} +func (m *NetworkProcessorMemoryUtilization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkProcessorMemoryUtilization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkProcessorMemoryUtilization.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkProcessorMemoryUtilization) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkProcessorMemoryUtilization.Merge(m, src) +} +func (m *NetworkProcessorMemoryUtilization) XXX_Size() int { + return m.Size() +} +func (m *NetworkProcessorMemoryUtilization) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkProcessorMemoryUtilization.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkProcessorMemoryUtilization proto.InternalMessageInfo + +func (m *NetworkProcessorMemoryUtilization) GetMemoryStats() []*NpuMemory { + if m != nil { + return m.MemoryStats + } + return nil +} + +// Message that describes the memory utilization for each Network Processor +type NpuMemory struct { + // Globally unique identifier for an NPU. This is of the form + // "FPCX:NPUY", where X is the slot number of the line card and Y + // is the index of the NPU on the linecard + Identifier *string `protobuf:"bytes,1,req,name=identifier" json:"identifier,omitempty"` + // NPU memory utilization statistics for different NPU memory types + Summary []*NpuMemorySummary `protobuf:"bytes,2,rep,name=summary" json:"summary,omitempty"` + // NPU memory utilization statistics for different NPU memory partitions + Partition []*NpuMemoryPartition `protobuf:"bytes,3,rep,name=partition" json:"partition,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NpuMemory) Reset() { *m = NpuMemory{} } +func (m *NpuMemory) String() string { return proto.CompactTextString(m) } +func (*NpuMemory) ProtoMessage() {} +func (*NpuMemory) Descriptor() ([]byte, []int) { + return fileDescriptor_1c2c00ab8118d5b6, []int{1} +} +func (m *NpuMemory) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NpuMemory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NpuMemory.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NpuMemory) XXX_Merge(src proto.Message) { + xxx_messageInfo_NpuMemory.Merge(m, src) +} +func (m *NpuMemory) XXX_Size() int { + return m.Size() +} +func (m *NpuMemory) XXX_DiscardUnknown() { + xxx_messageInfo_NpuMemory.DiscardUnknown(m) +} + +var xxx_messageInfo_NpuMemory proto.InternalMessageInfo + +func (m *NpuMemory) GetIdentifier() string { + if m != nil && m.Identifier != nil { + return *m.Identifier + } + return "" +} + +func (m *NpuMemory) GetSummary() []*NpuMemorySummary { + if m != nil { + return m.Summary + } + return nil +} + +func (m *NpuMemory) GetPartition() []*NpuMemoryPartition { + if m != nil { + return m.Partition + } + return nil +} + +// Summary of NPU memory utilization for each type of memory +type NpuMemorySummary struct { + // Name of the partition. + ResourceName *string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName" json:"resource_name,omitempty"` + // Maximum memory size in bytes + Size_ *uint64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` + // How much memory is used up + Allocated *uint64 `protobuf:"varint,3,opt,name=allocated" json:"allocated,omitempty"` + // Utilization in percent + Utilization *int32 `protobuf:"varint,4,opt,name=utilization" json:"utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NpuMemorySummary) Reset() { *m = NpuMemorySummary{} } +func (m *NpuMemorySummary) String() string { return proto.CompactTextString(m) } +func (*NpuMemorySummary) ProtoMessage() {} +func (*NpuMemorySummary) Descriptor() ([]byte, []int) { + return fileDescriptor_1c2c00ab8118d5b6, []int{2} +} +func (m *NpuMemorySummary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NpuMemorySummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NpuMemorySummary.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NpuMemorySummary) XXX_Merge(src proto.Message) { + xxx_messageInfo_NpuMemorySummary.Merge(m, src) +} +func (m *NpuMemorySummary) XXX_Size() int { + return m.Size() +} +func (m *NpuMemorySummary) XXX_DiscardUnknown() { + xxx_messageInfo_NpuMemorySummary.DiscardUnknown(m) +} + +var xxx_messageInfo_NpuMemorySummary proto.InternalMessageInfo + +func (m *NpuMemorySummary) GetResourceName() string { + if m != nil && m.ResourceName != nil { + return *m.ResourceName + } + return "" +} + +func (m *NpuMemorySummary) GetSize_() uint64 { + if m != nil && m.Size_ != nil { + return *m.Size_ + } + return 0 +} + +func (m *NpuMemorySummary) GetAllocated() uint64 { + if m != nil && m.Allocated != nil { + return *m.Allocated + } + return 0 +} + +func (m *NpuMemorySummary) GetUtilization() int32 { + if m != nil && m.Utilization != nil { + return *m.Utilization + } + return 0 +} + +// A set of detailed stats for NPU memory partition +type NpuMemoryPartition struct { + // NPU memory Partition name + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // Name of the Application for which npu memory is allocated + ApplicationName *string `protobuf:"bytes,2,opt,name=application_name,json=applicationName" json:"application_name,omitempty"` + // Number of bytes allocated for the application + BytesAllocated *uint32 `protobuf:"varint,3,opt,name=bytes_allocated,json=bytesAllocated" json:"bytes_allocated,omitempty"` + // number of allocations for the application + AllocationCount *uint32 `protobuf:"varint,4,opt,name=allocation_count,json=allocationCount" json:"allocation_count,omitempty"` + // number of frees for the application + FreeCount *uint32 `protobuf:"varint,5,opt,name=free_count,json=freeCount" json:"free_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NpuMemoryPartition) Reset() { *m = NpuMemoryPartition{} } +func (m *NpuMemoryPartition) String() string { return proto.CompactTextString(m) } +func (*NpuMemoryPartition) ProtoMessage() {} +func (*NpuMemoryPartition) Descriptor() ([]byte, []int) { + return fileDescriptor_1c2c00ab8118d5b6, []int{3} +} +func (m *NpuMemoryPartition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NpuMemoryPartition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NpuMemoryPartition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NpuMemoryPartition) XXX_Merge(src proto.Message) { + xxx_messageInfo_NpuMemoryPartition.Merge(m, src) +} +func (m *NpuMemoryPartition) XXX_Size() int { + return m.Size() +} +func (m *NpuMemoryPartition) XXX_DiscardUnknown() { + xxx_messageInfo_NpuMemoryPartition.DiscardUnknown(m) +} + +var xxx_messageInfo_NpuMemoryPartition proto.InternalMessageInfo + +func (m *NpuMemoryPartition) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NpuMemoryPartition) GetApplicationName() string { + if m != nil && m.ApplicationName != nil { + return *m.ApplicationName + } + return "" +} + +func (m *NpuMemoryPartition) GetBytesAllocated() uint32 { + if m != nil && m.BytesAllocated != nil { + return *m.BytesAllocated + } + return 0 +} + +func (m *NpuMemoryPartition) GetAllocationCount() uint32 { + if m != nil && m.AllocationCount != nil { + return *m.AllocationCount + } + return 0 +} + +func (m *NpuMemoryPartition) GetFreeCount() uint32 { + if m != nil && m.FreeCount != nil { + return *m.FreeCount + } + return 0 +} + +var E_NpuMemoryExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkProcessorMemoryUtilization)(nil), + Field: 11, + Name: "npu_memory_ext", + Tag: "bytes,11,opt,name=npu_memory_ext", + Filename: "npu_memory_utilization.proto", +} + +func init() { + proto.RegisterType((*NetworkProcessorMemoryUtilization)(nil), "NetworkProcessorMemoryUtilization") + proto.RegisterType((*NpuMemory)(nil), "NpuMemory") + proto.RegisterType((*NpuMemorySummary)(nil), "NpuMemorySummary") + proto.RegisterType((*NpuMemoryPartition)(nil), "NpuMemoryPartition") + proto.RegisterExtension(E_NpuMemoryExt) +} + +func init() { proto.RegisterFile("npu_memory_utilization.proto", fileDescriptor_1c2c00ab8118d5b6) } + +var fileDescriptor_1c2c00ab8118d5b6 = []byte{ + // 480 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x8e, 0xd3, 0x3c, + 0x14, 0x85, 0xe5, 0xb6, 0xa3, 0x5f, 0x71, 0xda, 0xe9, 0xfc, 0x9e, 0x05, 0x11, 0x1a, 0xaa, 0x50, + 0x16, 0x04, 0xa1, 0x26, 0x62, 0x96, 0xec, 0x00, 0xb1, 0x41, 0xa2, 0x1a, 0xb9, 0x62, 0xc3, 0x26, + 0xb8, 0xe9, 0x9d, 0xd6, 0x9d, 0xc4, 0x8e, 0xec, 0x1b, 0x98, 0xce, 0x2b, 0xf0, 0x5e, 0x88, 0x25, + 0x8f, 0x80, 0xfa, 0x24, 0x28, 0x4e, 0x3b, 0x09, 0xb0, 0x60, 0x67, 0x7f, 0xe7, 0xf8, 0xf8, 0xe8, + 0xea, 0xd2, 0x0b, 0x55, 0x56, 0x69, 0x01, 0x85, 0x36, 0xbb, 0xb4, 0x42, 0x99, 0xcb, 0x3b, 0x81, + 0x52, 0xab, 0xb8, 0x34, 0x1a, 0xf5, 0xc3, 0x73, 0x84, 0x1c, 0x0a, 0x40, 0xb3, 0x4b, 0x51, 0x97, + 0x0d, 0x9c, 0x72, 0xfa, 0x78, 0x0e, 0xf8, 0x45, 0x9b, 0x9b, 0x2b, 0xa3, 0x33, 0xb0, 0x56, 0x9b, + 0xf7, 0x2e, 0xe0, 0x43, 0xfb, 0x9e, 0xcd, 0xe8, 0xf0, 0x90, 0x6a, 0x51, 0xa0, 0x0d, 0x48, 0xd8, + 0x8f, 0xfc, 0x4b, 0x1a, 0xcf, 0xcb, 0xaa, 0x31, 0x73, 0xbf, 0xd1, 0x17, 0xb5, 0x3c, 0xfd, 0x4a, + 0xa8, 0x77, 0x2f, 0xb1, 0x09, 0xa5, 0x72, 0x05, 0x0a, 0xe5, 0xb5, 0x04, 0x13, 0x90, 0xb0, 0x17, + 0x79, 0xbc, 0x43, 0xd8, 0x73, 0xfa, 0x9f, 0xad, 0x8a, 0x42, 0x98, 0x5d, 0xd0, 0x73, 0xb9, 0xff, + 0xb7, 0xb9, 0x8b, 0x46, 0xe0, 0x47, 0x07, 0x7b, 0x41, 0xbd, 0x52, 0x18, 0x94, 0x75, 0xad, 0xa0, + 0xef, 0xec, 0xe7, 0xad, 0xfd, 0xea, 0x28, 0xf1, 0xd6, 0x55, 0xb7, 0x39, 0xfb, 0x33, 0x90, 0x3d, + 0xa1, 0x23, 0x03, 0x56, 0x57, 0x26, 0x83, 0x54, 0x89, 0x02, 0x02, 0x12, 0x92, 0xc8, 0xe3, 0xc3, + 0x23, 0x9c, 0x8b, 0x02, 0x18, 0xa3, 0x03, 0x2b, 0xef, 0x20, 0xe8, 0x85, 0x24, 0x1a, 0x70, 0x77, + 0x66, 0x17, 0xd4, 0x13, 0x79, 0xae, 0x33, 0x81, 0xb0, 0x0a, 0xfa, 0x4e, 0x68, 0x01, 0x0b, 0xa9, + 0xdf, 0x99, 0x7b, 0x30, 0x08, 0x49, 0x74, 0xc2, 0xbb, 0x68, 0xfa, 0x8d, 0x50, 0xf6, 0x77, 0xdf, + 0xfa, 0xab, 0x4e, 0x0d, 0x77, 0x66, 0xcf, 0xe8, 0x99, 0x28, 0xcb, 0x5c, 0x66, 0xee, 0x65, 0x53, + 0xb3, 0xe7, 0xf4, 0x71, 0x87, 0xbb, 0xa6, 0x4f, 0xe9, 0x78, 0xb9, 0x43, 0xb0, 0xe9, 0xef, 0xdd, + 0x46, 0xfc, 0xd4, 0xe1, 0x57, 0xf7, 0x05, 0xeb, 0xcc, 0xe6, 0x52, 0x47, 0x66, 0xba, 0x52, 0xe8, + 0x5a, 0x8e, 0xf8, 0xb8, 0xe5, 0x6f, 0x6a, 0xcc, 0x1e, 0x51, 0x7a, 0x6d, 0x00, 0x0e, 0xa6, 0x13, + 0x67, 0xf2, 0x6a, 0xe2, 0xe4, 0x97, 0x82, 0x9e, 0x76, 0xb6, 0x0d, 0x6e, 0x91, 0x3d, 0x88, 0xdf, + 0x55, 0x4a, 0x96, 0x60, 0x0e, 0x0b, 0x65, 0x17, 0xa0, 0xac, 0x36, 0x36, 0xf0, 0x43, 0x12, 0xf9, + 0x97, 0xd3, 0xf8, 0x9f, 0x8b, 0xc6, 0x87, 0xea, 0x38, 0x9a, 0xb7, 0xb7, 0xf8, 0xfa, 0xd3, 0xf7, + 0xfd, 0x84, 0xfc, 0xd8, 0x4f, 0xc8, 0xcf, 0xfd, 0x84, 0x7c, 0xe4, 0x6b, 0x89, 0xf1, 0xb6, 0xf9, + 0x21, 0x56, 0x80, 0x89, 0xcc, 0x60, 0x09, 0x66, 0x9d, 0x6c, 0x40, 0xe4, 0xb8, 0x59, 0x6a, 0x9c, + 0x49, 0xb5, 0x06, 0x8b, 0xb3, 0x2d, 0xca, 0x99, 0x12, 0x28, 0x3f, 0x43, 0x52, 0xde, 0xac, 0x93, + 0x2d, 0xca, 0x44, 0xac, 0x44, 0x89, 0x60, 0x6c, 0x92, 0x6e, 0x2b, 0xa5, 0x6d, 0x62, 0xb3, 0x0d, + 0x14, 0xe2, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0x77, 0x97, 0x18, 0x31, 0x03, 0x00, 0x00, +} + +func (m *NetworkProcessorMemoryUtilization) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkProcessorMemoryUtilization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkProcessorMemoryUtilization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.MemoryStats) > 0 { + for iNdEx := len(m.MemoryStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MemoryStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NpuMemory) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NpuMemory) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NpuMemory) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Partition) > 0 { + for iNdEx := len(m.Partition) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Partition[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Summary) > 0 { + for iNdEx := len(m.Summary) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Summary[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.Identifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("identifier") + } else { + i -= len(*m.Identifier) + copy(dAtA[i:], *m.Identifier) + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(len(*m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NpuMemorySummary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NpuMemorySummary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NpuMemorySummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Utilization != nil { + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(*m.Utilization)) + i-- + dAtA[i] = 0x20 + } + if m.Allocated != nil { + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(*m.Allocated)) + i-- + dAtA[i] = 0x18 + } + if m.Size_ != nil { + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(*m.Size_)) + i-- + dAtA[i] = 0x10 + } + if m.ResourceName != nil { + i -= len(*m.ResourceName) + copy(dAtA[i:], *m.ResourceName) + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(len(*m.ResourceName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NpuMemoryPartition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NpuMemoryPartition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NpuMemoryPartition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FreeCount != nil { + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(*m.FreeCount)) + i-- + dAtA[i] = 0x28 + } + if m.AllocationCount != nil { + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(*m.AllocationCount)) + i-- + dAtA[i] = 0x20 + } + if m.BytesAllocated != nil { + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(*m.BytesAllocated)) + i-- + dAtA[i] = 0x18 + } + if m.ApplicationName != nil { + i -= len(*m.ApplicationName) + copy(dAtA[i:], *m.ApplicationName) + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(len(*m.ApplicationName))) + i-- + dAtA[i] = 0x12 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintNpuMemoryUtilization(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNpuMemoryUtilization(dAtA []byte, offset int, v uint64) int { + offset -= sovNpuMemoryUtilization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkProcessorMemoryUtilization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MemoryStats) > 0 { + for _, e := range m.MemoryStats { + l = e.Size() + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NpuMemory) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Identifier != nil { + l = len(*m.Identifier) + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + if len(m.Summary) > 0 { + for _, e := range m.Summary { + l = e.Size() + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + } + if len(m.Partition) > 0 { + for _, e := range m.Partition { + l = e.Size() + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NpuMemorySummary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResourceName != nil { + l = len(*m.ResourceName) + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + if m.Size_ != nil { + n += 1 + sovNpuMemoryUtilization(uint64(*m.Size_)) + } + if m.Allocated != nil { + n += 1 + sovNpuMemoryUtilization(uint64(*m.Allocated)) + } + if m.Utilization != nil { + n += 1 + sovNpuMemoryUtilization(uint64(*m.Utilization)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NpuMemoryPartition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + if m.ApplicationName != nil { + l = len(*m.ApplicationName) + n += 1 + l + sovNpuMemoryUtilization(uint64(l)) + } + if m.BytesAllocated != nil { + n += 1 + sovNpuMemoryUtilization(uint64(*m.BytesAllocated)) + } + if m.AllocationCount != nil { + n += 1 + sovNpuMemoryUtilization(uint64(*m.AllocationCount)) + } + if m.FreeCount != nil { + n += 1 + sovNpuMemoryUtilization(uint64(*m.FreeCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovNpuMemoryUtilization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNpuMemoryUtilization(x uint64) (n int) { + return sovNpuMemoryUtilization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkProcessorMemoryUtilization) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkProcessorMemoryUtilization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkProcessorMemoryUtilization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MemoryStats = append(m.MemoryStats, &NpuMemory{}) + if err := m.MemoryStats[len(m.MemoryStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NpuMemory) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NpuMemory: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NpuMemory: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Identifier = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Summary", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Summary = append(m.Summary, &NpuMemorySummary{}) + if err := m.Summary[len(m.Summary)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Partition = append(m.Partition, &NpuMemoryPartition{}) + if err := m.Partition[len(m.Partition)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("identifier") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NpuMemorySummary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NpuMemorySummary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NpuMemorySummary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ResourceName = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Size_ = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Allocated = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Utilization = &v + default: + iNdEx = preIndex + skippy, err := skipNpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NpuMemoryPartition) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NpuMemoryPartition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NpuMemoryPartition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplicationName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ApplicationName = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesAllocated", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BytesAllocated = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocationCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllocationCount = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FreeCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FreeCount = &v + default: + iNdEx = preIndex + skippy, err := skipNpuMemoryUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuMemoryUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNpuMemoryUtilization(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNpuMemoryUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthNpuMemoryUtilization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNpuMemoryUtilization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNpuMemoryUtilization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNpuMemoryUtilization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNpuMemoryUtilization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNpuMemoryUtilization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/npu_memory_utilization.proto b/schema/npu_memory_utilization.proto new file mode 100755 index 0000000..99fbc4a --- /dev/null +++ b/schema/npu_memory_utilization.proto @@ -0,0 +1,102 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Chandresh Bhise, Rajesh Pillai, 2016 +// +// This defines the gpb message format used by the npu memory utilization sensor +// +// The top level message is NetworkProcessorMemoryUtilization +// The message gives the Memory utilization summary for each NPU memory and +// per application based NPU memory utilization +// +// +// Version 1.0 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 11 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional NetworkProcessorMemoryUtilization npu_memory_ext = 11; +} + +// Top level message NetworkProcessorMemoryUtilization +message NetworkProcessorMemoryUtilization { + repeated NpuMemory memory_stats = 1; +} + +// Message that describes the memory utilization for each Network Processor +message NpuMemory { + // Globally unique identifier for an NPU. This is of the form + // "FPCX:NPUY", where X is the slot number of the line card and Y + // is the index of the NPU on the linecard + required string identifier = 1; + + // NPU memory utilization statistics for different NPU memory types + repeated NpuMemorySummary summary = 2; + + // NPU memory utilization statistics for different NPU memory partitions + repeated NpuMemoryPartition partition = 3; +} + +// Summary of NPU memory utilization for each type of memory +message NpuMemorySummary { + // Name of the partition. + optional string resource_name = 1; + + // Maximum memory size in bytes + optional uint64 size = 2; + + // How much memory is used up + optional uint64 allocated = 3; + + // Utilization in percent + optional int32 utilization = 4; +} + +// A set of detailed stats for NPU memory partition +message NpuMemoryPartition{ + // NPU memory Partition name + optional string name = 1; + + // Name of the Application for which npu memory is allocated + optional string application_name = 2 ; + + // Number of bytes allocated for the application + optional uint32 bytes_allocated = 3; + + // number of allocations for the application + optional uint32 allocation_count = 4; + + // number of frees for the application + optional uint32 free_count = 5; +} + + + diff --git a/schema/npu_utilization.pb.go b/schema/npu_utilization.pb.go new file mode 100644 index 0000000..2d10d6e --- /dev/null +++ b/schema/npu_utilization.pb.go @@ -0,0 +1,1483 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: npu_utilization.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Top level message +type NetworkProcessorUtilization struct { + NpuUtilStats []*Utilization `protobuf:"bytes,1,rep,name=npu_util_stats,json=npuUtilStats" json:"npu_util_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkProcessorUtilization) Reset() { *m = NetworkProcessorUtilization{} } +func (m *NetworkProcessorUtilization) String() string { return proto.CompactTextString(m) } +func (*NetworkProcessorUtilization) ProtoMessage() {} +func (*NetworkProcessorUtilization) Descriptor() ([]byte, []int) { + return fileDescriptor_28cd2a2be506ec89, []int{0} +} +func (m *NetworkProcessorUtilization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkProcessorUtilization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkProcessorUtilization.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkProcessorUtilization) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkProcessorUtilization.Merge(m, src) +} +func (m *NetworkProcessorUtilization) XXX_Size() int { + return m.Size() +} +func (m *NetworkProcessorUtilization) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkProcessorUtilization.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkProcessorUtilization proto.InternalMessageInfo + +func (m *NetworkProcessorUtilization) GetNpuUtilStats() []*Utilization { + if m != nil { + return m.NpuUtilStats + } + return nil +} + +// Utilization per Network Processor +type Utilization struct { + // Globally unique identifier for an NPU. This is of the form + // FPCX:NPUY, where X is the slot number of the linecard and Y + // is the index of the NPU on the linecard + Identifier *string `protobuf:"bytes,1,req,name=identifier" json:"identifier,omitempty"` + // A number on a scale of 0-100 that indicates the busyness of + // an NPU. This is an approximation as the utilization depends + // on the busyness of several internal components of the NPU + Utilization *uint32 `protobuf:"varint,2,opt,name=utilization" json:"utilization,omitempty"` + // Offered Packet load on the NPU. + Packets []*PacketLoad `protobuf:"bytes,3,rep,name=packets" json:"packets,omitempty"` + // Utilization of various internal memories of the NPU. + Memory []*MemoryLoad `protobuf:"bytes,4,rep,name=memory" json:"memory,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Utilization) Reset() { *m = Utilization{} } +func (m *Utilization) String() string { return proto.CompactTextString(m) } +func (*Utilization) ProtoMessage() {} +func (*Utilization) Descriptor() ([]byte, []int) { + return fileDescriptor_28cd2a2be506ec89, []int{1} +} +func (m *Utilization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Utilization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Utilization.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Utilization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Utilization.Merge(m, src) +} +func (m *Utilization) XXX_Size() int { + return m.Size() +} +func (m *Utilization) XXX_DiscardUnknown() { + xxx_messageInfo_Utilization.DiscardUnknown(m) +} + +var xxx_messageInfo_Utilization proto.InternalMessageInfo + +func (m *Utilization) GetIdentifier() string { + if m != nil && m.Identifier != nil { + return *m.Identifier + } + return "" +} + +func (m *Utilization) GetUtilization() uint32 { + if m != nil && m.Utilization != nil { + return *m.Utilization + } + return 0 +} + +func (m *Utilization) GetPackets() []*PacketLoad { + if m != nil { + return m.Packets + } + return nil +} + +func (m *Utilization) GetMemory() []*MemoryLoad { + if m != nil { + return m.Memory + } + return nil +} + +// Load on a memory subsystem of the NPU +type MemoryLoad struct { + // A name string to identify the particular memory subsystem + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // Various memory utilization metrics + AverageUtil *uint32 `protobuf:"varint,2,opt,name=average_util,json=averageUtil" json:"average_util,omitempty"` + HighestUtil *uint32 `protobuf:"varint,3,opt,name=highest_util,json=highestUtil" json:"highest_util,omitempty"` + LowestUtil *uint32 `protobuf:"varint,4,opt,name=lowest_util,json=lowestUtil" json:"lowest_util,omitempty"` + // Each memory is front ended by a cache. The following metrics + // indicate how these caches are working + AverageCacheHitRate *uint32 `protobuf:"varint,5,opt,name=average_cache_hit_rate,json=averageCacheHitRate" json:"average_cache_hit_rate,omitempty"` + HighestCacheHitRate *uint32 `protobuf:"varint,6,opt,name=highest_cache_hit_rate,json=highestCacheHitRate" json:"highest_cache_hit_rate,omitempty"` + LowestCacheHitRate *uint32 `protobuf:"varint,7,opt,name=lowest_cache_hit_rate,json=lowestCacheHitRate" json:"lowest_cache_hit_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MemoryLoad) Reset() { *m = MemoryLoad{} } +func (m *MemoryLoad) String() string { return proto.CompactTextString(m) } +func (*MemoryLoad) ProtoMessage() {} +func (*MemoryLoad) Descriptor() ([]byte, []int) { + return fileDescriptor_28cd2a2be506ec89, []int{2} +} +func (m *MemoryLoad) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MemoryLoad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MemoryLoad.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MemoryLoad) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemoryLoad.Merge(m, src) +} +func (m *MemoryLoad) XXX_Size() int { + return m.Size() +} +func (m *MemoryLoad) XXX_DiscardUnknown() { + xxx_messageInfo_MemoryLoad.DiscardUnknown(m) +} + +var xxx_messageInfo_MemoryLoad proto.InternalMessageInfo + +func (m *MemoryLoad) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *MemoryLoad) GetAverageUtil() uint32 { + if m != nil && m.AverageUtil != nil { + return *m.AverageUtil + } + return 0 +} + +func (m *MemoryLoad) GetHighestUtil() uint32 { + if m != nil && m.HighestUtil != nil { + return *m.HighestUtil + } + return 0 +} + +func (m *MemoryLoad) GetLowestUtil() uint32 { + if m != nil && m.LowestUtil != nil { + return *m.LowestUtil + } + return 0 +} + +func (m *MemoryLoad) GetAverageCacheHitRate() uint32 { + if m != nil && m.AverageCacheHitRate != nil { + return *m.AverageCacheHitRate + } + return 0 +} + +func (m *MemoryLoad) GetHighestCacheHitRate() uint32 { + if m != nil && m.HighestCacheHitRate != nil { + return *m.HighestCacheHitRate + } + return 0 +} + +func (m *MemoryLoad) GetLowestCacheHitRate() uint32 { + if m != nil && m.LowestCacheHitRate != nil { + return *m.LowestCacheHitRate + } + return 0 +} + +// Offered packet load on an internal subsystem of the NPU +type PacketLoad struct { + // Each internal subsystem of the NPU has a name + Identifier *string `protobuf:"bytes,1,req,name=identifier" json:"identifier,omitempty"` + // Rate of packets received + Rate *uint64 `protobuf:"varint,2,opt,name=rate" json:"rate,omitempty"` + // The following metrics indicate the compute load on the NPU + AverageInstructionsPerPacket *uint32 `protobuf:"varint,3,opt,name=average_instructions_per_packet,json=averageInstructionsPerPacket" json:"average_instructions_per_packet,omitempty"` + AverageWaitCyclesPerPacket *uint32 `protobuf:"varint,4,opt,name=average_wait_cycles_per_packet,json=averageWaitCyclesPerPacket" json:"average_wait_cycles_per_packet,omitempty"` + AverageCyclesPerPacket *uint32 `protobuf:"varint,5,opt,name=average_cycles_per_packet,json=averageCyclesPerPacket" json:"average_cycles_per_packet,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PacketLoad) Reset() { *m = PacketLoad{} } +func (m *PacketLoad) String() string { return proto.CompactTextString(m) } +func (*PacketLoad) ProtoMessage() {} +func (*PacketLoad) Descriptor() ([]byte, []int) { + return fileDescriptor_28cd2a2be506ec89, []int{3} +} +func (m *PacketLoad) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PacketLoad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PacketLoad.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PacketLoad) XXX_Merge(src proto.Message) { + xxx_messageInfo_PacketLoad.Merge(m, src) +} +func (m *PacketLoad) XXX_Size() int { + return m.Size() +} +func (m *PacketLoad) XXX_DiscardUnknown() { + xxx_messageInfo_PacketLoad.DiscardUnknown(m) +} + +var xxx_messageInfo_PacketLoad proto.InternalMessageInfo + +func (m *PacketLoad) GetIdentifier() string { + if m != nil && m.Identifier != nil { + return *m.Identifier + } + return "" +} + +func (m *PacketLoad) GetRate() uint64 { + if m != nil && m.Rate != nil { + return *m.Rate + } + return 0 +} + +func (m *PacketLoad) GetAverageInstructionsPerPacket() uint32 { + if m != nil && m.AverageInstructionsPerPacket != nil { + return *m.AverageInstructionsPerPacket + } + return 0 +} + +func (m *PacketLoad) GetAverageWaitCyclesPerPacket() uint32 { + if m != nil && m.AverageWaitCyclesPerPacket != nil { + return *m.AverageWaitCyclesPerPacket + } + return 0 +} + +func (m *PacketLoad) GetAverageCyclesPerPacket() uint32 { + if m != nil && m.AverageCyclesPerPacket != nil { + return *m.AverageCyclesPerPacket + } + return 0 +} + +var E_JnprNpuUtilizationExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkProcessorUtilization)(nil), + Field: 12, + Name: "jnpr_npu_utilization_ext", + Tag: "bytes,12,opt,name=jnpr_npu_utilization_ext", + Filename: "npu_utilization.proto", +} + +func init() { + proto.RegisterType((*NetworkProcessorUtilization)(nil), "NetworkProcessorUtilization") + proto.RegisterType((*Utilization)(nil), "Utilization") + proto.RegisterType((*MemoryLoad)(nil), "MemoryLoad") + proto.RegisterType((*PacketLoad)(nil), "PacketLoad") + proto.RegisterExtension(E_JnprNpuUtilizationExt) +} + +func init() { proto.RegisterFile("npu_utilization.proto", fileDescriptor_28cd2a2be506ec89) } + +var fileDescriptor_28cd2a2be506ec89 = []byte{ + // 555 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xe5, 0x34, 0xb4, 0xea, 0x24, 0x70, 0xd8, 0xaa, 0x60, 0x4a, 0x95, 0x86, 0x20, 0xa4, + 0x5c, 0x6a, 0x8b, 0x72, 0x82, 0x63, 0xab, 0x4a, 0x80, 0xa0, 0x2a, 0xae, 0x10, 0x12, 0x17, 0xb3, + 0x75, 0x07, 0x7b, 0xd3, 0x64, 0xd7, 0xda, 0x1d, 0xf7, 0x0f, 0x0f, 0xc0, 0x4b, 0x70, 0xe5, 0x61, + 0x38, 0xf2, 0x08, 0x28, 0x4f, 0x82, 0xbc, 0xbb, 0x6e, 0xdc, 0x20, 0xc1, 0x6d, 0xf7, 0x9b, 0xdf, + 0x37, 0xb3, 0x3b, 0xa3, 0x81, 0x4d, 0x59, 0x56, 0x69, 0x45, 0x62, 0x2a, 0xbe, 0x72, 0x12, 0x4a, + 0x46, 0xa5, 0x56, 0xa4, 0xb6, 0x36, 0x08, 0xa7, 0x38, 0x43, 0xd2, 0xd7, 0x29, 0xa9, 0xd2, 0x89, + 0xa3, 0xf7, 0xf0, 0xe8, 0x08, 0xe9, 0x52, 0xe9, 0xf3, 0x63, 0xad, 0x32, 0x34, 0x46, 0xe9, 0x0f, + 0x0b, 0x27, 0xdb, 0x83, 0x7b, 0x4d, 0xb2, 0xd4, 0x10, 0x27, 0x13, 0x06, 0xc3, 0x95, 0x71, 0x6f, + 0xaf, 0x1f, 0xb5, 0xa8, 0xa4, 0x2f, 0xcb, 0xaa, 0xbe, 0x9f, 0xd4, 0xc4, 0xe8, 0x7b, 0x00, 0xbd, + 0x76, 0x8e, 0x01, 0x80, 0x38, 0x43, 0x49, 0xe2, 0x8b, 0x40, 0x1d, 0x06, 0xc3, 0xce, 0x78, 0x3d, + 0x69, 0x29, 0x6c, 0x08, 0xbd, 0xd6, 0x63, 0xc3, 0xce, 0x30, 0x18, 0xdf, 0x4d, 0xda, 0x12, 0x7b, + 0x0a, 0x6b, 0x25, 0xcf, 0xce, 0x91, 0x4c, 0xb8, 0x62, 0xcb, 0xf7, 0xa2, 0x63, 0x7b, 0x7f, 0xab, + 0xf8, 0x59, 0xd2, 0xc4, 0xd8, 0x13, 0x58, 0x9d, 0xe1, 0x4c, 0xe9, 0xeb, 0xb0, 0xeb, 0xa9, 0x77, + 0xf6, 0x6a, 0x29, 0x1f, 0x1a, 0xfd, 0xe8, 0x00, 0x2c, 0x64, 0xc6, 0xa0, 0x2b, 0xf9, 0x0c, 0xc3, + 0x60, 0x18, 0x8c, 0xd7, 0x13, 0x7b, 0x66, 0x8f, 0xa1, 0xcf, 0x2f, 0x50, 0xf3, 0x1c, 0xed, 0xc7, + 0x9b, 0x17, 0x79, 0xad, 0xfe, 0x5a, 0x8d, 0x14, 0x22, 0x2f, 0xd0, 0x90, 0x43, 0x56, 0x1c, 0xe2, + 0x35, 0x8b, 0xec, 0x40, 0x6f, 0xaa, 0x2e, 0x6f, 0x88, 0xae, 0x25, 0xc0, 0x49, 0x16, 0x78, 0x0e, + 0xf7, 0x9b, 0x32, 0x19, 0xcf, 0x0a, 0x4c, 0x0b, 0x41, 0xa9, 0xe6, 0x84, 0xe1, 0x1d, 0xcb, 0x6e, + 0xf8, 0xe8, 0x41, 0x1d, 0x7c, 0x25, 0x28, 0xe1, 0x84, 0xb5, 0xa9, 0x29, 0xbc, 0x64, 0x5a, 0x75, + 0x26, 0x1f, 0xbd, 0x65, 0x7a, 0x06, 0x9b, 0xfe, 0x29, 0x4b, 0x9e, 0x35, 0xeb, 0x61, 0x2e, 0xd8, + 0xb6, 0x8c, 0xbe, 0x75, 0x00, 0x16, 0x3d, 0xfe, 0xef, 0x0c, 0x19, 0x74, 0x6d, 0xc2, 0xba, 0x55, + 0xdd, 0xc4, 0x9e, 0xd9, 0x21, 0xec, 0x34, 0xff, 0x13, 0xd2, 0x90, 0xae, 0xb2, 0x7a, 0x98, 0x26, + 0x2d, 0x51, 0xa7, 0x6e, 0x64, 0xbe, 0x6d, 0xdb, 0x1e, 0x7b, 0xdd, 0xa2, 0x8e, 0x51, 0xbb, 0xf2, + 0x6c, 0x1f, 0x06, 0x4d, 0x9a, 0x4b, 0x2e, 0x28, 0xcd, 0xae, 0xb3, 0x29, 0xde, 0xca, 0xe2, 0x5a, + 0xbb, 0xe5, 0xa9, 0x8f, 0x5c, 0xd0, 0x81, 0x65, 0x16, 0x39, 0x5e, 0xc0, 0xc3, 0x9b, 0x56, 0xff, + 0x65, 0x77, 0xdd, 0x6e, 0x66, 0xb1, 0x64, 0x7d, 0x29, 0x21, 0x9c, 0xc8, 0x52, 0xa7, 0x4b, 0x3b, + 0x95, 0xe2, 0x15, 0xb1, 0x07, 0xd1, 0x9b, 0x4a, 0x8a, 0x12, 0xb5, 0x5f, 0x21, 0x73, 0x82, 0xd2, + 0x28, 0x6d, 0xc2, 0xfe, 0x30, 0x18, 0xf7, 0xf6, 0xb6, 0xa3, 0x7f, 0xac, 0x56, 0xb2, 0x59, 0xa7, + 0x3d, 0x72, 0x8b, 0xe3, 0xb5, 0xc3, 0x2b, 0xda, 0xff, 0xfc, 0x73, 0x3e, 0x08, 0x7e, 0xcd, 0x07, + 0xc1, 0xef, 0xf9, 0x20, 0xf8, 0x94, 0xe4, 0x82, 0xa2, 0x89, 0x2b, 0x12, 0x49, 0xa4, 0x58, 0x64, + 0x78, 0x8a, 0x3a, 0x8f, 0x0b, 0xe4, 0x53, 0x2a, 0x4e, 0x15, 0xed, 0x0a, 0x99, 0xa3, 0xa1, 0xdd, + 0x09, 0x89, 0x5d, 0xc9, 0x49, 0x5c, 0x60, 0x5c, 0x9e, 0xe7, 0xf1, 0x84, 0x44, 0xcc, 0xcf, 0x78, + 0x49, 0xa8, 0x4d, 0x9c, 0x4e, 0x2a, 0xa9, 0x4c, 0x6c, 0xb2, 0x02, 0x67, 0xfc, 0x4f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xbb, 0x8c, 0x48, 0xd9, 0x1f, 0x04, 0x00, 0x00, +} + +func (m *NetworkProcessorUtilization) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkProcessorUtilization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkProcessorUtilization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NpuUtilStats) > 0 { + for iNdEx := len(m.NpuUtilStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NpuUtilStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNpuUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Utilization) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Utilization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Utilization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Memory) > 0 { + for iNdEx := len(m.Memory) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Memory[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNpuUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Packets) > 0 { + for iNdEx := len(m.Packets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Packets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNpuUtilization(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Utilization != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.Utilization)) + i-- + dAtA[i] = 0x10 + } + if m.Identifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("identifier") + } else { + i -= len(*m.Identifier) + copy(dAtA[i:], *m.Identifier) + i = encodeVarintNpuUtilization(dAtA, i, uint64(len(*m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MemoryLoad) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MemoryLoad) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MemoryLoad) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LowestCacheHitRate != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.LowestCacheHitRate)) + i-- + dAtA[i] = 0x38 + } + if m.HighestCacheHitRate != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.HighestCacheHitRate)) + i-- + dAtA[i] = 0x30 + } + if m.AverageCacheHitRate != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.AverageCacheHitRate)) + i-- + dAtA[i] = 0x28 + } + if m.LowestUtil != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.LowestUtil)) + i-- + dAtA[i] = 0x20 + } + if m.HighestUtil != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.HighestUtil)) + i-- + dAtA[i] = 0x18 + } + if m.AverageUtil != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.AverageUtil)) + i-- + dAtA[i] = 0x10 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintNpuUtilization(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PacketLoad) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PacketLoad) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PacketLoad) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AverageCyclesPerPacket != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.AverageCyclesPerPacket)) + i-- + dAtA[i] = 0x28 + } + if m.AverageWaitCyclesPerPacket != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.AverageWaitCyclesPerPacket)) + i-- + dAtA[i] = 0x20 + } + if m.AverageInstructionsPerPacket != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.AverageInstructionsPerPacket)) + i-- + dAtA[i] = 0x18 + } + if m.Rate != nil { + i = encodeVarintNpuUtilization(dAtA, i, uint64(*m.Rate)) + i-- + dAtA[i] = 0x10 + } + if m.Identifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("identifier") + } else { + i -= len(*m.Identifier) + copy(dAtA[i:], *m.Identifier) + i = encodeVarintNpuUtilization(dAtA, i, uint64(len(*m.Identifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNpuUtilization(dAtA []byte, offset int, v uint64) int { + offset -= sovNpuUtilization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkProcessorUtilization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NpuUtilStats) > 0 { + for _, e := range m.NpuUtilStats { + l = e.Size() + n += 1 + l + sovNpuUtilization(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Utilization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Identifier != nil { + l = len(*m.Identifier) + n += 1 + l + sovNpuUtilization(uint64(l)) + } + if m.Utilization != nil { + n += 1 + sovNpuUtilization(uint64(*m.Utilization)) + } + if len(m.Packets) > 0 { + for _, e := range m.Packets { + l = e.Size() + n += 1 + l + sovNpuUtilization(uint64(l)) + } + } + if len(m.Memory) > 0 { + for _, e := range m.Memory { + l = e.Size() + n += 1 + l + sovNpuUtilization(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *MemoryLoad) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovNpuUtilization(uint64(l)) + } + if m.AverageUtil != nil { + n += 1 + sovNpuUtilization(uint64(*m.AverageUtil)) + } + if m.HighestUtil != nil { + n += 1 + sovNpuUtilization(uint64(*m.HighestUtil)) + } + if m.LowestUtil != nil { + n += 1 + sovNpuUtilization(uint64(*m.LowestUtil)) + } + if m.AverageCacheHitRate != nil { + n += 1 + sovNpuUtilization(uint64(*m.AverageCacheHitRate)) + } + if m.HighestCacheHitRate != nil { + n += 1 + sovNpuUtilization(uint64(*m.HighestCacheHitRate)) + } + if m.LowestCacheHitRate != nil { + n += 1 + sovNpuUtilization(uint64(*m.LowestCacheHitRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PacketLoad) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Identifier != nil { + l = len(*m.Identifier) + n += 1 + l + sovNpuUtilization(uint64(l)) + } + if m.Rate != nil { + n += 1 + sovNpuUtilization(uint64(*m.Rate)) + } + if m.AverageInstructionsPerPacket != nil { + n += 1 + sovNpuUtilization(uint64(*m.AverageInstructionsPerPacket)) + } + if m.AverageWaitCyclesPerPacket != nil { + n += 1 + sovNpuUtilization(uint64(*m.AverageWaitCyclesPerPacket)) + } + if m.AverageCyclesPerPacket != nil { + n += 1 + sovNpuUtilization(uint64(*m.AverageCyclesPerPacket)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovNpuUtilization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNpuUtilization(x uint64) (n int) { + return sovNpuUtilization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkProcessorUtilization) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NetworkProcessorUtilization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NetworkProcessorUtilization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NpuUtilStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNpuUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNpuUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NpuUtilStats = append(m.NpuUtilStats, &Utilization{}) + if err := m.NpuUtilStats[len(m.NpuUtilStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNpuUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Utilization) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Utilization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Utilization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Identifier = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Utilization = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNpuUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNpuUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Packets = append(m.Packets, &PacketLoad{}) + if err := m.Packets[len(m.Packets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNpuUtilization + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNpuUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Memory = append(m.Memory, &MemoryLoad{}) + if err := m.Memory[len(m.Memory)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNpuUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("identifier") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemoryLoad) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MemoryLoad: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemoryLoad: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageUtil", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageUtil = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighestUtil", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HighestUtil = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LowestUtil", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LowestUtil = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageCacheHitRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageCacheHitRate = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighestCacheHitRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HighestCacheHitRate = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LowestCacheHitRate", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LowestCacheHitRate = &v + default: + iNdEx = preIndex + skippy, err := skipNpuUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PacketLoad) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PacketLoad: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PacketLoad: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNpuUtilization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNpuUtilization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Identifier = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rate = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageInstructionsPerPacket", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageInstructionsPerPacket = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageWaitCyclesPerPacket", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageWaitCyclesPerPacket = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageCyclesPerPacket", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageCyclesPerPacket = &v + default: + iNdEx = preIndex + skippy, err := skipNpuUtilization(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthNpuUtilization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("identifier") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNpuUtilization(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNpuUtilization + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthNpuUtilization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNpuUtilization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNpuUtilization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNpuUtilization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNpuUtilization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNpuUtilization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/npu_utilization.proto b/schema/npu_utilization.proto new file mode 100755 index 0000000..6d43001 --- /dev/null +++ b/schema/npu_utilization.proto @@ -0,0 +1,102 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Nitin Kumar, 2016 +// +// This defines the gpb message format used by the npu utilization sensor +// +// The top level message is NetworkProcessorUtilization +// +// +// +// Version 1.0 +// + +syntax = "proto2"; +import "telemetry_top.proto"; +option go_package = "github.com/Juniper/jtimon/schema"; + +// +// This occupies branch 12 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional NetworkProcessorUtilization jnpr_npu_utilization_ext = 12; +} + +// Top level message +message NetworkProcessorUtilization { + repeated Utilization npu_util_stats = 1; +} + +// Utilization per Network Processor +message Utilization { + // Globally unique identifier for an NPU. This is of the form + // FPCX:NPUY, where X is the slot number of the linecard and Y + // is the index of the NPU on the linecard + required string identifier = 1; + + // A number on a scale of 0-100 that indicates the busyness of + // an NPU. This is an approximation as the utilization depends + // on the busyness of several internal components of the NPU + optional uint32 utilization = 2; + + // Offered Packet load on the NPU. + repeated PacketLoad packets = 3; + + // Utilization of various internal memories of the NPU. + repeated MemoryLoad memory = 4; +}; + +// Load on a memory subsystem of the NPU +message MemoryLoad { + // A name string to identify the particular memory subsystem + optional string name = 1; + + // Various memory utilization metrics + optional uint32 average_util = 2; + optional uint32 highest_util = 3; + optional uint32 lowest_util = 4; + + // Each memory is front ended by a cache. The following metrics + // indicate how these caches are working + optional uint32 average_cache_hit_rate = 5; + optional uint32 highest_cache_hit_rate = 6; + optional uint32 lowest_cache_hit_rate = 7; +} + +// Offered packet load on an internal subsystem of the NPU +message PacketLoad { + // Each internal subsystem of the NPU has a name + required string identifier = 1; + + // Rate of packets received + optional uint64 rate = 2; + + // The following metrics indicate the compute load on the NPU + optional uint32 average_instructions_per_packet = 3; + optional uint32 average_wait_cycles_per_packet = 4; + optional uint32 average_cycles_per_packet = 5; +} + diff --git a/schema/optics.pb.go b/schema/optics.pb.go new file mode 100644 index 0000000..30d1a97 --- /dev/null +++ b/schema/optics.pb.go @@ -0,0 +1,2563 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: optics.proto + +package schema + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type Optics struct { + OpticsDiag []*OpticsInfos `protobuf:"bytes,1,rep,name=Optics_diag,json=OpticsDiag" json:"Optics_diag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Optics) Reset() { *m = Optics{} } +func (m *Optics) String() string { return proto.CompactTextString(m) } +func (*Optics) ProtoMessage() {} +func (*Optics) Descriptor() ([]byte, []int) { + return fileDescriptor_1b02cb96ddad460a, []int{0} +} +func (m *Optics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Optics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Optics.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Optics) XXX_Merge(src proto.Message) { + xxx_messageInfo_Optics.Merge(m, src) +} +func (m *Optics) XXX_Size() int { + return m.Size() +} +func (m *Optics) XXX_DiscardUnknown() { + xxx_messageInfo_Optics.DiscardUnknown(m) +} + +var xxx_messageInfo_Optics proto.InternalMessageInfo + +func (m *Optics) GetOpticsDiag() []*OpticsInfos { + if m != nil { + return m.OpticsDiag + } + return nil +} + +// +// Optics Interface information +// +type OpticsInfos struct { + // Interface name, e.g., xe-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Global Index + SnmpIfIndex *uint32 `protobuf:"varint,2,opt,name=snmp_if_index,json=snmpIfIndex" json:"snmp_if_index,omitempty"` + // Optics module Diagnostics statistics + OpticsDiagStats *OpticsDiagStats `protobuf:"bytes,3,opt,name=optics_diag_stats,json=opticsDiagStats" json:"optics_diag_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OpticsInfos) Reset() { *m = OpticsInfos{} } +func (m *OpticsInfos) String() string { return proto.CompactTextString(m) } +func (*OpticsInfos) ProtoMessage() {} +func (*OpticsInfos) Descriptor() ([]byte, []int) { + return fileDescriptor_1b02cb96ddad460a, []int{1} +} +func (m *OpticsInfos) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpticsInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpticsInfos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OpticsInfos) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpticsInfos.Merge(m, src) +} +func (m *OpticsInfos) XXX_Size() int { + return m.Size() +} +func (m *OpticsInfos) XXX_DiscardUnknown() { + xxx_messageInfo_OpticsInfos.DiscardUnknown(m) +} + +var xxx_messageInfo_OpticsInfos proto.InternalMessageInfo + +func (m *OpticsInfos) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *OpticsInfos) GetSnmpIfIndex() uint32 { + if m != nil && m.SnmpIfIndex != nil { + return *m.SnmpIfIndex + } + return 0 +} + +func (m *OpticsInfos) GetOpticsDiagStats() *OpticsDiagStats { + if m != nil { + return m.OpticsDiagStats + } + return nil +} + +// +// Optics Diagnostics stats +// +type OpticsDiagStats struct { + OpticsType *uint32 `protobuf:"varint,1,opt,name=optics_type,json=opticsType" json:"optics_type,omitempty"` + // Module temperature + ModuleTemp *float64 `protobuf:"fixed64,2,opt,name=module_temp,json=moduleTemp" json:"module_temp,omitempty"` + // Module temperature threshold information + ModuleTempHighAlarmThreshold *float64 `protobuf:"fixed64,3,opt,name=module_temp_high_alarm_threshold,json=moduleTempHighAlarmThreshold" json:"module_temp_high_alarm_threshold,omitempty"` + ModuleTempLowAlarmThreshold *float64 `protobuf:"fixed64,4,opt,name=module_temp_low_alarm_threshold,json=moduleTempLowAlarmThreshold" json:"module_temp_low_alarm_threshold,omitempty"` + ModuleTempHighWarningThreshold *float64 `protobuf:"fixed64,5,opt,name=module_temp_high_warning_threshold,json=moduleTempHighWarningThreshold" json:"module_temp_high_warning_threshold,omitempty"` + ModuleTempLowWarningThreshold *float64 `protobuf:"fixed64,6,opt,name=module_temp_low_warning_threshold,json=moduleTempLowWarningThreshold" json:"module_temp_low_warning_threshold,omitempty"` + // laser output power threshold information + LaserOutputPowerHighAlarmThresholdDbm *float64 `protobuf:"fixed64,7,opt,name=laser_output_power_high_alarm_threshold_dbm,json=laserOutputPowerHighAlarmThresholdDbm" json:"laser_output_power_high_alarm_threshold_dbm,omitempty"` + LaserOutputPowerLowAlarmThresholdDbm *float64 `protobuf:"fixed64,8,opt,name=laser_output_power_low_alarm_threshold_dbm,json=laserOutputPowerLowAlarmThresholdDbm" json:"laser_output_power_low_alarm_threshold_dbm,omitempty"` + LaserOutputPowerHighWarningThresholdDbm *float64 `protobuf:"fixed64,9,opt,name=laser_output_power_high_warning_threshold_dbm,json=laserOutputPowerHighWarningThresholdDbm" json:"laser_output_power_high_warning_threshold_dbm,omitempty"` + LaserOutputPowerLowWarningThresholdDbm *float64 `protobuf:"fixed64,10,opt,name=laser_output_power_low_warning_threshold_dbm,json=laserOutputPowerLowWarningThresholdDbm" json:"laser_output_power_low_warning_threshold_dbm,omitempty"` + // laser rx power threshold information + LaserRxPowerHighAlarmThresholdDbm *float64 `protobuf:"fixed64,11,opt,name=laser_rx_power_high_alarm_threshold_dbm,json=laserRxPowerHighAlarmThresholdDbm" json:"laser_rx_power_high_alarm_threshold_dbm,omitempty"` + LaserRxPowerLowAlarmThresholdDbm *float64 `protobuf:"fixed64,12,opt,name=laser_rx_power_low_alarm_threshold_dbm,json=laserRxPowerLowAlarmThresholdDbm" json:"laser_rx_power_low_alarm_threshold_dbm,omitempty"` + LaserRxPowerHighWarningThresholdDbm *float64 `protobuf:"fixed64,13,opt,name=laser_rx_power_high_warning_threshold_dbm,json=laserRxPowerHighWarningThresholdDbm" json:"laser_rx_power_high_warning_threshold_dbm,omitempty"` + LaserRxPowerLowWarningThresholdDbm *float64 `protobuf:"fixed64,14,opt,name=laser_rx_power_low_warning_threshold_dbm,json=laserRxPowerLowWarningThresholdDbm" json:"laser_rx_power_low_warning_threshold_dbm,omitempty"` + // laser bias current threshold information + LaserBiasCurrentHighAlarmThreshold *float64 `protobuf:"fixed64,15,opt,name=laser_bias_current_high_alarm_threshold,json=laserBiasCurrentHighAlarmThreshold" json:"laser_bias_current_high_alarm_threshold,omitempty"` + LaserBiasCurrentLowAlarmThreshold *float64 `protobuf:"fixed64,16,opt,name=laser_bias_current_low_alarm_threshold,json=laserBiasCurrentLowAlarmThreshold" json:"laser_bias_current_low_alarm_threshold,omitempty"` + LaserBiasCurrentHighWarningThreshold *float64 `protobuf:"fixed64,17,opt,name=laser_bias_current_high_warning_threshold,json=laserBiasCurrentHighWarningThreshold" json:"laser_bias_current_high_warning_threshold,omitempty"` + LaserBiasCurrentLowWarningThreshold *float64 `protobuf:"fixed64,18,opt,name=laser_bias_current_low_warning_threshold,json=laserBiasCurrentLowWarningThreshold" json:"laser_bias_current_low_warning_threshold,omitempty"` + // Module temperature alarm information + ModuleTempHighAlarm *bool `protobuf:"varint,19,opt,name=module_temp_high_alarm,json=moduleTempHighAlarm" json:"module_temp_high_alarm,omitempty"` + ModuleTempLowAlarm *bool `protobuf:"varint,20,opt,name=module_temp_low_alarm,json=moduleTempLowAlarm" json:"module_temp_low_alarm,omitempty"` + ModuleTempHighWarning *bool `protobuf:"varint,21,opt,name=module_temp_high_warning,json=moduleTempHighWarning" json:"module_temp_high_warning,omitempty"` + ModuleTempLowWarning *bool `protobuf:"varint,22,opt,name=module_temp_low_warning,json=moduleTempLowWarning" json:"module_temp_low_warning,omitempty"` + // Optics module lane Diagnostics statistics + OpticsLaneDiagStats []*OpticsDiagLaneStats `protobuf:"bytes,23,rep,name=optics_lane_diag_stats,json=opticsLaneDiagStats" json:"optics_lane_diag_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OpticsDiagStats) Reset() { *m = OpticsDiagStats{} } +func (m *OpticsDiagStats) String() string { return proto.CompactTextString(m) } +func (*OpticsDiagStats) ProtoMessage() {} +func (*OpticsDiagStats) Descriptor() ([]byte, []int) { + return fileDescriptor_1b02cb96ddad460a, []int{2} +} +func (m *OpticsDiagStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpticsDiagStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpticsDiagStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OpticsDiagStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpticsDiagStats.Merge(m, src) +} +func (m *OpticsDiagStats) XXX_Size() int { + return m.Size() +} +func (m *OpticsDiagStats) XXX_DiscardUnknown() { + xxx_messageInfo_OpticsDiagStats.DiscardUnknown(m) +} + +var xxx_messageInfo_OpticsDiagStats proto.InternalMessageInfo + +func (m *OpticsDiagStats) GetOpticsType() uint32 { + if m != nil && m.OpticsType != nil { + return *m.OpticsType + } + return 0 +} + +func (m *OpticsDiagStats) GetModuleTemp() float64 { + if m != nil && m.ModuleTemp != nil { + return *m.ModuleTemp + } + return 0 +} + +func (m *OpticsDiagStats) GetModuleTempHighAlarmThreshold() float64 { + if m != nil && m.ModuleTempHighAlarmThreshold != nil { + return *m.ModuleTempHighAlarmThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetModuleTempLowAlarmThreshold() float64 { + if m != nil && m.ModuleTempLowAlarmThreshold != nil { + return *m.ModuleTempLowAlarmThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetModuleTempHighWarningThreshold() float64 { + if m != nil && m.ModuleTempHighWarningThreshold != nil { + return *m.ModuleTempHighWarningThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetModuleTempLowWarningThreshold() float64 { + if m != nil && m.ModuleTempLowWarningThreshold != nil { + return *m.ModuleTempLowWarningThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserOutputPowerHighAlarmThresholdDbm() float64 { + if m != nil && m.LaserOutputPowerHighAlarmThresholdDbm != nil { + return *m.LaserOutputPowerHighAlarmThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserOutputPowerLowAlarmThresholdDbm() float64 { + if m != nil && m.LaserOutputPowerLowAlarmThresholdDbm != nil { + return *m.LaserOutputPowerLowAlarmThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserOutputPowerHighWarningThresholdDbm() float64 { + if m != nil && m.LaserOutputPowerHighWarningThresholdDbm != nil { + return *m.LaserOutputPowerHighWarningThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserOutputPowerLowWarningThresholdDbm() float64 { + if m != nil && m.LaserOutputPowerLowWarningThresholdDbm != nil { + return *m.LaserOutputPowerLowWarningThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserRxPowerHighAlarmThresholdDbm() float64 { + if m != nil && m.LaserRxPowerHighAlarmThresholdDbm != nil { + return *m.LaserRxPowerHighAlarmThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserRxPowerLowAlarmThresholdDbm() float64 { + if m != nil && m.LaserRxPowerLowAlarmThresholdDbm != nil { + return *m.LaserRxPowerLowAlarmThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserRxPowerHighWarningThresholdDbm() float64 { + if m != nil && m.LaserRxPowerHighWarningThresholdDbm != nil { + return *m.LaserRxPowerHighWarningThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserRxPowerLowWarningThresholdDbm() float64 { + if m != nil && m.LaserRxPowerLowWarningThresholdDbm != nil { + return *m.LaserRxPowerLowWarningThresholdDbm + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserBiasCurrentHighAlarmThreshold() float64 { + if m != nil && m.LaserBiasCurrentHighAlarmThreshold != nil { + return *m.LaserBiasCurrentHighAlarmThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserBiasCurrentLowAlarmThreshold() float64 { + if m != nil && m.LaserBiasCurrentLowAlarmThreshold != nil { + return *m.LaserBiasCurrentLowAlarmThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserBiasCurrentHighWarningThreshold() float64 { + if m != nil && m.LaserBiasCurrentHighWarningThreshold != nil { + return *m.LaserBiasCurrentHighWarningThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetLaserBiasCurrentLowWarningThreshold() float64 { + if m != nil && m.LaserBiasCurrentLowWarningThreshold != nil { + return *m.LaserBiasCurrentLowWarningThreshold + } + return 0 +} + +func (m *OpticsDiagStats) GetModuleTempHighAlarm() bool { + if m != nil && m.ModuleTempHighAlarm != nil { + return *m.ModuleTempHighAlarm + } + return false +} + +func (m *OpticsDiagStats) GetModuleTempLowAlarm() bool { + if m != nil && m.ModuleTempLowAlarm != nil { + return *m.ModuleTempLowAlarm + } + return false +} + +func (m *OpticsDiagStats) GetModuleTempHighWarning() bool { + if m != nil && m.ModuleTempHighWarning != nil { + return *m.ModuleTempHighWarning + } + return false +} + +func (m *OpticsDiagStats) GetModuleTempLowWarning() bool { + if m != nil && m.ModuleTempLowWarning != nil { + return *m.ModuleTempLowWarning + } + return false +} + +func (m *OpticsDiagStats) GetOpticsLaneDiagStats() []*OpticsDiagLaneStats { + if m != nil { + return m.OpticsLaneDiagStats + } + return nil +} + +// +// Optics Diagnostics lane stats +// +type OpticsDiagLaneStats struct { + LaneNumber *uint32 `protobuf:"varint,1,opt,name=lane_number,json=laneNumber" json:"lane_number,omitempty"` + // lane Module temperature + LaneLaserTemperature *float64 `protobuf:"fixed64,2,opt,name=lane_laser_temperature,json=laneLaserTemperature" json:"lane_laser_temperature,omitempty"` + // Laser receive power + LaneLaserOutputPowerDbm *float32 `protobuf:"fixed32,3,opt,name=lane_laser_output_power_dbm,json=laneLaserOutputPowerDbm" json:"lane_laser_output_power_dbm,omitempty"` + // Laser transmit power + LaneLaserReceiverPowerDbm *float32 `protobuf:"fixed32,4,opt,name=lane_laser_receiver_power_dbm,json=laneLaserReceiverPowerDbm" json:"lane_laser_receiver_power_dbm,omitempty"` + // Laser receive power + LaneLaserBiasCurrent *float64 `protobuf:"fixed64,5,opt,name=lane_laser_bias_current,json=laneLaserBiasCurrent" json:"lane_laser_bias_current,omitempty"` + //lane laser output power alarm + LaneLaserOutputPowerHighAlarm *bool `protobuf:"varint,6,opt,name=lane_laser_output_power_high_alarm,json=laneLaserOutputPowerHighAlarm" json:"lane_laser_output_power_high_alarm,omitempty"` + LaneLaserOutputPowerLowAlarm *bool `protobuf:"varint,7,opt,name=lane_laser_output_power_low_alarm,json=laneLaserOutputPowerLowAlarm" json:"lane_laser_output_power_low_alarm,omitempty"` + LaneLaserOutputPowerHighWarning *bool `protobuf:"varint,8,opt,name=lane_laser_output_power_high_warning,json=laneLaserOutputPowerHighWarning" json:"lane_laser_output_power_high_warning,omitempty"` + LaneLaserOutputPowerLowWarning *bool `protobuf:"varint,9,opt,name=lane_laser_output_power_low_warning,json=laneLaserOutputPowerLowWarning" json:"lane_laser_output_power_low_warning,omitempty"` + //lane laser receiver power alarm + LaneLaserReceiverPowerHighAlarm *bool `protobuf:"varint,10,opt,name=lane_laser_receiver_power_high_alarm,json=laneLaserReceiverPowerHighAlarm" json:"lane_laser_receiver_power_high_alarm,omitempty"` + LaneLaserReceiverPowerLowAlarm *bool `protobuf:"varint,11,opt,name=lane_laser_receiver_power_low_alarm,json=laneLaserReceiverPowerLowAlarm" json:"lane_laser_receiver_power_low_alarm,omitempty"` + LaneLaserReceiverPowerHighWarning *bool `protobuf:"varint,12,opt,name=lane_laser_receiver_power_high_warning,json=laneLaserReceiverPowerHighWarning" json:"lane_laser_receiver_power_high_warning,omitempty"` + LaneLaserReceiverPowerLowWarning *bool `protobuf:"varint,13,opt,name=lane_laser_receiver_power_low_warning,json=laneLaserReceiverPowerLowWarning" json:"lane_laser_receiver_power_low_warning,omitempty"` + //lane laser output power alarm + LaneLaserBiasCurrentHighAlarm *bool `protobuf:"varint,14,opt,name=lane_laser_bias_current_high_alarm,json=laneLaserBiasCurrentHighAlarm" json:"lane_laser_bias_current_high_alarm,omitempty"` + LaneLaserBiasCurrentLowAlarm *bool `protobuf:"varint,15,opt,name=lane_laser_bias_current_low_alarm,json=laneLaserBiasCurrentLowAlarm" json:"lane_laser_bias_current_low_alarm,omitempty"` + LaneLaserBiasCurrentHighWarning *bool `protobuf:"varint,16,opt,name=lane_laser_bias_current_high_warning,json=laneLaserBiasCurrentHighWarning" json:"lane_laser_bias_current_high_warning,omitempty"` + LaneLaserBiasCurrentLowWarning *bool `protobuf:"varint,17,opt,name=lane_laser_bias_current_low_warning,json=laneLaserBiasCurrentLowWarning" json:"lane_laser_bias_current_low_warning,omitempty"` + LaneTxLossOfSignalAlarm *bool `protobuf:"varint,18,opt,name=lane_tx_loss_of_signal_alarm,json=laneTxLossOfSignalAlarm" json:"lane_tx_loss_of_signal_alarm,omitempty"` + LaneRxLossOfSignalAlarm *bool `protobuf:"varint,19,opt,name=lane_rx_loss_of_signal_alarm,json=laneRxLossOfSignalAlarm" json:"lane_rx_loss_of_signal_alarm,omitempty"` + LaneTxLaserDisabledAlarm *bool `protobuf:"varint,20,opt,name=lane_tx_laser_disabled_alarm,json=laneTxLaserDisabledAlarm" json:"lane_tx_laser_disabled_alarm,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OpticsDiagLaneStats) Reset() { *m = OpticsDiagLaneStats{} } +func (m *OpticsDiagLaneStats) String() string { return proto.CompactTextString(m) } +func (*OpticsDiagLaneStats) ProtoMessage() {} +func (*OpticsDiagLaneStats) Descriptor() ([]byte, []int) { + return fileDescriptor_1b02cb96ddad460a, []int{3} +} +func (m *OpticsDiagLaneStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpticsDiagLaneStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpticsDiagLaneStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OpticsDiagLaneStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpticsDiagLaneStats.Merge(m, src) +} +func (m *OpticsDiagLaneStats) XXX_Size() int { + return m.Size() +} +func (m *OpticsDiagLaneStats) XXX_DiscardUnknown() { + xxx_messageInfo_OpticsDiagLaneStats.DiscardUnknown(m) +} + +var xxx_messageInfo_OpticsDiagLaneStats proto.InternalMessageInfo + +func (m *OpticsDiagLaneStats) GetLaneNumber() uint32 { + if m != nil && m.LaneNumber != nil { + return *m.LaneNumber + } + return 0 +} + +func (m *OpticsDiagLaneStats) GetLaneLaserTemperature() float64 { + if m != nil && m.LaneLaserTemperature != nil { + return *m.LaneLaserTemperature + } + return 0 +} + +func (m *OpticsDiagLaneStats) GetLaneLaserOutputPowerDbm() float32 { + if m != nil && m.LaneLaserOutputPowerDbm != nil { + return *m.LaneLaserOutputPowerDbm + } + return 0 +} + +func (m *OpticsDiagLaneStats) GetLaneLaserReceiverPowerDbm() float32 { + if m != nil && m.LaneLaserReceiverPowerDbm != nil { + return *m.LaneLaserReceiverPowerDbm + } + return 0 +} + +func (m *OpticsDiagLaneStats) GetLaneLaserBiasCurrent() float64 { + if m != nil && m.LaneLaserBiasCurrent != nil { + return *m.LaneLaserBiasCurrent + } + return 0 +} + +func (m *OpticsDiagLaneStats) GetLaneLaserOutputPowerHighAlarm() bool { + if m != nil && m.LaneLaserOutputPowerHighAlarm != nil { + return *m.LaneLaserOutputPowerHighAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserOutputPowerLowAlarm() bool { + if m != nil && m.LaneLaserOutputPowerLowAlarm != nil { + return *m.LaneLaserOutputPowerLowAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserOutputPowerHighWarning() bool { + if m != nil && m.LaneLaserOutputPowerHighWarning != nil { + return *m.LaneLaserOutputPowerHighWarning + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserOutputPowerLowWarning() bool { + if m != nil && m.LaneLaserOutputPowerLowWarning != nil { + return *m.LaneLaserOutputPowerLowWarning + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserReceiverPowerHighAlarm() bool { + if m != nil && m.LaneLaserReceiverPowerHighAlarm != nil { + return *m.LaneLaserReceiverPowerHighAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserReceiverPowerLowAlarm() bool { + if m != nil && m.LaneLaserReceiverPowerLowAlarm != nil { + return *m.LaneLaserReceiverPowerLowAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserReceiverPowerHighWarning() bool { + if m != nil && m.LaneLaserReceiverPowerHighWarning != nil { + return *m.LaneLaserReceiverPowerHighWarning + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserReceiverPowerLowWarning() bool { + if m != nil && m.LaneLaserReceiverPowerLowWarning != nil { + return *m.LaneLaserReceiverPowerLowWarning + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserBiasCurrentHighAlarm() bool { + if m != nil && m.LaneLaserBiasCurrentHighAlarm != nil { + return *m.LaneLaserBiasCurrentHighAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserBiasCurrentLowAlarm() bool { + if m != nil && m.LaneLaserBiasCurrentLowAlarm != nil { + return *m.LaneLaserBiasCurrentLowAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserBiasCurrentHighWarning() bool { + if m != nil && m.LaneLaserBiasCurrentHighWarning != nil { + return *m.LaneLaserBiasCurrentHighWarning + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneLaserBiasCurrentLowWarning() bool { + if m != nil && m.LaneLaserBiasCurrentLowWarning != nil { + return *m.LaneLaserBiasCurrentLowWarning + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneTxLossOfSignalAlarm() bool { + if m != nil && m.LaneTxLossOfSignalAlarm != nil { + return *m.LaneTxLossOfSignalAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneRxLossOfSignalAlarm() bool { + if m != nil && m.LaneRxLossOfSignalAlarm != nil { + return *m.LaneRxLossOfSignalAlarm + } + return false +} + +func (m *OpticsDiagLaneStats) GetLaneTxLaserDisabledAlarm() bool { + if m != nil && m.LaneTxLaserDisabledAlarm != nil { + return *m.LaneTxLaserDisabledAlarm + } + return false +} + +var E_JnprOpticsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Optics)(nil), + Field: 10, + Name: "jnpr_optics_ext", + Tag: "bytes,10,opt,name=jnpr_optics_ext", + Filename: "optics.proto", +} + +func init() { + proto.RegisterType((*Optics)(nil), "Optics") + proto.RegisterType((*OpticsInfos)(nil), "OpticsInfos") + proto.RegisterType((*OpticsDiagStats)(nil), "OpticsDiagStats") + proto.RegisterType((*OpticsDiagLaneStats)(nil), "OpticsDiagLaneStats") + proto.RegisterExtension(E_JnprOpticsExt) +} + +func init() { proto.RegisterFile("optics.proto", fileDescriptor_1b02cb96ddad460a) } + +var fileDescriptor_1b02cb96ddad460a = []byte{ + // 1147 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x95, 0xe9, 0x72, 0xdb, 0x36, + 0x10, 0xc7, 0x87, 0x4e, 0xe2, 0x63, 0xe5, 0x23, 0xa1, 0x7c, 0xb0, 0x4d, 0x2c, 0xcb, 0x4a, 0xe2, + 0xaa, 0x87, 0xa5, 0xa9, 0x3b, 0x99, 0xcc, 0xf4, 0x9a, 0xd6, 0x71, 0x27, 0x71, 0xe3, 0xd8, 0x0d, + 0xed, 0x99, 0xb4, 0xe9, 0x81, 0x42, 0x12, 0x24, 0xc1, 0xe1, 0x35, 0x00, 0x14, 0xcb, 0x5f, 0xfb, + 0x02, 0x7d, 0x82, 0x3e, 0x44, 0xdf, 0xa2, 0x1f, 0xfb, 0x08, 0x1d, 0x3f, 0x49, 0x07, 0xa0, 0x28, + 0x82, 0x24, 0xe8, 0x7c, 0x93, 0xc0, 0xdd, 0xdf, 0xfe, 0x77, 0x17, 0xd8, 0x85, 0xc5, 0x30, 0x12, + 0xb4, 0xcb, 0x5b, 0x11, 0x0b, 0x45, 0xf8, 0x7e, 0x55, 0x10, 0x8f, 0xf8, 0x44, 0xb0, 0x4b, 0x24, + 0xc2, 0x28, 0x3e, 0x6c, 0x3c, 0x86, 0xd9, 0x13, 0x65, 0x64, 0xef, 0x42, 0x25, 0xfe, 0x85, 0x7a, + 0x14, 0x0f, 0x1c, 0xab, 0x7e, 0xa3, 0x59, 0xd9, 0x5b, 0x6c, 0xc5, 0x67, 0x87, 0x41, 0x3f, 0xe4, + 0x2e, 0xc4, 0x7f, 0x0e, 0x28, 0x1e, 0x34, 0xfe, 0xb4, 0x12, 0x7b, 0xf5, 0xcd, 0xae, 0xc1, 0x1c, + 0xed, 0xa3, 0x00, 0xfb, 0xc4, 0xb1, 0xea, 0x33, 0xcd, 0x85, 0xfd, 0x5b, 0x7f, 0x7c, 0x33, 0x33, + 0x6f, 0xb9, 0xb3, 0xb4, 0x7f, 0x8c, 0x7d, 0x62, 0x37, 0x60, 0x89, 0x07, 0x7e, 0x84, 0x68, 0x1f, + 0xd1, 0xa0, 0x47, 0xc6, 0xce, 0x4c, 0xdd, 0x6a, 0x2e, 0xb9, 0x15, 0x79, 0x78, 0xd8, 0x3f, 0x94, + 0x47, 0xf6, 0x97, 0x70, 0x27, 0x4c, 0x25, 0x20, 0x2e, 0xb0, 0xe0, 0xce, 0x8d, 0xba, 0xd5, 0xac, + 0xec, 0xdd, 0x6e, 0xa5, 0xb1, 0x4f, 0xe5, 0xb9, 0xbb, 0x12, 0x66, 0x0f, 0x1a, 0x7f, 0x2f, 0xc3, + 0x4a, 0xce, 0xc8, 0xde, 0x82, 0xca, 0x84, 0x28, 0x2e, 0x23, 0xa9, 0x4c, 0xc6, 0x84, 0xf8, 0xe8, + 0xec, 0x32, 0x22, 0xf6, 0x0e, 0x54, 0xfc, 0xb0, 0x37, 0xf2, 0x08, 0x12, 0xc4, 0x8f, 0x94, 0x28, + 0x4b, 0x49, 0xaf, 0x5b, 0x2e, 0xc4, 0x5f, 0xce, 0x88, 0x1f, 0xd9, 0x2f, 0xa0, 0xae, 0xd9, 0xa1, + 0x21, 0x1d, 0x0c, 0x11, 0xf6, 0x30, 0xf3, 0x91, 0x18, 0x32, 0xc2, 0x87, 0xa1, 0xd7, 0x53, 0x4a, + 0xa7, 0xce, 0xf7, 0x52, 0xe7, 0x67, 0x74, 0x30, 0xfc, 0x56, 0xda, 0x9e, 0x25, 0xa6, 0xf6, 0x73, + 0xd8, 0xd2, 0x71, 0x5e, 0x78, 0x51, 0xa0, 0xdd, 0xd4, 0x69, 0x77, 0x53, 0xda, 0x51, 0x78, 0x91, + 0x83, 0xbd, 0x84, 0x46, 0x41, 0xdb, 0x05, 0x66, 0x01, 0x0d, 0x06, 0x1a, 0xef, 0x96, 0xce, 0xab, + 0x65, 0xd5, 0xbd, 0x8a, 0xad, 0x53, 0xe4, 0x09, 0x6c, 0xe7, 0xf5, 0x15, 0x89, 0xb3, 0x3a, 0x71, + 0x33, 0xa3, 0xb0, 0x00, 0xc4, 0xf0, 0xb1, 0x87, 0x39, 0x61, 0x28, 0x1c, 0x89, 0x68, 0x24, 0x50, + 0x14, 0x5e, 0x10, 0x66, 0x2c, 0x23, 0xea, 0x75, 0x7c, 0x67, 0x4e, 0x47, 0x3f, 0x54, 0x9e, 0x27, + 0xca, 0xf1, 0x07, 0xe9, 0x57, 0x2c, 0xe8, 0x41, 0xc7, 0xb7, 0x11, 0x7c, 0x64, 0x08, 0x61, 0x28, + 0xad, 0x8a, 0x30, 0xaf, 0x47, 0x78, 0x90, 0x8f, 0x50, 0x28, 0xb2, 0x0c, 0x40, 0x60, 0xb7, 0x2c, + 0x87, 0x42, 0x71, 0x54, 0x8c, 0x05, 0x3d, 0xc6, 0x07, 0xa6, 0x2c, 0xf2, 0x75, 0x92, 0x61, 0xba, + 0xf0, 0x49, 0x49, 0x1e, 0xe6, 0x28, 0xa0, 0x47, 0xd9, 0x31, 0x64, 0x62, 0x0a, 0xf2, 0x13, 0xc4, + 0x7a, 0x10, 0x1b, 0xbf, 0xab, 0x17, 0x15, 0x9d, 0xbf, 0xad, 0xbc, 0xdc, 0xf1, 0x35, 0x7d, 0x78, + 0x05, 0x3b, 0x39, 0x74, 0x59, 0x0f, 0x16, 0x75, 0x72, 0x5d, 0x27, 0x1b, 0xeb, 0xff, 0x2b, 0x7c, + 0x68, 0xd2, 0x6c, 0xae, 0xca, 0x92, 0xce, 0xbe, 0x9f, 0x57, 0x6d, 0x2a, 0xc9, 0xcf, 0xd0, 0x34, + 0xe8, 0x36, 0xd3, 0x97, 0x75, 0x7a, 0x23, 0xa7, 0xdc, 0x04, 0x7f, 0x9d, 0xd4, 0xbb, 0x43, 0x31, + 0x47, 0xdd, 0x11, 0x63, 0x24, 0x10, 0xe6, 0x31, 0xb2, 0x52, 0x64, 0xef, 0x53, 0xcc, 0x9f, 0xc4, + 0x3e, 0x86, 0x61, 0xf2, 0x63, 0x52, 0xf0, 0x0c, 0xdb, 0x34, 0x53, 0x6e, 0x17, 0x5b, 0xa9, 0xa1, + 0x8b, 0x93, 0xe5, 0xb7, 0xa4, 0xe2, 0x45, 0xd5, 0xc5, 0x71, 0x70, 0xa7, 0xf8, 0xa2, 0x72, 0xba, + 0x0b, 0x53, 0xe1, 0x97, 0xa4, 0xe4, 0x05, 0xe5, 0x45, 0xbc, 0x5d, 0x6c, 0x68, 0x56, 0x7b, 0x81, + 0xfe, 0x19, 0xac, 0x9b, 0x67, 0xb6, 0x53, 0xad, 0x5b, 0xcd, 0x79, 0xb7, 0x6a, 0x18, 0xd1, 0xf6, + 0xa7, 0xb0, 0x66, 0x9c, 0xcc, 0xce, 0xaa, 0xf2, 0xb1, 0x8b, 0x83, 0xd8, 0x7e, 0x0c, 0x4e, 0xd9, + 0xfc, 0x75, 0xd6, 0x94, 0xd7, 0x9a, 0x71, 0xdc, 0xda, 0x8f, 0x60, 0xa3, 0x64, 0xca, 0x3a, 0xeb, + 0xca, 0x6f, 0xd5, 0x34, 0x54, 0xed, 0x43, 0x58, 0x9f, 0x2c, 0x35, 0x0f, 0x07, 0x44, 0xdf, 0x95, + 0x1b, 0x6a, 0x69, 0xaf, 0x6a, 0xbb, 0xf2, 0x08, 0x07, 0x24, 0xde, 0x97, 0xd5, 0xd8, 0x47, 0x1e, + 0xa4, 0x3b, 0xf3, 0xaf, 0x0a, 0x54, 0x0d, 0xc6, 0x72, 0x2d, 0x2a, 0x76, 0x30, 0xf2, 0x3b, 0x84, + 0xc5, 0x7b, 0x33, 0xd9, 0xe8, 0x20, 0xbf, 0x1c, 0xab, 0x0f, 0xf6, 0x17, 0xb0, 0xae, 0xec, 0xe2, + 0x2e, 0xca, 0x2c, 0x08, 0xc3, 0x62, 0xc4, 0x48, 0x76, 0x93, 0xae, 0x4a, 0xa3, 0x23, 0x69, 0x73, + 0x96, 0x9a, 0xd8, 0x4f, 0xe0, 0xae, 0xe6, 0x9c, 0x99, 0x76, 0xf2, 0x8d, 0xc9, 0x75, 0x3a, 0x93, + 0x10, 0x36, 0xa6, 0x04, 0x6d, 0xb6, 0xc9, 0x87, 0xf5, 0x14, 0x36, 0x35, 0x08, 0x23, 0x5d, 0x42, + 0xdf, 0x12, 0xa6, 0x61, 0x6e, 0xea, 0x98, 0xf7, 0xa6, 0x18, 0x77, 0x62, 0x39, 0x05, 0x3d, 0x82, + 0x0d, 0x0d, 0xa4, 0x5f, 0xc8, 0x78, 0x75, 0x6a, 0x49, 0x68, 0xf7, 0xce, 0x3e, 0x84, 0x46, 0x59, + 0x12, 0xda, 0x85, 0x9b, 0x55, 0xed, 0xdc, 0x34, 0x25, 0x91, 0x5e, 0xbd, 0xa7, 0xb0, 0x5d, 0x86, + 0x4a, 0xaf, 0xe1, 0x9c, 0x22, 0xdd, 0x33, 0x91, 0xa6, 0x17, 0xf2, 0x05, 0x3c, 0xb8, 0x56, 0x53, + 0x72, 0xc9, 0xe6, 0x15, 0x6b, 0xab, 0x4c, 0x55, 0x72, 0xdf, 0x9e, 0xc3, 0xfd, 0xeb, 0x74, 0x25, + 0xb4, 0x05, 0x45, 0xab, 0x95, 0x28, 0x4b, 0x60, 0x59, 0x6d, 0xb9, 0x7e, 0x69, 0x15, 0x83, 0x9c, + 0xb6, 0x4c, 0xbf, 0xd2, 0x9a, 0x65, 0xb5, 0xe5, 0x70, 0x69, 0xd5, 0x2a, 0x39, 0x6d, 0x19, 0xda, + 0xb4, 0x6e, 0x2f, 0xe5, 0x20, 0xbd, 0x56, 0x5b, 0x92, 0xeb, 0xa2, 0xe2, 0x6d, 0x97, 0xab, 0x4b, + 0xd2, 0x3d, 0x81, 0x87, 0xd7, 0xeb, 0x4b, 0x88, 0x4b, 0x8a, 0x58, 0x2f, 0x55, 0x98, 0x3e, 0xfe, + 0x46, 0xc9, 0x35, 0xd5, 0xab, 0xb7, 0x9c, 0xbb, 0x6f, 0xa6, 0x05, 0x92, 0xbb, 0x6f, 0xe6, 0xe5, + 0xa1, 0xb6, 0x91, 0x7e, 0xdf, 0x0c, 0xfb, 0x22, 0xd7, 0xd3, 0xd2, 0x5d, 0xa1, 0xd6, 0x8f, 0xde, + 0x53, 0xf3, 0x7a, 0xc8, 0xf5, 0xb4, 0x6c, 0x35, 0xa8, 0x7d, 0xa3, 0xf7, 0xd4, 0xb8, 0x0d, 0xec, + 0xaf, 0x40, 0x69, 0x47, 0x62, 0x8c, 0xbc, 0x90, 0x73, 0x14, 0xf6, 0x11, 0xa7, 0x83, 0x00, 0x7b, + 0x93, 0xfc, 0x6c, 0x45, 0x51, 0x4f, 0xff, 0x6c, 0x7c, 0x14, 0x72, 0x7e, 0xd2, 0x3f, 0x55, 0xdf, + 0xe3, 0xd4, 0x12, 0x77, 0x56, 0xe2, 0x5e, 0x4d, 0xdd, 0x5d, 0x83, 0xfb, 0xd7, 0x5a, 0x74, 0x95, + 0x4d, 0x8f, 0x72, 0xdc, 0xf1, 0x48, 0x2f, 0xb3, 0x54, 0x9c, 0x49, 0x74, 0x69, 0x71, 0x30, 0x31, + 0x50, 0xfe, 0x9f, 0x3f, 0x83, 0x95, 0xf3, 0x20, 0x62, 0x68, 0x32, 0xef, 0xc9, 0x58, 0xd8, 0x1b, + 0xad, 0xef, 0x47, 0x01, 0x8d, 0x08, 0x3b, 0x26, 0xe2, 0x22, 0x64, 0x6f, 0xf8, 0x29, 0x09, 0x78, + 0xc8, 0xb8, 0x7a, 0x31, 0x95, 0xbd, 0xb9, 0xc9, 0xf0, 0x77, 0x97, 0xa4, 0x63, 0xfc, 0xfb, 0xbb, + 0xb1, 0xd8, 0xff, 0xfd, 0x9f, 0xab, 0x9a, 0xf5, 0xef, 0x55, 0xcd, 0xfa, 0xef, 0xaa, 0x66, 0xbd, + 0x76, 0x07, 0x54, 0xb4, 0xce, 0x63, 0x4e, 0x2b, 0x20, 0xa2, 0x4d, 0xbb, 0xa4, 0x43, 0xd8, 0xa0, + 0x3d, 0x24, 0xd8, 0x13, 0xc3, 0x4e, 0x28, 0x76, 0x69, 0x30, 0x20, 0x5c, 0xec, 0x9e, 0x0b, 0xba, + 0x1b, 0x60, 0x41, 0xdf, 0x92, 0x76, 0xf4, 0x66, 0xd0, 0x3e, 0x17, 0xb4, 0x8d, 0x7b, 0x38, 0x12, + 0x84, 0xf1, 0x36, 0x3a, 0x1f, 0x05, 0x21, 0x6f, 0xf3, 0xee, 0x90, 0xf8, 0xf8, 0xff, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x09, 0xa1, 0x8f, 0x85, 0x6e, 0x0e, 0x00, 0x00, +} + +func (m *Optics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Optics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Optics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.OpticsDiag) > 0 { + for iNdEx := len(m.OpticsDiag) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OpticsDiag[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOptics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *OpticsInfos) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpticsInfos) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpticsInfos) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OpticsDiagStats != nil { + { + size, err := m.OpticsDiagStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOptics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.SnmpIfIndex != nil { + i = encodeVarintOptics(dAtA, i, uint64(*m.SnmpIfIndex)) + i-- + dAtA[i] = 0x10 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintOptics(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OpticsDiagStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpticsDiagStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpticsDiagStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.OpticsLaneDiagStats) > 0 { + for iNdEx := len(m.OpticsLaneDiagStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OpticsLaneDiagStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOptics(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + } + if m.ModuleTempLowWarning != nil { + i-- + if *m.ModuleTempLowWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb0 + } + if m.ModuleTempHighWarning != nil { + i-- + if *m.ModuleTempHighWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.ModuleTempLowAlarm != nil { + i-- + if *m.ModuleTempLowAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.ModuleTempHighAlarm != nil { + i-- + if *m.ModuleTempHighAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.LaserBiasCurrentLowWarningThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserBiasCurrentLowWarningThreshold)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x91 + } + if m.LaserBiasCurrentHighWarningThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserBiasCurrentHighWarningThreshold)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x89 + } + if m.LaserBiasCurrentLowAlarmThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserBiasCurrentLowAlarmThreshold)))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x81 + } + if m.LaserBiasCurrentHighAlarmThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserBiasCurrentHighAlarmThreshold)))) + i-- + dAtA[i] = 0x79 + } + if m.LaserRxPowerLowWarningThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserRxPowerLowWarningThresholdDbm)))) + i-- + dAtA[i] = 0x71 + } + if m.LaserRxPowerHighWarningThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserRxPowerHighWarningThresholdDbm)))) + i-- + dAtA[i] = 0x69 + } + if m.LaserRxPowerLowAlarmThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserRxPowerLowAlarmThresholdDbm)))) + i-- + dAtA[i] = 0x61 + } + if m.LaserRxPowerHighAlarmThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserRxPowerHighAlarmThresholdDbm)))) + i-- + dAtA[i] = 0x59 + } + if m.LaserOutputPowerLowWarningThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserOutputPowerLowWarningThresholdDbm)))) + i-- + dAtA[i] = 0x51 + } + if m.LaserOutputPowerHighWarningThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserOutputPowerHighWarningThresholdDbm)))) + i-- + dAtA[i] = 0x49 + } + if m.LaserOutputPowerLowAlarmThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserOutputPowerLowAlarmThresholdDbm)))) + i-- + dAtA[i] = 0x41 + } + if m.LaserOutputPowerHighAlarmThresholdDbm != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaserOutputPowerHighAlarmThresholdDbm)))) + i-- + dAtA[i] = 0x39 + } + if m.ModuleTempLowWarningThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ModuleTempLowWarningThreshold)))) + i-- + dAtA[i] = 0x31 + } + if m.ModuleTempHighWarningThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ModuleTempHighWarningThreshold)))) + i-- + dAtA[i] = 0x29 + } + if m.ModuleTempLowAlarmThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ModuleTempLowAlarmThreshold)))) + i-- + dAtA[i] = 0x21 + } + if m.ModuleTempHighAlarmThreshold != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ModuleTempHighAlarmThreshold)))) + i-- + dAtA[i] = 0x19 + } + if m.ModuleTemp != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ModuleTemp)))) + i-- + dAtA[i] = 0x11 + } + if m.OpticsType != nil { + i = encodeVarintOptics(dAtA, i, uint64(*m.OpticsType)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *OpticsDiagLaneStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OpticsDiagLaneStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpticsDiagLaneStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LaneTxLaserDisabledAlarm != nil { + i-- + if *m.LaneTxLaserDisabledAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.LaneRxLossOfSignalAlarm != nil { + i-- + if *m.LaneRxLossOfSignalAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.LaneTxLossOfSignalAlarm != nil { + i-- + if *m.LaneTxLossOfSignalAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if m.LaneLaserBiasCurrentLowWarning != nil { + i-- + if *m.LaneLaserBiasCurrentLowWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if m.LaneLaserBiasCurrentHighWarning != nil { + i-- + if *m.LaneLaserBiasCurrentHighWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.LaneLaserBiasCurrentLowAlarm != nil { + i-- + if *m.LaneLaserBiasCurrentLowAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x78 + } + if m.LaneLaserBiasCurrentHighAlarm != nil { + i-- + if *m.LaneLaserBiasCurrentHighAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 + } + if m.LaneLaserReceiverPowerLowWarning != nil { + i-- + if *m.LaneLaserReceiverPowerLowWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + if m.LaneLaserReceiverPowerHighWarning != nil { + i-- + if *m.LaneLaserReceiverPowerHighWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.LaneLaserReceiverPowerLowAlarm != nil { + i-- + if *m.LaneLaserReceiverPowerLowAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.LaneLaserReceiverPowerHighAlarm != nil { + i-- + if *m.LaneLaserReceiverPowerHighAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.LaneLaserOutputPowerLowWarning != nil { + i-- + if *m.LaneLaserOutputPowerLowWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.LaneLaserOutputPowerHighWarning != nil { + i-- + if *m.LaneLaserOutputPowerHighWarning { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.LaneLaserOutputPowerLowAlarm != nil { + i-- + if *m.LaneLaserOutputPowerLowAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.LaneLaserOutputPowerHighAlarm != nil { + i-- + if *m.LaneLaserOutputPowerHighAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.LaneLaserBiasCurrent != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaneLaserBiasCurrent)))) + i-- + dAtA[i] = 0x29 + } + if m.LaneLaserReceiverPowerDbm != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.LaneLaserReceiverPowerDbm)))) + i-- + dAtA[i] = 0x25 + } + if m.LaneLaserOutputPowerDbm != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.LaneLaserOutputPowerDbm)))) + i-- + dAtA[i] = 0x1d + } + if m.LaneLaserTemperature != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.LaneLaserTemperature)))) + i-- + dAtA[i] = 0x11 + } + if m.LaneNumber != nil { + i = encodeVarintOptics(dAtA, i, uint64(*m.LaneNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOptics(dAtA []byte, offset int, v uint64) int { + offset -= sovOptics(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Optics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.OpticsDiag) > 0 { + for _, e := range m.OpticsDiag { + l = e.Size() + n += 1 + l + sovOptics(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *OpticsInfos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovOptics(uint64(l)) + } + if m.SnmpIfIndex != nil { + n += 1 + sovOptics(uint64(*m.SnmpIfIndex)) + } + if m.OpticsDiagStats != nil { + l = m.OpticsDiagStats.Size() + n += 1 + l + sovOptics(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *OpticsDiagStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OpticsType != nil { + n += 1 + sovOptics(uint64(*m.OpticsType)) + } + if m.ModuleTemp != nil { + n += 9 + } + if m.ModuleTempHighAlarmThreshold != nil { + n += 9 + } + if m.ModuleTempLowAlarmThreshold != nil { + n += 9 + } + if m.ModuleTempHighWarningThreshold != nil { + n += 9 + } + if m.ModuleTempLowWarningThreshold != nil { + n += 9 + } + if m.LaserOutputPowerHighAlarmThresholdDbm != nil { + n += 9 + } + if m.LaserOutputPowerLowAlarmThresholdDbm != nil { + n += 9 + } + if m.LaserOutputPowerHighWarningThresholdDbm != nil { + n += 9 + } + if m.LaserOutputPowerLowWarningThresholdDbm != nil { + n += 9 + } + if m.LaserRxPowerHighAlarmThresholdDbm != nil { + n += 9 + } + if m.LaserRxPowerLowAlarmThresholdDbm != nil { + n += 9 + } + if m.LaserRxPowerHighWarningThresholdDbm != nil { + n += 9 + } + if m.LaserRxPowerLowWarningThresholdDbm != nil { + n += 9 + } + if m.LaserBiasCurrentHighAlarmThreshold != nil { + n += 9 + } + if m.LaserBiasCurrentLowAlarmThreshold != nil { + n += 10 + } + if m.LaserBiasCurrentHighWarningThreshold != nil { + n += 10 + } + if m.LaserBiasCurrentLowWarningThreshold != nil { + n += 10 + } + if m.ModuleTempHighAlarm != nil { + n += 3 + } + if m.ModuleTempLowAlarm != nil { + n += 3 + } + if m.ModuleTempHighWarning != nil { + n += 3 + } + if m.ModuleTempLowWarning != nil { + n += 3 + } + if len(m.OpticsLaneDiagStats) > 0 { + for _, e := range m.OpticsLaneDiagStats { + l = e.Size() + n += 2 + l + sovOptics(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *OpticsDiagLaneStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LaneNumber != nil { + n += 1 + sovOptics(uint64(*m.LaneNumber)) + } + if m.LaneLaserTemperature != nil { + n += 9 + } + if m.LaneLaserOutputPowerDbm != nil { + n += 5 + } + if m.LaneLaserReceiverPowerDbm != nil { + n += 5 + } + if m.LaneLaserBiasCurrent != nil { + n += 9 + } + if m.LaneLaserOutputPowerHighAlarm != nil { + n += 2 + } + if m.LaneLaserOutputPowerLowAlarm != nil { + n += 2 + } + if m.LaneLaserOutputPowerHighWarning != nil { + n += 2 + } + if m.LaneLaserOutputPowerLowWarning != nil { + n += 2 + } + if m.LaneLaserReceiverPowerHighAlarm != nil { + n += 2 + } + if m.LaneLaserReceiverPowerLowAlarm != nil { + n += 2 + } + if m.LaneLaserReceiverPowerHighWarning != nil { + n += 2 + } + if m.LaneLaserReceiverPowerLowWarning != nil { + n += 2 + } + if m.LaneLaserBiasCurrentHighAlarm != nil { + n += 2 + } + if m.LaneLaserBiasCurrentLowAlarm != nil { + n += 2 + } + if m.LaneLaserBiasCurrentHighWarning != nil { + n += 3 + } + if m.LaneLaserBiasCurrentLowWarning != nil { + n += 3 + } + if m.LaneTxLossOfSignalAlarm != nil { + n += 3 + } + if m.LaneRxLossOfSignalAlarm != nil { + n += 3 + } + if m.LaneTxLaserDisabledAlarm != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovOptics(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOptics(x uint64) (n int) { + return sovOptics(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Optics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Optics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Optics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OpticsDiag", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOptics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOptics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OpticsDiag = append(m.OpticsDiag, &OpticsInfos{}) + if err := m.OpticsDiag[len(m.OpticsDiag)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOptics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpticsInfos) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpticsInfos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpticsInfos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthOptics + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOptics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnmpIfIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnmpIfIndex = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OpticsDiagStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOptics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOptics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OpticsDiagStats == nil { + m.OpticsDiagStats = &OpticsDiagStats{} + } + if err := m.OpticsDiagStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOptics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpticsDiagStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpticsDiagStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpticsDiagStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OpticsType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OpticsType = &v + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTemp", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ModuleTemp = &v2 + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempHighAlarmThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ModuleTempHighAlarmThreshold = &v2 + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempLowAlarmThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ModuleTempLowAlarmThreshold = &v2 + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempHighWarningThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ModuleTempHighWarningThreshold = &v2 + case 6: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempLowWarningThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ModuleTempLowWarningThreshold = &v2 + case 7: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserOutputPowerHighAlarmThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserOutputPowerHighAlarmThresholdDbm = &v2 + case 8: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserOutputPowerLowAlarmThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserOutputPowerLowAlarmThresholdDbm = &v2 + case 9: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserOutputPowerHighWarningThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserOutputPowerHighWarningThresholdDbm = &v2 + case 10: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserOutputPowerLowWarningThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserOutputPowerLowWarningThresholdDbm = &v2 + case 11: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserRxPowerHighAlarmThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserRxPowerHighAlarmThresholdDbm = &v2 + case 12: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserRxPowerLowAlarmThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserRxPowerLowAlarmThresholdDbm = &v2 + case 13: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserRxPowerHighWarningThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserRxPowerHighWarningThresholdDbm = &v2 + case 14: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserRxPowerLowWarningThresholdDbm", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserRxPowerLowWarningThresholdDbm = &v2 + case 15: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserBiasCurrentHighAlarmThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserBiasCurrentHighAlarmThreshold = &v2 + case 16: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserBiasCurrentLowAlarmThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserBiasCurrentLowAlarmThreshold = &v2 + case 17: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserBiasCurrentHighWarningThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserBiasCurrentHighWarningThreshold = &v2 + case 18: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaserBiasCurrentLowWarningThreshold", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaserBiasCurrentLowWarningThreshold = &v2 + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempHighAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ModuleTempHighAlarm = &b + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempLowAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ModuleTempLowAlarm = &b + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempHighWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ModuleTempHighWarning = &b + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleTempLowWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ModuleTempLowWarning = &b + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OpticsLaneDiagStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOptics + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOptics + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OpticsLaneDiagStats = append(m.OpticsLaneDiagStats, &OpticsDiagLaneStats{}) + if err := m.OpticsLaneDiagStats[len(m.OpticsLaneDiagStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOptics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OpticsDiagLaneStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OpticsDiagLaneStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpticsDiagLaneStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LaneNumber = &v + case 2: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserTemperature", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaneLaserTemperature = &v2 + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserOutputPowerDbm", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.LaneLaserOutputPowerDbm = &v2 + case 4: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserReceiverPowerDbm", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.LaneLaserReceiverPowerDbm = &v2 + case 5: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserBiasCurrent", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.LaneLaserBiasCurrent = &v2 + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserOutputPowerHighAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserOutputPowerHighAlarm = &b + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserOutputPowerLowAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserOutputPowerLowAlarm = &b + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserOutputPowerHighWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserOutputPowerHighWarning = &b + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserOutputPowerLowWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserOutputPowerLowWarning = &b + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserReceiverPowerHighAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserReceiverPowerHighAlarm = &b + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserReceiverPowerLowAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserReceiverPowerLowAlarm = &b + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserReceiverPowerHighWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserReceiverPowerHighWarning = &b + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserReceiverPowerLowWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserReceiverPowerLowWarning = &b + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserBiasCurrentHighAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserBiasCurrentHighAlarm = &b + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserBiasCurrentLowAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserBiasCurrentLowAlarm = &b + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserBiasCurrentHighWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserBiasCurrentHighWarning = &b + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneLaserBiasCurrentLowWarning", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneLaserBiasCurrentLowWarning = &b + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneTxLossOfSignalAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneTxLossOfSignalAlarm = &b + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneRxLossOfSignalAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneRxLossOfSignalAlarm = &b + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LaneTxLaserDisabledAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOptics + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LaneTxLaserDisabledAlarm = &b + default: + iNdEx = preIndex + skippy, err := skipOptics(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthOptics + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOptics(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowOptics + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowOptics + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowOptics + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthOptics + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOptics + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOptics + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOptics = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOptics = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOptics = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/optics.proto b/schema/optics.proto new file mode 100755 index 0000000..86920eb --- /dev/null +++ b/schema/optics.proto @@ -0,0 +1,180 @@ +// +// Copyrights (c) 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Ping Ding, March, 2016 +// +// This file defines the messages in Protocol Buffers format used by +// the port sensor. The-top level messages is Port. +// +// Version 1.1 +// + +syntax = "proto2"; +import "telemetry_top.proto"; +option go_package = "github.com/Juniper/jtimon/schema"; + +// +// +// +extend JuniperNetworksSensors { + optional Optics jnpr_optics_ext = 10; +} + +// +// Top-level message +// +message Optics { + repeated OpticsInfos Optics_diag = 1; +} + +// +// Optics Interface information +// +message OpticsInfos { + // Interface name, e.g., xe-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Global Index + optional uint32 snmp_if_index = 2; + + // Optics module Diagnostics statistics + optional OpticsDiagStats optics_diag_stats = 3; + +} + +// +// Optics Diagnostics stats +// +message OpticsDiagStats { + + optional uint32 optics_type = 1 ; + + // Module temperature + optional double module_temp = 2 [(telemetry_options).is_gauge = true]; + + // Module temperature threshold information + optional double module_temp_high_alarm_threshold = 3 [(telemetry_options).is_gauge = true]; + + optional double module_temp_low_alarm_threshold = 4 [(telemetry_options).is_gauge = true]; + + optional double module_temp_high_warning_threshold = 5 [(telemetry_options).is_gauge = true]; + + optional double module_temp_low_warning_threshold = 6 [(telemetry_options).is_gauge = true]; + + // laser output power threshold information + optional double laser_output_power_high_alarm_threshold_dbm = 7 [(telemetry_options).is_gauge = true]; + + optional double laser_output_power_low_alarm_threshold_dbm = 8 [(telemetry_options).is_gauge = true]; + + optional double laser_output_power_high_warning_threshold_dbm = 9 [(telemetry_options).is_gauge = true]; + + optional double laser_output_power_low_warning_threshold_dbm = 10 [(telemetry_options).is_gauge = true]; + + // laser rx power threshold information + optional double laser_rx_power_high_alarm_threshold_dbm = 11 [(telemetry_options).is_gauge = true]; + + optional double laser_rx_power_low_alarm_threshold_dbm = 12 [(telemetry_options).is_gauge = true]; + + optional double laser_rx_power_high_warning_threshold_dbm = 13 [(telemetry_options).is_gauge = true]; + + optional double laser_rx_power_low_warning_threshold_dbm = 14 [(telemetry_options).is_gauge = true]; + + // laser bias current threshold information + optional double laser_bias_current_high_alarm_threshold = 15 [(telemetry_options).is_gauge = true]; + + optional double laser_bias_current_low_alarm_threshold = 16 [(telemetry_options).is_gauge = true]; + + optional double laser_bias_current_high_warning_threshold = 17 [(telemetry_options).is_gauge = true]; + + optional double laser_bias_current_low_warning_threshold = 18 [(telemetry_options).is_gauge = true]; + + // Module temperature alarm information + optional bool module_temp_high_alarm = 19; + + optional bool module_temp_low_alarm = 20; + + optional bool module_temp_high_warning = 21; + + optional bool module_temp_low_warning = 22; + + // Optics module lane Diagnostics statistics + repeated OpticsDiagLaneStats optics_lane_diag_stats = 23; + +} + +// +// Optics Diagnostics lane stats +// +message OpticsDiagLaneStats { + + optional uint32 lane_number = 1 [(telemetry_options).is_key = true]; + + // lane Module temperature + optional double lane_laser_temperature = 2 [(telemetry_options).is_gauge = true]; + + // Laser receive power + optional float lane_laser_output_power_dbm = 3 [(telemetry_options).is_gauge = true]; + + // Laser transmit power + optional float lane_laser_receiver_power_dbm = 4 [(telemetry_options).is_gauge = true]; + + // Laser receive power + optional double lane_laser_bias_current = 5; + + //lane laser output power alarm + optional bool lane_laser_output_power_high_alarm = 6; + + optional bool lane_laser_output_power_low_alarm = 7; + + optional bool lane_laser_output_power_high_warning = 8; + + optional bool lane_laser_output_power_low_warning = 9; + + //lane laser receiver power alarm + optional bool lane_laser_receiver_power_high_alarm = 10; + + optional bool lane_laser_receiver_power_low_alarm = 11; + + optional bool lane_laser_receiver_power_high_warning = 12; + + optional bool lane_laser_receiver_power_low_warning = 13; + + //lane laser output power alarm + optional bool lane_laser_bias_current_high_alarm = 14; + + optional bool lane_laser_bias_current_low_alarm = 15; + + optional bool lane_laser_bias_current_high_warning = 16; + + optional bool lane_laser_bias_current_low_warning = 17; + + optional bool lane_tx_loss_of_signal_alarm = 18; + + optional bool lane_rx_loss_of_signal_alarm = 19; + + optional bool lane_tx_laser_disabled_alarm = 20; + +} + diff --git a/schema/packet_capture.pb.go b/schema/packet_capture.pb.go new file mode 100644 index 0000000..ec6f542 --- /dev/null +++ b/schema/packet_capture.pb.go @@ -0,0 +1,1439 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: packet_capture.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPfePacketCapture struct { + System *JunosPfePacketCaptureSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfePacketCapture) Reset() { *m = JunosPfePacketCapture{} } +func (m *JunosPfePacketCapture) String() string { return proto.CompactTextString(m) } +func (*JunosPfePacketCapture) ProtoMessage() {} +func (*JunosPfePacketCapture) Descriptor() ([]byte, []int) { + return fileDescriptor_9363568d980a8875, []int{0} +} +func (m *JunosPfePacketCapture) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfePacketCapture) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfePacketCapture.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfePacketCapture) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfePacketCapture.Merge(m, src) +} +func (m *JunosPfePacketCapture) XXX_Size() int { + return m.Size() +} +func (m *JunosPfePacketCapture) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfePacketCapture.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfePacketCapture proto.InternalMessageInfo + +func (m *JunosPfePacketCapture) GetSystem() *JunosPfePacketCaptureSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosPfePacketCaptureSystemType struct { + Linecard *JunosPfePacketCaptureSystemTypeLinecardType `protobuf:"bytes,151,opt,name=linecard" json:"linecard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfePacketCaptureSystemType) Reset() { *m = JunosPfePacketCaptureSystemType{} } +func (m *JunosPfePacketCaptureSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosPfePacketCaptureSystemType) ProtoMessage() {} +func (*JunosPfePacketCaptureSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_9363568d980a8875, []int{0, 0} +} +func (m *JunosPfePacketCaptureSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfePacketCaptureSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfePacketCaptureSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfePacketCaptureSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfePacketCaptureSystemType.Merge(m, src) +} +func (m *JunosPfePacketCaptureSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfePacketCaptureSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfePacketCaptureSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfePacketCaptureSystemType proto.InternalMessageInfo + +func (m *JunosPfePacketCaptureSystemType) GetLinecard() *JunosPfePacketCaptureSystemTypeLinecardType { + if m != nil { + return m.Linecard + } + return nil +} + +type JunosPfePacketCaptureSystemTypeLinecardType struct { + PacketCapture *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType `protobuf:"bytes,151,opt,name=packet_capture,json=packetCapture" json:"packet_capture,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardType) Reset() { + *m = JunosPfePacketCaptureSystemTypeLinecardType{} +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfePacketCaptureSystemTypeLinecardType) ProtoMessage() {} +func (*JunosPfePacketCaptureSystemTypeLinecardType) Descriptor() ([]byte, []int) { + return fileDescriptor_9363568d980a8875, []int{0, 0, 0} +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardType.Merge(m, src) +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardType proto.InternalMessageInfo + +func (m *JunosPfePacketCaptureSystemTypeLinecardType) GetPacketCapture() *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType { + if m != nil { + return m.PacketCapture + } + return nil +} + +type JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType struct { + Packet []*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList `protobuf:"bytes,151,rep,name=packet" json:"packet,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) Reset() { + *m = JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType{} +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) ProtoMessage() {} +func (*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) Descriptor() ([]byte, []int) { + return fileDescriptor_9363568d980a8875, []int{0, 0, 0, 0} +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType.Merge(m, src) +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType proto.InternalMessageInfo + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) GetPacket() []*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList { + if m != nil { + return m.Packet + } + return nil +} + +type JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList struct { + Id *uint64 `protobuf:"varint,51,opt,name=id" json:"id,omitempty"` + TotalLength *uint64 `protobuf:"varint,52,opt,name=total_length,json=totalLength" json:"total_length,omitempty"` + ActualLength *uint64 `protobuf:"varint,53,opt,name=actual_length,json=actualLength" json:"actual_length,omitempty"` + PacketData *string `protobuf:"bytes,54,opt,name=packet_data,json=packetData" json:"packet_data,omitempty"` + Timestamp *uint64 `protobuf:"varint,55,opt,name=timestamp" json:"timestamp,omitempty"` + IflIndex *uint32 `protobuf:"varint,56,opt,name=ifl_index,json=iflIndex" json:"ifl_index,omitempty"` + CosQueue *uint32 `protobuf:"varint,57,opt,name=cos_queue,json=cosQueue" json:"cos_queue,omitempty"` + Direction *string `protobuf:"bytes,58,opt,name=direction" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) Reset() { + *m = JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList{} +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) ProtoMessage() {} +func (*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) Descriptor() ([]byte, []int) { + return fileDescriptor_9363568d980a8875, []int{0, 0, 0, 0, 0} +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList.Merge(m, src) +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList proto.InternalMessageInfo + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetId() uint64 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetTotalLength() uint64 { + if m != nil && m.TotalLength != nil { + return *m.TotalLength + } + return 0 +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetActualLength() uint64 { + if m != nil && m.ActualLength != nil { + return *m.ActualLength + } + return 0 +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetPacketData() string { + if m != nil && m.PacketData != nil { + return *m.PacketData + } + return "" +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetTimestamp() uint64 { + if m != nil && m.Timestamp != nil { + return *m.Timestamp + } + return 0 +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetIflIndex() uint32 { + if m != nil && m.IflIndex != nil { + return *m.IflIndex + } + return 0 +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetCosQueue() uint32 { + if m != nil && m.CosQueue != nil { + return *m.CosQueue + } + return 0 +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) GetDirection() string { + if m != nil && m.Direction != nil { + return *m.Direction + } + return "" +} + +var E_JnprJunosPfePacketCaptureExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPfePacketCapture)(nil), + Field: 139, + Name: "jnpr_junos_pfe_packet_capture_ext", + Tag: "bytes,139,opt,name=jnpr_junos_pfe_packet_capture_ext", + Filename: "packet_capture.proto", +} + +func init() { + proto.RegisterType((*JunosPfePacketCapture)(nil), "junos_pfe_packet_capture") + proto.RegisterType((*JunosPfePacketCaptureSystemType)(nil), "junos_pfe_packet_capture.system_type") + proto.RegisterType((*JunosPfePacketCaptureSystemTypeLinecardType)(nil), "junos_pfe_packet_capture.system_type.linecard_type") + proto.RegisterType((*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType)(nil), "junos_pfe_packet_capture.system_type.linecard_type.packet_capture_type") + proto.RegisterType((*JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList)(nil), "junos_pfe_packet_capture.system_type.linecard_type.packet_capture_type.packet_list") + proto.RegisterExtension(E_JnprJunosPfePacketCaptureExt) +} + +func init() { proto.RegisterFile("packet_capture.proto", fileDescriptor_9363568d980a8875) } + +var fileDescriptor_9363568d980a8875 = []byte{ + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x4d, 0x8b, 0x13, 0x31, + 0x18, 0xc7, 0x99, 0xee, 0x0b, 0x6d, 0xba, 0xf5, 0x30, 0xab, 0x38, 0xd6, 0xa5, 0x76, 0x15, 0xa1, + 0x97, 0xce, 0xc0, 0xae, 0xaf, 0x7b, 0x10, 0x59, 0x15, 0x71, 0x11, 0xa9, 0xb3, 0x37, 0x2f, 0x31, + 0x3b, 0xf3, 0xb4, 0x4d, 0x3b, 0x4d, 0x62, 0xf2, 0x8c, 0xb6, 0xe0, 0x49, 0x4f, 0xa2, 0x77, 0xbf, + 0x92, 0xe0, 0xc5, 0x8f, 0x20, 0xfd, 0x00, 0x7e, 0x06, 0xc9, 0xa4, 0xdd, 0xb6, 0x60, 0x41, 0xc4, + 0x63, 0x7e, 0xcf, 0xff, 0xf9, 0xfd, 0xd3, 0x4e, 0xc8, 0x45, 0xc5, 0x92, 0x21, 0x20, 0x4d, 0x98, + 0xc2, 0x5c, 0x43, 0xa8, 0xb4, 0x44, 0x59, 0xdf, 0x45, 0xc8, 0x60, 0x04, 0xa8, 0x27, 0x14, 0xa5, + 0x72, 0xf0, 0xfa, 0xf7, 0x2d, 0x12, 0x0c, 0x72, 0x21, 0x0d, 0x55, 0x5d, 0xa0, 0xab, 0x7b, 0xfe, + 0x03, 0xb2, 0x6d, 0x26, 0x06, 0x61, 0x14, 0x7c, 0xf5, 0x9a, 0x5e, 0xab, 0x7a, 0x70, 0x33, 0x5c, + 0x97, 0x0d, 0x5d, 0x90, 0xe2, 0x44, 0x41, 0x3c, 0xdb, 0xaa, 0xff, 0xda, 0x24, 0xd5, 0x25, 0xee, + 0x77, 0x48, 0x39, 0xe3, 0x02, 0x12, 0xa6, 0xd3, 0xb9, 0xf1, 0xf0, 0xaf, 0x8c, 0xe1, 0x7c, 0xcd, + 0xf9, 0xcf, 0x2d, 0xf5, 0x2f, 0x9b, 0xa4, 0xb6, 0x32, 0xf3, 0x25, 0xb9, 0xb0, 0xea, 0x99, 0x37, + 0x3d, 0xfd, 0x87, 0xa6, 0x70, 0x35, 0xe8, 0xda, 0x6b, 0x0e, 0x3e, 0x72, 0xac, 0xfe, 0x69, 0x83, + 0xec, 0xfe, 0x21, 0xe6, 0x67, 0x64, 0xdb, 0x61, 0x7b, 0x81, 0x8d, 0x56, 0xf5, 0xe0, 0xf4, 0x3f, + 0x5d, 0x60, 0xce, 0x32, 0x6e, 0x30, 0x9e, 0x75, 0xd4, 0x3f, 0x96, 0x48, 0x75, 0x89, 0xfb, 0x97, + 0x48, 0x89, 0xa7, 0xc1, 0x61, 0xd3, 0x6b, 0x6d, 0x1e, 0x6f, 0x7d, 0x78, 0x58, 0x2a, 0x7b, 0x71, + 0x89, 0xa7, 0xfe, 0x3e, 0xd9, 0x41, 0x89, 0x2c, 0xa3, 0x19, 0x88, 0x1e, 0xf6, 0x83, 0x5b, 0x36, + 0x10, 0x57, 0x0b, 0xf6, 0xbc, 0x40, 0xfe, 0x0d, 0x52, 0x63, 0x09, 0xe6, 0x8b, 0xcc, 0xed, 0x22, + 0xb3, 0xe3, 0xe0, 0x2c, 0x74, 0xed, 0xbc, 0x2d, 0x65, 0xc8, 0x82, 0x3b, 0x4d, 0xaf, 0x55, 0x89, + 0x89, 0x43, 0x8f, 0x19, 0x32, 0x7f, 0x8f, 0x54, 0x90, 0x8f, 0xc0, 0x20, 0x1b, 0xa9, 0xe0, 0x6e, + 0x61, 0x58, 0x00, 0xff, 0x2a, 0xa9, 0xf0, 0x6e, 0x46, 0xb9, 0x48, 0x61, 0x1c, 0xdc, 0x6b, 0x7a, + 0xad, 0x5a, 0x5c, 0xe6, 0xdd, 0xec, 0x99, 0x3d, 0xdb, 0x61, 0x22, 0x0d, 0x7d, 0x93, 0x43, 0x0e, + 0xc1, 0x7d, 0x37, 0x4c, 0xa4, 0x79, 0x69, 0xcf, 0xd6, 0x9b, 0x72, 0x0d, 0x09, 0x72, 0x29, 0x82, + 0xa3, 0xa2, 0x76, 0x01, 0x8e, 0xde, 0x93, 0xfd, 0x81, 0x50, 0x9a, 0xae, 0xfb, 0xa3, 0x29, 0x8c, + 0xd1, 0xbf, 0x1c, 0x9e, 0xe4, 0x82, 0x2b, 0xd0, 0x2f, 0x00, 0xdf, 0x49, 0x3d, 0x34, 0xa7, 0x20, + 0x8c, 0xd4, 0x26, 0xf8, 0xec, 0x1e, 0xca, 0x95, 0xb5, 0xdf, 0x29, 0xde, 0xb3, 0xf6, 0x13, 0x3b, + 0xed, 0x74, 0xa1, 0xb3, 0xfc, 0x0c, 0x9e, 0x8c, 0xf1, 0xf8, 0xf5, 0xb7, 0x69, 0xc3, 0xfb, 0x31, + 0x6d, 0x78, 0x3f, 0xa7, 0x0d, 0xef, 0x55, 0xdc, 0xe3, 0x68, 0x4d, 0xb6, 0x29, 0x14, 0x80, 0x11, + 0x4f, 0xe0, 0x0c, 0x74, 0x2f, 0xea, 0x03, 0xcb, 0xb0, 0x7f, 0x26, 0xb1, 0xcd, 0x45, 0x0f, 0x0c, + 0xb6, 0x07, 0xc8, 0xdb, 0x82, 0x21, 0x7f, 0x0b, 0x91, 0x1a, 0xf6, 0xa2, 0x01, 0xf2, 0x88, 0xa5, + 0x4c, 0x21, 0x68, 0x13, 0xb9, 0x9f, 0x12, 0x99, 0xa4, 0x0f, 0x23, 0xf6, 0x3b, 0x00, 0x00, 0xff, + 0xff, 0x8a, 0x51, 0xf2, 0x45, 0xd9, 0x03, 0x00, 0x00, +} + +func (m *JunosPfePacketCapture) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfePacketCapture) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfePacketCapture) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketCapture(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfePacketCaptureSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfePacketCaptureSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfePacketCaptureSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Linecard != nil { + { + size, err := m.Linecard.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketCapture(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PacketCapture != nil { + { + size, err := m.PacketCapture.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketCapture(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Packet) > 0 { + for iNdEx := len(m.Packet) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Packet[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketCapture(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Direction != nil { + i -= len(*m.Direction) + copy(dAtA[i:], *m.Direction) + i = encodeVarintPacketCapture(dAtA, i, uint64(len(*m.Direction))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.CosQueue != nil { + i = encodeVarintPacketCapture(dAtA, i, uint64(*m.CosQueue)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.IflIndex != nil { + i = encodeVarintPacketCapture(dAtA, i, uint64(*m.IflIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Timestamp != nil { + i = encodeVarintPacketCapture(dAtA, i, uint64(*m.Timestamp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.PacketData != nil { + i -= len(*m.PacketData) + copy(dAtA[i:], *m.PacketData) + i = encodeVarintPacketCapture(dAtA, i, uint64(len(*m.PacketData))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ActualLength != nil { + i = encodeVarintPacketCapture(dAtA, i, uint64(*m.ActualLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.TotalLength != nil { + i = encodeVarintPacketCapture(dAtA, i, uint64(*m.TotalLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Id != nil { + i = encodeVarintPacketCapture(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintPacketCapture(dAtA []byte, offset int, v uint64) int { + offset -= sovPacketCapture(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPfePacketCapture) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovPacketCapture(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfePacketCaptureSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Linecard != nil { + l = m.Linecard.Size() + n += 2 + l + sovPacketCapture(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PacketCapture != nil { + l = m.PacketCapture.Size() + n += 2 + l + sovPacketCapture(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Packet) > 0 { + for _, e := range m.Packet { + l = e.Size() + n += 2 + l + sovPacketCapture(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovPacketCapture(uint64(*m.Id)) + } + if m.TotalLength != nil { + n += 2 + sovPacketCapture(uint64(*m.TotalLength)) + } + if m.ActualLength != nil { + n += 2 + sovPacketCapture(uint64(*m.ActualLength)) + } + if m.PacketData != nil { + l = len(*m.PacketData) + n += 2 + l + sovPacketCapture(uint64(l)) + } + if m.Timestamp != nil { + n += 2 + sovPacketCapture(uint64(*m.Timestamp)) + } + if m.IflIndex != nil { + n += 2 + sovPacketCapture(uint64(*m.IflIndex)) + } + if m.CosQueue != nil { + n += 2 + sovPacketCapture(uint64(*m.CosQueue)) + } + if m.Direction != nil { + l = len(*m.Direction) + n += 2 + l + sovPacketCapture(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPacketCapture(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPacketCapture(x uint64) (n int) { + return sovPacketCapture(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPfePacketCapture) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pfe_packet_capture: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pfe_packet_capture: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketCapture + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketCapture + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosPfePacketCaptureSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketCapture(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfePacketCaptureSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Linecard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketCapture + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketCapture + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Linecard == nil { + m.Linecard = &JunosPfePacketCaptureSystemTypeLinecardType{} + } + if err := m.Linecard.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketCapture(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfePacketCaptureSystemTypeLinecardType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: linecard_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: linecard_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketCapture", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketCapture + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketCapture + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PacketCapture == nil { + m.PacketCapture = &JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType{} + } + if err := m.PacketCapture.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketCapture(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: packet_capture_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: packet_capture_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketCapture + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketCapture + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Packet = append(m.Packet, &JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList{}) + if err := m.Packet[len(m.Packet)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketCapture(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfePacketCaptureSystemTypeLinecardTypePacketCaptureTypePacketList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: packet_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: packet_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalLength", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalLength = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActualLength", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActualLength = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPacketCapture + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPacketCapture + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PacketData = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Timestamp = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IflIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IflIndex = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CosQueue", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CosQueue = &v + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPacketCapture + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPacketCapture + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Direction = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketCapture(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketCapture + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPacketCapture(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacketCapture + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPacketCapture + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPacketCapture + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPacketCapture + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPacketCapture = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPacketCapture = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPacketCapture = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/packet_capture.proto b/schema/packet_capture.proto new file mode 100755 index 0000000..466600c --- /dev/null +++ b/schema/packet_capture.proto @@ -0,0 +1,30 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pfe_packet_capture jnpr_junos_pfe_packet_capture_ext = 139; +} + +message junos_pfe_packet_capture { + optional system_type system = 151; + message system_type { + optional linecard_type linecard = 151; + message linecard_type { + optional packet_capture_type packet_capture = 151; + message packet_capture_type { + message packet_list { + optional uint64 id = 51 [(telemetry_options).is_key = true]; + optional uint64 total_length = 52; + optional uint64 actual_length = 53; + optional string packet_data = 54; + optional uint64 timestamp = 55; + optional uint32 ifl_index = 56; + optional uint32 cos_queue = 57; + optional string direction = 58; + } + repeated packet_list packet = 151; + } + } + } +} diff --git a/schema/packet_stats.pb.go b/schema/packet_stats.pb.go new file mode 100644 index 0000000..18e9c0c --- /dev/null +++ b/schema/packet_stats.pb.go @@ -0,0 +1,1241 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: packet_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type PacketStatistics struct { + // List of stats aggregated across all forwarding engines + PacketStats []*PacketStatsClass `protobuf:"bytes,1,rep,name=packet_stats,json=packetStats" json:"packet_stats,omitempty"` + // List of stats per forwarding engine + PacketStatsPfe []*PacketStatsPacketForwardingEngine `protobuf:"bytes,2,rep,name=packet_stats_pfe,json=packetStatsPfe" json:"packet_stats_pfe,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PacketStatistics) Reset() { *m = PacketStatistics{} } +func (m *PacketStatistics) String() string { return proto.CompactTextString(m) } +func (*PacketStatistics) ProtoMessage() {} +func (*PacketStatistics) Descriptor() ([]byte, []int) { + return fileDescriptor_b21e52ae69b7e1b3, []int{0} +} +func (m *PacketStatistics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PacketStatistics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PacketStatistics.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PacketStatistics) XXX_Merge(src proto.Message) { + xxx_messageInfo_PacketStatistics.Merge(m, src) +} +func (m *PacketStatistics) XXX_Size() int { + return m.Size() +} +func (m *PacketStatistics) XXX_DiscardUnknown() { + xxx_messageInfo_PacketStatistics.DiscardUnknown(m) +} + +var xxx_messageInfo_PacketStatistics proto.InternalMessageInfo + +func (m *PacketStatistics) GetPacketStats() []*PacketStatsClass { + if m != nil { + return m.PacketStats + } + return nil +} + +func (m *PacketStatistics) GetPacketStatsPfe() []*PacketStatsPacketForwardingEngine { + if m != nil { + return m.PacketStatsPfe + } + return nil +} + +type PacketStatsPacketForwardingEngine struct { + // A string of the form pfe-X/Y that identifies a PFE in the system + PfeIdentifier *string `protobuf:"bytes,1,req,name=pfe_identifier,json=pfeIdentifier" json:"pfe_identifier,omitempty"` + // Array of all counters that are available + PacketStats []*PacketStatsClass `protobuf:"bytes,2,rep,name=packet_stats,json=packetStats" json:"packet_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PacketStatsPacketForwardingEngine) Reset() { *m = PacketStatsPacketForwardingEngine{} } +func (m *PacketStatsPacketForwardingEngine) String() string { return proto.CompactTextString(m) } +func (*PacketStatsPacketForwardingEngine) ProtoMessage() {} +func (*PacketStatsPacketForwardingEngine) Descriptor() ([]byte, []int) { + return fileDescriptor_b21e52ae69b7e1b3, []int{1} +} +func (m *PacketStatsPacketForwardingEngine) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PacketStatsPacketForwardingEngine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PacketStatsPacketForwardingEngine.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PacketStatsPacketForwardingEngine) XXX_Merge(src proto.Message) { + xxx_messageInfo_PacketStatsPacketForwardingEngine.Merge(m, src) +} +func (m *PacketStatsPacketForwardingEngine) XXX_Size() int { + return m.Size() +} +func (m *PacketStatsPacketForwardingEngine) XXX_DiscardUnknown() { + xxx_messageInfo_PacketStatsPacketForwardingEngine.DiscardUnknown(m) +} + +var xxx_messageInfo_PacketStatsPacketForwardingEngine proto.InternalMessageInfo + +func (m *PacketStatsPacketForwardingEngine) GetPfeIdentifier() string { + if m != nil && m.PfeIdentifier != nil { + return *m.PfeIdentifier + } + return "" +} + +func (m *PacketStatsPacketForwardingEngine) GetPacketStats() []*PacketStatsClass { + if m != nil { + return m.PacketStats + } + return nil +} + +type PacketStatsClass struct { + // Broad category that defines this class of counters + Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` + // Packet/Byte counters for the above category + Counter *PacketStatsCounter `protobuf:"bytes,2,req,name=counter" json:"counter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PacketStatsClass) Reset() { *m = PacketStatsClass{} } +func (m *PacketStatsClass) String() string { return proto.CompactTextString(m) } +func (*PacketStatsClass) ProtoMessage() {} +func (*PacketStatsClass) Descriptor() ([]byte, []int) { + return fileDescriptor_b21e52ae69b7e1b3, []int{2} +} +func (m *PacketStatsClass) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PacketStatsClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PacketStatsClass.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PacketStatsClass) XXX_Merge(src proto.Message) { + xxx_messageInfo_PacketStatsClass.Merge(m, src) +} +func (m *PacketStatsClass) XXX_Size() int { + return m.Size() +} +func (m *PacketStatsClass) XXX_DiscardUnknown() { + xxx_messageInfo_PacketStatsClass.DiscardUnknown(m) +} + +var xxx_messageInfo_PacketStatsClass proto.InternalMessageInfo + +func (m *PacketStatsClass) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *PacketStatsClass) GetCounter() *PacketStatsCounter { + if m != nil { + return m.Counter + } + return nil +} + +type PacketStatsCounter struct { + // Counter64: This is a counter representing the total number of packets + // that were dropped for a given error. + PacketCount *uint64 `protobuf:"varint,1,req,name=packet_count,json=packetCount" json:"packet_count,omitempty"` + // Counter64: This is a counter representing the total number of + // bytes that were dropped for a given error. + ByteCount *uint64 `protobuf:"varint,2,opt,name=byte_count,json=byteCount" json:"byte_count,omitempty"` + // Rate: This value represents the rate of packets dropped + // due to a given error, expressed in packets per second. + // On most platforms, this rate is computed over a 1 second interval. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + // Rate: This value represents the total number of + // bits per second that were dropped for a given error. + BitRate *uint64 `protobuf:"varint,4,opt,name=bit_rate,json=bitRate" json:"bit_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PacketStatsCounter) Reset() { *m = PacketStatsCounter{} } +func (m *PacketStatsCounter) String() string { return proto.CompactTextString(m) } +func (*PacketStatsCounter) ProtoMessage() {} +func (*PacketStatsCounter) Descriptor() ([]byte, []int) { + return fileDescriptor_b21e52ae69b7e1b3, []int{3} +} +func (m *PacketStatsCounter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PacketStatsCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PacketStatsCounter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PacketStatsCounter) XXX_Merge(src proto.Message) { + xxx_messageInfo_PacketStatsCounter.Merge(m, src) +} +func (m *PacketStatsCounter) XXX_Size() int { + return m.Size() +} +func (m *PacketStatsCounter) XXX_DiscardUnknown() { + xxx_messageInfo_PacketStatsCounter.DiscardUnknown(m) +} + +var xxx_messageInfo_PacketStatsCounter proto.InternalMessageInfo + +func (m *PacketStatsCounter) GetPacketCount() uint64 { + if m != nil && m.PacketCount != nil { + return *m.PacketCount + } + return 0 +} + +func (m *PacketStatsCounter) GetByteCount() uint64 { + if m != nil && m.ByteCount != nil { + return *m.ByteCount + } + return 0 +} + +func (m *PacketStatsCounter) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *PacketStatsCounter) GetBitRate() uint64 { + if m != nil && m.BitRate != nil { + return *m.BitRate + } + return 0 +} + +var E_JnprPacketStatisticsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*PacketStatistics)(nil), + Field: 8, + Name: "jnpr_packet_statistics_ext", + Tag: "bytes,8,opt,name=jnpr_packet_statistics_ext", + Filename: "packet_stats.proto", +} + +func init() { + proto.RegisterType((*PacketStatistics)(nil), "PacketStatistics") + proto.RegisterType((*PacketStatsPacketForwardingEngine)(nil), "PacketStatsPacketForwardingEngine") + proto.RegisterType((*PacketStatsClass)(nil), "PacketStatsClass") + proto.RegisterType((*PacketStatsCounter)(nil), "PacketStatsCounter") + proto.RegisterExtension(E_JnprPacketStatisticsExt) +} + +func init() { proto.RegisterFile("packet_stats.proto", fileDescriptor_b21e52ae69b7e1b3) } + +var fileDescriptor_b21e52ae69b7e1b3 = []byte{ + // 433 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd4, 0x30, + 0x10, 0x86, 0xe5, 0x74, 0xa5, 0xb6, 0x5e, 0xa8, 0x8a, 0x7b, 0x68, 0xa8, 0xc4, 0x92, 0x46, 0x42, + 0xda, 0xcb, 0x26, 0x52, 0xc5, 0x89, 0x23, 0xa8, 0x48, 0x20, 0x84, 0xaa, 0x54, 0x5c, 0xb8, 0x04, + 0x27, 0x3b, 0xc9, 0x4e, 0x76, 0xd7, 0xb6, 0xec, 0x59, 0xda, 0xde, 0x78, 0x06, 0x0e, 0x3c, 0x13, + 0x47, 0x1e, 0x01, 0xed, 0x93, 0xa0, 0xda, 0xdb, 0x36, 0xb4, 0x07, 0xb8, 0x59, 0xff, 0xff, 0xfd, + 0xbf, 0x3d, 0x23, 0x73, 0x61, 0x64, 0x3d, 0x07, 0x2a, 0x1d, 0x49, 0x72, 0x99, 0xb1, 0x9a, 0xf4, + 0xd1, 0x01, 0xc1, 0x02, 0x96, 0x40, 0xf6, 0xaa, 0x24, 0x6d, 0x82, 0x98, 0xfe, 0x60, 0x7c, 0xff, + 0xcc, 0xb3, 0xe7, 0x24, 0x09, 0x1d, 0x61, 0xed, 0xc4, 0x4b, 0xfe, 0xa8, 0x9f, 0x8f, 0x59, 0xb2, + 0x35, 0x1e, 0x9e, 0x3c, 0xc9, 0xee, 0x40, 0xf7, 0x66, 0x21, 0x9d, 0x2b, 0x86, 0xe6, 0x4e, 0x11, + 0x1f, 0xf8, 0x7e, 0x3f, 0x55, 0x9a, 0x06, 0xe2, 0xc8, 0x27, 0xd3, 0x7e, 0x32, 0x1c, 0xdf, 0x6a, + 0x7b, 0x21, 0xed, 0x14, 0x55, 0x7b, 0xaa, 0x5a, 0x54, 0x50, 0xec, 0xf5, 0xaa, 0xce, 0x1a, 0x48, + 0xbf, 0x31, 0x7e, 0xfc, 0xcf, 0x94, 0x78, 0xc1, 0xf7, 0x4c, 0x03, 0x25, 0x4e, 0x41, 0x11, 0x36, + 0x08, 0x36, 0x66, 0x49, 0x34, 0xde, 0x2d, 0x1e, 0x9b, 0x06, 0xde, 0xdd, 0x8a, 0x0f, 0x06, 0x8a, + 0xfe, 0x67, 0xa0, 0xf4, 0x53, 0x7f, 0x35, 0x01, 0x10, 0x82, 0x0f, 0x94, 0x5c, 0xc2, 0xe6, 0x1a, + 0x7f, 0x16, 0x13, 0xbe, 0x5d, 0xeb, 0x95, 0x22, 0xb0, 0x71, 0x94, 0x44, 0xe3, 0xe1, 0xc9, 0xc1, + 0x5f, 0xc5, 0xc1, 0x2a, 0x6e, 0x98, 0xf4, 0x3b, 0xe3, 0xe2, 0xa1, 0x2f, 0x8e, 0x6f, 0xdf, 0xe8, + 0x41, 0x7f, 0xc3, 0xe0, 0xe6, 0x41, 0x1e, 0x12, 0xcf, 0x38, 0xaf, 0xae, 0x08, 0x36, 0x40, 0x94, + 0xb0, 0xf1, 0xa0, 0xd8, 0xbd, 0x56, 0x82, 0xfd, 0x9c, 0x6f, 0xe8, 0xd2, 0x4a, 0x82, 0x78, 0xcb, + 0xfb, 0x3c, 0x48, 0x85, 0x24, 0x10, 0x4f, 0xf9, 0x4e, 0x85, 0x1b, 0x77, 0xe0, 0xdd, 0xed, 0x0a, + 0xbd, 0xf5, 0xaa, 0xe5, 0x47, 0x9d, 0x32, 0xb6, 0xec, 0xad, 0x29, 0x7c, 0x86, 0x12, 0x2e, 0x49, + 0x1c, 0x66, 0xef, 0x57, 0x0a, 0x0d, 0xd8, 0x8f, 0x40, 0x17, 0xda, 0xce, 0xdd, 0x39, 0x28, 0xa7, + 0xad, 0x8b, 0x77, 0x12, 0x76, 0x6f, 0x91, 0x21, 0x55, 0x1c, 0x5e, 0xb7, 0xdd, 0x57, 0x4f, 0x2f, + 0xe9, 0xf5, 0x97, 0x9f, 0xeb, 0x11, 0xfb, 0xb5, 0x1e, 0xb1, 0xdf, 0xeb, 0x11, 0xfb, 0x5c, 0xb4, + 0x48, 0x59, 0x17, 0xba, 0x33, 0x05, 0x94, 0x63, 0x0d, 0x15, 0xd8, 0x36, 0x9f, 0x81, 0x5c, 0xd0, + 0xac, 0xd2, 0x34, 0x41, 0xd5, 0x82, 0xa3, 0x49, 0x47, 0x38, 0x51, 0x92, 0xf0, 0x2b, 0xe4, 0x66, + 0xde, 0xe6, 0x1d, 0x61, 0x2e, 0xa7, 0xd2, 0x10, 0x58, 0x97, 0x97, 0xdd, 0x4a, 0x69, 0x97, 0xbb, + 0x7a, 0x06, 0x4b, 0xf9, 0x27, 0x00, 0x00, 0xff, 0xff, 0x21, 0xc3, 0x44, 0x18, 0xfc, 0x02, 0x00, + 0x00, +} + +func (m *PacketStatistics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PacketStatistics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PacketStatistics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PacketStatsPfe) > 0 { + for iNdEx := len(m.PacketStatsPfe) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PacketStatsPfe[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.PacketStats) > 0 { + for iNdEx := len(m.PacketStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PacketStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *PacketStatsPacketForwardingEngine) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PacketStatsPacketForwardingEngine) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PacketStatsPacketForwardingEngine) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PacketStats) > 0 { + for iNdEx := len(m.PacketStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PacketStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.PfeIdentifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("pfe_identifier") + } else { + i -= len(*m.PfeIdentifier) + copy(dAtA[i:], *m.PfeIdentifier) + i = encodeVarintPacketStats(dAtA, i, uint64(len(*m.PfeIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PacketStatsClass) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PacketStatsClass) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PacketStatsClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counter == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("counter") + } else { + { + size, err := m.Counter.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacketStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Name == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } else { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintPacketStats(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PacketStatsCounter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PacketStatsCounter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PacketStatsCounter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BitRate != nil { + i = encodeVarintPacketStats(dAtA, i, uint64(*m.BitRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintPacketStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.ByteCount != nil { + i = encodeVarintPacketStats(dAtA, i, uint64(*m.ByteCount)) + i-- + dAtA[i] = 0x10 + } + if m.PacketCount == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("packet_count") + } else { + i = encodeVarintPacketStats(dAtA, i, uint64(*m.PacketCount)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPacketStats(dAtA []byte, offset int, v uint64) int { + offset -= sovPacketStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PacketStatistics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PacketStats) > 0 { + for _, e := range m.PacketStats { + l = e.Size() + n += 1 + l + sovPacketStats(uint64(l)) + } + } + if len(m.PacketStatsPfe) > 0 { + for _, e := range m.PacketStatsPfe { + l = e.Size() + n += 1 + l + sovPacketStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PacketStatsPacketForwardingEngine) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PfeIdentifier != nil { + l = len(*m.PfeIdentifier) + n += 1 + l + sovPacketStats(uint64(l)) + } + if len(m.PacketStats) > 0 { + for _, e := range m.PacketStats { + l = e.Size() + n += 1 + l + sovPacketStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PacketStatsClass) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 1 + l + sovPacketStats(uint64(l)) + } + if m.Counter != nil { + l = m.Counter.Size() + n += 1 + l + sovPacketStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PacketStatsCounter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PacketCount != nil { + n += 1 + sovPacketStats(uint64(*m.PacketCount)) + } + if m.ByteCount != nil { + n += 1 + sovPacketStats(uint64(*m.ByteCount)) + } + if m.PacketRate != nil { + n += 1 + sovPacketStats(uint64(*m.PacketRate)) + } + if m.BitRate != nil { + n += 1 + sovPacketStats(uint64(*m.BitRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPacketStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPacketStats(x uint64) (n int) { + return sovPacketStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PacketStatistics) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PacketStatistics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PacketStatistics: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PacketStats = append(m.PacketStats, &PacketStatsClass{}) + if err := m.PacketStats[len(m.PacketStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketStatsPfe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PacketStatsPfe = append(m.PacketStatsPfe, &PacketStatsPacketForwardingEngine{}) + if err := m.PacketStatsPfe[len(m.PacketStatsPfe)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PacketStatsPacketForwardingEngine) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PacketStatsPacketForwardingEngine: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PacketStatsPacketForwardingEngine: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PfeIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPacketStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPacketStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PfeIdentifier = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PacketStats = append(m.PacketStats, &PacketStatsClass{}) + if err := m.PacketStats[len(m.PacketStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacketStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("pfe_identifier") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PacketStatsClass) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PacketStatsClass: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PacketStatsClass: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPacketStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPacketStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacketStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacketStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counter == nil { + m.Counter = &PacketStatsCounter{} + } + if err := m.Counter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + default: + iNdEx = preIndex + skippy, err := skipPacketStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("counter") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PacketStatsCounter) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PacketStatsCounter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PacketStatsCounter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketCount = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteCount = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BitRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacketStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BitRate = &v + default: + iNdEx = preIndex + skippy, err := skipPacketStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPacketStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("packet_count") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPacketStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacketStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacketStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacketStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPacketStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPacketStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPacketStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPacketStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPacketStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPacketStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/packet_stats.proto b/schema/packet_stats.proto new file mode 100755 index 0000000..b677d04 --- /dev/null +++ b/schema/packet_stats.proto @@ -0,0 +1,88 @@ +// +// This defines the gpb message format used by the packet stats sensort +// +// The top level messages is PacketStats +// +// Copyrights (c) 2015, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// +// +// Nitin Kumar, Jan 2015 +// +// This file defines the messages in Protocol Buffers format used by +// the packet statistics sensor. The top level message is PacketStatistics +// +// Version 1.0 +// +syntax = "proto2"; +import "telemetry_top.proto"; +option go_package = "github.com/Juniper/jtimon/schema"; + +// +// This occupies branch 8 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional PacketStatistics jnpr_packet_statistics_ext = 8; +} + +message PacketStatistics { + // List of stats aggregated across all forwarding engines + repeated PacketStatsClass packet_stats = 1; + + // List of stats per forwarding engine + repeated PacketStatsPacketForwardingEngine packet_stats_pfe = 2; +} + +message PacketStatsPacketForwardingEngine { + // A string of the form pfe-X/Y that identifies a PFE in the system + required string pfe_identifier = 1; + + // Array of all counters that are available + repeated PacketStatsClass packet_stats = 2; +} + +message PacketStatsClass { + // Broad category that defines this class of counters + required string name = 1; + + // Packet/Byte counters for the above category + required PacketStatsCounter counter = 2; +} + +message PacketStatsCounter { + // Counter64: This is a counter representing the total number of packets + // that were dropped for a given error. + required uint64 packet_count = 1; + + // Counter64: This is a counter representing the total number of + // bytes that were dropped for a given error. + optional uint64 byte_count = 2; + + // Rate: This value represents the rate of packets dropped + // due to a given error, expressed in packets per second. + // On most platforms, this rate is computed over a 1 second interval. + optional uint64 packet_rate = 3; + + // Rate: This value represents the total number of + // bits per second that were dropped for a given error. + optional uint64 bit_rate = 4; +} diff --git a/schema/pbj.pb.go b/schema/pbj.pb.go new file mode 100644 index 0000000..2de85d8 --- /dev/null +++ b/schema/pbj.pb.go @@ -0,0 +1,684 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pbj.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type FieldType int32 + +const ( + FieldType_FT_DEFAULT FieldType = 0 + FieldType_FT_CALLBACK FieldType = 1 + FieldType_FT_POINTER FieldType = 4 + FieldType_FT_STATIC FieldType = 2 + FieldType_FT_IGNORE FieldType = 3 +) + +var FieldType_name = map[int32]string{ + 0: "FT_DEFAULT", + 1: "FT_CALLBACK", + 4: "FT_POINTER", + 2: "FT_STATIC", + 3: "FT_IGNORE", +} + +var FieldType_value = map[string]int32{ + "FT_DEFAULT": 0, + "FT_CALLBACK": 1, + "FT_POINTER": 4, + "FT_STATIC": 2, + "FT_IGNORE": 3, +} + +func (x FieldType) Enum() *FieldType { + p := new(FieldType) + *p = x + return p +} + +func (x FieldType) String() string { + return proto.EnumName(FieldType_name, int32(x)) +} + +func (x *FieldType) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FieldType_value, data, "FieldType") + if err != nil { + return err + } + *x = FieldType(value) + return nil +} + +func (FieldType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_adec4434a342376e, []int{0} +} + +// This is the inner options message, which basically defines options for +// a field. When it is used in message or file scope, it applies to all +// fields. +type PBJOptions struct { + // Allocated size for 'bytes' and 'string' fields. + MaxSize *int32 `protobuf:"varint,1,opt,name=max_size,json=maxSize" json:"max_size,omitempty"` + // Allocated number of entries in arrays ('repeated' fields) + MaxCount *int32 `protobuf:"varint,2,opt,name=max_count,json=maxCount" json:"max_count,omitempty"` + // Force type of field (callback or static allocation) + Type *FieldType `protobuf:"varint,3,opt,name=type,enum=FieldType,def=0" json:"type,omitempty"` + // Use long names for enums, i.e. EnumName_EnumValue. + LongNames *bool `protobuf:"varint,4,opt,name=long_names,json=longNames,def=1" json:"long_names,omitempty"` + // Add 'packed' attribute to generated structs. + // Note: this cannot be used on CPUs that break on unaligned + // accesses to variables. + PackedStruct *bool `protobuf:"varint,5,opt,name=packed_struct,json=packedStruct,def=0" json:"packed_struct,omitempty"` + // Skip this message + SkipMessage *bool `protobuf:"varint,6,opt,name=skip_message,json=skipMessage,def=0" json:"skip_message,omitempty"` + CacheSize *bool `protobuf:"varint,7,opt,name=cache_size,json=cacheSize,def=1" json:"cache_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PBJOptions) Reset() { *m = PBJOptions{} } +func (m *PBJOptions) String() string { return proto.CompactTextString(m) } +func (*PBJOptions) ProtoMessage() {} +func (*PBJOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_adec4434a342376e, []int{0} +} +func (m *PBJOptions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PBJOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PBJOptions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PBJOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_PBJOptions.Merge(m, src) +} +func (m *PBJOptions) XXX_Size() int { + return m.Size() +} +func (m *PBJOptions) XXX_DiscardUnknown() { + xxx_messageInfo_PBJOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_PBJOptions proto.InternalMessageInfo + +const Default_PBJOptions_Type FieldType = FieldType_FT_DEFAULT +const Default_PBJOptions_LongNames bool = true +const Default_PBJOptions_PackedStruct bool = false +const Default_PBJOptions_SkipMessage bool = false +const Default_PBJOptions_CacheSize bool = true + +func (m *PBJOptions) GetMaxSize() int32 { + if m != nil && m.MaxSize != nil { + return *m.MaxSize + } + return 0 +} + +func (m *PBJOptions) GetMaxCount() int32 { + if m != nil && m.MaxCount != nil { + return *m.MaxCount + } + return 0 +} + +func (m *PBJOptions) GetType() FieldType { + if m != nil && m.Type != nil { + return *m.Type + } + return Default_PBJOptions_Type +} + +func (m *PBJOptions) GetLongNames() bool { + if m != nil && m.LongNames != nil { + return *m.LongNames + } + return Default_PBJOptions_LongNames +} + +func (m *PBJOptions) GetPackedStruct() bool { + if m != nil && m.PackedStruct != nil { + return *m.PackedStruct + } + return Default_PBJOptions_PackedStruct +} + +func (m *PBJOptions) GetSkipMessage() bool { + if m != nil && m.SkipMessage != nil { + return *m.SkipMessage + } + return Default_PBJOptions_SkipMessage +} + +func (m *PBJOptions) GetCacheSize() bool { + if m != nil && m.CacheSize != nil { + return *m.CacheSize + } + return Default_PBJOptions_CacheSize +} + +var E_PbjFileOption = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.FileOptions)(nil), + ExtensionType: (*PBJOptions)(nil), + Field: 1020, + Name: "pbj_file_option", + Tag: "bytes,1020,opt,name=pbj_file_option", + Filename: "pbj.proto", +} + +var E_PbjMessageOption = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.MessageOptions)(nil), + ExtensionType: (*PBJOptions)(nil), + Field: 1020, + Name: "pbj_message_option", + Tag: "bytes,1020,opt,name=pbj_message_option", + Filename: "pbj.proto", +} + +var E_PbjEnumOption = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.EnumOptions)(nil), + ExtensionType: (*PBJOptions)(nil), + Field: 1020, + Name: "pbj_enum_option", + Tag: "bytes,1020,opt,name=pbj_enum_option", + Filename: "pbj.proto", +} + +var E_PbjFieldOption = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.FieldOptions)(nil), + ExtensionType: (*PBJOptions)(nil), + Field: 1020, + Name: "pbj_field_option", + Tag: "bytes,1020,opt,name=pbj_field_option", + Filename: "pbj.proto", +} + +func init() { + proto.RegisterEnum("FieldType", FieldType_name, FieldType_value) + proto.RegisterType((*PBJOptions)(nil), "PBJOptions") + proto.RegisterExtension(E_PbjFileOption) + proto.RegisterExtension(E_PbjMessageOption) + proto.RegisterExtension(E_PbjEnumOption) + proto.RegisterExtension(E_PbjFieldOption) +} + +func init() { proto.RegisterFile("pbj.proto", fileDescriptor_adec4434a342376e) } + +var fileDescriptor_adec4434a342376e = []byte{ + // 519 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcf, 0x6e, 0xda, 0x4c, + 0x14, 0xc5, 0x3f, 0x27, 0xf0, 0x25, 0x0c, 0x01, 0x2c, 0xaf, 0xdc, 0x7f, 0x14, 0xb5, 0x1b, 0x84, + 0x84, 0x2d, 0x65, 0xc9, 0x0e, 0x28, 0xae, 0x68, 0x29, 0x44, 0xc6, 0xd9, 0xa4, 0x0b, 0x6b, 0x6c, + 0x5f, 0xcc, 0x18, 0x7b, 0x66, 0xea, 0x19, 0x57, 0x49, 0x9e, 0xa2, 0x8f, 0xd5, 0x65, 0x1f, 0xa1, + 0xe2, 0x39, 0xba, 0xa8, 0x6c, 0x43, 0xa0, 0x6a, 0x9b, 0x2e, 0xe7, 0x9e, 0x9f, 0xce, 0x9c, 0x7b, + 0x2e, 0xaa, 0x71, 0x2f, 0x32, 0x78, 0xca, 0x24, 0x7b, 0xda, 0x09, 0x19, 0x0b, 0x63, 0x30, 0x8b, + 0x97, 0x97, 0xad, 0xcc, 0x00, 0x84, 0x9f, 0x12, 0x2e, 0x59, 0x5a, 0x12, 0xaf, 0xbe, 0x9c, 0x20, + 0x74, 0x35, 0x7a, 0xb7, 0xe0, 0x92, 0x30, 0x2a, 0xb4, 0x27, 0xe8, 0x3c, 0xc1, 0xb7, 0xae, 0x20, + 0xf7, 0xa0, 0x2b, 0x1d, 0xa5, 0x5b, 0xb5, 0xcf, 0x12, 0x7c, 0xbb, 0x24, 0xf7, 0xa0, 0x3d, 0x43, + 0xb5, 0x5c, 0xf2, 0x59, 0x46, 0xa5, 0x7e, 0x52, 0x68, 0x39, 0x3b, 0xce, 0xdf, 0x5a, 0x0f, 0x55, + 0xe4, 0x1d, 0x07, 0xfd, 0xb4, 0xa3, 0x74, 0x9b, 0x97, 0xc8, 0xb0, 0x08, 0xc4, 0x81, 0x73, 0xc7, + 0x61, 0x80, 0x2c, 0xc7, 0x7d, 0x33, 0xb1, 0x86, 0xd7, 0x33, 0xc7, 0x2e, 0x18, 0xed, 0x35, 0x42, + 0x31, 0xa3, 0xa1, 0x4b, 0x71, 0x02, 0x42, 0xaf, 0x74, 0x94, 0xee, 0xf9, 0xa0, 0x22, 0xd3, 0x0c, + 0xec, 0x5a, 0x3e, 0x9f, 0xe7, 0x63, 0xad, 0x87, 0x1a, 0x1c, 0xfb, 0x1b, 0x08, 0x5c, 0x21, 0xd3, + 0xcc, 0x97, 0x7a, 0xb5, 0xe0, 0xaa, 0x2b, 0x1c, 0x0b, 0xb0, 0x2f, 0x4a, 0x6d, 0x59, 0x48, 0x5a, + 0x17, 0x5d, 0x88, 0x0d, 0xe1, 0x6e, 0x02, 0x42, 0xe0, 0x10, 0xf4, 0xff, 0x8f, 0xd1, 0x7a, 0x2e, + 0x7d, 0x28, 0x95, 0xfc, 0x6b, 0x1f, 0xfb, 0x6b, 0x28, 0x17, 0x3c, 0x3b, 0xfe, 0xba, 0x98, 0xe7, + 0x8b, 0xf6, 0x6e, 0x50, 0xed, 0x21, 0xbe, 0xd6, 0x44, 0x47, 0x0b, 0xa8, 0xff, 0x69, 0x2d, 0x54, + 0xb7, 0x1c, 0x77, 0x3c, 0x9c, 0xcd, 0x46, 0xc3, 0xf1, 0x7b, 0x55, 0xd9, 0x01, 0x57, 0x8b, 0xe9, + 0xdc, 0x99, 0xd8, 0x6a, 0x45, 0x6b, 0xa0, 0x9a, 0xe5, 0xb8, 0x4b, 0x67, 0xe8, 0x4c, 0xc7, 0xea, + 0xc9, 0xee, 0x39, 0x7d, 0x3b, 0x5f, 0xd8, 0x13, 0xf5, 0x74, 0x60, 0xa3, 0x16, 0xf7, 0x22, 0x77, + 0x45, 0x62, 0x70, 0x59, 0xd1, 0xb9, 0xf6, 0xdc, 0x28, 0x8f, 0x64, 0xec, 0x8f, 0x64, 0x58, 0x24, + 0x86, 0xdd, 0x41, 0xf4, 0x1f, 0x79, 0xc8, 0xfa, 0x65, 0xdd, 0x38, 0x1c, 0xc9, 0x6e, 0x70, 0x2f, + 0x3a, 0x30, 0x83, 0x8f, 0x48, 0xcb, 0x3d, 0x77, 0xdb, 0xef, 0x6d, 0x5f, 0xfe, 0x66, 0xbb, 0x2b, + 0xe1, 0x31, 0x67, 0x95, 0x7b, 0xd1, 0x2f, 0xd8, 0x3e, 0x30, 0xd0, 0x2c, 0xf9, 0x7b, 0xe0, 0x09, + 0xcd, 0x92, 0x7f, 0x05, 0x3e, 0x30, 0x83, 0x6b, 0xa4, 0x96, 0x25, 0x40, 0x1c, 0xec, 0x4d, 0x5f, + 0xfc, 0xa1, 0x05, 0x88, 0x83, 0xc7, 0x5c, 0x9b, 0x45, 0x0d, 0x0f, 0xd0, 0xe8, 0xd3, 0xd7, 0x6d, + 0x5b, 0xf9, 0xb6, 0x6d, 0x2b, 0xdf, 0xb7, 0x6d, 0x05, 0xb5, 0x28, 0x48, 0x23, 0xca, 0x28, 0xe1, + 0x90, 0x1a, 0xdc, 0x8b, 0x6e, 0xec, 0x90, 0x1c, 0x06, 0x14, 0xa4, 0x49, 0x7c, 0xf0, 0x20, 0x0d, + 0xcd, 0x35, 0xe0, 0x58, 0xae, 0x3d, 0x26, 0xfb, 0x84, 0x86, 0x20, 0x64, 0x3f, 0x92, 0xa4, 0x4f, + 0xb1, 0x24, 0x9f, 0xc1, 0xe4, 0x9b, 0xd0, 0x8c, 0x24, 0x31, 0x71, 0x80, 0xb9, 0x84, 0x54, 0x98, + 0x6e, 0x94, 0x51, 0x26, 0x4c, 0xe1, 0xaf, 0x21, 0xc1, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x4b, + 0x62, 0x81, 0x24, 0x6b, 0x03, 0x00, 0x00, +} + +func (m *PBJOptions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PBJOptions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PBJOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CacheSize != nil { + i-- + if *m.CacheSize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.SkipMessage != nil { + i-- + if *m.SkipMessage { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.PackedStruct != nil { + i-- + if *m.PackedStruct { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.LongNames != nil { + i-- + if *m.LongNames { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Type != nil { + i = encodeVarintPbj(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x18 + } + if m.MaxCount != nil { + i = encodeVarintPbj(dAtA, i, uint64(*m.MaxCount)) + i-- + dAtA[i] = 0x10 + } + if m.MaxSize != nil { + i = encodeVarintPbj(dAtA, i, uint64(*m.MaxSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPbj(dAtA []byte, offset int, v uint64) int { + offset -= sovPbj(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PBJOptions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxSize != nil { + n += 1 + sovPbj(uint64(*m.MaxSize)) + } + if m.MaxCount != nil { + n += 1 + sovPbj(uint64(*m.MaxCount)) + } + if m.Type != nil { + n += 1 + sovPbj(uint64(*m.Type)) + } + if m.LongNames != nil { + n += 2 + } + if m.PackedStruct != nil { + n += 2 + } + if m.SkipMessage != nil { + n += 2 + } + if m.CacheSize != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPbj(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPbj(x uint64) (n int) { + return sovPbj(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PBJOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PBJOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PBJOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSize", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSize = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxCount", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxCount = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v FieldType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= FieldType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LongNames", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LongNames = &b + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PackedStruct", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PackedStruct = &b + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SkipMessage", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SkipMessage = &b + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CacheSize", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPbj + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.CacheSize = &b + default: + iNdEx = preIndex + skippy, err := skipPbj(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPbj + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPbj + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPbj(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPbj + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPbj + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPbj + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPbj + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPbj + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPbj + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPbj = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPbj = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPbj = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pbj.proto b/schema/pbj.proto new file mode 100755 index 0000000..6d747c6 --- /dev/null +++ b/schema/pbj.proto @@ -0,0 +1,76 @@ +// Custom options for defining: +// - Maximum size of string/bytes +// - Maximum number of elements in array +// +// These are used by nanopb to generate statically allocable structures +// for memory-limited environments. + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "google/protobuf/descriptor.proto"; + +option java_package = "net.juniper.pbj"; + +enum FieldType { + FT_DEFAULT = 0; // Automatically decide field type, generate static field if possible. + FT_CALLBACK = 1; // Always generate a callback field. + FT_POINTER = 4; // Always generate a dynamically allocated field. + FT_STATIC = 2; // Generate a static field or raise an exception if not possible. + FT_IGNORE = 3; // Ignore the field completely. +} + +// This is the inner options message, which basically defines options for +// a field. When it is used in message or file scope, it applies to all +// fields. +message PBJOptions { + // Allocated size for 'bytes' and 'string' fields. + optional int32 max_size = 1; + + // Allocated number of entries in arrays ('repeated' fields) + optional int32 max_count = 2; + + // Force type of field (callback or static allocation) + optional FieldType type = 3 [default = FT_DEFAULT]; + + // Use long names for enums, i.e. EnumName_EnumValue. + optional bool long_names = 4 [default = true]; + + // Add 'packed' attribute to generated structs. + // Note: this cannot be used on CPUs that break on unaligned + // accesses to variables. + optional bool packed_struct = 5 [default = false]; + + // Skip this message + optional bool skip_message = 6 [default = false]; + + optional bool cache_size = 7 [default = true]; +} + +// Extensions to protoc 'Descriptor' type in order to define options +// inside a .proto file. +// +// Protocol Buffers extension number registry +// -------------------------------- +// Project: PBJ +// Contact: Philip Thomas +// Web site: http://www.juniper.net +// Extensions: 1020 (all types) +// -------------------------------- + +extend google.protobuf.FileOptions { + optional PBJOptions pbj_file_option = 1020; +} + +extend google.protobuf.MessageOptions { + optional PBJOptions pbj_message_option = 1020; +} + +extend google.protobuf.EnumOptions { + optional PBJOptions pbj_enum_option = 1020; +} + +extend google.protobuf.FieldOptions { + optional PBJOptions pbj_field_option = 1020; +} + + diff --git a/schema/pfe_ddos_oc.pb.go b/schema/pfe_ddos_oc.pb.go new file mode 100644 index 0000000..bc7cbfc --- /dev/null +++ b/schema/pfe_ddos_oc.pb.go @@ -0,0 +1,3482 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_ddos_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type DdosStats struct { + Group []*DdosStatsGroupList `protobuf:"bytes,152,rep,name=group" json:"group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStats) Reset() { *m = DdosStats{} } +func (m *DdosStats) String() string { return proto.CompactTextString(m) } +func (*DdosStats) ProtoMessage() {} +func (*DdosStats) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0} +} +func (m *DdosStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStats.Merge(m, src) +} +func (m *DdosStats) XXX_Size() int { + return m.Size() +} +func (m *DdosStats) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStats.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStats proto.InternalMessageInfo + +func (m *DdosStats) GetGroup() []*DdosStatsGroupList { + if m != nil { + return m.Group + } + return nil +} + +type DdosStatsGroupList struct { + GroupName *string `protobuf:"bytes,153,opt,name=group_name,json=groupName" json:"group_name,omitempty"` + GroupId *uint32 `protobuf:"varint,154,opt,name=group_id,json=groupId" json:"group_id,omitempty"` + ProtocolStats *DdosStatsGroupListProtocolStatsType `protobuf:"bytes,155,opt,name=protocol_stats,json=protocolStats" json:"protocol_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupList) Reset() { *m = DdosStatsGroupList{} } +func (m *DdosStatsGroupList) String() string { return proto.CompactTextString(m) } +func (*DdosStatsGroupList) ProtoMessage() {} +func (*DdosStatsGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0} +} +func (m *DdosStatsGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupList.Merge(m, src) +} +func (m *DdosStatsGroupList) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupList proto.InternalMessageInfo + +func (m *DdosStatsGroupList) GetGroupName() string { + if m != nil && m.GroupName != nil { + return *m.GroupName + } + return "" +} + +func (m *DdosStatsGroupList) GetGroupId() uint32 { + if m != nil && m.GroupId != nil { + return *m.GroupId + } + return 0 +} + +func (m *DdosStatsGroupList) GetProtocolStats() *DdosStatsGroupListProtocolStatsType { + if m != nil { + return m.ProtocolStats + } + return nil +} + +type DdosStatsGroupListProtocolStatsType struct { + Protocol []*DdosStatsGroupListProtocolStatsTypeProtocolList `protobuf:"bytes,156,rep,name=protocol" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsType) Reset() { *m = DdosStatsGroupListProtocolStatsType{} } +func (m *DdosStatsGroupListProtocolStatsType) String() string { return proto.CompactTextString(m) } +func (*DdosStatsGroupListProtocolStatsType) ProtoMessage() {} +func (*DdosStatsGroupListProtocolStatsType) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsType.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsType) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsType) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsType.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsType proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsType) GetProtocol() []*DdosStatsGroupListProtocolStatsTypeProtocolList { + if m != nil { + return m.Protocol + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolList struct { + ProtocolName *string `protobuf:"bytes,157,opt,name=protocol_name,json=protocolName" json:"protocol_name,omitempty"` + ProtocolId *uint32 `protobuf:"varint,158,opt,name=protocol_id,json=protocolId" json:"protocol_id,omitempty"` + LocaleStats *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType `protobuf:"bytes,159,opt,name=locale_stats,json=localeStats" json:"locale_stats,omitempty"` + FlowStats *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType `protobuf:"bytes,161,opt,name=flow_stats,json=flowStats" json:"flow_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolList{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolList) ProtoMessage() {} +func (*DdosStatsGroupListProtocolStatsTypeProtocolList) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolList.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolList.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolList proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) GetProtocolName() string { + if m != nil && m.ProtocolName != nil { + return *m.ProtocolName + } + return "" +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) GetProtocolId() uint32 { + if m != nil && m.ProtocolId != nil { + return *m.ProtocolId + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) GetLocaleStats() *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType { + if m != nil { + return m.LocaleStats + } + return nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) GetFlowStats() *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType { + if m != nil { + return m.FlowStats + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType struct { + Locale []*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList `protobuf:"bytes,160,rep,name=locale" json:"locale,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) ProtoMessage() {} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) GetLocale() []*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList { + if m != nil { + return m.Locale + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList struct { + Location *string `protobuf:"bytes,162,opt,name=location" json:"location,omitempty"` + Received *uint64 `protobuf:"varint,163,opt,name=received" json:"received,omitempty"` + ArrivedPolicer *uint64 `protobuf:"varint,164,opt,name=arrived_policer,json=arrivedPolicer" json:"arrived_policer,omitempty"` + DroppedIndividualPolicer *uint64 `protobuf:"varint,165,opt,name=dropped_individual_policer,json=droppedIndividualPolicer" json:"dropped_individual_policer,omitempty"` + DroppedAggregatePolicer *uint64 `protobuf:"varint,166,opt,name=dropped_aggregate_policer,json=droppedAggregatePolicer" json:"dropped_aggregate_policer,omitempty"` + DroppedIndividualFlow *uint64 `protobuf:"varint,167,opt,name=dropped_individual_flow,json=droppedIndividualFlow" json:"dropped_individual_flow,omitempty"` + DroppedAggregateFlow *uint64 `protobuf:"varint,168,opt,name=dropped_aggregate_flow,json=droppedAggregateFlow" json:"dropped_aggregate_flow,omitempty"` + TotalDropped *uint64 `protobuf:"varint,169,opt,name=total_dropped,json=totalDropped" json:"total_dropped,omitempty"` + FinalPassed *uint64 `protobuf:"varint,170,opt,name=final_passed,json=finalPassed" json:"final_passed,omitempty"` + ArrivalRate *uint64 `protobuf:"varint,171,opt,name=arrival_rate,json=arrivalRate" json:"arrival_rate,omitempty"` + MaxArrivalRate *uint64 `protobuf:"varint,173,opt,name=max_arrival_rate,json=maxArrivalRate" json:"max_arrival_rate,omitempty"` + PassRate *uint64 `protobuf:"varint,172,opt,name=pass_rate,json=passRate" json:"pass_rate,omitempty"` + Violation *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType `protobuf:"bytes,174,opt,name=violation" json:"violation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) ProtoMessage() {} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetLocation() string { + if m != nil && m.Location != nil { + return *m.Location + } + return "" +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetReceived() uint64 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetArrivedPolicer() uint64 { + if m != nil && m.ArrivedPolicer != nil { + return *m.ArrivedPolicer + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetDroppedIndividualPolicer() uint64 { + if m != nil && m.DroppedIndividualPolicer != nil { + return *m.DroppedIndividualPolicer + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetDroppedAggregatePolicer() uint64 { + if m != nil && m.DroppedAggregatePolicer != nil { + return *m.DroppedAggregatePolicer + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetDroppedIndividualFlow() uint64 { + if m != nil && m.DroppedIndividualFlow != nil { + return *m.DroppedIndividualFlow + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetDroppedAggregateFlow() uint64 { + if m != nil && m.DroppedAggregateFlow != nil { + return *m.DroppedAggregateFlow + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetTotalDropped() uint64 { + if m != nil && m.TotalDropped != nil { + return *m.TotalDropped + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetFinalPassed() uint64 { + if m != nil && m.FinalPassed != nil { + return *m.FinalPassed + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetArrivalRate() uint64 { + if m != nil && m.ArrivalRate != nil { + return *m.ArrivalRate + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetMaxArrivalRate() uint64 { + if m != nil && m.MaxArrivalRate != nil { + return *m.MaxArrivalRate + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetPassRate() uint64 { + if m != nil && m.PassRate != nil { + return *m.PassRate + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) GetViolation() *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType { + if m != nil { + return m.Violation + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType struct { + PolicerState *string `protobuf:"bytes,175,opt,name=policer_state,json=policerState" json:"policer_state,omitempty"` + PolicerViolationCount *uint32 `protobuf:"varint,176,opt,name=policer_violation_count,json=policerViolationCount" json:"policer_violation_count,omitempty"` + PolicerViolationStartTime *uint64 `protobuf:"varint,177,opt,name=policer_violation_start_time,json=policerViolationStartTime" json:"policer_violation_start_time,omitempty"` + PolicerViolationEndTime *uint64 `protobuf:"varint,178,opt,name=policer_violation_end_time,json=policerViolationEndTime" json:"policer_violation_end_time,omitempty"` + PolicerViolationDuration *uint64 `protobuf:"varint,179,opt,name=policer_violation_duration,json=policerViolationDuration" json:"policer_violation_duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) ProtoMessage() { +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) GetPolicerState() string { + if m != nil && m.PolicerState != nil { + return *m.PolicerState + } + return "" +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) GetPolicerViolationCount() uint32 { + if m != nil && m.PolicerViolationCount != nil { + return *m.PolicerViolationCount + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) GetPolicerViolationStartTime() uint64 { + if m != nil && m.PolicerViolationStartTime != nil { + return *m.PolicerViolationStartTime + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) GetPolicerViolationEndTime() uint64 { + if m != nil && m.PolicerViolationEndTime != nil { + return *m.PolicerViolationEndTime + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) GetPolicerViolationDuration() uint64 { + if m != nil && m.PolicerViolationDuration != nil { + return *m.PolicerViolationDuration + } + return 0 +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType struct { + Flow []*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList `protobuf:"bytes,180,rep,name=flow" json:"flow,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) ProtoMessage() {} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 1} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) GetFlow() []*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList { + if m != nil { + return m.Flow + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList struct { + FlowType *string `protobuf:"bytes,181,opt,name=flow_type,json=flowType" json:"flow_type,omitempty"` + FlowCount *uint64 `protobuf:"varint,182,opt,name=flow_count,json=flowCount" json:"flow_count,omitempty"` + FlowInfoStats *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType `protobuf:"bytes,183,opt,name=flow_info_stats,json=flowInfoStats" json:"flow_info_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) ProtoMessage() {} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 1, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) GetFlowType() string { + if m != nil && m.FlowType != nil { + return *m.FlowType + } + return "" +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) GetFlowCount() uint64 { + if m != nil && m.FlowCount != nil { + return *m.FlowCount + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) GetFlowInfoStats() *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType { + if m != nil { + return m.FlowInfoStats + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType struct { + FlowInfo []*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList `protobuf:"bytes,184,rep,name=flow_info,json=flowInfo" json:"flow_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) ProtoMessage() { +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 1, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) GetFlowInfo() []*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList { + if m != nil { + return m.FlowInfo + } + return nil +} + +type DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList struct { + Ifl *uint64 `protobuf:"varint,185,opt,name=ifl" json:"ifl,omitempty"` + TimeFound *uint64 `protobuf:"varint,186,opt,name=time_found,json=timeFound" json:"time_found,omitempty"` + TimeLastViolated *uint64 `protobuf:"varint,187,opt,name=time_last_violated,json=timeLastViolated" json:"time_last_violated,omitempty"` + Rate *uint64 `protobuf:"varint,188,opt,name=rate" json:"rate,omitempty"` + Packets *uint64 `protobuf:"varint,189,opt,name=packets" json:"packets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) Reset() { + *m = DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList{} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) String() string { + return proto.CompactTextString(m) +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) ProtoMessage() { +} +func (*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) Descriptor() ([]byte, []int) { + return fileDescriptor_e6020d633a11d82b, []int{0, 0, 0, 0, 1, 0, 0, 0} +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList.Merge(m, src) +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) XXX_Size() int { + return m.Size() +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) XXX_DiscardUnknown() { + xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList.DiscardUnknown(m) +} + +var xxx_messageInfo_DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList proto.InternalMessageInfo + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) GetIfl() uint64 { + if m != nil && m.Ifl != nil { + return *m.Ifl + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) GetTimeFound() uint64 { + if m != nil && m.TimeFound != nil { + return *m.TimeFound + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) GetTimeLastViolated() uint64 { + if m != nil && m.TimeLastViolated != nil { + return *m.TimeLastViolated + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) GetRate() uint64 { + if m != nil && m.Rate != nil { + return *m.Rate + } + return 0 +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +var E_JnprDdosStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*DdosStats)(nil), + Field: 126, + Name: "jnpr_ddos_stats_ext", + Tag: "bytes,126,opt,name=jnpr_ddos_stats_ext", + Filename: "pfe_ddos_oc.proto", +} + +func init() { + proto.RegisterType((*DdosStats)(nil), "ddos_stats") + proto.RegisterType((*DdosStatsGroupList)(nil), "ddos_stats.group_list") + proto.RegisterType((*DdosStatsGroupListProtocolStatsType)(nil), "ddos_stats.group_list.protocol_stats_type") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolList)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.locale_stats_type") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.locale_stats_type.locale_list") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.locale_stats_type.locale_list.violation_type") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.flow_stats_type") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.flow_stats_type.flow_list") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.flow_stats_type.flow_list.flow_info_stats_type") + proto.RegisterType((*DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList)(nil), "ddos_stats.group_list.protocol_stats_type.protocol_list.flow_stats_type.flow_list.flow_info_stats_type.flow_info_list") + proto.RegisterExtension(E_JnprDdosStatsExt) +} + +func init() { proto.RegisterFile("pfe_ddos_oc.proto", fileDescriptor_e6020d633a11d82b) } + +var fileDescriptor_e6020d633a11d82b = []byte{ + // 1041 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x49, 0x6f, 0x1c, 0xc5, + 0x17, 0x57, 0x3b, 0xf6, 0xdf, 0x33, 0x6f, 0x6c, 0xc7, 0x2e, 0x27, 0x71, 0xb9, 0xff, 0x91, 0x65, + 0x19, 0x90, 0x0c, 0xc8, 0x3d, 0x52, 0x24, 0x04, 0x02, 0x22, 0x25, 0xc1, 0x89, 0x70, 0x84, 0xa2, + 0xa8, 0x1d, 0x7c, 0xe0, 0xd2, 0x54, 0xa6, 0x6b, 0xda, 0x65, 0xf7, 0x74, 0xb5, 0xba, 0x6b, 0xc6, + 0xce, 0x85, 0x03, 0xe2, 0x03, 0x70, 0xe0, 0xc0, 0xbe, 0x43, 0x08, 0x4b, 0xd8, 0xf7, 0x20, 0x0e, + 0x5c, 0x38, 0x22, 0xc1, 0x05, 0x4e, 0xc8, 0x37, 0xbe, 0x05, 0xaa, 0x7a, 0xd5, 0x3d, 0xeb, 0x01, + 0x45, 0x86, 0xdb, 0xd4, 0x6f, 0xa9, 0x57, 0xf5, 0x7b, 0xd5, 0x6f, 0x60, 0x2e, 0x6d, 0xf2, 0x20, + 0x0c, 0x65, 0x1e, 0xc8, 0x86, 0x97, 0x66, 0x52, 0x49, 0x77, 0x5e, 0xf1, 0x98, 0xb7, 0xb8, 0xca, + 0xae, 0x05, 0x4a, 0xa6, 0x08, 0xae, 0x5c, 0x9f, 0x07, 0x30, 0xb2, 0x5c, 0x31, 0x95, 0x93, 0x35, + 0x98, 0x88, 0x32, 0xd9, 0x4e, 0xe9, 0xf3, 0xce, 0xf2, 0x91, 0xd5, 0xda, 0xa9, 0x13, 0x5e, 0x97, + 0xf4, 0x0c, 0x13, 0xc4, 0x22, 0x57, 0x3e, 0xaa, 0xdc, 0xbf, 0x08, 0x40, 0x17, 0x25, 0x77, 0x15, + 0xab, 0x84, 0xb5, 0x38, 0x7d, 0xc1, 0x59, 0x76, 0x56, 0xab, 0xe7, 0x26, 0x9e, 0x3e, 0x33, 0x56, + 0x71, 0xfc, 0xaa, 0x61, 0x2e, 0xb1, 0x16, 0x27, 0x2e, 0x54, 0x50, 0x26, 0x42, 0xfa, 0xa2, 0x16, + 0x4d, 0xfb, 0x93, 0x06, 0xd8, 0x08, 0x89, 0x0f, 0x33, 0xe6, 0x60, 0x0d, 0x19, 0x63, 0x55, 0xfa, + 0x92, 0x56, 0xd4, 0x4e, 0xdd, 0x33, 0xfa, 0x24, 0x5e, 0xbf, 0x3a, 0x50, 0xd7, 0x52, 0xee, 0x4f, + 0x17, 0xe0, 0xa6, 0xc6, 0xdc, 0x9f, 0xe6, 0x60, 0x7e, 0x84, 0x8c, 0x3c, 0x0e, 0x95, 0x02, 0xa6, + 0x2f, 0xe3, 0x7d, 0x1f, 0xf8, 0xe7, 0x55, 0xba, 0x98, 0x49, 0xa4, 0xdc, 0xca, 0xfd, 0x6d, 0x16, + 0xa6, 0xfb, 0x38, 0x72, 0x6f, 0x0f, 0x60, 0xa2, 0x79, 0xa5, 0x2f, 0x9a, 0xa9, 0x82, 0x34, 0xe9, + 0x2c, 0x43, 0xad, 0x14, 0x8b, 0x90, 0xbe, 0x8a, 0x01, 0x41, 0x81, 0x6d, 0x84, 0x24, 0x81, 0xa9, + 0x58, 0x36, 0x58, 0xcc, 0x6d, 0x42, 0xaf, 0x61, 0x42, 0x17, 0x6f, 0xf7, 0xec, 0x5e, 0xef, 0x6e, + 0x98, 0x60, 0x0d, 0x21, 0x93, 0x1f, 0xd9, 0x06, 0x68, 0xc6, 0x72, 0xcf, 0x56, 0x7b, 0x03, 0xab, + 0x3d, 0x7a, 0xdb, 0xd5, 0xba, 0x7b, 0x61, 0xad, 0xaa, 0x06, 0xb0, 0x53, 0x7f, 0x54, 0x60, 0x6e, + 0xe8, 0x30, 0x44, 0xc2, 0xff, 0x10, 0xa4, 0xaf, 0x63, 0x97, 0xb6, 0x0e, 0xef, 0xa6, 0x05, 0x62, + 0x7a, 0x68, 0xcb, 0xb8, 0xbf, 0x4e, 0x42, 0xad, 0x07, 0x27, 0x2b, 0x50, 0xd1, 0x4b, 0x25, 0x64, + 0x42, 0xdf, 0xec, 0x6b, 0x5d, 0x89, 0x93, 0xff, 0x43, 0x25, 0xe3, 0x0d, 0x2e, 0x3a, 0x3c, 0xa4, + 0x6f, 0x69, 0xcd, 0xb8, 0x5f, 0x02, 0x64, 0x15, 0x8e, 0xb2, 0x2c, 0xd3, 0x3f, 0x83, 0x54, 0xc6, + 0xa2, 0xc1, 0x33, 0xfa, 0x36, 0x6a, 0x66, 0x2c, 0x7e, 0x19, 0x61, 0x72, 0x1a, 0xdc, 0x30, 0x93, + 0x69, 0xca, 0xc3, 0x40, 0x24, 0xa1, 0xe8, 0x88, 0xb0, 0xcd, 0xe2, 0xd2, 0xf4, 0x0e, 0x9a, 0xa8, + 0x95, 0x6c, 0x94, 0x8a, 0xc2, 0xfe, 0x10, 0x2c, 0x16, 0x76, 0x16, 0x45, 0x19, 0x8f, 0x98, 0xe2, + 0xa5, 0xfb, 0x5d, 0x74, 0x2f, 0x58, 0xc5, 0xd9, 0x42, 0x50, 0x98, 0xef, 0x87, 0x85, 0x11, 0xb5, + 0x75, 0x77, 0xe8, 0x75, 0xb4, 0x1e, 0x1f, 0x2a, 0x7c, 0x21, 0x96, 0x7b, 0xe4, 0x3e, 0x38, 0x31, + 0x5c, 0xd5, 0xf8, 0xde, 0x43, 0xdf, 0xb1, 0xc1, 0x92, 0xc6, 0x76, 0x27, 0x4c, 0x2b, 0xa9, 0x58, + 0x1c, 0x58, 0x96, 0xde, 0x40, 0xf5, 0x94, 0x41, 0xd7, 0x11, 0x24, 0x2b, 0x30, 0xd5, 0x14, 0x89, + 0x0e, 0x81, 0xe5, 0x39, 0x0f, 0xe9, 0xfb, 0x28, 0xaa, 0x19, 0xf0, 0xb2, 0xc1, 0xb4, 0xc6, 0xe4, + 0xc8, 0xe2, 0x20, 0x63, 0x8a, 0xd3, 0x0f, 0xac, 0xc6, 0x82, 0x3e, 0x53, 0x9c, 0xdc, 0x0d, 0xb3, + 0x2d, 0xb6, 0x1f, 0xf4, 0xe9, 0x3e, 0xb2, 0x4d, 0x68, 0xb1, 0xfd, 0xb3, 0x3d, 0xd2, 0x93, 0x50, + 0xd5, 0xc5, 0x50, 0xf3, 0xa1, 0x6d, 0xa6, 0x46, 0x0c, 0xfb, 0x8c, 0x03, 0xd5, 0x8e, 0x90, 0x31, + 0xbe, 0x87, 0x9b, 0xf8, 0x39, 0xf0, 0x7f, 0xe7, 0x49, 0x7a, 0x65, 0x21, 0xfb, 0xad, 0x94, 0x6b, + 0xf7, 0xe6, 0x18, 0xcc, 0xf4, 0xb3, 0x3a, 0x50, 0xdb, 0x6b, 0xb3, 0x1d, 0xa7, 0x1f, 0x9b, 0xc7, + 0xea, 0x4f, 0x59, 0x54, 0x7f, 0x64, 0x5c, 0xb7, 0xb9, 0x50, 0x75, 0xfd, 0x0d, 0xd9, 0x4e, 0x14, + 0xfd, 0x04, 0x87, 0xcd, 0x71, 0xcb, 0x6f, 0x15, 0xf4, 0x23, 0x9a, 0x25, 0x67, 0xe0, 0xe4, 0xb0, + 0x31, 0x57, 0x2c, 0x53, 0x81, 0x12, 0x2d, 0x4e, 0x3f, 0xc5, 0xa4, 0x16, 0x07, 0xdd, 0x9b, 0x5a, + 0x72, 0x45, 0xb4, 0x38, 0x79, 0x18, 0xdc, 0xe1, 0x1d, 0x78, 0x12, 0xa2, 0xff, 0x33, 0xfb, 0x3e, + 0x07, 0xfd, 0xe7, 0x93, 0xd0, 0xb8, 0x4f, 0x8f, 0x72, 0x87, 0xed, 0x0c, 0x1b, 0xf1, 0xb9, 0xfd, + 0x36, 0x06, 0xdd, 0xeb, 0x56, 0xe0, 0xde, 0x9a, 0x80, 0xa3, 0x03, 0xb3, 0x87, 0x44, 0x30, 0x6e, + 0xde, 0xe9, 0x17, 0x38, 0x58, 0xfc, 0xc3, 0x1a, 0x6a, 0xb8, 0x36, 0x43, 0xc5, 0x14, 0x70, 0x7f, + 0x1c, 0x87, 0x6a, 0x89, 0x91, 0x3b, 0xec, 0x42, 0x4b, 0xe9, 0x97, 0xfd, 0x13, 0x45, 0x13, 0x57, + 0xf4, 0xd9, 0x96, 0xec, 0xd8, 0xc5, 0xd6, 0x7c, 0x85, 0xd7, 0x33, 0x3e, 0x6c, 0xc7, 0xb3, 0x8e, + 0xbd, 0x8f, 0x48, 0x9a, 0xd2, 0x0e, 0xe7, 0xaf, 0xf1, 0x35, 0x46, 0x87, 0x7f, 0x0f, 0x6f, 0xa0, + 0x94, 0xfd, 0xa7, 0xd5, 0xe8, 0x46, 0xd2, 0x94, 0x38, 0xbf, 0x7f, 0x1f, 0x83, 0x63, 0xa3, 0x74, + 0xe4, 0x39, 0xc7, 0xde, 0x58, 0x13, 0xf4, 0x1b, 0x4c, 0xbb, 0xf3, 0x1f, 0x9d, 0xb2, 0x07, 0xc4, + 0xbf, 0xea, 0xe2, 0xd0, 0xee, 0x0d, 0x07, 0x66, 0xfa, 0x49, 0x42, 0xe1, 0x88, 0x68, 0xc6, 0xf4, + 0x5b, 0x13, 0x77, 0xd1, 0x14, 0x0d, 0xe9, 0x7e, 0xe8, 0x67, 0x1a, 0x34, 0x65, 0x3b, 0x09, 0xe9, + 0x77, 0xb6, 0x1f, 0x1a, 0xba, 0xa0, 0x11, 0xb2, 0x06, 0xc4, 0xf0, 0x31, 0xcb, 0x95, 0x7d, 0xa0, + 0x3c, 0xa4, 0xdf, 0xa3, 0x6e, 0x56, 0x53, 0x8f, 0xb1, 0x5c, 0x6d, 0x59, 0x82, 0xcc, 0xc3, 0xb8, + 0x99, 0x2f, 0xb7, 0x50, 0x60, 0x16, 0x64, 0x11, 0x26, 0x53, 0xd6, 0xd8, 0xe5, 0x2a, 0xa7, 0x3f, + 0x20, 0x5e, 0xac, 0x1f, 0xdc, 0x84, 0xf9, 0x9d, 0x24, 0xcd, 0x82, 0x6e, 0x66, 0x01, 0xdf, 0x57, + 0x64, 0xc1, 0xbb, 0xd8, 0x4e, 0x44, 0xca, 0xb3, 0x4b, 0x5c, 0xed, 0xc9, 0x6c, 0x37, 0xdf, 0xe4, + 0x49, 0x2e, 0xb3, 0x9c, 0x3e, 0x65, 0x5e, 0x42, 0xad, 0x27, 0x63, 0x7f, 0x56, 0x6f, 0xb0, 0x1e, + 0xca, 0xdc, 0x74, 0xeb, 0xfc, 0xbe, 0x3a, 0xf7, 0xe4, 0xcf, 0x07, 0x4b, 0xce, 0x2f, 0x07, 0x4b, + 0xce, 0x9f, 0x07, 0x4b, 0xce, 0x13, 0x7e, 0x24, 0x94, 0xb7, 0x83, 0xdb, 0x79, 0x09, 0x57, 0x75, + 0xd1, 0xe0, 0x57, 0x79, 0x16, 0xd5, 0xb7, 0x39, 0x8b, 0xd5, 0xf6, 0x55, 0xa9, 0xd6, 0x44, 0x12, + 0xf1, 0x5c, 0xad, 0xed, 0x28, 0xb1, 0x96, 0x30, 0x25, 0x3a, 0xbc, 0x9e, 0xee, 0x46, 0xf5, 0x1d, + 0x25, 0xea, 0x2c, 0x64, 0xa9, 0xe2, 0x59, 0x5e, 0x0f, 0x76, 0xda, 0x89, 0xcc, 0xeb, 0x79, 0x63, + 0x9b, 0xb7, 0xd8, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xa3, 0x70, 0x60, 0x89, 0x0a, 0x00, + 0x00, +} + +func (m *DdosStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Group) > 0 { + for iNdEx := len(m.Group) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Group[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ProtocolStats != nil { + { + size, err := m.ProtocolStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.GroupId != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.GroupId)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd0 + } + if m.GroupName != nil { + i -= len(*m.GroupName) + copy(dAtA[i:], *m.GroupName) + i = encodeVarintPfeDdosOc(dAtA, i, uint64(len(*m.GroupName))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Protocol) > 0 { + for iNdEx := len(m.Protocol) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Protocol[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FlowStats != nil { + { + size, err := m.FlowStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.LocaleStats != nil { + { + size, err := m.LocaleStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.ProtocolId != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.ProtocolId)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf0 + } + if m.ProtocolName != nil { + i -= len(*m.ProtocolName) + copy(dAtA[i:], *m.ProtocolName) + i = encodeVarintPfeDdosOc(dAtA, i, uint64(len(*m.ProtocolName))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Locale) > 0 { + for iNdEx := len(m.Locale) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locale[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Violation != nil { + { + size, err := m.Violation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xf2 + } + if m.MaxArrivalRate != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.MaxArrivalRate)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xe8 + } + if m.PassRate != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.PassRate)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xe0 + } + if m.ArrivalRate != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.ArrivalRate)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xd8 + } + if m.FinalPassed != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.FinalPassed)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xd0 + } + if m.TotalDropped != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.TotalDropped)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xc8 + } + if m.DroppedAggregateFlow != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.DroppedAggregateFlow)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xc0 + } + if m.DroppedIndividualFlow != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.DroppedIndividualFlow)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xb8 + } + if m.DroppedAggregatePolicer != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.DroppedAggregatePolicer)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xb0 + } + if m.DroppedIndividualPolicer != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.DroppedIndividualPolicer)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xa8 + } + if m.ArrivedPolicer != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.ArrivedPolicer)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x98 + } + if m.Location != nil { + i -= len(*m.Location) + copy(dAtA[i:], *m.Location) + i = encodeVarintPfeDdosOc(dAtA, i, uint64(len(*m.Location))) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PolicerViolationDuration != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.PolicerViolationDuration)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x98 + } + if m.PolicerViolationEndTime != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.PolicerViolationEndTime)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x90 + } + if m.PolicerViolationStartTime != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.PolicerViolationStartTime)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x88 + } + if m.PolicerViolationCount != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.PolicerViolationCount)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x80 + } + if m.PolicerState != nil { + i -= len(*m.PolicerState) + copy(dAtA[i:], *m.PolicerState) + i = encodeVarintPfeDdosOc(dAtA, i, uint64(len(*m.PolicerState))) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xfa + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Flow) > 0 { + for iNdEx := len(m.Flow) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Flow[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xa2 + } + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FlowInfoStats != nil { + { + size, err := m.FlowInfoStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xba + } + if m.FlowCount != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.FlowCount)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xb0 + } + if m.FlowType != nil { + i -= len(*m.FlowType) + copy(dAtA[i:], *m.FlowType) + i = encodeVarintPfeDdosOc(dAtA, i, uint64(len(*m.FlowType))) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xaa + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.FlowInfo) > 0 { + for iNdEx := len(m.FlowInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FlowInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeDdosOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Packets != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xe8 + } + if m.Rate != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.Rate)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xe0 + } + if m.TimeLastViolated != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.TimeLastViolated)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xd8 + } + if m.TimeFound != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.TimeFound)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xd0 + } + if m.Ifl != nil { + i = encodeVarintPfeDdosOc(dAtA, i, uint64(*m.Ifl)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfeDdosOc(dAtA []byte, offset int, v uint64) int { + offset -= sovPfeDdosOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DdosStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Group) > 0 { + for _, e := range m.Group { + l = e.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GroupName != nil { + l = len(*m.GroupName) + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.GroupId != nil { + n += 2 + sovPfeDdosOc(uint64(*m.GroupId)) + } + if m.ProtocolStats != nil { + l = m.ProtocolStats.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Protocol) > 0 { + for _, e := range m.Protocol { + l = e.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProtocolName != nil { + l = len(*m.ProtocolName) + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.ProtocolId != nil { + n += 2 + sovPfeDdosOc(uint64(*m.ProtocolId)) + } + if m.LocaleStats != nil { + l = m.LocaleStats.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.FlowStats != nil { + l = m.FlowStats.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Locale) > 0 { + for _, e := range m.Locale { + l = e.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Location != nil { + l = len(*m.Location) + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.Received != nil { + n += 2 + sovPfeDdosOc(uint64(*m.Received)) + } + if m.ArrivedPolicer != nil { + n += 2 + sovPfeDdosOc(uint64(*m.ArrivedPolicer)) + } + if m.DroppedIndividualPolicer != nil { + n += 2 + sovPfeDdosOc(uint64(*m.DroppedIndividualPolicer)) + } + if m.DroppedAggregatePolicer != nil { + n += 2 + sovPfeDdosOc(uint64(*m.DroppedAggregatePolicer)) + } + if m.DroppedIndividualFlow != nil { + n += 2 + sovPfeDdosOc(uint64(*m.DroppedIndividualFlow)) + } + if m.DroppedAggregateFlow != nil { + n += 2 + sovPfeDdosOc(uint64(*m.DroppedAggregateFlow)) + } + if m.TotalDropped != nil { + n += 2 + sovPfeDdosOc(uint64(*m.TotalDropped)) + } + if m.FinalPassed != nil { + n += 2 + sovPfeDdosOc(uint64(*m.FinalPassed)) + } + if m.ArrivalRate != nil { + n += 2 + sovPfeDdosOc(uint64(*m.ArrivalRate)) + } + if m.PassRate != nil { + n += 2 + sovPfeDdosOc(uint64(*m.PassRate)) + } + if m.MaxArrivalRate != nil { + n += 2 + sovPfeDdosOc(uint64(*m.MaxArrivalRate)) + } + if m.Violation != nil { + l = m.Violation.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PolicerState != nil { + l = len(*m.PolicerState) + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.PolicerViolationCount != nil { + n += 2 + sovPfeDdosOc(uint64(*m.PolicerViolationCount)) + } + if m.PolicerViolationStartTime != nil { + n += 2 + sovPfeDdosOc(uint64(*m.PolicerViolationStartTime)) + } + if m.PolicerViolationEndTime != nil { + n += 2 + sovPfeDdosOc(uint64(*m.PolicerViolationEndTime)) + } + if m.PolicerViolationDuration != nil { + n += 2 + sovPfeDdosOc(uint64(*m.PolicerViolationDuration)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Flow) > 0 { + for _, e := range m.Flow { + l = e.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FlowType != nil { + l = len(*m.FlowType) + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.FlowCount != nil { + n += 2 + sovPfeDdosOc(uint64(*m.FlowCount)) + } + if m.FlowInfoStats != nil { + l = m.FlowInfoStats.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FlowInfo) > 0 { + for _, e := range m.FlowInfo { + l = e.Size() + n += 2 + l + sovPfeDdosOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ifl != nil { + n += 2 + sovPfeDdosOc(uint64(*m.Ifl)) + } + if m.TimeFound != nil { + n += 2 + sovPfeDdosOc(uint64(*m.TimeFound)) + } + if m.TimeLastViolated != nil { + n += 2 + sovPfeDdosOc(uint64(*m.TimeLastViolated)) + } + if m.Rate != nil { + n += 2 + sovPfeDdosOc(uint64(*m.Rate)) + } + if m.Packets != nil { + n += 2 + sovPfeDdosOc(uint64(*m.Packets)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfeDdosOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfeDdosOc(x uint64) (n int) { + return sovPfeDdosOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DdosStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ddos_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ddos_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Group = append(m.Group, &DdosStatsGroupList{}) + if err := m.Group[len(m.Group)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.GroupName = &s + iNdEx = postIndex + case 154: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GroupId = &v + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtocolStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProtocolStats == nil { + m.ProtocolStats = &DdosStatsGroupListProtocolStatsType{} + } + if err := m.ProtocolStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_stats_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_stats_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Protocol = append(m.Protocol, &DdosStatsGroupListProtocolStatsTypeProtocolList{}) + if err := m.Protocol[len(m.Protocol)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtocolName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProtocolName = &s + iNdEx = postIndex + case 158: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtocolId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProtocolId = &v + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocaleStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LocaleStats == nil { + m.LocaleStats = &DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType{} + } + if err := m.LocaleStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FlowStats == nil { + m.FlowStats = &DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType{} + } + if err := m.FlowStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: locale_stats_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: locale_stats_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Locale", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Locale = append(m.Locale, &DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList{}) + if err := m.Locale[len(m.Locale)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: locale_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: locale_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Location", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Location = &s + iNdEx = postIndex + case 163: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 164: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArrivedPolicer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArrivedPolicer = &v + case 165: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedIndividualPolicer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedIndividualPolicer = &v + case 166: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedAggregatePolicer", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedAggregatePolicer = &v + case 167: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedIndividualFlow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedIndividualFlow = &v + case 168: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DroppedAggregateFlow", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DroppedAggregateFlow = &v + case 169: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalDropped = &v + case 170: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FinalPassed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FinalPassed = &v + case 171: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArrivalRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ArrivalRate = &v + case 172: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PassRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PassRate = &v + case 173: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxArrivalRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxArrivalRate = &v + case 174: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Violation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Violation == nil { + m.Violation = &DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType{} + } + if err := m.Violation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListLocaleStatsTypeLocaleListViolationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: violation_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: violation_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 175: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicerState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PolicerState = &s + iNdEx = postIndex + case 176: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicerViolationCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PolicerViolationCount = &v + case 177: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicerViolationStartTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PolicerViolationStartTime = &v + case 178: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicerViolationEndTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PolicerViolationEndTime = &v + case 179: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicerViolationDuration", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PolicerViolationDuration = &v + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: flow_stats_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: flow_stats_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 180: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flow = append(m.Flow, &DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList{}) + if err := m.Flow[len(m.Flow)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: flow_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: flow_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 181: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FlowType = &s + iNdEx = postIndex + case 182: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowCount = &v + case 183: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowInfoStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FlowInfoStats == nil { + m.FlowInfoStats = &DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType{} + } + if err := m.FlowInfoStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: flow_info_stats_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: flow_info_stats_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 184: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeDdosOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeDdosOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FlowInfo = append(m.FlowInfo, &DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList{}) + if err := m.FlowInfo[len(m.FlowInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DdosStatsGroupListProtocolStatsTypeProtocolListFlowStatsTypeFlowListFlowInfoStatsTypeFlowInfoList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: flow_info_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: flow_info_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 185: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ifl", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ifl = &v + case 186: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeFound", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TimeFound = &v + case 187: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeLastViolated", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TimeLastViolated = &v + case 188: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rate = &v + case 189: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + default: + iNdEx = preIndex + skippy, err := skipPfeDdosOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeDdosOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfeDdosOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeDdosOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfeDdosOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfeDdosOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfeDdosOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfeDdosOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfeDdosOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfeDdosOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_ddos_oc.proto b/schema/pfe_ddos_oc.proto new file mode 100755 index 0000000..b0802d0 --- /dev/null +++ b/schema/pfe_ddos_oc.proto @@ -0,0 +1,68 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional ddos_stats jnpr_ddos_stats_ext = 126; +} + +message ddos_stats { + message group_list { + optional string group_name = 153 [(telemetry_options).is_key = true]; + optional uint32 group_id = 154; + optional protocol_stats_type protocol_stats = 155; + message protocol_stats_type { + message protocol_list { + optional string protocol_name = 157 [(telemetry_options).is_key = true]; + optional uint32 protocol_id = 158; + optional locale_stats_type locale_stats = 159; + message locale_stats_type { + message locale_list { + optional string location = 162 [(telemetry_options).is_key = true]; + optional uint64 received = 163; + optional uint64 arrived_policer = 164; + optional uint64 dropped_individual_policer = 165; + optional uint64 dropped_aggregate_policer = 166; + optional uint64 dropped_individual_flow = 167; + optional uint64 dropped_aggregate_flow = 168; + optional uint64 total_dropped = 169; + optional uint64 final_passed = 170; + optional uint64 arrival_rate = 171; + optional uint64 max_arrival_rate = 173; + optional uint64 pass_rate = 172; + optional violation_type violation = 174; + message violation_type { + optional string policer_state = 175; + optional uint32 policer_violation_count = 176; + optional uint64 policer_violation_start_time = 177; + optional uint64 policer_violation_end_time = 178; + optional uint64 policer_violation_duration = 179; + } + } + repeated locale_list locale = 160; + } + optional flow_stats_type flow_stats = 161; + message flow_stats_type { + message flow_list { + optional string flow_type = 181 [(telemetry_options).is_key = true]; + optional uint64 flow_count = 182; + optional flow_info_stats_type flow_info_stats = 183; + message flow_info_stats_type { + message flow_info_list { + optional uint64 ifl = 185 [(telemetry_options).is_key = true]; + optional uint64 time_found = 186; + optional uint64 time_last_violated = 187; + optional uint64 rate = 188; + optional uint64 packets = 189; + } + repeated flow_info_list flow_info = 184; + } + } + repeated flow_list flow = 180; + } + } + repeated protocol_list protocol = 156; + } + } + repeated group_list group = 152; +} diff --git a/schema/pfe_export_mon_oc.pb.go b/schema/pfe_export_mon_oc.pb.go new file mode 100644 index 0000000..f958ac8 --- /dev/null +++ b/schema/pfe_export_mon_oc.pb.go @@ -0,0 +1,2868 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_export_mon_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPfeExportMonStats struct { + System *JunosPfeExportMonStatsSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStats) Reset() { *m = JunosPfeExportMonStats{} } +func (m *JunosPfeExportMonStats) String() string { return proto.CompactTextString(m) } +func (*JunosPfeExportMonStats) ProtoMessage() {} +func (*JunosPfeExportMonStats) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0} +} +func (m *JunosPfeExportMonStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStats.Merge(m, src) +} +func (m *JunosPfeExportMonStats) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStats) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStats.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStats proto.InternalMessageInfo + +func (m *JunosPfeExportMonStats) GetSystem() *JunosPfeExportMonStatsSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosPfeExportMonStatsSystemType struct { + Linecard *JunosPfeExportMonStatsSystemTypeLinecardType `protobuf:"bytes,151,opt,name=linecard" json:"linecard,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemType) Reset() { *m = JunosPfeExportMonStatsSystemType{} } +func (m *JunosPfeExportMonStatsSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosPfeExportMonStatsSystemType) ProtoMessage() {} +func (*JunosPfeExportMonStatsSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0} +} +func (m *JunosPfeExportMonStatsSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemType.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemType proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemType) GetLinecard() *JunosPfeExportMonStatsSystemTypeLinecardType { + if m != nil { + return m.Linecard + } + return nil +} + +type JunosPfeExportMonStatsSystemTypeLinecardType struct { + ExportMonitor *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType `protobuf:"bytes,151,opt,name=export_monitor,json=exportMonitor" json:"export_monitor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardType{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardType) ProtoMessage() {} +func (*JunosPfeExportMonStatsSystemTypeLinecardType) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardType.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardType proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) GetExportMonitor() *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType { + if m != nil { + return m.ExportMonitor + } + return nil +} + +type JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType struct { + ExportInfo []*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList `protobuf:"bytes,152,rep,name=export_info,json=exportInfo" json:"export_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) ProtoMessage() {} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0, 0} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) GetExportInfo() []*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList { + if m != nil { + return m.ExportInfo + } + return nil +} + +type JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList struct { + Resource *string `protobuf:"bytes,153,opt,name=resource" json:"resource,omitempty"` + RepInterval *uint32 `protobuf:"varint,154,opt,name=rep_interval,json=repInterval" json:"rep_interval,omitempty"` + PayloadSize *uint32 `protobuf:"varint,155,opt,name=payload_size,json=payloadSize" json:"payload_size,omitempty"` + QosOptions *uint32 `protobuf:"varint,156,opt,name=qos_options,json=qosOptions" json:"qos_options,omitempty"` + FcOptions *uint32 `protobuf:"varint,157,opt,name=fc_options,json=fcOptions" json:"fc_options,omitempty"` + PlpOptions *uint32 `protobuf:"varint,158,opt,name=plp_options,json=plpOptions" json:"plp_options,omitempty"` + Server *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType `protobuf:"bytes,159,opt,name=server" json:"server,omitempty"` + NumClients *uint32 `protobuf:"varint,162,opt,name=num_clients,json=numClients" json:"num_clients,omitempty"` + Clients []*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList `protobuf:"bytes,163,rep,name=clients" json:"clients,omitempty"` + Accounting *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType `protobuf:"bytes,167,opt,name=accounting" json:"accounting,omitempty"` + Wraps []*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList `protobuf:"bytes,177,rep,name=wraps" json:"wraps,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) ProtoMessage() {} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0, 0, 0} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetResource() string { + if m != nil && m.Resource != nil { + return *m.Resource + } + return "" +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetRepInterval() uint32 { + if m != nil && m.RepInterval != nil { + return *m.RepInterval + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetPayloadSize() uint32 { + if m != nil && m.PayloadSize != nil { + return *m.PayloadSize + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetQosOptions() uint32 { + if m != nil && m.QosOptions != nil { + return *m.QosOptions + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetFcOptions() uint32 { + if m != nil && m.FcOptions != nil { + return *m.FcOptions + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetPlpOptions() uint32 { + if m != nil && m.PlpOptions != nil { + return *m.PlpOptions + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetServer() *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType { + if m != nil { + return m.Server + } + return nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetNumClients() uint32 { + if m != nil && m.NumClients != nil { + return *m.NumClients + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetClients() []*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList { + if m != nil { + return m.Clients + } + return nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetAccounting() *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType { + if m != nil { + return m.Accounting + } + return nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) GetWraps() []*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList { + if m != nil { + return m.Wraps + } + return nil +} + +type JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType struct { + Ip *string `protobuf:"bytes,160,opt,name=ip" json:"ip,omitempty"` + Port *uint32 `protobuf:"varint,161,opt,name=port" json:"port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) ProtoMessage() { +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) GetPort() uint32 { + if m != nil && m.Port != nil { + return *m.Port + } + return 0 +} + +type JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList struct { + Index *uint32 `protobuf:"varint,164,opt,name=index" json:"index,omitempty"` + Ip *string `protobuf:"bytes,165,opt,name=ip" json:"ip,omitempty"` + Port *uint32 `protobuf:"varint,166,opt,name=port" json:"port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) ProtoMessage() { +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0, 0, 0, 1} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) GetPort() uint32 { + if m != nil && m.Port != nil { + return *m.Port + } + return 0 +} + +type JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType struct { + SuccessfulReaps *uint64 `protobuf:"varint,168,opt,name=successful_reaps,json=successfulReaps" json:"successful_reaps,omitempty"` + FailedReaps *uint64 `protobuf:"varint,169,opt,name=failed_reaps,json=failedReaps" json:"failed_reaps,omitempty"` + ReapsInLastRepInterval *uint32 `protobuf:"varint,170,opt,name=reaps_in_last_rep_interval,json=reapsInLastRepInterval" json:"reaps_in_last_rep_interval,omitempty"` + PacketsInLastRepInterval *uint32 `protobuf:"varint,171,opt,name=packets_in_last_rep_interval,json=packetsInLastRepInterval" json:"packets_in_last_rep_interval,omitempty"` + InstancesInLastRepInterval *uint32 `protobuf:"varint,172,opt,name=instances_in_last_rep_interval,json=instancesInLastRepInterval" json:"instances_in_last_rep_interval,omitempty"` + TotalPackets *uint64 `protobuf:"varint,173,opt,name=total_packets,json=totalPackets" json:"total_packets,omitempty"` + NumWraps *uint64 `protobuf:"varint,174,opt,name=num_wraps,json=numWraps" json:"num_wraps,omitempty"` + AverageReaps *uint64 `protobuf:"varint,175,opt,name=average_reaps,json=averageReaps" json:"average_reaps,omitempty"` + LastPacketSize *uint32 `protobuf:"varint,176,opt,name=last_packet_size,json=lastPacketSize" json:"last_packet_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) ProtoMessage() { +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0, 0, 0, 2} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetSuccessfulReaps() uint64 { + if m != nil && m.SuccessfulReaps != nil { + return *m.SuccessfulReaps + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetFailedReaps() uint64 { + if m != nil && m.FailedReaps != nil { + return *m.FailedReaps + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetReapsInLastRepInterval() uint32 { + if m != nil && m.ReapsInLastRepInterval != nil { + return *m.ReapsInLastRepInterval + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetPacketsInLastRepInterval() uint32 { + if m != nil && m.PacketsInLastRepInterval != nil { + return *m.PacketsInLastRepInterval + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetInstancesInLastRepInterval() uint32 { + if m != nil && m.InstancesInLastRepInterval != nil { + return *m.InstancesInLastRepInterval + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetTotalPackets() uint64 { + if m != nil && m.TotalPackets != nil { + return *m.TotalPackets + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetNumWraps() uint64 { + if m != nil && m.NumWraps != nil { + return *m.NumWraps + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetAverageReaps() uint64 { + if m != nil && m.AverageReaps != nil { + return *m.AverageReaps + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) GetLastPacketSize() uint32 { + if m != nil && m.LastPacketSize != nil { + return *m.LastPacketSize + } + return 0 +} + +type JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList struct { + Index *uint32 `protobuf:"varint,178,opt,name=index" json:"index,omitempty"` + Time *string `protobuf:"bytes,179,opt,name=time" json:"time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) Reset() { + *m = JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList{} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) ProtoMessage() { +} +func (*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) Descriptor() ([]byte, []int) { + return fileDescriptor_daeba95696a69f7b, []int{0, 0, 0, 0, 0, 3} +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList.Merge(m, src) +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList proto.InternalMessageInfo + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) GetTime() string { + if m != nil && m.Time != nil { + return *m.Time + } + return "" +} + +var E_JnprJunosPfeExportMonStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPfeExportMonStats)(nil), + Field: 129, + Name: "jnpr_junos_pfe_export_mon_stats_ext", + Tag: "bytes,129,opt,name=jnpr_junos_pfe_export_mon_stats_ext", + Filename: "pfe_export_mon_oc.proto", +} + +func init() { + proto.RegisterType((*JunosPfeExportMonStats)(nil), "junos_pfe_export_mon_stats") + proto.RegisterType((*JunosPfeExportMonStatsSystemType)(nil), "junos_pfe_export_mon_stats.system_type") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardType)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type.export_monitor_type") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type.export_monitor_type.export_info_list") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type.export_monitor_type.export_info_list.server_type") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type.export_monitor_type.export_info_list.clients_list") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type.export_monitor_type.export_info_list.accounting_type") + proto.RegisterType((*JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList)(nil), "junos_pfe_export_mon_stats.system_type.linecard_type.export_monitor_type.export_info_list.wraps_list") + proto.RegisterExtension(E_JnprJunosPfeExportMonStatsExt) +} + +func init() { proto.RegisterFile("pfe_export_mon_oc.proto", fileDescriptor_daeba95696a69f7b) } + +var fileDescriptor_daeba95696a69f7b = []byte{ + // 868 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcb, 0x6e, 0x1c, 0x45, + 0x14, 0x55, 0x3b, 0x76, 0xb0, 0x6f, 0x7b, 0x6c, 0xab, 0x2d, 0x91, 0x56, 0x63, 0x46, 0x96, 0x41, + 0x22, 0x20, 0x79, 0x46, 0x0a, 0x62, 0x03, 0x8b, 0x44, 0x89, 0xb2, 0x70, 0xc4, 0x23, 0x6a, 0x2f, + 0x90, 0xb2, 0x29, 0x2a, 0x3d, 0xb7, 0xc7, 0x35, 0xee, 0xa9, 0x2a, 0x57, 0x55, 0x3b, 0x76, 0x14, + 0x09, 0x25, 0x5b, 0x3e, 0x80, 0x47, 0xc2, 0xfb, 0xfd, 0x86, 0xb0, 0x40, 0xfc, 0x01, 0x4b, 0x3e, + 0x01, 0xf9, 0x3b, 0x58, 0xa0, 0xea, 0xdb, 0x3d, 0x33, 0xb6, 0x63, 0x84, 0x10, 0x5e, 0xf6, 0xb9, + 0xe7, 0x9e, 0x73, 0xe7, 0xf4, 0xbd, 0x3d, 0x70, 0x4e, 0xe7, 0xc8, 0x70, 0x4f, 0x2b, 0xe3, 0xd8, + 0x50, 0x49, 0xa6, 0xb2, 0x8e, 0x36, 0xca, 0xa9, 0x64, 0xd9, 0x61, 0x81, 0x43, 0x74, 0x66, 0x9f, + 0x39, 0xa5, 0x09, 0x5c, 0xfb, 0x6b, 0x01, 0x92, 0x41, 0x29, 0x95, 0x65, 0x47, 0xda, 0xac, 0xe3, + 0xce, 0x46, 0x97, 0xe0, 0xac, 0xdd, 0xb7, 0x0e, 0x87, 0xf1, 0xdb, 0xc1, 0x6a, 0x70, 0x3e, 0xbc, + 0xf0, 0x4c, 0xe7, 0x64, 0x76, 0x87, 0xa8, 0xcc, 0xed, 0x6b, 0x4c, 0xeb, 0xbe, 0xe4, 0xfe, 0x02, + 0x84, 0x13, 0x78, 0x94, 0xc2, 0x6c, 0x21, 0x24, 0x66, 0xdc, 0xf4, 0x1a, 0xcd, 0x17, 0xfe, 0xa5, + 0x66, 0xa7, 0x69, 0x24, 0x87, 0x91, 0x4e, 0xf2, 0x6b, 0x0b, 0x5a, 0x87, 0x6a, 0xd1, 0x0e, 0x2c, + 0x8c, 0x95, 0x84, 0x53, 0xa6, 0xf1, 0xda, 0xf8, 0x4f, 0x5e, 0x9d, 0xc3, 0x62, 0xe4, 0xdf, 0x22, + 0xf0, 0x15, 0xc2, 0x92, 0x87, 0xf3, 0xb0, 0xfc, 0x08, 0x5a, 0x74, 0x07, 0xc2, 0x1a, 0x16, 0x32, + 0x57, 0xf1, 0x3b, 0xc1, 0xea, 0x99, 0xf3, 0xe1, 0x85, 0x1b, 0xff, 0xdb, 0x1c, 0x9d, 0x09, 0x75, + 0x56, 0x08, 0xeb, 0x52, 0x20, 0x64, 0x43, 0xe6, 0x2a, 0x79, 0x10, 0xc2, 0xd2, 0x51, 0x42, 0xb4, + 0x06, 0xb3, 0x06, 0xad, 0x2a, 0x4d, 0x86, 0xf1, 0xbb, 0x3e, 0x97, 0xb9, 0xcb, 0x33, 0xf7, 0x2e, + 0x4d, 0xcd, 0x06, 0xe9, 0x08, 0x8f, 0xd6, 0x60, 0xde, 0xa0, 0x66, 0x42, 0x3a, 0x34, 0xbb, 0xbc, + 0x88, 0xdf, 0xf3, 0xbc, 0x56, 0x1a, 0x1a, 0xd4, 0x1b, 0x35, 0xe6, 0x39, 0x9a, 0xef, 0x17, 0x8a, + 0xf7, 0x98, 0x15, 0xb7, 0x31, 0xbe, 0x5f, 0x73, 0x6a, 0x70, 0x53, 0xdc, 0xc6, 0x68, 0x15, 0xc2, + 0x1d, 0x65, 0x99, 0xd2, 0x4e, 0x28, 0x69, 0xe3, 0x07, 0x44, 0x81, 0x1d, 0x65, 0x5f, 0x23, 0x28, + 0x6a, 0x03, 0xe4, 0xd9, 0x88, 0xf0, 0x3e, 0x11, 0xe6, 0xf2, 0xac, 0xa9, 0xaf, 0x42, 0xa8, 0x0b, + 0x3d, 0x22, 0x7c, 0x50, 0x2b, 0xe8, 0x42, 0x37, 0x8c, 0x37, 0xe1, 0xac, 0x45, 0xb3, 0x8b, 0x26, + 0xfe, 0x90, 0xde, 0x72, 0x7e, 0x7a, 0xe9, 0x76, 0xc8, 0xa9, 0x59, 0xf2, 0xea, 0xc1, 0x8f, 0x28, + 0xcb, 0x21, 0xcb, 0x0a, 0x81, 0xd2, 0xd9, 0xf8, 0x93, 0x7a, 0x44, 0x59, 0x0e, 0xaf, 0x10, 0x14, + 0xdd, 0x0b, 0xe0, 0xb1, 0xa6, 0xfc, 0x29, 0xad, 0x40, 0xff, 0x14, 0x87, 0xac, 0xad, 0x68, 0x1f, + 0x1a, 0xe3, 0xe8, 0xad, 0x00, 0x80, 0x67, 0x99, 0x2a, 0xa5, 0x13, 0xb2, 0x1f, 0x7f, 0x49, 0x61, + 0x0d, 0x4e, 0x71, 0x8e, 0xb1, 0x1b, 0x05, 0x36, 0x61, 0x1f, 0xdd, 0x81, 0x99, 0x5b, 0x86, 0x6b, + 0x1b, 0xff, 0x4c, 0x79, 0xe0, 0x29, 0xce, 0x51, 0x19, 0x51, 0x1a, 0x64, 0x9a, 0x3c, 0x0f, 0xe1, + 0xc4, 0x9b, 0x8c, 0x16, 0x61, 0x4a, 0xe8, 0xf8, 0xa3, 0xea, 0x18, 0xd2, 0x29, 0xa1, 0xa3, 0x65, + 0x98, 0xf6, 0x1a, 0xf1, 0xc7, 0xf4, 0x2e, 0xab, 0x87, 0x24, 0x85, 0xf9, 0xc9, 0x64, 0xa3, 0x15, + 0x98, 0x11, 0xb2, 0x87, 0x7b, 0xf1, 0x67, 0x15, 0xab, 0xb9, 0x22, 0x02, 0x6b, 0xcd, 0xcf, 0x8f, + 0x6b, 0x7e, 0x31, 0xa9, 0xf9, 0xdb, 0x19, 0x58, 0x3c, 0x12, 0x53, 0xf4, 0x1c, 0x2c, 0xd9, 0x32, + 0xcb, 0xd0, 0xda, 0xbc, 0x2c, 0x98, 0x41, 0x9f, 0xd2, 0x57, 0xbe, 0x69, 0x3a, 0x5d, 0x1c, 0x17, + 0x52, 0x8f, 0xfb, 0x23, 0xcc, 0xb9, 0x28, 0xb0, 0x57, 0xf3, 0xbe, 0x26, 0x5e, 0x48, 0x20, 0x71, + 0x5e, 0x82, 0xa4, 0x2a, 0x32, 0x21, 0x59, 0xc1, 0xad, 0x63, 0x87, 0x4e, 0xfb, 0x1b, 0x1a, 0xe7, + 0xf1, 0x8a, 0xb2, 0x21, 0x5f, 0xe6, 0xd6, 0xa5, 0x13, 0x57, 0x7e, 0x11, 0x56, 0x34, 0xcf, 0xb6, + 0xd1, 0x9d, 0xd0, 0xfe, 0x2d, 0xb5, 0xc7, 0x35, 0xe9, 0xb8, 0xc0, 0x15, 0x68, 0x0b, 0x69, 0x1d, + 0x97, 0x19, 0x9e, 0x20, 0xf1, 0x1d, 0x49, 0x24, 0x23, 0xda, 0x71, 0x91, 0xa7, 0xa1, 0xe5, 0x94, + 0xe3, 0x05, 0xab, 0x6d, 0xe2, 0xef, 0xe9, 0x77, 0xce, 0x57, 0xe8, 0x75, 0x02, 0xa3, 0x15, 0x98, + 0xf3, 0x87, 0x48, 0x7b, 0xf5, 0x03, 0x31, 0x66, 0x65, 0x39, 0x7c, 0xdd, 0x03, 0x5e, 0x83, 0xef, + 0xa2, 0xe1, 0x7d, 0xac, 0xb3, 0xfa, 0xb1, 0xd6, 0xa8, 0x51, 0x0a, 0xeb, 0x59, 0x58, 0xaa, 0x26, + 0x24, 0x23, 0xfa, 0xb2, 0xfd, 0x44, 0x03, 0x2e, 0xf8, 0x02, 0x79, 0xf9, 0x8f, 0x5b, 0x72, 0x11, + 0x60, 0xbc, 0x59, 0xe3, 0x6d, 0x78, 0xf8, 0xa8, 0x6d, 0x58, 0x86, 0x69, 0x27, 0x86, 0x18, 0xff, + 0x42, 0xfb, 0x50, 0x3d, 0xbc, 0x78, 0x37, 0x80, 0xa7, 0x06, 0x52, 0x1b, 0x76, 0xf2, 0xea, 0x33, + 0xdc, 0x73, 0xd1, 0xb9, 0xce, 0xb5, 0x52, 0x0a, 0x8d, 0xe6, 0x55, 0x74, 0xb7, 0x94, 0xd9, 0xb6, + 0x9b, 0x28, 0xad, 0x32, 0x36, 0xbe, 0x4b, 0x37, 0xfc, 0xc4, 0x3f, 0xdc, 0x4e, 0xfa, 0xa4, 0x77, + 0xb8, 0xe6, 0xeb, 0xd7, 0x73, 0xbc, 0xda, 0xfc, 0x69, 0x6d, 0xfa, 0xda, 0xd5, 0x3d, 0x77, 0xf9, + 0x8d, 0xdf, 0x0f, 0xda, 0xc1, 0x1f, 0x07, 0xed, 0xe0, 0xcf, 0x83, 0x76, 0x70, 0x23, 0xed, 0x0b, + 0xe7, 0xc5, 0xbc, 0x59, 0x47, 0xa2, 0xeb, 0x8a, 0x0c, 0x6f, 0xa2, 0xe9, 0x77, 0xb7, 0x90, 0x17, + 0x6e, 0xeb, 0xa6, 0x72, 0xeb, 0x42, 0xf6, 0xd1, 0xba, 0xf5, 0x81, 0x13, 0xeb, 0x92, 0x3b, 0xb1, + 0x8b, 0x5d, 0xbd, 0xdd, 0xef, 0x0e, 0x9c, 0xe8, 0xf2, 0x1e, 0xd7, 0x0e, 0x8d, 0xed, 0xd2, 0xef, + 0xe9, 0xda, 0x6c, 0x0b, 0x87, 0xfc, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x53, 0x6f, 0xfd, 0xa0, + 0x93, 0x08, 0x00, 0x00, +} + +func (m *JunosPfeExportMonStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Linecard != nil { + { + size, err := m.Linecard.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExportMonitor != nil { + { + size, err := m.ExportMonitor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ExportInfo) > 0 { + for iNdEx := len(m.ExportInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExportInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Wraps) > 0 { + for iNdEx := len(m.Wraps) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Wraps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x8a + } + } + if m.Accounting != nil { + { + size, err := m.Accounting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xba + } + if len(m.Clients) > 0 { + for iNdEx := len(m.Clients) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Clients[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + } + if m.NumClients != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.NumClients)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x90 + } + if m.Server != nil { + { + size, err := m.Server.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.PlpOptions != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.PlpOptions)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf0 + } + if m.FcOptions != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.FcOptions)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe8 + } + if m.QosOptions != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.QosOptions)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe0 + } + if m.PayloadSize != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.PayloadSize)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd8 + } + if m.RepInterval != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.RepInterval)) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd0 + } + if m.Resource != nil { + i -= len(*m.Resource) + copy(dAtA[i:], *m.Resource) + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(len(*m.Resource))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Port != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x88 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Port != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xb0 + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xaa + } + if m.Index != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xa0 + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastPacketSize != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.LastPacketSize)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x80 + } + if m.AverageReaps != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.AverageReaps)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xf8 + } + if m.NumWraps != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.NumWraps)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xf0 + } + if m.TotalPackets != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.TotalPackets)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xe8 + } + if m.InstancesInLastRepInterval != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.InstancesInLastRepInterval)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xe0 + } + if m.PacketsInLastRepInterval != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.PacketsInLastRepInterval)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xd8 + } + if m.ReapsInLastRepInterval != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.ReapsInLastRepInterval)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xd0 + } + if m.FailedReaps != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.FailedReaps)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xc8 + } + if m.SuccessfulReaps != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.SuccessfulReaps)) + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xc0 + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Time != nil { + i -= len(*m.Time) + copy(dAtA[i:], *m.Time) + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(len(*m.Time))) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x9a + } + if m.Index != nil { + i = encodeVarintPfeExportMonOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0x90 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfeExportMonOc(dAtA []byte, offset int, v uint64) int { + offset -= sovPfeExportMonOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPfeExportMonStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Linecard != nil { + l = m.Linecard.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ExportMonitor != nil { + l = m.ExportMonitor.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExportInfo) > 0 { + for _, e := range m.ExportInfo { + l = e.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Resource != nil { + l = len(*m.Resource) + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.RepInterval != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.RepInterval)) + } + if m.PayloadSize != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.PayloadSize)) + } + if m.QosOptions != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.QosOptions)) + } + if m.FcOptions != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.FcOptions)) + } + if m.PlpOptions != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.PlpOptions)) + } + if m.Server != nil { + l = m.Server.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.NumClients != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.NumClients)) + } + if len(m.Clients) > 0 { + for _, e := range m.Clients { + l = e.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + } + if m.Accounting != nil { + l = m.Accounting.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if len(m.Wraps) > 0 { + for _, e := range m.Wraps { + l = e.Size() + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.Port != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.Port)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.Index)) + } + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.Port != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.Port)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SuccessfulReaps != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.SuccessfulReaps)) + } + if m.FailedReaps != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.FailedReaps)) + } + if m.ReapsInLastRepInterval != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.ReapsInLastRepInterval)) + } + if m.PacketsInLastRepInterval != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.PacketsInLastRepInterval)) + } + if m.InstancesInLastRepInterval != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.InstancesInLastRepInterval)) + } + if m.TotalPackets != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.TotalPackets)) + } + if m.NumWraps != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.NumWraps)) + } + if m.AverageReaps != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.AverageReaps)) + } + if m.LastPacketSize != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.LastPacketSize)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovPfeExportMonOc(uint64(*m.Index)) + } + if m.Time != nil { + l = len(*m.Time) + n += 2 + l + sovPfeExportMonOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfeExportMonOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfeExportMonOc(x uint64) (n int) { + return sovPfeExportMonOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPfeExportMonStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pfe_export_mon_stats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pfe_export_mon_stats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosPfeExportMonStatsSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Linecard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Linecard == nil { + m.Linecard = &JunosPfeExportMonStatsSystemTypeLinecardType{} + } + if err := m.Linecard.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: linecard_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: linecard_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExportMonitor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExportMonitor == nil { + m.ExportMonitor = &JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType{} + } + if err := m.ExportMonitor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: export_monitor_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: export_monitor_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExportInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExportInfo = append(m.ExportInfo, &JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList{}) + if err := m.ExportInfo[len(m.ExportInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: export_info_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: export_info_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Resource = &s + iNdEx = postIndex + case 154: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RepInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RepInterval = &v + case 155: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PayloadSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PayloadSize = &v + case 156: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QosOptions", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QosOptions = &v + case 157: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FcOptions", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FcOptions = &v + case 158: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PlpOptions", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PlpOptions = &v + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Server == nil { + m.Server = &JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType{} + } + if err := m.Server.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 162: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumClients", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumClients = &v + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Clients", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Clients = append(m.Clients, &JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList{}) + if err := m.Clients[len(m.Clients)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 167: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Accounting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Accounting == nil { + m.Accounting = &JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType{} + } + if err := m.Accounting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 177: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Wraps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Wraps = append(m.Wraps, &JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList{}) + if err := m.Wraps[len(m.Wraps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListServerType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 161: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListClientsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: clients_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: clients_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 164: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 165: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 166: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListAccountingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: accounting_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: accounting_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 168: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulReaps", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SuccessfulReaps = &v + case 169: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedReaps", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FailedReaps = &v + case 170: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReapsInLastRepInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReapsInLastRepInterval = &v + case 171: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketsInLastRepInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketsInLastRepInterval = &v + case 172: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstancesInLastRepInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstancesInLastRepInterval = &v + case 173: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPackets = &v + case 174: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumWraps", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumWraps = &v + case 175: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AverageReaps", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AverageReaps = &v + case 176: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastPacketSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastPacketSize = &v + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeExportMonStatsSystemTypeLinecardTypeExportMonitorTypeExportInfoListWrapsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: wraps_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: wraps_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 178: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 179: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfeExportMonOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Time = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeExportMonOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeExportMonOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfeExportMonOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeExportMonOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfeExportMonOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfeExportMonOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfeExportMonOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfeExportMonOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfeExportMonOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfeExportMonOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_export_mon_oc.proto b/schema/pfe_export_mon_oc.proto new file mode 100755 index 0000000..c5fff4c --- /dev/null +++ b/schema/pfe_export_mon_oc.proto @@ -0,0 +1,57 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pfe_export_mon_stats jnpr_junos_pfe_export_mon_stats_ext = 129; +} + +message junos_pfe_export_mon_stats { + optional system_type system = 151; + message system_type { + optional linecard_type linecard = 151; + message linecard_type { + optional export_monitor_type export_monitor = 151; + message export_monitor_type { + message export_info_list { + optional string resource = 153 [(telemetry_options).is_key = true]; + optional uint32 rep_interval = 154; + optional uint32 payload_size = 155; + optional uint32 qos_options = 156; + optional uint32 fc_options = 157; + optional uint32 plp_options = 158; + optional server_type server = 159; + message server_type { + optional string ip = 160; + optional uint32 port = 161; + } + optional uint32 num_clients = 162; + message clients_list { + optional uint32 index = 164 [(telemetry_options).is_key = true]; + optional string ip = 165; + optional uint32 port = 166; + } + repeated clients_list clients = 163; + optional accounting_type accounting = 167; + message accounting_type { + optional uint64 successful_reaps = 168; + optional uint64 failed_reaps = 169; + optional uint32 reaps_in_last_rep_interval = 170; + optional uint32 packets_in_last_rep_interval = 171; + optional uint32 instances_in_last_rep_interval = 172; + optional uint64 total_packets = 173; + optional uint64 num_wraps = 174; + optional uint64 average_reaps = 175; + optional uint32 last_packet_size = 176; + } + message wraps_list { + optional uint32 index = 178 [(telemetry_options).is_key = true]; + optional string time = 179; + } + repeated wraps_list wraps = 177; + } + repeated export_info_list export_info = 152; + } + } + } +} diff --git a/schema/pfe_ifl_oc.pb.go b/schema/pfe_ifl_oc.pb.go new file mode 100644 index 0000000..e939f6b --- /dev/null +++ b/schema/pfe_ifl_oc.pb.go @@ -0,0 +1,1843 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_ifl_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesPfeIfl struct { + Interface []*InterfacesPfeIflInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfeIfl) Reset() { *m = InterfacesPfeIfl{} } +func (m *InterfacesPfeIfl) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfeIfl) ProtoMessage() {} +func (*InterfacesPfeIfl) Descriptor() ([]byte, []int) { + return fileDescriptor_8a4ae36ce16ed7ca, []int{0} +} +func (m *InterfacesPfeIfl) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfeIfl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfeIfl.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfeIfl) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfeIfl.Merge(m, src) +} +func (m *InterfacesPfeIfl) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfeIfl) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfeIfl.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfeIfl proto.InternalMessageInfo + +func (m *InterfacesPfeIfl) GetInterface() []*InterfacesPfeIflInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesPfeIflInterfaceList struct { + Subinterfaces *InterfacesPfeIflInterfaceListSubinterfacesType `protobuf:"bytes,151,opt,name=subinterfaces" json:"subinterfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfeIflInterfaceList) Reset() { *m = InterfacesPfeIflInterfaceList{} } +func (m *InterfacesPfeIflInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfeIflInterfaceList) ProtoMessage() {} +func (*InterfacesPfeIflInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_8a4ae36ce16ed7ca, []int{0, 0} +} +func (m *InterfacesPfeIflInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfeIflInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfeIflInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfeIflInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfeIflInterfaceList.Merge(m, src) +} +func (m *InterfacesPfeIflInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfeIflInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfeIflInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfeIflInterfaceList proto.InternalMessageInfo + +func (m *InterfacesPfeIflInterfaceList) GetSubinterfaces() *InterfacesPfeIflInterfaceListSubinterfacesType { + if m != nil { + return m.Subinterfaces + } + return nil +} + +type InterfacesPfeIflInterfaceListSubinterfacesType struct { + Subinterface []*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList `protobuf:"bytes,51,rep,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) Reset() { + *m = InterfacesPfeIflInterfaceListSubinterfacesType{} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfeIflInterfaceListSubinterfacesType) ProtoMessage() {} +func (*InterfacesPfeIflInterfaceListSubinterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_8a4ae36ce16ed7ca, []int{0, 0, 0} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesType.Merge(m, src) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesType proto.InternalMessageInfo + +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) GetSubinterface() []*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList { + if m != nil { + return m.Subinterface + } + return nil +} + +type InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList struct { + State *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) Reset() { + *m = InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList{} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) ProtoMessage() {} +func (*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_8a4ae36ce16ed7ca, []int{0, 0, 0, 0} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList.Merge(m, src) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList proto.InternalMessageInfo + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) GetState() *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType struct { + Counters *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) Reset() { + *m = InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType{} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) ProtoMessage() {} +func (*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_8a4ae36ce16ed7ca, []int{0, 0, 0, 0, 0} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType.Merge(m, src) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetCounters() *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType struct { + InOctets *uint64 `protobuf:"varint,51,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InUnicastPkts *uint64 `protobuf:"varint,52,opt,name=in_unicast_pkts,json=inUnicastPkts" json:"in_unicast_pkts,omitempty"` + InBroadcastPkts *uint64 `protobuf:"varint,53,opt,name=in_broadcast_pkts,json=inBroadcastPkts" json:"in_broadcast_pkts,omitempty"` + InMulticastPkts *uint64 `protobuf:"varint,54,opt,name=in_multicast_pkts,json=inMulticastPkts" json:"in_multicast_pkts,omitempty"` + InDiscards *uint64 `protobuf:"varint,55,opt,name=in_discards,json=inDiscards" json:"in_discards,omitempty"` + InErrors *uint64 `protobuf:"varint,56,opt,name=in_errors,json=inErrors" json:"in_errors,omitempty"` + InUnknownProtos *uint64 `protobuf:"varint,57,opt,name=in_unknown_protos,json=inUnknownProtos" json:"in_unknown_protos,omitempty"` + OutOctets *uint64 `protobuf:"varint,58,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutUnicastPkts *uint64 `protobuf:"varint,59,opt,name=out_unicast_pkts,json=outUnicastPkts" json:"out_unicast_pkts,omitempty"` + OutBroadcastPkts *uint64 `protobuf:"varint,60,opt,name=out_broadcast_pkts,json=outBroadcastPkts" json:"out_broadcast_pkts,omitempty"` + OutMulticastPkts *uint64 `protobuf:"varint,61,opt,name=out_multicast_pkts,json=outMulticastPkts" json:"out_multicast_pkts,omitempty"` + OutDiscards *uint64 `protobuf:"varint,62,opt,name=out_discards,json=outDiscards" json:"out_discards,omitempty"` + OutErrors *uint64 `protobuf:"varint,63,opt,name=out_errors,json=outErrors" json:"out_errors,omitempty"` + LastClear *uint64 `protobuf:"varint,64,opt,name=last_clear,json=lastClear" json:"last_clear,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Reset() { + *m = InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType{} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) ProtoMessage() { +} +func (*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_8a4ae36ce16ed7ca, []int{0, 0, 0, 0, 0, 0} +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInUnicastPkts() uint64 { + if m != nil && m.InUnicastPkts != nil { + return *m.InUnicastPkts + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInBroadcastPkts() uint64 { + if m != nil && m.InBroadcastPkts != nil { + return *m.InBroadcastPkts + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInMulticastPkts() uint64 { + if m != nil && m.InMulticastPkts != nil { + return *m.InMulticastPkts + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInDiscards() uint64 { + if m != nil && m.InDiscards != nil { + return *m.InDiscards + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInErrors() uint64 { + if m != nil && m.InErrors != nil { + return *m.InErrors + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInUnknownProtos() uint64 { + if m != nil && m.InUnknownProtos != nil { + return *m.InUnknownProtos + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutUnicastPkts() uint64 { + if m != nil && m.OutUnicastPkts != nil { + return *m.OutUnicastPkts + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutBroadcastPkts() uint64 { + if m != nil && m.OutBroadcastPkts != nil { + return *m.OutBroadcastPkts + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutMulticastPkts() uint64 { + if m != nil && m.OutMulticastPkts != nil { + return *m.OutMulticastPkts + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutDiscards() uint64 { + if m != nil && m.OutDiscards != nil { + return *m.OutDiscards + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutErrors() uint64 { + if m != nil && m.OutErrors != nil { + return *m.OutErrors + } + return 0 +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetLastClear() uint64 { + if m != nil && m.LastClear != nil { + return *m.LastClear + } + return 0 +} + +var E_JnprInterfacesPfeIflExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesPfeIfl)(nil), + Field: 58, + Name: "jnpr_interfaces_pfe_ifl_ext", + Tag: "bytes,58,opt,name=jnpr_interfaces_pfe_ifl_ext", + Filename: "pfe_ifl_oc.proto", +} + +func init() { + proto.RegisterType((*InterfacesPfeIfl)(nil), "interfaces_pfe_ifl") + proto.RegisterType((*InterfacesPfeIflInterfaceList)(nil), "interfaces_pfe_ifl.interface_list") + proto.RegisterType((*InterfacesPfeIflInterfaceListSubinterfacesType)(nil), "interfaces_pfe_ifl.interface_list.subinterfaces_type") + proto.RegisterType((*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList)(nil), "interfaces_pfe_ifl.interface_list.subinterfaces_type.subinterface_list") + proto.RegisterType((*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType)(nil), "interfaces_pfe_ifl.interface_list.subinterfaces_type.subinterface_list.state_type") + proto.RegisterType((*InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType)(nil), "interfaces_pfe_ifl.interface_list.subinterfaces_type.subinterface_list.state_type.counters_type") + proto.RegisterExtension(E_JnprInterfacesPfeIflExt) +} + +func init() { proto.RegisterFile("pfe_ifl_oc.proto", fileDescriptor_8a4ae36ce16ed7ca) } + +var fileDescriptor_8a4ae36ce16ed7ca = []byte{ + // 607 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcb, 0x4e, 0x14, 0x41, + 0x14, 0x86, 0x33, 0x11, 0x74, 0x38, 0xc3, 0xb5, 0x58, 0xd0, 0x19, 0x02, 0x22, 0x0b, 0x33, 0x31, + 0xd2, 0x9d, 0x80, 0x78, 0xc1, 0x3b, 0x4a, 0x0c, 0x26, 0x2a, 0x19, 0xc3, 0xc6, 0x98, 0x14, 0x3d, + 0x3d, 0x35, 0x43, 0x75, 0x37, 0x55, 0x9d, 0xaa, 0xd3, 0x02, 0x0b, 0x9f, 0xc3, 0x8d, 0x0b, 0xd7, + 0xba, 0xf0, 0x35, 0x5c, 0xfa, 0x08, 0x86, 0xc7, 0x70, 0x65, 0xaa, 0xfa, 0x32, 0xd3, 0x8c, 0x89, + 0x89, 0x61, 0xd9, 0x7f, 0x7d, 0xf5, 0xff, 0x75, 0xfe, 0x9c, 0x86, 0xd9, 0xa4, 0xc7, 0x28, 0xef, + 0xc5, 0x54, 0x06, 0x6e, 0xa2, 0x24, 0xca, 0xe6, 0x3c, 0xb2, 0x98, 0x1d, 0x31, 0x54, 0xa7, 0x14, + 0x65, 0x92, 0x89, 0xab, 0xbf, 0xeb, 0x40, 0xb8, 0x40, 0xa6, 0x7a, 0x7e, 0xc0, 0x34, 0xcd, 0x2f, + 0x91, 0xa7, 0x30, 0x51, 0xaa, 0xce, 0xa7, 0xda, 0xca, 0xa5, 0x56, 0x63, 0x7d, 0xd5, 0x1d, 0x05, + 0x07, 0x12, 0x8d, 0xb9, 0xc6, 0xf6, 0xe0, 0x56, 0xf3, 0x4b, 0x1d, 0xa6, 0xab, 0xa7, 0xe4, 0x3d, + 0x4c, 0xe9, 0xb4, 0x33, 0x70, 0x31, 0xce, 0xb5, 0x56, 0x63, 0x7d, 0xf3, 0xdf, 0xce, 0x6e, 0xe5, + 0x22, 0xc5, 0xd3, 0x84, 0xb5, 0xab, 0x66, 0xcd, 0xef, 0x57, 0x80, 0x8c, 0x52, 0x24, 0x82, 0xc9, + 0x61, 0xd5, 0xd9, 0xb0, 0xc3, 0xbc, 0xf8, 0xaf, 0xc8, 0x8a, 0x94, 0x4d, 0x5c, 0x31, 0x6f, 0x7e, + 0xbb, 0x0c, 0x73, 0x23, 0x0c, 0xe1, 0x30, 0xae, 0xd1, 0x47, 0x56, 0xcc, 0xdb, 0xbe, 0xa0, 0x70, + 0xd7, 0xba, 0x66, 0x65, 0x64, 0x09, 0xcd, 0xaf, 0xe3, 0x00, 0x03, 0x95, 0x7c, 0x84, 0x7a, 0x20, + 0x53, 0x73, 0xa9, 0x2c, 0xfb, 0xe0, 0xe2, 0xc3, 0xdd, 0x22, 0x23, 0x7b, 0x4a, 0x19, 0xd9, 0xfc, + 0x3c, 0x06, 0x53, 0x95, 0x33, 0xb2, 0x68, 0x16, 0x8b, 0xca, 0x00, 0x19, 0x6a, 0x67, 0x63, 0xa5, + 0xd6, 0x1a, 0x6b, 0xd7, 0xb9, 0x78, 0x63, 0xbf, 0xc9, 0x75, 0x98, 0xe1, 0x82, 0xa6, 0x82, 0x07, + 0xbe, 0x46, 0x9a, 0x44, 0xa8, 0x9d, 0x5b, 0x16, 0x99, 0xe2, 0x62, 0x3f, 0x53, 0xf7, 0x22, 0xd4, + 0xe4, 0x06, 0xcc, 0x71, 0x41, 0x3b, 0x4a, 0xfa, 0xdd, 0x01, 0xb9, 0x69, 0xc9, 0x19, 0x2e, 0xb6, + 0x0b, 0x7d, 0x88, 0x3d, 0x4a, 0x63, 0x1c, 0x72, 0xbd, 0x5d, 0xb0, 0xaf, 0x0a, 0xdd, 0xb2, 0x57, + 0xa1, 0xc1, 0x05, 0xed, 0x72, 0x1d, 0xf8, 0xaa, 0xab, 0x9d, 0x3b, 0x96, 0x02, 0x2e, 0x9e, 0xe7, + 0x4a, 0xfe, 0x7a, 0xa6, 0x94, 0x54, 0xda, 0xb9, 0x5b, 0xbc, 0x7e, 0xc7, 0x7e, 0xe7, 0x49, 0xa9, + 0x88, 0x84, 0x3c, 0x16, 0xd4, 0xfe, 0x5e, 0xda, 0xb9, 0x57, 0x24, 0xed, 0x67, 0xfa, 0x9e, 0x95, + 0xc9, 0x12, 0x80, 0x4c, 0xb1, 0xe8, 0x61, 0xcb, 0x42, 0x13, 0x32, 0xc5, 0xbc, 0x88, 0x16, 0xcc, + 0x9a, 0xe3, 0x4a, 0x13, 0xf7, 0x2d, 0x34, 0x2d, 0x53, 0x1c, 0xae, 0xe2, 0x26, 0x10, 0x43, 0x9e, + 0xeb, 0xe2, 0x81, 0x65, 0x8d, 0x47, 0xb5, 0x8c, 0x9c, 0x3e, 0xd7, 0xc6, 0xc3, 0x92, 0xae, 0xd6, + 0x71, 0x0d, 0x26, 0x0d, 0x5d, 0xf6, 0xf1, 0xc8, 0x72, 0x0d, 0x99, 0x62, 0x59, 0x48, 0x3e, 0x47, + 0xde, 0xc8, 0xe3, 0x72, 0x8e, 0xbc, 0x92, 0x25, 0x80, 0xd8, 0xc4, 0x04, 0x31, 0xf3, 0x95, 0xf3, + 0x24, 0x3b, 0x36, 0xca, 0x33, 0x23, 0x6c, 0x85, 0xb0, 0x18, 0x8a, 0x44, 0xd1, 0xd1, 0x85, 0xa4, + 0xec, 0x04, 0xc9, 0x82, 0xfb, 0x32, 0x15, 0x3c, 0x61, 0xea, 0x35, 0xc3, 0x63, 0xa9, 0x22, 0xfd, + 0x96, 0x09, 0x6d, 0x72, 0xb6, 0xec, 0x22, 0xcf, 0xff, 0x65, 0x91, 0xdb, 0x0b, 0xc6, 0x70, 0xb7, + 0xd4, 0xf7, 0x7a, 0x6c, 0xb7, 0x17, 0xef, 0x9c, 0xe0, 0xf6, 0xc1, 0x8f, 0xb3, 0xe5, 0xda, 0xcf, + 0xb3, 0xe5, 0xda, 0xaf, 0xb3, 0xe5, 0xda, 0xbb, 0x76, 0x9f, 0xa3, 0x1b, 0x66, 0xee, 0xae, 0x60, + 0xe8, 0xf1, 0x80, 0x75, 0x98, 0xea, 0x7b, 0x87, 0xcc, 0x8f, 0xf1, 0xb0, 0x23, 0x71, 0x8d, 0x8b, + 0x3e, 0xd3, 0xb8, 0x16, 0x22, 0x5f, 0x13, 0x3e, 0xf2, 0x0f, 0xcc, 0x4b, 0xa2, 0xbe, 0x17, 0x22, + 0xf7, 0xfc, 0xae, 0x9f, 0x98, 0x8d, 0xf6, 0x68, 0x98, 0x0a, 0xa9, 0x3d, 0x1d, 0x1c, 0xb2, 0x23, + 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x57, 0x66, 0x8e, 0x72, 0x05, 0x00, 0x00, +} + +func (m *InterfacesPfeIfl) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfeIfl) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfeIfl) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeIflOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfeIflInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfeIflInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfeIflInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterfaces != nil { + { + size, err := m.Subinterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeIflOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterface) > 0 { + for iNdEx := len(m.Subinterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeIflOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeIflOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeIflOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastClear != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.LastClear)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.OutErrors != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.OutErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.OutDiscards != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.OutDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.OutMulticastPkts != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.OutMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutBroadcastPkts != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.OutBroadcastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.OutUnicastPkts != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.OutUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.OutOctets != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InUnknownProtos != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InUnknownProtos)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.InErrors != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InDiscards != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InMulticastPkts != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InBroadcastPkts != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InBroadcastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InUnicastPkts != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InOctets != nil { + i = encodeVarintPfeIflOc(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfeIflOc(dAtA []byte, offset int, v uint64) int { + offset -= sovPfeIflOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesPfeIfl) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovPfeIflOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfeIflInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Subinterfaces != nil { + l = m.Subinterfaces.Size() + n += 2 + l + sovPfeIflOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subinterface) > 0 { + for _, e := range m.Subinterface { + l = e.Size() + n += 2 + l + sovPfeIflOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovPfeIflOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovPfeIflOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InOctets != nil { + n += 2 + sovPfeIflOc(uint64(*m.InOctets)) + } + if m.InUnicastPkts != nil { + n += 2 + sovPfeIflOc(uint64(*m.InUnicastPkts)) + } + if m.InBroadcastPkts != nil { + n += 2 + sovPfeIflOc(uint64(*m.InBroadcastPkts)) + } + if m.InMulticastPkts != nil { + n += 2 + sovPfeIflOc(uint64(*m.InMulticastPkts)) + } + if m.InDiscards != nil { + n += 2 + sovPfeIflOc(uint64(*m.InDiscards)) + } + if m.InErrors != nil { + n += 2 + sovPfeIflOc(uint64(*m.InErrors)) + } + if m.InUnknownProtos != nil { + n += 2 + sovPfeIflOc(uint64(*m.InUnknownProtos)) + } + if m.OutOctets != nil { + n += 2 + sovPfeIflOc(uint64(*m.OutOctets)) + } + if m.OutUnicastPkts != nil { + n += 2 + sovPfeIflOc(uint64(*m.OutUnicastPkts)) + } + if m.OutBroadcastPkts != nil { + n += 2 + sovPfeIflOc(uint64(*m.OutBroadcastPkts)) + } + if m.OutMulticastPkts != nil { + n += 2 + sovPfeIflOc(uint64(*m.OutMulticastPkts)) + } + if m.OutDiscards != nil { + n += 2 + sovPfeIflOc(uint64(*m.OutDiscards)) + } + if m.OutErrors != nil { + n += 2 + sovPfeIflOc(uint64(*m.OutErrors)) + } + if m.LastClear != nil { + n += 2 + sovPfeIflOc(uint64(*m.LastClear)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfeIflOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfeIflOc(x uint64) (n int) { + return sovPfeIflOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesPfeIfl) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_pfe_ifl: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_pfe_ifl: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeIflOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeIflOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesPfeIflInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeIflOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfeIflInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeIflOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeIflOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subinterfaces == nil { + m.Subinterfaces = &InterfacesPfeIflInterfaceListSubinterfacesType{} + } + if err := m.Subinterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeIflOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeIflOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeIflOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterface = append(m.Subinterface, &InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList{}) + if err := m.Subinterface[len(m.Subinterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeIflOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeIflOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeIflOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeIflOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeIflOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeIflOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeIflOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfeIflInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnicastPkts = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InBroadcastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InBroadcastPkts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastPkts = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDiscards = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InErrors = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnknownProtos", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnknownProtos = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutUnicastPkts = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutBroadcastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutBroadcastPkts = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastPkts = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDiscards = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutErrors = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastClear", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastClear = &v + default: + iNdEx = preIndex + skippy, err := skipPfeIflOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeIflOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfeIflOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeIflOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfeIflOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfeIflOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfeIflOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfeIflOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfeIflOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfeIflOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_ifl_oc.proto b/schema/pfe_ifl_oc.proto new file mode 100755 index 0000000..c50c669 --- /dev/null +++ b/schema/pfe_ifl_oc.proto @@ -0,0 +1,39 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_pfe_ifl jnpr_interfaces_pfe_ifl_ext = 58; +} + +message interfaces_pfe_ifl { + message interface_list { + optional subinterfaces_type subinterfaces = 151; + message subinterfaces_type { + message subinterface_list { + optional state_type state = 151; + message state_type { + optional counters_type counters = 151; + message counters_type { + optional uint64 in_octets = 51; + optional uint64 in_unicast_pkts = 52; + optional uint64 in_broadcast_pkts = 53; + optional uint64 in_multicast_pkts = 54; + optional uint64 in_discards = 55; + optional uint64 in_errors = 56; + optional uint64 in_unknown_protos = 57; + optional uint64 out_octets = 58; + optional uint64 out_unicast_pkts = 59; + optional uint64 out_broadcast_pkts = 60; + optional uint64 out_multicast_pkts = 61; + optional uint64 out_discards = 62; + optional uint64 out_errors = 63; + optional uint64 last_clear = 64; + } + } + } + repeated subinterface_list subinterface = 51; + } + } + repeated interface_list interface = 151; +} diff --git a/schema/pfe_npu_resource.pb.go b/schema/pfe_npu_resource.pb.go new file mode 100644 index 0000000..129fa85 --- /dev/null +++ b/schema/pfe_npu_resource.pb.go @@ -0,0 +1,491 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_npu_resource.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPfeNpu struct { + NpuMemory []*JunosPfeNpuNpuMemoryList `protobuf:"bytes,151,rep,name=npu_memory,json=npuMemory" json:"npu_memory,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeNpu) Reset() { *m = JunosPfeNpu{} } +func (m *JunosPfeNpu) String() string { return proto.CompactTextString(m) } +func (*JunosPfeNpu) ProtoMessage() {} +func (*JunosPfeNpu) Descriptor() ([]byte, []int) { + return fileDescriptor_cdd8cb97f7b6deb1, []int{0} +} +func (m *JunosPfeNpu) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeNpu) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeNpu.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeNpu) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeNpu.Merge(m, src) +} +func (m *JunosPfeNpu) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeNpu) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeNpu.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeNpu proto.InternalMessageInfo + +func (m *JunosPfeNpu) GetNpuMemory() []*JunosPfeNpuNpuMemoryList { + if m != nil { + return m.NpuMemory + } + return nil +} + +type JunosPfeNpuNpuMemoryList struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeNpuNpuMemoryList) Reset() { *m = JunosPfeNpuNpuMemoryList{} } +func (m *JunosPfeNpuNpuMemoryList) String() string { return proto.CompactTextString(m) } +func (*JunosPfeNpuNpuMemoryList) ProtoMessage() {} +func (*JunosPfeNpuNpuMemoryList) Descriptor() ([]byte, []int) { + return fileDescriptor_cdd8cb97f7b6deb1, []int{0, 0} +} +func (m *JunosPfeNpuNpuMemoryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeNpuNpuMemoryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeNpuNpuMemoryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeNpuNpuMemoryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeNpuNpuMemoryList.Merge(m, src) +} +func (m *JunosPfeNpuNpuMemoryList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeNpuNpuMemoryList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeNpuNpuMemoryList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeNpuNpuMemoryList proto.InternalMessageInfo + +var E_JnprJunosPfeNpuExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPfeNpu)(nil), + Field: 59, + Name: "jnpr_junos_pfe_npu_ext", + Tag: "bytes,59,opt,name=jnpr_junos_pfe_npu_ext", + Filename: "pfe_npu_resource.proto", +} + +func init() { + proto.RegisterType((*JunosPfeNpu)(nil), "junos_pfe_npu") + proto.RegisterType((*JunosPfeNpuNpuMemoryList)(nil), "junos_pfe_npu.npu_memory_list") + proto.RegisterExtension(E_JnprJunosPfeNpuExt) +} + +func init() { proto.RegisterFile("pfe_npu_resource.proto", fileDescriptor_cdd8cb97f7b6deb1) } + +var fileDescriptor_cdd8cb97f7b6deb1 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0xc1, 0x4a, 0xc3, 0x40, + 0x10, 0x86, 0x09, 0x9e, 0xdc, 0xa2, 0x62, 0x84, 0x5a, 0x7a, 0x08, 0xc5, 0x53, 0x2f, 0xc9, 0x42, + 0x8f, 0x0a, 0x1e, 0x04, 0x2f, 0x05, 0x8b, 0xc4, 0x9b, 0x1e, 0xd6, 0x24, 0x4e, 0x93, 0x4d, 0x93, + 0xdd, 0x61, 0x76, 0x56, 0xdb, 0x27, 0xf1, 0x95, 0x3c, 0xfa, 0x08, 0x92, 0x27, 0x91, 0x58, 0x41, + 0xe2, 0x71, 0xfe, 0xf9, 0xbf, 0x6f, 0x46, 0x8c, 0x71, 0x0d, 0xca, 0xa0, 0x57, 0x04, 0xce, 0x7a, + 0x2a, 0x20, 0x41, 0xb2, 0x6c, 0xa7, 0x67, 0x0c, 0x0d, 0xb4, 0xc0, 0xb4, 0x53, 0x6c, 0x71, 0x1f, + 0x5e, 0xe4, 0xe2, 0xa8, 0xf6, 0xc6, 0x3a, 0xf5, 0x0b, 0x85, 0xd7, 0x42, 0xf4, 0x6c, 0x0b, 0xad, + 0xa5, 0xdd, 0xe4, 0x3d, 0x98, 0x1d, 0xcc, 0x47, 0x8b, 0x28, 0x19, 0x94, 0x92, 0xbf, 0x86, 0x6a, + 0xb4, 0xe3, 0xf4, 0xd0, 0xa0, 0xbf, 0xfb, 0x99, 0xa7, 0xa7, 0xe2, 0xe4, 0xdf, 0xf6, 0xf2, 0x49, + 0x8c, 0x6b, 0x83, 0xa4, 0x06, 0x0e, 0x05, 0x5b, 0x0e, 0xcf, 0x93, 0xa5, 0x37, 0x1a, 0x81, 0x56, + 0xc0, 0x6f, 0x96, 0x36, 0xee, 0x01, 0x8c, 0xb3, 0xe4, 0x26, 0x57, 0xb3, 0x60, 0x3e, 0x5a, 0x1c, + 0x0f, 0xcf, 0xa6, 0x61, 0xaf, 0x59, 0xf6, 0xd1, 0xfd, 0x1a, 0x56, 0xe8, 0x6f, 0xb7, 0x7c, 0xf3, + 0xfc, 0xd1, 0x45, 0xc1, 0x67, 0x17, 0x05, 0x5f, 0x5d, 0x14, 0x3c, 0xa6, 0xa5, 0xe6, 0x1e, 0xea, + 0x9d, 0x89, 0x01, 0x96, 0xba, 0x80, 0x1c, 0xa8, 0x94, 0x15, 0x64, 0x0d, 0x57, 0xb9, 0xe5, 0x58, + 0x9b, 0x12, 0x1c, 0xc7, 0x35, 0xeb, 0xd8, 0x64, 0xac, 0x5f, 0x41, 0xe2, 0xa6, 0x94, 0x35, 0x6b, + 0x99, 0xbd, 0x64, 0xc8, 0x40, 0x4e, 0xee, 0x3f, 0x95, 0xae, 0xa8, 0xa0, 0xcd, 0xbe, 0x03, 0x00, + 0x00, 0xff, 0xff, 0x79, 0x29, 0xa7, 0x65, 0x50, 0x01, 0x00, 0x00, +} + +func (m *JunosPfeNpu) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeNpu) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeNpu) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NpuMemory) > 0 { + for iNdEx := len(m.NpuMemory) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NpuMemory[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfeNpuResource(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeNpuNpuMemoryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeNpuNpuMemoryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeNpuNpuMemoryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func encodeVarintPfeNpuResource(dAtA []byte, offset int, v uint64) int { + offset -= sovPfeNpuResource(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPfeNpu) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NpuMemory) > 0 { + for _, e := range m.NpuMemory { + l = e.Size() + n += 2 + l + sovPfeNpuResource(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeNpuNpuMemoryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfeNpuResource(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfeNpuResource(x uint64) (n int) { + return sovPfeNpuResource(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPfeNpu) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeNpuResource + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pfe_npu: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pfe_npu: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NpuMemory", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeNpuResource + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfeNpuResource + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfeNpuResource + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NpuMemory = append(m.NpuMemory, &JunosPfeNpuNpuMemoryList{}) + if err := m.NpuMemory[len(m.NpuMemory)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfeNpuResource(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeNpuResource + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeNpuResource + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeNpuNpuMemoryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfeNpuResource + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: npu_memory_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: npu_memory_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipPfeNpuResource(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfeNpuResource + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfeNpuResource + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfeNpuResource(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeNpuResource + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeNpuResource + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfeNpuResource + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfeNpuResource + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfeNpuResource + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfeNpuResource + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfeNpuResource = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfeNpuResource = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfeNpuResource = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_npu_resource.proto b/schema/pfe_npu_resource.proto new file mode 100755 index 0000000..87cf305 --- /dev/null +++ b/schema/pfe_npu_resource.proto @@ -0,0 +1,13 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pfe_npu jnpr_junos_pfe_npu_ext = 59; +} + +message junos_pfe_npu { + message npu_memory_list { + } + repeated npu_memory_list npu_memory = 151; +} diff --git a/schema/pfe_per_prefix_v4_stats.pb.go b/schema/pfe_per_prefix_v4_stats.pb.go new file mode 100644 index 0000000..9b0a209 --- /dev/null +++ b/schema/pfe_per_prefix_v4_stats.pb.go @@ -0,0 +1,1494 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_per_prefix_v4_stats.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesPfePerPrefixV4 struct { + NetworkInstance []*NetworkInstancesPfePerPrefixV4NetworkInstanceList `protobuf:"bytes,200,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV4) Reset() { *m = NetworkInstancesPfePerPrefixV4{} } +func (m *NetworkInstancesPfePerPrefixV4) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesPfePerPrefixV4) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV4) Descriptor() ([]byte, []int) { + return fileDescriptor_24331bc8c949f257, []int{0} +} +func (m *NetworkInstancesPfePerPrefixV4) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV4.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV4) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV4) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV4) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV4 proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV4) GetNetworkInstance() []*NetworkInstancesPfePerPrefixV4NetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesPfePerPrefixV4NetworkInstanceList struct { + Name *string `protobuf:"bytes,201,opt,name=name" json:"name,omitempty"` + Afts *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType `protobuf:"bytes,200,opt,name=afts" json:"afts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) Reset() { + *m = NetworkInstancesPfePerPrefixV4NetworkInstanceList{} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_24331bc8c949f257, []int{0, 0} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) GetAfts() *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType { + if m != nil { + return m.Afts + } + return nil +} + +type NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType struct { + Ipv4Unicast *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType `protobuf:"bytes,200,opt,name=ipv4_unicast,json=ipv4Unicast" json:"ipv4_unicast,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) Reset() { + *m = NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType{} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) Descriptor() ([]byte, []int) { + return fileDescriptor_24331bc8c949f257, []int{0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) GetIpv4Unicast() *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType { + if m != nil { + return m.Ipv4Unicast + } + return nil +} + +type NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType struct { + Ipv4Entry []*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList `protobuf:"bytes,200,rep,name=ipv4_entry,json=ipv4Entry" json:"ipv4_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) Reset() { + *m = NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType{} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_24331bc8c949f257, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) GetIpv4Entry() []*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList { + if m != nil { + return m.Ipv4Entry + } + return nil +} + +type NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList struct { + Prefix *string `protobuf:"bytes,202,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType `protobuf:"bytes,200,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Reset() { + *m = NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList{} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) ProtoMessage() { +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_24331bc8c949f257, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) GetState() *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType struct { + PacketsForwarded *uint64 `protobuf:"varint,203,opt,name=packets_forwarded,json=packetsForwarded" json:"packets_forwarded,omitempty"` + OctetsForwarded *uint64 `protobuf:"varint,204,opt,name=octets_forwarded,json=octetsForwarded" json:"octets_forwarded,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Reset() { + *m = NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType{} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) ProtoMessage() { +} +func (*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_24331bc8c949f257, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) GetPacketsForwarded() uint64 { + if m != nil && m.PacketsForwarded != nil { + return *m.PacketsForwarded + } + return 0 +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) GetOctetsForwarded() uint64 { + if m != nil && m.OctetsForwarded != nil { + return *m.OctetsForwarded + } + return 0 +} + +var E_JnprNetworkInstancesPfePerPrefixV4Ext = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesPfePerPrefixV4)(nil), + Field: 143, + Name: "jnpr_network_instances_pfe_per_prefix_v4_ext", + Tag: "bytes,143,opt,name=jnpr_network_instances_pfe_per_prefix_v4_ext", + Filename: "pfe_per_prefix_v4_stats.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesPfePerPrefixV4)(nil), "network_instances_pfe_per_prefix_v4") + proto.RegisterType((*NetworkInstancesPfePerPrefixV4NetworkInstanceList)(nil), "network_instances_pfe_per_prefix_v4.network_instance_list") + proto.RegisterType((*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType)(nil), "network_instances_pfe_per_prefix_v4.network_instance_list.afts_type") + proto.RegisterType((*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType)(nil), "network_instances_pfe_per_prefix_v4.network_instance_list.afts_type.ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList)(nil), "network_instances_pfe_per_prefix_v4.network_instance_list.afts_type.ipv4_unicast_type.ipv4_entry_list") + proto.RegisterType((*NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType)(nil), "network_instances_pfe_per_prefix_v4.network_instance_list.afts_type.ipv4_unicast_type.ipv4_entry_list.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesPfePerPrefixV4Ext) +} + +func init() { proto.RegisterFile("pfe_per_prefix_v4_stats.proto", fileDescriptor_24331bc8c949f257) } + +var fileDescriptor_24331bc8c949f257 = []byte{ + // 503 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x4f, 0x6b, 0x13, 0x41, + 0x18, 0xc6, 0x99, 0x36, 0x2d, 0x66, 0x22, 0x24, 0x1d, 0x11, 0xc3, 0x82, 0xa1, 0xf8, 0x07, 0x82, + 0x34, 0xbb, 0x50, 0x72, 0xea, 0x49, 0x8a, 0x15, 0xf4, 0x50, 0xc2, 0x8a, 0x05, 0xbd, 0x8c, 0xd3, + 0xcd, 0xbb, 0xc9, 0x6c, 0x92, 0xd9, 0x71, 0xe6, 0x4d, 0x9a, 0x78, 0xf4, 0x20, 0xde, 0xfc, 0x00, + 0x5e, 0xfd, 0x26, 0x5e, 0xea, 0x3f, 0xf0, 0x13, 0x88, 0xe4, 0x03, 0xf8, 0x19, 0x64, 0x77, 0x92, + 0xd6, 0x34, 0x1e, 0x82, 0xa8, 0xc7, 0xfc, 0xde, 0x27, 0xcf, 0xf3, 0xec, 0xfb, 0xee, 0xd2, 0xeb, + 0x3a, 0x06, 0xae, 0xc1, 0x70, 0x6d, 0x20, 0x96, 0x63, 0x3e, 0x6a, 0x72, 0x8b, 0x02, 0xad, 0xaf, + 0x4d, 0x8a, 0xa9, 0x77, 0x05, 0xa1, 0x0f, 0x03, 0x40, 0x33, 0xe1, 0x98, 0x6a, 0x07, 0x6f, 0xfc, + 0xd8, 0xa4, 0x37, 0x15, 0xe0, 0x49, 0x6a, 0x7a, 0x5c, 0x2a, 0x8b, 0x42, 0x45, 0x60, 0xf9, 0x92, + 0x11, 0x8b, 0x69, 0xe5, 0xa2, 0xac, 0x7a, 0x4a, 0xb6, 0xd7, 0xeb, 0xa5, 0xdd, 0x3d, 0x7f, 0x05, + 0x83, 0x25, 0x0d, 0xef, 0x4b, 0x8b, 0x61, 0x79, 0x86, 0x1f, 0xcc, 0xa8, 0xf7, 0x6d, 0x83, 0x5e, + 0xfd, 0xad, 0x94, 0x79, 0xb4, 0xa0, 0xc4, 0x00, 0xaa, 0x1f, 0xc8, 0x36, 0xa9, 0x17, 0xf7, 0x37, + 0x5e, 0xde, 0x5d, 0xbb, 0x44, 0xc2, 0x9c, 0xb1, 0x27, 0xb4, 0x20, 0x62, 0xb4, 0x59, 0x23, 0x52, + 0x2f, 0xed, 0xde, 0xfb, 0xf3, 0x46, 0x7e, 0xe6, 0xc3, 0x71, 0xa2, 0x21, 0xcc, 0x2d, 0xbd, 0x2f, + 0x05, 0x5a, 0x3c, 0x63, 0xec, 0x05, 0xbd, 0x2c, 0xf5, 0xa8, 0xc9, 0x87, 0x4a, 0x46, 0xc2, 0xe2, + 0x3c, 0xf0, 0xe8, 0x6f, 0x04, 0xfa, 0xbf, 0x3a, 0xbb, 0x0a, 0xa5, 0x0c, 0x3d, 0x76, 0xc4, 0x7b, + 0xbf, 0x4e, 0xb7, 0x96, 0x24, 0xec, 0x15, 0xa1, 0x34, 0xa7, 0xa0, 0xd0, 0x4c, 0xe6, 0x37, 0x89, + 0xff, 0x4d, 0x21, 0xff, 0x3c, 0xc9, 0xdd, 0xaf, 0x98, 0x81, 0x83, 0xec, 0xb7, 0xf7, 0x6e, 0x8d, + 0x96, 0x2f, 0x8c, 0x59, 0x8d, 0x6e, 0xba, 0xb4, 0xea, 0xc7, 0x85, 0xab, 0xcd, 0x28, 0x7b, 0x4d, + 0xe8, 0x46, 0xf6, 0x8a, 0xc2, 0x7c, 0x91, 0xcf, 0xff, 0x4f, 0x6f, 0x3f, 0x0f, 0x75, 0x3b, 0x76, + 0x05, 0xbc, 0x98, 0xd2, 0x73, 0xc8, 0x76, 0xe8, 0x96, 0x16, 0x51, 0x0f, 0xd0, 0xf2, 0x38, 0x35, + 0x27, 0xc2, 0xb4, 0xa1, 0x5d, 0xfd, 0x94, 0x75, 0x2c, 0x84, 0x95, 0xd9, 0xe4, 0xfe, 0x7c, 0xc0, + 0xee, 0xd0, 0x4a, 0x1a, 0xe1, 0xa2, 0xf8, 0xb3, 0x13, 0x97, 0xdd, 0xe0, 0x4c, 0xbb, 0xf7, 0x96, + 0xd0, 0x9d, 0x44, 0x69, 0xc3, 0x57, 0x78, 0x50, 0x0e, 0x63, 0x64, 0xd7, 0xfc, 0x87, 0x43, 0x25, + 0x35, 0x98, 0x43, 0xf7, 0x07, 0xfb, 0x08, 0x94, 0x4d, 0x8d, 0xad, 0xbe, 0x71, 0x2b, 0xbb, 0xb5, + 0xca, 0xca, 0xc2, 0xdb, 0x59, 0xe6, 0xe1, 0xe2, 0xc7, 0x66, 0x5b, 0x31, 0xb4, 0xc0, 0xb4, 0x72, + 0xd1, 0x51, 0xf3, 0x60, 0x8c, 0xfb, 0xcf, 0x4e, 0xa7, 0x35, 0xf2, 0x75, 0x5a, 0x23, 0xdf, 0xa7, + 0x35, 0xf2, 0x34, 0xec, 0x48, 0xf4, 0x13, 0x97, 0x9e, 0xa5, 0x04, 0x32, 0x82, 0x63, 0x30, 0x9d, + 0xa0, 0x0b, 0xa2, 0x8f, 0xdd, 0xe3, 0x14, 0x1b, 0x52, 0x75, 0xc0, 0x62, 0x23, 0x41, 0xd9, 0x50, + 0x02, 0xe5, 0x08, 0x02, 0xdd, 0xeb, 0x04, 0x09, 0xca, 0x40, 0xb4, 0x85, 0x46, 0x30, 0x36, 0xe0, + 0xc9, 0x50, 0xa5, 0x36, 0xb0, 0x51, 0x17, 0x06, 0xe2, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7e, + 0x37, 0x33, 0x0f, 0xa5, 0x04, 0x00, 0x00, +} + +func (m *NetworkInstancesPfePerPrefixV4) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV4) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV4) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xca + } + if m.Afts != nil { + { + size, err := m.Afts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv4Unicast != nil { + { + size, err := m.Ipv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ipv4Entry) > 0 { + for iNdEx := len(m.Ipv4Entry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ipv4Entry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OctetsForwarded != nil { + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(*m.OctetsForwarded)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xe0 + } + if m.PacketsForwarded != nil { + i = encodeVarintPfePerPrefixV4Stats(dAtA, i, uint64(*m.PacketsForwarded)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfePerPrefixV4Stats(dAtA []byte, offset int, v uint64) int { + offset -= sovPfePerPrefixV4Stats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesPfePerPrefixV4) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Afts != nil { + l = m.Afts.Size() + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv4Unicast != nil { + l = m.Ipv4Unicast.Size() + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ipv4Entry) > 0 { + for _, e := range m.Ipv4Entry { + l = e.Size() + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovPfePerPrefixV4Stats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PacketsForwarded != nil { + n += 2 + sovPfePerPrefixV4Stats(uint64(*m.PacketsForwarded)) + } + if m.OctetsForwarded != nil { + n += 2 + sovPfePerPrefixV4Stats(uint64(*m.OctetsForwarded)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfePerPrefixV4Stats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfePerPrefixV4Stats(x uint64) (n int) { + return sovPfePerPrefixV4Stats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesPfePerPrefixV4) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_pfe_per_prefix_v4: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_pfe_per_prefix_v4: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesPfePerPrefixV4NetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV4Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Afts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Afts == nil { + m.Afts = &NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType{} + } + if err := m.Afts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 201: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV4Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afts_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afts_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Unicast == nil { + m.Ipv4Unicast = &NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType{} + } + if err := m.Ipv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV4Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Entry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv4Entry = append(m.Ipv4Entry, &NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList{}) + if err := m.Ipv4Entry[len(m.Ipv4Entry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV4Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 200: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 202: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV4Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV4NetworkInstanceListAftsTypeIpv4UnicastTypeIpv4EntryListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 203: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketsForwarded", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketsForwarded = &v + case 204: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OctetsForwarded", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OctetsForwarded = &v + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV4Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV4Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfePerPrefixV4Stats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePerPrefixV4Stats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfePerPrefixV4Stats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfePerPrefixV4Stats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfePerPrefixV4Stats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfePerPrefixV4Stats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfePerPrefixV4Stats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfePerPrefixV4Stats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_per_prefix_v4_stats.proto b/schema/pfe_per_prefix_v4_stats.proto new file mode 100755 index 0000000..850bf08 --- /dev/null +++ b/schema/pfe_per_prefix_v4_stats.proto @@ -0,0 +1,29 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_pfe_per_prefix_v4 jnpr_network_instances_pfe_per_prefix_v4_ext = 143; +} + +message network_instances_pfe_per_prefix_v4 { + message network_instance_list { + optional string name = 201 [(telemetry_options).is_key = true]; + optional afts_type afts = 200; + message afts_type { + optional ipv4_unicast_type ipv4_unicast = 200; + message ipv4_unicast_type { + message ipv4_entry_list { + optional string prefix = 202 [(telemetry_options).is_key = true]; + optional state_type state = 200; + message state_type { + optional uint64 packets_forwarded = 203; + optional uint64 octets_forwarded = 204; + } + } + repeated ipv4_entry_list ipv4_entry = 200; + } + } + } + repeated network_instance_list network_instance = 200; +} diff --git a/schema/pfe_per_prefix_v6_stats.pb.go b/schema/pfe_per_prefix_v6_stats.pb.go new file mode 100644 index 0000000..2d379c9 --- /dev/null +++ b/schema/pfe_per_prefix_v6_stats.pb.go @@ -0,0 +1,1494 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_per_prefix_v6_stats.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesPfePerPrefixV6 struct { + NetworkInstance []*NetworkInstancesPfePerPrefixV6NetworkInstanceList `protobuf:"bytes,205,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV6) Reset() { *m = NetworkInstancesPfePerPrefixV6{} } +func (m *NetworkInstancesPfePerPrefixV6) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesPfePerPrefixV6) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV6) Descriptor() ([]byte, []int) { + return fileDescriptor_893d61141269cb38, []int{0} +} +func (m *NetworkInstancesPfePerPrefixV6) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV6) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV6.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV6) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV6) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV6) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV6 proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV6) GetNetworkInstance() []*NetworkInstancesPfePerPrefixV6NetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesPfePerPrefixV6NetworkInstanceList struct { + Name *string `protobuf:"bytes,206,opt,name=name" json:"name,omitempty"` + Afts *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType `protobuf:"bytes,205,opt,name=afts" json:"afts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) Reset() { + *m = NetworkInstancesPfePerPrefixV6NetworkInstanceList{} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_893d61141269cb38, []int{0, 0} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) GetAfts() *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType { + if m != nil { + return m.Afts + } + return nil +} + +type NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType struct { + Ipv6Unicast *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType `protobuf:"bytes,205,opt,name=ipv6_unicast,json=ipv6Unicast" json:"ipv6_unicast,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) Reset() { + *m = NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType{} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) Descriptor() ([]byte, []int) { + return fileDescriptor_893d61141269cb38, []int{0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) GetIpv6Unicast() *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType { + if m != nil { + return m.Ipv6Unicast + } + return nil +} + +type NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType struct { + Ipv6Entry []*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList `protobuf:"bytes,205,rep,name=ipv6_entry,json=ipv6Entry" json:"ipv6_entry,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) Reset() { + *m = NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType{} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) ProtoMessage() {} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_893d61141269cb38, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) GetIpv6Entry() []*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList { + if m != nil { + return m.Ipv6Entry + } + return nil +} + +type NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList struct { + Prefix *string `protobuf:"bytes,207,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType `protobuf:"bytes,205,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Reset() { + *m = NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList{} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) ProtoMessage() { +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Descriptor() ([]byte, []int) { + return fileDescriptor_893d61141269cb38, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) GetState() *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType struct { + PacketsForwarded *uint64 `protobuf:"varint,208,opt,name=packets_forwarded,json=packetsForwarded" json:"packets_forwarded,omitempty"` + OctetsForwarded *uint64 `protobuf:"varint,209,opt,name=octets_forwarded,json=octetsForwarded" json:"octets_forwarded,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Reset() { + *m = NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType{} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) ProtoMessage() { +} +func (*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_893d61141269cb38, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType.Merge(m, src) +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) GetPacketsForwarded() uint64 { + if m != nil && m.PacketsForwarded != nil { + return *m.PacketsForwarded + } + return 0 +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) GetOctetsForwarded() uint64 { + if m != nil && m.OctetsForwarded != nil { + return *m.OctetsForwarded + } + return 0 +} + +var E_JnprNetworkInstancesPfePerPrefixV6Ext = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesPfePerPrefixV6)(nil), + Field: 144, + Name: "jnpr_network_instances_pfe_per_prefix_v6_ext", + Tag: "bytes,144,opt,name=jnpr_network_instances_pfe_per_prefix_v6_ext", + Filename: "pfe_per_prefix_v6_stats.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesPfePerPrefixV6)(nil), "network_instances_pfe_per_prefix_v6") + proto.RegisterType((*NetworkInstancesPfePerPrefixV6NetworkInstanceList)(nil), "network_instances_pfe_per_prefix_v6.network_instance_list") + proto.RegisterType((*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType)(nil), "network_instances_pfe_per_prefix_v6.network_instance_list.afts_type") + proto.RegisterType((*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType)(nil), "network_instances_pfe_per_prefix_v6.network_instance_list.afts_type.ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList)(nil), "network_instances_pfe_per_prefix_v6.network_instance_list.afts_type.ipv6_unicast_type.ipv6_entry_list") + proto.RegisterType((*NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType)(nil), "network_instances_pfe_per_prefix_v6.network_instance_list.afts_type.ipv6_unicast_type.ipv6_entry_list.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesPfePerPrefixV6Ext) +} + +func init() { proto.RegisterFile("pfe_per_prefix_v6_stats.proto", fileDescriptor_893d61141269cb38) } + +var fileDescriptor_893d61141269cb38 = []byte{ + // 502 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x4f, 0x6b, 0x13, 0x41, + 0x18, 0xc6, 0x99, 0x36, 0x2d, 0x66, 0x22, 0x24, 0x1d, 0x11, 0xc3, 0x82, 0xa1, 0xf8, 0x07, 0x82, + 0x34, 0xbb, 0xd0, 0x43, 0x0e, 0x3d, 0x49, 0xb1, 0x82, 0x1e, 0x4a, 0x58, 0xb1, 0xa0, 0x97, 0x71, + 0xba, 0x79, 0x37, 0x99, 0x4d, 0x32, 0x3b, 0xce, 0xbc, 0x49, 0x13, 0x8f, 0x1e, 0xc4, 0xa3, 0x77, + 0xaf, 0x7e, 0x13, 0x2f, 0x5e, 0xaa, 0xf5, 0x0b, 0x88, 0xe4, 0x03, 0xf8, 0x19, 0x64, 0x77, 0x92, + 0xd6, 0x34, 0x1e, 0x82, 0xa8, 0xc7, 0xfc, 0xde, 0x27, 0xcf, 0xf3, 0xec, 0xfb, 0xee, 0xd2, 0x9b, + 0x3a, 0x06, 0xae, 0xc1, 0x70, 0x6d, 0x20, 0x96, 0x63, 0x3e, 0x6a, 0x72, 0x8b, 0x02, 0xad, 0xaf, + 0x4d, 0x8a, 0xa9, 0x77, 0x0d, 0xa1, 0x0f, 0x03, 0x40, 0x33, 0xe1, 0x98, 0x6a, 0x07, 0x6f, 0xfd, + 0xd8, 0xa4, 0xb7, 0x15, 0xe0, 0x49, 0x6a, 0x7a, 0x5c, 0x2a, 0x8b, 0x42, 0x45, 0x60, 0xf9, 0x92, + 0x11, 0x8b, 0x69, 0xe5, 0xb2, 0xac, 0x7a, 0x4a, 0xb6, 0xd7, 0xeb, 0xa5, 0xdd, 0x3d, 0x7f, 0x05, + 0x83, 0x25, 0x0d, 0xef, 0x4b, 0x8b, 0x61, 0x79, 0x86, 0x1f, 0xcd, 0xa8, 0xf7, 0x6d, 0x83, 0x5e, + 0xff, 0xad, 0x94, 0x79, 0xb4, 0xa0, 0xc4, 0x00, 0xaa, 0x9f, 0xc9, 0x36, 0xa9, 0x17, 0xf7, 0x37, + 0x5e, 0xdf, 0x5f, 0xbb, 0x42, 0xc2, 0x9c, 0xb1, 0x67, 0xb4, 0x20, 0x62, 0xb4, 0x59, 0x23, 0x52, + 0x2f, 0xed, 0x3e, 0xf8, 0xf3, 0x46, 0x7e, 0xe6, 0xc3, 0x71, 0xa2, 0x21, 0xcc, 0x2d, 0xbd, 0xd3, + 0x02, 0x2d, 0x9e, 0x33, 0xf6, 0x8a, 0x5e, 0x95, 0x7a, 0xd4, 0xe4, 0x43, 0x25, 0x23, 0x61, 0x71, + 0x1e, 0x78, 0xf4, 0x37, 0x02, 0xfd, 0x5f, 0x9d, 0x5d, 0x85, 0x52, 0x86, 0x9e, 0x3a, 0xe2, 0x7d, + 0x5c, 0xa7, 0x5b, 0x4b, 0x12, 0xf6, 0x86, 0x50, 0x9a, 0x53, 0x50, 0x68, 0x26, 0xf3, 0x9b, 0xc4, + 0xff, 0xa6, 0x90, 0x7f, 0x91, 0xe4, 0xee, 0x57, 0xcc, 0xc0, 0x41, 0xf6, 0xdb, 0xfb, 0xb0, 0x46, + 0xcb, 0x97, 0xc6, 0xac, 0x46, 0x37, 0x5d, 0x5a, 0xf5, 0xcb, 0xc2, 0xd5, 0x66, 0x94, 0xbd, 0x25, + 0x74, 0x23, 0x7b, 0x45, 0x61, 0xbe, 0xc8, 0x97, 0xff, 0xa7, 0xb7, 0x9f, 0x87, 0xba, 0x1d, 0xbb, + 0x02, 0x5e, 0x4c, 0xe9, 0x05, 0x64, 0x3b, 0x74, 0x4b, 0x8b, 0xa8, 0x07, 0x68, 0x79, 0x9c, 0x9a, + 0x13, 0x61, 0xda, 0xd0, 0xae, 0x9e, 0x65, 0x1d, 0x0b, 0x61, 0x65, 0x36, 0x79, 0x38, 0x1f, 0xb0, + 0x7b, 0xb4, 0x92, 0x46, 0xb8, 0x28, 0xfe, 0xea, 0xc4, 0x65, 0x37, 0x38, 0xd7, 0xee, 0xbd, 0x27, + 0x74, 0x27, 0x51, 0xda, 0xf0, 0x15, 0x1e, 0x94, 0xc3, 0x18, 0xd9, 0x0d, 0xff, 0xf1, 0x50, 0x49, + 0x0d, 0xe6, 0xd0, 0xfd, 0xc1, 0x3e, 0x01, 0x65, 0x53, 0x63, 0xab, 0xef, 0xdc, 0xca, 0xee, 0xac, + 0xb2, 0xb2, 0xf0, 0x6e, 0x96, 0x79, 0xb8, 0xf8, 0xb1, 0xd9, 0x56, 0x0c, 0x2d, 0x30, 0xad, 0x5c, + 0x74, 0xd4, 0x3c, 0x18, 0xe3, 0xfe, 0x8b, 0x4f, 0xd3, 0x1a, 0x39, 0x9b, 0xd6, 0xc8, 0xf7, 0x69, + 0x8d, 0x3c, 0x0f, 0x3b, 0x12, 0xfd, 0xc4, 0xa5, 0x67, 0x29, 0x81, 0x8c, 0xe0, 0x18, 0x4c, 0x27, + 0xe8, 0x82, 0xe8, 0x63, 0xf7, 0x38, 0xc5, 0x86, 0x54, 0x1d, 0xb0, 0xd8, 0x48, 0x50, 0x36, 0x94, + 0x40, 0x39, 0x82, 0x40, 0xf7, 0x3a, 0x41, 0x82, 0x32, 0x10, 0x6d, 0xa1, 0x11, 0x8c, 0x0d, 0x78, + 0x32, 0x54, 0xa9, 0x0d, 0x6c, 0xd4, 0x85, 0x81, 0xf8, 0x19, 0x00, 0x00, 0xff, 0xff, 0xac, 0x32, + 0x59, 0xa3, 0xa5, 0x04, 0x00, 0x00, +} + +func (m *NetworkInstancesPfePerPrefixV6) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV6) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV6) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xea + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xf2 + } + if m.Afts != nil { + { + size, err := m.Afts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6Unicast != nil { + { + size, err := m.Ipv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ipv6Entry) > 0 { + for iNdEx := len(m.Ipv6Entry) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ipv6Entry[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xea + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xfa + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OctetsForwarded != nil { + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(*m.OctetsForwarded)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x88 + } + if m.PacketsForwarded != nil { + i = encodeVarintPfePerPrefixV6Stats(dAtA, i, uint64(*m.PacketsForwarded)) + i-- + dAtA[i] = 0xd + i-- + dAtA[i] = 0x80 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfePerPrefixV6Stats(dAtA []byte, offset int, v uint64) int { + offset -= sovPfePerPrefixV6Stats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesPfePerPrefixV6) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Afts != nil { + l = m.Afts.Size() + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv6Unicast != nil { + l = m.Ipv6Unicast.Size() + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ipv6Entry) > 0 { + for _, e := range m.Ipv6Entry { + l = e.Size() + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovPfePerPrefixV6Stats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PacketsForwarded != nil { + n += 2 + sovPfePerPrefixV6Stats(uint64(*m.PacketsForwarded)) + } + if m.OctetsForwarded != nil { + n += 2 + sovPfePerPrefixV6Stats(uint64(*m.OctetsForwarded)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfePerPrefixV6Stats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfePerPrefixV6Stats(x uint64) (n int) { + return sovPfePerPrefixV6Stats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesPfePerPrefixV6) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_pfe_per_prefix_v6: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_pfe_per_prefix_v6: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 205: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesPfePerPrefixV6NetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV6Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 205: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Afts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Afts == nil { + m.Afts = &NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType{} + } + if err := m.Afts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 206: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV6Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afts_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afts_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 205: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Unicast == nil { + m.Ipv6Unicast = &NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType{} + } + if err := m.Ipv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV6Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 205: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Entry", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv6Entry = append(m.Ipv6Entry, &NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList{}) + if err := m.Ipv6Entry[len(m.Ipv6Entry)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV6Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_entry_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_entry_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 205: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 207: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV6Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesPfePerPrefixV6NetworkInstanceListAftsTypeIpv6UnicastTypeIpv6EntryListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 208: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketsForwarded", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketsForwarded = &v + case 209: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OctetsForwarded", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OctetsForwarded = &v + default: + iNdEx = preIndex + skippy, err := skipPfePerPrefixV6Stats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePerPrefixV6Stats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfePerPrefixV6Stats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePerPrefixV6Stats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfePerPrefixV6Stats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfePerPrefixV6Stats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfePerPrefixV6Stats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfePerPrefixV6Stats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfePerPrefixV6Stats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfePerPrefixV6Stats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_per_prefix_v6_stats.proto b/schema/pfe_per_prefix_v6_stats.proto new file mode 100755 index 0000000..473ee8c --- /dev/null +++ b/schema/pfe_per_prefix_v6_stats.proto @@ -0,0 +1,29 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_pfe_per_prefix_v6 jnpr_network_instances_pfe_per_prefix_v6_ext = 144; +} + +message network_instances_pfe_per_prefix_v6 { + message network_instance_list { + optional string name = 206 [(telemetry_options).is_key = true]; + optional afts_type afts = 205; + message afts_type { + optional ipv6_unicast_type ipv6_unicast = 205; + message ipv6_unicast_type { + message ipv6_entry_list { + optional string prefix = 207 [(telemetry_options).is_key = true]; + optional state_type state = 205; + message state_type { + optional uint64 packets_forwarded = 208; + optional uint64 octets_forwarded = 209; + } + } + repeated ipv6_entry_list ipv6_entry = 205; + } + } + } + repeated network_instance_list network_instance = 205; +} diff --git a/schema/pfe_port_oc.pb.go b/schema/pfe_port_oc.pb.go new file mode 100644 index 0000000..ad25bbb --- /dev/null +++ b/schema/pfe_port_oc.pb.go @@ -0,0 +1,1437 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_port_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesPfePort struct { + Interface []*InterfacesPfePortInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePort) Reset() { *m = InterfacesPfePort{} } +func (m *InterfacesPfePort) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfePort) ProtoMessage() {} +func (*InterfacesPfePort) Descriptor() ([]byte, []int) { + return fileDescriptor_87ca96f985bf0515, []int{0} +} +func (m *InterfacesPfePort) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePort.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePort) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePort.Merge(m, src) +} +func (m *InterfacesPfePort) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePort) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePort.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePort proto.InternalMessageInfo + +func (m *InterfacesPfePort) GetInterface() []*InterfacesPfePortInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesPfePortInterfaceList struct { + State *InterfacesPfePortInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortInterfaceList) Reset() { *m = InterfacesPfePortInterfaceList{} } +func (m *InterfacesPfePortInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfePortInterfaceList) ProtoMessage() {} +func (*InterfacesPfePortInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_87ca96f985bf0515, []int{0, 0} +} +func (m *InterfacesPfePortInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortInterfaceList.Merge(m, src) +} +func (m *InterfacesPfePortInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortInterfaceList proto.InternalMessageInfo + +func (m *InterfacesPfePortInterfaceList) GetState() *InterfacesPfePortInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesPfePortInterfaceListStateType struct { + Counters *InterfacesPfePortInterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortInterfaceListStateType) Reset() { + *m = InterfacesPfePortInterfaceListStateType{} +} +func (m *InterfacesPfePortInterfaceListStateType) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfePortInterfaceListStateType) ProtoMessage() {} +func (*InterfacesPfePortInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_87ca96f985bf0515, []int{0, 0, 0} +} +func (m *InterfacesPfePortInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortInterfaceListStateType.Merge(m, src) +} +func (m *InterfacesPfePortInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortInterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesPfePortInterfaceListStateType) GetCounters() *InterfacesPfePortInterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesPfePortInterfaceListStateTypeCountersType struct { + InOctets *uint64 `protobuf:"varint,51,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InUnicastPkts *uint64 `protobuf:"varint,52,opt,name=in_unicast_pkts,json=inUnicastPkts" json:"in_unicast_pkts,omitempty"` + InBroadcastPkts *uint64 `protobuf:"varint,53,opt,name=in_broadcast_pkts,json=inBroadcastPkts" json:"in_broadcast_pkts,omitempty"` + InMulticastPkts *uint64 `protobuf:"varint,54,opt,name=in_multicast_pkts,json=inMulticastPkts" json:"in_multicast_pkts,omitempty"` + InDiscards *uint64 `protobuf:"varint,55,opt,name=in_discards,json=inDiscards" json:"in_discards,omitempty"` + InErrors *uint64 `protobuf:"varint,56,opt,name=in_errors,json=inErrors" json:"in_errors,omitempty"` + InUnknownProtos *uint64 `protobuf:"varint,57,opt,name=in_unknown_protos,json=inUnknownProtos" json:"in_unknown_protos,omitempty"` + OutOctets *uint64 `protobuf:"varint,58,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutUnicastPkts *uint64 `protobuf:"varint,59,opt,name=out_unicast_pkts,json=outUnicastPkts" json:"out_unicast_pkts,omitempty"` + OutBroadcastPkts *uint64 `protobuf:"varint,60,opt,name=out_broadcast_pkts,json=outBroadcastPkts" json:"out_broadcast_pkts,omitempty"` + OutMulticastPkts *uint64 `protobuf:"varint,61,opt,name=out_multicast_pkts,json=outMulticastPkts" json:"out_multicast_pkts,omitempty"` + OutDiscards *uint64 `protobuf:"varint,62,opt,name=out_discards,json=outDiscards" json:"out_discards,omitempty"` + OutErrors *uint64 `protobuf:"varint,63,opt,name=out_errors,json=outErrors" json:"out_errors,omitempty"` + LastClear *uint64 `protobuf:"varint,64,opt,name=last_clear,json=lastClear" json:"last_clear,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) Reset() { + *m = InterfacesPfePortInterfaceListStateTypeCountersType{} +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfePortInterfaceListStateTypeCountersType) ProtoMessage() {} +func (*InterfacesPfePortInterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_87ca96f985bf0515, []int{0, 0, 0, 0} +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortInterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortInterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortInterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortInterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInUnicastPkts() uint64 { + if m != nil && m.InUnicastPkts != nil { + return *m.InUnicastPkts + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInBroadcastPkts() uint64 { + if m != nil && m.InBroadcastPkts != nil { + return *m.InBroadcastPkts + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInMulticastPkts() uint64 { + if m != nil && m.InMulticastPkts != nil { + return *m.InMulticastPkts + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInDiscards() uint64 { + if m != nil && m.InDiscards != nil { + return *m.InDiscards + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInErrors() uint64 { + if m != nil && m.InErrors != nil { + return *m.InErrors + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetInUnknownProtos() uint64 { + if m != nil && m.InUnknownProtos != nil { + return *m.InUnknownProtos + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetOutUnicastPkts() uint64 { + if m != nil && m.OutUnicastPkts != nil { + return *m.OutUnicastPkts + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetOutBroadcastPkts() uint64 { + if m != nil && m.OutBroadcastPkts != nil { + return *m.OutBroadcastPkts + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetOutMulticastPkts() uint64 { + if m != nil && m.OutMulticastPkts != nil { + return *m.OutMulticastPkts + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetOutDiscards() uint64 { + if m != nil && m.OutDiscards != nil { + return *m.OutDiscards + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetOutErrors() uint64 { + if m != nil && m.OutErrors != nil { + return *m.OutErrors + } + return 0 +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) GetLastClear() uint64 { + if m != nil && m.LastClear != nil { + return *m.LastClear + } + return 0 +} + +var E_JnprInterfacesPfePortExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesPfePort)(nil), + Field: 60, + Name: "jnpr_interfaces_pfe_port_ext", + Tag: "bytes,60,opt,name=jnpr_interfaces_pfe_port_ext", + Filename: "pfe_port_oc.proto", +} + +func init() { + proto.RegisterType((*InterfacesPfePort)(nil), "interfaces_pfe_port") + proto.RegisterType((*InterfacesPfePortInterfaceList)(nil), "interfaces_pfe_port.interface_list") + proto.RegisterType((*InterfacesPfePortInterfaceListStateType)(nil), "interfaces_pfe_port.interface_list.state_type") + proto.RegisterType((*InterfacesPfePortInterfaceListStateTypeCountersType)(nil), "interfaces_pfe_port.interface_list.state_type.counters_type") + proto.RegisterExtension(E_JnprInterfacesPfePortExt) +} + +func init() { proto.RegisterFile("pfe_port_oc.proto", fileDescriptor_87ca96f985bf0515) } + +var fileDescriptor_87ca96f985bf0515 = []byte{ + // 551 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcd, 0x6e, 0xd3, 0x40, + 0x14, 0x85, 0x65, 0xd1, 0xa0, 0x76, 0x42, 0x5b, 0xea, 0x22, 0x61, 0x05, 0x1a, 0x0a, 0x48, 0x28, + 0x42, 0xc4, 0x96, 0xca, 0x7f, 0x09, 0x3f, 0x0a, 0x64, 0x01, 0x12, 0x10, 0x05, 0x75, 0x01, 0x9b, + 0x61, 0xe2, 0xdc, 0x24, 0x93, 0x38, 0x33, 0xd6, 0xcc, 0x35, 0x6d, 0x5f, 0x80, 0x57, 0x60, 0xc3, + 0xa3, 0xf0, 0x00, 0x2c, 0x79, 0x84, 0x2a, 0x4f, 0x82, 0x66, 0xfc, 0x93, 0xb8, 0xca, 0x02, 0x96, + 0x3e, 0xf7, 0x3b, 0xe7, 0x7a, 0x8e, 0x2e, 0xd9, 0x89, 0x87, 0x40, 0x63, 0xa9, 0x90, 0xca, 0xd0, + 0x8f, 0x95, 0x44, 0x59, 0xdb, 0x45, 0x88, 0x60, 0x06, 0xa8, 0x4e, 0x29, 0xca, 0x38, 0x15, 0x6f, + 0xfd, 0xba, 0x48, 0x76, 0xb9, 0x40, 0x50, 0x43, 0x16, 0x82, 0xa6, 0xb9, 0xcb, 0x6d, 0x93, 0x8d, + 0x42, 0xf6, 0x7e, 0x38, 0xfb, 0x17, 0x1a, 0xd5, 0x83, 0xdb, 0xfe, 0x0a, 0x72, 0xa1, 0xd1, 0x88, + 0x6b, 0xec, 0x2d, 0x6c, 0xb5, 0xb3, 0x0a, 0xd9, 0x2a, 0x4f, 0xdd, 0x0e, 0xa9, 0x68, 0x64, 0x68, + 0x23, 0x9d, 0x46, 0xf5, 0xc0, 0xff, 0x87, 0x48, 0xdf, 0x3a, 0x28, 0x9e, 0xc6, 0xd0, 0x4b, 0xdd, + 0xb5, 0xef, 0x15, 0x42, 0x16, 0xaa, 0xfb, 0x99, 0xac, 0x87, 0x32, 0x31, 0x26, 0x9d, 0x07, 0xb7, + 0xfe, 0x2f, 0xd8, 0xcf, 0xfd, 0xe9, 0x9a, 0x22, 0xae, 0xf6, 0x73, 0x8d, 0x6c, 0x96, 0x66, 0xee, + 0x35, 0xd3, 0x0c, 0x95, 0x21, 0x02, 0x6a, 0xef, 0xfe, 0xbe, 0xd3, 0x58, 0xeb, 0xad, 0x73, 0xf1, + 0xd1, 0x7e, 0xbb, 0x77, 0xc8, 0x36, 0x17, 0x34, 0x11, 0x3c, 0x64, 0x1a, 0x69, 0x3c, 0x45, 0xed, + 0x3d, 0xb0, 0xc8, 0x26, 0x17, 0x47, 0xa9, 0xda, 0x9d, 0xa2, 0x76, 0xef, 0x92, 0x1d, 0x2e, 0x68, + 0x5f, 0x49, 0x36, 0x58, 0x90, 0x0f, 0x2d, 0xb9, 0xcd, 0x45, 0x3b, 0xd7, 0x97, 0xd8, 0x59, 0x12, + 0xe1, 0x52, 0xea, 0xa3, 0x9c, 0x7d, 0x9f, 0xeb, 0x96, 0xbd, 0x41, 0xaa, 0x5c, 0xd0, 0x01, 0xd7, + 0x21, 0x53, 0x03, 0xed, 0x3d, 0xb6, 0x14, 0xe1, 0xe2, 0x4d, 0xa6, 0x64, 0x7f, 0x0f, 0x4a, 0x49, + 0xa5, 0xbd, 0x27, 0xf9, 0xdf, 0x77, 0xec, 0x77, 0xb6, 0x29, 0x11, 0x53, 0x21, 0x8f, 0x05, 0xb5, + 0x07, 0xa2, 0xbd, 0xa7, 0xf9, 0xa6, 0xa3, 0x54, 0xef, 0x5a, 0xd9, 0xdd, 0x23, 0x44, 0x26, 0x98, + 0xf7, 0x70, 0x68, 0xa1, 0x0d, 0x99, 0x60, 0x56, 0x44, 0x83, 0x5c, 0x36, 0xe3, 0x52, 0x13, 0xcf, + 0x2c, 0xb4, 0x25, 0x13, 0x5c, 0xae, 0xe2, 0x1e, 0x71, 0x0d, 0x79, 0xae, 0x8b, 0x96, 0x65, 0x4d, + 0x46, 0xb9, 0x8c, 0x8c, 0x3e, 0xd7, 0xc6, 0xf3, 0x82, 0x2e, 0xd7, 0x71, 0x93, 0x5c, 0x32, 0x74, + 0xd1, 0xc7, 0x0b, 0xcb, 0x55, 0x65, 0x82, 0x45, 0x21, 0xd9, 0x3b, 0xb2, 0x46, 0x5e, 0x16, 0xef, + 0xc8, 0x2a, 0xd9, 0x23, 0x24, 0x32, 0x6b, 0xc2, 0x08, 0x98, 0xf2, 0x5e, 0xa5, 0x63, 0xa3, 0xbc, + 0x36, 0xc2, 0xe1, 0x8c, 0x5c, 0x9f, 0x88, 0x58, 0xd1, 0x15, 0xc7, 0x46, 0xe1, 0x04, 0xdd, 0xab, + 0xfe, 0xbb, 0x44, 0xf0, 0x18, 0xd4, 0x07, 0xc0, 0x63, 0xa9, 0xa6, 0xfa, 0x13, 0x08, 0x6d, 0x16, + 0xb5, 0xec, 0x95, 0x5e, 0x59, 0x75, 0xa5, 0x3d, 0xcf, 0x44, 0xbe, 0x2d, 0x06, 0xdd, 0x21, 0x74, + 0xa5, 0xc2, 0xce, 0x09, 0xb6, 0xbf, 0xfe, 0x9e, 0xd7, 0x9d, 0x3f, 0xf3, 0xba, 0x73, 0x36, 0xaf, + 0x3b, 0x5f, 0x7a, 0x23, 0x8e, 0xfe, 0x24, 0xcd, 0xf7, 0x05, 0x60, 0xc0, 0x43, 0xe8, 0x83, 0x1a, + 0x05, 0x63, 0x60, 0x11, 0x8e, 0xfb, 0x12, 0x9b, 0x5c, 0x8c, 0x40, 0x63, 0x73, 0x82, 0xbc, 0x29, + 0x18, 0xf2, 0x6f, 0x10, 0xc4, 0xd3, 0x51, 0x30, 0x41, 0x1e, 0xb0, 0x01, 0x8b, 0xcd, 0x51, 0x07, + 0x74, 0x92, 0x08, 0xa9, 0x03, 0x1d, 0x8e, 0x61, 0xc6, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x2d, + 0xa6, 0xa7, 0xc3, 0x38, 0x04, 0x00, 0x00, +} + +func (m *InterfacesPfePort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePort) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePort) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastClear != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.LastClear)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.OutErrors != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.OutErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.OutDiscards != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.OutDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.OutMulticastPkts != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.OutMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutBroadcastPkts != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.OutBroadcastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.OutUnicastPkts != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.OutUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.OutOctets != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InUnknownProtos != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InUnknownProtos)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.InErrors != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InDiscards != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InMulticastPkts != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InMulticastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InBroadcastPkts != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InBroadcastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InUnicastPkts != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InUnicastPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InOctets != nil { + i = encodeVarintPfePortOc(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfePortOc(dAtA []byte, offset int, v uint64) int { + offset -= sovPfePortOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesPfePort) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovPfePortOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovPfePortOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovPfePortOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InOctets != nil { + n += 2 + sovPfePortOc(uint64(*m.InOctets)) + } + if m.InUnicastPkts != nil { + n += 2 + sovPfePortOc(uint64(*m.InUnicastPkts)) + } + if m.InBroadcastPkts != nil { + n += 2 + sovPfePortOc(uint64(*m.InBroadcastPkts)) + } + if m.InMulticastPkts != nil { + n += 2 + sovPfePortOc(uint64(*m.InMulticastPkts)) + } + if m.InDiscards != nil { + n += 2 + sovPfePortOc(uint64(*m.InDiscards)) + } + if m.InErrors != nil { + n += 2 + sovPfePortOc(uint64(*m.InErrors)) + } + if m.InUnknownProtos != nil { + n += 2 + sovPfePortOc(uint64(*m.InUnknownProtos)) + } + if m.OutOctets != nil { + n += 2 + sovPfePortOc(uint64(*m.OutOctets)) + } + if m.OutUnicastPkts != nil { + n += 2 + sovPfePortOc(uint64(*m.OutUnicastPkts)) + } + if m.OutBroadcastPkts != nil { + n += 2 + sovPfePortOc(uint64(*m.OutBroadcastPkts)) + } + if m.OutMulticastPkts != nil { + n += 2 + sovPfePortOc(uint64(*m.OutMulticastPkts)) + } + if m.OutDiscards != nil { + n += 2 + sovPfePortOc(uint64(*m.OutDiscards)) + } + if m.OutErrors != nil { + n += 2 + sovPfePortOc(uint64(*m.OutErrors)) + } + if m.LastClear != nil { + n += 2 + sovPfePortOc(uint64(*m.LastClear)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfePortOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfePortOc(x uint64) (n int) { + return sovPfePortOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesPfePort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_pfe_port: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_pfe_port: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesPfePortInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesPfePortInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &InterfacesPfePortInterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortInterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnicastPkts = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InBroadcastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InBroadcastPkts = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InMulticastPkts = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDiscards = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InErrors = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InUnknownProtos", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InUnknownProtos = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutUnicastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutUnicastPkts = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutBroadcastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutBroadcastPkts = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutMulticastPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutMulticastPkts = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDiscards = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutErrors = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastClear", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastClear = &v + default: + iNdEx = preIndex + skippy, err := skipPfePortOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfePortOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePortOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfePortOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfePortOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfePortOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfePortOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfePortOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfePortOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_port_oc.proto b/schema/pfe_port_oc.proto new file mode 100755 index 0000000..1bbe2d3 --- /dev/null +++ b/schema/pfe_port_oc.proto @@ -0,0 +1,33 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_pfe_port jnpr_interfaces_pfe_port_ext = 60; +} + +message interfaces_pfe_port { + message interface_list { + optional state_type state = 151; + message state_type { + optional counters_type counters = 151; + message counters_type { + optional uint64 in_octets = 51; + optional uint64 in_unicast_pkts = 52; + optional uint64 in_broadcast_pkts = 53; + optional uint64 in_multicast_pkts = 54; + optional uint64 in_discards = 55; + optional uint64 in_errors = 56; + optional uint64 in_unknown_protos = 57; + optional uint64 out_octets = 58; + optional uint64 out_unicast_pkts = 59; + optional uint64 out_broadcast_pkts = 60; + optional uint64 out_multicast_pkts = 61; + optional uint64 out_discards = 62; + optional uint64 out_errors = 63; + optional uint64 last_clear = 64; + } + } + } + repeated interface_list interface = 151; +} diff --git a/schema/pfe_port_qstats_ext.pb.go b/schema/pfe_port_qstats_ext.pb.go new file mode 100644 index 0000000..44957fa --- /dev/null +++ b/schema/pfe_port_qstats_ext.pb.go @@ -0,0 +1,1348 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfe_port_qstats_ext.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesPfePortQstats struct { + Interface []*InterfacesPfePortQstatsInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortQstats) Reset() { *m = InterfacesPfePortQstats{} } +func (m *InterfacesPfePortQstats) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfePortQstats) ProtoMessage() {} +func (*InterfacesPfePortQstats) Descriptor() ([]byte, []int) { + return fileDescriptor_b03c49f876c4931e, []int{0} +} +func (m *InterfacesPfePortQstats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortQstats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortQstats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortQstats) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortQstats.Merge(m, src) +} +func (m *InterfacesPfePortQstats) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortQstats) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortQstats.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortQstats proto.InternalMessageInfo + +func (m *InterfacesPfePortQstats) GetInterface() []*InterfacesPfePortQstatsInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesPfePortQstatsInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *InterfacesPfePortQstatsInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortQstatsInterfaceList) Reset() { *m = InterfacesPfePortQstatsInterfaceList{} } +func (m *InterfacesPfePortQstatsInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesPfePortQstatsInterfaceList) ProtoMessage() {} +func (*InterfacesPfePortQstatsInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_b03c49f876c4931e, []int{0, 0} +} +func (m *InterfacesPfePortQstatsInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortQstatsInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortQstatsInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortQstatsInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceList.Merge(m, src) +} +func (m *InterfacesPfePortQstatsInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortQstatsInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortQstatsInterfaceList proto.InternalMessageInfo + +func (m *InterfacesPfePortQstatsInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesPfePortQstatsInterfaceList) GetState() *InterfacesPfePortQstatsInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesPfePortQstatsInterfaceListStateType struct { + Counters *InterfacesPfePortQstatsInterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortQstatsInterfaceListStateType) Reset() { + *m = InterfacesPfePortQstatsInterfaceListStateType{} +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfePortQstatsInterfaceListStateType) ProtoMessage() {} +func (*InterfacesPfePortQstatsInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b03c49f876c4931e, []int{0, 0, 0} +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateType.Merge(m, src) +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesPfePortQstatsInterfaceListStateType) GetCounters() *InterfacesPfePortQstatsInterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesPfePortQstatsInterfaceListStateTypeCountersType struct { + OutQueue []*InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList `protobuf:"bytes,151,rep,name=out_queue,json=outQueue" json:"out_queue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) Reset() { + *m = InterfacesPfePortQstatsInterfaceListStateTypeCountersType{} +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfePortQstatsInterfaceListStateTypeCountersType) ProtoMessage() {} +func (*InterfacesPfePortQstatsInterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_b03c49f876c4931e, []int{0, 0, 0, 0} +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) GetOutQueue() []*InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList { + if m != nil { + return m.OutQueue + } + return nil +} + +type InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList struct { + QueueNumber *uint32 `protobuf:"varint,51,opt,name=queue_number,json=queueNumber" json:"queue_number,omitempty"` + QueuedPkts *uint64 `protobuf:"varint,52,opt,name=queued_pkts,json=queuedPkts" json:"queued_pkts,omitempty"` + QueuedBytes *uint64 `protobuf:"varint,53,opt,name=queued_bytes,json=queuedBytes" json:"queued_bytes,omitempty"` + LpRedDropPkts *uint64 `protobuf:"varint,54,opt,name=lp_red_drop_pkts,json=lpRedDropPkts" json:"lp_red_drop_pkts,omitempty"` + HpRedDropPkts *uint64 `protobuf:"varint,55,opt,name=hp_red_drop_pkts,json=hpRedDropPkts" json:"hp_red_drop_pkts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) Reset() { + *m = InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList{} +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) ProtoMessage() {} +func (*InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) Descriptor() ([]byte, []int) { + return fileDescriptor_b03c49f876c4931e, []int{0, 0, 0, 0, 0} +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList.Merge(m, src) +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList proto.InternalMessageInfo + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) GetQueueNumber() uint32 { + if m != nil && m.QueueNumber != nil { + return *m.QueueNumber + } + return 0 +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) GetQueuedPkts() uint64 { + if m != nil && m.QueuedPkts != nil { + return *m.QueuedPkts + } + return 0 +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) GetQueuedBytes() uint64 { + if m != nil && m.QueuedBytes != nil { + return *m.QueuedBytes + } + return 0 +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) GetLpRedDropPkts() uint64 { + if m != nil && m.LpRedDropPkts != nil { + return *m.LpRedDropPkts + } + return 0 +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) GetHpRedDropPkts() uint64 { + if m != nil && m.HpRedDropPkts != nil { + return *m.HpRedDropPkts + } + return 0 +} + +var E_JnprInterfacesPfePortQstatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesPfePortQstats)(nil), + Field: 133, + Name: "jnpr_interfaces_pfe_port_qstats_ext", + Tag: "bytes,133,opt,name=jnpr_interfaces_pfe_port_qstats_ext", + Filename: "pfe_port_qstats_ext.proto", +} + +func init() { + proto.RegisterType((*InterfacesPfePortQstats)(nil), "interfaces_pfe_port_qstats") + proto.RegisterType((*InterfacesPfePortQstatsInterfaceList)(nil), "interfaces_pfe_port_qstats.interface_list") + proto.RegisterType((*InterfacesPfePortQstatsInterfaceListStateType)(nil), "interfaces_pfe_port_qstats.interface_list.state_type") + proto.RegisterType((*InterfacesPfePortQstatsInterfaceListStateTypeCountersType)(nil), "interfaces_pfe_port_qstats.interface_list.state_type.counters_type") + proto.RegisterType((*InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList)(nil), "interfaces_pfe_port_qstats.interface_list.state_type.counters_type.out_queue_list") + proto.RegisterExtension(E_JnprInterfacesPfePortQstatsExt) +} + +func init() { proto.RegisterFile("pfe_port_qstats_ext.proto", fileDescriptor_b03c49f876c4931e) } + +var fileDescriptor_b03c49f876c4931e = []byte{ + // 488 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xc1, 0x6a, 0x13, 0x41, + 0x18, 0xc7, 0x99, 0x36, 0x81, 0x64, 0x62, 0x4a, 0x19, 0x0f, 0xa6, 0x2b, 0xc4, 0xa8, 0x87, 0x06, + 0x21, 0xbb, 0x50, 0xad, 0x82, 0x27, 0x89, 0x7a, 0xa8, 0x48, 0x49, 0xd7, 0x9b, 0x97, 0xe9, 0x26, + 0xfb, 0x25, 0xd9, 0xcd, 0x66, 0x66, 0x3a, 0xf3, 0xad, 0x36, 0xd7, 0x82, 0xcf, 0xe0, 0x43, 0xf8, + 0x14, 0x1e, 0x04, 0x8f, 0x3d, 0xf8, 0x00, 0x92, 0x27, 0x91, 0x9d, 0x69, 0x36, 0xa6, 0x50, 0x11, + 0xf1, 0xf8, 0x7d, 0xff, 0xef, 0xff, 0xfb, 0xc3, 0x7f, 0x86, 0xee, 0xa9, 0x31, 0x70, 0x25, 0x35, + 0xf2, 0x33, 0x83, 0x11, 0x1a, 0x0e, 0xe7, 0xe8, 0x2b, 0x2d, 0x51, 0x7a, 0xb7, 0x11, 0x32, 0x98, + 0x03, 0xea, 0x05, 0x47, 0xa9, 0xdc, 0xf2, 0xc1, 0x97, 0x2a, 0xf5, 0x12, 0x81, 0xa0, 0xc7, 0xd1, + 0x08, 0x0c, 0xbf, 0xe6, 0x66, 0x47, 0xb4, 0x5e, 0xaa, 0xad, 0xcf, 0xa4, 0xb3, 0xdd, 0x6d, 0x1c, + 0x3c, 0xf2, 0x6f, 0x36, 0xac, 0x25, 0x9e, 0x25, 0x06, 0xc3, 0xb5, 0xdb, 0xfb, 0x5a, 0xa1, 0x3b, + 0x9b, 0x2a, 0xdb, 0xa3, 0x15, 0x11, 0xcd, 0xa1, 0xf5, 0xb8, 0x43, 0xba, 0xf5, 0x7e, 0xf5, 0xe2, + 0xc5, 0x56, 0x8d, 0x84, 0x76, 0xc5, 0xde, 0xd2, 0x6a, 0x01, 0xb4, 0xa1, 0xa4, 0xdb, 0x38, 0x38, + 0xfc, 0xfb, 0x50, 0xdf, 0x1a, 0x39, 0x2e, 0x14, 0x84, 0x0e, 0xe2, 0x7d, 0xdb, 0xa6, 0x74, 0xbd, + 0x65, 0xa7, 0xb4, 0x36, 0x92, 0x79, 0x61, 0x32, 0x2b, 0xfe, 0xcb, 0x7f, 0xe2, 0xfb, 0x2b, 0x8c, + 0x4b, 0x2b, 0xa9, 0xde, 0x8f, 0x2d, 0xda, 0xdc, 0xd0, 0x98, 0xa2, 0x75, 0x99, 0x23, 0x3f, 0xcb, + 0x21, 0x2f, 0x9b, 0x0c, 0xff, 0x43, 0xa8, 0x5f, 0x52, 0x5d, 0xe3, 0x35, 0x99, 0xe3, 0x49, 0x31, + 0x7a, 0x97, 0x84, 0xee, 0x6c, 0x8a, 0xac, 0x4b, 0x6f, 0xb9, 0x49, 0xe4, 0xf3, 0x21, 0x68, 0x5b, + 0x7c, 0x73, 0x55, 0x7c, 0xc3, 0x4a, 0xc7, 0x56, 0x61, 0xf7, 0xa8, 0x1b, 0x63, 0xae, 0x66, 0x68, + 0x5a, 0x4f, 0x3a, 0xa4, 0x5b, 0x09, 0xa9, 0x5b, 0x0d, 0x66, 0x68, 0xd8, 0xfd, 0x2b, 0x54, 0xcc, + 0x87, 0x0b, 0x04, 0xd3, 0x3a, 0xb4, 0x17, 0x57, 0xa6, 0x7e, 0xb1, 0x62, 0xfb, 0x74, 0x37, 0x53, + 0x5c, 0x43, 0xcc, 0x63, 0x2d, 0x95, 0x03, 0x3d, 0xb5, 0x67, 0xcd, 0x4c, 0x85, 0x10, 0xbf, 0xd2, + 0x52, 0x59, 0xd6, 0x3e, 0xdd, 0x9d, 0x5e, 0x3f, 0x7c, 0xe6, 0x0e, 0xa7, 0xbf, 0x1f, 0x3e, 0xbf, + 0x20, 0xf4, 0x61, 0x2a, 0x94, 0xe6, 0x37, 0xf7, 0x56, 0x7c, 0x78, 0x76, 0xc7, 0x7f, 0x93, 0x8b, + 0x44, 0x81, 0x3e, 0x06, 0xfc, 0x28, 0xf5, 0xcc, 0xbc, 0x03, 0x61, 0xa4, 0x36, 0xad, 0x4f, 0xee, + 0xb5, 0xef, 0xfe, 0xa1, 0xf8, 0xb0, 0x5d, 0x24, 0x1c, 0x95, 0xfa, 0x60, 0x0c, 0x03, 0xa9, 0xf1, + 0xc4, 0x8a, 0xaf, 0xcf, 0xb1, 0x7f, 0xfa, 0x7d, 0xd9, 0x26, 0x97, 0xcb, 0x36, 0xf9, 0xb9, 0x6c, + 0x93, 0xf7, 0xe1, 0x24, 0x41, 0x3f, 0x75, 0x69, 0xbe, 0x00, 0x0c, 0x92, 0x11, 0x0c, 0x41, 0x4f, + 0x82, 0x29, 0x44, 0x19, 0x4e, 0x87, 0x12, 0x7b, 0x89, 0x98, 0x80, 0xc1, 0x5e, 0x8a, 0x49, 0x4f, + 0x44, 0x98, 0x7c, 0x80, 0x40, 0xcd, 0x26, 0x41, 0x8a, 0x49, 0x10, 0xc5, 0x91, 0x2a, 0x5e, 0x32, + 0xe0, 0x69, 0x2e, 0xa4, 0x09, 0xcc, 0x68, 0x0a, 0xf3, 0xe8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xa4, 0x20, 0x10, 0xe8, 0xc5, 0x03, 0x00, 0x00, +} + +func (m *InterfacesPfePortQstats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortQstats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortQstats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortQstatsInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortQstatsInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortQstatsInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortQstatsInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortQstatsInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortQstatsInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.OutQueue) > 0 { + for iNdEx := len(m.OutQueue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OutQueue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HpRedDropPkts != nil { + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(*m.HpRedDropPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.LpRedDropPkts != nil { + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(*m.LpRedDropPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.QueuedBytes != nil { + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(*m.QueuedBytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.QueuedPkts != nil { + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(*m.QueuedPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.QueueNumber != nil { + i = encodeVarintPfePortQstatsExt(dAtA, i, uint64(*m.QueueNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintPfePortQstatsExt(dAtA []byte, offset int, v uint64) int { + offset -= sovPfePortQstatsExt(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesPfePortQstats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovPfePortQstatsExt(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortQstatsInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovPfePortQstatsExt(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovPfePortQstatsExt(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortQstatsInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovPfePortQstatsExt(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.OutQueue) > 0 { + for _, e := range m.OutQueue { + l = e.Size() + n += 2 + l + sovPfePortQstatsExt(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QueueNumber != nil { + n += 2 + sovPfePortQstatsExt(uint64(*m.QueueNumber)) + } + if m.QueuedPkts != nil { + n += 2 + sovPfePortQstatsExt(uint64(*m.QueuedPkts)) + } + if m.QueuedBytes != nil { + n += 2 + sovPfePortQstatsExt(uint64(*m.QueuedBytes)) + } + if m.LpRedDropPkts != nil { + n += 2 + sovPfePortQstatsExt(uint64(*m.LpRedDropPkts)) + } + if m.HpRedDropPkts != nil { + n += 2 + sovPfePortQstatsExt(uint64(*m.HpRedDropPkts)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfePortQstatsExt(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfePortQstatsExt(x uint64) (n int) { + return sovPfePortQstatsExt(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesPfePortQstats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_pfe_port_qstats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_pfe_port_qstats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesPfePortQstatsInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortQstatsExt(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortQstatsInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesPfePortQstatsInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortQstatsExt(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortQstatsInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &InterfacesPfePortQstatsInterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortQstatsExt(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutQueue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OutQueue = append(m.OutQueue, &InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList{}) + if err := m.OutQueue[len(m.OutQueue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfePortQstatsExt(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesPfePortQstatsInterfaceListStateTypeCountersTypeOutQueueList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: out_queue_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: out_queue_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueNumber = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueuedPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueuedPkts = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueuedBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueuedBytes = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LpRedDropPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LpRedDropPkts = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HpRedDropPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HpRedDropPkts = &v + default: + iNdEx = preIndex + skippy, err := skipPfePortQstatsExt(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfePortQstatsExt + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfePortQstatsExt(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfePortQstatsExt + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfePortQstatsExt + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfePortQstatsExt + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfePortQstatsExt + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfePortQstatsExt = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfePortQstatsExt = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfePortQstatsExt = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfe_port_qstats_ext.proto b/schema/pfe_port_qstats_ext.proto new file mode 100755 index 0000000..18ed477 --- /dev/null +++ b/schema/pfe_port_qstats_ext.proto @@ -0,0 +1,28 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_pfe_port_qstats jnpr_interfaces_pfe_port_qstats_ext = 133; +} + +message interfaces_pfe_port_qstats { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional counters_type counters = 151; + message counters_type { + message out_queue_list { + optional uint32 queue_number = 51 [(telemetry_options).is_key = true]; + optional uint64 queued_pkts = 52; + optional uint64 queued_bytes = 53; + optional uint64 lp_red_drop_pkts = 54; + optional uint64 hp_red_drop_pkts = 55; + } + repeated out_queue_list out_queue = 151; + } + } + } + repeated interface_list interface = 151; +} diff --git a/schema/pfed_oc.pb.go b/schema/pfed_oc.pb.go new file mode 100644 index 0000000..fc6f678 --- /dev/null +++ b/schema/pfed_oc.pb.go @@ -0,0 +1,1064 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: pfed_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPfe struct { + NpuMemory []*JunosPfeNpuMemoryList `protobuf:"bytes,151,rep,name=npu_memory,json=npuMemory" json:"npu_memory,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfe) Reset() { *m = JunosPfe{} } +func (m *JunosPfe) String() string { return proto.CompactTextString(m) } +func (*JunosPfe) ProtoMessage() {} +func (*JunosPfe) Descriptor() ([]byte, []int) { + return fileDescriptor_5714edf97ed06d9c, []int{0} +} +func (m *JunosPfe) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfe.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfe) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfe.Merge(m, src) +} +func (m *JunosPfe) XXX_Size() int { + return m.Size() +} +func (m *JunosPfe) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfe.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfe proto.InternalMessageInfo + +func (m *JunosPfe) GetNpuMemory() []*JunosPfeNpuMemoryList { + if m != nil { + return m.NpuMemory + } + return nil +} + +type JunosPfeNpuMemoryList struct { + PfeName *string `protobuf:"bytes,51,opt,name=pfe_name,json=pfeName" json:"pfe_name,omitempty"` + CombinedPoolName *string `protobuf:"bytes,52,opt,name=combined_pool_name,json=combinedPoolName" json:"combined_pool_name,omitempty"` + CombinedSize *uint32 `protobuf:"varint,53,opt,name=combined_size,json=combinedSize" json:"combined_size,omitempty"` + CombinedUsageCount *uint32 `protobuf:"varint,54,opt,name=combined_usage_count,json=combinedUsageCount" json:"combined_usage_count,omitempty"` + CombinedUtilization *uint32 `protobuf:"varint,55,opt,name=combined_utilization,json=combinedUtilization" json:"combined_utilization,omitempty"` + GlobalPoolName *string `protobuf:"bytes,56,opt,name=global_pool_name,json=globalPoolName" json:"global_pool_name,omitempty"` + GlobalUsageCount *uint32 `protobuf:"varint,57,opt,name=global_usage_count,json=globalUsageCount" json:"global_usage_count,omitempty"` + GlobalAllocCount *uint32 `protobuf:"varint,58,opt,name=global_alloc_count,json=globalAllocCount" json:"global_alloc_count,omitempty"` + GlobalFreeCount *uint32 `protobuf:"varint,59,opt,name=global_free_count,json=globalFreeCount" json:"global_free_count,omitempty"` + LocalPoolName *string `protobuf:"bytes,60,opt,name=local_pool_name,json=localPoolName" json:"local_pool_name,omitempty"` + LocalUsageCount *uint32 `protobuf:"varint,61,opt,name=local_usage_count,json=localUsageCount" json:"local_usage_count,omitempty"` + LocalAllocCount *uint32 `protobuf:"varint,62,opt,name=local_alloc_count,json=localAllocCount" json:"local_alloc_count,omitempty"` + LocalFreeCount *uint32 `protobuf:"varint,63,opt,name=local_free_count,json=localFreeCount" json:"local_free_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeNpuMemoryList) Reset() { *m = JunosPfeNpuMemoryList{} } +func (m *JunosPfeNpuMemoryList) String() string { return proto.CompactTextString(m) } +func (*JunosPfeNpuMemoryList) ProtoMessage() {} +func (*JunosPfeNpuMemoryList) Descriptor() ([]byte, []int) { + return fileDescriptor_5714edf97ed06d9c, []int{0, 0} +} +func (m *JunosPfeNpuMemoryList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeNpuMemoryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeNpuMemoryList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeNpuMemoryList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeNpuMemoryList.Merge(m, src) +} +func (m *JunosPfeNpuMemoryList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeNpuMemoryList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeNpuMemoryList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeNpuMemoryList proto.InternalMessageInfo + +func (m *JunosPfeNpuMemoryList) GetPfeName() string { + if m != nil && m.PfeName != nil { + return *m.PfeName + } + return "" +} + +func (m *JunosPfeNpuMemoryList) GetCombinedPoolName() string { + if m != nil && m.CombinedPoolName != nil { + return *m.CombinedPoolName + } + return "" +} + +func (m *JunosPfeNpuMemoryList) GetCombinedSize() uint32 { + if m != nil && m.CombinedSize != nil { + return *m.CombinedSize + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetCombinedUsageCount() uint32 { + if m != nil && m.CombinedUsageCount != nil { + return *m.CombinedUsageCount + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetCombinedUtilization() uint32 { + if m != nil && m.CombinedUtilization != nil { + return *m.CombinedUtilization + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetGlobalPoolName() string { + if m != nil && m.GlobalPoolName != nil { + return *m.GlobalPoolName + } + return "" +} + +func (m *JunosPfeNpuMemoryList) GetGlobalUsageCount() uint32 { + if m != nil && m.GlobalUsageCount != nil { + return *m.GlobalUsageCount + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetGlobalAllocCount() uint32 { + if m != nil && m.GlobalAllocCount != nil { + return *m.GlobalAllocCount + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetGlobalFreeCount() uint32 { + if m != nil && m.GlobalFreeCount != nil { + return *m.GlobalFreeCount + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetLocalPoolName() string { + if m != nil && m.LocalPoolName != nil { + return *m.LocalPoolName + } + return "" +} + +func (m *JunosPfeNpuMemoryList) GetLocalUsageCount() uint32 { + if m != nil && m.LocalUsageCount != nil { + return *m.LocalUsageCount + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetLocalAllocCount() uint32 { + if m != nil && m.LocalAllocCount != nil { + return *m.LocalAllocCount + } + return 0 +} + +func (m *JunosPfeNpuMemoryList) GetLocalFreeCount() uint32 { + if m != nil && m.LocalFreeCount != nil { + return *m.LocalFreeCount + } + return 0 +} + +var E_JnprJunosPfeExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPfe)(nil), + Field: 57, + Name: "jnpr_junos_pfe_ext", + Tag: "bytes,57,opt,name=jnpr_junos_pfe_ext", + Filename: "pfed_oc.proto", +} + +func init() { + proto.RegisterType((*JunosPfe)(nil), "junos_pfe") + proto.RegisterType((*JunosPfeNpuMemoryList)(nil), "junos_pfe.npu_memory_list") + proto.RegisterExtension(E_JnprJunosPfeExt) +} + +func init() { proto.RegisterFile("pfed_oc.proto", fileDescriptor_5714edf97ed06d9c) } + +var fileDescriptor_5714edf97ed06d9c = []byte{ + // 497 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0x86, 0xe5, 0xef, 0xa3, 0xa2, 0x99, 0x92, 0x26, 0x75, 0x91, 0x88, 0xb2, 0x88, 0x22, 0x90, + 0x50, 0x54, 0x35, 0x31, 0x94, 0xff, 0xf0, 0x5f, 0x04, 0x8b, 0x4a, 0x54, 0x91, 0x2b, 0x36, 0x6c, + 0xcc, 0xc4, 0x39, 0x76, 0x26, 0x1d, 0xcf, 0x8c, 0xc6, 0xc7, 0xd0, 0x66, 0xc9, 0x1d, 0xb0, 0xe2, + 0x92, 0x60, 0xc9, 0x25, 0xa0, 0x5c, 0x09, 0xf2, 0xd8, 0x99, 0x0c, 0x2c, 0xe7, 0xbc, 0xcf, 0x79, + 0xfd, 0xc8, 0x3a, 0xa4, 0xa9, 0x12, 0x98, 0x45, 0x32, 0x1e, 0x29, 0x2d, 0x51, 0x76, 0xf7, 0x11, + 0x38, 0x64, 0x80, 0xfa, 0x32, 0x42, 0xa9, 0xaa, 0xe1, 0xcd, 0x6f, 0x5b, 0xa4, 0xb1, 0x28, 0x84, + 0xcc, 0x23, 0x95, 0x80, 0x3f, 0x26, 0x44, 0xa8, 0x22, 0xca, 0x20, 0x93, 0xfa, 0xb2, 0xf3, 0xdd, + 0xeb, 0xff, 0x3f, 0xd8, 0x39, 0xea, 0x8e, 0x2c, 0x30, 0xda, 0xa4, 0x11, 0x67, 0x39, 0x86, 0x0d, + 0xa1, 0x8a, 0xf7, 0xe6, 0xdd, 0xfd, 0x71, 0x85, 0xb4, 0xfe, 0x89, 0xfd, 0x3e, 0xd9, 0x56, 0x09, + 0x44, 0x82, 0x66, 0xd0, 0xb9, 0xd7, 0xf7, 0x06, 0x8d, 0xe3, 0xad, 0xaf, 0xaf, 0xfe, 0xdb, 0xf6, + 0xc2, 0xab, 0x2a, 0x81, 0x53, 0x9a, 0x81, 0x7f, 0x48, 0xfc, 0x58, 0x66, 0x53, 0x26, 0x60, 0x16, + 0x29, 0x29, 0x79, 0xc5, 0xde, 0x2f, 0xd9, 0xb0, 0xbd, 0x4e, 0x26, 0x52, 0x72, 0x43, 0xdf, 0x22, + 0x4d, 0x4b, 0xe7, 0x6c, 0x09, 0x9d, 0x07, 0x7d, 0x6f, 0xd0, 0x0c, 0xaf, 0xad, 0x87, 0x67, 0x6c, + 0x09, 0xfe, 0x1d, 0x72, 0xdd, 0x42, 0x45, 0x4e, 0x53, 0x88, 0x62, 0x59, 0x08, 0xec, 0x3c, 0x34, + 0xac, 0xfd, 0xdc, 0x87, 0x32, 0x7a, 0x53, 0x26, 0xfe, 0x5d, 0x77, 0x03, 0x19, 0x67, 0x4b, 0x8a, + 0x4c, 0x8a, 0xce, 0x23, 0xb3, 0xb1, 0x6f, 0x37, 0x36, 0x91, 0x3f, 0x20, 0xed, 0x94, 0xcb, 0x29, + 0xe5, 0x8e, 0xf5, 0x63, 0x63, 0xbd, 0x5b, 0xcd, 0xad, 0xf3, 0x21, 0xf1, 0x6b, 0xd2, 0x95, 0x79, + 0x62, 0xaa, 0xeb, 0x0e, 0x47, 0x65, 0x43, 0x53, 0xce, 0x65, 0x5c, 0xd3, 0x63, 0x97, 0x7e, 0x5d, + 0x06, 0x15, 0x7d, 0x40, 0xf6, 0x6a, 0x3a, 0xd1, 0xb0, 0xae, 0x7e, 0x6a, 0xe0, 0x56, 0x15, 0xbc, + 0xd3, 0x50, 0x37, 0xdf, 0x26, 0x2d, 0x2e, 0xe3, 0xbf, 0x84, 0x9f, 0x19, 0xe1, 0xa6, 0x19, 0x5b, + 0xdf, 0x03, 0xb2, 0x57, 0x71, 0xae, 0xee, 0xf3, 0xaa, 0xd3, 0x04, 0x8e, 0xad, 0x65, 0x5d, 0xd9, + 0x17, 0x0e, 0xeb, 0xb8, 0x0e, 0x48, 0xbb, 0x62, 0x1d, 0xd5, 0x97, 0x06, 0xdd, 0x35, 0x73, 0x6b, + 0x3a, 0x9e, 0x10, 0x7f, 0x21, 0x94, 0x8e, 0xec, 0xd9, 0x45, 0x70, 0x81, 0xfe, 0x8d, 0xd1, 0x49, + 0x21, 0x98, 0x02, 0x7d, 0x0a, 0xf8, 0x45, 0xea, 0xf3, 0xfc, 0x0c, 0x44, 0x2e, 0x75, 0x6e, 0x7e, + 0xe5, 0xce, 0x11, 0xd9, 0x5c, 0x69, 0xd8, 0x2a, 0xd7, 0x4f, 0xca, 0xe7, 0x24, 0x81, 0xb7, 0x17, + 0x78, 0xfc, 0xe9, 0xe7, 0xaa, 0xe7, 0xfd, 0x5a, 0xf5, 0xbc, 0xdf, 0xab, 0x9e, 0xf7, 0x31, 0x4c, + 0x19, 0x96, 0x74, 0x59, 0x36, 0x12, 0x80, 0x01, 0x8b, 0x61, 0x0a, 0x3a, 0x0d, 0xe6, 0x40, 0x39, + 0xce, 0xa7, 0x12, 0x87, 0x4c, 0xa4, 0x90, 0xe3, 0x70, 0x81, 0x6c, 0x28, 0x28, 0xb2, 0xcf, 0x10, + 0xa8, 0xf3, 0x34, 0x58, 0x20, 0x0b, 0xe8, 0x8c, 0x2a, 0x04, 0x9d, 0x07, 0x95, 0x5e, 0x90, 0xc7, + 0x73, 0xc8, 0xe8, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xf0, 0xa5, 0x27, 0x6c, 0x03, 0x00, + 0x00, +} + +func (m *JunosPfe) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfe) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfe) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NpuMemory) > 0 { + for iNdEx := len(m.NpuMemory) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NpuMemory[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPfedOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeNpuMemoryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeNpuMemoryList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeNpuMemoryList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LocalFreeCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.LocalFreeCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LocalAllocCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.LocalAllocCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.LocalUsageCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.LocalUsageCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.LocalPoolName != nil { + i -= len(*m.LocalPoolName) + copy(dAtA[i:], *m.LocalPoolName) + i = encodeVarintPfedOc(dAtA, i, uint64(len(*m.LocalPoolName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.GlobalFreeCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.GlobalFreeCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.GlobalAllocCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.GlobalAllocCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.GlobalUsageCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.GlobalUsageCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.GlobalPoolName != nil { + i -= len(*m.GlobalPoolName) + copy(dAtA[i:], *m.GlobalPoolName) + i = encodeVarintPfedOc(dAtA, i, uint64(len(*m.GlobalPoolName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.CombinedUtilization != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.CombinedUtilization)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.CombinedUsageCount != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.CombinedUsageCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.CombinedSize != nil { + i = encodeVarintPfedOc(dAtA, i, uint64(*m.CombinedSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.CombinedPoolName != nil { + i -= len(*m.CombinedPoolName) + copy(dAtA[i:], *m.CombinedPoolName) + i = encodeVarintPfedOc(dAtA, i, uint64(len(*m.CombinedPoolName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.PfeName != nil { + i -= len(*m.PfeName) + copy(dAtA[i:], *m.PfeName) + i = encodeVarintPfedOc(dAtA, i, uint64(len(*m.PfeName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintPfedOc(dAtA []byte, offset int, v uint64) int { + offset -= sovPfedOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPfe) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NpuMemory) > 0 { + for _, e := range m.NpuMemory { + l = e.Size() + n += 2 + l + sovPfedOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeNpuMemoryList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PfeName != nil { + l = len(*m.PfeName) + n += 2 + l + sovPfedOc(uint64(l)) + } + if m.CombinedPoolName != nil { + l = len(*m.CombinedPoolName) + n += 2 + l + sovPfedOc(uint64(l)) + } + if m.CombinedSize != nil { + n += 2 + sovPfedOc(uint64(*m.CombinedSize)) + } + if m.CombinedUsageCount != nil { + n += 2 + sovPfedOc(uint64(*m.CombinedUsageCount)) + } + if m.CombinedUtilization != nil { + n += 2 + sovPfedOc(uint64(*m.CombinedUtilization)) + } + if m.GlobalPoolName != nil { + l = len(*m.GlobalPoolName) + n += 2 + l + sovPfedOc(uint64(l)) + } + if m.GlobalUsageCount != nil { + n += 2 + sovPfedOc(uint64(*m.GlobalUsageCount)) + } + if m.GlobalAllocCount != nil { + n += 2 + sovPfedOc(uint64(*m.GlobalAllocCount)) + } + if m.GlobalFreeCount != nil { + n += 2 + sovPfedOc(uint64(*m.GlobalFreeCount)) + } + if m.LocalPoolName != nil { + l = len(*m.LocalPoolName) + n += 2 + l + sovPfedOc(uint64(l)) + } + if m.LocalUsageCount != nil { + n += 2 + sovPfedOc(uint64(*m.LocalUsageCount)) + } + if m.LocalAllocCount != nil { + n += 2 + sovPfedOc(uint64(*m.LocalAllocCount)) + } + if m.LocalFreeCount != nil { + n += 2 + sovPfedOc(uint64(*m.LocalFreeCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPfedOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPfedOc(x uint64) (n int) { + return sovPfedOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPfe) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pfe: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pfe: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NpuMemory", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPfedOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPfedOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NpuMemory = append(m.NpuMemory, &JunosPfeNpuMemoryList{}) + if err := m.NpuMemory[len(m.NpuMemory)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPfedOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfedOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfedOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeNpuMemoryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: npu_memory_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: npu_memory_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PfeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfedOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfedOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PfeName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CombinedPoolName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfedOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfedOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CombinedPoolName = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CombinedSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CombinedSize = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CombinedUsageCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CombinedUsageCount = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CombinedUtilization", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CombinedUtilization = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalPoolName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfedOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfedOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.GlobalPoolName = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalUsageCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GlobalUsageCount = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalAllocCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GlobalAllocCount = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalFreeCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GlobalFreeCount = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPoolName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPfedOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPfedOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalPoolName = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalUsageCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalUsageCount = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAllocCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalAllocCount = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalFreeCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPfedOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalFreeCount = &v + default: + iNdEx = preIndex + skippy, err := skipPfedOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPfedOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPfedOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPfedOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfedOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfedOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPfedOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPfedOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPfedOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPfedOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPfedOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPfedOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPfedOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/pfed_oc.proto b/schema/pfed_oc.proto new file mode 100755 index 0000000..a549761 --- /dev/null +++ b/schema/pfed_oc.proto @@ -0,0 +1,26 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pfe jnpr_junos_pfe_ext = 57; +} + +message junos_pfe { + message npu_memory_list { + optional string pfe_name = 51 [(telemetry_options).is_key = true]; + optional string combined_pool_name = 52; + optional uint32 combined_size = 53; + optional uint32 combined_usage_count = 54; + optional uint32 combined_utilization = 55; + optional string global_pool_name = 56; + optional uint32 global_usage_count = 57; + optional uint32 global_alloc_count = 58; + optional uint32 global_free_count = 59; + optional string local_pool_name = 60; + optional uint32 local_usage_count = 61; + optional uint32 local_alloc_count = 62; + optional uint32 local_free_count = 63; + } + repeated npu_memory_list npu_memory = 151; +} diff --git a/schema/port.pb.go b/schema/port.pb.go new file mode 100644 index 0000000..6b4ae84 --- /dev/null +++ b/schema/port.pb.go @@ -0,0 +1,3184 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: port.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type Port struct { + InterfaceStats []*InterfaceInfos `protobuf:"bytes,1,rep,name=interface_stats,json=interfaceStats" json:"interface_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Port) Reset() { *m = Port{} } +func (m *Port) String() string { return proto.CompactTextString(m) } +func (*Port) ProtoMessage() {} +func (*Port) Descriptor() ([]byte, []int) { + return fileDescriptor_729c3d36e9010a8e, []int{0} +} +func (m *Port) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Port) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Port.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Port) XXX_Merge(src proto.Message) { + xxx_messageInfo_Port.Merge(m, src) +} +func (m *Port) XXX_Size() int { + return m.Size() +} +func (m *Port) XXX_DiscardUnknown() { + xxx_messageInfo_Port.DiscardUnknown(m) +} + +var xxx_messageInfo_Port proto.InternalMessageInfo + +func (m *Port) GetInterfaceStats() []*InterfaceInfos { + if m != nil { + return m.InterfaceStats + } + return nil +} + +// +// Interface information +// +type InterfaceInfos struct { + // Interface name, e.g., xe-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Time when interface is created + InitTime *uint64 `protobuf:"varint,2,opt,name=init_time,json=initTime" json:"init_time,omitempty"` + // Global Index + SnmpIfIndex *uint32 `protobuf:"varint,3,opt,name=snmp_if_index,json=snmpIfIndex" json:"snmp_if_index,omitempty"` + // Name of parent for AE interface, if applicable + ParentAeName *string `protobuf:"bytes,4,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + // Egress queue information + EgressQueueInfo []*QueueStats `protobuf:"bytes,5,rep,name=egress_queue_info,json=egressQueueInfo" json:"egress_queue_info,omitempty"` + // Ingress queue information + IngressQueueInfo []*QueueStats `protobuf:"bytes,6,rep,name=ingress_queue_info,json=ingressQueueInfo" json:"ingress_queue_info,omitempty"` + // Inbound traffic statistics + IngressStats *InterfaceStats `protobuf:"bytes,7,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + // Outbound traffic statistics + EgressStats *InterfaceStats `protobuf:"bytes,8,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + // Inbound traffic errors + IngressErrors *IngressInterfaceErrors `protobuf:"bytes,9,opt,name=ingress_errors,json=ingressErrors" json:"ingress_errors,omitempty"` + // Interface administration status + IfAdministrationStatus *string `protobuf:"bytes,10,opt,name=if_administration_status,json=ifAdministrationStatus" json:"if_administration_status,omitempty"` + // Interface operational status + IfOperationalStatus *string `protobuf:"bytes,11,opt,name=if_operational_status,json=ifOperationalStatus" json:"if_operational_status,omitempty"` + // Interface description + IfDescription *string `protobuf:"bytes,12,opt,name=if_description,json=ifDescription" json:"if_description,omitempty"` + // Counter: number of carrier transitions on this interface + IfTransitions *uint64 `protobuf:"varint,13,opt,name=if_transitions,json=ifTransitions" json:"if_transitions,omitempty"` + // This corresponds to the ifLastChange object in the standard interface MIB + IfLastChange *uint32 `protobuf:"varint,14,opt,name=ifLastChange" json:"ifLastChange,omitempty"` + // This corresponds to the ifHighSpeed object in the standard interface MIB + IfHighSpeed *uint32 `protobuf:"varint,15,opt,name=ifHighSpeed" json:"ifHighSpeed,omitempty"` + // Outbound traffic errors + EgressErrors *EgressInterfaceErrors `protobuf:"bytes,16,opt,name=egress_errors,json=egressErrors" json:"egress_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfaceInfos) Reset() { *m = InterfaceInfos{} } +func (m *InterfaceInfos) String() string { return proto.CompactTextString(m) } +func (*InterfaceInfos) ProtoMessage() {} +func (*InterfaceInfos) Descriptor() ([]byte, []int) { + return fileDescriptor_729c3d36e9010a8e, []int{1} +} +func (m *InterfaceInfos) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfaceInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfaceInfos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfaceInfos) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfaceInfos.Merge(m, src) +} +func (m *InterfaceInfos) XXX_Size() int { + return m.Size() +} +func (m *InterfaceInfos) XXX_DiscardUnknown() { + xxx_messageInfo_InterfaceInfos.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfaceInfos proto.InternalMessageInfo + +func (m *InterfaceInfos) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *InterfaceInfos) GetInitTime() uint64 { + if m != nil && m.InitTime != nil { + return *m.InitTime + } + return 0 +} + +func (m *InterfaceInfos) GetSnmpIfIndex() uint32 { + if m != nil && m.SnmpIfIndex != nil { + return *m.SnmpIfIndex + } + return 0 +} + +func (m *InterfaceInfos) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *InterfaceInfos) GetEgressQueueInfo() []*QueueStats { + if m != nil { + return m.EgressQueueInfo + } + return nil +} + +func (m *InterfaceInfos) GetIngressQueueInfo() []*QueueStats { + if m != nil { + return m.IngressQueueInfo + } + return nil +} + +func (m *InterfaceInfos) GetIngressStats() *InterfaceStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *InterfaceInfos) GetEgressStats() *InterfaceStats { + if m != nil { + return m.EgressStats + } + return nil +} + +func (m *InterfaceInfos) GetIngressErrors() *IngressInterfaceErrors { + if m != nil { + return m.IngressErrors + } + return nil +} + +func (m *InterfaceInfos) GetIfAdministrationStatus() string { + if m != nil && m.IfAdministrationStatus != nil { + return *m.IfAdministrationStatus + } + return "" +} + +func (m *InterfaceInfos) GetIfOperationalStatus() string { + if m != nil && m.IfOperationalStatus != nil { + return *m.IfOperationalStatus + } + return "" +} + +func (m *InterfaceInfos) GetIfDescription() string { + if m != nil && m.IfDescription != nil { + return *m.IfDescription + } + return "" +} + +func (m *InterfaceInfos) GetIfTransitions() uint64 { + if m != nil && m.IfTransitions != nil { + return *m.IfTransitions + } + return 0 +} + +func (m *InterfaceInfos) GetIfLastChange() uint32 { + if m != nil && m.IfLastChange != nil { + return *m.IfLastChange + } + return 0 +} + +func (m *InterfaceInfos) GetIfHighSpeed() uint32 { + if m != nil && m.IfHighSpeed != nil { + return *m.IfHighSpeed + } + return 0 +} + +func (m *InterfaceInfos) GetEgressErrors() *EgressInterfaceErrors { + if m != nil { + return m.EgressErrors + } + return nil +} + +// +// Interface queue statistics +// +type QueueStats struct { + // Queue number + QueueNumber *uint32 `protobuf:"varint,1,opt,name=queue_number,json=queueNumber" json:"queue_number,omitempty"` + // The total number of packets that have been added to this queue + Packets *uint64 `protobuf:"varint,2,opt,name=packets" json:"packets,omitempty"` + // The total number of bytes that have been added to this queue + Bytes *uint64 `protobuf:"varint,3,opt,name=bytes" json:"bytes,omitempty"` + // The total number of tail dropped packets + TailDropPackets *uint64 `protobuf:"varint,4,opt,name=tail_drop_packets,json=tailDropPackets" json:"tail_drop_packets,omitempty"` + // The total number of rate-limited packets + RlDropPackets *uint64 `protobuf:"varint,5,opt,name=rl_drop_packets,json=rlDropPackets" json:"rl_drop_packets,omitempty"` + // The total number of rate-limited bytes + RlDropBytes *uint64 `protobuf:"varint,6,opt,name=rl_drop_bytes,json=rlDropBytes" json:"rl_drop_bytes,omitempty"` + // The total number of red-dropped packets + RedDropPackets *uint64 `protobuf:"varint,7,opt,name=red_drop_packets,json=redDropPackets" json:"red_drop_packets,omitempty"` + // The total number of red-dropped bytes + RedDropBytes *uint64 `protobuf:"varint,8,opt,name=red_drop_bytes,json=redDropBytes" json:"red_drop_bytes,omitempty"` + // Average queue depth, in packets + AvgBufferOccupancy *uint64 `protobuf:"varint,9,opt,name=avg_buffer_occupancy,json=avgBufferOccupancy" json:"avg_buffer_occupancy,omitempty"` + // Current queue depth, in packets + CurBufferOccupancy *uint64 `protobuf:"varint,10,opt,name=cur_buffer_occupancy,json=curBufferOccupancy" json:"cur_buffer_occupancy,omitempty"` + // The max measured queue depth, in packets, across all measurements since boot + PeakBufferOccupancy *uint64 `protobuf:"varint,11,opt,name=peak_buffer_occupancy,json=peakBufferOccupancy" json:"peak_buffer_occupancy,omitempty"` + // Allocated buffer size + AllocatedBufferSize *uint64 `protobuf:"varint,12,opt,name=allocated_buffer_size,json=allocatedBufferSize" json:"allocated_buffer_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueueStats) Reset() { *m = QueueStats{} } +func (m *QueueStats) String() string { return proto.CompactTextString(m) } +func (*QueueStats) ProtoMessage() {} +func (*QueueStats) Descriptor() ([]byte, []int) { + return fileDescriptor_729c3d36e9010a8e, []int{2} +} +func (m *QueueStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueueStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueueStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueueStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueueStats.Merge(m, src) +} +func (m *QueueStats) XXX_Size() int { + return m.Size() +} +func (m *QueueStats) XXX_DiscardUnknown() { + xxx_messageInfo_QueueStats.DiscardUnknown(m) +} + +var xxx_messageInfo_QueueStats proto.InternalMessageInfo + +func (m *QueueStats) GetQueueNumber() uint32 { + if m != nil && m.QueueNumber != nil { + return *m.QueueNumber + } + return 0 +} + +func (m *QueueStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *QueueStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *QueueStats) GetTailDropPackets() uint64 { + if m != nil && m.TailDropPackets != nil { + return *m.TailDropPackets + } + return 0 +} + +func (m *QueueStats) GetRlDropPackets() uint64 { + if m != nil && m.RlDropPackets != nil { + return *m.RlDropPackets + } + return 0 +} + +func (m *QueueStats) GetRlDropBytes() uint64 { + if m != nil && m.RlDropBytes != nil { + return *m.RlDropBytes + } + return 0 +} + +func (m *QueueStats) GetRedDropPackets() uint64 { + if m != nil && m.RedDropPackets != nil { + return *m.RedDropPackets + } + return 0 +} + +func (m *QueueStats) GetRedDropBytes() uint64 { + if m != nil && m.RedDropBytes != nil { + return *m.RedDropBytes + } + return 0 +} + +func (m *QueueStats) GetAvgBufferOccupancy() uint64 { + if m != nil && m.AvgBufferOccupancy != nil { + return *m.AvgBufferOccupancy + } + return 0 +} + +func (m *QueueStats) GetCurBufferOccupancy() uint64 { + if m != nil && m.CurBufferOccupancy != nil { + return *m.CurBufferOccupancy + } + return 0 +} + +func (m *QueueStats) GetPeakBufferOccupancy() uint64 { + if m != nil && m.PeakBufferOccupancy != nil { + return *m.PeakBufferOccupancy + } + return 0 +} + +func (m *QueueStats) GetAllocatedBufferSize() uint64 { + if m != nil && m.AllocatedBufferSize != nil { + return *m.AllocatedBufferSize + } + return 0 +} + +// +// Interface statistics +// +type InterfaceStats struct { + // The total number of packets sent/received by this interface + IfPkts *uint64 `protobuf:"varint,1,opt,name=if_pkts,json=ifPkts" json:"if_pkts,omitempty"` + // The total number of bytes sent/received by this interface + IfOctets *uint64 `protobuf:"varint,2,opt,name=if_octets,json=ifOctets" json:"if_octets,omitempty"` + // The rate at which packets are sent/received by this interface (in packets/sec) + If_1SecPkts *uint64 `protobuf:"varint,3,opt,name=if_1sec_pkts,json=if1secPkts" json:"if_1sec_pkts,omitempty"` + // The rate at which bytes are sent/received by this interface + If_1SecOctets *uint64 `protobuf:"varint,4,opt,name=if_1sec_octets,json=if1secOctets" json:"if_1sec_octets,omitempty"` + // Total number of unicast packets sent/received by this interface + IfUcPkts *uint64 `protobuf:"varint,5,opt,name=if_uc_pkts,json=ifUcPkts" json:"if_uc_pkts,omitempty"` + // Total number of multicast packets sent/received by this interface + IfMcPkts *uint64 `protobuf:"varint,6,opt,name=if_mc_pkts,json=ifMcPkts" json:"if_mc_pkts,omitempty"` + // Total number of broadcast packets sent/received by this interface + IfBcPkts *uint64 `protobuf:"varint,7,opt,name=if_bc_pkts,json=ifBcPkts" json:"if_bc_pkts,omitempty"` + // Counter: total no of error packets sent/rcvd by this interface + IfError *uint64 `protobuf:"varint,8,opt,name=if_error,json=ifError" json:"if_error,omitempty"` + // Counter: total no of PAUSE packets sent/rcvd by this interface + IfPausePkts *uint64 `protobuf:"varint,9,opt,name=if_pause_pkts,json=ifPausePkts" json:"if_pause_pkts,omitempty"` + // Counter: total no of UNKNOWN proto packets sent/rcvd by this interface + IfUnknownProtoPkts *uint64 `protobuf:"varint,10,opt,name=if_unknown_proto_pkts,json=ifUnknownProtoPkts" json:"if_unknown_proto_pkts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfaceStats) Reset() { *m = InterfaceStats{} } +func (m *InterfaceStats) String() string { return proto.CompactTextString(m) } +func (*InterfaceStats) ProtoMessage() {} +func (*InterfaceStats) Descriptor() ([]byte, []int) { + return fileDescriptor_729c3d36e9010a8e, []int{3} +} +func (m *InterfaceStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfaceStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfaceStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfaceStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfaceStats.Merge(m, src) +} +func (m *InterfaceStats) XXX_Size() int { + return m.Size() +} +func (m *InterfaceStats) XXX_DiscardUnknown() { + xxx_messageInfo_InterfaceStats.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfaceStats proto.InternalMessageInfo + +func (m *InterfaceStats) GetIfPkts() uint64 { + if m != nil && m.IfPkts != nil { + return *m.IfPkts + } + return 0 +} + +func (m *InterfaceStats) GetIfOctets() uint64 { + if m != nil && m.IfOctets != nil { + return *m.IfOctets + } + return 0 +} + +func (m *InterfaceStats) GetIf_1SecPkts() uint64 { + if m != nil && m.If_1SecPkts != nil { + return *m.If_1SecPkts + } + return 0 +} + +func (m *InterfaceStats) GetIf_1SecOctets() uint64 { + if m != nil && m.If_1SecOctets != nil { + return *m.If_1SecOctets + } + return 0 +} + +func (m *InterfaceStats) GetIfUcPkts() uint64 { + if m != nil && m.IfUcPkts != nil { + return *m.IfUcPkts + } + return 0 +} + +func (m *InterfaceStats) GetIfMcPkts() uint64 { + if m != nil && m.IfMcPkts != nil { + return *m.IfMcPkts + } + return 0 +} + +func (m *InterfaceStats) GetIfBcPkts() uint64 { + if m != nil && m.IfBcPkts != nil { + return *m.IfBcPkts + } + return 0 +} + +func (m *InterfaceStats) GetIfError() uint64 { + if m != nil && m.IfError != nil { + return *m.IfError + } + return 0 +} + +func (m *InterfaceStats) GetIfPausePkts() uint64 { + if m != nil && m.IfPausePkts != nil { + return *m.IfPausePkts + } + return 0 +} + +func (m *InterfaceStats) GetIfUnknownProtoPkts() uint64 { + if m != nil && m.IfUnknownProtoPkts != nil { + return *m.IfUnknownProtoPkts + } + return 0 +} + +// +// Inbound traffic error statistics +// +type IngressInterfaceErrors struct { + // The number of packets that contained errors + IfErrors *uint64 `protobuf:"varint,1,opt,name=if_errors,json=ifErrors" json:"if_errors,omitempty"` + // The number of packets dropped by the input queue of the I/O Manager ASIC + IfInQdrops *uint64 `protobuf:"varint,2,opt,name=if_in_qdrops,json=ifInQdrops" json:"if_in_qdrops,omitempty"` + // The number of packets which were misaligned + IfInFrameErrors *uint64 `protobuf:"varint,3,opt,name=if_in_frame_errors,json=ifInFrameErrors" json:"if_in_frame_errors,omitempty"` + // The number of non-error packets which were chosen to be discarded + IfDiscards *uint64 `protobuf:"varint,4,opt,name=if_discards,json=ifDiscards" json:"if_discards,omitempty"` + // The number of runt packets + IfInRunts *uint64 `protobuf:"varint,5,opt,name=if_in_runts,json=ifInRunts" json:"if_in_runts,omitempty"` + // The number of packets that fail Layer 3 sanity checks of the header + IfInL3Incompletes *uint64 `protobuf:"varint,6,opt,name=if_in_l3_incompletes,json=ifInL3Incompletes" json:"if_in_l3_incompletes,omitempty"` + // The number of packets for which the software could not find a valid logical interface + IfInL2ChanErrors *uint64 `protobuf:"varint,7,opt,name=if_in_l2chan_errors,json=ifInL2chanErrors" json:"if_in_l2chan_errors,omitempty"` + // The number of malform or short packets + IfInL2MismatchTimeouts *uint64 `protobuf:"varint,8,opt,name=if_in_l2_mismatch_timeouts,json=ifInL2MismatchTimeouts" json:"if_in_l2_mismatch_timeouts,omitempty"` + // The number of FIFO errors + IfInFifoErrors *uint64 `protobuf:"varint,9,opt,name=if_in_fifo_errors,json=ifInFifoErrors" json:"if_in_fifo_errors,omitempty"` + // The number of resource errors + IfInResourceErrors *uint64 `protobuf:"varint,10,opt,name=if_in_resource_errors,json=ifInResourceErrors" json:"if_in_resource_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IngressInterfaceErrors) Reset() { *m = IngressInterfaceErrors{} } +func (m *IngressInterfaceErrors) String() string { return proto.CompactTextString(m) } +func (*IngressInterfaceErrors) ProtoMessage() {} +func (*IngressInterfaceErrors) Descriptor() ([]byte, []int) { + return fileDescriptor_729c3d36e9010a8e, []int{4} +} +func (m *IngressInterfaceErrors) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IngressInterfaceErrors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IngressInterfaceErrors.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IngressInterfaceErrors) XXX_Merge(src proto.Message) { + xxx_messageInfo_IngressInterfaceErrors.Merge(m, src) +} +func (m *IngressInterfaceErrors) XXX_Size() int { + return m.Size() +} +func (m *IngressInterfaceErrors) XXX_DiscardUnknown() { + xxx_messageInfo_IngressInterfaceErrors.DiscardUnknown(m) +} + +var xxx_messageInfo_IngressInterfaceErrors proto.InternalMessageInfo + +func (m *IngressInterfaceErrors) GetIfErrors() uint64 { + if m != nil && m.IfErrors != nil { + return *m.IfErrors + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInQdrops() uint64 { + if m != nil && m.IfInQdrops != nil { + return *m.IfInQdrops + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInFrameErrors() uint64 { + if m != nil && m.IfInFrameErrors != nil { + return *m.IfInFrameErrors + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfDiscards() uint64 { + if m != nil && m.IfDiscards != nil { + return *m.IfDiscards + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInRunts() uint64 { + if m != nil && m.IfInRunts != nil { + return *m.IfInRunts + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInL3Incompletes() uint64 { + if m != nil && m.IfInL3Incompletes != nil { + return *m.IfInL3Incompletes + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInL2ChanErrors() uint64 { + if m != nil && m.IfInL2ChanErrors != nil { + return *m.IfInL2ChanErrors + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInL2MismatchTimeouts() uint64 { + if m != nil && m.IfInL2MismatchTimeouts != nil { + return *m.IfInL2MismatchTimeouts + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInFifoErrors() uint64 { + if m != nil && m.IfInFifoErrors != nil { + return *m.IfInFifoErrors + } + return 0 +} + +func (m *IngressInterfaceErrors) GetIfInResourceErrors() uint64 { + if m != nil && m.IfInResourceErrors != nil { + return *m.IfInResourceErrors + } + return 0 +} + +// +// Outbound traffic error statistics +// +type EgressInterfaceErrors struct { + // The number of packets that contained errors + IfErrors *uint64 `protobuf:"varint,1,opt,name=if_errors,json=ifErrors" json:"if_errors,omitempty"` + // The number of non-error packets which were chosen to be discarded + IfDiscards *uint64 `protobuf:"varint,2,opt,name=if_discards,json=ifDiscards" json:"if_discards,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EgressInterfaceErrors) Reset() { *m = EgressInterfaceErrors{} } +func (m *EgressInterfaceErrors) String() string { return proto.CompactTextString(m) } +func (*EgressInterfaceErrors) ProtoMessage() {} +func (*EgressInterfaceErrors) Descriptor() ([]byte, []int) { + return fileDescriptor_729c3d36e9010a8e, []int{5} +} +func (m *EgressInterfaceErrors) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EgressInterfaceErrors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EgressInterfaceErrors.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EgressInterfaceErrors) XXX_Merge(src proto.Message) { + xxx_messageInfo_EgressInterfaceErrors.Merge(m, src) +} +func (m *EgressInterfaceErrors) XXX_Size() int { + return m.Size() +} +func (m *EgressInterfaceErrors) XXX_DiscardUnknown() { + xxx_messageInfo_EgressInterfaceErrors.DiscardUnknown(m) +} + +var xxx_messageInfo_EgressInterfaceErrors proto.InternalMessageInfo + +func (m *EgressInterfaceErrors) GetIfErrors() uint64 { + if m != nil && m.IfErrors != nil { + return *m.IfErrors + } + return 0 +} + +func (m *EgressInterfaceErrors) GetIfDiscards() uint64 { + if m != nil && m.IfDiscards != nil { + return *m.IfDiscards + } + return 0 +} + +var E_JnprInterfaceExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Port)(nil), + Field: 3, + Name: "jnpr_interface_ext", + Tag: "bytes,3,opt,name=jnpr_interface_ext", + Filename: "port.proto", +} + +func init() { + proto.RegisterType((*Port)(nil), "Port") + proto.RegisterType((*InterfaceInfos)(nil), "InterfaceInfos") + proto.RegisterType((*QueueStats)(nil), "QueueStats") + proto.RegisterType((*InterfaceStats)(nil), "InterfaceStats") + proto.RegisterType((*IngressInterfaceErrors)(nil), "IngressInterfaceErrors") + proto.RegisterType((*EgressInterfaceErrors)(nil), "EgressInterfaceErrors") + proto.RegisterExtension(E_JnprInterfaceExt) +} + +func init() { proto.RegisterFile("port.proto", fileDescriptor_729c3d36e9010a8e) } + +var fileDescriptor_729c3d36e9010a8e = []byte{ + // 1180 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0x5d, 0x6f, 0xdb, 0x36, + 0x17, 0xc7, 0xa1, 0x24, 0x4e, 0x62, 0xfa, 0x2d, 0x61, 0x9a, 0x54, 0x68, 0x81, 0x3c, 0x86, 0x9f, + 0x75, 0xcb, 0xd0, 0xc5, 0x5e, 0xd3, 0x62, 0x6d, 0x37, 0x60, 0x68, 0xb3, 0x76, 0x98, 0x87, 0xbe, + 0xa4, 0x4e, 0x7b, 0xb3, 0x1b, 0x8e, 0x91, 0x0f, 0xed, 0x13, 0x5b, 0x94, 0x4a, 0x52, 0x7d, 0xbb, + 0x1c, 0xb0, 0xef, 0xb1, 0x6f, 0xb3, 0x5d, 0xee, 0x23, 0x0c, 0xfd, 0x1a, 0xbb, 0x19, 0x48, 0x4a, + 0xb6, 0xec, 0x64, 0x37, 0xbb, 0xd4, 0x39, 0xbf, 0xff, 0x21, 0x75, 0xf8, 0xe7, 0x91, 0x08, 0x49, + 0x13, 0x65, 0xba, 0xa9, 0x4a, 0x4c, 0x72, 0x6d, 0xc7, 0xc0, 0x14, 0x62, 0x30, 0xea, 0x3d, 0x33, + 0x49, 0xea, 0x83, 0x9d, 0x07, 0x64, 0xed, 0x24, 0x51, 0x86, 0xde, 0x23, 0x2d, 0x94, 0x06, 0x94, + 0xe0, 0x11, 0x30, 0x6d, 0xb8, 0xd1, 0x61, 0xd0, 0x5e, 0x3d, 0xa8, 0x1d, 0xb5, 0xba, 0xfd, 0x22, + 0xde, 0x97, 0x22, 0xd1, 0x83, 0xe6, 0x8c, 0x3b, 0xb5, 0x58, 0xe7, 0xef, 0x0a, 0x69, 0x2e, 0x22, + 0x74, 0x9f, 0x6c, 0xa0, 0x60, 0x92, 0xc7, 0x10, 0x06, 0xed, 0x95, 0x83, 0xea, 0x71, 0xe5, 0x97, + 0x07, 0x2b, 0x9b, 0xc1, 0x60, 0x1d, 0xc5, 0x33, 0x1e, 0x03, 0xbd, 0x4e, 0xaa, 0x28, 0xd1, 0x30, + 0x83, 0x31, 0x84, 0x2b, 0xed, 0xe0, 0x60, 0x6d, 0xb0, 0x69, 0x03, 0x2f, 0x31, 0x06, 0xda, 0x21, + 0x0d, 0x2d, 0xe3, 0x94, 0xa1, 0x60, 0x28, 0x87, 0xf0, 0x2e, 0x5c, 0x6d, 0x07, 0x07, 0x8d, 0x41, + 0xcd, 0x06, 0xfb, 0xa2, 0x6f, 0x43, 0xf4, 0x13, 0xd2, 0x4c, 0xb9, 0x02, 0x69, 0x18, 0x07, 0xbf, + 0xce, 0x5a, 0x3b, 0x38, 0xa8, 0x0e, 0xea, 0x3e, 0xfa, 0x10, 0xdc, 0x32, 0x77, 0xc9, 0x36, 0x8c, + 0x14, 0x68, 0xcd, 0x5e, 0x67, 0x90, 0x01, 0x43, 0x29, 0x92, 0xb0, 0xe2, 0xde, 0xaa, 0xd6, 0x7d, + 0x61, 0x43, 0xee, 0x0d, 0x06, 0x2d, 0x4f, 0xb9, 0x88, 0x7d, 0x01, 0x7a, 0x9f, 0x50, 0x94, 0x17, + 0x94, 0xeb, 0x17, 0x95, 0x5b, 0x39, 0x36, 0x97, 0xde, 0x21, 0x8d, 0x42, 0xea, 0xbb, 0xb8, 0xd1, + 0x0e, 0x16, 0xbb, 0xe8, 0x95, 0xf5, 0x9c, 0x72, 0x4f, 0xf4, 0x88, 0xd4, 0xa1, 0x2c, 0xda, 0xbc, + 0x5c, 0x54, 0x83, 0x92, 0xe6, 0x5b, 0xd2, 0x2c, 0x56, 0x02, 0xa5, 0x12, 0xa5, 0xc3, 0xaa, 0x53, + 0x5d, 0xed, 0xf6, 0x7d, 0x78, 0x26, 0x7e, 0xec, 0xd2, 0x83, 0x62, 0x63, 0xfe, 0x91, 0xde, 0x23, + 0x21, 0x0a, 0xc6, 0x87, 0x31, 0x4a, 0xd4, 0x46, 0x71, 0x83, 0x89, 0x74, 0xcb, 0x67, 0x3a, 0x24, + 0xae, 0x9b, 0x7b, 0x28, 0x1e, 0x2e, 0xa4, 0x4f, 0x5d, 0x96, 0x1e, 0x91, 0x5d, 0x14, 0x2c, 0x49, + 0xc1, 0x47, 0xf9, 0xb4, 0x90, 0xd5, 0x9c, 0x6c, 0x07, 0xc5, 0xf3, 0x79, 0x2e, 0xd7, 0xdc, 0x20, + 0x4d, 0x14, 0x6c, 0x08, 0x3a, 0x52, 0x98, 0xda, 0x4c, 0x58, 0x77, 0x70, 0x03, 0xc5, 0xa3, 0x79, + 0x90, 0x7e, 0xe1, 0x30, 0xa3, 0xb8, 0xd4, 0x68, 0x03, 0x3a, 0x6c, 0x58, 0x7b, 0x38, 0x03, 0x85, + 0x81, 0xa5, 0x5f, 0xce, 0x73, 0xb4, 0x43, 0xea, 0x28, 0x9e, 0x70, 0x6d, 0xbe, 0x1b, 0x73, 0x39, + 0x82, 0xb0, 0xe9, 0x9c, 0xb2, 0x10, 0xa3, 0x6d, 0x52, 0x43, 0xf1, 0x03, 0x8e, 0xc6, 0xa7, 0x29, + 0xc0, 0x30, 0x6c, 0x79, 0x33, 0x95, 0x42, 0xf4, 0x1b, 0xd2, 0x80, 0x85, 0x3e, 0x6e, 0xb9, 0x3e, + 0xee, 0x75, 0x1f, 0x5f, 0xda, 0xc6, 0xfc, 0xa4, 0xfc, 0x53, 0xe7, 0xf7, 0x35, 0x42, 0xe6, 0x86, + 0xa0, 0x07, 0xa4, 0xee, 0x1d, 0x23, 0xb3, 0xf8, 0x0c, 0x54, 0x18, 0xd8, 0xe5, 0x0a, 0xfb, 0xd7, + 0x5c, 0xea, 0x99, 0xcb, 0xd0, 0xff, 0x91, 0x8d, 0x94, 0x47, 0x13, 0x30, 0xda, 0xdf, 0x80, 0xe2, + 0x15, 0x8b, 0x28, 0xbd, 0x4e, 0x2a, 0x67, 0xef, 0x0d, 0x68, 0xe7, 0xff, 0x59, 0xda, 0xc7, 0xe8, + 0x2d, 0xb2, 0x6d, 0x38, 0x4e, 0xd9, 0x50, 0x25, 0x29, 0x2b, 0xea, 0xac, 0x95, 0xc1, 0x96, 0xcd, + 0x3f, 0x52, 0x49, 0x7a, 0x92, 0xd7, 0x3b, 0x24, 0x2d, 0xb5, 0x24, 0xa8, 0x2c, 0xf4, 0x56, 0x2d, + 0xe0, 0x9f, 0x93, 0x46, 0x81, 0xfb, 0x6d, 0xac, 0x97, 0xe1, 0x9a, 0x87, 0x8f, 0xdd, 0x66, 0x7a, + 0x64, 0x4b, 0xc1, 0x70, 0xb1, 0xf4, 0x46, 0x99, 0x6e, 0x2a, 0x18, 0x96, 0x6b, 0xdf, 0x24, 0xcd, + 0x99, 0xc0, 0x17, 0xdf, 0x2c, 0xe3, 0xf5, 0x1c, 0xf7, 0xd5, 0xef, 0x92, 0x2b, 0xfc, 0xcd, 0x88, + 0x9d, 0x65, 0x42, 0x80, 0x62, 0x49, 0x14, 0x65, 0x29, 0x97, 0xd1, 0x7b, 0xe7, 0x76, 0x2f, 0x69, + 0x07, 0x03, 0xca, 0xdf, 0x8c, 0x8e, 0x1d, 0xf1, 0xbc, 0x00, 0xac, 0x30, 0xca, 0xd4, 0x45, 0x21, + 0x59, 0x10, 0x46, 0x99, 0x5a, 0x16, 0xde, 0x27, 0xbb, 0x29, 0xf0, 0xc9, 0x45, 0x65, 0xad, 0xac, + 0xdc, 0xb1, 0xcc, 0x25, 0x52, 0x3e, 0x9d, 0x26, 0x11, 0x37, 0x30, 0x2c, 0xf4, 0x1a, 0x3f, 0x80, + 0x73, 0xfb, 0x5c, 0x3a, 0x63, 0xbc, 0xfe, 0x14, 0x3f, 0x40, 0xe7, 0xb7, 0xd5, 0xd2, 0x1c, 0xf5, + 0x6e, 0xf2, 0x73, 0x34, 0x9d, 0xb8, 0x61, 0x5c, 0x6a, 0xd0, 0x3a, 0x8a, 0x93, 0x89, 0xb1, 0xfe, + 0xaf, 0xda, 0x8b, 0x18, 0x99, 0x0b, 0x2e, 0xda, 0x44, 0xf1, 0xdc, 0x85, 0xe9, 0x67, 0xf6, 0x8e, + 0xb0, 0x5b, 0x1a, 0x22, 0x5f, 0x68, 0xb5, 0xbc, 0x11, 0x82, 0xc2, 0x66, 0x5c, 0xb1, 0x9b, 0xee, + 0xea, 0x39, 0x30, 0xaf, 0xb8, 0x56, 0x46, 0xeb, 0x1e, 0xcd, 0xab, 0xfe, 0x9f, 0x10, 0x14, 0x2c, + 0xcb, 0x6b, 0x56, 0x96, 0x96, 0x7e, 0xe5, 0x2b, 0x7a, 0x28, 0xce, 0xa1, 0xf5, 0x25, 0xe8, 0x69, + 0x19, 0x3a, 0xcb, 0xa1, 0x8d, 0x25, 0xe8, 0xd8, 0x43, 0x6d, 0xb2, 0x89, 0xc2, 0x5f, 0xcf, 0x45, + 0xab, 0x6c, 0xa0, 0x70, 0x17, 0xd1, 0xda, 0xd5, 0xb6, 0x8a, 0x67, 0x1a, 0x7c, 0xa5, 0xea, 0x82, + 0x5d, 0x51, 0x9c, 0xd8, 0x94, 0x2b, 0x76, 0xcf, 0x8d, 0xaf, 0x4c, 0x4e, 0x64, 0xf2, 0x56, 0x32, + 0xf7, 0x19, 0xf4, 0x12, 0x52, 0x96, 0x50, 0x14, 0xaf, 0x3c, 0x72, 0x62, 0x09, 0xab, 0xec, 0xfc, + 0xba, 0x46, 0xf6, 0x2e, 0x1f, 0xae, 0xf9, 0x51, 0xe4, 0x03, 0x24, 0x58, 0x7a, 0x8b, 0x9c, 0xf1, + 0x47, 0x81, 0x92, 0xbd, 0xb6, 0xce, 0x5f, 0x3a, 0x31, 0x82, 0xa2, 0x2f, 0x5f, 0xb8, 0x04, 0x3d, + 0x22, 0xd4, 0x83, 0x42, 0xf1, 0x18, 0x8a, 0xaa, 0x0b, 0x73, 0xa0, 0x65, 0xf1, 0xef, 0x6d, 0x3a, + 0x2f, 0xfe, 0xa9, 0x9d, 0x73, 0x6c, 0x88, 0x3a, 0xe2, 0x6a, 0xb8, 0x34, 0x0b, 0x08, 0x8a, 0x47, + 0x79, 0x82, 0xde, 0x70, 0x1c, 0x4a, 0xa6, 0x32, 0xb9, 0x7c, 0x74, 0x55, 0x5b, 0x74, 0x60, 0xe3, + 0xf4, 0x2b, 0x72, 0xc5, 0x63, 0xd3, 0xdb, 0x0c, 0x65, 0x94, 0xc4, 0xe9, 0x14, 0x2e, 0x4c, 0x81, + 0x6d, 0xcb, 0x3f, 0xb9, 0xdd, 0x9f, 0xe7, 0xe9, 0x1d, 0xb2, 0x93, 0xeb, 0x8e, 0xa2, 0x31, 0x97, + 0xc5, 0xde, 0x17, 0xce, 0x75, 0xcb, 0xc9, 0x5c, 0x3e, 0xdf, 0xfc, 0x43, 0x72, 0xad, 0x50, 0xb1, + 0x18, 0x75, 0xcc, 0x4d, 0x34, 0x76, 0x7f, 0x07, 0x49, 0x66, 0x96, 0x86, 0xc3, 0x9e, 0x17, 0x3f, + 0xcd, 0xa9, 0x97, 0x39, 0x44, 0xbf, 0x24, 0xdb, 0x79, 0xcf, 0x50, 0x24, 0xe5, 0x2f, 0xe2, 0x7c, + 0x0a, 0xb9, 0x96, 0xa1, 0x48, 0x66, 0x1f, 0xc0, 0xdd, 0xbc, 0x13, 0xa0, 0x93, 0x4c, 0x45, 0xb3, + 0x46, 0x2f, 0xfb, 0xa0, 0x2f, 0x07, 0x39, 0x91, 0x0f, 0xfd, 0x88, 0xec, 0x3e, 0xfe, 0xcf, 0x2e, + 0x58, 0x3a, 0xa8, 0x95, 0x7f, 0x39, 0xa8, 0xaf, 0x9f, 0x10, 0x7a, 0x2e, 0x53, 0xc5, 0xe6, 0xbf, + 0x65, 0xf0, 0xce, 0xd0, 0xab, 0xdd, 0x1f, 0x33, 0x89, 0x29, 0xa8, 0x67, 0x60, 0xde, 0x26, 0x6a, + 0xa2, 0x4f, 0x41, 0xea, 0xc2, 0x1d, 0xb5, 0xa3, 0x4a, 0xd7, 0xfe, 0xcd, 0x0d, 0xb6, 0xac, 0x72, + 0xbe, 0xb9, 0x77, 0xe6, 0xf8, 0xe7, 0x3f, 0x3e, 0xee, 0x07, 0x7f, 0x7e, 0xdc, 0x0f, 0xfe, 0xfa, + 0xb8, 0x1f, 0xfc, 0x34, 0x18, 0xa1, 0xe9, 0x9e, 0xfb, 0x42, 0x5d, 0x09, 0xa6, 0x87, 0x11, 0x9c, + 0x81, 0x1a, 0xf5, 0xc6, 0xc0, 0xa7, 0x66, 0x7c, 0x96, 0x98, 0x43, 0x94, 0x23, 0xd0, 0xe6, 0xf0, + 0xdc, 0xe0, 0xa1, 0xe4, 0x06, 0xdf, 0x40, 0x2f, 0x9d, 0x8c, 0x7a, 0xe7, 0x06, 0x7b, 0x7c, 0xc8, + 0x53, 0x03, 0x4a, 0xf7, 0xd8, 0x79, 0x26, 0x13, 0xdd, 0xd3, 0xd1, 0x18, 0x62, 0xfe, 0x4f, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xd4, 0x6a, 0xd8, 0x79, 0x6b, 0x0a, 0x00, 0x00, +} + +func (m *Port) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Port) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Port) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.InterfaceStats) > 0 { + for iNdEx := len(m.InterfaceStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InterfaceStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *InterfaceInfos) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfaceInfos) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfaceInfos) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressErrors != nil { + { + size, err := m.EgressErrors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.IfHighSpeed != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfHighSpeed)) + i-- + dAtA[i] = 0x78 + } + if m.IfLastChange != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfLastChange)) + i-- + dAtA[i] = 0x70 + } + if m.IfTransitions != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfTransitions)) + i-- + dAtA[i] = 0x68 + } + if m.IfDescription != nil { + i -= len(*m.IfDescription) + copy(dAtA[i:], *m.IfDescription) + i = encodeVarintPort(dAtA, i, uint64(len(*m.IfDescription))) + i-- + dAtA[i] = 0x62 + } + if m.IfOperationalStatus != nil { + i -= len(*m.IfOperationalStatus) + copy(dAtA[i:], *m.IfOperationalStatus) + i = encodeVarintPort(dAtA, i, uint64(len(*m.IfOperationalStatus))) + i-- + dAtA[i] = 0x5a + } + if m.IfAdministrationStatus != nil { + i -= len(*m.IfAdministrationStatus) + copy(dAtA[i:], *m.IfAdministrationStatus) + i = encodeVarintPort(dAtA, i, uint64(len(*m.IfAdministrationStatus))) + i-- + dAtA[i] = 0x52 + } + if m.IngressErrors != nil { + { + size, err := m.IngressErrors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.IngressQueueInfo) > 0 { + for iNdEx := len(m.IngressQueueInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IngressQueueInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.EgressQueueInfo) > 0 { + for iNdEx := len(m.EgressQueueInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EgressQueueInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPort(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintPort(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x22 + } + if m.SnmpIfIndex != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.SnmpIfIndex)) + i-- + dAtA[i] = 0x18 + } + if m.InitTime != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.InitTime)) + i-- + dAtA[i] = 0x10 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintPort(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueueStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueueStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueueStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AllocatedBufferSize != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.AllocatedBufferSize)) + i-- + dAtA[i] = 0x60 + } + if m.PeakBufferOccupancy != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.PeakBufferOccupancy)) + i-- + dAtA[i] = 0x58 + } + if m.CurBufferOccupancy != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.CurBufferOccupancy)) + i-- + dAtA[i] = 0x50 + } + if m.AvgBufferOccupancy != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.AvgBufferOccupancy)) + i-- + dAtA[i] = 0x48 + } + if m.RedDropBytes != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.RedDropBytes)) + i-- + dAtA[i] = 0x40 + } + if m.RedDropPackets != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.RedDropPackets)) + i-- + dAtA[i] = 0x38 + } + if m.RlDropBytes != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.RlDropBytes)) + i-- + dAtA[i] = 0x30 + } + if m.RlDropPackets != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.RlDropPackets)) + i-- + dAtA[i] = 0x28 + } + if m.TailDropPackets != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.TailDropPackets)) + i-- + dAtA[i] = 0x20 + } + if m.Bytes != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x18 + } + if m.Packets != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x10 + } + if m.QueueNumber != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.QueueNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *InterfaceStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfaceStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfaceStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfUnknownProtoPkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfUnknownProtoPkts)) + i-- + dAtA[i] = 0x50 + } + if m.IfPausePkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfPausePkts)) + i-- + dAtA[i] = 0x48 + } + if m.IfError != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfError)) + i-- + dAtA[i] = 0x40 + } + if m.IfBcPkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfBcPkts)) + i-- + dAtA[i] = 0x38 + } + if m.IfMcPkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfMcPkts)) + i-- + dAtA[i] = 0x30 + } + if m.IfUcPkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfUcPkts)) + i-- + dAtA[i] = 0x28 + } + if m.If_1SecOctets != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.If_1SecOctets)) + i-- + dAtA[i] = 0x20 + } + if m.If_1SecPkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.If_1SecPkts)) + i-- + dAtA[i] = 0x18 + } + if m.IfOctets != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfOctets)) + i-- + dAtA[i] = 0x10 + } + if m.IfPkts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfPkts)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *IngressInterfaceErrors) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IngressInterfaceErrors) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IngressInterfaceErrors) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfInResourceErrors != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInResourceErrors)) + i-- + dAtA[i] = 0x50 + } + if m.IfInFifoErrors != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInFifoErrors)) + i-- + dAtA[i] = 0x48 + } + if m.IfInL2MismatchTimeouts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInL2MismatchTimeouts)) + i-- + dAtA[i] = 0x40 + } + if m.IfInL2ChanErrors != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInL2ChanErrors)) + i-- + dAtA[i] = 0x38 + } + if m.IfInL3Incompletes != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInL3Incompletes)) + i-- + dAtA[i] = 0x30 + } + if m.IfInRunts != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInRunts)) + i-- + dAtA[i] = 0x28 + } + if m.IfDiscards != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfDiscards)) + i-- + dAtA[i] = 0x20 + } + if m.IfInFrameErrors != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInFrameErrors)) + i-- + dAtA[i] = 0x18 + } + if m.IfInQdrops != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfInQdrops)) + i-- + dAtA[i] = 0x10 + } + if m.IfErrors != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfErrors)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EgressInterfaceErrors) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EgressInterfaceErrors) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EgressInterfaceErrors) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfDiscards != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfDiscards)) + i-- + dAtA[i] = 0x10 + } + if m.IfErrors != nil { + i = encodeVarintPort(dAtA, i, uint64(*m.IfErrors)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintPort(dAtA []byte, offset int, v uint64) int { + offset -= sovPort(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Port) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InterfaceStats) > 0 { + for _, e := range m.InterfaceStats { + l = e.Size() + n += 1 + l + sovPort(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfaceInfos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovPort(uint64(l)) + } + if m.InitTime != nil { + n += 1 + sovPort(uint64(*m.InitTime)) + } + if m.SnmpIfIndex != nil { + n += 1 + sovPort(uint64(*m.SnmpIfIndex)) + } + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 1 + l + sovPort(uint64(l)) + } + if len(m.EgressQueueInfo) > 0 { + for _, e := range m.EgressQueueInfo { + l = e.Size() + n += 1 + l + sovPort(uint64(l)) + } + } + if len(m.IngressQueueInfo) > 0 { + for _, e := range m.IngressQueueInfo { + l = e.Size() + n += 1 + l + sovPort(uint64(l)) + } + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovPort(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovPort(uint64(l)) + } + if m.IngressErrors != nil { + l = m.IngressErrors.Size() + n += 1 + l + sovPort(uint64(l)) + } + if m.IfAdministrationStatus != nil { + l = len(*m.IfAdministrationStatus) + n += 1 + l + sovPort(uint64(l)) + } + if m.IfOperationalStatus != nil { + l = len(*m.IfOperationalStatus) + n += 1 + l + sovPort(uint64(l)) + } + if m.IfDescription != nil { + l = len(*m.IfDescription) + n += 1 + l + sovPort(uint64(l)) + } + if m.IfTransitions != nil { + n += 1 + sovPort(uint64(*m.IfTransitions)) + } + if m.IfLastChange != nil { + n += 1 + sovPort(uint64(*m.IfLastChange)) + } + if m.IfHighSpeed != nil { + n += 1 + sovPort(uint64(*m.IfHighSpeed)) + } + if m.EgressErrors != nil { + l = m.EgressErrors.Size() + n += 2 + l + sovPort(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QueueStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QueueNumber != nil { + n += 1 + sovPort(uint64(*m.QueueNumber)) + } + if m.Packets != nil { + n += 1 + sovPort(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovPort(uint64(*m.Bytes)) + } + if m.TailDropPackets != nil { + n += 1 + sovPort(uint64(*m.TailDropPackets)) + } + if m.RlDropPackets != nil { + n += 1 + sovPort(uint64(*m.RlDropPackets)) + } + if m.RlDropBytes != nil { + n += 1 + sovPort(uint64(*m.RlDropBytes)) + } + if m.RedDropPackets != nil { + n += 1 + sovPort(uint64(*m.RedDropPackets)) + } + if m.RedDropBytes != nil { + n += 1 + sovPort(uint64(*m.RedDropBytes)) + } + if m.AvgBufferOccupancy != nil { + n += 1 + sovPort(uint64(*m.AvgBufferOccupancy)) + } + if m.CurBufferOccupancy != nil { + n += 1 + sovPort(uint64(*m.CurBufferOccupancy)) + } + if m.PeakBufferOccupancy != nil { + n += 1 + sovPort(uint64(*m.PeakBufferOccupancy)) + } + if m.AllocatedBufferSize != nil { + n += 1 + sovPort(uint64(*m.AllocatedBufferSize)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfaceStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfPkts != nil { + n += 1 + sovPort(uint64(*m.IfPkts)) + } + if m.IfOctets != nil { + n += 1 + sovPort(uint64(*m.IfOctets)) + } + if m.If_1SecPkts != nil { + n += 1 + sovPort(uint64(*m.If_1SecPkts)) + } + if m.If_1SecOctets != nil { + n += 1 + sovPort(uint64(*m.If_1SecOctets)) + } + if m.IfUcPkts != nil { + n += 1 + sovPort(uint64(*m.IfUcPkts)) + } + if m.IfMcPkts != nil { + n += 1 + sovPort(uint64(*m.IfMcPkts)) + } + if m.IfBcPkts != nil { + n += 1 + sovPort(uint64(*m.IfBcPkts)) + } + if m.IfError != nil { + n += 1 + sovPort(uint64(*m.IfError)) + } + if m.IfPausePkts != nil { + n += 1 + sovPort(uint64(*m.IfPausePkts)) + } + if m.IfUnknownProtoPkts != nil { + n += 1 + sovPort(uint64(*m.IfUnknownProtoPkts)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IngressInterfaceErrors) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfErrors != nil { + n += 1 + sovPort(uint64(*m.IfErrors)) + } + if m.IfInQdrops != nil { + n += 1 + sovPort(uint64(*m.IfInQdrops)) + } + if m.IfInFrameErrors != nil { + n += 1 + sovPort(uint64(*m.IfInFrameErrors)) + } + if m.IfDiscards != nil { + n += 1 + sovPort(uint64(*m.IfDiscards)) + } + if m.IfInRunts != nil { + n += 1 + sovPort(uint64(*m.IfInRunts)) + } + if m.IfInL3Incompletes != nil { + n += 1 + sovPort(uint64(*m.IfInL3Incompletes)) + } + if m.IfInL2ChanErrors != nil { + n += 1 + sovPort(uint64(*m.IfInL2ChanErrors)) + } + if m.IfInL2MismatchTimeouts != nil { + n += 1 + sovPort(uint64(*m.IfInL2MismatchTimeouts)) + } + if m.IfInFifoErrors != nil { + n += 1 + sovPort(uint64(*m.IfInFifoErrors)) + } + if m.IfInResourceErrors != nil { + n += 1 + sovPort(uint64(*m.IfInResourceErrors)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *EgressInterfaceErrors) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfErrors != nil { + n += 1 + sovPort(uint64(*m.IfErrors)) + } + if m.IfDiscards != nil { + n += 1 + sovPort(uint64(*m.IfDiscards)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPort(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPort(x uint64) (n int) { + return sovPort(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Port) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Port: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Port: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterfaceStats = append(m.InterfaceStats, &InterfaceInfos{}) + if err := m.InterfaceStats[len(m.InterfaceStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfaceInfos) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InterfaceInfos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InterfaceInfos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitTime = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnmpIfIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnmpIfIndex = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressQueueInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EgressQueueInfo = append(m.EgressQueueInfo, &QueueStats{}) + if err := m.EgressQueueInfo[len(m.EgressQueueInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressQueueInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IngressQueueInfo = append(m.IngressQueueInfo, &QueueStats{}) + if err := m.IngressQueueInfo[len(m.IngressQueueInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &InterfaceStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &InterfaceStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressErrors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressErrors == nil { + m.IngressErrors = &IngressInterfaceErrors{} + } + if err := m.IngressErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfAdministrationStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfAdministrationStatus = &s + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOperationalStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfOperationalStatus = &s + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfDescription", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfDescription = &s + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfTransitions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfTransitions = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfLastChange", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfLastChange = &v + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfHighSpeed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfHighSpeed = &v + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressErrors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPort + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPort + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressErrors == nil { + m.EgressErrors = &EgressInterfaceErrors{} + } + if err := m.EgressErrors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueueStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueueStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueueStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueNumber = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TailDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TailDropPackets = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RlDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RlDropPackets = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RlDropBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RlDropBytes = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropPackets = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropBytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropBytes = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvgBufferOccupancy", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AvgBufferOccupancy = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurBufferOccupancy", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurBufferOccupancy = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeakBufferOccupancy", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeakBufferOccupancy = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllocatedBufferSize", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllocatedBufferSize = &v + default: + iNdEx = preIndex + skippy, err := skipPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfaceStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InterfaceStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InterfaceStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfPkts = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfOctets = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field If_1SecPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.If_1SecPkts = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field If_1SecOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.If_1SecOctets = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfUcPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfUcPkts = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfMcPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfMcPkts = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfBcPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfBcPkts = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfError", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfError = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfPausePkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfPausePkts = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfUnknownProtoPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfUnknownProtoPkts = &v + default: + iNdEx = preIndex + skippy, err := skipPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IngressInterfaceErrors) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IngressInterfaceErrors: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IngressInterfaceErrors: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfErrors = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInQdrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInQdrops = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInFrameErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInFrameErrors = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfDiscards = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInRunts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInRunts = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInL3Incompletes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInL3Incompletes = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInL2ChanErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInL2ChanErrors = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInL2MismatchTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInL2MismatchTimeouts = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInFifoErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInFifoErrors = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfInResourceErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfInResourceErrors = &v + default: + iNdEx = preIndex + skippy, err := skipPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EgressInterfaceErrors) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EgressInterfaceErrors: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EgressInterfaceErrors: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfErrors = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IfDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPort + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IfDiscards = &v + default: + iNdEx = preIndex + skippy, err := skipPort(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPort + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPort(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPort + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPort + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPort + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPort + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPort + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPort + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPort = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPort = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPort = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/port.proto b/schema/port.proto new file mode 100755 index 0000000..9bd488e --- /dev/null +++ b/schema/port.proto @@ -0,0 +1,226 @@ +// +// Copyrights (c) 2015, 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Nitin Kumar, Jan 2015 +// +// This file defines the messages in Protocol Buffers format used by +// the port sensor. The-top level messages is Port. +// +// Version 1.1 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 3 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional Port jnpr_interface_ext = 3; +} + +// +// Top-level message +// +message Port { + repeated InterfaceInfos interface_stats = 1; +} + +// +// Interface information +// +message InterfaceInfos { + // Interface name, e.g., xe-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Time when interface is created + optional uint64 init_time = 2; + + // Global Index + optional uint32 snmp_if_index = 3; + + // Name of parent for AE interface, if applicable + optional string parent_ae_name = 4; + + // Egress queue information + repeated QueueStats egress_queue_info = 5; + + // Ingress queue information + repeated QueueStats ingress_queue_info = 6; + + // Inbound traffic statistics + optional InterfaceStats ingress_stats = 7; + + // Outbound traffic statistics + optional InterfaceStats egress_stats = 8; + + // Inbound traffic errors + optional IngressInterfaceErrors ingress_errors = 9; + + // Interface administration status + optional string if_administration_status = 10; + + // Interface operational status + optional string if_operational_status = 11; + + // Interface description + optional string if_description = 12; + + // Counter: number of carrier transitions on this interface + optional uint64 if_transitions = 13 [(telemetry_options).is_counter = true]; + + // This corresponds to the ifLastChange object in the standard interface MIB + optional uint32 ifLastChange = 14; + + // This corresponds to the ifHighSpeed object in the standard interface MIB + optional uint32 ifHighSpeed = 15; + + // Outbound traffic errors + optional EgressInterfaceErrors egress_errors = 16; +} + +// +// Interface queue statistics +// +message QueueStats { + // Queue number + optional uint32 queue_number = 1 [(telemetry_options).is_key = true]; + + // The total number of packets that have been added to this queue + optional uint64 packets = 2 [(telemetry_options).is_counter = true]; + + // The total number of bytes that have been added to this queue + optional uint64 bytes = 3 [(telemetry_options).is_counter = true]; + + // The total number of tail dropped packets + optional uint64 tail_drop_packets = 4 [(telemetry_options).is_counter = true]; + + // The total number of rate-limited packets + optional uint64 rl_drop_packets = 5 [(telemetry_options).is_counter = true]; + + // The total number of rate-limited bytes + optional uint64 rl_drop_bytes = 6 [(telemetry_options).is_counter = true]; + + // The total number of red-dropped packets + optional uint64 red_drop_packets = 7 [(telemetry_options).is_counter = true]; + + // The total number of red-dropped bytes + optional uint64 red_drop_bytes = 8 [(telemetry_options).is_counter = true]; + + // Average queue depth, in packets + optional uint64 avg_buffer_occupancy = 9 [(telemetry_options).is_gauge = true]; + + // Current queue depth, in packets + optional uint64 cur_buffer_occupancy = 10 [(telemetry_options).is_gauge = true]; + + // The max measured queue depth, in packets, across all measurements since boot + optional uint64 peak_buffer_occupancy = 11 [(telemetry_options).is_gauge = true]; + + // Allocated buffer size + optional uint64 allocated_buffer_size = 12 [(telemetry_options).is_gauge = true]; +} + +// +// Interface statistics +// +message InterfaceStats { + // The total number of packets sent/received by this interface + optional uint64 if_pkts = 1 [(telemetry_options).is_counter = true]; + + // The total number of bytes sent/received by this interface + optional uint64 if_octets = 2 [(telemetry_options).is_counter = true]; + + // The rate at which packets are sent/received by this interface (in packets/sec) + optional uint64 if_1sec_pkts = 3 [(telemetry_options).is_gauge = true]; + + // The rate at which bytes are sent/received by this interface + optional uint64 if_1sec_octets = 4 [(telemetry_options).is_gauge = true]; + + // Total number of unicast packets sent/received by this interface + optional uint64 if_uc_pkts = 5 [(telemetry_options).is_counter = true]; + + // Total number of multicast packets sent/received by this interface + optional uint64 if_mc_pkts = 6 [(telemetry_options).is_counter = true]; + + // Total number of broadcast packets sent/received by this interface + optional uint64 if_bc_pkts = 7 [(telemetry_options).is_counter = true]; + + // Counter: total no of error packets sent/rcvd by this interface + optional uint64 if_error = 8 [(telemetry_options).is_counter = true]; + + // Counter: total no of PAUSE packets sent/rcvd by this interface + optional uint64 if_pause_pkts = 9 [(telemetry_options).is_counter = true]; + + // Counter: total no of UNKNOWN proto packets sent/rcvd by this interface + optional uint64 if_unknown_proto_pkts = 10 [(telemetry_options).is_counter = true]; +} + +// +// Inbound traffic error statistics +// +message IngressInterfaceErrors { + // The number of packets that contained errors + optional uint64 if_errors = 1 [(telemetry_options).is_counter = true]; + + // The number of packets dropped by the input queue of the I/O Manager ASIC + optional uint64 if_in_qdrops = 2 [(telemetry_options).is_counter = true]; + + // The number of packets which were misaligned + optional uint64 if_in_frame_errors = 3 [(telemetry_options).is_counter = true]; + + // The number of non-error packets which were chosen to be discarded + optional uint64 if_discards = 4 [(telemetry_options).is_counter = true]; + + // The number of runt packets + optional uint64 if_in_runts = 5 [(telemetry_options).is_counter = true]; + + // The number of packets that fail Layer 3 sanity checks of the header + optional uint64 if_in_l3_incompletes = 6 [(telemetry_options).is_counter = true]; + + // The number of packets for which the software could not find a valid logical interface + optional uint64 if_in_l2chan_errors = 7 [(telemetry_options).is_counter = true]; + + // The number of malform or short packets + optional uint64 if_in_l2_mismatch_timeouts = 8 [(telemetry_options).is_counter = true]; + + // The number of FIFO errors + optional uint64 if_in_fifo_errors = 9 [(telemetry_options).is_counter = true]; + + // The number of resource errors + optional uint64 if_in_resource_errors = 10 [(telemetry_options).is_counter = true]; +} + +// +// Outbound traffic error statistics +// +message EgressInterfaceErrors { + // The number of packets that contained errors + optional uint64 if_errors = 1 [(telemetry_options).is_counter = true]; + + // The number of non-error packets which were chosen to be discarded + optional uint64 if_discards = 2 [(telemetry_options).is_counter = true]; +} + diff --git a/schema/port_exp.pb.go b/schema/port_exp.pb.go new file mode 100644 index 0000000..2f21196 --- /dev/null +++ b/schema/port_exp.pb.go @@ -0,0 +1,612 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: port_exp.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type PortExp struct { + InterfaceExpStats []*InterfaceExpInfos `protobuf:"bytes,1,rep,name=interfaceExp_stats,json=interfaceExpStats" json:"interfaceExp_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PortExp) Reset() { *m = PortExp{} } +func (m *PortExp) String() string { return proto.CompactTextString(m) } +func (*PortExp) ProtoMessage() {} +func (*PortExp) Descriptor() ([]byte, []int) { + return fileDescriptor_dbd3f2d611fd16ff, []int{0} +} +func (m *PortExp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PortExp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PortExp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PortExp) XXX_Merge(src proto.Message) { + xxx_messageInfo_PortExp.Merge(m, src) +} +func (m *PortExp) XXX_Size() int { + return m.Size() +} +func (m *PortExp) XXX_DiscardUnknown() { + xxx_messageInfo_PortExp.DiscardUnknown(m) +} + +var xxx_messageInfo_PortExp proto.InternalMessageInfo + +func (m *PortExp) GetInterfaceExpStats() []*InterfaceExpInfos { + if m != nil { + return m.InterfaceExpStats + } + return nil +} + +// +// Interface information +// +type InterfaceExpInfos struct { + // Interface name, e.g., et-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Interface operational status + IfOperationalStatus *string `protobuf:"bytes,2,opt,name=if_operational_status,json=ifOperationalStatus" json:"if_operational_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfaceExpInfos) Reset() { *m = InterfaceExpInfos{} } +func (m *InterfaceExpInfos) String() string { return proto.CompactTextString(m) } +func (*InterfaceExpInfos) ProtoMessage() {} +func (*InterfaceExpInfos) Descriptor() ([]byte, []int) { + return fileDescriptor_dbd3f2d611fd16ff, []int{1} +} +func (m *InterfaceExpInfos) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfaceExpInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfaceExpInfos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfaceExpInfos) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfaceExpInfos.Merge(m, src) +} +func (m *InterfaceExpInfos) XXX_Size() int { + return m.Size() +} +func (m *InterfaceExpInfos) XXX_DiscardUnknown() { + xxx_messageInfo_InterfaceExpInfos.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfaceExpInfos proto.InternalMessageInfo + +func (m *InterfaceExpInfos) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *InterfaceExpInfos) GetIfOperationalStatus() string { + if m != nil && m.IfOperationalStatus != nil { + return *m.IfOperationalStatus + } + return "" +} + +var E_JnprInterfaceExpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*PortExp)(nil), + Field: 18, + Name: "jnpr_interface_exp_ext", + Tag: "bytes,18,opt,name=jnpr_interface_exp_ext", + Filename: "port_exp.proto", +} + +func init() { + proto.RegisterType((*PortExp)(nil), "Port_exp") + proto.RegisterType((*InterfaceExpInfos)(nil), "InterfaceExpInfos") + proto.RegisterExtension(E_JnprInterfaceExpExt) +} + +func init() { proto.RegisterFile("port_exp.proto", fileDescriptor_dbd3f2d611fd16ff) } + +var fileDescriptor_dbd3f2d611fd16ff = []byte{ + // 318 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x8f, 0xc1, 0x4a, 0xf3, 0x40, + 0x14, 0x85, 0x99, 0xfe, 0xfc, 0xda, 0x4e, 0x41, 0xe8, 0x14, 0x35, 0xb8, 0x08, 0xa1, 0xab, 0x6c, + 0x9a, 0x81, 0x2e, 0x5d, 0x69, 0xa1, 0x8b, 0x0a, 0x56, 0x49, 0x17, 0x82, 0x9b, 0x71, 0x5a, 0x6f, + 0xd2, 0x49, 0x9b, 0x99, 0x61, 0xe6, 0x56, 0xe3, 0xd6, 0xa7, 0x73, 0xe9, 0x23, 0x48, 0x9f, 0x44, + 0x5a, 0xab, 0x06, 0xdc, 0xde, 0xef, 0xe3, 0xdc, 0x73, 0xe8, 0x91, 0x35, 0x0e, 0x05, 0x54, 0x36, + 0xb1, 0xce, 0xa0, 0x39, 0xeb, 0x22, 0xac, 0xa0, 0x04, 0x74, 0x2f, 0x02, 0xcd, 0xfe, 0xd8, 0xbb, + 0xa6, 0xcd, 0xdb, 0xbd, 0xc6, 0x2e, 0x29, 0x53, 0x1a, 0xc1, 0x65, 0x72, 0x0e, 0xa3, 0xca, 0x0a, + 0x8f, 0x12, 0x7d, 0x40, 0xa2, 0x7f, 0x71, 0x7b, 0xc0, 0x92, 0x71, 0x0d, 0x8d, 0x75, 0x66, 0x7c, + 0xda, 0xa9, 0xdb, 0xd3, 0xad, 0xdc, 0xcb, 0x69, 0xe7, 0x8f, 0xc7, 0x42, 0x7a, 0xa8, 0x32, 0xa1, + 0x65, 0x09, 0x01, 0x89, 0x1a, 0x71, 0x6b, 0xf8, 0xff, 0xf5, 0xa2, 0xd1, 0x24, 0xe9, 0x81, 0xca, + 0x26, 0xb2, 0x04, 0x36, 0xa0, 0xc7, 0x2a, 0x13, 0xc6, 0x82, 0x93, 0xa8, 0x8c, 0x96, 0xab, 0xdd, + 0xe7, 0xb5, 0x0f, 0x1a, 0x11, 0x89, 0x5b, 0x69, 0x57, 0x65, 0x37, 0xbf, 0x6c, 0xba, 0x43, 0xe7, + 0x77, 0xf4, 0xa4, 0xd0, 0xd6, 0x89, 0x9f, 0x0a, 0xdb, 0x05, 0x02, 0x2a, 0x64, 0xa7, 0xc9, 0xd5, + 0x5a, 0x2b, 0x0b, 0x6e, 0x02, 0xf8, 0x6c, 0xdc, 0xd2, 0x4f, 0x41, 0x7b, 0xe3, 0x7c, 0xc0, 0x22, + 0x12, 0xb7, 0x07, 0xad, 0xe4, 0x7b, 0x6f, 0xda, 0xdd, 0x26, 0xd4, 0xeb, 0x8e, 0x2a, 0x1c, 0x3e, + 0xbc, 0x6d, 0x42, 0xf2, 0xbe, 0x09, 0xc9, 0xc7, 0x26, 0x24, 0xf7, 0x69, 0xae, 0x30, 0x29, 0xbe, + 0xf2, 0x12, 0x0d, 0xc8, 0xd5, 0x1c, 0x66, 0xe0, 0x72, 0xbe, 0x00, 0xb9, 0xc2, 0xc5, 0xcc, 0x60, + 0x5f, 0xe9, 0x1c, 0x3c, 0xf6, 0x0b, 0x54, 0x7d, 0x2d, 0x51, 0x3d, 0x01, 0xb7, 0xcb, 0x9c, 0x17, + 0xa8, 0xb8, 0x7c, 0x94, 0x16, 0xc1, 0x79, 0x2e, 0x8a, 0xb5, 0x36, 0x9e, 0xfb, 0xf9, 0x02, 0x4a, + 0xf9, 0x19, 0x00, 0x00, 0xff, 0xff, 0xba, 0xea, 0x78, 0x5c, 0x98, 0x01, 0x00, 0x00, +} + +func (m *PortExp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PortExp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PortExp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.InterfaceExpStats) > 0 { + for iNdEx := len(m.InterfaceExpStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InterfaceExpStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPortExp(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *InterfaceExpInfos) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfaceExpInfos) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfaceExpInfos) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IfOperationalStatus != nil { + i -= len(*m.IfOperationalStatus) + copy(dAtA[i:], *m.IfOperationalStatus) + i = encodeVarintPortExp(dAtA, i, uint64(len(*m.IfOperationalStatus))) + i-- + dAtA[i] = 0x12 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintPortExp(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintPortExp(dAtA []byte, offset int, v uint64) int { + offset -= sovPortExp(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *PortExp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.InterfaceExpStats) > 0 { + for _, e := range m.InterfaceExpStats { + l = e.Size() + n += 1 + l + sovPortExp(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfaceExpInfos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovPortExp(uint64(l)) + } + if m.IfOperationalStatus != nil { + l = len(*m.IfOperationalStatus) + n += 1 + l + sovPortExp(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovPortExp(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPortExp(x uint64) (n int) { + return sovPortExp(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *PortExp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPortExp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Port_exp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Port_exp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceExpStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPortExp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPortExp + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPortExp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InterfaceExpStats = append(m.InterfaceExpStats, &InterfaceExpInfos{}) + if err := m.InterfaceExpStats[len(m.InterfaceExpStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPortExp(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPortExp + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPortExp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfaceExpInfos) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPortExp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InterfaceExpInfos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InterfaceExpInfos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPortExp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPortExp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPortExp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfOperationalStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPortExp + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPortExp + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPortExp + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfOperationalStatus = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPortExp(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPortExp + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPortExp + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPortExp(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPortExp + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPortExp + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPortExp + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPortExp + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPortExp + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPortExp + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPortExp = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPortExp = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPortExp = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/port_exp.proto b/schema/port_exp.proto new file mode 100755 index 0000000..e99ecea --- /dev/null +++ b/schema/port_exp.proto @@ -0,0 +1,63 @@ +// +// Copyrights (c) 2017, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// Mrach 2017 +// +// This file defines the messages in Protocol Buffers format used by +// the port_exp sensor. The-top level messages is Port_exp. +// +// Version 1.1 +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 3 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional Port_exp jnpr_interface_exp_ext = 18; +} + +// +// Top-level message +// +message Port_exp { + repeated InterfaceExpInfos interfaceExp_stats = 1; +} + +// +// Interface information +// +message InterfaceExpInfos { + // Interface name, e.g., et-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Interface operational status + optional string if_operational_status = 2; + +} + diff --git a/schema/qmon.pb.go b/schema/qmon.pb.go new file mode 100644 index 0000000..00d37fb --- /dev/null +++ b/schema/qmon.pb.go @@ -0,0 +1,1761 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: qmon.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type QueueMonitor struct { + QueueMonitorElementInfo []*QueueMonitorElement `protobuf:"bytes,1,rep,name=queue_monitor_element_info,json=queueMonitorElementInfo" json:"queue_monitor_element_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueueMonitor) Reset() { *m = QueueMonitor{} } +func (m *QueueMonitor) String() string { return proto.CompactTextString(m) } +func (*QueueMonitor) ProtoMessage() {} +func (*QueueMonitor) Descriptor() ([]byte, []int) { + return fileDescriptor_b0a18ca619b514d6, []int{0} +} +func (m *QueueMonitor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueueMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueueMonitor.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueueMonitor) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueueMonitor.Merge(m, src) +} +func (m *QueueMonitor) XXX_Size() int { + return m.Size() +} +func (m *QueueMonitor) XXX_DiscardUnknown() { + xxx_messageInfo_QueueMonitor.DiscardUnknown(m) +} + +var xxx_messageInfo_QueueMonitor proto.InternalMessageInfo + +func (m *QueueMonitor) GetQueueMonitorElementInfo() []*QueueMonitorElement { + if m != nil { + return m.QueueMonitorElementInfo + } + return nil +} + +// QueueMonitorElement for an interface +type QueueMonitorElement struct { + // interface name + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // parent ae interface name + ParentAeName *string `protobuf:"bytes,2,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + // ingress stats + QueueMonitorStatsIngress *QueueMonitorDirection `protobuf:"bytes,3,opt,name=queue_monitor_stats_ingress,json=queueMonitorStatsIngress" json:"queue_monitor_stats_ingress,omitempty"` + // egress stats + QueueMonitorStatsEgress *QueueMonitorDirection `protobuf:"bytes,4,opt,name=queue_monitor_stats_egress,json=queueMonitorStatsEgress" json:"queue_monitor_stats_egress,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueueMonitorElement) Reset() { *m = QueueMonitorElement{} } +func (m *QueueMonitorElement) String() string { return proto.CompactTextString(m) } +func (*QueueMonitorElement) ProtoMessage() {} +func (*QueueMonitorElement) Descriptor() ([]byte, []int) { + return fileDescriptor_b0a18ca619b514d6, []int{1} +} +func (m *QueueMonitorElement) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueueMonitorElement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueueMonitorElement.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueueMonitorElement) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueueMonitorElement.Merge(m, src) +} +func (m *QueueMonitorElement) XXX_Size() int { + return m.Size() +} +func (m *QueueMonitorElement) XXX_DiscardUnknown() { + xxx_messageInfo_QueueMonitorElement.DiscardUnknown(m) +} + +var xxx_messageInfo_QueueMonitorElement proto.InternalMessageInfo + +func (m *QueueMonitorElement) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *QueueMonitorElement) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *QueueMonitorElement) GetQueueMonitorStatsIngress() *QueueMonitorDirection { + if m != nil { + return m.QueueMonitorStatsIngress + } + return nil +} + +func (m *QueueMonitorElement) GetQueueMonitorStatsEgress() *QueueMonitorDirection { + if m != nil { + return m.QueueMonitorStatsEgress + } + return nil +} + +type QueueMonitorDirection struct { + QueueMonitorStatsInfo []*QueueMonitorStats `protobuf:"bytes,1,rep,name=queue_monitor_stats_info,json=queueMonitorStatsInfo" json:"queue_monitor_stats_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueueMonitorDirection) Reset() { *m = QueueMonitorDirection{} } +func (m *QueueMonitorDirection) String() string { return proto.CompactTextString(m) } +func (*QueueMonitorDirection) ProtoMessage() {} +func (*QueueMonitorDirection) Descriptor() ([]byte, []int) { + return fileDescriptor_b0a18ca619b514d6, []int{2} +} +func (m *QueueMonitorDirection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueueMonitorDirection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueueMonitorDirection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueueMonitorDirection) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueueMonitorDirection.Merge(m, src) +} +func (m *QueueMonitorDirection) XXX_Size() int { + return m.Size() +} +func (m *QueueMonitorDirection) XXX_DiscardUnknown() { + xxx_messageInfo_QueueMonitorDirection.DiscardUnknown(m) +} + +var xxx_messageInfo_QueueMonitorDirection proto.InternalMessageInfo + +func (m *QueueMonitorDirection) GetQueueMonitorStatsInfo() []*QueueMonitorStats { + if m != nil { + return m.QueueMonitorStatsInfo + } + return nil +} + +// QueueMonitorStats for a queue +type QueueMonitorStats struct { + // queue number, 0-7 + QueueNumber *uint32 `protobuf:"varint,1,req,name=queue_number,json=queueNumber" json:"queue_number,omitempty"` + // queue id, 0-max(16k for version 1) + QueueId *uint32 `protobuf:"varint,2,req,name=queue_id,json=queueId" json:"queue_id,omitempty"` + // peak_buffer_occupancy in bytes + PeakBufferOccupancyBytes *uint32 `protobuf:"varint,3,req,name=peak_buffer_occupancy_bytes,json=peakBufferOccupancyBytes" json:"peak_buffer_occupancy_bytes,omitempty"` + // (peak_buffer_occupancy/max_queue_size) * 100 + PeakBufferOccupancyPercent *uint32 `protobuf:"varint,4,opt,name=peak_buffer_occupancy_percent,json=peakBufferOccupancyPercent" json:"peak_buffer_occupancy_percent,omitempty"` + // Count of packets/bytes forwarded + Packets *uint64 `protobuf:"varint,5,req,name=packets" json:"packets,omitempty"` + Octets *uint64 `protobuf:"varint,6,req,name=octets" json:"octets,omitempty"` + // Count of packets/bytes due to dropped tail/force/error + TailDropPackets *uint64 `protobuf:"varint,7,req,name=tail_drop_packets,json=tailDropPackets" json:"tail_drop_packets,omitempty"` + TailDropOctets *uint64 `protobuf:"varint,8,req,name=tail_drop_octets,json=tailDropOctets" json:"tail_drop_octets,omitempty"` + // Count of packets/bytes due to WRED color 0 + RedDropPacketsColor_0 *uint64 `protobuf:"varint,9,req,name=red_drop_packets_color_0,json=redDropPacketsColor0" json:"red_drop_packets_color_0,omitempty"` + RedDropOctetsColor_0 *uint64 `protobuf:"varint,10,req,name=red_drop_octets_color_0,json=redDropOctetsColor0" json:"red_drop_octets_color_0,omitempty"` + // Count of packets/bytes due to WRED color 1 + RedDropPacketsColor_1 *uint64 `protobuf:"varint,11,req,name=red_drop_packets_color_1,json=redDropPacketsColor1" json:"red_drop_packets_color_1,omitempty"` + RedDropOctetsColor_1 *uint64 `protobuf:"varint,12,req,name=red_drop_octets_color_1,json=redDropOctetsColor1" json:"red_drop_octets_color_1,omitempty"` + // Count of packets/bytes due to WRED color 2 + RedDropPacketsColor_2 *uint64 `protobuf:"varint,13,req,name=red_drop_packets_color_2,json=redDropPacketsColor2" json:"red_drop_packets_color_2,omitempty"` + RedDropOctetsColor_2 *uint64 `protobuf:"varint,14,req,name=red_drop_octets_color_2,json=redDropOctetsColor2" json:"red_drop_octets_color_2,omitempty"` + // Count of packets/bytes due to WRED color 3 + RedDropPacketsColor_3 *uint64 `protobuf:"varint,15,req,name=red_drop_packets_color_3,json=redDropPacketsColor3" json:"red_drop_packets_color_3,omitempty"` + RedDropOctetsColor_3 *uint64 `protobuf:"varint,16,req,name=red_drop_octets_color_3,json=redDropOctetsColor3" json:"red_drop_octets_color_3,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueueMonitorStats) Reset() { *m = QueueMonitorStats{} } +func (m *QueueMonitorStats) String() string { return proto.CompactTextString(m) } +func (*QueueMonitorStats) ProtoMessage() {} +func (*QueueMonitorStats) Descriptor() ([]byte, []int) { + return fileDescriptor_b0a18ca619b514d6, []int{3} +} +func (m *QueueMonitorStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueueMonitorStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueueMonitorStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueueMonitorStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueueMonitorStats.Merge(m, src) +} +func (m *QueueMonitorStats) XXX_Size() int { + return m.Size() +} +func (m *QueueMonitorStats) XXX_DiscardUnknown() { + xxx_messageInfo_QueueMonitorStats.DiscardUnknown(m) +} + +var xxx_messageInfo_QueueMonitorStats proto.InternalMessageInfo + +func (m *QueueMonitorStats) GetQueueNumber() uint32 { + if m != nil && m.QueueNumber != nil { + return *m.QueueNumber + } + return 0 +} + +func (m *QueueMonitorStats) GetQueueId() uint32 { + if m != nil && m.QueueId != nil { + return *m.QueueId + } + return 0 +} + +func (m *QueueMonitorStats) GetPeakBufferOccupancyBytes() uint32 { + if m != nil && m.PeakBufferOccupancyBytes != nil { + return *m.PeakBufferOccupancyBytes + } + return 0 +} + +func (m *QueueMonitorStats) GetPeakBufferOccupancyPercent() uint32 { + if m != nil && m.PeakBufferOccupancyPercent != nil { + return *m.PeakBufferOccupancyPercent + } + return 0 +} + +func (m *QueueMonitorStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *QueueMonitorStats) GetOctets() uint64 { + if m != nil && m.Octets != nil { + return *m.Octets + } + return 0 +} + +func (m *QueueMonitorStats) GetTailDropPackets() uint64 { + if m != nil && m.TailDropPackets != nil { + return *m.TailDropPackets + } + return 0 +} + +func (m *QueueMonitorStats) GetTailDropOctets() uint64 { + if m != nil && m.TailDropOctets != nil { + return *m.TailDropOctets + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropPacketsColor_0() uint64 { + if m != nil && m.RedDropPacketsColor_0 != nil { + return *m.RedDropPacketsColor_0 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropOctetsColor_0() uint64 { + if m != nil && m.RedDropOctetsColor_0 != nil { + return *m.RedDropOctetsColor_0 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropPacketsColor_1() uint64 { + if m != nil && m.RedDropPacketsColor_1 != nil { + return *m.RedDropPacketsColor_1 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropOctetsColor_1() uint64 { + if m != nil && m.RedDropOctetsColor_1 != nil { + return *m.RedDropOctetsColor_1 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropPacketsColor_2() uint64 { + if m != nil && m.RedDropPacketsColor_2 != nil { + return *m.RedDropPacketsColor_2 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropOctetsColor_2() uint64 { + if m != nil && m.RedDropOctetsColor_2 != nil { + return *m.RedDropOctetsColor_2 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropPacketsColor_3() uint64 { + if m != nil && m.RedDropPacketsColor_3 != nil { + return *m.RedDropPacketsColor_3 + } + return 0 +} + +func (m *QueueMonitorStats) GetRedDropOctetsColor_3() uint64 { + if m != nil && m.RedDropOctetsColor_3 != nil { + return *m.RedDropOctetsColor_3 + } + return 0 +} + +var E_JnprQmonExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*QueueMonitor)(nil), + Field: 15, + Name: "jnpr_qmon_ext", + Tag: "bytes,15,opt,name=jnpr_qmon_ext", + Filename: "qmon.proto", +} + +func init() { + proto.RegisterType((*QueueMonitor)(nil), "QueueMonitor") + proto.RegisterType((*QueueMonitorElement)(nil), "QueueMonitorElement") + proto.RegisterType((*QueueMonitorDirection)(nil), "QueueMonitorDirection") + proto.RegisterType((*QueueMonitorStats)(nil), "QueueMonitorStats") + proto.RegisterExtension(E_JnprQmonExt) +} + +func init() { proto.RegisterFile("qmon.proto", fileDescriptor_b0a18ca619b514d6) } + +var fileDescriptor_b0a18ca619b514d6 = []byte{ + // 692 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcd, 0x6e, 0x1a, 0x3b, + 0x18, 0x86, 0x35, 0x24, 0xe1, 0xc7, 0x40, 0x42, 0x9c, 0xe4, 0x60, 0x25, 0x4a, 0x0e, 0xe2, 0x6c, + 0x90, 0x8e, 0xc2, 0x04, 0xd8, 0xb5, 0xaa, 0xd2, 0xd2, 0x44, 0x6a, 0x22, 0x35, 0x3f, 0x13, 0x75, + 0xd1, 0x6e, 0xdc, 0x61, 0xf8, 0x20, 0x06, 0xc6, 0x9e, 0x78, 0x4c, 0x9b, 0xec, 0xaa, 0xf6, 0x12, + 0x7a, 0x53, 0x5d, 0xf6, 0x12, 0x2a, 0xae, 0xa4, 0x1a, 0x1b, 0xe8, 0xd0, 0x40, 0xd8, 0x81, 0xbf, + 0xf7, 0x79, 0x9f, 0xb1, 0xad, 0x19, 0x84, 0xee, 0x7c, 0xc1, 0xab, 0x81, 0x14, 0x4a, 0xec, 0x66, + 0x82, 0x56, 0x6f, 0xfc, 0x73, 0x4b, 0xc1, 0x00, 0x7c, 0x50, 0xf2, 0x81, 0x2a, 0x11, 0x98, 0xc5, + 0x32, 0x43, 0xb9, 0xeb, 0x21, 0x0c, 0xe1, 0xad, 0xe0, 0x4c, 0x09, 0x89, 0xdf, 0xa3, 0xdd, 0xbb, + 0xe8, 0x3f, 0xf5, 0xcd, 0x02, 0xd5, 0x0c, 0x57, 0x94, 0xf1, 0x8e, 0x20, 0x56, 0x69, 0xa5, 0x92, + 0xad, 0x6f, 0x57, 0xe3, 0xc8, 0xa9, 0x09, 0x34, 0x93, 0xa3, 0xe3, 0x95, 0xc2, 0x97, 0x82, 0x53, + 0xbc, 0x7b, 0x3c, 0x3c, 0xe3, 0x1d, 0x51, 0xfe, 0x9e, 0x40, 0x5b, 0x73, 0x40, 0xfc, 0x1f, 0x4a, + 0xb1, 0x0e, 0xe5, 0xae, 0x0f, 0xc4, 0x2a, 0x25, 0x2a, 0x99, 0x26, 0x1a, 0x1d, 0x27, 0xc8, 0xea, + 0xd7, 0x97, 0x89, 0xb4, 0xe5, 0x24, 0x59, 0xe7, 0xc2, 0xf5, 0x01, 0xff, 0x8f, 0xd6, 0x03, 0x57, + 0x46, 0x0f, 0xe2, 0x82, 0xc9, 0x26, 0x4a, 0x56, 0x25, 0xd3, 0x5c, 0xd3, 0x59, 0x27, 0x67, 0x86, + 0xaf, 0x40, 0x87, 0xdf, 0xa1, 0xbd, 0xd9, 0x4d, 0x84, 0xca, 0x55, 0x21, 0x65, 0xbc, 0x2b, 0x21, + 0x0c, 0xc9, 0x4a, 0xc9, 0xaa, 0x64, 0xeb, 0xff, 0xcc, 0xec, 0xe2, 0x84, 0x49, 0xf0, 0x14, 0x13, + 0xdc, 0x21, 0xf1, 0xe7, 0xbf, 0x89, 0xc0, 0x33, 0xc3, 0xe1, 0x9b, 0xbf, 0xcf, 0xc6, 0xd4, 0x82, + 0x69, 0x5d, 0x7d, 0xb2, 0xb5, 0xf8, 0xa8, 0xf5, 0x54, 0x63, 0xe5, 0x3e, 0xda, 0x99, 0x4b, 0x60, + 0x07, 0x91, 0xf9, 0x9b, 0x98, 0xde, 0x03, 0x9e, 0x71, 0xe9, 0x52, 0x7d, 0x1e, 0x85, 0xb4, 0xb3, + 0x33, 0x67, 0x13, 0x1d, 0x51, 0xfe, 0x96, 0x42, 0x9b, 0x8f, 0x18, 0x5c, 0x41, 0x39, 0x63, 0xe2, + 0x43, 0xbf, 0x05, 0x52, 0xdf, 0x42, 0xbe, 0xb9, 0x66, 0x2e, 0x20, 0xab, 0x47, 0x17, 0x7a, 0x82, + 0x4b, 0x28, 0x6d, 0x92, 0xac, 0x4d, 0x12, 0xf1, 0x54, 0x4a, 0x2f, 0x9f, 0xb5, 0xf1, 0x09, 0xda, + 0x0b, 0xc0, 0xed, 0xd3, 0xd6, 0xb0, 0xd3, 0x01, 0x49, 0x85, 0xe7, 0x0d, 0x03, 0x97, 0x7b, 0x0f, + 0xb4, 0xf5, 0xa0, 0x20, 0x3a, 0xfa, 0x09, 0x54, 0xb2, 0x1c, 0x12, 0x25, 0x9b, 0x3a, 0x78, 0x39, + 0xc9, 0x35, 0xa3, 0x18, 0x7e, 0x83, 0xf6, 0xe7, 0xb7, 0x04, 0x20, 0x3d, 0xe0, 0x4a, 0x1f, 0xf6, + 0xb4, 0x67, 0x77, 0x4e, 0xcf, 0x95, 0x09, 0xe2, 0x7f, 0x51, 0x2a, 0x70, 0xbd, 0x3e, 0xa8, 0x90, + 0xac, 0x95, 0x12, 0x95, 0x55, 0xcd, 0x10, 0xcb, 0x99, 0xac, 0xe2, 0x7d, 0x94, 0x14, 0x9e, 0x8a, + 0xe6, 0xc9, 0xf8, 0x7c, 0xbc, 0x88, 0x6b, 0x68, 0x53, 0xb9, 0x6c, 0x40, 0xdb, 0x52, 0x04, 0x74, + 0xd2, 0x94, 0x8a, 0x27, 0x37, 0xa2, 0xf9, 0x89, 0x14, 0xc1, 0xd5, 0xb8, 0xd1, 0x46, 0x85, 0x3f, + 0xc8, 0xb8, 0x3b, 0x1d, 0x27, 0xd6, 0x27, 0xc4, 0xa5, 0x71, 0xbc, 0x40, 0x44, 0x42, 0x7b, 0x46, + 0x41, 0x3d, 0x31, 0x10, 0x92, 0x1e, 0x91, 0x4c, 0x1c, 0xdc, 0x96, 0xd0, 0x8e, 0x99, 0x5e, 0x47, + 0x99, 0x23, 0xfc, 0x1c, 0x15, 0xa7, 0xb8, 0xd1, 0x4d, 0x69, 0x14, 0xa7, 0xb7, 0xc6, 0xb4, 0xb1, + 0x8e, 0xe1, 0xc5, 0xee, 0x1a, 0xc9, 0x2e, 0x73, 0xd7, 0x16, 0xbb, 0x6b, 0x24, 0xb7, 0xc4, 0x5d, + 0x7b, 0xc2, 0x5d, 0x27, 0xf9, 0x65, 0xee, 0xfa, 0x62, 0x77, 0x9d, 0xac, 0x2f, 0x71, 0xd7, 0x9f, + 0x70, 0x37, 0xc8, 0xc6, 0x32, 0x77, 0x63, 0xb1, 0xbb, 0x41, 0x0a, 0x4b, 0xdc, 0x8d, 0x67, 0xe7, + 0x28, 0xdf, 0xe3, 0x81, 0xa4, 0xd1, 0x67, 0x9a, 0xc2, 0xbd, 0xc2, 0xc5, 0xea, 0xf9, 0x90, 0xb3, + 0x00, 0xe4, 0x05, 0xa8, 0xcf, 0x42, 0xf6, 0xc3, 0x1b, 0xe0, 0xa1, 0x90, 0x21, 0xd9, 0xd0, 0xdf, + 0x94, 0xfc, 0xcc, 0x7b, 0xee, 0x64, 0x23, 0xf8, 0xda, 0x17, 0xfc, 0xf4, 0x5e, 0x35, 0x3f, 0xfe, + 0x18, 0x1d, 0x58, 0x3f, 0x47, 0x07, 0xd6, 0xaf, 0xd1, 0x81, 0xf5, 0xc1, 0xe9, 0x32, 0x55, 0xed, + 0x99, 0xae, 0x2a, 0x07, 0x65, 0x33, 0x0f, 0x5a, 0x20, 0xbb, 0xf6, 0x2d, 0xb8, 0x03, 0x75, 0xdb, + 0x12, 0xea, 0x90, 0xf1, 0x2e, 0x84, 0xea, 0xb0, 0xa7, 0xd8, 0x21, 0x77, 0x15, 0xfb, 0x04, 0x76, + 0xd0, 0xef, 0xda, 0x3d, 0xc5, 0x6c, 0xb7, 0xed, 0x06, 0x0a, 0x64, 0x68, 0xd3, 0xde, 0x90, 0x8b, + 0xd0, 0x0e, 0xbd, 0x5b, 0xf0, 0xdd, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x09, 0xb1, 0xb2, 0x83, + 0x4e, 0x06, 0x00, 0x00, +} + +func (m *QueueMonitor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueueMonitor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueueMonitor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.QueueMonitorElementInfo) > 0 { + for iNdEx := len(m.QueueMonitorElementInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.QueueMonitorElementInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQmon(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueueMonitorElement) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueueMonitorElement) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueueMonitorElement) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.QueueMonitorStatsEgress != nil { + { + size, err := m.QueueMonitorStatsEgress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQmon(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.QueueMonitorStatsIngress != nil { + { + size, err := m.QueueMonitorStatsIngress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQmon(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintQmon(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x12 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintQmon(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueueMonitorDirection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueueMonitorDirection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueueMonitorDirection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.QueueMonitorStatsInfo) > 0 { + for iNdEx := len(m.QueueMonitorStatsInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.QueueMonitorStatsInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQmon(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueueMonitorStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueueMonitorStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueueMonitorStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RedDropOctetsColor_3 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_3") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropOctetsColor_3)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if m.RedDropPacketsColor_3 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_3") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropPacketsColor_3)) + i-- + dAtA[i] = 0x78 + } + if m.RedDropOctetsColor_2 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_2") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropOctetsColor_2)) + i-- + dAtA[i] = 0x70 + } + if m.RedDropPacketsColor_2 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_2") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropPacketsColor_2)) + i-- + dAtA[i] = 0x68 + } + if m.RedDropOctetsColor_1 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_1") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropOctetsColor_1)) + i-- + dAtA[i] = 0x60 + } + if m.RedDropPacketsColor_1 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_1") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropPacketsColor_1)) + i-- + dAtA[i] = 0x58 + } + if m.RedDropOctetsColor_0 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_0") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropOctetsColor_0)) + i-- + dAtA[i] = 0x50 + } + if m.RedDropPacketsColor_0 == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_0") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.RedDropPacketsColor_0)) + i-- + dAtA[i] = 0x48 + } + if m.TailDropOctets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("tail_drop_octets") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.TailDropOctets)) + i-- + dAtA[i] = 0x40 + } + if m.TailDropPackets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("tail_drop_packets") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.TailDropPackets)) + i-- + dAtA[i] = 0x38 + } + if m.Octets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("octets") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.Octets)) + i-- + dAtA[i] = 0x30 + } + if m.Packets == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("packets") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x28 + } + if m.PeakBufferOccupancyPercent != nil { + i = encodeVarintQmon(dAtA, i, uint64(*m.PeakBufferOccupancyPercent)) + i-- + dAtA[i] = 0x20 + } + if m.PeakBufferOccupancyBytes == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("peak_buffer_occupancy_bytes") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.PeakBufferOccupancyBytes)) + i-- + dAtA[i] = 0x18 + } + if m.QueueId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("queue_id") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.QueueId)) + i-- + dAtA[i] = 0x10 + } + if m.QueueNumber == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("queue_number") + } else { + i = encodeVarintQmon(dAtA, i, uint64(*m.QueueNumber)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintQmon(dAtA []byte, offset int, v uint64) int { + offset -= sovQmon(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueueMonitor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.QueueMonitorElementInfo) > 0 { + for _, e := range m.QueueMonitorElementInfo { + l = e.Size() + n += 1 + l + sovQmon(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QueueMonitorElement) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovQmon(uint64(l)) + } + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 1 + l + sovQmon(uint64(l)) + } + if m.QueueMonitorStatsIngress != nil { + l = m.QueueMonitorStatsIngress.Size() + n += 1 + l + sovQmon(uint64(l)) + } + if m.QueueMonitorStatsEgress != nil { + l = m.QueueMonitorStatsEgress.Size() + n += 1 + l + sovQmon(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QueueMonitorDirection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.QueueMonitorStatsInfo) > 0 { + for _, e := range m.QueueMonitorStatsInfo { + l = e.Size() + n += 1 + l + sovQmon(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *QueueMonitorStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.QueueNumber != nil { + n += 1 + sovQmon(uint64(*m.QueueNumber)) + } + if m.QueueId != nil { + n += 1 + sovQmon(uint64(*m.QueueId)) + } + if m.PeakBufferOccupancyBytes != nil { + n += 1 + sovQmon(uint64(*m.PeakBufferOccupancyBytes)) + } + if m.PeakBufferOccupancyPercent != nil { + n += 1 + sovQmon(uint64(*m.PeakBufferOccupancyPercent)) + } + if m.Packets != nil { + n += 1 + sovQmon(uint64(*m.Packets)) + } + if m.Octets != nil { + n += 1 + sovQmon(uint64(*m.Octets)) + } + if m.TailDropPackets != nil { + n += 1 + sovQmon(uint64(*m.TailDropPackets)) + } + if m.TailDropOctets != nil { + n += 1 + sovQmon(uint64(*m.TailDropOctets)) + } + if m.RedDropPacketsColor_0 != nil { + n += 1 + sovQmon(uint64(*m.RedDropPacketsColor_0)) + } + if m.RedDropOctetsColor_0 != nil { + n += 1 + sovQmon(uint64(*m.RedDropOctetsColor_0)) + } + if m.RedDropPacketsColor_1 != nil { + n += 1 + sovQmon(uint64(*m.RedDropPacketsColor_1)) + } + if m.RedDropOctetsColor_1 != nil { + n += 1 + sovQmon(uint64(*m.RedDropOctetsColor_1)) + } + if m.RedDropPacketsColor_2 != nil { + n += 1 + sovQmon(uint64(*m.RedDropPacketsColor_2)) + } + if m.RedDropOctetsColor_2 != nil { + n += 1 + sovQmon(uint64(*m.RedDropOctetsColor_2)) + } + if m.RedDropPacketsColor_3 != nil { + n += 1 + sovQmon(uint64(*m.RedDropPacketsColor_3)) + } + if m.RedDropOctetsColor_3 != nil { + n += 2 + sovQmon(uint64(*m.RedDropOctetsColor_3)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovQmon(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQmon(x uint64) (n int) { + return sovQmon(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueueMonitor) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueueMonitor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueueMonitor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueMonitorElementInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQmon + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQmon + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueueMonitorElementInfo = append(m.QueueMonitorElementInfo, &QueueMonitorElement{}) + if err := m.QueueMonitorElementInfo[len(m.QueueMonitorElementInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQmon(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueueMonitorElement) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueueMonitorElement: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueueMonitorElement: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQmon + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQmon + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQmon + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQmon + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueMonitorStatsIngress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQmon + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQmon + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.QueueMonitorStatsIngress == nil { + m.QueueMonitorStatsIngress = &QueueMonitorDirection{} + } + if err := m.QueueMonitorStatsIngress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueMonitorStatsEgress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQmon + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQmon + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.QueueMonitorStatsEgress == nil { + m.QueueMonitorStatsEgress = &QueueMonitorDirection{} + } + if err := m.QueueMonitorStatsEgress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQmon(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueueMonitorDirection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueueMonitorDirection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueueMonitorDirection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueMonitorStatsInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQmon + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQmon + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueueMonitorStatsInfo = append(m.QueueMonitorStatsInfo, &QueueMonitorStats{}) + if err := m.QueueMonitorStatsInfo[len(m.QueueMonitorStatsInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQmon(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueueMonitorStats) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueueMonitorStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueueMonitorStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueNumber = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueueId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueueId = &v + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeakBufferOccupancyBytes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeakBufferOccupancyBytes = &v + hasFields[0] |= uint64(0x00000004) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeakBufferOccupancyPercent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeakBufferOccupancyPercent = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + hasFields[0] |= uint64(0x00000008) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Octets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Octets = &v + hasFields[0] |= uint64(0x00000010) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TailDropPackets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TailDropPackets = &v + hasFields[0] |= uint64(0x00000020) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TailDropOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TailDropOctets = &v + hasFields[0] |= uint64(0x00000040) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropPacketsColor_0", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropPacketsColor_0 = &v + hasFields[0] |= uint64(0x00000080) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropOctetsColor_0", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropOctetsColor_0 = &v + hasFields[0] |= uint64(0x00000100) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropPacketsColor_1", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropPacketsColor_1 = &v + hasFields[0] |= uint64(0x00000200) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropOctetsColor_1", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropOctetsColor_1 = &v + hasFields[0] |= uint64(0x00000400) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropPacketsColor_2", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropPacketsColor_2 = &v + hasFields[0] |= uint64(0x00000800) + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropOctetsColor_2", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropOctetsColor_2 = &v + hasFields[0] |= uint64(0x00001000) + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropPacketsColor_3", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropPacketsColor_3 = &v + hasFields[0] |= uint64(0x00002000) + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RedDropOctetsColor_3", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQmon + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RedDropOctetsColor_3 = &v + hasFields[0] |= uint64(0x00004000) + default: + iNdEx = preIndex + skippy, err := skipQmon(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQmon + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("queue_number") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("queue_id") + } + if hasFields[0]&uint64(0x00000004) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("peak_buffer_occupancy_bytes") + } + if hasFields[0]&uint64(0x00000008) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("packets") + } + if hasFields[0]&uint64(0x00000010) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("octets") + } + if hasFields[0]&uint64(0x00000020) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("tail_drop_packets") + } + if hasFields[0]&uint64(0x00000040) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("tail_drop_octets") + } + if hasFields[0]&uint64(0x00000080) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_0") + } + if hasFields[0]&uint64(0x00000100) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_0") + } + if hasFields[0]&uint64(0x00000200) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_1") + } + if hasFields[0]&uint64(0x00000400) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_1") + } + if hasFields[0]&uint64(0x00000800) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_2") + } + if hasFields[0]&uint64(0x00001000) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_2") + } + if hasFields[0]&uint64(0x00002000) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_packets_color_3") + } + if hasFields[0]&uint64(0x00004000) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("red_drop_octets_color_3") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQmon(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQmon + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQmon + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQmon + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQmon + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQmon + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQmon + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQmon = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQmon = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQmon = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/qmon.proto b/schema/qmon.proto new file mode 100755 index 0000000..5d65a77 --- /dev/null +++ b/schema/qmon.proto @@ -0,0 +1,79 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "pbj.proto"; + +import "telemetry_top.proto"; + +message QueueMonitor { + repeated QueueMonitorElement queue_monitor_element_info = 1 + [(pbj_field_option).max_count = 2048]; +} + +// QueueMonitorElement for an interface +message QueueMonitorElement { + // interface name + required string if_name = 1 [(telemetry_options).is_key = true, + (pbj_field_option).type = FT_POINTER]; + + // parent ae interface name + optional string parent_ae_name = 2 [(pbj_field_option).type = FT_POINTER]; + + // ingress stats + optional QueueMonitorDirection + queue_monitor_stats_ingress = 3; + + // egress stats + optional QueueMonitorDirection + queue_monitor_stats_egress = 4; +} + +message QueueMonitorDirection { + repeated QueueMonitorStats + queue_monitor_stats_info = 1 [(pbj_field_option).max_count = 8]; +} + +// QueueMonitorStats for a queue +message QueueMonitorStats { + // queue number, 0-7 + required uint32 queue_number = 1 [(telemetry_options).is_key = true]; + + // queue id, 0-max(16k for version 1) + required uint32 queue_id = 2 [(telemetry_options).is_key = true]; + + // peak_buffer_occupancy in bytes + required uint32 peak_buffer_occupancy_bytes = 3 [(telemetry_options).is_gauge = true]; + + // (peak_buffer_occupancy/max_queue_size) * 100 + optional uint32 peak_buffer_occupancy_percent = 4 [(telemetry_options).is_gauge = true]; + + // Count of packets/bytes forwarded + required uint64 packets = 5 [(telemetry_options).is_counter = true]; + required uint64 octets = 6 [(telemetry_options).is_counter = true]; + + // Count of packets/bytes due to dropped tail/force/error + required uint64 tail_drop_packets = 7 [(telemetry_options).is_counter = true]; + required uint64 tail_drop_octets = 8 [(telemetry_options).is_counter = true]; + + // Count of packets/bytes due to WRED color 0 + required uint64 red_drop_packets_color_0 = 9 [(telemetry_options).is_counter = true]; + required uint64 red_drop_octets_color_0 = 10 [(telemetry_options).is_counter = true]; + + // Count of packets/bytes due to WRED color 1 + required uint64 red_drop_packets_color_1 = 11 [(telemetry_options).is_counter = true]; + required uint64 red_drop_octets_color_1 = 12 [(telemetry_options).is_counter = true]; + + // Count of packets/bytes due to WRED color 2 + required uint64 red_drop_packets_color_2 = 13 [(telemetry_options).is_counter = true]; + required uint64 red_drop_octets_color_2 = 14 [(telemetry_options).is_counter = true]; + + // Count of packets/bytes due to WRED color 3 + required uint64 red_drop_packets_color_3 = 15 [(telemetry_options).is_counter = true]; + required uint64 red_drop_octets_color_3 = 16 [(telemetry_options).is_counter = true]; +} + +// +// this occupies branch 15 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional QueueMonitor jnpr_qmon_ext = 15; +} diff --git a/schema/rmopd_render.pb.go b/schema/rmopd_render.pb.go new file mode 100644 index 0000000..d69bfaa --- /dev/null +++ b/schema/rmopd_render.pb.go @@ -0,0 +1,15694 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rmopd_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Junos struct { + Rpm *JunosRpmType `protobuf:"bytes,151,opt,name=rpm" json:"rpm,omitempty"` + Twamp *JunosTwampType `protobuf:"bytes,152,opt,name=twamp" json:"twamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Junos) Reset() { *m = Junos{} } +func (m *Junos) String() string { return proto.CompactTextString(m) } +func (*Junos) ProtoMessage() {} +func (*Junos) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0} +} +func (m *Junos) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Junos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Junos.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Junos) XXX_Merge(src proto.Message) { + xxx_messageInfo_Junos.Merge(m, src) +} +func (m *Junos) XXX_Size() int { + return m.Size() +} +func (m *Junos) XXX_DiscardUnknown() { + xxx_messageInfo_Junos.DiscardUnknown(m) +} + +var xxx_messageInfo_Junos proto.InternalMessageInfo + +func (m *Junos) GetRpm() *JunosRpmType { + if m != nil { + return m.Rpm + } + return nil +} + +func (m *Junos) GetTwamp() *JunosTwampType { + if m != nil { + return m.Twamp + } + return nil +} + +type JunosRpmType struct { + ProbeResults *JunosRpmTypeProbeResultsType `protobuf:"bytes,151,opt,name=probe_results,json=probeResults" json:"probe_results,omitempty"` + HistoryResults *JunosRpmTypeHistoryResultsType `protobuf:"bytes,152,opt,name=history_results,json=historyResults" json:"history_results,omitempty"` + Server *JunosRpmTypeServerType `protobuf:"bytes,153,opt,name=server" json:"server,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmType) Reset() { *m = JunosRpmType{} } +func (m *JunosRpmType) String() string { return proto.CompactTextString(m) } +func (*JunosRpmType) ProtoMessage() {} +func (*JunosRpmType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0} +} +func (m *JunosRpmType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmType.Merge(m, src) +} +func (m *JunosRpmType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmType proto.InternalMessageInfo + +func (m *JunosRpmType) GetProbeResults() *JunosRpmTypeProbeResultsType { + if m != nil { + return m.ProbeResults + } + return nil +} + +func (m *JunosRpmType) GetHistoryResults() *JunosRpmTypeHistoryResultsType { + if m != nil { + return m.HistoryResults + } + return nil +} + +func (m *JunosRpmType) GetServer() *JunosRpmTypeServerType { + if m != nil { + return m.Server + } + return nil +} + +type JunosRpmTypeProbeResultsType struct { + ProbeTestResults []*JunosRpmTypeProbeResultsTypeProbeTestResultsList `protobuf:"bytes,151,rep,name=probe_test_results,json=probeTestResults" json:"probe_test_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeProbeResultsType) Reset() { *m = JunosRpmTypeProbeResultsType{} } +func (m *JunosRpmTypeProbeResultsType) String() string { return proto.CompactTextString(m) } +func (*JunosRpmTypeProbeResultsType) ProtoMessage() {} +func (*JunosRpmTypeProbeResultsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 0} +} +func (m *JunosRpmTypeProbeResultsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeProbeResultsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeProbeResultsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeProbeResultsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeProbeResultsType.Merge(m, src) +} +func (m *JunosRpmTypeProbeResultsType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeProbeResultsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeProbeResultsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeProbeResultsType proto.InternalMessageInfo + +func (m *JunosRpmTypeProbeResultsType) GetProbeTestResults() []*JunosRpmTypeProbeResultsTypeProbeTestResultsList { + if m != nil { + return m.ProbeTestResults + } + return nil +} + +type JunosRpmTypeProbeResultsTypeProbeTestResultsList struct { + Owner *string `protobuf:"bytes,51,opt,name=owner" json:"owner,omitempty"` + TestName *string `protobuf:"bytes,52,opt,name=test_name,json=testName" json:"test_name,omitempty"` + TargetAddress *string `protobuf:"bytes,53,opt,name=target_address,json=targetAddress" json:"target_address,omitempty"` + TargetUrl *string `protobuf:"bytes,54,opt,name=target_url,json=targetUrl" json:"target_url,omitempty"` + SourceAddress *string `protobuf:"bytes,55,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` + DestinationInterface *string `protobuf:"bytes,56,opt,name=destination_interface,json=destinationInterface" json:"destination_interface,omitempty"` + ProbeType *string `protobuf:"bytes,57,opt,name=probe_type,json=probeType" json:"probe_type,omitempty"` + IcmpId *uint32 `protobuf:"varint,58,opt,name=icmp_id,json=icmpId" json:"icmp_id,omitempty"` + TestSize *uint32 `protobuf:"varint,59,opt,name=test_size,json=testSize" json:"test_size,omitempty"` + HttpStatus *uint32 `protobuf:"varint,60,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` + RoutingInstanceName *string `protobuf:"bytes,61,opt,name=routing_instance_name,json=routingInstanceName" json:"routing_instance_name,omitempty"` + RttThresh *uint32 `protobuf:"varint,62,opt,name=rtt_thresh,json=rttThresh" json:"rtt_thresh,omitempty"` + RttJitterThresh *uint32 `protobuf:"varint,63,opt,name=rtt_jitter_thresh,json=rttJitterThresh" json:"rtt_jitter_thresh,omitempty"` + RttStddevThresh *uint32 `protobuf:"varint,64,opt,name=rtt_stddev_thresh,json=rttStddevThresh" json:"rtt_stddev_thresh,omitempty"` + IgrThresh *uint32 `protobuf:"varint,65,opt,name=igr_thresh,json=igrThresh" json:"igr_thresh,omitempty"` + IgrJitterThresh *uint32 `protobuf:"varint,66,opt,name=igr_jitter_thresh,json=igrJitterThresh" json:"igr_jitter_thresh,omitempty"` + IgrStddevThresh *uint32 `protobuf:"varint,67,opt,name=igr_stddev_thresh,json=igrStddevThresh" json:"igr_stddev_thresh,omitempty"` + EgrThresh *uint32 `protobuf:"varint,68,opt,name=egr_thresh,json=egrThresh" json:"egr_thresh,omitempty"` + EgrJitterThresh *uint32 `protobuf:"varint,69,opt,name=egr_jitter_thresh,json=egrJitterThresh" json:"egr_jitter_thresh,omitempty"` + EgrStddevThresh *uint32 `protobuf:"varint,70,opt,name=egr_stddev_thresh,json=egrStddevThresh" json:"egr_stddev_thresh,omitempty"` + ProbeTestsHwTsErr *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType `protobuf:"bytes,151,opt,name=probe_tests_hw_ts_err,json=probeTestsHwTsErr" json:"probe_tests_hw_ts_err,omitempty"` + ProbeSingleResults *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType `protobuf:"bytes,152,opt,name=probe_single_results,json=probeSingleResults" json:"probe_single_results,omitempty"` + ProbeTestGenericResults []*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList `protobuf:"bytes,153,rep,name=probe_test_generic_results,json=probeTestGenericResults" json:"probe_test_generic_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) Reset() { + *m = JunosRpmTypeProbeResultsTypeProbeTestResultsList{} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsList) ProtoMessage() {} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 0, 0} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsList.Merge(m, src) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsList proto.InternalMessageInfo + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetOwner() string { + if m != nil && m.Owner != nil { + return *m.Owner + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetTestName() string { + if m != nil && m.TestName != nil { + return *m.TestName + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetTargetAddress() string { + if m != nil && m.TargetAddress != nil { + return *m.TargetAddress + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetTargetUrl() string { + if m != nil && m.TargetUrl != nil { + return *m.TargetUrl + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetSourceAddress() string { + if m != nil && m.SourceAddress != nil { + return *m.SourceAddress + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetDestinationInterface() string { + if m != nil && m.DestinationInterface != nil { + return *m.DestinationInterface + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetProbeType() string { + if m != nil && m.ProbeType != nil { + return *m.ProbeType + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetIcmpId() uint32 { + if m != nil && m.IcmpId != nil { + return *m.IcmpId + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetTestSize() uint32 { + if m != nil && m.TestSize != nil { + return *m.TestSize + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetHttpStatus() uint32 { + if m != nil && m.HttpStatus != nil { + return *m.HttpStatus + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetRoutingInstanceName() string { + if m != nil && m.RoutingInstanceName != nil { + return *m.RoutingInstanceName + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetRttThresh() uint32 { + if m != nil && m.RttThresh != nil { + return *m.RttThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetRttJitterThresh() uint32 { + if m != nil && m.RttJitterThresh != nil { + return *m.RttJitterThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetRttStddevThresh() uint32 { + if m != nil && m.RttStddevThresh != nil { + return *m.RttStddevThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetIgrThresh() uint32 { + if m != nil && m.IgrThresh != nil { + return *m.IgrThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetIgrJitterThresh() uint32 { + if m != nil && m.IgrJitterThresh != nil { + return *m.IgrJitterThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetIgrStddevThresh() uint32 { + if m != nil && m.IgrStddevThresh != nil { + return *m.IgrStddevThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetEgrThresh() uint32 { + if m != nil && m.EgrThresh != nil { + return *m.EgrThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetEgrJitterThresh() uint32 { + if m != nil && m.EgrJitterThresh != nil { + return *m.EgrJitterThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetEgrStddevThresh() uint32 { + if m != nil && m.EgrStddevThresh != nil { + return *m.EgrStddevThresh + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetProbeTestsHwTsErr() *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType { + if m != nil { + return m.ProbeTestsHwTsErr + } + return nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetProbeSingleResults() *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType { + if m != nil { + return m.ProbeSingleResults + } + return nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) GetProbeTestGenericResults() []*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList { + if m != nil { + return m.ProbeTestGenericResults + } + return nil +} + +type JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType struct { + InvalidClientRecvTsCntr *uint32 `protobuf:"varint,51,opt,name=invalid_client_recv_ts_cntr,json=invalidClientRecvTsCntr" json:"invalid_client_recv_ts_cntr,omitempty"` + InvalidClientNotsCntr *uint32 `protobuf:"varint,52,opt,name=invalid_client_nots_cntr,json=invalidClientNotsCntr" json:"invalid_client_nots_cntr,omitempty"` + InvalidServerSendTsCntr *uint32 `protobuf:"varint,53,opt,name=invalid_server_send_ts_cntr,json=invalidServerSendTsCntr" json:"invalid_server_send_ts_cntr,omitempty"` + InvalidServerSpentTimeCntr *uint32 `protobuf:"varint,54,opt,name=invalid_server_spent_time_cntr,json=invalidServerSpentTimeCntr" json:"invalid_server_spent_time_cntr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) Reset() { + *m = JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType{} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) ProtoMessage() {} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 0, 0, 0} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType.Merge(m, src) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType proto.InternalMessageInfo + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidClientRecvTsCntr() uint32 { + if m != nil && m.InvalidClientRecvTsCntr != nil { + return *m.InvalidClientRecvTsCntr + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidClientNotsCntr() uint32 { + if m != nil && m.InvalidClientNotsCntr != nil { + return *m.InvalidClientNotsCntr + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidServerSendTsCntr() uint32 { + if m != nil && m.InvalidServerSendTsCntr != nil { + return *m.InvalidServerSendTsCntr + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidServerSpentTimeCntr() uint32 { + if m != nil && m.InvalidServerSpentTimeCntr != nil { + return *m.InvalidServerSpentTimeCntr + } + return 0 +} + +type JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType struct { + ProbeTime *string `protobuf:"bytes,51,opt,name=probe_time,json=probeTime" json:"probe_time,omitempty"` + ProbeSentTime *string `protobuf:"bytes,52,opt,name=probe_sent_time,json=probeSentTime" json:"probe_sent_time,omitempty"` + ProbeStatus *string `protobuf:"bytes,53,opt,name=probe_status,json=probeStatus" json:"probe_status,omitempty"` + HardwareTimestampStatus *string `protobuf:"bytes,54,opt,name=hardware_timestamp_status,json=hardwareTimestampStatus" json:"hardware_timestamp_status,omitempty"` + Rtt *uint32 `protobuf:"varint,55,opt,name=rtt" json:"rtt,omitempty"` + Egress *uint32 `protobuf:"varint,56,opt,name=egress" json:"egress,omitempty"` + Ingress *uint32 `protobuf:"varint,57,opt,name=ingress" json:"ingress,omitempty"` + EgressJitter *int32 `protobuf:"varint,58,opt,name=egress_jitter,json=egressJitter" json:"egress_jitter,omitempty"` + IngressJitter *int32 `protobuf:"varint,59,opt,name=ingress_jitter,json=ingressJitter" json:"ingress_jitter,omitempty"` + RoundTripJitter *int32 `protobuf:"varint,60,opt,name=round_trip_jitter,json=roundTripJitter" json:"round_trip_jitter,omitempty"` + EgressInterarrivalJitter *int32 `protobuf:"varint,61,opt,name=egress_interarrival_jitter,json=egressInterarrivalJitter" json:"egress_interarrival_jitter,omitempty"` + IngressInterarrivalJitter *int32 `protobuf:"varint,62,opt,name=ingress_interarrival_jitter,json=ingressInterarrivalJitter" json:"ingress_interarrival_jitter,omitempty"` + RoundTripInterarrivalJitter *int32 `protobuf:"varint,63,opt,name=round_trip_interarrival_jitter,json=roundTripInterarrivalJitter" json:"round_trip_interarrival_jitter,omitempty"` + HttpStatus *uint32 `protobuf:"varint,64,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) Reset() { + *m = JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType{} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) ProtoMessage() {} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 0, 0, 1} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType.Merge(m, src) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType proto.InternalMessageInfo + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetProbeTime() string { + if m != nil && m.ProbeTime != nil { + return *m.ProbeTime + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetProbeSentTime() string { + if m != nil && m.ProbeSentTime != nil { + return *m.ProbeSentTime + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetProbeStatus() string { + if m != nil && m.ProbeStatus != nil { + return *m.ProbeStatus + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetHardwareTimestampStatus() string { + if m != nil && m.HardwareTimestampStatus != nil { + return *m.HardwareTimestampStatus + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetRtt() uint32 { + if m != nil && m.Rtt != nil { + return *m.Rtt + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetEgress() uint32 { + if m != nil && m.Egress != nil { + return *m.Egress + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetIngress() uint32 { + if m != nil && m.Ingress != nil { + return *m.Ingress + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetEgressJitter() int32 { + if m != nil && m.EgressJitter != nil { + return *m.EgressJitter + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetIngressJitter() int32 { + if m != nil && m.IngressJitter != nil { + return *m.IngressJitter + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetRoundTripJitter() int32 { + if m != nil && m.RoundTripJitter != nil { + return *m.RoundTripJitter + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetEgressInterarrivalJitter() int32 { + if m != nil && m.EgressInterarrivalJitter != nil { + return *m.EgressInterarrivalJitter + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetIngressInterarrivalJitter() int32 { + if m != nil && m.IngressInterarrivalJitter != nil { + return *m.IngressInterarrivalJitter + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetRoundTripInterarrivalJitter() int32 { + if m != nil && m.RoundTripInterarrivalJitter != nil { + return *m.RoundTripInterarrivalJitter + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) GetHttpStatus() uint32 { + if m != nil && m.HttpStatus != nil { + return *m.HttpStatus + } + return 0 +} + +type JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList struct { + ResultsScope *string `protobuf:"bytes,51,opt,name=results_scope,json=resultsScope" json:"results_scope,omitempty"` + ProbesSent *uint32 `protobuf:"varint,52,opt,name=probes_sent,json=probesSent" json:"probes_sent,omitempty"` + ProbeResponses *uint32 `protobuf:"varint,53,opt,name=probe_responses,json=probeResponses" json:"probe_responses,omitempty"` + LossPercentage *uint32 `protobuf:"varint,54,opt,name=loss_percentage,json=lossPercentage" json:"loss_percentage,omitempty"` + LastTestTime *string `protobuf:"bytes,55,opt,name=last_test_time,json=lastTestTime" json:"last_test_time,omitempty"` + ProbeTestGenericMeasurements []*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList `protobuf:"bytes,151,rep,name=probe_test_generic_measurements,json=probeTestGenericMeasurements" json:"probe_test_generic_measurements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) Reset() { + *m = JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList{} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) ProtoMessage() {} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 0, 0, 2} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList.Merge(m, src) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList proto.InternalMessageInfo + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) GetResultsScope() string { + if m != nil && m.ResultsScope != nil { + return *m.ResultsScope + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) GetProbesSent() uint32 { + if m != nil && m.ProbesSent != nil { + return *m.ProbesSent + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) GetProbeResponses() uint32 { + if m != nil && m.ProbeResponses != nil { + return *m.ProbeResponses + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) GetLossPercentage() uint32 { + if m != nil && m.LossPercentage != nil { + return *m.LossPercentage + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) GetLastTestTime() string { + if m != nil && m.LastTestTime != nil { + return *m.LastTestTime + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) GetProbeTestGenericMeasurements() []*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList { + if m != nil { + return m.ProbeTestGenericMeasurements + } + return nil +} + +type JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList struct { + ProbeMeasurementType *string `protobuf:"bytes,51,opt,name=probe_measurement_type,json=probeMeasurementType" json:"probe_measurement_type,omitempty"` + Samples *uint32 `protobuf:"varint,52,opt,name=samples" json:"samples,omitempty"` + MinDelay *uint32 `protobuf:"varint,53,opt,name=min_delay,json=minDelay" json:"min_delay,omitempty"` + MaxDelay *uint32 `protobuf:"varint,54,opt,name=max_delay,json=maxDelay" json:"max_delay,omitempty"` + AvgDelay *uint32 `protobuf:"varint,55,opt,name=avg_delay,json=avgDelay" json:"avg_delay,omitempty"` + JitterDelay *uint32 `protobuf:"varint,56,opt,name=jitter_delay,json=jitterDelay" json:"jitter_delay,omitempty"` + StddevDelay *uint64 `protobuf:"varint,57,opt,name=stddev_delay,json=stddevDelay" json:"stddev_delay,omitempty"` + SumDelay *uint64 `protobuf:"varint,58,opt,name=sum_delay,json=sumDelay" json:"sum_delay,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Reset() { + *m = JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList{} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) ProtoMessage() { +} +func (*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 0, 0, 2, 0} +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList.Merge(m, src) +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList proto.InternalMessageInfo + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetProbeMeasurementType() string { + if m != nil && m.ProbeMeasurementType != nil { + return *m.ProbeMeasurementType + } + return "" +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetSamples() uint32 { + if m != nil && m.Samples != nil { + return *m.Samples + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetMinDelay() uint32 { + if m != nil && m.MinDelay != nil { + return *m.MinDelay + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetMaxDelay() uint32 { + if m != nil && m.MaxDelay != nil { + return *m.MaxDelay + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetAvgDelay() uint32 { + if m != nil && m.AvgDelay != nil { + return *m.AvgDelay + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetJitterDelay() uint32 { + if m != nil && m.JitterDelay != nil { + return *m.JitterDelay + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetStddevDelay() uint64 { + if m != nil && m.StddevDelay != nil { + return *m.StddevDelay + } + return 0 +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetSumDelay() uint64 { + if m != nil && m.SumDelay != nil { + return *m.SumDelay + } + return 0 +} + +type JunosRpmTypeHistoryResultsType struct { + HistoryTestResults []*JunosRpmTypeHistoryResultsTypeHistoryTestResultsList `protobuf:"bytes,151,rep,name=history_test_results,json=historyTestResults" json:"history_test_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeHistoryResultsType) Reset() { *m = JunosRpmTypeHistoryResultsType{} } +func (m *JunosRpmTypeHistoryResultsType) String() string { return proto.CompactTextString(m) } +func (*JunosRpmTypeHistoryResultsType) ProtoMessage() {} +func (*JunosRpmTypeHistoryResultsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 1} +} +func (m *JunosRpmTypeHistoryResultsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeHistoryResultsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeHistoryResultsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeHistoryResultsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeHistoryResultsType.Merge(m, src) +} +func (m *JunosRpmTypeHistoryResultsType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeHistoryResultsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeHistoryResultsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeHistoryResultsType proto.InternalMessageInfo + +func (m *JunosRpmTypeHistoryResultsType) GetHistoryTestResults() []*JunosRpmTypeHistoryResultsTypeHistoryTestResultsList { + if m != nil { + return m.HistoryTestResults + } + return nil +} + +type JunosRpmTypeHistoryResultsTypeHistoryTestResultsList struct { + HistorySingleTestResults []*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList `protobuf:"bytes,151,rep,name=history_single_test_results,json=historySingleTestResults" json:"history_single_test_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) Reset() { + *m = JunosRpmTypeHistoryResultsTypeHistoryTestResultsList{} +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) ProtoMessage() {} +func (*JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 1, 0} +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsList.Merge(m, src) +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsList proto.InternalMessageInfo + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) GetHistorySingleTestResults() []*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList { + if m != nil { + return m.HistorySingleTestResults + } + return nil +} + +type JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList struct { + Owner *string `protobuf:"bytes,51,opt,name=owner" json:"owner,omitempty"` + TestName *string `protobuf:"bytes,52,opt,name=test_name,json=testName" json:"test_name,omitempty"` + TargetAddress *string `protobuf:"bytes,53,opt,name=target_address,json=targetAddress" json:"target_address,omitempty"` + TargetUrl *string `protobuf:"bytes,54,opt,name=target_url,json=targetUrl" json:"target_url,omitempty"` + SourceAddress *string `protobuf:"bytes,55,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` + DestinationInterface *string `protobuf:"bytes,56,opt,name=destination_interface,json=destinationInterface" json:"destination_interface,omitempty"` + ProbeType *string `protobuf:"bytes,57,opt,name=probe_type,json=probeType" json:"probe_type,omitempty"` + IcmpId *uint32 `protobuf:"varint,58,opt,name=icmp_id,json=icmpId" json:"icmp_id,omitempty"` + TestSize *uint32 `protobuf:"varint,59,opt,name=test_size,json=testSize" json:"test_size,omitempty"` + HttpStatus *uint32 `protobuf:"varint,60,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` + RoutingInstanceName *string `protobuf:"bytes,61,opt,name=routing_instance_name,json=routingInstanceName" json:"routing_instance_name,omitempty"` + RttThresh *uint32 `protobuf:"varint,62,opt,name=rtt_thresh,json=rttThresh" json:"rtt_thresh,omitempty"` + RttJitterThresh *uint32 `protobuf:"varint,63,opt,name=rtt_jitter_thresh,json=rttJitterThresh" json:"rtt_jitter_thresh,omitempty"` + RttStddevThresh *uint32 `protobuf:"varint,64,opt,name=rtt_stddev_thresh,json=rttStddevThresh" json:"rtt_stddev_thresh,omitempty"` + IgrThresh *uint32 `protobuf:"varint,65,opt,name=igr_thresh,json=igrThresh" json:"igr_thresh,omitempty"` + IgrJitterThresh *uint32 `protobuf:"varint,66,opt,name=igr_jitter_thresh,json=igrJitterThresh" json:"igr_jitter_thresh,omitempty"` + IgrStddevThresh *uint32 `protobuf:"varint,67,opt,name=igr_stddev_thresh,json=igrStddevThresh" json:"igr_stddev_thresh,omitempty"` + EgrThresh *uint32 `protobuf:"varint,68,opt,name=egr_thresh,json=egrThresh" json:"egr_thresh,omitempty"` + EgrJitterThresh *uint32 `protobuf:"varint,69,opt,name=egr_jitter_thresh,json=egrJitterThresh" json:"egr_jitter_thresh,omitempty"` + EgrStddevThresh *uint32 `protobuf:"varint,70,opt,name=egr_stddev_thresh,json=egrStddevThresh" json:"egr_stddev_thresh,omitempty"` + ProbeSingleResults *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType `protobuf:"bytes,151,opt,name=probe_single_results,json=probeSingleResults" json:"probe_single_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) Reset() { + *m = JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList{} +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) ProtoMessage() { +} +func (*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 1, 0, 0} +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList.Merge(m, src) +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList proto.InternalMessageInfo + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetOwner() string { + if m != nil && m.Owner != nil { + return *m.Owner + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetTestName() string { + if m != nil && m.TestName != nil { + return *m.TestName + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetTargetAddress() string { + if m != nil && m.TargetAddress != nil { + return *m.TargetAddress + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetTargetUrl() string { + if m != nil && m.TargetUrl != nil { + return *m.TargetUrl + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetSourceAddress() string { + if m != nil && m.SourceAddress != nil { + return *m.SourceAddress + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetDestinationInterface() string { + if m != nil && m.DestinationInterface != nil { + return *m.DestinationInterface + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetProbeType() string { + if m != nil && m.ProbeType != nil { + return *m.ProbeType + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetIcmpId() uint32 { + if m != nil && m.IcmpId != nil { + return *m.IcmpId + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetTestSize() uint32 { + if m != nil && m.TestSize != nil { + return *m.TestSize + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetHttpStatus() uint32 { + if m != nil && m.HttpStatus != nil { + return *m.HttpStatus + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetRoutingInstanceName() string { + if m != nil && m.RoutingInstanceName != nil { + return *m.RoutingInstanceName + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetRttThresh() uint32 { + if m != nil && m.RttThresh != nil { + return *m.RttThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetRttJitterThresh() uint32 { + if m != nil && m.RttJitterThresh != nil { + return *m.RttJitterThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetRttStddevThresh() uint32 { + if m != nil && m.RttStddevThresh != nil { + return *m.RttStddevThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetIgrThresh() uint32 { + if m != nil && m.IgrThresh != nil { + return *m.IgrThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetIgrJitterThresh() uint32 { + if m != nil && m.IgrJitterThresh != nil { + return *m.IgrJitterThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetIgrStddevThresh() uint32 { + if m != nil && m.IgrStddevThresh != nil { + return *m.IgrStddevThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetEgrThresh() uint32 { + if m != nil && m.EgrThresh != nil { + return *m.EgrThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetEgrJitterThresh() uint32 { + if m != nil && m.EgrJitterThresh != nil { + return *m.EgrJitterThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetEgrStddevThresh() uint32 { + if m != nil && m.EgrStddevThresh != nil { + return *m.EgrStddevThresh + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) GetProbeSingleResults() *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType { + if m != nil { + return m.ProbeSingleResults + } + return nil +} + +type JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType struct { + ProbeTime *string `protobuf:"bytes,51,opt,name=probe_time,json=probeTime" json:"probe_time,omitempty"` + ProbeSentTime *string `protobuf:"bytes,52,opt,name=probe_sent_time,json=probeSentTime" json:"probe_sent_time,omitempty"` + ProbeStatus *string `protobuf:"bytes,53,opt,name=probe_status,json=probeStatus" json:"probe_status,omitempty"` + HardwareTimestampStatus *string `protobuf:"bytes,54,opt,name=hardware_timestamp_status,json=hardwareTimestampStatus" json:"hardware_timestamp_status,omitempty"` + Rtt *uint32 `protobuf:"varint,55,opt,name=rtt" json:"rtt,omitempty"` + Egress *uint32 `protobuf:"varint,56,opt,name=egress" json:"egress,omitempty"` + Ingress *uint32 `protobuf:"varint,57,opt,name=ingress" json:"ingress,omitempty"` + EgressJitter *int32 `protobuf:"varint,58,opt,name=egress_jitter,json=egressJitter" json:"egress_jitter,omitempty"` + IngressJitter *int32 `protobuf:"varint,59,opt,name=ingress_jitter,json=ingressJitter" json:"ingress_jitter,omitempty"` + RoundTripJitter *int32 `protobuf:"varint,60,opt,name=round_trip_jitter,json=roundTripJitter" json:"round_trip_jitter,omitempty"` + EgressInterarrivalJitter *int32 `protobuf:"varint,61,opt,name=egress_interarrival_jitter,json=egressInterarrivalJitter" json:"egress_interarrival_jitter,omitempty"` + IngressInterarrivalJitter *int32 `protobuf:"varint,62,opt,name=ingress_interarrival_jitter,json=ingressInterarrivalJitter" json:"ingress_interarrival_jitter,omitempty"` + RoundTripInterarrivalJitter *int32 `protobuf:"varint,63,opt,name=round_trip_interarrival_jitter,json=roundTripInterarrivalJitter" json:"round_trip_interarrival_jitter,omitempty"` + HttpStatus *uint32 `protobuf:"varint,64,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Reset() { + *m = JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType{} +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) ProtoMessage() { +} +func (*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 1, 0, 0, 0} +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType.Merge(m, src) +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType proto.InternalMessageInfo + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetProbeTime() string { + if m != nil && m.ProbeTime != nil { + return *m.ProbeTime + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetProbeSentTime() string { + if m != nil && m.ProbeSentTime != nil { + return *m.ProbeSentTime + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetProbeStatus() string { + if m != nil && m.ProbeStatus != nil { + return *m.ProbeStatus + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetHardwareTimestampStatus() string { + if m != nil && m.HardwareTimestampStatus != nil { + return *m.HardwareTimestampStatus + } + return "" +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetRtt() uint32 { + if m != nil && m.Rtt != nil { + return *m.Rtt + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetEgress() uint32 { + if m != nil && m.Egress != nil { + return *m.Egress + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetIngress() uint32 { + if m != nil && m.Ingress != nil { + return *m.Ingress + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetEgressJitter() int32 { + if m != nil && m.EgressJitter != nil { + return *m.EgressJitter + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetIngressJitter() int32 { + if m != nil && m.IngressJitter != nil { + return *m.IngressJitter + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetRoundTripJitter() int32 { + if m != nil && m.RoundTripJitter != nil { + return *m.RoundTripJitter + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetEgressInterarrivalJitter() int32 { + if m != nil && m.EgressInterarrivalJitter != nil { + return *m.EgressInterarrivalJitter + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetIngressInterarrivalJitter() int32 { + if m != nil && m.IngressInterarrivalJitter != nil { + return *m.IngressInterarrivalJitter + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetRoundTripInterarrivalJitter() int32 { + if m != nil && m.RoundTripInterarrivalJitter != nil { + return *m.RoundTripInterarrivalJitter + } + return 0 +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetHttpStatus() uint32 { + if m != nil && m.HttpStatus != nil { + return *m.HttpStatus + } + return 0 +} + +type JunosRpmTypeServerType struct { + ActiveServers []*JunosRpmTypeServerTypeActiveServersList `protobuf:"bytes,151,rep,name=active_servers,json=activeServers" json:"active_servers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeServerType) Reset() { *m = JunosRpmTypeServerType{} } +func (m *JunosRpmTypeServerType) String() string { return proto.CompactTextString(m) } +func (*JunosRpmTypeServerType) ProtoMessage() {} +func (*JunosRpmTypeServerType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 2} +} +func (m *JunosRpmTypeServerType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeServerType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeServerType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeServerType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeServerType.Merge(m, src) +} +func (m *JunosRpmTypeServerType) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeServerType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeServerType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeServerType proto.InternalMessageInfo + +func (m *JunosRpmTypeServerType) GetActiveServers() []*JunosRpmTypeServerTypeActiveServersList { + if m != nil { + return m.ActiveServers + } + return nil +} + +type JunosRpmTypeServerTypeActiveServersList struct { + Protocol *string `protobuf:"bytes,51,opt,name=protocol" json:"protocol,omitempty"` + Port *uint32 `protobuf:"varint,52,opt,name=port" json:"port,omitempty"` + DstInterface *string `protobuf:"bytes,53,opt,name=dst_interface,json=dstInterface" json:"dst_interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosRpmTypeServerTypeActiveServersList) Reset() { + *m = JunosRpmTypeServerTypeActiveServersList{} +} +func (m *JunosRpmTypeServerTypeActiveServersList) String() string { return proto.CompactTextString(m) } +func (*JunosRpmTypeServerTypeActiveServersList) ProtoMessage() {} +func (*JunosRpmTypeServerTypeActiveServersList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 0, 2, 0} +} +func (m *JunosRpmTypeServerTypeActiveServersList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosRpmTypeServerTypeActiveServersList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosRpmTypeServerTypeActiveServersList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosRpmTypeServerTypeActiveServersList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosRpmTypeServerTypeActiveServersList.Merge(m, src) +} +func (m *JunosRpmTypeServerTypeActiveServersList) XXX_Size() int { + return m.Size() +} +func (m *JunosRpmTypeServerTypeActiveServersList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosRpmTypeServerTypeActiveServersList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosRpmTypeServerTypeActiveServersList proto.InternalMessageInfo + +func (m *JunosRpmTypeServerTypeActiveServersList) GetProtocol() string { + if m != nil && m.Protocol != nil { + return *m.Protocol + } + return "" +} + +func (m *JunosRpmTypeServerTypeActiveServersList) GetPort() uint32 { + if m != nil && m.Port != nil { + return *m.Port + } + return 0 +} + +func (m *JunosRpmTypeServerTypeActiveServersList) GetDstInterface() string { + if m != nil && m.DstInterface != nil { + return *m.DstInterface + } + return "" +} + +type JunosTwampType struct { + Server *JunosTwampTypeServerType `protobuf:"bytes,151,opt,name=server" json:"server,omitempty"` + Client *JunosTwampTypeClientType `protobuf:"bytes,152,opt,name=client" json:"client,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampType) Reset() { *m = JunosTwampType{} } +func (m *JunosTwampType) String() string { return proto.CompactTextString(m) } +func (*JunosTwampType) ProtoMessage() {} +func (*JunosTwampType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1} +} +func (m *JunosTwampType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampType.Merge(m, src) +} +func (m *JunosTwampType) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampType proto.InternalMessageInfo + +func (m *JunosTwampType) GetServer() *JunosTwampTypeServerType { + if m != nil { + return m.Server + } + return nil +} + +func (m *JunosTwampType) GetClient() *JunosTwampTypeClientType { + if m != nil { + return m.Client + } + return nil +} + +type JunosTwampTypeServerType struct { + ControlConnection []*JunosTwampTypeServerTypeControlConnectionList `protobuf:"bytes,151,rep,name=control_connection,json=controlConnection" json:"control_connection,omitempty"` + TestSession []*JunosTwampTypeServerTypeTestSessionList `protobuf:"bytes,152,rep,name=test_session,json=testSession" json:"test_session,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeServerType) Reset() { *m = JunosTwampTypeServerType{} } +func (m *JunosTwampTypeServerType) String() string { return proto.CompactTextString(m) } +func (*JunosTwampTypeServerType) ProtoMessage() {} +func (*JunosTwampTypeServerType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 0} +} +func (m *JunosTwampTypeServerType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeServerType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeServerType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeServerType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeServerType.Merge(m, src) +} +func (m *JunosTwampTypeServerType) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeServerType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeServerType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeServerType proto.InternalMessageInfo + +func (m *JunosTwampTypeServerType) GetControlConnection() []*JunosTwampTypeServerTypeControlConnectionList { + if m != nil { + return m.ControlConnection + } + return nil +} + +func (m *JunosTwampTypeServerType) GetTestSession() []*JunosTwampTypeServerTypeTestSessionList { + if m != nil { + return m.TestSession + } + return nil +} + +type JunosTwampTypeServerTypeControlConnectionList struct { + ConnectionId *uint32 `protobuf:"varint,51,opt,name=connection_id,json=connectionId" json:"connection_id,omitempty"` + ClientAddress *string `protobuf:"bytes,52,opt,name=client_address,json=clientAddress" json:"client_address,omitempty"` + ClientPort *uint32 `protobuf:"varint,53,opt,name=client_port,json=clientPort" json:"client_port,omitempty"` + ServerAddress *string `protobuf:"bytes,54,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` + ServerPort *uint32 `protobuf:"varint,55,opt,name=server_port,json=serverPort" json:"server_port,omitempty"` + SessionCount *uint32 `protobuf:"varint,56,opt,name=session_count,json=sessionCount" json:"session_count,omitempty"` + AuthenticationMode *string `protobuf:"bytes,57,opt,name=authentication_mode,json=authenticationMode" json:"authentication_mode,omitempty"` + SessionState *string `protobuf:"bytes,58,opt,name=session_state,json=sessionState" json:"session_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) Reset() { + *m = JunosTwampTypeServerTypeControlConnectionList{} +} +func (m *JunosTwampTypeServerTypeControlConnectionList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeServerTypeControlConnectionList) ProtoMessage() {} +func (*JunosTwampTypeServerTypeControlConnectionList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 0, 0} +} +func (m *JunosTwampTypeServerTypeControlConnectionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeServerTypeControlConnectionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeServerTypeControlConnectionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeServerTypeControlConnectionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeServerTypeControlConnectionList.Merge(m, src) +} +func (m *JunosTwampTypeServerTypeControlConnectionList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeServerTypeControlConnectionList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeServerTypeControlConnectionList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeServerTypeControlConnectionList proto.InternalMessageInfo + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetConnectionId() uint32 { + if m != nil && m.ConnectionId != nil { + return *m.ConnectionId + } + return 0 +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetClientAddress() string { + if m != nil && m.ClientAddress != nil { + return *m.ClientAddress + } + return "" +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetClientPort() uint32 { + if m != nil && m.ClientPort != nil { + return *m.ClientPort + } + return 0 +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetServerAddress() string { + if m != nil && m.ServerAddress != nil { + return *m.ServerAddress + } + return "" +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetServerPort() uint32 { + if m != nil && m.ServerPort != nil { + return *m.ServerPort + } + return 0 +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetSessionCount() uint32 { + if m != nil && m.SessionCount != nil { + return *m.SessionCount + } + return 0 +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetAuthenticationMode() string { + if m != nil && m.AuthenticationMode != nil { + return *m.AuthenticationMode + } + return "" +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) GetSessionState() string { + if m != nil && m.SessionState != nil { + return *m.SessionState + } + return "" +} + +type JunosTwampTypeServerTypeTestSessionList struct { + ConnectionId *uint32 `protobuf:"varint,51,opt,name=connection_id,json=connectionId" json:"connection_id,omitempty"` + TestSessionInfo []*JunosTwampTypeServerTypeTestSessionListTestSessionInfoList `protobuf:"bytes,151,rep,name=test_session_info,json=testSessionInfo" json:"test_session_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeServerTypeTestSessionList) Reset() { + *m = JunosTwampTypeServerTypeTestSessionList{} +} +func (m *JunosTwampTypeServerTypeTestSessionList) String() string { return proto.CompactTextString(m) } +func (*JunosTwampTypeServerTypeTestSessionList) ProtoMessage() {} +func (*JunosTwampTypeServerTypeTestSessionList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 0, 1} +} +func (m *JunosTwampTypeServerTypeTestSessionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeServerTypeTestSessionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeServerTypeTestSessionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeServerTypeTestSessionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeServerTypeTestSessionList.Merge(m, src) +} +func (m *JunosTwampTypeServerTypeTestSessionList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeServerTypeTestSessionList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeServerTypeTestSessionList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeServerTypeTestSessionList proto.InternalMessageInfo + +func (m *JunosTwampTypeServerTypeTestSessionList) GetConnectionId() uint32 { + if m != nil && m.ConnectionId != nil { + return *m.ConnectionId + } + return 0 +} + +func (m *JunosTwampTypeServerTypeTestSessionList) GetTestSessionInfo() []*JunosTwampTypeServerTypeTestSessionListTestSessionInfoList { + if m != nil { + return m.TestSessionInfo + } + return nil +} + +type JunosTwampTypeServerTypeTestSessionListTestSessionInfoList struct { + TestId *uint32 `protobuf:"varint,51,opt,name=test_id,json=testId" json:"test_id,omitempty"` + SenderAddress *string `protobuf:"bytes,52,opt,name=sender_address,json=senderAddress" json:"sender_address,omitempty"` + SenderPort *uint32 `protobuf:"varint,53,opt,name=sender_port,json=senderPort" json:"sender_port,omitempty"` + ReflectorAddress *string `protobuf:"bytes,54,opt,name=reflector_address,json=reflectorAddress" json:"reflector_address,omitempty"` + ReflectorPort *uint32 `protobuf:"varint,55,opt,name=reflector_port,json=reflectorPort" json:"reflector_port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) Reset() { + *m = JunosTwampTypeServerTypeTestSessionListTestSessionInfoList{} +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) ProtoMessage() {} +func (*JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 0, 1, 0} +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeServerTypeTestSessionListTestSessionInfoList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeServerTypeTestSessionListTestSessionInfoList.Merge(m, src) +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeServerTypeTestSessionListTestSessionInfoList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeServerTypeTestSessionListTestSessionInfoList proto.InternalMessageInfo + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) GetTestId() uint32 { + if m != nil && m.TestId != nil { + return *m.TestId + } + return 0 +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) GetSenderAddress() string { + if m != nil && m.SenderAddress != nil { + return *m.SenderAddress + } + return "" +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) GetSenderPort() uint32 { + if m != nil && m.SenderPort != nil { + return *m.SenderPort + } + return 0 +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) GetReflectorAddress() string { + if m != nil && m.ReflectorAddress != nil { + return *m.ReflectorAddress + } + return "" +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) GetReflectorPort() uint32 { + if m != nil && m.ReflectorPort != nil { + return *m.ReflectorPort + } + return 0 +} + +type JunosTwampTypeClientType struct { + ControlConnection []*JunosTwampTypeClientTypeControlConnectionList `protobuf:"bytes,151,rep,name=control_connection,json=controlConnection" json:"control_connection,omitempty"` + TestSession []*JunosTwampTypeClientTypeTestSessionList `protobuf:"bytes,152,rep,name=test_session,json=testSession" json:"test_session,omitempty"` + ProbeTestResults []*JunosTwampTypeClientTypeProbeTestResultsList `protobuf:"bytes,153,rep,name=probe_test_results,json=probeTestResults" json:"probe_test_results,omitempty"` + HistoryTestResults []*JunosTwampTypeClientTypeHistoryTestResultsList `protobuf:"bytes,154,rep,name=history_test_results,json=historyTestResults" json:"history_test_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientType) Reset() { *m = JunosTwampTypeClientType{} } +func (m *JunosTwampTypeClientType) String() string { return proto.CompactTextString(m) } +func (*JunosTwampTypeClientType) ProtoMessage() {} +func (*JunosTwampTypeClientType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1} +} +func (m *JunosTwampTypeClientType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientType.Merge(m, src) +} +func (m *JunosTwampTypeClientType) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientType proto.InternalMessageInfo + +func (m *JunosTwampTypeClientType) GetControlConnection() []*JunosTwampTypeClientTypeControlConnectionList { + if m != nil { + return m.ControlConnection + } + return nil +} + +func (m *JunosTwampTypeClientType) GetTestSession() []*JunosTwampTypeClientTypeTestSessionList { + if m != nil { + return m.TestSession + } + return nil +} + +func (m *JunosTwampTypeClientType) GetProbeTestResults() []*JunosTwampTypeClientTypeProbeTestResultsList { + if m != nil { + return m.ProbeTestResults + } + return nil +} + +func (m *JunosTwampTypeClientType) GetHistoryTestResults() []*JunosTwampTypeClientTypeHistoryTestResultsList { + if m != nil { + return m.HistoryTestResults + } + return nil +} + +type JunosTwampTypeClientTypeControlConnectionList struct { + ControlName *string `protobuf:"bytes,51,opt,name=control_name,json=controlName" json:"control_name,omitempty"` + ClientAddress *string `protobuf:"bytes,52,opt,name=client_address,json=clientAddress" json:"client_address,omitempty"` + ClientPort *uint32 `protobuf:"varint,53,opt,name=client_port,json=clientPort" json:"client_port,omitempty"` + ServerAddress *string `protobuf:"bytes,54,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` + ServerPort *uint32 `protobuf:"varint,55,opt,name=server_port,json=serverPort" json:"server_port,omitempty"` + SessionCount *uint32 `protobuf:"varint,56,opt,name=session_count,json=sessionCount" json:"session_count,omitempty"` + AuthMode *string `protobuf:"bytes,57,opt,name=auth_mode,json=authMode" json:"auth_mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) Reset() { + *m = JunosTwampTypeClientTypeControlConnectionList{} +} +func (m *JunosTwampTypeClientTypeControlConnectionList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeControlConnectionList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeControlConnectionList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 0} +} +func (m *JunosTwampTypeClientTypeControlConnectionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeControlConnectionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeControlConnectionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeControlConnectionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeControlConnectionList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeControlConnectionList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeControlConnectionList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeControlConnectionList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeControlConnectionList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetControlName() string { + if m != nil && m.ControlName != nil { + return *m.ControlName + } + return "" +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetClientAddress() string { + if m != nil && m.ClientAddress != nil { + return *m.ClientAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetClientPort() uint32 { + if m != nil && m.ClientPort != nil { + return *m.ClientPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetServerAddress() string { + if m != nil && m.ServerAddress != nil { + return *m.ServerAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetServerPort() uint32 { + if m != nil && m.ServerPort != nil { + return *m.ServerPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetSessionCount() uint32 { + if m != nil && m.SessionCount != nil { + return *m.SessionCount + } + return 0 +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) GetAuthMode() string { + if m != nil && m.AuthMode != nil { + return *m.AuthMode + } + return "" +} + +type JunosTwampTypeClientTypeTestSessionList struct { + ControlName *string `protobuf:"bytes,51,opt,name=control_name,json=controlName" json:"control_name,omitempty"` + ClientAddress *string `protobuf:"bytes,52,opt,name=client_address,json=clientAddress" json:"client_address,omitempty"` + ClientPort *uint32 `protobuf:"varint,53,opt,name=client_port,json=clientPort" json:"client_port,omitempty"` + ServerAddress *string `protobuf:"bytes,54,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` + ServerPort *uint32 `protobuf:"varint,55,opt,name=server_port,json=serverPort" json:"server_port,omitempty"` + SessionCount *uint32 `protobuf:"varint,56,opt,name=session_count,json=sessionCount" json:"session_count,omitempty"` + AuthMode *string `protobuf:"bytes,57,opt,name=auth_mode,json=authMode" json:"auth_mode,omitempty"` + TestSessionInfo []*JunosTwampTypeClientTypeTestSessionListTestSessionInfoList `protobuf:"bytes,151,rep,name=test_session_info,json=testSessionInfo" json:"test_session_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeTestSessionList) Reset() { + *m = JunosTwampTypeClientTypeTestSessionList{} +} +func (m *JunosTwampTypeClientTypeTestSessionList) String() string { return proto.CompactTextString(m) } +func (*JunosTwampTypeClientTypeTestSessionList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeTestSessionList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 1} +} +func (m *JunosTwampTypeClientTypeTestSessionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeTestSessionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeTestSessionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeTestSessionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeTestSessionList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeTestSessionList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeTestSessionList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeTestSessionList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeTestSessionList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeTestSessionList) GetControlName() string { + if m != nil && m.ControlName != nil { + return *m.ControlName + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetClientAddress() string { + if m != nil && m.ClientAddress != nil { + return *m.ClientAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetClientPort() uint32 { + if m != nil && m.ClientPort != nil { + return *m.ClientPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetServerAddress() string { + if m != nil && m.ServerAddress != nil { + return *m.ServerAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetServerPort() uint32 { + if m != nil && m.ServerPort != nil { + return *m.ServerPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetSessionCount() uint32 { + if m != nil && m.SessionCount != nil { + return *m.SessionCount + } + return 0 +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetAuthMode() string { + if m != nil && m.AuthMode != nil { + return *m.AuthMode + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionList) GetTestSessionInfo() []*JunosTwampTypeClientTypeTestSessionListTestSessionInfoList { + if m != nil { + return m.TestSessionInfo + } + return nil +} + +type JunosTwampTypeClientTypeTestSessionListTestSessionInfoList struct { + SessionName *string `protobuf:"bytes,51,opt,name=session_name,json=sessionName" json:"session_name,omitempty"` + SenderAddress *string `protobuf:"bytes,52,opt,name=sender_address,json=senderAddress" json:"sender_address,omitempty"` + SenderPort *uint32 `protobuf:"varint,53,opt,name=sender_port,json=senderPort" json:"sender_port,omitempty"` + ReflectorAddress *string `protobuf:"bytes,54,opt,name=reflector_address,json=reflectorAddress" json:"reflector_address,omitempty"` + ReflectorPort *uint32 `protobuf:"varint,55,opt,name=reflector_port,json=reflectorPort" json:"reflector_port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) Reset() { + *m = JunosTwampTypeClientTypeTestSessionListTestSessionInfoList{} +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 1, 0} +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeTestSessionListTestSessionInfoList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeTestSessionListTestSessionInfoList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeTestSessionListTestSessionInfoList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeTestSessionListTestSessionInfoList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) GetSessionName() string { + if m != nil && m.SessionName != nil { + return *m.SessionName + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) GetSenderAddress() string { + if m != nil && m.SenderAddress != nil { + return *m.SenderAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) GetSenderPort() uint32 { + if m != nil && m.SenderPort != nil { + return *m.SenderPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) GetReflectorAddress() string { + if m != nil && m.ReflectorAddress != nil { + return *m.ReflectorAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) GetReflectorPort() uint32 { + if m != nil && m.ReflectorPort != nil { + return *m.ReflectorPort + } + return 0 +} + +type JunosTwampTypeClientTypeProbeTestResultsList struct { + Owner *string `protobuf:"bytes,51,opt,name=owner" json:"owner,omitempty"` + TestName *string `protobuf:"bytes,52,opt,name=test_name,json=testName" json:"test_name,omitempty"` + DestinationInterface *string `protobuf:"bytes,53,opt,name=destination_interface,json=destinationInterface" json:"destination_interface,omitempty"` + TestSize *uint32 `protobuf:"varint,54,opt,name=test_size,json=testSize" json:"test_size,omitempty"` + ClientAddress *string `protobuf:"bytes,55,opt,name=client_address,json=clientAddress" json:"client_address,omitempty"` + ClientPort *uint32 `protobuf:"varint,56,opt,name=client_port,json=clientPort" json:"client_port,omitempty"` + SenderAddress *string `protobuf:"bytes,57,opt,name=sender_address,json=senderAddress" json:"sender_address,omitempty"` + SenderPort *uint32 `protobuf:"varint,58,opt,name=sender_port,json=senderPort" json:"sender_port,omitempty"` + ReflectorAddress *string `protobuf:"bytes,59,opt,name=reflector_address,json=reflectorAddress" json:"reflector_address,omitempty"` + ReflectorPort *uint32 `protobuf:"varint,60,opt,name=reflector_port,json=reflectorPort" json:"reflector_port,omitempty"` + ServerAddress *string `protobuf:"bytes,61,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` + ServerPort *uint32 `protobuf:"varint,62,opt,name=server_port,json=serverPort" json:"server_port,omitempty"` + LossThreshTotal *uint32 `protobuf:"varint,63,opt,name=loss_thresh_total,json=lossThreshTotal" json:"loss_thresh_total,omitempty"` + LossThreshSucc *uint32 `protobuf:"varint,64,opt,name=loss_thresh_succ,json=lossThreshSucc" json:"loss_thresh_succ,omitempty"` + RttThresh *uint32 `protobuf:"varint,65,opt,name=rtt_thresh,json=rttThresh" json:"rtt_thresh,omitempty"` + RttJitterThresh *uint32 `protobuf:"varint,66,opt,name=rtt_jitter_thresh,json=rttJitterThresh" json:"rtt_jitter_thresh,omitempty"` + RttStddevThresh *uint32 `protobuf:"varint,67,opt,name=rtt_stddev_thresh,json=rttStddevThresh" json:"rtt_stddev_thresh,omitempty"` + IgrThresh *uint32 `protobuf:"varint,68,opt,name=igr_thresh,json=igrThresh" json:"igr_thresh,omitempty"` + IgrJitterThresh *uint32 `protobuf:"varint,69,opt,name=igr_jitter_thresh,json=igrJitterThresh" json:"igr_jitter_thresh,omitempty"` + IgrStddevThresh *uint32 `protobuf:"varint,70,opt,name=igr_stddev_thresh,json=igrStddevThresh" json:"igr_stddev_thresh,omitempty"` + EgrThresh *uint32 `protobuf:"varint,71,opt,name=egr_thresh,json=egrThresh" json:"egr_thresh,omitempty"` + EgrJitterThresh *uint32 `protobuf:"varint,72,opt,name=egr_jitter_thresh,json=egrJitterThresh" json:"egr_jitter_thresh,omitempty"` + EgrStddevThresh *uint32 `protobuf:"varint,73,opt,name=egr_stddev_thresh,json=egrStddevThresh" json:"egr_stddev_thresh,omitempty"` + RoutingInstanceName *string `protobuf:"bytes,74,opt,name=routing_instance_name,json=routingInstanceName" json:"routing_instance_name,omitempty"` + ProbeTestsHwTsErr *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType `protobuf:"bytes,151,opt,name=probe_tests_hw_ts_err,json=probeTestsHwTsErr" json:"probe_tests_hw_ts_err,omitempty"` + ProbeSingleResults *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType `protobuf:"bytes,152,opt,name=probe_single_results,json=probeSingleResults" json:"probe_single_results,omitempty"` + ProbeTestGenericResults []*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList `protobuf:"bytes,153,rep,name=probe_test_generic_results,json=probeTestGenericResults" json:"probe_test_generic_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) Reset() { + *m = JunosTwampTypeClientTypeProbeTestResultsList{} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeProbeTestResultsList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeProbeTestResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 2} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetOwner() string { + if m != nil && m.Owner != nil { + return *m.Owner + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetTestName() string { + if m != nil && m.TestName != nil { + return *m.TestName + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetDestinationInterface() string { + if m != nil && m.DestinationInterface != nil { + return *m.DestinationInterface + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetTestSize() uint32 { + if m != nil && m.TestSize != nil { + return *m.TestSize + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetClientAddress() string { + if m != nil && m.ClientAddress != nil { + return *m.ClientAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetClientPort() uint32 { + if m != nil && m.ClientPort != nil { + return *m.ClientPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetSenderAddress() string { + if m != nil && m.SenderAddress != nil { + return *m.SenderAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetSenderPort() uint32 { + if m != nil && m.SenderPort != nil { + return *m.SenderPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetReflectorAddress() string { + if m != nil && m.ReflectorAddress != nil { + return *m.ReflectorAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetReflectorPort() uint32 { + if m != nil && m.ReflectorPort != nil { + return *m.ReflectorPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetServerAddress() string { + if m != nil && m.ServerAddress != nil { + return *m.ServerAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetServerPort() uint32 { + if m != nil && m.ServerPort != nil { + return *m.ServerPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetLossThreshTotal() uint32 { + if m != nil && m.LossThreshTotal != nil { + return *m.LossThreshTotal + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetLossThreshSucc() uint32 { + if m != nil && m.LossThreshSucc != nil { + return *m.LossThreshSucc + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetRttThresh() uint32 { + if m != nil && m.RttThresh != nil { + return *m.RttThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetRttJitterThresh() uint32 { + if m != nil && m.RttJitterThresh != nil { + return *m.RttJitterThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetRttStddevThresh() uint32 { + if m != nil && m.RttStddevThresh != nil { + return *m.RttStddevThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetIgrThresh() uint32 { + if m != nil && m.IgrThresh != nil { + return *m.IgrThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetIgrJitterThresh() uint32 { + if m != nil && m.IgrJitterThresh != nil { + return *m.IgrJitterThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetIgrStddevThresh() uint32 { + if m != nil && m.IgrStddevThresh != nil { + return *m.IgrStddevThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetEgrThresh() uint32 { + if m != nil && m.EgrThresh != nil { + return *m.EgrThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetEgrJitterThresh() uint32 { + if m != nil && m.EgrJitterThresh != nil { + return *m.EgrJitterThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetEgrStddevThresh() uint32 { + if m != nil && m.EgrStddevThresh != nil { + return *m.EgrStddevThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetRoutingInstanceName() string { + if m != nil && m.RoutingInstanceName != nil { + return *m.RoutingInstanceName + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetProbeTestsHwTsErr() *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType { + if m != nil { + return m.ProbeTestsHwTsErr + } + return nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetProbeSingleResults() *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType { + if m != nil { + return m.ProbeSingleResults + } + return nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) GetProbeTestGenericResults() []*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList { + if m != nil { + return m.ProbeTestGenericResults + } + return nil +} + +type JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType struct { + InvalidClientRecvTsCntr *uint32 `protobuf:"varint,51,opt,name=invalid_client_recv_ts_cntr,json=invalidClientRecvTsCntr" json:"invalid_client_recv_ts_cntr,omitempty"` + InvalidClientNotsCntr *uint32 `protobuf:"varint,52,opt,name=invalid_client_nots_cntr,json=invalidClientNotsCntr" json:"invalid_client_nots_cntr,omitempty"` + InvalidServerSendTsCntr *uint32 `protobuf:"varint,53,opt,name=invalid_server_send_ts_cntr,json=invalidServerSendTsCntr" json:"invalid_server_send_ts_cntr,omitempty"` + InvalidServerSpentTimeCntr *uint32 `protobuf:"varint,54,opt,name=invalid_server_spent_time_cntr,json=invalidServerSpentTimeCntr" json:"invalid_server_spent_time_cntr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) Reset() { + *m = JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType{} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) ProtoMessage() {} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 2, 0} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidClientRecvTsCntr() uint32 { + if m != nil && m.InvalidClientRecvTsCntr != nil { + return *m.InvalidClientRecvTsCntr + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidClientNotsCntr() uint32 { + if m != nil && m.InvalidClientNotsCntr != nil { + return *m.InvalidClientNotsCntr + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidServerSendTsCntr() uint32 { + if m != nil && m.InvalidServerSendTsCntr != nil { + return *m.InvalidServerSendTsCntr + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) GetInvalidServerSpentTimeCntr() uint32 { + if m != nil && m.InvalidServerSpentTimeCntr != nil { + return *m.InvalidServerSpentTimeCntr + } + return 0 +} + +type JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType struct { + ProbeTime *string `protobuf:"bytes,51,opt,name=probe_time,json=probeTime" json:"probe_time,omitempty"` + ProbeSentTime *string `protobuf:"bytes,52,opt,name=probe_sent_time,json=probeSentTime" json:"probe_sent_time,omitempty"` + ProbeStatus *string `protobuf:"bytes,53,opt,name=probe_status,json=probeStatus" json:"probe_status,omitempty"` + HardwareTimestampStatus *string `protobuf:"bytes,54,opt,name=hardware_timestamp_status,json=hardwareTimestampStatus" json:"hardware_timestamp_status,omitempty"` + Rtt *uint32 `protobuf:"varint,55,opt,name=rtt" json:"rtt,omitempty"` + Egress *uint32 `protobuf:"varint,56,opt,name=egress" json:"egress,omitempty"` + Ingress *uint32 `protobuf:"varint,57,opt,name=ingress" json:"ingress,omitempty"` + EgressJitter *int32 `protobuf:"varint,58,opt,name=egress_jitter,json=egressJitter" json:"egress_jitter,omitempty"` + IngressJitter *int32 `protobuf:"varint,59,opt,name=ingress_jitter,json=ingressJitter" json:"ingress_jitter,omitempty"` + RoundTripJitter *int32 `protobuf:"varint,60,opt,name=round_trip_jitter,json=roundTripJitter" json:"round_trip_jitter,omitempty"` + EgressInterarrivalJitter *int32 `protobuf:"varint,61,opt,name=egress_interarrival_jitter,json=egressInterarrivalJitter" json:"egress_interarrival_jitter,omitempty"` + IngressInterarrivalJitter *int32 `protobuf:"varint,62,opt,name=ingress_interarrival_jitter,json=ingressInterarrivalJitter" json:"ingress_interarrival_jitter,omitempty"` + RoundTripInterarrivalJitter *int32 `protobuf:"varint,63,opt,name=round_trip_interarrival_jitter,json=roundTripInterarrivalJitter" json:"round_trip_interarrival_jitter,omitempty"` + HttpStatus *uint32 `protobuf:"varint,64,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) Reset() { + *m = JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType{} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) ProtoMessage() {} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 2, 1} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetProbeTime() string { + if m != nil && m.ProbeTime != nil { + return *m.ProbeTime + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetProbeSentTime() string { + if m != nil && m.ProbeSentTime != nil { + return *m.ProbeSentTime + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetProbeStatus() string { + if m != nil && m.ProbeStatus != nil { + return *m.ProbeStatus + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetHardwareTimestampStatus() string { + if m != nil && m.HardwareTimestampStatus != nil { + return *m.HardwareTimestampStatus + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetRtt() uint32 { + if m != nil && m.Rtt != nil { + return *m.Rtt + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetEgress() uint32 { + if m != nil && m.Egress != nil { + return *m.Egress + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetIngress() uint32 { + if m != nil && m.Ingress != nil { + return *m.Ingress + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetEgressJitter() int32 { + if m != nil && m.EgressJitter != nil { + return *m.EgressJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetIngressJitter() int32 { + if m != nil && m.IngressJitter != nil { + return *m.IngressJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetRoundTripJitter() int32 { + if m != nil && m.RoundTripJitter != nil { + return *m.RoundTripJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetEgressInterarrivalJitter() int32 { + if m != nil && m.EgressInterarrivalJitter != nil { + return *m.EgressInterarrivalJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetIngressInterarrivalJitter() int32 { + if m != nil && m.IngressInterarrivalJitter != nil { + return *m.IngressInterarrivalJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetRoundTripInterarrivalJitter() int32 { + if m != nil && m.RoundTripInterarrivalJitter != nil { + return *m.RoundTripInterarrivalJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) GetHttpStatus() uint32 { + if m != nil && m.HttpStatus != nil { + return *m.HttpStatus + } + return 0 +} + +type JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList struct { + ResultsScope *string `protobuf:"bytes,51,opt,name=results_scope,json=resultsScope" json:"results_scope,omitempty"` + ProbesSent *uint32 `protobuf:"varint,52,opt,name=probes_sent,json=probesSent" json:"probes_sent,omitempty"` + ProbeResponses *uint32 `protobuf:"varint,53,opt,name=probe_responses,json=probeResponses" json:"probe_responses,omitempty"` + LossPercentage *uint32 `protobuf:"varint,54,opt,name=loss_percentage,json=lossPercentage" json:"loss_percentage,omitempty"` + LastTestTime *string `protobuf:"bytes,55,opt,name=last_test_time,json=lastTestTime" json:"last_test_time,omitempty"` + ProbeTestGenericMeasurements []*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList `protobuf:"bytes,151,rep,name=probe_test_generic_measurements,json=probeTestGenericMeasurements" json:"probe_test_generic_measurements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) Reset() { + *m = JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList{} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 2, 2} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) GetResultsScope() string { + if m != nil && m.ResultsScope != nil { + return *m.ResultsScope + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) GetProbesSent() uint32 { + if m != nil && m.ProbesSent != nil { + return *m.ProbesSent + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) GetProbeResponses() uint32 { + if m != nil && m.ProbeResponses != nil { + return *m.ProbeResponses + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) GetLossPercentage() uint32 { + if m != nil && m.LossPercentage != nil { + return *m.LossPercentage + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) GetLastTestTime() string { + if m != nil && m.LastTestTime != nil { + return *m.LastTestTime + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) GetProbeTestGenericMeasurements() []*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList { + if m != nil { + return m.ProbeTestGenericMeasurements + } + return nil +} + +type JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList struct { + ProbeMeasurementType *string `protobuf:"bytes,51,opt,name=probe_measurement_type,json=probeMeasurementType" json:"probe_measurement_type,omitempty"` + Samples *uint32 `protobuf:"varint,52,opt,name=samples" json:"samples,omitempty"` + MinDelay *uint32 `protobuf:"varint,53,opt,name=min_delay,json=minDelay" json:"min_delay,omitempty"` + MaxDelay *uint32 `protobuf:"varint,54,opt,name=max_delay,json=maxDelay" json:"max_delay,omitempty"` + AvgDelay *uint32 `protobuf:"varint,55,opt,name=avg_delay,json=avgDelay" json:"avg_delay,omitempty"` + JitterDelay *uint32 `protobuf:"varint,56,opt,name=jitter_delay,json=jitterDelay" json:"jitter_delay,omitempty"` + StddevDelay *uint64 `protobuf:"varint,57,opt,name=stddev_delay,json=stddevDelay" json:"stddev_delay,omitempty"` + SumDelay *uint64 `protobuf:"varint,58,opt,name=sum_delay,json=sumDelay" json:"sum_delay,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Reset() { + *m = JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList{} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) ProtoMessage() { +} +func (*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 2, 2, 0} +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetProbeMeasurementType() string { + if m != nil && m.ProbeMeasurementType != nil { + return *m.ProbeMeasurementType + } + return "" +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetSamples() uint32 { + if m != nil && m.Samples != nil { + return *m.Samples + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetMinDelay() uint32 { + if m != nil && m.MinDelay != nil { + return *m.MinDelay + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetMaxDelay() uint32 { + if m != nil && m.MaxDelay != nil { + return *m.MaxDelay + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetAvgDelay() uint32 { + if m != nil && m.AvgDelay != nil { + return *m.AvgDelay + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetJitterDelay() uint32 { + if m != nil && m.JitterDelay != nil { + return *m.JitterDelay + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetStddevDelay() uint64 { + if m != nil && m.StddevDelay != nil { + return *m.StddevDelay + } + return 0 +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) GetSumDelay() uint64 { + if m != nil && m.SumDelay != nil { + return *m.SumDelay + } + return 0 +} + +type JunosTwampTypeClientTypeHistoryTestResultsList struct { + HistorySingleTestResults []*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList `protobuf:"bytes,151,rep,name=history_single_test_results,json=historySingleTestResults" json:"history_single_test_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) Reset() { + *m = JunosTwampTypeClientTypeHistoryTestResultsList{} +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeHistoryTestResultsList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeHistoryTestResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 3} +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) GetHistorySingleTestResults() []*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList { + if m != nil { + return m.HistorySingleTestResults + } + return nil +} + +type JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList struct { + Owner *string `protobuf:"bytes,51,opt,name=owner" json:"owner,omitempty"` + TestName *string `protobuf:"bytes,52,opt,name=test_name,json=testName" json:"test_name,omitempty"` + DestinationInterface *string `protobuf:"bytes,53,opt,name=destination_interface,json=destinationInterface" json:"destination_interface,omitempty"` + TestSize *uint32 `protobuf:"varint,54,opt,name=test_size,json=testSize" json:"test_size,omitempty"` + ClientAddress *string `protobuf:"bytes,55,opt,name=client_address,json=clientAddress" json:"client_address,omitempty"` + ClientPort *uint32 `protobuf:"varint,56,opt,name=client_port,json=clientPort" json:"client_port,omitempty"` + SenderAddress *string `protobuf:"bytes,57,opt,name=sender_address,json=senderAddress" json:"sender_address,omitempty"` + SenderPort *uint32 `protobuf:"varint,58,opt,name=sender_port,json=senderPort" json:"sender_port,omitempty"` + ReflectorAddress *string `protobuf:"bytes,59,opt,name=reflector_address,json=reflectorAddress" json:"reflector_address,omitempty"` + ReflectorPort *uint32 `protobuf:"varint,60,opt,name=reflector_port,json=reflectorPort" json:"reflector_port,omitempty"` + ServerAddress *string `protobuf:"bytes,61,opt,name=server_address,json=serverAddress" json:"server_address,omitempty"` + ServerPort *uint32 `protobuf:"varint,62,opt,name=server_port,json=serverPort" json:"server_port,omitempty"` + LossThreshTotal *uint32 `protobuf:"varint,63,opt,name=loss_thresh_total,json=lossThreshTotal" json:"loss_thresh_total,omitempty"` + LossThreshSucc *uint32 `protobuf:"varint,64,opt,name=loss_thresh_succ,json=lossThreshSucc" json:"loss_thresh_succ,omitempty"` + RttThresh *uint32 `protobuf:"varint,65,opt,name=rtt_thresh,json=rttThresh" json:"rtt_thresh,omitempty"` + RttJitterThresh *uint32 `protobuf:"varint,66,opt,name=rtt_jitter_thresh,json=rttJitterThresh" json:"rtt_jitter_thresh,omitempty"` + RttStddevThresh *uint32 `protobuf:"varint,67,opt,name=rtt_stddev_thresh,json=rttStddevThresh" json:"rtt_stddev_thresh,omitempty"` + IgrThresh *uint32 `protobuf:"varint,68,opt,name=igr_thresh,json=igrThresh" json:"igr_thresh,omitempty"` + IgrJitterThresh *uint32 `protobuf:"varint,69,opt,name=igr_jitter_thresh,json=igrJitterThresh" json:"igr_jitter_thresh,omitempty"` + IgrStddevThresh *uint32 `protobuf:"varint,70,opt,name=igr_stddev_thresh,json=igrStddevThresh" json:"igr_stddev_thresh,omitempty"` + EgrThresh *uint32 `protobuf:"varint,71,opt,name=egr_thresh,json=egrThresh" json:"egr_thresh,omitempty"` + EgrJitterThresh *uint32 `protobuf:"varint,72,opt,name=egr_jitter_thresh,json=egrJitterThresh" json:"egr_jitter_thresh,omitempty"` + EgrStddevThresh *uint32 `protobuf:"varint,73,opt,name=egr_stddev_thresh,json=egrStddevThresh" json:"egr_stddev_thresh,omitempty"` + RoutingInstanceName *string `protobuf:"bytes,74,opt,name=routing_instance_name,json=routingInstanceName" json:"routing_instance_name,omitempty"` + ProbeSingleResults *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType `protobuf:"bytes,151,opt,name=probe_single_results,json=probeSingleResults" json:"probe_single_results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) Reset() { + *m = JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList{} +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) ProtoMessage() {} +func (*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 3, 0} +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetOwner() string { + if m != nil && m.Owner != nil { + return *m.Owner + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetTestName() string { + if m != nil && m.TestName != nil { + return *m.TestName + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetDestinationInterface() string { + if m != nil && m.DestinationInterface != nil { + return *m.DestinationInterface + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetTestSize() uint32 { + if m != nil && m.TestSize != nil { + return *m.TestSize + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetClientAddress() string { + if m != nil && m.ClientAddress != nil { + return *m.ClientAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetClientPort() uint32 { + if m != nil && m.ClientPort != nil { + return *m.ClientPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetSenderAddress() string { + if m != nil && m.SenderAddress != nil { + return *m.SenderAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetSenderPort() uint32 { + if m != nil && m.SenderPort != nil { + return *m.SenderPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetReflectorAddress() string { + if m != nil && m.ReflectorAddress != nil { + return *m.ReflectorAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetReflectorPort() uint32 { + if m != nil && m.ReflectorPort != nil { + return *m.ReflectorPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetServerAddress() string { + if m != nil && m.ServerAddress != nil { + return *m.ServerAddress + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetServerPort() uint32 { + if m != nil && m.ServerPort != nil { + return *m.ServerPort + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetLossThreshTotal() uint32 { + if m != nil && m.LossThreshTotal != nil { + return *m.LossThreshTotal + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetLossThreshSucc() uint32 { + if m != nil && m.LossThreshSucc != nil { + return *m.LossThreshSucc + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetRttThresh() uint32 { + if m != nil && m.RttThresh != nil { + return *m.RttThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetRttJitterThresh() uint32 { + if m != nil && m.RttJitterThresh != nil { + return *m.RttJitterThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetRttStddevThresh() uint32 { + if m != nil && m.RttStddevThresh != nil { + return *m.RttStddevThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetIgrThresh() uint32 { + if m != nil && m.IgrThresh != nil { + return *m.IgrThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetIgrJitterThresh() uint32 { + if m != nil && m.IgrJitterThresh != nil { + return *m.IgrJitterThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetIgrStddevThresh() uint32 { + if m != nil && m.IgrStddevThresh != nil { + return *m.IgrStddevThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetEgrThresh() uint32 { + if m != nil && m.EgrThresh != nil { + return *m.EgrThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetEgrJitterThresh() uint32 { + if m != nil && m.EgrJitterThresh != nil { + return *m.EgrJitterThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetEgrStddevThresh() uint32 { + if m != nil && m.EgrStddevThresh != nil { + return *m.EgrStddevThresh + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetRoutingInstanceName() string { + if m != nil && m.RoutingInstanceName != nil { + return *m.RoutingInstanceName + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) GetProbeSingleResults() *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType { + if m != nil { + return m.ProbeSingleResults + } + return nil +} + +type JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType struct { + ProbeTime *string `protobuf:"bytes,51,opt,name=probe_time,json=probeTime" json:"probe_time,omitempty"` + ProbeSentTime *string `protobuf:"bytes,52,opt,name=probe_sent_time,json=probeSentTime" json:"probe_sent_time,omitempty"` + ProbeStatus *string `protobuf:"bytes,53,opt,name=probe_status,json=probeStatus" json:"probe_status,omitempty"` + HardwareTimestampStatus *string `protobuf:"bytes,54,opt,name=hardware_timestamp_status,json=hardwareTimestampStatus" json:"hardware_timestamp_status,omitempty"` + Rtt *uint32 `protobuf:"varint,55,opt,name=rtt" json:"rtt,omitempty"` + Egress *uint32 `protobuf:"varint,56,opt,name=egress" json:"egress,omitempty"` + Ingress *uint32 `protobuf:"varint,57,opt,name=ingress" json:"ingress,omitempty"` + EgressJitter *int32 `protobuf:"varint,58,opt,name=egress_jitter,json=egressJitter" json:"egress_jitter,omitempty"` + IngressJitter *int32 `protobuf:"varint,59,opt,name=ingress_jitter,json=ingressJitter" json:"ingress_jitter,omitempty"` + RoundTripJitter *int32 `protobuf:"varint,60,opt,name=round_trip_jitter,json=roundTripJitter" json:"round_trip_jitter,omitempty"` + EgressInterarrivalJitter *int32 `protobuf:"varint,61,opt,name=egress_interarrival_jitter,json=egressInterarrivalJitter" json:"egress_interarrival_jitter,omitempty"` + IngressInterarrivalJitter *int32 `protobuf:"varint,62,opt,name=ingress_interarrival_jitter,json=ingressInterarrivalJitter" json:"ingress_interarrival_jitter,omitempty"` + RoundTripInterarrivalJitter *int32 `protobuf:"varint,63,opt,name=round_trip_interarrival_jitter,json=roundTripInterarrivalJitter" json:"round_trip_interarrival_jitter,omitempty"` + HttpStatus *uint32 `protobuf:"varint,64,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Reset() { + *m = JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType{} +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) ProtoMessage() { +} +func (*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0ea3d1731efd5e28, []int{0, 1, 1, 3, 0, 0} +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType.Merge(m, src) +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_Size() int { + return m.Size() +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType proto.InternalMessageInfo + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetProbeTime() string { + if m != nil && m.ProbeTime != nil { + return *m.ProbeTime + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetProbeSentTime() string { + if m != nil && m.ProbeSentTime != nil { + return *m.ProbeSentTime + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetProbeStatus() string { + if m != nil && m.ProbeStatus != nil { + return *m.ProbeStatus + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetHardwareTimestampStatus() string { + if m != nil && m.HardwareTimestampStatus != nil { + return *m.HardwareTimestampStatus + } + return "" +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetRtt() uint32 { + if m != nil && m.Rtt != nil { + return *m.Rtt + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetEgress() uint32 { + if m != nil && m.Egress != nil { + return *m.Egress + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetIngress() uint32 { + if m != nil && m.Ingress != nil { + return *m.Ingress + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetEgressJitter() int32 { + if m != nil && m.EgressJitter != nil { + return *m.EgressJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetIngressJitter() int32 { + if m != nil && m.IngressJitter != nil { + return *m.IngressJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetRoundTripJitter() int32 { + if m != nil && m.RoundTripJitter != nil { + return *m.RoundTripJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetEgressInterarrivalJitter() int32 { + if m != nil && m.EgressInterarrivalJitter != nil { + return *m.EgressInterarrivalJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetIngressInterarrivalJitter() int32 { + if m != nil && m.IngressInterarrivalJitter != nil { + return *m.IngressInterarrivalJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetRoundTripInterarrivalJitter() int32 { + if m != nil && m.RoundTripInterarrivalJitter != nil { + return *m.RoundTripInterarrivalJitter + } + return 0 +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) GetHttpStatus() uint32 { + if m != nil && m.HttpStatus != nil { + return *m.HttpStatus + } + return 0 +} + +var E_JnprJunosExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Junos)(nil), + Field: 74, + Name: "jnpr_junos_ext", + Tag: "bytes,74,opt,name=jnpr_junos_ext", + Filename: "rmopd_render.proto", +} + +func init() { + proto.RegisterType((*Junos)(nil), "junos") + proto.RegisterType((*JunosRpmType)(nil), "junos.rpm_type") + proto.RegisterType((*JunosRpmTypeProbeResultsType)(nil), "junos.rpm_type.probe_results_type") + proto.RegisterType((*JunosRpmTypeProbeResultsTypeProbeTestResultsList)(nil), "junos.rpm_type.probe_results_type.probe_test_results_list") + proto.RegisterType((*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType)(nil), "junos.rpm_type.probe_results_type.probe_test_results_list.probe_tests_hw_ts_err_type") + proto.RegisterType((*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType)(nil), "junos.rpm_type.probe_results_type.probe_test_results_list.probe_single_results_type") + proto.RegisterType((*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList)(nil), "junos.rpm_type.probe_results_type.probe_test_results_list.probe_test_generic_results_list") + proto.RegisterType((*JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList)(nil), "junos.rpm_type.probe_results_type.probe_test_results_list.probe_test_generic_results_list.probe_test_generic_measurements_list") + proto.RegisterType((*JunosRpmTypeHistoryResultsType)(nil), "junos.rpm_type.history_results_type") + proto.RegisterType((*JunosRpmTypeHistoryResultsTypeHistoryTestResultsList)(nil), "junos.rpm_type.history_results_type.history_test_results_list") + proto.RegisterType((*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList)(nil), "junos.rpm_type.history_results_type.history_test_results_list.history_single_test_results_list") + proto.RegisterType((*JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType)(nil), "junos.rpm_type.history_results_type.history_test_results_list.history_single_test_results_list.probe_single_results_type") + proto.RegisterType((*JunosRpmTypeServerType)(nil), "junos.rpm_type.server_type") + proto.RegisterType((*JunosRpmTypeServerTypeActiveServersList)(nil), "junos.rpm_type.server_type.active_servers_list") + proto.RegisterType((*JunosTwampType)(nil), "junos.twamp_type") + proto.RegisterType((*JunosTwampTypeServerType)(nil), "junos.twamp_type.server_type") + proto.RegisterType((*JunosTwampTypeServerTypeControlConnectionList)(nil), "junos.twamp_type.server_type.control_connection_list") + proto.RegisterType((*JunosTwampTypeServerTypeTestSessionList)(nil), "junos.twamp_type.server_type.test_session_list") + proto.RegisterType((*JunosTwampTypeServerTypeTestSessionListTestSessionInfoList)(nil), "junos.twamp_type.server_type.test_session_list.test_session_info_list") + proto.RegisterType((*JunosTwampTypeClientType)(nil), "junos.twamp_type.client_type") + proto.RegisterType((*JunosTwampTypeClientTypeControlConnectionList)(nil), "junos.twamp_type.client_type.control_connection_list") + proto.RegisterType((*JunosTwampTypeClientTypeTestSessionList)(nil), "junos.twamp_type.client_type.test_session_list") + proto.RegisterType((*JunosTwampTypeClientTypeTestSessionListTestSessionInfoList)(nil), "junos.twamp_type.client_type.test_session_list.test_session_info_list") + proto.RegisterType((*JunosTwampTypeClientTypeProbeTestResultsList)(nil), "junos.twamp_type.client_type.probe_test_results_list") + proto.RegisterType((*JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType)(nil), "junos.twamp_type.client_type.probe_test_results_list.probe_tests_hw_ts_err_type") + proto.RegisterType((*JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType)(nil), "junos.twamp_type.client_type.probe_test_results_list.probe_single_results_type") + proto.RegisterType((*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList)(nil), "junos.twamp_type.client_type.probe_test_results_list.probe_test_generic_results_list") + proto.RegisterType((*JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList)(nil), "junos.twamp_type.client_type.probe_test_results_list.probe_test_generic_results_list.probe_test_generic_measurements_list") + proto.RegisterType((*JunosTwampTypeClientTypeHistoryTestResultsList)(nil), "junos.twamp_type.client_type.history_test_results_list") + proto.RegisterType((*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList)(nil), "junos.twamp_type.client_type.history_test_results_list.history_single_test_results_list") + proto.RegisterType((*JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType)(nil), "junos.twamp_type.client_type.history_test_results_list.history_single_test_results_list.probe_single_results_type") + proto.RegisterExtension(E_JnprJunosExt) +} + +func init() { proto.RegisterFile("rmopd_render.proto", fileDescriptor_0ea3d1731efd5e28) } + +var fileDescriptor_0ea3d1731efd5e28 = []byte{ + // 2263 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcf, 0x6f, 0x1c, 0x49, + 0xf5, 0xd7, 0x24, 0x71, 0x62, 0xd7, 0xfc, 0x70, 0x5c, 0xf9, 0xe1, 0x49, 0xfb, 0x1b, 0x27, 0x9b, + 0x6f, 0x16, 0x4c, 0x50, 0xc6, 0x28, 0x9b, 0x38, 0x89, 0xe3, 0x78, 0x13, 0x3b, 0xce, 0xc6, 0x91, + 0x36, 0x44, 0x33, 0x8e, 0x40, 0x7b, 0x69, 0x3a, 0xdd, 0x95, 0x99, 0xf2, 0x4e, 0xff, 0xa0, 0xaa, + 0x66, 0x1c, 0xe7, 0x82, 0xb4, 0x1c, 0x16, 0x89, 0x1b, 0x68, 0xc1, 0xe1, 0xb2, 0x27, 0x2e, 0x88, + 0x13, 0x17, 0x6e, 0x1c, 0xb8, 0xc0, 0x09, 0xad, 0x10, 0x17, 0x2e, 0x08, 0x22, 0x85, 0x03, 0x7f, + 0x05, 0xaa, 0x7a, 0x55, 0xed, 0x9e, 0x9e, 0x1e, 0xbb, 0x1d, 0xaf, 0x61, 0x97, 0x9d, 0xdb, 0xf4, + 0x7b, 0x9f, 0xf7, 0x5e, 0x4d, 0xfd, 0xf8, 0xd4, 0x7b, 0xaf, 0x10, 0x66, 0x7e, 0x18, 0x79, 0x36, + 0x23, 0x81, 0x47, 0x58, 0x2d, 0x62, 0xa1, 0x08, 0xad, 0x13, 0x82, 0xb4, 0x89, 0x4f, 0x04, 0xdb, + 0xb4, 0x45, 0x18, 0x81, 0xf0, 0xc2, 0xa7, 0x2e, 0x1a, 0x59, 0xef, 0x04, 0x21, 0xc7, 0x17, 0xd0, + 0x61, 0x16, 0xf9, 0xd5, 0x9f, 0x17, 0xce, 0x17, 0x66, 0x8a, 0x57, 0xc6, 0x6b, 0x4a, 0x5a, 0x63, + 0x91, 0x6f, 0x8b, 0xcd, 0x88, 0xd4, 0xa5, 0x12, 0xcf, 0xa0, 0x11, 0xb1, 0xe1, 0xf8, 0x51, 0x75, + 0x0b, 0x50, 0x13, 0x1a, 0xa5, 0x84, 0x80, 0x03, 0x80, 0xf5, 0x9b, 0x6f, 0xa0, 0x51, 0x63, 0x8b, + 0x1f, 0xa0, 0x72, 0xc4, 0xc2, 0xa7, 0xc4, 0x66, 0x84, 0x77, 0xda, 0x82, 0x9b, 0x20, 0x17, 0x52, + 0x41, 0x6a, 0x3d, 0x28, 0xf0, 0x57, 0x52, 0xb2, 0x3a, 0x88, 0xf0, 0x23, 0x34, 0xde, 0xa2, 0x5c, + 0x84, 0x6c, 0x33, 0xf6, 0xa5, 0x87, 0x72, 0x31, 0xed, 0x2b, 0x85, 0x03, 0x6f, 0x15, 0x2d, 0x35, + 0xfe, 0xae, 0xa2, 0xa3, 0x9c, 0xb0, 0x2e, 0x61, 0xd5, 0x97, 0xe0, 0x66, 0x2a, 0xed, 0x06, 0xd4, + 0x60, 0xad, 0xb1, 0xd6, 0xd6, 0x24, 0xc2, 0xfd, 0x43, 0xc5, 0xd4, 0x48, 0x05, 0xe1, 0x22, 0xf9, + 0x5f, 0x0f, 0xcf, 0x14, 0xaf, 0xcc, 0xef, 0xfe, 0x5f, 0x6b, 0xfd, 0xd6, 0x76, 0x9b, 0x72, 0x51, + 0x3f, 0xae, 0x14, 0x6b, 0x84, 0x0b, 0x3d, 0x6e, 0xeb, 0x67, 0xa7, 0xd1, 0xe4, 0x00, 0x34, 0x3e, + 0x89, 0x46, 0xc2, 0x8d, 0x80, 0xb0, 0xea, 0x3b, 0xe7, 0x0b, 0x33, 0x63, 0x75, 0xf8, 0xc0, 0x53, + 0x68, 0x4c, 0x41, 0x03, 0xc7, 0x27, 0xd5, 0xab, 0x4a, 0x33, 0x2a, 0x05, 0x8f, 0x1c, 0x9f, 0xe0, + 0xb7, 0x51, 0x45, 0x38, 0xac, 0x49, 0x84, 0xed, 0x78, 0x1e, 0x23, 0x9c, 0x57, 0xaf, 0x29, 0x44, + 0x19, 0xa4, 0x77, 0x41, 0x88, 0xcf, 0x22, 0xa4, 0x61, 0x1d, 0xd6, 0xae, 0xce, 0x29, 0xc8, 0x18, + 0x48, 0x9e, 0xb0, 0xb6, 0xf4, 0xc2, 0xc3, 0x0e, 0x73, 0x49, 0xec, 0xe5, 0x3a, 0x78, 0x01, 0xa9, + 0xf1, 0xf2, 0x0e, 0x3a, 0xe5, 0x11, 0x2e, 0x68, 0xe0, 0x08, 0x1a, 0x06, 0x36, 0x0d, 0x04, 0x61, + 0xcf, 0x1c, 0x97, 0x54, 0x6f, 0x28, 0xf4, 0xc9, 0x84, 0x72, 0xd5, 0xe8, 0x64, 0x68, 0xfd, 0x7f, + 0x37, 0x23, 0x52, 0xbd, 0x09, 0xa1, 0x61, 0x5a, 0xe4, 0xd4, 0x4f, 0xa2, 0x63, 0xd4, 0xf5, 0x23, + 0x9b, 0x7a, 0xd5, 0xf9, 0xf3, 0x85, 0x99, 0x72, 0xfd, 0xa8, 0xfc, 0x5c, 0xf5, 0xe2, 0xbf, 0xcd, + 0xe9, 0x0b, 0x52, 0xbd, 0xa5, 0x54, 0xea, 0x6f, 0x37, 0xe8, 0x0b, 0x82, 0xcf, 0xa1, 0x62, 0x4b, + 0x88, 0xc8, 0xe6, 0xc2, 0x11, 0x1d, 0x5e, 0x5d, 0x50, 0x6a, 0x24, 0x45, 0x0d, 0x25, 0xc1, 0x57, + 0xd0, 0x29, 0x16, 0x76, 0x04, 0x0d, 0x9a, 0x36, 0x0d, 0xb8, 0x70, 0x02, 0x97, 0xc0, 0x04, 0xde, + 0x56, 0x03, 0x38, 0xa1, 0x95, 0xab, 0x5a, 0xa7, 0xe6, 0xf2, 0x2c, 0x42, 0x4c, 0x08, 0x5b, 0xb4, + 0x18, 0xe1, 0xad, 0xea, 0xa2, 0xf2, 0x39, 0xc6, 0x84, 0x58, 0x53, 0x02, 0x7c, 0x09, 0x4d, 0x48, + 0xf5, 0x3a, 0x15, 0x42, 0x6e, 0x2b, 0x40, 0xbd, 0xab, 0x50, 0xe3, 0x4c, 0x88, 0x87, 0x4a, 0xde, + 0x8b, 0xe5, 0xc2, 0xf3, 0x48, 0xd7, 0x60, 0xef, 0xc4, 0xd8, 0x86, 0x92, 0x6b, 0xec, 0x59, 0x84, + 0x68, 0x33, 0x76, 0x78, 0x17, 0xc2, 0xd2, 0x66, 0xc2, 0x95, 0x54, 0xf7, 0x86, 0x5d, 0x02, 0x57, + 0xb4, 0xc9, 0xd2, 0x61, 0x25, 0xb6, 0x37, 0xec, 0x72, 0x8c, 0x4d, 0x87, 0x25, 0xdb, 0x61, 0xef, + 0x41, 0x58, 0x92, 0x0c, 0x4b, 0xfa, 0xc2, 0xae, 0x80, 0x2b, 0xd2, 0x1f, 0x96, 0xf4, 0x85, 0xbd, + 0x1f, 0x63, 0x7b, 0xc2, 0xfe, 0xa8, 0x80, 0x4e, 0x6d, 0xef, 0x7f, 0x6e, 0xb7, 0x36, 0x6c, 0xc1, + 0x6d, 0xc2, 0x98, 0xa1, 0x96, 0x27, 0x6f, 0x7e, 0xdc, 0x6a, 0x99, 0x8e, 0x81, 0x01, 0x26, 0xe2, + 0x93, 0xc8, 0x1f, 0x6c, 0xac, 0xf1, 0x15, 0xc6, 0xf0, 0xc7, 0x05, 0x74, 0x12, 0x2c, 0x38, 0x0d, + 0x9a, 0x6d, 0x92, 0x26, 0xa6, 0xb5, 0x7d, 0x8f, 0xa4, 0xd7, 0x2f, 0x0c, 0x04, 0x98, 0xa6, 0xa1, + 0x34, 0x86, 0xcc, 0xb6, 0x0a, 0xc8, 0x4a, 0x78, 0x6a, 0x92, 0x80, 0x30, 0xea, 0xc6, 0xe3, 0x79, + 0x09, 0x44, 0xf4, 0xc1, 0xe7, 0x32, 0x33, 0x69, 0xef, 0x40, 0x54, 0x93, 0xf1, 0xf4, 0xbc, 0x07, + 0x6a, 0xc3, 0x57, 0x9f, 0x1c, 0x4a, 0x0e, 0x2d, 0x3d, 0xad, 0x78, 0x01, 0x4d, 0xd1, 0xa0, 0xeb, + 0xb4, 0xa9, 0x67, 0xbb, 0x6d, 0x4a, 0x02, 0x19, 0xd6, 0xed, 0x4a, 0x88, 0x1b, 0x08, 0x20, 0xb2, + 0x72, 0x7d, 0x52, 0x43, 0x96, 0x15, 0xa2, 0x4e, 0xdc, 0xee, 0x1a, 0x5f, 0x0e, 0x04, 0xc3, 0xd7, + 0x51, 0x35, 0x65, 0x1d, 0x84, 0xc6, 0xf4, 0xaa, 0x32, 0x3d, 0xd5, 0x63, 0xfa, 0x28, 0x14, 0x60, + 0x98, 0x08, 0xab, 0x69, 0x9e, 0x93, 0xc0, 0x8b, 0xc3, 0x5e, 0xeb, 0x09, 0xdb, 0x50, 0x88, 0x06, + 0x09, 0x3c, 0x1d, 0x76, 0x09, 0x4d, 0xa7, 0xad, 0x23, 0x19, 0x5c, 0x50, 0x9f, 0x80, 0x83, 0x39, + 0xe5, 0xc0, 0xea, 0x75, 0x20, 0x31, 0x6b, 0xd4, 0x27, 0xd2, 0x87, 0xf5, 0x8f, 0x23, 0xe8, 0xcc, + 0xc0, 0x45, 0x4e, 0x90, 0x1e, 0xf5, 0x89, 0xa6, 0x73, 0x4d, 0x7a, 0xd4, 0x27, 0xf8, 0x6b, 0x68, + 0x5c, 0xdb, 0x9a, 0xb0, 0x9a, 0xd8, 0xe1, 0xb6, 0x6d, 0xe8, 0x40, 0xf8, 0x2d, 0x54, 0xd2, 0x38, + 0xe0, 0x39, 0xe0, 0xf6, 0x22, 0x80, 0x80, 0xe8, 0xe6, 0xd1, 0x99, 0x96, 0xc3, 0xbc, 0x0d, 0x87, + 0x41, 0x30, 0x2e, 0xe4, 0x85, 0xae, 0xf1, 0x40, 0xf4, 0x93, 0x06, 0xb0, 0x66, 0xf4, 0xda, 0xf6, + 0x38, 0x3a, 0xcc, 0x84, 0x50, 0x5c, 0x5f, 0xae, 0xcb, 0x9f, 0xf8, 0x34, 0x3a, 0x4a, 0x9a, 0xea, + 0x02, 0xb8, 0x01, 0x64, 0x0c, 0x5f, 0xb8, 0x8a, 0x8e, 0xd1, 0x00, 0x14, 0x37, 0x95, 0xc2, 0x7c, + 0xe2, 0xff, 0x47, 0x65, 0xc0, 0x68, 0xaa, 0x50, 0x2c, 0x3e, 0x52, 0x2f, 0x81, 0x10, 0x68, 0x42, + 0xde, 0x2f, 0x1a, 0x6f, 0x50, 0xb7, 0x14, 0xaa, 0xac, 0xa5, 0x1a, 0x26, 0x59, 0x33, 0xec, 0xc8, + 0x75, 0x64, 0x34, 0x32, 0xc8, 0x05, 0x85, 0x1c, 0x57, 0x8a, 0x35, 0x46, 0x23, 0x8d, 0x5d, 0x40, + 0x96, 0x8e, 0xab, 0xae, 0x21, 0x87, 0x31, 0xda, 0x75, 0xda, 0xc6, 0xe8, 0xb6, 0x32, 0xaa, 0x02, + 0x62, 0x35, 0x01, 0xd0, 0xd6, 0x8b, 0x72, 0xff, 0x0c, 0x36, 0x5f, 0x54, 0xe6, 0x67, 0x34, 0x24, + 0xc3, 0x7e, 0x19, 0x4d, 0x27, 0x46, 0x9a, 0xe5, 0xe2, 0x5d, 0xe5, 0x62, 0x2a, 0x1e, 0x76, 0x86, + 0x93, 0xd4, 0x25, 0x76, 0x27, 0x7d, 0x89, 0x59, 0xff, 0x1a, 0x41, 0xe7, 0x76, 0x39, 0xb8, 0xf8, + 0x12, 0x2a, 0x9b, 0x6f, 0xee, 0x86, 0x91, 0xde, 0x6c, 0x4b, 0x23, 0x1f, 0xdd, 0x39, 0x34, 0x5a, + 0xa8, 0x97, 0xb4, 0xae, 0x21, 0x55, 0x32, 0xa0, 0x72, 0xc7, 0xd5, 0xbe, 0xd3, 0x27, 0x0c, 0x36, + 0x2a, 0x97, 0x7b, 0x0e, 0x7f, 0xdd, 0xec, 0x4b, 0x46, 0x78, 0x14, 0x06, 0x9c, 0x70, 0x7d, 0x94, + 0x2a, 0x26, 0x97, 0x03, 0xa9, 0x04, 0xb6, 0x43, 0xce, 0xed, 0x88, 0x30, 0x97, 0x04, 0xc2, 0x69, + 0x12, 0x7d, 0x64, 0x2a, 0x52, 0xfc, 0x38, 0x96, 0xe2, 0x8b, 0xa8, 0xd2, 0x76, 0xb8, 0x80, 0x3f, + 0xa0, 0x36, 0x3a, 0x64, 0x16, 0x25, 0x29, 0x95, 0x74, 0xa3, 0xf6, 0xf9, 0x1f, 0x0a, 0x99, 0x7f, + 0xd4, 0x27, 0x0e, 0xef, 0x30, 0xe2, 0x93, 0x60, 0x3b, 0x1b, 0xfb, 0xc1, 0xc1, 0x91, 0x60, 0x6d, + 0x97, 0x21, 0x00, 0x53, 0xfe, 0x5f, 0x9a, 0x29, 0xdf, 0x4f, 0x40, 0xac, 0xdf, 0x1e, 0x42, 0x17, + 0xf3, 0xb8, 0xc1, 0xb7, 0xd0, 0x69, 0xc0, 0x25, 0x54, 0x90, 0x22, 0xf5, 0x2c, 0x20, 0x5c, 0x50, + 0x89, 0x10, 0x2a, 0x69, 0xaa, 0xa2, 0x63, 0xdc, 0xf1, 0xa3, 0x36, 0xe1, 0x7a, 0x11, 0xcd, 0xa7, + 0xcc, 0x9a, 0x7c, 0x1a, 0xd8, 0x1e, 0x69, 0x3b, 0x9b, 0x7a, 0xed, 0x46, 0x7d, 0x1a, 0xdc, 0x93, + 0xdf, 0x4a, 0xe9, 0x3c, 0xd7, 0xca, 0x39, 0xad, 0x74, 0x9e, 0xc7, 0x4a, 0xa7, 0xdb, 0xd4, 0x4a, + 0xa0, 0x84, 0x51, 0xa7, 0xdb, 0x04, 0xe5, 0x5b, 0xa8, 0xa4, 0x33, 0x01, 0xd0, 0x03, 0x3b, 0x14, + 0x41, 0x16, 0x43, 0x74, 0x02, 0x00, 0x10, 0xc9, 0x13, 0x47, 0xea, 0x45, 0x90, 0xc5, 0x21, 0x78, + 0xc7, 0xd7, 0xfa, 0x79, 0xa5, 0x1f, 0xe5, 0x1d, 0x5f, 0x29, 0xad, 0xd7, 0x15, 0x74, 0x32, 0x2b, + 0xf3, 0xc7, 0xdf, 0xdf, 0x96, 0x67, 0xa5, 0xe7, 0x8b, 0x79, 0xca, 0x87, 0x5a, 0x96, 0x07, 0x58, + 0x4f, 0xac, 0x55, 0xc9, 0x24, 0xfd, 0xaf, 0x65, 0x74, 0x66, 0xa0, 0x05, 0xfe, 0xb4, 0x80, 0xa6, + 0x8c, 0x56, 0x93, 0x7f, 0xd6, 0xc0, 0xec, 0xfd, 0x0d, 0xac, 0xb6, 0x43, 0x08, 0x18, 0x79, 0x55, + 0x23, 0x20, 0x97, 0x48, 0x8e, 0xff, 0x65, 0x09, 0x9d, 0xdf, 0xcd, 0x7c, 0x58, 0x6d, 0x0c, 0xab, + 0x8d, 0xff, 0xf9, 0x6a, 0xe3, 0xd7, 0x83, 0x52, 0x7c, 0x5d, 0x6c, 0x6c, 0x1e, 0xf0, 0x19, 0xdd, + 0x5b, 0x1d, 0x30, 0x4c, 0x2a, 0x87, 0x49, 0xe5, 0x81, 0x27, 0x95, 0x7f, 0x2e, 0xa0, 0x62, 0xa2, + 0x35, 0x86, 0xbf, 0x83, 0x2a, 0x8e, 0x2b, 0x68, 0x97, 0xe8, 0x5a, 0x28, 0xbe, 0xbf, 0x66, 0x77, + 0x68, 0xa8, 0xd5, 0x7a, 0x4d, 0xe0, 0x3e, 0x2a, 0x83, 0x10, 0xaa, 0x25, 0x6e, 0xad, 0xa3, 0x13, + 0x19, 0x28, 0x6c, 0xa1, 0x51, 0xd5, 0xc0, 0x74, 0xc3, 0xb6, 0xde, 0xc3, 0xf1, 0x37, 0xc6, 0xe8, + 0x48, 0x14, 0x32, 0x93, 0x99, 0xaa, 0xdf, 0x72, 0x2f, 0x78, 0x5c, 0x24, 0xe8, 0x1f, 0xf6, 0x6b, + 0xc9, 0xe3, 0x22, 0xa6, 0x7d, 0xeb, 0x27, 0x37, 0x11, 0xda, 0x6e, 0x65, 0xe2, 0xb9, 0xb8, 0x39, + 0xa8, 0xcf, 0xf9, 0xd9, 0xbe, 0x76, 0x67, 0x56, 0x7b, 0x50, 0xda, 0x41, 0x1d, 0x6a, 0x5a, 0x00, + 0x19, 0x76, 0xba, 0x50, 0x05, 0x3b, 0xf8, 0xb0, 0x7e, 0x75, 0xac, 0x77, 0x4e, 0x09, 0xc2, 0x6e, + 0x18, 0x08, 0x16, 0xb6, 0x6d, 0x37, 0x0c, 0x02, 0xe2, 0xca, 0x4b, 0xca, 0xcc, 0xeb, 0xb5, 0x1d, + 0xc7, 0x52, 0xeb, 0x37, 0x84, 0xd9, 0x9d, 0xd0, 0x8a, 0xe5, 0x58, 0x8e, 0x1b, 0xa8, 0x04, 0x97, + 0x16, 0xe1, 0x5c, 0x06, 0xd8, 0xea, 0x5d, 0xb8, 0x01, 0x01, 0x92, 0x26, 0xe0, 0xba, 0xa8, 0x6e, + 0x3a, 0x90, 0x58, 0x9f, 0x1d, 0x42, 0x93, 0x03, 0xc6, 0x20, 0x8b, 0x8d, 0x84, 0x88, 0x7a, 0x50, + 0xdf, 0xc7, 0xc5, 0xc6, 0xb6, 0x6e, 0xd5, 0x93, 0xc7, 0x53, 0x4f, 0x95, 0xb9, 0xe5, 0x35, 0x1b, + 0x81, 0xd4, 0xdc, 0xf2, 0xe7, 0x50, 0x51, 0xc3, 0xd4, 0xca, 0x43, 0xca, 0x8a, 0x40, 0xf4, 0x58, + 0xae, 0xbf, 0xcc, 0x16, 0x60, 0xf4, 0xc6, 0xcf, 0x9c, 0xce, 0x16, 0x94, 0x34, 0xe1, 0x47, 0xc3, + 0x94, 0x1f, 0xa0, 0x1f, 0x04, 0xa2, 0xc7, 0x7a, 0x1f, 0x99, 0x3f, 0xed, 0x86, 0x9d, 0x40, 0x68, + 0x32, 0x2a, 0x69, 0xe1, 0xb2, 0x94, 0xe1, 0x59, 0x74, 0xc2, 0xe9, 0x88, 0x16, 0x09, 0x04, 0x75, + 0x21, 0xed, 0xf0, 0x43, 0xcf, 0xe4, 0x11, 0xb8, 0x57, 0xf5, 0x7e, 0xe8, 0x91, 0xa4, 0x57, 0x79, + 0xe2, 0x88, 0x62, 0xaa, 0xb1, 0xd8, 0xab, 0x3c, 0x73, 0xc4, 0xfa, 0xf1, 0x61, 0x34, 0xd1, 0x37, + 0xeb, 0x7b, 0x9a, 0x4c, 0x9e, 0x72, 0x40, 0x83, 0x67, 0xa1, 0xd9, 0x4f, 0xf7, 0xf7, 0xb8, 0xdc, + 0xb5, 0x3e, 0x4f, 0xb0, 0x0b, 0xc6, 0x13, 0xbb, 0x60, 0x35, 0x78, 0x16, 0x5a, 0x7f, 0x29, 0xa0, + 0xd3, 0xd9, 0x58, 0x3c, 0x8d, 0x8e, 0x29, 0x4d, 0x7a, 0xd4, 0x47, 0xa5, 0x14, 0x16, 0x9f, 0xab, + 0x17, 0x8c, 0xf4, 0xe2, 0x83, 0xb4, 0x67, 0xd1, 0x14, 0x2c, 0xb9, 0xf8, 0x20, 0x52, 0x8b, 0xf6, + 0x4d, 0x34, 0xc1, 0xc8, 0xb3, 0x36, 0x71, 0x45, 0x98, 0x5e, 0xff, 0xe3, 0xb1, 0xc2, 0x78, 0x7b, + 0x1b, 0x55, 0xb6, 0xc1, 0x89, 0x5d, 0x50, 0x8e, 0xa5, 0xd2, 0xa7, 0xf5, 0xcf, 0x6f, 0xc5, 0x5b, + 0xee, 0x8d, 0x0e, 0x6b, 0xc2, 0xf6, 0x60, 0x0e, 0x6b, 0x32, 0xc0, 0xce, 0x87, 0x15, 0x7b, 0x99, + 0x0f, 0x17, 0x2f, 0x73, 0x8d, 0x3d, 0xf7, 0x9b, 0x05, 0x5e, 0x1f, 0x50, 0x81, 0xfd, 0x02, 0xe2, + 0x5c, 0xdf, 0x39, 0xce, 0xde, 0x4a, 0xaf, 0x4f, 0x76, 0xa0, 0x9f, 0x19, 0x54, 0x32, 0x2a, 0x95, + 0x5d, 0xf7, 0x54, 0xca, 0x45, 0xad, 0x32, 0x85, 0xca, 0x97, 0x8f, 0x7c, 0x64, 0x05, 0xde, 0x11, + 0xad, 0x24, 0xe5, 0x8c, 0x4a, 0x81, 0x24, 0x1a, 0xeb, 0xf5, 0x91, 0x2c, 0x0e, 0xf9, 0x0a, 0xcf, + 0xc8, 0x5e, 0x39, 0x71, 0xc7, 0x53, 0x95, 0x9b, 0x13, 0xff, 0x36, 0x98, 0x13, 0x67, 0x90, 0x19, + 0x7c, 0xd6, 0x5a, 0x68, 0x95, 0x59, 0x8b, 0x2f, 0x2c, 0x3b, 0xfe, 0x6e, 0xf2, 0x73, 0x7d, 0x9f, + 0x1c, 0x58, 0xc4, 0x5f, 0xdb, 0xa1, 0x88, 0xef, 0x29, 0xc6, 0xe7, 0x52, 0xc5, 0x78, 0xff, 0x46, + 0xbe, 0x9e, 0x63, 0x23, 0xdf, 0xc8, 0xde, 0xc8, 0x3d, 0x8b, 0x70, 0x33, 0xc7, 0x22, 0xcc, 0xe7, + 0x5b, 0x84, 0x5b, 0xb9, 0x17, 0x61, 0x21, 0x63, 0x11, 0x32, 0x0e, 0xd9, 0xed, 0x1c, 0x87, 0x6c, + 0xb1, 0xef, 0x90, 0x5d, 0x42, 0x13, 0xaa, 0x4d, 0x0b, 0x45, 0xb2, 0x2d, 0x42, 0xe1, 0xb4, 0x4d, + 0x13, 0x41, 0x2a, 0xa0, 0x4a, 0x5e, 0x93, 0x62, 0x3c, 0x83, 0x8e, 0x27, 0xb1, 0xbc, 0xe3, 0xba, + 0xba, 0x7a, 0xa8, 0x6c, 0x43, 0x1b, 0x1d, 0xd7, 0x4d, 0x75, 0x2e, 0xee, 0xe6, 0xea, 0x5c, 0x2c, + 0xed, 0xa1, 0x73, 0xb1, 0x9c, 0xa7, 0x73, 0x71, 0x2f, 0x57, 0xe7, 0x62, 0x65, 0x0f, 0x9d, 0x8b, + 0xfb, 0x79, 0x3a, 0x17, 0xef, 0xe5, 0xea, 0x5c, 0x3c, 0xd8, 0x43, 0xe7, 0x62, 0x35, 0xbb, 0x73, + 0x31, 0xb0, 0xa5, 0xf4, 0x70, 0x70, 0x4b, 0xe9, 0x87, 0xbb, 0xbd, 0xad, 0x3e, 0x7e, 0xa3, 0x8c, + 0x60, 0x8f, 0xcf, 0xaa, 0x1f, 0xed, 0xf2, 0xac, 0xfa, 0xed, 0xfd, 0x0c, 0x22, 0xef, 0x8b, 0xea, + 0x4f, 0x73, 0xbd, 0xa8, 0x3e, 0xd9, 0xef, 0x7c, 0x0c, 0x1f, 0x53, 0x87, 0x8f, 0xa9, 0xc3, 0xbe, + 0xd7, 0x97, 0xa2, 0xef, 0xf5, 0xfa, 0xab, 0xf2, 0x98, 0xfa, 0xfb, 0xfc, 0x8f, 0xa9, 0x2f, 0x0e, + 0x84, 0xff, 0x86, 0xef, 0xa8, 0xff, 0xcd, 0x77, 0xd4, 0x8f, 0xc7, 0x77, 0x7a, 0xbb, 0xdc, 0xca, + 0xf7, 0x76, 0xf9, 0xdd, 0x37, 0x2c, 0xe9, 0xf7, 0xf3, 0x68, 0xf9, 0xa7, 0xf2, 0xc1, 0x3c, 0x5a, + 0x0e, 0x4b, 0x90, 0x61, 0x09, 0x32, 0x2c, 0x41, 0xfe, 0x43, 0x25, 0xc8, 0x2f, 0x77, 0x79, 0x70, + 0x65, 0x07, 0x45, 0x2c, 0xc3, 0x97, 0xd6, 0x61, 0xc6, 0xf9, 0xc5, 0xca, 0x38, 0xe7, 0x57, 0x50, + 0x65, 0x3d, 0x88, 0x98, 0xad, 0x76, 0xbc, 0x4d, 0x9e, 0x0b, 0x3c, 0x59, 0x7b, 0xd8, 0x09, 0x68, + 0x44, 0xd8, 0x23, 0x22, 0x36, 0x42, 0xf6, 0xa1, 0x4c, 0x14, 0x79, 0xc8, 0xb8, 0x3a, 0x51, 0xc5, + 0x2b, 0x47, 0xe1, 0x70, 0xd4, 0x4b, 0xd2, 0xec, 0xa1, 0xfc, 0xb9, 0xf2, 0x5c, 0x2c, 0x7d, 0xef, + 0x8f, 0xaf, 0xa6, 0x0b, 0x9f, 0xbd, 0x9a, 0x2e, 0xfc, 0xfd, 0xd5, 0x74, 0xe1, 0x83, 0x7a, 0x93, + 0x0a, 0x09, 0x93, 0x5e, 0x6a, 0x01, 0x11, 0xb3, 0xd4, 0x25, 0x4f, 0x09, 0x6b, 0xce, 0xb6, 0x88, + 0xd3, 0x16, 0xad, 0xa7, 0xa1, 0xb8, 0x4c, 0x83, 0x26, 0xe1, 0xe2, 0xf2, 0xba, 0xa0, 0x97, 0xe5, + 0xb5, 0xd6, 0x25, 0xb3, 0xd1, 0x87, 0xcd, 0xd9, 0x75, 0x41, 0x67, 0x1d, 0xcf, 0x89, 0x04, 0x61, + 0x7c, 0x16, 0xc6, 0x34, 0xcb, 0xdd, 0x16, 0xf1, 0x9d, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xa7, + 0x0b, 0x0a, 0xda, 0x74, 0x32, 0x00, 0x00, +} + +func (m *Junos) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Junos) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Junos) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Twamp != nil { + { + size, err := m.Twamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Rpm != nil { + { + size, err := m.Rpm.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Server != nil { + { + size, err := m.Server.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.HistoryResults != nil { + { + size, err := m.HistoryResults.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ProbeResults != nil { + { + size, err := m.ProbeResults.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeProbeResultsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeProbeResultsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeProbeResultsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ProbeTestResults) > 0 { + for iNdEx := len(m.ProbeTestResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTestResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ProbeTestGenericResults) > 0 { + for iNdEx := len(m.ProbeTestGenericResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTestGenericResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + if m.ProbeSingleResults != nil { + { + size, err := m.ProbeSingleResults.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ProbeTestsHwTsErr != nil { + { + size, err := m.ProbeTestsHwTsErr.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.EgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.EgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.EgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.IgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.IgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.IgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.RttStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RttJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttJitterThresh)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.RttThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttThresh)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.RoutingInstanceName != nil { + i -= len(*m.RoutingInstanceName) + copy(dAtA[i:], *m.RoutingInstanceName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.RoutingInstanceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.HttpStatus != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.HttpStatus)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.TestSize != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.TestSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.IcmpId != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IcmpId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.ProbeType != nil { + i -= len(*m.ProbeType) + copy(dAtA[i:], *m.ProbeType) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.DestinationInterface != nil { + i -= len(*m.DestinationInterface) + copy(dAtA[i:], *m.DestinationInterface) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.DestinationInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.SourceAddress != nil { + i -= len(*m.SourceAddress) + copy(dAtA[i:], *m.SourceAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SourceAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.TargetUrl != nil { + i -= len(*m.TargetUrl) + copy(dAtA[i:], *m.TargetUrl) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TargetUrl))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.TargetAddress != nil { + i -= len(*m.TargetAddress) + copy(dAtA[i:], *m.TargetAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TargetAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.TestName != nil { + i -= len(*m.TestName) + copy(dAtA[i:], *m.TestName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TestName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Owner != nil { + i -= len(*m.Owner) + copy(dAtA[i:], *m.Owner) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.Owner))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InvalidServerSpentTimeCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidServerSpentTimeCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InvalidServerSendTsCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidServerSendTsCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InvalidClientNotsCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidClientNotsCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InvalidClientRecvTsCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidClientRecvTsCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HttpStatus != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.HttpStatus)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RoundTripInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.IngressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.EgressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.RoundTripJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.IngressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.EgressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.Ingress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Ingress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Egress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Egress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Rtt != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Rtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.HardwareTimestampStatus != nil { + i -= len(*m.HardwareTimestampStatus) + copy(dAtA[i:], *m.HardwareTimestampStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.HardwareTimestampStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ProbeStatus != nil { + i -= len(*m.ProbeStatus) + copy(dAtA[i:], *m.ProbeStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.ProbeSentTime != nil { + i -= len(*m.ProbeSentTime) + copy(dAtA[i:], *m.ProbeSentTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeSentTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ProbeTime != nil { + i -= len(*m.ProbeTime) + copy(dAtA[i:], *m.ProbeTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ProbeTestGenericMeasurements) > 0 { + for iNdEx := len(m.ProbeTestGenericMeasurements) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTestGenericMeasurements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.LastTestTime != nil { + i -= len(*m.LastTestTime) + copy(dAtA[i:], *m.LastTestTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.LastTestTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.LossPercentage != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.LossPercentage)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ProbeResponses != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ProbeResponses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ProbesSent != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ProbesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ResultsScope != nil { + i -= len(*m.ResultsScope) + copy(dAtA[i:], *m.ResultsScope) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ResultsScope))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SumDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SumDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.StddevDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.StddevDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.JitterDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.JitterDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.AvgDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.AvgDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.MaxDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.MaxDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.MinDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.MinDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Samples != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Samples)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ProbeMeasurementType != nil { + i -= len(*m.ProbeMeasurementType) + copy(dAtA[i:], *m.ProbeMeasurementType) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeMeasurementType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeHistoryResultsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeHistoryResultsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeHistoryResultsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.HistoryTestResults) > 0 { + for iNdEx := len(m.HistoryTestResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HistoryTestResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.HistorySingleTestResults) > 0 { + for iNdEx := len(m.HistorySingleTestResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HistorySingleTestResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ProbeSingleResults != nil { + { + size, err := m.ProbeSingleResults.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.EgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.EgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.EgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.IgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.IgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.IgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.RttStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RttJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttJitterThresh)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.RttThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttThresh)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.RoutingInstanceName != nil { + i -= len(*m.RoutingInstanceName) + copy(dAtA[i:], *m.RoutingInstanceName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.RoutingInstanceName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.HttpStatus != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.HttpStatus)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.TestSize != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.TestSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.IcmpId != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IcmpId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.ProbeType != nil { + i -= len(*m.ProbeType) + copy(dAtA[i:], *m.ProbeType) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.DestinationInterface != nil { + i -= len(*m.DestinationInterface) + copy(dAtA[i:], *m.DestinationInterface) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.DestinationInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.SourceAddress != nil { + i -= len(*m.SourceAddress) + copy(dAtA[i:], *m.SourceAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SourceAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.TargetUrl != nil { + i -= len(*m.TargetUrl) + copy(dAtA[i:], *m.TargetUrl) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TargetUrl))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.TargetAddress != nil { + i -= len(*m.TargetAddress) + copy(dAtA[i:], *m.TargetAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TargetAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.TestName != nil { + i -= len(*m.TestName) + copy(dAtA[i:], *m.TestName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TestName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Owner != nil { + i -= len(*m.Owner) + copy(dAtA[i:], *m.Owner) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.Owner))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HttpStatus != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.HttpStatus)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RoundTripInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.IngressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.EgressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.RoundTripJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.IngressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.EgressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.Ingress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Ingress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Egress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Egress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Rtt != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Rtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.HardwareTimestampStatus != nil { + i -= len(*m.HardwareTimestampStatus) + copy(dAtA[i:], *m.HardwareTimestampStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.HardwareTimestampStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ProbeStatus != nil { + i -= len(*m.ProbeStatus) + copy(dAtA[i:], *m.ProbeStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.ProbeSentTime != nil { + i -= len(*m.ProbeSentTime) + copy(dAtA[i:], *m.ProbeSentTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeSentTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ProbeTime != nil { + i -= len(*m.ProbeTime) + copy(dAtA[i:], *m.ProbeTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeServerType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeServerType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeServerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ActiveServers) > 0 { + for iNdEx := len(m.ActiveServers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ActiveServers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosRpmTypeServerTypeActiveServersList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosRpmTypeServerTypeActiveServersList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosRpmTypeServerTypeActiveServersList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DstInterface != nil { + i -= len(*m.DstInterface) + copy(dAtA[i:], *m.DstInterface) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.DstInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Port != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Port)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Protocol != nil { + i -= len(*m.Protocol) + copy(dAtA[i:], *m.Protocol) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.Protocol))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Client != nil { + { + size, err := m.Client.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Server != nil { + { + size, err := m.Server.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeServerType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeServerType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeServerType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TestSession) > 0 { + for iNdEx := len(m.TestSession) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TestSession[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.ControlConnection) > 0 { + for iNdEx := len(m.ControlConnection) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ControlConnection[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SessionState != nil { + i -= len(*m.SessionState) + copy(dAtA[i:], *m.SessionState) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SessionState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.AuthenticationMode != nil { + i -= len(*m.AuthenticationMode) + copy(dAtA[i:], *m.AuthenticationMode) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.AuthenticationMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SessionCount != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SessionCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ServerPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ServerPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ServerAddress != nil { + i -= len(*m.ServerAddress) + copy(dAtA[i:], *m.ServerAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ServerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ClientPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ClientPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ClientAddress != nil { + i -= len(*m.ClientAddress) + copy(dAtA[i:], *m.ClientAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ClientAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ConnectionId != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ConnectionId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeServerTypeTestSessionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeServerTypeTestSessionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeServerTypeTestSessionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TestSessionInfo) > 0 { + for iNdEx := len(m.TestSessionInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TestSessionInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.ConnectionId != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ConnectionId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ReflectorPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ReflectorPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ReflectorAddress != nil { + i -= len(*m.ReflectorAddress) + copy(dAtA[i:], *m.ReflectorAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ReflectorAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.SenderPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SenderPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SenderAddress != nil { + i -= len(*m.SenderAddress) + copy(dAtA[i:], *m.SenderAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SenderAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.TestId != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.TestId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.HistoryTestResults) > 0 { + for iNdEx := len(m.HistoryTestResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HistoryTestResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + } + if len(m.ProbeTestResults) > 0 { + for iNdEx := len(m.ProbeTestResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTestResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + if len(m.TestSession) > 0 { + for iNdEx := len(m.TestSession) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TestSession[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.ControlConnection) > 0 { + for iNdEx := len(m.ControlConnection) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ControlConnection[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AuthMode != nil { + i -= len(*m.AuthMode) + copy(dAtA[i:], *m.AuthMode) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.AuthMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SessionCount != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SessionCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ServerPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ServerPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ServerAddress != nil { + i -= len(*m.ServerAddress) + copy(dAtA[i:], *m.ServerAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ServerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ClientPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ClientPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ClientAddress != nil { + i -= len(*m.ClientAddress) + copy(dAtA[i:], *m.ClientAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ClientAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ControlName != nil { + i -= len(*m.ControlName) + copy(dAtA[i:], *m.ControlName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ControlName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeTestSessionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeTestSessionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeTestSessionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TestSessionInfo) > 0 { + for iNdEx := len(m.TestSessionInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TestSessionInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.AuthMode != nil { + i -= len(*m.AuthMode) + copy(dAtA[i:], *m.AuthMode) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.AuthMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SessionCount != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SessionCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ServerPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ServerPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ServerAddress != nil { + i -= len(*m.ServerAddress) + copy(dAtA[i:], *m.ServerAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ServerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ClientPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ClientPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ClientAddress != nil { + i -= len(*m.ClientAddress) + copy(dAtA[i:], *m.ClientAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ClientAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ControlName != nil { + i -= len(*m.ControlName) + copy(dAtA[i:], *m.ControlName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ControlName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ReflectorPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ReflectorPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ReflectorAddress != nil { + i -= len(*m.ReflectorAddress) + copy(dAtA[i:], *m.ReflectorAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ReflectorAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.SenderPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SenderPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SenderAddress != nil { + i -= len(*m.SenderAddress) + copy(dAtA[i:], *m.SenderAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SenderAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.SessionName != nil { + i -= len(*m.SessionName) + copy(dAtA[i:], *m.SessionName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SessionName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ProbeTestGenericResults) > 0 { + for iNdEx := len(m.ProbeTestGenericResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTestGenericResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + if m.ProbeSingleResults != nil { + { + size, err := m.ProbeSingleResults.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ProbeTestsHwTsErr != nil { + { + size, err := m.ProbeTestsHwTsErr.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.RoutingInstanceName != nil { + i -= len(*m.RoutingInstanceName) + copy(dAtA[i:], *m.RoutingInstanceName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.RoutingInstanceName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd2 + } + if m.EgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.EgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.EgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.IgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.IgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.IgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.RttStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.RttJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.RttThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.LossThreshSucc != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.LossThreshSucc)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.LossThreshTotal != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.LossThreshTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.ServerPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ServerPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.ServerAddress != nil { + i -= len(*m.ServerAddress) + copy(dAtA[i:], *m.ServerAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ServerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.ReflectorPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ReflectorPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.ReflectorAddress != nil { + i -= len(*m.ReflectorAddress) + copy(dAtA[i:], *m.ReflectorAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ReflectorAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.SenderPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SenderPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.SenderAddress != nil { + i -= len(*m.SenderAddress) + copy(dAtA[i:], *m.SenderAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SenderAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.ClientPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ClientPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ClientAddress != nil { + i -= len(*m.ClientAddress) + copy(dAtA[i:], *m.ClientAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ClientAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.TestSize != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.TestSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DestinationInterface != nil { + i -= len(*m.DestinationInterface) + copy(dAtA[i:], *m.DestinationInterface) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.DestinationInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.TestName != nil { + i -= len(*m.TestName) + copy(dAtA[i:], *m.TestName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TestName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Owner != nil { + i -= len(*m.Owner) + copy(dAtA[i:], *m.Owner) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.Owner))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InvalidServerSpentTimeCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidServerSpentTimeCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InvalidServerSendTsCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidServerSendTsCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InvalidClientNotsCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidClientNotsCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InvalidClientRecvTsCntr != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.InvalidClientRecvTsCntr)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HttpStatus != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.HttpStatus)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RoundTripInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.IngressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.EgressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.RoundTripJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.IngressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.EgressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.Ingress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Ingress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Egress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Egress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Rtt != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Rtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.HardwareTimestampStatus != nil { + i -= len(*m.HardwareTimestampStatus) + copy(dAtA[i:], *m.HardwareTimestampStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.HardwareTimestampStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ProbeStatus != nil { + i -= len(*m.ProbeStatus) + copy(dAtA[i:], *m.ProbeStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.ProbeSentTime != nil { + i -= len(*m.ProbeSentTime) + copy(dAtA[i:], *m.ProbeSentTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeSentTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ProbeTime != nil { + i -= len(*m.ProbeTime) + copy(dAtA[i:], *m.ProbeTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ProbeTestGenericMeasurements) > 0 { + for iNdEx := len(m.ProbeTestGenericMeasurements) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ProbeTestGenericMeasurements[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.LastTestTime != nil { + i -= len(*m.LastTestTime) + copy(dAtA[i:], *m.LastTestTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.LastTestTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.LossPercentage != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.LossPercentage)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ProbeResponses != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ProbeResponses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ProbesSent != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ProbesSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ResultsScope != nil { + i -= len(*m.ResultsScope) + copy(dAtA[i:], *m.ResultsScope) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ResultsScope))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SumDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SumDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.StddevDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.StddevDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.JitterDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.JitterDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.AvgDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.AvgDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.MaxDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.MaxDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.MinDelay != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.MinDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Samples != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Samples)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ProbeMeasurementType != nil { + i -= len(*m.ProbeMeasurementType) + copy(dAtA[i:], *m.ProbeMeasurementType) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeMeasurementType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.HistorySingleTestResults) > 0 { + for iNdEx := len(m.HistorySingleTestResults) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HistorySingleTestResults[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ProbeSingleResults != nil { + { + size, err := m.ProbeSingleResults.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRmopdRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.RoutingInstanceName != nil { + i -= len(*m.RoutingInstanceName) + copy(dAtA[i:], *m.RoutingInstanceName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.RoutingInstanceName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd2 + } + if m.EgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.EgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.EgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.IgrStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.IgrJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.IgrThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IgrThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.RttStddevThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttStddevThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.RttJitterThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttJitterThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.RttThresh != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RttThresh)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.LossThreshSucc != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.LossThreshSucc)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.LossThreshTotal != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.LossThreshTotal)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.ServerPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ServerPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.ServerAddress != nil { + i -= len(*m.ServerAddress) + copy(dAtA[i:], *m.ServerAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ServerAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.ReflectorPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ReflectorPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.ReflectorAddress != nil { + i -= len(*m.ReflectorAddress) + copy(dAtA[i:], *m.ReflectorAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ReflectorAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.SenderPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.SenderPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.SenderAddress != nil { + i -= len(*m.SenderAddress) + copy(dAtA[i:], *m.SenderAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.SenderAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.ClientPort != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.ClientPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.ClientAddress != nil { + i -= len(*m.ClientAddress) + copy(dAtA[i:], *m.ClientAddress) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ClientAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.TestSize != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.TestSize)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DestinationInterface != nil { + i -= len(*m.DestinationInterface) + copy(dAtA[i:], *m.DestinationInterface) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.DestinationInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.TestName != nil { + i -= len(*m.TestName) + copy(dAtA[i:], *m.TestName) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.TestName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Owner != nil { + i -= len(*m.Owner) + copy(dAtA[i:], *m.Owner) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.Owner))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HttpStatus != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.HttpStatus)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RoundTripInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.IngressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.EgressInterarrivalJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressInterarrivalJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.RoundTripJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.RoundTripJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.IngressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.IngressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.EgressJitter != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.EgressJitter)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.Ingress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Ingress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Egress != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Egress)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Rtt != nil { + i = encodeVarintRmopdRender(dAtA, i, uint64(*m.Rtt)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.HardwareTimestampStatus != nil { + i -= len(*m.HardwareTimestampStatus) + copy(dAtA[i:], *m.HardwareTimestampStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.HardwareTimestampStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.ProbeStatus != nil { + i -= len(*m.ProbeStatus) + copy(dAtA[i:], *m.ProbeStatus) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.ProbeSentTime != nil { + i -= len(*m.ProbeSentTime) + copy(dAtA[i:], *m.ProbeSentTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeSentTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ProbeTime != nil { + i -= len(*m.ProbeTime) + copy(dAtA[i:], *m.ProbeTime) + i = encodeVarintRmopdRender(dAtA, i, uint64(len(*m.ProbeTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRmopdRender(dAtA []byte, offset int, v uint64) int { + offset -= sovRmopdRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Junos) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Rpm != nil { + l = m.Rpm.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Twamp != nil { + l = m.Twamp.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeResults != nil { + l = m.ProbeResults.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.HistoryResults != nil { + l = m.HistoryResults.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Server != nil { + l = m.Server.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeProbeResultsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ProbeTestResults) > 0 { + for _, e := range m.ProbeTestResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Owner != nil { + l = len(*m.Owner) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TestName != nil { + l = len(*m.TestName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TargetAddress != nil { + l = len(*m.TargetAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TargetUrl != nil { + l = len(*m.TargetUrl) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SourceAddress != nil { + l = len(*m.SourceAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.DestinationInterface != nil { + l = len(*m.DestinationInterface) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeType != nil { + l = len(*m.ProbeType) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.IcmpId != nil { + n += 2 + sovRmopdRender(uint64(*m.IcmpId)) + } + if m.TestSize != nil { + n += 2 + sovRmopdRender(uint64(*m.TestSize)) + } + if m.HttpStatus != nil { + n += 2 + sovRmopdRender(uint64(*m.HttpStatus)) + } + if m.RoutingInstanceName != nil { + l = len(*m.RoutingInstanceName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.RttThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttThresh)) + } + if m.RttJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttJitterThresh)) + } + if m.RttStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttStddevThresh)) + } + if m.IgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrThresh)) + } + if m.IgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrJitterThresh)) + } + if m.IgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrStddevThresh)) + } + if m.EgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrThresh)) + } + if m.EgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrJitterThresh)) + } + if m.EgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrStddevThresh)) + } + if m.ProbeTestsHwTsErr != nil { + l = m.ProbeTestsHwTsErr.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSingleResults != nil { + l = m.ProbeSingleResults.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if len(m.ProbeTestGenericResults) > 0 { + for _, e := range m.ProbeTestGenericResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InvalidClientRecvTsCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidClientRecvTsCntr)) + } + if m.InvalidClientNotsCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidClientNotsCntr)) + } + if m.InvalidServerSendTsCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidServerSendTsCntr)) + } + if m.InvalidServerSpentTimeCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidServerSpentTimeCntr)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeTime != nil { + l = len(*m.ProbeTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSentTime != nil { + l = len(*m.ProbeSentTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeStatus != nil { + l = len(*m.ProbeStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.HardwareTimestampStatus != nil { + l = len(*m.HardwareTimestampStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Rtt != nil { + n += 2 + sovRmopdRender(uint64(*m.Rtt)) + } + if m.Egress != nil { + n += 2 + sovRmopdRender(uint64(*m.Egress)) + } + if m.Ingress != nil { + n += 2 + sovRmopdRender(uint64(*m.Ingress)) + } + if m.EgressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressJitter)) + } + if m.IngressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressJitter)) + } + if m.RoundTripJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripJitter)) + } + if m.EgressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressInterarrivalJitter)) + } + if m.IngressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressInterarrivalJitter)) + } + if m.RoundTripInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripInterarrivalJitter)) + } + if m.HttpStatus != nil { + n += 2 + sovRmopdRender(uint64(*m.HttpStatus)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResultsScope != nil { + l = len(*m.ResultsScope) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbesSent != nil { + n += 2 + sovRmopdRender(uint64(*m.ProbesSent)) + } + if m.ProbeResponses != nil { + n += 2 + sovRmopdRender(uint64(*m.ProbeResponses)) + } + if m.LossPercentage != nil { + n += 2 + sovRmopdRender(uint64(*m.LossPercentage)) + } + if m.LastTestTime != nil { + l = len(*m.LastTestTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if len(m.ProbeTestGenericMeasurements) > 0 { + for _, e := range m.ProbeTestGenericMeasurements { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeMeasurementType != nil { + l = len(*m.ProbeMeasurementType) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Samples != nil { + n += 2 + sovRmopdRender(uint64(*m.Samples)) + } + if m.MinDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.MinDelay)) + } + if m.MaxDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.MaxDelay)) + } + if m.AvgDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.AvgDelay)) + } + if m.JitterDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.JitterDelay)) + } + if m.StddevDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.StddevDelay)) + } + if m.SumDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.SumDelay)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeHistoryResultsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.HistoryTestResults) > 0 { + for _, e := range m.HistoryTestResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.HistorySingleTestResults) > 0 { + for _, e := range m.HistorySingleTestResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Owner != nil { + l = len(*m.Owner) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TestName != nil { + l = len(*m.TestName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TargetAddress != nil { + l = len(*m.TargetAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TargetUrl != nil { + l = len(*m.TargetUrl) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SourceAddress != nil { + l = len(*m.SourceAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.DestinationInterface != nil { + l = len(*m.DestinationInterface) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeType != nil { + l = len(*m.ProbeType) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.IcmpId != nil { + n += 2 + sovRmopdRender(uint64(*m.IcmpId)) + } + if m.TestSize != nil { + n += 2 + sovRmopdRender(uint64(*m.TestSize)) + } + if m.HttpStatus != nil { + n += 2 + sovRmopdRender(uint64(*m.HttpStatus)) + } + if m.RoutingInstanceName != nil { + l = len(*m.RoutingInstanceName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.RttThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttThresh)) + } + if m.RttJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttJitterThresh)) + } + if m.RttStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttStddevThresh)) + } + if m.IgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrThresh)) + } + if m.IgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrJitterThresh)) + } + if m.IgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrStddevThresh)) + } + if m.EgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrThresh)) + } + if m.EgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrJitterThresh)) + } + if m.EgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrStddevThresh)) + } + if m.ProbeSingleResults != nil { + l = m.ProbeSingleResults.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeTime != nil { + l = len(*m.ProbeTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSentTime != nil { + l = len(*m.ProbeSentTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeStatus != nil { + l = len(*m.ProbeStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.HardwareTimestampStatus != nil { + l = len(*m.HardwareTimestampStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Rtt != nil { + n += 2 + sovRmopdRender(uint64(*m.Rtt)) + } + if m.Egress != nil { + n += 2 + sovRmopdRender(uint64(*m.Egress)) + } + if m.Ingress != nil { + n += 2 + sovRmopdRender(uint64(*m.Ingress)) + } + if m.EgressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressJitter)) + } + if m.IngressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressJitter)) + } + if m.RoundTripJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripJitter)) + } + if m.EgressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressInterarrivalJitter)) + } + if m.IngressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressInterarrivalJitter)) + } + if m.RoundTripInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripInterarrivalJitter)) + } + if m.HttpStatus != nil { + n += 2 + sovRmopdRender(uint64(*m.HttpStatus)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeServerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ActiveServers) > 0 { + for _, e := range m.ActiveServers { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosRpmTypeServerTypeActiveServersList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = len(*m.Protocol) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Port != nil { + n += 2 + sovRmopdRender(uint64(*m.Port)) + } + if m.DstInterface != nil { + l = len(*m.DstInterface) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Server != nil { + l = m.Server.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Client != nil { + l = m.Client.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeServerType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ControlConnection) > 0 { + for _, e := range m.ControlConnection { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if len(m.TestSession) > 0 { + for _, e := range m.TestSession { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeServerTypeControlConnectionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConnectionId != nil { + n += 2 + sovRmopdRender(uint64(*m.ConnectionId)) + } + if m.ClientAddress != nil { + l = len(*m.ClientAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ClientPort)) + } + if m.ServerAddress != nil { + l = len(*m.ServerAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ServerPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ServerPort)) + } + if m.SessionCount != nil { + n += 2 + sovRmopdRender(uint64(*m.SessionCount)) + } + if m.AuthenticationMode != nil { + l = len(*m.AuthenticationMode) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SessionState != nil { + l = len(*m.SessionState) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeServerTypeTestSessionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConnectionId != nil { + n += 2 + sovRmopdRender(uint64(*m.ConnectionId)) + } + if len(m.TestSessionInfo) > 0 { + for _, e := range m.TestSessionInfo { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TestId != nil { + n += 2 + sovRmopdRender(uint64(*m.TestId)) + } + if m.SenderAddress != nil { + l = len(*m.SenderAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SenderPort != nil { + n += 2 + sovRmopdRender(uint64(*m.SenderPort)) + } + if m.ReflectorAddress != nil { + l = len(*m.ReflectorAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ReflectorPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ReflectorPort)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ControlConnection) > 0 { + for _, e := range m.ControlConnection { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if len(m.TestSession) > 0 { + for _, e := range m.TestSession { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if len(m.ProbeTestResults) > 0 { + for _, e := range m.ProbeTestResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if len(m.HistoryTestResults) > 0 { + for _, e := range m.HistoryTestResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeControlConnectionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ControlName != nil { + l = len(*m.ControlName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientAddress != nil { + l = len(*m.ClientAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ClientPort)) + } + if m.ServerAddress != nil { + l = len(*m.ServerAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ServerPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ServerPort)) + } + if m.SessionCount != nil { + n += 2 + sovRmopdRender(uint64(*m.SessionCount)) + } + if m.AuthMode != nil { + l = len(*m.AuthMode) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeTestSessionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ControlName != nil { + l = len(*m.ControlName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientAddress != nil { + l = len(*m.ClientAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ClientPort)) + } + if m.ServerAddress != nil { + l = len(*m.ServerAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ServerPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ServerPort)) + } + if m.SessionCount != nil { + n += 2 + sovRmopdRender(uint64(*m.SessionCount)) + } + if m.AuthMode != nil { + l = len(*m.AuthMode) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if len(m.TestSessionInfo) > 0 { + for _, e := range m.TestSessionInfo { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SessionName != nil { + l = len(*m.SessionName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SenderAddress != nil { + l = len(*m.SenderAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SenderPort != nil { + n += 2 + sovRmopdRender(uint64(*m.SenderPort)) + } + if m.ReflectorAddress != nil { + l = len(*m.ReflectorAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ReflectorPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ReflectorPort)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Owner != nil { + l = len(*m.Owner) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TestName != nil { + l = len(*m.TestName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.DestinationInterface != nil { + l = len(*m.DestinationInterface) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TestSize != nil { + n += 2 + sovRmopdRender(uint64(*m.TestSize)) + } + if m.ClientAddress != nil { + l = len(*m.ClientAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ClientPort)) + } + if m.SenderAddress != nil { + l = len(*m.SenderAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SenderPort != nil { + n += 2 + sovRmopdRender(uint64(*m.SenderPort)) + } + if m.ReflectorAddress != nil { + l = len(*m.ReflectorAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ReflectorPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ReflectorPort)) + } + if m.ServerAddress != nil { + l = len(*m.ServerAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ServerPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ServerPort)) + } + if m.LossThreshTotal != nil { + n += 2 + sovRmopdRender(uint64(*m.LossThreshTotal)) + } + if m.LossThreshSucc != nil { + n += 2 + sovRmopdRender(uint64(*m.LossThreshSucc)) + } + if m.RttThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttThresh)) + } + if m.RttJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttJitterThresh)) + } + if m.RttStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttStddevThresh)) + } + if m.IgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrThresh)) + } + if m.IgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrJitterThresh)) + } + if m.IgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrStddevThresh)) + } + if m.EgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrThresh)) + } + if m.EgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrJitterThresh)) + } + if m.EgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrStddevThresh)) + } + if m.RoutingInstanceName != nil { + l = len(*m.RoutingInstanceName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeTestsHwTsErr != nil { + l = m.ProbeTestsHwTsErr.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSingleResults != nil { + l = m.ProbeSingleResults.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if len(m.ProbeTestGenericResults) > 0 { + for _, e := range m.ProbeTestGenericResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InvalidClientRecvTsCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidClientRecvTsCntr)) + } + if m.InvalidClientNotsCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidClientNotsCntr)) + } + if m.InvalidServerSendTsCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidServerSendTsCntr)) + } + if m.InvalidServerSpentTimeCntr != nil { + n += 2 + sovRmopdRender(uint64(*m.InvalidServerSpentTimeCntr)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeTime != nil { + l = len(*m.ProbeTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSentTime != nil { + l = len(*m.ProbeSentTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeStatus != nil { + l = len(*m.ProbeStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.HardwareTimestampStatus != nil { + l = len(*m.HardwareTimestampStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Rtt != nil { + n += 2 + sovRmopdRender(uint64(*m.Rtt)) + } + if m.Egress != nil { + n += 2 + sovRmopdRender(uint64(*m.Egress)) + } + if m.Ingress != nil { + n += 2 + sovRmopdRender(uint64(*m.Ingress)) + } + if m.EgressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressJitter)) + } + if m.IngressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressJitter)) + } + if m.RoundTripJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripJitter)) + } + if m.EgressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressInterarrivalJitter)) + } + if m.IngressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressInterarrivalJitter)) + } + if m.RoundTripInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripInterarrivalJitter)) + } + if m.HttpStatus != nil { + n += 2 + sovRmopdRender(uint64(*m.HttpStatus)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ResultsScope != nil { + l = len(*m.ResultsScope) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbesSent != nil { + n += 2 + sovRmopdRender(uint64(*m.ProbesSent)) + } + if m.ProbeResponses != nil { + n += 2 + sovRmopdRender(uint64(*m.ProbeResponses)) + } + if m.LossPercentage != nil { + n += 2 + sovRmopdRender(uint64(*m.LossPercentage)) + } + if m.LastTestTime != nil { + l = len(*m.LastTestTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if len(m.ProbeTestGenericMeasurements) > 0 { + for _, e := range m.ProbeTestGenericMeasurements { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeMeasurementType != nil { + l = len(*m.ProbeMeasurementType) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Samples != nil { + n += 2 + sovRmopdRender(uint64(*m.Samples)) + } + if m.MinDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.MinDelay)) + } + if m.MaxDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.MaxDelay)) + } + if m.AvgDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.AvgDelay)) + } + if m.JitterDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.JitterDelay)) + } + if m.StddevDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.StddevDelay)) + } + if m.SumDelay != nil { + n += 2 + sovRmopdRender(uint64(*m.SumDelay)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.HistorySingleTestResults) > 0 { + for _, e := range m.HistorySingleTestResults { + l = e.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Owner != nil { + l = len(*m.Owner) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TestName != nil { + l = len(*m.TestName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.DestinationInterface != nil { + l = len(*m.DestinationInterface) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.TestSize != nil { + n += 2 + sovRmopdRender(uint64(*m.TestSize)) + } + if m.ClientAddress != nil { + l = len(*m.ClientAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ClientPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ClientPort)) + } + if m.SenderAddress != nil { + l = len(*m.SenderAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.SenderPort != nil { + n += 2 + sovRmopdRender(uint64(*m.SenderPort)) + } + if m.ReflectorAddress != nil { + l = len(*m.ReflectorAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ReflectorPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ReflectorPort)) + } + if m.ServerAddress != nil { + l = len(*m.ServerAddress) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ServerPort != nil { + n += 2 + sovRmopdRender(uint64(*m.ServerPort)) + } + if m.LossThreshTotal != nil { + n += 2 + sovRmopdRender(uint64(*m.LossThreshTotal)) + } + if m.LossThreshSucc != nil { + n += 2 + sovRmopdRender(uint64(*m.LossThreshSucc)) + } + if m.RttThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttThresh)) + } + if m.RttJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttJitterThresh)) + } + if m.RttStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.RttStddevThresh)) + } + if m.IgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrThresh)) + } + if m.IgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrJitterThresh)) + } + if m.IgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.IgrStddevThresh)) + } + if m.EgrThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrThresh)) + } + if m.EgrJitterThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrJitterThresh)) + } + if m.EgrStddevThresh != nil { + n += 2 + sovRmopdRender(uint64(*m.EgrStddevThresh)) + } + if m.RoutingInstanceName != nil { + l = len(*m.RoutingInstanceName) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSingleResults != nil { + l = m.ProbeSingleResults.Size() + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProbeTime != nil { + l = len(*m.ProbeTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeSentTime != nil { + l = len(*m.ProbeSentTime) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.ProbeStatus != nil { + l = len(*m.ProbeStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.HardwareTimestampStatus != nil { + l = len(*m.HardwareTimestampStatus) + n += 2 + l + sovRmopdRender(uint64(l)) + } + if m.Rtt != nil { + n += 2 + sovRmopdRender(uint64(*m.Rtt)) + } + if m.Egress != nil { + n += 2 + sovRmopdRender(uint64(*m.Egress)) + } + if m.Ingress != nil { + n += 2 + sovRmopdRender(uint64(*m.Ingress)) + } + if m.EgressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressJitter)) + } + if m.IngressJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressJitter)) + } + if m.RoundTripJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripJitter)) + } + if m.EgressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.EgressInterarrivalJitter)) + } + if m.IngressInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.IngressInterarrivalJitter)) + } + if m.RoundTripInterarrivalJitter != nil { + n += 2 + sovRmopdRender(uint64(*m.RoundTripInterarrivalJitter)) + } + if m.HttpStatus != nil { + n += 2 + sovRmopdRender(uint64(*m.HttpStatus)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRmopdRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRmopdRender(x uint64) (n int) { + return sovRmopdRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Junos) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rpm", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rpm == nil { + m.Rpm = &JunosRpmType{} + } + if err := m.Rpm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Twamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Twamp == nil { + m.Twamp = &JunosTwampType{} + } + if err := m.Twamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rpm_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rpm_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeResults == nil { + m.ProbeResults = &JunosRpmTypeProbeResultsType{} + } + if err := m.ProbeResults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HistoryResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HistoryResults == nil { + m.HistoryResults = &JunosRpmTypeHistoryResultsType{} + } + if err := m.HistoryResults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Server == nil { + m.Server = &JunosRpmTypeServerType{} + } + if err := m.Server.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeProbeResultsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_results_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_results_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProbeTestResults = append(m.ProbeTestResults, &JunosRpmTypeProbeResultsTypeProbeTestResultsList{}) + if err := m.ProbeTestResults[len(m.ProbeTestResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_test_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_test_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Owner = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TestName = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TargetAddress = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TargetUrl = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SourceAddress = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DestinationInterface = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeType = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IcmpId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IcmpId = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TestSize = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpStatus", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HttpStatus = &v + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstanceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RoutingInstanceName = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttThresh = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttJitterThresh = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttStddevThresh = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrThresh = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrJitterThresh = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrStddevThresh = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrThresh = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrJitterThresh = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrStddevThresh = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestsHwTsErr", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeTestsHwTsErr == nil { + m.ProbeTestsHwTsErr = &JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType{} + } + if err := m.ProbeTestsHwTsErr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSingleResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeSingleResults == nil { + m.ProbeSingleResults = &JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType{} + } + if err := m.ProbeSingleResults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestGenericResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProbeTestGenericResults = append(m.ProbeTestGenericResults, &JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList{}) + if err := m.ProbeTestGenericResults[len(m.ProbeTestGenericResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestsHwTsErrType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_tests_hw_ts_err_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_tests_hw_ts_err_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidClientRecvTsCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidClientRecvTsCntr = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidClientNotsCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidClientNotsCntr = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidServerSendTsCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidServerSendTsCntr = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidServerSpentTimeCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidServerSpentTimeCntr = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeSingleResultsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_single_results_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_single_results_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeTime = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSentTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeSentTime = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeStatus = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HardwareTimestampStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HardwareTimestampStatus = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rtt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Egress = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ingress = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressJitter = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressJitter = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripJitter = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressInterarrivalJitter = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressInterarrivalJitter = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripInterarrivalJitter = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpStatus", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HttpStatus = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_test_generic_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_test_generic_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultsScope", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ResultsScope = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbesSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProbesSent = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeResponses", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProbeResponses = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LossPercentage", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LossPercentage = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTestTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastTestTime = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestGenericMeasurements", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProbeTestGenericMeasurements = append(m.ProbeTestGenericMeasurements, &JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList{}) + if err := m.ProbeTestGenericMeasurements[len(m.ProbeTestGenericMeasurements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeProbeResultsTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_test_generic_measurements_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_test_generic_measurements_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeMeasurementType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeMeasurementType = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Samples", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Samples = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinDelay = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxDelay = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvgDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AvgDelay = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JitterDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JitterDelay = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StddevDelay", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StddevDelay = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SumDelay", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SumDelay = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeHistoryResultsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: history_results_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: history_results_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HistoryTestResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HistoryTestResults = append(m.HistoryTestResults, &JunosRpmTypeHistoryResultsTypeHistoryTestResultsList{}) + if err := m.HistoryTestResults[len(m.HistoryTestResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: history_test_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: history_test_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HistorySingleTestResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HistorySingleTestResults = append(m.HistorySingleTestResults, &JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList{}) + if err := m.HistorySingleTestResults[len(m.HistorySingleTestResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: history_single_test_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: history_single_test_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Owner = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TestName = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TargetAddress = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TargetUrl = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SourceAddress = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DestinationInterface = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeType = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IcmpId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IcmpId = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TestSize = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpStatus", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HttpStatus = &v + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstanceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RoutingInstanceName = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttThresh = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttJitterThresh = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttStddevThresh = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrThresh = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrJitterThresh = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrStddevThresh = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrThresh = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrJitterThresh = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrStddevThresh = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSingleResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeSingleResults == nil { + m.ProbeSingleResults = &JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType{} + } + if err := m.ProbeSingleResults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeHistoryResultsTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_single_results_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_single_results_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeTime = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSentTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeSentTime = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeStatus = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HardwareTimestampStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HardwareTimestampStatus = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rtt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Egress = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ingress = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressJitter = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressJitter = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripJitter = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressInterarrivalJitter = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressInterarrivalJitter = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripInterarrivalJitter = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpStatus", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HttpStatus = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeServerType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveServers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActiveServers = append(m.ActiveServers, &JunosRpmTypeServerTypeActiveServersList{}) + if err := m.ActiveServers[len(m.ActiveServers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosRpmTypeServerTypeActiveServersList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: active_servers_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: active_servers_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Protocol = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Port = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DstInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DstInterface = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: twamp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: twamp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Server == nil { + m.Server = &JunosTwampTypeServerType{} + } + if err := m.Server.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Client", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Client == nil { + m.Client = &JunosTwampTypeClientType{} + } + if err := m.Client.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeServerType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: server_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: server_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlConnection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ControlConnection = append(m.ControlConnection, &JunosTwampTypeServerTypeControlConnectionList{}) + if err := m.ControlConnection[len(m.ControlConnection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSession", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TestSession = append(m.TestSession, &JunosTwampTypeServerTypeTestSessionList{}) + if err := m.TestSession[len(m.TestSession)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeServerTypeControlConnectionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: control_connection_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: control_connection_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConnectionId = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ClientAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientPort = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerAddress = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerPort = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionCount = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AuthenticationMode = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionState = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeServerTypeTestSessionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: test_session_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: test_session_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConnectionId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSessionInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TestSessionInfo = append(m.TestSessionInfo, &JunosTwampTypeServerTypeTestSessionListTestSessionInfoList{}) + if err := m.TestSessionInfo[len(m.TestSessionInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeServerTypeTestSessionListTestSessionInfoList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: test_session_info_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: test_session_info_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TestId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TestId = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SenderAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SenderPort = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ReflectorAddress = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReflectorPort = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: client_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: client_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlConnection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ControlConnection = append(m.ControlConnection, &JunosTwampTypeClientTypeControlConnectionList{}) + if err := m.ControlConnection[len(m.ControlConnection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSession", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TestSession = append(m.TestSession, &JunosTwampTypeClientTypeTestSessionList{}) + if err := m.TestSession[len(m.TestSession)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProbeTestResults = append(m.ProbeTestResults, &JunosTwampTypeClientTypeProbeTestResultsList{}) + if err := m.ProbeTestResults[len(m.ProbeTestResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HistoryTestResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HistoryTestResults = append(m.HistoryTestResults, &JunosTwampTypeClientTypeHistoryTestResultsList{}) + if err := m.HistoryTestResults[len(m.HistoryTestResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeControlConnectionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: control_connection_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: control_connection_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ControlName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ClientAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientPort = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerAddress = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerPort = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionCount = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AuthMode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeTestSessionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: test_session_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: test_session_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ControlName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ControlName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ClientAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientPort = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerAddress = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerPort = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SessionCount = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AuthMode = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSessionInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TestSessionInfo = append(m.TestSessionInfo, &JunosTwampTypeClientTypeTestSessionListTestSessionInfoList{}) + if err := m.TestSessionInfo[len(m.TestSessionInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeTestSessionListTestSessionInfoList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: test_session_info_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: test_session_info_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SenderAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SenderPort = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ReflectorAddress = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReflectorPort = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeProbeTestResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_test_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_test_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Owner = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TestName = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DestinationInterface = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TestSize = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ClientAddress = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientPort = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SenderAddress = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SenderPort = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ReflectorAddress = &s + iNdEx = postIndex + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReflectorPort = &v + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerAddress = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerPort = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LossThreshTotal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LossThreshTotal = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LossThreshSucc", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LossThreshSucc = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttThresh = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttJitterThresh = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttStddevThresh = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrThresh = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrJitterThresh = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrStddevThresh = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrThresh = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrJitterThresh = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrStddevThresh = &v + case 74: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstanceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RoutingInstanceName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestsHwTsErr", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeTestsHwTsErr == nil { + m.ProbeTestsHwTsErr = &JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType{} + } + if err := m.ProbeTestsHwTsErr.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSingleResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeSingleResults == nil { + m.ProbeSingleResults = &JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType{} + } + if err := m.ProbeSingleResults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestGenericResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProbeTestGenericResults = append(m.ProbeTestGenericResults, &JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList{}) + if err := m.ProbeTestGenericResults[len(m.ProbeTestGenericResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestsHwTsErrType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_tests_hw_ts_err_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_tests_hw_ts_err_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidClientRecvTsCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidClientRecvTsCntr = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidClientNotsCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidClientNotsCntr = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidServerSendTsCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidServerSendTsCntr = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidServerSpentTimeCntr", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InvalidServerSpentTimeCntr = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeSingleResultsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_single_results_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_single_results_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeTime = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSentTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeSentTime = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeStatus = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HardwareTimestampStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HardwareTimestampStatus = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rtt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Egress = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ingress = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressJitter = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressJitter = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripJitter = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressInterarrivalJitter = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressInterarrivalJitter = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripInterarrivalJitter = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpStatus", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HttpStatus = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_test_generic_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_test_generic_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResultsScope", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ResultsScope = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbesSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProbesSent = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeResponses", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ProbeResponses = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LossPercentage", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LossPercentage = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTestTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastTestTime = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTestGenericMeasurements", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProbeTestGenericMeasurements = append(m.ProbeTestGenericMeasurements, &JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList{}) + if err := m.ProbeTestGenericMeasurements[len(m.ProbeTestGenericMeasurements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeProbeTestResultsListProbeTestGenericResultsListProbeTestGenericMeasurementsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_test_generic_measurements_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_test_generic_measurements_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeMeasurementType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeMeasurementType = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Samples", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Samples = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinDelay = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxDelay = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvgDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AvgDelay = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JitterDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JitterDelay = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StddevDelay", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StddevDelay = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SumDelay", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SumDelay = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: history_test_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: history_test_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HistorySingleTestResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HistorySingleTestResults = append(m.HistorySingleTestResults, &JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList{}) + if err := m.HistorySingleTestResults[len(m.HistorySingleTestResults)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: history_single_test_results_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: history_single_test_results_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Owner = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TestName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TestName = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DestinationInterface = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TestSize", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TestSize = &v + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ClientAddress = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientPort = &v + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SenderAddress = &s + iNdEx = postIndex + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SenderPort = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ReflectorAddress = &s + iNdEx = postIndex + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReflectorPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReflectorPort = &v + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ServerAddress = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServerPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServerPort = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LossThreshTotal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LossThreshTotal = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LossThreshSucc", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LossThreshSucc = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttThresh = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttJitterThresh = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttStddevThresh = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrThresh = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrJitterThresh = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IgrStddevThresh = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrThresh = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrJitterThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrJitterThresh = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgrStddevThresh", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgrStddevThresh = &v + case 74: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingInstanceName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RoutingInstanceName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSingleResults", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProbeSingleResults == nil { + m.ProbeSingleResults = &JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType{} + } + if err := m.ProbeSingleResults.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosTwampTypeClientTypeHistoryTestResultsListHistorySingleTestResultsListProbeSingleResultsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: probe_single_results_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: probe_single_results_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeTime = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeSentTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeSentTime = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProbeStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProbeStatus = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HardwareTimestampStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRmopdRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRmopdRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HardwareTimestampStatus = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rtt", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rtt = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Egress = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Ingress = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressJitter = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressJitter = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripJitter = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressInterarrivalJitter = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressInterarrivalJitter = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RoundTripInterarrivalJitter", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RoundTripInterarrivalJitter = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HttpStatus", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HttpStatus = &v + default: + iNdEx = preIndex + skippy, err := skipRmopdRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRmopdRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRmopdRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRmopdRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRmopdRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRmopdRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRmopdRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRmopdRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRmopdRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRmopdRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rmopd_render.proto b/schema/rmopd_render.proto new file mode 100755 index 0000000..8910ab5 --- /dev/null +++ b/schema/rmopd_render.proto @@ -0,0 +1,314 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos jnpr_junos_ext = 74; +} + +message junos { + optional rpm_type rpm = 151; + message rpm_type { + optional probe_results_type probe_results = 151; + message probe_results_type { + message probe_test_results_list { + optional string owner = 51; + optional string test_name = 52; + optional string target_address = 53; + optional string target_url = 54; + optional string source_address = 55; + optional string destination_interface = 56; + optional string probe_type = 57; + optional uint32 icmp_id = 58; + optional uint32 test_size = 59; + optional uint32 http_status = 60; + optional string routing_instance_name = 61; + optional uint32 rtt_thresh = 62; + optional uint32 rtt_jitter_thresh = 63; + optional uint32 rtt_stddev_thresh = 64; + optional uint32 igr_thresh = 65; + optional uint32 igr_jitter_thresh = 66; + optional uint32 igr_stddev_thresh = 67; + optional uint32 egr_thresh = 68; + optional uint32 egr_jitter_thresh = 69; + optional uint32 egr_stddev_thresh = 70; + optional probe_tests_hw_ts_err_type probe_tests_hw_ts_err = 151; + message probe_tests_hw_ts_err_type { + optional uint32 invalid_client_recv_ts_cntr = 51; + optional uint32 invalid_client_nots_cntr = 52; + optional uint32 invalid_server_send_ts_cntr = 53; + optional uint32 invalid_server_spent_time_cntr = 54; + } + optional probe_single_results_type probe_single_results = 152; + message probe_single_results_type { + optional string probe_time = 51; + optional string probe_sent_time = 52; + optional string probe_status = 53; + optional string hardware_timestamp_status = 54; + optional uint32 rtt = 55; + optional uint32 egress = 56; + optional uint32 ingress = 57; + optional int32 egress_jitter = 58; + optional int32 ingress_jitter = 59; + optional int32 round_trip_jitter = 60; + optional int32 egress_interarrival_jitter = 61; + optional int32 ingress_interarrival_jitter = 62; + optional int32 round_trip_interarrival_jitter = 63; + optional uint32 http_status = 64; + } + message probe_test_generic_results_list { + optional string results_scope = 51 [(telemetry_options).is_key = true]; + optional uint32 probes_sent = 52; + optional uint32 probe_responses = 53; + optional uint32 loss_percentage = 54; + optional string last_test_time = 55; + message probe_test_generic_measurements_list { + optional string probe_measurement_type = 51 [(telemetry_options).is_key = true]; + optional uint32 samples = 52; + optional uint32 min_delay = 53; + optional uint32 max_delay = 54; + optional uint32 avg_delay = 55; + optional uint32 jitter_delay = 56; + optional uint64 stddev_delay = 57; + optional uint64 sum_delay = 58; + } + repeated probe_test_generic_measurements_list probe_test_generic_measurements = 151; + } + repeated probe_test_generic_results_list probe_test_generic_results = 153; + } + repeated probe_test_results_list probe_test_results = 151; + } + optional history_results_type history_results = 152; + message history_results_type { + message history_test_results_list { + message history_single_test_results_list { + optional string owner = 51; + optional string test_name = 52; + optional string target_address = 53; + optional string target_url = 54; + optional string source_address = 55; + optional string destination_interface = 56; + optional string probe_type = 57; + optional uint32 icmp_id = 58; + optional uint32 test_size = 59; + optional uint32 http_status = 60; + optional string routing_instance_name = 61; + optional uint32 rtt_thresh = 62; + optional uint32 rtt_jitter_thresh = 63; + optional uint32 rtt_stddev_thresh = 64; + optional uint32 igr_thresh = 65; + optional uint32 igr_jitter_thresh = 66; + optional uint32 igr_stddev_thresh = 67; + optional uint32 egr_thresh = 68; + optional uint32 egr_jitter_thresh = 69; + optional uint32 egr_stddev_thresh = 70; + optional probe_single_results_type probe_single_results = 151; + message probe_single_results_type { + optional string probe_time = 51; + optional string probe_sent_time = 52; + optional string probe_status = 53; + optional string hardware_timestamp_status = 54; + optional uint32 rtt = 55; + optional uint32 egress = 56; + optional uint32 ingress = 57; + optional int32 egress_jitter = 58; + optional int32 ingress_jitter = 59; + optional int32 round_trip_jitter = 60; + optional int32 egress_interarrival_jitter = 61; + optional int32 ingress_interarrival_jitter = 62; + optional int32 round_trip_interarrival_jitter = 63; + optional uint32 http_status = 64; + } + } + repeated history_single_test_results_list history_single_test_results = 151; + } + repeated history_test_results_list history_test_results = 151; + } + optional server_type server = 153; + message server_type { + message active_servers_list { + optional string protocol = 51; + optional uint32 port = 52; + optional string dst_interface = 53; + } + repeated active_servers_list active_servers = 151; + } + } + optional twamp_type twamp = 152; + message twamp_type { + optional server_type server = 151; + message server_type { + message control_connection_list { + optional uint32 connection_id = 51 [(telemetry_options).is_key = true]; + optional string client_address = 52; + optional uint32 client_port = 53; + optional string server_address = 54; + optional uint32 server_port = 55; + optional uint32 session_count = 56; + optional string authentication_mode = 57; + optional string session_state = 58; + } + repeated control_connection_list control_connection = 151; + message test_session_list { + optional uint32 connection_id = 51 [(telemetry_options).is_key = true]; + message test_session_info_list { + optional uint32 test_id = 51 [(telemetry_options).is_key = true]; + optional string sender_address = 52; + optional uint32 sender_port = 53; + optional string reflector_address = 54; + optional uint32 reflector_port = 55; + } + repeated test_session_info_list test_session_info = 151; + } + repeated test_session_list test_session = 152; + } + optional client_type client = 152; + message client_type { + message control_connection_list { + optional string control_name = 51 [(telemetry_options).is_key = true]; + optional string client_address = 52; + optional uint32 client_port = 53; + optional string server_address = 54; + optional uint32 server_port = 55; + optional uint32 session_count = 56; + optional string auth_mode = 57; + } + repeated control_connection_list control_connection = 151; + message test_session_list { + optional string control_name = 51 [(telemetry_options).is_key = true]; + optional string client_address = 52; + optional uint32 client_port = 53; + optional string server_address = 54; + optional uint32 server_port = 55; + optional uint32 session_count = 56; + optional string auth_mode = 57; + message test_session_info_list { + optional string session_name = 51 [(telemetry_options).is_key = true]; + optional string sender_address = 52; + optional uint32 sender_port = 53; + optional string reflector_address = 54; + optional uint32 reflector_port = 55; + } + repeated test_session_info_list test_session_info = 151; + } + repeated test_session_list test_session = 152; + message probe_test_results_list { + optional string owner = 51; + optional string test_name = 52; + optional string destination_interface = 53; + optional uint32 test_size = 54; + optional string client_address = 55; + optional uint32 client_port = 56; + optional string sender_address = 57; + optional uint32 sender_port = 58; + optional string reflector_address = 59; + optional uint32 reflector_port = 60; + optional string server_address = 61; + optional uint32 server_port = 62; + optional uint32 loss_thresh_total = 63; + optional uint32 loss_thresh_succ = 64; + optional uint32 rtt_thresh = 65; + optional uint32 rtt_jitter_thresh = 66; + optional uint32 rtt_stddev_thresh = 67; + optional uint32 igr_thresh = 68; + optional uint32 igr_jitter_thresh = 69; + optional uint32 igr_stddev_thresh = 70; + optional uint32 egr_thresh = 71; + optional uint32 egr_jitter_thresh = 72; + optional uint32 egr_stddev_thresh = 73; + optional string routing_instance_name = 74; + optional probe_tests_hw_ts_err_type probe_tests_hw_ts_err = 151; + message probe_tests_hw_ts_err_type { + optional uint32 invalid_client_recv_ts_cntr = 51; + optional uint32 invalid_client_nots_cntr = 52; + optional uint32 invalid_server_send_ts_cntr = 53; + optional uint32 invalid_server_spent_time_cntr = 54; + } + optional probe_single_results_type probe_single_results = 152; + message probe_single_results_type { + optional string probe_time = 51; + optional string probe_sent_time = 52; + optional string probe_status = 53; + optional string hardware_timestamp_status = 54; + optional uint32 rtt = 55; + optional uint32 egress = 56; + optional uint32 ingress = 57; + optional int32 egress_jitter = 58; + optional int32 ingress_jitter = 59; + optional int32 round_trip_jitter = 60; + optional int32 egress_interarrival_jitter = 61; + optional int32 ingress_interarrival_jitter = 62; + optional int32 round_trip_interarrival_jitter = 63; + optional uint32 http_status = 64; + } + message probe_test_generic_results_list { + optional string results_scope = 51 [(telemetry_options).is_key = true]; + optional uint32 probes_sent = 52; + optional uint32 probe_responses = 53; + optional uint32 loss_percentage = 54; + optional string last_test_time = 55; + message probe_test_generic_measurements_list { + optional string probe_measurement_type = 51 [(telemetry_options).is_key = true]; + optional uint32 samples = 52; + optional uint32 min_delay = 53; + optional uint32 max_delay = 54; + optional uint32 avg_delay = 55; + optional uint32 jitter_delay = 56; + optional uint64 stddev_delay = 57; + optional uint64 sum_delay = 58; + } + repeated probe_test_generic_measurements_list probe_test_generic_measurements = 151; + } + repeated probe_test_generic_results_list probe_test_generic_results = 153; + } + repeated probe_test_results_list probe_test_results = 153; + message history_test_results_list { + message history_single_test_results_list { + optional string owner = 51; + optional string test_name = 52; + optional string destination_interface = 53; + optional uint32 test_size = 54; + optional string client_address = 55; + optional uint32 client_port = 56; + optional string sender_address = 57; + optional uint32 sender_port = 58; + optional string reflector_address = 59; + optional uint32 reflector_port = 60; + optional string server_address = 61; + optional uint32 server_port = 62; + optional uint32 loss_thresh_total = 63; + optional uint32 loss_thresh_succ = 64; + optional uint32 rtt_thresh = 65; + optional uint32 rtt_jitter_thresh = 66; + optional uint32 rtt_stddev_thresh = 67; + optional uint32 igr_thresh = 68; + optional uint32 igr_jitter_thresh = 69; + optional uint32 igr_stddev_thresh = 70; + optional uint32 egr_thresh = 71; + optional uint32 egr_jitter_thresh = 72; + optional uint32 egr_stddev_thresh = 73; + optional string routing_instance_name = 74; + optional probe_single_results_type probe_single_results = 151; + message probe_single_results_type { + optional string probe_time = 51; + optional string probe_sent_time = 52; + optional string probe_status = 53; + optional string hardware_timestamp_status = 54; + optional uint32 rtt = 55; + optional uint32 egress = 56; + optional uint32 ingress = 57; + optional int32 egress_jitter = 58; + optional int32 ingress_jitter = 59; + optional int32 round_trip_jitter = 60; + optional int32 egress_interarrival_jitter = 61; + optional int32 ingress_interarrival_jitter = 62; + optional int32 round_trip_interarrival_jitter = 63; + optional uint32 http_status = 64; + } + } + repeated history_single_test_results_list history_single_test_results = 151; + } + repeated history_test_results_list history_test_results = 154; + } + } +} diff --git a/schema/rpd_bgp_rib_oc.pb.go b/schema/rpd_bgp_rib_oc.pb.go new file mode 100644 index 0000000..1565224 --- /dev/null +++ b/schema/rpd_bgp_rib_oc.pb.go @@ -0,0 +1,28567 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_bgp_rib_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type BgpRibBgpRib struct { + AfiSafis *BgpRibBgpRibAfiSafisType `protobuf:"bytes,151,opt,name=afi_safis,json=afiSafis" json:"afi_safis,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRib) Reset() { *m = BgpRibBgpRib{} } +func (m *BgpRibBgpRib) String() string { return proto.CompactTextString(m) } +func (*BgpRibBgpRib) ProtoMessage() {} +func (*BgpRibBgpRib) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0} +} +func (m *BgpRibBgpRib) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRib) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRib.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRib) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRib.Merge(m, src) +} +func (m *BgpRibBgpRib) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRib) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRib.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRib proto.InternalMessageInfo + +func (m *BgpRibBgpRib) GetAfiSafis() *BgpRibBgpRibAfiSafisType { + if m != nil { + return m.AfiSafis + } + return nil +} + +type BgpRibBgpRibAfiSafisType struct { + AfiSafi []*BgpRibBgpRibAfiSafisTypeAfiSafiList `protobuf:"bytes,151,rep,name=afi_safi,json=afiSafi" json:"afi_safi,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisType) Reset() { *m = BgpRibBgpRibAfiSafisType{} } +func (m *BgpRibBgpRibAfiSafisType) String() string { return proto.CompactTextString(m) } +func (*BgpRibBgpRibAfiSafisType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0} +} +func (m *BgpRibBgpRibAfiSafisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisType) GetAfiSafi() []*BgpRibBgpRibAfiSafisTypeAfiSafiList { + if m != nil { + return m.AfiSafi + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiList struct { + AfiSafiName *string `protobuf:"bytes,52,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + Ipv4Unicast *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType `protobuf:"bytes,151,opt,name=ipv4_unicast,json=ipv4Unicast" json:"ipv4_unicast,omitempty"` + Ipv6Unicast *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType `protobuf:"bytes,153,opt,name=ipv6_unicast,json=ipv6Unicast" json:"ipv6_unicast,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) Reset() { *m = BgpRibBgpRibAfiSafisTypeAfiSafiList{} } +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) String() string { return proto.CompactTextString(m) } +func (*BgpRibBgpRibAfiSafisTypeAfiSafiList) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) GetIpv4Unicast() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType { + if m != nil { + return m.Ipv4Unicast + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) GetIpv6Unicast() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType { + if m != nil { + return m.Ipv6Unicast + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType struct { + LocRib *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType `protobuf:"bytes,151,opt,name=loc_rib,json=locRib" json:"loc_rib,omitempty"` + Neighbors *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) GetLocRib() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType { + if m != nil { + return m.LocRib + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) GetNeighbors() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType struct { + Neighbor []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) GetNeighbor() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList struct { + NeighborAddress *string `protobuf:"bytes,52,opt,name=neighbor_address,json=neighborAddress" json:"neighbor_address,omitempty"` + AdjRibInPre *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType `protobuf:"bytes,151,opt,name=adj_rib_in_pre,json=adjRibInPre" json:"adj_rib_in_pre,omitempty"` + AdjRibInPost *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType `protobuf:"bytes,152,opt,name=adj_rib_in_post,json=adjRibInPost" json:"adj_rib_in_post,omitempty"` + AdjRibOutPre *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType `protobuf:"bytes,153,opt,name=adj_rib_out_pre,json=adjRibOutPre" json:"adj_rib_out_pre,omitempty"` + AdjRibOutPost *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType `protobuf:"bytes,154,opt,name=adj_rib_out_post,json=adjRibOutPost" json:"adj_rib_out_post,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) GetNeighborAddress() string { + if m != nil && m.NeighborAddress != nil { + return *m.NeighborAddress + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) GetAdjRibInPre() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType { + if m != nil { + return m.AdjRibInPre + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) GetAdjRibInPost() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType { + if m != nil { + return m.AdjRibInPost + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) GetAdjRibOutPre() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType { + if m != nil { + return m.AdjRibOutPre + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) GetAdjRibOutPost() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType { + if m != nil { + return m.AdjRibOutPost + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 2, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 0, 1, 0, 3, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType struct { + LocRib *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType `protobuf:"bytes,151,opt,name=loc_rib,json=locRib" json:"loc_rib,omitempty"` + Neighbors *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) GetLocRib() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType { + if m != nil { + return m.LocRib + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) GetNeighbors() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 0, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType struct { + Neighbor []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList `protobuf:"bytes,152,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) GetNeighbor() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList struct { + NeighborAddress *string `protobuf:"bytes,52,opt,name=neighbor_address,json=neighborAddress" json:"neighbor_address,omitempty"` + AdjRibInPre *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType `protobuf:"bytes,151,opt,name=adj_rib_in_pre,json=adjRibInPre" json:"adj_rib_in_pre,omitempty"` + AdjRibInPost *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType `protobuf:"bytes,152,opt,name=adj_rib_in_post,json=adjRibInPost" json:"adj_rib_in_post,omitempty"` + AdjRibOutPre *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType `protobuf:"bytes,153,opt,name=adj_rib_out_pre,json=adjRibOutPre" json:"adj_rib_out_pre,omitempty"` + AdjRibOutPost *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType `protobuf:"bytes,154,opt,name=adj_rib_out_post,json=adjRibOutPost" json:"adj_rib_out_post,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) ProtoMessage() {} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) GetNeighborAddress() string { + if m != nil && m.NeighborAddress != nil { + return *m.NeighborAddress + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) GetAdjRibInPre() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType { + if m != nil { + return m.AdjRibInPre + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) GetAdjRibInPost() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType { + if m != nil { + return m.AdjRibInPost + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) GetAdjRibOutPre() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType { + if m != nil { + return m.AdjRibOutPre + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) GetAdjRibOutPost() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType { + if m != nil { + return m.AdjRibOutPost + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 2, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType struct { + NumRoutes *uint64 `protobuf:"varint,51,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` + Routes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType `protobuf:"bytes,151,opt,name=routes" json:"routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) GetNumRoutes() uint64 { + if m != nil && m.NumRoutes != nil { + return *m.NumRoutes + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) GetRoutes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType { + if m != nil { + return m.Routes + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType struct { + Route []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList `protobuf:"bytes,151,rep,name=route" json:"route,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) GetRoute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList { + if m != nil { + return m.Route + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Attributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType `protobuf:"bytes,152,opt,name=attributes" json:"attributes,omitempty"` + ExtAttributes *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType `protobuf:"bytes,151,opt,name=ext_attributes,json=extAttributes" json:"ext_attributes,omitempty"` + LastModifiedDate *string `protobuf:"bytes,61,opt,name=last_modified_date,json=lastModifiedDate" json:"last_modified_date,omitempty"` + LastUpdateReceived *string `protobuf:"bytes,62,opt,name=last_update_received,json=lastUpdateReceived" json:"last_update_received,omitempty"` + ValidRoute *bool `protobuf:"varint,63,opt,name=valid_route,json=validRoute" json:"valid_route,omitempty"` + InvalidReason *string `protobuf:"bytes,64,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + BestPath *bool `protobuf:"varint,65,opt,name=best_path,json=bestPath" json:"best_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetExtAttributes() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType { + if m != nil { + return m.ExtAttributes + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetLastModifiedDate() string { + if m != nil && m.LastModifiedDate != nil { + return *m.LastModifiedDate + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetLastUpdateReceived() string { + if m != nil && m.LastUpdateReceived != nil { + return *m.LastUpdateReceived + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetValidRoute() bool { + if m != nil && m.ValidRoute != nil { + return *m.ValidRoute + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) GetBestPath() bool { + if m != nil && m.BestPath != nil { + return *m.BestPath + } + return false +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType struct { + Origin *string `protobuf:"bytes,51,opt,name=origin" json:"origin,omitempty"` + AsPath *string `protobuf:"bytes,52,opt,name=as_path,json=asPath" json:"as_path,omitempty"` + As4Path *string `protobuf:"bytes,53,opt,name=as4_path,json=as4Path" json:"as4_path,omitempty"` + NextHop *string `protobuf:"bytes,54,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Med *uint32 `protobuf:"varint,55,opt,name=med" json:"med,omitempty"` + LocalPref *uint32 `protobuf:"varint,56,opt,name=local_pref,json=localPref" json:"local_pref,omitempty"` + AtomicAggr *bool `protobuf:"varint,57,opt,name=atomic_aggr,json=atomicAggr" json:"atomic_aggr,omitempty"` + Aggregator *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType `protobuf:"bytes,151,opt,name=aggregator" json:"aggregator,omitempty"` + Community []string `protobuf:"bytes,152,rep,name=community" json:"community,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAsPath() string { + if m != nil && m.AsPath != nil { + return *m.AsPath + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAs4Path() string { + if m != nil && m.As4Path != nil { + return *m.As4Path + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetMed() uint32 { + if m != nil && m.Med != nil { + return *m.Med + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetLocalPref() uint32 { + if m != nil && m.LocalPref != nil { + return *m.LocalPref + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAtomicAggr() bool { + if m != nil && m.AtomicAggr != nil { + return *m.AtomicAggr + } + return false +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetAggregator() *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType { + if m != nil { + return m.Aggregator + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) GetCommunity() []string { + if m != nil { + return m.Community + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType struct { + As *uint32 `protobuf:"varint,58,opt,name=as" json:"as,omitempty"` + As4 *uint32 `protobuf:"varint,59,opt,name=as4" json:"as4,omitempty"` + Address *string `protobuf:"bytes,60,opt,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3, 0, 0, 0, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAs4() uint32 { + if m != nil && m.As4 != nil { + return *m.As4 + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType struct { + OriginatorId *string `protobuf:"bytes,51,opt,name=originator_id,json=originatorId" json:"originator_id,omitempty"` + ClusterList []string `protobuf:"bytes,52,rep,name=cluster_list,json=clusterList" json:"cluster_list,omitempty"` + ExtCommunity []string `protobuf:"bytes,53,rep,name=ext_community,json=extCommunity" json:"ext_community,omitempty"` + Aigp *uint64 `protobuf:"varint,54,opt,name=aigp" json:"aigp,omitempty"` + PathId *uint32 `protobuf:"varint,55,opt,name=path_id,json=pathId" json:"path_id,omitempty"` + UnknownAttribute []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList `protobuf:"bytes,151,rep,name=unknown_attribute,json=unknownAttribute" json:"unknown_attribute,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3, 0, 0, 1} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetOriginatorId() string { + if m != nil && m.OriginatorId != nil { + return *m.OriginatorId + } + return "" +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetClusterList() []string { + if m != nil { + return m.ClusterList + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetExtCommunity() []string { + if m != nil { + return m.ExtCommunity + } + return nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetAigp() uint64 { + if m != nil && m.Aigp != nil { + return *m.Aigp + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetPathId() uint32 { + if m != nil && m.PathId != nil { + return *m.PathId + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) GetUnknownAttribute() []*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList { + if m != nil { + return m.UnknownAttribute + } + return nil +} + +type BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList struct { + AttrType *uint32 `protobuf:"varint,57,opt,name=attr_type,json=attrType" json:"attr_type,omitempty"` + AttrLen *uint32 `protobuf:"varint,58,opt,name=attr_len,json=attrLen" json:"attr_len,omitempty"` + AttrValue *string `protobuf:"bytes,59,opt,name=attr_value,json=attrValue" json:"attr_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Reset() { + *m = BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) String() string { + return proto.CompactTextString(m) +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) ProtoMessage() { +} +func (*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7bb7c33de41983, []int{0, 0, 0, 1, 1, 0, 3, 0, 0, 1, 0} +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.Merge(m, src) +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_Size() int { + return m.Size() +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) XXX_DiscardUnknown() { + xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList.DiscardUnknown(m) +} + +var xxx_messageInfo_BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList proto.InternalMessageInfo + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrType() uint32 { + if m != nil && m.AttrType != nil { + return *m.AttrType + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrLen() uint32 { + if m != nil && m.AttrLen != nil { + return *m.AttrLen + } + return 0 +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) GetAttrValue() string { + if m != nil && m.AttrValue != nil { + return *m.AttrValue + } + return "" +} + +var E_JnprBgpRibBgpRibExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*BgpRibBgpRib)(nil), + Field: 63, + Name: "jnpr_bgp_rib_bgp_rib_ext", + Tag: "bytes,63,opt,name=jnpr_bgp_rib_bgp_rib_ext", + Filename: "rpd_bgp_rib_oc.proto", +} + +func init() { + proto.RegisterType((*BgpRibBgpRib)(nil), "bgp_rib_bgp_rib") + proto.RegisterType((*BgpRibBgpRibAfiSafisType)(nil), "bgp_rib_bgp_rib.afi_safis_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.loc_rib_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv4_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.loc_rib_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_pre_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_in_post_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_pre_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.attributes_type.aggregator_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.ext_attributes_type") + proto.RegisterType((*BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList)(nil), "bgp_rib_bgp_rib.afi_safis_type.afi_safi_list.ipv6_unicast_type.neighbors_type.neighbor_list.adj_rib_out_post_type.routes_type.route_list.ext_attributes_type.unknown_attribute_list") + proto.RegisterExtension(E_JnprBgpRibBgpRibExt) +} + +func init() { proto.RegisterFile("rpd_bgp_rib_oc.proto", fileDescriptor_9b7bb7c33de41983) } + +var fileDescriptor_9b7bb7c33de41983 = []byte{ + // 1781 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x9a, 0xdd, 0x6f, 0x54, 0xc5, + 0x1b, 0xc7, 0x73, 0x68, 0x69, 0xbb, 0xb3, 0xdd, 0x76, 0x99, 0xf2, 0x83, 0xf3, 0x5b, 0x03, 0x54, + 0x88, 0x49, 0x4d, 0xec, 0x96, 0xe0, 0x32, 0x2a, 0x8a, 0x50, 0x14, 0x63, 0x0d, 0x20, 0x39, 0x08, + 0x31, 0xc6, 0xe4, 0x30, 0xbb, 0x3b, 0x3d, 0x9d, 0xb2, 0x7b, 0xce, 0xe1, 0x9c, 0xd9, 0xd2, 0x1a, + 0x35, 0x11, 0x41, 0x25, 0xbe, 0xc4, 0x0b, 0x05, 0xaa, 0x28, 0x7a, 0x61, 0xd4, 0x3b, 0x14, 0x13, + 0xdf, 0xc2, 0x9d, 0x1a, 0x5f, 0x6e, 0xfc, 0x13, 0xa0, 0x5c, 0x78, 0xc9, 0x1f, 0x60, 0x4c, 0xcc, + 0xcc, 0x9c, 0xb3, 0x6f, 0x3d, 0x7d, 0x11, 0xda, 0xed, 0xd9, 0xed, 0xb9, 0x81, 0x9d, 0x67, 0xa6, + 0xcf, 0xf3, 0xcc, 0x33, 0xcf, 0xcc, 0x7e, 0xd2, 0x7e, 0xc1, 0x7a, 0xc7, 0xce, 0xeb, 0x59, 0xc3, + 0xd6, 0x1d, 0x9a, 0xd5, 0xad, 0x5c, 0xda, 0x76, 0x2c, 0x66, 0xa5, 0xfa, 0x18, 0x29, 0x90, 0x22, + 0x61, 0xce, 0x94, 0xce, 0x2c, 0x5b, 0x1a, 0xb7, 0x7e, 0xfb, 0x95, 0x02, 0x7a, 0xfd, 0xa5, 0xde, + 0xff, 0x70, 0x37, 0x88, 0xe1, 0x51, 0xaa, 0xbb, 0x78, 0x94, 0xba, 0xea, 0x05, 0xa5, 0x5f, 0x19, + 0x88, 0xef, 0xd8, 0x92, 0xae, 0x5b, 0x95, 0x2e, 0x2f, 0xd1, 0xd9, 0x94, 0x4d, 0xb4, 0x2e, 0x3c, + 0x4a, 0x8f, 0xf0, 0x61, 0xea, 0xe6, 0x15, 0x05, 0xf4, 0xd4, 0xce, 0xc2, 0x11, 0xd0, 0xe5, 0x5b, + 0xb8, 0xc7, 0xb6, 0x81, 0xf8, 0x8e, 0xc1, 0x05, 0x3c, 0x96, 0x87, 0x7a, 0x81, 0xba, 0x4c, 0xeb, + 0xf4, 0xfc, 0xa7, 0xce, 0x5c, 0x51, 0x40, 0xa2, 0x66, 0x0e, 0xde, 0x5b, 0x65, 0x30, 0x71, 0x91, + 0xa8, 0x99, 0x7e, 0x65, 0x20, 0xb6, 0x6f, 0xed, 0xe9, 0xbd, 0x6b, 0xba, 0x14, 0x2d, 0xee, 0xfd, + 0xe4, 0x21, 0x5c, 0x24, 0x30, 0x07, 0xba, 0xa9, 0x3d, 0x91, 0xd1, 0x4b, 0x26, 0xcd, 0x61, 0x97, + 0xf9, 0xdb, 0xdb, 0xf3, 0x9f, 0x92, 0x49, 0x57, 0xbb, 0x90, 0xdb, 0x8f, 0x73, 0xd3, 0x51, 0x69, + 0xf1, 0x82, 0xa0, 0x72, 0x90, 0xe9, 0xdb, 0x0d, 0x82, 0x66, 0x07, 0x41, 0x5e, 0x90, 0xd4, 0x3f, + 0xc7, 0xc0, 0xba, 0x59, 0x79, 0xc0, 0x51, 0xd0, 0x59, 0xb0, 0x72, 0xdc, 0xb9, 0xbf, 0xb5, 0x03, + 0x77, 0xb8, 0xb5, 0xb4, 0xe7, 0x4f, 0xa6, 0xd0, 0x51, 0xb0, 0x72, 0x1a, 0xcd, 0xc2, 0x22, 0x88, + 0x99, 0x84, 0x1a, 0x63, 0x59, 0xcb, 0x71, 0xd5, 0x8b, 0x32, 0xd2, 0xa1, 0x3b, 0x8d, 0x54, 0xf6, + 0x28, 0x63, 0x55, 0x22, 0xa4, 0x3e, 0xee, 0x01, 0xdd, 0xd5, 0x79, 0xc0, 0x4d, 0x00, 0x98, 0xa5, + 0xa2, 0xee, 0x58, 0x25, 0x46, 0x5c, 0xf5, 0xfe, 0x7e, 0x65, 0xa0, 0x5d, 0x8b, 0x99, 0xa5, 0xa2, + 0x26, 0x0c, 0xf0, 0x24, 0xe8, 0xf0, 0xa6, 0xbc, 0x2a, 0x3c, 0xbb, 0x94, 0x55, 0x48, 0x4b, 0xdf, + 0x5e, 0x45, 0xe4, 0x20, 0xf5, 0x77, 0x37, 0x88, 0x57, 0xd9, 0xe1, 0x0b, 0x60, 0xad, 0x18, 0xfa, + 0xfd, 0x9e, 0x5b, 0xae, 0x0c, 0xe4, 0x67, 0x79, 0x4b, 0x64, 0xc8, 0xd4, 0xad, 0x38, 0x00, 0x15, + 0x2b, 0xdc, 0x00, 0x3a, 0x6c, 0x87, 0x8c, 0xd2, 0x49, 0x51, 0xa8, 0x98, 0xe6, 0x8d, 0xe0, 0x7b, + 0x0a, 0x00, 0x98, 0x31, 0x87, 0x66, 0x45, 0xa9, 0xbc, 0x63, 0x74, 0x1b, 0x90, 0x68, 0xba, 0x12, + 0x56, 0x56, 0xb1, 0x2a, 0x0f, 0x78, 0x59, 0x01, 0x3d, 0x64, 0x92, 0xe9, 0x55, 0xa9, 0x79, 0xa7, + 0x78, 0xaa, 0x11, 0xa9, 0xd5, 0x86, 0x96, 0xe9, 0x25, 0xc8, 0x24, 0x1b, 0xae, 0x64, 0x78, 0x1f, + 0x80, 0x05, 0xee, 0xb3, 0x68, 0xe5, 0xe9, 0x28, 0x25, 0x79, 0x3d, 0x8f, 0x19, 0x51, 0x77, 0x8b, + 0xe2, 0x26, 0xf9, 0xcc, 0x41, 0x6f, 0xe2, 0x71, 0xcc, 0x08, 0xdc, 0x0e, 0xd6, 0x8b, 0xd5, 0x25, + 0x9b, 0x2f, 0xd3, 0x1d, 0x92, 0x23, 0x74, 0x82, 0xe4, 0xd5, 0x47, 0xc5, 0x7a, 0xe1, 0xe9, 0xa8, + 0x98, 0xd2, 0xbc, 0x19, 0xb8, 0x05, 0xc4, 0x27, 0x70, 0x81, 0xe6, 0x65, 0x7f, 0xab, 0x7b, 0xfa, + 0x95, 0x81, 0x2e, 0x0d, 0x08, 0x93, 0x68, 0x70, 0x78, 0x0f, 0xe8, 0xa1, 0xa6, 0xb7, 0x84, 0x60, + 0xd7, 0x32, 0xd5, 0xbd, 0xc2, 0x59, 0xc2, 0xb3, 0x6a, 0xc2, 0x08, 0xef, 0x02, 0xb1, 0x2c, 0x71, + 0x99, 0x6e, 0x63, 0x36, 0xa6, 0x0e, 0x0b, 0x2f, 0x5d, 0xdc, 0x70, 0x18, 0xb3, 0xb1, 0xd4, 0xf5, + 0x36, 0xd0, 0x5b, 0xb7, 0x4f, 0xde, 0x29, 0x96, 0x43, 0x0d, 0x6a, 0xfa, 0x9d, 0x22, 0x47, 0x70, + 0x23, 0xe8, 0xc4, 0xae, 0x74, 0x93, 0x91, 0x13, 0xd8, 0xe5, 0x4e, 0xe0, 0xff, 0x41, 0x17, 0x76, + 0x33, 0x72, 0x66, 0xa7, 0x98, 0xe9, 0xc4, 0x6e, 0xc6, 0x9f, 0x32, 0x79, 0x2d, 0xc7, 0x2c, 0x5b, + 0x45, 0x72, 0x8a, 0x8f, 0x9f, 0xb4, 0x6c, 0x98, 0x04, 0x6d, 0x45, 0x92, 0x57, 0x1f, 0xe8, 0x57, + 0x06, 0x12, 0x1a, 0xff, 0xc8, 0xef, 0x73, 0xc1, 0xca, 0xe1, 0x82, 0xce, 0x5b, 0x53, 0x7d, 0x50, + 0x4c, 0xc4, 0x84, 0xe5, 0xb0, 0x43, 0x46, 0x79, 0x41, 0x30, 0xb3, 0x8a, 0x34, 0xa7, 0x63, 0xc3, + 0x70, 0xd4, 0x87, 0x64, 0x41, 0xa4, 0x69, 0xd8, 0x30, 0x1c, 0xf8, 0x19, 0x6f, 0x65, 0xc3, 0x70, + 0x88, 0x81, 0x99, 0xe5, 0xf8, 0xfd, 0xf2, 0xaa, 0xb2, 0x02, 0xbd, 0x9c, 0xae, 0xe4, 0xe1, 0xf7, + 0x76, 0xd9, 0x00, 0x37, 0x81, 0x58, 0xce, 0x2a, 0x16, 0x4b, 0x26, 0x65, 0x53, 0xfc, 0xc2, 0xb5, + 0x0d, 0xc4, 0xb4, 0x8a, 0x25, 0x75, 0x10, 0xf4, 0xd6, 0xfd, 0x34, 0xec, 0x01, 0x6b, 0xb0, 0xab, + 0xee, 0x12, 0x15, 0x59, 0x83, 0x5d, 0x5e, 0x3b, 0xec, 0x66, 0xd4, 0x87, 0x65, 0xed, 0xb0, 0x9b, + 0x81, 0x2a, 0xe8, 0xc4, 0xf9, 0xbc, 0x43, 0x5c, 0x57, 0x7d, 0xc4, 0x3b, 0x02, 0x39, 0x4c, 0xfd, + 0xd5, 0x06, 0xfa, 0x02, 0xda, 0x19, 0x6e, 0x03, 0x09, 0x79, 0xb0, 0x22, 0x0c, 0xcd, 0x7b, 0xa7, + 0xdd, 0x5d, 0x31, 0x8e, 0xe4, 0xe1, 0xdd, 0xa0, 0x3b, 0x57, 0x28, 0xb9, 0x8c, 0x38, 0x62, 0x9b, + 0x6a, 0x46, 0x24, 0x1b, 0xf7, 0x6c, 0x07, 0xf8, 0xc3, 0xb2, 0x0d, 0xf0, 0x8b, 0xa1, 0x57, 0x76, + 0xb4, 0x53, 0xac, 0xe9, 0x26, 0x93, 0xec, 0x31, 0xdf, 0x06, 0x21, 0x68, 0xc7, 0xd4, 0x90, 0x3d, + 0xd0, 0xae, 0x89, 0xcf, 0xbc, 0x9f, 0x78, 0xcb, 0xf0, 0xd0, 0xb2, 0x09, 0x3a, 0xf8, 0x70, 0x24, + 0x0f, 0xaf, 0x29, 0x60, 0x5d, 0xc9, 0x3c, 0x61, 0x5a, 0xa7, 0xcc, 0x4a, 0xd6, 0xfe, 0x13, 0xfa, + 0x8e, 0xb2, 0x42, 0xf7, 0x3f, 0x3d, 0x2b, 0x25, 0xf9, 0xdc, 0x26, 0x3d, 0x7b, 0xf9, 0x69, 0x48, + 0x4d, 0x80, 0x0d, 0xc1, 0x6b, 0xe1, 0x56, 0x10, 0xe3, 0x16, 0xe1, 0x4f, 0x34, 0x70, 0xc2, 0x07, + 0x94, 0x2e, 0x6e, 0x7f, 0x86, 0x9f, 0x0b, 0xbf, 0x4d, 0x7c, 0x4d, 0x81, 0x98, 0xde, 0x89, 0x77, + 0xf2, 0xf1, 0x01, 0x62, 0xf2, 0x0b, 0x22, 0xa6, 0x26, 0x70, 0xa1, 0x44, 0xc4, 0xe9, 0xc7, 0x34, + 0xe1, 0xf0, 0x18, 0x37, 0xa4, 0x6e, 0x3d, 0x01, 0x7a, 0x6a, 0xbf, 0x3e, 0xe1, 0x14, 0xbf, 0x7f, + 0xd2, 0xe2, 0x17, 0xf0, 0xf9, 0xa5, 0xfd, 0x86, 0x2e, 0x0f, 0x65, 0x35, 0xca, 0xe1, 0x52, 0x37, + 0xf6, 0x83, 0x44, 0xcd, 0x1c, 0xdc, 0x0e, 0x92, 0x65, 0x83, 0xdf, 0xac, 0x35, 0x94, 0xd6, 0xeb, + 0x4f, 0x0f, 0xcb, 0x59, 0x78, 0x9e, 0x53, 0x64, 0x7e, 0x5c, 0x64, 0x4b, 0x4d, 0xfe, 0x2e, 0xf8, + 0xb7, 0xda, 0x5e, 0xce, 0x5d, 0xa4, 0x6b, 0x63, 0x7a, 0xe0, 0x85, 0xf3, 0xe3, 0x1a, 0xcd, 0x8e, + 0x98, 0x87, 0x1d, 0x02, 0xa7, 0x15, 0xd0, 0x5b, 0xbd, 0xc8, 0x72, 0x99, 0xff, 0xd5, 0x79, 0xb2, + 0x61, 0x99, 0x59, 0x3e, 0x13, 0x76, 0x97, 0x53, 0xb3, 0x5c, 0x56, 0x93, 0x9b, 0x55, 0x62, 0xa2, + 0x6a, 0xd3, 0x8d, 0xcc, 0xcd, 0x0b, 0x5a, 0x93, 0xdb, 0xd3, 0x25, 0xc6, 0xeb, 0x76, 0x49, 0x01, + 0xc9, 0x9a, 0x65, 0xbc, 0x70, 0x1f, 0xc8, 0xe4, 0x9c, 0xc6, 0x25, 0x57, 0xae, 0x5c, 0xa2, 0x92, + 0x9d, 0xe5, 0xb2, 0xd4, 0xe9, 0x24, 0xe8, 0x0b, 0x38, 0xfb, 0x85, 0x48, 0xf3, 0x7d, 0xa5, 0x1e, + 0x35, 0x5f, 0x6c, 0x74, 0x7b, 0x06, 0xe2, 0xe8, 0xd5, 0x9e, 0x5a, 0x1c, 0xbd, 0xac, 0xd4, 0xf1, + 0xe8, 0xeb, 0xca, 0x4a, 0xe6, 0x19, 0x00, 0xad, 0xaf, 0x24, 0x16, 0x05, 0xad, 0xdf, 0x07, 0x42, + 0xeb, 0x85, 0xb0, 0xec, 0x66, 0x5e, 0xb2, 0xfd, 0x69, 0x4e, 0xb2, 0xfd, 0x30, 0x34, 0xf9, 0xaf, + 0x16, 0xfc, 0x3d, 0xd3, 0xde, 0x42, 0xf8, 0xfb, 0x5b, 0x20, 0xfe, 0x7e, 0x1e, 0xd6, 0x4b, 0x11, + 0x22, 0x44, 0x7e, 0xb3, 0xbd, 0xd9, 0x10, 0xf9, 0xc6, 0x7c, 0x88, 0xfc, 0x75, 0x98, 0xdf, 0x91, + 0xf0, 0x63, 0xf4, 0xb9, 0x24, 0x58, 0x1f, 0x84, 0x59, 0x0b, 0x51, 0xc0, 0xf9, 0x59, 0x14, 0xf0, + 0x52, 0xc3, 0x51, 0x30, 0x10, 0x03, 0xbe, 0xab, 0xc3, 0x80, 0x4f, 0xea, 0x31, 0xe0, 0x0d, 0x65, + 0x45, 0x13, 0x0d, 0xe0, 0x80, 0xb3, 0x8b, 0xe3, 0x80, 0x1f, 0x02, 0x39, 0xe0, 0x62, 0x68, 0xb6, + 0x33, 0x2f, 0x08, 0xfc, 0x3c, 0x27, 0x08, 0x5c, 0x0a, 0xcf, 0x06, 0x56, 0x0b, 0x09, 0x9c, 0x6d, + 0x25, 0x12, 0xf8, 0x3d, 0x90, 0x04, 0xbe, 0x08, 0xed, 0xb5, 0x08, 0x11, 0x0a, 0xbc, 0xd5, 0x74, + 0x28, 0x30, 0x33, 0x1f, 0x0a, 0x5c, 0x0d, 0xf5, 0x4b, 0xd2, 0x5c, 0x2c, 0x50, 0xfd, 0x6b, 0x8d, + 0xb0, 0xb2, 0x40, 0x75, 0x8e, 0xa1, 0x66, 0x81, 0xb9, 0x12, 0x6d, 0x52, 0x16, 0x58, 0xc4, 0x76, + 0xc2, 0xcd, 0x02, 0x8b, 0xd9, 0x40, 0xc4, 0x02, 0x11, 0x0b, 0x2c, 0xfb, 0xb5, 0x88, 0x58, 0xa0, + 0xc9, 0x59, 0xe0, 0x36, 0x5f, 0x92, 0xf0, 0xb3, 0xc0, 0xbb, 0x49, 0xf0, 0xbf, 0xc0, 0xbf, 0x22, + 0x2c, 0x04, 0x03, 0x17, 0x66, 0xc1, 0xc0, 0xcb, 0x8d, 0xff, 0x53, 0x47, 0x20, 0x0d, 0x5c, 0xab, + 0xa3, 0x81, 0x4f, 0xeb, 0x69, 0xe0, 0x9c, 0xb2, 0xb2, 0x99, 0x06, 0xe0, 0xc0, 0xb9, 0xc5, 0xe1, + 0xc0, 0x8f, 0x81, 0x38, 0x30, 0x1d, 0x9e, 0xfd, 0xcc, 0xcb, 0x03, 0xbf, 0xcc, 0xc9, 0x03, 0x1f, + 0x85, 0x68, 0x07, 0xab, 0x05, 0x08, 0x5e, 0x6b, 0x25, 0x20, 0xf8, 0x23, 0x10, 0x08, 0xbe, 0x0c, + 0xef, 0xc5, 0x08, 0x11, 0x11, 0xbc, 0xdd, 0x74, 0x44, 0x70, 0x73, 0x3e, 0x22, 0xf8, 0x26, 0xdc, + 0x6f, 0x49, 0xf8, 0x91, 0xc0, 0xd3, 0xdf, 0xa2, 0xa5, 0xd7, 0xdf, 0xa2, 0x86, 0xe9, 0x6f, 0x51, + 0x88, 0xf5, 0xb7, 0x68, 0xc5, 0xf5, 0xb7, 0xa8, 0x59, 0xf4, 0xb7, 0x28, 0xbc, 0xfa, 0x5b, 0x14, + 0xe9, 0x6f, 0x23, 0xfd, 0x6d, 0x63, 0x7b, 0x39, 0xd2, 0xdf, 0x86, 0x48, 0x7f, 0x8b, 0x22, 0xfd, + 0x6d, 0xd6, 0x72, 0x64, 0xa7, 0xdd, 0x8e, 0xfe, 0x16, 0xb5, 0x84, 0xfe, 0x16, 0x85, 0x56, 0x7f, + 0x8b, 0x42, 0xac, 0xbf, 0x45, 0x61, 0xd6, 0xdf, 0xa2, 0x16, 0xd2, 0xdf, 0xa2, 0x26, 0xd1, 0xdf, + 0xa2, 0x96, 0xd2, 0xdf, 0xa2, 0x26, 0xd7, 0xdf, 0xa2, 0x48, 0x7f, 0x1b, 0xe9, 0x6f, 0x97, 0x5a, + 0x7f, 0x8b, 0x22, 0xfd, 0xed, 0x6a, 0xd3, 0xdf, 0xa2, 0x48, 0x7f, 0x1b, 0x0a, 0xfd, 0x2d, 0x6a, + 0x16, 0xfd, 0x2d, 0x6a, 0x2d, 0xfd, 0x2d, 0x6a, 0x76, 0xfd, 0x2d, 0x8a, 0xf4, 0xb7, 0x91, 0xe6, + 0x66, 0xc9, 0x35, 0x37, 0x28, 0xd2, 0xdf, 0xae, 0x3a, 0xcd, 0x0d, 0x8a, 0xf4, 0xb7, 0xe1, 0xd0, + 0xdf, 0xa2, 0x66, 0xd1, 0xdf, 0xa2, 0xd6, 0xd2, 0xdf, 0xa2, 0x66, 0xd7, 0xdf, 0xa2, 0x48, 0x7f, + 0x1b, 0xb1, 0x40, 0x28, 0x58, 0x20, 0xd2, 0xdf, 0xae, 0x3e, 0x16, 0x88, 0xf4, 0xb7, 0xcb, 0xa1, + 0xbf, 0x45, 0x4d, 0xa3, 0xbf, 0x45, 0x2d, 0xa6, 0xbf, 0x45, 0x4d, 0xaf, 0xbf, 0x45, 0x91, 0xfe, + 0x36, 0xd2, 0xdf, 0x2e, 0xbd, 0xfe, 0x16, 0x45, 0xfa, 0xdb, 0xd5, 0xa7, 0xbf, 0x45, 0x91, 0xfe, + 0xb6, 0x82, 0x04, 0xbb, 0x8e, 0x03, 0x75, 0xdc, 0xb4, 0x1d, 0xbd, 0xae, 0x8a, 0x3a, 0x99, 0x64, + 0x70, 0x63, 0xfa, 0xa9, 0x92, 0x49, 0x6d, 0xe2, 0x1c, 0x22, 0xec, 0x94, 0xe5, 0x9c, 0x70, 0x8f, + 0x10, 0xd3, 0xb5, 0x1c, 0x57, 0xbc, 0x51, 0xf1, 0x1d, 0xc9, 0xfa, 0xd2, 0x6b, 0x7d, 0xdc, 0xd5, + 0x3e, 0xc3, 0xd6, 0x68, 0x56, 0xfe, 0xbb, 0x7f, 0x92, 0xed, 0x3b, 0xfe, 0xeb, 0xcc, 0x66, 0xe5, + 0xcf, 0x99, 0xcd, 0xca, 0xf5, 0x99, 0xcd, 0xca, 0x73, 0x9a, 0x41, 0x59, 0x7a, 0x5c, 0xba, 0x4d, + 0x9b, 0x84, 0x0d, 0xd1, 0x1c, 0xc9, 0x12, 0xc7, 0x18, 0x1a, 0x23, 0xb8, 0xc0, 0xc6, 0xb2, 0x16, + 0x1b, 0xa4, 0xa6, 0x41, 0x5c, 0x36, 0x38, 0xce, 0xe8, 0xa0, 0x89, 0x19, 0x9d, 0x20, 0x43, 0xf6, + 0x09, 0x63, 0x68, 0x9c, 0xd1, 0x21, 0x9c, 0xc7, 0x36, 0x23, 0x8e, 0x3b, 0xa4, 0x8f, 0x97, 0x4c, + 0xcb, 0x1d, 0x72, 0x73, 0x63, 0xa4, 0x88, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xbe, 0x95, + 0x1b, 0xaa, 0x59, 0x00, 0x00, +} + +func (m *BgpRibBgpRib) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRib) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRib) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AfiSafis != nil { + { + size, err := m.AfiSafis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AfiSafi) > 0 { + for iNdEx := len(m.AfiSafi) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AfiSafi[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6Unicast != nil { + { + size, err := m.Ipv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Ipv4Unicast != nil { + { + size, err := m.Ipv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.LocRib != nil { + { + size, err := m.LocRib.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AdjRibOutPost != nil { + { + size, err := m.AdjRibOutPost.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.AdjRibOutPre != nil { + { + size, err := m.AdjRibOutPre.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.AdjRibInPost != nil { + { + size, err := m.AdjRibInPost.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.AdjRibInPre != nil { + { + size, err := m.AdjRibInPre.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NeighborAddress != nil { + i -= len(*m.NeighborAddress) + copy(dAtA[i:], *m.NeighborAddress) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NeighborAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.LocRib != nil { + { + size, err := m.LocRib.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AdjRibOutPost != nil { + { + size, err := m.AdjRibOutPost.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.AdjRibOutPre != nil { + { + size, err := m.AdjRibOutPre.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.AdjRibInPost != nil { + { + size, err := m.AdjRibInPost.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.AdjRibInPre != nil { + { + size, err := m.AdjRibInPre.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NeighborAddress != nil { + i -= len(*m.NeighborAddress) + copy(dAtA[i:], *m.NeighborAddress) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NeighborAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Routes != nil { + { + size, err := m.Routes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NumRoutes != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.NumRoutes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Route) > 0 { + for iNdEx := len(m.Route) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Route[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ExtAttributes != nil { + { + size, err := m.ExtAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.BestPath != nil { + i-- + if *m.BestPath { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.ValidRoute != nil { + i-- + if *m.ValidRoute { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastUpdateReceived != nil { + i -= len(*m.LastUpdateReceived) + copy(dAtA[i:], *m.LastUpdateReceived) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastUpdateReceived))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LastModifiedDate != nil { + i -= len(*m.LastModifiedDate) + copy(dAtA[i:], *m.LastModifiedDate) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.LastModifiedDate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Community) > 0 { + for iNdEx := len(m.Community) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Community[iNdEx]) + copy(dAtA[i:], m.Community[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.Community[iNdEx]))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Aggregator != nil { + { + size, err := m.Aggregator.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AtomicAggr != nil { + i-- + if *m.AtomicAggr { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LocalPref != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.LocalPref)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Med != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Med)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.As4Path != nil { + i -= len(*m.As4Path) + copy(dAtA[i:], *m.As4Path) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.As4Path))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.AsPath != nil { + i -= len(*m.AsPath) + copy(dAtA[i:], *m.AsPath) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AsPath))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.As4 != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.As != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UnknownAttribute) > 0 { + for iNdEx := len(m.UnknownAttribute) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnknownAttribute[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.PathId != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.PathId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Aigp != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.Aigp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if len(m.ExtCommunity) > 0 { + for iNdEx := len(m.ExtCommunity) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExtCommunity[iNdEx]) + copy(dAtA[i:], m.ExtCommunity[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ExtCommunity[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.ClusterList) > 0 { + for iNdEx := len(m.ClusterList) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClusterList[iNdEx]) + copy(dAtA[i:], m.ClusterList[iNdEx]) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(m.ClusterList[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.OriginatorId != nil { + i -= len(*m.OriginatorId) + copy(dAtA[i:], *m.OriginatorId) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.OriginatorId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AttrValue != nil { + i -= len(*m.AttrValue) + copy(dAtA[i:], *m.AttrValue) + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(len(*m.AttrValue))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AttrLen != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrLen)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AttrType != nil { + i = encodeVarintRpdBgpRibOc(dAtA, i, uint64(*m.AttrType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdBgpRibOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdBgpRibOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *BgpRibBgpRib) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafis != nil { + l = m.AfiSafis.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AfiSafi) > 0 { + for _, e := range m.AfiSafi { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Ipv4Unicast != nil { + l = m.Ipv4Unicast.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Ipv6Unicast != nil { + l = m.Ipv6Unicast.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocRib != nil { + l = m.LocRib.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NeighborAddress != nil { + l = len(*m.NeighborAddress) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibInPre != nil { + l = m.AdjRibInPre.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibInPost != nil { + l = m.AdjRibInPost.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibOutPre != nil { + l = m.AdjRibOutPre.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibOutPost != nil { + l = m.AdjRibOutPost.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocRib != nil { + l = m.LocRib.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NeighborAddress != nil { + l = len(*m.NeighborAddress) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibInPre != nil { + l = m.AdjRibInPre.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibInPost != nil { + l = m.AdjRibInPost.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibOutPre != nil { + l = m.AdjRibOutPre.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AdjRibOutPost != nil { + l = m.AdjRibOutPost.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumRoutes != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.NumRoutes)) + } + if m.Routes != nil { + l = m.Routes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Route) > 0 { + for _, e := range m.Route { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastModifiedDate != nil { + l = len(*m.LastModifiedDate) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.LastUpdateReceived != nil { + l = len(*m.LastUpdateReceived) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.ValidRoute != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.BestPath != nil { + n += 3 + } + if m.ExtAttributes != nil { + l = m.ExtAttributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Attributes != nil { + l = m.Attributes.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.AsPath != nil { + l = len(*m.AsPath) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.As4Path != nil { + l = len(*m.As4Path) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.Med != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Med)) + } + if m.LocalPref != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.LocalPref)) + } + if m.AtomicAggr != nil { + n += 3 + } + if m.Aggregator != nil { + l = m.Aggregator.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.Community) > 0 { + for _, s := range m.Community { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As)) + } + if m.As4 != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.As4)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OriginatorId != nil { + l = len(*m.OriginatorId) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if len(m.ClusterList) > 0 { + for _, s := range m.ClusterList { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if len(m.ExtCommunity) > 0 { + for _, s := range m.ExtCommunity { + l = len(s) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.Aigp != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.Aigp)) + } + if m.PathId != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.PathId)) + } + if len(m.UnknownAttribute) > 0 { + for _, e := range m.UnknownAttribute { + l = e.Size() + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AttrType != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrType)) + } + if m.AttrLen != nil { + n += 2 + sovRpdBgpRibOc(uint64(*m.AttrLen)) + } + if m.AttrValue != nil { + l = len(*m.AttrValue) + n += 2 + l + sovRpdBgpRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdBgpRibOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdBgpRibOc(x uint64) (n int) { + return sovRpdBgpRibOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *BgpRibBgpRib) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bgp_rib_bgp_rib: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bgp_rib_bgp_rib: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AfiSafis == nil { + m.AfiSafis = &BgpRibBgpRibAfiSafisType{} + } + if err := m.AfiSafis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafi", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AfiSafi = append(m.AfiSafi, &BgpRibBgpRibAfiSafisTypeAfiSafiList{}) + if err := m.AfiSafi[len(m.AfiSafi)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safi_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safi_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Unicast == nil { + m.Ipv4Unicast = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType{} + } + if err := m.Ipv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Unicast == nil { + m.Ipv6Unicast = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType{} + } + if err := m.Ipv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocRib", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LocRib == nil { + m.LocRib = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType{} + } + if err := m.LocRib.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: loc_rib_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: loc_rib_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborAddress = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibInPre", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibInPre == nil { + m.AdjRibInPre = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType{} + } + if err := m.AdjRibInPre.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibInPost", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibInPost == nil { + m.AdjRibInPost = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType{} + } + if err := m.AdjRibInPost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibOutPre", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibOutPre == nil { + m.AdjRibOutPre = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType{} + } + if err := m.AdjRibOutPre.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibOutPost", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibOutPost == nil { + m.AdjRibOutPost = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType{} + } + if err := m.AdjRibOutPost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_in_pre_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_in_pre_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_in_post_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_in_post_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_out_pre_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_out_pre_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_out_post_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_out_post_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv4UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocRib", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LocRib == nil { + m.LocRib = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType{} + } + if err := m.LocRib.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: loc_rib_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: loc_rib_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeLocRibTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborAddress = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibInPre", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibInPre == nil { + m.AdjRibInPre = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType{} + } + if err := m.AdjRibInPre.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibInPost", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibInPost == nil { + m.AdjRibInPost = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType{} + } + if err := m.AdjRibInPost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibOutPre", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibOutPre == nil { + m.AdjRibOutPre = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType{} + } + if err := m.AdjRibOutPre.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjRibOutPost", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjRibOutPost == nil { + m.AdjRibOutPost = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType{} + } + if err := m.AdjRibOutPost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_in_pre_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_in_pre_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_in_post_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_in_post_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibInPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_out_pre_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_out_pre_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPreTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_rib_out_post_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_rib_out_post_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRoutes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRoutes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Routes == nil { + m.Routes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType{} + } + if err := m.Routes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Route", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Route = append(m.Route, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList{}) + if err := m.Route[len(m.Route)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifiedDate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastModifiedDate = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateReceived", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastUpdateReceived = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidRoute", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ValidRoute = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BestPath", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.BestPath = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtAttributes == nil { + m.ExtAttributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType{} + } + if err := m.ExtAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Attributes == nil { + m.Attributes = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType{} + } + if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AsPath = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field As4Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.As4Path = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Med", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Med = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPref", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPref = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AtomicAggr", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AtomicAggr = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Aggregator == nil { + m.Aggregator = &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType{} + } + if err := m.Aggregator.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Community", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Community = append(m.Community, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListAttributesTypeAggregatorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregator_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregator_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As4 = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ext_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ext_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterList", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterList = append(m.ClusterList, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtCommunity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtCommunity = append(m.ExtCommunity, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Aigp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Aigp = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAttribute", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnknownAttribute = append(m.UnknownAttribute, &BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList{}) + if err := m.UnknownAttribute[len(m.UnknownAttribute)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BgpRibBgpRibAfiSafisTypeAfiSafiListIpv6UnicastTypeNeighborsTypeNeighborListAdjRibOutPostTypeRoutesTypeRouteListExtAttributesTypeUnknownAttributeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_attribute_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_attribute_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrType = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrLen", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AttrLen = &v + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AttrValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AttrValue = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdBgpRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdBgpRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdBgpRibOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdBgpRibOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdBgpRibOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdBgpRibOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdBgpRibOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdBgpRibOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdBgpRibOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdBgpRibOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_bgp_rib_oc.proto b/schema/rpd_bgp_rib_oc.proto new file mode 100755 index 0000000..5f515eb --- /dev/null +++ b/schema/rpd_bgp_rib_oc.proto @@ -0,0 +1,507 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional bgp_rib_bgp_rib jnpr_bgp_rib_bgp_rib_ext = 63; +} + +message bgp_rib_bgp_rib { + optional afi_safis_type afi_safis = 151; + message afi_safis_type { + message afi_safi_list { + optional string afi_safi_name = 52 [(telemetry_options).is_key = true]; + optional ipv4_unicast_type ipv4_unicast = 151; + message ipv4_unicast_type { + optional loc_rib_type loc_rib = 151; + message loc_rib_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string neighbor_address = 52 [(telemetry_options).is_key = true]; + optional adj_rib_in_pre_type adj_rib_in_pre = 151; + message adj_rib_in_pre_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional adj_rib_in_post_type adj_rib_in_post = 152; + message adj_rib_in_post_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional adj_rib_out_pre_type adj_rib_out_pre = 153; + message adj_rib_out_pre_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional adj_rib_out_post_type adj_rib_out_post = 154; + message adj_rib_out_post_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + } + repeated neighbor_list neighbor = 151; + } + } + optional ipv6_unicast_type ipv6_unicast = 153; + message ipv6_unicast_type { + optional loc_rib_type loc_rib = 151; + message loc_rib_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string neighbor_address = 52 [(telemetry_options).is_key = true]; + optional adj_rib_in_pre_type adj_rib_in_pre = 151; + message adj_rib_in_pre_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional adj_rib_in_post_type adj_rib_in_post = 152; + message adj_rib_in_post_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional adj_rib_out_pre_type adj_rib_out_pre = 153; + message adj_rib_out_pre_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + optional adj_rib_out_post_type adj_rib_out_post = 154; + message adj_rib_out_post_type { + optional uint64 num_routes = 51; + optional routes_type routes = 151; + message routes_type { + message route_list { + optional string prefix = 51; + optional attributes_type attributes = 152; + message attributes_type { + optional string origin = 51; + optional string as_path = 52; + optional string as4_path = 53; + optional string next_hop = 54; + optional uint32 med = 55; + optional uint32 local_pref = 56; + optional bool atomic_aggr = 57; + optional aggregator_type aggregator = 151; + message aggregator_type { + optional uint32 as = 58; + optional uint32 as4 = 59; + optional string address = 60; + } + repeated string community = 152; + } + optional ext_attributes_type ext_attributes = 151; + message ext_attributes_type { + optional string originator_id = 51; + repeated string cluster_list = 52; + repeated string ext_community = 53; + optional uint64 aigp = 54; + optional uint32 path_id = 55; + message unknown_attribute_list { + optional uint32 attr_type = 57 [(telemetry_options).is_key = true]; + optional uint32 attr_len = 58; + optional string attr_value = 59; + } + repeated unknown_attribute_list unknown_attribute = 151; + } + optional string last_modified_date = 61; + optional string last_update_received = 62; + optional bool valid_route = 63; + optional string invalid_reason = 64; + optional bool best_path = 65; + } + repeated route_list route = 151; + } + } + } + repeated neighbor_list neighbor = 152; + } + } + } + repeated afi_safi_list afi_safi = 151; + } +} diff --git a/schema/rpd_evpn_global_render.pb.go b/schema/rpd_evpn_global_render.pb.go new file mode 100644 index 0000000..fe5bbd7 --- /dev/null +++ b/schema/rpd_evpn_global_render.pb.go @@ -0,0 +1,1547 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_evpn_global_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosEvpn struct { + Evpn *JunosEvpnEvpnType `protobuf:"bytes,171,opt,name=evpn" json:"evpn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEvpn) Reset() { *m = JunosEvpn{} } +func (m *JunosEvpn) String() string { return proto.CompactTextString(m) } +func (*JunosEvpn) ProtoMessage() {} +func (*JunosEvpn) Descriptor() ([]byte, []int) { + return fileDescriptor_ce797971eeb39af0, []int{0} +} +func (m *JunosEvpn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEvpn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEvpn.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEvpn) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEvpn.Merge(m, src) +} +func (m *JunosEvpn) XXX_Size() int { + return m.Size() +} +func (m *JunosEvpn) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEvpn.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEvpn proto.InternalMessageInfo + +func (m *JunosEvpn) GetEvpn() *JunosEvpnEvpnType { + if m != nil { + return m.Evpn + } + return nil +} + +type JunosEvpnEvpnType struct { + EvpnSmetForwarding *JunosEvpnEvpnTypeEvpnSmetForwardingType `protobuf:"bytes,171,opt,name=evpn_smet_forwarding,json=evpnSmetForwarding" json:"evpn_smet_forwarding,omitempty"` + L3Context []*JunosEvpnEvpnTypeL3ContextList `protobuf:"bytes,180,rep,name=l3_context,json=l3Context" json:"l3_context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEvpnEvpnType) Reset() { *m = JunosEvpnEvpnType{} } +func (m *JunosEvpnEvpnType) String() string { return proto.CompactTextString(m) } +func (*JunosEvpnEvpnType) ProtoMessage() {} +func (*JunosEvpnEvpnType) Descriptor() ([]byte, []int) { + return fileDescriptor_ce797971eeb39af0, []int{0, 0} +} +func (m *JunosEvpnEvpnType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEvpnEvpnType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEvpnEvpnType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEvpnEvpnType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEvpnEvpnType.Merge(m, src) +} +func (m *JunosEvpnEvpnType) XXX_Size() int { + return m.Size() +} +func (m *JunosEvpnEvpnType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEvpnEvpnType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEvpnEvpnType proto.InternalMessageInfo + +func (m *JunosEvpnEvpnType) GetEvpnSmetForwarding() *JunosEvpnEvpnTypeEvpnSmetForwardingType { + if m != nil { + return m.EvpnSmetForwarding + } + return nil +} + +func (m *JunosEvpnEvpnType) GetL3Context() []*JunosEvpnEvpnTypeL3ContextList { + if m != nil { + return m.L3Context + } + return nil +} + +type JunosEvpnEvpnTypeEvpnSmetForwardingType struct { + Enabled *bool `protobuf:"varint,71,opt,name=enabled" json:"enabled,omitempty"` + NexthopLimit *uint32 `protobuf:"varint,72,opt,name=nexthop_limit,json=nexthopLimit" json:"nexthop_limit,omitempty"` + NexthopUsage *uint32 `protobuf:"varint,73,opt,name=nexthop_usage,json=nexthopUsage" json:"nexthop_usage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) Reset() { + *m = JunosEvpnEvpnTypeEvpnSmetForwardingType{} +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) String() string { return proto.CompactTextString(m) } +func (*JunosEvpnEvpnTypeEvpnSmetForwardingType) ProtoMessage() {} +func (*JunosEvpnEvpnTypeEvpnSmetForwardingType) Descriptor() ([]byte, []int) { + return fileDescriptor_ce797971eeb39af0, []int{0, 0, 0} +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEvpnEvpnTypeEvpnSmetForwardingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEvpnEvpnTypeEvpnSmetForwardingType.Merge(m, src) +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) XXX_Size() int { + return m.Size() +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEvpnEvpnTypeEvpnSmetForwardingType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEvpnEvpnTypeEvpnSmetForwardingType proto.InternalMessageInfo + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) GetNexthopLimit() uint32 { + if m != nil && m.NexthopLimit != nil { + return *m.NexthopLimit + } + return 0 +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) GetNexthopUsage() uint32 { + if m != nil && m.NexthopUsage != nil { + return *m.NexthopUsage + } + return 0 +} + +type JunosEvpnEvpnTypeL3ContextList struct { + ContextName *string `protobuf:"bytes,71,opt,name=context_name,json=contextName" json:"context_name,omitempty"` + Encapsulation *string `protobuf:"bytes,72,opt,name=encapsulation" json:"encapsulation,omitempty"` + AdvertisementMode *string `protobuf:"bytes,73,opt,name=advertisement_mode,json=advertisementMode" json:"advertisement_mode,omitempty"` + MulticastRoutingMode *string `protobuf:"bytes,74,opt,name=multicast_routing_mode,json=multicastRoutingMode" json:"multicast_routing_mode,omitempty"` + IpPrefixDatabase []*JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList `protobuf:"bytes,170,rep,name=ip_prefix_database,json=ipPrefixDatabase" json:"ip_prefix_database,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEvpnEvpnTypeL3ContextList) Reset() { *m = JunosEvpnEvpnTypeL3ContextList{} } +func (m *JunosEvpnEvpnTypeL3ContextList) String() string { return proto.CompactTextString(m) } +func (*JunosEvpnEvpnTypeL3ContextList) ProtoMessage() {} +func (*JunosEvpnEvpnTypeL3ContextList) Descriptor() ([]byte, []int) { + return fileDescriptor_ce797971eeb39af0, []int{0, 0, 1} +} +func (m *JunosEvpnEvpnTypeL3ContextList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEvpnEvpnTypeL3ContextList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEvpnEvpnTypeL3ContextList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEvpnEvpnTypeL3ContextList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEvpnEvpnTypeL3ContextList.Merge(m, src) +} +func (m *JunosEvpnEvpnTypeL3ContextList) XXX_Size() int { + return m.Size() +} +func (m *JunosEvpnEvpnTypeL3ContextList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEvpnEvpnTypeL3ContextList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEvpnEvpnTypeL3ContextList proto.InternalMessageInfo + +func (m *JunosEvpnEvpnTypeL3ContextList) GetContextName() string { + if m != nil && m.ContextName != nil { + return *m.ContextName + } + return "" +} + +func (m *JunosEvpnEvpnTypeL3ContextList) GetEncapsulation() string { + if m != nil && m.Encapsulation != nil { + return *m.Encapsulation + } + return "" +} + +func (m *JunosEvpnEvpnTypeL3ContextList) GetAdvertisementMode() string { + if m != nil && m.AdvertisementMode != nil { + return *m.AdvertisementMode + } + return "" +} + +func (m *JunosEvpnEvpnTypeL3ContextList) GetMulticastRoutingMode() string { + if m != nil && m.MulticastRoutingMode != nil { + return *m.MulticastRoutingMode + } + return "" +} + +func (m *JunosEvpnEvpnTypeL3ContextList) GetIpPrefixDatabase() []*JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList { + if m != nil { + return m.IpPrefixDatabase + } + return nil +} + +type JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList struct { + IpPrefix *string `protobuf:"bytes,71,opt,name=ip_prefix,json=ipPrefix" json:"ip_prefix,omitempty"` + RouteStatus *string `protobuf:"bytes,72,opt,name=route_status,json=routeStatus" json:"route_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) Reset() { + *m = JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList{} +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) String() string { + return proto.CompactTextString(m) +} +func (*JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) ProtoMessage() {} +func (*JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) Descriptor() ([]byte, []int) { + return fileDescriptor_ce797971eeb39af0, []int{0, 0, 1, 0} +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList.Merge(m, src) +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) XXX_Size() int { + return m.Size() +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList proto.InternalMessageInfo + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) GetIpPrefix() string { + if m != nil && m.IpPrefix != nil { + return *m.IpPrefix + } + return "" +} + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) GetRouteStatus() string { + if m != nil && m.RouteStatus != nil { + return *m.RouteStatus + } + return "" +} + +var E_JnprJunosEvpnExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosEvpn)(nil), + Field: 113, + Name: "jnpr_junos_evpn_ext", + Tag: "bytes,113,opt,name=jnpr_junos_evpn_ext", + Filename: "rpd_evpn_global_render.proto", +} + +func init() { + proto.RegisterType((*JunosEvpn)(nil), "junos_evpn") + proto.RegisterType((*JunosEvpnEvpnType)(nil), "junos_evpn.evpn_type") + proto.RegisterType((*JunosEvpnEvpnTypeEvpnSmetForwardingType)(nil), "junos_evpn.evpn_type.evpn_smet_forwarding_type") + proto.RegisterType((*JunosEvpnEvpnTypeL3ContextList)(nil), "junos_evpn.evpn_type.l3_context_list") + proto.RegisterType((*JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList)(nil), "junos_evpn.evpn_type.l3_context_list.ip_prefix_database_list") + proto.RegisterExtension(E_JnprJunosEvpnExt) +} + +func init() { proto.RegisterFile("rpd_evpn_global_render.proto", fileDescriptor_ce797971eeb39af0) } + +var fileDescriptor_ce797971eeb39af0 = []byte{ + // 568 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x95, 0x29, 0x85, 0x66, 0xd3, 0x8a, 0xb2, 0x2d, 0xd4, 0x44, 0xa8, 0x0a, 0x05, 0xa4, 0x08, + 0x29, 0xb6, 0xd4, 0x72, 0x42, 0x42, 0x42, 0x85, 0xf2, 0x51, 0x41, 0x85, 0x1c, 0x71, 0xe1, 0xb2, + 0xdd, 0xc4, 0x53, 0x67, 0xd3, 0xf5, 0xee, 0xb2, 0x3b, 0x4e, 0xd3, 0x13, 0x12, 0x57, 0xee, 0xfc, + 0x08, 0xb8, 0xf2, 0x23, 0x38, 0xf6, 0x27, 0xa0, 0xfe, 0x12, 0xe4, 0x75, 0x92, 0x36, 0xd0, 0x4a, + 0x9c, 0xac, 0x79, 0xef, 0xcd, 0x9b, 0xb7, 0x33, 0x26, 0x77, 0xad, 0x49, 0x19, 0x0c, 0x8d, 0x62, + 0x99, 0xd4, 0x5d, 0x2e, 0x99, 0x05, 0x95, 0x82, 0x8d, 0x8c, 0xd5, 0xa8, 0x1b, 0x2b, 0x08, 0x12, + 0x72, 0x40, 0x7b, 0xcc, 0x50, 0x9b, 0x0a, 0xdc, 0xf8, 0x7a, 0x8d, 0x90, 0x41, 0xa1, 0xb4, 0xf3, + 0x7d, 0xf4, 0x11, 0xb9, 0x5a, 0x7e, 0xc3, 0x1f, 0x41, 0x33, 0x68, 0xd5, 0x37, 0x6f, 0x45, 0x67, + 0x5c, 0xe4, 0x8d, 0xf1, 0xd8, 0x40, 0xe2, 0x35, 0x8d, 0x93, 0x79, 0x52, 0x9b, 0x62, 0xb4, 0x4b, + 0x56, 0x7d, 0xe1, 0x72, 0x40, 0x76, 0xa0, 0xed, 0x11, 0xb7, 0xa9, 0x50, 0xd9, 0xc4, 0x29, 0xbe, + 0xd0, 0x29, 0xba, 0xa8, 0xa5, 0x9a, 0x41, 0x4b, 0xaa, 0x93, 0x03, 0xbe, 0x9c, 0x12, 0x74, 0x87, + 0x10, 0xb9, 0xc5, 0x7a, 0x5a, 0x21, 0x8c, 0x30, 0xfc, 0x19, 0x34, 0xe7, 0x5a, 0xf5, 0xcd, 0x87, + 0x17, 0x3b, 0x9f, 0x09, 0x99, 0x14, 0x0e, 0x93, 0x9a, 0xdc, 0x7a, 0x5e, 0xd5, 0x8d, 0xcf, 0xe4, + 0xce, 0xa5, 0x73, 0x69, 0x48, 0xae, 0x83, 0xe2, 0x5d, 0x09, 0x69, 0xf8, 0xaa, 0x19, 0xb4, 0x16, + 0x92, 0x49, 0x49, 0xef, 0x93, 0x25, 0x05, 0x23, 0xec, 0x6b, 0xc3, 0xa4, 0xc8, 0x05, 0x86, 0xaf, + 0x9b, 0x41, 0x6b, 0x29, 0x59, 0x1c, 0x83, 0x6f, 0x4b, 0xec, 0xbc, 0xa8, 0x70, 0x3c, 0x83, 0xf0, + 0xcd, 0x8c, 0xe8, 0x43, 0x89, 0x35, 0xbe, 0xcd, 0x91, 0x1b, 0x7f, 0xe5, 0xa3, 0x2d, 0xb2, 0x38, + 0xa9, 0x15, 0xcf, 0xc1, 0x0f, 0xaf, 0x6d, 0xcf, 0x7f, 0x79, 0x76, 0x65, 0x21, 0x48, 0xea, 0x63, + 0x6a, 0x8f, 0xe7, 0x40, 0x1f, 0x90, 0x25, 0x50, 0x3d, 0x6e, 0x5c, 0x21, 0x39, 0x0a, 0xad, 0x7c, + 0x8e, 0x5a, 0x32, 0x0b, 0xd2, 0x36, 0xa1, 0x3c, 0x1d, 0x82, 0x45, 0xe1, 0x20, 0x07, 0x85, 0x2c, + 0xd7, 0x69, 0x95, 0xa6, 0x96, 0xdc, 0x9c, 0x61, 0xde, 0xe9, 0x14, 0xe8, 0x63, 0x72, 0x3b, 0x2f, + 0x24, 0x8a, 0x1e, 0x77, 0xc8, 0xac, 0x2e, 0xb0, 0x5c, 0x88, 0x6f, 0xd9, 0xf5, 0x2d, 0xab, 0x53, + 0x36, 0xa9, 0x48, 0xdf, 0x25, 0x09, 0x15, 0x86, 0x19, 0x0b, 0x07, 0x62, 0xc4, 0x52, 0x8e, 0xbc, + 0xcb, 0x1d, 0x84, 0xdf, 0xab, 0xc3, 0x3c, 0xfd, 0xaf, 0xc3, 0x44, 0xff, 0x1a, 0x54, 0x07, 0x5b, + 0x16, 0xe6, 0xbd, 0xc7, 0x5f, 0x8c, 0xe1, 0xc6, 0x3e, 0x59, 0xbb, 0x44, 0x4c, 0x37, 0x48, 0x6d, + 0x4a, 0xcd, 0xae, 0x6e, 0x61, 0x62, 0x43, 0xef, 0x91, 0xc5, 0xf2, 0x61, 0xc0, 0x1c, 0x72, 0x2c, + 0xdc, 0x78, 0x6d, 0x75, 0x8f, 0x75, 0x3c, 0xf4, 0xa4, 0x43, 0x56, 0x06, 0xca, 0x58, 0x76, 0x16, + 0x9c, 0xc1, 0x08, 0xe9, 0x5a, 0xb4, 0x5b, 0x28, 0x61, 0xc0, 0xee, 0x01, 0x1e, 0x69, 0x7b, 0xe8, + 0x3a, 0xa0, 0x9c, 0xb6, 0x2e, 0xfc, 0xe4, 0xff, 0xed, 0xfa, 0xb9, 0x87, 0x26, 0xcb, 0xa5, 0xc1, + 0x6e, 0x59, 0xef, 0x0c, 0x8d, 0xda, 0x19, 0xe1, 0xf6, 0xfe, 0xaf, 0xd3, 0xf5, 0xe0, 0xe4, 0x74, + 0x3d, 0xf8, 0x7d, 0xba, 0x1e, 0x7c, 0x4c, 0x32, 0x81, 0xa5, 0xbe, 0xb4, 0x8b, 0x14, 0x60, 0x2c, + 0x7a, 0xd0, 0x05, 0x9b, 0xc5, 0x7d, 0xe0, 0x12, 0xfb, 0x5d, 0x8d, 0x6d, 0xa1, 0x32, 0x70, 0xd8, + 0x1e, 0xa0, 0x68, 0x2b, 0x8e, 0x62, 0x08, 0xb1, 0x39, 0xcc, 0xe2, 0x01, 0x8a, 0x98, 0xa7, 0xdc, + 0x20, 0x58, 0x17, 0x57, 0x09, 0x63, 0xd7, 0xeb, 0x43, 0xce, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, + 0x85, 0xe0, 0x87, 0x98, 0xf8, 0x03, 0x00, 0x00, +} + +func (m *JunosEvpn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEvpn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEvpn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Evpn != nil { + { + size, err := m.Evpn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + return len(dAtA) - i, nil +} + +func (m *JunosEvpnEvpnType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEvpnEvpnType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEvpnEvpnType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.L3Context) > 0 { + for iNdEx := len(m.L3Context) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.L3Context[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xb + i-- + dAtA[i] = 0xa2 + } + } + if m.EvpnSmetForwarding != nil { + { + size, err := m.EvpnSmetForwarding.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + return len(dAtA) - i, nil +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NexthopUsage != nil { + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(*m.NexthopUsage)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.NexthopLimit != nil { + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(*m.NexthopLimit)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func (m *JunosEvpnEvpnTypeL3ContextList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEvpnEvpnTypeL3ContextList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEvpnEvpnTypeL3ContextList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.IpPrefixDatabase) > 0 { + for iNdEx := len(m.IpPrefixDatabase) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IpPrefixDatabase[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xd2 + } + } + if m.MulticastRoutingMode != nil { + i -= len(*m.MulticastRoutingMode) + copy(dAtA[i:], *m.MulticastRoutingMode) + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(len(*m.MulticastRoutingMode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd2 + } + if m.AdvertisementMode != nil { + i -= len(*m.AdvertisementMode) + copy(dAtA[i:], *m.AdvertisementMode) + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(len(*m.AdvertisementMode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xca + } + if m.Encapsulation != nil { + i -= len(*m.Encapsulation) + copy(dAtA[i:], *m.Encapsulation) + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(len(*m.Encapsulation))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.ContextName != nil { + i -= len(*m.ContextName) + copy(dAtA[i:], *m.ContextName) + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(len(*m.ContextName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RouteStatus != nil { + i -= len(*m.RouteStatus) + copy(dAtA[i:], *m.RouteStatus) + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(len(*m.RouteStatus))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.IpPrefix != nil { + i -= len(*m.IpPrefix) + copy(dAtA[i:], *m.IpPrefix) + i = encodeVarintRpdEvpnGlobalRender(dAtA, i, uint64(len(*m.IpPrefix))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdEvpnGlobalRender(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdEvpnGlobalRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosEvpn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Evpn != nil { + l = m.Evpn.Size() + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEvpnEvpnType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EvpnSmetForwarding != nil { + l = m.EvpnSmetForwarding.Size() + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if len(m.L3Context) > 0 { + for _, e := range m.L3Context { + l = e.Size() + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.NexthopLimit != nil { + n += 2 + sovRpdEvpnGlobalRender(uint64(*m.NexthopLimit)) + } + if m.NexthopUsage != nil { + n += 2 + sovRpdEvpnGlobalRender(uint64(*m.NexthopUsage)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEvpnEvpnTypeL3ContextList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ContextName != nil { + l = len(*m.ContextName) + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if m.Encapsulation != nil { + l = len(*m.Encapsulation) + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if m.AdvertisementMode != nil { + l = len(*m.AdvertisementMode) + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if m.MulticastRoutingMode != nil { + l = len(*m.MulticastRoutingMode) + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if len(m.IpPrefixDatabase) > 0 { + for _, e := range m.IpPrefixDatabase { + l = e.Size() + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IpPrefix != nil { + l = len(*m.IpPrefix) + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if m.RouteStatus != nil { + l = len(*m.RouteStatus) + n += 2 + l + sovRpdEvpnGlobalRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdEvpnGlobalRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdEvpnGlobalRender(x uint64) (n int) { + return sovRpdEvpnGlobalRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosEvpn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_evpn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_evpn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Evpn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Evpn == nil { + m.Evpn = &JunosEvpnEvpnType{} + } + if err := m.Evpn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdEvpnGlobalRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEvpnEvpnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: evpn_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: evpn_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvpnSmetForwarding", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EvpnSmetForwarding == nil { + m.EvpnSmetForwarding = &JunosEvpnEvpnTypeEvpnSmetForwardingType{} + } + if err := m.EvpnSmetForwarding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 180: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3Context", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.L3Context = append(m.L3Context, &JunosEvpnEvpnTypeL3ContextList{}) + if err := m.L3Context[len(m.L3Context)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdEvpnGlobalRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEvpnEvpnTypeEvpnSmetForwardingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: evpn_smet_forwarding_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: evpn_smet_forwarding_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopLimit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopLimit = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopUsage", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopUsage = &v + default: + iNdEx = preIndex + skippy, err := skipRpdEvpnGlobalRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEvpnEvpnTypeL3ContextList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3_context_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3_context_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContextName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ContextName = &s + iNdEx = postIndex + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Encapsulation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Encapsulation = &s + iNdEx = postIndex + case 73: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertisementMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdvertisementMode = &s + iNdEx = postIndex + case 74: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MulticastRoutingMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MulticastRoutingMode = &s + iNdEx = postIndex + case 170: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPrefixDatabase", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IpPrefixDatabase = append(m.IpPrefixDatabase, &JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList{}) + if err := m.IpPrefixDatabase[len(m.IpPrefixDatabase)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdEvpnGlobalRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosEvpnEvpnTypeL3ContextListIpPrefixDatabaseList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ip_prefix_database_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ip_prefix_database_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpPrefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IpPrefix = &s + iNdEx = postIndex + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RouteStatus = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdEvpnGlobalRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdEvpnGlobalRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdEvpnGlobalRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdEvpnGlobalRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdEvpnGlobalRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdEvpnGlobalRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdEvpnGlobalRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdEvpnGlobalRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdEvpnGlobalRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdEvpnGlobalRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_evpn_global_render.proto b/schema/rpd_evpn_global_render.proto new file mode 100755 index 0000000..2774697 --- /dev/null +++ b/schema/rpd_evpn_global_render.proto @@ -0,0 +1,31 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_evpn jnpr_junos_evpn_ext = 113; +} + +message junos_evpn { + optional evpn_type evpn = 171; + message evpn_type { + optional evpn_smet_forwarding_type evpn_smet_forwarding = 171; + message evpn_smet_forwarding_type { + optional bool enabled = 71; + optional uint32 nexthop_limit = 72; + optional uint32 nexthop_usage = 73; + } + message l3_context_list { + optional string context_name = 71 [(telemetry_options).is_key = true]; + optional string encapsulation = 72; + optional string advertisement_mode = 73; + optional string multicast_routing_mode = 74; + message ip_prefix_database_list { + optional string ip_prefix = 71 [(telemetry_options).is_key = true]; + optional string route_status = 72; + } + repeated ip_prefix_database_list ip_prefix_database = 170; + } + repeated l3_context_list l3_context = 180; + } +} diff --git a/schema/rpd_ipv6_ra_oc.pb.go b/schema/rpd_ipv6_ra_oc.pb.go new file mode 100644 index 0000000..a297121 --- /dev/null +++ b/schema/rpd_ipv6_ra_oc.pb.go @@ -0,0 +1,782 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_ipv6_ra_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Ipv6RaIpv6Ra struct { + Ipv6RaInterface []*Ipv6RaIpv6RaIpv6RaInterfaceList `protobuf:"bytes,151,rep,name=ipv6_ra_interface,json=ipv6RaInterface" json:"ipv6_ra_interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Ipv6RaIpv6Ra) Reset() { *m = Ipv6RaIpv6Ra{} } +func (m *Ipv6RaIpv6Ra) String() string { return proto.CompactTextString(m) } +func (*Ipv6RaIpv6Ra) ProtoMessage() {} +func (*Ipv6RaIpv6Ra) Descriptor() ([]byte, []int) { + return fileDescriptor_610995566f3f74cb, []int{0} +} +func (m *Ipv6RaIpv6Ra) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Ipv6RaIpv6Ra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Ipv6RaIpv6Ra.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Ipv6RaIpv6Ra) XXX_Merge(src proto.Message) { + xxx_messageInfo_Ipv6RaIpv6Ra.Merge(m, src) +} +func (m *Ipv6RaIpv6Ra) XXX_Size() int { + return m.Size() +} +func (m *Ipv6RaIpv6Ra) XXX_DiscardUnknown() { + xxx_messageInfo_Ipv6RaIpv6Ra.DiscardUnknown(m) +} + +var xxx_messageInfo_Ipv6RaIpv6Ra proto.InternalMessageInfo + +func (m *Ipv6RaIpv6Ra) GetIpv6RaInterface() []*Ipv6RaIpv6RaIpv6RaInterfaceList { + if m != nil { + return m.Ipv6RaInterface + } + return nil +} + +type Ipv6RaIpv6RaIpv6RaInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + InitialAdvSent *uint32 `protobuf:"varint,52,opt,name=initial_adv_sent,json=initialAdvSent" json:"initial_adv_sent,omitempty"` + AdvSent *uint64 `protobuf:"varint,53,opt,name=adv_sent,json=advSent" json:"adv_sent,omitempty"` + AdvReceived *uint64 `protobuf:"varint,54,opt,name=adv_received,json=advReceived" json:"adv_received,omitempty"` + SolicitsReceived *uint64 `protobuf:"varint,55,opt,name=solicits_received,json=solicitsReceived" json:"solicits_received,omitempty"` + LastAdvTime *uint32 `protobuf:"varint,56,opt,name=last_adv_time,json=lastAdvTime" json:"last_adv_time,omitempty"` + LastSolicitTime *uint32 `protobuf:"varint,57,opt,name=last_solicit_time,json=lastSolicitTime" json:"last_solicit_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) Reset() { *m = Ipv6RaIpv6RaIpv6RaInterfaceList{} } +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) String() string { return proto.CompactTextString(m) } +func (*Ipv6RaIpv6RaIpv6RaInterfaceList) ProtoMessage() {} +func (*Ipv6RaIpv6RaIpv6RaInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_610995566f3f74cb, []int{0, 0} +} +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Ipv6RaIpv6RaIpv6RaInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Ipv6RaIpv6RaIpv6RaInterfaceList.Merge(m, src) +} +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_Ipv6RaIpv6RaIpv6RaInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_Ipv6RaIpv6RaIpv6RaInterfaceList proto.InternalMessageInfo + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetInitialAdvSent() uint32 { + if m != nil && m.InitialAdvSent != nil { + return *m.InitialAdvSent + } + return 0 +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetAdvSent() uint64 { + if m != nil && m.AdvSent != nil { + return *m.AdvSent + } + return 0 +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetAdvReceived() uint64 { + if m != nil && m.AdvReceived != nil { + return *m.AdvReceived + } + return 0 +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetSolicitsReceived() uint64 { + if m != nil && m.SolicitsReceived != nil { + return *m.SolicitsReceived + } + return 0 +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetLastAdvTime() uint32 { + if m != nil && m.LastAdvTime != nil { + return *m.LastAdvTime + } + return 0 +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) GetLastSolicitTime() uint32 { + if m != nil && m.LastSolicitTime != nil { + return *m.LastSolicitTime + } + return 0 +} + +var E_JnprIpv6RaIpv6RaExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Ipv6RaIpv6Ra)(nil), + Field: 64, + Name: "jnpr_ipv6_ra_ipv6_ra_ext", + Tag: "bytes,64,opt,name=jnpr_ipv6_ra_ipv6_ra_ext", + Filename: "rpd_ipv6_ra_oc.proto", +} + +func init() { + proto.RegisterType((*Ipv6RaIpv6Ra)(nil), "ipv6_ra_ipv6_ra") + proto.RegisterType((*Ipv6RaIpv6RaIpv6RaInterfaceList)(nil), "ipv6_ra_ipv6_ra.ipv6_ra_interface_list") + proto.RegisterExtension(E_JnprIpv6RaIpv6RaExt) +} + +func init() { proto.RegisterFile("rpd_ipv6_ra_oc.proto", fileDescriptor_610995566f3f74cb) } + +var fileDescriptor_610995566f3f74cb = []byte{ + // 410 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xcf, 0x6e, 0xd4, 0x30, + 0x10, 0xc6, 0x95, 0x52, 0x09, 0xf0, 0x52, 0xba, 0x9b, 0x22, 0x08, 0x3d, 0xac, 0x42, 0x2f, 0x44, + 0xa0, 0x4d, 0xa4, 0x02, 0xe5, 0xcf, 0x89, 0x22, 0x71, 0x28, 0x07, 0x0e, 0xde, 0x9e, 0xb8, 0xb8, + 0x6e, 0x32, 0x64, 0x27, 0x4d, 0x6c, 0xcb, 0x9e, 0x86, 0xe5, 0x31, 0x38, 0xf1, 0x4a, 0x1c, 0x79, + 0x04, 0xb4, 0xaf, 0xc1, 0x05, 0xc5, 0xc9, 0x2e, 0xd2, 0xc2, 0x25, 0xb1, 0x7e, 0xdf, 0xcf, 0x9f, + 0x46, 0x63, 0x76, 0xcf, 0x9a, 0x42, 0xa0, 0x69, 0x4f, 0x84, 0x95, 0x42, 0xe7, 0xa9, 0xb1, 0x9a, + 0xf4, 0xe1, 0x01, 0x41, 0x0d, 0x0d, 0x90, 0xfd, 0x2a, 0x48, 0x9b, 0x1e, 0x1e, 0xfd, 0xde, 0x61, + 0xfb, 0x6b, 0x73, 0xf8, 0x87, 0xe7, 0x6c, 0xb2, 0x41, 0x8a, 0xc0, 0x7e, 0x96, 0x39, 0x44, 0xdf, + 0x83, 0xf8, 0x46, 0x32, 0x3a, 0x7e, 0x9c, 0x6e, 0xd9, 0xe9, 0x3f, 0xaa, 0xa8, 0xd1, 0x11, 0xf7, + 0xad, 0x5c, 0x9e, 0xad, 0xe9, 0xe1, 0xb7, 0x1d, 0x76, 0xff, 0xff, 0x6e, 0x18, 0xb2, 0x5d, 0x25, + 0x1b, 0x88, 0x9e, 0xc5, 0x41, 0x72, 0x9b, 0xfb, 0x73, 0x98, 0xb0, 0x31, 0x2a, 0x24, 0x94, 0xb5, + 0x90, 0x45, 0x2b, 0x1c, 0x28, 0x8a, 0x9e, 0xc7, 0x41, 0xb2, 0xc7, 0xef, 0x0e, 0xfc, 0xb4, 0x68, + 0xe7, 0xa0, 0x28, 0x7c, 0xc8, 0x6e, 0x6d, 0x8c, 0x17, 0x71, 0x90, 0xec, 0xf2, 0x9b, 0x72, 0x88, + 0x1e, 0xb1, 0x3b, 0x5d, 0x64, 0x21, 0x07, 0x6c, 0xa1, 0x88, 0x4e, 0x7c, 0x3c, 0x92, 0x45, 0xcb, + 0x07, 0x14, 0x3e, 0x65, 0x13, 0xa7, 0x6b, 0xcc, 0x91, 0xdc, 0x5f, 0xef, 0xa5, 0xf7, 0xc6, 0xeb, + 0x60, 0x23, 0x1f, 0xb1, 0xbd, 0x5a, 0x3a, 0xf2, 0x13, 0x11, 0x36, 0x10, 0xbd, 0xf2, 0x13, 0x8d, + 0x3a, 0x78, 0x5a, 0xb4, 0xe7, 0xd8, 0x40, 0xf8, 0x84, 0x4d, 0xbc, 0x33, 0x5c, 0xee, 0xbd, 0xd7, + 0xde, 0xdb, 0xef, 0x82, 0x79, 0xcf, 0x3b, 0xf7, 0xcd, 0x05, 0x8b, 0x2a, 0x65, 0xac, 0xd8, 0xda, + 0xa9, 0x80, 0x25, 0x85, 0x0f, 0xd2, 0x0f, 0xd7, 0x0a, 0x0d, 0xd8, 0x8f, 0x40, 0x5f, 0xb4, 0xbd, + 0x72, 0x73, 0x50, 0x4e, 0x5b, 0x17, 0xbd, 0x8d, 0x83, 0x64, 0x74, 0x3c, 0xde, 0x7e, 0x08, 0x7e, + 0xd0, 0x55, 0x9d, 0xf5, 0x5b, 0xf7, 0xdf, 0xf7, 0x4b, 0x7a, 0x77, 0xf1, 0x63, 0x35, 0x0d, 0x7e, + 0xae, 0xa6, 0xc1, 0xaf, 0xd5, 0x34, 0xf8, 0xc4, 0x4b, 0xa4, 0xb4, 0xea, 0x6b, 0x53, 0x05, 0x94, + 0x61, 0x0e, 0x97, 0x60, 0xcb, 0x6c, 0x01, 0xb2, 0xa6, 0xc5, 0xa5, 0xa6, 0x19, 0xaa, 0x12, 0x1c, + 0xcd, 0x2a, 0xc2, 0x99, 0x92, 0x84, 0x2d, 0x64, 0xe6, 0xaa, 0xcc, 0x2a, 0xc2, 0x4c, 0x16, 0xd2, + 0x10, 0x58, 0x97, 0x89, 0xea, 0x5a, 0x69, 0x97, 0xb9, 0x7c, 0x01, 0x8d, 0xfc, 0x13, 0x00, 0x00, + 0xff, 0xff, 0x8e, 0x0d, 0xbf, 0xab, 0x6d, 0x02, 0x00, 0x00, +} + +func (m *Ipv6RaIpv6Ra) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Ipv6RaIpv6Ra) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Ipv6RaIpv6Ra) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ipv6RaInterface) > 0 { + for iNdEx := len(m.Ipv6RaInterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ipv6RaInterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastSolicitTime != nil { + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(*m.LastSolicitTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.LastAdvTime != nil { + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(*m.LastAdvTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.SolicitsReceived != nil { + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(*m.SolicitsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.AdvReceived != nil { + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(*m.AdvReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AdvSent != nil { + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(*m.AdvSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InitialAdvSent != nil { + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(*m.InitialAdvSent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdIpv6RaOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdIpv6RaOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdIpv6RaOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Ipv6RaIpv6Ra) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ipv6RaInterface) > 0 { + for _, e := range m.Ipv6RaInterface { + l = e.Size() + n += 2 + l + sovRpdIpv6RaOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdIpv6RaOc(uint64(l)) + } + if m.InitialAdvSent != nil { + n += 2 + sovRpdIpv6RaOc(uint64(*m.InitialAdvSent)) + } + if m.AdvSent != nil { + n += 2 + sovRpdIpv6RaOc(uint64(*m.AdvSent)) + } + if m.AdvReceived != nil { + n += 2 + sovRpdIpv6RaOc(uint64(*m.AdvReceived)) + } + if m.SolicitsReceived != nil { + n += 2 + sovRpdIpv6RaOc(uint64(*m.SolicitsReceived)) + } + if m.LastAdvTime != nil { + n += 2 + sovRpdIpv6RaOc(uint64(*m.LastAdvTime)) + } + if m.LastSolicitTime != nil { + n += 2 + sovRpdIpv6RaOc(uint64(*m.LastSolicitTime)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdIpv6RaOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdIpv6RaOc(x uint64) (n int) { + return sovRpdIpv6RaOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Ipv6RaIpv6Ra) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_ra_ipv6_ra: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_ra_ipv6_ra: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6RaInterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv6RaInterface = append(m.Ipv6RaInterface, &Ipv6RaIpv6RaIpv6RaInterfaceList{}) + if err := m.Ipv6RaInterface[len(m.Ipv6RaInterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIpv6RaOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Ipv6RaIpv6RaIpv6RaInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_ra_interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_ra_interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitialAdvSent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitialAdvSent = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvSent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvSent = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvReceived = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SolicitsReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SolicitsReceived = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastAdvTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastAdvTime = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastSolicitTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastSolicitTime = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIpv6RaOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIpv6RaOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdIpv6RaOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdIpv6RaOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdIpv6RaOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdIpv6RaOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdIpv6RaOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdIpv6RaOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdIpv6RaOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdIpv6RaOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_ipv6_ra_oc.proto b/schema/rpd_ipv6_ra_oc.proto new file mode 100755 index 0000000..8919646 --- /dev/null +++ b/schema/rpd_ipv6_ra_oc.proto @@ -0,0 +1,20 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional ipv6_ra_ipv6_ra jnpr_ipv6_ra_ipv6_ra_ext = 64; +} + +message ipv6_ra_ipv6_ra { + message ipv6_ra_interface_list { + optional string name = 51; + optional uint32 initial_adv_sent = 52; + optional uint64 adv_sent = 53; + optional uint64 adv_received = 54; + optional uint64 solicits_received = 55; + optional uint32 last_adv_time = 56; + optional uint32 last_solicit_time = 57; + } + repeated ipv6_ra_interface_list ipv6_ra_interface = 151; +} diff --git a/schema/rpd_isis_oc.pb.go b/schema/rpd_isis_oc.pb.go new file mode 100644 index 0000000..9bf221b --- /dev/null +++ b/schema/rpd_isis_oc.pb.go @@ -0,0 +1,40701 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_isis_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesIsis struct { + NetworkInstance []*NetworkInstancesIsisNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsis) Reset() { *m = NetworkInstancesIsis{} } +func (m *NetworkInstancesIsis) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesIsis) ProtoMessage() {} +func (*NetworkInstancesIsis) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0} +} +func (m *NetworkInstancesIsis) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsis.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsis) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsis.Merge(m, src) +} +func (m *NetworkInstancesIsis) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsis) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsis.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsis proto.InternalMessageInfo + +func (m *NetworkInstancesIsis) GetNetworkInstance() []*NetworkInstancesIsisNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Protocols *NetworkInstancesIsisNetworkInstanceListProtocolsType `protobuf:"bytes,151,opt,name=protocols" json:"protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceList{} +} +func (m *NetworkInstancesIsisNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesIsisNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesIsisNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceList) GetProtocols() *NetworkInstancesIsisNetworkInstanceListProtocolsType { + if m != nil { + return m.Protocols + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsType struct { + Protocol *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType `protobuf:"bytes,151,opt,name=protocol" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsType) ProtoMessage() {} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) GetProtocol() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType { + if m != nil { + return m.Protocol + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType struct { + Isis *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType `protobuf:"bytes,151,opt,name=isis" json:"isis,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) ProtoMessage() {} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) GetIsis() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType { + if m != nil { + return m.Isis + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType struct { + Levels *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType `protobuf:"bytes,151,opt,name=levels" json:"levels,omitempty"` + Interfaces *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType `protobuf:"bytes,152,opt,name=interfaces" json:"interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) ProtoMessage() {} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) GetLevels() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType { + if m != nil { + return m.Levels + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) GetInterfaces() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType struct { + Level []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList `protobuf:"bytes,151,rep,name=level" json:"level,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) GetLevel() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList { + if m != nil { + return m.Level + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList struct { + LevelNumber *uint32 `protobuf:"varint,51,opt,name=level_number,json=levelNumber" json:"level_number,omitempty"` + LinkStateDatabase *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType `protobuf:"bytes,151,opt,name=link_state_database,json=linkStateDatabase" json:"link_state_database,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType `protobuf:"bytes,152,opt,name=state" json:"state,omitempty"` + SystemLevelCounters *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType `protobuf:"bytes,153,opt,name=system_level_counters,json=systemLevelCounters" json:"system_level_counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) GetLevelNumber() uint32 { + if m != nil && m.LevelNumber != nil { + return *m.LevelNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) GetLinkStateDatabase() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType { + if m != nil { + return m.LinkStateDatabase + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) GetSystemLevelCounters() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType { + if m != nil { + return m.SystemLevelCounters + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType struct { + Lsp []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList `protobuf:"bytes,151,rep,name=lsp" json:"lsp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) GetLsp() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList { + if m != nil { + return m.Lsp + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList struct { + LspId *string `protobuf:"bytes,51,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Tlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType `protobuf:"bytes,152,opt,name=tlvs" json:"tlvs,omitempty"` + UndefinedTlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType `protobuf:"bytes,153,opt,name=undefined_tlvs,json=undefinedTlvs" json:"undefined_tlvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) GetLspId() string { + if m != nil && m.LspId != nil { + return *m.LspId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) GetTlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType { + if m != nil { + return m.Tlvs + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) GetUndefinedTlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType { + if m != nil { + return m.UndefinedTlvs + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType struct { + LspId *string `protobuf:"bytes,51,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + MaximumAreaAddresses *uint32 `protobuf:"varint,52,opt,name=maximum_area_addresses,json=maximumAreaAddresses" json:"maximum_area_addresses,omitempty"` + Version *uint32 `protobuf:"varint,53,opt,name=version" json:"version,omitempty"` + Version2 *uint32 `protobuf:"varint,54,opt,name=version2" json:"version2,omitempty"` + IdLength *uint32 `protobuf:"varint,55,opt,name=id_length,json=idLength" json:"id_length,omitempty"` + PduType *string `protobuf:"bytes,56,opt,name=pdu_type,json=pduType" json:"pdu_type,omitempty"` + RemainingLifetime *uint32 `protobuf:"varint,57,opt,name=remaining_lifetime,json=remainingLifetime" json:"remaining_lifetime,omitempty"` + SequenceNumber *uint32 `protobuf:"varint,58,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"` + Checksum *uint32 `protobuf:"varint,59,opt,name=checksum" json:"checksum,omitempty"` + PduLength *uint32 `protobuf:"varint,60,opt,name=pdu_length,json=pduLength" json:"pdu_length,omitempty"` + Flags []string `protobuf:"bytes,62,rep,name=flags" json:"flags,omitempty"` + IsType *uint32 `protobuf:"varint,63,opt,name=is_type,json=isType" json:"is_type,omitempty"` + LspInstallTime *uint64 `protobuf:"varint,61,opt,name=lsp_install_time,json=lspInstallTime" json:"lsp_install_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetLspId() string { + if m != nil && m.LspId != nil { + return *m.LspId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetMaximumAreaAddresses() uint32 { + if m != nil && m.MaximumAreaAddresses != nil { + return *m.MaximumAreaAddresses + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetVersion() uint32 { + if m != nil && m.Version != nil { + return *m.Version + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetVersion2() uint32 { + if m != nil && m.Version2 != nil { + return *m.Version2 + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetIdLength() uint32 { + if m != nil && m.IdLength != nil { + return *m.IdLength + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetPduType() string { + if m != nil && m.PduType != nil { + return *m.PduType + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetRemainingLifetime() uint32 { + if m != nil && m.RemainingLifetime != nil { + return *m.RemainingLifetime + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetSequenceNumber() uint32 { + if m != nil && m.SequenceNumber != nil { + return *m.SequenceNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetChecksum() uint32 { + if m != nil && m.Checksum != nil { + return *m.Checksum + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetPduLength() uint32 { + if m != nil && m.PduLength != nil { + return *m.PduLength + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetIsType() uint32 { + if m != nil && m.IsType != nil { + return *m.IsType + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) GetLspInstallTime() uint64 { + if m != nil && m.LspInstallTime != nil { + return *m.LspInstallTime + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType struct { + Tlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList `protobuf:"bytes,151,rep,name=tlv" json:"tlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) GetTlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList { + if m != nil { + return m.Tlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + AreaAddress *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType `protobuf:"bytes,152,opt,name=area_address,json=areaAddress" json:"area_address,omitempty"` + LspBufferSize *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType `protobuf:"bytes,158,opt,name=lsp_buffer_size,json=lspBufferSize" json:"lsp_buffer_size,omitempty"` + Nlpid *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType `protobuf:"bytes,153,opt,name=nlpid" json:"nlpid,omitempty"` + Hostname *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType `protobuf:"bytes,154,opt,name=hostname" json:"hostname,omitempty"` + Ipv4InterfaceAddresses *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType `protobuf:"bytes,156,opt,name=ipv4_interface_addresses,json=ipv4InterfaceAddresses" json:"ipv4_interface_addresses,omitempty"` + Ipv6InterfaceAddresses *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType `protobuf:"bytes,157,opt,name=ipv6_interface_addresses,json=ipv6InterfaceAddresses" json:"ipv6_interface_addresses,omitempty"` + Ipv4TeRouterId *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType `protobuf:"bytes,155,opt,name=ipv4_te_router_id,json=ipv4TeRouterId" json:"ipv4_te_router_id,omitempty"` + Ipv4Srlgs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType `protobuf:"bytes,163,opt,name=ipv4_srlgs,json=ipv4Srlgs" json:"ipv4_srlgs,omitempty"` + RouterCapabilities *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType `protobuf:"bytes,162,opt,name=router_capabilities,json=routerCapabilities" json:"router_capabilities,omitempty"` + ExtendedIsReachability *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType `protobuf:"bytes,161,opt,name=extended_is_reachability,json=extendedIsReachability" json:"extended_is_reachability,omitempty"` + ExtendedIpv4Reachability *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType `protobuf:"bytes,159,opt,name=extended_ipv4_reachability,json=extendedIpv4Reachability" json:"extended_ipv4_reachability,omitempty"` + Ipv6Reachability *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType `protobuf:"bytes,160,opt,name=ipv6_reachability,json=ipv6Reachability" json:"ipv6_reachability,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetAreaAddress() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType { + if m != nil { + return m.AreaAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetLspBufferSize() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType { + if m != nil { + return m.LspBufferSize + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetNlpid() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType { + if m != nil { + return m.Nlpid + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetHostname() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType { + if m != nil { + return m.Hostname + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetIpv4InterfaceAddresses() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType { + if m != nil { + return m.Ipv4InterfaceAddresses + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetIpv6InterfaceAddresses() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType { + if m != nil { + return m.Ipv6InterfaceAddresses + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetIpv4TeRouterId() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType { + if m != nil { + return m.Ipv4TeRouterId + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetIpv4Srlgs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType { + if m != nil { + return m.Ipv4Srlgs + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetRouterCapabilities() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType { + if m != nil { + return m.RouterCapabilities + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetExtendedIsReachability() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType { + if m != nil { + return m.ExtendedIsReachability + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetExtendedIpv4Reachability() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType { + if m != nil { + return m.ExtendedIpv4Reachability + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) GetIpv6Reachability() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType { + if m != nil { + return m.Ipv6Reachability + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType struct { + Size_ *uint32 `protobuf:"varint,51,opt,name=size" json:"size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) GetSize_() uint32 { + if m != nil && m.Size_ != nil { + return *m.Size_ + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 3} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType struct { + Nlpid []string `protobuf:"bytes,51,rep,name=nlpid" json:"nlpid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 3, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) GetNlpid() []string { + if m != nil { + return m.Nlpid + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 4} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType struct { + Hname *string `protobuf:"bytes,51,opt,name=hname" json:"hname,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 4, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) GetHname() string { + if m != nil && m.Hname != nil { + return *m.Hname + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 5} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 5, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 6} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 6, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 7} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType struct { + TeRouterId *string `protobuf:"bytes,51,opt,name=te_router_id,json=teRouterId" json:"te_router_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 7, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) GetTeRouterId() string { + if m != nil && m.TeRouterId != nil { + return *m.TeRouterId + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType struct { + Ipv4Srlg []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList `protobuf:"bytes,151,rep,name=ipv4_srlg,json=ipv4Srlg" json:"ipv4_srlg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 8} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) GetIpv4Srlg() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList { + if m != nil { + return m.Ipv4Srlg + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList struct { + InstanceNumber *uint32 `protobuf:"varint,51,opt,name=instance_number,json=instanceNumber" json:"instance_number,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 8, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) GetInstanceNumber() uint32 { + if m != nil && m.InstanceNumber != nil { + return *m.InstanceNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType struct { + InstanceNumber *uint32 `protobuf:"varint,51,opt,name=instance_number,json=instanceNumber" json:"instance_number,omitempty"` + SystemId *string `protobuf:"bytes,52,opt,name=system_id,json=systemId" json:"system_id,omitempty"` + PsnNumber *uint32 `protobuf:"varint,53,opt,name=psn_number,json=psnNumber" json:"psn_number,omitempty"` + Flags []string `protobuf:"bytes,57,rep,name=flags" json:"flags,omitempty"` + Ipv4InterfaceAddress *string `protobuf:"bytes,54,opt,name=ipv4_interface_address,json=ipv4InterfaceAddress" json:"ipv4_interface_address,omitempty"` + Ipv4NeighborAddress *string `protobuf:"bytes,55,opt,name=ipv4_neighbor_address,json=ipv4NeighborAddress" json:"ipv4_neighbor_address,omitempty"` + SrlgValue []uint32 `protobuf:"varint,56,rep,name=srlg_value,json=srlgValue" json:"srlg_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 8, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetInstanceNumber() uint32 { + if m != nil && m.InstanceNumber != nil { + return *m.InstanceNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetPsnNumber() uint32 { + if m != nil && m.PsnNumber != nil { + return *m.PsnNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetIpv4InterfaceAddress() string { + if m != nil && m.Ipv4InterfaceAddress != nil { + return *m.Ipv4InterfaceAddress + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetIpv4NeighborAddress() string { + if m != nil && m.Ipv4NeighborAddress != nil { + return *m.Ipv4NeighborAddress + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) GetSrlgValue() []uint32 { + if m != nil { + return m.SrlgValue + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType struct { + Capability []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList `protobuf:"bytes,151,rep,name=capability" json:"capability,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) GetCapability() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList { + if m != nil { + return m.Capability + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList struct { + InstanceNumber *uint32 `protobuf:"varint,51,opt,name=instance_number,json=instanceNumber" json:"instance_number,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Subtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType `protobuf:"bytes,152,opt,name=subtlvs" json:"subtlvs,omitempty"` + UndefinedSubtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType `protobuf:"bytes,153,opt,name=undefined_subtlvs,json=undefinedSubtlvs" json:"undefined_subtlvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) GetInstanceNumber() uint32 { + if m != nil && m.InstanceNumber != nil { + return *m.InstanceNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) GetSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType { + if m != nil { + return m.Subtlvs + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) GetUndefinedSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType { + if m != nil { + return m.UndefinedSubtlvs + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType struct { + InstanceNumber *uint32 `protobuf:"varint,51,opt,name=instance_number,json=instanceNumber" json:"instance_number,omitempty"` + RouterId *string `protobuf:"bytes,52,opt,name=router_id,json=routerId" json:"router_id,omitempty"` + Flags []string `protobuf:"bytes,53,rep,name=flags" json:"flags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) GetInstanceNumber() uint32 { + if m != nil && m.InstanceNumber != nil { + return *m.InstanceNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) GetRouterId() string { + if m != nil && m.RouterId != nil { + return *m.RouterId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType struct { + Subtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList `protobuf:"bytes,151,rep,name=subtlv" json:"subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) GetSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList { + if m != nil { + return m.Subtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + SegmentRoutingAlgorithms *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType `protobuf:"bytes,152,opt,name=segment_routing_algorithms,json=segmentRoutingAlgorithms" json:"segment_routing_algorithms,omitempty"` + SegmentRoutingCapability *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType `protobuf:"bytes,153,opt,name=segment_routing_capability,json=segmentRoutingCapability" json:"segment_routing_capability,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) GetSegmentRoutingAlgorithms() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType { + if m != nil { + return m.SegmentRoutingAlgorithms + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) GetSegmentRoutingCapability() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType { + if m != nil { + return m.SegmentRoutingCapability + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType struct { + Algorithm []string `protobuf:"bytes,51,rep,name=algorithm" json:"algorithm,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) GetAlgorithm() []string { + if m != nil { + return m.Algorithm + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + SrgbDescriptors *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType `protobuf:"bytes,152,opt,name=srgb_descriptors,json=srgbDescriptors" json:"srgb_descriptors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) GetSrgbDescriptors() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType { + if m != nil { + return m.SrgbDescriptors + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType struct { + Flags []string `protobuf:"bytes,51,rep,name=flags" json:"flags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType struct { + SrgbDescriptor []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList `protobuf:"bytes,151,rep,name=srgb_descriptor,json=srgbDescriptor" json:"srgb_descriptor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 2, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) GetSrgbDescriptor() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList { + if m != nil { + return m.SrgbDescriptor + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList struct { + Range *uint32 `protobuf:"varint,51,opt,name=range" json:"range,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 2, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) GetRange() uint32 { + if m != nil && m.Range != nil { + return *m.Range + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType struct { + Range *uint32 `protobuf:"varint,51,opt,name=range" json:"range,omitempty"` + Label *string `protobuf:"bytes,52,opt,name=label" json:"label,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0, 2, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) GetRange() uint32 { + if m != nil && m.Range != nil { + return *m.Range + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) GetLabel() string { + if m != nil && m.Label != nil { + return *m.Label + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType struct { + UndefinedSubtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList `protobuf:"bytes,151,rep,name=undefined_subtlv,json=undefinedSubtlv" json:"undefined_subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) GetUndefinedSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList { + if m != nil { + return m.UndefinedSubtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + Length *uint32 `protobuf:"varint,52,opt,name=length" json:"length,omitempty"` + Value *string `protobuf:"bytes,53,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 9, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetLength() uint32 { + if m != nil && m.Length != nil { + return *m.Length + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType struct { + Neighbors *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType `protobuf:"bytes,151,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) GetNeighbors() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType struct { + Neighbor []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) GetNeighbor() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList struct { + SystemId *string `protobuf:"bytes,51,opt,name=system_id,json=systemId" json:"system_id,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Subtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType `protobuf:"bytes,152,opt,name=subtlvs" json:"subtlvs,omitempty"` + UndefinedSubtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType `protobuf:"bytes,153,opt,name=undefined_subtlvs,json=undefinedSubtlvs" json:"undefined_subtlvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) GetSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType { + if m != nil { + return m.Subtlvs + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) GetUndefinedSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType { + if m != nil { + return m.UndefinedSubtlvs + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType struct { + SystemId *string `protobuf:"bytes,51,opt,name=system_id,json=systemId" json:"system_id,omitempty"` + Metric *uint32 `protobuf:"varint,52,opt,name=metric" json:"metric,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) GetMetric() uint32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType struct { + Subtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList `protobuf:"bytes,151,rep,name=subtlv" json:"subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) GetSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList { + if m != nil { + return m.Subtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + AdminGroup *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType `protobuf:"bytes,160,opt,name=admin_group,json=adminGroup" json:"admin_group,omitempty"` + LinkId *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType `protobuf:"bytes,154,opt,name=link_id,json=linkId" json:"link_id,omitempty"` + Ipv4InterfaceAddress *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType `protobuf:"bytes,152,opt,name=ipv4_interface_address,json=ipv4InterfaceAddress" json:"ipv4_interface_address,omitempty"` + Ipv4NeighborAddress *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType `protobuf:"bytes,153,opt,name=ipv4_neighbor_address,json=ipv4NeighborAddress" json:"ipv4_neighbor_address,omitempty"` + MaxLinkBandwidth *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType `protobuf:"bytes,155,opt,name=max_link_bandwidth,json=maxLinkBandwidth" json:"max_link_bandwidth,omitempty"` + MaxReservableLinkBandwidth *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType `protobuf:"bytes,156,opt,name=max_reservable_link_bandwidth,json=maxReservableLinkBandwidth" json:"max_reservable_link_bandwidth,omitempty"` + UnreservedBandwidth *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType `protobuf:"bytes,157,opt,name=unreserved_bandwidth,json=unreservedBandwidth" json:"unreserved_bandwidth,omitempty"` + Ipv6InterfaceAddress *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType `protobuf:"bytes,163,opt,name=ipv6_interface_address,json=ipv6InterfaceAddress" json:"ipv6_interface_address,omitempty"` + Ipv6NeighborAddress *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType `protobuf:"bytes,164,opt,name=ipv6_neighbor_address,json=ipv6NeighborAddress" json:"ipv6_neighbor_address,omitempty"` + TeDefaultMetric *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType `protobuf:"bytes,158,opt,name=te_default_metric,json=teDefaultMetric" json:"te_default_metric,omitempty"` + BandwidthConstraints *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType `protobuf:"bytes,159,opt,name=bandwidth_constraints,json=bandwidthConstraints" json:"bandwidth_constraints,omitempty"` + AdjacencySids *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType `protobuf:"bytes,161,opt,name=adjacency_sids,json=adjacencySids" json:"adjacency_sids,omitempty"` + LanAdjacencySids *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType `protobuf:"bytes,162,opt,name=lan_adjacency_sids,json=lanAdjacencySids" json:"lan_adjacency_sids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetAdminGroup() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType { + if m != nil { + return m.AdminGroup + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetLinkId() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType { + if m != nil { + return m.LinkId + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetIpv4InterfaceAddress() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType { + if m != nil { + return m.Ipv4InterfaceAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetIpv4NeighborAddress() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType { + if m != nil { + return m.Ipv4NeighborAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetMaxLinkBandwidth() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType { + if m != nil { + return m.MaxLinkBandwidth + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetMaxReservableLinkBandwidth() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType { + if m != nil { + return m.MaxReservableLinkBandwidth + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetUnreservedBandwidth() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType { + if m != nil { + return m.UnreservedBandwidth + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetIpv6InterfaceAddress() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType { + if m != nil { + return m.Ipv6InterfaceAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetIpv6NeighborAddress() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType { + if m != nil { + return m.Ipv6NeighborAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetTeDefaultMetric() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType { + if m != nil { + return m.TeDefaultMetric + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetBandwidthConstraints() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType { + if m != nil { + return m.BandwidthConstraints + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetAdjacencySids() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType { + if m != nil { + return m.AdjacencySids + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) GetLanAdjacencySids() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType { + if m != nil { + return m.LanAdjacencySids + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType struct { + AdminGroup []uint32 `protobuf:"varint,51,rep,name=admin_group,json=adminGroup" json:"admin_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) GetAdminGroup() []uint32 { + if m != nil { + return m.AdminGroup + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType struct { + Local *uint32 `protobuf:"varint,51,opt,name=local" json:"local,omitempty"` + Remote *uint32 `protobuf:"varint,52,opt,name=remote" json:"remote,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) GetLocal() uint32 { + if m != nil && m.Local != nil { + return *m.Local + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) GetRemote() uint32 { + if m != nil && m.Remote != nil { + return *m.Remote + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 3} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 3, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 4} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 4, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 5} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType struct { + Bandwidth *string `protobuf:"bytes,51,opt,name=bandwidth" json:"bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 5, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) GetBandwidth() string { + if m != nil && m.Bandwidth != nil { + return *m.Bandwidth + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 6} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType struct { + Bandwidth *string `protobuf:"bytes,51,opt,name=bandwidth" json:"bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 6, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) GetBandwidth() string { + if m != nil && m.Bandwidth != nil { + return *m.Bandwidth + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType struct { + SetupPriority []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList `protobuf:"bytes,151,rep,name=setup_priority,json=setupPriority" json:"setup_priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 7} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) GetSetupPriority() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList { + if m != nil { + return m.SetupPriority + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList struct { + Priority *uint32 `protobuf:"varint,51,opt,name=priority" json:"priority,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 7, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType struct { + Priority *uint32 `protobuf:"varint,51,opt,name=priority" json:"priority,omitempty"` + Bandwidth *string `protobuf:"bytes,52,opt,name=bandwidth" json:"bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 7, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) GetBandwidth() string { + if m != nil && m.Bandwidth != nil { + return *m.Bandwidth + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 8} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 8, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 9} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType struct { + Address []string `protobuf:"bytes,51,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 9, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 10} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType struct { + Metric *uint32 `protobuf:"varint,51,opt,name=metric" json:"metric,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 10, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) GetMetric() uint32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType struct { + BandwidthConstraint []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList `protobuf:"bytes,151,rep,name=bandwidth_constraint,json=bandwidthConstraint" json:"bandwidth_constraint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 11} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) GetBandwidthConstraint() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList { + if m != nil { + return m.BandwidthConstraint + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList struct { + ModelId *uint32 `protobuf:"varint,51,opt,name=model_id,json=modelId" json:"model_id,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Constraints *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType `protobuf:"bytes,152,opt,name=constraints" json:"constraints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 11, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) GetModelId() uint32 { + if m != nil && m.ModelId != nil { + return *m.ModelId + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) GetConstraints() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType { + if m != nil { + return m.Constraints + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType struct { + ModelId *uint32 `protobuf:"varint,51,opt,name=model_id,json=modelId" json:"model_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 11, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) GetModelId() uint32 { + if m != nil && m.ModelId != nil { + return *m.ModelId + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType struct { + Constraint []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList `protobuf:"bytes,151,rep,name=constraint" json:"constraint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 11, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) GetConstraint() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList { + if m != nil { + return m.Constraint + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList struct { + ConstraintId *uint32 `protobuf:"varint,51,opt,name=constraint_id,json=constraintId" json:"constraint_id,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 11, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) GetConstraintId() uint32 { + if m != nil && m.ConstraintId != nil { + return *m.ConstraintId + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType struct { + ConstraintId *uint32 `protobuf:"varint,51,opt,name=constraint_id,json=constraintId" json:"constraint_id,omitempty"` + Bandwidth *string `protobuf:"bytes,52,opt,name=bandwidth" json:"bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 11, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) GetConstraintId() uint32 { + if m != nil && m.ConstraintId != nil { + return *m.ConstraintId + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) GetBandwidth() string { + if m != nil && m.Bandwidth != nil { + return *m.Bandwidth + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType struct { + AdjSid *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType `protobuf:"bytes,151,opt,name=adj_sid,json=adjSid" json:"adj_sid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 12} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) GetAdjSid() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType { + if m != nil { + return m.AdjSid + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 12, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType struct { + Value *uint32 `protobuf:"varint,51,opt,name=value" json:"value,omitempty"` + Flags []string `protobuf:"bytes,52,rep,name=flags" json:"flags,omitempty"` + Weight *uint32 `protobuf:"varint,53,opt,name=weight" json:"weight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 12, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) GetWeight() uint32 { + if m != nil && m.Weight != nil { + return *m.Weight + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType struct { + LanAdjSid *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType `protobuf:"bytes,151,opt,name=lan_adj_sid,json=lanAdjSid" json:"lan_adj_sid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 13} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) GetLanAdjSid() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType { + if m != nil { + return m.LanAdjSid + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 13, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType struct { + Value *uint32 `protobuf:"varint,51,opt,name=value" json:"value,omitempty"` + Flags []string `protobuf:"bytes,52,rep,name=flags" json:"flags,omitempty"` + Weight *uint32 `protobuf:"varint,53,opt,name=weight" json:"weight,omitempty"` + NeighborId *string `protobuf:"bytes,54,opt,name=neighbor_id,json=neighborId" json:"neighbor_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 1, 0, 13, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) GetWeight() uint32 { + if m != nil && m.Weight != nil { + return *m.Weight + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) GetNeighborId() string { + if m != nil && m.NeighborId != nil { + return *m.NeighborId + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType struct { + UndefinedSubtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList `protobuf:"bytes,151,rep,name=undefined_subtlv,json=undefinedSubtlv" json:"undefined_subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) GetUndefinedSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList { + if m != nil { + return m.UndefinedSubtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + Length *uint32 `protobuf:"varint,52,opt,name=length" json:"length,omitempty"` + Value *string `protobuf:"bytes,53,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetLength() uint32 { + if m != nil && m.Length != nil { + return *m.Length + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType struct { + Prefixes *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType `protobuf:"bytes,151,opt,name=prefixes" json:"prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) GetPrefixes() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType { + if m != nil { + return m.Prefixes + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType struct { + Prefix []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList `protobuf:"bytes,151,rep,name=prefix" json:"prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) GetPrefix() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList { + if m != nil { + return m.Prefix + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Subtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType `protobuf:"bytes,152,opt,name=subtlvs" json:"subtlvs,omitempty"` + UndefinedSubtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType `protobuf:"bytes,153,opt,name=undefined_subtlvs,json=undefinedSubtlvs" json:"undefined_subtlvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) GetSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType { + if m != nil { + return m.Subtlvs + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) GetUndefinedSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType { + if m != nil { + return m.UndefinedSubtlvs + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType struct { + UpDown *bool `protobuf:"varint,51,opt,name=up_down,json=upDown" json:"up_down,omitempty"` + SBit *bool `protobuf:"varint,52,opt,name=s_bit,json=sBit" json:"s_bit,omitempty"` + Prefix *string `protobuf:"bytes,54,opt,name=prefix" json:"prefix,omitempty"` + Metric *uint32 `protobuf:"varint,53,opt,name=metric" json:"metric,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) GetUpDown() bool { + if m != nil && m.UpDown != nil { + return *m.UpDown + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) GetSBit() bool { + if m != nil && m.SBit != nil { + return *m.SBit + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) GetMetric() uint32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType struct { + Subtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList `protobuf:"bytes,151,rep,name=subtlv" json:"subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) GetSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList { + if m != nil { + return m.Subtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Tag *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType `protobuf:"bytes,152,opt,name=tag" json:"tag,omitempty"` + PrefixSids *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType `protobuf:"bytes,153,opt,name=prefix_sids,json=prefixSids" json:"prefix_sids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetTag() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType { + if m != nil { + return m.Tag + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetPrefixSids() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType { + if m != nil { + return m.PrefixSids + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType struct { + Tag32 []uint32 `protobuf:"varint,51,rep,name=tag32" json:"tag32,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) GetTag32() []uint32 { + if m != nil { + return m.Tag32 + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType struct { + PrefixSid []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList `protobuf:"bytes,151,rep,name=prefix_sid,json=prefixSid" json:"prefix_sid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) GetPrefixSid() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList { + if m != nil { + return m.PrefixSid + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList struct { + Value *uint32 `protobuf:"varint,51,opt,name=value" json:"value,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType struct { + Value *uint32 `protobuf:"varint,51,opt,name=value" json:"value,omitempty"` + Flags []string `protobuf:"bytes,53,rep,name=flags" json:"flags,omitempty"` + Algorithm *uint32 `protobuf:"varint,52,opt,name=algorithm" json:"algorithm,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 1, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) GetAlgorithm() uint32 { + if m != nil && m.Algorithm != nil { + return *m.Algorithm + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType struct { + UndefinedSubtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList `protobuf:"bytes,151,rep,name=undefined_subtlv,json=undefinedSubtlv" json:"undefined_subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) GetUndefinedSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList { + if m != nil { + return m.UndefinedSubtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + Length *uint32 `protobuf:"varint,52,opt,name=length" json:"length,omitempty"` + Value *string `protobuf:"bytes,53,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 11, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetLength() uint32 { + if m != nil && m.Length != nil { + return *m.Length + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType struct { + Prefixes *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType `protobuf:"bytes,151,opt,name=prefixes" json:"prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) GetPrefixes() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType { + if m != nil { + return m.Prefixes + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType struct { + Prefix []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList `protobuf:"bytes,151,rep,name=prefix" json:"prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) GetPrefix() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList { + if m != nil { + return m.Prefix + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Subtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType `protobuf:"bytes,152,opt,name=subtlvs" json:"subtlvs,omitempty"` + UndefinedSubtlvs *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType `protobuf:"bytes,153,opt,name=undefined_subtlvs,json=undefinedSubtlvs" json:"undefined_subtlvs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) GetSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType { + if m != nil { + return m.Subtlvs + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) GetUndefinedSubtlvs() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType { + if m != nil { + return m.UndefinedSubtlvs + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType struct { + UpDown *bool `protobuf:"varint,52,opt,name=up_down,json=upDown" json:"up_down,omitempty"` + XBit *bool `protobuf:"varint,53,opt,name=x_bit,json=xBit" json:"x_bit,omitempty"` + SBit *bool `protobuf:"varint,54,opt,name=s_bit,json=sBit" json:"s_bit,omitempty"` + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Metric *uint32 `protobuf:"varint,55,opt,name=metric" json:"metric,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) GetUpDown() bool { + if m != nil && m.UpDown != nil { + return *m.UpDown + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) GetXBit() bool { + if m != nil && m.XBit != nil { + return *m.XBit + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) GetSBit() bool { + if m != nil && m.SBit != nil { + return *m.SBit + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) GetMetric() uint32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType struct { + Subtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList `protobuf:"bytes,151,rep,name=subtlv" json:"subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) GetSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList { + if m != nil { + return m.Subtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Tag *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType `protobuf:"bytes,152,opt,name=tag" json:"tag,omitempty"` + PrefixSids *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType `protobuf:"bytes,153,opt,name=prefix_sids,json=prefixSids" json:"prefix_sids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetTag() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType { + if m != nil { + return m.Tag + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) GetPrefixSids() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType { + if m != nil { + return m.PrefixSids + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType struct { + Type *string `protobuf:"bytes,51,opt,name=type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType struct { + Tag32 []uint32 `protobuf:"varint,51,rep,name=tag32" json:"tag32,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) GetTag32() []uint32 { + if m != nil { + return m.Tag32 + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType struct { + PrefixSid []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList `protobuf:"bytes,151,rep,name=prefix_sid,json=prefixSid" json:"prefix_sid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) GetPrefixSid() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList { + if m != nil { + return m.PrefixSid + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList struct { + Value *uint32 `protobuf:"varint,51,opt,name=value" json:"value,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType struct { + Value *uint32 `protobuf:"varint,51,opt,name=value" json:"value,omitempty"` + Flags []string `protobuf:"bytes,53,rep,name=flags" json:"flags,omitempty"` + Algorithm *uint32 `protobuf:"varint,52,opt,name=algorithm" json:"algorithm,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 1, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) GetFlags() []string { + if m != nil { + return m.Flags + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) GetAlgorithm() uint32 { + if m != nil && m.Algorithm != nil { + return *m.Algorithm + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType struct { + UndefinedSubtlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList `protobuf:"bytes,151,rep,name=undefined_subtlv,json=undefinedSubtlv" json:"undefined_subtlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) GetUndefinedSubtlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList { + if m != nil { + return m.UndefinedSubtlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + Length *uint32 `protobuf:"varint,52,opt,name=length" json:"length,omitempty"` + Value *string `protobuf:"bytes,53,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 12, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetLength() uint32 { + if m != nil && m.Length != nil { + return *m.Length + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType struct { + UndefinedTlv []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList `protobuf:"bytes,151,rep,name=undefined_tlv,json=undefinedTlv" json:"undefined_tlv,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) GetUndefinedTlv() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList { + if m != nil { + return m.UndefinedTlv + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType struct { + Type *uint32 `protobuf:"varint,51,opt,name=type" json:"type,omitempty"` + Length *uint32 `protobuf:"varint,52,opt,name=length" json:"length,omitempty"` + Value *string `protobuf:"bytes,53,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) GetType() uint32 { + if m != nil && m.Type != nil { + return *m.Type + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) GetLength() uint32 { + if m != nil && m.Length != nil { + return *m.Length + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType struct { + LevelNumber *uint32 `protobuf:"varint,51,opt,name=level_number,json=levelNumber" json:"level_number,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) GetLevelNumber() uint32 { + if m != nil && m.LevelNumber != nil { + return *m.LevelNumber + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType struct { + CorruptedLsps *uint32 `protobuf:"varint,51,opt,name=corrupted_lsps,json=corruptedLsps" json:"corrupted_lsps,omitempty"` + DatabaseOverloads *uint32 `protobuf:"varint,52,opt,name=database_overloads,json=databaseOverloads" json:"database_overloads,omitempty"` + ManualAddressDropFromAreas *uint32 `protobuf:"varint,53,opt,name=manual_address_drop_from_areas,json=manualAddressDropFromAreas" json:"manual_address_drop_from_areas,omitempty"` + ExceedMaxSeqNums *uint32 `protobuf:"varint,54,opt,name=exceed_max_seq_nums,json=exceedMaxSeqNums" json:"exceed_max_seq_nums,omitempty"` + SeqNumSkips *uint32 `protobuf:"varint,55,opt,name=seq_num_skips,json=seqNumSkips" json:"seq_num_skips,omitempty"` + OwnLspPurges *uint32 `protobuf:"varint,56,opt,name=own_lsp_purges,json=ownLspPurges" json:"own_lsp_purges,omitempty"` + IdLenMismatch *uint32 `protobuf:"varint,57,opt,name=id_len_mismatch,json=idLenMismatch" json:"id_len_mismatch,omitempty"` + PartChanges *uint32 `protobuf:"varint,58,opt,name=part_changes,json=partChanges" json:"part_changes,omitempty"` + MaxAreaAddressMismatches *uint32 `protobuf:"varint,59,opt,name=max_area_address_mismatches,json=maxAreaAddressMismatches" json:"max_area_address_mismatches,omitempty"` + AuthFails *uint32 `protobuf:"varint,60,opt,name=auth_fails,json=authFails" json:"auth_fails,omitempty"` + SpfRuns *uint32 `protobuf:"varint,61,opt,name=spf_runs,json=spfRuns" json:"spf_runs,omitempty"` + AuthTypeFails *uint32 `protobuf:"varint,62,opt,name=auth_type_fails,json=authTypeFails" json:"auth_type_fails,omitempty"` + LspErrors *uint32 `protobuf:"varint,63,opt,name=lsp_errors,json=lspErrors" json:"lsp_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetCorruptedLsps() uint32 { + if m != nil && m.CorruptedLsps != nil { + return *m.CorruptedLsps + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetDatabaseOverloads() uint32 { + if m != nil && m.DatabaseOverloads != nil { + return *m.DatabaseOverloads + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetManualAddressDropFromAreas() uint32 { + if m != nil && m.ManualAddressDropFromAreas != nil { + return *m.ManualAddressDropFromAreas + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetExceedMaxSeqNums() uint32 { + if m != nil && m.ExceedMaxSeqNums != nil { + return *m.ExceedMaxSeqNums + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetSeqNumSkips() uint32 { + if m != nil && m.SeqNumSkips != nil { + return *m.SeqNumSkips + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetOwnLspPurges() uint32 { + if m != nil && m.OwnLspPurges != nil { + return *m.OwnLspPurges + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetIdLenMismatch() uint32 { + if m != nil && m.IdLenMismatch != nil { + return *m.IdLenMismatch + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetPartChanges() uint32 { + if m != nil && m.PartChanges != nil { + return *m.PartChanges + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetMaxAreaAddressMismatches() uint32 { + if m != nil && m.MaxAreaAddressMismatches != nil { + return *m.MaxAreaAddressMismatches + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetAuthFails() uint32 { + if m != nil && m.AuthFails != nil { + return *m.AuthFails + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetSpfRuns() uint32 { + if m != nil && m.SpfRuns != nil { + return *m.SpfRuns + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetAuthTypeFails() uint32 { + if m != nil && m.AuthTypeFails != nil { + return *m.AuthTypeFails + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) GetLspErrors() uint32 { + if m != nil && m.LspErrors != nil { + return *m.LspErrors + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType struct { + Interface []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) GetInterface() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + CircuitCounters *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType `protobuf:"bytes,152,opt,name=circuit_counters,json=circuitCounters" json:"circuit_counters,omitempty"` + PacketCounters *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType `protobuf:"bytes,153,opt,name=packet_counters,json=packetCounters" json:"packet_counters,omitempty"` + Levels *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType `protobuf:"bytes,154,opt,name=levels" json:"levels,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) GetCircuitCounters() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType { + if m != nil { + return m.CircuitCounters + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) GetPacketCounters() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType { + if m != nil { + return m.PacketCounters + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) GetLevels() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType { + if m != nil { + return m.Levels + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType struct { + AdjChanges *uint32 `protobuf:"varint,51,opt,name=adj_changes,json=adjChanges" json:"adj_changes,omitempty"` + InitFails *uint32 `protobuf:"varint,52,opt,name=init_fails,json=initFails" json:"init_fails,omitempty"` + RejectedAdj *uint32 `protobuf:"varint,53,opt,name=rejected_adj,json=rejectedAdj" json:"rejected_adj,omitempty"` + IdFieldLenMismatches *uint32 `protobuf:"varint,54,opt,name=id_field_len_mismatches,json=idFieldLenMismatches" json:"id_field_len_mismatches,omitempty"` + MaxAreaAddressMismatches *uint32 `protobuf:"varint,55,opt,name=max_area_address_mismatches,json=maxAreaAddressMismatches" json:"max_area_address_mismatches,omitempty"` + AuthTypeFails *uint32 `protobuf:"varint,56,opt,name=auth_type_fails,json=authTypeFails" json:"auth_type_fails,omitempty"` + AuthFails *uint32 `protobuf:"varint,57,opt,name=auth_fails,json=authFails" json:"auth_fails,omitempty"` + LanDisChanges *uint32 `protobuf:"varint,58,opt,name=lan_dis_changes,json=lanDisChanges" json:"lan_dis_changes,omitempty"` + AdjNumber *uint32 `protobuf:"varint,59,opt,name=adj_number,json=adjNumber" json:"adj_number,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetAdjChanges() uint32 { + if m != nil && m.AdjChanges != nil { + return *m.AdjChanges + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetInitFails() uint32 { + if m != nil && m.InitFails != nil { + return *m.InitFails + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetRejectedAdj() uint32 { + if m != nil && m.RejectedAdj != nil { + return *m.RejectedAdj + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetIdFieldLenMismatches() uint32 { + if m != nil && m.IdFieldLenMismatches != nil { + return *m.IdFieldLenMismatches + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetMaxAreaAddressMismatches() uint32 { + if m != nil && m.MaxAreaAddressMismatches != nil { + return *m.MaxAreaAddressMismatches + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetAuthTypeFails() uint32 { + if m != nil && m.AuthTypeFails != nil { + return *m.AuthTypeFails + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetAuthFails() uint32 { + if m != nil && m.AuthFails != nil { + return *m.AuthFails + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetLanDisChanges() uint32 { + if m != nil && m.LanDisChanges != nil { + return *m.LanDisChanges + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) GetAdjNumber() uint32 { + if m != nil && m.AdjNumber != nil { + return *m.AdjNumber + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType struct { + Lsp *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType `protobuf:"bytes,151,opt,name=lsp" json:"lsp,omitempty"` + Iih *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType `protobuf:"bytes,152,opt,name=iih" json:"iih,omitempty"` + Ish *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType `protobuf:"bytes,155,opt,name=ish" json:"ish,omitempty"` + Esh *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType `protobuf:"bytes,156,opt,name=esh" json:"esh,omitempty"` + Psnp *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType `protobuf:"bytes,153,opt,name=psnp" json:"psnp,omitempty"` + Csnp *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType `protobuf:"bytes,154,opt,name=csnp" json:"csnp,omitempty"` + Unknown *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType `protobuf:"bytes,157,opt,name=unknown" json:"unknown,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetLsp() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType { + if m != nil { + return m.Lsp + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetIih() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType { + if m != nil { + return m.Iih + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetIsh() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType { + if m != nil { + return m.Ish + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetEsh() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType { + if m != nil { + return m.Esh + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetPsnp() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType { + if m != nil { + return m.Psnp + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetCsnp() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType { + if m != nil { + return m.Csnp + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) GetUnknown() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType { + if m != nil { + return m.Unknown + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 3} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 3, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 4} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 4, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 5} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 5, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType struct { + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 6} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType struct { + Received *uint32 `protobuf:"varint,51,opt,name=received" json:"received,omitempty"` + Processed *uint32 `protobuf:"varint,53,opt,name=processed" json:"processed,omitempty"` + Dropped *uint32 `protobuf:"varint,52,opt,name=dropped" json:"dropped,omitempty"` + Sent *uint32 `protobuf:"varint,54,opt,name=sent" json:"sent,omitempty"` + Retransmit *uint32 `protobuf:"varint,55,opt,name=retransmit" json:"retransmit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 2, 6, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) GetProcessed() uint32 { + if m != nil && m.Processed != nil { + return *m.Processed + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) GetDropped() uint32 { + if m != nil && m.Dropped != nil { + return *m.Dropped + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) GetRetransmit() uint32 { + if m != nil && m.Retransmit != nil { + return *m.Retransmit + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType struct { + Level []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList `protobuf:"bytes,151,rep,name=level" json:"level,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) GetLevel() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList { + if m != nil { + return m.Level + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList struct { + LevelNumber *uint32 `protobuf:"varint,51,opt,name=level_number,json=levelNumber" json:"level_number,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Adjacencies *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType `protobuf:"bytes,152,opt,name=adjacencies" json:"adjacencies,omitempty"` + AfiSafi *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType `protobuf:"bytes,153,opt,name=afi_safi,json=afiSafi" json:"afi_safi,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) GetLevelNumber() uint32 { + if m != nil && m.LevelNumber != nil { + return *m.LevelNumber + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) GetAdjacencies() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType { + if m != nil { + return m.Adjacencies + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) GetAfiSafi() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType { + if m != nil { + return m.AfiSafi + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType struct { + LevelNumber *uint32 `protobuf:"varint,51,opt,name=level_number,json=levelNumber" json:"level_number,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) GetLevelNumber() uint32 { + if m != nil && m.LevelNumber != nil { + return *m.LevelNumber + } + return 0 +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType struct { + Adjacency []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList `protobuf:"bytes,151,rep,name=adjacency" json:"adjacency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 1} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) GetAdjacency() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList { + if m != nil { + return m.Adjacency + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList struct { + SystemId *string `protobuf:"bytes,51,opt,name=system_id,json=systemId" json:"system_id,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 1, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType struct { + SystemId *string `protobuf:"bytes,51,opt,name=system_id,json=systemId" json:"system_id,omitempty"` + NeighborSnpa *string `protobuf:"bytes,52,opt,name=neighbor_snpa,json=neighborSnpa" json:"neighbor_snpa,omitempty"` + LocalExtendedCircuitId *uint32 `protobuf:"varint,53,opt,name=local_extended_circuit_id,json=localExtendedCircuitId" json:"local_extended_circuit_id,omitempty"` + NeighborExtendedCircuitId *uint32 `protobuf:"varint,54,opt,name=neighbor_extended_circuit_id,json=neighborExtendedCircuitId" json:"neighbor_extended_circuit_id,omitempty"` + Priority *uint32 `protobuf:"varint,55,opt,name=priority" json:"priority,omitempty"` + DisSystemId *string `protobuf:"bytes,56,opt,name=dis_system_id,json=disSystemId" json:"dis_system_id,omitempty"` + NeighborCircuitType *string `protobuf:"bytes,57,opt,name=neighbor_circuit_type,json=neighborCircuitType" json:"neighbor_circuit_type,omitempty"` + AdjacencyType *string `protobuf:"bytes,58,opt,name=adjacency_type,json=adjacencyType" json:"adjacency_type,omitempty"` + AdjacencyState *string `protobuf:"bytes,59,opt,name=adjacency_state,json=adjacencyState" json:"adjacency_state,omitempty"` + RemainingHoldTime *uint32 `protobuf:"varint,66,opt,name=remaining_hold_time,json=remainingHoldTime" json:"remaining_hold_time,omitempty"` + UpTime *uint32 `protobuf:"varint,60,opt,name=up_time,json=upTime" json:"up_time,omitempty"` + MultiTopology *bool `protobuf:"varint,61,opt,name=multi_topology,json=multiTopology" json:"multi_topology,omitempty"` + Topology []string `protobuf:"bytes,62,rep,name=topology" json:"topology,omitempty"` + RestartSupport *bool `protobuf:"varint,63,opt,name=restart_support,json=restartSupport" json:"restart_support,omitempty"` + RestartSuppress *bool `protobuf:"varint,64,opt,name=restart_suppress,json=restartSuppress" json:"restart_suppress,omitempty"` + RestartStatus *bool `protobuf:"varint,65,opt,name=restart_status,json=restartStatus" json:"restart_status,omitempty"` + AreaAddress []string `protobuf:"bytes,67,rep,name=area_address,json=areaAddress" json:"area_address,omitempty"` + Nlpid []string `protobuf:"bytes,68,rep,name=nlpid" json:"nlpid,omitempty"` + Ipv4NeighborAddress []string `protobuf:"bytes,69,rep,name=ipv4_neighbor_address,json=ipv4NeighborAddress" json:"ipv4_neighbor_address,omitempty"` + Ipv6NeighborAddress []string `protobuf:"bytes,70,rep,name=ipv6_neighbor_address,json=ipv6NeighborAddress" json:"ipv6_neighbor_address,omitempty"` + LanAdjacencyState *string `protobuf:"bytes,71,opt,name=lan_adjacency_state,json=lanAdjacencyState" json:"lan_adjacency_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 1, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetNeighborSnpa() string { + if m != nil && m.NeighborSnpa != nil { + return *m.NeighborSnpa + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetLocalExtendedCircuitId() uint32 { + if m != nil && m.LocalExtendedCircuitId != nil { + return *m.LocalExtendedCircuitId + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetNeighborExtendedCircuitId() uint32 { + if m != nil && m.NeighborExtendedCircuitId != nil { + return *m.NeighborExtendedCircuitId + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetDisSystemId() string { + if m != nil && m.DisSystemId != nil { + return *m.DisSystemId + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetNeighborCircuitType() string { + if m != nil && m.NeighborCircuitType != nil { + return *m.NeighborCircuitType + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetAdjacencyType() string { + if m != nil && m.AdjacencyType != nil { + return *m.AdjacencyType + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetAdjacencyState() string { + if m != nil && m.AdjacencyState != nil { + return *m.AdjacencyState + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetRemainingHoldTime() uint32 { + if m != nil && m.RemainingHoldTime != nil { + return *m.RemainingHoldTime + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetUpTime() uint32 { + if m != nil && m.UpTime != nil { + return *m.UpTime + } + return 0 +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetMultiTopology() bool { + if m != nil && m.MultiTopology != nil { + return *m.MultiTopology + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetTopology() []string { + if m != nil { + return m.Topology + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetRestartSupport() bool { + if m != nil && m.RestartSupport != nil { + return *m.RestartSupport + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetRestartSuppress() bool { + if m != nil && m.RestartSuppress != nil { + return *m.RestartSuppress + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetRestartStatus() bool { + if m != nil && m.RestartStatus != nil { + return *m.RestartStatus + } + return false +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetAreaAddress() []string { + if m != nil { + return m.AreaAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetNlpid() []string { + if m != nil { + return m.Nlpid + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetIpv4NeighborAddress() []string { + if m != nil { + return m.Ipv4NeighborAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetIpv6NeighborAddress() []string { + if m != nil { + return m.Ipv6NeighborAddress + } + return nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) GetLanAdjacencyState() string { + if m != nil && m.LanAdjacencyState != nil { + return *m.LanAdjacencyState + } + return "" +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType struct { + Af []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList `protobuf:"bytes,151,rep,name=af" json:"af,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 2} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) GetAf() []*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList { + if m != nil { + return m.Af + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList struct { + AfiName *string `protobuf:"bytes,51,opt,name=afi_name,json=afiName" json:"afi_name,omitempty"` + SafiName *string `protobuf:"bytes,52,opt,name=safi_name,json=safiName" json:"safi_name,omitempty"` + State *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 2, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) GetAfiName() string { + if m != nil && m.AfiName != nil { + return *m.AfiName + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) GetSafiName() string { + if m != nil && m.SafiName != nil { + return *m.SafiName + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) GetState() *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType struct { + AfiName *string `protobuf:"bytes,51,opt,name=afi_name,json=afiName" json:"afi_name,omitempty"` + SafiName *string `protobuf:"bytes,52,opt,name=safi_name,json=safiName" json:"safi_name,omitempty"` + Metric *uint32 `protobuf:"varint,53,opt,name=metric" json:"metric,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) Reset() { + *m = NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType{} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) ProtoMessage() { +} +func (*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_69a37f0f83887bca, []int{0, 0, 0, 0, 0, 1, 0, 3, 0, 2, 0, 0} +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType.Merge(m, src) +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) GetAfiName() string { + if m != nil && m.AfiName != nil { + return *m.AfiName + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) GetSafiName() string { + if m != nil && m.SafiName != nil { + return *m.SafiName + } + return "" +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) GetMetric() uint32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +var E_JnprNetworkInstancesIsisExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesIsis)(nil), + Field: 65, + Name: "jnpr_network_instances_isis_ext", + Tag: "bytes,65,opt,name=jnpr_network_instances_isis_ext", + Filename: "rpd_isis_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesIsis)(nil), "network_instances_isis") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceList)(nil), "network_instances_isis.network_instance_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsType)(nil), "network_instances_isis.network_instance_list.protocols_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.area_address_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.area_address_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.lsp_buffer_size_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.lsp_buffer_size_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.nlpid_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.nlpid_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.hostname_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.hostname_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_interface_addresses_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_interface_addresses_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_interface_addresses_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_interface_addresses_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_te_router_id_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_te_router_id_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_srlgs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_srlgs_type.ipv4_srlg_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv4_srlgs_type.ipv4_srlg_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_algorithms_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_algorithms_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_capability_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_capability_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_capability_type.srgb_descriptors_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_capability_type.srgb_descriptors_type.srgb_descriptor_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.subtlvs_type.subtlv_list.segment_routing_capability_type.srgb_descriptors_type.srgb_descriptor_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.undefined_subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.undefined_subtlvs_type.undefined_subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.router_capabilities_type.capability_list.undefined_subtlvs_type.undefined_subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.admin_group_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.admin_group_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.link_id_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.link_id_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv4_interface_address_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv4_interface_address_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv4_neighbor_address_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv4_neighbor_address_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.max_link_bandwidth_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.max_link_bandwidth_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.max_reservable_link_bandwidth_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.max_reservable_link_bandwidth_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.unreserved_bandwidth_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.unreserved_bandwidth_type.setup_priority_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.unreserved_bandwidth_type.setup_priority_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv6_interface_address_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv6_interface_address_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv6_neighbor_address_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.ipv6_neighbor_address_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.te_default_metric_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.te_default_metric_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.bandwidth_constraints_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.bandwidth_constraints_type.bandwidth_constraint_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.bandwidth_constraints_type.bandwidth_constraint_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.bandwidth_constraints_type.bandwidth_constraint_list.constraints_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.bandwidth_constraints_type.bandwidth_constraint_list.constraints_type.constraint_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.bandwidth_constraints_type.bandwidth_constraint_list.constraints_type.constraint_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.adjacency_sids_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.adjacency_sids_type.adj_sid_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.adjacency_sids_type.adj_sid_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.lan_adjacency_sids_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.lan_adjacency_sids_type.lan_adj_sid_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.subtlvs_type.subtlv_list.lan_adjacency_sids_type.lan_adj_sid_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.undefined_subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.undefined_subtlvs_type.undefined_subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_is_reachability_type.neighbors_type.neighbor_list.undefined_subtlvs_type.undefined_subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.tag_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.tag_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.prefix_sids_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.prefix_sids_type.prefix_sid_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.prefix_sids_type.prefix_sid_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.undefined_subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.undefined_subtlvs_type.undefined_subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.extended_ipv4_reachability_type.prefixes_type.prefix_list.undefined_subtlvs_type.undefined_subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.tag_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.tag_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.prefix_sids_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.prefix_sids_type.prefix_sid_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.subtlvs_type.subtlv_list.prefix_sids_type.prefix_sid_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.undefined_subtlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.undefined_subtlvs_type.undefined_subtlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.tlvs_type.tlv_list.ipv6_reachability_type.prefixes_type.prefix_list.undefined_subtlvs_type.undefined_subtlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.undefined_tlvs_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.undefined_tlvs_type.undefined_tlv_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.link_state_database_type.lsp_list.undefined_tlvs_type.undefined_tlv_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.system_level_counters_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.levels_type.level_list.system_level_counters_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.circuit_counters_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.circuit_counters_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.lsp_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.lsp_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.iih_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.iih_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.ish_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.ish_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.esh_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.esh_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.psnp_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.psnp_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.csnp_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.csnp_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.unknown_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.packet_counters_type.unknown_type.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.adjacencies_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.adjacencies_type.adjacency_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.adjacencies_type.adjacency_list.state_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.afi_safi_type") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.afi_safi_type.af_list") + proto.RegisterType((*NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType)(nil), "network_instances_isis.network_instance_list.protocols_type.protocol_type.isis_type.interfaces_type.interface_list.levels_type.level_list.afi_safi_type.af_list.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesIsisExt) +} + +func init() { proto.RegisterFile("rpd_isis_oc.proto", fileDescriptor_69a37f0f83887bca) } + +var fileDescriptor_69a37f0f83887bca = []byte{ + // 5457 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7d, 0x69, 0x90, 0x1c, 0xc5, + 0x95, 0x7f, 0x54, 0xcd, 0xd5, 0xf3, 0xe6, 0x54, 0xce, 0x68, 0xd4, 0x2a, 0x21, 0x24, 0x64, 0x0e, + 0xfd, 0x1d, 0xa1, 0x51, 0x84, 0x8e, 0x41, 0xe2, 0xb4, 0x0e, 0xf0, 0x7f, 0x1c, 0x42, 0x26, 0x7a, + 0x14, 0x8e, 0xd8, 0x23, 0xa2, 0xa8, 0xe9, 0xca, 0xe9, 0xa9, 0x51, 0x75, 0x75, 0x51, 0x59, 0x3d, + 0x1a, 0xf9, 0xc3, 0x7a, 0xb9, 0x0c, 0x5e, 0x23, 0x1b, 0x03, 0x42, 0x80, 0x38, 0x24, 0x0c, 0x5e, + 0x0c, 0xc8, 0xc6, 0x20, 0x2e, 0x07, 0xbb, 0x28, 0xcc, 0x62, 0x03, 0x36, 0x36, 0xde, 0xb0, 0xd7, + 0x2c, 0x38, 0x30, 0xab, 0x5d, 0x58, 0x07, 0x96, 0x96, 0xc5, 0xc0, 0x6e, 0xd8, 0x78, 0xd9, 0x8d, + 0xca, 0xa3, 0xba, 0x2a, 0xbb, 0x7a, 0x34, 0x92, 0x90, 0xe8, 0x9e, 0xee, 0x6f, 0x9d, 0xef, 0x65, + 0x75, 0xbd, 0xf7, 0xcb, 0xcc, 0x97, 0x99, 0xbf, 0x3c, 0x0a, 0xe6, 0x78, 0xae, 0xa9, 0x5b, 0xc4, + 0x22, 0x7a, 0x21, 0x3b, 0xe8, 0x7a, 0x05, 0xbf, 0xa0, 0xf5, 0xf9, 0xd8, 0xc6, 0x79, 0xec, 0x7b, + 0xdb, 0x75, 0xbf, 0xe0, 0x32, 0xe1, 0x92, 0x7f, 0x7c, 0x57, 0x85, 0x01, 0x07, 0xfb, 0xdb, 0x0a, + 0xde, 0x56, 0xdd, 0x72, 0x88, 0x6f, 0x38, 0x59, 0x4c, 0xe8, 0x93, 0xe8, 0xcf, 0xa0, 0x57, 0xd6, + 0xa4, 0x77, 0x29, 0x8b, 0x9b, 0x96, 0x76, 0xac, 0x58, 0x36, 0x98, 0xfc, 0x4c, 0x99, 0x58, 0xb7, + 0x2d, 0xe2, 0x67, 0x7a, 0xb8, 0x78, 0x98, 0x4b, 0xb5, 0xd7, 0xfe, 0x53, 0x85, 0xb9, 0x89, 0x79, + 0xd1, 0x7c, 0x68, 0x76, 0x8c, 0x3c, 0x4e, 0xaf, 0x5c, 0xac, 0x2c, 0x6d, 0x5f, 0xdf, 0x72, 0xe5, + 0x67, 0xd4, 0x94, 0x92, 0xa1, 0x22, 0xf4, 0x17, 0xd0, 0x4e, 0xad, 0xce, 0x16, 0x6c, 0x12, 0x58, + 0xa2, 0x2c, 0xed, 0x58, 0x71, 0xde, 0x51, 0x59, 0x32, 0x18, 0x3e, 0xaf, 0xfb, 0xdb, 0x5d, 0x9c, + 0x29, 0xfd, 0x9f, 0xf6, 0xfc, 0x3b, 0x2a, 0x74, 0xc7, 0xd5, 0x28, 0x07, 0x29, 0x21, 0x11, 0xef, + 0xfb, 0xdc, 0xf1, 0xbc, 0x2f, 0x4c, 0xb2, 0xb7, 0x87, 0x7f, 0xae, 0xfd, 0xf8, 0x3f, 0x54, 0xe8, + 0x8a, 0x29, 0x91, 0x05, 0xcd, 0xc1, 0xff, 0x8a, 0xf7, 0x6e, 0xf9, 0xf8, 0xde, 0x3b, 0x48, 0xeb, + 0x05, 0xb5, 0x80, 0xbe, 0x42, 0x7b, 0xe9, 0xb0, 0x0a, 0xed, 0xa1, 0x10, 0x6d, 0x87, 0x56, 0x1b, + 0x4f, 0xe2, 0x12, 0xc6, 0x97, 0x9d, 0x88, 0x77, 0x0f, 0xb2, 0x77, 0x30, 0x3b, 0xf8, 0x0b, 0xd1, + 0x35, 0x0a, 0x80, 0xe5, 0xf8, 0xd8, 0x1b, 0x33, 0xb2, 0x98, 0xa4, 0x6f, 0x65, 0xef, 0x37, 0x4f, + 0xc8, 0xfb, 0x4b, 0xef, 0x61, 0x36, 0x44, 0x5e, 0xac, 0xed, 0xdb, 0xa7, 0x42, 0x47, 0xc4, 0x40, + 0x74, 0xa5, 0x02, 0x2d, 0x34, 0x2d, 0x5a, 0xc0, 0xd6, 0x13, 0x8d, 0x09, 0xfb, 0xcd, 0xda, 0x0f, + 0x7b, 0xb5, 0xb6, 0xeb, 0x21, 0x15, 0xa0, 0x24, 0x46, 0x4b, 0xa1, 0x93, 0xa5, 0x9c, 0x62, 0x7e, + 0x14, 0x7b, 0xb4, 0xc9, 0x74, 0x89, 0x26, 0xc3, 0xcc, 0xdf, 0x4c, 0x35, 0xe8, 0x71, 0x05, 0xfa, + 0x6c, 0xcb, 0xd9, 0xaa, 0x13, 0xdf, 0xf0, 0xb1, 0x6e, 0x1a, 0xbe, 0x31, 0x6a, 0x10, 0x2c, 0x0a, + 0xf8, 0x6a, 0xe5, 0x24, 0x7a, 0x33, 0x98, 0x60, 0x08, 0x2b, 0x81, 0x39, 0x81, 0x66, 0x24, 0x50, + 0x6c, 0xe4, 0x72, 0xb4, 0x43, 0x81, 0x16, 0x9a, 0x55, 0xd4, 0x85, 0xc9, 0x93, 0x69, 0x29, 0x33, + 0x92, 0xda, 0xc6, 0xac, 0x40, 0x4f, 0x2b, 0x30, 0x97, 0x6c, 0x27, 0x3e, 0xce, 0xeb, 0x2c, 0x5f, + 0xb6, 0x50, 0x0c, 0xaa, 0x0d, 0x49, 0xdf, 0xc6, 0xec, 0xfb, 0xf2, 0x49, 0x85, 0x32, 0xd1, 0x14, + 0x66, 0x70, 0x1f, 0xd3, 0x6d, 0x0a, 0x54, 0x1b, 0xb8, 0x46, 0x7b, 0x68, 0xaf, 0x0a, 0xe9, 0x4a, + 0xf8, 0xa3, 0xbd, 0x0a, 0x34, 0xd9, 0xc4, 0x15, 0x55, 0x7c, 0x47, 0x55, 0xd4, 0x8a, 0x41, 0x9b, + 0xb8, 0xac, 0x15, 0x04, 0xb6, 0x69, 0x6f, 0xdf, 0xad, 0x42, 0x4a, 0x88, 0xd0, 0x29, 0xd0, 0x1a, + 0xfc, 0xb6, 0xcc, 0x78, 0x77, 0xd1, 0x62, 0x13, 0x77, 0xd8, 0x44, 0x0f, 0x87, 0x95, 0x87, 0xd7, + 0xf3, 0x5b, 0xab, 0xcb, 0xa3, 0x84, 0xfa, 0xb5, 0x4f, 0x81, 0x66, 0xdf, 0x9e, 0x0c, 0x43, 0xdf, + 0xae, 0x2a, 0xb3, 0x38, 0xb0, 0x8d, 0x77, 0x1d, 0xc1, 0x4f, 0xf4, 0xa2, 0x02, 0xdd, 0x45, 0xc7, + 0xc4, 0x63, 0x96, 0x83, 0x4d, 0x9d, 0x5a, 0xce, 0x1b, 0xc2, 0xde, 0x2a, 0xb3, 0x3c, 0x6e, 0x25, + 0xf3, 0xa1, 0x2b, 0x14, 0x6e, 0xb1, 0x27, 0x89, 0xf6, 0x68, 0x13, 0x40, 0xa9, 0x48, 0xd0, 0xdc, + 0x78, 0xe5, 0x12, 0xb5, 0x6a, 0x15, 0x0c, 0xe4, 0x8d, 0x29, 0x2b, 0x5f, 0xcc, 0xeb, 0x86, 0x87, + 0x0d, 0xdd, 0x30, 0x4d, 0x0f, 0x13, 0x82, 0x49, 0x7a, 0x55, 0x10, 0x7f, 0x33, 0xfd, 0x5c, 0xbb, + 0xce, 0xc3, 0xc6, 0x3a, 0xa1, 0x43, 0x69, 0x68, 0x9b, 0xc4, 0x1e, 0xb1, 0x0a, 0x4e, 0x7a, 0x35, + 0xcd, 0x26, 0x92, 0x48, 0x83, 0x14, 0xff, 0xb9, 0x22, 0x3d, 0x44, 0x55, 0x61, 0x1a, 0x2d, 0x80, + 0x76, 0xcb, 0xd4, 0x6d, 0xec, 0xe4, 0xfc, 0xf1, 0xf4, 0xd9, 0x4c, 0x69, 0x99, 0x9b, 0x68, 0x1a, + 0xcd, 0x87, 0x94, 0x6b, 0x16, 0xa9, 0xad, 0xe9, 0x35, 0xd4, 0xc2, 0x36, 0xd7, 0x2c, 0x6e, 0x09, + 0x4c, 0x5f, 0x06, 0xc8, 0xc3, 0x79, 0xc3, 0x72, 0x2c, 0x27, 0xa7, 0xdb, 0xd6, 0x18, 0xf6, 0xad, + 0x3c, 0x4e, 0xaf, 0xa5, 0x7f, 0x30, 0x27, 0xd4, 0x6c, 0xe2, 0x0a, 0x74, 0x16, 0xf4, 0x10, 0x7c, + 0x79, 0x11, 0x07, 0x85, 0xc1, 0xfb, 0x92, 0x73, 0x68, 0xde, 0x6e, 0x21, 0xe6, 0xfd, 0x88, 0x06, + 0xa9, 0xec, 0x38, 0xce, 0x6e, 0x25, 0xc5, 0x7c, 0xfa, 0x5c, 0x66, 0x8e, 0x48, 0xa3, 0x85, 0x00, + 0x81, 0x39, 0xdc, 0xd8, 0xf3, 0xa8, 0xb6, 0xdd, 0x35, 0x8b, 0xdc, 0xda, 0x7e, 0x68, 0x19, 0xb3, + 0x8d, 0x1c, 0x49, 0x5f, 0xb0, 0xb8, 0x29, 0x00, 0x93, 0x26, 0xd0, 0x3c, 0x68, 0xe3, 0x25, 0x9b, + 0xbe, 0x90, 0x3e, 0xd1, 0x6a, 0x11, 0xea, 0xc1, 0x52, 0xe8, 0xa5, 0xe0, 0x07, 0x75, 0xc4, 0xb6, + 0x75, 0x6a, 0xff, 0xf9, 0x8b, 0x95, 0xa5, 0xcd, 0x99, 0xee, 0xa0, 0x18, 0x98, 0x78, 0x8b, 0x95, + 0xc7, 0xda, 0x97, 0x6f, 0x52, 0xa1, 0x3d, 0x2c, 0x53, 0xb4, 0x5f, 0x81, 0x26, 0xdf, 0x9e, 0x14, + 0x41, 0x6c, 0x4f, 0xb5, 0x36, 0xa0, 0xe0, 0x17, 0x8f, 0x6b, 0xbe, 0x3d, 0xa9, 0x1d, 0xf8, 0x86, + 0x0a, 0x29, 0x21, 0x0a, 0x06, 0xc1, 0x14, 0x93, 0xf8, 0x20, 0x98, 0xfa, 0xf7, 0xac, 0x1c, 0xd4, + 0x1e, 0xac, 0x7a, 0x0f, 0x13, 0xe2, 0xdc, 0xaf, 0x14, 0xe8, 0x8c, 0xb6, 0x1e, 0x11, 0xef, 0x1e, + 0xa9, 0x7e, 0x67, 0xa2, 0x66, 0x33, 0x9f, 0x3a, 0x8c, 0x52, 0x53, 0x47, 0xbf, 0x51, 0xa0, 0x27, + 0x78, 0x7c, 0xb4, 0x38, 0x36, 0x86, 0x3d, 0x9d, 0x58, 0x5f, 0xc4, 0xe9, 0xbb, 0x98, 0x73, 0x8f, + 0x55, 0xbf, 0x73, 0x92, 0xe5, 0x3c, 0x4c, 0xda, 0xc4, 0x5d, 0x4f, 0x85, 0x23, 0xd6, 0x17, 0x59, + 0x0d, 0x74, 0x6c, 0xd7, 0x32, 0x45, 0xa8, 0xaf, 0x81, 0x1a, 0x48, 0xed, 0xe5, 0x35, 0x90, 0xfe, + 0x46, 0x3f, 0x51, 0x20, 0x35, 0x5e, 0x20, 0x3e, 0x9d, 0x6c, 0xde, 0xce, 0x1c, 0xf9, 0x4e, 0xf5, + 0x3b, 0x22, 0x4c, 0xe6, 0x33, 0x48, 0x91, 0x44, 0x7f, 0x54, 0x20, 0x6d, 0xb9, 0x93, 0xab, 0xf4, + 0x70, 0x16, 0x13, 0xe9, 0x98, 0xee, 0x60, 0xee, 0xfd, 0x7d, 0xf5, 0xbb, 0x57, 0xc9, 0x05, 0xe6, + 0xee, 0x40, 0xa0, 0x1e, 0x16, 0xda, 0x52, 0xe7, 0xca, 0x9d, 0x1f, 0x4a, 0x74, 0xfe, 0xce, 0x5a, + 0x72, 0x7e, 0x68, 0x7a, 0xe7, 0x87, 0x12, 0x9c, 0xff, 0x37, 0x05, 0xe6, 0x50, 0xd8, 0x7c, 0xac, + 0x7b, 0x85, 0xa2, 0x8f, 0xbd, 0x60, 0xc8, 0xb2, 0x9b, 0x79, 0xfd, 0x44, 0x8d, 0x14, 0x79, 0xd4, + 0x76, 0xe6, 0x6e, 0x77, 0x20, 0xdf, 0x82, 0x33, 0x54, 0x3a, 0x6c, 0xa2, 0x9f, 0x2b, 0x00, 0x34, + 0x2b, 0xf1, 0xec, 0x1c, 0x49, 0x7f, 0x93, 0xf9, 0xf7, 0x70, 0x8d, 0xf8, 0x47, 0x8d, 0xe6, 0x9c, + 0x53, 0x20, 0x18, 0x09, 0xd2, 0xe8, 0x90, 0x02, 0x7d, 0xdc, 0xed, 0xac, 0xe1, 0x1a, 0xa3, 0x96, + 0x6d, 0xf9, 0x16, 0x26, 0xe9, 0x7b, 0x98, 0x73, 0x4f, 0x55, 0xbf, 0x73, 0x09, 0xd6, 0x33, 0x2f, + 0x11, 0xd3, 0x6c, 0x88, 0x28, 0x68, 0x33, 0xc5, 0x53, 0x3e, 0x76, 0x4c, 0x6c, 0xea, 0x16, 0xd1, + 0x3d, 0x6c, 0x64, 0xc7, 0x99, 0x7a, 0x7b, 0x7a, 0x6f, 0xcd, 0x34, 0xd3, 0x4a, 0x2e, 0xf0, 0x66, + 0x2a, 0xd4, 0xc3, 0x24, 0x13, 0x51, 0xa2, 0xbf, 0x56, 0x41, 0x2b, 0x3d, 0x19, 0xd4, 0x89, 0x98, + 0xfb, 0x77, 0x33, 0xf7, 0x0f, 0xd4, 0x92, 0xfb, 0xb2, 0x13, 0x0c, 0x80, 0xb0, 0x88, 0x87, 0xdd, + 0xc9, 0x55, 0x31, 0x08, 0xde, 0x62, 0x91, 0x6a, 0x28, 0xee, 0xf9, 0x9e, 0x5a, 0x8a, 0x54, 0x43, + 0x09, 0x0e, 0xf7, 0x06, 0xf2, 0xa8, 0xa3, 0xda, 0xe2, 0xd8, 0x3c, 0x12, 0x45, 0x07, 0xf3, 0x6c, + 0x14, 0xaf, 0xdd, 0xa4, 0xc2, 0x9c, 0xb2, 0x81, 0x24, 0xfa, 0xa5, 0x3c, 0xb6, 0xff, 0xbb, 0x1a, + 0x1c, 0x0e, 0x97, 0x8f, 0xf6, 0xb5, 0x33, 0x63, 0x78, 0xa4, 0xa1, 0x4d, 0x8c, 0xfa, 0x57, 0xd2, + 0xb9, 0xa0, 0x48, 0x06, 0xa8, 0xf4, 0x27, 0x8d, 0x40, 0xd1, 0x2b, 0x32, 0x30, 0x07, 0x6a, 0x73, + 0x28, 0x9d, 0x80, 0x4d, 0x59, 0x5d, 0xa1, 0x33, 0x06, 0x4a, 0xe5, 0x66, 0xe8, 0x6f, 0xed, 0x0a, + 0x15, 0xa0, 0x34, 0x7e, 0x45, 0x3f, 0x95, 0xb1, 0x78, 0xbc, 0x96, 0x86, 0xdf, 0x09, 0x08, 0x2c, + 0x89, 0x21, 0xd0, 0x2f, 0x26, 0x17, 0xac, 0x6e, 0xb0, 0x84, 0x76, 0xad, 0x0a, 0x5d, 0xb1, 0xa1, + 0x6f, 0x30, 0x1e, 0x88, 0xc3, 0xf0, 0x54, 0x8d, 0x0d, 0xde, 0x67, 0x82, 0xc4, 0x78, 0x69, 0x29, + 0x2c, 0xc3, 0x12, 0xda, 0x83, 0x2a, 0x2c, 0x9c, 0x76, 0x94, 0x8c, 0xfe, 0x45, 0x46, 0xe6, 0x85, + 0x1a, 0x1f, 0xf7, 0x1f, 0x47, 0x44, 0xe1, 0x68, 0x0d, 0xcd, 0x3a, 0xb4, 0x86, 0x4e, 0x04, 0x5a, + 0xf7, 0xa9, 0x30, 0x90, 0x3c, 0x1c, 0x47, 0xaf, 0xca, 0x30, 0xfd, 0xa0, 0x56, 0x67, 0x16, 0x09, + 0xf8, 0x0c, 0xc6, 0xf0, 0x59, 0x0c, 0x9d, 0xb1, 0xa9, 0x14, 0x6b, 0x7e, 0xe0, 0x87, 0x73, 0x11, + 0x6d, 0x5f, 0x2b, 0xf4, 0x48, 0xc3, 0x7a, 0xf4, 0xba, 0x02, 0xed, 0xa1, 0x4c, 0xb0, 0x8f, 0xcf, + 0xd4, 0xdc, 0xf4, 0xa4, 0x94, 0x66, 0xe4, 0x64, 0x4a, 0xcc, 0x56, 0xb4, 0x27, 0x9b, 0xa1, 0x3b, + 0xae, 0x44, 0x83, 0xd0, 0x13, 0xda, 0x9f, 0xb4, 0x06, 0xd9, 0x2d, 0xb4, 0x9c, 0x3e, 0x3e, 0x28, + 0x57, 0xa2, 0x17, 0x6b, 0x1d, 0x9f, 0x84, 0xca, 0x74, 0x83, 0x1a, 0xab, 0x4d, 0x67, 0x55, 0xc0, + 0xa8, 0x0c, 0x9c, 0x05, 0xd0, 0xce, 0x97, 0xf3, 0x2c, 0x93, 0x2e, 0x25, 0xb4, 0x67, 0x52, 0x4c, + 0x30, 0x6c, 0x52, 0x72, 0x9d, 0x38, 0xe2, 0x0f, 0x56, 0x73, 0x72, 0x9d, 0x38, 0xfc, 0xd9, 0x90, + 0x5c, 0x5f, 0x1b, 0x25, 0xd7, 0x57, 0xf1, 0xd6, 0x5c, 0x16, 0x29, 0xe8, 0x3a, 0x43, 0x7b, 0xa6, + 0x3f, 0x89, 0x4e, 0x41, 0x2b, 0x60, 0x2e, 0x7d, 0xca, 0xc1, 0x56, 0x6e, 0x7c, 0xb4, 0xe0, 0x85, + 0x0f, 0x9d, 0x4d, 0x1f, 0xea, 0x0b, 0x94, 0x9b, 0xb9, 0x4e, 0x3c, 0xb3, 0x10, 0x80, 0x42, 0x32, + 0x69, 0xd8, 0x45, 0x9c, 0x5e, 0xb3, 0xb8, 0x29, 0x30, 0x2f, 0x90, 0x7c, 0x21, 0x10, 0x68, 0x6f, + 0x9e, 0x05, 0xe9, 0x4a, 0x33, 0x45, 0xf4, 0x3b, 0x05, 0x20, 0x94, 0x6e, 0x17, 0x2d, 0xe7, 0x85, + 0xda, 0x9d, 0xfb, 0x0e, 0x96, 0xbc, 0x61, 0x6d, 0x28, 0xe2, 0x9e, 0xf6, 0xea, 0x19, 0xd0, 0x23, + 0xe9, 0x8f, 0xba, 0x19, 0x1d, 0x92, 0x9b, 0xd1, 0x2f, 0x66, 0x0f, 0x58, 0x09, 0x6b, 0x05, 0xbf, + 0x57, 0xa0, 0x8d, 0x14, 0x47, 0xa3, 0xcb, 0xa2, 0xff, 0x34, 0x9b, 0x1c, 0x66, 0xae, 0x31, 0x97, + 0x85, 0xa3, 0xe8, 0xeb, 0x2a, 0xcc, 0x29, 0x2d, 0x59, 0x0a, 0xf7, 0x39, 0xe1, 0xfe, 0xc6, 0x2c, + 0x72, 0xbf, 0xcc, 0x49, 0x3e, 0xa9, 0x0e, 0xe5, 0x23, 0x4c, 0xac, 0x8d, 0x1f, 0x73, 0x58, 0x2d, + 0x75, 0xe5, 0x3c, 0xac, 0x7a, 0x82, 0x54, 0x0c, 0xe3, 0xe6, 0xea, 0x48, 0xdc, 0xd4, 0x7e, 0x91, + 0x86, 0xce, 0xa8, 0x31, 0xe8, 0x4f, 0x0a, 0xb4, 0x32, 0x81, 0x08, 0x4f, 0x07, 0x67, 0x69, 0x05, + 0xe4, 0x09, 0x16, 0xb7, 0xb8, 0xcf, 0xda, 0x3f, 0x0c, 0x40, 0x47, 0x44, 0x3e, 0xdd, 0xea, 0xe4, + 0x35, 0xaa, 0x14, 0x9a, 0x0e, 0xd7, 0x01, 0x50, 0x09, 0x31, 0xeb, 0x07, 0x2a, 0x68, 0x04, 0xe7, + 0xf2, 0xd8, 0xf1, 0xe9, 0x48, 0xd2, 0x72, 0x72, 0xba, 0x61, 0xe7, 0x0a, 0x9e, 0xe5, 0x8f, 0xe7, + 0xc3, 0x30, 0x76, 0xa5, 0x5a, 0x0f, 0xe0, 0x54, 0x84, 0x81, 0xf3, 0x85, 0x3c, 0x43, 0x86, 0xe9, + 0xd7, 0x85, 0xea, 0x44, 0x10, 0x23, 0x23, 0x85, 0xdb, 0xea, 0x18, 0xc4, 0xc8, 0x83, 0x49, 0x20, + 0x6e, 0x28, 0x0d, 0x38, 0x8e, 0xcc, 0x45, 0x7e, 0xa0, 0xc2, 0xa2, 0x23, 0x14, 0x12, 0xba, 0x4f, + 0x6e, 0xd7, 0x3b, 0x1a, 0x55, 0x37, 0x69, 0x26, 0xf9, 0xe9, 0x18, 0xda, 0xa7, 0x40, 0x7b, 0xf8, + 0x08, 0x9f, 0x6b, 0x97, 0x04, 0xda, 0xe1, 0x8e, 0x72, 0xdc, 0xa5, 0x72, 0x6d, 0xe0, 0x9e, 0x84, + 0x4a, 0x42, 0xbc, 0x7d, 0x4e, 0x85, 0x5e, 0xe2, 0xe5, 0x46, 0x75, 0x13, 0x93, 0xac, 0x67, 0xb9, + 0x7e, 0xc1, 0x0b, 0xa3, 0xec, 0xad, 0x0d, 0xc8, 0xf0, 0xa0, 0x0c, 0x0e, 0x43, 0xaf, 0x27, 0x10, + 0x6f, 0x2c, 0x49, 0xcb, 0x19, 0x48, 0x36, 0x3c, 0x5a, 0x19, 0x1d, 0x1e, 0x3d, 0xd6, 0x0a, 0x73, + 0x13, 0xff, 0x0e, 0xbd, 0xa2, 0x42, 0x8f, 0xa4, 0x11, 0x03, 0xa6, 0x7d, 0x8d, 0x42, 0xa8, 0x50, + 0x08, 0xb2, 0x94, 0x8d, 0xbd, 0xba, 0xe3, 0x25, 0xa3, 0x1d, 0x68, 0x82, 0xfe, 0xa4, 0x8c, 0x68, + 0x01, 0xb4, 0x78, 0x86, 0x93, 0xc3, 0xf1, 0x29, 0x23, 0x93, 0xa1, 0x97, 0xe5, 0xf0, 0xf1, 0x64, + 0xa3, 0x18, 0x8e, 0xa6, 0x18, 0x12, 0x22, 0xfc, 0x1a, 0xb9, 0x85, 0x44, 0xd0, 0x17, 0xb0, 0xf7, + 0x43, 0x8b, 0x6d, 0x8c, 0x62, 0x9b, 0xcf, 0x37, 0x58, 0x42, 0xfb, 0x4d, 0x0b, 0x0c, 0x24, 0xcf, + 0x76, 0xd0, 0x37, 0x55, 0xe8, 0x95, 0x55, 0xa2, 0xe5, 0xfc, 0xd7, 0xac, 0x9f, 0xec, 0x95, 0x89, + 0xf9, 0xa9, 0x21, 0x69, 0x0a, 0xa8, 0xdd, 0xd5, 0x04, 0x73, 0x13, 0xb3, 0xc6, 0x66, 0x24, 0x5d, + 0xf1, 0x19, 0xc9, 0x6d, 0x72, 0x13, 0xb8, 0x42, 0xad, 0x4f, 0x3c, 0x13, 0xea, 0xf2, 0xe6, 0x8a, + 0x63, 0xc3, 0x2e, 0x8e, 0xde, 0x00, 0xb4, 0xf2, 0x0d, 0xbd, 0x6c, 0x73, 0x33, 0x4f, 0x05, 0x35, + 0x9c, 0x71, 0x7d, 0xab, 0x59, 0x0d, 0xa7, 0x09, 0xed, 0x15, 0x1f, 0x16, 0x4e, 0xbb, 0x3b, 0x02, + 0x1d, 0x56, 0xa0, 0x5d, 0x10, 0x8b, 0xe1, 0xf9, 0xa2, 0x97, 0x6a, 0x7c, 0xcf, 0xc7, 0x60, 0xe8, + 0x11, 0xdf, 0xe1, 0x13, 0xa6, 0xb5, 0x1f, 0x7a, 0xd0, 0x1d, 0xd7, 0xa2, 0x3f, 0x28, 0x90, 0x12, + 0x22, 0xd1, 0xc6, 0x5f, 0x9b, 0x5d, 0x08, 0x84, 0x49, 0xbe, 0x86, 0x20, 0x92, 0xda, 0x13, 0x2e, + 0x74, 0xc5, 0x74, 0x68, 0x49, 0x94, 0xf5, 0x8e, 0x11, 0x0a, 0x25, 0xf2, 0xfb, 0x23, 0x99, 0xef, + 0x7c, 0x6b, 0x36, 0xc3, 0x95, 0x30, 0xba, 0xbd, 0x5a, 0x2d, 0x63, 0x40, 0x7f, 0x3b, 0xbb, 0x21, + 0x48, 0xe4, 0x44, 0xf7, 0x4e, 0xc7, 0x89, 0xfe, 0x7e, 0x56, 0x03, 0x32, 0x63, 0x96, 0x74, 0x5d, + 0x2c, 0xa4, 0x2f, 0x28, 0x6b, 0x5d, 0x91, 0x66, 0x35, 0x00, 0xad, 0x79, 0xec, 0x7b, 0x56, 0x56, + 0xc4, 0x76, 0x96, 0xd2, 0xae, 0xcf, 0x4a, 0xf4, 0xe7, 0xd7, 0x54, 0x99, 0xfe, 0x7c, 0xbf, 0x6e, + 0x6a, 0x5f, 0x22, 0x21, 0xfa, 0xf6, 0x65, 0x33, 0x26, 0x44, 0x77, 0xc9, 0xc3, 0x8f, 0xff, 0xad, + 0x4b, 0xe8, 0x12, 0x82, 0xda, 0xfd, 0x2a, 0x74, 0x18, 0x66, 0xde, 0x72, 0xf4, 0x9c, 0x57, 0x28, + 0xba, 0x62, 0x1f, 0xe0, 0x35, 0x6a, 0x5d, 0xe2, 0x13, 0x41, 0x82, 0x1f, 0x47, 0xa6, 0x92, 0xcf, + 0x06, 0x02, 0x74, 0x87, 0x0a, 0x6d, 0xd4, 0x52, 0xcb, 0x14, 0x47, 0x15, 0xae, 0xa8, 0x4f, 0x98, + 0x38, 0x0a, 0xe2, 0xd4, 0xb8, 0xe5, 0x6c, 0x1d, 0x36, 0xd1, 0xf3, 0x6a, 0xc5, 0x85, 0x6e, 0xde, + 0x5b, 0xde, 0x50, 0x9f, 0x68, 0x25, 0x83, 0xc2, 0xc0, 0x4b, 0x5e, 0xfc, 0x7f, 0x4e, 0xad, 0xb4, + 0xfa, 0xcf, 0xbb, 0xd9, 0xaf, 0xd7, 0x31, 0x92, 0x32, 0x26, 0xfc, 0xa0, 0x75, 0xd2, 0x86, 0x88, + 0xa7, 0x55, 0x40, 0x79, 0x63, 0x4a, 0xa7, 0x0e, 0x8c, 0x1a, 0x8e, 0xb9, 0xcd, 0x32, 0xfd, 0x71, + 0x71, 0x2a, 0xe3, 0xfa, 0xfa, 0x04, 0xb1, 0x1c, 0x10, 0x3e, 0x8a, 0xc9, 0x1b, 0x53, 0x9b, 0x2c, + 0x67, 0xeb, 0x7a, 0x21, 0x46, 0xbf, 0x56, 0x61, 0x61, 0x90, 0xdb, 0xc3, 0x04, 0x7b, 0x93, 0xc6, + 0xa8, 0x8d, 0x65, 0x24, 0xf9, 0x91, 0xa6, 0x5d, 0xf5, 0x8b, 0x64, 0x45, 0x6c, 0x18, 0xa8, 0x5a, + 0xde, 0x98, 0xca, 0x84, 0x59, 0xe2, 0xf0, 0x3e, 0xab, 0x42, 0x7f, 0xd1, 0x61, 0x7f, 0x80, 0xcd, + 0x08, 0xaa, 0xfc, 0xac, 0xd4, 0xd7, 0xea, 0x13, 0xd5, 0x24, 0x48, 0x78, 0x1b, 0x2f, 0xa9, 0x4a, + 0x28, 0xf2, 0x6e, 0x27, 0x61, 0x27, 0xa6, 0x38, 0x9d, 0x54, 0xbf, 0xdd, 0xce, 0xd0, 0x74, 0xdd, + 0xce, 0x50, 0xa5, 0x6e, 0x67, 0xa8, 0xbc, 0xdb, 0xb9, 0xb7, 0xde, 0xbb, 0x9d, 0xa1, 0x69, 0xba, + 0x9d, 0x21, 0xb9, 0xdb, 0x79, 0x4a, 0x85, 0x39, 0x81, 0xd1, 0x78, 0xcc, 0x28, 0xda, 0xbe, 0xce, + 0xa7, 0x77, 0xfc, 0xf8, 0xf1, 0x57, 0xeb, 0x13, 0xc3, 0x32, 0x3c, 0xf8, 0xd2, 0x97, 0x8f, 0x37, + 0x32, 0xf1, 0x25, 0x54, 0x8a, 0x7e, 0xa8, 0xc2, 0xdc, 0x52, 0xb3, 0xcf, 0x16, 0x1c, 0xe2, 0x7b, + 0x86, 0xe5, 0xf8, 0x44, 0x9c, 0xcd, 0xaa, 0xd3, 0x3a, 0x98, 0x88, 0x09, 0x6f, 0xcc, 0xa1, 0x6e, + 0x43, 0x49, 0x85, 0xbe, 0xa7, 0x42, 0xb7, 0x61, 0x4e, 0x18, 0x59, 0xec, 0x64, 0xb7, 0xeb, 0xc4, + 0x32, 0x89, 0x38, 0xdc, 0x77, 0x5d, 0xbd, 0xce, 0xed, 0xa2, 0x60, 0xf0, 0x33, 0xf5, 0xa1, 0x70, + 0xc4, 0x32, 0xd9, 0x78, 0xd1, 0x36, 0x1c, 0x5d, 0xc2, 0xed, 0x9e, 0xba, 0x1e, 0x2f, 0x96, 0x03, + 0xc2, 0xc7, 0x8b, 0xb6, 0xe1, 0xac, 0x8b, 0xc2, 0x37, 0x83, 0x4d, 0x2e, 0x87, 0x54, 0xe8, 0x95, + 0xe7, 0xd8, 0xe8, 0x7e, 0x99, 0x9c, 0xb9, 0xa1, 0x41, 0x3e, 0x54, 0xd8, 0xd8, 0xb2, 0x2c, 0x86, + 0xf0, 0xa2, 0x38, 0x75, 0xb3, 0x92, 0x6e, 0xf8, 0x8e, 0x30, 0x16, 0xda, 0xbb, 0x2a, 0x74, 0x46, + 0xe7, 0xea, 0xe8, 0x5e, 0x19, 0xea, 0xeb, 0x1b, 0x04, 0x46, 0x02, 0xcc, 0xe7, 0xc8, 0xab, 0xcb, + 0x76, 0x21, 0x6b, 0xd8, 0x62, 0x75, 0x99, 0x26, 0xd0, 0x00, 0xb4, 0x7a, 0x38, 0x5f, 0xf0, 0xb1, + 0xe0, 0x6d, 0x59, 0x4a, 0xfb, 0x50, 0x85, 0x05, 0xd3, 0xcc, 0xf8, 0xd1, 0xa3, 0x72, 0x11, 0xec, + 0x6e, 0xb0, 0x22, 0x12, 0x46, 0xc7, 0x71, 0x76, 0xea, 0x0f, 0x2a, 0x68, 0x95, 0x59, 0x02, 0xf4, + 0x88, 0x0c, 0xfe, 0xed, 0x0d, 0x22, 0xc5, 0xfb, 0xb8, 0xb0, 0xff, 0x6f, 0x15, 0xe6, 0x55, 0x20, + 0x17, 0xd0, 0x77, 0x65, 0xe0, 0x77, 0x35, 0xc8, 0x97, 0x08, 0x3e, 0x33, 0xd9, 0xc3, 0x58, 0xe2, + 0x07, 0x58, 0x8f, 0x5a, 0x12, 0x68, 0x3b, 0x9a, 0x60, 0xc9, 0x91, 0xc9, 0x08, 0xf4, 0x7d, 0xb9, + 0x10, 0xee, 0x69, 0xf0, 0x36, 0xc9, 0x50, 0x1d, 0x67, 0x79, 0xec, 0x6f, 0x85, 0xf9, 0x15, 0x69, + 0x0c, 0xf4, 0x63, 0x15, 0xba, 0x09, 0xf6, 0x8b, 0xae, 0xee, 0x7a, 0x56, 0xc1, 0x8b, 0x1c, 0xb7, + 0xba, 0xa7, 0xc1, 0xf8, 0x48, 0xc5, 0x10, 0x83, 0x89, 0x2d, 0xff, 0x75, 0x51, 0xe1, 0xa5, 0x5c, + 0xa6, 0x3d, 0xdf, 0x04, 0x7d, 0x09, 0xd9, 0xd0, 0x69, 0x90, 0x0a, 0xe1, 0x8d, 0x6d, 0x48, 0x0a, + 0xc5, 0xe8, 0x39, 0xb9, 0x3d, 0xec, 0x6b, 0xe0, 0x7f, 0x44, 0xfc, 0x13, 0x9a, 0xc6, 0xc5, 0xb1, + 0xa6, 0xa1, 0xc9, 0xc0, 0x47, 0x10, 0x8f, 0x35, 0x9b, 0x55, 0x72, 0xb3, 0xe1, 0x43, 0xa7, 0xa1, + 0xc6, 0xd0, 0xe9, 0x98, 0x99, 0xbd, 0xe3, 0x1f, 0x3a, 0x0d, 0x35, 0x86, 0x4e, 0xc7, 0x48, 0x06, + 0x1e, 0x07, 0xf6, 0xef, 0xa8, 0x30, 0x90, 0xcc, 0x90, 0xa1, 0xef, 0xc8, 0xb8, 0xdf, 0xd2, 0x20, + 0x10, 0x4b, 0xf0, 0x24, 0x60, 0x7e, 0x7a, 0x0c, 0xf3, 0xd2, 0xf6, 0x9a, 0x95, 0xb1, 0xed, 0x35, + 0xbb, 0x7b, 0x41, 0xab, 0xcc, 0xa9, 0xa1, 0xd7, 0x55, 0xe8, 0x4f, 0x52, 0x8b, 0x9e, 0xfa, 0xdb, + 0x0d, 0x16, 0x32, 0x8e, 0x58, 0xa2, 0x8a, 0x75, 0xd8, 0x7d, 0x09, 0xfc, 0xa4, 0xb6, 0xbb, 0x0b, + 0xe6, 0x57, 0x7c, 0x04, 0x2d, 0x86, 0x54, 0xbe, 0x60, 0x62, 0x5b, 0x6c, 0x98, 0x0a, 0x3b, 0xef, + 0x36, 0x2a, 0x1e, 0x36, 0xd1, 0x4f, 0xe4, 0x66, 0xb1, 0xbf, 0x51, 0x22, 0x33, 0x2d, 0x91, 0x84, + 0x6d, 0x40, 0xaf, 0xab, 0xd0, 0x11, 0x25, 0xdb, 0xf9, 0x8e, 0x8d, 0xef, 0x37, 0x40, 0x9d, 0x31, + 0xa8, 0x65, 0xbc, 0x7c, 0x14, 0x50, 0xed, 0xac, 0x58, 0x54, 0x9a, 0x2f, 0xd7, 0xef, 0xb0, 0x62, + 0x6b, 0x57, 0xb6, 0x41, 0x6f, 0x59, 0x38, 0x3a, 0xa4, 0x02, 0x94, 0x07, 0xa1, 0x17, 0x1b, 0xa5, + 0x73, 0xcc, 0xa5, 0x33, 0x28, 0x47, 0xa9, 0x08, 0xbe, 0xda, 0x47, 0x4d, 0xd0, 0x23, 0x87, 0xa4, + 0x4f, 0x43, 0x57, 0x44, 0x24, 0xc7, 0xa5, 0xce, 0x92, 0x6e, 0xd8, 0x44, 0x87, 0xe5, 0xe0, 0xf4, + 0xcb, 0x46, 0x49, 0x7d, 0x6c, 0x25, 0x95, 0xd0, 0xe5, 0x7f, 0x3e, 0xd6, 0xb8, 0x3e, 0x95, 0x58, + 0x52, 0x52, 0x11, 0x4d, 0x3f, 0x13, 0x79, 0xab, 0x05, 0xfa, 0x12, 0xd6, 0x3c, 0xd0, 0xc3, 0x6a, + 0x30, 0x84, 0x9b, 0x08, 0x24, 0xa2, 0x68, 0x77, 0x36, 0x56, 0xd3, 0x38, 0x3a, 0x83, 0x1c, 0x19, + 0xbe, 0x2d, 0xd0, 0x30, 0x27, 0x46, 0x2c, 0x53, 0xdb, 0xdd, 0x04, 0x9d, 0x51, 0x05, 0x7a, 0x52, + 0x6e, 0x1c, 0x7b, 0x1a, 0x08, 0x26, 0x21, 0x98, 0x50, 0xcf, 0x2f, 0x95, 0xd7, 0x25, 0xd8, 0xe9, + 0x1f, 0xbe, 0x2e, 0x41, 0x13, 0xa5, 0xd3, 0xa2, 0xab, 0xa2, 0x97, 0x10, 0x0d, 0x40, 0xeb, 0xb6, + 0xc0, 0x2c, 0x9f, 0xdf, 0x5a, 0xc4, 0x53, 0xda, 0xb7, 0x5a, 0x61, 0x5e, 0x85, 0x05, 0x3e, 0xf4, + 0x8c, 0x0a, 0x1d, 0x5c, 0x17, 0xad, 0xf0, 0x77, 0x36, 0x96, 0x41, 0xa3, 0x45, 0x16, 0x41, 0x88, + 0x9f, 0x3b, 0x62, 0xeb, 0xa2, 0x41, 0xdd, 0x7f, 0xbe, 0x09, 0x7a, 0x65, 0x3d, 0x3a, 0x20, 0xd7, + 0xff, 0xfb, 0x1b, 0x80, 0x4e, 0x07, 0x68, 0x42, 0x3b, 0xb8, 0xfc, 0xe3, 0x6e, 0x07, 0x68, 0x11, + 0x74, 0x84, 0x66, 0x5b, 0x26, 0xbf, 0x99, 0x0b, 0x84, 0x68, 0xd8, 0xd4, 0xae, 0x6a, 0xad, 0x78, + 0x6c, 0xf4, 0xb1, 0x69, 0x8e, 0x8d, 0xce, 0xee, 0xbd, 0x16, 0xc7, 0x77, 0x90, 0xf4, 0xe1, 0x63, + 0x39, 0x48, 0xfa, 0xa0, 0xdc, 0x7a, 0x6e, 0x6a, 0x20, 0x7c, 0xf2, 0x8e, 0x96, 0x5e, 0x77, 0x3a, + 0x2c, 0x3a, 0xc2, 0xcd, 0xd3, 0xe8, 0x90, 0x02, 0x29, 0xd7, 0xc3, 0x63, 0xd6, 0x14, 0x0e, 0xcf, + 0x96, 0xfe, 0xb4, 0xe6, 0x2f, 0xd4, 0x1e, 0x14, 0x2e, 0x85, 0x1f, 0x0d, 0x64, 0x49, 0xed, 0x83, + 0xd3, 0xa0, 0x2b, 0xa6, 0x43, 0xef, 0x2b, 0xd0, 0xca, 0x24, 0x22, 0x0a, 0xbc, 0x3a, 0xcb, 0xdc, + 0xe7, 0x29, 0x7e, 0x1c, 0x8b, 0x25, 0xb4, 0x43, 0x8b, 0xa0, 0x23, 0x22, 0x47, 0x0b, 0x43, 0x14, + 0x62, 0x07, 0xb2, 0xb8, 0x10, 0xfd, 0x8f, 0x7c, 0x9c, 0xf4, 0xcd, 0x59, 0x0c, 0x52, 0x02, 0xe3, + 0x72, 0x55, 0xf9, 0x69, 0xd2, 0x7f, 0x9f, 0xd5, 0x08, 0x24, 0x1e, 0x26, 0xdd, 0x33, 0xdd, 0x61, + 0xd2, 0x77, 0x67, 0x33, 0x1e, 0x33, 0x3e, 0x4b, 0x3a, 0x11, 0x8b, 0xe1, 0xf3, 0xa0, 0xad, 0xe8, + 0xea, 0x66, 0x61, 0x9b, 0x43, 0x9b, 0x55, 0x2a, 0xd3, 0x5a, 0x74, 0x37, 0x16, 0xb6, 0x39, 0xa8, + 0x0f, 0x5a, 0x88, 0x3e, 0x6a, 0xf9, 0x34, 0x8e, 0xa7, 0x32, 0xcd, 0x64, 0xbd, 0xe5, 0x07, 0xd1, + 0x9d, 0xb7, 0x41, 0x36, 0xa2, 0x11, 0x8d, 0xaf, 0xc4, 0x8a, 0xaf, 0x8e, 0xb1, 0xe2, 0xf7, 0x22, + 0xe9, 0xd0, 0xe9, 0x8e, 0xb2, 0x43, 0xa7, 0xef, 0xd5, 0x4b, 0x25, 0x4d, 0x3c, 0x73, 0x7a, 0x55, + 0xef, 0x8c, 0xcf, 0x9c, 0xde, 0x22, 0x8f, 0x54, 0x3e, 0xaa, 0x47, 0xe4, 0x12, 0x22, 0xdf, 0x0d, + 0x2a, 0x34, 0xf9, 0x46, 0x4e, 0x44, 0xbd, 0x3f, 0xd5, 0x25, 0x2c, 0xbe, 0x91, 0x63, 0xa0, 0x04, + 0x50, 0xa0, 0xbf, 0x55, 0xc3, 0xbe, 0x93, 0xee, 0x38, 0xe6, 0x01, 0xf0, 0x6a, 0xb5, 0x1e, 0xa1, + 0x89, 0x00, 0xc1, 0x0f, 0xe1, 0x32, 0xc9, 0x0c, 0xf7, 0x18, 0xbf, 0xac, 0x42, 0x4a, 0xa0, 0x8b, + 0xee, 0x96, 0x1b, 0xe1, 0xb5, 0x6a, 0x3d, 0xd7, 0xb6, 0x99, 0x7c, 0xed, 0xc0, 0x37, 0x72, 0x2b, + 0x57, 0xf0, 0xcd, 0xc4, 0x2c, 0xa1, 0xed, 0x68, 0x85, 0x5e, 0xb9, 0x54, 0x82, 0x69, 0x2f, 0x94, + 0x84, 0xa2, 0x7b, 0xb8, 0xb9, 0x51, 0x65, 0x23, 0x4f, 0x11, 0xcb, 0x64, 0xfd, 0x47, 0x7b, 0x58, + 0x85, 0xb5, 0x03, 0x4d, 0xd0, 0x23, 0xa9, 0xd1, 0x82, 0x18, 0x85, 0x11, 0x5e, 0x1f, 0xc6, 0x98, + 0x8c, 0x27, 0xe4, 0x3a, 0x7c, 0x77, 0x03, 0xe3, 0x04, 0x8c, 0x13, 0xea, 0xf6, 0x17, 0x8e, 0x86, + 0x27, 0x8a, 0x5e, 0x3e, 0x1c, 0xbf, 0x33, 0x92, 0xcd, 0x8c, 0x23, 0x77, 0x46, 0x5e, 0x51, 0x99, + 0x0c, 0xda, 0x3f, 0x0d, 0x19, 0x34, 0xab, 0x63, 0xcf, 0xf1, 0x71, 0x41, 0xdf, 0x3d, 0x16, 0x2e, + 0xe8, 0x01, 0xb9, 0x61, 0xdc, 0xd8, 0x00, 0xf8, 0xa4, 0x51, 0x41, 0xb7, 0x7c, 0x8a, 0x9f, 0xbb, + 0x2d, 0x67, 0x80, 0xfe, 0x35, 0x81, 0x01, 0x7a, 0xae, 0x56, 0x3f, 0x2c, 0x56, 0x91, 0xf8, 0xd9, + 0x59, 0x46, 0xfc, 0xfc, 0xae, 0x8c, 0xf8, 0xf9, 0xf9, 0xec, 0xf0, 0x3a, 0x91, 0xef, 0xd9, 0x79, + 0x74, 0x7c, 0xcf, 0xfb, 0x32, 0xdf, 0xf3, 0xeb, 0xd9, 0x87, 0x4d, 0xc2, 0x64, 0xe7, 0x8f, 0xe5, + 0x9f, 0x4d, 0x78, 0x7d, 0x36, 0x3a, 0x9e, 0xc8, 0xee, 0xec, 0x9a, 0x8e, 0xdd, 0xf9, 0xed, 0x2c, + 0x84, 0x61, 0xc6, 0xa4, 0xce, 0x97, 0x2a, 0x91, 0x3a, 0xab, 0x64, 0x52, 0x67, 0x8a, 0x92, 0x3a, + 0xab, 0x19, 0xa9, 0x33, 0xb5, 0xde, 0xf2, 0x4b, 0x4c, 0xcf, 0x50, 0x22, 0xd3, 0xb3, 0xb2, 0x02, + 0xd3, 0x73, 0x76, 0x8c, 0xe9, 0x79, 0x73, 0x8e, 0xc4, 0xf4, 0x5c, 0x5d, 0xc6, 0xf4, 0xbc, 0x3d, + 0xcb, 0xeb, 0x69, 0x22, 0xc1, 0xf3, 0x52, 0xcf, 0x8c, 0x09, 0x9e, 0x1d, 0xf2, 0xf0, 0xe3, 0x83, + 0x3a, 0x02, 0x2c, 0x21, 0xd4, 0x5d, 0x1b, 0xe7, 0x75, 0xde, 0xab, 0x27, 0x34, 0xe2, 0x74, 0xce, + 0x5d, 0xc9, 0x74, 0xce, 0x87, 0xf5, 0x84, 0xc8, 0x71, 0xb2, 0x38, 0x3f, 0x8a, 0xb2, 0x38, 0xb5, + 0x48, 0xa5, 0x7e, 0xfc, 0x75, 0xeb, 0x18, 0xc9, 0x9b, 0x0f, 0x5b, 0x12, 0xc8, 0x9b, 0x87, 0x12, + 0xc9, 0x9b, 0x1a, 0xb8, 0x9b, 0xe4, 0xc4, 0x55, 0xd0, 0xe9, 0x38, 0x9b, 0x27, 0x8e, 0x96, 0xb3, + 0xa9, 0xc5, 0x53, 0x1b, 0x27, 0x0f, 0xda, 0x93, 0x48, 0xd5, 0xbc, 0x53, 0xf9, 0xba, 0xf7, 0x07, + 0xa7, 0xa1, 0x6a, 0x3e, 0xaa, 0x9b, 0xc1, 0xe9, 0x4c, 0x19, 0x9a, 0x6f, 0x1d, 0x0b, 0x43, 0xb3, + 0x57, 0x6e, 0x06, 0x5f, 0x51, 0xeb, 0x1b, 0xd7, 0x93, 0x40, 0xcc, 0xfc, 0xac, 0x19, 0xfa, 0x4a, + 0xef, 0x2e, 0x55, 0xf7, 0xd7, 0x14, 0xe8, 0x8a, 0xc9, 0x45, 0x5d, 0xdf, 0x5f, 0x65, 0x75, 0x3d, + 0xc1, 0xf8, 0xb8, 0x8c, 0xd5, 0xd0, 0xce, 0x50, 0xb6, 0xc5, 0x9e, 0xd4, 0xfe, 0x59, 0x05, 0x54, + 0x9e, 0x69, 0xba, 0xba, 0xf9, 0x2b, 0x99, 0x90, 0x78, 0xa6, 0x26, 0x71, 0x38, 0x09, 0x35, 0x6a, + 0x79, 0xec, 0xff, 0x4e, 0x83, 0x4e, 0xe6, 0x46, 0xec, 0x83, 0x7f, 0x1d, 0x54, 0xc6, 0xbe, 0xf6, + 0xa7, 0x7d, 0xd0, 0x02, 0x1a, 0xbf, 0xf1, 0x9a, 0x65, 0xcd, 0x16, 0x8a, 0x8e, 0x8f, 0xc5, 0xdd, + 0xfb, 0xdf, 0x96, 0x91, 0xff, 0xc6, 0x49, 0x45, 0xbe, 0xb2, 0x65, 0x09, 0x58, 0x3e, 0xd0, 0x1c, + 0x73, 0xfe, 0x0c, 0xe8, 0xce, 0x16, 0x3c, 0xaf, 0xe8, 0xfa, 0xd8, 0xd4, 0x6d, 0xe2, 0x12, 0xee, + 0x7e, 0x57, 0x28, 0xdd, 0x44, 0x5c, 0x82, 0x96, 0x01, 0x0a, 0x0b, 0xb5, 0x30, 0x89, 0x3d, 0xbb, + 0x60, 0x98, 0x84, 0x63, 0x3d, 0x47, 0x68, 0x3e, 0x2f, 0x14, 0x68, 0x3d, 0x9c, 0x9a, 0x37, 0x9c, + 0xa2, 0x61, 0x87, 0xe7, 0x49, 0x4d, 0xaf, 0xe0, 0xea, 0x63, 0x5e, 0x21, 0xaf, 0x1b, 0x1e, 0x36, + 0x08, 0xdf, 0xa6, 0xa1, 0xb1, 0x5c, 0xfc, 0x9e, 0xb9, 0x8d, 0x5e, 0xc1, 0xbd, 0xd8, 0x2b, 0xe4, + 0xd7, 0x05, 0x39, 0xd0, 0x32, 0xe8, 0xc3, 0x53, 0x59, 0x8c, 0x4d, 0x3d, 0x6f, 0x4c, 0xe9, 0x04, + 0x5f, 0x1e, 0x94, 0x0f, 0xfb, 0xc6, 0x6c, 0x57, 0xa6, 0x97, 0xa9, 0x2e, 0x31, 0xa6, 0x46, 0xf0, + 0xe5, 0x9b, 0x8b, 0x79, 0x82, 0x96, 0x40, 0x17, 0xcf, 0xa3, 0x93, 0xad, 0x96, 0x4b, 0x38, 0x3d, + 0xd0, 0x41, 0xa8, 0x7e, 0x24, 0x10, 0xa1, 0xd3, 0xa1, 0xbb, 0xb0, 0xcd, 0x09, 0xdc, 0xd4, 0xdd, + 0xa2, 0x97, 0xc3, 0x24, 0xbd, 0x86, 0x9d, 0xa4, 0x28, 0x6c, 0x73, 0x36, 0x11, 0xf7, 0x52, 0x2a, + 0x43, 0x67, 0x42, 0x4f, 0xd0, 0xad, 0x63, 0x47, 0xcf, 0x5b, 0x24, 0x6f, 0xf8, 0xd9, 0xf1, 0xf4, + 0x5a, 0x86, 0x89, 0x65, 0x6e, 0xc2, 0xce, 0x25, 0x5c, 0x18, 0xd4, 0x1b, 0xd7, 0xf0, 0x7c, 0x3d, + 0x3b, 0x6e, 0x38, 0xc1, 0x7f, 0x9d, 0xc3, 0x5e, 0x18, 0xc8, 0x36, 0x30, 0x11, 0x3a, 0x1f, 0x16, + 0x04, 0xc6, 0x07, 0x2e, 0x87, 0x48, 0x88, 0x3f, 0xc5, 0x24, 0x7d, 0x2e, 0x7d, 0x22, 0x9d, 0x37, + 0xa6, 0x02, 0x97, 0x39, 0x0a, 0x97, 0x84, 0x7a, 0xb4, 0x10, 0xc0, 0x28, 0xfa, 0xe3, 0xfa, 0x98, + 0x61, 0xd9, 0x24, 0x7d, 0x1e, 0x1f, 0x0a, 0x14, 0xfd, 0xf1, 0x8b, 0x03, 0x01, 0x9a, 0x0f, 0x29, + 0xe2, 0x8e, 0xe9, 0x5e, 0xd1, 0x21, 0xe9, 0xf3, 0xd9, 0xa1, 0x2b, 0xe2, 0x8e, 0x65, 0x8a, 0x0e, + 0xf5, 0x81, 0x3e, 0x19, 0x94, 0x31, 0x7f, 0xfc, 0x02, 0xe6, 0x43, 0x20, 0xde, 0xb2, 0xdd, 0xc5, + 0xec, 0x2f, 0x16, 0x02, 0x04, 0x68, 0x60, 0xcf, 0x2b, 0x78, 0x24, 0x7d, 0x21, 0x7b, 0x83, 0x4d, + 0xdc, 0x8b, 0xa8, 0x40, 0xfb, 0xea, 0x05, 0xd0, 0x13, 0x9e, 0xcb, 0xe6, 0x95, 0xfd, 0x46, 0x05, + 0xda, 0x43, 0x99, 0x08, 0xb9, 0xe4, 0x84, 0xd4, 0x77, 0xe9, 0xd5, 0xa5, 0x34, 0x1f, 0xcf, 0x86, + 0x69, 0xed, 0xe0, 0x79, 0xd0, 0x1d, 0xd7, 0xa2, 0xa5, 0xd0, 0x59, 0x92, 0xc8, 0x5f, 0x81, 0xe8, + 0x08, 0x55, 0xc3, 0x26, 0xda, 0x29, 0x37, 0xdf, 0xbf, 0xfa, 0x04, 0xbc, 0x49, 0xe0, 0x1f, 0x1e, + 0x57, 0xa0, 0x37, 0x6b, 0x79, 0xd9, 0xa2, 0xe5, 0x87, 0xcd, 0x5a, 0x90, 0x11, 0x5f, 0x51, 0x3e, + 0x09, 0x1b, 0x65, 0x6b, 0xf8, 0x9d, 0x87, 0x5c, 0xbc, 0x81, 0x4b, 0xd1, 0xa3, 0x0a, 0xf4, 0xb8, + 0x46, 0x76, 0x2b, 0x8e, 0xd8, 0xcd, 0x29, 0x83, 0xeb, 0x3e, 0x11, 0xbb, 0x25, 0x63, 0x98, 0xd9, + 0xdd, 0x4c, 0x1a, 0x5a, 0x7d, 0xab, 0x12, 0x74, 0x22, 0x41, 0x84, 0x15, 0xb7, 0xa1, 0x7f, 0xe9, + 0x93, 0xb0, 0x35, 0x12, 0xe4, 0x33, 0xdc, 0x9e, 0xf2, 0x0e, 0xab, 0xbc, 0x66, 0xc7, 0xaa, 0xb4, + 0xf6, 0x74, 0x33, 0xcc, 0x4d, 0x2c, 0x2c, 0xf4, 0x90, 0x5c, 0xd9, 0x6f, 0xae, 0x9e, 0x9a, 0x94, + 0xd0, 0x5d, 0xbd, 0xa7, 0x96, 0xdf, 0x10, 0x37, 0x11, 0x86, 0x5c, 0xd6, 0x57, 0x81, 0x61, 0x4e, + 0x88, 0x88, 0xbb, 0x10, 0xc0, 0x72, 0x2c, 0x9f, 0xc7, 0x3c, 0x3e, 0x7b, 0x0a, 0x24, 0x2c, 0xde, + 0x9d, 0x06, 0x9d, 0x1e, 0x9e, 0xc0, 0xd9, 0xa0, 0xb7, 0x33, 0xcc, 0x09, 0xde, 0x0d, 0x75, 0x08, + 0xd9, 0x3a, 0x73, 0x02, 0xad, 0x86, 0x79, 0x96, 0xa9, 0x8f, 0x59, 0xd8, 0x8e, 0x77, 0x02, 0x58, + 0xf4, 0x3d, 0xfd, 0x96, 0x79, 0x71, 0xa0, 0x8d, 0xf4, 0x05, 0x47, 0x0e, 0xf5, 0x67, 0x1f, 0x21, + 0xd4, 0x27, 0x04, 0xec, 0x35, 0x15, 0x02, 0x76, 0xa4, 0x4b, 0x58, 0x2b, 0x77, 0x09, 0x67, 0x42, + 0x8f, 0x6d, 0x38, 0xba, 0x69, 0x11, 0xa9, 0x5b, 0xea, 0xb2, 0x0d, 0x67, 0xa3, 0x45, 0x22, 0x30, + 0x05, 0x38, 0xf2, 0x11, 0xcf, 0xb9, 0xfc, 0x6f, 0xcc, 0x09, 0x3e, 0xde, 0x79, 0xe1, 0x14, 0xe8, + 0x4f, 0x6a, 0x33, 0xe8, 0x3e, 0x05, 0x9a, 0x6c, 0xe2, 0x9e, 0xe0, 0x71, 0xce, 0x31, 0xb4, 0x66, + 0x3a, 0xca, 0x64, 0x84, 0xa5, 0x4d, 0x5c, 0x6a, 0xa7, 0x65, 0x8d, 0x8b, 0x68, 0x59, 0x45, 0x76, + 0x5a, 0x16, 0xbf, 0xfc, 0x39, 0xb0, 0x8f, 0xd9, 0x49, 0xc2, 0x1b, 0xdc, 0xab, 0xc9, 0x4e, 0x12, + 0xda, 0x49, 0x98, 0x9d, 0x98, 0x84, 0xf7, 0xa3, 0x57, 0x91, 0x9d, 0x38, 0xb4, 0x13, 0x93, 0x71, + 0x74, 0xbf, 0x02, 0xcd, 0x2e, 0x71, 0x5c, 0xd1, 0xdd, 0xdc, 0x58, 0x3d, 0x86, 0x06, 0x66, 0x31, + 0x4b, 0xa9, 0x85, 0xd4, 0xd4, 0x6c, 0x60, 0xea, 0xed, 0x55, 0x67, 0x6a, 0xb6, 0x64, 0x6a, 0xf0, + 0x13, 0x7d, 0x4f, 0x81, 0xb6, 0xa2, 0xb3, 0xd5, 0x29, 0x6c, 0x73, 0xc4, 0x5d, 0xee, 0x3b, 0xab, + 0xc7, 0x5a, 0x6e, 0x19, 0x5f, 0xaa, 0xe5, 0x29, 0xed, 0x15, 0x15, 0x52, 0x22, 0x26, 0xa0, 0xfd, + 0x72, 0xa7, 0x77, 0x47, 0xf5, 0x05, 0xae, 0x84, 0xce, 0xef, 0x66, 0x45, 0xbe, 0x88, 0xca, 0xc3, + 0x59, 0x6c, 0x4d, 0x62, 0x71, 0x04, 0x3c, 0x4c, 0xa3, 0x53, 0xa0, 0xdd, 0xf5, 0x0a, 0x59, 0x4c, + 0x08, 0x36, 0x79, 0xaf, 0x56, 0x12, 0xa0, 0x34, 0xb4, 0x05, 0x13, 0x30, 0x17, 0x9b, 0xbc, 0x4b, + 0x14, 0xc9, 0x60, 0x32, 0x4d, 0xb0, 0xe3, 0xf3, 0xae, 0x8d, 0xfe, 0x46, 0xa7, 0x02, 0x78, 0xd8, + 0xf7, 0x0c, 0x87, 0xe4, 0x2d, 0x9f, 0xf7, 0x5c, 0x11, 0x09, 0x85, 0x56, 0x84, 0xb1, 0xaa, 0x86, + 0x56, 0x18, 0x59, 0x63, 0xd0, 0x92, 0x5a, 0x80, 0x96, 0xd4, 0x22, 0xb4, 0xb8, 0x16, 0xa0, 0xc5, + 0x35, 0x07, 0xed, 0xab, 0x2a, 0xb4, 0x87, 0xdd, 0x1b, 0x7a, 0x4c, 0xc6, 0xf6, 0xce, 0x2a, 0xec, + 0x84, 0x6b, 0x0b, 0xdc, 0x6c, 0x4d, 0x80, 0x9b, 0xad, 0x3d, 0x70, 0xdf, 0x50, 0xa1, 0x33, 0x3a, + 0x7e, 0x40, 0x4f, 0xca, 0xf8, 0xee, 0xa9, 0xce, 0x81, 0x4e, 0xed, 0x40, 0xfc, 0xa3, 0xb9, 0xd0, + 0x11, 0xe1, 0x34, 0xd0, 0x3d, 0x0a, 0xb4, 0xd0, 0xb4, 0xe0, 0x0e, 0xff, 0x46, 0xf9, 0x84, 0x69, + 0x96, 0x08, 0x97, 0x9e, 0x61, 0xa6, 0x69, 0x37, 0xf6, 0x03, 0x94, 0xa4, 0x68, 0x69, 0xd2, 0x12, + 0x41, 0xc8, 0x25, 0x46, 0x56, 0x0a, 0xd0, 0x3e, 0xb9, 0xfe, 0xec, 0xac, 0x22, 0xef, 0x12, 0x38, + 0xc6, 0x67, 0x14, 0xca, 0xa8, 0xd0, 0x4b, 0x2b, 0x2c, 0x1c, 0xd2, 0x8b, 0xbb, 0xab, 0xc9, 0xea, + 0x88, 0x7d, 0xfc, 0x22, 0xb2, 0x88, 0x24, 0x88, 0x88, 0x29, 0x63, 0xcc, 0xd2, 0x89, 0x31, 0x66, + 0x89, 0x69, 0xdf, 0xad, 0x55, 0x65, 0x3e, 0x37, 0x8e, 0x4f, 0x50, 0x8c, 0x31, 0x6b, 0xc4, 0x18, + 0xb3, 0x8e, 0x7e, 0x11, 0xea, 0x67, 0x00, 0xbd, 0x32, 0x14, 0xe8, 0x45, 0x05, 0xda, 0xc3, 0x4b, + 0x47, 0x44, 0x8b, 0x7a, 0xa0, 0x9a, 0x4b, 0x2f, 0x72, 0x4f, 0x10, 0x63, 0xf1, 0xc3, 0xb4, 0x76, + 0x38, 0x15, 0xfd, 0xc4, 0xcb, 0x8c, 0x3f, 0xe4, 0xfc, 0x92, 0xdc, 0xe6, 0x1e, 0xab, 0x21, 0xff, + 0x13, 0x02, 0xf9, 0x5b, 0xad, 0x33, 0xff, 0xda, 0xee, 0xa7, 0x22, 0x5f, 0xbe, 0x26, 0x8e, 0x6b, + 0xf0, 0xab, 0xbf, 0x3a, 0x85, 0x70, 0xc4, 0x71, 0x0d, 0xb4, 0x16, 0xe6, 0xd3, 0x6f, 0x3c, 0xe8, + 0xe1, 0x61, 0x0d, 0x41, 0xbf, 0x5a, 0x22, 0xfc, 0x0f, 0xd0, 0x0c, 0x17, 0x71, 0xfd, 0x06, 0xa6, + 0x1e, 0x36, 0xd1, 0x85, 0x70, 0x4a, 0xf8, 0xff, 0x49, 0x4f, 0xb3, 0x9e, 0x60, 0xbe, 0xc8, 0x53, + 0xfe, 0x07, 0xd1, 0xdb, 0x93, 0xcf, 0x96, 0x6e, 0x4f, 0x5e, 0x02, 0x5d, 0xa6, 0x45, 0xf4, 0x92, + 0x77, 0x6b, 0x18, 0x93, 0x6d, 0x5a, 0x64, 0x44, 0x38, 0xb8, 0x02, 0xe6, 0x86, 0x06, 0x88, 0xf7, + 0xd2, 0xe5, 0xdf, 0xb5, 0x34, 0x6f, 0x9f, 0x50, 0xf2, 0x37, 0x6e, 0xe1, 0x8b, 0x9a, 0x25, 0x90, + 0x69, 0xe6, 0x73, 0x68, 0xe6, 0xd2, 0xd7, 0x71, 0x68, 0xb6, 0xb3, 0xa0, 0x27, 0x72, 0x5f, 0x0f, + 0xad, 0x40, 0xe7, 0xd2, 0x7c, 0xa5, 0xa7, 0x47, 0x68, 0x90, 0x1c, 0x84, 0x3e, 0x0f, 0xe7, 0x0d, + 0xcb, 0xb1, 0x9c, 0x9c, 0x3e, 0x5e, 0xb0, 0x4d, 0xdd, 0xb7, 0xf2, 0x38, 0xbd, 0x9e, 0x2d, 0x7f, + 0x86, 0xaa, 0xff, 0x5f, 0xb0, 0xcd, 0x2d, 0x56, 0x5e, 0x6c, 0x7f, 0xa6, 0x79, 0xd8, 0xa2, 0x5d, + 0x6b, 0xd1, 0xa5, 0x8a, 0x33, 0xa0, 0x3b, 0x5f, 0xb4, 0x7d, 0x4b, 0xf7, 0x0b, 0x6e, 0xc1, 0x2e, + 0xe4, 0xb6, 0xd3, 0x75, 0xbb, 0x54, 0xa6, 0x8b, 0x4a, 0xb7, 0x70, 0x61, 0x80, 0x59, 0x98, 0xe1, + 0x02, 0xba, 0x35, 0x28, 0x4c, 0x07, 0x46, 0x7b, 0x98, 0xf8, 0x86, 0xe7, 0xeb, 0xa4, 0xe8, 0xba, + 0x05, 0xcf, 0xa7, 0xcb, 0x76, 0xa9, 0x4c, 0x37, 0x17, 0x8f, 0x30, 0x29, 0xfa, 0x7f, 0xd0, 0x1b, + 0xcd, 0x48, 0x6f, 0xe9, 0xfd, 0x0c, 0xcd, 0xd9, 0x13, 0xc9, 0x49, 0xbf, 0xef, 0x75, 0x06, 0x74, + 0x87, 0x59, 0x7d, 0xc3, 0x2f, 0x92, 0xf4, 0x3a, 0x66, 0x96, 0xc8, 0x48, 0x85, 0x41, 0x8c, 0x8a, + 0xd2, 0xdb, 0xe9, 0x0d, 0xd4, 0xb4, 0x0e, 0xa3, 0x44, 0x68, 0xa3, 0x7e, 0x68, 0x71, 0x6c, 0xd7, + 0x32, 0xd3, 0x1b, 0xd9, 0x8e, 0x26, 0x9a, 0x08, 0xca, 0x30, 0xf9, 0xeb, 0x9f, 0x17, 0xd1, 0x5c, + 0x89, 0x9f, 0xba, 0x5c, 0x51, 0xe9, 0xd3, 0x6d, 0x17, 0x87, 0xcf, 0x94, 0x7d, 0xa7, 0x6c, 0x10, + 0xfa, 0xa4, 0x4b, 0x98, 0x68, 0xa1, 0x7e, 0x96, 0x16, 0xea, 0x9c, 0xd8, 0xe7, 0x7d, 0x68, 0x43, + 0x7b, 0xa8, 0x19, 0xba, 0x62, 0xd1, 0x19, 0x3d, 0xa2, 0x80, 0x6a, 0x8c, 0x89, 0x38, 0xba, 0xa7, + 0x6a, 0xbb, 0x91, 0x41, 0x63, 0x8c, 0x45, 0x4f, 0xd5, 0x18, 0xd3, 0xde, 0x54, 0xa1, 0x8d, 0xa7, + 0xd1, 0x7c, 0xd6, 0x19, 0x3a, 0x46, 0x5e, 0x6c, 0x3f, 0x0d, 0x3a, 0x9c, 0xcd, 0x46, 0x9e, 0xc5, + 0x91, 0x50, 0xb7, 0x8a, 0xc7, 0x11, 0xa1, 0x7c, 0x56, 0x8e, 0xa1, 0x0f, 0x56, 0xbd, 0xef, 0x09, + 0x91, 0xf3, 0x2f, 0xe5, 0x4b, 0x49, 0x8f, 0x09, 0x8b, 0x0a, 0x97, 0x49, 0x9c, 0x33, 0x09, 0x8b, + 0x26, 0x1c, 0xd7, 0xd3, 0x93, 0x71, 0x09, 0xc2, 0x23, 0x9a, 0x37, 0xf8, 0xb9, 0xa2, 0x63, 0xb9, + 0xd8, 0xdb, 0xcc, 0xf2, 0x90, 0x11, 0xec, 0x90, 0x82, 0xc7, 0x1a, 0x54, 0xc7, 0x8a, 0x79, 0x15, + 0x30, 0xcd, 0x2c, 0x08, 0xfe, 0x98, 0x3f, 0x33, 0x2c, 0x54, 0xc3, 0xc4, 0x22, 0x17, 0x4d, 0xf9, + 0xeb, 0x2f, 0x7b, 0xfe, 0xe0, 0xa9, 0xca, 0xcb, 0x07, 0x4f, 0x55, 0xde, 0x38, 0x78, 0xaa, 0xf2, + 0xe7, 0x99, 0x9c, 0xe5, 0x0f, 0x4e, 0xb0, 0xb7, 0x04, 0x7f, 0xb7, 0xdc, 0xca, 0xe2, 0x51, 0xec, + 0xe5, 0x96, 0x8f, 0x63, 0xc3, 0xf6, 0xc7, 0x47, 0x0b, 0xfe, 0x32, 0xcb, 0xc9, 0x61, 0xe2, 0x2f, + 0x9b, 0xf0, 0xad, 0x65, 0x8e, 0xe1, 0x5b, 0x93, 0x78, 0xb9, 0xbb, 0x35, 0xb7, 0x7c, 0xc2, 0xb7, + 0x96, 0x1b, 0xa6, 0xe1, 0x06, 0x13, 0x8a, 0xe5, 0xfa, 0x44, 0xd1, 0x29, 0x90, 0xe5, 0x24, 0x3b, + 0x8e, 0xf3, 0xc6, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x81, 0xa3, 0x27, 0xd8, 0xb9, 0x00, + 0x00, +} + +func (m *NetworkInstancesIsis) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsis) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsis) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocols != nil { + { + size, err := m.Protocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocol != nil { + { + size, err := m.Protocol.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Isis != nil { + { + size, err := m.Isis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Levels != nil { + { + size, err := m.Levels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Level) > 0 { + for iNdEx := len(m.Level) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Level[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SystemLevelCounters != nil { + { + size, err := m.SystemLevelCounters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.LinkStateDatabase != nil { + { + size, err := m.LinkStateDatabase.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LevelNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LevelNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Lsp) > 0 { + for iNdEx := len(m.Lsp) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Lsp[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.UndefinedTlvs != nil { + { + size, err := m.UndefinedTlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Tlvs != nil { + { + size, err := m.Tlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LspId != nil { + i -= len(*m.LspId) + copy(dAtA[i:], *m.LspId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.LspId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IsType != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.IsType)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + } + if m.LspInstallTime != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LspInstallTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.PduLength != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.PduLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.Checksum != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Checksum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.SequenceNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.SequenceNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.RemainingLifetime != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.RemainingLifetime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.PduType != nil { + i -= len(*m.PduType) + copy(dAtA[i:], *m.PduType) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.PduType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.IdLength != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.IdLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Version2 != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Version2)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Version != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Version)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MaximumAreaAddresses != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.MaximumAreaAddresses)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LspId != nil { + i -= len(*m.LspId) + copy(dAtA[i:], *m.LspId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.LspId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Tlv) > 0 { + for iNdEx := len(m.Tlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv4Srlgs != nil { + { + size, err := m.Ipv4Srlgs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + if m.RouterCapabilities != nil { + { + size, err := m.RouterCapabilities.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + if m.ExtendedIsReachability != nil { + { + size, err := m.ExtendedIsReachability.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.Ipv6Reachability != nil { + { + size, err := m.Ipv6Reachability.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.ExtendedIpv4Reachability != nil { + { + size, err := m.ExtendedIpv4Reachability.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.LspBufferSize != nil { + { + size, err := m.LspBufferSize.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.Ipv6InterfaceAddresses != nil { + { + size, err := m.Ipv6InterfaceAddresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Ipv4InterfaceAddresses != nil { + { + size, err := m.Ipv4InterfaceAddresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Ipv4TeRouterId != nil { + { + size, err := m.Ipv4TeRouterId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Hostname != nil { + { + size, err := m.Hostname.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Nlpid != nil { + { + size, err := m.Nlpid.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.AreaAddress != nil { + { + size, err := m.AreaAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Size_ != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Size_)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Nlpid) > 0 { + for iNdEx := len(m.Nlpid) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Nlpid[iNdEx]) + copy(dAtA[i:], m.Nlpid[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Nlpid[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Hname != nil { + i -= len(*m.Hname) + copy(dAtA[i:], *m.Hname) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Hname))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TeRouterId != nil { + i -= len(*m.TeRouterId) + copy(dAtA[i:], *m.TeRouterId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.TeRouterId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Ipv4Srlg) > 0 { + for iNdEx := len(m.Ipv4Srlg) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ipv4Srlg[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InstanceNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.InstanceNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + } + if len(m.SrlgValue) > 0 { + for iNdEx := len(m.SrlgValue) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(m.SrlgValue[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + } + if m.Ipv4NeighborAddress != nil { + i -= len(*m.Ipv4NeighborAddress) + copy(dAtA[i:], *m.Ipv4NeighborAddress) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Ipv4NeighborAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Ipv4InterfaceAddress != nil { + i -= len(*m.Ipv4InterfaceAddress) + copy(dAtA[i:], *m.Ipv4InterfaceAddress) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Ipv4InterfaceAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.PsnNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.PsnNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SystemId != nil { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.InstanceNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.InstanceNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Capability) > 0 { + for iNdEx := len(m.Capability) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Capability[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.UndefinedSubtlvs != nil { + { + size, err := m.UndefinedSubtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Subtlvs != nil { + { + size, err := m.Subtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InstanceNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.InstanceNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if m.RouterId != nil { + i -= len(*m.RouterId) + copy(dAtA[i:], *m.RouterId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.RouterId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.InstanceNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.InstanceNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subtlv) > 0 { + for iNdEx := len(m.Subtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SegmentRoutingCapability != nil { + { + size, err := m.SegmentRoutingCapability.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.SegmentRoutingAlgorithms != nil { + { + size, err := m.SegmentRoutingAlgorithms.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Algorithm) > 0 { + for iNdEx := len(m.Algorithm) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Algorithm[iNdEx]) + copy(dAtA[i:], m.Algorithm[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Algorithm[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SrgbDescriptors != nil { + { + size, err := m.SrgbDescriptors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SrgbDescriptor) > 0 { + for iNdEx := len(m.SrgbDescriptor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SrgbDescriptor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Range != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Range)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Label != nil { + i -= len(*m.Label) + copy(dAtA[i:], *m.Label) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Label))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Range != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Range)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UndefinedSubtlv) > 0 { + for iNdEx := len(m.UndefinedSubtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UndefinedSubtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Length != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Length)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.UndefinedSubtlvs != nil { + { + size, err := m.UndefinedSubtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Subtlvs != nil { + { + size, err := m.Subtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SystemId != nil { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Metric != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.SystemId != nil { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subtlv) > 0 { + for iNdEx := len(m.Subtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6NeighborAddress != nil { + { + size, err := m.Ipv6NeighborAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xa2 + } + if m.Ipv6InterfaceAddress != nil { + { + size, err := m.Ipv6InterfaceAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + if m.LanAdjacencySids != nil { + { + size, err := m.LanAdjacencySids.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + if m.AdjacencySids != nil { + { + size, err := m.AdjacencySids.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.AdminGroup != nil { + { + size, err := m.AdminGroup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.BandwidthConstraints != nil { + { + size, err := m.BandwidthConstraints.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.TeDefaultMetric != nil { + { + size, err := m.TeDefaultMetric.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.UnreservedBandwidth != nil { + { + size, err := m.UnreservedBandwidth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.MaxReservableLinkBandwidth != nil { + { + size, err := m.MaxReservableLinkBandwidth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.MaxLinkBandwidth != nil { + { + size, err := m.MaxLinkBandwidth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.LinkId != nil { + { + size, err := m.LinkId.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Ipv4NeighborAddress != nil { + { + size, err := m.Ipv4NeighborAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Ipv4InterfaceAddress != nil { + { + size, err := m.Ipv4InterfaceAddress.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AdminGroup) > 0 { + for iNdEx := len(m.AdminGroup) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(m.AdminGroup[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Remote != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Remote)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Local != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Local)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bandwidth != nil { + i -= len(*m.Bandwidth) + copy(dAtA[i:], *m.Bandwidth) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Bandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bandwidth != nil { + i -= len(*m.Bandwidth) + copy(dAtA[i:], *m.Bandwidth) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Bandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SetupPriority) > 0 { + for iNdEx := len(m.SetupPriority) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SetupPriority[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Priority != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bandwidth != nil { + i -= len(*m.Bandwidth) + copy(dAtA[i:], *m.Bandwidth) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Bandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Priority != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Address[iNdEx]) + copy(dAtA[i:], m.Address[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Address[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Metric != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.BandwidthConstraint) > 0 { + for iNdEx := len(m.BandwidthConstraint) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BandwidthConstraint[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Constraints != nil { + { + size, err := m.Constraints.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ModelId != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.ModelId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ModelId != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.ModelId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Constraint) > 0 { + for iNdEx := len(m.Constraint) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Constraint[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.ConstraintId != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.ConstraintId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bandwidth != nil { + i -= len(*m.Bandwidth) + copy(dAtA[i:], *m.Bandwidth) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Bandwidth))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ConstraintId != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.ConstraintId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AdjSid != nil { + { + size, err := m.AdjSid.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Weight != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Weight)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.Value != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LanAdjSid != nil { + { + size, err := m.LanAdjSid.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NeighborId != nil { + i -= len(*m.NeighborId) + copy(dAtA[i:], *m.NeighborId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.NeighborId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Weight != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Weight)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.Value != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UndefinedSubtlv) > 0 { + for iNdEx := len(m.UndefinedSubtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UndefinedSubtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Length != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Length)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefixes != nil { + { + size, err := m.Prefixes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Prefix) > 0 { + for iNdEx := len(m.Prefix) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prefix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.UndefinedSubtlvs != nil { + { + size, err := m.UndefinedSubtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Subtlvs != nil { + { + size, err := m.Subtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Metric != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SBit != nil { + i-- + if *m.SBit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.UpDown != nil { + i-- + if *m.UpDown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subtlv) > 0 { + for iNdEx := len(m.Subtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixSids != nil { + { + size, err := m.PrefixSids.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Tag != nil { + { + size, err := m.Tag.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Tag32) > 0 { + for iNdEx := len(m.Tag32) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(m.Tag32[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PrefixSid) > 0 { + for iNdEx := len(m.PrefixSid) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PrefixSid[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Value != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if m.Algorithm != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Algorithm)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Value != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UndefinedSubtlv) > 0 { + for iNdEx := len(m.UndefinedSubtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UndefinedSubtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Length != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Length)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefixes != nil { + { + size, err := m.Prefixes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Prefix) > 0 { + for iNdEx := len(m.Prefix) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Prefix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.UndefinedSubtlvs != nil { + { + size, err := m.UndefinedSubtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Subtlvs != nil { + { + size, err := m.Subtlvs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Metric != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.SBit != nil { + i-- + if *m.SBit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.XBit != nil { + i-- + if *m.XBit { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.UpDown != nil { + i-- + if *m.UpDown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subtlv) > 0 { + for iNdEx := len(m.Subtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixSids != nil { + { + size, err := m.PrefixSids.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Tag != nil { + { + size, err := m.Tag.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Tag32) > 0 { + for iNdEx := len(m.Tag32) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(m.Tag32[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PrefixSid) > 0 { + for iNdEx := len(m.PrefixSid) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PrefixSid[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Value != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Flags) > 0 { + for iNdEx := len(m.Flags) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Flags[iNdEx]) + copy(dAtA[i:], m.Flags[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Flags[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if m.Algorithm != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Algorithm)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Value != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UndefinedSubtlv) > 0 { + for iNdEx := len(m.UndefinedSubtlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UndefinedSubtlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Length != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Length)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.UndefinedTlv) > 0 { + for iNdEx := len(m.UndefinedTlv) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UndefinedTlv[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Length != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Length)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Type != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Type)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LevelNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LevelNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LspErrors != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LspErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.AuthTypeFails != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.AuthTypeFails)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.SpfRuns != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.SpfRuns)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.AuthFails != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.AuthFails)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.MaxAreaAddressMismatches != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.MaxAreaAddressMismatches)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.PartChanges != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.PartChanges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.IdLenMismatch != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.IdLenMismatch)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.OwnLspPurges != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.OwnLspPurges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.SeqNumSkips != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.SeqNumSkips)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ExceedMaxSeqNums != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.ExceedMaxSeqNums)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ManualAddressDropFromAreas != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.ManualAddressDropFromAreas)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.DatabaseOverloads != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.DatabaseOverloads)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.CorruptedLsps != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.CorruptedLsps)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Levels != nil { + { + size, err := m.Levels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.PacketCounters != nil { + { + size, err := m.PacketCounters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.CircuitCounters != nil { + { + size, err := m.CircuitCounters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AdjNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.AdjNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.LanDisChanges != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LanDisChanges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.AuthFails != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.AuthFails)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.AuthTypeFails != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.AuthTypeFails)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.MaxAreaAddressMismatches != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.MaxAreaAddressMismatches)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.IdFieldLenMismatches != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.IdFieldLenMismatches)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RejectedAdj != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.RejectedAdj)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InitFails != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.InitFails)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AdjChanges != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.AdjChanges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Unknown != nil { + { + size, err := m.Unknown.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Esh != nil { + { + size, err := m.Esh.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Ish != nil { + { + size, err := m.Ish.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Csnp != nil { + { + size, err := m.Csnp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Psnp != nil { + { + size, err := m.Psnp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Iih != nil { + { + size, err := m.Iih.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Lsp != nil { + { + size, err := m.Lsp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Retransmit != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Retransmit)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Sent != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Processed != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Processed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Dropped != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Dropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Received != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Level) > 0 { + for iNdEx := len(m.Level) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Level[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AfiSafi != nil { + { + size, err := m.AfiSafi.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Adjacencies != nil { + { + size, err := m.Adjacencies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LevelNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LevelNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LevelNumber != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LevelNumber)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Adjacency) > 0 { + for iNdEx := len(m.Adjacency) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Adjacency[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SystemId != nil { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LanAdjacencyState != nil { + i -= len(*m.LanAdjacencyState) + copy(dAtA[i:], *m.LanAdjacencyState) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.LanAdjacencyState))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + if len(m.Ipv6NeighborAddress) > 0 { + for iNdEx := len(m.Ipv6NeighborAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ipv6NeighborAddress[iNdEx]) + copy(dAtA[i:], m.Ipv6NeighborAddress[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Ipv6NeighborAddress[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb2 + } + } + if len(m.Ipv4NeighborAddress) > 0 { + for iNdEx := len(m.Ipv4NeighborAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ipv4NeighborAddress[iNdEx]) + copy(dAtA[i:], m.Ipv4NeighborAddress[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Ipv4NeighborAddress[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xaa + } + } + if len(m.Nlpid) > 0 { + for iNdEx := len(m.Nlpid) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Nlpid[iNdEx]) + copy(dAtA[i:], m.Nlpid[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Nlpid[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.AreaAddress) > 0 { + for iNdEx := len(m.AreaAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AreaAddress[iNdEx]) + copy(dAtA[i:], m.AreaAddress[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.AreaAddress[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x9a + } + } + if m.RemainingHoldTime != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.RemainingHoldTime)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.RestartStatus != nil { + i-- + if *m.RestartStatus { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.RestartSuppress != nil { + i-- + if *m.RestartSuppress { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.RestartSupport != nil { + i-- + if *m.RestartSupport { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if len(m.Topology) > 0 { + for iNdEx := len(m.Topology) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Topology[iNdEx]) + copy(dAtA[i:], m.Topology[iNdEx]) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(m.Topology[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + } + if m.MultiTopology != nil { + i-- + if *m.MultiTopology { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.UpTime != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.UpTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.AdjacencyState != nil { + i -= len(*m.AdjacencyState) + copy(dAtA[i:], *m.AdjacencyState) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.AdjacencyState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.AdjacencyType != nil { + i -= len(*m.AdjacencyType) + copy(dAtA[i:], *m.AdjacencyType) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.AdjacencyType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.NeighborCircuitType != nil { + i -= len(*m.NeighborCircuitType) + copy(dAtA[i:], *m.NeighborCircuitType) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.NeighborCircuitType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.DisSystemId != nil { + i -= len(*m.DisSystemId) + copy(dAtA[i:], *m.DisSystemId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.DisSystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Priority != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NeighborExtendedCircuitId != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.NeighborExtendedCircuitId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.LocalExtendedCircuitId != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.LocalExtendedCircuitId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NeighborSnpa != nil { + i -= len(*m.NeighborSnpa) + copy(dAtA[i:], *m.NeighborSnpa) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.NeighborSnpa))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.SystemId != nil { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Af) > 0 { + for iNdEx := len(m.Af) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Af[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdIsisOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SafiName != nil { + i -= len(*m.SafiName) + copy(dAtA[i:], *m.SafiName) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.AfiName != nil { + i -= len(*m.AfiName) + copy(dAtA[i:], *m.AfiName) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.AfiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Metric != nil { + i = encodeVarintRpdIsisOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SafiName != nil { + i -= len(*m.SafiName) + copy(dAtA[i:], *m.SafiName) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.SafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.AfiName != nil { + i -= len(*m.AfiName) + copy(dAtA[i:], *m.AfiName) + i = encodeVarintRpdIsisOc(dAtA, i, uint64(len(*m.AfiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdIsisOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdIsisOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesIsis) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Protocols != nil { + l = m.Protocols.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = m.Protocol.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Isis != nil { + l = m.Isis.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Levels != nil { + l = m.Levels.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Level) > 0 { + for _, e := range m.Level { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LevelNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LevelNumber)) + } + if m.LinkStateDatabase != nil { + l = m.LinkStateDatabase.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.SystemLevelCounters != nil { + l = m.SystemLevelCounters.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Lsp) > 0 { + for _, e := range m.Lsp { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LspId != nil { + l = len(*m.LspId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Tlvs != nil { + l = m.Tlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UndefinedTlvs != nil { + l = m.UndefinedTlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LspId != nil { + l = len(*m.LspId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.MaximumAreaAddresses != nil { + n += 2 + sovRpdIsisOc(uint64(*m.MaximumAreaAddresses)) + } + if m.Version != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Version)) + } + if m.Version2 != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Version2)) + } + if m.IdLength != nil { + n += 2 + sovRpdIsisOc(uint64(*m.IdLength)) + } + if m.PduType != nil { + l = len(*m.PduType) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.RemainingLifetime != nil { + n += 2 + sovRpdIsisOc(uint64(*m.RemainingLifetime)) + } + if m.SequenceNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.SequenceNumber)) + } + if m.Checksum != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Checksum)) + } + if m.PduLength != nil { + n += 2 + sovRpdIsisOc(uint64(*m.PduLength)) + } + if m.LspInstallTime != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LspInstallTime)) + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.IsType != nil { + n += 2 + sovRpdIsisOc(uint64(*m.IsType)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tlv) > 0 { + for _, e := range m.Tlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.AreaAddress != nil { + l = m.AreaAddress.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Nlpid != nil { + l = m.Nlpid.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Hostname != nil { + l = m.Hostname.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv4TeRouterId != nil { + l = m.Ipv4TeRouterId.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv4InterfaceAddresses != nil { + l = m.Ipv4InterfaceAddresses.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv6InterfaceAddresses != nil { + l = m.Ipv6InterfaceAddresses.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.LspBufferSize != nil { + l = m.LspBufferSize.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.ExtendedIpv4Reachability != nil { + l = m.ExtendedIpv4Reachability.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv6Reachability != nil { + l = m.Ipv6Reachability.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.ExtendedIsReachability != nil { + l = m.ExtendedIsReachability.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.RouterCapabilities != nil { + l = m.RouterCapabilities.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv4Srlgs != nil { + l = m.Ipv4Srlgs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Size_ != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Size_)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Nlpid) > 0 { + for _, s := range m.Nlpid { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Hname != nil { + l = len(*m.Hname) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TeRouterId != nil { + l = len(*m.TeRouterId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Ipv4Srlg) > 0 { + for _, e := range m.Ipv4Srlg { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InstanceNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.InstanceNumber)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InstanceNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.InstanceNumber)) + } + if m.SystemId != nil { + l = len(*m.SystemId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.PsnNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.PsnNumber)) + } + if m.Ipv4InterfaceAddress != nil { + l = len(*m.Ipv4InterfaceAddress) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv4NeighborAddress != nil { + l = len(*m.Ipv4NeighborAddress) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if len(m.SrlgValue) > 0 { + for _, e := range m.SrlgValue { + n += 2 + sovRpdIsisOc(uint64(e)) + } + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Capability) > 0 { + for _, e := range m.Capability { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InstanceNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.InstanceNumber)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Subtlvs != nil { + l = m.Subtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UndefinedSubtlvs != nil { + l = m.UndefinedSubtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InstanceNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.InstanceNumber)) + } + if m.RouterId != nil { + l = len(*m.RouterId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subtlv) > 0 { + for _, e := range m.Subtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.SegmentRoutingAlgorithms != nil { + l = m.SegmentRoutingAlgorithms.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.SegmentRoutingCapability != nil { + l = m.SegmentRoutingCapability.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Algorithm) > 0 { + for _, s := range m.Algorithm { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.SrgbDescriptors != nil { + l = m.SrgbDescriptors.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SrgbDescriptor) > 0 { + for _, e := range m.SrgbDescriptor { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Range != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Range)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Range != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Range)) + } + if m.Label != nil { + l = len(*m.Label) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UndefinedSubtlv) > 0 { + for _, e := range m.UndefinedSubtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.Length != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Length)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemId != nil { + l = len(*m.SystemId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Subtlvs != nil { + l = m.Subtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UndefinedSubtlvs != nil { + l = m.UndefinedSubtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemId != nil { + l = len(*m.SystemId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Metric != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Metric)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subtlv) > 0 { + for _, e := range m.Subtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv4InterfaceAddress != nil { + l = m.Ipv4InterfaceAddress.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv4NeighborAddress != nil { + l = m.Ipv4NeighborAddress.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.LinkId != nil { + l = m.LinkId.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.MaxLinkBandwidth != nil { + l = m.MaxLinkBandwidth.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.MaxReservableLinkBandwidth != nil { + l = m.MaxReservableLinkBandwidth.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UnreservedBandwidth != nil { + l = m.UnreservedBandwidth.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.TeDefaultMetric != nil { + l = m.TeDefaultMetric.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.BandwidthConstraints != nil { + l = m.BandwidthConstraints.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.AdminGroup != nil { + l = m.AdminGroup.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.AdjacencySids != nil { + l = m.AdjacencySids.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.LanAdjacencySids != nil { + l = m.LanAdjacencySids.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv6InterfaceAddress != nil { + l = m.Ipv6InterfaceAddress.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ipv6NeighborAddress != nil { + l = m.Ipv6NeighborAddress.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AdminGroup) > 0 { + for _, e := range m.AdminGroup { + n += 2 + sovRpdIsisOc(uint64(e)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Local != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Local)) + } + if m.Remote != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Remote)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Bandwidth != nil { + l = len(*m.Bandwidth) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Bandwidth != nil { + l = len(*m.Bandwidth) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SetupPriority) > 0 { + for _, e := range m.SetupPriority { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Priority != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Priority)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Priority != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Priority)) + } + if m.Bandwidth != nil { + l = len(*m.Bandwidth) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, s := range m.Address { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Metric != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Metric)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.BandwidthConstraint) > 0 { + for _, e := range m.BandwidthConstraint { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ModelId != nil { + n += 2 + sovRpdIsisOc(uint64(*m.ModelId)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Constraints != nil { + l = m.Constraints.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ModelId != nil { + n += 2 + sovRpdIsisOc(uint64(*m.ModelId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Constraint) > 0 { + for _, e := range m.Constraint { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConstraintId != nil { + n += 2 + sovRpdIsisOc(uint64(*m.ConstraintId)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConstraintId != nil { + n += 2 + sovRpdIsisOc(uint64(*m.ConstraintId)) + } + if m.Bandwidth != nil { + l = len(*m.Bandwidth) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AdjSid != nil { + l = m.AdjSid.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Value)) + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.Weight != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Weight)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LanAdjSid != nil { + l = m.LanAdjSid.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Value)) + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.Weight != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Weight)) + } + if m.NeighborId != nil { + l = len(*m.NeighborId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UndefinedSubtlv) > 0 { + for _, e := range m.UndefinedSubtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.Length != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Length)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefixes != nil { + l = m.Prefixes.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Prefix) > 0 { + for _, e := range m.Prefix { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Subtlvs != nil { + l = m.Subtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UndefinedSubtlvs != nil { + l = m.UndefinedSubtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UpDown != nil { + n += 3 + } + if m.SBit != nil { + n += 3 + } + if m.Metric != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Metric)) + } + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subtlv) > 0 { + for _, e := range m.Subtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Tag != nil { + l = m.Tag.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.PrefixSids != nil { + l = m.PrefixSids.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tag32) > 0 { + for _, e := range m.Tag32 { + n += 2 + sovRpdIsisOc(uint64(e)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PrefixSid) > 0 { + for _, e := range m.PrefixSid { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Value)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Value)) + } + if m.Algorithm != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Algorithm)) + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UndefinedSubtlv) > 0 { + for _, e := range m.UndefinedSubtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.Length != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Length)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefixes != nil { + l = m.Prefixes.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Prefix) > 0 { + for _, e := range m.Prefix { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Subtlvs != nil { + l = m.Subtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UndefinedSubtlvs != nil { + l = m.UndefinedSubtlvs.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UpDown != nil { + n += 3 + } + if m.XBit != nil { + n += 3 + } + if m.SBit != nil { + n += 3 + } + if m.Metric != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Metric)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subtlv) > 0 { + for _, e := range m.Subtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Tag != nil { + l = m.Tag.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.PrefixSids != nil { + l = m.PrefixSids.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tag32) > 0 { + for _, e := range m.Tag32 { + n += 2 + sovRpdIsisOc(uint64(e)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PrefixSid) > 0 { + for _, e := range m.PrefixSid { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Value)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Value)) + } + if m.Algorithm != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Algorithm)) + } + if len(m.Flags) > 0 { + for _, s := range m.Flags { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UndefinedSubtlv) > 0 { + for _, e := range m.UndefinedSubtlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.Length != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Length)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.UndefinedTlv) > 0 { + for _, e := range m.UndefinedTlv { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Type)) + } + if m.Length != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Length)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LevelNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LevelNumber)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CorruptedLsps != nil { + n += 2 + sovRpdIsisOc(uint64(*m.CorruptedLsps)) + } + if m.DatabaseOverloads != nil { + n += 2 + sovRpdIsisOc(uint64(*m.DatabaseOverloads)) + } + if m.ManualAddressDropFromAreas != nil { + n += 2 + sovRpdIsisOc(uint64(*m.ManualAddressDropFromAreas)) + } + if m.ExceedMaxSeqNums != nil { + n += 2 + sovRpdIsisOc(uint64(*m.ExceedMaxSeqNums)) + } + if m.SeqNumSkips != nil { + n += 2 + sovRpdIsisOc(uint64(*m.SeqNumSkips)) + } + if m.OwnLspPurges != nil { + n += 2 + sovRpdIsisOc(uint64(*m.OwnLspPurges)) + } + if m.IdLenMismatch != nil { + n += 2 + sovRpdIsisOc(uint64(*m.IdLenMismatch)) + } + if m.PartChanges != nil { + n += 2 + sovRpdIsisOc(uint64(*m.PartChanges)) + } + if m.MaxAreaAddressMismatches != nil { + n += 2 + sovRpdIsisOc(uint64(*m.MaxAreaAddressMismatches)) + } + if m.AuthFails != nil { + n += 2 + sovRpdIsisOc(uint64(*m.AuthFails)) + } + if m.SpfRuns != nil { + n += 2 + sovRpdIsisOc(uint64(*m.SpfRuns)) + } + if m.AuthTypeFails != nil { + n += 2 + sovRpdIsisOc(uint64(*m.AuthTypeFails)) + } + if m.LspErrors != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LspErrors)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.CircuitCounters != nil { + l = m.CircuitCounters.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.PacketCounters != nil { + l = m.PacketCounters.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Levels != nil { + l = m.Levels.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AdjChanges != nil { + n += 2 + sovRpdIsisOc(uint64(*m.AdjChanges)) + } + if m.InitFails != nil { + n += 2 + sovRpdIsisOc(uint64(*m.InitFails)) + } + if m.RejectedAdj != nil { + n += 2 + sovRpdIsisOc(uint64(*m.RejectedAdj)) + } + if m.IdFieldLenMismatches != nil { + n += 2 + sovRpdIsisOc(uint64(*m.IdFieldLenMismatches)) + } + if m.MaxAreaAddressMismatches != nil { + n += 2 + sovRpdIsisOc(uint64(*m.MaxAreaAddressMismatches)) + } + if m.AuthTypeFails != nil { + n += 2 + sovRpdIsisOc(uint64(*m.AuthTypeFails)) + } + if m.AuthFails != nil { + n += 2 + sovRpdIsisOc(uint64(*m.AuthFails)) + } + if m.LanDisChanges != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LanDisChanges)) + } + if m.AdjNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.AdjNumber)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Lsp != nil { + l = m.Lsp.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Iih != nil { + l = m.Iih.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Psnp != nil { + l = m.Psnp.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Csnp != nil { + l = m.Csnp.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Ish != nil { + l = m.Ish.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Esh != nil { + l = m.Esh.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Unknown != nil { + l = m.Unknown.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Received != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Received)) + } + if m.Dropped != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Dropped)) + } + if m.Processed != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Processed)) + } + if m.Sent != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Sent)) + } + if m.Retransmit != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Retransmit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Level) > 0 { + for _, e := range m.Level { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LevelNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LevelNumber)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Adjacencies != nil { + l = m.Adjacencies.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.AfiSafi != nil { + l = m.AfiSafi.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LevelNumber != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LevelNumber)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Adjacency) > 0 { + for _, e := range m.Adjacency { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemId != nil { + l = len(*m.SystemId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemId != nil { + l = len(*m.SystemId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.NeighborSnpa != nil { + l = len(*m.NeighborSnpa) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.LocalExtendedCircuitId != nil { + n += 2 + sovRpdIsisOc(uint64(*m.LocalExtendedCircuitId)) + } + if m.NeighborExtendedCircuitId != nil { + n += 2 + sovRpdIsisOc(uint64(*m.NeighborExtendedCircuitId)) + } + if m.Priority != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Priority)) + } + if m.DisSystemId != nil { + l = len(*m.DisSystemId) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.NeighborCircuitType != nil { + l = len(*m.NeighborCircuitType) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.AdjacencyType != nil { + l = len(*m.AdjacencyType) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.AdjacencyState != nil { + l = len(*m.AdjacencyState) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.UpTime != nil { + n += 2 + sovRpdIsisOc(uint64(*m.UpTime)) + } + if m.MultiTopology != nil { + n += 3 + } + if len(m.Topology) > 0 { + for _, s := range m.Topology { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.RestartSupport != nil { + n += 3 + } + if m.RestartSuppress != nil { + n += 3 + } + if m.RestartStatus != nil { + n += 3 + } + if m.RemainingHoldTime != nil { + n += 2 + sovRpdIsisOc(uint64(*m.RemainingHoldTime)) + } + if len(m.AreaAddress) > 0 { + for _, s := range m.AreaAddress { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if len(m.Nlpid) > 0 { + for _, s := range m.Nlpid { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if len(m.Ipv4NeighborAddress) > 0 { + for _, s := range m.Ipv4NeighborAddress { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if len(m.Ipv6NeighborAddress) > 0 { + for _, s := range m.Ipv6NeighborAddress { + l = len(s) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.LanAdjacencyState != nil { + l = len(*m.LanAdjacencyState) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Af) > 0 { + for _, e := range m.Af { + l = e.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiName != nil { + l = len(*m.AfiName) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.SafiName != nil { + l = len(*m.SafiName) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiName != nil { + l = len(*m.AfiName) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.SafiName != nil { + l = len(*m.SafiName) + n += 2 + l + sovRpdIsisOc(uint64(l)) + } + if m.Metric != nil { + n += 2 + sovRpdIsisOc(uint64(*m.Metric)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdIsisOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdIsisOc(x uint64) (n int) { + return sovRpdIsisOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesIsis) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_isis: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_isis: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesIsisNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocols == nil { + m.Protocols = &NetworkInstancesIsisNetworkInstanceListProtocolsType{} + } + if err := m.Protocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocol == nil { + m.Protocol = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType{} + } + if err := m.Protocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Isis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Isis == nil { + m.Isis = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType{} + } + if err := m.Isis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: isis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: isis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Levels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Levels == nil { + m.Levels = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType{} + } + if err := m.Levels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: levels_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: levels_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Level = append(m.Level, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList{}) + if err := m.Level[len(m.Level)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: level_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: level_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LevelNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LevelNumber = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkStateDatabase", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LinkStateDatabase == nil { + m.LinkStateDatabase = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType{} + } + if err := m.LinkStateDatabase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemLevelCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SystemLevelCounters == nil { + m.SystemLevelCounters = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType{} + } + if err := m.SystemLevelCounters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: link_state_database_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: link_state_database_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lsp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Lsp = append(m.Lsp, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList{}) + if err := m.Lsp[len(m.Lsp)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsp_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsp_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LspId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tlvs == nil { + m.Tlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType{} + } + if err := m.Tlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedTlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UndefinedTlvs == nil { + m.UndefinedTlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType{} + } + if err := m.UndefinedTlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LspId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaximumAreaAddresses", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaximumAreaAddresses = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Version = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version2", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Version2 = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IdLength", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IdLength = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PduType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PduType = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemainingLifetime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RemainingLifetime = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SequenceNumber = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Checksum = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PduLength", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PduLength = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspInstallTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspInstallTime = &v + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsType = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tlv = append(m.Tlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList{}) + if err := m.Tlv[len(m.Tlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AreaAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AreaAddress == nil { + m.AreaAddress = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType{} + } + if err := m.AreaAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nlpid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nlpid == nil { + m.Nlpid = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType{} + } + if err := m.Nlpid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hostname == nil { + m.Hostname = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType{} + } + if err := m.Hostname.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4TeRouterId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4TeRouterId == nil { + m.Ipv4TeRouterId = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType{} + } + if err := m.Ipv4TeRouterId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4InterfaceAddresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4InterfaceAddresses == nil { + m.Ipv4InterfaceAddresses = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType{} + } + if err := m.Ipv4InterfaceAddresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6InterfaceAddresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6InterfaceAddresses == nil { + m.Ipv6InterfaceAddresses = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType{} + } + if err := m.Ipv6InterfaceAddresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspBufferSize", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LspBufferSize == nil { + m.LspBufferSize = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType{} + } + if err := m.LspBufferSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedIpv4Reachability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtendedIpv4Reachability == nil { + m.ExtendedIpv4Reachability = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType{} + } + if err := m.ExtendedIpv4Reachability.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Reachability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Reachability == nil { + m.Ipv6Reachability = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType{} + } + if err := m.Ipv6Reachability.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtendedIsReachability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExtendedIsReachability == nil { + m.ExtendedIsReachability = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType{} + } + if err := m.ExtendedIsReachability.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouterCapabilities", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RouterCapabilities == nil { + m.RouterCapabilities = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType{} + } + if err := m.RouterCapabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Srlgs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Srlgs == nil { + m.Ipv4Srlgs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType{} + } + if err := m.Ipv4Srlgs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: area_address_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: area_address_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListAreaAddressTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsp_buffer_size_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsp_buffer_size_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListLspBufferSizeTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Size_ = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nlpid_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nlpid_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListNlpidTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nlpid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nlpid = append(m.Nlpid, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hostname_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hostname_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListHostnameTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Hname = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_interface_addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_interface_addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4InterfaceAddressesTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_interface_addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_interface_addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6InterfaceAddressesTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_te_router_id_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_te_router_id_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4TeRouterIdTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeRouterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TeRouterId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_srlgs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_srlgs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Srlg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv4Srlg = append(m.Ipv4Srlg, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList{}) + if err := m.Ipv4Srlg[len(m.Ipv4Srlg)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_srlg_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_srlg_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceNumber = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv4SrlgsTypeIpv4SrlgListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceNumber = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PsnNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PsnNumber = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4InterfaceAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ipv4InterfaceAddress = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ipv4NeighborAddress = &s + iNdEx = postIndex + case 56: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SrlgValue = append(m.SrlgValue, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.SrlgValue) == 0 { + m.SrlgValue = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SrlgValue = append(m.SrlgValue, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field SrlgValue", wireType) + } + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: router_capabilities_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: router_capabilities_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Capability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Capability = append(m.Capability, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList{}) + if err := m.Capability[len(m.Capability)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: capability_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: capability_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceNumber = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subtlvs == nil { + m.Subtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType{} + } + if err := m.Subtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UndefinedSubtlvs == nil { + m.UndefinedSubtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType{} + } + if err := m.UndefinedSubtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceNumber = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RouterId = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subtlv = append(m.Subtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList{}) + if err := m.Subtlv[len(m.Subtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentRoutingAlgorithms", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentRoutingAlgorithms == nil { + m.SegmentRoutingAlgorithms = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType{} + } + if err := m.SegmentRoutingAlgorithms.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentRoutingCapability", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentRoutingCapability == nil { + m.SegmentRoutingCapability = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType{} + } + if err := m.SegmentRoutingCapability.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_routing_algorithms_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_routing_algorithms_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingAlgorithmsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Algorithm = append(m.Algorithm, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_routing_capability_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_routing_capability_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrgbDescriptors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SrgbDescriptors == nil { + m.SrgbDescriptors = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType{} + } + if err := m.SrgbDescriptors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: srgb_descriptors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: srgb_descriptors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrgbDescriptor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SrgbDescriptor = append(m.SrgbDescriptor, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList{}) + if err := m.SrgbDescriptor[len(m.SrgbDescriptor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: srgb_descriptor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: srgb_descriptor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Range = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListSubtlvsTypeSubtlvListSegmentRoutingCapabilityTypeSrgbDescriptorsTypeSrgbDescriptorListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Range = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Label = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndefinedSubtlv = append(m.UndefinedSubtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList{}) + if err := m.UndefinedSubtlv[len(m.UndefinedSubtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListRouterCapabilitiesTypeCapabilityListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Length = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: extended_is_reachability_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: extended_is_reachability_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subtlvs == nil { + m.Subtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType{} + } + if err := m.Subtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UndefinedSubtlvs == nil { + m.UndefinedSubtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType{} + } + if err := m.UndefinedSubtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subtlv = append(m.Subtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList{}) + if err := m.Subtlv[len(m.Subtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4InterfaceAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4InterfaceAddress == nil { + m.Ipv4InterfaceAddress = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType{} + } + if err := m.Ipv4InterfaceAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4NeighborAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4NeighborAddress == nil { + m.Ipv4NeighborAddress = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType{} + } + if err := m.Ipv4NeighborAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkId", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LinkId == nil { + m.LinkId = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType{} + } + if err := m.LinkId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxLinkBandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MaxLinkBandwidth == nil { + m.MaxLinkBandwidth = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType{} + } + if err := m.MaxLinkBandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxReservableLinkBandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MaxReservableLinkBandwidth == nil { + m.MaxReservableLinkBandwidth = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType{} + } + if err := m.MaxReservableLinkBandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnreservedBandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UnreservedBandwidth == nil { + m.UnreservedBandwidth = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType{} + } + if err := m.UnreservedBandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeDefaultMetric", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TeDefaultMetric == nil { + m.TeDefaultMetric = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType{} + } + if err := m.TeDefaultMetric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandwidthConstraints", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BandwidthConstraints == nil { + m.BandwidthConstraints = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType{} + } + if err := m.BandwidthConstraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdminGroup == nil { + m.AdminGroup = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType{} + } + if err := m.AdminGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjacencySids", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjacencySids == nil { + m.AdjacencySids = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType{} + } + if err := m.AdjacencySids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LanAdjacencySids", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LanAdjacencySids == nil { + m.LanAdjacencySids = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType{} + } + if err := m.LanAdjacencySids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6InterfaceAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6InterfaceAddress == nil { + m.Ipv6InterfaceAddress = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType{} + } + if err := m.Ipv6InterfaceAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 164: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6NeighborAddress", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6NeighborAddress == nil { + m.Ipv6NeighborAddress = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType{} + } + if err := m.Ipv6NeighborAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: admin_group_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: admin_group_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdminGroupTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdminGroup = append(m.AdminGroup, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.AdminGroup) == 0 { + m.AdminGroup = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdminGroup = append(m.AdminGroup, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroup", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: link_id_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: link_id_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLinkIdTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Local", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Local = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Remote", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Remote = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_interface_address_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_interface_address_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4InterfaceAddressTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_neighbor_address_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_neighbor_address_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv4NeighborAddressTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: max_link_bandwidth_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: max_link_bandwidth_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxLinkBandwidthTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Bandwidth = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: max_reservable_link_bandwidth_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: max_reservable_link_bandwidth_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListMaxReservableLinkBandwidthTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Bandwidth = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unreserved_bandwidth_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unreserved_bandwidth_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetupPriority", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SetupPriority = append(m.SetupPriority, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList{}) + if err := m.SetupPriority[len(m.SetupPriority)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: setup_priority_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: setup_priority_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListUnreservedBandwidthTypeSetupPriorityListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Bandwidth = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_interface_address_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_interface_address_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6InterfaceAddressTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_neighbor_address_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_neighbor_address_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListIpv6NeighborAddressTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: te_default_metric_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: te_default_metric_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListTeDefaultMetricTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bandwidth_constraints_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bandwidth_constraints_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandwidthConstraint", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BandwidthConstraint = append(m.BandwidthConstraint, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList{}) + if err := m.BandwidthConstraint[len(m.BandwidthConstraint)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bandwidth_constraint_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bandwidth_constraint_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModelId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ModelId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Constraints", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Constraints == nil { + m.Constraints = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType{} + } + if err := m.Constraints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModelId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ModelId = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: constraints_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: constraints_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Constraint", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Constraint = append(m.Constraint, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList{}) + if err := m.Constraint[len(m.Constraint)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: constraint_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: constraint_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConstraintId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConstraintId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListBandwidthConstraintsTypeBandwidthConstraintListConstraintsTypeConstraintListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConstraintId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConstraintId = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Bandwidth = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adjacency_sids_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adjacency_sids_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjSid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdjSid == nil { + m.AdjSid = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType{} + } + if err := m.AdjSid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adj_sid_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adj_sid_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListAdjacencySidsTypeAdjSidTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Weight = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lan_adjacency_sids_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lan_adjacency_sids_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LanAdjSid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LanAdjSid == nil { + m.LanAdjSid = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType{} + } + if err := m.LanAdjSid.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lan_adj_sid_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lan_adj_sid_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListSubtlvsTypeSubtlvListLanAdjacencySidsTypeLanAdjSidTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Weight = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndefinedSubtlv = append(m.UndefinedSubtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList{}) + if err := m.UndefinedSubtlv[len(m.UndefinedSubtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIsReachabilityTypeNeighborsTypeNeighborListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Length = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: extended_ipv4_reachability_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: extended_ipv4_reachability_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefixes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Prefixes == nil { + m.Prefixes = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType{} + } + if err := m.Prefixes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefixes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefixes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = append(m.Prefix, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList{}) + if err := m.Prefix[len(m.Prefix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subtlvs == nil { + m.Subtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType{} + } + if err := m.Subtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UndefinedSubtlvs == nil { + m.UndefinedSubtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType{} + } + if err := m.UndefinedSubtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpDown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.UpDown = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SBit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SBit = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subtlv = append(m.Subtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList{}) + if err := m.Subtlv[len(m.Subtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tag == nil { + m.Tag = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType{} + } + if err := m.Tag.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixSids", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixSids == nil { + m.PrefixSids = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType{} + } + if err := m.PrefixSids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tag_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tag_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tag32 = append(m.Tag32, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Tag32) == 0 { + m.Tag32 = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tag32 = append(m.Tag32, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Tag32", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_sids_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_sids_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixSid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrefixSid = append(m.PrefixSid, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList{}) + if err := m.PrefixSid[len(m.PrefixSid)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_sid_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_sid_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Algorithm = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndefinedSubtlv = append(m.UndefinedSubtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList{}) + if err := m.UndefinedSubtlv[len(m.UndefinedSubtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListExtendedIpv4ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Length = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_reachability_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_reachability_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefixes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Prefixes == nil { + m.Prefixes = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType{} + } + if err := m.Prefixes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefixes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefixes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = append(m.Prefix, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList{}) + if err := m.Prefix[len(m.Prefix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subtlvs == nil { + m.Subtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType{} + } + if err := m.Subtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlvs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UndefinedSubtlvs == nil { + m.UndefinedSubtlvs = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType{} + } + if err := m.UndefinedSubtlvs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpDown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.UpDown = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field XBit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.XBit = &b + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SBit", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SBit = &b + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subtlv = append(m.Subtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList{}) + if err := m.Subtlv[len(m.Subtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tag", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tag == nil { + m.Tag = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType{} + } + if err := m.Tag.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixSids", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixSids == nil { + m.PrefixSids = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType{} + } + if err := m.PrefixSids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tag_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tag_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListTagTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tag32 = append(m.Tag32, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Tag32) == 0 { + m.Tag32 = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Tag32 = append(m.Tag32, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field Tag32", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_sids_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_sids_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixSid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrefixSid = append(m.PrefixSid, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList{}) + if err := m.PrefixSid[len(m.PrefixSid)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_sid_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_sid_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListSubtlvsTypeSubtlvListPrefixSidsTypePrefixSidListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Algorithm", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Algorithm = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Flags = append(m.Flags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedSubtlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndefinedSubtlv = append(m.UndefinedSubtlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList{}) + if err := m.UndefinedSubtlv[len(m.UndefinedSubtlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_subtlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_subtlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListTlvsTypeTlvListIpv6ReachabilityTypePrefixesTypePrefixListUndefinedSubtlvsTypeUndefinedSubtlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Length = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_tlvs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_tlvs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UndefinedTlv", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UndefinedTlv = append(m.UndefinedTlv, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList{}) + if err := m.UndefinedTlv[len(m.UndefinedTlv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: undefined_tlv_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: undefined_tlv_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListLinkStateDatabaseTypeLspListUndefinedTlvsTypeUndefinedTlvListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Type = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Length", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Length = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LevelNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LevelNumber = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_level_counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_level_counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeLevelsTypeLevelListSystemLevelCountersTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CorruptedLsps", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CorruptedLsps = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DatabaseOverloads", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DatabaseOverloads = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ManualAddressDropFromAreas", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ManualAddressDropFromAreas = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExceedMaxSeqNums", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExceedMaxSeqNums = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SeqNumSkips", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SeqNumSkips = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnLspPurges", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OwnLspPurges = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IdLenMismatch", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IdLenMismatch = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PartChanges", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PartChanges = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAreaAddressMismatches", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAreaAddressMismatches = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthFails", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthFails = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpfRuns", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpfRuns = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthTypeFails", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthTypeFails = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspErrors", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspErrors = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CircuitCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CircuitCounters == nil { + m.CircuitCounters = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType{} + } + if err := m.CircuitCounters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PacketCounters == nil { + m.PacketCounters = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType{} + } + if err := m.PacketCounters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Levels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Levels == nil { + m.Levels = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType{} + } + if err := m.Levels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: circuit_counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: circuit_counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListCircuitCountersTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjChanges", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdjChanges = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitFails", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitFails = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RejectedAdj", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RejectedAdj = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IdFieldLenMismatches", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IdFieldLenMismatches = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAreaAddressMismatches", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAreaAddressMismatches = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthTypeFails", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthTypeFails = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthFails", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthFails = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LanDisChanges", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LanDisChanges = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdjNumber = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: packet_counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: packet_counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lsp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Lsp == nil { + m.Lsp = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType{} + } + if err := m.Lsp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Iih", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Iih == nil { + m.Iih = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType{} + } + if err := m.Iih.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Psnp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Psnp == nil { + m.Psnp = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType{} + } + if err := m.Psnp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Csnp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Csnp == nil { + m.Csnp = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType{} + } + if err := m.Csnp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ish", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ish == nil { + m.Ish = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType{} + } + if err := m.Ish.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Esh", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Esh == nil { + m.Esh = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType{} + } + if err := m.Esh.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Unknown", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Unknown == nil { + m.Unknown = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType{} + } + if err := m.Unknown.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeLspTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: iih_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: iih_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIihTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ish_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ish_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeIshTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: esh_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: esh_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeEshTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: psnp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: psnp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypePsnpTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: csnp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: csnp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeCsnpTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: unknown_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: unknown_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListPacketCountersTypeUnknownTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Dropped", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Dropped = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Processed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Processed = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Retransmit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Retransmit = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: levels_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: levels_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Level = append(m.Level, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList{}) + if err := m.Level[len(m.Level)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: level_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: level_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LevelNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LevelNumber = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Adjacencies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Adjacencies == nil { + m.Adjacencies = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType{} + } + if err := m.Adjacencies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafi", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AfiSafi == nil { + m.AfiSafi = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType{} + } + if err := m.AfiSafi.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LevelNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LevelNumber = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adjacencies_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adjacencies_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Adjacency", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Adjacency = append(m.Adjacency, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList{}) + if err := m.Adjacency[len(m.Adjacency)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: adjacency_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: adjacency_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAdjacenciesTypeAdjacencyListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborSnpa", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborSnpa = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalExtendedCircuitId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalExtendedCircuitId = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborExtendedCircuitId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NeighborExtendedCircuitId = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisSystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DisSystemId = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborCircuitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborCircuitType = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjacencyType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdjacencyType = &s + iNdEx = postIndex + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjacencyState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdjacencyState = &s + iNdEx = postIndex + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpTime = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MultiTopology", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.MultiTopology = &b + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topology", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Topology = append(m.Topology, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartSupport", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RestartSupport = &b + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartSuppress", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RestartSuppress = &b + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartStatus", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RestartStatus = &b + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemainingHoldTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RemainingHoldTime = &v + case 67: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AreaAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AreaAddress = append(m.AreaAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 68: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nlpid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nlpid = append(m.Nlpid, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 69: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv4NeighborAddress = append(m.Ipv4NeighborAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 70: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ipv6NeighborAddress = append(m.Ipv6NeighborAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LanAdjacencyState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LanAdjacencyState = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safi_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safi_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Af", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Af = append(m.Af, &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList{}) + if err := m.Af[len(m.Af)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: af_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: af_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SafiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesIsisNetworkInstanceListProtocolsTypeProtocolTypeIsisTypeInterfacesTypeInterfaceListLevelsTypeLevelListAfiSafiTypeAfListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdIsisOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdIsisOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SafiName = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + default: + iNdEx = preIndex + skippy, err := skipRpdIsisOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdIsisOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdIsisOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdIsisOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdIsisOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdIsisOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdIsisOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdIsisOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdIsisOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdIsisOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_isis_oc.proto b/schema/rpd_isis_oc.proto new file mode 100755 index 0000000..260e6a2 --- /dev/null +++ b/schema/rpd_isis_oc.proto @@ -0,0 +1,677 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_isis jnpr_network_instances_isis_ext = 65; +} + +message network_instances_isis { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional protocols_type protocols = 151; + message protocols_type { + optional protocol_type protocol = 151; + message protocol_type { + optional isis_type isis = 151; + message isis_type { + optional levels_type levels = 151; + message levels_type { + message level_list { + optional uint32 level_number = 51 [(telemetry_options).is_key = true]; + optional link_state_database_type link_state_database = 151; + message link_state_database_type { + message lsp_list { + optional string lsp_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string lsp_id = 51; + optional uint32 maximum_area_addresses = 52; + optional uint32 version = 53; + optional uint32 version2 = 54; + optional uint32 id_length = 55; + optional string pdu_type = 56; + optional uint32 remaining_lifetime = 57; + optional uint32 sequence_number = 58; + optional uint32 checksum = 59; + optional uint32 pdu_length = 60; + repeated string flags = 62; + optional uint32 is_type = 63; + optional uint64 lsp_install_time = 61; + } + optional tlvs_type tlvs = 152; + message tlvs_type { + message tlv_list { + optional string type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string type = 51; + } + optional area_address_type area_address = 152; + message area_address_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional lsp_buffer_size_type lsp_buffer_size = 158; + message lsp_buffer_size_type { + optional state_type state = 151; + message state_type { + optional uint32 size = 51; + } + } + optional nlpid_type nlpid = 153; + message nlpid_type { + optional state_type state = 151; + message state_type { + repeated string nlpid = 51; + } + } + optional hostname_type hostname = 154; + message hostname_type { + optional state_type state = 151; + message state_type { + optional string hname = 51; + } + } + optional ipv4_interface_addresses_type ipv4_interface_addresses = 156; + message ipv4_interface_addresses_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional ipv6_interface_addresses_type ipv6_interface_addresses = 157; + message ipv6_interface_addresses_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional ipv4_te_router_id_type ipv4_te_router_id = 155; + message ipv4_te_router_id_type { + optional state_type state = 151; + message state_type { + optional string te_router_id = 51; + } + } + optional ipv4_srlgs_type ipv4_srlgs = 163; + message ipv4_srlgs_type { + message ipv4_srlg_list { + optional uint32 instance_number = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 instance_number = 51; + optional string system_id = 52; + optional uint32 psn_number = 53; + repeated string flags = 57; + optional string ipv4_interface_address = 54; + optional string ipv4_neighbor_address = 55; + repeated uint32 srlg_value = 56; + } + } + repeated ipv4_srlg_list ipv4_srlg = 151; + } + optional router_capabilities_type router_capabilities = 162; + message router_capabilities_type { + message capability_list { + optional uint32 instance_number = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 instance_number = 51; + optional string router_id = 52; + repeated string flags = 53; + } + optional subtlvs_type subtlvs = 152; + message subtlvs_type { + message subtlv_list { + optional string type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string type = 51; + } + optional segment_routing_algorithms_type segment_routing_algorithms = 152; + message segment_routing_algorithms_type { + optional state_type state = 151; + message state_type { + repeated string algorithm = 51; + } + } + optional segment_routing_capability_type segment_routing_capability = 153; + message segment_routing_capability_type { + optional state_type state = 151; + message state_type { + repeated string flags = 51; + } + optional srgb_descriptors_type srgb_descriptors = 152; + message srgb_descriptors_type { + message srgb_descriptor_list { + optional uint32 range = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 range = 51; + optional string label = 52; + } + } + repeated srgb_descriptor_list srgb_descriptor = 151; + } + } + } + repeated subtlv_list subtlv = 151; + } + optional undefined_subtlvs_type undefined_subtlvs = 153; + message undefined_subtlvs_type { + message undefined_subtlv_list { + optional uint32 type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 type = 51; + optional uint32 length = 52; + optional string value = 53; + } + } + repeated undefined_subtlv_list undefined_subtlv = 151; + } + } + repeated capability_list capability = 151; + } + optional extended_is_reachability_type extended_is_reachability = 161; + message extended_is_reachability_type { + optional neighbors_type neighbors = 151; + message neighbors_type { + message neighbor_list { + optional string system_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string system_id = 51; + optional uint32 metric = 52; + } + optional subtlvs_type subtlvs = 152; + message subtlvs_type { + message subtlv_list { + optional string type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string type = 51; + } + optional admin_group_type admin_group = 160; + message admin_group_type { + optional state_type state = 151; + message state_type { + repeated uint32 admin_group = 51; + } + } + optional link_id_type link_id = 154; + message link_id_type { + optional state_type state = 151; + message state_type { + optional uint32 local = 51; + optional uint32 remote = 52; + } + } + optional ipv4_interface_address_type ipv4_interface_address = 152; + message ipv4_interface_address_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional ipv4_neighbor_address_type ipv4_neighbor_address = 153; + message ipv4_neighbor_address_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional max_link_bandwidth_type max_link_bandwidth = 155; + message max_link_bandwidth_type { + optional state_type state = 151; + message state_type { + optional string bandwidth = 51; + } + } + optional max_reservable_link_bandwidth_type max_reservable_link_bandwidth = 156; + message max_reservable_link_bandwidth_type { + optional state_type state = 151; + message state_type { + optional string bandwidth = 51; + } + } + optional unreserved_bandwidth_type unreserved_bandwidth = 157; + message unreserved_bandwidth_type { + message setup_priority_list { + optional uint32 priority = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 priority = 51; + optional string bandwidth = 52; + } + } + repeated setup_priority_list setup_priority = 151; + } + optional ipv6_interface_address_type ipv6_interface_address = 163; + message ipv6_interface_address_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional ipv6_neighbor_address_type ipv6_neighbor_address = 164; + message ipv6_neighbor_address_type { + optional state_type state = 151; + message state_type { + repeated string address = 51; + } + } + optional te_default_metric_type te_default_metric = 158; + message te_default_metric_type { + optional state_type state = 151; + message state_type { + optional uint32 metric = 51; + } + } + optional bandwidth_constraints_type bandwidth_constraints = 159; + message bandwidth_constraints_type { + message bandwidth_constraint_list { + optional uint32 model_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 model_id = 51; + } + optional constraints_type constraints = 152; + message constraints_type { + message constraint_list { + optional uint32 constraint_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 constraint_id = 51; + optional string bandwidth = 52; + } + } + repeated constraint_list constraint = 151; + } + } + repeated bandwidth_constraint_list bandwidth_constraint = 151; + } + optional adjacency_sids_type adjacency_sids = 161; + message adjacency_sids_type { + optional adj_sid_type adj_sid = 151; + message adj_sid_type { + optional state_type state = 151; + message state_type { + optional uint32 value = 51; + repeated string flags = 52; + optional uint32 weight = 53; + } + } + } + optional lan_adjacency_sids_type lan_adjacency_sids = 162; + message lan_adjacency_sids_type { + optional lan_adj_sid_type lan_adj_sid = 151; + message lan_adj_sid_type { + optional state_type state = 151; + message state_type { + optional uint32 value = 51; + repeated string flags = 52; + optional uint32 weight = 53; + optional string neighbor_id = 54; + } + } + } + } + repeated subtlv_list subtlv = 151; + } + optional undefined_subtlvs_type undefined_subtlvs = 153; + message undefined_subtlvs_type { + message undefined_subtlv_list { + optional uint32 type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 type = 51; + optional uint32 length = 52; + optional string value = 53; + } + } + repeated undefined_subtlv_list undefined_subtlv = 151; + } + } + repeated neighbor_list neighbor = 151; + } + } + optional extended_ipv4_reachability_type extended_ipv4_reachability = 159; + message extended_ipv4_reachability_type { + optional prefixes_type prefixes = 151; + message prefixes_type { + message prefix_list { + optional string prefix = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional bool up_down = 51; + optional bool s_bit = 52; + optional string prefix = 54; + optional uint32 metric = 53; + } + optional subtlvs_type subtlvs = 152; + message subtlvs_type { + message subtlv_list { + optional string type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string type = 51; + } + optional tag_type tag = 152; + message tag_type { + optional state_type state = 151; + message state_type { + repeated uint32 tag32 = 51; + } + } + optional prefix_sids_type prefix_sids = 153; + message prefix_sids_type { + message prefix_sid_list { + optional uint32 value = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 value = 51; + repeated string flags = 53; + optional uint32 algorithm = 52; + } + } + repeated prefix_sid_list prefix_sid = 151; + } + } + repeated subtlv_list subtlv = 151; + } + optional undefined_subtlvs_type undefined_subtlvs = 153; + message undefined_subtlvs_type { + message undefined_subtlv_list { + optional uint32 type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 type = 51; + optional uint32 length = 52; + optional string value = 53; + } + } + repeated undefined_subtlv_list undefined_subtlv = 151; + } + } + repeated prefix_list prefix = 151; + } + } + optional ipv6_reachability_type ipv6_reachability = 160; + message ipv6_reachability_type { + optional prefixes_type prefixes = 151; + message prefixes_type { + message prefix_list { + optional string prefix = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional bool up_down = 52; + optional bool x_bit = 53; + optional bool s_bit = 54; + optional string prefix = 51; + optional uint32 metric = 55; + } + optional subtlvs_type subtlvs = 152; + message subtlvs_type { + message subtlv_list { + optional string type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string type = 51; + } + optional tag_type tag = 152; + message tag_type { + optional state_type state = 151; + message state_type { + repeated uint32 tag32 = 51; + } + } + optional prefix_sids_type prefix_sids = 153; + message prefix_sids_type { + message prefix_sid_list { + optional uint32 value = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 value = 51; + repeated string flags = 53; + optional uint32 algorithm = 52; + } + } + repeated prefix_sid_list prefix_sid = 151; + } + } + repeated subtlv_list subtlv = 151; + } + optional undefined_subtlvs_type undefined_subtlvs = 153; + message undefined_subtlvs_type { + message undefined_subtlv_list { + optional uint32 type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 type = 51; + optional uint32 length = 52; + optional string value = 53; + } + } + repeated undefined_subtlv_list undefined_subtlv = 151; + } + } + repeated prefix_list prefix = 151; + } + } + } + repeated tlv_list tlv = 151; + } + optional undefined_tlvs_type undefined_tlvs = 153; + message undefined_tlvs_type { + message undefined_tlv_list { + optional uint32 type = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 type = 51; + optional uint32 length = 52; + optional string value = 53; + } + } + repeated undefined_tlv_list undefined_tlv = 151; + } + } + repeated lsp_list lsp = 151; + } + optional state_type state = 152; + message state_type { + optional uint32 level_number = 51; + } + optional system_level_counters_type system_level_counters = 153; + message system_level_counters_type { + optional state_type state = 151; + message state_type { + optional uint32 corrupted_lsps = 51; + optional uint32 database_overloads = 52; + optional uint32 manual_address_drop_from_areas = 53; + optional uint32 exceed_max_seq_nums = 54; + optional uint32 seq_num_skips = 55; + optional uint32 own_lsp_purges = 56; + optional uint32 id_len_mismatch = 57; + optional uint32 part_changes = 58; + optional uint32 max_area_address_mismatches = 59; + optional uint32 auth_fails = 60; + optional uint32 spf_runs = 61; + optional uint32 auth_type_fails = 62; + optional uint32 lsp_errors = 63; + } + } + } + repeated level_list level = 151; + } + optional interfaces_type interfaces = 152; + message interfaces_type { + message interface_list { + optional string interface_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface_id = 51; + } + optional circuit_counters_type circuit_counters = 152; + message circuit_counters_type { + optional state_type state = 151; + message state_type { + optional uint32 adj_changes = 51; + optional uint32 init_fails = 52; + optional uint32 rejected_adj = 53; + optional uint32 id_field_len_mismatches = 54; + optional uint32 max_area_address_mismatches = 55; + optional uint32 auth_type_fails = 56; + optional uint32 auth_fails = 57; + optional uint32 lan_dis_changes = 58; + optional uint32 adj_number = 59; + } + } + optional packet_counters_type packet_counters = 153; + message packet_counters_type { + optional lsp_type lsp = 151; + message lsp_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + optional iih_type iih = 152; + message iih_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + optional ish_type ish = 155; + message ish_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + optional esh_type esh = 156; + message esh_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + optional psnp_type psnp = 153; + message psnp_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + optional csnp_type csnp = 154; + message csnp_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + optional unknown_type unknown = 157; + message unknown_type { + optional state_type state = 151; + message state_type { + optional uint32 received = 51; + optional uint32 processed = 53; + optional uint32 dropped = 52; + optional uint32 sent = 54; + optional uint32 retransmit = 55; + } + } + } + optional levels_type levels = 154; + message levels_type { + message level_list { + optional uint32 level_number = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 level_number = 51; + } + optional adjacencies_type adjacencies = 152; + message adjacencies_type { + message adjacency_list { + optional string system_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string system_id = 51; + optional string neighbor_snpa = 52; + optional uint32 local_extended_circuit_id = 53; + optional uint32 neighbor_extended_circuit_id = 54; + optional uint32 priority = 55; + optional string dis_system_id = 56; + optional string neighbor_circuit_type = 57; + optional string adjacency_type = 58; + optional string adjacency_state = 59; + optional uint32 remaining_hold_time = 66; + optional uint32 up_time = 60; + optional bool multi_topology = 61; + repeated string topology = 62; + optional bool restart_support = 63; + optional bool restart_suppress = 64; + optional bool restart_status = 65; + repeated string area_address = 67; + repeated string nlpid = 68; + repeated string ipv4_neighbor_address = 69; + repeated string ipv6_neighbor_address = 70; + optional string lan_adjacency_state = 71; + } + } + repeated adjacency_list adjacency = 151; + } + optional afi_safi_type afi_safi = 153; + message afi_safi_type { + message af_list { + optional string afi_name = 51; + optional string safi_name = 52; + optional state_type state = 151; + message state_type { + optional string afi_name = 51; + optional string safi_name = 52; + optional uint32 metric = 53; + } + } + repeated af_list af = 151; + } + } + repeated level_list level = 151; + } + } + repeated interface_list interface = 151; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/rpd_ldp_oc.pb.go b/schema/rpd_ldp_oc.pb.go new file mode 100644 index 0000000..3d5659d --- /dev/null +++ b/schema/rpd_ldp_oc.pb.go @@ -0,0 +1,10520 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_ldp_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesLdp struct { + NetworkInstance []*NetworkInstancesLdpNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdp) Reset() { *m = NetworkInstancesLdp{} } +func (m *NetworkInstancesLdp) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesLdp) ProtoMessage() {} +func (*NetworkInstancesLdp) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0} +} +func (m *NetworkInstancesLdp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdp) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdp.Merge(m, src) +} +func (m *NetworkInstancesLdp) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdp) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdp.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdp proto.InternalMessageInfo + +func (m *NetworkInstancesLdp) GetNetworkInstance() []*NetworkInstancesLdpNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Mpls *NetworkInstancesLdpNetworkInstanceListMplsType `protobuf:"bytes,151,opt,name=mpls" json:"mpls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceList{} +} +func (m *NetworkInstancesLdpNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesLdpNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesLdpNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceList) GetMpls() *NetworkInstancesLdpNetworkInstanceListMplsType { + if m != nil { + return m.Mpls + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsType struct { + SignalingProtocols *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType `protobuf:"bytes,151,opt,name=signaling_protocols,json=signalingProtocols" json:"signaling_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsType) ProtoMessage() {} +func (*NetworkInstancesLdpNetworkInstanceListMplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) GetSignalingProtocols() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType { + if m != nil { + return m.SignalingProtocols + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType struct { + Ldp *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType `protobuf:"bytes,151,opt,name=ldp" json:"ldp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) ProtoMessage() {} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) GetLdp() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType { + if m != nil { + return m.Ldp + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType struct { + Global *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType `protobuf:"bytes,151,opt,name=global" json:"global,omitempty"` + InterfaceAttributes *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType `protobuf:"bytes,152,opt,name=interface_attributes,json=interfaceAttributes" json:"interface_attributes,omitempty"` + Targeted *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType `protobuf:"bytes,153,opt,name=targeted" json:"targeted,omitempty"` + Neighbors *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType `protobuf:"bytes,154,opt,name=neighbors" json:"neighbors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) ProtoMessage() {} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) GetGlobal() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType { + if m != nil { + return m.Global + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) GetInterfaceAttributes() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType { + if m != nil { + return m.InterfaceAttributes + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) GetTargeted() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType { + if m != nil { + return m.Targeted + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) GetNeighbors() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + GracefulRestart *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType `protobuf:"bytes,152,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + Authentication *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType `protobuf:"bytes,153,opt,name=authentication" json:"authentication,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) GetGracefulRestart() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) GetAuthentication() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType { + if m != nil { + return m.Authentication + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType struct { + LsrId *string `protobuf:"bytes,51,opt,name=lsr_id,json=lsrId" json:"lsr_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) GetLsrId() string { + if m != nil && m.LsrId != nil { + return *m.LsrId + } + return "" +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + ReconnectTime *uint32 `protobuf:"varint,52,opt,name=reconnect_time,json=reconnectTime" json:"reconnect_time,omitempty"` + RecoveryTime *uint32 `protobuf:"varint,53,opt,name=recovery_time,json=recoveryTime" json:"recovery_time,omitempty"` + HelperEnable *bool `protobuf:"varint,54,opt,name=helper_enable,json=helperEnable" json:"helper_enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) GetReconnectTime() uint32 { + if m != nil && m.ReconnectTime != nil { + return *m.ReconnectTime + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) GetRecoveryTime() uint32 { + if m != nil && m.RecoveryTime != nil { + return *m.RecoveryTime + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) GetHelperEnable() bool { + if m != nil && m.HelperEnable != nil { + return *m.HelperEnable + } + return false +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType struct { + Enable *bool `protobuf:"varint,51,opt,name=enable" json:"enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) GetEnable() bool { + if m != nil && m.Enable != nil { + return *m.Enable + } + return false +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Interfaces *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType `protobuf:"bytes,152,opt,name=interfaces" json:"interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) GetInterfaces() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType struct { + HelloHoldtime *uint32 `protobuf:"varint,51,opt,name=hello_holdtime,json=helloHoldtime" json:"hello_holdtime,omitempty"` + HelloInterval *uint32 `protobuf:"varint,52,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) GetHelloHoldtime() uint32 { + if m != nil && m.HelloHoldtime != nil { + return *m.HelloHoldtime + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType struct { + Interface []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) GetInterface() []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + AddressFamilies *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType `protobuf:"bytes,153,opt,name=address_families,json=addressFamilies" json:"address_families,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) GetInterfaceRef() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) GetAddressFamilies() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType { + if m != nil { + return m.AddressFamilies + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + HelloHoldtime *uint32 `protobuf:"varint,52,opt,name=hello_holdtime,json=helloHoldtime" json:"hello_holdtime,omitempty"` + HelloInterval *uint32 `protobuf:"varint,53,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) GetHelloHoldtime() uint32 { + if m != nil && m.HelloHoldtime != nil { + return *m.HelloHoldtime + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType struct { + AddressFamily []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList `protobuf:"bytes,151,rep,name=address_family,json=addressFamily" json:"address_family,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0, 2} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) GetAddressFamily() []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList { + if m != nil { + return m.AddressFamily + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList struct { + AfiName *string `protobuf:"bytes,51,opt,name=afi_name,json=afiName" json:"afi_name,omitempty"` + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0, 2, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) GetAfiName() string { + if m != nil && m.AfiName != nil { + return *m.AfiName + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType struct { + AfiName *string `protobuf:"bytes,51,opt,name=afi_name,json=afiName" json:"afi_name,omitempty"` + Enabled *bool `protobuf:"varint,52,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 1, 1, 0, 2, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) GetAfiName() string { + if m != nil && m.AfiName != nil { + return *m.AfiName + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + AddressFamilies *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType `protobuf:"bytes,152,opt,name=address_families,json=addressFamilies" json:"address_families,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) GetAddressFamilies() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType { + if m != nil { + return m.AddressFamilies + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType struct { + HelloHoldtime *uint32 `protobuf:"varint,51,opt,name=hello_holdtime,json=helloHoldtime" json:"hello_holdtime,omitempty"` + HelloInterval *uint32 `protobuf:"varint,52,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + HelloAccept *bool `protobuf:"varint,53,opt,name=hello_accept,json=helloAccept" json:"hello_accept,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) GetHelloHoldtime() uint32 { + if m != nil && m.HelloHoldtime != nil { + return *m.HelloHoldtime + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) GetHelloAccept() bool { + if m != nil && m.HelloAccept != nil { + return *m.HelloAccept + } + return false +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType struct { + AddressFamily []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList `protobuf:"bytes,151,rep,name=address_family,json=addressFamily" json:"address_family,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) GetAddressFamily() []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList { + if m != nil { + return m.AddressFamily + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList struct { + AfiName *string `protobuf:"bytes,51,opt,name=afi_name,json=afiName" json:"afi_name,omitempty"` + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Targets *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType `protobuf:"bytes,152,opt,name=targets" json:"targets,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) GetAfiName() string { + if m != nil && m.AfiName != nil { + return *m.AfiName + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) GetTargets() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType { + if m != nil { + return m.Targets + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType struct { + AfiName *string `protobuf:"bytes,51,opt,name=afi_name,json=afiName" json:"afi_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 1, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) GetAfiName() string { + if m != nil && m.AfiName != nil { + return *m.AfiName + } + return "" +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType struct { + Target []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList `protobuf:"bytes,151,rep,name=target" json:"target,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 1, 0, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) GetTarget() []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList { + if m != nil { + return m.Target + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList struct { + RemoteAddress *string `protobuf:"bytes,51,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"` + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 1, 0, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) GetRemoteAddress() string { + if m != nil && m.RemoteAddress != nil { + return *m.RemoteAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType struct { + RemoteAddress *string `protobuf:"bytes,51,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"` + LocalAddress *string `protobuf:"bytes,52,opt,name=local_address,json=localAddress" json:"local_address,omitempty"` + Enabled *bool `protobuf:"varint,53,opt,name=enabled" json:"enabled,omitempty"` + HelloHoldtime *uint32 `protobuf:"varint,54,opt,name=hello_holdtime,json=helloHoldtime" json:"hello_holdtime,omitempty"` + HelloInterval *uint32 `protobuf:"varint,55,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 2, 1, 0, 1, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) GetRemoteAddress() string { + if m != nil && m.RemoteAddress != nil { + return *m.RemoteAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) GetLocalAddress() string { + if m != nil && m.LocalAddress != nil { + return *m.LocalAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) GetHelloHoldtime() uint32 { + if m != nil && m.HelloHoldtime != nil { + return *m.HelloHoldtime + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType struct { + Neighbor []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) GetNeighbor() []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList struct { + LsrId *string `protobuf:"bytes,51,opt,name=lsr_id,json=lsrId" json:"lsr_id,omitempty"` + LabelSpaceId *uint32 `protobuf:"varint,52,opt,name=label_space_id,json=labelSpaceId" json:"label_space_id,omitempty"` + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + HelloAdjacencies *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType `protobuf:"bytes,152,opt,name=hello_adjacencies,json=helloAdjacencies" json:"hello_adjacencies,omitempty"` + Authentication *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType `protobuf:"bytes,153,opt,name=authentication" json:"authentication,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) GetLsrId() string { + if m != nil && m.LsrId != nil { + return *m.LsrId + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) GetLabelSpaceId() uint32 { + if m != nil && m.LabelSpaceId != nil { + return *m.LabelSpaceId + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) GetHelloAdjacencies() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType { + if m != nil { + return m.HelloAdjacencies + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) GetAuthentication() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType { + if m != nil { + return m.Authentication + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType struct { + LsrId *string `protobuf:"bytes,51,opt,name=lsr_id,json=lsrId" json:"lsr_id,omitempty"` + LabelSpaceId *uint32 `protobuf:"varint,52,opt,name=label_space_id,json=labelSpaceId" json:"label_space_id,omitempty"` + SessionState *string `protobuf:"bytes,53,opt,name=session_state,json=sessionState" json:"session_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) GetLsrId() string { + if m != nil && m.LsrId != nil { + return *m.LsrId + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) GetLabelSpaceId() uint32 { + if m != nil && m.LabelSpaceId != nil { + return *m.LabelSpaceId + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) GetSessionState() string { + if m != nil && m.SessionState != nil { + return *m.SessionState + } + return "" +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType struct { + HelloAdjacency []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList `protobuf:"bytes,151,rep,name=hello_adjacency,json=helloAdjacency" json:"hello_adjacency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) GetHelloAdjacency() []*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList { + if m != nil { + return m.HelloAdjacency + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList struct { + RemoteAddress *string `protobuf:"bytes,51,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"` + LocalAddress *string `protobuf:"bytes,52,opt,name=local_address,json=localAddress" json:"local_address,omitempty"` + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + HelloHoldtime *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType `protobuf:"bytes,153,opt,name=hello_holdtime,json=helloHoldtime" json:"hello_holdtime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) GetRemoteAddress() string { + if m != nil && m.RemoteAddress != nil { + return *m.RemoteAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) GetLocalAddress() string { + if m != nil && m.LocalAddress != nil { + return *m.LocalAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) GetInterfaceRef() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) GetHelloHoldtime() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType { + if m != nil { + return m.HelloHoldtime + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType struct { + RemoteAddress *string `protobuf:"bytes,51,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"` + LocalAddress *string `protobuf:"bytes,52,opt,name=local_address,json=localAddress" json:"local_address,omitempty"` + AdjacencyType *string `protobuf:"bytes,53,opt,name=adjacency_type,json=adjacencyType" json:"adjacency_type,omitempty"` + JnxEnabled *bool `protobuf:"varint,54,opt,name=jnx_enabled,json=jnxEnabled" json:"jnx_enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1, 0, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) GetRemoteAddress() string { + if m != nil && m.RemoteAddress != nil { + return *m.RemoteAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) GetLocalAddress() string { + if m != nil && m.LocalAddress != nil { + return *m.LocalAddress + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) GetAdjacencyType() string { + if m != nil && m.AdjacencyType != nil { + return *m.AdjacencyType + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) GetJnxEnabled() bool { + if m != nil && m.JnxEnabled != nil { + return *m.JnxEnabled + } + return false +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1, 0, 1} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1, 0, 2} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType struct { + Adjacent *uint32 `protobuf:"varint,51,opt,name=adjacent" json:"adjacent,omitempty"` + Negotiated *uint32 `protobuf:"varint,52,opt,name=negotiated" json:"negotiated,omitempty"` + HelloExpiration *uint64 `protobuf:"varint,53,opt,name=hello_expiration,json=helloExpiration" json:"hello_expiration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) GetAdjacent() uint32 { + if m != nil && m.Adjacent != nil { + return *m.Adjacent + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) GetNegotiated() uint32 { + if m != nil && m.Negotiated != nil { + return *m.Negotiated + } + return 0 +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) GetHelloExpiration() uint64 { + if m != nil && m.HelloExpiration != nil { + return *m.HelloExpiration + } + return 0 +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType struct { + State *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 2} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) GetState() *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType struct { + Enable *bool `protobuf:"varint,51,opt,name=enable" json:"enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) Reset() { + *m = NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType{} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_485b65d0e524d040, []int{0, 0, 0, 0, 0, 3, 0, 2, 0} +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) GetEnable() bool { + if m != nil && m.Enable != nil { + return *m.Enable + } + return false +} + +var E_JnprNetworkInstancesLdpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesLdp)(nil), + Field: 132, + Name: "jnpr_network_instances_ldp_ext", + Tag: "bytes,132,opt,name=jnpr_network_instances_ldp_ext", + Filename: "rpd_ldp_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesLdp)(nil), "network_instances_ldp") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceList)(nil), "network_instances_ldp.network_instance_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsType)(nil), "network_instances_ldp.network_instance_list.mpls_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.global_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.global_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.global_type.graceful_restart_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.global_type.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.global_type.authentication_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.global_type.authentication_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list.interface_ref_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list.interface_ref_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list.address_families_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list.address_families_type.address_family_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.interface_attributes_type.interfaces_type.interface_list.address_families_type.address_family_list.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.address_families_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.address_families_type.address_family_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.address_families_type.address_family_list.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.address_families_type.address_family_list.targets_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.address_families_type.address_family_list.targets_type.target_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.targeted_type.address_families_type.address_family_list.targets_type.target_list.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type.hello_adjacency_list") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type.hello_adjacency_list.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type.hello_adjacency_list.interface_ref_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type.hello_adjacency_list.interface_ref_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type.hello_adjacency_list.hello_holdtime_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.hello_adjacencies_type.hello_adjacency_list.hello_holdtime_type.state_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.authentication_type") + proto.RegisterType((*NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType)(nil), "network_instances_ldp.network_instance_list.mpls_type.signaling_protocols_type.ldp_type.neighbors_type.neighbor_list.authentication_type.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesLdpExt) +} + +func init() { proto.RegisterFile("rpd_ldp_oc.proto", fileDescriptor_485b65d0e524d040) } + +var fileDescriptor_485b65d0e524d040 = []byte{ + // 1638 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xef, 0x6b, 0x1c, 0xc5, + 0x1b, 0x67, 0xd2, 0x24, 0xbd, 0x3c, 0xc9, 0x5d, 0xf2, 0x9d, 0x34, 0xed, 0x75, 0xf9, 0x92, 0x6f, + 0xbe, 0x4d, 0x8b, 0x11, 0xda, 0x0b, 0xb4, 0x49, 0x05, 0x5f, 0x99, 0x62, 0x6a, 0xa3, 0x12, 0xe5, + 0xda, 0x17, 0xa5, 0x6f, 0xd6, 0xb9, 0xbd, 0xb9, 0xbb, 0xbd, 0xee, 0xed, 0xae, 0x3b, 0x93, 0x9a, + 0x88, 0x05, 0xdb, 0xaa, 0x28, 0xf8, 0x42, 0xa5, 0xd8, 0x6a, 0xad, 0x58, 0x68, 0xfd, 0x01, 0x45, + 0x11, 0x23, 0x58, 0x0a, 0x5a, 0x51, 0x54, 0xa8, 0xa2, 0xa2, 0xa0, 0xa5, 0x5a, 0xa5, 0xe8, 0x1b, + 0xc1, 0x3f, 0xc0, 0x77, 0xb2, 0x3b, 0xbb, 0x7b, 0xb7, 0x7b, 0x73, 0x18, 0x43, 0x73, 0x3f, 0x5e, + 0xee, 0x67, 0x9e, 0x9d, 0xe7, 0x33, 0xcf, 0x7e, 0xe6, 0x79, 0x9e, 0x99, 0x3b, 0x18, 0x72, 0xec, + 0xbc, 0x6a, 0xe4, 0x6d, 0xd5, 0xd2, 0x32, 0xb6, 0x63, 0x71, 0x4b, 0x19, 0xe6, 0xd4, 0xa0, 0x15, + 0xca, 0x9d, 0x25, 0x95, 0x5b, 0xb6, 0x00, 0xb7, 0x7c, 0xb7, 0x0f, 0x46, 0x4c, 0xca, 0x1f, 0xb1, + 0x9c, 0xc3, 0xaa, 0x6e, 0x32, 0x4e, 0x4c, 0x8d, 0x32, 0xf7, 0x3d, 0x7c, 0x10, 0x86, 0xe2, 0x03, + 0xe9, 0x53, 0x68, 0x6c, 0xdd, 0x44, 0xff, 0xce, 0xed, 0x19, 0xe9, 0x2b, 0x75, 0xa8, 0x6a, 0xe8, + 0x8c, 0x67, 0x07, 0x7d, 0x78, 0xce, 0x47, 0x95, 0x5f, 0xee, 0xa9, 0xf7, 0xe9, 0x99, 0xe2, 0xcd, + 0xd0, 0x6d, 0x92, 0x0a, 0x4d, 0xef, 0x1a, 0x43, 0x13, 0x7d, 0x7b, 0x7a, 0x8e, 0xdf, 0xd5, 0x95, + 0x40, 0x59, 0x0f, 0xc2, 0xf7, 0x41, 0x77, 0xc5, 0x36, 0x98, 0x4b, 0x01, 0x4d, 0xf4, 0xef, 0xdc, + 0xfd, 0x6f, 0x28, 0x64, 0xdc, 0x37, 0x55, 0xbe, 0x64, 0xd3, 0xac, 0x37, 0x89, 0xf2, 0xf3, 0x5e, + 0xe8, 0x0b, 0x31, 0x7c, 0x0c, 0xc1, 0x30, 0xd3, 0x8b, 0x26, 0x31, 0x74, 0xb3, 0xa8, 0x7a, 0x71, + 0xd1, 0xac, 0xaa, 0xab, 0x07, 0x56, 0xe7, 0x2a, 0x23, 0x99, 0x52, 0x70, 0xc0, 0xe1, 0xc8, 0x83, + 0xc1, 0x80, 0x72, 0x75, 0x16, 0xd2, 0x8d, 0x5e, 0xc0, 0x87, 0x61, 0x9d, 0x91, 0xb7, 0x03, 0x3e, + 0x07, 0x6f, 0x31, 0x9f, 0x8c, 0xab, 0x12, 0x8f, 0x98, 0xeb, 0x45, 0xf9, 0xf8, 0x6e, 0x48, 0x04, + 0x08, 0x3e, 0x0a, 0xbd, 0x45, 0xc3, 0xca, 0x11, 0x23, 0x70, 0x9e, 0x5f, 0x2b, 0xe7, 0x19, 0xe1, + 0x47, 0x10, 0xf1, 0x9d, 0xe2, 0xd7, 0x11, 0x6c, 0xd0, 0x4d, 0x4e, 0x9d, 0x02, 0xd1, 0xa8, 0x4a, + 0x38, 0x77, 0xf4, 0xdc, 0x02, 0xa7, 0x2c, 0x7d, 0x5a, 0xb0, 0x71, 0xd6, 0x8c, 0x8d, 0xcc, 0xab, + 0xe0, 0x36, 0x1c, 0x0e, 0xcd, 0x84, 0x23, 0xf8, 0x04, 0x82, 0x04, 0x27, 0x4e, 0x91, 0x72, 0x9a, + 0x4f, 0xbf, 0x24, 0xc8, 0x15, 0xd6, 0x8c, 0x5c, 0xe0, 0x49, 0x10, 0x0a, 0x1d, 0xe3, 0xa7, 0x10, + 0xf4, 0x99, 0x54, 0x2f, 0x96, 0x72, 0x96, 0xc3, 0xd2, 0x2f, 0x0b, 0x1a, 0xc5, 0x35, 0xa3, 0x11, + 0xba, 0x12, 0x3c, 0xaa, 0xae, 0x95, 0x0f, 0x12, 0xd0, 0x5f, 0xf3, 0x3d, 0x5d, 0x62, 0x3d, 0x8c, + 0x13, 0x4e, 0x03, 0x19, 0x59, 0xcd, 0x90, 0x51, 0xc6, 0x73, 0x29, 0xc8, 0x09, 0xf7, 0xae, 0xa0, + 0x86, 0x8a, 0x0e, 0xd1, 0x68, 0x61, 0xc1, 0x50, 0x1d, 0xca, 0x38, 0x71, 0x78, 0x20, 0xa6, 0x47, + 0x9b, 0xc2, 0x29, 0xee, 0x5d, 0xd0, 0x1b, 0x0c, 0xe0, 0xac, 0x40, 0xf1, 0x39, 0x04, 0x29, 0xb2, + 0xc0, 0x4b, 0xd4, 0xe4, 0xba, 0x46, 0xb8, 0x6e, 0x99, 0x81, 0xac, 0x16, 0x9b, 0x42, 0x33, 0xea, + 0x5b, 0x90, 0x8c, 0x11, 0x52, 0xc6, 0x01, 0xaa, 0x11, 0xc6, 0x23, 0xd0, 0x6b, 0x30, 0x47, 0xd5, + 0xf3, 0x22, 0x7b, 0x67, 0x7b, 0x0c, 0xe6, 0xcc, 0xe5, 0x95, 0x6f, 0xbb, 0x60, 0x44, 0xba, 0x66, + 0x7c, 0x36, 0x2e, 0x8a, 0x27, 0x51, 0xeb, 0xbe, 0x40, 0xbd, 0x56, 0x94, 0x53, 0x28, 0xb2, 0xbe, + 0x34, 0xac, 0xa7, 0x26, 0xc9, 0x19, 0x54, 0x2c, 0x30, 0x91, 0x0d, 0x1e, 0xf1, 0x36, 0x48, 0x39, + 0x54, 0xb3, 0x4c, 0x93, 0x6a, 0x5c, 0xe5, 0x7a, 0x85, 0xa6, 0xa7, 0xc6, 0xd0, 0x44, 0x32, 0x9b, + 0x0c, 0xd1, 0x03, 0x7a, 0x85, 0xe2, 0x71, 0xf0, 0x80, 0x23, 0xd4, 0x2d, 0xc0, 0xae, 0xd5, 0xb4, + 0x67, 0x35, 0x10, 0x80, 0x81, 0x51, 0x89, 0x1a, 0x36, 0x75, 0x54, 0x31, 0x7b, 0x7a, 0xb7, 0xe7, + 0x6b, 0x40, 0x80, 0xb3, 0x1e, 0xa6, 0x5c, 0x43, 0x30, 0x2c, 0xf9, 0x40, 0xf8, 0x4c, 0x3c, 0xa2, + 0x27, 0x50, 0xab, 0xc4, 0x22, 0x89, 0xe7, 0xd6, 0x48, 0x38, 0x37, 0x42, 0xaf, 0xbf, 0x42, 0x11, + 0x4d, 0xff, 0x49, 0xb9, 0x80, 0x61, 0x73, 0xc3, 0xe4, 0x8b, 0x4f, 0xc6, 0x57, 0x78, 0xb4, 0xf9, + 0x15, 0x40, 0x92, 0x56, 0xce, 0x23, 0x80, 0xd0, 0x3e, 0xac, 0x4e, 0xc7, 0x51, 0x0b, 0xc8, 0x55, + 0x69, 0x08, 0x86, 0x35, 0xbc, 0x94, 0x43, 0x91, 0x2f, 0xb0, 0x0d, 0x52, 0x25, 0x6a, 0x18, 0x96, + 0x5a, 0xb2, 0x8c, 0xbc, 0x27, 0xc8, 0x5d, 0x42, 0xb6, 0x1e, 0xba, 0xcf, 0x07, 0xab, 0x66, 0xde, + 0x44, 0x47, 0x88, 0x11, 0xa8, 0xdb, 0x43, 0xe7, 0x7c, 0x50, 0xf9, 0x33, 0x05, 0x83, 0x31, 0xdf, + 0xf8, 0x5d, 0x04, 0x7d, 0x21, 0x16, 0x34, 0x8f, 0xcf, 0xb7, 0x41, 0x54, 0x6a, 0x2c, 0xbd, 0x16, + 0xb5, 0xca, 0x52, 0xb9, 0x90, 0x84, 0x54, 0x74, 0x14, 0x4f, 0xc0, 0x40, 0x15, 0x09, 0xf2, 0x5b, + 0xd0, 0x9d, 0xf6, 0x87, 0x43, 0x73, 0x79, 0xbc, 0x1c, 0x97, 0xe7, 0x2b, 0xed, 0xb7, 0x58, 0x89, + 0x7c, 0xaf, 0x22, 0x48, 0x56, 0x8d, 0x1c, 0x5a, 0x08, 0x14, 0x7c, 0xbe, 0x0d, 0xe9, 0x47, 0x88, + 0x8a, 0x65, 0x54, 0x3f, 0x4f, 0x96, 0x16, 0xf0, 0xf7, 0x08, 0x86, 0x48, 0x3e, 0xef, 0x50, 0xc6, + 0xd4, 0x02, 0xa9, 0xe8, 0x86, 0x4e, 0x59, 0x50, 0x3c, 0xdf, 0x68, 0xc3, 0x05, 0xc5, 0xb9, 0xfa, + 0x1d, 0x81, 0x0f, 0xef, 0xf5, 0x51, 0xe5, 0x68, 0x64, 0xf3, 0xfe, 0x5f, 0xa6, 0xc9, 0xa8, 0x18, + 0xeb, 0xf7, 0xf7, 0xd4, 0xca, 0xf6, 0xf7, 0xb4, 0x6c, 0x7f, 0xbf, 0xdd, 0x05, 0xb8, 0x3e, 0xf4, + 0xf8, 0xf3, 0xb8, 0xe2, 0xdf, 0xe9, 0x08, 0xc9, 0x48, 0xca, 0xd3, 0x7c, 0x24, 0xbe, 0xff, 0xad, + 0xcd, 0x5c, 0x22, 0xb8, 0x55, 0x00, 0x6f, 0x81, 0x01, 0xb6, 0x90, 0xab, 0x1a, 0x88, 0xc0, 0x46, + 0x30, 0xe5, 0xa7, 0x6e, 0x18, 0x91, 0x7e, 0x5a, 0xfc, 0x9b, 0xdb, 0xdb, 0xd5, 0x8e, 0x2c, 0x05, + 0xb9, 0xf1, 0x72, 0xa7, 0xc8, 0x33, 0x8a, 0x2e, 0x89, 0x2c, 0x9a, 0xac, 0x95, 0xec, 0x92, 0x72, + 0xbd, 0x0b, 0x86, 0x25, 0x66, 0x78, 0x0c, 0x12, 0xa4, 0xa0, 0xab, 0xf5, 0x07, 0xfd, 0xf5, 0xa4, + 0xa0, 0xcf, 0xbb, 0x67, 0xfd, 0x1b, 0x71, 0x51, 0x7d, 0xd6, 0xc9, 0x71, 0x91, 0x68, 0x6d, 0x26, + 0xa2, 0xb5, 0xcd, 0xf1, 0x80, 0x54, 0x23, 0x51, 0xd3, 0x74, 0x4e, 0x45, 0x9a, 0x4e, 0xe5, 0xc5, + 0x14, 0x24, 0x23, 0xe7, 0x40, 0xfc, 0x74, 0x3c, 0x6a, 0x0f, 0x37, 0xe7, 0x00, 0x2a, 0x29, 0x28, + 0x6f, 0xca, 0x52, 0xb0, 0x5f, 0x53, 0x1e, 0x6b, 0x12, 0xab, 0x55, 0xa5, 0xd5, 0x5b, 0xda, 0x13, + 0xb9, 0x49, 0x5a, 0x98, 0x11, 0x4d, 0xa3, 0x36, 0xf7, 0x12, 0x6b, 0x22, 0xdb, 0xef, 0x61, 0x33, + 0x1e, 0xa4, 0x7c, 0x0d, 0x8d, 0xb2, 0xc4, 0xa5, 0x86, 0x59, 0xe2, 0x39, 0xd4, 0xca, 0x10, 0xae, + 0x64, 0xeb, 0xff, 0x95, 0x58, 0xed, 0xd6, 0x7f, 0x2f, 0x2e, 0xe2, 0x33, 0x6d, 0xb7, 0x58, 0x89, + 0xde, 0x2f, 0x21, 0x58, 0x2f, 0x66, 0x0b, 0x65, 0x7e, 0xb6, 0xfd, 0x78, 0xfb, 0x0c, 0x05, 0xf3, + 0x80, 0xaf, 0x72, 0xdb, 0x0a, 0x73, 0x91, 0x72, 0xbe, 0x07, 0x06, 0x6a, 0xa7, 0xc0, 0x9f, 0x20, + 0xe8, 0x15, 0x40, 0xa0, 0xcc, 0xb7, 0xda, 0x7b, 0xd1, 0xfe, 0x83, 0x90, 0xac, 0x4f, 0x5d, 0xf9, + 0x6a, 0x1d, 0xf4, 0xd7, 0xe0, 0x78, 0xbb, 0x7b, 0x9a, 0xaf, 0x58, 0x9c, 0xaa, 0xfe, 0x74, 0x51, + 0xa5, 0x26, 0xc5, 0xe0, 0x8c, 0x18, 0xc3, 0x5f, 0xc6, 0xf5, 0xba, 0xdc, 0x39, 0x21, 0x90, 0x14, + 0xa6, 0x2b, 0x28, 0x9e, 0x0e, 0x65, 0xb1, 0x88, 0x07, 0x61, 0x1c, 0x92, 0x86, 0xa5, 0x11, 0x23, + 0xb4, 0x9a, 0xf2, 0xac, 0x06, 0x3c, 0x30, 0x30, 0xaa, 0x29, 0x65, 0xd3, 0x75, 0xf7, 0x27, 0xb1, + 0xa4, 0xbb, 0x7b, 0x65, 0x49, 0xf7, 0x0e, 0x59, 0xa3, 0x7a, 0x6c, 0x13, 0xa4, 0xa2, 0x37, 0x93, + 0xf8, 0x05, 0x04, 0x89, 0x00, 0x0a, 0xa4, 0xba, 0xd0, 0xa4, 0x6b, 0xd1, 0xf0, 0x51, 0xa8, 0x2e, + 0xe4, 0xa1, 0x5c, 0x1b, 0x81, 0x64, 0x64, 0xac, 0xc1, 0x0d, 0x1a, 0xde, 0x0a, 0x29, 0x83, 0xe4, + 0xa8, 0xa1, 0x32, 0xdb, 0x6f, 0xf6, 0xfd, 0x76, 0xd3, 0x43, 0xf7, 0xdb, 0xa2, 0xdb, 0x3f, 0x1d, + 0x17, 0xe2, 0xe3, 0xa8, 0x25, 0x2b, 0x94, 0x64, 0xc7, 0xcb, 0x08, 0xfe, 0xe3, 0xd7, 0xc1, 0x7c, + 0x99, 0x68, 0xd4, 0xd4, 0x6a, 0xda, 0x81, 0x67, 0x5b, 0x44, 0xb3, 0x8e, 0x90, 0xa0, 0x3c, 0x24, + 0x8a, 0x73, 0x15, 0x76, 0x2b, 0x52, 0x83, 0x9b, 0xd8, 0x67, 0x5a, 0x44, 0x7d, 0x25, 0x77, 0xb3, + 0xe6, 0x0a, 0xee, 0x66, 0x57, 0xa8, 0xac, 0x71, 0x48, 0x32, 0xca, 0x98, 0xeb, 0x4a, 0x08, 0x6c, + 0x5a, 0xec, 0x6e, 0x1f, 0xdc, 0xef, 0x25, 0x8e, 0x57, 0x53, 0xb0, 0x51, 0x1e, 0x52, 0x37, 0x45, + 0x0e, 0x46, 0x87, 0xc2, 0x4e, 0xe6, 0x5c, 0x5b, 0x7d, 0xfc, 0x18, 0xec, 0xb7, 0x36, 0xa9, 0x88, + 0x22, 0x96, 0x94, 0xe5, 0x01, 0xd8, 0x20, 0x33, 0xbc, 0xa5, 0xc9, 0xf2, 0xd3, 0xf8, 0x6e, 0xbe, + 0xd8, 0xfe, 0x91, 0x92, 0xec, 0xfc, 0xeb, 0x8d, 0x2e, 0x96, 0x96, 0x3b, 0x60, 0x39, 0xff, 0x78, + 0xd1, 0x74, 0x03, 0xd5, 0x15, 0x2e, 0x3f, 0x33, 0xbc, 0xdf, 0x01, 0xcb, 0x8b, 0x32, 0x17, 0xeb, + 0x8b, 0x56, 0x5c, 0xe5, 0xb5, 0xb5, 0xeb, 0x06, 0xb6, 0xb9, 0x87, 0x9b, 0x80, 0x8f, 0x3b, 0xbb, + 0x9f, 0x55, 0x92, 0x21, 0x7a, 0xc0, 0x75, 0xf9, 0x3f, 0xe8, 0x2f, 0x9b, 0x8b, 0x6a, 0xd0, 0x38, + 0x88, 0x1f, 0x43, 0xa0, 0x6c, 0x2e, 0xce, 0xfa, 0xc7, 0xe0, 0x0f, 0xe5, 0xd7, 0x52, 0x3f, 0xc4, + 0xf7, 0xcf, 0x47, 0x1d, 0x29, 0xb8, 0x26, 0x5c, 0x53, 0xfd, 0xde, 0x05, 0xc3, 0x12, 0x29, 0xe0, + 0x1f, 0xe3, 0x11, 0xbc, 0xd2, 0x99, 0x9a, 0x96, 0x84, 0x90, 0x45, 0x42, 0xa8, 0x40, 0xc2, 0x9f, + 0x85, 0xfb, 0x87, 0xfd, 0xf0, 0x19, 0x8f, 0x02, 0x98, 0xb4, 0x68, 0x71, 0x9d, 0x70, 0x1a, 0x14, + 0xc7, 0x1a, 0x04, 0xdf, 0x0e, 0xa2, 0x5f, 0x50, 0xe9, 0xa2, 0xad, 0x3b, 0xa2, 0x39, 0x70, 0x75, + 0xdc, 0x9d, 0x15, 0x15, 0x6f, 0x36, 0x84, 0x95, 0x3f, 0x1a, 0xfc, 0x66, 0x77, 0x31, 0x1e, 0xe7, + 0x93, 0xed, 0xd3, 0x55, 0xac, 0xf6, 0x47, 0xbc, 0x3b, 0x39, 0x8c, 0x96, 0x4d, 0xdb, 0x51, 0xa5, + 0x0b, 0x51, 0xe9, 0x22, 0xc7, 0x9b, 0x32, 0xf7, 0x2e, 0x98, 0xba, 0x4d, 0x9d, 0x79, 0x61, 0xc2, + 0xf6, 0x53, 0x93, 0x59, 0x0e, 0x4b, 0x3f, 0x21, 0xa2, 0xb0, 0x51, 0x1e, 0x84, 0xac, 0xe2, 0xce, + 0x3b, 0x1f, 0xfd, 0x43, 0x11, 0xbb, 0x3f, 0x6f, 0xcf, 0x2e, 0xf2, 0x3d, 0x0f, 0x7d, 0x71, 0x73, + 0x14, 0x7d, 0x73, 0x73, 0x14, 0xfd, 0x7a, 0x73, 0x14, 0x1d, 0xca, 0x16, 0x75, 0x9e, 0x29, 0x0b, + 0x27, 0xee, 0x64, 0x93, 0xba, 0x46, 0x73, 0xd4, 0x29, 0x4e, 0x96, 0x28, 0x31, 0x78, 0x29, 0x67, + 0xf1, 0x1d, 0xba, 0x59, 0xa4, 0x8c, 0xef, 0x28, 0x73, 0x7d, 0x87, 0x49, 0xb8, 0x7e, 0x84, 0x4e, + 0xda, 0x87, 0x8b, 0x93, 0x65, 0xae, 0x4f, 0x92, 0x3c, 0xb1, 0x39, 0x75, 0xd8, 0xa4, 0x5a, 0x5e, + 0x30, 0x2d, 0x36, 0xc9, 0xb4, 0x12, 0xad, 0x90, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x25, 0x9c, + 0xea, 0x9d, 0x55, 0x25, 0x00, 0x00, +} + +func (m *NetworkInstancesLdp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mpls != nil { + { + size, err := m.Mpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SignalingProtocols != nil { + { + size, err := m.SignalingProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ldp != nil { + { + size, err := m.Ldp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Targeted != nil { + { + size, err := m.Targeted.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.InterfaceAttributes != nil { + { + size, err := m.InterfaceAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Global != nil { + { + size, err := m.Global.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Authentication != nil { + { + size, err := m.Authentication.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LsrId != nil { + i -= len(*m.LsrId) + copy(dAtA[i:], *m.LsrId) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.LsrId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelperEnable != nil { + i-- + if *m.HelperEnable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RecoveryTime != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.RecoveryTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ReconnectTime != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.ReconnectTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enable != nil { + i-- + if *m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelloInterval != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.HelloHoldtime != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloHoldtime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AddressFamilies != nil { + { + size, err := m.AddressFamilies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelloInterval != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.HelloHoldtime != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloHoldtime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AddressFamily) > 0 { + for iNdEx := len(m.AddressFamily) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AddressFamily[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AfiName != nil { + i -= len(*m.AfiName) + copy(dAtA[i:], *m.AfiName) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.AfiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AfiName != nil { + i -= len(*m.AfiName) + copy(dAtA[i:], *m.AfiName) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.AfiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AddressFamilies != nil { + { + size, err := m.AddressFamilies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelloAccept != nil { + i-- + if *m.HelloAccept { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.HelloInterval != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.HelloHoldtime != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloHoldtime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AddressFamily) > 0 { + for iNdEx := len(m.AddressFamily) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AddressFamily[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Targets != nil { + { + size, err := m.Targets.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AfiName != nil { + i -= len(*m.AfiName) + copy(dAtA[i:], *m.AfiName) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.AfiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AfiName != nil { + i -= len(*m.AfiName) + copy(dAtA[i:], *m.AfiName) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.AfiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Target) > 0 { + for iNdEx := len(m.Target) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Target[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.RemoteAddress != nil { + i -= len(*m.RemoteAddress) + copy(dAtA[i:], *m.RemoteAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.RemoteAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelloInterval != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.HelloHoldtime != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloHoldtime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.LocalAddress != nil { + i -= len(*m.LocalAddress) + copy(dAtA[i:], *m.LocalAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.LocalAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.RemoteAddress != nil { + i -= len(*m.RemoteAddress) + copy(dAtA[i:], *m.RemoteAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.RemoteAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Authentication != nil { + { + size, err := m.Authentication.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.HelloAdjacencies != nil { + { + size, err := m.HelloAdjacencies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LabelSpaceId != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.LabelSpaceId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LsrId != nil { + i -= len(*m.LsrId) + copy(dAtA[i:], *m.LsrId) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.LsrId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SessionState != nil { + i -= len(*m.SessionState) + copy(dAtA[i:], *m.SessionState) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.SessionState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LabelSpaceId != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.LabelSpaceId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LsrId != nil { + i -= len(*m.LsrId) + copy(dAtA[i:], *m.LsrId) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.LsrId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.HelloAdjacency) > 0 { + for iNdEx := len(m.HelloAdjacency) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HelloAdjacency[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelloHoldtime != nil { + { + size, err := m.HelloHoldtime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LocalAddress != nil { + i -= len(*m.LocalAddress) + copy(dAtA[i:], *m.LocalAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.LocalAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.RemoteAddress != nil { + i -= len(*m.RemoteAddress) + copy(dAtA[i:], *m.RemoteAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.RemoteAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.JnxEnabled != nil { + i-- + if *m.JnxEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AdjacencyType != nil { + i -= len(*m.AdjacencyType) + copy(dAtA[i:], *m.AdjacencyType) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.AdjacencyType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LocalAddress != nil { + i -= len(*m.LocalAddress) + copy(dAtA[i:], *m.LocalAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.LocalAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.RemoteAddress != nil { + i -= len(*m.RemoteAddress) + copy(dAtA[i:], *m.RemoteAddress) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.RemoteAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdLdpOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelloExpiration != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.HelloExpiration)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Negotiated != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.Negotiated)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Adjacent != nil { + i = encodeVarintRpdLdpOc(dAtA, i, uint64(*m.Adjacent)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLdpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enable != nil { + i-- + if *m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdLdpOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdLdpOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesLdp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Mpls != nil { + l = m.Mpls.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalingProtocols != nil { + l = m.SignalingProtocols.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ldp != nil { + l = m.Ldp.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Global != nil { + l = m.Global.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.InterfaceAttributes != nil { + l = m.InterfaceAttributes.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Targeted != nil { + l = m.Targeted.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Authentication != nil { + l = m.Authentication.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LsrId != nil { + l = len(*m.LsrId) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.ReconnectTime != nil { + n += 2 + sovRpdLdpOc(uint64(*m.ReconnectTime)) + } + if m.RecoveryTime != nil { + n += 2 + sovRpdLdpOc(uint64(*m.RecoveryTime)) + } + if m.HelperEnable != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enable != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HelloHoldtime != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloHoldtime)) + } + if m.HelloInterval != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloInterval)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.AddressFamilies != nil { + l = m.AddressFamilies.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.HelloHoldtime != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloHoldtime)) + } + if m.HelloInterval != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloInterval)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovRpdLdpOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AddressFamily) > 0 { + for _, e := range m.AddressFamily { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiName != nil { + l = len(*m.AfiName) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiName != nil { + l = len(*m.AfiName) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.AddressFamilies != nil { + l = m.AddressFamilies.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HelloHoldtime != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloHoldtime)) + } + if m.HelloInterval != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloInterval)) + } + if m.HelloAccept != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AddressFamily) > 0 { + for _, e := range m.AddressFamily { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiName != nil { + l = len(*m.AfiName) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Targets != nil { + l = m.Targets.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiName != nil { + l = len(*m.AfiName) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Target) > 0 { + for _, e := range m.Target { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteAddress != nil { + l = len(*m.RemoteAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteAddress != nil { + l = len(*m.RemoteAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.LocalAddress != nil { + l = len(*m.LocalAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.HelloHoldtime != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloHoldtime)) + } + if m.HelloInterval != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloInterval)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LsrId != nil { + l = len(*m.LsrId) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.LabelSpaceId != nil { + n += 2 + sovRpdLdpOc(uint64(*m.LabelSpaceId)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.HelloAdjacencies != nil { + l = m.HelloAdjacencies.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Authentication != nil { + l = m.Authentication.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LsrId != nil { + l = len(*m.LsrId) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.LabelSpaceId != nil { + n += 2 + sovRpdLdpOc(uint64(*m.LabelSpaceId)) + } + if m.SessionState != nil { + l = len(*m.SessionState) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.HelloAdjacency) > 0 { + for _, e := range m.HelloAdjacency { + l = e.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteAddress != nil { + l = len(*m.RemoteAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.LocalAddress != nil { + l = len(*m.LocalAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.HelloHoldtime != nil { + l = m.HelloHoldtime.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RemoteAddress != nil { + l = len(*m.RemoteAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.LocalAddress != nil { + l = len(*m.LocalAddress) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.AdjacencyType != nil { + l = len(*m.AdjacencyType) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.JnxEnabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovRpdLdpOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Adjacent != nil { + n += 2 + sovRpdLdpOc(uint64(*m.Adjacent)) + } + if m.Negotiated != nil { + n += 2 + sovRpdLdpOc(uint64(*m.Negotiated)) + } + if m.HelloExpiration != nil { + n += 2 + sovRpdLdpOc(uint64(*m.HelloExpiration)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLdpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enable != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdLdpOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdLdpOc(x uint64) (n int) { + return sovRpdLdpOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesLdp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_ldp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_ldp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesLdpNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Mpls == nil { + m.Mpls = &NetworkInstancesLdpNetworkInstanceListMplsType{} + } + if err := m.Mpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalingProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SignalingProtocols == nil { + m.SignalingProtocols = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType{} + } + if err := m.SignalingProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: signaling_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: signaling_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ldp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ldp == nil { + m.Ldp = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType{} + } + if err := m.Ldp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ldp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ldp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Global", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Global == nil { + m.Global = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType{} + } + if err := m.Global.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceAttributes == nil { + m.InterfaceAttributes = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType{} + } + if err := m.InterfaceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Targeted", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Targeted == nil { + m.Targeted = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType{} + } + if err := m.Targeted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: global_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: global_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authentication", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Authentication == nil { + m.Authentication = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType{} + } + if err := m.Authentication.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LsrId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LsrId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReconnectTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReconnectTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecoveryTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecoveryTime = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelperEnable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.HelperEnable = &b + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: authentication_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: authentication_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeGlobalTypeAuthenticationTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enable = &b + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloHoldtime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloHoldtime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressFamilies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddressFamilies == nil { + m.AddressFamilies = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType{} + } + if err := m.AddressFamilies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloHoldtime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloHoldtime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_families_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_families_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressFamily", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AddressFamily = append(m.AddressFamily, &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList{}) + if err := m.AddressFamily[len(m.AddressFamily)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_family_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_family_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeInterfaceAttributesTypeInterfacesTypeInterfaceListAddressFamiliesTypeAddressFamilyListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: targeted_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: targeted_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressFamilies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddressFamilies == nil { + m.AddressFamilies = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType{} + } + if err := m.AddressFamilies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloHoldtime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloHoldtime = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloAccept", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.HelloAccept = &b + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_families_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_families_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressFamily", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AddressFamily = append(m.AddressFamily, &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList{}) + if err := m.AddressFamily[len(m.AddressFamily)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_family_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_family_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Targets == nil { + m.Targets = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType{} + } + if err := m.Targets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiName = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: targets_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: targets_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Target = append(m.Target, &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList{}) + if err := m.Target[len(m.Target)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: target_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: target_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteAddress = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeTargetedTypeAddressFamiliesTypeAddressFamilyListTargetsTypeTargetListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteAddress = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalAddress = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloHoldtime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloHoldtime = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LsrId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LsrId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelSpaceId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LabelSpaceId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloAdjacencies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HelloAdjacencies == nil { + m.HelloAdjacencies = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType{} + } + if err := m.HelloAdjacencies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authentication", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Authentication == nil { + m.Authentication = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType{} + } + if err := m.Authentication.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LsrId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LsrId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelSpaceId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LabelSpaceId = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionState = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hello_adjacencies_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hello_adjacencies_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloAdjacency", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HelloAdjacency = append(m.HelloAdjacency, &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList{}) + if err := m.HelloAdjacency[len(m.HelloAdjacency)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hello_adjacency_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hello_adjacency_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteAddress = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalAddress = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloHoldtime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HelloHoldtime == nil { + m.HelloHoldtime = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType{} + } + if err := m.HelloHoldtime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteAddress = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjacencyType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdjacencyType = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.JnxEnabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hello_holdtime_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hello_holdtime_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListHelloAdjacenciesTypeHelloAdjacencyListHelloHoldtimeTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Adjacent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Adjacent = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Negotiated", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Negotiated = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloExpiration", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloExpiration = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: authentication_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: authentication_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLdpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLdpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesLdpNetworkInstanceListMplsTypeSignalingProtocolsTypeLdpTypeNeighborsTypeNeighborListAuthenticationTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enable = &b + default: + iNdEx = preIndex + skippy, err := skipRpdLdpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLdpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdLdpOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdLdpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdLdpOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdLdpOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdLdpOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdLdpOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdLdpOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdLdpOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_ldp_oc.proto b/schema/rpd_ldp_oc.proto new file mode 100755 index 0000000..025857b --- /dev/null +++ b/schema/rpd_ldp_oc.proto @@ -0,0 +1,176 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_ldp jnpr_network_instances_ldp_ext = 132; +} + +message network_instances_ldp { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional mpls_type mpls = 151; + message mpls_type { + optional signaling_protocols_type signaling_protocols = 151; + message signaling_protocols_type { + optional ldp_type ldp = 151; + message ldp_type { + optional global_type global = 151; + message global_type { + optional state_type state = 151; + message state_type { + optional string lsr_id = 51; + } + optional graceful_restart_type graceful_restart = 152; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 reconnect_time = 52; + optional uint32 recovery_time = 53; + optional bool helper_enable = 54; + } + } + optional authentication_type authentication = 153; + message authentication_type { + optional state_type state = 151; + message state_type { + optional bool enable = 51; + } + } + } + optional interface_attributes_type interface_attributes = 152; + message interface_attributes_type { + optional state_type state = 151; + message state_type { + optional uint32 hello_holdtime = 51; + optional uint32 hello_interval = 52; + } + optional interfaces_type interfaces = 152; + message interfaces_type { + message interface_list { + optional string interface_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface_id = 51; + optional uint32 hello_holdtime = 52; + optional uint32 hello_interval = 53; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + optional address_families_type address_families = 153; + message address_families_type { + message address_family_list { + optional string afi_name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string afi_name = 51; + optional bool enabled = 52; + } + } + repeated address_family_list address_family = 151; + } + } + repeated interface_list interface = 151; + } + } + optional targeted_type targeted = 153; + message targeted_type { + optional state_type state = 151; + message state_type { + optional uint32 hello_holdtime = 51; + optional uint32 hello_interval = 52; + optional bool hello_accept = 53; + } + optional address_families_type address_families = 152; + message address_families_type { + message address_family_list { + optional string afi_name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string afi_name = 51; + } + optional targets_type targets = 152; + message targets_type { + message target_list { + optional string remote_address = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string remote_address = 51; + optional string local_address = 52; + optional bool enabled = 53; + optional uint32 hello_holdtime = 54; + optional uint32 hello_interval = 55; + } + } + repeated target_list target = 151; + } + } + repeated address_family_list address_family = 151; + } + } + optional neighbors_type neighbors = 154; + message neighbors_type { + message neighbor_list { + optional string lsr_id = 51; + optional uint32 label_space_id = 52; + optional state_type state = 151; + message state_type { + optional string lsr_id = 51; + optional uint32 label_space_id = 52; + optional string session_state = 53; + } + optional hello_adjacencies_type hello_adjacencies = 152; + message hello_adjacencies_type { + message hello_adjacency_list { + optional string remote_address = 51; + optional string local_address = 52; + optional state_type state = 151; + message state_type { + optional string remote_address = 51; + optional string local_address = 52; + optional string adjacency_type = 53; + optional bool jnx_enabled = 54; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + optional hello_holdtime_type hello_holdtime = 153; + message hello_holdtime_type { + optional state_type state = 151; + message state_type { + optional uint32 adjacent = 51; + optional uint32 negotiated = 52; + optional uint64 hello_expiration = 53; + } + } + } + repeated hello_adjacency_list hello_adjacency = 151; + } + optional authentication_type authentication = 153; + message authentication_type { + optional state_type state = 151; + message state_type { + optional bool enable = 51; + } + } + } + repeated neighbor_list neighbor = 151; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/rpd_loc_rib_oc.pb.go b/schema/rpd_loc_rib_oc.pb.go new file mode 100644 index 0000000..e3851ea --- /dev/null +++ b/schema/rpd_loc_rib_oc.pb.go @@ -0,0 +1,3266 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_loc_rib_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LocalRoutesLocRib struct { + StaticRoutes *LocalRoutesLocRibStaticRoutesType `protobuf:"bytes,151,opt,name=static_routes,json=staticRoutes" json:"static_routes,omitempty"` + LocalAggregates *LocalRoutesLocRibLocalAggregatesType `protobuf:"bytes,152,opt,name=local_aggregates,json=localAggregates" json:"local_aggregates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRib) Reset() { *m = LocalRoutesLocRib{} } +func (m *LocalRoutesLocRib) String() string { return proto.CompactTextString(m) } +func (*LocalRoutesLocRib) ProtoMessage() {} +func (*LocalRoutesLocRib) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0} +} +func (m *LocalRoutesLocRib) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRib) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRib.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRib) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRib.Merge(m, src) +} +func (m *LocalRoutesLocRib) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRib) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRib.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRib proto.InternalMessageInfo + +func (m *LocalRoutesLocRib) GetStaticRoutes() *LocalRoutesLocRibStaticRoutesType { + if m != nil { + return m.StaticRoutes + } + return nil +} + +func (m *LocalRoutesLocRib) GetLocalAggregates() *LocalRoutesLocRibLocalAggregatesType { + if m != nil { + return m.LocalAggregates + } + return nil +} + +type LocalRoutesLocRibStaticRoutesType struct { + Static []*LocalRoutesLocRibStaticRoutesTypeStaticList `protobuf:"bytes,51,rep,name=static" json:"static,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesType) Reset() { *m = LocalRoutesLocRibStaticRoutesType{} } +func (m *LocalRoutesLocRibStaticRoutesType) String() string { return proto.CompactTextString(m) } +func (*LocalRoutesLocRibStaticRoutesType) ProtoMessage() {} +func (*LocalRoutesLocRibStaticRoutesType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0} +} +func (m *LocalRoutesLocRibStaticRoutesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesType.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesType) GetStatic() []*LocalRoutesLocRibStaticRoutesTypeStaticList { + if m != nil { + return m.Static + } + return nil +} + +type LocalRoutesLocRibStaticRoutesTypeStaticList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *LocalRoutesLocRibStaticRoutesTypeStaticListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + NextHops *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType `protobuf:"bytes,152,opt,name=next_hops,json=nextHops" json:"next_hops,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticList{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticList) ProtoMessage() {} +func (*LocalRoutesLocRibStaticRoutesTypeStaticList) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticList.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticList.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticList proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) GetState() *LocalRoutesLocRibStaticRoutesTypeStaticListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) GetNextHops() *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType { + if m != nil { + return m.NextHops + } + return nil +} + +type LocalRoutesLocRibStaticRoutesTypeStaticListStateType struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + SetTag *string `protobuf:"bytes,52,opt,name=set_tag,json=setTag" json:"set_tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticListStateType{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListStateType) ProtoMessage() {} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0, 0} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListStateType.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListStateType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) GetSetTag() string { + if m != nil && m.SetTag != nil { + return *m.SetTag + } + return "" +} + +type LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType struct { + NextHop []*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList `protobuf:"bytes,51,rep,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) ProtoMessage() {} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0, 1} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) GetNextHop() []*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList { + if m != nil { + return m.NextHop + } + return nil +} + +type LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList struct { + Index *string `protobuf:"bytes,51,opt,name=index" json:"index,omitempty"` + State *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) ProtoMessage() {} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0, 1, 0} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) GetIndex() string { + if m != nil && m.Index != nil { + return *m.Index + } + return "" +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) GetState() *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) GetInterfaceRef() *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +type LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType struct { + Index *string `protobuf:"bytes,51,opt,name=index" json:"index,omitempty"` + NextHop *string `protobuf:"bytes,52,opt,name=next_hop,json=nextHop" json:"next_hop,omitempty"` + Metric *uint32 `protobuf:"varint,53,opt,name=metric" json:"metric,omitempty"` + Recurse *bool `protobuf:"varint,54,opt,name=recurse" json:"recurse,omitempty"` + SetTag *string `protobuf:"bytes,55,opt,name=set_tag,json=setTag" json:"set_tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) ProtoMessage() {} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0, 1, 0, 0} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) GetIndex() string { + if m != nil && m.Index != nil { + return *m.Index + } + return "" +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) GetNextHop() string { + if m != nil && m.NextHop != nil { + return *m.NextHop + } + return "" +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) GetMetric() uint32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) GetRecurse() bool { + if m != nil && m.Recurse != nil { + return *m.Recurse + } + return false +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) GetSetTag() string { + if m != nil && m.SetTag != nil { + return *m.SetTag + } + return "" +} + +type LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType struct { + State *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) ProtoMessage() { +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0, 1, 0, 1} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) GetState() *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) Reset() { + *m = LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType{} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 0, 0, 1, 0, 1, 0} +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type LocalRoutesLocRibLocalAggregatesType struct { + Aggregate []*LocalRoutesLocRibLocalAggregatesTypeAggregateList `protobuf:"bytes,51,rep,name=aggregate" json:"aggregate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibLocalAggregatesType) Reset() { *m = LocalRoutesLocRibLocalAggregatesType{} } +func (m *LocalRoutesLocRibLocalAggregatesType) String() string { return proto.CompactTextString(m) } +func (*LocalRoutesLocRibLocalAggregatesType) ProtoMessage() {} +func (*LocalRoutesLocRibLocalAggregatesType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 1} +} +func (m *LocalRoutesLocRibLocalAggregatesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibLocalAggregatesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibLocalAggregatesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibLocalAggregatesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibLocalAggregatesType.Merge(m, src) +} +func (m *LocalRoutesLocRibLocalAggregatesType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibLocalAggregatesType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibLocalAggregatesType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibLocalAggregatesType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibLocalAggregatesType) GetAggregate() []*LocalRoutesLocRibLocalAggregatesTypeAggregateList { + if m != nil { + return m.Aggregate + } + return nil +} + +type LocalRoutesLocRibLocalAggregatesTypeAggregateList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) Reset() { + *m = LocalRoutesLocRibLocalAggregatesTypeAggregateList{} +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibLocalAggregatesTypeAggregateList) ProtoMessage() {} +func (*LocalRoutesLocRibLocalAggregatesTypeAggregateList) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 1, 0} +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateList.Merge(m, src) +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateList.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateList proto.InternalMessageInfo + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) GetState() *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType { + if m != nil { + return m.State + } + return nil +} + +type LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + Discard *bool `protobuf:"varint,52,opt,name=discard" json:"discard,omitempty"` + SetTag *string `protobuf:"bytes,53,opt,name=set_tag,json=setTag" json:"set_tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) Reset() { + *m = LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType{} +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) String() string { + return proto.CompactTextString(m) +} +func (*LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) ProtoMessage() {} +func (*LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9ea89688009886c, []int{0, 1, 0, 0} +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType.Merge(m, src) +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) XXX_Size() int { + return m.Size() +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType proto.InternalMessageInfo + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) GetDiscard() bool { + if m != nil && m.Discard != nil { + return *m.Discard + } + return false +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) GetSetTag() string { + if m != nil && m.SetTag != nil { + return *m.SetTag + } + return "" +} + +var E_JnprLocalRoutesLocRibExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*LocalRoutesLocRib)(nil), + Field: 66, + Name: "jnpr_local_routes_loc_rib_ext", + Tag: "bytes,66,opt,name=jnpr_local_routes_loc_rib_ext", + Filename: "rpd_loc_rib_oc.proto", +} + +func init() { + proto.RegisterType((*LocalRoutesLocRib)(nil), "local_routes_loc_rib") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesType)(nil), "local_routes_loc_rib.static_routes_type") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticList)(nil), "local_routes_loc_rib.static_routes_type.static_list") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticListStateType)(nil), "local_routes_loc_rib.static_routes_type.static_list.state_type") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType)(nil), "local_routes_loc_rib.static_routes_type.static_list.next_hops_type") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList)(nil), "local_routes_loc_rib.static_routes_type.static_list.next_hops_type.next_hop_list") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType)(nil), "local_routes_loc_rib.static_routes_type.static_list.next_hops_type.next_hop_list.state_type") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType)(nil), "local_routes_loc_rib.static_routes_type.static_list.next_hops_type.next_hop_list.interface_ref_type") + proto.RegisterType((*LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType)(nil), "local_routes_loc_rib.static_routes_type.static_list.next_hops_type.next_hop_list.interface_ref_type.state_type") + proto.RegisterType((*LocalRoutesLocRibLocalAggregatesType)(nil), "local_routes_loc_rib.local_aggregates_type") + proto.RegisterType((*LocalRoutesLocRibLocalAggregatesTypeAggregateList)(nil), "local_routes_loc_rib.local_aggregates_type.aggregate_list") + proto.RegisterType((*LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType)(nil), "local_routes_loc_rib.local_aggregates_type.aggregate_list.state_type") + proto.RegisterExtension(E_JnprLocalRoutesLocRibExt) +} + +func init() { proto.RegisterFile("rpd_loc_rib_oc.proto", fileDescriptor_b9ea89688009886c) } + +var fileDescriptor_b9ea89688009886c = []byte{ + // 671 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xdd, 0x6a, 0x13, 0x41, + 0x14, 0x66, 0x95, 0x36, 0xc9, 0x69, 0x53, 0x65, 0x6c, 0xed, 0xba, 0x68, 0x09, 0xbd, 0x0a, 0x48, + 0x77, 0xa1, 0x3f, 0x0a, 0x05, 0x11, 0x2b, 0x05, 0x91, 0x52, 0x70, 0x15, 0x2b, 0x52, 0x58, 0x27, + 0x9b, 0x93, 0xcd, 0xa4, 0xdb, 0x9d, 0x65, 0x66, 0xa2, 0xe9, 0x0b, 0x88, 0xf8, 0x02, 0x7a, 0xad, + 0x77, 0x3e, 0x86, 0x20, 0x78, 0x29, 0xf8, 0x00, 0x4a, 0xef, 0x7d, 0x07, 0xd9, 0xcc, 0xee, 0x26, + 0x9b, 0x6e, 0xa1, 0x96, 0xe2, 0x5d, 0xce, 0x37, 0x67, 0xbf, 0x73, 0xce, 0xf7, 0x9d, 0x99, 0xc0, + 0xbc, 0x88, 0xdb, 0x5e, 0xc8, 0x7d, 0x4f, 0xb0, 0x96, 0xc7, 0x7d, 0x3b, 0x16, 0x5c, 0x71, 0xeb, + 0x9a, 0xc2, 0x10, 0x0f, 0x51, 0x89, 0x23, 0x4f, 0xf1, 0x58, 0x83, 0xcb, 0x5f, 0xeb, 0x30, 0x1f, + 0x72, 0x9f, 0x86, 0x9e, 0xe0, 0x7d, 0x85, 0x32, 0xfb, 0x8c, 0xec, 0x42, 0x5d, 0x2a, 0xaa, 0x98, + 0x9f, 0x1e, 0x98, 0x1f, 0x8c, 0x86, 0xd1, 0x9c, 0x59, 0x6d, 0xda, 0x65, 0xe9, 0x76, 0x21, 0xd7, + 0x53, 0x47, 0x31, 0xba, 0xb3, 0x1a, 0x73, 0x87, 0x10, 0xd9, 0x83, 0xab, 0xfa, 0x43, 0x1a, 0x04, + 0x02, 0x03, 0x9a, 0x50, 0x7e, 0xd4, 0x94, 0xb7, 0xcb, 0x29, 0x27, 0xd3, 0x35, 0xeb, 0x95, 0x21, + 0xfc, 0x20, 0x47, 0xad, 0x2f, 0x35, 0x20, 0x27, 0xab, 0x93, 0x1d, 0x98, 0xd6, 0xa8, 0xb9, 0xd6, + 0xb8, 0xdc, 0x9c, 0x59, 0x5d, 0x3f, 0x6b, 0xdf, 0x19, 0x14, 0x32, 0xa9, 0xdc, 0x94, 0xc3, 0xfa, + 0x56, 0x85, 0x99, 0x31, 0x9c, 0x5c, 0x87, 0xe9, 0x58, 0x60, 0x87, 0x0d, 0xcc, 0xb5, 0x86, 0xd1, + 0xac, 0xb9, 0x69, 0x44, 0x9e, 0xc3, 0x54, 0x92, 0x86, 0x99, 0x5a, 0xf7, 0xcf, 0x53, 0x75, 0xf8, + 0x1b, 0xf5, 0xb8, 0x9a, 0x8e, 0x50, 0xa8, 0x45, 0x38, 0x50, 0x5e, 0x97, 0xc7, 0xb9, 0x6c, 0x0f, + 0xcf, 0xc5, 0x9d, 0xd3, 0x68, 0xfe, 0x6a, 0x12, 0x3f, 0xe2, 0xb1, 0xb4, 0xee, 0x01, 0x8c, 0xea, + 0x9e, 0x3a, 0xe0, 0x22, 0x54, 0x24, 0x2a, 0x4f, 0xd1, 0xc0, 0x5c, 0xd7, 0x07, 0x12, 0xd5, 0x33, + 0x1a, 0x58, 0x9f, 0xa7, 0x61, 0xae, 0xc8, 0x4d, 0x42, 0xa8, 0x66, 0x48, 0x6a, 0xc2, 0x93, 0x0b, + 0x68, 0x39, 0x0f, 0xb5, 0x43, 0x95, 0x74, 0x00, 0xeb, 0xd3, 0x14, 0xd4, 0x0b, 0x47, 0x64, 0x1e, + 0xa6, 0x58, 0xd4, 0xc6, 0x6c, 0x04, 0x1d, 0x10, 0x39, 0x61, 0xd1, 0xfe, 0x85, 0xf7, 0x54, 0xe2, + 0xdf, 0x7b, 0x03, 0xea, 0x2c, 0x52, 0x28, 0x3a, 0xd4, 0x47, 0x4f, 0x60, 0x27, 0x33, 0xb1, 0x7d, + 0xf1, 0xd5, 0x0b, 0x75, 0xd2, 0xab, 0x98, 0x63, 0x2e, 0x76, 0xac, 0x77, 0x46, 0xc1, 0xea, 0x72, + 0x99, 0x6e, 0x8c, 0x99, 0xa7, 0x9d, 0xce, 0x94, 0x4e, 0x76, 0x23, 0x79, 0x46, 0x98, 0x6f, 0x6e, + 0x34, 0x8c, 0x66, 0xdd, 0x4d, 0x23, 0x62, 0x42, 0x45, 0xa0, 0xdf, 0x17, 0x12, 0xcd, 0x3b, 0x0d, + 0xa3, 0x59, 0x75, 0xb3, 0x70, 0x7c, 0x6b, 0xee, 0x16, 0xb6, 0xe6, 0x8f, 0x01, 0xe4, 0x64, 0xbf, + 0xe4, 0xad, 0x31, 0x61, 0x12, 0xff, 0x1f, 0x32, 0x9d, 0xf4, 0xcd, 0xda, 0x2d, 0x28, 0x75, 0x13, + 0x6a, 0xf9, 0x57, 0xa9, 0x5a, 0x23, 0x80, 0x2c, 0xc3, 0xac, 0xec, 0xb7, 0x46, 0x09, 0xeb, 0x43, + 0x71, 0x0a, 0x98, 0xf5, 0xf3, 0x12, 0x2c, 0x94, 0xbe, 0x6b, 0xe4, 0x05, 0xd4, 0x72, 0x28, 0xbd, + 0x2d, 0x9b, 0xff, 0xf0, 0x2e, 0xda, 0x79, 0xac, 0xaf, 0xc5, 0x88, 0xcc, 0xfa, 0x65, 0xc0, 0x5c, + 0xf1, 0xf4, 0xd4, 0xdb, 0xbd, 0x3f, 0x21, 0xfb, 0xf6, 0xf9, 0x3b, 0x28, 0x11, 0x73, 0xef, 0x4c, + 0x2f, 0x8c, 0x09, 0x95, 0x36, 0x93, 0x3e, 0x15, 0xed, 0xa1, 0x82, 0x55, 0x37, 0x0b, 0xc7, 0xb7, + 0x68, 0x63, 0x7c, 0x8b, 0x36, 0x39, 0xdc, 0xea, 0x45, 0xb1, 0xf0, 0xca, 0x9a, 0xf5, 0x70, 0xa0, + 0xc8, 0xa2, 0xfd, 0xb8, 0x1f, 0xb1, 0x18, 0xc5, 0x2e, 0xaa, 0x37, 0x5c, 0x1c, 0xc8, 0xa7, 0x18, + 0x49, 0x2e, 0xa4, 0xb9, 0x35, 0x1c, 0x73, 0xa1, 0x74, 0x4c, 0xd7, 0x4c, 0x48, 0x77, 0x92, 0x13, + 0xfd, 0x1f, 0xb6, 0xc3, 0x7d, 0x97, 0xb5, 0xb6, 0x07, 0x6a, 0xeb, 0xd5, 0xf7, 0xe3, 0x25, 0xe3, + 0xc7, 0xf1, 0x92, 0xf1, 0xfb, 0x78, 0xc9, 0x78, 0xe9, 0x06, 0x4c, 0xd9, 0x3d, 0x5d, 0xc0, 0x8e, + 0x50, 0x39, 0xcc, 0xc7, 0x16, 0x8a, 0xc0, 0xe9, 0x22, 0x0d, 0x55, 0xb7, 0xc5, 0xd5, 0x0a, 0x8b, + 0x02, 0x94, 0x6a, 0xa5, 0xa7, 0xd8, 0x4a, 0x44, 0x15, 0x7b, 0x8d, 0x4e, 0x7c, 0x10, 0x38, 0x3d, + 0xc5, 0x1c, 0xda, 0xa6, 0xb1, 0x42, 0x21, 0x1d, 0xaf, 0xd7, 0x8f, 0xb8, 0x74, 0xa4, 0xdf, 0xc5, + 0x43, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0x14, 0x69, 0x46, 0xdf, 0xc3, 0x07, 0x00, 0x00, +} + +func (m *LocalRoutesLocRib) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRib) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRib) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LocalAggregates != nil { + { + size, err := m.LocalAggregates.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.StaticRoutes != nil { + { + size, err := m.StaticRoutes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Static) > 0 { + for iNdEx := len(m.Static) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Static[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NextHops != nil { + { + size, err := m.NextHops.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SetTag != nil { + i -= len(*m.SetTag) + copy(dAtA[i:], *m.SetTag) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.SetTag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NextHop) > 0 { + for iNdEx := len(m.NextHop) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NextHop[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i -= len(*m.Index) + copy(dAtA[i:], *m.Index) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Index))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SetTag != nil { + i -= len(*m.SetTag) + copy(dAtA[i:], *m.SetTag) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.SetTag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Recurse != nil { + i-- + if *m.Recurse { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Metric != nil { + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NextHop != nil { + i -= len(*m.NextHop) + copy(dAtA[i:], *m.NextHop) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.NextHop))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Index != nil { + i -= len(*m.Index) + copy(dAtA[i:], *m.Index) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Index))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibLocalAggregatesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibLocalAggregatesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibLocalAggregatesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Aggregate) > 0 { + for iNdEx := len(m.Aggregate) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Aggregate[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SetTag != nil { + i -= len(*m.SetTag) + copy(dAtA[i:], *m.SetTag) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.SetTag))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Discard != nil { + i-- + if *m.Discard { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdLocRibOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdLocRibOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdLocRibOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LocalRoutesLocRib) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StaticRoutes != nil { + l = m.StaticRoutes.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.LocalAggregates != nil { + l = m.LocalAggregates.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Static) > 0 { + for _, e := range m.Static { + l = e.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.NextHops != nil { + l = m.NextHops.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.SetTag != nil { + l = len(*m.SetTag) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NextHop) > 0 { + for _, e := range m.NextHop { + l = e.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + l = len(*m.Index) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + l = len(*m.Index) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.NextHop != nil { + l = len(*m.NextHop) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.Metric != nil { + n += 2 + sovRpdLocRibOc(uint64(*m.Metric)) + } + if m.Recurse != nil { + n += 3 + } + if m.SetTag != nil { + l = len(*m.SetTag) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovRpdLocRibOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibLocalAggregatesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Aggregate) > 0 { + for _, e := range m.Aggregate { + l = e.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.Discard != nil { + n += 3 + } + if m.SetTag != nil { + l = len(*m.SetTag) + n += 2 + l + sovRpdLocRibOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdLocRibOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdLocRibOc(x uint64) (n int) { + return sovRpdLocRibOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *LocalRoutesLocRib) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: local_routes_loc_rib: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: local_routes_loc_rib: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StaticRoutes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StaticRoutes == nil { + m.StaticRoutes = &LocalRoutesLocRibStaticRoutesType{} + } + if err := m.StaticRoutes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAggregates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LocalAggregates == nil { + m.LocalAggregates = &LocalRoutesLocRibLocalAggregatesType{} + } + if err := m.LocalAggregates.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: static_routes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: static_routes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Static", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Static = append(m.Static, &LocalRoutesLocRibStaticRoutesTypeStaticList{}) + if err := m.Static[len(m.Static)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: static_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: static_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LocalRoutesLocRibStaticRoutesTypeStaticListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHops", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NextHops == nil { + m.NextHops = &LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType{} + } + if err := m.NextHops.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetTag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SetTag = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hops_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hops_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextHop = append(m.NextHop, &LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList{}) + if err := m.NextHop[len(m.NextHop)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: next_hop_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: next_hop_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Index = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Index = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextHop", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextHop = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Recurse", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Recurse = &b + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetTag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SetTag = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibStaticRoutesTypeStaticListNextHopsTypeNextHopListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibLocalAggregatesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: local_aggregates_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: local_aggregates_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aggregate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Aggregate = append(m.Aggregate, &LocalRoutesLocRibLocalAggregatesTypeAggregateList{}) + if err := m.Aggregate[len(m.Aggregate)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: aggregate_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: aggregate_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalRoutesLocRibLocalAggregatesTypeAggregateListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Discard", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Discard = &b + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetTag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdLocRibOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SetTag = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdLocRibOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdLocRibOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdLocRibOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdLocRibOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdLocRibOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdLocRibOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdLocRibOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdLocRibOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdLocRibOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdLocRibOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_loc_rib_oc.proto b/schema/rpd_loc_rib_oc.proto new file mode 100755 index 0000000..df89166 --- /dev/null +++ b/schema/rpd_loc_rib_oc.proto @@ -0,0 +1,58 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional local_routes_loc_rib jnpr_local_routes_loc_rib_ext = 66; +} + +message local_routes_loc_rib { + optional static_routes_type static_routes = 151; + message static_routes_type { + message static_list { + optional string prefix = 51; + optional state_type state = 151; + message state_type { + optional string prefix = 51; + optional string set_tag = 52; + } + optional next_hops_type next_hops = 152; + message next_hops_type { + message next_hop_list { + optional string index = 51; + optional state_type state = 151; + message state_type { + optional string index = 51; + optional string next_hop = 52; + optional uint32 metric = 53; + optional bool recurse = 54; + optional string set_tag = 55; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + } + repeated next_hop_list next_hop = 51; + } + } + repeated static_list static = 51; + } + optional local_aggregates_type local_aggregates = 152; + message local_aggregates_type { + message aggregate_list { + optional string prefix = 51; + optional state_type state = 151; + message state_type { + optional string prefix = 51; + optional bool discard = 52; + optional string set_tag = 53; + } + } + repeated aggregate_list aggregate = 51; + } +} diff --git a/schema/rpd_ni_bgp_oc.pb.go b/schema/rpd_ni_bgp_oc.pb.go new file mode 100644 index 0000000..a135e02 --- /dev/null +++ b/schema/rpd_ni_bgp_oc.pb.go @@ -0,0 +1,51294 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_ni_bgp_oc.proto + +package schema + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesNiBgp struct { + NetworkInstance []*NetworkInstancesNiBgpNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgp) Reset() { *m = NetworkInstancesNiBgp{} } +func (m *NetworkInstancesNiBgp) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesNiBgp) ProtoMessage() {} +func (*NetworkInstancesNiBgp) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0} +} +func (m *NetworkInstancesNiBgp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgp) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgp.Merge(m, src) +} +func (m *NetworkInstancesNiBgp) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgp) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgp.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgp proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgp) GetNetworkInstance() []*NetworkInstancesNiBgpNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Protocols *NetworkInstancesNiBgpNetworkInstanceListProtocolsType `protobuf:"bytes,151,opt,name=protocols" json:"protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesNiBgpNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesNiBgpNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceList) GetProtocols() *NetworkInstancesNiBgpNetworkInstanceListProtocolsType { + if m != nil { + return m.Protocols + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsType struct { + Protocol *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType `protobuf:"bytes,151,opt,name=protocol" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsType) ProtoMessage() {} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) GetProtocol() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType { + if m != nil { + return m.Protocol + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType struct { + Bgp *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType `protobuf:"bytes,151,opt,name=bgp" json:"bgp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) ProtoMessage() {} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) GetBgp() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType { + if m != nil { + return m.Bgp + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType struct { + Global *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType `protobuf:"bytes,151,opt,name=global" json:"global,omitempty"` + Neighbors *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + PeerGroups *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType `protobuf:"bytes,153,opt,name=peer_groups,json=peerGroups" json:"peer_groups,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) ProtoMessage() {} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) GetGlobal() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType { + if m != nil { + return m.Global + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) GetNeighbors() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) GetPeerGroups() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType { + if m != nil { + return m.PeerGroups + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + RouteSelectionOptions *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType `protobuf:"bytes,152,opt,name=route_selection_options,json=routeSelectionOptions" json:"route_selection_options,omitempty"` + Confederation *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType `protobuf:"bytes,153,opt,name=confederation" json:"confederation,omitempty"` + GracefulRestart *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType `protobuf:"bytes,154,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + ApplyPolicy *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType `protobuf:"bytes,171,opt,name=apply_policy,json=applyPolicy" json:"apply_policy,omitempty"` + AfiSafis *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType `protobuf:"bytes,155,opt,name=afi_safis,json=afiSafis" json:"afi_safis,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) GetRouteSelectionOptions() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType { + if m != nil { + return m.RouteSelectionOptions + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) GetConfederation() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType { + if m != nil { + return m.Confederation + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) GetGracefulRestart() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) GetApplyPolicy() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType { + if m != nil { + return m.ApplyPolicy + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) GetAfiSafis() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType { + if m != nil { + return m.AfiSafis + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType struct { + As *uint32 `protobuf:"varint,51,opt,name=as" json:"as,omitempty"` + RouterId *string `protobuf:"bytes,52,opt,name=router_id,json=routerId" json:"router_id,omitempty"` + TotalPaths *uint32 `protobuf:"varint,81,opt,name=total_paths,json=totalPaths" json:"total_paths,omitempty"` + TotalPrefixes *uint32 `protobuf:"varint,82,opt,name=total_prefixes,json=totalPrefixes" json:"total_prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) GetAs() uint32 { + if m != nil && m.As != nil { + return *m.As + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) GetRouterId() string { + if m != nil && m.RouterId != nil { + return *m.RouterId + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) GetTotalPaths() uint32 { + if m != nil && m.TotalPaths != nil { + return *m.TotalPaths + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) GetTotalPrefixes() uint32 { + if m != nil && m.TotalPrefixes != nil { + return *m.TotalPrefixes + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType struct { + AlwaysCompareMed *bool `protobuf:"varint,52,opt,name=always_compare_med,json=alwaysCompareMed" json:"always_compare_med,omitempty"` + IgnoreAsPathLength *bool `protobuf:"varint,53,opt,name=ignore_as_path_length,json=ignoreAsPathLength" json:"ignore_as_path_length,omitempty"` + ExternalCompareRouterId *bool `protobuf:"varint,54,opt,name=external_compare_router_id,json=externalCompareRouterId" json:"external_compare_router_id,omitempty"` + AdvertiseInactiveRoutes *bool `protobuf:"varint,51,opt,name=advertise_inactive_routes,json=advertiseInactiveRoutes" json:"advertise_inactive_routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) GetAlwaysCompareMed() bool { + if m != nil && m.AlwaysCompareMed != nil { + return *m.AlwaysCompareMed + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) GetIgnoreAsPathLength() bool { + if m != nil && m.IgnoreAsPathLength != nil { + return *m.IgnoreAsPathLength + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) GetExternalCompareRouterId() bool { + if m != nil && m.ExternalCompareRouterId != nil { + return *m.ExternalCompareRouterId + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) GetAdvertiseInactiveRoutes() bool { + if m != nil && m.AdvertiseInactiveRoutes != nil { + return *m.AdvertiseInactiveRoutes + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType struct { + Identifier *uint32 `protobuf:"varint,53,opt,name=identifier" json:"identifier,omitempty"` + MemberAs []uint32 `protobuf:"varint,52,rep,name=member_as,json=memberAs" json:"member_as,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) GetIdentifier() uint32 { + if m != nil && m.Identifier != nil { + return *m.Identifier + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) GetMemberAs() []uint32 { + if m != nil { + return m.MemberAs + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 3} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + RestartTime *uint32 `protobuf:"varint,52,opt,name=restart_time,json=restartTime" json:"restart_time,omitempty"` + StaleRoutesTime *float64 `protobuf:"fixed64,53,opt,name=stale_routes_time,json=staleRoutesTime" json:"stale_routes_time,omitempty"` + HelperOnly *bool `protobuf:"varint,54,opt,name=helper_only,json=helperOnly" json:"helper_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 3, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) GetRestartTime() uint32 { + if m != nil && m.RestartTime != nil { + return *m.RestartTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) GetStaleRoutesTime() float64 { + if m != nil && m.StaleRoutesTime != nil { + return *m.StaleRoutesTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) GetHelperOnly() bool { + if m != nil && m.HelperOnly != nil { + return *m.HelperOnly + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 4} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType struct { + ImportPolicy []string `protobuf:"bytes,51,rep,name=import_policy,json=importPolicy" json:"import_policy,omitempty"` + ExportPolicy []string `protobuf:"bytes,52,rep,name=export_policy,json=exportPolicy" json:"export_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 4, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) GetImportPolicy() []string { + if m != nil { + return m.ImportPolicy + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) GetExportPolicy() []string { + if m != nil { + return m.ExportPolicy + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType struct { + AfiSafi []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList `protobuf:"bytes,151,rep,name=afi_safi,json=afiSafi" json:"afi_safi,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) GetAfiSafi() []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList { + if m != nil { + return m.AfiSafi + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList struct { + AfiSafiName *string `protobuf:"bytes,51,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + GracefulRestart *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType `protobuf:"bytes,151,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType `protobuf:"bytes,152,opt,name=state" json:"state,omitempty"` + AddPaths *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType `protobuf:"bytes,153,opt,name=add_paths,json=addPaths" json:"add_paths,omitempty"` + Ipv4Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType `protobuf:"bytes,154,opt,name=ipv4_unicast,json=ipv4Unicast" json:"ipv4_unicast,omitempty"` + Ipv6Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType `protobuf:"bytes,155,opt,name=ipv6_unicast,json=ipv6Unicast" json:"ipv6_unicast,omitempty"` + Ipv4LabeledUnicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType `protobuf:"bytes,156,opt,name=ipv4_labeled_unicast,json=ipv4LabeledUnicast" json:"ipv4_labeled_unicast,omitempty"` + Ipv6LabeledUnicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType `protobuf:"bytes,157,opt,name=ipv6_labeled_unicast,json=ipv6LabeledUnicast" json:"ipv6_labeled_unicast,omitempty"` + L3VpnIpv4Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType `protobuf:"bytes,158,opt,name=l3vpn_ipv4_unicast,json=l3vpnIpv4Unicast" json:"l3vpn_ipv4_unicast,omitempty"` + L3VpnIpv6Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType `protobuf:"bytes,159,opt,name=l3vpn_ipv6_unicast,json=l3vpnIpv6Unicast" json:"l3vpn_ipv6_unicast,omitempty"` + L3VpnIpv4Multicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType `protobuf:"bytes,160,opt,name=l3vpn_ipv4_multicast,json=l3vpnIpv4Multicast" json:"l3vpn_ipv4_multicast,omitempty"` + L3VpnIpv6Multicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType `protobuf:"bytes,161,opt,name=l3vpn_ipv6_multicast,json=l3vpnIpv6Multicast" json:"l3vpn_ipv6_multicast,omitempty"` + L2VpnVpls *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType `protobuf:"bytes,162,opt,name=l2vpn_vpls,json=l2vpnVpls" json:"l2vpn_vpls,omitempty"` + L2VpnEvpn *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType `protobuf:"bytes,163,opt,name=l2vpn_evpn,json=l2vpnEvpn" json:"l2vpn_evpn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetGracefulRestart() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetAddPaths() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType { + if m != nil { + return m.AddPaths + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetIpv4Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType { + if m != nil { + return m.Ipv4Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetIpv6Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType { + if m != nil { + return m.Ipv6Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetIpv4LabeledUnicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType { + if m != nil { + return m.Ipv4LabeledUnicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetIpv6LabeledUnicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType { + if m != nil { + return m.Ipv6LabeledUnicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetL3VpnIpv4Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType { + if m != nil { + return m.L3VpnIpv4Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetL3VpnIpv6Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType { + if m != nil { + return m.L3VpnIpv6Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetL3VpnIpv4Multicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType { + if m != nil { + return m.L3VpnIpv4Multicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetL3VpnIpv6Multicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType { + if m != nil { + return m.L3VpnIpv6Multicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetL2VpnVpls() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType { + if m != nil { + return m.L2VpnVpls + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) GetL2VpnEvpn() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType { + if m != nil { + return m.L2VpnEvpn + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType struct { + AfiSafiName *string `protobuf:"bytes,51,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + Enabled *bool `protobuf:"varint,52,opt,name=enabled" json:"enabled,omitempty"` + TotalPaths *uint32 `protobuf:"varint,81,opt,name=total_paths,json=totalPaths" json:"total_paths,omitempty"` + TotalPrefixes *uint32 `protobuf:"varint,82,opt,name=total_prefixes,json=totalPrefixes" json:"total_prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) GetTotalPaths() uint32 { + if m != nil && m.TotalPaths != nil { + return *m.TotalPaths + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) GetTotalPrefixes() uint32 { + if m != nil && m.TotalPrefixes != nil { + return *m.TotalPrefixes + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType struct { + Receive *bool `protobuf:"varint,51,opt,name=receive" json:"receive,omitempty"` + Send *bool `protobuf:"varint,54,opt,name=send" json:"send,omitempty"` + SendMax *uint32 `protobuf:"varint,52,opt,name=send_max,json=sendMax" json:"send_max,omitempty"` + EligiblePrefixPolicy *string `protobuf:"bytes,53,opt,name=eligible_prefix_policy,json=eligiblePrefixPolicy" json:"eligible_prefix_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetReceive() bool { + if m != nil && m.Receive != nil { + return *m.Receive + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetSend() bool { + if m != nil && m.Send != nil { + return *m.Send + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetSendMax() uint32 { + if m != nil && m.SendMax != nil { + return *m.SendMax + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetEligiblePrefixPolicy() string { + if m != nil && m.EligiblePrefixPolicy != nil { + return *m.EligiblePrefixPolicy + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 3} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 3, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 3, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 4} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 4, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 4, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 5} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 5, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 5, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 6} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 6, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 6, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 7} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 7, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 7, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 8} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 8, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 8, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 9} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 9, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 9, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 10} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 10, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 10, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 11} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 11, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 11, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 12} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 12, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 0, 5, 0, 12, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType struct { + Neighbor []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) GetNeighbor() []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList struct { + NeighborAddress *string `protobuf:"bytes,51,opt,name=neighbor_address,json=neighborAddress" json:"neighbor_address,omitempty"` + SnmpPeerIndex *uint32 `protobuf:"varint,61,opt,name=snmp_peer_index,json=snmpPeerIndex" json:"snmp_peer_index,omitempty"` + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Timers *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType `protobuf:"bytes,152,opt,name=timers" json:"timers,omitempty"` + Transport *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType `protobuf:"bytes,153,opt,name=transport" json:"transport,omitempty"` + ErrorHandling *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType `protobuf:"bytes,154,opt,name=error_handling,json=errorHandling" json:"error_handling,omitempty"` + LoggingOptions *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType `protobuf:"bytes,155,opt,name=logging_options,json=loggingOptions" json:"logging_options,omitempty"` + EbgpMultihop *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType `protobuf:"bytes,156,opt,name=ebgp_multihop,json=ebgpMultihop" json:"ebgp_multihop,omitempty"` + RouteReflector *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType `protobuf:"bytes,157,opt,name=route_reflector,json=routeReflector" json:"route_reflector,omitempty"` + AsPathOptions *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType `protobuf:"bytes,158,opt,name=as_path_options,json=asPathOptions" json:"as_path_options,omitempty"` + UseMultiplePaths *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType `protobuf:"bytes,159,opt,name=use_multiple_paths,json=useMultiplePaths" json:"use_multiple_paths,omitempty"` + AfiSafis *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType `protobuf:"bytes,160,opt,name=afi_safis,json=afiSafis" json:"afi_safis,omitempty"` + GracefulRestart *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType `protobuf:"bytes,161,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + ApplyPolicy *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType `protobuf:"bytes,171,opt,name=apply_policy,json=applyPolicy" json:"apply_policy,omitempty"` + EnableBfd *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType `protobuf:"bytes,172,opt,name=enable_bfd,json=enableBfd" json:"enable_bfd,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetNeighborAddress() string { + if m != nil && m.NeighborAddress != nil { + return *m.NeighborAddress + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetSnmpPeerIndex() uint32 { + if m != nil && m.SnmpPeerIndex != nil { + return *m.SnmpPeerIndex + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetTimers() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType { + if m != nil { + return m.Timers + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetTransport() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType { + if m != nil { + return m.Transport + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetErrorHandling() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType { + if m != nil { + return m.ErrorHandling + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetLoggingOptions() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType { + if m != nil { + return m.LoggingOptions + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetEbgpMultihop() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType { + if m != nil { + return m.EbgpMultihop + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetRouteReflector() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType { + if m != nil { + return m.RouteReflector + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetAsPathOptions() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType { + if m != nil { + return m.AsPathOptions + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetUseMultiplePaths() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType { + if m != nil { + return m.UseMultiplePaths + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetAfiSafis() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType { + if m != nil { + return m.AfiSafis + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetGracefulRestart() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetApplyPolicy() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType { + if m != nil { + return m.ApplyPolicy + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) GetEnableBfd() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType { + if m != nil { + return m.EnableBfd + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType struct { + PeerAs *uint32 `protobuf:"varint,51,opt,name=peer_as,json=peerAs" json:"peer_as,omitempty"` + LocalAs *uint32 `protobuf:"varint,52,opt,name=local_as,json=localAs" json:"local_as,omitempty"` + PeerType *string `protobuf:"bytes,53,opt,name=peer_type,json=peerType" json:"peer_type,omitempty"` + AuthPassword *string `protobuf:"bytes,54,opt,name=auth_password,json=authPassword" json:"auth_password,omitempty"` + RemovePrivateAs *string `protobuf:"bytes,55,opt,name=remove_private_as,json=removePrivateAs" json:"remove_private_as,omitempty"` + RouteFlapDamping *bool `protobuf:"varint,56,opt,name=route_flap_damping,json=routeFlapDamping" json:"route_flap_damping,omitempty"` + Description *string `protobuf:"bytes,57,opt,name=description" json:"description,omitempty"` + SessionState *string `protobuf:"bytes,61,opt,name=session_state,json=sessionState" json:"session_state,omitempty"` + LastEstablished *uint64 `protobuf:"varint,62,opt,name=last_established,json=lastEstablished" json:"last_established,omitempty"` + EstablishedTransitions *uint64 `protobuf:"varint,63,opt,name=established_transitions,json=establishedTransitions" json:"established_transitions,omitempty"` + SupportedCapabilities []string `protobuf:"bytes,64,rep,name=supported_capabilities,json=supportedCapabilities" json:"supported_capabilities,omitempty"` + Messages *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType `protobuf:"bytes,151,opt,name=messages" json:"messages,omitempty"` + Queues *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType `protobuf:"bytes,152,opt,name=queues" json:"queues,omitempty"` + DynamicallyConfigured *bool `protobuf:"varint,77,opt,name=dynamically_configured,json=dynamicallyConfigured" json:"dynamically_configured,omitempty"` + SessionStatus *string `protobuf:"bytes,71,opt,name=session_status,json=sessionStatus" json:"session_status,omitempty"` + SessionAdminStatus *string `protobuf:"bytes,72,opt,name=session_admin_status,json=sessionAdminStatus" json:"session_admin_status,omitempty"` + InterfaceError *bool `protobuf:"varint,74,opt,name=interface_error,json=interfaceError" json:"interface_error,omitempty"` + ImportEvalPending *bool `protobuf:"varint,75,opt,name=import_eval_pending,json=importEvalPending" json:"import_eval_pending,omitempty"` + ImportEval *bool `protobuf:"varint,76,opt,name=import_eval,json=importEval" json:"import_eval,omitempty"` + PeerGroup *string `protobuf:"bytes,81,opt,name=peer_group,json=peerGroup" json:"peer_group,omitempty"` + NeighborAddress *string `protobuf:"bytes,82,opt,name=neighbor_address,json=neighborAddress" json:"neighbor_address,omitempty"` + Enabled *bool `protobuf:"varint,83,opt,name=enabled" json:"enabled,omitempty"` + SnmpPeerIndex *uint32 `protobuf:"varint,84,opt,name=snmp_peer_index,json=snmpPeerIndex" json:"snmp_peer_index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetPeerAs() uint32 { + if m != nil && m.PeerAs != nil { + return *m.PeerAs + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetLocalAs() uint32 { + if m != nil && m.LocalAs != nil { + return *m.LocalAs + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetPeerType() string { + if m != nil && m.PeerType != nil { + return *m.PeerType + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetAuthPassword() string { + if m != nil && m.AuthPassword != nil { + return *m.AuthPassword + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetRemovePrivateAs() string { + if m != nil && m.RemovePrivateAs != nil { + return *m.RemovePrivateAs + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetRouteFlapDamping() bool { + if m != nil && m.RouteFlapDamping != nil { + return *m.RouteFlapDamping + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetSessionState() string { + if m != nil && m.SessionState != nil { + return *m.SessionState + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetLastEstablished() uint64 { + if m != nil && m.LastEstablished != nil { + return *m.LastEstablished + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetEstablishedTransitions() uint64 { + if m != nil && m.EstablishedTransitions != nil { + return *m.EstablishedTransitions + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetSupportedCapabilities() []string { + if m != nil { + return m.SupportedCapabilities + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetMessages() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType { + if m != nil { + return m.Messages + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetQueues() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType { + if m != nil { + return m.Queues + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetDynamicallyConfigured() bool { + if m != nil && m.DynamicallyConfigured != nil { + return *m.DynamicallyConfigured + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetSessionStatus() string { + if m != nil && m.SessionStatus != nil { + return *m.SessionStatus + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetSessionAdminStatus() string { + if m != nil && m.SessionAdminStatus != nil { + return *m.SessionAdminStatus + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetInterfaceError() bool { + if m != nil && m.InterfaceError != nil { + return *m.InterfaceError + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetImportEvalPending() bool { + if m != nil && m.ImportEvalPending != nil { + return *m.ImportEvalPending + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetImportEval() bool { + if m != nil && m.ImportEval != nil { + return *m.ImportEval + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetPeerGroup() string { + if m != nil && m.PeerGroup != nil { + return *m.PeerGroup + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetNeighborAddress() string { + if m != nil && m.NeighborAddress != nil { + return *m.NeighborAddress + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) GetSnmpPeerIndex() uint32 { + if m != nil && m.SnmpPeerIndex != nil { + return *m.SnmpPeerIndex + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType struct { + Sent *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType `protobuf:"bytes,151,opt,name=sent" json:"sent,omitempty"` + Received *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType `protobuf:"bytes,152,opt,name=received" json:"received,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) GetSent() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType { + if m != nil { + return m.Sent + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) GetReceived() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType { + if m != nil { + return m.Received + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType struct { + UPDATE *uint64 `protobuf:"varint,65,opt,name=UPDATE" json:"UPDATE,omitempty"` + NOTIFICATION *uint64 `protobuf:"varint,66,opt,name=NOTIFICATION" json:"NOTIFICATION,omitempty"` + LastNotificationTime *uint64 `protobuf:"varint,71,opt,name=last_notification_time,json=lastNotificationTime" json:"last_notification_time,omitempty"` + LastNotificationErrorCode *string `protobuf:"bytes,72,opt,name=last_notification_error_code,json=lastNotificationErrorCode" json:"last_notification_error_code,omitempty"` + LastNotificationErrorSubcode *string `protobuf:"bytes,73,opt,name=last_notification_error_subcode,json=lastNotificationErrorSubcode" json:"last_notification_error_subcode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) GetUPDATE() uint64 { + if m != nil && m.UPDATE != nil { + return *m.UPDATE + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) GetNOTIFICATION() uint64 { + if m != nil && m.NOTIFICATION != nil { + return *m.NOTIFICATION + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) GetLastNotificationTime() uint64 { + if m != nil && m.LastNotificationTime != nil { + return *m.LastNotificationTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) GetLastNotificationErrorCode() string { + if m != nil && m.LastNotificationErrorCode != nil { + return *m.LastNotificationErrorCode + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) GetLastNotificationErrorSubcode() string { + if m != nil && m.LastNotificationErrorSubcode != nil { + return *m.LastNotificationErrorSubcode + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType struct { + UPDATE *uint64 `protobuf:"varint,67,opt,name=UPDATE" json:"UPDATE,omitempty"` + NOTIFICATION *uint64 `protobuf:"varint,68,opt,name=NOTIFICATION" json:"NOTIFICATION,omitempty"` + LastNotificationTime *uint64 `protobuf:"varint,74,opt,name=last_notification_time,json=lastNotificationTime" json:"last_notification_time,omitempty"` + LastNotificationErrorCode *string `protobuf:"bytes,75,opt,name=last_notification_error_code,json=lastNotificationErrorCode" json:"last_notification_error_code,omitempty"` + LastNotificationErrorSubcode *string `protobuf:"bytes,76,opt,name=last_notification_error_subcode,json=lastNotificationErrorSubcode" json:"last_notification_error_subcode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 0, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) GetUPDATE() uint64 { + if m != nil && m.UPDATE != nil { + return *m.UPDATE + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) GetNOTIFICATION() uint64 { + if m != nil && m.NOTIFICATION != nil { + return *m.NOTIFICATION + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) GetLastNotificationTime() uint64 { + if m != nil && m.LastNotificationTime != nil { + return *m.LastNotificationTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) GetLastNotificationErrorCode() string { + if m != nil && m.LastNotificationErrorCode != nil { + return *m.LastNotificationErrorCode + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) GetLastNotificationErrorSubcode() string { + if m != nil && m.LastNotificationErrorSubcode != nil { + return *m.LastNotificationErrorSubcode + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType struct { + Input *uint32 `protobuf:"varint,69,opt,name=input" json:"input,omitempty"` + Output *uint32 `protobuf:"varint,70,opt,name=output" json:"output,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) GetInput() uint32 { + if m != nil && m.Input != nil { + return *m.Input + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) GetOutput() uint32 { + if m != nil && m.Output != nil { + return *m.Output + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType struct { + ConnectRetry *float64 `protobuf:"fixed64,51,opt,name=connect_retry,json=connectRetry" json:"connect_retry,omitempty"` + HoldTime *float64 `protobuf:"fixed64,52,opt,name=hold_time,json=holdTime" json:"hold_time,omitempty"` + KeepaliveInterval *float64 `protobuf:"fixed64,53,opt,name=keepalive_interval,json=keepaliveInterval" json:"keepalive_interval,omitempty"` + MinimumAdvertisementInterval *float64 `protobuf:"fixed64,54,opt,name=minimum_advertisement_interval,json=minimumAdvertisementInterval" json:"minimum_advertisement_interval,omitempty"` + NegotiatedHoldTime *float64 `protobuf:"fixed64,61,opt,name=negotiated_hold_time,json=negotiatedHoldTime" json:"negotiated_hold_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) GetConnectRetry() float64 { + if m != nil && m.ConnectRetry != nil { + return *m.ConnectRetry + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) GetHoldTime() float64 { + if m != nil && m.HoldTime != nil { + return *m.HoldTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) GetKeepaliveInterval() float64 { + if m != nil && m.KeepaliveInterval != nil { + return *m.KeepaliveInterval + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) GetMinimumAdvertisementInterval() float64 { + if m != nil && m.MinimumAdvertisementInterval != nil { + return *m.MinimumAdvertisementInterval + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) GetNegotiatedHoldTime() float64 { + if m != nil && m.NegotiatedHoldTime != nil { + return *m.NegotiatedHoldTime + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType struct { + TcpMss *uint32 `protobuf:"varint,51,opt,name=tcp_mss,json=tcpMss" json:"tcp_mss,omitempty"` + MtuDiscovery *bool `protobuf:"varint,52,opt,name=mtu_discovery,json=mtuDiscovery" json:"mtu_discovery,omitempty"` + PassiveMode *bool `protobuf:"varint,53,opt,name=passive_mode,json=passiveMode" json:"passive_mode,omitempty"` + LocalAddress *string `protobuf:"bytes,54,opt,name=local_address,json=localAddress" json:"local_address,omitempty"` + LocalPort *uint32 `protobuf:"varint,61,opt,name=local_port,json=localPort" json:"local_port,omitempty"` + RemoteAddress *string `protobuf:"bytes,62,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"` + RemotePort *uint32 `protobuf:"varint,63,opt,name=remote_port,json=remotePort" json:"remote_port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetTcpMss() uint32 { + if m != nil && m.TcpMss != nil { + return *m.TcpMss + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetMtuDiscovery() bool { + if m != nil && m.MtuDiscovery != nil { + return *m.MtuDiscovery + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetPassiveMode() bool { + if m != nil && m.PassiveMode != nil { + return *m.PassiveMode + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetLocalAddress() string { + if m != nil && m.LocalAddress != nil { + return *m.LocalAddress + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetLocalPort() uint32 { + if m != nil && m.LocalPort != nil { + return *m.LocalPort + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetRemoteAddress() string { + if m != nil && m.RemoteAddress != nil { + return *m.RemoteAddress + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) GetRemotePort() uint32 { + if m != nil && m.RemotePort != nil { + return *m.RemotePort + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 3} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType struct { + TreatAsWithdraw *bool `protobuf:"varint,51,opt,name=treat_as_withdraw,json=treatAsWithdraw" json:"treat_as_withdraw,omitempty"` + ErroneousUpdateMessages *uint32 `protobuf:"varint,61,opt,name=erroneous_update_messages,json=erroneousUpdateMessages" json:"erroneous_update_messages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 3, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) GetTreatAsWithdraw() bool { + if m != nil && m.TreatAsWithdraw != nil { + return *m.TreatAsWithdraw + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) GetErroneousUpdateMessages() uint32 { + if m != nil && m.ErroneousUpdateMessages != nil { + return *m.ErroneousUpdateMessages + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 4} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType struct { + LogNeighborStateChanges *bool `protobuf:"varint,51,opt,name=log_neighbor_state_changes,json=logNeighborStateChanges" json:"log_neighbor_state_changes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 4, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) GetLogNeighborStateChanges() bool { + if m != nil && m.LogNeighborStateChanges != nil { + return *m.LogNeighborStateChanges + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 5} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + MultihopTtl *uint32 `protobuf:"varint,52,opt,name=multihop_ttl,json=multihopTtl" json:"multihop_ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 5, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) GetMultihopTtl() uint32 { + if m != nil && m.MultihopTtl != nil { + return *m.MultihopTtl + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 6} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType struct { + RouteReflectorClusterId *string `protobuf:"bytes,51,opt,name=route_reflector_cluster_id,json=routeReflectorClusterId" json:"route_reflector_cluster_id,omitempty"` + RouteReflectorClient *bool `protobuf:"varint,52,opt,name=route_reflector_client,json=routeReflectorClient" json:"route_reflector_client,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 6, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) GetRouteReflectorClusterId() string { + if m != nil && m.RouteReflectorClusterId != nil { + return *m.RouteReflectorClusterId + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) GetRouteReflectorClient() bool { + if m != nil && m.RouteReflectorClient != nil { + return *m.RouteReflectorClient + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 7} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType struct { + AllowOwnAs *uint32 `protobuf:"varint,51,opt,name=allow_own_as,json=allowOwnAs" json:"allow_own_as,omitempty"` + ReplacePeerAs *bool `protobuf:"varint,52,opt,name=replace_peer_as,json=replacePeerAs" json:"replace_peer_as,omitempty"` + DisablePeerAsFilter *bool `protobuf:"varint,53,opt,name=disable_peer_as_filter,json=disablePeerAsFilter" json:"disable_peer_as_filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 7, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) GetAllowOwnAs() uint32 { + if m != nil && m.AllowOwnAs != nil { + return *m.AllowOwnAs + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) GetReplacePeerAs() bool { + if m != nil && m.ReplacePeerAs != nil { + return *m.ReplacePeerAs + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) GetDisablePeerAsFilter() bool { + if m != nil && m.DisablePeerAsFilter != nil { + return *m.DisablePeerAsFilter + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Ebgp *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType `protobuf:"bytes,152,opt,name=ebgp" json:"ebgp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 8} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) GetEbgp() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType { + if m != nil { + return m.Ebgp + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 8, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 8, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType struct { + AllowMultipleAs *bool `protobuf:"varint,51,opt,name=allow_multiple_as,json=allowMultipleAs" json:"allow_multiple_as,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 8, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) GetAllowMultipleAs() bool { + if m != nil && m.AllowMultipleAs != nil { + return *m.AllowMultipleAs + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType struct { + AfiSafi []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList `protobuf:"bytes,51,rep,name=afi_safi,json=afiSafi" json:"afi_safi,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) GetAfiSafi() []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList { + if m != nil { + return m.AfiSafi + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList struct { + AfiSafiName *string `protobuf:"bytes,51,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + GracefulRestart *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType `protobuf:"bytes,151,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType `protobuf:"bytes,152,opt,name=state" json:"state,omitempty"` + AddPaths *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType `protobuf:"bytes,153,opt,name=add_paths,json=addPaths" json:"add_paths,omitempty"` + Ipv4Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType `protobuf:"bytes,154,opt,name=ipv4_unicast,json=ipv4Unicast" json:"ipv4_unicast,omitempty"` + Ipv6Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType `protobuf:"bytes,155,opt,name=ipv6_unicast,json=ipv6Unicast" json:"ipv6_unicast,omitempty"` + Ipv4LabeledUnicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType `protobuf:"bytes,156,opt,name=ipv4_labeled_unicast,json=ipv4LabeledUnicast" json:"ipv4_labeled_unicast,omitempty"` + Ipv6LabeledUnicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType `protobuf:"bytes,157,opt,name=ipv6_labeled_unicast,json=ipv6LabeledUnicast" json:"ipv6_labeled_unicast,omitempty"` + L3VpnIpv4Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType `protobuf:"bytes,158,opt,name=l3vpn_ipv4_unicast,json=l3vpnIpv4Unicast" json:"l3vpn_ipv4_unicast,omitempty"` + L3VpnIpv6Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType `protobuf:"bytes,159,opt,name=l3vpn_ipv6_unicast,json=l3vpnIpv6Unicast" json:"l3vpn_ipv6_unicast,omitempty"` + L3VpnIpv4Multicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType `protobuf:"bytes,160,opt,name=l3vpn_ipv4_multicast,json=l3vpnIpv4Multicast" json:"l3vpn_ipv4_multicast,omitempty"` + L3VpnIpv6Multicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType `protobuf:"bytes,161,opt,name=l3vpn_ipv6_multicast,json=l3vpnIpv6Multicast" json:"l3vpn_ipv6_multicast,omitempty"` + L2VpnVpls *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType `protobuf:"bytes,162,opt,name=l2vpn_vpls,json=l2vpnVpls" json:"l2vpn_vpls,omitempty"` + L2VpnEvpn *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType `protobuf:"bytes,163,opt,name=l2vpn_evpn,json=l2vpnEvpn" json:"l2vpn_evpn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetGracefulRestart() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetAddPaths() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType { + if m != nil { + return m.AddPaths + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetIpv4Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType { + if m != nil { + return m.Ipv4Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetIpv6Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType { + if m != nil { + return m.Ipv6Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetIpv4LabeledUnicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType { + if m != nil { + return m.Ipv4LabeledUnicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetIpv6LabeledUnicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType { + if m != nil { + return m.Ipv6LabeledUnicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetL3VpnIpv4Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType { + if m != nil { + return m.L3VpnIpv4Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetL3VpnIpv6Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType { + if m != nil { + return m.L3VpnIpv6Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetL3VpnIpv4Multicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType { + if m != nil { + return m.L3VpnIpv4Multicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetL3VpnIpv6Multicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType { + if m != nil { + return m.L3VpnIpv6Multicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetL2VpnVpls() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType { + if m != nil { + return m.L2VpnVpls + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) GetL2VpnEvpn() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType { + if m != nil { + return m.L2VpnEvpn + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + Received *bool `protobuf:"varint,61,opt,name=received" json:"received,omitempty"` + Advertised *bool `protobuf:"varint,62,opt,name=advertised" json:"advertised,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) GetReceived() bool { + if m != nil && m.Received != nil { + return *m.Received + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) GetAdvertised() bool { + if m != nil && m.Advertised != nil { + return *m.Advertised + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType struct { + AfiSafiName *string `protobuf:"bytes,51,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + Enabled *bool `protobuf:"varint,52,opt,name=enabled" json:"enabled,omitempty"` + Active *bool `protobuf:"varint,61,opt,name=active" json:"active,omitempty"` + Prefixes *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType `protobuf:"bytes,151,opt,name=prefixes" json:"prefixes,omitempty"` + PrefixLimitExceeded *bool `protobuf:"varint,72,opt,name=prefix_limit_exceeded,json=prefixLimitExceeded" json:"prefix_limit_exceeded,omitempty"` + Queues *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType `protobuf:"bytes,152,opt,name=queues" json:"queues,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) GetActive() bool { + if m != nil && m.Active != nil { + return *m.Active + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) GetPrefixes() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType { + if m != nil { + return m.Prefixes + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) GetPrefixLimitExceeded() bool { + if m != nil && m.PrefixLimitExceeded != nil { + return *m.PrefixLimitExceeded + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) GetQueues() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType { + if m != nil { + return m.Queues + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType struct { + Received *uint32 `protobuf:"varint,63,opt,name=received" json:"received,omitempty"` + Sent *uint32 `protobuf:"varint,64,opt,name=sent" json:"sent,omitempty"` + Installed *uint32 `protobuf:"varint,65,opt,name=installed" json:"installed,omitempty"` + Accepted *uint32 `protobuf:"varint,62,opt,name=accepted" json:"accepted,omitempty"` + ReceivedPrePolicy *uint32 `protobuf:"varint,69,opt,name=received_pre_policy,json=receivedPrePolicy" json:"received_pre_policy,omitempty"` + Rejected *uint32 `protobuf:"varint,70,opt,name=rejected" json:"rejected,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetInstalled() uint32 { + if m != nil && m.Installed != nil { + return *m.Installed + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetAccepted() uint32 { + if m != nil && m.Accepted != nil { + return *m.Accepted + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetReceivedPrePolicy() uint32 { + if m != nil && m.ReceivedPrePolicy != nil { + return *m.ReceivedPrePolicy + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetRejected() uint32 { + if m != nil && m.Rejected != nil { + return *m.Rejected + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType struct { + Input *uint32 `protobuf:"varint,73,opt,name=input" json:"input,omitempty"` + Output *uint32 `protobuf:"varint,74,opt,name=output" json:"output,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 1, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) GetInput() uint32 { + if m != nil && m.Input != nil { + return *m.Input + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) GetOutput() uint32 { + if m != nil && m.Output != nil { + return *m.Output + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType struct { + Receive *bool `protobuf:"varint,51,opt,name=receive" json:"receive,omitempty"` + Send *bool `protobuf:"varint,54,opt,name=send" json:"send,omitempty"` + SendMax *uint32 `protobuf:"varint,52,opt,name=send_max,json=sendMax" json:"send_max,omitempty"` + EligiblePrefixPolicy *string `protobuf:"bytes,53,opt,name=eligible_prefix_policy,json=eligiblePrefixPolicy" json:"eligible_prefix_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetReceive() bool { + if m != nil && m.Receive != nil { + return *m.Receive + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetSend() bool { + if m != nil && m.Send != nil { + return *m.Send + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetSendMax() uint32 { + if m != nil && m.SendMax != nil { + return *m.SendMax + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetEligiblePrefixPolicy() string { + if m != nil && m.EligiblePrefixPolicy != nil { + return *m.EligiblePrefixPolicy + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 3} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 3, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 3, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 4} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 4, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 4, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 5} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 5, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 5, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 6} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 6, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 6, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 7} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 7, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 7, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 8} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 8, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 8, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 9} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 9, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 9, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 10} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 10, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 10, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 11} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 11, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 11, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 12} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 12, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 9, 0, 12, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 10} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + RestartTime *uint32 `protobuf:"varint,52,opt,name=restart_time,json=restartTime" json:"restart_time,omitempty"` + StaleRoutesTime *float64 `protobuf:"fixed64,53,opt,name=stale_routes_time,json=staleRoutesTime" json:"stale_routes_time,omitempty"` + HelperOnly *bool `protobuf:"varint,54,opt,name=helper_only,json=helperOnly" json:"helper_only,omitempty"` + PeerRestartTime *uint32 `protobuf:"varint,61,opt,name=peer_restart_time,json=peerRestartTime" json:"peer_restart_time,omitempty"` + PeerRestarting *bool `protobuf:"varint,62,opt,name=peer_restarting,json=peerRestarting" json:"peer_restarting,omitempty"` + LocalRestarting *bool `protobuf:"varint,63,opt,name=local_restarting,json=localRestarting" json:"local_restarting,omitempty"` + Mode *string `protobuf:"bytes,64,opt,name=mode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 10, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetRestartTime() uint32 { + if m != nil && m.RestartTime != nil { + return *m.RestartTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetStaleRoutesTime() float64 { + if m != nil && m.StaleRoutesTime != nil { + return *m.StaleRoutesTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetHelperOnly() bool { + if m != nil && m.HelperOnly != nil { + return *m.HelperOnly + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetPeerRestartTime() uint32 { + if m != nil && m.PeerRestartTime != nil { + return *m.PeerRestartTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetPeerRestarting() bool { + if m != nil && m.PeerRestarting != nil { + return *m.PeerRestarting + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetLocalRestarting() bool { + if m != nil && m.LocalRestarting != nil { + return *m.LocalRestarting + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) GetMode() string { + if m != nil && m.Mode != nil { + return *m.Mode + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 11} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType struct { + ImportPolicy []string `protobuf:"bytes,51,rep,name=import_policy,json=importPolicy" json:"import_policy,omitempty"` + ExportPolicy []string `protobuf:"bytes,52,rep,name=export_policy,json=exportPolicy" json:"export_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 11, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) GetImportPolicy() []string { + if m != nil { + return m.ImportPolicy + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) GetExportPolicy() []string { + if m != nil { + return m.ExportPolicy + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 12} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + JnxMinTxInterval *uint32 `protobuf:"varint,52,opt,name=jnx_min_tx_interval,json=jnxMinTxInterval" json:"jnx_min_tx_interval,omitempty"` + JnxLocalMultiplier *uint32 `protobuf:"varint,53,opt,name=jnx_local_multiplier,json=jnxLocalMultiplier" json:"jnx_local_multiplier,omitempty"` + JnxMinRxInterval *uint32 `protobuf:"varint,54,opt,name=jnx_min_rx_interval,json=jnxMinRxInterval" json:"jnx_min_rx_interval,omitempty"` + JnxSessionState *bool `protobuf:"varint,55,opt,name=jnx_session_state,json=jnxSessionState" json:"jnx_session_state,omitempty"` + JnxSessionMode *string `protobuf:"bytes,56,opt,name=jnx_session_mode,json=jnxSessionMode" json:"jnx_session_mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 1, 0, 12, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) GetJnxMinTxInterval() uint32 { + if m != nil && m.JnxMinTxInterval != nil { + return *m.JnxMinTxInterval + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) GetJnxLocalMultiplier() uint32 { + if m != nil && m.JnxLocalMultiplier != nil { + return *m.JnxLocalMultiplier + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) GetJnxMinRxInterval() uint32 { + if m != nil && m.JnxMinRxInterval != nil { + return *m.JnxMinRxInterval + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) GetJnxSessionState() bool { + if m != nil && m.JnxSessionState != nil { + return *m.JnxSessionState + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) GetJnxSessionMode() string { + if m != nil && m.JnxSessionMode != nil { + return *m.JnxSessionMode + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType struct { + PeerGroup []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList `protobuf:"bytes,151,rep,name=peer_group,json=peerGroup" json:"peer_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) GetPeerGroup() []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList { + if m != nil { + return m.PeerGroup + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList struct { + PeerGroupName *string `protobuf:"bytes,61,opt,name=peer_group_name,json=peerGroupName" json:"peer_group_name,omitempty"` + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Timers *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType `protobuf:"bytes,152,opt,name=timers" json:"timers,omitempty"` + Transport *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType `protobuf:"bytes,153,opt,name=transport" json:"transport,omitempty"` + ErrorHandling *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType `protobuf:"bytes,154,opt,name=error_handling,json=errorHandling" json:"error_handling,omitempty"` + LoggingOptions *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType `protobuf:"bytes,155,opt,name=logging_options,json=loggingOptions" json:"logging_options,omitempty"` + EbgpMultihop *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType `protobuf:"bytes,156,opt,name=ebgp_multihop,json=ebgpMultihop" json:"ebgp_multihop,omitempty"` + RouteReflector *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType `protobuf:"bytes,157,opt,name=route_reflector,json=routeReflector" json:"route_reflector,omitempty"` + AsPathOptions *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType `protobuf:"bytes,158,opt,name=as_path_options,json=asPathOptions" json:"as_path_options,omitempty"` + UseMultiplePaths *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType `protobuf:"bytes,159,opt,name=use_multiple_paths,json=useMultiplePaths" json:"use_multiple_paths,omitempty"` + AfiSafis *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType `protobuf:"bytes,160,opt,name=afi_safis,json=afiSafis" json:"afi_safis,omitempty"` + GracefulRestart *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType `protobuf:"bytes,161,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + ApplyPolicy *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType `protobuf:"bytes,171,opt,name=apply_policy,json=applyPolicy" json:"apply_policy,omitempty"` + EnableBfd *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType `protobuf:"bytes,172,opt,name=enable_bfd,json=enableBfd" json:"enable_bfd,omitempty"` + DynamicNeighborPrefixes *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType `protobuf:"bytes,163,opt,name=dynamic_neighbor_prefixes,json=dynamicNeighborPrefixes" json:"dynamic_neighbor_prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetPeerGroupName() string { + if m != nil && m.PeerGroupName != nil { + return *m.PeerGroupName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetTimers() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType { + if m != nil { + return m.Timers + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetTransport() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType { + if m != nil { + return m.Transport + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetErrorHandling() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType { + if m != nil { + return m.ErrorHandling + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetLoggingOptions() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType { + if m != nil { + return m.LoggingOptions + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetEbgpMultihop() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType { + if m != nil { + return m.EbgpMultihop + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetRouteReflector() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType { + if m != nil { + return m.RouteReflector + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetAsPathOptions() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType { + if m != nil { + return m.AsPathOptions + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetUseMultiplePaths() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType { + if m != nil { + return m.UseMultiplePaths + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetAfiSafis() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType { + if m != nil { + return m.AfiSafis + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetGracefulRestart() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetApplyPolicy() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType { + if m != nil { + return m.ApplyPolicy + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetEnableBfd() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType { + if m != nil { + return m.EnableBfd + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) GetDynamicNeighborPrefixes() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType { + if m != nil { + return m.DynamicNeighborPrefixes + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType struct { + PeerAs *uint32 `protobuf:"varint,51,opt,name=peer_as,json=peerAs" json:"peer_as,omitempty"` + LocalAs *uint32 `protobuf:"varint,52,opt,name=local_as,json=localAs" json:"local_as,omitempty"` + PeerType *string `protobuf:"bytes,53,opt,name=peer_type,json=peerType" json:"peer_type,omitempty"` + AuthPassword *string `protobuf:"bytes,54,opt,name=auth_password,json=authPassword" json:"auth_password,omitempty"` + RemovePrivateAs *string `protobuf:"bytes,55,opt,name=remove_private_as,json=removePrivateAs" json:"remove_private_as,omitempty"` + RouteFlapDamping *bool `protobuf:"varint,56,opt,name=route_flap_damping,json=routeFlapDamping" json:"route_flap_damping,omitempty"` + Description *string `protobuf:"bytes,57,opt,name=description" json:"description,omitempty"` + PeerGroupName *string `protobuf:"bytes,61,opt,name=peer_group_name,json=peerGroupName" json:"peer_group_name,omitempty"` + TotalPaths *uint32 `protobuf:"varint,81,opt,name=total_paths,json=totalPaths" json:"total_paths,omitempty"` + TotalPrefixes *uint32 `protobuf:"varint,82,opt,name=total_prefixes,json=totalPrefixes" json:"total_prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetPeerAs() uint32 { + if m != nil && m.PeerAs != nil { + return *m.PeerAs + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetLocalAs() uint32 { + if m != nil && m.LocalAs != nil { + return *m.LocalAs + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetPeerType() string { + if m != nil && m.PeerType != nil { + return *m.PeerType + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetAuthPassword() string { + if m != nil && m.AuthPassword != nil { + return *m.AuthPassword + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetRemovePrivateAs() string { + if m != nil && m.RemovePrivateAs != nil { + return *m.RemovePrivateAs + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetRouteFlapDamping() bool { + if m != nil && m.RouteFlapDamping != nil { + return *m.RouteFlapDamping + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetPeerGroupName() string { + if m != nil && m.PeerGroupName != nil { + return *m.PeerGroupName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetTotalPaths() uint32 { + if m != nil && m.TotalPaths != nil { + return *m.TotalPaths + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) GetTotalPrefixes() uint32 { + if m != nil && m.TotalPrefixes != nil { + return *m.TotalPrefixes + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType struct { + ConnectRetry *float64 `protobuf:"fixed64,51,opt,name=connect_retry,json=connectRetry" json:"connect_retry,omitempty"` + HoldTime *float64 `protobuf:"fixed64,52,opt,name=hold_time,json=holdTime" json:"hold_time,omitempty"` + KeepaliveInterval *float64 `protobuf:"fixed64,53,opt,name=keepalive_interval,json=keepaliveInterval" json:"keepalive_interval,omitempty"` + MinimumAdvertisementInterval *float64 `protobuf:"fixed64,54,opt,name=minimum_advertisement_interval,json=minimumAdvertisementInterval" json:"minimum_advertisement_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) GetConnectRetry() float64 { + if m != nil && m.ConnectRetry != nil { + return *m.ConnectRetry + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) GetHoldTime() float64 { + if m != nil && m.HoldTime != nil { + return *m.HoldTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) GetKeepaliveInterval() float64 { + if m != nil && m.KeepaliveInterval != nil { + return *m.KeepaliveInterval + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) GetMinimumAdvertisementInterval() float64 { + if m != nil && m.MinimumAdvertisementInterval != nil { + return *m.MinimumAdvertisementInterval + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType struct { + TcpMss *uint32 `protobuf:"varint,51,opt,name=tcp_mss,json=tcpMss" json:"tcp_mss,omitempty"` + MtuDiscovery *bool `protobuf:"varint,52,opt,name=mtu_discovery,json=mtuDiscovery" json:"mtu_discovery,omitempty"` + PassiveMode *bool `protobuf:"varint,53,opt,name=passive_mode,json=passiveMode" json:"passive_mode,omitempty"` + LocalAddress *string `protobuf:"bytes,54,opt,name=local_address,json=localAddress" json:"local_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) GetTcpMss() uint32 { + if m != nil && m.TcpMss != nil { + return *m.TcpMss + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) GetMtuDiscovery() bool { + if m != nil && m.MtuDiscovery != nil { + return *m.MtuDiscovery + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) GetPassiveMode() bool { + if m != nil && m.PassiveMode != nil { + return *m.PassiveMode + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) GetLocalAddress() string { + if m != nil && m.LocalAddress != nil { + return *m.LocalAddress + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 3} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType struct { + TreatAsWithdraw *bool `protobuf:"varint,51,opt,name=treat_as_withdraw,json=treatAsWithdraw" json:"treat_as_withdraw,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 3, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) GetTreatAsWithdraw() bool { + if m != nil && m.TreatAsWithdraw != nil { + return *m.TreatAsWithdraw + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 4} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType struct { + LogNeighborStateChanges *bool `protobuf:"varint,51,opt,name=log_neighbor_state_changes,json=logNeighborStateChanges" json:"log_neighbor_state_changes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 4, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) GetLogNeighborStateChanges() bool { + if m != nil && m.LogNeighborStateChanges != nil { + return *m.LogNeighborStateChanges + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 5} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + MultihopTtl *uint32 `protobuf:"varint,52,opt,name=multihop_ttl,json=multihopTtl" json:"multihop_ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 5, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) GetMultihopTtl() uint32 { + if m != nil && m.MultihopTtl != nil { + return *m.MultihopTtl + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 6} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType struct { + RouteReflectorClusterId *string `protobuf:"bytes,51,opt,name=route_reflector_cluster_id,json=routeReflectorClusterId" json:"route_reflector_cluster_id,omitempty"` + RouteReflectorClient *bool `protobuf:"varint,52,opt,name=route_reflector_client,json=routeReflectorClient" json:"route_reflector_client,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 6, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) GetRouteReflectorClusterId() string { + if m != nil && m.RouteReflectorClusterId != nil { + return *m.RouteReflectorClusterId + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) GetRouteReflectorClient() bool { + if m != nil && m.RouteReflectorClient != nil { + return *m.RouteReflectorClient + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 7} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType struct { + AllowOwnAs *uint32 `protobuf:"varint,51,opt,name=allow_own_as,json=allowOwnAs" json:"allow_own_as,omitempty"` + ReplacePeerAs *bool `protobuf:"varint,52,opt,name=replace_peer_as,json=replacePeerAs" json:"replace_peer_as,omitempty"` + DisablePeerAsFilter *bool `protobuf:"varint,53,opt,name=disable_peer_as_filter,json=disablePeerAsFilter" json:"disable_peer_as_filter,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 7, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) GetAllowOwnAs() uint32 { + if m != nil && m.AllowOwnAs != nil { + return *m.AllowOwnAs + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) GetReplacePeerAs() bool { + if m != nil && m.ReplacePeerAs != nil { + return *m.ReplacePeerAs + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) GetDisablePeerAsFilter() bool { + if m != nil && m.DisablePeerAsFilter != nil { + return *m.DisablePeerAsFilter + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Ebgp *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType `protobuf:"bytes,152,opt,name=ebgp" json:"ebgp,omitempty"` + Ibgp *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType `protobuf:"bytes,153,opt,name=ibgp" json:"ibgp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 8} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) GetEbgp() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType { + if m != nil { + return m.Ebgp + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) GetIbgp() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType { + if m != nil { + return m.Ibgp + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 8, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 8, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType struct { + AllowMultipleAs *bool `protobuf:"varint,51,opt,name=allow_multiple_as,json=allowMultipleAs" json:"allow_multiple_as,omitempty"` + MaximumPaths *uint32 `protobuf:"varint,52,opt,name=maximum_paths,json=maximumPaths" json:"maximum_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 8, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) GetAllowMultipleAs() bool { + if m != nil && m.AllowMultipleAs != nil { + return *m.AllowMultipleAs + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) GetMaximumPaths() uint32 { + if m != nil && m.MaximumPaths != nil { + return *m.MaximumPaths + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 8, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType struct { + MaximumPaths *uint32 `protobuf:"varint,51,opt,name=maximum_paths,json=maximumPaths" json:"maximum_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 8, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) GetMaximumPaths() uint32 { + if m != nil && m.MaximumPaths != nil { + return *m.MaximumPaths + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType struct { + AfiSafi []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList `protobuf:"bytes,51,rep,name=afi_safi,json=afiSafi" json:"afi_safi,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) GetAfiSafi() []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList { + if m != nil { + return m.AfiSafi + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList struct { + AfiSafiName *string `protobuf:"bytes,51,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + GracefulRestart *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType `protobuf:"bytes,151,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType `protobuf:"bytes,152,opt,name=state" json:"state,omitempty"` + AddPaths *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType `protobuf:"bytes,153,opt,name=add_paths,json=addPaths" json:"add_paths,omitempty"` + Ipv4Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType `protobuf:"bytes,154,opt,name=ipv4_unicast,json=ipv4Unicast" json:"ipv4_unicast,omitempty"` + Ipv6Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType `protobuf:"bytes,155,opt,name=ipv6_unicast,json=ipv6Unicast" json:"ipv6_unicast,omitempty"` + Ipv4LabeledUnicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType `protobuf:"bytes,156,opt,name=ipv4_labeled_unicast,json=ipv4LabeledUnicast" json:"ipv4_labeled_unicast,omitempty"` + Ipv6LabeledUnicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType `protobuf:"bytes,157,opt,name=ipv6_labeled_unicast,json=ipv6LabeledUnicast" json:"ipv6_labeled_unicast,omitempty"` + L3VpnIpv4Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType `protobuf:"bytes,158,opt,name=l3vpn_ipv4_unicast,json=l3vpnIpv4Unicast" json:"l3vpn_ipv4_unicast,omitempty"` + L3VpnIpv6Unicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType `protobuf:"bytes,159,opt,name=l3vpn_ipv6_unicast,json=l3vpnIpv6Unicast" json:"l3vpn_ipv6_unicast,omitempty"` + L3VpnIpv4Multicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType `protobuf:"bytes,160,opt,name=l3vpn_ipv4_multicast,json=l3vpnIpv4Multicast" json:"l3vpn_ipv4_multicast,omitempty"` + L3VpnIpv6Multicast *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType `protobuf:"bytes,161,opt,name=l3vpn_ipv6_multicast,json=l3vpnIpv6Multicast" json:"l3vpn_ipv6_multicast,omitempty"` + L2VpnVpls *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType `protobuf:"bytes,162,opt,name=l2vpn_vpls,json=l2vpnVpls" json:"l2vpn_vpls,omitempty"` + L2VpnEvpn *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType `protobuf:"bytes,163,opt,name=l2vpn_evpn,json=l2vpnEvpn" json:"l2vpn_evpn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetGracefulRestart() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetAddPaths() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType { + if m != nil { + return m.AddPaths + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetIpv4Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType { + if m != nil { + return m.Ipv4Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetIpv6Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType { + if m != nil { + return m.Ipv6Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetIpv4LabeledUnicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType { + if m != nil { + return m.Ipv4LabeledUnicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetIpv6LabeledUnicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType { + if m != nil { + return m.Ipv6LabeledUnicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetL3VpnIpv4Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType { + if m != nil { + return m.L3VpnIpv4Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetL3VpnIpv6Unicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType { + if m != nil { + return m.L3VpnIpv6Unicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetL3VpnIpv4Multicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType { + if m != nil { + return m.L3VpnIpv4Multicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetL3VpnIpv6Multicast() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType { + if m != nil { + return m.L3VpnIpv6Multicast + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetL2VpnVpls() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType { + if m != nil { + return m.L2VpnVpls + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) GetL2VpnEvpn() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType { + if m != nil { + return m.L2VpnEvpn + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType struct { + AfiSafiName *string `protobuf:"bytes,51,opt,name=afi_safi_name,json=afiSafiName" json:"afi_safi_name,omitempty"` + Enabled *bool `protobuf:"varint,52,opt,name=enabled" json:"enabled,omitempty"` + Active *bool `protobuf:"varint,61,opt,name=active" json:"active,omitempty"` + Prefixes *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType `protobuf:"bytes,151,opt,name=prefixes" json:"prefixes,omitempty"` + TotalPaths *uint32 `protobuf:"varint,81,opt,name=total_paths,json=totalPaths" json:"total_paths,omitempty"` + TotalPrefixes *uint32 `protobuf:"varint,82,opt,name=total_prefixes,json=totalPrefixes" json:"total_prefixes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 1} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) GetAfiSafiName() string { + if m != nil && m.AfiSafiName != nil { + return *m.AfiSafiName + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) GetActive() bool { + if m != nil && m.Active != nil { + return *m.Active + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) GetPrefixes() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType { + if m != nil { + return m.Prefixes + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) GetTotalPaths() uint32 { + if m != nil && m.TotalPaths != nil { + return *m.TotalPaths + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) GetTotalPrefixes() uint32 { + if m != nil && m.TotalPrefixes != nil { + return *m.TotalPrefixes + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType struct { + Received *uint32 `protobuf:"varint,63,opt,name=received" json:"received,omitempty"` + Sent *uint32 `protobuf:"varint,64,opt,name=sent" json:"sent,omitempty"` + Installed *uint32 `protobuf:"varint,65,opt,name=installed" json:"installed,omitempty"` + Accepted *uint32 `protobuf:"varint,62,opt,name=accepted" json:"accepted,omitempty"` + ReceivedPrePolicy *uint32 `protobuf:"varint,69,opt,name=received_pre_policy,json=receivedPrePolicy" json:"received_pre_policy,omitempty"` + Rejected *uint32 `protobuf:"varint,70,opt,name=rejected" json:"rejected,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 1, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetReceived() uint32 { + if m != nil && m.Received != nil { + return *m.Received + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetSent() uint32 { + if m != nil && m.Sent != nil { + return *m.Sent + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetInstalled() uint32 { + if m != nil && m.Installed != nil { + return *m.Installed + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetAccepted() uint32 { + if m != nil && m.Accepted != nil { + return *m.Accepted + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetReceivedPrePolicy() uint32 { + if m != nil && m.ReceivedPrePolicy != nil { + return *m.ReceivedPrePolicy + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) GetRejected() uint32 { + if m != nil && m.Rejected != nil { + return *m.Rejected + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 2} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType struct { + Receive *bool `protobuf:"varint,51,opt,name=receive" json:"receive,omitempty"` + Send *bool `protobuf:"varint,54,opt,name=send" json:"send,omitempty"` + SendMax *uint32 `protobuf:"varint,52,opt,name=send_max,json=sendMax" json:"send_max,omitempty"` + EligiblePrefixPolicy *string `protobuf:"bytes,53,opt,name=eligible_prefix_policy,json=eligiblePrefixPolicy" json:"eligible_prefix_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 2, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetReceive() bool { + if m != nil && m.Receive != nil { + return *m.Receive + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetSend() bool { + if m != nil && m.Send != nil { + return *m.Send + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetSendMax() uint32 { + if m != nil && m.SendMax != nil { + return *m.SendMax + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) GetEligiblePrefixPolicy() string { + if m != nil && m.EligiblePrefixPolicy != nil { + return *m.EligiblePrefixPolicy + } + return "" +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 3} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 3, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 3, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 4} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 4, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 4, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 5} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 5, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 5, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 6} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 6, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 6, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 7} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 7, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 7, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 8} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 8, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 8, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 9} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 9, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 9, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 10} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 10, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 10, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 11} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 11, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 11, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType struct { + PrefixLimit *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType `protobuf:"bytes,151,opt,name=prefix_limit,json=prefixLimit" json:"prefix_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 12} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) GetPrefixLimit() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType { + if m != nil { + return m.PrefixLimit + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 12, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType struct { + MaxPrefixes *uint32 `protobuf:"varint,51,opt,name=max_prefixes,json=maxPrefixes" json:"max_prefixes,omitempty"` + PreventTeardown *bool `protobuf:"varint,54,opt,name=prevent_teardown,json=preventTeardown" json:"prevent_teardown,omitempty"` + ShutdownThresholdPct *uint32 `protobuf:"varint,52,opt,name=shutdown_threshold_pct,json=shutdownThresholdPct" json:"shutdown_threshold_pct,omitempty"` + RestartTimer *float64 `protobuf:"fixed64,53,opt,name=restart_timer,json=restartTimer" json:"restart_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 9, 0, 12, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetMaxPrefixes() uint32 { + if m != nil && m.MaxPrefixes != nil { + return *m.MaxPrefixes + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetPreventTeardown() bool { + if m != nil && m.PreventTeardown != nil { + return *m.PreventTeardown + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetShutdownThresholdPct() uint32 { + if m != nil && m.ShutdownThresholdPct != nil { + return *m.ShutdownThresholdPct + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) GetRestartTimer() float64 { + if m != nil && m.RestartTimer != nil { + return *m.RestartTimer + } + return 0 +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 10} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + RestartTime *uint32 `protobuf:"varint,52,opt,name=restart_time,json=restartTime" json:"restart_time,omitempty"` + StaleRoutesTime *float64 `protobuf:"fixed64,53,opt,name=stale_routes_time,json=staleRoutesTime" json:"stale_routes_time,omitempty"` + HelperOnly *bool `protobuf:"varint,54,opt,name=helper_only,json=helperOnly" json:"helper_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 10, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) GetRestartTime() uint32 { + if m != nil && m.RestartTime != nil { + return *m.RestartTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) GetStaleRoutesTime() float64 { + if m != nil && m.StaleRoutesTime != nil { + return *m.StaleRoutesTime + } + return 0 +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) GetHelperOnly() bool { + if m != nil && m.HelperOnly != nil { + return *m.HelperOnly + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 11} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType struct { + ImportPolicy []string `protobuf:"bytes,51,rep,name=import_policy,json=importPolicy" json:"import_policy,omitempty"` + ExportPolicy []string `protobuf:"bytes,52,rep,name=export_policy,json=exportPolicy" json:"export_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 11, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) GetImportPolicy() []string { + if m != nil { + return m.ImportPolicy + } + return nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) GetExportPolicy() []string { + if m != nil { + return m.ExportPolicy + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType struct { + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 12} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 12, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType struct { + DynamicNeighborPrefix []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList `protobuf:"bytes,51,rep,name=dynamic_neighbor_prefix,json=dynamicNeighborPrefix" json:"dynamic_neighbor_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 13} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) GetDynamicNeighborPrefix() []*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList { + if m != nil { + return m.DynamicNeighborPrefix + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + State *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 13, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) GetState() *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType struct { + Prefix *string `protobuf:"bytes,51,opt,name=prefix" json:"prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) Reset() { + *m = NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType{} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) ProtoMessage() { +} +func (*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_0666d8ed4f670c7b, []int{0, 0, 0, 0, 0, 2, 0, 13, 0, 0} +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType.Merge(m, src) +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) GetPrefix() string { + if m != nil && m.Prefix != nil { + return *m.Prefix + } + return "" +} + +var E_JnprNetworkInstancesNiBgpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesNiBgp)(nil), + Field: 67, + Name: "jnpr_network_instances_ni_bgp_ext", + Tag: "bytes,67,opt,name=jnpr_network_instances_ni_bgp_ext", + Filename: "rpd_ni_bgp_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesNiBgp)(nil), "network_instances_ni_bgp") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceList)(nil), "network_instances_ni_bgp.network_instance_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.route_selection_options_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.route_selection_options_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.confederation_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.confederation_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.graceful_restart_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.apply_policy_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.apply_policy_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.graceful_restart_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.add_paths_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.add_paths_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv4_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv4_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv6_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv6_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l2vpn_vpls_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l2vpn_vpls_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l2vpn_vpls_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l2vpn_evpn_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l2vpn_evpn_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.global_type.afi_safis_type.afi_safi_list.l2vpn_evpn_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.state_type.messages_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.state_type.messages_type.sent_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.state_type.messages_type.received_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.state_type.queues_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.timers_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.timers_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.transport_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.transport_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.error_handling_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.error_handling_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.logging_options_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.logging_options_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.ebgp_multihop_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.ebgp_multihop_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.route_reflector_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.route_reflector_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.as_path_options_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.as_path_options_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.use_multiple_paths_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.use_multiple_paths_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.use_multiple_paths_type.ebgp_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.use_multiple_paths_type.ebgp_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.graceful_restart_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.state_type.prefixes_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.state_type.queues_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.add_paths_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.add_paths_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv4_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv4_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv6_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv6_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l2vpn_vpls_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l2vpn_vpls_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l2vpn_vpls_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l2vpn_evpn_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l2vpn_evpn_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.afi_safis_type.afi_safi_list.l2vpn_evpn_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.graceful_restart_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.apply_policy_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.apply_policy_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.enable_bfd_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.neighbors_type.neighbor_list.enable_bfd_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.timers_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.timers_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.transport_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.transport_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.error_handling_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.error_handling_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.logging_options_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.logging_options_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.ebgp_multihop_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.ebgp_multihop_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.route_reflector_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.route_reflector_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.as_path_options_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.as_path_options_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.use_multiple_paths_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.use_multiple_paths_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.use_multiple_paths_type.ebgp_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.use_multiple_paths_type.ebgp_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.use_multiple_paths_type.ibgp_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.use_multiple_paths_type.ibgp_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.graceful_restart_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.state_type.prefixes_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.add_paths_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.add_paths_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv4_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv4_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv6_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv6_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv4_labeled_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.ipv6_labeled_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_unicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv4_multicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l3vpn_ipv6_multicast_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l2vpn_vpls_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l2vpn_vpls_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l2vpn_vpls_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l2vpn_evpn_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l2vpn_evpn_type.prefix_limit_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.afi_safis_type.afi_safi_list.l2vpn_evpn_type.prefix_limit_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.graceful_restart_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.apply_policy_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.apply_policy_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.enable_bfd_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.enable_bfd_type.state_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.dynamic_neighbor_prefixes_type") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.dynamic_neighbor_prefixes_type.dynamic_neighbor_prefix_list") + proto.RegisterType((*NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType)(nil), "network_instances_ni_bgp.network_instance_list.protocols_type.protocol_type.bgp_type.peer_groups_type.peer_group_list.dynamic_neighbor_prefixes_type.dynamic_neighbor_prefix_list.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesNiBgpExt) +} + +func init() { proto.RegisterFile("rpd_ni_bgp_oc.proto", fileDescriptor_0666d8ed4f670c7b) } + +var fileDescriptor_0666d8ed4f670c7b = []byte{ + // 5350 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x7d, 0x6b, 0x90, 0x1c, 0xd5, + 0x75, 0x7f, 0xf5, 0xee, 0x4a, 0xcc, 0xde, 0xdd, 0xd9, 0xc7, 0xd5, 0x4a, 0x3b, 0xea, 0xbf, 0x10, + 0x02, 0xfe, 0xc6, 0x82, 0xb2, 0x56, 0x18, 0x89, 0x81, 0x40, 0x09, 0x58, 0xbd, 0xcc, 0x82, 0x56, + 0xda, 0x8c, 0x16, 0x5c, 0x95, 0x94, 0xab, 0xd3, 0x3b, 0x7d, 0x77, 0xb6, 0x97, 0x9e, 0xee, 0x4e, + 0x77, 0xcf, 0xee, 0x6c, 0x52, 0xc1, 0x05, 0x0e, 0x0e, 0x20, 0x2c, 0x1e, 0x7a, 0xf3, 0x14, 0x08, + 0x2c, 0xf4, 0x58, 0x04, 0x28, 0x42, 0x71, 0x08, 0x06, 0x6c, 0x50, 0x54, 0x04, 0x57, 0x4c, 0x12, + 0x63, 0x97, 0x6d, 0x28, 0x50, 0xc5, 0xfe, 0x92, 0x47, 0x55, 0x92, 0x4a, 0x95, 0x5d, 0x49, 0x95, + 0x53, 0xf7, 0xd1, 0x3d, 0xdd, 0x3d, 0xdd, 0x33, 0x23, 0xa4, 0xdd, 0xe9, 0x9e, 0xf9, 0xb4, 0xdb, + 0xe7, 0xdc, 0xee, 0x7b, 0xce, 0xbd, 0xbf, 0x7b, 0xfb, 0xdc, 0xdb, 0xf7, 0xfc, 0x06, 0x2c, 0x32, + 0x74, 0x49, 0x50, 0x65, 0x61, 0x2c, 0xa7, 0x0b, 0x5a, 0x76, 0x40, 0x37, 0x34, 0x4b, 0xe3, 0x17, + 0x59, 0x48, 0x41, 0x79, 0x64, 0x19, 0x33, 0x82, 0xa5, 0xe9, 0x54, 0x78, 0xc5, 0xc9, 0x03, 0xad, + 0x20, 0xa5, 0x22, 0x6b, 0x5a, 0x33, 0xee, 0x11, 0x64, 0xd5, 0xb4, 0x44, 0x35, 0x8b, 0x4c, 0x76, + 0x2f, 0xfc, 0x43, 0xd0, 0xe3, 0xd7, 0xa5, 0xf6, 0x71, 0x2b, 0x5a, 0x57, 0x76, 0x5c, 0xb7, 0x7a, + 0x20, 0xec, 0xae, 0x32, 0x85, 0xa0, 0xc8, 0xa6, 0x95, 0xe9, 0x66, 0xe2, 0x21, 0x26, 0xe5, 0xff, + 0x6a, 0x7f, 0x2b, 0x58, 0x1c, 0x58, 0x16, 0x2e, 0x05, 0x6d, 0xaa, 0x98, 0x47, 0xa9, 0x35, 0x2b, + 0xb8, 0x95, 0xed, 0xeb, 0x17, 0xdc, 0x7f, 0x5b, 0x4b, 0x82, 0xcb, 0x10, 0x11, 0xfc, 0x06, 0x68, + 0x27, 0x96, 0x67, 0x35, 0xc5, 0xc4, 0xb6, 0x70, 0x2b, 0x3b, 0xae, 0xbb, 0xe5, 0x3c, 0x6d, 0x19, + 0x70, 0x9e, 0x20, 0x58, 0x33, 0x3a, 0xca, 0x94, 0x9e, 0xc8, 0x1f, 0xda, 0xd7, 0x0a, 0xba, 0xbc, + 0x6a, 0x28, 0x83, 0x84, 0x2d, 0xb1, 0x6b, 0xdc, 0x72, 0x61, 0x35, 0x3a, 0x97, 0xb4, 0x7e, 0xe7, + 0xf1, 0xfc, 0x8b, 0x7b, 0x5b, 0x41, 0xd2, 0xa3, 0x84, 0x13, 0xa0, 0x75, 0x2c, 0xa7, 0xdb, 0x15, + 0xdf, 0x75, 0x31, 0x2b, 0x1e, 0xc0, 0xf8, 0x20, 0x16, 0xe0, 0x2a, 0xf8, 0xc3, 0x7b, 0x5a, 0x41, + 0xc2, 0x16, 0xc1, 0x3f, 0x01, 0x0b, 0x73, 0x8a, 0x36, 0x26, 0x3a, 0x3e, 0x8b, 0x73, 0x52, 0xf5, + 0x00, 0xad, 0x84, 0x9a, 0xc1, 0x6a, 0x84, 0xdf, 0xe2, 0x40, 0xbb, 0x8a, 0xe4, 0xdc, 0xc4, 0x98, + 0x66, 0x98, 0xa9, 0xfd, 0xb4, 0x7e, 0x69, 0x6e, 0xea, 0x77, 0xea, 0x61, 0x58, 0x70, 0xae, 0xe1, + 0x83, 0x1c, 0xe8, 0xd0, 0x11, 0x32, 0x84, 0x9c, 0xa1, 0x15, 0x74, 0x33, 0x75, 0x80, 0xda, 0x31, + 0x3e, 0x37, 0x76, 0xb8, 0x6a, 0xa2, 0x96, 0x00, 0x2c, 0xf9, 0x1a, 0x11, 0xf0, 0x9f, 0x0a, 0xa0, + 0xc3, 0xd5, 0x50, 0xb8, 0x81, 0x16, 0x98, 0x96, 0x68, 0x21, 0xbb, 0x73, 0x94, 0x39, 0xef, 0x9c, + 0x01, 0x52, 0x1f, 0x35, 0x8d, 0xd6, 0x0d, 0x4f, 0x73, 0xa0, 0xdf, 0xd0, 0x0a, 0x16, 0x12, 0x4c, + 0xa4, 0xa0, 0xac, 0x25, 0x6b, 0xaa, 0xa0, 0xe9, 0xf8, 0x8f, 0xd3, 0x69, 0xf7, 0xce, 0xbd, 0x5d, + 0x21, 0x16, 0x50, 0x4b, 0x17, 0x13, 0xed, 0x76, 0x5b, 0xb9, 0x8d, 0xea, 0xe0, 0x53, 0x1c, 0x48, + 0x66, 0x35, 0x75, 0x1c, 0x49, 0xc8, 0x10, 0xb1, 0xc8, 0xee, 0x5c, 0x6b, 0xee, 0xed, 0xf5, 0xd4, + 0x4b, 0xad, 0xf4, 0xda, 0x02, 0x0f, 0x71, 0xa0, 0x27, 0x67, 0x88, 0x59, 0x34, 0x5e, 0x50, 0x04, + 0x03, 0x99, 0x96, 0x68, 0x58, 0xa9, 0x27, 0xa9, 0x81, 0xd3, 0x73, 0x6f, 0xa0, 0xbf, 0x6a, 0x6a, + 0x63, 0xb7, 0x2d, 0xce, 0x50, 0x29, 0xdc, 0xc7, 0x81, 0x4e, 0x51, 0xd7, 0x95, 0x19, 0x41, 0xd7, + 0x14, 0x39, 0x3b, 0x93, 0x3a, 0x46, 0x2d, 0x34, 0xe7, 0xde, 0x42, 0x77, 0xb5, 0xd4, 0xba, 0x0e, + 0x22, 0x1a, 0x21, 0x12, 0xb8, 0x93, 0x03, 0xed, 0xe2, 0xb8, 0x2c, 0x98, 0xe2, 0xb8, 0x6c, 0xa6, + 0x9e, 0xa2, 0x66, 0xe9, 0xf3, 0x60, 0x96, 0x5d, 0x27, 0x9b, 0xd6, 0xc5, 0x71, 0x79, 0x3b, 0xbe, + 0xe4, 0xef, 0xe3, 0x00, 0x28, 0x0d, 0x1f, 0xd8, 0x05, 0x5a, 0x44, 0x93, 0xbc, 0xdc, 0x92, 0x99, + 0x16, 0xd1, 0x84, 0xff, 0x0f, 0xb4, 0x13, 0x98, 0x1a, 0x82, 0x2c, 0xa5, 0xd6, 0xe2, 0x77, 0x5e, + 0x26, 0x41, 0x05, 0x43, 0x12, 0xbc, 0x0c, 0x74, 0x58, 0x9a, 0x25, 0x2a, 0x82, 0x2e, 0x5a, 0x13, + 0x66, 0xea, 0xf7, 0xc9, 0x5d, 0x80, 0x88, 0x46, 0xb0, 0x04, 0x7e, 0x09, 0x74, 0xb1, 0x02, 0x06, + 0x1a, 0x97, 0x8b, 0xc8, 0x4c, 0x65, 0x48, 0x99, 0x24, 0x2d, 0xc3, 0x84, 0xfc, 0xb1, 0x56, 0xb0, + 0xac, 0xd2, 0x50, 0x81, 0xcf, 0xfb, 0xe7, 0x94, 0x87, 0xb8, 0xfa, 0x0e, 0xde, 0xf2, 0x19, 0x87, + 0xff, 0xb5, 0xb7, 0x21, 0xbf, 0x02, 0xa0, 0xa8, 0x4c, 0x8b, 0x33, 0xa6, 0x90, 0xd5, 0xf2, 0xba, + 0x68, 0x20, 0x21, 0x8f, 0x68, 0x0b, 0x26, 0x32, 0x3d, 0x54, 0xb3, 0x81, 0x2a, 0x86, 0x91, 0x04, + 0xbf, 0x0a, 0x16, 0xcb, 0x39, 0x55, 0x33, 0x90, 0x20, 0x9a, 0xa4, 0x35, 0x05, 0x05, 0xa9, 0x39, + 0x6b, 0x22, 0x75, 0x3d, 0xb9, 0x01, 0x52, 0xe5, 0xa0, 0x89, 0x9b, 0x75, 0x0b, 0xd1, 0xc0, 0x9b, + 0x01, 0x8f, 0x8a, 0x16, 0x32, 0x54, 0x51, 0x71, 0xaa, 0x28, 0x75, 0x55, 0x9a, 0xdc, 0xd7, 0x6f, + 0x97, 0x60, 0x55, 0x65, 0xec, 0x9e, 0xbb, 0x09, 0x2c, 0x15, 0xa5, 0x29, 0x64, 0x58, 0xb2, 0x89, + 0x04, 0x59, 0x15, 0xb3, 0x96, 0x3c, 0xc5, 0x6e, 0xa7, 0xbd, 0x9f, 0xc8, 0xf4, 0x3b, 0x05, 0x86, + 0x98, 0x9e, 0xdc, 0x6d, 0xf2, 0xbf, 0xe1, 0x00, 0x2c, 0x9f, 0x28, 0xe0, 0x5e, 0x7f, 0x1f, 0x7d, + 0xb3, 0x1e, 0xf3, 0x55, 0x40, 0xc7, 0x0c, 0x79, 0xfa, 0x65, 0x39, 0x00, 0xb2, 0x84, 0x54, 0x4b, + 0x1e, 0x97, 0x91, 0x41, 0x9a, 0x37, 0x99, 0x71, 0x49, 0x30, 0xe0, 0xf3, 0x28, 0x3f, 0x86, 0x0c, + 0x41, 0x34, 0x53, 0x6b, 0x57, 0xb4, 0xae, 0x4c, 0x66, 0x12, 0x54, 0x30, 0x68, 0xf2, 0x3f, 0x6a, + 0x01, 0x8b, 0x03, 0xa7, 0x20, 0xf8, 0xa4, 0xdf, 0xfb, 0xfb, 0xb9, 0x3a, 0xcd, 0x86, 0x01, 0x2d, + 0xb0, 0xd7, 0x0b, 0xcd, 0x14, 0xb8, 0x04, 0xa9, 0xe2, 0x98, 0x82, 0x24, 0xd6, 0xd5, 0xf6, 0x25, + 0xbc, 0x1c, 0x74, 0x3a, 0x8f, 0x92, 0xf3, 0x88, 0xc0, 0x35, 0x99, 0xe9, 0x60, 0xb2, 0x51, 0x39, + 0x8f, 0xe0, 0x35, 0xa0, 0xd7, 0xb4, 0x44, 0xc5, 0x06, 0x0b, 0x2d, 0x87, 0x9b, 0x91, 0xcb, 0x74, + 0x13, 0x05, 0x45, 0x09, 0x29, 0x7b, 0x19, 0xe8, 0x98, 0x40, 0x8a, 0x8e, 0x0c, 0x41, 0x53, 0x95, + 0x19, 0x86, 0x49, 0x40, 0x45, 0xdb, 0x54, 0x65, 0x86, 0xff, 0x56, 0x0b, 0xe8, 0x2d, 0x9b, 0x30, + 0xe1, 0x1e, 0x7f, 0x5b, 0xde, 0x5b, 0x87, 0x69, 0x3b, 0xa0, 0x19, 0xef, 0xf6, 0xb4, 0xe2, 0x95, + 0x20, 0x29, 0xe7, 0x75, 0xcd, 0xb0, 0xec, 0x77, 0xcc, 0x9a, 0x15, 0xad, 0x2b, 0xdb, 0x33, 0x9d, + 0x54, 0xc8, 0xa6, 0xfb, 0x2b, 0x41, 0x12, 0x15, 0xdd, 0x85, 0xd6, 0xd2, 0x42, 0x54, 0x48, 0x0b, + 0xf1, 0x4f, 0x0f, 0x83, 0x2e, 0xef, 0xfc, 0x8c, 0xe1, 0x94, 0xb0, 0x45, 0xf6, 0xb2, 0xe6, 0xde, + 0xf9, 0x7e, 0x4b, 0x38, 0x97, 0x74, 0x95, 0x74, 0x09, 0x7b, 0x67, 0xf0, 0xff, 0x7a, 0x27, 0x48, + 0x7a, 0x54, 0xf0, 0x6a, 0x97, 0xa0, 0x7c, 0x75, 0xd4, 0xc1, 0x6e, 0xdc, 0x8a, 0x17, 0x49, 0xef, + 0x06, 0x05, 0x10, 0xac, 0x9f, 0x77, 0x73, 0xf5, 0x75, 0xb1, 0xd6, 0xf0, 0xa2, 0xf4, 0x3a, 0xda, + 0x3f, 0x7f, 0xaf, 0xa3, 0x8a, 0x86, 0x97, 0x07, 0xc0, 0xc7, 0x71, 0xa0, 0x21, 0x49, 0xec, 0xd5, + 0xcc, 0x42, 0xc8, 0xef, 0xd4, 0xdb, 0x4e, 0xc7, 0x22, 0x3b, 0x0c, 0x91, 0x24, 0x1a, 0x29, 0x9c, + 0xe2, 0x40, 0xa7, 0xac, 0x4f, 0xad, 0x15, 0x0a, 0xaa, 0x9c, 0x15, 0x4d, 0x27, 0xa6, 0x7c, 0xac, + 0xde, 0x16, 0xbb, 0x8d, 0x62, 0xf1, 0x1c, 0x16, 0xdd, 0x45, 0x25, 0xb6, 0xdd, 0x69, 0xc7, 0xee, + 0xa7, 0xa2, 0x63, 0x77, 0xba, 0xdc, 0xee, 0xb4, 0x6d, 0xf7, 0x87, 0x1c, 0xe8, 0x23, 0xae, 0x29, + 0xe2, 0x18, 0x52, 0x90, 0xe4, 0xd8, 0xff, 0x34, 0xb5, 0x7f, 0x7f, 0x24, 0xda, 0xdd, 0x67, 0x1c, + 0xf5, 0x03, 0x62, 0xd5, 0x16, 0xaa, 0xf1, 0xb9, 0x93, 0x2e, 0x73, 0xe7, 0x99, 0xe8, 0xb8, 0x93, + 0x0e, 0x77, 0x27, 0xed, 0x73, 0xe7, 0x0c, 0x07, 0xa0, 0xb2, 0x66, 0x4a, 0x57, 0x05, 0xcf, 0x98, + 0x78, 0x96, 0x3a, 0xb3, 0xb7, 0xde, 0xce, 0x94, 0x9b, 0x46, 0x5d, 0xe9, 0x21, 0x8a, 0x21, 0xd7, + 0xf0, 0xf0, 0x38, 0x52, 0x1a, 0x24, 0xcf, 0x45, 0xcd, 0x91, 0x74, 0x88, 0x23, 0x9e, 0xf1, 0xe2, + 0x72, 0x3b, 0x5f, 0x50, 0x2c, 0xea, 0xca, 0xc1, 0x88, 0x00, 0x2c, 0xc8, 0x38, 0x06, 0x30, 0xa7, + 0x57, 0x86, 0x6d, 0x85, 0xd7, 0x9d, 0xb4, 0xcb, 0x9d, 0xe7, 0xa3, 0xe6, 0x4e, 0x3a, 0xd4, 0x9d, + 0x74, 0xc9, 0x9d, 0x13, 0x1c, 0x00, 0xca, 0x75, 0xf8, 0x8e, 0x29, 0x5d, 0x31, 0x53, 0x2f, 0x50, + 0x27, 0x76, 0xd6, 0xdd, 0x09, 0xc7, 0x24, 0xb6, 0x81, 0x47, 0x04, 0x77, 0xeb, 0x8a, 0xe9, 0xb2, + 0x18, 0x4d, 0xe9, 0x6a, 0xea, 0x50, 0xa4, 0x2c, 0xc6, 0x26, 0xb9, 0x2d, 0xde, 0x34, 0xa5, 0xab, + 0xfc, 0x6f, 0xb9, 0xb0, 0xb5, 0xcf, 0x69, 0x7f, 0xbc, 0xfe, 0x5c, 0x24, 0xe3, 0xb8, 0x80, 0x88, + 0xfe, 0xaa, 0xda, 0xd6, 0x45, 0xfc, 0x13, 0xde, 0x05, 0xd4, 0x15, 0x81, 0xe1, 0xae, 0x37, 0xce, + 0x75, 0x3d, 0x6c, 0xad, 0x77, 0x91, 0x75, 0xb1, 0x76, 0x4d, 0x3e, 0x6a, 0x01, 0x5d, 0xde, 0x78, + 0x0a, 0xbe, 0xea, 0xef, 0x89, 0xfd, 0xd1, 0x0a, 0xf8, 0x02, 0xba, 0x60, 0x47, 0xd9, 0xda, 0xd4, + 0x40, 0x59, 0x24, 0x4f, 0x21, 0xbb, 0x0f, 0xd8, 0x25, 0x84, 0xa0, 0xcd, 0x44, 0xaa, 0xbd, 0xb3, + 0x41, 0xfe, 0x87, 0x4b, 0x41, 0x02, 0xff, 0x15, 0xf2, 0x62, 0x91, 0xad, 0x55, 0x2f, 0xc1, 0xd7, + 0xc3, 0x62, 0x11, 0xae, 0x05, 0x4b, 0x90, 0x22, 0xe7, 0xe4, 0x31, 0x05, 0xb1, 0x76, 0xb4, 0x97, + 0x60, 0xd7, 0x93, 0xce, 0xea, 0xb3, 0xb5, 0xb4, 0x3d, 0xd9, 0x52, 0xec, 0xbf, 0xda, 0x40, 0x6f, + 0xd9, 0x7b, 0x0d, 0xfe, 0x2d, 0x07, 0x3a, 0xd9, 0x33, 0x14, 0x39, 0x2f, 0x3b, 0xeb, 0x95, 0x17, + 0x22, 0x17, 0x9c, 0x0e, 0xb8, 0xcd, 0x64, 0x61, 0x1f, 0x15, 0x6d, 0xc1, 0x12, 0x7e, 0x57, 0x2b, + 0xe8, 0x2d, 0x2b, 0x02, 0xdf, 0xf7, 0xc3, 0x66, 0x36, 0x06, 0x8e, 0x05, 0x60, 0xe9, 0x94, 0x17, + 0x4b, 0x97, 0x83, 0xce, 0xbc, 0x58, 0x2c, 0x8d, 0x22, 0xba, 0xab, 0xd9, 0x91, 0x17, 0x8b, 0xf6, + 0x18, 0x82, 0x57, 0x83, 0x1e, 0xdd, 0x40, 0x53, 0x48, 0xb5, 0x04, 0x0b, 0x89, 0x86, 0xa4, 0x4d, + 0xab, 0x0c, 0x60, 0xdd, 0x4c, 0x3e, 0xca, 0xc4, 0x18, 0x50, 0xe6, 0x44, 0xc1, 0xc2, 0xff, 0x0b, + 0xd6, 0x84, 0x81, 0xcc, 0x09, 0x4d, 0x91, 0x04, 0x3d, 0x6b, 0x31, 0xe4, 0xf5, 0xd9, 0xda, 0x51, + 0x5b, 0x39, 0x92, 0xb5, 0xe0, 0x95, 0x20, 0xe9, 0xde, 0x51, 0x31, 0xd8, 0x56, 0x49, 0xa7, 0x6b, + 0x4b, 0xc5, 0xb0, 0x51, 0x97, 0x8e, 0x0f, 0xea, 0xd2, 0x8d, 0x8a, 0xba, 0x74, 0xf3, 0xa0, 0x6e, + 0xc7, 0x02, 0xb0, 0x34, 0x74, 0x95, 0x05, 0xff, 0x3e, 0x04, 0x7d, 0x47, 0x23, 0xbb, 0x30, 0xac, + 0x86, 0xc2, 0xa7, 0x02, 0x51, 0xf8, 0x23, 0x3f, 0x0a, 0x4f, 0xc5, 0xc8, 0xc1, 0xc6, 0x43, 0x63, + 0x3a, 0x7e, 0x68, 0x4c, 0x37, 0x3a, 0x1a, 0xd3, 0xcd, 0x87, 0xc6, 0x07, 0x16, 0x80, 0xfe, 0x90, + 0x5d, 0x0e, 0xdc, 0x47, 0x81, 0x58, 0x7c, 0x39, 0xa2, 0xdb, 0x32, 0xd5, 0x90, 0x78, 0x20, 0x10, + 0x89, 0x7f, 0xe7, 0x47, 0xe2, 0xc9, 0xd8, 0xb8, 0xd7, 0xa8, 0x38, 0x4c, 0xc7, 0x0d, 0x87, 0xe9, + 0xc6, 0xc6, 0x61, 0x93, 0xc5, 0x8a, 0xa1, 0x3b, 0x8c, 0xd1, 0x7d, 0x3b, 0x87, 0x9a, 0xdc, 0x28, + 0x6f, 0xe7, 0xf3, 0x70, 0xb0, 0x51, 0xd1, 0x98, 0x8e, 0x1f, 0x1a, 0xd3, 0x8d, 0x8e, 0xc6, 0x74, + 0x33, 0xa1, 0xf1, 0xdf, 0xda, 0x40, 0xb7, 0x6f, 0xa7, 0x1f, 0xbe, 0x1f, 0x82, 0xc1, 0x83, 0x11, + 0xfb, 0x24, 0x51, 0x0d, 0x79, 0x8f, 0x07, 0x22, 0xef, 0x87, 0x7e, 0xe4, 0x1d, 0x8b, 0xbc, 0x5b, + 0x0d, 0x89, 0x37, 0xe7, 0x3b, 0x4d, 0xd4, 0xf1, 0xe6, 0x18, 0xda, 0x58, 0x78, 0xab, 0xe0, 0x56, + 0x03, 0xe1, 0xed, 0x57, 0xcf, 0x70, 0xa0, 0xcb, 0x9b, 0x8a, 0x00, 0x1f, 0xe5, 0x40, 0xc2, 0x16, + 0xd9, 0xe7, 0xd3, 0x8c, 0xf9, 0x48, 0x82, 0x70, 0x2e, 0xe9, 0x99, 0x34, 0xc7, 0x08, 0xfe, 0xed, + 0xa7, 0x39, 0x90, 0xf4, 0x28, 0xe1, 0xb5, 0xa0, 0xc7, 0x11, 0x88, 0x92, 0x64, 0x20, 0xd3, 0xf4, + 0x1e, 0x4c, 0xeb, 0xb6, 0xd5, 0x83, 0x54, 0x0b, 0xaf, 0x02, 0xdd, 0xa6, 0x9a, 0xd7, 0x05, 0x92, + 0xf0, 0x20, 0xab, 0x12, 0x2a, 0xa6, 0xd6, 0xd1, 0x4f, 0x6f, 0x58, 0x3c, 0x82, 0x90, 0x31, 0x84, + 0x85, 0x70, 0xb7, 0x1f, 0x90, 0x7f, 0x36, 0xff, 0xbe, 0x07, 0x9c, 0xf9, 0xda, 0xc7, 0x81, 0x85, + 0xa4, 0x1f, 0xe7, 0x3a, 0xc7, 0xa1, 0xa2, 0x5d, 0xd4, 0x02, 0x96, 0x35, 0x43, 0x2f, 0xe0, 0xf3, + 0x1c, 0x68, 0xb7, 0x0c, 0x51, 0x35, 0x75, 0xcd, 0xb0, 0xec, 0xd3, 0x68, 0xf7, 0x71, 0xf5, 0xb0, + 0xce, 0xb6, 0x82, 0x7d, 0xe0, 0x76, 0xae, 0xe1, 0x09, 0x0e, 0x74, 0x21, 0xc3, 0xd0, 0x0c, 0x61, + 0x42, 0x54, 0x25, 0x45, 0x56, 0x73, 0xf6, 0x21, 0xb4, 0x6f, 0xd7, 0xc3, 0x50, 0xaf, 0x29, 0x2c, + 0x19, 0x83, 0x08, 0x6f, 0x67, 0x32, 0xf8, 0x3a, 0x07, 0xba, 0x15, 0x2d, 0x97, 0xc3, 0x7a, 0x3b, + 0xb9, 0x85, 0x9d, 0x3f, 0xfb, 0x8b, 0x7a, 0x98, 0xec, 0xb3, 0x85, 0xda, 0xdc, 0xc5, 0xa4, 0x76, + 0x7e, 0xcb, 0x71, 0x0e, 0x24, 0x11, 0x7e, 0x1e, 0x09, 0x11, 0x27, 0x34, 0xdd, 0x3e, 0x72, 0xf6, + 0x40, 0x5d, 0x5a, 0xd9, 0x6d, 0x09, 0x35, 0xb8, 0x13, 0xcb, 0x86, 0x99, 0x88, 0xb4, 0x31, 0xcd, + 0x04, 0x30, 0xd0, 0xb8, 0x82, 0xb2, 0x96, 0x66, 0xd8, 0x87, 0xca, 0xea, 0xd2, 0xc6, 0x3e, 0x5b, + 0x58, 0x1b, 0x13, 0x69, 0xc6, 0x16, 0xc2, 0xd7, 0x38, 0xd0, 0x6d, 0x27, 0x12, 0xd8, 0xc0, 0x78, + 0xb6, 0x8e, 0x46, 0xfb, 0x6c, 0x61, 0x60, 0x16, 0x49, 0x3a, 0x83, 0x8d, 0x8b, 0xbf, 0xe6, 0x00, + 0x2c, 0x98, 0x88, 0x76, 0x86, 0xae, 0x20, 0x76, 0x3c, 0x82, 0x1d, 0x15, 0x7b, 0xb8, 0x1e, 0x66, + 0x97, 0x9b, 0xc3, 0x8e, 0x87, 0x15, 0x4c, 0x34, 0xcc, 0xe4, 0xf4, 0xc8, 0xc6, 0x41, 0x4f, 0x5a, + 0xcf, 0xc1, 0x3a, 0xce, 0x6f, 0x61, 0x89, 0x3e, 0xf0, 0x54, 0xd0, 0xc1, 0x6b, 0x76, 0xdc, 0xeb, + 0xc1, 0x7a, 0x58, 0x5a, 0xe3, 0x61, 0xeb, 0x23, 0x21, 0xb9, 0x5c, 0x7f, 0x5e, 0x97, 0xd6, 0xad, + 0x9c, 0xdd, 0x75, 0x88, 0x03, 0x80, 0x1e, 0xf3, 0x11, 0xc6, 0xc6, 0xa5, 0xd4, 0xf1, 0xb9, 0x4d, + 0x05, 0xa9, 0x3c, 0xb1, 0x39, 0x66, 0xb0, 0x17, 0x1d, 0x15, 0xac, 0x1f, 0x97, 0xf8, 0xff, 0xe8, + 0xf1, 0x04, 0xa2, 0xfd, 0xe0, 0x12, 0x12, 0xef, 0x38, 0x79, 0x5f, 0x0b, 0xf1, 0xe5, 0xa0, 0x09, + 0x97, 0x82, 0x84, 0xa2, 0x65, 0x45, 0x85, 0x66, 0xc2, 0x90, 0xd3, 0x35, 0xe4, 0x7a, 0x90, 0xa4, + 0x85, 0x91, 0x7b, 0xf0, 0x03, 0xd8, 0x81, 0x9a, 0x04, 0x16, 0x8c, 0xb2, 0xcc, 0x08, 0xb1, 0x60, + 0x4d, 0x08, 0xba, 0x68, 0x9a, 0xd3, 0x9a, 0x41, 0x8f, 0xec, 0xb4, 0x67, 0x3a, 0xb1, 0x70, 0x84, + 0xc9, 0xe0, 0x35, 0xa0, 0xd7, 0x40, 0x79, 0x6d, 0x0a, 0x09, 0xba, 0x21, 0x4f, 0x61, 0x63, 0x44, + 0x33, 0x75, 0x03, 0x29, 0xd8, 0x4d, 0x15, 0x23, 0x54, 0x3e, 0x68, 0xc2, 0xaf, 0x00, 0x48, 0xa7, + 0xbd, 0x71, 0x45, 0xd4, 0x05, 0x49, 0xcc, 0xeb, 0xf8, 0xe5, 0x7c, 0x23, 0xcd, 0xa5, 0x22, 0x9a, + 0xcd, 0x8a, 0xa8, 0x6f, 0xa4, 0x72, 0xb8, 0x02, 0x74, 0x48, 0xc8, 0xcc, 0x1a, 0x32, 0x99, 0x58, + 0x52, 0xbf, 0x47, 0xcf, 0x66, 0xb9, 0x44, 0xd8, 0x40, 0x13, 0x99, 0xa6, 0xac, 0xa9, 0x02, 0x8d, + 0xe2, 0xd6, 0x51, 0x03, 0x99, 0x70, 0x3b, 0x09, 0xa6, 0xae, 0x06, 0x3d, 0x8a, 0x68, 0x5a, 0x02, + 0x86, 0xe1, 0x98, 0x22, 0x9b, 0x13, 0x48, 0x4a, 0xdd, 0xb2, 0x82, 0x5b, 0xd9, 0x96, 0xe9, 0xc6, + 0xf2, 0x4d, 0x25, 0x31, 0xbc, 0x01, 0xf4, 0xbb, 0x4a, 0x09, 0x24, 0xa4, 0x90, 0xe9, 0xac, 0x7b, + 0x2b, 0xb9, 0x63, 0x89, 0x4b, 0x3d, 0x5a, 0xd2, 0xc2, 0xeb, 0xc1, 0x12, 0xb3, 0xa0, 0xe3, 0xe8, + 0x03, 0x49, 0x42, 0x56, 0xd4, 0xc5, 0x31, 0x59, 0x91, 0x2d, 0x19, 0x99, 0xa9, 0xdb, 0x48, 0x9e, + 0xc8, 0x62, 0x47, 0xbb, 0xc1, 0xa5, 0xc4, 0x43, 0x22, 0x91, 0x47, 0xa6, 0x29, 0xe6, 0x90, 0x93, + 0x68, 0xbe, 0x83, 0xab, 0x6b, 0x08, 0x3a, 0x60, 0xdb, 0xc3, 0xa6, 0x1d, 0xfb, 0x12, 0x0f, 0x89, + 0x85, 0x7f, 0x5c, 0x40, 0x05, 0x64, 0xce, 0x75, 0xb2, 0x44, 0xad, 0x96, 0x52, 0x6b, 0x58, 0x7c, + 0x4a, 0x2f, 0x70, 0x47, 0x48, 0x33, 0xaa, 0x98, 0x97, 0xb3, 0xa2, 0xa2, 0xcc, 0x08, 0x59, 0x4d, + 0x1d, 0x97, 0x73, 0x05, 0x03, 0x49, 0xa9, 0x61, 0x82, 0xb2, 0xc5, 0x2e, 0xed, 0x06, 0x47, 0x09, + 0xbf, 0x04, 0xba, 0xdc, 0x40, 0x2a, 0x98, 0xa9, 0xaf, 0x11, 0x24, 0x25, 0x5d, 0x48, 0x2a, 0x98, + 0xf0, 0x5a, 0xd0, 0x67, 0x17, 0x13, 0xa5, 0xbc, 0xec, 0x14, 0xbe, 0x9d, 0x14, 0x86, 0x4c, 0x37, + 0x88, 0x55, 0xec, 0x8e, 0x2f, 0x83, 0x6e, 0x59, 0xb5, 0x90, 0x31, 0x2e, 0x66, 0x91, 0x40, 0x82, + 0xbe, 0xd4, 0x1d, 0xc4, 0x90, 0x2e, 0x47, 0xbc, 0x09, 0x4b, 0xe1, 0x00, 0x58, 0xc4, 0xb2, 0x90, + 0xd0, 0x94, 0xa8, 0x08, 0x3a, 0x52, 0x25, 0x3c, 0x36, 0xee, 0x24, 0x85, 0x7b, 0xa9, 0x6a, 0xd3, + 0x94, 0xa8, 0x8c, 0x50, 0x05, 0xbc, 0x0c, 0x74, 0xb8, 0xca, 0xa7, 0xb6, 0xd0, 0x94, 0xac, 0x52, + 0x39, 0x78, 0x29, 0x00, 0xa5, 0x74, 0x6f, 0x72, 0x38, 0xb1, 0x3d, 0xd3, 0xee, 0xa4, 0x7b, 0xe3, + 0x51, 0x51, 0xb6, 0xa6, 0xca, 0xd0, 0x51, 0xeb, 0x5f, 0x4c, 0xb9, 0x4e, 0x40, 0x6e, 0xf7, 0x9e, + 0x80, 0x0c, 0x58, 0x66, 0x8d, 0x06, 0x2c, 0xb3, 0xf8, 0x1d, 0x97, 0x80, 0xa4, 0x07, 0x57, 0xf0, + 0x18, 0x47, 0x4e, 0x01, 0x3a, 0xfb, 0x1b, 0x7b, 0xa2, 0x84, 0xfa, 0x01, 0x93, 0xac, 0xd4, 0x31, + 0xae, 0x88, 0x91, 0xf0, 0x34, 0x07, 0x12, 0xec, 0xf8, 0xa2, 0x64, 0xa3, 0xff, 0x40, 0xa4, 0x2c, + 0xb6, 0xad, 0x63, 0xa3, 0xd6, 0xbe, 0xe4, 0x1f, 0x68, 0x01, 0xed, 0x8e, 0x37, 0x70, 0x09, 0x58, + 0x78, 0xd7, 0xc8, 0xc6, 0xc1, 0xd1, 0x4d, 0xa9, 0x41, 0x32, 0x9d, 0xb1, 0x2b, 0x78, 0x05, 0xe8, + 0xdc, 0xba, 0x6d, 0x74, 0x68, 0xf3, 0xd0, 0x86, 0xc1, 0xd1, 0xa1, 0x6d, 0x5b, 0x53, 0xeb, 0x89, + 0xd6, 0x23, 0x83, 0x6b, 0xc1, 0x12, 0x32, 0x8d, 0xaa, 0x9a, 0x25, 0x8f, 0xcb, 0x59, 0x96, 0xa9, + 0x29, 0xe7, 0x11, 0x19, 0x2a, 0x6d, 0x99, 0x3e, 0xac, 0xdd, 0xea, 0x52, 0x92, 0xcc, 0xc1, 0x5b, + 0xc1, 0xb2, 0xf2, 0xbb, 0xe8, 0x8a, 0x28, 0xab, 0x49, 0x88, 0x8d, 0x9c, 0xa5, 0xfe, 0x7b, 0xc9, + 0x98, 0xd8, 0xa0, 0x49, 0x08, 0x6e, 0x02, 0x97, 0x85, 0x3d, 0xc0, 0x2c, 0x8c, 0x91, 0x67, 0x0c, + 0x91, 0x67, 0x2c, 0x0b, 0x7c, 0xc6, 0x76, 0x5a, 0x86, 0x7f, 0xa8, 0x05, 0x24, 0x3d, 0x6d, 0xe4, + 0x6a, 0x8b, 0x0d, 0x15, 0xdb, 0x62, 0xe3, 0x79, 0xb5, 0xc5, 0x1d, 0x17, 0xd0, 0x16, 0x77, 0x5e, + 0x84, 0xb6, 0xd8, 0x52, 0x43, 0x5b, 0xdc, 0x0c, 0x3a, 0x5c, 0x53, 0x27, 0xec, 0x03, 0x0b, 0x64, + 0x55, 0x2f, 0x58, 0xa9, 0x4d, 0x64, 0xe8, 0xd2, 0x0b, 0xdc, 0x3c, 0x5a, 0xc1, 0xc2, 0xe2, 0xcd, + 0x34, 0x96, 0xa0, 0x57, 0xfc, 0x91, 0x56, 0xd0, 0xe1, 0xda, 0x18, 0x98, 0xbf, 0x8c, 0xee, 0x5a, + 0xb7, 0x2a, 0x02, 0x36, 0xec, 0xfe, 0x9b, 0xf3, 0x27, 0x7c, 0x66, 0x35, 0x55, 0x45, 0x59, 0x4b, + 0x30, 0x90, 0x65, 0xcc, 0x90, 0x68, 0x89, 0xcb, 0x74, 0x32, 0x61, 0x06, 0xcb, 0x70, 0x60, 0x44, + 0x76, 0xde, 0x9c, 0xf4, 0x59, 0x2e, 0x93, 0xc0, 0x02, 0xd2, 0x93, 0xab, 0x00, 0xbc, 0x07, 0x21, + 0x5d, 0x54, 0xe4, 0x29, 0x24, 0x90, 0x89, 0x1c, 0xcf, 0xc1, 0x74, 0xcf, 0xad, 0xd7, 0xd1, 0x0c, + 0x31, 0x05, 0xdc, 0x08, 0x96, 0xe7, 0x65, 0x55, 0xce, 0x17, 0xf2, 0x82, 0x93, 0x8b, 0x9d, 0xc7, + 0x83, 0xd2, 0xb9, 0x35, 0x4d, 0x6e, 0x5d, 0xc6, 0x4a, 0x0d, 0xba, 0x0b, 0x39, 0x4f, 0xb9, 0x16, + 0xf4, 0xa9, 0x28, 0xa7, 0x59, 0xb2, 0x88, 0x83, 0x8c, 0x92, 0x71, 0xeb, 0xc8, 0xbd, 0xb0, 0xa4, + 0xbb, 0x9d, 0x99, 0xc9, 0x9f, 0x6c, 0x05, 0x5d, 0xde, 0x6d, 0x12, 0xf8, 0xa2, 0xbf, 0xbb, 0x1e, + 0xa9, 0xff, 0xde, 0x4d, 0x40, 0x8f, 0xfd, 0x96, 0xf3, 0x47, 0xb6, 0x56, 0x56, 0x17, 0xf2, 0xa6, + 0x13, 0xd9, 0x5a, 0x59, 0x7d, 0xd8, 0x34, 0x71, 0x57, 0xe6, 0xad, 0x82, 0x20, 0xc9, 0x66, 0x56, + 0x9b, 0x42, 0xc6, 0x0c, 0x3b, 0xa2, 0xdf, 0x99, 0xb7, 0x0a, 0x1b, 0x6d, 0x19, 0xbc, 0x1c, 0x74, + 0xe2, 0x08, 0x16, 0xf7, 0x55, 0x1e, 0x8f, 0x11, 0x9a, 0x8a, 0xdf, 0xc1, 0x64, 0xc3, 0x78, 0x64, + 0x5d, 0x09, 0x92, 0x2c, 0x42, 0x66, 0xaf, 0x42, 0x16, 0xe9, 0xd2, 0x30, 0x99, 0xbd, 0x07, 0x2f, + 0x05, 0x80, 0x16, 0x22, 0x7b, 0x5f, 0x74, 0x3f, 0xb1, 0x9d, 0x48, 0x46, 0x34, 0xc3, 0xc2, 0x31, + 0x04, 0x8e, 0x77, 0x71, 0x00, 0xcc, 0x1e, 0x72, 0x0b, 0x8d, 0x21, 0xa8, 0xd4, 0x7e, 0xca, 0x65, + 0xa0, 0x83, 0x15, 0x23, 0x8f, 0xb9, 0x95, 0x66, 0x0d, 0x50, 0x11, 0x7e, 0x0e, 0x7f, 0xba, 0x05, + 0x2c, 0x0a, 0xd8, 0x33, 0xc2, 0xc1, 0xa2, 0xb7, 0xeb, 0x1e, 0x8f, 0xc8, 0x6e, 0x56, 0x40, 0xff, + 0x59, 0x9e, 0xee, 0xbb, 0x06, 0xf4, 0x5a, 0x06, 0x12, 0x2d, 0x41, 0x34, 0x85, 0x69, 0xd9, 0x9a, + 0x90, 0x0c, 0x71, 0x9a, 0x65, 0x05, 0x74, 0x13, 0xc5, 0xa0, 0xf9, 0x75, 0x26, 0x86, 0x37, 0x81, + 0xa5, 0xb8, 0x0a, 0x15, 0x69, 0x05, 0x53, 0x28, 0xe8, 0x12, 0x7e, 0x88, 0x13, 0x22, 0xd3, 0x36, + 0xef, 0x77, 0x0a, 0xdc, 0x45, 0xf4, 0xc3, 0x4c, 0xcd, 0xef, 0x6c, 0x01, 0x7d, 0x41, 0x5b, 0x57, + 0xf0, 0xa8, 0xbf, 0xe9, 0x9e, 0x88, 0xca, 0xae, 0x5a, 0x55, 0x9a, 0x83, 0x9b, 0x01, 0xaf, 0x68, + 0x39, 0xc1, 0x79, 0x12, 0x55, 0x65, 0x27, 0x44, 0x35, 0x57, 0x62, 0x78, 0x50, 0xb4, 0xdc, 0x56, + 0x56, 0x80, 0xac, 0x79, 0x36, 0x50, 0x35, 0xff, 0x70, 0x0b, 0x80, 0xe5, 0x1b, 0x63, 0xf0, 0x65, + 0x7f, 0x73, 0x3c, 0x16, 0x8d, 0x1d, 0xbb, 0xaa, 0x8d, 0x51, 0x91, 0xf0, 0xa0, 0xf4, 0x28, 0x4b, + 0xb1, 0x09, 0x0f, 0x6c, 0xd9, 0xa8, 0xa5, 0xf0, 0xef, 0xb5, 0x80, 0xbe, 0xa0, 0x4d, 0xb7, 0x88, + 0xa0, 0x23, 0xc8, 0xb4, 0x80, 0x06, 0xf9, 0xa6, 0x1f, 0x1d, 0xfe, 0xfb, 0xb2, 0x4a, 0xc1, 0x64, + 0xdc, 0x21, 0x34, 0x9b, 0xa9, 0xdf, 0xbb, 0xa7, 0xb8, 0x81, 0xea, 0x87, 0x24, 0x1c, 0xc5, 0x94, + 0xdf, 0x2c, 0xe3, 0xa0, 0x9c, 0xce, 0xa2, 0x7d, 0xfe, 0x1b, 0xb1, 0x8e, 0xff, 0xa8, 0x05, 0xf4, + 0x05, 0x6d, 0x03, 0x46, 0xa4, 0x19, 0x83, 0x4c, 0xab, 0x9e, 0xad, 0xb4, 0x02, 0x74, 0x8a, 0x8a, + 0xa2, 0x4d, 0x0b, 0xda, 0xb4, 0x5a, 0xda, 0x3f, 0x01, 0x44, 0xb6, 0x6d, 0x5a, 0x1d, 0x24, 0x5f, + 0x94, 0x0c, 0xa4, 0x2b, 0x78, 0x19, 0x67, 0x6f, 0xb2, 0xd0, 0x56, 0x4a, 0x32, 0xf1, 0x08, 0xdd, + 0x6b, 0x59, 0x03, 0x96, 0x48, 0xb2, 0x49, 0xb6, 0x6c, 0x58, 0x39, 0x61, 0x5c, 0x56, 0x2c, 0xf6, + 0x49, 0x2e, 0x91, 0x59, 0xc4, 0xb4, 0xb4, 0xf8, 0x66, 0xa2, 0xe2, 0x0f, 0x2e, 0x00, 0xfd, 0x21, + 0x7b, 0x94, 0x70, 0xd6, 0xdf, 0xac, 0x7b, 0x22, 0xb4, 0x83, 0x1a, 0xf0, 0xed, 0xea, 0x28, 0x07, + 0xda, 0xf0, 0xd0, 0xb6, 0xd7, 0x49, 0xbb, 0xa3, 0x64, 0x2e, 0x72, 0xd8, 0xe8, 0x88, 0x8d, 0x35, + 0xe7, 0x0d, 0xfe, 0x8e, 0x03, 0xed, 0xce, 0xbd, 0xf3, 0x97, 0x27, 0x79, 0x61, 0x3e, 0x06, 0xc0, + 0xfe, 0x46, 0xff, 0x7b, 0x99, 0xa2, 0xde, 0x79, 0x8c, 0x68, 0xbf, 0x52, 0xba, 0x89, 0xc2, 0xde, + 0x1b, 0x1f, 0x34, 0xf9, 0x8f, 0xbe, 0x5e, 0xc6, 0x6d, 0x72, 0xcc, 0xcd, 0x6d, 0xb2, 0x86, 0x7c, + 0x3a, 0x7e, 0xb4, 0xfe, 0x3b, 0xe5, 0x61, 0x64, 0x27, 0x8f, 0xdd, 0x7d, 0x01, 0x64, 0x27, 0xff, + 0x50, 0x81, 0xec, 0xe4, 0xa5, 0xa8, 0xf9, 0x5c, 0xeb, 0x86, 0xfc, 0xeb, 0x7e, 0xf6, 0x93, 0x27, + 0x23, 0xe7, 0x49, 0xf9, 0xf4, 0xf2, 0x56, 0x10, 0x1d, 0xca, 0xb3, 0x91, 0x33, 0x3c, 0x94, 0x1f, + 0xe5, 0x4c, 0x08, 0x3f, 0xca, 0xf3, 0x91, 0x73, 0xa1, 0x0a, 0x61, 0xca, 0x99, 0x10, 0xc2, 0x94, + 0x48, 0x3a, 0x52, 0x89, 0x41, 0xe5, 0x93, 0x2a, 0x0c, 0x2a, 0x47, 0xa2, 0xd9, 0x33, 0x35, 0x53, + 0xaa, 0x7c, 0x52, 0x85, 0x52, 0xe5, 0x48, 0x34, 0x3b, 0xac, 0x66, 0x8e, 0x95, 0x9f, 0x56, 0xe4, + 0x58, 0x39, 0x1c, 0x39, 0xef, 0x6a, 0x27, 0x5d, 0xf9, 0x69, 0x45, 0xd2, 0x95, 0x08, 0x7b, 0x56, + 0x95, 0x85, 0xe5, 0x93, 0x2a, 0x2c, 0x2c, 0x47, 0xa2, 0xdc, 0x6b, 0x35, 0xd0, 0xb2, 0x7c, 0x52, + 0x85, 0x96, 0xe5, 0x48, 0x94, 0xfb, 0xae, 0x06, 0x9e, 0x96, 0x77, 0x02, 0x79, 0x5a, 0x9e, 0x8b, + 0x9e, 0x57, 0xe1, 0xc4, 0x2d, 0xef, 0x04, 0x12, 0xb7, 0x44, 0xd5, 0x85, 0x40, 0x26, 0x97, 0x33, + 0xa1, 0x2c, 0x96, 0x67, 0xfd, 0x2b, 0x94, 0x57, 0xe3, 0x11, 0xa4, 0x06, 0x2c, 0x59, 0xc6, 0x6a, + 0xdc, 0x01, 0xe2, 0x5d, 0x9f, 0xe8, 0xd6, 0x11, 0x95, 0x73, 0x0d, 0x97, 0x03, 0xe0, 0x6c, 0xbc, + 0xd3, 0x8f, 0xff, 0x89, 0x8c, 0x4b, 0xc2, 0x1f, 0x5e, 0x78, 0x11, 0x69, 0x61, 0x96, 0x80, 0x85, + 0x94, 0x66, 0x95, 0x99, 0xc1, 0xae, 0x70, 0xc0, 0x94, 0x70, 0x0e, 0x09, 0xcf, 0x71, 0x8a, 0xdf, + 0xc5, 0x88, 0xb8, 0x07, 0x6c, 0x63, 0x1d, 0x02, 0x79, 0x76, 0x9a, 0xf9, 0x3a, 0xb0, 0xd8, 0x73, + 0x4c, 0x1a, 0x15, 0xb3, 0x08, 0x49, 0x48, 0x22, 0x1f, 0xf3, 0x12, 0x99, 0x45, 0xae, 0x73, 0xe0, + 0x9b, 0x98, 0x0a, 0x8f, 0x36, 0xdf, 0xe9, 0x81, 0xef, 0x46, 0xd9, 0xf5, 0x80, 0xa3, 0x05, 0xfc, + 0xfb, 0x1c, 0x48, 0x7a, 0x9a, 0xc4, 0x03, 0x39, 0xba, 0x8f, 0x5f, 0x82, 0x1c, 0x64, 0xdf, 0xb7, + 0x6f, 0x23, 0x72, 0xfa, 0x19, 0x79, 0x19, 0x68, 0x27, 0x1e, 0x29, 0x18, 0x35, 0x83, 0xf4, 0xfb, + 0x81, 0x23, 0xc0, 0x4f, 0x13, 0xb3, 0x59, 0xa4, 0x5b, 0x0c, 0xa2, 0xc9, 0x8c, 0x73, 0x0d, 0x07, + 0xc0, 0x22, 0xe7, 0xeb, 0xa5, 0x6e, 0x20, 0xfb, 0x04, 0x15, 0xfd, 0x62, 0xd7, 0x6b, 0xab, 0x46, + 0x0c, 0xc4, 0xce, 0x2f, 0x11, 0xcb, 0x26, 0x51, 0x16, 0x3f, 0x6b, 0xb3, 0x6d, 0x19, 0xbd, 0x0e, + 0xfd, 0xfc, 0x37, 0x14, 0xfc, 0xf9, 0xef, 0x0e, 0xcf, 0xe7, 0xbf, 0x73, 0xe5, 0x5c, 0x45, 0xef, + 0xfa, 0xe7, 0x9a, 0x23, 0x11, 0x5f, 0x8d, 0x45, 0x9e, 0xbc, 0x68, 0xcf, 0x82, 0x20, 0xf2, 0xa2, + 0x9f, 0x85, 0xa4, 0x86, 0x9c, 0x8c, 0xfe, 0xca, 0xb1, 0x5a, 0xb6, 0xc8, 0x8b, 0x81, 0xd9, 0x22, + 0x1f, 0xfb, 0x81, 0xf5, 0xfd, 0x38, 0x7a, 0xda, 0x40, 0x09, 0x24, 0x0c, 0x97, 0xe9, 0x18, 0xe3, + 0x32, 0xdd, 0x34, 0xb8, 0x6c, 0xa2, 0xa4, 0xf6, 0xd9, 0x8a, 0x04, 0x48, 0x9f, 0x85, 0xe0, 0xf3, + 0xcd, 0xf8, 0xec, 0xeb, 0x54, 0xc3, 0xe9, 0xf1, 0x40, 0x9c, 0x7e, 0xea, 0xc7, 0xe9, 0x99, 0x38, + 0x7b, 0xdc, 0x78, 0x78, 0x4d, 0x37, 0x00, 0x5e, 0xd3, 0x4d, 0x87, 0xd7, 0x26, 0x24, 0x51, 0x3a, + 0x5c, 0x81, 0x44, 0xe9, 0xd3, 0x10, 0xb4, 0x7e, 0x2f, 0x2e, 0xfb, 0xae, 0xd5, 0xb0, 0x7a, 0x34, + 0x10, 0xab, 0xbf, 0xf4, 0x63, 0xf5, 0xbd, 0xf8, 0xfa, 0xdb, 0xa8, 0x48, 0x4d, 0xc7, 0x1e, 0xa9, + 0xe9, 0x26, 0x43, 0x6a, 0x93, 0xc5, 0xac, 0xe1, 0x44, 0x4c, 0xf1, 0x89, 0x01, 0xbe, 0x30, 0x33, + 0x53, 0x6c, 0x63, 0x80, 0xe6, 0xa4, 0x6a, 0x9a, 0xad, 0x48, 0xd5, 0x14, 0x43, 0xbc, 0xa6, 0x9b, + 0x0e, 0xaf, 0x4d, 0x45, 0xe6, 0xf4, 0xe8, 0x82, 0x72, 0x32, 0xa7, 0x8f, 0x43, 0x50, 0xfa, 0x5a, + 0xd4, 0xbf, 0x5b, 0x56, 0xc3, 0xe6, 0x0b, 0x81, 0xd8, 0xfc, 0x27, 0x3f, 0x36, 0xff, 0x26, 0x7e, + 0x7e, 0x36, 0x24, 0x22, 0x4b, 0x74, 0x4f, 0x71, 0x43, 0x64, 0xcd, 0xfc, 0x4f, 0x31, 0x47, 0x64, + 0x73, 0x10, 0x42, 0xfd, 0x67, 0x6b, 0xd8, 0xf9, 0x81, 0x63, 0xfe, 0x8e, 0xda, 0x15, 0x19, 0x62, + 0x89, 0x80, 0xf6, 0x3f, 0xda, 0x12, 0xcd, 0x9f, 0xc5, 0xc4, 0x0f, 0x23, 0x49, 0x00, 0x9e, 0x4a, + 0x69, 0x12, 0x53, 0x37, 0x56, 0x64, 0x5c, 0x15, 0x7f, 0x19, 0x74, 0xbb, 0xcb, 0xca, 0x6a, 0x8e, + 0x1d, 0x54, 0xe8, 0x72, 0x95, 0x94, 0xd5, 0x1c, 0xe1, 0x33, 0x20, 0x69, 0x68, 0xae, 0x92, 0xb7, + 0x52, 0xec, 0x10, 0xb9, 0xab, 0x28, 0x04, 0x6d, 0x24, 0xe3, 0xed, 0x36, 0xf2, 0xb1, 0x91, 0xfc, + 0xcf, 0xef, 0x09, 0xfc, 0xa9, 0xce, 0xc3, 0xfe, 0x0e, 0x7f, 0x34, 0x12, 0xac, 0x1c, 0xf3, 0xf8, + 0xe3, 0x9d, 0x67, 0x5b, 0x41, 0xb7, 0x8f, 0x6b, 0x03, 0xbe, 0xe4, 0x6f, 0x95, 0xef, 0x44, 0x80, + 0x01, 0x24, 0xa0, 0x4d, 0x1e, 0xa9, 0x75, 0x00, 0xac, 0x02, 0x8b, 0x26, 0xd5, 0xa2, 0x90, 0x97, + 0x55, 0xc1, 0x2a, 0x96, 0xd2, 0x4f, 0xe9, 0x38, 0xe8, 0x99, 0x54, 0x8b, 0xc3, 0xb2, 0x3a, 0x5a, + 0x74, 0xa7, 0x9c, 0xe2, 0xe2, 0x14, 0x6e, 0x2c, 0x49, 0xa0, 0xf4, 0x6b, 0xbb, 0x70, 0x52, 0x2d, + 0x6e, 0xc1, 0xaa, 0x61, 0x47, 0xe3, 0xae, 0xc0, 0x28, 0x7a, 0xf3, 0x5b, 0x9d, 0x0a, 0x32, 0xa5, + 0x0a, 0xae, 0x01, 0xbd, 0xb8, 0xb8, 0x97, 0xc4, 0xe3, 0x06, 0x0a, 0xe6, 0x49, 0xb5, 0xb8, 0xdd, + 0xcd, 0xe3, 0xb1, 0x12, 0xf4, 0xb8, 0xcb, 0x12, 0x60, 0xdf, 0x48, 0x80, 0xdd, 0x55, 0x2a, 0x3a, + 0x8c, 0x21, 0xfe, 0x83, 0xdd, 0x1c, 0xe8, 0xf1, 0xff, 0xd6, 0x3d, 0xdc, 0xcb, 0x79, 0x18, 0x11, + 0x18, 0xd9, 0xdd, 0xd4, 0xfc, 0xfc, 0xd2, 0xbe, 0x4b, 0x40, 0xf3, 0x12, 0x4a, 0x54, 0x0c, 0xfc, + 0xae, 0x5d, 0x1c, 0x1b, 0xfb, 0x25, 0x3d, 0x5c, 0xe5, 0x11, 0x91, 0x53, 0x48, 0xeb, 0xdc, 0xe9, + 0x09, 0x49, 0xe7, 0x7e, 0x72, 0x1c, 0xe9, 0x80, 0x1f, 0xa9, 0x73, 0xc5, 0x59, 0x54, 0xcd, 0xb1, + 0x80, 0x23, 0xfb, 0x4f, 0x97, 0xb1, 0xd9, 0xdd, 0x5f, 0x2f, 0xe3, 0x82, 0x28, 0xed, 0x5e, 0x0a, + 0xa2, 0xb4, 0x7b, 0xa0, 0x6e, 0x16, 0x86, 0xd2, 0xda, 0x9d, 0x0c, 0xa5, 0xb5, 0x7b, 0xb8, 0x5e, + 0xc6, 0xd6, 0x40, 0x6d, 0xf7, 0x46, 0x38, 0xb5, 0xdd, 0x8e, 0x7a, 0x99, 0x5d, 0x13, 0xbd, 0xdd, + 0xab, 0x61, 0xf4, 0x76, 0x0f, 0xd5, 0xad, 0xb5, 0xab, 0x51, 0xdc, 0xbd, 0x11, 0x4e, 0x71, 0x57, + 0xb7, 0xb6, 0xae, 0x89, 0xe6, 0xee, 0x54, 0x38, 0xcd, 0x5d, 0xdd, 0x0c, 0xaf, 0x85, 0xea, 0xee, + 0xfb, 0x15, 0xa9, 0xee, 0x76, 0xd6, 0xcb, 0xf4, 0xda, 0xe9, 0xee, 0x5e, 0x0c, 0xa2, 0xbb, 0xab, + 0xdb, 0xdc, 0x17, 0x4a, 0x79, 0xf7, 0xbd, 0x0a, 0x94, 0x77, 0x8f, 0xd4, 0xcb, 0xda, 0x1a, 0xb3, + 0xec, 0x66, 0x43, 0x68, 0xef, 0x1e, 0xac, 0x5b, 0x2b, 0x57, 0xa6, 0xbe, 0x3b, 0x1c, 0x48, 0x7d, + 0xf7, 0xed, 0xba, 0x4d, 0x7a, 0xa1, 0xf4, 0x77, 0xf0, 0x1f, 0x39, 0xb0, 0x94, 0xd1, 0x79, 0x95, + 0xf8, 0x11, 0x9c, 0x55, 0xf7, 0xa1, 0xb9, 0xcd, 0x96, 0xae, 0x6a, 0x78, 0xa8, 0x65, 0xd4, 0x8f, + 0x7e, 0xa6, 0xb7, 0x79, 0x1b, 0x9c, 0x5f, 0x03, 0xfd, 0xf7, 0x96, 0x26, 0x27, 0xf5, 0xbb, 0x2a, + 0x24, 0xf2, 0xf5, 0x87, 0xbc, 0x17, 0xeb, 0xe7, 0x57, 0xff, 0xa7, 0xc5, 0xcb, 0x68, 0x34, 0x6f, + 0x8b, 0xbe, 0xf3, 0x89, 0x56, 0x03, 0x16, 0x7d, 0x3f, 0x6c, 0x04, 0x56, 0x23, 0xfe, 0xc7, 0x2d, + 0x65, 0x1c, 0x45, 0xf3, 0x46, 0x4f, 0x72, 0x9e, 0xc1, 0x78, 0x40, 0x1f, 0x3c, 0x11, 0x41, 0x9e, + 0x22, 0xfe, 0x77, 0x5c, 0x30, 0x81, 0xd0, 0xbc, 0x31, 0x49, 0x7c, 0x91, 0x75, 0x43, 0x2d, 0x64, + 0x05, 0xb5, 0x92, 0x08, 0xf1, 0x4f, 0x84, 0x11, 0x01, 0xbd, 0xe2, 0x6f, 0x82, 0xbd, 0x51, 0x5a, + 0x83, 0xcc, 0x2d, 0x19, 0xd0, 0xce, 0x60, 0x32, 0xa0, 0xe3, 0xfe, 0x26, 0xd9, 0x1d, 0x9d, 0xf5, + 0xcd, 0xdc, 0x12, 0x02, 0x9d, 0x0d, 0x23, 0x04, 0x8a, 0x0e, 0x4a, 0xe2, 0x42, 0x0a, 0xf4, 0x93, + 0x30, 0x52, 0xa0, 0xe8, 0x34, 0x65, 0x2c, 0x89, 0x81, 0xee, 0x6b, 0x0f, 0x27, 0x06, 0x7a, 0xcd, + 0xdf, 0xb4, 0x07, 0x22, 0xb6, 0xde, 0x0c, 0xd8, 0x0a, 0x7c, 0xc5, 0x47, 0x0e, 0xb4, 0x3f, 0x6a, + 0x26, 0xfb, 0x08, 0x82, 0x88, 0xc1, 0x32, 0x36, 0xf8, 0x40, 0x44, 0x0d, 0x96, 0x4b, 0x06, 0xcb, + 0xe7, 0xc3, 0x68, 0xf4, 0x72, 0x8b, 0x9b, 0xd1, 0xe8, 0x4d, 0x3f, 0x96, 0x0e, 0x45, 0xb6, 0x63, + 0x02, 0xc6, 0xec, 0x37, 0xbe, 0x28, 0xab, 0x11, 0x89, 0xcb, 0xc4, 0x22, 0x89, 0x61, 0xe9, 0x2a, + 0x82, 0xbe, 0x26, 0x3a, 0x99, 0x90, 0xac, 0x23, 0xf8, 0xff, 0xe5, 0x40, 0xbb, 0x1c, 0xa3, 0xa6, + 0x92, 0x2b, 0x34, 0xd5, 0x57, 0xfd, 0x6b, 0x06, 0xaf, 0xfb, 0x6b, 0x02, 0xdc, 0x7f, 0xeb, 0xee, + 0x32, 0xe6, 0xa7, 0x13, 0xe5, 0xcc, 0x4f, 0xbb, 0xa2, 0xb1, 0x69, 0x14, 0xc6, 0xfe, 0xf4, 0x9b, + 0xd1, 0x0b, 0x60, 0x7f, 0xfa, 0xb8, 0x02, 0xfb, 0xd3, 0x91, 0x28, 0xfa, 0x5d, 0xeb, 0xde, 0xd4, + 0x1b, 0x7e, 0x06, 0xa8, 0x67, 0x23, 0xe9, 0x4d, 0xf9, 0x7b, 0xe4, 0xdd, 0x20, 0x16, 0xa8, 0x17, + 0x22, 0x69, 0x7c, 0x28, 0x13, 0xd4, 0x07, 0x21, 0x4c, 0x50, 0x2f, 0x45, 0xd2, 0x8d, 0x2a, 0x6c, + 0x50, 0x1f, 0x84, 0xb0, 0x41, 0x45, 0xd6, 0x99, 0x4a, 0x8c, 0x50, 0x9f, 0x57, 0x61, 0x84, 0x9a, + 0x8d, 0x6e, 0x0f, 0xd5, 0xcc, 0x0a, 0xf5, 0x79, 0x15, 0x56, 0xa8, 0xd9, 0xe8, 0x76, 0x5c, 0xcd, + 0xcc, 0x50, 0xbf, 0xa8, 0xc8, 0x0c, 0x75, 0x2c, 0x92, 0x1e, 0xd6, 0xce, 0x0e, 0xf5, 0x8b, 0x8a, + 0xec, 0x50, 0x11, 0xf7, 0xae, 0x2a, 0x43, 0xd4, 0xe7, 0x55, 0x18, 0xa2, 0x66, 0xa3, 0xde, 0x7b, + 0x35, 0xb0, 0x44, 0x7d, 0x5e, 0x85, 0x25, 0x6a, 0x36, 0xea, 0x7d, 0x58, 0x03, 0x53, 0xd4, 0x7b, + 0x81, 0x4c, 0x51, 0x87, 0xa2, 0xe9, 0x59, 0x38, 0x5b, 0xd4, 0x7b, 0x81, 0x6c, 0x51, 0x51, 0x76, + 0x23, 0x90, 0x31, 0x6a, 0x67, 0x28, 0x63, 0xd4, 0x87, 0xfe, 0x65, 0xcd, 0x5f, 0xc6, 0x27, 0xb0, + 0x0d, 0x58, 0xe7, 0xd4, 0xba, 0x0c, 0x7e, 0xbb, 0x6d, 0x1e, 0x98, 0x9f, 0x3e, 0x08, 0x60, 0x7e, + 0x3a, 0x1e, 0xf1, 0x48, 0x3b, 0x94, 0xfd, 0xe9, 0x62, 0x7d, 0x76, 0x6b, 0x14, 0x3a, 0xa5, 0x5f, + 0x97, 0x33, 0x22, 0xbd, 0xef, 0x1f, 0x4b, 0xb3, 0x31, 0x58, 0x99, 0x44, 0x9e, 0x15, 0xe9, 0x99, + 0x40, 0x56, 0xa4, 0x5f, 0x86, 0x64, 0x50, 0x9c, 0x8e, 0xc7, 0x2a, 0xaa, 0x5a, 0x1e, 0xc5, 0xcb, + 0x81, 0x79, 0x14, 0x3f, 0xf7, 0x03, 0xec, 0x07, 0x71, 0xf5, 0xb6, 0x81, 0xb2, 0x29, 0x9e, 0x09, + 0x64, 0x47, 0x8a, 0x1d, 0x3e, 0xd3, 0x4d, 0x85, 0xcf, 0x26, 0xca, 0x38, 0x3f, 0x55, 0x91, 0x25, + 0xe9, 0x9f, 0x43, 0x70, 0xfa, 0x76, 0xbc, 0xf6, 0x3a, 0xaa, 0xe1, 0xf5, 0xd5, 0x40, 0xbc, 0x9e, + 0xf3, 0xe3, 0xf5, 0x83, 0xb8, 0x7b, 0xdd, 0x78, 0xb8, 0x4d, 0x37, 0x08, 0x6e, 0xd3, 0x4d, 0x89, + 0xdb, 0x26, 0x64, 0x4d, 0x3a, 0x51, 0x81, 0x35, 0xe9, 0x5c, 0x08, 0x6a, 0xdf, 0x8a, 0xd3, 0x9e, + 0x64, 0x35, 0xcc, 0xbe, 0x12, 0x88, 0xd9, 0xcf, 0xfc, 0x98, 0x3d, 0x1b, 0x6f, 0x9f, 0x1b, 0x15, + 0xb1, 0xe9, 0x86, 0x40, 0x6c, 0xba, 0x09, 0x11, 0xdb, 0x64, 0x31, 0x6d, 0x38, 0x8b, 0x52, 0xbc, + 0x62, 0x83, 0x2f, 0xcc, 0xa4, 0x14, 0xeb, 0xd8, 0xa0, 0x39, 0xd9, 0x94, 0x4e, 0x55, 0x64, 0x53, + 0x8a, 0x29, 0x6e, 0xd3, 0x4d, 0x89, 0xdb, 0xa6, 0x62, 0x55, 0xda, 0x17, 0xc0, 0xaa, 0xf4, 0xf3, + 0x10, 0xb4, 0x9e, 0x8a, 0xc3, 0x37, 0xbe, 0x6a, 0x18, 0xfd, 0x6e, 0x20, 0x46, 0x7f, 0xe6, 0xc7, + 0xe8, 0x3b, 0xf1, 0xf4, 0xb5, 0x21, 0x91, 0x59, 0x62, 0x57, 0x8a, 0x23, 0x32, 0x6b, 0x66, 0x58, + 0x6a, 0x00, 0x64, 0x36, 0x07, 0xcb, 0xd2, 0xb9, 0xd0, 0x6f, 0xee, 0x27, 0xfc, 0x9d, 0xb5, 0x2f, + 0x52, 0xb9, 0xcc, 0x01, 0x7d, 0xb0, 0x97, 0x8b, 0x26, 0xd3, 0x12, 0x7f, 0x20, 0x90, 0xd5, 0x68, + 0xde, 0x68, 0xac, 0xce, 0x3f, 0xe9, 0x7a, 0x1e, 0x99, 0x8d, 0x7e, 0xc5, 0x95, 0x33, 0x1b, 0x1d, + 0xf1, 0xb7, 0xcc, 0xe3, 0x11, 0x49, 0xf0, 0xbe, 0x80, 0xb3, 0x1c, 0x1f, 0xb6, 0x81, 0xe5, 0x95, + 0xb3, 0xae, 0xe1, 0xbf, 0x70, 0xa0, 0x3f, 0xa4, 0x08, 0x3b, 0xc7, 0xfe, 0x7a, 0x34, 0xf3, 0xc5, + 0xc3, 0xd4, 0xf4, 0x98, 0xfb, 0xe2, 0xc0, 0x64, 0x72, 0xfe, 0xcd, 0x16, 0xb0, 0xac, 0xd2, 0x7d, + 0xf0, 0x52, 0xb0, 0xd0, 0x71, 0xde, 0x75, 0xf8, 0x9d, 0x09, 0xe1, 0x4f, 0xfc, 0x20, 0x79, 0x2b, + 0x86, 0x8d, 0x13, 0x00, 0xa8, 0xff, 0xef, 0x01, 0xd4, 0x12, 0x6f, 0x23, 0xd8, 0xde, 0xdf, 0xf4, + 0xa7, 0xe0, 0xf2, 0x49, 0x55, 0x37, 0x84, 0x30, 0x8f, 0x05, 0x54, 0xb4, 0x60, 0xff, 0xc0, 0x1d, + 0x05, 0x55, 0xd6, 0x91, 0xb1, 0x95, 0x96, 0x32, 0xb7, 0x23, 0xd5, 0xd4, 0x0c, 0x33, 0xb5, 0x81, + 0x34, 0xd8, 0xd2, 0xd0, 0xf6, 0xca, 0x2c, 0xc3, 0x0f, 0x67, 0x77, 0x0d, 0xd9, 0xca, 0xad, 0xf2, + 0xfa, 0x9c, 0xbe, 0xa9, 0x68, 0xad, 0xff, 0xa3, 0xb3, 0xe7, 0x96, 0x73, 0x3f, 0x3e, 0xb7, 0x9c, + 0xfb, 0xec, 0xdc, 0x72, 0xee, 0x0f, 0x32, 0x39, 0xd9, 0x1a, 0x98, 0xa4, 0x15, 0xe1, 0x27, 0xae, + 0x96, 0xb3, 0x68, 0x0c, 0x19, 0xb9, 0xd5, 0x13, 0x48, 0x54, 0xac, 0x89, 0x31, 0xcd, 0x5a, 0x25, + 0xab, 0x39, 0x64, 0x5a, 0xab, 0x26, 0x2d, 0x79, 0x95, 0x2a, 0x5a, 0xf2, 0x14, 0x5a, 0xad, 0xdf, + 0x93, 0x5b, 0x3d, 0x69, 0xc9, 0xab, 0x45, 0x49, 0xd4, 0x2d, 0x64, 0x98, 0xab, 0x85, 0xc9, 0x82, + 0xaa, 0x99, 0xab, 0xcd, 0xec, 0x04, 0xca, 0x8b, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xd5, 0xa2, + 0x4f, 0x0c, 0xc0, 0xcd, 0x00, 0x00, +} + +func (m *NetworkInstancesNiBgp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocols != nil { + { + size, err := m.Protocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocol != nil { + { + size, err := m.Protocol.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bgp != nil { + { + size, err := m.Bgp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PeerGroups != nil { + { + size, err := m.PeerGroups.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Global != nil { + { + size, err := m.Global.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ApplyPolicy != nil { + { + size, err := m.ApplyPolicy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + if m.AfiSafis != nil { + { + size, err := m.AfiSafis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Confederation != nil { + { + size, err := m.Confederation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.RouteSelectionOptions != nil { + { + size, err := m.RouteSelectionOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPrefixes)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.TotalPaths != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPaths)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.RouterId != nil { + i -= len(*m.RouterId) + copy(dAtA[i:], *m.RouterId) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.RouterId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.As != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.As)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExternalCompareRouterId != nil { + i-- + if *m.ExternalCompareRouterId { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.IgnoreAsPathLength != nil { + i-- + if *m.IgnoreAsPathLength { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.AlwaysCompareMed != nil { + i-- + if *m.AlwaysCompareMed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AdvertiseInactiveRoutes != nil { + i-- + if *m.AdvertiseInactiveRoutes { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Identifier != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Identifier)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if len(m.MemberAs) > 0 { + for iNdEx := len(m.MemberAs) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(m.MemberAs[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelperOnly != nil { + i-- + if *m.HelperOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.StaleRoutesTime != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.StaleRoutesTime)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.RestartTime != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.RestartTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ExportPolicy) > 0 { + for iNdEx := len(m.ExportPolicy) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExportPolicy[iNdEx]) + copy(dAtA[i:], m.ExportPolicy[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.ExportPolicy[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.ImportPolicy) > 0 { + for iNdEx := len(m.ImportPolicy) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImportPolicy[iNdEx]) + copy(dAtA[i:], m.ImportPolicy[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.ImportPolicy[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AfiSafi) > 0 { + for iNdEx := len(m.AfiSafi) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AfiSafi[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L2VpnEvpn != nil { + { + size, err := m.L2VpnEvpn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + if m.L2VpnVpls != nil { + { + size, err := m.L2VpnVpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + if m.L3VpnIpv6Multicast != nil { + { + size, err := m.L3VpnIpv6Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.L3VpnIpv4Multicast != nil { + { + size, err := m.L3VpnIpv4Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.L3VpnIpv6Unicast != nil { + { + size, err := m.L3VpnIpv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.L3VpnIpv4Unicast != nil { + { + size, err := m.L3VpnIpv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.Ipv6LabeledUnicast != nil { + { + size, err := m.Ipv6LabeledUnicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Ipv4LabeledUnicast != nil { + { + size, err := m.Ipv4LabeledUnicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Ipv6Unicast != nil { + { + size, err := m.Ipv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Ipv4Unicast != nil { + { + size, err := m.Ipv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.AddPaths != nil { + { + size, err := m.AddPaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPrefixes)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.TotalPaths != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPaths)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Send != nil { + i-- + if *m.Send { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.EligiblePrefixPolicy != nil { + i -= len(*m.EligiblePrefixPolicy) + copy(dAtA[i:], *m.EligiblePrefixPolicy) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.EligiblePrefixPolicy))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.SendMax != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.SendMax)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Receive != nil { + i-- + if *m.Receive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EnableBfd != nil { + { + size, err := m.EnableBfd.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xe2 + } + if m.ApplyPolicy != nil { + { + size, err := m.ApplyPolicy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.AfiSafis != nil { + { + size, err := m.AfiSafis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.UseMultiplePaths != nil { + { + size, err := m.UseMultiplePaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.AsPathOptions != nil { + { + size, err := m.AsPathOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.RouteReflector != nil { + { + size, err := m.RouteReflector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.EbgpMultihop != nil { + { + size, err := m.EbgpMultihop.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.LoggingOptions != nil { + { + size, err := m.LoggingOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.ErrorHandling != nil { + { + size, err := m.ErrorHandling.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Transport != nil { + { + size, err := m.Transport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Timers != nil { + { + size, err := m.Timers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SnmpPeerIndex != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.SnmpPeerIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.NeighborAddress != nil { + i -= len(*m.NeighborAddress) + copy(dAtA[i:], *m.NeighborAddress) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.NeighborAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Queues != nil { + { + size, err := m.Queues.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Messages != nil { + { + size, err := m.Messages.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SnmpPeerIndex != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.SnmpPeerIndex)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.NeighborAddress != nil { + i -= len(*m.NeighborAddress) + copy(dAtA[i:], *m.NeighborAddress) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.NeighborAddress))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x92 + } + if m.PeerGroup != nil { + i -= len(*m.PeerGroup) + copy(dAtA[i:], *m.PeerGroup) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.PeerGroup))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x8a + } + if m.DynamicallyConfigured != nil { + i-- + if *m.DynamicallyConfigured { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.ImportEval != nil { + i-- + if *m.ImportEval { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.ImportEvalPending != nil { + i-- + if *m.ImportEvalPending { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.InterfaceError != nil { + i-- + if *m.InterfaceError { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.SessionAdminStatus != nil { + i -= len(*m.SessionAdminStatus) + copy(dAtA[i:], *m.SessionAdminStatus) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.SessionAdminStatus))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.SessionStatus != nil { + i -= len(*m.SessionStatus) + copy(dAtA[i:], *m.SessionStatus) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.SessionStatus))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + if len(m.SupportedCapabilities) > 0 { + for iNdEx := len(m.SupportedCapabilities) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SupportedCapabilities[iNdEx]) + copy(dAtA[i:], m.SupportedCapabilities[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.SupportedCapabilities[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + } + if m.EstablishedTransitions != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.EstablishedTransitions)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.LastEstablished != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.LastEstablished)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.SessionState != nil { + i -= len(*m.SessionState) + copy(dAtA[i:], *m.SessionState) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.SessionState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.RouteFlapDamping != nil { + i-- + if *m.RouteFlapDamping { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.RemovePrivateAs != nil { + i -= len(*m.RemovePrivateAs) + copy(dAtA[i:], *m.RemovePrivateAs) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.RemovePrivateAs))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.AuthPassword != nil { + i -= len(*m.AuthPassword) + copy(dAtA[i:], *m.AuthPassword) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AuthPassword))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.PeerType != nil { + i -= len(*m.PeerType) + copy(dAtA[i:], *m.PeerType) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.PeerType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LocalAs != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.LocalAs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PeerAs != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.PeerAs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Received != nil { + { + size, err := m.Received.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Sent != nil { + { + size, err := m.Sent.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastNotificationErrorSubcode != nil { + i -= len(*m.LastNotificationErrorSubcode) + copy(dAtA[i:], *m.LastNotificationErrorSubcode) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.LastNotificationErrorSubcode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xca + } + if m.LastNotificationErrorCode != nil { + i -= len(*m.LastNotificationErrorCode) + copy(dAtA[i:], *m.LastNotificationErrorCode) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.LastNotificationErrorCode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.LastNotificationTime != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.LastNotificationTime)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.NOTIFICATION != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.NOTIFICATION)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.UPDATE != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.UPDATE)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastNotificationErrorSubcode != nil { + i -= len(*m.LastNotificationErrorSubcode) + copy(dAtA[i:], *m.LastNotificationErrorSubcode) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.LastNotificationErrorSubcode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe2 + } + if m.LastNotificationErrorCode != nil { + i -= len(*m.LastNotificationErrorCode) + copy(dAtA[i:], *m.LastNotificationErrorCode) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.LastNotificationErrorCode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xda + } + if m.LastNotificationTime != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.LastNotificationTime)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.NOTIFICATION != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.NOTIFICATION)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.UPDATE != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.UPDATE)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Output != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Output)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.Input != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Input)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NegotiatedHoldTime != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.NegotiatedHoldTime)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe9 + } + if m.MinimumAdvertisementInterval != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.MinimumAdvertisementInterval)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb1 + } + if m.KeepaliveInterval != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.KeepaliveInterval)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.HoldTime != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.HoldTime)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa1 + } + if m.ConnectRetry != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ConnectRetry)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x99 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RemotePort != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.RemotePort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.RemoteAddress != nil { + i -= len(*m.RemoteAddress) + copy(dAtA[i:], *m.RemoteAddress) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.RemoteAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LocalPort != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.LocalPort)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.LocalAddress != nil { + i -= len(*m.LocalAddress) + copy(dAtA[i:], *m.LocalAddress) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.LocalAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.PassiveMode != nil { + i-- + if *m.PassiveMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MtuDiscovery != nil { + i-- + if *m.MtuDiscovery { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TcpMss != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TcpMss)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ErroneousUpdateMessages != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ErroneousUpdateMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.TreatAsWithdraw != nil { + i-- + if *m.TreatAsWithdraw { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogNeighborStateChanges != nil { + i-- + if *m.LogNeighborStateChanges { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MultihopTtl != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MultihopTtl)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RouteReflectorClient != nil { + i-- + if *m.RouteReflectorClient { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RouteReflectorClusterId != nil { + i -= len(*m.RouteReflectorClusterId) + copy(dAtA[i:], *m.RouteReflectorClusterId) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.RouteReflectorClusterId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DisablePeerAsFilter != nil { + i-- + if *m.DisablePeerAsFilter { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ReplacePeerAs != nil { + i-- + if *m.ReplacePeerAs { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AllowOwnAs != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.AllowOwnAs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ebgp != nil { + { + size, err := m.Ebgp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AllowMultipleAs != nil { + i-- + if *m.AllowMultipleAs { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AfiSafi) > 0 { + for iNdEx := len(m.AfiSafi) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AfiSafi[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L2VpnEvpn != nil { + { + size, err := m.L2VpnEvpn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + if m.L2VpnVpls != nil { + { + size, err := m.L2VpnVpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + if m.L3VpnIpv6Multicast != nil { + { + size, err := m.L3VpnIpv6Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.L3VpnIpv4Multicast != nil { + { + size, err := m.L3VpnIpv4Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.L3VpnIpv6Unicast != nil { + { + size, err := m.L3VpnIpv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.L3VpnIpv4Unicast != nil { + { + size, err := m.L3VpnIpv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.Ipv6LabeledUnicast != nil { + { + size, err := m.Ipv6LabeledUnicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Ipv4LabeledUnicast != nil { + { + size, err := m.Ipv4LabeledUnicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Ipv6Unicast != nil { + { + size, err := m.Ipv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Ipv4Unicast != nil { + { + size, err := m.Ipv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.AddPaths != nil { + { + size, err := m.AddPaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Advertised != nil { + i-- + if *m.Advertised { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.Received != nil { + i-- + if *m.Received { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Queues != nil { + { + size, err := m.Queues.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Prefixes != nil { + { + size, err := m.Prefixes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.PrefixLimitExceeded != nil { + i-- + if *m.PrefixLimitExceeded { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.Active != nil { + i-- + if *m.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Rejected != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Rejected)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.ReceivedPrePolicy != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ReceivedPrePolicy)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.Installed != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Installed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.Sent != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.Received != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.Accepted != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Accepted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Output != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Output)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.Input != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Input)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Send != nil { + i-- + if *m.Send { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.EligiblePrefixPolicy != nil { + i -= len(*m.EligiblePrefixPolicy) + copy(dAtA[i:], *m.EligiblePrefixPolicy) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.EligiblePrefixPolicy))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.SendMax != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.SendMax)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Receive != nil { + i-- + if *m.Receive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mode != nil { + i -= len(*m.Mode) + copy(dAtA[i:], *m.Mode) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.Mode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.LocalRestarting != nil { + i-- + if *m.LocalRestarting { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.PeerRestarting != nil { + i-- + if *m.PeerRestarting { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.PeerRestartTime != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.PeerRestartTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.HelperOnly != nil { + i-- + if *m.HelperOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.StaleRoutesTime != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.StaleRoutesTime)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.RestartTime != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.RestartTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ExportPolicy) > 0 { + for iNdEx := len(m.ExportPolicy) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExportPolicy[iNdEx]) + copy(dAtA[i:], m.ExportPolicy[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.ExportPolicy[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.ImportPolicy) > 0 { + for iNdEx := len(m.ImportPolicy) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImportPolicy[iNdEx]) + copy(dAtA[i:], m.ImportPolicy[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.ImportPolicy[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.JnxSessionMode != nil { + i -= len(*m.JnxSessionMode) + copy(dAtA[i:], *m.JnxSessionMode) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.JnxSessionMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.JnxSessionState != nil { + i-- + if *m.JnxSessionState { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.JnxMinRxInterval != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.JnxMinRxInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.JnxLocalMultiplier != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.JnxLocalMultiplier)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.JnxMinTxInterval != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.JnxMinTxInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PeerGroup) > 0 { + for iNdEx := len(m.PeerGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PeerGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EnableBfd != nil { + { + size, err := m.EnableBfd.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xe2 + } + if m.ApplyPolicy != nil { + { + size, err := m.ApplyPolicy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + if m.DynamicNeighborPrefixes != nil { + { + size, err := m.DynamicNeighborPrefixes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.AfiSafis != nil { + { + size, err := m.AfiSafis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.UseMultiplePaths != nil { + { + size, err := m.UseMultiplePaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.AsPathOptions != nil { + { + size, err := m.AsPathOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.RouteReflector != nil { + { + size, err := m.RouteReflector.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.EbgpMultihop != nil { + { + size, err := m.EbgpMultihop.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.LoggingOptions != nil { + { + size, err := m.LoggingOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.ErrorHandling != nil { + { + size, err := m.ErrorHandling.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Transport != nil { + { + size, err := m.Transport.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Timers != nil { + { + size, err := m.Timers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.PeerGroupName != nil { + i -= len(*m.PeerGroupName) + copy(dAtA[i:], *m.PeerGroupName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.PeerGroupName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPrefixes)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.TotalPaths != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPaths)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.PeerGroupName != nil { + i -= len(*m.PeerGroupName) + copy(dAtA[i:], *m.PeerGroupName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.PeerGroupName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.RouteFlapDamping != nil { + i-- + if *m.RouteFlapDamping { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.RemovePrivateAs != nil { + i -= len(*m.RemovePrivateAs) + copy(dAtA[i:], *m.RemovePrivateAs) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.RemovePrivateAs))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.AuthPassword != nil { + i -= len(*m.AuthPassword) + copy(dAtA[i:], *m.AuthPassword) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AuthPassword))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.PeerType != nil { + i -= len(*m.PeerType) + copy(dAtA[i:], *m.PeerType) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.PeerType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LocalAs != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.LocalAs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PeerAs != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.PeerAs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MinimumAdvertisementInterval != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.MinimumAdvertisementInterval)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb1 + } + if m.KeepaliveInterval != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.KeepaliveInterval)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.HoldTime != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.HoldTime)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa1 + } + if m.ConnectRetry != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.ConnectRetry)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x99 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LocalAddress != nil { + i -= len(*m.LocalAddress) + copy(dAtA[i:], *m.LocalAddress) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.LocalAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.PassiveMode != nil { + i-- + if *m.PassiveMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MtuDiscovery != nil { + i-- + if *m.MtuDiscovery { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.TcpMss != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TcpMss)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TreatAsWithdraw != nil { + i-- + if *m.TreatAsWithdraw { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LogNeighborStateChanges != nil { + i-- + if *m.LogNeighborStateChanges { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MultihopTtl != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MultihopTtl)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RouteReflectorClient != nil { + i-- + if *m.RouteReflectorClient { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.RouteReflectorClusterId != nil { + i -= len(*m.RouteReflectorClusterId) + copy(dAtA[i:], *m.RouteReflectorClusterId) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.RouteReflectorClusterId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DisablePeerAsFilter != nil { + i-- + if *m.DisablePeerAsFilter { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ReplacePeerAs != nil { + i-- + if *m.ReplacePeerAs { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AllowOwnAs != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.AllowOwnAs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ibgp != nil { + { + size, err := m.Ibgp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Ebgp != nil { + { + size, err := m.Ebgp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MaximumPaths != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaximumPaths)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AllowMultipleAs != nil { + i-- + if *m.AllowMultipleAs { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MaximumPaths != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaximumPaths)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AfiSafi) > 0 { + for iNdEx := len(m.AfiSafi) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AfiSafi[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L2VpnEvpn != nil { + { + size, err := m.L2VpnEvpn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x9a + } + if m.L2VpnVpls != nil { + { + size, err := m.L2VpnVpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x92 + } + if m.L3VpnIpv6Multicast != nil { + { + size, err := m.L3VpnIpv6Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x8a + } + if m.L3VpnIpv4Multicast != nil { + { + size, err := m.L3VpnIpv4Multicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0x82 + } + if m.L3VpnIpv6Unicast != nil { + { + size, err := m.L3VpnIpv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xfa + } + if m.L3VpnIpv4Unicast != nil { + { + size, err := m.L3VpnIpv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xf2 + } + if m.Ipv6LabeledUnicast != nil { + { + size, err := m.Ipv6LabeledUnicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Ipv4LabeledUnicast != nil { + { + size, err := m.Ipv4LabeledUnicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Ipv6Unicast != nil { + { + size, err := m.Ipv6Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Ipv4Unicast != nil { + { + size, err := m.Ipv4Unicast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.AddPaths != nil { + { + size, err := m.AddPaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefixes != nil { + { + size, err := m.Prefixes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.TotalPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPrefixes)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.TotalPaths != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.TotalPaths)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.Active != nil { + i-- + if *m.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AfiSafiName != nil { + i -= len(*m.AfiSafiName) + copy(dAtA[i:], *m.AfiSafiName) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.AfiSafiName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Rejected != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Rejected)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.ReceivedPrePolicy != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ReceivedPrePolicy)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.Installed != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Installed)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.Sent != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Sent)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.Received != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Received)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.Accepted != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.Accepted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Send != nil { + i-- + if *m.Send { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.EligiblePrefixPolicy != nil { + i -= len(*m.EligiblePrefixPolicy) + copy(dAtA[i:], *m.EligiblePrefixPolicy) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.EligiblePrefixPolicy))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.SendMax != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.SendMax)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Receive != nil { + i-- + if *m.Receive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PrefixLimit != nil { + { + size, err := m.PrefixLimit.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PreventTeardown != nil { + i-- + if *m.PreventTeardown { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RestartTimer != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.RestartTimer)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.ShutdownThresholdPct != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.ShutdownThresholdPct)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.MaxPrefixes != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.MaxPrefixes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HelperOnly != nil { + i-- + if *m.HelperOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.StaleRoutesTime != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.StaleRoutesTime)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa9 + } + if m.RestartTime != nil { + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(*m.RestartTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ExportPolicy) > 0 { + for iNdEx := len(m.ExportPolicy) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExportPolicy[iNdEx]) + copy(dAtA[i:], m.ExportPolicy[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.ExportPolicy[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.ImportPolicy) > 0 { + for iNdEx := len(m.ImportPolicy) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ImportPolicy[iNdEx]) + copy(dAtA[i:], m.ImportPolicy[iNdEx]) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(m.ImportPolicy[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.DynamicNeighborPrefix) > 0 { + for iNdEx := len(m.DynamicNeighborPrefix) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DynamicNeighborPrefix[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Prefix != nil { + i -= len(*m.Prefix) + copy(dAtA[i:], *m.Prefix) + i = encodeVarintRpdNiBgpOc(dAtA, i, uint64(len(*m.Prefix))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdNiBgpOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdNiBgpOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesNiBgp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Protocols != nil { + l = m.Protocols.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = m.Protocol.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Bgp != nil { + l = m.Bgp.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Global != nil { + l = m.Global.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.PeerGroups != nil { + l = m.PeerGroups.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteSelectionOptions != nil { + l = m.RouteSelectionOptions.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Confederation != nil { + l = m.Confederation.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AfiSafis != nil { + l = m.AfiSafis.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.ApplyPolicy != nil { + l = m.ApplyPolicy.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.As != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.As)) + } + if m.RouterId != nil { + l = len(*m.RouterId) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.TotalPaths != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPaths)) + } + if m.TotalPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPrefixes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AdvertiseInactiveRoutes != nil { + n += 3 + } + if m.AlwaysCompareMed != nil { + n += 3 + } + if m.IgnoreAsPathLength != nil { + n += 3 + } + if m.ExternalCompareRouterId != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MemberAs) > 0 { + for _, e := range m.MemberAs { + n += 2 + sovRpdNiBgpOc(uint64(e)) + } + } + if m.Identifier != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Identifier)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.RestartTime != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.RestartTime)) + } + if m.StaleRoutesTime != nil { + n += 10 + } + if m.HelperOnly != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ImportPolicy) > 0 { + for _, s := range m.ImportPolicy { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if len(m.ExportPolicy) > 0 { + for _, s := range m.ExportPolicy { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AfiSafi) > 0 { + for _, e := range m.AfiSafi { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AddPaths != nil { + l = m.AddPaths.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv4Unicast != nil { + l = m.Ipv4Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv6Unicast != nil { + l = m.Ipv6Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv4LabeledUnicast != nil { + l = m.Ipv4LabeledUnicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv6LabeledUnicast != nil { + l = m.Ipv6LabeledUnicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv4Unicast != nil { + l = m.L3VpnIpv4Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv6Unicast != nil { + l = m.L3VpnIpv6Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv4Multicast != nil { + l = m.L3VpnIpv4Multicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv6Multicast != nil { + l = m.L3VpnIpv6Multicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L2VpnVpls != nil { + l = m.L2VpnVpls.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L2VpnEvpn != nil { + l = m.L2VpnEvpn.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.TotalPaths != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPaths)) + } + if m.TotalPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPrefixes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Receive != nil { + n += 3 + } + if m.SendMax != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.SendMax)) + } + if m.EligiblePrefixPolicy != nil { + l = len(*m.EligiblePrefixPolicy) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Send != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NeighborAddress != nil { + l = len(*m.NeighborAddress) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.SnmpPeerIndex != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.SnmpPeerIndex)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Timers != nil { + l = m.Timers.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Transport != nil { + l = m.Transport.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.ErrorHandling != nil { + l = m.ErrorHandling.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.LoggingOptions != nil { + l = m.LoggingOptions.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.EbgpMultihop != nil { + l = m.EbgpMultihop.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteReflector != nil { + l = m.RouteReflector.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AsPathOptions != nil { + l = m.AsPathOptions.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.UseMultiplePaths != nil { + l = m.UseMultiplePaths.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AfiSafis != nil { + l = m.AfiSafis.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.ApplyPolicy != nil { + l = m.ApplyPolicy.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.EnableBfd != nil { + l = m.EnableBfd.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerAs != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.PeerAs)) + } + if m.LocalAs != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.LocalAs)) + } + if m.PeerType != nil { + l = len(*m.PeerType) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AuthPassword != nil { + l = len(*m.AuthPassword) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RemovePrivateAs != nil { + l = len(*m.RemovePrivateAs) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteFlapDamping != nil { + n += 3 + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.SessionState != nil { + l = len(*m.SessionState) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.LastEstablished != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.LastEstablished)) + } + if m.EstablishedTransitions != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.EstablishedTransitions)) + } + if len(m.SupportedCapabilities) > 0 { + for _, s := range m.SupportedCapabilities { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.SessionStatus != nil { + l = len(*m.SessionStatus) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.SessionAdminStatus != nil { + l = len(*m.SessionAdminStatus) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.InterfaceError != nil { + n += 3 + } + if m.ImportEvalPending != nil { + n += 3 + } + if m.ImportEval != nil { + n += 3 + } + if m.DynamicallyConfigured != nil { + n += 3 + } + if m.PeerGroup != nil { + l = len(*m.PeerGroup) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.NeighborAddress != nil { + l = len(*m.NeighborAddress) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.SnmpPeerIndex != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.SnmpPeerIndex)) + } + if m.Messages != nil { + l = m.Messages.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Queues != nil { + l = m.Queues.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sent != nil { + l = m.Sent.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Received != nil { + l = m.Received.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UPDATE != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.UPDATE)) + } + if m.NOTIFICATION != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.NOTIFICATION)) + } + if m.LastNotificationTime != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.LastNotificationTime)) + } + if m.LastNotificationErrorCode != nil { + l = len(*m.LastNotificationErrorCode) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.LastNotificationErrorSubcode != nil { + l = len(*m.LastNotificationErrorSubcode) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UPDATE != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.UPDATE)) + } + if m.NOTIFICATION != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.NOTIFICATION)) + } + if m.LastNotificationTime != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.LastNotificationTime)) + } + if m.LastNotificationErrorCode != nil { + l = len(*m.LastNotificationErrorCode) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.LastNotificationErrorSubcode != nil { + l = len(*m.LastNotificationErrorSubcode) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Input != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Input)) + } + if m.Output != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Output)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConnectRetry != nil { + n += 10 + } + if m.HoldTime != nil { + n += 10 + } + if m.KeepaliveInterval != nil { + n += 10 + } + if m.MinimumAdvertisementInterval != nil { + n += 10 + } + if m.NegotiatedHoldTime != nil { + n += 10 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TcpMss != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TcpMss)) + } + if m.MtuDiscovery != nil { + n += 3 + } + if m.PassiveMode != nil { + n += 3 + } + if m.LocalAddress != nil { + l = len(*m.LocalAddress) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.LocalPort != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.LocalPort)) + } + if m.RemoteAddress != nil { + l = len(*m.RemoteAddress) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RemotePort != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.RemotePort)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TreatAsWithdraw != nil { + n += 3 + } + if m.ErroneousUpdateMessages != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ErroneousUpdateMessages)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LogNeighborStateChanges != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.MultihopTtl != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MultihopTtl)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteReflectorClusterId != nil { + l = len(*m.RouteReflectorClusterId) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteReflectorClient != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AllowOwnAs != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.AllowOwnAs)) + } + if m.ReplacePeerAs != nil { + n += 3 + } + if m.DisablePeerAsFilter != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ebgp != nil { + l = m.Ebgp.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AllowMultipleAs != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AfiSafi) > 0 { + for _, e := range m.AfiSafi { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AddPaths != nil { + l = m.AddPaths.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv4Unicast != nil { + l = m.Ipv4Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv6Unicast != nil { + l = m.Ipv6Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv4LabeledUnicast != nil { + l = m.Ipv4LabeledUnicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv6LabeledUnicast != nil { + l = m.Ipv6LabeledUnicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv4Unicast != nil { + l = m.L3VpnIpv4Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv6Unicast != nil { + l = m.L3VpnIpv6Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv4Multicast != nil { + l = m.L3VpnIpv4Multicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv6Multicast != nil { + l = m.L3VpnIpv6Multicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L2VpnVpls != nil { + l = m.L2VpnVpls.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L2VpnEvpn != nil { + l = m.L2VpnEvpn.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.Received != nil { + n += 3 + } + if m.Advertised != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.Active != nil { + n += 3 + } + if m.PrefixLimitExceeded != nil { + n += 3 + } + if m.Prefixes != nil { + l = m.Prefixes.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Queues != nil { + l = m.Queues.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Accepted != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Accepted)) + } + if m.Received != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Received)) + } + if m.Sent != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Sent)) + } + if m.Installed != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Installed)) + } + if m.ReceivedPrePolicy != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ReceivedPrePolicy)) + } + if m.Rejected != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Rejected)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Input != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Input)) + } + if m.Output != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Output)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Receive != nil { + n += 3 + } + if m.SendMax != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.SendMax)) + } + if m.EligiblePrefixPolicy != nil { + l = len(*m.EligiblePrefixPolicy) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Send != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.RestartTime != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.RestartTime)) + } + if m.StaleRoutesTime != nil { + n += 10 + } + if m.HelperOnly != nil { + n += 3 + } + if m.PeerRestartTime != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.PeerRestartTime)) + } + if m.PeerRestarting != nil { + n += 3 + } + if m.LocalRestarting != nil { + n += 3 + } + if m.Mode != nil { + l = len(*m.Mode) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ImportPolicy) > 0 { + for _, s := range m.ImportPolicy { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if len(m.ExportPolicy) > 0 { + for _, s := range m.ExportPolicy { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.JnxMinTxInterval != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.JnxMinTxInterval)) + } + if m.JnxLocalMultiplier != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.JnxLocalMultiplier)) + } + if m.JnxMinRxInterval != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.JnxMinRxInterval)) + } + if m.JnxSessionState != nil { + n += 3 + } + if m.JnxSessionMode != nil { + l = len(*m.JnxSessionMode) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PeerGroup) > 0 { + for _, e := range m.PeerGroup { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerGroupName != nil { + l = len(*m.PeerGroupName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Timers != nil { + l = m.Timers.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Transport != nil { + l = m.Transport.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.ErrorHandling != nil { + l = m.ErrorHandling.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.LoggingOptions != nil { + l = m.LoggingOptions.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.EbgpMultihop != nil { + l = m.EbgpMultihop.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteReflector != nil { + l = m.RouteReflector.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AsPathOptions != nil { + l = m.AsPathOptions.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.UseMultiplePaths != nil { + l = m.UseMultiplePaths.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AfiSafis != nil { + l = m.AfiSafis.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.DynamicNeighborPrefixes != nil { + l = m.DynamicNeighborPrefixes.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.ApplyPolicy != nil { + l = m.ApplyPolicy.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.EnableBfd != nil { + l = m.EnableBfd.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerAs != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.PeerAs)) + } + if m.LocalAs != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.LocalAs)) + } + if m.PeerType != nil { + l = len(*m.PeerType) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AuthPassword != nil { + l = len(*m.AuthPassword) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RemovePrivateAs != nil { + l = len(*m.RemovePrivateAs) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteFlapDamping != nil { + n += 3 + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.PeerGroupName != nil { + l = len(*m.PeerGroupName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.TotalPaths != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPaths)) + } + if m.TotalPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPrefixes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConnectRetry != nil { + n += 10 + } + if m.HoldTime != nil { + n += 10 + } + if m.KeepaliveInterval != nil { + n += 10 + } + if m.MinimumAdvertisementInterval != nil { + n += 10 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TcpMss != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TcpMss)) + } + if m.MtuDiscovery != nil { + n += 3 + } + if m.PassiveMode != nil { + n += 3 + } + if m.LocalAddress != nil { + l = len(*m.LocalAddress) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TreatAsWithdraw != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LogNeighborStateChanges != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.MultihopTtl != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MultihopTtl)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RouteReflectorClusterId != nil { + l = len(*m.RouteReflectorClusterId) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.RouteReflectorClient != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AllowOwnAs != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.AllowOwnAs)) + } + if m.ReplacePeerAs != nil { + n += 3 + } + if m.DisablePeerAsFilter != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ebgp != nil { + l = m.Ebgp.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ibgp != nil { + l = m.Ibgp.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AllowMultipleAs != nil { + n += 3 + } + if m.MaximumPaths != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaximumPaths)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaximumPaths != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaximumPaths)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AfiSafi) > 0 { + for _, e := range m.AfiSafi { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.AddPaths != nil { + l = m.AddPaths.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv4Unicast != nil { + l = m.Ipv4Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv6Unicast != nil { + l = m.Ipv6Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv4LabeledUnicast != nil { + l = m.Ipv4LabeledUnicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Ipv6LabeledUnicast != nil { + l = m.Ipv6LabeledUnicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv4Unicast != nil { + l = m.L3VpnIpv4Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv6Unicast != nil { + l = m.L3VpnIpv6Unicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv4Multicast != nil { + l = m.L3VpnIpv4Multicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L3VpnIpv6Multicast != nil { + l = m.L3VpnIpv6Multicast.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L2VpnVpls != nil { + l = m.L2VpnVpls.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.L2VpnEvpn != nil { + l = m.L2VpnEvpn.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfiSafiName != nil { + l = len(*m.AfiSafiName) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Enabled != nil { + n += 3 + } + if m.Active != nil { + n += 3 + } + if m.TotalPaths != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPaths)) + } + if m.TotalPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.TotalPrefixes)) + } + if m.Prefixes != nil { + l = m.Prefixes.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Accepted != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Accepted)) + } + if m.Received != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Received)) + } + if m.Sent != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Sent)) + } + if m.Installed != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Installed)) + } + if m.ReceivedPrePolicy != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ReceivedPrePolicy)) + } + if m.Rejected != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.Rejected)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Receive != nil { + n += 3 + } + if m.SendMax != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.SendMax)) + } + if m.EligiblePrefixPolicy != nil { + l = len(*m.EligiblePrefixPolicy) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.Send != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PrefixLimit != nil { + l = m.PrefixLimit.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MaxPrefixes != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.MaxPrefixes)) + } + if m.ShutdownThresholdPct != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.ShutdownThresholdPct)) + } + if m.RestartTimer != nil { + n += 10 + } + if m.PreventTeardown != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.RestartTime != nil { + n += 2 + sovRpdNiBgpOc(uint64(*m.RestartTime)) + } + if m.StaleRoutesTime != nil { + n += 10 + } + if m.HelperOnly != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ImportPolicy) > 0 { + for _, s := range m.ImportPolicy { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if len(m.ExportPolicy) > 0 { + for _, s := range m.ExportPolicy { + l = len(s) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.DynamicNeighborPrefix) > 0 { + for _, e := range m.DynamicNeighborPrefix { + l = e.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Prefix != nil { + l = len(*m.Prefix) + n += 2 + l + sovRpdNiBgpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdNiBgpOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdNiBgpOc(x uint64) (n int) { + return sovRpdNiBgpOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesNiBgp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_ni_bgp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_ni_bgp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesNiBgpNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocols == nil { + m.Protocols = &NetworkInstancesNiBgpNetworkInstanceListProtocolsType{} + } + if err := m.Protocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocol == nil { + m.Protocol = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType{} + } + if err := m.Protocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bgp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Bgp == nil { + m.Bgp = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType{} + } + if err := m.Bgp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bgp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bgp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Global", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Global == nil { + m.Global = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType{} + } + if err := m.Global.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PeerGroups == nil { + m.PeerGroups = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType{} + } + if err := m.PeerGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: global_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: global_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteSelectionOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RouteSelectionOptions == nil { + m.RouteSelectionOptions = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType{} + } + if err := m.RouteSelectionOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Confederation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Confederation == nil { + m.Confederation = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType{} + } + if err := m.Confederation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AfiSafis == nil { + m.AfiSafis = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType{} + } + if err := m.AfiSafis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplyPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApplyPolicy == nil { + m.ApplyPolicy = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType{} + } + if err := m.ApplyPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field As", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.As = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RouterId = &s + iNdEx = postIndex + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPaths", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPaths = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPrefixes = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_selection_options_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_selection_options_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeRouteSelectionOptionsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertiseInactiveRoutes", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AdvertiseInactiveRoutes = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AlwaysCompareMed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AlwaysCompareMed = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreAsPathLength", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IgnoreAsPathLength = &b + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalCompareRouterId", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ExternalCompareRouterId = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: confederation_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: confederation_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeConfederationTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemberAs = append(m.MemberAs, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.MemberAs) == 0 { + m.MemberAs = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemberAs = append(m.MemberAs, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field MemberAs", wireType) + } + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Identifier = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RestartTime = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field StaleRoutesTime", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.StaleRoutesTime = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelperOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.HelperOnly = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: apply_policy_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: apply_policy_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeApplyPolicyTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImportPolicy = append(m.ImportPolicy, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExportPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExportPolicy = append(m.ExportPolicy, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafi", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AfiSafi = append(m.AfiSafi, &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList{}) + if err := m.AfiSafi[len(m.AfiSafi)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safi_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safi_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddPaths == nil { + m.AddPaths = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType{} + } + if err := m.AddPaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Unicast == nil { + m.Ipv4Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType{} + } + if err := m.Ipv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Unicast == nil { + m.Ipv6Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType{} + } + if err := m.Ipv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4LabeledUnicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4LabeledUnicast == nil { + m.Ipv4LabeledUnicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType{} + } + if err := m.Ipv4LabeledUnicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6LabeledUnicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6LabeledUnicast == nil { + m.Ipv6LabeledUnicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType{} + } + if err := m.Ipv6LabeledUnicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv4Unicast == nil { + m.L3VpnIpv4Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType{} + } + if err := m.L3VpnIpv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv6Unicast == nil { + m.L3VpnIpv6Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType{} + } + if err := m.L3VpnIpv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv4Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv4Multicast == nil { + m.L3VpnIpv4Multicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType{} + } + if err := m.L3VpnIpv4Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv6Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv6Multicast == nil { + m.L3VpnIpv6Multicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType{} + } + if err := m.L3VpnIpv6Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2VpnVpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2VpnVpls == nil { + m.L2VpnVpls = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType{} + } + if err := m.L2VpnVpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2VpnEvpn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2VpnEvpn == nil { + m.L2VpnEvpn = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType{} + } + if err := m.L2VpnEvpn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPaths", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPaths = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPrefixes = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: add_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: add_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListAddPathsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Receive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Receive = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SendMax = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EligiblePrefixPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EligiblePrefixPolicy = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Send", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Send = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_labeled_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_labeled_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_labeled_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_labeled_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv4_multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv4_multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv6_multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv6_multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2vpn_vpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2vpn_vpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2vpn_evpn_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2vpn_evpn_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeGlobalTypeAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborAddress = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnmpPeerIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnmpPeerIndex = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Timers == nil { + m.Timers = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType{} + } + if err := m.Timers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transport", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Transport == nil { + m.Transport = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType{} + } + if err := m.Transport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorHandling", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ErrorHandling == nil { + m.ErrorHandling = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType{} + } + if err := m.ErrorHandling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoggingOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LoggingOptions == nil { + m.LoggingOptions = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType{} + } + if err := m.LoggingOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EbgpMultihop", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EbgpMultihop == nil { + m.EbgpMultihop = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType{} + } + if err := m.EbgpMultihop.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteReflector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RouteReflector == nil { + m.RouteReflector = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType{} + } + if err := m.RouteReflector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPathOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AsPathOptions == nil { + m.AsPathOptions = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType{} + } + if err := m.AsPathOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UseMultiplePaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UseMultiplePaths == nil { + m.UseMultiplePaths = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType{} + } + if err := m.UseMultiplePaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AfiSafis == nil { + m.AfiSafis = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType{} + } + if err := m.AfiSafis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplyPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApplyPolicy == nil { + m.ApplyPolicy = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType{} + } + if err := m.ApplyPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 172: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableBfd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EnableBfd == nil { + m.EnableBfd = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType{} + } + if err := m.EnableBfd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerAs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeerAs = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalAs = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerType = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthPassword", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AuthPassword = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemovePrivateAs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemovePrivateAs = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteFlapDamping", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RouteFlapDamping = &b + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionState = &s + iNdEx = postIndex + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastEstablished", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastEstablished = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EstablishedTransitions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EstablishedTransitions = &v + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SupportedCapabilities", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SupportedCapabilities = append(m.SupportedCapabilities, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionStatus = &s + iNdEx = postIndex + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionAdminStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionAdminStatus = &s + iNdEx = postIndex + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceError", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.InterfaceError = &b + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportEvalPending", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ImportEvalPending = &b + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportEval", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ImportEval = &b + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicallyConfigured", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.DynamicallyConfigured = &b + case 81: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerGroup = &s + iNdEx = postIndex + case 82: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborAddress = &s + iNdEx = postIndex + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnmpPeerIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnmpPeerIndex = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Messages == nil { + m.Messages = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType{} + } + if err := m.Messages.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Queues == nil { + m.Queues = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType{} + } + if err := m.Queues.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: messages_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: messages_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Sent == nil { + m.Sent = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType{} + } + if err := m.Sent.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Received == nil { + m.Received = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType{} + } + if err := m.Received.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeSentType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sent_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sent_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UPDATE", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UPDATE = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NOTIFICATION", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NOTIFICATION = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNotificationTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastNotificationTime = &v + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNotificationErrorCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastNotificationErrorCode = &s + iNdEx = postIndex + case 73: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNotificationErrorSubcode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastNotificationErrorSubcode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeMessagesTypeReceivedType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: received_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: received_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UPDATE", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UPDATE = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NOTIFICATION", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NOTIFICATION = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNotificationTime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastNotificationTime = &v + case 75: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNotificationErrorCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastNotificationErrorCode = &s + iNdEx = postIndex + case 76: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastNotificationErrorSubcode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastNotificationErrorSubcode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListStateTypeQueuesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queues_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queues_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Input = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Output = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: timers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: timers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTimersTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectRetry", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ConnectRetry = &v2 + case 52: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field HoldTime", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.HoldTime = &v2 + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepaliveInterval", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.KeepaliveInterval = &v2 + case 54: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MinimumAdvertisementInterval", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.MinimumAdvertisementInterval = &v2 + case 61: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field NegotiatedHoldTime", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.NegotiatedHoldTime = &v2 + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: transport_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: transport_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListTransportTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpMss", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TcpMss = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MtuDiscovery", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.MtuDiscovery = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PassiveMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PassiveMode = &b + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalAddress = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalPort = &v + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoteAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemoteAddress = &s + iNdEx = postIndex + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RemotePort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RemotePort = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: error_handling_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: error_handling_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListErrorHandlingTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TreatAsWithdraw", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.TreatAsWithdraw = &b + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ErroneousUpdateMessages", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ErroneousUpdateMessages = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: logging_options_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: logging_options_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListLoggingOptionsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogNeighborStateChanges", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LogNeighborStateChanges = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ebgp_multihop_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ebgp_multihop_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEbgpMultihopTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MultihopTtl", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MultihopTtl = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_reflector_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_reflector_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListRouteReflectorTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteReflectorClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RouteReflectorClusterId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteReflectorClient", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RouteReflectorClient = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: as_path_options_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: as_path_options_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAsPathOptionsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowOwnAs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowOwnAs = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplacePeerAs", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ReplacePeerAs = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisablePeerAsFilter", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.DisablePeerAsFilter = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: use_multiple_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: use_multiple_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ebgp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ebgp == nil { + m.Ebgp = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType{} + } + if err := m.Ebgp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ebgp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ebgp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListUseMultiplePathsTypeEbgpTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowMultipleAs", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AllowMultipleAs = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafi", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AfiSafi = append(m.AfiSafi, &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList{}) + if err := m.AfiSafi[len(m.AfiSafi)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safi_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safi_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddPaths == nil { + m.AddPaths = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType{} + } + if err := m.AddPaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Unicast == nil { + m.Ipv4Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType{} + } + if err := m.Ipv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Unicast == nil { + m.Ipv6Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType{} + } + if err := m.Ipv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4LabeledUnicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4LabeledUnicast == nil { + m.Ipv4LabeledUnicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType{} + } + if err := m.Ipv4LabeledUnicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6LabeledUnicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6LabeledUnicast == nil { + m.Ipv6LabeledUnicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType{} + } + if err := m.Ipv6LabeledUnicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv4Unicast == nil { + m.L3VpnIpv4Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType{} + } + if err := m.L3VpnIpv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv6Unicast == nil { + m.L3VpnIpv6Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType{} + } + if err := m.L3VpnIpv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv4Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv4Multicast == nil { + m.L3VpnIpv4Multicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType{} + } + if err := m.L3VpnIpv4Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv6Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv6Multicast == nil { + m.L3VpnIpv6Multicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType{} + } + if err := m.L3VpnIpv6Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2VpnVpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2VpnVpls == nil { + m.L2VpnVpls = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType{} + } + if err := m.L2VpnVpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2VpnEvpn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2VpnEvpn == nil { + m.L2VpnEvpn = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType{} + } + if err := m.L2VpnEvpn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Received = &b + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Advertised", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Advertised = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Active = &b + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimitExceeded", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PrefixLimitExceeded = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefixes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Prefixes == nil { + m.Prefixes = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType{} + } + if err := m.Prefixes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Queues == nil { + m.Queues = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType{} + } + if err := m.Queues.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypePrefixesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefixes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefixes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Accepted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Accepted = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Installed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Installed = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedPrePolicy", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceivedPrePolicy = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rejected", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rejected = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListStateTypeQueuesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: queues_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: queues_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Input = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Output = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: add_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: add_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Receive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Receive = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SendMax = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EligiblePrefixPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EligiblePrefixPolicy = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Send", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Send = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_labeled_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_labeled_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_labeled_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_labeled_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv4_multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv4_multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv6_multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv6_multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2vpn_vpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2vpn_vpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2vpn_evpn_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2vpn_evpn_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RestartTime = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field StaleRoutesTime", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.StaleRoutesTime = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelperOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.HelperOnly = &b + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerRestartTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeerRestartTime = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerRestarting", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PeerRestarting = &b + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalRestarting", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LocalRestarting = &b + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Mode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: apply_policy_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: apply_policy_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListApplyPolicyTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImportPolicy = append(m.ImportPolicy, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExportPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExportPolicy = append(m.ExportPolicy, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: enable_bfd_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: enable_bfd_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypeNeighborsTypeNeighborListEnableBfdTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxMinTxInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JnxMinTxInterval = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxLocalMultiplier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JnxLocalMultiplier = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxMinRxInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.JnxMinRxInterval = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxSessionState", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.JnxSessionState = &b + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JnxSessionMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.JnxSessionMode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peer_groups_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peer_groups_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PeerGroup = append(m.PeerGroup, &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList{}) + if err := m.PeerGroup[len(m.PeerGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peer_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peer_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerGroupName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerGroupName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Timers == nil { + m.Timers = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType{} + } + if err := m.Timers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transport", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Transport == nil { + m.Transport = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType{} + } + if err := m.Transport.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorHandling", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ErrorHandling == nil { + m.ErrorHandling = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType{} + } + if err := m.ErrorHandling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoggingOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LoggingOptions == nil { + m.LoggingOptions = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType{} + } + if err := m.LoggingOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EbgpMultihop", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EbgpMultihop == nil { + m.EbgpMultihop = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType{} + } + if err := m.EbgpMultihop.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteReflector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RouteReflector == nil { + m.RouteReflector = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType{} + } + if err := m.RouteReflector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsPathOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AsPathOptions == nil { + m.AsPathOptions = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType{} + } + if err := m.AsPathOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UseMultiplePaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UseMultiplePaths == nil { + m.UseMultiplePaths = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType{} + } + if err := m.UseMultiplePaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AfiSafis == nil { + m.AfiSafis = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType{} + } + if err := m.AfiSafis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicNeighborPrefixes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DynamicNeighborPrefixes == nil { + m.DynamicNeighborPrefixes = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType{} + } + if err := m.DynamicNeighborPrefixes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApplyPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApplyPolicy == nil { + m.ApplyPolicy = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType{} + } + if err := m.ApplyPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 172: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableBfd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EnableBfd == nil { + m.EnableBfd = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType{} + } + if err := m.EnableBfd.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerAs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PeerAs = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalAs = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerType = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthPassword", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AuthPassword = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemovePrivateAs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RemovePrivateAs = &s + iNdEx = postIndex + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteFlapDamping", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RouteFlapDamping = &b + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerGroupName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerGroupName = &s + iNdEx = postIndex + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPaths", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPaths = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPrefixes = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: timers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: timers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTimersTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field ConnectRetry", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.ConnectRetry = &v2 + case 52: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field HoldTime", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.HoldTime = &v2 + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepaliveInterval", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.KeepaliveInterval = &v2 + case 54: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MinimumAdvertisementInterval", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.MinimumAdvertisementInterval = &v2 + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: transport_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: transport_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListTransportTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TcpMss", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TcpMss = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MtuDiscovery", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.MtuDiscovery = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PassiveMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PassiveMode = &b + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalAddress = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: error_handling_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: error_handling_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListErrorHandlingTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TreatAsWithdraw", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.TreatAsWithdraw = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: logging_options_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: logging_options_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListLoggingOptionsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LogNeighborStateChanges", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.LogNeighborStateChanges = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ebgp_multihop_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ebgp_multihop_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEbgpMultihopTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MultihopTtl", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MultihopTtl = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: route_reflector_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: route_reflector_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListRouteReflectorTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteReflectorClusterId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RouteReflectorClusterId = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RouteReflectorClient", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RouteReflectorClient = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: as_path_options_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: as_path_options_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAsPathOptionsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowOwnAs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowOwnAs = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplacePeerAs", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ReplacePeerAs = &b + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisablePeerAsFilter", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.DisablePeerAsFilter = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: use_multiple_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: use_multiple_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ebgp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ebgp == nil { + m.Ebgp = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType{} + } + if err := m.Ebgp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ibgp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ibgp == nil { + m.Ibgp = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType{} + } + if err := m.Ibgp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ebgp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ebgp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeEbgpTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowMultipleAs", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AllowMultipleAs = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaximumPaths", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaximumPaths = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ibgp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ibgp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListUseMultiplePathsTypeIbgpTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaximumPaths", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaximumPaths = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafi", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AfiSafi = append(m.AfiSafi, &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList{}) + if err := m.AfiSafi[len(m.AfiSafi)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: afi_safi_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: afi_safi_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddPaths == nil { + m.AddPaths = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType{} + } + if err := m.AddPaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4Unicast == nil { + m.Ipv4Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType{} + } + if err := m.Ipv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6Unicast == nil { + m.Ipv6Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType{} + } + if err := m.Ipv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4LabeledUnicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4LabeledUnicast == nil { + m.Ipv4LabeledUnicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType{} + } + if err := m.Ipv4LabeledUnicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6LabeledUnicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6LabeledUnicast == nil { + m.Ipv6LabeledUnicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType{} + } + if err := m.Ipv6LabeledUnicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 158: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv4Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv4Unicast == nil { + m.L3VpnIpv4Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType{} + } + if err := m.L3VpnIpv4Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 159: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv6Unicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv6Unicast == nil { + m.L3VpnIpv6Unicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType{} + } + if err := m.L3VpnIpv6Unicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 160: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv4Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv4Multicast == nil { + m.L3VpnIpv4Multicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType{} + } + if err := m.L3VpnIpv4Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 161: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3VpnIpv6Multicast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L3VpnIpv6Multicast == nil { + m.L3VpnIpv6Multicast = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType{} + } + if err := m.L3VpnIpv6Multicast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 162: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2VpnVpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2VpnVpls == nil { + m.L2VpnVpls = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType{} + } + if err := m.L2VpnVpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 163: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2VpnEvpn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.L2VpnEvpn == nil { + m.L2VpnEvpn = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType{} + } + if err := m.L2VpnEvpn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfiSafiName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AfiSafiName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Active = &b + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPaths", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPaths = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalPrefixes = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefixes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Prefixes == nil { + m.Prefixes = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType{} + } + if err := m.Prefixes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListStateTypePrefixesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefixes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefixes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Accepted", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Accepted = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Received", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Received = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Sent", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Sent = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Installed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Installed = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedPrePolicy", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceivedPrePolicy = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Rejected", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Rejected = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: add_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: add_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListAddPathsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Receive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Receive = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SendMax = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EligiblePrefixPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.EligiblePrefixPolicy = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Send", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Send = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_labeled_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_labeled_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv4LabeledUnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_labeled_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_labeled_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListIpv6LabeledUnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv4_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv4_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv6_unicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv6_unicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6UnicastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv4_multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv4_multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv4MulticastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l3vpn_ipv6_multicast_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l3vpn_ipv6_multicast_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL3VpnIpv6MulticastTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2vpn_vpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2vpn_vpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnVplsTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2vpn_evpn_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2vpn_evpn_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrefixLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrefixLimit == nil { + m.PrefixLimit = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType{} + } + if err := m.PrefixLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: prefix_limit_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: prefix_limit_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListAfiSafisTypeAfiSafiListL2VpnEvpnTypePrefixLimitTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxPrefixes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxPrefixes = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShutdownThresholdPct", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShutdownThresholdPct = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTimer", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.RestartTimer = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreventTeardown", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.PreventTeardown = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RestartTime = &v + case 53: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field StaleRoutesTime", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.StaleRoutesTime = &v2 + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelperOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.HelperOnly = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: apply_policy_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: apply_policy_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListApplyPolicyTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImportPolicy = append(m.ImportPolicy, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExportPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExportPolicy = append(m.ExportPolicy, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: enable_bfd_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: enable_bfd_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListEnableBfdTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dynamic_neighbor_prefixes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dynamic_neighbor_prefixes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicNeighborPrefix", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DynamicNeighborPrefix = append(m.DynamicNeighborPrefix, &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList{}) + if err := m.DynamicNeighborPrefix[len(m.DynamicNeighborPrefix)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: dynamic_neighbor_prefix_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: dynamic_neighbor_prefix_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesNiBgpNetworkInstanceListProtocolsTypeProtocolTypeBgpTypePeerGroupsTypePeerGroupListDynamicNeighborPrefixesTypeDynamicNeighborPrefixListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Prefix = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiBgpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiBgpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdNiBgpOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdNiBgpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdNiBgpOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdNiBgpOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdNiBgpOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdNiBgpOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdNiBgpOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdNiBgpOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_ni_bgp_oc.proto b/schema/rpd_ni_bgp_oc.proto new file mode 100755 index 0000000..593e7ec --- /dev/null +++ b/schema/rpd_ni_bgp_oc.proto @@ -0,0 +1,883 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_ni_bgp jnpr_network_instances_ni_bgp_ext = 67; +} + +message network_instances_ni_bgp { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional protocols_type protocols = 151; + message protocols_type { + optional protocol_type protocol = 151; + message protocol_type { + optional bgp_type bgp = 151; + message bgp_type { + optional global_type global = 151; + message global_type { + optional state_type state = 151; + message state_type { + optional uint32 as = 51; + optional string router_id = 52; + optional uint32 total_paths = 81; + optional uint32 total_prefixes = 82; + } + optional route_selection_options_type route_selection_options = 152; + message route_selection_options_type { + optional state_type state = 151; + message state_type { + optional bool always_compare_med = 52; + optional bool ignore_as_path_length = 53; + optional bool external_compare_router_id = 54; + optional bool advertise_inactive_routes = 51; + } + } + optional confederation_type confederation = 153; + message confederation_type { + optional state_type state = 151; + message state_type { + optional uint32 identifier = 53; + repeated uint32 member_as = 52; + } + } + optional graceful_restart_type graceful_restart = 154; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 restart_time = 52; + optional double stale_routes_time = 53; + optional bool helper_only = 54; + } + } + optional apply_policy_type apply_policy = 171; + message apply_policy_type { + optional state_type state = 151; + message state_type { + repeated string import_policy = 51; + repeated string export_policy = 52; + } + } + optional afi_safis_type afi_safis = 155; + message afi_safis_type { + message afi_safi_list { + optional string afi_safi_name = 51 [(telemetry_options).is_key = true]; + optional graceful_restart_type graceful_restart = 151; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + } + optional state_type state = 152; + message state_type { + optional string afi_safi_name = 51; + optional bool enabled = 52; + optional uint32 total_paths = 81; + optional uint32 total_prefixes = 82; + } + optional add_paths_type add_paths = 153; + message add_paths_type { + optional state_type state = 151; + message state_type { + optional bool receive = 51; + optional bool send = 54; + optional uint32 send_max = 52; + optional string eligible_prefix_policy = 53; + } + } + optional ipv4_unicast_type ipv4_unicast = 154; + message ipv4_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv6_unicast_type ipv6_unicast = 155; + message ipv6_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv4_labeled_unicast_type ipv4_labeled_unicast = 156; + message ipv4_labeled_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv6_labeled_unicast_type ipv6_labeled_unicast = 157; + message ipv6_labeled_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv4_unicast_type l3vpn_ipv4_unicast = 158; + message l3vpn_ipv4_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv6_unicast_type l3vpn_ipv6_unicast = 159; + message l3vpn_ipv6_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv4_multicast_type l3vpn_ipv4_multicast = 160; + message l3vpn_ipv4_multicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv6_multicast_type l3vpn_ipv6_multicast = 161; + message l3vpn_ipv6_multicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l2vpn_vpls_type l2vpn_vpls = 162; + message l2vpn_vpls_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l2vpn_evpn_type l2vpn_evpn = 163; + message l2vpn_evpn_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + } + repeated afi_safi_list afi_safi = 151; + } + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string neighbor_address = 51 [(telemetry_options).is_key = true]; + optional uint32 snmp_peer_index = 61; + optional state_type state = 151; + message state_type { + optional uint32 peer_as = 51; + optional uint32 local_as = 52; + optional string peer_type = 53; + optional string auth_password = 54; + optional string remove_private_as = 55; + optional bool route_flap_damping = 56; + optional string description = 57; + optional string session_state = 61; + optional uint64 last_established = 62; + optional uint64 established_transitions = 63; + repeated string supported_capabilities = 64; + optional messages_type messages = 151; + message messages_type { + optional sent_type sent = 151; + message sent_type { + optional uint64 UPDATE = 65; + optional uint64 NOTIFICATION = 66; + optional uint64 last_notification_time = 71; + optional string last_notification_error_code = 72; + optional string last_notification_error_subcode = 73; + } + optional received_type received = 152; + message received_type { + optional uint64 UPDATE = 67; + optional uint64 NOTIFICATION = 68; + optional uint64 last_notification_time = 74; + optional string last_notification_error_code = 75; + optional string last_notification_error_subcode = 76; + } + } + optional queues_type queues = 152; + message queues_type { + optional uint32 input = 69; + optional uint32 output = 70; + } + optional bool dynamically_configured = 77; + optional string session_status = 71; + optional string session_admin_status = 72; + optional bool interface_error = 74; + optional bool import_eval_pending = 75; + optional bool import_eval = 76; + optional string peer_group = 81; + optional string neighbor_address = 82; + optional bool enabled = 83; + optional uint32 snmp_peer_index = 84; + } + optional timers_type timers = 152; + message timers_type { + optional state_type state = 151; + message state_type { + optional double connect_retry = 51; + optional double hold_time = 52; + optional double keepalive_interval = 53; + optional double minimum_advertisement_interval = 54; + optional double negotiated_hold_time = 61; + } + } + optional transport_type transport = 153; + message transport_type { + optional state_type state = 151; + message state_type { + optional uint32 tcp_mss = 51; + optional bool mtu_discovery = 52; + optional bool passive_mode = 53; + optional string local_address = 54; + optional uint32 local_port = 61; + optional string remote_address = 62; + optional uint32 remote_port = 63; + } + } + optional error_handling_type error_handling = 154; + message error_handling_type { + optional state_type state = 151; + message state_type { + optional bool treat_as_withdraw = 51; + optional uint32 erroneous_update_messages = 61; + } + } + optional logging_options_type logging_options = 155; + message logging_options_type { + optional state_type state = 151; + message state_type { + optional bool log_neighbor_state_changes = 51; + } + } + optional ebgp_multihop_type ebgp_multihop = 156; + message ebgp_multihop_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 multihop_ttl = 52; + } + } + optional route_reflector_type route_reflector = 157; + message route_reflector_type { + optional state_type state = 151; + message state_type { + optional string route_reflector_cluster_id = 51; + optional bool route_reflector_client = 52; + } + } + optional as_path_options_type as_path_options = 158; + message as_path_options_type { + optional state_type state = 151; + message state_type { + optional uint32 allow_own_as = 51; + optional bool replace_peer_as = 52; + optional bool disable_peer_as_filter = 53; + } + } + optional use_multiple_paths_type use_multiple_paths = 159; + message use_multiple_paths_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + optional ebgp_type ebgp = 152; + message ebgp_type { + optional state_type state = 151; + message state_type { + optional bool allow_multiple_as = 51; + } + } + } + optional afi_safis_type afi_safis = 160; + message afi_safis_type { + message afi_safi_list { + optional string afi_safi_name = 51 [(telemetry_options).is_key = true]; + optional graceful_restart_type graceful_restart = 151; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional bool received = 61; + optional bool advertised = 62; + } + } + optional state_type state = 152; + message state_type { + optional string afi_safi_name = 51; + optional bool enabled = 52; + optional bool active = 61; + optional prefixes_type prefixes = 151; + message prefixes_type { + optional uint32 received = 63; + optional uint32 sent = 64; + optional uint32 installed = 65; + optional uint32 accepted = 62; + optional uint32 received_pre_policy = 69; + optional uint32 rejected = 70; + } + optional bool prefix_limit_exceeded = 72; + optional queues_type queues = 152; + message queues_type { + optional uint32 input = 73; + optional uint32 output = 74; + } + } + optional add_paths_type add_paths = 153; + message add_paths_type { + optional state_type state = 151; + message state_type { + optional bool receive = 51; + optional bool send = 54; + optional uint32 send_max = 52; + optional string eligible_prefix_policy = 53; + } + } + optional ipv4_unicast_type ipv4_unicast = 154; + message ipv4_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv6_unicast_type ipv6_unicast = 155; + message ipv6_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv4_labeled_unicast_type ipv4_labeled_unicast = 156; + message ipv4_labeled_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv6_labeled_unicast_type ipv6_labeled_unicast = 157; + message ipv6_labeled_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv4_unicast_type l3vpn_ipv4_unicast = 158; + message l3vpn_ipv4_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv6_unicast_type l3vpn_ipv6_unicast = 159; + message l3vpn_ipv6_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv4_multicast_type l3vpn_ipv4_multicast = 160; + message l3vpn_ipv4_multicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv6_multicast_type l3vpn_ipv6_multicast = 161; + message l3vpn_ipv6_multicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l2vpn_vpls_type l2vpn_vpls = 162; + message l2vpn_vpls_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l2vpn_evpn_type l2vpn_evpn = 163; + message l2vpn_evpn_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + } + repeated afi_safi_list afi_safi = 51; + } + optional graceful_restart_type graceful_restart = 161; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 restart_time = 52; + optional double stale_routes_time = 53; + optional bool helper_only = 54; + optional uint32 peer_restart_time = 61; + optional bool peer_restarting = 62; + optional bool local_restarting = 63; + optional string mode = 64; + } + } + optional apply_policy_type apply_policy = 171; + message apply_policy_type { + optional state_type state = 151; + message state_type { + repeated string import_policy = 51; + repeated string export_policy = 52; + } + } + optional enable_bfd_type enable_bfd = 172; + message enable_bfd_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 jnx_min_tx_interval = 52; + optional uint32 jnx_local_multiplier = 53; + optional uint32 jnx_min_rx_interval = 54; + optional bool jnx_session_state = 55; + optional string jnx_session_mode = 56; + } + } + } + repeated neighbor_list neighbor = 151; + } + optional peer_groups_type peer_groups = 153; + message peer_groups_type { + message peer_group_list { + optional string peer_group_name = 61 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 peer_as = 51; + optional uint32 local_as = 52; + optional string peer_type = 53; + optional string auth_password = 54; + optional string remove_private_as = 55; + optional bool route_flap_damping = 56; + optional string description = 57; + optional string peer_group_name = 61; + optional uint32 total_paths = 81; + optional uint32 total_prefixes = 82; + } + optional timers_type timers = 152; + message timers_type { + optional state_type state = 151; + message state_type { + optional double connect_retry = 51; + optional double hold_time = 52; + optional double keepalive_interval = 53; + optional double minimum_advertisement_interval = 54; + } + } + optional transport_type transport = 153; + message transport_type { + optional state_type state = 151; + message state_type { + optional uint32 tcp_mss = 51; + optional bool mtu_discovery = 52; + optional bool passive_mode = 53; + optional string local_address = 54; + } + } + optional error_handling_type error_handling = 154; + message error_handling_type { + optional state_type state = 151; + message state_type { + optional bool treat_as_withdraw = 51; + } + } + optional logging_options_type logging_options = 155; + message logging_options_type { + optional state_type state = 151; + message state_type { + optional bool log_neighbor_state_changes = 51; + } + } + optional ebgp_multihop_type ebgp_multihop = 156; + message ebgp_multihop_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 multihop_ttl = 52; + } + } + optional route_reflector_type route_reflector = 157; + message route_reflector_type { + optional state_type state = 151; + message state_type { + optional string route_reflector_cluster_id = 51; + optional bool route_reflector_client = 52; + } + } + optional as_path_options_type as_path_options = 158; + message as_path_options_type { + optional state_type state = 151; + message state_type { + optional uint32 allow_own_as = 51; + optional bool replace_peer_as = 52; + optional bool disable_peer_as_filter = 53; + } + } + optional use_multiple_paths_type use_multiple_paths = 159; + message use_multiple_paths_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + optional ebgp_type ebgp = 152; + message ebgp_type { + optional state_type state = 151; + message state_type { + optional bool allow_multiple_as = 51; + optional uint32 maximum_paths = 52; + } + } + optional ibgp_type ibgp = 153; + message ibgp_type { + optional state_type state = 151; + message state_type { + optional uint32 maximum_paths = 51; + } + } + } + optional afi_safis_type afi_safis = 160; + message afi_safis_type { + message afi_safi_list { + optional string afi_safi_name = 51 [(telemetry_options).is_key = true]; + optional graceful_restart_type graceful_restart = 151; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + } + optional state_type state = 152; + message state_type { + optional string afi_safi_name = 51; + optional bool enabled = 52; + optional bool active = 61; + optional prefixes_type prefixes = 151; + message prefixes_type { + optional uint32 received = 63; + optional uint32 sent = 64; + optional uint32 installed = 65; + optional uint32 accepted = 62; + optional uint32 received_pre_policy = 69; + optional uint32 rejected = 70; + } + optional uint32 total_paths = 81; + optional uint32 total_prefixes = 82; + } + optional add_paths_type add_paths = 153; + message add_paths_type { + optional state_type state = 151; + message state_type { + optional bool receive = 51; + optional bool send = 54; + optional uint32 send_max = 52; + optional string eligible_prefix_policy = 53; + } + } + optional ipv4_unicast_type ipv4_unicast = 154; + message ipv4_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv6_unicast_type ipv6_unicast = 155; + message ipv6_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv4_labeled_unicast_type ipv4_labeled_unicast = 156; + message ipv4_labeled_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional ipv6_labeled_unicast_type ipv6_labeled_unicast = 157; + message ipv6_labeled_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv4_unicast_type l3vpn_ipv4_unicast = 158; + message l3vpn_ipv4_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv6_unicast_type l3vpn_ipv6_unicast = 159; + message l3vpn_ipv6_unicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv4_multicast_type l3vpn_ipv4_multicast = 160; + message l3vpn_ipv4_multicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l3vpn_ipv6_multicast_type l3vpn_ipv6_multicast = 161; + message l3vpn_ipv6_multicast_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l2vpn_vpls_type l2vpn_vpls = 162; + message l2vpn_vpls_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + optional l2vpn_evpn_type l2vpn_evpn = 163; + message l2vpn_evpn_type { + optional prefix_limit_type prefix_limit = 151; + message prefix_limit_type { + optional state_type state = 151; + message state_type { + optional uint32 max_prefixes = 51; + optional bool prevent_teardown = 54; + optional uint32 shutdown_threshold_pct = 52; + optional double restart_timer = 53; + } + } + } + } + repeated afi_safi_list afi_safi = 51; + } + optional graceful_restart_type graceful_restart = 161; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 restart_time = 52; + optional double stale_routes_time = 53; + optional bool helper_only = 54; + } + } + optional apply_policy_type apply_policy = 171; + message apply_policy_type { + optional state_type state = 151; + message state_type { + repeated string import_policy = 51; + repeated string export_policy = 52; + } + } + optional enable_bfd_type enable_bfd = 172; + message enable_bfd_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + } + } + optional dynamic_neighbor_prefixes_type dynamic_neighbor_prefixes = 163; + message dynamic_neighbor_prefixes_type { + message dynamic_neighbor_prefix_list { + optional string prefix = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string prefix = 51; + } + } + repeated dynamic_neighbor_prefix_list dynamic_neighbor_prefix = 51; + } + } + repeated peer_group_list peer_group = 151; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/rpd_ni_evpn_render.pb.go b/schema/rpd_ni_evpn_render.pb.go new file mode 100644 index 0000000..2ab44e5 --- /dev/null +++ b/schema/rpd_ni_evpn_render.pb.go @@ -0,0 +1,5728 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_ni_evpn_render.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesEvpn struct { + NetworkInstance []*NetworkInstancesEvpnNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpn) Reset() { *m = NetworkInstancesEvpn{} } +func (m *NetworkInstancesEvpn) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesEvpn) ProtoMessage() {} +func (*NetworkInstancesEvpn) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0} +} +func (m *NetworkInstancesEvpn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpn.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpn) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpn.Merge(m, src) +} +func (m *NetworkInstancesEvpn) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpn) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpn.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpn proto.InternalMessageInfo + +func (m *NetworkInstancesEvpn) GetNetworkInstance() []*NetworkInstancesEvpnNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Protocols *NetworkInstancesEvpnNetworkInstanceListProtocolsType `protobuf:"bytes,151,opt,name=protocols" json:"protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesEvpnNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesEvpnNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceList) GetProtocols() *NetworkInstancesEvpnNetworkInstanceListProtocolsType { + if m != nil { + return m.Protocols + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsType struct { + Protocol *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType `protobuf:"bytes,151,opt,name=protocol" json:"protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsType{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsType) ProtoMessage() {} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsType.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) GetProtocol() *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType { + if m != nil { + return m.Protocol + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType struct { + Evpn *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType `protobuf:"bytes,151,opt,name=evpn" json:"evpn,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) ProtoMessage() {} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) GetEvpn() *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType { + if m != nil { + return m.Evpn + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType struct { + NumPeers *uint32 `protobuf:"varint,51,opt,name=num_peers,json=numPeers" json:"num_peers,omitempty"` + NumInterfaces *uint32 `protobuf:"varint,52,opt,name=num_interfaces,json=numInterfaces" json:"num_interfaces,omitempty"` + NumInterfacesUp *uint32 `protobuf:"varint,53,opt,name=num_interfaces_up,json=numInterfacesUp" json:"num_interfaces_up,omitempty"` + NumIrbInterfaces *uint32 `protobuf:"varint,54,opt,name=num_irb_interfaces,json=numIrbInterfaces" json:"num_irb_interfaces,omitempty"` + NumIrbInterfacesUp *uint32 `protobuf:"varint,55,opt,name=num_irb_interfaces_up,json=numIrbInterfacesUp" json:"num_irb_interfaces_up,omitempty"` + NumRemoteMacs *uint32 `protobuf:"varint,59,opt,name=num_remote_macs,json=numRemoteMacs" json:"num_remote_macs,omitempty"` + NumRemoteMacIpV4 *uint32 `protobuf:"varint,60,opt,name=num_remote_mac_ip_v4,json=numRemoteMacIpV4" json:"num_remote_mac_ip_v4,omitempty"` + NumRemoteMacIpV6 *uint32 `protobuf:"varint,61,opt,name=num_remote_mac_ip_v6,json=numRemoteMacIpV6" json:"num_remote_mac_ip_v6,omitempty"` + NumRemoteIrbMacs *uint32 `protobuf:"varint,62,opt,name=num_remote_irb_macs,json=numRemoteIrbMacs" json:"num_remote_irb_macs,omitempty"` + NumEthernetSegments *uint32 `protobuf:"varint,63,opt,name=num_ethernet_segments,json=numEthernetSegments" json:"num_ethernet_segments,omitempty"` + LabelAllocationMode *string `protobuf:"bytes,70,opt,name=label_allocation_mode,json=labelAllocationMode" json:"label_allocation_mode,omitempty"` + Interfaces []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList `protobuf:"bytes,152,rep,name=interfaces" json:"interfaces,omitempty"` + IrbInterfaces []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList `protobuf:"bytes,153,rep,name=irb_interfaces,json=irbInterfaces" json:"irb_interfaces,omitempty"` + Peer []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList `protobuf:"bytes,154,rep,name=peer" json:"peer,omitempty"` + SgDb []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList `protobuf:"bytes,156,rep,name=sg_db,json=sgDb" json:"sg_db,omitempty"` + EthernetSegment []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList `protobuf:"bytes,155,rep,name=ethernet_segment,json=ethernetSegment" json:"ethernet_segment,omitempty"` + AssistedReplication *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType `protobuf:"bytes,157,opt,name=assisted_replication,json=assistedReplication" json:"assisted_replication,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) ProtoMessage() {} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumPeers() uint32 { + if m != nil && m.NumPeers != nil { + return *m.NumPeers + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumInterfaces() uint32 { + if m != nil && m.NumInterfaces != nil { + return *m.NumInterfaces + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumInterfacesUp() uint32 { + if m != nil && m.NumInterfacesUp != nil { + return *m.NumInterfacesUp + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumIrbInterfaces() uint32 { + if m != nil && m.NumIrbInterfaces != nil { + return *m.NumIrbInterfaces + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumIrbInterfacesUp() uint32 { + if m != nil && m.NumIrbInterfacesUp != nil { + return *m.NumIrbInterfacesUp + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumRemoteMacs() uint32 { + if m != nil && m.NumRemoteMacs != nil { + return *m.NumRemoteMacs + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumRemoteMacIpV4() uint32 { + if m != nil && m.NumRemoteMacIpV4 != nil { + return *m.NumRemoteMacIpV4 + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumRemoteMacIpV6() uint32 { + if m != nil && m.NumRemoteMacIpV6 != nil { + return *m.NumRemoteMacIpV6 + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumRemoteIrbMacs() uint32 { + if m != nil && m.NumRemoteIrbMacs != nil { + return *m.NumRemoteIrbMacs + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetNumEthernetSegments() uint32 { + if m != nil && m.NumEthernetSegments != nil { + return *m.NumEthernetSegments + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetLabelAllocationMode() string { + if m != nil && m.LabelAllocationMode != nil { + return *m.LabelAllocationMode + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetInterfaces() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList { + if m != nil { + return m.Interfaces + } + return nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetIrbInterfaces() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList { + if m != nil { + return m.IrbInterfaces + } + return nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetPeer() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList { + if m != nil { + return m.Peer + } + return nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetSgDb() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList { + if m != nil { + return m.SgDb + } + return nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetEthernetSegment() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList { + if m != nil { + return m.EthernetSegment + } + return nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) GetAssistedReplication() *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType { + if m != nil { + return m.AssistedReplication + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList struct { + Name *string `protobuf:"bytes,61,opt,name=name" json:"name,omitempty"` + Esi *string `protobuf:"bytes,62,opt,name=esi" json:"esi,omitempty"` + Mode *string `protobuf:"bytes,63,opt,name=mode" json:"mode,omitempty"` + Status *string `protobuf:"bytes,64,opt,name=status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) GetEsi() string { + if m != nil && m.Esi != nil { + return *m.Esi + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) GetMode() string { + if m != nil && m.Mode != nil { + return *m.Mode + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList struct { + Name *string `protobuf:"bytes,61,opt,name=name" json:"name,omitempty"` + VirtualGatewayEsi *string `protobuf:"bytes,62,opt,name=virtual_gateway_esi,json=virtualGatewayEsi" json:"virtual_gateway_esi,omitempty"` + Status *string `protobuf:"bytes,63,opt,name=status" json:"status,omitempty"` + L3Context *string `protobuf:"bytes,64,opt,name=l3_context,json=l3Context" json:"l3_context,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) GetVirtualGatewayEsi() string { + if m != nil && m.VirtualGatewayEsi != nil { + return *m.VirtualGatewayEsi + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) GetL3Context() string { + if m != nil && m.L3Context != nil { + return *m.L3Context + } + return "" +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList struct { + PeerAddress *string `protobuf:"bytes,71,opt,name=peer_address,json=peerAddress" json:"peer_address,omitempty"` + NumAutoDiscoveryRoutes *uint32 `protobuf:"varint,73,opt,name=num_auto_discovery_routes,json=numAutoDiscoveryRoutes" json:"num_auto_discovery_routes,omitempty"` + NumMulticastRoutes *uint32 `protobuf:"varint,74,opt,name=num_multicast_routes,json=numMulticastRoutes" json:"num_multicast_routes,omitempty"` + NumEthernetSegmentRoutes *uint32 `protobuf:"varint,75,opt,name=num_ethernet_segment_routes,json=numEthernetSegmentRoutes" json:"num_ethernet_segment_routes,omitempty"` + NumMacRoutes *uint32 `protobuf:"varint,76,opt,name=num_mac_routes,json=numMacRoutes" json:"num_mac_routes,omitempty"` + NumMacIpRoutes *uint32 `protobuf:"varint,77,opt,name=num_mac_ip_routes,json=numMacIpRoutes" json:"num_mac_ip_routes,omitempty"` + NumSelectiveMulticastRoutes *uint32 `protobuf:"varint,78,opt,name=num_selective_multicast_routes,json=numSelectiveMulticastRoutes" json:"num_selective_multicast_routes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetPeerAddress() string { + if m != nil && m.PeerAddress != nil { + return *m.PeerAddress + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetNumAutoDiscoveryRoutes() uint32 { + if m != nil && m.NumAutoDiscoveryRoutes != nil { + return *m.NumAutoDiscoveryRoutes + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetNumMulticastRoutes() uint32 { + if m != nil && m.NumMulticastRoutes != nil { + return *m.NumMulticastRoutes + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetNumEthernetSegmentRoutes() uint32 { + if m != nil && m.NumEthernetSegmentRoutes != nil { + return *m.NumEthernetSegmentRoutes + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetNumMacRoutes() uint32 { + if m != nil && m.NumMacRoutes != nil { + return *m.NumMacRoutes + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetNumMacIpRoutes() uint32 { + if m != nil && m.NumMacIpRoutes != nil { + return *m.NumMacIpRoutes + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) GetNumSelectiveMulticastRoutes() uint32 { + if m != nil && m.NumSelectiveMulticastRoutes != nil { + return *m.NumSelectiveMulticastRoutes + } + return 0 +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList struct { + EthernetTagId *uint32 `protobuf:"varint,71,opt,name=ethernet_tag_id,json=ethernetTagId" json:"ethernet_tag_id,omitempty"` + Group *string `protobuf:"bytes,72,opt,name=group" json:"group,omitempty"` + Source *string `protobuf:"bytes,73,opt,name=source" json:"source,omitempty"` + TotalEsiFanout *uint32 `protobuf:"varint,74,opt,name=total_esi_fanout,json=totalEsiFanout" json:"total_esi_fanout,omitempty"` + TotalLocalFanout *uint32 `protobuf:"varint,75,opt,name=total_local_fanout,json=totalLocalFanout" json:"total_local_fanout,omitempty"` + TotalRemoteFanout *uint32 `protobuf:"varint,76,opt,name=total_remote_fanout,json=totalRemoteFanout" json:"total_remote_fanout,omitempty"` + SgdbEsi []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList `protobuf:"bytes,151,rep,name=sgdb_esi,json=sgdbEsi" json:"sgdb_esi,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 3} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetEthernetTagId() uint32 { + if m != nil && m.EthernetTagId != nil { + return *m.EthernetTagId + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetGroup() string { + if m != nil && m.Group != nil { + return *m.Group + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetSource() string { + if m != nil && m.Source != nil { + return *m.Source + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetTotalEsiFanout() uint32 { + if m != nil && m.TotalEsiFanout != nil { + return *m.TotalEsiFanout + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetTotalLocalFanout() uint32 { + if m != nil && m.TotalLocalFanout != nil { + return *m.TotalLocalFanout + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetTotalRemoteFanout() uint32 { + if m != nil && m.TotalRemoteFanout != nil { + return *m.TotalRemoteFanout + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) GetSgdbEsi() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList { + if m != nil { + return m.SgdbEsi + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList struct { + Esi *string `protobuf:"bytes,152,opt,name=esi" json:"esi,omitempty"` + LocalIntfName *string `protobuf:"bytes,151,opt,name=local_intf_name,json=localIntfName" json:"local_intf_name,omitempty"` + JoinSyncStatus *string `protobuf:"bytes,153,opt,name=join_sync_status,json=joinSyncStatus" json:"join_sync_status,omitempty"` + JoinSyncLastUpdated *string `protobuf:"bytes,154,opt,name=join_sync_last_updated,json=joinSyncLastUpdated" json:"join_sync_last_updated,omitempty"` + LeaveSyncStatus *string `protobuf:"bytes,155,opt,name=leave_sync_status,json=leaveSyncStatus" json:"leave_sync_status,omitempty"` + LeaveSyncLastUpdated *string `protobuf:"bytes,156,opt,name=leave_sync_last_updated,json=leaveSyncLastUpdated" json:"leave_sync_last_updated,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 3, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) GetEsi() string { + if m != nil && m.Esi != nil { + return *m.Esi + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) GetLocalIntfName() string { + if m != nil && m.LocalIntfName != nil { + return *m.LocalIntfName + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) GetJoinSyncStatus() string { + if m != nil && m.JoinSyncStatus != nil { + return *m.JoinSyncStatus + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) GetJoinSyncLastUpdated() string { + if m != nil && m.JoinSyncLastUpdated != nil { + return *m.JoinSyncLastUpdated + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) GetLeaveSyncStatus() string { + if m != nil && m.LeaveSyncStatus != nil { + return *m.LeaveSyncStatus + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) GetLeaveSyncLastUpdated() string { + if m != nil && m.LeaveSyncLastUpdated != nil { + return *m.LeaveSyncLastUpdated + } + return "" +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList struct { + Esi *string `protobuf:"bytes,71,opt,name=esi" json:"esi,omitempty"` + Status *string `protobuf:"bytes,72,opt,name=status" json:"status,omitempty"` + LocalIntfName *string `protobuf:"bytes,73,opt,name=local_intf_name,json=localIntfName" json:"local_intf_name,omitempty"` + LocalIntfStatus *string `protobuf:"bytes,74,opt,name=local_intf_status,json=localIntfStatus" json:"local_intf_status,omitempty"` + DfElectionAlgorithm *string `protobuf:"bytes,75,opt,name=df_election_algorithm,json=dfElectionAlgorithm" json:"df_election_algorithm,omitempty"` + DesignatedForwarder *string `protobuf:"bytes,76,opt,name=designated_forwarder,json=designatedForwarder" json:"designated_forwarder,omitempty"` + RemotePe []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList `protobuf:"bytes,151,rep,name=remote_pe,json=remotePe" json:"remote_pe,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 4} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetEsi() string { + if m != nil && m.Esi != nil { + return *m.Esi + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetLocalIntfName() string { + if m != nil && m.LocalIntfName != nil { + return *m.LocalIntfName + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetLocalIntfStatus() string { + if m != nil && m.LocalIntfStatus != nil { + return *m.LocalIntfStatus + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetDfElectionAlgorithm() string { + if m != nil && m.DfElectionAlgorithm != nil { + return *m.DfElectionAlgorithm + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetDesignatedForwarder() string { + if m != nil && m.DesignatedForwarder != nil { + return *m.DesignatedForwarder + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) GetRemotePe() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList { + if m != nil { + return m.RemotePe + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList struct { + IpAddress *string `protobuf:"bytes,71,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + Mode *string `protobuf:"bytes,72,opt,name=mode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 4, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) GetIpAddress() string { + if m != nil && m.IpAddress != nil { + return *m.IpAddress + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) GetMode() string { + if m != nil && m.Mode != nil { + return *m.Mode + } + return "" +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType struct { + Role *string `protobuf:"bytes,51,opt,name=role" json:"role,omitempty"` + L2Domain []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList `protobuf:"bytes,171,rep,name=l2_domain,json=l2Domain" json:"l2_domain,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 5} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) GetRole() string { + if m != nil && m.Role != nil { + return *m.Role + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) GetL2Domain() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList { + if m != nil { + return m.L2Domain + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList struct { + VniId *uint32 `protobuf:"varint,51,opt,name=vni_id,json=vniId" json:"vni_id,omitempty"` + Nexthops []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList `protobuf:"bytes,171,rep,name=nexthops" json:"nexthops,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 5, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) GetVniId() uint32 { + if m != nil && m.VniId != nil { + return *m.VniId + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) GetNexthops() []*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList { + if m != nil { + return m.Nexthops + } + return nil +} + +type NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList struct { + NexthopIndex *uint32 `protobuf:"varint,72,opt,name=nexthop_index,json=nexthopIndex" json:"nexthop_index,omitempty"` + VniId *uint32 `protobuf:"varint,71,opt,name=vni_id,json=vniId" json:"vni_id,omitempty"` + Interface *string `protobuf:"bytes,73,opt,name=interface" json:"interface,omitempty"` + ReplicatorIp *string `protobuf:"bytes,74,opt,name=replicator_ip,json=replicatorIp" json:"replicator_ip,omitempty"` + IsDesignatedNode *bool `protobuf:"varint,75,opt,name=is_designated_node,json=isDesignatedNode" json:"is_designated_node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) Reset() { + *m = NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList{} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) ProtoMessage() { +} +func (*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) Descriptor() ([]byte, []int) { + return fileDescriptor_ece6942ef07f71da, []int{0, 0, 0, 0, 0, 5, 0, 0} +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList.Merge(m, src) +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList proto.InternalMessageInfo + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) GetNexthopIndex() uint32 { + if m != nil && m.NexthopIndex != nil { + return *m.NexthopIndex + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) GetVniId() uint32 { + if m != nil && m.VniId != nil { + return *m.VniId + } + return 0 +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) GetReplicatorIp() string { + if m != nil && m.ReplicatorIp != nil { + return *m.ReplicatorIp + } + return "" +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) GetIsDesignatedNode() bool { + if m != nil && m.IsDesignatedNode != nil { + return *m.IsDesignatedNode + } + return false +} + +var E_JnprNetworkInstancesEvpnExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesEvpn)(nil), + Field: 112, + Name: "jnpr_network_instances_evpn_ext", + Tag: "bytes,112,opt,name=jnpr_network_instances_evpn_ext", + Filename: "rpd_ni_evpn_render.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesEvpn)(nil), "network_instances_evpn") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceList)(nil), "network_instances_evpn.network_instance_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsType)(nil), "network_instances_evpn.network_instance_list.protocols_type") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.interfaces_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.irb_interfaces_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.peer_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.sg_db_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.sg_db_list.sgdb_esi_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.ethernet_segment_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.ethernet_segment_list.remote_pe_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.assisted_replication_type") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.assisted_replication_type.l2_domain_list") + proto.RegisterType((*NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList)(nil), "network_instances_evpn.network_instance_list.protocols_type.protocol_type.evpn_type.assisted_replication_type.l2_domain_list.nexthops_list") + proto.RegisterExtension(E_JnprNetworkInstancesEvpnExt) +} + +func init() { proto.RegisterFile("rpd_ni_evpn_render.proto", fileDescriptor_ece6942ef07f71da) } + +var fileDescriptor_ece6942ef07f71da = []byte{ + // 1580 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0x14, 0xc9, + 0x15, 0x57, 0x63, 0x9b, 0x78, 0x1e, 0x9e, 0xb1, 0x5d, 0xe3, 0x8f, 0x66, 0x00, 0x43, 0x12, 0x42, + 0x0c, 0x89, 0xc7, 0xc1, 0x38, 0x8e, 0x92, 0x40, 0xc0, 0x60, 0x03, 0xe3, 0x60, 0x0b, 0xb5, 0x21, + 0x52, 0x12, 0x29, 0x95, 0x9a, 0xee, 0xf2, 0xb8, 0x86, 0x9e, 0xea, 0x56, 0x57, 0xf5, 0x60, 0x1f, + 0x72, 0x89, 0x94, 0x43, 0x94, 0x4b, 0x72, 0x09, 0x10, 0x88, 0x14, 0xe5, 0x16, 0x65, 0x0f, 0x2b, + 0xed, 0x9e, 0xf7, 0xb2, 0x97, 0x3d, 0xee, 0x9f, 0xb0, 0xe2, 0xb6, 0xb7, 0xbd, 0xed, 0x75, 0x55, + 0x1f, 0xdd, 0x33, 0x3d, 0x1e, 0x56, 0x5a, 0xed, 0x9a, 0xbd, 0x4d, 0xbd, 0xdf, 0xef, 0xd5, 0xfb, + 0xe8, 0xf7, 0xd1, 0x3d, 0xe0, 0x26, 0x71, 0x80, 0x39, 0xc3, 0xb4, 0x1b, 0x73, 0x9c, 0x50, 0x1e, + 0xd0, 0xa4, 0x1e, 0x27, 0x91, 0x8c, 0x6a, 0x55, 0x49, 0x43, 0xda, 0xa1, 0x32, 0x39, 0xc4, 0x32, + 0x8a, 0x8d, 0xf0, 0x7b, 0xef, 0x7f, 0x17, 0xe6, 0x38, 0x95, 0x4f, 0xa3, 0xe4, 0x09, 0x66, 0x5c, + 0x48, 0xc2, 0x7d, 0x2a, 0xb4, 0x32, 0xfa, 0x2d, 0x4c, 0x0d, 0x22, 0xee, 0x33, 0xe7, 0xc2, 0xc8, + 0xe2, 0xa9, 0x95, 0xa5, 0xfa, 0x70, 0x9d, 0x23, 0x62, 0x1c, 0x32, 0x21, 0xbd, 0x49, 0x2b, 0x6e, + 0x58, 0x69, 0xed, 0x83, 0x0b, 0x30, 0x3b, 0x94, 0x8a, 0x4e, 0xc3, 0x28, 0x27, 0x1d, 0xea, 0x5e, + 0xbb, 0xe0, 0x2c, 0x96, 0x6e, 0x8f, 0xfd, 0xf9, 0xd6, 0x89, 0x71, 0xc7, 0xd3, 0x22, 0xf4, 0x7b, + 0x28, 0x69, 0x9f, 0xfd, 0x28, 0x14, 0xca, 0x11, 0x67, 0xf1, 0xd4, 0xca, 0xf5, 0xaf, 0xe4, 0x48, + 0x3d, 0xd7, 0xc7, 0xf2, 0x30, 0xa6, 0x5e, 0xef, 0xbe, 0xda, 0x3b, 0xe7, 0xa1, 0x52, 0x44, 0x51, + 0x0b, 0xc6, 0x33, 0x49, 0x66, 0x6e, 0xeb, 0xeb, 0x98, 0xcb, 0x8f, 0xc6, 0x78, 0x7e, 0x79, 0xed, + 0xdd, 0x05, 0x28, 0x17, 0x30, 0xc4, 0x60, 0x54, 0x5d, 0x9b, 0x99, 0x7d, 0xf4, 0xcd, 0x99, 0xad, + 0xeb, 0xba, 0xd0, 0x0e, 0x68, 0x13, 0xb5, 0xf7, 0xce, 0x41, 0x29, 0x97, 0xa1, 0x33, 0x50, 0xe2, + 0x69, 0x07, 0xc7, 0x94, 0x26, 0x42, 0x3f, 0x83, 0xb2, 0x37, 0xce, 0xd3, 0xce, 0x43, 0x75, 0x46, + 0x3f, 0x80, 0x8a, 0x02, 0x19, 0x97, 0x34, 0xd9, 0x23, 0x3e, 0x15, 0xee, 0xaa, 0x66, 0x94, 0x79, + 0xda, 0x69, 0xe4, 0x42, 0x74, 0x05, 0xa6, 0x8b, 0x34, 0x9c, 0xc6, 0xee, 0x4f, 0x35, 0x73, 0xb2, + 0xc0, 0x7c, 0x1c, 0xa3, 0x1f, 0x03, 0xd2, 0xdc, 0xa4, 0xd9, 0x7f, 0xed, 0x9a, 0x26, 0x4f, 0x29, + 0x72, 0xd2, 0xec, 0xbb, 0xf9, 0x2a, 0xcc, 0x1e, 0x65, 0xab, 0xdb, 0x7f, 0xa6, 0x15, 0xd0, 0xa0, + 0xc2, 0xe3, 0x18, 0x5d, 0x02, 0x65, 0x13, 0x27, 0xb4, 0x13, 0x49, 0x8a, 0x3b, 0xc4, 0x17, 0xee, + 0x2f, 0x73, 0xa7, 0x3d, 0x2d, 0xdd, 0x26, 0xbe, 0x40, 0x75, 0x98, 0x29, 0xf2, 0x30, 0x8b, 0x71, + 0x77, 0xd5, 0xbd, 0x9e, 0xbb, 0x92, 0x93, 0x1b, 0xf1, 0x6f, 0x56, 0xdf, 0xc0, 0x5f, 0x73, 0x6f, + 0x0c, 0xe5, 0xaf, 0xa1, 0x25, 0xa8, 0xf6, 0xf1, 0x55, 0x04, 0xda, 0x97, 0x5f, 0x0d, 0xd0, 0x1b, + 0x49, 0x53, 0xbb, 0xb3, 0x62, 0x22, 0xa5, 0x72, 0x9f, 0x26, 0x9c, 0x4a, 0x2c, 0x68, 0xab, 0x43, + 0xb9, 0x14, 0xee, 0x4d, 0xad, 0xa0, 0xee, 0xda, 0xb4, 0xd8, 0xae, 0x85, 0x94, 0x4e, 0x48, 0x9a, + 0x34, 0xc4, 0x24, 0x0c, 0x23, 0x9f, 0x48, 0x16, 0x71, 0xdc, 0x89, 0x02, 0xea, 0xde, 0x55, 0xbd, + 0xe4, 0x55, 0x35, 0xb8, 0x9e, 0x63, 0xdb, 0x51, 0x40, 0xd1, 0x5f, 0x1c, 0x80, 0xbe, 0xc4, 0x3f, + 0x37, 0xed, 0x1d, 0x1c, 0x47, 0xbd, 0xd5, 0xfb, 0x1e, 0x99, 0x9e, 0x0a, 0x7d, 0x86, 0xd1, 0xdf, + 0x1d, 0xa8, 0x0c, 0x14, 0xc1, 0x0b, 0xe3, 0xcb, 0xfe, 0xf1, 0xf8, 0x52, 0x2c, 0x21, 0xed, 0x4f, + 0x99, 0x15, 0x8a, 0x4d, 0xc0, 0xa8, 0x6a, 0x03, 0xf7, 0x5f, 0xc6, 0x8f, 0x3f, 0x1c, 0x8b, 0x1f, + 0xca, 0x82, 0xb1, 0xae, 0x8d, 0xa1, 0x14, 0xc6, 0x44, 0x0b, 0x07, 0x4d, 0xf7, 0x95, 0xb1, 0x8a, + 0x8f, 0xc5, 0xaa, 0x36, 0x61, 0xcd, 0x8a, 0xd6, 0x46, 0x13, 0xfd, 0xd3, 0x81, 0xa9, 0xc1, 0x5a, + 0x73, 0x5f, 0x1a, 0x17, 0xda, 0xc7, 0xe2, 0xc2, 0xa0, 0x35, 0xbb, 0x28, 0x68, 0xb1, 0xa8, 0xd1, + 0x7f, 0x1d, 0x98, 0x21, 0x42, 0x30, 0x21, 0x69, 0x80, 0x13, 0x1a, 0x87, 0xcc, 0x14, 0xaf, 0xfb, + 0x6f, 0x33, 0x19, 0xf9, 0xb1, 0x38, 0x37, 0xcc, 0xa2, 0x99, 0x99, 0xd5, 0x0c, 0xf2, 0x7a, 0x48, + 0xad, 0x0d, 0x93, 0x03, 0xb5, 0x94, 0xaf, 0xb1, 0x1b, 0x47, 0xd7, 0xd8, 0x14, 0x8c, 0x50, 0xc1, + 0x74, 0xe7, 0x97, 0x3c, 0xf5, 0x13, 0x21, 0x18, 0xd5, 0x7d, 0x7a, 0x53, 0x8b, 0xf4, 0x6f, 0x34, + 0x07, 0x27, 0x85, 0x24, 0x32, 0x15, 0xee, 0x2d, 0x2d, 0xb5, 0xa7, 0xda, 0x33, 0x07, 0xaa, 0x43, + 0x8a, 0xf7, 0xcb, 0x0c, 0xd6, 0xa1, 0xda, 0x65, 0x89, 0x4c, 0x49, 0x88, 0x5b, 0x44, 0xd2, 0xa7, + 0xe4, 0x10, 0xf7, 0x1c, 0x98, 0xb6, 0xd0, 0x3d, 0x83, 0x6c, 0x0a, 0xd6, 0x67, 0xfa, 0x66, 0xbf, + 0x69, 0x74, 0x0e, 0x20, 0xbc, 0x86, 0xfd, 0x88, 0x4b, 0x7a, 0x20, 0xad, 0x5b, 0xa5, 0xf0, 0xda, + 0x1d, 0x23, 0xa8, 0x7d, 0x7e, 0x02, 0x4a, 0x79, 0x39, 0xa3, 0x45, 0x98, 0xd0, 0x07, 0x12, 0x04, + 0x09, 0x15, 0xc2, 0xbd, 0xd7, 0xef, 0xd7, 0x29, 0x05, 0xad, 0x1b, 0x04, 0xfd, 0x1c, 0x4e, 0xab, + 0x51, 0x47, 0x52, 0x19, 0xe1, 0x80, 0x09, 0x3f, 0xea, 0xd2, 0xe4, 0x10, 0x27, 0x51, 0x2a, 0xa9, + 0x70, 0x1b, 0x7a, 0xdc, 0xcd, 0xf1, 0xb4, 0xb3, 0x9e, 0xca, 0x68, 0x23, 0x83, 0x3d, 0x8d, 0xa2, + 0x9f, 0x98, 0x21, 0xdc, 0x49, 0x43, 0xc9, 0x7c, 0x22, 0x64, 0xa6, 0xb5, 0x95, 0xaf, 0x83, 0xed, + 0x0c, 0xb2, 0x1a, 0x37, 0xe0, 0xcc, 0xb0, 0xb9, 0x9a, 0x29, 0xfe, 0x5a, 0x2b, 0xba, 0x47, 0xa7, + 0xab, 0x55, 0xbf, 0x68, 0x36, 0xa0, 0x1a, 0xf7, 0x56, 0xe3, 0x81, 0xd6, 0x98, 0x50, 0xa6, 0x88, + 0x6f, 0x59, 0x97, 0xcd, 0x02, 0xb4, 0x4b, 0xc1, 0x12, 0xb7, 0x35, 0xb1, 0x62, 0x88, 0x8d, 0xd8, + 0x52, 0xef, 0xc0, 0x82, 0xa2, 0x0a, 0x1a, 0x52, 0x5f, 0xb2, 0x2e, 0x3d, 0x1a, 0xcb, 0x8e, 0xd6, + 0x53, 0x5e, 0xef, 0x66, 0xa4, 0x81, 0xa0, 0x6a, 0xff, 0x18, 0x03, 0xe8, 0xb5, 0xb4, 0x5a, 0x79, + 0x79, 0x7c, 0x92, 0xb4, 0x30, 0x0b, 0x74, 0xf6, 0xcb, 0x5e, 0x39, 0x13, 0x3f, 0x22, 0xad, 0x46, + 0x80, 0x66, 0x60, 0xac, 0x95, 0x44, 0x69, 0xec, 0xde, 0xd7, 0x8f, 0xd2, 0x1c, 0xf4, 0xd3, 0x8f, + 0xd2, 0xc4, 0xa7, 0x3a, 0xf7, 0xea, 0xe9, 0xeb, 0x13, 0x5a, 0x84, 0x29, 0x19, 0x49, 0x12, 0xaa, + 0xda, 0xc1, 0x7b, 0x84, 0x47, 0xa9, 0xb4, 0x79, 0xae, 0x68, 0xf9, 0xa6, 0x60, 0x77, 0xb5, 0x54, + 0xed, 0x74, 0xc3, 0x54, 0x9b, 0x26, 0xcc, 0xb8, 0x26, 0xb5, 0xe6, 0x8e, 0x07, 0x0a, 0xb0, 0xec, + 0x3a, 0x54, 0x0d, 0xdb, 0xae, 0x46, 0x4b, 0x37, 0x79, 0x9d, 0xd6, 0x90, 0x59, 0x8d, 0x96, 0xff, + 0x57, 0x07, 0xc6, 0x45, 0x2b, 0x68, 0xea, 0x1a, 0xb6, 0xaf, 0xa3, 0x9d, 0x63, 0x9e, 0x92, 0xf5, + 0xcc, 0xa0, 0x99, 0x52, 0xdf, 0x51, 0xc7, 0x4d, 0xc1, 0x6a, 0xcf, 0x4f, 0x40, 0xb9, 0x00, 0x21, + 0xd7, 0x34, 0xf7, 0x73, 0xa7, 0xbf, 0xdc, 0x75, 0x93, 0xff, 0x10, 0x26, 0x4d, 0x3e, 0x18, 0x97, + 0x7b, 0x58, 0xf7, 0xaa, 0x7e, 0xbb, 0x2b, 0x79, 0x65, 0x2d, 0x6f, 0x70, 0xb9, 0xb7, 0xa3, 0xda, + 0xf5, 0x32, 0x4c, 0xb5, 0x23, 0xc6, 0xb1, 0x38, 0xe4, 0x3e, 0xb6, 0x8d, 0xf8, 0xc2, 0x30, 0x2b, + 0x0a, 0xd8, 0x3d, 0xe4, 0xfe, 0xae, 0xe9, 0xc8, 0x55, 0x98, 0xeb, 0x51, 0x43, 0x55, 0x34, 0x69, + 0x1c, 0x10, 0x49, 0x03, 0xb5, 0xb4, 0xf4, 0xce, 0xcf, 0x14, 0x1e, 0x10, 0x21, 0x1f, 0x1b, 0x0c, + 0xfd, 0x08, 0xa6, 0x43, 0x4a, 0xba, 0xb4, 0x60, 0xe1, 0xa5, 0x51, 0x98, 0xd4, 0x48, 0x9f, 0x89, + 0x35, 0x98, 0xef, 0x23, 0x17, 0x6c, 0xbc, 0x32, 0x2a, 0x33, 0xb9, 0x4a, 0x9f, 0x91, 0xda, 0xa7, + 0x23, 0x30, 0x3b, 0x74, 0xc6, 0xa3, 0x79, 0x93, 0xa2, 0x7b, 0x47, 0x32, 0xd4, 0x9b, 0x3b, 0xf7, + 0x0b, 0x73, 0xe7, 0xd2, 0xd1, 0xcc, 0x35, 0x86, 0x25, 0xee, 0x0a, 0x4c, 0xf7, 0xf1, 0xec, 0x55, + 0x5b, 0x36, 0xac, 0x8c, 0x69, 0xc3, 0x5a, 0x81, 0xd9, 0x60, 0x0f, 0x9b, 0x86, 0x8a, 0x38, 0x26, + 0x61, 0x2b, 0x4a, 0x98, 0xdc, 0xef, 0xe8, 0x32, 0x2d, 0x79, 0xd5, 0x60, 0x6f, 0xd3, 0x62, 0xeb, + 0x19, 0x84, 0xae, 0xc2, 0x4c, 0x40, 0x05, 0x6b, 0x71, 0x15, 0x20, 0xde, 0x8b, 0x92, 0xa7, 0x24, + 0x09, 0x68, 0xa2, 0x4b, 0x55, 0xa9, 0xe4, 0xd8, 0xdd, 0x0c, 0x42, 0xcf, 0x1c, 0x28, 0xd9, 0xba, + 0x8e, 0xf3, 0x8f, 0xa7, 0xc3, 0xb7, 0xb7, 0x50, 0xeb, 0xb9, 0x71, 0x53, 0xb9, 0xe3, 0xe6, 0xfc, + 0x90, 0xd6, 0xb6, 0xa0, 0x52, 0xc4, 0xd0, 0x45, 0x00, 0x16, 0x0f, 0x9f, 0xd7, 0x25, 0x16, 0x67, + 0xd3, 0x3a, 0xdb, 0x55, 0xf7, 0x7b, 0xbb, 0xaa, 0xf6, 0xd9, 0x28, 0x9c, 0x7e, 0xe3, 0xca, 0x54, + 0x1a, 0x49, 0x14, 0xda, 0x2f, 0x3a, 0x4f, 0xff, 0x46, 0x2f, 0x1d, 0x28, 0x85, 0x2b, 0x38, 0x88, + 0x3a, 0x84, 0x71, 0xf7, 0xff, 0x26, 0x2f, 0x7f, 0x7a, 0xbb, 0xbb, 0xbc, 0x9e, 0x3b, 0x60, 0x73, + 0x13, 0xae, 0x6c, 0xe8, 0x63, 0xed, 0x3f, 0x23, 0x50, 0x29, 0x82, 0xe8, 0x2c, 0x9c, 0xec, 0x72, + 0xa6, 0x46, 0xa9, 0xfe, 0x28, 0xca, 0x12, 0x33, 0xd6, 0xe5, 0xac, 0x11, 0xa0, 0xff, 0x39, 0x30, + 0xce, 0xe9, 0x81, 0xdc, 0x8f, 0x62, 0x91, 0x45, 0xf3, 0x37, 0xe7, 0x5b, 0x0d, 0xa7, 0x9e, 0xf9, + 0x63, 0x83, 0xcb, 0x8e, 0xb5, 0x0f, 0x1d, 0x28, 0x17, 0x30, 0x74, 0x25, 0x17, 0x60, 0xc6, 0x03, + 0x7a, 0xa0, 0x9f, 0x6d, 0x1e, 0xe2, 0x84, 0xc5, 0x1a, 0x0a, 0x42, 0xb3, 0x79, 0x1e, 0xcc, 0x4a, + 0xb1, 0x09, 0x38, 0x0b, 0xa5, 0xfc, 0x85, 0xc4, 0x36, 0x67, 0x4f, 0x80, 0xbe, 0x0f, 0xe5, 0xcc, + 0xdb, 0x28, 0xc1, 0x2c, 0xb6, 0x4d, 0x39, 0xd1, 0x13, 0x36, 0xf4, 0x97, 0x20, 0x13, 0xb8, 0xaf, + 0xc1, 0xb8, 0x2a, 0x33, 0xd5, 0x8e, 0xe3, 0xde, 0x14, 0x13, 0x1b, 0x39, 0xb0, 0x13, 0x05, 0xf4, + 0x17, 0x5d, 0x38, 0xdf, 0xe6, 0x71, 0x82, 0x87, 0xa7, 0x18, 0xd3, 0x03, 0x89, 0xe6, 0xeb, 0x5b, + 0x29, 0x67, 0x31, 0x4d, 0x76, 0x0c, 0x47, 0xec, 0x52, 0x2e, 0xa2, 0x44, 0xb8, 0xb1, 0x7e, 0x73, + 0x9c, 0x7f, 0xc3, 0xe3, 0xf1, 0xce, 0xa8, 0x8b, 0x77, 0x8a, 0x7f, 0x58, 0x88, 0xcd, 0x6e, 0xcc, + 0x37, 0x0f, 0xe4, 0xed, 0x3f, 0x7e, 0xf4, 0x7a, 0xc1, 0xf9, 0xf8, 0xf5, 0x82, 0xf3, 0xc9, 0xeb, + 0x05, 0xe7, 0x77, 0x5e, 0x8b, 0xc9, 0x7a, 0xdb, 0x58, 0x51, 0xd7, 0x2d, 0x33, 0x9f, 0x36, 0x69, + 0xd2, 0x5a, 0xde, 0xa7, 0x24, 0x94, 0xfb, 0xcd, 0x48, 0x2e, 0x31, 0xde, 0xa2, 0x42, 0x2e, 0xb5, + 0x25, 0x5b, 0xe2, 0x44, 0x2d, 0xef, 0xe5, 0xf8, 0x49, 0x6b, 0xb9, 0x2d, 0xd9, 0x32, 0x09, 0x48, + 0x2c, 0x69, 0x22, 0x96, 0x71, 0x3b, 0xe5, 0x91, 0x58, 0x16, 0xfe, 0x3e, 0xed, 0x90, 0x2f, 0x02, + 0x00, 0x00, 0xff, 0xff, 0x64, 0x77, 0xbd, 0x27, 0xc0, 0x11, 0x00, 0x00, +} + +func (m *NetworkInstancesEvpn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocols != nil { + { + size, err := m.Protocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protocol != nil { + { + size, err := m.Protocol.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Evpn != nil { + { + size, err := m.Evpn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AssistedReplication != nil { + { + size, err := m.AssistedReplication.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if len(m.SgDb) > 0 { + for iNdEx := len(m.SgDb) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SgDb[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.EthernetSegment) > 0 { + for iNdEx := len(m.EthernetSegment) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EthernetSegment[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + } + if len(m.Peer) > 0 { + for iNdEx := len(m.Peer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Peer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + } + if len(m.IrbInterfaces) > 0 { + for iNdEx := len(m.IrbInterfaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IrbInterfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + if len(m.Interfaces) > 0 { + for iNdEx := len(m.Interfaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interfaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.LabelAllocationMode != nil { + i -= len(*m.LabelAllocationMode) + copy(dAtA[i:], *m.LabelAllocationMode) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.LabelAllocationMode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb2 + } + if m.NumEthernetSegments != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumEthernetSegments)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.NumRemoteIrbMacs != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumRemoteIrbMacs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.NumRemoteMacIpV6 != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumRemoteMacIpV6)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.NumRemoteMacIpV4 != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumRemoteMacIpV4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.NumRemoteMacs != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumRemoteMacs)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.NumIrbInterfacesUp != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumIrbInterfacesUp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NumIrbInterfaces != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumIrbInterfaces)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.NumInterfacesUp != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumInterfacesUp)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NumInterfaces != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumInterfaces)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.NumPeers != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumPeers)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.Mode != nil { + i -= len(*m.Mode) + copy(dAtA[i:], *m.Mode) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Mode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.Esi != nil { + i -= len(*m.Esi) + copy(dAtA[i:], *m.Esi) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Esi))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.L3Context != nil { + i -= len(*m.L3Context) + copy(dAtA[i:], *m.L3Context) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.L3Context))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x82 + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.VirtualGatewayEsi != nil { + i -= len(*m.VirtualGatewayEsi) + copy(dAtA[i:], *m.VirtualGatewayEsi) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.VirtualGatewayEsi))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NumSelectiveMulticastRoutes != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumSelectiveMulticastRoutes)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xf0 + } + if m.NumMacIpRoutes != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumMacIpRoutes)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe8 + } + if m.NumMacRoutes != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumMacRoutes)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.NumEthernetSegmentRoutes != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumEthernetSegmentRoutes)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.NumMulticastRoutes != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumMulticastRoutes)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.NumAutoDiscoveryRoutes != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NumAutoDiscoveryRoutes)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.PeerAddress != nil { + i -= len(*m.PeerAddress) + copy(dAtA[i:], *m.PeerAddress) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.PeerAddress))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SgdbEsi) > 0 { + for iNdEx := len(m.SgdbEsi) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SgdbEsi[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.TotalRemoteFanout != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.TotalRemoteFanout)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe0 + } + if m.TotalLocalFanout != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.TotalLocalFanout)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.TotalEsiFanout != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.TotalEsiFanout)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.Source != nil { + i -= len(*m.Source) + copy(dAtA[i:], *m.Source) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Source))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xca + } + if m.Group != nil { + i -= len(*m.Group) + copy(dAtA[i:], *m.Group) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Group))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.EthernetTagId != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.EthernetTagId)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LeaveSyncLastUpdated != nil { + i -= len(*m.LeaveSyncLastUpdated) + copy(dAtA[i:], *m.LeaveSyncLastUpdated) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.LeaveSyncLastUpdated))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.LeaveSyncStatus != nil { + i -= len(*m.LeaveSyncStatus) + copy(dAtA[i:], *m.LeaveSyncStatus) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.LeaveSyncStatus))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.JoinSyncLastUpdated != nil { + i -= len(*m.JoinSyncLastUpdated) + copy(dAtA[i:], *m.JoinSyncLastUpdated) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.JoinSyncLastUpdated))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.JoinSyncStatus != nil { + i -= len(*m.JoinSyncStatus) + copy(dAtA[i:], *m.JoinSyncStatus) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.JoinSyncStatus))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Esi != nil { + i -= len(*m.Esi) + copy(dAtA[i:], *m.Esi) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Esi))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.LocalIntfName != nil { + i -= len(*m.LocalIntfName) + copy(dAtA[i:], *m.LocalIntfName) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.LocalIntfName))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RemotePe) > 0 { + for iNdEx := len(m.RemotePe) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RemotePe[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.DesignatedForwarder != nil { + i -= len(*m.DesignatedForwarder) + copy(dAtA[i:], *m.DesignatedForwarder) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.DesignatedForwarder))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xe2 + } + if m.DfElectionAlgorithm != nil { + i -= len(*m.DfElectionAlgorithm) + copy(dAtA[i:], *m.DfElectionAlgorithm) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.DfElectionAlgorithm))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xda + } + if m.LocalIntfStatus != nil { + i -= len(*m.LocalIntfStatus) + copy(dAtA[i:], *m.LocalIntfStatus) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.LocalIntfStatus))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd2 + } + if m.LocalIntfName != nil { + i -= len(*m.LocalIntfName) + copy(dAtA[i:], *m.LocalIntfName) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.LocalIntfName))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xca + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.Esi != nil { + i -= len(*m.Esi) + copy(dAtA[i:], *m.Esi) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Esi))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mode != nil { + i -= len(*m.Mode) + copy(dAtA[i:], *m.Mode) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Mode))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc2 + } + if m.IpAddress != nil { + i -= len(*m.IpAddress) + copy(dAtA[i:], *m.IpAddress) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.IpAddress))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.L2Domain) > 0 { + for iNdEx := len(m.L2Domain) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.L2Domain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + } + if m.Role != nil { + i -= len(*m.Role) + copy(dAtA[i:], *m.Role) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Role))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Nexthops) > 0 { + for iNdEx := len(m.Nexthops) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nexthops[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + i-- + dAtA[i] = 0xda + } + } + if m.VniId != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.VniId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IsDesignatedNode != nil { + i-- + if *m.IsDesignatedNode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.ReplicatorIp != nil { + i -= len(*m.ReplicatorIp) + copy(dAtA[i:], *m.ReplicatorIp) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.ReplicatorIp))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd2 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xca + } + if m.NexthopIndex != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.NexthopIndex)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.VniId != nil { + i = encodeVarintRpdNiEvpnRender(dAtA, i, uint64(*m.VniId)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdNiEvpnRender(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdNiEvpnRender(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesEvpn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Protocols != nil { + l = m.Protocols.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Protocol != nil { + l = m.Protocol.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Evpn != nil { + l = m.Evpn.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumPeers != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumPeers)) + } + if m.NumInterfaces != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumInterfaces)) + } + if m.NumInterfacesUp != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumInterfacesUp)) + } + if m.NumIrbInterfaces != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumIrbInterfaces)) + } + if m.NumIrbInterfacesUp != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumIrbInterfacesUp)) + } + if m.NumRemoteMacs != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumRemoteMacs)) + } + if m.NumRemoteMacIpV4 != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumRemoteMacIpV4)) + } + if m.NumRemoteMacIpV6 != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumRemoteMacIpV6)) + } + if m.NumRemoteIrbMacs != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumRemoteIrbMacs)) + } + if m.NumEthernetSegments != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumEthernetSegments)) + } + if m.LabelAllocationMode != nil { + l = len(*m.LabelAllocationMode) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if len(m.Interfaces) > 0 { + for _, e := range m.Interfaces { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if len(m.IrbInterfaces) > 0 { + for _, e := range m.IrbInterfaces { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if len(m.Peer) > 0 { + for _, e := range m.Peer { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if len(m.EthernetSegment) > 0 { + for _, e := range m.EthernetSegment { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if len(m.SgDb) > 0 { + for _, e := range m.SgDb { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if m.AssistedReplication != nil { + l = m.AssistedReplication.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Esi != nil { + l = len(*m.Esi) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Mode != nil { + l = len(*m.Mode) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.VirtualGatewayEsi != nil { + l = len(*m.VirtualGatewayEsi) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.L3Context != nil { + l = len(*m.L3Context) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PeerAddress != nil { + l = len(*m.PeerAddress) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.NumAutoDiscoveryRoutes != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumAutoDiscoveryRoutes)) + } + if m.NumMulticastRoutes != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumMulticastRoutes)) + } + if m.NumEthernetSegmentRoutes != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumEthernetSegmentRoutes)) + } + if m.NumMacRoutes != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumMacRoutes)) + } + if m.NumMacIpRoutes != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumMacIpRoutes)) + } + if m.NumSelectiveMulticastRoutes != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NumSelectiveMulticastRoutes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EthernetTagId != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.EthernetTagId)) + } + if m.Group != nil { + l = len(*m.Group) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Source != nil { + l = len(*m.Source) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.TotalEsiFanout != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.TotalEsiFanout)) + } + if m.TotalLocalFanout != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.TotalLocalFanout)) + } + if m.TotalRemoteFanout != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.TotalRemoteFanout)) + } + if len(m.SgdbEsi) > 0 { + for _, e := range m.SgdbEsi { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocalIntfName != nil { + l = len(*m.LocalIntfName) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Esi != nil { + l = len(*m.Esi) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.JoinSyncStatus != nil { + l = len(*m.JoinSyncStatus) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.JoinSyncLastUpdated != nil { + l = len(*m.JoinSyncLastUpdated) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.LeaveSyncStatus != nil { + l = len(*m.LeaveSyncStatus) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.LeaveSyncLastUpdated != nil { + l = len(*m.LeaveSyncLastUpdated) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Esi != nil { + l = len(*m.Esi) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.LocalIntfName != nil { + l = len(*m.LocalIntfName) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.LocalIntfStatus != nil { + l = len(*m.LocalIntfStatus) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.DfElectionAlgorithm != nil { + l = len(*m.DfElectionAlgorithm) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.DesignatedForwarder != nil { + l = len(*m.DesignatedForwarder) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if len(m.RemotePe) > 0 { + for _, e := range m.RemotePe { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IpAddress != nil { + l = len(*m.IpAddress) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.Mode != nil { + l = len(*m.Mode) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Role != nil { + l = len(*m.Role) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if len(m.L2Domain) > 0 { + for _, e := range m.L2Domain { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VniId != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.VniId)) + } + if len(m.Nexthops) > 0 { + for _, e := range m.Nexthops { + l = e.Size() + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VniId != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.VniId)) + } + if m.NexthopIndex != nil { + n += 2 + sovRpdNiEvpnRender(uint64(*m.NexthopIndex)) + } + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.ReplicatorIp != nil { + l = len(*m.ReplicatorIp) + n += 2 + l + sovRpdNiEvpnRender(uint64(l)) + } + if m.IsDesignatedNode != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdNiEvpnRender(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdNiEvpnRender(x uint64) (n int) { + return sovRpdNiEvpnRender(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesEvpn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_evpn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_evpn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesEvpnNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocols == nil { + m.Protocols = &NetworkInstancesEvpnNetworkInstanceListProtocolsType{} + } + if err := m.Protocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protocol == nil { + m.Protocol = &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType{} + } + if err := m.Protocol.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protocol_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protocol_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Evpn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Evpn == nil { + m.Evpn = &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType{} + } + if err := m.Evpn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: evpn_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: evpn_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumPeers", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumPeers = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumInterfaces", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumInterfaces = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumInterfacesUp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumInterfacesUp = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumIrbInterfaces", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumIrbInterfaces = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumIrbInterfacesUp", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumIrbInterfacesUp = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRemoteMacs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRemoteMacs = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRemoteMacIpV4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRemoteMacIpV4 = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRemoteMacIpV6", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRemoteMacIpV6 = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumRemoteIrbMacs", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumRemoteIrbMacs = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumEthernetSegments", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumEthernetSegments = &v + case 70: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelAllocationMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LabelAllocationMode = &s + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interfaces = append(m.Interfaces, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList{}) + if err := m.Interfaces[len(m.Interfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IrbInterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IrbInterfaces = append(m.IrbInterfaces, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList{}) + if err := m.IrbInterfaces[len(m.IrbInterfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Peer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Peer = append(m.Peer, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList{}) + if err := m.Peer[len(m.Peer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetSegment", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthernetSegment = append(m.EthernetSegment, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList{}) + if err := m.EthernetSegment[len(m.EthernetSegment)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SgDb", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SgDb = append(m.SgDb, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList{}) + if err := m.SgDb[len(m.SgDb)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssistedReplication", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AssistedReplication == nil { + m.AssistedReplication = &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType{} + } + if err := m.AssistedReplication.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeInterfacesList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Esi", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Esi = &s + iNdEx = postIndex + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Mode = &s + iNdEx = postIndex + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeIrbInterfacesList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: irb_interfaces_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: irb_interfaces_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualGatewayEsi", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VirtualGatewayEsi = &s + iNdEx = postIndex + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + case 64: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L3Context", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.L3Context = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypePeerList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: peer_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: peer_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeerAddress = &s + iNdEx = postIndex + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumAutoDiscoveryRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumAutoDiscoveryRoutes = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumMulticastRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumMulticastRoutes = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumEthernetSegmentRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumEthernetSegmentRoutes = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumMacRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumMacRoutes = &v + case 77: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumMacIpRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumMacIpRoutes = &v + case 78: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumSelectiveMulticastRoutes", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NumSelectiveMulticastRoutes = &v + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sg_db_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sg_db_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EthernetTagId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EthernetTagId = &v + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Group = &s + iNdEx = postIndex + case 73: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Source = &s + iNdEx = postIndex + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalEsiFanout", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalEsiFanout = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalLocalFanout", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalLocalFanout = &v + case 76: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalRemoteFanout", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalRemoteFanout = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SgdbEsi", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SgdbEsi = append(m.SgdbEsi, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList{}) + if err := m.SgdbEsi[len(m.SgdbEsi)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeSgDbListSgdbEsiList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sgdb_esi_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sgdb_esi_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIntfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalIntfName = &s + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Esi", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Esi = &s + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JoinSyncStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.JoinSyncStatus = &s + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JoinSyncLastUpdated", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.JoinSyncLastUpdated = &s + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LeaveSyncStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LeaveSyncStatus = &s + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LeaveSyncLastUpdated", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LeaveSyncLastUpdated = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ethernet_segment_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ethernet_segment_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Esi", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Esi = &s + iNdEx = postIndex + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + case 73: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIntfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalIntfName = &s + iNdEx = postIndex + case 74: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIntfStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LocalIntfStatus = &s + iNdEx = postIndex + case 75: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DfElectionAlgorithm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DfElectionAlgorithm = &s + iNdEx = postIndex + case 76: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DesignatedForwarder", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DesignatedForwarder = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemotePe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RemotePe = append(m.RemotePe, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList{}) + if err := m.RemotePe[len(m.RemotePe)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeEthernetSegmentListRemotePeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: remote_pe_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: remote_pe_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IpAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IpAddress = &s + iNdEx = postIndex + case 72: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Mode = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: assisted_replication_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: assisted_replication_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Role = &s + iNdEx = postIndex + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field L2Domain", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.L2Domain = append(m.L2Domain, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList{}) + if err := m.L2Domain[len(m.L2Domain)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: l2_domain_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: l2_domain_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VniId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VniId = &v + case 171: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nexthops", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nexthops = append(m.Nexthops, &NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList{}) + if err := m.Nexthops[len(m.Nexthops)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesEvpnNetworkInstanceListProtocolsTypeProtocolTypeEvpnTypeAssistedReplicationTypeL2DomainListNexthopsList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: nexthops_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: nexthops_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VniId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VniId = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NexthopIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NexthopIndex = &v + case 73: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 74: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReplicatorIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ReplicatorIp = &s + iNdEx = postIndex + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDesignatedNode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsDesignatedNode = &b + default: + iNdEx = preIndex + skippy, err := skipRpdNiEvpnRender(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdNiEvpnRender + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdNiEvpnRender(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdNiEvpnRender + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdNiEvpnRender + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdNiEvpnRender + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdNiEvpnRender + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdNiEvpnRender = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdNiEvpnRender = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdNiEvpnRender = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_ni_evpn_render.proto b/schema/rpd_ni_evpn_render.proto new file mode 100755 index 0000000..ed460f2 --- /dev/null +++ b/schema/rpd_ni_evpn_render.proto @@ -0,0 +1,106 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_evpn jnpr_network_instances_evpn_ext = 112; +} + +message network_instances_evpn { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional protocols_type protocols = 151; + message protocols_type { + optional protocol_type protocol = 151; + message protocol_type { + optional evpn_type evpn = 151; + message evpn_type { + optional uint32 num_peers = 51; + optional uint32 num_interfaces = 52; + optional uint32 num_interfaces_up = 53; + optional uint32 num_irb_interfaces = 54; + optional uint32 num_irb_interfaces_up = 55; + optional uint32 num_remote_macs = 59; + optional uint32 num_remote_mac_ip_v4 = 60; + optional uint32 num_remote_mac_ip_v6 = 61; + optional uint32 num_remote_irb_macs = 62; + optional uint32 num_ethernet_segments = 63; + optional string label_allocation_mode = 70; + message interfaces_list { + optional string name = 61 [(telemetry_options).is_key = true]; + optional string esi = 62; + optional string mode = 63; + optional string status = 64; + } + repeated interfaces_list interfaces = 152; + message irb_interfaces_list { + optional string name = 61 [(telemetry_options).is_key = true]; + optional string virtual_gateway_esi = 62; + optional string status = 63; + optional string l3_context = 64; + } + repeated irb_interfaces_list irb_interfaces = 153; + message peer_list { + optional string peer_address = 71 [(telemetry_options).is_key = true]; + optional uint32 num_auto_discovery_routes = 73; + optional uint32 num_multicast_routes = 74; + optional uint32 num_ethernet_segment_routes = 75; + optional uint32 num_mac_routes = 76; + optional uint32 num_mac_ip_routes = 77; + optional uint32 num_selective_multicast_routes = 78; + } + repeated peer_list peer = 154; + message sg_db_list { + optional uint32 ethernet_tag_id = 71; + optional string group = 72; + optional string source = 73; + optional uint32 total_esi_fanout = 74; + optional uint32 total_local_fanout = 75; + optional uint32 total_remote_fanout = 76; + message sgdb_esi_list { + optional string esi = 152 [(telemetry_options).is_key = true]; + optional string local_intf_name = 151; + optional string join_sync_status = 153; + optional string join_sync_last_updated = 154; + optional string leave_sync_status = 155; + optional string leave_sync_last_updated = 156; + } + repeated sgdb_esi_list sgdb_esi = 151; + } + repeated sg_db_list sg_db = 156; + message ethernet_segment_list { + optional string esi = 71 [(telemetry_options).is_key = true]; + optional string status = 72; + optional string local_intf_name = 73; + optional string local_intf_status = 74; + optional string df_election_algorithm = 75; + optional string designated_forwarder = 76; + message remote_pe_list { + optional string ip_address = 71 [(telemetry_options).is_key = true]; + optional string mode = 72; + } + repeated remote_pe_list remote_pe = 151; + } + repeated ethernet_segment_list ethernet_segment = 155; + optional assisted_replication_type assisted_replication = 157; + message assisted_replication_type { + optional string role = 51; + message l2_domain_list { + optional uint32 vni_id = 51 [(telemetry_options).is_key = true]; + message nexthops_list { + optional uint32 nexthop_index = 72 [(telemetry_options).is_key = true]; + optional uint32 vni_id = 71; + optional string interface = 73; + optional string replicator_ip = 74; + optional bool is_designated_node = 75; + } + repeated nexthops_list nexthops = 171; + } + repeated l2_domain_list l2_domain = 171; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/rpd_rsvp_oc.pb.go b/schema/rpd_rsvp_oc.pb.go new file mode 100644 index 0000000..6cbb9bb --- /dev/null +++ b/schema/rpd_rsvp_oc.pb.go @@ -0,0 +1,14618 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_rsvp_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesRsvp struct { + NetworkInstance []*NetworkInstancesRsvpNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvp) Reset() { *m = NetworkInstancesRsvp{} } +func (m *NetworkInstancesRsvp) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesRsvp) ProtoMessage() {} +func (*NetworkInstancesRsvp) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0} +} +func (m *NetworkInstancesRsvp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvp) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvp.Merge(m, src) +} +func (m *NetworkInstancesRsvp) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvp) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvp.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvp proto.InternalMessageInfo + +func (m *NetworkInstancesRsvp) GetNetworkInstance() []*NetworkInstancesRsvpNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Mpls *NetworkInstancesRsvpNetworkInstanceListMplsType `protobuf:"bytes,151,opt,name=mpls" json:"mpls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesRsvpNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesRsvpNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceList) GetMpls() *NetworkInstancesRsvpNetworkInstanceListMplsType { + if m != nil { + return m.Mpls + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsType struct { + SignalingProtocols *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType `protobuf:"bytes,151,opt,name=signaling_protocols,json=signalingProtocols" json:"signaling_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsType) ProtoMessage() {} +func (*NetworkInstancesRsvpNetworkInstanceListMplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) GetSignalingProtocols() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType { + if m != nil { + return m.SignalingProtocols + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType struct { + RsvpTe *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType `protobuf:"bytes,151,opt,name=rsvp_te,json=rsvpTe" json:"rsvp_te,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) ProtoMessage() {} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) GetRsvpTe() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType { + if m != nil { + return m.RsvpTe + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType struct { + Sessions *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType `protobuf:"bytes,151,opt,name=sessions" json:"sessions,omitempty"` + Neighbors *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType `protobuf:"bytes,152,opt,name=neighbors" json:"neighbors,omitempty"` + Global *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType `protobuf:"bytes,153,opt,name=global" json:"global,omitempty"` + InterfaceAttributes *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType `protobuf:"bytes,154,opt,name=interface_attributes,json=interfaceAttributes" json:"interface_attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) GetSessions() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType { + if m != nil { + return m.Sessions + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) GetNeighbors() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType { + if m != nil { + return m.Neighbors + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) GetGlobal() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType { + if m != nil { + return m.Global + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) GetInterfaceAttributes() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType { + if m != nil { + return m.InterfaceAttributes + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType struct { + Session []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList `protobuf:"bytes,151,rep,name=session" json:"session,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) GetSession() []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList { + if m != nil { + return m.Session + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList struct { + LocalIndex *uint64 `protobuf:"varint,51,opt,name=local_index,json=localIndex" json:"local_index,omitempty"` + Name *string `protobuf:"bytes,52,opt,name=name" json:"name,omitempty"` + LspId *uint32 `protobuf:"varint,53,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + Subcode *string `protobuf:"bytes,54,opt,name=subcode" json:"subcode,omitempty"` + RecordRouteObjects *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType `protobuf:"bytes,151,opt,name=record_route_objects,json=recordRouteObjects" json:"record_route_objects,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType `protobuf:"bytes,153,opt,name=state" json:"state,omitempty"` + ExplicitRouteObjects *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType `protobuf:"bytes,152,opt,name=explicit_route_objects,json=explicitRouteObjects" json:"explicit_route_objects,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetLocalIndex() uint64 { + if m != nil && m.LocalIndex != nil { + return *m.LocalIndex + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetLspId() uint32 { + if m != nil && m.LspId != nil { + return *m.LspId + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetSubcode() string { + if m != nil && m.Subcode != nil { + return *m.Subcode + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetRecordRouteObjects() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType { + if m != nil { + return m.RecordRouteObjects + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) GetExplicitRouteObjects() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType { + if m != nil { + return m.ExplicitRouteObjects + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType struct { + RecordRouteObject []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList `protobuf:"bytes,151,rep,name=record_route_object,json=recordRouteObject" json:"record_route_object,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) GetRecordRouteObject() []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList { + if m != nil { + return m.RecordRouteObject + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Address *string `protobuf:"bytes,52,opt,name=address" json:"address,omitempty"` + ReportedLabel *string `protobuf:"bytes,53,opt,name=reported_label,json=reportedLabel" json:"reported_label,omitempty"` + ReportedFlags *uint32 `protobuf:"varint,54,opt,name=reported_flags,json=reportedFlags" json:"reported_flags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) GetReportedLabel() string { + if m != nil && m.ReportedLabel != nil { + return *m.ReportedLabel + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) GetReportedFlags() uint32 { + if m != nil && m.ReportedFlags != nil { + return *m.ReportedFlags + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType struct { + LocalIndex *uint64 `protobuf:"varint,51,opt,name=local_index,json=localIndex" json:"local_index,omitempty"` + SourceAddress *string `protobuf:"bytes,52,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` + DestinationAddress *string `protobuf:"bytes,53,opt,name=destination_address,json=destinationAddress" json:"destination_address,omitempty"` + TunnelId *uint32 `protobuf:"varint,54,opt,name=tunnel_id,json=tunnelId" json:"tunnel_id,omitempty"` + LspId *uint32 `protobuf:"varint,55,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + SessionName *string `protobuf:"bytes,56,opt,name=session_name,json=sessionName" json:"session_name,omitempty"` + Status *string `protobuf:"bytes,57,opt,name=status" json:"status,omitempty"` + Type *string `protobuf:"bytes,59,opt,name=type" json:"type,omitempty"` + ProtectionRequested *string `protobuf:"bytes,58,opt,name=protection_requested,json=protectionRequested" json:"protection_requested,omitempty"` + LabelIn *string `protobuf:"bytes,60,opt,name=label_in,json=labelIn" json:"label_in,omitempty"` + LabelOut *string `protobuf:"bytes,61,opt,name=label_out,json=labelOut" json:"label_out,omitempty"` + SenderTspec *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType `protobuf:"bytes,151,opt,name=sender_tspec,json=senderTspec" json:"sender_tspec,omitempty"` + NotifyStatus *string `protobuf:"bytes,62,opt,name=notify_status,json=notifyStatus" json:"notify_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetLocalIndex() uint64 { + if m != nil && m.LocalIndex != nil { + return *m.LocalIndex + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetSourceAddress() string { + if m != nil && m.SourceAddress != nil { + return *m.SourceAddress + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetDestinationAddress() string { + if m != nil && m.DestinationAddress != nil { + return *m.DestinationAddress + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetTunnelId() uint32 { + if m != nil && m.TunnelId != nil { + return *m.TunnelId + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetLspId() uint32 { + if m != nil && m.LspId != nil { + return *m.LspId + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetSessionName() string { + if m != nil && m.SessionName != nil { + return *m.SessionName + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetStatus() string { + if m != nil && m.Status != nil { + return *m.Status + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetProtectionRequested() string { + if m != nil && m.ProtectionRequested != nil { + return *m.ProtectionRequested + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetLabelIn() string { + if m != nil && m.LabelIn != nil { + return *m.LabelIn + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetLabelOut() string { + if m != nil && m.LabelOut != nil { + return *m.LabelOut + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetSenderTspec() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType { + if m != nil { + return m.SenderTspec + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) GetNotifyStatus() string { + if m != nil && m.NotifyStatus != nil { + return *m.NotifyStatus + } + return "" +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType struct { + Rate *string `protobuf:"bytes,51,opt,name=rate" json:"rate,omitempty"` + Size_ *string `protobuf:"bytes,52,opt,name=size" json:"size,omitempty"` + PeakDataRate *string `protobuf:"bytes,53,opt,name=peak_data_rate,json=peakDataRate" json:"peak_data_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) GetRate() string { + if m != nil && m.Rate != nil { + return *m.Rate + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) GetSize_() string { + if m != nil && m.Size_ != nil { + return *m.Size_ + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) GetPeakDataRate() string { + if m != nil && m.PeakDataRate != nil { + return *m.PeakDataRate + } + return "" +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType struct { + ExplicitRouteObject []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList `protobuf:"bytes,151,rep,name=explicit_route_object,json=explicitRouteObject" json:"explicit_route_object,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) GetExplicitRouteObject() []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList { + if m != nil { + return m.ExplicitRouteObject + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList struct { + Index *uint32 `protobuf:"varint,52,opt,name=index" json:"index,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Address *string `protobuf:"bytes,52,opt,name=address" json:"address,omitempty"` + HopType *string `protobuf:"bytes,53,opt,name=hop_type,json=hopType" json:"hop_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) GetHopType() string { + if m != nil && m.HopType != nil { + return *m.HopType + } + return "" +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType struct { + Neighbor []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList `protobuf:"bytes,151,rep,name=neighbor" json:"neighbor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) GetNeighbor() []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList { + if m != nil { + return m.Neighbor + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList struct { + Address *string `protobuf:"bytes,51,opt,name=address" json:"address,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType struct { + Address *string `protobuf:"bytes,51,opt,name=address" json:"address,omitempty"` + DetectedInterface *string `protobuf:"bytes,52,opt,name=detected_interface,json=detectedInterface" json:"detected_interface,omitempty"` + NeighborStatus *string `protobuf:"bytes,53,opt,name=neighbor_status,json=neighborStatus" json:"neighbor_status,omitempty"` + RefreshReduction *bool `protobuf:"varint,54,opt,name=refresh_reduction,json=refreshReduction" json:"refresh_reduction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) GetDetectedInterface() string { + if m != nil && m.DetectedInterface != nil { + return *m.DetectedInterface + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) GetNeighborStatus() string { + if m != nil && m.NeighborStatus != nil { + return *m.NeighborStatus + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) GetRefreshReduction() bool { + if m != nil && m.RefreshReduction != nil { + return *m.RefreshReduction + } + return false +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType struct { + GracefulRestart *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType `protobuf:"bytes,151,opt,name=graceful_restart,json=gracefulRestart" json:"graceful_restart,omitempty"` + SoftPreemption *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType `protobuf:"bytes,152,opt,name=soft_preemption,json=softPreemption" json:"soft_preemption,omitempty"` + Hellos *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType `protobuf:"bytes,153,opt,name=hellos" json:"hellos,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType `protobuf:"bytes,154,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) GetGracefulRestart() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType { + if m != nil { + return m.GracefulRestart + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) GetSoftPreemption() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType { + if m != nil { + return m.SoftPreemption + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) GetHellos() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType { + if m != nil { + return m.Hellos + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType struct { + Enable *bool `protobuf:"varint,51,opt,name=enable" json:"enable,omitempty"` + RestartTime *uint32 `protobuf:"varint,52,opt,name=restart_time,json=restartTime" json:"restart_time,omitempty"` + RecoveryTime *uint32 `protobuf:"varint,53,opt,name=recovery_time,json=recoveryTime" json:"recovery_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) GetEnable() bool { + if m != nil && m.Enable != nil { + return *m.Enable + } + return false +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) GetRestartTime() uint32 { + if m != nil && m.RestartTime != nil { + return *m.RestartTime + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) GetRecoveryTime() uint32 { + if m != nil && m.RecoveryTime != nil { + return *m.RecoveryTime + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 1} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType struct { + Enable *bool `protobuf:"varint,51,opt,name=enable" json:"enable,omitempty"` + SoftPreemptionTimeout *uint32 `protobuf:"varint,52,opt,name=soft_preemption_timeout,json=softPreemptionTimeout" json:"soft_preemption_timeout,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 1, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) GetEnable() bool { + if m != nil && m.Enable != nil { + return *m.Enable + } + return false +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) GetSoftPreemptionTimeout() uint32 { + if m != nil && m.SoftPreemptionTimeout != nil { + return *m.SoftPreemptionTimeout + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 2} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType struct { + HelloInterval *uint32 `protobuf:"varint,51,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + RefreshReduction *bool `protobuf:"varint,52,opt,name=refresh_reduction,json=refreshReduction" json:"refresh_reduction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 2, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) GetRefreshReduction() bool { + if m != nil && m.RefreshReduction != nil { + return *m.RefreshReduction + } + return false +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType struct { + Counters *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType `protobuf:"bytes,152,opt,name=counters" json:"counters,omitempty"` + ErrorCounters *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType `protobuf:"bytes,151,opt,name=error_counters,json=errorCounters" json:"error_counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 3} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) GetCounters() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) GetErrorCounters() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType { + if m != nil { + return m.ErrorCounters + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType struct { + PathTimeouts *uint64 `protobuf:"varint,51,opt,name=path_timeouts,json=pathTimeouts" json:"path_timeouts,omitempty"` + ReservationTimeouts *uint64 `protobuf:"varint,52,opt,name=reservation_timeouts,json=reservationTimeouts" json:"reservation_timeouts,omitempty"` + RateLimitedMessages *uint64 `protobuf:"varint,53,opt,name=rate_limited_messages,json=rateLimitedMessages" json:"rate_limited_messages,omitempty"` + InPathMessages *uint64 `protobuf:"varint,54,opt,name=in_path_messages,json=inPathMessages" json:"in_path_messages,omitempty"` + InPathErrorMessages *uint64 `protobuf:"varint,55,opt,name=in_path_error_messages,json=inPathErrorMessages" json:"in_path_error_messages,omitempty"` + InPathTearMessages *uint64 `protobuf:"varint,56,opt,name=in_path_tear_messages,json=inPathTearMessages" json:"in_path_tear_messages,omitempty"` + InReservationMessages *uint64 `protobuf:"varint,57,opt,name=in_reservation_messages,json=inReservationMessages" json:"in_reservation_messages,omitempty"` + InReservationErrorMessages *uint64 `protobuf:"varint,58,opt,name=in_reservation_error_messages,json=inReservationErrorMessages" json:"in_reservation_error_messages,omitempty"` + InReservationTearMessages *uint64 `protobuf:"varint,59,opt,name=in_reservation_tear_messages,json=inReservationTearMessages" json:"in_reservation_tear_messages,omitempty"` + InHelloMessages *uint64 `protobuf:"varint,60,opt,name=in_hello_messages,json=inHelloMessages" json:"in_hello_messages,omitempty"` + InSrefreshMessages *uint64 `protobuf:"varint,61,opt,name=in_srefresh_messages,json=inSrefreshMessages" json:"in_srefresh_messages,omitempty"` + InAckMessages *uint64 `protobuf:"varint,62,opt,name=in_ack_messages,json=inAckMessages" json:"in_ack_messages,omitempty"` + OutPathMessages *uint64 `protobuf:"varint,63,opt,name=out_path_messages,json=outPathMessages" json:"out_path_messages,omitempty"` + OutPathErrorMessages *uint64 `protobuf:"varint,64,opt,name=out_path_error_messages,json=outPathErrorMessages" json:"out_path_error_messages,omitempty"` + OutPathTearMessages *uint64 `protobuf:"varint,65,opt,name=out_path_tear_messages,json=outPathTearMessages" json:"out_path_tear_messages,omitempty"` + OutReservationMessages *uint64 `protobuf:"varint,66,opt,name=out_reservation_messages,json=outReservationMessages" json:"out_reservation_messages,omitempty"` + OutReservationErrorMessages *uint64 `protobuf:"varint,67,opt,name=out_reservation_error_messages,json=outReservationErrorMessages" json:"out_reservation_error_messages,omitempty"` + OutReservationTearMessages *uint64 `protobuf:"varint,68,opt,name=out_reservation_tear_messages,json=outReservationTearMessages" json:"out_reservation_tear_messages,omitempty"` + OutHelloMessages *uint64 `protobuf:"varint,69,opt,name=out_hello_messages,json=outHelloMessages" json:"out_hello_messages,omitempty"` + OutSrefreshMessages *uint64 `protobuf:"varint,70,opt,name=out_srefresh_messages,json=outSrefreshMessages" json:"out_srefresh_messages,omitempty"` + OutAckMessages *uint64 `protobuf:"varint,71,opt,name=out_ack_messages,json=outAckMessages" json:"out_ack_messages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 3, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetPathTimeouts() uint64 { + if m != nil && m.PathTimeouts != nil { + return *m.PathTimeouts + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetReservationTimeouts() uint64 { + if m != nil && m.ReservationTimeouts != nil { + return *m.ReservationTimeouts + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetRateLimitedMessages() uint64 { + if m != nil && m.RateLimitedMessages != nil { + return *m.RateLimitedMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInPathMessages() uint64 { + if m != nil && m.InPathMessages != nil { + return *m.InPathMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInPathErrorMessages() uint64 { + if m != nil && m.InPathErrorMessages != nil { + return *m.InPathErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInPathTearMessages() uint64 { + if m != nil && m.InPathTearMessages != nil { + return *m.InPathTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInReservationMessages() uint64 { + if m != nil && m.InReservationMessages != nil { + return *m.InReservationMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInReservationErrorMessages() uint64 { + if m != nil && m.InReservationErrorMessages != nil { + return *m.InReservationErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInReservationTearMessages() uint64 { + if m != nil && m.InReservationTearMessages != nil { + return *m.InReservationTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInHelloMessages() uint64 { + if m != nil && m.InHelloMessages != nil { + return *m.InHelloMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInSrefreshMessages() uint64 { + if m != nil && m.InSrefreshMessages != nil { + return *m.InSrefreshMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetInAckMessages() uint64 { + if m != nil && m.InAckMessages != nil { + return *m.InAckMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutPathMessages() uint64 { + if m != nil && m.OutPathMessages != nil { + return *m.OutPathMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutPathErrorMessages() uint64 { + if m != nil && m.OutPathErrorMessages != nil { + return *m.OutPathErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutPathTearMessages() uint64 { + if m != nil && m.OutPathTearMessages != nil { + return *m.OutPathTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutReservationMessages() uint64 { + if m != nil && m.OutReservationMessages != nil { + return *m.OutReservationMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutReservationErrorMessages() uint64 { + if m != nil && m.OutReservationErrorMessages != nil { + return *m.OutReservationErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutReservationTearMessages() uint64 { + if m != nil && m.OutReservationTearMessages != nil { + return *m.OutReservationTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutHelloMessages() uint64 { + if m != nil && m.OutHelloMessages != nil { + return *m.OutHelloMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutSrefreshMessages() uint64 { + if m != nil && m.OutSrefreshMessages != nil { + return *m.OutSrefreshMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) GetOutAckMessages() uint64 { + if m != nil && m.OutAckMessages != nil { + return *m.OutAckMessages + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType struct { + BadPacketLength *uint64 `protobuf:"varint,51,opt,name=bad_packet_length,json=badPacketLength" json:"bad_packet_length,omitempty"` + BadPacketVersion *uint64 `protobuf:"varint,52,opt,name=bad_packet_version,json=badPacketVersion" json:"bad_packet_version,omitempty"` + AuthenticationFail *uint64 `protobuf:"varint,53,opt,name=authentication_fail,json=authenticationFail" json:"authentication_fail,omitempty"` + BadChecksum *uint64 `protobuf:"varint,54,opt,name=bad_checksum,json=badChecksum" json:"bad_checksum,omitempty"` + BadPacketFormat *uint64 `protobuf:"varint,55,opt,name=bad_packet_format,json=badPacketFormat" json:"bad_packet_format,omitempty"` + RecvPktDisabledIntf *uint64 `protobuf:"varint,56,opt,name=recv_pkt_disabled_intf,json=recvPktDisabledIntf" json:"recv_pkt_disabled_intf,omitempty"` + StateTimeout *uint64 `protobuf:"varint,57,opt,name=state_timeout,json=stateTimeout" json:"state_timeout,omitempty"` + MessageOutOfOrder *uint64 `protobuf:"varint,58,opt,name=message_out_of_order,json=messageOutOfOrder" json:"message_out_of_order,omitempty"` + UnknownAck *uint64 `protobuf:"varint,59,opt,name=unknown_ack,json=unknownAck" json:"unknown_ack,omitempty"` + UnknownNack *uint64 `protobuf:"varint,60,opt,name=unknown_nack,json=unknownNack" json:"unknown_nack,omitempty"` + ReceivedNack *uint64 `protobuf:"varint,61,opt,name=received_nack,json=receivedNack" json:"received_nack,omitempty"` + SendFailure *uint64 `protobuf:"varint,62,opt,name=send_failure,json=sendFailure" json:"send_failure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 2, 3, 1} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetBadPacketLength() uint64 { + if m != nil && m.BadPacketLength != nil { + return *m.BadPacketLength + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetBadPacketVersion() uint64 { + if m != nil && m.BadPacketVersion != nil { + return *m.BadPacketVersion + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetAuthenticationFail() uint64 { + if m != nil && m.AuthenticationFail != nil { + return *m.AuthenticationFail + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetBadChecksum() uint64 { + if m != nil && m.BadChecksum != nil { + return *m.BadChecksum + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetBadPacketFormat() uint64 { + if m != nil && m.BadPacketFormat != nil { + return *m.BadPacketFormat + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetRecvPktDisabledIntf() uint64 { + if m != nil && m.RecvPktDisabledIntf != nil { + return *m.RecvPktDisabledIntf + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetStateTimeout() uint64 { + if m != nil && m.StateTimeout != nil { + return *m.StateTimeout + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetMessageOutOfOrder() uint64 { + if m != nil && m.MessageOutOfOrder != nil { + return *m.MessageOutOfOrder + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetUnknownAck() uint64 { + if m != nil && m.UnknownAck != nil { + return *m.UnknownAck + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetUnknownNack() uint64 { + if m != nil && m.UnknownNack != nil { + return *m.UnknownNack + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetReceivedNack() uint64 { + if m != nil && m.ReceivedNack != nil { + return *m.ReceivedNack + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) GetSendFailure() uint64 { + if m != nil && m.SendFailure != nil { + return *m.SendFailure + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType struct { + Interface []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) GetInterface() []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + BandwidthReservations *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType `protobuf:"bytes,153,opt,name=bandwidth_reservations,json=bandwidthReservations" json:"bandwidth_reservations,omitempty"` + Hellos *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType `protobuf:"bytes,154,opt,name=hellos" json:"hellos,omitempty"` + Authentication *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType `protobuf:"bytes,155,opt,name=authentication" json:"authentication,omitempty"` + Subscription *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType `protobuf:"bytes,156,opt,name=subscription" json:"subscription,omitempty"` + Protection *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType `protobuf:"bytes,157,opt,name=protection" json:"protection,omitempty"` + AdminStatus *string `protobuf:"bytes,52,opt,name=admin_status,json=adminStatus" json:"admin_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetInterfaceRef() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetBandwidthReservations() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType { + if m != nil { + return m.BandwidthReservations + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetHellos() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType { + if m != nil { + return m.Hellos + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetAuthentication() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType { + if m != nil { + return m.Authentication + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetSubscription() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType { + if m != nil { + return m.Subscription + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetProtection() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType { + if m != nil { + return m.Protection + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) GetAdminStatus() string { + if m != nil && m.AdminStatus != nil { + return *m.AdminStatus + } + return "" +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + Counters *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + ErrorCounters *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType `protobuf:"bytes,152,opt,name=error_counters,json=errorCounters" json:"error_counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) GetCounters() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) GetErrorCounters() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType { + if m != nil { + return m.ErrorCounters + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType struct { + InPathMessages *uint64 `protobuf:"varint,51,opt,name=in_path_messages,json=inPathMessages" json:"in_path_messages,omitempty"` + InPathErrorMessages *uint64 `protobuf:"varint,52,opt,name=in_path_error_messages,json=inPathErrorMessages" json:"in_path_error_messages,omitempty"` + InPathTearMessages *uint64 `protobuf:"varint,53,opt,name=in_path_tear_messages,json=inPathTearMessages" json:"in_path_tear_messages,omitempty"` + InReservationMessages *uint64 `protobuf:"varint,54,opt,name=in_reservation_messages,json=inReservationMessages" json:"in_reservation_messages,omitempty"` + InReservationErrorMessages *uint64 `protobuf:"varint,55,opt,name=in_reservation_error_messages,json=inReservationErrorMessages" json:"in_reservation_error_messages,omitempty"` + InReservationTearMessages *uint64 `protobuf:"varint,56,opt,name=in_reservation_tear_messages,json=inReservationTearMessages" json:"in_reservation_tear_messages,omitempty"` + InHelloMessages *uint64 `protobuf:"varint,57,opt,name=in_hello_messages,json=inHelloMessages" json:"in_hello_messages,omitempty"` + InSrefreshMessages *uint64 `protobuf:"varint,58,opt,name=in_srefresh_messages,json=inSrefreshMessages" json:"in_srefresh_messages,omitempty"` + InAckMessages *uint64 `protobuf:"varint,59,opt,name=in_ack_messages,json=inAckMessages" json:"in_ack_messages,omitempty"` + OutPathMessages *uint64 `protobuf:"varint,60,opt,name=out_path_messages,json=outPathMessages" json:"out_path_messages,omitempty"` + OutPathErrorMessages *uint64 `protobuf:"varint,61,opt,name=out_path_error_messages,json=outPathErrorMessages" json:"out_path_error_messages,omitempty"` + OutPathTearMessages *uint64 `protobuf:"varint,62,opt,name=out_path_tear_messages,json=outPathTearMessages" json:"out_path_tear_messages,omitempty"` + OutReservationMessages *uint64 `protobuf:"varint,63,opt,name=out_reservation_messages,json=outReservationMessages" json:"out_reservation_messages,omitempty"` + OutReservationErrorMessages *uint64 `protobuf:"varint,64,opt,name=out_reservation_error_messages,json=outReservationErrorMessages" json:"out_reservation_error_messages,omitempty"` + OutReservationTearMessages *uint64 `protobuf:"varint,65,opt,name=out_reservation_tear_messages,json=outReservationTearMessages" json:"out_reservation_tear_messages,omitempty"` + OutHelloMessages *uint64 `protobuf:"varint,66,opt,name=out_hello_messages,json=outHelloMessages" json:"out_hello_messages,omitempty"` + OutSrefreshMessages *uint64 `protobuf:"varint,67,opt,name=out_srefresh_messages,json=outSrefreshMessages" json:"out_srefresh_messages,omitempty"` + OutAckMessages *uint64 `protobuf:"varint,68,opt,name=out_ack_messages,json=outAckMessages" json:"out_ack_messages,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInPathMessages() uint64 { + if m != nil && m.InPathMessages != nil { + return *m.InPathMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInPathErrorMessages() uint64 { + if m != nil && m.InPathErrorMessages != nil { + return *m.InPathErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInPathTearMessages() uint64 { + if m != nil && m.InPathTearMessages != nil { + return *m.InPathTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInReservationMessages() uint64 { + if m != nil && m.InReservationMessages != nil { + return *m.InReservationMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInReservationErrorMessages() uint64 { + if m != nil && m.InReservationErrorMessages != nil { + return *m.InReservationErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInReservationTearMessages() uint64 { + if m != nil && m.InReservationTearMessages != nil { + return *m.InReservationTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInHelloMessages() uint64 { + if m != nil && m.InHelloMessages != nil { + return *m.InHelloMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInSrefreshMessages() uint64 { + if m != nil && m.InSrefreshMessages != nil { + return *m.InSrefreshMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetInAckMessages() uint64 { + if m != nil && m.InAckMessages != nil { + return *m.InAckMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutPathMessages() uint64 { + if m != nil && m.OutPathMessages != nil { + return *m.OutPathMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutPathErrorMessages() uint64 { + if m != nil && m.OutPathErrorMessages != nil { + return *m.OutPathErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutPathTearMessages() uint64 { + if m != nil && m.OutPathTearMessages != nil { + return *m.OutPathTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutReservationMessages() uint64 { + if m != nil && m.OutReservationMessages != nil { + return *m.OutReservationMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutReservationErrorMessages() uint64 { + if m != nil && m.OutReservationErrorMessages != nil { + return *m.OutReservationErrorMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutReservationTearMessages() uint64 { + if m != nil && m.OutReservationTearMessages != nil { + return *m.OutReservationTearMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutHelloMessages() uint64 { + if m != nil && m.OutHelloMessages != nil { + return *m.OutHelloMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutSrefreshMessages() uint64 { + if m != nil && m.OutSrefreshMessages != nil { + return *m.OutSrefreshMessages + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) GetOutAckMessages() uint64 { + if m != nil && m.OutAckMessages != nil { + return *m.OutAckMessages + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType struct { + BadPacketLength *uint64 `protobuf:"varint,51,opt,name=bad_packet_length,json=badPacketLength" json:"bad_packet_length,omitempty"` + BadPacketVersion *uint64 `protobuf:"varint,52,opt,name=bad_packet_version,json=badPacketVersion" json:"bad_packet_version,omitempty"` + AuthenticationFail *uint64 `protobuf:"varint,53,opt,name=authentication_fail,json=authenticationFail" json:"authentication_fail,omitempty"` + BadChecksum *uint64 `protobuf:"varint,54,opt,name=bad_checksum,json=badChecksum" json:"bad_checksum,omitempty"` + BadPacketFormat *uint64 `protobuf:"varint,55,opt,name=bad_packet_format,json=badPacketFormat" json:"bad_packet_format,omitempty"` + RecvPktDisabledIntf *uint64 `protobuf:"varint,56,opt,name=recv_pkt_disabled_intf,json=recvPktDisabledIntf" json:"recv_pkt_disabled_intf,omitempty"` + StateTimeout *uint64 `protobuf:"varint,57,opt,name=state_timeout,json=stateTimeout" json:"state_timeout,omitempty"` + MessageOutOfOrder *uint64 `protobuf:"varint,58,opt,name=message_out_of_order,json=messageOutOfOrder" json:"message_out_of_order,omitempty"` + UnknownAck *uint64 `protobuf:"varint,59,opt,name=unknown_ack,json=unknownAck" json:"unknown_ack,omitempty"` + UnknownNack *uint64 `protobuf:"varint,60,opt,name=unknown_nack,json=unknownNack" json:"unknown_nack,omitempty"` + ReceivedNack *uint64 `protobuf:"varint,61,opt,name=received_nack,json=receivedNack" json:"received_nack,omitempty"` + SendFailure *uint64 `protobuf:"varint,62,opt,name=send_failure,json=sendFailure" json:"send_failure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 0, 1} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetBadPacketLength() uint64 { + if m != nil && m.BadPacketLength != nil { + return *m.BadPacketLength + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetBadPacketVersion() uint64 { + if m != nil && m.BadPacketVersion != nil { + return *m.BadPacketVersion + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetAuthenticationFail() uint64 { + if m != nil && m.AuthenticationFail != nil { + return *m.AuthenticationFail + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetBadChecksum() uint64 { + if m != nil && m.BadChecksum != nil { + return *m.BadChecksum + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetBadPacketFormat() uint64 { + if m != nil && m.BadPacketFormat != nil { + return *m.BadPacketFormat + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetRecvPktDisabledIntf() uint64 { + if m != nil && m.RecvPktDisabledIntf != nil { + return *m.RecvPktDisabledIntf + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetStateTimeout() uint64 { + if m != nil && m.StateTimeout != nil { + return *m.StateTimeout + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetMessageOutOfOrder() uint64 { + if m != nil && m.MessageOutOfOrder != nil { + return *m.MessageOutOfOrder + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetUnknownAck() uint64 { + if m != nil && m.UnknownAck != nil { + return *m.UnknownAck + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetUnknownNack() uint64 { + if m != nil && m.UnknownNack != nil { + return *m.UnknownNack + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetReceivedNack() uint64 { + if m != nil && m.ReceivedNack != nil { + return *m.ReceivedNack + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) GetSendFailure() uint64 { + if m != nil && m.SendFailure != nil { + return *m.SendFailure + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 1} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 1, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType struct { + BandwidthReservation []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList `protobuf:"bytes,151,rep,name=bandwidth_reservation,json=bandwidthReservation" json:"bandwidth_reservation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 2} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) GetBandwidthReservation() []*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList { + if m != nil { + return m.BandwidthReservation + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList struct { + Priority *string `protobuf:"bytes,51,opt,name=priority" json:"priority,omitempty"` + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 2, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) GetPriority() string { + if m != nil && m.Priority != nil { + return *m.Priority + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType struct { + Priority *string `protobuf:"bytes,51,opt,name=priority" json:"priority,omitempty"` + AvailableBandwidth *uint64 `protobuf:"varint,52,opt,name=available_bandwidth,json=availableBandwidth" json:"available_bandwidth,omitempty"` + ReservedBandwidth *uint64 `protobuf:"varint,53,opt,name=reserved_bandwidth,json=reservedBandwidth" json:"reserved_bandwidth,omitempty"` + ActiveReservationsCount *uint64 `protobuf:"varint,54,opt,name=active_reservations_count,json=activeReservationsCount" json:"active_reservations_count,omitempty"` + HighwaterMark *uint64 `protobuf:"varint,55,opt,name=highwater_mark,json=highwaterMark" json:"highwater_mark,omitempty"` + StaticBandwidth *uint64 `protobuf:"varint,61,opt,name=static_bandwidth,json=staticBandwidth" json:"static_bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 2, 0, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) GetPriority() string { + if m != nil && m.Priority != nil { + return *m.Priority + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) GetAvailableBandwidth() uint64 { + if m != nil && m.AvailableBandwidth != nil { + return *m.AvailableBandwidth + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) GetReservedBandwidth() uint64 { + if m != nil && m.ReservedBandwidth != nil { + return *m.ReservedBandwidth + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) GetActiveReservationsCount() uint64 { + if m != nil && m.ActiveReservationsCount != nil { + return *m.ActiveReservationsCount + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) GetHighwaterMark() uint64 { + if m != nil && m.HighwaterMark != nil { + return *m.HighwaterMark + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) GetStaticBandwidth() uint64 { + if m != nil && m.StaticBandwidth != nil { + return *m.StaticBandwidth + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 3} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType struct { + HelloInterval *uint32 `protobuf:"varint,51,opt,name=hello_interval,json=helloInterval" json:"hello_interval,omitempty"` + RefreshReduction *bool `protobuf:"varint,52,opt,name=refresh_reduction,json=refreshReduction" json:"refresh_reduction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 3, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) GetHelloInterval() uint32 { + if m != nil && m.HelloInterval != nil { + return *m.HelloInterval + } + return 0 +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) GetRefreshReduction() bool { + if m != nil && m.RefreshReduction != nil { + return *m.RefreshReduction + } + return false +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 4} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType struct { + Enable *bool `protobuf:"varint,51,opt,name=enable" json:"enable,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 4, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) GetEnable() bool { + if m != nil && m.Enable != nil { + return *m.Enable + } + return false +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 5} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType struct { + Subscription *uint32 `protobuf:"varint,51,opt,name=subscription" json:"subscription,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 5, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) GetSubscription() uint32 { + if m != nil && m.Subscription != nil { + return *m.Subscription + } + return 0 +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType struct { + State *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 6} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) GetState() *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType struct { + LinkProtectionStyleRequested *string `protobuf:"bytes,51,opt,name=link_protection_style_requested,json=linkProtectionStyleRequested" json:"link_protection_style_requested,omitempty"` + BypassOptimizeInterval *uint32 `protobuf:"varint,52,opt,name=bypass_optimize_interval,json=bypassOptimizeInterval" json:"bypass_optimize_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) Reset() { + *m = NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType{} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_b08ea7d8b2450f76, []int{0, 0, 0, 0, 0, 3, 0, 6, 0} +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) GetLinkProtectionStyleRequested() string { + if m != nil && m.LinkProtectionStyleRequested != nil { + return *m.LinkProtectionStyleRequested + } + return "" +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) GetBypassOptimizeInterval() uint32 { + if m != nil && m.BypassOptimizeInterval != nil { + return *m.BypassOptimizeInterval + } + return 0 +} + +var E_JnprNetworkInstancesRsvpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesRsvp)(nil), + Field: 68, + Name: "jnpr_network_instances_rsvp_ext", + Tag: "bytes,68,opt,name=jnpr_network_instances_rsvp_ext", + Filename: "rpd_rsvp_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesRsvp)(nil), "network_instances_rsvp") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceList)(nil), "network_instances_rsvp.network_instance_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.record_route_objects_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.record_route_objects_type.record_route_object_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.record_route_objects_type.record_route_object_list.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.state_type.sender_tspec_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.explicit_route_objects_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.explicit_route_objects_type.explicit_route_object_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.sessions_type.session_list.explicit_route_objects_type.explicit_route_object_list.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.neighbors_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.neighbors_type.neighbor_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.neighbors_type.neighbor_list.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.graceful_restart_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.graceful_restart_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.soft_preemption_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.soft_preemption_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.hellos_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.hellos_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.state_type.counters_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.global_type.state_type.error_counters_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.state_type.counters_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.state_type.error_counters_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.interface_ref_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.interface_ref_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.bandwidth_reservations_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.bandwidth_reservations_type.bandwidth_reservation_list") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.bandwidth_reservations_type.bandwidth_reservation_list.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.hellos_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.hellos_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.authentication_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.authentication_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.subscription_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.subscription_type.state_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.protection_type") + proto.RegisterType((*NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType)(nil), "network_instances_rsvp.network_instance_list.mpls_type.signaling_protocols_type.rsvp_te_type.interface_attributes_type.interface_list.protection_type.state_type") + proto.RegisterExtension(E_JnprNetworkInstancesRsvpExt) +} + +func init() { proto.RegisterFile("rpd_rsvp_oc.proto", fileDescriptor_b08ea7d8b2450f76) } + +var fileDescriptor_b08ea7d8b2450f76 = []byte{ + // 2870 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x5b, 0x6c, 0x1d, 0x47, + 0x19, 0xd6, 0xba, 0x8e, 0xe3, 0xfc, 0xf6, 0xf1, 0x65, 0x7c, 0xc9, 0xf1, 0xba, 0x4d, 0x9a, 0xd2, + 0x16, 0x03, 0xcd, 0x71, 0x9b, 0xa4, 0x49, 0x9a, 0x5e, 0x9d, 0x1b, 0x18, 0xa5, 0x89, 0x75, 0x12, + 0x81, 0x40, 0xa0, 0xed, 0x9c, 0xdd, 0x39, 0xe7, 0x8c, 0xcf, 0x9e, 0xdd, 0x65, 0x67, 0x8e, 0x13, + 0xf7, 0x01, 0x50, 0x0b, 0x55, 0x69, 0x05, 0x12, 0x94, 0xb6, 0xe9, 0x4d, 0xd0, 0x96, 0x72, 0x0b, + 0x12, 0xe2, 0x01, 0x54, 0x5a, 0x82, 0x78, 0xa8, 0x50, 0x91, 0x50, 0x85, 0x2a, 0xf1, 0x84, 0x2a, + 0x55, 0x95, 0x10, 0xbc, 0xf1, 0xd2, 0xb7, 0x4a, 0x15, 0x9a, 0xcb, 0x5e, 0xbd, 0xae, 0x62, 0xa7, + 0xb1, 0x4f, 0xa4, 0xbe, 0x79, 0xff, 0xcb, 0xcc, 0x37, 0xff, 0xcc, 0x7c, 0x33, 0xdf, 0xee, 0x31, + 0x8c, 0x86, 0x81, 0x63, 0x85, 0x6c, 0x29, 0xb0, 0x7c, 0xbb, 0x12, 0x84, 0x3e, 0xf7, 0xcd, 0x31, + 0x4e, 0x5c, 0xd2, 0x26, 0x3c, 0x5c, 0xb6, 0xb8, 0x1f, 0x28, 0xe3, 0x0d, 0xef, 0xbb, 0x30, 0xe9, + 0x11, 0x7e, 0xd6, 0x0f, 0x5b, 0x16, 0xf5, 0x18, 0xc7, 0x9e, 0x4d, 0x98, 0x4c, 0x44, 0x5f, 0x81, + 0x91, 0xbc, 0xa7, 0xfc, 0xb4, 0x71, 0xfd, 0x35, 0x33, 0x03, 0x7b, 0x76, 0x57, 0x8a, 0x73, 0x56, + 0x98, 0x2d, 0x97, 0x32, 0x5e, 0x1d, 0xd6, 0xe6, 0x79, 0x6d, 0x35, 0x3f, 0x6c, 0xc1, 0x44, 0x61, + 0x28, 0x9a, 0x82, 0x5e, 0x0f, 0xb7, 0x49, 0x79, 0xef, 0xf5, 0xc6, 0xcc, 0xb6, 0xc3, 0x5b, 0x1e, + 0xba, 0xaf, 0xa7, 0xdf, 0xa8, 0x4a, 0x13, 0x3a, 0x01, 0xbd, 0xed, 0xc0, 0x65, 0x02, 0x83, 0x31, + 0x33, 0xb0, 0xe7, 0xc0, 0x9a, 0x30, 0x54, 0x44, 0xaa, 0xc5, 0x97, 0x03, 0x52, 0x95, 0xad, 0x98, + 0x1f, 0x2c, 0xc2, 0xb6, 0xd8, 0x86, 0x1e, 0x32, 0x60, 0x8c, 0xd1, 0x86, 0x87, 0x5d, 0xea, 0x35, + 0x2c, 0x59, 0x1a, 0xdb, 0x4f, 0xfa, 0x5a, 0x58, 0x67, 0x5f, 0x95, 0x82, 0x36, 0x15, 0x08, 0x14, + 0x7b, 0x16, 0x22, 0x87, 0xf9, 0x5f, 0x0a, 0xe5, 0xd5, 0x12, 0xd0, 0x59, 0xd8, 0x2a, 0xa7, 0x93, + 0x93, 0x08, 0xd4, 0xd7, 0x3f, 0x6e, 0x50, 0x15, 0xdd, 0x81, 0x42, 0xd8, 0x27, 0x9e, 0xce, 0x10, + 0xf3, 0xed, 0x26, 0x0c, 0xa6, 0x1d, 0xe8, 0x51, 0x03, 0xfa, 0x19, 0x61, 0x8c, 0xfa, 0x5e, 0x5c, + 0xa0, 0xd6, 0x15, 0xc5, 0x52, 0x89, 0xba, 0x53, 0xc8, 0xe2, 0xde, 0xd1, 0xe3, 0x06, 0x6c, 0xf3, + 0x08, 0x6d, 0x34, 0x6b, 0x7e, 0xc8, 0xca, 0xe7, 0x15, 0x16, 0xf7, 0xca, 0x62, 0x89, 0xfb, 0x53, + 0x60, 0x92, 0xfe, 0xc5, 0x22, 0xea, 0x6b, 0xb8, 0x7e, 0x0d, 0xbb, 0xe5, 0x67, 0x14, 0x14, 0x7a, + 0x65, 0xa1, 0xa8, 0xce, 0xf4, 0x74, 0xa9, 0x07, 0x74, 0xc1, 0x80, 0x71, 0xea, 0x71, 0x12, 0xd6, + 0xb1, 0x4d, 0x2c, 0xcc, 0x79, 0x48, 0x6b, 0x1d, 0x4e, 0x58, 0xf9, 0x59, 0x05, 0xe9, 0xec, 0x95, + 0x85, 0x54, 0xd4, 0xb5, 0x02, 0x38, 0x16, 0xbb, 0xe6, 0x62, 0x8f, 0xf9, 0xfc, 0x24, 0x94, 0x32, + 0x93, 0x8b, 0x9e, 0x30, 0x60, 0xab, 0xb6, 0x44, 0x6c, 0x73, 0x6e, 0x03, 0x17, 0x57, 0xf4, 0xa4, + 0x88, 0x2b, 0x42, 0x62, 0xbe, 0x3f, 0x0e, 0x83, 0x69, 0x0f, 0xba, 0x19, 0x06, 0x5c, 0xdf, 0xc6, + 0xae, 0x45, 0x3d, 0x87, 0x9c, 0x93, 0x74, 0xd5, 0x1b, 0xd1, 0x15, 0x48, 0xcf, 0xbc, 0x70, 0x20, + 0xa4, 0xf9, 0x6c, 0x9f, 0xe0, 0x33, 0x4d, 0x64, 0x13, 0xd0, 0xe7, 0xb2, 0xc0, 0xa2, 0x4e, 0xf9, + 0xf6, 0xeb, 0x8d, 0x99, 0x52, 0x75, 0x8b, 0xcb, 0x82, 0x79, 0x07, 0x95, 0x61, 0x2b, 0xeb, 0xd4, + 0x6c, 0xdf, 0x21, 0xe5, 0xfd, 0x32, 0x3a, 0x7a, 0x44, 0x7f, 0x35, 0x60, 0x3c, 0x24, 0xb6, 0x1f, + 0x3a, 0x56, 0xe8, 0x77, 0x38, 0xb1, 0xfc, 0xda, 0x22, 0xb1, 0x79, 0xbc, 0xfb, 0x7e, 0x64, 0x6c, + 0x56, 0x85, 0x2a, 0x45, 0xb0, 0x34, 0xc3, 0x29, 0x57, 0x55, 0x78, 0x4e, 0x29, 0x07, 0x7a, 0xce, + 0x80, 0x2d, 0x8c, 0x63, 0x4e, 0xa2, 0x0d, 0xf2, 0xf0, 0xe6, 0x21, 0x97, 0x38, 0x14, 0x54, 0x85, + 0x09, 0xfd, 0xdd, 0x80, 0x49, 0x72, 0x2e, 0x70, 0xa9, 0x4d, 0x79, 0xae, 0xd0, 0x9a, 0x5a, 0x7e, + 0xbc, 0x79, 0x70, 0x8b, 0x81, 0x29, 0xfc, 0xe3, 0x91, 0x33, 0x5d, 0x6c, 0xf3, 0x89, 0x2d, 0x30, + 0xb5, 0xea, 0xf4, 0xa0, 0x77, 0x0c, 0x18, 0x2b, 0xf0, 0x46, 0x7b, 0xee, 0x42, 0x17, 0x2e, 0xa9, + 0x22, 0x8f, 0xda, 0xa7, 0xa3, 0x2b, 0xd6, 0x9a, 0xf9, 0xe4, 0x35, 0x50, 0x5e, 0x2d, 0x1e, 0x4d, + 0xc3, 0x96, 0x64, 0xdf, 0x96, 0xa2, 0x7d, 0xab, 0x6c, 0xe8, 0xad, 0x78, 0x91, 0xea, 0xed, 0xf5, + 0x87, 0xab, 0xa9, 0x16, 0x2b, 0xd7, 0xb5, 0xf9, 0x98, 0x01, 0x90, 0x58, 0xd1, 0x78, 0x66, 0xf0, + 0xd1, 0xa8, 0xcb, 0xb0, 0x15, 0x3b, 0x4e, 0x48, 0x18, 0xd3, 0x5c, 0x15, 0x3d, 0xa2, 0x9b, 0x60, + 0x28, 0x24, 0x81, 0x1f, 0x72, 0xe2, 0x58, 0x2e, 0xae, 0x11, 0x57, 0xd2, 0xd6, 0xb6, 0x6a, 0x29, + 0xb2, 0x9e, 0x10, 0xc6, 0x4c, 0x58, 0xdd, 0xc5, 0x0d, 0x26, 0x59, 0xac, 0x94, 0x84, 0x1d, 0x17, + 0x46, 0xf3, 0xd5, 0x2d, 0x19, 0x30, 0x3b, 0x0b, 0x78, 0x34, 0x43, 0xa0, 0x37, 0xc1, 0x10, 0xf3, + 0x3b, 0xa1, 0x38, 0x50, 0x32, 0xf0, 0x4a, 0xca, 0x3a, 0xa7, 0x41, 0xce, 0xc2, 0x98, 0x43, 0x18, + 0xa7, 0x1e, 0xe6, 0xa2, 0x78, 0x51, 0xac, 0x42, 0x8a, 0x52, 0xae, 0x28, 0x61, 0x1a, 0xb6, 0xf1, + 0x8e, 0xe7, 0x11, 0x57, 0xf0, 0xb0, 0x42, 0xda, 0xaf, 0x0c, 0xf3, 0x4e, 0x8a, 0xa1, 0x0f, 0xa4, + 0x19, 0x7a, 0x57, 0x72, 0x08, 0x48, 0x52, 0x3f, 0x28, 0x5b, 0x1f, 0xd0, 0xb6, 0x93, 0x82, 0xdb, + 0x27, 0xa1, 0x4f, 0x8c, 0xae, 0xc3, 0xca, 0x77, 0x48, 0xa7, 0x7e, 0x12, 0xe7, 0x80, 0x18, 0x6f, + 0xf9, 0x4e, 0x75, 0x0e, 0xc8, 0xb1, 0xdf, 0x06, 0xe3, 0x62, 0x59, 0x10, 0x5b, 0x42, 0x0e, 0xc9, + 0x37, 0x3a, 0x84, 0x71, 0xe2, 0x94, 0x0f, 0xc9, 0x98, 0xb1, 0xc4, 0x57, 0x8d, 0x5c, 0x68, 0x0a, + 0xfa, 0xe5, 0x14, 0x58, 0xd4, 0x2b, 0xdf, 0xa5, 0xa6, 0x49, 0x3e, 0xcf, 0x7b, 0x62, 0x40, 0xca, + 0xe5, 0x77, 0x78, 0xf9, 0x6e, 0xe9, 0x53, 0xb1, 0xa7, 0x3a, 0x1c, 0xbd, 0x66, 0x08, 0xe8, 0x9e, + 0x43, 0x42, 0x8b, 0xb3, 0x80, 0xd8, 0xd1, 0xd2, 0x7e, 0xb2, 0x1b, 0xf8, 0xb7, 0x92, 0x46, 0xa6, + 0x56, 0xee, 0x80, 0x32, 0x9d, 0x11, 0x16, 0xf4, 0x29, 0x28, 0x79, 0x3e, 0xa7, 0xf5, 0x65, 0x4b, + 0x97, 0xf6, 0x1e, 0x39, 0xba, 0x41, 0x65, 0x3c, 0x2d, 0x6d, 0x26, 0x86, 0xd1, 0x15, 0xcd, 0x88, + 0xaa, 0x87, 0x62, 0x23, 0xef, 0x55, 0x55, 0x17, 0x7f, 0x0b, 0x1b, 0xa3, 0x0f, 0xc6, 0x27, 0xb2, + 0xf8, 0x1b, 0xdd, 0x08, 0x43, 0x01, 0xc1, 0x2d, 0xcb, 0xc1, 0x1c, 0x5b, 0x32, 0x43, 0x2d, 0x9c, + 0x41, 0x61, 0x3d, 0x8a, 0x39, 0xae, 0x8a, 0x7d, 0xf4, 0xbf, 0x5e, 0x98, 0xfe, 0x08, 0x1a, 0x46, + 0xff, 0x36, 0x60, 0xa2, 0xd0, 0x1f, 0x91, 0xea, 0x6f, 0xbb, 0xf2, 0xf8, 0x28, 0xf6, 0x29, 0x62, + 0x1d, 0x2b, 0x38, 0x59, 0xcc, 0xff, 0xf4, 0x80, 0xb9, 0x7a, 0x4e, 0x42, 0xae, 0xfb, 0x0a, 0xc8, + 0xf5, 0xed, 0x3c, 0xb9, 0xbe, 0x76, 0xb5, 0xd5, 0xa4, 0x80, 0x60, 0xbf, 0x7c, 0x59, 0xfc, 0x3a, + 0x05, 0xfd, 0x4d, 0x3f, 0x90, 0xb9, 0x7a, 0xd9, 0x6d, 0x6d, 0xfa, 0xc1, 0x99, 0xe5, 0x80, 0x98, + 0x17, 0x7a, 0x61, 0x28, 0xab, 0x37, 0xd0, 0xd3, 0x06, 0xf4, 0x47, 0xa6, 0x68, 0x5d, 0x3d, 0xb8, + 0x91, 0x8a, 0x27, 0x7e, 0x54, 0x2b, 0x24, 0x06, 0x63, 0x7e, 0xd8, 0x03, 0xa5, 0x8c, 0x0f, 0xed, + 0x4c, 0xc6, 0x9c, 0xd1, 0xf3, 0xf1, 0xd0, 0x5f, 0xc8, 0xaf, 0x86, 0xef, 0x1a, 0x9b, 0x37, 0x94, + 0x82, 0x89, 0xbd, 0x90, 0x3d, 0x39, 0xcb, 0xb9, 0xf1, 0x24, 0x03, 0xd9, 0x0d, 0xc8, 0x21, 0x82, + 0xad, 0x89, 0x63, 0xc5, 0x3a, 0x47, 0x4f, 0xf4, 0x68, 0xe4, 0x99, 0x8f, 0x1c, 0xe8, 0xd3, 0x30, + 0x1c, 0x77, 0xad, 0x39, 0x4d, 0xcd, 0x7c, 0x3c, 0xdb, 0x8a, 0xd5, 0xd0, 0xe7, 0x60, 0x34, 0x24, + 0xf5, 0x90, 0xb0, 0xa6, 0x15, 0x12, 0xa7, 0x23, 0x4f, 0x03, 0x79, 0x5a, 0xf5, 0x57, 0x47, 0xb4, + 0xa3, 0x1a, 0xd9, 0xcd, 0x17, 0xa7, 0x61, 0x20, 0x25, 0x09, 0x85, 0x14, 0x1c, 0x69, 0x84, 0xd8, + 0x26, 0xf5, 0x8e, 0x6b, 0x85, 0x84, 0x71, 0x1c, 0xf2, 0xa8, 0xd0, 0xdf, 0xda, 0x30, 0x65, 0x5a, + 0xc9, 0x43, 0x50, 0x15, 0x1e, 0x8e, 0xcc, 0x55, 0x65, 0x45, 0xbf, 0x34, 0x60, 0x98, 0xf9, 0x75, + 0x6e, 0x05, 0x21, 0x21, 0xed, 0x40, 0x8e, 0x54, 0x5f, 0xbb, 0xbf, 0xb9, 0x71, 0x60, 0x73, 0x08, + 0x14, 0xd6, 0x21, 0x61, 0x5d, 0x88, 0x8d, 0xe8, 0x07, 0x06, 0xf4, 0x35, 0x89, 0xeb, 0xfa, 0x2c, + 0xd2, 0x31, 0x9d, 0x8d, 0x43, 0xa8, 0x3a, 0xd6, 0xa2, 0x5f, 0x3d, 0xa0, 0xc7, 0xe3, 0x7d, 0xa4, + 0x55, 0x3e, 0xdf, 0xc0, 0x8a, 0xad, 0xd8, 0x35, 0xbf, 0xee, 0x81, 0x89, 0xc2, 0x49, 0x47, 0x2f, + 0xe5, 0xf7, 0xfb, 0x63, 0xc6, 0x26, 0xaf, 0xc3, 0x02, 0xf8, 0x6e, 0x66, 0xcf, 0x4f, 0x42, 0x1f, + 0xf1, 0x70, 0xcd, 0x55, 0x97, 0x88, 0xfe, 0xaa, 0x7e, 0x12, 0x77, 0xc1, 0xb8, 0x1d, 0xaa, 0x05, + 0x7e, 0xa9, 0x3a, 0xa0, 0x6d, 0x67, 0x68, 0x9b, 0x88, 0x7b, 0x8b, 0xb8, 0xa5, 0x2f, 0x91, 0x70, + 0x59, 0xc5, 0x28, 0xb9, 0x3f, 0x18, 0x19, 0x45, 0x90, 0x79, 0xbe, 0x07, 0xc6, 0x8b, 0x16, 0x1d, + 0x7a, 0x31, 0x5f, 0xab, 0xef, 0x19, 0x9b, 0xbb, 0x0d, 0x0a, 0x4a, 0xf5, 0xb5, 0x4b, 0x2a, 0xd5, + 0x7e, 0xd8, 0xbe, 0xa2, 0x3d, 0xda, 0x26, 0xe2, 0x9e, 0xaa, 0xaa, 0x36, 0x91, 0xdd, 0x5f, 0x67, + 0x94, 0xd3, 0x7c, 0xac, 0x07, 0x06, 0x52, 0xab, 0x1d, 0x9d, 0xcf, 0x57, 0xe4, 0xdb, 0xc6, 0xa6, + 0x6c, 0xbb, 0x82, 0x42, 0x3c, 0x90, 0x29, 0xc4, 0x4d, 0x30, 0x24, 0xc3, 0xd5, 0x51, 0xb0, 0x84, + 0x5d, 0x7d, 0x15, 0x28, 0x49, 0xeb, 0xbc, 0x36, 0x16, 0x93, 0xfb, 0xbe, 0x55, 0xc8, 0xfd, 0x8d, + 0xe1, 0x4c, 0x17, 0x3f, 0x35, 0xa0, 0xdf, 0xf6, 0x3b, 0xa2, 0xa9, 0xf8, 0xed, 0xc4, 0x43, 0xc6, + 0x66, 0xec, 0xfa, 0x4a, 0x04, 0x43, 0xbf, 0x9c, 0x8d, 0x1e, 0xd1, 0xef, 0x0c, 0x18, 0x22, 0x61, + 0xe8, 0x87, 0x56, 0x0c, 0x54, 0xcf, 0xdb, 0xa3, 0x9b, 0x03, 0x34, 0x0b, 0x46, 0xc1, 0x2d, 0x49, + 0xe3, 0x11, 0x6d, 0x33, 0xff, 0xd9, 0x0f, 0xa5, 0x4c, 0x80, 0xd8, 0xc4, 0x01, 0xe6, 0xcd, 0x68, + 0xc5, 0x32, 0x2d, 0x51, 0x07, 0x85, 0x51, 0x2f, 0x54, 0x26, 0x94, 0x5c, 0x48, 0x98, 0x98, 0xd5, + 0xf4, 0xea, 0x56, 0x37, 0xbd, 0xde, 0xea, 0x58, 0xca, 0x17, 0xa7, 0xec, 0x81, 0x09, 0x21, 0x34, + 0x2c, 0x97, 0xb6, 0xa9, 0xb8, 0x35, 0xb4, 0x09, 0x63, 0xb8, 0x41, 0xd4, 0x45, 0x40, 0xe4, 0x60, + 0x4e, 0x4e, 0x28, 0xdf, 0xfd, 0xda, 0x85, 0x66, 0x60, 0x84, 0x7a, 0x96, 0x84, 0x13, 0x87, 0xef, + 0x97, 0xe1, 0x43, 0xd4, 0x5b, 0xc0, 0xbc, 0x19, 0x47, 0xee, 0x85, 0xc9, 0x28, 0x52, 0x8d, 0x3a, + 0x8e, 0x3f, 0xa0, 0x9a, 0x57, 0xf1, 0xc7, 0x84, 0x2f, 0x4e, 0xba, 0x0d, 0x26, 0xa2, 0x24, 0x4e, + 0x70, 0x2a, 0xe7, 0xa0, 0xcc, 0x41, 0x2a, 0xe7, 0x0c, 0xc1, 0x49, 0xca, 0x7e, 0xd8, 0x4e, 0x85, + 0x74, 0x4d, 0xc6, 0x1e, 0x27, 0xdd, 0x21, 0x93, 0x26, 0xa8, 0x57, 0x4d, 0xbc, 0x71, 0xde, 0x1c, + 0x5c, 0x97, 0xcb, 0xcb, 0xc1, 0x3c, 0x24, 0xb3, 0xcd, 0x4c, 0x76, 0x16, 0xed, 0xbd, 0x70, 0x6d, + 0xae, 0x89, 0x2c, 0xe8, 0x3b, 0x65, 0x0b, 0x53, 0x99, 0x16, 0x32, 0xd8, 0x3f, 0x0b, 0xa3, 0xd4, + 0xb3, 0xd4, 0x46, 0x8d, 0xb3, 0xee, 0x92, 0x59, 0xc3, 0xd4, 0xfb, 0x82, 0xb0, 0xc7, 0xb1, 0xb7, + 0xc2, 0x38, 0xf5, 0x2c, 0x16, 0x6d, 0xd7, 0x38, 0xfc, 0xee, 0xa8, 0x32, 0xa7, 0xb5, 0x2b, 0xce, + 0xb8, 0x19, 0x86, 0xa9, 0x67, 0x61, 0xbb, 0x95, 0x04, 0xdf, 0x23, 0x83, 0x4b, 0xd4, 0x9b, 0xb3, + 0x5b, 0x69, 0x14, 0x7e, 0x87, 0xe7, 0x26, 0xf5, 0x5e, 0x85, 0xc2, 0xef, 0xf0, 0xcc, 0xac, 0xde, + 0x0e, 0xdb, 0xe3, 0xd8, 0x5c, 0xbd, 0xee, 0x93, 0x19, 0xe3, 0x3a, 0x23, 0x5b, 0xa9, 0xbd, 0x30, + 0x19, 0xa7, 0x65, 0x6b, 0x34, 0xa7, 0x16, 0x83, 0xce, 0xca, 0x54, 0xe7, 0x20, 0x94, 0x45, 0x52, + 0xe1, 0xd4, 0x1e, 0x96, 0x69, 0xa2, 0xd1, 0xa2, 0xb9, 0x3d, 0x02, 0x3b, 0xf2, 0x99, 0x39, 0xb0, + 0x47, 0x64, 0xfe, 0x74, 0x36, 0x3f, 0x8b, 0x79, 0x0e, 0xae, 0xcb, 0x37, 0x92, 0x85, 0x7e, 0x54, + 0x2d, 0x90, 0x6c, 0x1b, 0x99, 0x11, 0xdc, 0x02, 0x48, 0x34, 0x91, 0x9b, 0xe0, 0x63, 0x32, 0x6f, + 0xc4, 0xef, 0xf0, 0xec, 0x0c, 0xef, 0x81, 0x09, 0x11, 0xbd, 0x72, 0x8a, 0x8f, 0xc7, 0x35, 0x5a, + 0x31, 0xc7, 0x33, 0x20, 0xda, 0xc9, 0x4e, 0xf2, 0xe7, 0xd5, 0x7e, 0xf4, 0x3b, 0x3c, 0x35, 0xcb, + 0xe6, 0x23, 0xbd, 0x30, 0x56, 0x40, 0x3f, 0x62, 0xf6, 0x6b, 0xd8, 0xb1, 0x02, 0x6c, 0xb7, 0x08, + 0xb7, 0x5c, 0xe2, 0x35, 0x78, 0x53, 0x33, 0xcc, 0x70, 0x0d, 0x3b, 0x0b, 0xd2, 0x7e, 0x42, 0x9a, + 0xc5, 0x78, 0x52, 0xb1, 0x4b, 0x24, 0x64, 0xd1, 0x79, 0xd1, 0x5b, 0x1d, 0x89, 0x83, 0xbf, 0xa4, + 0xec, 0x68, 0x16, 0xc6, 0x70, 0x87, 0x37, 0x89, 0xc7, 0xa9, 0xad, 0xea, 0x57, 0xc7, 0xd4, 0xd5, + 0xec, 0x82, 0xb2, 0xae, 0xe3, 0x98, 0xba, 0xe2, 0x42, 0x23, 0x9a, 0xb7, 0x9b, 0xc4, 0x6e, 0xb1, + 0x4e, 0x5b, 0x13, 0xcb, 0x40, 0x0d, 0x3b, 0x47, 0xb4, 0x29, 0x87, 0xb6, 0xee, 0x87, 0x6d, 0xcc, + 0x35, 0xa1, 0x24, 0x68, 0x8f, 0x4b, 0xb3, 0x58, 0x74, 0x21, 0xb1, 0x97, 0xac, 0xa0, 0xc5, 0x2d, + 0x87, 0x32, 0x71, 0x11, 0x90, 0xd2, 0xa8, 0xae, 0xd9, 0x64, 0x4c, 0x78, 0x17, 0x5a, 0xfc, 0xa8, + 0xf6, 0xcd, 0x7b, 0xbc, 0x2e, 0xc8, 0x56, 0xf3, 0xb5, 0xbe, 0x1f, 0x28, 0x12, 0x19, 0x94, 0x46, + 0x4d, 0x9d, 0x68, 0x16, 0xc6, 0x75, 0xb5, 0x2d, 0x51, 0x7d, 0xbf, 0x6e, 0xf9, 0xa1, 0x43, 0x42, + 0x4d, 0x19, 0xa3, 0xda, 0x77, 0xaa, 0xc3, 0x4f, 0xd5, 0x4f, 0x09, 0x07, 0xda, 0x09, 0x03, 0x1d, + 0xaf, 0xe5, 0xf9, 0x67, 0xe5, 0x7e, 0xd4, 0xc4, 0x00, 0xda, 0x34, 0x67, 0xb7, 0xc4, 0xd0, 0xa3, + 0x00, 0x4f, 0x44, 0x28, 0x12, 0x88, 0x92, 0x4e, 0x62, 0xbb, 0xa5, 0xef, 0x72, 0x84, 0x2e, 0x11, + 0x47, 0xc5, 0xa8, 0x9d, 0x3f, 0x18, 0x19, 0x65, 0xd0, 0x2e, 0xf5, 0x92, 0x4d, 0x56, 0xba, 0x13, + 0x12, 0xbd, 0xe1, 0xe5, 0xbb, 0xac, 0xe3, 0xca, 0x64, 0x7e, 0xa7, 0x02, 0x53, 0xab, 0x7e, 0x23, + 0x43, 0x3f, 0x37, 0x60, 0x5b, 0x22, 0x1f, 0xb5, 0xba, 0x7f, 0xc4, 0xd8, 0xa4, 0x4f, 0x76, 0x29, + 0x8f, 0x94, 0xfa, 0x09, 0x34, 0xf3, 0xe2, 0x2d, 0x30, 0x94, 0xf5, 0xa2, 0x19, 0x18, 0x4c, 0x2c, + 0xd4, 0xc9, 0x2a, 0xfe, 0x81, 0xd8, 0x35, 0xef, 0xa0, 0x5f, 0xe5, 0xef, 0x71, 0x3f, 0xec, 0x92, + 0x11, 0x16, 0x7c, 0x13, 0xfa, 0x8b, 0x01, 0xa5, 0x24, 0x28, 0x24, 0xf5, 0xe8, 0xb2, 0xf5, 0x4c, + 0xb7, 0x60, 0xce, 0xa0, 0x53, 0xd8, 0x93, 0x89, 0xa8, 0x92, 0x3a, 0xfa, 0x97, 0x01, 0x93, 0x35, + 0xec, 0x39, 0x67, 0xa9, 0xc3, 0x9b, 0x69, 0x46, 0x8d, 0xd5, 0xeb, 0x4b, 0xdd, 0x32, 0x96, 0x62, + 0x98, 0x6a, 0x50, 0x13, 0xb1, 0x33, 0x45, 0xf8, 0x0c, 0xfd, 0x26, 0xd1, 0xe2, 0xcf, 0x6e, 0xcc, + 0xd7, 0xd0, 0x4b, 0x1e, 0x4d, 0x91, 0x52, 0x7f, 0xc3, 0x80, 0xa1, 0x2c, 0xf9, 0x96, 0x9f, 0x53, + 0xb0, 0x9f, 0xed, 0x16, 0xd8, 0xb9, 0x63, 0x43, 0xbd, 0x01, 0xc9, 0x1a, 0xd1, 0x9f, 0x0d, 0x18, + 0x64, 0x9d, 0x1a, 0xb3, 0x43, 0xaa, 0xde, 0xd4, 0x3c, 0xaf, 0x06, 0x71, 0xbe, 0x6b, 0x76, 0x72, + 0x0a, 0x9c, 0xde, 0x14, 0x69, 0x13, 0x7a, 0xd5, 0x00, 0x48, 0x3e, 0xb0, 0x94, 0x5f, 0x50, 0xf0, + 0x9f, 0xea, 0x16, 0xf8, 0xa9, 0xef, 0x42, 0x12, 0x7c, 0x0a, 0xab, 0x38, 0x65, 0xb0, 0xd3, 0x16, + 0xd7, 0x51, 0xf5, 0xe6, 0x50, 0xbd, 0x65, 0x1c, 0x90, 0x36, 0xfd, 0x31, 0xe4, 0xc9, 0xac, 0x58, + 0xdc, 0x55, 0x44, 0xcd, 0x59, 0x4e, 0xbe, 0x98, 0xd6, 0x93, 0x9a, 0x96, 0x7f, 0xd2, 0x7d, 0xb4, + 0xbc, 0xaa, 0xd8, 0x7c, 0x6b, 0xa5, 0xd8, 0xd4, 0x44, 0xfd, 0x4a, 0x17, 0x8e, 0xe2, 0x12, 0x94, + 0xe8, 0xdf, 0xb6, 0xe6, 0x95, 0x68, 0x91, 0xfa, 0xdb, 0xbb, 0x46, 0xf5, 0xb7, 0x6f, 0x1d, 0xea, + 0xef, 0xf6, 0xf5, 0xa8, 0xbf, 0xfd, 0x97, 0xa5, 0xfe, 0x0e, 0x5c, 0xb6, 0xfa, 0x3b, 0xb8, 0x2e, + 0xf5, 0x77, 0xc7, 0xda, 0xd4, 0xdf, 0xa1, 0xb5, 0xa8, 0xbf, 0x3b, 0x2f, 0x59, 0xfd, 0xdd, 0xb5, + 0x66, 0xf5, 0x77, 0xf7, 0xba, 0xd4, 0xdf, 0x3d, 0xeb, 0x53, 0x7f, 0xf7, 0x5e, 0xa6, 0xfa, 0xbb, + 0xef, 0x63, 0x50, 0x7f, 0x73, 0xeb, 0x54, 0x7f, 0x87, 0xd7, 0xaa, 0xfe, 0x8e, 0xac, 0x4d, 0xfd, + 0x1d, 0xfd, 0x44, 0xfd, 0x7d, 0xa2, 0xfe, 0x56, 0x57, 0x7f, 0x2f, 0xf7, 0x00, 0x5a, 0x79, 0x5f, + 0x47, 0x7f, 0xca, 0x0b, 0xa2, 0x9f, 0x75, 0xaf, 0xb8, 0x28, 0x78, 0xf9, 0x7d, 0x32, 0x73, 0xd9, + 0xb8, 0x36, 0x2d, 0x61, 0xd5, 0x4d, 0x23, 0x31, 0xa0, 0x1b, 0xe4, 0xbd, 0x31, 0xfb, 0x89, 0xb4, + 0x54, 0xcd, 0xd8, 0xcc, 0xb7, 0xfb, 0x60, 0xfa, 0x23, 0x94, 0x00, 0x7a, 0xdf, 0x80, 0x89, 0x42, + 0x7f, 0xa4, 0x98, 0x2f, 0x5e, 0x05, 0x7a, 0xa6, 0xd8, 0xa7, 0x84, 0xf6, 0x78, 0x91, 0xd4, 0x31, + 0x5f, 0xef, 0x05, 0x73, 0xf5, 0x24, 0xb4, 0x0b, 0xfa, 0x83, 0x90, 0xfa, 0x21, 0xe5, 0xcb, 0x59, + 0xed, 0x1d, 0x9b, 0xd1, 0xbb, 0xf9, 0x75, 0xf6, 0xe6, 0xd5, 0x5d, 0xa8, 0x82, 0xb5, 0xf8, 0x54, + 0x4f, 0x66, 0x31, 0x9a, 0xf9, 0xa2, 0xa4, 0xaa, 0x21, 0x38, 0x72, 0x09, 0x53, 0x57, 0x10, 0x90, + 0x15, 0x77, 0xa2, 0x29, 0x15, 0xc5, 0xae, 0xc3, 0x91, 0x07, 0xed, 0x06, 0xa4, 0x10, 0x10, 0x27, + 0x15, 0xaf, 0x38, 0x75, 0x34, 0xf2, 0x24, 0xe1, 0x87, 0x60, 0x0a, 0xdb, 0x9c, 0x2e, 0x91, 0xec, + 0x98, 0xe4, 0x11, 0xa0, 0xf9, 0x75, 0xbb, 0x0a, 0x48, 0x0b, 0x5a, 0x79, 0x01, 0x94, 0x5f, 0x90, + 0x68, 0xa3, 0x79, 0x16, 0x73, 0x12, 0x5a, 0x6d, 0x1c, 0xb6, 0x34, 0xd1, 0x96, 0x62, 0xeb, 0xfd, + 0x38, 0x6c, 0xa1, 0xcf, 0xc0, 0x88, 0x18, 0x2c, 0xb5, 0x53, 0x78, 0x14, 0x35, 0x0d, 0x2b, 0x7b, + 0x8c, 0xc6, 0xfc, 0x45, 0xee, 0x63, 0xda, 0xef, 0xf3, 0x6b, 0xe1, 0x85, 0x2e, 0x94, 0xcd, 0x9b, + 0xf2, 0xa5, 0xed, 0x03, 0x63, 0xc5, 0xe1, 0x29, 0xfb, 0xba, 0x98, 0xaf, 0xd8, 0x2b, 0x5d, 0xac, + 0xd8, 0x0b, 0x2a, 0x77, 0xe3, 0xa5, 0x7c, 0xac, 0x35, 0x1f, 0xee, 0x81, 0xd1, 0x15, 0xe2, 0x19, + 0xbd, 0x9e, 0x1f, 0xfb, 0xcb, 0x5d, 0x2b, 0xf4, 0x0b, 0x46, 0x7e, 0x6b, 0x66, 0xe4, 0x37, 0xe4, + 0x5e, 0x5d, 0xec, 0x8d, 0x8f, 0xa0, 0xd8, 0x66, 0xbe, 0xd3, 0x03, 0xc3, 0x39, 0x0d, 0x8e, 0xfe, + 0x98, 0xaf, 0xc1, 0x8b, 0x5d, 0xfa, 0xb6, 0xa0, 0xa0, 0x02, 0xdf, 0xcf, 0xfe, 0x90, 0xe9, 0x18, + 0xec, 0x74, 0xa9, 0xd7, 0xb2, 0x52, 0x89, 0x8c, 0x2f, 0xbb, 0x24, 0xf5, 0x23, 0x54, 0xc5, 0x96, + 0xd7, 0x8a, 0xb0, 0x85, 0x38, 0xea, 0xb4, 0x08, 0x4a, 0x7e, 0x8d, 0x7a, 0x10, 0xca, 0xb5, 0xe5, + 0x00, 0x33, 0x66, 0xf9, 0x01, 0xa7, 0x6d, 0xfa, 0x20, 0x49, 0xf6, 0xa1, 0x3a, 0xd8, 0x27, 0x95, + 0xff, 0x94, 0x76, 0x47, 0x1b, 0xf2, 0xd0, 0x12, 0xec, 0x5c, 0xf4, 0x82, 0xd0, 0x2a, 0xae, 0x9f, + 0x45, 0xce, 0x71, 0xb4, 0xbd, 0xf2, 0xc5, 0x8e, 0x47, 0x03, 0x12, 0x9e, 0x54, 0x31, 0xec, 0x34, + 0xf1, 0x98, 0x1f, 0xaa, 0x3b, 0xf6, 0xc0, 0x9e, 0xed, 0xab, 0xd4, 0xbe, 0x3a, 0x2d, 0x1a, 0x3e, + 0x99, 0xfd, 0x87, 0x33, 0x56, 0x65, 0x4b, 0xc1, 0xb1, 0x73, 0xfc, 0xf0, 0x03, 0x6f, 0xbe, 0xb7, + 0xc3, 0xf8, 0xc7, 0x7b, 0x3b, 0x8c, 0x77, 0xdf, 0xdb, 0x61, 0x7c, 0xb5, 0xda, 0xa0, 0xbc, 0xb2, + 0xa8, 0x7a, 0x11, 0xcd, 0xcd, 0x52, 0x9b, 0xd4, 0x48, 0xd8, 0x98, 0x6d, 0x12, 0xec, 0xf2, 0x66, + 0xcd, 0xe7, 0xbb, 0xa9, 0xd7, 0x20, 0x8c, 0xef, 0x5e, 0xe4, 0x74, 0xb7, 0x87, 0x05, 0x57, 0xcf, + 0x06, 0xad, 0xc6, 0xec, 0x22, 0xa7, 0xb3, 0xd8, 0xc1, 0x81, 0xb8, 0xca, 0xcf, 0x5a, 0x8b, 0x1d, + 0xcf, 0x67, 0xb3, 0xcc, 0x6e, 0x92, 0x36, 0xfe, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb5, 0xfa, + 0x00, 0x5b, 0x79, 0x37, 0x00, 0x00, +} + +func (m *NetworkInstancesRsvp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mpls != nil { + { + size, err := m.Mpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SignalingProtocols != nil { + { + size, err := m.SignalingProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RsvpTe != nil { + { + size, err := m.RsvpTe.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceAttributes != nil { + { + size, err := m.InterfaceAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Global != nil { + { + size, err := m.Global.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Neighbors != nil { + { + size, err := m.Neighbors.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Sessions != nil { + { + size, err := m.Sessions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Session) > 0 { + for iNdEx := len(m.Session) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Session[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.ExplicitRouteObjects != nil { + { + size, err := m.ExplicitRouteObjects.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.RecordRouteObjects != nil { + { + size, err := m.RecordRouteObjects.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Subcode != nil { + i -= len(*m.Subcode) + copy(dAtA[i:], *m.Subcode) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Subcode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.LspId != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.LspId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.LocalIndex != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.LocalIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RecordRouteObject) > 0 { + for iNdEx := len(m.RecordRouteObject) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RecordRouteObject[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ReportedFlags != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.ReportedFlags)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ReportedLabel != nil { + i -= len(*m.ReportedLabel) + copy(dAtA[i:], *m.ReportedLabel) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.ReportedLabel))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Index != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SenderTspec != nil { + { + size, err := m.SenderTspec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.NotifyStatus != nil { + i -= len(*m.NotifyStatus) + copy(dAtA[i:], *m.NotifyStatus) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.NotifyStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf2 + } + if m.LabelOut != nil { + i -= len(*m.LabelOut) + copy(dAtA[i:], *m.LabelOut) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.LabelOut))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xea + } + if m.LabelIn != nil { + i -= len(*m.LabelIn) + copy(dAtA[i:], *m.LabelIn) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.LabelIn))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xda + } + if m.ProtectionRequested != nil { + i -= len(*m.ProtectionRequested) + copy(dAtA[i:], *m.ProtectionRequested) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.ProtectionRequested))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.Status != nil { + i -= len(*m.Status) + copy(dAtA[i:], *m.Status) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Status))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SessionName != nil { + i -= len(*m.SessionName) + copy(dAtA[i:], *m.SessionName) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.SessionName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.LspId != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.LspId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TunnelId != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.TunnelId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.DestinationAddress != nil { + i -= len(*m.DestinationAddress) + copy(dAtA[i:], *m.DestinationAddress) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.DestinationAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.SourceAddress != nil { + i -= len(*m.SourceAddress) + copy(dAtA[i:], *m.SourceAddress) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.SourceAddress))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.LocalIndex != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.LocalIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PeakDataRate != nil { + i -= len(*m.PeakDataRate) + copy(dAtA[i:], *m.PeakDataRate) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.PeakDataRate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Size_ != nil { + i -= len(*m.Size_) + copy(dAtA[i:], *m.Size_) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Size_))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Rate != nil { + i -= len(*m.Rate) + copy(dAtA[i:], *m.Rate) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Rate))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ExplicitRouteObject) > 0 { + for iNdEx := len(m.ExplicitRouteObject) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExplicitRouteObject[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.HopType != nil { + i -= len(*m.HopType) + copy(dAtA[i:], *m.HopType) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.HopType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Index != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Neighbor) > 0 { + for iNdEx := len(m.Neighbor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Neighbor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RefreshReduction != nil { + i-- + if *m.RefreshReduction { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.NeighborStatus != nil { + i -= len(*m.NeighborStatus) + copy(dAtA[i:], *m.NeighborStatus) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.NeighborStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.DetectedInterface != nil { + i -= len(*m.DetectedInterface) + copy(dAtA[i:], *m.DetectedInterface) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.DetectedInterface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.Hellos != nil { + { + size, err := m.Hellos.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.SoftPreemption != nil { + { + size, err := m.SoftPreemption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.GracefulRestart != nil { + { + size, err := m.GracefulRestart.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RecoveryTime != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.RecoveryTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.RestartTime != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.RestartTime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enable != nil { + i-- + if *m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SoftPreemptionTimeout != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.SoftPreemptionTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enable != nil { + i-- + if *m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RefreshReduction != nil { + i-- + if *m.RefreshReduction { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.HelloInterval != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.ErrorCounters != nil { + { + size, err := m.ErrorCounters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutAckMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutAckMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.OutSrefreshMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutSrefreshMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.OutHelloMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutHelloMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.OutReservationTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutReservationTearMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.OutReservationErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutReservationErrorMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.OutReservationMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutReservationMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.OutPathTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutPathTearMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.OutPathErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutPathErrorMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.OutPathMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutPathMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.InAckMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InAckMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.InSrefreshMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InSrefreshMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.InHelloMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InHelloMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.InReservationTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InReservationTearMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.InReservationErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InReservationErrorMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InReservationMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InReservationMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.InPathTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InPathTearMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InPathErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InPathErrorMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InPathMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InPathMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.RateLimitedMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.RateLimitedMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ReservationTimeouts != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.ReservationTimeouts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PathTimeouts != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.PathTimeouts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SendFailure != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.SendFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.ReceivedNack != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.ReceivedNack)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.UnknownNack != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.UnknownNack)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.UnknownAck != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.UnknownAck)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.MessageOutOfOrder != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.MessageOutOfOrder)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.StateTimeout != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.StateTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.RecvPktDisabledIntf != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.RecvPktDisabledIntf)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.BadPacketFormat != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadPacketFormat)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.BadChecksum != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadChecksum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AuthenticationFail != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.AuthenticationFail)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.BadPacketVersion != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadPacketVersion)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.BadPacketLength != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadPacketLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Protection != nil { + { + size, err := m.Protection.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xea + } + if m.Subscription != nil { + { + size, err := m.Subscription.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xe2 + } + if m.Authentication != nil { + { + size, err := m.Authentication.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xda + } + if m.Hellos != nil { + { + size, err := m.Hellos.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.BandwidthReservations != nil { + { + size, err := m.BandwidthReservations.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AdminStatus != nil { + i -= len(*m.AdminStatus) + copy(dAtA[i:], *m.AdminStatus) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.AdminStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ErrorCounters != nil { + { + size, err := m.ErrorCounters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutAckMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutAckMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.OutSrefreshMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutSrefreshMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.OutHelloMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutHelloMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.OutReservationTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutReservationTearMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.OutReservationErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutReservationErrorMessages)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.OutReservationMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutReservationMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.OutPathTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutPathTearMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.OutPathErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutPathErrorMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutPathMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.OutPathMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.InAckMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InAckMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.InSrefreshMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InSrefreshMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InHelloMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InHelloMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.InReservationTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InReservationTearMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.InReservationErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InReservationErrorMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.InReservationMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InReservationMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InPathTearMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InPathTearMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InPathErrorMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InPathErrorMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InPathMessages != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.InPathMessages)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SendFailure != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.SendFailure)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.ReceivedNack != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.ReceivedNack)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.UnknownNack != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.UnknownNack)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.UnknownAck != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.UnknownAck)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.MessageOutOfOrder != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.MessageOutOfOrder)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.StateTimeout != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.StateTimeout)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.RecvPktDisabledIntf != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.RecvPktDisabledIntf)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.BadPacketFormat != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadPacketFormat)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.BadChecksum != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadChecksum)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.AuthenticationFail != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.AuthenticationFail)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.BadPacketVersion != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadPacketVersion)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.BadPacketLength != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BadPacketLength)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.BandwidthReservation) > 0 { + for iNdEx := len(m.BandwidthReservation) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BandwidthReservation[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Priority != nil { + i -= len(*m.Priority) + copy(dAtA[i:], *m.Priority) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Priority))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.StaticBandwidth != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.StaticBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.HighwaterMark != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.HighwaterMark)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ActiveReservationsCount != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.ActiveReservationsCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ReservedBandwidth != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.ReservedBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.AvailableBandwidth != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.AvailableBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Priority != nil { + i -= len(*m.Priority) + copy(dAtA[i:], *m.Priority) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.Priority))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RefreshReduction != nil { + i-- + if *m.RefreshReduction { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.HelloInterval != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.HelloInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enable != nil { + i-- + if *m.Enable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subscription != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.Subscription)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BypassOptimizeInterval != nil { + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(*m.BypassOptimizeInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LinkProtectionStyleRequested != nil { + i -= len(*m.LinkProtectionStyleRequested) + copy(dAtA[i:], *m.LinkProtectionStyleRequested) + i = encodeVarintRpdRsvpOc(dAtA, i, uint64(len(*m.LinkProtectionStyleRequested))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdRsvpOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdRsvpOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesRsvp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Mpls != nil { + l = m.Mpls.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalingProtocols != nil { + l = m.SignalingProtocols.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RsvpTe != nil { + l = m.RsvpTe.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sessions != nil { + l = m.Sessions.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Neighbors != nil { + l = m.Neighbors.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Global != nil { + l = m.Global.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.InterfaceAttributes != nil { + l = m.InterfaceAttributes.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Session) > 0 { + for _, e := range m.Session { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocalIndex != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.LocalIndex)) + } + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.LspId != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.LspId)) + } + if m.Subcode != nil { + l = len(*m.Subcode) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.RecordRouteObjects != nil { + l = m.RecordRouteObjects.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.ExplicitRouteObjects != nil { + l = m.ExplicitRouteObjects.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RecordRouteObject) > 0 { + for _, e := range m.RecordRouteObject { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.Index)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.ReportedLabel != nil { + l = len(*m.ReportedLabel) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.ReportedFlags != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.ReportedFlags)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocalIndex != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.LocalIndex)) + } + if m.SourceAddress != nil { + l = len(*m.SourceAddress) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.DestinationAddress != nil { + l = len(*m.DestinationAddress) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.TunnelId != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.TunnelId)) + } + if m.LspId != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.LspId)) + } + if m.SessionName != nil { + l = len(*m.SessionName) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Status != nil { + l = len(*m.Status) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.ProtectionRequested != nil { + l = len(*m.ProtectionRequested) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.LabelIn != nil { + l = len(*m.LabelIn) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.LabelOut != nil { + l = len(*m.LabelOut) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.NotifyStatus != nil { + l = len(*m.NotifyStatus) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.SenderTspec != nil { + l = m.SenderTspec.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Rate != nil { + l = len(*m.Rate) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Size_ != nil { + l = len(*m.Size_) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.PeakDataRate != nil { + l = len(*m.PeakDataRate) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExplicitRouteObject) > 0 { + for _, e := range m.ExplicitRouteObject { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.Index)) + } + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.HopType != nil { + l = len(*m.HopType) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Neighbor) > 0 { + for _, e := range m.Neighbor { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.DetectedInterface != nil { + l = len(*m.DetectedInterface) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.NeighborStatus != nil { + l = len(*m.NeighborStatus) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.RefreshReduction != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.GracefulRestart != nil { + l = m.GracefulRestart.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.SoftPreemption != nil { + l = m.SoftPreemption.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Hellos != nil { + l = m.Hellos.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enable != nil { + n += 3 + } + if m.RestartTime != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.RestartTime)) + } + if m.RecoveryTime != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.RecoveryTime)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enable != nil { + n += 3 + } + if m.SoftPreemptionTimeout != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.SoftPreemptionTimeout)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HelloInterval != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.HelloInterval)) + } + if m.RefreshReduction != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ErrorCounters != nil { + l = m.ErrorCounters.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PathTimeouts != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.PathTimeouts)) + } + if m.ReservationTimeouts != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.ReservationTimeouts)) + } + if m.RateLimitedMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.RateLimitedMessages)) + } + if m.InPathMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InPathMessages)) + } + if m.InPathErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InPathErrorMessages)) + } + if m.InPathTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InPathTearMessages)) + } + if m.InReservationMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InReservationMessages)) + } + if m.InReservationErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InReservationErrorMessages)) + } + if m.InReservationTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InReservationTearMessages)) + } + if m.InHelloMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InHelloMessages)) + } + if m.InSrefreshMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InSrefreshMessages)) + } + if m.InAckMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InAckMessages)) + } + if m.OutPathMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutPathMessages)) + } + if m.OutPathErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutPathErrorMessages)) + } + if m.OutPathTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutPathTearMessages)) + } + if m.OutReservationMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutReservationMessages)) + } + if m.OutReservationErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutReservationErrorMessages)) + } + if m.OutReservationTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutReservationTearMessages)) + } + if m.OutHelloMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutHelloMessages)) + } + if m.OutSrefreshMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutSrefreshMessages)) + } + if m.OutAckMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutAckMessages)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BadPacketLength != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadPacketLength)) + } + if m.BadPacketVersion != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadPacketVersion)) + } + if m.AuthenticationFail != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.AuthenticationFail)) + } + if m.BadChecksum != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadChecksum)) + } + if m.BadPacketFormat != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadPacketFormat)) + } + if m.RecvPktDisabledIntf != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.RecvPktDisabledIntf)) + } + if m.StateTimeout != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.StateTimeout)) + } + if m.MessageOutOfOrder != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.MessageOutOfOrder)) + } + if m.UnknownAck != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.UnknownAck)) + } + if m.UnknownNack != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.UnknownNack)) + } + if m.ReceivedNack != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.ReceivedNack)) + } + if m.SendFailure != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.SendFailure)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.AdminStatus != nil { + l = len(*m.AdminStatus) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.BandwidthReservations != nil { + l = m.BandwidthReservations.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Hellos != nil { + l = m.Hellos.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Authentication != nil { + l = m.Authentication.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Subscription != nil { + l = m.Subscription.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Protection != nil { + l = m.Protection.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.ErrorCounters != nil { + l = m.ErrorCounters.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InPathMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InPathMessages)) + } + if m.InPathErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InPathErrorMessages)) + } + if m.InPathTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InPathTearMessages)) + } + if m.InReservationMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InReservationMessages)) + } + if m.InReservationErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InReservationErrorMessages)) + } + if m.InReservationTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InReservationTearMessages)) + } + if m.InHelloMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InHelloMessages)) + } + if m.InSrefreshMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InSrefreshMessages)) + } + if m.InAckMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.InAckMessages)) + } + if m.OutPathMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutPathMessages)) + } + if m.OutPathErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutPathErrorMessages)) + } + if m.OutPathTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutPathTearMessages)) + } + if m.OutReservationMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutReservationMessages)) + } + if m.OutReservationErrorMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutReservationErrorMessages)) + } + if m.OutReservationTearMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutReservationTearMessages)) + } + if m.OutHelloMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutHelloMessages)) + } + if m.OutSrefreshMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutSrefreshMessages)) + } + if m.OutAckMessages != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.OutAckMessages)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BadPacketLength != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadPacketLength)) + } + if m.BadPacketVersion != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadPacketVersion)) + } + if m.AuthenticationFail != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.AuthenticationFail)) + } + if m.BadChecksum != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadChecksum)) + } + if m.BadPacketFormat != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BadPacketFormat)) + } + if m.RecvPktDisabledIntf != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.RecvPktDisabledIntf)) + } + if m.StateTimeout != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.StateTimeout)) + } + if m.MessageOutOfOrder != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.MessageOutOfOrder)) + } + if m.UnknownAck != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.UnknownAck)) + } + if m.UnknownNack != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.UnknownNack)) + } + if m.ReceivedNack != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.ReceivedNack)) + } + if m.SendFailure != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.SendFailure)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.BandwidthReservation) > 0 { + for _, e := range m.BandwidthReservation { + l = e.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Priority != nil { + l = len(*m.Priority) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Priority != nil { + l = len(*m.Priority) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.AvailableBandwidth != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.AvailableBandwidth)) + } + if m.ReservedBandwidth != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.ReservedBandwidth)) + } + if m.ActiveReservationsCount != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.ActiveReservationsCount)) + } + if m.HighwaterMark != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.HighwaterMark)) + } + if m.StaticBandwidth != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.StaticBandwidth)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HelloInterval != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.HelloInterval)) + } + if m.RefreshReduction != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enable != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Subscription != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.Subscription)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LinkProtectionStyleRequested != nil { + l = len(*m.LinkProtectionStyleRequested) + n += 2 + l + sovRpdRsvpOc(uint64(l)) + } + if m.BypassOptimizeInterval != nil { + n += 2 + sovRpdRsvpOc(uint64(*m.BypassOptimizeInterval)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdRsvpOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdRsvpOc(x uint64) (n int) { + return sovRpdRsvpOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesRsvp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_rsvp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_rsvp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesRsvpNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Mpls == nil { + m.Mpls = &NetworkInstancesRsvpNetworkInstanceListMplsType{} + } + if err := m.Mpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalingProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SignalingProtocols == nil { + m.SignalingProtocols = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType{} + } + if err := m.SignalingProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: signaling_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: signaling_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RsvpTe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RsvpTe == nil { + m.RsvpTe = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType{} + } + if err := m.RsvpTe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: rsvp_te_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: rsvp_te_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sessions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Sessions == nil { + m.Sessions = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType{} + } + if err := m.Sessions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbors", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Neighbors == nil { + m.Neighbors = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType{} + } + if err := m.Neighbors.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Global", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Global == nil { + m.Global = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType{} + } + if err := m.Global.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceAttributes == nil { + m.InterfaceAttributes = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType{} + } + if err := m.InterfaceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sessions_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sessions_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Session", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Session = append(m.Session, &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList{}) + if err := m.Session[len(m.Session)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: session_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: session_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIndex", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalIndex = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspId = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subcode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Subcode = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordRouteObjects", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RecordRouteObjects == nil { + m.RecordRouteObjects = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType{} + } + if err := m.RecordRouteObjects.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExplicitRouteObjects", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExplicitRouteObjects == nil { + m.ExplicitRouteObjects = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType{} + } + if err := m.ExplicitRouteObjects.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: record_route_objects_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: record_route_objects_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordRouteObject", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RecordRouteObject = append(m.RecordRouteObject, &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList{}) + if err := m.RecordRouteObject[len(m.RecordRouteObject)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: record_route_object_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: record_route_object_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListRecordRouteObjectsTypeRecordRouteObjectListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReportedLabel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ReportedLabel = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReportedFlags", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReportedFlags = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIndex", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalIndex = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SourceAddress = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DestinationAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DestinationAddress = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TunnelId = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspId = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SessionName = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Status = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtectionRequested", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProtectionRequested = &s + iNdEx = postIndex + case 59: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelIn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LabelIn = &s + iNdEx = postIndex + case 61: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelOut", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LabelOut = &s + iNdEx = postIndex + case 62: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NotifyStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NotifyStatus = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderTspec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SenderTspec == nil { + m.SenderTspec = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType{} + } + if err := m.SenderTspec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListStateTypeSenderTspecType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sender_tspec_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sender_tspec_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Rate = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Size_ = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PeakDataRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.PeakDataRate = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: explicit_route_objects_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: explicit_route_objects_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExplicitRouteObject", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExplicitRouteObject = append(m.ExplicitRouteObject, &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList{}) + if err := m.ExplicitRouteObject[len(m.ExplicitRouteObject)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: explicit_route_object_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: explicit_route_object_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeSessionsTypeSessionListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HopType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HopType = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbors_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbors_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Neighbor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Neighbor = append(m.Neighbor, &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList{}) + if err := m.Neighbor[len(m.Neighbor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: neighbor_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: neighbor_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeNeighborsTypeNeighborListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DetectedInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DetectedInterface = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NeighborStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NeighborStatus = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RefreshReduction", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RefreshReduction = &b + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: global_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: global_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GracefulRestart", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GracefulRestart == nil { + m.GracefulRestart = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType{} + } + if err := m.GracefulRestart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SoftPreemption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SoftPreemption == nil { + m.SoftPreemption = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType{} + } + if err := m.SoftPreemption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hellos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hellos == nil { + m.Hellos = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType{} + } + if err := m.Hellos.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: graceful_restart_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: graceful_restart_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeGracefulRestartTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enable = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RestartTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RestartTime = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecoveryTime", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecoveryTime = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: soft_preemption_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: soft_preemption_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeSoftPreemptionTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enable = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SoftPreemptionTimeout", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SoftPreemptionTimeout = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hellos_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hellos_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeHellosTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RefreshReduction", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RefreshReduction = &b + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ErrorCounters == nil { + m.ErrorCounters = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType{} + } + if err := m.ErrorCounters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathTimeouts = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservationTimeouts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReservationTimeouts = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RateLimitedMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RateLimitedMessages = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPathMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPathMessages = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPathErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPathErrorMessages = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPathTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPathTearMessages = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InReservationMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InReservationMessages = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InReservationErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InReservationErrorMessages = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InReservationTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InReservationTearMessages = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InHelloMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InHelloMessages = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InSrefreshMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InSrefreshMessages = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InAckMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InAckMessages = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPathMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPathMessages = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPathErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPathErrorMessages = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPathTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPathTearMessages = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutReservationMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutReservationMessages = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutReservationErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutReservationErrorMessages = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutReservationTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutReservationTearMessages = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutHelloMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutHelloMessages = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutSrefreshMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutSrefreshMessages = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutAckMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutAckMessages = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeGlobalTypeStateTypeErrorCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: error_counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: error_counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadPacketLength", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadPacketLength = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadPacketVersion", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadPacketVersion = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationFail = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadChecksum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadChecksum = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadPacketFormat", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadPacketFormat = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecvPktDisabledIntf", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecvPktDisabledIntf = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StateTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StateTimeout = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageOutOfOrder", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MessageOutOfOrder = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnknownAck = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownNack", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnknownNack = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedNack", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceivedNack = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SendFailure = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdminStatus = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandwidthReservations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BandwidthReservations == nil { + m.BandwidthReservations = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType{} + } + if err := m.BandwidthReservations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hellos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hellos == nil { + m.Hellos = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType{} + } + if err := m.Hellos.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 155: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authentication", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Authentication == nil { + m.Authentication = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType{} + } + if err := m.Authentication.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 156: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subscription == nil { + m.Subscription = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType{} + } + if err := m.Subscription.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 157: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Protection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Protection == nil { + m.Protection = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType{} + } + if err := m.Protection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorCounters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ErrorCounters == nil { + m.ErrorCounters = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType{} + } + if err := m.ErrorCounters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPathMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPathMessages = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPathErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPathErrorMessages = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPathTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPathTearMessages = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InReservationMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InReservationMessages = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InReservationErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InReservationErrorMessages = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InReservationTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InReservationTearMessages = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InHelloMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InHelloMessages = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InSrefreshMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InSrefreshMessages = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InAckMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InAckMessages = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPathMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPathMessages = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPathErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPathErrorMessages = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPathTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPathTearMessages = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutReservationMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutReservationMessages = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutReservationErrorMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutReservationErrorMessages = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutReservationTearMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutReservationTearMessages = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutHelloMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutHelloMessages = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutSrefreshMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutSrefreshMessages = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutAckMessages", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutAckMessages = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListStateTypeErrorCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: error_counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: error_counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadPacketLength", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadPacketLength = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadPacketVersion", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadPacketVersion = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationFail", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AuthenticationFail = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadChecksum", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadChecksum = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BadPacketFormat", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BadPacketFormat = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RecvPktDisabledIntf", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RecvPktDisabledIntf = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StateTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StateTimeout = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MessageOutOfOrder", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MessageOutOfOrder = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownAck", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnknownAck = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnknownNack", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UnknownNack = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedNack", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReceivedNack = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SendFailure", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SendFailure = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bandwidth_reservations_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bandwidth_reservations_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandwidthReservation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BandwidthReservation = append(m.BandwidthReservation, &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList{}) + if err := m.BandwidthReservation[len(m.BandwidthReservation)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bandwidth_reservation_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bandwidth_reservation_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Priority = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListBandwidthReservationsTypeBandwidthReservationListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Priority = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AvailableBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AvailableBandwidth = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservedBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReservedBandwidth = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveReservationsCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveReservationsCount = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HighwaterMark", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HighwaterMark = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StaticBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StaticBandwidth = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: hellos_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: hellos_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListHellosTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HelloInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HelloInterval = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RefreshReduction", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.RefreshReduction = &b + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: authentication_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: authentication_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListAuthenticationTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enable = &b + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscription_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscription_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListSubscriptionTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subscription = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: protection_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: protection_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesRsvpNetworkInstanceListMplsTypeSignalingProtocolsTypeRsvpTeTypeInterfaceAttributesTypeInterfaceListProtectionTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkProtectionStyleRequested", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdRsvpOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LinkProtectionStyleRequested = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BypassOptimizeInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BypassOptimizeInterval = &v + default: + iNdEx = preIndex + skippy, err := skipRpdRsvpOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdRsvpOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdRsvpOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdRsvpOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdRsvpOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdRsvpOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdRsvpOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdRsvpOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdRsvpOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdRsvpOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_rsvp_oc.proto b/schema/rpd_rsvp_oc.proto new file mode 100755 index 0000000..ae2213e --- /dev/null +++ b/schema/rpd_rsvp_oc.proto @@ -0,0 +1,267 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_rsvp jnpr_network_instances_rsvp_ext = 68; +} + +message network_instances_rsvp { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional mpls_type mpls = 151; + message mpls_type { + optional signaling_protocols_type signaling_protocols = 151; + message signaling_protocols_type { + optional rsvp_te_type rsvp_te = 151; + message rsvp_te_type { + optional sessions_type sessions = 151; + message sessions_type { + message session_list { + optional uint64 local_index = 51 [(telemetry_options).is_key = true]; + optional string name = 52; + optional uint32 lsp_id = 53; + optional string subcode = 54; + optional record_route_objects_type record_route_objects = 151; + message record_route_objects_type { + message record_route_object_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 index = 51; + optional string address = 52; + optional string reported_label = 53; + optional uint32 reported_flags = 54; + } + } + repeated record_route_object_list record_route_object = 151; + } + optional state_type state = 153; + message state_type { + optional uint64 local_index = 51; + optional string source_address = 52; + optional string destination_address = 53; + optional uint32 tunnel_id = 54; + optional uint32 lsp_id = 55; + optional string session_name = 56; + optional string status = 57; + optional string type = 59; + optional string protection_requested = 58; + optional string label_in = 60; + optional string label_out = 61; + optional sender_tspec_type sender_tspec = 151; + message sender_tspec_type { + optional string rate = 51; + optional string size = 52; + optional string peak_data_rate = 53; + } + optional string notify_status = 62; + } + optional explicit_route_objects_type explicit_route_objects = 152; + message explicit_route_objects_type { + message explicit_route_object_list { + optional uint32 index = 52 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 index = 51; + optional string address = 52; + optional string hop_type = 53; + } + } + repeated explicit_route_object_list explicit_route_object = 151; + } + } + repeated session_list session = 151; + } + optional neighbors_type neighbors = 152; + message neighbors_type { + message neighbor_list { + optional string address = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string address = 51; + optional string detected_interface = 52; + optional string neighbor_status = 53; + optional bool refresh_reduction = 54; + } + } + repeated neighbor_list neighbor = 151; + } + optional global_type global = 153; + message global_type { + optional graceful_restart_type graceful_restart = 151; + message graceful_restart_type { + optional state_type state = 151; + message state_type { + optional bool enable = 51; + optional uint32 restart_time = 52; + optional uint32 recovery_time = 53; + } + } + optional soft_preemption_type soft_preemption = 152; + message soft_preemption_type { + optional state_type state = 151; + message state_type { + optional bool enable = 51; + optional uint32 soft_preemption_timeout = 52; + } + } + optional hellos_type hellos = 153; + message hellos_type { + optional state_type state = 151; + message state_type { + optional uint32 hello_interval = 51; + optional bool refresh_reduction = 52; + } + } + optional state_type state = 154; + message state_type { + optional counters_type counters = 152; + message counters_type { + optional uint64 path_timeouts = 51; + optional uint64 reservation_timeouts = 52; + optional uint64 rate_limited_messages = 53; + optional uint64 in_path_messages = 54; + optional uint64 in_path_error_messages = 55; + optional uint64 in_path_tear_messages = 56; + optional uint64 in_reservation_messages = 57; + optional uint64 in_reservation_error_messages = 58; + optional uint64 in_reservation_tear_messages = 59; + optional uint64 in_hello_messages = 60; + optional uint64 in_srefresh_messages = 61; + optional uint64 in_ack_messages = 62; + optional uint64 out_path_messages = 63; + optional uint64 out_path_error_messages = 64; + optional uint64 out_path_tear_messages = 65; + optional uint64 out_reservation_messages = 66; + optional uint64 out_reservation_error_messages = 67; + optional uint64 out_reservation_tear_messages = 68; + optional uint64 out_hello_messages = 69; + optional uint64 out_srefresh_messages = 70; + optional uint64 out_ack_messages = 71; + } + optional error_counters_type error_counters = 151; + message error_counters_type { + optional uint64 bad_packet_length = 51; + optional uint64 bad_packet_version = 52; + optional uint64 authentication_fail = 53; + optional uint64 bad_checksum = 54; + optional uint64 bad_packet_format = 55; + optional uint64 recv_pkt_disabled_intf = 56; + optional uint64 state_timeout = 57; + optional uint64 message_out_of_order = 58; + optional uint64 unknown_ack = 59; + optional uint64 unknown_nack = 60; + optional uint64 received_nack = 61; + optional uint64 send_failure = 62; + } + } + } + optional interface_attributes_type interface_attributes = 154; + message interface_attributes_type { + message interface_list { + optional string interface_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface_id = 51; + optional counters_type counters = 151; + message counters_type { + optional uint64 in_path_messages = 51; + optional uint64 in_path_error_messages = 52; + optional uint64 in_path_tear_messages = 53; + optional uint64 in_reservation_messages = 54; + optional uint64 in_reservation_error_messages = 55; + optional uint64 in_reservation_tear_messages = 56; + optional uint64 in_hello_messages = 57; + optional uint64 in_srefresh_messages = 58; + optional uint64 in_ack_messages = 59; + optional uint64 out_path_messages = 60; + optional uint64 out_path_error_messages = 61; + optional uint64 out_path_tear_messages = 62; + optional uint64 out_reservation_messages = 63; + optional uint64 out_reservation_error_messages = 64; + optional uint64 out_reservation_tear_messages = 65; + optional uint64 out_hello_messages = 66; + optional uint64 out_srefresh_messages = 67; + optional uint64 out_ack_messages = 68; + } + optional error_counters_type error_counters = 152; + message error_counters_type { + optional uint64 bad_packet_length = 51; + optional uint64 bad_packet_version = 52; + optional uint64 authentication_fail = 53; + optional uint64 bad_checksum = 54; + optional uint64 bad_packet_format = 55; + optional uint64 recv_pkt_disabled_intf = 56; + optional uint64 state_timeout = 57; + optional uint64 message_out_of_order = 58; + optional uint64 unknown_ack = 59; + optional uint64 unknown_nack = 60; + optional uint64 received_nack = 61; + optional uint64 send_failure = 62; + } + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + optional bandwidth_reservations_type bandwidth_reservations = 153; + message bandwidth_reservations_type { + message bandwidth_reservation_list { + optional string priority = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string priority = 51; + optional uint64 available_bandwidth = 52; + optional uint64 reserved_bandwidth = 53; + optional uint64 active_reservations_count = 54; + optional uint64 highwater_mark = 55; + optional uint64 static_bandwidth = 61; + } + } + repeated bandwidth_reservation_list bandwidth_reservation = 151; + } + optional hellos_type hellos = 154; + message hellos_type { + optional state_type state = 151; + message state_type { + optional uint32 hello_interval = 51; + optional bool refresh_reduction = 52; + } + } + optional authentication_type authentication = 155; + message authentication_type { + optional state_type state = 151; + message state_type { + optional bool enable = 51; + } + } + optional subscription_type subscription = 156; + message subscription_type { + optional state_type state = 151; + message state_type { + optional uint32 subscription = 51; + } + } + optional protection_type protection = 157; + message protection_type { + optional state_type state = 151; + message state_type { + optional string link_protection_style_requested = 51; + optional uint32 bypass_optimize_interval = 52; + } + } + optional string admin_status = 52; + } + repeated interface_list interface = 151; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/rpd_srte_policy_oc.pb.go b/schema/rpd_srte_policy_oc.pb.go new file mode 100644 index 0000000..ee02853 --- /dev/null +++ b/schema/rpd_srte_policy_oc.pb.go @@ -0,0 +1,6092 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_srte_policy_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstances_SRTE struct { + NetworkInstance []*NetworkInstances_SRTENetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTE) Reset() { *m = NetworkInstances_SRTE{} } +func (m *NetworkInstances_SRTE) String() string { return proto.CompactTextString(m) } +func (*NetworkInstances_SRTE) ProtoMessage() {} +func (*NetworkInstances_SRTE) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0} +} +func (m *NetworkInstances_SRTE) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTE) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTE.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTE) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTE.Merge(m, src) +} +func (m *NetworkInstances_SRTE) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTE) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTE.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTE proto.InternalMessageInfo + +func (m *NetworkInstances_SRTE) GetNetworkInstance() []*NetworkInstances_SRTENetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + SegmentRouting *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType `protobuf:"bytes,151,opt,name=segment_routing,json=segmentRouting" json:"segment_routing,omitempty"` + Mpls *NetworkInstances_SRTENetworkInstanceListMplsType `protobuf:"bytes,152,opt,name=mpls" json:"mpls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceList) Reset() { + *m = NetworkInstances_SRTENetworkInstanceList{} +} +func (m *NetworkInstances_SRTENetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstances_SRTENetworkInstanceList) ProtoMessage() {} +func (*NetworkInstances_SRTENetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceList) GetSegmentRouting() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType { + if m != nil { + return m.SegmentRouting + } + return nil +} + +func (m *NetworkInstances_SRTENetworkInstanceList) GetMpls() *NetworkInstances_SRTENetworkInstanceListMplsType { + if m != nil { + return m.Mpls + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingType struct { + TePolicies *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType `protobuf:"bytes,151,opt,name=te_policies,json=tePolicies" json:"te_policies,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) ProtoMessage() {} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) GetTePolicies() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType { + if m != nil { + return m.TePolicies + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType struct { + TePolicy []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList `protobuf:"bytes,151,rep,name=te_policy,json=tePolicy" json:"te_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) ProtoMessage() {} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) GetTePolicy() []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList { + if m != nil { + return m.TePolicy + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList struct { + Color *uint32 `protobuf:"varint,51,opt,name=color" json:"color,omitempty"` + Endpoint *string `protobuf:"bytes,52,opt,name=endpoint" json:"endpoint,omitempty"` + State *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + CandidatePaths *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType `protobuf:"bytes,152,opt,name=candidate_paths,json=candidatePaths" json:"candidate_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) GetColor() uint32 { + if m != nil && m.Color != nil { + return *m.Color + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) GetEndpoint() string { + if m != nil && m.Endpoint != nil { + return *m.Endpoint + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) GetState() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) GetCandidatePaths() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType { + if m != nil { + return m.CandidatePaths + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType struct { + Color *uint32 `protobuf:"varint,51,opt,name=color" json:"color,omitempty"` + Endpoint *string `protobuf:"bytes,52,opt,name=endpoint" json:"endpoint,omitempty"` + Bsid *string `protobuf:"bytes,53,opt,name=bsid" json:"bsid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) GetColor() uint32 { + if m != nil && m.Color != nil { + return *m.Color + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) GetEndpoint() string { + if m != nil && m.Endpoint != nil { + return *m.Endpoint + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) GetBsid() string { + if m != nil && m.Bsid != nil { + return *m.Bsid + } + return "" +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType struct { + CandidatePath []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList `protobuf:"bytes,151,rep,name=candidate_path,json=candidatePath" json:"candidate_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) GetCandidatePath() []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList { + if m != nil { + return m.CandidatePath + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList struct { + ProtocolOrigin *string `protobuf:"bytes,51,opt,name=protocol_origin,json=protocolOrigin" json:"protocol_origin,omitempty"` + OriginatorAsn *uint32 `protobuf:"varint,52,opt,name=originator_asn,json=originatorAsn" json:"originator_asn,omitempty"` + OriginatorAddr *string `protobuf:"bytes,53,opt,name=originator_addr,json=originatorAddr" json:"originator_addr,omitempty"` + Discriminator *uint32 `protobuf:"varint,54,opt,name=discriminator" json:"discriminator,omitempty"` + State *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + SegmentLists *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType `protobuf:"bytes,152,opt,name=segment_lists,json=segmentLists" json:"segment_lists,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) GetProtocolOrigin() string { + if m != nil && m.ProtocolOrigin != nil { + return *m.ProtocolOrigin + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) GetOriginatorAsn() uint32 { + if m != nil && m.OriginatorAsn != nil { + return *m.OriginatorAsn + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) GetOriginatorAddr() string { + if m != nil && m.OriginatorAddr != nil { + return *m.OriginatorAddr + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) GetDiscriminator() uint32 { + if m != nil && m.Discriminator != nil { + return *m.Discriminator + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) GetState() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) GetSegmentLists() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType { + if m != nil { + return m.SegmentLists + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType struct { + ProtocolOrigin *string `protobuf:"bytes,51,opt,name=protocol_origin,json=protocolOrigin" json:"protocol_origin,omitempty"` + OriginatorAsn *uint32 `protobuf:"varint,52,opt,name=originator_asn,json=originatorAsn" json:"originator_asn,omitempty"` + OriginatorAddr *string `protobuf:"bytes,53,opt,name=originator_addr,json=originatorAddr" json:"originator_addr,omitempty"` + Discriminator *uint32 `protobuf:"varint,54,opt,name=discriminator" json:"discriminator,omitempty"` + Preference *uint32 `protobuf:"varint,55,opt,name=preference" json:"preference,omitempty"` + Enlp *string `protobuf:"bytes,56,opt,name=enlp" json:"enlp,omitempty"` + Valid *bool `protobuf:"varint,57,opt,name=valid" json:"valid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetProtocolOrigin() string { + if m != nil && m.ProtocolOrigin != nil { + return *m.ProtocolOrigin + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetOriginatorAsn() uint32 { + if m != nil && m.OriginatorAsn != nil { + return *m.OriginatorAsn + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetOriginatorAddr() string { + if m != nil && m.OriginatorAddr != nil { + return *m.OriginatorAddr + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetDiscriminator() uint32 { + if m != nil && m.Discriminator != nil { + return *m.Discriminator + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetPreference() uint32 { + if m != nil && m.Preference != nil { + return *m.Preference + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetEnlp() string { + if m != nil && m.Enlp != nil { + return *m.Enlp + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) GetValid() bool { + if m != nil && m.Valid != nil { + return *m.Valid + } + return false +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType struct { + SegmentList []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList `protobuf:"bytes,151,rep,name=segment_list,json=segmentList" json:"segment_list,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 1} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) GetSegmentList() []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList { + if m != nil { + return m.SegmentList + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList struct { + Id *uint32 `protobuf:"varint,51,opt,name=id" json:"id,omitempty"` + State *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Sids *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType `protobuf:"bytes,152,opt,name=sids" json:"sids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) GetId() uint32 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) GetState() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) GetSids() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType { + if m != nil { + return m.Sids + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType struct { + Id *uint32 `protobuf:"varint,51,opt,name=id" json:"id,omitempty"` + Valid *bool `protobuf:"varint,52,opt,name=valid" json:"valid,omitempty"` + InvalidReason *string `protobuf:"bytes,53,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"` + Weight *uint32 `protobuf:"varint,54,opt,name=weight" json:"weight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 1, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) GetId() uint32 { + if m != nil && m.Id != nil { + return *m.Id + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) GetValid() bool { + if m != nil && m.Valid != nil { + return *m.Valid + } + return false +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) GetInvalidReason() string { + if m != nil && m.InvalidReason != nil { + return *m.InvalidReason + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) GetWeight() uint32 { + if m != nil && m.Weight != nil { + return *m.Weight + } + return 0 +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType struct { + Sid []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList `protobuf:"bytes,151,rep,name=sid" json:"sid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 1, 0, 1} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) GetSid() []*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList { + if m != nil { + return m.Sid + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList struct { + Index *uint64 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) GetIndex() uint64 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) GetState() *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType struct { + Index *uint64 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Value *string `protobuf:"bytes,52,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) GetIndex() uint64 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) GetValue() string { + if m != nil && m.Value != nil { + return *m.Value + } + return "" +} + +type NetworkInstances_SRTENetworkInstanceListMplsType struct { + SignalingProtocols *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType `protobuf:"bytes,151,opt,name=signaling_protocols,json=signalingProtocols" json:"signaling_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsType) ProtoMessage() {} +func (*NetworkInstances_SRTENetworkInstanceListMplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) GetSignalingProtocols() *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType { + if m != nil { + return m.SignalingProtocols + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType struct { + SegmentRouting *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType `protobuf:"bytes,151,opt,name=segment_routing,json=segmentRouting" json:"segment_routing,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) ProtoMessage() {} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) GetSegmentRouting() *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType { + if m != nil { + return m.SegmentRouting + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType struct { + Interfaces *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType `protobuf:"bytes,151,opt,name=interfaces" json:"interfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) GetInterfaces() *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType { + if m != nil { + return m.Interfaces + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType struct { + Interface []*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) GetInterface() []*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + State *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0, 0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) GetState() *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) GetInterfaceRef() *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType struct { + State *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0, 0, 0, 0, 1} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) GetState() *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Reset() { + *m = NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType{} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_a8bec8c37fbdbee5, []int{0, 0, 1, 0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +var E_JnprNetworkInstances_SRTEExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstances_SRTE)(nil), + Field: 169, + Name: "jnpr_network_instances_SRTE_ext", + Tag: "bytes,169,opt,name=jnpr_network_instances_SRTE_ext", + Filename: "rpd_srte_policy_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstances_SRTE)(nil), "network_instances_SRTE") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceList)(nil), "network_instances_SRTE.network_instance_list") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.state_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.state_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.segment_lists_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.segment_lists_type.segment_list_list") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.segment_lists_type.segment_list_list.state_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.segment_lists_type.segment_list_list.sids_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.segment_lists_type.segment_list_list.sids_type.sid_list") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType)(nil), "network_instances_SRTE.network_instance_list.segment_routing_type.te_policies_type.te_policy_list.candidate_paths_type.candidate_path_list.segment_lists_type.segment_list_list.sids_type.sid_list.state_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsType)(nil), "network_instances_SRTE.network_instance_list.mpls_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type.segment_routing_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type.segment_routing_type.interfaces_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type.segment_routing_type.interfaces_type.interface_list") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type.segment_routing_type.interfaces_type.interface_list.state_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type.segment_routing_type.interfaces_type.interface_list.interface_ref_type") + proto.RegisterType((*NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType)(nil), "network_instances_SRTE.network_instance_list.mpls_type.signaling_protocols_type.segment_routing_type.interfaces_type.interface_list.interface_ref_type.state_type") + proto.RegisterExtension(E_JnprNetworkInstances_SRTEExt) +} + +func init() { proto.RegisterFile("rpd_srte_policy_oc.proto", fileDescriptor_a8bec8c37fbdbee5) } + +var fileDescriptor_a8bec8c37fbdbee5 = []byte{ + // 1141 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x3d, 0x6c, 0x1c, 0x45, + 0x14, 0xd6, 0x38, 0x67, 0x38, 0xbf, 0xf3, 0x9d, 0x93, 0x89, 0x63, 0x2f, 0x13, 0x64, 0x4c, 0x44, + 0xc0, 0x8d, 0xef, 0xa4, 0x10, 0x48, 0xa0, 0x22, 0x96, 0x52, 0x04, 0x45, 0xc6, 0x5a, 0xd3, 0x40, + 0xb3, 0xac, 0x6f, 0xc7, 0xe7, 0x71, 0xf6, 0x66, 0x97, 0x99, 0xb9, 0xd8, 0xee, 0x50, 0x94, 0x8e, + 0x22, 0x12, 0x85, 0x43, 0x85, 0x14, 0x84, 0x40, 0x69, 0x10, 0x42, 0xd0, 0x04, 0x29, 0x0d, 0x42, + 0x42, 0x14, 0x51, 0x24, 0x84, 0x68, 0xc1, 0x05, 0x48, 0x50, 0xd3, 0x40, 0x83, 0x66, 0x67, 0xff, + 0x6f, 0x2d, 0x91, 0x40, 0x92, 0x33, 0xdd, 0xce, 0xf7, 0xe6, 0xde, 0x7b, 0xf3, 0xcd, 0xfb, 0xde, + 0xcc, 0x1c, 0x58, 0x22, 0xf4, 0x1c, 0x29, 0x14, 0x75, 0xc2, 0xc0, 0x67, 0xdd, 0x1d, 0x27, 0xe8, + 0xb6, 0x43, 0x11, 0xa8, 0x80, 0x1c, 0x55, 0xd4, 0xa7, 0x7d, 0xaa, 0xc4, 0x8e, 0xa3, 0x82, 0xd0, + 0x80, 0x27, 0x7e, 0x7e, 0x16, 0x66, 0x38, 0x55, 0x5b, 0x81, 0xb8, 0xe4, 0x30, 0x2e, 0x95, 0xcb, + 0xbb, 0x54, 0x3a, 0xab, 0xf6, 0xeb, 0xe7, 0xf1, 0x1b, 0x70, 0xb8, 0x6c, 0xb1, 0xae, 0xa3, 0xf9, + 0x43, 0x0b, 0x8d, 0x53, 0x8b, 0xed, 0xea, 0xdf, 0x0c, 0xc1, 0x8e, 0xcf, 0xa4, 0xb2, 0xa7, 0x62, + 0xf8, 0x42, 0x8c, 0x92, 0xdf, 0x4f, 0xc2, 0xb1, 0xca, 0xa9, 0xf8, 0x09, 0xa8, 0x71, 0xb7, 0x4f, + 0xad, 0xe7, 0xe7, 0xd1, 0xc2, 0xc4, 0xd2, 0xf8, 0x95, 0x57, 0xc6, 0xea, 0xc8, 0x8e, 0x20, 0xec, + 0xc3, 0x94, 0xa4, 0xbd, 0x3e, 0xe5, 0xca, 0x11, 0xc1, 0x40, 0x31, 0xde, 0xd3, 0xe9, 0xa0, 0x85, + 0xc6, 0xa9, 0xa5, 0x7b, 0x4a, 0xa7, 0x5d, 0xf2, 0xe2, 0xa8, 0x9d, 0x90, 0xda, 0xad, 0x18, 0xb5, + 0x0d, 0x88, 0x2f, 0x42, 0xad, 0x1f, 0xfa, 0xd2, 0x7a, 0xdf, 0x84, 0x38, 0x73, 0x6f, 0x21, 0xf4, + 0x4f, 0x8d, 0xdf, 0xc8, 0x0b, 0xb9, 0x63, 0xc1, 0x74, 0x55, 0x58, 0x3c, 0x80, 0x46, 0xb2, 0x55, + 0x8c, 0xca, 0x64, 0x41, 0xab, 0xff, 0x7e, 0x41, 0xed, 0x9c, 0x5b, 0x93, 0x09, 0x28, 0xba, 0x12, + 0x03, 0xe4, 0xf6, 0x2c, 0x1c, 0x2e, 0x4f, 0xc0, 0xef, 0x20, 0x98, 0x48, 0xeb, 0x26, 0xd9, 0xea, + 0xb5, 0x07, 0x90, 0x4a, 0x3b, 0xab, 0xce, 0xa8, 0x3e, 0xea, 0x71, 0x66, 0x3b, 0xe4, 0xe3, 0x19, + 0x68, 0x15, 0x8d, 0x78, 0x1a, 0xc6, 0xbb, 0x81, 0x1f, 0x88, 0xa8, 0x24, 0x9a, 0xb6, 0x19, 0x60, + 0x02, 0x75, 0xca, 0xbd, 0x30, 0x60, 0x5c, 0x59, 0xa7, 0x75, 0xad, 0xd8, 0xe9, 0x18, 0x5f, 0x45, + 0x30, 0x2e, 0x95, 0xab, 0x68, 0x42, 0x67, 0xff, 0xc1, 0xaf, 0xa1, 0x1d, 0x05, 0x34, 0x44, 0x9b, + 0xe0, 0xf8, 0x06, 0x82, 0xa9, 0xae, 0xcb, 0x3d, 0xe6, 0x69, 0x4b, 0xe8, 0xaa, 0x8d, 0xb4, 0x9a, + 0xb6, 0x1e, 0x42, 0x42, 0xa5, 0xd0, 0x71, 0x95, 0xa7, 0xe8, 0x8a, 0x06, 0x89, 0x0d, 0x90, 0x25, + 0x7e, 0x1f, 0x54, 0x63, 0xa8, 0xad, 0x49, 0xe6, 0x59, 0x2f, 0x44, 0x78, 0xf4, 0x4d, 0xf6, 0x30, + 0x4c, 0x57, 0x05, 0xc7, 0x5f, 0x20, 0x68, 0x15, 0x0d, 0x49, 0x91, 0xbd, 0x8b, 0x1e, 0x11, 0x21, + 0x25, 0xd0, 0x94, 0x63, 0xb3, 0x40, 0x12, 0x79, 0xef, 0x08, 0x1c, 0xad, 0x98, 0x86, 0x9f, 0x83, + 0xa9, 0xa8, 0x87, 0x76, 0x03, 0xdf, 0x09, 0x04, 0xeb, 0x31, 0x6e, 0xba, 0x96, 0xdd, 0x4a, 0xe0, + 0xd7, 0x22, 0x14, 0x9f, 0x84, 0x96, 0xb1, 0xbb, 0x2a, 0x10, 0x8e, 0x2b, 0x79, 0x44, 0x63, 0xd3, + 0x6e, 0x66, 0xe8, 0x39, 0xc9, 0xb5, 0xbf, 0xfc, 0x34, 0xcf, 0x13, 0x31, 0xad, 0xb9, 0x5f, 0x9f, + 0xf3, 0x3c, 0x81, 0x9f, 0x81, 0xa6, 0xc7, 0x64, 0x57, 0xb0, 0xbe, 0x01, 0xad, 0x17, 0x8d, 0xbb, + 0x02, 0x88, 0x3f, 0x2d, 0xab, 0x60, 0x77, 0x94, 0x48, 0xae, 0xd0, 0xcb, 0x37, 0x08, 0x9a, 0x49, + 0x4c, 0x3d, 0x25, 0x55, 0xcb, 0x07, 0xa3, 0x95, 0x78, 0x3e, 0x45, 0xb3, 0x80, 0xc9, 0x18, 0xbb, + 0xa8, 0x21, 0xf2, 0x07, 0x2a, 0x88, 0x6a, 0xc4, 0xcb, 0x64, 0x0e, 0x20, 0x14, 0x74, 0x9d, 0x0a, + 0xaa, 0xcf, 0xf7, 0x33, 0xd1, 0x94, 0x1c, 0xa2, 0x15, 0x4e, 0xb9, 0x1f, 0x5a, 0x67, 0x8d, 0xc2, + 0xf5, 0xb7, 0xee, 0x13, 0x97, 0x5d, 0x9f, 0x79, 0xd6, 0x4b, 0xf3, 0x68, 0xa1, 0x6e, 0x9b, 0x01, + 0xf9, 0x0d, 0x00, 0x0f, 0x93, 0x83, 0x7f, 0x40, 0x30, 0x99, 0x87, 0x13, 0xcd, 0x7f, 0x36, 0xe2, + 0xbb, 0x5a, 0x80, 0x4c, 0x63, 0x68, 0xe4, 0xf6, 0x99, 0xfc, 0x55, 0x87, 0x23, 0x43, 0x53, 0xf0, + 0x31, 0x18, 0x63, 0x9e, 0xe9, 0x9f, 0xc9, 0xed, 0x65, 0x8c, 0x79, 0xf8, 0xfb, 0xb2, 0x18, 0xbf, + 0x3a, 0x70, 0xab, 0xaf, 0x50, 0xec, 0x5d, 0x04, 0x35, 0xc9, 0xbc, 0x54, 0xa8, 0xb7, 0x0e, 0xe0, + 0xa2, 0x98, 0x97, 0x5c, 0xd4, 0xf4, 0x27, 0x79, 0xbb, 0xa0, 0xdd, 0x56, 0xb6, 0x9b, 0xd1, 0x36, + 0xa6, 0x85, 0x7f, 0x3a, 0x57, 0xf8, 0x5a, 0xb8, 0x8c, 0x47, 0x9f, 0x8e, 0xa0, 0xae, 0x0c, 0x78, + 0x2c, 0xc8, 0x66, 0x8c, 0xda, 0x11, 0x88, 0x67, 0xe0, 0xb1, 0x2d, 0xca, 0x7a, 0x1b, 0x2a, 0x16, + 0x62, 0x3c, 0x22, 0x9f, 0xd7, 0x60, 0x22, 0x4d, 0x03, 0xff, 0x88, 0xe0, 0x90, 0x3e, 0x51, 0x63, + 0x95, 0x7c, 0x7d, 0x80, 0x29, 0xd5, 0x5f, 0x46, 0x38, 0x7a, 0x45, 0xe4, 0xbb, 0x31, 0xa8, 0x27, + 0x08, 0x3e, 0x0e, 0xe3, 0x8c, 0x7b, 0x74, 0x3b, 0x22, 0xb7, 0x96, 0x48, 0xc5, 0x60, 0xf8, 0x97, + 0xb2, 0x5a, 0xee, 0xfc, 0x1f, 0x58, 0x18, 0x16, 0x10, 0x39, 0x5b, 0xbe, 0x7e, 0xe5, 0x38, 0x49, + 0xc8, 0x30, 0x35, 0x37, 0xa0, 0xf1, 0xdd, 0xcb, 0x0c, 0xc8, 0xcd, 0x06, 0x4c, 0xa4, 0x8f, 0x0c, + 0x7c, 0x05, 0xc1, 0x51, 0xc9, 0x7a, 0xdc, 0xf5, 0xf5, 0x6a, 0x93, 0x73, 0x25, 0x7d, 0x4e, 0xac, + 0xdc, 0xe7, 0xe3, 0xa5, 0x5d, 0xe1, 0xd3, 0xe4, 0x8f, 0x53, 0xcb, 0x4a, 0x62, 0x20, 0xbb, 0x00, + 0xd6, 0x7e, 0x3f, 0xc0, 0xd7, 0xd0, 0xbe, 0xaf, 0x37, 0xfa, 0x5f, 0x67, 0xf7, 0x8f, 0x1e, 0x78, + 0xe4, 0xd7, 0xfa, 0x3e, 0x4f, 0xb2, 0x5d, 0x04, 0xc0, 0xb8, 0xa2, 0x62, 0xdd, 0xed, 0x66, 0x4f, + 0xb2, 0xc1, 0x43, 0xc9, 0xb2, 0x9d, 0x05, 0x8e, 0x1f, 0x6d, 0x19, 0x40, 0xbe, 0x7c, 0x1c, 0xa6, + 0x4a, 0x76, 0xfc, 0x11, 0x82, 0x89, 0x14, 0x4b, 0x9a, 0xc6, 0x55, 0xf4, 0x48, 0x92, 0xcd, 0xc6, + 0x46, 0xf5, 0x59, 0x62, 0xe4, 0xcf, 0x71, 0xdd, 0x23, 0xf3, 0x56, 0xbc, 0x00, 0x93, 0x19, 0x12, + 0x77, 0xd9, 0xf4, 0xc5, 0xdf, 0x48, 0x4d, 0x17, 0x3c, 0xfc, 0x49, 0xb9, 0x1d, 0x5c, 0x1b, 0x89, + 0xf5, 0x55, 0x1c, 0x88, 0xb7, 0x11, 0x34, 0xb3, 0x49, 0x82, 0xae, 0x27, 0x27, 0xe3, 0xf5, 0xd1, + 0xc8, 0xb8, 0x90, 0x5b, 0x7c, 0x77, 0x4d, 0x31, 0x9b, 0xae, 0x93, 0x4e, 0xa1, 0x21, 0x3d, 0x5d, + 0xb5, 0x45, 0x85, 0xbd, 0x21, 0x37, 0xc6, 0x00, 0x0f, 0x7b, 0xc5, 0xb7, 0xca, 0x5b, 0xf6, 0xe1, + 0xa8, 0x12, 0x50, 0xd1, 0x95, 0x97, 0x0b, 0x24, 0x3c, 0x99, 0x17, 0x98, 0x61, 0x20, 0x03, 0xf0, + 0x09, 0x98, 0x94, 0x83, 0xb5, 0x6c, 0x82, 0xb9, 0xb2, 0x17, 0xb0, 0x97, 0xb7, 0xe0, 0xa9, 0x4d, + 0x1e, 0x0a, 0xa7, 0x9a, 0x00, 0x87, 0x6e, 0x2b, 0x3c, 0xdb, 0x7e, 0x75, 0xc0, 0x59, 0x48, 0xc5, + 0xb2, 0x99, 0x23, 0x57, 0x29, 0x97, 0x81, 0x90, 0xd6, 0x4d, 0x43, 0xdf, 0xec, 0x3e, 0xec, 0xd9, + 0xc7, 0xb5, 0xe7, 0xe5, 0xe2, 0xdf, 0x6b, 0x52, 0x5b, 0xce, 0x6f, 0xab, 0xa5, 0xb7, 0xbe, 0xdd, + 0x9b, 0x43, 0x77, 0xf7, 0xe6, 0xd0, 0x4f, 0x7b, 0x73, 0xe8, 0x4d, 0xbb, 0xc7, 0x54, 0x7b, 0xd3, + 0x84, 0xd1, 0xee, 0x3a, 0xac, 0x4b, 0xd7, 0xa8, 0xe8, 0x75, 0x36, 0xa8, 0xeb, 0xab, 0x8d, 0xb5, + 0x40, 0x2d, 0x32, 0xde, 0xa3, 0x52, 0x2d, 0x6e, 0x2a, 0xb6, 0xc8, 0x5d, 0xc5, 0x2e, 0xd3, 0x4e, + 0x78, 0xa9, 0xd7, 0xd9, 0x54, 0xac, 0xe3, 0x7a, 0x6e, 0xa8, 0xa8, 0x90, 0x1d, 0x67, 0x73, 0xc0, + 0x03, 0xd9, 0x91, 0xdd, 0x0d, 0xda, 0x77, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x41, 0x49, 0xdd, + 0x1c, 0x6e, 0x14, 0x00, 0x00, +} + +func (m *NetworkInstances_SRTE) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTE) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTE) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mpls != nil { + { + size, err := m.Mpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.SegmentRouting != nil { + { + size, err := m.SegmentRouting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TePolicies != nil { + { + size, err := m.TePolicies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TePolicy) > 0 { + for iNdEx := len(m.TePolicy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TePolicy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CandidatePaths != nil { + { + size, err := m.CandidatePaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Endpoint != nil { + i -= len(*m.Endpoint) + copy(dAtA[i:], *m.Endpoint) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Endpoint))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Color != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Color)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bsid != nil { + i -= len(*m.Bsid) + copy(dAtA[i:], *m.Bsid) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Bsid))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Endpoint != nil { + i -= len(*m.Endpoint) + copy(dAtA[i:], *m.Endpoint) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Endpoint))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Color != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Color)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.CandidatePath) > 0 { + for iNdEx := len(m.CandidatePath) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CandidatePath[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SegmentLists != nil { + { + size, err := m.SegmentLists.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Discriminator != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Discriminator)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OriginatorAddr != nil { + i -= len(*m.OriginatorAddr) + copy(dAtA[i:], *m.OriginatorAddr) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.OriginatorAddr))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.OriginatorAsn != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.OriginatorAsn)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ProtocolOrigin != nil { + i -= len(*m.ProtocolOrigin) + copy(dAtA[i:], *m.ProtocolOrigin) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.ProtocolOrigin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Valid != nil { + i-- + if *m.Valid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.Enlp != nil { + i -= len(*m.Enlp) + copy(dAtA[i:], *m.Enlp) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Enlp))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Preference != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Preference)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Discriminator != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Discriminator)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.OriginatorAddr != nil { + i -= len(*m.OriginatorAddr) + copy(dAtA[i:], *m.OriginatorAddr) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.OriginatorAddr))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.OriginatorAsn != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.OriginatorAsn)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ProtocolOrigin != nil { + i -= len(*m.ProtocolOrigin) + copy(dAtA[i:], *m.ProtocolOrigin) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.ProtocolOrigin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SegmentList) > 0 { + for iNdEx := len(m.SegmentList) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SegmentList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Sids != nil { + { + size, err := m.Sids.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Id != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Weight != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Weight)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InvalidReason != nil { + i -= len(*m.InvalidReason) + copy(dAtA[i:], *m.InvalidReason) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.InvalidReason))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Valid != nil { + i-- + if *m.Valid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Id != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Id)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Sid) > 0 { + for iNdEx := len(m.Sid) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Sid[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Index != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SignalingProtocols != nil { + { + size, err := m.SignalingProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SegmentRouting != nil { + { + size, err := m.SegmentRouting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Interfaces != nil { + { + size, err := m.Interfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdSrtePolicyOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdSrtePolicyOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdSrtePolicyOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstances_SRTE) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.SegmentRouting != nil { + l = m.SegmentRouting.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Mpls != nil { + l = m.Mpls.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TePolicies != nil { + l = m.TePolicies.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TePolicy) > 0 { + for _, e := range m.TePolicy { + l = e.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Color != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Color)) + } + if m.Endpoint != nil { + l = len(*m.Endpoint) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.CandidatePaths != nil { + l = m.CandidatePaths.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Color != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Color)) + } + if m.Endpoint != nil { + l = len(*m.Endpoint) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Bsid != nil { + l = len(*m.Bsid) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CandidatePath) > 0 { + for _, e := range m.CandidatePath { + l = e.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProtocolOrigin != nil { + l = len(*m.ProtocolOrigin) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.OriginatorAsn != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.OriginatorAsn)) + } + if m.OriginatorAddr != nil { + l = len(*m.OriginatorAddr) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Discriminator != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Discriminator)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.SegmentLists != nil { + l = m.SegmentLists.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProtocolOrigin != nil { + l = len(*m.ProtocolOrigin) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.OriginatorAsn != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.OriginatorAsn)) + } + if m.OriginatorAddr != nil { + l = len(*m.OriginatorAddr) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Discriminator != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Discriminator)) + } + if m.Preference != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Preference)) + } + if m.Enlp != nil { + l = len(*m.Enlp) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Valid != nil { + n += 3 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SegmentList) > 0 { + for _, e := range m.SegmentList { + l = e.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Id)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Sids != nil { + l = m.Sids.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Id)) + } + if m.Valid != nil { + n += 3 + } + if m.InvalidReason != nil { + l = len(*m.InvalidReason) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Weight != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Weight)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Sid) > 0 { + for _, e := range m.Sid { + l = e.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Index)) + } + if m.Value != nil { + l = len(*m.Value) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalingProtocols != nil { + l = m.SignalingProtocols.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SegmentRouting != nil { + l = m.SegmentRouting.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interfaces != nil { + l = m.Interfaces.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdSrtePolicyOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovRpdSrtePolicyOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdSrtePolicyOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdSrtePolicyOc(x uint64) (n int) { + return sovRpdSrtePolicyOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstances_SRTE) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_SRTE: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_SRTE: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstances_SRTENetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentRouting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentRouting == nil { + m.SegmentRouting = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingType{} + } + if err := m.SegmentRouting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Mpls == nil { + m.Mpls = &NetworkInstances_SRTENetworkInstanceListMplsType{} + } + if err := m.Mpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_routing_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_routing_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TePolicies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TePolicies == nil { + m.TePolicies = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType{} + } + if err := m.TePolicies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: te_policies_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: te_policies_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TePolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TePolicy = append(m.TePolicy, &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList{}) + if err := m.TePolicy[len(m.TePolicy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: te_policy_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: te_policy_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Color = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Endpoint = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CandidatePaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CandidatePaths == nil { + m.CandidatePaths = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType{} + } + if err := m.CandidatePaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Color = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Endpoint = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bsid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Bsid = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: candidate_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: candidate_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CandidatePath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CandidatePath = append(m.CandidatePath, &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList{}) + if err := m.CandidatePath[len(m.CandidatePath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: candidate_path_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: candidate_path_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtocolOrigin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProtocolOrigin = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorAsn", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OriginatorAsn = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorAddr = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Discriminator", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Discriminator = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentLists", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentLists == nil { + m.SegmentLists = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType{} + } + if err := m.SegmentLists.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtocolOrigin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProtocolOrigin = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorAsn", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OriginatorAsn = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginatorAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OriginatorAddr = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Discriminator", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Discriminator = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preference", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Preference = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Enlp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Enlp = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Valid = &b + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_lists_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_lists_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentList", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SegmentList = append(m.SegmentList, &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList{}) + if err := m.SegmentList[len(m.SegmentList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_list_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_list_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sids", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Sids == nil { + m.Sids = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType{} + } + if err := m.Sids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Id = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Valid = &b + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvalidReason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InvalidReason = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Weight = &v + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sids_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sids_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sid = append(m.Sid, &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList{}) + if err := m.Sid[len(m.Sid)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sid_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sid_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListSegmentRoutingTypeTePoliciesTypeTePolicyListCandidatePathsTypeCandidatePathListSegmentListsTypeSegmentListListSidsTypeSidListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalingProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SignalingProtocols == nil { + m.SignalingProtocols = &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType{} + } + if err := m.SignalingProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: signaling_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: signaling_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentRouting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentRouting == nil { + m.SegmentRouting = &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType{} + } + if err := m.SegmentRouting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_routing_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_routing_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Interfaces == nil { + m.Interfaces = &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType{} + } + if err := m.Interfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstances_SRTENetworkInstanceListMplsTypeSignalingProtocolsTypeSegmentRoutingTypeInterfacesTypeInterfaceListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipRpdSrtePolicyOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdSrtePolicyOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdSrtePolicyOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdSrtePolicyOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdSrtePolicyOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdSrtePolicyOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdSrtePolicyOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdSrtePolicyOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdSrtePolicyOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdSrtePolicyOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_srte_policy_oc.proto b/schema/rpd_srte_policy_oc.proto new file mode 100755 index 0000000..ee524de --- /dev/null +++ b/schema/rpd_srte_policy_oc.proto @@ -0,0 +1,105 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_SRTE jnpr_network_instances_SRTE_ext = 169; +} + +message network_instances_SRTE { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional segment_routing_type segment_routing = 151; + message segment_routing_type { + optional te_policies_type te_policies = 151; + message te_policies_type { + message te_policy_list { + optional uint32 color = 51; + optional string endpoint = 52; + optional state_type state = 151; + message state_type { + optional uint32 color = 51; + optional string endpoint = 52; + optional string bsid = 53; + } + optional candidate_paths_type candidate_paths = 152; + message candidate_paths_type { + message candidate_path_list { + optional string protocol_origin = 51; + optional uint32 originator_asn = 52; + optional string originator_addr = 53; + optional uint32 discriminator = 54; + optional state_type state = 151; + message state_type { + optional string protocol_origin = 51; + optional uint32 originator_asn = 52; + optional string originator_addr = 53; + optional uint32 discriminator = 54; + optional uint32 preference = 55; + optional string enlp = 56; + optional bool valid = 57; + } + optional segment_lists_type segment_lists = 152; + message segment_lists_type { + message segment_list_list { + optional uint32 id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint32 id = 51; + optional bool valid = 52; + optional string invalid_reason = 53; + optional uint32 weight = 54; + } + optional sids_type sids = 152; + message sids_type { + message sid_list { + optional uint64 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional uint64 index = 51; + optional string value = 52; + } + } + repeated sid_list sid = 151; + } + } + repeated segment_list_list segment_list = 151; + } + } + repeated candidate_path_list candidate_path = 151; + } + } + repeated te_policy_list te_policy = 151; + } + } + optional mpls_type mpls = 152; + message mpls_type { + optional signaling_protocols_type signaling_protocols = 151; + message signaling_protocols_type { + optional segment_routing_type segment_routing = 151; + message segment_routing_type { + optional interfaces_type interfaces = 151; + message interfaces_type { + message interface_list { + optional string interface_id = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface_id = 51; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + } + repeated interface_list interface = 151; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/rpd_te_oc.pb.go b/schema/rpd_te_oc.pb.go new file mode 100644 index 0000000..110e2f5 --- /dev/null +++ b/schema/rpd_te_oc.pb.go @@ -0,0 +1,18637 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: rpd_te_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type NetworkInstancesTe struct { + NetworkInstance []*NetworkInstancesTeNetworkInstanceList `protobuf:"bytes,151,rep,name=network_instance,json=networkInstance" json:"network_instance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTe) Reset() { *m = NetworkInstancesTe{} } +func (m *NetworkInstancesTe) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesTe) ProtoMessage() {} +func (*NetworkInstancesTe) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0} +} +func (m *NetworkInstancesTe) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTe.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTe) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTe.Merge(m, src) +} +func (m *NetworkInstancesTe) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTe) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTe.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTe proto.InternalMessageInfo + +func (m *NetworkInstancesTe) GetNetworkInstance() []*NetworkInstancesTeNetworkInstanceList { + if m != nil { + return m.NetworkInstance + } + return nil +} + +type NetworkInstancesTeNetworkInstanceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Mpls *NetworkInstancesTeNetworkInstanceListMplsType `protobuf:"bytes,151,opt,name=mpls" json:"mpls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceList) Reset() { *m = NetworkInstancesTeNetworkInstanceList{} } +func (m *NetworkInstancesTeNetworkInstanceList) String() string { return proto.CompactTextString(m) } +func (*NetworkInstancesTeNetworkInstanceList) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceList) GetMpls() *NetworkInstancesTeNetworkInstanceListMplsType { + if m != nil { + return m.Mpls + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsType struct { + TeGlobalAttributes *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType `protobuf:"bytes,151,opt,name=te_global_attributes,json=teGlobalAttributes" json:"te_global_attributes,omitempty"` + TeInterfaceAttributes *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType `protobuf:"bytes,152,opt,name=te_interface_attributes,json=teInterfaceAttributes" json:"te_interface_attributes,omitempty"` + Lsps *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType `protobuf:"bytes,153,opt,name=lsps" json:"lsps,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsType) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceListMplsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) GetTeGlobalAttributes() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType { + if m != nil { + return m.TeGlobalAttributes + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) GetTeInterfaceAttributes() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType { + if m != nil { + return m.TeInterfaceAttributes + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) GetLsps() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType { + if m != nil { + return m.Lsps + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType struct { + Srlgs *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType `protobuf:"bytes,151,opt,name=srlgs" json:"srlgs,omitempty"` + MplsAdminGroups *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType `protobuf:"bytes,152,opt,name=mpls_admin_groups,json=mplsAdminGroups" json:"mpls_admin_groups,omitempty"` + TeLspTimers *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType `protobuf:"bytes,153,opt,name=te_lsp_timers,json=teLspTimers" json:"te_lsp_timers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) GetSrlgs() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType { + if m != nil { + return m.Srlgs + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) GetMplsAdminGroups() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType { + if m != nil { + return m.MplsAdminGroups + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) GetTeLspTimers() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType { + if m != nil { + return m.TeLspTimers + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType struct { + Srlg []*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList `protobuf:"bytes,151,rep,name=srlg" json:"srlg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) GetSrlg() []*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList { + if m != nil { + return m.Srlg + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList struct { + Name *string `protobuf:"bytes,52,opt,name=name" json:"name,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Value *uint32 `protobuf:"varint,52,opt,name=value" json:"value,omitempty"` + Cost *uint32 `protobuf:"varint,53,opt,name=cost" json:"cost,omitempty"` + FloodingType *string `protobuf:"bytes,54,opt,name=flooding_type,json=floodingType" json:"flooding_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) GetValue() uint32 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) GetCost() uint32 { + if m != nil && m.Cost != nil { + return *m.Cost + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) GetFloodingType() string { + if m != nil && m.FloodingType != nil { + return *m.FloodingType + } + return "" +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType struct { + AdminGroup []*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList `protobuf:"bytes,151,rep,name=admin_group,json=adminGroup" json:"admin_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) GetAdminGroup() []*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList { + if m != nil { + return m.AdminGroup + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList struct { + AdminGroupName *string `protobuf:"bytes,52,opt,name=admin_group_name,json=adminGroupName" json:"admin_group_name,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) GetAdminGroupName() string { + if m != nil && m.AdminGroupName != nil { + return *m.AdminGroupName + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType struct { + AdminGroupName *string `protobuf:"bytes,51,opt,name=admin_group_name,json=adminGroupName" json:"admin_group_name,omitempty"` + BitPosition *uint32 `protobuf:"varint,52,opt,name=bit_position,json=bitPosition" json:"bit_position,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) GetAdminGroupName() string { + if m != nil && m.AdminGroupName != nil { + return *m.AdminGroupName + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) GetBitPosition() uint32 { + if m != nil && m.BitPosition != nil { + return *m.BitPosition + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType struct { + InstallDelay *uint32 `protobuf:"varint,51,opt,name=install_delay,json=installDelay" json:"install_delay,omitempty"` + CleanupDelay *uint32 `protobuf:"varint,52,opt,name=cleanup_delay,json=cleanupDelay" json:"cleanup_delay,omitempty"` + ReoptimizeTimer *uint32 `protobuf:"varint,53,opt,name=reoptimize_timer,json=reoptimizeTimer" json:"reoptimize_timer,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) GetInstallDelay() uint32 { + if m != nil && m.InstallDelay != nil { + return *m.InstallDelay + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) GetCleanupDelay() uint32 { + if m != nil && m.CleanupDelay != nil { + return *m.CleanupDelay + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) GetReoptimizeTimer() uint32 { + if m != nil && m.ReoptimizeTimer != nil { + return *m.ReoptimizeTimer + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType struct { + Interface []*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) GetInterface() []*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList struct { + InterfaceId *string `protobuf:"bytes,52,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceRef *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType `protobuf:"bytes,152,opt,name=interface_ref,json=interfaceRef" json:"interface_ref,omitempty"` + IgpFloodingBandwidth *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType `protobuf:"bytes,153,opt,name=igp_flooding_bandwidth,json=igpFloodingBandwidth" json:"igp_flooding_bandwidth,omitempty"` + BandwidthMeasurement *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType `protobuf:"bytes,154,opt,name=bandwidth_measurement,json=bandwidthMeasurement" json:"bandwidth_measurement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) GetInterfaceRef() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType { + if m != nil { + return m.InterfaceRef + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) GetIgpFloodingBandwidth() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType { + if m != nil { + return m.IgpFloodingBandwidth + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) GetBandwidthMeasurement() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType { + if m != nil { + return m.BandwidthMeasurement + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType struct { + InterfaceId *string `protobuf:"bytes,51,opt,name=interface_id,json=interfaceId" json:"interface_id,omitempty"` + SrlgMembership []string `protobuf:"bytes,52,rep,name=srlg_membership,json=srlgMembership" json:"srlg_membership,omitempty"` + AdminGroup []string `protobuf:"bytes,53,rep,name=admin_group,json=adminGroup" json:"admin_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) GetInterfaceId() string { + if m != nil && m.InterfaceId != nil { + return *m.InterfaceId + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) GetSrlgMembership() []string { + if m != nil { + return m.SrlgMembership + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) GetAdminGroup() []string { + if m != nil { + return m.AdminGroup + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType struct { + Interface *string `protobuf:"bytes,51,opt,name=interface" json:"interface,omitempty"` + Subinterface *uint32 `protobuf:"varint,52,opt,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) GetInterface() string { + if m != nil && m.Interface != nil { + return *m.Interface + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) GetSubinterface() uint32 { + if m != nil && m.Subinterface != nil { + return *m.Subinterface + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType struct { + ThresholdType *string `protobuf:"bytes,51,opt,name=threshold_type,json=thresholdType" json:"threshold_type,omitempty"` + DeltaPercentage *uint32 `protobuf:"varint,52,opt,name=delta_percentage,json=deltaPercentage" json:"delta_percentage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) GetThresholdType() string { + if m != nil && m.ThresholdType != nil { + return *m.ThresholdType + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) GetDeltaPercentage() uint32 { + if m != nil && m.DeltaPercentage != nil { + return *m.DeltaPercentage + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 3} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType struct { + LastCalculatedSrUtilisation *uint64 `protobuf:"varint,51,opt,name=last_calculated_sr_utilisation,json=lastCalculatedSrUtilisation" json:"last_calculated_sr_utilisation,omitempty"` + LastSampleMeasuredSrUtil *uint64 `protobuf:"varint,52,opt,name=last_sample_measured_sr_util,json=lastSampleMeasuredSrUtil" json:"last_sample_measured_sr_util,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 1, 0, 3, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) GetLastCalculatedSrUtilisation() uint64 { + if m != nil && m.LastCalculatedSrUtilisation != nil { + return *m.LastCalculatedSrUtilisation + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) GetLastSampleMeasuredSrUtil() uint64 { + if m != nil && m.LastSampleMeasuredSrUtil != nil { + return *m.LastSampleMeasuredSrUtil + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsType struct { + ConstrainedPath *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType `protobuf:"bytes,151,opt,name=constrained_path,json=constrainedPath" json:"constrained_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) GetConstrainedPath() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType { + if m != nil { + return m.ConstrainedPath + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType struct { + NamedExplicitPaths *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType `protobuf:"bytes,151,opt,name=named_explicit_paths,json=namedExplicitPaths" json:"named_explicit_paths,omitempty"` + Tunnels *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType `protobuf:"bytes,152,opt,name=tunnels" json:"tunnels,omitempty"` + ContainerTunnels *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType `protobuf:"bytes,153,opt,name=container_tunnels,json=containerTunnels" json:"container_tunnels,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) ProtoMessage() {} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) GetNamedExplicitPaths() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType { + if m != nil { + return m.NamedExplicitPaths + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) GetTunnels() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType { + if m != nil { + return m.Tunnels + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) GetContainerTunnels() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType { + if m != nil { + return m.ContainerTunnels + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType struct { + NamedExplicitPath []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList `protobuf:"bytes,151,rep,name=named_explicit_path,json=namedExplicitPath" json:"named_explicit_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) GetNamedExplicitPath() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList { + if m != nil { + return m.NamedExplicitPath + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + ExplicitRouteObjects *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType `protobuf:"bytes,152,opt,name=explicit_route_objects,json=explicitRouteObjects" json:"explicit_route_objects,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) GetExplicitRouteObjects() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType { + if m != nil { + return m.ExplicitRouteObjects + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType struct { + ExplicitRouteObject []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList `protobuf:"bytes,151,rep,name=explicit_route_object,json=explicitRouteObject" json:"explicit_route_object,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 0, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) GetExplicitRouteObject() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList { + if m != nil { + return m.ExplicitRouteObject + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 0, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType struct { + Address *string `protobuf:"bytes,51,opt,name=address" json:"address,omitempty"` + HopType *string `protobuf:"bytes,52,opt,name=hop_type,json=hopType" json:"hop_type,omitempty"` + Index *uint32 `protobuf:"varint,53,opt,name=index" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 0, 0, 1, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) GetAddress() string { + if m != nil && m.Address != nil { + return *m.Address + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) GetHopType() string { + if m != nil && m.HopType != nil { + return *m.HopType + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType struct { + Tunnel []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList `protobuf:"bytes,151,rep,name=tunnel" json:"tunnel,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) GetTunnel() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList { + if m != nil { + return m.Tunnel + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Source *string `protobuf:"bytes,52,opt,name=source" json:"source,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType `protobuf:"bytes,53,opt,name=state" json:"state,omitempty"` + Bandwidth *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType `protobuf:"bytes,152,opt,name=bandwidth" json:"bandwidth,omitempty"` + P2PTunnelAttributes *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType `protobuf:"bytes,153,opt,name=p2p_tunnel_attributes,json=p2pTunnelAttributes" json:"p2p_tunnel_attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) GetSource() string { + if m != nil && m.Source != nil { + return *m.Source + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) GetBandwidth() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType { + if m != nil { + return m.Bandwidth + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) GetP2PTunnelAttributes() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType { + if m != nil { + return m.P2PTunnelAttributes + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType struct { + Name *string `protobuf:"bytes,54,opt,name=name" json:"name,omitempty"` + Type *string `protobuf:"bytes,55,opt,name=type" json:"type,omitempty"` + SignalingProtocol *string `protobuf:"bytes,56,opt,name=signaling_protocol,json=signalingProtocol" json:"signaling_protocol,omitempty"` + Description *string `protobuf:"bytes,57,opt,name=description" json:"description,omitempty"` + AdminStatus *string `protobuf:"bytes,58,opt,name=admin_status,json=adminStatus" json:"admin_status,omitempty"` + Preference *uint32 `protobuf:"varint,59,opt,name=preference" json:"preference,omitempty"` + MetricType *string `protobuf:"bytes,60,opt,name=metric_type,json=metricType" json:"metric_type,omitempty"` + Metric *int32 `protobuf:"varint,61,opt,name=metric" json:"metric,omitempty"` + ProtectionStyleRequested *string `protobuf:"bytes,63,opt,name=protection_style_requested,json=protectionStyleRequested" json:"protection_style_requested,omitempty"` + ReoptimizeTimer *uint32 `protobuf:"varint,64,opt,name=reoptimize_timer,json=reoptimizeTimer" json:"reoptimize_timer,omitempty"` + Source *string `protobuf:"bytes,65,opt,name=source" json:"source,omitempty"` + SoftPreemption *bool `protobuf:"varint,66,opt,name=soft_preemption,json=softPreemption" json:"soft_preemption,omitempty"` + SetupPriority *uint32 `protobuf:"varint,67,opt,name=setup_priority,json=setupPriority" json:"setup_priority,omitempty"` + HoldPriority *uint32 `protobuf:"varint,68,opt,name=hold_priority,json=holdPriority" json:"hold_priority,omitempty"` + OperStatus *string `protobuf:"bytes,69,opt,name=oper_status,json=operStatus" json:"oper_status,omitempty"` + Counters *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + InheritedMetric *uint32 `protobuf:"varint,62,opt,name=inherited_metric,json=inheritedMetric" json:"inherited_metric,omitempty"` + TunnelId *uint32 `protobuf:"varint,52,opt,name=tunnel_id,json=tunnelId" json:"tunnel_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetType() string { + if m != nil && m.Type != nil { + return *m.Type + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetSignalingProtocol() string { + if m != nil && m.SignalingProtocol != nil { + return *m.SignalingProtocol + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetDescription() string { + if m != nil && m.Description != nil { + return *m.Description + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetAdminStatus() string { + if m != nil && m.AdminStatus != nil { + return *m.AdminStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetPreference() uint32 { + if m != nil && m.Preference != nil { + return *m.Preference + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetMetricType() string { + if m != nil && m.MetricType != nil { + return *m.MetricType + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetMetric() int32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetProtectionStyleRequested() string { + if m != nil && m.ProtectionStyleRequested != nil { + return *m.ProtectionStyleRequested + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetReoptimizeTimer() uint32 { + if m != nil && m.ReoptimizeTimer != nil { + return *m.ReoptimizeTimer + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetSource() string { + if m != nil && m.Source != nil { + return *m.Source + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetSoftPreemption() bool { + if m != nil && m.SoftPreemption != nil { + return *m.SoftPreemption + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetSetupPriority() uint32 { + if m != nil && m.SetupPriority != nil { + return *m.SetupPriority + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetHoldPriority() uint32 { + if m != nil && m.HoldPriority != nil { + return *m.HoldPriority + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetOperStatus() string { + if m != nil && m.OperStatus != nil { + return *m.OperStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetCounters() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetInheritedMetric() uint32 { + if m != nil && m.InheritedMetric != nil { + return *m.InheritedMetric + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) GetTunnelId() uint32 { + if m != nil && m.TunnelId != nil { + return *m.TunnelId + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType struct { + PathChanges *uint64 `protobuf:"varint,51,opt,name=path_changes,json=pathChanges" json:"path_changes,omitempty"` + StateChanges *uint64 `protobuf:"varint,52,opt,name=state_changes,json=stateChanges" json:"state_changes,omitempty"` + OnlineTime *string `protobuf:"bytes,53,opt,name=online_time,json=onlineTime" json:"online_time,omitempty"` + CurrentPathTime *string `protobuf:"bytes,54,opt,name=current_path_time,json=currentPathTime" json:"current_path_time,omitempty"` + NextReoptimizationTime *string `protobuf:"bytes,55,opt,name=next_reoptimization_time,json=nextReoptimizationTime" json:"next_reoptimization_time,omitempty"` + LastTransitionTime *string `protobuf:"bytes,56,opt,name=last_transition_time,json=lastTransitionTime" json:"last_transition_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) GetPathChanges() uint64 { + if m != nil && m.PathChanges != nil { + return *m.PathChanges + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) GetStateChanges() uint64 { + if m != nil && m.StateChanges != nil { + return *m.StateChanges + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) GetOnlineTime() string { + if m != nil && m.OnlineTime != nil { + return *m.OnlineTime + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) GetCurrentPathTime() string { + if m != nil && m.CurrentPathTime != nil { + return *m.CurrentPathTime + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) GetNextReoptimizationTime() string { + if m != nil && m.NextReoptimizationTime != nil { + return *m.NextReoptimizationTime + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) GetLastTransitionTime() string { + if m != nil && m.LastTransitionTime != nil { + return *m.LastTransitionTime + } + return "" +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + AutoBandwidth *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType `protobuf:"bytes,152,opt,name=auto_bandwidth,json=autoBandwidth" json:"auto_bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) GetAutoBandwidth() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType { + if m != nil { + return m.AutoBandwidth + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType struct { + SpecificationType *string `protobuf:"bytes,51,opt,name=specification_type,json=specificationType" json:"specification_type,omitempty"` + SetBandwidth *uint64 `protobuf:"varint,52,opt,name=set_bandwidth,json=setBandwidth" json:"set_bandwidth,omitempty"` + SignaledBandwidth *uint64 `protobuf:"varint,53,opt,name=signaled_bandwidth,json=signaledBandwidth" json:"signaled_bandwidth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) GetSpecificationType() string { + if m != nil && m.SpecificationType != nil { + return *m.SpecificationType + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) GetSetBandwidth() uint64 { + if m != nil && m.SetBandwidth != nil { + return *m.SetBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) GetSignaledBandwidth() uint64 { + if m != nil && m.SignaledBandwidth != nil { + return *m.SignaledBandwidth + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Overflow *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType `protobuf:"bytes,152,opt,name=overflow" json:"overflow,omitempty"` + Underflow *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType `protobuf:"bytes,153,opt,name=underflow" json:"underflow,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) GetOverflow() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType { + if m != nil { + return m.Overflow + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) GetUnderflow() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType { + if m != nil { + return m.Underflow + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + MinBw *uint64 `protobuf:"varint,52,opt,name=min_bw,json=minBw" json:"min_bw,omitempty"` + MaxBw *uint64 `protobuf:"varint,53,opt,name=max_bw,json=maxBw" json:"max_bw,omitempty"` + AdjustInterval *uint32 `protobuf:"varint,54,opt,name=adjust_interval,json=adjustInterval" json:"adjust_interval,omitempty"` + AdjustThreshold *uint32 `protobuf:"varint,55,opt,name=adjust_threshold,json=adjustThreshold" json:"adjust_threshold,omitempty"` + MaxAverageBw *uint64 `protobuf:"varint,61,opt,name=max_average_bw,json=maxAverageBw" json:"max_average_bw,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) GetMinBw() uint64 { + if m != nil && m.MinBw != nil { + return *m.MinBw + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) GetMaxBw() uint64 { + if m != nil && m.MaxBw != nil { + return *m.MaxBw + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) GetAdjustInterval() uint32 { + if m != nil && m.AdjustInterval != nil { + return *m.AdjustInterval + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) GetAdjustThreshold() uint32 { + if m != nil && m.AdjustThreshold != nil { + return *m.AdjustThreshold + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) GetMaxAverageBw() uint64 { + if m != nil && m.MaxAverageBw != nil { + return *m.MaxAverageBw + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 1, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + TriggerEventCount *uint32 `protobuf:"varint,52,opt,name=trigger_event_count,json=triggerEventCount" json:"trigger_event_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 1, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) GetTriggerEventCount() uint32 { + if m != nil && m.TriggerEventCount != nil { + return *m.TriggerEventCount + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 1, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType struct { + Enabled *bool `protobuf:"varint,51,opt,name=enabled" json:"enabled,omitempty"` + TriggerEventCount *uint32 `protobuf:"varint,52,opt,name=trigger_event_count,json=triggerEventCount" json:"trigger_event_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 1, 1, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) GetEnabled() bool { + if m != nil && m.Enabled != nil { + return *m.Enabled + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) GetTriggerEventCount() uint32 { + if m != nil && m.TriggerEventCount != nil { + return *m.TriggerEventCount + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + P2PPrimaryPath *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType `protobuf:"bytes,152,opt,name=p2p_primary_path,json=p2pPrimaryPath" json:"p2p_primary_path,omitempty"` + P2PSecondaryPaths *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType `protobuf:"bytes,153,opt,name=p2p_secondary_paths,json=p2pSecondaryPaths" json:"p2p_secondary_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) GetP2PPrimaryPath() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType { + if m != nil { + return m.P2PPrimaryPath + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) GetP2PSecondaryPaths() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType { + if m != nil { + return m.P2PSecondaryPaths + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType struct { + Destination *string `protobuf:"bytes,51,opt,name=destination" json:"destination,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) GetDestination() string { + if m != nil && m.Destination != nil { + return *m.Destination + } + return "" +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType struct { + P2PPrimaryPath []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList `protobuf:"bytes,151,rep,name=p2p_primary_path,json=p2pPrimaryPath" json:"p2p_primary_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) GetP2PPrimaryPath() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList { + if m != nil { + return m.P2PPrimaryPath + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + AdminGroups *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType `protobuf:"bytes,152,opt,name=admin_groups,json=adminGroups" json:"admin_groups,omitempty"` + LspInstances []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList `protobuf:"bytes,153,rep,name=lsp_instances,json=lspInstances" json:"lsp_instances,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) GetAdminGroups() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType { + if m != nil { + return m.AdminGroups + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) GetLspInstances() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList { + if m != nil { + return m.LspInstances + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + UseCspf *bool `protobuf:"varint,52,opt,name=use_cspf,json=useCspf" json:"use_cspf,omitempty"` + CspfTiebreaker *string `protobuf:"bytes,53,opt,name=cspf_tiebreaker,json=cspfTiebreaker" json:"cspf_tiebreaker,omitempty"` + ExplicitPathName *string `protobuf:"bytes,56,opt,name=explicit_path_name,json=explicitPathName" json:"explicit_path_name,omitempty"` + Preference *uint32 `protobuf:"varint,61,opt,name=preference" json:"preference,omitempty"` + SetupPriority *uint32 `protobuf:"varint,62,opt,name=setup_priority,json=setupPriority" json:"setup_priority,omitempty"` + HoldPriority *uint32 `protobuf:"varint,63,opt,name=hold_priority,json=holdPriority" json:"hold_priority,omitempty"` + RetryTimer *uint32 `protobuf:"varint,64,opt,name=retry_timer,json=retryTimer" json:"retry_timer,omitempty"` + NotifyStatus *string `protobuf:"bytes,81,opt,name=notify_status,json=notifyStatus" json:"notify_status,omitempty"` + CspfStatus *string `protobuf:"bytes,54,opt,name=cspf_status,json=cspfStatus" json:"cspf_status,omitempty"` + CspfMetric *uint64 `protobuf:"varint,55,opt,name=cspf_metric,json=cspfMetric" json:"cspf_metric,omitempty"` + AssociatedRsvpSessions []uint32 `protobuf:"varint,59,rep,name=associated_rsvp_sessions,json=associatedRsvpSessions" json:"associated_rsvp_sessions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetUseCspf() bool { + if m != nil && m.UseCspf != nil { + return *m.UseCspf + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetCspfTiebreaker() string { + if m != nil && m.CspfTiebreaker != nil { + return *m.CspfTiebreaker + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetExplicitPathName() string { + if m != nil && m.ExplicitPathName != nil { + return *m.ExplicitPathName + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetPreference() uint32 { + if m != nil && m.Preference != nil { + return *m.Preference + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetSetupPriority() uint32 { + if m != nil && m.SetupPriority != nil { + return *m.SetupPriority + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetHoldPriority() uint32 { + if m != nil && m.HoldPriority != nil { + return *m.HoldPriority + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetRetryTimer() uint32 { + if m != nil && m.RetryTimer != nil { + return *m.RetryTimer + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetNotifyStatus() string { + if m != nil && m.NotifyStatus != nil { + return *m.NotifyStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetCspfStatus() string { + if m != nil && m.CspfStatus != nil { + return *m.CspfStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetCspfMetric() uint64 { + if m != nil && m.CspfMetric != nil { + return *m.CspfMetric + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) GetAssociatedRsvpSessions() []uint32 { + if m != nil { + return m.AssociatedRsvpSessions + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType struct { + ExcludeGroup []string `protobuf:"bytes,51,rep,name=exclude_group,json=excludeGroup" json:"exclude_group,omitempty"` + IncludeAllGroup []string `protobuf:"bytes,52,rep,name=include_all_group,json=includeAllGroup" json:"include_all_group,omitempty"` + IncludeAnyGroup []string `protobuf:"bytes,53,rep,name=include_any_group,json=includeAnyGroup" json:"include_any_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) GetExcludeGroup() []string { + if m != nil { + return m.ExcludeGroup + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) GetIncludeAllGroup() []string { + if m != nil { + return m.IncludeAllGroup + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) GetIncludeAnyGroup() []string { + if m != nil { + return m.IncludeAnyGroup + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList struct { + LocalIndex *uint32 `protobuf:"varint,51,opt,name=local_index,json=localIndex" json:"local_index,omitempty"` + LspId *uint32 `protobuf:"varint,52,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + Subcode *string `protobuf:"bytes,53,opt,name=subcode" json:"subcode,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) GetLocalIndex() uint32 { + if m != nil && m.LocalIndex != nil { + return *m.LocalIndex + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) GetLspId() uint32 { + if m != nil && m.LspId != nil { + return *m.LspId + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) GetSubcode() string { + if m != nil && m.Subcode != nil { + return *m.Subcode + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType struct { + LocalIndex *uint32 `protobuf:"varint,51,opt,name=local_index,json=localIndex" json:"local_index,omitempty"` + NotifyStatus *string `protobuf:"bytes,52,opt,name=notify_status,json=notifyStatus" json:"notify_status,omitempty"` + Metric *int32 `protobuf:"varint,53,opt,name=metric" json:"metric,omitempty"` + Bandwidth *uint64 `protobuf:"varint,54,opt,name=bandwidth" json:"bandwidth,omitempty"` + MaxAvgBandwidth *uint64 `protobuf:"varint,55,opt,name=max_avg_bandwidth,json=maxAvgBandwidth" json:"max_avg_bandwidth,omitempty"` + Reason *string `protobuf:"bytes,56,opt,name=reason" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 1, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) GetLocalIndex() uint32 { + if m != nil && m.LocalIndex != nil { + return *m.LocalIndex + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) GetNotifyStatus() string { + if m != nil && m.NotifyStatus != nil { + return *m.NotifyStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) GetMetric() int32 { + if m != nil && m.Metric != nil { + return *m.Metric + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) GetBandwidth() uint64 { + if m != nil && m.Bandwidth != nil { + return *m.Bandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) GetMaxAvgBandwidth() uint64 { + if m != nil && m.MaxAvgBandwidth != nil { + return *m.MaxAvgBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) GetReason() string { + if m != nil && m.Reason != nil { + return *m.Reason + } + return "" +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType struct { + P2PSecondaryPath []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList `protobuf:"bytes,151,rep,name=p2p_secondary_path,json=p2pSecondaryPath" json:"p2p_secondary_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) GetP2PSecondaryPath() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList { + if m != nil { + return m.P2PSecondaryPath + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList struct { + Name *string `protobuf:"bytes,52,opt,name=name" json:"name,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + AdminGroups *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType `protobuf:"bytes,152,opt,name=admin_groups,json=adminGroups" json:"admin_groups,omitempty"` + LspInstances []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList `protobuf:"bytes,153,rep,name=lsp_instances,json=lspInstances" json:"lsp_instances,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) GetAdminGroups() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType { + if m != nil { + return m.AdminGroups + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) GetLspInstances() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList { + if m != nil { + return m.LspInstances + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + UseCspf *bool `protobuf:"varint,52,opt,name=use_cspf,json=useCspf" json:"use_cspf,omitempty"` + CspfTiebreaker *string `protobuf:"bytes,53,opt,name=cspf_tiebreaker,json=cspfTiebreaker" json:"cspf_tiebreaker,omitempty"` + ExplicitPathName *string `protobuf:"bytes,54,opt,name=explicit_path_name,json=explicitPathName" json:"explicit_path_name,omitempty"` + Preference *uint32 `protobuf:"varint,55,opt,name=preference" json:"preference,omitempty"` + SetupPriority *uint32 `protobuf:"varint,56,opt,name=setup_priority,json=setupPriority" json:"setup_priority,omitempty"` + HoldPriority *uint32 `protobuf:"varint,57,opt,name=hold_priority,json=holdPriority" json:"hold_priority,omitempty"` + RetryTimer *uint32 `protobuf:"varint,58,opt,name=retry_timer,json=retryTimer" json:"retry_timer,omitempty"` + AssociatedRsvpSessions []uint32 `protobuf:"varint,59,rep,name=associated_rsvp_sessions,json=associatedRsvpSessions" json:"associated_rsvp_sessions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetUseCspf() bool { + if m != nil && m.UseCspf != nil { + return *m.UseCspf + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetCspfTiebreaker() string { + if m != nil && m.CspfTiebreaker != nil { + return *m.CspfTiebreaker + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetExplicitPathName() string { + if m != nil && m.ExplicitPathName != nil { + return *m.ExplicitPathName + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetPreference() uint32 { + if m != nil && m.Preference != nil { + return *m.Preference + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetSetupPriority() uint32 { + if m != nil && m.SetupPriority != nil { + return *m.SetupPriority + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetHoldPriority() uint32 { + if m != nil && m.HoldPriority != nil { + return *m.HoldPriority + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetRetryTimer() uint32 { + if m != nil && m.RetryTimer != nil { + return *m.RetryTimer + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) GetAssociatedRsvpSessions() []uint32 { + if m != nil { + return m.AssociatedRsvpSessions + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType struct { + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2, 0, 1} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType struct { + ExcludeGroup []string `protobuf:"bytes,51,rep,name=exclude_group,json=excludeGroup" json:"exclude_group,omitempty"` + IncludeAllGroup []string `protobuf:"bytes,52,rep,name=include_all_group,json=includeAllGroup" json:"include_all_group,omitempty"` + IncludeAnyGroup []string `protobuf:"bytes,53,rep,name=include_any_group,json=includeAnyGroup" json:"include_any_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2, 0, 1, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) GetExcludeGroup() []string { + if m != nil { + return m.ExcludeGroup + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) GetIncludeAllGroup() []string { + if m != nil { + return m.IncludeAllGroup + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) GetIncludeAnyGroup() []string { + if m != nil { + return m.IncludeAnyGroup + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList struct { + LocalIndex *uint32 `protobuf:"varint,51,opt,name=local_index,json=localIndex" json:"local_index,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + LspId *uint32 `protobuf:"varint,52,opt,name=lsp_id,json=lspId" json:"lsp_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) GetLocalIndex() uint32 { + if m != nil && m.LocalIndex != nil { + return *m.LocalIndex + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) GetLspId() uint32 { + if m != nil && m.LspId != nil { + return *m.LspId + } + return 0 +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType struct { + NotifyStatus *string `protobuf:"bytes,52,opt,name=notify_status,json=notifyStatus" json:"notify_status,omitempty"` + Reason *string `protobuf:"bytes,56,opt,name=reason" json:"reason,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 1, 0, 2, 2, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) GetNotifyStatus() string { + if m != nil && m.NotifyStatus != nil { + return *m.NotifyStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) GetReason() string { + if m != nil && m.Reason != nil { + return *m.Reason + } + return "" +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType struct { + ContainerTunnel []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList `protobuf:"bytes,151,rep,name=container_tunnel,json=containerTunnel" json:"container_tunnel,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 2} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) GetContainerTunnel() []*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList { + if m != nil { + return m.ContainerTunnel + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 2, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) GetState() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType { + if m != nil { + return m.State + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + OperState *string `protobuf:"bytes,52,opt,name=oper_state,json=operState" json:"oper_state,omitempty"` + NormalizationStatus *string `protobuf:"bytes,53,opt,name=normalization_status,json=normalizationStatus" json:"normalization_status,omitempty"` + MemberCount *uint32 `protobuf:"varint,54,opt,name=member_count,json=memberCount" json:"member_count,omitempty"` + MinimumLspCount *uint32 `protobuf:"varint,55,opt,name=minimum_lsp_count,json=minimumLspCount" json:"minimum_lsp_count,omitempty"` + MaximumLspCount *uint32 `protobuf:"varint,56,opt,name=maximum_lsp_count,json=maximumLspCount" json:"maximum_lsp_count,omitempty"` + NormalizeTimer *uint32 `protobuf:"varint,57,opt,name=normalize_timer,json=normalizeTimer" json:"normalize_timer,omitempty"` + NormalizeThreshold *uint32 `protobuf:"varint,58,opt,name=normalize_threshold,json=normalizeThreshold" json:"normalize_threshold,omitempty"` + AggregateBandwidth *uint64 `protobuf:"varint,59,opt,name=aggregate_bandwidth,json=aggregateBandwidth" json:"aggregate_bandwidth,omitempty"` + SampledAggregateBandwidth *uint64 `protobuf:"varint,60,opt,name=sampled_aggregate_bandwidth,json=sampledAggregateBandwidth" json:"sampled_aggregate_bandwidth,omitempty"` + MaxSignalingBandwidth *uint64 `protobuf:"varint,61,opt,name=max_signaling_bandwidth,json=maxSignalingBandwidth" json:"max_signaling_bandwidth,omitempty"` + MinSignalingBandwidth *uint64 `protobuf:"varint,62,opt,name=min_signaling_bandwidth,json=minSignalingBandwidth" json:"min_signaling_bandwidth,omitempty"` + SplittingBandwidth *uint64 `protobuf:"varint,63,opt,name=splitting_bandwidth,json=splittingBandwidth" json:"splitting_bandwidth,omitempty"` + MergingBandwidth *uint64 `protobuf:"varint,64,opt,name=merging_bandwidth,json=mergingBandwidth" json:"merging_bandwidth,omitempty"` + TimeToNormalize *uint64 `protobuf:"varint,65,opt,name=time_to_normalize,json=timeToNormalize" json:"time_to_normalize,omitempty"` + IncrementalNormalization *bool `protobuf:"varint,66,opt,name=incremental_normalization,json=incrementalNormalization" json:"incremental_normalization,omitempty"` + FailoverNormalization *bool `protobuf:"varint,67,opt,name=failover_normalization,json=failoverNormalization" json:"failover_normalization,omitempty"` + Reason *string `protobuf:"bytes,68,opt,name=reason" json:"reason,omitempty"` + Sampling *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType `protobuf:"bytes,151,opt,name=sampling" json:"sampling,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 2, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetOperState() string { + if m != nil && m.OperState != nil { + return *m.OperState + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetNormalizationStatus() string { + if m != nil && m.NormalizationStatus != nil { + return *m.NormalizationStatus + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetMemberCount() uint32 { + if m != nil && m.MemberCount != nil { + return *m.MemberCount + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetMinimumLspCount() uint32 { + if m != nil && m.MinimumLspCount != nil { + return *m.MinimumLspCount + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetMaximumLspCount() uint32 { + if m != nil && m.MaximumLspCount != nil { + return *m.MaximumLspCount + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetNormalizeTimer() uint32 { + if m != nil && m.NormalizeTimer != nil { + return *m.NormalizeTimer + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetNormalizeThreshold() uint32 { + if m != nil && m.NormalizeThreshold != nil { + return *m.NormalizeThreshold + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetAggregateBandwidth() uint64 { + if m != nil && m.AggregateBandwidth != nil { + return *m.AggregateBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetSampledAggregateBandwidth() uint64 { + if m != nil && m.SampledAggregateBandwidth != nil { + return *m.SampledAggregateBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetMaxSignalingBandwidth() uint64 { + if m != nil && m.MaxSignalingBandwidth != nil { + return *m.MaxSignalingBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetMinSignalingBandwidth() uint64 { + if m != nil && m.MinSignalingBandwidth != nil { + return *m.MinSignalingBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetSplittingBandwidth() uint64 { + if m != nil && m.SplittingBandwidth != nil { + return *m.SplittingBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetMergingBandwidth() uint64 { + if m != nil && m.MergingBandwidth != nil { + return *m.MergingBandwidth + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetTimeToNormalize() uint64 { + if m != nil && m.TimeToNormalize != nil { + return *m.TimeToNormalize + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetIncrementalNormalization() bool { + if m != nil && m.IncrementalNormalization != nil { + return *m.IncrementalNormalization + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetFailoverNormalization() bool { + if m != nil && m.FailoverNormalization != nil { + return *m.FailoverNormalization + } + return false +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetReason() string { + if m != nil && m.Reason != nil { + return *m.Reason + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) GetSampling() *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType { + if m != nil { + return m.Sampling + } + return nil +} + +type NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType struct { + SamplingOutlierCutoff *uint32 `protobuf:"varint,51,opt,name=sampling_outlier_cutoff,json=samplingOutlierCutoff" json:"sampling_outlier_cutoff,omitempty"` + SamplingMode *string `protobuf:"bytes,52,opt,name=sampling_mode,json=samplingMode" json:"sampling_mode,omitempty"` + SamplingPercentile *uint32 `protobuf:"varint,53,opt,name=sampling_percentile,json=samplingPercentile" json:"sampling_percentile,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) Reset() { + *m = NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType{} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) String() string { + return proto.CompactTextString(m) +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) ProtoMessage() { +} +func (*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) Descriptor() ([]byte, []int) { + return fileDescriptor_5d10f38d59cb24ab, []int{0, 0, 0, 2, 0, 2, 0, 0, 0} +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType.Merge(m, src) +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) XXX_Size() int { + return m.Size() +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) XXX_DiscardUnknown() { + xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType.DiscardUnknown(m) +} + +var xxx_messageInfo_NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType proto.InternalMessageInfo + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) GetSamplingOutlierCutoff() uint32 { + if m != nil && m.SamplingOutlierCutoff != nil { + return *m.SamplingOutlierCutoff + } + return 0 +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) GetSamplingMode() string { + if m != nil && m.SamplingMode != nil { + return *m.SamplingMode + } + return "" +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) GetSamplingPercentile() uint32 { + if m != nil && m.SamplingPercentile != nil { + return *m.SamplingPercentile + } + return 0 +} + +var E_JnprNetworkInstancesTeExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*NetworkInstancesTe)(nil), + Field: 69, + Name: "jnpr_network_instances_te_ext", + Tag: "bytes,69,opt,name=jnpr_network_instances_te_ext", + Filename: "rpd_te_oc.proto", +} + +func init() { + proto.RegisterType((*NetworkInstancesTe)(nil), "network_instances_te") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceList)(nil), "network_instances_te.network_instance_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsType)(nil), "network_instances_te.network_instance_list.mpls_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.srlgs_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.srlgs_type.srlg_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.srlgs_type.srlg_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.mpls_admin_groups_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.mpls_admin_groups_type.admin_group_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.mpls_admin_groups_type.admin_group_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.te_lsp_timers_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_global_attributes_type.te_lsp_timers_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.interface_ref_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.interface_ref_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.igp_flooding_bandwidth_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.igp_flooding_bandwidth_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.bandwidth_measurement_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.te_interface_attributes_type.interface_list.bandwidth_measurement_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.named_explicit_paths_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.named_explicit_paths_type.named_explicit_path_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.named_explicit_paths_type.named_explicit_path_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.named_explicit_paths_type.named_explicit_path_list.explicit_route_objects_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.named_explicit_paths_type.named_explicit_path_list.explicit_route_objects_type.explicit_route_object_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.named_explicit_paths_type.named_explicit_path_list.explicit_route_objects_type.explicit_route_object_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.state_type.counters_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.auto_bandwidth_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.auto_bandwidth_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.auto_bandwidth_type.overflow_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.auto_bandwidth_type.overflow_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.auto_bandwidth_type.underflow_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.bandwidth_type.auto_bandwidth_type.underflow_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type.p2p_primary_path_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type.p2p_primary_path_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type.p2p_primary_path_list.admin_groups_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type.p2p_primary_path_list.admin_groups_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type.p2p_primary_path_list.lsp_instances_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_primary_path_type.p2p_primary_path_list.lsp_instances_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type.p2p_secondary_path_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type.p2p_secondary_path_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type.p2p_secondary_path_list.admin_groups_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type.p2p_secondary_path_list.admin_groups_type.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type.p2p_secondary_path_list.lsp_instances_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.tunnels_type.tunnel_list.p2p_tunnel_attributes_type.p2p_secondary_paths_type.p2p_secondary_path_list.lsp_instances_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.container_tunnels_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.container_tunnels_type.container_tunnel_list") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.container_tunnels_type.container_tunnel_list.state_type") + proto.RegisterType((*NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType)(nil), "network_instances_te.network_instance_list.mpls_type.lsps_type.constrained_path_type.container_tunnels_type.container_tunnel_list.state_type.sampling_type") + proto.RegisterExtension(E_JnprNetworkInstancesTeExt) +} + +func init() { proto.RegisterFile("rpd_te_oc.proto", fileDescriptor_5d10f38d59cb24ab) } + +var fileDescriptor_5d10f38d59cb24ab = []byte{ + // 3468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5c, 0x6b, 0x6c, 0x1d, 0xd5, + 0xb5, 0xd6, 0xf8, 0x11, 0xec, 0x75, 0x7c, 0xfc, 0xd8, 0x8e, 0x9d, 0xe3, 0x49, 0x08, 0x86, 0xdc, + 0x7b, 0x31, 0x70, 0x73, 0x7c, 0x6f, 0x88, 0x43, 0x20, 0x90, 0x10, 0x3b, 0x01, 0x05, 0x91, 0x90, + 0x7b, 0x6c, 0x2e, 0x2a, 0x3f, 0x3a, 0x9d, 0x33, 0xb3, 0xcf, 0xf1, 0x84, 0x39, 0x33, 0xc3, 0xec, + 0x7d, 0xfc, 0xa8, 0x8a, 0x0a, 0x81, 0x96, 0xa2, 0x96, 0xd2, 0x88, 0x8a, 0x77, 0x05, 0xa2, 0xe5, + 0x0f, 0xa0, 0x56, 0xaa, 0xe8, 0x8f, 0xd2, 0x56, 0xa0, 0x3e, 0x54, 0xd4, 0xd2, 0xaa, 0xa5, 0x95, + 0x4a, 0xab, 0x56, 0xa2, 0x51, 0x1f, 0x52, 0x5b, 0x89, 0x96, 0x3e, 0xf8, 0x55, 0xa9, 0xda, 0xaf, + 0x79, 0x9d, 0xb1, 0x9d, 0x26, 0x71, 0x62, 0xe7, 0x9f, 0xe7, 0x5b, 0x6b, 0xcf, 0x5e, 0x7b, 0xed, + 0xb5, 0xd6, 0x5e, 0x6b, 0xcd, 0x3e, 0x86, 0xbe, 0x30, 0xb0, 0x0d, 0x8a, 0x0d, 0xdf, 0x2a, 0x07, + 0xa1, 0x4f, 0x7d, 0x7d, 0x90, 0x62, 0x17, 0x37, 0x30, 0x0d, 0x17, 0x0d, 0xea, 0x07, 0x02, 0xbc, + 0xec, 0x17, 0xc7, 0x35, 0xd8, 0xe8, 0x61, 0x3a, 0xef, 0x87, 0x77, 0x19, 0x8e, 0x47, 0xa8, 0xe9, + 0x59, 0x98, 0x18, 0x14, 0xa3, 0x3b, 0xa0, 0x3f, 0x8b, 0x97, 0x1e, 0xd7, 0x46, 0xdb, 0xc7, 0x0a, + 0x3b, 0xae, 0x2a, 0xe7, 0x8d, 0x68, 0x01, 0x0d, 0xd7, 0x21, 0xb4, 0xd2, 0x27, 0xe1, 0x43, 0x12, + 0xd5, 0x7f, 0x7f, 0x9f, 0x06, 0x43, 0xb9, 0xbc, 0x68, 0x04, 0x3a, 0x3c, 0xb3, 0x81, 0x4b, 0x57, + 0x8f, 0x6a, 0x63, 0xdd, 0x93, 0x9d, 0xc7, 0x6f, 0x6c, 0xeb, 0xd2, 0x2a, 0x1c, 0x42, 0xb7, 0x40, + 0x47, 0x23, 0x70, 0x09, 0x13, 0x41, 0x1b, 0x2b, 0xec, 0x98, 0xf8, 0x37, 0x44, 0x28, 0xb3, 0x81, + 0x06, 0x5d, 0x0c, 0x70, 0x85, 0xbf, 0x43, 0xff, 0xed, 0xbd, 0x1a, 0x74, 0x47, 0x20, 0x62, 0x2a, + 0xa0, 0xd8, 0xa8, 0xbb, 0x7e, 0xd5, 0x74, 0x0d, 0x93, 0xd2, 0xd0, 0xa9, 0x36, 0x29, 0x8e, 0xe6, + 0xba, 0xed, 0xb4, 0xe6, 0x2a, 0xe7, 0xbd, 0x52, 0x48, 0x81, 0x28, 0xbe, 0x99, 0x53, 0xf6, 0x47, + 0x04, 0xf4, 0x49, 0x0d, 0x36, 0x51, 0x6c, 0x38, 0x1e, 0xc5, 0x61, 0xcd, 0xb4, 0x70, 0x52, 0x8e, + 0x27, 0x84, 0x1c, 0x95, 0xd3, 0x96, 0x23, 0xef, 0xad, 0x42, 0x94, 0x21, 0x8a, 0x0f, 0x29, 0x62, + 0x42, 0x9a, 0x19, 0xe8, 0x70, 0x49, 0x40, 0x4a, 0x4f, 0x8a, 0x99, 0xf7, 0x9d, 0xde, 0xcc, 0xec, + 0x15, 0x52, 0xef, 0xec, 0x4f, 0xfd, 0xbd, 0x1e, 0x18, 0x59, 0x52, 0x2b, 0xe8, 0x6e, 0xe8, 0x24, + 0xa1, 0x5b, 0x8f, 0xd4, 0x7e, 0xe7, 0x59, 0x56, 0x7b, 0x99, 0xbf, 0x5d, 0xc8, 0x23, 0x66, 0x42, + 0x8f, 0x6a, 0x30, 0xc0, 0x47, 0x9a, 0x76, 0xc3, 0xf1, 0x8c, 0x7a, 0xe8, 0x37, 0x83, 0x48, 0xdd, + 0xb5, 0xb3, 0x3d, 0x7f, 0xcb, 0x4c, 0x42, 0x96, 0x3e, 0x86, 0xef, 0x67, 0xf0, 0xcd, 0x1c, 0x45, + 0x0f, 0x6a, 0x50, 0xa4, 0xd8, 0x70, 0x49, 0x60, 0x50, 0xa7, 0x81, 0xc3, 0x68, 0x1b, 0xaa, 0x67, + 0x5b, 0xa2, 0xd4, 0x2c, 0x42, 0x9a, 0x02, 0xc5, 0xb7, 0x92, 0x60, 0x86, 0x23, 0xfa, 0x8b, 0xed, + 0x00, 0xb1, 0xd6, 0xd0, 0x22, 0x74, 0xb0, 0x27, 0x15, 0x06, 0xec, 0xd5, 0xdb, 0x20, 0xfe, 0xa7, + 0x88, 0x1f, 0x7c, 0x4a, 0xfd, 0xb9, 0x36, 0xe8, 0x8e, 0xb0, 0x28, 0x4e, 0xec, 0x6c, 0x8d, 0x13, + 0x1f, 0xd7, 0xa0, 0x93, 0x50, 0x93, 0x62, 0x65, 0x46, 0xfe, 0xb9, 0x90, 0xb2, 0xcc, 0xa7, 0x54, + 0xb6, 0xc5, 0xfe, 0xd6, 0x7d, 0x80, 0x18, 0x44, 0x28, 0x19, 0xd9, 0xa4, 0xa8, 0x1b, 0xa1, 0x73, + 0xce, 0x74, 0x9b, 0x62, 0x19, 0xc5, 0x8a, 0x78, 0x60, 0x9c, 0x96, 0x4f, 0x68, 0x69, 0x82, 0x83, + 0xfc, 0x6f, 0xb4, 0x0d, 0x8a, 0x35, 0xd7, 0xf7, 0x6d, 0xc7, 0xab, 0xf3, 0xd7, 0x95, 0x76, 0xf1, + 0xd7, 0xf4, 0x28, 0x70, 0x66, 0x31, 0xc0, 0xfa, 0x7b, 0xed, 0x30, 0x9c, 0x6f, 0x62, 0xe8, 0x49, + 0x0d, 0x0a, 0x09, 0x54, 0x6d, 0xe0, 0xfc, 0xb9, 0xb1, 0xf0, 0x72, 0x02, 0x11, 0x7b, 0x0a, 0x66, + 0x64, 0xee, 0xfa, 0xd7, 0xda, 0xa0, 0x3f, 0xcb, 0x80, 0xc6, 0xd3, 0x58, 0xeb, 0x66, 0xf7, 0xc6, + 0x6f, 0x38, 0xc2, 0x74, 0xf9, 0x54, 0x76, 0xdb, 0x8f, 0x6b, 0xe7, 0x69, 0x71, 0x39, 0xa6, 0xf0, + 0x81, 0x94, 0x29, 0x8c, 0xe5, 0xac, 0x4d, 0x98, 0x45, 0x76, 0x51, 0x97, 0x42, 0x4f, 0xd5, 0xa1, + 0x46, 0xe0, 0x13, 0x87, 0x3a, 0xbe, 0x27, 0xed, 0xa4, 0x50, 0x75, 0xe8, 0x51, 0x09, 0xe9, 0xcf, + 0xb6, 0x01, 0x6a, 0xf5, 0x62, 0xf4, 0x40, 0x56, 0x1d, 0x8d, 0xd5, 0x0f, 0x1d, 0x39, 0x0b, 0xbf, + 0x4f, 0x4b, 0xad, 0x7c, 0x1b, 0x14, 0xf9, 0x44, 0xae, 0x6b, 0xd8, 0xd8, 0x35, 0x17, 0xf9, 0xb2, + 0x8b, 0x95, 0x1e, 0x09, 0x1e, 0x60, 0x18, 0x63, 0xb2, 0x5c, 0x6c, 0x7a, 0xcd, 0x40, 0x32, 0x89, + 0x55, 0xf7, 0x48, 0x50, 0x30, 0x5d, 0x01, 0xfd, 0x21, 0xf6, 0x03, 0xea, 0x34, 0x9c, 0x0f, 0x63, + 0x21, 0x84, 0x74, 0x98, 0xbe, 0x18, 0xe7, 0x41, 0x4c, 0x7f, 0xa7, 0x17, 0xb6, 0x2c, 0x77, 0x04, + 0x22, 0x96, 0x0c, 0x44, 0x54, 0xe5, 0x1a, 0xe6, 0xd9, 0x3f, 0x6b, 0xcb, 0x31, 0x85, 0x3b, 0x41, + 0x3c, 0xa9, 0xfe, 0xf5, 0x22, 0xf4, 0xa6, 0xa9, 0x68, 0x0c, 0x7a, 0x62, 0xc4, 0xb1, 0xd3, 0xd6, + 0x5f, 0x88, 0x48, 0x87, 0x6c, 0x74, 0x7f, 0x76, 0xaf, 0xdd, 0x55, 0x97, 0xbd, 0x75, 0xab, 0x99, + 0x03, 0x16, 0x63, 0xa6, 0x10, 0xd7, 0xd4, 0x31, 0x4a, 0x57, 0x5f, 0x9a, 0xd4, 0xbc, 0x42, 0xaa, + 0x58, 0x79, 0x15, 0x5c, 0x43, 0xaf, 0x68, 0x30, 0xec, 0xd4, 0x03, 0x23, 0x0a, 0xa2, 0x55, 0xd3, + 0xb3, 0xe7, 0x1d, 0x9b, 0xce, 0xaa, 0xa3, 0xf5, 0x9e, 0x73, 0x20, 0x65, 0xae, 0x00, 0x42, 0xdc, + 0x8d, 0x4e, 0x3d, 0xb8, 0x49, 0xd2, 0x26, 0x15, 0x09, 0x7d, 0x59, 0x83, 0xa1, 0x98, 0xb1, 0x81, + 0x4d, 0xd2, 0x0c, 0x71, 0x03, 0x7b, 0xb4, 0xf4, 0x94, 0x90, 0xfa, 0x23, 0xab, 0x2f, 0x75, 0xee, + 0xfc, 0x52, 0xe8, 0x88, 0x76, 0x38, 0x26, 0xe9, 0x8b, 0x29, 0x97, 0xbf, 0x34, 0x63, 0xc6, 0x22, + 0xd0, 0xa5, 0xec, 0xf7, 0x72, 0xe8, 0xe3, 0xe7, 0x68, 0x03, 0x37, 0xaa, 0x38, 0x24, 0xb3, 0x4e, + 0x50, 0xda, 0x39, 0xda, 0xce, 0xc2, 0x21, 0x83, 0x0f, 0x47, 0x28, 0xba, 0x24, 0x7d, 0x88, 0x4d, + 0x70, 0xa6, 0xe4, 0x51, 0xf2, 0x4f, 0x0d, 0x50, 0xab, 0x2d, 0xa0, 0xc7, 0xb2, 0x0e, 0xf2, 0xd1, + 0xf3, 0x61, 0x92, 0x39, 0xe1, 0xf1, 0x48, 0x4a, 0x55, 0x5b, 0x92, 0x61, 0x48, 0xe8, 0x29, 0x06, + 0xd0, 0x65, 0xd0, 0x43, 0x9a, 0xd5, 0x98, 0x41, 0x46, 0xc5, 0x24, 0xc6, 0x92, 0xa4, 0xcd, 0xcb, + 0x58, 0x19, 0x7a, 0x2e, 0xab, 0x88, 0x4f, 0x68, 0xe7, 0xd5, 0xec, 0x73, 0x54, 0xf2, 0xc1, 0x94, + 0x4a, 0xfe, 0x13, 0x7a, 0xe9, 0x6c, 0x88, 0xc9, 0xac, 0xef, 0xda, 0x22, 0xf1, 0x11, 0x7a, 0x29, + 0x46, 0x28, 0xcb, 0x7c, 0xd8, 0x69, 0x60, 0x63, 0x97, 0x9a, 0x46, 0x80, 0x43, 0x0b, 0x7b, 0xd4, + 0xac, 0x2b, 0xfd, 0xf4, 0x71, 0xfc, 0x68, 0x04, 0xeb, 0x6f, 0xb5, 0x81, 0xbe, 0xb4, 0x49, 0xa3, + 0x67, 0xb3, 0x1a, 0x7a, 0x50, 0x3b, 0x9f, 0x2e, 0x96, 0xa3, 0xa0, 0x13, 0xe9, 0x23, 0x75, 0x0a, + 0xb6, 0xba, 0x26, 0xa1, 0x86, 0x65, 0xba, 0x56, 0xd3, 0x35, 0x29, 0xb6, 0x0d, 0x12, 0x1a, 0x4d, + 0xea, 0xb8, 0x0e, 0x31, 0x79, 0xd2, 0xc0, 0x34, 0xd6, 0x51, 0xd9, 0xcc, 0xb8, 0xa6, 0x22, 0xa6, + 0xe9, 0xf0, 0xf6, 0x98, 0x05, 0xed, 0x85, 0x2d, 0xfc, 0x25, 0xc4, 0x6c, 0x04, 0x2e, 0x56, 0x52, + 0x44, 0x6f, 0xe2, 0xba, 0xec, 0xa8, 0x94, 0x18, 0xcf, 0x34, 0x67, 0x91, 0xfe, 0x2e, 0x5f, 0xa3, + 0x3f, 0x56, 0x85, 0xee, 0xa8, 0xd6, 0x43, 0xf7, 0x69, 0xd0, 0x6f, 0xf9, 0x1e, 0xa1, 0xa1, 0xe9, + 0x78, 0xd8, 0x36, 0x02, 0x93, 0xce, 0x2a, 0x75, 0xde, 0x7e, 0x86, 0x85, 0x64, 0x39, 0xfb, 0x62, + 0x59, 0x42, 0x25, 0xe0, 0xa3, 0x26, 0x9d, 0xd5, 0x1f, 0x30, 0x61, 0x28, 0x97, 0x15, 0x3d, 0xaf, + 0xc1, 0x46, 0x96, 0x72, 0xd9, 0x06, 0x5e, 0x08, 0x5c, 0xc7, 0x62, 0xf9, 0x95, 0x49, 0x67, 0xc9, + 0x19, 0x96, 0x0b, 0x2b, 0x48, 0x58, 0xce, 0x9b, 0x52, 0x36, 0x03, 0x38, 0xe9, 0xa0, 0xa4, 0x30, + 0xe9, 0x09, 0xba, 0x07, 0x2e, 0xa2, 0x4d, 0xcf, 0xc3, 0x6e, 0x54, 0x8c, 0x56, 0x57, 0x47, 0x2c, + 0x39, 0x8b, 0x90, 0x44, 0xcd, 0xc9, 0xce, 0xf2, 0x01, 0xcb, 0xf7, 0x28, 0xe3, 0x0e, 0x0d, 0x25, + 0xc9, 0x93, 0x67, 0x94, 0x5d, 0xac, 0x24, 0x49, 0xcb, 0x7c, 0x42, 0xa6, 0xfe, 0x08, 0x9f, 0x11, + 0xb0, 0xfe, 0x63, 0x80, 0x91, 0x25, 0xb5, 0x89, 0x5e, 0xd5, 0x60, 0x30, 0x87, 0xaa, 0xd2, 0xba, + 0xd3, 0x0d, 0x78, 0xa7, 0xbd, 0xbd, 0x79, 0x14, 0x91, 0xfe, 0x0d, 0xb4, 0xec, 0xbb, 0xfe, 0x8f, + 0x2e, 0x28, 0x2d, 0xc5, 0xbf, 0x5c, 0x6f, 0xec, 0xa5, 0x6c, 0xd4, 0x7a, 0x74, 0xcd, 0x2c, 0x33, + 0x27, 0x53, 0xfc, 0xa5, 0x06, 0xc3, 0x11, 0x63, 0xe8, 0x37, 0x29, 0x36, 0xfc, 0xea, 0x31, 0x6c, + 0xd1, 0xc8, 0xd8, 0xbf, 0xb0, 0x76, 0xc4, 0xcf, 0x17, 0x54, 0xe6, 0x3f, 0x8a, 0x58, 0x61, 0xb4, + 0xdb, 0x04, 0x49, 0x1f, 0x5d, 0xa9, 0xee, 0xd7, 0x1f, 0xe9, 0x84, 0xcd, 0xcb, 0xbc, 0x17, 0xfd, + 0x5d, 0x83, 0xa1, 0x5c, 0xba, 0xb2, 0xe2, 0xd7, 0xd6, 0x85, 0x7e, 0xf2, 0x69, 0xc2, 0xf8, 0x07, + 0x73, 0x54, 0xa7, 0xbf, 0xdf, 0x06, 0xfa, 0xd2, 0x63, 0xd0, 0x66, 0xe8, 0x74, 0x3c, 0x1b, 0x2f, + 0x88, 0xaa, 0x51, 0x79, 0x80, 0xc0, 0xd0, 0xc9, 0xac, 0x0b, 0x7c, 0x6f, 0xbd, 0xeb, 0x28, 0xe7, + 0xec, 0xbf, 0x23, 0x65, 0x5a, 0x25, 0xb8, 0xc8, 0xb4, 0xed, 0x10, 0x13, 0x22, 0xad, 0x4b, 0x3d, + 0xa2, 0x11, 0xe8, 0x9a, 0xf5, 0x03, 0x91, 0x30, 0xed, 0x14, 0xa4, 0x59, 0x3f, 0xe0, 0xa9, 0xd2, + 0x46, 0xa5, 0x44, 0x51, 0x2d, 0x8b, 0x07, 0xfd, 0xd3, 0x37, 0x41, 0x4f, 0x32, 0xec, 0xa2, 0x07, + 0x35, 0xd8, 0x20, 0x00, 0x65, 0x73, 0xde, 0xea, 0x1f, 0x40, 0xf2, 0x41, 0x58, 0x88, 0x9c, 0x5e, + 0xff, 0xeb, 0x01, 0x28, 0x24, 0xf0, 0xe5, 0xc2, 0xe0, 0x30, 0x6c, 0x20, 0x7e, 0x33, 0xb4, 0xd4, + 0xa2, 0xe5, 0x13, 0x7a, 0x24, 0xb2, 0x8d, 0x09, 0x6e, 0x1a, 0x8b, 0xe7, 0x76, 0x29, 0x39, 0x21, + 0xf0, 0x19, 0x0d, 0xba, 0xe3, 0x12, 0xf4, 0x89, 0x33, 0x2a, 0x41, 0x4f, 0x5b, 0xac, 0x4c, 0x09, + 0x1a, 0x0b, 0x84, 0x5e, 0xd3, 0x60, 0x28, 0xd8, 0x11, 0xc8, 0x93, 0x38, 0xf9, 0x25, 0x42, 0xe6, + 0x00, 0x0f, 0x69, 0xe7, 0x58, 0xd6, 0x5c, 0x69, 0x84, 0xdc, 0x83, 0xc1, 0x8e, 0x40, 0xe4, 0x06, + 0xf1, 0xf7, 0x0b, 0xfd, 0xe9, 0xae, 0xdc, 0x28, 0xbc, 0x2b, 0xd1, 0x7d, 0x45, 0xd0, 0xc1, 0x1d, + 0xe4, 0x1a, 0x81, 0x71, 0xbe, 0xed, 0x80, 0x88, 0x53, 0xf7, 0x4c, 0x97, 0xd5, 0x2a, 0xfc, 0x03, + 0x99, 0xe5, 0xbb, 0xa5, 0xdd, 0x9c, 0x63, 0x20, 0xa2, 0x1c, 0x95, 0x04, 0x34, 0x0a, 0x05, 0x1b, + 0x13, 0x2b, 0x74, 0x02, 0x9e, 0x69, 0x5f, 0x2b, 0x6a, 0xdb, 0x04, 0xc4, 0xca, 0x5f, 0x51, 0xb2, + 0x32, 0x61, 0x9a, 0xa4, 0x74, 0x9d, 0x60, 0xe1, 0xd8, 0x34, 0x87, 0xd0, 0x56, 0x80, 0x20, 0xc4, + 0x35, 0x1c, 0x62, 0xcf, 0xc2, 0xa5, 0x3d, 0xdc, 0x2d, 0x13, 0x08, 0xab, 0x7a, 0x1b, 0x98, 0x86, + 0x8e, 0x25, 0xfc, 0xf9, 0x7a, 0xfe, 0x06, 0x10, 0x10, 0x77, 0xe9, 0x61, 0xd8, 0x20, 0x9e, 0x4a, + 0x37, 0x8c, 0x6a, 0x63, 0x9d, 0x15, 0xf9, 0x84, 0xae, 0x07, 0x9d, 0x2d, 0x01, 0x5b, 0x4c, 0x12, + 0x83, 0xd0, 0x45, 0x97, 0x15, 0xa3, 0x77, 0x37, 0x31, 0xa1, 0xd8, 0x2e, 0xed, 0xe3, 0xef, 0x29, + 0xc5, 0x1c, 0xd3, 0x8c, 0xa1, 0xa2, 0xe8, 0xb9, 0x1d, 0xb6, 0x1b, 0x73, 0x3b, 0x6c, 0x09, 0xbf, + 0xdb, 0x9f, 0xf2, 0x3b, 0x56, 0xd8, 0xfb, 0x35, 0x6a, 0x04, 0x21, 0xc6, 0x0d, 0xa1, 0xa2, 0xc9, + 0x51, 0x6d, 0xac, 0xab, 0xd2, 0xcb, 0xe0, 0xa3, 0x11, 0xca, 0xca, 0x3c, 0x82, 0x69, 0x33, 0x30, + 0x82, 0xd0, 0xf1, 0x43, 0x87, 0x2e, 0x96, 0xa6, 0xf8, 0x4c, 0x45, 0x8e, 0x1e, 0x95, 0x20, 0xda, + 0x06, 0x45, 0x5e, 0x08, 0x46, 0x5c, 0x07, 0x44, 0x0d, 0xcc, 0xc0, 0x88, 0xe9, 0x12, 0x28, 0xf8, + 0x01, 0x0e, 0x95, 0xc2, 0x0f, 0x0a, 0x75, 0x31, 0x48, 0xea, 0xfb, 0x05, 0x0d, 0xba, 0x2c, 0xbf, + 0xc9, 0x4a, 0x30, 0x72, 0xa6, 0x55, 0xde, 0x59, 0x08, 0x09, 0x65, 0x25, 0x8b, 0xb0, 0xe6, 0x48, + 0x34, 0xb6, 0x01, 0x8e, 0x37, 0x8b, 0x43, 0x87, 0xd5, 0x74, 0x72, 0x83, 0xf7, 0x8a, 0x0d, 0x88, + 0xf0, 0xc3, 0x62, 0xa7, 0x37, 0x43, 0xb7, 0x7c, 0xb9, 0x6c, 0x14, 0x16, 0x2b, 0x5d, 0x02, 0x38, + 0x64, 0xeb, 0x9f, 0x69, 0x83, 0x62, 0x6a, 0x0e, 0x66, 0x94, 0x5c, 0x44, 0x6b, 0xd6, 0xf4, 0xea, + 0x98, 0xc8, 0x0a, 0xb1, 0xc0, 0xb0, 0x29, 0x01, 0x31, 0x55, 0x0b, 0x11, 0x15, 0x8f, 0x28, 0x01, + 0x7b, 0x38, 0xa8, 0x98, 0x98, 0xaa, 0x3d, 0xd7, 0xf1, 0x84, 0x79, 0xf0, 0xe0, 0xca, 0x54, 0xcd, + 0x21, 0x66, 0x19, 0xe8, 0x4a, 0x18, 0xb0, 0x9a, 0x61, 0xc8, 0xaa, 0x59, 0xa1, 0x13, 0x27, 0xf2, + 0xc1, 0x3e, 0x49, 0x60, 0x79, 0x2f, 0xe7, 0xdd, 0x0d, 0x25, 0x0f, 0x2f, 0x50, 0x23, 0x32, 0x2e, + 0x5e, 0x9a, 0x8a, 0x21, 0xc2, 0x45, 0x87, 0x19, 0xbd, 0x92, 0x22, 0xf3, 0x91, 0xff, 0x03, 0x1b, + 0x79, 0xf5, 0x4a, 0x43, 0xd3, 0x13, 0x5d, 0x71, 0x31, 0x4a, 0xb8, 0x2d, 0x62, 0xb4, 0x99, 0x88, + 0xc4, 0x46, 0xe8, 0x1f, 0xeb, 0x83, 0xde, 0xd5, 0x6a, 0x8d, 0x9c, 0xa5, 0x70, 0x9c, 0x73, 0x68, + 0xbc, 0xaa, 0x41, 0xaf, 0xd9, 0xa4, 0xbe, 0xd1, 0x72, 0x72, 0x9c, 0x38, 0xcf, 0xb2, 0xa6, 0xa5, + 0x12, 0x42, 0x17, 0x19, 0x18, 0xb5, 0x32, 0xf5, 0x47, 0xd2, 0x6d, 0x0b, 0x16, 0x68, 0x03, 0x6c, + 0x39, 0x35, 0xc7, 0x92, 0xfb, 0x1c, 0x37, 0x77, 0x06, 0x52, 0x94, 0x19, 0xf9, 0xe1, 0x80, 0x60, + 0x9a, 0x58, 0xb8, 0x32, 0x47, 0x4c, 0xe3, 0x6e, 0x69, 0x14, 0xbc, 0xb1, 0x9d, 0xe0, 0x9c, 0xe0, + 0x9c, 0x03, 0x8a, 0x12, 0x4b, 0x74, 0x6f, 0x01, 0x06, 0x73, 0x04, 0x47, 0xaf, 0x64, 0x2d, 0xe1, + 0x99, 0xb5, 0xa7, 0xdd, 0x1c, 0xeb, 0xf8, 0x86, 0x06, 0x5d, 0xfe, 0x1c, 0x0e, 0x6b, 0xae, 0x3f, + 0xaf, 0xec, 0xe2, 0xd9, 0x35, 0x28, 0xb9, 0x92, 0x51, 0x86, 0x3b, 0xf5, 0x88, 0x5e, 0xd7, 0xa0, + 0xbb, 0xe9, 0xd9, 0x72, 0x01, 0x32, 0xcf, 0x78, 0x6e, 0x0d, 0x2e, 0x20, 0x12, 0x52, 0xa6, 0x4d, + 0xd1, 0xb3, 0xfe, 0x43, 0x2d, 0x9b, 0x9f, 0x63, 0xcf, 0xac, 0xba, 0x58, 0x74, 0xbd, 0xbb, 0x2a, + 0xea, 0x11, 0x0d, 0xc1, 0x06, 0x96, 0x13, 0x54, 0xe7, 0xa5, 0x1d, 0x77, 0x36, 0x1c, 0x6f, 0x72, + 0x9e, 0xc3, 0xe6, 0x02, 0x83, 0x27, 0x24, 0x6c, 0x2e, 0x4c, 0xce, 0xb3, 0x63, 0xd4, 0xb4, 0x8f, + 0x35, 0x09, 0x15, 0x1d, 0xc5, 0x39, 0xd3, 0xe5, 0x31, 0xb4, 0x58, 0xe9, 0x15, 0xf0, 0x21, 0x89, + 0xb2, 0x13, 0x43, 0x32, 0x46, 0xed, 0x51, 0x1e, 0x3a, 0x8b, 0x15, 0xf9, 0x82, 0x19, 0x05, 0xa3, + 0xff, 0x80, 0x5e, 0x36, 0x95, 0x39, 0x87, 0x43, 0xb3, 0x8e, 0xd9, 0x94, 0x37, 0x08, 0x8f, 0x6a, + 0x98, 0x0b, 0xfb, 0x05, 0x38, 0x39, 0xaf, 0xbf, 0xdc, 0x06, 0xc5, 0xd4, 0x7e, 0xa1, 0x6f, 0x66, + 0x9d, 0xe3, 0xc5, 0xb5, 0x6e, 0x62, 0x39, 0x65, 0xd4, 0xff, 0x9f, 0xe2, 0x36, 0x95, 0x61, 0x90, + 0x86, 0x4e, 0xbd, 0x8e, 0x43, 0x03, 0xcf, 0xb1, 0x43, 0x8c, 0x1f, 0xa3, 0xf2, 0x80, 0x1d, 0x90, + 0xa4, 0x83, 0x8c, 0x32, 0xc5, 0x08, 0xfa, 0x17, 0xdb, 0xa0, 0x37, 0x6d, 0x1d, 0xe8, 0x5b, 0x59, + 0x7d, 0xbd, 0xb4, 0xe6, 0x2d, 0xfa, 0x1c, 0x2a, 0xec, 0xf1, 0x2b, 0x40, 0x5f, 0x3a, 0xb3, 0x47, + 0x2f, 0x67, 0x95, 0xf7, 0xd9, 0xb5, 0x53, 0x76, 0xe4, 0x44, 0xe0, 0xef, 0x6b, 0xd0, 0xcf, 0x06, + 0x04, 0xa1, 0xd3, 0x30, 0xc3, 0x45, 0xd1, 0x77, 0x3c, 0x5f, 0x91, 0x78, 0x19, 0xc9, 0xb3, 0x32, + 0x8a, 0x45, 0xf4, 0x06, 0x3b, 0x58, 0xa6, 0xcd, 0x50, 0x96, 0x93, 0xa1, 0x9f, 0x6a, 0xc0, 0x2a, + 0x2b, 0x83, 0x60, 0xcb, 0xf7, 0x6c, 0xc5, 0x1b, 0x55, 0x80, 0xcf, 0xaf, 0xb1, 0x05, 0x65, 0xc4, + 0x14, 0x6b, 0x1a, 0x08, 0x76, 0x04, 0xd3, 0x8a, 0xc0, 0x3b, 0xeb, 0x7a, 0x39, 0x65, 0xca, 0xa2, + 0x80, 0xa3, 0x8e, 0x17, 0x7f, 0x2a, 0x11, 0x05, 0x9c, 0x82, 0xf4, 0xdf, 0x20, 0x51, 0x0a, 0xb7, + 0x28, 0x0c, 0xfd, 0x3a, 0x6f, 0xbb, 0x65, 0xb3, 0xe4, 0x2b, 0x6b, 0x7d, 0xbb, 0x5b, 0x51, 0xde, + 0x74, 0xc9, 0x18, 0x81, 0xfe, 0xbb, 0xfe, 0x9c, 0xd5, 0xaf, 0xd4, 0x86, 0x79, 0x3b, 0xeb, 0xb6, + 0xaf, 0xaf, 0x4f, 0x6d, 0xe4, 0xb8, 0xf8, 0x9f, 0x34, 0x55, 0xcf, 0xa7, 0xaf, 0x0a, 0x7e, 0x77, + 0x9d, 0xae, 0xb0, 0xf5, 0x32, 0x62, 0xc1, 0x4c, 0x5c, 0x44, 0x7c, 0x57, 0x83, 0xa2, 0x4b, 0x82, + 0x78, 0x4d, 0xcc, 0xfb, 0x99, 0x7d, 0xbf, 0xb1, 0x4e, 0xd7, 0x9b, 0x5a, 0x8c, 0x30, 0xf9, 0x1e, + 0x97, 0x04, 0xea, 0x6a, 0x32, 0xd1, 0x5f, 0x6f, 0x5f, 0xf1, 0xd6, 0xde, 0x08, 0x74, 0x35, 0x09, + 0x36, 0x2c, 0x12, 0xd4, 0xf8, 0xc9, 0xd6, 0x55, 0xb9, 0xa8, 0x49, 0xf0, 0x14, 0x09, 0x6a, 0x2c, + 0x53, 0x63, 0xb0, 0x41, 0x1d, 0x5c, 0x0d, 0xb1, 0x79, 0x97, 0xbc, 0x94, 0xd4, 0x5d, 0xe9, 0x65, + 0xf0, 0x4c, 0x84, 0xa2, 0xff, 0x06, 0x94, 0xee, 0x13, 0xf3, 0x59, 0x44, 0xc1, 0xda, 0x8f, 0x13, + 0x9f, 0x84, 0xf8, 0x35, 0xb0, 0x74, 0x87, 0xe8, 0x86, 0x96, 0x0e, 0x51, 0x6b, 0xfb, 0x64, 0xef, + 0x29, 0xb5, 0x4f, 0xf6, 0xe5, 0xb7, 0x4f, 0x42, 0x71, 0x45, 0x3c, 0xd1, 0xf1, 0x01, 0x0e, 0x89, + 0x66, 0xcf, 0x36, 0x28, 0x7a, 0x3e, 0x75, 0x6a, 0x8b, 0xaa, 0xc3, 0xf2, 0x7f, 0xe2, 0x2a, 0xa2, + 0x00, 0x65, 0x8f, 0xe5, 0x12, 0x28, 0x70, 0x45, 0x48, 0x16, 0x51, 0xf2, 0x03, 0x83, 0x32, 0x0c, + 0xb2, 0xaf, 0x71, 0x0d, 0x4f, 0x3e, 0x39, 0x83, 0x6c, 0x69, 0xec, 0x86, 0x92, 0x49, 0x88, 0x6f, + 0x39, 0xfc, 0x93, 0x76, 0x48, 0xe6, 0x58, 0x88, 0x27, 0xc4, 0xf1, 0x3d, 0x52, 0xda, 0x33, 0xda, + 0x3e, 0x56, 0xac, 0x0c, 0xc7, 0xf4, 0x0a, 0x99, 0x0b, 0xa6, 0x25, 0x55, 0xff, 0x54, 0x3b, 0x0c, + 0xb4, 0xde, 0x80, 0xfc, 0x43, 0x36, 0x28, 0xbd, 0x75, 0xa1, 0xb8, 0x6c, 0x4e, 0xbe, 0xf6, 0x50, + 0xcb, 0xb5, 0x3b, 0xbc, 0x60, 0xb9, 0x4d, 0x1b, 0xcb, 0x9b, 0x33, 0x57, 0xf3, 0x9b, 0x33, 0x3d, + 0x12, 0xe4, 0xce, 0x8e, 0xae, 0x84, 0x01, 0xc7, 0x13, 0x4c, 0xa6, 0xeb, 0x4a, 0x46, 0x71, 0x0f, + 0xa7, 0x4f, 0x12, 0xf6, 0xbb, 0x6e, 0x2b, 0xaf, 0xb7, 0x98, 0xba, 0x8e, 0x13, 0xf1, 0x7a, 0x8b, + 0xe2, 0x4e, 0xce, 0xe7, 0x3b, 0x00, 0xb5, 0xba, 0x1d, 0x33, 0x00, 0xd7, 0xb7, 0x4c, 0xd7, 0x48, + 0x7c, 0xd2, 0xa9, 0x00, 0x87, 0x0e, 0xf1, 0x0f, 0x3a, 0x43, 0xb0, 0x81, 0x0f, 0x53, 0x0d, 0xad, + 0x4e, 0xe6, 0xa7, 0x36, 0x4b, 0x3e, 0x49, 0xb3, 0x6a, 0xf9, 0xb6, 0xea, 0x37, 0xa9, 0x47, 0xf4, + 0xc7, 0xec, 0x0e, 0xff, 0xe4, 0x82, 0x09, 0x52, 0x39, 0x5b, 0xfc, 0x66, 0x7a, 0x8b, 0x57, 0x54, + 0x67, 0x8b, 0xdb, 0xee, 0xcc, 0x71, 0xdb, 0xb8, 0x93, 0x3c, 0x91, 0xea, 0x24, 0x6f, 0x49, 0x7e, + 0xad, 0xd8, 0xc5, 0x7d, 0x35, 0xf1, 0xb5, 0xe0, 0x4a, 0x18, 0x10, 0xb5, 0x64, 0xf2, 0x5a, 0x9d, + 0xf0, 0xe8, 0x3e, 0x5e, 0x4e, 0x26, 0x6e, 0xb4, 0x0d, 0xc3, 0x86, 0x10, 0x9b, 0xc4, 0xf7, 0x64, + 0xb0, 0x93, 0x4f, 0xfa, 0xc3, 0x03, 0x50, 0x5a, 0x2a, 0x8d, 0x63, 0xbe, 0x8b, 0x5a, 0x89, 0x2a, + 0xd7, 0x7a, 0x75, 0x1d, 0x64, 0xa2, 0x39, 0x04, 0x71, 0xfa, 0xf4, 0x67, 0x33, 0x54, 0xfd, 0xfe, + 0x3e, 0xd8, 0xb4, 0x04, 0xf7, 0x72, 0xd7, 0xde, 0x7f, 0x95, 0xb5, 0xfe, 0xef, 0xac, 0x63, 0xb5, + 0xe4, 0x64, 0x5e, 0x7f, 0x59, 0x22, 0xf3, 0x7a, 0x73, 0x3d, 0x2f, 0x73, 0x85, 0xf4, 0xeb, 0x6f, + 0x4b, 0xa5, 0x5f, 0x3f, 0x58, 0xcf, 0x8b, 0x5e, 0x31, 0x07, 0xfb, 0x79, 0xdb, 0x79, 0xcc, 0xc1, + 0x76, 0x9d, 0x52, 0x0e, 0x76, 0xcd, 0x29, 0xe4, 0x60, 0xbb, 0x4f, 0x29, 0x07, 0xbb, 0x76, 0xe5, + 0x1c, 0xec, 0xba, 0x96, 0x1c, 0xec, 0xf4, 0x93, 0xa3, 0x13, 0xb9, 0xc9, 0xd1, 0xbb, 0xd9, 0xe0, + 0xf1, 0xb3, 0x0b, 0xca, 0xab, 0xd6, 0x78, 0x86, 0x74, 0xa2, 0x3d, 0x37, 0x43, 0xfa, 0xaf, 0x9c, + 0x23, 0x5d, 0xc5, 0xfc, 0xe4, 0xc9, 0xfe, 0xe7, 0xec, 0xe6, 0xbd, 0x7d, 0x61, 0x45, 0x87, 0x9c, + 0xc3, 0x20, 0x3f, 0x37, 0xd4, 0x0f, 0x65, 0xf7, 0xf4, 0x94, 0x32, 0x9e, 0xdc, 0x7c, 0xe4, 0xdb, + 0x3d, 0x30, 0x9c, 0x7f, 0x23, 0x11, 0x7d, 0x49, 0x5c, 0x6f, 0x4d, 0x91, 0x54, 0x2e, 0x72, 0x5c, + 0x3b, 0x97, 0x97, 0x23, 0x5b, 0x60, 0xf9, 0x83, 0xdb, 0xcc, 0x95, 0x49, 0xfd, 0x7d, 0xe0, 0x97, + 0x61, 0x5b, 0x59, 0x97, 0xeb, 0xe2, 0xbc, 0x90, 0x35, 0xab, 0x87, 0xd7, 0xc0, 0xda, 0x72, 0x3c, + 0xf9, 0xa9, 0xee, 0x15, 0x4f, 0x8b, 0x8b, 0x01, 0xa2, 0x2b, 0x01, 0xea, 0x6e, 0x50, 0xb7, 0xba, + 0x11, 0x80, 0xd1, 0xff, 0xc2, 0x46, 0xcf, 0x0f, 0x1b, 0xa6, 0xab, 0xbe, 0x39, 0x4b, 0x7b, 0x11, + 0xc7, 0xc6, 0x60, 0x8a, 0x26, 0xcd, 0xe6, 0x52, 0xe8, 0x11, 0xbf, 0x56, 0x90, 0x1d, 0x6e, 0xf1, + 0x3d, 0xa6, 0x20, 0x30, 0xde, 0xdb, 0xe6, 0x59, 0xb1, 0xe3, 0x39, 0x8d, 0x66, 0x83, 0xff, 0x4e, + 0x4a, 0xf0, 0xc9, 0xaf, 0x31, 0x92, 0x70, 0x2b, 0x09, 0x62, 0x5e, 0x73, 0x21, 0xc3, 0xbb, 0x5b, + 0xf2, 0x0a, 0x42, 0xc4, 0x7b, 0x39, 0xf4, 0x29, 0x89, 0xd4, 0xb5, 0x0c, 0x71, 0x86, 0xf4, 0x46, + 0xb0, 0x38, 0x24, 0xc6, 0x61, 0x30, 0xc1, 0x18, 0x7d, 0x10, 0x12, 0xa7, 0x09, 0x8a, 0x99, 0xa3, + 0x6f, 0x42, 0xe3, 0x30, 0x68, 0xd6, 0xeb, 0x21, 0xae, 0x33, 0x65, 0xc6, 0x99, 0xfc, 0x1e, 0x9e, + 0xc9, 0xa3, 0x88, 0x14, 0x27, 0xf3, 0x7b, 0x61, 0xb3, 0xb8, 0x31, 0x6e, 0x1b, 0x79, 0x03, 0xaf, + 0xe7, 0x03, 0x47, 0x24, 0xcb, 0xfe, 0xd6, 0xf1, 0xbb, 0x60, 0x13, 0x2b, 0x1c, 0xe2, 0x1b, 0x37, + 0xf1, 0x58, 0xf1, 0x35, 0x6a, 0xa8, 0x61, 0x2e, 0x4c, 0x2b, 0x6a, 0x7a, 0x9c, 0xe3, 0xe5, 0x8e, + 0xdb, 0x2b, 0xc7, 0x39, 0x5e, 0xce, 0xb8, 0x71, 0x18, 0x24, 0x81, 0xeb, 0x50, 0x9a, 0x1e, 0xb3, + 0x4f, 0x2c, 0x30, 0x22, 0xc5, 0x03, 0xae, 0x82, 0x81, 0x06, 0x0e, 0xeb, 0x69, 0xf6, 0x1b, 0x39, + 0x7b, 0xbf, 0x24, 0x4c, 0x26, 0xcb, 0x20, 0xb6, 0x1d, 0x06, 0xf5, 0x8d, 0x48, 0xb9, 0xfc, 0x42, + 0x4c, 0x47, 0xa5, 0x8f, 0x11, 0x66, 0xfc, 0x23, 0x0a, 0x46, 0x7b, 0x60, 0xc4, 0xf1, 0x2c, 0x71, + 0xd1, 0xdf, 0x74, 0x8d, 0x94, 0x89, 0xc9, 0x3b, 0x32, 0xa5, 0x04, 0xc3, 0x91, 0x24, 0x1d, 0x4d, + 0xc0, 0x70, 0xcd, 0x74, 0x5c, 0x7f, 0x0e, 0x87, 0x99, 0x91, 0x53, 0x7c, 0xe4, 0x90, 0xa2, 0xa6, + 0x87, 0xc5, 0xa1, 0xee, 0x40, 0x32, 0xd4, 0xa1, 0xaf, 0x6a, 0xd0, 0xc5, 0xf7, 0xc8, 0xf1, 0xea, + 0xca, 0xd7, 0x9f, 0x5e, 0x5b, 0xbe, 0x5e, 0x56, 0xf2, 0xc9, 0x8f, 0xc6, 0xea, 0x51, 0xff, 0x9c, + 0x06, 0xc5, 0x14, 0x8d, 0xd9, 0x46, 0x04, 0xf8, 0x4d, 0xea, 0x3a, 0xcc, 0x47, 0x9b, 0xd4, 0xaf, + 0xd5, 0x64, 0x51, 0x3c, 0xa4, 0xc8, 0xb7, 0x09, 0xea, 0x14, 0x27, 0xf2, 0x1b, 0x06, 0x6a, 0x5c, + 0xc3, 0xb7, 0x55, 0x98, 0xe8, 0x51, 0xe0, 0x61, 0xdf, 0xc6, 0xdc, 0x80, 0x14, 0x93, 0xfc, 0xa9, + 0x89, 0xe3, 0x62, 0x79, 0x95, 0x12, 0x29, 0xd2, 0xd1, 0x88, 0x72, 0x5d, 0x00, 0x17, 0x1f, 0xf3, + 0x82, 0xd0, 0xc8, 0x53, 0xa6, 0x81, 0x17, 0x28, 0xda, 0x54, 0xbe, 0xa5, 0xe9, 0x39, 0x01, 0x0e, + 0x8f, 0x08, 0x0e, 0x32, 0x8d, 0x3d, 0xe2, 0x87, 0xe2, 0xde, 0x52, 0x61, 0xc7, 0x50, 0xee, 0x36, + 0x54, 0x46, 0xd8, 0x4b, 0x8f, 0xa4, 0xff, 0xad, 0x02, 0x99, 0xc1, 0x07, 0x17, 0xe8, 0xe4, 0x87, + 0xde, 0x38, 0xb9, 0x55, 0xfb, 0xd1, 0xc9, 0xad, 0xda, 0x3b, 0x27, 0xb7, 0x6a, 0x77, 0x56, 0xea, + 0x0e, 0x2d, 0x1f, 0x13, 0x33, 0xb0, 0x57, 0x8d, 0x3b, 0x16, 0xae, 0xe2, 0xb0, 0x3e, 0x3e, 0x8b, + 0x4d, 0x97, 0xce, 0x56, 0x7d, 0xba, 0xdd, 0xf1, 0xea, 0x98, 0xd0, 0xed, 0xc7, 0xa8, 0xb3, 0xdd, + 0x33, 0xa9, 0x33, 0x87, 0xc7, 0x83, 0xbb, 0xea, 0xe3, 0xc7, 0xa8, 0x33, 0x6e, 0xda, 0x66, 0x40, + 0x71, 0x48, 0xc6, 0x8d, 0x63, 0x4d, 0xcf, 0x27, 0xe3, 0xc4, 0x9a, 0xc5, 0x0d, 0xf3, 0x5f, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x4c, 0xf4, 0x79, 0x9f, 0x58, 0x42, 0x00, 0x00, +} + +func (m *NetworkInstancesTe) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTe) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTe) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NetworkInstance) > 0 { + for iNdEx := len(m.NetworkInstance) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkInstance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Mpls != nil { + { + size, err := m.Mpls.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Lsps != nil { + { + size, err := m.Lsps.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.TeInterfaceAttributes != nil { + { + size, err := m.TeInterfaceAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.TeGlobalAttributes != nil { + { + size, err := m.TeGlobalAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TeLspTimers != nil { + { + size, err := m.TeLspTimers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.MplsAdminGroups != nil { + { + size, err := m.MplsAdminGroups.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Srlgs != nil { + { + size, err := m.Srlgs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Srlg) > 0 { + for iNdEx := len(m.Srlg) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Srlg[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FloodingType != nil { + i -= len(*m.FloodingType) + copy(dAtA[i:], *m.FloodingType) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.FloodingType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Cost != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Cost)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Value != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Value)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AdminGroup) > 0 { + for iNdEx := len(m.AdminGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AdminGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.AdminGroupName != nil { + i -= len(*m.AdminGroupName) + copy(dAtA[i:], *m.AdminGroupName) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.AdminGroupName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BitPosition != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.BitPosition)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.AdminGroupName != nil { + i -= len(*m.AdminGroupName) + copy(dAtA[i:], *m.AdminGroupName) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.AdminGroupName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ReoptimizeTimer != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.ReoptimizeTimer)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.CleanupDelay != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.CleanupDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InstallDelay != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.InstallDelay)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.BandwidthMeasurement != nil { + { + size, err := m.BandwidthMeasurement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xd2 + } + if m.IgpFloodingBandwidth != nil { + { + size, err := m.IgpFloodingBandwidth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.InterfaceRef != nil { + { + size, err := m.InterfaceRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AdminGroup) > 0 { + for iNdEx := len(m.AdminGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AdminGroup[iNdEx]) + copy(dAtA[i:], m.AdminGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.AdminGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.SrlgMembership) > 0 { + for iNdEx := len(m.SrlgMembership) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SrlgMembership[iNdEx]) + copy(dAtA[i:], m.SrlgMembership[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.SrlgMembership[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if m.InterfaceId != nil { + i -= len(*m.InterfaceId) + copy(dAtA[i:], *m.InterfaceId) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.InterfaceId))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterface != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Subinterface)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Interface != nil { + i -= len(*m.Interface) + copy(dAtA[i:], *m.Interface) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Interface))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DeltaPercentage != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.DeltaPercentage)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ThresholdType != nil { + i -= len(*m.ThresholdType) + copy(dAtA[i:], *m.ThresholdType) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.ThresholdType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastSampleMeasuredSrUtil != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LastSampleMeasuredSrUtil)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LastCalculatedSrUtilisation != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LastCalculatedSrUtilisation)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ConstrainedPath != nil { + { + size, err := m.ConstrainedPath.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ContainerTunnels != nil { + { + size, err := m.ContainerTunnels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Tunnels != nil { + { + size, err := m.Tunnels.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.NamedExplicitPaths != nil { + { + size, err := m.NamedExplicitPaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.NamedExplicitPath) > 0 { + for iNdEx := len(m.NamedExplicitPath) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NamedExplicitPath[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ExplicitRouteObjects != nil { + { + size, err := m.ExplicitRouteObjects.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ExplicitRouteObject) > 0 { + for iNdEx := len(m.ExplicitRouteObject) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ExplicitRouteObject[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Index != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.HopType != nil { + i -= len(*m.HopType) + copy(dAtA[i:], *m.HopType) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.HopType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Address != nil { + i -= len(*m.Address) + copy(dAtA[i:], *m.Address) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Address))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Tunnel) > 0 { + for iNdEx := len(m.Tunnel) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tunnel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.P2PTunnelAttributes != nil { + { + size, err := m.P2PTunnelAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Bandwidth != nil { + { + size, err := m.Bandwidth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Source != nil { + i -= len(*m.Source) + copy(dAtA[i:], *m.Source) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Source))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.OperStatus != nil { + i -= len(*m.OperStatus) + copy(dAtA[i:], *m.OperStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.OperStatus))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xaa + } + if m.HoldPriority != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.HoldPriority)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.SetupPriority != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SetupPriority)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.SoftPreemption != nil { + i-- + if *m.SoftPreemption { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.Source != nil { + i -= len(*m.Source) + copy(dAtA[i:], *m.Source) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Source))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x8a + } + if m.ReoptimizeTimer != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.ReoptimizeTimer)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.ProtectionStyleRequested != nil { + i -= len(*m.ProtectionStyleRequested) + copy(dAtA[i:], *m.ProtectionStyleRequested) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.ProtectionStyleRequested))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + if m.InheritedMetric != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.InheritedMetric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.Metric != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.MetricType != nil { + i -= len(*m.MetricType) + copy(dAtA[i:], *m.MetricType) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.MetricType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe2 + } + if m.Preference != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Preference)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.AdminStatus != nil { + i -= len(*m.AdminStatus) + copy(dAtA[i:], *m.AdminStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.AdminStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd2 + } + if m.Description != nil { + i -= len(*m.Description) + copy(dAtA[i:], *m.Description) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Description))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xca + } + if m.SignalingProtocol != nil { + i -= len(*m.SignalingProtocol) + copy(dAtA[i:], *m.SignalingProtocol) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.SignalingProtocol))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.Type != nil { + i -= len(*m.Type) + copy(dAtA[i:], *m.Type) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Type))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.TunnelId != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.TunnelId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LastTransitionTime != nil { + i -= len(*m.LastTransitionTime) + copy(dAtA[i:], *m.LastTransitionTime) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.LastTransitionTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.NextReoptimizationTime != nil { + i -= len(*m.NextReoptimizationTime) + copy(dAtA[i:], *m.NextReoptimizationTime) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.NextReoptimizationTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.CurrentPathTime != nil { + i -= len(*m.CurrentPathTime) + copy(dAtA[i:], *m.CurrentPathTime) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.CurrentPathTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.OnlineTime != nil { + i -= len(*m.OnlineTime) + copy(dAtA[i:], *m.OnlineTime) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.OnlineTime))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.StateChanges != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.StateChanges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PathChanges != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.PathChanges)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.AutoBandwidth != nil { + { + size, err := m.AutoBandwidth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SignaledBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SignaledBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SetBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SetBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.SpecificationType != nil { + i -= len(*m.SpecificationType) + copy(dAtA[i:], *m.SpecificationType) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.SpecificationType))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Underflow != nil { + { + size, err := m.Underflow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Overflow != nil { + { + size, err := m.Overflow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MaxAverageBw != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MaxAverageBw)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.AdjustThreshold != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.AdjustThreshold)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.AdjustInterval != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.AdjustInterval)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.MaxBw != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MaxBw)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.MinBw != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MinBw)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TriggerEventCount != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.TriggerEventCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TriggerEventCount != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.TriggerEventCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Enabled != nil { + i-- + if *m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.P2PSecondaryPaths != nil { + { + size, err := m.P2PSecondaryPaths.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.P2PPrimaryPath != nil { + { + size, err := m.P2PPrimaryPath.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Destination != nil { + i -= len(*m.Destination) + copy(dAtA[i:], *m.Destination) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Destination))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.P2PPrimaryPath) > 0 { + for iNdEx := len(m.P2PPrimaryPath) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.P2PPrimaryPath[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LspInstances) > 0 { + for iNdEx := len(m.LspInstances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LspInstances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + if m.AdminGroups != nil { + { + size, err := m.AdminGroups.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NotifyStatus != nil { + i -= len(*m.NotifyStatus) + copy(dAtA[i:], *m.NotifyStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.NotifyStatus))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x8a + } + if m.RetryTimer != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.RetryTimer)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.HoldPriority != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.HoldPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.SetupPriority != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SetupPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.Preference != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Preference)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if len(m.AssociatedRsvpSessions) > 0 { + for iNdEx := len(m.AssociatedRsvpSessions) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdTeOc(dAtA, i, uint64(m.AssociatedRsvpSessions[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + } + if m.ExplicitPathName != nil { + i -= len(*m.ExplicitPathName) + copy(dAtA[i:], *m.ExplicitPathName) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.ExplicitPathName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.CspfMetric != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.CspfMetric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.CspfStatus != nil { + i -= len(*m.CspfStatus) + copy(dAtA[i:], *m.CspfStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.CspfStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.CspfTiebreaker != nil { + i -= len(*m.CspfTiebreaker) + copy(dAtA[i:], *m.CspfTiebreaker) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.CspfTiebreaker))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.UseCspf != nil { + i-- + if *m.UseCspf { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.IncludeAnyGroup) > 0 { + for iNdEx := len(m.IncludeAnyGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IncludeAnyGroup[iNdEx]) + copy(dAtA[i:], m.IncludeAnyGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.IncludeAnyGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.IncludeAllGroup) > 0 { + for iNdEx := len(m.IncludeAllGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IncludeAllGroup[iNdEx]) + copy(dAtA[i:], m.IncludeAllGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.IncludeAllGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.ExcludeGroup) > 0 { + for iNdEx := len(m.ExcludeGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExcludeGroup[iNdEx]) + copy(dAtA[i:], m.ExcludeGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.ExcludeGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Subcode != nil { + i -= len(*m.Subcode) + copy(dAtA[i:], *m.Subcode) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Subcode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.LspId != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LspId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LocalIndex != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LocalIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Reason != nil { + i -= len(*m.Reason) + copy(dAtA[i:], *m.Reason) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Reason))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.MaxAvgBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MaxAvgBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.Bandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Bandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.Metric != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Metric)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NotifyStatus != nil { + i -= len(*m.NotifyStatus) + copy(dAtA[i:], *m.NotifyStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.NotifyStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.LocalIndex != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LocalIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.P2PSecondaryPath) > 0 { + for iNdEx := len(m.P2PSecondaryPath) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.P2PSecondaryPath[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.LspInstances) > 0 { + for iNdEx := len(m.LspInstances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LspInstances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + } + if m.AdminGroups != nil { + { + size, err := m.AdminGroups.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.AssociatedRsvpSessions) > 0 { + for iNdEx := len(m.AssociatedRsvpSessions) - 1; iNdEx >= 0; iNdEx-- { + i = encodeVarintRpdTeOc(dAtA, i, uint64(m.AssociatedRsvpSessions[iNdEx])) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + } + if m.RetryTimer != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.RetryTimer)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.HoldPriority != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.HoldPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.SetupPriority != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SetupPriority)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.Preference != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.Preference)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.ExplicitPathName != nil { + i -= len(*m.ExplicitPathName) + copy(dAtA[i:], *m.ExplicitPathName) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.ExplicitPathName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.CspfTiebreaker != nil { + i -= len(*m.CspfTiebreaker) + copy(dAtA[i:], *m.CspfTiebreaker) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.CspfTiebreaker))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.UseCspf != nil { + i-- + if *m.UseCspf { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.IncludeAnyGroup) > 0 { + for iNdEx := len(m.IncludeAnyGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IncludeAnyGroup[iNdEx]) + copy(dAtA[i:], m.IncludeAnyGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.IncludeAnyGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.IncludeAllGroup) > 0 { + for iNdEx := len(m.IncludeAllGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.IncludeAllGroup[iNdEx]) + copy(dAtA[i:], m.IncludeAllGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.IncludeAllGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.ExcludeGroup) > 0 { + for iNdEx := len(m.ExcludeGroup) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExcludeGroup[iNdEx]) + copy(dAtA[i:], m.ExcludeGroup[iNdEx]) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(m.ExcludeGroup[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.LspId != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LspId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.LocalIndex != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.LocalIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Reason != nil { + i -= len(*m.Reason) + copy(dAtA[i:], *m.Reason) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Reason))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.NotifyStatus != nil { + i -= len(*m.NotifyStatus) + copy(dAtA[i:], *m.NotifyStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.NotifyStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.ContainerTunnel) > 0 { + for iNdEx := len(m.ContainerTunnel) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ContainerTunnel[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Sampling != nil { + { + size, err := m.Sampling.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRpdTeOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Reason != nil { + i -= len(*m.Reason) + copy(dAtA[i:], *m.Reason) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Reason))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa2 + } + if m.FailoverNormalization != nil { + i-- + if *m.FailoverNormalization { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.IncrementalNormalization != nil { + i-- + if *m.IncrementalNormalization { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.TimeToNormalize != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.TimeToNormalize)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.MergingBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MergingBandwidth)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.SplittingBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SplittingBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.MinSignalingBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MinSignalingBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.MaxSignalingBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MaxSignalingBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.SampledAggregateBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SampledAggregateBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe0 + } + if m.AggregateBandwidth != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.AggregateBandwidth)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.NormalizeThreshold != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.NormalizeThreshold)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.NormalizeTimer != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.NormalizeTimer)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.MaximumLspCount != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MaximumLspCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.MinimumLspCount != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MinimumLspCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.MemberCount != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.MemberCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.NormalizationStatus != nil { + i -= len(*m.NormalizationStatus) + copy(dAtA[i:], *m.NormalizationStatus) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.NormalizationStatus))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.OperState != nil { + i -= len(*m.OperState) + copy(dAtA[i:], *m.OperState) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.OperState))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SamplingPercentile != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SamplingPercentile)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.SamplingMode != nil { + i -= len(*m.SamplingMode) + copy(dAtA[i:], *m.SamplingMode) + i = encodeVarintRpdTeOc(dAtA, i, uint64(len(*m.SamplingMode))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.SamplingOutlierCutoff != nil { + i = encodeVarintRpdTeOc(dAtA, i, uint64(*m.SamplingOutlierCutoff)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintRpdTeOc(dAtA []byte, offset int, v uint64) int { + offset -= sovRpdTeOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NetworkInstancesTe) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NetworkInstance) > 0 { + for _, e := range m.NetworkInstance { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Mpls != nil { + l = m.Mpls.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TeGlobalAttributes != nil { + l = m.TeGlobalAttributes.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.TeInterfaceAttributes != nil { + l = m.TeInterfaceAttributes.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Lsps != nil { + l = m.Lsps.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Srlgs != nil { + l = m.Srlgs.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.MplsAdminGroups != nil { + l = m.MplsAdminGroups.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.TeLspTimers != nil { + l = m.TeLspTimers.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Srlg) > 0 { + for _, e := range m.Srlg { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Value != nil { + n += 2 + sovRpdTeOc(uint64(*m.Value)) + } + if m.Cost != nil { + n += 2 + sovRpdTeOc(uint64(*m.Cost)) + } + if m.FloodingType != nil { + l = len(*m.FloodingType) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AdminGroup) > 0 { + for _, e := range m.AdminGroup { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AdminGroupName != nil { + l = len(*m.AdminGroupName) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AdminGroupName != nil { + l = len(*m.AdminGroupName) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.BitPosition != nil { + n += 2 + sovRpdTeOc(uint64(*m.BitPosition)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InstallDelay != nil { + n += 2 + sovRpdTeOc(uint64(*m.InstallDelay)) + } + if m.CleanupDelay != nil { + n += 2 + sovRpdTeOc(uint64(*m.CleanupDelay)) + } + if m.ReoptimizeTimer != nil { + n += 2 + sovRpdTeOc(uint64(*m.ReoptimizeTimer)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.InterfaceRef != nil { + l = m.InterfaceRef.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.IgpFloodingBandwidth != nil { + l = m.IgpFloodingBandwidth.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.BandwidthMeasurement != nil { + l = m.BandwidthMeasurement.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InterfaceId != nil { + l = len(*m.InterfaceId) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if len(m.SrlgMembership) > 0 { + for _, s := range m.SrlgMembership { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if len(m.AdminGroup) > 0 { + for _, s := range m.AdminGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Interface != nil { + l = len(*m.Interface) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Subinterface != nil { + n += 2 + sovRpdTeOc(uint64(*m.Subinterface)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ThresholdType != nil { + l = len(*m.ThresholdType) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.DeltaPercentage != nil { + n += 2 + sovRpdTeOc(uint64(*m.DeltaPercentage)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LastCalculatedSrUtilisation != nil { + n += 2 + sovRpdTeOc(uint64(*m.LastCalculatedSrUtilisation)) + } + if m.LastSampleMeasuredSrUtil != nil { + n += 2 + sovRpdTeOc(uint64(*m.LastSampleMeasuredSrUtil)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConstrainedPath != nil { + l = m.ConstrainedPath.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NamedExplicitPaths != nil { + l = m.NamedExplicitPaths.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Tunnels != nil { + l = m.Tunnels.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.ContainerTunnels != nil { + l = m.ContainerTunnels.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NamedExplicitPath) > 0 { + for _, e := range m.NamedExplicitPath { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.ExplicitRouteObjects != nil { + l = m.ExplicitRouteObjects.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExplicitRouteObject) > 0 { + for _, e := range m.ExplicitRouteObject { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovRpdTeOc(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = len(*m.Address) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.HopType != nil { + l = len(*m.HopType) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Index != nil { + n += 2 + sovRpdTeOc(uint64(*m.Index)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Tunnel) > 0 { + for _, e := range m.Tunnel { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Source != nil { + l = len(*m.Source) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Bandwidth != nil { + l = m.Bandwidth.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.P2PTunnelAttributes != nil { + l = m.P2PTunnelAttributes.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelId != nil { + n += 2 + sovRpdTeOc(uint64(*m.TunnelId)) + } + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Type != nil { + l = len(*m.Type) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.SignalingProtocol != nil { + l = len(*m.SignalingProtocol) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Description != nil { + l = len(*m.Description) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.AdminStatus != nil { + l = len(*m.AdminStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Preference != nil { + n += 2 + sovRpdTeOc(uint64(*m.Preference)) + } + if m.MetricType != nil { + l = len(*m.MetricType) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Metric != nil { + n += 2 + sovRpdTeOc(uint64(*m.Metric)) + } + if m.InheritedMetric != nil { + n += 2 + sovRpdTeOc(uint64(*m.InheritedMetric)) + } + if m.ProtectionStyleRequested != nil { + l = len(*m.ProtectionStyleRequested) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.ReoptimizeTimer != nil { + n += 2 + sovRpdTeOc(uint64(*m.ReoptimizeTimer)) + } + if m.Source != nil { + l = len(*m.Source) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.SoftPreemption != nil { + n += 3 + } + if m.SetupPriority != nil { + n += 2 + sovRpdTeOc(uint64(*m.SetupPriority)) + } + if m.HoldPriority != nil { + n += 2 + sovRpdTeOc(uint64(*m.HoldPriority)) + } + if m.OperStatus != nil { + l = len(*m.OperStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PathChanges != nil { + n += 2 + sovRpdTeOc(uint64(*m.PathChanges)) + } + if m.StateChanges != nil { + n += 2 + sovRpdTeOc(uint64(*m.StateChanges)) + } + if m.OnlineTime != nil { + l = len(*m.OnlineTime) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.CurrentPathTime != nil { + l = len(*m.CurrentPathTime) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.NextReoptimizationTime != nil { + l = len(*m.NextReoptimizationTime) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.LastTransitionTime != nil { + l = len(*m.LastTransitionTime) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.AutoBandwidth != nil { + l = m.AutoBandwidth.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SpecificationType != nil { + l = len(*m.SpecificationType) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.SetBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.SetBandwidth)) + } + if m.SignaledBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.SignaledBandwidth)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Overflow != nil { + l = m.Overflow.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Underflow != nil { + l = m.Underflow.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.MinBw != nil { + n += 2 + sovRpdTeOc(uint64(*m.MinBw)) + } + if m.MaxBw != nil { + n += 2 + sovRpdTeOc(uint64(*m.MaxBw)) + } + if m.AdjustInterval != nil { + n += 2 + sovRpdTeOc(uint64(*m.AdjustInterval)) + } + if m.AdjustThreshold != nil { + n += 2 + sovRpdTeOc(uint64(*m.AdjustThreshold)) + } + if m.MaxAverageBw != nil { + n += 2 + sovRpdTeOc(uint64(*m.MaxAverageBw)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.TriggerEventCount != nil { + n += 2 + sovRpdTeOc(uint64(*m.TriggerEventCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Enabled != nil { + n += 3 + } + if m.TriggerEventCount != nil { + n += 2 + sovRpdTeOc(uint64(*m.TriggerEventCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.P2PPrimaryPath != nil { + l = m.P2PPrimaryPath.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.P2PSecondaryPaths != nil { + l = m.P2PSecondaryPaths.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Destination != nil { + l = len(*m.Destination) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.P2PPrimaryPath) > 0 { + for _, e := range m.P2PPrimaryPath { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.AdminGroups != nil { + l = m.AdminGroups.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if len(m.LspInstances) > 0 { + for _, e := range m.LspInstances { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.UseCspf != nil { + n += 3 + } + if m.CspfTiebreaker != nil { + l = len(*m.CspfTiebreaker) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.CspfStatus != nil { + l = len(*m.CspfStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.CspfMetric != nil { + n += 2 + sovRpdTeOc(uint64(*m.CspfMetric)) + } + if m.ExplicitPathName != nil { + l = len(*m.ExplicitPathName) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if len(m.AssociatedRsvpSessions) > 0 { + for _, e := range m.AssociatedRsvpSessions { + n += 2 + sovRpdTeOc(uint64(e)) + } + } + if m.Preference != nil { + n += 2 + sovRpdTeOc(uint64(*m.Preference)) + } + if m.SetupPriority != nil { + n += 2 + sovRpdTeOc(uint64(*m.SetupPriority)) + } + if m.HoldPriority != nil { + n += 2 + sovRpdTeOc(uint64(*m.HoldPriority)) + } + if m.RetryTimer != nil { + n += 2 + sovRpdTeOc(uint64(*m.RetryTimer)) + } + if m.NotifyStatus != nil { + l = len(*m.NotifyStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExcludeGroup) > 0 { + for _, s := range m.ExcludeGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if len(m.IncludeAllGroup) > 0 { + for _, s := range m.IncludeAllGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if len(m.IncludeAnyGroup) > 0 { + for _, s := range m.IncludeAnyGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocalIndex != nil { + n += 2 + sovRpdTeOc(uint64(*m.LocalIndex)) + } + if m.LspId != nil { + n += 2 + sovRpdTeOc(uint64(*m.LspId)) + } + if m.Subcode != nil { + l = len(*m.Subcode) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocalIndex != nil { + n += 2 + sovRpdTeOc(uint64(*m.LocalIndex)) + } + if m.NotifyStatus != nil { + l = len(*m.NotifyStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Metric != nil { + n += 2 + sovRpdTeOc(uint64(*m.Metric)) + } + if m.Bandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.Bandwidth)) + } + if m.MaxAvgBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.MaxAvgBandwidth)) + } + if m.Reason != nil { + l = len(*m.Reason) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.P2PSecondaryPath) > 0 { + for _, e := range m.P2PSecondaryPath { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.AdminGroups != nil { + l = m.AdminGroups.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if len(m.LspInstances) > 0 { + for _, e := range m.LspInstances { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.UseCspf != nil { + n += 3 + } + if m.CspfTiebreaker != nil { + l = len(*m.CspfTiebreaker) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.ExplicitPathName != nil { + l = len(*m.ExplicitPathName) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Preference != nil { + n += 2 + sovRpdTeOc(uint64(*m.Preference)) + } + if m.SetupPriority != nil { + n += 2 + sovRpdTeOc(uint64(*m.SetupPriority)) + } + if m.HoldPriority != nil { + n += 2 + sovRpdTeOc(uint64(*m.HoldPriority)) + } + if m.RetryTimer != nil { + n += 2 + sovRpdTeOc(uint64(*m.RetryTimer)) + } + if len(m.AssociatedRsvpSessions) > 0 { + for _, e := range m.AssociatedRsvpSessions { + n += 2 + sovRpdTeOc(uint64(e)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExcludeGroup) > 0 { + for _, s := range m.ExcludeGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if len(m.IncludeAllGroup) > 0 { + for _, s := range m.IncludeAllGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if len(m.IncludeAnyGroup) > 0 { + for _, s := range m.IncludeAnyGroup { + l = len(s) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LocalIndex != nil { + n += 2 + sovRpdTeOc(uint64(*m.LocalIndex)) + } + if m.LspId != nil { + n += 2 + sovRpdTeOc(uint64(*m.LspId)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NotifyStatus != nil { + l = len(*m.NotifyStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Reason != nil { + l = len(*m.Reason) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ContainerTunnel) > 0 { + for _, e := range m.ContainerTunnel { + l = e.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.OperState != nil { + l = len(*m.OperState) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.NormalizationStatus != nil { + l = len(*m.NormalizationStatus) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.MemberCount != nil { + n += 2 + sovRpdTeOc(uint64(*m.MemberCount)) + } + if m.MinimumLspCount != nil { + n += 2 + sovRpdTeOc(uint64(*m.MinimumLspCount)) + } + if m.MaximumLspCount != nil { + n += 2 + sovRpdTeOc(uint64(*m.MaximumLspCount)) + } + if m.NormalizeTimer != nil { + n += 2 + sovRpdTeOc(uint64(*m.NormalizeTimer)) + } + if m.NormalizeThreshold != nil { + n += 2 + sovRpdTeOc(uint64(*m.NormalizeThreshold)) + } + if m.AggregateBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.AggregateBandwidth)) + } + if m.SampledAggregateBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.SampledAggregateBandwidth)) + } + if m.MaxSignalingBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.MaxSignalingBandwidth)) + } + if m.MinSignalingBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.MinSignalingBandwidth)) + } + if m.SplittingBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.SplittingBandwidth)) + } + if m.MergingBandwidth != nil { + n += 2 + sovRpdTeOc(uint64(*m.MergingBandwidth)) + } + if m.TimeToNormalize != nil { + n += 2 + sovRpdTeOc(uint64(*m.TimeToNormalize)) + } + if m.IncrementalNormalization != nil { + n += 3 + } + if m.FailoverNormalization != nil { + n += 3 + } + if m.Reason != nil { + l = len(*m.Reason) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.Sampling != nil { + l = m.Sampling.Size() + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SamplingOutlierCutoff != nil { + n += 2 + sovRpdTeOc(uint64(*m.SamplingOutlierCutoff)) + } + if m.SamplingMode != nil { + l = len(*m.SamplingMode) + n += 2 + l + sovRpdTeOc(uint64(l)) + } + if m.SamplingPercentile != nil { + n += 2 + sovRpdTeOc(uint64(*m.SamplingPercentile)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovRpdTeOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRpdTeOc(x uint64) (n int) { + return sovRpdTeOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NetworkInstancesTe) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instances_te: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instances_te: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkInstance", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkInstance = append(m.NetworkInstance, &NetworkInstancesTeNetworkInstanceList{}) + if err := m.NetworkInstance[len(m.NetworkInstance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: network_instance_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: network_instance_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mpls", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Mpls == nil { + m.Mpls = &NetworkInstancesTeNetworkInstanceListMplsType{} + } + if err := m.Mpls.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeGlobalAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TeGlobalAttributes == nil { + m.TeGlobalAttributes = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType{} + } + if err := m.TeGlobalAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeInterfaceAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TeInterfaceAttributes == nil { + m.TeInterfaceAttributes = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType{} + } + if err := m.TeInterfaceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lsps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Lsps == nil { + m.Lsps = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsType{} + } + if err := m.Lsps.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: te_global_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: te_global_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Srlgs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Srlgs == nil { + m.Srlgs = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType{} + } + if err := m.Srlgs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MplsAdminGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MplsAdminGroups == nil { + m.MplsAdminGroups = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType{} + } + if err := m.MplsAdminGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeLspTimers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TeLspTimers == nil { + m.TeLspTimers = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType{} + } + if err := m.TeLspTimers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: srlgs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: srlgs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Srlg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Srlg = append(m.Srlg, &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList{}) + if err := m.Srlg[len(m.Srlg)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: srlg_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: srlg_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeSrlgsTypeSrlgListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Cost", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Cost = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloodingType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.FloodingType = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_admin_groups_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_admin_groups_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AdminGroup = append(m.AdminGroup, &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList{}) + if err := m.AdminGroup[len(m.AdminGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: admin_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: admin_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroupName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdminGroupName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeMplsAdminGroupsTypeAdminGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroupName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdminGroupName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BitPosition", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BitPosition = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: te_lsp_timers_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: te_lsp_timers_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeGlobalAttributesTypeTeLspTimersTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstallDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstallDelay = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CleanupDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CleanupDelay = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReoptimizeTimer", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReoptimizeTimer = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: te_interface_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: te_interface_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceRef == nil { + m.InterfaceRef = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType{} + } + if err := m.InterfaceRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IgpFloodingBandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IgpFloodingBandwidth == nil { + m.IgpFloodingBandwidth = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType{} + } + if err := m.IgpFloodingBandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 154: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BandwidthMeasurement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BandwidthMeasurement == nil { + m.BandwidthMeasurement = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType{} + } + if err := m.BandwidthMeasurement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.InterfaceId = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrlgMembership", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SrlgMembership = append(m.SrlgMembership, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AdminGroup = append(m.AdminGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_ref_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_ref_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListInterfaceRefTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Interface = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Subinterface = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: igp_flooding_bandwidth_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: igp_flooding_bandwidth_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListIgpFloodingBandwidthTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ThresholdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ThresholdType = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DeltaPercentage", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeltaPercentage = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bandwidth_measurement_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bandwidth_measurement_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeTeInterfaceAttributesTypeInterfaceListBandwidthMeasurementTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastCalculatedSrUtilisation", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastCalculatedSrUtilisation = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LastSampleMeasuredSrUtil", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LastSampleMeasuredSrUtil = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsps_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsps_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConstrainedPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ConstrainedPath == nil { + m.ConstrainedPath = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType{} + } + if err := m.ConstrainedPath.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: constrained_path_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: constrained_path_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamedExplicitPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NamedExplicitPaths == nil { + m.NamedExplicitPaths = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType{} + } + if err := m.NamedExplicitPaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tunnels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tunnels == nil { + m.Tunnels = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType{} + } + if err := m.Tunnels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerTunnels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContainerTunnels == nil { + m.ContainerTunnels = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType{} + } + if err := m.ContainerTunnels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: named_explicit_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: named_explicit_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamedExplicitPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NamedExplicitPath = append(m.NamedExplicitPath, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList{}) + if err := m.NamedExplicitPath[len(m.NamedExplicitPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: named_explicit_path_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: named_explicit_path_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExplicitRouteObjects", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ExplicitRouteObjects == nil { + m.ExplicitRouteObjects = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType{} + } + if err := m.ExplicitRouteObjects.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: explicit_route_objects_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: explicit_route_objects_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExplicitRouteObject", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExplicitRouteObject = append(m.ExplicitRouteObject, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList{}) + if err := m.ExplicitRouteObject[len(m.ExplicitRouteObject)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: explicit_route_object_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: explicit_route_object_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeNamedExplicitPathsTypeNamedExplicitPathListExplicitRouteObjectsTypeExplicitRouteObjectListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Address = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HopType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.HopType = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tunnels_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tunnels_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tunnel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tunnel = append(m.Tunnel, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList{}) + if err := m.Tunnel[len(m.Tunnel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: tunnel_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: tunnel_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Source = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Bandwidth == nil { + m.Bandwidth = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType{} + } + if err := m.Bandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field P2PTunnelAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.P2PTunnelAttributes == nil { + m.P2PTunnelAttributes = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType{} + } + if err := m.P2PTunnelAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TunnelId = &v + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Type = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalingProtocol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SignalingProtocol = &s + iNdEx = postIndex + case 57: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Description = &s + iNdEx = postIndex + case 58: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.AdminStatus = &s + iNdEx = postIndex + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preference", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Preference = &v + case 60: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetricType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.MetricType = &s + iNdEx = postIndex + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InheritedMetric", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InheritedMetric = &v + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProtectionStyleRequested", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProtectionStyleRequested = &s + iNdEx = postIndex + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReoptimizeTimer", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReoptimizeTimer = &v + case 65: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Source = &s + iNdEx = postIndex + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SoftPreemption", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SoftPreemption = &b + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetupPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SetupPriority = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HoldPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HoldPriority = &v + case 69: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperStatus = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PathChanges", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PathChanges = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StateChanges", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StateChanges = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnlineTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OnlineTime = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPathTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CurrentPathTime = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextReoptimizationTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NextReoptimizationTime = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LastTransitionTime = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: bandwidth_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: bandwidth_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoBandwidth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AutoBandwidth == nil { + m.AutoBandwidth = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType{} + } + if err := m.AutoBandwidth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpecificationType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SpecificationType = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SetBandwidth = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SignaledBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SignaledBandwidth = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: auto_bandwidth_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: auto_bandwidth_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Overflow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Overflow == nil { + m.Overflow = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType{} + } + if err := m.Overflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Underflow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Underflow == nil { + m.Underflow = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType{} + } + if err := m.Underflow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinBw", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinBw = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxBw", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxBw = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjustInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdjustInterval = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdjustThreshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdjustThreshold = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAverageBw", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAverageBw = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: overflow_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: overflow_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeOverflowTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TriggerEventCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TriggerEventCount = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: underflow_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: underflow_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListBandwidthTypeAutoBandwidthTypeUnderflowTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Enabled = &b + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TriggerEventCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TriggerEventCount = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: p2p_tunnel_attributes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: p2p_tunnel_attributes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field P2PPrimaryPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.P2PPrimaryPath == nil { + m.P2PPrimaryPath = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType{} + } + if err := m.P2PPrimaryPath.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field P2PSecondaryPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.P2PSecondaryPaths == nil { + m.P2PSecondaryPaths = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType{} + } + if err := m.P2PSecondaryPaths.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Destination", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Destination = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: p2p_primary_path_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: p2p_primary_path_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field P2PPrimaryPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.P2PPrimaryPath = append(m.P2PPrimaryPath, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList{}) + if err := m.P2PPrimaryPath[len(m.P2PPrimaryPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: p2p_primary_path_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: p2p_primary_path_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdminGroups == nil { + m.AdminGroups = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType{} + } + if err := m.AdminGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspInstances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LspInstances = append(m.LspInstances, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList{}) + if err := m.LspInstances[len(m.LspInstances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseCspf", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.UseCspf = &b + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CspfTiebreaker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CspfTiebreaker = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CspfStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CspfStatus = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CspfMetric", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CspfMetric = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExplicitPathName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExplicitPathName = &s + iNdEx = postIndex + case 59: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AssociatedRsvpSessions = append(m.AssociatedRsvpSessions, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.AssociatedRsvpSessions) == 0 { + m.AssociatedRsvpSessions = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AssociatedRsvpSessions = append(m.AssociatedRsvpSessions, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field AssociatedRsvpSessions", wireType) + } + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preference", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Preference = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetupPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SetupPriority = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HoldPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HoldPriority = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RetryTimer", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RetryTimer = &v + case 81: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NotifyStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NotifyStatus = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: admin_groups_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: admin_groups_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListAdminGroupsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExcludeGroup = append(m.ExcludeGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeAllGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncludeAllGroup = append(m.IncludeAllGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeAnyGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncludeAnyGroup = append(m.IncludeAnyGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsp_instances_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsp_instances_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalIndex = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspId = &v + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subcode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Subcode = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PPrimaryPathTypeP2PPrimaryPathListLspInstancesListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalIndex = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NotifyStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NotifyStatus = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Metric = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bandwidth = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxAvgBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxAvgBandwidth = &v + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Reason = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: p2p_secondary_paths_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: p2p_secondary_paths_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field P2PSecondaryPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.P2PSecondaryPath = append(m.P2PSecondaryPath, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList{}) + if err := m.P2PSecondaryPath[len(m.P2PSecondaryPath)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: p2p_secondary_path_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: p2p_secondary_path_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AdminGroups == nil { + m.AdminGroups = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType{} + } + if err := m.AdminGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspInstances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LspInstances = append(m.LspInstances, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList{}) + if err := m.LspInstances[len(m.LspInstances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseCspf", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.UseCspf = &b + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CspfTiebreaker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CspfTiebreaker = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExplicitPathName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ExplicitPathName = &s + iNdEx = postIndex + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preference", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Preference = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetupPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SetupPriority = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HoldPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HoldPriority = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RetryTimer", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RetryTimer = &v + case 59: + if wireType == 0 { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AssociatedRsvpSessions = append(m.AssociatedRsvpSessions, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.AssociatedRsvpSessions) == 0 { + m.AssociatedRsvpSessions = make([]uint32, 0, elementCount) + } + for iNdEx < postIndex { + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AssociatedRsvpSessions = append(m.AssociatedRsvpSessions, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field AssociatedRsvpSessions", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: admin_groups_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: admin_groups_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListAdminGroupsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExcludeGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExcludeGroup = append(m.ExcludeGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeAllGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncludeAllGroup = append(m.IncludeAllGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeAnyGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncludeAnyGroup = append(m.IncludeAnyGroup, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsp_instances_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsp_instances_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LocalIndex = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LspId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.LspId = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeTunnelsTypeTunnelListP2PTunnelAttributesTypeP2PSecondaryPathsTypeP2PSecondaryPathListLspInstancesListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NotifyStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NotifyStatus = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Reason = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: container_tunnels_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: container_tunnels_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerTunnel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerTunnel = append(m.ContainerTunnel, &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList{}) + if err := m.ContainerTunnel[len(m.ContainerTunnel)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: container_tunnel_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: container_tunnel_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperState", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.OperState = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NormalizationStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.NormalizationStatus = &s + iNdEx = postIndex + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemberCount = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinimumLspCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinimumLspCount = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaximumLspCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaximumLspCount = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NormalizeTimer", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NormalizeTimer = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NormalizeThreshold", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NormalizeThreshold = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AggregateBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AggregateBandwidth = &v + case 60: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SampledAggregateBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SampledAggregateBandwidth = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSignalingBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSignalingBandwidth = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinSignalingBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MinSignalingBandwidth = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SplittingBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SplittingBandwidth = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MergingBandwidth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MergingBandwidth = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeToNormalize", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TimeToNormalize = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncrementalNormalization", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IncrementalNormalization = &b + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailoverNormalization", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.FailoverNormalization = &b + case 68: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Reason = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sampling", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Sampling == nil { + m.Sampling = &NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType{} + } + if err := m.Sampling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NetworkInstancesTeNetworkInstanceListMplsTypeLspsTypeConstrainedPathTypeContainerTunnelsTypeContainerTunnelListStateTypeSamplingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sampling_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sampling_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SamplingOutlierCutoff", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SamplingOutlierCutoff = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SamplingMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRpdTeOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRpdTeOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SamplingMode = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SamplingPercentile", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SamplingPercentile = &v + default: + iNdEx = preIndex + skippy, err := skipRpdTeOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRpdTeOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipRpdTeOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowRpdTeOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthRpdTeOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupRpdTeOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthRpdTeOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthRpdTeOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRpdTeOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRpdTeOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/rpd_te_oc.proto b/schema/rpd_te_oc.proto new file mode 100755 index 0000000..1e2b62b --- /dev/null +++ b/schema/rpd_te_oc.proto @@ -0,0 +1,321 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional network_instances_te jnpr_network_instances_te_ext = 69; +} + +message network_instances_te { + message network_instance_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional mpls_type mpls = 151; + message mpls_type { + optional te_global_attributes_type te_global_attributes = 151; + message te_global_attributes_type { + optional srlgs_type srlgs = 151; + message srlgs_type { + message srlg_list { + optional string name = 52 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional uint32 value = 52; + optional uint32 cost = 53; + optional string flooding_type = 54; + } + } + repeated srlg_list srlg = 151; + } + optional mpls_admin_groups_type mpls_admin_groups = 152; + message mpls_admin_groups_type { + message admin_group_list { + optional string admin_group_name = 52 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string admin_group_name = 51; + optional uint32 bit_position = 52; + } + } + repeated admin_group_list admin_group = 151; + } + optional te_lsp_timers_type te_lsp_timers = 153; + message te_lsp_timers_type { + optional state_type state = 151; + message state_type { + optional uint32 install_delay = 51; + optional uint32 cleanup_delay = 52; + optional uint32 reoptimize_timer = 53; + } + } + } + optional te_interface_attributes_type te_interface_attributes = 152; + message te_interface_attributes_type { + message interface_list { + optional string interface_id = 52 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string interface_id = 51; + repeated string srlg_membership = 52; + repeated string admin_group = 53; + } + optional interface_ref_type interface_ref = 152; + message interface_ref_type { + optional state_type state = 151; + message state_type { + optional string interface = 51; + optional uint32 subinterface = 52; + } + } + optional igp_flooding_bandwidth_type igp_flooding_bandwidth = 153; + message igp_flooding_bandwidth_type { + optional state_type state = 151; + message state_type { + optional string threshold_type = 51; + optional uint32 delta_percentage = 52; + } + } + optional bandwidth_measurement_type bandwidth_measurement = 154; + message bandwidth_measurement_type { + optional state_type state = 151; + message state_type { + optional uint64 last_calculated_sr_utilisation = 51; + optional uint64 last_sample_measured_sr_util = 52; + } + } + } + repeated interface_list interface = 151; + } + optional lsps_type lsps = 153; + message lsps_type { + optional constrained_path_type constrained_path = 151; + message constrained_path_type { + optional named_explicit_paths_type named_explicit_paths = 151; + message named_explicit_paths_type { + message named_explicit_path_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + } + optional explicit_route_objects_type explicit_route_objects = 152; + message explicit_route_objects_type { + message explicit_route_object_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string address = 51; + optional string hop_type = 52; + optional uint32 index = 53; + } + } + repeated explicit_route_object_list explicit_route_object = 151; + } + } + repeated named_explicit_path_list named_explicit_path = 151; + } + optional tunnels_type tunnels = 152; + message tunnels_type { + message tunnel_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional string source = 52; + optional state_type state = 53; + message state_type { + optional string name = 54; + optional string type = 55; + optional string signaling_protocol = 56; + optional string description = 57; + optional string admin_status = 58; + optional uint32 preference = 59; + optional string metric_type = 60; + optional int32 metric = 61; + optional string protection_style_requested = 63; + optional uint32 reoptimize_timer = 64; + optional string source = 65; + optional bool soft_preemption = 66; + optional uint32 setup_priority = 67; + optional uint32 hold_priority = 68; + optional string oper_status = 69; + optional counters_type counters = 151; + message counters_type { + optional uint64 path_changes = 51; + optional uint64 state_changes = 52; + optional string online_time = 53; + optional string current_path_time = 54; + optional string next_reoptimization_time = 55; + optional string last_transition_time = 56; + } + optional uint32 inherited_metric = 62; + optional uint32 tunnel_id = 52; + } + optional bandwidth_type bandwidth = 152; + message bandwidth_type { + optional state_type state = 151; + message state_type { + optional string specification_type = 51; + optional uint64 set_bandwidth = 52; + optional uint64 signaled_bandwidth = 53; + } + optional auto_bandwidth_type auto_bandwidth = 152; + message auto_bandwidth_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint64 min_bw = 52; + optional uint64 max_bw = 53; + optional uint32 adjust_interval = 54; + optional uint32 adjust_threshold = 55; + optional uint64 max_average_bw = 61; + } + optional overflow_type overflow = 152; + message overflow_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 trigger_event_count = 52; + } + } + optional underflow_type underflow = 153; + message underflow_type { + optional state_type state = 151; + message state_type { + optional bool enabled = 51; + optional uint32 trigger_event_count = 52; + } + } + } + } + optional p2p_tunnel_attributes_type p2p_tunnel_attributes = 153; + message p2p_tunnel_attributes_type { + optional state_type state = 151; + message state_type { + optional string destination = 51; + } + optional p2p_primary_path_type p2p_primary_path = 152; + message p2p_primary_path_type { + message p2p_primary_path_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional bool use_cspf = 52; + optional string cspf_tiebreaker = 53; + optional string explicit_path_name = 56; + optional uint32 preference = 61; + optional uint32 setup_priority = 62; + optional uint32 hold_priority = 63; + optional uint32 retry_timer = 64; + optional string notify_status = 81; + optional string cspf_status = 54; + optional uint64 cspf_metric = 55; + repeated uint32 associated_rsvp_sessions = 59; + } + optional admin_groups_type admin_groups = 152; + message admin_groups_type { + optional state_type state = 151; + message state_type { + repeated string exclude_group = 51; + repeated string include_all_group = 52; + repeated string include_any_group = 53; + } + } + message lsp_instances_list { + optional uint32 local_index = 51; + optional uint32 lsp_id = 52; + optional string subcode = 53; + optional state_type state = 151; + message state_type { + optional uint32 local_index = 51; + optional string notify_status = 52; + optional int32 metric = 53; + optional uint64 bandwidth = 54; + optional uint64 max_avg_bandwidth = 55; + optional string reason = 56; + } + } + repeated lsp_instances_list lsp_instances = 153; + } + repeated p2p_primary_path_list p2p_primary_path = 151; + } + optional p2p_secondary_paths_type p2p_secondary_paths = 153; + message p2p_secondary_paths_type { + message p2p_secondary_path_list { + optional string name = 52 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional bool use_cspf = 52; + optional string cspf_tiebreaker = 53; + optional string explicit_path_name = 54; + optional uint32 preference = 55; + optional uint32 setup_priority = 56; + optional uint32 hold_priority = 57; + optional uint32 retry_timer = 58; + repeated uint32 associated_rsvp_sessions = 59; + } + optional admin_groups_type admin_groups = 152; + message admin_groups_type { + optional state_type state = 151; + message state_type { + repeated string exclude_group = 51; + repeated string include_all_group = 52; + repeated string include_any_group = 53; + } + } + message lsp_instances_list { + optional uint32 local_index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string notify_status = 52; + optional string reason = 56; + } + optional uint32 lsp_id = 52; + } + repeated lsp_instances_list lsp_instances = 153; + } + repeated p2p_secondary_path_list p2p_secondary_path = 151; + } + } + } + repeated tunnel_list tunnel = 151; + } + optional container_tunnels_type container_tunnels = 153; + message container_tunnels_type { + message container_tunnel_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional string name = 51; + optional string oper_state = 52; + optional string normalization_status = 53; + optional uint32 member_count = 54; + optional uint32 minimum_lsp_count = 55; + optional uint32 maximum_lsp_count = 56; + optional uint32 normalize_timer = 57; + optional uint32 normalize_threshold = 58; + optional uint64 aggregate_bandwidth = 59; + optional uint64 sampled_aggregate_bandwidth = 60; + optional uint64 max_signaling_bandwidth = 61; + optional uint64 min_signaling_bandwidth = 62; + optional uint64 splitting_bandwidth = 63; + optional uint64 merging_bandwidth = 64; + optional uint64 time_to_normalize = 65; + optional bool incremental_normalization = 66; + optional bool failover_normalization = 67; + optional string reason = 68; + optional sampling_type sampling = 151; + message sampling_type { + optional uint32 sampling_outlier_cutoff = 51; + optional string sampling_mode = 52; + optional uint32 sampling_percentile = 53; + } + } + } + repeated container_tunnel_list container_tunnel = 151; + } + } + } + } + } + repeated network_instance_list network_instance = 151; +} diff --git a/schema/session_telemetry.pb.go b/schema/session_telemetry.pb.go new file mode 100644 index 0000000..36ecdbc --- /dev/null +++ b/schema/session_telemetry.pb.go @@ -0,0 +1,1717 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: session_telemetry.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type ServicesSession struct { + SvcsSessionInfo []*SessionInfo `protobuf:"bytes,1,rep,name=svcs_session_info,json=svcsSessionInfo" json:"svcs_session_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServicesSession) Reset() { *m = ServicesSession{} } +func (m *ServicesSession) String() string { return proto.CompactTextString(m) } +func (*ServicesSession) ProtoMessage() {} +func (*ServicesSession) Descriptor() ([]byte, []int) { + return fileDescriptor_6b5b6170d3878570, []int{0} +} +func (m *ServicesSession) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServicesSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServicesSession.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ServicesSession) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServicesSession.Merge(m, src) +} +func (m *ServicesSession) XXX_Size() int { + return m.Size() +} +func (m *ServicesSession) XXX_DiscardUnknown() { + xxx_messageInfo_ServicesSession.DiscardUnknown(m) +} + +var xxx_messageInfo_ServicesSession proto.InternalMessageInfo + +func (m *ServicesSession) GetSvcsSessionInfo() []*SessionInfo { + if m != nil { + return m.SvcsSessionInfo + } + return nil +} + +type SessionInfo struct { + SnFlowInfo []*FlowInfo `protobuf:"bytes,1,rep,name=sn_flow_info,json=snFlowInfo" json:"sn_flow_info,omitempty"` + SnSvcSetName *string `protobuf:"bytes,2,opt,name=sn_svc_set_name,json=snSvcSetName" json:"sn_svc_set_name,omitempty"` + SnSvcSetId *uint64 `protobuf:"varint,3,opt,name=sn_svc_set_id,json=snSvcSetId" json:"sn_svc_set_id,omitempty"` + SnId *uint64 `protobuf:"varint,4,opt,name=sn_id,json=snId" json:"sn_id,omitempty"` + SnFlags *uint64 `protobuf:"varint,5,opt,name=sn_flags,json=snFlags" json:"sn_flags,omitempty"` + SnAlgId *uint64 `protobuf:"varint,6,opt,name=sn_alg_id,json=snAlgId" json:"sn_alg_id,omitempty"` + SnRoutingPathType *uint64 `protobuf:"varint,7,opt,name=sn_routing_path_type,json=snRoutingPathType" json:"sn_routing_path_type,omitempty"` + SnSessionTimeout *uint64 `protobuf:"varint,8,opt,name=sn_session_timeout,json=snSessionTimeout" json:"sn_session_timeout,omitempty"` + SnState *uint64 `protobuf:"varint,9,opt,name=sn_state,json=snState" json:"sn_state,omitempty"` + SnSwSessionId *uint64 `protobuf:"varint,10,opt,name=sn_sw_session_id,json=snSwSessionId" json:"sn_sw_session_id,omitempty"` + SnSvcId *uint64 `protobuf:"varint,11,opt,name=sn_svc_id,json=snSvcId" json:"sn_svc_id,omitempty"` + SnOffload *bool `protobuf:"varint,12,opt,name=sn_offload,json=snOffload" json:"sn_offload,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SessionInfo) Reset() { *m = SessionInfo{} } +func (m *SessionInfo) String() string { return proto.CompactTextString(m) } +func (*SessionInfo) ProtoMessage() {} +func (*SessionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_6b5b6170d3878570, []int{1} +} +func (m *SessionInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SessionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SessionInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SessionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SessionInfo.Merge(m, src) +} +func (m *SessionInfo) XXX_Size() int { + return m.Size() +} +func (m *SessionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SessionInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SessionInfo proto.InternalMessageInfo + +func (m *SessionInfo) GetSnFlowInfo() []*FlowInfo { + if m != nil { + return m.SnFlowInfo + } + return nil +} + +func (m *SessionInfo) GetSnSvcSetName() string { + if m != nil && m.SnSvcSetName != nil { + return *m.SnSvcSetName + } + return "" +} + +func (m *SessionInfo) GetSnSvcSetId() uint64 { + if m != nil && m.SnSvcSetId != nil { + return *m.SnSvcSetId + } + return 0 +} + +func (m *SessionInfo) GetSnId() uint64 { + if m != nil && m.SnId != nil { + return *m.SnId + } + return 0 +} + +func (m *SessionInfo) GetSnFlags() uint64 { + if m != nil && m.SnFlags != nil { + return *m.SnFlags + } + return 0 +} + +func (m *SessionInfo) GetSnAlgId() uint64 { + if m != nil && m.SnAlgId != nil { + return *m.SnAlgId + } + return 0 +} + +func (m *SessionInfo) GetSnRoutingPathType() uint64 { + if m != nil && m.SnRoutingPathType != nil { + return *m.SnRoutingPathType + } + return 0 +} + +func (m *SessionInfo) GetSnSessionTimeout() uint64 { + if m != nil && m.SnSessionTimeout != nil { + return *m.SnSessionTimeout + } + return 0 +} + +func (m *SessionInfo) GetSnState() uint64 { + if m != nil && m.SnState != nil { + return *m.SnState + } + return 0 +} + +func (m *SessionInfo) GetSnSwSessionId() uint64 { + if m != nil && m.SnSwSessionId != nil { + return *m.SnSwSessionId + } + return 0 +} + +func (m *SessionInfo) GetSnSvcId() uint64 { + if m != nil && m.SnSvcId != nil { + return *m.SnSvcId + } + return 0 +} + +func (m *SessionInfo) GetSnOffload() bool { + if m != nil && m.SnOffload != nil { + return *m.SnOffload + } + return false +} + +//-------------------------- +type FlowInfo struct { + SrcAddr *string `protobuf:"bytes,1,opt,name=src_addr,json=srcAddr" json:"src_addr,omitempty"` + DstAddr *string `protobuf:"bytes,2,opt,name=dst_addr,json=dstAddr" json:"dst_addr,omitempty"` + FlowDirection *uint32 `protobuf:"varint,3,opt,name=flow_direction,json=flowDirection" json:"flow_direction,omitempty"` + SrcPort *uint32 `protobuf:"varint,4,opt,name=src_port,json=srcPort" json:"src_port,omitempty"` + DstPort *uint32 `protobuf:"varint,5,opt,name=dst_port,json=dstPort" json:"dst_port,omitempty"` + SrcIsV6 *bool `protobuf:"varint,6,opt,name=src_is_v6,json=srcIsV6" json:"src_is_v6,omitempty"` + DstIsV6 *bool `protobuf:"varint,7,opt,name=dst_is_v6,json=dstIsV6" json:"dst_is_v6,omitempty"` + FlowType *uint32 `protobuf:"varint,8,opt,name=flow_type,json=flowType" json:"flow_type,omitempty"` + FlowFlags *uint32 `protobuf:"varint,9,opt,name=flow_flags,json=flowFlags" json:"flow_flags,omitempty"` + IpProto *uint32 `protobuf:"varint,10,opt,name=ip_proto,json=ipProto" json:"ip_proto,omitempty"` + IdleTimeout *uint64 `protobuf:"varint,11,opt,name=idle_timeout,json=idleTimeout" json:"idle_timeout,omitempty"` + FlowPacketsIn *uint64 `protobuf:"varint,12,opt,name=flow_packets_in,json=flowPacketsIn" json:"flow_packets_in,omitempty"` + FlowPacketsOut *uint64 `protobuf:"varint,13,opt,name=flow_packets_out,json=flowPacketsOut" json:"flow_packets_out,omitempty"` + FlowBytesIn *uint64 `protobuf:"varint,14,opt,name=flow_bytes_in,json=flowBytesIn" json:"flow_bytes_in,omitempty"` + FlowBytesOut *uint64 `protobuf:"varint,15,opt,name=flow_bytes_out,json=flowBytesOut" json:"flow_bytes_out,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FlowInfo) Reset() { *m = FlowInfo{} } +func (m *FlowInfo) String() string { return proto.CompactTextString(m) } +func (*FlowInfo) ProtoMessage() {} +func (*FlowInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_6b5b6170d3878570, []int{2} +} +func (m *FlowInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlowInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlowInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FlowInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlowInfo.Merge(m, src) +} +func (m *FlowInfo) XXX_Size() int { + return m.Size() +} +func (m *FlowInfo) XXX_DiscardUnknown() { + xxx_messageInfo_FlowInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_FlowInfo proto.InternalMessageInfo + +func (m *FlowInfo) GetSrcAddr() string { + if m != nil && m.SrcAddr != nil { + return *m.SrcAddr + } + return "" +} + +func (m *FlowInfo) GetDstAddr() string { + if m != nil && m.DstAddr != nil { + return *m.DstAddr + } + return "" +} + +func (m *FlowInfo) GetFlowDirection() uint32 { + if m != nil && m.FlowDirection != nil { + return *m.FlowDirection + } + return 0 +} + +func (m *FlowInfo) GetSrcPort() uint32 { + if m != nil && m.SrcPort != nil { + return *m.SrcPort + } + return 0 +} + +func (m *FlowInfo) GetDstPort() uint32 { + if m != nil && m.DstPort != nil { + return *m.DstPort + } + return 0 +} + +func (m *FlowInfo) GetSrcIsV6() bool { + if m != nil && m.SrcIsV6 != nil { + return *m.SrcIsV6 + } + return false +} + +func (m *FlowInfo) GetDstIsV6() bool { + if m != nil && m.DstIsV6 != nil { + return *m.DstIsV6 + } + return false +} + +func (m *FlowInfo) GetFlowType() uint32 { + if m != nil && m.FlowType != nil { + return *m.FlowType + } + return 0 +} + +func (m *FlowInfo) GetFlowFlags() uint32 { + if m != nil && m.FlowFlags != nil { + return *m.FlowFlags + } + return 0 +} + +func (m *FlowInfo) GetIpProto() uint32 { + if m != nil && m.IpProto != nil { + return *m.IpProto + } + return 0 +} + +func (m *FlowInfo) GetIdleTimeout() uint64 { + if m != nil && m.IdleTimeout != nil { + return *m.IdleTimeout + } + return 0 +} + +func (m *FlowInfo) GetFlowPacketsIn() uint64 { + if m != nil && m.FlowPacketsIn != nil { + return *m.FlowPacketsIn + } + return 0 +} + +func (m *FlowInfo) GetFlowPacketsOut() uint64 { + if m != nil && m.FlowPacketsOut != nil { + return *m.FlowPacketsOut + } + return 0 +} + +func (m *FlowInfo) GetFlowBytesIn() uint64 { + if m != nil && m.FlowBytesIn != nil { + return *m.FlowBytesIn + } + return 0 +} + +func (m *FlowInfo) GetFlowBytesOut() uint64 { + if m != nil && m.FlowBytesOut != nil { + return *m.FlowBytesOut + } + return 0 +} + +var E_JnprScvsSessionExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*ServicesSession)(nil), + Field: 79, + Name: "jnprScvsSessionExt", + Tag: "bytes,79,opt,name=jnprScvsSessionExt", + Filename: "session_telemetry.proto", +} + +func init() { + proto.RegisterType((*ServicesSession)(nil), "ServicesSession") + proto.RegisterType((*SessionInfo)(nil), "SessionInfo") + proto.RegisterType((*FlowInfo)(nil), "FlowInfo") + proto.RegisterExtension(E_JnprScvsSessionExt) +} + +func init() { proto.RegisterFile("session_telemetry.proto", fileDescriptor_6b5b6170d3878570) } + +var fileDescriptor_6b5b6170d3878570 = []byte{ + // 738 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x54, 0x4d, 0x6f, 0x1b, 0x37, + 0x10, 0xc5, 0xc6, 0x76, 0xb5, 0xa2, 0x24, 0xcb, 0x61, 0x0a, 0x64, 0x93, 0x22, 0x86, 0x62, 0xf4, + 0x43, 0x40, 0x63, 0x09, 0xc8, 0x21, 0x28, 0x7a, 0x6a, 0x8c, 0xb6, 0x80, 0x5a, 0x20, 0x36, 0xa4, + 0xa0, 0x40, 0x7b, 0x61, 0xe9, 0x25, 0xb5, 0xa2, 0xbc, 0x22, 0x17, 0x9c, 0xd1, 0xaa, 0xba, 0xf6, + 0x3f, 0xf5, 0x3f, 0xf4, 0xd8, 0x9f, 0x50, 0xf8, 0x5f, 0xf4, 0x56, 0x70, 0xa8, 0x55, 0xe5, 0x22, + 0x37, 0xf1, 0xbd, 0x37, 0x6f, 0x66, 0xe7, 0x91, 0x62, 0x4f, 0x41, 0x03, 0x18, 0x67, 0x05, 0xea, + 0x52, 0xaf, 0x34, 0xfa, 0xed, 0xa8, 0xf2, 0x0e, 0xdd, 0xf3, 0x27, 0x7b, 0x40, 0xa0, 0xab, 0x22, + 0x78, 0xf1, 0x23, 0xeb, 0xcf, 0xb4, 0xaf, 0x4d, 0xae, 0x61, 0x16, 0xeb, 0xf8, 0x57, 0xec, 0x31, + 0xd4, 0x39, 0x88, 0xc6, 0xc7, 0xd8, 0xb9, 0xcb, 0x92, 0xc1, 0xd1, 0xb0, 0xf3, 0xba, 0x3b, 0xda, + 0x89, 0x26, 0x76, 0xee, 0xa6, 0xfd, 0x20, 0x3b, 0x00, 0x2e, 0xfe, 0x38, 0x62, 0x9d, 0x83, 0x33, + 0xff, 0x92, 0x75, 0xc1, 0x8a, 0x79, 0xe9, 0x36, 0x87, 0x26, 0xed, 0xd1, 0xf7, 0xa5, 0xdb, 0x90, + 0x03, 0x03, 0xdb, 0xfc, 0xe6, 0xaf, 0x58, 0x1f, 0xac, 0x80, 0x3a, 0x17, 0xa0, 0x51, 0x58, 0xb9, + 0xd2, 0xd9, 0xa3, 0x41, 0x32, 0x6c, 0x5f, 0x9d, 0xfc, 0xfe, 0xcd, 0xa3, 0x34, 0x99, 0x76, 0xc1, + 0xce, 0xea, 0x7c, 0xa6, 0xf1, 0x9d, 0x5c, 0x69, 0xfe, 0x92, 0xf5, 0x0e, 0xd4, 0x46, 0x65, 0x47, + 0x83, 0x64, 0x78, 0x1c, 0x0c, 0xa3, 0x68, 0xa2, 0xf8, 0x13, 0x76, 0x02, 0x36, 0x50, 0xc7, 0x44, + 0x1d, 0x83, 0x9d, 0x28, 0xfe, 0x8c, 0xa5, 0x34, 0x92, 0x2c, 0x20, 0x3b, 0x21, 0xbc, 0x15, 0x66, + 0x90, 0x05, 0xf0, 0xe7, 0xac, 0x0d, 0x56, 0xc8, 0xb2, 0x08, 0x35, 0x1f, 0x35, 0xdc, 0xdb, 0xb2, + 0x98, 0x28, 0x3e, 0x66, 0x1f, 0x83, 0x15, 0xde, 0xad, 0xd1, 0xd8, 0x42, 0x54, 0x12, 0x17, 0x02, + 0xb7, 0x95, 0xce, 0x5a, 0x24, 0x7b, 0x0c, 0x76, 0x1a, 0xa9, 0x1b, 0x89, 0x8b, 0xf7, 0xdb, 0x4a, + 0xf3, 0x57, 0x8c, 0x87, 0xf9, 0x9a, 0x28, 0xcc, 0x4a, 0xbb, 0x35, 0x66, 0x29, 0xc9, 0xcf, 0xc0, + 0xee, 0xb6, 0xf4, 0x3e, 0xe2, 0xbb, 0xa9, 0x00, 0x25, 0xea, 0xac, 0xdd, 0x74, 0x9e, 0x85, 0x23, + 0xff, 0x82, 0x9d, 0x05, 0x6a, 0xf3, 0x5f, 0x1c, 0x2a, 0x63, 0x24, 0xe9, 0x81, 0x9d, 0x6d, 0x9a, + 0x75, 0xab, 0xdd, 0xf8, 0x61, 0x23, 0x46, 0x65, 0x9d, 0xbd, 0x49, 0x9d, 0x4f, 0x14, 0x7f, 0xc1, + 0x18, 0x58, 0xe1, 0xe6, 0xf3, 0xd2, 0x49, 0x95, 0x75, 0x07, 0xc9, 0x30, 0x9d, 0xb6, 0xc1, 0x5e, + 0x47, 0xe0, 0xe2, 0x9f, 0x23, 0x96, 0xee, 0x73, 0x18, 0xb0, 0x14, 0x7c, 0x2e, 0xa4, 0x52, 0x3e, + 0x4b, 0x0e, 0x03, 0x68, 0x81, 0xcf, 0xdf, 0x2a, 0xe5, 0x83, 0x42, 0x01, 0x46, 0xc5, 0x83, 0x88, + 0x5a, 0x0a, 0x90, 0x14, 0x9f, 0xb1, 0x53, 0x4a, 0x5d, 0x19, 0xaf, 0x73, 0x34, 0xce, 0x52, 0x3c, + 0xbd, 0x69, 0x2f, 0xa0, 0xdf, 0x36, 0x20, 0x7d, 0xb6, 0xcf, 0x45, 0xe5, 0x3c, 0x52, 0x48, 0x3d, + 0xea, 0x71, 0xe3, 0x3c, 0x6d, 0x24, 0xf4, 0x20, 0xea, 0x24, 0x52, 0x0a, 0x90, 0xa8, 0xf0, 0xa1, + 0x3e, 0x17, 0x06, 0x44, 0xfd, 0x86, 0x72, 0x4a, 0xa9, 0x6c, 0x02, 0x3f, 0xbd, 0x09, 0x5c, 0x28, + 0x8b, 0x5c, 0x2b, 0x72, 0x0a, 0x90, 0xb8, 0x4f, 0x58, 0x9b, 0x86, 0xa2, 0xe0, 0x52, 0xf2, 0x4c, + 0x03, 0x40, 0x79, 0xbd, 0x60, 0x8c, 0xc8, 0x78, 0x33, 0xda, 0xc4, 0x92, 0x3c, 0xde, 0x8d, 0x67, + 0x2c, 0x35, 0x95, 0xa0, 0x27, 0x43, 0xdb, 0xef, 0x4d, 0x5b, 0xa6, 0xba, 0x09, 0x47, 0xfe, 0x92, + 0x75, 0x8d, 0x2a, 0xf5, 0x3e, 0xe3, 0xb8, 0xfa, 0x4e, 0xc0, 0x9a, 0x78, 0x3f, 0x67, 0x7d, 0x32, + 0xaf, 0x64, 0x7e, 0xa7, 0x11, 0x84, 0xb1, 0x94, 0xc1, 0x71, 0xdc, 0xc7, 0x4d, 0x44, 0x27, 0x96, + 0x0f, 0xd9, 0xd9, 0x03, 0x5d, 0xb0, 0xeb, 0x91, 0xf0, 0xf4, 0x40, 0x78, 0xbd, 0x46, 0x7e, 0xc1, + 0xa8, 0x54, 0xdc, 0x6e, 0x51, 0x93, 0xdf, 0x69, 0xec, 0x1a, 0xc0, 0xab, 0x80, 0x4d, 0x2c, 0xff, + 0x74, 0x17, 0x42, 0xd4, 0x04, 0xaf, 0x3e, 0x89, 0xba, 0x7b, 0xd1, 0xf5, 0x1a, 0xbf, 0xfe, 0x99, + 0xf1, 0xa5, 0xad, 0xfc, 0x2c, 0xaf, 0x9b, 0xa7, 0xfc, 0xdd, 0x6f, 0xc8, 0x9f, 0x8e, 0x7e, 0x58, + 0x5b, 0x53, 0x69, 0xff, 0x4e, 0xe3, 0xc6, 0xf9, 0x3b, 0x98, 0x69, 0x0b, 0xce, 0x43, 0x76, 0x3d, + 0x48, 0x86, 0x9d, 0xd7, 0x67, 0xa3, 0xff, 0xfd, 0x69, 0x4c, 0x3f, 0x60, 0x72, 0xf5, 0xeb, 0x9f, + 0xf7, 0xe7, 0xc9, 0x5f, 0xf7, 0xe7, 0xc9, 0xdf, 0xf7, 0xe7, 0xc9, 0x2f, 0xd3, 0xc2, 0xe0, 0x68, + 0x19, 0x5d, 0x47, 0x56, 0xe3, 0xd8, 0xe4, 0xfa, 0x56, 0xfb, 0x62, 0xbc, 0xd0, 0xb2, 0xc4, 0xc5, + 0xad, 0xc3, 0x4b, 0x63, 0x0b, 0x0d, 0x78, 0xb9, 0x44, 0x73, 0x69, 0x25, 0x9a, 0x5a, 0x8f, 0xab, + 0xbb, 0x62, 0xbc, 0x44, 0x33, 0x96, 0x4a, 0x56, 0xa8, 0x3d, 0x8c, 0xc5, 0x72, 0x6d, 0x1d, 0x8c, + 0x21, 0x5f, 0xe8, 0x95, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0xd1, 0xb4, 0x84, 0x59, 0xec, 0x04, + 0x00, 0x00, +} + +func (m *ServicesSession) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServicesSession) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServicesSession) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SvcsSessionInfo) > 0 { + for iNdEx := len(m.SvcsSessionInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SvcsSessionInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSessionTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SessionInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SessionInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SessionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SnOffload != nil { + i-- + if *m.SnOffload { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.SnSvcId != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnSvcId)) + i-- + dAtA[i] = 0x58 + } + if m.SnSwSessionId != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnSwSessionId)) + i-- + dAtA[i] = 0x50 + } + if m.SnState != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnState)) + i-- + dAtA[i] = 0x48 + } + if m.SnSessionTimeout != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnSessionTimeout)) + i-- + dAtA[i] = 0x40 + } + if m.SnRoutingPathType != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnRoutingPathType)) + i-- + dAtA[i] = 0x38 + } + if m.SnAlgId != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnAlgId)) + i-- + dAtA[i] = 0x30 + } + if m.SnFlags != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnFlags)) + i-- + dAtA[i] = 0x28 + } + if m.SnId != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnId)) + i-- + dAtA[i] = 0x20 + } + if m.SnSvcSetId != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SnSvcSetId)) + i-- + dAtA[i] = 0x18 + } + if m.SnSvcSetName != nil { + i -= len(*m.SnSvcSetName) + copy(dAtA[i:], *m.SnSvcSetName) + i = encodeVarintSessionTelemetry(dAtA, i, uint64(len(*m.SnSvcSetName))) + i-- + dAtA[i] = 0x12 + } + if len(m.SnFlowInfo) > 0 { + for iNdEx := len(m.SnFlowInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SnFlowInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSessionTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *FlowInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FlowInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlowInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.FlowBytesOut != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowBytesOut)) + i-- + dAtA[i] = 0x78 + } + if m.FlowBytesIn != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowBytesIn)) + i-- + dAtA[i] = 0x70 + } + if m.FlowPacketsOut != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowPacketsOut)) + i-- + dAtA[i] = 0x68 + } + if m.FlowPacketsIn != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowPacketsIn)) + i-- + dAtA[i] = 0x60 + } + if m.IdleTimeout != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.IdleTimeout)) + i-- + dAtA[i] = 0x58 + } + if m.IpProto != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.IpProto)) + i-- + dAtA[i] = 0x50 + } + if m.FlowFlags != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowFlags)) + i-- + dAtA[i] = 0x48 + } + if m.FlowType != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowType)) + i-- + dAtA[i] = 0x40 + } + if m.DstIsV6 != nil { + i-- + if *m.DstIsV6 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.SrcIsV6 != nil { + i-- + if *m.SrcIsV6 { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.DstPort != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.DstPort)) + i-- + dAtA[i] = 0x28 + } + if m.SrcPort != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.SrcPort)) + i-- + dAtA[i] = 0x20 + } + if m.FlowDirection != nil { + i = encodeVarintSessionTelemetry(dAtA, i, uint64(*m.FlowDirection)) + i-- + dAtA[i] = 0x18 + } + if m.DstAddr != nil { + i -= len(*m.DstAddr) + copy(dAtA[i:], *m.DstAddr) + i = encodeVarintSessionTelemetry(dAtA, i, uint64(len(*m.DstAddr))) + i-- + dAtA[i] = 0x12 + } + if m.SrcAddr != nil { + i -= len(*m.SrcAddr) + copy(dAtA[i:], *m.SrcAddr) + i = encodeVarintSessionTelemetry(dAtA, i, uint64(len(*m.SrcAddr))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintSessionTelemetry(dAtA []byte, offset int, v uint64) int { + offset -= sovSessionTelemetry(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ServicesSession) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SvcsSessionInfo) > 0 { + for _, e := range m.SvcsSessionInfo { + l = e.Size() + n += 1 + l + sovSessionTelemetry(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SessionInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SnFlowInfo) > 0 { + for _, e := range m.SnFlowInfo { + l = e.Size() + n += 1 + l + sovSessionTelemetry(uint64(l)) + } + } + if m.SnSvcSetName != nil { + l = len(*m.SnSvcSetName) + n += 1 + l + sovSessionTelemetry(uint64(l)) + } + if m.SnSvcSetId != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnSvcSetId)) + } + if m.SnId != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnId)) + } + if m.SnFlags != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnFlags)) + } + if m.SnAlgId != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnAlgId)) + } + if m.SnRoutingPathType != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnRoutingPathType)) + } + if m.SnSessionTimeout != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnSessionTimeout)) + } + if m.SnState != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnState)) + } + if m.SnSwSessionId != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnSwSessionId)) + } + if m.SnSvcId != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SnSvcId)) + } + if m.SnOffload != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *FlowInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SrcAddr != nil { + l = len(*m.SrcAddr) + n += 1 + l + sovSessionTelemetry(uint64(l)) + } + if m.DstAddr != nil { + l = len(*m.DstAddr) + n += 1 + l + sovSessionTelemetry(uint64(l)) + } + if m.FlowDirection != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowDirection)) + } + if m.SrcPort != nil { + n += 1 + sovSessionTelemetry(uint64(*m.SrcPort)) + } + if m.DstPort != nil { + n += 1 + sovSessionTelemetry(uint64(*m.DstPort)) + } + if m.SrcIsV6 != nil { + n += 2 + } + if m.DstIsV6 != nil { + n += 2 + } + if m.FlowType != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowType)) + } + if m.FlowFlags != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowFlags)) + } + if m.IpProto != nil { + n += 1 + sovSessionTelemetry(uint64(*m.IpProto)) + } + if m.IdleTimeout != nil { + n += 1 + sovSessionTelemetry(uint64(*m.IdleTimeout)) + } + if m.FlowPacketsIn != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowPacketsIn)) + } + if m.FlowPacketsOut != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowPacketsOut)) + } + if m.FlowBytesIn != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowBytesIn)) + } + if m.FlowBytesOut != nil { + n += 1 + sovSessionTelemetry(uint64(*m.FlowBytesOut)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSessionTelemetry(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSessionTelemetry(x uint64) (n int) { + return sovSessionTelemetry(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ServicesSession) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServicesSession: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServicesSession: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsSessionInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSessionTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSessionTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SvcsSessionInfo = append(m.SvcsSessionInfo, &SessionInfo{}) + if err := m.SvcsSessionInfo[len(m.SvcsSessionInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSessionTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSessionTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSessionTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SessionInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SessionInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SessionInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SnFlowInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSessionTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSessionTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SnFlowInfo = append(m.SnFlowInfo, &FlowInfo{}) + if err := m.SnFlowInfo[len(m.SnFlowInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SnSvcSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSessionTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSessionTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SnSvcSetName = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnSvcSetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnSvcSetId = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnId = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnFlags", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnFlags = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnAlgId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnAlgId = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnRoutingPathType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnRoutingPathType = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnSessionTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnSessionTimeout = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnState", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnState = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnSwSessionId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnSwSessionId = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnSvcId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SnSvcId = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnOffload", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SnOffload = &b + default: + iNdEx = preIndex + skippy, err := skipSessionTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSessionTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSessionTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FlowInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FlowInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlowInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrcAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSessionTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSessionTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SrcAddr = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DstAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSessionTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSessionTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.DstAddr = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowDirection", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowDirection = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SrcPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SrcPort = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DstPort", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DstPort = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SrcIsV6", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.SrcIsV6 = &b + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DstIsV6", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.DstIsV6 = &b + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowType", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowType = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowFlags", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowFlags = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IpProto", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IpProto = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IdleTimeout", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IdleTimeout = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowPacketsIn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowPacketsIn = &v + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowPacketsOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowPacketsOut = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowBytesIn", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowBytesIn = &v + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowBytesOut", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowBytesOut = &v + default: + iNdEx = preIndex + skippy, err := skipSessionTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSessionTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSessionTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSessionTelemetry(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSessionTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSessionTelemetry + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSessionTelemetry + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSessionTelemetry + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSessionTelemetry = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSessionTelemetry = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSessionTelemetry = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/session_telemetry.proto b/schema/session_telemetry.proto new file mode 100755 index 0000000..29005cb --- /dev/null +++ b/schema/session_telemetry.proto @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2017 Juniper Networks, Inc. +// 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. + + +// +// Version 1.1 +// + +// +// Shibu Piriyath 2017-09-11 +// +// This file defines the messages in Protocol Buffers used by +// the service pic sessions sensor. The top-level message is ServicesSession. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 79 from JuniperNetworksSensors + +extend JuniperNetworksSensors { + optional ServicesSession jnprScvsSessionExt = 79; +} + +// +// Top-level message +// +// + +message ServicesSession { + repeated SessionInfo svcs_session_info = 1; +} + +message SessionInfo { + repeated FlowInfo sn_flow_info = 1; + optional string sn_svc_set_name = 2[(telemetry_options).is_key = true]; + optional uint64 sn_svc_set_id = 3; + optional uint64 sn_id = 4; + optional uint64 sn_flags = 5; + optional uint64 sn_alg_id = 6; + optional uint64 sn_routing_path_type = 7; + optional uint64 sn_session_timeout = 8; + optional uint64 sn_state = 9; + optional uint64 sn_sw_session_id = 10; + optional uint64 sn_svc_id = 11; + optional bool sn_offload = 12; +} + +//-------------------------- +message FlowInfo { + optional string src_addr = 1[(telemetry_options).is_key = true]; + optional string dst_addr = 2[(telemetry_options).is_key = true]; + optional uint32 flow_direction = 3; + optional uint32 src_port = 4; + optional uint32 dst_port = 5; + optional bool src_is_v6 = 6; + optional bool dst_is_v6 = 7; + optional uint32 flow_type = 8; + optional uint32 flow_flags = 9; + optional uint32 ip_proto = 10; + optional uint64 idle_timeout = 11; + optional uint64 flow_packets_in = 12; + optional uint64 flow_packets_out = 13; + optional uint64 flow_bytes_in = 14; + optional uint64 flow_bytes_out = 15; +} diff --git a/schema/smid_oc.pb.go b/schema/smid_oc.pb.go new file mode 100644 index 0000000..d41d6f1 --- /dev/null +++ b/schema/smid_oc.pb.go @@ -0,0 +1,8189 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: smid_oc.proto + +package schema + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosSmi struct { + System *JunosSmiSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmi) Reset() { *m = JunosSmi{} } +func (m *JunosSmi) String() string { return proto.CompactTextString(m) } +func (*JunosSmi) ProtoMessage() {} +func (*JunosSmi) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0} +} +func (m *JunosSmi) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmi) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmi.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmi) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmi.Merge(m, src) +} +func (m *JunosSmi) XXX_Size() int { + return m.Size() +} +func (m *JunosSmi) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmi.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmi proto.InternalMessageInfo + +func (m *JunosSmi) GetSystem() *JunosSmiSystemType { + if m != nil { + return m.System + } + return nil +} + +type JunosSmiSystemType struct { + SubscriberManagement *JunosSmiSystemTypeSubscriberManagementType `protobuf:"bytes,151,opt,name=subscriber_management,json=subscriberManagement" json:"subscriber_management,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemType) Reset() { *m = JunosSmiSystemType{} } +func (m *JunosSmiSystemType) String() string { return proto.CompactTextString(m) } +func (*JunosSmiSystemType) ProtoMessage() {} +func (*JunosSmiSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0} +} +func (m *JunosSmiSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemType.Merge(m, src) +} +func (m *JunosSmiSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemType proto.InternalMessageInfo + +func (m *JunosSmiSystemType) GetSubscriberManagement() *JunosSmiSystemTypeSubscriberManagementType { + if m != nil { + return m.SubscriberManagement + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementType struct { + Infra *JunosSmiSystemTypeSubscriberManagementTypeInfraType `protobuf:"bytes,151,opt,name=infra" json:"infra,omitempty"` + Chassis []*JunosSmiSystemTypeSubscriberManagementTypeChassisList `protobuf:"bytes,152,rep,name=chassis" json:"chassis,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementType) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementType) GetInfra() *JunosSmiSystemTypeSubscriberManagementTypeInfraType { + if m != nil { + return m.Infra + } + return nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementType) GetChassis() []*JunosSmiSystemTypeSubscriberManagementTypeChassisList { + if m != nil { + return m.Chassis + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraType struct { + Sdb *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType `protobuf:"bytes,151,opt,name=sdb" json:"sdb,omitempty"` + ResourceMonitor *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType `protobuf:"bytes,152,opt,name=resource_monitor,json=resourceMonitor" json:"resource_monitor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraType) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) GetSdb() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType { + if m != nil { + return m.Sdb + } + return nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) GetResourceMonitor() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType { + if m != nil { + return m.ResourceMonitor + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType struct { + Statistics *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) GetStatistics() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType struct { + State *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + ClientType *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType `protobuf:"bytes,152,opt,name=client_type,json=clientType" json:"client_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) GetState() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) GetClientType() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType { + if m != nil { + return m.ClientType + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType struct { + InitStateCount *uint32 `protobuf:"varint,51,opt,name=init_state_count,json=initStateCount" json:"init_state_count,omitempty"` + ConfiguredStateCount *uint32 `protobuf:"varint,52,opt,name=configured_state_count,json=configuredStateCount" json:"configured_state_count,omitempty"` + ActiveStateCount *uint32 `protobuf:"varint,53,opt,name=active_state_count,json=activeStateCount" json:"active_state_count,omitempty"` + TerminatingStateCount *uint32 `protobuf:"varint,54,opt,name=terminating_state_count,json=terminatingStateCount" json:"terminating_state_count,omitempty"` + TerminatedStateCount *uint32 `protobuf:"varint,55,opt,name=terminated_state_count,json=terminatedStateCount" json:"terminated_state_count,omitempty"` + TotalStateCount *uint32 `protobuf:"varint,56,opt,name=total_state_count,json=totalStateCount" json:"total_state_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) GetInitStateCount() uint32 { + if m != nil && m.InitStateCount != nil { + return *m.InitStateCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) GetConfiguredStateCount() uint32 { + if m != nil && m.ConfiguredStateCount != nil { + return *m.ConfiguredStateCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) GetActiveStateCount() uint32 { + if m != nil && m.ActiveStateCount != nil { + return *m.ActiveStateCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) GetTerminatingStateCount() uint32 { + if m != nil && m.TerminatingStateCount != nil { + return *m.TerminatingStateCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) GetTerminatedStateCount() uint32 { + if m != nil && m.TerminatedStateCount != nil { + return *m.TerminatedStateCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) GetTotalStateCount() uint32 { + if m != nil && m.TotalStateCount != nil { + return *m.TotalStateCount + } + return 0 +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType struct { + DhcpClientCount *uint32 `protobuf:"varint,61,opt,name=dhcp_client_count,json=dhcpClientCount" json:"dhcp_client_count,omitempty"` + VlanClientCount *uint32 `protobuf:"varint,62,opt,name=vlan_client_count,json=vlanClientCount" json:"vlan_client_count,omitempty"` + PppClientCount *uint32 `protobuf:"varint,63,opt,name=ppp_client_count,json=pppClientCount" json:"ppp_client_count,omitempty"` + PppoeClientCount *uint32 `protobuf:"varint,64,opt,name=pppoe_client_count,json=pppoeClientCount" json:"pppoe_client_count,omitempty"` + L2TpClientCount *uint32 `protobuf:"varint,65,opt,name=l2tp_client_count,json=l2tpClientCount" json:"l2tp_client_count,omitempty"` + StaticClientCount *uint32 `protobuf:"varint,66,opt,name=static_client_count,json=staticClientCount" json:"static_client_count,omitempty"` + VplsPwClientCount *uint32 `protobuf:"varint,67,opt,name=vpls_pw_client_count,json=vplsPwClientCount" json:"vpls_pw_client_count,omitempty"` + MlpppClientCount *uint32 `protobuf:"varint,68,opt,name=mlppp_client_count,json=mlpppClientCount" json:"mlppp_client_count,omitempty"` + EssmClientCount *uint32 `protobuf:"varint,69,opt,name=essm_client_count,json=essmClientCount" json:"essm_client_count,omitempty"` + TotalClientCount *uint32 `protobuf:"varint,70,opt,name=total_client_count,json=totalClientCount" json:"total_client_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 0, 0, 1} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetDhcpClientCount() uint32 { + if m != nil && m.DhcpClientCount != nil { + return *m.DhcpClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetVlanClientCount() uint32 { + if m != nil && m.VlanClientCount != nil { + return *m.VlanClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetPppClientCount() uint32 { + if m != nil && m.PppClientCount != nil { + return *m.PppClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetPppoeClientCount() uint32 { + if m != nil && m.PppoeClientCount != nil { + return *m.PppoeClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetL2TpClientCount() uint32 { + if m != nil && m.L2TpClientCount != nil { + return *m.L2TpClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetStaticClientCount() uint32 { + if m != nil && m.StaticClientCount != nil { + return *m.StaticClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetVplsPwClientCount() uint32 { + if m != nil && m.VplsPwClientCount != nil { + return *m.VplsPwClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetMlpppClientCount() uint32 { + if m != nil && m.MlpppClientCount != nil { + return *m.MlpppClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetEssmClientCount() uint32 { + if m != nil && m.EssmClientCount != nil { + return *m.EssmClientCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) GetTotalClientCount() uint32 { + if m != nil && m.TotalClientCount != nil { + return *m.TotalClientCount + } + return 0 +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType struct { + Chassis *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType `protobuf:"bytes,151,opt,name=chassis" json:"chassis,omitempty"` + Fpcs *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType `protobuf:"bytes,152,opt,name=fpcs" json:"fpcs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) GetChassis() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType { + if m != nil { + return m.Chassis + } + return nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) GetFpcs() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType { + if m != nil { + return m.Fpcs + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType struct { + ConfiguredSubscriberLimit *uint32 `protobuf:"varint,131,opt,name=configured_subscriber_limit,json=configuredSubscriberLimit" json:"configured_subscriber_limit,omitempty"` + CurrentSubscriberCount *uint32 `protobuf:"varint,132,opt,name=current_subscriber_count,json=currentSubscriberCount" json:"current_subscriber_count,omitempty"` + SubscriberLimitExceeded *uint32 `protobuf:"varint,201,opt,name=subscriber_limit_exceeded,json=subscriberLimitExceeded" json:"subscriber_limit_exceeded,omitempty"` + SubscriberLimitNominal *uint32 `protobuf:"varint,202,opt,name=subscriber_limit_nominal,json=subscriberLimitNominal" json:"subscriber_limit_nominal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) GetConfiguredSubscriberLimit() uint32 { + if m != nil && m.ConfiguredSubscriberLimit != nil { + return *m.ConfiguredSubscriberLimit + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) GetCurrentSubscriberCount() uint32 { + if m != nil && m.CurrentSubscriberCount != nil { + return *m.CurrentSubscriberCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) GetSubscriberLimitExceeded() uint32 { + if m != nil && m.SubscriberLimitExceeded != nil { + return *m.SubscriberLimitExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) GetSubscriberLimitNominal() uint32 { + if m != nil && m.SubscriberLimitNominal != nil { + return *m.SubscriberLimitNominal + } + return 0 +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType struct { + Fpc []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList `protobuf:"bytes,151,rep,name=fpc" json:"fpc,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) GetFpc() []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList { + if m != nil { + return m.Fpc + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList struct { + Slot *uint32 `protobuf:"varint,51,opt,name=slot" json:"slot,omitempty"` + Statistics *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType `protobuf:"bytes,151,opt,name=statistics" json:"statistics,omitempty"` + Pics *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType `protobuf:"bytes,152,opt,name=pics" json:"pics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) GetSlot() uint32 { + if m != nil && m.Slot != nil { + return *m.Slot + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) GetStatistics() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType { + if m != nil { + return m.Statistics + } + return nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) GetPics() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType { + if m != nil { + return m.Pics + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType struct { + HeapMemoryUsed *uint32 `protobuf:"varint,81,opt,name=heap_memory_used,json=heapMemoryUsed" json:"heap_memory_used,omitempty"` + ClientSessionDeniedCount *uint32 `protobuf:"varint,82,opt,name=client_session_denied_count,json=clientSessionDeniedCount" json:"client_session_denied_count,omitempty"` + ServiceSessionDeniedCount *uint32 `protobuf:"varint,83,opt,name=service_session_denied_count,json=serviceSessionDeniedCount" json:"service_session_denied_count,omitempty"` + RttThrottledSubCountClient *uint32 `protobuf:"varint,84,opt,name=rtt_throttled_sub_count_client,json=rttThrottledSubCountClient" json:"rtt_throttled_sub_count_client,omitempty"` + RttThrottledSubCountService *uint32 `protobuf:"varint,85,opt,name=rtt_throttled_sub_count_service,json=rttThrottledSubCountService" json:"rtt_throttled_sub_count_service,omitempty"` + ConfiguredSubscriberLimit *uint32 `protobuf:"varint,131,opt,name=configured_subscriber_limit,json=configuredSubscriberLimit" json:"configured_subscriber_limit,omitempty"` + CurrentSubscriberCount *uint32 `protobuf:"varint,132,opt,name=current_subscriber_count,json=currentSubscriberCount" json:"current_subscriber_count,omitempty"` + MemHeapExceeded *uint32 `protobuf:"varint,91,opt,name=mem_heap_exceeded,json=memHeapExceeded" json:"mem_heap_exceeded,omitempty"` + MemHeapNominal *uint32 `protobuf:"varint,92,opt,name=mem_heap_nominal,json=memHeapNominal" json:"mem_heap_nominal,omitempty"` + SubscriberLimitExceeded *uint32 `protobuf:"varint,201,opt,name=subscriber_limit_exceeded,json=subscriberLimitExceeded" json:"subscriber_limit_exceeded,omitempty"` + SubscriberLimitNominal *uint32 `protobuf:"varint,202,opt,name=subscriber_limit_nominal,json=subscriberLimitNominal" json:"subscriber_limit_nominal,omitempty"` + Pfes *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType `protobuf:"bytes,151,opt,name=pfes" json:"pfes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetHeapMemoryUsed() uint32 { + if m != nil && m.HeapMemoryUsed != nil { + return *m.HeapMemoryUsed + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetClientSessionDeniedCount() uint32 { + if m != nil && m.ClientSessionDeniedCount != nil { + return *m.ClientSessionDeniedCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetServiceSessionDeniedCount() uint32 { + if m != nil && m.ServiceSessionDeniedCount != nil { + return *m.ServiceSessionDeniedCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetRttThrottledSubCountClient() uint32 { + if m != nil && m.RttThrottledSubCountClient != nil { + return *m.RttThrottledSubCountClient + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetRttThrottledSubCountService() uint32 { + if m != nil && m.RttThrottledSubCountService != nil { + return *m.RttThrottledSubCountService + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetConfiguredSubscriberLimit() uint32 { + if m != nil && m.ConfiguredSubscriberLimit != nil { + return *m.ConfiguredSubscriberLimit + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetCurrentSubscriberCount() uint32 { + if m != nil && m.CurrentSubscriberCount != nil { + return *m.CurrentSubscriberCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetMemHeapExceeded() uint32 { + if m != nil && m.MemHeapExceeded != nil { + return *m.MemHeapExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetMemHeapNominal() uint32 { + if m != nil && m.MemHeapNominal != nil { + return *m.MemHeapNominal + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetSubscriberLimitExceeded() uint32 { + if m != nil && m.SubscriberLimitExceeded != nil { + return *m.SubscriberLimitExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetSubscriberLimitNominal() uint32 { + if m != nil && m.SubscriberLimitNominal != nil { + return *m.SubscriberLimitNominal + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) GetPfes() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType { + if m != nil { + return m.Pfes + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType struct { + Pfe []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList `protobuf:"bytes,151,rep,name=pfe" json:"pfe,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) GetPfe() []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList { + if m != nil { + return m.Pfe + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList struct { + PfeNo *uint32 `protobuf:"varint,51,opt,name=pfe_no,json=pfeNo" json:"pfe_no,omitempty"` + FilterMemoryUsed *uint32 `protobuf:"varint,101,opt,name=filter_memory_used,json=filterMemoryUsed" json:"filter_memory_used,omitempty"` + IflMemoryUsed *uint32 `protobuf:"varint,102,opt,name=ifl_memory_used,json=iflMemoryUsed" json:"ifl_memory_used,omitempty"` + ExpansionMemoryUsed *uint32 `protobuf:"varint,103,opt,name=expansion_memory_used,json=expansionMemoryUsed" json:"expansion_memory_used,omitempty"` + NhMemoryFree *uint32 `protobuf:"varint,104,opt,name=nh_memory_free,json=nhMemoryFree" json:"nh_memory_free,omitempty"` + FwMemoryFree *uint32 `protobuf:"varint,105,opt,name=fw_memory_free,json=fwMemoryFree" json:"fw_memory_free,omitempty"` + MemIflExceeded *uint32 `protobuf:"varint,111,opt,name=mem_ifl_exceeded,json=memIflExceeded" json:"mem_ifl_exceeded,omitempty"` + MemIflNominal *uint32 `protobuf:"varint,112,opt,name=mem_ifl_nominal,json=memIflNominal" json:"mem_ifl_nominal,omitempty"` + MemExpansionExceeded *uint32 `protobuf:"varint,113,opt,name=mem_expansion_exceeded,json=memExpansionExceeded" json:"mem_expansion_exceeded,omitempty"` + MemExpansionNominal *uint32 `protobuf:"varint,114,opt,name=mem_expansion_nominal,json=memExpansionNominal" json:"mem_expansion_nominal,omitempty"` + SchedBlocks *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType `protobuf:"bytes,151,opt,name=sched_blocks,json=schedBlocks" json:"sched_blocks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetPfeNo() uint32 { + if m != nil && m.PfeNo != nil { + return *m.PfeNo + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetFilterMemoryUsed() uint32 { + if m != nil && m.FilterMemoryUsed != nil { + return *m.FilterMemoryUsed + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetIflMemoryUsed() uint32 { + if m != nil && m.IflMemoryUsed != nil { + return *m.IflMemoryUsed + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetExpansionMemoryUsed() uint32 { + if m != nil && m.ExpansionMemoryUsed != nil { + return *m.ExpansionMemoryUsed + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetNhMemoryFree() uint32 { + if m != nil && m.NhMemoryFree != nil { + return *m.NhMemoryFree + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetFwMemoryFree() uint32 { + if m != nil && m.FwMemoryFree != nil { + return *m.FwMemoryFree + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetMemIflExceeded() uint32 { + if m != nil && m.MemIflExceeded != nil { + return *m.MemIflExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetMemIflNominal() uint32 { + if m != nil && m.MemIflNominal != nil { + return *m.MemIflNominal + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetMemExpansionExceeded() uint32 { + if m != nil && m.MemExpansionExceeded != nil { + return *m.MemExpansionExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetMemExpansionNominal() uint32 { + if m != nil && m.MemExpansionNominal != nil { + return *m.MemExpansionNominal + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) GetSchedBlocks() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType { + if m != nil { + return m.SchedBlocks + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType struct { + SchedBlock []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList `protobuf:"bytes,151,rep,name=sched_block,json=schedBlock" json:"sched_block,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) GetSchedBlock() []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList { + if m != nil { + return m.SchedBlock + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList struct { + SblockNo *uint32 `protobuf:"varint,51,opt,name=sblock_no,json=sblockNo" json:"sblock_no,omitempty"` + QueuesMax *uint32 `protobuf:"varint,121,opt,name=queues_max,json=queuesMax" json:"queues_max,omitempty"` + QueuesAllocated *uint32 `protobuf:"varint,122,opt,name=queues_allocated,json=queuesAllocated" json:"queues_allocated,omitempty"` + CosUtilizationExceeded *uint32 `protobuf:"varint,141,opt,name=cos_utilization_exceeded,json=cosUtilizationExceeded" json:"cos_utilization_exceeded,omitempty"` + CosUtilizationNominal *uint32 `protobuf:"varint,142,opt,name=cos_utilization_nominal,json=cosUtilizationNominal" json:"cos_utilization_nominal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) GetSblockNo() uint32 { + if m != nil && m.SblockNo != nil { + return *m.SblockNo + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) GetQueuesMax() uint32 { + if m != nil && m.QueuesMax != nil { + return *m.QueuesMax + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) GetQueuesAllocated() uint32 { + if m != nil && m.QueuesAllocated != nil { + return *m.QueuesAllocated + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) GetCosUtilizationExceeded() uint32 { + if m != nil && m.CosUtilizationExceeded != nil { + return *m.CosUtilizationExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) GetCosUtilizationNominal() uint32 { + if m != nil && m.CosUtilizationNominal != nil { + return *m.CosUtilizationNominal + } + return 0 +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType struct { + Pic []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList `protobuf:"bytes,151,rep,name=pic" json:"pic,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 1} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) GetPic() []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList { + if m != nil { + return m.Pic + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList struct { + PicNo *uint32 `protobuf:"varint,51,opt,name=pic_no,json=picNo" json:"pic_no,omitempty"` + ConfiguredSubscriberLimit *uint32 `protobuf:"varint,131,opt,name=configured_subscriber_limit,json=configuredSubscriberLimit" json:"configured_subscriber_limit,omitempty"` + CurrentSubscriberCount *uint32 `protobuf:"varint,132,opt,name=current_subscriber_count,json=currentSubscriberCount" json:"current_subscriber_count,omitempty"` + SubscriberLimitExceeded *uint32 `protobuf:"varint,201,opt,name=subscriber_limit_exceeded,json=subscriberLimitExceeded" json:"subscriber_limit_exceeded,omitempty"` + SubscriberLimitNominal *uint32 `protobuf:"varint,202,opt,name=subscriber_limit_nominal,json=subscriberLimitNominal" json:"subscriber_limit_nominal,omitempty"` + Ports *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType `protobuf:"bytes,151,opt,name=ports" json:"ports,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 1, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) GetPicNo() uint32 { + if m != nil && m.PicNo != nil { + return *m.PicNo + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) GetConfiguredSubscriberLimit() uint32 { + if m != nil && m.ConfiguredSubscriberLimit != nil { + return *m.ConfiguredSubscriberLimit + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) GetCurrentSubscriberCount() uint32 { + if m != nil && m.CurrentSubscriberCount != nil { + return *m.CurrentSubscriberCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) GetSubscriberLimitExceeded() uint32 { + if m != nil && m.SubscriberLimitExceeded != nil { + return *m.SubscriberLimitExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) GetSubscriberLimitNominal() uint32 { + if m != nil && m.SubscriberLimitNominal != nil { + return *m.SubscriberLimitNominal + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) GetPorts() *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType { + if m != nil { + return m.Ports + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType struct { + Port []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList `protobuf:"bytes,151,rep,name=port" json:"port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 1, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) GetPort() []*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList { + if m != nil { + return m.Port + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList struct { + PortNo *uint32 `protobuf:"varint,51,opt,name=port_no,json=portNo" json:"port_no,omitempty"` + ConfiguredSubscriberLimit *uint32 `protobuf:"varint,131,opt,name=configured_subscriber_limit,json=configuredSubscriberLimit" json:"configured_subscriber_limit,omitempty"` + CurrentSubscriberCount *uint32 `protobuf:"varint,132,opt,name=current_subscriber_count,json=currentSubscriberCount" json:"current_subscriber_count,omitempty"` + SubscriberLimitExceeded *uint32 `protobuf:"varint,201,opt,name=subscriber_limit_exceeded,json=subscriberLimitExceeded" json:"subscriber_limit_exceeded,omitempty"` + SubscriberLimitNominal *uint32 `protobuf:"varint,202,opt,name=subscriber_limit_nominal,json=subscriberLimitNominal" json:"subscriber_limit_nominal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) GetPortNo() uint32 { + if m != nil && m.PortNo != nil { + return *m.PortNo + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) GetConfiguredSubscriberLimit() uint32 { + if m != nil && m.ConfiguredSubscriberLimit != nil { + return *m.ConfiguredSubscriberLimit + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) GetCurrentSubscriberCount() uint32 { + if m != nil && m.CurrentSubscriberCount != nil { + return *m.CurrentSubscriberCount + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) GetSubscriberLimitExceeded() uint32 { + if m != nil && m.SubscriberLimitExceeded != nil { + return *m.SubscriberLimitExceeded + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) GetSubscriberLimitNominal() uint32 { + if m != nil && m.SubscriberLimitNominal != nil { + return *m.SubscriberLimitNominal + } + return 0 +} + +type JunosSmiSystemTypeSubscriberManagementTypeChassisList struct { + MemberId *uint32 `protobuf:"varint,51,opt,name=member_id,json=memberId" json:"member_id,omitempty"` + Role *string `protobuf:"bytes,52,opt,name=role" json:"role,omitempty"` + RoutingEngines *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType `protobuf:"bytes,151,opt,name=routing_engines,json=routingEngines" json:"routing_engines,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeChassisList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisList) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 1} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) GetMemberId() uint32 { + if m != nil && m.MemberId != nil { + return *m.MemberId + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) GetRole() string { + if m != nil && m.Role != nil { + return *m.Role + } + return "" +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) GetRoutingEngines() *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType { + if m != nil { + return m.RoutingEngines + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType struct { + RoutingEngine []*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList `protobuf:"bytes,151,rep,name=routing_engine,json=routingEngine" json:"routing_engine,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) ProtoMessage() {} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 1, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) GetRoutingEngine() []*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList { + if m != nil { + return m.RoutingEngine + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList struct { + ReIndex *uint32 `protobuf:"varint,51,opt,name=re_index,json=reIndex" json:"re_index,omitempty"` + Role *string `protobuf:"bytes,52,opt,name=role" json:"role,omitempty"` + DbSynced *bool `protobuf:"varint,53,opt,name=db_synced,json=dbSynced" json:"db_synced,omitempty"` + ProcessStatus *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType `protobuf:"bytes,151,opt,name=process_status,json=processStatus" json:"process_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 1, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) GetReIndex() uint32 { + if m != nil && m.ReIndex != nil { + return *m.ReIndex + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) GetRole() string { + if m != nil && m.Role != nil { + return *m.Role + } + return "" +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) GetDbSynced() bool { + if m != nil && m.DbSynced != nil { + return *m.DbSynced + } + return false +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) GetProcessStatus() *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType { + if m != nil { + return m.ProcessStatus + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType struct { + SubscriberManagementProcesses *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType `protobuf:"bytes,151,opt,name=subscriber_management_processes,json=subscriberManagementProcesses" json:"subscriber_management_processes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 1, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) GetSubscriberManagementProcesses() *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType { + if m != nil { + return m.SubscriberManagementProcesses + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType struct { + SubscriberManagementProcess []*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList `protobuf:"bytes,151,rep,name=subscriber_management_process,json=subscriberManagementProcess" json:"subscriber_management_process,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 1, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) GetSubscriberManagementProcess() []*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList { + if m != nil { + return m.SubscriberManagementProcess + } + return nil +} + +type JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList struct { + ProcessName *string `protobuf:"bytes,51,opt,name=process_name,json=processName" json:"process_name,omitempty"` + Pid *uint64 `protobuf:"varint,52,opt,name=pid" json:"pid,omitempty"` + Runtime *uint64 `protobuf:"varint,53,opt,name=runtime" json:"runtime,omitempty"` + CpuUtilization *float64 `protobuf:"fixed64,54,opt,name=cpu_utilization,json=cpuUtilization" json:"cpu_utilization,omitempty"` + MemoryUtilization *float64 `protobuf:"fixed64,55,opt,name=memory_utilization,json=memoryUtilization" json:"memory_utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) Reset() { + *m = JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList{} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) String() string { + return proto.CompactTextString(m) +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) ProtoMessage() { +} +func (*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) Descriptor() ([]byte, []int) { + return fileDescriptor_352359fcef49673a, []int{0, 0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList.Merge(m, src) +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) XXX_Size() int { + return m.Size() +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList proto.InternalMessageInfo + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) GetProcessName() string { + if m != nil && m.ProcessName != nil { + return *m.ProcessName + } + return "" +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) GetPid() uint64 { + if m != nil && m.Pid != nil { + return *m.Pid + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) GetRuntime() uint64 { + if m != nil && m.Runtime != nil { + return *m.Runtime + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) GetCpuUtilization() float64 { + if m != nil && m.CpuUtilization != nil { + return *m.CpuUtilization + } + return 0 +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) GetMemoryUtilization() float64 { + if m != nil && m.MemoryUtilization != nil { + return *m.MemoryUtilization + } + return 0 +} + +var E_JnprJunosSmiExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosSmi)(nil), + Field: 70, + Name: "jnpr_junos_smi_ext", + Tag: "bytes,70,opt,name=jnpr_junos_smi_ext", + Filename: "smid_oc.proto", +} + +func init() { + proto.RegisterType((*JunosSmi)(nil), "junos_smi") + proto.RegisterType((*JunosSmiSystemType)(nil), "junos_smi.system_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementType)(nil), "junos_smi.system_type.subscriber_management_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.sdb_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.sdb_type.statistics_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.sdb_type.statistics_type.state_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.sdb_type.statistics_type.client_type_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.chassis_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.statistics_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.statistics_type.pfes_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.statistics_type.pfes_type.pfe_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.statistics_type.pfes_type.pfe_list.sched_blocks_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.statistics_type.pfes_type.pfe_list.sched_blocks_type.sched_block_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.pics_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.pics_type.pic_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.pics_type.pic_list.ports_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList)(nil), "junos_smi.system_type.subscriber_management_type.infra_type.resource_monitor_type.fpcs_type.fpc_list.pics_type.pic_list.ports_type.port_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeChassisList)(nil), "junos_smi.system_type.subscriber_management_type.chassis_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType)(nil), "junos_smi.system_type.subscriber_management_type.chassis_list.routing_engines_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList)(nil), "junos_smi.system_type.subscriber_management_type.chassis_list.routing_engines_type.routing_engine_list") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType)(nil), "junos_smi.system_type.subscriber_management_type.chassis_list.routing_engines_type.routing_engine_list.process_status_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType)(nil), "junos_smi.system_type.subscriber_management_type.chassis_list.routing_engines_type.routing_engine_list.process_status_type.subscriber_management_processes_type") + proto.RegisterType((*JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList)(nil), "junos_smi.system_type.subscriber_management_type.chassis_list.routing_engines_type.routing_engine_list.process_status_type.subscriber_management_processes_type.subscriber_management_process_list") + proto.RegisterExtension(E_JnprJunosSmiExt) +} + +func init() { proto.RegisterFile("smid_oc.proto", fileDescriptor_352359fcef49673a) } + +var fileDescriptor_352359fcef49673a = []byte{ + // 1932 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0x5b, 0x8f, 0x1c, 0x47, + 0x15, 0x56, 0xef, 0xc5, 0x3b, 0x73, 0xd6, 0xbb, 0x3b, 0x5b, 0xeb, 0xb5, 0xc7, 0xbd, 0xf6, 0x66, + 0x65, 0x45, 0x61, 0x09, 0xf1, 0xac, 0x58, 0x4c, 0x1c, 0x03, 0x89, 0x93, 0xb5, 0x37, 0xc2, 0x11, + 0x5e, 0x99, 0x19, 0x5b, 0xe2, 0x12, 0xa9, 0xd3, 0xd3, 0x7d, 0x7a, 0xa6, 0xec, 0xbe, 0xb9, 0xab, + 0x7a, 0x2f, 0x46, 0x80, 0x94, 0x44, 0x4a, 0x10, 0x84, 0x8b, 0x84, 0x00, 0x71, 0x11, 0x48, 0x48, + 0x08, 0x29, 0x42, 0xf2, 0x03, 0x12, 0x6f, 0xf0, 0xc0, 0x4b, 0xe0, 0x01, 0x21, 0x04, 0x42, 0x82, + 0x17, 0xe4, 0x47, 0x5e, 0x78, 0xe1, 0x07, 0xa0, 0xaa, 0xea, 0xea, 0x9b, 0x27, 0x0e, 0x91, 0xb3, + 0x5e, 0x4b, 0x7e, 0xeb, 0xfe, 0xce, 0x77, 0x2e, 0x55, 0x75, 0xce, 0xe9, 0x33, 0x35, 0x30, 0xc3, + 0x02, 0xea, 0x5a, 0x91, 0xd3, 0x89, 0x93, 0x88, 0x47, 0xe6, 0x02, 0x47, 0x1f, 0x03, 0xe4, 0xc9, + 0x9e, 0xc5, 0xa3, 0x58, 0x81, 0xa7, 0xfe, 0x73, 0x0e, 0x9a, 0xd7, 0xd3, 0x30, 0x62, 0x16, 0x0b, + 0x28, 0x59, 0x83, 0x43, 0x6c, 0x8f, 0x71, 0x0c, 0xda, 0xdf, 0x37, 0x56, 0x8c, 0xd5, 0xe9, 0xf5, + 0xa3, 0x9d, 0x5c, 0xd8, 0x51, 0x12, 0x8b, 0xef, 0xc5, 0xd8, 0xcd, 0x68, 0xe6, 0xed, 0x73, 0x30, + 0x5d, 0xc2, 0xc9, 0x00, 0x16, 0x59, 0xda, 0x67, 0x4e, 0x42, 0xfb, 0x98, 0x58, 0x81, 0x1d, 0xda, + 0x03, 0x0c, 0x30, 0xe4, 0xda, 0xde, 0x47, 0x47, 0xdb, 0xeb, 0x8c, 0x54, 0x52, 0xae, 0x8e, 0x14, + 0xb2, 0xcb, 0xb9, 0xc8, 0xfc, 0xcd, 0x33, 0x60, 0xbe, 0xbb, 0x12, 0xe9, 0xc1, 0x24, 0x0d, 0xbd, + 0xc4, 0xd6, 0x7e, 0x3f, 0xf5, 0xbe, 0xfd, 0x76, 0xa4, 0xbe, 0x0a, 0x41, 0xd9, 0x22, 0x9f, 0x87, + 0x29, 0x67, 0x68, 0x33, 0x46, 0x59, 0xfb, 0x07, 0xc6, 0xca, 0xf8, 0xea, 0xf4, 0xfa, 0x73, 0xef, + 0xdf, 0x6c, 0x66, 0xc1, 0xf2, 0x29, 0xe3, 0x5d, 0x6d, 0xcf, 0xfc, 0xdb, 0x47, 0x00, 0x0a, 0x87, + 0xe4, 0x73, 0x30, 0xce, 0xdc, 0xbe, 0x0e, 0x7e, 0xf3, 0x7e, 0x82, 0xef, 0x30, 0xb7, 0xaf, 0x56, + 0x21, 0x4c, 0x92, 0xaf, 0x40, 0x2b, 0x41, 0x16, 0xa5, 0x89, 0x83, 0x56, 0x10, 0x85, 0x94, 0x47, + 0x89, 0x58, 0x8c, 0x70, 0xd3, 0xbd, 0x2f, 0x37, 0x75, 0xab, 0xca, 0xe7, 0x9c, 0x86, 0x2f, 0x2b, + 0xd4, 0x7c, 0xbb, 0x09, 0x0d, 0x1d, 0x11, 0xd9, 0x06, 0x60, 0xdc, 0xe6, 0x94, 0x71, 0xea, 0x30, + 0xbd, 0xda, 0x6b, 0x1f, 0xc8, 0x6a, 0x3b, 0x85, 0x61, 0x15, 0x49, 0xc9, 0x93, 0xf9, 0x8b, 0x06, + 0xcc, 0xd5, 0xe4, 0x64, 0x07, 0x26, 0x05, 0x84, 0x3a, 0x8c, 0x57, 0xf6, 0x25, 0x0c, 0xf9, 0x8e, + 0x59, 0x56, 0xc9, 0x67, 0xf2, 0xa6, 0x01, 0xd3, 0x8e, 0x4f, 0xb5, 0x15, 0x7d, 0x1a, 0xde, 0xfe, + 0xf8, 0x2f, 0x79, 0xca, 0xf6, 0x45, 0x21, 0x57, 0xf7, 0x62, 0x34, 0x7f, 0x3d, 0xa6, 0x0e, 0x44, + 0x89, 0xc8, 0x2a, 0xb4, 0x68, 0x48, 0xb9, 0xa5, 0x20, 0x27, 0x4a, 0x43, 0xde, 0xfe, 0xd8, 0x8a, + 0xb1, 0x3a, 0xd3, 0x9d, 0x15, 0x78, 0x4f, 0xc0, 0x17, 0x04, 0x4a, 0xce, 0xc0, 0x51, 0x27, 0x0a, + 0x3d, 0x3a, 0x48, 0x13, 0x74, 0x2b, 0xfc, 0x33, 0x92, 0x7f, 0xa4, 0x90, 0x96, 0xb4, 0x9e, 0x02, + 0x62, 0x3b, 0x9c, 0x6e, 0x63, 0x45, 0xe3, 0xe3, 0x52, 0xa3, 0xa5, 0x24, 0x25, 0xf6, 0xd3, 0x70, + 0x8c, 0x63, 0x12, 0xd0, 0xd0, 0xe6, 0x34, 0x1c, 0x54, 0x54, 0x9e, 0x96, 0x2a, 0x8b, 0x25, 0x71, + 0x35, 0x36, 0x2d, 0xa8, 0xc5, 0x76, 0x56, 0xc5, 0x56, 0x48, 0x4b, 0x5a, 0x4f, 0xc2, 0x3c, 0x8f, + 0xb8, 0xed, 0x57, 0x14, 0x9e, 0x91, 0x0a, 0x73, 0x52, 0x50, 0x70, 0xcd, 0xbf, 0x8f, 0x43, 0xab, + 0xbe, 0xaf, 0xc2, 0x80, 0x3b, 0x74, 0x62, 0x2b, 0x13, 0x28, 0x03, 0xcf, 0x2a, 0x03, 0x42, 0x70, + 0x41, 0xe2, 0xb9, 0xb3, 0x6d, 0xdf, 0x0e, 0xab, 0xdc, 0xe7, 0x14, 0x57, 0x08, 0xca, 0xdc, 0x55, + 0x68, 0xc5, 0x71, 0xcd, 0xec, 0x79, 0x75, 0x28, 0x71, 0x5c, 0xb1, 0xfa, 0x14, 0x90, 0x38, 0x8e, + 0x23, 0xac, 0x72, 0x9f, 0x57, 0xdb, 0x2b, 0x25, 0xb5, 0x18, 0xfc, 0x75, 0x5e, 0x33, 0xfc, 0x82, + 0x8a, 0x41, 0x08, 0xca, 0xdc, 0x0e, 0x2c, 0xc8, 0xbc, 0x72, 0xaa, 0xec, 0x0d, 0xc9, 0x9e, 0x57, + 0xa2, 0x32, 0x7f, 0x0d, 0x8e, 0x6c, 0xc7, 0x3e, 0xb3, 0xe2, 0x9d, 0xaa, 0xc2, 0x05, 0xa5, 0x20, + 0x64, 0x57, 0x76, 0x6a, 0xa1, 0x07, 0xfe, 0x5d, 0xcb, 0xbc, 0xa8, 0x42, 0x97, 0x92, 0x5a, 0xe8, + 0xc8, 0x58, 0x50, 0x25, 0x6f, 0xaa, 0xd0, 0x85, 0xa0, 0x66, 0x59, 0x9d, 0x6b, 0x85, 0xfc, 0xa2, + 0xb2, 0x2c, 0x25, 0x25, 0xb6, 0xf9, 0xdb, 0x15, 0x58, 0x1c, 0xd9, 0xd8, 0xc8, 0xad, 0xe2, 0x5b, + 0x90, 0x35, 0x0c, 0xeb, 0x83, 0x6f, 0x9f, 0xf9, 0xc7, 0x42, 0x56, 0xaa, 0x76, 0x48, 0x6e, 0xc2, + 0x84, 0x17, 0x3b, 0x4c, 0x77, 0x8a, 0x97, 0xf7, 0xc1, 0xb1, 0xb0, 0xaf, 0xbc, 0x4a, 0x57, 0xe6, + 0xab, 0x63, 0x70, 0xb8, 0x1c, 0x0c, 0x39, 0x0f, 0x4b, 0xe5, 0x8a, 0x2f, 0x5c, 0xf9, 0x34, 0xa0, + 0xbc, 0xfd, 0x9a, 0x21, 0x77, 0xf4, 0x78, 0xa9, 0xee, 0x73, 0xca, 0x67, 0x04, 0x83, 0x9c, 0x83, + 0xb6, 0x93, 0x26, 0x89, 0x08, 0xa9, 0xa4, 0xad, 0x8e, 0xe3, 0x75, 0xa5, 0x7d, 0x34, 0x23, 0x14, + 0xaa, 0xea, 0x0c, 0x3f, 0x09, 0xc7, 0xeb, 0x0e, 0x2d, 0xdc, 0x75, 0x10, 0x5d, 0x74, 0xdb, 0x7f, + 0x50, 0xba, 0xc7, 0x58, 0xd5, 0xdf, 0x66, 0x26, 0x17, 0x7e, 0xef, 0x52, 0x0e, 0x23, 0xd1, 0x00, + 0xfc, 0xf6, 0x1f, 0x33, 0xbf, 0x35, 0xdd, 0x2d, 0x25, 0x36, 0x6f, 0x9f, 0x80, 0x66, 0xbe, 0x31, + 0x64, 0x17, 0xc6, 0xbd, 0xd8, 0x11, 0xa7, 0x2f, 0x26, 0x01, 0xdc, 0xcf, 0x43, 0x10, 0x4f, 0x6a, + 0x60, 0x10, 0x2e, 0xcd, 0x5f, 0x2e, 0x41, 0x43, 0x23, 0xe4, 0x38, 0x4c, 0x30, 0x3f, 0xca, 0x1a, + 0xf3, 0xc6, 0xe4, 0xab, 0xcf, 0x8f, 0x35, 0x8c, 0xae, 0x84, 0xc8, 0xf7, 0x8c, 0x51, 0xdf, 0xd7, + 0xf4, 0x81, 0x44, 0x7a, 0xaf, 0xef, 0x2f, 0x79, 0xdd, 0x80, 0x89, 0x98, 0x16, 0x19, 0x1c, 0x3d, + 0x98, 0x90, 0xe2, 0x3c, 0x18, 0xe9, 0xdd, 0xbc, 0xdd, 0xba, 0x7b, 0x0c, 0x58, 0x85, 0xd6, 0x10, + 0xed, 0xd8, 0x0a, 0x30, 0x88, 0x92, 0x3d, 0x2b, 0x65, 0xe8, 0xb6, 0x3f, 0xab, 0xda, 0xab, 0xc0, + 0x2f, 0x4b, 0xf8, 0x1a, 0x43, 0x97, 0x3c, 0x0b, 0x4b, 0x59, 0x0f, 0x61, 0xc8, 0x18, 0x8d, 0x42, + 0xcb, 0xc5, 0x90, 0xa2, 0x9b, 0xe5, 0x70, 0x57, 0x2a, 0xb5, 0x15, 0xa5, 0xa7, 0x18, 0x17, 0x25, + 0x41, 0x25, 0xf1, 0x79, 0x38, 0xc1, 0x30, 0xd9, 0xa6, 0x0e, 0x8e, 0xd6, 0xef, 0xa9, 0x02, 0xca, + 0x38, 0x23, 0x0c, 0x6c, 0xc0, 0x72, 0xc2, 0xb9, 0xc5, 0x87, 0x49, 0xc4, 0xb9, 0xaf, 0x8a, 0x50, + 0xe9, 0x66, 0xbd, 0xad, 0x7d, 0x55, 0x9a, 0x30, 0x13, 0xce, 0xaf, 0x6a, 0x52, 0x2f, 0xed, 0x4b, + 0x6d, 0xd5, 0xe4, 0xc8, 0x45, 0x78, 0xec, 0xdd, 0x6c, 0x64, 0x8e, 0xdb, 0xd7, 0xa4, 0x91, 0xa5, + 0x51, 0x46, 0x7a, 0x8a, 0x72, 0xa0, 0xbd, 0xe0, 0x49, 0x98, 0x0f, 0x30, 0xb0, 0xe4, 0x99, 0xe5, + 0x3d, 0xe0, 0x8b, 0xaa, 0xf7, 0x07, 0x18, 0x7c, 0x1a, 0xed, 0x38, 0x2f, 0xfd, 0x55, 0x68, 0xe5, + 0x5c, 0x5d, 0xf2, 0x2f, 0xab, 0xb3, 0xcd, 0xa8, 0x59, 0xa5, 0x1f, 0x54, 0x87, 0x21, 0xdf, 0x15, + 0x85, 0xe1, 0x61, 0x5e, 0xab, 0x5f, 0x3d, 0x90, 0x5a, 0xed, 0x88, 0x10, 0x74, 0xa1, 0x78, 0xc8, + 0xcc, 0x37, 0x00, 0x9a, 0x39, 0x46, 0x7e, 0x6c, 0xc0, 0x78, 0xec, 0xa1, 0xee, 0x7c, 0x6f, 0x1a, + 0x07, 0x1c, 0xa4, 0x78, 0xca, 0xba, 0x63, 0xec, 0xa1, 0xf9, 0x8f, 0x06, 0x34, 0x34, 0x42, 0x4e, + 0xc0, 0x21, 0xf1, 0x1c, 0x46, 0xd5, 0xfe, 0x38, 0x19, 0x7b, 0xb8, 0x15, 0x89, 0x61, 0xc0, 0xa3, + 0x3e, 0x17, 0x01, 0x96, 0xca, 0x1d, 0xd5, 0x30, 0xa0, 0x24, 0xa5, 0x82, 0x7f, 0x02, 0xe6, 0xa8, + 0xe7, 0x57, 0xa8, 0x9e, 0xa4, 0xce, 0x50, 0xcf, 0x2f, 0xf1, 0xd6, 0x61, 0x11, 0x77, 0x63, 0x3b, + 0x94, 0x35, 0x5d, 0x66, 0x0f, 0x24, 0x7b, 0x21, 0x17, 0x96, 0x74, 0x1e, 0x87, 0xd9, 0x70, 0xa8, + 0xc9, 0x5e, 0x82, 0xd8, 0x1e, 0x4a, 0xf2, 0xe1, 0x70, 0xa8, 0x58, 0x2f, 0x26, 0x88, 0x82, 0xe5, + 0xed, 0x54, 0x58, 0x54, 0xb1, 0xbc, 0x9d, 0x12, 0x2b, 0x4b, 0x73, 0x11, 0x6b, 0x9e, 0xb3, 0x51, + 0x9e, 0xe6, 0x97, 0x3c, 0x3f, 0xcf, 0xd4, 0x27, 0x60, 0x4e, 0x33, 0x75, 0x82, 0xc6, 0x6a, 0x45, + 0x8a, 0xa8, 0xd3, 0xf2, 0x0c, 0x1c, 0x15, 0xbc, 0x62, 0x55, 0xb9, 0xdd, 0x9b, 0x6a, 0x84, 0x0e, + 0x30, 0xd8, 0xd4, 0xc2, 0xdc, 0xfa, 0x3a, 0x2c, 0x56, 0xb5, 0xb4, 0x8f, 0x44, 0xed, 0x43, 0x59, + 0x49, 0x7b, 0xfa, 0x9d, 0x01, 0x87, 0x99, 0x33, 0x44, 0xd7, 0xea, 0xfb, 0x91, 0x73, 0x23, 0x2f, + 0x84, 0x1f, 0x3e, 0x34, 0x49, 0xd6, 0x29, 0x87, 0xa7, 0x8a, 0x64, 0x5a, 0x42, 0x1b, 0x12, 0x31, + 0xff, 0x39, 0x0e, 0xf3, 0x77, 0x51, 0xc8, 0x9f, 0x0c, 0x98, 0x2e, 0xa1, 0xba, 0x76, 0xde, 0x7e, + 0x88, 0x97, 0x55, 0x46, 0x54, 0x79, 0x41, 0xb1, 0x4e, 0xf3, 0xbf, 0x06, 0xb4, 0xea, 0x04, 0x72, + 0x0a, 0x9a, 0x4c, 0xbd, 0xd6, 0x0b, 0xae, 0xa1, 0xf0, 0xad, 0x88, 0x9c, 0x04, 0xb8, 0x99, 0x62, + 0x8a, 0xcc, 0x0a, 0xec, 0xdd, 0xf6, 0x9e, 0x4c, 0x85, 0xa6, 0x42, 0x2e, 0xdb, 0xbb, 0xe4, 0xc3, + 0xd0, 0xca, 0xc4, 0xb6, 0xef, 0x47, 0x8e, 0xf8, 0x55, 0xd6, 0xbe, 0xa5, 0xda, 0xb9, 0xc2, 0x5f, + 0xd0, 0xb0, 0xfc, 0x6a, 0x44, 0xcc, 0x4a, 0x39, 0xf5, 0xe9, 0x2d, 0x9b, 0x57, 0xf2, 0xf2, 0x2d, + 0xfd, 0xd5, 0x88, 0xd8, 0xb5, 0x42, 0x9e, 0xa7, 0xe6, 0x59, 0x38, 0x56, 0x57, 0xd5, 0xc9, 0xf9, + 0x4d, 0xa5, 0xb9, 0x58, 0xd5, 0xd4, 0x23, 0xe0, 0xaf, 0x1a, 0xd0, 0xcc, 0xc7, 0x08, 0xf2, 0x75, + 0xd1, 0x09, 0x69, 0x3e, 0x03, 0xee, 0x3e, 0xe0, 0x31, 0x46, 0x3c, 0xe9, 0xc6, 0x47, 0x1d, 0xf3, + 0x3b, 0x53, 0xd0, 0xd0, 0x88, 0x6c, 0x7c, 0xd4, 0x19, 0xd1, 0xf8, 0xa8, 0xb3, 0x15, 0x3d, 0x8a, + 0xd3, 0x3b, 0xf9, 0x91, 0x01, 0x93, 0x71, 0x94, 0xf0, 0xbc, 0xa7, 0xbc, 0x66, 0x1c, 0xd4, 0x79, + 0x75, 0x64, 0x1c, 0xd9, 0x2d, 0x90, 0x7c, 0x36, 0xff, 0x3a, 0x0e, 0x50, 0xa0, 0xe4, 0xe7, 0x62, + 0x10, 0x88, 0x12, 0xae, 0x53, 0xeb, 0xad, 0x87, 0x21, 0x56, 0xf9, 0xa8, 0x12, 0x4e, 0x06, 0x67, + 0xfe, 0x74, 0x0c, 0x9a, 0x39, 0x46, 0x96, 0x61, 0x4a, 0xbe, 0xd4, 0x73, 0xee, 0x90, 0x40, 0x1f, + 0xcd, 0xa4, 0x33, 0xbf, 0x3d, 0x5d, 0xfc, 0x6e, 0xd6, 0x2d, 0x32, 0xc0, 0x40, 0xd8, 0xa1, 0x6e, + 0xad, 0x45, 0x2a, 0xfc, 0x92, 0x4b, 0x08, 0x4c, 0x24, 0x91, 0x8f, 0xf2, 0xee, 0xac, 0xd9, 0x95, + 0xcf, 0xe4, 0xcb, 0x30, 0x97, 0x44, 0xa9, 0xbc, 0xf9, 0xc2, 0x70, 0x40, 0xc3, 0x62, 0x46, 0xec, + 0xdd, 0xdf, 0x1d, 0x74, 0xa7, 0x66, 0x56, 0x65, 0xe5, 0x6c, 0x86, 0x6e, 0x2a, 0xd0, 0x7c, 0xa7, + 0x09, 0x47, 0x46, 0x11, 0xc9, 0xb7, 0x0c, 0x98, 0xad, 0x0a, 0x74, 0xca, 0x0e, 0xf6, 0x21, 0xae, + 0x1a, 0xa8, 0x72, 0x71, 0xa6, 0x12, 0xab, 0xf9, 0x93, 0x06, 0x2c, 0x8c, 0xa0, 0x91, 0x15, 0x68, + 0x24, 0x68, 0xd1, 0xd0, 0xc5, 0xdd, 0xea, 0xc6, 0x4f, 0x25, 0x78, 0x49, 0xa0, 0x23, 0xf7, 0x7d, + 0x09, 0x9a, 0x6e, 0xdf, 0x62, 0x7b, 0xa1, 0x83, 0xae, 0xbc, 0x9a, 0x6c, 0x74, 0x1b, 0x6e, 0xbf, + 0x27, 0xdf, 0x45, 0x95, 0xce, 0xc6, 0x49, 0xe4, 0x20, 0x63, 0xf2, 0x9e, 0x30, 0xcd, 0x0f, 0xe5, + 0x4b, 0x0f, 0x68, 0xf1, 0x9d, 0xaa, 0x7b, 0x75, 0x78, 0x33, 0x19, 0xd8, 0x93, 0x98, 0xf9, 0x8d, + 0x43, 0xb0, 0x30, 0x82, 0x46, 0xfe, 0x6d, 0xc0, 0x63, 0xa3, 0xe3, 0xc9, 0xd8, 0x45, 0x8e, 0xfd, + 0xcc, 0x38, 0xc0, 0xf5, 0x74, 0xde, 0x23, 0x48, 0xb5, 0xe8, 0x93, 0xa3, 0xfe, 0x26, 0xba, 0xa2, + 0x39, 0xe6, 0x1b, 0x13, 0xf0, 0xf8, 0xff, 0x63, 0x87, 0x7c, 0x6d, 0x0c, 0x4e, 0xde, 0x93, 0xa8, + 0xf3, 0xfb, 0xf7, 0x0f, 0xfd, 0x9e, 0xdc, 0x9b, 0xa4, 0x8a, 0x67, 0xe9, 0x1e, 0xdb, 0x66, 0xfe, + 0xc5, 0x80, 0x53, 0xef, 0x6d, 0x83, 0xac, 0xc2, 0x61, 0xfd, 0x1e, 0xda, 0x01, 0xca, 0xea, 0x6a, + 0xea, 0xea, 0x9a, 0xce, 0x44, 0x5b, 0x76, 0x80, 0xa4, 0x25, 0xe6, 0x25, 0x57, 0x16, 0xd8, 0x84, + 0x18, 0x5a, 0x5c, 0xd2, 0x86, 0xa9, 0x24, 0x0d, 0x39, 0x0d, 0x50, 0x56, 0xd7, 0x44, 0x57, 0xbf, + 0x92, 0x0f, 0xc1, 0x9c, 0x13, 0xa7, 0xe5, 0x19, 0x4d, 0xde, 0xf3, 0x1b, 0xdd, 0x59, 0x27, 0x4e, + 0x4b, 0xa3, 0x19, 0x39, 0x0d, 0x44, 0xff, 0xca, 0x2a, 0x71, 0xcf, 0x4a, 0xee, 0xbc, 0x92, 0x94, + 0xe8, 0x9f, 0xb8, 0x02, 0xe4, 0x7a, 0x18, 0x27, 0x56, 0x7e, 0x78, 0x16, 0xee, 0x72, 0x72, 0xac, + 0xf3, 0x52, 0x1a, 0xd2, 0x18, 0x93, 0x2d, 0xe4, 0x3b, 0x51, 0x72, 0x83, 0xf5, 0x30, 0x64, 0x51, + 0xc2, 0xe4, 0xd5, 0xf0, 0xf4, 0x3a, 0x14, 0x67, 0xdd, 0x9d, 0x13, 0xea, 0x2f, 0x89, 0xd7, 0x5e, + 0x40, 0x37, 0x77, 0xf9, 0xc6, 0x2b, 0xef, 0xdc, 0x59, 0x36, 0xfe, 0x7c, 0x67, 0xd9, 0xf8, 0xd7, + 0x9d, 0x65, 0xe3, 0x0b, 0xdd, 0x01, 0xe5, 0x82, 0x2d, 0x8c, 0x75, 0x42, 0xe4, 0x6b, 0xd4, 0xc1, + 0x3e, 0x26, 0x83, 0xb5, 0x21, 0xda, 0x3e, 0x1f, 0xf6, 0x23, 0x7e, 0x9a, 0x86, 0x03, 0x64, 0xfc, + 0xf4, 0x75, 0x4e, 0x4f, 0x87, 0x36, 0xa7, 0xdb, 0xb8, 0x16, 0xdf, 0x18, 0xac, 0x5d, 0xe7, 0x74, + 0xcd, 0x76, 0xed, 0x98, 0x63, 0xc2, 0xd6, 0x54, 0x78, 0x6b, 0x62, 0xc4, 0x0e, 0xec, 0xff, 0x05, + 0x00, 0x00, 0xff, 0xff, 0x2e, 0xef, 0x20, 0xae, 0xca, 0x1d, 0x00, 0x00, +} + +func (m *JunosSmi) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmi) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmi) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagement != nil { + { + size, err := m.SubscriberManagement.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Chassis) > 0 { + for iNdEx := len(m.Chassis) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Chassis[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + if m.Infra != nil { + { + size, err := m.Infra.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ResourceMonitor != nil { + { + size, err := m.ResourceMonitor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Sdb != nil { + { + size, err := m.Sdb.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ClientType != nil { + { + size, err := m.ClientType.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalStateCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.TotalStateCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.TerminatedStateCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.TerminatedStateCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.TerminatingStateCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.TerminatingStateCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.ActiveStateCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ActiveStateCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.ConfiguredStateCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ConfiguredStateCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InitStateCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.InitStateCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.TotalClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.TotalClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb0 + } + if m.EssmClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.EssmClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.MlpppClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MlpppClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.VplsPwClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.VplsPwClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.StaticClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.StaticClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.L2TpClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.L2TpClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.PppoeClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.PppoeClientCount)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if m.PppClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.PppClientCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf8 + } + if m.VlanClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.VlanClientCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + if m.DhcpClientCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.DhcpClientCount)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Fpcs != nil { + { + size, err := m.Fpcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Chassis != nil { + { + size, err := m.Chassis.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberLimitNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitNominal)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd0 + } + if m.SubscriberLimitExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitExceeded)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc8 + } + if m.CurrentSubscriberCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.CurrentSubscriberCount)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xa0 + } + if m.ConfiguredSubscriberLimit != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ConfiguredSubscriberLimit)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Fpc) > 0 { + for iNdEx := len(m.Fpc) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fpc[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Pics != nil { + { + size, err := m.Pics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Statistics != nil { + { + size, err := m.Statistics.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Slot != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.Slot)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberLimitNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitNominal)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd0 + } + if m.SubscriberLimitExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitExceeded)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc8 + } + if m.Pfes != nil { + { + size, err := m.Pfes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.CurrentSubscriberCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.CurrentSubscriberCount)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xa0 + } + if m.ConfiguredSubscriberLimit != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ConfiguredSubscriberLimit)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x98 + } + if m.MemHeapNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemHeapNominal)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.MemHeapExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemHeapExceeded)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.RttThrottledSubCountService != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.RttThrottledSubCountService)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.RttThrottledSubCountClient != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.RttThrottledSubCountClient)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.ServiceSessionDeniedCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ServiceSessionDeniedCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.ClientSessionDeniedCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ClientSessionDeniedCount)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if m.HeapMemoryUsed != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.HeapMemoryUsed)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Pfe) > 0 { + for iNdEx := len(m.Pfe) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pfe[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SchedBlocks != nil { + { + size, err := m.SchedBlocks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.MemExpansionNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemExpansionNominal)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x90 + } + if m.MemExpansionExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemExpansionExceeded)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x88 + } + if m.MemIflNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemIflNominal)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0x80 + } + if m.MemIflExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemIflExceeded)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xf8 + } + if m.FwMemoryFree != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.FwMemoryFree)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc8 + } + if m.NhMemoryFree != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.NhMemoryFree)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xc0 + } + if m.ExpansionMemoryUsed != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ExpansionMemoryUsed)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb8 + } + if m.IflMemoryUsed != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.IflMemoryUsed)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xb0 + } + if m.FilterMemoryUsed != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.FilterMemoryUsed)) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa8 + } + if m.PfeNo != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.PfeNo)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SchedBlock) > 0 { + for iNdEx := len(m.SchedBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SchedBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CosUtilizationNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.CosUtilizationNominal)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xf0 + } + if m.CosUtilizationExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.CosUtilizationExceeded)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xe8 + } + if m.QueuesAllocated != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.QueuesAllocated)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xd0 + } + if m.QueuesMax != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.QueuesMax)) + i-- + dAtA[i] = 0x7 + i-- + dAtA[i] = 0xc8 + } + if m.SblockNo != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SblockNo)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Pic) > 0 { + for iNdEx := len(m.Pic) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Pic[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberLimitNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitNominal)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd0 + } + if m.SubscriberLimitExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitExceeded)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc8 + } + if m.Ports != nil { + { + size, err := m.Ports.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.CurrentSubscriberCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.CurrentSubscriberCount)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xa0 + } + if m.ConfiguredSubscriberLimit != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ConfiguredSubscriberLimit)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x98 + } + if m.PicNo != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.PicNo)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Port) > 0 { + for iNdEx := len(m.Port) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Port[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberLimitNominal != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitNominal)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xd0 + } + if m.SubscriberLimitExceeded != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.SubscriberLimitExceeded)) + i-- + dAtA[i] = 0xc + i-- + dAtA[i] = 0xc8 + } + if m.CurrentSubscriberCount != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.CurrentSubscriberCount)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0xa0 + } + if m.ConfiguredSubscriberLimit != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ConfiguredSubscriberLimit)) + i-- + dAtA[i] = 0x8 + i-- + dAtA[i] = 0x98 + } + if m.PortNo != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.PortNo)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RoutingEngines != nil { + { + size, err := m.RoutingEngines.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Role != nil { + i -= len(*m.Role) + copy(dAtA[i:], *m.Role) + i = encodeVarintSmidOc(dAtA, i, uint64(len(*m.Role))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.MemberId != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.MemberId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RoutingEngine) > 0 { + for iNdEx := len(m.RoutingEngine) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RoutingEngine[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ProcessStatus != nil { + { + size, err := m.ProcessStatus.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.DbSynced != nil { + i-- + if *m.DbSynced { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Role != nil { + i -= len(*m.Role) + copy(dAtA[i:], *m.Role) + i = encodeVarintSmidOc(dAtA, i, uint64(len(*m.Role))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.ReIndex != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.ReIndex)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SubscriberManagementProcesses != nil { + { + size, err := m.SubscriberManagementProcesses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SubscriberManagementProcess) > 0 { + for iNdEx := len(m.SubscriberManagementProcess) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubscriberManagementProcess[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSmidOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MemoryUtilization != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.MemoryUtilization)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb9 + } + if m.CpuUtilization != nil { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(*m.CpuUtilization)))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb1 + } + if m.Runtime != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.Runtime)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.Pid != nil { + i = encodeVarintSmidOc(dAtA, i, uint64(*m.Pid)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.ProcessName != nil { + i -= len(*m.ProcessName) + copy(dAtA[i:], *m.ProcessName) + i = encodeVarintSmidOc(dAtA, i, uint64(len(*m.ProcessName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintSmidOc(dAtA []byte, offset int, v uint64) int { + offset -= sovSmidOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosSmi) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagement != nil { + l = m.SubscriberManagement.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Infra != nil { + l = m.Infra.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if len(m.Chassis) > 0 { + for _, e := range m.Chassis { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sdb != nil { + l = m.Sdb.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.ResourceMonitor != nil { + l = m.ResourceMonitor.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.ClientType != nil { + l = m.ClientType.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InitStateCount != nil { + n += 2 + sovSmidOc(uint64(*m.InitStateCount)) + } + if m.ConfiguredStateCount != nil { + n += 2 + sovSmidOc(uint64(*m.ConfiguredStateCount)) + } + if m.ActiveStateCount != nil { + n += 2 + sovSmidOc(uint64(*m.ActiveStateCount)) + } + if m.TerminatingStateCount != nil { + n += 2 + sovSmidOc(uint64(*m.TerminatingStateCount)) + } + if m.TerminatedStateCount != nil { + n += 2 + sovSmidOc(uint64(*m.TerminatedStateCount)) + } + if m.TotalStateCount != nil { + n += 2 + sovSmidOc(uint64(*m.TotalStateCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.DhcpClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.DhcpClientCount)) + } + if m.VlanClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.VlanClientCount)) + } + if m.PppClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.PppClientCount)) + } + if m.PppoeClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.PppoeClientCount)) + } + if m.L2TpClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.L2TpClientCount)) + } + if m.StaticClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.StaticClientCount)) + } + if m.VplsPwClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.VplsPwClientCount)) + } + if m.MlpppClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.MlpppClientCount)) + } + if m.EssmClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.EssmClientCount)) + } + if m.TotalClientCount != nil { + n += 2 + sovSmidOc(uint64(*m.TotalClientCount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Chassis != nil { + l = m.Chassis.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.Fpcs != nil { + l = m.Fpcs.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConfiguredSubscriberLimit != nil { + n += 2 + sovSmidOc(uint64(*m.ConfiguredSubscriberLimit)) + } + if m.CurrentSubscriberCount != nil { + n += 2 + sovSmidOc(uint64(*m.CurrentSubscriberCount)) + } + if m.SubscriberLimitExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitExceeded)) + } + if m.SubscriberLimitNominal != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitNominal)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Fpc) > 0 { + for _, e := range m.Fpc { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Slot != nil { + n += 2 + sovSmidOc(uint64(*m.Slot)) + } + if m.Statistics != nil { + l = m.Statistics.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.Pics != nil { + l = m.Pics.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.HeapMemoryUsed != nil { + n += 2 + sovSmidOc(uint64(*m.HeapMemoryUsed)) + } + if m.ClientSessionDeniedCount != nil { + n += 2 + sovSmidOc(uint64(*m.ClientSessionDeniedCount)) + } + if m.ServiceSessionDeniedCount != nil { + n += 2 + sovSmidOc(uint64(*m.ServiceSessionDeniedCount)) + } + if m.RttThrottledSubCountClient != nil { + n += 2 + sovSmidOc(uint64(*m.RttThrottledSubCountClient)) + } + if m.RttThrottledSubCountService != nil { + n += 2 + sovSmidOc(uint64(*m.RttThrottledSubCountService)) + } + if m.MemHeapExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.MemHeapExceeded)) + } + if m.MemHeapNominal != nil { + n += 2 + sovSmidOc(uint64(*m.MemHeapNominal)) + } + if m.ConfiguredSubscriberLimit != nil { + n += 2 + sovSmidOc(uint64(*m.ConfiguredSubscriberLimit)) + } + if m.CurrentSubscriberCount != nil { + n += 2 + sovSmidOc(uint64(*m.CurrentSubscriberCount)) + } + if m.Pfes != nil { + l = m.Pfes.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.SubscriberLimitExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitExceeded)) + } + if m.SubscriberLimitNominal != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitNominal)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Pfe) > 0 { + for _, e := range m.Pfe { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PfeNo != nil { + n += 2 + sovSmidOc(uint64(*m.PfeNo)) + } + if m.FilterMemoryUsed != nil { + n += 2 + sovSmidOc(uint64(*m.FilterMemoryUsed)) + } + if m.IflMemoryUsed != nil { + n += 2 + sovSmidOc(uint64(*m.IflMemoryUsed)) + } + if m.ExpansionMemoryUsed != nil { + n += 2 + sovSmidOc(uint64(*m.ExpansionMemoryUsed)) + } + if m.NhMemoryFree != nil { + n += 2 + sovSmidOc(uint64(*m.NhMemoryFree)) + } + if m.FwMemoryFree != nil { + n += 2 + sovSmidOc(uint64(*m.FwMemoryFree)) + } + if m.MemIflExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.MemIflExceeded)) + } + if m.MemIflNominal != nil { + n += 2 + sovSmidOc(uint64(*m.MemIflNominal)) + } + if m.MemExpansionExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.MemExpansionExceeded)) + } + if m.MemExpansionNominal != nil { + n += 2 + sovSmidOc(uint64(*m.MemExpansionNominal)) + } + if m.SchedBlocks != nil { + l = m.SchedBlocks.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SchedBlock) > 0 { + for _, e := range m.SchedBlock { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SblockNo != nil { + n += 2 + sovSmidOc(uint64(*m.SblockNo)) + } + if m.QueuesMax != nil { + n += 2 + sovSmidOc(uint64(*m.QueuesMax)) + } + if m.QueuesAllocated != nil { + n += 2 + sovSmidOc(uint64(*m.QueuesAllocated)) + } + if m.CosUtilizationExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.CosUtilizationExceeded)) + } + if m.CosUtilizationNominal != nil { + n += 2 + sovSmidOc(uint64(*m.CosUtilizationNominal)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Pic) > 0 { + for _, e := range m.Pic { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PicNo != nil { + n += 2 + sovSmidOc(uint64(*m.PicNo)) + } + if m.ConfiguredSubscriberLimit != nil { + n += 2 + sovSmidOc(uint64(*m.ConfiguredSubscriberLimit)) + } + if m.CurrentSubscriberCount != nil { + n += 2 + sovSmidOc(uint64(*m.CurrentSubscriberCount)) + } + if m.Ports != nil { + l = m.Ports.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.SubscriberLimitExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitExceeded)) + } + if m.SubscriberLimitNominal != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitNominal)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Port) > 0 { + for _, e := range m.Port { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PortNo != nil { + n += 2 + sovSmidOc(uint64(*m.PortNo)) + } + if m.ConfiguredSubscriberLimit != nil { + n += 2 + sovSmidOc(uint64(*m.ConfiguredSubscriberLimit)) + } + if m.CurrentSubscriberCount != nil { + n += 2 + sovSmidOc(uint64(*m.CurrentSubscriberCount)) + } + if m.SubscriberLimitExceeded != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitExceeded)) + } + if m.SubscriberLimitNominal != nil { + n += 2 + sovSmidOc(uint64(*m.SubscriberLimitNominal)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MemberId != nil { + n += 2 + sovSmidOc(uint64(*m.MemberId)) + } + if m.Role != nil { + l = len(*m.Role) + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.RoutingEngines != nil { + l = m.RoutingEngines.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RoutingEngine) > 0 { + for _, e := range m.RoutingEngine { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ReIndex != nil { + n += 2 + sovSmidOc(uint64(*m.ReIndex)) + } + if m.Role != nil { + l = len(*m.Role) + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.DbSynced != nil { + n += 3 + } + if m.ProcessStatus != nil { + l = m.ProcessStatus.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SubscriberManagementProcesses != nil { + l = m.SubscriberManagementProcesses.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SubscriberManagementProcess) > 0 { + for _, e := range m.SubscriberManagementProcess { + l = e.Size() + n += 2 + l + sovSmidOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ProcessName != nil { + l = len(*m.ProcessName) + n += 2 + l + sovSmidOc(uint64(l)) + } + if m.Pid != nil { + n += 2 + sovSmidOc(uint64(*m.Pid)) + } + if m.Runtime != nil { + n += 2 + sovSmidOc(uint64(*m.Runtime)) + } + if m.CpuUtilization != nil { + n += 10 + } + if m.MemoryUtilization != nil { + n += 10 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSmidOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSmidOc(x uint64) (n int) { + return sovSmidOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosSmi) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_smi: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_smi: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosSmiSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagement", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagement == nil { + m.SubscriberManagement = &JunosSmiSystemTypeSubscriberManagementType{} + } + if err := m.SubscriberManagement.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Infra", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Infra == nil { + m.Infra = &JunosSmiSystemTypeSubscriberManagementTypeInfraType{} + } + if err := m.Infra.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Chassis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Chassis = append(m.Chassis, &JunosSmiSystemTypeSubscriberManagementTypeChassisList{}) + if err := m.Chassis[len(m.Chassis)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: infra_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: infra_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sdb", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Sdb == nil { + m.Sdb = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType{} + } + if err := m.Sdb.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceMonitor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResourceMonitor == nil { + m.ResourceMonitor = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType{} + } + if err := m.ResourceMonitor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sdb_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sdb_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientType", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ClientType == nil { + m.ClientType = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType{} + } + if err := m.ClientType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitStateCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InitStateCount = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredStateCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredStateCount = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveStateCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveStateCount = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminatingStateCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TerminatingStateCount = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TerminatedStateCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TerminatedStateCount = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalStateCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalStateCount = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeSdbTypeStatisticsTypeClientTypeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: client_type_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: client_type_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DhcpClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DhcpClientCount = &v + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VlanClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VlanClientCount = &v + case 63: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppClientCount = &v + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PppoeClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PppoeClientCount = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field L2TpClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.L2TpClientCount = &v + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StaticClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StaticClientCount = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VplsPwClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VplsPwClientCount = &v + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MlpppClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MlpppClientCount = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EssmClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EssmClientCount = &v + case 70: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalClientCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalClientCount = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: resource_monitor_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: resource_monitor_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Chassis", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Chassis == nil { + m.Chassis = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType{} + } + if err := m.Chassis.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpcs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Fpcs == nil { + m.Fpcs = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType{} + } + if err := m.Fpcs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeChassisType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: chassis_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: chassis_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 131: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredSubscriberLimit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredSubscriberLimit = &v + case 132: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentSubscriberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentSubscriberCount = &v + case 201: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitExceeded = &v + case 202: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitNominal = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpcs_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpcs_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fpc", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fpc = append(m.Fpc, &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList{}) + if err := m.Fpc[len(m.Fpc)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: fpc_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: fpc_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Slot = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Statistics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Statistics == nil { + m.Statistics = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType{} + } + if err := m.Statistics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pics == nil { + m.Pics = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType{} + } + if err := m.Pics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: statistics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: statistics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HeapMemoryUsed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HeapMemoryUsed = &v + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientSessionDeniedCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ClientSessionDeniedCount = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceSessionDeniedCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ServiceSessionDeniedCount = &v + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttThrottledSubCountClient", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttThrottledSubCountClient = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RttThrottledSubCountService", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RttThrottledSubCountService = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemHeapExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemHeapExceeded = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemHeapNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemHeapNominal = &v + case 131: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredSubscriberLimit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredSubscriberLimit = &v + case 132: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentSubscriberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentSubscriberCount = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pfes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pfes == nil { + m.Pfes = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType{} + } + if err := m.Pfes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 201: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitExceeded = &v + case 202: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitNominal = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pfes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pfes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pfe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pfe = append(m.Pfe, &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList{}) + if err := m.Pfe[len(m.Pfe)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pfe_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pfe_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PfeNo", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PfeNo = &v + case 101: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FilterMemoryUsed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FilterMemoryUsed = &v + case 102: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IflMemoryUsed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IflMemoryUsed = &v + case 103: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpansionMemoryUsed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExpansionMemoryUsed = &v + case 104: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NhMemoryFree", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NhMemoryFree = &v + case 105: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FwMemoryFree", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FwMemoryFree = &v + case 111: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemIflExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemIflExceeded = &v + case 112: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemIflNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemIflNominal = &v + case 113: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemExpansionExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemExpansionExceeded = &v + case 114: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemExpansionNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemExpansionNominal = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchedBlocks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchedBlocks == nil { + m.SchedBlocks = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType{} + } + if err := m.SchedBlocks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sched_blocks_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sched_blocks_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchedBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchedBlock = append(m.SchedBlock, &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList{}) + if err := m.SchedBlock[len(m.SchedBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListStatisticsTypePfesTypePfeListSchedBlocksTypeSchedBlockList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sched_block_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sched_block_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SblockNo", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SblockNo = &v + case 121: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueuesMax", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueuesMax = &v + case 122: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field QueuesAllocated", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.QueuesAllocated = &v + case 141: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CosUtilizationExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CosUtilizationExceeded = &v + case 142: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CosUtilizationNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CosUtilizationNominal = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pics_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pics_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pic", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pic = append(m.Pic, &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList{}) + if err := m.Pic[len(m.Pic)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: pic_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: pic_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PicNo", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PicNo = &v + case 131: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredSubscriberLimit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredSubscriberLimit = &v + case 132: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentSubscriberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentSubscriberCount = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ports == nil { + m.Ports = &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType{} + } + if err := m.Ports.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 201: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitExceeded = &v + case 202: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitNominal = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ports_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ports_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Port = append(m.Port, &JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList{}) + if err := m.Port[len(m.Port)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeInfraTypeResourceMonitorTypeFpcsTypeFpcListPicsTypePicListPortsTypePortList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: port_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: port_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PortNo", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PortNo = &v + case 131: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfiguredSubscriberLimit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ConfiguredSubscriberLimit = &v + case 132: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentSubscriberCount", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentSubscriberCount = &v + case 201: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitExceeded", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitExceeded = &v + case 202: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberLimitNominal", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubscriberLimitNominal = &v + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: chassis_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: chassis_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemberId = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Role = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingEngines", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RoutingEngines == nil { + m.RoutingEngines = &JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType{} + } + if err := m.RoutingEngines.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_engines_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_engines_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutingEngine", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoutingEngine = append(m.RoutingEngine, &JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList{}) + if err := m.RoutingEngine[len(m.RoutingEngine)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routing_engine_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routing_engine_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReIndex", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReIndex = &v + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Role = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DbSynced", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.DbSynced = &b + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessStatus", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ProcessStatus == nil { + m.ProcessStatus = &JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType{} + } + if err := m.ProcessStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: process_status_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: process_status_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagementProcesses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SubscriberManagementProcesses == nil { + m.SubscriberManagementProcesses = &JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType{} + } + if err := m.SubscriberManagementProcesses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_processes_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_processes_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubscriberManagementProcess", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubscriberManagementProcess = append(m.SubscriberManagementProcess, &JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList{}) + if err := m.SubscriberManagementProcess[len(m.SubscriberManagementProcess)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosSmiSystemTypeSubscriberManagementTypeChassisListRoutingEnginesTypeRoutingEngineListProcessStatusTypeSubscriberManagementProcessesTypeSubscriberManagementProcessList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subscriber_management_process_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subscriber_management_process_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSmidOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSmidOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ProcessName = &s + iNdEx = postIndex + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Pid = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Runtime", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSmidOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Runtime = &v + case 54: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUtilization", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.CpuUtilization = &v2 + case 55: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryUtilization", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + v2 := float64(math.Float64frombits(v)) + m.MemoryUtilization = &v2 + default: + iNdEx = preIndex + skippy, err := skipSmidOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSmidOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSmidOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSmidOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSmidOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSmidOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSmidOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSmidOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSmidOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSmidOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSmidOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSmidOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/smid_oc.proto b/schema/smid_oc.proto new file mode 100755 index 0000000..2d67ab0 --- /dev/null +++ b/schema/smid_oc.proto @@ -0,0 +1,155 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_smi jnpr_junos_smi_ext = 70; +} + +message junos_smi { + optional system_type system = 151; + message system_type { + optional subscriber_management_type subscriber_management = 151; + message subscriber_management_type { + optional infra_type infra = 151; + message infra_type { + optional sdb_type sdb = 151; + message sdb_type { + optional statistics_type statistics = 151; + message statistics_type { + optional state_type state = 151; + message state_type { + optional uint32 init_state_count = 51; + optional uint32 configured_state_count = 52; + optional uint32 active_state_count = 53; + optional uint32 terminating_state_count = 54; + optional uint32 terminated_state_count = 55; + optional uint32 total_state_count = 56; + } + optional client_type_type client_type = 152; + message client_type_type { + optional uint32 dhcp_client_count = 61; + optional uint32 vlan_client_count = 62; + optional uint32 ppp_client_count = 63; + optional uint32 pppoe_client_count = 64; + optional uint32 l2tp_client_count = 65; + optional uint32 static_client_count = 66; + optional uint32 vpls_pw_client_count = 67; + optional uint32 mlppp_client_count = 68; + optional uint32 essm_client_count = 69; + optional uint32 total_client_count = 70; + } + } + } + optional resource_monitor_type resource_monitor = 152; + message resource_monitor_type { + optional chassis_type chassis = 151; + message chassis_type { + optional uint32 configured_subscriber_limit = 131; + optional uint32 current_subscriber_count = 132; + optional uint32 subscriber_limit_exceeded = 201; + optional uint32 subscriber_limit_nominal = 202; + } + optional fpcs_type fpcs = 152; + message fpcs_type { + message fpc_list { + optional uint32 slot = 51 [(telemetry_options).is_key = true]; + optional statistics_type statistics = 151; + message statistics_type { + optional uint32 heap_memory_used = 81; + optional uint32 client_session_denied_count = 82; + optional uint32 service_session_denied_count = 83; + optional uint32 rtt_throttled_sub_count_client = 84; + optional uint32 rtt_throttled_sub_count_service = 85; + optional uint32 configured_subscriber_limit = 131; + optional uint32 current_subscriber_count = 132; + optional uint32 mem_heap_exceeded = 91; + optional uint32 mem_heap_nominal = 92; + optional uint32 subscriber_limit_exceeded = 201; + optional uint32 subscriber_limit_nominal = 202; + optional pfes_type pfes = 151; + message pfes_type { + message pfe_list { + optional uint32 pfe_no = 51 [(telemetry_options).is_key = true]; + optional uint32 filter_memory_used = 101; + optional uint32 ifl_memory_used = 102; + optional uint32 expansion_memory_used = 103; + optional uint32 nh_memory_free = 104; + optional uint32 fw_memory_free = 105; + optional uint32 mem_ifl_exceeded = 111; + optional uint32 mem_ifl_nominal = 112; + optional uint32 mem_expansion_exceeded = 113; + optional uint32 mem_expansion_nominal = 114; + optional sched_blocks_type sched_blocks = 151; + message sched_blocks_type { + message sched_block_list { + optional uint32 sblock_no = 51 [(telemetry_options).is_key = true]; + optional uint32 queues_max = 121; + optional uint32 queues_allocated = 122; + optional uint32 cos_utilization_exceeded = 141; + optional uint32 cos_utilization_nominal = 142; + } + repeated sched_block_list sched_block = 151; + } + } + repeated pfe_list pfe = 151; + } + } + optional pics_type pics = 152; + message pics_type { + message pic_list { + optional uint32 pic_no = 51 [(telemetry_options).is_key = true]; + optional uint32 configured_subscriber_limit = 131; + optional uint32 current_subscriber_count = 132; + optional uint32 subscriber_limit_exceeded = 201; + optional uint32 subscriber_limit_nominal = 202; + optional ports_type ports = 151; + message ports_type { + message port_list { + optional uint32 port_no = 51 [(telemetry_options).is_key = true]; + optional uint32 configured_subscriber_limit = 131; + optional uint32 current_subscriber_count = 132; + optional uint32 subscriber_limit_exceeded = 201; + optional uint32 subscriber_limit_nominal = 202; + } + repeated port_list port = 151; + } + } + repeated pic_list pic = 151; + } + } + repeated fpc_list fpc = 151; + } + } + } + message chassis_list { + optional uint32 member_id = 51 [(telemetry_options).is_key = true]; + optional string role = 52; + optional routing_engines_type routing_engines = 151; + message routing_engines_type { + message routing_engine_list { + optional uint32 re_index = 51 [(telemetry_options).is_key = true]; + optional string role = 52; + optional bool db_synced = 53; + optional process_status_type process_status = 151; + message process_status_type { + optional subscriber_management_processes_type subscriber_management_processes = 151; + message subscriber_management_processes_type { + message subscriber_management_process_list { + optional string process_name = 51 [(telemetry_options).is_key = true]; + optional uint64 pid = 52; + optional uint64 runtime = 53; + optional double cpu_utilization = 54; + optional double memory_utilization = 55; + } + repeated subscriber_management_process_list subscriber_management_process = 151; + } + } + } + repeated routing_engine_list routing_engine = 151; + } + } + repeated chassis_list chassis = 152; + } + } +} diff --git a/schema/spu_cpu_util.pb.go b/schema/spu_cpu_util.pb.go new file mode 100644 index 0000000..2744e29 --- /dev/null +++ b/schema/spu_cpu_util.pb.go @@ -0,0 +1,1036 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: spu_cpu_util.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPfeSpuCpu struct { + Security *JunosPfeSpuCpuSecurityType `protobuf:"bytes,151,opt,name=security" json:"security,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuCpu) Reset() { *m = JunosPfeSpuCpu{} } +func (m *JunosPfeSpuCpu) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuCpu) ProtoMessage() {} +func (*JunosPfeSpuCpu) Descriptor() ([]byte, []int) { + return fileDescriptor_d0270bcf540ee61c, []int{0} +} +func (m *JunosPfeSpuCpu) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuCpu) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuCpu.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuCpu) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuCpu.Merge(m, src) +} +func (m *JunosPfeSpuCpu) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuCpu) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuCpu.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuCpu proto.InternalMessageInfo + +func (m *JunosPfeSpuCpu) GetSecurity() *JunosPfeSpuCpuSecurityType { + if m != nil { + return m.Security + } + return nil +} + +type JunosPfeSpuCpuSecurityType struct { + Spu *JunosPfeSpuCpuSecurityTypeSpuType `protobuf:"bytes,151,opt,name=spu" json:"spu,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuCpuSecurityType) Reset() { *m = JunosPfeSpuCpuSecurityType{} } +func (m *JunosPfeSpuCpuSecurityType) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuCpuSecurityType) ProtoMessage() {} +func (*JunosPfeSpuCpuSecurityType) Descriptor() ([]byte, []int) { + return fileDescriptor_d0270bcf540ee61c, []int{0, 0} +} +func (m *JunosPfeSpuCpuSecurityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuCpuSecurityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuCpuSecurityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuCpuSecurityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuCpuSecurityType.Merge(m, src) +} +func (m *JunosPfeSpuCpuSecurityType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuCpuSecurityType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuCpuSecurityType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuCpuSecurityType proto.InternalMessageInfo + +func (m *JunosPfeSpuCpuSecurityType) GetSpu() *JunosPfeSpuCpuSecurityTypeSpuType { + if m != nil { + return m.Spu + } + return nil +} + +type JunosPfeSpuCpuSecurityTypeSpuType struct { + SpuName *string `protobuf:"bytes,51,opt,name=spu_name,json=spuName" json:"spu_name,omitempty"` + Cpu []*JunosPfeSpuCpuSecurityTypeSpuTypeCpuList `protobuf:"bytes,151,rep,name=cpu" json:"cpu,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) Reset() { *m = JunosPfeSpuCpuSecurityTypeSpuType{} } +func (m *JunosPfeSpuCpuSecurityTypeSpuType) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuCpuSecurityTypeSpuType) ProtoMessage() {} +func (*JunosPfeSpuCpuSecurityTypeSpuType) Descriptor() ([]byte, []int) { + return fileDescriptor_d0270bcf540ee61c, []int{0, 0, 0} +} +func (m *JunosPfeSpuCpuSecurityTypeSpuType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuCpuSecurityTypeSpuType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuCpuSecurityTypeSpuType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuType.Merge(m, src) +} +func (m *JunosPfeSpuCpuSecurityTypeSpuType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuCpuSecurityTypeSpuType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuType proto.InternalMessageInfo + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) GetSpuName() string { + if m != nil && m.SpuName != nil { + return *m.SpuName + } + return "" +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) GetCpu() []*JunosPfeSpuCpuSecurityTypeSpuTypeCpuList { + if m != nil { + return m.Cpu + } + return nil +} + +type JunosPfeSpuCpuSecurityTypeSpuTypeCpuList struct { + CpuName *string `protobuf:"bytes,52,opt,name=cpu_name,json=cpuName" json:"cpu_name,omitempty"` + Utilization *uint32 `protobuf:"varint,53,opt,name=utilization" json:"utilization,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) Reset() { + *m = JunosPfeSpuCpuSecurityTypeSpuTypeCpuList{} +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) ProtoMessage() {} +func (*JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) Descriptor() ([]byte, []int) { + return fileDescriptor_d0270bcf540ee61c, []int{0, 0, 0, 0} +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuTypeCpuList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuTypeCpuList.Merge(m, src) +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuTypeCpuList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuCpuSecurityTypeSpuTypeCpuList proto.InternalMessageInfo + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) GetCpuName() string { + if m != nil && m.CpuName != nil { + return *m.CpuName + } + return "" +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) GetUtilization() uint32 { + if m != nil && m.Utilization != nil { + return *m.Utilization + } + return 0 +} + +var E_JnprJunosPfeSpuCpuExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPfeSpuCpu)(nil), + Field: 130, + Name: "jnpr_junos_pfe_spu_cpu_ext", + Tag: "bytes,130,opt,name=jnpr_junos_pfe_spu_cpu_ext", + Filename: "spu_cpu_util.proto", +} + +func init() { + proto.RegisterType((*JunosPfeSpuCpu)(nil), "junos_pfe_spu_cpu") + proto.RegisterType((*JunosPfeSpuCpuSecurityType)(nil), "junos_pfe_spu_cpu.security_type") + proto.RegisterType((*JunosPfeSpuCpuSecurityTypeSpuType)(nil), "junos_pfe_spu_cpu.security_type.spu_type") + proto.RegisterType((*JunosPfeSpuCpuSecurityTypeSpuTypeCpuList)(nil), "junos_pfe_spu_cpu.security_type.spu_type.cpu_list") + proto.RegisterExtension(E_JnprJunosPfeSpuCpuExt) +} + +func init() { proto.RegisterFile("spu_cpu_util.proto", fileDescriptor_d0270bcf540ee61c) } + +var fileDescriptor_d0270bcf540ee61c = []byte{ + // 379 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0xae, 0xd3, 0x30, + 0x14, 0x86, 0xe5, 0x56, 0xe8, 0x06, 0x57, 0x77, 0xc0, 0x08, 0x11, 0x32, 0x54, 0x11, 0x53, 0x18, + 0x9a, 0x48, 0x05, 0x16, 0x04, 0x12, 0xba, 0xe8, 0x2e, 0x77, 0xa8, 0x50, 0xee, 0xc6, 0x62, 0x7c, + 0xc3, 0x69, 0xea, 0x34, 0xb1, 0x2d, 0xfb, 0x18, 0x5a, 0xc6, 0xce, 0xec, 0xbc, 0x0c, 0x0f, 0xc0, + 0xc8, 0x23, 0x40, 0x9f, 0x04, 0xb9, 0x69, 0x10, 0xa8, 0x03, 0x77, 0x3b, 0xfa, 0x7c, 0xfe, 0xff, + 0x3f, 0xfe, 0x29, 0x73, 0xc6, 0xf3, 0xca, 0x78, 0xee, 0x51, 0xb6, 0xb9, 0xb1, 0x1a, 0x75, 0x72, + 0x1f, 0xa1, 0x85, 0x0e, 0xd0, 0x6e, 0x39, 0x6a, 0xd3, 0xc3, 0xc7, 0xbf, 0x46, 0xf4, 0x5e, 0xe3, + 0x95, 0x76, 0xdc, 0x2c, 0x81, 0x1f, 0x55, 0xec, 0x15, 0x8d, 0x1c, 0x54, 0xde, 0x4a, 0xdc, 0xc6, + 0x5f, 0x49, 0x4a, 0xb2, 0xc9, 0x3c, 0xcd, 0x4f, 0xd6, 0xf2, 0x61, 0x87, 0xe3, 0xd6, 0x40, 0xf9, + 0x47, 0x92, 0x7c, 0x19, 0xd1, 0xf3, 0x7f, 0xde, 0xd8, 0x4b, 0x3a, 0x76, 0xc6, 0x0f, 0x5e, 0x4f, + 0xfe, 0xe7, 0x95, 0x07, 0x7a, 0x30, 0x0d, 0xb2, 0xe4, 0x1b, 0xa1, 0xd1, 0x40, 0xd8, 0xa3, 0x7e, + 0x56, 0xa2, 0x83, 0xf8, 0x69, 0x4a, 0xb2, 0xbb, 0xe5, 0x99, 0x33, 0x7e, 0x21, 0x3a, 0x60, 0x97, + 0x74, 0x5c, 0xf5, 0x29, 0xe3, 0x6c, 0x32, 0x9f, 0xdf, 0x3a, 0x25, 0x0f, 0x4d, 0xb5, 0xd2, 0x61, + 0x19, 0xf4, 0xc9, 0x82, 0x46, 0x03, 0x60, 0x69, 0x3f, 0x1f, 0xd2, 0x9e, 0x85, 0xb4, 0x8b, 0x3b, + 0xbb, 0xd7, 0xa3, 0x88, 0x94, 0x67, 0xd5, 0x31, 0x34, 0xa5, 0x93, 0x50, 0xb2, 0xfc, 0x2c, 0x50, + 0x6a, 0x15, 0x3f, 0x4f, 0x49, 0x76, 0x5e, 0xfe, 0x8d, 0x5e, 0xd4, 0x34, 0x69, 0x94, 0xb1, 0xfc, + 0xe4, 0x1c, 0x0e, 0x1b, 0x64, 0x0f, 0xf3, 0x2b, 0xaf, 0xa4, 0x01, 0xbb, 0x00, 0xfc, 0xa4, 0xed, + 0xda, 0x5d, 0x83, 0x72, 0xda, 0xba, 0x78, 0xd7, 0x97, 0xc5, 0x4e, 0xbf, 0x51, 0x3e, 0x08, 0x7e, + 0x57, 0x01, 0xbf, 0x5d, 0xc2, 0xb5, 0xf1, 0x6f, 0x8c, 0xbf, 0xdc, 0xe0, 0xc5, 0xfb, 0xef, 0xfb, + 0x29, 0xf9, 0xb1, 0x9f, 0x92, 0x9f, 0xfb, 0x29, 0x79, 0x57, 0xd6, 0x12, 0x83, 0x36, 0x78, 0xe7, + 0x0a, 0xb0, 0x90, 0x15, 0xdc, 0x80, 0xad, 0x8b, 0x15, 0x88, 0x16, 0x57, 0x37, 0x1a, 0x67, 0x52, + 0xd5, 0xe0, 0x70, 0xd6, 0xa0, 0x9c, 0x29, 0x81, 0xf2, 0x23, 0x14, 0x66, 0x5d, 0x17, 0x0d, 0xca, + 0x42, 0x7c, 0x10, 0x06, 0xc1, 0xba, 0xa2, 0xbf, 0xba, 0x70, 0xd5, 0x0a, 0x3a, 0xf1, 0x3b, 0x00, + 0x00, 0xff, 0xff, 0x25, 0x6f, 0xbe, 0x4a, 0x58, 0x02, 0x00, 0x00, +} + +func (m *JunosPfeSpuCpu) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuCpu) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuCpu) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Security != nil { + { + size, err := m.Security.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuCpuUtil(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuCpuSecurityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuCpuSecurityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuCpuSecurityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Spu != nil { + { + size, err := m.Spu.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuCpuUtil(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Cpu) > 0 { + for iNdEx := len(m.Cpu) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Cpu[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuCpuUtil(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + if m.SpuName != nil { + i -= len(*m.SpuName) + copy(dAtA[i:], *m.SpuName) + i = encodeVarintSpuCpuUtil(dAtA, i, uint64(len(*m.SpuName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Utilization != nil { + i = encodeVarintSpuCpuUtil(dAtA, i, uint64(*m.Utilization)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.CpuName != nil { + i -= len(*m.CpuName) + copy(dAtA[i:], *m.CpuName) + i = encodeVarintSpuCpuUtil(dAtA, i, uint64(len(*m.CpuName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + return len(dAtA) - i, nil +} + +func encodeVarintSpuCpuUtil(dAtA []byte, offset int, v uint64) int { + offset -= sovSpuCpuUtil(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPfeSpuCpu) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Security != nil { + l = m.Security.Size() + n += 2 + l + sovSpuCpuUtil(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuCpuSecurityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spu != nil { + l = m.Spu.Size() + n += 2 + l + sovSpuCpuUtil(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SpuName != nil { + l = len(*m.SpuName) + n += 2 + l + sovSpuCpuUtil(uint64(l)) + } + if len(m.Cpu) > 0 { + for _, e := range m.Cpu { + l = e.Size() + n += 2 + l + sovSpuCpuUtil(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CpuName != nil { + l = len(*m.CpuName) + n += 2 + l + sovSpuCpuUtil(uint64(l)) + } + if m.Utilization != nil { + n += 2 + sovSpuCpuUtil(uint64(*m.Utilization)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSpuCpuUtil(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSpuCpuUtil(x uint64) (n int) { + return sovSpuCpuUtil(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPfeSpuCpu) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pfe_spu_cpu: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pfe_spu_cpu: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Security", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuCpuUtil + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Security == nil { + m.Security = &JunosPfeSpuCpuSecurityType{} + } + if err := m.Security.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuCpuUtil(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuCpuSecurityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: security_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: security_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spu", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuCpuUtil + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spu == nil { + m.Spu = &JunosPfeSpuCpuSecurityTypeSpuType{} + } + if err := m.Spu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuCpuUtil(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuCpuSecurityTypeSpuType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: spu_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: spu_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpuName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSpuCpuUtil + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SpuName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cpu", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuCpuUtil + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cpu = append(m.Cpu, &JunosPfeSpuCpuSecurityTypeSpuTypeCpuList{}) + if err := m.Cpu[len(m.Cpu)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuCpuUtil(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuCpuSecurityTypeSpuTypeCpuList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: cpu_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: cpu_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSpuCpuUtil + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CpuName = &s + iNdEx = postIndex + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Utilization", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Utilization = &v + default: + iNdEx = preIndex + skippy, err := skipSpuCpuUtil(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuCpuUtil + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSpuCpuUtil(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSpuCpuUtil + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSpuCpuUtil + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSpuCpuUtil + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSpuCpuUtil + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSpuCpuUtil = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSpuCpuUtil = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSpuCpuUtil = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/spu_cpu_util.proto b/schema/spu_cpu_util.proto new file mode 100755 index 0000000..d388901 --- /dev/null +++ b/schema/spu_cpu_util.proto @@ -0,0 +1,22 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pfe_spu_cpu jnpr_junos_pfe_spu_cpu_ext = 130; +} + +message junos_pfe_spu_cpu { + optional security_type security = 151; + message security_type { + optional spu_type spu = 151; + message spu_type { + optional string spu_name = 51; + message cpu_list { + optional string cpu_name = 52 [(telemetry_options).is_key = true]; + optional uint32 utilization = 53; + } + repeated cpu_list cpu = 151; + } + } +} diff --git a/schema/spu_flow_stats.pb.go b/schema/spu_flow_stats.pb.go new file mode 100644 index 0000000..c10f0fd --- /dev/null +++ b/schema/spu_flow_stats.pb.go @@ -0,0 +1,3994 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: spu_flow_stats.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type JunosPfeSpuFlow struct { + Security *JunosPfeSpuFlowSecurityType `protobuf:"bytes,151,opt,name=security" json:"security,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlow) Reset() { *m = JunosPfeSpuFlow{} } +func (m *JunosPfeSpuFlow) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuFlow) ProtoMessage() {} +func (*JunosPfeSpuFlow) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0} +} +func (m *JunosPfeSpuFlow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlow.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlow) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlow.Merge(m, src) +} +func (m *JunosPfeSpuFlow) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlow) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlow.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlow proto.InternalMessageInfo + +func (m *JunosPfeSpuFlow) GetSecurity() *JunosPfeSpuFlowSecurityType { + if m != nil { + return m.Security + } + return nil +} + +type JunosPfeSpuFlowSecurityType struct { + Spu *JunosPfeSpuFlowSecurityTypeSpuType `protobuf:"bytes,151,opt,name=spu" json:"spu,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityType) Reset() { *m = JunosPfeSpuFlowSecurityType{} } +func (m *JunosPfeSpuFlowSecurityType) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuFlowSecurityType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0} +} +func (m *JunosPfeSpuFlowSecurityType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityType) GetSpu() *JunosPfeSpuFlowSecurityTypeSpuType { + if m != nil { + return m.Spu + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuType struct { + SpuName *string `protobuf:"bytes,51,opt,name=spu_name,json=spuName" json:"spu_name,omitempty"` + Flow *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType `protobuf:"bytes,151,opt,name=flow" json:"flow,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) Reset() { *m = JunosPfeSpuFlowSecurityTypeSpuType{} } +func (m *JunosPfeSpuFlowSecurityTypeSpuType) String() string { return proto.CompactTextString(m) } +func (*JunosPfeSpuFlowSecurityTypeSpuType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityTypeSpuType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) GetSpuName() string { + if m != nil && m.SpuName != nil { + return *m.SpuName + } + return "" +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) GetFlow() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType { + if m != nil { + return m.Flow + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowType struct { + StatsScope *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType `protobuf:"bytes,151,opt,name=stats_scope,json=statsScope" json:"stats_scope,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) GetStatsScope() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType { + if m != nil { + return m.StatsScope + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType struct { + System *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType `protobuf:"bytes,151,opt,name=system" json:"system,omitempty"` + LsysScope *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType `protobuf:"bytes,152,opt,name=lsys_scope,json=lsysScope" json:"lsys_scope,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) GetSystem() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType { + if m != nil { + return m.System + } + return nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) GetLsysScope() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType { + if m != nil { + return m.LsysScope + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType struct { + Session *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType `protobuf:"bytes,151,opt,name=session" json:"session,omitempty"` + Packet *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType `protobuf:"bytes,152,opt,name=packet" json:"packet,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) GetSession() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType { + if m != nil { + return m.Session + } + return nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) GetPacket() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType { + if m != nil { + return m.Packet + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType struct { + NoV4 *uint32 `protobuf:"varint,51,opt,name=no_v4,json=noV4" json:"no_v4,omitempty"` + NoV6 *uint32 `protobuf:"varint,52,opt,name=no_v6,json=noV6" json:"no_v6,omitempty"` + NoUnicast *uint32 `protobuf:"varint,53,opt,name=no_unicast,json=noUnicast" json:"no_unicast,omitempty"` + NoMulticast *uint32 `protobuf:"varint,54,opt,name=no_multicast,json=noMulticast" json:"no_multicast,omitempty"` + NoSof *uint32 `protobuf:"varint,55,opt,name=no_sof,json=noSof" json:"no_sof,omitempty"` + NoNat *uint32 `protobuf:"varint,56,opt,name=no_nat,json=noNat" json:"no_nat,omitempty"` + NoSsl *uint32 `protobuf:"varint,57,opt,name=no_ssl,json=noSsl" json:"no_ssl,omitempty"` + NoTunnel *uint32 `protobuf:"varint,58,opt,name=no_tunnel,json=noTunnel" json:"no_tunnel,omitempty"` + NoFailed *uint32 `protobuf:"varint,59,opt,name=no_failed,json=noFailed" json:"no_failed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) ProtoMessage() { +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoV4() uint32 { + if m != nil && m.NoV4 != nil { + return *m.NoV4 + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoV6() uint32 { + if m != nil && m.NoV6 != nil { + return *m.NoV6 + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoUnicast() uint32 { + if m != nil && m.NoUnicast != nil { + return *m.NoUnicast + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoMulticast() uint32 { + if m != nil && m.NoMulticast != nil { + return *m.NoMulticast + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoSof() uint32 { + if m != nil && m.NoSof != nil { + return *m.NoSof + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoNat() uint32 { + if m != nil && m.NoNat != nil { + return *m.NoNat + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoSsl() uint32 { + if m != nil && m.NoSsl != nil { + return *m.NoSsl + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoTunnel() uint32 { + if m != nil && m.NoTunnel != nil { + return *m.NoTunnel + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) GetNoFailed() uint32 { + if m != nil && m.NoFailed != nil { + return *m.NoFailed + } + return 0 +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType struct { + PktReceived *uint64 `protobuf:"varint,51,opt,name=pkt_received,json=pktReceived" json:"pkt_received,omitempty"` + PktTransmitted *uint64 `protobuf:"varint,52,opt,name=pkt_transmitted,json=pktTransmitted" json:"pkt_transmitted,omitempty"` + PktDropped *uint64 `protobuf:"varint,53,opt,name=pkt_dropped,json=pktDropped" json:"pkt_dropped,omitempty"` + FragmentsReceived *uint64 `protobuf:"varint,54,opt,name=fragments_received,json=fragmentsReceived" json:"fragments_received,omitempty"` + PreFragments *uint64 `protobuf:"varint,55,opt,name=pre_fragments,json=preFragments" json:"pre_fragments,omitempty"` + PostFragments *uint64 `protobuf:"varint,56,opt,name=post_fragments,json=postFragments" json:"post_fragments,omitempty"` + PmiReceived *uint64 `protobuf:"varint,57,opt,name=pmi_received,json=pmiReceived" json:"pmi_received,omitempty"` + PmiTransmitted *uint64 `protobuf:"varint,58,opt,name=pmi_transmitted,json=pmiTransmitted" json:"pmi_transmitted,omitempty"` + PmiDropped *uint64 `protobuf:"varint,59,opt,name=pmi_dropped,json=pmiDropped" json:"pmi_dropped,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 0, 1} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPktReceived() uint64 { + if m != nil && m.PktReceived != nil { + return *m.PktReceived + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPktTransmitted() uint64 { + if m != nil && m.PktTransmitted != nil { + return *m.PktTransmitted + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPktDropped() uint64 { + if m != nil && m.PktDropped != nil { + return *m.PktDropped + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetFragmentsReceived() uint64 { + if m != nil && m.FragmentsReceived != nil { + return *m.FragmentsReceived + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPreFragments() uint64 { + if m != nil && m.PreFragments != nil { + return *m.PreFragments + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPostFragments() uint64 { + if m != nil && m.PostFragments != nil { + return *m.PostFragments + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPmiReceived() uint64 { + if m != nil && m.PmiReceived != nil { + return *m.PmiReceived + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPmiTransmitted() uint64 { + if m != nil && m.PmiTransmitted != nil { + return *m.PmiTransmitted + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) GetPmiDropped() uint64 { + if m != nil && m.PmiDropped != nil { + return *m.PmiDropped + } + return 0 +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType struct { + Lsys []*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList `protobuf:"bytes,152,rep,name=lsys" json:"lsys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) ProtoMessage() {} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 1} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) GetLsys() []*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList { + if m != nil { + return m.Lsys + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList struct { + LsysName *string `protobuf:"bytes,151,opt,name=lsys_name,json=lsysName" json:"lsys_name,omitempty"` + Session *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType `protobuf:"bytes,152,opt,name=session" json:"session,omitempty"` + Packet *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType `protobuf:"bytes,153,opt,name=packet" json:"packet,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) ProtoMessage() { +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 1, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) GetLsysName() string { + if m != nil && m.LsysName != nil { + return *m.LsysName + } + return "" +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) GetSession() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType { + if m != nil { + return m.Session + } + return nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) GetPacket() *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType { + if m != nil { + return m.Packet + } + return nil +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType struct { + NoV4 *uint32 `protobuf:"varint,51,opt,name=no_v4,json=noV4" json:"no_v4,omitempty"` + NoV6 *uint32 `protobuf:"varint,52,opt,name=no_v6,json=noV6" json:"no_v6,omitempty"` + NoUnicast *uint32 `protobuf:"varint,53,opt,name=no_unicast,json=noUnicast" json:"no_unicast,omitempty"` + NoMulticast *uint32 `protobuf:"varint,54,opt,name=no_multicast,json=noMulticast" json:"no_multicast,omitempty"` + NoSof *uint32 `protobuf:"varint,55,opt,name=no_sof,json=noSof" json:"no_sof,omitempty"` + NoNat *uint32 `protobuf:"varint,56,opt,name=no_nat,json=noNat" json:"no_nat,omitempty"` + NoSsl *uint32 `protobuf:"varint,57,opt,name=no_ssl,json=noSsl" json:"no_ssl,omitempty"` + NoTunnel *uint32 `protobuf:"varint,58,opt,name=no_tunnel,json=noTunnel" json:"no_tunnel,omitempty"` + NoFailed *uint32 `protobuf:"varint,59,opt,name=no_failed,json=noFailed" json:"no_failed,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) ProtoMessage() { +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 1, 0, 0} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoV4() uint32 { + if m != nil && m.NoV4 != nil { + return *m.NoV4 + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoV6() uint32 { + if m != nil && m.NoV6 != nil { + return *m.NoV6 + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoUnicast() uint32 { + if m != nil && m.NoUnicast != nil { + return *m.NoUnicast + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoMulticast() uint32 { + if m != nil && m.NoMulticast != nil { + return *m.NoMulticast + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoSof() uint32 { + if m != nil && m.NoSof != nil { + return *m.NoSof + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoNat() uint32 { + if m != nil && m.NoNat != nil { + return *m.NoNat + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoSsl() uint32 { + if m != nil && m.NoSsl != nil { + return *m.NoSsl + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoTunnel() uint32 { + if m != nil && m.NoTunnel != nil { + return *m.NoTunnel + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) GetNoFailed() uint32 { + if m != nil && m.NoFailed != nil { + return *m.NoFailed + } + return 0 +} + +type JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType struct { + PktReceived *uint64 `protobuf:"varint,51,opt,name=pkt_received,json=pktReceived" json:"pkt_received,omitempty"` + PktTransmitted *uint64 `protobuf:"varint,52,opt,name=pkt_transmitted,json=pktTransmitted" json:"pkt_transmitted,omitempty"` + PktDropped *uint64 `protobuf:"varint,53,opt,name=pkt_dropped,json=pktDropped" json:"pkt_dropped,omitempty"` + FragmentsReceived *uint64 `protobuf:"varint,54,opt,name=fragments_received,json=fragmentsReceived" json:"fragments_received,omitempty"` + PreFragments *uint64 `protobuf:"varint,55,opt,name=pre_fragments,json=preFragments" json:"pre_fragments,omitempty"` + PostFragments *uint64 `protobuf:"varint,56,opt,name=post_fragments,json=postFragments" json:"post_fragments,omitempty"` + PmiReceived *uint64 `protobuf:"varint,57,opt,name=pmi_received,json=pmiReceived" json:"pmi_received,omitempty"` + PmiTransmitted *uint64 `protobuf:"varint,58,opt,name=pmi_transmitted,json=pmiTransmitted" json:"pmi_transmitted,omitempty"` + PmiDropped *uint64 `protobuf:"varint,59,opt,name=pmi_dropped,json=pmiDropped" json:"pmi_dropped,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) Reset() { + *m = JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType{} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) String() string { + return proto.CompactTextString(m) +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) ProtoMessage() { +} +func (*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) Descriptor() ([]byte, []int) { + return fileDescriptor_03cee703f3715224, []int{0, 0, 0, 0, 0, 1, 0, 1} +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) XXX_Merge(src proto.Message) { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType.Merge(m, src) +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) XXX_Size() int { + return m.Size() +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) XXX_DiscardUnknown() { + xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType.DiscardUnknown(m) +} + +var xxx_messageInfo_JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType proto.InternalMessageInfo + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPktReceived() uint64 { + if m != nil && m.PktReceived != nil { + return *m.PktReceived + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPktTransmitted() uint64 { + if m != nil && m.PktTransmitted != nil { + return *m.PktTransmitted + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPktDropped() uint64 { + if m != nil && m.PktDropped != nil { + return *m.PktDropped + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetFragmentsReceived() uint64 { + if m != nil && m.FragmentsReceived != nil { + return *m.FragmentsReceived + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPreFragments() uint64 { + if m != nil && m.PreFragments != nil { + return *m.PreFragments + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPostFragments() uint64 { + if m != nil && m.PostFragments != nil { + return *m.PostFragments + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPmiReceived() uint64 { + if m != nil && m.PmiReceived != nil { + return *m.PmiReceived + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPmiTransmitted() uint64 { + if m != nil && m.PmiTransmitted != nil { + return *m.PmiTransmitted + } + return 0 +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) GetPmiDropped() uint64 { + if m != nil && m.PmiDropped != nil { + return *m.PmiDropped + } + return 0 +} + +var E_JnprJunosPfeSpuFlowExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*JunosPfeSpuFlow)(nil), + Field: 131, + Name: "jnpr_junos_pfe_spu_flow_ext", + Tag: "bytes,131,opt,name=jnpr_junos_pfe_spu_flow_ext", + Filename: "spu_flow_stats.proto", +} + +func init() { + proto.RegisterType((*JunosPfeSpuFlow)(nil), "junos_pfe_spu_flow") + proto.RegisterType((*JunosPfeSpuFlowSecurityType)(nil), "junos_pfe_spu_flow.security_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuType)(nil), "junos_pfe_spu_flow.security_type.spu_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.system_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.system_type.session_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.system_type.packet_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.lsys_scope_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.lsys_scope_type.lsys_list") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.lsys_scope_type.lsys_list.session_type") + proto.RegisterType((*JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType)(nil), "junos_pfe_spu_flow.security_type.spu_type.flow_type.stats_scope_type.lsys_scope_type.lsys_list.packet_type") + proto.RegisterExtension(E_JnprJunosPfeSpuFlowExt) +} + +func init() { proto.RegisterFile("spu_flow_stats.proto", fileDescriptor_03cee703f3715224) } + +var fileDescriptor_03cee703f3715224 = []byte{ + // 851 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0x4f, 0x6f, 0x1c, 0xc5, + 0x13, 0xd5, 0x24, 0x6b, 0x7b, 0xb7, 0xd6, 0x4e, 0x7e, 0x6e, 0xe7, 0x07, 0xc3, 0x44, 0x98, 0x84, + 0x08, 0x61, 0x21, 0x79, 0x56, 0x0a, 0xc6, 0x24, 0x8e, 0x40, 0x28, 0x22, 0x96, 0x88, 0x84, 0x05, + 0xe3, 0x84, 0x03, 0x12, 0x34, 0x93, 0xdd, 0xda, 0x75, 0xef, 0xce, 0x74, 0xb7, 0xa6, 0x6b, 0xec, + 0xec, 0x15, 0x90, 0xe0, 0x1b, 0xf0, 0xe7, 0xc8, 0x99, 0x6f, 0xc1, 0x85, 0x23, 0x1f, 0x01, 0xfc, + 0x11, 0xb8, 0x71, 0x02, 0x75, 0xf7, 0xcc, 0xec, 0xda, 0x01, 0x81, 0x90, 0xcd, 0x29, 0xb7, 0xe9, + 0x57, 0xaf, 0xdf, 0xab, 0x57, 0x9a, 0x2e, 0xb8, 0x62, 0x74, 0xc9, 0x87, 0x99, 0x3a, 0xe2, 0x86, + 0x52, 0x32, 0xb1, 0x2e, 0x14, 0xa9, 0x68, 0x8d, 0x30, 0xc3, 0x1c, 0xa9, 0x98, 0x72, 0x52, 0xda, + 0x83, 0x2f, 0x7e, 0x7b, 0x05, 0xd8, 0xb8, 0x94, 0xca, 0x70, 0x3d, 0x44, 0x5e, 0xdf, 0x63, 0x6f, + 0x42, 0xdb, 0x60, 0xbf, 0x2c, 0x04, 0x4d, 0xc3, 0xaf, 0x82, 0x6b, 0xc1, 0x46, 0xf7, 0xe6, 0xf5, + 0xf8, 0x49, 0x5e, 0x5c, 0x93, 0x38, 0x4d, 0x35, 0x26, 0xcd, 0x9d, 0xe8, 0x87, 0x35, 0x58, 0x39, + 0x51, 0x63, 0x6f, 0xc0, 0x45, 0xa3, 0xcb, 0x5a, 0xec, 0x95, 0xbf, 0x15, 0x8b, 0x2d, 0xec, 0x54, + 0xed, 0xbd, 0xe8, 0x57, 0x06, 0xed, 0x1a, 0x61, 0xcf, 0xf9, 0x6f, 0x99, 0xe6, 0x18, 0xbe, 0x7a, + 0x2d, 0xd8, 0xe8, 0x24, 0x4b, 0x46, 0x97, 0x7b, 0x69, 0x8e, 0xec, 0x1d, 0x68, 0x59, 0xad, 0xda, + 0x67, 0xeb, 0x9f, 0xfb, 0xc4, 0x6e, 0x60, 0xce, 0xd1, 0x49, 0x44, 0xbf, 0xaf, 0x42, 0xa7, 0xc1, + 0xd8, 0x08, 0xba, 0x6e, 0x98, 0xdc, 0xf4, 0x95, 0xc6, 0x5a, 0xff, 0xde, 0xbf, 0xd1, 0x8f, 0xe7, + 0x84, 0xbc, 0x21, 0x38, 0x64, 0xdf, 0x02, 0xd1, 0x97, 0xab, 0xf0, 0xbf, 0xd3, 0x04, 0x36, 0x86, + 0x45, 0x33, 0x35, 0x84, 0x79, 0x6d, 0xfc, 0xfe, 0x99, 0x18, 0xc7, 0x5e, 0xd4, 0x37, 0x51, 0x39, + 0xb0, 0x12, 0x20, 0x33, 0xd3, 0x3a, 0xe8, 0xd7, 0xde, 0xef, 0xe1, 0xd9, 0xf8, 0xcd, 0x84, 0xbd, + 0x67, 0xc7, 0x02, 0x3e, 0xf7, 0x2f, 0x8b, 0xd0, 0x9d, 0x6b, 0x87, 0x4d, 0x61, 0xc9, 0xa0, 0x31, + 0x42, 0xc9, 0x3a, 0xf3, 0xc7, 0x67, 0x9e, 0x39, 0xae, 0x1c, 0x7c, 0x33, 0xb5, 0x1f, 0x3b, 0x84, + 0x45, 0x9d, 0xf6, 0x27, 0x48, 0x75, 0xfa, 0x8f, 0xce, 0xde, 0xd9, 0x1b, 0x54, 0x93, 0xf7, 0x87, + 0xe8, 0xb7, 0x00, 0x96, 0xe7, 0x3b, 0x62, 0x6b, 0xb0, 0x20, 0x15, 0x3f, 0xdc, 0x72, 0x7f, 0xf9, + 0x4a, 0xd2, 0x92, 0xea, 0x83, 0xad, 0x1a, 0xdc, 0x0e, 0xb7, 0x1a, 0x70, 0x9b, 0x3d, 0x0f, 0x20, + 0x15, 0x2f, 0xa5, 0xe8, 0xa7, 0x86, 0xc2, 0xd7, 0x5c, 0xa5, 0x23, 0xd5, 0x43, 0x0f, 0xb0, 0xeb, + 0xb0, 0x2c, 0x15, 0xcf, 0xcb, 0x8c, 0x3c, 0x61, 0xdb, 0x11, 0xba, 0x52, 0xbd, 0x5b, 0x43, 0xec, + 0xff, 0xb0, 0x28, 0x15, 0x37, 0x6a, 0x18, 0xbe, 0xee, 0x8a, 0x0b, 0x52, 0xed, 0xab, 0x61, 0x05, + 0xcb, 0x94, 0xc2, 0x5b, 0x35, 0xbc, 0x97, 0x36, 0x6c, 0x93, 0x85, 0xb7, 0x1b, 0xb6, 0xc9, 0xd8, + 0x55, 0xe8, 0x48, 0xc5, 0xa9, 0x94, 0x12, 0xb3, 0x70, 0xc7, 0x55, 0xda, 0x52, 0x3d, 0x70, 0xe7, + 0xaa, 0x38, 0x4c, 0x45, 0x86, 0x83, 0xf0, 0x4e, 0x5d, 0xdc, 0x75, 0xe7, 0xe8, 0xf8, 0x02, 0x74, + 0xe7, 0x66, 0x62, 0x3b, 0xd6, 0x13, 0xe2, 0x05, 0xf6, 0x51, 0x1c, 0xe2, 0xc0, 0x4d, 0xa0, 0x95, + 0x74, 0xf5, 0x84, 0x92, 0x0a, 0x62, 0x2f, 0xc3, 0x65, 0x4b, 0xa1, 0x22, 0x95, 0x26, 0x17, 0x44, + 0x38, 0x70, 0x23, 0x69, 0x25, 0x97, 0xf4, 0x84, 0x1e, 0xcc, 0x50, 0xf6, 0x02, 0xd8, 0x7b, 0x7c, + 0x50, 0x28, 0xad, 0x71, 0xe0, 0xa6, 0xd3, 0x4a, 0x40, 0x4f, 0xe8, 0x6d, 0x8f, 0xb0, 0x4d, 0x60, + 0xc3, 0x22, 0x1d, 0xe5, 0x28, 0xc9, 0xcc, 0x2c, 0xb7, 0x1d, 0x6f, 0xb5, 0xa9, 0x34, 0xc6, 0x37, + 0x60, 0x45, 0x17, 0xc8, 0x9b, 0x82, 0x9b, 0x58, 0x2b, 0x59, 0xd6, 0x05, 0xee, 0xd6, 0x18, 0x7b, + 0x09, 0x2e, 0x69, 0x65, 0x68, 0x8e, 0x75, 0xcb, 0xb1, 0x56, 0x2c, 0x3a, 0xa3, 0xd9, 0x9c, 0xb9, + 0x98, 0x99, 0xde, 0xae, 0x72, 0xe6, 0xe2, 0x44, 0xce, 0x5c, 0x9c, 0xc8, 0xb9, 0x53, 0xe5, 0xcc, + 0xc5, 0xe9, 0x9c, 0xb9, 0x68, 0x72, 0xde, 0xa9, 0x72, 0xe6, 0xa2, 0xca, 0x19, 0x7d, 0xdf, 0x86, + 0xcb, 0xa7, 0x9e, 0x20, 0x23, 0x68, 0x59, 0xc8, 0xfe, 0xea, 0x17, 0x37, 0xba, 0x37, 0xf9, 0xb9, + 0x3c, 0x74, 0x7f, 0xce, 0x84, 0xa1, 0xc4, 0xb9, 0x45, 0xdf, 0x2d, 0x41, 0xa7, 0xc1, 0xd8, 0x8d, + 0xea, 0xe0, 0x36, 0xba, 0x7b, 0xed, 0x9d, 0xbb, 0x0b, 0x9f, 0xbe, 0x75, 0xa1, 0x1d, 0x24, 0x6d, + 0x5b, 0x70, 0xab, 0xfd, 0x8b, 0x60, 0xb6, 0x11, 0xaa, 0x77, 0x99, 0x9d, 0x73, 0xb3, 0x7f, 0xb1, + 0x1f, 0x3e, 0x0f, 0x9a, 0x05, 0xf1, 0x8d, 0x6f, 0x64, 0x72, 0xde, 0x8d, 0x3c, 0x5d, 0x17, 0x4f, + 0xd7, 0xc5, 0x7f, 0xbd, 0x2e, 0x76, 0xc6, 0x70, 0x75, 0x2c, 0x75, 0xc1, 0x9f, 0xfc, 0xb7, 0x39, + 0x3e, 0x26, 0xf6, 0x6c, 0x7c, 0xbf, 0x94, 0x42, 0x63, 0xb1, 0x87, 0x74, 0xa4, 0x8a, 0x89, 0xd9, + 0x47, 0x69, 0x54, 0x61, 0xc2, 0xcf, 0xfc, 0xa3, 0x58, 0xfb, 0x93, 0x47, 0x91, 0x3c, 0x63, 0x15, + 0xef, 0x5b, 0xfc, 0xbd, 0x21, 0xee, 0xeb, 0x72, 0x37, 0x53, 0x47, 0xf7, 0x1e, 0xd3, 0xdd, 0x4f, + 0x7e, 0x3c, 0x5e, 0x0f, 0x7e, 0x3a, 0x5e, 0x0f, 0x7e, 0x3e, 0x5e, 0x0f, 0x3e, 0x4c, 0x46, 0x82, + 0xec, 0x6d, 0xab, 0x1e, 0x4b, 0xa4, 0x9e, 0xe8, 0xe3, 0x23, 0x2c, 0x46, 0xbd, 0x03, 0x4c, 0x33, + 0x3a, 0x78, 0xa4, 0x68, 0x53, 0xc8, 0x11, 0x1a, 0xda, 0x1c, 0x93, 0xd8, 0x94, 0x29, 0x89, 0x43, + 0xec, 0xe9, 0xc9, 0xa8, 0x37, 0x26, 0xd1, 0x4b, 0x07, 0xa9, 0x26, 0x2c, 0x4c, 0xcf, 0x37, 0xde, + 0x33, 0xfd, 0x03, 0xcc, 0xd3, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x73, 0xef, 0x71, 0x16, + 0x0b, 0x00, 0x00, +} + +func (m *JunosPfeSpuFlow) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Security != nil { + { + size, err := m.Security.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Spu != nil { + { + size, err := m.Spu.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Flow != nil { + { + size, err := m.Flow.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.SpuName != nil { + i -= len(*m.SpuName) + copy(dAtA[i:], *m.SpuName) + i = encodeVarintSpuFlowStats(dAtA, i, uint64(len(*m.SpuName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.StatsScope != nil { + { + size, err := m.StatsScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.LsysScope != nil { + { + size, err := m.LsysScope.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.System != nil { + { + size, err := m.System.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Packet != nil { + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Session != nil { + { + size, err := m.Session.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NoFailed != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoFailed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.NoTunnel != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoTunnel)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.NoSsl != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoSsl)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.NoNat != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoNat)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.NoSof != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoSof)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NoMulticast != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoMulticast)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.NoUnicast != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoUnicast)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NoV6 != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoV6)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.NoV4 != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoV4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PmiDropped != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PmiDropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.PmiTransmitted != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PmiTransmitted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.PmiReceived != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PmiReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.PostFragments != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PostFragments)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.PreFragments != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PreFragments)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.FragmentsReceived != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.FragmentsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.PktDropped != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PktDropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.PktTransmitted != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PktTransmitted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PktReceived != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PktReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Lsys) > 0 { + for iNdEx := len(m.Lsys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Lsys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Packet != nil { + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xca + } + if m.Session != nil { + { + size, err := m.Session.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSpuFlowStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.LsysName != nil { + i -= len(*m.LsysName) + copy(dAtA[i:], *m.LsysName) + i = encodeVarintSpuFlowStats(dAtA, i, uint64(len(*m.LsysName))) + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.NoFailed != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoFailed)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.NoTunnel != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoTunnel)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.NoSsl != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoSsl)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.NoNat != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoNat)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.NoSof != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoSof)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.NoMulticast != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoMulticast)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.NoUnicast != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoUnicast)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.NoV6 != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoV6)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.NoV4 != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.NoV4)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PmiDropped != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PmiDropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.PmiTransmitted != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PmiTransmitted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.PmiReceived != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PmiReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.PostFragments != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PostFragments)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.PreFragments != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PreFragments)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.FragmentsReceived != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.FragmentsReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.PktDropped != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PktDropped)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.PktTransmitted != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PktTransmitted)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.PktReceived != nil { + i = encodeVarintSpuFlowStats(dAtA, i, uint64(*m.PktReceived)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintSpuFlowStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSpuFlowStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *JunosPfeSpuFlow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Security != nil { + l = m.Security.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spu != nil { + l = m.Spu.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SpuName != nil { + l = len(*m.SpuName) + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.Flow != nil { + l = m.Flow.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StatsScope != nil { + l = m.StatsScope.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.System != nil { + l = m.System.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.LsysScope != nil { + l = m.LsysScope.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Session != nil { + l = m.Session.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.Packet != nil { + l = m.Packet.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoV4 != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoV4)) + } + if m.NoV6 != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoV6)) + } + if m.NoUnicast != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoUnicast)) + } + if m.NoMulticast != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoMulticast)) + } + if m.NoSof != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoSof)) + } + if m.NoNat != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoNat)) + } + if m.NoSsl != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoSsl)) + } + if m.NoTunnel != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoTunnel)) + } + if m.NoFailed != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoFailed)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PktReceived != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PktReceived)) + } + if m.PktTransmitted != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PktTransmitted)) + } + if m.PktDropped != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PktDropped)) + } + if m.FragmentsReceived != nil { + n += 2 + sovSpuFlowStats(uint64(*m.FragmentsReceived)) + } + if m.PreFragments != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PreFragments)) + } + if m.PostFragments != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PostFragments)) + } + if m.PmiReceived != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PmiReceived)) + } + if m.PmiTransmitted != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PmiTransmitted)) + } + if m.PmiDropped != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PmiDropped)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Lsys) > 0 { + for _, e := range m.Lsys { + l = e.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LsysName != nil { + l = len(*m.LsysName) + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.Session != nil { + l = m.Session.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.Packet != nil { + l = m.Packet.Size() + n += 2 + l + sovSpuFlowStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoV4 != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoV4)) + } + if m.NoV6 != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoV6)) + } + if m.NoUnicast != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoUnicast)) + } + if m.NoMulticast != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoMulticast)) + } + if m.NoSof != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoSof)) + } + if m.NoNat != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoNat)) + } + if m.NoSsl != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoSsl)) + } + if m.NoTunnel != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoTunnel)) + } + if m.NoFailed != nil { + n += 2 + sovSpuFlowStats(uint64(*m.NoFailed)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PktReceived != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PktReceived)) + } + if m.PktTransmitted != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PktTransmitted)) + } + if m.PktDropped != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PktDropped)) + } + if m.FragmentsReceived != nil { + n += 2 + sovSpuFlowStats(uint64(*m.FragmentsReceived)) + } + if m.PreFragments != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PreFragments)) + } + if m.PostFragments != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PostFragments)) + } + if m.PmiReceived != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PmiReceived)) + } + if m.PmiTransmitted != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PmiTransmitted)) + } + if m.PmiDropped != nil { + n += 2 + sovSpuFlowStats(uint64(*m.PmiDropped)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSpuFlowStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSpuFlowStats(x uint64) (n int) { + return sovSpuFlowStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *JunosPfeSpuFlow) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: junos_pfe_spu_flow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: junos_pfe_spu_flow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Security", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Security == nil { + m.Security = &JunosPfeSpuFlowSecurityType{} + } + if err := m.Security.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: security_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: security_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spu", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spu == nil { + m.Spu = &JunosPfeSpuFlowSecurityTypeSpuType{} + } + if err := m.Spu.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: spu_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: spu_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpuName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SpuName = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Flow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Flow == nil { + m.Flow = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowType{} + } + if err := m.Flow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: flow_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: flow_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatsScope", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StatsScope == nil { + m.StatsScope = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType{} + } + if err := m.StatsScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: stats_scope_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: stats_scope_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.System == nil { + m.System = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType{} + } + if err := m.System.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LsysScope", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LsysScope == nil { + m.LsysScope = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType{} + } + if err := m.LsysScope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: system_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: system_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Session", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Session == nil { + m.Session = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType{} + } + if err := m.Session.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Packet == nil { + m.Packet = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType{} + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypeSessionType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: session_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: session_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoV4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoV4 = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoV6", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoV6 = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoUnicast", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoUnicast = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoMulticast", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoMulticast = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSof", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSof = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoNat", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoNat = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSsl", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSsl = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoTunnel", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoTunnel = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoFailed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoFailed = &v + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeSystemTypePacketType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: packet_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: packet_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PktReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PktReceived = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PktTransmitted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PktTransmitted = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PktDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PktDropped = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FragmentsReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FragmentsReceived = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreFragments", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreFragments = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PostFragments", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PostFragments = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PmiReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PmiReceived = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PmiTransmitted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PmiTransmitted = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PmiDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PmiDropped = &v + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsys_scope_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsys_scope_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lsys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Lsys = append(m.Lsys, &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList{}) + if err := m.Lsys[len(m.Lsys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: lsys_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: lsys_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LsysName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LsysName = &s + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Session", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Session == nil { + m.Session = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType{} + } + if err := m.Session.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 153: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSpuFlowStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSpuFlowStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Packet == nil { + m.Packet = &JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType{} + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListSessionType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: session_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: session_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoV4", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoV4 = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoV6", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoV6 = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoUnicast", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoUnicast = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoMulticast", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoMulticast = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSof", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSof = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoNat", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoNat = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoSsl", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoSsl = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoTunnel", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoTunnel = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoFailed", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoFailed = &v + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JunosPfeSpuFlowSecurityTypeSpuTypeFlowTypeStatsScopeTypeLsysScopeTypeLsysListPacketType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: packet_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: packet_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PktReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PktReceived = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PktTransmitted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PktTransmitted = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PktDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PktDropped = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FragmentsReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FragmentsReceived = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreFragments", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreFragments = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PostFragments", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PostFragments = &v + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PmiReceived", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PmiReceived = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PmiTransmitted", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PmiTransmitted = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PmiDropped", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PmiDropped = &v + default: + iNdEx = preIndex + skippy, err := skipSpuFlowStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSpuFlowStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSpuFlowStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSpuFlowStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSpuFlowStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSpuFlowStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSpuFlowStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSpuFlowStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSpuFlowStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSpuFlowStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/spu_flow_stats.proto b/schema/spu_flow_stats.proto new file mode 100755 index 0000000..89829b7 --- /dev/null +++ b/schema/spu_flow_stats.proto @@ -0,0 +1,81 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional junos_pfe_spu_flow jnpr_junos_pfe_spu_flow_ext = 131; +} + +message junos_pfe_spu_flow { + optional security_type security = 151; + message security_type { + optional spu_type spu = 151; + message spu_type { + optional string spu_name = 51; + optional flow_type flow = 151; + message flow_type { + optional stats_scope_type stats_scope = 151; + message stats_scope_type { + optional system_type system = 151; + message system_type { + optional session_type session = 151; + message session_type { + optional uint32 no_v4 = 51; + optional uint32 no_v6 = 52; + optional uint32 no_unicast = 53; + optional uint32 no_multicast = 54; + optional uint32 no_sof = 55; + optional uint32 no_nat = 56; + optional uint32 no_ssl = 57; + optional uint32 no_tunnel = 58; + optional uint32 no_failed = 59; + } + optional packet_type packet = 152; + message packet_type { + optional uint64 pkt_received = 51; + optional uint64 pkt_transmitted = 52; + optional uint64 pkt_dropped = 53; + optional uint64 fragments_received = 54; + optional uint64 pre_fragments = 55; + optional uint64 post_fragments = 56; + optional uint64 pmi_received = 57; + optional uint64 pmi_transmitted = 58; + optional uint64 pmi_dropped = 59; + } + } + optional lsys_scope_type lsys_scope = 152; + message lsys_scope_type { + message lsys_list { + optional string lsys_name = 151 [(telemetry_options).is_key = true]; + optional session_type session = 152; + message session_type { + optional uint32 no_v4 = 51; + optional uint32 no_v6 = 52; + optional uint32 no_unicast = 53; + optional uint32 no_multicast = 54; + optional uint32 no_sof = 55; + optional uint32 no_nat = 56; + optional uint32 no_ssl = 57; + optional uint32 no_tunnel = 58; + optional uint32 no_failed = 59; + } + optional packet_type packet = 153; + message packet_type { + optional uint64 pkt_received = 51; + optional uint64 pkt_transmitted = 52; + optional uint64 pkt_dropped = 53; + optional uint64 fragments_received = 54; + optional uint64 pre_fragments = 55; + optional uint64 post_fragments = 56; + optional uint64 pmi_received = 57; + optional uint64 pmi_transmitted = 58; + optional uint64 pmi_dropped = 59; + } + } + repeated lsys_list lsys = 152; + } + } + } + } + } +} diff --git a/schema/sr_stats_per_if_egress.pb.go b/schema/sr_stats_per_if_egress.pb.go new file mode 100644 index 0000000..dea6ca7 --- /dev/null +++ b/schema/sr_stats_per_if_egress.pb.go @@ -0,0 +1,1077 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_stats_per_if_egress.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrStatsPerIfEgress struct { + // List of SR stats per IF egress records + PerIfRecords []*SegmentRoutingInterfaceRecord `protobuf:"bytes,1,rep,name=per_if_records,json=perIfRecords" json:"per_if_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrStatsPerIfEgress) Reset() { *m = SrStatsPerIfEgress{} } +func (m *SrStatsPerIfEgress) String() string { return proto.CompactTextString(m) } +func (*SrStatsPerIfEgress) ProtoMessage() {} +func (*SrStatsPerIfEgress) Descriptor() ([]byte, []int) { + return fileDescriptor_d06dd05b32f9304e, []int{0} +} +func (m *SrStatsPerIfEgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrStatsPerIfEgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrStatsPerIfEgress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrStatsPerIfEgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrStatsPerIfEgress.Merge(m, src) +} +func (m *SrStatsPerIfEgress) XXX_Size() int { + return m.Size() +} +func (m *SrStatsPerIfEgress) XXX_DiscardUnknown() { + xxx_messageInfo_SrStatsPerIfEgress.DiscardUnknown(m) +} + +var xxx_messageInfo_SrStatsPerIfEgress proto.InternalMessageInfo + +func (m *SrStatsPerIfEgress) GetPerIfRecords() []*SegmentRoutingInterfaceRecord { + if m != nil { + return m.PerIfRecords + } + return nil +} + +// +// SR statistics record +// +type SegmentRoutingInterfaceRecord struct { + // Interface name, e.g., xe-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Name of parent for AE interface, if applicable + ParentAeName *string `protobuf:"bytes,2,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Traffic statistics + IngressStats *SegmentRoutingIfStats `protobuf:"bytes,4,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + EgressStats *SegmentRoutingIfStats `protobuf:"bytes,5,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingInterfaceRecord) Reset() { *m = SegmentRoutingInterfaceRecord{} } +func (m *SegmentRoutingInterfaceRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingInterfaceRecord) ProtoMessage() {} +func (*SegmentRoutingInterfaceRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_d06dd05b32f9304e, []int{1} +} +func (m *SegmentRoutingInterfaceRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingInterfaceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingInterfaceRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingInterfaceRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingInterfaceRecord.Merge(m, src) +} +func (m *SegmentRoutingInterfaceRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingInterfaceRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingInterfaceRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingInterfaceRecord proto.InternalMessageInfo + +func (m *SegmentRoutingInterfaceRecord) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *SegmentRoutingInterfaceRecord) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *SegmentRoutingInterfaceRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingInterfaceRecord) GetIngressStats() *SegmentRoutingIfStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *SegmentRoutingInterfaceRecord) GetEgressStats() *SegmentRoutingIfStats { + if m != nil { + return m.EgressStats + } + return nil +} + +type SegmentRoutingIfStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingIfStats) Reset() { *m = SegmentRoutingIfStats{} } +func (m *SegmentRoutingIfStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingIfStats) ProtoMessage() {} +func (*SegmentRoutingIfStats) Descriptor() ([]byte, []int) { + return fileDescriptor_d06dd05b32f9304e, []int{2} +} +func (m *SegmentRoutingIfStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingIfStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingIfStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingIfStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingIfStats.Merge(m, src) +} +func (m *SegmentRoutingIfStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingIfStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingIfStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingIfStats proto.InternalMessageInfo + +func (m *SegmentRoutingIfStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingIfStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingIfStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingIfStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrStatsPerIfEgressExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrStatsPerIfEgress)(nil), + Field: 17, + Name: "jnpr_sr_stats_per_if_egress_ext", + Tag: "bytes,17,opt,name=jnpr_sr_stats_per_if_egress_ext", + Filename: "sr_stats_per_if_egress.proto", +} + +func init() { + proto.RegisterType((*SrStatsPerIfEgress)(nil), "SrStatsPerIfEgress") + proto.RegisterType((*SegmentRoutingInterfaceRecord)(nil), "SegmentRoutingInterfaceRecord") + proto.RegisterType((*SegmentRoutingIfStats)(nil), "SegmentRoutingIfStats") + proto.RegisterExtension(E_JnprSrStatsPerIfEgressExt) +} + +func init() { proto.RegisterFile("sr_stats_per_if_egress.proto", fileDescriptor_d06dd05b32f9304e) } + +var fileDescriptor_d06dd05b32f9304e = []byte{ + // 462 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcd, 0x6e, 0x13, 0x31, + 0x14, 0x85, 0xe5, 0x34, 0xa1, 0xad, 0x13, 0x2a, 0xe1, 0x0a, 0x08, 0x7f, 0xe9, 0x28, 0x0b, 0x34, + 0x12, 0xca, 0x8c, 0xd4, 0x1d, 0xb0, 0x81, 0x8a, 0x2e, 0xca, 0xa2, 0x42, 0xce, 0xae, 0x1b, 0xe3, + 0x4c, 0xef, 0x4c, 0x3c, 0xe9, 0xd8, 0x96, 0x7d, 0x03, 0xed, 0x96, 0x07, 0xe0, 0x1d, 0x78, 0x1b, + 0x96, 0x3c, 0x02, 0xca, 0x93, 0xa0, 0xb1, 0x03, 0x8d, 0x68, 0xd5, 0xa5, 0xcf, 0xfd, 0xce, 0x99, + 0xb9, 0x47, 0x97, 0x3e, 0xf7, 0x4e, 0x78, 0x94, 0xe8, 0x85, 0x05, 0x27, 0x54, 0x29, 0xa0, 0x72, + 0xe0, 0x7d, 0x66, 0x9d, 0x41, 0xf3, 0x74, 0x1f, 0xe1, 0x02, 0x1a, 0x40, 0x77, 0x25, 0xd0, 0xd8, + 0x28, 0x8e, 0xcf, 0x28, 0x9b, 0xba, 0x69, 0xeb, 0xf9, 0x04, 0xee, 0xa4, 0x3c, 0x0e, 0x06, 0xf6, + 0x81, 0xee, 0xad, 0x13, 0x1c, 0x14, 0xc6, 0x9d, 0xfb, 0x21, 0x49, 0xb6, 0xd2, 0xfe, 0xe1, 0x28, + 0x9b, 0x42, 0xd5, 0x80, 0x46, 0x6e, 0x96, 0xa8, 0x74, 0x75, 0xa2, 0x11, 0x5c, 0x29, 0x0b, 0xe0, + 0x01, 0xe3, 0x03, 0xdb, 0x86, 0xc4, 0x87, 0x1f, 0x7f, 0xef, 0xd0, 0x17, 0x77, 0xf2, 0x6c, 0x44, + 0xb7, 0x55, 0x29, 0xb4, 0x6c, 0x60, 0x48, 0x92, 0x4e, 0xba, 0x7b, 0xd4, 0xfb, 0xf6, 0xae, 0xb3, + 0x43, 0xf8, 0x3d, 0x55, 0x9e, 0xca, 0x06, 0xd8, 0x2b, 0xba, 0x67, 0xa5, 0x03, 0x8d, 0x42, 0x42, + 0xc4, 0x3a, 0x09, 0xb9, 0xc6, 0x06, 0x71, 0xf8, 0x1e, 0x02, 0x9c, 0xd2, 0x41, 0x61, 0x96, 0xed, + 0x17, 0x22, 0xba, 0xb5, 0x89, 0xf6, 0xd7, 0xa3, 0x40, 0xbe, 0xa5, 0xf7, 0x95, 0x0e, 0x9b, 0xc6, + 0xba, 0x86, 0xdd, 0x84, 0xa4, 0xfd, 0xc3, 0x47, 0xff, 0x6f, 0x57, 0x86, 0x62, 0xf8, 0x60, 0x0d, + 0x87, 0x17, 0x7b, 0x4d, 0x07, 0xb0, 0xe9, 0xed, 0xdd, 0xe9, 0xed, 0xc3, 0xb5, 0x75, 0xfc, 0x83, + 0xd0, 0x87, 0xb7, 0x62, 0xec, 0x80, 0x6e, 0x5b, 0x59, 0x2c, 0x00, 0xdb, 0xa6, 0x49, 0xda, 0x0d, + 0xbf, 0x3d, 0x24, 0xfc, 0xaf, 0xca, 0x9e, 0xd1, 0xde, 0xec, 0x0a, 0xc1, 0x87, 0x02, 0xfe, 0x8d, + 0xa3, 0xc6, 0x5e, 0xd2, 0x7e, 0xe4, 0x84, 0x93, 0x18, 0x17, 0x8f, 0x48, 0x42, 0x38, 0x8d, 0x13, + 0x2e, 0x11, 0xd8, 0x98, 0xee, 0xb6, 0x86, 0x48, 0x75, 0x37, 0xa9, 0x9d, 0x56, 0x6f, 0x99, 0x37, + 0x96, 0x1e, 0xd4, 0xda, 0x3a, 0x71, 0xfb, 0x29, 0x09, 0xb8, 0x44, 0xf6, 0x38, 0xfb, 0xb8, 0xd4, + 0xca, 0x82, 0x3b, 0x05, 0xfc, 0x6a, 0xdc, 0xc2, 0x4f, 0x41, 0x7b, 0xe3, 0xfc, 0xf0, 0x41, 0xa8, + 0x62, 0x3f, 0xbb, 0x79, 0x51, 0xfc, 0x49, 0x1b, 0x7a, 0x53, 0x3f, 0xbe, 0xc4, 0xa3, 0xcf, 0x3f, + 0x57, 0x23, 0xf2, 0x6b, 0x35, 0x22, 0xbf, 0x57, 0x23, 0x72, 0xc6, 0x2b, 0x85, 0x59, 0x1d, 0xf3, + 0x33, 0x0d, 0x98, 0xab, 0x02, 0x66, 0xe0, 0xaa, 0x7c, 0x0e, 0xf2, 0x02, 0xe7, 0x33, 0x83, 0x13, + 0xa5, 0x2b, 0xf0, 0x38, 0xa9, 0x51, 0x4d, 0xb4, 0x44, 0xf5, 0x05, 0x72, 0xbb, 0xa8, 0xf2, 0x1a, + 0x55, 0x2e, 0xcf, 0xa5, 0x45, 0x70, 0x3e, 0x17, 0xf5, 0x52, 0x1b, 0x9f, 0xfb, 0x62, 0x0e, 0x8d, + 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, 0x26, 0x58, 0xe2, 0x20, 0x18, 0x03, 0x00, 0x00, +} + +func (m *SrStatsPerIfEgress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrStatsPerIfEgress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrStatsPerIfEgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PerIfRecords) > 0 { + for iNdEx := len(m.PerIfRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PerIfRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingInterfaceRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingInterfaceRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingInterfaceRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x12 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingIfStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingIfStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingIfStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrStatsPerIfEgress(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrStatsPerIfEgress(dAtA []byte, offset int, v uint64) int { + offset -= sovSrStatsPerIfEgress(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrStatsPerIfEgress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PerIfRecords) > 0 { + for _, e := range m.PerIfRecords { + l = e.Size() + n += 1 + l + sovSrStatsPerIfEgress(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingInterfaceRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovSrStatsPerIfEgress(uint64(l)) + } + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 1 + l + sovSrStatsPerIfEgress(uint64(l)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrStatsPerIfEgress(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovSrStatsPerIfEgress(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovSrStatsPerIfEgress(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingIfStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrStatsPerIfEgress(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrStatsPerIfEgress(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrStatsPerIfEgress(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrStatsPerIfEgress(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrStatsPerIfEgress(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrStatsPerIfEgress(x uint64) (n int) { + return sovSrStatsPerIfEgress(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrStatsPerIfEgress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrStatsPerIfEgress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrStatsPerIfEgress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerIfRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PerIfRecords = append(m.PerIfRecords, &SegmentRoutingInterfaceRecord{}) + if err := m.PerIfRecords[len(m.PerIfRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerIfEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingInterfaceRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingInterfaceRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingInterfaceRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &SegmentRoutingIfStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &SegmentRoutingIfStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerIfEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingIfStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingIfStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingIfStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerIfEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerIfEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrStatsPerIfEgress(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerIfEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrStatsPerIfEgress + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrStatsPerIfEgress + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrStatsPerIfEgress + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrStatsPerIfEgress = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrStatsPerIfEgress = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrStatsPerIfEgress = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_stats_per_if_egress.proto b/schema/sr_stats_per_if_egress.proto new file mode 100755 index 0000000..1e6ea64 --- /dev/null +++ b/schema/sr_stats_per_if_egress.proto @@ -0,0 +1,48 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 16 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrStatsPerIfEgress jnpr_sr_stats_per_if_egress_ext = 17; +} + +// +// Top-level message +// +message SrStatsPerIfEgress { + // List of SR stats per IF egress records + repeated SegmentRoutingInterfaceRecord per_if_records = 1; +} + +// +// SR statistics record +// +message SegmentRoutingInterfaceRecord { + // Interface name, e.g., xe-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Name of parent for AE interface, if applicable + optional string parent_ae_name = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Traffic statistics + optional SegmentRoutingIfStats ingress_stats = 4; + optional SegmentRoutingIfStats egress_stats = 5; +} + +message SegmentRoutingIfStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters. + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/sr_stats_per_if_ingress.pb.go b/schema/sr_stats_per_if_ingress.pb.go new file mode 100644 index 0000000..d54bcce --- /dev/null +++ b/schema/sr_stats_per_if_ingress.pb.go @@ -0,0 +1,1077 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_stats_per_if_ingress.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrStatsPerIfIngress struct { + // List of SR stats per IF ingress records + PerIfRecords []*SegmentRoutingIngIfRecord `protobuf:"bytes,1,rep,name=per_if_records,json=perIfRecords" json:"per_if_records,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrStatsPerIfIngress) Reset() { *m = SrStatsPerIfIngress{} } +func (m *SrStatsPerIfIngress) String() string { return proto.CompactTextString(m) } +func (*SrStatsPerIfIngress) ProtoMessage() {} +func (*SrStatsPerIfIngress) Descriptor() ([]byte, []int) { + return fileDescriptor_8f1873ec2738f097, []int{0} +} +func (m *SrStatsPerIfIngress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrStatsPerIfIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrStatsPerIfIngress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrStatsPerIfIngress) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrStatsPerIfIngress.Merge(m, src) +} +func (m *SrStatsPerIfIngress) XXX_Size() int { + return m.Size() +} +func (m *SrStatsPerIfIngress) XXX_DiscardUnknown() { + xxx_messageInfo_SrStatsPerIfIngress.DiscardUnknown(m) +} + +var xxx_messageInfo_SrStatsPerIfIngress proto.InternalMessageInfo + +func (m *SrStatsPerIfIngress) GetPerIfRecords() []*SegmentRoutingIngIfRecord { + if m != nil { + return m.PerIfRecords + } + return nil +} + +// +// SR statistics record +// +type SegmentRoutingIngIfRecord struct { + // Interface name, e.g., xe-0/0/0 + IfName *string `protobuf:"bytes,1,req,name=if_name,json=ifName" json:"if_name,omitempty"` + // Name of parent for AE interface, if applicable + ParentAeName *string `protobuf:"bytes,2,opt,name=parent_ae_name,json=parentAeName" json:"parent_ae_name,omitempty"` + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Traffic statistics + IngressStats *SegmentRoutingIngIfStats `protobuf:"bytes,4,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + EgressStats *SegmentRoutingIngIfStats `protobuf:"bytes,5,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingIngIfRecord) Reset() { *m = SegmentRoutingIngIfRecord{} } +func (m *SegmentRoutingIngIfRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingIngIfRecord) ProtoMessage() {} +func (*SegmentRoutingIngIfRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_8f1873ec2738f097, []int{1} +} +func (m *SegmentRoutingIngIfRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingIngIfRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingIngIfRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingIngIfRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingIngIfRecord.Merge(m, src) +} +func (m *SegmentRoutingIngIfRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingIngIfRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingIngIfRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingIngIfRecord proto.InternalMessageInfo + +func (m *SegmentRoutingIngIfRecord) GetIfName() string { + if m != nil && m.IfName != nil { + return *m.IfName + } + return "" +} + +func (m *SegmentRoutingIngIfRecord) GetParentAeName() string { + if m != nil && m.ParentAeName != nil { + return *m.ParentAeName + } + return "" +} + +func (m *SegmentRoutingIngIfRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingIngIfRecord) GetIngressStats() *SegmentRoutingIngIfStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *SegmentRoutingIngIfRecord) GetEgressStats() *SegmentRoutingIngIfStats { + if m != nil { + return m.EgressStats + } + return nil +} + +type SegmentRoutingIngIfStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingIngIfStats) Reset() { *m = SegmentRoutingIngIfStats{} } +func (m *SegmentRoutingIngIfStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingIngIfStats) ProtoMessage() {} +func (*SegmentRoutingIngIfStats) Descriptor() ([]byte, []int) { + return fileDescriptor_8f1873ec2738f097, []int{2} +} +func (m *SegmentRoutingIngIfStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingIngIfStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingIngIfStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingIngIfStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingIngIfStats.Merge(m, src) +} +func (m *SegmentRoutingIngIfStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingIngIfStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingIngIfStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingIngIfStats proto.InternalMessageInfo + +func (m *SegmentRoutingIngIfStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingIngIfStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingIngIfStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingIngIfStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrStatsPerIfIngressExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrStatsPerIfIngress)(nil), + Field: 19, + Name: "jnpr_sr_stats_per_if_ingress_ext", + Tag: "bytes,19,opt,name=jnpr_sr_stats_per_if_ingress_ext", + Filename: "sr_stats_per_if_ingress.proto", +} + +func init() { + proto.RegisterType((*SrStatsPerIfIngress)(nil), "SrStatsPerIfIngress") + proto.RegisterType((*SegmentRoutingIngIfRecord)(nil), "SegmentRoutingIngIfRecord") + proto.RegisterType((*SegmentRoutingIngIfStats)(nil), "SegmentRoutingIngIfStats") + proto.RegisterExtension(E_JnprSrStatsPerIfIngressExt) +} + +func init() { proto.RegisterFile("sr_stats_per_if_ingress.proto", fileDescriptor_8f1873ec2738f097) } + +var fileDescriptor_8f1873ec2738f097 = []byte{ + // 461 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x6e, 0xd3, 0x4c, + 0x14, 0x85, 0x35, 0x69, 0xf2, 0xb7, 0x1d, 0xfb, 0xef, 0xc2, 0x41, 0xc2, 0x0d, 0x22, 0x58, 0x59, + 0x20, 0x4b, 0x28, 0xb6, 0xd4, 0x25, 0x42, 0xa8, 0x54, 0x62, 0x11, 0x16, 0x15, 0x9a, 0x2c, 0x90, + 0xd8, 0x0c, 0x13, 0xf7, 0xda, 0x19, 0xa7, 0x9e, 0x19, 0xcd, 0xdc, 0x40, 0xbb, 0xe5, 0x09, 0x78, + 0x08, 0x1e, 0x86, 0x25, 0x8f, 0x80, 0xf2, 0x24, 0xc8, 0x9e, 0x40, 0xb3, 0x48, 0xc4, 0xf2, 0x9e, + 0xf3, 0x9d, 0x6b, 0xcf, 0xd1, 0xa5, 0x4f, 0x9d, 0xe5, 0x0e, 0x05, 0x3a, 0x6e, 0xc0, 0x72, 0x59, + 0x72, 0xa9, 0x2a, 0x0b, 0xce, 0x65, 0xc6, 0x6a, 0xd4, 0xa3, 0x21, 0xc2, 0x2d, 0x34, 0x80, 0xf6, + 0x9e, 0xa3, 0x36, 0x5e, 0x9c, 0x7c, 0xa0, 0xc3, 0xb9, 0x9d, 0xb7, 0xa1, 0xf7, 0x60, 0x67, 0xe5, + 0xcc, 0x27, 0xa2, 0x4b, 0x7a, 0xb6, 0xdd, 0x61, 0xa1, 0xd0, 0xf6, 0xc6, 0xc5, 0x24, 0x39, 0x4a, + 0x83, 0x8b, 0x51, 0x36, 0x87, 0xaa, 0x01, 0x85, 0x4c, 0xaf, 0x51, 0xaa, 0x6a, 0xa6, 0xaa, 0x59, + 0xc9, 0x3a, 0x84, 0x85, 0xa6, 0xdd, 0xe0, 0x07, 0x37, 0xf9, 0xd6, 0xa3, 0xe7, 0x07, 0xd9, 0x68, + 0x4c, 0x8f, 0x65, 0xc9, 0x95, 0x68, 0x20, 0x26, 0x49, 0x2f, 0x3d, 0xbd, 0x1a, 0x7c, 0xbd, 0xec, + 0x9d, 0x10, 0xf6, 0x9f, 0x2c, 0xaf, 0x45, 0x03, 0xd1, 0x0b, 0x7a, 0x66, 0x84, 0x05, 0x85, 0x5c, + 0x80, 0xc7, 0x7a, 0x09, 0x79, 0xc0, 0x42, 0x6f, 0xbe, 0x81, 0x0e, 0x4e, 0x69, 0x58, 0xe8, 0xb5, + 0x42, 0xb0, 0x1e, 0x3d, 0xda, 0x45, 0x83, 0xad, 0xd5, 0x91, 0xaf, 0xe9, 0xff, 0xdb, 0x4e, 0x7c, + 0x51, 0x71, 0x3f, 0x21, 0x69, 0x70, 0x71, 0xbe, 0xef, 0x55, 0x5d, 0x29, 0x2c, 0xdc, 0xf2, 0xdd, + 0x14, 0xbd, 0xa2, 0x21, 0xec, 0xc6, 0x07, 0xff, 0x8a, 0x07, 0xf0, 0x90, 0x9e, 0x7c, 0x27, 0x34, + 0x3e, 0x44, 0x46, 0xcf, 0xe8, 0xb1, 0x11, 0xc5, 0x0a, 0xb0, 0xad, 0x9a, 0xa4, 0xfd, 0xee, 0xff, + 0x63, 0xc2, 0xfe, 0xa8, 0xd1, 0x13, 0x3a, 0x58, 0xdc, 0x23, 0xb8, 0xae, 0x89, 0xbf, 0xb6, 0xd7, + 0xa2, 0xe7, 0x34, 0xf0, 0x1c, 0xb7, 0x02, 0x7d, 0x03, 0x1e, 0x49, 0x08, 0xa3, 0xde, 0x61, 0x02, + 0x21, 0x9a, 0xd0, 0xd3, 0x36, 0xe0, 0xa9, 0xfe, 0x2e, 0x75, 0xd2, 0xea, 0x2d, 0xf3, 0xd2, 0xd1, + 0xa4, 0x56, 0xc6, 0xf2, 0x03, 0xd7, 0xc4, 0xe1, 0x0e, 0xa3, 0xc7, 0xd9, 0xbb, 0xb5, 0x92, 0x06, + 0xec, 0x35, 0xe0, 0x17, 0x6d, 0x57, 0x6e, 0x0e, 0xca, 0x69, 0xeb, 0xe2, 0x61, 0xd7, 0xc8, 0xa3, + 0x6c, 0xcf, 0x51, 0xb1, 0x51, 0xbb, 0x76, 0x8f, 0xf1, 0xf6, 0x0e, 0xaf, 0x3e, 0xfd, 0xd8, 0x8c, + 0xc9, 0xcf, 0xcd, 0x98, 0xfc, 0xda, 0x8c, 0xc9, 0x47, 0x56, 0x49, 0xcc, 0x6a, 0xff, 0x85, 0x4c, + 0x01, 0xe6, 0xb2, 0x80, 0x05, 0xd8, 0x2a, 0x5f, 0x82, 0xb8, 0xc5, 0xe5, 0x42, 0xe3, 0x54, 0xaa, + 0x0a, 0x1c, 0x4e, 0x6b, 0x94, 0x53, 0x25, 0x50, 0x7e, 0x86, 0xdc, 0xac, 0xaa, 0xbc, 0x46, 0x99, + 0x8b, 0x1b, 0x61, 0x10, 0xac, 0xcb, 0x79, 0xbd, 0x56, 0xda, 0xe5, 0xae, 0x58, 0x42, 0x23, 0x7e, + 0x07, 0x00, 0x00, 0xff, 0xff, 0x86, 0x91, 0x1e, 0xb4, 0x1e, 0x03, 0x00, 0x00, +} + +func (m *SrStatsPerIfIngress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrStatsPerIfIngress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrStatsPerIfIngress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.PerIfRecords) > 0 { + for iNdEx := len(m.PerIfRecords) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PerIfRecords[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingIngIfRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingIngIfRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingIngIfRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.ParentAeName != nil { + i -= len(*m.ParentAeName) + copy(dAtA[i:], *m.ParentAeName) + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(len(*m.ParentAeName))) + i-- + dAtA[i] = 0x12 + } + if m.IfName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } else { + i -= len(*m.IfName) + copy(dAtA[i:], *m.IfName) + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(len(*m.IfName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingIngIfStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingIngIfStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingIngIfStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrStatsPerIfIngress(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrStatsPerIfIngress(dAtA []byte, offset int, v uint64) int { + offset -= sovSrStatsPerIfIngress(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrStatsPerIfIngress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PerIfRecords) > 0 { + for _, e := range m.PerIfRecords { + l = e.Size() + n += 1 + l + sovSrStatsPerIfIngress(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingIngIfRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IfName != nil { + l = len(*m.IfName) + n += 1 + l + sovSrStatsPerIfIngress(uint64(l)) + } + if m.ParentAeName != nil { + l = len(*m.ParentAeName) + n += 1 + l + sovSrStatsPerIfIngress(uint64(l)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrStatsPerIfIngress(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovSrStatsPerIfIngress(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovSrStatsPerIfIngress(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingIngIfStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrStatsPerIfIngress(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrStatsPerIfIngress(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrStatsPerIfIngress(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrStatsPerIfIngress(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrStatsPerIfIngress(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrStatsPerIfIngress(x uint64) (n int) { + return sovSrStatsPerIfIngress(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrStatsPerIfIngress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrStatsPerIfIngress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrStatsPerIfIngress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerIfRecords", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PerIfRecords = append(m.PerIfRecords, &SegmentRoutingIngIfRecord{}) + if err := m.PerIfRecords[len(m.PerIfRecords)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerIfIngress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingIngIfRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingIngIfRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingIngIfRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IfName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.IfName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParentAeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ParentAeName = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &SegmentRoutingIngIfStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &SegmentRoutingIngIfStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerIfIngress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("if_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingIngIfStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingIngIfStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingIngIfStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerIfIngress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerIfIngress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrStatsPerIfIngress(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerIfIngress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrStatsPerIfIngress + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrStatsPerIfIngress + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrStatsPerIfIngress + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrStatsPerIfIngress = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrStatsPerIfIngress = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrStatsPerIfIngress = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_stats_per_if_ingress.proto b/schema/sr_stats_per_if_ingress.proto new file mode 100755 index 0000000..17a9b3e --- /dev/null +++ b/schema/sr_stats_per_if_ingress.proto @@ -0,0 +1,48 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 19 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrStatsPerIfIngress jnpr_sr_stats_per_if_ingress_ext = 19; +} + +// +// Top-level message +// +message SrStatsPerIfIngress { + // List of SR stats per IF ingress records + repeated SegmentRoutingIngIfRecord per_if_records = 1; +} + +// +// SR statistics record +// +message SegmentRoutingIngIfRecord { + // Interface name, e.g., xe-0/0/0 + required string if_name = 1 [(telemetry_options).is_key = true]; + + // Name of parent for AE interface, if applicable + optional string parent_ae_name = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an interface has multiple counters. + // for some scenarios, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Traffic statistics + optional SegmentRoutingIngIfStats ingress_stats = 4; + optional SegmentRoutingIngIfStats egress_stats = 5; +} + +message SegmentRoutingIngIfStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters. + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/sr_stats_per_sid.pb.go b/schema/sr_stats_per_sid.pb.go new file mode 100644 index 0000000..01593d5 --- /dev/null +++ b/schema/sr_stats_per_sid.pb.go @@ -0,0 +1,1062 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_stats_per_sid.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrStatsPerSid struct { + // List of SR stats per SID records (ingress only as of now) + SidStats []*SegmentRoutingRecord `protobuf:"bytes,1,rep,name=sid_stats,json=sidStats" json:"sid_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrStatsPerSid) Reset() { *m = SrStatsPerSid{} } +func (m *SrStatsPerSid) String() string { return proto.CompactTextString(m) } +func (*SrStatsPerSid) ProtoMessage() {} +func (*SrStatsPerSid) Descriptor() ([]byte, []int) { + return fileDescriptor_1859f114623bccc6, []int{0} +} +func (m *SrStatsPerSid) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrStatsPerSid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrStatsPerSid.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrStatsPerSid) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrStatsPerSid.Merge(m, src) +} +func (m *SrStatsPerSid) XXX_Size() int { + return m.Size() +} +func (m *SrStatsPerSid) XXX_DiscardUnknown() { + xxx_messageInfo_SrStatsPerSid.DiscardUnknown(m) +} + +var xxx_messageInfo_SrStatsPerSid proto.InternalMessageInfo + +func (m *SrStatsPerSid) GetSidStats() []*SegmentRoutingRecord { + if m != nil { + return m.SidStats + } + return nil +} + +// +// SR statistics record +// +type SegmentRoutingRecord struct { + // Name of the SID + SidIdentifier *string `protobuf:"bytes,1,req,name=sid_identifier,json=sidIdentifier" json:"sid_identifier,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Ingress Traffic statistics + IngressStats *SegmentRoutingStats `protobuf:"bytes,4,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + // Egress statistics + EgressStats *SegmentRoutingStats `protobuf:"bytes,5,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingRecord) Reset() { *m = SegmentRoutingRecord{} } +func (m *SegmentRoutingRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingRecord) ProtoMessage() {} +func (*SegmentRoutingRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_1859f114623bccc6, []int{1} +} +func (m *SegmentRoutingRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingRecord.Merge(m, src) +} +func (m *SegmentRoutingRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingRecord proto.InternalMessageInfo + +func (m *SegmentRoutingRecord) GetSidIdentifier() string { + if m != nil && m.SidIdentifier != nil { + return *m.SidIdentifier + } + return "" +} + +func (m *SegmentRoutingRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *SegmentRoutingRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingRecord) GetIngressStats() *SegmentRoutingStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *SegmentRoutingRecord) GetEgressStats() *SegmentRoutingStats { + if m != nil { + return m.EgressStats + } + return nil +} + +type SegmentRoutingStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingStats) Reset() { *m = SegmentRoutingStats{} } +func (m *SegmentRoutingStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingStats) ProtoMessage() {} +func (*SegmentRoutingStats) Descriptor() ([]byte, []int) { + return fileDescriptor_1859f114623bccc6, []int{2} +} +func (m *SegmentRoutingStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingStats.Merge(m, src) +} +func (m *SegmentRoutingStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingStats proto.InternalMessageInfo + +func (m *SegmentRoutingStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrStatsPerSidExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrStatsPerSid)(nil), + Field: 16, + Name: "jnpr_sr_stats_per_sid_ext", + Tag: "bytes,16,opt,name=jnpr_sr_stats_per_sid_ext", + Filename: "sr_stats_per_sid.proto", +} + +func init() { + proto.RegisterType((*SrStatsPerSid)(nil), "SrStatsPerSid") + proto.RegisterType((*SegmentRoutingRecord)(nil), "SegmentRoutingRecord") + proto.RegisterType((*SegmentRoutingStats)(nil), "SegmentRoutingStats") + proto.RegisterExtension(E_JnprSrStatsPerSidExt) +} + +func init() { proto.RegisterFile("sr_stats_per_sid.proto", fileDescriptor_1859f114623bccc6) } + +var fileDescriptor_1859f114623bccc6 = []byte{ + // 458 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb5, 0x69, 0x22, 0x92, 0x75, 0x52, 0xa1, 0x4d, 0x00, 0x03, 0x52, 0xb0, 0x72, 0x40, + 0x3e, 0x10, 0x5b, 0xca, 0x01, 0x04, 0x27, 0x54, 0xc4, 0x01, 0x0e, 0x15, 0x5a, 0xdf, 0xb8, 0xb8, + 0x1b, 0x7b, 0x70, 0xd6, 0xa9, 0x77, 0xad, 0xdd, 0x09, 0xb4, 0x57, 0x1e, 0x83, 0x0b, 0xaf, 0xc3, + 0x91, 0x47, 0x40, 0x79, 0x12, 0x64, 0x6f, 0xd2, 0xa6, 0x55, 0xd5, 0xa3, 0xff, 0xf9, 0xbe, 0xf1, + 0xce, 0x68, 0xe8, 0x63, 0x6b, 0x52, 0x8b, 0x02, 0x6d, 0x5a, 0x83, 0x49, 0xad, 0xcc, 0xa3, 0xda, + 0x68, 0xd4, 0xcf, 0xc6, 0x08, 0xe7, 0x50, 0x01, 0x9a, 0xcb, 0x14, 0x75, 0xed, 0xc2, 0xd9, 0x07, + 0x3a, 0x4a, 0x4c, 0xd2, 0xd0, 0x5f, 0xc0, 0x24, 0x32, 0x67, 0x0b, 0x3a, 0xb0, 0x32, 0x77, 0x0d, + 0x7c, 0x12, 0x1c, 0x85, 0xde, 0xe2, 0x51, 0x94, 0x40, 0x51, 0x81, 0x42, 0xae, 0x37, 0x28, 0x55, + 0xc1, 0x21, 0xd3, 0x26, 0xe7, 0x7d, 0x2b, 0xf3, 0xd6, 0x9c, 0xfd, 0xea, 0xd0, 0xc9, 0x5d, 0x08, + 0x7b, 0x45, 0x8f, 0x9b, 0x66, 0x32, 0x07, 0x85, 0xf2, 0x9b, 0x04, 0xe3, 0x93, 0xa0, 0x13, 0x0e, + 0x4e, 0x7a, 0x3f, 0xdf, 0x77, 0xfa, 0x84, 0x8f, 0xac, 0xcc, 0x3f, 0x5d, 0xd5, 0xd8, 0x6b, 0x3a, + 0x96, 0xca, 0xa2, 0x50, 0x19, 0x1c, 0x2a, 0x9d, 0x80, 0x84, 0xa3, 0xbd, 0xc2, 0xf6, 0xc4, 0x81, + 0x17, 0xd2, 0x61, 0xa6, 0x37, 0x0a, 0xc1, 0xa4, 0x4a, 0x54, 0xe0, 0x1f, 0x05, 0xe4, 0xfa, 0x1f, + 0xde, 0xae, 0x74, 0x2a, 0x2a, 0x60, 0x6f, 0xe9, 0x48, 0xaa, 0xc2, 0x80, 0xb5, 0xbb, 0x01, 0xbb, + 0x01, 0x09, 0xbd, 0xc5, 0xe4, 0xd6, 0x80, 0xed, 0x54, 0x7c, 0xb8, 0x43, 0xdb, 0x2f, 0xf6, 0x86, + 0x0e, 0xe1, 0xd0, 0xec, 0xdd, 0x63, 0x7a, 0x70, 0x2d, 0xce, 0x7e, 0x13, 0x3a, 0xbe, 0x03, 0x62, + 0x2f, 0xe8, 0x83, 0x5a, 0x64, 0x6b, 0x68, 0xd7, 0x4c, 0xc2, 0x6e, 0xfb, 0x60, 0x9f, 0xf0, 0x7d, + 0xca, 0x9e, 0xd3, 0xde, 0xf2, 0x12, 0xc1, 0xb6, 0x0b, 0xb8, 0x2a, 0xbb, 0x8c, 0xbd, 0xa4, 0x9e, + 0xe3, 0x52, 0x23, 0xd0, 0x8d, 0xec, 0x90, 0x80, 0x70, 0xea, 0x2a, 0x5c, 0x20, 0xb0, 0x19, 0x1d, + 0x34, 0x82, 0xa3, 0xba, 0x87, 0x54, 0xbf, 0xc9, 0x1b, 0xe6, 0xdd, 0x19, 0x7d, 0x5a, 0xaa, 0xda, + 0xa4, 0xb7, 0xef, 0x26, 0x85, 0x0b, 0x64, 0x4f, 0xa2, 0xcf, 0x1b, 0x25, 0x6b, 0x30, 0xa7, 0x80, + 0x3f, 0xb4, 0x59, 0xdb, 0x04, 0x94, 0xd5, 0xc6, 0xfa, 0x0f, 0xdb, 0x05, 0x1c, 0x47, 0x37, 0xce, + 0x87, 0x4f, 0x9a, 0x4e, 0x37, 0xa2, 0x8f, 0x17, 0x78, 0x72, 0xf6, 0x67, 0x3b, 0x25, 0x7f, 0xb7, + 0x53, 0xf2, 0x6f, 0x3b, 0x25, 0x5f, 0x79, 0x21, 0x31, 0x2a, 0x5d, 0xd7, 0x48, 0x01, 0xc6, 0x32, + 0x83, 0x25, 0x98, 0x22, 0x5e, 0x81, 0x38, 0xc7, 0xd5, 0x52, 0xe3, 0x5c, 0xaa, 0x02, 0x2c, 0xce, + 0x4b, 0x94, 0x73, 0x25, 0x50, 0x7e, 0x87, 0xb8, 0x5e, 0x17, 0x71, 0x89, 0x32, 0x16, 0xb9, 0xa8, + 0x11, 0x8c, 0x8d, 0xd3, 0x72, 0xa3, 0xb4, 0x8d, 0x6d, 0xb6, 0x82, 0x4a, 0xfc, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x45, 0x84, 0xd3, 0xf1, 0xf5, 0x02, 0x00, 0x00, +} + +func (m *SrStatsPerSid) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrStatsPerSid) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrStatsPerSid) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SidStats) > 0 { + for iNdEx := len(m.SidStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SidStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.SidIdentifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("sid_identifier") + } else { + i -= len(*m.SidIdentifier) + copy(dAtA[i:], *m.SidIdentifier) + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(len(*m.SidIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrStatsPerSid(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrStatsPerSid(dAtA []byte, offset int, v uint64) int { + offset -= sovSrStatsPerSid(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrStatsPerSid) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SidStats) > 0 { + for _, e := range m.SidStats { + l = e.Size() + n += 1 + l + sovSrStatsPerSid(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SidIdentifier != nil { + l = len(*m.SidIdentifier) + n += 1 + l + sovSrStatsPerSid(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovSrStatsPerSid(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrStatsPerSid(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovSrStatsPerSid(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovSrStatsPerSid(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrStatsPerSid(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrStatsPerSid(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrStatsPerSid(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrStatsPerSid(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrStatsPerSid(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrStatsPerSid(x uint64) (n int) { + return sovSrStatsPerSid(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrStatsPerSid) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrStatsPerSid: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrStatsPerSid: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SidStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerSid + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SidStats = append(m.SidStats, &SegmentRoutingRecord{}) + if err := m.SidStats[len(m.SidStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerSid(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SidIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerSid + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SidIdentifier = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerSid + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerSid + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &SegmentRoutingStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerSid + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &SegmentRoutingStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerSid(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("sid_identifier") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerSid(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerSid + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrStatsPerSid(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerSid + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrStatsPerSid + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrStatsPerSid + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrStatsPerSid + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrStatsPerSid = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrStatsPerSid = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrStatsPerSid = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_stats_per_sid.proto b/schema/sr_stats_per_sid.proto new file mode 100755 index 0000000..e0a3891 --- /dev/null +++ b/schema/sr_stats_per_sid.proto @@ -0,0 +1,50 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 16 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrStatsPerSid jnpr_sr_stats_per_sid_ext = 16; +} + +// +// Top-level message +// +message SrStatsPerSid { + // List of SR stats per SID records (ingress only as of now) + repeated SegmentRoutingRecord sid_stats = 1; +} + +// +// SR statistics record +// +message SegmentRoutingRecord { + // Name of the SID + required string sid_identifier = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Ingress Traffic statistics + optional SegmentRoutingStats ingress_stats = 4; + + // Egress statistics + optional SegmentRoutingStats egress_stats = 5; +} + +message SegmentRoutingStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters. + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/sr_stats_per_sid_egress.pb.go b/schema/sr_stats_per_sid_egress.pb.go new file mode 100644 index 0000000..4f62d5f --- /dev/null +++ b/schema/sr_stats_per_sid_egress.pb.go @@ -0,0 +1,1069 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_stats_per_sid_egress.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrStatsPerSidEgress struct { + // List of SR stats per SID records + SidStats []*SegmentRoutingEgressRecord `protobuf:"bytes,1,rep,name=sid_stats,json=sidStats" json:"sid_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrStatsPerSidEgress) Reset() { *m = SrStatsPerSidEgress{} } +func (m *SrStatsPerSidEgress) String() string { return proto.CompactTextString(m) } +func (*SrStatsPerSidEgress) ProtoMessage() {} +func (*SrStatsPerSidEgress) Descriptor() ([]byte, []int) { + return fileDescriptor_0421fb5d08fd5d36, []int{0} +} +func (m *SrStatsPerSidEgress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrStatsPerSidEgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrStatsPerSidEgress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrStatsPerSidEgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrStatsPerSidEgress.Merge(m, src) +} +func (m *SrStatsPerSidEgress) XXX_Size() int { + return m.Size() +} +func (m *SrStatsPerSidEgress) XXX_DiscardUnknown() { + xxx_messageInfo_SrStatsPerSidEgress.DiscardUnknown(m) +} + +var xxx_messageInfo_SrStatsPerSidEgress proto.InternalMessageInfo + +func (m *SrStatsPerSidEgress) GetSidStats() []*SegmentRoutingEgressRecord { + if m != nil { + return m.SidStats + } + return nil +} + +// +// SR statistics record +// +type SegmentRoutingEgressRecord struct { + // Name of the SID + SidIdentifier *string `protobuf:"bytes,1,req,name=sid_identifier,json=sidIdentifier" json:"sid_identifier,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,req,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Ingress Traffic statistics + IngressStats *SegmentRoutingEgressStats `protobuf:"bytes,4,opt,name=ingress_stats,json=ingressStats" json:"ingress_stats,omitempty"` + // Egress statistics + EgressStats *SegmentRoutingEgressStats `protobuf:"bytes,5,opt,name=egress_stats,json=egressStats" json:"egress_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingEgressRecord) Reset() { *m = SegmentRoutingEgressRecord{} } +func (m *SegmentRoutingEgressRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingEgressRecord) ProtoMessage() {} +func (*SegmentRoutingEgressRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_0421fb5d08fd5d36, []int{1} +} +func (m *SegmentRoutingEgressRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingEgressRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingEgressRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingEgressRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingEgressRecord.Merge(m, src) +} +func (m *SegmentRoutingEgressRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingEgressRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingEgressRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingEgressRecord proto.InternalMessageInfo + +func (m *SegmentRoutingEgressRecord) GetSidIdentifier() string { + if m != nil && m.SidIdentifier != nil { + return *m.SidIdentifier + } + return "" +} + +func (m *SegmentRoutingEgressRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *SegmentRoutingEgressRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingEgressRecord) GetIngressStats() *SegmentRoutingEgressStats { + if m != nil { + return m.IngressStats + } + return nil +} + +func (m *SegmentRoutingEgressRecord) GetEgressStats() *SegmentRoutingEgressStats { + if m != nil { + return m.EgressStats + } + return nil +} + +type SegmentRoutingEgressStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters. + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingEgressStats) Reset() { *m = SegmentRoutingEgressStats{} } +func (m *SegmentRoutingEgressStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingEgressStats) ProtoMessage() {} +func (*SegmentRoutingEgressStats) Descriptor() ([]byte, []int) { + return fileDescriptor_0421fb5d08fd5d36, []int{2} +} +func (m *SegmentRoutingEgressStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingEgressStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingEgressStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingEgressStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingEgressStats.Merge(m, src) +} +func (m *SegmentRoutingEgressStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingEgressStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingEgressStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingEgressStats proto.InternalMessageInfo + +func (m *SegmentRoutingEgressStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingEgressStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingEgressStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingEgressStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrStatsPerSidEgressExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrStatsPerSidEgress)(nil), + Field: 26, + Name: "jnpr_sr_stats_per_sid_egress_ext", + Tag: "bytes,26,opt,name=jnpr_sr_stats_per_sid_egress_ext", + Filename: "sr_stats_per_sid_egress.proto", +} + +func init() { + proto.RegisterType((*SrStatsPerSidEgress)(nil), "SrStatsPerSidEgress") + proto.RegisterType((*SegmentRoutingEgressRecord)(nil), "SegmentRoutingEgressRecord") + proto.RegisterType((*SegmentRoutingEgressStats)(nil), "SegmentRoutingEgressStats") + proto.RegisterExtension(E_JnprSrStatsPerSidEgressExt) +} + +func init() { proto.RegisterFile("sr_stats_per_sid_egress.proto", fileDescriptor_0421fb5d08fd5d36) } + +var fileDescriptor_0421fb5d08fd5d36 = []byte{ + // 466 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x8e, 0xd3, 0x3c, + 0x10, 0xc7, 0xe5, 0x6e, 0xab, 0xaf, 0x75, 0xdb, 0xef, 0xe0, 0x22, 0x51, 0xba, 0xa2, 0x44, 0x3d, + 0xa0, 0x1c, 0x68, 0x22, 0xed, 0x01, 0x21, 0x24, 0x04, 0x5a, 0x69, 0x0f, 0x70, 0x58, 0x90, 0x73, + 0xe3, 0x62, 0xdc, 0x64, 0x48, 0x9d, 0x6e, 0xec, 0xc8, 0x9e, 0xc2, 0xee, 0x95, 0x77, 0xe1, 0xc6, + 0x83, 0x70, 0xe4, 0x11, 0x50, 0x9f, 0x04, 0xc5, 0x69, 0x97, 0x1c, 0x5a, 0x71, 0xf4, 0xfc, 0x7f, + 0xbf, 0x71, 0x66, 0x62, 0xfa, 0xd8, 0x59, 0xe1, 0x50, 0xa2, 0x13, 0x15, 0x58, 0xe1, 0x54, 0x26, + 0x20, 0xb7, 0xe0, 0x5c, 0x54, 0x59, 0x83, 0x66, 0x36, 0x41, 0xb8, 0x81, 0x12, 0xd0, 0xde, 0x09, + 0x34, 0x55, 0x53, 0x5c, 0xbc, 0xa7, 0x93, 0xc4, 0x26, 0xb5, 0xf4, 0x01, 0x6c, 0xa2, 0xb2, 0x2b, + 0x6f, 0xb0, 0x17, 0x74, 0x50, 0xfb, 0xbe, 0xdb, 0x94, 0x04, 0x67, 0xe1, 0xf0, 0xe2, 0x3c, 0x4a, + 0x20, 0x2f, 0x41, 0x23, 0x37, 0x5b, 0x54, 0x3a, 0x6f, 0x48, 0x0e, 0xa9, 0xb1, 0x19, 0xef, 0x3b, + 0x95, 0xf9, 0x2e, 0x8b, 0x1f, 0x1d, 0x3a, 0x3b, 0x0d, 0xb2, 0x67, 0xf4, 0xff, 0xba, 0xb1, 0xca, + 0x40, 0xa3, 0xfa, 0xac, 0xc0, 0x4e, 0x49, 0xd0, 0x09, 0x07, 0x97, 0xbd, 0x6f, 0x6f, 0x3a, 0x7d, + 0xc2, 0xc7, 0x4e, 0x65, 0x6f, 0xef, 0x33, 0xf6, 0x9c, 0x4e, 0x94, 0x76, 0x28, 0x75, 0x0a, 0x6d, + 0xa5, 0x13, 0x90, 0x70, 0x7c, 0x50, 0xd8, 0x81, 0x68, 0x79, 0x21, 0x1d, 0xa5, 0x66, 0xab, 0x11, + 0xac, 0xd0, 0xb2, 0x84, 0xe9, 0x59, 0xfb, 0x8e, 0xe1, 0x3e, 0xba, 0x96, 0x25, 0xb0, 0xd7, 0x74, + 0xac, 0xb4, 0xff, 0xc0, 0xfd, 0xb0, 0xdd, 0x80, 0x84, 0xc3, 0x8b, 0xd9, 0xd1, 0x61, 0xfd, 0x84, + 0x7c, 0xb4, 0x17, 0xfc, 0x89, 0xbd, 0xa2, 0x23, 0x68, 0xfb, 0xbd, 0x7f, 0xfa, 0x43, 0xf8, 0x7b, + 0x58, 0x7c, 0x27, 0xf4, 0xd1, 0x49, 0x94, 0x3d, 0xa1, 0xff, 0x55, 0x32, 0xdd, 0x80, 0xff, 0x09, + 0x24, 0xec, 0xfa, 0x11, 0xa6, 0x84, 0x1f, 0xaa, 0xec, 0x9c, 0xf6, 0x56, 0x77, 0x08, 0xce, 0xaf, + 0xe4, 0x3e, 0x6e, 0x6a, 0xec, 0x29, 0x1d, 0x36, 0x9c, 0xb0, 0x12, 0xeb, 0x25, 0x1c, 0x90, 0x80, + 0x70, 0xda, 0x24, 0x5c, 0x22, 0xb0, 0x05, 0x1d, 0xd4, 0x42, 0x43, 0x75, 0xdb, 0x54, 0xbf, 0xae, + 0xd7, 0xcc, 0x4b, 0x47, 0x83, 0x42, 0x57, 0x56, 0x9c, 0x78, 0x62, 0x02, 0x6e, 0x91, 0x3d, 0x8c, + 0xde, 0x6d, 0xb5, 0xaa, 0xc0, 0x5e, 0x03, 0x7e, 0x35, 0x76, 0xe3, 0x12, 0xd0, 0xce, 0x58, 0x37, + 0x9d, 0xf9, 0x9d, 0x3c, 0x88, 0x8e, 0xbc, 0x34, 0x3e, 0xab, 0xdb, 0x1e, 0x09, 0xae, 0x6e, 0xf1, + 0xf2, 0xd3, 0xcf, 0xdd, 0x9c, 0xfc, 0xda, 0xcd, 0xc9, 0xef, 0xdd, 0x9c, 0x7c, 0xe4, 0xb9, 0xc2, + 0xa8, 0x68, 0x6e, 0x88, 0x34, 0x60, 0xac, 0x52, 0x58, 0x81, 0xcd, 0xe3, 0x35, 0xc8, 0x1b, 0x5c, + 0xaf, 0x0c, 0x2e, 0x95, 0xce, 0xc1, 0xe1, 0xb2, 0x40, 0xb5, 0xd4, 0x12, 0xd5, 0x17, 0x88, 0xab, + 0x4d, 0x1e, 0x17, 0xa8, 0x62, 0x99, 0xc9, 0x0a, 0xc1, 0xba, 0x58, 0x14, 0x5b, 0x6d, 0x5c, 0xec, + 0xd2, 0x35, 0x94, 0xf2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x33, 0xab, 0x17, 0x2e, 0x33, 0x03, + 0x00, 0x00, +} + +func (m *SrStatsPerSidEgress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrStatsPerSidEgress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrStatsPerSidEgress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SidStats) > 0 { + for iNdEx := len(m.SidStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SidStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingEgressRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingEgressRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingEgressRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.EgressStats != nil { + { + size, err := m.EgressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IngressStats != nil { + { + size, err := m.IngressStats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("counter_name") + } else { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.SidIdentifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("sid_identifier") + } else { + i -= len(*m.SidIdentifier) + copy(dAtA[i:], *m.SidIdentifier) + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(len(*m.SidIdentifier))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingEgressStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingEgressStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingEgressStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrStatsPerSidEgress(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrStatsPerSidEgress(dAtA []byte, offset int, v uint64) int { + offset -= sovSrStatsPerSidEgress(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrStatsPerSidEgress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SidStats) > 0 { + for _, e := range m.SidStats { + l = e.Size() + n += 1 + l + sovSrStatsPerSidEgress(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingEgressRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SidIdentifier != nil { + l = len(*m.SidIdentifier) + n += 1 + l + sovSrStatsPerSidEgress(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovSrStatsPerSidEgress(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrStatsPerSidEgress(uint64(l)) + } + if m.IngressStats != nil { + l = m.IngressStats.Size() + n += 1 + l + sovSrStatsPerSidEgress(uint64(l)) + } + if m.EgressStats != nil { + l = m.EgressStats.Size() + n += 1 + l + sovSrStatsPerSidEgress(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingEgressStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrStatsPerSidEgress(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrStatsPerSidEgress(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrStatsPerSidEgress(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrStatsPerSidEgress(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrStatsPerSidEgress(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrStatsPerSidEgress(x uint64) (n int) { + return sovSrStatsPerSidEgress(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrStatsPerSidEgress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrStatsPerSidEgress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrStatsPerSidEgress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SidStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SidStats = append(m.SidStats, &SegmentRoutingEgressRecord{}) + if err := m.SidStats[len(m.SidStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerSidEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingEgressRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingEgressRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingEgressRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SidIdentifier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SidIdentifier = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IngressStats == nil { + m.IngressStats = &SegmentRoutingEgressStats{} + } + if err := m.IngressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EgressStats == nil { + m.EgressStats = &SegmentRoutingEgressStats{} + } + if err := m.EgressStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerSidEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("sid_identifier") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("counter_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingEgressStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingEgressStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingEgressStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrStatsPerSidEgress(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrStatsPerSidEgress + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrStatsPerSidEgress(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrStatsPerSidEgress + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrStatsPerSidEgress + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrStatsPerSidEgress + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrStatsPerSidEgress + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrStatsPerSidEgress = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrStatsPerSidEgress = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrStatsPerSidEgress = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_stats_per_sid_egress.proto b/schema/sr_stats_per_sid_egress.proto new file mode 100644 index 0000000..cb165ec --- /dev/null +++ b/schema/sr_stats_per_sid_egress.proto @@ -0,0 +1,55 @@ + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 26 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrStatsPerSidEgress jnpr_sr_stats_per_sid_egress_ext = 26; + } + + // + // Top-level message + // + message SrStatsPerSidEgress { + // List of SR stats per SID records + repeated SegmentRoutingEgressRecord sid_stats = 1; + } + + // + // SR statistics record + // + message SegmentRoutingEgressRecord { + // Name of the SID + required string sid_identifier = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + required string counter_name = 3 [(telemetry_options).is_key = true]; + + // Ingress Traffic statistics + optional SegmentRoutingEgressStats ingress_stats = 4; + + // Egress statistics + optional SegmentRoutingEgressStats egress_stats = 5; + } + + message SegmentRoutingEgressStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters. + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; + } + + + + diff --git a/schema/sr_te_bsid_stats.pb.go b/schema/sr_te_bsid_stats.pb.go new file mode 100644 index 0000000..3363499 --- /dev/null +++ b/schema/sr_te_bsid_stats.pb.go @@ -0,0 +1,1082 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_te_bsid_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrTeBsidStats struct { + // List of SR TE stats per BSID, IP and Color records + TeBsidStats []*SegmentRoutingTeBsidRecord `protobuf:"bytes,1,rep,name=te_bsid_stats,json=teBsidStats" json:"te_bsid_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrTeBsidStats) Reset() { *m = SrTeBsidStats{} } +func (m *SrTeBsidStats) String() string { return proto.CompactTextString(m) } +func (*SrTeBsidStats) ProtoMessage() {} +func (*SrTeBsidStats) Descriptor() ([]byte, []int) { + return fileDescriptor_c99674bf69207578, []int{0} +} +func (m *SrTeBsidStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrTeBsidStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrTeBsidStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrTeBsidStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrTeBsidStats.Merge(m, src) +} +func (m *SrTeBsidStats) XXX_Size() int { + return m.Size() +} +func (m *SrTeBsidStats) XXX_DiscardUnknown() { + xxx_messageInfo_SrTeBsidStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SrTeBsidStats proto.InternalMessageInfo + +func (m *SrTeBsidStats) GetTeBsidStats() []*SegmentRoutingTeBsidRecord { + if m != nil { + return m.TeBsidStats + } + return nil +} + +// +// SR TE BSID statistics record +// +type SegmentRoutingTeBsidRecord struct { + // Name of the BSID + BsidIdentifier *uint64 `protobuf:"varint,1,req,name=bsid_identifier,json=bsidIdentifier" json:"bsid_identifier,omitempty"` + // Ip prefix of endpoint + ToIpPrefix *string `protobuf:"bytes,2,req,name=to_ip_prefix,json=toIpPrefix" json:"to_ip_prefix,omitempty"` + // Policy color value + ColorIdentifier *uint32 `protobuf:"varint,3,opt,name=color_identifier,json=colorIdentifier" json:"color_identifier,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,4,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,5,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *SegmentRoutingTeBsidStats `protobuf:"bytes,6,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeBsidRecord) Reset() { *m = SegmentRoutingTeBsidRecord{} } +func (m *SegmentRoutingTeBsidRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeBsidRecord) ProtoMessage() {} +func (*SegmentRoutingTeBsidRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_c99674bf69207578, []int{1} +} +func (m *SegmentRoutingTeBsidRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeBsidRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeBsidRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeBsidRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeBsidRecord.Merge(m, src) +} +func (m *SegmentRoutingTeBsidRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeBsidRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeBsidRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeBsidRecord proto.InternalMessageInfo + +func (m *SegmentRoutingTeBsidRecord) GetBsidIdentifier() uint64 { + if m != nil && m.BsidIdentifier != nil { + return *m.BsidIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeBsidRecord) GetToIpPrefix() string { + if m != nil && m.ToIpPrefix != nil { + return *m.ToIpPrefix + } + return "" +} + +func (m *SegmentRoutingTeBsidRecord) GetColorIdentifier() uint32 { + if m != nil && m.ColorIdentifier != nil { + return *m.ColorIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeBsidRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeBsidRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingTeBsidRecord) GetStats() *SegmentRoutingTeBsidStats { + if m != nil { + return m.Stats + } + return nil +} + +type SegmentRoutingTeBsidStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeBsidStats) Reset() { *m = SegmentRoutingTeBsidStats{} } +func (m *SegmentRoutingTeBsidStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeBsidStats) ProtoMessage() {} +func (*SegmentRoutingTeBsidStats) Descriptor() ([]byte, []int) { + return fileDescriptor_c99674bf69207578, []int{2} +} +func (m *SegmentRoutingTeBsidStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeBsidStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeBsidStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeBsidStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeBsidStats.Merge(m, src) +} +func (m *SegmentRoutingTeBsidStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeBsidStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeBsidStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeBsidStats proto.InternalMessageInfo + +func (m *SegmentRoutingTeBsidStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingTeBsidStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingTeBsidStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingTeBsidStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrTeBsidStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrTeBsidStats)(nil), + Field: 24, + Name: "jnpr_sr_te_bsid_stats_ext", + Tag: "bytes,24,opt,name=jnpr_sr_te_bsid_stats_ext", + Filename: "sr_te_bsid_stats.proto", +} + +func init() { + proto.RegisterType((*SrTeBsidStats)(nil), "SrTeBsidStats") + proto.RegisterType((*SegmentRoutingTeBsidRecord)(nil), "SegmentRoutingTeBsidRecord") + proto.RegisterType((*SegmentRoutingTeBsidStats)(nil), "SegmentRoutingTeBsidStats") + proto.RegisterExtension(E_JnprSrTeBsidStatsExt) +} + +func init() { proto.RegisterFile("sr_te_bsid_stats.proto", fileDescriptor_c99674bf69207578) } + +var fileDescriptor_c99674bf69207578 = []byte{ + // 477 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0x13, 0x3d, + 0x14, 0x85, 0xe5, 0x69, 0xf2, 0xff, 0xad, 0xd3, 0xb4, 0xc8, 0x45, 0x30, 0x4d, 0xa5, 0x30, 0xca, + 0x02, 0x66, 0x93, 0x99, 0xaa, 0x0b, 0x16, 0x6c, 0x40, 0x91, 0x58, 0x94, 0x45, 0x55, 0x4d, 0x58, + 0xb1, 0x71, 0x9d, 0xc9, 0xed, 0xc4, 0x49, 0xc6, 0xb6, 0xec, 0x1b, 0x48, 0xb7, 0xbc, 0x0b, 0x4f, + 0xc1, 0x0b, 0xb0, 0xe4, 0x11, 0x50, 0x9e, 0x04, 0xcd, 0xb8, 0xa1, 0x13, 0x44, 0xb7, 0xe7, 0x7c, + 0xe7, 0xc8, 0x3a, 0xbe, 0xf4, 0x99, 0xb3, 0x1c, 0x81, 0x4f, 0x9c, 0x9c, 0x72, 0x87, 0x02, 0x5d, + 0x62, 0xac, 0x46, 0xdd, 0x3b, 0x41, 0x58, 0x42, 0x09, 0x68, 0xef, 0x38, 0x6a, 0xe3, 0xc5, 0xc1, + 0x35, 0xed, 0x8e, 0xed, 0x47, 0x18, 0x39, 0x39, 0x1d, 0x57, 0x2c, 0x7b, 0x4b, 0xbb, 0x3b, 0xe1, + 0x90, 0x44, 0x7b, 0x71, 0xe7, 0xe2, 0x2c, 0x19, 0x43, 0x51, 0x82, 0xc2, 0x4c, 0xaf, 0x50, 0xaa, + 0xc2, 0x47, 0x32, 0xc8, 0xb5, 0x9d, 0x66, 0x1d, 0x7c, 0x28, 0x18, 0x7c, 0x0f, 0x68, 0xef, 0x71, + 0x96, 0x25, 0xf4, 0xb8, 0x2e, 0x97, 0x53, 0x50, 0x28, 0x6f, 0x25, 0xd8, 0x90, 0x44, 0x41, 0xdc, + 0x1a, 0xb5, 0xbf, 0xbe, 0x0b, 0xf6, 0x49, 0x76, 0x54, 0xb9, 0x97, 0x7f, 0x4c, 0xf6, 0x8a, 0x1e, + 0xa2, 0xe6, 0xd2, 0x70, 0x63, 0xe1, 0x56, 0xae, 0xc3, 0x20, 0x0a, 0xe2, 0x83, 0x2d, 0x4c, 0x51, + 0x5f, 0x9a, 0xeb, 0xda, 0x60, 0xe7, 0xf4, 0x49, 0xae, 0x97, 0xda, 0x36, 0x9b, 0xf7, 0x22, 0x12, + 0x77, 0xb7, 0xf0, 0x71, 0x6d, 0x37, 0xaa, 0x5f, 0xd3, 0x13, 0xa9, 0x1c, 0x0a, 0x95, 0x43, 0x33, + 0xd4, 0x6a, 0x86, 0xd8, 0x96, 0x68, 0xe4, 0x62, 0x7a, 0x98, 0xeb, 0x95, 0x42, 0xb0, 0x5c, 0x89, + 0x12, 0xc2, 0x76, 0x44, 0x1e, 0x9e, 0xd4, 0xb9, 0xb7, 0xae, 0x44, 0x09, 0xec, 0x9c, 0xb6, 0xfd, + 0x88, 0xff, 0x45, 0x24, 0xee, 0x5c, 0xf4, 0xfe, 0x39, 0x62, 0x3d, 0x5b, 0xe6, 0xc1, 0xc1, 0x37, + 0x42, 0x4f, 0x1f, 0x85, 0xd8, 0x0b, 0xfa, 0xbf, 0x11, 0xf9, 0x02, 0xea, 0x6f, 0x21, 0xf7, 0xa3, + 0x85, 0x24, 0xdb, 0xaa, 0xec, 0x8c, 0xb6, 0x27, 0x77, 0x08, 0x2e, 0x0c, 0x9a, 0xb6, 0xd7, 0xd8, + 0x4b, 0xda, 0xf1, 0x1c, 0xb7, 0x02, 0xa1, 0x1e, 0xc7, 0x23, 0x11, 0xc9, 0xa8, 0x77, 0x32, 0x81, + 0xc0, 0x06, 0xf4, 0xa0, 0x0a, 0x78, 0xaa, 0xd5, 0xa4, 0xf6, 0x2b, 0xbd, 0x62, 0xde, 0xdc, 0xd0, + 0xd3, 0xb9, 0x32, 0x96, 0xff, 0x7d, 0x6b, 0x1c, 0xd6, 0xc8, 0x9e, 0x27, 0x1f, 0x56, 0x4a, 0x1a, + 0xb0, 0x57, 0x80, 0x5f, 0xb4, 0x5d, 0xb8, 0x31, 0x28, 0xa7, 0xad, 0x0b, 0xc3, 0x7a, 0x86, 0xa3, + 0x64, 0xe7, 0xe4, 0xb2, 0xa7, 0x55, 0xd3, 0x8e, 0xf4, 0x7e, 0x8d, 0xa3, 0x9b, 0x1f, 0x9b, 0x3e, + 0xf9, 0xb9, 0xe9, 0x93, 0x5f, 0x9b, 0x3e, 0xf9, 0x94, 0x15, 0x12, 0x93, 0xb9, 0x6f, 0x4d, 0x14, + 0x60, 0x2a, 0x73, 0x98, 0x80, 0x2d, 0xd2, 0x19, 0x88, 0x25, 0xce, 0x26, 0x1a, 0x87, 0x52, 0x15, + 0xe0, 0x70, 0x38, 0x47, 0x39, 0x54, 0x02, 0xe5, 0x67, 0x48, 0xcd, 0xa2, 0x48, 0xe7, 0x28, 0x53, + 0x31, 0x15, 0x06, 0xc1, 0xba, 0x94, 0xcf, 0x57, 0x4a, 0xbb, 0xd4, 0xe5, 0x33, 0x28, 0xc5, 0xef, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0x5a, 0xb9, 0x67, 0x29, 0x03, 0x00, 0x00, +} + +func (m *SrTeBsidStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrTeBsidStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrTeBsidStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TeBsidStats) > 0 { + for iNdEx := len(m.TeBsidStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TeBsidStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeBsidRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeBsidRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeBsidRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x2a + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x20 + } + if m.ColorIdentifier != nil { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.ColorIdentifier)) + i-- + dAtA[i] = 0x18 + } + if m.ToIpPrefix == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("to_ip_prefix") + } else { + i -= len(*m.ToIpPrefix) + copy(dAtA[i:], *m.ToIpPrefix) + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(len(*m.ToIpPrefix))) + i-- + dAtA[i] = 0x12 + } + if m.BsidIdentifier == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("bsid_identifier") + } else { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.BsidIdentifier)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeBsidStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeBsidStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeBsidStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrTeBsidStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrTeBsidStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSrTeBsidStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrTeBsidStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TeBsidStats) > 0 { + for _, e := range m.TeBsidStats { + l = e.Size() + n += 1 + l + sovSrTeBsidStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeBsidRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BsidIdentifier != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.BsidIdentifier)) + } + if m.ToIpPrefix != nil { + l = len(*m.ToIpPrefix) + n += 1 + l + sovSrTeBsidStats(uint64(l)) + } + if m.ColorIdentifier != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.ColorIdentifier)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrTeBsidStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovSrTeBsidStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeBsidStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrTeBsidStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrTeBsidStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrTeBsidStats(x uint64) (n int) { + return sovSrTeBsidStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrTeBsidStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrTeBsidStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrTeBsidStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeBsidStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeBsidStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TeBsidStats = append(m.TeBsidStats, &SegmentRoutingTeBsidRecord{}) + if err := m.TeBsidStats[len(m.TeBsidStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeBsidStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeBsidRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeBsidRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeBsidRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BsidIdentifier", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BsidIdentifier = &v + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToIpPrefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeBsidStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ToIpPrefix = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000002) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ColorIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ColorIdentifier = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeBsidStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeBsidStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &SegmentRoutingTeBsidStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeBsidStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("bsid_identifier") + } + if hasFields[0]&uint64(0x00000002) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("to_ip_prefix") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeBsidStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeBsidStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeBsidStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrTeBsidStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeBsidStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrTeBsidStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeBsidStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrTeBsidStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrTeBsidStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrTeBsidStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrTeBsidStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrTeBsidStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrTeBsidStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_te_bsid_stats.proto b/schema/sr_te_bsid_stats.proto new file mode 100755 index 0000000..4e8d19d --- /dev/null +++ b/schema/sr_te_bsid_stats.proto @@ -0,0 +1,53 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 24 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrTeBsidStats jnpr_sr_te_bsid_stats_ext = 24; +} + +// +// Top-level message +// +message SrTeBsidStats { + // List of SR TE stats per BSID, IP and Color records + repeated SegmentRoutingTeBsidRecord te_bsid_stats = 1; +} + +// +// SR TE BSID statistics record +// +message SegmentRoutingTeBsidRecord { + // Name of the BSID + required uint64 bsid_identifier = 1 [(telemetry_options).is_key = true]; + + // Ip prefix of endpoint + required string to_ip_prefix = 2 [(telemetry_options).is_key = true]; + + // Policy color value + optional uint32 color_identifier = 3 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 4 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 5 [(telemetry_options).is_key = true]; + + // Statistics + optional SegmentRoutingTeBsidStats stats = 6; +} + +message SegmentRoutingTeBsidStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/sr_te_ingress_tunnel_stats.pb.go b/schema/sr_te_ingress_tunnel_stats.pb.go new file mode 100644 index 0000000..97d05f9 --- /dev/null +++ b/schema/sr_te_ingress_tunnel_stats.pb.go @@ -0,0 +1,1000 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_te_ingress_tunnel_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrTeIngressTunnelStats struct { + // List of SR TE stats per BSID, IP and Color records + TeIngressTunnelStats []*SegmentRoutingTeIngressTunnelRecord `protobuf:"bytes,1,rep,name=te_ingress_tunnel_stats,json=teIngressTunnelStats" json:"te_ingress_tunnel_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrTeIngressTunnelStats) Reset() { *m = SrTeIngressTunnelStats{} } +func (m *SrTeIngressTunnelStats) String() string { return proto.CompactTextString(m) } +func (*SrTeIngressTunnelStats) ProtoMessage() {} +func (*SrTeIngressTunnelStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ba37114a3c98fc80, []int{0} +} +func (m *SrTeIngressTunnelStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrTeIngressTunnelStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrTeIngressTunnelStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrTeIngressTunnelStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrTeIngressTunnelStats.Merge(m, src) +} +func (m *SrTeIngressTunnelStats) XXX_Size() int { + return m.Size() +} +func (m *SrTeIngressTunnelStats) XXX_DiscardUnknown() { + xxx_messageInfo_SrTeIngressTunnelStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SrTeIngressTunnelStats proto.InternalMessageInfo + +func (m *SrTeIngressTunnelStats) GetTeIngressTunnelStats() []*SegmentRoutingTeIngressTunnelRecord { + if m != nil { + return m.TeIngressTunnelStats + } + return nil +} + +// +// SR TE Ingress Tunnel statistics record +// +type SegmentRoutingTeIngressTunnelRecord struct { + // Name of the tunnel + TunnelName *string `protobuf:"bytes,1,req,name=tunnel_name,json=tunnelName" json:"tunnel_name,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *SegmentRoutingTeIngressTunnelStats `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeIngressTunnelRecord) Reset() { *m = SegmentRoutingTeIngressTunnelRecord{} } +func (m *SegmentRoutingTeIngressTunnelRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeIngressTunnelRecord) ProtoMessage() {} +func (*SegmentRoutingTeIngressTunnelRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_ba37114a3c98fc80, []int{1} +} +func (m *SegmentRoutingTeIngressTunnelRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeIngressTunnelRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeIngressTunnelRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeIngressTunnelRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeIngressTunnelRecord.Merge(m, src) +} +func (m *SegmentRoutingTeIngressTunnelRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeIngressTunnelRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeIngressTunnelRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeIngressTunnelRecord proto.InternalMessageInfo + +func (m *SegmentRoutingTeIngressTunnelRecord) GetTunnelName() string { + if m != nil && m.TunnelName != nil { + return *m.TunnelName + } + return "" +} + +func (m *SegmentRoutingTeIngressTunnelRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeIngressTunnelRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingTeIngressTunnelRecord) GetStats() *SegmentRoutingTeIngressTunnelStats { + if m != nil { + return m.Stats + } + return nil +} + +type SegmentRoutingTeIngressTunnelStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeIngressTunnelStats) Reset() { *m = SegmentRoutingTeIngressTunnelStats{} } +func (m *SegmentRoutingTeIngressTunnelStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeIngressTunnelStats) ProtoMessage() {} +func (*SegmentRoutingTeIngressTunnelStats) Descriptor() ([]byte, []int) { + return fileDescriptor_ba37114a3c98fc80, []int{2} +} +func (m *SegmentRoutingTeIngressTunnelStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeIngressTunnelStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeIngressTunnelStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeIngressTunnelStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeIngressTunnelStats.Merge(m, src) +} +func (m *SegmentRoutingTeIngressTunnelStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeIngressTunnelStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeIngressTunnelStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeIngressTunnelStats proto.InternalMessageInfo + +func (m *SegmentRoutingTeIngressTunnelStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingTeIngressTunnelStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingTeIngressTunnelStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingTeIngressTunnelStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrTeIngressTunnelStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrTeIngressTunnelStats)(nil), + Field: 29, + Name: "jnpr_sr_te_ingress_tunnel_stats_ext", + Tag: "bytes,29,opt,name=jnpr_sr_te_ingress_tunnel_stats_ext", + Filename: "sr_te_ingress_tunnel_stats.proto", +} + +func init() { + proto.RegisterType((*SrTeIngressTunnelStats)(nil), "SrTeIngressTunnelStats") + proto.RegisterType((*SegmentRoutingTeIngressTunnelRecord)(nil), "SegmentRoutingTeIngressTunnelRecord") + proto.RegisterType((*SegmentRoutingTeIngressTunnelStats)(nil), "SegmentRoutingTeIngressTunnelStats") + proto.RegisterExtension(E_JnprSrTeIngressTunnelStatsExt) +} + +func init() { proto.RegisterFile("sr_te_ingress_tunnel_stats.proto", fileDescriptor_ba37114a3c98fc80) } + +var fileDescriptor_ba37114a3c98fc80 = []byte{ + // 446 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb5, 0x69, 0x22, 0xda, 0x0d, 0x5c, 0x5c, 0x44, 0x2c, 0x50, 0x83, 0xe5, 0x20, 0xe4, + 0x4b, 0x6c, 0xa9, 0x07, 0x24, 0x38, 0xa1, 0x4a, 0x1c, 0xca, 0xa1, 0x87, 0x4d, 0x4f, 0x70, 0x58, + 0x36, 0xce, 0xe0, 0xac, 0x13, 0xcf, 0x5a, 0xbb, 0x63, 0x68, 0x25, 0x4e, 0x3c, 0x10, 0xcf, 0xc1, + 0x91, 0x47, 0x40, 0x39, 0xf2, 0x14, 0xc8, 0xde, 0xa6, 0x20, 0x94, 0x00, 0xd7, 0xf9, 0xbf, 0x7f, + 0xfe, 0xfd, 0x47, 0xcb, 0x23, 0x67, 0x25, 0x81, 0xd4, 0x58, 0x58, 0x70, 0x4e, 0x52, 0x83, 0x08, + 0x6b, 0xe9, 0x48, 0x91, 0x4b, 0x6b, 0x6b, 0xc8, 0x3c, 0x3c, 0x26, 0x58, 0x43, 0x05, 0x64, 0xaf, + 0x25, 0x99, 0xda, 0x0f, 0xe3, 0x86, 0x3f, 0x98, 0xd9, 0x4b, 0x38, 0xf7, 0xb6, 0xcb, 0xce, 0x35, + 0x6b, 0x4d, 0xc1, 0x5b, 0x3e, 0xda, 0xb3, 0x2f, 0x64, 0xd1, 0x41, 0x32, 0x3c, 0x7d, 0x92, 0xce, + 0xa0, 0xa8, 0x00, 0x49, 0x98, 0x86, 0x34, 0x16, 0x7f, 0x6c, 0x11, 0x90, 0x1b, 0xbb, 0x10, 0xf7, + 0x69, 0xc7, 0xf2, 0xf8, 0x07, 0xe3, 0x93, 0xff, 0x70, 0x07, 0x4f, 0xf9, 0xf0, 0x26, 0x19, 0x55, + 0x05, 0x21, 0x8b, 0x7a, 0xc9, 0xd1, 0xd9, 0xe0, 0xf3, 0xcb, 0xde, 0x21, 0x13, 0xdc, 0x2b, 0x17, + 0xaa, 0x82, 0xe0, 0x19, 0x3f, 0xd6, 0xe8, 0x48, 0x61, 0x0e, 0x52, 0x2f, 0x00, 0x49, 0xbf, 0xd7, + 0x60, 0xc3, 0x5e, 0xc4, 0x92, 0x7b, 0x5b, 0x3e, 0xd8, 0x12, 0xe7, 0xb7, 0x40, 0x90, 0xf0, 0xbb, + 0xb9, 0x69, 0x90, 0xc0, 0xfa, 0x80, 0x83, 0x88, 0xfd, 0x0a, 0x18, 0xde, 0x48, 0x5d, 0xc2, 0x73, + 0x3e, 0xf0, 0xe5, 0xfb, 0x11, 0x4b, 0x86, 0xa7, 0x93, 0xbf, 0x97, 0xef, 0x5a, 0x0a, 0xef, 0x88, + 0xbf, 0x30, 0x1e, 0xff, 0x9b, 0x0e, 0x1e, 0xf3, 0x3b, 0xb5, 0xca, 0x57, 0xd0, 0x1d, 0x98, 0x25, + 0xfd, 0xee, 0x19, 0x21, 0x13, 0xdb, 0x69, 0xf0, 0x88, 0x0f, 0xe6, 0xd7, 0x04, 0xae, 0xab, 0x75, + 0x2b, 0xfb, 0x59, 0x7b, 0x29, 0xcf, 0x49, 0xab, 0xc8, 0x17, 0xf1, 0x48, 0xc4, 0x04, 0xf7, 0x8a, + 0x50, 0x04, 0x41, 0xcc, 0x8f, 0x5a, 0x83, 0xa7, 0xfa, 0xbf, 0x53, 0x87, 0xed, 0xbc, 0x65, 0x5e, + 0x7c, 0xe2, 0x93, 0x12, 0x6b, 0x2b, 0xf7, 0x7f, 0x29, 0x09, 0x57, 0x14, 0x8c, 0xd2, 0xd7, 0x0d, + 0xea, 0x1a, 0xec, 0x05, 0xd0, 0x47, 0x63, 0x57, 0x6e, 0x06, 0xe8, 0x8c, 0x75, 0xe1, 0x49, 0x77, + 0xa2, 0x51, 0xba, 0xfb, 0x67, 0x89, 0x93, 0x76, 0xf9, 0x6e, 0xed, 0xd5, 0x15, 0x9d, 0xbd, 0xfb, + 0xba, 0x19, 0xb3, 0x6f, 0x9b, 0x31, 0xfb, 0xbe, 0x19, 0xb3, 0x37, 0xa2, 0xd0, 0x94, 0x96, 0x3e, + 0x27, 0x45, 0xa0, 0x4c, 0xe7, 0x30, 0x07, 0x5b, 0x64, 0x4b, 0x50, 0x6b, 0x5a, 0xce, 0x0d, 0x4d, + 0x35, 0x16, 0xe0, 0x68, 0x5a, 0x92, 0x9e, 0xa2, 0x22, 0xfd, 0x01, 0xb2, 0x7a, 0x55, 0x64, 0x25, + 0xe9, 0x4c, 0x2d, 0x54, 0x4d, 0x60, 0x5d, 0x26, 0xcb, 0x06, 0x8d, 0xcb, 0x5c, 0xbe, 0x84, 0x4a, + 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x21, 0x8b, 0xd4, 0x12, 0x2c, 0x03, 0x00, 0x00, +} + +func (m *SrTeIngressTunnelStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrTeIngressTunnelStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrTeIngressTunnelStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TeIngressTunnelStats) > 0 { + for iNdEx := len(m.TeIngressTunnelStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TeIngressTunnelStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeIngressTunnelRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeIngressTunnelRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeIngressTunnelRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.TunnelName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("tunnel_name") + } else { + i -= len(*m.TunnelName) + copy(dAtA[i:], *m.TunnelName) + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(len(*m.TunnelName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeIngressTunnelStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeIngressTunnelStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeIngressTunnelStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrTeIngressTunnelStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrTeIngressTunnelStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSrTeIngressTunnelStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrTeIngressTunnelStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TeIngressTunnelStats) > 0 { + for _, e := range m.TeIngressTunnelStats { + l = e.Size() + n += 1 + l + sovSrTeIngressTunnelStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeIngressTunnelRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelName != nil { + l = len(*m.TunnelName) + n += 1 + l + sovSrTeIngressTunnelStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovSrTeIngressTunnelStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrTeIngressTunnelStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovSrTeIngressTunnelStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeIngressTunnelStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrTeIngressTunnelStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrTeIngressTunnelStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrTeIngressTunnelStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrTeIngressTunnelStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrTeIngressTunnelStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrTeIngressTunnelStats(x uint64) (n int) { + return sovSrTeIngressTunnelStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrTeIngressTunnelStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrTeIngressTunnelStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrTeIngressTunnelStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeIngressTunnelStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TeIngressTunnelStats = append(m.TeIngressTunnelStats, &SegmentRoutingTeIngressTunnelRecord{}) + if err := m.TeIngressTunnelStats[len(m.TeIngressTunnelStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeIngressTunnelStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeIngressTunnelRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeIngressTunnelRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeIngressTunnelRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TunnelName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &SegmentRoutingTeIngressTunnelStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeIngressTunnelStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("tunnel_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeIngressTunnelStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeIngressTunnelStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeIngressTunnelStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrTeIngressTunnelStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeIngressTunnelStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrTeIngressTunnelStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeIngressTunnelStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrTeIngressTunnelStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrTeIngressTunnelStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrTeIngressTunnelStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrTeIngressTunnelStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrTeIngressTunnelStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrTeIngressTunnelStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_te_ingress_tunnel_stats.proto b/schema/sr_te_ingress_tunnel_stats.proto new file mode 100755 index 0000000..c72dd34 --- /dev/null +++ b/schema/sr_te_ingress_tunnel_stats.proto @@ -0,0 +1,47 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 29 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrTeIngressTunnelStats jnpr_sr_te_ingress_tunnel_stats_ext = 29; +} + +// +// Top-level message +// +message SrTeIngressTunnelStats { + // List of SR TE stats per BSID, IP and Color records + repeated SegmentRoutingTeIngressTunnelRecord te_ingress_tunnel_stats = 1; +} + +// +// SR TE Ingress Tunnel statistics record +// +message SegmentRoutingTeIngressTunnelRecord { + // Name of the tunnel + required string tunnel_name = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Statistics + optional SegmentRoutingTeIngressTunnelStats stats = 4; +} + +message SegmentRoutingTeIngressTunnelStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/sr_te_ip_stats.pb.go b/schema/sr_te_ip_stats.pb.go new file mode 100644 index 0000000..a53c56c --- /dev/null +++ b/schema/sr_te_ip_stats.pb.go @@ -0,0 +1,1038 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_te_ip_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrTeIpStats struct { + // List of SR TE stats per IP and Color records + TeIpStats []*SegmentRoutingTeIpRecord `protobuf:"bytes,1,rep,name=te_ip_stats,json=teIpStats" json:"te_ip_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrTeIpStats) Reset() { *m = SrTeIpStats{} } +func (m *SrTeIpStats) String() string { return proto.CompactTextString(m) } +func (*SrTeIpStats) ProtoMessage() {} +func (*SrTeIpStats) Descriptor() ([]byte, []int) { + return fileDescriptor_891ddfdc1085283c, []int{0} +} +func (m *SrTeIpStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrTeIpStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrTeIpStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrTeIpStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrTeIpStats.Merge(m, src) +} +func (m *SrTeIpStats) XXX_Size() int { + return m.Size() +} +func (m *SrTeIpStats) XXX_DiscardUnknown() { + xxx_messageInfo_SrTeIpStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SrTeIpStats proto.InternalMessageInfo + +func (m *SrTeIpStats) GetTeIpStats() []*SegmentRoutingTeIpRecord { + if m != nil { + return m.TeIpStats + } + return nil +} + +// +// SR TE BSID statistics record +// +type SegmentRoutingTeIpRecord struct { + // Ip prefix of endpoint + ToIpPrefix *string `protobuf:"bytes,2,req,name=to_ip_prefix,json=toIpPrefix" json:"to_ip_prefix,omitempty"` + // Policy color value + ColorIdentifier *uint32 `protobuf:"varint,3,opt,name=color_identifier,json=colorIdentifier" json:"color_identifier,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,4,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,5,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *SegmentRoutingTeIpStats `protobuf:"bytes,6,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeIpRecord) Reset() { *m = SegmentRoutingTeIpRecord{} } +func (m *SegmentRoutingTeIpRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeIpRecord) ProtoMessage() {} +func (*SegmentRoutingTeIpRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_891ddfdc1085283c, []int{1} +} +func (m *SegmentRoutingTeIpRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeIpRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeIpRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeIpRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeIpRecord.Merge(m, src) +} +func (m *SegmentRoutingTeIpRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeIpRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeIpRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeIpRecord proto.InternalMessageInfo + +func (m *SegmentRoutingTeIpRecord) GetToIpPrefix() string { + if m != nil && m.ToIpPrefix != nil { + return *m.ToIpPrefix + } + return "" +} + +func (m *SegmentRoutingTeIpRecord) GetColorIdentifier() uint32 { + if m != nil && m.ColorIdentifier != nil { + return *m.ColorIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeIpRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeIpRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingTeIpRecord) GetStats() *SegmentRoutingTeIpStats { + if m != nil { + return m.Stats + } + return nil +} + +type SegmentRoutingTeIpStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeIpStats) Reset() { *m = SegmentRoutingTeIpStats{} } +func (m *SegmentRoutingTeIpStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeIpStats) ProtoMessage() {} +func (*SegmentRoutingTeIpStats) Descriptor() ([]byte, []int) { + return fileDescriptor_891ddfdc1085283c, []int{2} +} +func (m *SegmentRoutingTeIpStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeIpStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeIpStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeIpStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeIpStats.Merge(m, src) +} +func (m *SegmentRoutingTeIpStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeIpStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeIpStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeIpStats proto.InternalMessageInfo + +func (m *SegmentRoutingTeIpStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingTeIpStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingTeIpStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingTeIpStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrTeIpStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrTeIpStats)(nil), + Field: 25, + Name: "jnpr_sr_te_ip_stats_ext", + Tag: "bytes,25,opt,name=jnpr_sr_te_ip_stats_ext", + Filename: "sr_te_ip_stats.proto", +} + +func init() { + proto.RegisterType((*SrTeIpStats)(nil), "SrTeIpStats") + proto.RegisterType((*SegmentRoutingTeIpRecord)(nil), "SegmentRoutingTeIpRecord") + proto.RegisterType((*SegmentRoutingTeIpStats)(nil), "SegmentRoutingTeIpStats") + proto.RegisterExtension(E_JnprSrTeIpStatsExt) +} + +func init() { proto.RegisterFile("sr_te_ip_stats.proto", fileDescriptor_891ddfdc1085283c) } + +var fileDescriptor_891ddfdc1085283c = []byte{ + // 453 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8e, 0xd3, 0x30, + 0x18, 0x84, 0xe5, 0x6c, 0x0b, 0x5b, 0xa7, 0x08, 0xe4, 0x45, 0x6a, 0x16, 0xa4, 0x12, 0xf5, 0x00, + 0xb9, 0x34, 0x41, 0x7b, 0x40, 0x82, 0x13, 0x5a, 0x09, 0x89, 0x72, 0x58, 0x21, 0x97, 0xd3, 0x5e, + 0x8c, 0x9b, 0xfe, 0x9b, 0x3a, 0x6d, 0x6c, 0xcb, 0xfe, 0x0b, 0xdd, 0x2b, 0x17, 0x1e, 0x84, 0x97, + 0xe1, 0xc8, 0x23, 0xa0, 0x3e, 0x09, 0x4a, 0x42, 0x21, 0x48, 0xf4, 0x3a, 0xf3, 0xcd, 0xd8, 0x1a, + 0xfd, 0xf4, 0xa1, 0x77, 0x02, 0x41, 0x28, 0x2b, 0x3c, 0x4a, 0xf4, 0xa9, 0x75, 0x06, 0xcd, 0xa3, + 0x33, 0x84, 0x0d, 0x54, 0x80, 0xee, 0x56, 0xa0, 0xb1, 0xad, 0x38, 0x79, 0x4b, 0xc3, 0xb9, 0xfb, + 0x00, 0x33, 0x3b, 0xaf, 0x49, 0xf6, 0x92, 0x86, 0x9d, 0x60, 0x44, 0xe2, 0x93, 0x24, 0xbc, 0x38, + 0x4f, 0xe7, 0x50, 0x54, 0xa0, 0x91, 0x9b, 0x2d, 0x2a, 0x5d, 0xd4, 0x38, 0x87, 0xdc, 0xb8, 0x25, + 0x1f, 0xe0, 0x21, 0x3a, 0xf9, 0x1a, 0xd0, 0xe8, 0x18, 0xc7, 0x9e, 0xd1, 0x21, 0x9a, 0xba, 0xd7, + 0x3a, 0xb8, 0x51, 0xbb, 0x28, 0x88, 0x83, 0x64, 0x70, 0xd9, 0xff, 0xf2, 0x3a, 0x38, 0x25, 0x9c, + 0xa2, 0x99, 0xd9, 0xf7, 0x8d, 0xc1, 0x9e, 0xd3, 0x07, 0xb9, 0xd9, 0x18, 0x27, 0xd4, 0x12, 0x34, + 0xaa, 0x1b, 0x05, 0x2e, 0x3a, 0x89, 0x49, 0x72, 0xef, 0x00, 0xdf, 0x6f, 0xec, 0xd9, 0x1f, 0x97, + 0xbd, 0xa0, 0x67, 0x4a, 0x7b, 0x94, 0x3a, 0x87, 0x6e, 0xa8, 0xd7, 0x0d, 0xb1, 0x03, 0xd1, 0xc9, + 0x25, 0x74, 0x98, 0x9b, 0xad, 0x46, 0x70, 0x42, 0xcb, 0x0a, 0xa2, 0x7e, 0x4c, 0xfe, 0x7e, 0x29, + 0xfc, 0x6d, 0x5d, 0xc9, 0x0a, 0x58, 0x4a, 0xfb, 0xed, 0x1c, 0x77, 0x62, 0x92, 0x84, 0x17, 0xd1, + 0x7f, 0xe6, 0x68, 0x26, 0xe0, 0x2d, 0x36, 0xf9, 0x46, 0xe8, 0xe8, 0x08, 0xc2, 0x9e, 0xd0, 0xbb, + 0x56, 0xe6, 0x6b, 0x68, 0xc6, 0x25, 0x49, 0xaf, 0x79, 0x30, 0x22, 0xfc, 0xa0, 0xb2, 0xc7, 0xb4, + 0xbf, 0xb8, 0x45, 0xf0, 0x51, 0xd0, 0xb5, 0x5b, 0x8d, 0x3d, 0xa5, 0x61, 0xcb, 0x09, 0x27, 0x11, + 0x9a, 0x61, 0x5a, 0x24, 0x26, 0x9c, 0xb6, 0x0e, 0x97, 0x08, 0x6c, 0x42, 0x07, 0x75, 0xa0, 0xa5, + 0x7a, 0x5d, 0xea, 0xb4, 0xd6, 0x6b, 0xe6, 0xd5, 0x35, 0x1d, 0x95, 0xda, 0x3a, 0xf1, 0xef, 0xad, + 0x08, 0xd8, 0x21, 0x1b, 0xa5, 0xef, 0xb6, 0x5a, 0x59, 0x70, 0x57, 0x80, 0x9f, 0x8d, 0x5b, 0xfb, + 0x39, 0x68, 0x6f, 0x9c, 0x8f, 0xce, 0x9b, 0x01, 0x86, 0x69, 0xe7, 0x64, 0x38, 0xab, 0x5b, 0x3a, + 0xc2, 0x9b, 0x1d, 0x5e, 0x7e, 0xfc, 0xbe, 0x1f, 0x93, 0x1f, 0xfb, 0x31, 0xf9, 0xb9, 0x1f, 0x93, + 0x6b, 0x5e, 0x28, 0x4c, 0xcb, 0xb6, 0x31, 0xd5, 0x80, 0x99, 0xca, 0x61, 0x01, 0xae, 0xc8, 0x56, + 0x20, 0x37, 0xb8, 0x5a, 0x18, 0x9c, 0x2a, 0x5d, 0x80, 0xc7, 0x69, 0x89, 0x6a, 0xaa, 0x25, 0xaa, + 0x4f, 0x90, 0xd9, 0x75, 0x91, 0x95, 0xa8, 0x32, 0xb9, 0x94, 0x16, 0xc1, 0xf9, 0x4c, 0x94, 0x5b, + 0x6d, 0x7c, 0xe6, 0xf3, 0x15, 0x54, 0xf2, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x05, 0x68, + 0x5c, 0xe3, 0x02, 0x00, 0x00, +} + +func (m *SrTeIpStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrTeIpStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrTeIpStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TeIpStats) > 0 { + for iNdEx := len(m.TeIpStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TeIpStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeIpStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeIpRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeIpRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeIpRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeIpStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrTeIpStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x2a + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrTeIpStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x20 + } + if m.ColorIdentifier != nil { + i = encodeVarintSrTeIpStats(dAtA, i, uint64(*m.ColorIdentifier)) + i-- + dAtA[i] = 0x18 + } + if m.ToIpPrefix == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("to_ip_prefix") + } else { + i -= len(*m.ToIpPrefix) + copy(dAtA[i:], *m.ToIpPrefix) + i = encodeVarintSrTeIpStats(dAtA, i, uint64(len(*m.ToIpPrefix))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeIpStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeIpStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeIpStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrTeIpStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrTeIpStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrTeIpStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrTeIpStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrTeIpStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSrTeIpStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrTeIpStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TeIpStats) > 0 { + for _, e := range m.TeIpStats { + l = e.Size() + n += 1 + l + sovSrTeIpStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeIpRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ToIpPrefix != nil { + l = len(*m.ToIpPrefix) + n += 1 + l + sovSrTeIpStats(uint64(l)) + } + if m.ColorIdentifier != nil { + n += 1 + sovSrTeIpStats(uint64(*m.ColorIdentifier)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovSrTeIpStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrTeIpStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovSrTeIpStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeIpStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrTeIpStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrTeIpStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrTeIpStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrTeIpStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrTeIpStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrTeIpStats(x uint64) (n int) { + return sovSrTeIpStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrTeIpStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrTeIpStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrTeIpStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeIpStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeIpStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeIpStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TeIpStats = append(m.TeIpStats, &SegmentRoutingTeIpRecord{}) + if err := m.TeIpStats[len(m.TeIpStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeIpStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeIpStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeIpStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeIpRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeIpRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeIpRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToIpPrefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeIpStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeIpStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.ToIpPrefix = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ColorIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ColorIdentifier = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeIpStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeIpStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeIpStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeIpStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &SegmentRoutingTeIpStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeIpStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeIpStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeIpStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("to_ip_prefix") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeIpStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeIpStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeIpStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrTeIpStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeIpStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeIpStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrTeIpStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeIpStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrTeIpStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrTeIpStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrTeIpStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrTeIpStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrTeIpStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrTeIpStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_te_ip_stats.proto b/schema/sr_te_ip_stats.proto new file mode 100755 index 0000000..df48eac --- /dev/null +++ b/schema/sr_te_ip_stats.proto @@ -0,0 +1,50 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 25 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrTeIpStats jnpr_sr_te_ip_stats_ext = 25; +} + +// +// Top-level message +// +message SrTeIpStats { + // List of SR TE stats per IP and Color records + repeated SegmentRoutingTeIpRecord te_ip_stats = 1; +} + +// +// SR TE BSID statistics record +// +message SegmentRoutingTeIpRecord { + // Ip prefix of endpoint + required string to_ip_prefix = 2 [(telemetry_options).is_key = true]; + + // Policy color value + optional uint32 color_identifier = 3 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 4 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 5 [(telemetry_options).is_key = true]; + + // Statistics + optional SegmentRoutingTeIpStats stats = 6; +} + +message SegmentRoutingTeIpStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/sr_te_per_lsp_ingress_stats.pb.go b/schema/sr_te_per_lsp_ingress_stats.pb.go new file mode 100644 index 0000000..34e693e --- /dev/null +++ b/schema/sr_te_per_lsp_ingress_stats.pb.go @@ -0,0 +1,1756 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_te_per_lsp_ingress_stats.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Mpls_SrTePerLspIngressStats struct { + SignalingProtocols *Mpls_SrTePerLspIngressStatsSignalingProtocolsType `protobuf:"bytes,151,opt,name=signaling_protocols,json=signalingProtocols" json:"signaling_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspIngressStats) Reset() { *m = Mpls_SrTePerLspIngressStats{} } +func (m *Mpls_SrTePerLspIngressStats) String() string { return proto.CompactTextString(m) } +func (*Mpls_SrTePerLspIngressStats) ProtoMessage() {} +func (*Mpls_SrTePerLspIngressStats) Descriptor() ([]byte, []int) { + return fileDescriptor_71d4c8eea0e1794c, []int{0} +} +func (m *Mpls_SrTePerLspIngressStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspIngressStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspIngressStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspIngressStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspIngressStats.Merge(m, src) +} +func (m *Mpls_SrTePerLspIngressStats) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspIngressStats) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspIngressStats.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspIngressStats proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspIngressStats) GetSignalingProtocols() *Mpls_SrTePerLspIngressStatsSignalingProtocolsType { + if m != nil { + return m.SignalingProtocols + } + return nil +} + +type Mpls_SrTePerLspIngressStatsSignalingProtocolsType struct { + SegmentRouting *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType `protobuf:"bytes,151,opt,name=segment_routing,json=segmentRouting" json:"segment_routing,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) Reset() { + *m = Mpls_SrTePerLspIngressStatsSignalingProtocolsType{} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsType) ProtoMessage() {} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_71d4c8eea0e1794c, []int{0, 0} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsType.Merge(m, src) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsType proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) GetSegmentRouting() *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType { + if m != nil { + return m.SegmentRouting + } + return nil +} + +type Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType struct { + SrTePerLspIngressPolicies *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType `protobuf:"bytes,151,opt,name=sr_te_per_lsp_ingress_policies,json=srTePerLspIngressPolicies" json:"sr_te_per_lsp_ingress_policies,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) Reset() { + *m = Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType{} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) ProtoMessage() {} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) Descriptor() ([]byte, []int) { + return fileDescriptor_71d4c8eea0e1794c, []int{0, 0, 0} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType.Merge(m, src) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) GetSrTePerLspIngressPolicies() *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType { + if m != nil { + return m.SrTePerLspIngressPolicies + } + return nil +} + +type Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType struct { + SrTePerLspIngressPolicy []*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList `protobuf:"bytes,151,rep,name=sr_te_per_lsp_ingress_policy,json=srTePerLspIngressPolicy" json:"sr_te_per_lsp_ingress_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) Reset() { + *m = Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType{} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) ProtoMessage() { +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) Descriptor() ([]byte, []int) { + return fileDescriptor_71d4c8eea0e1794c, []int{0, 0, 0, 0} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType.Merge(m, src) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) GetSrTePerLspIngressPolicy() []*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList { + if m != nil { + return m.SrTePerLspIngressPolicy + } + return nil +} + +type Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList struct { + Record []*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList `protobuf:"bytes,151,rep,name=record" json:"record,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) Reset() { + *m = Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList{} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) ProtoMessage() { +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) Descriptor() ([]byte, []int) { + return fileDescriptor_71d4c8eea0e1794c, []int{0, 0, 0, 0, 0} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList.Merge(m, src) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) GetRecord() []*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList { + if m != nil { + return m.Record + } + return nil +} + +type Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList struct { + TunnelName *string `protobuf:"bytes,51,opt,name=tunnel_name,json=tunnelName" json:"tunnel_name,omitempty"` + Source *string `protobuf:"bytes,52,opt,name=source" json:"source,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + Distinguisher *string `protobuf:"bytes,54,opt,name=distinguisher" json:"distinguisher,omitempty"` + LspName *string `protobuf:"bytes,55,opt,name=lsp_name,json=lspName" json:"lsp_name,omitempty"` + CounterName *string `protobuf:"bytes,56,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + InstanceIdentifier *uint32 `protobuf:"varint,57,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + Packets *uint64 `protobuf:"varint,58,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,59,opt,name=bytes" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) Reset() { + *m = Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList{} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) ProtoMessage() { +} +func (*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) Descriptor() ([]byte, []int) { + return fileDescriptor_71d4c8eea0e1794c, []int{0, 0, 0, 0, 0, 0} +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList.Merge(m, src) +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetTunnelName() string { + if m != nil && m.TunnelName != nil { + return *m.TunnelName + } + return "" +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetSource() string { + if m != nil && m.Source != nil { + return *m.Source + } + return "" +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetDistinguisher() string { + if m != nil && m.Distinguisher != nil { + return *m.Distinguisher + } + return "" +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetLspName() string { + if m != nil && m.LspName != nil { + return *m.LspName + } + return "" +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +var E_JnprMpls_SrTePerLspIngressStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Mpls_SrTePerLspIngressStats)(nil), + Field: 105, + Name: "jnpr_mpls_SrTePerLspIngressStats_ext", + Tag: "bytes,105,opt,name=jnpr_mpls_SrTePerLspIngressStats_ext", + Filename: "sr_te_per_lsp_ingress_stats.proto", +} + +func init() { + proto.RegisterType((*Mpls_SrTePerLspIngressStats)(nil), "mpls_SrTePerLspIngressStats") + proto.RegisterType((*Mpls_SrTePerLspIngressStatsSignalingProtocolsType)(nil), "mpls_SrTePerLspIngressStats.signaling_protocols_type") + proto.RegisterType((*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType)(nil), "mpls_SrTePerLspIngressStats.signaling_protocols_type.segment_routing_type") + proto.RegisterType((*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType)(nil), "mpls_SrTePerLspIngressStats.signaling_protocols_type.segment_routing_type.sr_te_per_lsp_ingress_policies_type") + proto.RegisterType((*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList)(nil), "mpls_SrTePerLspIngressStats.signaling_protocols_type.segment_routing_type.sr_te_per_lsp_ingress_policies_type.sr_te_per_lsp_ingress_policy_list") + proto.RegisterType((*Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList)(nil), "mpls_SrTePerLspIngressStats.signaling_protocols_type.segment_routing_type.sr_te_per_lsp_ingress_policies_type.sr_te_per_lsp_ingress_policy_list.record_list") + proto.RegisterExtension(E_JnprMpls_SrTePerLspIngressStatsExt) +} + +func init() { proto.RegisterFile("sr_te_per_lsp_ingress_stats.proto", fileDescriptor_71d4c8eea0e1794c) } + +var fileDescriptor_71d4c8eea0e1794c = []byte{ + // 609 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x4d, 0x6b, 0x13, 0x4f, + 0x1c, 0x66, 0xfa, 0xef, 0xeb, 0xe4, 0x5f, 0x85, 0xa9, 0xd0, 0x35, 0xad, 0x31, 0x55, 0x91, 0x80, + 0x74, 0x17, 0xaa, 0xf5, 0xa5, 0x5e, 0xa4, 0xe0, 0xa1, 0x45, 0x4b, 0xd9, 0x7a, 0xf2, 0x32, 0x6e, + 0x37, 0x3f, 0x37, 0x93, 0x6e, 0x66, 0x86, 0xf9, 0xfd, 0x56, 0x9b, 0xab, 0x07, 0xcf, 0xbd, 0x89, + 0xe0, 0x77, 0x10, 0x14, 0xfc, 0x0c, 0x1e, 0x15, 0xfc, 0x00, 0xd2, 0xef, 0x21, 0xc8, 0x66, 0x93, + 0x90, 0x96, 0x74, 0x11, 0x11, 0xf1, 0xfa, 0xbc, 0xcc, 0xf3, 0x3c, 0xc3, 0xec, 0xf2, 0x15, 0x74, + 0x92, 0x40, 0x5a, 0x70, 0x32, 0x45, 0x2b, 0x95, 0x4e, 0x1c, 0x20, 0x4a, 0xa4, 0x88, 0xd0, 0xb7, + 0xce, 0x90, 0xa9, 0x2e, 0x10, 0xa4, 0xd0, 0x01, 0x72, 0x5d, 0x49, 0xc6, 0x16, 0xe0, 0x95, 0xb7, + 0x9c, 0x2f, 0x75, 0x6c, 0x8a, 0x72, 0xcf, 0x3d, 0x81, 0x5d, 0x70, 0x8f, 0xd0, 0x6e, 0x15, 0xde, + 0xbd, 0xdc, 0x2a, 0x12, 0xbe, 0x80, 0x2a, 0xd1, 0x51, 0xaa, 0x74, 0x22, 0x7b, 0x96, 0xd8, 0xa4, + 0xe8, 0xbd, 0x61, 0x75, 0xd6, 0xa8, 0xac, 0xad, 0xfb, 0x25, 0x5e, 0x7f, 0x8c, 0x51, 0x52, 0xd7, + 0x42, 0x28, 0x86, 0xcc, 0xee, 0x80, 0xa8, 0x1e, 0xcd, 0x71, 0xef, 0x2c, 0x83, 0x20, 0x7e, 0x1e, + 0x21, 0xe9, 0x80, 0x26, 0xe9, 0x4c, 0x46, 0x4a, 0x27, 0x83, 0x06, 0xdb, 0xbf, 0xd5, 0xc0, 0x3f, + 0x75, 0x5a, 0x51, 0xeb, 0x5c, 0x1f, 0x0d, 0x0b, 0xb0, 0xfa, 0x63, 0x86, 0x5f, 0x18, 0x27, 0x14, + 0x1f, 0x18, 0xaf, 0x8d, 0xbf, 0x6f, 0x6b, 0x52, 0x15, 0x2b, 0x18, 0x5e, 0x90, 0xfe, 0x73, 0xf5, + 0xfc, 0xf2, 0xc4, 0x62, 0xc2, 0x45, 0x3c, 0x9d, 0xb4, 0xdb, 0xe7, 0xab, 0xef, 0xa7, 0xf9, 0xd5, + 0x5f, 0x38, 0x42, 0x7c, 0x65, 0x7c, 0xb9, 0x44, 0xd7, 0xcd, 0xa7, 0xfd, 0xd7, 0xa8, 0xac, 0x1d, + 0xb1, 0xbf, 0xbb, 0xad, 0x4c, 0xd3, 0x95, 0xa9, 0x42, 0x0a, 0x17, 0xc7, 0xaf, 0xef, 0x56, 0x3f, + 0x4e, 0x9e, 0xf5, 0x81, 0x8c, 0xd8, 0xc5, 0x27, 0xc6, 0xa7, 0x1d, 0xc4, 0xc6, 0x35, 0x07, 0x1b, + 0xdf, 0xfd, 0x73, 0x1b, 0xfd, 0xa2, 0x60, 0xb1, 0xb7, 0xdf, 0xb6, 0xfa, 0x6d, 0x82, 0x57, 0x46, + 0x70, 0x71, 0x9d, 0x57, 0x28, 0xd3, 0x1a, 0x52, 0xa9, 0xa3, 0x0e, 0x78, 0x37, 0xeb, 0xac, 0x31, + 0xb7, 0x39, 0xf5, 0xea, 0xc1, 0xc4, 0x2c, 0x0b, 0x79, 0xc1, 0xec, 0x44, 0x1d, 0x10, 0x97, 0xf8, + 0x34, 0x9a, 0xcc, 0xc5, 0xe0, 0xdd, 0x1a, 0x95, 0xf4, 0xc1, 0x9c, 0x36, 0x4e, 0x25, 0x4a, 0x7b, + 0xeb, 0x27, 0xe8, 0x02, 0x14, 0x37, 0xf8, 0x7c, 0x53, 0x61, 0xbe, 0x2f, 0x53, 0xd8, 0x02, 0xe7, + 0xdd, 0x1e, 0x55, 0x9d, 0xe4, 0x44, 0x9d, 0xcf, 0xe6, 0x8b, 0x7a, 0x7d, 0xee, 0x8c, 0xea, 0x66, + 0x52, 0xb4, 0xbd, 0x32, 0x2b, 0xfc, 0xff, 0xd8, 0x64, 0x9a, 0xc0, 0x15, 0xaa, 0xbb, 0xb9, 0x2a, + 0xac, 0xf4, 0xb1, 0x9e, 0x24, 0xe0, 0x0b, 0x4a, 0x23, 0x45, 0x3a, 0x06, 0xa9, 0x9a, 0xa0, 0x49, + 0x3d, 0x57, 0xe0, 0xbc, 0x7b, 0x75, 0xd6, 0x98, 0x0f, 0xc5, 0x80, 0xda, 0x1a, 0x32, 0xe2, 0x32, + 0x9f, 0xb1, 0x51, 0x7c, 0x00, 0x84, 0xde, 0x46, 0x9d, 0x35, 0x26, 0x7b, 0xa1, 0x1e, 0x0b, 0x07, + 0xa8, 0x58, 0xe2, 0x53, 0xfb, 0x5d, 0x02, 0xf4, 0xee, 0x8f, 0xd2, 0x05, 0xb6, 0xf1, 0x9a, 0xf1, + 0x6b, 0x6d, 0x6d, 0x9d, 0x2c, 0x79, 0x03, 0x12, 0x0e, 0x49, 0x2c, 0xfa, 0xdb, 0x99, 0x56, 0x16, + 0xdc, 0x0e, 0xd0, 0x4b, 0xe3, 0x0e, 0x70, 0x0f, 0x34, 0x1a, 0x87, 0x9e, 0xea, 0xfd, 0x04, 0x96, + 0xcb, 0x1e, 0x51, 0xb8, 0x92, 0x47, 0x3c, 0xb6, 0x29, 0x8e, 0xe7, 0x1f, 0x1e, 0xd2, 0xe6, 0xb3, + 0xcf, 0xc7, 0x35, 0xf6, 0xe5, 0xb8, 0xc6, 0xbe, 0x1f, 0xd7, 0xd8, 0xd3, 0x30, 0x51, 0xe4, 0xb7, + 0x8b, 0x40, 0x5f, 0x03, 0x05, 0x2a, 0x86, 0x7d, 0x70, 0x49, 0xd0, 0x82, 0x28, 0xa5, 0xd6, 0xbe, + 0xa1, 0x55, 0xa5, 0x13, 0x40, 0x5a, 0x6d, 0x93, 0x5a, 0xd5, 0x11, 0xa9, 0x17, 0x10, 0xd8, 0x83, + 0x24, 0x68, 0x93, 0x0a, 0xa2, 0x66, 0x64, 0x09, 0x1c, 0x06, 0xb2, 0x9d, 0x69, 0x83, 0x01, 0xc6, + 0x2d, 0xe8, 0x44, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x10, 0x11, 0xbe, 0x3e, 0x3f, 0x06, 0x00, + 0x00, +} + +func (m *Mpls_SrTePerLspIngressStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspIngressStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspIngressStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SignalingProtocols != nil { + { + size, err := m.SignalingProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SegmentRouting != nil { + { + size, err := m.SegmentRouting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SrTePerLspIngressPolicies != nil { + { + size, err := m.SrTePerLspIngressPolicies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SrTePerLspIngressPolicy) > 0 { + for iNdEx := len(m.SrTePerLspIngressPolicy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SrTePerLspIngressPolicy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Record) > 0 { + for iNdEx := len(m.Record) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Record[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bytes != nil { + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.Packets != nil { + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.LspName != nil { + i -= len(*m.LspName) + copy(dAtA[i:], *m.LspName) + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(len(*m.LspName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Distinguisher != nil { + i -= len(*m.Distinguisher) + copy(dAtA[i:], *m.Distinguisher) + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(len(*m.Distinguisher))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Source != nil { + i -= len(*m.Source) + copy(dAtA[i:], *m.Source) + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(len(*m.Source))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.TunnelName != nil { + i -= len(*m.TunnelName) + copy(dAtA[i:], *m.TunnelName) + i = encodeVarintSrTePerLspIngressStats(dAtA, i, uint64(len(*m.TunnelName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintSrTePerLspIngressStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSrTePerLspIngressStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Mpls_SrTePerLspIngressStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalingProtocols != nil { + l = m.SignalingProtocols.Size() + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SegmentRouting != nil { + l = m.SegmentRouting.Size() + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SrTePerLspIngressPolicies != nil { + l = m.SrTePerLspIngressPolicies.Size() + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SrTePerLspIngressPolicy) > 0 { + for _, e := range m.SrTePerLspIngressPolicy { + l = e.Size() + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Record) > 0 { + for _, e := range m.Record { + l = e.Size() + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelName != nil { + l = len(*m.TunnelName) + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.Source != nil { + l = len(*m.Source) + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.Distinguisher != nil { + l = len(*m.Distinguisher) + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.LspName != nil { + l = len(*m.LspName) + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 2 + l + sovSrTePerLspIngressStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 2 + sovSrTePerLspIngressStats(uint64(*m.InstanceIdentifier)) + } + if m.Packets != nil { + n += 2 + sovSrTePerLspIngressStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 2 + sovSrTePerLspIngressStats(uint64(*m.Bytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrTePerLspIngressStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrTePerLspIngressStats(x uint64) (n int) { + return sovSrTePerLspIngressStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Mpls_SrTePerLspIngressStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_SrTePerLspIngressStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_SrTePerLspIngressStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalingProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SignalingProtocols == nil { + m.SignalingProtocols = &Mpls_SrTePerLspIngressStatsSignalingProtocolsType{} + } + if err := m.SignalingProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: signaling_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: signaling_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentRouting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentRouting == nil { + m.SegmentRouting = &Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType{} + } + if err := m.SegmentRouting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_routing_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_routing_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrTePerLspIngressPolicies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SrTePerLspIngressPolicies == nil { + m.SrTePerLspIngressPolicies = &Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType{} + } + if err := m.SrTePerLspIngressPolicies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sr_te_per_lsp_ingress_policies_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sr_te_per_lsp_ingress_policies_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrTePerLspIngressPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SrTePerLspIngressPolicy = append(m.SrTePerLspIngressPolicy, &Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList{}) + if err := m.SrTePerLspIngressPolicy[len(m.SrTePerLspIngressPolicy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sr_te_per_lsp_ingress_policy_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sr_te_per_lsp_ingress_policy_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Record = append(m.Record, &Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList{}) + if err := m.Record[len(m.Record)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspIngressStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspIngressPoliciesTypeSrTePerLspIngressPolicyListRecordList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: record_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: record_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TunnelName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Source = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distinguisher", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Distinguisher = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LspName = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspIngressStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspIngressStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrTePerLspIngressStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTePerLspIngressStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrTePerLspIngressStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrTePerLspIngressStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrTePerLspIngressStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrTePerLspIngressStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrTePerLspIngressStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrTePerLspIngressStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_te_per_lsp_ingress_stats.proto b/schema/sr_te_per_lsp_ingress_stats.proto new file mode 100755 index 0000000..8f0c621 --- /dev/null +++ b/schema/sr_te_per_lsp_ingress_stats.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional mpls_SrTePerLspIngressStats jnpr_mpls_SrTePerLspIngressStats_ext = 105; +} + +message mpls_SrTePerLspIngressStats { + optional signaling_protocols_type signaling_protocols = 151; + message signaling_protocols_type { + optional segment_routing_type segment_routing = 151; + message segment_routing_type { + optional sr_te_per_lsp_ingress_policies_type sr_te_per_lsp_ingress_policies = 151; + message sr_te_per_lsp_ingress_policies_type { + message sr_te_per_lsp_ingress_policy_list { + message record_list { + optional string tunnel_name = 51 [(telemetry_options).is_key = true]; + optional string source = 52 [(telemetry_options).is_key = true]; + optional string origin = 53 [(telemetry_options).is_key = true]; + optional string distinguisher = 54 [(telemetry_options).is_key = true]; + optional string lsp_name = 55 [(telemetry_options).is_key = true]; + optional string counter_name = 56; + optional uint32 instance_identifier = 57; + optional uint64 packets = 58 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 59 [(telemetry_options).is_counter = true]; + } + repeated record_list record = 151; + } + repeated sr_te_per_lsp_ingress_policy_list sr_te_per_lsp_ingress_policy = 151; + } + } + } +} diff --git a/schema/sr_te_per_lsp_transit_stats.pb.go b/schema/sr_te_per_lsp_transit_stats.pb.go new file mode 100644 index 0000000..008c4fb --- /dev/null +++ b/schema/sr_te_per_lsp_transit_stats.pb.go @@ -0,0 +1,1756 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_te_per_lsp_transit_stats.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Mpls_SrTePerLspTransitStats struct { + SignalingProtocols *Mpls_SrTePerLspTransitStatsSignalingProtocolsType `protobuf:"bytes,151,opt,name=signaling_protocols,json=signalingProtocols" json:"signaling_protocols,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspTransitStats) Reset() { *m = Mpls_SrTePerLspTransitStats{} } +func (m *Mpls_SrTePerLspTransitStats) String() string { return proto.CompactTextString(m) } +func (*Mpls_SrTePerLspTransitStats) ProtoMessage() {} +func (*Mpls_SrTePerLspTransitStats) Descriptor() ([]byte, []int) { + return fileDescriptor_b9b4e7ea4823da5e, []int{0} +} +func (m *Mpls_SrTePerLspTransitStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspTransitStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspTransitStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspTransitStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspTransitStats.Merge(m, src) +} +func (m *Mpls_SrTePerLspTransitStats) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspTransitStats) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspTransitStats.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspTransitStats proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspTransitStats) GetSignalingProtocols() *Mpls_SrTePerLspTransitStatsSignalingProtocolsType { + if m != nil { + return m.SignalingProtocols + } + return nil +} + +type Mpls_SrTePerLspTransitStatsSignalingProtocolsType struct { + SegmentRouting *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType `protobuf:"bytes,151,opt,name=segment_routing,json=segmentRouting" json:"segment_routing,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) Reset() { + *m = Mpls_SrTePerLspTransitStatsSignalingProtocolsType{} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsType) ProtoMessage() {} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9b4e7ea4823da5e, []int{0, 0} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsType.Merge(m, src) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsType.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsType proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) GetSegmentRouting() *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType { + if m != nil { + return m.SegmentRouting + } + return nil +} + +type Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType struct { + SrTePerLspTransitPolicies *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType `protobuf:"bytes,151,opt,name=sr_te_per_lsp_transit_policies,json=srTePerLspTransitPolicies" json:"sr_te_per_lsp_transit_policies,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) Reset() { + *m = Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType{} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) ProtoMessage() {} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9b4e7ea4823da5e, []int{0, 0, 0} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType.Merge(m, src) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) GetSrTePerLspTransitPolicies() *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType { + if m != nil { + return m.SrTePerLspTransitPolicies + } + return nil +} + +type Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType struct { + SrTePerLspTransitPolicy []*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList `protobuf:"bytes,151,rep,name=sr_te_per_lsp_transit_policy,json=srTePerLspTransitPolicy" json:"sr_te_per_lsp_transit_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) Reset() { + *m = Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType{} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) ProtoMessage() { +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) Descriptor() ([]byte, []int) { + return fileDescriptor_b9b4e7ea4823da5e, []int{0, 0, 0, 0} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType.Merge(m, src) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) GetSrTePerLspTransitPolicy() []*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList { + if m != nil { + return m.SrTePerLspTransitPolicy + } + return nil +} + +type Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList struct { + Record []*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList `protobuf:"bytes,151,rep,name=record" json:"record,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) Reset() { + *m = Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList{} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) ProtoMessage() { +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) Descriptor() ([]byte, []int) { + return fileDescriptor_b9b4e7ea4823da5e, []int{0, 0, 0, 0, 0} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList.Merge(m, src) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) GetRecord() []*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList { + if m != nil { + return m.Record + } + return nil +} + +type Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList struct { + TunnelName *string `protobuf:"bytes,51,opt,name=tunnel_name,json=tunnelName" json:"tunnel_name,omitempty"` + Source *string `protobuf:"bytes,52,opt,name=source" json:"source,omitempty"` + Origin *string `protobuf:"bytes,53,opt,name=origin" json:"origin,omitempty"` + Distinguisher *string `protobuf:"bytes,54,opt,name=distinguisher" json:"distinguisher,omitempty"` + LspName *string `protobuf:"bytes,55,opt,name=lsp_name,json=lspName" json:"lsp_name,omitempty"` + CounterName *string `protobuf:"bytes,56,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + InstanceIdentifier *uint32 `protobuf:"varint,57,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + Packets *uint64 `protobuf:"varint,58,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,59,opt,name=bytes" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) Reset() { + *m = Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList{} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) String() string { + return proto.CompactTextString(m) +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) ProtoMessage() { +} +func (*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) Descriptor() ([]byte, []int) { + return fileDescriptor_b9b4e7ea4823da5e, []int{0, 0, 0, 0, 0, 0} +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList.Merge(m, src) +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) XXX_Size() int { + return m.Size() +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) XXX_DiscardUnknown() { + xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList.DiscardUnknown(m) +} + +var xxx_messageInfo_Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList proto.InternalMessageInfo + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetTunnelName() string { + if m != nil && m.TunnelName != nil { + return *m.TunnelName + } + return "" +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetSource() string { + if m != nil && m.Source != nil { + return *m.Source + } + return "" +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetOrigin() string { + if m != nil && m.Origin != nil { + return *m.Origin + } + return "" +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetDistinguisher() string { + if m != nil && m.Distinguisher != nil { + return *m.Distinguisher + } + return "" +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetLspName() string { + if m != nil && m.LspName != nil { + return *m.LspName + } + return "" +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +var E_JnprMpls_SrTePerLspTransitStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*Mpls_SrTePerLspTransitStats)(nil), + Field: 104, + Name: "jnpr_mpls_SrTePerLspTransitStats_ext", + Tag: "bytes,104,opt,name=jnpr_mpls_SrTePerLspTransitStats_ext", + Filename: "sr_te_per_lsp_transit_stats.proto", +} + +func init() { + proto.RegisterType((*Mpls_SrTePerLspTransitStats)(nil), "mpls_SrTePerLspTransitStats") + proto.RegisterType((*Mpls_SrTePerLspTransitStatsSignalingProtocolsType)(nil), "mpls_SrTePerLspTransitStats.signaling_protocols_type") + proto.RegisterType((*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType)(nil), "mpls_SrTePerLspTransitStats.signaling_protocols_type.segment_routing_type") + proto.RegisterType((*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType)(nil), "mpls_SrTePerLspTransitStats.signaling_protocols_type.segment_routing_type.sr_te_per_lsp_transit_policies_type") + proto.RegisterType((*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList)(nil), "mpls_SrTePerLspTransitStats.signaling_protocols_type.segment_routing_type.sr_te_per_lsp_transit_policies_type.sr_te_per_lsp_transit_policy_list") + proto.RegisterType((*Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList)(nil), "mpls_SrTePerLspTransitStats.signaling_protocols_type.segment_routing_type.sr_te_per_lsp_transit_policies_type.sr_te_per_lsp_transit_policy_list.record_list") + proto.RegisterExtension(E_JnprMpls_SrTePerLspTransitStatsExt) +} + +func init() { proto.RegisterFile("sr_te_per_lsp_transit_stats.proto", fileDescriptor_b9b4e7ea4823da5e) } + +var fileDescriptor_b9b4e7ea4823da5e = []byte{ + // 609 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x4d, 0x6b, 0x13, 0x4f, + 0x1c, 0x66, 0xfa, 0xef, 0xeb, 0xe4, 0x5f, 0x85, 0xa9, 0xd0, 0x35, 0xad, 0x31, 0x55, 0x91, 0x80, + 0x74, 0x17, 0xaa, 0xf5, 0xa5, 0x5e, 0xa4, 0xe0, 0xc1, 0xa2, 0xa5, 0x6c, 0x7b, 0xf2, 0x32, 0x6e, + 0x37, 0x3f, 0x37, 0x93, 0x6e, 0x66, 0x86, 0xf9, 0xfd, 0x56, 0x9b, 0xab, 0x07, 0xcf, 0xbd, 0x89, + 0xe0, 0x77, 0x10, 0x14, 0xfc, 0x0c, 0x1e, 0x15, 0xfc, 0x00, 0xd2, 0xef, 0x21, 0xc8, 0x66, 0x93, + 0x90, 0x96, 0x74, 0x11, 0x11, 0xf1, 0xfa, 0xbc, 0xcc, 0xf3, 0x3c, 0xc3, 0xec, 0xf2, 0x15, 0x74, + 0x92, 0x40, 0x5a, 0x70, 0x32, 0x45, 0x2b, 0xc9, 0x45, 0x1a, 0x15, 0x49, 0xa4, 0x88, 0xd0, 0xb7, + 0xce, 0x90, 0xa9, 0x2e, 0x10, 0xa4, 0xd0, 0x01, 0x72, 0x5d, 0x49, 0xc6, 0x16, 0xe0, 0x95, 0xb7, + 0x9c, 0x2f, 0x75, 0x6c, 0x8a, 0x72, 0xd7, 0xed, 0xc1, 0x0e, 0xb8, 0xc7, 0x68, 0xf7, 0x0a, 0xef, + 0x6e, 0x6e, 0x15, 0x09, 0x5f, 0x40, 0x95, 0xe8, 0x28, 0x55, 0x3a, 0x91, 0x3d, 0x4b, 0x6c, 0x52, + 0xf4, 0xde, 0xb0, 0x3a, 0x6b, 0x54, 0xd6, 0xd6, 0xfd, 0x12, 0xaf, 0x3f, 0xc6, 0x28, 0xa9, 0x6b, + 0x21, 0x14, 0x43, 0x66, 0x67, 0x40, 0x54, 0x8f, 0xe6, 0xb8, 0x77, 0x96, 0x41, 0x10, 0x3f, 0x8f, + 0x90, 0x74, 0x40, 0x93, 0x74, 0x26, 0x23, 0xa5, 0x93, 0x41, 0x83, 0xad, 0xdf, 0x6a, 0xe0, 0x9f, + 0x3a, 0xad, 0xa8, 0x75, 0xae, 0x8f, 0x86, 0x05, 0x58, 0xfd, 0x31, 0xc3, 0x2f, 0x8c, 0x13, 0x8a, + 0x0f, 0x8c, 0xd7, 0xc6, 0xdf, 0xb7, 0x35, 0xa9, 0x8a, 0x15, 0x0c, 0x2f, 0x48, 0xff, 0xb9, 0x7a, + 0x7e, 0x79, 0x62, 0x31, 0xe1, 0x22, 0x9e, 0x4e, 0xda, 0xe9, 0xf3, 0xd5, 0xf7, 0xd3, 0xfc, 0xea, + 0x2f, 0x1c, 0x21, 0xbe, 0x32, 0xbe, 0x5c, 0xa2, 0xeb, 0xe6, 0xd3, 0xfe, 0x6b, 0x54, 0xd6, 0x8e, + 0xd8, 0xdf, 0xdd, 0x56, 0xa6, 0xe9, 0xca, 0x54, 0x21, 0x85, 0x8b, 0xe3, 0xd7, 0x77, 0xab, 0x1f, + 0x27, 0xcf, 0xfa, 0x40, 0x46, 0xec, 0xe2, 0x13, 0xe3, 0xd3, 0x0e, 0x62, 0xe3, 0x9a, 0x83, 0x8d, + 0xef, 0xfe, 0xb9, 0x8d, 0x7e, 0x51, 0xb0, 0xd8, 0xdb, 0x6f, 0x5b, 0xfd, 0x36, 0xc1, 0x2b, 0x23, + 0xb8, 0xb8, 0xce, 0x2b, 0x94, 0x69, 0x0d, 0xa9, 0xd4, 0x51, 0x07, 0xbc, 0x9b, 0x75, 0xd6, 0x98, + 0xdb, 0x9c, 0x7a, 0xf5, 0x60, 0x62, 0x96, 0x85, 0xbc, 0x60, 0xb6, 0xa3, 0x0e, 0x88, 0x4b, 0x7c, + 0x1a, 0x4d, 0xe6, 0x62, 0xf0, 0x6e, 0x8d, 0x4a, 0xfa, 0x60, 0x4e, 0x1b, 0xa7, 0x12, 0xa5, 0xbd, + 0xf5, 0x13, 0x74, 0x01, 0x8a, 0x1b, 0x7c, 0xbe, 0xa9, 0x30, 0xdf, 0x97, 0x29, 0x6c, 0x81, 0xf3, + 0x6e, 0x8f, 0xaa, 0x4e, 0x72, 0xa2, 0xce, 0x67, 0xf3, 0x45, 0xbd, 0x3e, 0x77, 0x46, 0x75, 0x33, + 0x29, 0xda, 0x5e, 0x99, 0x15, 0xfe, 0x7f, 0x6c, 0x32, 0x4d, 0xe0, 0x0a, 0xd5, 0xdd, 0x5c, 0x15, + 0x56, 0xfa, 0x58, 0x4f, 0x12, 0xf0, 0x05, 0xa5, 0x91, 0x22, 0x1d, 0x83, 0x54, 0x4d, 0xd0, 0xa4, + 0x9e, 0x2b, 0x70, 0xde, 0xbd, 0x3a, 0x6b, 0xcc, 0x87, 0x62, 0x40, 0x3d, 0x1a, 0x32, 0xe2, 0x32, + 0x9f, 0xb1, 0x51, 0x7c, 0x00, 0x84, 0xde, 0x46, 0x9d, 0x35, 0x26, 0x7b, 0xa1, 0x1e, 0x0b, 0x07, + 0xa8, 0x58, 0xe2, 0x53, 0xfb, 0x5d, 0x02, 0xf4, 0xee, 0x8f, 0xd2, 0x05, 0xb6, 0xf1, 0x9a, 0xf1, + 0x6b, 0x6d, 0x6d, 0x9d, 0x2c, 0x79, 0x03, 0x12, 0x0e, 0x49, 0x2c, 0xfa, 0x5b, 0x99, 0x56, 0x16, + 0xdc, 0x36, 0xd0, 0x4b, 0xe3, 0x0e, 0x70, 0x17, 0x34, 0x1a, 0x87, 0x5e, 0xab, 0xf7, 0x13, 0x58, + 0x2e, 0x7b, 0x44, 0xe1, 0x4a, 0x1e, 0xf1, 0xc4, 0xa6, 0x38, 0x9e, 0x7f, 0x78, 0x48, 0x9b, 0xcf, + 0x3e, 0x1f, 0xd7, 0xd8, 0x97, 0xe3, 0x1a, 0xfb, 0x7e, 0x5c, 0x63, 0x4f, 0xc3, 0x44, 0x91, 0xdf, + 0x2e, 0x02, 0x7d, 0x0d, 0x14, 0xa8, 0x18, 0xf6, 0xc1, 0x25, 0x41, 0x0b, 0xa2, 0x94, 0x5a, 0xfb, + 0x86, 0x56, 0x95, 0x4e, 0x00, 0x69, 0xb5, 0x4d, 0x6a, 0x55, 0x47, 0xa4, 0x5e, 0x40, 0x60, 0x0f, + 0x92, 0xa0, 0x4d, 0x2a, 0x88, 0x9a, 0x91, 0x25, 0x70, 0x18, 0xc8, 0x76, 0xa6, 0x0d, 0x06, 0x18, + 0xb7, 0xa0, 0x13, 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x6e, 0x68, 0x2b, 0x3f, 0x06, 0x00, + 0x00, +} + +func (m *Mpls_SrTePerLspTransitStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspTransitStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspTransitStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SignalingProtocols != nil { + { + size, err := m.SignalingProtocols.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SegmentRouting != nil { + { + size, err := m.SegmentRouting.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.SrTePerLspTransitPolicies != nil { + { + size, err := m.SrTePerLspTransitPolicies.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SrTePerLspTransitPolicy) > 0 { + for iNdEx := len(m.SrTePerLspTransitPolicy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SrTePerLspTransitPolicy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Record) > 0 { + for iNdEx := len(m.Record) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Record[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Bytes != nil { + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd8 + } + if m.Packets != nil { + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xd0 + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc8 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc2 + } + if m.LspName != nil { + i -= len(*m.LspName) + copy(dAtA[i:], *m.LspName) + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(len(*m.LspName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xba + } + if m.Distinguisher != nil { + i -= len(*m.Distinguisher) + copy(dAtA[i:], *m.Distinguisher) + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(len(*m.Distinguisher))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + if m.Origin != nil { + i -= len(*m.Origin) + copy(dAtA[i:], *m.Origin) + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(len(*m.Origin))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + if m.Source != nil { + i -= len(*m.Source) + copy(dAtA[i:], *m.Source) + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(len(*m.Source))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + if m.TunnelName != nil { + i -= len(*m.TunnelName) + copy(dAtA[i:], *m.TunnelName) + i = encodeVarintSrTePerLspTransitStats(dAtA, i, uint64(len(*m.TunnelName))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func encodeVarintSrTePerLspTransitStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSrTePerLspTransitStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Mpls_SrTePerLspTransitStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalingProtocols != nil { + l = m.SignalingProtocols.Size() + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SegmentRouting != nil { + l = m.SegmentRouting.Size() + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SrTePerLspTransitPolicies != nil { + l = m.SrTePerLspTransitPolicies.Size() + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SrTePerLspTransitPolicy) > 0 { + for _, e := range m.SrTePerLspTransitPolicy { + l = e.Size() + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Record) > 0 { + for _, e := range m.Record { + l = e.Size() + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelName != nil { + l = len(*m.TunnelName) + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.Source != nil { + l = len(*m.Source) + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.Origin != nil { + l = len(*m.Origin) + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.Distinguisher != nil { + l = len(*m.Distinguisher) + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.LspName != nil { + l = len(*m.LspName) + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 2 + l + sovSrTePerLspTransitStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 2 + sovSrTePerLspTransitStats(uint64(*m.InstanceIdentifier)) + } + if m.Packets != nil { + n += 2 + sovSrTePerLspTransitStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 2 + sovSrTePerLspTransitStats(uint64(*m.Bytes)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrTePerLspTransitStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrTePerLspTransitStats(x uint64) (n int) { + return sovSrTePerLspTransitStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Mpls_SrTePerLspTransitStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: mpls_SrTePerLspTransitStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: mpls_SrTePerLspTransitStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalingProtocols", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SignalingProtocols == nil { + m.SignalingProtocols = &Mpls_SrTePerLspTransitStatsSignalingProtocolsType{} + } + if err := m.SignalingProtocols.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: signaling_protocols_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: signaling_protocols_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentRouting", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentRouting == nil { + m.SegmentRouting = &Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType{} + } + if err := m.SegmentRouting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: segment_routing_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: segment_routing_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrTePerLspTransitPolicies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SrTePerLspTransitPolicies == nil { + m.SrTePerLspTransitPolicies = &Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType{} + } + if err := m.SrTePerLspTransitPolicies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sr_te_per_lsp_transit_policies_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sr_te_per_lsp_transit_policies_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SrTePerLspTransitPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SrTePerLspTransitPolicy = append(m.SrTePerLspTransitPolicy, &Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList{}) + if err := m.SrTePerLspTransitPolicy[len(m.SrTePerLspTransitPolicy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: sr_te_per_lsp_transit_policy_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: sr_te_per_lsp_transit_policy_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Record = append(m.Record, &Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList{}) + if err := m.Record[len(m.Record)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Mpls_SrTePerLspTransitStatsSignalingProtocolsTypeSegmentRoutingTypeSrTePerLspTransitPoliciesTypeSrTePerLspTransitPolicyListRecordList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: record_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: record_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TunnelName = &s + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Source = &s + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Origin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Origin = &s + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distinguisher", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Distinguisher = &s + iNdEx = postIndex + case 55: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LspName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.LspName = &s + iNdEx = postIndex + case 56: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 57: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 58: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 59: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + default: + iNdEx = preIndex + skippy, err := skipSrTePerLspTransitStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTePerLspTransitStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrTePerLspTransitStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTePerLspTransitStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrTePerLspTransitStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrTePerLspTransitStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrTePerLspTransitStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrTePerLspTransitStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrTePerLspTransitStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrTePerLspTransitStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_te_per_lsp_transit_stats.proto b/schema/sr_te_per_lsp_transit_stats.proto new file mode 100755 index 0000000..ff0e68e --- /dev/null +++ b/schema/sr_te_per_lsp_transit_stats.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional mpls_SrTePerLspTransitStats jnpr_mpls_SrTePerLspTransitStats_ext = 104; +} + +message mpls_SrTePerLspTransitStats { + optional signaling_protocols_type signaling_protocols = 151; + message signaling_protocols_type { + optional segment_routing_type segment_routing = 151; + message segment_routing_type { + optional sr_te_per_lsp_transit_policies_type sr_te_per_lsp_transit_policies = 151; + message sr_te_per_lsp_transit_policies_type { + message sr_te_per_lsp_transit_policy_list { + message record_list { + optional string tunnel_name = 51 [(telemetry_options).is_key = true]; + optional string source = 52 [(telemetry_options).is_key = true]; + optional string origin = 53 [(telemetry_options).is_key = true]; + optional string distinguisher = 54 [(telemetry_options).is_key = true]; + optional string lsp_name = 55 [(telemetry_options).is_key = true]; + optional string counter_name = 56; + optional uint32 instance_identifier = 57; + optional uint64 packets = 58 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 59 [(telemetry_options).is_counter = true]; + } + repeated record_list record = 151; + } + repeated sr_te_per_lsp_transit_policy_list sr_te_per_lsp_transit_policy = 151; + } + } + } +} diff --git a/schema/sr_te_transit_tunnel_stats.pb.go b/schema/sr_te_transit_tunnel_stats.pb.go new file mode 100644 index 0000000..9ca7a98 --- /dev/null +++ b/schema/sr_te_transit_tunnel_stats.pb.go @@ -0,0 +1,1000 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: sr_te_transit_tunnel_stats.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// +// Top-level message +// +type SrTeTransitTunnelStats struct { + // List of SR TE stats per BSID, IP and Color records + TeTransitTunnelStats []*SegmentRoutingTeTransitTunnelRecord `protobuf:"bytes,1,rep,name=te_transit_tunnel_stats,json=teTransitTunnelStats" json:"te_transit_tunnel_stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SrTeTransitTunnelStats) Reset() { *m = SrTeTransitTunnelStats{} } +func (m *SrTeTransitTunnelStats) String() string { return proto.CompactTextString(m) } +func (*SrTeTransitTunnelStats) ProtoMessage() {} +func (*SrTeTransitTunnelStats) Descriptor() ([]byte, []int) { + return fileDescriptor_27e42ab698c19b99, []int{0} +} +func (m *SrTeTransitTunnelStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SrTeTransitTunnelStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SrTeTransitTunnelStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SrTeTransitTunnelStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SrTeTransitTunnelStats.Merge(m, src) +} +func (m *SrTeTransitTunnelStats) XXX_Size() int { + return m.Size() +} +func (m *SrTeTransitTunnelStats) XXX_DiscardUnknown() { + xxx_messageInfo_SrTeTransitTunnelStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SrTeTransitTunnelStats proto.InternalMessageInfo + +func (m *SrTeTransitTunnelStats) GetTeTransitTunnelStats() []*SegmentRoutingTeTransitTunnelRecord { + if m != nil { + return m.TeTransitTunnelStats + } + return nil +} + +// +// SR TE Transit Tunnel statistics record +// +type SegmentRoutingTeTransitTunnelRecord struct { + // Name of the tunnel + TunnelName *string `protobuf:"bytes,1,req,name=tunnel_name,json=tunnelName" json:"tunnel_name,omitempty"` + // Instance Identifier for cases when RPD creates multiple instances + InstanceIdentifier *uint32 `protobuf:"varint,2,opt,name=instance_identifier,json=instanceIdentifier" json:"instance_identifier,omitempty"` + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + CounterName *string `protobuf:"bytes,3,opt,name=counter_name,json=counterName" json:"counter_name,omitempty"` + // Statistics + Stats *SegmentRoutingTeTransitTunnelStats `protobuf:"bytes,4,opt,name=stats" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeTransitTunnelRecord) Reset() { *m = SegmentRoutingTeTransitTunnelRecord{} } +func (m *SegmentRoutingTeTransitTunnelRecord) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeTransitTunnelRecord) ProtoMessage() {} +func (*SegmentRoutingTeTransitTunnelRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_27e42ab698c19b99, []int{1} +} +func (m *SegmentRoutingTeTransitTunnelRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeTransitTunnelRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeTransitTunnelRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeTransitTunnelRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeTransitTunnelRecord.Merge(m, src) +} +func (m *SegmentRoutingTeTransitTunnelRecord) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeTransitTunnelRecord) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeTransitTunnelRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeTransitTunnelRecord proto.InternalMessageInfo + +func (m *SegmentRoutingTeTransitTunnelRecord) GetTunnelName() string { + if m != nil && m.TunnelName != nil { + return *m.TunnelName + } + return "" +} + +func (m *SegmentRoutingTeTransitTunnelRecord) GetInstanceIdentifier() uint32 { + if m != nil && m.InstanceIdentifier != nil { + return *m.InstanceIdentifier + } + return 0 +} + +func (m *SegmentRoutingTeTransitTunnelRecord) GetCounterName() string { + if m != nil && m.CounterName != nil { + return *m.CounterName + } + return "" +} + +func (m *SegmentRoutingTeTransitTunnelRecord) GetStats() *SegmentRoutingTeTransitTunnelStats { + if m != nil { + return m.Stats + } + return nil +} + +type SegmentRoutingTeTransitTunnelStats struct { + // Packet and Byte statistics + Packets *uint64 `protobuf:"varint,1,opt,name=packets" json:"packets,omitempty"` + Bytes *uint64 `protobuf:"varint,2,opt,name=bytes" json:"bytes,omitempty"` + // Rates of the above counters + PacketRate *uint64 `protobuf:"varint,3,opt,name=packet_rate,json=packetRate" json:"packet_rate,omitempty"` + ByteRate *uint64 `protobuf:"varint,4,opt,name=byte_rate,json=byteRate" json:"byte_rate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SegmentRoutingTeTransitTunnelStats) Reset() { *m = SegmentRoutingTeTransitTunnelStats{} } +func (m *SegmentRoutingTeTransitTunnelStats) String() string { return proto.CompactTextString(m) } +func (*SegmentRoutingTeTransitTunnelStats) ProtoMessage() {} +func (*SegmentRoutingTeTransitTunnelStats) Descriptor() ([]byte, []int) { + return fileDescriptor_27e42ab698c19b99, []int{2} +} +func (m *SegmentRoutingTeTransitTunnelStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SegmentRoutingTeTransitTunnelStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SegmentRoutingTeTransitTunnelStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SegmentRoutingTeTransitTunnelStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentRoutingTeTransitTunnelStats.Merge(m, src) +} +func (m *SegmentRoutingTeTransitTunnelStats) XXX_Size() int { + return m.Size() +} +func (m *SegmentRoutingTeTransitTunnelStats) XXX_DiscardUnknown() { + xxx_messageInfo_SegmentRoutingTeTransitTunnelStats.DiscardUnknown(m) +} + +var xxx_messageInfo_SegmentRoutingTeTransitTunnelStats proto.InternalMessageInfo + +func (m *SegmentRoutingTeTransitTunnelStats) GetPackets() uint64 { + if m != nil && m.Packets != nil { + return *m.Packets + } + return 0 +} + +func (m *SegmentRoutingTeTransitTunnelStats) GetBytes() uint64 { + if m != nil && m.Bytes != nil { + return *m.Bytes + } + return 0 +} + +func (m *SegmentRoutingTeTransitTunnelStats) GetPacketRate() uint64 { + if m != nil && m.PacketRate != nil { + return *m.PacketRate + } + return 0 +} + +func (m *SegmentRoutingTeTransitTunnelStats) GetByteRate() uint64 { + if m != nil && m.ByteRate != nil { + return *m.ByteRate + } + return 0 +} + +var E_JnprSrTeTransitTunnelStatsExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*SrTeTransitTunnelStats)(nil), + Field: 28, + Name: "jnpr_sr_te_transit_tunnel_stats_ext", + Tag: "bytes,28,opt,name=jnpr_sr_te_transit_tunnel_stats_ext", + Filename: "sr_te_transit_tunnel_stats.proto", +} + +func init() { + proto.RegisterType((*SrTeTransitTunnelStats)(nil), "SrTeTransitTunnelStats") + proto.RegisterType((*SegmentRoutingTeTransitTunnelRecord)(nil), "SegmentRoutingTeTransitTunnelRecord") + proto.RegisterType((*SegmentRoutingTeTransitTunnelStats)(nil), "SegmentRoutingTeTransitTunnelStats") + proto.RegisterExtension(E_JnprSrTeTransitTunnelStatsExt) +} + +func init() { proto.RegisterFile("sr_te_transit_tunnel_stats.proto", fileDescriptor_27e42ab698c19b99) } + +var fileDescriptor_27e42ab698c19b99 = []byte{ + // 446 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0x8e, 0xd3, 0x40, + 0x10, 0xc6, 0xb5, 0xb9, 0x44, 0xdc, 0x6d, 0xa0, 0xf1, 0x21, 0x62, 0xf1, 0x27, 0x58, 0x0e, 0x42, + 0x6e, 0x62, 0x4b, 0x57, 0x20, 0x41, 0x85, 0x4e, 0xa2, 0x80, 0xe2, 0x8a, 0x4d, 0x2a, 0x28, 0x96, + 0x8d, 0x33, 0x38, 0xeb, 0xc4, 0xb3, 0xd6, 0xee, 0x18, 0xee, 0x24, 0x2a, 0x1e, 0x88, 0xe7, 0xa0, + 0xe4, 0x11, 0x50, 0x4a, 0x9e, 0x02, 0xd9, 0x7b, 0x39, 0x10, 0xca, 0xc1, 0xb5, 0xf3, 0xfd, 0xbe, + 0xf9, 0xf6, 0x1b, 0x2d, 0x8f, 0x9c, 0x95, 0x04, 0x92, 0xac, 0x42, 0xa7, 0x49, 0x52, 0x83, 0x08, + 0x1b, 0xe9, 0x48, 0x91, 0x4b, 0x6b, 0x6b, 0xc8, 0xdc, 0x3f, 0x26, 0xd8, 0x40, 0x05, 0x64, 0x2f, + 0x24, 0x99, 0xda, 0x0f, 0xe3, 0x86, 0xdf, 0x9b, 0xd9, 0x39, 0xcc, 0xbd, 0x6d, 0xde, 0xb9, 0x66, + 0xad, 0x29, 0x78, 0xc7, 0x47, 0xd7, 0xec, 0x0b, 0x59, 0x74, 0x90, 0x0c, 0x4f, 0x9e, 0xa4, 0x33, + 0x28, 0x2a, 0x40, 0x12, 0xa6, 0x21, 0x8d, 0xc5, 0x5f, 0x5b, 0x04, 0xe4, 0xc6, 0x2e, 0xc5, 0x5d, + 0xda, 0xb3, 0x3c, 0xfe, 0xc9, 0xf8, 0xe4, 0x06, 0xee, 0xe0, 0x29, 0x1f, 0x5e, 0x26, 0xa3, 0xaa, + 0x20, 0x64, 0x51, 0x2f, 0x39, 0x3a, 0x1d, 0x7c, 0x79, 0xd9, 0x3b, 0x64, 0x82, 0x7b, 0xe5, 0x4c, + 0x55, 0x10, 0x3c, 0xe3, 0xc7, 0x1a, 0x1d, 0x29, 0xcc, 0x41, 0xea, 0x25, 0x20, 0xe9, 0x0f, 0x1a, + 0x6c, 0xd8, 0x8b, 0x58, 0x72, 0x67, 0xc7, 0x07, 0x3b, 0xe2, 0xf5, 0x15, 0x10, 0x24, 0xfc, 0x76, + 0x6e, 0x1a, 0x24, 0xb0, 0x3e, 0xe0, 0x20, 0x62, 0xbf, 0x03, 0x86, 0x97, 0x52, 0x97, 0xf0, 0x9c, + 0x0f, 0x7c, 0xf9, 0x7e, 0xc4, 0x92, 0xe1, 0xc9, 0xe4, 0xdf, 0xe5, 0xbb, 0x96, 0xc2, 0x3b, 0xe2, + 0xaf, 0x8c, 0xc7, 0xff, 0xa7, 0x83, 0xc7, 0xfc, 0x56, 0xad, 0xf2, 0x35, 0x74, 0x07, 0x66, 0x49, + 0xbf, 0x7b, 0x46, 0xc8, 0xc4, 0x6e, 0x1a, 0x3c, 0xe0, 0x83, 0xc5, 0x05, 0x81, 0xeb, 0x6a, 0x5d, + 0xc9, 0x7e, 0xd6, 0x5e, 0xca, 0x73, 0xd2, 0x2a, 0xf2, 0x45, 0x3c, 0x12, 0x31, 0xc1, 0xbd, 0x22, + 0x14, 0x41, 0x10, 0xf3, 0xa3, 0xd6, 0xe0, 0xa9, 0xfe, 0x9f, 0xd4, 0x61, 0x3b, 0x6f, 0x99, 0x17, + 0x9f, 0xf9, 0xa4, 0xc4, 0xda, 0xca, 0xeb, 0xbf, 0x94, 0x84, 0x73, 0x0a, 0x46, 0xe9, 0x9b, 0x06, + 0x75, 0x0d, 0xf6, 0x0c, 0xe8, 0x93, 0xb1, 0x6b, 0x37, 0x03, 0x74, 0xc6, 0xba, 0xf0, 0x61, 0x77, + 0xa2, 0x51, 0xba, 0xff, 0x67, 0x89, 0x47, 0xed, 0xf2, 0xfd, 0xda, 0xab, 0x73, 0x3a, 0x7d, 0xff, + 0x6d, 0x3b, 0x66, 0xdf, 0xb7, 0x63, 0xf6, 0x63, 0x3b, 0x66, 0x6f, 0x45, 0xa1, 0x29, 0x2d, 0x7d, + 0x4e, 0x8a, 0x40, 0x99, 0xce, 0x61, 0x01, 0xb6, 0xc8, 0x56, 0xa0, 0x36, 0xb4, 0x5a, 0x18, 0x9a, + 0x6a, 0x2c, 0xc0, 0xd1, 0xb4, 0x24, 0x3d, 0x45, 0x45, 0xfa, 0x23, 0x64, 0xf5, 0xba, 0xc8, 0x4a, + 0xd2, 0x99, 0x5a, 0xaa, 0x9a, 0xc0, 0xba, 0x4c, 0x96, 0x0d, 0x1a, 0x97, 0xb9, 0x7c, 0x05, 0x95, + 0xfa, 0x15, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x83, 0xc0, 0x95, 0x2c, 0x03, 0x00, 0x00, +} + +func (m *SrTeTransitTunnelStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SrTeTransitTunnelStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SrTeTransitTunnelStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TeTransitTunnelStats) > 0 { + for iNdEx := len(m.TeTransitTunnelStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TeTransitTunnelStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeTransitTunnelRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeTransitTunnelRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeTransitTunnelRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Stats != nil { + { + size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.CounterName != nil { + i -= len(*m.CounterName) + copy(dAtA[i:], *m.CounterName) + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(len(*m.CounterName))) + i-- + dAtA[i] = 0x1a + } + if m.InstanceIdentifier != nil { + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(*m.InstanceIdentifier)) + i-- + dAtA[i] = 0x10 + } + if m.TunnelName == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("tunnel_name") + } else { + i -= len(*m.TunnelName) + copy(dAtA[i:], *m.TunnelName) + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(len(*m.TunnelName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SegmentRoutingTeTransitTunnelStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SegmentRoutingTeTransitTunnelStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SegmentRoutingTeTransitTunnelStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ByteRate != nil { + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(*m.ByteRate)) + i-- + dAtA[i] = 0x20 + } + if m.PacketRate != nil { + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(*m.PacketRate)) + i-- + dAtA[i] = 0x18 + } + if m.Bytes != nil { + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(*m.Bytes)) + i-- + dAtA[i] = 0x10 + } + if m.Packets != nil { + i = encodeVarintSrTeTransitTunnelStats(dAtA, i, uint64(*m.Packets)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSrTeTransitTunnelStats(dAtA []byte, offset int, v uint64) int { + offset -= sovSrTeTransitTunnelStats(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SrTeTransitTunnelStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TeTransitTunnelStats) > 0 { + for _, e := range m.TeTransitTunnelStats { + l = e.Size() + n += 1 + l + sovSrTeTransitTunnelStats(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeTransitTunnelRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TunnelName != nil { + l = len(*m.TunnelName) + n += 1 + l + sovSrTeTransitTunnelStats(uint64(l)) + } + if m.InstanceIdentifier != nil { + n += 1 + sovSrTeTransitTunnelStats(uint64(*m.InstanceIdentifier)) + } + if m.CounterName != nil { + l = len(*m.CounterName) + n += 1 + l + sovSrTeTransitTunnelStats(uint64(l)) + } + if m.Stats != nil { + l = m.Stats.Size() + n += 1 + l + sovSrTeTransitTunnelStats(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SegmentRoutingTeTransitTunnelStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packets != nil { + n += 1 + sovSrTeTransitTunnelStats(uint64(*m.Packets)) + } + if m.Bytes != nil { + n += 1 + sovSrTeTransitTunnelStats(uint64(*m.Bytes)) + } + if m.PacketRate != nil { + n += 1 + sovSrTeTransitTunnelStats(uint64(*m.PacketRate)) + } + if m.ByteRate != nil { + n += 1 + sovSrTeTransitTunnelStats(uint64(*m.ByteRate)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSrTeTransitTunnelStats(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSrTeTransitTunnelStats(x uint64) (n int) { + return sovSrTeTransitTunnelStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SrTeTransitTunnelStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SrTeTransitTunnelStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SrTeTransitTunnelStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeTransitTunnelStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TeTransitTunnelStats = append(m.TeTransitTunnelStats, &SegmentRoutingTeTransitTunnelRecord{}) + if err := m.TeTransitTunnelStats[len(m.TeTransitTunnelStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeTransitTunnelStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeTransitTunnelRecord) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeTransitTunnelRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeTransitTunnelRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TunnelName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.TunnelName = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InstanceIdentifier", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InstanceIdentifier = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CounterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CounterName = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Stats == nil { + m.Stats = &SegmentRoutingTeTransitTunnelStats{} + } + if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSrTeTransitTunnelStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("tunnel_name") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SegmentRoutingTeTransitTunnelStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SegmentRoutingTeTransitTunnelStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SegmentRoutingTeTransitTunnelStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Packets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Packets = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Bytes = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PacketRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PacketRate = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ByteRate", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ByteRate = &v + default: + iNdEx = preIndex + skippy, err := skipSrTeTransitTunnelStats(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSrTeTransitTunnelStats + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSrTeTransitTunnelStats(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSrTeTransitTunnelStats + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSrTeTransitTunnelStats + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSrTeTransitTunnelStats + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSrTeTransitTunnelStats + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSrTeTransitTunnelStats = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSrTeTransitTunnelStats = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSrTeTransitTunnelStats = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/sr_te_transit_tunnel_stats.proto b/schema/sr_te_transit_tunnel_stats.proto new file mode 100755 index 0000000..a21dfdd --- /dev/null +++ b/schema/sr_te_transit_tunnel_stats.proto @@ -0,0 +1,47 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 28 from JuniperNetworksSensors +// +extend JuniperNetworksSensors { + optional SrTeTransitTunnelStats jnpr_sr_te_transit_tunnel_stats_ext = 28; +} + +// +// Top-level message +// +message SrTeTransitTunnelStats { + // List of SR TE stats per BSID, IP and Color records + repeated SegmentRoutingTeTransitTunnelRecord te_transit_tunnel_stats = 1; +} + +// +// SR TE Transit Tunnel statistics record +// +message SegmentRoutingTeTransitTunnelRecord { + // Name of the tunnel + required string tunnel_name = 1 [(telemetry_options).is_key = true]; + + // Instance Identifier for cases when RPD creates multiple instances + optional uint32 instance_identifier = 2 [(telemetry_options).is_key = true]; + + // Name of the counter. This is useful when an SR label has multiple counters. + // For some scenarios like routing restart, it is possible that a new counter is + // created in the hardware. + optional string counter_name = 3 [(telemetry_options).is_key = true]; + + // Statistics + optional SegmentRoutingTeTransitTunnelStats stats = 4; +} + +message SegmentRoutingTeTransitTunnelStats { + // Packet and Byte statistics + optional uint64 packets = 1 [(telemetry_options).is_counter = true]; + optional uint64 bytes = 2 [(telemetry_options).is_counter = true]; + + // Rates of the above counters + optional uint64 packet_rate = 3 [(telemetry_options).is_gauge = true]; + optional uint64 byte_rate = 4 [(telemetry_options).is_gauge = true]; +} diff --git a/schema/svcset_telemetry.pb.go b/schema/svcset_telemetry.pb.go new file mode 100644 index 0000000..ecc4589 --- /dev/null +++ b/schema/svcset_telemetry.pb.go @@ -0,0 +1,3550 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: svcset_telemetry.proto + +package schema + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type ServicesInfra struct { + SvcsPluginsInfo []*PluginsInfo `protobuf:"bytes,1,rep,name=svcs_plugins_info,json=svcsPluginsInfo" json:"svcs_plugins_info,omitempty"` + SvcsetCpuInfo []*CpuUsageInfo `protobuf:"bytes,2,rep,name=svcset_cpu_info,json=svcsetCpuInfo" json:"svcset_cpu_info,omitempty"` + SvcsetMemInfo []*MemUsageInfo `protobuf:"bytes,3,rep,name=svcset_mem_info,json=svcsetMemInfo" json:"svcset_mem_info,omitempty"` + SvcsetSvcInfo []*ServicesInfo `protobuf:"bytes,4,rep,name=svcset_svc_info,json=svcsetSvcInfo" json:"svcset_svc_info,omitempty"` + SvcsetPktdropInfo []*PktDropInfo `protobuf:"bytes,5,rep,name=svcset_pktdrop_info,json=svcsetPktdropInfo" json:"svcset_pktdrop_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServicesInfra) Reset() { *m = ServicesInfra{} } +func (m *ServicesInfra) String() string { return proto.CompactTextString(m) } +func (*ServicesInfra) ProtoMessage() {} +func (*ServicesInfra) Descriptor() ([]byte, []int) { + return fileDescriptor_d1f011be0986ccfc, []int{0} +} +func (m *ServicesInfra) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServicesInfra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServicesInfra.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ServicesInfra) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServicesInfra.Merge(m, src) +} +func (m *ServicesInfra) XXX_Size() int { + return m.Size() +} +func (m *ServicesInfra) XXX_DiscardUnknown() { + xxx_messageInfo_ServicesInfra.DiscardUnknown(m) +} + +var xxx_messageInfo_ServicesInfra proto.InternalMessageInfo + +func (m *ServicesInfra) GetSvcsPluginsInfo() []*PluginsInfo { + if m != nil { + return m.SvcsPluginsInfo + } + return nil +} + +func (m *ServicesInfra) GetSvcsetCpuInfo() []*CpuUsageInfo { + if m != nil { + return m.SvcsetCpuInfo + } + return nil +} + +func (m *ServicesInfra) GetSvcsetMemInfo() []*MemUsageInfo { + if m != nil { + return m.SvcsetMemInfo + } + return nil +} + +func (m *ServicesInfra) GetSvcsetSvcInfo() []*ServicesInfo { + if m != nil { + return m.SvcsetSvcInfo + } + return nil +} + +func (m *ServicesInfra) GetSvcsetPktdropInfo() []*PktDropInfo { + if m != nil { + return m.SvcsetPktdropInfo + } + return nil +} + +///========================= +type PluginsInfo struct { + SpNumPlugins *uint64 `protobuf:"varint,1,opt,name=sp_num_plugins,json=spNumPlugins" json:"sp_num_plugins,omitempty"` + SpName *string `protobuf:"bytes,2,opt,name=sp_name,json=spName" json:"sp_name,omitempty"` + SpPid *uint64 `protobuf:"varint,3,opt,name=sp_pid,json=spPid" json:"sp_pid,omitempty"` + SpDataEvh *uint64 `protobuf:"varint,4,opt,name=sp_data_evh,json=spDataEvh" json:"sp_data_evh,omitempty"` + SpControlEvh *uint64 `protobuf:"varint,5,opt,name=sp_control_evh,json=spControlEvh" json:"sp_control_evh,omitempty"` + SpClass *uint64 `protobuf:"varint,6,opt,name=sp_class,json=spClass" json:"sp_class,omitempty"` + SpProviderId *uint64 `protobuf:"varint,7,opt,name=sp_provider_id,json=spProviderId" json:"sp_provider_id,omitempty"` + SpAppId *uint64 `protobuf:"varint,8,opt,name=sp_app_id,json=spAppId" json:"sp_app_id,omitempty"` + SpPluginFlags *uint64 `protobuf:"varint,9,opt,name=sp_plugin_flags,json=spPluginFlags" json:"sp_plugin_flags,omitempty"` + SpTcpSupportFlags *uint64 `protobuf:"varint,10,opt,name=sp_tcp_support_flags,json=spTcpSupportFlags" json:"sp_tcp_support_flags,omitempty"` + SpEvClassBase *uint64 `protobuf:"varint,11,opt,name=sp_ev_class_base,json=spEvClassBase" json:"sp_ev_class_base,omitempty"` + SpPluginMask *uint64 `protobuf:"varint,12,opt,name=sp_plugin_mask,json=spPluginMask" json:"sp_plugin_mask,omitempty"` + SpEvClassName []string `protobuf:"bytes,13,rep,name=sp_ev_class_name,json=spEvClassName" json:"sp_ev_class_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PluginsInfo) Reset() { *m = PluginsInfo{} } +func (m *PluginsInfo) String() string { return proto.CompactTextString(m) } +func (*PluginsInfo) ProtoMessage() {} +func (*PluginsInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_d1f011be0986ccfc, []int{1} +} +func (m *PluginsInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PluginsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PluginsInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PluginsInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PluginsInfo.Merge(m, src) +} +func (m *PluginsInfo) XXX_Size() int { + return m.Size() +} +func (m *PluginsInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PluginsInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_PluginsInfo proto.InternalMessageInfo + +func (m *PluginsInfo) GetSpNumPlugins() uint64 { + if m != nil && m.SpNumPlugins != nil { + return *m.SpNumPlugins + } + return 0 +} + +func (m *PluginsInfo) GetSpName() string { + if m != nil && m.SpName != nil { + return *m.SpName + } + return "" +} + +func (m *PluginsInfo) GetSpPid() uint64 { + if m != nil && m.SpPid != nil { + return *m.SpPid + } + return 0 +} + +func (m *PluginsInfo) GetSpDataEvh() uint64 { + if m != nil && m.SpDataEvh != nil { + return *m.SpDataEvh + } + return 0 +} + +func (m *PluginsInfo) GetSpControlEvh() uint64 { + if m != nil && m.SpControlEvh != nil { + return *m.SpControlEvh + } + return 0 +} + +func (m *PluginsInfo) GetSpClass() uint64 { + if m != nil && m.SpClass != nil { + return *m.SpClass + } + return 0 +} + +func (m *PluginsInfo) GetSpProviderId() uint64 { + if m != nil && m.SpProviderId != nil { + return *m.SpProviderId + } + return 0 +} + +func (m *PluginsInfo) GetSpAppId() uint64 { + if m != nil && m.SpAppId != nil { + return *m.SpAppId + } + return 0 +} + +func (m *PluginsInfo) GetSpPluginFlags() uint64 { + if m != nil && m.SpPluginFlags != nil { + return *m.SpPluginFlags + } + return 0 +} + +func (m *PluginsInfo) GetSpTcpSupportFlags() uint64 { + if m != nil && m.SpTcpSupportFlags != nil { + return *m.SpTcpSupportFlags + } + return 0 +} + +func (m *PluginsInfo) GetSpEvClassBase() uint64 { + if m != nil && m.SpEvClassBase != nil { + return *m.SpEvClassBase + } + return 0 +} + +func (m *PluginsInfo) GetSpPluginMask() uint64 { + if m != nil && m.SpPluginMask != nil { + return *m.SpPluginMask + } + return 0 +} + +func (m *PluginsInfo) GetSpEvClassName() []string { + if m != nil { + return m.SpEvClassName + } + return nil +} + +//-------------------------- +type CpuUsageInfo struct { + SvcsetId *uint64 `protobuf:"varint,1,opt,name=svcset_id,json=svcsetId" json:"svcset_id,omitempty"` + SvcsetIdPresent *uint64 `protobuf:"varint,2,opt,name=svcset_id_present,json=svcsetIdPresent" json:"svcset_id_present,omitempty"` + ExternalSvcSetId *uint64 `protobuf:"varint,3,opt,name=external_svc_set_id,json=externalSvcSetId" json:"external_svc_set_id,omitempty"` + SvcType *uint64 `protobuf:"varint,4,opt,name=svc_type,json=svcType" json:"svc_type,omitempty"` + SvcSetType *uint64 `protobuf:"varint,5,opt,name=svc_set_type,json=svcSetType" json:"svc_set_type,omitempty"` + SvcSetName *string `protobuf:"bytes,6,opt,name=svc_set_name,json=svcSetName" json:"svc_set_name,omitempty"` + CpuUtilization *uint64 `protobuf:"varint,7,opt,name=cpu_utilization,json=cpuUtilization" json:"cpu_utilization,omitempty"` + CpuZone *uint64 `protobuf:"varint,8,opt,name=cpu_zone,json=cpuZone" json:"cpu_zone,omitempty"` + CpuLoad *float32 `protobuf:"fixed32,9,opt,name=cpu_load,json=cpuLoad" json:"cpu_load,omitempty"` + CpuUser *string `protobuf:"bytes,10,opt,name=cpu_user,json=cpuUser" json:"cpu_user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CpuUsageInfo) Reset() { *m = CpuUsageInfo{} } +func (m *CpuUsageInfo) String() string { return proto.CompactTextString(m) } +func (*CpuUsageInfo) ProtoMessage() {} +func (*CpuUsageInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_d1f011be0986ccfc, []int{2} +} +func (m *CpuUsageInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CpuUsageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CpuUsageInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CpuUsageInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CpuUsageInfo.Merge(m, src) +} +func (m *CpuUsageInfo) XXX_Size() int { + return m.Size() +} +func (m *CpuUsageInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CpuUsageInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CpuUsageInfo proto.InternalMessageInfo + +func (m *CpuUsageInfo) GetSvcsetId() uint64 { + if m != nil && m.SvcsetId != nil { + return *m.SvcsetId + } + return 0 +} + +func (m *CpuUsageInfo) GetSvcsetIdPresent() uint64 { + if m != nil && m.SvcsetIdPresent != nil { + return *m.SvcsetIdPresent + } + return 0 +} + +func (m *CpuUsageInfo) GetExternalSvcSetId() uint64 { + if m != nil && m.ExternalSvcSetId != nil { + return *m.ExternalSvcSetId + } + return 0 +} + +func (m *CpuUsageInfo) GetSvcType() uint64 { + if m != nil && m.SvcType != nil { + return *m.SvcType + } + return 0 +} + +func (m *CpuUsageInfo) GetSvcSetType() uint64 { + if m != nil && m.SvcSetType != nil { + return *m.SvcSetType + } + return 0 +} + +func (m *CpuUsageInfo) GetSvcSetName() string { + if m != nil && m.SvcSetName != nil { + return *m.SvcSetName + } + return "" +} + +func (m *CpuUsageInfo) GetCpuUtilization() uint64 { + if m != nil && m.CpuUtilization != nil { + return *m.CpuUtilization + } + return 0 +} + +func (m *CpuUsageInfo) GetCpuZone() uint64 { + if m != nil && m.CpuZone != nil { + return *m.CpuZone + } + return 0 +} + +func (m *CpuUsageInfo) GetCpuLoad() float32 { + if m != nil && m.CpuLoad != nil { + return *m.CpuLoad + } + return 0 +} + +func (m *CpuUsageInfo) GetCpuUser() string { + if m != nil && m.CpuUser != nil { + return *m.CpuUser + } + return "" +} + +//-------------------------- +type MemUsageInfo struct { + SvcsetId *uint64 `protobuf:"varint,1,opt,name=svcset_id,json=svcsetId" json:"svcset_id,omitempty"` + SvcsetIdPresent *uint64 `protobuf:"varint,2,opt,name=svcset_id_present,json=svcsetIdPresent" json:"svcset_id_present,omitempty"` + ExternalSvcSetId *uint64 `protobuf:"varint,3,opt,name=external_svc_set_id,json=externalSvcSetId" json:"external_svc_set_id,omitempty"` + SvcType *uint64 `protobuf:"varint,4,opt,name=svc_type,json=svcType" json:"svc_type,omitempty"` + SvcSetType *uint64 `protobuf:"varint,5,opt,name=svc_set_type,json=svcSetType" json:"svc_set_type,omitempty"` + SvcSetName *string `protobuf:"bytes,6,opt,name=svc_set_name,json=svcSetName" json:"svc_set_name,omitempty"` + MemPercentUsed *float32 `protobuf:"fixed32,7,opt,name=mem_percent_used,json=memPercentUsed" json:"mem_percent_used,omitempty"` + MemBytesUsed *uint64 `protobuf:"varint,8,opt,name=mem_bytes_used,json=memBytesUsed" json:"mem_bytes_used,omitempty"` + MemZone *uint64 `protobuf:"varint,9,opt,name=mem_zone,json=memZone" json:"mem_zone,omitempty"` + PolicyBytesUsed *uint64 `protobuf:"varint,10,opt,name=policy_bytes_used,json=policyBytesUsed" json:"policy_bytes_used,omitempty"` + PolicyBytesUsedPercent *uint64 `protobuf:"varint,11,opt,name=policy_bytes_used_percent,json=policyBytesUsedPercent" json:"policy_bytes_used_percent,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MemUsageInfo) Reset() { *m = MemUsageInfo{} } +func (m *MemUsageInfo) String() string { return proto.CompactTextString(m) } +func (*MemUsageInfo) ProtoMessage() {} +func (*MemUsageInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_d1f011be0986ccfc, []int{3} +} +func (m *MemUsageInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MemUsageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MemUsageInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MemUsageInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_MemUsageInfo.Merge(m, src) +} +func (m *MemUsageInfo) XXX_Size() int { + return m.Size() +} +func (m *MemUsageInfo) XXX_DiscardUnknown() { + xxx_messageInfo_MemUsageInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_MemUsageInfo proto.InternalMessageInfo + +func (m *MemUsageInfo) GetSvcsetId() uint64 { + if m != nil && m.SvcsetId != nil { + return *m.SvcsetId + } + return 0 +} + +func (m *MemUsageInfo) GetSvcsetIdPresent() uint64 { + if m != nil && m.SvcsetIdPresent != nil { + return *m.SvcsetIdPresent + } + return 0 +} + +func (m *MemUsageInfo) GetExternalSvcSetId() uint64 { + if m != nil && m.ExternalSvcSetId != nil { + return *m.ExternalSvcSetId + } + return 0 +} + +func (m *MemUsageInfo) GetSvcType() uint64 { + if m != nil && m.SvcType != nil { + return *m.SvcType + } + return 0 +} + +func (m *MemUsageInfo) GetSvcSetType() uint64 { + if m != nil && m.SvcSetType != nil { + return *m.SvcSetType + } + return 0 +} + +func (m *MemUsageInfo) GetSvcSetName() string { + if m != nil && m.SvcSetName != nil { + return *m.SvcSetName + } + return "" +} + +func (m *MemUsageInfo) GetMemPercentUsed() float32 { + if m != nil && m.MemPercentUsed != nil { + return *m.MemPercentUsed + } + return 0 +} + +func (m *MemUsageInfo) GetMemBytesUsed() uint64 { + if m != nil && m.MemBytesUsed != nil { + return *m.MemBytesUsed + } + return 0 +} + +func (m *MemUsageInfo) GetMemZone() uint64 { + if m != nil && m.MemZone != nil { + return *m.MemZone + } + return 0 +} + +func (m *MemUsageInfo) GetPolicyBytesUsed() uint64 { + if m != nil && m.PolicyBytesUsed != nil { + return *m.PolicyBytesUsed + } + return 0 +} + +func (m *MemUsageInfo) GetPolicyBytesUsedPercent() uint64 { + if m != nil && m.PolicyBytesUsedPercent != nil { + return *m.PolicyBytesUsedPercent + } + return 0 +} + +//-------------------------- +type ServicesInfo struct { + SvcsetId *uint64 `protobuf:"varint,1,opt,name=svcset_id,json=svcsetId" json:"svcset_id,omitempty"` + SvcsetIdPresent *uint64 `protobuf:"varint,2,opt,name=svcset_id_present,json=svcsetIdPresent" json:"svcset_id_present,omitempty"` + ExternalSvcSetId *uint64 `protobuf:"varint,3,opt,name=external_svc_set_id,json=externalSvcSetId" json:"external_svc_set_id,omitempty"` + SvcType *uint64 `protobuf:"varint,4,opt,name=svc_type,json=svcType" json:"svc_type,omitempty"` + SvcSetType *uint64 `protobuf:"varint,5,opt,name=svc_set_type,json=svcSetType" json:"svc_set_type,omitempty"` + SvcSetName *string `protobuf:"bytes,6,opt,name=svc_set_name,json=svcSetName" json:"svc_set_name,omitempty"` + InternalSvcSetId *uint64 `protobuf:"varint,7,opt,name=internal_svc_set_id,json=internalSvcSetId" json:"internal_svc_set_id,omitempty"` + ActiveSvcSetCount *uint64 `protobuf:"varint,8,opt,name=active_svc_set_count,json=activeSvcSetCount" json:"active_svc_set_count,omitempty"` + TotalSvcSetCount *uint64 `protobuf:"varint,9,opt,name=total_svc_set_count,json=totalSvcSetCount" json:"total_svc_set_count,omitempty"` + MemBytesUsed *uint64 `protobuf:"varint,10,opt,name=mem_bytes_used,json=memBytesUsed" json:"mem_bytes_used,omitempty"` + MemBytesUsedPercent *uint64 `protobuf:"varint,11,opt,name=mem_bytes_used_percent,json=memBytesUsedPercent" json:"mem_bytes_used_percent,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServicesInfo) Reset() { *m = ServicesInfo{} } +func (m *ServicesInfo) String() string { return proto.CompactTextString(m) } +func (*ServicesInfo) ProtoMessage() {} +func (*ServicesInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_d1f011be0986ccfc, []int{4} +} +func (m *ServicesInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ServicesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ServicesInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ServicesInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServicesInfo.Merge(m, src) +} +func (m *ServicesInfo) XXX_Size() int { + return m.Size() +} +func (m *ServicesInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ServicesInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ServicesInfo proto.InternalMessageInfo + +func (m *ServicesInfo) GetSvcsetId() uint64 { + if m != nil && m.SvcsetId != nil { + return *m.SvcsetId + } + return 0 +} + +func (m *ServicesInfo) GetSvcsetIdPresent() uint64 { + if m != nil && m.SvcsetIdPresent != nil { + return *m.SvcsetIdPresent + } + return 0 +} + +func (m *ServicesInfo) GetExternalSvcSetId() uint64 { + if m != nil && m.ExternalSvcSetId != nil { + return *m.ExternalSvcSetId + } + return 0 +} + +func (m *ServicesInfo) GetSvcType() uint64 { + if m != nil && m.SvcType != nil { + return *m.SvcType + } + return 0 +} + +func (m *ServicesInfo) GetSvcSetType() uint64 { + if m != nil && m.SvcSetType != nil { + return *m.SvcSetType + } + return 0 +} + +func (m *ServicesInfo) GetSvcSetName() string { + if m != nil && m.SvcSetName != nil { + return *m.SvcSetName + } + return "" +} + +func (m *ServicesInfo) GetInternalSvcSetId() uint64 { + if m != nil && m.InternalSvcSetId != nil { + return *m.InternalSvcSetId + } + return 0 +} + +func (m *ServicesInfo) GetActiveSvcSetCount() uint64 { + if m != nil && m.ActiveSvcSetCount != nil { + return *m.ActiveSvcSetCount + } + return 0 +} + +func (m *ServicesInfo) GetTotalSvcSetCount() uint64 { + if m != nil && m.TotalSvcSetCount != nil { + return *m.TotalSvcSetCount + } + return 0 +} + +func (m *ServicesInfo) GetMemBytesUsed() uint64 { + if m != nil && m.MemBytesUsed != nil { + return *m.MemBytesUsed + } + return 0 +} + +func (m *ServicesInfo) GetMemBytesUsedPercent() uint64 { + if m != nil && m.MemBytesUsedPercent != nil { + return *m.MemBytesUsedPercent + } + return 0 +} + +//-------------------------- +type PktDropInfo struct { + SvcsetId *uint64 `protobuf:"varint,1,opt,name=svcset_id,json=svcsetId" json:"svcset_id,omitempty"` + SvcsetIdPresent *uint64 `protobuf:"varint,2,opt,name=svcset_id_present,json=svcsetIdPresent" json:"svcset_id_present,omitempty"` + ExternalSvcSetId *uint64 `protobuf:"varint,3,opt,name=external_svc_set_id,json=externalSvcSetId" json:"external_svc_set_id,omitempty"` + SvcType *uint64 `protobuf:"varint,4,opt,name=svc_type,json=svcType" json:"svc_type,omitempty"` + SvcSetType *uint64 `protobuf:"varint,5,opt,name=svc_set_type,json=svcSetType" json:"svc_set_type,omitempty"` + SvcSetName *string `protobuf:"bytes,6,opt,name=svc_set_name,json=svcSetName" json:"svc_set_name,omitempty"` + MemlimitDrops *uint64 `protobuf:"varint,7,opt,name=memlimit_drops,json=memlimitDrops" json:"memlimit_drops,omitempty"` + CpulimitDrops *uint64 `protobuf:"varint,8,opt,name=cpulimit_drops,json=cpulimitDrops" json:"cpulimit_drops,omitempty"` + FlowlimitDrops *uint64 `protobuf:"varint,9,opt,name=flowlimit_drops,json=flowlimitDrops" json:"flowlimit_drops,omitempty"` + PtclcopyDrops *uint64 `protobuf:"varint,10,opt,name=ptclcopy_drops,json=ptclcopyDrops" json:"ptclcopy_drops,omitempty"` + IngressDropFlows *uint64 `protobuf:"varint,11,opt,name=ingress_drop_flows,json=ingressDropFlows" json:"ingress_drop_flows,omitempty"` + EgressDropFlows *uint64 `protobuf:"varint,12,opt,name=egress_drop_flows,json=egressDropFlows" json:"egress_drop_flows,omitempty"` + DropExceedIngressLimit *uint64 `protobuf:"varint,13,opt,name=drop_exceed_ingress_limit,json=dropExceedIngressLimit" json:"drop_exceed_ingress_limit,omitempty"` + DropExceedEgressLimit *uint64 `protobuf:"varint,14,opt,name=drop_exceed_egress_limit,json=dropExceedEgressLimit" json:"drop_exceed_egress_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PktDropInfo) Reset() { *m = PktDropInfo{} } +func (m *PktDropInfo) String() string { return proto.CompactTextString(m) } +func (*PktDropInfo) ProtoMessage() {} +func (*PktDropInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_d1f011be0986ccfc, []int{5} +} +func (m *PktDropInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PktDropInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PktDropInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PktDropInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_PktDropInfo.Merge(m, src) +} +func (m *PktDropInfo) XXX_Size() int { + return m.Size() +} +func (m *PktDropInfo) XXX_DiscardUnknown() { + xxx_messageInfo_PktDropInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_PktDropInfo proto.InternalMessageInfo + +func (m *PktDropInfo) GetSvcsetId() uint64 { + if m != nil && m.SvcsetId != nil { + return *m.SvcsetId + } + return 0 +} + +func (m *PktDropInfo) GetSvcsetIdPresent() uint64 { + if m != nil && m.SvcsetIdPresent != nil { + return *m.SvcsetIdPresent + } + return 0 +} + +func (m *PktDropInfo) GetExternalSvcSetId() uint64 { + if m != nil && m.ExternalSvcSetId != nil { + return *m.ExternalSvcSetId + } + return 0 +} + +func (m *PktDropInfo) GetSvcType() uint64 { + if m != nil && m.SvcType != nil { + return *m.SvcType + } + return 0 +} + +func (m *PktDropInfo) GetSvcSetType() uint64 { + if m != nil && m.SvcSetType != nil { + return *m.SvcSetType + } + return 0 +} + +func (m *PktDropInfo) GetSvcSetName() string { + if m != nil && m.SvcSetName != nil { + return *m.SvcSetName + } + return "" +} + +func (m *PktDropInfo) GetMemlimitDrops() uint64 { + if m != nil && m.MemlimitDrops != nil { + return *m.MemlimitDrops + } + return 0 +} + +func (m *PktDropInfo) GetCpulimitDrops() uint64 { + if m != nil && m.CpulimitDrops != nil { + return *m.CpulimitDrops + } + return 0 +} + +func (m *PktDropInfo) GetFlowlimitDrops() uint64 { + if m != nil && m.FlowlimitDrops != nil { + return *m.FlowlimitDrops + } + return 0 +} + +func (m *PktDropInfo) GetPtclcopyDrops() uint64 { + if m != nil && m.PtclcopyDrops != nil { + return *m.PtclcopyDrops + } + return 0 +} + +func (m *PktDropInfo) GetIngressDropFlows() uint64 { + if m != nil && m.IngressDropFlows != nil { + return *m.IngressDropFlows + } + return 0 +} + +func (m *PktDropInfo) GetEgressDropFlows() uint64 { + if m != nil && m.EgressDropFlows != nil { + return *m.EgressDropFlows + } + return 0 +} + +func (m *PktDropInfo) GetDropExceedIngressLimit() uint64 { + if m != nil && m.DropExceedIngressLimit != nil { + return *m.DropExceedIngressLimit + } + return 0 +} + +func (m *PktDropInfo) GetDropExceedEgressLimit() uint64 { + if m != nil && m.DropExceedEgressLimit != nil { + return *m.DropExceedEgressLimit + } + return 0 +} + +var E_JnprScvsInfraExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*ServicesInfra)(nil), + Field: 78, + Name: "jnprScvsInfraExt", + Tag: "bytes,78,opt,name=jnprScvsInfraExt", + Filename: "svcset_telemetry.proto", +} + +func init() { + proto.RegisterType((*ServicesInfra)(nil), "ServicesInfra") + proto.RegisterType((*PluginsInfo)(nil), "PluginsInfo") + proto.RegisterType((*CpuUsageInfo)(nil), "CpuUsageInfo") + proto.RegisterType((*MemUsageInfo)(nil), "MemUsageInfo") + proto.RegisterType((*ServicesInfo)(nil), "ServicesInfo") + proto.RegisterType((*PktDropInfo)(nil), "PktDropInfo") + proto.RegisterExtension(E_JnprScvsInfraExt) +} + +func init() { proto.RegisterFile("svcset_telemetry.proto", fileDescriptor_d1f011be0986ccfc) } + +var fileDescriptor_d1f011be0986ccfc = []byte{ + // 1070 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x96, 0xcd, 0x6e, 0xdb, 0xc6, + 0x17, 0xc5, 0x21, 0xc9, 0xb1, 0xad, 0xd1, 0x37, 0x9d, 0x0f, 0x3a, 0x7f, 0xc0, 0x10, 0x8c, 0x7f, + 0x1b, 0x21, 0xa8, 0x25, 0x20, 0x45, 0xd1, 0xa6, 0xe8, 0xa6, 0x76, 0x1c, 0x40, 0x45, 0x6c, 0x08, + 0x52, 0xbc, 0xc9, 0x86, 0x1d, 0x0f, 0xaf, 0x65, 0x5a, 0x24, 0xe7, 0x82, 0x77, 0xc8, 0x58, 0x79, + 0xa6, 0xee, 0xfb, 0x0a, 0xdd, 0x35, 0xbb, 0x2e, 0x5b, 0xf8, 0x49, 0x8a, 0x99, 0x21, 0x65, 0x46, + 0xea, 0x13, 0x78, 0xa9, 0x7b, 0x7f, 0xe7, 0x70, 0x66, 0xce, 0x5c, 0x91, 0xec, 0x29, 0x65, 0x82, + 0x40, 0x79, 0x0a, 0x42, 0x88, 0x40, 0x25, 0xcb, 0x21, 0x26, 0x52, 0xc9, 0xe7, 0x7b, 0xab, 0x82, + 0xa7, 0x24, 0xda, 0xe2, 0xe1, 0x6f, 0x55, 0xd6, 0x9a, 0x41, 0x92, 0x05, 0x02, 0x68, 0x1c, 0x5f, + 0x25, 0xdc, 0xf9, 0x81, 0xf5, 0xb4, 0x81, 0x87, 0x61, 0x3a, 0x0f, 0x62, 0xf2, 0x82, 0xf8, 0x4a, + 0xba, 0x95, 0x7e, 0x6d, 0xd0, 0x78, 0xd5, 0x1c, 0x4e, 0x6c, 0x71, 0x1c, 0x5f, 0xc9, 0x69, 0x47, + 0x63, 0xa5, 0x82, 0xf3, 0x1d, 0xeb, 0xe4, 0x8f, 0x16, 0x98, 0x5a, 0x5d, 0xd5, 0xe8, 0x5a, 0xc3, + 0x13, 0x4c, 0x2f, 0x88, 0xcf, 0xc1, 0x08, 0x5b, 0x96, 0x3a, 0xc1, 0x74, 0x4d, 0x16, 0x41, 0x64, + 0x65, 0xb5, 0x5c, 0x76, 0x06, 0xd1, 0x86, 0xec, 0x0c, 0xa2, 0x35, 0x19, 0x65, 0xc2, 0xca, 0xb6, + 0x72, 0x59, 0x69, 0x43, 0x2b, 0xd9, 0x2c, 0x13, 0x46, 0xf6, 0x13, 0xdb, 0xcb, 0x65, 0xb8, 0x50, + 0x7e, 0x22, 0xd1, 0x4a, 0x1f, 0x15, 0x1b, 0x5c, 0xa8, 0x37, 0x89, 0x44, 0xa3, 0xec, 0x59, 0x70, + 0x62, 0x39, 0x5d, 0x3a, 0xfc, 0xab, 0xc6, 0x1a, 0xe5, 0x2d, 0xff, 0x9f, 0xb5, 0x09, 0xbd, 0x38, + 0x8d, 0x8a, 0xe3, 0x72, 0x2b, 0xfd, 0xca, 0x60, 0x6b, 0xda, 0x24, 0x3c, 0x4f, 0xa3, 0x9c, 0x74, + 0x9e, 0xb1, 0x1d, 0x4d, 0xf1, 0x08, 0xdc, 0x6a, 0xbf, 0x32, 0xa8, 0x4f, 0xb7, 0x09, 0xcf, 0x79, + 0x04, 0xce, 0x13, 0xb6, 0x4d, 0xe8, 0x61, 0xe0, 0xbb, 0x35, 0x23, 0x7b, 0x44, 0x38, 0x09, 0x7c, + 0xe7, 0x80, 0x35, 0x08, 0x3d, 0x9f, 0x2b, 0xee, 0x41, 0x76, 0xed, 0x6e, 0x99, 0x5e, 0x9d, 0xf0, + 0x0d, 0x57, 0xfc, 0x34, 0xbb, 0xce, 0x9f, 0x2a, 0x64, 0xac, 0x12, 0x19, 0x1a, 0xe4, 0x51, 0xf1, + 0xd4, 0x13, 0x5b, 0xd4, 0xd4, 0x3e, 0xdb, 0xd5, 0x54, 0xc8, 0x89, 0xdc, 0x6d, 0xd3, 0xdf, 0x21, + 0x3c, 0xd1, 0x3f, 0x73, 0x03, 0x4c, 0x64, 0x16, 0xf8, 0x90, 0x78, 0x81, 0xef, 0xee, 0x14, 0x06, + 0x93, 0xbc, 0x38, 0xf6, 0x9d, 0xe7, 0xac, 0x4e, 0xe8, 0x71, 0x44, 0x0d, 0xec, 0x16, 0x0e, 0x3f, + 0x23, 0x8e, 0x7d, 0xe7, 0x6b, 0xd6, 0xd1, 0x0e, 0x66, 0x83, 0xde, 0x55, 0xc8, 0xe7, 0xe4, 0xd6, + 0x0d, 0xd1, 0x22, 0xb4, 0xdb, 0x7e, 0xab, 0x8b, 0xce, 0x88, 0x3d, 0x26, 0xf4, 0x94, 0x40, 0x8f, + 0x52, 0x44, 0x99, 0xa8, 0x1c, 0x66, 0x06, 0xee, 0x11, 0xbe, 0x17, 0x38, 0xb3, 0x1d, 0x2b, 0x78, + 0xc1, 0xba, 0x84, 0x1e, 0x64, 0x76, 0xe1, 0xde, 0x25, 0x27, 0x70, 0x1b, 0x85, 0xf3, 0x69, 0x66, + 0xd6, 0x7f, 0xcc, 0x09, 0x8a, 0x3d, 0xd8, 0x15, 0x44, 0x9c, 0x16, 0x6e, 0x73, 0xb5, 0x07, 0x53, + 0x3c, 0xe3, 0xb4, 0x58, 0xb7, 0x33, 0x19, 0xb4, 0xfa, 0xb5, 0x41, 0xbd, 0x64, 0xa7, 0xa3, 0x38, + 0xfc, 0xbb, 0xca, 0x9a, 0xe5, 0x5b, 0xea, 0xfc, 0x8f, 0xd5, 0xf3, 0x8b, 0x12, 0xf8, 0x79, 0xaa, + 0xbb, 0xb6, 0x30, 0xf6, 0x9d, 0x97, 0xac, 0xb7, 0x6a, 0x7a, 0x98, 0x00, 0x41, 0xac, 0x4c, 0xb6, + 0x5b, 0xd3, 0x4e, 0x01, 0x4d, 0x6c, 0xd9, 0x39, 0x62, 0x7b, 0x70, 0xab, 0x20, 0x89, 0x79, 0x68, + 0xae, 0x6a, 0x6e, 0x69, 0x13, 0xef, 0x16, 0xad, 0x59, 0x26, 0x66, 0xc6, 0x5a, 0xc7, 0x96, 0x09, + 0x4f, 0x2d, 0x11, 0xf2, 0xe4, 0x77, 0x28, 0x13, 0xef, 0x97, 0x08, 0x4e, 0x9f, 0x35, 0x0b, 0x03, + 0xd3, 0xb6, 0xa9, 0x33, 0x32, 0xd2, 0x75, 0xc2, 0x6c, 0x75, 0xdb, 0x5c, 0xb7, 0x9c, 0x30, 0x57, + 0xee, 0x05, 0xeb, 0xe8, 0xe9, 0x4c, 0x55, 0x10, 0x06, 0x9f, 0xb8, 0x0a, 0x64, 0x9c, 0x67, 0xdf, + 0x16, 0x98, 0x5e, 0xdc, 0x57, 0xf5, 0x3a, 0x34, 0xf8, 0x49, 0xc6, 0x50, 0x84, 0x2f, 0x30, 0xfd, + 0x20, 0x63, 0x28, 0x5a, 0xa1, 0xe4, 0xbe, 0x49, 0xbd, 0x6a, 0x5a, 0xef, 0x24, 0xf7, 0x8b, 0x56, + 0x4a, 0x90, 0x98, 0x8c, 0xeb, 0xa6, 0x75, 0x41, 0x90, 0x1c, 0xfe, 0x5e, 0x63, 0xcd, 0xf2, 0x40, + 0x3f, 0xd4, 0x13, 0x1e, 0xb0, 0xae, 0xfe, 0x23, 0x43, 0x48, 0x04, 0xc4, 0x4a, 0x1f, 0x85, 0x1d, + 0xaf, 0xea, 0xb4, 0x1d, 0x41, 0x34, 0xb1, 0xe5, 0x0b, 0x02, 0x5f, 0x5f, 0x61, 0x4d, 0x5e, 0x2e, + 0x15, 0x90, 0xe5, 0xec, 0x41, 0x37, 0x23, 0x88, 0x8e, 0x75, 0xd1, 0x50, 0xfb, 0x6c, 0x57, 0x53, + 0x26, 0x08, 0x3b, 0x63, 0x3b, 0x11, 0x44, 0x26, 0x88, 0x97, 0xac, 0x87, 0x32, 0x0c, 0xc4, 0xb2, + 0xec, 0x61, 0x47, 0xab, 0x63, 0x1b, 0xf7, 0x36, 0xaf, 0xd9, 0xfe, 0x06, 0x5b, 0x2c, 0x32, 0x9f, + 0xb0, 0xa7, 0x6b, 0x9a, 0x7c, 0xad, 0x87, 0x7f, 0xd6, 0x58, 0xb3, 0xfc, 0x9f, 0xfa, 0x50, 0x93, + 0x3b, 0x62, 0x7b, 0x41, 0xbc, 0xb9, 0x1a, 0x3b, 0x1f, 0xdd, 0xa2, 0xb5, 0x5a, 0xcd, 0x88, 0x3d, + 0xe6, 0x42, 0x05, 0x19, 0xac, 0x60, 0x21, 0xd3, 0x58, 0xe5, 0x21, 0xf6, 0x6c, 0xcf, 0xd2, 0x27, + 0xba, 0xa1, 0xfd, 0x95, 0x54, 0x25, 0x73, 0xcb, 0xdb, 0x50, 0xbb, 0xa6, 0x55, 0xc6, 0x37, 0xaf, + 0x07, 0xfb, 0x8f, 0xeb, 0xf1, 0x2d, 0x7b, 0xfa, 0x25, 0xb5, 0x16, 0xea, 0x5e, 0x99, 0x2e, 0x12, + 0xfd, 0xbc, 0xc5, 0x1a, 0xa5, 0x57, 0xdd, 0x43, 0x0d, 0xf4, 0x2b, 0x73, 0x82, 0x61, 0x10, 0x05, + 0xca, 0xd3, 0xef, 0x70, 0xca, 0xb3, 0x6c, 0x15, 0x55, 0x7d, 0x00, 0xa4, 0x31, 0x81, 0x69, 0x19, + 0xb3, 0x11, 0xb6, 0x8a, 0xaa, 0xc5, 0x5e, 0xb0, 0xce, 0x55, 0x28, 0x3f, 0x96, 0x39, 0x1b, 0x5d, + 0x7b, 0x55, 0x5e, 0xf9, 0xa1, 0x12, 0xa1, 0x90, 0xb8, 0xcc, 0x39, 0x1b, 0x5c, 0xab, 0xa8, 0x5a, + 0xec, 0x1b, 0xe6, 0x04, 0xf1, 0x3c, 0x01, 0x22, 0x43, 0x79, 0xda, 0x85, 0xf2, 0xd4, 0xba, 0x79, + 0x47, 0x93, 0x6f, 0x75, 0x5d, 0xa7, 0x00, 0x1b, 0xb0, 0x7d, 0xe5, 0x75, 0x60, 0x8d, 0x7d, 0xcd, + 0xf6, 0x0d, 0x04, 0xb7, 0x02, 0xc0, 0xf7, 0x8a, 0xa7, 0x98, 0x25, 0xba, 0x2d, 0x3b, 0xeb, 0x1a, + 0x38, 0x35, 0xfd, 0xb1, 0x6d, 0xbf, 0xd3, 0x5d, 0xe7, 0x7b, 0xe6, 0x96, 0xa5, 0x50, 0x56, 0xb6, + 0x8d, 0xf2, 0xc9, 0xbd, 0xf2, 0xf4, 0x5e, 0xf8, 0xe3, 0x8c, 0x75, 0x6f, 0x62, 0x4c, 0x66, 0x22, + 0xb3, 0x1f, 0x92, 0xa7, 0xb7, 0xca, 0x79, 0x36, 0xfc, 0x25, 0x8d, 0x03, 0x84, 0xe4, 0x1c, 0xd4, + 0x47, 0x99, 0x2c, 0x68, 0x06, 0x31, 0xc9, 0x84, 0xdc, 0xf3, 0x7e, 0x65, 0xd0, 0x78, 0xd5, 0x1e, + 0x7e, 0xf1, 0xe9, 0x39, 0xdd, 0x30, 0x38, 0xfe, 0xf5, 0x8f, 0xbb, 0x83, 0xca, 0xe7, 0xbb, 0x83, + 0xca, 0x3f, 0x77, 0x07, 0x95, 0x0f, 0xd3, 0x79, 0xa0, 0x86, 0x37, 0xd6, 0x71, 0x18, 0x83, 0x1a, + 0x05, 0x02, 0x2e, 0x21, 0x99, 0x8f, 0xae, 0x81, 0x87, 0xea, 0xfa, 0x52, 0xaa, 0xa3, 0x20, 0x9e, + 0x03, 0xa9, 0xa3, 0x1b, 0x15, 0x1c, 0xc5, 0x5c, 0xcf, 0xdf, 0x08, 0x17, 0xf3, 0xd1, 0x8d, 0x0a, + 0x46, 0xdc, 0xe7, 0xa8, 0x20, 0xa1, 0x91, 0x77, 0x93, 0xc6, 0x92, 0x46, 0x24, 0xae, 0x21, 0xe2, + 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x31, 0x1d, 0xbf, 0x31, 0x2e, 0x0b, 0x00, 0x00, +} + +func (m *ServicesInfra) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServicesInfra) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServicesInfra) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SvcsetPktdropInfo) > 0 { + for iNdEx := len(m.SvcsetPktdropInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SvcsetPktdropInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.SvcsetSvcInfo) > 0 { + for iNdEx := len(m.SvcsetSvcInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SvcsetSvcInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.SvcsetMemInfo) > 0 { + for iNdEx := len(m.SvcsetMemInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SvcsetMemInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.SvcsetCpuInfo) > 0 { + for iNdEx := len(m.SvcsetCpuInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SvcsetCpuInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.SvcsPluginsInfo) > 0 { + for iNdEx := len(m.SvcsPluginsInfo) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SvcsPluginsInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *PluginsInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PluginsInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PluginsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.SpEvClassName) > 0 { + for iNdEx := len(m.SpEvClassName) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SpEvClassName[iNdEx]) + copy(dAtA[i:], m.SpEvClassName[iNdEx]) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(m.SpEvClassName[iNdEx]))) + i-- + dAtA[i] = 0x6a + } + } + if m.SpPluginMask != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpPluginMask)) + i-- + dAtA[i] = 0x60 + } + if m.SpEvClassBase != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpEvClassBase)) + i-- + dAtA[i] = 0x58 + } + if m.SpTcpSupportFlags != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpTcpSupportFlags)) + i-- + dAtA[i] = 0x50 + } + if m.SpPluginFlags != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpPluginFlags)) + i-- + dAtA[i] = 0x48 + } + if m.SpAppId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpAppId)) + i-- + dAtA[i] = 0x40 + } + if m.SpProviderId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpProviderId)) + i-- + dAtA[i] = 0x38 + } + if m.SpClass != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpClass)) + i-- + dAtA[i] = 0x30 + } + if m.SpControlEvh != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpControlEvh)) + i-- + dAtA[i] = 0x28 + } + if m.SpDataEvh != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpDataEvh)) + i-- + dAtA[i] = 0x20 + } + if m.SpPid != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpPid)) + i-- + dAtA[i] = 0x18 + } + if m.SpName != nil { + i -= len(*m.SpName) + copy(dAtA[i:], *m.SpName) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(*m.SpName))) + i-- + dAtA[i] = 0x12 + } + if m.SpNumPlugins != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SpNumPlugins)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CpuUsageInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CpuUsageInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CpuUsageInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CpuUser != nil { + i -= len(*m.CpuUser) + copy(dAtA[i:], *m.CpuUser) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(*m.CpuUser))) + i-- + dAtA[i] = 0x52 + } + if m.CpuLoad != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.CpuLoad)))) + i-- + dAtA[i] = 0x4d + } + if m.CpuZone != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.CpuZone)) + i-- + dAtA[i] = 0x40 + } + if m.CpuUtilization != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.CpuUtilization)) + i-- + dAtA[i] = 0x38 + } + if m.SvcSetName != nil { + i -= len(*m.SvcSetName) + copy(dAtA[i:], *m.SvcSetName) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(*m.SvcSetName))) + i-- + dAtA[i] = 0x32 + } + if m.SvcSetType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcSetType)) + i-- + dAtA[i] = 0x28 + } + if m.SvcType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcType)) + i-- + dAtA[i] = 0x20 + } + if m.ExternalSvcSetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.ExternalSvcSetId)) + i-- + dAtA[i] = 0x18 + } + if m.SvcsetIdPresent != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetIdPresent)) + i-- + dAtA[i] = 0x10 + } + if m.SvcsetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MemUsageInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MemUsageInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MemUsageInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PolicyBytesUsedPercent != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.PolicyBytesUsedPercent)) + i-- + dAtA[i] = 0x58 + } + if m.PolicyBytesUsed != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.PolicyBytesUsed)) + i-- + dAtA[i] = 0x50 + } + if m.MemZone != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.MemZone)) + i-- + dAtA[i] = 0x48 + } + if m.MemBytesUsed != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.MemBytesUsed)) + i-- + dAtA[i] = 0x40 + } + if m.MemPercentUsed != nil { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(*m.MemPercentUsed)))) + i-- + dAtA[i] = 0x3d + } + if m.SvcSetName != nil { + i -= len(*m.SvcSetName) + copy(dAtA[i:], *m.SvcSetName) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(*m.SvcSetName))) + i-- + dAtA[i] = 0x32 + } + if m.SvcSetType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcSetType)) + i-- + dAtA[i] = 0x28 + } + if m.SvcType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcType)) + i-- + dAtA[i] = 0x20 + } + if m.ExternalSvcSetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.ExternalSvcSetId)) + i-- + dAtA[i] = 0x18 + } + if m.SvcsetIdPresent != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetIdPresent)) + i-- + dAtA[i] = 0x10 + } + if m.SvcsetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ServicesInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServicesInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ServicesInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.MemBytesUsedPercent != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.MemBytesUsedPercent)) + i-- + dAtA[i] = 0x58 + } + if m.MemBytesUsed != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.MemBytesUsed)) + i-- + dAtA[i] = 0x50 + } + if m.TotalSvcSetCount != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.TotalSvcSetCount)) + i-- + dAtA[i] = 0x48 + } + if m.ActiveSvcSetCount != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.ActiveSvcSetCount)) + i-- + dAtA[i] = 0x40 + } + if m.InternalSvcSetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.InternalSvcSetId)) + i-- + dAtA[i] = 0x38 + } + if m.SvcSetName != nil { + i -= len(*m.SvcSetName) + copy(dAtA[i:], *m.SvcSetName) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(*m.SvcSetName))) + i-- + dAtA[i] = 0x32 + } + if m.SvcSetType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcSetType)) + i-- + dAtA[i] = 0x28 + } + if m.SvcType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcType)) + i-- + dAtA[i] = 0x20 + } + if m.ExternalSvcSetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.ExternalSvcSetId)) + i-- + dAtA[i] = 0x18 + } + if m.SvcsetIdPresent != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetIdPresent)) + i-- + dAtA[i] = 0x10 + } + if m.SvcsetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PktDropInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PktDropInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PktDropInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.DropExceedEgressLimit != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.DropExceedEgressLimit)) + i-- + dAtA[i] = 0x70 + } + if m.DropExceedIngressLimit != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.DropExceedIngressLimit)) + i-- + dAtA[i] = 0x68 + } + if m.EgressDropFlows != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.EgressDropFlows)) + i-- + dAtA[i] = 0x60 + } + if m.IngressDropFlows != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.IngressDropFlows)) + i-- + dAtA[i] = 0x58 + } + if m.PtclcopyDrops != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.PtclcopyDrops)) + i-- + dAtA[i] = 0x50 + } + if m.FlowlimitDrops != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.FlowlimitDrops)) + i-- + dAtA[i] = 0x48 + } + if m.CpulimitDrops != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.CpulimitDrops)) + i-- + dAtA[i] = 0x40 + } + if m.MemlimitDrops != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.MemlimitDrops)) + i-- + dAtA[i] = 0x38 + } + if m.SvcSetName != nil { + i -= len(*m.SvcSetName) + copy(dAtA[i:], *m.SvcSetName) + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(len(*m.SvcSetName))) + i-- + dAtA[i] = 0x32 + } + if m.SvcSetType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcSetType)) + i-- + dAtA[i] = 0x28 + } + if m.SvcType != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcType)) + i-- + dAtA[i] = 0x20 + } + if m.ExternalSvcSetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.ExternalSvcSetId)) + i-- + dAtA[i] = 0x18 + } + if m.SvcsetIdPresent != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetIdPresent)) + i-- + dAtA[i] = 0x10 + } + if m.SvcsetId != nil { + i = encodeVarintSvcsetTelemetry(dAtA, i, uint64(*m.SvcsetId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintSvcsetTelemetry(dAtA []byte, offset int, v uint64) int { + offset -= sovSvcsetTelemetry(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ServicesInfra) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SvcsPluginsInfo) > 0 { + for _, e := range m.SvcsPluginsInfo { + l = e.Size() + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + } + if len(m.SvcsetCpuInfo) > 0 { + for _, e := range m.SvcsetCpuInfo { + l = e.Size() + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + } + if len(m.SvcsetMemInfo) > 0 { + for _, e := range m.SvcsetMemInfo { + l = e.Size() + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + } + if len(m.SvcsetSvcInfo) > 0 { + for _, e := range m.SvcsetSvcInfo { + l = e.Size() + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + } + if len(m.SvcsetPktdropInfo) > 0 { + for _, e := range m.SvcsetPktdropInfo { + l = e.Size() + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PluginsInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SpNumPlugins != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpNumPlugins)) + } + if m.SpName != nil { + l = len(*m.SpName) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + if m.SpPid != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpPid)) + } + if m.SpDataEvh != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpDataEvh)) + } + if m.SpControlEvh != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpControlEvh)) + } + if m.SpClass != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpClass)) + } + if m.SpProviderId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpProviderId)) + } + if m.SpAppId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpAppId)) + } + if m.SpPluginFlags != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpPluginFlags)) + } + if m.SpTcpSupportFlags != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpTcpSupportFlags)) + } + if m.SpEvClassBase != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpEvClassBase)) + } + if m.SpPluginMask != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SpPluginMask)) + } + if len(m.SpEvClassName) > 0 { + for _, s := range m.SpEvClassName { + l = len(s) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CpuUsageInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SvcsetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetId)) + } + if m.SvcsetIdPresent != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetIdPresent)) + } + if m.ExternalSvcSetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.ExternalSvcSetId)) + } + if m.SvcType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcType)) + } + if m.SvcSetType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcSetType)) + } + if m.SvcSetName != nil { + l = len(*m.SvcSetName) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + if m.CpuUtilization != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.CpuUtilization)) + } + if m.CpuZone != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.CpuZone)) + } + if m.CpuLoad != nil { + n += 5 + } + if m.CpuUser != nil { + l = len(*m.CpuUser) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *MemUsageInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SvcsetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetId)) + } + if m.SvcsetIdPresent != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetIdPresent)) + } + if m.ExternalSvcSetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.ExternalSvcSetId)) + } + if m.SvcType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcType)) + } + if m.SvcSetType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcSetType)) + } + if m.SvcSetName != nil { + l = len(*m.SvcSetName) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + if m.MemPercentUsed != nil { + n += 5 + } + if m.MemBytesUsed != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.MemBytesUsed)) + } + if m.MemZone != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.MemZone)) + } + if m.PolicyBytesUsed != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.PolicyBytesUsed)) + } + if m.PolicyBytesUsedPercent != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.PolicyBytesUsedPercent)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ServicesInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SvcsetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetId)) + } + if m.SvcsetIdPresent != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetIdPresent)) + } + if m.ExternalSvcSetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.ExternalSvcSetId)) + } + if m.SvcType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcType)) + } + if m.SvcSetType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcSetType)) + } + if m.SvcSetName != nil { + l = len(*m.SvcSetName) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + if m.InternalSvcSetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.InternalSvcSetId)) + } + if m.ActiveSvcSetCount != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.ActiveSvcSetCount)) + } + if m.TotalSvcSetCount != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.TotalSvcSetCount)) + } + if m.MemBytesUsed != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.MemBytesUsed)) + } + if m.MemBytesUsedPercent != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.MemBytesUsedPercent)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PktDropInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SvcsetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetId)) + } + if m.SvcsetIdPresent != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcsetIdPresent)) + } + if m.ExternalSvcSetId != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.ExternalSvcSetId)) + } + if m.SvcType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcType)) + } + if m.SvcSetType != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.SvcSetType)) + } + if m.SvcSetName != nil { + l = len(*m.SvcSetName) + n += 1 + l + sovSvcsetTelemetry(uint64(l)) + } + if m.MemlimitDrops != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.MemlimitDrops)) + } + if m.CpulimitDrops != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.CpulimitDrops)) + } + if m.FlowlimitDrops != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.FlowlimitDrops)) + } + if m.PtclcopyDrops != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.PtclcopyDrops)) + } + if m.IngressDropFlows != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.IngressDropFlows)) + } + if m.EgressDropFlows != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.EgressDropFlows)) + } + if m.DropExceedIngressLimit != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.DropExceedIngressLimit)) + } + if m.DropExceedEgressLimit != nil { + n += 1 + sovSvcsetTelemetry(uint64(*m.DropExceedEgressLimit)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovSvcsetTelemetry(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSvcsetTelemetry(x uint64) (n int) { + return sovSvcsetTelemetry(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ServicesInfra) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServicesInfra: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServicesInfra: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsPluginsInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SvcsPluginsInfo = append(m.SvcsPluginsInfo, &PluginsInfo{}) + if err := m.SvcsPluginsInfo[len(m.SvcsPluginsInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetCpuInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SvcsetCpuInfo = append(m.SvcsetCpuInfo, &CpuUsageInfo{}) + if err := m.SvcsetCpuInfo[len(m.SvcsetCpuInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetMemInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SvcsetMemInfo = append(m.SvcsetMemInfo, &MemUsageInfo{}) + if err := m.SvcsetMemInfo[len(m.SvcsetMemInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetSvcInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SvcsetSvcInfo = append(m.SvcsetSvcInfo, &ServicesInfo{}) + if err := m.SvcsetSvcInfo[len(m.SvcsetSvcInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetPktdropInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SvcsetPktdropInfo = append(m.SvcsetPktdropInfo, &PktDropInfo{}) + if err := m.SvcsetPktdropInfo[len(m.SvcsetPktdropInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSvcsetTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PluginsInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PluginsInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PluginsInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpNumPlugins", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpNumPlugins = &v + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SpName = &s + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpPid", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpPid = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpDataEvh", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpDataEvh = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpControlEvh", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpControlEvh = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpClass", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpClass = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpProviderId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpProviderId = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpAppId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpAppId = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpPluginFlags", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpPluginFlags = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpTcpSupportFlags", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpTcpSupportFlags = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpEvClassBase", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpEvClassBase = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpPluginMask", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SpPluginMask = &v + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SpEvClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SpEvClassName = append(m.SpEvClassName, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSvcsetTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuUsageInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuUsageInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuUsageInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetId = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetIdPresent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetIdPresent = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalSvcSetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExternalSvcSetId = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcType = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcSetType = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SvcSetName = &s + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUtilization", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CpuUtilization = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuZone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CpuZone = &v + case 9: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuLoad", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.CpuLoad = &v2 + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.CpuUser = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSvcsetTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemUsageInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MemUsageInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemUsageInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetId = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetIdPresent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetIdPresent = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalSvcSetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExternalSvcSetId = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcType = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcSetType = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SvcSetName = &s + iNdEx = postIndex + case 7: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field MemPercentUsed", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + v2 := float32(math.Float32frombits(v)) + m.MemPercentUsed = &v2 + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemBytesUsed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemBytesUsed = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemZone", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemZone = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyBytesUsed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PolicyBytesUsed = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PolicyBytesUsedPercent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PolicyBytesUsedPercent = &v + default: + iNdEx = preIndex + skippy, err := skipSvcsetTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServicesInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServicesInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServicesInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetId = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetIdPresent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetIdPresent = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalSvcSetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExternalSvcSetId = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcType = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcSetType = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SvcSetName = &s + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InternalSvcSetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InternalSvcSetId = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveSvcSetCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveSvcSetCount = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalSvcSetCount", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalSvcSetCount = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemBytesUsed", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemBytesUsed = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemBytesUsedPercent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemBytesUsedPercent = &v + default: + iNdEx = preIndex + skippy, err := skipSvcsetTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PktDropInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PktDropInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PktDropInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetId = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcsetIdPresent", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcsetIdPresent = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalSvcSetId", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ExternalSvcSetId = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcType = &v + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetType", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SvcSetType = &v + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SvcSetName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SvcSetName = &s + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MemlimitDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MemlimitDrops = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CpulimitDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CpulimitDrops = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FlowlimitDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FlowlimitDrops = &v + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PtclcopyDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PtclcopyDrops = &v + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IngressDropFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IngressDropFlows = &v + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EgressDropFlows", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EgressDropFlows = &v + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropExceedIngressLimit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropExceedIngressLimit = &v + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DropExceedEgressLimit", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DropExceedEgressLimit = &v + default: + iNdEx = preIndex + skippy, err := skipSvcsetTelemetry(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSvcsetTelemetry + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSvcsetTelemetry(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowSvcsetTelemetry + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthSvcsetTelemetry + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSvcsetTelemetry + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSvcsetTelemetry + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSvcsetTelemetry = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSvcsetTelemetry = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSvcsetTelemetry = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/svcset_telemetry.proto b/schema/svcset_telemetry.proto new file mode 100755 index 0000000..e31ea1d --- /dev/null +++ b/schema/svcset_telemetry.proto @@ -0,0 +1,133 @@ +// Copyright (c) 2016, 2017 Juniper Networks, Inc. +// 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. + + +// +// Version 1.1 +// + +// +// Shibu Piriyath 2017-09-11 +// +// This file defines the messages in Protocol Buffers used by +// the service-set sensor. The top-level message is ServicesInfra. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +// +// This occupies branch 78 from JuniperNetworksSensors + +extend JuniperNetworksSensors { + optional ServicesInfra jnprScvsInfraExt = 78; +} + +// +// Top-level message +// +// + +message ServicesInfra { + repeated PluginsInfo svcs_plugins_info = 1 ; + repeated CpuUsageInfo svcset_cpu_info = 2; + repeated MemUsageInfo svcset_mem_info = 3; + repeated ServicesInfo svcset_svc_info = 4; + repeated PktDropInfo svcset_pktdrop_info = 5; +} + +///========================= +message PluginsInfo { + optional uint64 sp_num_plugins = 1; + optional string sp_name = 2; + optional uint64 sp_pid = 3; + optional uint64 sp_data_evh = 4; + optional uint64 sp_control_evh = 5; + optional uint64 sp_class = 6; + optional uint64 sp_provider_id = 7; + optional uint64 sp_app_id = 8; + optional uint64 sp_plugin_flags = 9; + optional uint64 sp_tcp_support_flags = 10; + optional uint64 sp_ev_class_base = 11; + optional uint64 sp_plugin_mask = 12; + repeated string sp_ev_class_name = 13; +} + +//-------------------------- +message CpuUsageInfo { + optional uint64 svcset_id = 1; + optional uint64 svcset_id_present = 2; + optional uint64 external_svc_set_id = 3; + optional uint64 svc_type = 4; + optional uint64 svc_set_type = 5; + optional string svc_set_name = 6; + + optional uint64 cpu_utilization = 7; + optional uint64 cpu_zone = 8; + optional float cpu_load = 9; + optional string cpu_user = 10; +} + +//-------------------------- +message MemUsageInfo { + optional uint64 svcset_id = 1; + optional uint64 svcset_id_present = 2; + optional uint64 external_svc_set_id = 3; + optional uint64 svc_type = 4; + optional uint64 svc_set_type = 5; + optional string svc_set_name = 6; + + optional float mem_percent_used = 7; + optional uint64 mem_bytes_used = 8; + optional uint64 mem_zone = 9; + optional uint64 policy_bytes_used = 10; + optional uint64 policy_bytes_used_percent = 11; +} + +//-------------------------- +message ServicesInfo { + optional uint64 svcset_id = 1; + optional uint64 svcset_id_present = 2; + optional uint64 external_svc_set_id = 3; + optional uint64 svc_type = 4; + optional uint64 svc_set_type = 5; + optional string svc_set_name = 6; + optional uint64 internal_svc_set_id = 7; + + optional uint64 active_svc_set_count = 8; + optional uint64 total_svc_set_count = 9; + optional uint64 mem_bytes_used = 10; + optional uint64 mem_bytes_used_percent = 11; +} +//-------------------------- +message PktDropInfo { + optional uint64 svcset_id = 1; + optional uint64 svcset_id_present = 2; + optional uint64 external_svc_set_id = 3; + optional uint64 svc_type = 4; + optional uint64 svc_set_type = 5; + optional string svc_set_name = 6; + + optional uint64 memlimit_drops = 7; + optional uint64 cpulimit_drops = 8; + optional uint64 flowlimit_drops = 9; + optional uint64 ptclcopy_drops = 10; + optional uint64 ingress_drop_flows = 11; + optional uint64 egress_drop_flows = 12; + optional uint64 drop_exceed_ingress_limit = 13; + optional uint64 drop_exceed_egress_limit = 14; +} + diff --git a/schema/telemetry_top.pb.go b/schema/telemetry_top.pb.go new file mode 100644 index 0000000..4c519f4 --- /dev/null +++ b/schema/telemetry_top.pb.go @@ -0,0 +1,1661 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: telemetry_top.proto + +package schema + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type TelemetryFieldOptions struct { + IsKey *bool `protobuf:"varint,1,opt,name=is_key,json=isKey" json:"is_key,omitempty"` + IsTimestamp *bool `protobuf:"varint,2,opt,name=is_timestamp,json=isTimestamp" json:"is_timestamp,omitempty"` + IsCounter *bool `protobuf:"varint,3,opt,name=is_counter,json=isCounter" json:"is_counter,omitempty"` + IsGauge *bool `protobuf:"varint,4,opt,name=is_gauge,json=isGauge" json:"is_gauge,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetryFieldOptions) Reset() { *m = TelemetryFieldOptions{} } +func (m *TelemetryFieldOptions) String() string { return proto.CompactTextString(m) } +func (*TelemetryFieldOptions) ProtoMessage() {} +func (*TelemetryFieldOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_610679feed69e1a4, []int{0} +} +func (m *TelemetryFieldOptions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetryFieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetryFieldOptions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetryFieldOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetryFieldOptions.Merge(m, src) +} +func (m *TelemetryFieldOptions) XXX_Size() int { + return m.Size() +} +func (m *TelemetryFieldOptions) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetryFieldOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetryFieldOptions proto.InternalMessageInfo + +func (m *TelemetryFieldOptions) GetIsKey() bool { + if m != nil && m.IsKey != nil { + return *m.IsKey + } + return false +} + +func (m *TelemetryFieldOptions) GetIsTimestamp() bool { + if m != nil && m.IsTimestamp != nil { + return *m.IsTimestamp + } + return false +} + +func (m *TelemetryFieldOptions) GetIsCounter() bool { + if m != nil && m.IsCounter != nil { + return *m.IsCounter + } + return false +} + +func (m *TelemetryFieldOptions) GetIsGauge() bool { + if m != nil && m.IsGauge != nil { + return *m.IsGauge + } + return false +} + +type TelemetryStream struct { + // router hostname + // (or, just in the case of legacy (microkernel) PFEs, the IP address) + SystemId *string `protobuf:"bytes,1,req,name=system_id,json=systemId" json:"system_id,omitempty"` + // line card / RE (slot number). For RE, it will be 65535 + ComponentId *uint32 `protobuf:"varint,2,opt,name=component_id,json=componentId" json:"component_id,omitempty"` + // PFE (if applicable) + SubComponentId *uint32 `protobuf:"varint,3,opt,name=sub_component_id,json=subComponentId" json:"sub_component_id,omitempty"` + // Overload sensor name with "senor name, internal path, external path + // and component" seperated by ":". For RE sensors, component will be + // daemon-name and for PFE sensors it will be "PFE". + SensorName *string `protobuf:"bytes,4,opt,name=sensor_name,json=sensorName" json:"sensor_name,omitempty"` + // sequence number, monotonically increasing for each + // system_id, component_id, sub_component_id + sensor_name. + SequenceNumber *uint32 `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"` + // timestamp (milliseconds since 00:00:00 UTC 1/1/1970) + Timestamp *uint64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp,omitempty"` + // major version + VersionMajor *uint32 `protobuf:"varint,7,opt,name=version_major,json=versionMajor" json:"version_major,omitempty"` + // minor version + VersionMinor *uint32 `protobuf:"varint,8,opt,name=version_minor,json=versionMinor" json:"version_minor,omitempty"` + // end-of-message marker, set to true when the end of wrap is reached + Eom *bool `protobuf:"varint,9,opt,name=eom" json:"eom,omitempty"` + Ietf *IETFSensors `protobuf:"bytes,100,opt,name=ietf" json:"ietf,omitempty"` + Enterprise *EnterpriseSensors `protobuf:"bytes,101,opt,name=enterprise" json:"enterprise,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TelemetryStream) Reset() { *m = TelemetryStream{} } +func (m *TelemetryStream) String() string { return proto.CompactTextString(m) } +func (*TelemetryStream) ProtoMessage() {} +func (*TelemetryStream) Descriptor() ([]byte, []int) { + return fileDescriptor_610679feed69e1a4, []int{1} +} +func (m *TelemetryStream) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TelemetryStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TelemetryStream.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TelemetryStream) XXX_Merge(src proto.Message) { + xxx_messageInfo_TelemetryStream.Merge(m, src) +} +func (m *TelemetryStream) XXX_Size() int { + return m.Size() +} +func (m *TelemetryStream) XXX_DiscardUnknown() { + xxx_messageInfo_TelemetryStream.DiscardUnknown(m) +} + +var xxx_messageInfo_TelemetryStream proto.InternalMessageInfo + +func (m *TelemetryStream) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *TelemetryStream) GetComponentId() uint32 { + if m != nil && m.ComponentId != nil { + return *m.ComponentId + } + return 0 +} + +func (m *TelemetryStream) GetSubComponentId() uint32 { + if m != nil && m.SubComponentId != nil { + return *m.SubComponentId + } + return 0 +} + +func (m *TelemetryStream) GetSensorName() string { + if m != nil && m.SensorName != nil { + return *m.SensorName + } + return "" +} + +func (m *TelemetryStream) GetSequenceNumber() uint32 { + if m != nil && m.SequenceNumber != nil { + return *m.SequenceNumber + } + return 0 +} + +func (m *TelemetryStream) GetTimestamp() uint64 { + if m != nil && m.Timestamp != nil { + return *m.Timestamp + } + return 0 +} + +func (m *TelemetryStream) GetVersionMajor() uint32 { + if m != nil && m.VersionMajor != nil { + return *m.VersionMajor + } + return 0 +} + +func (m *TelemetryStream) GetVersionMinor() uint32 { + if m != nil && m.VersionMinor != nil { + return *m.VersionMinor + } + return 0 +} + +func (m *TelemetryStream) GetEom() bool { + if m != nil && m.Eom != nil { + return *m.Eom + } + return false +} + +func (m *TelemetryStream) GetIetf() *IETFSensors { + if m != nil { + return m.Ietf + } + return nil +} + +func (m *TelemetryStream) GetEnterprise() *EnterpriseSensors { + if m != nil { + return m.Enterprise + } + return nil +} + +type IETFSensors struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IETFSensors) Reset() { *m = IETFSensors{} } +func (m *IETFSensors) String() string { return proto.CompactTextString(m) } +func (*IETFSensors) ProtoMessage() {} +func (*IETFSensors) Descriptor() ([]byte, []int) { + return fileDescriptor_610679feed69e1a4, []int{2} +} + +var extRange_IETFSensors = []proto.ExtensionRange{ + {Start: 1, End: 536870911}, +} + +func (*IETFSensors) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_IETFSensors +} + +func (m *IETFSensors) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IETFSensors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IETFSensors.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IETFSensors) XXX_Merge(src proto.Message) { + xxx_messageInfo_IETFSensors.Merge(m, src) +} +func (m *IETFSensors) XXX_Size() int { + return m.Size() +} +func (m *IETFSensors) XXX_DiscardUnknown() { + xxx_messageInfo_IETFSensors.DiscardUnknown(m) +} + +var xxx_messageInfo_IETFSensors proto.InternalMessageInfo + +type EnterpriseSensors struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnterpriseSensors) Reset() { *m = EnterpriseSensors{} } +func (m *EnterpriseSensors) String() string { return proto.CompactTextString(m) } +func (*EnterpriseSensors) ProtoMessage() {} +func (*EnterpriseSensors) Descriptor() ([]byte, []int) { + return fileDescriptor_610679feed69e1a4, []int{3} +} + +var extRange_EnterpriseSensors = []proto.ExtensionRange{ + {Start: 1, End: 536870911}, +} + +func (*EnterpriseSensors) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_EnterpriseSensors +} + +func (m *EnterpriseSensors) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EnterpriseSensors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EnterpriseSensors.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EnterpriseSensors) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnterpriseSensors.Merge(m, src) +} +func (m *EnterpriseSensors) XXX_Size() int { + return m.Size() +} +func (m *EnterpriseSensors) XXX_DiscardUnknown() { + xxx_messageInfo_EnterpriseSensors.DiscardUnknown(m) +} + +var xxx_messageInfo_EnterpriseSensors proto.InternalMessageInfo + +type JuniperNetworksSensors struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *JuniperNetworksSensors) Reset() { *m = JuniperNetworksSensors{} } +func (m *JuniperNetworksSensors) String() string { return proto.CompactTextString(m) } +func (*JuniperNetworksSensors) ProtoMessage() {} +func (*JuniperNetworksSensors) Descriptor() ([]byte, []int) { + return fileDescriptor_610679feed69e1a4, []int{4} +} + +var extRange_JuniperNetworksSensors = []proto.ExtensionRange{ + {Start: 1, End: 536870911}, +} + +func (*JuniperNetworksSensors) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_JuniperNetworksSensors +} + +func (m *JuniperNetworksSensors) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *JuniperNetworksSensors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_JuniperNetworksSensors.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *JuniperNetworksSensors) XXX_Merge(src proto.Message) { + xxx_messageInfo_JuniperNetworksSensors.Merge(m, src) +} +func (m *JuniperNetworksSensors) XXX_Size() int { + return m.Size() +} +func (m *JuniperNetworksSensors) XXX_DiscardUnknown() { + xxx_messageInfo_JuniperNetworksSensors.DiscardUnknown(m) +} + +var xxx_messageInfo_JuniperNetworksSensors proto.InternalMessageInfo + +var E_TelemetryOptions = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.FieldOptions)(nil), + ExtensionType: (*TelemetryFieldOptions)(nil), + Field: 1024, + Name: "telemetry_options", + Tag: "bytes,1024,opt,name=telemetry_options", + Filename: "telemetry_top.proto", +} + +var E_JuniperNetworks = &proto.ExtensionDesc{ + ExtendedType: (*EnterpriseSensors)(nil), + ExtensionType: (*JuniperNetworksSensors)(nil), + Field: 2636, + Name: "juniperNetworks", + Tag: "bytes,2636,opt,name=juniperNetworks", + Filename: "telemetry_top.proto", +} + +func init() { + proto.RegisterType((*TelemetryFieldOptions)(nil), "TelemetryFieldOptions") + proto.RegisterType((*TelemetryStream)(nil), "TelemetryStream") + proto.RegisterType((*IETFSensors)(nil), "IETFSensors") + proto.RegisterType((*EnterpriseSensors)(nil), "EnterpriseSensors") + proto.RegisterType((*JuniperNetworksSensors)(nil), "JuniperNetworksSensors") + proto.RegisterExtension(E_TelemetryOptions) + proto.RegisterExtension(E_JuniperNetworks) +} + +func init() { proto.RegisterFile("telemetry_top.proto", fileDescriptor_610679feed69e1a4) } + +var fileDescriptor_610679feed69e1a4 = []byte{ + // 585 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcd, 0x4e, 0xdb, 0x40, + 0x14, 0x85, 0xe5, 0x84, 0x1f, 0xe7, 0x26, 0x40, 0x98, 0x16, 0x98, 0x56, 0x02, 0xa5, 0x41, 0x6a, + 0xa3, 0x4a, 0xd8, 0x12, 0x4b, 0x56, 0x15, 0x08, 0x2a, 0x5a, 0x95, 0x4a, 0x06, 0x75, 0xd1, 0x8d, + 0xeb, 0xd8, 0x17, 0x33, 0x21, 0x9e, 0x71, 0xe7, 0x8e, 0xa9, 0xb2, 0x8b, 0xba, 0xed, 0x0b, 0xf5, + 0x11, 0xba, 0xe8, 0xa2, 0x8f, 0x50, 0xf1, 0x24, 0x95, 0x27, 0x3f, 0x24, 0x25, 0x3b, 0xcf, 0xb9, + 0xdf, 0x3d, 0x3a, 0x33, 0x3e, 0xf0, 0xc4, 0x60, 0x1f, 0x33, 0x34, 0x7a, 0x10, 0x1a, 0x95, 0x7b, + 0xb9, 0x56, 0x46, 0x3d, 0x6f, 0xa5, 0x4a, 0xa5, 0x7d, 0xf4, 0xed, 0xa9, 0x5b, 0x5c, 0xfb, 0x09, + 0x52, 0xac, 0x45, 0x6e, 0x94, 0x1e, 0x11, 0xed, 0x1f, 0x0e, 0x6c, 0x5d, 0x4d, 0x36, 0xcf, 0x04, + 0xf6, 0x93, 0x8f, 0xb9, 0x11, 0x4a, 0x12, 0xdb, 0x82, 0x15, 0x41, 0xe1, 0x2d, 0x0e, 0xb8, 0xd3, + 0x72, 0x3a, 0x6e, 0xb0, 0x2c, 0xe8, 0x3d, 0x0e, 0xd8, 0x0b, 0x68, 0x08, 0x0a, 0x8d, 0xc8, 0x90, + 0x4c, 0x94, 0xe5, 0xbc, 0x62, 0x87, 0x75, 0x41, 0x57, 0x13, 0x89, 0xed, 0x02, 0x08, 0x0a, 0x63, + 0x55, 0x48, 0x83, 0x9a, 0x57, 0x2d, 0x50, 0x13, 0x74, 0x32, 0x12, 0xd8, 0x33, 0x70, 0x05, 0x85, + 0x69, 0x54, 0xa4, 0xc8, 0x97, 0xec, 0x70, 0x55, 0xd0, 0xdb, 0xf2, 0xd8, 0xfe, 0x59, 0x85, 0x8d, + 0x69, 0x9a, 0x4b, 0xa3, 0x31, 0xca, 0x58, 0x1b, 0x6a, 0x34, 0x20, 0x83, 0x59, 0x28, 0x12, 0xee, + 0xb4, 0x2a, 0x9d, 0xda, 0xf1, 0xf2, 0xf7, 0x37, 0x15, 0xd7, 0x09, 0xdc, 0x91, 0x7e, 0x9e, 0xb0, + 0x0e, 0x34, 0x62, 0x95, 0xe5, 0x4a, 0xa2, 0x34, 0x25, 0x56, 0x86, 0x5a, 0x9b, 0x60, 0xf5, 0xe9, + 0xe8, 0x3c, 0x61, 0x3e, 0x34, 0xa9, 0xe8, 0x86, 0x73, 0x74, 0x75, 0x96, 0x5e, 0xa7, 0xa2, 0x7b, + 0x32, 0xb3, 0xf0, 0x12, 0xea, 0x84, 0x92, 0x94, 0x0e, 0x65, 0x94, 0x8d, 0x02, 0x4f, 0x03, 0xc0, + 0x68, 0x72, 0x11, 0x65, 0xc8, 0x5e, 0xc1, 0x06, 0xe1, 0xd7, 0x02, 0x65, 0x8c, 0xa1, 0x2c, 0xb2, + 0x2e, 0x6a, 0xbe, 0x5c, 0xfa, 0x06, 0xeb, 0x13, 0xf9, 0xc2, 0xaa, 0x6c, 0x1f, 0x6a, 0x0f, 0xaf, + 0xb7, 0xd2, 0x72, 0x3a, 0x4b, 0xd6, 0xae, 0xe9, 0x04, 0x0f, 0x3a, 0xdb, 0x87, 0xb5, 0x3b, 0xd4, + 0x24, 0x94, 0x0c, 0xb3, 0xa8, 0xa7, 0x34, 0x5f, 0xb5, 0x5e, 0x8d, 0xb1, 0xf8, 0xa1, 0xd4, 0xe6, + 0x20, 0x21, 0x95, 0xe6, 0xee, 0x3c, 0x54, 0x6a, 0xac, 0x09, 0x55, 0x54, 0x19, 0xaf, 0xd9, 0x87, + 0x2e, 0x3f, 0x59, 0x0b, 0x96, 0x04, 0x9a, 0x6b, 0x9e, 0xb4, 0x9c, 0x4e, 0xfd, 0xb0, 0xe1, 0x9d, + 0x9f, 0x5e, 0x9d, 0x5d, 0xda, 0x8b, 0x50, 0x60, 0x27, 0xec, 0x10, 0x00, 0xcb, 0x5f, 0x95, 0x6b, + 0x41, 0xc8, 0xd1, 0x72, 0xcc, 0x3b, 0x9d, 0x4a, 0x13, 0x7a, 0x86, 0x6a, 0xef, 0x40, 0x7d, 0xc6, + 0xe8, 0xb5, 0xeb, 0x3a, 0xcd, 0xe1, 0x70, 0x38, 0xac, 0xb4, 0x77, 0x61, 0xf3, 0xd1, 0xe6, 0xcc, + 0xb8, 0x0d, 0xdb, 0xef, 0x0a, 0x29, 0x72, 0xd4, 0x17, 0x68, 0xbe, 0x29, 0x7d, 0x4b, 0x8f, 0x98, + 0xa3, 0x18, 0x36, 0x1f, 0xda, 0xad, 0xc6, 0xfd, 0xdc, 0xf5, 0x46, 0xe5, 0xf6, 0x26, 0xe5, 0xf6, + 0x66, 0xeb, 0xcb, 0x87, 0xae, 0x8d, 0xbd, 0xed, 0x2d, 0x6c, 0x77, 0xd0, 0x9c, 0x1a, 0x8e, 0x95, + 0xa3, 0x4f, 0xb0, 0xd1, 0x9b, 0x0f, 0xc2, 0x16, 0xdc, 0x99, 0xff, 0x7e, 0x6a, 0x7d, 0x77, 0xbc, + 0xc5, 0xa9, 0x83, 0xff, 0x4d, 0x8e, 0xbf, 0xfc, 0xba, 0xdf, 0x73, 0xfe, 0xdc, 0xef, 0x39, 0x7f, + 0xef, 0xf7, 0x9c, 0xcf, 0x41, 0x2a, 0x8c, 0x37, 0x46, 0x3c, 0x89, 0xc6, 0x17, 0x31, 0x76, 0x51, + 0xa7, 0xfe, 0x0d, 0x46, 0x7d, 0x73, 0xd3, 0x55, 0xe6, 0x40, 0xc8, 0x14, 0xc9, 0x1c, 0xf4, 0x8c, + 0x38, 0x90, 0x91, 0x11, 0x77, 0xe8, 0xe7, 0xb7, 0xa9, 0xdf, 0x33, 0xc2, 0x8f, 0x92, 0x28, 0x37, + 0xa8, 0xc9, 0x0f, 0x7b, 0x85, 0x54, 0xe4, 0x53, 0x7c, 0x83, 0x59, 0xf4, 0x2f, 0x00, 0x00, 0xff, + 0xff, 0xa4, 0x4d, 0x82, 0x85, 0xfb, 0x03, 0x00, 0x00, +} + +func (m *TelemetryFieldOptions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetryFieldOptions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetryFieldOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.IsGauge != nil { + i-- + if *m.IsGauge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.IsCounter != nil { + i-- + if *m.IsCounter { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.IsTimestamp != nil { + i-- + if *m.IsTimestamp { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.IsKey != nil { + i-- + if *m.IsKey { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TelemetryStream) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TelemetryStream) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TelemetryStream) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Enterprise != nil { + { + size, err := m.Enterprise.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTelemetryTop(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + if m.Ietf != nil { + { + size, err := m.Ietf.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTelemetryTop(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xa2 + } + if m.Eom != nil { + i-- + if *m.Eom { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.VersionMinor != nil { + i = encodeVarintTelemetryTop(dAtA, i, uint64(*m.VersionMinor)) + i-- + dAtA[i] = 0x40 + } + if m.VersionMajor != nil { + i = encodeVarintTelemetryTop(dAtA, i, uint64(*m.VersionMajor)) + i-- + dAtA[i] = 0x38 + } + if m.Timestamp != nil { + i = encodeVarintTelemetryTop(dAtA, i, uint64(*m.Timestamp)) + i-- + dAtA[i] = 0x30 + } + if m.SequenceNumber != nil { + i = encodeVarintTelemetryTop(dAtA, i, uint64(*m.SequenceNumber)) + i-- + dAtA[i] = 0x28 + } + if m.SensorName != nil { + i -= len(*m.SensorName) + copy(dAtA[i:], *m.SensorName) + i = encodeVarintTelemetryTop(dAtA, i, uint64(len(*m.SensorName))) + i-- + dAtA[i] = 0x22 + } + if m.SubComponentId != nil { + i = encodeVarintTelemetryTop(dAtA, i, uint64(*m.SubComponentId)) + i-- + dAtA[i] = 0x18 + } + if m.ComponentId != nil { + i = encodeVarintTelemetryTop(dAtA, i, uint64(*m.ComponentId)) + i-- + dAtA[i] = 0x10 + } + if m.SystemId == nil { + return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("system_id") + } else { + i -= len(*m.SystemId) + copy(dAtA[i:], *m.SystemId) + i = encodeVarintTelemetryTop(dAtA, i, uint64(len(*m.SystemId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IETFSensors) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IETFSensors) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IETFSensors) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if n, err := github_com_gogo_protobuf_proto.EncodeInternalExtensionBackwards(m, dAtA[:i]); err != nil { + return 0, err + } else { + i -= n + } + return len(dAtA) - i, nil +} + +func (m *EnterpriseSensors) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EnterpriseSensors) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EnterpriseSensors) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if n, err := github_com_gogo_protobuf_proto.EncodeInternalExtensionBackwards(m, dAtA[:i]); err != nil { + return 0, err + } else { + i -= n + } + return len(dAtA) - i, nil +} + +func (m *JuniperNetworksSensors) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JuniperNetworksSensors) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *JuniperNetworksSensors) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if n, err := github_com_gogo_protobuf_proto.EncodeInternalExtensionBackwards(m, dAtA[:i]); err != nil { + return 0, err + } else { + i -= n + } + return len(dAtA) - i, nil +} + +func encodeVarintTelemetryTop(dAtA []byte, offset int, v uint64) int { + offset -= sovTelemetryTop(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TelemetryFieldOptions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IsKey != nil { + n += 2 + } + if m.IsTimestamp != nil { + n += 2 + } + if m.IsCounter != nil { + n += 2 + } + if m.IsGauge != nil { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TelemetryStream) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SystemId != nil { + l = len(*m.SystemId) + n += 1 + l + sovTelemetryTop(uint64(l)) + } + if m.ComponentId != nil { + n += 1 + sovTelemetryTop(uint64(*m.ComponentId)) + } + if m.SubComponentId != nil { + n += 1 + sovTelemetryTop(uint64(*m.SubComponentId)) + } + if m.SensorName != nil { + l = len(*m.SensorName) + n += 1 + l + sovTelemetryTop(uint64(l)) + } + if m.SequenceNumber != nil { + n += 1 + sovTelemetryTop(uint64(*m.SequenceNumber)) + } + if m.Timestamp != nil { + n += 1 + sovTelemetryTop(uint64(*m.Timestamp)) + } + if m.VersionMajor != nil { + n += 1 + sovTelemetryTop(uint64(*m.VersionMajor)) + } + if m.VersionMinor != nil { + n += 1 + sovTelemetryTop(uint64(*m.VersionMinor)) + } + if m.Eom != nil { + n += 2 + } + if m.Ietf != nil { + l = m.Ietf.Size() + n += 2 + l + sovTelemetryTop(uint64(l)) + } + if m.Enterprise != nil { + l = m.Enterprise.Size() + n += 2 + l + sovTelemetryTop(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *IETFSensors) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += github_com_gogo_protobuf_proto.SizeOfInternalExtension(m) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *EnterpriseSensors) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += github_com_gogo_protobuf_proto.SizeOfInternalExtension(m) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *JuniperNetworksSensors) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += github_com_gogo_protobuf_proto.SizeOfInternalExtension(m) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovTelemetryTop(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTelemetryTop(x uint64) (n int) { + return sovTelemetryTop(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TelemetryFieldOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TelemetryFieldOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TelemetryFieldOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsKey", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsKey = &b + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsTimestamp", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsTimestamp = &b + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsCounter", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsCounter = &b + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsGauge", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.IsGauge = &b + default: + iNdEx = preIndex + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TelemetryStream) Unmarshal(dAtA []byte) error { + var hasFields [1]uint64 + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TelemetryStream: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TelemetryStream: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTelemetryTop + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTelemetryTop + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SystemId = &s + iNdEx = postIndex + hasFields[0] |= uint64(0x00000001) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ComponentId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ComponentId = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SubComponentId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SubComponentId = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SensorName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTelemetryTop + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTelemetryTop + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.SensorName = &s + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SequenceNumber", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SequenceNumber = &v + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Timestamp = &v + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionMajor", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VersionMajor = &v + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionMinor", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VersionMinor = &v + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Eom", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Eom = &b + case 100: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ietf", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTelemetryTop + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTelemetryTop + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ietf == nil { + m.Ietf = &IETFSensors{} + } + if err := m.Ietf.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Enterprise", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTelemetryTop + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTelemetryTop + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Enterprise == nil { + m.Enterprise = &EnterpriseSensors{} + } + if err := m.Enterprise.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + if hasFields[0]&uint64(0x00000001) == 0 { + return github_com_gogo_protobuf_proto.NewRequiredNotSetError("system_id") + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IETFSensors) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IETFSensors: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IETFSensors: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + if (fieldNum >= 1) && (fieldNum < 536870912) { + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + github_com_gogo_protobuf_proto.AppendExtension(m, int32(fieldNum), dAtA[iNdEx:iNdEx+skippy]) + iNdEx += skippy + } else { + iNdEx = preIndex + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EnterpriseSensors) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EnterpriseSensors: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EnterpriseSensors: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + if (fieldNum >= 1) && (fieldNum < 536870912) { + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + github_com_gogo_protobuf_proto.AppendExtension(m, int32(fieldNum), dAtA[iNdEx:iNdEx+skippy]) + iNdEx += skippy + } else { + iNdEx = preIndex + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *JuniperNetworksSensors) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: JuniperNetworksSensors: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: JuniperNetworksSensors: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + if (fieldNum >= 1) && (fieldNum < 536870912) { + var sizeOfWire int + for { + sizeOfWire++ + wire >>= 7 + if wire == 0 { + break + } + } + iNdEx -= sizeOfWire + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + github_com_gogo_protobuf_proto.AppendExtension(m, int32(fieldNum), dAtA[iNdEx:iNdEx+skippy]) + iNdEx += skippy + } else { + iNdEx = preIndex + skippy, err := skipTelemetryTop(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTelemetryTop + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTelemetryTop(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTelemetryTop + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTelemetryTop + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTelemetryTop + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTelemetryTop + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTelemetryTop = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTelemetryTop = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTelemetryTop = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/telemetry_top.proto b/schema/telemetry_top.proto new file mode 100755 index 0000000..8cac2a7 --- /dev/null +++ b/schema/telemetry_top.proto @@ -0,0 +1,99 @@ +// +// Copyrights (c) 2015, 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// This file defines the top level message used for all Juniper +// Telemetry packets encoded to the protocol buffer format. +// The top level message is TelemetryStream. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.FieldOptions { + optional TelemetryFieldOptions telemetry_options = 1024; +} + +message TelemetryFieldOptions { + optional bool is_key = 1; + optional bool is_timestamp = 2; + optional bool is_counter = 3; + optional bool is_gauge = 4; +} + +message TelemetryStream { + // router hostname + // (or, just in the case of legacy (microkernel) PFEs, the IP address) + required string system_id = 1 [(telemetry_options).is_key = true]; + + // line card / RE (slot number). For RE, it will be 65535 + optional uint32 component_id = 2 [(telemetry_options).is_key = true]; + + // PFE (if applicable) + optional uint32 sub_component_id = 3 [(telemetry_options).is_key = true]; + + // Overload sensor name with "senor name, internal path, external path + // and component" seperated by ":". For RE sensors, component will be + // daemon-name and for PFE sensors it will be "PFE". + optional string sensor_name = 4 [(telemetry_options).is_key = true]; + + // sequence number, monotonically increasing for each + // system_id, component_id, sub_component_id + sensor_name. + optional uint32 sequence_number = 5; + + // timestamp (milliseconds since 00:00:00 UTC 1/1/1970) + optional uint64 timestamp = 6 [(telemetry_options).is_timestamp = true]; + + // major version + optional uint32 version_major = 7; + + // minor version + optional uint32 version_minor = 8; + + // end-of-message marker, set to true when the end of wrap is reached + optional bool eom = 9; + + optional IETFSensors ietf = 100; + + optional EnterpriseSensors enterprise = 101; +} + +message IETFSensors { + extensions 1 to max; +} + +message EnterpriseSensors { + extensions 1 to max; +} + +extend EnterpriseSensors { + // re-use IANA assigned numbers + optional JuniperNetworksSensors juniperNetworks = 2636; +} + +message JuniperNetworksSensors { + extensions 1 to max; +} + diff --git a/schema/telemetry_top/telemetry_top.pb.go b/schema/telemetry_top/telemetry_top.pb.go new file mode 100644 index 0000000..95816a6 --- /dev/null +++ b/schema/telemetry_top/telemetry_top.pb.go @@ -0,0 +1,294 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: telemetry_top.proto + +/* +Package telemetry_top is a generated protocol buffer package. + +It is generated from these files: + telemetry_top.proto + +It has these top-level messages: + TelemetryFieldOptions + TelemetryStream + IETFSensors + EnterpriseSensors + JuniperNetworksSensors +*/ +package telemetry_top + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +//import _ "." +import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type TelemetryFieldOptions struct { + IsKey *bool `protobuf:"varint,1,opt,name=is_key,json=isKey" json:"is_key,omitempty"` + IsTimestamp *bool `protobuf:"varint,2,opt,name=is_timestamp,json=isTimestamp" json:"is_timestamp,omitempty"` + IsCounter *bool `protobuf:"varint,3,opt,name=is_counter,json=isCounter" json:"is_counter,omitempty"` + IsGauge *bool `protobuf:"varint,4,opt,name=is_gauge,json=isGauge" json:"is_gauge,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *TelemetryFieldOptions) Reset() { *m = TelemetryFieldOptions{} } +func (m *TelemetryFieldOptions) String() string { return proto.CompactTextString(m) } +func (*TelemetryFieldOptions) ProtoMessage() {} +func (*TelemetryFieldOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *TelemetryFieldOptions) GetIsKey() bool { + if m != nil && m.IsKey != nil { + return *m.IsKey + } + return false +} + +func (m *TelemetryFieldOptions) GetIsTimestamp() bool { + if m != nil && m.IsTimestamp != nil { + return *m.IsTimestamp + } + return false +} + +func (m *TelemetryFieldOptions) GetIsCounter() bool { + if m != nil && m.IsCounter != nil { + return *m.IsCounter + } + return false +} + +func (m *TelemetryFieldOptions) GetIsGauge() bool { + if m != nil && m.IsGauge != nil { + return *m.IsGauge + } + return false +} + +type TelemetryStream struct { + // router name or export IP address + SystemId *string `protobuf:"bytes,1,req,name=system_id,json=systemId" json:"system_id,omitempty"` + // line card / RE (slot number) + ComponentId *uint32 `protobuf:"varint,2,opt,name=component_id,json=componentId" json:"component_id,omitempty"` + // PFE (if applicable) + SubComponentId *uint32 `protobuf:"varint,3,opt,name=sub_component_id,json=subComponentId" json:"sub_component_id,omitempty"` + // configured sensor name + SensorName *string `protobuf:"bytes,4,opt,name=sensor_name,json=sensorName" json:"sensor_name,omitempty"` + // sequence number, monotonically increasesing for each + // system_id, component_id, sub_component_id + sensor_name. + SequenceNumber *uint32 `protobuf:"varint,5,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"` + // timestamp (milliseconds since 00:00:00 UTC 1/1/1970) + Timestamp *uint64 `protobuf:"varint,6,opt,name=timestamp" json:"timestamp,omitempty"` + // major version + VersionMajor *uint32 `protobuf:"varint,7,opt,name=version_major,json=versionMajor" json:"version_major,omitempty"` + // minor version + VersionMinor *uint32 `protobuf:"varint,8,opt,name=version_minor,json=versionMinor" json:"version_minor,omitempty"` + Ietf *IETFSensors `protobuf:"bytes,100,opt,name=ietf" json:"ietf,omitempty"` + Enterprise *EnterpriseSensors `protobuf:"bytes,101,opt,name=enterprise" json:"enterprise,omitempty"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *TelemetryStream) Reset() { *m = TelemetryStream{} } +func (m *TelemetryStream) String() string { return proto.CompactTextString(m) } +func (*TelemetryStream) ProtoMessage() {} +func (*TelemetryStream) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *TelemetryStream) GetSystemId() string { + if m != nil && m.SystemId != nil { + return *m.SystemId + } + return "" +} + +func (m *TelemetryStream) GetComponentId() uint32 { + if m != nil && m.ComponentId != nil { + return *m.ComponentId + } + return 0 +} + +func (m *TelemetryStream) GetSubComponentId() uint32 { + if m != nil && m.SubComponentId != nil { + return *m.SubComponentId + } + return 0 +} + +func (m *TelemetryStream) GetSensorName() string { + if m != nil && m.SensorName != nil { + return *m.SensorName + } + return "" +} + +func (m *TelemetryStream) GetSequenceNumber() uint32 { + if m != nil && m.SequenceNumber != nil { + return *m.SequenceNumber + } + return 0 +} + +func (m *TelemetryStream) GetTimestamp() uint64 { + if m != nil && m.Timestamp != nil { + return *m.Timestamp + } + return 0 +} + +func (m *TelemetryStream) GetVersionMajor() uint32 { + if m != nil && m.VersionMajor != nil { + return *m.VersionMajor + } + return 0 +} + +func (m *TelemetryStream) GetVersionMinor() uint32 { + if m != nil && m.VersionMinor != nil { + return *m.VersionMinor + } + return 0 +} + +func (m *TelemetryStream) GetIetf() *IETFSensors { + if m != nil { + return m.Ietf + } + return nil +} + +func (m *TelemetryStream) GetEnterprise() *EnterpriseSensors { + if m != nil { + return m.Enterprise + } + return nil +} + +type IETFSensors struct { + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *IETFSensors) Reset() { *m = IETFSensors{} } +func (m *IETFSensors) String() string { return proto.CompactTextString(m) } +func (*IETFSensors) ProtoMessage() {} +func (*IETFSensors) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +var extRange_IETFSensors = []proto.ExtensionRange{ + {1, 536870911}, +} + +func (*IETFSensors) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_IETFSensors +} + +type EnterpriseSensors struct { + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *EnterpriseSensors) Reset() { *m = EnterpriseSensors{} } +func (m *EnterpriseSensors) String() string { return proto.CompactTextString(m) } +func (*EnterpriseSensors) ProtoMessage() {} +func (*EnterpriseSensors) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +var extRange_EnterpriseSensors = []proto.ExtensionRange{ + {1, 536870911}, +} + +func (*EnterpriseSensors) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_EnterpriseSensors +} + +type JuniperNetworksSensors struct { + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` +} + +func (m *JuniperNetworksSensors) Reset() { *m = JuniperNetworksSensors{} } +func (m *JuniperNetworksSensors) String() string { return proto.CompactTextString(m) } +func (*JuniperNetworksSensors) ProtoMessage() {} +func (*JuniperNetworksSensors) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +var extRange_JuniperNetworksSensors = []proto.ExtensionRange{ + {1, 536870911}, +} + +func (*JuniperNetworksSensors) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_JuniperNetworksSensors +} + +var E_TelemetryOptions = &proto.ExtensionDesc{ + ExtendedType: (*google_protobuf.FieldOptions)(nil), + ExtensionType: (*TelemetryFieldOptions)(nil), + Field: 1024, + Name: "telemetry_options", + Tag: "bytes,1024,opt,name=telemetry_options,json=telemetryOptions", + Filename: "telemetry_top.proto", +} + +var E_JuniperNetworks = &proto.ExtensionDesc{ + ExtendedType: (*EnterpriseSensors)(nil), + ExtensionType: (*JuniperNetworksSensors)(nil), + Field: 2636, + Name: "juniperNetworks", + Tag: "bytes,2636,opt,name=juniperNetworks", + Filename: "telemetry_top.proto", +} + +func init() { + proto.RegisterType((*TelemetryFieldOptions)(nil), "TelemetryFieldOptions") + proto.RegisterType((*TelemetryStream)(nil), "TelemetryStream") + proto.RegisterType((*IETFSensors)(nil), "IETFSensors") + proto.RegisterType((*EnterpriseSensors)(nil), "EnterpriseSensors") + proto.RegisterType((*JuniperNetworksSensors)(nil), "JuniperNetworksSensors") + proto.RegisterExtension(E_TelemetryOptions) + proto.RegisterExtension(E_JuniperNetworks) +} + +func init() { proto.RegisterFile("telemetry_top.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 511 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcf, 0x6e, 0xda, 0x4c, + 0x14, 0xc5, 0x65, 0x42, 0x12, 0x73, 0x21, 0x81, 0xcc, 0xf7, 0x25, 0x99, 0x56, 0x42, 0x72, 0xc9, + 0x22, 0xa8, 0x95, 0x8c, 0x94, 0x65, 0x36, 0xad, 0x12, 0x25, 0x15, 0xad, 0x4a, 0x25, 0x07, 0x75, + 0x6b, 0x19, 0x7c, 0x83, 0x86, 0xe0, 0x19, 0x77, 0xee, 0xb8, 0x15, 0x3b, 0xd4, 0x6d, 0x5f, 0xa6, + 0x0f, 0xd2, 0xa7, 0xe8, 0x93, 0x54, 0x1e, 0xf3, 0xc7, 0x34, 0xec, 0x98, 0x73, 0x7e, 0x73, 0x38, + 0xb6, 0x0f, 0xfc, 0x67, 0x70, 0x86, 0x09, 0x1a, 0x3d, 0x0f, 0x8d, 0x4a, 0xfd, 0x54, 0x2b, 0xa3, + 0x5e, 0xd6, 0xd2, 0xd1, 0x74, 0xf9, 0xd3, 0x9b, 0x28, 0x35, 0x99, 0x61, 0xcf, 0x9e, 0x46, 0xd9, + 0x63, 0x2f, 0x46, 0x1a, 0x6b, 0x91, 0x1a, 0xa5, 0x0b, 0xa2, 0xf3, 0xd3, 0x81, 0xd3, 0xe1, 0x2a, + 0xe4, 0x5e, 0xe0, 0x2c, 0xfe, 0x9c, 0x1a, 0xa1, 0x24, 0xb1, 0x53, 0x38, 0x10, 0x14, 0x3e, 0xe1, + 0x9c, 0x3b, 0x9e, 0xd3, 0x75, 0x83, 0x7d, 0x41, 0x1f, 0x71, 0xce, 0x5e, 0x41, 0x43, 0x50, 0x68, + 0x44, 0x82, 0x64, 0xa2, 0x24, 0xe5, 0x15, 0x6b, 0xd6, 0x05, 0x0d, 0x57, 0x12, 0x6b, 0x03, 0x08, + 0x0a, 0xc7, 0x2a, 0x93, 0x06, 0x35, 0xdf, 0xb3, 0x40, 0x4d, 0xd0, 0x6d, 0x21, 0xb0, 0x17, 0xe0, + 0x0a, 0x0a, 0x27, 0x51, 0x36, 0x41, 0x5e, 0xb5, 0xe6, 0xa1, 0xa0, 0xf7, 0xf9, 0xb1, 0xf3, 0x6b, + 0x0f, 0x9a, 0xeb, 0x36, 0x0f, 0x46, 0x63, 0x94, 0xb0, 0x4b, 0xa8, 0xd1, 0x9c, 0x0c, 0x26, 0xa1, + 0x88, 0xb9, 0xe3, 0x55, 0xba, 0xb5, 0x1b, 0xf8, 0xf3, 0xb6, 0xc2, 0xab, 0x3f, 0xde, 0x55, 0x5c, + 0x27, 0x70, 0x0b, 0xb3, 0x1f, 0xb3, 0x2e, 0x34, 0xc6, 0x2a, 0x49, 0x95, 0x44, 0x69, 0x72, 0x36, + 0x6f, 0x76, 0x74, 0xb3, 0x5f, 0x60, 0xf5, 0xb5, 0xd5, 0x8f, 0x59, 0x0f, 0x5a, 0x94, 0x8d, 0xc2, + 0x2d, 0x7a, 0xaf, 0x4c, 0x1f, 0x53, 0x36, 0xba, 0x2d, 0x5d, 0x78, 0x03, 0x75, 0x42, 0x49, 0x4a, + 0x87, 0x32, 0x4a, 0x8a, 0xd6, 0xdb, 0x2d, 0xa0, 0xb0, 0x07, 0x51, 0x82, 0xec, 0x12, 0x9a, 0x84, + 0x5f, 0x33, 0x94, 0x63, 0x0c, 0x65, 0x96, 0x8c, 0x50, 0xf3, 0xfd, 0x3c, 0x3c, 0x38, 0x5e, 0xc9, + 0x03, 0xab, 0xb2, 0x0b, 0xa8, 0x6d, 0xde, 0xe3, 0x81, 0xe7, 0x74, 0xab, 0xf6, 0xff, 0x5b, 0x4e, + 0xb0, 0xd1, 0xd9, 0x05, 0x1c, 0x7d, 0x43, 0x4d, 0x42, 0xc9, 0x30, 0x89, 0xa6, 0x4a, 0xf3, 0x43, + 0x9b, 0xd5, 0x58, 0x8a, 0x9f, 0x72, 0x6d, 0x0b, 0x12, 0x52, 0x69, 0xee, 0x6e, 0x43, 0xb9, 0xc6, + 0x3c, 0xa8, 0x0a, 0x34, 0x8f, 0x3c, 0xf6, 0x9c, 0x6e, 0xfd, 0xaa, 0xe1, 0xf7, 0xef, 0x86, 0xf7, + 0x0f, 0xb6, 0x36, 0x05, 0xd6, 0x61, 0x57, 0x00, 0x98, 0x7f, 0xa2, 0x54, 0x0b, 0x42, 0x8e, 0x96, + 0x63, 0xfe, 0xdd, 0x5a, 0x5a, 0xd1, 0x25, 0xaa, 0x73, 0x0e, 0xf5, 0x52, 0xd0, 0x6b, 0xd7, 0x75, + 0x5a, 0x8b, 0xc5, 0x62, 0x51, 0xe9, 0xb4, 0xe1, 0xe4, 0xd9, 0xcd, 0x92, 0xdd, 0x81, 0xb3, 0x0f, + 0x99, 0x14, 0x29, 0xea, 0x01, 0x9a, 0xef, 0x4a, 0x3f, 0xd1, 0x33, 0xe6, 0x7a, 0x0c, 0x27, 0x9b, + 0x81, 0xab, 0xe5, 0x2e, 0xdb, 0x7e, 0x31, 0x6a, 0x7f, 0x35, 0x6a, 0xbf, 0x3c, 0x5b, 0xbe, 0x70, + 0x6d, 0xed, 0x33, 0x7f, 0xe7, 0xaa, 0x83, 0xd6, 0x3a, 0x70, 0xa9, 0x5c, 0x7f, 0x81, 0xe6, 0x74, + 0xbb, 0x08, 0xdb, 0xf1, 0xcc, 0xfc, 0xf7, 0xff, 0x36, 0xf7, 0xdc, 0xdf, 0xdd, 0x3a, 0xf8, 0x37, + 0xe4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x51, 0x47, 0x6a, 0xc1, 0x9c, 0x03, 0x00, 0x00, +} diff --git a/schema/telemetry_top/telemetry_top.proto b/schema/telemetry_top/telemetry_top.proto new file mode 100644 index 0000000..8cac2a7 --- /dev/null +++ b/schema/telemetry_top/telemetry_top.proto @@ -0,0 +1,99 @@ +// +// Copyrights (c) 2015, 2016, Juniper Networks, Inc. +// All rights reserved. +// + +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +// + +// +// This file defines the top level message used for all Juniper +// Telemetry packets encoded to the protocol buffer format. +// The top level message is TelemetryStream. +// + +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "google/protobuf/descriptor.proto"; + +extend google.protobuf.FieldOptions { + optional TelemetryFieldOptions telemetry_options = 1024; +} + +message TelemetryFieldOptions { + optional bool is_key = 1; + optional bool is_timestamp = 2; + optional bool is_counter = 3; + optional bool is_gauge = 4; +} + +message TelemetryStream { + // router hostname + // (or, just in the case of legacy (microkernel) PFEs, the IP address) + required string system_id = 1 [(telemetry_options).is_key = true]; + + // line card / RE (slot number). For RE, it will be 65535 + optional uint32 component_id = 2 [(telemetry_options).is_key = true]; + + // PFE (if applicable) + optional uint32 sub_component_id = 3 [(telemetry_options).is_key = true]; + + // Overload sensor name with "senor name, internal path, external path + // and component" seperated by ":". For RE sensors, component will be + // daemon-name and for PFE sensors it will be "PFE". + optional string sensor_name = 4 [(telemetry_options).is_key = true]; + + // sequence number, monotonically increasing for each + // system_id, component_id, sub_component_id + sensor_name. + optional uint32 sequence_number = 5; + + // timestamp (milliseconds since 00:00:00 UTC 1/1/1970) + optional uint64 timestamp = 6 [(telemetry_options).is_timestamp = true]; + + // major version + optional uint32 version_major = 7; + + // minor version + optional uint32 version_minor = 8; + + // end-of-message marker, set to true when the end of wrap is reached + optional bool eom = 9; + + optional IETFSensors ietf = 100; + + optional EnterpriseSensors enterprise = 101; +} + +message IETFSensors { + extensions 1 to max; +} + +message EnterpriseSensors { + extensions 1 to max; +} + +extend EnterpriseSensors { + // re-use IANA assigned numbers + optional JuniperNetworksSensors juniperNetworks = 2636; +} + +message JuniperNetworksSensors { + extensions 1 to max; +} + diff --git a/schema/vrrpd_oc.pb.go b/schema/vrrpd_oc.pb.go new file mode 100644 index 0000000..78b0405 --- /dev/null +++ b/schema/vrrpd_oc.pb.go @@ -0,0 +1,9690 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: vrrpd_oc.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesVrrp struct { + Interface []*InterfacesVrrpInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrp) Reset() { *m = InterfacesVrrp{} } +func (m *InterfacesVrrp) String() string { return proto.CompactTextString(m) } +func (*InterfacesVrrp) ProtoMessage() {} +func (*InterfacesVrrp) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0} +} +func (m *InterfacesVrrp) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrp.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrp) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrp.Merge(m, src) +} +func (m *InterfacesVrrp) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrp) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrp.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrp proto.InternalMessageInfo + +func (m *InterfacesVrrp) GetInterface() []*InterfacesVrrpInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesVrrpInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + Subinterfaces *InterfacesVrrpInterfaceListSubinterfacesType `protobuf:"bytes,151,opt,name=subinterfaces" json:"subinterfaces,omitempty"` + RoutedVlan *InterfacesVrrpInterfaceListRoutedVlanType `protobuf:"bytes,152,opt,name=routed_vlan,json=routedVlan" json:"routed_vlan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceList) Reset() { *m = InterfacesVrrpInterfaceList{} } +func (m *InterfacesVrrpInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesVrrpInterfaceList) ProtoMessage() {} +func (*InterfacesVrrpInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0} +} +func (m *InterfacesVrrpInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesVrrpInterfaceList) GetSubinterfaces() *InterfacesVrrpInterfaceListSubinterfacesType { + if m != nil { + return m.Subinterfaces + } + return nil +} + +func (m *InterfacesVrrpInterfaceList) GetRoutedVlan() *InterfacesVrrpInterfaceListRoutedVlanType { + if m != nil { + return m.RoutedVlan + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesType struct { + Subinterface []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList `protobuf:"bytes,151,rep,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesType) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListSubinterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesType) GetSubinterface() []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList { + if m != nil { + return m.Subinterface + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + Ipv4 *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type `protobuf:"bytes,151,opt,name=ipv4" json:"ipv4,omitempty"` + Ipv6 *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type `protobuf:"bytes,152,opt,name=ipv6" json:"ipv6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) GetIpv4() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type { + if m != nil { + return m.Ipv4 + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) GetIpv6() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type { + if m != nil { + return m.Ipv6 + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type struct { + Addresses *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType `protobuf:"bytes,151,opt,name=addresses" json:"addresses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) GetAddresses() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType { + if m != nil { + return m.Addresses + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType struct { + Address []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList `protobuf:"bytes,151,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) GetAddress() []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList { + if m != nil { + return m.Address + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + Vrrp *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType `protobuf:"bytes,151,opt,name=vrrp" json:"vrrp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) GetVrrp() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType { + if m != nil { + return m.Vrrp + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType struct { + VrrpGroup []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList `protobuf:"bytes,151,rep,name=vrrp_group,json=vrrpGroup" json:"vrrp_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) GetVrrpGroup() []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList { + if m != nil { + return m.VrrpGroup + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList struct { + State *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceTracking *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType `protobuf:"bytes,152,opt,name=interface_tracking,json=interfaceTracking" json:"interface_tracking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetState() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetInterfaceTracking() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType { + if m != nil { + return m.InterfaceTracking + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType struct { + VirtualRouterId *uint32 `protobuf:"varint,62,opt,name=virtual_router_id,json=virtualRouterId" json:"virtual_router_id,omitempty"` + VirtualAddress []string `protobuf:"bytes,63,rep,name=virtual_address,json=virtualAddress" json:"virtual_address,omitempty"` + Priority *uint32 `protobuf:"varint,64,opt,name=priority" json:"priority,omitempty"` + Preempt *bool `protobuf:"varint,65,opt,name=preempt" json:"preempt,omitempty"` + PreemptDelay *uint32 `protobuf:"varint,66,opt,name=preempt_delay,json=preemptDelay" json:"preempt_delay,omitempty"` + AcceptMode *bool `protobuf:"varint,67,opt,name=accept_mode,json=acceptMode" json:"accept_mode,omitempty"` + AdvertisementInterval *uint32 `protobuf:"varint,68,opt,name=advertisement_interval,json=advertisementInterval" json:"advertisement_interval,omitempty"` + CurrentPriority *uint32 `protobuf:"varint,69,opt,name=current_priority,json=currentPriority" json:"current_priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualRouterId() uint32 { + if m != nil && m.VirtualRouterId != nil { + return *m.VirtualRouterId + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualAddress() []string { + if m != nil { + return m.VirtualAddress + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreempt() bool { + if m != nil && m.Preempt != nil { + return *m.Preempt + } + return false +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreemptDelay() uint32 { + if m != nil && m.PreemptDelay != nil { + return *m.PreemptDelay + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAcceptMode() bool { + if m != nil && m.AcceptMode != nil { + return *m.AcceptMode + } + return false +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAdvertisementInterval() uint32 { + if m != nil && m.AdvertisementInterval != nil { + return *m.AdvertisementInterval + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetCurrentPriority() uint32 { + if m != nil && m.CurrentPriority != nil { + return *m.CurrentPriority + } + return 0 +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType struct { + State *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) GetState() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType struct { + TrackInterface []string `protobuf:"bytes,70,rep,name=track_interface,json=trackInterface" json:"track_interface,omitempty"` + PriorityDecrement *uint32 `protobuf:"varint,71,opt,name=priority_decrement,json=priorityDecrement" json:"priority_decrement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetTrackInterface() []string { + if m != nil { + return m.TrackInterface + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetPriorityDecrement() uint32 { + if m != nil && m.PriorityDecrement != nil { + return *m.PriorityDecrement + } + return 0 +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type struct { + Addresses *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType `protobuf:"bytes,151,opt,name=addresses" json:"addresses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) GetAddresses() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType { + if m != nil { + return m.Addresses + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType struct { + Address []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList `protobuf:"bytes,151,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) GetAddress() []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList { + if m != nil { + return m.Address + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + Vrrp *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType `protobuf:"bytes,151,opt,name=vrrp" json:"vrrp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) GetVrrp() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType { + if m != nil { + return m.Vrrp + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType struct { + VrrpGroup []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList `protobuf:"bytes,151,rep,name=vrrp_group,json=vrrpGroup" json:"vrrp_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) GetVrrpGroup() []*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList { + if m != nil { + return m.VrrpGroup + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList struct { + State *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceTracking *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType `protobuf:"bytes,152,opt,name=interface_tracking,json=interfaceTracking" json:"interface_tracking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetState() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetInterfaceTracking() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType { + if m != nil { + return m.InterfaceTracking + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType struct { + VirtualRouterId *uint32 `protobuf:"varint,80,opt,name=virtual_router_id,json=virtualRouterId" json:"virtual_router_id,omitempty"` + VirtualAddress []string `protobuf:"bytes,81,rep,name=virtual_address,json=virtualAddress" json:"virtual_address,omitempty"` + Priority *uint32 `protobuf:"varint,82,opt,name=priority" json:"priority,omitempty"` + Preempt *bool `protobuf:"varint,83,opt,name=preempt" json:"preempt,omitempty"` + PreemptDelay *uint32 `protobuf:"varint,84,opt,name=preempt_delay,json=preemptDelay" json:"preempt_delay,omitempty"` + AcceptMode *bool `protobuf:"varint,85,opt,name=accept_mode,json=acceptMode" json:"accept_mode,omitempty"` + AdvertisementInterval *uint32 `protobuf:"varint,86,opt,name=advertisement_interval,json=advertisementInterval" json:"advertisement_interval,omitempty"` + CurrentPriority *uint32 `protobuf:"varint,87,opt,name=current_priority,json=currentPriority" json:"current_priority,omitempty"` + VirtualLinkLocal *string `protobuf:"bytes,88,opt,name=virtual_link_local,json=virtualLinkLocal" json:"virtual_link_local,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualRouterId() uint32 { + if m != nil && m.VirtualRouterId != nil { + return *m.VirtualRouterId + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualAddress() []string { + if m != nil { + return m.VirtualAddress + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreempt() bool { + if m != nil && m.Preempt != nil { + return *m.Preempt + } + return false +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreemptDelay() uint32 { + if m != nil && m.PreemptDelay != nil { + return *m.PreemptDelay + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAcceptMode() bool { + if m != nil && m.AcceptMode != nil { + return *m.AcceptMode + } + return false +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAdvertisementInterval() uint32 { + if m != nil && m.AdvertisementInterval != nil { + return *m.AdvertisementInterval + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetCurrentPriority() uint32 { + if m != nil && m.CurrentPriority != nil { + return *m.CurrentPriority + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualLinkLocal() string { + if m != nil && m.VirtualLinkLocal != nil { + return *m.VirtualLinkLocal + } + return "" +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType struct { + State *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 1} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) GetState() *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType struct { + TrackInterface []string `protobuf:"bytes,89,rep,name=track_interface,json=trackInterface" json:"track_interface,omitempty"` + PriorityDecrement *uint32 `protobuf:"varint,90,opt,name=priority_decrement,json=priorityDecrement" json:"priority_decrement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Reset() { + *m = InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0} +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetTrackInterface() []string { + if m != nil { + return m.TrackInterface + } + return nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetPriorityDecrement() uint32 { + if m != nil && m.PriorityDecrement != nil { + return *m.PriorityDecrement + } + return 0 +} + +type InterfacesVrrpInterfaceListRoutedVlanType struct { + Ipv4 *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type `protobuf:"bytes,151,opt,name=ipv4" json:"ipv4,omitempty"` + Ipv6 *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type `protobuf:"bytes,152,opt,name=ipv6" json:"ipv6,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanType) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) GetIpv4() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type { + if m != nil { + return m.Ipv4 + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) GetIpv6() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type { + if m != nil { + return m.Ipv6 + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type struct { + Addresses *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType `protobuf:"bytes,151,opt,name=addresses" json:"addresses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) GetAddresses() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType { + if m != nil { + return m.Addresses + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType struct { + Address []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList `protobuf:"bytes,151,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) GetAddress() []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList { + if m != nil { + return m.Address + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + Vrrp *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType `protobuf:"bytes,151,opt,name=vrrp" json:"vrrp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) GetVrrp() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType { + if m != nil { + return m.Vrrp + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType struct { + VrrpGroup []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList `protobuf:"bytes,151,rep,name=vrrp_group,json=vrrpGroup" json:"vrrp_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) GetVrrpGroup() []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList { + if m != nil { + return m.VrrpGroup + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList struct { + State *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceTracking *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType `protobuf:"bytes,152,opt,name=interface_tracking,json=interfaceTracking" json:"interface_tracking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetState() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetInterfaceTracking() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType { + if m != nil { + return m.InterfaceTracking + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType struct { + VirtualRouterId *uint32 `protobuf:"varint,62,opt,name=virtual_router_id,json=virtualRouterId" json:"virtual_router_id,omitempty"` + VirtualAddress []string `protobuf:"bytes,63,rep,name=virtual_address,json=virtualAddress" json:"virtual_address,omitempty"` + Priority *uint32 `protobuf:"varint,64,opt,name=priority" json:"priority,omitempty"` + Preempt *bool `protobuf:"varint,65,opt,name=preempt" json:"preempt,omitempty"` + PreemptDelay *uint32 `protobuf:"varint,66,opt,name=preempt_delay,json=preemptDelay" json:"preempt_delay,omitempty"` + AcceptMode *bool `protobuf:"varint,67,opt,name=accept_mode,json=acceptMode" json:"accept_mode,omitempty"` + AdvertisementInterval *uint32 `protobuf:"varint,68,opt,name=advertisement_interval,json=advertisementInterval" json:"advertisement_interval,omitempty"` + CurrentPriority *uint32 `protobuf:"varint,69,opt,name=current_priority,json=currentPriority" json:"current_priority,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualRouterId() uint32 { + if m != nil && m.VirtualRouterId != nil { + return *m.VirtualRouterId + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualAddress() []string { + if m != nil { + return m.VirtualAddress + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreempt() bool { + if m != nil && m.Preempt != nil { + return *m.Preempt + } + return false +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreemptDelay() uint32 { + if m != nil && m.PreemptDelay != nil { + return *m.PreemptDelay + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAcceptMode() bool { + if m != nil && m.AcceptMode != nil { + return *m.AcceptMode + } + return false +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAdvertisementInterval() uint32 { + if m != nil && m.AdvertisementInterval != nil { + return *m.AdvertisementInterval + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetCurrentPriority() uint32 { + if m != nil && m.CurrentPriority != nil { + return *m.CurrentPriority + } + return 0 +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType struct { + State *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0, 0, 0, 0, 1} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) GetState() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType struct { + TrackInterface []string `protobuf:"bytes,70,rep,name=track_interface,json=trackInterface" json:"track_interface,omitempty"` + PriorityDecrement *uint32 `protobuf:"varint,71,opt,name=priority_decrement,json=priorityDecrement" json:"priority_decrement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 0, 0, 0, 0, 0, 1, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetTrackInterface() []string { + if m != nil { + return m.TrackInterface + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetPriorityDecrement() uint32 { + if m != nil && m.PriorityDecrement != nil { + return *m.PriorityDecrement + } + return 0 +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type struct { + Addresses *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType `protobuf:"bytes,151,opt,name=addresses" json:"addresses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) GetAddresses() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType { + if m != nil { + return m.Addresses + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType struct { + Address []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList `protobuf:"bytes,151,rep,name=address" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) GetAddress() []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList { + if m != nil { + return m.Address + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList struct { + Ip *string `protobuf:"bytes,51,opt,name=ip" json:"ip,omitempty"` + Vrrp *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType `protobuf:"bytes,151,opt,name=vrrp" json:"vrrp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) ProtoMessage() {} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) GetIp() string { + if m != nil && m.Ip != nil { + return *m.Ip + } + return "" +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) GetVrrp() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType { + if m != nil { + return m.Vrrp + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType struct { + VrrpGroup []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList `protobuf:"bytes,151,rep,name=vrrp_group,json=vrrpGroup" json:"vrrp_group,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) GetVrrpGroup() []*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList { + if m != nil { + return m.VrrpGroup + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList struct { + State *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + InterfaceTracking *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType `protobuf:"bytes,152,opt,name=interface_tracking,json=interfaceTracking" json:"interface_tracking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetState() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) GetInterfaceTracking() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType { + if m != nil { + return m.InterfaceTracking + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType struct { + VirtualRouterId *uint32 `protobuf:"varint,80,opt,name=virtual_router_id,json=virtualRouterId" json:"virtual_router_id,omitempty"` + VirtualAddress []string `protobuf:"bytes,81,rep,name=virtual_address,json=virtualAddress" json:"virtual_address,omitempty"` + Priority *uint32 `protobuf:"varint,82,opt,name=priority" json:"priority,omitempty"` + Preempt *bool `protobuf:"varint,83,opt,name=preempt" json:"preempt,omitempty"` + PreemptDelay *uint32 `protobuf:"varint,84,opt,name=preempt_delay,json=preemptDelay" json:"preempt_delay,omitempty"` + AcceptMode *bool `protobuf:"varint,85,opt,name=accept_mode,json=acceptMode" json:"accept_mode,omitempty"` + AdvertisementInterval *uint32 `protobuf:"varint,86,opt,name=advertisement_interval,json=advertisementInterval" json:"advertisement_interval,omitempty"` + CurrentPriority *uint32 `protobuf:"varint,87,opt,name=current_priority,json=currentPriority" json:"current_priority,omitempty"` + VirtualLinkLocal *string `protobuf:"bytes,88,opt,name=virtual_link_local,json=virtualLinkLocal" json:"virtual_link_local,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0, 0, 0, 0, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualRouterId() uint32 { + if m != nil && m.VirtualRouterId != nil { + return *m.VirtualRouterId + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualAddress() []string { + if m != nil { + return m.VirtualAddress + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPriority() uint32 { + if m != nil && m.Priority != nil { + return *m.Priority + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreempt() bool { + if m != nil && m.Preempt != nil { + return *m.Preempt + } + return false +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetPreemptDelay() uint32 { + if m != nil && m.PreemptDelay != nil { + return *m.PreemptDelay + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAcceptMode() bool { + if m != nil && m.AcceptMode != nil { + return *m.AcceptMode + } + return false +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetAdvertisementInterval() uint32 { + if m != nil && m.AdvertisementInterval != nil { + return *m.AdvertisementInterval + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetCurrentPriority() uint32 { + if m != nil && m.CurrentPriority != nil { + return *m.CurrentPriority + } + return 0 +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) GetVirtualLinkLocal() string { + if m != nil && m.VirtualLinkLocal != nil { + return *m.VirtualLinkLocal + } + return "" +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType struct { + State *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0, 0, 0, 0, 1} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) GetState() *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType struct { + TrackInterface []string `protobuf:"bytes,89,rep,name=track_interface,json=trackInterface" json:"track_interface,omitempty"` + PriorityDecrement *uint32 `protobuf:"varint,90,opt,name=priority_decrement,json=priorityDecrement" json:"priority_decrement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Reset() { + *m = InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) ProtoMessage() { +} +func (*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_bf3b3d6b7c480afe, []int{0, 0, 1, 1, 0, 0, 0, 0, 1, 0} +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.Merge(m, src) +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType proto.InternalMessageInfo + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetTrackInterface() []string { + if m != nil { + return m.TrackInterface + } + return nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) GetPriorityDecrement() uint32 { + if m != nil && m.PriorityDecrement != nil { + return *m.PriorityDecrement + } + return 0 +} + +var E_JnprInterfacesVrrpExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesVrrp)(nil), + Field: 71, + Name: "jnpr_interfaces_vrrp_ext", + Tag: "bytes,71,opt,name=jnpr_interfaces_vrrp_ext", + Filename: "vrrpd_oc.proto", +} + +func init() { + proto.RegisterType((*InterfacesVrrp)(nil), "interfaces_vrrp") + proto.RegisterType((*InterfacesVrrpInterfaceList)(nil), "interfaces_vrrp.interface_list") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list.vrrp_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list.vrrp_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type") + proto.RegisterType((*InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType)(nil), "interfaces_vrrp.interface_list.subinterfaces_type.subinterface_list.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type.address_list") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type.address_list.vrrp_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv4_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type.address_list") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type.address_list.vrrp_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list.state_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type") + proto.RegisterType((*InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType)(nil), "interfaces_vrrp.interface_list.routed_vlan_type.ipv6_type.addresses_type.address_list.vrrp_type.vrrp_group_list.interface_tracking_type.state_type") + proto.RegisterExtension(E_JnprInterfacesVrrpExt) +} + +func init() { proto.RegisterFile("vrrpd_oc.proto", fileDescriptor_bf3b3d6b7c480afe) } + +var fileDescriptor_bf3b3d6b7c480afe = []byte{ + // 1160 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x97, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0xb5, 0x6e, 0xa2, 0xd8, 0xcf, 0xce, 0xaf, 0x41, 0xa1, 0xcb, 0x02, 0x69, 0x04, 0x87, + 0x1a, 0x44, 0xd6, 0x28, 0xc0, 0x4a, 0xe4, 0x50, 0xda, 0x90, 0x52, 0x05, 0x95, 0xb6, 0x6c, 0x4b, + 0xa0, 0x95, 0xd0, 0x76, 0xb3, 0x3b, 0x38, 0x63, 0xaf, 0x77, 0x97, 0xd9, 0xb1, 0x49, 0x04, 0xa7, + 0x0a, 0x24, 0x90, 0x90, 0x80, 0x82, 0x00, 0x21, 0x4e, 0x20, 0x54, 0x21, 0xc4, 0x8d, 0x0b, 0xa7, + 0x00, 0x42, 0xa2, 0x17, 0xa4, 0x1e, 0xf8, 0x03, 0xaa, 0xdc, 0xb9, 0x20, 0x38, 0x71, 0x41, 0xfb, + 0x63, 0xbc, 0x5e, 0x3b, 0x89, 0xe3, 0xc8, 0xde, 0x98, 0xaa, 0x37, 0xcf, 0xf7, 0x79, 0xde, 0x7b, + 0xfb, 0xdd, 0xd9, 0xf9, 0xe8, 0xc1, 0x44, 0x83, 0x52, 0xd7, 0xd4, 0x1c, 0x43, 0x76, 0xa9, 0xc3, + 0x1c, 0xe9, 0x1e, 0x86, 0x2d, 0x5c, 0xc3, 0x8c, 0x6e, 0x6a, 0xcc, 0x71, 0x43, 0xf1, 0xa1, 0x1f, + 0x16, 0x61, 0x92, 0xd8, 0x0c, 0xd3, 0xd7, 0x74, 0x03, 0x7b, 0x9a, 0xbf, 0x05, 0x9d, 0x80, 0x5c, + 0x53, 0x12, 0x3f, 0x13, 0xe6, 0x8e, 0x14, 0xf3, 0x0b, 0xc7, 0xe4, 0xb6, 0x7f, 0xc5, 0x6b, 0xcd, + 0x22, 0x1e, 0x53, 0xe3, 0x2d, 0xd2, 0xed, 0xa7, 0x61, 0x22, 0x19, 0x45, 0xf7, 0xc1, 0x88, 0xad, + 0xd7, 0xb0, 0xf8, 0xc4, 0x9c, 0x50, 0xcc, 0x2d, 0x8d, 0x5e, 0x3b, 0x99, 0xc9, 0x0a, 0x6a, 0x20, + 0xa1, 0xcb, 0x30, 0xee, 0xd5, 0xd7, 0xe2, 0xec, 0x7e, 0x45, 0xa1, 0x98, 0x5f, 0x58, 0xe8, 0x52, + 0x51, 0x4e, 0xec, 0xd2, 0xd8, 0xa6, 0x8b, 0xd5, 0x64, 0x26, 0xa4, 0x42, 0x9e, 0x3a, 0x75, 0x86, + 0x4d, 0xad, 0x61, 0xe9, 0xb6, 0xf8, 0x79, 0x98, 0xf8, 0xf1, 0x6e, 0x89, 0x5b, 0xf6, 0x84, 0x69, + 0x21, 0x54, 0x56, 0x2d, 0xdd, 0x96, 0xfe, 0x7e, 0x10, 0x50, 0x67, 0x65, 0x44, 0xa0, 0xd0, 0xaa, + 0x72, 0xdb, 0x96, 0x7b, 0x7f, 0x88, 0x84, 0x14, 0x7a, 0x9b, 0x48, 0x2d, 0xfd, 0xf5, 0x00, 0x4c, + 0x77, 0xfc, 0x07, 0xdd, 0x0f, 0xa3, 0xc4, 0x36, 0xf1, 0x46, 0x60, 0xf1, 0x38, 0xb7, 0x38, 0xd4, + 0x90, 0x01, 0x23, 0xc4, 0x6d, 0x3c, 0xc9, 0xad, 0x3d, 0xd7, 0x8f, 0xae, 0x64, 0x3f, 0x63, 0xe8, + 0x4f, 0x90, 0x3c, 0x2a, 0xa2, 0x70, 0x9b, 0xfb, 0x56, 0x44, 0x89, 0x8b, 0x28, 0xd2, 0x57, 0xe3, + 0x90, 0x6b, 0x16, 0x46, 0x6f, 0x41, 0x4e, 0x37, 0x4d, 0x8a, 0x3d, 0x2f, 0x3e, 0x37, 0xaf, 0xf6, + 0xf7, 0xe1, 0xe4, 0x66, 0x81, 0xb0, 0x8d, 0xb8, 0xa0, 0xf4, 0x69, 0x01, 0x26, 0x92, 0x51, 0xf4, + 0x8e, 0x00, 0x63, 0x91, 0xc4, 0x8f, 0x40, 0x65, 0xa0, 0xfd, 0xf0, 0x65, 0x78, 0x50, 0x78, 0x6d, + 0xe9, 0x5f, 0x80, 0x42, 0x6b, 0x04, 0xcd, 0x40, 0x86, 0xb8, 0xc9, 0xcf, 0x2f, 0x43, 0x5c, 0xf4, + 0x9e, 0x00, 0x23, 0x7e, 0x4f, 0xdc, 0x3c, 0x96, 0x5e, 0xb3, 0xb2, 0x9f, 0x3e, 0x7a, 0xb5, 0xfe, + 0x4f, 0xe9, 0xb7, 0x1c, 0xe4, 0x9a, 0x1a, 0xfa, 0x46, 0x00, 0x08, 0x56, 0x65, 0xea, 0xd4, 0x5d, + 0x6e, 0xe6, 0xdb, 0xc2, 0x61, 0x34, 0x28, 0xc7, 0x8d, 0x44, 0x97, 0x9d, 0x2f, 0x9c, 0xf1, 0xd7, + 0xd2, 0x47, 0x59, 0x98, 0x6c, 0x0b, 0xa3, 0x1b, 0x02, 0x8c, 0x7a, 0x4c, 0x67, 0x98, 0xdb, 0xfa, + 0xc1, 0x50, 0xb4, 0x2d, 0x07, 0x3d, 0x85, 0x96, 0x87, 0xfd, 0xa1, 0xdf, 0x05, 0x40, 0x71, 0x11, + 0x46, 0x75, 0xa3, 0x4a, 0xec, 0x32, 0xff, 0x84, 0xbf, 0x1c, 0x8e, 0xb6, 0x3b, 0x1b, 0x0c, 0x9f, + 0x61, 0xba, 0x19, 0xb8, 0x14, 0xe9, 0xd2, 0x56, 0x06, 0x20, 0x7e, 0x4a, 0xf4, 0x28, 0x4c, 0x37, + 0x08, 0x65, 0x75, 0xdd, 0xd2, 0x82, 0x2b, 0x9c, 0x6a, 0xc4, 0x14, 0x4f, 0xf8, 0x17, 0xa4, 0x3a, + 0x19, 0x05, 0xd4, 0x40, 0x5f, 0x31, 0xd1, 0x71, 0xe0, 0x92, 0xc6, 0xbf, 0xe0, 0x67, 0xe6, 0x8e, + 0x14, 0x73, 0xea, 0x44, 0x24, 0x9f, 0x0a, 0x55, 0x24, 0x41, 0xd6, 0xa5, 0xc4, 0xa1, 0x84, 0x6d, + 0x8a, 0x27, 0x83, 0x5c, 0xcd, 0x35, 0x12, 0x61, 0xcc, 0xa5, 0x18, 0xd7, 0x5c, 0x26, 0x9e, 0x9a, + 0x13, 0x8a, 0x59, 0x95, 0x2f, 0xd1, 0xc3, 0x30, 0x1e, 0xfd, 0xd4, 0x4c, 0x6c, 0xe9, 0x9b, 0xe2, + 0x52, 0xb0, 0xb5, 0x10, 0x89, 0xcb, 0xbe, 0x86, 0x8e, 0x41, 0x5e, 0x37, 0x0c, 0xec, 0x32, 0xad, + 0xe6, 0x98, 0x58, 0x7c, 0x36, 0x48, 0x01, 0xa1, 0xf4, 0x82, 0x63, 0x62, 0xf4, 0x14, 0xdc, 0xab, + 0x9b, 0x0d, 0x4c, 0x19, 0xf1, 0x70, 0x0d, 0xdb, 0x4c, 0x0b, 0x2c, 0x68, 0xe8, 0x96, 0xb8, 0x1c, + 0xa4, 0x9b, 0x49, 0x44, 0x57, 0xa2, 0x20, 0x7a, 0x04, 0xa6, 0x8c, 0x3a, 0xa5, 0xfe, 0x86, 0x66, + 0xeb, 0xa7, 0x43, 0x1b, 0x22, 0xfd, 0x42, 0x24, 0x4b, 0x3f, 0x67, 0xe0, 0xe8, 0x2e, 0x86, 0xa3, + 0xad, 0xf6, 0x73, 0x7d, 0x63, 0xa8, 0x0f, 0x48, 0xe7, 0x79, 0x97, 0xcc, 0xc4, 0xf1, 0x38, 0x0e, + 0x93, 0xc1, 0x06, 0x2d, 0xe6, 0xf6, 0x73, 0xe1, 0x2b, 0x0f, 0xe4, 0x15, 0xae, 0xa2, 0x79, 0x40, + 0xdc, 0x37, 0xcd, 0xc4, 0x06, 0x0d, 0xdc, 0x15, 0xcf, 0x04, 0x0e, 0x4e, 0xf3, 0xc8, 0x32, 0x0f, + 0x48, 0xb7, 0x42, 0x48, 0x29, 0x29, 0x40, 0x4a, 0xe9, 0x06, 0xa9, 0x5f, 0xd3, 0x85, 0x94, 0xd2, + 0x03, 0xa4, 0xbe, 0xcd, 0x1f, 0x32, 0xa4, 0x94, 0xde, 0x21, 0xf5, 0x4f, 0xaa, 0x90, 0x52, 0xfa, + 0x04, 0xa9, 0xad, 0x74, 0x21, 0xa5, 0xfc, 0x3f, 0x21, 0xa5, 0xa4, 0x04, 0xa9, 0x3f, 0xf7, 0x01, + 0xa9, 0x0b, 0xfb, 0x86, 0xd4, 0x8b, 0x5d, 0x21, 0xa5, 0xee, 0x0e, 0xa9, 0x8b, 0x5d, 0x20, 0x75, + 0xa9, 0x3b, 0xa4, 0x5e, 0xea, 0x01, 0x52, 0xab, 0xbd, 0x42, 0xea, 0xe5, 0x1d, 0x21, 0x85, 0x1e, + 0x03, 0xc4, 0x6d, 0xb0, 0x88, 0x5d, 0xd5, 0x2c, 0xc7, 0xd0, 0x2d, 0xf1, 0x15, 0xff, 0xe2, 0x50, + 0xa7, 0xa2, 0xc8, 0x59, 0x62, 0x57, 0xcf, 0xfa, 0xfa, 0x61, 0x21, 0x4d, 0x19, 0x12, 0xa4, 0x5d, + 0xee, 0x01, 0x69, 0x57, 0x76, 0x43, 0xda, 0xfb, 0x12, 0x4c, 0xb5, 0xcf, 0xc5, 0xe8, 0x7c, 0x72, + 0xac, 0x5c, 0xec, 0x75, 0xb0, 0xee, 0x18, 0x21, 0xcf, 0x27, 0x47, 0xc8, 0x03, 0x25, 0x4c, 0x8c, + 0x8b, 0xd7, 0x0b, 0xad, 0xe3, 0xe2, 0xfa, 0x0e, 0x24, 0x5e, 0x39, 0x78, 0xd3, 0x7b, 0x50, 0xf7, + 0x8b, 0x7c, 0x07, 0x75, 0x5f, 0xef, 0x80, 0xee, 0x6a, 0xdf, 0x4a, 0xef, 0x02, 0xd8, 0x4f, 0xf6, + 0x39, 0x05, 0xd6, 0x93, 0x7c, 0xbd, 0x3a, 0x98, 0xbe, 0x3a, 0x59, 0x9a, 0x6d, 0x65, 0xe9, 0x87, + 0x3b, 0xb2, 0xd4, 0x1d, 0x74, 0x2f, 0x7b, 0x61, 0xf3, 0x8f, 0xb1, 0x4e, 0x6c, 0x5e, 0x6f, 0xbf, + 0x30, 0xde, 0x4c, 0xbb, 0xc3, 0x1d, 0x08, 0xf9, 0xe3, 0x9e, 0x84, 0x7c, 0x57, 0x48, 0xbd, 0xc5, + 0xbb, 0x23, 0x5b, 0x8a, 0x23, 0xdb, 0xf7, 0x7b, 0xf0, 0xed, 0xbb, 0xf6, 0xe3, 0xfa, 0xf1, 0xd0, + 0x1c, 0x86, 0x43, 0x1b, 0xcf, 0x7e, 0x2a, 0xb4, 0x8e, 0x67, 0x7d, 0x83, 0x42, 0xd7, 0x51, 0xec, + 0xe6, 0xc0, 0xa0, 0xd0, 0xcb, 0xd4, 0xf5, 0x4b, 0x8a, 0x50, 0x38, 0xc0, 0x80, 0xf5, 0x75, 0x6e, + 0x40, 0x50, 0xe8, 0xd7, 0x2c, 0x75, 0x2d, 0x3b, 0x28, 0x28, 0x28, 0xc3, 0x0f, 0x85, 0xbb, 0x23, + 0xd2, 0x9d, 0x39, 0x22, 0xa5, 0x80, 0x90, 0x3b, 0x69, 0x1c, 0x5a, 0x5c, 0x03, 0xb1, 0x62, 0xbb, + 0x54, 0x6b, 0xf3, 0x41, 0xc3, 0x1b, 0x0c, 0x1d, 0x95, 0x9f, 0xaf, 0xdb, 0xc4, 0xc5, 0xf4, 0x1c, + 0x66, 0x6f, 0x38, 0xb4, 0xea, 0x5d, 0xc4, 0xb6, 0xe7, 0x50, 0x2f, 0x00, 0x52, 0x7e, 0x61, 0xaa, + 0xdd, 0x3c, 0x75, 0xc6, 0x4f, 0xd5, 0x6c, 0xc5, 0x5b, 0xa5, 0xd4, 0x3d, 0xbd, 0xc1, 0x96, 0xae, + 0xde, 0xdc, 0x9e, 0x15, 0x6e, 0x6d, 0xcf, 0x0a, 0xb7, 0xb7, 0x67, 0x85, 0x2b, 0x6a, 0x99, 0x30, + 0xb9, 0x12, 0x26, 0x96, 0x6d, 0xcc, 0x4a, 0xc4, 0xc0, 0x6b, 0x98, 0x96, 0x4b, 0xeb, 0x58, 0xb7, + 0xd8, 0xfa, 0x9a, 0xc3, 0xe6, 0x89, 0x5d, 0xc6, 0x1e, 0x9b, 0xaf, 0x30, 0x32, 0x6f, 0xeb, 0x8c, + 0x34, 0x70, 0xc9, 0xad, 0x96, 0x4b, 0x15, 0x46, 0x4a, 0xba, 0xa9, 0xbb, 0x0c, 0x53, 0xaf, 0xa4, + 0x55, 0xea, 0xb6, 0xe3, 0x95, 0x3c, 0x63, 0x1d, 0xd7, 0xf4, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x9c, 0x64, 0xdd, 0xc7, 0x22, 0x1e, 0x00, 0x00, +} + +func (m *InterfacesVrrp) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrp) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrp) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.RoutedVlan != nil { + { + size, err := m.RoutedVlan.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Subinterfaces != nil { + { + size, err := m.Subinterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterface) > 0 { + for iNdEx := len(m.Subinterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6 != nil { + { + size, err := m.Ipv6.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Ipv4 != nil { + { + size, err := m.Ipv4.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Addresses != nil { + { + size, err := m.Addresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Address[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Vrrp != nil { + { + size, err := m.Vrrp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.VrrpGroup) > 0 { + for iNdEx := len(m.VrrpGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VrrpGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceTracking != nil { + { + size, err := m.InterfaceTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CurrentPriority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.CurrentPriority)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.AdvertisementInterval != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.AdvertisementInterval)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.AcceptMode != nil { + i-- + if *m.AcceptMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.PreemptDelay != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PreemptDelay)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.Preempt != nil { + i-- + if *m.Preempt { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.Priority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if len(m.VirtualAddress) > 0 { + for iNdEx := len(m.VirtualAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.VirtualAddress[iNdEx]) + copy(dAtA[i:], m.VirtualAddress[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.VirtualAddress[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + } + if m.VirtualRouterId != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.VirtualRouterId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PriorityDecrement != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PriorityDecrement)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if len(m.TrackInterface) > 0 { + for iNdEx := len(m.TrackInterface) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TrackInterface[iNdEx]) + copy(dAtA[i:], m.TrackInterface[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.TrackInterface[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb2 + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Addresses != nil { + { + size, err := m.Addresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Address[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Vrrp != nil { + { + size, err := m.Vrrp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.VrrpGroup) > 0 { + for iNdEx := len(m.VrrpGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VrrpGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceTracking != nil { + { + size, err := m.InterfaceTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VirtualLinkLocal != nil { + i -= len(*m.VirtualLinkLocal) + copy(dAtA[i:], *m.VirtualLinkLocal) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.VirtualLinkLocal))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc2 + } + if m.CurrentPriority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.CurrentPriority)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.AdvertisementInterval != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.AdvertisementInterval)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.AcceptMode != nil { + i-- + if *m.AcceptMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.PreemptDelay != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PreemptDelay)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.Preempt != nil { + i-- + if *m.Preempt { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.Priority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if len(m.VirtualAddress) > 0 { + for iNdEx := len(m.VirtualAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.VirtualAddress[iNdEx]) + copy(dAtA[i:], m.VirtualAddress[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.VirtualAddress[iNdEx]))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x8a + } + } + if m.VirtualRouterId != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.VirtualRouterId)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PriorityDecrement != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PriorityDecrement)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if len(m.TrackInterface) > 0 { + for iNdEx := len(m.TrackInterface) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TrackInterface[iNdEx]) + copy(dAtA[i:], m.TrackInterface[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.TrackInterface[iNdEx]))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xca + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Ipv6 != nil { + { + size, err := m.Ipv6.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.Ipv4 != nil { + { + size, err := m.Ipv4.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Addresses != nil { + { + size, err := m.Addresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Address[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Vrrp != nil { + { + size, err := m.Vrrp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.VrrpGroup) > 0 { + for iNdEx := len(m.VrrpGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VrrpGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceTracking != nil { + { + size, err := m.InterfaceTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.CurrentPriority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.CurrentPriority)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa8 + } + if m.AdvertisementInterval != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.AdvertisementInterval)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xa0 + } + if m.AcceptMode != nil { + i-- + if *m.AcceptMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x98 + } + if m.PreemptDelay != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PreemptDelay)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x90 + } + if m.Preempt != nil { + i-- + if *m.Preempt { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x88 + } + if m.Priority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0x80 + } + if len(m.VirtualAddress) > 0 { + for iNdEx := len(m.VirtualAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.VirtualAddress[iNdEx]) + copy(dAtA[i:], m.VirtualAddress[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.VirtualAddress[iNdEx]))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xfa + } + } + if m.VirtualRouterId != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.VirtualRouterId)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xf0 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PriorityDecrement != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PriorityDecrement)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if len(m.TrackInterface) > 0 { + for iNdEx := len(m.TrackInterface) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TrackInterface[iNdEx]) + copy(dAtA[i:], m.TrackInterface[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.TrackInterface[iNdEx]))) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb2 + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Addresses != nil { + { + size, err := m.Addresses.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Address) > 0 { + for iNdEx := len(m.Address) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Address[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Vrrp != nil { + { + size, err := m.Vrrp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Ip != nil { + i -= len(*m.Ip) + copy(dAtA[i:], *m.Ip) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.Ip))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.VrrpGroup) > 0 { + for iNdEx := len(m.VrrpGroup) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VrrpGroup[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.InterfaceTracking != nil { + { + size, err := m.InterfaceTracking.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VirtualLinkLocal != nil { + i -= len(*m.VirtualLinkLocal) + copy(dAtA[i:], *m.VirtualLinkLocal) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(*m.VirtualLinkLocal))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xc2 + } + if m.CurrentPriority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.CurrentPriority)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb8 + } + if m.AdvertisementInterval != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.AdvertisementInterval)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xb0 + } + if m.AcceptMode != nil { + i-- + if *m.AcceptMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa8 + } + if m.PreemptDelay != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PreemptDelay)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xa0 + } + if m.Preempt != nil { + i-- + if *m.Preempt { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x98 + } + if m.Priority != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x90 + } + if len(m.VirtualAddress) > 0 { + for iNdEx := len(m.VirtualAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.VirtualAddress[iNdEx]) + copy(dAtA[i:], m.VirtualAddress[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.VirtualAddress[iNdEx]))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x8a + } + } + if m.VirtualRouterId != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.VirtualRouterId)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x80 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintVrrpdOc(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.PriorityDecrement != nil { + i = encodeVarintVrrpdOc(dAtA, i, uint64(*m.PriorityDecrement)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd0 + } + if len(m.TrackInterface) > 0 { + for iNdEx := len(m.TrackInterface) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TrackInterface[iNdEx]) + copy(dAtA[i:], m.TrackInterface[iNdEx]) + i = encodeVarintVrrpdOc(dAtA, i, uint64(len(m.TrackInterface[iNdEx]))) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xca + } + } + return len(dAtA) - i, nil +} + +func encodeVarintVrrpdOc(dAtA []byte, offset int, v uint64) int { + offset -= sovVrrpdOc(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesVrrp) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Subinterfaces != nil { + l = m.Subinterfaces.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.RoutedVlan != nil { + l = m.RoutedVlan.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subinterface) > 0 { + for _, e := range m.Subinterface { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovVrrpdOc(uint64(*m.Index)) + } + if m.Ipv4 != nil { + l = m.Ipv4.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Ipv6 != nil { + l = m.Ipv6.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Addresses != nil { + l = m.Addresses.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, e := range m.Address { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Vrrp != nil { + l = m.Vrrp.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.VrrpGroup) > 0 { + for _, e := range m.VrrpGroup { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.InterfaceTracking != nil { + l = m.InterfaceTracking.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VirtualRouterId != nil { + n += 2 + sovVrrpdOc(uint64(*m.VirtualRouterId)) + } + if len(m.VirtualAddress) > 0 { + for _, s := range m.VirtualAddress { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.Priority != nil { + n += 2 + sovVrrpdOc(uint64(*m.Priority)) + } + if m.Preempt != nil { + n += 3 + } + if m.PreemptDelay != nil { + n += 2 + sovVrrpdOc(uint64(*m.PreemptDelay)) + } + if m.AcceptMode != nil { + n += 3 + } + if m.AdvertisementInterval != nil { + n += 2 + sovVrrpdOc(uint64(*m.AdvertisementInterval)) + } + if m.CurrentPriority != nil { + n += 2 + sovVrrpdOc(uint64(*m.CurrentPriority)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TrackInterface) > 0 { + for _, s := range m.TrackInterface { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.PriorityDecrement != nil { + n += 2 + sovVrrpdOc(uint64(*m.PriorityDecrement)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Addresses != nil { + l = m.Addresses.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, e := range m.Address { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Vrrp != nil { + l = m.Vrrp.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.VrrpGroup) > 0 { + for _, e := range m.VrrpGroup { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.InterfaceTracking != nil { + l = m.InterfaceTracking.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VirtualRouterId != nil { + n += 2 + sovVrrpdOc(uint64(*m.VirtualRouterId)) + } + if len(m.VirtualAddress) > 0 { + for _, s := range m.VirtualAddress { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.Priority != nil { + n += 2 + sovVrrpdOc(uint64(*m.Priority)) + } + if m.Preempt != nil { + n += 3 + } + if m.PreemptDelay != nil { + n += 2 + sovVrrpdOc(uint64(*m.PreemptDelay)) + } + if m.AcceptMode != nil { + n += 3 + } + if m.AdvertisementInterval != nil { + n += 2 + sovVrrpdOc(uint64(*m.AdvertisementInterval)) + } + if m.CurrentPriority != nil { + n += 2 + sovVrrpdOc(uint64(*m.CurrentPriority)) + } + if m.VirtualLinkLocal != nil { + l = len(*m.VirtualLinkLocal) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TrackInterface) > 0 { + for _, s := range m.TrackInterface { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.PriorityDecrement != nil { + n += 2 + sovVrrpdOc(uint64(*m.PriorityDecrement)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ipv4 != nil { + l = m.Ipv4.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Ipv6 != nil { + l = m.Ipv6.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Addresses != nil { + l = m.Addresses.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, e := range m.Address { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Vrrp != nil { + l = m.Vrrp.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.VrrpGroup) > 0 { + for _, e := range m.VrrpGroup { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.InterfaceTracking != nil { + l = m.InterfaceTracking.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VirtualRouterId != nil { + n += 2 + sovVrrpdOc(uint64(*m.VirtualRouterId)) + } + if len(m.VirtualAddress) > 0 { + for _, s := range m.VirtualAddress { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.Priority != nil { + n += 2 + sovVrrpdOc(uint64(*m.Priority)) + } + if m.Preempt != nil { + n += 3 + } + if m.PreemptDelay != nil { + n += 2 + sovVrrpdOc(uint64(*m.PreemptDelay)) + } + if m.AcceptMode != nil { + n += 3 + } + if m.AdvertisementInterval != nil { + n += 2 + sovVrrpdOc(uint64(*m.AdvertisementInterval)) + } + if m.CurrentPriority != nil { + n += 2 + sovVrrpdOc(uint64(*m.CurrentPriority)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TrackInterface) > 0 { + for _, s := range m.TrackInterface { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.PriorityDecrement != nil { + n += 2 + sovVrrpdOc(uint64(*m.PriorityDecrement)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Addresses != nil { + l = m.Addresses.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Address) > 0 { + for _, e := range m.Address { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Ip != nil { + l = len(*m.Ip) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.Vrrp != nil { + l = m.Vrrp.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.VrrpGroup) > 0 { + for _, e := range m.VrrpGroup { + l = e.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.InterfaceTracking != nil { + l = m.InterfaceTracking.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.VirtualRouterId != nil { + n += 2 + sovVrrpdOc(uint64(*m.VirtualRouterId)) + } + if len(m.VirtualAddress) > 0 { + for _, s := range m.VirtualAddress { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.Priority != nil { + n += 2 + sovVrrpdOc(uint64(*m.Priority)) + } + if m.Preempt != nil { + n += 3 + } + if m.PreemptDelay != nil { + n += 2 + sovVrrpdOc(uint64(*m.PreemptDelay)) + } + if m.AcceptMode != nil { + n += 3 + } + if m.AdvertisementInterval != nil { + n += 2 + sovVrrpdOc(uint64(*m.AdvertisementInterval)) + } + if m.CurrentPriority != nil { + n += 2 + sovVrrpdOc(uint64(*m.CurrentPriority)) + } + if m.VirtualLinkLocal != nil { + l = len(*m.VirtualLinkLocal) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovVrrpdOc(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TrackInterface) > 0 { + for _, s := range m.TrackInterface { + l = len(s) + n += 2 + l + sovVrrpdOc(uint64(l)) + } + } + if m.PriorityDecrement != nil { + n += 2 + sovVrrpdOc(uint64(*m.PriorityDecrement)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovVrrpdOc(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozVrrpdOc(x uint64) (n int) { + return sovVrrpdOc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesVrrp) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_vrrp: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_vrrp: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesVrrpInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subinterfaces == nil { + m.Subinterfaces = &InterfacesVrrpInterfaceListSubinterfacesType{} + } + if err := m.Subinterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoutedVlan", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RoutedVlan == nil { + m.RoutedVlan = &InterfacesVrrpInterfaceListRoutedVlanType{} + } + if err := m.RoutedVlan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterface = append(m.Subinterface, &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList{}) + if err := m.Subinterface[len(m.Subinterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4 == nil { + m.Ipv4 = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type{} + } + if err := m.Ipv4.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6 == nil { + m.Ipv6 = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type{} + } + if err := m.Ipv6.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Addresses == nil { + m.Addresses = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType{} + } + if err := m.Addresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList{}) + if err := m.Address[len(m.Address)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vrrp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vrrp == nil { + m.Vrrp = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType{} + } + if err := m.Vrrp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VrrpGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VrrpGroup = append(m.VrrpGroup, &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{}) + if err := m.VrrpGroup[len(m.VrrpGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceTracking", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceTracking == nil { + m.InterfaceTracking = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} + } + if err := m.InterfaceTracking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VirtualRouterId = &v + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VirtualAddress = append(m.VirtualAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preempt", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Preempt = &b + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreemptDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreemptDelay = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcceptMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AcceptMode = &b + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertisementInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertisementInterval = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentPriority = &v + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_tracking_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_tracking_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 70: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrackInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrackInterface = append(m.TrackInterface, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityDecrement", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PriorityDecrement = &v + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Addresses == nil { + m.Addresses = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType{} + } + if err := m.Addresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList{}) + if err := m.Address[len(m.Address)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vrrp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vrrp == nil { + m.Vrrp = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType{} + } + if err := m.Vrrp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VrrpGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VrrpGroup = append(m.VrrpGroup, &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{}) + if err := m.VrrpGroup[len(m.VrrpGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceTracking", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceTracking == nil { + m.InterfaceTracking = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} + } + if err := m.InterfaceTracking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VirtualRouterId = &v + case 81: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VirtualAddress = append(m.VirtualAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preempt", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Preempt = &b + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreemptDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreemptDelay = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcceptMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AcceptMode = &b + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertisementInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertisementInterval = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentPriority = &v + case 88: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualLinkLocal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VirtualLinkLocal = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_tracking_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_tracking_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListSubinterfacesTypeSubinterfaceListIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 89: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrackInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrackInterface = append(m.TrackInterface, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityDecrement", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PriorityDecrement = &v + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: routed_vlan_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: routed_vlan_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv4", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv4 == nil { + m.Ipv4 = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type{} + } + if err := m.Ipv4.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ipv6", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Ipv6 == nil { + m.Ipv6 = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type{} + } + if err := m.Ipv6.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv4_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv4_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Addresses == nil { + m.Addresses = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType{} + } + if err := m.Addresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList{}) + if err := m.Address[len(m.Address)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vrrp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vrrp == nil { + m.Vrrp = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType{} + } + if err := m.Vrrp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VrrpGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VrrpGroup = append(m.VrrpGroup, &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{}) + if err := m.VrrpGroup[len(m.VrrpGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceTracking", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceTracking == nil { + m.InterfaceTracking = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} + } + if err := m.InterfaceTracking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 62: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VirtualRouterId = &v + case 63: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VirtualAddress = append(m.VirtualAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 64: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 65: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preempt", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Preempt = &b + case 66: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreemptDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreemptDelay = &v + case 67: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcceptMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AcceptMode = &b + case 68: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertisementInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertisementInterval = &v + case 69: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentPriority = &v + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_tracking_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_tracking_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv4TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 70: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrackInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrackInterface = append(m.TrackInterface, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityDecrement", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PriorityDecrement = &v + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6Type) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ipv6_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ipv6_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Addresses == nil { + m.Addresses = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType{} + } + if err := m.Addresses.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: addresses_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: addresses_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address, &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList{}) + if err := m.Address[len(m.Address)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: address_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: address_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Ip = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Vrrp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Vrrp == nil { + m.Vrrp = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType{} + } + if err := m.Vrrp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VrrpGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VrrpGroup = append(m.VrrpGroup, &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList{}) + if err := m.VrrpGroup[len(m.VrrpGroup)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: vrrp_group_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: vrrp_group_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterfaceTracking", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterfaceTracking == nil { + m.InterfaceTracking = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType{} + } + if err := m.InterfaceTracking.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 80: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualRouterId", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.VirtualRouterId = &v + case 81: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VirtualAddress = append(m.VirtualAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 82: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 83: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Preempt", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Preempt = &b + case 84: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PreemptDelay", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PreemptDelay = &v + case 85: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AcceptMode", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AcceptMode = &b + case 86: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AdvertisementInterval", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AdvertisementInterval = &v + case 87: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPriority", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CurrentPriority = &v + case 88: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VirtualLinkLocal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.VirtualLinkLocal = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_tracking_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_tracking_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesVrrpInterfaceListRoutedVlanTypeIpv6TypeAddressesTypeAddressListVrrpTypeVrrpGroupListInterfaceTrackingTypeStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 89: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TrackInterface", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthVrrpdOc + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthVrrpdOc + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TrackInterface = append(m.TrackInterface, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 90: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityDecrement", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PriorityDecrement = &v + default: + iNdEx = preIndex + skippy, err := skipVrrpdOc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthVrrpdOc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipVrrpdOc(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowVrrpdOc + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthVrrpdOc + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupVrrpdOc + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthVrrpdOc + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthVrrpdOc = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowVrrpdOc = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupVrrpdOc = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/vrrpd_oc.proto b/schema/vrrpd_oc.proto new file mode 100755 index 0000000..978af6f --- /dev/null +++ b/schema/vrrpd_oc.proto @@ -0,0 +1,166 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_vrrp jnpr_interfaces_vrrp_ext = 71; +} + +message interfaces_vrrp { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional subinterfaces_type subinterfaces = 151; + message subinterfaces_type { + message subinterface_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional ipv4_type ipv4 = 151; + message ipv4_type { + optional addresses_type addresses = 151; + message addresses_type { + message address_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional vrrp_type vrrp = 151; + message vrrp_type { + message vrrp_group_list { + optional state_type state = 151; + message state_type { + optional uint32 virtual_router_id = 62; + repeated string virtual_address = 63; + optional uint32 priority = 64; + optional bool preempt = 65; + optional uint32 preempt_delay = 66; + optional bool accept_mode = 67; + optional uint32 advertisement_interval = 68; + optional uint32 current_priority = 69; + } + optional interface_tracking_type interface_tracking = 152; + message interface_tracking_type { + optional state_type state = 151; + message state_type { + repeated string track_interface = 70; + optional uint32 priority_decrement = 71; + } + } + } + repeated vrrp_group_list vrrp_group = 151; + } + } + repeated address_list address = 151; + } + } + optional ipv6_type ipv6 = 152; + message ipv6_type { + optional addresses_type addresses = 151; + message addresses_type { + message address_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional vrrp_type vrrp = 151; + message vrrp_type { + message vrrp_group_list { + optional state_type state = 151; + message state_type { + optional uint32 virtual_router_id = 80; + repeated string virtual_address = 81; + optional uint32 priority = 82; + optional bool preempt = 83; + optional uint32 preempt_delay = 84; + optional bool accept_mode = 85; + optional uint32 advertisement_interval = 86; + optional uint32 current_priority = 87; + optional string virtual_link_local = 88; + } + optional interface_tracking_type interface_tracking = 152; + message interface_tracking_type { + optional state_type state = 151; + message state_type { + repeated string track_interface = 89; + optional uint32 priority_decrement = 90; + } + } + } + repeated vrrp_group_list vrrp_group = 151; + } + } + repeated address_list address = 151; + } + } + } + repeated subinterface_list subinterface = 151; + } + optional routed_vlan_type routed_vlan = 152; + message routed_vlan_type { + optional ipv4_type ipv4 = 151; + message ipv4_type { + optional addresses_type addresses = 151; + message addresses_type { + message address_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional vrrp_type vrrp = 151; + message vrrp_type { + message vrrp_group_list { + optional state_type state = 151; + message state_type { + optional uint32 virtual_router_id = 62; + repeated string virtual_address = 63; + optional uint32 priority = 64; + optional bool preempt = 65; + optional uint32 preempt_delay = 66; + optional bool accept_mode = 67; + optional uint32 advertisement_interval = 68; + optional uint32 current_priority = 69; + } + optional interface_tracking_type interface_tracking = 152; + message interface_tracking_type { + optional state_type state = 151; + message state_type { + repeated string track_interface = 70; + optional uint32 priority_decrement = 71; + } + } + } + repeated vrrp_group_list vrrp_group = 151; + } + } + repeated address_list address = 151; + } + } + optional ipv6_type ipv6 = 152; + message ipv6_type { + optional addresses_type addresses = 151; + message addresses_type { + message address_list { + optional string ip = 51 [(telemetry_options).is_key = true]; + optional vrrp_type vrrp = 151; + message vrrp_type { + message vrrp_group_list { + optional state_type state = 151; + message state_type { + optional uint32 virtual_router_id = 80; + repeated string virtual_address = 81; + optional uint32 priority = 82; + optional bool preempt = 83; + optional uint32 preempt_delay = 84; + optional bool accept_mode = 85; + optional uint32 advertisement_interval = 86; + optional uint32 current_priority = 87; + optional string virtual_link_local = 88; + } + optional interface_tracking_type interface_tracking = 152; + message interface_tracking_type { + optional state_type state = 151; + message state_type { + repeated string track_interface = 89; + optional uint32 priority_decrement = 90; + } + } + } + repeated vrrp_group_list vrrp_group = 151; + } + } + repeated address_list address = 151; + } + } + } + } + repeated interface_list interface = 151; +} diff --git a/schema/xmlproxyd_show_local_interface_OC.pb.go b/schema/xmlproxyd_show_local_interface_OC.pb.go new file mode 100644 index 0000000..b07ffd4 --- /dev/null +++ b/schema/xmlproxyd_show_local_interface_OC.pb.go @@ -0,0 +1,3104 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: xmlproxyd_show_local_interface_OC.proto + +package schema + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type InterfacesLocalInterface struct { + Interface []*InterfacesLocalInterfaceInterfaceList `protobuf:"bytes,151,rep,name=interface" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterface) Reset() { *m = InterfacesLocalInterface{} } +func (m *InterfacesLocalInterface) String() string { return proto.CompactTextString(m) } +func (*InterfacesLocalInterface) ProtoMessage() {} +func (*InterfacesLocalInterface) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0} +} +func (m *InterfacesLocalInterface) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterface.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterface) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterface.Merge(m, src) +} +func (m *InterfacesLocalInterface) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterface) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterface.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterface proto.InternalMessageInfo + +func (m *InterfacesLocalInterface) GetInterface() []*InterfacesLocalInterfaceInterfaceList { + if m != nil { + return m.Interface + } + return nil +} + +type InterfacesLocalInterfaceInterfaceList struct { + Name *string `protobuf:"bytes,51,opt,name=name" json:"name,omitempty"` + State *InterfacesLocalInterfaceInterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + Subinterfaces *InterfacesLocalInterfaceInterfaceListSubinterfacesType `protobuf:"bytes,152,opt,name=subinterfaces" json:"subinterfaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceList) Reset() { *m = InterfacesLocalInterfaceInterfaceList{} } +func (m *InterfacesLocalInterfaceInterfaceList) String() string { return proto.CompactTextString(m) } +func (*InterfacesLocalInterfaceInterfaceList) ProtoMessage() {} +func (*InterfacesLocalInterfaceInterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0} +} +func (m *InterfacesLocalInterfaceInterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceList.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceList proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceList) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *InterfacesLocalInterfaceInterfaceList) GetState() *InterfacesLocalInterfaceInterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +func (m *InterfacesLocalInterfaceInterfaceList) GetSubinterfaces() *InterfacesLocalInterfaceInterfaceListSubinterfacesType { + if m != nil { + return m.Subinterfaces + } + return nil +} + +type InterfacesLocalInterfaceInterfaceListStateType struct { + Counters *InterfacesLocalInterfaceInterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceListStateType) Reset() { + *m = InterfacesLocalInterfaceInterfaceListStateType{} +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesLocalInterfaceInterfaceListStateType) ProtoMessage() {} +func (*InterfacesLocalInterfaceInterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0, 0} +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateType.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceListStateType) GetCounters() *InterfacesLocalInterfaceInterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesLocalInterfaceInterfaceListStateTypeCountersType struct { + InOctets *uint64 `protobuf:"varint,51,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InPkts *uint64 `protobuf:"varint,61,opt,name=in_pkts,json=inPkts" json:"in_pkts,omitempty"` + InDiscards *uint64 `protobuf:"varint,52,opt,name=in_discards,json=inDiscards" json:"in_discards,omitempty"` + InErrors *uint64 `protobuf:"varint,53,opt,name=in_errors,json=inErrors" json:"in_errors,omitempty"` + InDrops *uint64 `protobuf:"varint,71,opt,name=in_drops,json=inDrops" json:"in_drops,omitempty"` + InFrameErrors *uint64 `protobuf:"varint,72,opt,name=in_frame_errors,json=inFrameErrors" json:"in_frame_errors,omitempty"` + InRunts *uint64 `protobuf:"varint,73,opt,name=in_runts,json=inRunts" json:"in_runts,omitempty"` + InGiants *uint64 `protobuf:"varint,74,opt,name=in_giants,json=inGiants" json:"in_giants,omitempty"` + InResourceErrors *uint64 `protobuf:"varint,75,opt,name=in_resource_errors,json=inResourceErrors" json:"in_resource_errors,omitempty"` + OutOctets *uint64 `protobuf:"varint,54,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutPkts *uint64 `protobuf:"varint,81,opt,name=out_pkts,json=outPkts" json:"out_pkts,omitempty"` + OutDiscards *uint64 `protobuf:"varint,55,opt,name=out_discards,json=outDiscards" json:"out_discards,omitempty"` + OutErrors *uint64 `protobuf:"varint,56,opt,name=out_errors,json=outErrors" json:"out_errors,omitempty"` + OutDrops *uint64 `protobuf:"varint,91,opt,name=out_drops,json=outDrops" json:"out_drops,omitempty"` + CarrierTransitions *uint64 `protobuf:"varint,92,opt,name=carrier_transitions,json=carrierTransitions" json:"carrier_transitions,omitempty"` + MtuErrors *uint64 `protobuf:"varint,93,opt,name=mtu_errors,json=mtuErrors" json:"mtu_errors,omitempty"` + OutResourceErrors *uint64 `protobuf:"varint,94,opt,name=out_resource_errors,json=outResourceErrors" json:"out_resource_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) Reset() { + *m = InterfacesLocalInterfaceInterfaceListStateTypeCountersType{} +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesLocalInterfaceInterfaceListStateTypeCountersType) ProtoMessage() {} +func (*InterfacesLocalInterfaceInterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0, 0, 0} +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInPkts() uint64 { + if m != nil && m.InPkts != nil { + return *m.InPkts + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInDiscards() uint64 { + if m != nil && m.InDiscards != nil { + return *m.InDiscards + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInErrors() uint64 { + if m != nil && m.InErrors != nil { + return *m.InErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInDrops() uint64 { + if m != nil && m.InDrops != nil { + return *m.InDrops + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInFrameErrors() uint64 { + if m != nil && m.InFrameErrors != nil { + return *m.InFrameErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInRunts() uint64 { + if m != nil && m.InRunts != nil { + return *m.InRunts + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInGiants() uint64 { + if m != nil && m.InGiants != nil { + return *m.InGiants + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetInResourceErrors() uint64 { + if m != nil && m.InResourceErrors != nil { + return *m.InResourceErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetOutPkts() uint64 { + if m != nil && m.OutPkts != nil { + return *m.OutPkts + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetOutDiscards() uint64 { + if m != nil && m.OutDiscards != nil { + return *m.OutDiscards + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetOutErrors() uint64 { + if m != nil && m.OutErrors != nil { + return *m.OutErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetOutDrops() uint64 { + if m != nil && m.OutDrops != nil { + return *m.OutDrops + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetCarrierTransitions() uint64 { + if m != nil && m.CarrierTransitions != nil { + return *m.CarrierTransitions + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetMtuErrors() uint64 { + if m != nil && m.MtuErrors != nil { + return *m.MtuErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) GetOutResourceErrors() uint64 { + if m != nil && m.OutResourceErrors != nil { + return *m.OutResourceErrors + } + return 0 +} + +type InterfacesLocalInterfaceInterfaceListSubinterfacesType struct { + Subinterface []*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList `protobuf:"bytes,151,rep,name=subinterface" json:"subinterface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) Reset() { + *m = InterfacesLocalInterfaceInterfaceListSubinterfacesType{} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesType) ProtoMessage() {} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesType) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0, 1} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesType.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesType proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) GetSubinterface() []*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList { + if m != nil { + return m.Subinterface + } + return nil +} + +type InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList struct { + Index *uint32 `protobuf:"varint,51,opt,name=index" json:"index,omitempty"` + State *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType `protobuf:"bytes,151,opt,name=state" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Reset() { + *m = InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList{} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) ProtoMessage() {} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0, 1, 0} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) GetIndex() uint32 { + if m != nil && m.Index != nil { + return *m.Index + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) GetState() *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType { + if m != nil { + return m.State + } + return nil +} + +type InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType struct { + Counters *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType `protobuf:"bytes,151,opt,name=counters" json:"counters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) Reset() { + *m = InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType{} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) ProtoMessage() { +} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0, 1, 0, 0} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) GetCounters() *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType { + if m != nil { + return m.Counters + } + return nil +} + +type InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType struct { + InOctets *uint64 `protobuf:"varint,51,opt,name=in_octets,json=inOctets" json:"in_octets,omitempty"` + InPkts *uint64 `protobuf:"varint,61,opt,name=in_pkts,json=inPkts" json:"in_pkts,omitempty"` + InDiscards *uint64 `protobuf:"varint,52,opt,name=in_discards,json=inDiscards" json:"in_discards,omitempty"` + InErrors *uint64 `protobuf:"varint,53,opt,name=in_errors,json=inErrors" json:"in_errors,omitempty"` + InDrops *uint64 `protobuf:"varint,71,opt,name=in_drops,json=inDrops" json:"in_drops,omitempty"` + InFrameErrors *uint64 `protobuf:"varint,72,opt,name=in_frame_errors,json=inFrameErrors" json:"in_frame_errors,omitempty"` + InRunts *uint64 `protobuf:"varint,73,opt,name=in_runts,json=inRunts" json:"in_runts,omitempty"` + InGiants *uint64 `protobuf:"varint,74,opt,name=in_giants,json=inGiants" json:"in_giants,omitempty"` + InResourceErrors *uint64 `protobuf:"varint,75,opt,name=in_resource_errors,json=inResourceErrors" json:"in_resource_errors,omitempty"` + OutOctets *uint64 `protobuf:"varint,54,opt,name=out_octets,json=outOctets" json:"out_octets,omitempty"` + OutPkts *uint64 `protobuf:"varint,81,opt,name=out_pkts,json=outPkts" json:"out_pkts,omitempty"` + OutDiscards *uint64 `protobuf:"varint,55,opt,name=out_discards,json=outDiscards" json:"out_discards,omitempty"` + OutErrors *uint64 `protobuf:"varint,56,opt,name=out_errors,json=outErrors" json:"out_errors,omitempty"` + OutDrops *uint64 `protobuf:"varint,91,opt,name=out_drops,json=outDrops" json:"out_drops,omitempty"` + CarrierTransitions *uint64 `protobuf:"varint,92,opt,name=carrier_transitions,json=carrierTransitions" json:"carrier_transitions,omitempty"` + MtuErrors *uint64 `protobuf:"varint,93,opt,name=mtu_errors,json=mtuErrors" json:"mtu_errors,omitempty"` + OutResourceErrors *uint64 `protobuf:"varint,94,opt,name=out_resource_errors,json=outResourceErrors" json:"out_resource_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Reset() { + *m = InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType{} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) String() string { + return proto.CompactTextString(m) +} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) ProtoMessage() { +} +func (*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Descriptor() ([]byte, []int) { + return fileDescriptor_22f6044bdb5fdcbd, []int{0, 0, 1, 0, 0, 0} +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType.Merge(m, src) +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_Size() int { + return m.Size() +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) XXX_DiscardUnknown() { + xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType.DiscardUnknown(m) +} + +var xxx_messageInfo_InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType proto.InternalMessageInfo + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInOctets() uint64 { + if m != nil && m.InOctets != nil { + return *m.InOctets + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInPkts() uint64 { + if m != nil && m.InPkts != nil { + return *m.InPkts + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInDiscards() uint64 { + if m != nil && m.InDiscards != nil { + return *m.InDiscards + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInErrors() uint64 { + if m != nil && m.InErrors != nil { + return *m.InErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInDrops() uint64 { + if m != nil && m.InDrops != nil { + return *m.InDrops + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInFrameErrors() uint64 { + if m != nil && m.InFrameErrors != nil { + return *m.InFrameErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInRunts() uint64 { + if m != nil && m.InRunts != nil { + return *m.InRunts + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInGiants() uint64 { + if m != nil && m.InGiants != nil { + return *m.InGiants + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetInResourceErrors() uint64 { + if m != nil && m.InResourceErrors != nil { + return *m.InResourceErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutOctets() uint64 { + if m != nil && m.OutOctets != nil { + return *m.OutOctets + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutPkts() uint64 { + if m != nil && m.OutPkts != nil { + return *m.OutPkts + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutDiscards() uint64 { + if m != nil && m.OutDiscards != nil { + return *m.OutDiscards + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutErrors() uint64 { + if m != nil && m.OutErrors != nil { + return *m.OutErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutDrops() uint64 { + if m != nil && m.OutDrops != nil { + return *m.OutDrops + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetCarrierTransitions() uint64 { + if m != nil && m.CarrierTransitions != nil { + return *m.CarrierTransitions + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetMtuErrors() uint64 { + if m != nil && m.MtuErrors != nil { + return *m.MtuErrors + } + return 0 +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) GetOutResourceErrors() uint64 { + if m != nil && m.OutResourceErrors != nil { + return *m.OutResourceErrors + } + return 0 +} + +var E_JnprInterfacesLocalInterfaceExt = &proto.ExtensionDesc{ + ExtendedType: (*JuniperNetworksSensors)(nil), + ExtensionType: (*InterfacesLocalInterface)(nil), + Field: 61, + Name: "jnpr_interfaces_local_interface_ext", + Tag: "bytes,61,opt,name=jnpr_interfaces_local_interface_ext", + Filename: "xmlproxyd_show_local_interface_OC.proto", +} + +func init() { + proto.RegisterType((*InterfacesLocalInterface)(nil), "interfaces_local_interface") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceList)(nil), "interfaces_local_interface.interface_list") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceListStateType)(nil), "interfaces_local_interface.interface_list.state_type") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceListStateTypeCountersType)(nil), "interfaces_local_interface.interface_list.state_type.counters_type") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceListSubinterfacesType)(nil), "interfaces_local_interface.interface_list.subinterfaces_type") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList)(nil), "interfaces_local_interface.interface_list.subinterfaces_type.subinterface_list") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType)(nil), "interfaces_local_interface.interface_list.subinterfaces_type.subinterface_list.state_type") + proto.RegisterType((*InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType)(nil), "interfaces_local_interface.interface_list.subinterfaces_type.subinterface_list.state_type.counters_type") + proto.RegisterExtension(E_JnprInterfacesLocalInterfaceExt) +} + +func init() { + proto.RegisterFile("xmlproxyd_show_local_interface_OC.proto", fileDescriptor_22f6044bdb5fdcbd) +} + +var fileDescriptor_22f6044bdb5fdcbd = []byte{ + // 734 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0xcb, 0x4e, 0x14, 0x4d, + 0x14, 0x4e, 0xff, 0x3f, 0xf3, 0x33, 0x53, 0xc3, 0xfc, 0x40, 0xb1, 0xa0, 0xe9, 0x89, 0x80, 0x9a, + 0x28, 0x31, 0xd2, 0x9d, 0xa0, 0xa8, 0x31, 0x21, 0x31, 0x5c, 0x44, 0x90, 0x88, 0xb6, 0xae, 0xf0, + 0xd2, 0x34, 0x3d, 0xc5, 0x4c, 0xcd, 0xa5, 0xaa, 0xad, 0x3a, 0x2d, 0xc3, 0x96, 0xc4, 0xb5, 0x1b, + 0x13, 0x7d, 0x06, 0x1f, 0xc0, 0x37, 0x30, 0x71, 0xe9, 0x03, 0xb8, 0x30, 0x3c, 0x89, 0xa9, 0xea, + 0xcb, 0xd0, 0x4c, 0x30, 0xde, 0xd8, 0xb1, 0x3c, 0xe7, 0x3b, 0xe7, 0xfb, 0x4e, 0x7f, 0x5d, 0xe7, + 0xa0, 0xcb, 0xdd, 0x4e, 0x3b, 0x14, 0xbc, 0xbb, 0x5f, 0xf3, 0x64, 0x83, 0xef, 0x79, 0x6d, 0x1e, + 0xf8, 0x6d, 0x8f, 0x32, 0x20, 0x62, 0xd7, 0x0f, 0x88, 0xb7, 0xb9, 0x64, 0x87, 0x82, 0x03, 0xb7, + 0xc6, 0x80, 0xb4, 0x49, 0x87, 0x80, 0xd8, 0xf7, 0x80, 0x87, 0x71, 0xf2, 0xc2, 0xdb, 0x11, 0x64, + 0x65, 0xb5, 0xf2, 0x78, 0x33, 0x5e, 0x43, 0xa5, 0x2c, 0x30, 0xdf, 0x19, 0xd3, 0xff, 0xce, 0x94, + 0xe7, 0xae, 0xd8, 0x27, 0x37, 0xf4, 0x20, 0xaf, 0x4d, 0x25, 0xb8, 0xbd, 0x6e, 0xeb, 0xc3, 0x30, + 0xfa, 0x3f, 0x8f, 0xe2, 0x09, 0x34, 0xc0, 0xfc, 0x0e, 0x31, 0xaf, 0x4d, 0x1b, 0x33, 0xa5, 0xc5, + 0xc2, 0xc1, 0x9d, 0x7f, 0x8a, 0x86, 0xab, 0x53, 0x78, 0x03, 0x15, 0x24, 0xf8, 0xa0, 0x45, 0x8d, + 0x99, 0xf2, 0xdc, 0xfc, 0xcf, 0x8b, 0xda, 0xba, 0xd1, 0x83, 0xfd, 0x90, 0xb8, 0x31, 0x09, 0xae, + 0xa1, 0x8a, 0x8c, 0x76, 0x7a, 0x0c, 0xe6, 0xfb, 0x98, 0x75, 0xe1, 0x57, 0x58, 0x8f, 0x12, 0xc4, + 0xec, 0x79, 0x52, 0xeb, 0x63, 0x01, 0xa1, 0x9e, 0x36, 0xde, 0x46, 0xc5, 0x80, 0x47, 0x0a, 0x96, + 0xe9, 0x57, 0x2c, 0xfd, 0xd6, 0x57, 0xd8, 0x29, 0x4d, 0xac, 0x9a, 0xb1, 0x5a, 0x9f, 0x06, 0x50, + 0x25, 0x87, 0xe1, 0xaa, 0xfa, 0x5f, 0x1e, 0x0f, 0x80, 0x80, 0xd4, 0xb6, 0x0e, 0xb8, 0x45, 0xca, + 0x36, 0x75, 0x8c, 0xc7, 0xd1, 0x20, 0x65, 0x5e, 0xd8, 0x02, 0x69, 0x2e, 0x68, 0xe8, 0x3f, 0xca, + 0x1e, 0xb6, 0x40, 0xe2, 0x29, 0x54, 0xa6, 0xcc, 0xab, 0x51, 0x19, 0xf8, 0xa2, 0x26, 0xcd, 0xeb, + 0x1a, 0x44, 0x94, 0x2d, 0x27, 0x99, 0x84, 0x96, 0x08, 0xc1, 0x85, 0x34, 0xe7, 0x53, 0xda, 0x15, + 0x1d, 0xe3, 0x09, 0x54, 0x54, 0xdd, 0x82, 0x87, 0xd2, 0x5c, 0xd5, 0xd8, 0x20, 0x65, 0xcb, 0x2a, + 0xc4, 0x97, 0xd0, 0x30, 0x65, 0xde, 0xae, 0xf0, 0x3b, 0x24, 0xed, 0xbe, 0xa7, 0x2b, 0x2a, 0x94, + 0xdd, 0x55, 0xd9, 0x1c, 0x85, 0x88, 0x18, 0x48, 0x73, 0x2d, 0xa5, 0x70, 0x55, 0x98, 0x48, 0xd7, + 0xa9, 0xaf, 0xb0, 0xf5, 0x54, 0x7a, 0x55, 0xc7, 0xf8, 0x2a, 0xc2, 0xaa, 0x8f, 0x48, 0x1e, 0x89, + 0x20, 0x93, 0xb8, 0xaf, 0xab, 0x46, 0x28, 0x73, 0x13, 0x20, 0x51, 0x39, 0x87, 0x10, 0x8f, 0x20, + 0x75, 0xe7, 0x86, 0xae, 0x2a, 0xf1, 0x08, 0x12, 0x7b, 0x26, 0x50, 0x51, 0xc1, 0xda, 0x9f, 0x47, + 0xf1, 0x10, 0x3c, 0x02, 0x6d, 0xd0, 0x79, 0x34, 0xa4, 0xa0, 0xcc, 0xa1, 0x9b, 0x1a, 0x2e, 0xf3, + 0x08, 0x32, 0x8b, 0x12, 0xf2, 0x64, 0x84, 0x5b, 0x19, 0x79, 0xa2, 0x5d, 0x45, 0x25, 0xcd, 0xa0, + 0x5d, 0x7a, 0x1a, 0x7f, 0x86, 0x6a, 0xd7, 0x36, 0x39, 0x68, 0x2c, 0xf0, 0x85, 0xa0, 0x44, 0x78, + 0x20, 0x7c, 0x26, 0x29, 0x50, 0xce, 0xa4, 0xf9, 0x4c, 0x97, 0xe1, 0x04, 0x7a, 0xd2, 0x43, 0x94, + 0x58, 0x07, 0xa2, 0x54, 0xec, 0x79, 0x2c, 0xd6, 0x81, 0x28, 0x11, 0xb3, 0xd1, 0x98, 0x12, 0x3b, + 0xee, 0xcb, 0x0b, 0x5d, 0x37, 0xca, 0x23, 0xc8, 0x1b, 0x63, 0xbd, 0x29, 0x22, 0xdc, 0xff, 0xbc, + 0x31, 0xa0, 0xa1, 0xa3, 0xd9, 0x74, 0xff, 0x37, 0xff, 0x68, 0x69, 0x72, 0xa9, 0xf8, 0x48, 0xe4, + 0x54, 0xac, 0x83, 0x41, 0x34, 0xda, 0x57, 0x83, 0xab, 0xa8, 0x40, 0x59, 0x8d, 0x74, 0xf5, 0xa3, + 0xae, 0xa4, 0xb7, 0x22, 0xce, 0xe1, 0x97, 0xc7, 0x8e, 0xc5, 0xd6, 0x5f, 0x9e, 0xb0, 0xff, 0xa2, + 0x58, 0x5f, 0xf3, 0xbb, 0xfe, 0xda, 0xe8, 0x5f, 0xf6, 0xc6, 0xe9, 0x4d, 0x71, 0x76, 0x11, 0xce, + 0x2e, 0xc2, 0x69, 0x5e, 0x84, 0xdb, 0x07, 0x06, 0xba, 0xd8, 0x64, 0xa1, 0xf0, 0x4e, 0x7e, 0xc2, + 0x1e, 0xe9, 0x02, 0x1e, 0xb7, 0xd7, 0x23, 0x46, 0x43, 0x22, 0x1e, 0x10, 0xd8, 0xe3, 0xa2, 0x25, + 0x1f, 0x13, 0x26, 0x15, 0xf3, 0x82, 0x5e, 0x81, 0xea, 0x0f, 0x56, 0xc0, 0x9d, 0x52, 0x02, 0x6b, + 0x19, 0xbe, 0xa1, 0xe0, 0x2c, 0x5c, 0xe9, 0xc2, 0xe2, 0xf6, 0xe7, 0xc3, 0x49, 0xe3, 0xcb, 0xe1, + 0xa4, 0xf1, 0xed, 0x70, 0xd2, 0xd8, 0x72, 0xeb, 0x14, 0xec, 0x66, 0xac, 0x66, 0x33, 0x02, 0x0e, + 0x0d, 0xc8, 0x0e, 0x11, 0x75, 0xa7, 0x41, 0xfc, 0x36, 0x34, 0x76, 0x38, 0xcc, 0x52, 0x56, 0x27, + 0x12, 0x66, 0x9b, 0x40, 0x67, 0x99, 0x0f, 0xf4, 0x15, 0x71, 0xc2, 0x56, 0xdd, 0x69, 0x02, 0x75, + 0xfc, 0x9a, 0x1f, 0xaa, 0x9d, 0x70, 0xbc, 0x66, 0xc4, 0xb8, 0x74, 0x64, 0xd0, 0x20, 0x1d, 0xff, + 0x7b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0a, 0xe5, 0xb0, 0x7a, 0x3c, 0x09, 0x00, 0x00, +} + +func (m *InterfacesLocalInterface) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterface) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterface) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Interface) > 0 { + for iNdEx := len(m.Interface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Interface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Subinterfaces != nil { + { + size, err := m.Subinterfaces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xc2 + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Name != nil { + i -= len(*m.Name) + copy(dAtA[i:], *m.Name) + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(len(*m.Name))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutResourceErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutResourceErrors)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.MtuErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.MtuErrors)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.CarrierTransitions != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.CarrierTransitions)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.OutDrops != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutDrops)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.OutPkts != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutPkts)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.InResourceErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InResourceErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.InGiants != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InGiants)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.InRunts != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InRunts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.InFrameErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InFrameErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.InDrops != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InDrops)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.InPkts != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OutDiscards != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OutOctets != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InDiscards != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InOctets != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Subinterface) > 0 { + for iNdEx := len(m.Subinterface) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Subinterface[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + if m.Index != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.Index)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x9 + i-- + dAtA[i] = 0xba + } + return len(dAtA) - i, nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.OutResourceErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutResourceErrors)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xf0 + } + if m.MtuErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.MtuErrors)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe8 + } + if m.CarrierTransitions != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.CarrierTransitions)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xe0 + } + if m.OutDrops != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutDrops)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0xd8 + } + if m.OutPkts != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutPkts)) + i-- + dAtA[i] = 0x5 + i-- + dAtA[i] = 0x88 + } + if m.InResourceErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InResourceErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd8 + } + if m.InGiants != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InGiants)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xd0 + } + if m.InRunts != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InRunts)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc8 + } + if m.InFrameErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InFrameErrors)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xc0 + } + if m.InDrops != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InDrops)) + i-- + dAtA[i] = 0x4 + i-- + dAtA[i] = 0xb8 + } + if m.InPkts != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InPkts)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xe8 + } + if m.OutErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xc0 + } + if m.OutDiscards != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb8 + } + if m.OutOctets != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.OutOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb0 + } + if m.InErrors != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InErrors)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa8 + } + if m.InDiscards != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InDiscards)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa0 + } + if m.InOctets != nil { + i = encodeVarintXmlproxydShowLocalInterface_OC(dAtA, i, uint64(*m.InOctets)) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x98 + } + return len(dAtA) - i, nil +} + +func encodeVarintXmlproxydShowLocalInterface_OC(dAtA []byte, offset int, v uint64) int { + offset -= sovXmlproxydShowLocalInterface_OC(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *InterfacesLocalInterface) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Interface) > 0 { + for _, e := range m.Interface { + l = e.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Name != nil { + l = len(*m.Name) + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + if m.Subinterfaces != nil { + l = m.Subinterfaces.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InOctets != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InOctets)) + } + if m.InDiscards != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InDiscards)) + } + if m.InErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InErrors)) + } + if m.OutOctets != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutOctets)) + } + if m.OutDiscards != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutDiscards)) + } + if m.OutErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutErrors)) + } + if m.InPkts != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InPkts)) + } + if m.InDrops != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InDrops)) + } + if m.InFrameErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InFrameErrors)) + } + if m.InRunts != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InRunts)) + } + if m.InGiants != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InGiants)) + } + if m.InResourceErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InResourceErrors)) + } + if m.OutPkts != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutPkts)) + } + if m.OutDrops != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutDrops)) + } + if m.CarrierTransitions != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.CarrierTransitions)) + } + if m.MtuErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.MtuErrors)) + } + if m.OutResourceErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutResourceErrors)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Subinterface) > 0 { + for _, e := range m.Subinterface { + l = e.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.Index)) + } + if m.State != nil { + l = m.State.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Counters != nil { + l = m.Counters.Size() + n += 2 + l + sovXmlproxydShowLocalInterface_OC(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.InOctets != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InOctets)) + } + if m.InDiscards != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InDiscards)) + } + if m.InErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InErrors)) + } + if m.OutOctets != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutOctets)) + } + if m.OutDiscards != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutDiscards)) + } + if m.OutErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutErrors)) + } + if m.InPkts != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InPkts)) + } + if m.InDrops != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InDrops)) + } + if m.InFrameErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InFrameErrors)) + } + if m.InRunts != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InRunts)) + } + if m.InGiants != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InGiants)) + } + if m.InResourceErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.InResourceErrors)) + } + if m.OutPkts != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutPkts)) + } + if m.OutDrops != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutDrops)) + } + if m.CarrierTransitions != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.CarrierTransitions)) + } + if m.MtuErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.MtuErrors)) + } + if m.OutResourceErrors != nil { + n += 2 + sovXmlproxydShowLocalInterface_OC(uint64(*m.OutResourceErrors)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovXmlproxydShowLocalInterface_OC(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozXmlproxydShowLocalInterface_OC(x uint64) (n int) { + return sovXmlproxydShowLocalInterface_OC(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *InterfacesLocalInterface) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interfaces_local_interface: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interfaces_local_interface: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interface = append(m.Interface, &InterfacesLocalInterfaceInterfaceList{}) + if err := m.Interface[len(m.Interface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: interface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: interface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Name = &s + iNdEx = postIndex + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesLocalInterfaceInterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 152: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Subinterfaces == nil { + m.Subinterfaces = &InterfacesLocalInterfaceInterfaceListSubinterfacesType{} + } + if err := m.Subinterfaces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &InterfacesLocalInterfaceInterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDiscards = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InErrors = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDiscards = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutErrors = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPkts = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDrops = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFrameErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFrameErrors = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InRunts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InRunts = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InGiants", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InGiants = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InResourceErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InResourceErrors = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPkts = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDrops = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CarrierTransitions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CarrierTransitions = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MtuErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MtuErrors = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutResourceErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutResourceErrors = &v + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterfaces_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterfaces_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Subinterface", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Subinterface = append(m.Subinterface, &InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList{}) + if err := m.Subinterface[len(m.Subinterface)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: subinterface_list: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: subinterface_list: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Index = &v + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.State == nil { + m.State = &InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType{} + } + if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: state_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: state_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 151: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Counters == nil { + m.Counters = &InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType{} + } + if err := m.Counters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InterfacesLocalInterfaceInterfaceListSubinterfacesTypeSubinterfaceListStateTypeCountersType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: counters_type: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: counters_type: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 51: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InOctets = &v + case 52: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDiscards = &v + case 53: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InErrors = &v + case 54: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutOctets", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutOctets = &v + case 55: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDiscards", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDiscards = &v + case 56: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutErrors = &v + case 61: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InPkts = &v + case 71: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InDrops = &v + case 72: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InFrameErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InFrameErrors = &v + case 73: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InRunts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InRunts = &v + case 74: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InGiants", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InGiants = &v + case 75: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InResourceErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InResourceErrors = &v + case 81: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutPkts", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutPkts = &v + case 91: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutDrops", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutDrops = &v + case 92: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CarrierTransitions", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CarrierTransitions = &v + case 93: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MtuErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MtuErrors = &v + case 94: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OutResourceErrors", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OutResourceErrors = &v + default: + iNdEx = preIndex + skippy, err := skipXmlproxydShowLocalInterface_OC(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipXmlproxydShowLocalInterface_OC(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowXmlproxydShowLocalInterface_OC + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupXmlproxydShowLocalInterface_OC + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthXmlproxydShowLocalInterface_OC + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthXmlproxydShowLocalInterface_OC = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowXmlproxydShowLocalInterface_OC = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupXmlproxydShowLocalInterface_OC = fmt.Errorf("proto: unexpected end of group") +) diff --git a/schema/xmlproxyd_show_local_interface_OC.proto b/schema/xmlproxyd_show_local_interface_OC.proto new file mode 100755 index 0000000..5150fb9 --- /dev/null +++ b/schema/xmlproxyd_show_local_interface_OC.proto @@ -0,0 +1,67 @@ +syntax = "proto2"; +option go_package = "github.com/Juniper/jtimon/schema"; +import "telemetry_top.proto"; + +extend JuniperNetworksSensors { + optional interfaces_local_interface jnpr_interfaces_local_interface_ext = 61; +} + +message interfaces_local_interface { + message interface_list { + optional string name = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional counters_type counters = 151; + message counters_type { + optional uint64 in_octets = 51; + optional uint64 in_pkts = 61; + optional uint64 in_discards = 52; + optional uint64 in_errors = 53; + optional uint64 in_drops = 71; + optional uint64 in_frame_errors = 72; + optional uint64 in_runts = 73; + optional uint64 in_giants = 74; + optional uint64 in_resource_errors = 75; + optional uint64 out_octets = 54; + optional uint64 out_pkts = 81; + optional uint64 out_discards = 55; + optional uint64 out_errors = 56; + optional uint64 out_drops = 91; + optional uint64 carrier_transitions = 92; + optional uint64 mtu_errors = 93; + optional uint64 out_resource_errors = 94; + } + } + optional subinterfaces_type subinterfaces = 152; + message subinterfaces_type { + message subinterface_list { + optional uint32 index = 51 [(telemetry_options).is_key = true]; + optional state_type state = 151; + message state_type { + optional counters_type counters = 151; + message counters_type { + optional uint64 in_octets = 51; + optional uint64 in_pkts = 61; + optional uint64 in_discards = 52; + optional uint64 in_errors = 53; + optional uint64 in_drops = 71; + optional uint64 in_frame_errors = 72; + optional uint64 in_runts = 73; + optional uint64 in_giants = 74; + optional uint64 in_resource_errors = 75; + optional uint64 out_octets = 54; + optional uint64 out_pkts = 81; + optional uint64 out_discards = 55; + optional uint64 out_errors = 56; + optional uint64 out_drops = 91; + optional uint64 carrier_transitions = 92; + optional uint64 mtu_errors = 93; + optional uint64 out_resource_errors = 94; + } + } + } + repeated subinterface_list subinterface = 151; + } + } + repeated interface_list interface = 151; +} diff --git a/subscribe_cisco_iosxr.go b/subscribe_cisco_iosxr.go index cb0c037..c144207 100644 --- a/subscribe_cisco_iosxr.go +++ b/subscribe_cisco_iosxr.go @@ -15,7 +15,7 @@ import ( "unicode" pb "github.com/Juniper/jtimon/multi-vendor/cisco/iosxr/grpc-proto" - "github.com/Juniper/jtimon/multi-vendor/cisco/iosxr/telemetry-proto" + telemetry "github.com/Juniper/jtimon/multi-vendor/cisco/iosxr/telemetry-proto" "github.com/golang/protobuf/proto" "google.golang.org/grpc" ) diff --git a/subscribe_cisco_iosxr_test.go b/subscribe_cisco_iosxr_test.go index ca2466c..f4ca4c2 100644 --- a/subscribe_cisco_iosxr_test.go +++ b/subscribe_cisco_iosxr_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/Juniper/jtimon/multi-vendor/cisco/iosxr/telemetry-proto" + telemetry "github.com/Juniper/jtimon/multi-vendor/cisco/iosxr/telemetry-proto" "github.com/golang/protobuf/proto" flag "github.com/spf13/pflag" ) diff --git a/udp.go b/udp.go new file mode 100644 index 0000000..02daf89 --- /dev/null +++ b/udp.go @@ -0,0 +1,508 @@ +package main + +import ( + "encoding/json" + "fmt" + "strconv" + "regexp" + "math" + "strings" + "log" + "os" + "io" + "os/signal" + "net" + "time" + "sync" + "syscall" + + "google.golang.org/protobuf/types/descriptorpb" + "google.golang.org/protobuf/reflect/protopath" + "google.golang.org/protobuf/reflect/protorange" + "google.golang.org/protobuf/reflect/protoreflect" + "github.com/golang/protobuf/proto" + "github.com/jhump/protoreflect/desc/protoparse" + "github.com/influxdata/influxdb/client/v2" + + gogoproto "github.com/gogo/protobuf/proto" + gogodescriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" + protoschema "github.com/Juniper/jtimon/schema" + tt "github.com/Juniper/jtimon/schema/telemetry_top" +) + +func parseProtos(jctx *JCtx) string { + var extNames string + if len(jctx.config.UDP.Protos) != 0 { + parser := protoparse.Parser{ImportPaths: []string{"./schema"}, IncludeSourceCodeInfo: true} + protos, err := parser.ParseFiles(jctx.config.UDP.Protos...) + if err != nil { + jLog(jctx, fmt.Sprintf("parse proto files error: %v\n", err)) + } + for _, fileDescriptors := range protos { + for _, extDescriptor := range fileDescriptors.GetExtensions() { + extNames += extDescriptor.GetName() + "\n" + } + } + } + return extNames +} + +func processUDPData(jctx *JCtx, ts *protoschema.TelemetryStream) map[string]map[string]interface{} { + mData := make(map[string]map[string]interface{}) + var mName string + b, err := json.MarshalIndent(ts, "", " ") + if err != nil { + jLog(jctx, fmt.Sprintf("processUDPData: json marshalindent error: %v\n", err)) + } + + data := make(map[string]interface{}) + if err = json.Unmarshal(b, &data) + err != nil { + jLog(jctx, fmt.Sprintf("processUDPData: json unmarshal error: %v\n", err)) + } + delete(data, "enterprise") + property:= make(map[string]interface{}) + keys := make(map[string]interface{}) + extNames := parseProtos(jctx) + + if gogoproto.HasExtension(ts.Enterprise, protoschema.E_JuniperNetworks) { + jns_i, err := gogoproto.GetExtension(ts.Enterprise, protoschema.E_JuniperNetworks) + if err != nil { + jLog(jctx, fmt.Sprintf("processUDPData: cant get extension: %v\n", err)) + } + switch jns := jns_i.(type) { + case *protoschema.JuniperNetworksSensors: + for _, extDescriptor := range gogoproto.RegisteredExtensions(jns) { + if gogoproto.HasExtension(jns, extDescriptor) { + if len(jctx.config.UDP.Protos) != 0 && !strings.Contains(extNames, extDescriptor.Name) { + continue + } + extObj, err := gogoproto.GetExtension(jns, extDescriptor) + if err != nil { + jLog(jctx, fmt.Sprintf("processUDPData: cant get extension: %v\n", err)) + } + + extMsg := extObj.(gogodescriptor.Message) + protoMsg := extMsg.(proto.Message) + mr := proto.MessageReflect(protoMsg) + + var xpath string + var xpath0 string + var xpath_tmp string + var root string + var list_idx int + var level_idx int + var key0 string + var tag_idx int + list_idx0 := -1 + protorange.Options{ + Stable: true, + }.Range(mr, + func(p protopath.Values) error { + var fd protoreflect.FieldDescriptor + last := p.Index(-1) + beforeLast := p.Index(-2) + + var v2 string + switch v := last.Value.Interface().(type) { + case string, []byte: + v2 = fmt.Sprintf("%s", v) + case float64: + temp := math.Pow(v, float64(2)) + val := math.Round(v * temp) / temp + v2 = fmt.Sprintf("%v", val) + case uint64: + v2 = fmt.Sprintf("%v", int(v)) + default: + v2 = fmt.Sprintf("%v", v) + } + + var key string + var tags []string + var keysOnly bool + switch last.Step.Kind() { + case protopath.ListIndexStep: + key = "" + keysOnly = true + if list_idx != list_idx0 { + xpath0 = xpath_tmp + key + xpath = xpath0 + } + + switch mr := beforeLast.Value.Interface().(type) { + case protoreflect.List: + mTags := make(map[string]interface{}) + for i := 0; i < mr.Len(); i++ { + var leafKey string + msg0 := mr.Get(i) + switch msg0.Interface().(type) { + case protoreflect.Message: + fd = beforeLast.Step.FieldDescriptor() + m0 := msg0.Message() + m0.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + v2 = fmt.Sprintf("%v", v) + fieldName := string(fd.Name()) + opt2 := fd.Options().(*descriptorpb.FieldOptions) + keysMap := make(map[string]string) + if proto.HasExtension(opt2, tt.E_TelemetryOptions) { + opt, err := proto.GetExtension(opt2, tt.E_TelemetryOptions) + if err != nil { + log.Fatalln("cant get extension: ", err) + } + IsKey := opt.(*tt.TelemetryFieldOptions).GetIsKey() + if IsKey == true { + keysMap[fieldName] = v2 + } else { + keysOnly = false + } + } else { + keysOnly = false + } + for fieldName, val := range keysMap { + keys[fieldName] = val + leafKey = leafKey + " and "+ fieldName +"='" + val + "'" + } + return true + }) + if keysOnly == false { + if len(leafKey) >= 5 { + leafKey = leafKey[5:] + leafKey = "[" + leafKey + "]" + } + } + default: + } + tags = append(tags, leafKey) + + } + if len(tags) > 0 && tag_idx < len(tags) { + key0 = key + key = tags[tag_idx] + + if system_id, ok := data["system_id"]; ok { + mTags["system_id"] = fmt.Sprintf("%v", system_id) + } + if sensor_name, ok := data["sensor_name"]; ok { + mTags["sensor_name"] = fmt.Sprintf("%v", sensor_name) + } + if keysOnly == false { + key0 = key + } else { + key = key0 + } + tag_idx += 1 + } + } + list_idx = last.Step.ListIndex() + if list_idx != list_idx0 { + xpath0 = xpath_tmp + key + xpath = xpath0 + } + if list_idx == 0 && keysOnly == false { + xpath0 = xpath0 + key + } + if list_idx != 0 { + xpath_tmp = root + } + case protopath.FieldAccessStep: + fd = last.Step.FieldDescriptor() + props := make(map[string]interface{}) + switch last.Value.Interface().(type) { + case protoreflect.List: + if list_idx > list_idx0 { + xpath0 = "/"+ fd.TextName() + root = xpath0 + xpath_tmp = xpath0 + level_idx = 0 + } else { + xpath = xpath0 + "/"+fd.TextName() + } + level_idx = level_idx + 1 + case protoreflect.Message: + xpath0 = xpath_tmp + key0 + "/"+ fd.TextName() + xpath = xpath0 + default: + opt2 := fd.Options().(*descriptorpb.FieldOptions) + if proto.HasExtension(opt2, tt.E_TelemetryOptions) { + opt, err := proto.GetExtension(opt2, tt.E_TelemetryOptions) + if err != nil { + log.Fatalln("Cant get extension: ", err) + } + IsKey := opt.(*tt.TelemetryFieldOptions).GetIsKey() + if IsKey == true { + if list_idx == 0 && level_idx <= 1 { + xpath_tmp = xpath_tmp + key + } + } else { + xpath = xpath0 + "/"+fd.TextName() + props[xpath] = v2 + } + } else { + xpath = xpath0 + "/"+ fd.TextName() + props[xpath] = v2 + xpath = xpath0 + } + } + if _, ok := property[strconv.Itoa(tag_idx)]; !ok { + property[strconv.Itoa(tag_idx)] = props + } else { + if m, ok := property[strconv.Itoa(tag_idx)].(map[string]interface{}); ok { + for k, v := range props { + m[k] = v + } + } + } + mName = root + list_idx0 = list_idx + } + return nil + }, + func(p protopath.Values) error { + return nil + }, + ) + } + } + } + } + delete(property, "0") + data["Properties"] = property + bytes, err := json.MarshalIndent(data, "", " ") + if err != nil { + jLog(jctx, fmt.Sprintf("processUDPData: JSON indent error: %v\n", err)) + } + jLog(jctx, fmt.Sprintln(("\n******** Data which will be written to DB is: ********"))) + jLog(jctx, fmt.Sprintf("%s\n", bytes)) + mData[mName] = data + return mData +} + +func (jctx *JCtx) udpSignalHandler() { + sigchan := make(chan os.Signal, 10) + signal.Notify(sigchan, os.Interrupt, syscall.SIGHUP) + for { + select { + case s := <-sigchan: + switch s { + case syscall.SIGHUP: + restart := false + err := ConfigRead(jctx, false, &restart) + if err != nil { + log.Println(err) + } else if restart { + jctx.control <- syscall.SIGHUP + jLog(jctx, fmt.Sprintf("UDP config re-parse, data streaming has not started yet")) + } + case os.Interrupt: + jctx.control <- os.Interrupt + jLog(jctx, fmt.Sprintf("UDP dialing has been interrupted(SIGINT)")) + return + } + } + } +} + +func udpSubscribeJunos(conn net.PacketConn, jctx *JCtx) SubErrorCode { + go func() { + jLog(jctx, fmt.Sprintf("Receiving UDP telemetry data from %s:%d\n", jctx.config.UDP.Host, jctx.config.UDP.Port)) + buffer := make([]byte, 102400) + + for { + n, _, err := conn.ReadFrom(buffer) + if err == io.EOF { + printSummary(jctx) + return + } + if err != nil { + jLog(jctx, fmt.Sprintf("Read UDP packets failed, %v\n", err)) + return + } + if n == 0 { + jLog(jctx, fmt.Sprintf("%v No UDP packet received\n", conn)) + return + } + + ts := &protoschema.TelemetryStream{} + if err := proto.Unmarshal(buffer[:n], ts); err != nil { + jLog(jctx, fmt.Sprintf("Failed to parse TelemetryStream: %v\n", err)) + } + + rtime := time.Now() + if *noppgoroutines { + mData := processUDPData(jctx, ts) + udpAddIDB(mData, jctx, rtime) + } else { + go func(ts *protoschema.TelemetryStream) { + mData := processUDPData(jctx, ts) + udpAddIDB(mData, jctx, rtime) + }(ts) + } + } + }() + + for { + select { + case s := <-jctx.control: + switch s { + case syscall.SIGHUP: + return SubRcSighupRestart + case os.Interrupt: + return SubRcSighupNoRestart + } + } + } +} + +// Takes in XML path with predicates and returns map of tags+values +func extractTags(jctx *JCtx, xmlpath string) map[string]string { + // Example : + // xmlpath /interface_info[if_name='ge-0/0/0' and snmp_if_index='0'] + // tags /interface_info/@if_name:ge-0/0/0 + // /interface_info/@snmp_if_index:0 + jctx.influxCtx.reKey = regexp.MustCompile(UDPMatchExpressionKey) + _, tags := spitTagsNPath(jctx, xmlpath) + // Add tags without key-value pairs + for _, tag := range strings.Split(xmlpath, "/") { + if !strings.HasPrefix(tag, "@") { + tags[strings.Replace(tag, "-", "_", -1)] = "" + } + } + // Remove keys without values + for tagKey, tagValue := range tags { + if tagValue == "" { + delete(tags, tagKey) + } + } + return tags +} + +func udpAddIDB(mData map[string]map[string]interface{}, jctx *JCtx, rtime time.Time) { + cfg := jctx.config + + bp, err := client.NewBatchPoints(client.BatchPointsConfig{ + Database: cfg.Influx.Dbname, + Precision: "ns", + RetentionPolicy: cfg.Influx.RetentionPolicy, + }) + + if err != nil { + jLog(jctx, fmt.Sprintf("NewBatchPoints failed, error: %v\n", err)) + return + } + + for measurement, data := range mData { + var mName string + if jctx.config.Influx.Measurement == "" { + mName = measurement + } else { + mName = jctx.config.Influx.Measurement + } + fields := make(map[string]interface{}) + tags := make(map[string]string) + for dataKey, val := range data { + if dataKey != "Properties" { + if dataKey == "system_id" || dataKey == "sensor_name" { + tags[dataKey] = fmt.Sprintf("%v", val) + } else { + fields[dataKey] = val + } + } + } + for dataKey, _ := range data { + if dataKey == "Properties" { + for _, counters := range data["Properties"].(map[string]interface{}) { + var cnt int + xpathTags := make(map[string]string) + for k, val := range counters.(map[string]interface{}) { + cnt += 1 + if cnt == 1 { + xpathTags = extractTags(jctx, k) + xpathTags["system_id"] = tags["system_id"] + xpathTags["sensor_name"] = tags["sensor_name"] + } + splitInput := strings.Split(k, "/") + lastElement := splitInput[len(splitInput)-1] + tags = xpathTags + intVal, err := strconv.ParseInt(fmt.Sprintf("%s", val), 10, 64) + if err != nil { + fields[lastElement] = val + } else { + fields[lastElement] = intVal + } + + } + pt, err := client.NewPoint(mName, tags, fields, rtime) + if err != nil { + jLog(jctx, fmt.Sprintf("Could not get NewPoint (first point): %v\n", err)) + continue + } + if IsVerboseLogging(jctx) { + jLog(jctx, fmt.Sprintf("Tags: %+v\n", pt.Tags())) + if f, err := pt.Fields(); err == nil { + jLog(jctx, fmt.Sprintf("KVs : %+v\n", f)) + } + } + bp.AddPoint(pt) + } + } + } + } + + if err := (*jctx.influxCtx.influxClient).Write(bp); err != nil { + jLog(jctx, fmt.Sprintf("Batch DB write failed: %v\n", err)) + } else { + jLog(jctx, fmt.Sprintf("Updated %d records in database %s", len(bp.Points()), cfg.Influx.Dbname)) + } +} + +func udpInit(jctx *JCtx) error { +udpdial: + err := ConfigRead(jctx, true, nil) + if err != nil { + log.Println(err) + return err + } + + udpHostname := jctx.config.UDP.Host + ":" + strconv.Itoa(jctx.config.UDP.Port) + go jctx.udpSignalHandler() + + jLog(jctx, fmt.Sprintf("Dialing UDP host %s", udpHostname)) + ln, err := net.ListenPacket("udp", udpHostname) + if err != nil { + jLog(jctx, fmt.Sprintf("[%s] could not listen on: %v", jctx.config.UDP.Host, err)) + return err + } + + fmt.Println("Calling udpSubscribe() :::", jctx.file) + udpCode := udpSubscribeJunos(ln, jctx) + fmt.Println("Returns udpSubscribe() :::", jctx.file, "UDPCODE ::: ", udpCode) + + switch udpCode { + case SubRcSighupRestart: + jLog(jctx, fmt.Sprintf("sighup detected, re-dial with new config for UDP host %s", udpHostname)) + goto udpdial + case SubRcSighupNoRestart: + jLog(jctx, fmt.Sprintf("Streaming will be stopped (SIGINT) for UDP host %s", udpHostname)) + return fmt.Errorf("UDP dialing for %s has been interrupted", udpHostname) + } + ln.Close() + + return nil +} + +func udpWork(configFiles *[]string) { + var wg sync.WaitGroup + jctx := JCtx{ + wg: &wg, + } + for _, fileName := range *configFiles { + jctx.file = fileName + jctx.stats = statsCtx{ + startTime: time.Now(), + } + if err := udpInit(&jctx); err == nil { + jctx.wg.Add(1) + } + } + jctx.wg.Wait() +} diff --git a/vendor/github.com/Shopify/sarama/go.mod b/vendor/github.com/Shopify/sarama/go.mod deleted file mode 100644 index 1dca1cc..0000000 --- a/vendor/github.com/Shopify/sarama/go.mod +++ /dev/null @@ -1,34 +0,0 @@ -module github.com/Shopify/sarama - -go 1.13 - -require ( - github.com/Shopify/toxiproxy v2.1.4+incompatible - github.com/davecgh/go-spew v1.1.1 - github.com/eapache/go-resiliency v1.2.0 - github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 - github.com/eapache/queue v1.1.0 - github.com/fortytw2/leaktest v1.3.0 - github.com/frankban/quicktest v1.7.2 // indirect - github.com/golang/snappy v0.0.1 // indirect - github.com/google/go-cmp v0.4.0 // indirect - github.com/hashicorp/go-uuid v1.0.2 // indirect - github.com/jcmturner/gofork v1.0.0 // indirect - github.com/klauspost/compress v1.9.8 - github.com/kr/pretty v0.2.0 // indirect - github.com/pierrec/lz4 v2.4.1+incompatible - github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 - github.com/stretchr/testify v1.4.0 - github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c - github.com/xdg/stringprep v1.0.0 // indirect - golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72 // indirect - golang.org/x/net v0.0.0-20200202094626-16171245cfb2 - golang.org/x/text v0.3.2 // indirect - gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect - gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect - gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect - gopkg.in/jcmturner/goidentity.v3 v3.0.0 // indirect - gopkg.in/jcmturner/gokrb5.v7 v7.5.0 - gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect - gopkg.in/yaml.v2 v2.2.8 // indirect -) diff --git a/vendor/github.com/Shopify/sarama/go.sum b/vendor/github.com/Shopify/sarama/go.sum deleted file mode 100644 index 06ec328..0000000 --- a/vendor/github.com/Shopify/sarama/go.sum +++ /dev/null @@ -1,81 +0,0 @@ -github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/eapache/go-resiliency v1.2.0 h1:v7g92e/KSN71Rq7vSThKaWIq68fL4YHvWyiUKorFR1Q= -github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= -github.com/frankban/quicktest v1.7.2 h1:2QxQoC1TS09S7fhCPsrvqYdvP1H5M1P1ih5ABm3BTYk= -github.com/frankban/quicktest v1.7.2/go.mod h1:jaStnuzAqU1AJdCO0l53JDCJrVDKcS03DbaAcR7Ks/o= -github.com/golang/snappy v0.0.1 h1:Qgr9rKW7uDUkrbSmQeiDsGa8SjGyCOGtuasMWwvp2P4= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/jcmturner/gofork v1.0.0 h1:J7uCkflzTEhUZ64xqKnkDxq3kzc96ajM1Gli5ktUem8= -github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/klauspost/compress v1.9.8 h1:VMAMUUOh+gaxKTMk+zqbjsSjsIcUcL/LF4o63i82QyA= -github.com/klauspost/compress v1.9.8/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/pierrec/lz4 v2.4.1+incompatible h1:mFe7ttWaflA46Mhqh+jUfjp2qTbPYxLB2/OyBppH9dg= -github.com/pierrec/lz4 v2.4.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 h1:dY6ETXrvDG7Sa4vE8ZQG4yqWg6UnOcbqTAahkV813vQ= -github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c h1:u40Z8hqBAAQyv+vATcGgV0YCnDjqSL7/q/JyPhhJSPk= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v1.0.0 h1:d9X0esnoa3dFsV0FG35rAT0RIhYFlPq7MiP+DW89La0= -github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72 h1:+ELyKg6m8UBf0nPFSqD0mi7zUfwPyXo23HNjMnXPz7w= -golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 h1:0GoQqolDA55aaLxZyTzK/Y2ePZzZTUrRacwib7cNsYQ= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2 h1:CCH4IOTTfewWjGOlSp+zGcjutRKlBEZQ6wTn8ozI/nI= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/jcmturner/aescts.v1 v1.0.1 h1:cVVZBK2b1zY26haWB4vbBiZrfFQnfbTVrE3xZq6hrEw= -gopkg.in/jcmturner/aescts.v1 v1.0.1/go.mod h1:nsR8qBOg+OucoIW+WMhB3GspUQXq9XorLnQb9XtvcOo= -gopkg.in/jcmturner/dnsutils.v1 v1.0.1 h1:cIuC1OLRGZrld+16ZJvvZxVJeKPsvd5eUIvxfoN5hSM= -gopkg.in/jcmturner/dnsutils.v1 v1.0.1/go.mod h1:m3v+5svpVOhtFAP/wSz+yzh4Mc0Fg7eRhxkJMWSIz9Q= -gopkg.in/jcmturner/goidentity.v3 v3.0.0 h1:1duIyWiTaYvVx3YX2CYtpJbUFd7/UuPYCfgXtQ3VTbI= -gopkg.in/jcmturner/goidentity.v3 v3.0.0/go.mod h1:oG2kH0IvSYNIu80dVAyu/yoefjq1mNfM5bm88whjWx4= -gopkg.in/jcmturner/gokrb5.v7 v7.5.0 h1:a9tsXlIDD9SKxotJMK3niV7rPZAJeX2aD/0yg3qlIrg= -gopkg.in/jcmturner/gokrb5.v7 v7.5.0/go.mod h1:l8VISx+WGYp+Fp7KRbsiUuXTTOnxIc3Tuvyavf11/WM= -gopkg.in/jcmturner/rpc.v1 v1.1.0 h1:QHIUxTX1ISuAv9dD2wJ9HWQVuWDX/Zc0PfeC2tjc4rU= -gopkg.in/jcmturner/rpc.v1 v1.1.0/go.mod h1:YIdkC4XfD6GXbzje11McwsDuOlZQSb9W4vfLvuNnlv8= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/bufbuild/protocompile/LICENSE b/vendor/github.com/bufbuild/protocompile/LICENSE new file mode 100644 index 0000000..04cf1e3 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2020-2022 Buf Technologies, 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. diff --git a/vendor/github.com/bufbuild/protocompile/Makefile b/vendor/github.com/bufbuild/protocompile/Makefile new file mode 100644 index 0000000..afca92c --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/Makefile @@ -0,0 +1,159 @@ +# See https://tech.davis-hansson.com/p/make/ +SHELL := bash +.DELETE_ON_ERROR: +.SHELLFLAGS := -eu -o pipefail -c +.DEFAULT_GOAL := all +MAKEFLAGS += --warn-undefined-variables +MAKEFLAGS += --no-builtin-rules +MAKEFLAGS += --no-print-directory +BIN := $(abspath .tmp/bin) +COPYRIGHT_YEARS := 2020-2022 +LICENSE_IGNORE := -e /testdata/ +# Set to use a different compiler. For example, `GO=go1.18rc1 make test`. +GO ?= go +TOOLS_MOD_DIR := ./internal/tools +UNAME_OS := $(shell uname -s) +UNAME_ARCH := $(shell uname -m) + +# NB: this must be kept in sync with constant in internal/benchmarks. +PROTOC_VERSION ?= 22.0 +PROTOC_DIR := $(abspath ./internal/testdata/protoc/$(PROTOC_VERSION)) +PROTOC := $(PROTOC_DIR)/bin/protoc + +ifeq ($(UNAME_OS),Darwin) +PROTOC_OS := osx +ifeq ($(UNAME_ARCH),arm64) +PROTOC_ARCH := aarch_64 +else +PROTOC_ARCH := x86_64 +endif +endif +ifeq ($(UNAME_OS),Linux) +PROTOC_OS := linux +PROTOC_ARCH := $(UNAME_ARCH) +endif + +.PHONY: help +help: ## Describe useful make targets + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-30s %s\n", $$1, $$2}' + +.PHONY: all +all: ## Build, test, and lint (default) + $(MAKE) test + $(MAKE) lint + +.PHONY: clean +clean: ## Delete intermediate build artifacts + @# -X only removes untracked files, -d recurses into directories, -f actually removes files/dirs + git clean -Xdf + +.PHONY: test +test: build ## Run unit tests + $(GO) test -vet=off -race -cover ./... + +.PHONY: benchmarks +benchmarks: build ## Run benchmarks + cd internal/benchmarks && $(GO) test -bench=. -benchmem -v ./... + +.PHONY: build +build: generate ## Build all packages + $(GO) build ./... + +.PHONY: install +install: ## Install all binaries + $(GO) install ./... + +.PHONY: lint +lint: $(BIN)/golangci-lint ## Lint Go + $(GO) vet ./... ./internal/benchmarks/... + $(BIN)/golangci-lint run + cd internal/benchmarks && $(BIN)/golangci-lint run + +.PHONY: lintfix +lintfix: $(BIN)/golangci-lint ## Automatically fix some lint errors + $(BIN)/golangci-lint run --fix + cd internal/benchmarks && $(BIN)/golangci-lint run --fix + +.PHONY: generate +generate: $(BIN)/license-header $(BIN)/goyacc test-descriptors ## Regenerate code and licenses + PATH="$(BIN):$(PATH)" $(GO) generate ./... + @# We want to operate on a list of modified and new files, excluding + @# deleted and ignored files. git-ls-files can't do this alone. comm -23 takes + @# two files and prints the union, dropping lines common to both (-3) and + @# those only in the second file (-2). We make one git-ls-files call for + @# the modified, cached, and new (--others) files, and a second for the + @# deleted files. + comm -23 \ + <(git ls-files --cached --modified --others --no-empty-directory --exclude-standard | sort -u | grep -v $(LICENSE_IGNORE) ) \ + <(git ls-files --deleted | sort -u) | \ + xargs $(BIN)/license-header \ + --license-type apache \ + --copyright-holder "Buf Technologies, Inc." \ + --year-range "$(COPYRIGHT_YEARS)" + +.PHONY: upgrade +upgrade: ## Upgrade dependencies + go get -u -t ./... && go mod tidy -v + +.PHONY: checkgenerate +checkgenerate: + @# Used in CI to verify that `make generate` doesn't produce a diff. + test -z "$$(git status --porcelain | tee /dev/stderr)" + +$(BIN)/license-header: internal/tools/go.mod internal/tools/go.sum + @mkdir -p $(@D) + cd $(TOOLS_MOD_DIR) && \ + $(GO) build -o $@ github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header + +$(BIN)/golangci-lint: internal/tools/go.mod internal/tools/go.sum + @mkdir -p $(@D) + cd $(TOOLS_MOD_DIR) && \ + $(GO) build -o $@ github.com/golangci/golangci-lint/cmd/golangci-lint + +$(BIN)/goyacc: internal/tools/go.mod internal/tools/go.sum + @mkdir -p $(@D) + cd $(TOOLS_MOD_DIR) && \ + $(GO) build -o $@ golang.org/x/tools/cmd/goyacc + +internal/testdata/protoc/cache/protoc-$(PROTOC_VERSION).zip: + @mkdir -p $(@D) + curl -o $@ -fsSL https://github.com/protocolbuffers/protobuf/releases/download/v$(PROTOC_VERSION)/protoc-$(PROTOC_VERSION)-$(PROTOC_OS)-$(PROTOC_ARCH).zip + +$(PROTOC): internal/testdata/protoc/cache/protoc-$(PROTOC_VERSION).zip + @mkdir -p $(@D) + unzip -o -q $< -d $(PROTOC_DIR) && \ + touch $@ + +internal/testdata/all.protoset: $(PROTOC) $(sort $(wildcard internal/testdata/*.proto)) + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) --include_imports -I. $(filter-out protoc,$(^F)) + +internal/testdata/desc_test_complex.protoset: $(PROTOC) internal/testdata/desc_test_complex.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) --include_imports -I. $(filter-out protoc,$(^F)) + +internal/testdata/desc_test_defaults.protoset: $(PROTOC) internal/testdata/desc_test_defaults.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) --include_imports -I. $(filter-out protoc,$(^F)) + +internal/testdata/desc_test_proto3_optional.protoset: $(PROTOC) internal/testdata/desc_test_proto3_optional.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) --include_imports -I. $(filter-out protoc,$(^F)) + +internal/testdata/descriptor_impl_tests.protoset: $(PROTOC) internal/testdata/desc_test2.proto internal/testdata/desc_test_defaults.proto internal/testdata/desc_test_proto3.proto internal/testdata/desc_test_proto3_optional.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) --include_imports -I. $(filter-out protoc,$(^F)) + +internal/testdata/source_info.protoset: $(PROTOC) internal/testdata/desc_test_options.proto internal/testdata/desc_test_comments.proto internal/testdata/desc_test_complex.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) --include_source_info -I. $(filter-out protoc,$(^F)) + +internal/testdata/options/test.protoset: $(PROTOC) internal/testdata/options/test.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) -I. $(filter-out protoc,$(^F)) + +internal/testdata/options/test_proto3.protoset: $(PROTOC) internal/testdata/options/test_proto3.proto + cd $(@D) && $(PROTOC) --descriptor_set_out=$(@F) -I. $(filter-out protoc,$(^F)) + +.PHONY: test-descriptors +test-descriptors: internal/testdata/all.protoset +test-descriptors: internal/testdata/desc_test_complex.protoset +test-descriptors: internal/testdata/desc_test_defaults.protoset +test-descriptors: internal/testdata/desc_test_proto3_optional.protoset +test-descriptors: internal/testdata/descriptor_impl_tests.protoset +test-descriptors: internal/testdata/source_info.protoset +test-descriptors: internal/testdata/options/test.protoset +test-descriptors: internal/testdata/options/test_proto3.protoset diff --git a/vendor/github.com/bufbuild/protocompile/README.md b/vendor/github.com/bufbuild/protocompile/README.md new file mode 100644 index 0000000..9d87333 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/README.md @@ -0,0 +1,91 @@ +![The Buf logo](./.github/buf-logo.svg) + +# Protocompile + +[![Build](https://github.com/bufbuild/protocompile/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/bufbuild/protocompile/actions/workflows/ci.yaml) +[![Report Card](https://goreportcard.com/badge/github.com/bufbuild/protocompile)](https://goreportcard.com/report/github.com/bufbuild/protocompile) +[![GoDoc](https://pkg.go.dev/badge/github.com/bufbuild/protocompile.svg)](https://pkg.go.dev/github.com/bufbuild/protocompile) + +This repo contains a parsing/linking engine for Protocol Buffers, written in pure Go. It is suitable as an alternative +to `protoc` (Google's official reference compiler for Protocol Buffers). This is the compiler that powers [Buf](https://buf.build) +and its bevy of tools. + +This repo is also the spiritual successor to the [`github.com/jhump/protoreflect/desc/protoparse`](https://godoc.org/github.com/jhump/protoreflect/desc/protoparse) +package. If you are looking for a newer version of `protoparse` that natively works with the newer Protobuf runtime +API for Go (`google.golang.org/protobuf`), you have found it! + +## Protocol Buffers + +If you've come across this repo but don't know what Protocol Buffers are, you might acquaint yourself with the [official +documentation](https://developers.google.com/protocol-buffers). Protocol Buffers, or Protobuf for short, is an IDL for +describing APIs and data structures and also a binary encoding format for efficiently transmitting and storing that +data. + +If you want to know more about the language itself, which is what this repo implements, take a look at Buf's +[Protobuf Guide](https://protobuf.com), which includes a very detailed language specification. + +### Descriptors + +Descriptors are the "lingua franca" for describing Protobuf data schemas. They are the basis of runtime features like +reflection and dynamic messages. They are also the output of a Protobuf compiler: a compiler can produce them and write +them to a file (whose contents are the binary-encoded form of a [`FileDescriptorSet`](https://github.com/protocolbuffers/protobuf/blob/v21.7/src/google/protobuf/descriptor.proto#L55-L59)) +or send them to a [plugin](https://docs.buf.build/reference/images#plugins) to generate code for a particular +programming language. + +Descriptors are similar to nodes in a syntax tree: the contents of a file descriptor correspond closely to the elements +in the source file from which it was generated. Also, the descriptor model's data structures are themselves defined in +[Protobuf](https://github.com/protocolbuffers/protobuf/blob/v21.7/src/google/protobuf/descriptor.proto). + +## Using This Repo + +The primary API of this repo is in this root package: `github.com/bufbuild/protocompile`. This is the suggested entry +point and provides a type named `Compiler`, for compiling Protobuf source files into descriptors. There are also +numerous sub-packages, most of which implement various stages of the compiler. Here's an overview (_not_ in alphabetical +order): + + * [`protocompile`](https://pkg.go.dev/github.com/bufbuild/protocompile): + This is the entry point, used to configure and initiate a compilation operation. + * [`parser`](https://pkg.go.dev/github.com/bufbuild/protocompile/parser): + This is the first stage of the compiler. It parses Protobuf source code and produces an AST. This package can also + generate a file descriptor proto from an AST. + * [`ast`](https://pkg.go.dev/github.com/bufbuild/protocompile/ast): + This package models an Abstract Syntax Tree (AST) for the Protobuf language. + * [`linker`](https://pkg.go.dev/github.com/bufbuild/protocompile/linker): + This is the second stage of the compiler. The descriptor proto (generated from an AST) is linked, producing a more + useful data structure than simple descriptor protos. This step also performs numerous validations on the source, + like making sure that all type references are correct and that sources don't try to define two elements with the same + name. + * [`options`](https://pkg.go.dev/github.com/bufbuild/protocompile/options): + This is the next stage of the compiler: interpreting options. The linked data structures that come from the previous + stage are used to validate and interpret all options. + * [`sourceinfo`](https://pkg.go.dev/github.com/bufbuild/protocompile/sourceinfo): + This is the last stage of the compiler: generating source code info. Source code info contains metadata that maps + elements in the descriptor to the location in the original source file from which it came. This includes access to + comments. In order to provide correct source info for options, it must happen last, after options have been + interpreted. + * [`reporter`](https://pkg.go.dev/github.com/bufbuild/protocompile/reporter): This package provides error types + generated by the compiler and interfaces used by the compiler to report errors and warnings to the calling code. + * [`walk`](https://pkg.go.dev/github.com/bufbuild/protocompile/walk): + This package provides functions for walking through all of the elements in a descriptor (or descriptor proto) + hierarchy. + * [`protoutil`](https://pkg.go.dev/github.com/bufbuild/protocompile/protoutil): + This package contains some other useful functions for interacting with Protobuf descriptors. + +### Migrating from `protoparse` + +There are a few differences between this repo and its predecessor, `github.com/jhump/protoreflect/desc/protoparse`. + +* If you want to include "standard imports", for the well-known files that are included with `protoc`, you have to do + so explicitly. To do this, wrap your resolver using `protocompile.WithStandardImports`. +* If you used `protoparse.FileContentsFromMap`, in this new repo you'll use a `protocompile.SourceResolver` and then use + `protocompile.SourceAccessorFromMap` as its accessor function. +* If you used `Parser.ParseToAST`, you won't use the `protocompile` package but instead directly use `parser.Parse` in + this repo's `parser` sub-package. This returns an AST for the given file contents. +* If you used `Parser.ParseFilesButDoNotLink`, that is still possible in this repo, but not provided directly via a + single function. Instead, you need to take a few steps: + 1. Parse the source using `parser.Parse`. Then use `parser.ResultFromAST` to construct a result that contains a file + descriptor proto. + 2. Interpret whatever options can be interpreted without linking using `options.InterpretUnlinkedOptions`. This may + leave some options in the descriptor proto uninterpreted (including all custom options). + 3. If you want source code info for the file, finally call `sourceinfo.GenerateSourceInfo` using the index returned + from the previous step and store that in the file descriptor proto. diff --git a/vendor/github.com/bufbuild/protocompile/ast/doc.go b/vendor/github.com/bufbuild/protocompile/ast/doc.go new file mode 100644 index 0000000..fac65c4 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/doc.go @@ -0,0 +1,75 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast defines types for modeling the AST (Abstract Syntax +// Tree) for the Protocol Buffers interface definition language. +// +// # Nodes +// +// All nodes of the tree implement the [Node] interface. Leaf nodes in the +// tree implement [TerminalNode], and all others implement [CompositeNode]. +// The root of the tree for a proto source file is a *[FileNode]. +// +// A [TerminalNode] represents a single lexical element, or [Token]. A +// [CompositeNode] represents a sub-tree of the AST and range of tokens. +// +// Position information is tracked using a *[FileInfo]. The lexer invokes its +// various Add* methods to add details as the file is tokenized. Storing +// the position information in the *[FileInfo], instead of in each AST node, +// allows the AST to have a much more compact representation. To extract +// detailed position information, you must use the NodeInfo method, available +// on either the *[FileInfo] which produced the node's items or the *[FileNode] +// root of the tree that contains the node. +// +// # Items, Tokens, and Comments +// +// An [Item] represents a lexical item, excluding whitespace. This can be +// either a [Token] or a [Comment]. +// +// Comments are not represented as nodes in the tree. Instead, they are +// attributed to terminal nodes in the tree. So, when lexing, comments +// are accumulated until the next non-comment token is found. The AST +// model in this package thus provides access to all comments in the +// file, regardless of location (unlike the SourceCodeInfo present in +// descriptor protos, which is lossy). The comments associated with a +// non-leaf/non-token node (i.e. a CompositeNode) come from the first +// and last nodes in its sub-tree, for leading and trailing comments +// respectively. +// +// A [Comment] value corresponds to a line ("//") or block ("/*") style +// comment in the source. These have no bearing on the grammar and are +// effectively ignored as the parser is determining the shape of the +// syntax tree. +// +// A [Token] value corresponds to a component of the grammar, that is +// used to produce an AST. They correspond to leaves in the AST (i.e. +// [TerminalNode]). +// +// The *[FileInfo] and *[FileNode] types provide methods for querying +// and iterating through all the items or tokens in the file. They also +// include a method for resolving an [Item] into a [Token] or [Comment]. +// +// # Factory Functions +// +// Creation of AST nodes should use the factory functions in this +// package instead of struct literals. Some factory functions accept +// optional arguments, which means the arguments can be nil. If nil +// values are provided for other (non-optional) arguments, the resulting +// node may be invalid and cause panics later in the program. +// +// This package defines numerous interfaces. However, user code should +// not attempt to implement any of them. Most consumers of an AST will +// not work correctly if they encounter concrete implementations other +// than the ones defined in this package. +package ast diff --git a/vendor/github.com/bufbuild/protocompile/ast/enum.go b/vendor/github.com/bufbuild/protocompile/ast/enum.go new file mode 100644 index 0000000..93edbcb --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/enum.go @@ -0,0 +1,165 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// EnumNode represents an enum declaration. Example: +// +// enum Foo { BAR = 0; BAZ = 1 } +type EnumNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + OpenBrace *RuneNode + Decls []EnumElement + CloseBrace *RuneNode +} + +func (*EnumNode) fileElement() {} +func (*EnumNode) msgElement() {} + +// NewEnumNode creates a new *EnumNode. All arguments must be non-nil. While +// it is technically allowed for decls to be nil or empty, the resulting node +// will not be a valid enum, which must have at least one value. +// - keyword: The token corresponding to the "enum" keyword. +// - name: The token corresponding to the enum's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the enum body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewEnumNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []EnumElement, closeBrace *RuneNode) *EnumNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + switch decl.(type) { + case *OptionNode, *EnumValueNode, *ReservedNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid EnumElement type: %T", decl)) + } + children = append(children, decl) + } + children = append(children, closeBrace) + + return &EnumNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + OpenBrace: openBrace, + CloseBrace: closeBrace, + Decls: decls, + } +} + +// EnumElement is an interface implemented by all AST nodes that can +// appear in the body of an enum declaration. +type EnumElement interface { + Node + enumElement() +} + +var _ EnumElement = (*OptionNode)(nil) +var _ EnumElement = (*EnumValueNode)(nil) +var _ EnumElement = (*ReservedNode)(nil) +var _ EnumElement = (*EmptyDeclNode)(nil) + +// EnumValueDeclNode is a placeholder interface for AST nodes that represent +// enum values. This allows NoSourceNode to be used in place of *EnumValueNode +// for some usages. +type EnumValueDeclNode interface { + Node + GetName() Node + GetNumber() Node +} + +var _ EnumValueDeclNode = (*EnumValueNode)(nil) +var _ EnumValueDeclNode = NoSourceNode{} + +// EnumNode represents an enum declaration. Example: +// +// UNSET = 0 [deprecated = true]; +type EnumValueNode struct { + compositeNode + Name *IdentNode + Equals *RuneNode + Number IntValueNode + Options *CompactOptionsNode + Semicolon *RuneNode +} + +func (*EnumValueNode) enumElement() {} + +// NewEnumValueNode creates a new *EnumValueNode. All arguments must be non-nil +// except opts which is only non-nil if the declaration included options. +// - name: The token corresponding to the enum value's name. +// - equals: The token corresponding to the '=' rune after the name. +// - number: The token corresponding to the enum value's number. +// - opts: Optional set of enum value options. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewEnumValueNode(name *IdentNode, equals *RuneNode, number IntValueNode, opts *CompactOptionsNode, semicolon *RuneNode) *EnumValueNode { + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if number == nil { + panic("number is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 4 + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, name, equals, number) + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + return &EnumValueNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + Equals: equals, + Number: number, + Options: opts, + Semicolon: semicolon, + } +} + +func (e *EnumValueNode) GetName() Node { + return e.Name +} + +func (e *EnumValueNode) GetNumber() Node { + return e.Number +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/field.go b/vendor/github.com/bufbuild/protocompile/ast/field.go new file mode 100644 index 0000000..d4d3e39 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/field.go @@ -0,0 +1,672 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// FieldDeclNode is a node in the AST that defines a field. This includes +// normal message fields as well as extensions. There are multiple types +// of AST nodes that declare fields: +// - *FieldNode +// - *GroupNode +// - *MapFieldNode +// - *SyntheticMapField +// +// This also allows NoSourceNode and SyntheticMapField to be used in place of +// one of the above for some usages. +type FieldDeclNode interface { + Node + FieldLabel() Node + FieldName() Node + FieldType() Node + FieldTag() Node + FieldExtendee() Node + GetGroupKeyword() Node + GetOptions() *CompactOptionsNode +} + +var _ FieldDeclNode = (*FieldNode)(nil) +var _ FieldDeclNode = (*GroupNode)(nil) +var _ FieldDeclNode = (*MapFieldNode)(nil) +var _ FieldDeclNode = (*SyntheticMapField)(nil) +var _ FieldDeclNode = NoSourceNode{} + +// FieldNode represents a normal field declaration (not groups or maps). It +// can represent extension fields as well as non-extension fields (both inside +// of messages and inside of one-ofs). Example: +// +// optional string foo = 1; +type FieldNode struct { + compositeNode + Label FieldLabel + FldType IdentValueNode + Name *IdentNode + Equals *RuneNode + Tag *UintLiteralNode + Options *CompactOptionsNode + Semicolon *RuneNode + + // This is an up-link to the containing *ExtendNode for fields + // that are defined inside of "extend" blocks. + Extendee *ExtendNode +} + +func (*FieldNode) msgElement() {} +func (*FieldNode) oneOfElement() {} +func (*FieldNode) extendElement() {} + +// NewFieldNode creates a new *FieldNode. The label and options arguments may be +// nil but the others must be non-nil. +// - label: The token corresponding to the label keyword if present ("optional", +// "required", or "repeated"). +// - fieldType: The token corresponding to the field's type. +// - name: The token corresponding to the field's name. +// - equals: The token corresponding to the '=' rune after the name. +// - tag: The token corresponding to the field's tag number. +// - opts: Optional set of field options. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewFieldNode(label *KeywordNode, fieldType IdentValueNode, name *IdentNode, equals *RuneNode, tag *UintLiteralNode, opts *CompactOptionsNode, semicolon *RuneNode) *FieldNode { + if fieldType == nil { + panic("fieldType is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if tag == nil { + panic("tag is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 5 + if label != nil { + numChildren++ + } + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + if label != nil { + children = append(children, label) + } + children = append(children, fieldType, name, equals, tag) + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + + return &FieldNode{ + compositeNode: compositeNode{ + children: children, + }, + Label: newFieldLabel(label), + FldType: fieldType, + Name: name, + Equals: equals, + Tag: tag, + Options: opts, + Semicolon: semicolon, + } +} + +func (n *FieldNode) FieldLabel() Node { + // proto3 fields and fields inside one-ofs will not have a label and we need + // this check in order to return a nil node -- otherwise we'd return a + // non-nil node that has a nil pointer value in it :/ + if n.Label.KeywordNode == nil { + return nil + } + return n.Label.KeywordNode +} + +func (n *FieldNode) FieldName() Node { + return n.Name +} + +func (n *FieldNode) FieldType() Node { + return n.FldType +} + +func (n *FieldNode) FieldTag() Node { + return n.Tag +} + +func (n *FieldNode) FieldExtendee() Node { + if n.Extendee != nil { + return n.Extendee.Extendee + } + return nil +} + +func (n *FieldNode) GetGroupKeyword() Node { + return nil +} + +func (n *FieldNode) GetOptions() *CompactOptionsNode { + return n.Options +} + +// FieldLabel represents the label of a field, which indicates its cardinality +// (i.e. whether it is optional, required, or repeated). +type FieldLabel struct { + *KeywordNode + Repeated bool + Required bool +} + +func newFieldLabel(lbl *KeywordNode) FieldLabel { + repeated, required := false, false + if lbl != nil { + repeated = lbl.Val == "repeated" + required = lbl.Val == "required" + } + return FieldLabel{ + KeywordNode: lbl, + Repeated: repeated, + Required: required, + } +} + +// IsPresent returns true if a label keyword was present in the declaration +// and false if it was absent. +func (f *FieldLabel) IsPresent() bool { + return f.KeywordNode != nil +} + +// GroupNode represents a group declaration, which doubles as a field and inline +// message declaration. It can represent extension fields as well as +// non-extension fields (both inside of messages and inside of one-ofs). +// Example: +// +// optional group Key = 4 { +// optional uint64 id = 1; +// optional string name = 2; +// } +type GroupNode struct { + compositeNode + Label FieldLabel + Keyword *KeywordNode + Name *IdentNode + Equals *RuneNode + Tag *UintLiteralNode + Options *CompactOptionsNode + MessageBody + + // This is an up-link to the containing *ExtendNode for groups + // that are defined inside of "extend" blocks. + Extendee *ExtendNode +} + +func (*GroupNode) msgElement() {} +func (*GroupNode) oneOfElement() {} +func (*GroupNode) extendElement() {} + +// NewGroupNode creates a new *GroupNode. The label and options arguments may be +// nil but the others must be non-nil. +// - label: The token corresponding to the label keyword if present ("optional", +// "required", or "repeated"). +// - keyword: The token corresponding to the "group" keyword. +// - name: The token corresponding to the field's name. +// - equals: The token corresponding to the '=' rune after the name. +// - tag: The token corresponding to the field's tag number. +// - opts: Optional set of field options. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the group body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewGroupNode(label *KeywordNode, keyword *KeywordNode, name *IdentNode, equals *RuneNode, tag *UintLiteralNode, opts *CompactOptionsNode, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode) *GroupNode { + if keyword == nil { + panic("fieldType is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if tag == nil { + panic("tag is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + numChildren := 6 + len(decls) + if label != nil { + numChildren++ + } + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + if label != nil { + children = append(children, label) + } + children = append(children, keyword, name, equals, tag) + if opts != nil { + children = append(children, opts) + } + children = append(children, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + ret := &GroupNode{ + compositeNode: compositeNode{ + children: children, + }, + Label: newFieldLabel(label), + Keyword: keyword, + Name: name, + Equals: equals, + Tag: tag, + Options: opts, + } + populateMessageBody(&ret.MessageBody, openBrace, decls, closeBrace) + return ret +} + +func (n *GroupNode) FieldLabel() Node { + if n.Label.KeywordNode == nil { + // return nil interface to indicate absence, not a typed nil + return nil + } + return n.Label.KeywordNode +} + +func (n *GroupNode) FieldName() Node { + return n.Name +} + +func (n *GroupNode) FieldType() Node { + return n.Keyword +} + +func (n *GroupNode) FieldTag() Node { + return n.Tag +} + +func (n *GroupNode) FieldExtendee() Node { + if n.Extendee != nil { + return n.Extendee.Extendee + } + return nil +} + +func (n *GroupNode) GetGroupKeyword() Node { + return n.Keyword +} + +func (n *GroupNode) GetOptions() *CompactOptionsNode { + return n.Options +} + +func (n *GroupNode) MessageName() Node { + return n.Name +} + +// OneOfDeclNode is a node in the AST that defines a oneof. There are +// multiple types of AST nodes that declare oneofs: +// - *OneOfNode +// - *SyntheticOneOf +// +// This also allows NoSourceNode to be used in place of one of the above +// for some usages. +type OneOfDeclNode interface { + Node + OneOfName() Node +} + +// OneOfNode represents a one-of declaration. Example: +// +// oneof query { +// string by_name = 2; +// Type by_type = 3; +// Address by_address = 4; +// Labels by_label = 5; +// } +type OneOfNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + OpenBrace *RuneNode + Decls []OneOfElement + CloseBrace *RuneNode +} + +func (*OneOfNode) msgElement() {} + +// NewOneOfNode creates a new *OneOfNode. All arguments must be non-nil. While +// it is technically allowed for decls to be nil or empty, the resulting node +// will not be a valid oneof, which must have at least one field. +// - keyword: The token corresponding to the "oneof" keyword. +// - name: The token corresponding to the oneof's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the oneof body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewOneOfNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []OneOfElement, closeBrace *RuneNode) *OneOfNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + for _, decl := range decls { + switch decl := decl.(type) { + case *OptionNode, *FieldNode, *GroupNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid OneOfElement type: %T", decl)) + } + } + + return &OneOfNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } +} + +func (n *OneOfNode) OneOfName() Node { + return n.Name +} + +// OneOfElement is an interface implemented by all AST nodes that can +// appear in the body of a oneof declaration. +type OneOfElement interface { + Node + oneOfElement() +} + +var _ OneOfElement = (*OptionNode)(nil) +var _ OneOfElement = (*FieldNode)(nil) +var _ OneOfElement = (*GroupNode)(nil) +var _ OneOfElement = (*EmptyDeclNode)(nil) + +// SyntheticOneOf is not an actual node in the AST but a synthetic node +// that represents the oneof implied by a proto3 optional field. +type SyntheticOneOf struct { + Field *FieldNode +} + +var _ Node = (*SyntheticOneOf)(nil) + +// NewSyntheticOneOf creates a new *SyntheticOneOf that corresponds to the +// given proto3 optional field. +func NewSyntheticOneOf(field *FieldNode) *SyntheticOneOf { + return &SyntheticOneOf{Field: field} +} + +func (n *SyntheticOneOf) Start() Token { + return n.Field.Start() +} + +func (n *SyntheticOneOf) End() Token { + return n.Field.End() +} + +func (n *SyntheticOneOf) LeadingComments() []Comment { + return nil +} + +func (n *SyntheticOneOf) TrailingComments() []Comment { + return nil +} + +func (n *SyntheticOneOf) OneOfName() Node { + return n.Field.FieldName() +} + +// MapTypeNode represents the type declaration for a map field. It defines +// both the key and value types for the map. Example: +// +// map +type MapTypeNode struct { + compositeNode + Keyword *KeywordNode + OpenAngle *RuneNode + KeyType *IdentNode + Comma *RuneNode + ValueType IdentValueNode + CloseAngle *RuneNode +} + +// NewMapTypeNode creates a new *MapTypeNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "map" keyword. +// - openAngle: The token corresponding to the "<" rune after the keyword. +// - keyType: The token corresponding to the key type for the map. +// - comma: The token corresponding to the "," rune between key and value types. +// - valType: The token corresponding to the value type for the map. +// - closeAngle: The token corresponding to the ">" rune that ends the declaration. +func NewMapTypeNode(keyword *KeywordNode, openAngle *RuneNode, keyType *IdentNode, comma *RuneNode, valType IdentValueNode, closeAngle *RuneNode) *MapTypeNode { + if keyword == nil { + panic("keyword is nil") + } + if openAngle == nil { + panic("openAngle is nil") + } + if keyType == nil { + panic("keyType is nil") + } + if comma == nil { + panic("comma is nil") + } + if valType == nil { + panic("valType is nil") + } + if closeAngle == nil { + panic("closeAngle is nil") + } + children := []Node{keyword, openAngle, keyType, comma, valType, closeAngle} + return &MapTypeNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + OpenAngle: openAngle, + KeyType: keyType, + Comma: comma, + ValueType: valType, + CloseAngle: closeAngle, + } +} + +// MapFieldNode represents a map field declaration. Example: +// +// map replacements = 3 [deprecated = true]; +type MapFieldNode struct { + compositeNode + MapType *MapTypeNode + Name *IdentNode + Equals *RuneNode + Tag *UintLiteralNode + Options *CompactOptionsNode + Semicolon *RuneNode +} + +func (*MapFieldNode) msgElement() {} + +// NewMapFieldNode creates a new *MapFieldNode. All arguments must be non-nil +// except opts, which may be nil. +// - mapType: The token corresponding to the map type. +// - name: The token corresponding to the field's name. +// - equals: The token corresponding to the '=' rune after the name. +// - tag: The token corresponding to the field's tag number. +// - opts: Optional set of field options. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewMapFieldNode(mapType *MapTypeNode, name *IdentNode, equals *RuneNode, tag *UintLiteralNode, opts *CompactOptionsNode, semicolon *RuneNode) *MapFieldNode { + if mapType == nil { + panic("mapType is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if tag == nil { + panic("tag is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 5 + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, mapType, name, equals, tag) + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + + return &MapFieldNode{ + compositeNode: compositeNode{ + children: children, + }, + MapType: mapType, + Name: name, + Equals: equals, + Tag: tag, + Options: opts, + Semicolon: semicolon, + } +} + +func (n *MapFieldNode) FieldLabel() Node { + return nil +} + +func (n *MapFieldNode) FieldName() Node { + return n.Name +} + +func (n *MapFieldNode) FieldType() Node { + return n.MapType +} + +func (n *MapFieldNode) FieldTag() Node { + return n.Tag +} + +func (n *MapFieldNode) FieldExtendee() Node { + return nil +} + +func (n *MapFieldNode) GetGroupKeyword() Node { + return nil +} + +func (n *MapFieldNode) GetOptions() *CompactOptionsNode { + return n.Options +} + +func (n *MapFieldNode) MessageName() Node { + return n.Name +} + +func (n *MapFieldNode) KeyField() *SyntheticMapField { + return NewSyntheticMapField(n.MapType.KeyType, 1) +} + +func (n *MapFieldNode) ValueField() *SyntheticMapField { + return NewSyntheticMapField(n.MapType.ValueType, 2) +} + +// SyntheticMapField is not an actual node in the AST but a synthetic node +// that implements FieldDeclNode. These are used to represent the implicit +// field declarations of the "key" and "value" fields in a map entry. +type SyntheticMapField struct { + Ident IdentValueNode + Tag *UintLiteralNode +} + +// NewSyntheticMapField creates a new *SyntheticMapField for the given +// identifier (either a key or value type in a map declaration) and tag +// number (1 for key, 2 for value). +func NewSyntheticMapField(ident IdentValueNode, tagNum uint64) *SyntheticMapField { + tag := &UintLiteralNode{ + terminalNode: ident.Start().asTerminalNode(), + Val: tagNum, + } + return &SyntheticMapField{Ident: ident, Tag: tag} +} + +func (n *SyntheticMapField) Start() Token { + return n.Ident.Start() +} + +func (n *SyntheticMapField) End() Token { + return n.Ident.End() +} + +func (n *SyntheticMapField) LeadingComments() []Comment { + return nil +} + +func (n *SyntheticMapField) TrailingComments() []Comment { + return nil +} + +func (n *SyntheticMapField) FieldLabel() Node { + return n.Ident +} + +func (n *SyntheticMapField) FieldName() Node { + return n.Ident +} + +func (n *SyntheticMapField) FieldType() Node { + return n.Ident +} + +func (n *SyntheticMapField) FieldTag() Node { + return n.Tag +} + +func (n *SyntheticMapField) FieldExtendee() Node { + return nil +} + +func (n *SyntheticMapField) GetGroupKeyword() Node { + return nil +} + +func (n *SyntheticMapField) GetOptions() *CompactOptionsNode { + return nil +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/file.go b/vendor/github.com/bufbuild/protocompile/ast/file.go new file mode 100644 index 0000000..f12cca0 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/file.go @@ -0,0 +1,277 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// FileDeclNode is a placeholder interface for AST nodes that represent files. +// This allows NoSourceNode to be used in place of *FileNode for some usages. +type FileDeclNode interface { + Node + Name() string + GetSyntax() Node + NodeInfo(n Node) NodeInfo +} + +var _ FileDeclNode = (*FileNode)(nil) +var _ FileDeclNode = NoSourceNode{} + +// FileNode is the root of the AST hierarchy. It represents an entire +// protobuf source file. +type FileNode struct { + compositeNode + fileInfo *FileInfo + + Syntax *SyntaxNode // nil if file has no syntax declaration + Decls []FileElement + + // This synthetic node allows access to final comments and whitespace + EOF *RuneNode +} + +// NewFileNode creates a new *FileNode. The syntax parameter is optional. If it +// is absent, it means the file had no syntax declaration. +// +// This function panics if the concrete type of any element of decls is not +// from this package. +func NewFileNode(info *FileInfo, syntax *SyntaxNode, decls []FileElement, eof Token) *FileNode { + numChildren := len(decls) + 1 + if syntax != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + if syntax != nil { + children = append(children, syntax) + } + for _, decl := range decls { + switch decl := decl.(type) { + case *PackageNode, *ImportNode, *OptionNode, *MessageNode, + *EnumNode, *ExtendNode, *ServiceNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid FileElement type: %T", decl)) + } + children = append(children, decl) + } + + eofNode := NewRuneNode(0, eof) + children = append(children, eofNode) + + return &FileNode{ + compositeNode: compositeNode{ + children: children, + }, + fileInfo: info, + Syntax: syntax, + Decls: decls, + EOF: eofNode, + } +} + +// NewEmptyFileNode returns an empty AST for a file with the given name. +func NewEmptyFileNode(filename string) *FileNode { + fileInfo := NewFileInfo(filename, []byte{}) + return NewFileNode(fileInfo, nil, nil, fileInfo.AddToken(0, 0)) +} + +func (f *FileNode) GetSyntax() Node { + return f.Syntax +} + +func (f *FileNode) Name() string { + return f.fileInfo.Name() +} + +func (f *FileNode) NodeInfo(n Node) NodeInfo { + return f.fileInfo.NodeInfo(n) +} + +func (f *FileNode) TokenInfo(t Token) NodeInfo { + return f.fileInfo.TokenInfo(t) +} + +func (f *FileNode) ItemInfo(i Item) ItemInfo { + return f.fileInfo.ItemInfo(i) +} + +func (f *FileNode) GetItem(i Item) (Token, Comment) { + return f.fileInfo.GetItem(i) +} + +func (f *FileNode) Items() Sequence[Item] { + return f.fileInfo.Items() +} + +func (f *FileNode) Tokens() Sequence[Token] { + return f.fileInfo.Tokens() +} + +// FileElement is an interface implemented by all AST nodes that are +// allowed as top-level declarations in the file. +type FileElement interface { + Node + fileElement() +} + +var _ FileElement = (*ImportNode)(nil) +var _ FileElement = (*PackageNode)(nil) +var _ FileElement = (*OptionNode)(nil) +var _ FileElement = (*MessageNode)(nil) +var _ FileElement = (*EnumNode)(nil) +var _ FileElement = (*ExtendNode)(nil) +var _ FileElement = (*ServiceNode)(nil) +var _ FileElement = (*EmptyDeclNode)(nil) + +// SyntaxNode represents a syntax declaration, which if present must be +// the first non-comment content. Example: +// +// syntax = "proto2"; +// +// Files that don't have a syntax node are assumed to use proto2 syntax. +type SyntaxNode struct { + compositeNode + Keyword *KeywordNode + Equals *RuneNode + Syntax StringValueNode + Semicolon *RuneNode +} + +// NewSyntaxNode creates a new *SyntaxNode. All four arguments must be non-nil: +// - keyword: The token corresponding to the "syntax" keyword. +// - equals: The token corresponding to the "=" rune. +// - syntax: The actual syntax value, e.g. "proto2" or "proto3". +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewSyntaxNode(keyword *KeywordNode, equals *RuneNode, syntax StringValueNode, semicolon *RuneNode) *SyntaxNode { + if keyword == nil { + panic("keyword is nil") + } + if equals == nil { + panic("equals is nil") + } + if syntax == nil { + panic("syntax is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, equals, syntax, semicolon} + return &SyntaxNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Equals: equals, + Syntax: syntax, + Semicolon: semicolon, + } +} + +// ImportNode represents an import statement. Example: +// +// import "google/protobuf/empty.proto"; +type ImportNode struct { + compositeNode + Keyword *KeywordNode + // Optional; if present indicates this is a public import + Public *KeywordNode + // Optional; if present indicates this is a weak import + Weak *KeywordNode + Name StringValueNode + Semicolon *RuneNode +} + +// NewImportNode creates a new *ImportNode. The public and weak arguments are optional +// and only one or the other (or neither) may be specified, not both. When public is +// non-nil, it indicates the "public" keyword in the import statement and means this is +// a public import. When weak is non-nil, it indicates the "weak" keyword in the import +// statement and means this is a weak import. When both are nil, this is a normal import. +// The other arguments must be non-nil: +// - keyword: The token corresponding to the "import" keyword. +// - public: The token corresponding to the optional "public" keyword. +// - weak: The token corresponding to the optional "weak" keyword. +// - name: The actual imported file name. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewImportNode(keyword *KeywordNode, public *KeywordNode, weak *KeywordNode, name StringValueNode, semicolon *RuneNode) *ImportNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 3 + if public != nil || weak != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, keyword) + if public != nil { + children = append(children, public) + } else if weak != nil { + children = append(children, weak) + } + children = append(children, name, semicolon) + + return &ImportNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Public: public, + Weak: weak, + Name: name, + Semicolon: semicolon, + } +} + +func (*ImportNode) fileElement() {} + +// PackageNode represents a package declaration. Example: +// +// package foobar.com; +type PackageNode struct { + compositeNode + Keyword *KeywordNode + Name IdentValueNode + Semicolon *RuneNode +} + +func (*PackageNode) fileElement() {} + +// NewPackageNode creates a new *PackageNode. All three arguments must be non-nil: +// - keyword: The token corresponding to the "package" keyword. +// - name: The package name declared for the file. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewPackageNode(keyword *KeywordNode, name IdentValueNode, semicolon *RuneNode) *PackageNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, name, semicolon} + return &PackageNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Semicolon: semicolon, + } +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/file_info.go b/vendor/github.com/bufbuild/protocompile/ast/file_info.go new file mode 100644 index 0000000..1de9345 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/file_info.go @@ -0,0 +1,676 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import ( + "fmt" + "sort" + "unicode/utf8" +) + +// FileInfo contains information about the contents of a source file, including +// details about comments and items. A lexer accumulates these details as it +// scans the file contents. This allows efficient representation of things like +// source positions. +type FileInfo struct { + // The name of the source file. + name string + // The raw contents of the source file. + data []byte + // The offsets for each line in the file. The value is the zero-based byte + // offset for a given line. The line is given by its index. So the value at + // index 0 is the offset for the first line (which is always zero). The + // value at index 1 is the offset at which the second line begins. Etc. + lines []int + // The info for every comment in the file. This is empty if the file has no + // comments. The first entry corresponds to the first comment in the file, + // and so on. + comments []commentInfo + // The info for every lexed item in the file. The last item in the slice + // corresponds to the EOF, so every file (even an empty one) should have at + // least one entry. This includes all terminal symbols (tokens) in the AST + // as well as all comments. + items []itemSpan +} + +type commentInfo struct { + // the index of the item, in the file's items slice, that represents this + // comment + index int + // the index of the token to which this comment is attributed. + attributedToIndex int +} + +type itemSpan struct { + // the offset into the file of the first character of an item. + offset int + // the length of the item + length int +} + +// NewFileInfo creates a new instance for the given file. +func NewFileInfo(filename string, contents []byte) *FileInfo { + return &FileInfo{ + name: filename, + data: contents, + lines: []int{0}, + } +} + +func (f *FileInfo) Name() string { + return f.name +} + +// AddLine adds the offset representing the beginning of the "next" line in the file. +// The first line always starts at offset 0, the second line starts at offset-of-newline-char+1. +func (f *FileInfo) AddLine(offset int) { + if offset < 0 { + panic(fmt.Sprintf("invalid offset: %d must not be negative", offset)) + } + if offset > len(f.data) { + panic(fmt.Sprintf("invalid offset: %d is greater than file size %d", offset, len(f.data))) + } + + if len(f.lines) > 0 { + lastOffset := f.lines[len(f.lines)-1] + if offset <= lastOffset { + panic(fmt.Sprintf("invalid offset: %d is not greater than previously observed line offset %d", offset, lastOffset)) + } + } + + f.lines = append(f.lines, offset) +} + +// AddToken adds info about a token at the given location to this file. It +// returns a value that allows access to all of the token's details. +func (f *FileInfo) AddToken(offset, length int) Token { + if offset < 0 { + panic(fmt.Sprintf("invalid offset: %d must not be negative", offset)) + } + if length < 0 { + panic(fmt.Sprintf("invalid length: %d must not be negative", length)) + } + if offset+length > len(f.data) { + panic(fmt.Sprintf("invalid offset+length: %d is greater than file size %d", offset+length, len(f.data))) + } + + tokenID := len(f.items) + if len(f.items) > 0 { + lastToken := f.items[tokenID-1] + lastEnd := lastToken.offset + lastToken.length - 1 + if offset <= lastEnd { + panic(fmt.Sprintf("invalid offset: %d is not greater than previously observed token end %d", offset, lastEnd)) + } + } + + f.items = append(f.items, itemSpan{offset: offset, length: length}) + return Token(tokenID) +} + +// AddComment adds info about a comment to this file. Comments must first be +// added as items via f.AddToken(). The given comment argument is the Token +// from that step. The given attributedTo argument indicates another token in the +// file with which the comment is associated. If comment's offset is before that +// of attributedTo, then this is a leading comment. Otherwise, it is a trailing +// comment. +func (f *FileInfo) AddComment(comment, attributedTo Token) Comment { + if len(f.comments) > 0 { + lastComment := f.comments[len(f.comments)-1] + if int(comment) <= lastComment.index { + panic(fmt.Sprintf("invalid index: %d is not greater than previously observed comment index %d", comment, lastComment.index)) + } + if int(attributedTo) < lastComment.attributedToIndex { + panic(fmt.Sprintf("invalid attribution: %d is not greater than previously observed comment attribution index %d", attributedTo, lastComment.attributedToIndex)) + } + } + + f.comments = append(f.comments, commentInfo{index: int(comment), attributedToIndex: int(attributedTo)}) + return Comment{ + fileInfo: f, + index: len(f.comments) - 1, + } +} + +// NodeInfo returns details from the original source for the given AST node. +// +// If the given n is out of range, this returns an invalid NodeInfo (i.e. +// nodeInfo.IsValid() returns false). If the given n is not out of range but +// also from a different file than f, then the result is undefined. +func (f *FileInfo) NodeInfo(n Node) NodeInfo { + return f.nodeInfo(int(n.Start()), int(n.End())) +} + +// TokenInfo returns details from the original source for the given token. +// +// If the given t is out of range, this returns an invalid NodeInfo (i.e. +// nodeInfo.IsValid() returns false). If the given t is not out of range but +// also from a different file than f, then the result is undefined. +func (f *FileInfo) TokenInfo(t Token) NodeInfo { + return f.nodeInfo(int(t), int(t)) +} + +func (f *FileInfo) nodeInfo(start, end int) NodeInfo { + if start < 0 || start >= len(f.items) { + return NodeInfo{} + } + if end < 0 || end >= len(f.items) { + return NodeInfo{} + } + return NodeInfo{fileInfo: f, startIndex: start, endIndex: end} +} + +// ItemInfo returns details from the original source for the given item. +// +// If the given i is out of range, this returns nil. If the given i is not +// out of range but also from a different file than f, then the result is +// undefined. +func (f *FileInfo) ItemInfo(i Item) ItemInfo { + tok, cmt := f.GetItem(i) + if tok != TokenError { + return f.TokenInfo(tok) + } + if cmt.IsValid() { + return cmt + } + return nil +} + +// GetItem returns the token or comment represented by the given item. Only one +// of the return values will be valid. If the item is a token then the returned +// comment will be a zero value and thus invalid (i.e. comment.IsValid() returns +// false). If the item is a comment then the returned token will be TokenError. +// +// If the given i is out of range, this returns (TokenError, Comment{}). If the +// given i is not out of range but also from a different file than f, then +// the result is undefined. +func (f *FileInfo) GetItem(i Item) (Token, Comment) { + if i < 0 || int(i) >= len(f.items) { + return TokenError, Comment{} + } + if !f.isComment(i) { + return Token(i), Comment{} + } + // It's a comment, so find its location in f.comments + c := sort.Search(len(f.comments), func(c int) bool { + return f.comments[c].index >= int(i) + }) + if c < len(f.comments) && f.comments[c].index == int(i) { + return TokenError, Comment{fileInfo: f, index: c} + } + // f.isComment(i) returned true, but we couldn't find it + // in f.comments? Uh oh... that shouldn't be possible. + return TokenError, Comment{} +} + +func (f *FileInfo) isDummyFile() bool { + return f == nil || f.lines == nil +} + +// Sequence represents a navigable sequence of elements. +type Sequence[T any] interface { + // First returns the first element in the sequence. The bool return + // is false if this sequence contains no elements. For example, an + // empty file has no items or tokens. + First() (T, bool) + // Next returns the next element in the sequence that comes after + // the given element. The bool returns is false if there is no next + // item (i.e. the given element is the last one). It also returns + // false if the given element is invalid. + Next(T) (T, bool) + // Last returns the last element in the sequence. The bool return + // is false if this sequence contains no elements. For example, an + // empty file has no items or tokens. + Last() (T, bool) + // Previous returns the previous element in the sequence that comes + // before the given element. The bool returns is false if there is no + // previous item (i.e. the given element is the first one). It also + // returns false if the given element is invalid. + Previous(T) (T, bool) +} + +func (f *FileInfo) Items() Sequence[Item] { + return items{fileInfo: f} +} + +func (f *FileInfo) Tokens() Sequence[Token] { + return tokens{fileInfo: f} +} + +type items struct { + fileInfo *FileInfo +} + +func (i items) First() (Item, bool) { + if len(i.fileInfo.items) == 0 { + return 0, false + } + return 0, true +} + +func (i items) Next(item Item) (Item, bool) { + if item < 0 || int(item) >= len(i.fileInfo.items)-1 { + return 0, false + } + return i.fileInfo.itemForward(item+1, true) +} + +func (i items) Last() (Item, bool) { + if len(i.fileInfo.items) == 0 { + return 0, false + } + return Item(len(i.fileInfo.items) - 1), true +} + +func (i items) Previous(item Item) (Item, bool) { + if item <= 0 || int(item) >= len(i.fileInfo.items) { + return 0, false + } + return i.fileInfo.itemBackward(item-1, true) +} + +type tokens struct { + fileInfo *FileInfo +} + +func (t tokens) First() (Token, bool) { + i, ok := t.fileInfo.itemForward(0, false) + return Token(i), ok +} + +func (t tokens) Next(tok Token) (Token, bool) { + if tok < 0 || int(tok) >= len(t.fileInfo.items)-1 { + return 0, false + } + i, ok := t.fileInfo.itemForward(Item(tok+1), false) + return Token(i), ok +} + +func (t tokens) Last() (Token, bool) { + i, ok := t.fileInfo.itemBackward(Item(len(t.fileInfo.items))-1, false) + return Token(i), ok +} + +func (t tokens) Previous(tok Token) (Token, bool) { + if tok <= 0 || int(tok) >= len(t.fileInfo.items) { + return 0, false + } + i, ok := t.fileInfo.itemBackward(Item(tok-1), false) + return Token(i), ok +} + +func (f *FileInfo) itemForward(i Item, allowComment bool) (Item, bool) { + end := Item(len(f.items)) + for i < end { + if allowComment || !f.isComment(i) { + return i, true + } + i++ + } + return 0, false +} + +func (f *FileInfo) itemBackward(i Item, allowComment bool) (Item, bool) { + for i >= 0 { + if allowComment || !f.isComment(i) { + return i, true + } + i-- + } + return 0, false +} + +// isComment is comment returns true if i refers to a comment. +// (If it returns false, i refers to a token.) +func (f *FileInfo) isComment(i Item) bool { + item := f.items[i] + if item.length < 2 { + return false + } + // see if item text starts with "//" or "/*" + if f.data[item.offset] != '/' { + return false + } + c := f.data[item.offset+1] + return c == '/' || c == '*' +} + +func (f *FileInfo) SourcePos(offset int) SourcePos { + lineNumber := sort.Search(len(f.lines), func(n int) bool { + return f.lines[n] > offset + }) + + // If it weren't for tabs and multi-byte unicode characters, we + // could trivially compute the column just based on offset and the + // starting offset of lineNumber :( + // Wish this were more efficient... that would require also storing + // computed line+column information, which would triple the size of + // f's items slice... + col := 0 + for i := f.lines[lineNumber-1]; i < offset; i++ { + if f.data[i] == '\t' { + nextTabStop := 8 - (col % 8) + col += nextTabStop + } else if utf8.RuneStart(f.data[i]) { + col++ + } + } + + return SourcePos{ + Filename: f.name, + Offset: offset, + Line: lineNumber, + // Columns are 1-indexed in this AST + Col: col + 1, + } +} + +// Token represents a single lexed token. +type Token int + +// TokenError indicates an invalid token. It is returned from query +// functions when no valid token satisfies the request. +const TokenError = Token(-1) + +// AsItem returns the Item that corresponds to t. +func (t Token) AsItem() Item { + return Item(t) +} + +func (t Token) asTerminalNode() terminalNode { + return terminalNode(t) +} + +// Item represents an item lexed from source. It represents either +// a Token or a Comment. +type Item int + +// ItemInfo provides details about an item's location in the source file and +// its contents. +type ItemInfo interface { + Start() SourcePos + End() SourcePos + LeadingWhitespace() string + RawText() string +} + +// NodeInfo represents the details for a node or token in the source file's AST. +// It provides access to information about the node's location in the source +// file. It also provides access to the original text in the source file (with +// all the original formatting intact) and also provides access to surrounding +// comments. +type NodeInfo struct { + fileInfo *FileInfo + startIndex, endIndex int +} + +var _ ItemInfo = NodeInfo{} + +// IsValid returns true if this node info is valid. If n is a zero-value struct, +// it is not valid. +func (n NodeInfo) IsValid() bool { + return n.fileInfo != nil +} + +// Start returns the starting position of the element. This is the first +// character of the node or token. +func (n NodeInfo) Start() SourcePos { + if n.fileInfo.isDummyFile() { + return UnknownPos(n.fileInfo.name) + } + + tok := n.fileInfo.items[n.startIndex] + return n.fileInfo.SourcePos(tok.offset) +} + +// End returns the ending position of the element, exclusive. This is the +// location after the last character of the node or token. If n returns +// the same position for Start() and End(), the element in source had a +// length of zero (which should only happen for the special EOF token +// that designates the end of the file). +func (n NodeInfo) End() SourcePos { + if n.fileInfo.isDummyFile() { + return UnknownPos(n.fileInfo.name) + } + + tok := n.fileInfo.items[n.endIndex] + // find offset of last character in the span + offset := tok.offset + if tok.length > 0 { + offset += tok.length - 1 + } + pos := n.fileInfo.SourcePos(offset) + if tok.length > 0 { + // We return "open range", so end is the position *after* the + // last character in the span. So we adjust + pos.Col++ + } + return pos +} + +// LeadingWhitespace returns any whitespace prior to the element. If there +// were comments in between this element and the previous one, this will +// return the whitespace between the last such comment in the element. If +// there were no such comments, this returns the whitespace between the +// previous element and the current one. +func (n NodeInfo) LeadingWhitespace() string { + if n.fileInfo.isDummyFile() { + return "" + } + + tok := n.fileInfo.items[n.startIndex] + var prevEnd int + if n.startIndex > 0 { + prevTok := n.fileInfo.items[n.startIndex-1] + prevEnd = prevTok.offset + prevTok.length + } + return string(n.fileInfo.data[prevEnd:tok.offset]) +} + +// LeadingComments returns all comments in the source that exist between the +// element and the previous element, except for any trailing comment on the +// previous element. +func (n NodeInfo) LeadingComments() Comments { + if n.fileInfo.isDummyFile() { + return EmptyComments + } + + start := sort.Search(len(n.fileInfo.comments), func(i int) bool { + return n.fileInfo.comments[i].attributedToIndex >= n.startIndex + }) + + if start == len(n.fileInfo.comments) || n.fileInfo.comments[start].attributedToIndex != n.startIndex { + // no comments associated with this token + return EmptyComments + } + + numComments := 0 + for i := start; i < len(n.fileInfo.comments); i++ { + comment := n.fileInfo.comments[i] + if comment.attributedToIndex == n.startIndex && + comment.index < n.startIndex { + numComments++ + } else { + break + } + } + + return Comments{ + fileInfo: n.fileInfo, + first: start, + num: numComments, + } +} + +// TrailingComments returns the trailing comment for the element, if any. +// An element will have a trailing comment only if it is the last token +// on a line and is followed by a comment on the same line. Typically, the +// following comment is a line-style comment (starting with "//"). +// +// If the following comment is a block-style comment that spans multiple +// lines, and the next token is on the same line as the end of the comment, +// the comment is NOT considered a trailing comment. +// +// Examples: +// +// foo // this is a trailing comment for foo +// +// bar /* this is a trailing comment for bar */ +// +// baz /* this is a trailing +// comment for baz */ +// +// fizz /* this is NOT a trailing +// comment for fizz because +// its on the same line as the +// following token buzz */ buzz +func (n NodeInfo) TrailingComments() Comments { + if n.fileInfo.isDummyFile() { + return EmptyComments + } + + start := sort.Search(len(n.fileInfo.comments), func(i int) bool { + comment := n.fileInfo.comments[i] + return comment.attributedToIndex >= n.endIndex && + comment.index > n.endIndex + }) + + if start == len(n.fileInfo.comments) || n.fileInfo.comments[start].attributedToIndex != n.endIndex { + // no comments associated with this token + return EmptyComments + } + + numComments := 0 + for i := start; i < len(n.fileInfo.comments); i++ { + comment := n.fileInfo.comments[i] + if comment.attributedToIndex == n.endIndex { + numComments++ + } else { + break + } + } + + return Comments{ + fileInfo: n.fileInfo, + first: start, + num: numComments, + } +} + +// RawText returns the actual text in the source file that corresponds to the +// element. If the element is a node in the AST that encompasses multiple +// items (like an entire declaration), the full text of all items is returned +// including any interior whitespace and comments. +func (n NodeInfo) RawText() string { + startTok := n.fileInfo.items[n.startIndex] + endTok := n.fileInfo.items[n.endIndex] + return string(n.fileInfo.data[startTok.offset : endTok.offset+endTok.length]) +} + +// SourcePos identifies a location in a proto source file. +type SourcePos struct { + Filename string + // The line and column numbers for this position. These are + // one-based, so the first line and column is 1 (not zero). If + // either is zero, then the line and column are unknown and + // only the file name is known. + Line, Col int + // The offset, in bytes, from the beginning of the file. This + // is zero-based: the first character in the file is offset zero. + Offset int +} + +func (pos SourcePos) String() string { + if pos.Line <= 0 || pos.Col <= 0 { + return pos.Filename + } + return fmt.Sprintf("%s:%d:%d", pos.Filename, pos.Line, pos.Col) +} + +// Comments represents a range of sequential comments in a source file +// (e.g. no interleaving items or AST nodes). +type Comments struct { + fileInfo *FileInfo + first, num int +} + +// EmptyComments is an empty set of comments. +var EmptyComments = Comments{} + +// Len returns the number of comments in c. +func (c Comments) Len() int { + return c.num +} + +func (c Comments) Index(i int) Comment { + if i < 0 || i >= c.num { + panic(fmt.Sprintf("index %d out of range (len = %d)", i, c.num)) + } + return Comment{ + fileInfo: c.fileInfo, + index: c.first + i, + } +} + +// Comment represents a single comment in a source file. It indicates +// the position of the comment and its contents. A single comment means +// one line-style comment ("//" to end of line) or one block comment +// ("/*" through "*/"). If a longer comment uses multiple line comments, +// each line is considered to be a separate comment. For example: +// +// // This is a single comment, and +// // this is a separate comment. +type Comment struct { + fileInfo *FileInfo + index int +} + +var _ ItemInfo = Comment{} + +// IsValid returns true if this comment is valid. If this comment is +// a zero-value struct, it is not valid. +func (c Comment) IsValid() bool { + return c.fileInfo != nil && c.index >= 0 +} + +// AsItem returns the Item that corresponds to c. +func (c Comment) AsItem() Item { + return Item(c.fileInfo.comments[c.index].index) +} + +func (c Comment) Start() SourcePos { + span := c.fileInfo.items[c.AsItem()] + return c.fileInfo.SourcePos(span.offset) +} + +func (c Comment) End() SourcePos { + span := c.fileInfo.items[c.AsItem()] + return c.fileInfo.SourcePos(span.offset + span.length - 1) +} + +func (c Comment) LeadingWhitespace() string { + item := c.AsItem() + span := c.fileInfo.items[item] + var prevEnd int + if item > 0 { + prevItem := c.fileInfo.items[item-1] + prevEnd = prevItem.offset + prevItem.length + } + return string(c.fileInfo.data[prevEnd:span.offset]) +} + +func (c Comment) RawText() string { + span := c.fileInfo.items[c.AsItem()] + return string(c.fileInfo.data[span.offset : span.offset+span.length]) +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/identifiers.go b/vendor/github.com/bufbuild/protocompile/ast/identifiers.go new file mode 100644 index 0000000..2759992 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/identifiers.go @@ -0,0 +1,148 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import ( + "fmt" + "strings" +) + +// Identifier is a possibly-qualified name. This is used to distinguish +// ValueNode values that are references/identifiers vs. those that are +// string literals. +type Identifier string + +// IdentValueNode is an AST node that represents an identifier. +type IdentValueNode interface { + ValueNode + AsIdentifier() Identifier +} + +var _ IdentValueNode = (*IdentNode)(nil) +var _ IdentValueNode = (*CompoundIdentNode)(nil) + +// IdentNode represents a simple, unqualified identifier. These are used to name +// elements declared in a protobuf file or to refer to elements. Example: +// +// foobar +type IdentNode struct { + terminalNode + Val string +} + +// NewIdentNode creates a new *IdentNode. The given val is the identifier text. +func NewIdentNode(val string, tok Token) *IdentNode { + return &IdentNode{ + terminalNode: tok.asTerminalNode(), + Val: val, + } +} + +func (n *IdentNode) Value() interface{} { + return n.AsIdentifier() +} + +func (n *IdentNode) AsIdentifier() Identifier { + return Identifier(n.Val) +} + +// ToKeyword is used to convert identifiers to keywords. Since keywords are not +// reserved in the protobuf language, they are initially lexed as identifiers +// and then converted to keywords based on context. +func (n *IdentNode) ToKeyword() *KeywordNode { + return (*KeywordNode)(n) +} + +// CompoundIdentNode represents a qualified identifier. A qualified identifier +// has at least one dot and possibly multiple identifier names (all separated by +// dots). If the identifier has a leading dot, then it is a *fully* qualified +// identifier. Example: +// +// .com.foobar.Baz +type CompoundIdentNode struct { + compositeNode + // Optional leading dot, indicating that the identifier is fully qualified. + LeadingDot *RuneNode + Components []*IdentNode + // Dots[0] is the dot after Components[0]. The length of Dots is always + // one less than the length of Components. + Dots []*RuneNode + // The text value of the identifier, with all components and dots + // concatenated. + Val string +} + +// NewCompoundIdentNode creates a *CompoundIdentNode. The leadingDot may be nil. +// The dots arg must have a length that is one less than the length of +// components. The components arg must not be empty. +func NewCompoundIdentNode(leadingDot *RuneNode, components []*IdentNode, dots []*RuneNode) *CompoundIdentNode { + if len(components) == 0 { + panic("must have at least one component") + } + if len(dots) != len(components)-1 { + panic(fmt.Sprintf("%d components requires %d dots, not %d", len(components), len(components)-1, len(dots))) + } + numChildren := len(components)*2 - 1 + if leadingDot != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + var b strings.Builder + if leadingDot != nil { + children = append(children, leadingDot) + b.WriteRune(leadingDot.Rune) + } + for i, comp := range components { + if i > 0 { + dot := dots[i-1] + children = append(children, dot) + b.WriteRune(dot.Rune) + } + children = append(children, comp) + b.WriteString(comp.Val) + } + return &CompoundIdentNode{ + compositeNode: compositeNode{ + children: children, + }, + LeadingDot: leadingDot, + Components: components, + Dots: dots, + Val: b.String(), + } +} + +func (n *CompoundIdentNode) Value() interface{} { + return n.AsIdentifier() +} + +func (n *CompoundIdentNode) AsIdentifier() Identifier { + return Identifier(n.Val) +} + +// KeywordNode is an AST node that represents a keyword. Keywords are +// like identifiers, but they have special meaning in particular contexts. +// Example: +// +// message +type KeywordNode IdentNode + +// NewKeywordNode creates a new *KeywordNode. The given val is the keyword. +func NewKeywordNode(val string, tok Token) *KeywordNode { + return &KeywordNode{ + terminalNode: tok.asTerminalNode(), + Val: val, + } +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/message.go b/vendor/github.com/bufbuild/protocompile/ast/message.go new file mode 100644 index 0000000..00dfe45 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/message.go @@ -0,0 +1,213 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// MessageDeclNode is a node in the AST that defines a message type. This +// includes normal message fields as well as implicit messages: +// - *MessageNode +// - *GroupNode (the group is a field and inline message type) +// - *MapFieldNode (map fields implicitly define a MapEntry message type) +// +// This also allows NoSourceNode to be used in place of one of the above +// for some usages. +type MessageDeclNode interface { + Node + MessageName() Node +} + +var _ MessageDeclNode = (*MessageNode)(nil) +var _ MessageDeclNode = (*GroupNode)(nil) +var _ MessageDeclNode = (*MapFieldNode)(nil) +var _ MessageDeclNode = NoSourceNode{} + +// MessageNode represents a message declaration. Example: +// +// message Foo { +// string name = 1; +// repeated string labels = 2; +// bytes extra = 3; +// } +type MessageNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + MessageBody +} + +func (*MessageNode) fileElement() {} +func (*MessageNode) msgElement() {} + +// NewMessageNode creates a new *MessageNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "message" keyword. +// - name: The token corresponding to the field's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the message body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewMessageNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode) *MessageNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + ret := &MessageNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + } + populateMessageBody(&ret.MessageBody, openBrace, decls, closeBrace) + return ret +} + +func (n *MessageNode) MessageName() Node { + return n.Name +} + +// MessageBody represents the body of a message. It is used by both +// MessageNodes and GroupNodes. +type MessageBody struct { + OpenBrace *RuneNode + Decls []MessageElement + CloseBrace *RuneNode +} + +func populateMessageBody(m *MessageBody, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode) { + m.OpenBrace = openBrace + m.Decls = decls + for _, decl := range decls { + switch decl.(type) { + case *OptionNode, *FieldNode, *MapFieldNode, *GroupNode, *OneOfNode, + *MessageNode, *EnumNode, *ExtendNode, *ExtensionRangeNode, + *ReservedNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid MessageElement type: %T", decl)) + } + } + m.CloseBrace = closeBrace +} + +// MessageElement is an interface implemented by all AST nodes that can +// appear in a message body. +type MessageElement interface { + Node + msgElement() +} + +var _ MessageElement = (*OptionNode)(nil) +var _ MessageElement = (*FieldNode)(nil) +var _ MessageElement = (*MapFieldNode)(nil) +var _ MessageElement = (*OneOfNode)(nil) +var _ MessageElement = (*GroupNode)(nil) +var _ MessageElement = (*MessageNode)(nil) +var _ MessageElement = (*EnumNode)(nil) +var _ MessageElement = (*ExtendNode)(nil) +var _ MessageElement = (*ExtensionRangeNode)(nil) +var _ MessageElement = (*ReservedNode)(nil) +var _ MessageElement = (*EmptyDeclNode)(nil) + +// ExtendNode represents a declaration of extension fields. Example: +// +// extend google.protobuf.FieldOptions { +// bool redacted = 33333; +// } +type ExtendNode struct { + compositeNode + Keyword *KeywordNode + Extendee IdentValueNode + OpenBrace *RuneNode + Decls []ExtendElement + CloseBrace *RuneNode +} + +func (*ExtendNode) fileElement() {} +func (*ExtendNode) msgElement() {} + +// NewExtendNode creates a new *ExtendNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "extend" keyword. +// - extendee: The token corresponding to the name of the extended message. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the message body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewExtendNode(keyword *KeywordNode, extendee IdentValueNode, openBrace *RuneNode, decls []ExtendElement, closeBrace *RuneNode) *ExtendNode { + if keyword == nil { + panic("keyword is nil") + } + if extendee == nil { + panic("extendee is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, extendee, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + ret := &ExtendNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Extendee: extendee, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } + for _, decl := range decls { + switch decl := decl.(type) { + case *FieldNode: + decl.Extendee = ret + case *GroupNode: + decl.Extendee = ret + case *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid ExtendElement type: %T", decl)) + } + } + return ret +} + +// ExtendElement is an interface implemented by all AST nodes that can +// appear in the body of an extends declaration. +type ExtendElement interface { + Node + extendElement() +} + +var _ ExtendElement = (*FieldNode)(nil) +var _ ExtendElement = (*GroupNode)(nil) +var _ ExtendElement = (*EmptyDeclNode)(nil) diff --git a/vendor/github.com/bufbuild/protocompile/ast/no_source.go b/vendor/github.com/bufbuild/protocompile/ast/no_source.go new file mode 100644 index 0000000..d66d939 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/no_source.go @@ -0,0 +1,119 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +// UnknownPos is a placeholder position when only the source file +// name is known. +func UnknownPos(filename string) SourcePos { + return SourcePos{Filename: filename} +} + +// NoSourceNode is a placeholder AST node that implements numerous +// interfaces in this package. It can be used to represent an AST +// element for a file whose source is not available. +type NoSourceNode struct { + filename string +} + +// NewNoSourceNode creates a new NoSourceNode for the given filename. +func NewNoSourceNode(filename string) NoSourceNode { + return NoSourceNode{filename: filename} +} + +func (n NoSourceNode) Name() string { + return n.filename +} + +func (n NoSourceNode) Start() Token { + return 0 +} + +func (n NoSourceNode) End() Token { + return 0 +} + +func (n NoSourceNode) NodeInfo(Node) NodeInfo { + return NodeInfo{ + fileInfo: &FileInfo{name: n.filename}, + } +} + +func (n NoSourceNode) GetSyntax() Node { + return n +} + +func (n NoSourceNode) GetName() Node { + return n +} + +func (n NoSourceNode) GetValue() ValueNode { + return n +} + +func (n NoSourceNode) FieldLabel() Node { + return n +} + +func (n NoSourceNode) FieldName() Node { + return n +} + +func (n NoSourceNode) FieldType() Node { + return n +} + +func (n NoSourceNode) FieldTag() Node { + return n +} + +func (n NoSourceNode) FieldExtendee() Node { + return n +} + +func (n NoSourceNode) GetGroupKeyword() Node { + return n +} + +func (n NoSourceNode) GetOptions() *CompactOptionsNode { + return nil +} + +func (n NoSourceNode) RangeStart() Node { + return n +} + +func (n NoSourceNode) RangeEnd() Node { + return n +} + +func (n NoSourceNode) GetNumber() Node { + return n +} + +func (n NoSourceNode) MessageName() Node { + return n +} + +func (n NoSourceNode) GetInputType() Node { + return n +} + +func (n NoSourceNode) GetOutputType() Node { + return n +} + +func (n NoSourceNode) Value() interface{} { + return nil +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/node.go b/vendor/github.com/bufbuild/protocompile/ast/node.go new file mode 100644 index 0000000..63a76c7 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/node.go @@ -0,0 +1,139 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +// Node is the interface implemented by all nodes in the AST. It +// provides information about the span of this AST node in terms +// of location in the source file. It also provides information +// about all prior comments (attached as leading comments) and +// optional subsequent comments (attached as trailing comments). +type Node interface { + Start() Token + End() Token +} + +// TerminalNode represents a leaf in the AST. These represent +// the items/lexemes in the protobuf language. Comments and +// whitespace are accumulated by the lexer and associated with +// the following lexed token. +type TerminalNode interface { + Node + Token() Token +} + +var _ TerminalNode = (*StringLiteralNode)(nil) +var _ TerminalNode = (*UintLiteralNode)(nil) +var _ TerminalNode = (*FloatLiteralNode)(nil) +var _ TerminalNode = (*IdentNode)(nil) +var _ TerminalNode = (*SpecialFloatLiteralNode)(nil) +var _ TerminalNode = (*KeywordNode)(nil) +var _ TerminalNode = (*RuneNode)(nil) + +// CompositeNode represents any non-terminal node in the tree. These +// are interior or root nodes and have child nodes. +type CompositeNode interface { + Node + // Children contains all AST nodes that are immediate children of this one. + Children() []Node +} + +// terminalNode contains bookkeeping shared by all TerminalNode +// implementations. It is embedded in all such node types in this +// package. It provides the implementation of the TerminalNode +// interface. +type terminalNode Token + +func (n terminalNode) Start() Token { + return Token(n) +} + +func (n terminalNode) End() Token { + return Token(n) +} + +func (n terminalNode) Token() Token { + return Token(n) +} + +// compositeNode contains bookkeeping shared by all CompositeNode +// implementations. It is embedded in all such node types in this +// package. It provides the implementation of the CompositeNode +// interface. +type compositeNode struct { + children []Node +} + +func (n *compositeNode) Children() []Node { + return n.children +} + +func (n *compositeNode) Start() Token { + return n.children[0].Start() +} + +func (n *compositeNode) End() Token { + return n.children[len(n.children)-1].End() +} + +// RuneNode represents a single rune in protobuf source. Runes +// are typically collected into items, but some runes stand on +// their own, such as punctuation/symbols like commas, semicolons, +// equals signs, open and close symbols (braces, brackets, angles, +// and parentheses), and periods/dots. +// TODO: make this more compact; if runes don't have attributed comments +// then we don't need a Token to represent them and only need an offset +// into the file's contents. +type RuneNode struct { + terminalNode + Rune rune +} + +// NewRuneNode creates a new *RuneNode with the given properties. +func NewRuneNode(r rune, tok Token) *RuneNode { + return &RuneNode{ + terminalNode: tok.asTerminalNode(), + Rune: r, + } +} + +// EmptyDeclNode represents an empty declaration in protobuf source. +// These amount to extra semicolons, with no actual content preceding +// the semicolon. +type EmptyDeclNode struct { + compositeNode + Semicolon *RuneNode +} + +// NewEmptyDeclNode creates a new *EmptyDeclNode. The one argument must +// be non-nil. +func NewEmptyDeclNode(semicolon *RuneNode) *EmptyDeclNode { + if semicolon == nil { + panic("semicolon is nil") + } + return &EmptyDeclNode{ + compositeNode: compositeNode{ + children: []Node{semicolon}, + }, + Semicolon: semicolon, + } +} + +func (e *EmptyDeclNode) fileElement() {} +func (e *EmptyDeclNode) msgElement() {} +func (e *EmptyDeclNode) extendElement() {} +func (e *EmptyDeclNode) oneOfElement() {} +func (e *EmptyDeclNode) enumElement() {} +func (e *EmptyDeclNode) serviceElement() {} +func (e *EmptyDeclNode) methodElement() {} diff --git a/vendor/github.com/bufbuild/protocompile/ast/options.go b/vendor/github.com/bufbuild/protocompile/ast/options.go new file mode 100644 index 0000000..497ad44 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/options.go @@ -0,0 +1,373 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// OptionDeclNode is a placeholder interface for AST nodes that represent +// options. This allows NoSourceNode to be used in place of *OptionNode +// for some usages. +type OptionDeclNode interface { + Node + GetName() Node + GetValue() ValueNode +} + +var _ OptionDeclNode = (*OptionNode)(nil) +var _ OptionDeclNode = NoSourceNode{} + +// OptionNode represents the declaration of a single option for an element. +// It is used both for normal option declarations (start with "option" keyword +// and end with semicolon) and for compact options found in fields, enum values, +// and extension ranges. Example: +// +// option (custom.option) = "foo"; +type OptionNode struct { + compositeNode + Keyword *KeywordNode // absent for compact options + Name *OptionNameNode + Equals *RuneNode + Val ValueNode + Semicolon *RuneNode // absent for compact options +} + +func (n *OptionNode) fileElement() {} +func (n *OptionNode) msgElement() {} +func (n *OptionNode) oneOfElement() {} +func (n *OptionNode) enumElement() {} +func (n *OptionNode) serviceElement() {} +func (n *OptionNode) methodElement() {} + +// NewOptionNode creates a new *OptionNode for a full option declaration (as +// used in files, messages, oneofs, enums, services, and methods). All arguments +// must be non-nil. (Also see NewCompactOptionNode.) +// - keyword: The token corresponding to the "option" keyword. +// - name: The token corresponding to the name of the option. +// - equals: The token corresponding to the "=" rune after the name. +// - val: The token corresponding to the option value. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewOptionNode(keyword *KeywordNode, name *OptionNameNode, equals *RuneNode, val ValueNode, semicolon *RuneNode) *OptionNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if val == nil { + panic("val is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, name, equals, val, semicolon} + return &OptionNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Equals: equals, + Val: val, + Semicolon: semicolon, + } +} + +// NewCompactOptionNode creates a new *OptionNode for a full compact declaration +// (as used in fields, enum values, and extension ranges). All arguments must be +// non-nil. +// - name: The token corresponding to the name of the option. +// - equals: The token corresponding to the "=" rune after the name. +// - val: The token corresponding to the option value. +func NewCompactOptionNode(name *OptionNameNode, equals *RuneNode, val ValueNode) *OptionNode { + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if val == nil { + panic("val is nil") + } + children := []Node{name, equals, val} + return &OptionNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + Equals: equals, + Val: val, + } +} + +func (n *OptionNode) GetName() Node { + return n.Name +} + +func (n *OptionNode) GetValue() ValueNode { + return n.Val +} + +// OptionNameNode represents an option name or even a traversal through message +// types to name a nested option field. Example: +// +// (foo.bar).baz.(bob) +type OptionNameNode struct { + compositeNode + Parts []*FieldReferenceNode + // Dots represent the separating '.' characters between name parts. The + // length of this slice must be exactly len(Parts)-1, each item in Parts + // having a corresponding item in this slice *except the last* (since a + // trailing dot is not allowed). + // + // These do *not* include dots that are inside of an extension name. For + // example: (foo.bar).baz.(bob) has three parts: + // 1. (foo.bar) - an extension name + // 2. baz - a regular field in foo.bar + // 3. (bob) - an extension field in baz + // Note that the dot in foo.bar will thus not be present in Dots but is + // instead in Parts[0]. + Dots []*RuneNode +} + +// NewOptionNameNode creates a new *OptionNameNode. The dots arg must have a +// length that is one less than the length of parts. The parts arg must not be +// empty. +func NewOptionNameNode(parts []*FieldReferenceNode, dots []*RuneNode) *OptionNameNode { + if len(parts) == 0 { + panic("must have at least one part") + } + if len(dots) != len(parts)-1 { + panic(fmt.Sprintf("%d parts requires %d dots, not %d", len(parts), len(parts)-1, len(dots))) + } + children := make([]Node, 0, len(parts)*2-1) + for i, part := range parts { + if part == nil { + panic(fmt.Sprintf("parts[%d] is nil", i)) + } + if i > 0 { + if dots[i-1] == nil { + panic(fmt.Sprintf("dots[%d] is nil", i-1)) + } + children = append(children, dots[i-1]) + } + children = append(children, part) + } + return &OptionNameNode{ + compositeNode: compositeNode{ + children: children, + }, + Parts: parts, + Dots: dots, + } +} + +// FieldReferenceNode is a reference to a field name. It can indicate a regular +// field (simple unqualified name), an extension field (possibly-qualified name +// that is enclosed either in brackets or parentheses), or an "any" type +// reference (a type URL in the form "server.host/fully.qualified.Name" that is +// enclosed in brackets). +// +// Extension names are used in options to refer to custom options (which are +// actually extensions), in which case the name is enclosed in parentheses "(" +// and ")". They can also be used to refer to extension fields of options. +// +// Extension names are also used in message literals to set extension fields, +// in which case the name is enclosed in square brackets "[" and "]". +// +// "Any" type references can only be used in message literals, and are not +// allowed in option names. They are always enclosed in square brackets. An +// "any" type reference is distinguished from an extension name by the presence +// of a slash, which must be present in an "any" type reference and must be +// absent in an extension name. +// +// Examples: +// +// foobar +// (foo.bar) +// [foo.bar] +// [type.googleapis.com/foo.bar] +type FieldReferenceNode struct { + compositeNode + Open *RuneNode // only present for extension names and "any" type references + + // only present for "any" type references + URLPrefix IdentValueNode + Slash *RuneNode + + Name IdentValueNode + + Close *RuneNode // only present for extension names and "any" type references +} + +// NewFieldReferenceNode creates a new *FieldReferenceNode for a regular field. +// The name arg must not be nil. +func NewFieldReferenceNode(name *IdentNode) *FieldReferenceNode { + if name == nil { + panic("name is nil") + } + children := []Node{name} + return &FieldReferenceNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + } +} + +// NewExtensionFieldReferenceNode creates a new *FieldReferenceNode for an +// extension field. All args must be non-nil. The openSym and closeSym runes +// should be "(" and ")" or "[" and "]". +func NewExtensionFieldReferenceNode(openSym *RuneNode, name IdentValueNode, closeSym *RuneNode) *FieldReferenceNode { + if name == nil { + panic("name is nil") + } + if openSym == nil { + panic("openSym is nil") + } + if closeSym == nil { + panic("closeSym is nil") + } + children := []Node{openSym, name, closeSym} + return &FieldReferenceNode{ + compositeNode: compositeNode{ + children: children, + }, + Open: openSym, + Name: name, + Close: closeSym, + } +} + +// NewAnyTypeReferenceNode creates a new *FieldReferenceNode for an "any" +// type reference. All args must be non-nil. The openSym and closeSym runes +// should be "[" and "]". The slashSym run should be "/". +func NewAnyTypeReferenceNode(openSym *RuneNode, urlPrefix IdentValueNode, slashSym *RuneNode, name IdentValueNode, closeSym *RuneNode) *FieldReferenceNode { + if name == nil { + panic("name is nil") + } + if openSym == nil { + panic("openSym is nil") + } + if closeSym == nil { + panic("closeSym is nil") + } + if urlPrefix == nil { + panic("urlPrefix is nil") + } + if slashSym == nil { + panic("slashSym is nil") + } + children := []Node{openSym, urlPrefix, slashSym, name, closeSym} + return &FieldReferenceNode{ + compositeNode: compositeNode{ + children: children, + }, + Open: openSym, + URLPrefix: urlPrefix, + Slash: slashSym, + Name: name, + Close: closeSym, + } +} + +// IsExtension reports if this is an extension name or not (e.g. enclosed in +// punctuation, such as parentheses or brackets). +func (a *FieldReferenceNode) IsExtension() bool { + return a.Open != nil && a.Slash == nil +} + +// IsAnyTypeReference reports if this is an Any type reference. +func (a *FieldReferenceNode) IsAnyTypeReference() bool { + return a.Slash != nil +} + +func (a *FieldReferenceNode) Value() string { + if a.Open != nil { + if a.Slash != nil { + return string(a.Open.Rune) + string(a.URLPrefix.AsIdentifier()) + string(a.Slash.Rune) + string(a.Name.AsIdentifier()) + string(a.Close.Rune) + } + return string(a.Open.Rune) + string(a.Name.AsIdentifier()) + string(a.Close.Rune) + } + return string(a.Name.AsIdentifier()) +} + +// CompactOptionsNode represents a compact options declaration, as used with +// fields, enum values, and extension ranges. Example: +// +// [deprecated = true, json_name = "foo_bar"] +type CompactOptionsNode struct { + compositeNode + OpenBracket *RuneNode + Options []*OptionNode + // Commas represent the separating ',' characters between options. The + // length of this slice must be exactly len(Options)-1, with each item + // in Options having a corresponding item in this slice *except the last* + // (since a trailing comma is not allowed). + Commas []*RuneNode + CloseBracket *RuneNode +} + +// NewCompactOptionsNode creates a *CompactOptionsNode. All args must be +// non-nil. The commas arg must have a length that is one less than the +// length of opts. The opts arg must not be empty. +func NewCompactOptionsNode(openBracket *RuneNode, opts []*OptionNode, commas []*RuneNode, closeBracket *RuneNode) *CompactOptionsNode { + if openBracket == nil { + panic("openBracket is nil") + } + if closeBracket == nil { + panic("closeBracket is nil") + } + if len(opts) == 0 { + panic("must have at least one part") + } + if len(commas) != len(opts)-1 { + panic(fmt.Sprintf("%d opts requires %d commas, not %d", len(opts), len(opts)-1, len(commas))) + } + children := make([]Node, 0, len(opts)*2+1) + children = append(children, openBracket) + for i, opt := range opts { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if opt == nil { + panic(fmt.Sprintf("opts[%d] is nil", i)) + } + children = append(children, opt) + } + children = append(children, closeBracket) + + return &CompactOptionsNode{ + compositeNode: compositeNode{ + children: children, + }, + OpenBracket: openBracket, + Options: opts, + Commas: commas, + CloseBracket: closeBracket, + } +} + +func (e *CompactOptionsNode) GetElements() []*OptionNode { + if e == nil { + return nil + } + return e.Options +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/ranges.go b/vendor/github.com/bufbuild/protocompile/ast/ranges.go new file mode 100644 index 0000000..453e5a0 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/ranges.go @@ -0,0 +1,319 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// ExtensionRangeNode represents an extension range declaration in an extendable +// message. Example: +// +// extensions 100 to max; +type ExtensionRangeNode struct { + compositeNode + Keyword *KeywordNode + Ranges []*RangeNode + // Commas represent the separating ',' characters between ranges. The + // length of this slice must be exactly len(Ranges)-1, each item in Ranges + // having a corresponding item in this slice *except the last* (since a + // trailing comma is not allowed). + Commas []*RuneNode + Options *CompactOptionsNode + Semicolon *RuneNode +} + +func (e *ExtensionRangeNode) msgElement() {} + +// NewExtensionRangeNode creates a new *ExtensionRangeNode. All args must be +// non-nil except opts, which may be nil. +// - keyword: The token corresponding to the "extends" keyword. +// - ranges: One or more range expressions. +// - commas: Tokens that represent the "," runes that delimit the range expressions. +// The length of commas must be one less than the length of ranges. +// - opts: The node corresponding to options that apply to each of the ranges. +// - semicolon The token corresponding to the ";" rune that ends the declaration. +func NewExtensionRangeNode(keyword *KeywordNode, ranges []*RangeNode, commas []*RuneNode, opts *CompactOptionsNode, semicolon *RuneNode) *ExtensionRangeNode { + if keyword == nil { + panic("keyword is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + if len(ranges) == 0 { + panic("must have at least one range") + } + if len(commas) != len(ranges)-1 { + panic(fmt.Sprintf("%d ranges requires %d commas, not %d", len(ranges), len(ranges)-1, len(commas))) + } + numChildren := len(ranges)*2 + 1 + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, keyword) + for i, rng := range ranges { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if rng == nil { + panic(fmt.Sprintf("ranges[%d] is nil", i)) + } + children = append(children, rng) + } + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + return &ExtensionRangeNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Ranges: ranges, + Commas: commas, + Options: opts, + Semicolon: semicolon, + } +} + +// RangeDeclNode is a placeholder interface for AST nodes that represent +// numeric values. This allows NoSourceNode to be used in place of *RangeNode +// for some usages. +type RangeDeclNode interface { + Node + RangeStart() Node + RangeEnd() Node +} + +var _ RangeDeclNode = (*RangeNode)(nil) +var _ RangeDeclNode = NoSourceNode{} + +// RangeNode represents a range expression, used in both extension ranges and +// reserved ranges. Example: +// +// 1000 to max +type RangeNode struct { + compositeNode + StartVal IntValueNode + // if To is non-nil, then exactly one of EndVal or Max must also be non-nil + To *KeywordNode + // EndVal and Max are mutually exclusive + EndVal IntValueNode + Max *KeywordNode +} + +// NewRangeNode creates a new *RangeNode. The start argument must be non-nil. +// The to argument represents the "to" keyword. If present (i.e. if it is non-nil), +// then so must be exactly one of end or max. If max is non-nil, it indicates a +// "100 to max" style range. But if end is non-nil, the end of the range is a +// literal, such as "100 to 200". +func NewRangeNode(start IntValueNode, to *KeywordNode, end IntValueNode, max *KeywordNode) *RangeNode { + if start == nil { + panic("start is nil") + } + numChildren := 1 + if to != nil { + if end == nil && max == nil { + panic("to is not nil, but end and max both are") + } + if end != nil && max != nil { + panic("end and max cannot be both non-nil") + } + numChildren = 3 + } else { + if end != nil { + panic("to is nil, but end is not") + } + if max != nil { + panic("to is nil, but max is not") + } + } + children := make([]Node, 0, numChildren) + children = append(children, start) + if to != nil { + children = append(children, to) + if end != nil { + children = append(children, end) + } else { + children = append(children, max) + } + } + return &RangeNode{ + compositeNode: compositeNode{ + children: children, + }, + StartVal: start, + To: to, + EndVal: end, + Max: max, + } +} + +func (n *RangeNode) RangeStart() Node { + return n.StartVal +} + +func (n *RangeNode) RangeEnd() Node { + if n.Max != nil { + return n.Max + } + if n.EndVal != nil { + return n.EndVal + } + return n.StartVal +} + +func (n *RangeNode) StartValue() interface{} { + return n.StartVal.Value() +} + +func (n *RangeNode) StartValueAsInt32(min, max int32) (int32, bool) { + return AsInt32(n.StartVal, min, max) +} + +func (n *RangeNode) EndValue() interface{} { + if n.EndVal == nil { + return nil + } + return n.EndVal.Value() +} + +func (n *RangeNode) EndValueAsInt32(min, max int32) (int32, bool) { + if n.Max != nil { + return max, true + } + if n.EndVal == nil { + return n.StartValueAsInt32(min, max) + } + return AsInt32(n.EndVal, min, max) +} + +// ReservedNode represents reserved declaration, which can be used to reserve +// either names or numbers. Examples: +// +// reserved 1, 10-12, 15; +// reserved "foo", "bar", "baz"; +type ReservedNode struct { + compositeNode + Keyword *KeywordNode + // If non-empty, this node represents reserved ranges and Names will be empty. + Ranges []*RangeNode + // If non-empty, this node represents reserved names and Ranges will be empty. + Names []StringValueNode + // Commas represent the separating ',' characters between options. The + // length of this slice must be exactly len(Ranges)-1 or len(Names)-1, depending + // on whether this node represents reserved ranges or reserved names. Each item + // in Ranges or Names has a corresponding item in this slice *except the last* + // (since a trailing comma is not allowed). + Commas []*RuneNode + Semicolon *RuneNode +} + +func (*ReservedNode) msgElement() {} +func (*ReservedNode) enumElement() {} + +// NewReservedRangesNode creates a new *ReservedNode that represents reserved +// numeric ranges. All args must be non-nil. +// - keyword: The token corresponding to the "reserved" keyword. +// - ranges: One or more range expressions. +// - commas: Tokens that represent the "," runes that delimit the range expressions. +// The length of commas must be one less than the length of ranges. +// - semicolon The token corresponding to the ";" rune that ends the declaration. +func NewReservedRangesNode(keyword *KeywordNode, ranges []*RangeNode, commas []*RuneNode, semicolon *RuneNode) *ReservedNode { + if keyword == nil { + panic("keyword is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + if len(ranges) == 0 { + panic("must have at least one range") + } + if len(commas) != len(ranges)-1 { + panic(fmt.Sprintf("%d ranges requires %d commas, not %d", len(ranges), len(ranges)-1, len(commas))) + } + children := make([]Node, 0, len(ranges)*2+1) + children = append(children, keyword) + for i, rng := range ranges { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if rng == nil { + panic(fmt.Sprintf("ranges[%d] is nil", i)) + } + children = append(children, rng) + } + children = append(children, semicolon) + return &ReservedNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Ranges: ranges, + Commas: commas, + Semicolon: semicolon, + } +} + +// NewReservedNamesNode creates a new *ReservedNode that represents reserved +// names. All args must be non-nil. +// - keyword: The token corresponding to the "reserved" keyword. +// - names: One or more names. +// - commas: Tokens that represent the "," runes that delimit the names. +// The length of commas must be one less than the length of names. +// - semicolon The token corresponding to the ";" rune that ends the declaration. +func NewReservedNamesNode(keyword *KeywordNode, names []StringValueNode, commas []*RuneNode, semicolon *RuneNode) *ReservedNode { + if keyword == nil { + panic("keyword is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + if len(names) == 0 { + panic("must have at least one name") + } + if len(commas) != len(names)-1 { + panic(fmt.Sprintf("%d names requires %d commas, not %d", len(names), len(names)-1, len(commas))) + } + children := make([]Node, 0, len(names)*2+1) + children = append(children, keyword) + for i, name := range names { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if name == nil { + panic(fmt.Sprintf("names[%d] is nil", i)) + } + children = append(children, name) + } + children = append(children, semicolon) + return &ReservedNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Names: names, + Commas: commas, + Semicolon: semicolon, + } +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/service.go b/vendor/github.com/bufbuild/protocompile/ast/service.go new file mode 100644 index 0000000..c180748 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/service.go @@ -0,0 +1,286 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// ServiceNode represents a service declaration. Example: +// +// service Foo { +// rpc Bar (Baz) returns (Bob); +// rpc Frobnitz (stream Parts) returns (Gyzmeaux); +// } +type ServiceNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + OpenBrace *RuneNode + Decls []ServiceElement + CloseBrace *RuneNode +} + +func (*ServiceNode) fileElement() {} + +// NewServiceNode creates a new *ServiceNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "service" keyword. +// - name: The token corresponding to the service's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the service body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewServiceNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []ServiceElement, closeBrace *RuneNode) *ServiceNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + switch decl := decl.(type) { + case *OptionNode, *RPCNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid ServiceElement type: %T", decl)) + } + children = append(children, decl) + } + children = append(children, closeBrace) + + return &ServiceNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } +} + +// ServiceElement is an interface implemented by all AST nodes that can +// appear in the body of a service declaration. +type ServiceElement interface { + Node + serviceElement() +} + +var _ ServiceElement = (*OptionNode)(nil) +var _ ServiceElement = (*RPCNode)(nil) +var _ ServiceElement = (*EmptyDeclNode)(nil) + +// RPCDeclNode is a placeholder interface for AST nodes that represent RPC +// declarations. This allows NoSourceNode to be used in place of *RPCNode +// for some usages. +type RPCDeclNode interface { + Node + GetName() Node + GetInputType() Node + GetOutputType() Node +} + +var _ RPCDeclNode = (*RPCNode)(nil) +var _ RPCDeclNode = NoSourceNode{} + +// RPCNode represents an RPC declaration. Example: +// +// rpc Foo (Bar) returns (Baz); +type RPCNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + Input *RPCTypeNode + Returns *KeywordNode + Output *RPCTypeNode + Semicolon *RuneNode + OpenBrace *RuneNode + Decls []RPCElement + CloseBrace *RuneNode +} + +func (n *RPCNode) serviceElement() {} + +// NewRPCNode creates a new *RPCNode with no body. All arguments must be non-nil. +// - keyword: The token corresponding to the "rpc" keyword. +// - name: The token corresponding to the RPC's name. +// - input: The token corresponding to the RPC input message type. +// - returns: The token corresponding to the "returns" keyword that precedes the output type. +// - output: The token corresponding to the RPC output message type. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewRPCNode(keyword *KeywordNode, name *IdentNode, input *RPCTypeNode, returns *KeywordNode, output *RPCTypeNode, semicolon *RuneNode) *RPCNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if input == nil { + panic("input is nil") + } + if returns == nil { + panic("returns is nil") + } + if output == nil { + panic("output is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, name, input, returns, output, semicolon} + return &RPCNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Input: input, + Returns: returns, + Output: output, + Semicolon: semicolon, + } +} + +// NewRPCNodeWithBody creates a new *RPCNode that includes a body (and possibly +// options). All arguments must be non-nil. +// - keyword: The token corresponding to the "rpc" keyword. +// - name: The token corresponding to the RPC's name. +// - input: The token corresponding to the RPC input message type. +// - returns: The token corresponding to the "returns" keyword that precedes the output type. +// - output: The token corresponding to the RPC output message type. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the RPC body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewRPCNodeWithBody(keyword *KeywordNode, name *IdentNode, input *RPCTypeNode, returns *KeywordNode, output *RPCTypeNode, openBrace *RuneNode, decls []RPCElement, closeBrace *RuneNode) *RPCNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if input == nil { + panic("input is nil") + } + if returns == nil { + panic("returns is nil") + } + if output == nil { + panic("output is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 7+len(decls)) + children = append(children, keyword, name, input, returns, output, openBrace) + for _, decl := range decls { + switch decl := decl.(type) { + case *OptionNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid RPCElement type: %T", decl)) + } + children = append(children, decl) + } + children = append(children, closeBrace) + + return &RPCNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Input: input, + Returns: returns, + Output: output, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } +} + +func (n *RPCNode) GetName() Node { + return n.Name +} + +func (n *RPCNode) GetInputType() Node { + return n.Input.MessageType +} + +func (n *RPCNode) GetOutputType() Node { + return n.Output.MessageType +} + +// RPCElement is an interface implemented by all AST nodes that can +// appear in the body of an rpc declaration (aka method). +type RPCElement interface { + Node + methodElement() +} + +var _ RPCElement = (*OptionNode)(nil) +var _ RPCElement = (*EmptyDeclNode)(nil) + +// RPCTypeNode represents the declaration of a request or response type for an +// RPC. Example: +// +// (stream foo.Bar) +type RPCTypeNode struct { + compositeNode + OpenParen *RuneNode + Stream *KeywordNode + MessageType IdentValueNode + CloseParen *RuneNode +} + +// NewRPCTypeNode creates a new *RPCTypeNode. All arguments must be non-nil +// except stream, which may be nil. +// - openParen: The token corresponding to the "(" rune that starts the declaration. +// - stream: The token corresponding to the "stream" keyword or nil if not present. +// - msgType: The token corresponding to the message type's name. +// - closeParen: The token corresponding to the ")" rune that ends the declaration. +func NewRPCTypeNode(openParen *RuneNode, stream *KeywordNode, msgType IdentValueNode, closeParen *RuneNode) *RPCTypeNode { + if openParen == nil { + panic("openParen is nil") + } + if msgType == nil { + panic("msgType is nil") + } + if closeParen == nil { + panic("closeParen is nil") + } + var children []Node + if stream != nil { + children = []Node{openParen, stream, msgType, closeParen} + } else { + children = []Node{openParen, msgType, closeParen} + } + + return &RPCTypeNode{ + compositeNode: compositeNode{ + children: children, + }, + OpenParen: openParen, + Stream: stream, + MessageType: msgType, + CloseParen: closeParen, + } +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/values.go b/vendor/github.com/bufbuild/protocompile/ast/values.go new file mode 100644 index 0000000..b9f050a --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/values.go @@ -0,0 +1,558 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import ( + "fmt" + "math" + "strings" +) + +// ValueNode is an AST node that represents a literal value. +// +// It also includes references (e.g. IdentifierValueNode), which can be +// used as values in some contexts, such as describing the default value +// for a field, which can refer to an enum value. +// +// This also allows NoSourceNode to be used in place of a real value node +// for some usages. +type ValueNode interface { + Node + // Value returns a Go representation of the value. For scalars, this + // will be a string, int64, uint64, float64, or bool. This could also + // be an Identifier (e.g. IdentValueNodes). It can also be a composite + // literal: + // * For array literals, the type returned will be []ValueNode + // * For message literals, the type returned will be []*MessageFieldNode + Value() interface{} +} + +var _ ValueNode = (*IdentNode)(nil) +var _ ValueNode = (*CompoundIdentNode)(nil) +var _ ValueNode = (*StringLiteralNode)(nil) +var _ ValueNode = (*CompoundStringLiteralNode)(nil) +var _ ValueNode = (*UintLiteralNode)(nil) +var _ ValueNode = (*PositiveUintLiteralNode)(nil) +var _ ValueNode = (*NegativeIntLiteralNode)(nil) +var _ ValueNode = (*FloatLiteralNode)(nil) +var _ ValueNode = (*SpecialFloatLiteralNode)(nil) +var _ ValueNode = (*SignedFloatLiteralNode)(nil) +var _ ValueNode = (*ArrayLiteralNode)(nil) +var _ ValueNode = (*MessageLiteralNode)(nil) +var _ ValueNode = NoSourceNode{} + +// StringValueNode is an AST node that represents a string literal. +// Such a node can be a single literal (*StringLiteralNode) or a +// concatenation of multiple literals (*CompoundStringLiteralNode). +type StringValueNode interface { + ValueNode + AsString() string +} + +var _ StringValueNode = (*StringLiteralNode)(nil) +var _ StringValueNode = (*CompoundStringLiteralNode)(nil) + +// StringLiteralNode represents a simple string literal. Example: +// +// "proto2" +type StringLiteralNode struct { + terminalNode + // Val is the actual string value that the literal indicates. + Val string +} + +// NewStringLiteralNode creates a new *StringLiteralNode with the given val. +func NewStringLiteralNode(val string, tok Token) *StringLiteralNode { + return &StringLiteralNode{ + terminalNode: tok.asTerminalNode(), + Val: val, + } +} + +func (n *StringLiteralNode) Value() interface{} { + return n.AsString() +} + +func (n *StringLiteralNode) AsString() string { + return n.Val +} + +// CompoundStringLiteralNode represents a compound string literal, which is +// the concatenaton of adjacent string literals. Example: +// +// "this " "is" " all one " "string" +type CompoundStringLiteralNode struct { + compositeNode + Val string +} + +// NewCompoundLiteralStringNode creates a new *CompoundStringLiteralNode that +// consists of the given string components. The components argument may not be +// empty. +func NewCompoundLiteralStringNode(components ...*StringLiteralNode) *CompoundStringLiteralNode { + if len(components) == 0 { + panic("must have at least one component") + } + children := make([]Node, len(components)) + var b strings.Builder + for i, comp := range components { + children[i] = comp + b.WriteString(comp.Val) + } + return &CompoundStringLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Val: b.String(), + } +} + +func (n *CompoundStringLiteralNode) Value() interface{} { + return n.AsString() +} + +func (n *CompoundStringLiteralNode) AsString() string { + return n.Val +} + +// IntValueNode is an AST node that represents an integer literal. If +// an integer literal is too large for an int64 (or uint64 for +// positive literals), it is represented instead by a FloatValueNode. +type IntValueNode interface { + ValueNode + AsInt64() (int64, bool) + AsUint64() (uint64, bool) +} + +// AsInt32 range checks the given int value and returns its value is +// in the range or 0, false if it is outside the range. +func AsInt32(n IntValueNode, min, max int32) (int32, bool) { + i, ok := n.AsInt64() + if !ok { + return 0, false + } + if i < int64(min) || i > int64(max) { + return 0, false + } + return int32(i), true +} + +var _ IntValueNode = (*UintLiteralNode)(nil) +var _ IntValueNode = (*PositiveUintLiteralNode)(nil) +var _ IntValueNode = (*NegativeIntLiteralNode)(nil) + +// UintLiteralNode represents a simple integer literal with no sign character. +type UintLiteralNode struct { + terminalNode + // Val is the numeric value indicated by the literal + Val uint64 +} + +// NewUintLiteralNode creates a new *UintLiteralNode with the given val. +func NewUintLiteralNode(val uint64, tok Token) *UintLiteralNode { + return &UintLiteralNode{ + terminalNode: tok.asTerminalNode(), + Val: val, + } +} + +func (n *UintLiteralNode) Value() interface{} { + return n.Val +} + +func (n *UintLiteralNode) AsInt64() (int64, bool) { + if n.Val > math.MaxInt64 { + return 0, false + } + return int64(n.Val), true +} + +func (n *UintLiteralNode) AsUint64() (uint64, bool) { + return n.Val, true +} + +func (n *UintLiteralNode) AsFloat() float64 { + return float64(n.Val) +} + +// PositiveUintLiteralNode represents an integer literal with a positive (+) sign. +type PositiveUintLiteralNode struct { + compositeNode + Plus *RuneNode + Uint *UintLiteralNode + Val uint64 +} + +// NewPositiveUintLiteralNode creates a new *PositiveUintLiteralNode. Both +// arguments must be non-nil. +func NewPositiveUintLiteralNode(sign *RuneNode, i *UintLiteralNode) *PositiveUintLiteralNode { + if sign == nil { + panic("sign is nil") + } + if i == nil { + panic("i is nil") + } + children := []Node{sign, i} + return &PositiveUintLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Plus: sign, + Uint: i, + Val: i.Val, + } +} + +func (n *PositiveUintLiteralNode) Value() interface{} { + return n.Val +} + +func (n *PositiveUintLiteralNode) AsInt64() (int64, bool) { + if n.Val > math.MaxInt64 { + return 0, false + } + return int64(n.Val), true +} + +func (n *PositiveUintLiteralNode) AsUint64() (uint64, bool) { + return n.Val, true +} + +// NegativeIntLiteralNode represents an integer literal with a negative (-) sign. +type NegativeIntLiteralNode struct { + compositeNode + Minus *RuneNode + Uint *UintLiteralNode + Val int64 +} + +// NewNegativeIntLiteralNode creates a new *NegativeIntLiteralNode. Both +// arguments must be non-nil. +func NewNegativeIntLiteralNode(sign *RuneNode, i *UintLiteralNode) *NegativeIntLiteralNode { + if sign == nil { + panic("sign is nil") + } + if i == nil { + panic("i is nil") + } + children := []Node{sign, i} + return &NegativeIntLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Minus: sign, + Uint: i, + Val: -int64(i.Val), + } +} + +func (n *NegativeIntLiteralNode) Value() interface{} { + return n.Val +} + +func (n *NegativeIntLiteralNode) AsInt64() (int64, bool) { + return n.Val, true +} + +func (n *NegativeIntLiteralNode) AsUint64() (uint64, bool) { + if n.Val < 0 { + return 0, false + } + return uint64(n.Val), true +} + +// FloatValueNode is an AST node that represents a numeric literal with +// a floating point, in scientific notation, or too large to fit in an +// int64 or uint64. +type FloatValueNode interface { + ValueNode + AsFloat() float64 +} + +var _ FloatValueNode = (*FloatLiteralNode)(nil) +var _ FloatValueNode = (*SpecialFloatLiteralNode)(nil) +var _ FloatValueNode = (*UintLiteralNode)(nil) + +// FloatLiteralNode represents a floating point numeric literal. +type FloatLiteralNode struct { + terminalNode + // Val is the numeric value indicated by the literal + Val float64 +} + +// NewFloatLiteralNode creates a new *FloatLiteralNode with the given val. +func NewFloatLiteralNode(val float64, tok Token) *FloatLiteralNode { + return &FloatLiteralNode{ + terminalNode: tok.asTerminalNode(), + Val: val, + } +} + +func (n *FloatLiteralNode) Value() interface{} { + return n.AsFloat() +} + +func (n *FloatLiteralNode) AsFloat() float64 { + return n.Val +} + +// SpecialFloatLiteralNode represents a special floating point numeric literal +// for "inf" and "nan" values. +type SpecialFloatLiteralNode struct { + *KeywordNode + Val float64 +} + +// NewSpecialFloatLiteralNode returns a new *SpecialFloatLiteralNode for the +// given keyword, which must be "inf" or "nan". +func NewSpecialFloatLiteralNode(name *KeywordNode) *SpecialFloatLiteralNode { + var f float64 + if name.Val == "inf" { + f = math.Inf(1) + } else { + f = math.NaN() + } + return &SpecialFloatLiteralNode{ + KeywordNode: name, + Val: f, + } +} + +func (n *SpecialFloatLiteralNode) Value() interface{} { + return n.AsFloat() +} + +func (n *SpecialFloatLiteralNode) AsFloat() float64 { + return n.Val +} + +// SignedFloatLiteralNode represents a signed floating point number. +type SignedFloatLiteralNode struct { + compositeNode + Sign *RuneNode + Float FloatValueNode + Val float64 +} + +// NewSignedFloatLiteralNode creates a new *SignedFloatLiteralNode. Both +// arguments must be non-nil. +func NewSignedFloatLiteralNode(sign *RuneNode, f FloatValueNode) *SignedFloatLiteralNode { + if sign == nil { + panic("sign is nil") + } + if f == nil { + panic("f is nil") + } + children := []Node{sign, f} + val := f.AsFloat() + if sign.Rune == '-' { + val = -val + } + return &SignedFloatLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Sign: sign, + Float: f, + Val: val, + } +} + +func (n *SignedFloatLiteralNode) Value() interface{} { + return n.Val +} + +func (n *SignedFloatLiteralNode) AsFloat() float64 { + return n.Val +} + +// ArrayLiteralNode represents an array literal, which is only allowed inside of +// a MessageLiteralNode, to indicate values for a repeated field. Example: +// +// ["foo", "bar", "baz"] +type ArrayLiteralNode struct { + compositeNode + OpenBracket *RuneNode + Elements []ValueNode + // Commas represent the separating ',' characters between elements. The + // length of this slice must be exactly len(Elements)-1, with each item + // in Elements having a corresponding item in this slice *except the last* + // (since a trailing comma is not allowed). + Commas []*RuneNode + CloseBracket *RuneNode +} + +// NewArrayLiteralNode creates a new *ArrayLiteralNode. The openBracket and +// closeBracket args must be non-nil and represent the "[" and "]" runes that +// surround the array values. The given commas arg must have a length that is +// one less than the length of the vals arg. However, vals may be empty, in +// which case commas must also be empty. +func NewArrayLiteralNode(openBracket *RuneNode, vals []ValueNode, commas []*RuneNode, closeBracket *RuneNode) *ArrayLiteralNode { + if openBracket == nil { + panic("openBracket is nil") + } + if closeBracket == nil { + panic("closeBracket is nil") + } + if len(vals) == 0 && len(commas) != 0 { + panic("vals is empty but commas is not") + } + if len(vals) > 0 && len(commas) != len(vals)-1 { + panic(fmt.Sprintf("%d vals requires %d commas, not %d", len(vals), len(vals)-1, len(commas))) + } + children := make([]Node, 0, len(vals)*2+1) + children = append(children, openBracket) + for i, val := range vals { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if val == nil { + panic(fmt.Sprintf("vals[%d] is nil", i)) + } + children = append(children, val) + } + children = append(children, closeBracket) + + return &ArrayLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + OpenBracket: openBracket, + Elements: vals, + Commas: commas, + CloseBracket: closeBracket, + } +} + +func (n *ArrayLiteralNode) Value() interface{} { + return n.Elements +} + +// MessageLiteralNode represents a message literal, which is compatible with the +// protobuf text format and can be used for custom options with message types. +// Example: +// +// { foo:1 foo:2 foo:3 bar: } +type MessageLiteralNode struct { + compositeNode + Open *RuneNode // should be '{' or '<' + Elements []*MessageFieldNode + // Separator characters between elements, which can be either ',' + // or ';' if present. This slice must be exactly len(Elements) in + // length, with each item in Elements having one corresponding item + // in Seps. Separators in message literals are optional, so a given + // item in this slice may be nil to indicate absence of a separator. + Seps []*RuneNode + Close *RuneNode // should be '}' or '>', depending on Open +} + +// NewMessageLiteralNode creates a new *MessageLiteralNode. The openSym and +// closeSym runes must not be nil and should be "{" and "}" or "<" and ">". +// +// Unlike separators (dots and commas) used for other AST nodes that represent +// a list of elements, the seps arg must be the SAME length as vals, and it may +// contain nil values to indicate absence of a separator (in fact, it could be +// all nils). +func NewMessageLiteralNode(openSym *RuneNode, vals []*MessageFieldNode, seps []*RuneNode, closeSym *RuneNode) *MessageLiteralNode { + if openSym == nil { + panic("openSym is nil") + } + if closeSym == nil { + panic("closeSym is nil") + } + if len(seps) != len(vals) { + panic(fmt.Sprintf("%d vals requires %d commas, not %d", len(vals), len(vals), len(seps))) + } + numChildren := len(vals) + 2 + for _, sep := range seps { + if sep != nil { + numChildren++ + } + } + children := make([]Node, 0, numChildren) + children = append(children, openSym) + for i, val := range vals { + if val == nil { + panic(fmt.Sprintf("vals[%d] is nil", i)) + } + children = append(children, val) + if seps[i] != nil { + children = append(children, seps[i]) + } + } + children = append(children, closeSym) + + return &MessageLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Open: openSym, + Elements: vals, + Seps: seps, + Close: closeSym, + } +} + +func (n *MessageLiteralNode) Value() interface{} { + return n.Elements +} + +// MessageFieldNode represents a single field (name and value) inside of a +// message literal. Example: +// +// foo:"bar" +type MessageFieldNode struct { + compositeNode + Name *FieldReferenceNode + // Sep represents the ':' separator between the name and value. If + // the value is a message or list literal (and thus starts with '<', + // '{', or '['), then the separator may be omitted and this field may + // be nil. + Sep *RuneNode + Val ValueNode +} + +// NewMessageFieldNode creates a new *MessageFieldNode. All args except sep +// must be non-nil. +func NewMessageFieldNode(name *FieldReferenceNode, sep *RuneNode, val ValueNode) *MessageFieldNode { + if name == nil { + panic("name is nil") + } + if val == nil { + panic("val is nil") + } + numChildren := 2 + if sep != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, name) + if sep != nil { + children = append(children, sep) + } + children = append(children, val) + + return &MessageFieldNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + Sep: sep, + Val: val, + } +} diff --git a/vendor/github.com/bufbuild/protocompile/ast/walk.go b/vendor/github.com/bufbuild/protocompile/ast/walk.go new file mode 100644 index 0000000..a969ed4 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/ast/walk.go @@ -0,0 +1,910 @@ +// Copyright 2020-2022 Buf Technologies, 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 ast + +import "fmt" + +// Walk conducts a walk of the AST rooted at the given root using the +// given visitor. It performs a "pre-order traversal", visiting a +// given AST node before it visits that node's descendants. +// +// If a visitor returns an error while walking the tree, the entire +// operation is aborted and that error is returned. +func Walk(root Node, v Visitor, opts ...WalkOption) error { + var wOpts walkOptions + for _, opt := range opts { + opt(&wOpts) + } + return walk(root, v, wOpts) +} + +// WalkOption represents an option used with the Walk function. These +// allow optional before and after hooks to be invoked as each node in +// the tree is visited. +type WalkOption func(*walkOptions) + +type walkOptions struct { + before, after func(Node) error +} + +// WithBefore returns a WalkOption that will cause the given function to be +// invoked before a node is visited during a walk operation. If this hook +// returns an error, the node is not visited and the walk operation is aborted. +func WithBefore(fn func(Node) error) WalkOption { + return func(options *walkOptions) { + options.before = fn + } +} + +// WithAfter returns a WalkOption that will cause the given function to be +// invoked after a node (as well as any descendants) is visited during a walk +// operation. If this hook returns an error, the node is not visited and the +// walk operation is aborted. +// +// If the walk is aborted due to some other visitor or before hook returning an +// error, the after hook is still called for all nodes that have been visited. +// However, the walk operation fails with the first error it encountered, so any +// error returned from an after hook is effectively ignored. +func WithAfter(fn func(Node) error) WalkOption { + return func(options *walkOptions) { + options.after = fn + } +} + +func walk(root Node, v Visitor, opts walkOptions) (err error) { + if opts.before != nil { + if err := opts.before(root); err != nil { + return err + } + } + if opts.after != nil { + defer func() { + if afterErr := opts.after(root); afterErr != nil { + // if another call already returned an error then we + // have to ignore the error from the after hook + if err == nil { + err = afterErr + } + } + }() + } + + if err := Visit(root, v); err != nil { + return err + } + + if comp, ok := root.(CompositeNode); ok { + for _, child := range comp.Children() { + if err := walk(child, v, opts); err != nil { + return err + } + } + } + return nil +} + +// Visit implements the double-dispatch idiom and visits the given node by +// calling the appropriate method of the given visitor. +func Visit(n Node, v Visitor) error { + switch n := n.(type) { + case *FileNode: + return v.VisitFileNode(n) + case *SyntaxNode: + return v.VisitSyntaxNode(n) + case *PackageNode: + return v.VisitPackageNode(n) + case *ImportNode: + return v.VisitImportNode(n) + case *OptionNode: + return v.VisitOptionNode(n) + case *OptionNameNode: + return v.VisitOptionNameNode(n) + case *FieldReferenceNode: + return v.VisitFieldReferenceNode(n) + case *CompactOptionsNode: + return v.VisitCompactOptionsNode(n) + case *MessageNode: + return v.VisitMessageNode(n) + case *ExtendNode: + return v.VisitExtendNode(n) + case *ExtensionRangeNode: + return v.VisitExtensionRangeNode(n) + case *ReservedNode: + return v.VisitReservedNode(n) + case *RangeNode: + return v.VisitRangeNode(n) + case *FieldNode: + return v.VisitFieldNode(n) + case *GroupNode: + return v.VisitGroupNode(n) + case *MapFieldNode: + return v.VisitMapFieldNode(n) + case *MapTypeNode: + return v.VisitMapTypeNode(n) + case *OneOfNode: + return v.VisitOneOfNode(n) + case *EnumNode: + return v.VisitEnumNode(n) + case *EnumValueNode: + return v.VisitEnumValueNode(n) + case *ServiceNode: + return v.VisitServiceNode(n) + case *RPCNode: + return v.VisitRPCNode(n) + case *RPCTypeNode: + return v.VisitRPCTypeNode(n) + case *IdentNode: + return v.VisitIdentNode(n) + case *CompoundIdentNode: + return v.VisitCompoundIdentNode(n) + case *StringLiteralNode: + return v.VisitStringLiteralNode(n) + case *CompoundStringLiteralNode: + return v.VisitCompoundStringLiteralNode(n) + case *UintLiteralNode: + return v.VisitUintLiteralNode(n) + case *PositiveUintLiteralNode: + return v.VisitPositiveUintLiteralNode(n) + case *NegativeIntLiteralNode: + return v.VisitNegativeIntLiteralNode(n) + case *FloatLiteralNode: + return v.VisitFloatLiteralNode(n) + case *SpecialFloatLiteralNode: + return v.VisitSpecialFloatLiteralNode(n) + case *SignedFloatLiteralNode: + return v.VisitSignedFloatLiteralNode(n) + case *ArrayLiteralNode: + return v.VisitArrayLiteralNode(n) + case *MessageLiteralNode: + return v.VisitMessageLiteralNode(n) + case *MessageFieldNode: + return v.VisitMessageFieldNode(n) + case *KeywordNode: + return v.VisitKeywordNode(n) + case *RuneNode: + return v.VisitRuneNode(n) + case *EmptyDeclNode: + return v.VisitEmptyDeclNode(n) + default: + panic(fmt.Sprintf("unexpected type of node: %T", n)) + } +} + +// AncestorTracker is used to track the path of nodes during a walk operation. +// By passing AsWalkOptions to a call to Walk, a visitor can inspect the path to +// the node being visited using this tracker. +type AncestorTracker struct { + ancestors []Node +} + +// AsWalkOptions returns WalkOption values that will cause this ancestor tracker +// to track the path through the AST during the walk operation. +func (t *AncestorTracker) AsWalkOptions() []WalkOption { + return []WalkOption{ + WithBefore(func(n Node) error { + t.ancestors = append(t.ancestors, n) + return nil + }), + WithAfter(func(n Node) error { + t.ancestors = t.ancestors[:len(t.ancestors)-1] + return nil + }), + } +} + +// Path returns a slice of nodes that represents the path from the root of the +// walk operaiton to the currently visited node. The first element in the path +// is the root supplied to Walk. The last element in the path is the currently +// visited node. +// +// The returned slice is not a defensive copy; so callers should NOT mutate it. +func (t *AncestorTracker) Path() []Node { + return t.ancestors +} + +// Parent returns the parent node of the currently visited node. If the node +// currently being visited is the root supplied to Walk then nil is returned. +func (t *AncestorTracker) Parent() Node { + if len(t.ancestors) <= 1 { + return nil + } + return t.ancestors[len(t.ancestors)-2] +} + +// VisitChildren visits all direct children of the given node using the given +// visitor. If visiting a child returns an error, that error is immediately +// returned, and other children will not be visited. +func VisitChildren(n CompositeNode, v Visitor) error { + for _, ch := range n.Children() { + if err := Visit(ch, v); err != nil { + return err + } + } + return nil +} + +// Visitor provides a technique for walking the AST that allows for +// dynamic dispatch, where a particular function is invoked based on +// the runtime type of the argument. +// +// It consists of a number of functions, each of which matches a +// concrete Node type. +// +// Most visitor implementations will either embed NoOpVisitor (so as +// not to have to implement *all* of the methods) or will be instances +// of SimpleVisitor. +// +// Visitors can be supplied to a Walk operation or passed to a call +// to Visit or VisitChildren. +type Visitor interface { + // VisitFileNode is invoked when visiting a *FileNode in the AST. + VisitFileNode(*FileNode) error + // VisitSyntaxNode is invoked when visiting a *SyntaxNode in the AST. + VisitSyntaxNode(*SyntaxNode) error + // VisitPackageNode is invoked when visiting a *PackageNode in the AST. + VisitPackageNode(*PackageNode) error + // VisitImportNode is invoked when visiting an *ImportNode in the AST. + VisitImportNode(*ImportNode) error + // VisitOptionNode is invoked when visiting an *OptionNode in the AST. + VisitOptionNode(*OptionNode) error + // VisitOptionNameNode is invoked when visiting an *OptionNameNode in the AST. + VisitOptionNameNode(*OptionNameNode) error + // VisitFieldReferenceNode is invoked when visiting a *FieldReferenceNode in the AST. + VisitFieldReferenceNode(*FieldReferenceNode) error + // VisitCompactOptionsNode is invoked when visiting a *CompactOptionsNode in the AST. + VisitCompactOptionsNode(*CompactOptionsNode) error + // VisitMessageNode is invoked when visiting a *MessageNode in the AST. + VisitMessageNode(*MessageNode) error + // VisitExtendNode is invoked when visiting an *ExtendNode in the AST. + VisitExtendNode(*ExtendNode) error + // VisitExtensionRangeNode is invoked when visiting an *ExtensionRangeNode in the AST. + VisitExtensionRangeNode(*ExtensionRangeNode) error + // VisitReservedNode is invoked when visiting a *ReservedNode in the AST. + VisitReservedNode(*ReservedNode) error + // VisitRangeNode is invoked when visiting a *RangeNode in the AST. + VisitRangeNode(*RangeNode) error + // VisitFieldNode is invoked when visiting a *FieldNode in the AST. + VisitFieldNode(*FieldNode) error + // VisitGroupNode is invoked when visiting a *GroupNode in the AST. + VisitGroupNode(*GroupNode) error + // VisitMapFieldNode is invoked when visiting a *MapFieldNode in the AST. + VisitMapFieldNode(*MapFieldNode) error + // VisitMapTypeNode is invoked when visiting a *MapTypeNode in the AST. + VisitMapTypeNode(*MapTypeNode) error + // VisitOneOfNode is invoked when visiting a *OneOfNode in the AST. + VisitOneOfNode(*OneOfNode) error + // VisitEnumNode is invoked when visiting an *EnumNode in the AST. + VisitEnumNode(*EnumNode) error + // VisitEnumValueNode is invoked when visiting an *EnumValueNode in the AST. + VisitEnumValueNode(*EnumValueNode) error + // VisitServiceNode is invoked when visiting a *ServiceNode in the AST. + VisitServiceNode(*ServiceNode) error + // VisitRPCNode is invoked when visiting an *RPCNode in the AST. + VisitRPCNode(*RPCNode) error + // VisitRPCTypeNode is invoked when visiting an *RPCTypeNode in the AST. + VisitRPCTypeNode(*RPCTypeNode) error + // VisitIdentNode is invoked when visiting an *IdentNode in the AST. + VisitIdentNode(*IdentNode) error + // VisitCompoundIdentNode is invoked when visiting a *CompoundIdentNode in the AST. + VisitCompoundIdentNode(*CompoundIdentNode) error + // VisitStringLiteralNode is invoked when visiting a *StringLiteralNode in the AST. + VisitStringLiteralNode(*StringLiteralNode) error + // VisitCompoundStringLiteralNode is invoked when visiting a *CompoundStringLiteralNode in the AST. + VisitCompoundStringLiteralNode(*CompoundStringLiteralNode) error + // VisitUintLiteralNode is invoked when visiting a *UintLiteralNode in the AST. + VisitUintLiteralNode(*UintLiteralNode) error + // VisitPositiveUintLiteralNode is invoked when visiting a *PositiveUintLiteralNode in the AST. + VisitPositiveUintLiteralNode(*PositiveUintLiteralNode) error + // VisitNegativeIntLiteralNode is invoked when visiting a *NegativeIntLiteralNode in the AST. + VisitNegativeIntLiteralNode(*NegativeIntLiteralNode) error + // VisitFloatLiteralNode is invoked when visiting a *FloatLiteralNode in the AST. + VisitFloatLiteralNode(*FloatLiteralNode) error + // VisitSpecialFloatLiteralNode is invoked when visiting a *SpecialFloatLiteralNode in the AST. + VisitSpecialFloatLiteralNode(*SpecialFloatLiteralNode) error + // VisitSignedFloatLiteralNode is invoked when visiting a *SignedFloatLiteralNode in the AST. + VisitSignedFloatLiteralNode(*SignedFloatLiteralNode) error + // VisitArrayLiteralNode is invoked when visiting an *ArrayLiteralNode in the AST. + VisitArrayLiteralNode(*ArrayLiteralNode) error + // VisitMessageLiteralNode is invoked when visiting a *MessageLiteralNode in the AST. + VisitMessageLiteralNode(*MessageLiteralNode) error + // VisitMessageFieldNode is invoked when visiting a *MessageFieldNode in the AST. + VisitMessageFieldNode(*MessageFieldNode) error + // VisitKeywordNode is invoked when visiting a *KeywordNode in the AST. + VisitKeywordNode(*KeywordNode) error + // VisitRuneNode is invoked when visiting a *RuneNode in the AST. + VisitRuneNode(*RuneNode) error + // VisitEmptyDeclNode is invoked when visiting a *EmptyDeclNode in the AST. + VisitEmptyDeclNode(*EmptyDeclNode) error +} + +// NoOpVisitor is a visitor implementation that does nothing. All methods +// unconditionally return nil. This can be embedded into a struct to make that +// struct implement the Visitor interface, and only the relevant visit methods +// then need to be implemented on the struct. +type NoOpVisitor struct{} + +var _ Visitor = NoOpVisitor{} + +func (n NoOpVisitor) VisitFileNode(_ *FileNode) error { + return nil +} + +func (n NoOpVisitor) VisitSyntaxNode(_ *SyntaxNode) error { + return nil +} + +func (n NoOpVisitor) VisitPackageNode(_ *PackageNode) error { + return nil +} + +func (n NoOpVisitor) VisitImportNode(_ *ImportNode) error { + return nil +} + +func (n NoOpVisitor) VisitOptionNode(_ *OptionNode) error { + return nil +} + +func (n NoOpVisitor) VisitOptionNameNode(_ *OptionNameNode) error { + return nil +} + +func (n NoOpVisitor) VisitFieldReferenceNode(_ *FieldReferenceNode) error { + return nil +} + +func (n NoOpVisitor) VisitCompactOptionsNode(_ *CompactOptionsNode) error { + return nil +} + +func (n NoOpVisitor) VisitMessageNode(_ *MessageNode) error { + return nil +} + +func (n NoOpVisitor) VisitExtendNode(_ *ExtendNode) error { + return nil +} + +func (n NoOpVisitor) VisitExtensionRangeNode(_ *ExtensionRangeNode) error { + return nil +} + +func (n NoOpVisitor) VisitReservedNode(_ *ReservedNode) error { + return nil +} + +func (n NoOpVisitor) VisitRangeNode(_ *RangeNode) error { + return nil +} + +func (n NoOpVisitor) VisitFieldNode(_ *FieldNode) error { + return nil +} + +func (n NoOpVisitor) VisitGroupNode(_ *GroupNode) error { + return nil +} + +func (n NoOpVisitor) VisitMapFieldNode(_ *MapFieldNode) error { + return nil +} + +func (n NoOpVisitor) VisitMapTypeNode(_ *MapTypeNode) error { + return nil +} + +func (n NoOpVisitor) VisitOneOfNode(_ *OneOfNode) error { + return nil +} + +func (n NoOpVisitor) VisitEnumNode(_ *EnumNode) error { + return nil +} + +func (n NoOpVisitor) VisitEnumValueNode(_ *EnumValueNode) error { + return nil +} + +func (n NoOpVisitor) VisitServiceNode(_ *ServiceNode) error { + return nil +} + +func (n NoOpVisitor) VisitRPCNode(_ *RPCNode) error { + return nil +} + +func (n NoOpVisitor) VisitRPCTypeNode(_ *RPCTypeNode) error { + return nil +} + +func (n NoOpVisitor) VisitIdentNode(_ *IdentNode) error { + return nil +} + +func (n NoOpVisitor) VisitCompoundIdentNode(_ *CompoundIdentNode) error { + return nil +} + +func (n NoOpVisitor) VisitStringLiteralNode(_ *StringLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitCompoundStringLiteralNode(_ *CompoundStringLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitUintLiteralNode(_ *UintLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitPositiveUintLiteralNode(_ *PositiveUintLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitNegativeIntLiteralNode(_ *NegativeIntLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitFloatLiteralNode(_ *FloatLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitSpecialFloatLiteralNode(_ *SpecialFloatLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitSignedFloatLiteralNode(_ *SignedFloatLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitArrayLiteralNode(_ *ArrayLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitMessageLiteralNode(_ *MessageLiteralNode) error { + return nil +} + +func (n NoOpVisitor) VisitMessageFieldNode(_ *MessageFieldNode) error { + return nil +} + +func (n NoOpVisitor) VisitKeywordNode(_ *KeywordNode) error { + return nil +} + +func (n NoOpVisitor) VisitRuneNode(_ *RuneNode) error { + return nil +} + +func (n NoOpVisitor) VisitEmptyDeclNode(_ *EmptyDeclNode) error { + return nil +} + +// SimpleVisitor is a visitor implementation that uses numerous function fields. +// If a relevant function field is not nil, then it will be invoked when a node +// is visited. +// +// In addition to a function for each concrete node type (and thus for each +// Visit* method of the Visitor interface), it also has function fields that +// accept interface types. So a visitor can, for example, easily treat all +// ValueNodes uniformly by providing a non-nil value for DoVisitValueNode +// instead of having to supply values for the various DoVisit*Node methods +// corresponding to all types that implement ValueNode. +// +// The most specific function provided that matches a given node is the one that +// will be invoked. For example, DoVisitStringValueNode will be called if +// present and applicable before DoVisitValueNode. Similarly, DoVisitValueNode +// would be called before DoVisitTerminalNode or DoVisitCompositeNode. The +// DoVisitNode is the most generic function and is called only if no more +// specific function is present for a given node type. +// +// The *UintLiteralNode type implements both IntValueNode and FloatValueNode. +// In this case, the DoVisitIntValueNode function is considered more specific +// than DoVisitFloatValueNode, so will be preferred if present. +// +// Similarly, *MapFieldNode and *GroupNode implement both FieldDeclNode and +// MessageDeclNode. In this case, the DoVisitFieldDeclNode function is +// treated as more specific than DoVisitMessageDeclNode, so will be preferred +// if both are present. +type SimpleVisitor struct { + DoVisitFileNode func(*FileNode) error + DoVisitSyntaxNode func(*SyntaxNode) error + DoVisitPackageNode func(*PackageNode) error + DoVisitImportNode func(*ImportNode) error + DoVisitOptionNode func(*OptionNode) error + DoVisitOptionNameNode func(*OptionNameNode) error + DoVisitFieldReferenceNode func(*FieldReferenceNode) error + DoVisitCompactOptionsNode func(*CompactOptionsNode) error + DoVisitMessageNode func(*MessageNode) error + DoVisitExtendNode func(*ExtendNode) error + DoVisitExtensionRangeNode func(*ExtensionRangeNode) error + DoVisitReservedNode func(*ReservedNode) error + DoVisitRangeNode func(*RangeNode) error + DoVisitFieldNode func(*FieldNode) error + DoVisitGroupNode func(*GroupNode) error + DoVisitMapFieldNode func(*MapFieldNode) error + DoVisitMapTypeNode func(*MapTypeNode) error + DoVisitOneOfNode func(*OneOfNode) error + DoVisitEnumNode func(*EnumNode) error + DoVisitEnumValueNode func(*EnumValueNode) error + DoVisitServiceNode func(*ServiceNode) error + DoVisitRPCNode func(*RPCNode) error + DoVisitRPCTypeNode func(*RPCTypeNode) error + DoVisitIdentNode func(*IdentNode) error + DoVisitCompoundIdentNode func(*CompoundIdentNode) error + DoVisitStringLiteralNode func(*StringLiteralNode) error + DoVisitCompoundStringLiteralNode func(*CompoundStringLiteralNode) error + DoVisitUintLiteralNode func(*UintLiteralNode) error + DoVisitPositiveUintLiteralNode func(*PositiveUintLiteralNode) error + DoVisitNegativeIntLiteralNode func(*NegativeIntLiteralNode) error + DoVisitFloatLiteralNode func(*FloatLiteralNode) error + DoVisitSpecialFloatLiteralNode func(*SpecialFloatLiteralNode) error + DoVisitSignedFloatLiteralNode func(*SignedFloatLiteralNode) error + DoVisitArrayLiteralNode func(*ArrayLiteralNode) error + DoVisitMessageLiteralNode func(*MessageLiteralNode) error + DoVisitMessageFieldNode func(*MessageFieldNode) error + DoVisitKeywordNode func(*KeywordNode) error + DoVisitRuneNode func(*RuneNode) error + DoVisitEmptyDeclNode func(*EmptyDeclNode) error + + DoVisitFieldDeclNode func(FieldDeclNode) error + DoVisitMessageDeclNode func(MessageDeclNode) error + + DoVisitIdentValueNode func(IdentValueNode) error + DoVisitStringValueNode func(StringValueNode) error + DoVisitIntValueNode func(IntValueNode) error + DoVisitFloatValueNode func(FloatValueNode) error + DoVisitValueNode func(ValueNode) error + + DoVisitTerminalNode func(TerminalNode) error + DoVisitCompositeNode func(CompositeNode) error + DoVisitNode func(Node) error +} + +var _ Visitor = (*SimpleVisitor)(nil) + +func (b *SimpleVisitor) visitInterface(node Node) error { + switch n := node.(type) { + case FieldDeclNode: + if b.DoVisitFieldDeclNode != nil { + return b.DoVisitFieldDeclNode(n) + } + // *MapFieldNode and *GroupNode both implement both FieldDeclNode and + // MessageDeclNode, so handle other case here + if fn, ok := n.(MessageDeclNode); ok && b.DoVisitMessageDeclNode != nil { + return b.DoVisitMessageDeclNode(fn) + } + case MessageDeclNode: + if b.DoVisitMessageDeclNode != nil { + return b.DoVisitMessageDeclNode(n) + } + case IdentValueNode: + if b.DoVisitIdentValueNode != nil { + return b.DoVisitIdentValueNode(n) + } + case StringValueNode: + if b.DoVisitStringValueNode != nil { + return b.DoVisitStringValueNode(n) + } + case IntValueNode: + if b.DoVisitIntValueNode != nil { + return b.DoVisitIntValueNode(n) + } + // *UintLiteralNode implements both IntValueNode and FloatValueNode, + // so handle other case here + if fn, ok := n.(FloatValueNode); ok && b.DoVisitFloatValueNode != nil { + return b.DoVisitFloatValueNode(fn) + } + case FloatValueNode: + if b.DoVisitFloatValueNode != nil { + return b.DoVisitFloatValueNode(n) + } + } + + if n, ok := node.(ValueNode); ok && b.DoVisitValueNode != nil { + return b.DoVisitValueNode(n) + } + + switch n := node.(type) { + case TerminalNode: + if b.DoVisitTerminalNode != nil { + return b.DoVisitTerminalNode(n) + } + case CompositeNode: + if b.DoVisitCompositeNode != nil { + return b.DoVisitCompositeNode(n) + } + } + + if b.DoVisitNode != nil { + return b.DoVisitNode(node) + } + + return nil +} + +func (b *SimpleVisitor) VisitFileNode(node *FileNode) error { + if b.DoVisitFileNode != nil { + return b.DoVisitFileNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitSyntaxNode(node *SyntaxNode) error { + if b.DoVisitSyntaxNode != nil { + return b.DoVisitSyntaxNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitPackageNode(node *PackageNode) error { + if b.DoVisitPackageNode != nil { + return b.DoVisitPackageNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitImportNode(node *ImportNode) error { + if b.DoVisitImportNode != nil { + return b.DoVisitImportNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitOptionNode(node *OptionNode) error { + if b.DoVisitOptionNode != nil { + return b.DoVisitOptionNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitOptionNameNode(node *OptionNameNode) error { + if b.DoVisitOptionNameNode != nil { + return b.DoVisitOptionNameNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitFieldReferenceNode(node *FieldReferenceNode) error { + if b.DoVisitFieldReferenceNode != nil { + return b.DoVisitFieldReferenceNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitCompactOptionsNode(node *CompactOptionsNode) error { + if b.DoVisitCompactOptionsNode != nil { + return b.DoVisitCompactOptionsNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitMessageNode(node *MessageNode) error { + if b.DoVisitMessageNode != nil { + return b.DoVisitMessageNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitExtendNode(node *ExtendNode) error { + if b.DoVisitExtendNode != nil { + return b.DoVisitExtendNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitExtensionRangeNode(node *ExtensionRangeNode) error { + if b.DoVisitExtensionRangeNode != nil { + return b.DoVisitExtensionRangeNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitReservedNode(node *ReservedNode) error { + if b.DoVisitReservedNode != nil { + return b.DoVisitReservedNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitRangeNode(node *RangeNode) error { + if b.DoVisitRangeNode != nil { + return b.DoVisitRangeNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitFieldNode(node *FieldNode) error { + if b.DoVisitFieldNode != nil { + return b.DoVisitFieldNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitGroupNode(node *GroupNode) error { + if b.DoVisitGroupNode != nil { + return b.DoVisitGroupNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitMapFieldNode(node *MapFieldNode) error { + if b.DoVisitMapFieldNode != nil { + return b.DoVisitMapFieldNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitMapTypeNode(node *MapTypeNode) error { + if b.DoVisitMapTypeNode != nil { + return b.DoVisitMapTypeNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitOneOfNode(node *OneOfNode) error { + if b.DoVisitOneOfNode != nil { + return b.DoVisitOneOfNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitEnumNode(node *EnumNode) error { + if b.DoVisitEnumNode != nil { + return b.DoVisitEnumNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitEnumValueNode(node *EnumValueNode) error { + if b.DoVisitEnumValueNode != nil { + return b.DoVisitEnumValueNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitServiceNode(node *ServiceNode) error { + if b.DoVisitServiceNode != nil { + return b.DoVisitServiceNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitRPCNode(node *RPCNode) error { + if b.DoVisitRPCNode != nil { + return b.DoVisitRPCNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitRPCTypeNode(node *RPCTypeNode) error { + if b.DoVisitRPCTypeNode != nil { + return b.DoVisitRPCTypeNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitIdentNode(node *IdentNode) error { + if b.DoVisitIdentNode != nil { + return b.DoVisitIdentNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitCompoundIdentNode(node *CompoundIdentNode) error { + if b.DoVisitCompoundIdentNode != nil { + return b.DoVisitCompoundIdentNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitStringLiteralNode(node *StringLiteralNode) error { + if b.DoVisitStringLiteralNode != nil { + return b.DoVisitStringLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitCompoundStringLiteralNode(node *CompoundStringLiteralNode) error { + if b.DoVisitCompoundStringLiteralNode != nil { + return b.DoVisitCompoundStringLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitUintLiteralNode(node *UintLiteralNode) error { + if b.DoVisitUintLiteralNode != nil { + return b.DoVisitUintLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitPositiveUintLiteralNode(node *PositiveUintLiteralNode) error { + if b.DoVisitPositiveUintLiteralNode != nil { + return b.DoVisitPositiveUintLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitNegativeIntLiteralNode(node *NegativeIntLiteralNode) error { + if b.DoVisitNegativeIntLiteralNode != nil { + return b.DoVisitNegativeIntLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitFloatLiteralNode(node *FloatLiteralNode) error { + if b.DoVisitFloatLiteralNode != nil { + return b.DoVisitFloatLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitSpecialFloatLiteralNode(node *SpecialFloatLiteralNode) error { + if b.DoVisitSpecialFloatLiteralNode != nil { + return b.DoVisitSpecialFloatLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitSignedFloatLiteralNode(node *SignedFloatLiteralNode) error { + if b.DoVisitSignedFloatLiteralNode != nil { + return b.DoVisitSignedFloatLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitArrayLiteralNode(node *ArrayLiteralNode) error { + if b.DoVisitArrayLiteralNode != nil { + return b.DoVisitArrayLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitMessageLiteralNode(node *MessageLiteralNode) error { + if b.DoVisitMessageLiteralNode != nil { + return b.DoVisitMessageLiteralNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitMessageFieldNode(node *MessageFieldNode) error { + if b.DoVisitMessageFieldNode != nil { + return b.DoVisitMessageFieldNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitKeywordNode(node *KeywordNode) error { + if b.DoVisitKeywordNode != nil { + return b.DoVisitKeywordNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitRuneNode(node *RuneNode) error { + if b.DoVisitRuneNode != nil { + return b.DoVisitRuneNode(node) + } + return b.visitInterface(node) +} + +func (b *SimpleVisitor) VisitEmptyDeclNode(node *EmptyDeclNode) error { + if b.DoVisitEmptyDeclNode != nil { + return b.DoVisitEmptyDeclNode(node) + } + return b.visitInterface(node) +} diff --git a/vendor/github.com/bufbuild/protocompile/compiler.go b/vendor/github.com/bufbuild/protocompile/compiler.go new file mode 100644 index 0000000..0bb7f18 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/compiler.go @@ -0,0 +1,648 @@ +// Copyright 2020-2022 Buf Technologies, 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 protocompile + +import ( + "bytes" + "context" + "fmt" + "io" + "runtime" + "runtime/debug" + "strings" + "sync" + + "golang.org/x/sync/semaphore" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/linker" + "github.com/bufbuild/protocompile/options" + "github.com/bufbuild/protocompile/parser" + "github.com/bufbuild/protocompile/reporter" + "github.com/bufbuild/protocompile/sourceinfo" +) + +// Compiler handles compilation tasks, to turn protobuf source files, or other +// intermediate representations, into fully linked descriptors. +// +// The compilation process involves five steps for each protobuf source file: +// 1. Parsing the source into an AST (abstract syntax tree). +// 2. Converting the AST into descriptor protos. +// 3. Linking descriptor protos into fully linked descriptors. +// 4. Interpreting options. +// 5. Computing source code information. +// +// With fully linked descriptors, code generators and protoc plugins could be +// invoked (though that step is not implemented by this package and not a +// responsibility of this type). +type Compiler struct { + // Resolves path/file names into source code or intermediate representations + // for protobuf source files. This is how the compiler loads the files to + // be compiled as well as all dependencies. This field is the only required + // field. + Resolver Resolver + // The maximum parallelism to use when compiling. If unspecified or set to + // a non-positive value, then min(runtime.NumCPU(), runtime.GOMAXPROCS(-1)) + // will be used. + MaxParallelism int + // A custom error and warning reporter. If unspecified a default reporter + // is used. A default reporter fails the compilation after encountering any + // errors and ignores all warnings. + Reporter reporter.Reporter + + // If unspecified or set to SourceInfoNone, source code information will not + // be included in the resulting descriptors. Source code information is + // metadata in the file descriptor that provides position information (i.e. + // the line and column where file elements were defined) as well as comments. + // + // If set to SourceInfoStandard, normal source code information will be + // included in the resulting descriptors. This matches the output of protoc + // (the reference compiler for Protocol Buffers). If set to + // SourceInfoMoreComments, the resulting descriptor will attempt to preserve + // as many comments as possible, for all elements in the file, not just for + // complete declarations. + // + // If Resolver returns descriptors or descriptor protos for a file, then + // those descriptors will not be modified. If they do not already include + // source code info, they will be left that way when the compile operation + // concludes. Similarly, if they already have source code info but this flag + // is false, existing info will be left in place. + SourceInfoMode SourceInfoMode + + // If true, ASTs are retained in compilation results for which an AST was + // constructed. So any linker.Result value in the resulting compiled files + // will have an AST, in addition to descriptors. If left false, the AST + // will be removed as soon as it's no longer needed. This can help reduce + // total memory usage for operations involving a large number of files. + RetainASTs bool +} + +// SourceInfoMode indicates how source code info is generated by a Compiler. +type SourceInfoMode int + +const ( + // SourceInfoNone indicates that no source code info is generated. + SourceInfoNone = SourceInfoMode(iota) + // SourceInfoStandard indicates that the standard source code info is + // generated, which includes comments only for complete declarations. + SourceInfoStandard + // SourceInfoExtraComments indicates that source code info is generated + // and will include comments for all elements (more comments than would + // be found in a descriptor produced by protoc). + SourceInfoExtraComments +) + +// Compile compiles the given file names into fully-linked descriptors. The +// compiler's resolver is used to locate source code (or intermediate artifacts +// such as parsed ASTs or descriptor protos) and then do what is necessary to +// transform that into descriptors (parsing, linking, etc). +// +// Elements in the given returned files will implement [linker.Result] if the +// compiler had to link it (i.e. the resolver provided either a descriptor proto +// or source code). That result will contain a full AST for the file if the +// compiler had to parse it (i.e. the resolver provided source code for that +// file). +func (c *Compiler) Compile(ctx context.Context, files ...string) (linker.Files, error) { + if len(files) == 0 { + return nil, nil + } + + ctx, cancel := context.WithCancel(ctx) + defer cancel() + + par := c.MaxParallelism + if par <= 0 { + par = runtime.GOMAXPROCS(-1) + cpus := runtime.NumCPU() + if par > cpus { + par = cpus + } + } + + h := reporter.NewHandler(c.Reporter) + + e := executor{ + c: c, + h: h, + s: semaphore.NewWeighted(int64(par)), + cancel: cancel, + sym: &linker.Symbols{}, + results: map[string]*result{}, + } + + // We lock now and create all tasks under lock to make sure that no + // async task can create a duplicate result. For example, if files + // contains both "foo.proto" and "bar.proto", then there is a race + // after we start compiling "foo.proto" between this loop and the + // async compilation task to create the result for "bar.proto". But + // we need to know if the file is directly requested for compilation, + // so we need this loop to define the result. So this loop holds the + // lock the whole time so async tasks can't create a result first. + results := make([]*result, len(files)) + func() { + e.mu.Lock() + defer e.mu.Unlock() + for i, f := range files { + results[i] = e.compileLocked(ctx, f, true) + } + }() + + descs := make([]linker.File, len(files)) + var firstError error + for i, r := range results { + select { + case <-r.ready: + case <-ctx.Done(): + return nil, ctx.Err() + } + if r.err != nil { + if firstError == nil { + firstError = r.err + } + } + descs[i] = r.res + } + + if err := h.Error(); err != nil { + return descs, err + } + // this should probably never happen; if any task returned an + // error, h.Error() should be non-nil + return descs, firstError +} + +type result struct { + name string + ready chan struct{} + + // true if this file was explicitly provided to the compiler; otherwise + // this file is an import that is implicitly included + explicitFile bool + + // produces a linker.File or error, only available when ready is closed + res linker.File + err error + + mu sync.Mutex + // the results that are dependencies of this result; this result is + // blocked, waiting on these dependencies to complete + blockedOn []string +} + +func (r *result) fail(err error) { + r.err = err + close(r.ready) +} + +func (r *result) complete(f linker.File) { + r.res = f + close(r.ready) +} + +func (r *result) setBlockedOn(deps []string) { + r.mu.Lock() + defer r.mu.Unlock() + r.blockedOn = deps +} + +func (r *result) getBlockedOn() []string { + r.mu.Lock() + defer r.mu.Unlock() + return r.blockedOn +} + +type executor struct { + c *Compiler + h *reporter.Handler + s *semaphore.Weighted + cancel context.CancelFunc + sym *linker.Symbols + + descriptorProtoCheck sync.Once + descriptorProtoIsCustom bool + + mu sync.Mutex + results map[string]*result +} + +func (e *executor) compile(ctx context.Context, file string) *result { + e.mu.Lock() + defer e.mu.Unlock() + + return e.compileLocked(ctx, file, false) +} + +func (e *executor) compileLocked(ctx context.Context, file string, explicitFile bool) *result { + r := e.results[file] + if r != nil { + return r + } + + r = &result{ + name: file, + ready: make(chan struct{}), + explicitFile: explicitFile, + } + e.results[file] = r + go func() { + defer func() { + if p := recover(); p != nil { + if r.err == nil { + // TODO: strip top frames from stack trace so that the panic is + // the top of the trace? + panicErr := PanicError{File: file, Value: p, Stack: string(debug.Stack())} + r.fail(panicErr) + } + // TODO: if r.err != nil, then this task has already + // failed and there's nothing we can really do to + // communicate this panic to parent goroutine. This + // means the panic must have happened *after* the + // failure was already recorded (or during?) + // It would be nice to do something else here, like + // send the compiler an out-of-band error? Or log? + } + }() + e.doCompile(ctx, file, r) + }() + return r +} + +// PanicError is an error value that represents a recovered panic. It includes +// the value returned by recover() as well as the stack trace. +// +// This should generally only be seen if a Resolver implementation panics. +// +// An error returned by a Compiler may wrap a PanicError, so you may need to +// use errors.As(...) to access panic details. +type PanicError struct { + // The file that was being processed when the panic occurred + File string + // The value returned by recover() + Value interface{} + // A formatted stack trace + Stack string +} + +// Error implements the error interface. It does NOT include the stack trace. +// Use a type assertion and query the Stack field directly to access that. +func (p PanicError) Error() string { + return fmt.Sprintf("panic handling %q: %v", p.File, p.Value) +} + +type errFailedToResolve struct { + err error + path string +} + +func (e errFailedToResolve) Error() string { + errMsg := e.err.Error() + if strings.Contains(errMsg, e.path) { + // underlying error already refers to path in question, so we don't need to add more context + return errMsg + } + return fmt.Sprintf("could not resolve path %q: %s", e.path, e.err.Error()) +} + +func (e errFailedToResolve) Unwrap() error { + return e.err +} + +func (e *executor) hasOverrideDescriptorProto() bool { + e.descriptorProtoCheck.Do(func() { + defer func() { + // ignore a panic here; just assume no custom descriptor.proto + _ = recover() + }() + res, err := e.c.Resolver.FindFileByPath(descriptorProtoPath) + e.descriptorProtoIsCustom = err == nil && res.Desc != standardImports[descriptorProtoPath] + }) + return e.descriptorProtoIsCustom +} + +func (e *executor) doCompile(ctx context.Context, file string, r *result) { + t := task{e: e, h: e.h.SubHandler(), r: r} + if err := e.s.Acquire(ctx, 1); err != nil { + r.fail(err) + return + } + defer t.release() + + sr, err := e.c.Resolver.FindFileByPath(file) + if err != nil { + r.fail(errFailedToResolve{err: err, path: file}) + return + } + + defer func() { + // if results included a result, don't leave it open if it can be closed + if sr.Source == nil { + return + } + if c, ok := sr.Source.(io.Closer); ok { + _ = c.Close() + } + }() + + desc, err := t.asFile(ctx, file, sr) + if err != nil { + r.fail(err) + return + } + r.complete(desc) +} + +// A compilation task. The executor has a semaphore that limits the number +// of concurrent, running tasks. +type task struct { + e *executor + + // handler for this task + h *reporter.Handler + + // If true, this task needs to acquire a semaphore permit before running. + // If false, this task needs to release its semaphore permit on completion. + released bool + + // the result that is populated by this task + r *result +} + +func (t *task) release() { + if !t.released { + t.e.s.Release(1) + t.released = true + } +} + +const descriptorProtoPath = "google/protobuf/descriptor.proto" + +func (t *task) asFile(ctx context.Context, name string, r SearchResult) (linker.File, error) { + if r.Desc != nil { + if r.Desc.Path() != name { + return nil, fmt.Errorf("search result for %q returned descriptor for %q", name, r.Desc.Path()) + } + return linker.NewFileRecursive(r.Desc) + } + + parseRes, err := t.asParseResult(name, r) + if err != nil { + return nil, err + } + if linkRes, ok := parseRes.(linker.Result); ok { + // if resolver returned a parse result that was actually a link result, + // use the link result directly (no other steps needed) + return linkRes, nil + } + + var deps []linker.File + fileDescriptorProto := parseRes.FileDescriptorProto() + var wantsDescriptorProto bool + imports := fileDescriptorProto.Dependency + + if t.e.hasOverrideDescriptorProto() { + // we only consider implicitly including descriptor.proto if it's overridden + if name != descriptorProtoPath { + var includesDescriptorProto bool + for _, dep := range fileDescriptorProto.Dependency { + if dep == descriptorProtoPath { + includesDescriptorProto = true + break + } + } + if !includesDescriptorProto { + wantsDescriptorProto = true + // make a defensive copy so we don't inadvertently mutate + // slice's backing array when adding this implicit dep + importsCopy := make([]string, len(imports)+1) + copy(importsCopy, imports) + importsCopy[len(imports)] = descriptorProtoPath + imports = importsCopy + } + } + } + + if len(imports) > 0 { + t.r.setBlockedOn(imports) + + results := make([]*result, len(fileDescriptorProto.Dependency)) + checked := map[string]struct{}{} + for i, dep := range fileDescriptorProto.Dependency { + pos := findImportPos(parseRes, dep) + if name == dep { + // doh! file imports itself + handleImportCycle(t.h, pos, []string{name}, dep) + return nil, t.h.Error() + } + + res := t.e.compile(ctx, dep) + // check for dependency cycle to prevent deadlock + if err := t.e.checkForDependencyCycle(res, []string{name, dep}, pos, checked); err != nil { + return nil, err + } + results[i] = res + } + capacity := len(results) + if wantsDescriptorProto { + capacity++ + } + deps = make([]linker.File, len(results), capacity) + var descriptorProtoRes *result + if wantsDescriptorProto { + descriptorProtoRes = t.e.compile(ctx, descriptorProtoPath) + } + + // release our semaphore so dependencies can be processed w/out risk of deadlock + t.e.s.Release(1) + t.released = true + + // now we wait for them all to be computed + for i, res := range results { + select { + case <-res.ready: + if res.err != nil { + if rerr, ok := res.err.(errFailedToResolve); ok { + // We don't report errors to get file from resolver to handler since + // it's usually considered immediately fatal. However, if the reason + // we were resolving is due to an import, turn this into an error with + // source position that pinpoints the import statement and report it. + return nil, reporter.Error(findImportPos(parseRes, res.name), rerr) + } + return nil, res.err + } + deps[i] = res.res + case <-ctx.Done(): + return nil, ctx.Err() + } + } + if descriptorProtoRes != nil { + select { + case <-descriptorProtoRes.ready: + // descriptor.proto wasn't explicitly imported, so we can ignore a failure + if descriptorProtoRes.err == nil { + deps = append(deps, descriptorProtoRes.res) + } + case <-ctx.Done(): + return nil, ctx.Err() + } + } + + // all deps resolved + t.r.setBlockedOn(nil) + // reacquire semaphore so we can proceed + if err := t.e.s.Acquire(ctx, 1); err != nil { + return nil, err + } + t.released = false + } + + return t.link(parseRes, deps) +} + +func (e *executor) checkForDependencyCycle(res *result, sequence []string, pos ast.SourcePos, checked map[string]struct{}) error { + if _, ok := checked[res.name]; ok { + // already checked this one + return nil + } + checked[res.name] = struct{}{} + deps := res.getBlockedOn() + for _, dep := range deps { + // is this a cycle? + for _, file := range sequence { + if file == dep { + handleImportCycle(e.h, pos, sequence, dep) + return e.h.Error() + } + } + + e.mu.Lock() + depRes := e.results[dep] + e.mu.Unlock() + if depRes == nil { + continue + } + if err := e.checkForDependencyCycle(depRes, append(sequence, dep), pos, checked); err != nil { + return err + } + } + return nil +} + +func handleImportCycle(h *reporter.Handler, pos ast.SourcePos, importSequence []string, dep string) { + var buf bytes.Buffer + buf.WriteString("cycle found in imports: ") + for _, imp := range importSequence { + fmt.Fprintf(&buf, "%q -> ", imp) + } + fmt.Fprintf(&buf, "%q", dep) + // error is saved and returned in caller + h.HandleErrorf(pos, buf.String()) //nolint:errcheck +} + +func findImportPos(res parser.Result, dep string) ast.SourcePos { + root := res.AST() + if root == nil { + return ast.UnknownPos(res.FileNode().Name()) + } + for _, decl := range root.Decls { + if imp, ok := decl.(*ast.ImportNode); ok { + if imp.Name.AsString() == dep { + return root.NodeInfo(imp.Name).Start() + } + } + } + // this should never happen... + return ast.UnknownPos(res.FileNode().Name()) +} + +func (t *task) link(parseRes parser.Result, deps linker.Files) (linker.File, error) { + file, err := linker.Link(parseRes, deps, t.e.sym, t.h) + if err != nil { + return nil, err + } + optsIndex, err := options.InterpretOptions(file, t.h) + if err != nil { + return nil, err + } + // now that options are interpreted, we can do some additional checks + if err := file.ValidateOptions(t.h); err != nil { + return nil, err + } + if t.r.explicitFile { + file.CheckForUnusedImports(t.h) + } + + if needsSourceInfo(parseRes, t.e.c.SourceInfoMode) { + switch t.e.c.SourceInfoMode { + case SourceInfoStandard: + parseRes.FileDescriptorProto().SourceCodeInfo = sourceinfo.GenerateSourceInfo(parseRes.AST(), optsIndex) + case SourceInfoExtraComments: + parseRes.FileDescriptorProto().SourceCodeInfo = sourceinfo.GenerateSourceInfoWithExtraComments(parseRes.AST(), optsIndex) + } + file.PopulateSourceCodeInfo() + } + + if !t.e.c.RetainASTs { + file.RemoveAST() + } + return file, nil +} + +func needsSourceInfo(parseRes parser.Result, mode SourceInfoMode) bool { + return mode != SourceInfoNone && parseRes.AST() != nil && parseRes.FileDescriptorProto().SourceCodeInfo == nil +} + +func (t *task) asParseResult(name string, r SearchResult) (parser.Result, error) { + if r.ParseResult != nil { + if r.ParseResult.FileDescriptorProto().GetName() != name { + return nil, fmt.Errorf("search result for %q returned descriptor for %q", name, r.ParseResult.FileDescriptorProto().GetName()) + } + // If the file descriptor needs linking, it will be mutated during the + // next stage. So to make anu mutations thread-safe, we must make a + // defensive copy. + res := parser.Clone(r.ParseResult) + return res, nil + } + + if r.Proto != nil { + if r.Proto.GetName() != name { + return nil, fmt.Errorf("search result for %q returned descriptor for %q", name, r.Proto.GetName()) + } + // If the file descriptor needs linking, it will be mutated during the + // next stage. So to make any mutations thread-safe, we must make a + // defensive copy. + descProto := proto.Clone(r.Proto).(*descriptorpb.FileDescriptorProto) //nolint:errcheck + return parser.ResultWithoutAST(descProto), nil + } + + file, err := t.asAST(name, r) + if err != nil { + return nil, err + } + + return parser.ResultFromAST(file, true, t.h) +} + +func (t *task) asAST(name string, r SearchResult) (*ast.FileNode, error) { + if r.AST != nil { + if r.AST.Name() != name { + return nil, fmt.Errorf("search result for %q returned descriptor for %q", name, r.AST.Name()) + } + return r.AST, nil + } + + return parser.Parse(name, r.Source, t.h) +} diff --git a/vendor/github.com/bufbuild/protocompile/doc.go b/vendor/github.com/bufbuild/protocompile/doc.go new file mode 100644 index 0000000..661ccc4 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/doc.go @@ -0,0 +1,82 @@ +// Copyright 2020-2022 Buf Technologies, 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 protocompile provides the entry point for a high performance +// native Go protobuf compiler. "Compile" in this case just means parsing +// and validating source and generating fully-linked descriptors in the end. +// Unlike the protoc command-line tool, this package does not try to use the +// descriptors to perform code generation. +// +// The various sub-packages represent the various compile phases and contain +// models for the intermediate results. Those phases follow: +// 1. Parse into AST. +// Also see: parser.Parse +// 2. Convert AST to unlinked descriptor protos. +// Also see: parser.ResultFromAST +// 3. Link descriptor protos into "rich" descriptors. +// Also see: linker.Link +// 4. Interpret custom options. +// Also see: options.InterpretOptions +// 5. Generate source code info. +// Also see: sourceinfo.GenerateSourceInfo +// +// This package provides an easy-to-use interface that does all the relevant +// phases, based on the inputs given. If an input is provided as source, all +// phases apply. If an input is provided as a descriptor proto, only phases +// 3 to 5 apply. Nothing is necessary if provided a linked descriptor (which +// is usually only the case for select system dependencies). +// +// This package is also capable of taking advantage of multiple CPU cores, so +// a compilation involving thousands of files can be done very quickly by +// compiling things in parallel. +// +// # Resolvers +// +// A Resolver is how the compiler locates artifacts that are inputs to the +// compilation. For example, it can load protobuf source code that must be +// processed. A Resolver could also supply some already-compiled dependencies +// as fully-linked descriptors, alleviating the need to re-compile them. +// +// A Resolver can provide any of the following in response to a query for an +// input. +// - Source code: If a resolver answers a query with protobuf source, the +// compiler will parse and compile it. +// - AST: If a resolver answers a query with an AST, the parsing step can be +// skipped, and the rest of the compilation steps will be applied. +// - Descriptor proto: If a resolver answers a query with an unlinked proto, +// only the other compilation steps, including linking, need to be applied. +// - Descriptor: If a resolver answers a query with a fully-linked descriptor, +// nothing further needs to be done. The descriptor is used as-is. +// +// Compilation will use the Resolver to load the files that are to be compiled +// and also to load all dependencies (i.e. other files imported by those being +// compiled). +// +// # Compiler +// +// A Compiler accepts a list of file names and produces the list of descriptors. +// A Compiler has several fields that control how it works but only the Resolver +// field is required. A minimal Compiler, that resolves files by loading them +// from the file system based on the current working directory, can be had with +// the following simple snippet: +// +// compiler := protocompile.Compiler{ +// Resolver: &protocompile.SourceResolver{}, +// } +// +// This minimal Compiler will use default parallelism, equal to the number of +// CPU cores detected; it will not generate source code info in the resulting +// descriptors; and it will fail fast at the first sign of any error. All of +// these aspects can be customized by setting other fields. +package protocompile diff --git a/vendor/github.com/bufbuild/protocompile/go.work b/vendor/github.com/bufbuild/protocompile/go.work new file mode 100644 index 0000000..de1c41a --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/go.work @@ -0,0 +1,7 @@ +go 1.19 + +use ( + . + ./internal/benchmarks + ./internal/tools +) diff --git a/vendor/github.com/bufbuild/protocompile/go.work.sum b/vendor/github.com/bufbuild/protocompile/go.work.sum new file mode 100644 index 0000000..6411d16 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/go.work.sum @@ -0,0 +1,408 @@ +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= +cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= +cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk= +cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc= +cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8= +cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc= +cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE= +cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0= +cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg= +cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk= +cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U= +cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= +cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA= +cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g= +cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek= +cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI= +cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc= +cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= +cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA= +cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc= +cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc= +cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM= +cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs= +cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE= +cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8= +cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM= +cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA= +cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4= +cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA= +cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA= +cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA= +cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc= +cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk= +cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4= +cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco= +cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E= +cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM= +cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8= +cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ= +cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28= +cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs= +cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY= +cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE= +cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc= +cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c h1:XImQJfpJLmGEEd8ll5yPVyL/aEvmgGHW4WYTyNseLOM= +github.com/jhump/protoreflect v1.13.1-0.20220928232736-101791cb1b4c/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI4tTg7puQFKI= +github.com/jhump/protoreflect v1.14.0 h1:MBbQK392K3u8NTLbKOCIi3XdI+y+c6yt5oMq0X3xviw= +github.com/jhump/protoreflect v1.14.0/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI4tTg7puQFKI= +github.com/jhump/protoreflect v1.14.1 h1:N88q7JkxTHWFEqReuTsYH1dPIwXxA0ITNQp7avLY10s= +github.com/jhump/protoreflect v1.14.1/go.mod h1:JytZfP5d0r8pVNLZvai7U/MCuTWITgrI4tTg7puQFKI= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd h1:e0TwkXOdbnH/1x5rc5MZ/VYyiZ4v+RdVfrGMqEwT68I= +google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a h1:GH6UPn3ixhWcKDhpnEC55S75cerLPdpp3hrhfKYjZgw= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c h1:QgY/XxIAIeccR+Ca/rDdKubLIU9rcJ3xfy1DC/Wd2Oo= +google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/bufbuild/protocompile/internal/message_context.go b/vendor/github.com/bufbuild/protocompile/internal/message_context.go new file mode 100644 index 0000000..134a05d --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/message_context.go @@ -0,0 +1,98 @@ +// Copyright 2020-2022 Buf Technologies, 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 internal + +import ( + "bytes" + "fmt" + + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" +) + +// ParsedFile wraps an optional AST and required FileDescriptorProto. +// This is used so types like parser.Result can be passed to this internal package avoiding circular imports. +// Additionally, it makes it less likely that users might specify one or the other. +type ParsedFile interface { + // AST returns the parsed abstract syntax tree. This returns nil if the + // Result was created without an AST. + AST() *ast.FileNode + // FileDescriptorProto returns the file descriptor proto. + FileDescriptorProto() *descriptorpb.FileDescriptorProto +} + +// MessageContext provides information about the location in a descriptor +// hierarchy, for adding context to warnings and error messages. +type MessageContext struct { + // The relevant file + File ParsedFile + + // The type and fully-qualified name of the element within the file. + ElementType string + ElementName string + + // If the element being processed is an option (or *in* an option) + // on the named element above, this will be non-nil. + Option *descriptorpb.UninterpretedOption + // If the element being processed is inside a message literal in an + // option value, this will be non-empty and represent a traversal + // to the element in question. + OptAggPath string +} + +func (c *MessageContext) String() string { + var ctx bytes.Buffer + if c.ElementType != "file" { + _, _ = fmt.Fprintf(&ctx, "%s %s: ", c.ElementType, c.ElementName) + } + if c.Option != nil && c.Option.Name != nil { + ctx.WriteString("option ") + writeOptionName(&ctx, c.Option.Name) + if c.File.AST() == nil { + // if we have no source position info, try to provide as much context + // as possible (if nodes != nil, we don't need this because any errors + // will actually have file and line numbers) + if c.OptAggPath != "" { + _, _ = fmt.Fprintf(&ctx, " at %s", c.OptAggPath) + } + } + ctx.WriteString(": ") + } + return ctx.String() +} + +func writeOptionName(buf *bytes.Buffer, parts []*descriptorpb.UninterpretedOption_NamePart) { + first := true + for _, p := range parts { + if first { + first = false + } else { + buf.WriteByte('.') + } + nm := p.GetNamePart() + if nm[0] == '.' { + // skip leading dot + nm = nm[1:] + } + if p.GetIsExtension() { + buf.WriteByte('(') + buf.WriteString(nm) + buf.WriteByte(')') + } else { + buf.WriteString(nm) + } + } +} diff --git a/vendor/github.com/bufbuild/protocompile/internal/norace.go b/vendor/github.com/bufbuild/protocompile/internal/norace.go new file mode 100644 index 0000000..ada2f5c --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/norace.go @@ -0,0 +1,19 @@ +// Copyright 2020-2022 Buf Technologies, 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. + +//go:build !race + +package internal + +const IsRace = false diff --git a/vendor/github.com/bufbuild/protocompile/internal/options.go b/vendor/github.com/bufbuild/protocompile/internal/options.go new file mode 100644 index 0000000..5586802 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/options.go @@ -0,0 +1,59 @@ +// Copyright 2020-2022 Buf Technologies, 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 internal + +import ( + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/reporter" +) + +type hasOptionNode interface { + OptionNode(part *descriptorpb.UninterpretedOption) ast.OptionDeclNode + FileNode() ast.FileDeclNode // needed in order to query for NodeInfo +} + +func FindOption(res hasOptionNode, handler *reporter.Handler, scope string, opts []*descriptorpb.UninterpretedOption, name string) (int, error) { + found := -1 + for i, opt := range opts { + if len(opt.Name) != 1 { + continue + } + if opt.Name[0].GetIsExtension() || opt.Name[0].GetNamePart() != name { + continue + } + if found >= 0 { + optNode := res.OptionNode(opt) + fn := res.FileNode() + node := optNode.GetName() + nodeInfo := fn.NodeInfo(node) + return -1, handler.HandleErrorf(nodeInfo.Start(), "%s: option %s cannot be defined more than once", scope, name) + } + found = i + } + return found, nil +} + +func RemoveOption(uo []*descriptorpb.UninterpretedOption, indexToRemove int) []*descriptorpb.UninterpretedOption { + switch { + case indexToRemove == 0: + return uo[1:] + case indexToRemove == len(uo)-1: + return uo[:len(uo)-1] + default: + return append(uo[:indexToRemove], uo[indexToRemove+1:]...) + } +} diff --git a/vendor/github.com/bufbuild/protocompile/internal/race.go b/vendor/github.com/bufbuild/protocompile/internal/race.go new file mode 100644 index 0000000..4a458a3 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/race.go @@ -0,0 +1,19 @@ +// Copyright 2020-2022 Buf Technologies, 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. + +//go:build race + +package internal + +const IsRace = true diff --git a/vendor/github.com/bufbuild/protocompile/internal/tags.go b/vendor/github.com/bufbuild/protocompile/internal/tags.go new file mode 100644 index 0000000..7e674c1 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/tags.go @@ -0,0 +1,243 @@ +// Copyright 2020-2022 Buf Technologies, 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 internal + +import "math" + +const ( + // MaxNormalTag is the maximum allowed tag number for a field in a normal message. + MaxNormalTag = 536870911 // 2^29 - 1 + + // MaxMessageSetTag is the maximum allowed tag number of a field in a message that + // uses the message set wire format. + MaxMessageSetTag = math.MaxInt32 - 1 + + // MaxTag is the maximum allowed tag number. (It is the same as MaxMessageSetTag + // since that is the absolute highest allowed.) + MaxTag = MaxMessageSetTag + + // SpecialReservedStart is the first tag in a range that is reserved and not + // allowed for use in message definitions. + SpecialReservedStart = 19000 + // SpecialReservedEnd is the last tag in a range that is reserved and not + // allowed for use in message definitions. + SpecialReservedEnd = 19999 + + // NB: It would be nice to use constants from generated code instead of + // hard-coding these here. But code-gen does not emit these as constants + // anywhere. The only places they appear in generated code are struct tags + // on fields of the generated descriptor protos. + + // FilePackageTag is the tag number of the package element in a file + // descriptor proto. + FilePackageTag = 2 + // FileDependencyTag is the tag number of the dependencies element in a + // file descriptor proto. + FileDependencyTag = 3 + // FileMessagesTag is the tag number of the messages element in a file + // descriptor proto. + FileMessagesTag = 4 + // FileEnumsTag is the tag number of the enums element in a file descriptor + // proto. + FileEnumsTag = 5 + // FileServicesTag is the tag number of the services element in a file + // descriptor proto. + FileServicesTag = 6 + // FileExtensionsTag is the tag number of the extensions element in a file + // descriptor proto. + FileExtensionsTag = 7 + // FileOptionsTag is the tag number of the options element in a file + // descriptor proto. + FileOptionsTag = 8 + // FileSourceCodeInfoTag is the tag number of the source code info element + // in a file descriptor proto. + FileSourceCodeInfoTag = 9 + // FilePublicDependencyTag is the tag number of the public dependency element + // in a file descriptor proto. + FilePublicDependencyTag = 10 + // FileWeakDependencyTag is the tag number of the weak dependency element + // in a file descriptor proto. + FileWeakDependencyTag = 11 + // FileSyntaxTag is the tag number of the syntax element in a file + // descriptor proto. + FileSyntaxTag = 12 + // MessageNameTag is the tag number of the name element in a message + // descriptor proto. + MessageNameTag = 1 + // MessageFieldsTag is the tag number of the fields element in a message + // descriptor proto. + MessageFieldsTag = 2 + // MessageNestedMessagesTag is the tag number of the nested messages + // element in a message descriptor proto. + MessageNestedMessagesTag = 3 + // MessageEnumsTag is the tag number of the enums element in a message + // descriptor proto. + MessageEnumsTag = 4 + // MessageExtensionRangesTag is the tag number of the extension ranges + // element in a message descriptor proto. + MessageExtensionRangesTag = 5 + // MessageExtensionsTag is the tag number of the extensions element in a + // message descriptor proto. + MessageExtensionsTag = 6 + // MessageOptionsTag is the tag number of the options element in a message + // descriptor proto. + MessageOptionsTag = 7 + // MessageOneOfsTag is the tag number of the one-ofs element in a message + // descriptor proto. + MessageOneOfsTag = 8 + // MessageReservedRangesTag is the tag number of the reserved ranges element + // in a message descriptor proto. + MessageReservedRangesTag = 9 + // MessageReservedNamesTag is the tag number of the reserved names element + // in a message descriptor proto. + MessageReservedNamesTag = 10 + // ExtensionRangeStartTag is the tag number of the start index in an + // extension range proto. + ExtensionRangeStartTag = 1 + // ExtensionRangeEndTag is the tag number of the end index in an + // extension range proto. + ExtensionRangeEndTag = 2 + // ExtensionRangeOptionsTag is the tag number of the options element in an + // extension range proto. + ExtensionRangeOptionsTag = 3 + // ReservedRangeStartTag is the tag number of the start index in a reserved + // range proto. This field number is the same for both "flavors" of reserved + // ranges: DescriptorProto.ReservedRange and EnumDescriptorProto.EnumReservedRange. + ReservedRangeStartTag = 1 + // ReservedRangeEndTag is the tag number of the end index in a reserved + // range proto. This field number is the same for both "flavors" of reserved + // ranges: DescriptorProto.ReservedRange and EnumDescriptorProto.EnumReservedRange. + ReservedRangeEndTag = 2 + // FieldNameTag is the tag number of the name element in a field descriptor + // proto. + FieldNameTag = 1 + // FieldExtendeeTag is the tag number of the extendee element in a field + // descriptor proto. + FieldExtendeeTag = 2 + // FieldNumberTag is the tag number of the number element in a field + // descriptor proto. + FieldNumberTag = 3 + // FieldLabelTag is the tag number of the label element in a field + // descriptor proto. + FieldLabelTag = 4 + // FieldTypeTag is the tag number of the type element in a field descriptor + // proto. + FieldTypeTag = 5 + // FieldTypeNameTag is the tag number of the type name element in a field + // descriptor proto. + FieldTypeNameTag = 6 + // FieldDefaultTag is the tag number of the default value element in a + // field descriptor proto. + FieldDefaultTag = 7 + // FieldOptionsTag is the tag number of the options element in a field + // descriptor proto. + FieldOptionsTag = 8 + // FieldOneofIndexTag is the tag number of the oneof index element in a + // field descriptor proto. + FieldOneofIndexTag = 9 + // FieldJSONNameTag is the tag number of the JSON name element in a field + // descriptor proto. + FieldJSONNameTag = 10 + // FieldProto3OptionalTag is the tag number of the proto3_optional element + // in a descriptor proto. + FieldProto3OptionalTag = 17 + // OneOfNameTag is the tag number of the name element in a one-of + // descriptor proto. + OneOfNameTag = 1 + // OneOfOptionsTag is the tag number of the options element in a one-of + // descriptor proto. + OneOfOptionsTag = 2 + // EnumNameTag is the tag number of the name element in an enum descriptor + // proto. + EnumNameTag = 1 + // EnumValuesTag is the tag number of the values element in an enum + // descriptor proto. + EnumValuesTag = 2 + // EnumOptionsTag is the tag number of the options element in an enum + // descriptor proto. + EnumOptionsTag = 3 + // EnumReservedRangesTag is the tag number of the reserved ranges element in + // an enum descriptor proto. + EnumReservedRangesTag = 4 + // EnumReservedNamesTag is the tag number of the reserved names element in + // an enum descriptor proto. + EnumReservedNamesTag = 5 + // EnumValNameTag is the tag number of the name element in an enum value + // descriptor proto. + EnumValNameTag = 1 + // EnumValNumberTag is the tag number of the number element in an enum + // value descriptor proto. + EnumValNumberTag = 2 + // EnumValOptionsTag is the tag number of the options element in an enum + // value descriptor proto. + EnumValOptionsTag = 3 + // ServiceNameTag is the tag number of the name element in a service + // descriptor proto. + ServiceNameTag = 1 + // ServiceMethodsTag is the tag number of the methods element in a service + // descriptor proto. + ServiceMethodsTag = 2 + // ServiceOptionsTag is the tag number of the options element in a service + // descriptor proto. + ServiceOptionsTag = 3 + // MethodNameTag is the tag number of the name element in a method + // descriptor proto. + MethodNameTag = 1 + // MethodInputTag is the tag number of the input type element in a method + // descriptor proto. + MethodInputTag = 2 + // MethodOutputTag is the tag number of the output type element in a method + // descriptor proto. + MethodOutputTag = 3 + // MethodOptionsTag is the tag number of the options element in a method + // descriptor proto. + MethodOptionsTag = 4 + // MethodInputStreamTag is the tag number of the input stream flag in a + // method descriptor proto. + MethodInputStreamTag = 5 + // MethodOutputStreamTag is the tag number of the output stream flag in a + // method descriptor proto. + MethodOutputStreamTag = 6 + + // UninterpretedOptionsTag is the tag number of the uninterpreted options + // element. All *Options messages use the same tag for the field that stores + // uninterpreted options. + UninterpretedOptionsTag = 999 + + // UninterpretedNameTag is the tag number of the name element in an + // uninterpreted options proto. + UninterpretedNameTag = 2 + // UninterpretedIdentTag is the tag number of the identifier value in an + // uninterpreted options proto. + UninterpretedIdentTag = 3 + // UninterpretedPosIntTag is the tag number of the positive int value in an + // uninterpreted options proto. + UninterpretedPosIntTag = 4 + // UninterpretedNegIntTag is the tag number of the negative int value in an + // uninterpreted options proto. + UninterpretedNegIntTag = 5 + // UninterpretedDoubleTag is the tag number of the double value in an + // uninterpreted options proto. + UninterpretedDoubleTag = 6 + // UninterpretedStringTag is the tag number of the string value in an + // uninterpreted options proto. + UninterpretedStringTag = 7 + // UninterpretedAggregateTag is the tag number of the aggregate value in an + // uninterpreted options proto. + UninterpretedAggregateTag = 8 + // UninterpretedNameNameTag is the tag number of the name element in an + // uninterpreted option name proto. + UninterpretedNameNameTag = 1 +) diff --git a/vendor/github.com/bufbuild/protocompile/internal/types.go b/vendor/github.com/bufbuild/protocompile/internal/types.go new file mode 100644 index 0000000..5e54e4a --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/types.go @@ -0,0 +1,35 @@ +// Copyright 2020-2022 Buf Technologies, 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 internal + +import "google.golang.org/protobuf/types/descriptorpb" + +var FieldTypes = map[string]descriptorpb.FieldDescriptorProto_Type{ + "double": descriptorpb.FieldDescriptorProto_TYPE_DOUBLE, + "float": descriptorpb.FieldDescriptorProto_TYPE_FLOAT, + "int32": descriptorpb.FieldDescriptorProto_TYPE_INT32, + "int64": descriptorpb.FieldDescriptorProto_TYPE_INT64, + "uint32": descriptorpb.FieldDescriptorProto_TYPE_UINT32, + "uint64": descriptorpb.FieldDescriptorProto_TYPE_UINT64, + "sint32": descriptorpb.FieldDescriptorProto_TYPE_SINT32, + "sint64": descriptorpb.FieldDescriptorProto_TYPE_SINT64, + "fixed32": descriptorpb.FieldDescriptorProto_TYPE_FIXED32, + "fixed64": descriptorpb.FieldDescriptorProto_TYPE_FIXED64, + "sfixed32": descriptorpb.FieldDescriptorProto_TYPE_SFIXED32, + "sfixed64": descriptorpb.FieldDescriptorProto_TYPE_SFIXED64, + "bool": descriptorpb.FieldDescriptorProto_TYPE_BOOL, + "string": descriptorpb.FieldDescriptorProto_TYPE_STRING, + "bytes": descriptorpb.FieldDescriptorProto_TYPE_BYTES, +} diff --git a/vendor/github.com/bufbuild/protocompile/internal/util.go b/vendor/github.com/bufbuild/protocompile/internal/util.go new file mode 100644 index 0000000..f01513e --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/internal/util.go @@ -0,0 +1,119 @@ +// Copyright 2020-2022 Buf Technologies, 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 internal + +import ( + "bytes" + "unicode" + "unicode/utf8" +) + +// JSONName returns the default JSON name for a field with the given name. +// This mirrors the algorithm in protoc: +// +// https://github.com/protocolbuffers/protobuf/blob/v21.3/src/google/protobuf/descriptor.cc#L95 +func JSONName(name string) string { + var js []rune + nextUpper := false + for _, r := range name { + if r == '_' { + nextUpper = true + continue + } + if nextUpper { + nextUpper = false + js = append(js, unicode.ToUpper(r)) + } else { + js = append(js, r) + } + } + return string(js) +} + +// InitCap returns the given field name, but with the first letter capitalized. +func InitCap(name string) string { + r, sz := utf8.DecodeRuneInString(name) + return string(unicode.ToUpper(r)) + name[sz:] +} + +// CreatePrefixList returns a list of package prefixes to search when resolving +// a symbol name. If the given package is blank, it returns only the empty +// string. If the given package contains only one token, e.g. "foo", it returns +// that token and the empty string, e.g. ["foo", ""]. Otherwise, it returns +// successively shorter prefixes of the package and then the empty string. For +// example, for a package named "foo.bar.baz" it will return the following list: +// +// ["foo.bar.baz", "foo.bar", "foo", ""] +func CreatePrefixList(pkg string) []string { + if pkg == "" { + return []string{""} + } + + numDots := 0 + // one pass to pre-allocate the returned slice + for i := 0; i < len(pkg); i++ { + if pkg[i] == '.' { + numDots++ + } + } + if numDots == 0 { + return []string{pkg, ""} + } + + prefixes := make([]string, numDots+2) + // second pass to fill in returned slice + for i := 0; i < len(pkg); i++ { + if pkg[i] == '.' { + prefixes[numDots] = pkg[:i] + numDots-- + } + } + prefixes[0] = pkg + + return prefixes +} + +func WriteEscapedBytes(buf *bytes.Buffer, b []byte) { + // This uses the same algorithm as the protoc C++ code for escaping strings. + // The protoc C++ code in turn uses the abseil C++ library's CEscape function: + // https://github.com/abseil/abseil-cpp/blob/934f613818ffcb26c942dff4a80be9a4031c662c/absl/strings/escaping.cc#L406 + for _, c := range b { + switch c { + case '\n': + buf.WriteString("\\n") + case '\r': + buf.WriteString("\\r") + case '\t': + buf.WriteString("\\t") + case '"': + buf.WriteString("\\\"") + case '\'': + buf.WriteString("\\'") + case '\\': + buf.WriteString("\\\\") + default: + if c >= 0x20 && c < 0x7f { + // simple printable characters + buf.WriteByte(c) + } else { + // use octal escape for all other values + buf.WriteRune('\\') + buf.WriteByte('0' + ((c >> 6) & 0x7)) + buf.WriteByte('0' + ((c >> 3) & 0x7)) + buf.WriteByte('0' + (c & 0x7)) + } + } + } +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/descriptors.go b/vendor/github.com/bufbuild/protocompile/linker/descriptors.go new file mode 100644 index 0000000..2096893 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/descriptors.go @@ -0,0 +1,1880 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker + +import ( + "bytes" + "fmt" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + "google.golang.org/protobuf/types/dynamicpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/parser" + "github.com/bufbuild/protocompile/protoutil" +) + +// This file contains implementations of protoreflect.Descriptor. Note that +// this is a hack since those interfaces have a "doNotImplement" tag +// interface therein. We do just enough to make dynamicpb happy; constructing +// a regular descriptor would fail because we haven't yet interpreted options +// at the point we need these, and some validations will fail if the options +// aren't present. + +type result struct { + protoreflect.FileDescriptor + parser.Result + prefix string + deps Files + + // A map of all descriptors keyed by their fully-qualified name (without + // any leading dot). + descriptors map[string]protoreflect.Descriptor + + // A set of imports that have been used in the course of linking and + // interpreting options. + usedImports map[string]struct{} + + // A map of descriptor options messages to their pre-serialized bytes (using + // a canonical serialization format based on how protoc renders options to + // bytes). + optionBytes map[proto.Message][]byte + + // A map of AST nodes that represent identifiers in ast.FieldReferenceNodes + // to their fully-qualified name. The identifiers are for field names in + // message literals (in option values) that are extension fields. These names + // are resolved during linking and stored here, to be used to interpret options. + optionQualifiedNames map[ast.IdentValueNode]string + + imports fileImports + messages msgDescriptors + enums enumDescriptors + extensions extDescriptors + services svcDescriptors + srcLocations srcLocs +} + +var _ protoreflect.FileDescriptor = (*result)(nil) +var _ Result = (*result)(nil) +var _ protoutil.DescriptorProtoWrapper = (*result)(nil) + +func (r *result) RemoveAST() { + r.Result = parser.ResultWithoutAST(r.FileDescriptorProto()) + r.optionQualifiedNames = nil +} + +func (r *result) AsProto() proto.Message { + return r.FileDescriptorProto() +} + +func (r *result) ParentFile() protoreflect.FileDescriptor { + return r +} + +func (r *result) Parent() protoreflect.Descriptor { + return nil +} + +func (r *result) Index() int { + return 0 +} + +func (r *result) Syntax() protoreflect.Syntax { + switch r.FileDescriptorProto().GetSyntax() { + case "proto2", "": + return protoreflect.Proto2 + case "proto3": + return protoreflect.Proto3 + default: + return 0 // ??? + } +} + +func (r *result) Name() protoreflect.Name { + return "" +} + +func (r *result) FullName() protoreflect.FullName { + return r.Package() +} + +func (r *result) IsPlaceholder() bool { + return false +} + +func (r *result) Options() protoreflect.ProtoMessage { + return r.FileDescriptorProto().Options +} + +func (r *result) Path() string { + return r.FileDescriptorProto().GetName() +} + +func (r *result) Package() protoreflect.FullName { + return protoreflect.FullName(r.FileDescriptorProto().GetPackage()) +} + +func (r *result) Imports() protoreflect.FileImports { + return &r.imports +} + +func (r *result) Enums() protoreflect.EnumDescriptors { + return &r.enums +} + +func (r *result) Messages() protoreflect.MessageDescriptors { + return &r.messages +} + +func (r *result) Extensions() protoreflect.ExtensionDescriptors { + return &r.extensions +} + +func (r *result) Services() protoreflect.ServiceDescriptors { + return &r.services +} + +func (r *result) PopulateSourceCodeInfo() { + srcLocProtos := asSourceLocations(r.FileDescriptorProto().GetSourceCodeInfo().GetLocation()) + srcLocIndex := computeSourceLocIndex(srcLocProtos) + r.srcLocations = srcLocs{file: r, locs: srcLocProtos, index: srcLocIndex} +} + +func (r *result) SourceLocations() protoreflect.SourceLocations { + return &r.srcLocations +} + +func computeSourceLocIndex(locs []protoreflect.SourceLocation) map[interface{}]int { + index := map[interface{}]int{} + for i, loc := range locs { + if loc.Next == 0 { + index[pathKey(loc.Path)] = i + } + } + return index +} + +func asSourceLocations(srcInfoProtos []*descriptorpb.SourceCodeInfo_Location) []protoreflect.SourceLocation { + locs := make([]protoreflect.SourceLocation, len(srcInfoProtos)) + prev := map[string]*protoreflect.SourceLocation{} + for i, loc := range srcInfoProtos { + var stLin, stCol, enLin, enCol int + if len(loc.Span) == 3 { + stLin, stCol, enCol = int(loc.Span[0]), int(loc.Span[1]), int(loc.Span[2]) + enLin = stLin + } else { + stLin, stCol, enLin, enCol = int(loc.Span[0]), int(loc.Span[1]), int(loc.Span[2]), int(loc.Span[3]) + } + locs[i] = protoreflect.SourceLocation{ + Path: loc.Path, + LeadingComments: loc.GetLeadingComments(), + LeadingDetachedComments: loc.GetLeadingDetachedComments(), + TrailingComments: loc.GetTrailingComments(), + StartLine: stLin, + StartColumn: stCol, + EndLine: enLin, + EndColumn: enCol, + } + str := pathStr(loc.Path) + pr := prev[str] + if pr != nil { + pr.Next = i + } + prev[str] = &locs[i] + } + return locs +} + +func pathStr(p protoreflect.SourcePath) string { + var buf bytes.Buffer + for _, v := range p { + fmt.Fprintf(&buf, "%x:", v) + } + return buf.String() +} + +// AddOptionBytes associates the given opts (an options message encoded in the +// binary format) with the given options protobuf message. The protobuf message +// should exist in the hierarchy of this result's FileDescriptorProto. This +// allows the FileDescriptorProto to be marshaled to bytes in a way that +// preserves the way options are defined in source (just as is done by protoc, +// but not possible when only using the generated Go types and standard +// marshaling APIs in the protobuf runtime). +func (r *result) AddOptionBytes(pm proto.Message, opts []byte) { + if r.optionBytes == nil { + r.optionBytes = map[proto.Message][]byte{} + } + r.optionBytes[pm] = append(r.optionBytes[pm], opts...) +} + +func (r *result) CanonicalProto() *descriptorpb.FileDescriptorProto { + origFd := r.FileDescriptorProto() + // make a copy that we can mutate + fd := proto.Clone(origFd).(*descriptorpb.FileDescriptorProto) //nolint:errcheck + + r.storeOptionBytesInFile(fd, origFd) + + return fd +} + +func (r *result) storeOptionBytesInFile(fd, origFd *descriptorpb.FileDescriptorProto) { + if fd.Options != nil { + fd.Options.Reset() + fd.Options.ProtoReflect().SetUnknown(r.optionBytes[origFd.Options]) + } + + for i, md := range fd.MessageType { + origMd := origFd.MessageType[i] + r.storeOptionBytesInMessage(md, origMd) + } + + for i, ed := range fd.EnumType { + origEd := origFd.EnumType[i] + r.storeOptionBytesInEnum(ed, origEd) + } + + for i, exd := range fd.Extension { + origExd := origFd.Extension[i] + r.storeOptionBytesInField(exd, origExd) + } + + for i, sd := range fd.Service { + origSd := origFd.Service[i] + if sd.Options != nil { + sd.Options.Reset() + sd.Options.ProtoReflect().SetUnknown(r.optionBytes[origSd.Options]) + } + + for j, mtd := range sd.Method { + origMtd := origSd.Method[j] + if mtd.Options != nil { + mtd.Options.Reset() + mtd.Options.ProtoReflect().SetUnknown(r.optionBytes[origMtd.Options]) + } + } + } +} + +func (r *result) storeOptionBytesInMessage(md, origMd *descriptorpb.DescriptorProto) { + if md.GetOptions().GetMapEntry() { + // Map entry messages are synthesized. They won't have any option bytes + // since they don't actually appear in the source and thus have any option + // declarations in the source. + return + } + + if md.Options != nil { + md.Options.Reset() + md.Options.ProtoReflect().SetUnknown(r.optionBytes[origMd.Options]) + } + + for i, fld := range md.Field { + origFld := origMd.Field[i] + r.storeOptionBytesInField(fld, origFld) + } + + for i, ood := range md.OneofDecl { + origOod := origMd.OneofDecl[i] + if ood.Options != nil { + ood.Options.Reset() + ood.Options.ProtoReflect().SetUnknown(r.optionBytes[origOod.Options]) + } + } + + for i, exr := range md.ExtensionRange { + origExr := origMd.ExtensionRange[i] + if exr.Options != nil { + exr.Options.Reset() + exr.Options.ProtoReflect().SetUnknown(r.optionBytes[origExr.Options]) + } + } + + for i, nmd := range md.NestedType { + origNmd := origMd.NestedType[i] + r.storeOptionBytesInMessage(nmd, origNmd) + } + + for i, ed := range md.EnumType { + origEd := origMd.EnumType[i] + r.storeOptionBytesInEnum(ed, origEd) + } + + for i, exd := range md.Extension { + origExd := origMd.Extension[i] + r.storeOptionBytesInField(exd, origExd) + } +} + +func (r *result) storeOptionBytesInEnum(ed, origEd *descriptorpb.EnumDescriptorProto) { + if ed.Options != nil { + ed.Options.Reset() + ed.Options.ProtoReflect().SetUnknown(r.optionBytes[origEd.Options]) + } + + for i, evd := range ed.Value { + origEvd := origEd.Value[i] + if evd.Options != nil { + evd.Options.Reset() + evd.Options.ProtoReflect().SetUnknown(r.optionBytes[origEvd.Options]) + } + } +} + +func (r *result) storeOptionBytesInField(fld, origFld *descriptorpb.FieldDescriptorProto) { + if fld.Options != nil { + fld.Options.Reset() + fld.Options.ProtoReflect().SetUnknown(r.optionBytes[origFld.Options]) + } +} + +type fileImports struct { + protoreflect.FileImports + files []protoreflect.FileImport +} + +func (r *result) createImports() fileImports { + fd := r.FileDescriptorProto() + imps := make([]protoreflect.FileImport, len(fd.Dependency)) + for i, dep := range fd.Dependency { + desc := r.deps.FindFileByPath(dep) + imps[i] = protoreflect.FileImport{FileDescriptor: desc} + } + for _, publicIndex := range fd.PublicDependency { + imps[int(publicIndex)].IsPublic = true + } + for _, weakIndex := range fd.WeakDependency { + imps[int(weakIndex)].IsWeak = true + } + return fileImports{files: imps} +} + +func (f *fileImports) Len() int { + return len(f.files) +} + +func (f *fileImports) Get(i int) protoreflect.FileImport { + return f.files[i] +} + +type srcLocs struct { + protoreflect.SourceLocations + file *result + locs []protoreflect.SourceLocation + index map[interface{}]int +} + +func (s *srcLocs) Len() int { + return len(s.locs) +} + +func (s *srcLocs) Get(i int) protoreflect.SourceLocation { + return s.locs[i] +} + +func (s *srcLocs) ByPath(p protoreflect.SourcePath) protoreflect.SourceLocation { + index, ok := s.index[pathKey(p)] + if !ok { + return protoreflect.SourceLocation{} + } + return s.locs[index] +} + +func (s *srcLocs) ByDescriptor(d protoreflect.Descriptor) protoreflect.SourceLocation { + if d.ParentFile() != s.file { + return protoreflect.SourceLocation{} + } + path, ok := computePath(d) + if !ok { + return protoreflect.SourceLocation{} + } + return s.ByPath(path) +} + +func computePath(d protoreflect.Descriptor) (protoreflect.SourcePath, bool) { + _, ok := d.(protoreflect.FileDescriptor) + if ok { + return nil, true + } + var path protoreflect.SourcePath + for { + p := d.Parent() + switch d := d.(type) { + case protoreflect.FileDescriptor: + return reverse(path), true + case protoreflect.MessageDescriptor: + path = append(path, int32(d.Index())) + switch p.(type) { + case protoreflect.FileDescriptor: + path = append(path, internal.FileMessagesTag) + case protoreflect.MessageDescriptor: + path = append(path, internal.MessageNestedMessagesTag) + default: + return nil, false + } + case protoreflect.FieldDescriptor: + path = append(path, int32(d.Index())) + switch p.(type) { + case protoreflect.FileDescriptor: + if d.IsExtension() { + path = append(path, internal.FileExtensionsTag) + } else { + return nil, false + } + case protoreflect.MessageDescriptor: + if d.IsExtension() { + path = append(path, internal.MessageExtensionsTag) + } else { + path = append(path, internal.MessageFieldsTag) + } + default: + return nil, false + } + case protoreflect.OneofDescriptor: + path = append(path, int32(d.Index())) + if _, ok := p.(protoreflect.MessageDescriptor); ok { + path = append(path, internal.MessageOneOfsTag) + } else { + return nil, false + } + case protoreflect.EnumDescriptor: + path = append(path, int32(d.Index())) + switch p.(type) { + case protoreflect.FileDescriptor: + path = append(path, internal.FileEnumsTag) + case protoreflect.MessageDescriptor: + path = append(path, internal.MessageEnumsTag) + default: + return nil, false + } + case protoreflect.EnumValueDescriptor: + path = append(path, int32(d.Index())) + if _, ok := p.(protoreflect.EnumDescriptor); ok { + path = append(path, internal.EnumValuesTag) + } else { + return nil, false + } + case protoreflect.ServiceDescriptor: + path = append(path, int32(d.Index())) + if _, ok := p.(protoreflect.FileDescriptor); ok { + path = append(path, internal.FileServicesTag) + } else { + return nil, false + } + case protoreflect.MethodDescriptor: + path = append(path, int32(d.Index())) + if _, ok := p.(protoreflect.ServiceDescriptor); ok { + path = append(path, internal.ServiceMethodsTag) + } else { + return nil, false + } + } + d = p + } +} + +func reverse(p protoreflect.SourcePath) protoreflect.SourcePath { + for i, j := 0, len(p)-1; i < j; i, j = i+1, j-1 { + p[i], p[j] = p[j], p[i] + } + return p +} + +type msgDescriptors struct { + protoreflect.MessageDescriptors + msgs []*msgDescriptor +} + +func (r *result) createMessages(prefix string, parent protoreflect.Descriptor, msgProtos []*descriptorpb.DescriptorProto) msgDescriptors { + msgs := make([]*msgDescriptor, len(msgProtos)) + for i, msgProto := range msgProtos { + msgs[i] = r.createMessageDescriptor(msgProto, parent, i, prefix+msgProto.GetName()) + } + return msgDescriptors{msgs: msgs} +} + +func (m *msgDescriptors) Len() int { + return len(m.msgs) +} + +func (m *msgDescriptors) Get(i int) protoreflect.MessageDescriptor { + return m.msgs[i] +} + +func (m *msgDescriptors) ByName(s protoreflect.Name) protoreflect.MessageDescriptor { + for _, msg := range m.msgs { + if msg.Name() == s { + return msg + } + } + return nil +} + +type msgDescriptor struct { + protoreflect.MessageDescriptor + file *result + parent protoreflect.Descriptor + index int + proto *descriptorpb.DescriptorProto + fqn string + + fields fldDescriptors + oneofs oneofDescriptors + nestedMessages msgDescriptors + nestedEnums enumDescriptors + nestedExtensions extDescriptors + + extRanges fieldRanges + rsvdRanges fieldRanges + rsvdNames names +} + +var _ protoreflect.MessageDescriptor = (*msgDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*msgDescriptor)(nil) + +func (r *result) createMessageDescriptor(md *descriptorpb.DescriptorProto, parent protoreflect.Descriptor, index int, fqn string) *msgDescriptor { + ret := &msgDescriptor{file: r, parent: parent, index: index, proto: md, fqn: fqn} + r.descriptors[fqn] = ret + + prefix := fqn + "." + // NB: We MUST create fields before oneofs so that we can populate the + // set of fields that belong to the oneof + ret.fields = r.createFields(prefix, ret, md.Field) + ret.oneofs = r.createOneOfs(prefix, ret, md.OneofDecl) + ret.nestedMessages = r.createMessages(prefix, ret, md.NestedType) + ret.nestedEnums = r.createEnums(prefix, ret, md.EnumType) + ret.nestedExtensions = r.createExtensions(prefix, ret, md.Extension) + ret.extRanges = createFieldRanges(md.ExtensionRange) + ret.rsvdRanges = createFieldRanges(md.ReservedRange) + ret.rsvdNames = names{s: md.ReservedName} + + return ret +} + +func (m *msgDescriptor) MessageDescriptorProto() *descriptorpb.DescriptorProto { + return m.proto +} + +func (m *msgDescriptor) AsProto() proto.Message { + return m.proto +} + +func (m *msgDescriptor) ParentFile() protoreflect.FileDescriptor { + return m.file +} + +func (m *msgDescriptor) Parent() protoreflect.Descriptor { + return m.parent +} + +func (m *msgDescriptor) Index() int { + return m.index +} + +func (m *msgDescriptor) Syntax() protoreflect.Syntax { + return m.file.Syntax() +} + +func (m *msgDescriptor) Name() protoreflect.Name { + return protoreflect.Name(m.proto.GetName()) +} + +func (m *msgDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(m.fqn) +} + +func (m *msgDescriptor) IsPlaceholder() bool { + return false +} + +func (m *msgDescriptor) Options() protoreflect.ProtoMessage { + return m.proto.Options +} + +func (m *msgDescriptor) IsMapEntry() bool { + return m.proto.Options.GetMapEntry() +} + +func (m *msgDescriptor) Fields() protoreflect.FieldDescriptors { + return &m.fields +} + +func (m *msgDescriptor) Oneofs() protoreflect.OneofDescriptors { + return &m.oneofs +} + +func (m *msgDescriptor) ReservedNames() protoreflect.Names { + return m.rsvdNames +} + +func (m *msgDescriptor) ReservedRanges() protoreflect.FieldRanges { + return m.rsvdRanges +} + +func (m *msgDescriptor) RequiredNumbers() protoreflect.FieldNumbers { + var indexes fieldNums + for _, fld := range m.proto.Field { + if fld.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_REQUIRED { + indexes.s = append(indexes.s, fld.GetNumber()) + } + } + return indexes +} + +func (m *msgDescriptor) ExtensionRanges() protoreflect.FieldRanges { + return m.extRanges +} + +func (m *msgDescriptor) ExtensionRangeOptions(i int) protoreflect.ProtoMessage { + return m.proto.ExtensionRange[i].Options +} + +func (m *msgDescriptor) Enums() protoreflect.EnumDescriptors { + return &m.nestedEnums +} + +func (m *msgDescriptor) Messages() protoreflect.MessageDescriptors { + return &m.nestedMessages +} + +func (m *msgDescriptor) Extensions() protoreflect.ExtensionDescriptors { + return &m.nestedExtensions +} + +type names struct { + protoreflect.Names + s []string +} + +func (n names) Len() int { + return len(n.s) +} + +func (n names) Get(i int) protoreflect.Name { + return protoreflect.Name(n.s[i]) +} + +func (n names) Has(s protoreflect.Name) bool { + for _, name := range n.s { + if name == string(s) { + return true + } + } + return false +} + +type fieldNums struct { + protoreflect.FieldNumbers + s []int32 +} + +func (n fieldNums) Len() int { + return len(n.s) +} + +func (n fieldNums) Get(i int) protoreflect.FieldNumber { + return protoreflect.FieldNumber(n.s[i]) +} + +func (n fieldNums) Has(s protoreflect.FieldNumber) bool { + for _, num := range n.s { + if num == int32(s) { + return true + } + } + return false +} + +type fieldRanges struct { + protoreflect.FieldRanges + ranges [][2]protoreflect.FieldNumber +} + +type fieldRange interface { + GetStart() int32 + GetEnd() int32 +} + +func createFieldRanges[T fieldRange](rangeProtos []T) fieldRanges { + ranges := make([][2]protoreflect.FieldNumber, len(rangeProtos)) + for i, r := range rangeProtos { + ranges[i] = [2]protoreflect.FieldNumber{ + protoreflect.FieldNumber(r.GetStart()), + protoreflect.FieldNumber(r.GetEnd()), + } + } + return fieldRanges{ranges: ranges} +} + +func (f fieldRanges) Len() int { + return len(f.ranges) +} + +func (f fieldRanges) Get(i int) [2]protoreflect.FieldNumber { + return f.ranges[i] +} + +func (f fieldRanges) Has(n protoreflect.FieldNumber) bool { + for _, r := range f.ranges { + if r[0] <= n && r[1] > n { + return true + } + } + return false +} + +type enumDescriptors struct { + protoreflect.EnumDescriptors + enums []*enumDescriptor +} + +func (r *result) createEnums(prefix string, parent protoreflect.Descriptor, enumProtos []*descriptorpb.EnumDescriptorProto) enumDescriptors { + enums := make([]*enumDescriptor, len(enumProtos)) + for i, enumProto := range enumProtos { + enums[i] = r.createEnumDescriptor(enumProto, parent, i, prefix+enumProto.GetName()) + } + return enumDescriptors{enums: enums} +} + +func (e *enumDescriptors) Len() int { + return len(e.enums) +} + +func (e *enumDescriptors) Get(i int) protoreflect.EnumDescriptor { + return e.enums[i] +} + +func (e *enumDescriptors) ByName(s protoreflect.Name) protoreflect.EnumDescriptor { + for _, en := range e.enums { + if en.Name() == s { + return en + } + } + return nil +} + +type enumDescriptor struct { + protoreflect.EnumDescriptor + file *result + parent protoreflect.Descriptor + index int + proto *descriptorpb.EnumDescriptorProto + fqn string + + values enValDescriptors + + rsvdRanges enumRanges + rsvdNames names +} + +var _ protoreflect.EnumDescriptor = (*enumDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*enumDescriptor)(nil) + +func (r *result) createEnumDescriptor(ed *descriptorpb.EnumDescriptorProto, parent protoreflect.Descriptor, index int, fqn string) *enumDescriptor { + ret := &enumDescriptor{file: r, parent: parent, index: index, proto: ed, fqn: fqn} + r.descriptors[fqn] = ret + + // Unlike all other elements, the fully-qualified name of enum values + // is NOT scoped to their parent element (the enum), but rather to + // the enum's parent element. This follows C++ scoping rules for + // enum values. + prefix := strings.TrimSuffix(fqn, ed.GetName()) + ret.values = r.createEnumValues(prefix, ret, ed.Value) + ret.rsvdRanges = createEnumRanges(ed.ReservedRange) + ret.rsvdNames = names{s: ed.ReservedName} + return ret +} + +func (e *enumDescriptor) EnumDescriptorProto() *descriptorpb.EnumDescriptorProto { + return e.proto +} + +func (e *enumDescriptor) AsProto() proto.Message { + return e.proto +} + +func (e *enumDescriptor) ParentFile() protoreflect.FileDescriptor { + return e.file +} + +func (e *enumDescriptor) Parent() protoreflect.Descriptor { + return e.parent +} + +func (e *enumDescriptor) Index() int { + return e.index +} + +func (e *enumDescriptor) Syntax() protoreflect.Syntax { + return e.file.Syntax() +} + +func (e *enumDescriptor) Name() protoreflect.Name { + return protoreflect.Name(e.proto.GetName()) +} + +func (e *enumDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(e.fqn) +} + +func (e *enumDescriptor) IsPlaceholder() bool { + return false +} + +func (e *enumDescriptor) Options() protoreflect.ProtoMessage { + return e.proto.Options +} + +func (e *enumDescriptor) Values() protoreflect.EnumValueDescriptors { + return &e.values +} + +func (e *enumDescriptor) ReservedNames() protoreflect.Names { + return e.rsvdNames +} + +func (e *enumDescriptor) ReservedRanges() protoreflect.EnumRanges { + return e.rsvdRanges +} + +type enumRanges struct { + protoreflect.EnumRanges + ranges [][2]protoreflect.EnumNumber +} + +func createEnumRanges(rangeProtos []*descriptorpb.EnumDescriptorProto_EnumReservedRange) enumRanges { + ranges := make([][2]protoreflect.EnumNumber, len(rangeProtos)) + for i, r := range rangeProtos { + ranges[i] = [2]protoreflect.EnumNumber{ + protoreflect.EnumNumber(r.GetStart()), + protoreflect.EnumNumber(r.GetEnd()), + } + } + return enumRanges{ranges: ranges} +} + +func (e enumRanges) Len() int { + return len(e.ranges) +} + +func (e enumRanges) Get(i int) [2]protoreflect.EnumNumber { + return e.ranges[i] +} + +func (e enumRanges) Has(n protoreflect.EnumNumber) bool { + for _, r := range e.ranges { + if r[0] <= n && r[1] >= n { + return true + } + } + return false +} + +type enValDescriptors struct { + protoreflect.EnumValueDescriptors + vals []*enValDescriptor +} + +func (r *result) createEnumValues(prefix string, parent *enumDescriptor, enValProtos []*descriptorpb.EnumValueDescriptorProto) enValDescriptors { + vals := make([]*enValDescriptor, len(enValProtos)) + for i, enValProto := range enValProtos { + vals[i] = r.createEnumValueDescriptor(enValProto, parent, i, prefix+enValProto.GetName()) + } + return enValDescriptors{vals: vals} +} + +func (e *enValDescriptors) Len() int { + return len(e.vals) +} + +func (e *enValDescriptors) Get(i int) protoreflect.EnumValueDescriptor { + return e.vals[i] +} + +func (e *enValDescriptors) ByName(s protoreflect.Name) protoreflect.EnumValueDescriptor { + for _, val := range e.vals { + if val.Name() == s { + return val + } + } + return nil +} + +func (e *enValDescriptors) ByNumber(n protoreflect.EnumNumber) protoreflect.EnumValueDescriptor { + for _, val := range e.vals { + if val.Number() == n { + return val + } + } + return nil +} + +type enValDescriptor struct { + protoreflect.EnumValueDescriptor + file *result + parent *enumDescriptor + index int + proto *descriptorpb.EnumValueDescriptorProto + fqn string +} + +var _ protoreflect.EnumValueDescriptor = (*enValDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*enValDescriptor)(nil) + +func (r *result) createEnumValueDescriptor(ed *descriptorpb.EnumValueDescriptorProto, parent *enumDescriptor, index int, fqn string) *enValDescriptor { + ret := &enValDescriptor{file: r, parent: parent, index: index, proto: ed, fqn: fqn} + r.descriptors[fqn] = ret + return ret +} + +func (e *enValDescriptor) EnumValueDescriptorProto() *descriptorpb.EnumValueDescriptorProto { + return e.proto +} + +func (e *enValDescriptor) AsProto() proto.Message { + return e.proto +} + +func (e *enValDescriptor) ParentFile() protoreflect.FileDescriptor { + return e.file +} + +func (e *enValDescriptor) Parent() protoreflect.Descriptor { + return e.parent +} + +func (e *enValDescriptor) Index() int { + return e.index +} + +func (e *enValDescriptor) Syntax() protoreflect.Syntax { + return e.file.Syntax() +} + +func (e *enValDescriptor) Name() protoreflect.Name { + return protoreflect.Name(e.proto.GetName()) +} + +func (e *enValDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(e.fqn) +} + +func (e *enValDescriptor) IsPlaceholder() bool { + return false +} + +func (e *enValDescriptor) Options() protoreflect.ProtoMessage { + return e.proto.Options +} + +func (e *enValDescriptor) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(e.proto.GetNumber()) +} + +type extDescriptors struct { + protoreflect.ExtensionDescriptors + exts []*extTypeDescriptor +} + +func (r *result) createExtensions(prefix string, parent protoreflect.Descriptor, extProtos []*descriptorpb.FieldDescriptorProto) extDescriptors { + exts := make([]*extTypeDescriptor, len(extProtos)) + for i, extProto := range extProtos { + exts[i] = r.createExtTypeDescriptor(extProto, parent, i, prefix+extProto.GetName()) + } + return extDescriptors{exts: exts} +} + +func (e *extDescriptors) Len() int { + return len(e.exts) +} + +func (e *extDescriptors) Get(i int) protoreflect.ExtensionDescriptor { + return e.exts[i] +} + +func (e *extDescriptors) ByName(s protoreflect.Name) protoreflect.ExtensionDescriptor { + for _, ext := range e.exts { + if ext.Name() == s { + return ext + } + } + return nil +} + +type extTypeDescriptor struct { + protoreflect.ExtensionTypeDescriptor + field *fldDescriptor +} + +var _ protoutil.DescriptorProtoWrapper = &extTypeDescriptor{} + +func (r *result) createExtTypeDescriptor(fd *descriptorpb.FieldDescriptorProto, parent protoreflect.Descriptor, index int, fqn string) *extTypeDescriptor { + ret := &fldDescriptor{file: r, parent: parent, index: index, proto: fd, fqn: fqn} + r.descriptors[fqn] = ret + return &extTypeDescriptor{ExtensionTypeDescriptor: dynamicpb.NewExtensionType(ret).TypeDescriptor(), field: ret} +} + +func (e *extTypeDescriptor) FieldDescriptorProto() *descriptorpb.FieldDescriptorProto { + return e.field.proto +} + +func (e *extTypeDescriptor) AsProto() proto.Message { + return e.field.proto +} + +type fldDescriptors struct { + protoreflect.FieldDescriptors + fields []*fldDescriptor +} + +func (r *result) createFields(prefix string, parent *msgDescriptor, fldProtos []*descriptorpb.FieldDescriptorProto) fldDescriptors { + fields := make([]*fldDescriptor, len(fldProtos)) + for i, fldProto := range fldProtos { + fields[i] = r.createFieldDescriptor(fldProto, parent, i, prefix+fldProto.GetName()) + } + return fldDescriptors{fields: fields} +} + +func (f *fldDescriptors) Len() int { + return len(f.fields) +} + +func (f *fldDescriptors) Get(i int) protoreflect.FieldDescriptor { + return f.fields[i] +} + +func (f *fldDescriptors) ByName(s protoreflect.Name) protoreflect.FieldDescriptor { + for _, fld := range f.fields { + if fld.Name() == s { + return fld + } + } + return nil +} + +func (f *fldDescriptors) ByJSONName(s string) protoreflect.FieldDescriptor { + for _, fld := range f.fields { + if fld.JSONName() == s { + return fld + } + } + return nil +} + +func (f *fldDescriptors) ByTextName(s string) protoreflect.FieldDescriptor { + return f.ByName(protoreflect.Name(s)) +} + +func (f *fldDescriptors) ByNumber(n protoreflect.FieldNumber) protoreflect.FieldDescriptor { + for _, fld := range f.fields { + if fld.Number() == n { + return fld + } + } + return nil +} + +type fldDescriptor struct { + protoreflect.FieldDescriptor + file *result + parent protoreflect.Descriptor + index int + proto *descriptorpb.FieldDescriptorProto + fqn string + + msgType protoreflect.MessageDescriptor + extendee protoreflect.MessageDescriptor + enumType protoreflect.EnumDescriptor + oneof protoreflect.OneofDescriptor +} + +var _ protoreflect.FieldDescriptor = (*fldDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*fldDescriptor)(nil) + +func (r *result) createFieldDescriptor(fd *descriptorpb.FieldDescriptorProto, parent *msgDescriptor, index int, fqn string) *fldDescriptor { + ret := &fldDescriptor{file: r, parent: parent, index: index, proto: fd, fqn: fqn} + r.descriptors[fqn] = ret + return ret +} + +func (f *fldDescriptor) FieldDescriptorProto() *descriptorpb.FieldDescriptorProto { + return f.proto +} + +func (f *fldDescriptor) AsProto() proto.Message { + return f.proto +} + +func (f *fldDescriptor) ParentFile() protoreflect.FileDescriptor { + return f.file +} + +func (f *fldDescriptor) Parent() protoreflect.Descriptor { + return f.parent +} + +func (f *fldDescriptor) Index() int { + return f.index +} + +func (f *fldDescriptor) Syntax() protoreflect.Syntax { + return f.file.Syntax() +} + +func (f *fldDescriptor) Name() protoreflect.Name { + return protoreflect.Name(f.proto.GetName()) +} + +func (f *fldDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(f.fqn) +} + +func (f *fldDescriptor) IsPlaceholder() bool { + return false +} + +func (f *fldDescriptor) Options() protoreflect.ProtoMessage { + return f.proto.Options +} + +func (f *fldDescriptor) Number() protoreflect.FieldNumber { + return protoreflect.FieldNumber(f.proto.GetNumber()) +} + +func (f *fldDescriptor) Cardinality() protoreflect.Cardinality { + switch f.proto.GetLabel() { + case descriptorpb.FieldDescriptorProto_LABEL_REPEATED: + return protoreflect.Repeated + case descriptorpb.FieldDescriptorProto_LABEL_REQUIRED: + return protoreflect.Required + case descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL: + return protoreflect.Optional + default: + return 0 + } +} + +func (f *fldDescriptor) Kind() protoreflect.Kind { + return protoreflect.Kind(f.proto.GetType()) +} + +func (f *fldDescriptor) HasJSONName() bool { + return f.proto.JsonName != nil +} + +func (f *fldDescriptor) JSONName() string { + if f.IsExtension() { + return f.TextName() + } + return f.proto.GetJsonName() +} + +func (f *fldDescriptor) TextName() string { + if f.IsExtension() { + return fmt.Sprintf("[%s]", f.FullName()) + } + return string(f.Name()) +} + +func (f *fldDescriptor) HasPresence() bool { + if f.proto.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_REPEATED { + return false + } + return f.IsExtension() || + f.Syntax() == protoreflect.Proto2 || + f.Kind() == protoreflect.MessageKind || f.Kind() == protoreflect.GroupKind || + f.proto.OneofIndex != nil +} + +func (f *fldDescriptor) IsExtension() bool { + return f.proto.GetExtendee() != "" +} + +func (f *fldDescriptor) HasOptionalKeyword() bool { + if f.proto.GetLabel() != descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL { + return false + } + if f.proto.GetProto3Optional() { + // NB: This smells weird to return false here. If the proto3_optional field + // is set, it's because the keyword WAS present. However, the Go runtime + // returns false for this case, so we mirror that behavior. + return !f.IsExtension() + } + // If it's optional, but not a proto3 optional, then the keyword is only + // present for proto2 files, for fields that are not part of a oneof. + return f.file.Syntax() == protoreflect.Proto2 && f.proto.OneofIndex == nil +} + +func (f *fldDescriptor) IsWeak() bool { + return f.proto.Options.GetWeak() +} + +func (f *fldDescriptor) IsPacked() bool { + opts := f.proto.GetOptions() + if opts.GetPacked() { + return true + } + if opts != nil && opts.Packed != nil { + // explicitly not packed + return false + } + + // proto3 defaults to packed for repeated scalar numeric fields + if f.file.Syntax() != protoreflect.Proto3 { + return false + } + if f.proto.GetLabel() != descriptorpb.FieldDescriptorProto_LABEL_REPEATED { + return false + } + switch f.proto.GetType() { + case descriptorpb.FieldDescriptorProto_TYPE_GROUP, descriptorpb.FieldDescriptorProto_TYPE_MESSAGE, + descriptorpb.FieldDescriptorProto_TYPE_BYTES, descriptorpb.FieldDescriptorProto_TYPE_STRING: + return false + default: + // all others can be packed + return true + } +} + +func (f *fldDescriptor) IsList() bool { + if f.proto.GetLabel() != descriptorpb.FieldDescriptorProto_LABEL_REPEATED { + return false + } + return !f.isMapEntry() +} + +func (f *fldDescriptor) IsMap() bool { + if f.proto.GetLabel() != descriptorpb.FieldDescriptorProto_LABEL_REPEATED { + return false + } + if f.IsExtension() { + return false + } + return f.isMapEntry() +} + +func (f *fldDescriptor) isMapEntry() bool { + if f.proto.GetType() != descriptorpb.FieldDescriptorProto_TYPE_MESSAGE { + return false + } + return f.Message().IsMapEntry() +} + +func (f *fldDescriptor) MapKey() protoreflect.FieldDescriptor { + if !f.IsMap() { + return nil + } + return f.Message().Fields().ByNumber(1) +} + +func (f *fldDescriptor) MapValue() protoreflect.FieldDescriptor { + if !f.IsMap() { + return nil + } + return f.Message().Fields().ByNumber(2) +} + +func (f *fldDescriptor) HasDefault() bool { + return f.proto.DefaultValue != nil +} + +func (f *fldDescriptor) Default() protoreflect.Value { + // We only return a valid value for scalar fields + if f.proto.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_REPEATED || + f.Kind() == protoreflect.GroupKind || f.Kind() == protoreflect.MessageKind { + return protoreflect.Value{} + } + + if f.proto.DefaultValue != nil { + defVal := f.parseDefaultValue(f.proto.GetDefaultValue()) + if defVal.IsValid() { + return defVal + } + // if we cannot parse a valid value, fall back to zero value below + } + + // No custom default value, so return the zero value for the type + switch f.Kind() { + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + return protoreflect.ValueOfInt32(0) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return protoreflect.ValueOfInt64(0) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + return protoreflect.ValueOfUint32(0) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return protoreflect.ValueOfUint64(0) + case protoreflect.FloatKind: + return protoreflect.ValueOfFloat32(0) + case protoreflect.DoubleKind: + return protoreflect.ValueOfFloat64(0) + case protoreflect.BoolKind: + return protoreflect.ValueOfBool(false) + case protoreflect.BytesKind: + return protoreflect.ValueOfBytes(nil) + case protoreflect.StringKind: + return protoreflect.ValueOfString("") + case protoreflect.EnumKind: + return protoreflect.ValueOfEnum(f.Enum().Values().Get(0).Number()) + case protoreflect.GroupKind, protoreflect.MessageKind: + return protoreflect.ValueOfMessage(dynamicpb.NewMessage(f.Message())) + default: + panic(fmt.Sprintf("unknown kind: %v", f.Kind())) + } +} + +func (f *fldDescriptor) parseDefaultValue(val string) protoreflect.Value { + switch f.Kind() { + case protoreflect.EnumKind: + vd := f.Enum().Values().ByName(protoreflect.Name(val)) + if vd != nil { + return protoreflect.ValueOfEnum(vd.Number()) + } + return protoreflect.Value{} + case protoreflect.BoolKind: + switch val { + case "true": + return protoreflect.ValueOfBool(true) + case "false": + return protoreflect.ValueOfBool(false) + default: + return protoreflect.Value{} + } + case protoreflect.BytesKind: + return protoreflect.ValueOfBytes([]byte(unescape(val))) + case protoreflect.StringKind: + return protoreflect.ValueOfString(val) + case protoreflect.FloatKind: + if f, err := strconv.ParseFloat(val, 32); err == nil { + return protoreflect.ValueOfFloat32(float32(f)) + } + return protoreflect.Value{} + case protoreflect.DoubleKind: + if f, err := strconv.ParseFloat(val, 64); err == nil { + return protoreflect.ValueOfFloat64(f) + } + return protoreflect.Value{} + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if i, err := strconv.ParseInt(val, 10, 32); err == nil { + return protoreflect.ValueOfInt32(int32(i)) + } + return protoreflect.Value{} + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if i, err := strconv.ParseUint(val, 10, 32); err == nil { + return protoreflect.ValueOfUint32(uint32(i)) + } + return protoreflect.Value{} + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if i, err := strconv.ParseInt(val, 10, 64); err == nil { + return protoreflect.ValueOfInt64(i) + } + return protoreflect.Value{} + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if i, err := strconv.ParseUint(val, 10, 64); err == nil { + return protoreflect.ValueOfUint64(i) + } + return protoreflect.Value{} + default: + return protoreflect.Value{} + } +} + +func unescape(s string) string { + // protoc encodes default values for 'bytes' fields using C escaping, + // so this function reverses that escaping + out := make([]byte, 0, len(s)) + var buf [4]byte + for len(s) > 0 { + if s[0] != '\\' || len(s) < 2 { + // not escape sequence, or too short to be well-formed escape + out = append(out, s[0]) + s = s[1:] + continue + } + nextIndex := 2 // by default, skip '\' + escaped character + switch s[1] { + case 'x', 'X': + n := matchPrefix(s[2:], 2, isHex) + if n == 0 { + // bad escape + out = append(out, s[:2]...) + } else { + c, err := strconv.ParseUint(s[2:2+n], 16, 8) + if err != nil { + // shouldn't really happen... + out = append(out, s[:2+n]...) + } else { + out = append(out, byte(c)) + } + nextIndex = 2 + n + } + case '0', '1', '2', '3', '4', '5', '6', '7': + n := 1 + matchPrefix(s[2:], 2, isOctal) + c, err := strconv.ParseUint(s[1:1+n], 8, 8) + if err != nil || c > 0xff { + out = append(out, s[:1+n]...) + } else { + out = append(out, byte(c)) + } + nextIndex = 1 + n + case 'u': + if len(s) < 6 { + // bad escape + out = append(out, s...) + nextIndex = len(s) + } else { + c, err := strconv.ParseUint(s[2:6], 16, 16) + if err != nil { + // bad escape + out = append(out, s[:6]...) + } else { + w := utf8.EncodeRune(buf[:], rune(c)) + out = append(out, buf[:w]...) + } + nextIndex = 6 + } + case 'U': + if len(s) < 10 { + // bad escape + out = append(out, s...) + nextIndex = len(s) + } else { + c, err := strconv.ParseUint(s[2:10], 16, 32) + if err != nil || c > 0x10ffff { + // bad escape + out = append(out, s[:10]...) + } else { + w := utf8.EncodeRune(buf[:], rune(c)) + out = append(out, buf[:w]...) + } + nextIndex = 10 + } + case 'a': + out = append(out, '\a') + case 'b': + out = append(out, '\b') + case 'f': + out = append(out, '\f') + case 'n': + out = append(out, '\n') + case 'r': + out = append(out, '\r') + case 't': + out = append(out, '\t') + case 'v': + out = append(out, '\v') + case '\\', '\'', '"', '?': + out = append(out, s[1]) + default: + // invalid escape, just copy it as-is + out = append(out, s[:2]...) + } + s = s[nextIndex:] + } + return string(out) +} + +func isOctal(b byte) bool { return b >= '0' && b <= '7' } +func isHex(b byte) bool { + return (b >= '0' && b <= '9') || (b >= 'a' && b <= 'f') || (b >= 'A' && b <= 'F') +} +func matchPrefix(s string, limit int, fn func(byte) bool) int { + l := len(s) + if l > limit { + l = limit + } + i := 0 + for ; i < l; i++ { + if !fn(s[i]) { + return i + } + } + return i +} + +func (f *fldDescriptor) DefaultEnumValue() protoreflect.EnumValueDescriptor { + ed := f.Enum() + if ed == nil { + return nil + } + if f.proto.DefaultValue != nil { + if val := ed.Values().ByName(protoreflect.Name(f.proto.GetDefaultValue())); val != nil { + return val + } + } + // if no default specified in source, return nil + return nil +} + +func (f *fldDescriptor) ContainingOneof() protoreflect.OneofDescriptor { + return f.oneof +} + +func (f *fldDescriptor) ContainingMessage() protoreflect.MessageDescriptor { + if f.extendee != nil { + return f.extendee + } + return f.parent.(protoreflect.MessageDescriptor) +} + +func (f *fldDescriptor) Enum() protoreflect.EnumDescriptor { + return f.enumType +} + +func (f *fldDescriptor) Message() protoreflect.MessageDescriptor { + return f.msgType +} + +type oneofDescriptors struct { + protoreflect.OneofDescriptors + oneofs []*oneofDescriptor +} + +func (r *result) createOneOfs(prefix string, parent *msgDescriptor, ooProtos []*descriptorpb.OneofDescriptorProto) oneofDescriptors { + oos := make([]*oneofDescriptor, len(ooProtos)) + for i, fldProto := range ooProtos { + oos[i] = r.createOneOfDescriptor(fldProto, parent, i, prefix+fldProto.GetName()) + } + return oneofDescriptors{oneofs: oos} +} + +func (o *oneofDescriptors) Len() int { + return len(o.oneofs) +} + +func (o *oneofDescriptors) Get(i int) protoreflect.OneofDescriptor { + return o.oneofs[i] +} + +func (o *oneofDescriptors) ByName(s protoreflect.Name) protoreflect.OneofDescriptor { + for _, oo := range o.oneofs { + if oo.Name() == s { + return oo + } + } + return nil +} + +type oneofDescriptor struct { + protoreflect.OneofDescriptor + file *result + parent *msgDescriptor + index int + proto *descriptorpb.OneofDescriptorProto + fqn string + + fields fldDescriptors +} + +var _ protoreflect.OneofDescriptor = (*oneofDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*oneofDescriptor)(nil) + +func (r *result) createOneOfDescriptor(ood *descriptorpb.OneofDescriptorProto, parent *msgDescriptor, index int, fqn string) *oneofDescriptor { + ret := &oneofDescriptor{file: r, parent: parent, index: index, proto: ood, fqn: fqn} + r.descriptors[fqn] = ret + + var fields []*fldDescriptor + for _, fld := range parent.fields.fields { + if fld.proto.OneofIndex != nil && int(fld.proto.GetOneofIndex()) == index { + fields = append(fields, fld) + } + } + ret.fields = fldDescriptors{fields: fields} + + return ret +} + +func (o *oneofDescriptor) OneOfDescriptorProto() *descriptorpb.OneofDescriptorProto { + return o.proto +} + +func (o *oneofDescriptor) AsProto() proto.Message { + return o.proto +} + +func (o *oneofDescriptor) ParentFile() protoreflect.FileDescriptor { + return o.file +} + +func (o *oneofDescriptor) Parent() protoreflect.Descriptor { + return o.parent +} + +func (o *oneofDescriptor) Index() int { + return o.index +} + +func (o *oneofDescriptor) Syntax() protoreflect.Syntax { + return o.file.Syntax() +} + +func (o *oneofDescriptor) Name() protoreflect.Name { + return protoreflect.Name(o.proto.GetName()) +} + +func (o *oneofDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(o.fqn) +} + +func (o *oneofDescriptor) IsPlaceholder() bool { + return false +} + +func (o *oneofDescriptor) Options() protoreflect.ProtoMessage { + return o.proto.Options +} + +func (o *oneofDescriptor) IsSynthetic() bool { + for _, fld := range o.parent.proto.GetField() { + if fld.OneofIndex != nil && int(fld.GetOneofIndex()) == o.index { + return fld.GetProto3Optional() + } + } + return false // NB: we should never get here +} + +func (o *oneofDescriptor) Fields() protoreflect.FieldDescriptors { + return &o.fields +} + +type svcDescriptors struct { + protoreflect.ServiceDescriptors + svcs []*svcDescriptor +} + +func (r *result) createServices(prefix string, svcProtos []*descriptorpb.ServiceDescriptorProto) svcDescriptors { + svcs := make([]*svcDescriptor, len(svcProtos)) + for i, svcProto := range svcProtos { + svcs[i] = r.createServiceDescriptor(svcProto, i, prefix+svcProto.GetName()) + } + return svcDescriptors{svcs: svcs} +} + +func (s *svcDescriptors) Len() int { + return len(s.svcs) +} + +func (s *svcDescriptors) Get(i int) protoreflect.ServiceDescriptor { + return s.svcs[i] +} + +func (s *svcDescriptors) ByName(n protoreflect.Name) protoreflect.ServiceDescriptor { + for _, svc := range s.svcs { + if svc.Name() == n { + return svc + } + } + return nil +} + +type svcDescriptor struct { + protoreflect.ServiceDescriptor + file *result + index int + proto *descriptorpb.ServiceDescriptorProto + fqn string + + methods mtdDescriptors +} + +var _ protoreflect.ServiceDescriptor = (*svcDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*svcDescriptor)(nil) + +func (r *result) createServiceDescriptor(sd *descriptorpb.ServiceDescriptorProto, index int, fqn string) *svcDescriptor { + ret := &svcDescriptor{file: r, index: index, proto: sd, fqn: fqn} + r.descriptors[fqn] = ret + + prefix := fqn + "." + ret.methods = r.createMethods(prefix, ret, sd.Method) + + return ret +} + +func (s *svcDescriptor) ServiceDescriptorProto() *descriptorpb.ServiceDescriptorProto { + return s.proto +} + +func (s *svcDescriptor) AsProto() proto.Message { + return s.proto +} + +func (s *svcDescriptor) ParentFile() protoreflect.FileDescriptor { + return s.file +} + +func (s *svcDescriptor) Parent() protoreflect.Descriptor { + return s.file +} + +func (s *svcDescriptor) Index() int { + return s.index +} + +func (s *svcDescriptor) Syntax() protoreflect.Syntax { + return s.file.Syntax() +} + +func (s *svcDescriptor) Name() protoreflect.Name { + return protoreflect.Name(s.proto.GetName()) +} + +func (s *svcDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(s.fqn) +} + +func (s *svcDescriptor) IsPlaceholder() bool { + return false +} + +func (s *svcDescriptor) Options() protoreflect.ProtoMessage { + return s.proto.Options +} + +func (s *svcDescriptor) Methods() protoreflect.MethodDescriptors { + return &s.methods +} + +type mtdDescriptors struct { + protoreflect.MethodDescriptors + mtds []*mtdDescriptor +} + +func (r *result) createMethods(prefix string, parent *svcDescriptor, mtdProtos []*descriptorpb.MethodDescriptorProto) mtdDescriptors { + mtds := make([]*mtdDescriptor, len(mtdProtos)) + for i, mtdProto := range mtdProtos { + mtds[i] = r.createMethodDescriptor(mtdProto, parent, i, prefix+mtdProto.GetName()) + } + return mtdDescriptors{mtds: mtds} +} + +func (m *mtdDescriptors) Len() int { + return len(m.mtds) +} + +func (m *mtdDescriptors) Get(i int) protoreflect.MethodDescriptor { + return m.mtds[i] +} + +func (m *mtdDescriptors) ByName(n protoreflect.Name) protoreflect.MethodDescriptor { + for _, mtd := range m.mtds { + if mtd.Name() == n { + return mtd + } + } + return nil +} + +type mtdDescriptor struct { + protoreflect.MethodDescriptor + file *result + parent *svcDescriptor + index int + proto *descriptorpb.MethodDescriptorProto + fqn string + + inputType, outputType protoreflect.MessageDescriptor +} + +var _ protoreflect.MethodDescriptor = (*mtdDescriptor)(nil) +var _ protoutil.DescriptorProtoWrapper = (*mtdDescriptor)(nil) + +func (r *result) createMethodDescriptor(mtd *descriptorpb.MethodDescriptorProto, parent *svcDescriptor, index int, fqn string) *mtdDescriptor { + ret := &mtdDescriptor{file: r, parent: parent, index: index, proto: mtd, fqn: fqn} + r.descriptors[fqn] = ret + return ret +} + +func (m *mtdDescriptor) MethodDescriptorProto() *descriptorpb.MethodDescriptorProto { + return m.proto +} + +func (m *mtdDescriptor) AsProto() proto.Message { + return m.proto +} + +func (m *mtdDescriptor) ParentFile() protoreflect.FileDescriptor { + return m.file +} + +func (m *mtdDescriptor) Parent() protoreflect.Descriptor { + return m.parent +} + +func (m *mtdDescriptor) Index() int { + return m.index +} + +func (m *mtdDescriptor) Syntax() protoreflect.Syntax { + return m.file.Syntax() +} + +func (m *mtdDescriptor) Name() protoreflect.Name { + return protoreflect.Name(m.proto.GetName()) +} + +func (m *mtdDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(m.fqn) +} + +func (m *mtdDescriptor) IsPlaceholder() bool { + return false +} + +func (m *mtdDescriptor) Options() protoreflect.ProtoMessage { + return m.proto.Options +} + +func (m *mtdDescriptor) Input() protoreflect.MessageDescriptor { + return m.inputType +} + +func (m *mtdDescriptor) Output() protoreflect.MessageDescriptor { + return m.outputType +} + +func (m *mtdDescriptor) IsStreamingClient() bool { + return m.proto.GetClientStreaming() +} + +func (m *mtdDescriptor) IsStreamingServer() bool { + return m.proto.GetServerStreaming() +} + +func (r *result) FindImportByPath(path string) File { + return r.deps.FindFileByPath(path) +} + +func (r *result) FindExtensionByNumber(msg protoreflect.FullName, tag protoreflect.FieldNumber) protoreflect.ExtensionTypeDescriptor { + return findExtension(r, msg, tag) +} + +func (r *result) FindDescriptorByName(name protoreflect.FullName) protoreflect.Descriptor { + fqn := strings.TrimPrefix(string(name), ".") + return r.descriptors[fqn] +} + +func (r *result) importsAsFiles() Files { + return r.deps +} + +func (r *result) hasSource() bool { + n := r.FileNode() + _, ok := n.(*ast.FileNode) + return ok +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/doc.go b/vendor/github.com/bufbuild/protocompile/linker/doc.go new file mode 100644 index 0000000..455c2ef --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/doc.go @@ -0,0 +1,48 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker contains logic and APIs related to linking a protobuf file. +// The process of linking involves resolving all symbol references to the +// referenced descriptor. The result of linking is a "rich" descriptor that +// is more useful than just a descriptor proto since the links allow easy +// traversal of a protobuf type schema and the relationships between elements. +// +// # Files +// +// This package uses an augmentation to protoreflect.FileDescriptor instances +// in the form of the File interface. There are also factory functions for +// promoting a FileDescriptor into a linker.File. This new interface provides +// additional methods for resolving symbols in the file. +// +// This interface is both the result of linking but also an input to the linking +// process, as all dependencies of a file to be linked must be provided in this +// form. The actual result of the Link function, a Result, is an even broader +// interface than File: The linker.Result interface provides even more functions, +// which are needed for subsequent compilation steps: interpreting options and +// generating source code info. +// +// # Symbols +// +// This package has a type named Symbols which represents a symbol table. This +// is usually an internal detail when linking, but callers can provide an +// instance so that symbols across multiple compile/link operations all have +// access to the same table. This allows for detection of cases where multiple +// files try to declare elements with conflicting fully-qualified names or +// declare extensions for a particular extendable message that have conflicting +// tag numbers. +// +// The calling code simply uses the same Symbols instance across all compile +// operations and if any files processed have such conflicts, they can be +// reported. +package linker diff --git a/vendor/github.com/bufbuild/protocompile/linker/files.go b/vendor/github.com/bufbuild/protocompile/linker/files.go new file mode 100644 index 0000000..3acdcad --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/files.go @@ -0,0 +1,376 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker + +import ( + "fmt" + "strings" + + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/dynamicpb" + + "github.com/bufbuild/protocompile/walk" +) + +// File is like a super-powered protoreflect.FileDescriptor. It includes helpful +// methods for looking up elements in the descriptor and can be used to create a +// resolver for all of the file's transitive closure of dependencies. (See +// ResolverFromFile.) +type File interface { + protoreflect.FileDescriptor + // FindDescriptorByName returns the given named element that is defined in + // this file. If no such element exists, nil is returned. + FindDescriptorByName(name protoreflect.FullName) protoreflect.Descriptor + // FindImportByPath returns the File corresponding to the given import path. + // If this file does not import the given path, nil is returned. + FindImportByPath(path string) File + // FindExtensionByNumber returns the extension descriptor for the given tag + // that extends the given message name. If no such extension is defined in this + // file, nil is returned. + FindExtensionByNumber(message protoreflect.FullName, tag protoreflect.FieldNumber) protoreflect.ExtensionTypeDescriptor + // Imports returns this file's imports. These are only the files directly + // imported by the file. Indirect transitive dependencies will not be in + // the returned slice. + importsAsFiles() Files +} + +// NewFile converts a protoreflect.FileDescriptor to a File. The given deps must +// contain all dependencies/imports of f. Also see NewFileRecursive. +func NewFile(f protoreflect.FileDescriptor, deps Files) (File, error) { + if asFile, ok := f.(File); ok { + return asFile, nil + } + checkedDeps := make(Files, f.Imports().Len()) + for i := 0; i < f.Imports().Len(); i++ { + imprt := f.Imports().Get(i) + dep := deps.FindFileByPath(imprt.Path()) + if dep == nil { + return nil, fmt.Errorf("cannot create File for %q: missing dependency for %q", f.Path(), imprt.Path()) + } + checkedDeps[i] = dep + } + return newFile(f, checkedDeps) +} + +func newFile(f protoreflect.FileDescriptor, deps Files) (File, error) { + descs := map[protoreflect.FullName]protoreflect.Descriptor{} + err := walk.Descriptors(f, func(d protoreflect.Descriptor) error { + if _, ok := descs[d.FullName()]; ok { + return fmt.Errorf("file %q contains multiple elements with the name %s", f.Path(), d.FullName()) + } + descs[d.FullName()] = d + return nil + }) + if err != nil { + return nil, err + } + return &file{ + FileDescriptor: f, + descs: descs, + deps: deps, + }, nil +} + +// NewFileRecursive recursively converts a protoreflect.FileDescriptor to a File. +// If f has any dependencies/imports, they are converted, too, including any and +// all transitive dependencies. +// +// If f already implements File, it is returned unchanged. +func NewFileRecursive(f protoreflect.FileDescriptor) (File, error) { + if asFile, ok := f.(File); ok { + return asFile, nil + } + return newFileRecursive(f, map[protoreflect.FileDescriptor]File{}) +} + +func newFileRecursive(fd protoreflect.FileDescriptor, seen map[protoreflect.FileDescriptor]File) (File, error) { + if res, ok := seen[fd]; ok { + if res == nil { + return nil, fmt.Errorf("import cycle encountered: file %s transitively imports itself", fd.Path()) + } + return res, nil + } + + if f, ok := fd.(File); ok { + seen[fd] = f + return f, nil + } + + seen[fd] = nil + deps := make([]File, fd.Imports().Len()) + for i := 0; i < fd.Imports().Len(); i++ { + imprt := fd.Imports().Get(i) + dep, err := newFileRecursive(imprt, seen) + if err != nil { + return nil, err + } + deps[i] = dep + } + + f, err := newFile(fd, deps) + if err != nil { + return nil, err + } + seen[fd] = f + return f, nil +} + +type file struct { + protoreflect.FileDescriptor + descs map[protoreflect.FullName]protoreflect.Descriptor + deps Files +} + +func (f *file) FindDescriptorByName(name protoreflect.FullName) protoreflect.Descriptor { + return f.descs[name] +} + +func (f *file) FindImportByPath(path string) File { + return f.deps.FindFileByPath(path) +} + +func (f *file) FindExtensionByNumber(msg protoreflect.FullName, tag protoreflect.FieldNumber) protoreflect.ExtensionTypeDescriptor { + return findExtension(f, msg, tag) +} + +func (f *file) importsAsFiles() Files { + return f.deps +} + +var _ File = (*file)(nil) + +// Files represents a set of protobuf files. It is a slice of File values, but +// also provides a method for easily looking up files by path and name. +type Files []File + +// FindFileByPath finds a file in f that has the given path and name. If f +// contains no such file, nil is returned. +func (f Files) FindFileByPath(path string) File { + for _, file := range f { + if file.Path() == path { + return file + } + } + return nil +} + +// AsResolver returns a Resolver that uses f as the source of descriptors. If +// a given query cannot be answered with the files in f, the query will fail +// with a protoregistry.NotFound error. The implementation just delegates calls +// to each file until a result is found. +// +// Also see ResolverFromFile. +func (f Files) AsResolver() Resolver { + return filesResolver(f) +} + +// Resolver is an interface that can resolve various kinds of queries about +// descriptors. It satisfies the resolver interfaces defined in protodesc +// and protoregistry packages. +type Resolver interface { + protodesc.Resolver + protoregistry.MessageTypeResolver + protoregistry.ExtensionTypeResolver +} + +// ResolverFromFile returns a Resolver that uses the given file plus all of its +// imports as the source of descriptors. If a given query cannot be answered with +// these files, the query will fail with a protoregistry.NotFound error. This +// does not recursively search the entire transitive closure; it only searches +// the given file and its immediate dependencies. This is useful for resolving +// elements visible to the file. +// +// If the given file is the result of a call to Link, then all dependencies +// provided in the call to Link are searched (which could actually include more +// than just the file's direct imports). +// +// Note that this function does not compute any additional indexes for efficient +// search, so queries generally take linear time, O(n) where n is the number of +// files in the transitive closure of the given file. Queries for an extension +// by number are linear with the number of messages and extensions defined across +// all the files. +func ResolverFromFile(f File) Resolver { + return fileResolver{ + f: f, + deps: f.importsAsFiles().AsResolver(), + } +} + +type fileResolver struct { + f File + deps Resolver +} + +func (r fileResolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + if r.f.Path() == path { + return r.f, nil + } + return r.deps.FindFileByPath(path) +} + +func (r fileResolver) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + d := r.f.FindDescriptorByName(name) + if d != nil { + return d, nil + } + return r.deps.FindDescriptorByName(name) +} + +func (r fileResolver) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + d := r.f.FindDescriptorByName(message) + if d != nil { + if md, ok := d.(protoreflect.MessageDescriptor); ok { + return dynamicpb.NewMessageType(md), nil + } + return nil, protoregistry.NotFound + } + return r.deps.FindMessageByName(message) +} + +func (r fileResolver) FindMessageByURL(url string) (protoreflect.MessageType, error) { + fullName := messageNameFromURL(url) + return r.FindMessageByName(protoreflect.FullName(fullName)) +} + +func messageNameFromURL(url string) string { + lastSlash := strings.LastIndexByte(url, '/') + var fullName string + if lastSlash >= 0 { + fullName = url[lastSlash+1:] + } else { + fullName = url + } + return fullName +} + +func (r fileResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + d := r.f.FindDescriptorByName(field) + if d != nil { + if extd, ok := d.(protoreflect.ExtensionTypeDescriptor); ok { + return extd.Type(), nil + } + if fld, ok := d.(protoreflect.FieldDescriptor); ok && fld.IsExtension() { + return dynamicpb.NewExtensionType(fld), nil + } + return nil, protoregistry.NotFound + } + return r.deps.FindExtensionByName(field) +} + +func (r fileResolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + ext := findExtension(r.f, message, field) + if ext != nil { + return ext.Type(), nil + } + return r.deps.FindExtensionByNumber(message, field) +} + +type filesResolver []File + +func (r filesResolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + for _, f := range r { + if f.Path() == path { + return f, nil + } + } + return nil, protoregistry.NotFound +} + +func (r filesResolver) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + for _, f := range r { + result := f.FindDescriptorByName(name) + if result != nil { + return result, nil + } + } + return nil, protoregistry.NotFound +} + +func (r filesResolver) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + for _, f := range r { + d := f.FindDescriptorByName(message) + if d != nil { + if md, ok := d.(protoreflect.MessageDescriptor); ok { + return dynamicpb.NewMessageType(md), nil + } + return nil, protoregistry.NotFound + } + } + return nil, protoregistry.NotFound +} + +func (r filesResolver) FindMessageByURL(url string) (protoreflect.MessageType, error) { + name := messageNameFromURL(url) + return r.FindMessageByName(protoreflect.FullName(name)) +} + +func (r filesResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + for _, f := range r { + d := f.FindDescriptorByName(field) + if d != nil { + if extd, ok := d.(protoreflect.ExtensionTypeDescriptor); ok { + return extd.Type(), nil + } + if fld, ok := d.(protoreflect.FieldDescriptor); ok && fld.IsExtension() { + return dynamicpb.NewExtensionType(fld), nil + } + return nil, protoregistry.NotFound + } + } + return nil, protoregistry.NotFound +} + +func (r filesResolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + for _, f := range r { + ext := findExtension(f, message, field) + if ext != nil { + return ext.Type(), nil + } + } + return nil, protoregistry.NotFound +} + +type hasExtensionsAndMessages interface { + Messages() protoreflect.MessageDescriptors + Extensions() protoreflect.ExtensionDescriptors +} + +func findExtension(d hasExtensionsAndMessages, message protoreflect.FullName, field protoreflect.FieldNumber) protoreflect.ExtensionTypeDescriptor { + for i := 0; i < d.Extensions().Len(); i++ { + if extType := isExtensionMatch(d.Extensions().Get(i), message, field); extType != nil { + return extType + } + } + + for i := 0; i < d.Messages().Len(); i++ { + if extType := findExtension(d.Messages().Get(i), message, field); extType != nil { + return extType + } + } + + return nil // could not be found +} + +func isExtensionMatch(ext protoreflect.ExtensionDescriptor, message protoreflect.FullName, field protoreflect.FieldNumber) protoreflect.ExtensionTypeDescriptor { + if ext.Number() != field || ext.ContainingMessage().FullName() != message { + return nil + } + if extType, ok := ext.(protoreflect.ExtensionTypeDescriptor); ok { + return extType + } + return dynamicpb.NewExtensionType(ext).TypeDescriptor() +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/linker.go b/vendor/github.com/bufbuild/protocompile/linker/linker.go new file mode 100644 index 0000000..d8d1c9a --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/linker.go @@ -0,0 +1,183 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/parser" + "github.com/bufbuild/protocompile/reporter" +) + +// Link handles linking a parsed descriptor proto into a fully-linked descriptor. +// If the given parser.Result has imports, they must all be present in the given +// dependencies. +// +// The symbols value is optional and may be nil. If it is not nil, it must be the +// same instance used to create and link all of the given result's dependencies +// (or otherwise already have all dependencies imported). Otherwise, linking may +// fail with spurious errors resolving symbols. +// +// The handler value is used to report any link errors. If any such errors are +// reported, this function returns a non-nil error. The Result value returned +// also implements protoreflect.FileDescriptor. +// +// Note that linking does NOT interpret options. So options messages in the +// returned value have all values stored in UninterpretedOptions fields. +func Link(parsed parser.Result, dependencies Files, symbols *Symbols, handler *reporter.Handler) (Result, error) { + if symbols == nil { + symbols = &Symbols{} + } + prefix := parsed.FileDescriptorProto().GetPackage() + if prefix != "" { + prefix += "." + } + + for _, imp := range parsed.FileDescriptorProto().Dependency { + dep := dependencies.FindFileByPath(imp) + if dep == nil { + return nil, fmt.Errorf("dependencies is missing import %q", imp) + } + if err := symbols.Import(dep, handler); err != nil { + return nil, err + } + } + + r := &result{ + Result: parsed, + deps: dependencies, + descriptors: map[string]protoreflect.Descriptor{}, + usedImports: map[string]struct{}{}, + prefix: prefix, + optionQualifiedNames: map[ast.IdentValueNode]string{}, + } + + // First, we put all symbols into a single pool, which lets us ensure there + // are no duplicate symbols and will also let us resolve and revise all type + // references in next step. + if err := symbols.importResult(r, handler); err != nil { + return nil, err + } + + // After we've populated the pool, we can now try to resolve all type + // references. All references must be checked for correct type, any fields + // with enum types must be corrected (since we parse them as if they are + // message references since we don't actually know message or enum until + // link time), and references will be re-written to be fully-qualified + // references (e.g. start with a dot "."). + if err := r.resolveReferences(handler, symbols); err != nil { + return nil, err + } + + return r, handler.Error() +} + +// Result is the result of linking. This is a protoreflect.FileDescriptor, but +// with some additional methods for exposing additional information, such as the +// for accessing the input AST or file descriptor. +// +// It also provides Resolve* methods, for looking up enums, messages, and +// extensions that are available to the protobuf source file this result +// represents. An element is "available" if it meets any of the following +// criteria: +// 1. The element is defined in this file itself. +// 2. The element is defined in a file that is directly imported by this file. +// 3. The element is "available" to a file that is directly imported by this +// file as a public import. +// +// Other elements, even if in the transitive closure of this file, are not +// available and thus won't be returned by these methods. +type Result interface { + File + parser.Result + // ResolveEnumType returns an enum descriptor for the given named enum that + // is available in this file. If no such element is available or if the + // named element is not an enum, nil is returned. + ResolveEnumType(protoreflect.FullName) protoreflect.EnumDescriptor + // ResolveMessageType returns a message descriptor for the given named + // message that is available in this file. If no such element is available + // or if the named element is not a message, nil is returned. + ResolveMessageType(protoreflect.FullName) protoreflect.MessageDescriptor + // ResolveOptionsType returns a message descriptor for the given options + // type. This is like ResolveMessageType but searches the result's entire + // set of transitive dependencies without regard for visibility. If no + // such element is available or if the named element is not a message, nil + // is returned. + ResolveOptionsType(protoreflect.FullName) protoreflect.MessageDescriptor + // ResolveExtension returns an extension descriptor for the given named + // extension that is available in this file. If no such element is available + // or if the named element is not an extension, nil is returned. + ResolveExtension(protoreflect.FullName) protoreflect.ExtensionTypeDescriptor + // ResolveMessageLiteralExtensionName returns the fully qualified name for + // an identifier for extension field names in message literals. + ResolveMessageLiteralExtensionName(ast.IdentValueNode) string + // ValidateOptions runs some validation checks on the descriptor that can only + // be done after options are interpreted. Any errors or warnings encountered + // will be reported via the given handler. If any error is reported, this + // function returns a non-nil error. + ValidateOptions(handler *reporter.Handler) error + // CheckForUnusedImports is used to report warnings for unused imports. This + // should be called after options have been interpreted. Otherwise, the logic + // could incorrectly report imports as unused if the only symbol used were a + // custom option. + CheckForUnusedImports(handler *reporter.Handler) + // PopulateSourceCodeInfo is used to populate source code info for the file + // descriptor. This step requires that the underlying descriptor proto have + // its `source_code_info` field populated. This is typically a post-process + // step separate from linking, because computing source code info requires + // interpreting options (which is done after linking). + PopulateSourceCodeInfo() + + // CanonicalProto returns the file descriptor proto in a form that + // will be serialized in a canonical way. The "canonical" way matches + // the way that "protoc" emits option values, which is a way that + // mostly matches the way options are defined in source, including + // ordering and de-structuring. Unlike the FileDescriptorProto() method, this + // method is more expensive and results in a new descriptor proto + // being constructed with each call. + // + // The returned value will have all options (fields of the various + // descriptorpb.*Options message types) represented via unrecognized + // fields. So the returned value will serialize as desired, but it + // is otherwise not useful since all option values are treated as + // unknown. + CanonicalProto() *descriptorpb.FileDescriptorProto + + // RemoveAST drops the AST information from this result. + RemoveAST() +} + +// ErrorUnusedImport may be passed to a warning reporter when an unused +// import is detected. The error the reporter receives will be wrapped +// with source position that indicates the file and line where the import +// statement appeared. +type ErrorUnusedImport interface { + error + UnusedImport() string +} + +type errUnusedImport string + +func (e errUnusedImport) Error() string { + return fmt.Sprintf("import %q not used", string(e)) +} + +func (e errUnusedImport) UnusedImport() string { + return string(e) +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/pathkey_no_unsafe.go b/vendor/github.com/bufbuild/protocompile/linker/pathkey_no_unsafe.go new file mode 100644 index 0000000..89475e6 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/pathkey_no_unsafe.go @@ -0,0 +1,35 @@ +// Copyright 2020-2022 Buf Technologies, 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. + +//go:build appengine || gopherjs || purego +// +build appengine gopherjs purego + +// NB: other environments where unsafe is inappropriate should use "purego" build tag +// https://github.com/golang/go/issues/23172 + +package linker + +import ( + "reflect" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +func pathKey(p protoreflect.SourcePath) interface{} { + rv := reflect.ValueOf(p) + arrayType := reflect.ArrayOf(rv.Len(), rv.Type().Elem()) + array := reflect.New(arrayType).Elem() + reflect.Copy(array, rv) + return array.Interface() +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/pathkey_unsafe.go b/vendor/github.com/bufbuild/protocompile/linker/pathkey_unsafe.go new file mode 100644 index 0000000..cf0d0c2 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/pathkey_unsafe.go @@ -0,0 +1,36 @@ +// Copyright 2020-2022 Buf Technologies, 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. + +//go:build !appengine && !gopherjs && !purego +// +build !appengine,!gopherjs,!purego + +// NB: other environments where unsafe is inappropriate should use "purego" build tag +// https://github.com/golang/go/issues/23172 + +package linker + +import ( + "reflect" + "unsafe" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +var pathElementType = reflect.TypeOf(protoreflect.SourcePath{}).Elem() + +func pathKey(p protoreflect.SourcePath) interface{} { + hdr := (*reflect.SliceHeader)(unsafe.Pointer(reflect.ValueOf(&p).Pointer())) + array := reflect.NewAt(reflect.ArrayOf(hdr.Len, pathElementType), unsafe.Pointer(hdr.Data)) + return array.Elem().Interface() +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/resolve.go b/vendor/github.com/bufbuild/protocompile/linker/resolve.go new file mode 100644 index 0000000..485aba0 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/resolve.go @@ -0,0 +1,825 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker + +import ( + "fmt" + "strings" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + "google.golang.org/protobuf/types/dynamicpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/reporter" + "github.com/bufbuild/protocompile/walk" +) + +func (r *result) ResolveMessageType(name protoreflect.FullName) protoreflect.MessageDescriptor { + d := r.resolveElement(name) + if md, ok := d.(protoreflect.MessageDescriptor); ok { + return md + } + return nil +} + +func (r *result) ResolveOptionsType(name protoreflect.FullName) protoreflect.MessageDescriptor { + d, _ := ResolverFromFile(r).FindDescriptorByName(name) + md, _ := d.(protoreflect.MessageDescriptor) + if md != nil && md.ParentFile() != nil { + r.markUsed(md.ParentFile().Path()) + } + return md +} + +func (r *result) ResolveEnumType(name protoreflect.FullName) protoreflect.EnumDescriptor { + d := r.resolveElement(name) + if ed, ok := d.(protoreflect.EnumDescriptor); ok { + return ed + } + return nil +} + +func (r *result) ResolveExtension(name protoreflect.FullName) protoreflect.ExtensionTypeDescriptor { + d := r.resolveElement(name) + if ed, ok := d.(protoreflect.ExtensionDescriptor); ok { + if !ed.IsExtension() { + return nil + } + if td, ok := ed.(protoreflect.ExtensionTypeDescriptor); ok { + return td + } + return dynamicpb.NewExtensionType(ed).TypeDescriptor() + } + return nil +} + +func (r *result) ResolveMessageLiteralExtensionName(node ast.IdentValueNode) string { + return r.optionQualifiedNames[node] +} + +func (r *result) resolveElement(name protoreflect.FullName) protoreflect.Descriptor { + if len(name) > 0 && name[0] == '.' { + name = name[1:] + } + importedFd, res := resolveElement(r, name, false, nil) + if importedFd != nil { + r.markUsed(importedFd.Path()) + } + return res +} + +func (r *result) markUsed(importPath string) { + r.usedImports[importPath] = struct{}{} +} + +func (r *result) CheckForUnusedImports(handler *reporter.Handler) { + fd := r.FileDescriptorProto() + file, _ := r.FileNode().(*ast.FileNode) + for i, dep := range fd.Dependency { + if _, ok := r.usedImports[dep]; !ok { + isPublic := false + // it's fine if it's a public import + for _, j := range fd.PublicDependency { + if i == int(j) { + isPublic = true + break + } + } + if isPublic { + continue + } + pos := ast.UnknownPos(fd.GetName()) + if file != nil { + for _, decl := range file.Decls { + imp, ok := decl.(*ast.ImportNode) + if ok && imp.Name.AsString() == dep { + pos = file.NodeInfo(imp).Start() + } + } + } + handler.HandleWarningWithPos(pos, errUnusedImport(dep)) + } + } +} + +func resolveElement(f File, fqn protoreflect.FullName, publicImportsOnly bool, checked []string) (imported File, d protoreflect.Descriptor) { + path := f.Path() + for _, str := range checked { + if str == path { + // already checked + return nil, nil + } + } + checked = append(checked, path) + + r := resolveElementInFile(fqn, f) + if r != nil { + // not imported, but present in f + return nil, r + } + + // When publicImportsOnly = false, we are searching only directly imported symbols. But + // we also need to search transitive public imports due to semantics of public imports. + for i := 0; i < f.Imports().Len(); i++ { + dep := f.Imports().Get(i) + if dep.IsPublic || !publicImportsOnly { + depFile := f.FindImportByPath(dep.Path()) + _, d := resolveElement(depFile, fqn, true, checked) + if d != nil { + return depFile, d + } + } + } + + return nil, nil +} + +func descriptorTypeWithArticle(d protoreflect.Descriptor) string { + switch d := d.(type) { + case protoreflect.MessageDescriptor: + return "a message" + case protoreflect.FieldDescriptor: + if d.IsExtension() { + return "an extension" + } + return "a field" + case protoreflect.OneofDescriptor: + return "a oneof" + case protoreflect.EnumDescriptor: + return "an enum" + case protoreflect.EnumValueDescriptor: + return "an enum value" + case protoreflect.ServiceDescriptor: + return "a service" + case protoreflect.MethodDescriptor: + return "a method" + case protoreflect.FileDescriptor: + return "a file" + default: + // shouldn't be possible + return fmt.Sprintf("a %T", d) + } +} + +func (r *result) resolveReferences(handler *reporter.Handler, s *Symbols) error { + // first create the full descriptor hierarchy + fd := r.FileDescriptorProto() + prefix := "" + if fd.GetPackage() != "" { + prefix = fd.GetPackage() + "." + } + r.imports = r.createImports() + r.messages = r.createMessages(prefix, r, fd.MessageType) + r.enums = r.createEnums(prefix, r, fd.EnumType) + r.extensions = r.createExtensions(prefix, r, fd.Extension) + r.services = r.createServices(prefix, fd.Service) + + // then resolve symbol references + scopes := []scope{fileScope(r)} + if fd.Options != nil { + if err := r.resolveOptions(handler, "file", protoreflect.FullName(fd.GetName()), fd.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + + return walk.DescriptorsEnterAndExit(r, + func(d protoreflect.Descriptor) error { + fqn := d.FullName() + switch d := d.(type) { + case *msgDescriptor: + // Strangely, when protoc resolves extension names, it uses the *enclosing* scope + // instead of the message's scope. So if the message contains an extension named "i", + // an option cannot refer to it as simply "i" but must qualify it (at a minimum "Msg.i"). + // So we don't add this messages scope to our scopes slice until *after* we do options. + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "message", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + scopes = append(scopes, messageScope(r, fqn)) // push new scope on entry + // walk only visits descriptors, so we need to loop over extension ranges ourselves + for _, er := range d.proto.ExtensionRange { + if er.Options != nil { + erName := protoreflect.FullName(fmt.Sprintf("%s:%d-%d", fqn, er.GetStart(), er.GetEnd()-1)) + if err := r.resolveOptions(handler, "extension range", erName, er.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + } + case *extTypeDescriptor: + if d.field.proto.Options != nil { + if err := r.resolveOptions(handler, "extension", fqn, d.field.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + if err := resolveFieldTypes(d.field, handler, s, scopes); err != nil { + return err + } + if r.Syntax() == protoreflect.Proto3 && !allowedProto3Extendee(d.field.proto.GetExtendee()) { + file := r.FileNode() + node := r.FieldNode(d.field.proto).FieldExtendee() + if err := handler.HandleErrorf(file.NodeInfo(node).Start(), "extend blocks in proto3 can only be used to define custom options"); err != nil { + return err + } + } + case *fldDescriptor: + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "field", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + if err := resolveFieldTypes(d, handler, s, scopes); err != nil { + return err + } + case *oneofDescriptor: + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "oneof", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + case *enumDescriptor: + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "enum", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + case *enValDescriptor: + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "enum value", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + case *svcDescriptor: + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "service", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + // not a message, but same scoping rules for nested elements as if it were + scopes = append(scopes, messageScope(r, fqn)) // push new scope on entry + case *mtdDescriptor: + if d.proto.Options != nil { + if err := r.resolveOptions(handler, "method", fqn, d.proto.Options.UninterpretedOption, scopes); err != nil { + return err + } + } + if err := resolveMethodTypes(d, handler, scopes); err != nil { + return err + } + } + return nil + }, + func(d protoreflect.Descriptor) error { + switch d.(type) { + case protoreflect.MessageDescriptor, protoreflect.ServiceDescriptor: + // pop message scope on exit + scopes = scopes[:len(scopes)-1] + } + return nil + }) +} + +var allowedProto3Extendees = map[string]struct{}{ + ".google.protobuf.FileOptions": {}, + ".google.protobuf.MessageOptions": {}, + ".google.protobuf.FieldOptions": {}, + ".google.protobuf.OneofOptions": {}, + ".google.protobuf.ExtensionRangeOptions": {}, + ".google.protobuf.EnumOptions": {}, + ".google.protobuf.EnumValueOptions": {}, + ".google.protobuf.ServiceOptions": {}, + ".google.protobuf.MethodOptions": {}, +} + +func allowedProto3Extendee(n string) bool { + if n == "" { + // not an extension, allowed + return true + } + _, ok := allowedProto3Extendees[n] + return ok +} + +func resolveFieldTypes(f *fldDescriptor, handler *reporter.Handler, s *Symbols, scopes []scope) error { + r := f.file + fld := f.proto + file := r.FileNode() + node := r.FieldNode(fld) + scope := fmt.Sprintf("field %s", f.fqn) + if fld.GetExtendee() != "" { + scope := fmt.Sprintf("extension %s", f.fqn) + dsc := r.resolve(fld.GetExtendee(), false, scopes) + if dsc == nil { + return handler.HandleErrorf(file.NodeInfo(node.FieldExtendee()).Start(), "unknown extendee type %s", fld.GetExtendee()) + } + if isSentinelDescriptor(dsc) { + return handler.HandleErrorf(file.NodeInfo(node.FieldExtendee()).Start(), "unknown extendee type %s; resolved to %s which is not defined; consider using a leading dot", fld.GetExtendee(), dsc.FullName()) + } + extd, ok := dsc.(protoreflect.MessageDescriptor) + if !ok { + return handler.HandleErrorf(file.NodeInfo(node.FieldExtendee()).Start(), "extendee is invalid: %s is %s, not a message", dsc.FullName(), descriptorTypeWithArticle(dsc)) + } + f.extendee = extd + extendeeName := "." + string(dsc.FullName()) + if fld.GetExtendee() != extendeeName { + fld.Extendee = proto.String(extendeeName) + } + // make sure the tag number is in range + found := false + tag := protoreflect.FieldNumber(fld.GetNumber()) + for i := 0; i < extd.ExtensionRanges().Len(); i++ { + rng := extd.ExtensionRanges().Get(i) + if tag >= rng[0] && tag < rng[1] { + found = true + break + } + } + if !found { + if err := handler.HandleErrorf(file.NodeInfo(node.FieldTag()).Start(), "%s: tag %d is not in valid range for extended type %s", scope, tag, dsc.FullName()); err != nil { + return err + } + } else { + // make sure tag is not a duplicate + if err := s.AddExtension(packageFor(dsc), dsc.FullName(), tag, file.NodeInfo(node.FieldTag()).Start(), handler); err != nil { + return err + } + } + } else if f.proto.OneofIndex != nil { + parent := f.parent.(protoreflect.MessageDescriptor) //nolint:errcheck + index := int(f.proto.GetOneofIndex()) + f.oneof = parent.Oneofs().Get(index) + } + + if fld.GetTypeName() == "" { + // scalar type; no further resolution required + return nil + } + + dsc := r.resolve(fld.GetTypeName(), true, scopes) + if dsc == nil { + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: unknown type %s", scope, fld.GetTypeName()) + } + if isSentinelDescriptor(dsc) { + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: unknown type %s; resolved to %s which is not defined; consider using a leading dot", scope, fld.GetTypeName(), dsc.FullName()) + } + switch dsc := dsc.(type) { + case protoreflect.MessageDescriptor: + if dsc.IsMapEntry() { + isValid := false + switch node.(type) { + case *ast.MapFieldNode: + // We have an AST for this file and can see this field is from a map declaration + isValid = true + case ast.NoSourceNode: + // We don't have an AST for the file (it came from a provided descriptor). So we + // need to validate that it's not an illegal reference. To be valid, the field + // must be repeated and the entry type must be nested in the same enclosing + // message as the field. + isValid = isValidMap(f, dsc) + if isValid && f.index > 0 { + // also make sure there are no earlier fields that are valid for this map entry + flds := f.Parent().(protoreflect.MessageDescriptor).Fields() + for i := 0; i < f.index; i++ { + if isValidMap(flds.Get(i), dsc) { + isValid = false + break + } + } + } + } + if !isValid { + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: %s is a synthetic map entry and may not be referenced explicitly", scope, dsc.FullName()) + } + } + typeName := "." + string(dsc.FullName()) + if fld.GetTypeName() != typeName { + fld.TypeName = proto.String(typeName) + } + if fld.Type == nil { + // if type was tentatively unset, we now know it's actually a message + fld.Type = descriptorpb.FieldDescriptorProto_TYPE_MESSAGE.Enum() + } else if fld.GetType() != descriptorpb.FieldDescriptorProto_TYPE_MESSAGE && fld.GetType() != descriptorpb.FieldDescriptorProto_TYPE_GROUP { + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: descriptor proto indicates type %v but should be %v", scope, fld.GetType(), descriptorpb.FieldDescriptorProto_TYPE_MESSAGE) + } + f.msgType = dsc + case protoreflect.EnumDescriptor: + proto3 := r.Syntax() == protoreflect.Proto3 + enumIsProto3 := dsc.Syntax() == protoreflect.Proto3 + if fld.GetExtendee() == "" && proto3 && !enumIsProto3 { + // fields in a proto3 message cannot refer to proto2 enums + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: cannot use proto2 enum %s in a proto3 message", scope, fld.GetTypeName()) + } + typeName := "." + string(dsc.FullName()) + if fld.GetTypeName() != typeName { + fld.TypeName = proto.String(typeName) + } + if fld.Type == nil { + // the type was tentatively unset, but now we know it's actually an enum + fld.Type = descriptorpb.FieldDescriptorProto_TYPE_ENUM.Enum() + } else if fld.GetType() != descriptorpb.FieldDescriptorProto_TYPE_ENUM { + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: descriptor proto indicates type %v but should be %v", scope, fld.GetType(), descriptorpb.FieldDescriptorProto_TYPE_ENUM) + } + f.enumType = dsc + default: + return handler.HandleErrorf(file.NodeInfo(node.FieldType()).Start(), "%s: invalid type: %s is %s, not a message or enum", scope, dsc.FullName(), descriptorTypeWithArticle(dsc)) + } + return nil +} + +func packageFor(dsc protoreflect.Descriptor) protoreflect.FullName { + if dsc.ParentFile() != nil { + return dsc.ParentFile().Package() + } + // Can't access package? Make a best effort guess. + return dsc.FullName().Parent() +} + +func isValidMap(mapField protoreflect.FieldDescriptor, mapEntry protoreflect.MessageDescriptor) bool { + return !mapField.IsExtension() && + mapEntry.Parent() == mapField.ContainingMessage() && + mapField.Cardinality() == protoreflect.Repeated && + string(mapEntry.Name()) == internal.InitCap(internal.JSONName(string(mapField.Name())))+"Entry" +} + +func resolveMethodTypes(m *mtdDescriptor, handler *reporter.Handler, scopes []scope) error { + scope := fmt.Sprintf("method %s", m.fqn) + r := m.file + mtd := m.proto + file := r.FileNode() + node := r.MethodNode(mtd) + dsc := r.resolve(mtd.GetInputType(), false, scopes) + if dsc == nil { + if err := handler.HandleErrorf(file.NodeInfo(node.GetInputType()).Start(), "%s: unknown request type %s", scope, mtd.GetInputType()); err != nil { + return err + } + } else if isSentinelDescriptor(dsc) { + if err := handler.HandleErrorf(file.NodeInfo(node.GetInputType()).Start(), "%s: unknown request type %s; resolved to %s which is not defined; consider using a leading dot", scope, mtd.GetInputType(), dsc.FullName()); err != nil { + return err + } + } else if msg, ok := dsc.(protoreflect.MessageDescriptor); !ok { + if err := handler.HandleErrorf(file.NodeInfo(node.GetInputType()).Start(), "%s: invalid request type: %s is %s, not a message", scope, dsc.FullName(), descriptorTypeWithArticle(dsc)); err != nil { + return err + } + } else { + typeName := "." + string(dsc.FullName()) + if mtd.GetInputType() != typeName { + mtd.InputType = proto.String(typeName) + } + m.inputType = msg + } + + // TODO: make input and output type resolution more DRY + dsc = r.resolve(mtd.GetOutputType(), false, scopes) + if dsc == nil { + if err := handler.HandleErrorf(file.NodeInfo(node.GetOutputType()).Start(), "%s: unknown response type %s", scope, mtd.GetOutputType()); err != nil { + return err + } + } else if isSentinelDescriptor(dsc) { + if err := handler.HandleErrorf(file.NodeInfo(node.GetOutputType()).Start(), "%s: unknown response type %s; resolved to %s which is not defined; consider using a leading dot", scope, mtd.GetOutputType(), dsc.FullName()); err != nil { + return err + } + } else if msg, ok := dsc.(protoreflect.MessageDescriptor); !ok { + if err := handler.HandleErrorf(file.NodeInfo(node.GetOutputType()).Start(), "%s: invalid response type: %s is %s, not a message", scope, dsc.FullName(), descriptorTypeWithArticle(dsc)); err != nil { + return err + } + } else { + typeName := "." + string(dsc.FullName()) + if mtd.GetOutputType() != typeName { + mtd.OutputType = proto.String(typeName) + } + m.outputType = msg + } + + return nil +} + +func (r *result) resolveOptions(handler *reporter.Handler, elemType string, elemName protoreflect.FullName, opts []*descriptorpb.UninterpretedOption, scopes []scope) error { + mc := &internal.MessageContext{ + File: r, + ElementName: string(elemName), + ElementType: elemType, + } + file := r.FileNode() +opts: + for _, opt := range opts { + // resolve any extension names found in option names + for _, nm := range opt.Name { + if nm.GetIsExtension() { + node := r.OptionNamePartNode(nm) + fqn, err := r.resolveExtensionName(nm.GetNamePart(), scopes) + if err != nil { + if err := handler.HandleErrorf(file.NodeInfo(node).Start(), "%v%v", mc, err); err != nil { + return err + } + continue opts + } + nm.NamePart = proto.String(fqn) + } + } + // also resolve any extension names found inside message literals in option values + mc.Option = opt + optVal := r.OptionNode(opt).GetValue() + if err := r.resolveOptionValue(handler, mc, optVal, scopes); err != nil { + return err + } + mc.Option = nil + } + return nil +} + +func (r *result) resolveOptionValue(handler *reporter.Handler, mc *internal.MessageContext, val ast.ValueNode, scopes []scope) error { + optVal := val.Value() + switch optVal := optVal.(type) { + case []ast.ValueNode: + origPath := mc.OptAggPath + defer func() { + mc.OptAggPath = origPath + }() + for i, v := range optVal { + mc.OptAggPath = fmt.Sprintf("%s[%d]", origPath, i) + if err := r.resolveOptionValue(handler, mc, v, scopes); err != nil { + return err + } + } + case []*ast.MessageFieldNode: + origPath := mc.OptAggPath + defer func() { + mc.OptAggPath = origPath + }() + for _, fld := range optVal { + // check for extension name + if fld.Name.IsExtension() { + // Confusingly, an extension reference inside a message literal cannot refer to + // elements in the same enclosing message without a qualifier. Basically, we + // treat this as if there were no message scopes, so only the package name is + // used for resolving relative references. (Inconsistent protoc behavior, but + // likely due to how it re-uses C++ text format implementation, and normal text + // format doesn't expect that kind of relative reference.) + scopes := scopes[:1] // first scope is file, the rest are enclosing messages + fqn, err := r.resolveExtensionName(string(fld.Name.Name.AsIdentifier()), scopes) + if err != nil { + if err := handler.HandleErrorf(r.FileNode().NodeInfo(fld.Name.Name).Start(), "%v%v", mc, err); err != nil { + return err + } + } else { + r.optionQualifiedNames[fld.Name.Name] = fqn + } + } + + // recurse into value + mc.OptAggPath = origPath + if origPath != "" { + mc.OptAggPath += "." + } + if fld.Name.IsExtension() { + mc.OptAggPath = fmt.Sprintf("%s[%s]", mc.OptAggPath, string(fld.Name.Name.AsIdentifier())) + } else { + mc.OptAggPath = fmt.Sprintf("%s%s", mc.OptAggPath, string(fld.Name.Name.AsIdentifier())) + } + + if err := r.resolveOptionValue(handler, mc, fld.Val, scopes); err != nil { + return err + } + } + } + return nil +} + +func (r *result) resolveExtensionName(name string, scopes []scope) (string, error) { + dsc := r.resolve(name, false, scopes) + if dsc == nil { + return "", fmt.Errorf("unknown extension %s", name) + } + if isSentinelDescriptor(dsc) { + return "", fmt.Errorf("unknown extension %s; resolved to %s which is not defined; consider using a leading dot", name, dsc.FullName()) + } + if ext, ok := dsc.(protoreflect.FieldDescriptor); !ok { + return "", fmt.Errorf("invalid extension: %s is %s, not an extension", name, descriptorTypeWithArticle(dsc)) + } else if !ext.IsExtension() { + return "", fmt.Errorf("invalid extension: %s is a field but not an extension", name) + } + return string("." + dsc.FullName()), nil +} + +func (r *result) resolve(name string, onlyTypes bool, scopes []scope) protoreflect.Descriptor { + if strings.HasPrefix(name, ".") { + // already fully-qualified + return r.resolveElement(protoreflect.FullName(name[1:])) + } + // unqualified, so we look in the enclosing (last) scope first and move + // towards outermost (first) scope, trying to resolve the symbol + pos := strings.IndexByte(name, '.') + firstName := name + if pos > 0 { + firstName = name[:pos] + } + var bestGuess protoreflect.Descriptor + for i := len(scopes) - 1; i >= 0; i-- { + d := scopes[i](firstName, name) + if d != nil { + // In `protoc`, it will skip a match of the wrong type and move on + // to the next scope, but only if the reference is unqualified. So + // we mirror that behavior here. When we skip and move on, we go + // ahead and save the match of the wrong type so we can at least use + // it to construct a better error in the event that we don't find + // any match of the right type. + if !onlyTypes || isType(d) || firstName != name { + return d + } + if bestGuess == nil { + bestGuess = d + } + } + } + // we return best guess, even though it was not an allowed kind of + // descriptor, so caller can print a better error message (e.g. + // indicating that the name was found but that it's the wrong type) + return bestGuess +} + +func isType(d protoreflect.Descriptor) bool { + switch d.(type) { + case protoreflect.MessageDescriptor, protoreflect.EnumDescriptor: + return true + } + return false +} + +// scope represents a lexical scope in a proto file in which messages and enums +// can be declared. +type scope func(firstName, fullName string) protoreflect.Descriptor + +func fileScope(r *result) scope { + // we search symbols in this file, but also symbols in other files that have + // the same package as this file or a "parent" package (in protobuf, + // packages are a hierarchy like C++ namespaces) + prefixes := internal.CreatePrefixList(r.FileDescriptorProto().GetPackage()) + querySymbol := func(n string) protoreflect.Descriptor { + return r.resolveElement(protoreflect.FullName(n)) + } + return func(firstName, fullName string) protoreflect.Descriptor { + for _, prefix := range prefixes { + var n1, n string + if prefix == "" { + // exhausted all prefixes, so it must be in this one + n1, n = fullName, fullName + } else { + n = prefix + "." + fullName + n1 = prefix + "." + firstName + } + d := resolveElementRelative(n1, n, querySymbol) + if d != nil { + return d + } + } + return nil + } +} + +func messageScope(r *result, messageName protoreflect.FullName) scope { + querySymbol := func(n string) protoreflect.Descriptor { + return resolveElementInFile(protoreflect.FullName(n), r) + } + return func(firstName, fullName string) protoreflect.Descriptor { + n1 := string(messageName) + "." + firstName + n := string(messageName) + "." + fullName + return resolveElementRelative(n1, n, querySymbol) + } +} + +func resolveElementRelative(firstName, fullName string, query func(name string) protoreflect.Descriptor) protoreflect.Descriptor { + d := query(firstName) + if d == nil { + return nil + } + if firstName == fullName { + return d + } + if !isAggregateDescriptor(d) { + // can't possibly find the rest of full name if + // the first name indicated a leaf descriptor + return nil + } + d = query(fullName) + if d == nil { + return newSentinelDescriptor(fullName) + } + return d +} + +func resolveElementInFile(name protoreflect.FullName, f File) protoreflect.Descriptor { + d := f.FindDescriptorByName(name) + if d != nil { + return d + } + + if matchesPkgNamespace(name, f.Package()) { + // this sentinel means the name is a valid namespace but + // does not refer to a descriptor + return newSentinelDescriptor(string(name)) + } + return nil +} + +func matchesPkgNamespace(fqn, pkg protoreflect.FullName) bool { + if pkg == "" { + return false + } + if fqn == pkg { + return true + } + if len(pkg) > len(fqn) && strings.HasPrefix(string(pkg), string(fqn)) { + // if char after fqn is a dot, then fqn is a namespace + if pkg[len(fqn)] == '.' { + return true + } + } + return false +} + +func isAggregateDescriptor(d protoreflect.Descriptor) bool { + if isSentinelDescriptor(d) { + // this indicates the name matched a package, not a + // descriptor, but a package is an aggregate, so + // we return true + return true + } + switch d.(type) { + case protoreflect.MessageDescriptor, protoreflect.EnumDescriptor, protoreflect.ServiceDescriptor: + return true + default: + return false + } +} + +func isSentinelDescriptor(d protoreflect.Descriptor) bool { + _, ok := d.(*sentinelDescriptor) + return ok +} + +func newSentinelDescriptor(name string) protoreflect.Descriptor { + return &sentinelDescriptor{name: name} +} + +// sentinelDescriptor is a placeholder descriptor. It is used instead of nil to +// distinguish between two situations: +// 1. The given name could not be found. +// 2. The given name *cannot* be a valid result so stop searching. +// +// In these cases, attempts to resolve an element name will return nil for the +// first case and will return a sentinelDescriptor in the second. The sentinel +// contains the fully-qualified name which caused the search to stop (which may +// be a prefix of the actual name being resolved). +type sentinelDescriptor struct { + protoreflect.Descriptor + name string +} + +func (p *sentinelDescriptor) ParentFile() protoreflect.FileDescriptor { + return nil +} + +func (p *sentinelDescriptor) Parent() protoreflect.Descriptor { + return nil +} + +func (p *sentinelDescriptor) Index() int { + return 0 +} + +func (p *sentinelDescriptor) Syntax() protoreflect.Syntax { + return 0 +} + +func (p *sentinelDescriptor) Name() protoreflect.Name { + return protoreflect.Name(p.name) +} + +func (p *sentinelDescriptor) FullName() protoreflect.FullName { + return protoreflect.FullName(p.name) +} + +func (p *sentinelDescriptor) IsPlaceholder() bool { + return false +} + +func (p *sentinelDescriptor) Options() protoreflect.ProtoMessage { + return nil +} + +var _ protoreflect.Descriptor = (*sentinelDescriptor)(nil) diff --git a/vendor/github.com/bufbuild/protocompile/linker/symbols.go b/vendor/github.com/bufbuild/protocompile/linker/symbols.go new file mode 100644 index 0000000..5492321 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/symbols.go @@ -0,0 +1,567 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker + +import ( + "strings" + "sync" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/reporter" + "github.com/bufbuild/protocompile/walk" +) + +const unknownFilePath = "" + +// Symbols is a symbol table that maps names for all program elements to their +// location in source. It also tracks extension tag numbers. This can be used +// to enforce uniqueness for symbol names and tag numbers across many files and +// many link operations. +// +// This type is thread-safe. +type Symbols struct { + pkgTrie packageSymbols +} + +type packageSymbols struct { + mu sync.RWMutex + children map[protoreflect.FullName]*packageSymbols + files map[protoreflect.FileDescriptor]struct{} + symbols map[protoreflect.FullName]symbolEntry + exts map[extNumber]ast.SourcePos +} + +type extNumber struct { + extendee protoreflect.FullName + tag protoreflect.FieldNumber +} + +type symbolEntry struct { + pos ast.SourcePos + isEnumValue bool + isPackage bool +} + +// Import populates the symbol table with all symbols/elements and extension +// tags present in the given file descriptor. If s is nil or if fd has already +// been imported into s, this returns immediately without doing anything. If any +// collisions in symbol names or extension tags are identified, an error will be +// returned and the symbol table will not be updated. +func (s *Symbols) Import(fd protoreflect.FileDescriptor, handler *reporter.Handler) error { + if s == nil { + return nil + } + + if f, ok := fd.(*file); ok { + // unwrap any file instance + fd = f.FileDescriptor + } + + var pkgPos ast.SourcePos + if res, ok := fd.(*result); ok { + pkgPos = packageNameStart(res) + } else { + pkgPos = sourcePositionForPackage(fd) + } + pkg, err := s.importPackages(pkgPos, fd.Package(), handler) + if err != nil || pkg == nil { + return err + } + + pkg.mu.RLock() + _, alreadyImported := pkg.files[fd] + pkg.mu.RUnlock() + + if alreadyImported { + return nil + } + + for i := 0; i < fd.Imports().Len(); i++ { + if err := s.Import(fd.Imports().Get(i).FileDescriptor, handler); err != nil { + return err + } + } + + if res, ok := fd.(*result); ok && res.hasSource() { + return s.importResultWithExtensions(pkg, res, handler) + } + + return s.importFileWithExtensions(pkg, fd, handler) +} + +func (s *Symbols) importFileWithExtensions(pkg *packageSymbols, fd protoreflect.FileDescriptor, handler *reporter.Handler) error { + imported, err := pkg.importFile(fd, handler) + if err != nil { + return err + } + if !imported { + // nothing else to do + return nil + } + + return walk.Descriptors(fd, func(d protoreflect.Descriptor) error { + fld, ok := d.(protoreflect.FieldDescriptor) + if !ok || !fld.IsExtension() { + return nil + } + pos := sourcePositionForNumber(fld) + extendee := fld.ContainingMessage() + if err := s.AddExtension(packageFor(extendee), extendee.FullName(), fld.Number(), pos, handler); err != nil { + return err + } + return nil + }) +} + +func (s *packageSymbols) importFile(fd protoreflect.FileDescriptor, handler *reporter.Handler) (bool, error) { + s.mu.Lock() + defer s.mu.Unlock() + + if _, ok := s.files[fd]; ok { + // have to double-check if it's already imported, in case + // it was added after above read-locked check + return false, nil + } + + // first pass: check for conflicts + if err := s.checkFileLocked(fd, handler); err != nil { + return false, err + } + if err := handler.Error(); err != nil { + return false, err + } + + // second pass: commit all symbols + s.commitFileLocked(fd) + + return true, nil +} + +func (s *Symbols) importPackages(pkgPos ast.SourcePos, pkg protoreflect.FullName, handler *reporter.Handler) (*packageSymbols, error) { + if pkg == "" { + return &s.pkgTrie, nil + } + + parts := strings.Split(string(pkg), ".") + for i := 1; i < len(parts); i++ { + parts[i] = parts[i-1] + "." + parts[i] + } + + cur := &s.pkgTrie + for _, p := range parts { + var err error + cur, err = cur.importPackage(pkgPos, protoreflect.FullName(p), handler) + if err != nil { + return nil, err + } + if cur == nil { + return nil, nil + } + } + + return cur, nil +} + +func (s *packageSymbols) importPackage(pkgPos ast.SourcePos, pkg protoreflect.FullName, handler *reporter.Handler) (*packageSymbols, error) { + s.mu.RLock() + existing, ok := s.symbols[pkg] + var child *packageSymbols + if ok && existing.isPackage { + child = s.children[pkg] + } + s.mu.RUnlock() + + if ok && existing.isPackage { + // package already exists + return child, nil + } else if ok { + return nil, reportSymbolCollision(pkgPos, pkg, false, existing, handler) + } + + s.mu.Lock() + defer s.mu.Unlock() + // have to double-check in case it was added while upgrading to write lock + existing, ok = s.symbols[pkg] + if ok && existing.isPackage { + // package already exists + return s.children[pkg], nil + } else if ok { + return nil, reportSymbolCollision(pkgPos, pkg, false, existing, handler) + } + if s.symbols == nil { + s.symbols = map[protoreflect.FullName]symbolEntry{} + } + s.symbols[pkg] = symbolEntry{pos: pkgPos, isPackage: true} + child = &packageSymbols{} + if s.children == nil { + s.children = map[protoreflect.FullName]*packageSymbols{} + } + s.children[pkg] = child + return child, nil +} + +func (s *Symbols) getPackage(pkg protoreflect.FullName) *packageSymbols { + if pkg == "" { + return &s.pkgTrie + } + + parts := strings.Split(string(pkg), ".") + for i := 1; i < len(parts); i++ { + parts[i] = parts[i-1] + "." + parts[i] + } + + cur := &s.pkgTrie + for _, p := range parts { + cur.mu.RLock() + next := cur.children[protoreflect.FullName(p)] + cur.mu.RUnlock() + + if next == nil { + return nil + } + cur = next + } + + return cur +} + +func reportSymbolCollision(pos ast.SourcePos, fqn protoreflect.FullName, additionIsEnumVal bool, existing symbolEntry, handler *reporter.Handler) error { + // because of weird scoping for enum values, provide more context in error message + // if this conflict is with an enum value + var isPkg, suffix string + if additionIsEnumVal || existing.isEnumValue { + suffix = "; protobuf uses C++ scoping rules for enum values, so they exist in the scope enclosing the enum" + } + if existing.isPackage { + isPkg = " as a package" + } + orig := existing.pos + conflict := pos + if posLess(conflict, orig) { + orig, conflict = conflict, orig + } + return handler.HandleErrorf(conflict, "symbol %q already defined%s at %v%s", fqn, isPkg, orig, suffix) +} + +func posLess(a, b ast.SourcePos) bool { + if a.Filename == b.Filename { + if a.Line == b.Line { + return a.Col < b.Col + } + return a.Line < b.Line + } + return false +} + +func (s *packageSymbols) checkFileLocked(f protoreflect.FileDescriptor, handler *reporter.Handler) error { + return walk.Descriptors(f, func(d protoreflect.Descriptor) error { + pos := sourcePositionFor(d) + if existing, ok := s.symbols[d.FullName()]; ok { + _, isEnumVal := d.(protoreflect.EnumValueDescriptor) + if err := reportSymbolCollision(pos, d.FullName(), isEnumVal, existing, handler); err != nil { + return err + } + } + return nil + }) +} + +func sourcePositionForPackage(fd protoreflect.FileDescriptor) ast.SourcePos { + loc := fd.SourceLocations().ByPath([]int32{internal.FilePackageTag}) + if isZeroLoc(loc) { + return ast.UnknownPos(fd.Path()) + } + return ast.SourcePos{ + Filename: fd.Path(), + Line: loc.StartLine, + Col: loc.StartColumn, + } +} + +func sourcePositionFor(d protoreflect.Descriptor) ast.SourcePos { + file := d.ParentFile() + if file == nil { + return ast.UnknownPos(unknownFilePath) + } + path, ok := computePath(d) + if !ok { + return ast.UnknownPos(file.Path()) + } + namePath := path + switch d.(type) { + case protoreflect.FieldDescriptor: + namePath = append(namePath, internal.FieldNameTag) + case protoreflect.MessageDescriptor: + namePath = append(namePath, internal.MessageNameTag) + case protoreflect.OneofDescriptor: + namePath = append(namePath, internal.OneOfNameTag) + case protoreflect.EnumDescriptor: + namePath = append(namePath, internal.EnumNameTag) + case protoreflect.EnumValueDescriptor: + namePath = append(namePath, internal.EnumValNameTag) + case protoreflect.ServiceDescriptor: + namePath = append(namePath, internal.ServiceNameTag) + case protoreflect.MethodDescriptor: + namePath = append(namePath, internal.MethodNameTag) + default: + // NB: shouldn't really happen, but just in case fall back to path to + // descriptor, sans name field + } + loc := file.SourceLocations().ByPath(namePath) + if isZeroLoc(loc) { + loc = file.SourceLocations().ByPath(path) + if isZeroLoc(loc) { + return ast.UnknownPos(file.Path()) + } + } + return ast.SourcePos{ + Filename: file.Path(), + Line: loc.StartLine, + Col: loc.StartColumn, + } +} + +func sourcePositionForNumber(fd protoreflect.FieldDescriptor) ast.SourcePos { + file := fd.ParentFile() + if file == nil { + return ast.UnknownPos(unknownFilePath) + } + path, ok := computePath(fd) + if !ok { + return ast.UnknownPos(file.Path()) + } + numberPath := path + numberPath = append(numberPath, internal.FieldNumberTag) + loc := file.SourceLocations().ByPath(numberPath) + if isZeroLoc(loc) { + loc = file.SourceLocations().ByPath(path) + if isZeroLoc(loc) { + return ast.UnknownPos(file.Path()) + } + } + return ast.SourcePos{ + Filename: file.Path(), + Line: loc.StartLine, + Col: loc.StartColumn, + } +} + +func isZeroLoc(loc protoreflect.SourceLocation) bool { + return loc.Path == nil && + loc.StartLine == 0 && + loc.StartColumn == 0 && + loc.EndLine == 0 && + loc.EndColumn == 0 +} + +func (s *packageSymbols) commitFileLocked(f protoreflect.FileDescriptor) { + if s.symbols == nil { + s.symbols = map[protoreflect.FullName]symbolEntry{} + } + if s.exts == nil { + s.exts = map[extNumber]ast.SourcePos{} + } + _ = walk.Descriptors(f, func(d protoreflect.Descriptor) error { + pos := sourcePositionFor(d) + name := d.FullName() + _, isEnumValue := d.(protoreflect.EnumValueDescriptor) + s.symbols[name] = symbolEntry{pos: pos, isEnumValue: isEnumValue} + return nil + }) + + if s.files == nil { + s.files = map[protoreflect.FileDescriptor]struct{}{} + } + s.files[f] = struct{}{} +} + +func (s *Symbols) importResultWithExtensions(pkg *packageSymbols, r *result, handler *reporter.Handler) error { + imported, err := pkg.importResult(r, handler) + if err != nil { + return err + } + if !imported { + // nothing else to do + return nil + } + + return walk.Descriptors(r, func(d protoreflect.Descriptor) error { + fd, ok := d.(*extTypeDescriptor) + if !ok { + return nil + } + file := r.FileNode() + node := r.FieldNode(fd.FieldDescriptorProto()) + pos := file.NodeInfo(node.FieldTag()).Start() + extendee := fd.ContainingMessage() + if err := s.AddExtension(packageFor(extendee), extendee.FullName(), fd.Number(), pos, handler); err != nil { + return err + } + + return nil + }) +} + +func (s *Symbols) importResult(r *result, handler *reporter.Handler) error { + pkg, err := s.importPackages(packageNameStart(r), r.Package(), handler) + if err != nil || pkg == nil { + return err + } + _, err = pkg.importResult(r, handler) + return err +} + +func (s *packageSymbols) importResult(r *result, handler *reporter.Handler) (bool, error) { + s.mu.Lock() + defer s.mu.Unlock() + + if _, ok := s.files[r]; ok { + // already imported + return false, nil + } + + // first pass: check for conflicts + if err := s.checkResultLocked(r, handler); err != nil { + return false, err + } + if err := handler.Error(); err != nil { + return false, err + } + + // second pass: commit all symbols + s.commitResultLocked(r) + + return true, nil +} + +func (s *packageSymbols) checkResultLocked(r *result, handler *reporter.Handler) error { + resultSyms := map[protoreflect.FullName]symbolEntry{} + return walk.DescriptorProtos(r.FileDescriptorProto(), func(fqn protoreflect.FullName, d proto.Message) error { + _, isEnumVal := d.(*descriptorpb.EnumValueDescriptorProto) + file := r.FileNode() + node := r.Node(d) + pos := nameStart(file, node) + // check symbols already in this symbol table + if existing, ok := s.symbols[fqn]; ok { + if err := reportSymbolCollision(pos, fqn, isEnumVal, existing, handler); err != nil { + return err + } + } + + // also check symbols from this result (that are not yet in symbol table) + if existing, ok := resultSyms[fqn]; ok { + if err := reportSymbolCollision(pos, fqn, isEnumVal, existing, handler); err != nil { + return err + } + } + resultSyms[fqn] = symbolEntry{ + pos: pos, + isEnumValue: isEnumVal, + } + + return nil + }) +} + +func packageNameStart(r *result) ast.SourcePos { + if node, ok := r.FileNode().(*ast.FileNode); ok { + for _, decl := range node.Decls { + if pkgNode, ok := decl.(*ast.PackageNode); ok { + return r.FileNode().NodeInfo(pkgNode.Name).Start() + } + } + } + return ast.UnknownPos(r.Path()) +} + +func nameStart(file ast.FileDeclNode, n ast.Node) ast.SourcePos { + // TODO: maybe ast package needs a NamedNode interface to simplify this? + switch n := n.(type) { + case ast.FieldDeclNode: + return file.NodeInfo(n.FieldName()).Start() + case ast.MessageDeclNode: + return file.NodeInfo(n.MessageName()).Start() + case ast.OneOfDeclNode: + return file.NodeInfo(n.OneOfName()).Start() + case ast.EnumValueDeclNode: + return file.NodeInfo(n.GetName()).Start() + case *ast.EnumNode: + return file.NodeInfo(n.Name).Start() + case *ast.ServiceNode: + return file.NodeInfo(n.Name).Start() + case ast.RPCDeclNode: + return file.NodeInfo(n.GetName()).Start() + default: + return file.NodeInfo(n).Start() + } +} + +func (s *packageSymbols) commitResultLocked(r *result) { + if s.symbols == nil { + s.symbols = map[protoreflect.FullName]symbolEntry{} + } + if s.exts == nil { + s.exts = map[extNumber]ast.SourcePos{} + } + _ = walk.DescriptorProtos(r.FileDescriptorProto(), func(fqn protoreflect.FullName, d proto.Message) error { + pos := nameStart(r.FileNode(), r.Node(d)) + _, isEnumValue := d.(protoreflect.EnumValueDescriptor) + s.symbols[fqn] = symbolEntry{pos: pos, isEnumValue: isEnumValue} + return nil + }) + + if s.files == nil { + s.files = map[protoreflect.FileDescriptor]struct{}{} + } + s.files[r] = struct{}{} +} + +func (s *Symbols) AddExtension(pkg, extendee protoreflect.FullName, tag protoreflect.FieldNumber, pos ast.SourcePos, handler *reporter.Handler) error { + if pkg != "" { + if !strings.HasPrefix(string(extendee), string(pkg)+".") { + return handler.HandleErrorf(pos, "could not register extension: extendee %q does not match package %q", extendee, pkg) + } + } + pkgSyms := s.getPackage(pkg) + if pkgSyms == nil { + // should never happen + return handler.HandleErrorf(pos, "could not register extension: missing package symbols for %q", pkg) + } + return pkgSyms.addExtension(extendee, tag, pos, handler) +} + +func (s *packageSymbols) addExtension(extendee protoreflect.FullName, tag protoreflect.FieldNumber, pos ast.SourcePos, handler *reporter.Handler) error { + s.mu.Lock() + defer s.mu.Unlock() + + if s.exts == nil { + s.exts = map[extNumber]ast.SourcePos{} + } + + extNum := extNumber{extendee: extendee, tag: tag} + if existing, ok := s.exts[extNum]; ok { + if err := handler.HandleErrorf(pos, "extension with tag %d for message %s already defined at %v", tag, extendee, existing); err != nil { + return err + } + } else { + s.exts[extNum] = pos + } + return nil +} diff --git a/vendor/github.com/bufbuild/protocompile/linker/validate.go b/vendor/github.com/bufbuild/protocompile/linker/validate.go new file mode 100644 index 0000000..f30c571 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/linker/validate.go @@ -0,0 +1,283 @@ +// Copyright 2020-2022 Buf Technologies, 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 linker + +import ( + "fmt" + "strings" + "unicode" + "unicode/utf8" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/reporter" +) + +// ValidateOptions runs some validation checks on the result that can only +// be done after options are interpreted. +func (r *result) ValidateOptions(handler *reporter.Handler) error { + if err := r.validateExtensions(r, handler); err != nil { + return err + } + return r.validateJSONNamesInFile(handler) +} + +func (r *result) validateExtensions(d hasExtensionsAndMessages, handler *reporter.Handler) error { + for i := 0; i < d.Extensions().Len(); i++ { + if err := r.validateExtension(d.Extensions().Get(i), handler); err != nil { + return err + } + } + for i := 0; i < d.Messages().Len(); i++ { + if err := r.validateExtensions(d.Messages().Get(i), handler); err != nil { + return err + } + } + return nil +} + +func (r *result) validateExtension(fld protoreflect.FieldDescriptor, handler *reporter.Handler) error { + // NB: It's a little gross that we don't enforce these in validateBasic(). + // But it requires linking to resolve the extendee, so we can interrogate + // its descriptor. + if xtd, ok := fld.(protoreflect.ExtensionTypeDescriptor); ok { + fld = xtd.Descriptor() + } + fd := fld.(*fldDescriptor) //nolint:errcheck + if fld.ContainingMessage().Options().(*descriptorpb.MessageOptions).GetMessageSetWireFormat() { + // Message set wire format requires that all extensions be messages + // themselves (no scalar extensions) + if fld.Kind() != protoreflect.MessageKind { + file := r.FileNode() + pos := file.NodeInfo(r.FieldNode(fd.proto).FieldType()).Start() + return handler.HandleErrorf(pos, "messages with message-set wire format cannot contain scalar extensions, only messages") + } + if fld.Cardinality() == protoreflect.Repeated { + file := r.FileNode() + pos := file.NodeInfo(r.FieldNode(fd.proto).FieldLabel()).Start() + return handler.HandleErrorf(pos, "messages with message-set wire format cannot contain repeated extensions, only optional") + } + } else if fld.Number() > internal.MaxNormalTag { + // In validateBasic() we just made sure these were within bounds for any message. But + // now that things are linked, we can check if the extendee is messageset wire format + // and, if not, enforce tighter limit. + file := r.FileNode() + pos := file.NodeInfo(r.FieldNode(fd.proto).FieldTag()).Start() + return handler.HandleErrorf(pos, "tag number %d is higher than max allowed tag number (%d)", fld.Number(), internal.MaxNormalTag) + } + + return nil +} + +func (r *result) validateJSONNamesInFile(handler *reporter.Handler) error { + for _, md := range r.FileDescriptorProto().GetMessageType() { + if err := r.validateJSONNamesInMessage(md, handler); err != nil { + return err + } + } + for _, ed := range r.FileDescriptorProto().GetEnumType() { + if err := r.validateJSONNamesInEnum(ed, handler); err != nil { + return err + } + } + return nil +} + +func (r *result) validateJSONNamesInMessage(md *descriptorpb.DescriptorProto, handler *reporter.Handler) error { + if err := r.validateFieldJSONNames(md, false, handler); err != nil { + return err + } + if err := r.validateFieldJSONNames(md, true, handler); err != nil { + return err + } + + for _, nmd := range md.GetNestedType() { + if err := r.validateJSONNamesInMessage(nmd, handler); err != nil { + return err + } + } + for _, ed := range md.GetEnumType() { + if err := r.validateJSONNamesInEnum(ed, handler); err != nil { + return err + } + } + return nil +} + +func (r *result) validateJSONNamesInEnum(ed *descriptorpb.EnumDescriptorProto, handler *reporter.Handler) error { + seen := map[string]*descriptorpb.EnumValueDescriptorProto{} + for _, evd := range ed.GetValue() { + scope := "enum value " + ed.GetName() + "." + evd.GetName() + + name := canonicalEnumValueName(evd.GetName(), ed.GetName()) + if existing, ok := seen[name]; ok && evd.GetNumber() != existing.GetNumber() { + fldNode := r.EnumValueNode(evd) + existingNode := r.EnumValueNode(existing) + conflictErr := fmt.Errorf("%s: camel-case name (with optional enum name prefix removed) %q conflicts with camel-case name of enum value %s, defined at %v", + scope, name, existing.GetName(), r.FileNode().NodeInfo(existingNode).Start()) + + // Since proto2 did not originally have a JSON format, we report conflicts as just warnings + if r.Syntax() != protoreflect.Proto3 { + handler.HandleWarningWithPos(r.FileNode().NodeInfo(fldNode).Start(), conflictErr) + } else if err := handler.HandleErrorf(r.FileNode().NodeInfo(fldNode).Start(), conflictErr.Error()); err != nil { + return err + } + } else { + seen[name] = evd + } + } + return nil +} + +func (r *result) validateFieldJSONNames(md *descriptorpb.DescriptorProto, useCustom bool, handler *reporter.Handler) error { + type jsonName struct { + source *descriptorpb.FieldDescriptorProto + // true if orig is a custom JSON name (vs. the field's default JSON name) + custom bool + } + seen := map[string]jsonName{} + + for _, fd := range md.GetField() { + scope := "field " + md.GetName() + "." + fd.GetName() + defaultName := internal.JSONName(fd.GetName()) + name := defaultName + custom := false + if useCustom { + n := fd.GetJsonName() + if n != defaultName || r.hasCustomJSONName(fd) { + name = n + custom = true + } + } + if existing, ok := seen[name]; ok { + // When useCustom is true, we'll only report an issue when a conflict is + // due to a custom name. That way, we don't double report conflicts on + // non-custom names. + if !useCustom || custom || existing.custom { + fldNode := r.FieldNode(fd) + customStr, srcCustomStr := "custom", "custom" + if !custom { + customStr = "default" + } + if !existing.custom { + srcCustomStr = "default" + } + pos := r.FileNode().NodeInfo(fldNode).Start() + conflictErr := reporter.Errorf(pos, "%s: %s JSON name %q conflicts with %s JSON name of field %s, defined at %v", + scope, customStr, name, srcCustomStr, existing.source.GetName(), r.FileNode().NodeInfo(r.FieldNode(existing.source)).Start()) + + // Since proto2 did not originally have default JSON names, we report conflicts + // between default names (neither is a custom name) as just warnings. + if r.Syntax() != protoreflect.Proto3 && !custom && !existing.custom { + handler.HandleWarning(conflictErr) + } else if err := handler.HandleError(conflictErr); err != nil { + return err + } + } + } else { + seen[name] = jsonName{source: fd, custom: custom} + } + } + return nil +} + +func (r *result) hasCustomJSONName(fdProto *descriptorpb.FieldDescriptorProto) bool { + // if we have the AST, we can more precisely determine if there was a custom + // JSON named defined, even if it is explicitly configured to tbe the same + // as the default JSON name for the field. + opts := r.FieldNode(fdProto).GetOptions() + if opts == nil { + return false + } + for _, opt := range opts.Options { + if len(opt.Name.Parts) == 1 && + opt.Name.Parts[0].Name.AsIdentifier() == "json_name" && + !opt.Name.Parts[0].IsExtension() { + return true + } + } + return false +} + +func canonicalEnumValueName(enumValueName, enumName string) string { + return enumValCamelCase(removePrefix(enumValueName, enumName)) +} + +// removePrefix is used to remove the given prefix from the given str. It does not require +// an exact match and ignores case and underscores. If the all non-underscore characters +// would be removed from str, str is returned unchanged. If str does not have the given +// prefix (even with the very lenient matching, in regard to case and underscores), then +// str is returned unchanged. +// +// The algorithm is adapted from the protoc source: +// +// https://github.com/protocolbuffers/protobuf/blob/v21.3/src/google/protobuf/descriptor.cc#L922 +func removePrefix(str, prefix string) string { + j := 0 + for i, r := range str { + if r == '_' { + // skip underscores in the input + continue + } + + p, sz := utf8.DecodeRuneInString(prefix[j:]) + for p == '_' { + j += sz // consume/skip underscore + p, sz = utf8.DecodeRuneInString(prefix[j:]) + } + + if j == len(prefix) { + // matched entire prefix; return rest of str + // but skipping any leading underscores + result := strings.TrimLeft(str[i:], "_") + if len(result) == 0 { + // result can't be empty string + return str + } + return result + } + if unicode.ToLower(r) != unicode.ToLower(p) { + // does not match prefix + return str + } + j += sz // consume matched rune of prefix + } + return str +} + +// enumValCamelCase converts the given string to upper-camel-case. +// +// The algorithm is adapted from the protoc source: +// +// https://github.com/protocolbuffers/protobuf/blob/v21.3/src/google/protobuf/descriptor.cc#L887 +func enumValCamelCase(name string) string { + var js []rune + nextUpper := true + for _, r := range name { + if r == '_' { + nextUpper = true + continue + } + if nextUpper { + nextUpper = false + js = append(js, unicode.ToUpper(r)) + } else { + js = append(js, unicode.ToLower(r)) + } + } + return string(js) +} diff --git a/vendor/github.com/bufbuild/protocompile/options/options.go b/vendor/github.com/bufbuild/protocompile/options/options.go new file mode 100644 index 0000000..c26f136 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/options/options.go @@ -0,0 +1,1611 @@ +// Copyright 2020-2022 Buf Technologies, 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 options contains the logic for interpreting options. The parse step +// of compilation stores the options in uninterpreted form, which contains raw +// identifiers and literal values. +// +// The process of interpreting an option is to resolve identifiers, by examining +// descriptors for the google.protobuf.*Options types and their available +// extensions (custom options). As field names are resolved, the values can be +// type-checked against the types indicated in field descriptors. +// +// On success, the various fields and extensions of the options message are +// populated and the field holding the uninterpreted form is cleared. +package options + +import ( + "bytes" + "fmt" + "math" + "sort" + "strings" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + "google.golang.org/protobuf/types/dynamicpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/linker" + "github.com/bufbuild/protocompile/parser" + "github.com/bufbuild/protocompile/reporter" +) + +// Index is a mapping of AST nodes that define options to a corresponding path +// into the containing file descriptor. The path is a sequence of field tags +// and indexes that define a traversal path from the root (the file descriptor) +// to the resolved option field. +type Index map[*ast.OptionNode][]int32 + +type interpreter struct { + file file + resolver linker.Resolver + container optionsContainer + lenient bool + reporter *reporter.Handler + index Index +} + +type file interface { + parser.Result + ResolveEnumType(protoreflect.FullName) protoreflect.EnumDescriptor + ResolveMessageType(protoreflect.FullName) protoreflect.MessageDescriptor + ResolveOptionsType(protoreflect.FullName) protoreflect.MessageDescriptor + ResolveExtension(protoreflect.FullName) protoreflect.ExtensionTypeDescriptor + ResolveMessageLiteralExtensionName(ast.IdentValueNode) string +} + +type noResolveFile struct { + parser.Result +} + +func (n noResolveFile) ResolveEnumType(name protoreflect.FullName) protoreflect.EnumDescriptor { + return nil +} + +func (n noResolveFile) ResolveMessageType(name protoreflect.FullName) protoreflect.MessageDescriptor { + return nil +} + +func (n noResolveFile) ResolveOptionsType(name protoreflect.FullName) protoreflect.MessageDescriptor { + return nil +} + +func (n noResolveFile) ResolveExtension(name protoreflect.FullName) protoreflect.ExtensionTypeDescriptor { + return nil +} + +func (n noResolveFile) ResolveMessageLiteralExtensionName(ast.IdentValueNode) string { + return "" +} + +// InterpretOptions interprets options in the given linked result, returning +// an index that can be used to generate source code info. This step mutates +// the linked result's underlying proto to move option elements out of the +// "uninterpreted_option" fields and into proper option fields and extensions. +// +// The given handler is used to report errors and warnings. If any errors are +// reported, this function returns a non-nil error. +func InterpretOptions(linked linker.Result, handler *reporter.Handler) (Index, error) { + return interpretOptions(false, linked, handler) +} + +// InterpretOptionsLenient interprets options in a lenient/best-effort way in +// the given linked result, returning an index that can be used to generate +// source code info. This step mutates the linked result's underlying proto to +// move option elements out of the "uninterpreted_option" fields and into proper +// option fields and extensions. +// +// In lenient more, errors resolving option names and type errors are ignored. +// Any options that are uninterpretable (due to such errors) will remain in the +// "uninterpreted_option" fields. +func InterpretOptionsLenient(linked linker.Result) (Index, error) { + return interpretOptions(true, linked, reporter.NewHandler(nil)) +} + +// InterpretUnlinkedOptions does a best-effort attempt to interpret options in +// the given parsed result, returning an index that can be used to generate +// source code info. This step mutates the parsed result's underlying proto to +// move option elements out of the "uninterpreted_option" fields and into proper +// option fields and extensions. +// +// This is the same as InterpretOptionsLenient except that it accepts an +// unlinked result. Because the file is unlinked, custom options cannot be +// interpreted. Other errors resolving option names or type errors will be +// effectively ignored. Any options that are uninterpretable (due to such +// errors) will remain in the "uninterpreted_option" fields. +func InterpretUnlinkedOptions(parsed parser.Result) (Index, error) { + return interpretOptions(true, noResolveFile{parsed}, reporter.NewHandler(nil)) +} + +func interpretOptions(lenient bool, file file, handler *reporter.Handler) (Index, error) { + interp := interpreter{ + file: file, + lenient: lenient, + reporter: handler, + index: Index{}, + } + interp.container, _ = file.(optionsContainer) + if f, ok := file.(linker.File); ok { + interp.resolver = linker.ResolverFromFile(f) + } + + fd := file.FileDescriptorProto() + prefix := fd.GetPackage() + if prefix != "" { + prefix += "." + } + opts := fd.GetOptions() + if opts != nil { + if len(opts.UninterpretedOption) > 0 { + remain, err := interp.interpretOptions(fd.GetName(), fd, opts, opts.UninterpretedOption) + if err != nil { + return nil, err + } + opts.UninterpretedOption = remain + } + } + for _, md := range fd.GetMessageType() { + fqn := prefix + md.GetName() + if err := interp.interpretMessageOptions(fqn, md); err != nil { + return nil, err + } + } + for _, fld := range fd.GetExtension() { + fqn := prefix + fld.GetName() + if err := interp.interpretFieldOptions(fqn, fld); err != nil { + return nil, err + } + } + for _, ed := range fd.GetEnumType() { + fqn := prefix + ed.GetName() + if err := interp.interpretEnumOptions(fqn, ed); err != nil { + return nil, err + } + } + for _, sd := range fd.GetService() { + fqn := prefix + sd.GetName() + opts := sd.GetOptions() + if len(opts.GetUninterpretedOption()) > 0 { + remain, err := interp.interpretOptions(fqn, sd, opts, opts.UninterpretedOption) + if err != nil { + return nil, err + } + opts.UninterpretedOption = remain + } + for _, mtd := range sd.GetMethod() { + mtdFqn := fqn + "." + mtd.GetName() + opts := mtd.GetOptions() + if len(opts.GetUninterpretedOption()) > 0 { + remain, err := interp.interpretOptions(mtdFqn, mtd, opts, opts.UninterpretedOption) + if err != nil { + return nil, err + } + opts.UninterpretedOption = remain + } + } + } + return interp.index, nil +} + +func (interp *interpreter) nodeInfo(n ast.Node) ast.NodeInfo { + return interp.file.FileNode().NodeInfo(n) +} + +func (interp *interpreter) interpretMessageOptions(fqn string, md *descriptorpb.DescriptorProto) error { + opts := md.GetOptions() + if opts != nil { + if len(opts.UninterpretedOption) > 0 { + remain, err := interp.interpretOptions(fqn, md, opts, opts.UninterpretedOption) + if err != nil { + return err + } + opts.UninterpretedOption = remain + } + } + for _, fld := range md.GetField() { + fldFqn := fqn + "." + fld.GetName() + if err := interp.interpretFieldOptions(fldFqn, fld); err != nil { + return err + } + } + for _, ood := range md.GetOneofDecl() { + oodFqn := fqn + "." + ood.GetName() + opts := ood.GetOptions() + if len(opts.GetUninterpretedOption()) > 0 { + remain, err := interp.interpretOptions(oodFqn, ood, opts, opts.UninterpretedOption) + if err != nil { + return err + } + opts.UninterpretedOption = remain + } + } + for _, fld := range md.GetExtension() { + fldFqn := fqn + "." + fld.GetName() + if err := interp.interpretFieldOptions(fldFqn, fld); err != nil { + return err + } + } + for _, er := range md.GetExtensionRange() { + erFqn := fmt.Sprintf("%s.%d-%d", fqn, er.GetStart(), er.GetEnd()) + opts := er.GetOptions() + if len(opts.GetUninterpretedOption()) > 0 { + remain, err := interp.interpretOptions(erFqn, er, opts, opts.UninterpretedOption) + if err != nil { + return err + } + opts.UninterpretedOption = remain + } + } + for _, nmd := range md.GetNestedType() { + nmdFqn := fqn + "." + nmd.GetName() + if err := interp.interpretMessageOptions(nmdFqn, nmd); err != nil { + return err + } + } + for _, ed := range md.GetEnumType() { + edFqn := fqn + "." + ed.GetName() + if err := interp.interpretEnumOptions(edFqn, ed); err != nil { + return err + } + } + return nil +} + +func (interp *interpreter) interpretFieldOptions(fqn string, fld *descriptorpb.FieldDescriptorProto) error { + opts := fld.GetOptions() + if len(opts.GetUninterpretedOption()) == 0 { + return nil + } + uo := opts.UninterpretedOption + scope := fmt.Sprintf("field %s", fqn) + + // process json_name pseudo-option + index, err := internal.FindOption(interp.file, interp.reporter, scope, uo, "json_name") + if err != nil && !interp.lenient { + return err + } + if index >= 0 { + opt := uo[index] + optNode := interp.file.OptionNode(opt) + if fld.GetExtendee() != "" { + return interp.reporter.HandleErrorf(interp.nodeInfo(optNode.GetName()).Start(), "%s: option json_name is not allowed on extensions", scope) + } + // attribute source code info + if on, ok := optNode.(*ast.OptionNode); ok { + interp.index[on] = []int32{-1, internal.FieldJSONNameTag} + } + uo = internal.RemoveOption(uo, index) + if opt.StringValue == nil { + return interp.reporter.HandleErrorf(interp.nodeInfo(optNode.GetValue()).Start(), "%s: expecting string value for json_name option", scope) + } + name := string(opt.StringValue) + if strings.HasPrefix(name, "[") && strings.HasSuffix(name, "]") { + return interp.reporter.HandleErrorf(interp.nodeInfo(optNode.GetValue()).Start(), "%s: option json_name value cannot start with '[' and end with ']'; that is reserved for representing extensions", scope) + } + fld.JsonName = proto.String(name) + } + + // and process default pseudo-option + if index, err := interp.processDefaultOption(scope, fqn, fld, uo); err != nil && !interp.lenient { + return err + } else if index >= 0 { + // attribute source code info + optNode := interp.file.OptionNode(uo[index]) + if on, ok := optNode.(*ast.OptionNode); ok { + interp.index[on] = []int32{-1, internal.FieldDefaultTag} + } + uo = internal.RemoveOption(uo, index) + } + + if len(uo) == 0 { + // no real options, only pseudo-options above? clear out options + fld.Options = nil + } else if remain, err := interp.interpretOptions(fqn, fld, opts, uo); err != nil { + return err + } else { + opts.UninterpretedOption = remain + } + return nil +} + +func (interp *interpreter) processDefaultOption(scope string, fqn string, fld *descriptorpb.FieldDescriptorProto, uos []*descriptorpb.UninterpretedOption) (defaultIndex int, err error) { + found, err := internal.FindOption(interp.file, interp.reporter, scope, uos, "default") + if err != nil || found == -1 { + return -1, err + } + opt := uos[found] + optNode := interp.file.OptionNode(opt) + if fld.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_REPEATED { + return -1, interp.reporter.HandleErrorf(interp.nodeInfo(optNode.GetName()).Start(), "%s: default value cannot be set because field is repeated", scope) + } + if fld.GetType() == descriptorpb.FieldDescriptorProto_TYPE_GROUP || fld.GetType() == descriptorpb.FieldDescriptorProto_TYPE_MESSAGE { + return -1, interp.reporter.HandleErrorf(interp.nodeInfo(optNode.GetName()).Start(), "%s: default value cannot be set because field is a message", scope) + } + val := optNode.GetValue() + if _, ok := val.(*ast.MessageLiteralNode); ok { + return -1, interp.reporter.HandleErrorf(interp.nodeInfo(val).Start(), "%s: default value cannot be a message", scope) + } + mc := &internal.MessageContext{ + File: interp.file, + ElementName: fqn, + ElementType: descriptorType(fld), + Option: opt, + } + var v interface{} + if fld.GetType() == descriptorpb.FieldDescriptorProto_TYPE_ENUM { + ed := interp.file.ResolveEnumType(protoreflect.FullName(fld.GetTypeName())) + _, name, err := interp.enumFieldValue(mc, ed, val, false) + if err != nil { + return -1, interp.reporter.HandleError(err) + } + v = string(name) + } else { + v, err = interp.scalarFieldValue(mc, fld.GetType(), val, false) + if err != nil { + return -1, interp.reporter.HandleError(err) + } + } + if str, ok := v.(string); ok { + fld.DefaultValue = proto.String(str) + } else if b, ok := v.([]byte); ok { + fld.DefaultValue = proto.String(encodeDefaultBytes(b)) + } else { + var flt float64 + var ok bool + if flt, ok = v.(float64); !ok { + var flt32 float32 + if flt32, ok = v.(float32); ok { + flt = float64(flt32) + } + } + if ok { + switch { + case math.IsInf(flt, 1): + fld.DefaultValue = proto.String("inf") + case math.IsInf(flt, -1): + fld.DefaultValue = proto.String("-inf") + case math.IsNaN(flt): + fld.DefaultValue = proto.String("nan") + default: + fld.DefaultValue = proto.String(fmt.Sprintf("%v", v)) + } + } else { + fld.DefaultValue = proto.String(fmt.Sprintf("%v", v)) + } + } + return found, nil +} + +func encodeDefaultBytes(b []byte) string { + var buf bytes.Buffer + internal.WriteEscapedBytes(&buf, b) + return buf.String() +} + +func (interp *interpreter) interpretEnumOptions(fqn string, ed *descriptorpb.EnumDescriptorProto) error { + opts := ed.GetOptions() + if opts != nil { + if len(opts.UninterpretedOption) > 0 { + remain, err := interp.interpretOptions(fqn, ed, opts, opts.UninterpretedOption) + if err != nil { + return err + } + opts.UninterpretedOption = remain + } + } + for _, evd := range ed.GetValue() { + evdFqn := fqn + "." + evd.GetName() + opts := evd.GetOptions() + if len(opts.GetUninterpretedOption()) > 0 { + remain, err := interp.interpretOptions(evdFqn, evd, opts, opts.UninterpretedOption) + if err != nil { + return err + } + opts.UninterpretedOption = remain + } + } + return nil +} + +// interpretedOption represents the result of interpreting an option. +// This includes metadata that allows the option to be serialized to +// bytes in a way that is deterministic and can preserve the structure +// of the source (the way the options are de-structured and the order in +// which options appear). +type interpretedOption struct { + unknown bool + pathPrefix []int32 + interpretedField +} + +func (o *interpretedOption) path() []int32 { + path := o.pathPrefix + path = append(path, o.number) + if o.repeated { + path = append(path, o.index) + } + return path +} + +func (o *interpretedOption) appendOptionBytes(b []byte) ([]byte, error) { + return o.appendOptionBytesWithPath(b, o.pathPrefix) +} + +func (o *interpretedOption) appendOptionBytesWithPath(b []byte, path []int32) ([]byte, error) { + if len(path) == 0 { + return appendOptionBytesSingle(b, &o.interpretedField) + } + // NB: if we add functions to compute sizes of the options first, we could + // allocate precisely sized slice up front, which would be more efficient than + // repeated creation/growing/concatenation. + enclosed, err := o.appendOptionBytesWithPath(nil, path[1:]) + if err != nil { + return nil, err + } + b = protowire.AppendTag(b, protowire.Number(path[0]), protowire.BytesType) + return protowire.AppendBytes(b, enclosed), nil +} + +// interpretedField represents a field in an options message that is the +// result of interpreting an option. This is used for the option value +// itself as well as for subfields when an option value is a message +// literal. +type interpretedField struct { + // field number + number int32 + // index of this element inside a repeated field; only set if repeated == true + index int32 + // true if this is a repeated field + repeated bool + // true if this is a repeated field that stores scalar values in packed form + packed bool + // the field's kind + kind protoreflect.Kind + + value interpretedFieldValue +} + +// interpretedFieldValue is a wrapper around protoreflect.Value that +// includes extra metadata. +type interpretedFieldValue struct { + // the field value + val protoreflect.Value + // if true, this value is a list of values, not a singular value + isList bool + // non-nil for singular message values + msgVal []*interpretedField + // non-nil for non-empty lists of message values + msgListVal [][]*interpretedField +} + +func appendOptionBytes(b []byte, flds []*interpretedField) ([]byte, error) { + // protoc emits messages sorted by field number + if len(flds) > 1 { + sort.SliceStable(flds, func(i, j int) bool { + return flds[i].number < flds[j].number + }) + } + + for i := 0; i < len(flds); i++ { + f := flds[i] + switch { + case f.packed && canPack(f.kind): + // for packed repeated numeric fields, all runs of values are merged into one packed list + num := f.number + j := i + for j < len(flds) && flds[j].number == num { + j++ + } + // now flds[i:j] is the range of contiguous fields for the same field number + enclosed, err := appendOptionBytesPacked(nil, f.kind, flds[i:j]) + if err != nil { + return nil, err + } + b = protowire.AppendTag(b, protowire.Number(f.number), protowire.BytesType) + b = protowire.AppendBytes(b, enclosed) + // skip over the other subsequent fields we just serialized + i = j - 1 + case f.value.isList: + // if not packed, then emit one value at a time + single := *f + single.value.isList = false + single.value.msgListVal = nil + l := f.value.val.List() + for i := 0; i < l.Len(); i++ { + single.value.val = l.Get(i) + if f.kind == protoreflect.MessageKind || f.kind == protoreflect.GroupKind { + single.value.msgVal = f.value.msgListVal[i] + } + var err error + b, err = appendOptionBytesSingle(b, &single) + if err != nil { + return nil, err + } + } + default: + // simple singular value + var err error + b, err = appendOptionBytesSingle(b, f) + if err != nil { + return nil, err + } + } + } + + return b, nil +} + +func canPack(k protoreflect.Kind) bool { + switch k { + case protoreflect.MessageKind, protoreflect.GroupKind, protoreflect.StringKind, protoreflect.BytesKind: + return false + default: + return true + } +} + +func appendOptionBytesPacked(b []byte, k protoreflect.Kind, flds []*interpretedField) ([]byte, error) { + for i := range flds { + val := flds[i].value + if val.isList { + l := val.val.List() + var err error + b, err = appendNumericValueBytesPacked(b, k, l) + if err != nil { + return nil, err + } + } else { + var err error + b, err = appendNumericValueBytes(b, k, val.val) + if err != nil { + return nil, err + } + } + } + return b, nil +} + +func appendOptionBytesSingle(b []byte, f *interpretedField) ([]byte, error) { + num := protowire.Number(f.number) + switch f.kind { + case protoreflect.MessageKind: + enclosed, err := appendOptionBytes(nil, f.value.msgVal) + if err != nil { + return nil, err + } + b = protowire.AppendTag(b, num, protowire.BytesType) + return protowire.AppendBytes(b, enclosed), nil + + case protoreflect.GroupKind: + b = protowire.AppendTag(b, num, protowire.StartGroupType) + var err error + b, err = appendOptionBytes(b, f.value.msgVal) + if err != nil { + return nil, err + } + return protowire.AppendTag(b, num, protowire.EndGroupType), nil + + case protoreflect.StringKind: + b = protowire.AppendTag(b, num, protowire.BytesType) + return protowire.AppendString(b, f.value.val.String()), nil + + case protoreflect.BytesKind: + b = protowire.AppendTag(b, num, protowire.BytesType) + return protowire.AppendBytes(b, f.value.val.Bytes()), nil + + case protoreflect.Int32Kind, protoreflect.Int64Kind, protoreflect.Uint32Kind, protoreflect.Uint64Kind, + protoreflect.Sint32Kind, protoreflect.Sint64Kind, protoreflect.EnumKind, protoreflect.BoolKind: + b = protowire.AppendTag(b, num, protowire.VarintType) + return appendNumericValueBytes(b, f.kind, f.value.val) + + case protoreflect.Fixed32Kind, protoreflect.Sfixed32Kind, protoreflect.FloatKind: + b = protowire.AppendTag(b, num, protowire.Fixed32Type) + return appendNumericValueBytes(b, f.kind, f.value.val) + + case protoreflect.Fixed64Kind, protoreflect.Sfixed64Kind, protoreflect.DoubleKind: + b = protowire.AppendTag(b, num, protowire.Fixed64Type) + return appendNumericValueBytes(b, f.kind, f.value.val) + + default: + return nil, fmt.Errorf("unknown field kind: %v", f.kind) + } +} + +func appendNumericValueBytesPacked(b []byte, k protoreflect.Kind, l protoreflect.List) ([]byte, error) { + for i := 0; i < l.Len(); i++ { + var err error + b, err = appendNumericValueBytes(b, k, l.Get(i)) + if err != nil { + return nil, err + } + } + return b, nil +} + +func appendNumericValueBytes(b []byte, k protoreflect.Kind, v protoreflect.Value) ([]byte, error) { + switch k { + case protoreflect.Int32Kind, protoreflect.Int64Kind: + return protowire.AppendVarint(b, uint64(v.Int())), nil + case protoreflect.Uint32Kind, protoreflect.Uint64Kind: + return protowire.AppendVarint(b, v.Uint()), nil + case protoreflect.Sint32Kind, protoreflect.Sint64Kind: + return protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())), nil + case protoreflect.Fixed32Kind: + return protowire.AppendFixed32(b, uint32(v.Uint())), nil + case protoreflect.Fixed64Kind: + return protowire.AppendFixed64(b, v.Uint()), nil + case protoreflect.Sfixed32Kind: + return protowire.AppendFixed32(b, uint32(v.Int())), nil + case protoreflect.Sfixed64Kind: + return protowire.AppendFixed64(b, uint64(v.Int())), nil + case protoreflect.FloatKind: + return protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))), nil + case protoreflect.DoubleKind: + return protowire.AppendFixed64(b, math.Float64bits(v.Float())), nil + case protoreflect.BoolKind: + return protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())), nil + case protoreflect.EnumKind: + return protowire.AppendVarint(b, uint64(v.Enum())), nil + default: + return nil, fmt.Errorf("unknown field kind: %v", k) + } +} + +// optionsContainer may be optionally implemented by a linker.Result. It is +// not part of the linker.Result interface as it is meant only for internal use. +// This allows the option interpreter step to store extra metadata about the +// serialized structure of options. +type optionsContainer interface { + // AddOptionBytes adds the given pre-serialized option bytes to a file, + // associated with the given options message. The type of the given message + // should be an options message, for example *descriptorpb.MessageOptions. + // This value should be part of the message hierarchy whose root is the + // *descriptorpb.FileDescriptorProto that corresponds to this result. + AddOptionBytes(pm proto.Message, opts []byte) +} + +// interpretOptions processes the options in uninterpreted, which are interpreted as fields +// of the given opts message. On success, it will usually return nil, nil. But if the current +// operation is lenient, it may return a non-nil slice of uninterpreted options on success. +// In such a case, the returned value is the remaining slice of options which could not be +// interpreted. +func (interp *interpreter) interpretOptions(fqn string, element, opts proto.Message, uninterpreted []*descriptorpb.UninterpretedOption) ([]*descriptorpb.UninterpretedOption, error) { + optsDesc := opts.ProtoReflect().Descriptor() + optsFqn := string(optsDesc.FullName()) + var msg protoreflect.Message + // see if the parse included an override copy for these options + if md := interp.file.ResolveOptionsType(protoreflect.FullName(optsFqn)); md != nil { + dm := dynamicpb.NewMessage(md) + if err := cloneInto(dm, opts, nil); err != nil { + node := interp.file.Node(element) + return nil, interp.reporter.HandleError(reporter.Error(interp.nodeInfo(node).Start(), err)) + } + msg = dm + } else { + msg = proto.Clone(opts).ProtoReflect() + } + + mc := &internal.MessageContext{ + File: interp.file, + ElementName: fqn, + ElementType: descriptorType(element), + } + var remain []*descriptorpb.UninterpretedOption + results := make([]*interpretedOption, 0, len(uninterpreted)) + for _, uo := range uninterpreted { + node := interp.file.OptionNode(uo) + if !uo.Name[0].GetIsExtension() && uo.Name[0].GetNamePart() == "uninterpreted_option" { + if interp.lenient { + remain = append(remain, uo) + continue + } + // uninterpreted_option might be found reflectively, but is not actually valid for use + if err := interp.reporter.HandleErrorf(interp.nodeInfo(node.GetName()).Start(), "%vinvalid option 'uninterpreted_option'", mc); err != nil { + return nil, err + } + } + mc.Option = uo + res, err := interp.interpretField(mc, msg, uo, 0, nil) + if err != nil { + if interp.lenient { + remain = append(remain, uo) + continue + } + return nil, err + } + res.unknown = !isKnownField(optsDesc, res) + results = append(results, res) + if optn, ok := node.(*ast.OptionNode); ok { + interp.index[optn] = res.path() + } + } + + if interp.lenient { + // If we're lenient, then we don't want to clobber the passed in message + // and leave it partially populated. So we convert into a copy first + optsClone := opts.ProtoReflect().New().Interface() + if err := cloneInto(optsClone, msg.Interface(), interp.resolver); err != nil { + // TODO: do this in a more granular way, so we can convert individual + // fields and leave bad ones uninterpreted instead of skipping all of + // the work we've done so far. + return uninterpreted, nil + } + // conversion from dynamic message above worked, so now + // it is safe to overwrite the passed in message + proto.Reset(opts) + proto.Merge(opts, optsClone) + + if interp.container != nil { + b, err := interp.toOptionBytes(mc, results) + if err != nil { + return nil, err + } + interp.container.AddOptionBytes(opts, b) + } + + return remain, nil + } + + if err := validateRecursive(msg, ""); err != nil { + node := interp.file.Node(element) + if err := interp.reporter.HandleErrorf(interp.nodeInfo(node).Start(), "error in %s options: %v", descriptorType(element), err); err != nil { + return nil, err + } + } + + // now try to convert into the passed in message and fail if not successful + if err := cloneInto(opts, msg.Interface(), interp.resolver); err != nil { + node := interp.file.Node(element) + return nil, interp.reporter.HandleError(reporter.Error(interp.nodeInfo(node).Start(), err)) + } + if interp.container != nil { + b, err := interp.toOptionBytes(mc, results) + if err != nil { + return nil, err + } + interp.container.AddOptionBytes(opts, b) + } + + return nil, nil +} + +// isKnownField returns true if the given option is for a known field of the +// given options message descriptor and will be serialized using the expected +// wire type for that known field. +func isKnownField(desc protoreflect.MessageDescriptor, opt *interpretedOption) bool { + var num int32 + if len(opt.pathPrefix) > 0 { + num = opt.pathPrefix[0] + } else { + num = opt.number + } + fd := desc.Fields().ByNumber(protoreflect.FieldNumber(num)) + if fd == nil { + return false + } + + // Before the full wire type check, we do a quick check that will usually pass + // and allow us to short-circuit the logic below. + if fd.IsList() == opt.repeated && fd.Kind() == opt.kind { + return true + } + + // We figure out the wire type this interpreted field will use when serialized. + var wireType protowire.Type + switch { + case len(opt.pathPrefix) > 0: + // If path prefix exists, this field is nested inside a message. + // And messages use bytes wire type. + wireType = protowire.BytesType + case opt.repeated && opt.packed && canPack(opt.kind): + // Packed repeated numeric scalars use bytes wire type. + wireType = protowire.BytesType + default: + wireType = wireTypeForKind(opt.kind) + } + + // And then we see if the wire type we just determined is compatible with + // the field descriptor we found. + if fd.IsList() && canPack(fd.Kind()) && wireType == protowire.BytesType { + // Even if fd.IsPacked() is false, bytes type is still accepted for + // repeated scalar numerics, so that changing a repeated field from + // packed to not-packed (or vice versa) is a compatible change. + return true + } + return wireType == wireTypeForKind(fd.Kind()) +} + +func wireTypeForKind(kind protoreflect.Kind) protowire.Type { + switch kind { + case protoreflect.StringKind, protoreflect.BytesKind, protoreflect.MessageKind: + return protowire.BytesType + case protoreflect.GroupKind: + return protowire.StartGroupType + case protoreflect.Fixed32Kind, protoreflect.Sfixed32Kind, protoreflect.FloatKind: + return protowire.Fixed32Type + case protoreflect.Fixed64Kind, protoreflect.Sfixed64Kind, protoreflect.DoubleKind: + return protowire.Fixed64Type + default: + // everything else uses varint + return protowire.VarintType + } +} + +func cloneInto(dest proto.Message, src proto.Message, res linker.Resolver) error { + if dest.ProtoReflect().Descriptor() == src.ProtoReflect().Descriptor() { + proto.Reset(dest) + proto.Merge(dest, src) + if err := proto.CheckInitialized(dest); err != nil { + return err + } + return nil + } + + // If descriptors are not the same, we could have field descriptors in src that + // don't match the ones in dest. There's no easy/sane way to handle that. So we + // just marshal to bytes and back to do this + data, err := proto.Marshal(src) + if err != nil { + return err + } + return proto.UnmarshalOptions{Resolver: res}.Unmarshal(data, dest) +} + +func (interp *interpreter) toOptionBytes(mc *internal.MessageContext, results []*interpretedOption) ([]byte, error) { + // protoc emits non-custom options in tag order and then + // the rest are emitted in the order they are defined in source + sort.SliceStable(results, func(i, j int) bool { + if !results[i].unknown && results[j].unknown { + return true + } + if !results[i].unknown && !results[j].unknown { + return results[i].number < results[j].number + } + return false + }) + var b []byte + for _, res := range results { + var err error + b, err = res.appendOptionBytes(b) + if err != nil { + if _, ok := err.(reporter.ErrorWithPos); !ok { + pos := ast.SourcePos{Filename: interp.file.AST().Name()} + err = reporter.Errorf(pos, "%sfailed to encode options: %w", mc, err) + } + if err := interp.reporter.HandleError(err); err != nil { + return nil, err + } + } + } + return b, nil +} + +func validateRecursive(msg protoreflect.Message, prefix string) error { + flds := msg.Descriptor().Fields() + var missingFields []string + for i := 0; i < flds.Len(); i++ { + fld := flds.Get(i) + if fld.Cardinality() == protoreflect.Required && !msg.Has(fld) { + missingFields = append(missingFields, fmt.Sprintf("%s%s", prefix, fld.Name())) + } + } + if len(missingFields) > 0 { + return fmt.Errorf("some required fields missing: %v", strings.Join(missingFields, ", ")) + } + + var err error + msg.Range(func(fld protoreflect.FieldDescriptor, val protoreflect.Value) bool { + if fld.IsMap() { + md := fld.MapValue().Message() + if md != nil { + val.Map().Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + chprefix := fmt.Sprintf("%s%s[%v].", prefix, fieldName(fld), k) + err = validateRecursive(v.Message(), chprefix) + return err == nil + }) + if err != nil { + return false + } + } + } else { + md := fld.Message() + if md != nil { + if fld.IsList() { + sl := val.List() + for i := 0; i < sl.Len(); i++ { + v := sl.Get(i) + chprefix := fmt.Sprintf("%s%s[%d].", prefix, fieldName(fld), i) + err = validateRecursive(v.Message(), chprefix) + if err != nil { + return false + } + } + } else { + chprefix := fmt.Sprintf("%s%s.", prefix, fieldName(fld)) + err = validateRecursive(val.Message(), chprefix) + if err != nil { + return false + } + } + } + } + return true + }) + return err +} + +// interpretField interprets the option described by opt, as a field inside the given msg. This +// interprets components of the option name starting at nameIndex. When nameIndex == 0, then +// msg must be an options message. For nameIndex > 0, msg is a nested message inside of the +// options message. The given pathPrefix is the path (sequence of field numbers and indices +// with a FileDescriptorProto as the start) up to but not including the given nameIndex. +func (interp *interpreter) interpretField(mc *internal.MessageContext, msg protoreflect.Message, opt *descriptorpb.UninterpretedOption, nameIndex int, pathPrefix []int32) (*interpretedOption, error) { + var fld protoreflect.FieldDescriptor + nm := opt.GetName()[nameIndex] + node := interp.file.OptionNamePartNode(nm) + if nm.GetIsExtension() { + extName := nm.GetNamePart() + if extName[0] == '.' { + extName = extName[1:] /* skip leading dot */ + } + fld = interp.file.ResolveExtension(protoreflect.FullName(extName)) + if fld == nil { + return nil, interp.reporter.HandleErrorf(interp.nodeInfo(node).Start(), + "%vunrecognized extension %s of %s", + mc, extName, msg.Descriptor().FullName()) + } + if fld.ContainingMessage().FullName() != msg.Descriptor().FullName() { + return nil, interp.reporter.HandleErrorf(interp.nodeInfo(node).Start(), + "%vextension %s should extend %s but instead extends %s", + mc, extName, msg.Descriptor().FullName(), fld.ContainingMessage().FullName()) + } + } else { + fld = msg.Descriptor().Fields().ByName(protoreflect.Name(nm.GetNamePart())) + if fld == nil { + return nil, interp.reporter.HandleErrorf(interp.nodeInfo(node).Start(), + "%vfield %s of %s does not exist", + mc, nm.GetNamePart(), msg.Descriptor().FullName()) + } + } + + if len(opt.GetName()) > nameIndex+1 { + nextnm := opt.GetName()[nameIndex+1] + nextnode := interp.file.OptionNamePartNode(nextnm) + k := fld.Kind() + if k != protoreflect.MessageKind && k != protoreflect.GroupKind { + return nil, interp.reporter.HandleErrorf(interp.nodeInfo(nextnode).Start(), + "%vcannot set field %s because %s is not a message", + mc, nextnm.GetNamePart(), nm.GetNamePart()) + } + if fld.Cardinality() == protoreflect.Repeated { + return nil, interp.reporter.HandleErrorf(interp.nodeInfo(nextnode).Start(), + "%vcannot set field %s because %s is repeated (must use an aggregate)", + mc, nextnm.GetNamePart(), nm.GetNamePart()) + } + var fdm protoreflect.Message + if msg.Has(fld) { + v := msg.Mutable(fld) + fdm = v.Message() + } else { + if ood := fld.ContainingOneof(); ood != nil { + existingFld := msg.WhichOneof(ood) + if existingFld != nil && existingFld.Number() != fld.Number() { + return nil, interp.reporter.HandleErrorf(interp.nodeInfo(node).Start(), + "%voneof %q already has field %q set", + mc, ood.Name(), fieldName(existingFld)) + } + } + fdm = dynamicpb.NewMessage(fld.Message()) + msg.Set(fld, protoreflect.ValueOfMessage(fdm)) + } + // recurse to set next part of name + return interp.interpretField(mc, fdm, opt, nameIndex+1, append(pathPrefix, int32(fld.Number()))) + } + + optNode := interp.file.OptionNode(opt) + val, err := interp.setOptionField(mc, msg, fld, node, optNode.GetValue(), false) + if err != nil { + return nil, interp.reporter.HandleError(err) + } + var index int32 + if fld.IsMap() { + index = int32(msg.Get(fld).Map().Len()) - 1 + } else if fld.IsList() { + index = int32(msg.Get(fld).List().Len()) - 1 + } + return &interpretedOption{ + pathPrefix: pathPrefix, + interpretedField: interpretedField{ + number: int32(fld.Number()), + index: index, + kind: fld.Kind(), + repeated: fld.Cardinality() == protoreflect.Repeated, + value: val, + // NB: don't set packed here in a top-level option + // (only values in message literals will be serialized + // in packed format) + }, + }, nil +} + +// setOptionField sets the value for field fld in the given message msg to the value represented +// by val. The given name is the AST node that corresponds to the name of fld. On success, it +// returns additional metadata about the field that was set. +func (interp *interpreter) setOptionField(mc *internal.MessageContext, msg protoreflect.Message, fld protoreflect.FieldDescriptor, name ast.Node, val ast.ValueNode, insideMsgLiteral bool) (interpretedFieldValue, error) { + v := val.Value() + if sl, ok := v.([]ast.ValueNode); ok { + // handle slices a little differently than the others + if fld.Cardinality() != protoreflect.Repeated { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue is an array but field is not repeated", mc) + } + origPath := mc.OptAggPath + defer func() { + mc.OptAggPath = origPath + }() + var resVal listValue + var resMsgVals [][]*interpretedField + for index, item := range sl { + mc.OptAggPath = fmt.Sprintf("%s[%d]", origPath, index) + value, err := interp.fieldValue(mc, fld, item, insideMsgLiteral) + if err != nil { + return interpretedFieldValue{}, err + } + if fld.IsMap() { + setMapEntry(msg, fld, &value) + } else { + msg.Mutable(fld).List().Append(value.val) + } + resVal = append(resVal, value.val) + if value.msgVal != nil { + resMsgVals = append(resMsgVals, value.msgVal) + } + } + return interpretedFieldValue{ + isList: true, + val: protoreflect.ValueOfList(&resVal), + msgListVal: resMsgVals, + }, nil + } + + value, err := interp.fieldValue(mc, fld, val, insideMsgLiteral) + if err != nil { + return interpretedFieldValue{}, err + } + + if ood := fld.ContainingOneof(); ood != nil { + existingFld := msg.WhichOneof(ood) + if existingFld != nil && existingFld.Number() != fld.Number() { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(name).Start(), "%voneof %q already has field %q set", mc, ood.Name(), fieldName(existingFld)) + } + } + + switch { + case fld.IsMap(): + setMapEntry(msg, fld, &value) + case fld.IsList(): + msg.Mutable(fld).List().Append(value.val) + default: + if msg.Has(fld) { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(name).Start(), "%vnon-repeated option field %s already set", mc, fieldName(fld)) + } + msg.Set(fld, value.val) + } + return value, nil +} + +func setMapEntry(msg protoreflect.Message, fld protoreflect.FieldDescriptor, value *interpretedFieldValue) { + entry := value.val.Message() + keyFld, valFld := fld.MapKey(), fld.MapValue() + // if an entry is missing a key or value, we add in an explicit + // zero value to msgVals to match protoc (which also odds these + // in even if not present in source) + if !entry.Has(keyFld) { + // put key before value + value.msgVal = append(append(([]*interpretedField)(nil), zeroValue(keyFld)), value.msgVal...) + } + if !entry.Has(valFld) { + value.msgVal = append(value.msgVal, zeroValue(valFld)) + } + key := entry.Get(keyFld) + val := entry.Get(valFld) + if dm, ok := val.Interface().(*dynamicpb.Message); ok && (dm == nil || !dm.IsValid()) { + val = protoreflect.ValueOfMessage(dynamicpb.NewMessage(valFld.Message())) + } + m := msg.Mutable(fld).Map() + // TODO: error if key is already present + m.Set(key.MapKey(), val) +} + +// zeroValue returns the zero value for the field types as a *interpretedField. +// The given fld must NOT be a repeated field. +func zeroValue(fld protoreflect.FieldDescriptor) *interpretedField { + var val protoreflect.Value + var msgVal []*interpretedField + switch fld.Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + // needs to be non-nil, but empty + msgVal = []*interpretedField{} + msg := dynamicpb.NewMessage(fld.Message()) + val = protoreflect.ValueOfMessage(msg) + case protoreflect.EnumKind: + val = protoreflect.ValueOfEnum(0) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + val = protoreflect.ValueOfInt32(0) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + val = protoreflect.ValueOfUint32(0) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + val = protoreflect.ValueOfInt64(0) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + val = protoreflect.ValueOfUint64(0) + case protoreflect.BoolKind: + val = protoreflect.ValueOfBool(false) + case protoreflect.FloatKind: + val = protoreflect.ValueOfFloat32(0) + case protoreflect.DoubleKind: + val = protoreflect.ValueOfFloat64(0) + case protoreflect.BytesKind: + val = protoreflect.ValueOfBytes(nil) + case protoreflect.StringKind: + val = protoreflect.ValueOfString("") + } + return &interpretedField{ + number: int32(fld.Number()), + kind: fld.Kind(), + value: interpretedFieldValue{ + val: val, + msgVal: msgVal, + }, + } +} + +type listValue []protoreflect.Value + +var _ protoreflect.List = (*listValue)(nil) + +func (l listValue) Len() int { + return len(l) +} + +func (l listValue) Get(i int) protoreflect.Value { + return l[i] +} + +func (l listValue) Set(i int, value protoreflect.Value) { + l[i] = value +} + +func (l *listValue) Append(value protoreflect.Value) { + *l = append(*l, value) +} + +func (l listValue) AppendMutable() protoreflect.Value { + panic("AppendMutable not supported") +} + +func (l *listValue) Truncate(i int) { + *l = (*l)[:i] +} + +func (l listValue) NewElement() protoreflect.Value { + panic("NewElement not supported") +} + +func (l listValue) IsValid() bool { + return true +} + +func fieldName(fld protoreflect.FieldDescriptor) string { + if fld.IsExtension() { + return fmt.Sprintf("(%s)", fld.FullName()) + } + return string(fld.Name()) +} + +func valueKind(val interface{}) string { + switch val := val.(type) { + case ast.Identifier: + return "identifier" + case bool: + return "bool" + case int64: + if val < 0 { + return "negative integer" + } + return "integer" + case uint64: + return "integer" + case float64: + return "double" + case string, []byte: + return "string" + case []*ast.MessageFieldNode: + return "message" + case []ast.ValueNode: + return "array" + default: + return fmt.Sprintf("%T", val) + } +} + +// fieldValue computes a compile-time value (constant or list or message literal) for the given +// AST node val. The value in val must be assignable to the field fld. +func (interp *interpreter) fieldValue(mc *internal.MessageContext, fld protoreflect.FieldDescriptor, val ast.ValueNode, insideMsgLiteral bool) (interpretedFieldValue, error) { + k := fld.Kind() + switch k { + case protoreflect.EnumKind: + num, _, err := interp.enumFieldValue(mc, fld.Enum(), val, insideMsgLiteral) + if err != nil { + return interpretedFieldValue{}, err + } + return interpretedFieldValue{val: protoreflect.ValueOfEnum(num)}, nil + + case protoreflect.MessageKind, protoreflect.GroupKind: + v := val.Value() + if aggs, ok := v.([]*ast.MessageFieldNode); ok { + fmd := fld.Message() + return interp.messageLiteralValue(mc, aggs, fmd) + } + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting message, got %s", mc, valueKind(v)) + + default: + v, err := interp.scalarFieldValue(mc, descriptorpb.FieldDescriptorProto_Type(k), val, insideMsgLiteral) + if err != nil { + return interpretedFieldValue{}, err + } + return interpretedFieldValue{val: protoreflect.ValueOf(v)}, nil + } +} + +// enumFieldValue resolves the given AST node val as an enum value descriptor. If the given +// value is not a valid identifier, an error is returned instead. +func (interp *interpreter) enumFieldValue(mc *internal.MessageContext, ed protoreflect.EnumDescriptor, val ast.ValueNode, allowNumber bool) (protoreflect.EnumNumber, protoreflect.Name, error) { + v := val.Value() + var num protoreflect.EnumNumber + switch v := v.(type) { + case ast.Identifier: + name := protoreflect.Name(v) + ev := ed.Values().ByName(name) + if ev == nil { + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%venum %s has no value named %s", mc, ed.FullName(), v) + } + return ev.Number(), name, nil + case int64: + if !allowNumber { + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting enum name, got %s", mc, valueKind(v)) + } + if v > math.MaxInt32 || v < math.MinInt32 { + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for an enum", mc, v) + } + num = protoreflect.EnumNumber(v) + case uint64: + if !allowNumber { + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting enum name, got %s", mc, valueKind(v)) + } + if v > math.MaxInt32 { + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for an enum", mc, v) + } + num = protoreflect.EnumNumber(v) + default: + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting enum, got %s", mc, valueKind(v)) + } + ev := ed.Values().ByNumber(num) + if ev != nil { + return num, ev.Name(), nil + } + if ed.Syntax() != protoreflect.Proto3 { + return 0, "", reporter.Errorf(interp.nodeInfo(val).Start(), "%vclosed enum %s has no value with number %d", mc, ed.FullName(), num) + } + // unknown value, but enum is open, so we allow it and return blank name + return num, "", nil +} + +// scalarFieldValue resolves the given AST node val as a value whose type is assignable to a +// field with the given fldType. +func (interp *interpreter) scalarFieldValue(mc *internal.MessageContext, fldType descriptorpb.FieldDescriptorProto_Type, val ast.ValueNode, insideMsgLiteral bool) (interface{}, error) { + v := val.Value() + switch fldType { + case descriptorpb.FieldDescriptorProto_TYPE_BOOL: + if b, ok := v.(bool); ok { + return b, nil + } + if id, ok := v.(ast.Identifier); ok { + if insideMsgLiteral { + // inside a message literal, values use the protobuf text format, + // which is lenient in that it accepts "t" and "f" or "True" and "False" + switch id { + case "t", "true", "True": + return true, nil + case "f", "false", "False": + return false, nil + } + } else { + // options with simple scalar values (no message literal) are stricter + switch id { + case "true": + return true, nil + case "false": + return false, nil + } + } + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting bool, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_BYTES: + if str, ok := v.(string); ok { + return []byte(str), nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting bytes, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_STRING: + if str, ok := v.(string); ok { + return str, nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting string, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_INT32, descriptorpb.FieldDescriptorProto_TYPE_SINT32, descriptorpb.FieldDescriptorProto_TYPE_SFIXED32: + if i, ok := v.(int64); ok { + if i > math.MaxInt32 || i < math.MinInt32 { + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for int32", mc, i) + } + return int32(i), nil + } + if ui, ok := v.(uint64); ok { + if ui > math.MaxInt32 { + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for int32", mc, ui) + } + return int32(ui), nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting int32, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_UINT32, descriptorpb.FieldDescriptorProto_TYPE_FIXED32: + if i, ok := v.(int64); ok { + if i > math.MaxUint32 || i < 0 { + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for uint32", mc, i) + } + return uint32(i), nil + } + if ui, ok := v.(uint64); ok { + if ui > math.MaxUint32 { + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for uint32", mc, ui) + } + return uint32(ui), nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting uint32, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_INT64, descriptorpb.FieldDescriptorProto_TYPE_SINT64, descriptorpb.FieldDescriptorProto_TYPE_SFIXED64: + if i, ok := v.(int64); ok { + return i, nil + } + if ui, ok := v.(uint64); ok { + if ui > math.MaxInt64 { + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for int64", mc, ui) + } + return int64(ui), nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting int64, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_UINT64, descriptorpb.FieldDescriptorProto_TYPE_FIXED64: + if i, ok := v.(int64); ok { + if i < 0 { + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vvalue %d is out of range for uint64", mc, i) + } + return uint64(i), nil + } + if ui, ok := v.(uint64); ok { + return ui, nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting uint64, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_DOUBLE: + if id, ok := v.(ast.Identifier); ok { + switch id { + case "inf": + return math.Inf(1), nil + case "nan": + return math.NaN(), nil + } + } + if d, ok := v.(float64); ok { + return d, nil + } + if i, ok := v.(int64); ok { + return float64(i), nil + } + if u, ok := v.(uint64); ok { + return float64(u), nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting double, got %s", mc, valueKind(v)) + case descriptorpb.FieldDescriptorProto_TYPE_FLOAT: + if id, ok := v.(ast.Identifier); ok { + switch id { + case "inf": + return float32(math.Inf(1)), nil + case "nan": + return float32(math.NaN()), nil + } + } + if d, ok := v.(float64); ok { + return float32(d), nil + } + if i, ok := v.(int64); ok { + return float32(i), nil + } + if u, ok := v.(uint64); ok { + return float32(u), nil + } + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vexpecting float, got %s", mc, valueKind(v)) + default: + return nil, reporter.Errorf(interp.nodeInfo(val).Start(), "%vunrecognized field type: %s", mc, fldType) + } +} + +func descriptorType(m proto.Message) string { + switch m := m.(type) { + case *descriptorpb.DescriptorProto: + return "message" + case *descriptorpb.DescriptorProto_ExtensionRange: + return "extension range" + case *descriptorpb.FieldDescriptorProto: + if m.GetExtendee() == "" { + return "field" + } + return "extension" + case *descriptorpb.EnumDescriptorProto: + return "enum" + case *descriptorpb.EnumValueDescriptorProto: + return "enum value" + case *descriptorpb.ServiceDescriptorProto: + return "service" + case *descriptorpb.MethodDescriptorProto: + return "method" + case *descriptorpb.FileDescriptorProto: + return "file" + default: + // shouldn't be possible + return fmt.Sprintf("%T", m) + } +} + +func (interp *interpreter) messageLiteralValue(mc *internal.MessageContext, fieldNodes []*ast.MessageFieldNode, fmd protoreflect.MessageDescriptor) (interpretedFieldValue, error) { + fdm := dynamicpb.NewMessage(fmd) + origPath := mc.OptAggPath + defer func() { + mc.OptAggPath = origPath + }() + // NB: we don't want to leave this nil, even if the + // message is empty, because that indicates to + // caller that the result is not a message + flds := make([]*interpretedField, 0, len(fieldNodes)) + var foundAnyNode bool + for _, fieldNode := range fieldNodes { + if origPath == "" { + mc.OptAggPath = fieldNode.Name.Value() + } else { + mc.OptAggPath = origPath + "." + fieldNode.Name.Value() + } + if fieldNode.Name.IsAnyTypeReference() { + if fmd.FullName() != "google.protobuf.Any" { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name.URLPrefix).Start(), "%vtype references are only allowed for google.protobuf.Any, but this type is %s", mc, fmd.FullName()) + } + if foundAnyNode { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name.URLPrefix).Start(), "%vmultiple any type references are not allowed", mc) + } + foundAnyNode = true + urlPrefix := fieldNode.Name.URLPrefix.AsIdentifier() + msgName := fieldNode.Name.Name.AsIdentifier() + fullURL := fmt.Sprintf("%s/%s", urlPrefix, msgName) + // TODO: Support other URLs dynamically -- the caller of protoparse + // should be able to provide a fldNode custom resolver that can resolve type + // URLs into message descriptors. The default resolver would be + // implemented as below, only accepting "type.googleapis.com" and + // "type.googleprod.com" as hosts/prefixes and using the compiled + // file's transitive closure to find the named message. + if urlPrefix != "type.googleapis.com" && urlPrefix != "type.googleprod.com" { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name.URLPrefix).Start(), "%vcould not resolve type reference %s", mc, fullURL) + } + anyFields, ok := fieldNode.Val.Value().([]*ast.MessageFieldNode) + if !ok { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Val).Start(), "%vtype references for google.protobuf.Any must have message literal value", mc) + } + anyMd := interp.file.ResolveMessageType(protoreflect.FullName(msgName)) + if anyMd == nil { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name.URLPrefix).Start(), "%vcould not resolve type reference %s", mc, fullURL) + } + // parse the message value + msgVal, err := interp.messageLiteralValue(mc, anyFields, anyMd) + if err != nil { + return interpretedFieldValue{}, err + } + + // Any is defined with two fields: + // string type_url = 1 + // bytes value = 2 + typeURLDescriptor := fmd.Fields().ByNumber(1) + if typeURLDescriptor == nil || typeURLDescriptor.Kind() != protoreflect.StringKind { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name).Start(), "%vfailed to set type_url string field on Any: %w", mc, err) + } + fdm.Set(typeURLDescriptor, protoreflect.ValueOfString(fullURL)) + valueDescriptor := fmd.Fields().ByNumber(2) + if valueDescriptor == nil || valueDescriptor.Kind() != protoreflect.BytesKind { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name).Start(), "%vfailed to set value bytes field on Any: %w", mc, err) + } + b, err := proto.MarshalOptions{Deterministic: true}.Marshal(msgVal.val.Message().Interface()) + if err != nil { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Val).Start(), "%vfailed to serialize message value: %w", mc, err) + } + fdm.Set(valueDescriptor, protoreflect.ValueOfBytes(b)) + } else { + var ffld protoreflect.FieldDescriptor + if fieldNode.Name.IsExtension() { + n := interp.file.ResolveMessageLiteralExtensionName(fieldNode.Name.Name) + if n == "" { + // this should not be possible! + n = string(fieldNode.Name.Name.AsIdentifier()) + } + ffld = interp.file.ResolveExtension(protoreflect.FullName(n)) + if ffld == nil { + // may need to qualify with package name + // (this should not be necessary!) + pkg := mc.File.FileDescriptorProto().GetPackage() + if pkg != "" { + ffld = interp.file.ResolveExtension(protoreflect.FullName(pkg + "." + n)) + } + } + } else { + ffld = fmd.Fields().ByName(protoreflect.Name(fieldNode.Name.Value())) + // Groups are indicated in the text format by the group name (which is + // camel-case), NOT the field name (which is lower-case). + // ...but only regular fields, not extensions that are groups... + if ffld != nil && ffld.Kind() == protoreflect.GroupKind && ffld.Message().Name() != protoreflect.Name(fieldNode.Name.Value()) { + // this is kind of silly to fail here, but this mimics protoc behavior + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name).Start(), "%vfield %s not found (did you mean the group named %s?)", mc, fieldNode.Name.Value(), ffld.Message().Name()) + } + if ffld == nil { + // could be a group name + for i := 0; i < fmd.Fields().Len(); i++ { + fd := fmd.Fields().Get(i) + if fd.Kind() == protoreflect.GroupKind && fd.Message().Name() == protoreflect.Name(fieldNode.Name.Value()) { + // found it! + ffld = fd + break + } + } + } + } + if ffld == nil { + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Name).Start(), "%vfield %s not found", mc, string(fieldNode.Name.Name.AsIdentifier())) + } + if fieldNode.Sep == nil && ffld.Message() == nil { + // If there is no separator, the field type should be a message. + // Otherwise it is an error in the text format. + return interpretedFieldValue{}, reporter.Errorf(interp.nodeInfo(fieldNode.Val).Start(), "syntax error: unexpected value, expecting ':'") + } + res, err := interp.setOptionField(mc, fdm, ffld, fieldNode.Name, fieldNode.Val, true) + if err != nil { + return interpretedFieldValue{}, err + } + flds = append(flds, &interpretedField{ + number: int32(ffld.Number()), + kind: ffld.Kind(), + repeated: ffld.Cardinality() == protoreflect.Repeated, + packed: ffld.IsPacked(), + value: res, + // NB: no need to set index here, inside message literal + // (it is only used for top-level options, for emitting + // source code info) + }) + } + } + return interpretedFieldValue{ + val: protoreflect.ValueOfMessage(fdm), + msgVal: flds, + }, nil +} diff --git a/vendor/github.com/bufbuild/protocompile/parser/ast.go b/vendor/github.com/bufbuild/protocompile/parser/ast.go new file mode 100644 index 0000000..105502d --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/ast.go @@ -0,0 +1,216 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import "github.com/bufbuild/protocompile/ast" + +// the types below are accumulator types: linked lists that are +// constructed during parsing and then converted to slices of AST nodes +// once the whole list has been parsed +// TODO: change grammar to use slices of nodes instead of these constructions + +type compactOptionList struct { + option *ast.OptionNode + comma *ast.RuneNode + next *compactOptionList +} + +func (list *compactOptionList) toNodes() ([]*ast.OptionNode, []*ast.RuneNode) { + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + opts := make([]*ast.OptionNode, l) + commas := make([]*ast.RuneNode, l-1) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + opts[i] = cur.option + if cur.comma != nil { + commas[i] = cur.comma + } + } + return opts, commas +} + +type stringList struct { + str *ast.StringLiteralNode + next *stringList +} + +func (list *stringList) toStringValueNode() ast.StringValueNode { + if list.next == nil { + // single name + return list.str + } + + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + strs := make([]*ast.StringLiteralNode, l) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + strs[i] = cur.str + } + return ast.NewCompoundLiteralStringNode(strs...) +} + +type nameList struct { + name ast.StringValueNode + comma *ast.RuneNode + next *nameList +} + +func (list *nameList) toNodes() ([]ast.StringValueNode, []*ast.RuneNode) { + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + names := make([]ast.StringValueNode, l) + commas := make([]*ast.RuneNode, l-1) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + names[i] = cur.name + if cur.comma != nil { + commas[i] = cur.comma + } + } + return names, commas +} + +type rangeList struct { + rng *ast.RangeNode + comma *ast.RuneNode + next *rangeList +} + +func (list *rangeList) toNodes() ([]*ast.RangeNode, []*ast.RuneNode) { + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + ranges := make([]*ast.RangeNode, l) + commas := make([]*ast.RuneNode, l-1) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + ranges[i] = cur.rng + if cur.comma != nil { + commas[i] = cur.comma + } + } + return ranges, commas +} + +type valueList struct { + val ast.ValueNode + comma *ast.RuneNode + next *valueList +} + +func (list *valueList) toNodes() ([]ast.ValueNode, []*ast.RuneNode) { + if list == nil { + return nil, nil + } + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + vals := make([]ast.ValueNode, l) + commas := make([]*ast.RuneNode, l-1) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + vals[i] = cur.val + if cur.comma != nil { + commas[i] = cur.comma + } + } + return vals, commas +} + +type fieldRefList struct { + ref *ast.FieldReferenceNode + dot *ast.RuneNode + next *fieldRefList +} + +func (list *fieldRefList) toNodes() ([]*ast.FieldReferenceNode, []*ast.RuneNode) { + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + refs := make([]*ast.FieldReferenceNode, l) + dots := make([]*ast.RuneNode, l-1) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + refs[i] = cur.ref + if cur.dot != nil { + dots[i] = cur.dot + } + } + + return refs, dots +} + +type identList struct { + ident *ast.IdentNode + dot *ast.RuneNode + next *identList +} + +func (list *identList) toIdentValueNode(leadingDot *ast.RuneNode) ast.IdentValueNode { + if list.next == nil && leadingDot == nil { + // single name + return list.ident + } + + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + idents := make([]*ast.IdentNode, l) + dots := make([]*ast.RuneNode, l-1) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + idents[i] = cur.ident + if cur.dot != nil { + dots[i] = cur.dot + } + } + + return ast.NewCompoundIdentNode(leadingDot, idents, dots) +} + +type messageFieldEntry struct { + field *ast.MessageFieldNode + delimiter *ast.RuneNode +} + +type messageFieldList struct { + field *messageFieldEntry + next *messageFieldList +} + +func (list *messageFieldList) toNodes() ([]*ast.MessageFieldNode, []*ast.RuneNode) { + if list == nil { + return nil, nil + } + l := 0 + for cur := list; cur != nil; cur = cur.next { + l++ + } + fields := make([]*ast.MessageFieldNode, l) + delimiters := make([]*ast.RuneNode, l) + for cur, i := list, 0; cur != nil; cur, i = cur.next, i+1 { + fields[i] = cur.field.field + if cur.field.delimiter != nil { + delimiters[i] = cur.field.delimiter + } + } + + return fields, delimiters +} diff --git a/vendor/github.com/bufbuild/protocompile/parser/clone.go b/vendor/github.com/bufbuild/protocompile/parser/clone.go new file mode 100644 index 0000000..7c5505f --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/clone.go @@ -0,0 +1,182 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import ( + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/reporter" +) + +// Clone returns a copy of the given result. Since descriptor protos may be +// mutated during linking, this can return a defensive copy so that mutations +// don't impact concurrent operations in an unsafe way. This is called if the +// parse result could be re-used across concurrent operations and has unresolved +// references and options which will require mutation by the linker. +// +// If the given value has a method with the following signature, it will be +// called to perform the operation: +// +// Clone() Result +// +// If the given value does not provide a Clone method and is not the implementation +// provided by this package, it is possible for an error to occur in creating the +// copy, which may result in a panic. This can happen if the AST of the given result +// is not actually valid and a file descriptor proto cannot be successfully derived +// from it. +func Clone(r Result) Result { + if cl, ok := r.(interface{ Clone() Result }); ok { + return cl.Clone() + } + if res, ok := r.(*result); ok { + newProto := proto.Clone(res.proto).(*descriptorpb.FileDescriptorProto) //nolint:errcheck + newNodes := make(map[proto.Message]ast.Node, len(res.nodes)) + newResult := &result{ + file: res.file, + proto: newProto, + nodes: newNodes, + } + recreateNodeIndexForFile(res, newResult, res.proto, newProto) + return newResult + } + + // Can't do the deep-copy we know how to do. So we have to take a + // different tactic. + if r.AST() == nil { + // no AST? all we have to do is copy the proto + fileProto := proto.Clone(r.FileDescriptorProto()).(*descriptorpb.FileDescriptorProto) //nolint:errcheck + return ResultWithoutAST(fileProto) + } + // Otherwise, we have an AST, but no way to clone the result's + // internals. So just re-create them from scratch. + res, err := ResultFromAST(r.AST(), false, reporter.NewHandler(nil)) + if err != nil { + panic(err) + } + return res +} + +func recreateNodeIndexForFile(orig, clone *result, origProto, cloneProto *descriptorpb.FileDescriptorProto) { + updateNodeIndexWithOptions[*descriptorpb.FileOptions](orig, clone, origProto, cloneProto) + for i, origMd := range origProto.MessageType { + cloneMd := cloneProto.MessageType[i] + recreateNodeIndexForMessage(orig, clone, origMd, cloneMd) + } + for i, origEd := range origProto.EnumType { + cloneEd := cloneProto.EnumType[i] + recreateNodeIndexForEnum(orig, clone, origEd, cloneEd) + } + for i, origExtd := range origProto.Extension { + cloneExtd := cloneProto.Extension[i] + updateNodeIndexWithOptions[*descriptorpb.FieldOptions](orig, clone, origExtd, cloneExtd) + } + for i, origSd := range origProto.Service { + cloneSd := cloneProto.Service[i] + updateNodeIndexWithOptions[*descriptorpb.ServiceOptions](orig, clone, origSd, cloneSd) + for j, origMtd := range origSd.Method { + cloneMtd := cloneSd.Method[j] + updateNodeIndexWithOptions[*descriptorpb.MethodOptions](orig, clone, origMtd, cloneMtd) + } + } +} + +func recreateNodeIndexForMessage(orig, clone *result, origProto, cloneProto *descriptorpb.DescriptorProto) { + updateNodeIndexWithOptions[*descriptorpb.MessageOptions](orig, clone, origProto, cloneProto) + for i, origFld := range origProto.Field { + cloneFld := cloneProto.Field[i] + updateNodeIndexWithOptions[*descriptorpb.FieldOptions](orig, clone, origFld, cloneFld) + } + for i, origOod := range origProto.OneofDecl { + cloneOod := cloneProto.OneofDecl[i] + updateNodeIndexWithOptions[*descriptorpb.OneofOptions](orig, clone, origOod, cloneOod) + } + for i, origExtr := range origProto.ExtensionRange { + cloneExtr := cloneProto.ExtensionRange[i] + updateNodeIndexWithOptions[*descriptorpb.ExtensionRangeOptions](orig, clone, origExtr, cloneExtr) + } + for i, origRr := range origProto.ReservedRange { + cloneRr := cloneProto.ReservedRange[i] + updateNodeIndex(orig, clone, origRr, cloneRr) + } + for i, origNmd := range origProto.NestedType { + cloneNmd := cloneProto.NestedType[i] + recreateNodeIndexForMessage(orig, clone, origNmd, cloneNmd) + } + for i, origEd := range origProto.EnumType { + cloneEd := cloneProto.EnumType[i] + recreateNodeIndexForEnum(orig, clone, origEd, cloneEd) + } + for i, origExtd := range origProto.Extension { + cloneExtd := cloneProto.Extension[i] + updateNodeIndexWithOptions[*descriptorpb.FieldOptions](orig, clone, origExtd, cloneExtd) + } +} + +func recreateNodeIndexForEnum(orig, clone *result, origProto, cloneProto *descriptorpb.EnumDescriptorProto) { + updateNodeIndexWithOptions[*descriptorpb.EnumOptions](orig, clone, origProto, cloneProto) + for i, origEvd := range origProto.Value { + cloneEvd := cloneProto.Value[i] + updateNodeIndexWithOptions[*descriptorpb.EnumValueOptions](orig, clone, origEvd, cloneEvd) + } + for i, origRr := range origProto.ReservedRange { + cloneRr := cloneProto.ReservedRange[i] + updateNodeIndex(orig, clone, origRr, cloneRr) + } +} + +func recreateNodeIndexForOptions(orig, clone *result, origProtos, cloneProtos []*descriptorpb.UninterpretedOption) { + for i, origOpt := range origProtos { + cloneOpt := cloneProtos[i] + updateNodeIndex(orig, clone, origOpt, cloneOpt) + for j, origName := range origOpt.Name { + cloneName := cloneOpt.Name[j] + updateNodeIndex(orig, clone, origName, cloneName) + } + } +} + +func updateNodeIndex[M proto.Message](orig, clone *result, origProto, cloneProto M) { + node := orig.nodes[origProto] + if node != nil { + clone.nodes[cloneProto] = node + } +} + +type pointerMessage[T any] interface { + *T + proto.Message +} + +type options[T any] interface { + // need this type instead of just proto.Message so we can check for nil pointer + pointerMessage[T] + GetUninterpretedOption() []*descriptorpb.UninterpretedOption +} + +type withOptions[O options[T], T any] interface { + proto.Message + GetOptions() O +} + +func updateNodeIndexWithOptions[O options[T], M withOptions[O, T], T any](orig, clone *result, origProto, cloneProto M) { + updateNodeIndex(orig, clone, origProto, cloneProto) + origOpts := origProto.GetOptions() + cloneOpts := cloneProto.GetOptions() + if origOpts != nil { + recreateNodeIndexForOptions(orig, clone, origOpts.GetUninterpretedOption(), cloneOpts.GetUninterpretedOption()) + } +} diff --git a/vendor/github.com/bufbuild/protocompile/parser/doc.go b/vendor/github.com/bufbuild/protocompile/parser/doc.go new file mode 100644 index 0000000..d4e2c75 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/doc.go @@ -0,0 +1,25 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser contains the logic for parsing protobuf source code into an +// AST (abstract syntax tree) and also for converting an AST into a descriptor +// proto. +// +// A FileDescriptorProto is very similar to an AST, but the AST this package +// uses is more useful because it contains more information about the source +// code, including details about whitespace and comments, that cannot be +// represented by a descriptor proto. This makes it ideal for things like +// code formatters, which may want to preserve things like whitespace and +// comment format. +package parser diff --git a/vendor/github.com/bufbuild/protocompile/parser/errors.go b/vendor/github.com/bufbuild/protocompile/parser/errors.go new file mode 100644 index 0000000..6e34bb8 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/errors.go @@ -0,0 +1,22 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import "errors" + +// ErrNoSyntax is a sentinel error that may be passed to a warning reporter. +// The error the reporter receives will be wrapped with source position that +// indicates the file that had no syntax statement. +var ErrNoSyntax = errors.New("no syntax specified; defaulting to proto2 syntax") diff --git a/vendor/github.com/bufbuild/protocompile/parser/lexer.go b/vendor/github.com/bufbuild/protocompile/parser/lexer.go new file mode 100644 index 0000000..e4701fa --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/lexer.go @@ -0,0 +1,760 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import ( + "bufio" + "bytes" + "errors" + "fmt" + "io" + "math" + "strconv" + "strings" + "unicode/utf8" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/reporter" +) + +type runeReader struct { + data []byte + pos int + err error + mark int + // Enable this check to make input required to be valid UTF-8. + // For now, since protoc allows invalid UTF-8, default to false. + utf8Strict bool +} + +func (rr *runeReader) readRune() (r rune, size int, err error) { + if rr.err != nil { + return 0, 0, rr.err + } + if rr.pos == len(rr.data) { + rr.err = io.EOF + return 0, 0, rr.err + } + r, sz := utf8.DecodeRune(rr.data[rr.pos:]) + if rr.utf8Strict && r == utf8.RuneError { + rr.err = fmt.Errorf("invalid UTF8 at offset %d: %x", rr.pos, rr.data[rr.pos]) + return 0, 0, rr.err + } + rr.pos += sz + return r, sz, nil +} + +func (rr *runeReader) offset() int { + return rr.pos +} + +func (rr *runeReader) unreadRune(sz int) { + newPos := rr.pos - sz + if newPos < rr.mark { + panic("unread past mark") + } + rr.pos = newPos +} + +func (rr *runeReader) setMark() { + rr.mark = rr.pos +} + +func (rr *runeReader) getMark() string { + return string(rr.data[rr.mark:rr.pos]) +} + +type protoLex struct { + input *runeReader + info *ast.FileInfo + handler *reporter.Handler + res *ast.FileNode + + prevSym ast.TerminalNode + prevOffset int + eof ast.Token + + comments []ast.Token +} + +var utf8Bom = []byte{0xEF, 0xBB, 0xBF} + +func newLexer(in io.Reader, filename string, handler *reporter.Handler) (*protoLex, error) { + br := bufio.NewReader(in) + + // if file has UTF8 byte order marker preface, consume it + marker, err := br.Peek(3) + if err == nil && bytes.Equal(marker, utf8Bom) { + _, _ = br.Discard(3) + } + + contents, err := io.ReadAll(br) + if err != nil { + return nil, err + } + return &protoLex{ + input: &runeReader{data: contents}, + info: ast.NewFileInfo(filename, contents), + handler: handler, + }, nil +} + +var keywords = map[string]int{ + "syntax": _SYNTAX, + "import": _IMPORT, + "weak": _WEAK, + "public": _PUBLIC, + "package": _PACKAGE, + "option": _OPTION, + "true": _TRUE, + "false": _FALSE, + "inf": _INF, + "nan": _NAN, + "repeated": _REPEATED, + "optional": _OPTIONAL, + "required": _REQUIRED, + "double": _DOUBLE, + "float": _FLOAT, + "int32": _INT32, + "int64": _INT64, + "uint32": _UINT32, + "uint64": _UINT64, + "sint32": _SINT32, + "sint64": _SINT64, + "fixed32": _FIXED32, + "fixed64": _FIXED64, + "sfixed32": _SFIXED32, + "sfixed64": _SFIXED64, + "bool": _BOOL, + "string": _STRING, + "bytes": _BYTES, + "group": _GROUP, + "oneof": _ONEOF, + "map": _MAP, + "extensions": _EXTENSIONS, + "to": _TO, + "max": _MAX, + "reserved": _RESERVED, + "enum": _ENUM, + "message": _MESSAGE, + "extend": _EXTEND, + "service": _SERVICE, + "rpc": _RPC, + "stream": _STREAM, + "returns": _RETURNS, +} + +func (l *protoLex) maybeNewLine(r rune) { + if r == '\n' { + l.info.AddLine(l.input.offset()) + } +} + +func (l *protoLex) prev() ast.SourcePos { + return l.info.SourcePos(l.prevOffset) +} + +func (l *protoLex) Lex(lval *protoSymType) int { + if l.handler.ReporterError() != nil { + // if error reporter already returned non-nil error, + // we can skip the rest of the input + return 0 + } + + l.comments = nil + + for { + l.input.setMark() + + l.prevOffset = l.input.offset() + c, _, err := l.input.readRune() + if err == io.EOF { + // we're not actually returning a rune, but this will associate + // accumulated comments as a trailing comment on last symbol + // (if appropriate) + l.setRune(lval, 0) + l.eof = lval.b.Token() + return 0 + } + if err != nil { + l.setError(lval, err) + return _ERROR + } + + if strings.ContainsRune("\n\r\t\f\v ", c) { + // skip whitespace + l.maybeNewLine(c) + continue + } + + if c == '.' { + // decimal literals could start with a dot + cn, szn, err := l.input.readRune() + if err != nil { + l.setRune(lval, c) + return int(c) + } + if cn >= '0' && cn <= '9' { + l.readNumber() + token := l.input.getMark() + f, err := parseFloat(token) + if err != nil { + l.setError(lval, numError(err, "float", token)) + return _ERROR + } + l.setFloat(lval, f) + return _FLOAT_LIT + } + l.input.unreadRune(szn) + l.setRune(lval, c) + return int(c) + } + + if c == '_' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') { + // identifier + l.readIdentifier() + str := l.input.getMark() + if t, ok := keywords[str]; ok { + l.setIdent(lval, str) + return t + } + l.setIdent(lval, str) + return _NAME + } + + if c >= '0' && c <= '9' { + // integer or float literal + l.readNumber() + token := l.input.getMark() + if strings.HasPrefix(token, "0x") || strings.HasPrefix(token, "0X") { + // hexadecimal + ui, err := strconv.ParseUint(token[2:], 16, 64) + if err != nil { + l.setError(lval, numError(err, "hexadecimal integer", token[2:])) + return _ERROR + } + l.setInt(lval, ui) + return _INT_LIT + } + if strings.ContainsAny(token, ".eE") { + // floating point! + f, err := parseFloat(token) + if err != nil { + l.setError(lval, numError(err, "float", token)) + return _ERROR + } + l.setFloat(lval, f) + return _FLOAT_LIT + } + // integer! (decimal or octal) + base := 10 + if token[0] == '0' { + base = 8 + } + ui, err := strconv.ParseUint(token, base, 64) + if err != nil { + kind := "integer" + if base == 8 { + kind = "octal integer" + } else if numErr, ok := err.(*strconv.NumError); ok && numErr.Err == strconv.ErrRange { + // if it's too big to be an int, parse it as a float + var f float64 + kind = "float" + f, err = parseFloat(token) + if err == nil { + l.setFloat(lval, f) + return _FLOAT_LIT + } + } + l.setError(lval, numError(err, kind, token)) + return _ERROR + } + l.setInt(lval, ui) + return _INT_LIT + } + + if c == '\'' || c == '"' { + // string literal + str, err := l.readStringLiteral(c) + if err != nil { + l.setError(lval, err) + return _ERROR + } + l.setString(lval, str) + return _STRING_LIT + } + + if c == '/' { + // comment + cn, szn, err := l.input.readRune() + if err != nil { + l.setRune(lval, '/') + return int(c) + } + if cn == '/' { + if hasErr := l.skipToEndOfLineComment(lval); hasErr { + return _ERROR + } + l.comments = append(l.comments, l.newToken()) + continue + } + if cn == '*' { + ok, hasErr := l.skipToEndOfBlockComment(lval) + if hasErr { + return _ERROR + } + if !ok { + l.setError(lval, errors.New("block comment never terminates, unexpected EOF")) + return _ERROR + } + l.comments = append(l.comments, l.newToken()) + continue + } + l.input.unreadRune(szn) + } + + if c < 32 || c == 127 { + l.setError(lval, errors.New("invalid control character")) + return _ERROR + } + if !strings.ContainsRune(";,.:=-+(){}[]<>/", c) { + l.setError(lval, errors.New("invalid character")) + return _ERROR + } + l.setRune(lval, c) + return int(c) + } +} + +func parseFloat(token string) (float64, error) { + // strconv.ParseFloat allows _ to separate digits, but protobuf does not + if strings.ContainsRune(token, '_') { + return 0, &strconv.NumError{ + Func: "parseFloat", + Num: token, + Err: strconv.ErrSyntax, + } + } + f, err := strconv.ParseFloat(token, 64) + if err == nil { + return f, nil + } + if numErr, ok := err.(*strconv.NumError); ok && numErr.Err == strconv.ErrRange && math.IsInf(f, 1) { + // protoc doesn't complain about float overflow and instead just uses "infinity" + // so we mirror that behavior by just returning infinity and ignoring the error + return f, nil + } + return f, err +} + +func (l *protoLex) newToken() ast.Token { + offset := l.input.mark + length := l.input.pos - l.input.mark + return l.info.AddToken(offset, length) +} + +func (l *protoLex) setPrevAndAddComments(n ast.TerminalNode) { + comments := l.comments + l.comments = nil + var prevTrailingComments []ast.Token + if l.prevSym != nil && len(comments) > 0 { + prevEnd := l.info.NodeInfo(l.prevSym).End().Line + info := l.info.NodeInfo(n) + nStart := info.Start().Line + if nStart == prevEnd { + if rn, ok := n.(*ast.RuneNode); ok && rn.Rune == 0 { + // if current token is EOF, pretend its on separate line + // so that the logic below can attribute a final trailing + // comment to the previous token + nStart++ + } + } + c := comments[0] + commentInfo := l.info.TokenInfo(c) + commentStart := commentInfo.Start().Line + if nStart > prevEnd && commentStart == prevEnd { + // Comment starts right after the previous token. If it's a + // line comment, we record that as a trailing comment. + // + // But if it's a block comment, it is only a trailing comment + // if there are multiple comments or if the block comment ends + // on a line before n. + canDonate := strings.HasPrefix(commentInfo.RawText(), "//") || + len(comments) > 1 || commentInfo.End().Line < nStart + + if canDonate { + prevTrailingComments = comments[:1] + comments = comments[1:] + } + } + } + + // now we can associate comments + for _, c := range prevTrailingComments { + l.info.AddComment(c, l.prevSym.Token()) + } + for _, c := range comments { + l.info.AddComment(c, n.Token()) + } + + l.prevSym = n +} + +func (l *protoLex) setString(lval *protoSymType, val string) { + lval.s = ast.NewStringLiteralNode(val, l.newToken()) + l.setPrevAndAddComments(lval.s) +} + +func (l *protoLex) setIdent(lval *protoSymType, val string) { + lval.id = ast.NewIdentNode(val, l.newToken()) + l.setPrevAndAddComments(lval.id) +} + +func (l *protoLex) setInt(lval *protoSymType, val uint64) { + lval.i = ast.NewUintLiteralNode(val, l.newToken()) + l.setPrevAndAddComments(lval.i) +} + +func (l *protoLex) setFloat(lval *protoSymType, val float64) { + lval.f = ast.NewFloatLiteralNode(val, l.newToken()) + l.setPrevAndAddComments(lval.f) +} + +func (l *protoLex) setRune(lval *protoSymType, val rune) { + lval.b = ast.NewRuneNode(val, l.newToken()) + l.setPrevAndAddComments(lval.b) +} + +func (l *protoLex) setError(lval *protoSymType, err error) { + lval.err, _ = l.addSourceError(err) +} + +func (l *protoLex) readNumber() { + allowExpSign := false + for { + c, sz, err := l.input.readRune() + if err != nil { + break + } + if (c == '-' || c == '+') && !allowExpSign { + l.input.unreadRune(sz) + break + } + allowExpSign = false + if c != '.' && c != '_' && (c < '0' || c > '9') && + (c < 'a' || c > 'z') && (c < 'A' || c > 'Z') && + c != '-' && c != '+' { + // no more chars in the number token + l.input.unreadRune(sz) + break + } + if c == 'e' || c == 'E' { + // scientific notation char can be followed by + // an exponent sign + allowExpSign = true + } + } +} + +func numError(err error, kind, s string) error { + ne, ok := err.(*strconv.NumError) + if !ok { + return err + } + if ne.Err == strconv.ErrRange { + return fmt.Errorf("value out of range for %s: %s", kind, s) + } + // syntax error + return fmt.Errorf("invalid syntax in %s value: %s", kind, s) +} + +func (l *protoLex) readIdentifier() { + for { + c, sz, err := l.input.readRune() + if err != nil { + break + } + if c != '_' && (c < 'a' || c > 'z') && (c < 'A' || c > 'Z') && (c < '0' || c > '9') { + l.input.unreadRune(sz) + break + } + } +} + +func (l *protoLex) readStringLiteral(quote rune) (string, error) { + var buf bytes.Buffer + var escapeError reporter.ErrorWithPos + var noMoreErrors bool + reportErr := func(msg, badEscape string) { + if noMoreErrors { + return + } + if escapeError != nil { + // report previous one + _, ok := l.addSourceError(escapeError) + if !ok { + noMoreErrors = true + } + } + var err error + if strings.HasSuffix(msg, "%s") { + err = fmt.Errorf(msg, badEscape) + } else { + err = errors.New(msg) + } + // we've now consumed the bad escape and lexer position is after it, so we need + // to back up to the beginning of the escape to report the correct position + escapeError = l.errWithCurrentPos(err, -len(badEscape)) + } + for { + c, _, err := l.input.readRune() + if err != nil { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + return "", err + } + if c == '\n' { + return "", errors.New("encountered end-of-line before end of string literal") + } + if c == quote { + break + } + if c == 0 { + reportErr("null character ('\\0') not allowed in string literal", string(rune(0))) + continue + } + if c == '\\' { + // escape sequence + c, _, err = l.input.readRune() + if err != nil { + return "", err + } + switch { + case c == 'x' || c == 'X': + // hex escape + c1, sz1, err := l.input.readRune() + if err != nil { + return "", err + } + if c1 == quote || c1 == '\\' { + l.input.unreadRune(sz1) + reportErr("invalid hex escape: %s", "\\"+string(c)) + continue + } + c2, sz2, err := l.input.readRune() + if err != nil { + return "", err + } + var hex string + if (c2 < '0' || c2 > '9') && (c2 < 'a' || c2 > 'f') && (c2 < 'A' || c2 > 'F') { + l.input.unreadRune(sz2) + hex = string(c1) + } else { + hex = string([]rune{c1, c2}) + } + i, err := strconv.ParseInt(hex, 16, 32) + if err != nil { + reportErr("invalid hex escape: %s", "\\"+string(c)+hex) + continue + } + buf.WriteByte(byte(i)) + case c >= '0' && c <= '7': + // octal escape + c2, sz2, err := l.input.readRune() + if err != nil { + return "", err + } + var octal string + if c2 < '0' || c2 > '7' { + l.input.unreadRune(sz2) + octal = string(c) + } else { + c3, sz3, err := l.input.readRune() + if err != nil { + return "", err + } + if c3 < '0' || c3 > '7' { + l.input.unreadRune(sz3) + octal = string([]rune{c, c2}) + } else { + octal = string([]rune{c, c2, c3}) + } + } + i, err := strconv.ParseInt(octal, 8, 32) + if err != nil { + reportErr("invalid octal escape: %s", "\\"+octal) + continue + } + if i > 0xff { + reportErr("octal escape is out range, must be between 0 and 377: %s", "\\"+octal) + continue + } + buf.WriteByte(byte(i)) + case c == 'u': + // short unicode escape + u := make([]rune, 4) + for i := range u { + c2, sz2, err := l.input.readRune() + if err != nil { + return "", err + } + if c2 == quote || c2 == '\\' { + l.input.unreadRune(sz2) + u = u[:i] + break + } + u[i] = c2 + } + codepointStr := string(u) + if len(u) < 4 { + reportErr("invalid unicode escape: %s", "\\u"+codepointStr) + continue + } + i, err := strconv.ParseInt(codepointStr, 16, 32) + if err != nil { + reportErr("invalid unicode escape: %s", "\\u"+codepointStr) + continue + } + buf.WriteRune(rune(i)) + case c == 'U': + // long unicode escape + u := make([]rune, 8) + for i := range u { + c2, sz2, err := l.input.readRune() + if err != nil { + return "", err + } + if c2 == quote || c2 == '\\' { + l.input.unreadRune(sz2) + u = u[:i] + break + } + u[i] = c2 + } + codepointStr := string(u) + if len(u) < 8 { + reportErr("invalid unicode escape: %s", "\\U"+codepointStr) + continue + } + i, err := strconv.ParseInt(string(u), 16, 32) + if err != nil { + reportErr("invalid unicode escape: %s", "\\U"+codepointStr) + continue + } + if i > 0x10ffff || i < 0 { + reportErr("unicode escape is out of range, must be between 0 and 0x10ffff: %s", "\\U"+codepointStr) + continue + } + buf.WriteRune(rune(i)) + case c == 'a': + buf.WriteByte('\a') + case c == 'b': + buf.WriteByte('\b') + case c == 'f': + buf.WriteByte('\f') + case c == 'n': + buf.WriteByte('\n') + case c == 'r': + buf.WriteByte('\r') + case c == 't': + buf.WriteByte('\t') + case c == 'v': + buf.WriteByte('\v') + case c == '\\': + buf.WriteByte('\\') + case c == '\'': + buf.WriteByte('\'') + case c == '"': + buf.WriteByte('"') + case c == '?': + buf.WriteByte('?') + default: + reportErr("invalid escape sequence: %s", "\\"+string(c)) + continue + } + } else { + buf.WriteRune(c) + } + } + if escapeError != nil { + return "", escapeError + } + return buf.String(), nil +} + +func (l *protoLex) skipToEndOfLineComment(lval *protoSymType) (hasErr bool) { + for { + c, sz, err := l.input.readRune() + if err != nil { + // eof + return false + } + switch c { + case '\n': + // don't include newline in the comment + l.input.unreadRune(sz) + return false + case 0: + l.setError(lval, errors.New("invalid control character")) + return true + } + } +} + +func (l *protoLex) skipToEndOfBlockComment(lval *protoSymType) (ok, hasErr bool) { + for { + c, _, err := l.input.readRune() + if err != nil { + return false, false + } + if c == 0 { + l.setError(lval, errors.New("invalid control character")) + return false, true + } + l.maybeNewLine(c) + if c == '*' { + c, sz, err := l.input.readRune() + if err != nil { + return false, false + } + if c == '/' { + return true, false + } + l.input.unreadRune(sz) + } + } +} + +func (l *protoLex) addSourceError(err error) (reporter.ErrorWithPos, bool) { + ewp, ok := err.(reporter.ErrorWithPos) + if !ok { + ewp = reporter.Error(l.prev(), err) + } + handlerErr := l.handler.HandleError(ewp) + return ewp, handlerErr == nil +} + +func (l *protoLex) Error(s string) { + _, _ = l.addSourceError(errors.New(s)) +} + +func (l *protoLex) errWithCurrentPos(err error, offset int) reporter.ErrorWithPos { + if ewp, ok := err.(reporter.ErrorWithPos); ok { + return ewp + } + pos := l.info.SourcePos(l.input.offset() + offset) + return reporter.Error(pos, err) +} diff --git a/vendor/github.com/bufbuild/protocompile/parser/parser.go b/vendor/github.com/bufbuild/protocompile/parser/parser.go new file mode 100644 index 0000000..c681863 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/parser.go @@ -0,0 +1,193 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import ( + "fmt" + "io" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/reporter" +) + +//go:generate goyacc -o proto.y.go -l -p proto proto.y + +func init() { + protoErrorVerbose = true + + // fix up the generated "token name" array so that error messages are nicer + setTokenName(_STRING_LIT, "string literal") + setTokenName(_INT_LIT, "int literal") + setTokenName(_FLOAT_LIT, "float literal") + setTokenName(_NAME, "identifier") + setTokenName(_ERROR, "error") + // for keywords, just show the keyword itself wrapped in quotes + for str, i := range keywords { + setTokenName(i, fmt.Sprintf(`"%s"`, str)) + } +} + +func setTokenName(token int, text string) { + // NB: this is based on logic in generated parse code that translates the + // int returned from the lexer into an internal token number. + var intern int8 + if token < len(protoTok1) { + intern = protoTok1[token] + } else { + if token >= protoPrivate { + if token < protoPrivate+len(protoTok2) { + intern = protoTok2[token-protoPrivate] + } + } + if intern == 0 { + for i := 0; i+1 < len(protoTok3); i += 2 { + if int(protoTok3[i]) == token { + intern = protoTok3[i+1] + break + } + } + } + } + + if intern >= 1 && int(intern-1) < len(protoToknames) { + protoToknames[intern-1] = text + return + } + + panic(fmt.Sprintf("Unknown token value: %d", token)) +} + +// Parse parses the given source code info and returns an AST. The given filename +// is used to construct error messages and position information. The given reader +// supplies the source code. The given handler is used to report errors and +// warnings encountered while parsing. If any errors are reported, this function +// returns a non-nil error. +// +// If the error returned is due to a syntax error in the source, then a non-nil +// AST is also returned. If the handler chooses to not abort the parse (e.g. the +// underlying error reporter returns nil instead of an error), the parser will +// attempt to recover and keep going. This allows multiple syntax errors to be +// reported in a single pass. And it also means that more of the AST can be +// populated (erroneous productions around the syntax error will of course be +// absent). +// +// The degree to which the parser can recover from errors and populate the AST +// depends on the nature of the syntax error and if there are any tokens after the +// syntax error that can help the parser recover. This error recovery and partial +// AST production is best effort. +func Parse(filename string, r io.Reader, handler *reporter.Handler) (*ast.FileNode, error) { + lx, err := newLexer(r, filename, handler) + if err != nil { + return nil, err + } + protoParse(lx) + if lx.res == nil { + // nil AST means there was an error that prevented any parsing + // or the file was empty; synthesize empty non-nil AST + lx.res = ast.NewEmptyFileNode(filename) + } + return lx.res, handler.Error() +} + +// Result is the result of constructing a descriptor proto from a parsed AST. +// From this result, the AST and the file descriptor proto can be had. This +// also contains numerous lookup functions, for looking up AST nodes that +// correspond to various elements of the descriptor hierarchy. +// +// Results can be created without AST information, using the ResultWithoutAST() +// function. All functions other than AST() will still return non-nil values, +// allowing compile operations to work with files that have only intermediate +// descriptor protos and no source code. For such results, the function that +// return AST nodes will return placeholder nodes. The position information for +// placeholder nodes contains only the filename. +type Result interface { + // AST returns the parsed abstract syntax tree. This returns nil if the + // Result was created without an AST. + AST() *ast.FileNode + // FileDescriptorProto returns the file descriptor proto. + FileDescriptorProto() *descriptorpb.FileDescriptorProto + + // FileNode returns the root of the AST. If this result has no AST then a + // placeholder node is returned. + FileNode() ast.FileDeclNode + // Node returns the AST node from which the given message was created. This + // can return nil, such as if the given message is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + Node(proto.Message) ast.Node + // OptionNode returns the AST node corresponding to the given uninterpreted + // option. This can return nil, such as if the given option is not part of + // the FileDescriptorProto hierarchy. If this result has no AST, this + // returns a placeholder node. + OptionNode(*descriptorpb.UninterpretedOption) ast.OptionDeclNode + // OptionNamePartNode returns the AST node corresponding to the given name + // part for an uninterpreted option. This can return nil, such as if the + // given name part is not part of the FileDescriptorProto hierarchy. If this + // result has no AST, this returns a placeholder node. + OptionNamePartNode(*descriptorpb.UninterpretedOption_NamePart) ast.Node + // MessageNode returns the AST node corresponding to the given message. This + // can return nil, such as if the given message is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + MessageNode(*descriptorpb.DescriptorProto) ast.MessageDeclNode + // FieldNode returns the AST node corresponding to the given field. This can + // return nil, such as if the given field is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + FieldNode(*descriptorpb.FieldDescriptorProto) ast.FieldDeclNode + // OneOfNode returns the AST node corresponding to the given oneof. This can + // return nil, such as if the given oneof is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + OneOfNode(*descriptorpb.OneofDescriptorProto) ast.Node + // ExtensionRangeNode returns the AST node corresponding to the given + // extension range. This can return nil, such as if the given range is not + // part of the FileDescriptorProto hierarchy. If this result has no AST, + // this returns a placeholder node. + ExtensionRangeNode(*descriptorpb.DescriptorProto_ExtensionRange) ast.RangeDeclNode + // MessageReservedRangeNode returns the AST node corresponding to the given + // reserved range. This can return nil, such as if the given range is not + // part of the FileDescriptorProto hierarchy. If this result has no AST, + // this returns a placeholder node. + MessageReservedRangeNode(*descriptorpb.DescriptorProto_ReservedRange) ast.RangeDeclNode + // EnumNode returns the AST node corresponding to the given enum. This can + // return nil, such as if the given enum is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + EnumNode(*descriptorpb.EnumDescriptorProto) ast.Node + // EnumValueNode returns the AST node corresponding to the given enum. This + // can return nil, such as if the given enum value is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + EnumValueNode(*descriptorpb.EnumValueDescriptorProto) ast.EnumValueDeclNode + // EnumReservedRangeNode returns the AST node corresponding to the given + // reserved range. This can return nil, such as if the given range is not + // part of the FileDescriptorProto hierarchy. If this result has no AST, + // this returns a placeholder node. + EnumReservedRangeNode(*descriptorpb.EnumDescriptorProto_EnumReservedRange) ast.RangeDeclNode + // ServiceNode returns the AST node corresponding to the given service. This + // can return nil, such as if the given service is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + ServiceNode(*descriptorpb.ServiceDescriptorProto) ast.Node + // MethodNode returns the AST node corresponding to the given method. This + // can return nil, such as if the given method is not part of the + // FileDescriptorProto hierarchy. If this result has no AST, this returns a + // placeholder node. + MethodNode(*descriptorpb.MethodDescriptorProto) ast.RPCDeclNode +} diff --git a/vendor/github.com/bufbuild/protocompile/parser/proto.y b/vendor/github.com/bufbuild/protocompile/parser/proto.y new file mode 100644 index 0000000..78a6c80 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/proto.y @@ -0,0 +1,1219 @@ +%{ +package parser + +//lint:file-ignore SA4006 generated parser has unused values + +import ( + "math" + + "github.com/bufbuild/protocompile/ast" +) + +%} + +// fields inside this union end up as the fields in a structure known +// as ${PREFIX}SymType, of which a reference is passed to the lexer. +%union{ + file *ast.FileNode + syn *ast.SyntaxNode + fileDecl ast.FileElement + fileDecls []ast.FileElement + pkg *ast.PackageNode + imprt *ast.ImportNode + msg *ast.MessageNode + msgDecl ast.MessageElement + msgDecls []ast.MessageElement + fld *ast.FieldNode + mapFld *ast.MapFieldNode + mapType *ast.MapTypeNode + grp *ast.GroupNode + oo *ast.OneOfNode + ooDecl ast.OneOfElement + ooDecls []ast.OneOfElement + ext *ast.ExtensionRangeNode + resvd *ast.ReservedNode + en *ast.EnumNode + enDecl ast.EnumElement + enDecls []ast.EnumElement + env *ast.EnumValueNode + extend *ast.ExtendNode + extDecl ast.ExtendElement + extDecls []ast.ExtendElement + svc *ast.ServiceNode + svcDecl ast.ServiceElement + svcDecls []ast.ServiceElement + mtd *ast.RPCNode + rpcType *ast.RPCTypeNode + rpcDecl ast.RPCElement + rpcDecls []ast.RPCElement + opt *ast.OptionNode + opts *compactOptionList + ref *ast.FieldReferenceNode + optNms *fieldRefList + cmpctOpts *ast.CompactOptionsNode + rng *ast.RangeNode + rngs *rangeList + names *nameList + cid *identList + tid ast.IdentValueNode + sl *valueList + msgField *ast.MessageFieldNode + msgEntry *messageFieldEntry + msgLit *messageFieldList + v ast.ValueNode + il ast.IntValueNode + str *stringList + s *ast.StringLiteralNode + i *ast.UintLiteralNode + f *ast.FloatLiteralNode + id *ast.IdentNode + b *ast.RuneNode + err error +} + +// any non-terminal which returns a value needs a type, which is +// really a field name in the above union struct +%type file +%type syntax +%type fileDecl +%type fileDecls +%type import +%type package +%type option compactOption +%type compactOptionDecls +%type rpcDecl +%type rpcDecls +%type optionNameComponent aggName +%type optionName +%type compactOptions +%type constant scalarConstant aggregate msgLit numLit +%type intLit +%type name keyType msgElementName extElementName oneofElementName enumElementName +%type ident msgElementIdent extElementIdent oneofElementIdent +%type typeIdent msgElementTypeIdent extElementTypeIdent oneofElementTypeIdent +%type constantList msgList +%type aggFieldEntry +%type aggField +%type aggFields +%type msgField oneofField extField +%type oneof +%type group oneofGroup +%type mapField +%type mapType +%type message +%type messageDecl +%type messageDecls +%type ooDecl +%type ooDecls +%type fieldNames +%type msgReserved enumReserved reservedNames +%type tagRange enumRange +%type tagRanges enumRanges +%type extensions +%type enum +%type enumDecl +%type enumDecls +%type enumValue +%type extend +%type extendDecl +%type extendDecls +%type stringLit +%type service +%type serviceDecl +%type serviceDecls +%type rpc +%type rpcType + +// same for terminals +%token _STRING_LIT +%token _INT_LIT +%token _FLOAT_LIT +%token _NAME +%token _SYNTAX _IMPORT _WEAK _PUBLIC _PACKAGE _OPTION _TRUE _FALSE _INF _NAN _REPEATED _OPTIONAL _REQUIRED +%token _DOUBLE _FLOAT _INT32 _INT64 _UINT32 _UINT64 _SINT32 _SINT64 _FIXED32 _FIXED64 _SFIXED32 _SFIXED64 +%token _BOOL _STRING _BYTES _GROUP _ONEOF _MAP _EXTENSIONS _TO _MAX _RESERVED _ENUM _MESSAGE _EXTEND +%token _SERVICE _RPC _STREAM _RETURNS +%token _ERROR +// we define all of these, even ones that aren't used, to improve error messages +// so it shows the unexpected symbol instead of showing "$unk" +%token '=' ';' ':' '{' '}' '\\' '/' '?' '.' ',' '>' '<' '+' '-' '(' ')' '[' ']' '*' '&' '^' '%' '$' '#' '@' '!' '~' '`' + +%% + +file : syntax { + lex := protolex.(*protoLex) + $$ = ast.NewFileNode(lex.info, $1, nil, lex.eof) + lex.res = $$ + } + | fileDecls { + lex := protolex.(*protoLex) + $$ = ast.NewFileNode(lex.info, nil, $1, lex.eof) + lex.res = $$ + } + | syntax fileDecls { + lex := protolex.(*protoLex) + $$ = ast.NewFileNode(lex.info, $1, $2, lex.eof) + lex.res = $$ + } + | { + lex := protolex.(*protoLex) + $$ = ast.NewFileNode(lex.info, nil, nil, lex.eof) + lex.res = $$ + } + +fileDecls : fileDecls fileDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | fileDecl { + if $1 != nil { + $$ = []ast.FileElement{$1} + } else { + $$ = nil + } + } + +fileDecl : import { + $$ = $1 + } + | package { + $$ = $1 + } + | option { + $$ = $1 + } + | message { + $$ = $1 + } + | enum { + $$ = $1 + } + | extend { + $$ = $1 + } + | service { + $$ = $1 + } + | ';' { + $$ = ast.NewEmptyDeclNode($1) + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +syntax : _SYNTAX '=' stringLit ';' { + $$ = ast.NewSyntaxNode($1.ToKeyword(), $2, $3.toStringValueNode(), $4) + } + +import : _IMPORT stringLit ';' { + $$ = ast.NewImportNode($1.ToKeyword(), nil, nil, $2.toStringValueNode(), $3) + } + | _IMPORT _WEAK stringLit ';' { + $$ = ast.NewImportNode($1.ToKeyword(), nil, $2.ToKeyword(), $3.toStringValueNode(), $4) + } + | _IMPORT _PUBLIC stringLit ';' { + $$ = ast.NewImportNode($1.ToKeyword(), $2.ToKeyword(), nil, $3.toStringValueNode(), $4) + } + +package : _PACKAGE ident ';' { + $$ = ast.NewPackageNode($1.ToKeyword(), $2.toIdentValueNode(nil), $3) + } + +ident : name { + $$ = &identList{$1, nil, nil} + } + | name '.' ident { + $$ = &identList{$1, $2, $3} + } + +// to mimic limitations of protoc recursive-descent parser, +// we don't allowed message statement keywords as identifiers +// (or oneof statement keywords [e.g. "option"] below) + +msgElementIdent : msgElementName { + $$ = &identList{$1, nil, nil} + } + | msgElementName '.' ident { + $$ = &identList{$1, $2, $3} + } + +extElementIdent : extElementName { + $$ = &identList{$1, nil, nil} + } + | extElementName '.' ident { + $$ = &identList{$1, $2, $3} + } + +oneofElementIdent : oneofElementName { + $$ = &identList{$1, nil, nil} + } + | oneofElementName '.' ident { + $$ = &identList{$1, $2, $3} + } + +option : _OPTION optionName '=' constant ';' { + refs, dots := $2.toNodes() + optName := ast.NewOptionNameNode(refs, dots) + $$ = ast.NewOptionNode($1.ToKeyword(), optName, $3, $4, $5) + } + +optionName : optionNameComponent { + $$ = &fieldRefList{$1, nil, nil} + } + | optionNameComponent '.' optionName { + $$ = &fieldRefList{$1, $2, $3} + } + +optionNameComponent : name { + $$ = ast.NewFieldReferenceNode($1) + } + | '(' typeIdent ')' { + $$ = ast.NewExtensionFieldReferenceNode($1, $2, $3) + } + +constant : scalarConstant + | aggregate + +scalarConstant : stringLit { + $$ = $1.toStringValueNode() + } + | numLit + | name { + $$ = $1 + } + +numLit : _FLOAT_LIT { + $$ = $1 + } + | '-' _FLOAT_LIT { + $$ = ast.NewSignedFloatLiteralNode($1, $2) + } + | '+' _FLOAT_LIT { + $$ = ast.NewSignedFloatLiteralNode($1, $2) + } + | '+' _INF { + f := ast.NewSpecialFloatLiteralNode($2.ToKeyword()) + $$ = ast.NewSignedFloatLiteralNode($1, f) + } + | '-' _INF { + f := ast.NewSpecialFloatLiteralNode($2.ToKeyword()) + $$ = ast.NewSignedFloatLiteralNode($1, f) + } + | _INT_LIT { + $$ = $1 + } + | '+' _INT_LIT { + $$ = ast.NewPositiveUintLiteralNode($1, $2) + } + | '-' _INT_LIT { + if $2.Val > math.MaxInt64 + 1 { + // can't represent as int so treat as float literal + $$ = ast.NewSignedFloatLiteralNode($1, $2) + } else { + $$ = ast.NewNegativeIntLiteralNode($1, $2) + } + } + +stringLit : _STRING_LIT { + $$ = &stringList{$1, nil} + } + | _STRING_LIT stringLit { + $$ = &stringList{$1, $2} + } + +aggregate : '{' aggFields '}' { + fields, delims := $2.toNodes() + $$ = ast.NewMessageLiteralNode($1, fields, delims, $3) + } + | '{' error '}' { + $$ = nil + } + +aggFields : aggField { + if $1 != nil { + $$ = &messageFieldList{$1, nil} + } else { + $$ = nil + } + } + | aggField aggFields { + if $1 != nil { + $$ = &messageFieldList{$1, $2} + } else { + $$ = $2 + } + } + | { + $$ = nil + } + +aggField : aggFieldEntry { + if $1 != nil { + $$ = &messageFieldEntry{$1, nil} + } else { + $$ = nil + } + } + | aggFieldEntry ',' { + if $1 != nil { + $$ = &messageFieldEntry{$1, $2} + } else { + $$ = nil + } + } + | aggFieldEntry ';' { + if $1 != nil { + $$ = &messageFieldEntry{$1, $2} + } else { + $$ = nil + } + } + | error ',' { + $$ = nil + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +aggFieldEntry : aggName ':' scalarConstant { + if $1 != nil { + $$ = ast.NewMessageFieldNode($1, $2, $3) + } else { + $$ = nil + } + } + | aggName '[' ']' { + if $1 != nil { + val := ast.NewArrayLiteralNode($2, nil, nil, $3) + $$ = ast.NewMessageFieldNode($1, nil, val) + } else { + $$ = nil + } + } + | aggName ':' '[' ']' { + if $1 != nil { + val := ast.NewArrayLiteralNode($3, nil, nil, $4) + $$ = ast.NewMessageFieldNode($1, $2, val) + } else { + $$ = nil + } + } + | aggName '[' msgList ']' { + if $1 != nil { + vals, commas := $3.toNodes() + val := ast.NewArrayLiteralNode($2, vals, commas, $4) + $$ = ast.NewMessageFieldNode($1, nil, val) + } else { + $$ = nil + } + } + | aggName ':' '[' constantList ']' { + if $1 != nil { + vals, commas := $4.toNodes() + val := ast.NewArrayLiteralNode($3, vals, commas, $5) + $$ = ast.NewMessageFieldNode($1, $2, val) + } else { + $$ = nil + } + } + | aggName ':' '[' error ']' { + $$ = nil + } + | aggName '[' error ']' { + $$ = nil + } + | aggName ':' msgLit { + if $1 != nil && $3 != nil { + $$ = ast.NewMessageFieldNode($1, $2, $3) + } else { + $$ = nil + } + } + | aggName msgLit { + if $1 != nil && $2 != nil { + $$ = ast.NewMessageFieldNode($1, nil, $2) + } else { + $$ = nil + } + } + | aggName ':' '<' error '>' { + $$ = nil + } + | aggName '<' error '>' { + $$ = nil + } + +aggName : name { + $$ = ast.NewFieldReferenceNode($1) + } + | '[' ident ']' { + $$ = ast.NewExtensionFieldReferenceNode($1, $2.toIdentValueNode(nil), $3) + } + | '[' ident '/' ident ']' { + $$ = ast.NewAnyTypeReferenceNode($1, $2.toIdentValueNode(nil), $3, $4.toIdentValueNode(nil), $5) + } + | '[' error ']' { + $$ = nil + } + +msgList : msgLit { + if $1 == nil { + $$ = nil + } else { + $$ = &valueList{$1, nil, nil} + } + } + | msgLit ',' msgList { + if $1 == nil { + $$ = nil + } else { + $$ = &valueList{$1, $2, $3} + } + } + +msgLit : aggregate { + $$ = $1 + } + | '<' aggFields '>' { + fields, delims := $2.toNodes() + $$ = ast.NewMessageLiteralNode($1, fields, delims, $3) + } + | '<' error '>' { + $$ = nil + } + +constantList : constant { + $$ = &valueList{$1, nil, nil} + } + | constant ',' constantList { + $$ = &valueList{$1, $2, $3} + } + | '<' aggFields '>' { + fields, delims := $2.toNodes() + msg := ast.NewMessageLiteralNode($1, fields, delims, $3) + $$ = &valueList{msg, nil, nil} + } + | '<' aggFields '>' ',' constantList { + fields, delims := $2.toNodes() + msg := ast.NewMessageLiteralNode($1, fields, delims, $3) + $$ = &valueList{msg, $4, $5} + } + | '<' error '>' { + $$ = nil + } + | '<' error '>' ',' constantList { + $$ = $5 + } + +typeIdent : ident { + $$ = $1.toIdentValueNode(nil) + } + | '.' ident { + $$ = $2.toIdentValueNode($1) + } + +msgElementTypeIdent : msgElementIdent { + $$ = $1.toIdentValueNode(nil) + } + | '.' ident { + $$ = $2.toIdentValueNode($1) + } + +extElementTypeIdent : extElementIdent { + $$ = $1.toIdentValueNode(nil) + } + | '.' ident { + $$ = $2.toIdentValueNode($1) + } + +oneofElementTypeIdent : oneofElementIdent { + $$ = $1.toIdentValueNode(nil) + } + | '.' ident { + $$ = $2.toIdentValueNode($1) + } + +msgField : _REQUIRED typeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, nil, $6) + } + | _OPTIONAL typeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, nil, $6) + } + | _REPEATED typeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, nil, $6) + } + | _REQUIRED typeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, $6, $7) + } + | _OPTIONAL typeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, $6, $7) + } + | _REPEATED typeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, $6, $7) + } + | msgElementTypeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode(nil, $1, $2, $3, $4, nil, $5) + } + | msgElementTypeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode(nil, $1, $2, $3, $4, $5, $6) + } + +extField : _REQUIRED typeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, nil, $6) + } + | _OPTIONAL typeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, nil, $6) + } + | _REPEATED typeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, nil, $6) + } + | _REQUIRED typeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, $6, $7) + } + | _OPTIONAL typeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, $6, $7) + } + | _REPEATED typeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode($1.ToKeyword(), $2, $3, $4, $5, $6, $7) + } + | extElementTypeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode(nil, $1, $2, $3, $4, nil, $5) + } + | extElementTypeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode(nil, $1, $2, $3, $4, $5, $6) + } + +compactOptions: '[' compactOptionDecls ']' { + opts, commas := $2.toNodes() + $$ = ast.NewCompactOptionsNode($1, opts, commas, $3) + } + +compactOptionDecls : compactOption { + $$ = &compactOptionList{$1, nil, nil} + } + | compactOption ',' compactOptionDecls { + $$ = &compactOptionList{$1, $2, $3} + } + +compactOption: optionName '=' constant { + refs, dots := $1.toNodes() + optName := ast.NewOptionNameNode(refs, dots) + $$ = ast.NewCompactOptionNode(optName, $2, $3) + } + +group : _REQUIRED _GROUP name '=' _INT_LIT '{' messageDecls '}' { + $$ = ast.NewGroupNode($1.ToKeyword(), $2.ToKeyword(), $3, $4, $5, nil, $6, $7, $8) + } + | _OPTIONAL _GROUP name '=' _INT_LIT '{' messageDecls '}' { + $$ = ast.NewGroupNode($1.ToKeyword(), $2.ToKeyword(), $3, $4, $5, nil, $6, $7, $8) + } + | _REPEATED _GROUP name '=' _INT_LIT '{' messageDecls '}' { + $$ = ast.NewGroupNode($1.ToKeyword(), $2.ToKeyword(), $3, $4, $5, nil, $6, $7, $8) + } + | _REQUIRED _GROUP name '=' _INT_LIT compactOptions '{' messageDecls '}' { + $$ = ast.NewGroupNode($1.ToKeyword(), $2.ToKeyword(), $3, $4, $5, $6, $7, $8, $9) + } + | _OPTIONAL _GROUP name '=' _INT_LIT compactOptions '{' messageDecls '}' { + $$ = ast.NewGroupNode($1.ToKeyword(), $2.ToKeyword(), $3, $4, $5, $6, $7, $8, $9) + } + | _REPEATED _GROUP name '=' _INT_LIT compactOptions '{' messageDecls '}' { + $$ = ast.NewGroupNode($1.ToKeyword(), $2.ToKeyword(), $3, $4, $5, $6, $7, $8, $9) + } + +oneof : _ONEOF name '{' ooDecls '}' { + $$ = ast.NewOneOfNode($1.ToKeyword(), $2, $3, $4, $5) + } + +ooDecls : ooDecls ooDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | ooDecl { + if $1 != nil { + $$ = []ast.OneOfElement{$1} + } else { + $$ = nil + } + } + | { + $$ = nil + } + +ooDecl : option { + $$ = $1 + } + | oneofField { + $$ = $1 + } + | oneofGroup { + $$ = $1 + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +oneofField : oneofElementTypeIdent name '=' _INT_LIT ';' { + $$ = ast.NewFieldNode(nil, $1, $2, $3, $4, nil, $5) + } + | oneofElementTypeIdent name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewFieldNode(nil, $1, $2, $3, $4, $5, $6) + } + +oneofGroup : _GROUP name '=' _INT_LIT '{' messageDecls '}' { + $$ = ast.NewGroupNode(nil, $1.ToKeyword(), $2, $3, $4, nil, $5, $6, $7) + } + | _GROUP name '=' _INT_LIT compactOptions '{' messageDecls '}' { + $$ = ast.NewGroupNode(nil, $1.ToKeyword(), $2, $3, $4, $5, $6, $7, $8) + } + +mapField : mapType name '=' _INT_LIT ';' { + $$ = ast.NewMapFieldNode($1, $2, $3, $4, nil, $5) + } + | mapType name '=' _INT_LIT compactOptions ';' { + $$ = ast.NewMapFieldNode($1, $2, $3, $4, $5, $6) + } + +mapType : _MAP '<' keyType ',' typeIdent '>' { + $$ = ast.NewMapTypeNode($1.ToKeyword(), $2, $3, $4, $5, $6) + } + +keyType : _INT32 + | _INT64 + | _UINT32 + | _UINT64 + | _SINT32 + | _SINT64 + | _FIXED32 + | _FIXED64 + | _SFIXED32 + | _SFIXED64 + | _BOOL + | _STRING + +extensions : _EXTENSIONS tagRanges ';' { + ranges, commas := $2.toNodes() + $$ = ast.NewExtensionRangeNode($1.ToKeyword(), ranges, commas, nil, $3) + } + | _EXTENSIONS tagRanges compactOptions ';' { + ranges, commas := $2.toNodes() + $$ = ast.NewExtensionRangeNode($1.ToKeyword(), ranges, commas, $3, $4) + } + +tagRanges : tagRange { + $$ = &rangeList{$1, nil, nil} + } + | tagRange ',' tagRanges { + $$ = &rangeList{$1, $2, $3} + } + +tagRange : _INT_LIT { + $$ = ast.NewRangeNode($1, nil, nil, nil) + } + | _INT_LIT _TO _INT_LIT { + $$ = ast.NewRangeNode($1, $2.ToKeyword(), $3, nil) + } + | _INT_LIT _TO _MAX { + $$ = ast.NewRangeNode($1, $2.ToKeyword(), nil, $3.ToKeyword()) + } + +enumRanges : enumRange { + $$ = &rangeList{$1, nil, nil} + } + | enumRange ',' enumRanges { + $$ = &rangeList{$1, $2, $3} + } + +enumRange : intLit { + $$ = ast.NewRangeNode($1, nil, nil, nil) + } + | intLit _TO intLit { + $$ = ast.NewRangeNode($1, $2.ToKeyword(), $3, nil) + } + | intLit _TO _MAX { + $$ = ast.NewRangeNode($1, $2.ToKeyword(), nil, $3.ToKeyword()) + } + +intLit : _INT_LIT { + $$ = $1 + } + | '-' _INT_LIT { + $$ = ast.NewNegativeIntLiteralNode($1, $2) + } + +msgReserved : _RESERVED tagRanges ';' { + ranges, commas := $2.toNodes() + $$ = ast.NewReservedRangesNode($1.ToKeyword(), ranges, commas, $3) + } + | reservedNames + +enumReserved : _RESERVED enumRanges ';' { + ranges, commas := $2.toNodes() + $$ = ast.NewReservedRangesNode($1.ToKeyword(), ranges, commas, $3) + } + | reservedNames + +reservedNames : _RESERVED fieldNames ';' { + names, commas := $2.toNodes() + $$ = ast.NewReservedNamesNode($1.ToKeyword(), names, commas, $3) + } + +fieldNames : stringLit { + $$ = &nameList{$1.toStringValueNode(), nil, nil} + } + | stringLit ',' fieldNames { + $$ = &nameList{$1.toStringValueNode(), $2, $3} + } + +enum : _ENUM name '{' enumDecls '}' { + $$ = ast.NewEnumNode($1.ToKeyword(), $2, $3, $4, $5) + } + +enumDecls : enumDecls enumDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | enumDecl { + if $1 != nil { + $$ = []ast.EnumElement{$1} + } else { + $$ = nil + } + } + | { + $$ = nil + } + +enumDecl : option { + $$ = $1 + } + | enumValue { + $$ = $1 + } + | enumReserved { + $$ = $1 + } + | ';' { + $$ = ast.NewEmptyDeclNode($1) + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +enumValue : enumElementName '=' intLit ';' { + $$ = ast.NewEnumValueNode($1, $2, $3, nil, $4) + } + | enumElementName '=' intLit compactOptions ';' { + $$ = ast.NewEnumValueNode($1, $2, $3, $4, $5) + } + +message : _MESSAGE name '{' messageDecls '}' { + $$ = ast.NewMessageNode($1.ToKeyword(), $2, $3, $4, $5) + } + +messageDecls : messageDecls messageDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | messageDecl { + if $1 != nil { + $$ = []ast.MessageElement{$1} + } else { + $$ = nil + } + } + | { + $$ = nil + } + +messageDecl : msgField { + $$ = $1 + } + | enum { + $$ = $1 + } + | message { + $$ = $1 + } + | extend { + $$ = $1 + } + | extensions { + $$ = $1 + } + | group { + $$ = $1 + } + | option { + $$ = $1 + } + | oneof { + $$ = $1 + } + | mapField { + $$ = $1 + } + | msgReserved { + $$ = $1 + } + | ';' { + $$ = ast.NewEmptyDeclNode($1) + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +extend : _EXTEND typeIdent '{' extendDecls '}' { + $$ = ast.NewExtendNode($1.ToKeyword(), $2, $3, $4, $5) + } + +extendDecls : extendDecls extendDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | extendDecl { + if $1 != nil { + $$ = []ast.ExtendElement{$1} + } else { + $$ = nil + } + } + | { + $$ = nil + } + +extendDecl : extField { + $$ = $1 + } + | group { + $$ = $1 + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +service : _SERVICE name '{' serviceDecls '}' { + $$ = ast.NewServiceNode($1.ToKeyword(), $2, $3, $4, $5) + } + +serviceDecls : serviceDecls serviceDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | serviceDecl { + if $1 != nil { + $$ = []ast.ServiceElement{$1} + } else { + $$ = nil + } + } + | { + $$ = nil + } + +// NB: doc suggests support for "stream" declaration, separate from "rpc", but +// it does not appear to be supported in protoc (doc is likely from grammar for +// Google-internal version of protoc, with support for streaming stubby) +serviceDecl : option { + $$ = $1 + } + | rpc { + $$ = $1 + } + | ';' { + $$ = ast.NewEmptyDeclNode($1) + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +rpc : _RPC name rpcType _RETURNS rpcType ';' { + $$ = ast.NewRPCNode($1.ToKeyword(), $2, $3, $4.ToKeyword(), $5, $6) + } + | _RPC name rpcType _RETURNS rpcType '{' rpcDecls '}' { + $$ = ast.NewRPCNodeWithBody($1.ToKeyword(), $2, $3, $4.ToKeyword(), $5, $6, $7, $8) + } + +rpcType : '(' _STREAM typeIdent ')' { + $$ = ast.NewRPCTypeNode($1, $2.ToKeyword(), $3, $4) + } + | '(' typeIdent ')' { + $$ = ast.NewRPCTypeNode($1, nil, $2, $3) + } + +rpcDecls : rpcDecls rpcDecl { + if $2 != nil { + $$ = append($1, $2) + } else { + $$ = $1 + } + } + | rpcDecl { + if $1 != nil { + $$ = []ast.RPCElement{$1} + } else { + $$ = nil + } + } + | { + $$ = nil + } + +rpcDecl : option { + $$ = $1 + } + | ';' { + $$ = ast.NewEmptyDeclNode($1) + } + | error ';' { + $$ = nil + } + | error { + $$ = nil + } + +// excludes message, enum, oneof, extensions, reserved, extend, +// option, optional, required, and repeated +msgElementName : _NAME + | _SYNTAX + | _IMPORT + | _WEAK + | _PUBLIC + | _PACKAGE + | _TRUE + | _FALSE + | _INF + | _NAN + | _DOUBLE + | _FLOAT + | _INT32 + | _INT64 + | _UINT32 + | _UINT64 + | _SINT32 + | _SINT64 + | _FIXED32 + | _FIXED64 + | _SFIXED32 + | _SFIXED64 + | _BOOL + | _STRING + | _BYTES + | _GROUP + | _MAP + | _TO + | _MAX + | _SERVICE + | _RPC + | _STREAM + | _RETURNS + +// excludes optional, required, and repeated +extElementName : _NAME + | _SYNTAX + | _IMPORT + | _WEAK + | _PUBLIC + | _PACKAGE + | _OPTION + | _TRUE + | _FALSE + | _INF + | _NAN + | _DOUBLE + | _FLOAT + | _INT32 + | _INT64 + | _UINT32 + | _UINT64 + | _SINT32 + | _SINT64 + | _FIXED32 + | _FIXED64 + | _SFIXED32 + | _SFIXED64 + | _BOOL + | _STRING + | _BYTES + | _GROUP + | _ONEOF + | _MAP + | _EXTENSIONS + | _TO + | _MAX + | _RESERVED + | _ENUM + | _MESSAGE + | _EXTEND + | _SERVICE + | _RPC + | _STREAM + | _RETURNS + +// excludes reserved, option +enumElementName : _NAME + | _SYNTAX + | _IMPORT + | _WEAK + | _PUBLIC + | _PACKAGE + | _TRUE + | _FALSE + | _INF + | _NAN + | _REPEATED + | _OPTIONAL + | _REQUIRED + | _DOUBLE + | _FLOAT + | _INT32 + | _INT64 + | _UINT32 + | _UINT64 + | _SINT32 + | _SINT64 + | _FIXED32 + | _FIXED64 + | _SFIXED32 + | _SFIXED64 + | _BOOL + | _STRING + | _BYTES + | _GROUP + | _ONEOF + | _MAP + | _EXTENSIONS + | _TO + | _MAX + | _ENUM + | _MESSAGE + | _EXTEND + | _SERVICE + | _RPC + | _STREAM + | _RETURNS + +// excludes option, optional, required, and repeated +oneofElementName : _NAME + | _SYNTAX + | _IMPORT + | _WEAK + | _PUBLIC + | _PACKAGE + | _TRUE + | _FALSE + | _INF + | _NAN + | _DOUBLE + | _FLOAT + | _INT32 + | _INT64 + | _UINT32 + | _UINT64 + | _SINT32 + | _SINT64 + | _FIXED32 + | _FIXED64 + | _SFIXED32 + | _SFIXED64 + | _BOOL + | _STRING + | _BYTES + | _GROUP + | _ONEOF + | _MAP + | _EXTENSIONS + | _TO + | _MAX + | _RESERVED + | _ENUM + | _MESSAGE + | _EXTEND + | _SERVICE + | _RPC + | _STREAM + | _RETURNS + +name : _NAME + | _SYNTAX + | _IMPORT + | _WEAK + | _PUBLIC + | _PACKAGE + | _OPTION + | _TRUE + | _FALSE + | _INF + | _NAN + | _REPEATED + | _OPTIONAL + | _REQUIRED + | _DOUBLE + | _FLOAT + | _INT32 + | _INT64 + | _UINT32 + | _UINT64 + | _SINT32 + | _SINT64 + | _FIXED32 + | _FIXED64 + | _SFIXED32 + | _SFIXED64 + | _BOOL + | _STRING + | _BYTES + | _GROUP + | _ONEOF + | _MAP + | _EXTENSIONS + | _TO + | _MAX + | _RESERVED + | _ENUM + | _MESSAGE + | _EXTEND + | _SERVICE + | _RPC + | _STREAM + | _RETURNS + +%% diff --git a/vendor/github.com/bufbuild/protocompile/parser/proto.y.go b/vendor/github.com/bufbuild/protocompile/parser/proto.y.go new file mode 100644 index 0000000..5a7e953 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/proto.y.go @@ -0,0 +1,2408 @@ +// Copyright 2020-2022 Buf Technologies, 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. + +// Code generated by goyacc -o proto.y.go -l -p proto proto.y. DO NOT EDIT. +package parser + +import __yyfmt__ "fmt" + +//lint:file-ignore SA4006 generated parser has unused values + +import ( + "math" + + "github.com/bufbuild/protocompile/ast" +) + +type protoSymType struct { + yys int + file *ast.FileNode + syn *ast.SyntaxNode + fileDecl ast.FileElement + fileDecls []ast.FileElement + pkg *ast.PackageNode + imprt *ast.ImportNode + msg *ast.MessageNode + msgDecl ast.MessageElement + msgDecls []ast.MessageElement + fld *ast.FieldNode + mapFld *ast.MapFieldNode + mapType *ast.MapTypeNode + grp *ast.GroupNode + oo *ast.OneOfNode + ooDecl ast.OneOfElement + ooDecls []ast.OneOfElement + ext *ast.ExtensionRangeNode + resvd *ast.ReservedNode + en *ast.EnumNode + enDecl ast.EnumElement + enDecls []ast.EnumElement + env *ast.EnumValueNode + extend *ast.ExtendNode + extDecl ast.ExtendElement + extDecls []ast.ExtendElement + svc *ast.ServiceNode + svcDecl ast.ServiceElement + svcDecls []ast.ServiceElement + mtd *ast.RPCNode + rpcType *ast.RPCTypeNode + rpcDecl ast.RPCElement + rpcDecls []ast.RPCElement + opt *ast.OptionNode + opts *compactOptionList + ref *ast.FieldReferenceNode + optNms *fieldRefList + cmpctOpts *ast.CompactOptionsNode + rng *ast.RangeNode + rngs *rangeList + names *nameList + cid *identList + tid ast.IdentValueNode + sl *valueList + msgField *ast.MessageFieldNode + msgEntry *messageFieldEntry + msgLit *messageFieldList + v ast.ValueNode + il ast.IntValueNode + str *stringList + s *ast.StringLiteralNode + i *ast.UintLiteralNode + f *ast.FloatLiteralNode + id *ast.IdentNode + b *ast.RuneNode + err error +} + +const _STRING_LIT = 57346 +const _INT_LIT = 57347 +const _FLOAT_LIT = 57348 +const _NAME = 57349 +const _SYNTAX = 57350 +const _IMPORT = 57351 +const _WEAK = 57352 +const _PUBLIC = 57353 +const _PACKAGE = 57354 +const _OPTION = 57355 +const _TRUE = 57356 +const _FALSE = 57357 +const _INF = 57358 +const _NAN = 57359 +const _REPEATED = 57360 +const _OPTIONAL = 57361 +const _REQUIRED = 57362 +const _DOUBLE = 57363 +const _FLOAT = 57364 +const _INT32 = 57365 +const _INT64 = 57366 +const _UINT32 = 57367 +const _UINT64 = 57368 +const _SINT32 = 57369 +const _SINT64 = 57370 +const _FIXED32 = 57371 +const _FIXED64 = 57372 +const _SFIXED32 = 57373 +const _SFIXED64 = 57374 +const _BOOL = 57375 +const _STRING = 57376 +const _BYTES = 57377 +const _GROUP = 57378 +const _ONEOF = 57379 +const _MAP = 57380 +const _EXTENSIONS = 57381 +const _TO = 57382 +const _MAX = 57383 +const _RESERVED = 57384 +const _ENUM = 57385 +const _MESSAGE = 57386 +const _EXTEND = 57387 +const _SERVICE = 57388 +const _RPC = 57389 +const _STREAM = 57390 +const _RETURNS = 57391 +const _ERROR = 57392 + +var protoToknames = [...]string{ + "$end", + "error", + "$unk", + "_STRING_LIT", + "_INT_LIT", + "_FLOAT_LIT", + "_NAME", + "_SYNTAX", + "_IMPORT", + "_WEAK", + "_PUBLIC", + "_PACKAGE", + "_OPTION", + "_TRUE", + "_FALSE", + "_INF", + "_NAN", + "_REPEATED", + "_OPTIONAL", + "_REQUIRED", + "_DOUBLE", + "_FLOAT", + "_INT32", + "_INT64", + "_UINT32", + "_UINT64", + "_SINT32", + "_SINT64", + "_FIXED32", + "_FIXED64", + "_SFIXED32", + "_SFIXED64", + "_BOOL", + "_STRING", + "_BYTES", + "_GROUP", + "_ONEOF", + "_MAP", + "_EXTENSIONS", + "_TO", + "_MAX", + "_RESERVED", + "_ENUM", + "_MESSAGE", + "_EXTEND", + "_SERVICE", + "_RPC", + "_STREAM", + "_RETURNS", + "_ERROR", + "'='", + "';'", + "':'", + "'{'", + "'}'", + "'\\\\'", + "'/'", + "'?'", + "'.'", + "','", + "'>'", + "'<'", + "'+'", + "'-'", + "'('", + "')'", + "'['", + "']'", + "'*'", + "'&'", + "'^'", + "'%'", + "'$'", + "'#'", + "'@'", + "'!'", + "'~'", + "'`'", +} + +var protoStatenames = [...]string{} + +const protoEofCode = 1 +const protoErrCode = 2 +const protoInitialStackSize = 16 + +var protoExca = [...]int16{ + -1, 0, + 1, 4, + -2, 0, + -1, 1, + 1, -1, + -2, 0, + -1, 2, + 1, 1, + -2, 0, + -1, 3, + 1, 2, + -2, 0, + -1, 22, + 1, 3, + -2, 0, + -1, 95, + 55, 185, + -2, 0, + -1, 96, + 55, 173, + -2, 0, + -1, 97, + 55, 202, + -2, 0, + -1, 99, + 55, 210, + -2, 0, + -1, 110, + 55, 54, + -2, 0, + -1, 289, + 55, 52, + 61, 52, + -2, 0, + -1, 354, + 61, 54, + -2, 0, + -1, 370, + 55, 124, + -2, 0, + -1, 404, + 61, 54, + -2, 0, + -1, 409, + 61, 54, + -2, 0, + -1, 497, + 61, 54, + -2, 0, + -1, 547, + 55, 185, + -2, 0, + -1, 551, + 55, 185, + -2, 0, + -1, 555, + 55, 185, + -2, 0, + -1, 573, + 55, 222, + -2, 0, + -1, 580, + 55, 185, + -2, 0, + -1, 583, + 55, 185, + -2, 0, + -1, 586, + 55, 185, + -2, 0, + -1, 607, + 55, 185, + -2, 0, + -1, 619, + 55, 185, + -2, 0, +} + +const protoPrivate = 57344 + +const protoLast = 2396 + +var protoAct = [...]int16{ + 31, 118, 117, 125, 8, 106, 8, 8, 496, 494, + 593, 423, 366, 406, 399, 430, 81, 325, 77, 79, + 80, 82, 84, 327, 316, 107, 8, 310, 411, 408, + 105, 280, 124, 228, 139, 177, 407, 413, 30, 425, + 544, 26, 351, 110, 605, 607, 569, 567, 412, 565, + 85, 354, 555, 87, 88, 89, 352, 75, 367, 367, + 553, 367, 367, 551, 367, 367, 549, 547, 545, 537, + 536, 531, 524, 514, 512, 367, 367, 481, 500, 499, + 367, 367, 365, 367, 574, 414, 367, 367, 110, 367, + 535, 400, 367, 109, 77, 94, 409, 367, 328, 116, + 178, 104, 405, 281, 110, 98, 328, 346, 319, 346, + 576, 292, 409, 103, 346, 345, 577, 345, 543, 301, + 346, 564, 345, 541, 346, 504, 598, 344, 345, 503, + 230, 185, 345, 115, 485, 309, 346, 313, 314, 287, + 597, 538, 515, 350, 345, 501, 480, 391, 303, 305, + 307, 349, 374, 29, 328, 368, 523, 329, 338, 320, + 343, 93, 434, 318, 317, 329, 315, 440, 441, 442, + 443, 444, 445, 17, 446, 447, 448, 449, 91, 619, + 178, 450, 451, 452, 453, 454, 455, 456, 457, 458, + 459, 460, 461, 462, 463, 464, 436, 465, 466, 467, + 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, + 317, 185, 322, 329, 14, 517, 572, 586, 573, 438, + 4, 15, 284, 583, 16, 17, 580, 14, 596, 284, + 596, 370, 99, 17, 15, 97, 336, 16, 17, 17, + 17, 17, 96, 95, 617, 611, 591, 590, 589, 333, + 334, 335, 584, 581, 578, 19, 18, 20, 21, 337, + 230, 331, 571, 563, 13, 557, 527, 285, 19, 18, + 20, 21, 283, 519, 285, 339, 422, 13, 595, 283, + 595, 609, 390, 281, 373, 372, 342, 341, 332, 323, + 292, 302, 286, 102, 101, 100, 90, 355, 86, 25, + 561, 560, 516, 488, 358, 359, 360, 361, 362, 363, + 487, 340, 486, 420, 419, 356, 418, 417, 347, 416, + 415, 353, 397, 371, 364, 324, 92, 24, 490, 427, + 392, 369, 29, 5, 394, 395, 396, 23, 27, 28, + 122, 11, 388, 11, 11, 588, 120, 10, 389, 10, + 10, 587, 109, 299, 297, 292, 23, 355, 355, 530, + 398, 29, 312, 11, 298, 428, 296, 294, 77, 10, + 529, 528, 121, 9, 431, 9, 9, 295, 511, 510, + 509, 403, 401, 376, 377, 378, 379, 380, 381, 382, + 383, 384, 385, 386, 387, 9, 426, 508, 507, 479, + 317, 506, 482, 109, 489, 292, 478, 312, 421, 483, + 292, 393, 29, 282, 279, 3, 484, 492, 22, 12, + 227, 179, 176, 123, 326, 311, 180, 128, 429, 137, + 127, 433, 126, 431, 513, 505, 520, 521, 229, 432, + 119, 289, 434, 290, 435, 518, 235, 440, 441, 442, + 443, 444, 445, 17, 446, 447, 448, 449, 134, 437, + 522, 450, 451, 452, 453, 454, 455, 456, 457, 458, + 459, 460, 461, 462, 463, 464, 436, 465, 466, 467, + 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, + 236, 525, 140, 183, 439, 238, 143, 526, 292, 438, + 375, 108, 532, 291, 76, 533, 592, 355, 534, 424, + 7, 6, 2, 1, 0, 542, 77, 109, 0, 546, + 548, 550, 552, 554, 556, 559, 539, 558, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, + 0, 566, 568, 570, 0, 562, 0, 0, 575, 0, + 579, 0, 0, 0, 582, 0, 0, 0, 585, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 594, 0, 0, + 0, 301, 0, 600, 301, 0, 602, 301, 0, 604, + 0, 0, 0, 0, 0, 0, 594, 0, 109, 109, + 606, 608, 301, 610, 301, 0, 301, 612, 613, 0, + 618, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 301, 0, 621, 301, 495, 0, 29, 114, 111, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, + 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 0, 0, 0, 0, 110, 0, 0, 0, + 0, 0, 0, 0, 497, 113, 112, 0, 0, 0, + 493, 29, 114, 111, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, + 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, + 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 0, 0, 0, + 0, 110, 0, 0, 0, 0, 0, 0, 0, 404, + 113, 112, 0, 0, 402, 29, 114, 111, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, + 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 0, 0, 0, 0, 110, 0, 0, 0, 0, + 0, 0, 0, 497, 113, 112, 29, 114, 111, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, + 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 0, 0, 0, 0, 110, 0, 0, 0, + 0, 0, 540, 0, 0, 113, 112, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 502, 0, 0, 0, 293, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, + 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 498, 0, 0, 0, 293, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, + 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 410, 0, 0, 0, 293, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 348, 0, 0, 0, + 293, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, + 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, + 71, 72, 73, 74, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 288, 0, 0, + 0, 293, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 71, 72, 73, 74, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 293, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, + 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, + 0, 78, 144, 145, 146, 147, 148, 149, 17, 150, + 151, 152, 153, 133, 132, 131, 154, 155, 156, 157, + 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, + 168, 169, 136, 142, 135, 170, 171, 138, 19, 18, + 20, 172, 173, 174, 175, 0, 0, 129, 0, 0, + 622, 130, 0, 0, 141, 0, 144, 145, 146, 147, + 148, 149, 17, 150, 151, 152, 153, 133, 132, 131, + 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, + 164, 165, 166, 167, 168, 169, 136, 142, 135, 170, + 171, 138, 19, 18, 20, 172, 173, 174, 175, 0, + 0, 129, 0, 0, 620, 130, 0, 0, 141, 0, + 144, 145, 146, 147, 148, 149, 17, 150, 151, 152, + 153, 133, 132, 131, 154, 155, 156, 157, 158, 159, + 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, + 136, 142, 135, 170, 171, 138, 19, 18, 20, 172, + 173, 174, 175, 0, 0, 129, 0, 0, 616, 130, + 0, 0, 141, 0, 144, 145, 146, 147, 148, 149, + 17, 150, 151, 152, 153, 133, 132, 131, 154, 155, + 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, + 166, 167, 168, 169, 136, 142, 135, 170, 171, 138, + 19, 18, 20, 172, 173, 174, 175, 0, 0, 129, + 0, 0, 615, 130, 0, 0, 141, 0, 144, 145, + 146, 147, 148, 149, 17, 150, 151, 152, 153, 133, + 132, 131, 154, 155, 156, 157, 158, 159, 160, 161, + 162, 163, 164, 165, 166, 167, 168, 169, 136, 142, + 135, 170, 171, 138, 19, 18, 20, 172, 173, 174, + 175, 0, 0, 129, 0, 0, 614, 130, 0, 0, + 141, 0, 144, 145, 146, 147, 148, 149, 17, 150, + 151, 152, 153, 133, 132, 131, 154, 155, 156, 157, + 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, + 168, 169, 136, 142, 135, 170, 171, 138, 19, 18, + 20, 172, 173, 174, 175, 0, 0, 129, 0, 0, + 603, 130, 0, 0, 141, 0, 144, 145, 146, 147, + 148, 149, 17, 150, 151, 152, 153, 133, 132, 131, + 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, + 164, 165, 166, 167, 168, 169, 136, 142, 135, 170, + 171, 138, 19, 18, 20, 172, 173, 174, 175, 0, + 0, 129, 0, 0, 601, 130, 0, 0, 141, 0, + 144, 145, 146, 147, 148, 149, 17, 150, 151, 152, + 153, 133, 132, 131, 154, 155, 156, 157, 158, 159, + 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, + 136, 142, 135, 170, 171, 138, 19, 18, 20, 172, + 173, 174, 175, 0, 0, 129, 0, 0, 599, 130, + 0, 0, 141, 0, 144, 145, 146, 147, 148, 149, + 17, 150, 151, 152, 153, 133, 132, 131, 154, 155, + 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, + 166, 167, 168, 169, 136, 142, 135, 170, 171, 138, + 19, 18, 20, 172, 173, 174, 175, 0, 0, 129, + 0, 0, 300, 130, 0, 0, 141, 0, 144, 145, + 146, 147, 148, 149, 17, 150, 151, 152, 153, 133, + 132, 131, 154, 155, 156, 157, 158, 159, 160, 161, + 162, 163, 164, 165, 166, 167, 168, 169, 136, 142, + 135, 170, 171, 138, 19, 18, 20, 172, 173, 174, + 175, 0, 0, 129, 0, 0, 231, 0, 0, 0, + 141, 239, 240, 241, 242, 243, 244, 245, 246, 247, + 248, 249, 234, 233, 232, 250, 251, 252, 253, 254, + 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, + 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, + 275, 276, 277, 278, 0, 0, 0, 0, 0, 330, + 231, 0, 0, 237, 0, 239, 240, 241, 242, 243, + 244, 245, 246, 247, 248, 249, 234, 233, 232, 250, + 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, + 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 278, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 237, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, + 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 83, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, + 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, + 71, 72, 491, 74, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 83, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, + 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, + 58, 59, 60, 308, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 83, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 306, 62, 63, 64, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 304, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 0, 0, 0, 0, 0, 182, 0, + 0, 0, 83, 186, 187, 188, 189, 190, 191, 17, + 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, + 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, + 212, 213, 214, 215, 216, 217, 218, 219, 184, 220, + 221, 222, 223, 224, 225, 226, 0, 182, 181, 0, + 0, 321, 186, 187, 188, 189, 190, 191, 17, 192, + 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, + 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, + 213, 214, 215, 216, 217, 218, 219, 184, 220, 221, + 222, 223, 224, 225, 226, 357, 0, 181, 0, 0, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, + 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, +} + +var protoPact = [...]int16{ + 212, -1000, 225, 225, 276, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, 247, 328, 2346, 1236, 2346, 2346, + 1941, 2346, 225, -1000, 408, -1000, 246, 408, 408, 408, + 244, 119, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, 275, 102, -1000, 1941, 189, + 188, 181, -1000, 2346, 178, 243, -1000, 242, 241, -1000, + -1000, 2346, 812, 1236, 33, 1781, 2255, 1888, -1000, 227, + -1000, -1000, -1000, -1000, 240, -1000, -1000, -1000, -1000, -1000, + 1175, -1000, 361, 348, -1000, -1000, -1000, 1727, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + 239, 2153, 2100, 2047, 2346, 402, 2346, 2346, 357, -1000, + -1000, 2346, 46, 100, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, 2206, -1000, -1000, -1000, + -1000, -1000, 237, 274, 149, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, 1834, -1000, -1000, + -1000, 236, 2153, 2100, 2047, 2346, -1000, 2346, 99, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, 220, + -1000, -1000, -1000, -1000, 235, 2346, -1000, 105, 72, 1114, + 91, -11, -1000, 2303, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, 2346, 2346, 2346, 2346, 2346, 2346, 273, + 30, 95, 291, 177, 272, 233, 232, 92, -1000, 360, + 2346, -1000, -1000, -1000, 101, 230, 87, 290, -1000, 406, + -1000, -1000, -1000, 2346, 2346, 2346, 271, -1000, 2346, -1000, + -1000, -1000, 26, -1000, -1000, -1000, -1000, -1000, 84, -1000, + -1000, 687, 34, -1000, 1053, -1000, -20, 17, 269, 268, + 266, 265, 263, 262, 403, -1000, 224, 1236, 402, 324, + 440, 401, -1000, -1000, 408, 86, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, 25, + -1000, 101, 93, -1000, 261, 259, 252, 399, -1000, 279, + 1994, -1000, 622, -1000, 992, -1000, 11, 10, 85, 931, + 68, 64, -1000, 2346, -1000, 396, 393, 392, 375, 374, + 373, 22, -1000, 5, 82, 251, -1000, -1000, -1000, 160, + -1000, -1000, -1000, -1000, 221, 2346, 2346, -1000, 2346, 97, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, 20, -1000, + 1941, -1000, 214, -1000, -1000, -1000, 366, 365, 354, 19, + 26, 1941, 24, -1000, 2, 1, 81, 870, 62, -1000, + -1000, 50, 57, -1000, -1000, -28, 16, 13, 14, 9, + 8, -2, -1000, 213, -1000, 1236, 812, -1000, -1000, -1000, + 250, 249, -1000, 2346, -1000, 211, 60, -1000, -3, -5, + -6, -1000, 210, 164, 18, -1000, -1000, -1000, 751, 49, + 55, -1000, -1000, -1000, -1000, -1000, 202, 1781, 172, -1000, + 201, 1781, 169, -1000, 200, 1781, 163, -1000, -1000, -1000, + 346, 340, -1000, -1000, -1000, -1000, 196, -1000, 195, -1000, + 194, -1000, -1000, 228, -1000, -1000, 80, 66, -1000, 1673, + 1781, -1000, 1619, 1781, -1000, 1565, 1781, -8, -9, -1000, + -1000, -1000, 226, -1000, -1000, -1000, 193, 751, 751, -1000, + 1511, -1000, 1457, -1000, 1403, -1000, 192, 1781, 125, -1000, + -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, 1349, 1781, + -1000, 1295, -1000, +} + +var protoPgo = [...]int16{ + 0, 513, 512, 333, 415, 511, 510, 3, 509, 11, + 10, 506, 504, 503, 39, 12, 8, 30, 5, 29, + 501, 23, 0, 500, 496, 495, 494, 493, 21, 492, + 490, 459, 16, 458, 446, 444, 9, 13, 443, 441, + 28, 440, 439, 438, 432, 32, 431, 430, 429, 372, + 1, 2, 15, 428, 24, 427, 426, 34, 425, 424, + 27, 17, 423, 346, 35, 422, 421, 340, 33, 420, + 25, 419, 31, 414, 413, 14, +} + +var protoR1 = [...]int8{ + 0, 1, 1, 1, 1, 4, 4, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 2, 5, 5, + 5, 6, 28, 28, 29, 29, 30, 30, 31, 31, + 7, 14, 14, 12, 12, 16, 16, 17, 17, 17, + 20, 20, 20, 20, 20, 20, 20, 20, 70, 70, + 18, 18, 40, 40, 40, 39, 39, 39, 39, 39, + 39, 38, 38, 38, 38, 38, 38, 38, 38, 38, + 38, 38, 13, 13, 13, 13, 37, 37, 19, 19, + 19, 36, 36, 36, 36, 36, 36, 32, 32, 33, + 33, 34, 34, 35, 35, 41, 41, 41, 41, 41, + 41, 41, 41, 43, 43, 43, 43, 43, 43, 43, + 43, 15, 9, 9, 8, 45, 45, 45, 45, 45, + 45, 44, 53, 53, 53, 52, 52, 52, 52, 52, + 42, 42, 46, 46, 47, 47, 48, 23, 23, 23, + 23, 23, 23, 23, 23, 23, 23, 23, 23, 62, + 62, 60, 60, 58, 58, 58, 61, 61, 59, 59, + 59, 21, 21, 55, 55, 56, 56, 57, 54, 54, + 63, 65, 65, 65, 64, 64, 64, 64, 64, 64, + 66, 66, 49, 51, 51, 51, 50, 50, 50, 50, + 50, 50, 50, 50, 50, 50, 50, 50, 50, 67, + 69, 69, 69, 68, 68, 68, 68, 71, 73, 73, + 73, 72, 72, 72, 72, 72, 74, 74, 75, 75, + 11, 11, 11, 10, 10, 10, 10, 24, 24, 24, + 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, + 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, + 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, + 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, + 27, 26, 26, 26, 26, 26, 26, 26, 26, 26, + 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, + 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, + 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, + 22, 22, 22, +} + +var protoR2 = [...]int8{ + 0, 1, 1, 2, 0, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 2, 1, 4, 3, 4, + 4, 3, 1, 3, 1, 3, 1, 3, 1, 3, + 5, 1, 3, 1, 3, 1, 1, 1, 1, 1, + 1, 2, 2, 2, 2, 1, 2, 2, 1, 2, + 3, 3, 1, 2, 0, 1, 2, 2, 2, 2, + 1, 3, 3, 4, 4, 5, 5, 4, 3, 2, + 5, 4, 1, 3, 5, 3, 1, 3, 1, 3, + 3, 1, 3, 3, 5, 3, 5, 1, 2, 1, + 2, 1, 2, 1, 2, 6, 6, 6, 7, 7, + 7, 5, 6, 6, 6, 6, 7, 7, 7, 5, + 6, 3, 1, 3, 3, 8, 8, 8, 9, 9, + 9, 5, 2, 1, 0, 1, 1, 1, 2, 1, + 5, 6, 7, 8, 5, 6, 6, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, + 4, 1, 3, 1, 3, 3, 1, 3, 1, 3, + 3, 1, 2, 3, 1, 3, 1, 3, 1, 3, + 5, 2, 1, 0, 1, 1, 1, 1, 2, 1, + 4, 5, 5, 2, 1, 0, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 2, 1, 5, + 2, 1, 0, 1, 1, 2, 1, 5, 2, 1, + 0, 1, 1, 1, 2, 1, 6, 8, 4, 3, + 2, 1, 0, 1, 1, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, +} + +var protoChk = [...]int16{ + -1000, -1, -2, -4, 8, -3, -5, -6, -7, -49, + -63, -67, -71, 52, 2, 9, 12, 13, 44, 43, + 45, 46, -4, -3, 51, 52, -70, 10, 11, 4, + -28, -22, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, -14, -12, -22, 65, -22, + -22, -32, -28, 59, -22, -70, 52, -70, -70, -70, + 52, 59, 51, 59, -32, 54, 54, 54, -28, 54, + 52, 52, 52, -28, -16, -17, -18, -70, -20, -22, + 54, 6, 64, 63, 5, -14, 66, -51, -50, -41, + -63, -49, -67, -62, -45, -7, -44, -47, -55, 52, + 2, 20, 19, 18, -33, 39, 37, -48, 42, -57, + -29, 59, 38, -24, 7, 8, 9, 10, 11, 12, + 14, 15, 16, 17, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 40, 41, 46, 47, 48, 49, -65, -64, -7, -66, + -56, 52, 2, -27, 42, -57, 7, 8, 9, 10, + 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 43, 44, 45, 46, 47, 48, 49, -69, -68, -43, + -45, 2, 20, 19, 18, -34, -30, 59, -25, 7, + 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, -73, + -72, -7, -74, 52, 2, 47, 52, -40, 2, -39, + -38, -13, -22, 67, 6, 16, 5, 6, 16, 5, + 55, -50, 52, -32, 36, -32, 36, -32, 36, -22, + -60, -58, 5, -22, -22, -60, -54, -70, -28, 62, + 59, 55, -64, 52, 51, -61, -59, -21, 5, 64, + 55, -68, 52, -32, -32, -32, -22, -28, 59, 55, + -72, 52, -22, 55, 55, 60, 52, -40, 2, 60, + 52, 53, 67, -19, 62, -18, -28, 2, -22, -22, + -22, -22, -22, -22, 51, 52, -15, 67, 60, 40, + 54, 51, 52, 52, 60, -23, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, -28, -21, + 52, 60, 40, 5, -22, -22, -22, 51, -28, -75, + 65, -17, 67, -19, 62, 68, -37, 2, -19, 62, + 2, -40, 68, 57, 68, 51, 51, 51, 51, 51, + 51, 5, 52, -9, -8, -14, -60, 5, 41, -53, + -52, -7, -42, -46, 2, -35, 36, -31, 59, -26, + 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 5, -54, + 60, 52, -15, -61, -21, 41, 51, 51, 51, 5, + 49, 48, -32, 68, -36, 2, -16, 62, 2, 68, + 68, 60, 2, 61, 61, -28, 5, 5, 5, 5, + 5, 5, 52, -15, 68, 60, 51, 55, -52, 52, + -22, -22, -28, 59, 52, -15, -32, 52, 5, 5, + 5, 52, -15, -75, -32, 66, 68, 68, 60, -40, + 2, 61, -37, 61, 68, 52, -15, 54, -15, 52, + -15, 54, -15, 52, -15, 54, -15, 52, -9, -16, + 51, 51, -28, 52, 61, 52, -15, 52, -15, 52, + -15, 52, 52, 54, 66, -36, 61, 61, 52, -51, + 54, 52, -51, 54, 52, -51, 54, 5, 5, 52, + 52, 52, -11, -10, -7, 52, 2, 60, 60, 55, + -51, 55, -51, 55, -51, 52, -15, 54, -15, 55, + -10, 52, -36, -36, 55, 55, 55, 52, -51, 54, + 55, -51, 55, +} + +var protoDef = [...]int16{ + -2, -2, -2, -2, 0, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 16, 0, 0, 0, 0, 0, + 0, 0, -2, 5, 0, 15, 0, 0, 0, 48, + 0, 22, 380, 381, 382, 383, 384, 385, 386, 387, + 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, + 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, + 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, + 418, 419, 420, 421, 422, 0, 31, 33, 0, 0, + 0, 0, 87, 0, 0, 0, 18, 0, 0, 49, + 21, 0, 0, 0, 0, -2, -2, -2, 88, -2, + 17, 19, 20, 23, 0, 35, 36, 37, 38, 39, + -2, 40, 0, 0, 45, 32, 34, 0, 184, 186, + 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, + 198, 0, 0, 0, 0, 0, 0, 0, 0, 164, + 89, 0, 253, 24, 227, 228, 229, 230, 231, 232, + 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, + 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, + 254, 255, 256, 257, 258, 259, 0, 172, 174, 175, + 176, 177, 179, 0, 0, 166, 300, 301, 302, 303, + 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, + 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, + 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, + 334, 335, 336, 337, 338, 339, 340, 0, 201, 203, + 204, 206, 0, 0, 0, 0, 91, 0, 26, 260, + 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, + 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, + 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, + 291, 292, 293, 294, 295, 296, 297, 298, 299, 0, + 209, 211, 212, 213, 215, 0, 30, 0, 60, -2, + 55, 0, 72, 0, 41, 44, 47, 42, 43, 46, + 182, 183, 197, 0, 409, 0, 409, 0, 409, 0, + 0, 151, 153, 0, 0, 0, 0, 168, 90, 0, + 0, 170, 171, 178, 0, 0, 156, 158, 161, 0, + 199, 200, 205, 0, 0, 0, 0, 92, 0, 207, + 208, 214, 0, 50, 51, 58, 59, 53, 60, 56, + 57, 0, 0, 69, -2, 78, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 149, 0, 0, 0, 0, + -2, 0, 163, 167, 0, 0, 137, 138, 139, 140, + 141, 142, 143, 144, 145, 146, 147, 148, 25, 0, + 165, 0, 0, 162, 0, 0, 0, 0, 27, 0, + 0, 61, 0, 68, -2, 62, 0, 0, 76, -2, + 60, 0, 73, 0, 75, 0, 0, 0, 0, 0, + 0, 0, 150, 0, 112, 0, 152, 154, 155, 0, + 123, 125, 126, 127, 129, 0, 366, 93, 0, 28, + 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, + 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, + 361, 362, 363, 364, 365, 367, 368, 369, 370, 371, + 372, 373, 374, 375, 376, 377, 378, 379, 0, 169, + 0, 180, 0, 157, 159, 160, 0, 0, 0, 0, + 0, 421, 0, 63, 0, 0, 81, -2, 60, 64, + 67, 0, 60, 71, 79, 0, 0, 0, 0, 0, + 0, 0, 101, 0, 111, 0, 0, 121, 122, 128, + 0, 0, 94, 0, 134, 0, 0, 181, 0, 0, + 0, 109, 0, 0, 0, 219, 65, 66, 0, 0, + 60, 70, 77, 80, 74, 95, 0, -2, 0, 96, + 0, -2, 0, 97, 0, -2, 0, 102, 113, 114, + 0, 0, 29, 135, 136, 103, 0, 104, 0, 105, + 0, 110, 216, -2, 218, 82, 83, 85, 98, 0, + -2, 99, 0, -2, 100, 0, -2, 0, 0, 106, + 107, 108, 0, 221, 223, 224, 226, 0, 0, 115, + 0, 116, 0, 117, 0, 130, 0, -2, 0, 217, + 220, 225, 84, 86, 118, 119, 120, 131, 0, -2, + 132, 0, 133, +} + +var protoTok1 = [...]int8{ + 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 76, 3, 74, 73, 72, 70, 3, + 65, 66, 69, 63, 60, 64, 59, 57, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 53, 52, + 62, 51, 61, 58, 75, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 67, 56, 68, 71, 3, 78, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 54, 3, 55, 77, +} + +var protoTok2 = [...]int8{ + 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, +} + +var protoTok3 = [...]int8{ + 0, +} + +var protoErrorMessages = [...]struct { + state int + token int + msg string +}{} + +/* parser for yacc output */ + +var ( + protoDebug = 0 + protoErrorVerbose = false +) + +type protoLexer interface { + Lex(lval *protoSymType) int + Error(s string) +} + +type protoParser interface { + Parse(protoLexer) int + Lookahead() int +} + +type protoParserImpl struct { + lval protoSymType + stack [protoInitialStackSize]protoSymType + char int +} + +func (p *protoParserImpl) Lookahead() int { + return p.char +} + +func protoNewParser() protoParser { + return &protoParserImpl{} +} + +const protoFlag = -1000 + +func protoTokname(c int) string { + if c >= 1 && c-1 < len(protoToknames) { + if protoToknames[c-1] != "" { + return protoToknames[c-1] + } + } + return __yyfmt__.Sprintf("tok-%v", c) +} + +func protoStatname(s int) string { + if s >= 0 && s < len(protoStatenames) { + if protoStatenames[s] != "" { + return protoStatenames[s] + } + } + return __yyfmt__.Sprintf("state-%v", s) +} + +func protoErrorMessage(state, lookAhead int) string { + const TOKSTART = 4 + + if !protoErrorVerbose { + return "syntax error" + } + + for _, e := range protoErrorMessages { + if e.state == state && e.token == lookAhead { + return "syntax error: " + e.msg + } + } + + res := "syntax error: unexpected " + protoTokname(lookAhead) + + // To match Bison, suggest at most four expected tokens. + expected := make([]int, 0, 4) + + // Look for shiftable tokens. + base := int(protoPact[state]) + for tok := TOKSTART; tok-1 < len(protoToknames); tok++ { + if n := base + tok; n >= 0 && n < protoLast && int(protoChk[int(protoAct[n])]) == tok { + if len(expected) == cap(expected) { + return res + } + expected = append(expected, tok) + } + } + + if protoDef[state] == -2 { + i := 0 + for protoExca[i] != -1 || int(protoExca[i+1]) != state { + i += 2 + } + + // Look for tokens that we accept or reduce. + for i += 2; protoExca[i] >= 0; i += 2 { + tok := int(protoExca[i]) + if tok < TOKSTART || protoExca[i+1] == 0 { + continue + } + if len(expected) == cap(expected) { + return res + } + expected = append(expected, tok) + } + + // If the default action is to accept or reduce, give up. + if protoExca[i+1] != 0 { + return res + } + } + + for i, tok := range expected { + if i == 0 { + res += ", expecting " + } else { + res += " or " + } + res += protoTokname(tok) + } + return res +} + +func protolex1(lex protoLexer, lval *protoSymType) (char, token int) { + token = 0 + char = lex.Lex(lval) + if char <= 0 { + token = int(protoTok1[0]) + goto out + } + if char < len(protoTok1) { + token = int(protoTok1[char]) + goto out + } + if char >= protoPrivate { + if char < protoPrivate+len(protoTok2) { + token = int(protoTok2[char-protoPrivate]) + goto out + } + } + for i := 0; i < len(protoTok3); i += 2 { + token = int(protoTok3[i+0]) + if token == char { + token = int(protoTok3[i+1]) + goto out + } + } + +out: + if token == 0 { + token = int(protoTok2[1]) /* unknown char */ + } + if protoDebug >= 3 { + __yyfmt__.Printf("lex %s(%d)\n", protoTokname(token), uint(char)) + } + return char, token +} + +func protoParse(protolex protoLexer) int { + return protoNewParser().Parse(protolex) +} + +func (protorcvr *protoParserImpl) Parse(protolex protoLexer) int { + var proton int + var protoVAL protoSymType + var protoDollar []protoSymType + _ = protoDollar // silence set and not used + protoS := protorcvr.stack[:] + + Nerrs := 0 /* number of errors */ + Errflag := 0 /* error recovery flag */ + protostate := 0 + protorcvr.char = -1 + prototoken := -1 // protorcvr.char translated into internal numbering + defer func() { + // Make sure we report no lookahead when not parsing. + protostate = -1 + protorcvr.char = -1 + prototoken = -1 + }() + protop := -1 + goto protostack + +ret0: + return 0 + +ret1: + return 1 + +protostack: + /* put a state and value onto the stack */ + if protoDebug >= 4 { + __yyfmt__.Printf("char %v in %v\n", protoTokname(prototoken), protoStatname(protostate)) + } + + protop++ + if protop >= len(protoS) { + nyys := make([]protoSymType, len(protoS)*2) + copy(nyys, protoS) + protoS = nyys + } + protoS[protop] = protoVAL + protoS[protop].yys = protostate + +protonewstate: + proton = int(protoPact[protostate]) + if proton <= protoFlag { + goto protodefault /* simple state */ + } + if protorcvr.char < 0 { + protorcvr.char, prototoken = protolex1(protolex, &protorcvr.lval) + } + proton += prototoken + if proton < 0 || proton >= protoLast { + goto protodefault + } + proton = int(protoAct[proton]) + if int(protoChk[proton]) == prototoken { /* valid shift */ + protorcvr.char = -1 + prototoken = -1 + protoVAL = protorcvr.lval + protostate = proton + if Errflag > 0 { + Errflag-- + } + goto protostack + } + +protodefault: + /* default state action */ + proton = int(protoDef[protostate]) + if proton == -2 { + if protorcvr.char < 0 { + protorcvr.char, prototoken = protolex1(protolex, &protorcvr.lval) + } + + /* look through exception table */ + xi := 0 + for { + if protoExca[xi+0] == -1 && int(protoExca[xi+1]) == protostate { + break + } + xi += 2 + } + for xi += 2; ; xi += 2 { + proton = int(protoExca[xi+0]) + if proton < 0 || proton == prototoken { + break + } + } + proton = int(protoExca[xi+1]) + if proton < 0 { + goto ret0 + } + } + if proton == 0 { + /* error ... attempt to resume parsing */ + switch Errflag { + case 0: /* brand new error */ + protolex.Error(protoErrorMessage(protostate, prototoken)) + Nerrs++ + if protoDebug >= 1 { + __yyfmt__.Printf("%s", protoStatname(protostate)) + __yyfmt__.Printf(" saw %s\n", protoTokname(prototoken)) + } + fallthrough + + case 1, 2: /* incompletely recovered error ... try again */ + Errflag = 3 + + /* find a state where "error" is a legal shift action */ + for protop >= 0 { + proton = int(protoPact[protoS[protop].yys]) + protoErrCode + if proton >= 0 && proton < protoLast { + protostate = int(protoAct[proton]) /* simulate a shift of "error" */ + if int(protoChk[protostate]) == protoErrCode { + goto protostack + } + } + + /* the current p has no shift on "error", pop stack */ + if protoDebug >= 2 { + __yyfmt__.Printf("error recovery pops state %d\n", protoS[protop].yys) + } + protop-- + } + /* there is no state on the stack with an error shift ... abort */ + goto ret1 + + case 3: /* no shift yet; clobber input char */ + if protoDebug >= 2 { + __yyfmt__.Printf("error recovery discards %s\n", protoTokname(prototoken)) + } + if prototoken == protoEofCode { + goto ret1 + } + protorcvr.char = -1 + prototoken = -1 + goto protonewstate /* try again in the same state */ + } + } + + /* reduction by production proton */ + if protoDebug >= 2 { + __yyfmt__.Printf("reduce %v in:\n\t%v\n", proton, protoStatname(protostate)) + } + + protont := proton + protopt := protop + _ = protopt // guard against "declared and not used" + + protop -= int(protoR2[proton]) + // protop is now the index of $0. Perform the default action. Iff the + // reduced production is ε, $1 is possibly out of range. + if protop+1 >= len(protoS) { + nyys := make([]protoSymType, len(protoS)*2) + copy(nyys, protoS) + protoS = nyys + } + protoVAL = protoS[protop+1] + + /* consult goto table to find next state */ + proton = int(protoR1[proton]) + protog := int(protoPgo[proton]) + protoj := protog + protoS[protop].yys + 1 + + if protoj >= protoLast { + protostate = int(protoAct[protog]) + } else { + protostate = int(protoAct[protoj]) + if int(protoChk[protostate]) != -proton { + protostate = int(protoAct[protog]) + } + } + // dummy call; replaced with literal code + switch protont { + + case 1: + protoDollar = protoS[protopt-1 : protopt+1] + { + lex := protolex.(*protoLex) + protoVAL.file = ast.NewFileNode(lex.info, protoDollar[1].syn, nil, lex.eof) + lex.res = protoVAL.file + } + case 2: + protoDollar = protoS[protopt-1 : protopt+1] + { + lex := protolex.(*protoLex) + protoVAL.file = ast.NewFileNode(lex.info, nil, protoDollar[1].fileDecls, lex.eof) + lex.res = protoVAL.file + } + case 3: + protoDollar = protoS[protopt-2 : protopt+1] + { + lex := protolex.(*protoLex) + protoVAL.file = ast.NewFileNode(lex.info, protoDollar[1].syn, protoDollar[2].fileDecls, lex.eof) + lex.res = protoVAL.file + } + case 4: + protoDollar = protoS[protopt-0 : protopt+1] + { + lex := protolex.(*protoLex) + protoVAL.file = ast.NewFileNode(lex.info, nil, nil, lex.eof) + lex.res = protoVAL.file + } + case 5: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].fileDecl != nil { + protoVAL.fileDecls = append(protoDollar[1].fileDecls, protoDollar[2].fileDecl) + } else { + protoVAL.fileDecls = protoDollar[1].fileDecls + } + } + case 6: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].fileDecl != nil { + protoVAL.fileDecls = []ast.FileElement{protoDollar[1].fileDecl} + } else { + protoVAL.fileDecls = nil + } + } + case 7: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].imprt + } + case 8: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].pkg + } + case 9: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].opt + } + case 10: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].msg + } + case 11: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].en + } + case 12: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].extend + } + case 13: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = protoDollar[1].svc + } + case 14: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = ast.NewEmptyDeclNode(protoDollar[1].b) + } + case 15: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.fileDecl = nil + } + case 16: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.fileDecl = nil + } + case 17: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.syn = ast.NewSyntaxNode(protoDollar[1].id.ToKeyword(), protoDollar[2].b, protoDollar[3].str.toStringValueNode(), protoDollar[4].b) + } + case 18: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.imprt = ast.NewImportNode(protoDollar[1].id.ToKeyword(), nil, nil, protoDollar[2].str.toStringValueNode(), protoDollar[3].b) + } + case 19: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.imprt = ast.NewImportNode(protoDollar[1].id.ToKeyword(), nil, protoDollar[2].id.ToKeyword(), protoDollar[3].str.toStringValueNode(), protoDollar[4].b) + } + case 20: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.imprt = ast.NewImportNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), nil, protoDollar[3].str.toStringValueNode(), protoDollar[4].b) + } + case 21: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.pkg = ast.NewPackageNode(protoDollar[1].id.ToKeyword(), protoDollar[2].cid.toIdentValueNode(nil), protoDollar[3].b) + } + case 22: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, nil, nil} + } + case 23: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, protoDollar[2].b, protoDollar[3].cid} + } + case 24: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, nil, nil} + } + case 25: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, protoDollar[2].b, protoDollar[3].cid} + } + case 26: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, nil, nil} + } + case 27: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, protoDollar[2].b, protoDollar[3].cid} + } + case 28: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, nil, nil} + } + case 29: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.cid = &identList{protoDollar[1].id, protoDollar[2].b, protoDollar[3].cid} + } + case 30: + protoDollar = protoS[protopt-5 : protopt+1] + { + refs, dots := protoDollar[2].optNms.toNodes() + optName := ast.NewOptionNameNode(refs, dots) + protoVAL.opt = ast.NewOptionNode(protoDollar[1].id.ToKeyword(), optName, protoDollar[3].b, protoDollar[4].v, protoDollar[5].b) + } + case 31: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.optNms = &fieldRefList{protoDollar[1].ref, nil, nil} + } + case 32: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.optNms = &fieldRefList{protoDollar[1].ref, protoDollar[2].b, protoDollar[3].optNms} + } + case 33: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.ref = ast.NewFieldReferenceNode(protoDollar[1].id) + } + case 34: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.ref = ast.NewExtensionFieldReferenceNode(protoDollar[1].b, protoDollar[2].tid, protoDollar[3].b) + } + case 37: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.v = protoDollar[1].str.toStringValueNode() + } + case 39: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.v = protoDollar[1].id + } + case 40: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.v = protoDollar[1].f + } + case 41: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.v = ast.NewSignedFloatLiteralNode(protoDollar[1].b, protoDollar[2].f) + } + case 42: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.v = ast.NewSignedFloatLiteralNode(protoDollar[1].b, protoDollar[2].f) + } + case 43: + protoDollar = protoS[protopt-2 : protopt+1] + { + f := ast.NewSpecialFloatLiteralNode(protoDollar[2].id.ToKeyword()) + protoVAL.v = ast.NewSignedFloatLiteralNode(protoDollar[1].b, f) + } + case 44: + protoDollar = protoS[protopt-2 : protopt+1] + { + f := ast.NewSpecialFloatLiteralNode(protoDollar[2].id.ToKeyword()) + protoVAL.v = ast.NewSignedFloatLiteralNode(protoDollar[1].b, f) + } + case 45: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.v = protoDollar[1].i + } + case 46: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.v = ast.NewPositiveUintLiteralNode(protoDollar[1].b, protoDollar[2].i) + } + case 47: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].i.Val > math.MaxInt64+1 { + // can't represent as int so treat as float literal + protoVAL.v = ast.NewSignedFloatLiteralNode(protoDollar[1].b, protoDollar[2].i) + } else { + protoVAL.v = ast.NewNegativeIntLiteralNode(protoDollar[1].b, protoDollar[2].i) + } + } + case 48: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.str = &stringList{protoDollar[1].s, nil} + } + case 49: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.str = &stringList{protoDollar[1].s, protoDollar[2].str} + } + case 50: + protoDollar = protoS[protopt-3 : protopt+1] + { + fields, delims := protoDollar[2].msgLit.toNodes() + protoVAL.v = ast.NewMessageLiteralNode(protoDollar[1].b, fields, delims, protoDollar[3].b) + } + case 51: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.v = nil + } + case 52: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].msgEntry != nil { + protoVAL.msgLit = &messageFieldList{protoDollar[1].msgEntry, nil} + } else { + protoVAL.msgLit = nil + } + } + case 53: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[1].msgEntry != nil { + protoVAL.msgLit = &messageFieldList{protoDollar[1].msgEntry, protoDollar[2].msgLit} + } else { + protoVAL.msgLit = protoDollar[2].msgLit + } + } + case 54: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.msgLit = nil + } + case 55: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].msgField != nil { + protoVAL.msgEntry = &messageFieldEntry{protoDollar[1].msgField, nil} + } else { + protoVAL.msgEntry = nil + } + } + case 56: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[1].msgField != nil { + protoVAL.msgEntry = &messageFieldEntry{protoDollar[1].msgField, protoDollar[2].b} + } else { + protoVAL.msgEntry = nil + } + } + case 57: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[1].msgField != nil { + protoVAL.msgEntry = &messageFieldEntry{protoDollar[1].msgField, protoDollar[2].b} + } else { + protoVAL.msgEntry = nil + } + } + case 58: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.msgEntry = nil + } + case 59: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.msgEntry = nil + } + case 60: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgEntry = nil + } + case 61: + protoDollar = protoS[protopt-3 : protopt+1] + { + if protoDollar[1].ref != nil { + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, protoDollar[2].b, protoDollar[3].v) + } else { + protoVAL.msgField = nil + } + } + case 62: + protoDollar = protoS[protopt-3 : protopt+1] + { + if protoDollar[1].ref != nil { + val := ast.NewArrayLiteralNode(protoDollar[2].b, nil, nil, protoDollar[3].b) + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, nil, val) + } else { + protoVAL.msgField = nil + } + } + case 63: + protoDollar = protoS[protopt-4 : protopt+1] + { + if protoDollar[1].ref != nil { + val := ast.NewArrayLiteralNode(protoDollar[3].b, nil, nil, protoDollar[4].b) + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, protoDollar[2].b, val) + } else { + protoVAL.msgField = nil + } + } + case 64: + protoDollar = protoS[protopt-4 : protopt+1] + { + if protoDollar[1].ref != nil { + vals, commas := protoDollar[3].sl.toNodes() + val := ast.NewArrayLiteralNode(protoDollar[2].b, vals, commas, protoDollar[4].b) + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, nil, val) + } else { + protoVAL.msgField = nil + } + } + case 65: + protoDollar = protoS[protopt-5 : protopt+1] + { + if protoDollar[1].ref != nil { + vals, commas := protoDollar[4].sl.toNodes() + val := ast.NewArrayLiteralNode(protoDollar[3].b, vals, commas, protoDollar[5].b) + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, protoDollar[2].b, val) + } else { + protoVAL.msgField = nil + } + } + case 66: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.msgField = nil + } + case 67: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.msgField = nil + } + case 68: + protoDollar = protoS[protopt-3 : protopt+1] + { + if protoDollar[1].ref != nil && protoDollar[3].v != nil { + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, protoDollar[2].b, protoDollar[3].v) + } else { + protoVAL.msgField = nil + } + } + case 69: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[1].ref != nil && protoDollar[2].v != nil { + protoVAL.msgField = ast.NewMessageFieldNode(protoDollar[1].ref, nil, protoDollar[2].v) + } else { + protoVAL.msgField = nil + } + } + case 70: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.msgField = nil + } + case 71: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.msgField = nil + } + case 72: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.ref = ast.NewFieldReferenceNode(protoDollar[1].id) + } + case 73: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.ref = ast.NewExtensionFieldReferenceNode(protoDollar[1].b, protoDollar[2].cid.toIdentValueNode(nil), protoDollar[3].b) + } + case 74: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.ref = ast.NewAnyTypeReferenceNode(protoDollar[1].b, protoDollar[2].cid.toIdentValueNode(nil), protoDollar[3].b, protoDollar[4].cid.toIdentValueNode(nil), protoDollar[5].b) + } + case 75: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.ref = nil + } + case 76: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].v == nil { + protoVAL.sl = nil + } else { + protoVAL.sl = &valueList{protoDollar[1].v, nil, nil} + } + } + case 77: + protoDollar = protoS[protopt-3 : protopt+1] + { + if protoDollar[1].v == nil { + protoVAL.sl = nil + } else { + protoVAL.sl = &valueList{protoDollar[1].v, protoDollar[2].b, protoDollar[3].sl} + } + } + case 78: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.v = protoDollar[1].v + } + case 79: + protoDollar = protoS[protopt-3 : protopt+1] + { + fields, delims := protoDollar[2].msgLit.toNodes() + protoVAL.v = ast.NewMessageLiteralNode(protoDollar[1].b, fields, delims, protoDollar[3].b) + } + case 80: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.v = nil + } + case 81: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.sl = &valueList{protoDollar[1].v, nil, nil} + } + case 82: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.sl = &valueList{protoDollar[1].v, protoDollar[2].b, protoDollar[3].sl} + } + case 83: + protoDollar = protoS[protopt-3 : protopt+1] + { + fields, delims := protoDollar[2].msgLit.toNodes() + msg := ast.NewMessageLiteralNode(protoDollar[1].b, fields, delims, protoDollar[3].b) + protoVAL.sl = &valueList{msg, nil, nil} + } + case 84: + protoDollar = protoS[protopt-5 : protopt+1] + { + fields, delims := protoDollar[2].msgLit.toNodes() + msg := ast.NewMessageLiteralNode(protoDollar[1].b, fields, delims, protoDollar[3].b) + protoVAL.sl = &valueList{msg, protoDollar[4].b, protoDollar[5].sl} + } + case 85: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.sl = nil + } + case 86: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.sl = protoDollar[5].sl + } + case 87: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.tid = protoDollar[1].cid.toIdentValueNode(nil) + } + case 88: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.tid = protoDollar[2].cid.toIdentValueNode(protoDollar[1].b) + } + case 89: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.tid = protoDollar[1].cid.toIdentValueNode(nil) + } + case 90: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.tid = protoDollar[2].cid.toIdentValueNode(protoDollar[1].b) + } + case 91: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.tid = protoDollar[1].cid.toIdentValueNode(nil) + } + case 92: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.tid = protoDollar[2].cid.toIdentValueNode(protoDollar[1].b) + } + case 93: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.tid = protoDollar[1].cid.toIdentValueNode(nil) + } + case 94: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.tid = protoDollar[2].cid.toIdentValueNode(protoDollar[1].b) + } + case 95: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b) + } + case 96: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b) + } + case 97: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b) + } + case 98: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b) + } + case 99: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b) + } + case 100: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b) + } + case 101: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(nil, protoDollar[1].tid, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, nil, protoDollar[5].b) + } + case 102: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(nil, protoDollar[1].tid, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, protoDollar[5].cmpctOpts, protoDollar[6].b) + } + case 103: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b) + } + case 104: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b) + } + case 105: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b) + } + case 106: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b) + } + case 107: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b) + } + case 108: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b) + } + case 109: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(nil, protoDollar[1].tid, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, nil, protoDollar[5].b) + } + case 110: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(nil, protoDollar[1].tid, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, protoDollar[5].cmpctOpts, protoDollar[6].b) + } + case 111: + protoDollar = protoS[protopt-3 : protopt+1] + { + opts, commas := protoDollar[2].opts.toNodes() + protoVAL.cmpctOpts = ast.NewCompactOptionsNode(protoDollar[1].b, opts, commas, protoDollar[3].b) + } + case 112: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.opts = &compactOptionList{protoDollar[1].opt, nil, nil} + } + case 113: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.opts = &compactOptionList{protoDollar[1].opt, protoDollar[2].b, protoDollar[3].opts} + } + case 114: + protoDollar = protoS[protopt-3 : protopt+1] + { + refs, dots := protoDollar[1].optNms.toNodes() + optName := ast.NewOptionNameNode(refs, dots) + protoVAL.opt = ast.NewCompactOptionNode(optName, protoDollar[2].b, protoDollar[3].v) + } + case 115: + protoDollar = protoS[protopt-8 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b, protoDollar[7].msgDecls, protoDollar[8].b) + } + case 116: + protoDollar = protoS[protopt-8 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b, protoDollar[7].msgDecls, protoDollar[8].b) + } + case 117: + protoDollar = protoS[protopt-8 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, nil, protoDollar[6].b, protoDollar[7].msgDecls, protoDollar[8].b) + } + case 118: + protoDollar = protoS[protopt-9 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b, protoDollar[8].msgDecls, protoDollar[9].b) + } + case 119: + protoDollar = protoS[protopt-9 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b, protoDollar[8].msgDecls, protoDollar[9].b) + } + case 120: + protoDollar = protoS[protopt-9 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id.ToKeyword(), protoDollar[3].id, protoDollar[4].b, protoDollar[5].i, protoDollar[6].cmpctOpts, protoDollar[7].b, protoDollar[8].msgDecls, protoDollar[9].b) + } + case 121: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.oo = ast.NewOneOfNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].b, protoDollar[4].ooDecls, protoDollar[5].b) + } + case 122: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].ooDecl != nil { + protoVAL.ooDecls = append(protoDollar[1].ooDecls, protoDollar[2].ooDecl) + } else { + protoVAL.ooDecls = protoDollar[1].ooDecls + } + } + case 123: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].ooDecl != nil { + protoVAL.ooDecls = []ast.OneOfElement{protoDollar[1].ooDecl} + } else { + protoVAL.ooDecls = nil + } + } + case 124: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.ooDecls = nil + } + case 125: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.ooDecl = protoDollar[1].opt + } + case 126: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.ooDecl = protoDollar[1].fld + } + case 127: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.ooDecl = protoDollar[1].grp + } + case 128: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.ooDecl = nil + } + case 129: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.ooDecl = nil + } + case 130: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(nil, protoDollar[1].tid, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, nil, protoDollar[5].b) + } + case 131: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.fld = ast.NewFieldNode(nil, protoDollar[1].tid, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, protoDollar[5].cmpctOpts, protoDollar[6].b) + } + case 132: + protoDollar = protoS[protopt-7 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(nil, protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, nil, protoDollar[5].b, protoDollar[6].msgDecls, protoDollar[7].b) + } + case 133: + protoDollar = protoS[protopt-8 : protopt+1] + { + protoVAL.grp = ast.NewGroupNode(nil, protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, protoDollar[5].cmpctOpts, protoDollar[6].b, protoDollar[7].msgDecls, protoDollar[8].b) + } + case 134: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.mapFld = ast.NewMapFieldNode(protoDollar[1].mapType, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, nil, protoDollar[5].b) + } + case 135: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.mapFld = ast.NewMapFieldNode(protoDollar[1].mapType, protoDollar[2].id, protoDollar[3].b, protoDollar[4].i, protoDollar[5].cmpctOpts, protoDollar[6].b) + } + case 136: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.mapType = ast.NewMapTypeNode(protoDollar[1].id.ToKeyword(), protoDollar[2].b, protoDollar[3].id, protoDollar[4].b, protoDollar[5].tid, protoDollar[6].b) + } + case 149: + protoDollar = protoS[protopt-3 : protopt+1] + { + ranges, commas := protoDollar[2].rngs.toNodes() + protoVAL.ext = ast.NewExtensionRangeNode(protoDollar[1].id.ToKeyword(), ranges, commas, nil, protoDollar[3].b) + } + case 150: + protoDollar = protoS[protopt-4 : protopt+1] + { + ranges, commas := protoDollar[2].rngs.toNodes() + protoVAL.ext = ast.NewExtensionRangeNode(protoDollar[1].id.ToKeyword(), ranges, commas, protoDollar[3].cmpctOpts, protoDollar[4].b) + } + case 151: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rngs = &rangeList{protoDollar[1].rng, nil, nil} + } + case 152: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rngs = &rangeList{protoDollar[1].rng, protoDollar[2].b, protoDollar[3].rngs} + } + case 153: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rng = ast.NewRangeNode(protoDollar[1].i, nil, nil, nil) + } + case 154: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rng = ast.NewRangeNode(protoDollar[1].i, protoDollar[2].id.ToKeyword(), protoDollar[3].i, nil) + } + case 155: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rng = ast.NewRangeNode(protoDollar[1].i, protoDollar[2].id.ToKeyword(), nil, protoDollar[3].id.ToKeyword()) + } + case 156: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rngs = &rangeList{protoDollar[1].rng, nil, nil} + } + case 157: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rngs = &rangeList{protoDollar[1].rng, protoDollar[2].b, protoDollar[3].rngs} + } + case 158: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rng = ast.NewRangeNode(protoDollar[1].il, nil, nil, nil) + } + case 159: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rng = ast.NewRangeNode(protoDollar[1].il, protoDollar[2].id.ToKeyword(), protoDollar[3].il, nil) + } + case 160: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rng = ast.NewRangeNode(protoDollar[1].il, protoDollar[2].id.ToKeyword(), nil, protoDollar[3].id.ToKeyword()) + } + case 161: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.il = protoDollar[1].i + } + case 162: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.il = ast.NewNegativeIntLiteralNode(protoDollar[1].b, protoDollar[2].i) + } + case 163: + protoDollar = protoS[protopt-3 : protopt+1] + { + ranges, commas := protoDollar[2].rngs.toNodes() + protoVAL.resvd = ast.NewReservedRangesNode(protoDollar[1].id.ToKeyword(), ranges, commas, protoDollar[3].b) + } + case 165: + protoDollar = protoS[protopt-3 : protopt+1] + { + ranges, commas := protoDollar[2].rngs.toNodes() + protoVAL.resvd = ast.NewReservedRangesNode(protoDollar[1].id.ToKeyword(), ranges, commas, protoDollar[3].b) + } + case 167: + protoDollar = protoS[protopt-3 : protopt+1] + { + names, commas := protoDollar[2].names.toNodes() + protoVAL.resvd = ast.NewReservedNamesNode(protoDollar[1].id.ToKeyword(), names, commas, protoDollar[3].b) + } + case 168: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.names = &nameList{protoDollar[1].str.toStringValueNode(), nil, nil} + } + case 169: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.names = &nameList{protoDollar[1].str.toStringValueNode(), protoDollar[2].b, protoDollar[3].names} + } + case 170: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.en = ast.NewEnumNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].b, protoDollar[4].enDecls, protoDollar[5].b) + } + case 171: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].enDecl != nil { + protoVAL.enDecls = append(protoDollar[1].enDecls, protoDollar[2].enDecl) + } else { + protoVAL.enDecls = protoDollar[1].enDecls + } + } + case 172: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].enDecl != nil { + protoVAL.enDecls = []ast.EnumElement{protoDollar[1].enDecl} + } else { + protoVAL.enDecls = nil + } + } + case 173: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.enDecls = nil + } + case 174: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.enDecl = protoDollar[1].opt + } + case 175: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.enDecl = protoDollar[1].env + } + case 176: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.enDecl = protoDollar[1].resvd + } + case 177: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.enDecl = ast.NewEmptyDeclNode(protoDollar[1].b) + } + case 178: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.enDecl = nil + } + case 179: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.enDecl = nil + } + case 180: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.env = ast.NewEnumValueNode(protoDollar[1].id, protoDollar[2].b, protoDollar[3].il, nil, protoDollar[4].b) + } + case 181: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.env = ast.NewEnumValueNode(protoDollar[1].id, protoDollar[2].b, protoDollar[3].il, protoDollar[4].cmpctOpts, protoDollar[5].b) + } + case 182: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.msg = ast.NewMessageNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].b, protoDollar[4].msgDecls, protoDollar[5].b) + } + case 183: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].msgDecl != nil { + protoVAL.msgDecls = append(protoDollar[1].msgDecls, protoDollar[2].msgDecl) + } else { + protoVAL.msgDecls = protoDollar[1].msgDecls + } + } + case 184: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].msgDecl != nil { + protoVAL.msgDecls = []ast.MessageElement{protoDollar[1].msgDecl} + } else { + protoVAL.msgDecls = nil + } + } + case 185: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.msgDecls = nil + } + case 186: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].fld + } + case 187: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].en + } + case 188: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].msg + } + case 189: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].extend + } + case 190: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].ext + } + case 191: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].grp + } + case 192: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].opt + } + case 193: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].oo + } + case 194: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].mapFld + } + case 195: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = protoDollar[1].resvd + } + case 196: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = ast.NewEmptyDeclNode(protoDollar[1].b) + } + case 197: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.msgDecl = nil + } + case 198: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.msgDecl = nil + } + case 199: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.extend = ast.NewExtendNode(protoDollar[1].id.ToKeyword(), protoDollar[2].tid, protoDollar[3].b, protoDollar[4].extDecls, protoDollar[5].b) + } + case 200: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].extDecl != nil { + protoVAL.extDecls = append(protoDollar[1].extDecls, protoDollar[2].extDecl) + } else { + protoVAL.extDecls = protoDollar[1].extDecls + } + } + case 201: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].extDecl != nil { + protoVAL.extDecls = []ast.ExtendElement{protoDollar[1].extDecl} + } else { + protoVAL.extDecls = nil + } + } + case 202: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.extDecls = nil + } + case 203: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.extDecl = protoDollar[1].fld + } + case 204: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.extDecl = protoDollar[1].grp + } + case 205: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.extDecl = nil + } + case 206: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.extDecl = nil + } + case 207: + protoDollar = protoS[protopt-5 : protopt+1] + { + protoVAL.svc = ast.NewServiceNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].b, protoDollar[4].svcDecls, protoDollar[5].b) + } + case 208: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].svcDecl != nil { + protoVAL.svcDecls = append(protoDollar[1].svcDecls, protoDollar[2].svcDecl) + } else { + protoVAL.svcDecls = protoDollar[1].svcDecls + } + } + case 209: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].svcDecl != nil { + protoVAL.svcDecls = []ast.ServiceElement{protoDollar[1].svcDecl} + } else { + protoVAL.svcDecls = nil + } + } + case 210: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.svcDecls = nil + } + case 211: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.svcDecl = protoDollar[1].opt + } + case 212: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.svcDecl = protoDollar[1].mtd + } + case 213: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.svcDecl = ast.NewEmptyDeclNode(protoDollar[1].b) + } + case 214: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.svcDecl = nil + } + case 215: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.svcDecl = nil + } + case 216: + protoDollar = protoS[protopt-6 : protopt+1] + { + protoVAL.mtd = ast.NewRPCNode(protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].rpcType, protoDollar[4].id.ToKeyword(), protoDollar[5].rpcType, protoDollar[6].b) + } + case 217: + protoDollar = protoS[protopt-8 : protopt+1] + { + protoVAL.mtd = ast.NewRPCNodeWithBody(protoDollar[1].id.ToKeyword(), protoDollar[2].id, protoDollar[3].rpcType, protoDollar[4].id.ToKeyword(), protoDollar[5].rpcType, protoDollar[6].b, protoDollar[7].rpcDecls, protoDollar[8].b) + } + case 218: + protoDollar = protoS[protopt-4 : protopt+1] + { + protoVAL.rpcType = ast.NewRPCTypeNode(protoDollar[1].b, protoDollar[2].id.ToKeyword(), protoDollar[3].tid, protoDollar[4].b) + } + case 219: + protoDollar = protoS[protopt-3 : protopt+1] + { + protoVAL.rpcType = ast.NewRPCTypeNode(protoDollar[1].b, nil, protoDollar[2].tid, protoDollar[3].b) + } + case 220: + protoDollar = protoS[protopt-2 : protopt+1] + { + if protoDollar[2].rpcDecl != nil { + protoVAL.rpcDecls = append(protoDollar[1].rpcDecls, protoDollar[2].rpcDecl) + } else { + protoVAL.rpcDecls = protoDollar[1].rpcDecls + } + } + case 221: + protoDollar = protoS[protopt-1 : protopt+1] + { + if protoDollar[1].rpcDecl != nil { + protoVAL.rpcDecls = []ast.RPCElement{protoDollar[1].rpcDecl} + } else { + protoVAL.rpcDecls = nil + } + } + case 222: + protoDollar = protoS[protopt-0 : protopt+1] + { + protoVAL.rpcDecls = nil + } + case 223: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rpcDecl = protoDollar[1].opt + } + case 224: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rpcDecl = ast.NewEmptyDeclNode(protoDollar[1].b) + } + case 225: + protoDollar = protoS[protopt-2 : protopt+1] + { + protoVAL.rpcDecl = nil + } + case 226: + protoDollar = protoS[protopt-1 : protopt+1] + { + protoVAL.rpcDecl = nil + } + } + goto protostack /* stack new state and value */ +} diff --git a/vendor/github.com/bufbuild/protocompile/parser/result.go b/vendor/github.com/bufbuild/protocompile/parser/result.go new file mode 100644 index 0000000..89afa2a --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/result.go @@ -0,0 +1,928 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import ( + "bytes" + "math" + "strings" + "unicode" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/reporter" +) + +type result struct { + file *ast.FileNode + proto *descriptorpb.FileDescriptorProto + + nodes map[proto.Message]ast.Node +} + +// ResultWithoutAST returns a parse result that has no AST. All methods for +// looking up AST nodes return a placeholder node that contains only the filename +// in position information. +func ResultWithoutAST(proto *descriptorpb.FileDescriptorProto) Result { + return &result{proto: proto} +} + +// ResultFromAST constructs a descriptor proto from the given AST. The returned +// result includes the descriptor proto and also contains an index that can be +// used to lookup AST node information for elements in the descriptor proto +// hierarchy. +// +// If validate is true, some basic validation is performed, to make sure the +// resulting descriptor proto is valid per protobuf rules and semantics. Only +// some language elements can be validated since some rules and semantics can +// only be checked after all symbols are all resolved, which happens in the +// linking step. +// +// The given handler is used to report any errors or warnings encountered. If any +// errors are reported, this function returns a non-nil error. +func ResultFromAST(file *ast.FileNode, validate bool, handler *reporter.Handler) (Result, error) { + filename := file.Name() + r := &result{file: file, nodes: map[proto.Message]ast.Node{}} + r.createFileDescriptor(filename, file, handler) + if validate { + validateBasic(r, handler) + } + // Now that we're done validating, we can set any missing labels to optional + // (we leave them absent in first pass if label was missing in source, so we + // can do validation on presence of label, but final descriptors are expected + // to always have them present). + fillInMissingLabels(r.proto) + return r, handler.Error() +} + +func (r *result) AST() *ast.FileNode { + return r.file +} + +func (r *result) FileDescriptorProto() *descriptorpb.FileDescriptorProto { + return r.proto +} + +func (r *result) createFileDescriptor(filename string, file *ast.FileNode, handler *reporter.Handler) { + fd := &descriptorpb.FileDescriptorProto{Name: proto.String(filename)} + r.proto = fd + + r.putFileNode(fd, file) + + isProto3 := false + if file.Syntax != nil { + if file.Syntax.Syntax.AsString() == "proto3" { + isProto3 = true + } else if file.Syntax.Syntax.AsString() != "proto2" { + nodeInfo := file.NodeInfo(file.Syntax.Syntax) + if handler.HandleErrorf(nodeInfo.Start(), `syntax value must be "proto2" or "proto3"`) != nil { + return + } + } + + // proto2 is the default, so no need to set unless proto3 + if isProto3 { + fd.Syntax = proto.String(file.Syntax.Syntax.AsString()) + } + } else { + nodeInfo := file.NodeInfo(file) + handler.HandleWarningWithPos(nodeInfo.Start(), ErrNoSyntax) + } + + for _, decl := range file.Decls { + if handler.ReporterError() != nil { + return + } + switch decl := decl.(type) { + case *ast.EnumNode: + fd.EnumType = append(fd.EnumType, r.asEnumDescriptor(decl, handler)) + case *ast.ExtendNode: + r.addExtensions(decl, &fd.Extension, &fd.MessageType, isProto3, handler, 0) + case *ast.ImportNode: + index := len(fd.Dependency) + fd.Dependency = append(fd.Dependency, decl.Name.AsString()) + if decl.Public != nil { + fd.PublicDependency = append(fd.PublicDependency, int32(index)) + } else if decl.Weak != nil { + fd.WeakDependency = append(fd.WeakDependency, int32(index)) + } + case *ast.MessageNode: + fd.MessageType = append(fd.MessageType, r.asMessageDescriptor(decl, isProto3, handler, 1)) + case *ast.OptionNode: + if fd.Options == nil { + fd.Options = &descriptorpb.FileOptions{} + } + fd.Options.UninterpretedOption = append(fd.Options.UninterpretedOption, r.asUninterpretedOption(decl)) + case *ast.ServiceNode: + fd.Service = append(fd.Service, r.asServiceDescriptor(decl)) + case *ast.PackageNode: + if fd.Package != nil { + nodeInfo := file.NodeInfo(decl) + if handler.HandleErrorf(nodeInfo.Start(), "files should have only one package declaration") != nil { + return + } + } + pkgName := string(decl.Name.AsIdentifier()) + if len(pkgName) >= 512 { + nodeInfo := file.NodeInfo(decl.Name) + if handler.HandleErrorf(nodeInfo.Start(), "package name (with whitespace removed) must be less than 512 characters long") != nil { + return + } + } + if strings.Count(pkgName, ".") > 100 { + nodeInfo := file.NodeInfo(decl.Name) + if handler.HandleErrorf(nodeInfo.Start(), "package name may not contain more than 100 periods") != nil { + return + } + } + fd.Package = proto.String(string(decl.Name.AsIdentifier())) + } + } +} + +func (r *result) asUninterpretedOptions(nodes []*ast.OptionNode) []*descriptorpb.UninterpretedOption { + if len(nodes) == 0 { + return nil + } + opts := make([]*descriptorpb.UninterpretedOption, len(nodes)) + for i, n := range nodes { + opts[i] = r.asUninterpretedOption(n) + } + return opts +} + +func (r *result) asUninterpretedOption(node *ast.OptionNode) *descriptorpb.UninterpretedOption { + opt := &descriptorpb.UninterpretedOption{Name: r.asUninterpretedOptionName(node.Name.Parts)} + r.putOptionNode(opt, node) + + switch val := node.Val.Value().(type) { + case bool: + if val { + opt.IdentifierValue = proto.String("true") + } else { + opt.IdentifierValue = proto.String("false") + } + case int64: + opt.NegativeIntValue = proto.Int64(val) + case uint64: + opt.PositiveIntValue = proto.Uint64(val) + case float64: + opt.DoubleValue = proto.Float64(val) + case string: + opt.StringValue = []byte(val) + case ast.Identifier: + opt.IdentifierValue = proto.String(string(val)) + default: + // the grammar does not allow arrays here, so the only possible case + // left should be []*ast.MessageFieldNode, which corresponds to an + // *ast.MessageLiteralNode + if n, ok := node.Val.(*ast.MessageLiteralNode); ok { + var buf bytes.Buffer + for i, el := range n.Elements { + flattenNode(r.file, el, &buf) + if len(n.Seps) > i && n.Seps[i] != nil { + buf.WriteRune(' ') + buf.WriteRune(n.Seps[i].Rune) + } + } + aggStr := buf.String() + opt.AggregateValue = proto.String(aggStr) + } + // TODO: else that reports an error or panics?? + } + return opt +} + +func flattenNode(f *ast.FileNode, n ast.Node, buf *bytes.Buffer) { + if cn, ok := n.(ast.CompositeNode); ok { + for _, ch := range cn.Children() { + flattenNode(f, ch, buf) + } + return + } + + if buf.Len() > 0 { + buf.WriteRune(' ') + } + buf.WriteString(f.NodeInfo(n).RawText()) +} + +func (r *result) asUninterpretedOptionName(parts []*ast.FieldReferenceNode) []*descriptorpb.UninterpretedOption_NamePart { + ret := make([]*descriptorpb.UninterpretedOption_NamePart, len(parts)) + for i, part := range parts { + np := &descriptorpb.UninterpretedOption_NamePart{ + NamePart: proto.String(string(part.Name.AsIdentifier())), + IsExtension: proto.Bool(part.IsExtension()), + } + r.putOptionNamePartNode(np, part) + ret[i] = np + } + return ret +} + +func (r *result) addExtensions(ext *ast.ExtendNode, flds *[]*descriptorpb.FieldDescriptorProto, msgs *[]*descriptorpb.DescriptorProto, isProto3 bool, handler *reporter.Handler, depth int) { + extendee := string(ext.Extendee.AsIdentifier()) + count := 0 + for _, decl := range ext.Decls { + switch decl := decl.(type) { + case *ast.FieldNode: + count++ + // use higher limit since we don't know yet whether extendee is messageset wire format + fd := r.asFieldDescriptor(decl, internal.MaxTag, isProto3, handler) + fd.Extendee = proto.String(extendee) + *flds = append(*flds, fd) + case *ast.GroupNode: + count++ + // ditto: use higher limit right now + fd, md := r.asGroupDescriptors(decl, isProto3, internal.MaxTag, handler, depth+1) + fd.Extendee = proto.String(extendee) + *flds = append(*flds, fd) + *msgs = append(*msgs, md) + } + } + if count == 0 { + nodeInfo := r.file.NodeInfo(ext) + _ = handler.HandleErrorf(nodeInfo.Start(), "extend sections must define at least one extension") + } +} + +func asLabel(lbl *ast.FieldLabel) *descriptorpb.FieldDescriptorProto_Label { + if !lbl.IsPresent() { + return nil + } + switch { + case lbl.Repeated: + return descriptorpb.FieldDescriptorProto_LABEL_REPEATED.Enum() + case lbl.Required: + return descriptorpb.FieldDescriptorProto_LABEL_REQUIRED.Enum() + default: + return descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL.Enum() + } +} + +func (r *result) asFieldDescriptor(node *ast.FieldNode, maxTag int32, isProto3 bool, handler *reporter.Handler) *descriptorpb.FieldDescriptorProto { + tag := node.Tag.Val + if err := r.checkTag(node.Tag, tag, maxTag); err != nil { + _ = handler.HandleError(err) + } + fd := newFieldDescriptor(node.Name.Val, string(node.FldType.AsIdentifier()), int32(tag), asLabel(&node.Label)) + r.putFieldNode(fd, node) + if opts := node.Options.GetElements(); len(opts) > 0 { + fd.Options = &descriptorpb.FieldOptions{UninterpretedOption: r.asUninterpretedOptions(opts)} + } + if isProto3 && fd.Label != nil && fd.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL { + fd.Proto3Optional = proto.Bool(true) + } + return fd +} + +var fieldTypes = map[string]descriptorpb.FieldDescriptorProto_Type{ + "double": descriptorpb.FieldDescriptorProto_TYPE_DOUBLE, + "float": descriptorpb.FieldDescriptorProto_TYPE_FLOAT, + "int32": descriptorpb.FieldDescriptorProto_TYPE_INT32, + "int64": descriptorpb.FieldDescriptorProto_TYPE_INT64, + "uint32": descriptorpb.FieldDescriptorProto_TYPE_UINT32, + "uint64": descriptorpb.FieldDescriptorProto_TYPE_UINT64, + "sint32": descriptorpb.FieldDescriptorProto_TYPE_SINT32, + "sint64": descriptorpb.FieldDescriptorProto_TYPE_SINT64, + "fixed32": descriptorpb.FieldDescriptorProto_TYPE_FIXED32, + "fixed64": descriptorpb.FieldDescriptorProto_TYPE_FIXED64, + "sfixed32": descriptorpb.FieldDescriptorProto_TYPE_SFIXED32, + "sfixed64": descriptorpb.FieldDescriptorProto_TYPE_SFIXED64, + "bool": descriptorpb.FieldDescriptorProto_TYPE_BOOL, + "string": descriptorpb.FieldDescriptorProto_TYPE_STRING, + "bytes": descriptorpb.FieldDescriptorProto_TYPE_BYTES, +} + +func newFieldDescriptor(name string, fieldType string, tag int32, lbl *descriptorpb.FieldDescriptorProto_Label) *descriptorpb.FieldDescriptorProto { + fd := &descriptorpb.FieldDescriptorProto{ + Name: proto.String(name), + JsonName: proto.String(internal.JSONName(name)), + Number: proto.Int32(tag), + Label: lbl, + } + t, ok := fieldTypes[fieldType] + if ok { + fd.Type = t.Enum() + } else { + // NB: we don't have enough info to determine whether this is an enum + // or a message type, so we'll leave Type nil and set it later + // (during linking) + fd.TypeName = proto.String(fieldType) + } + return fd +} + +func (r *result) asGroupDescriptors(group *ast.GroupNode, isProto3 bool, maxTag int32, handler *reporter.Handler, depth int) (*descriptorpb.FieldDescriptorProto, *descriptorpb.DescriptorProto) { + tag := group.Tag.Val + if err := r.checkTag(group.Tag, tag, maxTag); err != nil { + _ = handler.HandleError(err) + } + if !unicode.IsUpper(rune(group.Name.Val[0])) { + nameNodeInfo := r.file.NodeInfo(group.Name) + _ = handler.HandleErrorf(nameNodeInfo.Start(), "group %s should have a name that starts with a capital letter", group.Name.Val) + } + fieldName := strings.ToLower(group.Name.Val) + fd := &descriptorpb.FieldDescriptorProto{ + Name: proto.String(fieldName), + JsonName: proto.String(internal.JSONName(fieldName)), + Number: proto.Int32(int32(tag)), + Label: asLabel(&group.Label), + Type: descriptorpb.FieldDescriptorProto_TYPE_GROUP.Enum(), + TypeName: proto.String(group.Name.Val), + } + r.putFieldNode(fd, group) + if opts := group.Options.GetElements(); len(opts) > 0 { + fd.Options = &descriptorpb.FieldOptions{UninterpretedOption: r.asUninterpretedOptions(opts)} + } + md := &descriptorpb.DescriptorProto{Name: proto.String(group.Name.Val)} + r.putMessageNode(md, group) + // don't bother processing body if we've exceeded depth + if r.checkDepth(depth, group, handler) { + r.addMessageBody(md, &group.MessageBody, isProto3, handler, depth) + } + return fd, md +} + +func (r *result) asMapDescriptors(mapField *ast.MapFieldNode, isProto3 bool, maxTag int32, handler *reporter.Handler, depth int) (*descriptorpb.FieldDescriptorProto, *descriptorpb.DescriptorProto) { + tag := mapField.Tag.Val + if err := r.checkTag(mapField.Tag, tag, maxTag); err != nil { + _ = handler.HandleError(err) + } + r.checkDepth(depth, mapField, handler) + var lbl *descriptorpb.FieldDescriptorProto_Label + if !isProto3 { + lbl = descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL.Enum() + } + keyFd := newFieldDescriptor("key", mapField.MapType.KeyType.Val, 1, lbl) + r.putFieldNode(keyFd, mapField.KeyField()) + valFd := newFieldDescriptor("value", string(mapField.MapType.ValueType.AsIdentifier()), 2, lbl) + r.putFieldNode(valFd, mapField.ValueField()) + entryName := internal.InitCap(internal.JSONName(mapField.Name.Val)) + "Entry" + fd := newFieldDescriptor(mapField.Name.Val, entryName, int32(tag), descriptorpb.FieldDescriptorProto_LABEL_REPEATED.Enum()) + if opts := mapField.Options.GetElements(); len(opts) > 0 { + fd.Options = &descriptorpb.FieldOptions{UninterpretedOption: r.asUninterpretedOptions(opts)} + } + r.putFieldNode(fd, mapField) + md := &descriptorpb.DescriptorProto{ + Name: proto.String(entryName), + Options: &descriptorpb.MessageOptions{MapEntry: proto.Bool(true)}, + Field: []*descriptorpb.FieldDescriptorProto{keyFd, valFd}, + } + r.putMessageNode(md, mapField) + return fd, md +} + +func (r *result) asExtensionRanges(node *ast.ExtensionRangeNode, maxTag int32, handler *reporter.Handler) []*descriptorpb.DescriptorProto_ExtensionRange { + opts := r.asUninterpretedOptions(node.Options.GetElements()) + ers := make([]*descriptorpb.DescriptorProto_ExtensionRange, len(node.Ranges)) + for i, rng := range node.Ranges { + start, end := r.getRangeBounds(rng, 1, maxTag, handler) + er := &descriptorpb.DescriptorProto_ExtensionRange{ + Start: proto.Int32(start), + End: proto.Int32(end + 1), + } + if len(opts) > 0 { + er.Options = &descriptorpb.ExtensionRangeOptions{UninterpretedOption: opts} + } + r.putExtensionRangeNode(er, rng) + ers[i] = er + } + return ers +} + +func (r *result) asEnumValue(ev *ast.EnumValueNode, handler *reporter.Handler) *descriptorpb.EnumValueDescriptorProto { + num, ok := ast.AsInt32(ev.Number, math.MinInt32, math.MaxInt32) + if !ok { + numberNodeInfo := r.file.NodeInfo(ev.Number) + _ = handler.HandleErrorf(numberNodeInfo.Start(), "value %d is out of range: should be between %d and %d", ev.Number.Value(), math.MinInt32, math.MaxInt32) + } + evd := &descriptorpb.EnumValueDescriptorProto{Name: proto.String(ev.Name.Val), Number: proto.Int32(num)} + r.putEnumValueNode(evd, ev) + if opts := ev.Options.GetElements(); len(opts) > 0 { + evd.Options = &descriptorpb.EnumValueOptions{UninterpretedOption: r.asUninterpretedOptions(opts)} + } + return evd +} + +func (r *result) asMethodDescriptor(node *ast.RPCNode) *descriptorpb.MethodDescriptorProto { + md := &descriptorpb.MethodDescriptorProto{ + Name: proto.String(node.Name.Val), + InputType: proto.String(string(node.Input.MessageType.AsIdentifier())), + OutputType: proto.String(string(node.Output.MessageType.AsIdentifier())), + } + r.putMethodNode(md, node) + if node.Input.Stream != nil { + md.ClientStreaming = proto.Bool(true) + } + if node.Output.Stream != nil { + md.ServerStreaming = proto.Bool(true) + } + // protoc always adds a MethodOptions if there are brackets + // We do the same to match protoc as closely as possible + // https://github.com/protocolbuffers/protobuf/blob/0c3f43a6190b77f1f68b7425d1b7e1a8257a8d0c/src/google/protobuf/compiler/parser.cc#L2152 + if node.OpenBrace != nil { + md.Options = &descriptorpb.MethodOptions{} + for _, decl := range node.Decls { + if option, ok := decl.(*ast.OptionNode); ok { + md.Options.UninterpretedOption = append(md.Options.UninterpretedOption, r.asUninterpretedOption(option)) + } + } + } + return md +} + +func (r *result) asEnumDescriptor(en *ast.EnumNode, handler *reporter.Handler) *descriptorpb.EnumDescriptorProto { + ed := &descriptorpb.EnumDescriptorProto{Name: proto.String(en.Name.Val)} + r.putEnumNode(ed, en) + for _, decl := range en.Decls { + switch decl := decl.(type) { + case *ast.OptionNode: + if ed.Options == nil { + ed.Options = &descriptorpb.EnumOptions{} + } + ed.Options.UninterpretedOption = append(ed.Options.UninterpretedOption, r.asUninterpretedOption(decl)) + case *ast.EnumValueNode: + ed.Value = append(ed.Value, r.asEnumValue(decl, handler)) + case *ast.ReservedNode: + for _, n := range decl.Names { + ed.ReservedName = append(ed.ReservedName, n.AsString()) + } + for _, rng := range decl.Ranges { + ed.ReservedRange = append(ed.ReservedRange, r.asEnumReservedRange(rng, handler)) + } + } + } + return ed +} + +func (r *result) asEnumReservedRange(rng *ast.RangeNode, handler *reporter.Handler) *descriptorpb.EnumDescriptorProto_EnumReservedRange { + start, end := r.getRangeBounds(rng, math.MinInt32, math.MaxInt32, handler) + rr := &descriptorpb.EnumDescriptorProto_EnumReservedRange{ + Start: proto.Int32(start), + End: proto.Int32(end), + } + r.putEnumReservedRangeNode(rr, rng) + return rr +} + +func (r *result) asMessageDescriptor(node *ast.MessageNode, isProto3 bool, handler *reporter.Handler, depth int) *descriptorpb.DescriptorProto { + msgd := &descriptorpb.DescriptorProto{Name: proto.String(node.Name.Val)} + r.putMessageNode(msgd, node) + // don't bother processing body if we've exceeded depth + if r.checkDepth(depth, node, handler) { + r.addMessageBody(msgd, &node.MessageBody, isProto3, handler, depth) + } + return msgd +} + +func (r *result) checkDepth(depth int, node ast.MessageDeclNode, handler *reporter.Handler) bool { + if depth < 32 { + return true + } + n := ast.Node(node) + if grp, ok := n.(*ast.GroupNode); ok { + // pinpoint the group keyword if the source is a group + n = grp.Keyword + } + _ = handler.HandleErrorf(r.file.NodeInfo(n).Start(), "message nesting depth must be less than 32") + return false +} + +func (r *result) addMessageBody(msgd *descriptorpb.DescriptorProto, body *ast.MessageBody, isProto3 bool, handler *reporter.Handler, depth int) { + // first process any options + for _, decl := range body.Decls { + if opt, ok := decl.(*ast.OptionNode); ok { + if msgd.Options == nil { + msgd.Options = &descriptorpb.MessageOptions{} + } + msgd.Options.UninterpretedOption = append(msgd.Options.UninterpretedOption, r.asUninterpretedOption(opt)) + } + } + + // now that we have options, we can see if this uses messageset wire format, which + // impacts how we validate tag numbers in any fields in the message + maxTag := int32(internal.MaxNormalTag) + messageSetOpt, err := r.isMessageSetWireFormat("message "+msgd.GetName(), msgd, handler) + if err != nil { + return + } else if messageSetOpt != nil { + if isProto3 { + node := r.OptionNode(messageSetOpt) + nodeInfo := r.file.NodeInfo(node) + _ = handler.HandleErrorf(nodeInfo.Start(), "messages with message-set wire format are not allowed with proto3 syntax") + } + maxTag = internal.MaxTag // higher limit for messageset wire format + } + + rsvdNames := map[string]int{} + + // now we can process the rest + for _, decl := range body.Decls { + switch decl := decl.(type) { + case *ast.EnumNode: + msgd.EnumType = append(msgd.EnumType, r.asEnumDescriptor(decl, handler)) + case *ast.ExtendNode: + r.addExtensions(decl, &msgd.Extension, &msgd.NestedType, isProto3, handler, depth) + case *ast.ExtensionRangeNode: + msgd.ExtensionRange = append(msgd.ExtensionRange, r.asExtensionRanges(decl, maxTag, handler)...) + case *ast.FieldNode: + fd := r.asFieldDescriptor(decl, maxTag, isProto3, handler) + msgd.Field = append(msgd.Field, fd) + case *ast.MapFieldNode: + fd, md := r.asMapDescriptors(decl, isProto3, maxTag, handler, depth+1) + msgd.Field = append(msgd.Field, fd) + msgd.NestedType = append(msgd.NestedType, md) + case *ast.GroupNode: + fd, md := r.asGroupDescriptors(decl, isProto3, maxTag, handler, depth+1) + msgd.Field = append(msgd.Field, fd) + msgd.NestedType = append(msgd.NestedType, md) + case *ast.OneOfNode: + oodIndex := len(msgd.OneofDecl) + ood := &descriptorpb.OneofDescriptorProto{Name: proto.String(decl.Name.Val)} + r.putOneOfNode(ood, decl) + msgd.OneofDecl = append(msgd.OneofDecl, ood) + ooFields := 0 + for _, oodecl := range decl.Decls { + switch oodecl := oodecl.(type) { + case *ast.OptionNode: + if ood.Options == nil { + ood.Options = &descriptorpb.OneofOptions{} + } + ood.Options.UninterpretedOption = append(ood.Options.UninterpretedOption, r.asUninterpretedOption(oodecl)) + case *ast.FieldNode: + fd := r.asFieldDescriptor(oodecl, maxTag, isProto3, handler) + fd.OneofIndex = proto.Int32(int32(oodIndex)) + msgd.Field = append(msgd.Field, fd) + ooFields++ + case *ast.GroupNode: + fd, md := r.asGroupDescriptors(oodecl, isProto3, maxTag, handler, depth+1) + fd.OneofIndex = proto.Int32(int32(oodIndex)) + msgd.Field = append(msgd.Field, fd) + msgd.NestedType = append(msgd.NestedType, md) + ooFields++ + } + } + if ooFields == 0 { + declNodeInfo := r.file.NodeInfo(decl) + _ = handler.HandleErrorf(declNodeInfo.Start(), "oneof must contain at least one field") + } + case *ast.MessageNode: + msgd.NestedType = append(msgd.NestedType, r.asMessageDescriptor(decl, isProto3, handler, depth+1)) + case *ast.ReservedNode: + for _, n := range decl.Names { + count := rsvdNames[n.AsString()] + if count == 1 { // already seen + nameNodeInfo := r.file.NodeInfo(n) + _ = handler.HandleErrorf(nameNodeInfo.Start(), "name %q is reserved multiple times", n.AsString()) + } + rsvdNames[n.AsString()] = count + 1 + msgd.ReservedName = append(msgd.ReservedName, n.AsString()) + } + for _, rng := range decl.Ranges { + msgd.ReservedRange = append(msgd.ReservedRange, r.asMessageReservedRange(rng, maxTag, handler)) + } + } + } + + if messageSetOpt != nil { + if len(msgd.Field) > 0 { + node := r.FieldNode(msgd.Field[0]) + nodeInfo := r.file.NodeInfo(node) + _ = handler.HandleErrorf(nodeInfo.Start(), "messages with message-set wire format cannot contain non-extension fields") + } + if len(msgd.ExtensionRange) == 0 { + node := r.OptionNode(messageSetOpt) + nodeInfo := r.file.NodeInfo(node) + _ = handler.HandleErrorf(nodeInfo.Start(), "messages with message-set wire format must contain at least one extension range") + } + } + + // process any proto3_optional fields + if isProto3 { + r.processProto3OptionalFields(msgd) + } +} + +func (r *result) isMessageSetWireFormat(scope string, md *descriptorpb.DescriptorProto, handler *reporter.Handler) (*descriptorpb.UninterpretedOption, error) { + uo := md.GetOptions().GetUninterpretedOption() + index, err := internal.FindOption(r, handler, scope, uo, "message_set_wire_format") + if err != nil { + return nil, err + } + if index == -1 { + // no such option + return nil, nil + } + + opt := uo[index] + + switch opt.GetIdentifierValue() { + case "true": + return opt, nil + case "false": + return nil, nil + default: + optNode := r.OptionNode(opt) + optNodeInfo := r.file.NodeInfo(optNode.GetValue()) + return nil, handler.HandleErrorf(optNodeInfo.Start(), "%s: expecting bool value for message_set_wire_format option", scope) + } +} + +func (r *result) asMessageReservedRange(rng *ast.RangeNode, maxTag int32, handler *reporter.Handler) *descriptorpb.DescriptorProto_ReservedRange { + start, end := r.getRangeBounds(rng, 1, maxTag, handler) + rr := &descriptorpb.DescriptorProto_ReservedRange{ + Start: proto.Int32(start), + End: proto.Int32(end + 1), + } + r.putMessageReservedRangeNode(rr, rng) + return rr +} + +func (r *result) getRangeBounds(rng *ast.RangeNode, minVal, maxVal int32, handler *reporter.Handler) (int32, int32) { + checkOrder := true + start, ok := rng.StartValueAsInt32(minVal, maxVal) + if !ok { + checkOrder = false + startValNodeInfo := r.file.NodeInfo(rng.StartVal) + _ = handler.HandleErrorf(startValNodeInfo.Start(), "range start %d is out of range: should be between %d and %d", rng.StartValue(), minVal, maxVal) + } + + end, ok := rng.EndValueAsInt32(minVal, maxVal) + if !ok { + checkOrder = false + if rng.EndVal != nil { + endValNodeInfo := r.file.NodeInfo(rng.EndVal) + _ = handler.HandleErrorf(endValNodeInfo.Start(), "range end %d is out of range: should be between %d and %d", rng.EndValue(), minVal, maxVal) + } + } + + if checkOrder && start > end { + rangeStartNodeInfo := r.file.NodeInfo(rng.RangeStart()) + _ = handler.HandleErrorf(rangeStartNodeInfo.Start(), "range, %d to %d, is invalid: start must be <= end", start, end) + } + + return start, end +} + +func (r *result) asServiceDescriptor(svc *ast.ServiceNode) *descriptorpb.ServiceDescriptorProto { + sd := &descriptorpb.ServiceDescriptorProto{Name: proto.String(svc.Name.Val)} + r.putServiceNode(sd, svc) + for _, decl := range svc.Decls { + switch decl := decl.(type) { + case *ast.OptionNode: + if sd.Options == nil { + sd.Options = &descriptorpb.ServiceOptions{} + } + sd.Options.UninterpretedOption = append(sd.Options.UninterpretedOption, r.asUninterpretedOption(decl)) + case *ast.RPCNode: + sd.Method = append(sd.Method, r.asMethodDescriptor(decl)) + } + } + return sd +} + +func (r *result) checkTag(n ast.Node, v uint64, maxTag int32) error { + switch { + case v < 1: + return reporter.Errorf(r.file.NodeInfo(n).Start(), "tag number %d must be greater than zero", v) + case v > uint64(maxTag): + return reporter.Errorf(r.file.NodeInfo(n).Start(), "tag number %d is higher than max allowed tag number (%d)", v, maxTag) + case v >= internal.SpecialReservedStart && v <= internal.SpecialReservedEnd: + return reporter.Errorf(r.file.NodeInfo(n).Start(), "tag number %d is in disallowed reserved range %d-%d", v, internal.SpecialReservedStart, internal.SpecialReservedEnd) + default: + return nil + } +} + +// processProto3OptionalFields adds synthetic oneofs to the given message descriptor +// for each proto3 optional field. It also updates the fields to have the correct +// oneof index reference. +func (r *result) processProto3OptionalFields(msgd *descriptorpb.DescriptorProto) { + // add synthetic oneofs to the given message descriptor for each proto3 + // optional field, and update each field to have correct oneof index + var allNames map[string]struct{} + for _, fd := range msgd.Field { + if fd.GetProto3Optional() { + // lazy init the set of all names + if allNames == nil { + allNames = map[string]struct{}{} + for _, fd := range msgd.Field { + allNames[fd.GetName()] = struct{}{} + } + for _, od := range msgd.OneofDecl { + allNames[od.GetName()] = struct{}{} + } + // NB: protoc only considers names of other fields and oneofs + // when computing the synthetic oneof name. But that feels like + // a bug, since it means it could generate a name that conflicts + // with some other symbol defined in the message. If it's decided + // that's NOT a bug and is desirable, then we should remove the + // following four loops to mimic protoc's behavior. + for _, fd := range msgd.Extension { + allNames[fd.GetName()] = struct{}{} + } + for _, ed := range msgd.EnumType { + allNames[ed.GetName()] = struct{}{} + for _, evd := range ed.Value { + allNames[evd.GetName()] = struct{}{} + } + } + for _, fd := range msgd.NestedType { + allNames[fd.GetName()] = struct{}{} + } + } + + // Compute a name for the synthetic oneof. This uses the same + // algorithm as used in protoc: + // https://github.com/protocolbuffers/protobuf/blob/74ad62759e0a9b5a21094f3fb9bb4ebfaa0d1ab8/src/google/protobuf/compiler/parser.cc#L785-L803 + ooName := fd.GetName() + if !strings.HasPrefix(ooName, "_") { + ooName = "_" + ooName + } + for { + _, ok := allNames[ooName] + if !ok { + // found a unique name + allNames[ooName] = struct{}{} + break + } + ooName = "X" + ooName + } + + fd.OneofIndex = proto.Int32(int32(len(msgd.OneofDecl))) + ood := &descriptorpb.OneofDescriptorProto{Name: proto.String(ooName)} + msgd.OneofDecl = append(msgd.OneofDecl, ood) + ooident := r.FieldNode(fd).(*ast.FieldNode) //nolint:errcheck + r.putOneOfNode(ood, ast.NewSyntheticOneOf(ooident)) + } + } +} + +func (r *result) Node(m proto.Message) ast.Node { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[m] +} + +func (r *result) FileNode() ast.FileDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[r.proto].(ast.FileDeclNode) +} + +func (r *result) OptionNode(o *descriptorpb.UninterpretedOption) ast.OptionDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[o].(ast.OptionDeclNode) +} + +func (r *result) OptionNamePartNode(o *descriptorpb.UninterpretedOption_NamePart) ast.Node { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[o] +} + +func (r *result) MessageNode(m *descriptorpb.DescriptorProto) ast.MessageDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[m].(ast.MessageDeclNode) +} + +func (r *result) FieldNode(f *descriptorpb.FieldDescriptorProto) ast.FieldDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[f].(ast.FieldDeclNode) +} + +func (r *result) OneOfNode(o *descriptorpb.OneofDescriptorProto) ast.Node { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[o] +} + +func (r *result) ExtensionRangeNode(e *descriptorpb.DescriptorProto_ExtensionRange) ast.RangeDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[e].(ast.RangeDeclNode) +} + +func (r *result) MessageReservedRangeNode(rr *descriptorpb.DescriptorProto_ReservedRange) ast.RangeDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[rr].(ast.RangeDeclNode) +} + +func (r *result) EnumNode(e *descriptorpb.EnumDescriptorProto) ast.Node { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[e] +} + +func (r *result) EnumValueNode(e *descriptorpb.EnumValueDescriptorProto) ast.EnumValueDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[e].(ast.EnumValueDeclNode) +} + +func (r *result) EnumReservedRangeNode(rr *descriptorpb.EnumDescriptorProto_EnumReservedRange) ast.RangeDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[rr].(ast.RangeDeclNode) +} + +func (r *result) ServiceNode(s *descriptorpb.ServiceDescriptorProto) ast.Node { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[s] +} + +func (r *result) MethodNode(m *descriptorpb.MethodDescriptorProto) ast.RPCDeclNode { + if r.nodes == nil { + return ast.NewNoSourceNode(r.proto.GetName()) + } + return r.nodes[m].(ast.RPCDeclNode) +} + +func (r *result) putFileNode(f *descriptorpb.FileDescriptorProto, n *ast.FileNode) { + r.nodes[f] = n +} + +func (r *result) putOptionNode(o *descriptorpb.UninterpretedOption, n *ast.OptionNode) { + r.nodes[o] = n +} + +func (r *result) putOptionNamePartNode(o *descriptorpb.UninterpretedOption_NamePart, n *ast.FieldReferenceNode) { + r.nodes[o] = n +} + +func (r *result) putMessageNode(m *descriptorpb.DescriptorProto, n ast.MessageDeclNode) { + r.nodes[m] = n +} + +func (r *result) putFieldNode(f *descriptorpb.FieldDescriptorProto, n ast.FieldDeclNode) { + r.nodes[f] = n +} + +func (r *result) putOneOfNode(o *descriptorpb.OneofDescriptorProto, n ast.OneOfDeclNode) { + r.nodes[o] = n +} + +func (r *result) putExtensionRangeNode(e *descriptorpb.DescriptorProto_ExtensionRange, n *ast.RangeNode) { + r.nodes[e] = n +} + +func (r *result) putMessageReservedRangeNode(rr *descriptorpb.DescriptorProto_ReservedRange, n *ast.RangeNode) { + r.nodes[rr] = n +} + +func (r *result) putEnumNode(e *descriptorpb.EnumDescriptorProto, n *ast.EnumNode) { + r.nodes[e] = n +} + +func (r *result) putEnumValueNode(e *descriptorpb.EnumValueDescriptorProto, n *ast.EnumValueNode) { + r.nodes[e] = n +} + +func (r *result) putEnumReservedRangeNode(rr *descriptorpb.EnumDescriptorProto_EnumReservedRange, n *ast.RangeNode) { + r.nodes[rr] = n +} + +func (r *result) putServiceNode(s *descriptorpb.ServiceDescriptorProto, n *ast.ServiceNode) { + r.nodes[s] = n +} + +func (r *result) putMethodNode(m *descriptorpb.MethodDescriptorProto, n *ast.RPCNode) { + r.nodes[m] = n +} + +// NB: If we ever add other put*Node methods, to index other kinds of elements in the descriptor +// proto hierarchy, we need to update the index recreation logic in clone.go, too. diff --git a/vendor/github.com/bufbuild/protocompile/parser/validate.go b/vendor/github.com/bufbuild/protocompile/parser/validate.go new file mode 100644 index 0000000..494a00e --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/parser/validate.go @@ -0,0 +1,499 @@ +// Copyright 2020-2022 Buf Technologies, 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 parser + +import ( + "fmt" + "sort" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/reporter" + "github.com/bufbuild/protocompile/walk" +) + +func validateBasic(res *result, handler *reporter.Handler) { + fd := res.proto + isProto3 := fd.GetSyntax() == "proto3" + + if err := validateImports(res, handler); err != nil { + return + } + + _ = walk.DescriptorProtos(fd, + func(name protoreflect.FullName, d proto.Message) error { + switch d := d.(type) { + case *descriptorpb.DescriptorProto: + if err := validateMessage(res, isProto3, name, d, handler); err != nil { + // exit func is not called when enter returns error + return err + } + case *descriptorpb.EnumDescriptorProto: + if err := validateEnum(res, isProto3, name, d, handler); err != nil { + return err + } + case *descriptorpb.FieldDescriptorProto: + if err := validateField(res, isProto3, name, d, handler); err != nil { + return err + } + } + return nil + }) +} + +func validateImports(res *result, handler *reporter.Handler) error { + fileNode := res.file + if fileNode == nil { + return nil + } + imports := make(map[string]ast.SourcePos) + for _, decl := range fileNode.Decls { + imp, ok := decl.(*ast.ImportNode) + if !ok { + continue + } + startPos := fileNode.NodeInfo(decl).Start() + name := imp.Name.AsString() + if prev, ok := imports[name]; ok { + return handler.HandleErrorf(startPos, "%q was already imported at %v", name, prev) + } + imports[name] = startPos + } + return nil +} + +func validateMessage(res *result, isProto3 bool, name protoreflect.FullName, md *descriptorpb.DescriptorProto, handler *reporter.Handler) error { + scope := fmt.Sprintf("message %s", name) + + if isProto3 && len(md.ExtensionRange) > 0 { + n := res.ExtensionRangeNode(md.ExtensionRange[0]) + nInfo := res.file.NodeInfo(n) + if err := handler.HandleErrorf(nInfo.Start(), "%s: extension ranges are not allowed in proto3", scope); err != nil { + return err + } + } + + if index, err := internal.FindOption(res, handler, scope, md.Options.GetUninterpretedOption(), "map_entry"); err != nil { + return err + } else if index >= 0 { + opt := md.Options.UninterpretedOption[index] + optn := res.OptionNode(opt) + md.Options.UninterpretedOption = internal.RemoveOption(md.Options.UninterpretedOption, index) + valid := false + if opt.IdentifierValue != nil { + if opt.GetIdentifierValue() == "true" { + valid = true + optionNodeInfo := res.file.NodeInfo(optn.GetValue()) + if err := handler.HandleErrorf(optionNodeInfo.Start(), "%s: map_entry option should not be set explicitly; use map type instead", scope); err != nil { + return err + } + } else if opt.GetIdentifierValue() == "false" { + valid = true + md.Options.MapEntry = proto.Bool(false) + } + } + if !valid { + optionNodeInfo := res.file.NodeInfo(optn.GetValue()) + if err := handler.HandleErrorf(optionNodeInfo.Start(), "%s: expecting bool value for map_entry option", scope); err != nil { + return err + } + } + } + + // reserved ranges should not overlap + rsvd := make(tagRanges, len(md.ReservedRange)) + for i, r := range md.ReservedRange { + n := res.MessageReservedRangeNode(r) + rsvd[i] = tagRange{start: r.GetStart(), end: r.GetEnd(), node: n} + } + sort.Sort(rsvd) + for i := 1; i < len(rsvd); i++ { + if rsvd[i].start < rsvd[i-1].end { + rangeNodeInfo := res.file.NodeInfo(rsvd[i].node) + if err := handler.HandleErrorf(rangeNodeInfo.Start(), "%s: reserved ranges overlap: %d to %d and %d to %d", scope, rsvd[i-1].start, rsvd[i-1].end-1, rsvd[i].start, rsvd[i].end-1); err != nil { + return err + } + } + } + + // extensions ranges should not overlap + exts := make(tagRanges, len(md.ExtensionRange)) + for i, r := range md.ExtensionRange { + n := res.ExtensionRangeNode(r) + exts[i] = tagRange{start: r.GetStart(), end: r.GetEnd(), node: n} + } + sort.Sort(exts) + for i := 1; i < len(exts); i++ { + if exts[i].start < exts[i-1].end { + rangeNodeInfo := res.file.NodeInfo(exts[i].node) + if err := handler.HandleErrorf(rangeNodeInfo.Start(), "%s: extension ranges overlap: %d to %d and %d to %d", scope, exts[i-1].start, exts[i-1].end-1, exts[i].start, exts[i].end-1); err != nil { + return err + } + } + } + + // see if any extension range overlaps any reserved range + var i, j int // i indexes rsvd; j indexes exts + for i < len(rsvd) && j < len(exts) { + if rsvd[i].start >= exts[j].start && rsvd[i].start < exts[j].end || + exts[j].start >= rsvd[i].start && exts[j].start < rsvd[i].end { + var pos ast.SourcePos + if rsvd[i].start >= exts[j].start && rsvd[i].start < exts[j].end { + rangeNodeInfo := res.file.NodeInfo(rsvd[i].node) + pos = rangeNodeInfo.Start() + } else { + rangeNodeInfo := res.file.NodeInfo(exts[j].node) + pos = rangeNodeInfo.Start() + } + // ranges overlap + if err := handler.HandleErrorf(pos, "%s: extension range %d to %d overlaps reserved range %d to %d", scope, exts[j].start, exts[j].end-1, rsvd[i].start, rsvd[i].end-1); err != nil { + return err + } + } + if rsvd[i].start < exts[j].start { + i++ + } else { + j++ + } + } + + // now, check that fields don't re-use tags and don't try to use extension + // or reserved ranges or reserved names + rsvdNames := map[string]struct{}{} + for _, n := range md.ReservedName { + // validate reserved name while we're here + if !isIdentifier(n) { + node := findMessageReservedNameNode(res.MessageNode(md), n) + nodeInfo := res.file.NodeInfo(node) + if err := handler.HandleErrorf(nodeInfo.Start(), "%s: reserved name %q is not a valid identifier", scope, n); err != nil { + return err + } + } + rsvdNames[n] = struct{}{} + } + fieldTags := map[int32]string{} + for _, fld := range md.Field { + fn := res.FieldNode(fld) + if _, ok := rsvdNames[fld.GetName()]; ok { + fieldNameNodeInfo := res.file.NodeInfo(fn.FieldName()) + if err := handler.HandleErrorf(fieldNameNodeInfo.Start(), "%s: field %s is using a reserved name", scope, fld.GetName()); err != nil { + return err + } + } + if existing := fieldTags[fld.GetNumber()]; existing != "" { + fieldTagNodeInfo := res.file.NodeInfo(fn.FieldTag()) + if err := handler.HandleErrorf(fieldTagNodeInfo.Start(), "%s: fields %s and %s both have the same tag %d", scope, existing, fld.GetName(), fld.GetNumber()); err != nil { + return err + } + } + fieldTags[fld.GetNumber()] = fld.GetName() + // check reserved ranges + r := sort.Search(len(rsvd), func(index int) bool { return rsvd[index].end > fld.GetNumber() }) + if r < len(rsvd) && rsvd[r].start <= fld.GetNumber() { + fieldTagNodeInfo := res.file.NodeInfo(fn.FieldTag()) + if err := handler.HandleErrorf(fieldTagNodeInfo.Start(), "%s: field %s is using tag %d which is in reserved range %d to %d", scope, fld.GetName(), fld.GetNumber(), rsvd[r].start, rsvd[r].end-1); err != nil { + return err + } + } + // and check extension ranges + e := sort.Search(len(exts), func(index int) bool { return exts[index].end > fld.GetNumber() }) + if e < len(exts) && exts[e].start <= fld.GetNumber() { + fieldTagNodeInfo := res.file.NodeInfo(fn.FieldTag()) + if err := handler.HandleErrorf(fieldTagNodeInfo.Start(), "%s: field %s is using tag %d which is in extension range %d to %d", scope, fld.GetName(), fld.GetNumber(), exts[e].start, exts[e].end-1); err != nil { + return err + } + } + } + + return nil +} + +func isIdentifier(s string) bool { + if len(s) == 0 { + return false + } + for i, r := range s { + if i == 0 && r >= '0' && r <= '9' { + // can't start with number + return false + } + // alphanumeric and underscore ok; everything else bad + switch { + case r >= '0' && r <= '9': + case r >= 'a' && r <= 'z': + case r >= 'A' && r <= 'Z': + case r == '_': + default: + return false + } + } + return true +} + +func findMessageReservedNameNode(msgNode ast.MessageDeclNode, name string) ast.Node { + var decls []ast.MessageElement + switch msgNode := msgNode.(type) { + case *ast.MessageNode: + decls = msgNode.Decls + case *ast.GroupNode: + decls = msgNode.Decls + default: + // leave decls empty + } + return findReservedNameNode(msgNode, decls, name) +} + +func findReservedNameNode[T ast.Node](parent ast.Node, decls []T, name string) ast.Node { + for _, decl := range decls { + // NB: We have to convert to empty interface first, before we can do a type + // assertion because type assertions on type parameters aren't allowed. (The + // compiler cannot yet know whether T is an interface type or not.) + rsvd, ok := any(decl).(*ast.ReservedNode) + if !ok { + continue + } + for _, rsvdName := range rsvd.Names { + if rsvdName.AsString() == name { + return rsvdName + } + } + } + // couldn't find it? Instead of puking, report position of the parent. + return parent +} + +func validateEnum(res *result, isProto3 bool, name protoreflect.FullName, ed *descriptorpb.EnumDescriptorProto, handler *reporter.Handler) error { + scope := fmt.Sprintf("enum %s", name) + + if len(ed.Value) == 0 { + enNode := res.EnumNode(ed) + enNodeInfo := res.file.NodeInfo(enNode) + if err := handler.HandleErrorf(enNodeInfo.Start(), "%s: enums must define at least one value", scope); err != nil { + return err + } + } + + allowAlias := false + var allowAliasOpt *descriptorpb.UninterpretedOption + if index, err := internal.FindOption(res, handler, scope, ed.Options.GetUninterpretedOption(), "allow_alias"); err != nil { + return err + } else if index >= 0 { + allowAliasOpt = ed.Options.UninterpretedOption[index] + valid := false + if allowAliasOpt.IdentifierValue != nil { + if allowAliasOpt.GetIdentifierValue() == "true" { + allowAlias = true + valid = true + } else if allowAliasOpt.GetIdentifierValue() == "false" { + valid = true + } + } + if !valid { + optNode := res.OptionNode(allowAliasOpt) + optNodeInfo := res.file.NodeInfo(optNode.GetValue()) + if err := handler.HandleErrorf(optNodeInfo.Start(), "%s: expecting bool value for allow_alias option", scope); err != nil { + return err + } + } + } + + if isProto3 && len(ed.Value) > 0 && ed.Value[0].GetNumber() != 0 { + evNode := res.EnumValueNode(ed.Value[0]) + evNodeInfo := res.file.NodeInfo(evNode.GetNumber()) + if err := handler.HandleErrorf(evNodeInfo.Start(), "%s: proto3 requires that first value in enum have numeric value of 0", scope); err != nil { + return err + } + } + + // check for aliases + vals := map[int32]string{} + hasAlias := false + for _, evd := range ed.Value { + existing := vals[evd.GetNumber()] + if existing != "" { + if allowAlias { + hasAlias = true + } else { + evNode := res.EnumValueNode(evd) + evNodeInfo := res.file.NodeInfo(evNode.GetNumber()) + if err := handler.HandleErrorf(evNodeInfo.Start(), "%s: values %s and %s both have the same numeric value %d; use allow_alias option if intentional", scope, existing, evd.GetName(), evd.GetNumber()); err != nil { + return err + } + } + } + vals[evd.GetNumber()] = evd.GetName() + } + if allowAlias && !hasAlias { + optNode := res.OptionNode(allowAliasOpt) + optNodeInfo := res.file.NodeInfo(optNode.GetValue()) + if err := handler.HandleErrorf(optNodeInfo.Start(), "%s: allow_alias is true but no values are aliases", scope); err != nil { + return err + } + } + + // reserved ranges should not overlap + rsvd := make(tagRanges, len(ed.ReservedRange)) + for i, r := range ed.ReservedRange { + n := res.EnumReservedRangeNode(r) + rsvd[i] = tagRange{start: r.GetStart(), end: r.GetEnd(), node: n} + } + sort.Sort(rsvd) + for i := 1; i < len(rsvd); i++ { + if rsvd[i].start <= rsvd[i-1].end { + rangeNodeInfo := res.file.NodeInfo(rsvd[i].node) + if err := handler.HandleErrorf(rangeNodeInfo.Start(), "%s: reserved ranges overlap: %d to %d and %d to %d", scope, rsvd[i-1].start, rsvd[i-1].end, rsvd[i].start, rsvd[i].end); err != nil { + return err + } + } + } + + // now, check that fields don't re-use tags and don't try to use extension + // or reserved ranges or reserved names + rsvdNames := map[string]struct{}{} + for _, n := range ed.ReservedName { + // validate reserved name while we're here + if !isIdentifier(n) { + node := findEnumReservedNameNode(res.EnumNode(ed), n) + nodeInfo := res.file.NodeInfo(node) + if err := handler.HandleErrorf(nodeInfo.Start(), "%s: reserved name %q is not a valid identifier", scope, n); err != nil { + return err + } + } + rsvdNames[n] = struct{}{} + } + for _, ev := range ed.Value { + evn := res.EnumValueNode(ev) + if _, ok := rsvdNames[ev.GetName()]; ok { + enumValNodeInfo := res.file.NodeInfo(evn.GetName()) + if err := handler.HandleErrorf(enumValNodeInfo.Start(), "%s: value %s is using a reserved name", scope, ev.GetName()); err != nil { + return err + } + } + // check reserved ranges + r := sort.Search(len(rsvd), func(index int) bool { return rsvd[index].end >= ev.GetNumber() }) + if r < len(rsvd) && rsvd[r].start <= ev.GetNumber() { + enumValNodeInfo := res.file.NodeInfo(evn.GetNumber()) + if err := handler.HandleErrorf(enumValNodeInfo.Start(), "%s: value %s is using number %d which is in reserved range %d to %d", scope, ev.GetName(), ev.GetNumber(), rsvd[r].start, rsvd[r].end); err != nil { + return err + } + } + } + + return nil +} + +func findEnumReservedNameNode(enumNode ast.Node, name string) ast.Node { + var decls []ast.EnumElement + if enumNode, ok := enumNode.(*ast.EnumNode); ok { + decls = enumNode.Decls + // if not the right type, we leave decls empty + } + return findReservedNameNode(enumNode, decls, name) +} + +func validateField(res *result, isProto3 bool, name protoreflect.FullName, fld *descriptorpb.FieldDescriptorProto, handler *reporter.Handler) error { + scope := fmt.Sprintf("field %s", name) + + node := res.FieldNode(fld) + if isProto3 { + if fld.GetType() == descriptorpb.FieldDescriptorProto_TYPE_GROUP { + groupNodeInfo := res.file.NodeInfo(node.GetGroupKeyword()) + if err := handler.HandleErrorf(groupNodeInfo.Start(), "%s: groups are not allowed in proto3", scope); err != nil { + return err + } + } else if fld.Label != nil && fld.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_REQUIRED { + fieldLabelNodeInfo := res.file.NodeInfo(node.FieldLabel()) + if err := handler.HandleErrorf(fieldLabelNodeInfo.Start(), "%s: label 'required' is not allowed in proto3", scope); err != nil { + return err + } + } + if index, err := internal.FindOption(res, handler, scope, fld.Options.GetUninterpretedOption(), "default"); err != nil { + return err + } else if index >= 0 { + optNode := res.OptionNode(fld.Options.GetUninterpretedOption()[index]) + optNameNodeInfo := res.file.NodeInfo(optNode.GetName()) + if err := handler.HandleErrorf(optNameNodeInfo.Start(), "%s: default values are not allowed in proto3", scope); err != nil { + return err + } + } + } else { + if fld.Label == nil && fld.OneofIndex == nil { + fieldNameNodeInfo := res.file.NodeInfo(node.FieldName()) + if err := handler.HandleErrorf(fieldNameNodeInfo.Start(), "%s: field has no label; proto2 requires explicit 'optional' label", scope); err != nil { + return err + } + } + if fld.GetExtendee() != "" && fld.Label != nil && fld.GetLabel() == descriptorpb.FieldDescriptorProto_LABEL_REQUIRED { + fieldLabelNodeInfo := res.file.NodeInfo(node.FieldLabel()) + if err := handler.HandleErrorf(fieldLabelNodeInfo.Start(), "%s: extension fields cannot be 'required'", scope); err != nil { + return err + } + } + } + + return nil +} + +type tagRange struct { + start int32 + end int32 + node ast.RangeDeclNode +} + +type tagRanges []tagRange + +func (r tagRanges) Len() int { + return len(r) +} + +func (r tagRanges) Less(i, j int) bool { + return r[i].start < r[j].start || + (r[i].start == r[j].start && r[i].end < r[j].end) +} + +func (r tagRanges) Swap(i, j int) { + r[i], r[j] = r[j], r[i] +} + +func fillInMissingLabels(fd *descriptorpb.FileDescriptorProto) { + for _, md := range fd.MessageType { + fillInMissingLabelsInMsg(md) + } + for _, extd := range fd.Extension { + fillInMissingLabel(extd) + } +} + +func fillInMissingLabelsInMsg(md *descriptorpb.DescriptorProto) { + for _, fld := range md.Field { + fillInMissingLabel(fld) + } + for _, nmd := range md.NestedType { + fillInMissingLabelsInMsg(nmd) + } + for _, extd := range md.Extension { + fillInMissingLabel(extd) + } +} + +func fillInMissingLabel(fld *descriptorpb.FieldDescriptorProto) { + if fld.Label == nil { + fld.Label = descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL.Enum() + } +} diff --git a/vendor/github.com/bufbuild/protocompile/protoutil/protos.go b/vendor/github.com/bufbuild/protocompile/protoutil/protos.go new file mode 100644 index 0000000..ad80442 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/protoutil/protos.go @@ -0,0 +1,261 @@ +// Copyright 2020-2022 Buf Technologies, 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 protoutil contains useful functions for interacting with descriptors. +// For now these include only functions for efficiently converting descriptors +// produced by the compiler to descriptor protos. +// +// Despite the fact that descriptor protos are mutable, calling code should NOT +// mutate any of the protos returned from this package. For efficiency, some +// protos returned from this package may be part of internal state of a compiler +// result, and mutating the proto could corrupt or invalidate parts of that +// result. +package protoutil + +import ( + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" +) + +// DescriptorProtoWrapper is a protoreflect.Descriptor that wraps an +// underlying descriptor proto. It provides the same interface as +// Descriptor but with one extra operation, to efficiently query for +// the underlying descriptor proto. +// +// Descriptors that implement this will also implement another method +// whose specified return type is the concrete type returned by the +// AsProto method. The name of this method varies by the type of this +// descriptor: +// +// Descriptor Type Other Method Name +// ---------------------+------------------------------------ +// FileDescriptor | FileDescriptorProto() +// MessageDescriptor | MessageDescriptorProto() +// FieldDescriptor | FieldDescriptorProto() +// OneofDescriptor | OneOfDescriptorProto() +// EnumDescriptor | EnumDescriptorProto() +// EnumValueDescriptor | EnumValueDescriptorProto() +// ServiceDescriptor | ServiceDescriptorProto() +// MethodDescriptor | MethodDescriptorProto() +// +// For example, a DescriptorProtoWrapper that implements FileDescriptor +// returns a *descriptorpb.FileDescriptorProto value from its AsProto +// method and also provides a method with the following signature: +// +// FileDescriptorProto() *descriptorpb.FileDescriptorProto +type DescriptorProtoWrapper interface { + protoreflect.Descriptor + // AsProto returns the underlying descriptor proto. The concrete + // type of the proto message depends on the type of this + // descriptor: + // Descriptor Type Proto Message Type + // ---------------------+------------------------------------ + // FileDescriptor | *descriptorpb.FileDescriptorProto + // MessageDescriptor | *descriptorpb.DescriptorProto + // FieldDescriptor | *descriptorpb.FieldDescriptorProto + // OneofDescriptor | *descriptorpb.OneofDescriptorProto + // EnumDescriptor | *descriptorpb.EnumDescriptorProto + // EnumValueDescriptor | *descriptorpb.EnumValueDescriptorProto + // ServiceDescriptor | *descriptorpb.ServiceDescriptorProto + // MethodDescriptor | *descriptorpb.MethodDescriptorProto + AsProto() proto.Message +} + +// ProtoFromDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message { + switch d := d.(type) { + case protoreflect.FileDescriptor: + return ProtoFromFileDescriptor(d) + case protoreflect.MessageDescriptor: + return ProtoFromMessageDescriptor(d) + case protoreflect.FieldDescriptor: + return ProtoFromFieldDescriptor(d) + case protoreflect.OneofDescriptor: + return ProtoFromOneofDescriptor(d) + case protoreflect.EnumDescriptor: + return ProtoFromEnumDescriptor(d) + case protoreflect.EnumValueDescriptor: + return ProtoFromEnumValueDescriptor(d) + case protoreflect.ServiceDescriptor: + return ProtoFromServiceDescriptor(d) + case protoreflect.MethodDescriptor: + return ProtoFromMethodDescriptor(d) + default: + // WTF?? + if res, ok := d.(DescriptorProtoWrapper); ok { + return res.AsProto() + } + return nil + } +} + +// ProtoFromFileDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For file descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. File descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromFileDescriptor(d protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto { + if imp, ok := d.(protoreflect.FileImport); ok { + d = imp.FileDescriptor + } + type canProto interface { + FileDescriptorProto() *descriptorpb.FileDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.FileDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if fd, ok := res.AsProto().(*descriptorpb.FileDescriptorProto); ok { + return fd + } + } + return protodesc.ToFileDescriptorProto(d) +} + +// ProtoFromMessageDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For message descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Message descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromMessageDescriptor(d protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto { + type canProto interface { + MessageDescriptorProto() *descriptorpb.DescriptorProto + } + if res, ok := d.(canProto); ok { + return res.MessageDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if md, ok := res.AsProto().(*descriptorpb.DescriptorProto); ok { + return md + } + } + return protodesc.ToDescriptorProto(d) +} + +// ProtoFromFieldDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For field descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Field descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromFieldDescriptor(d protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto { + type canProto interface { + FieldDescriptorProto() *descriptorpb.FieldDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.FieldDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if fd, ok := res.AsProto().(*descriptorpb.FieldDescriptorProto); ok { + return fd + } + } + return protodesc.ToFieldDescriptorProto(d) +} + +// ProtoFromOneofDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For oneof descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Oneof descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromOneofDescriptor(d protoreflect.OneofDescriptor) *descriptorpb.OneofDescriptorProto { + type canProto interface { + OneofDescriptorProto() *descriptorpb.OneofDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.OneofDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if ood, ok := res.AsProto().(*descriptorpb.OneofDescriptorProto); ok { + return ood + } + } + return protodesc.ToOneofDescriptorProto(d) +} + +// ProtoFromEnumDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For enum descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Enum descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromEnumDescriptor(d protoreflect.EnumDescriptor) *descriptorpb.EnumDescriptorProto { + type canProto interface { + EnumDescriptorProto() *descriptorpb.EnumDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.EnumDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if ed, ok := res.AsProto().(*descriptorpb.EnumDescriptorProto); ok { + return ed + } + } + return protodesc.ToEnumDescriptorProto(d) +} + +// ProtoFromEnumValueDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For enum value descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Enum value descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromEnumValueDescriptor(d protoreflect.EnumValueDescriptor) *descriptorpb.EnumValueDescriptorProto { + type canProto interface { + EnumValueDescriptorProto() *descriptorpb.EnumValueDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.EnumValueDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if ed, ok := res.AsProto().(*descriptorpb.EnumValueDescriptorProto); ok { + return ed + } + } + return protodesc.ToEnumValueDescriptorProto(d) +} + +// ProtoFromServiceDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For service descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Service descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromServiceDescriptor(d protoreflect.ServiceDescriptor) *descriptorpb.ServiceDescriptorProto { + type canProto interface { + ServiceDescriptorProto() *descriptorpb.ServiceDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.ServiceDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if sd, ok := res.AsProto().(*descriptorpb.ServiceDescriptorProto); ok { + return sd + } + } + return protodesc.ToServiceDescriptorProto(d) +} + +// ProtoFromMethodDescriptor extracts a descriptor proto from the given "rich" +// descriptor. For method descriptors generated by the compiler, this is an +// inexpensive and non-lossy operation. Method descriptors from other sources +// however may be expensive (to re-create a proto) and even lossy. +func ProtoFromMethodDescriptor(d protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto { + type canProto interface { + MethodDescriptorProto() *descriptorpb.MethodDescriptorProto + } + if res, ok := d.(canProto); ok { + return res.MethodDescriptorProto() + } + if res, ok := d.(DescriptorProtoWrapper); ok { + if md, ok := res.AsProto().(*descriptorpb.MethodDescriptorProto); ok { + return md + } + } + return protodesc.ToMethodDescriptorProto(d) +} diff --git a/vendor/github.com/bufbuild/protocompile/reporter/errors.go b/vendor/github.com/bufbuild/protocompile/reporter/errors.go new file mode 100644 index 0000000..2932c79 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/reporter/errors.go @@ -0,0 +1,68 @@ +// Copyright 2020-2022 Buf Technologies, 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 reporter + +import ( + "errors" + "fmt" + + "github.com/bufbuild/protocompile/ast" +) + +// ErrInvalidSource is a sentinel error that is returned by compilation and +// stand-alone compilation steps (such as parsing, linking) when one or more +// errors is reported but the configured ErrorReporter always returns nil. +var ErrInvalidSource = errors.New("parse failed: invalid proto source") + +// ErrorWithPos is an error about a proto source file that adds information +// about the location in the file that caused the error. +type ErrorWithPos interface { + error + // GetPosition returns the source position that caused the underlying error. + GetPosition() ast.SourcePos + // Unwrap returns the underlying error. + Unwrap() error +} + +// Error creates a new ErrorWithPos from the given error and source position. +func Error(pos ast.SourcePos, err error) ErrorWithPos { + return errorWithSourcePos{pos: pos, underlying: err} +} + +// Errorf creates a new ErrorWithPos whose underlying error is created using the +// given message format and arguments (via fmt.Errorf). +func Errorf(pos ast.SourcePos, format string, args ...interface{}) ErrorWithPos { + return errorWithSourcePos{pos: pos, underlying: fmt.Errorf(format, args...)} +} + +type errorWithSourcePos struct { + underlying error + pos ast.SourcePos +} + +func (e errorWithSourcePos) Error() string { + sourcePos := e.GetPosition() + return fmt.Sprintf("%s: %v", sourcePos, e.underlying) +} + +func (e errorWithSourcePos) GetPosition() ast.SourcePos { + return e.pos +} + +func (e errorWithSourcePos) Unwrap() error { + return e.underlying +} + +var _ ErrorWithPos = errorWithSourcePos{} diff --git a/vendor/github.com/bufbuild/protocompile/reporter/reporter.go b/vendor/github.com/bufbuild/protocompile/reporter/reporter.go new file mode 100644 index 0000000..d3a3168 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/reporter/reporter.go @@ -0,0 +1,232 @@ +// Copyright 2020-2022 Buf Technologies, 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 reporter contains the types used for reporting errors from +// protocompile operations. It contains error types as well as interfaces +// for reporting and handling errors and warnings. +package reporter + +import ( + "sync" + + "github.com/bufbuild/protocompile/ast" +) + +// ErrorReporter is responsible for reporting the given error. If the reporter +// returns a non-nil error, parsing/linking will abort with that error. If the +// reporter returns nil, parsing will continue, allowing the parser to try to +// report as many syntax and/or link errors as it can find. +type ErrorReporter func(err ErrorWithPos) error + +// WarningReporter is responsible for reporting the given warning. This is used +// for indicating non-error messages to the calling program for things that do +// not cause the parse to fail but are considered bad practice. Though they are +// just warnings, the details are supplied to the reporter via an error type. +type WarningReporter func(ErrorWithPos) + +// Reporter is a type that handles reporting both errors and warnings. +// A reporter does not need to be thread-safe. Safe concurrent access is +// managed by a Handler. +type Reporter interface { + // Error is called when the given error is encountered and needs to be + // reported to the calling program. This signature matches ErrorReporter + // because it has the same semantics. If this function returns non-nil + // then the operation will abort immediately with the given error. But + // if it returns nil, the operation will continue, reporting more errors + // as they are encountered. If the reporter never returns non-nil then + // the operation will eventually fail with ErrInvalidSource. + Error(ErrorWithPos) error + // Warning is called when the given warnings is encountered and needs to be + // reported to the calling program. Despite the argument being an error + // type, a warning will never cause the operation to abort or fail (unless + // the reporter's implementation of this method panics). + Warning(ErrorWithPos) +} + +// NewReporter creates a new reporter that invokes the given functions on error +// or warning. +func NewReporter(errs ErrorReporter, warnings WarningReporter) Reporter { + return reporterFuncs{errs: errs, warnings: warnings} +} + +type reporterFuncs struct { + errs ErrorReporter + warnings WarningReporter +} + +func (r reporterFuncs) Error(err ErrorWithPos) error { + if r.errs == nil { + return err + } + return r.errs(err) +} + +func (r reporterFuncs) Warning(err ErrorWithPos) { + if r.warnings != nil { + r.warnings(err) + } +} + +// Handler is used by protocompile operations for handling errors and warnings. +// This type is thread-safe. It uses a mutex to serialize calls to its reporter +// so that reporter instances do not have to be thread-safe (unless re-used +// across multiple handlers). +type Handler struct { + parent *Handler + mu sync.Mutex + reporter Reporter + errsReported bool + err error +} + +// NewHandler creates a new Handler that reports errors and warnings using the +// given reporter. +func NewHandler(rep Reporter) *Handler { + if rep == nil { + rep = NewReporter(nil, nil) + } + return &Handler{reporter: rep} +} + +// SubHandler returns a "child" of h. Use of a child handler is the same as use +// of the parent, except that the Error() and ReporterError() functions only +// report non-nil for errors that were reported using the child handler. So +// errors reported directly to the parent or to a different child handler won't +// be returned. This is useful for making concurrent access to the handler more +// deterministic: if a child handler is only used from one goroutine, its view +// of reported errors is consistent and unimpacted by concurrent operations. +func (h *Handler) SubHandler() *Handler { + return &Handler{parent: h} +} + +// HandleError handles the given error. If the given err is an ErrorWithPos, it +// is reported, and this function returns the error returned by the reporter. If +// the given err is NOT an ErrorWithPos, the current operation will abort +// immediately. +// +// If the handler has already aborted (by returning a non-nil error from a prior +// call to HandleError or HandleErrorf), that same error is returned and the +// given error is not reported. +func (h *Handler) HandleError(err error) error { + if h.parent != nil { + _, isErrWithPos := err.(ErrorWithPos) + err = h.parent.HandleError(err) + + // update child state + h.mu.Lock() + defer h.mu.Unlock() + if isErrWithPos { + h.errsReported = true + } + h.err = err + return err + } + + h.mu.Lock() + defer h.mu.Unlock() + + if h.err != nil { + return h.err + } + if ewp, ok := err.(ErrorWithPos); ok { + h.errsReported = true + err = h.reporter.Error(ewp) + } + h.err = err + return err +} + +// HandleErrorWithPos handles an error with the given source position. +// +// If the handler has already aborted (by returning a non-nil error from a prior +// call to HandleError or HandleErrorf), that same error is returned and the +// given error is not reported. +func (h *Handler) HandleErrorWithPos(pos ast.SourcePos, err error) error { + if ewp, ok := err.(ErrorWithPos); ok { + // replace existing position with given one + err = errorWithSourcePos{pos: pos, underlying: ewp.Unwrap()} + } else { + err = errorWithSourcePos{pos: pos, underlying: err} + } + return h.HandleError(err) +} + +// HandleErrorf handles an error with the given source position, creating the +// error using the given message format and arguments. +// +// If the handler has already aborted (by returning a non-nil error from a call +// to HandleError or HandleErrorf), that same error is returned and the given +// error is not reported. +func (h *Handler) HandleErrorf(pos ast.SourcePos, format string, args ...interface{}) error { + return h.HandleError(Errorf(pos, format, args...)) +} + +// HandleWarning handles the given warning. This will delegate to the handler's +// configured reporter. +func (h *Handler) HandleWarning(err ErrorWithPos) { + if h.parent != nil { + h.parent.HandleWarning(err) + return + } + + // even though we aren't touching mutable fields, we acquire lock anyway so + // that underlying reporter does not have to be thread-safe + h.mu.Lock() + defer h.mu.Unlock() + + h.reporter.Warning(err) +} + +// HandleWarningWithPos handles a warning with the given source position. This will +// delegate to the handler's configured reporter. +func (h *Handler) HandleWarningWithPos(pos ast.SourcePos, err error) { + ewp, ok := err.(ErrorWithPos) + if ok { + // replace existing position with given one + ewp = errorWithSourcePos{pos: pos, underlying: ewp.Unwrap()} + } else { + ewp = errorWithSourcePos{pos: pos, underlying: err} + } + h.HandleWarning(ewp) +} + +// HandleWarningf handles a warning with the given source position, creating the +// actual error value using the given message format and arguments. +func (h *Handler) HandleWarningf(pos ast.SourcePos, format string, args ...interface{}) { + h.HandleWarning(Errorf(pos, format, args...)) +} + +// Error returns the handler result. If any errors have been reported then this +// returns a non-nil error. If the reporter never returned a non-nil error then +// ErrInvalidSource is returned. Otherwise, this returns the error returned by +// the handler's reporter (the same value returned by ReporterError). +func (h *Handler) Error() error { + h.mu.Lock() + defer h.mu.Unlock() + + if h.errsReported && h.err == nil { + return ErrInvalidSource + } + return h.err +} + +// ReporterError returns the error returned by the handler's reporter. If +// the reporter has either not been invoked (no errors handled) or has not +// returned any non-nil value, then this returns nil. +func (h *Handler) ReporterError() error { + h.mu.Lock() + defer h.mu.Unlock() + + return h.err +} diff --git a/vendor/github.com/bufbuild/protocompile/resolver.go b/vendor/github.com/bufbuild/protocompile/resolver.go new file mode 100644 index 0000000..6838ef0 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/resolver.go @@ -0,0 +1,194 @@ +// Copyright 2020-2022 Buf Technologies, 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 protocompile + +import ( + "errors" + "io" + "io/fs" + "os" + "path/filepath" + "strings" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/parser" +) + +// Resolver is used by the compiler to resolve a proto source file name +// into some unit that is usable by the compiler. The result could be source +// for a proto file or it could be an already-parsed AST or descriptor. +// +// Resolver implementations must be thread-safe as a single compilation +// operation could invoke FindFileByPath from multiple goroutines. +type Resolver interface { + // FindFileByPath searches for information for the given file path. If no + // result is available, it should return a non-nil error, such as + // protoregistry.NotFound. + FindFileByPath(path string) (SearchResult, error) +} + +// SearchResult represents information about a proto source file. Only one of +// the various fields must be set, based on what is available for a file. If +// multiple fields are set, the compiler prefers them in opposite order listed: +// so it uses a descriptor if present and only falls back to source if nothing +// else is available. +type SearchResult struct { + // Represents source code for the file. This should be nil if source code + // is not available. If no field below is set, then the compiler will parse + // the source code into an AST. + Source io.Reader + // Represents the abstract syntax tree for the file. If no field below is + // set, then the compiler will convert the AST into a descriptor proto. + AST *ast.FileNode + // A descriptor proto that represents the file. If the field below is not + // set, then the compiler will link this proto with its dependencies to + // produce a linked descriptor. + Proto *descriptorpb.FileDescriptorProto + // A parse result for the file. This packages both an AST and a descriptor + // proto in one. When a parser result is available, it is more efficient + // than using an AST search result, since the descriptor proto need not be + // re-created. And it provides better error messages than a descriptor proto + // search result, since the AST has greater fidelity with regard to source + // positions (even if the descriptor proto includes source code info). + ParseResult parser.Result + // A fully linked descriptor that represents the file. If this field is set, + // then the compiler has little or no additional work to do for this file as + // it is already compiled. If this value implements linker.File, there is no + // additional work. Otherwise, the additional work is to compute an index of + // symbols in the file, for efficient lookup. + Desc protoreflect.FileDescriptor +} + +// ResolverFunc is a simple function type that implements Resolver. +type ResolverFunc func(string) (SearchResult, error) + +var _ Resolver = ResolverFunc(nil) + +func (f ResolverFunc) FindFileByPath(path string) (SearchResult, error) { + return f(path) +} + +// CompositeResolver is a slice of resolvers, which are consulted in order +// until one can supply a result. If none of the constituent resolvers can +// supply a result, the error returned by the first resolver is returned. If +// the slice of resolvers is empty, all operations return +// protoregistry.NotFound. +type CompositeResolver []Resolver + +var _ Resolver = CompositeResolver(nil) + +func (f CompositeResolver) FindFileByPath(path string) (SearchResult, error) { + if len(f) == 0 { + return SearchResult{}, protoregistry.NotFound + } + var firstErr error + for _, res := range f { + r, err := res.FindFileByPath(path) + if err == nil { + return r, nil + } + if firstErr == nil { + firstErr = err + } + } + return SearchResult{}, firstErr +} + +// SourceResolver can resolve file names by returning source code. It uses +// an optional list of import paths to search. By default, it searches the +// file system. +type SourceResolver struct { + // Optional list of import paths. If present and not empty, then all + // file paths to find are assumed to be relative to one of these paths. + // If nil or empty, all file paths to find are assumed to be relative to + // the current working directory. + ImportPaths []string + // Optional function for returning a file's contents. If nil, then + // os.Open is used to open files on the file system. + // + // This function must be thread-safe as a single compilation operation + // could result in concurrent invocations of this function from + // multiple goroutines. + Accessor func(path string) (io.ReadCloser, error) +} + +var _ Resolver = (*SourceResolver)(nil) + +func (r *SourceResolver) FindFileByPath(path string) (SearchResult, error) { + if len(r.ImportPaths) == 0 { + reader, err := r.accessFile(path) + if err != nil { + return SearchResult{}, err + } + return SearchResult{Source: reader}, nil + } + + var e error + for _, importPath := range r.ImportPaths { + reader, err := r.accessFile(filepath.Join(importPath, path)) + if err != nil { + if errors.Is(err, fs.ErrNotExist) { + e = err + continue + } + return SearchResult{}, err + } + return SearchResult{Source: reader}, nil + } + return SearchResult{}, e +} + +func (r *SourceResolver) accessFile(path string) (io.ReadCloser, error) { + if r.Accessor != nil { + return r.Accessor(path) + } + return os.Open(path) +} + +// SourceAccessorFromMap returns a function that can be used as the Accessor +// field of a SourceResolver that uses the given map to load source. The map +// keys are file names and the values are the corresponding file contents. +// +// The given map is used directly and not copied. Since accessor functions +// must be thread-safe, this means that the provided map must not be mutated +// once this accessor is provided to a compile operation. +func SourceAccessorFromMap(srcs map[string]string) func(string) (io.ReadCloser, error) { + return func(path string) (io.ReadCloser, error) { + src, ok := srcs[path] + if !ok { + return nil, os.ErrNotExist + } + return io.NopCloser(strings.NewReader(src)), nil + } +} + +// WithStandardImports returns a new resolver that knows about the same standard +// imports that are included with protoc. +func WithStandardImports(r Resolver) Resolver { + return ResolverFunc(func(name string) (SearchResult, error) { + res, err := r.FindFileByPath(name) + if err != nil { + // error from given resolver? see if it's a known standard file + if d, ok := standardImports[name]; ok { + return SearchResult{Desc: d}, nil + } + } + return res, err + }) +} diff --git a/vendor/github.com/bufbuild/protocompile/sourceinfo/source_code_info.go b/vendor/github.com/bufbuild/protocompile/sourceinfo/source_code_info.go new file mode 100644 index 0000000..6f32f28 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/sourceinfo/source_code_info.go @@ -0,0 +1,814 @@ +// Copyright 2020-2022 Buf Technologies, 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 sourceinfo contains the logic for computing source code info for a +// file descriptor. +// +// The inputs to the computation are an AST for a file as well as the index of +// interpreted options for that file. +package sourceinfo + +import ( + "bytes" + "fmt" + "strings" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/internal" + "github.com/bufbuild/protocompile/options" +) + +// GenerateSourceInfo generates source code info for the given AST. If the given +// opts is present, it can generate source code info for interpreted options. +// Otherwise, any options in the AST will get source code info as uninterpreted +// options. +// +// This includes comments only for locations that represent complete declarations. +// This is the same behavior as protoc, the reference compiler for Protocol Buffers. +func GenerateSourceInfo(file *ast.FileNode, opts options.Index) *descriptorpb.SourceCodeInfo { + return generateSourceInfo(file, opts, false) +} + +// GenerateSourceInfoWithExtraComments generates source code info for the given +// AST. If the given opts is present, it can generate source code info for +// interpreted options. Otherwise, any options in the AST will get source code +// info as uninterpreted options. +// +// This includes comments for all locations. This is still lossy, but less so as +// it preserves far more comments from the source file. +func GenerateSourceInfoWithExtraComments(file *ast.FileNode, opts options.Index) *descriptorpb.SourceCodeInfo { + return generateSourceInfo(file, opts, true) +} + +func generateSourceInfo(file *ast.FileNode, opts options.Index, extraComments bool) *descriptorpb.SourceCodeInfo { + if file == nil { + return nil + } + + sci := sourceCodeInfo{file: file, commentsUsed: map[ast.SourcePos]struct{}{}, extraComments: extraComments} + path := make([]int32, 0, 10) + + sci.newLocWithoutComments(file, nil) + + if file.Syntax != nil { + sci.newLocWithComments(file.Syntax, append(path, internal.FileSyntaxTag)) + } + + var depIndex, pubDepIndex, weakDepIndex, optIndex, msgIndex, enumIndex, extendIndex, svcIndex int32 + + for _, child := range file.Decls { + switch child := child.(type) { + case *ast.ImportNode: + sci.newLocWithComments(child, append(path, internal.FileDependencyTag, depIndex)) + depIndex++ + if child.Public != nil { + sci.newLoc(child.Public, append(path, internal.FilePublicDependencyTag, pubDepIndex)) + pubDepIndex++ + } else if child.Weak != nil { + sci.newLoc(child.Weak, append(path, internal.FileWeakDependencyTag, weakDepIndex)) + weakDepIndex++ + } + case *ast.PackageNode: + sci.newLocWithComments(child, append(path, internal.FilePackageTag)) + case *ast.OptionNode: + generateSourceCodeInfoForOption(opts, &sci, child, false, &optIndex, append(path, internal.FileOptionsTag)) + case *ast.MessageNode: + generateSourceCodeInfoForMessage(opts, &sci, child, nil, append(path, internal.FileMessagesTag, msgIndex)) + msgIndex++ + case *ast.EnumNode: + generateSourceCodeInfoForEnum(opts, &sci, child, append(path, internal.FileEnumsTag, enumIndex)) + enumIndex++ + case *ast.ExtendNode: + generateSourceCodeInfoForExtensions(opts, &sci, child, &extendIndex, &msgIndex, append(path, internal.FileExtensionsTag), append(dup(path), internal.FileMessagesTag)) + case *ast.ServiceNode: + generateSourceCodeInfoForService(opts, &sci, child, append(path, internal.FileServicesTag, svcIndex)) + svcIndex++ + } + } + + return &descriptorpb.SourceCodeInfo{Location: sci.locs} +} + +func generateSourceCodeInfoForOption(opts options.Index, sci *sourceCodeInfo, n *ast.OptionNode, compact bool, uninterpIndex *int32, path []int32) { + if !compact { + sci.newLocWithoutComments(n, path) + } + subPath := opts[n] + if len(subPath) > 0 { + p := make([]int32, len(path), len(path)+len(subPath)) + copy(p, path) + if subPath[0] == -1 { + // used by "default" and "json_name" field pseudo-options + // to attribute path to parent element (since those are + // stored directly on the descriptor, not its options) + subPath = subPath[1:] + p = p[:len(path)-1] + } + p = append(p, subPath...) + if compact { + sci.newLoc(n, p) + } else { + sci.newLocWithComments(n, p) + } + return + } + + // it's an uninterpreted option + optPath := path + optPath = append(optPath, internal.UninterpretedOptionsTag, *uninterpIndex) + *uninterpIndex++ + sci.newLoc(n, optPath) + var valTag int32 + switch n.Val.(type) { + case ast.IdentValueNode: + valTag = internal.UninterpretedIdentTag + case *ast.NegativeIntLiteralNode: + valTag = internal.UninterpretedNegIntTag + case ast.IntValueNode: + valTag = internal.UninterpretedPosIntTag + case ast.FloatValueNode: + valTag = internal.UninterpretedDoubleTag + case ast.StringValueNode: + valTag = internal.UninterpretedStringTag + case *ast.MessageLiteralNode: + valTag = internal.UninterpretedAggregateTag + } + if valTag != 0 { + sci.newLoc(n.Val, append(optPath, valTag)) + } + for j, nn := range n.Name.Parts { + optNmPath := optPath + optNmPath = append(optNmPath, internal.UninterpretedNameTag, int32(j)) + sci.newLoc(nn, optNmPath) + sci.newLoc(nn.Name, append(optNmPath, internal.UninterpretedNameNameTag)) + } +} + +func generateSourceCodeInfoForMessage(opts options.Index, sci *sourceCodeInfo, n ast.MessageDeclNode, fieldPath []int32, path []int32) { + var openBrace ast.Node + + var decls []ast.MessageElement + switch n := n.(type) { + case *ast.MessageNode: + openBrace = n.OpenBrace + decls = n.Decls + case *ast.GroupNode: + openBrace = n.OpenBrace + decls = n.Decls + case *ast.MapFieldNode: + sci.newLoc(n, path) + // map entry so nothing else to do + return + } + sci.newBlockLocWithComments(n, openBrace, path) + + sci.newLoc(n.MessageName(), append(path, internal.MessageNameTag)) + // matching protoc, which emits the corresponding field type name (for group fields) + // right after the source location for the group message name + if fieldPath != nil { + sci.newLoc(n.MessageName(), append(fieldPath, internal.FieldTypeNameTag)) + } + + var optIndex, fieldIndex, oneOfIndex, extendIndex, nestedMsgIndex int32 + var nestedEnumIndex, extRangeIndex, reservedRangeIndex, reservedNameIndex int32 + for _, child := range decls { + switch child := child.(type) { + case *ast.OptionNode: + generateSourceCodeInfoForOption(opts, sci, child, false, &optIndex, append(path, internal.MessageOptionsTag)) + case *ast.FieldNode: + generateSourceCodeInfoForField(opts, sci, child, append(path, internal.MessageFieldsTag, fieldIndex)) + fieldIndex++ + case *ast.GroupNode: + fldPath := path + fldPath = append(fldPath, internal.MessageFieldsTag, fieldIndex) + generateSourceCodeInfoForField(opts, sci, child, fldPath) + fieldIndex++ + generateSourceCodeInfoForMessage(opts, sci, child, fldPath, append(dup(path), internal.MessageNestedMessagesTag, nestedMsgIndex)) + nestedMsgIndex++ + case *ast.MapFieldNode: + generateSourceCodeInfoForField(opts, sci, child, append(path, internal.MessageFieldsTag, fieldIndex)) + fieldIndex++ + nestedMsgIndex++ + case *ast.OneOfNode: + generateSourceCodeInfoForOneOf(opts, sci, child, &fieldIndex, &nestedMsgIndex, append(path, internal.MessageFieldsTag), append(dup(path), internal.MessageNestedMessagesTag), append(dup(path), internal.MessageOneOfsTag, oneOfIndex)) + oneOfIndex++ + case *ast.MessageNode: + generateSourceCodeInfoForMessage(opts, sci, child, nil, append(path, internal.MessageNestedMessagesTag, nestedMsgIndex)) + nestedMsgIndex++ + case *ast.EnumNode: + generateSourceCodeInfoForEnum(opts, sci, child, append(path, internal.MessageEnumsTag, nestedEnumIndex)) + nestedEnumIndex++ + case *ast.ExtendNode: + generateSourceCodeInfoForExtensions(opts, sci, child, &extendIndex, &nestedMsgIndex, append(path, internal.MessageExtensionsTag), append(dup(path), internal.MessageNestedMessagesTag)) + case *ast.ExtensionRangeNode: + generateSourceCodeInfoForExtensionRanges(opts, sci, child, &extRangeIndex, append(path, internal.MessageExtensionRangesTag)) + case *ast.ReservedNode: + if len(child.Names) > 0 { + resPath := path + resPath = append(resPath, internal.MessageReservedNamesTag) + sci.newLocWithComments(child, resPath) + for _, rn := range child.Names { + sci.newLoc(rn, append(resPath, reservedNameIndex)) + reservedNameIndex++ + } + } + if len(child.Ranges) > 0 { + resPath := path + resPath = append(resPath, internal.MessageReservedRangesTag) + sci.newLocWithComments(child, resPath) + for _, rr := range child.Ranges { + generateSourceCodeInfoForReservedRange(sci, rr, append(resPath, reservedRangeIndex)) + reservedRangeIndex++ + } + } + } + } +} + +func generateSourceCodeInfoForEnum(opts options.Index, sci *sourceCodeInfo, n *ast.EnumNode, path []int32) { + sci.newBlockLocWithComments(n, n.OpenBrace, path) + sci.newLoc(n.Name, append(path, internal.EnumNameTag)) + + var optIndex, valIndex, reservedNameIndex, reservedRangeIndex int32 + for _, child := range n.Decls { + switch child := child.(type) { + case *ast.OptionNode: + generateSourceCodeInfoForOption(opts, sci, child, false, &optIndex, append(path, internal.EnumOptionsTag)) + case *ast.EnumValueNode: + generateSourceCodeInfoForEnumValue(opts, sci, child, append(path, internal.EnumValuesTag, valIndex)) + valIndex++ + case *ast.ReservedNode: + if len(child.Names) > 0 { + resPath := path + resPath = append(resPath, internal.EnumReservedNamesTag) + sci.newLocWithComments(child, resPath) + for _, rn := range child.Names { + sci.newLoc(rn, append(resPath, reservedNameIndex)) + reservedNameIndex++ + } + } + if len(child.Ranges) > 0 { + resPath := path + resPath = append(resPath, internal.EnumReservedRangesTag) + sci.newLocWithComments(child, resPath) + for _, rr := range child.Ranges { + generateSourceCodeInfoForReservedRange(sci, rr, append(resPath, reservedRangeIndex)) + reservedRangeIndex++ + } + } + } + } +} + +func generateSourceCodeInfoForEnumValue(opts options.Index, sci *sourceCodeInfo, n *ast.EnumValueNode, path []int32) { + sci.newLocWithComments(n, path) + sci.newLoc(n.Name, append(path, internal.EnumValNameTag)) + sci.newLoc(n.Number, append(path, internal.EnumValNumberTag)) + + // enum value options + if n.Options != nil { + optsPath := path + optsPath = append(optsPath, internal.EnumValOptionsTag) + sci.newLoc(n.Options, optsPath) + var optIndex int32 + for _, opt := range n.Options.GetElements() { + generateSourceCodeInfoForOption(opts, sci, opt, true, &optIndex, optsPath) + } + } +} + +func generateSourceCodeInfoForReservedRange(sci *sourceCodeInfo, n *ast.RangeNode, path []int32) { + sci.newLoc(n, path) + sci.newLoc(n.StartVal, append(path, internal.ReservedRangeStartTag)) + switch { + case n.EndVal != nil: + sci.newLoc(n.EndVal, append(path, internal.ReservedRangeEndTag)) + case n.Max != nil: + sci.newLoc(n.Max, append(path, internal.ReservedRangeEndTag)) + default: + sci.newLoc(n.StartVal, append(path, internal.ReservedRangeEndTag)) + } +} + +func generateSourceCodeInfoForExtensions(opts options.Index, sci *sourceCodeInfo, n *ast.ExtendNode, extendIndex, msgIndex *int32, extendPath, msgPath []int32) { + sci.newBlockLocWithComments(n, n.OpenBrace, extendPath) + for _, decl := range n.Decls { + switch decl := decl.(type) { + case *ast.FieldNode: + generateSourceCodeInfoForField(opts, sci, decl, append(extendPath, *extendIndex)) + *extendIndex++ + case *ast.GroupNode: + fldPath := extendPath + fldPath = append(fldPath, *extendIndex) + generateSourceCodeInfoForField(opts, sci, decl, fldPath) + *extendIndex++ + generateSourceCodeInfoForMessage(opts, sci, decl, fldPath, append(msgPath, *msgIndex)) + *msgIndex++ + } + } +} + +func generateSourceCodeInfoForOneOf(opts options.Index, sci *sourceCodeInfo, n *ast.OneOfNode, fieldIndex, nestedMsgIndex *int32, fieldPath, nestedMsgPath, oneOfPath []int32) { + sci.newBlockLocWithComments(n, n.OpenBrace, oneOfPath) + sci.newLoc(n.Name, append(oneOfPath, internal.OneOfNameTag)) + + var optIndex int32 + for _, child := range n.Decls { + switch child := child.(type) { + case *ast.OptionNode: + generateSourceCodeInfoForOption(opts, sci, child, false, &optIndex, append(oneOfPath, internal.OneOfOptionsTag)) + case *ast.FieldNode: + generateSourceCodeInfoForField(opts, sci, child, append(fieldPath, *fieldIndex)) + *fieldIndex++ + case *ast.GroupNode: + fldPath := fieldPath + fldPath = append(fldPath, *fieldIndex) + generateSourceCodeInfoForField(opts, sci, child, fldPath) + *fieldIndex++ + generateSourceCodeInfoForMessage(opts, sci, child, fldPath, append(nestedMsgPath, *nestedMsgIndex)) + *nestedMsgIndex++ + } + } +} + +func generateSourceCodeInfoForField(opts options.Index, sci *sourceCodeInfo, n ast.FieldDeclNode, path []int32) { + var fieldType string + if f, ok := n.(*ast.FieldNode); ok { + fieldType = string(f.FldType.AsIdentifier()) + } + + if n.GetGroupKeyword() != nil { + // comments will appear on group message + sci.newLocWithoutComments(n, path) + if n.FieldExtendee() != nil { + sci.newLoc(n.FieldExtendee(), append(path, internal.FieldExtendeeTag)) + } + if n.FieldLabel() != nil { + // no comments here either (label is first token for group, so we want + // to leave the comments to be associated with the group message instead) + sci.newLocWithoutComments(n.FieldLabel(), append(path, internal.FieldLabelTag)) + } + sci.newLoc(n.FieldType(), append(path, internal.FieldTypeTag)) + // let the name comments be attributed to the group name + sci.newLocWithoutComments(n.FieldName(), append(path, internal.FieldNameTag)) + } else { + sci.newLocWithComments(n, path) + if n.FieldExtendee() != nil { + sci.newLoc(n.FieldExtendee(), append(path, internal.FieldExtendeeTag)) + } + if n.FieldLabel() != nil { + sci.newLoc(n.FieldLabel(), append(path, internal.FieldLabelTag)) + } + var tag int32 + if _, isScalar := internal.FieldTypes[fieldType]; isScalar { + tag = internal.FieldTypeTag + } else { + // this is a message or an enum, so attribute type location + // to the type name field + tag = internal.FieldTypeNameTag + } + sci.newLoc(n.FieldType(), append(path, tag)) + sci.newLoc(n.FieldName(), append(path, internal.FieldNameTag)) + } + sci.newLoc(n.FieldTag(), append(path, internal.FieldNumberTag)) + + if n.GetOptions() != nil { + optsPath := path + optsPath = append(optsPath, internal.FieldOptionsTag) + sci.newLoc(n.GetOptions(), optsPath) + var optIndex int32 + for _, opt := range n.GetOptions().GetElements() { + generateSourceCodeInfoForOption(opts, sci, opt, true, &optIndex, optsPath) + } + } +} + +func generateSourceCodeInfoForExtensionRanges(opts options.Index, sci *sourceCodeInfo, n *ast.ExtensionRangeNode, extRangeIndex *int32, path []int32) { + sci.newLocWithComments(n, path) + startExtRangeIndex := *extRangeIndex + for _, child := range n.Ranges { + path := append(path, *extRangeIndex) + *extRangeIndex++ + sci.newLoc(child, path) + sci.newLoc(child.StartVal, append(path, internal.ExtensionRangeStartTag)) + switch { + case child.EndVal != nil: + sci.newLoc(child.EndVal, append(path, internal.ExtensionRangeEndTag)) + case child.Max != nil: + sci.newLoc(child.Max, append(path, internal.ExtensionRangeEndTag)) + default: + sci.newLoc(child.StartVal, append(path, internal.ExtensionRangeEndTag)) + } + } + // options for all ranges go after the start+end values + for range n.Ranges { + path := append(path, startExtRangeIndex) + startExtRangeIndex++ + if n.Options != nil { + optsPath := path + optsPath = append(optsPath, internal.ExtensionRangeOptionsTag) + sci.newLoc(n.Options, optsPath) + var optIndex int32 + for _, opt := range n.Options.GetElements() { + generateSourceCodeInfoForOption(opts, sci, opt, true, &optIndex, optsPath) + } + } + } +} + +func generateSourceCodeInfoForService(opts options.Index, sci *sourceCodeInfo, n *ast.ServiceNode, path []int32) { + sci.newBlockLocWithComments(n, n.OpenBrace, path) + sci.newLoc(n.Name, append(path, internal.ServiceNameTag)) + var optIndex, rpcIndex int32 + for _, child := range n.Decls { + switch child := child.(type) { + case *ast.OptionNode: + generateSourceCodeInfoForOption(opts, sci, child, false, &optIndex, append(path, internal.ServiceOptionsTag)) + case *ast.RPCNode: + generateSourceCodeInfoForMethod(opts, sci, child, append(path, internal.ServiceMethodsTag, rpcIndex)) + rpcIndex++ + } + } +} + +func generateSourceCodeInfoForMethod(opts options.Index, sci *sourceCodeInfo, n *ast.RPCNode, path []int32) { + if n.OpenBrace != nil { + sci.newBlockLocWithComments(n, n.OpenBrace, path) + } else { + sci.newLocWithComments(n, path) + } + sci.newLoc(n.Name, append(path, internal.MethodNameTag)) + if n.Input.Stream != nil { + sci.newLoc(n.Input.Stream, append(path, internal.MethodInputStreamTag)) + } + sci.newLoc(n.Input.MessageType, append(path, internal.MethodInputTag)) + if n.Output.Stream != nil { + sci.newLoc(n.Output.Stream, append(path, internal.MethodOutputStreamTag)) + } + sci.newLoc(n.Output.MessageType, append(path, internal.MethodOutputTag)) + + optsPath := path + optsPath = append(optsPath, internal.MethodOptionsTag) + var optIndex int32 + for _, decl := range n.Decls { + if opt, ok := decl.(*ast.OptionNode); ok { + generateSourceCodeInfoForOption(opts, sci, opt, false, &optIndex, optsPath) + } + } +} + +type sourceCodeInfo struct { + file *ast.FileNode + extraComments bool + locs []*descriptorpb.SourceCodeInfo_Location + commentsUsed map[ast.SourcePos]struct{} +} + +func (sci *sourceCodeInfo) newLocWithoutComments(n ast.Node, path []int32) { + dup := make([]int32, len(path)) + copy(dup, path) + var start, end ast.SourcePos + if n == sci.file { + // For files, we don't want to consider trailing EOF token + // as part of the span. We want the span to only include + // actual lexical elements in the file (which also excludes + // whitespace and comments). + children := sci.file.Children() + if len(children) > 0 && isEOF(children[len(children)-1]) { + children = children[:len(children)-1] + } + if len(children) == 0 { + start = ast.SourcePos{Filename: sci.file.Name(), Line: 1, Col: 1} + end = start + } else { + start = sci.file.TokenInfo(n.Start()).Start() + end = sci.file.TokenInfo(children[len(children)-1].End()).End() + } + } else { + info := sci.file.NodeInfo(n) + start, end = info.Start(), info.End() + } + sci.locs = append(sci.locs, &descriptorpb.SourceCodeInfo_Location{ + Path: dup, + Span: makeSpan(start, end), + }) +} + +func (sci *sourceCodeInfo) newLoc(n ast.Node, path []int32) { + info := sci.file.NodeInfo(n) + if !sci.extraComments { + dup := make([]int32, len(path)) + copy(dup, path) + start, end := info.Start(), info.End() + sci.locs = append(sci.locs, &descriptorpb.SourceCodeInfo_Location{ + Path: dup, + Span: makeSpan(start, end), + }) + } else { + detachedComments, leadingComments := sci.getLeadingComments(n) + trailingComments := sci.getTrailingComments(n) + sci.newLocWithGivenComments(info, detachedComments, leadingComments, trailingComments, path) + } +} + +func isEOF(n ast.Node) bool { + r, ok := n.(*ast.RuneNode) + return ok && r.Rune == 0 +} + +func (sci *sourceCodeInfo) newBlockLocWithComments(n, openBrace ast.Node, path []int32) { + // Block definitions use trailing comments after the open brace "{" as the + // element's trailing comments. For example: + // + // message Foo { // this is a trailing comment for a message + // + // } // not this + // + nodeInfo := sci.file.NodeInfo(n) + detachedComments, leadingComments := sci.getLeadingComments(n) + trailingComments := sci.getTrailingComments(openBrace) + sci.newLocWithGivenComments(nodeInfo, detachedComments, leadingComments, trailingComments, path) +} + +func (sci *sourceCodeInfo) newLocWithComments(n ast.Node, path []int32) { + nodeInfo := sci.file.NodeInfo(n) + detachedComments, leadingComments := sci.getLeadingComments(n) + trailingComments := sci.getTrailingComments(n) + sci.newLocWithGivenComments(nodeInfo, detachedComments, leadingComments, trailingComments, path) +} + +func (sci *sourceCodeInfo) newLocWithGivenComments(nodeInfo ast.NodeInfo, detachedComments []comments, leadingComments comments, trailingComments comments, path []int32) { + if (len(detachedComments) > 0 && sci.commentUsed(detachedComments[0])) || + (len(detachedComments) == 0 && sci.commentUsed(leadingComments)) { + detachedComments = nil + leadingComments = ast.EmptyComments + } + if sci.commentUsed(trailingComments) { + trailingComments = ast.EmptyComments + } + + var trail *string + if trailingComments.Len() > 0 { + trail = proto.String(sci.combineComments(trailingComments)) + } + + var lead *string + if leadingComments.Len() > 0 { + lead = proto.String(sci.combineComments(leadingComments)) + } + + detached := make([]string, len(detachedComments)) + for i, cmts := range detachedComments { + detached[i] = sci.combineComments(cmts) + } + + dup := make([]int32, len(path)) + copy(dup, path) + sci.locs = append(sci.locs, &descriptorpb.SourceCodeInfo_Location{ + LeadingDetachedComments: detached, + LeadingComments: lead, + TrailingComments: trail, + Path: dup, + Span: makeSpan(nodeInfo.Start(), nodeInfo.End()), + }) +} + +type comments interface { + Len() int + Index(int) ast.Comment +} + +type subComments struct { + offs, n int + c ast.Comments +} + +func (s subComments) Len() int { + return s.n +} + +func (s subComments) Index(i int) ast.Comment { + if i < 0 || i >= s.n { + panic(fmt.Errorf("runtime error: index out of range [%d] with length %d", i, s.n)) + } + return s.c.Index(i + s.offs) +} + +func (sci *sourceCodeInfo) getLeadingComments(n ast.Node) ([]comments, comments) { + s := n.Start() + info := sci.file.TokenInfo(s) + var prevInfo ast.NodeInfo + if prev, ok := sci.file.Tokens().Previous(s); ok { + prevInfo = sci.file.TokenInfo(prev) + } + _, d, l := sci.attributeComments(prevInfo, info) + return d, l +} + +func (sci *sourceCodeInfo) getTrailingComments(n ast.Node) comments { + e := n.End() + next, ok := sci.file.Tokens().Next(e) + if !ok { + return ast.EmptyComments + } + info := sci.file.TokenInfo(e) + nextInfo := sci.file.TokenInfo(next) + t, _, _ := sci.attributeComments(info, nextInfo) + return t +} + +func (sci *sourceCodeInfo) attributeComments(prevInfo, info ast.NodeInfo) (t comments, d []comments, l comments) { + detached := groupComments(info.LeadingComments()) + var trail comments + if prevInfo.IsValid() { + trail = comments(prevInfo.TrailingComments()) + if trail.Len() == 0 { + trail, detached = sci.maybeDonate(prevInfo, info, detached) + } + } else { + trail = ast.EmptyComments + } + detached, lead := sci.maybeAttach(prevInfo, info, trail.Len() > 0, detached) + return trail, detached, lead +} + +func (sci *sourceCodeInfo) maybeDonate(prevInfo ast.NodeInfo, info ast.NodeInfo, lead []comments) (t comments, l []comments) { + if len(lead) == 0 { + // nothing to donate + return ast.EmptyComments, nil + } + firstCommentPos := lead[0].Index(0) + if firstCommentPos.Start().Line > prevInfo.End().Line+1 { + // first comment is detached from previous token, so can't be a trailing comment + return ast.EmptyComments, lead + } + if len(lead) > 1 { + // multiple groups? then donate first comment to previous token + return lead[0], lead[1:] + } + // there is only one element in lead + comment := lead[0] + lastCommentPos := comment.Index(comment.Len() - 1) + if lastCommentPos.End().Line < info.Start().Line-1 { + // there is a blank line between the comments and subsequent token, so + // we can donate the comment to previous token + return comment, nil + } + if txt := info.RawText(); txt == "" || (len(txt) == 1 && strings.ContainsAny(txt, "}]),;")) { + // token is a symbol for the end of a scope or EOF, which doesn't need a leading comment + if !sci.extraComments && txt != "" && + firstCommentPos.Start().Line == prevInfo.End().Line && + lastCommentPos.End().Line == info.Start().Line { + // protoc does not donate if prev and next token are on the same line since it's + // ambiguous which one should get the comment; so we mirror that here + return ast.EmptyComments, lead + } + // But with extra comments, we always donate in this situation in order to capture + // more comments. Because otherwise, these comments are lost since these symbols + // don't map to a location in source code info. + return comment, nil + } + // cannot donate + return ast.EmptyComments, lead +} + +func (sci *sourceCodeInfo) maybeAttach(prevInfo ast.NodeInfo, info ast.NodeInfo, hasTrail bool, lead []comments) (d []comments, l comments) { + if len(lead) == 0 { + return nil, ast.EmptyComments + } + + if len(lead) == 1 && !hasTrail && prevInfo.IsValid() { + // If the one comment appears attached to both previous and next tokens, + // don't attach to either. + comment := lead[0] + attachedToPrevious := comment.Index(0).Start().Line == prevInfo.End().Line + attachedToNext := comment.Index(comment.Len()-1).End().Line == info.Start().Line + if attachedToPrevious && attachedToNext { + // Since attachment is ambiguous, leave it detached. + return lead, ast.EmptyComments + } + } + + lastComment := lead[len(lead)-1] + if lastComment.Index(lastComment.Len()-1).End().Line >= info.Start().Line-1 { + return lead[:len(lead)-1], lastComment + } + + return lead, ast.EmptyComments +} + +func makeSpan(start, end ast.SourcePos) []int32 { + if start.Line == end.Line { + return []int32{int32(start.Line) - 1, int32(start.Col) - 1, int32(end.Col) - 1} + } + return []int32{int32(start.Line) - 1, int32(start.Col) - 1, int32(end.Line) - 1, int32(end.Col) - 1} +} + +func (sci *sourceCodeInfo) commentUsed(c comments) bool { + if c.Len() == 0 { + return false + } + pos := c.Index(0).Start() + if _, ok := sci.commentsUsed[pos]; ok { + return true + } + + sci.commentsUsed[pos] = struct{}{} + return false +} + +func groupComments(cmts ast.Comments) []comments { + if cmts.Len() == 0 { + return nil + } + var groups []comments + singleLineStyle := cmts.Index(0).RawText()[:2] == "//" + line := cmts.Index(0).End().Line + start := 0 + for i := 1; i < cmts.Len(); i++ { + c := cmts.Index(i) + prevSingleLine := singleLineStyle + singleLineStyle = strings.HasPrefix(c.RawText(), "//") + if !singleLineStyle || prevSingleLine != singleLineStyle || c.Start().Line > line+1 { + // new group! + groups = append(groups, subComments{offs: start, n: i - start, c: cmts}) + start = i + } + line = c.End().Line + } + // don't forget last group + groups = append(groups, subComments{offs: start, n: cmts.Len() - start, c: cmts}) + return groups +} + +func (sci *sourceCodeInfo) combineComments(comments comments) string { + if comments.Len() == 0 { + return "" + } + var buf bytes.Buffer + for i, l := 0, comments.Len(); i < l; i++ { + c := comments.Index(i) + txt := c.RawText() + if txt[:2] == "//" { + buf.WriteString(txt[2:]) + // protoc includes trailing newline for line comments, + // but it's not present in the AST comment. So we need + // to add it if present. + if i, ok := sci.file.Items().Next(c.AsItem()); ok { + info := sci.file.ItemInfo(i) + if strings.HasPrefix(info.LeadingWhitespace(), "\n") { + buf.WriteRune('\n') + } + } + } else { + lines := strings.Split(txt[2:len(txt)-2], "\n") + first := true + for _, l := range lines { + if first { + first = false + buf.WriteString(l) + continue + } + buf.WriteByte('\n') + + // strip a prefix of whitespace followed by '*' + j := 0 + for j < len(l) { + if l[j] != ' ' && l[j] != '\t' { + break + } + j++ + } + switch { + case j == len(l): + l = "" + case l[j] == '*': + l = l[j+1:] + case j > 0: + l = l[j:] + } + + buf.WriteString(l) + } + } + } + return buf.String() +} + +func dup(p []int32) []int32 { + return append(([]int32)(nil), p...) +} diff --git a/vendor/github.com/bufbuild/protocompile/std_imports.go b/vendor/github.com/bufbuild/protocompile/std_imports.go new file mode 100644 index 0000000..dcf8553 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/std_imports.go @@ -0,0 +1,62 @@ +// Copyright 2020-2022 Buf Technologies, 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 protocompile + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + _ "google.golang.org/protobuf/types/known/anypb" // link in packages that include the standard protos included with protoc. + _ "google.golang.org/protobuf/types/known/apipb" + _ "google.golang.org/protobuf/types/known/durationpb" + _ "google.golang.org/protobuf/types/known/emptypb" + _ "google.golang.org/protobuf/types/known/fieldmaskpb" + _ "google.golang.org/protobuf/types/known/sourcecontextpb" + _ "google.golang.org/protobuf/types/known/structpb" + _ "google.golang.org/protobuf/types/known/timestamppb" + _ "google.golang.org/protobuf/types/known/typepb" + _ "google.golang.org/protobuf/types/known/wrapperspb" + _ "google.golang.org/protobuf/types/pluginpb" +) + +// All files that are included with protoc are also included with this package +// so that clients do not need to explicitly supply a copy of these protos (just +// like callers of protoc do not need to supply them). +var standardImports map[string]protoreflect.FileDescriptor + +func init() { + standardFilenames := []string{ + "google/protobuf/any.proto", + "google/protobuf/api.proto", + "google/protobuf/compiler/plugin.proto", + "google/protobuf/descriptor.proto", + "google/protobuf/duration.proto", + "google/protobuf/empty.proto", + "google/protobuf/field_mask.proto", + "google/protobuf/source_context.proto", + "google/protobuf/struct.proto", + "google/protobuf/timestamp.proto", + "google/protobuf/type.proto", + "google/protobuf/wrappers.proto", + } + + standardImports = map[string]protoreflect.FileDescriptor{} + for _, fn := range standardFilenames { + fd, err := protoregistry.GlobalFiles.FindFileByPath(fn) + if err != nil { + panic(err.Error()) + } + standardImports[fn] = fd + } +} diff --git a/vendor/github.com/bufbuild/protocompile/walk/walk.go b/vendor/github.com/bufbuild/protocompile/walk/walk.go new file mode 100644 index 0000000..e7a1ab3 --- /dev/null +++ b/vendor/github.com/bufbuild/protocompile/walk/walk.go @@ -0,0 +1,445 @@ +// Copyright 2020-2022 Buf Technologies, 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 walk provides helper functions for traversing all elements in a +// protobuf file descriptor. There are versions both for traversing "rich" +// descriptors (protoreflect.Descriptor) and for traversing the underlying +// "raw" descriptor protos. +// +// # Enter And Exit +// +// This package includes variants of the functions that accept two callback +// functions. These variants have names ending with "EnterAndExit". One function +// is called as each element is visited ("enter") and the other is called after +// the element and all of its descendants have been visited ("exit"). This +// can be useful when you need to track state that is scoped to the visitation +// of a single element. +// +// # Source Path +// +// When traversing raw descriptor protos, this package include variants whose +// callback accepts a protoreflect.SourcePath. These variants have names that +// include "WithPath". This path can be used to locate corresponding data in the +// file's source code info (if present). +package walk + +import ( + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/bufbuild/protocompile/internal" +) + +// Descriptors walks all descriptors in the given file using a depth-first +// traversal, calling the given function for each descriptor in the hierarchy. +// The walk ends when traversal is complete or when the function returns an +// error. If the function returns an error, that is returned as the result of the +// walk operation. +// +// Descriptors are visited using a pre-order traversal, where the function is +// called for a descriptor before it is called for any of its descendants. +func Descriptors(file protoreflect.FileDescriptor, fn func(protoreflect.Descriptor) error) error { + return DescriptorsEnterAndExit(file, fn, nil) +} + +// DescriptorsEnterAndExit walks all descriptors in the given file using a +// depth-first traversal, calling the given functions on entry and on exit +// for each descriptor in the hierarchy. The walk ends when traversal is +// complete or when a function returns an error. If a function returns an error, +// that is returned as the result of the walk operation. +// +// The enter function is called using a pre-order traversal, where the function +// is called for a descriptor before it is called for any of its descendants. +// The exit function is called using a post-order traversal, where the function +// is called for a descriptor only after it is called for any descendants. +func DescriptorsEnterAndExit(file protoreflect.FileDescriptor, enter, exit func(protoreflect.Descriptor) error) error { + for i := 0; i < file.Messages().Len(); i++ { + msg := file.Messages().Get(i) + if err := messageDescriptor(msg, enter, exit); err != nil { + return err + } + } + for i := 0; i < file.Enums().Len(); i++ { + en := file.Enums().Get(i) + if err := enumDescriptor(en, enter, exit); err != nil { + return err + } + } + for i := 0; i < file.Extensions().Len(); i++ { + ext := file.Extensions().Get(i) + if err := enter(ext); err != nil { + return err + } + if exit != nil { + if err := exit(ext); err != nil { + return err + } + } + } + for i := 0; i < file.Services().Len(); i++ { + svc := file.Services().Get(i) + if err := enter(svc); err != nil { + return err + } + for i := 0; i < svc.Methods().Len(); i++ { + mtd := svc.Methods().Get(i) + if err := enter(mtd); err != nil { + return err + } + if exit != nil { + if err := exit(mtd); err != nil { + return err + } + } + } + if exit != nil { + if err := exit(svc); err != nil { + return err + } + } + } + return nil +} + +func messageDescriptor(msg protoreflect.MessageDescriptor, enter, exit func(protoreflect.Descriptor) error) error { + if err := enter(msg); err != nil { + return err + } + for i := 0; i < msg.Fields().Len(); i++ { + fld := msg.Fields().Get(i) + if err := enter(fld); err != nil { + return err + } + if exit != nil { + if err := exit(fld); err != nil { + return err + } + } + } + for i := 0; i < msg.Oneofs().Len(); i++ { + oo := msg.Oneofs().Get(i) + if err := enter(oo); err != nil { + return err + } + if exit != nil { + if err := exit(oo); err != nil { + return err + } + } + } + for i := 0; i < msg.Messages().Len(); i++ { + nested := msg.Messages().Get(i) + if err := messageDescriptor(nested, enter, exit); err != nil { + return err + } + } + for i := 0; i < msg.Enums().Len(); i++ { + en := msg.Enums().Get(i) + if err := enumDescriptor(en, enter, exit); err != nil { + return err + } + } + for i := 0; i < msg.Extensions().Len(); i++ { + ext := msg.Extensions().Get(i) + if err := enter(ext); err != nil { + return err + } + if exit != nil { + if err := exit(ext); err != nil { + return err + } + } + } + if exit != nil { + if err := exit(msg); err != nil { + return err + } + } + return nil +} + +func enumDescriptor(en protoreflect.EnumDescriptor, enter, exit func(protoreflect.Descriptor) error) error { + if err := enter(en); err != nil { + return err + } + for i := 0; i < en.Values().Len(); i++ { + enVal := en.Values().Get(i) + if err := enter(enVal); err != nil { + return err + } + if exit != nil { + if err := exit(enVal); err != nil { + return err + } + } + } + if exit != nil { + if err := exit(en); err != nil { + return err + } + } + return nil +} + +// DescriptorProtosWithPath walks all descriptor protos in the given file using +// a depth-first traversal. This is the same as DescriptorProtos except that the +// callback function, fn, receives a protoreflect.SourcePath, that indicates the +// path for the element in the file's source code info. +func DescriptorProtosWithPath(file *descriptorpb.FileDescriptorProto, fn func(protoreflect.FullName, protoreflect.SourcePath, proto.Message) error) error { + return DescriptorProtosWithPathEnterAndExit(file, fn, nil) +} + +// DescriptorProtosWithPathEnterAndExit walks all descriptor protos in the given +// file using a depth-first traversal. This is the same as +// DescriptorProtosEnterAndExit except that the callback function, fn, receives +// a protoreflect.SourcePath, that indicates the path for the element in the +// file's source code info. +func DescriptorProtosWithPathEnterAndExit(file *descriptorpb.FileDescriptorProto, enter, exit func(protoreflect.FullName, protoreflect.SourcePath, proto.Message) error) error { + w := &protoWalker{usePath: true, enter: enter, exit: exit} + return w.walkDescriptorProtos(file) +} + +// DescriptorProtos walks all descriptor protos in the given file using a +// depth-first traversal, calling the given function for each descriptor proto +// in the hierarchy. The walk ends when traversal is complete or when the +// function returns an error. If the function returns an error, that is +// returned as the result of the walk operation. +// +// Descriptor protos are visited using a pre-order traversal, where the function +// is called for a descriptor before it is called for any of its descendants. +func DescriptorProtos(file *descriptorpb.FileDescriptorProto, fn func(protoreflect.FullName, proto.Message) error) error { + return DescriptorProtosEnterAndExit(file, fn, nil) +} + +// DescriptorProtosEnterAndExit walks all descriptor protos in the given file +// using a depth-first traversal, calling the given functions on entry and on +// exit for each descriptor in the hierarchy. The walk ends when traversal is +// complete or when a function returns an error. If a function returns an error, +// that is returned as the result of the walk operation. +// +// The enter function is called using a pre-order traversal, where the function +// is called for a descriptor proto before it is called for any of its +// descendants. The exit function is called using a post-order traversal, where +// the function is called for a descriptor proto only after it is called for any +// descendants. +func DescriptorProtosEnterAndExit(file *descriptorpb.FileDescriptorProto, enter, exit func(protoreflect.FullName, proto.Message) error) error { + enterWithPath := func(n protoreflect.FullName, p protoreflect.SourcePath, m proto.Message) error { + return enter(n, m) + } + var exitWithPath func(n protoreflect.FullName, p protoreflect.SourcePath, m proto.Message) error + if exit != nil { + exitWithPath = func(n protoreflect.FullName, p protoreflect.SourcePath, m proto.Message) error { + return exit(n, m) + } + } + w := &protoWalker{ + enter: enterWithPath, + exit: exitWithPath, + } + return w.walkDescriptorProtos(file) +} + +type protoWalker struct { + usePath bool + enter, exit func(protoreflect.FullName, protoreflect.SourcePath, proto.Message) error +} + +func (w *protoWalker) walkDescriptorProtos(file *descriptorpb.FileDescriptorProto) error { + prefix := file.GetPackage() + if prefix != "" { + prefix += "." + } + var path protoreflect.SourcePath + for i, msg := range file.MessageType { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.FileMessagesTag, int32(i)) + } + if err := w.walkDescriptorProto(prefix, p, msg); err != nil { + return err + } + } + for i, en := range file.EnumType { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.FileEnumsTag, int32(i)) + } + if err := w.walkEnumDescriptorProto(prefix, p, en); err != nil { + return err + } + } + for i, ext := range file.Extension { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.FileExtensionsTag, int32(i)) + } + fqn := prefix + ext.GetName() + if err := w.enter(protoreflect.FullName(fqn), p, ext); err != nil { + return err + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), p, ext); err != nil { + return err + } + } + } + for i, svc := range file.Service { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.FileServicesTag, int32(i)) + } + fqn := prefix + svc.GetName() + if err := w.enter(protoreflect.FullName(fqn), p, svc); err != nil { + return err + } + for j, mtd := range svc.Method { + var mp protoreflect.SourcePath + if w.usePath { + mp = p + mp = append(mp, internal.ServiceMethodsTag, int32(j)) + } + mtdFqn := fqn + "." + mtd.GetName() + if err := w.enter(protoreflect.FullName(mtdFqn), mp, mtd); err != nil { + return err + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(mtdFqn), mp, mtd); err != nil { + return err + } + } + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), p, svc); err != nil { + return err + } + } + } + return nil +} + +func (w *protoWalker) walkDescriptorProto(prefix string, path protoreflect.SourcePath, msg *descriptorpb.DescriptorProto) error { + fqn := prefix + msg.GetName() + if err := w.enter(protoreflect.FullName(fqn), path, msg); err != nil { + return err + } + prefix = fqn + "." + for i, fld := range msg.Field { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.MessageFieldsTag, int32(i)) + } + fqn := prefix + fld.GetName() + if err := w.enter(protoreflect.FullName(fqn), p, fld); err != nil { + return err + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), p, fld); err != nil { + return err + } + } + } + for i, oo := range msg.OneofDecl { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.MessageOneOfsTag, int32(i)) + } + fqn := prefix + oo.GetName() + if err := w.enter(protoreflect.FullName(fqn), p, oo); err != nil { + return err + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), p, oo); err != nil { + return err + } + } + } + for i, nested := range msg.NestedType { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.MessageNestedMessagesTag, int32(i)) + } + if err := w.walkDescriptorProto(prefix, p, nested); err != nil { + return err + } + } + for i, en := range msg.EnumType { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.MessageEnumsTag, int32(i)) + } + if err := w.walkEnumDescriptorProto(prefix, p, en); err != nil { + return err + } + } + for i, ext := range msg.Extension { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.MessageExtensionsTag, int32(i)) + } + fqn := prefix + ext.GetName() + if err := w.enter(protoreflect.FullName(fqn), p, ext); err != nil { + return err + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), p, ext); err != nil { + return err + } + } + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), path, msg); err != nil { + return err + } + } + return nil +} + +func (w *protoWalker) walkEnumDescriptorProto(prefix string, path protoreflect.SourcePath, en *descriptorpb.EnumDescriptorProto) error { + fqn := prefix + en.GetName() + if err := w.enter(protoreflect.FullName(fqn), path, en); err != nil { + return err + } + for i, val := range en.Value { + var p protoreflect.SourcePath + if w.usePath { + p = path + p = append(p, internal.EnumValuesTag, int32(i)) + } + fqn := prefix + val.GetName() + if err := w.enter(protoreflect.FullName(fqn), p, val); err != nil { + return err + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), p, val); err != nil { + return err + } + } + } + if w.exit != nil { + if err := w.exit(protoreflect.FullName(fqn), path, en); err != nil { + return err + } + } + return nil +} diff --git a/vendor/github.com/gogo/protobuf/AUTHORS b/vendor/github.com/gogo/protobuf/AUTHORS new file mode 100644 index 0000000..3d97fc7 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/AUTHORS @@ -0,0 +1,15 @@ +# This is the official list of GoGo authors for copyright purposes. +# This file is distinct from the CONTRIBUTORS file, which +# lists people. For example, employees are listed in CONTRIBUTORS, +# but not in AUTHORS, because the employer holds the copyright. + +# Names should be added to this file as one of +# Organization's name +# Individual's name +# Individual's name + +# Please keep the list sorted. + +Sendgrid, Inc +Vastech SA (PTY) LTD +Walter Schulze diff --git a/vendor/github.com/gogo/protobuf/CONTRIBUTORS b/vendor/github.com/gogo/protobuf/CONTRIBUTORS new file mode 100644 index 0000000..1b4f6c2 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/CONTRIBUTORS @@ -0,0 +1,23 @@ +Anton Povarov +Brian Goff +Clayton Coleman +Denis Smirnov +DongYun Kang +Dwayne Schultz +Georg Apitz +Gustav Paul +Johan Brandhorst +John Shahid +John Tuley +Laurent +Patrick Lee +Peter Edge +Roger Johansson +Sam Nguyen +Sergio Arbeo +Stephen J Day +Tamir Duberstein +Todd Eisenberger +Tormod Erevik Lea +Vyacheslav Kim +Walter Schulze diff --git a/vendor/github.com/gogo/protobuf/LICENSE b/vendor/github.com/gogo/protobuf/LICENSE new file mode 100644 index 0000000..f57de90 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/LICENSE @@ -0,0 +1,35 @@ +Copyright (c) 2013, The GoGo Authors. All rights reserved. + +Protocol Buffers for Go with Gadgets + +Go support for Protocol Buffers - Google's data interchange format + +Copyright 2010 The Go Authors. All rights reserved. +https://github.com/golang/protobuf + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/vendor/github.com/golang/protobuf/proto/Makefile b/vendor/github.com/gogo/protobuf/proto/Makefile similarity index 90% rename from vendor/github.com/golang/protobuf/proto/Makefile rename to vendor/github.com/gogo/protobuf/proto/Makefile index e2e0651..00d65f3 100644 --- a/vendor/github.com/golang/protobuf/proto/Makefile +++ b/vendor/github.com/gogo/protobuf/proto/Makefile @@ -38,6 +38,6 @@ test: install generate-test-pbs generate-test-pbs: make install - make -C testdata - protoc --go_out=Mtestdata/test.proto=github.com/golang/protobuf/proto/testdata,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. proto3_proto/proto3.proto + make -C test_proto + make -C proto3_proto make diff --git a/vendor/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/gogo/protobuf/proto/clone.go similarity index 83% rename from vendor/github.com/golang/protobuf/proto/clone.go rename to vendor/github.com/gogo/protobuf/proto/clone.go index e392575..a26b046 100644 --- a/vendor/github.com/golang/protobuf/proto/clone.go +++ b/vendor/github.com/gogo/protobuf/proto/clone.go @@ -35,22 +35,39 @@ package proto import ( + "fmt" "log" "reflect" "strings" ) // Clone returns a deep copy of a protocol buffer. -func Clone(pb Message) Message { - in := reflect.ValueOf(pb) +func Clone(src Message) Message { + in := reflect.ValueOf(src) if in.IsNil() { - return pb + return src } - out := reflect.New(in.Type().Elem()) - // out is empty so a merge is a deep copy. - mergeStruct(out.Elem(), in.Elem()) - return out.Interface().(Message) + dst := out.Interface().(Message) + Merge(dst, src) + return dst +} + +// Merger is the interface representing objects that can merge messages of the same type. +type Merger interface { + // Merge merges src into this message. + // Required and optional fields that are set in src will be set to that value in dst. + // Elements of repeated fields will be appended. + // + // Merge may panic if called with a different argument type than the receiver. + Merge(src Message) +} + +// generatedMerger is the custom merge method that generated protos will have. +// We must add this method since a generate Merge method will conflict with +// many existing protos that have a Merge data field already defined. +type generatedMerger interface { + XXX_Merge(src Message) } // Merge merges src into dst. @@ -58,17 +75,24 @@ func Clone(pb Message) Message { // Elements of repeated fields will be appended. // Merge panics if src and dst are not the same type, or if dst is nil. func Merge(dst, src Message) { + if m, ok := dst.(Merger); ok { + m.Merge(src) + return + } + in := reflect.ValueOf(src) out := reflect.ValueOf(dst) if out.IsNil() { panic("proto: nil destination") } if in.Type() != out.Type() { - // Explicit test prior to mergeStruct so that mistyped nils will fail - panic("proto: type mismatch") + panic(fmt.Sprintf("proto.Merge(%T, %T) type mismatch", dst, src)) } if in.IsNil() { - // Merging nil into non-nil is a quiet no-op + return // Merge from nil src is a noop + } + if m, ok := dst.(generatedMerger); ok { + m.XXX_Merge(src) return } mergeStruct(out.Elem(), in.Elem()) @@ -84,7 +108,12 @@ func mergeStruct(out, in reflect.Value) { mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) } - if emIn, ok := extendable(in.Addr().Interface()); ok { + if emIn, ok := in.Addr().Interface().(extensionsBytes); ok { + emOut := out.Addr().Interface().(extensionsBytes) + bIn := emIn.GetExtensions() + bOut := emOut.GetExtensions() + *bOut = append(*bOut, *bIn...) + } else if emIn, err := extendable(in.Addr().Interface()); err == nil { emOut, _ := extendable(out.Addr().Interface()) mIn, muIn := emIn.extensionsRead() if mIn != nil { diff --git a/vendor/github.com/gogo/protobuf/proto/custom_gogo.go b/vendor/github.com/gogo/protobuf/proto/custom_gogo.go new file mode 100644 index 0000000..2455248 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/custom_gogo.go @@ -0,0 +1,39 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import "reflect" + +type custom interface { + Marshal() ([]byte, error) + Unmarshal(data []byte) error + Size() int +} + +var customType = reflect.TypeOf((*custom)(nil)).Elem() diff --git a/vendor/github.com/gogo/protobuf/proto/decode.go b/vendor/github.com/gogo/protobuf/proto/decode.go new file mode 100644 index 0000000..63b0f08 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/decode.go @@ -0,0 +1,427 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Routines for decoding protocol buffer data to construct in-memory representations. + */ + +import ( + "errors" + "fmt" + "io" +) + +// errOverflow is returned when an integer is too large to be represented. +var errOverflow = errors.New("proto: integer overflow") + +// ErrInternalBadWireType is returned by generated code when an incorrect +// wire type is encountered. It does not get returned to user code. +var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") + +// DecodeVarint reads a varint-encoded integer from the slice. +// It returns the integer and the number of bytes consumed, or +// zero if there is not enough. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +func DecodeVarint(buf []byte) (x uint64, n int) { + for shift := uint(0); shift < 64; shift += 7 { + if n >= len(buf) { + return 0, 0 + } + b := uint64(buf[n]) + n++ + x |= (b & 0x7F) << shift + if (b & 0x80) == 0 { + return x, n + } + } + + // The number is too large to represent in a 64-bit value. + return 0, 0 +} + +func (p *Buffer) decodeVarintSlow() (x uint64, err error) { + i := p.index + l := len(p.buf) + + for shift := uint(0); shift < 64; shift += 7 { + if i >= l { + err = io.ErrUnexpectedEOF + return + } + b := p.buf[i] + i++ + x |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + p.index = i + return + } + } + + // The number is too large to represent in a 64-bit value. + err = errOverflow + return +} + +// DecodeVarint reads a varint-encoded integer from the Buffer. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +func (p *Buffer) DecodeVarint() (x uint64, err error) { + i := p.index + buf := p.buf + + if i >= len(buf) { + return 0, io.ErrUnexpectedEOF + } else if buf[i] < 0x80 { + p.index++ + return uint64(buf[i]), nil + } else if len(buf)-i < 10 { + return p.decodeVarintSlow() + } + + var b uint64 + // we already checked the first byte + x = uint64(buf[i]) - 0x80 + i++ + + b = uint64(buf[i]) + i++ + x += b << 7 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 7 + + b = uint64(buf[i]) + i++ + x += b << 14 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 14 + + b = uint64(buf[i]) + i++ + x += b << 21 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 21 + + b = uint64(buf[i]) + i++ + x += b << 28 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 28 + + b = uint64(buf[i]) + i++ + x += b << 35 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 35 + + b = uint64(buf[i]) + i++ + x += b << 42 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 42 + + b = uint64(buf[i]) + i++ + x += b << 49 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 49 + + b = uint64(buf[i]) + i++ + x += b << 56 + if b&0x80 == 0 { + goto done + } + x -= 0x80 << 56 + + b = uint64(buf[i]) + i++ + x += b << 63 + if b&0x80 == 0 { + goto done + } + + return 0, errOverflow + +done: + p.index = i + return x, nil +} + +// DecodeFixed64 reads a 64-bit integer from the Buffer. +// This is the format for the +// fixed64, sfixed64, and double protocol buffer types. +func (p *Buffer) DecodeFixed64() (x uint64, err error) { + // x, err already 0 + i := p.index + 8 + if i < 0 || i > len(p.buf) { + err = io.ErrUnexpectedEOF + return + } + p.index = i + + x = uint64(p.buf[i-8]) + x |= uint64(p.buf[i-7]) << 8 + x |= uint64(p.buf[i-6]) << 16 + x |= uint64(p.buf[i-5]) << 24 + x |= uint64(p.buf[i-4]) << 32 + x |= uint64(p.buf[i-3]) << 40 + x |= uint64(p.buf[i-2]) << 48 + x |= uint64(p.buf[i-1]) << 56 + return +} + +// DecodeFixed32 reads a 32-bit integer from the Buffer. +// This is the format for the +// fixed32, sfixed32, and float protocol buffer types. +func (p *Buffer) DecodeFixed32() (x uint64, err error) { + // x, err already 0 + i := p.index + 4 + if i < 0 || i > len(p.buf) { + err = io.ErrUnexpectedEOF + return + } + p.index = i + + x = uint64(p.buf[i-4]) + x |= uint64(p.buf[i-3]) << 8 + x |= uint64(p.buf[i-2]) << 16 + x |= uint64(p.buf[i-1]) << 24 + return +} + +// DecodeZigzag64 reads a zigzag-encoded 64-bit integer +// from the Buffer. +// This is the format used for the sint64 protocol buffer type. +func (p *Buffer) DecodeZigzag64() (x uint64, err error) { + x, err = p.DecodeVarint() + if err != nil { + return + } + x = (x >> 1) ^ uint64((int64(x&1)<<63)>>63) + return +} + +// DecodeZigzag32 reads a zigzag-encoded 32-bit integer +// from the Buffer. +// This is the format used for the sint32 protocol buffer type. +func (p *Buffer) DecodeZigzag32() (x uint64, err error) { + x, err = p.DecodeVarint() + if err != nil { + return + } + x = uint64((uint32(x) >> 1) ^ uint32((int32(x&1)<<31)>>31)) + return +} + +// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. +// This is the format used for the bytes protocol buffer +// type and for embedded messages. +func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) { + n, err := p.DecodeVarint() + if err != nil { + return nil, err + } + + nb := int(n) + if nb < 0 { + return nil, fmt.Errorf("proto: bad byte length %d", nb) + } + end := p.index + nb + if end < p.index || end > len(p.buf) { + return nil, io.ErrUnexpectedEOF + } + + if !alloc { + // todo: check if can get more uses of alloc=false + buf = p.buf[p.index:end] + p.index += nb + return + } + + buf = make([]byte, nb) + copy(buf, p.buf[p.index:]) + p.index += nb + return +} + +// DecodeStringBytes reads an encoded string from the Buffer. +// This is the format used for the proto2 string type. +func (p *Buffer) DecodeStringBytes() (s string, err error) { + buf, err := p.DecodeRawBytes(false) + if err != nil { + return + } + return string(buf), nil +} + +// Unmarshaler is the interface representing objects that can +// unmarshal themselves. The argument points to data that may be +// overwritten, so implementations should not keep references to the +// buffer. +// Unmarshal implementations should not clear the receiver. +// Any unmarshaled data should be merged into the receiver. +// Callers of Unmarshal that do not want to retain existing data +// should Reset the receiver before calling Unmarshal. +type Unmarshaler interface { + Unmarshal([]byte) error +} + +// newUnmarshaler is the interface representing objects that can +// unmarshal themselves. The semantics are identical to Unmarshaler. +// +// This exists to support protoc-gen-go generated messages. +// The proto package will stop type-asserting to this interface in the future. +// +// DO NOT DEPEND ON THIS. +type newUnmarshaler interface { + XXX_Unmarshal([]byte) error +} + +// Unmarshal parses the protocol buffer representation in buf and places the +// decoded result in pb. If the struct underlying pb does not match +// the data in buf, the results can be unpredictable. +// +// Unmarshal resets pb before starting to unmarshal, so any +// existing data in pb is always removed. Use UnmarshalMerge +// to preserve and append to existing data. +func Unmarshal(buf []byte, pb Message) error { + pb.Reset() + if u, ok := pb.(newUnmarshaler); ok { + return u.XXX_Unmarshal(buf) + } + if u, ok := pb.(Unmarshaler); ok { + return u.Unmarshal(buf) + } + return NewBuffer(buf).Unmarshal(pb) +} + +// UnmarshalMerge parses the protocol buffer representation in buf and +// writes the decoded result to pb. If the struct underlying pb does not match +// the data in buf, the results can be unpredictable. +// +// UnmarshalMerge merges into existing data in pb. +// Most code should use Unmarshal instead. +func UnmarshalMerge(buf []byte, pb Message) error { + if u, ok := pb.(newUnmarshaler); ok { + return u.XXX_Unmarshal(buf) + } + if u, ok := pb.(Unmarshaler); ok { + // NOTE: The history of proto have unfortunately been inconsistent + // whether Unmarshaler should or should not implicitly clear itself. + // Some implementations do, most do not. + // Thus, calling this here may or may not do what people want. + // + // See https://github.com/golang/protobuf/issues/424 + return u.Unmarshal(buf) + } + return NewBuffer(buf).Unmarshal(pb) +} + +// DecodeMessage reads a count-delimited message from the Buffer. +func (p *Buffer) DecodeMessage(pb Message) error { + enc, err := p.DecodeRawBytes(false) + if err != nil { + return err + } + return NewBuffer(enc).Unmarshal(pb) +} + +// DecodeGroup reads a tag-delimited group from the Buffer. +// StartGroup tag is already consumed. This function consumes +// EndGroup tag. +func (p *Buffer) DecodeGroup(pb Message) error { + b := p.buf[p.index:] + x, y := findEndGroup(b) + if x < 0 { + return io.ErrUnexpectedEOF + } + err := Unmarshal(b[:x], pb) + p.index += y + return err +} + +// Unmarshal parses the protocol buffer representation in the +// Buffer and places the decoded result in pb. If the struct +// underlying pb does not match the data in the buffer, the results can be +// unpredictable. +// +// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal. +func (p *Buffer) Unmarshal(pb Message) error { + // If the object can unmarshal itself, let it. + if u, ok := pb.(newUnmarshaler); ok { + err := u.XXX_Unmarshal(p.buf[p.index:]) + p.index = len(p.buf) + return err + } + if u, ok := pb.(Unmarshaler); ok { + // NOTE: The history of proto have unfortunately been inconsistent + // whether Unmarshaler should or should not implicitly clear itself. + // Some implementations do, most do not. + // Thus, calling this here may or may not do what people want. + // + // See https://github.com/golang/protobuf/issues/424 + err := u.Unmarshal(p.buf[p.index:]) + p.index = len(p.buf) + return err + } + + // Slow workaround for messages that aren't Unmarshalers. + // This includes some hand-coded .pb.go files and + // bootstrap protos. + // TODO: fix all of those and then add Unmarshal to + // the Message interface. Then: + // The cast above and code below can be deleted. + // The old unmarshaler can be deleted. + // Clients can call Unmarshal directly (can already do that, actually). + var info InternalMessageInfo + err := info.Unmarshal(pb, p.buf[p.index:]) + p.index = len(p.buf) + return err +} diff --git a/vendor/github.com/gogo/protobuf/proto/deprecated.go b/vendor/github.com/gogo/protobuf/proto/deprecated.go new file mode 100644 index 0000000..35b882c --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/deprecated.go @@ -0,0 +1,63 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2018 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import "errors" + +// Deprecated: do not use. +type Stats struct{ Emalloc, Dmalloc, Encode, Decode, Chit, Cmiss, Size uint64 } + +// Deprecated: do not use. +func GetStats() Stats { return Stats{} } + +// Deprecated: do not use. +func MarshalMessageSet(interface{}) ([]byte, error) { + return nil, errors.New("proto: not implemented") +} + +// Deprecated: do not use. +func UnmarshalMessageSet([]byte, interface{}) error { + return errors.New("proto: not implemented") +} + +// Deprecated: do not use. +func MarshalMessageSetJSON(interface{}) ([]byte, error) { + return nil, errors.New("proto: not implemented") +} + +// Deprecated: do not use. +func UnmarshalMessageSetJSON([]byte, interface{}) error { + return errors.New("proto: not implemented") +} + +// Deprecated: do not use. +func RegisterMessageSetType(Message, int32, string) {} diff --git a/vendor/github.com/gogo/protobuf/proto/discard.go b/vendor/github.com/gogo/protobuf/proto/discard.go new file mode 100644 index 0000000..fe1bd7d --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/discard.go @@ -0,0 +1,350 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2017 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "fmt" + "reflect" + "strings" + "sync" + "sync/atomic" +) + +type generatedDiscarder interface { + XXX_DiscardUnknown() +} + +// DiscardUnknown recursively discards all unknown fields from this message +// and all embedded messages. +// +// When unmarshaling a message with unrecognized fields, the tags and values +// of such fields are preserved in the Message. This allows a later call to +// marshal to be able to produce a message that continues to have those +// unrecognized fields. To avoid this, DiscardUnknown is used to +// explicitly clear the unknown fields after unmarshaling. +// +// For proto2 messages, the unknown fields of message extensions are only +// discarded from messages that have been accessed via GetExtension. +func DiscardUnknown(m Message) { + if m, ok := m.(generatedDiscarder); ok { + m.XXX_DiscardUnknown() + return + } + // TODO: Dynamically populate a InternalMessageInfo for legacy messages, + // but the master branch has no implementation for InternalMessageInfo, + // so it would be more work to replicate that approach. + discardLegacy(m) +} + +// DiscardUnknown recursively discards all unknown fields. +func (a *InternalMessageInfo) DiscardUnknown(m Message) { + di := atomicLoadDiscardInfo(&a.discard) + if di == nil { + di = getDiscardInfo(reflect.TypeOf(m).Elem()) + atomicStoreDiscardInfo(&a.discard, di) + } + di.discard(toPointer(&m)) +} + +type discardInfo struct { + typ reflect.Type + + initialized int32 // 0: only typ is valid, 1: everything is valid + lock sync.Mutex + + fields []discardFieldInfo + unrecognized field +} + +type discardFieldInfo struct { + field field // Offset of field, guaranteed to be valid + discard func(src pointer) +} + +var ( + discardInfoMap = map[reflect.Type]*discardInfo{} + discardInfoLock sync.Mutex +) + +func getDiscardInfo(t reflect.Type) *discardInfo { + discardInfoLock.Lock() + defer discardInfoLock.Unlock() + di := discardInfoMap[t] + if di == nil { + di = &discardInfo{typ: t} + discardInfoMap[t] = di + } + return di +} + +func (di *discardInfo) discard(src pointer) { + if src.isNil() { + return // Nothing to do. + } + + if atomic.LoadInt32(&di.initialized) == 0 { + di.computeDiscardInfo() + } + + for _, fi := range di.fields { + sfp := src.offset(fi.field) + fi.discard(sfp) + } + + // For proto2 messages, only discard unknown fields in message extensions + // that have been accessed via GetExtension. + if em, err := extendable(src.asPointerTo(di.typ).Interface()); err == nil { + // Ignore lock since DiscardUnknown is not concurrency safe. + emm, _ := em.extensionsRead() + for _, mx := range emm { + if m, ok := mx.value.(Message); ok { + DiscardUnknown(m) + } + } + } + + if di.unrecognized.IsValid() { + *src.offset(di.unrecognized).toBytes() = nil + } +} + +func (di *discardInfo) computeDiscardInfo() { + di.lock.Lock() + defer di.lock.Unlock() + if di.initialized != 0 { + return + } + t := di.typ + n := t.NumField() + + for i := 0; i < n; i++ { + f := t.Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + + dfi := discardFieldInfo{field: toField(&f)} + tf := f.Type + + // Unwrap tf to get its most basic type. + var isPointer, isSlice bool + if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { + isSlice = true + tf = tf.Elem() + } + if tf.Kind() == reflect.Ptr { + isPointer = true + tf = tf.Elem() + } + if isPointer && isSlice && tf.Kind() != reflect.Struct { + panic(fmt.Sprintf("%v.%s cannot be a slice of pointers to primitive types", t, f.Name)) + } + + switch tf.Kind() { + case reflect.Struct: + switch { + case !isPointer: + panic(fmt.Sprintf("%v.%s cannot be a direct struct value", t, f.Name)) + case isSlice: // E.g., []*pb.T + discardInfo := getDiscardInfo(tf) + dfi.discard = func(src pointer) { + sps := src.getPointerSlice() + for _, sp := range sps { + if !sp.isNil() { + discardInfo.discard(sp) + } + } + } + default: // E.g., *pb.T + discardInfo := getDiscardInfo(tf) + dfi.discard = func(src pointer) { + sp := src.getPointer() + if !sp.isNil() { + discardInfo.discard(sp) + } + } + } + case reflect.Map: + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%v.%s cannot be a pointer to a map or a slice of map values", t, f.Name)) + default: // E.g., map[K]V + if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T) + dfi.discard = func(src pointer) { + sm := src.asPointerTo(tf).Elem() + if sm.Len() == 0 { + return + } + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + DiscardUnknown(val.Interface().(Message)) + } + } + } else { + dfi.discard = func(pointer) {} // Noop + } + } + case reflect.Interface: + // Must be oneof field. + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%v.%s cannot be a pointer to a interface or a slice of interface values", t, f.Name)) + default: // E.g., interface{} + // TODO: Make this faster? + dfi.discard = func(src pointer) { + su := src.asPointerTo(tf).Elem() + if !su.IsNil() { + sv := su.Elem().Elem().Field(0) + if sv.Kind() == reflect.Ptr && sv.IsNil() { + return + } + switch sv.Type().Kind() { + case reflect.Ptr: // Proto struct (e.g., *T) + DiscardUnknown(sv.Interface().(Message)) + } + } + } + } + default: + continue + } + di.fields = append(di.fields, dfi) + } + + di.unrecognized = invalidField + if f, ok := t.FieldByName("XXX_unrecognized"); ok { + if f.Type != reflect.TypeOf([]byte{}) { + panic("expected XXX_unrecognized to be of type []byte") + } + di.unrecognized = toField(&f) + } + + atomic.StoreInt32(&di.initialized, 1) +} + +func discardLegacy(m Message) { + v := reflect.ValueOf(m) + if v.Kind() != reflect.Ptr || v.IsNil() { + return + } + v = v.Elem() + if v.Kind() != reflect.Struct { + return + } + t := v.Type() + + for i := 0; i < v.NumField(); i++ { + f := t.Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + vf := v.Field(i) + tf := f.Type + + // Unwrap tf to get its most basic type. + var isPointer, isSlice bool + if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { + isSlice = true + tf = tf.Elem() + } + if tf.Kind() == reflect.Ptr { + isPointer = true + tf = tf.Elem() + } + if isPointer && isSlice && tf.Kind() != reflect.Struct { + panic(fmt.Sprintf("%T.%s cannot be a slice of pointers to primitive types", m, f.Name)) + } + + switch tf.Kind() { + case reflect.Struct: + switch { + case !isPointer: + panic(fmt.Sprintf("%T.%s cannot be a direct struct value", m, f.Name)) + case isSlice: // E.g., []*pb.T + for j := 0; j < vf.Len(); j++ { + discardLegacy(vf.Index(j).Interface().(Message)) + } + default: // E.g., *pb.T + discardLegacy(vf.Interface().(Message)) + } + case reflect.Map: + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%T.%s cannot be a pointer to a map or a slice of map values", m, f.Name)) + default: // E.g., map[K]V + tv := vf.Type().Elem() + if tv.Kind() == reflect.Ptr && tv.Implements(protoMessageType) { // Proto struct (e.g., *T) + for _, key := range vf.MapKeys() { + val := vf.MapIndex(key) + discardLegacy(val.Interface().(Message)) + } + } + } + case reflect.Interface: + // Must be oneof field. + switch { + case isPointer || isSlice: + panic(fmt.Sprintf("%T.%s cannot be a pointer to a interface or a slice of interface values", m, f.Name)) + default: // E.g., test_proto.isCommunique_Union interface + if !vf.IsNil() && f.Tag.Get("protobuf_oneof") != "" { + vf = vf.Elem() // E.g., *test_proto.Communique_Msg + if !vf.IsNil() { + vf = vf.Elem() // E.g., test_proto.Communique_Msg + vf = vf.Field(0) // E.g., Proto struct (e.g., *T) or primitive value + if vf.Kind() == reflect.Ptr { + discardLegacy(vf.Interface().(Message)) + } + } + } + } + } + } + + if vf := v.FieldByName("XXX_unrecognized"); vf.IsValid() { + if vf.Type() != reflect.TypeOf([]byte{}) { + panic("expected XXX_unrecognized to be of type []byte") + } + vf.Set(reflect.ValueOf([]byte(nil))) + } + + // For proto2 messages, only discard unknown fields in message extensions + // that have been accessed via GetExtension. + if em, err := extendable(m); err == nil { + // Ignore lock since discardLegacy is not concurrency safe. + emm, _ := em.extensionsRead() + for _, mx := range emm { + if m, ok := mx.value.(Message); ok { + discardLegacy(m) + } + } + } +} diff --git a/vendor/github.com/gogo/protobuf/proto/duration.go b/vendor/github.com/gogo/protobuf/proto/duration.go new file mode 100644 index 0000000..93464c9 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/duration.go @@ -0,0 +1,100 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +// This file implements conversions between google.protobuf.Duration +// and time.Duration. + +import ( + "errors" + "fmt" + "time" +) + +const ( + // Range of a Duration in seconds, as specified in + // google/protobuf/duration.proto. This is about 10,000 years in seconds. + maxSeconds = int64(10000 * 365.25 * 24 * 60 * 60) + minSeconds = -maxSeconds +) + +// validateDuration determines whether the Duration is valid according to the +// definition in google/protobuf/duration.proto. A valid Duration +// may still be too large to fit into a time.Duration (the range of Duration +// is about 10,000 years, and the range of time.Duration is about 290). +func validateDuration(d *duration) error { + if d == nil { + return errors.New("duration: nil Duration") + } + if d.Seconds < minSeconds || d.Seconds > maxSeconds { + return fmt.Errorf("duration: %#v: seconds out of range", d) + } + if d.Nanos <= -1e9 || d.Nanos >= 1e9 { + return fmt.Errorf("duration: %#v: nanos out of range", d) + } + // Seconds and Nanos must have the same sign, unless d.Nanos is zero. + if (d.Seconds < 0 && d.Nanos > 0) || (d.Seconds > 0 && d.Nanos < 0) { + return fmt.Errorf("duration: %#v: seconds and nanos have different signs", d) + } + return nil +} + +// DurationFromProto converts a Duration to a time.Duration. DurationFromProto +// returns an error if the Duration is invalid or is too large to be +// represented in a time.Duration. +func durationFromProto(p *duration) (time.Duration, error) { + if err := validateDuration(p); err != nil { + return 0, err + } + d := time.Duration(p.Seconds) * time.Second + if int64(d/time.Second) != p.Seconds { + return 0, fmt.Errorf("duration: %#v is out of range for time.Duration", p) + } + if p.Nanos != 0 { + d += time.Duration(p.Nanos) + if (d < 0) != (p.Nanos < 0) { + return 0, fmt.Errorf("duration: %#v is out of range for time.Duration", p) + } + } + return d, nil +} + +// DurationProto converts a time.Duration to a Duration. +func durationProto(d time.Duration) *duration { + nanos := d.Nanoseconds() + secs := nanos / 1e9 + nanos -= secs * 1e9 + return &duration{ + Seconds: secs, + Nanos: int32(nanos), + } +} diff --git a/vendor/github.com/gogo/protobuf/proto/duration_gogo.go b/vendor/github.com/gogo/protobuf/proto/duration_gogo.go new file mode 100644 index 0000000..e748e17 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/duration_gogo.go @@ -0,0 +1,49 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2016, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "reflect" + "time" +) + +var durationType = reflect.TypeOf((*time.Duration)(nil)).Elem() + +type duration struct { + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +func (m *duration) Reset() { *m = duration{} } +func (*duration) ProtoMessage() {} +func (*duration) String() string { return "duration" } + +func init() { + RegisterType((*duration)(nil), "gogo.protobuf.proto.duration") +} diff --git a/vendor/github.com/gogo/protobuf/proto/encode.go b/vendor/github.com/gogo/protobuf/proto/encode.go new file mode 100644 index 0000000..9581ccd --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/encode.go @@ -0,0 +1,205 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Routines for encoding data into the wire format for protocol buffers. + */ + +import ( + "errors" + "reflect" +) + +var ( + // errRepeatedHasNil is the error returned if Marshal is called with + // a struct with a repeated field containing a nil element. + errRepeatedHasNil = errors.New("proto: repeated field has nil element") + + // errOneofHasNil is the error returned if Marshal is called with + // a struct with a oneof field containing a nil element. + errOneofHasNil = errors.New("proto: oneof field has nil value") + + // ErrNil is the error returned if Marshal is called with nil. + ErrNil = errors.New("proto: Marshal called with nil") + + // ErrTooLarge is the error returned if Marshal is called with a + // message that encodes to >2GB. + ErrTooLarge = errors.New("proto: message encodes to over 2 GB") +) + +// The fundamental encoders that put bytes on the wire. +// Those that take integer types all accept uint64 and are +// therefore of type valueEncoder. + +const maxVarintBytes = 10 // maximum length of a varint + +// EncodeVarint returns the varint encoding of x. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +// Not used by the package itself, but helpful to clients +// wishing to use the same encoding. +func EncodeVarint(x uint64) []byte { + var buf [maxVarintBytes]byte + var n int + for n = 0; x > 127; n++ { + buf[n] = 0x80 | uint8(x&0x7F) + x >>= 7 + } + buf[n] = uint8(x) + n++ + return buf[0:n] +} + +// EncodeVarint writes a varint-encoded integer to the Buffer. +// This is the format for the +// int32, int64, uint32, uint64, bool, and enum +// protocol buffer types. +func (p *Buffer) EncodeVarint(x uint64) error { + for x >= 1<<7 { + p.buf = append(p.buf, uint8(x&0x7f|0x80)) + x >>= 7 + } + p.buf = append(p.buf, uint8(x)) + return nil +} + +// SizeVarint returns the varint encoding size of an integer. +func SizeVarint(x uint64) int { + switch { + case x < 1<<7: + return 1 + case x < 1<<14: + return 2 + case x < 1<<21: + return 3 + case x < 1<<28: + return 4 + case x < 1<<35: + return 5 + case x < 1<<42: + return 6 + case x < 1<<49: + return 7 + case x < 1<<56: + return 8 + case x < 1<<63: + return 9 + } + return 10 +} + +// EncodeFixed64 writes a 64-bit integer to the Buffer. +// This is the format for the +// fixed64, sfixed64, and double protocol buffer types. +func (p *Buffer) EncodeFixed64(x uint64) error { + p.buf = append(p.buf, + uint8(x), + uint8(x>>8), + uint8(x>>16), + uint8(x>>24), + uint8(x>>32), + uint8(x>>40), + uint8(x>>48), + uint8(x>>56)) + return nil +} + +// EncodeFixed32 writes a 32-bit integer to the Buffer. +// This is the format for the +// fixed32, sfixed32, and float protocol buffer types. +func (p *Buffer) EncodeFixed32(x uint64) error { + p.buf = append(p.buf, + uint8(x), + uint8(x>>8), + uint8(x>>16), + uint8(x>>24)) + return nil +} + +// EncodeZigzag64 writes a zigzag-encoded 64-bit integer +// to the Buffer. +// This is the format used for the sint64 protocol buffer type. +func (p *Buffer) EncodeZigzag64(x uint64) error { + // use signed number to get arithmetic right shift. + return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} + +// EncodeZigzag32 writes a zigzag-encoded 32-bit integer +// to the Buffer. +// This is the format used for the sint32 protocol buffer type. +func (p *Buffer) EncodeZigzag32(x uint64) error { + // use signed number to get arithmetic right shift. + return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) +} + +// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. +// This is the format used for the bytes protocol buffer +// type and for embedded messages. +func (p *Buffer) EncodeRawBytes(b []byte) error { + p.EncodeVarint(uint64(len(b))) + p.buf = append(p.buf, b...) + return nil +} + +// EncodeStringBytes writes an encoded string to the Buffer. +// This is the format used for the proto2 string type. +func (p *Buffer) EncodeStringBytes(s string) error { + p.EncodeVarint(uint64(len(s))) + p.buf = append(p.buf, s...) + return nil +} + +// Marshaler is the interface representing objects that can marshal themselves. +type Marshaler interface { + Marshal() ([]byte, error) +} + +// EncodeMessage writes the protocol buffer to the Buffer, +// prefixed by a varint-encoded length. +func (p *Buffer) EncodeMessage(pb Message) error { + siz := Size(pb) + sizVar := SizeVarint(uint64(siz)) + p.grow(siz + sizVar) + p.EncodeVarint(uint64(siz)) + return p.Marshal(pb) +} + +// All protocol buffer fields are nillable, but be careful. +func isNil(v reflect.Value) bool { + switch v.Kind() { + case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: + return v.IsNil() + } + return false +} diff --git a/vendor/github.com/gogo/protobuf/proto/encode_gogo.go b/vendor/github.com/gogo/protobuf/proto/encode_gogo.go new file mode 100644 index 0000000..0f5fb17 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/encode_gogo.go @@ -0,0 +1,33 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +func NewRequiredNotSetError(field string) *RequiredNotSetError { + return &RequiredNotSetError{field} +} diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/gogo/protobuf/proto/equal.go similarity index 94% rename from vendor/github.com/golang/protobuf/proto/equal.go rename to vendor/github.com/gogo/protobuf/proto/equal.go index 2ed1cf5..d4db5a1 100644 --- a/vendor/github.com/golang/protobuf/proto/equal.go +++ b/vendor/github.com/gogo/protobuf/proto/equal.go @@ -109,15 +109,6 @@ func equalStruct(v1, v2 reflect.Value) bool { // set/unset mismatch return false } - b1, ok := f1.Interface().(raw) - if ok { - b2 := f2.Interface().(raw) - // RawMessage - if !bytes.Equal(b1.Bytes(), b2.Bytes()) { - return false - } - continue - } f1, f2 = f1.Elem(), f2.Elem() } if !equalAny(f1, f2, sprop.Prop[i]) { @@ -146,11 +137,7 @@ func equalStruct(v1, v2 reflect.Value) bool { u1 := uf.Bytes() u2 := v2.FieldByName("XXX_unrecognized").Bytes() - if !bytes.Equal(u1, u2) { - return false - } - - return true + return bytes.Equal(u1, u2) } // v1 and v2 are known to have the same type. @@ -261,6 +248,15 @@ func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool { m1, m2 := e1.value, e2.value + if m1 == nil && m2 == nil { + // Both have only encoded form. + if bytes.Equal(e1.enc, e2.enc) { + continue + } + // The bytes are different, but the extensions might still be + // equal. We need to decode them to compare. + } + if m1 != nil && m2 != nil { // Both are unencoded. if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { @@ -276,8 +272,12 @@ func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool { desc = m[extNum] } if desc == nil { + // If both have only encoded form and the bytes are the same, + // it is handled above. We get here when the bytes are different. + // We don't know how to decode it, so just compare them as byte + // slices. log.Printf("proto: don't know how to compare extension %d of %v", extNum, base) - continue + return false } var err error if m1 == nil { diff --git a/vendor/github.com/gogo/protobuf/proto/extensions.go b/vendor/github.com/gogo/protobuf/proto/extensions.go new file mode 100644 index 0000000..341c6f5 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/extensions.go @@ -0,0 +1,605 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Types and routines for supporting protocol buffer extensions. + */ + +import ( + "errors" + "fmt" + "io" + "reflect" + "strconv" + "sync" +) + +// ErrMissingExtension is the error returned by GetExtension if the named extension is not in the message. +var ErrMissingExtension = errors.New("proto: missing extension") + +// ExtensionRange represents a range of message extensions for a protocol buffer. +// Used in code generated by the protocol compiler. +type ExtensionRange struct { + Start, End int32 // both inclusive +} + +// extendableProto is an interface implemented by any protocol buffer generated by the current +// proto compiler that may be extended. +type extendableProto interface { + Message + ExtensionRangeArray() []ExtensionRange + extensionsWrite() map[int32]Extension + extensionsRead() (map[int32]Extension, sync.Locker) +} + +// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous +// version of the proto compiler that may be extended. +type extendableProtoV1 interface { + Message + ExtensionRangeArray() []ExtensionRange + ExtensionMap() map[int32]Extension +} + +// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto. +type extensionAdapter struct { + extendableProtoV1 +} + +func (e extensionAdapter) extensionsWrite() map[int32]Extension { + return e.ExtensionMap() +} + +func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { + return e.ExtensionMap(), notLocker{} +} + +// notLocker is a sync.Locker whose Lock and Unlock methods are nops. +type notLocker struct{} + +func (n notLocker) Lock() {} +func (n notLocker) Unlock() {} + +// extendable returns the extendableProto interface for the given generated proto message. +// If the proto message has the old extension format, it returns a wrapper that implements +// the extendableProto interface. +func extendable(p interface{}) (extendableProto, error) { + switch p := p.(type) { + case extendableProto: + if isNilPtr(p) { + return nil, fmt.Errorf("proto: nil %T is not extendable", p) + } + return p, nil + case extendableProtoV1: + if isNilPtr(p) { + return nil, fmt.Errorf("proto: nil %T is not extendable", p) + } + return extensionAdapter{p}, nil + case extensionsBytes: + return slowExtensionAdapter{p}, nil + } + // Don't allocate a specific error containing %T: + // this is the hot path for Clone and MarshalText. + return nil, errNotExtendable +} + +var errNotExtendable = errors.New("proto: not an extendable proto.Message") + +func isNilPtr(x interface{}) bool { + v := reflect.ValueOf(x) + return v.Kind() == reflect.Ptr && v.IsNil() +} + +// XXX_InternalExtensions is an internal representation of proto extensions. +// +// Each generated message struct type embeds an anonymous XXX_InternalExtensions field, +// thus gaining the unexported 'extensions' method, which can be called only from the proto package. +// +// The methods of XXX_InternalExtensions are not concurrency safe in general, +// but calls to logically read-only methods such as has and get may be executed concurrently. +type XXX_InternalExtensions struct { + // The struct must be indirect so that if a user inadvertently copies a + // generated message and its embedded XXX_InternalExtensions, they + // avoid the mayhem of a copied mutex. + // + // The mutex serializes all logically read-only operations to p.extensionMap. + // It is up to the client to ensure that write operations to p.extensionMap are + // mutually exclusive with other accesses. + p *struct { + mu sync.Mutex + extensionMap map[int32]Extension + } +} + +// extensionsWrite returns the extension map, creating it on first use. +func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension { + if e.p == nil { + e.p = new(struct { + mu sync.Mutex + extensionMap map[int32]Extension + }) + e.p.extensionMap = make(map[int32]Extension) + } + return e.p.extensionMap +} + +// extensionsRead returns the extensions map for read-only use. It may be nil. +// The caller must hold the returned mutex's lock when accessing Elements within the map. +func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) { + if e.p == nil { + return nil, nil + } + return e.p.extensionMap, &e.p.mu +} + +// ExtensionDesc represents an extension specification. +// Used in generated code from the protocol compiler. +type ExtensionDesc struct { + ExtendedType Message // nil pointer to the type that is being extended + ExtensionType interface{} // nil pointer to the extension type + Field int32 // field number + Name string // fully-qualified name of extension, for text formatting + Tag string // protobuf tag style + Filename string // name of the file in which the extension is defined +} + +func (ed *ExtensionDesc) repeated() bool { + t := reflect.TypeOf(ed.ExtensionType) + return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 +} + +// Extension represents an extension in a message. +type Extension struct { + // When an extension is stored in a message using SetExtension + // only desc and value are set. When the message is marshaled + // enc will be set to the encoded form of the message. + // + // When a message is unmarshaled and contains extensions, each + // extension will have only enc set. When such an extension is + // accessed using GetExtension (or GetExtensions) desc and value + // will be set. + desc *ExtensionDesc + value interface{} + enc []byte +} + +// SetRawExtension is for testing only. +func SetRawExtension(base Message, id int32, b []byte) { + if ebase, ok := base.(extensionsBytes); ok { + clearExtension(base, id) + ext := ebase.GetExtensions() + *ext = append(*ext, b...) + return + } + epb, err := extendable(base) + if err != nil { + return + } + extmap := epb.extensionsWrite() + extmap[id] = Extension{enc: b} +} + +// isExtensionField returns true iff the given field number is in an extension range. +func isExtensionField(pb extendableProto, field int32) bool { + for _, er := range pb.ExtensionRangeArray() { + if er.Start <= field && field <= er.End { + return true + } + } + return false +} + +// checkExtensionTypes checks that the given extension is valid for pb. +func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error { + var pbi interface{} = pb + // Check the extended type. + if ea, ok := pbi.(extensionAdapter); ok { + pbi = ea.extendableProtoV1 + } + if ea, ok := pbi.(slowExtensionAdapter); ok { + pbi = ea.extensionsBytes + } + if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { + return fmt.Errorf("proto: bad extended type; %v does not extend %v", b, a) + } + // Check the range. + if !isExtensionField(pb, extension.Field) { + return errors.New("proto: bad extension number; not in declared ranges") + } + return nil +} + +// extPropKey is sufficient to uniquely identify an extension. +type extPropKey struct { + base reflect.Type + field int32 +} + +var extProp = struct { + sync.RWMutex + m map[extPropKey]*Properties +}{ + m: make(map[extPropKey]*Properties), +} + +func extensionProperties(ed *ExtensionDesc) *Properties { + key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field} + + extProp.RLock() + if prop, ok := extProp.m[key]; ok { + extProp.RUnlock() + return prop + } + extProp.RUnlock() + + extProp.Lock() + defer extProp.Unlock() + // Check again. + if prop, ok := extProp.m[key]; ok { + return prop + } + + prop := new(Properties) + prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil) + extProp.m[key] = prop + return prop +} + +// HasExtension returns whether the given extension is present in pb. +func HasExtension(pb Message, extension *ExtensionDesc) bool { + if epb, doki := pb.(extensionsBytes); doki { + ext := epb.GetExtensions() + buf := *ext + o := 0 + for o < len(buf) { + tag, n := DecodeVarint(buf[o:]) + fieldNum := int32(tag >> 3) + if int32(fieldNum) == extension.Field { + return true + } + wireType := int(tag & 0x7) + o += n + l, err := size(buf[o:], wireType) + if err != nil { + return false + } + o += l + } + return false + } + // TODO: Check types, field numbers, etc.? + epb, err := extendable(pb) + if err != nil { + return false + } + extmap, mu := epb.extensionsRead() + if extmap == nil { + return false + } + mu.Lock() + _, ok := extmap[extension.Field] + mu.Unlock() + return ok +} + +// ClearExtension removes the given extension from pb. +func ClearExtension(pb Message, extension *ExtensionDesc) { + clearExtension(pb, extension.Field) +} + +func clearExtension(pb Message, fieldNum int32) { + if epb, ok := pb.(extensionsBytes); ok { + offset := 0 + for offset != -1 { + offset = deleteExtension(epb, fieldNum, offset) + } + return + } + epb, err := extendable(pb) + if err != nil { + return + } + // TODO: Check types, field numbers, etc.? + extmap := epb.extensionsWrite() + delete(extmap, fieldNum) +} + +// GetExtension retrieves a proto2 extended field from pb. +// +// If the descriptor is type complete (i.e., ExtensionDesc.ExtensionType is non-nil), +// then GetExtension parses the encoded field and returns a Go value of the specified type. +// If the field is not present, then the default value is returned (if one is specified), +// otherwise ErrMissingExtension is reported. +// +// If the descriptor is not type complete (i.e., ExtensionDesc.ExtensionType is nil), +// then GetExtension returns the raw encoded bytes of the field extension. +func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { + if epb, doki := pb.(extensionsBytes); doki { + ext := epb.GetExtensions() + return decodeExtensionFromBytes(extension, *ext) + } + + epb, err := extendable(pb) + if err != nil { + return nil, err + } + + if extension.ExtendedType != nil { + // can only check type if this is a complete descriptor + if cerr := checkExtensionTypes(epb, extension); cerr != nil { + return nil, cerr + } + } + + emap, mu := epb.extensionsRead() + if emap == nil { + return defaultExtensionValue(extension) + } + mu.Lock() + defer mu.Unlock() + e, ok := emap[extension.Field] + if !ok { + // defaultExtensionValue returns the default value or + // ErrMissingExtension if there is no default. + return defaultExtensionValue(extension) + } + + if e.value != nil { + // Already decoded. Check the descriptor, though. + if e.desc != extension { + // This shouldn't happen. If it does, it means that + // GetExtension was called twice with two different + // descriptors with the same field number. + return nil, errors.New("proto: descriptor conflict") + } + return e.value, nil + } + + if extension.ExtensionType == nil { + // incomplete descriptor + return e.enc, nil + } + + v, err := decodeExtension(e.enc, extension) + if err != nil { + return nil, err + } + + // Remember the decoded version and drop the encoded version. + // That way it is safe to mutate what we return. + e.value = v + e.desc = extension + e.enc = nil + emap[extension.Field] = e + return e.value, nil +} + +// defaultExtensionValue returns the default value for extension. +// If no default for an extension is defined ErrMissingExtension is returned. +func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { + if extension.ExtensionType == nil { + // incomplete descriptor, so no default + return nil, ErrMissingExtension + } + + t := reflect.TypeOf(extension.ExtensionType) + props := extensionProperties(extension) + + sf, _, err := fieldDefault(t, props) + if err != nil { + return nil, err + } + + if sf == nil || sf.value == nil { + // There is no default value. + return nil, ErrMissingExtension + } + + if t.Kind() != reflect.Ptr { + // We do not need to return a Ptr, we can directly return sf.value. + return sf.value, nil + } + + // We need to return an interface{} that is a pointer to sf.value. + value := reflect.New(t).Elem() + value.Set(reflect.New(value.Type().Elem())) + if sf.kind == reflect.Int32 { + // We may have an int32 or an enum, but the underlying data is int32. + // Since we can't set an int32 into a non int32 reflect.value directly + // set it as a int32. + value.Elem().SetInt(int64(sf.value.(int32))) + } else { + value.Elem().Set(reflect.ValueOf(sf.value)) + } + return value.Interface(), nil +} + +// decodeExtension decodes an extension encoded in b. +func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { + t := reflect.TypeOf(extension.ExtensionType) + unmarshal := typeUnmarshaler(t, extension.Tag) + + // t is a pointer to a struct, pointer to basic type or a slice. + // Allocate space to store the pointer/slice. + value := reflect.New(t).Elem() + + var err error + for { + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + wire := int(x) & 7 + + b, err = unmarshal(b, valToPointer(value.Addr()), wire) + if err != nil { + return nil, err + } + + if len(b) == 0 { + break + } + } + return value.Interface(), nil +} + +// GetExtensions returns a slice of the extensions present in pb that are also listed in es. +// The returned slice has the same length as es; missing extensions will appear as nil elements. +func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { + epb, err := extendable(pb) + if err != nil { + return nil, err + } + extensions = make([]interface{}, len(es)) + for i, e := range es { + extensions[i], err = GetExtension(epb, e) + if err == ErrMissingExtension { + err = nil + } + if err != nil { + return + } + } + return +} + +// ExtensionDescs returns a new slice containing pb's extension descriptors, in undefined order. +// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing +// just the Field field, which defines the extension's field number. +func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) { + epb, err := extendable(pb) + if err != nil { + return nil, err + } + registeredExtensions := RegisteredExtensions(pb) + + emap, mu := epb.extensionsRead() + if emap == nil { + return nil, nil + } + mu.Lock() + defer mu.Unlock() + extensions := make([]*ExtensionDesc, 0, len(emap)) + for extid, e := range emap { + desc := e.desc + if desc == nil { + desc = registeredExtensions[extid] + if desc == nil { + desc = &ExtensionDesc{Field: extid} + } + } + + extensions = append(extensions, desc) + } + return extensions, nil +} + +// SetExtension sets the specified extension of pb to the specified value. +func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { + if epb, ok := pb.(extensionsBytes); ok { + ClearExtension(pb, extension) + newb, err := encodeExtension(extension, value) + if err != nil { + return err + } + bb := epb.GetExtensions() + *bb = append(*bb, newb...) + return nil + } + epb, err := extendable(pb) + if err != nil { + return err + } + if err := checkExtensionTypes(epb, extension); err != nil { + return err + } + typ := reflect.TypeOf(extension.ExtensionType) + if typ != reflect.TypeOf(value) { + return fmt.Errorf("proto: bad extension value type. got: %T, want: %T", value, extension.ExtensionType) + } + // nil extension values need to be caught early, because the + // encoder can't distinguish an ErrNil due to a nil extension + // from an ErrNil due to a missing field. Extensions are + // always optional, so the encoder would just swallow the error + // and drop all the extensions from the encoded message. + if reflect.ValueOf(value).IsNil() { + return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) + } + + extmap := epb.extensionsWrite() + extmap[extension.Field] = Extension{desc: extension, value: value} + return nil +} + +// ClearAllExtensions clears all extensions from pb. +func ClearAllExtensions(pb Message) { + if epb, doki := pb.(extensionsBytes); doki { + ext := epb.GetExtensions() + *ext = []byte{} + return + } + epb, err := extendable(pb) + if err != nil { + return + } + m := epb.extensionsWrite() + for k := range m { + delete(m, k) + } +} + +// A global registry of extensions. +// The generated code will register the generated descriptors by calling RegisterExtension. + +var extensionMaps = make(map[reflect.Type]map[int32]*ExtensionDesc) + +// RegisterExtension is called from the generated code. +func RegisterExtension(desc *ExtensionDesc) { + st := reflect.TypeOf(desc.ExtendedType).Elem() + m := extensionMaps[st] + if m == nil { + m = make(map[int32]*ExtensionDesc) + extensionMaps[st] = m + } + if _, ok := m[desc.Field]; ok { + panic("proto: duplicate extension registered: " + st.String() + " " + strconv.Itoa(int(desc.Field))) + } + m[desc.Field] = desc +} + +// RegisteredExtensions returns a map of the registered extensions of a +// protocol buffer struct, indexed by the extension number. +// The argument pb should be a nil pointer to the struct type. +func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { + return extensionMaps[reflect.TypeOf(pb).Elem()] +} diff --git a/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go b/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go new file mode 100644 index 0000000..6f1ae12 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/extensions_gogo.go @@ -0,0 +1,389 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "bytes" + "errors" + "fmt" + "io" + "reflect" + "sort" + "strings" + "sync" +) + +type extensionsBytes interface { + Message + ExtensionRangeArray() []ExtensionRange + GetExtensions() *[]byte +} + +type slowExtensionAdapter struct { + extensionsBytes +} + +func (s slowExtensionAdapter) extensionsWrite() map[int32]Extension { + panic("Please report a bug to github.com/gogo/protobuf if you see this message: Writing extensions is not supported for extensions stored in a byte slice field.") +} + +func (s slowExtensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { + b := s.GetExtensions() + m, err := BytesToExtensionsMap(*b) + if err != nil { + panic(err) + } + return m, notLocker{} +} + +func GetBoolExtension(pb Message, extension *ExtensionDesc, ifnotset bool) bool { + if reflect.ValueOf(pb).IsNil() { + return ifnotset + } + value, err := GetExtension(pb, extension) + if err != nil { + return ifnotset + } + if value == nil { + return ifnotset + } + if value.(*bool) == nil { + return ifnotset + } + return *(value.(*bool)) +} + +func (this *Extension) Equal(that *Extension) bool { + if err := this.Encode(); err != nil { + return false + } + if err := that.Encode(); err != nil { + return false + } + return bytes.Equal(this.enc, that.enc) +} + +func (this *Extension) Compare(that *Extension) int { + if err := this.Encode(); err != nil { + return 1 + } + if err := that.Encode(); err != nil { + return -1 + } + return bytes.Compare(this.enc, that.enc) +} + +func SizeOfInternalExtension(m extendableProto) (n int) { + info := getMarshalInfo(reflect.TypeOf(m)) + return info.sizeV1Extensions(m.extensionsWrite()) +} + +type sortableMapElem struct { + field int32 + ext Extension +} + +func newSortableExtensionsFromMap(m map[int32]Extension) sortableExtensions { + s := make(sortableExtensions, 0, len(m)) + for k, v := range m { + s = append(s, &sortableMapElem{field: k, ext: v}) + } + return s +} + +type sortableExtensions []*sortableMapElem + +func (this sortableExtensions) Len() int { return len(this) } + +func (this sortableExtensions) Swap(i, j int) { this[i], this[j] = this[j], this[i] } + +func (this sortableExtensions) Less(i, j int) bool { return this[i].field < this[j].field } + +func (this sortableExtensions) String() string { + sort.Sort(this) + ss := make([]string, len(this)) + for i := range this { + ss[i] = fmt.Sprintf("%d: %v", this[i].field, this[i].ext) + } + return "map[" + strings.Join(ss, ",") + "]" +} + +func StringFromInternalExtension(m extendableProto) string { + return StringFromExtensionsMap(m.extensionsWrite()) +} + +func StringFromExtensionsMap(m map[int32]Extension) string { + return newSortableExtensionsFromMap(m).String() +} + +func StringFromExtensionsBytes(ext []byte) string { + m, err := BytesToExtensionsMap(ext) + if err != nil { + panic(err) + } + return StringFromExtensionsMap(m) +} + +func EncodeInternalExtension(m extendableProto, data []byte) (n int, err error) { + return EncodeExtensionMap(m.extensionsWrite(), data) +} + +func EncodeInternalExtensionBackwards(m extendableProto, data []byte) (n int, err error) { + return EncodeExtensionMapBackwards(m.extensionsWrite(), data) +} + +func EncodeExtensionMap(m map[int32]Extension, data []byte) (n int, err error) { + o := 0 + for _, e := range m { + if err := e.Encode(); err != nil { + return 0, err + } + n := copy(data[o:], e.enc) + if n != len(e.enc) { + return 0, io.ErrShortBuffer + } + o += n + } + return o, nil +} + +func EncodeExtensionMapBackwards(m map[int32]Extension, data []byte) (n int, err error) { + o := 0 + end := len(data) + for _, e := range m { + if err := e.Encode(); err != nil { + return 0, err + } + n := copy(data[end-len(e.enc):], e.enc) + if n != len(e.enc) { + return 0, io.ErrShortBuffer + } + end -= n + o += n + } + return o, nil +} + +func GetRawExtension(m map[int32]Extension, id int32) ([]byte, error) { + e := m[id] + if err := e.Encode(); err != nil { + return nil, err + } + return e.enc, nil +} + +func size(buf []byte, wire int) (int, error) { + switch wire { + case WireVarint: + _, n := DecodeVarint(buf) + return n, nil + case WireFixed64: + return 8, nil + case WireBytes: + v, n := DecodeVarint(buf) + return int(v) + n, nil + case WireFixed32: + return 4, nil + case WireStartGroup: + offset := 0 + for { + u, n := DecodeVarint(buf[offset:]) + fwire := int(u & 0x7) + offset += n + if fwire == WireEndGroup { + return offset, nil + } + s, err := size(buf[offset:], wire) + if err != nil { + return 0, err + } + offset += s + } + } + return 0, fmt.Errorf("proto: can't get size for unknown wire type %d", wire) +} + +func BytesToExtensionsMap(buf []byte) (map[int32]Extension, error) { + m := make(map[int32]Extension) + i := 0 + for i < len(buf) { + tag, n := DecodeVarint(buf[i:]) + if n <= 0 { + return nil, fmt.Errorf("unable to decode varint") + } + fieldNum := int32(tag >> 3) + wireType := int(tag & 0x7) + l, err := size(buf[i+n:], wireType) + if err != nil { + return nil, err + } + end := i + int(l) + n + m[int32(fieldNum)] = Extension{enc: buf[i:end]} + i = end + } + return m, nil +} + +func NewExtension(e []byte) Extension { + ee := Extension{enc: make([]byte, len(e))} + copy(ee.enc, e) + return ee +} + +func AppendExtension(e Message, tag int32, buf []byte) { + if ee, eok := e.(extensionsBytes); eok { + ext := ee.GetExtensions() + *ext = append(*ext, buf...) + return + } + if ee, eok := e.(extendableProto); eok { + m := ee.extensionsWrite() + ext := m[int32(tag)] // may be missing + ext.enc = append(ext.enc, buf...) + m[int32(tag)] = ext + } +} + +func encodeExtension(extension *ExtensionDesc, value interface{}) ([]byte, error) { + u := getMarshalInfo(reflect.TypeOf(extension.ExtendedType)) + ei := u.getExtElemInfo(extension) + v := value + p := toAddrPointer(&v, ei.isptr) + siz := ei.sizer(p, SizeVarint(ei.wiretag)) + buf := make([]byte, 0, siz) + return ei.marshaler(buf, p, ei.wiretag, false) +} + +func decodeExtensionFromBytes(extension *ExtensionDesc, buf []byte) (interface{}, error) { + o := 0 + for o < len(buf) { + tag, n := DecodeVarint((buf)[o:]) + fieldNum := int32(tag >> 3) + wireType := int(tag & 0x7) + if o+n > len(buf) { + return nil, fmt.Errorf("unable to decode extension") + } + l, err := size((buf)[o+n:], wireType) + if err != nil { + return nil, err + } + if int32(fieldNum) == extension.Field { + if o+n+l > len(buf) { + return nil, fmt.Errorf("unable to decode extension") + } + v, err := decodeExtension((buf)[o:o+n+l], extension) + if err != nil { + return nil, err + } + return v, nil + } + o += n + l + } + return defaultExtensionValue(extension) +} + +func (this *Extension) Encode() error { + if this.enc == nil { + var err error + this.enc, err = encodeExtension(this.desc, this.value) + if err != nil { + return err + } + } + return nil +} + +func (this Extension) GoString() string { + if err := this.Encode(); err != nil { + return fmt.Sprintf("error encoding extension: %v", err) + } + return fmt.Sprintf("proto.NewExtension(%#v)", this.enc) +} + +func SetUnsafeExtension(pb Message, fieldNum int32, value interface{}) error { + typ := reflect.TypeOf(pb).Elem() + ext, ok := extensionMaps[typ] + if !ok { + return fmt.Errorf("proto: bad extended type; %s is not extendable", typ.String()) + } + desc, ok := ext[fieldNum] + if !ok { + return errors.New("proto: bad extension number; not in declared ranges") + } + return SetExtension(pb, desc, value) +} + +func GetUnsafeExtension(pb Message, fieldNum int32) (interface{}, error) { + typ := reflect.TypeOf(pb).Elem() + ext, ok := extensionMaps[typ] + if !ok { + return nil, fmt.Errorf("proto: bad extended type; %s is not extendable", typ.String()) + } + desc, ok := ext[fieldNum] + if !ok { + return nil, fmt.Errorf("unregistered field number %d", fieldNum) + } + return GetExtension(pb, desc) +} + +func NewUnsafeXXX_InternalExtensions(m map[int32]Extension) XXX_InternalExtensions { + x := &XXX_InternalExtensions{ + p: new(struct { + mu sync.Mutex + extensionMap map[int32]Extension + }), + } + x.p.extensionMap = m + return *x +} + +func GetUnsafeExtensionsMap(extendable Message) map[int32]Extension { + pb := extendable.(extendableProto) + return pb.extensionsWrite() +} + +func deleteExtension(pb extensionsBytes, theFieldNum int32, offset int) int { + ext := pb.GetExtensions() + for offset < len(*ext) { + tag, n1 := DecodeVarint((*ext)[offset:]) + fieldNum := int32(tag >> 3) + wireType := int(tag & 0x7) + n2, err := size((*ext)[offset+n1:], wireType) + if err != nil { + panic(err) + } + newOffset := offset + n1 + n2 + if fieldNum == theFieldNum { + *ext = append((*ext)[:offset], (*ext)[newOffset:]...) + return offset + } + offset = newOffset + } + return -1 +} diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/gogo/protobuf/proto/lib.go similarity index 82% rename from vendor/github.com/golang/protobuf/proto/lib.go rename to vendor/github.com/gogo/protobuf/proto/lib.go index 1c22550..80db1c1 100644 --- a/vendor/github.com/golang/protobuf/proto/lib.go +++ b/vendor/github.com/gogo/protobuf/proto/lib.go @@ -99,7 +99,7 @@ The resulting file, test.pb.go, is: package example - import proto "github.com/golang/protobuf/proto" + import proto "github.com/gogo/protobuf/proto" import math "math" type FOO int32 @@ -226,7 +226,7 @@ To create and play with a Test object: import ( "log" - "github.com/golang/protobuf/proto" + "github.com/gogo/protobuf/proto" pb "./example.pb" ) @@ -273,32 +273,73 @@ import ( "sync" ) -// Message is implemented by generated protocol buffer messages. -type Message interface { - Reset() - String() string - ProtoMessage() +// RequiredNotSetError is an error type returned by either Marshal or Unmarshal. +// Marshal reports this when a required field is not initialized. +// Unmarshal reports this when a required field is missing from the wire data. +type RequiredNotSetError struct{ field string } + +func (e *RequiredNotSetError) Error() string { + if e.field == "" { + return fmt.Sprintf("proto: required field not set") + } + return fmt.Sprintf("proto: required field %q not set", e.field) } +func (e *RequiredNotSetError) RequiredNotSet() bool { + return true +} + +type invalidUTF8Error struct{ field string } -// Stats records allocation details about the protocol buffer encoders -// and decoders. Useful for tuning the library itself. -type Stats struct { - Emalloc uint64 // mallocs in encode - Dmalloc uint64 // mallocs in decode - Encode uint64 // number of encodes - Decode uint64 // number of decodes - Chit uint64 // number of cache hits - Cmiss uint64 // number of cache misses - Size uint64 // number of sizes +func (e *invalidUTF8Error) Error() string { + if e.field == "" { + return "proto: invalid UTF-8 detected" + } + return fmt.Sprintf("proto: field %q contains invalid UTF-8", e.field) +} +func (e *invalidUTF8Error) InvalidUTF8() bool { + return true } -// Set to true to enable stats collection. -const collectStats = false +// errInvalidUTF8 is a sentinel error to identify fields with invalid UTF-8. +// This error should not be exposed to the external API as such errors should +// be recreated with the field information. +var errInvalidUTF8 = &invalidUTF8Error{} -var stats Stats +// isNonFatal reports whether the error is either a RequiredNotSet error +// or a InvalidUTF8 error. +func isNonFatal(err error) bool { + if re, ok := err.(interface{ RequiredNotSet() bool }); ok && re.RequiredNotSet() { + return true + } + if re, ok := err.(interface{ InvalidUTF8() bool }); ok && re.InvalidUTF8() { + return true + } + return false +} + +type nonFatal struct{ E error } -// GetStats returns a copy of the global Stats structure. -func GetStats() Stats { return stats } +// Merge merges err into nf and reports whether it was successful. +// Otherwise it returns false for any fatal non-nil errors. +func (nf *nonFatal) Merge(err error) (ok bool) { + if err == nil { + return true // not an error + } + if !isNonFatal(err) { + return false // fatal error + } + if nf.E == nil { + nf.E = err // store first instance of non-fatal error + } + return true +} + +// Message is implemented by generated protocol buffer messages. +type Message interface { + Reset() + String() string + ProtoMessage() +} // A Buffer is a buffer manager for marshaling and unmarshaling // protocol buffers. It may be reused between invocations to @@ -309,16 +350,7 @@ type Buffer struct { buf []byte // encode/decode byte stream index int // read point - // pools of basic types to amortize allocation. - bools []bool - uint32s []uint32 - uint64s []uint64 - - // extra pools, only used with pointer_reflect.go - int32s []int32 - int64s []int64 - float32s []float32 - float64s []float64 + deterministic bool } // NewBuffer allocates a new Buffer and initializes its internal data to @@ -343,6 +375,30 @@ func (p *Buffer) SetBuf(s []byte) { // Bytes returns the contents of the Buffer. func (p *Buffer) Bytes() []byte { return p.buf } +// SetDeterministic sets whether to use deterministic serialization. +// +// Deterministic serialization guarantees that for a given binary, equal +// messages will always be serialized to the same bytes. This implies: +// +// - Repeated serialization of a message will return the same bytes. +// - Different processes of the same binary (which may be executing on +// different machines) will serialize equal messages to the same bytes. +// +// Note that the deterministic serialization is NOT canonical across +// languages. It is not guaranteed to remain stable over time. It is unstable +// across different builds with schema changes due to unknown fields. +// Users who need canonical serialization (e.g., persistent storage in a +// canonical form, fingerprinting, etc.) should define their own +// canonicalization specification and implement their own serializer rather +// than relying on this API. +// +// If deterministic serialization is requested, map entries will be sorted +// by keys in lexographical order. This is an implementation detail and +// subject to change. +func (p *Buffer) SetDeterministic(deterministic bool) { + p.deterministic = deterministic +} + /* * Helper routines for simplifying the creation of optional fields of basic type. */ @@ -447,7 +503,7 @@ func (p *Buffer) DebugPrint(s string, b []byte) { var u uint64 obuf := p.buf - index := p.index + sindex := p.index p.buf = b p.index = 0 depth := 0 @@ -542,7 +598,7 @@ out: fmt.Printf("\n") p.buf = obuf - p.index = index + p.index = sindex } // SetDefaults sets unset protocol buffer fields to their default values. @@ -552,9 +608,11 @@ func SetDefaults(pb Message) { setDefaults(reflect.ValueOf(pb), true, false) } -// v is a pointer to a struct. +// v is a struct. func setDefaults(v reflect.Value, recur, zeros bool) { - v = v.Elem() + if v.Kind() == reflect.Ptr { + v = v.Elem() + } defaultMu.RLock() dm, ok := defaults[v.Type()] @@ -656,8 +714,11 @@ func setDefaults(v reflect.Value, recur, zeros bool) { for _, ni := range dm.nested { f := v.Field(ni) - // f is *T or []*T or map[T]*T + // f is *T or T or []*T or []T switch f.Kind() { + case reflect.Struct: + setDefaults(f, recur, zeros) + case reflect.Ptr: if f.IsNil() { continue @@ -667,7 +728,7 @@ func setDefaults(v reflect.Value, recur, zeros bool) { case reflect.Slice: for i := 0; i < f.Len(); i++ { e := f.Index(i) - if e.IsNil() { + if e.Kind() == reflect.Ptr && e.IsNil() { continue } setDefaults(e, recur, zeros) @@ -739,6 +800,9 @@ func buildDefaultMessage(t reflect.Type) (dm defaultMessage) { func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMessage bool, err error) { var canHaveDefault bool switch ft.Kind() { + case reflect.Struct: + nestedMessage = true // non-nullable + case reflect.Ptr: if ft.Elem().Kind() == reflect.Struct { nestedMessage = true @@ -748,7 +812,7 @@ func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMes case reflect.Slice: switch ft.Elem().Kind() { - case reflect.Ptr: + case reflect.Ptr, reflect.Struct: nestedMessage = true // repeated message case reflect.Uint8: canHaveDefault = true // bytes field @@ -831,22 +895,12 @@ func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMes return sf, false, nil } +// mapKeys returns a sort.Interface to be used for sorting the map keys. // Map fields may have key types of non-float scalars, strings and enums. -// The easiest way to sort them in some deterministic order is to use fmt. -// If this turns out to be inefficient we can always consider other options, -// such as doing a Schwartzian transform. - func mapKeys(vs []reflect.Value) sort.Interface { - s := mapKeySorter{ - vs: vs, - // default Less function: textual comparison - less: func(a, b reflect.Value) bool { - return fmt.Sprint(a.Interface()) < fmt.Sprint(b.Interface()) - }, - } + s := mapKeySorter{vs: vs} - // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps; - // numeric keys are sorted numerically. + // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps. if len(vs) == 0 { return s } @@ -855,6 +909,12 @@ func mapKeys(vs []reflect.Value) sort.Interface { s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() } case reflect.Uint32, reflect.Uint64: s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() } + case reflect.Bool: + s.less = func(a, b reflect.Value) bool { return !a.Bool() && b.Bool() } // false < true + case reflect.String: + s.less = func(a, b reflect.Value) bool { return a.String() < b.String() } + default: + panic(fmt.Sprintf("unsupported map key type: %v", vs[0].Kind())) } return s @@ -888,10 +948,26 @@ func isProto3Zero(v reflect.Value) bool { return false } -// ProtoPackageIsVersion2 is referenced from generated protocol buffer files -// to assert that that code is compatible with this version of the proto package. -const ProtoPackageIsVersion2 = true +const ( + // ProtoPackageIsVersion3 is referenced from generated protocol buffer files + // to assert that that code is compatible with this version of the proto package. + GoGoProtoPackageIsVersion3 = true + + // ProtoPackageIsVersion2 is referenced from generated protocol buffer files + // to assert that that code is compatible with this version of the proto package. + GoGoProtoPackageIsVersion2 = true -// ProtoPackageIsVersion1 is referenced from generated protocol buffer files -// to assert that that code is compatible with this version of the proto package. -const ProtoPackageIsVersion1 = true + // ProtoPackageIsVersion1 is referenced from generated protocol buffer files + // to assert that that code is compatible with this version of the proto package. + GoGoProtoPackageIsVersion1 = true +) + +// InternalMessageInfo is a type used internally by generated .pb.go files. +// This type is not intended to be used by non-generated code. +// This type is not subject to any compatibility guarantee. +type InternalMessageInfo struct { + marshal *marshalInfo + unmarshal *unmarshalInfo + merge *mergeInfo + discard *discardInfo +} diff --git a/vendor/github.com/gogo/protobuf/proto/lib_gogo.go b/vendor/github.com/gogo/protobuf/proto/lib_gogo.go new file mode 100644 index 0000000..b3aa391 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/lib_gogo.go @@ -0,0 +1,50 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "encoding/json" + "strconv" +) + +type Sizer interface { + Size() int +} + +type ProtoSizer interface { + ProtoSize() int +} + +func MarshalJSONEnum(m map[int32]string, value int32) ([]byte, error) { + s, ok := m[value] + if !ok { + s = strconv.Itoa(int(value)) + } + return json.Marshal(s) +} diff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/gogo/protobuf/proto/message_set.go similarity index 58% rename from vendor/github.com/golang/protobuf/proto/message_set.go rename to vendor/github.com/gogo/protobuf/proto/message_set.go index fd982de..f48a756 100644 --- a/vendor/github.com/golang/protobuf/proto/message_set.go +++ b/vendor/github.com/gogo/protobuf/proto/message_set.go @@ -36,12 +36,7 @@ package proto */ import ( - "bytes" - "encoding/json" "errors" - "fmt" - "reflect" - "sort" ) // errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. @@ -94,10 +89,7 @@ func (ms *messageSet) find(pb Message) *_MessageSet_Item { } func (ms *messageSet) Has(pb Message) bool { - if ms.find(pb) != nil { - return true - } - return false + return ms.find(pb) != nil } func (ms *messageSet) Unmarshal(pb Message) error { @@ -147,50 +139,9 @@ func skipVarint(buf []byte) []byte { return buf[i+1:] } -// MarshalMessageSet encodes the extension map represented by m in the message set wire format. -// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option. -func MarshalMessageSet(exts interface{}) ([]byte, error) { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - if err := encodeExtensions(exts); err != nil { - return nil, err - } - m, _ = exts.extensionsRead() - case map[int32]Extension: - if err := encodeExtensionsMap(exts); err != nil { - return nil, err - } - m = exts - default: - return nil, errors.New("proto: not an extension map") - } - - // Sort extension IDs to provide a deterministic encoding. - // See also enc_map in encode.go. - ids := make([]int, 0, len(m)) - for id := range m { - ids = append(ids, int(id)) - } - sort.Ints(ids) - - ms := &messageSet{Item: make([]*_MessageSet_Item, 0, len(m))} - for _, id := range ids { - e := m[int32(id)] - // Remove the wire type and field number varint, as well as the length varint. - msg := skipVarint(skipVarint(e.enc)) - - ms.Item = append(ms.Item, &_MessageSet_Item{ - TypeId: Int32(int32(id)), - Message: msg, - }) - } - return Marshal(ms) -} - -// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. -// It is called by generated Unmarshal methods on protocol buffer messages with the message_set_wire_format option. -func UnmarshalMessageSet(buf []byte, exts interface{}) error { +// unmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. +// It is called by Unmarshal methods on protocol buffer messages with the message_set_wire_format option. +func unmarshalMessageSet(buf []byte, exts interface{}) error { var m map[int32]Extension switch exts := exts.(type) { case *XXX_InternalExtensions: @@ -228,84 +179,3 @@ func UnmarshalMessageSet(buf []byte, exts interface{}) error { } return nil } - -// MarshalMessageSetJSON encodes the extension map represented by m in JSON format. -// It is called by generated MarshalJSON methods on protocol buffer messages with the message_set_wire_format option. -func MarshalMessageSetJSON(exts interface{}) ([]byte, error) { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - m, _ = exts.extensionsRead() - case map[int32]Extension: - m = exts - default: - return nil, errors.New("proto: not an extension map") - } - var b bytes.Buffer - b.WriteByte('{') - - // Process the map in key order for deterministic output. - ids := make([]int32, 0, len(m)) - for id := range m { - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) // int32Slice defined in text.go - - for i, id := range ids { - ext := m[id] - if i > 0 { - b.WriteByte(',') - } - - msd, ok := messageSetMap[id] - if !ok { - // Unknown type; we can't render it, so skip it. - continue - } - fmt.Fprintf(&b, `"[%s]":`, msd.name) - - x := ext.value - if x == nil { - x = reflect.New(msd.t.Elem()).Interface() - if err := Unmarshal(ext.enc, x.(Message)); err != nil { - return nil, err - } - } - d, err := json.Marshal(x) - if err != nil { - return nil, err - } - b.Write(d) - } - b.WriteByte('}') - return b.Bytes(), nil -} - -// UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format. -// It is called by generated UnmarshalJSON methods on protocol buffer messages with the message_set_wire_format option. -func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error { - // Common-case fast path. - if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) { - return nil - } - - // This is fairly tricky, and it's not clear that it is needed. - return errors.New("TODO: UnmarshalMessageSetJSON not yet implemented") -} - -// A global registry of types that can be used in a MessageSet. - -var messageSetMap = make(map[int32]messageSetDesc) - -type messageSetDesc struct { - t reflect.Type // pointer to struct - name string -} - -// RegisterMessageSetType is called from the generated code. -func RegisterMessageSetType(m Message, fieldNum int32, name string) { - messageSetMap[fieldNum] = messageSetDesc{ - t: reflect.TypeOf(m), - name: name, - } -} diff --git a/vendor/github.com/gogo/protobuf/proto/pointer_reflect.go b/vendor/github.com/gogo/protobuf/proto/pointer_reflect.go new file mode 100644 index 0000000..b6cad90 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/pointer_reflect.go @@ -0,0 +1,357 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2012 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// +build purego appengine js + +// This file contains an implementation of proto field accesses using package reflect. +// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can +// be used on App Engine. + +package proto + +import ( + "reflect" + "sync" +) + +const unsafeAllowed = false + +// A field identifies a field in a struct, accessible from a pointer. +// In this implementation, a field is identified by the sequence of field indices +// passed to reflect's FieldByIndex. +type field []int + +// toField returns a field equivalent to the given reflect field. +func toField(f *reflect.StructField) field { + return f.Index +} + +// invalidField is an invalid field identifier. +var invalidField = field(nil) + +// zeroField is a noop when calling pointer.offset. +var zeroField = field([]int{}) + +// IsValid reports whether the field identifier is valid. +func (f field) IsValid() bool { return f != nil } + +// The pointer type is for the table-driven decoder. +// The implementation here uses a reflect.Value of pointer type to +// create a generic pointer. In pointer_unsafe.go we use unsafe +// instead of reflect to implement the same (but faster) interface. +type pointer struct { + v reflect.Value +} + +// toPointer converts an interface of pointer type to a pointer +// that points to the same target. +func toPointer(i *Message) pointer { + return pointer{v: reflect.ValueOf(*i)} +} + +// toAddrPointer converts an interface to a pointer that points to +// the interface data. +func toAddrPointer(i *interface{}, isptr bool) pointer { + v := reflect.ValueOf(*i) + u := reflect.New(v.Type()) + u.Elem().Set(v) + return pointer{v: u} +} + +// valToPointer converts v to a pointer. v must be of pointer type. +func valToPointer(v reflect.Value) pointer { + return pointer{v: v} +} + +// offset converts from a pointer to a structure to a pointer to +// one of its fields. +func (p pointer) offset(f field) pointer { + return pointer{v: p.v.Elem().FieldByIndex(f).Addr()} +} + +func (p pointer) isNil() bool { + return p.v.IsNil() +} + +// grow updates the slice s in place to make it one element longer. +// s must be addressable. +// Returns the (addressable) new element. +func grow(s reflect.Value) reflect.Value { + n, m := s.Len(), s.Cap() + if n < m { + s.SetLen(n + 1) + } else { + s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem()))) + } + return s.Index(n) +} + +func (p pointer) toInt64() *int64 { + return p.v.Interface().(*int64) +} +func (p pointer) toInt64Ptr() **int64 { + return p.v.Interface().(**int64) +} +func (p pointer) toInt64Slice() *[]int64 { + return p.v.Interface().(*[]int64) +} + +var int32ptr = reflect.TypeOf((*int32)(nil)) + +func (p pointer) toInt32() *int32 { + return p.v.Convert(int32ptr).Interface().(*int32) +} + +// The toInt32Ptr/Slice methods don't work because of enums. +// Instead, we must use set/get methods for the int32ptr/slice case. +/* + func (p pointer) toInt32Ptr() **int32 { + return p.v.Interface().(**int32) +} + func (p pointer) toInt32Slice() *[]int32 { + return p.v.Interface().(*[]int32) +} +*/ +func (p pointer) getInt32Ptr() *int32 { + if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { + // raw int32 type + return p.v.Elem().Interface().(*int32) + } + // an enum + return p.v.Elem().Convert(int32PtrType).Interface().(*int32) +} +func (p pointer) setInt32Ptr(v int32) { + // Allocate value in a *int32. Possibly convert that to a *enum. + // Then assign it to a **int32 or **enum. + // Note: we can convert *int32 to *enum, but we can't convert + // **int32 to **enum! + p.v.Elem().Set(reflect.ValueOf(&v).Convert(p.v.Type().Elem())) +} + +// getInt32Slice copies []int32 from p as a new slice. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) getInt32Slice() []int32 { + if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { + // raw int32 type + return p.v.Elem().Interface().([]int32) + } + // an enum + // Allocate a []int32, then assign []enum's values into it. + // Note: we can't convert []enum to []int32. + slice := p.v.Elem() + s := make([]int32, slice.Len()) + for i := 0; i < slice.Len(); i++ { + s[i] = int32(slice.Index(i).Int()) + } + return s +} + +// setInt32Slice copies []int32 into p as a new slice. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) setInt32Slice(v []int32) { + if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) { + // raw int32 type + p.v.Elem().Set(reflect.ValueOf(v)) + return + } + // an enum + // Allocate a []enum, then assign []int32's values into it. + // Note: we can't convert []enum to []int32. + slice := reflect.MakeSlice(p.v.Type().Elem(), len(v), cap(v)) + for i, x := range v { + slice.Index(i).SetInt(int64(x)) + } + p.v.Elem().Set(slice) +} +func (p pointer) appendInt32Slice(v int32) { + grow(p.v.Elem()).SetInt(int64(v)) +} + +func (p pointer) toUint64() *uint64 { + return p.v.Interface().(*uint64) +} +func (p pointer) toUint64Ptr() **uint64 { + return p.v.Interface().(**uint64) +} +func (p pointer) toUint64Slice() *[]uint64 { + return p.v.Interface().(*[]uint64) +} +func (p pointer) toUint32() *uint32 { + return p.v.Interface().(*uint32) +} +func (p pointer) toUint32Ptr() **uint32 { + return p.v.Interface().(**uint32) +} +func (p pointer) toUint32Slice() *[]uint32 { + return p.v.Interface().(*[]uint32) +} +func (p pointer) toBool() *bool { + return p.v.Interface().(*bool) +} +func (p pointer) toBoolPtr() **bool { + return p.v.Interface().(**bool) +} +func (p pointer) toBoolSlice() *[]bool { + return p.v.Interface().(*[]bool) +} +func (p pointer) toFloat64() *float64 { + return p.v.Interface().(*float64) +} +func (p pointer) toFloat64Ptr() **float64 { + return p.v.Interface().(**float64) +} +func (p pointer) toFloat64Slice() *[]float64 { + return p.v.Interface().(*[]float64) +} +func (p pointer) toFloat32() *float32 { + return p.v.Interface().(*float32) +} +func (p pointer) toFloat32Ptr() **float32 { + return p.v.Interface().(**float32) +} +func (p pointer) toFloat32Slice() *[]float32 { + return p.v.Interface().(*[]float32) +} +func (p pointer) toString() *string { + return p.v.Interface().(*string) +} +func (p pointer) toStringPtr() **string { + return p.v.Interface().(**string) +} +func (p pointer) toStringSlice() *[]string { + return p.v.Interface().(*[]string) +} +func (p pointer) toBytes() *[]byte { + return p.v.Interface().(*[]byte) +} +func (p pointer) toBytesSlice() *[][]byte { + return p.v.Interface().(*[][]byte) +} +func (p pointer) toExtensions() *XXX_InternalExtensions { + return p.v.Interface().(*XXX_InternalExtensions) +} +func (p pointer) toOldExtensions() *map[int32]Extension { + return p.v.Interface().(*map[int32]Extension) +} +func (p pointer) getPointer() pointer { + return pointer{v: p.v.Elem()} +} +func (p pointer) setPointer(q pointer) { + p.v.Elem().Set(q.v) +} +func (p pointer) appendPointer(q pointer) { + grow(p.v.Elem()).Set(q.v) +} + +// getPointerSlice copies []*T from p as a new []pointer. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) getPointerSlice() []pointer { + if p.v.IsNil() { + return nil + } + n := p.v.Elem().Len() + s := make([]pointer, n) + for i := 0; i < n; i++ { + s[i] = pointer{v: p.v.Elem().Index(i)} + } + return s +} + +// setPointerSlice copies []pointer into p as a new []*T. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) setPointerSlice(v []pointer) { + if v == nil { + p.v.Elem().Set(reflect.New(p.v.Elem().Type()).Elem()) + return + } + s := reflect.MakeSlice(p.v.Elem().Type(), 0, len(v)) + for _, p := range v { + s = reflect.Append(s, p.v) + } + p.v.Elem().Set(s) +} + +// getInterfacePointer returns a pointer that points to the +// interface data of the interface pointed by p. +func (p pointer) getInterfacePointer() pointer { + if p.v.Elem().IsNil() { + return pointer{v: p.v.Elem()} + } + return pointer{v: p.v.Elem().Elem().Elem().Field(0).Addr()} // *interface -> interface -> *struct -> struct +} + +func (p pointer) asPointerTo(t reflect.Type) reflect.Value { + // TODO: check that p.v.Type().Elem() == t? + return p.v +} + +func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} +func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} +func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} +func atomicLoadDiscardInfo(p **discardInfo) *discardInfo { + atomicLock.Lock() + defer atomicLock.Unlock() + return *p +} +func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) { + atomicLock.Lock() + defer atomicLock.Unlock() + *p = v +} + +var atomicLock sync.Mutex diff --git a/vendor/github.com/gogo/protobuf/proto/pointer_reflect_gogo.go b/vendor/github.com/gogo/protobuf/proto/pointer_reflect_gogo.go new file mode 100644 index 0000000..7ffd3c2 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/pointer_reflect_gogo.go @@ -0,0 +1,59 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// +build purego appengine js + +// This file contains an implementation of proto field accesses using package reflect. +// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can +// be used on App Engine. + +package proto + +import ( + "reflect" +) + +// TODO: untested, so probably incorrect. + +func (p pointer) getRef() pointer { + return pointer{v: p.v.Addr()} +} + +func (p pointer) appendRef(v pointer, typ reflect.Type) { + slice := p.getSlice(typ) + elem := v.asPointerTo(typ).Elem() + newSlice := reflect.Append(slice, elem) + slice.Set(newSlice) +} + +func (p pointer) getSlice(typ reflect.Type) reflect.Value { + sliceTyp := reflect.SliceOf(typ) + slice := p.asPointerTo(sliceTyp) + slice = slice.Elem() + return slice +} diff --git a/vendor/github.com/gogo/protobuf/proto/pointer_unsafe.go b/vendor/github.com/gogo/protobuf/proto/pointer_unsafe.go new file mode 100644 index 0000000..d55a335 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/pointer_unsafe.go @@ -0,0 +1,308 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2012 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// +build !purego,!appengine,!js + +// This file contains the implementation of the proto field accesses using package unsafe. + +package proto + +import ( + "reflect" + "sync/atomic" + "unsafe" +) + +const unsafeAllowed = true + +// A field identifies a field in a struct, accessible from a pointer. +// In this implementation, a field is identified by its byte offset from the start of the struct. +type field uintptr + +// toField returns a field equivalent to the given reflect field. +func toField(f *reflect.StructField) field { + return field(f.Offset) +} + +// invalidField is an invalid field identifier. +const invalidField = ^field(0) + +// zeroField is a noop when calling pointer.offset. +const zeroField = field(0) + +// IsValid reports whether the field identifier is valid. +func (f field) IsValid() bool { + return f != invalidField +} + +// The pointer type below is for the new table-driven encoder/decoder. +// The implementation here uses unsafe.Pointer to create a generic pointer. +// In pointer_reflect.go we use reflect instead of unsafe to implement +// the same (but slower) interface. +type pointer struct { + p unsafe.Pointer +} + +// size of pointer +var ptrSize = unsafe.Sizeof(uintptr(0)) + +// toPointer converts an interface of pointer type to a pointer +// that points to the same target. +func toPointer(i *Message) pointer { + // Super-tricky - read pointer out of data word of interface value. + // Saves ~25ns over the equivalent: + // return valToPointer(reflect.ValueOf(*i)) + return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} +} + +// toAddrPointer converts an interface to a pointer that points to +// the interface data. +func toAddrPointer(i *interface{}, isptr bool) pointer { + // Super-tricky - read or get the address of data word of interface value. + if isptr { + // The interface is of pointer type, thus it is a direct interface. + // The data word is the pointer data itself. We take its address. + return pointer{p: unsafe.Pointer(uintptr(unsafe.Pointer(i)) + ptrSize)} + } + // The interface is not of pointer type. The data word is the pointer + // to the data. + return pointer{p: (*[2]unsafe.Pointer)(unsafe.Pointer(i))[1]} +} + +// valToPointer converts v to a pointer. v must be of pointer type. +func valToPointer(v reflect.Value) pointer { + return pointer{p: unsafe.Pointer(v.Pointer())} +} + +// offset converts from a pointer to a structure to a pointer to +// one of its fields. +func (p pointer) offset(f field) pointer { + // For safety, we should panic if !f.IsValid, however calling panic causes + // this to no longer be inlineable, which is a serious performance cost. + /* + if !f.IsValid() { + panic("invalid field") + } + */ + return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))} +} + +func (p pointer) isNil() bool { + return p.p == nil +} + +func (p pointer) toInt64() *int64 { + return (*int64)(p.p) +} +func (p pointer) toInt64Ptr() **int64 { + return (**int64)(p.p) +} +func (p pointer) toInt64Slice() *[]int64 { + return (*[]int64)(p.p) +} +func (p pointer) toInt32() *int32 { + return (*int32)(p.p) +} + +// See pointer_reflect.go for why toInt32Ptr/Slice doesn't exist. +/* + func (p pointer) toInt32Ptr() **int32 { + return (**int32)(p.p) + } + func (p pointer) toInt32Slice() *[]int32 { + return (*[]int32)(p.p) + } +*/ +func (p pointer) getInt32Ptr() *int32 { + return *(**int32)(p.p) +} +func (p pointer) setInt32Ptr(v int32) { + *(**int32)(p.p) = &v +} + +// getInt32Slice loads a []int32 from p. +// The value returned is aliased with the original slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) getInt32Slice() []int32 { + return *(*[]int32)(p.p) +} + +// setInt32Slice stores a []int32 to p. +// The value set is aliased with the input slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) setInt32Slice(v []int32) { + *(*[]int32)(p.p) = v +} + +// TODO: Can we get rid of appendInt32Slice and use setInt32Slice instead? +func (p pointer) appendInt32Slice(v int32) { + s := (*[]int32)(p.p) + *s = append(*s, v) +} + +func (p pointer) toUint64() *uint64 { + return (*uint64)(p.p) +} +func (p pointer) toUint64Ptr() **uint64 { + return (**uint64)(p.p) +} +func (p pointer) toUint64Slice() *[]uint64 { + return (*[]uint64)(p.p) +} +func (p pointer) toUint32() *uint32 { + return (*uint32)(p.p) +} +func (p pointer) toUint32Ptr() **uint32 { + return (**uint32)(p.p) +} +func (p pointer) toUint32Slice() *[]uint32 { + return (*[]uint32)(p.p) +} +func (p pointer) toBool() *bool { + return (*bool)(p.p) +} +func (p pointer) toBoolPtr() **bool { + return (**bool)(p.p) +} +func (p pointer) toBoolSlice() *[]bool { + return (*[]bool)(p.p) +} +func (p pointer) toFloat64() *float64 { + return (*float64)(p.p) +} +func (p pointer) toFloat64Ptr() **float64 { + return (**float64)(p.p) +} +func (p pointer) toFloat64Slice() *[]float64 { + return (*[]float64)(p.p) +} +func (p pointer) toFloat32() *float32 { + return (*float32)(p.p) +} +func (p pointer) toFloat32Ptr() **float32 { + return (**float32)(p.p) +} +func (p pointer) toFloat32Slice() *[]float32 { + return (*[]float32)(p.p) +} +func (p pointer) toString() *string { + return (*string)(p.p) +} +func (p pointer) toStringPtr() **string { + return (**string)(p.p) +} +func (p pointer) toStringSlice() *[]string { + return (*[]string)(p.p) +} +func (p pointer) toBytes() *[]byte { + return (*[]byte)(p.p) +} +func (p pointer) toBytesSlice() *[][]byte { + return (*[][]byte)(p.p) +} +func (p pointer) toExtensions() *XXX_InternalExtensions { + return (*XXX_InternalExtensions)(p.p) +} +func (p pointer) toOldExtensions() *map[int32]Extension { + return (*map[int32]Extension)(p.p) +} + +// getPointerSlice loads []*T from p as a []pointer. +// The value returned is aliased with the original slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) getPointerSlice() []pointer { + // Super-tricky - p should point to a []*T where T is a + // message type. We load it as []pointer. + return *(*[]pointer)(p.p) +} + +// setPointerSlice stores []pointer into p as a []*T. +// The value set is aliased with the input slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) setPointerSlice(v []pointer) { + // Super-tricky - p should point to a []*T where T is a + // message type. We store it as []pointer. + *(*[]pointer)(p.p) = v +} + +// getPointer loads the pointer at p and returns it. +func (p pointer) getPointer() pointer { + return pointer{p: *(*unsafe.Pointer)(p.p)} +} + +// setPointer stores the pointer q at p. +func (p pointer) setPointer(q pointer) { + *(*unsafe.Pointer)(p.p) = q.p +} + +// append q to the slice pointed to by p. +func (p pointer) appendPointer(q pointer) { + s := (*[]unsafe.Pointer)(p.p) + *s = append(*s, q.p) +} + +// getInterfacePointer returns a pointer that points to the +// interface data of the interface pointed by p. +func (p pointer) getInterfacePointer() pointer { + // Super-tricky - read pointer out of data word of interface value. + return pointer{p: (*(*[2]unsafe.Pointer)(p.p))[1]} +} + +// asPointerTo returns a reflect.Value that is a pointer to an +// object of type t stored at p. +func (p pointer) asPointerTo(t reflect.Type) reflect.Value { + return reflect.NewAt(t, p.p) +} + +func atomicLoadUnmarshalInfo(p **unmarshalInfo) *unmarshalInfo { + return (*unmarshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreUnmarshalInfo(p **unmarshalInfo, v *unmarshalInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} +func atomicLoadMarshalInfo(p **marshalInfo) *marshalInfo { + return (*marshalInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreMarshalInfo(p **marshalInfo, v *marshalInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} +func atomicLoadMergeInfo(p **mergeInfo) *mergeInfo { + return (*mergeInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreMergeInfo(p **mergeInfo, v *mergeInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} +func atomicLoadDiscardInfo(p **discardInfo) *discardInfo { + return (*discardInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p)))) +} +func atomicStoreDiscardInfo(p **discardInfo, v *discardInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v)) +} diff --git a/vendor/github.com/gogo/protobuf/proto/pointer_unsafe_gogo.go b/vendor/github.com/gogo/protobuf/proto/pointer_unsafe_gogo.go new file mode 100644 index 0000000..aca8eed --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/pointer_unsafe_gogo.go @@ -0,0 +1,56 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// +build !purego,!appengine,!js + +// This file contains the implementation of the proto field accesses using package unsafe. + +package proto + +import ( + "reflect" + "unsafe" +) + +func (p pointer) getRef() pointer { + return pointer{p: (unsafe.Pointer)(&p.p)} +} + +func (p pointer) appendRef(v pointer, typ reflect.Type) { + slice := p.getSlice(typ) + elem := v.asPointerTo(typ).Elem() + newSlice := reflect.Append(slice, elem) + slice.Set(newSlice) +} + +func (p pointer) getSlice(typ reflect.Type) reflect.Value { + sliceTyp := reflect.SliceOf(typ) + slice := p.asPointerTo(sliceTyp) + slice = slice.Elem() + return slice +} diff --git a/vendor/github.com/gogo/protobuf/proto/properties.go b/vendor/github.com/gogo/protobuf/proto/properties.go new file mode 100644 index 0000000..28da147 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/properties.go @@ -0,0 +1,610 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2010 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +/* + * Routines for encoding data into the wire format for protocol buffers. + */ + +import ( + "fmt" + "log" + "reflect" + "sort" + "strconv" + "strings" + "sync" +) + +const debug bool = false + +// Constants that identify the encoding of a value on the wire. +const ( + WireVarint = 0 + WireFixed64 = 1 + WireBytes = 2 + WireStartGroup = 3 + WireEndGroup = 4 + WireFixed32 = 5 +) + +// tagMap is an optimization over map[int]int for typical protocol buffer +// use-cases. Encoded protocol buffers are often in tag order with small tag +// numbers. +type tagMap struct { + fastTags []int + slowTags map[int]int +} + +// tagMapFastLimit is the upper bound on the tag number that will be stored in +// the tagMap slice rather than its map. +const tagMapFastLimit = 1024 + +func (p *tagMap) get(t int) (int, bool) { + if t > 0 && t < tagMapFastLimit { + if t >= len(p.fastTags) { + return 0, false + } + fi := p.fastTags[t] + return fi, fi >= 0 + } + fi, ok := p.slowTags[t] + return fi, ok +} + +func (p *tagMap) put(t int, fi int) { + if t > 0 && t < tagMapFastLimit { + for len(p.fastTags) < t+1 { + p.fastTags = append(p.fastTags, -1) + } + p.fastTags[t] = fi + return + } + if p.slowTags == nil { + p.slowTags = make(map[int]int) + } + p.slowTags[t] = fi +} + +// StructProperties represents properties for all the fields of a struct. +// decoderTags and decoderOrigNames should only be used by the decoder. +type StructProperties struct { + Prop []*Properties // properties for each field + reqCount int // required count + decoderTags tagMap // map from proto tag to struct field number + decoderOrigNames map[string]int // map from original name to struct field number + order []int // list of struct field numbers in tag order + + // OneofTypes contains information about the oneof fields in this message. + // It is keyed by the original name of a field. + OneofTypes map[string]*OneofProperties +} + +// OneofProperties represents information about a specific field in a oneof. +type OneofProperties struct { + Type reflect.Type // pointer to generated struct type for this oneof field + Field int // struct field number of the containing oneof in the message + Prop *Properties +} + +// Implement the sorting interface so we can sort the fields in tag order, as recommended by the spec. +// See encode.go, (*Buffer).enc_struct. + +func (sp *StructProperties) Len() int { return len(sp.order) } +func (sp *StructProperties) Less(i, j int) bool { + return sp.Prop[sp.order[i]].Tag < sp.Prop[sp.order[j]].Tag +} +func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order[j], sp.order[i] } + +// Properties represents the protocol-specific behavior of a single struct field. +type Properties struct { + Name string // name of the field, for error messages + OrigName string // original name before protocol compiler (always set) + JSONName string // name to use for JSON; determined by protoc + Wire string + WireType int + Tag int + Required bool + Optional bool + Repeated bool + Packed bool // relevant for repeated primitives only + Enum string // set for enum types only + proto3 bool // whether this is known to be a proto3 field + oneof bool // whether this is a oneof field + + Default string // default value + HasDefault bool // whether an explicit default was provided + CustomType string + CastType string + StdTime bool + StdDuration bool + WktPointer bool + + stype reflect.Type // set for struct types only + ctype reflect.Type // set for custom types only + sprop *StructProperties // set for struct types only + + mtype reflect.Type // set for map types only + MapKeyProp *Properties // set for map types only + MapValProp *Properties // set for map types only +} + +// String formats the properties in the protobuf struct field tag style. +func (p *Properties) String() string { + s := p.Wire + s += "," + s += strconv.Itoa(p.Tag) + if p.Required { + s += ",req" + } + if p.Optional { + s += ",opt" + } + if p.Repeated { + s += ",rep" + } + if p.Packed { + s += ",packed" + } + s += ",name=" + p.OrigName + if p.JSONName != p.OrigName { + s += ",json=" + p.JSONName + } + if p.proto3 { + s += ",proto3" + } + if p.oneof { + s += ",oneof" + } + if len(p.Enum) > 0 { + s += ",enum=" + p.Enum + } + if p.HasDefault { + s += ",def=" + p.Default + } + return s +} + +// Parse populates p by parsing a string in the protobuf struct field tag style. +func (p *Properties) Parse(s string) { + // "bytes,49,opt,name=foo,def=hello!" + fields := strings.Split(s, ",") // breaks def=, but handled below. + if len(fields) < 2 { + log.Printf("proto: tag has too few fields: %q", s) + return + } + + p.Wire = fields[0] + switch p.Wire { + case "varint": + p.WireType = WireVarint + case "fixed32": + p.WireType = WireFixed32 + case "fixed64": + p.WireType = WireFixed64 + case "zigzag32": + p.WireType = WireVarint + case "zigzag64": + p.WireType = WireVarint + case "bytes", "group": + p.WireType = WireBytes + // no numeric converter for non-numeric types + default: + log.Printf("proto: tag has unknown wire type: %q", s) + return + } + + var err error + p.Tag, err = strconv.Atoi(fields[1]) + if err != nil { + return + } + +outer: + for i := 2; i < len(fields); i++ { + f := fields[i] + switch { + case f == "req": + p.Required = true + case f == "opt": + p.Optional = true + case f == "rep": + p.Repeated = true + case f == "packed": + p.Packed = true + case strings.HasPrefix(f, "name="): + p.OrigName = f[5:] + case strings.HasPrefix(f, "json="): + p.JSONName = f[5:] + case strings.HasPrefix(f, "enum="): + p.Enum = f[5:] + case f == "proto3": + p.proto3 = true + case f == "oneof": + p.oneof = true + case strings.HasPrefix(f, "def="): + p.HasDefault = true + p.Default = f[4:] // rest of string + if i+1 < len(fields) { + // Commas aren't escaped, and def is always last. + p.Default += "," + strings.Join(fields[i+1:], ",") + break outer + } + case strings.HasPrefix(f, "embedded="): + p.OrigName = strings.Split(f, "=")[1] + case strings.HasPrefix(f, "customtype="): + p.CustomType = strings.Split(f, "=")[1] + case strings.HasPrefix(f, "casttype="): + p.CastType = strings.Split(f, "=")[1] + case f == "stdtime": + p.StdTime = true + case f == "stdduration": + p.StdDuration = true + case f == "wktptr": + p.WktPointer = true + } + } +} + +var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() + +// setFieldProps initializes the field properties for submessages and maps. +func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { + isMap := typ.Kind() == reflect.Map + if len(p.CustomType) > 0 && !isMap { + p.ctype = typ + p.setTag(lockGetProp) + return + } + if p.StdTime && !isMap { + p.setTag(lockGetProp) + return + } + if p.StdDuration && !isMap { + p.setTag(lockGetProp) + return + } + if p.WktPointer && !isMap { + p.setTag(lockGetProp) + return + } + switch t1 := typ; t1.Kind() { + case reflect.Struct: + p.stype = typ + case reflect.Ptr: + if t1.Elem().Kind() == reflect.Struct { + p.stype = t1.Elem() + } + case reflect.Slice: + switch t2 := t1.Elem(); t2.Kind() { + case reflect.Ptr: + switch t3 := t2.Elem(); t3.Kind() { + case reflect.Struct: + p.stype = t3 + } + case reflect.Struct: + p.stype = t2 + } + + case reflect.Map: + + p.mtype = t1 + p.MapKeyProp = &Properties{} + p.MapKeyProp.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) + p.MapValProp = &Properties{} + vtype := p.mtype.Elem() + if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { + // The value type is not a message (*T) or bytes ([]byte), + // so we need encoders for the pointer to this type. + vtype = reflect.PtrTo(vtype) + } + + p.MapValProp.CustomType = p.CustomType + p.MapValProp.StdDuration = p.StdDuration + p.MapValProp.StdTime = p.StdTime + p.MapValProp.WktPointer = p.WktPointer + p.MapValProp.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) + } + p.setTag(lockGetProp) +} + +func (p *Properties) setTag(lockGetProp bool) { + if p.stype != nil { + if lockGetProp { + p.sprop = GetProperties(p.stype) + } else { + p.sprop = getPropertiesLocked(p.stype) + } + } +} + +var ( + marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() +) + +// Init populates the properties from a protocol buffer struct tag. +func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { + p.init(typ, name, tag, f, true) +} + +func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) { + // "bytes,49,opt,def=hello!" + p.Name = name + p.OrigName = name + if tag == "" { + return + } + p.Parse(tag) + p.setFieldProps(typ, f, lockGetProp) +} + +var ( + propertiesMu sync.RWMutex + propertiesMap = make(map[reflect.Type]*StructProperties) +) + +// GetProperties returns the list of properties for the type represented by t. +// t must represent a generated struct type of a protocol message. +func GetProperties(t reflect.Type) *StructProperties { + if t.Kind() != reflect.Struct { + panic("proto: type must have kind struct") + } + + // Most calls to GetProperties in a long-running program will be + // retrieving details for types we have seen before. + propertiesMu.RLock() + sprop, ok := propertiesMap[t] + propertiesMu.RUnlock() + if ok { + return sprop + } + + propertiesMu.Lock() + sprop = getPropertiesLocked(t) + propertiesMu.Unlock() + return sprop +} + +type ( + oneofFuncsIface interface { + XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) + } + oneofWrappersIface interface { + XXX_OneofWrappers() []interface{} + } +) + +// getPropertiesLocked requires that propertiesMu is held. +func getPropertiesLocked(t reflect.Type) *StructProperties { + if prop, ok := propertiesMap[t]; ok { + return prop + } + + prop := new(StructProperties) + // in case of recursive protos, fill this in now. + propertiesMap[t] = prop + + // build properties + prop.Prop = make([]*Properties, t.NumField()) + prop.order = make([]int, t.NumField()) + + isOneofMessage := false + for i := 0; i < t.NumField(); i++ { + f := t.Field(i) + p := new(Properties) + name := f.Name + p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) + + oneof := f.Tag.Get("protobuf_oneof") // special case + if oneof != "" { + isOneofMessage = true + // Oneof fields don't use the traditional protobuf tag. + p.OrigName = oneof + } + prop.Prop[i] = p + prop.order[i] = i + if debug { + print(i, " ", f.Name, " ", t.String(), " ") + if p.Tag > 0 { + print(p.String()) + } + print("\n") + } + } + + // Re-order prop.order. + sort.Sort(prop) + + if isOneofMessage { + var oots []interface{} + switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) { + case oneofFuncsIface: + _, _, _, oots = m.XXX_OneofFuncs() + case oneofWrappersIface: + oots = m.XXX_OneofWrappers() + } + if len(oots) > 0 { + // Interpret oneof metadata. + prop.OneofTypes = make(map[string]*OneofProperties) + for _, oot := range oots { + oop := &OneofProperties{ + Type: reflect.ValueOf(oot).Type(), // *T + Prop: new(Properties), + } + sft := oop.Type.Elem().Field(0) + oop.Prop.Name = sft.Name + oop.Prop.Parse(sft.Tag.Get("protobuf")) + // There will be exactly one interface field that + // this new value is assignable to. + for i := 0; i < t.NumField(); i++ { + f := t.Field(i) + if f.Type.Kind() != reflect.Interface { + continue + } + if !oop.Type.AssignableTo(f.Type) { + continue + } + oop.Field = i + break + } + prop.OneofTypes[oop.Prop.OrigName] = oop + } + } + } + + // build required counts + // build tags + reqCount := 0 + prop.decoderOrigNames = make(map[string]int) + for i, p := range prop.Prop { + if strings.HasPrefix(p.Name, "XXX_") { + // Internal fields should not appear in tags/origNames maps. + // They are handled specially when encoding and decoding. + continue + } + if p.Required { + reqCount++ + } + prop.decoderTags.put(p.Tag, i) + prop.decoderOrigNames[p.OrigName] = i + } + prop.reqCount = reqCount + + return prop +} + +// A global registry of enum types. +// The generated code will register the generated maps by calling RegisterEnum. + +var enumValueMaps = make(map[string]map[string]int32) +var enumStringMaps = make(map[string]map[int32]string) + +// RegisterEnum is called from the generated code to install the enum descriptor +// maps into the global table to aid parsing text format protocol buffers. +func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) { + if _, ok := enumValueMaps[typeName]; ok { + panic("proto: duplicate enum registered: " + typeName) + } + enumValueMaps[typeName] = valueMap + if _, ok := enumStringMaps[typeName]; ok { + panic("proto: duplicate enum registered: " + typeName) + } + enumStringMaps[typeName] = unusedNameMap +} + +// EnumValueMap returns the mapping from names to integers of the +// enum type enumType, or a nil if not found. +func EnumValueMap(enumType string) map[string]int32 { + return enumValueMaps[enumType] +} + +// A registry of all linked message types. +// The string is a fully-qualified proto name ("pkg.Message"). +var ( + protoTypedNils = make(map[string]Message) // a map from proto names to typed nil pointers + protoMapTypes = make(map[string]reflect.Type) // a map from proto names to map types + revProtoTypes = make(map[reflect.Type]string) +) + +// RegisterType is called from generated code and maps from the fully qualified +// proto name to the type (pointer to struct) of the protocol buffer. +func RegisterType(x Message, name string) { + if _, ok := protoTypedNils[name]; ok { + // TODO: Some day, make this a panic. + log.Printf("proto: duplicate proto type registered: %s", name) + return + } + t := reflect.TypeOf(x) + if v := reflect.ValueOf(x); v.Kind() == reflect.Ptr && v.Pointer() == 0 { + // Generated code always calls RegisterType with nil x. + // This check is just for extra safety. + protoTypedNils[name] = x + } else { + protoTypedNils[name] = reflect.Zero(t).Interface().(Message) + } + revProtoTypes[t] = name +} + +// RegisterMapType is called from generated code and maps from the fully qualified +// proto name to the native map type of the proto map definition. +func RegisterMapType(x interface{}, name string) { + if reflect.TypeOf(x).Kind() != reflect.Map { + panic(fmt.Sprintf("RegisterMapType(%T, %q); want map", x, name)) + } + if _, ok := protoMapTypes[name]; ok { + log.Printf("proto: duplicate proto type registered: %s", name) + return + } + t := reflect.TypeOf(x) + protoMapTypes[name] = t + revProtoTypes[t] = name +} + +// MessageName returns the fully-qualified proto name for the given message type. +func MessageName(x Message) string { + type xname interface { + XXX_MessageName() string + } + if m, ok := x.(xname); ok { + return m.XXX_MessageName() + } + return revProtoTypes[reflect.TypeOf(x)] +} + +// MessageType returns the message type (pointer to struct) for a named message. +// The type is not guaranteed to implement proto.Message if the name refers to a +// map entry. +func MessageType(name string) reflect.Type { + if t, ok := protoTypedNils[name]; ok { + return reflect.TypeOf(t) + } + return protoMapTypes[name] +} + +// A registry of all linked proto files. +var ( + protoFiles = make(map[string][]byte) // file name => fileDescriptor +) + +// RegisterFile is called from generated code and maps from the +// full file name of a .proto file to its compressed FileDescriptorProto. +func RegisterFile(filename string, fileDescriptor []byte) { + protoFiles[filename] = fileDescriptor +} + +// FileDescriptor returns the compressed FileDescriptorProto for a .proto file. +func FileDescriptor(filename string) []byte { return protoFiles[filename] } diff --git a/vendor/github.com/gogo/protobuf/proto/properties_gogo.go b/vendor/github.com/gogo/protobuf/proto/properties_gogo.go new file mode 100644 index 0000000..40ea3dd --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/properties_gogo.go @@ -0,0 +1,36 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "reflect" +) + +var sizerType = reflect.TypeOf((*Sizer)(nil)).Elem() +var protosizerType = reflect.TypeOf((*ProtoSizer)(nil)).Elem() diff --git a/vendor/github.com/gogo/protobuf/proto/skip_gogo.go b/vendor/github.com/gogo/protobuf/proto/skip_gogo.go new file mode 100644 index 0000000..5a5fd93 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/skip_gogo.go @@ -0,0 +1,119 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "fmt" + "io" +) + +func Skip(data []byte) (n int, err error) { + l := len(data) + index := 0 + for index < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if index >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[index] + index++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for { + if index >= l { + return 0, io.ErrUnexpectedEOF + } + index++ + if data[index-1] < 0x80 { + break + } + } + return index, nil + case 1: + index += 8 + return index, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if index >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[index] + index++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + index += length + return index, nil + case 3: + for { + var innerWire uint64 + var start int = index + for shift := uint(0); ; shift += 7 { + if index >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[index] + index++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := Skip(data[start:]) + if err != nil { + return 0, err + } + index = start + next + } + return index, nil + case 4: + return index, nil + case 5: + index += 4 + return index, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} diff --git a/vendor/github.com/gogo/protobuf/proto/table_marshal.go b/vendor/github.com/gogo/protobuf/proto/table_marshal.go new file mode 100644 index 0000000..f8babde --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/table_marshal.go @@ -0,0 +1,3009 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "errors" + "fmt" + "math" + "reflect" + "sort" + "strconv" + "strings" + "sync" + "sync/atomic" + "unicode/utf8" +) + +// a sizer takes a pointer to a field and the size of its tag, computes the size of +// the encoded data. +type sizer func(pointer, int) int + +// a marshaler takes a byte slice, a pointer to a field, and its tag (in wire format), +// marshals the field to the end of the slice, returns the slice and error (if any). +type marshaler func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) + +// marshalInfo is the information used for marshaling a message. +type marshalInfo struct { + typ reflect.Type + fields []*marshalFieldInfo + unrecognized field // offset of XXX_unrecognized + extensions field // offset of XXX_InternalExtensions + v1extensions field // offset of XXX_extensions + sizecache field // offset of XXX_sizecache + initialized int32 // 0 -- only typ is set, 1 -- fully initialized + messageset bool // uses message set wire format + hasmarshaler bool // has custom marshaler + sync.RWMutex // protect extElems map, also for initialization + extElems map[int32]*marshalElemInfo // info of extension elements + + hassizer bool // has custom sizer + hasprotosizer bool // has custom protosizer + + bytesExtensions field // offset of XXX_extensions where the field type is []byte +} + +// marshalFieldInfo is the information used for marshaling a field of a message. +type marshalFieldInfo struct { + field field + wiretag uint64 // tag in wire format + tagsize int // size of tag in wire format + sizer sizer + marshaler marshaler + isPointer bool + required bool // field is required + name string // name of the field, for error reporting + oneofElems map[reflect.Type]*marshalElemInfo // info of oneof elements +} + +// marshalElemInfo is the information used for marshaling an extension or oneof element. +type marshalElemInfo struct { + wiretag uint64 // tag in wire format + tagsize int // size of tag in wire format + sizer sizer + marshaler marshaler + isptr bool // elem is pointer typed, thus interface of this type is a direct interface (extension only) +} + +var ( + marshalInfoMap = map[reflect.Type]*marshalInfo{} + marshalInfoLock sync.Mutex + + uint8SliceType = reflect.TypeOf(([]uint8)(nil)).Kind() +) + +// getMarshalInfo returns the information to marshal a given type of message. +// The info it returns may not necessarily initialized. +// t is the type of the message (NOT the pointer to it). +func getMarshalInfo(t reflect.Type) *marshalInfo { + marshalInfoLock.Lock() + u, ok := marshalInfoMap[t] + if !ok { + u = &marshalInfo{typ: t} + marshalInfoMap[t] = u + } + marshalInfoLock.Unlock() + return u +} + +// Size is the entry point from generated code, +// and should be ONLY called by generated code. +// It computes the size of encoded data of msg. +// a is a pointer to a place to store cached marshal info. +func (a *InternalMessageInfo) Size(msg Message) int { + u := getMessageMarshalInfo(msg, a) + ptr := toPointer(&msg) + if ptr.isNil() { + // We get here if msg is a typed nil ((*SomeMessage)(nil)), + // so it satisfies the interface, and msg == nil wouldn't + // catch it. We don't want crash in this case. + return 0 + } + return u.size(ptr) +} + +// Marshal is the entry point from generated code, +// and should be ONLY called by generated code. +// It marshals msg to the end of b. +// a is a pointer to a place to store cached marshal info. +func (a *InternalMessageInfo) Marshal(b []byte, msg Message, deterministic bool) ([]byte, error) { + u := getMessageMarshalInfo(msg, a) + ptr := toPointer(&msg) + if ptr.isNil() { + // We get here if msg is a typed nil ((*SomeMessage)(nil)), + // so it satisfies the interface, and msg == nil wouldn't + // catch it. We don't want crash in this case. + return b, ErrNil + } + return u.marshal(b, ptr, deterministic) +} + +func getMessageMarshalInfo(msg interface{}, a *InternalMessageInfo) *marshalInfo { + // u := a.marshal, but atomically. + // We use an atomic here to ensure memory consistency. + u := atomicLoadMarshalInfo(&a.marshal) + if u == nil { + // Get marshal information from type of message. + t := reflect.ValueOf(msg).Type() + if t.Kind() != reflect.Ptr { + panic(fmt.Sprintf("cannot handle non-pointer message type %v", t)) + } + u = getMarshalInfo(t.Elem()) + // Store it in the cache for later users. + // a.marshal = u, but atomically. + atomicStoreMarshalInfo(&a.marshal, u) + } + return u +} + +// size is the main function to compute the size of the encoded data of a message. +// ptr is the pointer to the message. +func (u *marshalInfo) size(ptr pointer) int { + if atomic.LoadInt32(&u.initialized) == 0 { + u.computeMarshalInfo() + } + + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + if u.hasmarshaler { + // Uses the message's Size method if available + if u.hassizer { + s := ptr.asPointerTo(u.typ).Interface().(Sizer) + return s.Size() + } + // Uses the message's ProtoSize method if available + if u.hasprotosizer { + s := ptr.asPointerTo(u.typ).Interface().(ProtoSizer) + return s.ProtoSize() + } + + m := ptr.asPointerTo(u.typ).Interface().(Marshaler) + b, _ := m.Marshal() + return len(b) + } + + n := 0 + for _, f := range u.fields { + if f.isPointer && ptr.offset(f.field).getPointer().isNil() { + // nil pointer always marshals to nothing + continue + } + n += f.sizer(ptr.offset(f.field), f.tagsize) + } + if u.extensions.IsValid() { + e := ptr.offset(u.extensions).toExtensions() + if u.messageset { + n += u.sizeMessageSet(e) + } else { + n += u.sizeExtensions(e) + } + } + if u.v1extensions.IsValid() { + m := *ptr.offset(u.v1extensions).toOldExtensions() + n += u.sizeV1Extensions(m) + } + if u.bytesExtensions.IsValid() { + s := *ptr.offset(u.bytesExtensions).toBytes() + n += len(s) + } + if u.unrecognized.IsValid() { + s := *ptr.offset(u.unrecognized).toBytes() + n += len(s) + } + + // cache the result for use in marshal + if u.sizecache.IsValid() { + atomic.StoreInt32(ptr.offset(u.sizecache).toInt32(), int32(n)) + } + return n +} + +// cachedsize gets the size from cache. If there is no cache (i.e. message is not generated), +// fall back to compute the size. +func (u *marshalInfo) cachedsize(ptr pointer) int { + if u.sizecache.IsValid() { + return int(atomic.LoadInt32(ptr.offset(u.sizecache).toInt32())) + } + return u.size(ptr) +} + +// marshal is the main function to marshal a message. It takes a byte slice and appends +// the encoded data to the end of the slice, returns the slice and error (if any). +// ptr is the pointer to the message. +// If deterministic is true, map is marshaled in deterministic order. +func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte, error) { + if atomic.LoadInt32(&u.initialized) == 0 { + u.computeMarshalInfo() + } + + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + if u.hasmarshaler { + m := ptr.asPointerTo(u.typ).Interface().(Marshaler) + b1, err := m.Marshal() + b = append(b, b1...) + return b, err + } + + var err, errLater error + // The old marshaler encodes extensions at beginning. + if u.extensions.IsValid() { + e := ptr.offset(u.extensions).toExtensions() + if u.messageset { + b, err = u.appendMessageSet(b, e, deterministic) + } else { + b, err = u.appendExtensions(b, e, deterministic) + } + if err != nil { + return b, err + } + } + if u.v1extensions.IsValid() { + m := *ptr.offset(u.v1extensions).toOldExtensions() + b, err = u.appendV1Extensions(b, m, deterministic) + if err != nil { + return b, err + } + } + if u.bytesExtensions.IsValid() { + s := *ptr.offset(u.bytesExtensions).toBytes() + b = append(b, s...) + } + for _, f := range u.fields { + if f.required { + if f.isPointer && ptr.offset(f.field).getPointer().isNil() { + // Required field is not set. + // We record the error but keep going, to give a complete marshaling. + if errLater == nil { + errLater = &RequiredNotSetError{f.name} + } + continue + } + } + if f.isPointer && ptr.offset(f.field).getPointer().isNil() { + // nil pointer always marshals to nothing + continue + } + b, err = f.marshaler(b, ptr.offset(f.field), f.wiretag, deterministic) + if err != nil { + if err1, ok := err.(*RequiredNotSetError); ok { + // Required field in submessage is not set. + // We record the error but keep going, to give a complete marshaling. + if errLater == nil { + errLater = &RequiredNotSetError{f.name + "." + err1.field} + } + continue + } + if err == errRepeatedHasNil { + err = errors.New("proto: repeated field " + f.name + " has nil element") + } + if err == errInvalidUTF8 { + if errLater == nil { + fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name + errLater = &invalidUTF8Error{fullName} + } + continue + } + return b, err + } + } + if u.unrecognized.IsValid() { + s := *ptr.offset(u.unrecognized).toBytes() + b = append(b, s...) + } + return b, errLater +} + +// computeMarshalInfo initializes the marshal info. +func (u *marshalInfo) computeMarshalInfo() { + u.Lock() + defer u.Unlock() + if u.initialized != 0 { // non-atomic read is ok as it is protected by the lock + return + } + + t := u.typ + u.unrecognized = invalidField + u.extensions = invalidField + u.v1extensions = invalidField + u.bytesExtensions = invalidField + u.sizecache = invalidField + isOneofMessage := false + + if reflect.PtrTo(t).Implements(sizerType) { + u.hassizer = true + } + if reflect.PtrTo(t).Implements(protosizerType) { + u.hasprotosizer = true + } + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + if reflect.PtrTo(t).Implements(marshalerType) { + u.hasmarshaler = true + atomic.StoreInt32(&u.initialized, 1) + return + } + + n := t.NumField() + + // deal with XXX fields first + for i := 0; i < t.NumField(); i++ { + f := t.Field(i) + if f.Tag.Get("protobuf_oneof") != "" { + isOneofMessage = true + } + if !strings.HasPrefix(f.Name, "XXX_") { + continue + } + switch f.Name { + case "XXX_sizecache": + u.sizecache = toField(&f) + case "XXX_unrecognized": + u.unrecognized = toField(&f) + case "XXX_InternalExtensions": + u.extensions = toField(&f) + u.messageset = f.Tag.Get("protobuf_messageset") == "1" + case "XXX_extensions": + if f.Type.Kind() == reflect.Map { + u.v1extensions = toField(&f) + } else { + u.bytesExtensions = toField(&f) + } + case "XXX_NoUnkeyedLiteral": + // nothing to do + default: + panic("unknown XXX field: " + f.Name) + } + n-- + } + + // get oneof implementers + var oneofImplementers []interface{} + // gogo: isOneofMessage is needed for embedded oneof messages, without a marshaler and unmarshaler + if isOneofMessage { + switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) { + case oneofFuncsIface: + _, _, _, oneofImplementers = m.XXX_OneofFuncs() + case oneofWrappersIface: + oneofImplementers = m.XXX_OneofWrappers() + } + } + + // normal fields + fields := make([]marshalFieldInfo, n) // batch allocation + u.fields = make([]*marshalFieldInfo, 0, n) + for i, j := 0, 0; i < t.NumField(); i++ { + f := t.Field(i) + + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + field := &fields[j] + j++ + field.name = f.Name + u.fields = append(u.fields, field) + if f.Tag.Get("protobuf_oneof") != "" { + field.computeOneofFieldInfo(&f, oneofImplementers) + continue + } + if f.Tag.Get("protobuf") == "" { + // field has no tag (not in generated message), ignore it + u.fields = u.fields[:len(u.fields)-1] + j-- + continue + } + field.computeMarshalFieldInfo(&f) + } + + // fields are marshaled in tag order on the wire. + sort.Sort(byTag(u.fields)) + + atomic.StoreInt32(&u.initialized, 1) +} + +// helper for sorting fields by tag +type byTag []*marshalFieldInfo + +func (a byTag) Len() int { return len(a) } +func (a byTag) Swap(i, j int) { a[i], a[j] = a[j], a[i] } +func (a byTag) Less(i, j int) bool { return a[i].wiretag < a[j].wiretag } + +// getExtElemInfo returns the information to marshal an extension element. +// The info it returns is initialized. +func (u *marshalInfo) getExtElemInfo(desc *ExtensionDesc) *marshalElemInfo { + // get from cache first + u.RLock() + e, ok := u.extElems[desc.Field] + u.RUnlock() + if ok { + return e + } + + t := reflect.TypeOf(desc.ExtensionType) // pointer or slice to basic type or struct + tags := strings.Split(desc.Tag, ",") + tag, err := strconv.Atoi(tags[1]) + if err != nil { + panic("tag is not an integer") + } + wt := wiretype(tags[0]) + sizr, marshalr := typeMarshaler(t, tags, false, false) + e = &marshalElemInfo{ + wiretag: uint64(tag)<<3 | wt, + tagsize: SizeVarint(uint64(tag) << 3), + sizer: sizr, + marshaler: marshalr, + isptr: t.Kind() == reflect.Ptr, + } + + // update cache + u.Lock() + if u.extElems == nil { + u.extElems = make(map[int32]*marshalElemInfo) + } + u.extElems[desc.Field] = e + u.Unlock() + return e +} + +// computeMarshalFieldInfo fills up the information to marshal a field. +func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) { + // parse protobuf tag of the field. + // tag has format of "bytes,49,opt,name=foo,def=hello!" + tags := strings.Split(f.Tag.Get("protobuf"), ",") + if tags[0] == "" { + return + } + tag, err := strconv.Atoi(tags[1]) + if err != nil { + panic("tag is not an integer") + } + wt := wiretype(tags[0]) + if tags[2] == "req" { + fi.required = true + } + fi.setTag(f, tag, wt) + fi.setMarshaler(f, tags) +} + +func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) { + fi.field = toField(f) + fi.wiretag = math.MaxInt32 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire. + fi.isPointer = true + fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f) + fi.oneofElems = make(map[reflect.Type]*marshalElemInfo) + + ityp := f.Type // interface type + for _, o := range oneofImplementers { + t := reflect.TypeOf(o) + if !t.Implements(ityp) { + continue + } + sf := t.Elem().Field(0) // oneof implementer is a struct with a single field + tags := strings.Split(sf.Tag.Get("protobuf"), ",") + tag, err := strconv.Atoi(tags[1]) + if err != nil { + panic("tag is not an integer") + } + wt := wiretype(tags[0]) + sizr, marshalr := typeMarshaler(sf.Type, tags, false, true) // oneof should not omit any zero value + fi.oneofElems[t.Elem()] = &marshalElemInfo{ + wiretag: uint64(tag)<<3 | wt, + tagsize: SizeVarint(uint64(tag) << 3), + sizer: sizr, + marshaler: marshalr, + } + } +} + +// wiretype returns the wire encoding of the type. +func wiretype(encoding string) uint64 { + switch encoding { + case "fixed32": + return WireFixed32 + case "fixed64": + return WireFixed64 + case "varint", "zigzag32", "zigzag64": + return WireVarint + case "bytes": + return WireBytes + case "group": + return WireStartGroup + } + panic("unknown wire type " + encoding) +} + +// setTag fills up the tag (in wire format) and its size in the info of a field. +func (fi *marshalFieldInfo) setTag(f *reflect.StructField, tag int, wt uint64) { + fi.field = toField(f) + fi.wiretag = uint64(tag)<<3 | wt + fi.tagsize = SizeVarint(uint64(tag) << 3) +} + +// setMarshaler fills up the sizer and marshaler in the info of a field. +func (fi *marshalFieldInfo) setMarshaler(f *reflect.StructField, tags []string) { + switch f.Type.Kind() { + case reflect.Map: + // map field + fi.isPointer = true + fi.sizer, fi.marshaler = makeMapMarshaler(f) + return + case reflect.Ptr, reflect.Slice: + fi.isPointer = true + } + fi.sizer, fi.marshaler = typeMarshaler(f.Type, tags, true, false) +} + +// typeMarshaler returns the sizer and marshaler of a given field. +// t is the type of the field. +// tags is the generated "protobuf" tag of the field. +// If nozero is true, zero value is not marshaled to the wire. +// If oneof is true, it is a oneof field. +func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, marshaler) { + encoding := tags[0] + + pointer := false + slice := false + if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { + slice = true + t = t.Elem() + } + if t.Kind() == reflect.Ptr { + pointer = true + t = t.Elem() + } + + packed := false + proto3 := false + ctype := false + isTime := false + isDuration := false + isWktPointer := false + validateUTF8 := true + for i := 2; i < len(tags); i++ { + if tags[i] == "packed" { + packed = true + } + if tags[i] == "proto3" { + proto3 = true + } + if strings.HasPrefix(tags[i], "customtype=") { + ctype = true + } + if tags[i] == "stdtime" { + isTime = true + } + if tags[i] == "stdduration" { + isDuration = true + } + if tags[i] == "wktptr" { + isWktPointer = true + } + } + validateUTF8 = validateUTF8 && proto3 + if !proto3 && !pointer && !slice { + nozero = false + } + + if ctype { + if reflect.PtrTo(t).Implements(customType) { + if slice { + return makeMessageRefSliceMarshaler(getMarshalInfo(t)) + } + if pointer { + return makeCustomPtrMarshaler(getMarshalInfo(t)) + } + return makeCustomMarshaler(getMarshalInfo(t)) + } else { + panic(fmt.Sprintf("custom type: type: %v, does not implement the proto.custom interface", t)) + } + } + + if isTime { + if pointer { + if slice { + return makeTimePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeTimePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeTimeSliceMarshaler(getMarshalInfo(t)) + } + return makeTimeMarshaler(getMarshalInfo(t)) + } + + if isDuration { + if pointer { + if slice { + return makeDurationPtrSliceMarshaler(getMarshalInfo(t)) + } + return makeDurationPtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeDurationSliceMarshaler(getMarshalInfo(t)) + } + return makeDurationMarshaler(getMarshalInfo(t)) + } + + if isWktPointer { + switch t.Kind() { + case reflect.Float64: + if pointer { + if slice { + return makeStdDoubleValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdDoubleValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdDoubleValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdDoubleValueMarshaler(getMarshalInfo(t)) + case reflect.Float32: + if pointer { + if slice { + return makeStdFloatValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdFloatValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdFloatValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdFloatValueMarshaler(getMarshalInfo(t)) + case reflect.Int64: + if pointer { + if slice { + return makeStdInt64ValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdInt64ValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdInt64ValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdInt64ValueMarshaler(getMarshalInfo(t)) + case reflect.Uint64: + if pointer { + if slice { + return makeStdUInt64ValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdUInt64ValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdUInt64ValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdUInt64ValueMarshaler(getMarshalInfo(t)) + case reflect.Int32: + if pointer { + if slice { + return makeStdInt32ValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdInt32ValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdInt32ValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdInt32ValueMarshaler(getMarshalInfo(t)) + case reflect.Uint32: + if pointer { + if slice { + return makeStdUInt32ValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdUInt32ValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdUInt32ValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdUInt32ValueMarshaler(getMarshalInfo(t)) + case reflect.Bool: + if pointer { + if slice { + return makeStdBoolValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdBoolValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdBoolValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdBoolValueMarshaler(getMarshalInfo(t)) + case reflect.String: + if pointer { + if slice { + return makeStdStringValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdStringValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdStringValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdStringValueMarshaler(getMarshalInfo(t)) + case uint8SliceType: + if pointer { + if slice { + return makeStdBytesValuePtrSliceMarshaler(getMarshalInfo(t)) + } + return makeStdBytesValuePtrMarshaler(getMarshalInfo(t)) + } + if slice { + return makeStdBytesValueSliceMarshaler(getMarshalInfo(t)) + } + return makeStdBytesValueMarshaler(getMarshalInfo(t)) + default: + panic(fmt.Sprintf("unknown wktpointer type %#v", t)) + } + } + + switch t.Kind() { + case reflect.Bool: + if pointer { + return sizeBoolPtr, appendBoolPtr + } + if slice { + if packed { + return sizeBoolPackedSlice, appendBoolPackedSlice + } + return sizeBoolSlice, appendBoolSlice + } + if nozero { + return sizeBoolValueNoZero, appendBoolValueNoZero + } + return sizeBoolValue, appendBoolValue + case reflect.Uint32: + switch encoding { + case "fixed32": + if pointer { + return sizeFixed32Ptr, appendFixed32Ptr + } + if slice { + if packed { + return sizeFixed32PackedSlice, appendFixed32PackedSlice + } + return sizeFixed32Slice, appendFixed32Slice + } + if nozero { + return sizeFixed32ValueNoZero, appendFixed32ValueNoZero + } + return sizeFixed32Value, appendFixed32Value + case "varint": + if pointer { + return sizeVarint32Ptr, appendVarint32Ptr + } + if slice { + if packed { + return sizeVarint32PackedSlice, appendVarint32PackedSlice + } + return sizeVarint32Slice, appendVarint32Slice + } + if nozero { + return sizeVarint32ValueNoZero, appendVarint32ValueNoZero + } + return sizeVarint32Value, appendVarint32Value + } + case reflect.Int32: + switch encoding { + case "fixed32": + if pointer { + return sizeFixedS32Ptr, appendFixedS32Ptr + } + if slice { + if packed { + return sizeFixedS32PackedSlice, appendFixedS32PackedSlice + } + return sizeFixedS32Slice, appendFixedS32Slice + } + if nozero { + return sizeFixedS32ValueNoZero, appendFixedS32ValueNoZero + } + return sizeFixedS32Value, appendFixedS32Value + case "varint": + if pointer { + return sizeVarintS32Ptr, appendVarintS32Ptr + } + if slice { + if packed { + return sizeVarintS32PackedSlice, appendVarintS32PackedSlice + } + return sizeVarintS32Slice, appendVarintS32Slice + } + if nozero { + return sizeVarintS32ValueNoZero, appendVarintS32ValueNoZero + } + return sizeVarintS32Value, appendVarintS32Value + case "zigzag32": + if pointer { + return sizeZigzag32Ptr, appendZigzag32Ptr + } + if slice { + if packed { + return sizeZigzag32PackedSlice, appendZigzag32PackedSlice + } + return sizeZigzag32Slice, appendZigzag32Slice + } + if nozero { + return sizeZigzag32ValueNoZero, appendZigzag32ValueNoZero + } + return sizeZigzag32Value, appendZigzag32Value + } + case reflect.Uint64: + switch encoding { + case "fixed64": + if pointer { + return sizeFixed64Ptr, appendFixed64Ptr + } + if slice { + if packed { + return sizeFixed64PackedSlice, appendFixed64PackedSlice + } + return sizeFixed64Slice, appendFixed64Slice + } + if nozero { + return sizeFixed64ValueNoZero, appendFixed64ValueNoZero + } + return sizeFixed64Value, appendFixed64Value + case "varint": + if pointer { + return sizeVarint64Ptr, appendVarint64Ptr + } + if slice { + if packed { + return sizeVarint64PackedSlice, appendVarint64PackedSlice + } + return sizeVarint64Slice, appendVarint64Slice + } + if nozero { + return sizeVarint64ValueNoZero, appendVarint64ValueNoZero + } + return sizeVarint64Value, appendVarint64Value + } + case reflect.Int64: + switch encoding { + case "fixed64": + if pointer { + return sizeFixedS64Ptr, appendFixedS64Ptr + } + if slice { + if packed { + return sizeFixedS64PackedSlice, appendFixedS64PackedSlice + } + return sizeFixedS64Slice, appendFixedS64Slice + } + if nozero { + return sizeFixedS64ValueNoZero, appendFixedS64ValueNoZero + } + return sizeFixedS64Value, appendFixedS64Value + case "varint": + if pointer { + return sizeVarintS64Ptr, appendVarintS64Ptr + } + if slice { + if packed { + return sizeVarintS64PackedSlice, appendVarintS64PackedSlice + } + return sizeVarintS64Slice, appendVarintS64Slice + } + if nozero { + return sizeVarintS64ValueNoZero, appendVarintS64ValueNoZero + } + return sizeVarintS64Value, appendVarintS64Value + case "zigzag64": + if pointer { + return sizeZigzag64Ptr, appendZigzag64Ptr + } + if slice { + if packed { + return sizeZigzag64PackedSlice, appendZigzag64PackedSlice + } + return sizeZigzag64Slice, appendZigzag64Slice + } + if nozero { + return sizeZigzag64ValueNoZero, appendZigzag64ValueNoZero + } + return sizeZigzag64Value, appendZigzag64Value + } + case reflect.Float32: + if pointer { + return sizeFloat32Ptr, appendFloat32Ptr + } + if slice { + if packed { + return sizeFloat32PackedSlice, appendFloat32PackedSlice + } + return sizeFloat32Slice, appendFloat32Slice + } + if nozero { + return sizeFloat32ValueNoZero, appendFloat32ValueNoZero + } + return sizeFloat32Value, appendFloat32Value + case reflect.Float64: + if pointer { + return sizeFloat64Ptr, appendFloat64Ptr + } + if slice { + if packed { + return sizeFloat64PackedSlice, appendFloat64PackedSlice + } + return sizeFloat64Slice, appendFloat64Slice + } + if nozero { + return sizeFloat64ValueNoZero, appendFloat64ValueNoZero + } + return sizeFloat64Value, appendFloat64Value + case reflect.String: + if validateUTF8 { + if pointer { + return sizeStringPtr, appendUTF8StringPtr + } + if slice { + return sizeStringSlice, appendUTF8StringSlice + } + if nozero { + return sizeStringValueNoZero, appendUTF8StringValueNoZero + } + return sizeStringValue, appendUTF8StringValue + } + if pointer { + return sizeStringPtr, appendStringPtr + } + if slice { + return sizeStringSlice, appendStringSlice + } + if nozero { + return sizeStringValueNoZero, appendStringValueNoZero + } + return sizeStringValue, appendStringValue + case reflect.Slice: + if slice { + return sizeBytesSlice, appendBytesSlice + } + if oneof { + // Oneof bytes field may also have "proto3" tag. + // We want to marshal it as a oneof field. Do this + // check before the proto3 check. + return sizeBytesOneof, appendBytesOneof + } + if proto3 { + return sizeBytes3, appendBytes3 + } + return sizeBytes, appendBytes + case reflect.Struct: + switch encoding { + case "group": + if slice { + return makeGroupSliceMarshaler(getMarshalInfo(t)) + } + return makeGroupMarshaler(getMarshalInfo(t)) + case "bytes": + if pointer { + if slice { + return makeMessageSliceMarshaler(getMarshalInfo(t)) + } + return makeMessageMarshaler(getMarshalInfo(t)) + } else { + if slice { + return makeMessageRefSliceMarshaler(getMarshalInfo(t)) + } + return makeMessageRefMarshaler(getMarshalInfo(t)) + } + } + } + panic(fmt.Sprintf("unknown or mismatched type: type: %v, wire type: %v", t, encoding)) +} + +// Below are functions to size/marshal a specific type of a field. +// They are stored in the field's info, and called by function pointers. +// They have type sizer or marshaler. + +func sizeFixed32Value(_ pointer, tagsize int) int { + return 4 + tagsize +} +func sizeFixed32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint32() + if v == 0 { + return 0 + } + return 4 + tagsize +} +func sizeFixed32Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint32Ptr() + if p == nil { + return 0 + } + return 4 + tagsize +} +func sizeFixed32Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + return (4 + tagsize) * len(s) +} +func sizeFixed32PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return 0 + } + return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize +} +func sizeFixedS32Value(_ pointer, tagsize int) int { + return 4 + tagsize +} +func sizeFixedS32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + if v == 0 { + return 0 + } + return 4 + tagsize +} +func sizeFixedS32Ptr(ptr pointer, tagsize int) int { + p := ptr.getInt32Ptr() + if p == nil { + return 0 + } + return 4 + tagsize +} +func sizeFixedS32Slice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + return (4 + tagsize) * len(s) +} +func sizeFixedS32PackedSlice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + if len(s) == 0 { + return 0 + } + return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize +} +func sizeFloat32Value(_ pointer, tagsize int) int { + return 4 + tagsize +} +func sizeFloat32ValueNoZero(ptr pointer, tagsize int) int { + v := math.Float32bits(*ptr.toFloat32()) + if v == 0 { + return 0 + } + return 4 + tagsize +} +func sizeFloat32Ptr(ptr pointer, tagsize int) int { + p := *ptr.toFloat32Ptr() + if p == nil { + return 0 + } + return 4 + tagsize +} +func sizeFloat32Slice(ptr pointer, tagsize int) int { + s := *ptr.toFloat32Slice() + return (4 + tagsize) * len(s) +} +func sizeFloat32PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toFloat32Slice() + if len(s) == 0 { + return 0 + } + return 4*len(s) + SizeVarint(uint64(4*len(s))) + tagsize +} +func sizeFixed64Value(_ pointer, tagsize int) int { + return 8 + tagsize +} +func sizeFixed64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint64() + if v == 0 { + return 0 + } + return 8 + tagsize +} +func sizeFixed64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint64Ptr() + if p == nil { + return 0 + } + return 8 + tagsize +} +func sizeFixed64Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + return (8 + tagsize) * len(s) +} +func sizeFixed64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return 0 + } + return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize +} +func sizeFixedS64Value(_ pointer, tagsize int) int { + return 8 + tagsize +} +func sizeFixedS64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + if v == 0 { + return 0 + } + return 8 + tagsize +} +func sizeFixedS64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toInt64Ptr() + if p == nil { + return 0 + } + return 8 + tagsize +} +func sizeFixedS64Slice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + return (8 + tagsize) * len(s) +} +func sizeFixedS64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return 0 + } + return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize +} +func sizeFloat64Value(_ pointer, tagsize int) int { + return 8 + tagsize +} +func sizeFloat64ValueNoZero(ptr pointer, tagsize int) int { + v := math.Float64bits(*ptr.toFloat64()) + if v == 0 { + return 0 + } + return 8 + tagsize +} +func sizeFloat64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toFloat64Ptr() + if p == nil { + return 0 + } + return 8 + tagsize +} +func sizeFloat64Slice(ptr pointer, tagsize int) int { + s := *ptr.toFloat64Slice() + return (8 + tagsize) * len(s) +} +func sizeFloat64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toFloat64Slice() + if len(s) == 0 { + return 0 + } + return 8*len(s) + SizeVarint(uint64(8*len(s))) + tagsize +} +func sizeVarint32Value(ptr pointer, tagsize int) int { + v := *ptr.toUint32() + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarint32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint32() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarint32Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint32Ptr() + if p == nil { + return 0 + } + return SizeVarint(uint64(*p)) + tagsize +} +func sizeVarint32Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + tagsize + } + return n +} +func sizeVarint32PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeVarintS32Value(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS32Ptr(ptr pointer, tagsize int) int { + p := ptr.getInt32Ptr() + if p == nil { + return 0 + } + return SizeVarint(uint64(*p)) + tagsize +} +func sizeVarintS32Slice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + tagsize + } + return n +} +func sizeVarintS32PackedSlice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeVarint64Value(ptr pointer, tagsize int) int { + v := *ptr.toUint64() + return SizeVarint(v) + tagsize +} +func sizeVarint64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toUint64() + if v == 0 { + return 0 + } + return SizeVarint(v) + tagsize +} +func sizeVarint64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toUint64Ptr() + if p == nil { + return 0 + } + return SizeVarint(*p) + tagsize +} +func sizeVarint64Slice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + n := 0 + for _, v := range s { + n += SizeVarint(v) + tagsize + } + return n +} +func sizeVarint64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(v) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeVarintS64Value(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v)) + tagsize +} +func sizeVarintS64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toInt64Ptr() + if p == nil { + return 0 + } + return SizeVarint(uint64(*p)) + tagsize +} +func sizeVarintS64Slice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + tagsize + } + return n +} +func sizeVarintS64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeZigzag32Value(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize +} +func sizeZigzag32ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt32() + if v == 0 { + return 0 + } + return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize +} +func sizeZigzag32Ptr(ptr pointer, tagsize int) int { + p := ptr.getInt32Ptr() + if p == nil { + return 0 + } + v := *p + return SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize +} +func sizeZigzag32Slice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + tagsize + } + return n +} +func sizeZigzag32PackedSlice(ptr pointer, tagsize int) int { + s := ptr.getInt32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeZigzag64Value(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize +} +func sizeZigzag64ValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toInt64() + if v == 0 { + return 0 + } + return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize +} +func sizeZigzag64Ptr(ptr pointer, tagsize int) int { + p := *ptr.toInt64Ptr() + if p == nil { + return 0 + } + v := *p + return SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize +} +func sizeZigzag64Slice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v<<1)^uint64((int64(v)>>63))) + tagsize + } + return n +} +func sizeZigzag64PackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63))) + } + return n + SizeVarint(uint64(n)) + tagsize +} +func sizeBoolValue(_ pointer, tagsize int) int { + return 1 + tagsize +} +func sizeBoolValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toBool() + if !v { + return 0 + } + return 1 + tagsize +} +func sizeBoolPtr(ptr pointer, tagsize int) int { + p := *ptr.toBoolPtr() + if p == nil { + return 0 + } + return 1 + tagsize +} +func sizeBoolSlice(ptr pointer, tagsize int) int { + s := *ptr.toBoolSlice() + return (1 + tagsize) * len(s) +} +func sizeBoolPackedSlice(ptr pointer, tagsize int) int { + s := *ptr.toBoolSlice() + if len(s) == 0 { + return 0 + } + return len(s) + SizeVarint(uint64(len(s))) + tagsize +} +func sizeStringValue(ptr pointer, tagsize int) int { + v := *ptr.toString() + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeStringValueNoZero(ptr pointer, tagsize int) int { + v := *ptr.toString() + if v == "" { + return 0 + } + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeStringPtr(ptr pointer, tagsize int) int { + p := *ptr.toStringPtr() + if p == nil { + return 0 + } + v := *p + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeStringSlice(ptr pointer, tagsize int) int { + s := *ptr.toStringSlice() + n := 0 + for _, v := range s { + n += len(v) + SizeVarint(uint64(len(v))) + tagsize + } + return n +} +func sizeBytes(ptr pointer, tagsize int) int { + v := *ptr.toBytes() + if v == nil { + return 0 + } + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeBytes3(ptr pointer, tagsize int) int { + v := *ptr.toBytes() + if len(v) == 0 { + return 0 + } + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeBytesOneof(ptr pointer, tagsize int) int { + v := *ptr.toBytes() + return len(v) + SizeVarint(uint64(len(v))) + tagsize +} +func sizeBytesSlice(ptr pointer, tagsize int) int { + s := *ptr.toBytesSlice() + n := 0 + for _, v := range s { + n += len(v) + SizeVarint(uint64(len(v))) + tagsize + } + return n +} + +// appendFixed32 appends an encoded fixed32 to b. +func appendFixed32(b []byte, v uint32) []byte { + b = append(b, + byte(v), + byte(v>>8), + byte(v>>16), + byte(v>>24)) + return b +} + +// appendFixed64 appends an encoded fixed64 to b. +func appendFixed64(b []byte, v uint64) []byte { + b = append(b, + byte(v), + byte(v>>8), + byte(v>>16), + byte(v>>24), + byte(v>>32), + byte(v>>40), + byte(v>>48), + byte(v>>56)) + return b +} + +// appendVarint appends an encoded varint to b. +func appendVarint(b []byte, v uint64) []byte { + // TODO: make 1-byte (maybe 2-byte) case inline-able, once we + // have non-leaf inliner. + switch { + case v < 1<<7: + b = append(b, byte(v)) + case v < 1<<14: + b = append(b, + byte(v&0x7f|0x80), + byte(v>>7)) + case v < 1<<21: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte(v>>14)) + case v < 1<<28: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte(v>>21)) + case v < 1<<35: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte(v>>28)) + case v < 1<<42: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte(v>>35)) + case v < 1<<49: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte(v>>42)) + case v < 1<<56: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte(v>>49)) + case v < 1<<63: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte(v>>56)) + default: + b = append(b, + byte(v&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte((v>>56)&0x7f|0x80), + 1) + } + return b +} + +func appendFixed32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFixed32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFixed32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, *p) + return b, nil +} +func appendFixed32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + } + return b, nil +} +func appendFixed32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(4*len(s))) + for _, v := range s { + b = appendFixed32(b, v) + } + return b, nil +} +func appendFixedS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(v)) + return b, nil +} +func appendFixedS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(v)) + return b, nil +} +func appendFixedS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := ptr.getInt32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(*p)) + return b, nil +} +func appendFixedS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed32(b, uint32(v)) + } + return b, nil +} +func appendFixedS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(4*len(s))) + for _, v := range s { + b = appendFixed32(b, uint32(v)) + } + return b, nil +} +func appendFloat32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float32bits(*ptr.toFloat32()) + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFloat32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float32bits(*ptr.toFloat32()) + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, v) + return b, nil +} +func appendFloat32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toFloat32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed32(b, math.Float32bits(*p)) + return b, nil +} +func appendFloat32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed32(b, math.Float32bits(v)) + } + return b, nil +} +func appendFloat32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(4*len(s))) + for _, v := range s { + b = appendFixed32(b, math.Float32bits(v)) + } + return b, nil +} +func appendFixed64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFixed64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFixed64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, *p) + return b, nil +} +func appendFixed64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + } + return b, nil +} +func appendFixed64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(8*len(s))) + for _, v := range s { + b = appendFixed64(b, v) + } + return b, nil +} +func appendFixedS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(v)) + return b, nil +} +func appendFixedS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(v)) + return b, nil +} +func appendFixedS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toInt64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(*p)) + return b, nil +} +func appendFixedS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed64(b, uint64(v)) + } + return b, nil +} +func appendFixedS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(8*len(s))) + for _, v := range s { + b = appendFixed64(b, uint64(v)) + } + return b, nil +} +func appendFloat64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float64bits(*ptr.toFloat64()) + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFloat64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := math.Float64bits(*ptr.toFloat64()) + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, v) + return b, nil +} +func appendFloat64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toFloat64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendFixed64(b, math.Float64bits(*p)) + return b, nil +} +func appendFloat64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendFixed64(b, math.Float64bits(v)) + } + return b, nil +} +func appendFloat64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toFloat64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(8*len(s))) + for _, v := range s { + b = appendFixed64(b, math.Float64bits(v)) + } + return b, nil +} +func appendVarint32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarint32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarint32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(*p)) + return b, nil +} +func appendVarint32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarint32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarintS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := ptr.getInt32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(*p)) + return b, nil +} +func appendVarintS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarintS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarint64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + b = appendVarint(b, wiretag) + b = appendVarint(b, v) + return b, nil +} +func appendVarint64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toUint64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, v) + return b, nil +} +func appendVarint64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toUint64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, *p) + return b, nil +} +func appendVarint64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, v) + } + return b, nil +} +func appendVarint64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toUint64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(v) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, v) + } + return b, nil +} +func appendVarintS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + return b, nil +} +func appendVarintS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toInt64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(*p)) + return b, nil +} +func appendVarintS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendVarintS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v)) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v)) + } + return b, nil +} +func appendZigzag32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + return b, nil +} +func appendZigzag32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt32() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + return b, nil +} +func appendZigzag32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := ptr.getInt32Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + v := *p + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + return b, nil +} +func appendZigzag32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + } + return b, nil +} +func appendZigzag32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := ptr.getInt32Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64((uint32(v)<<1)^uint32((int32(v)>>31)))) + } + return b, nil +} +func appendZigzag64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + return b, nil +} +func appendZigzag64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toInt64() + if v == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + return b, nil +} +func appendZigzag64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toInt64Ptr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + v := *p + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + return b, nil +} +func appendZigzag64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + } + return b, nil +} +func appendZigzag64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toInt64Slice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + // compute size + n := 0 + for _, v := range s { + n += SizeVarint(uint64(v<<1) ^ uint64((int64(v) >> 63))) + } + b = appendVarint(b, uint64(n)) + for _, v := range s { + b = appendVarint(b, uint64(v<<1)^uint64((int64(v)>>63))) + } + return b, nil +} +func appendBoolValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBool() + b = appendVarint(b, wiretag) + if v { + b = append(b, 1) + } else { + b = append(b, 0) + } + return b, nil +} +func appendBoolValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBool() + if !v { + return b, nil + } + b = appendVarint(b, wiretag) + b = append(b, 1) + return b, nil +} + +func appendBoolPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toBoolPtr() + if p == nil { + return b, nil + } + b = appendVarint(b, wiretag) + if *p { + b = append(b, 1) + } else { + b = append(b, 0) + } + return b, nil +} +func appendBoolSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toBoolSlice() + for _, v := range s { + b = appendVarint(b, wiretag) + if v { + b = append(b, 1) + } else { + b = append(b, 0) + } + } + return b, nil +} +func appendBoolPackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toBoolSlice() + if len(s) == 0 { + return b, nil + } + b = appendVarint(b, wiretag&^7|WireBytes) + b = appendVarint(b, uint64(len(s))) + for _, v := range s { + if v { + b = append(b, 1) + } else { + b = append(b, 0) + } + } + return b, nil +} +func appendStringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toString() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendStringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toString() + if v == "" { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendStringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + p := *ptr.toStringPtr() + if p == nil { + return b, nil + } + v := *p + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendStringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toStringSlice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + } + return b, nil +} +func appendUTF8StringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + var invalidUTF8 bool + v := *ptr.toString() + if !utf8.ValidString(v) { + invalidUTF8 = true + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + if invalidUTF8 { + return b, errInvalidUTF8 + } + return b, nil +} +func appendUTF8StringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + var invalidUTF8 bool + v := *ptr.toString() + if v == "" { + return b, nil + } + if !utf8.ValidString(v) { + invalidUTF8 = true + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + if invalidUTF8 { + return b, errInvalidUTF8 + } + return b, nil +} +func appendUTF8StringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + var invalidUTF8 bool + p := *ptr.toStringPtr() + if p == nil { + return b, nil + } + v := *p + if !utf8.ValidString(v) { + invalidUTF8 = true + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + if invalidUTF8 { + return b, errInvalidUTF8 + } + return b, nil +} +func appendUTF8StringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + var invalidUTF8 bool + s := *ptr.toStringSlice() + for _, v := range s { + if !utf8.ValidString(v) { + invalidUTF8 = true + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + } + if invalidUTF8 { + return b, errInvalidUTF8 + } + return b, nil +} +func appendBytes(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBytes() + if v == nil { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendBytes3(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBytes() + if len(v) == 0 { + return b, nil + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendBytesOneof(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + v := *ptr.toBytes() + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + return b, nil +} +func appendBytesSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) { + s := *ptr.toBytesSlice() + for _, v := range s { + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(v))) + b = append(b, v...) + } + return b, nil +} + +// makeGroupMarshaler returns the sizer and marshaler for a group. +// u is the marshal info of the underlying message. +func makeGroupMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + p := ptr.getPointer() + if p.isNil() { + return 0 + } + return u.size(p) + 2*tagsize + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + p := ptr.getPointer() + if p.isNil() { + return b, nil + } + var err error + b = appendVarint(b, wiretag) // start group + b, err = u.marshal(b, p, deterministic) + b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group + return b, err + } +} + +// makeGroupSliceMarshaler returns the sizer and marshaler for a group slice. +// u is the marshal info of the underlying message. +func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getPointerSlice() + n := 0 + for _, v := range s { + if v.isNil() { + continue + } + n += u.size(v) + 2*tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getPointerSlice() + var err error + var nerr nonFatal + for _, v := range s { + if v.isNil() { + return b, errRepeatedHasNil + } + b = appendVarint(b, wiretag) // start group + b, err = u.marshal(b, v, deterministic) + b = appendVarint(b, wiretag+(WireEndGroup-WireStartGroup)) // end group + if !nerr.Merge(err) { + if err == ErrNil { + err = errRepeatedHasNil + } + return b, err + } + } + return b, nerr.E + } +} + +// makeMessageMarshaler returns the sizer and marshaler for a message field. +// u is the marshal info of the message. +func makeMessageMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + p := ptr.getPointer() + if p.isNil() { + return 0 + } + siz := u.size(p) + return siz + SizeVarint(uint64(siz)) + tagsize + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + p := ptr.getPointer() + if p.isNil() { + return b, nil + } + b = appendVarint(b, wiretag) + siz := u.cachedsize(p) + b = appendVarint(b, uint64(siz)) + return u.marshal(b, p, deterministic) + } +} + +// makeMessageSliceMarshaler returns the sizer and marshaler for a message slice. +// u is the marshal info of the message. +func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getPointerSlice() + n := 0 + for _, v := range s { + if v.isNil() { + continue + } + siz := u.size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getPointerSlice() + var err error + var nerr nonFatal + for _, v := range s { + if v.isNil() { + return b, errRepeatedHasNil + } + b = appendVarint(b, wiretag) + siz := u.cachedsize(v) + b = appendVarint(b, uint64(siz)) + b, err = u.marshal(b, v, deterministic) + + if !nerr.Merge(err) { + if err == ErrNil { + err = errRepeatedHasNil + } + return b, err + } + } + return b, nerr.E + } +} + +// makeMapMarshaler returns the sizer and marshaler for a map field. +// f is the pointer to the reflect data structure of the field. +func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) { + // figure out key and value type + t := f.Type + keyType := t.Key() + valType := t.Elem() + tags := strings.Split(f.Tag.Get("protobuf"), ",") + keyTags := strings.Split(f.Tag.Get("protobuf_key"), ",") + valTags := strings.Split(f.Tag.Get("protobuf_val"), ",") + stdOptions := false + for _, t := range tags { + if strings.HasPrefix(t, "customtype=") { + valTags = append(valTags, t) + } + if t == "stdtime" { + valTags = append(valTags, t) + stdOptions = true + } + if t == "stdduration" { + valTags = append(valTags, t) + stdOptions = true + } + if t == "wktptr" { + valTags = append(valTags, t) + } + } + keySizer, keyMarshaler := typeMarshaler(keyType, keyTags, false, false) // don't omit zero value in map + valSizer, valMarshaler := typeMarshaler(valType, valTags, false, false) // don't omit zero value in map + keyWireTag := 1<<3 | wiretype(keyTags[0]) + valWireTag := 2<<3 | wiretype(valTags[0]) + + // We create an interface to get the addresses of the map key and value. + // If value is pointer-typed, the interface is a direct interface, the + // idata itself is the value. Otherwise, the idata is the pointer to the + // value. + // Key cannot be pointer-typed. + valIsPtr := valType.Kind() == reflect.Ptr + + // If value is a message with nested maps, calling + // valSizer in marshal may be quadratic. We should use + // cached version in marshal (but not in size). + // If value is not message type, we don't have size cache, + // but it cannot be nested either. Just use valSizer. + valCachedSizer := valSizer + if valIsPtr && !stdOptions && valType.Elem().Kind() == reflect.Struct { + u := getMarshalInfo(valType.Elem()) + valCachedSizer = func(ptr pointer, tagsize int) int { + // Same as message sizer, but use cache. + p := ptr.getPointer() + if p.isNil() { + return 0 + } + siz := u.cachedsize(p) + return siz + SizeVarint(uint64(siz)) + tagsize + } + } + return func(ptr pointer, tagsize int) int { + m := ptr.asPointerTo(t).Elem() // the map + n := 0 + for _, k := range m.MapKeys() { + ki := k.Interface() + vi := m.MapIndex(k).Interface() + kaddr := toAddrPointer(&ki, false) // pointer to key + vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value + siz := keySizer(kaddr, 1) + valSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, tag uint64, deterministic bool) ([]byte, error) { + m := ptr.asPointerTo(t).Elem() // the map + var err error + keys := m.MapKeys() + if len(keys) > 1 && deterministic { + sort.Sort(mapKeys(keys)) + } + + var nerr nonFatal + for _, k := range keys { + ki := k.Interface() + vi := m.MapIndex(k).Interface() + kaddr := toAddrPointer(&ki, false) // pointer to key + vaddr := toAddrPointer(&vi, valIsPtr) // pointer to value + b = appendVarint(b, tag) + siz := keySizer(kaddr, 1) + valCachedSizer(vaddr, 1) // tag of key = 1 (size=1), tag of val = 2 (size=1) + b = appendVarint(b, uint64(siz)) + b, err = keyMarshaler(b, kaddr, keyWireTag, deterministic) + if !nerr.Merge(err) { + return b, err + } + b, err = valMarshaler(b, vaddr, valWireTag, deterministic) + if err != ErrNil && !nerr.Merge(err) { // allow nil value in map + return b, err + } + } + return b, nerr.E + } +} + +// makeOneOfMarshaler returns the sizer and marshaler for a oneof field. +// fi is the marshal info of the field. +// f is the pointer to the reflect data structure of the field. +func makeOneOfMarshaler(fi *marshalFieldInfo, f *reflect.StructField) (sizer, marshaler) { + // Oneof field is an interface. We need to get the actual data type on the fly. + t := f.Type + return func(ptr pointer, _ int) int { + p := ptr.getInterfacePointer() + if p.isNil() { + return 0 + } + v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct + telem := v.Type() + e := fi.oneofElems[telem] + return e.sizer(p, e.tagsize) + }, + func(b []byte, ptr pointer, _ uint64, deterministic bool) ([]byte, error) { + p := ptr.getInterfacePointer() + if p.isNil() { + return b, nil + } + v := ptr.asPointerTo(t).Elem().Elem().Elem() // *interface -> interface -> *struct -> struct + telem := v.Type() + if telem.Field(0).Type.Kind() == reflect.Ptr && p.getPointer().isNil() { + return b, errOneofHasNil + } + e := fi.oneofElems[telem] + return e.marshaler(b, p, e.wiretag, deterministic) + } +} + +// sizeExtensions computes the size of encoded data for a XXX_InternalExtensions field. +func (u *marshalInfo) sizeExtensions(ext *XXX_InternalExtensions) int { + m, mu := ext.extensionsRead() + if m == nil { + return 0 + } + mu.Lock() + + n := 0 + for _, e := range m { + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + n += len(e.enc) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + n += ei.sizer(p, ei.tagsize) + } + mu.Unlock() + return n +} + +// appendExtensions marshals a XXX_InternalExtensions field to the end of byte slice b. +func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) { + m, mu := ext.extensionsRead() + if m == nil { + return b, nil + } + mu.Lock() + defer mu.Unlock() + + var err error + var nerr nonFatal + + // Fast-path for common cases: zero or one extensions. + // Don't bother sorting the keys. + if len(m) <= 1 { + for _, e := range m { + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + b = append(b, e.enc...) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, ei.wiretag, deterministic) + if !nerr.Merge(err) { + return b, err + } + } + return b, nerr.E + } + + // Sort the keys to provide a deterministic encoding. + // Not sure this is required, but the old code does it. + keys := make([]int, 0, len(m)) + for k := range m { + keys = append(keys, int(k)) + } + sort.Ints(keys) + + for _, k := range keys { + e := m[int32(k)] + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + b = append(b, e.enc...) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, ei.wiretag, deterministic) + if !nerr.Merge(err) { + return b, err + } + } + return b, nerr.E +} + +// message set format is: +// message MessageSet { +// repeated group Item = 1 { +// required int32 type_id = 2; +// required string message = 3; +// }; +// } + +// sizeMessageSet computes the size of encoded data for a XXX_InternalExtensions field +// in message set format (above). +func (u *marshalInfo) sizeMessageSet(ext *XXX_InternalExtensions) int { + m, mu := ext.extensionsRead() + if m == nil { + return 0 + } + mu.Lock() + + n := 0 + for id, e := range m { + n += 2 // start group, end group. tag = 1 (size=1) + n += SizeVarint(uint64(id)) + 1 // type_id, tag = 2 (size=1) + + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint + siz := len(msgWithLen) + n += siz + 1 // message, tag = 3 (size=1) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + n += ei.sizer(p, 1) // message, tag = 3 (size=1) + } + mu.Unlock() + return n +} + +// appendMessageSet marshals a XXX_InternalExtensions field in message set format (above) +// to the end of byte slice b. +func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) { + m, mu := ext.extensionsRead() + if m == nil { + return b, nil + } + mu.Lock() + defer mu.Unlock() + + var err error + var nerr nonFatal + + // Fast-path for common cases: zero or one extensions. + // Don't bother sorting the keys. + if len(m) <= 1 { + for id, e := range m { + b = append(b, 1<<3|WireStartGroup) + b = append(b, 2<<3|WireVarint) + b = appendVarint(b, uint64(id)) + + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint + b = append(b, 3<<3|WireBytes) + b = append(b, msgWithLen...) + b = append(b, 1<<3|WireEndGroup) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) + if !nerr.Merge(err) { + return b, err + } + b = append(b, 1<<3|WireEndGroup) + } + return b, nerr.E + } + + // Sort the keys to provide a deterministic encoding. + keys := make([]int, 0, len(m)) + for k := range m { + keys = append(keys, int(k)) + } + sort.Ints(keys) + + for _, id := range keys { + e := m[int32(id)] + b = append(b, 1<<3|WireStartGroup) + b = append(b, 2<<3|WireVarint) + b = appendVarint(b, uint64(id)) + + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + msgWithLen := skipVarint(e.enc) // skip old tag, but leave the length varint + b = append(b, 3<<3|WireBytes) + b = append(b, msgWithLen...) + b = append(b, 1<<3|WireEndGroup) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, 3<<3|WireBytes, deterministic) + b = append(b, 1<<3|WireEndGroup) + if !nerr.Merge(err) { + return b, err + } + } + return b, nerr.E +} + +// sizeV1Extensions computes the size of encoded data for a V1-API extension field. +func (u *marshalInfo) sizeV1Extensions(m map[int32]Extension) int { + if m == nil { + return 0 + } + + n := 0 + for _, e := range m { + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + n += len(e.enc) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + n += ei.sizer(p, ei.tagsize) + } + return n +} + +// appendV1Extensions marshals a V1-API extension field to the end of byte slice b. +func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, deterministic bool) ([]byte, error) { + if m == nil { + return b, nil + } + + // Sort the keys to provide a deterministic encoding. + keys := make([]int, 0, len(m)) + for k := range m { + keys = append(keys, int(k)) + } + sort.Ints(keys) + + var err error + var nerr nonFatal + for _, k := range keys { + e := m[int32(k)] + if e.value == nil || e.desc == nil { + // Extension is only in its encoded form. + b = append(b, e.enc...) + continue + } + + // We don't skip extensions that have an encoded form set, + // because the extension value may have been mutated after + // the last time this function was called. + + ei := u.getExtElemInfo(e.desc) + v := e.value + p := toAddrPointer(&v, ei.isptr) + b, err = ei.marshaler(b, p, ei.wiretag, deterministic) + if !nerr.Merge(err) { + return b, err + } + } + return b, nerr.E +} + +// newMarshaler is the interface representing objects that can marshal themselves. +// +// This exists to support protoc-gen-go generated messages. +// The proto package will stop type-asserting to this interface in the future. +// +// DO NOT DEPEND ON THIS. +type newMarshaler interface { + XXX_Size() int + XXX_Marshal(b []byte, deterministic bool) ([]byte, error) +} + +// Size returns the encoded size of a protocol buffer message. +// This is the main entry point. +func Size(pb Message) int { + if m, ok := pb.(newMarshaler); ok { + return m.XXX_Size() + } + if m, ok := pb.(Marshaler); ok { + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + b, _ := m.Marshal() + return len(b) + } + // in case somehow we didn't generate the wrapper + if pb == nil { + return 0 + } + var info InternalMessageInfo + return info.Size(pb) +} + +// Marshal takes a protocol buffer message +// and encodes it into the wire format, returning the data. +// This is the main entry point. +func Marshal(pb Message) ([]byte, error) { + if m, ok := pb.(newMarshaler); ok { + siz := m.XXX_Size() + b := make([]byte, 0, siz) + return m.XXX_Marshal(b, false) + } + if m, ok := pb.(Marshaler); ok { + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + return m.Marshal() + } + // in case somehow we didn't generate the wrapper + if pb == nil { + return nil, ErrNil + } + var info InternalMessageInfo + siz := info.Size(pb) + b := make([]byte, 0, siz) + return info.Marshal(b, pb, false) +} + +// Marshal takes a protocol buffer message +// and encodes it into the wire format, writing the result to the +// Buffer. +// This is an alternative entry point. It is not necessary to use +// a Buffer for most applications. +func (p *Buffer) Marshal(pb Message) error { + var err error + if p.deterministic { + if _, ok := pb.(Marshaler); ok { + return fmt.Errorf("proto: deterministic not supported by the Marshal method of %T", pb) + } + } + if m, ok := pb.(newMarshaler); ok { + siz := m.XXX_Size() + p.grow(siz) // make sure buf has enough capacity + pp := p.buf[len(p.buf) : len(p.buf) : len(p.buf)+siz] + pp, err = m.XXX_Marshal(pp, p.deterministic) + p.buf = append(p.buf, pp...) + return err + } + if m, ok := pb.(Marshaler); ok { + // If the message can marshal itself, let it do it, for compatibility. + // NOTE: This is not efficient. + var b []byte + b, err = m.Marshal() + p.buf = append(p.buf, b...) + return err + } + // in case somehow we didn't generate the wrapper + if pb == nil { + return ErrNil + } + var info InternalMessageInfo + siz := info.Size(pb) + p.grow(siz) // make sure buf has enough capacity + p.buf, err = info.Marshal(p.buf, pb, p.deterministic) + return err +} + +// grow grows the buffer's capacity, if necessary, to guarantee space for +// another n bytes. After grow(n), at least n bytes can be written to the +// buffer without another allocation. +func (p *Buffer) grow(n int) { + need := len(p.buf) + n + if need <= cap(p.buf) { + return + } + newCap := len(p.buf) * 2 + if newCap < need { + newCap = need + } + p.buf = append(make([]byte, 0, newCap), p.buf...) +} diff --git a/vendor/github.com/gogo/protobuf/proto/table_marshal_gogo.go b/vendor/github.com/gogo/protobuf/proto/table_marshal_gogo.go new file mode 100644 index 0000000..997f57c --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/table_marshal_gogo.go @@ -0,0 +1,388 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "reflect" + "time" +) + +// makeMessageRefMarshaler differs a bit from makeMessageMarshaler +// It marshal a message T instead of a *T +func makeMessageRefMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + siz := u.size(ptr) + return siz + SizeVarint(uint64(siz)) + tagsize + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + b = appendVarint(b, wiretag) + siz := u.cachedsize(ptr) + b = appendVarint(b, uint64(siz)) + return u.marshal(b, ptr, deterministic) + } +} + +// makeMessageRefSliceMarshaler differs quite a lot from makeMessageSliceMarshaler +// It marshals a slice of messages []T instead of []*T +func makeMessageRefSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + e := elem.Interface() + v := toAddrPointer(&e, false) + siz := u.size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + var err, errreq error + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + e := elem.Interface() + v := toAddrPointer(&e, false) + b = appendVarint(b, wiretag) + siz := u.size(v) + b = appendVarint(b, uint64(siz)) + b, err = u.marshal(b, v, deterministic) + + if err != nil { + if _, ok := err.(*RequiredNotSetError); ok { + // Required field in submessage is not set. + // We record the error but keep going, to give a complete marshaling. + if errreq == nil { + errreq = err + } + continue + } + if err == ErrNil { + err = errRepeatedHasNil + } + return b, err + } + } + + return b, errreq + } +} + +func makeCustomPtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + m := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(custom) + siz := m.Size() + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + m := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(custom) + siz := m.Size() + buf, err := m.Marshal() + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + return b, nil + } +} + +func makeCustomMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + m := ptr.asPointerTo(u.typ).Interface().(custom) + siz := m.Size() + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + m := ptr.asPointerTo(u.typ).Interface().(custom) + siz := m.Size() + buf, err := m.Marshal() + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + return b, nil + } +} + +func makeTimeMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*time.Time) + ts, err := timestampProto(*t) + if err != nil { + return 0 + } + siz := Size(ts) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*time.Time) + ts, err := timestampProto(*t) + if err != nil { + return nil, err + } + buf, err := Marshal(ts) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeTimePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*time.Time) + ts, err := timestampProto(*t) + if err != nil { + return 0 + } + siz := Size(ts) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*time.Time) + ts, err := timestampProto(*t) + if err != nil { + return nil, err + } + buf, err := Marshal(ts) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeTimeSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(time.Time) + ts, err := timestampProto(t) + if err != nil { + return 0 + } + siz := Size(ts) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(time.Time) + ts, err := timestampProto(t) + if err != nil { + return nil, err + } + siz := Size(ts) + buf, err := Marshal(ts) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeTimePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*time.Time) + ts, err := timestampProto(*t) + if err != nil { + return 0 + } + siz := Size(ts) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*time.Time) + ts, err := timestampProto(*t) + if err != nil { + return nil, err + } + siz := Size(ts) + buf, err := Marshal(ts) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeDurationMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + d := ptr.asPointerTo(u.typ).Interface().(*time.Duration) + dur := durationProto(*d) + siz := Size(dur) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + d := ptr.asPointerTo(u.typ).Interface().(*time.Duration) + dur := durationProto(*d) + buf, err := Marshal(dur) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeDurationPtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + d := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*time.Duration) + dur := durationProto(*d) + siz := Size(dur) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + d := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*time.Duration) + dur := durationProto(*d) + buf, err := Marshal(dur) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeDurationSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + d := elem.Interface().(time.Duration) + dur := durationProto(d) + siz := Size(dur) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + d := elem.Interface().(time.Duration) + dur := durationProto(d) + siz := Size(dur) + buf, err := Marshal(dur) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeDurationPtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + d := elem.Interface().(*time.Duration) + dur := durationProto(*d) + siz := Size(dur) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + d := elem.Interface().(*time.Duration) + dur := durationProto(*d) + siz := Size(dur) + buf, err := Marshal(dur) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} diff --git a/vendor/github.com/gogo/protobuf/proto/table_merge.go b/vendor/github.com/gogo/protobuf/proto/table_merge.go new file mode 100644 index 0000000..60dcf70 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/table_merge.go @@ -0,0 +1,676 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "fmt" + "reflect" + "strings" + "sync" + "sync/atomic" +) + +// Merge merges the src message into dst. +// This assumes that dst and src of the same type and are non-nil. +func (a *InternalMessageInfo) Merge(dst, src Message) { + mi := atomicLoadMergeInfo(&a.merge) + if mi == nil { + mi = getMergeInfo(reflect.TypeOf(dst).Elem()) + atomicStoreMergeInfo(&a.merge, mi) + } + mi.merge(toPointer(&dst), toPointer(&src)) +} + +type mergeInfo struct { + typ reflect.Type + + initialized int32 // 0: only typ is valid, 1: everything is valid + lock sync.Mutex + + fields []mergeFieldInfo + unrecognized field // Offset of XXX_unrecognized +} + +type mergeFieldInfo struct { + field field // Offset of field, guaranteed to be valid + + // isPointer reports whether the value in the field is a pointer. + // This is true for the following situations: + // * Pointer to struct + // * Pointer to basic type (proto2 only) + // * Slice (first value in slice header is a pointer) + // * String (first value in string header is a pointer) + isPointer bool + + // basicWidth reports the width of the field assuming that it is directly + // embedded in the struct (as is the case for basic types in proto3). + // The possible values are: + // 0: invalid + // 1: bool + // 4: int32, uint32, float32 + // 8: int64, uint64, float64 + basicWidth int + + // Where dst and src are pointers to the types being merged. + merge func(dst, src pointer) +} + +var ( + mergeInfoMap = map[reflect.Type]*mergeInfo{} + mergeInfoLock sync.Mutex +) + +func getMergeInfo(t reflect.Type) *mergeInfo { + mergeInfoLock.Lock() + defer mergeInfoLock.Unlock() + mi := mergeInfoMap[t] + if mi == nil { + mi = &mergeInfo{typ: t} + mergeInfoMap[t] = mi + } + return mi +} + +// merge merges src into dst assuming they are both of type *mi.typ. +func (mi *mergeInfo) merge(dst, src pointer) { + if dst.isNil() { + panic("proto: nil destination") + } + if src.isNil() { + return // Nothing to do. + } + + if atomic.LoadInt32(&mi.initialized) == 0 { + mi.computeMergeInfo() + } + + for _, fi := range mi.fields { + sfp := src.offset(fi.field) + + // As an optimization, we can avoid the merge function call cost + // if we know for sure that the source will have no effect + // by checking if it is the zero value. + if unsafeAllowed { + if fi.isPointer && sfp.getPointer().isNil() { // Could be slice or string + continue + } + if fi.basicWidth > 0 { + switch { + case fi.basicWidth == 1 && !*sfp.toBool(): + continue + case fi.basicWidth == 4 && *sfp.toUint32() == 0: + continue + case fi.basicWidth == 8 && *sfp.toUint64() == 0: + continue + } + } + } + + dfp := dst.offset(fi.field) + fi.merge(dfp, sfp) + } + + // TODO: Make this faster? + out := dst.asPointerTo(mi.typ).Elem() + in := src.asPointerTo(mi.typ).Elem() + if emIn, err := extendable(in.Addr().Interface()); err == nil { + emOut, _ := extendable(out.Addr().Interface()) + mIn, muIn := emIn.extensionsRead() + if mIn != nil { + mOut := emOut.extensionsWrite() + muIn.Lock() + mergeExtension(mOut, mIn) + muIn.Unlock() + } + } + + if mi.unrecognized.IsValid() { + if b := *src.offset(mi.unrecognized).toBytes(); len(b) > 0 { + *dst.offset(mi.unrecognized).toBytes() = append([]byte(nil), b...) + } + } +} + +func (mi *mergeInfo) computeMergeInfo() { + mi.lock.Lock() + defer mi.lock.Unlock() + if mi.initialized != 0 { + return + } + t := mi.typ + n := t.NumField() + + props := GetProperties(t) + for i := 0; i < n; i++ { + f := t.Field(i) + if strings.HasPrefix(f.Name, "XXX_") { + continue + } + + mfi := mergeFieldInfo{field: toField(&f)} + tf := f.Type + + // As an optimization, we can avoid the merge function call cost + // if we know for sure that the source will have no effect + // by checking if it is the zero value. + if unsafeAllowed { + switch tf.Kind() { + case reflect.Ptr, reflect.Slice, reflect.String: + // As a special case, we assume slices and strings are pointers + // since we know that the first field in the SliceSlice or + // StringHeader is a data pointer. + mfi.isPointer = true + case reflect.Bool: + mfi.basicWidth = 1 + case reflect.Int32, reflect.Uint32, reflect.Float32: + mfi.basicWidth = 4 + case reflect.Int64, reflect.Uint64, reflect.Float64: + mfi.basicWidth = 8 + } + } + + // Unwrap tf to get at its most basic type. + var isPointer, isSlice bool + if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { + isSlice = true + tf = tf.Elem() + } + if tf.Kind() == reflect.Ptr { + isPointer = true + tf = tf.Elem() + } + if isPointer && isSlice && tf.Kind() != reflect.Struct { + panic("both pointer and slice for basic type in " + tf.Name()) + } + + switch tf.Kind() { + case reflect.Int32: + switch { + case isSlice: // E.g., []int32 + mfi.merge = func(dst, src pointer) { + // NOTE: toInt32Slice is not defined (see pointer_reflect.go). + /* + sfsp := src.toInt32Slice() + if *sfsp != nil { + dfsp := dst.toInt32Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []int64{} + } + } + */ + sfs := src.getInt32Slice() + if sfs != nil { + dfs := dst.getInt32Slice() + dfs = append(dfs, sfs...) + if dfs == nil { + dfs = []int32{} + } + dst.setInt32Slice(dfs) + } + } + case isPointer: // E.g., *int32 + mfi.merge = func(dst, src pointer) { + // NOTE: toInt32Ptr is not defined (see pointer_reflect.go). + /* + sfpp := src.toInt32Ptr() + if *sfpp != nil { + dfpp := dst.toInt32Ptr() + if *dfpp == nil { + *dfpp = Int32(**sfpp) + } else { + **dfpp = **sfpp + } + } + */ + sfp := src.getInt32Ptr() + if sfp != nil { + dfp := dst.getInt32Ptr() + if dfp == nil { + dst.setInt32Ptr(*sfp) + } else { + *dfp = *sfp + } + } + } + default: // E.g., int32 + mfi.merge = func(dst, src pointer) { + if v := *src.toInt32(); v != 0 { + *dst.toInt32() = v + } + } + } + case reflect.Int64: + switch { + case isSlice: // E.g., []int64 + mfi.merge = func(dst, src pointer) { + sfsp := src.toInt64Slice() + if *sfsp != nil { + dfsp := dst.toInt64Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []int64{} + } + } + } + case isPointer: // E.g., *int64 + mfi.merge = func(dst, src pointer) { + sfpp := src.toInt64Ptr() + if *sfpp != nil { + dfpp := dst.toInt64Ptr() + if *dfpp == nil { + *dfpp = Int64(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., int64 + mfi.merge = func(dst, src pointer) { + if v := *src.toInt64(); v != 0 { + *dst.toInt64() = v + } + } + } + case reflect.Uint32: + switch { + case isSlice: // E.g., []uint32 + mfi.merge = func(dst, src pointer) { + sfsp := src.toUint32Slice() + if *sfsp != nil { + dfsp := dst.toUint32Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []uint32{} + } + } + } + case isPointer: // E.g., *uint32 + mfi.merge = func(dst, src pointer) { + sfpp := src.toUint32Ptr() + if *sfpp != nil { + dfpp := dst.toUint32Ptr() + if *dfpp == nil { + *dfpp = Uint32(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., uint32 + mfi.merge = func(dst, src pointer) { + if v := *src.toUint32(); v != 0 { + *dst.toUint32() = v + } + } + } + case reflect.Uint64: + switch { + case isSlice: // E.g., []uint64 + mfi.merge = func(dst, src pointer) { + sfsp := src.toUint64Slice() + if *sfsp != nil { + dfsp := dst.toUint64Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []uint64{} + } + } + } + case isPointer: // E.g., *uint64 + mfi.merge = func(dst, src pointer) { + sfpp := src.toUint64Ptr() + if *sfpp != nil { + dfpp := dst.toUint64Ptr() + if *dfpp == nil { + *dfpp = Uint64(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., uint64 + mfi.merge = func(dst, src pointer) { + if v := *src.toUint64(); v != 0 { + *dst.toUint64() = v + } + } + } + case reflect.Float32: + switch { + case isSlice: // E.g., []float32 + mfi.merge = func(dst, src pointer) { + sfsp := src.toFloat32Slice() + if *sfsp != nil { + dfsp := dst.toFloat32Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []float32{} + } + } + } + case isPointer: // E.g., *float32 + mfi.merge = func(dst, src pointer) { + sfpp := src.toFloat32Ptr() + if *sfpp != nil { + dfpp := dst.toFloat32Ptr() + if *dfpp == nil { + *dfpp = Float32(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., float32 + mfi.merge = func(dst, src pointer) { + if v := *src.toFloat32(); v != 0 { + *dst.toFloat32() = v + } + } + } + case reflect.Float64: + switch { + case isSlice: // E.g., []float64 + mfi.merge = func(dst, src pointer) { + sfsp := src.toFloat64Slice() + if *sfsp != nil { + dfsp := dst.toFloat64Slice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []float64{} + } + } + } + case isPointer: // E.g., *float64 + mfi.merge = func(dst, src pointer) { + sfpp := src.toFloat64Ptr() + if *sfpp != nil { + dfpp := dst.toFloat64Ptr() + if *dfpp == nil { + *dfpp = Float64(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., float64 + mfi.merge = func(dst, src pointer) { + if v := *src.toFloat64(); v != 0 { + *dst.toFloat64() = v + } + } + } + case reflect.Bool: + switch { + case isSlice: // E.g., []bool + mfi.merge = func(dst, src pointer) { + sfsp := src.toBoolSlice() + if *sfsp != nil { + dfsp := dst.toBoolSlice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []bool{} + } + } + } + case isPointer: // E.g., *bool + mfi.merge = func(dst, src pointer) { + sfpp := src.toBoolPtr() + if *sfpp != nil { + dfpp := dst.toBoolPtr() + if *dfpp == nil { + *dfpp = Bool(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., bool + mfi.merge = func(dst, src pointer) { + if v := *src.toBool(); v { + *dst.toBool() = v + } + } + } + case reflect.String: + switch { + case isSlice: // E.g., []string + mfi.merge = func(dst, src pointer) { + sfsp := src.toStringSlice() + if *sfsp != nil { + dfsp := dst.toStringSlice() + *dfsp = append(*dfsp, *sfsp...) + if *dfsp == nil { + *dfsp = []string{} + } + } + } + case isPointer: // E.g., *string + mfi.merge = func(dst, src pointer) { + sfpp := src.toStringPtr() + if *sfpp != nil { + dfpp := dst.toStringPtr() + if *dfpp == nil { + *dfpp = String(**sfpp) + } else { + **dfpp = **sfpp + } + } + } + default: // E.g., string + mfi.merge = func(dst, src pointer) { + if v := *src.toString(); v != "" { + *dst.toString() = v + } + } + } + case reflect.Slice: + isProto3 := props.Prop[i].proto3 + switch { + case isPointer: + panic("bad pointer in byte slice case in " + tf.Name()) + case tf.Elem().Kind() != reflect.Uint8: + panic("bad element kind in byte slice case in " + tf.Name()) + case isSlice: // E.g., [][]byte + mfi.merge = func(dst, src pointer) { + sbsp := src.toBytesSlice() + if *sbsp != nil { + dbsp := dst.toBytesSlice() + for _, sb := range *sbsp { + if sb == nil { + *dbsp = append(*dbsp, nil) + } else { + *dbsp = append(*dbsp, append([]byte{}, sb...)) + } + } + if *dbsp == nil { + *dbsp = [][]byte{} + } + } + } + default: // E.g., []byte + mfi.merge = func(dst, src pointer) { + sbp := src.toBytes() + if *sbp != nil { + dbp := dst.toBytes() + if !isProto3 || len(*sbp) > 0 { + *dbp = append([]byte{}, *sbp...) + } + } + } + } + case reflect.Struct: + switch { + case isSlice && !isPointer: // E.g. []pb.T + mergeInfo := getMergeInfo(tf) + zero := reflect.Zero(tf) + mfi.merge = func(dst, src pointer) { + // TODO: Make this faster? + dstsp := dst.asPointerTo(f.Type) + dsts := dstsp.Elem() + srcs := src.asPointerTo(f.Type).Elem() + for i := 0; i < srcs.Len(); i++ { + dsts = reflect.Append(dsts, zero) + srcElement := srcs.Index(i).Addr() + dstElement := dsts.Index(dsts.Len() - 1).Addr() + mergeInfo.merge(valToPointer(dstElement), valToPointer(srcElement)) + } + if dsts.IsNil() { + dsts = reflect.MakeSlice(f.Type, 0, 0) + } + dstsp.Elem().Set(dsts) + } + case !isPointer: + mergeInfo := getMergeInfo(tf) + mfi.merge = func(dst, src pointer) { + mergeInfo.merge(dst, src) + } + case isSlice: // E.g., []*pb.T + mergeInfo := getMergeInfo(tf) + mfi.merge = func(dst, src pointer) { + sps := src.getPointerSlice() + if sps != nil { + dps := dst.getPointerSlice() + for _, sp := range sps { + var dp pointer + if !sp.isNil() { + dp = valToPointer(reflect.New(tf)) + mergeInfo.merge(dp, sp) + } + dps = append(dps, dp) + } + if dps == nil { + dps = []pointer{} + } + dst.setPointerSlice(dps) + } + } + default: // E.g., *pb.T + mergeInfo := getMergeInfo(tf) + mfi.merge = func(dst, src pointer) { + sp := src.getPointer() + if !sp.isNil() { + dp := dst.getPointer() + if dp.isNil() { + dp = valToPointer(reflect.New(tf)) + dst.setPointer(dp) + } + mergeInfo.merge(dp, sp) + } + } + } + case reflect.Map: + switch { + case isPointer || isSlice: + panic("bad pointer or slice in map case in " + tf.Name()) + default: // E.g., map[K]V + mfi.merge = func(dst, src pointer) { + sm := src.asPointerTo(tf).Elem() + if sm.Len() == 0 { + return + } + dm := dst.asPointerTo(tf).Elem() + if dm.IsNil() { + dm.Set(reflect.MakeMap(tf)) + } + + switch tf.Elem().Kind() { + case reflect.Ptr: // Proto struct (e.g., *T) + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + val = reflect.ValueOf(Clone(val.Interface().(Message))) + dm.SetMapIndex(key, val) + } + case reflect.Slice: // E.g. Bytes type (e.g., []byte) + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) + dm.SetMapIndex(key, val) + } + default: // Basic type (e.g., string) + for _, key := range sm.MapKeys() { + val := sm.MapIndex(key) + dm.SetMapIndex(key, val) + } + } + } + } + case reflect.Interface: + // Must be oneof field. + switch { + case isPointer || isSlice: + panic("bad pointer or slice in interface case in " + tf.Name()) + default: // E.g., interface{} + // TODO: Make this faster? + mfi.merge = func(dst, src pointer) { + su := src.asPointerTo(tf).Elem() + if !su.IsNil() { + du := dst.asPointerTo(tf).Elem() + typ := su.Elem().Type() + if du.IsNil() || du.Elem().Type() != typ { + du.Set(reflect.New(typ.Elem())) // Initialize interface if empty + } + sv := su.Elem().Elem().Field(0) + if sv.Kind() == reflect.Ptr && sv.IsNil() { + return + } + dv := du.Elem().Elem().Field(0) + if dv.Kind() == reflect.Ptr && dv.IsNil() { + dv.Set(reflect.New(sv.Type().Elem())) // Initialize proto message if empty + } + switch sv.Type().Kind() { + case reflect.Ptr: // Proto struct (e.g., *T) + Merge(dv.Interface().(Message), sv.Interface().(Message)) + case reflect.Slice: // E.g. Bytes type (e.g., []byte) + dv.Set(reflect.ValueOf(append([]byte{}, sv.Bytes()...))) + default: // Basic type (e.g., string) + dv.Set(sv) + } + } + } + } + default: + panic(fmt.Sprintf("merger not found for type:%s", tf)) + } + mi.fields = append(mi.fields, mfi) + } + + mi.unrecognized = invalidField + if f, ok := t.FieldByName("XXX_unrecognized"); ok { + if f.Type != reflect.TypeOf([]byte{}) { + panic("expected XXX_unrecognized to be of type []byte") + } + mi.unrecognized = toField(&f) + } + + atomic.StoreInt32(&mi.initialized, 1) +} diff --git a/vendor/github.com/gogo/protobuf/proto/table_unmarshal.go b/vendor/github.com/gogo/protobuf/proto/table_unmarshal.go new file mode 100644 index 0000000..9372293 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/table_unmarshal.go @@ -0,0 +1,2249 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "errors" + "fmt" + "io" + "math" + "reflect" + "strconv" + "strings" + "sync" + "sync/atomic" + "unicode/utf8" +) + +// Unmarshal is the entry point from the generated .pb.go files. +// This function is not intended to be used by non-generated code. +// This function is not subject to any compatibility guarantee. +// msg contains a pointer to a protocol buffer struct. +// b is the data to be unmarshaled into the protocol buffer. +// a is a pointer to a place to store cached unmarshal information. +func (a *InternalMessageInfo) Unmarshal(msg Message, b []byte) error { + // Load the unmarshal information for this message type. + // The atomic load ensures memory consistency. + u := atomicLoadUnmarshalInfo(&a.unmarshal) + if u == nil { + // Slow path: find unmarshal info for msg, update a with it. + u = getUnmarshalInfo(reflect.TypeOf(msg).Elem()) + atomicStoreUnmarshalInfo(&a.unmarshal, u) + } + // Then do the unmarshaling. + err := u.unmarshal(toPointer(&msg), b) + return err +} + +type unmarshalInfo struct { + typ reflect.Type // type of the protobuf struct + + // 0 = only typ field is initialized + // 1 = completely initialized + initialized int32 + lock sync.Mutex // prevents double initialization + dense []unmarshalFieldInfo // fields indexed by tag # + sparse map[uint64]unmarshalFieldInfo // fields indexed by tag # + reqFields []string // names of required fields + reqMask uint64 // 1< 0 { + // Read tag and wire type. + // Special case 1 and 2 byte varints. + var x uint64 + if b[0] < 128 { + x = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + x = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + x, n = decodeVarint(b) + if n == 0 { + return io.ErrUnexpectedEOF + } + b = b[n:] + } + tag := x >> 3 + wire := int(x) & 7 + + // Dispatch on the tag to one of the unmarshal* functions below. + var f unmarshalFieldInfo + if tag < uint64(len(u.dense)) { + f = u.dense[tag] + } else { + f = u.sparse[tag] + } + if fn := f.unmarshal; fn != nil { + var err error + b, err = fn(b, m.offset(f.field), wire) + if err == nil { + reqMask |= f.reqMask + continue + } + if r, ok := err.(*RequiredNotSetError); ok { + // Remember this error, but keep parsing. We need to produce + // a full parse even if a required field is missing. + if errLater == nil { + errLater = r + } + reqMask |= f.reqMask + continue + } + if err != errInternalBadWireType { + if err == errInvalidUTF8 { + if errLater == nil { + fullName := revProtoTypes[reflect.PtrTo(u.typ)] + "." + f.name + errLater = &invalidUTF8Error{fullName} + } + continue + } + return err + } + // Fragments with bad wire type are treated as unknown fields. + } + + // Unknown tag. + if !u.unrecognized.IsValid() { + // Don't keep unrecognized data; just skip it. + var err error + b, err = skipField(b, wire) + if err != nil { + return err + } + continue + } + // Keep unrecognized data around. + // maybe in extensions, maybe in the unrecognized field. + z := m.offset(u.unrecognized).toBytes() + var emap map[int32]Extension + var e Extension + for _, r := range u.extensionRanges { + if uint64(r.Start) <= tag && tag <= uint64(r.End) { + if u.extensions.IsValid() { + mp := m.offset(u.extensions).toExtensions() + emap = mp.extensionsWrite() + e = emap[int32(tag)] + z = &e.enc + break + } + if u.oldExtensions.IsValid() { + p := m.offset(u.oldExtensions).toOldExtensions() + emap = *p + if emap == nil { + emap = map[int32]Extension{} + *p = emap + } + e = emap[int32(tag)] + z = &e.enc + break + } + if u.bytesExtensions.IsValid() { + z = m.offset(u.bytesExtensions).toBytes() + break + } + panic("no extensions field available") + } + } + // Use wire type to skip data. + var err error + b0 := b + b, err = skipField(b, wire) + if err != nil { + return err + } + *z = encodeVarint(*z, tag<<3|uint64(wire)) + *z = append(*z, b0[:len(b0)-len(b)]...) + + if emap != nil { + emap[int32(tag)] = e + } + } + if reqMask != u.reqMask && errLater == nil { + // A required field of this message is missing. + for _, n := range u.reqFields { + if reqMask&1 == 0 { + errLater = &RequiredNotSetError{n} + } + reqMask >>= 1 + } + } + return errLater +} + +// computeUnmarshalInfo fills in u with information for use +// in unmarshaling protocol buffers of type u.typ. +func (u *unmarshalInfo) computeUnmarshalInfo() { + u.lock.Lock() + defer u.lock.Unlock() + if u.initialized != 0 { + return + } + t := u.typ + n := t.NumField() + + // Set up the "not found" value for the unrecognized byte buffer. + // This is the default for proto3. + u.unrecognized = invalidField + u.extensions = invalidField + u.oldExtensions = invalidField + u.bytesExtensions = invalidField + + // List of the generated type and offset for each oneof field. + type oneofField struct { + ityp reflect.Type // interface type of oneof field + field field // offset in containing message + } + var oneofFields []oneofField + + for i := 0; i < n; i++ { + f := t.Field(i) + if f.Name == "XXX_unrecognized" { + // The byte slice used to hold unrecognized input is special. + if f.Type != reflect.TypeOf(([]byte)(nil)) { + panic("bad type for XXX_unrecognized field: " + f.Type.Name()) + } + u.unrecognized = toField(&f) + continue + } + if f.Name == "XXX_InternalExtensions" { + // Ditto here. + if f.Type != reflect.TypeOf(XXX_InternalExtensions{}) { + panic("bad type for XXX_InternalExtensions field: " + f.Type.Name()) + } + u.extensions = toField(&f) + if f.Tag.Get("protobuf_messageset") == "1" { + u.isMessageSet = true + } + continue + } + if f.Name == "XXX_extensions" { + // An older form of the extensions field. + if f.Type == reflect.TypeOf((map[int32]Extension)(nil)) { + u.oldExtensions = toField(&f) + continue + } else if f.Type == reflect.TypeOf(([]byte)(nil)) { + u.bytesExtensions = toField(&f) + continue + } + panic("bad type for XXX_extensions field: " + f.Type.Name()) + } + if f.Name == "XXX_NoUnkeyedLiteral" || f.Name == "XXX_sizecache" { + continue + } + + oneof := f.Tag.Get("protobuf_oneof") + if oneof != "" { + oneofFields = append(oneofFields, oneofField{f.Type, toField(&f)}) + // The rest of oneof processing happens below. + continue + } + + tags := f.Tag.Get("protobuf") + tagArray := strings.Split(tags, ",") + if len(tagArray) < 2 { + panic("protobuf tag not enough fields in " + t.Name() + "." + f.Name + ": " + tags) + } + tag, err := strconv.Atoi(tagArray[1]) + if err != nil { + panic("protobuf tag field not an integer: " + tagArray[1]) + } + + name := "" + for _, tag := range tagArray[3:] { + if strings.HasPrefix(tag, "name=") { + name = tag[5:] + } + } + + // Extract unmarshaling function from the field (its type and tags). + unmarshal := fieldUnmarshaler(&f) + + // Required field? + var reqMask uint64 + if tagArray[2] == "req" { + bit := len(u.reqFields) + u.reqFields = append(u.reqFields, name) + reqMask = uint64(1) << uint(bit) + // TODO: if we have more than 64 required fields, we end up + // not verifying that all required fields are present. + // Fix this, perhaps using a count of required fields? + } + + // Store the info in the correct slot in the message. + u.setTag(tag, toField(&f), unmarshal, reqMask, name) + } + + // Find any types associated with oneof fields. + // gogo: len(oneofFields) > 0 is needed for embedded oneof messages, without a marshaler and unmarshaler + if len(oneofFields) > 0 { + var oneofImplementers []interface{} + switch m := reflect.Zero(reflect.PtrTo(t)).Interface().(type) { + case oneofFuncsIface: + _, _, _, oneofImplementers = m.XXX_OneofFuncs() + case oneofWrappersIface: + oneofImplementers = m.XXX_OneofWrappers() + } + for _, v := range oneofImplementers { + tptr := reflect.TypeOf(v) // *Msg_X + typ := tptr.Elem() // Msg_X + + f := typ.Field(0) // oneof implementers have one field + baseUnmarshal := fieldUnmarshaler(&f) + tags := strings.Split(f.Tag.Get("protobuf"), ",") + fieldNum, err := strconv.Atoi(tags[1]) + if err != nil { + panic("protobuf tag field not an integer: " + tags[1]) + } + var name string + for _, tag := range tags { + if strings.HasPrefix(tag, "name=") { + name = strings.TrimPrefix(tag, "name=") + break + } + } + + // Find the oneof field that this struct implements. + // Might take O(n^2) to process all of the oneofs, but who cares. + for _, of := range oneofFields { + if tptr.Implements(of.ityp) { + // We have found the corresponding interface for this struct. + // That lets us know where this struct should be stored + // when we encounter it during unmarshaling. + unmarshal := makeUnmarshalOneof(typ, of.ityp, baseUnmarshal) + u.setTag(fieldNum, of.field, unmarshal, 0, name) + } + } + + } + } + + // Get extension ranges, if any. + fn := reflect.Zero(reflect.PtrTo(t)).MethodByName("ExtensionRangeArray") + if fn.IsValid() { + if !u.extensions.IsValid() && !u.oldExtensions.IsValid() && !u.bytesExtensions.IsValid() { + panic("a message with extensions, but no extensions field in " + t.Name()) + } + u.extensionRanges = fn.Call(nil)[0].Interface().([]ExtensionRange) + } + + // Explicitly disallow tag 0. This will ensure we flag an error + // when decoding a buffer of all zeros. Without this code, we + // would decode and skip an all-zero buffer of even length. + // [0 0] is [tag=0/wiretype=varint varint-encoded-0]. + u.setTag(0, zeroField, func(b []byte, f pointer, w int) ([]byte, error) { + return nil, fmt.Errorf("proto: %s: illegal tag 0 (wire type %d)", t, w) + }, 0, "") + + // Set mask for required field check. + u.reqMask = uint64(1)<= 0 && (tag < 16 || tag < 2*n) { // TODO: what are the right numbers here? + for len(u.dense) <= tag { + u.dense = append(u.dense, unmarshalFieldInfo{}) + } + u.dense[tag] = i + return + } + if u.sparse == nil { + u.sparse = map[uint64]unmarshalFieldInfo{} + } + u.sparse[uint64(tag)] = i +} + +// fieldUnmarshaler returns an unmarshaler for the given field. +func fieldUnmarshaler(f *reflect.StructField) unmarshaler { + if f.Type.Kind() == reflect.Map { + return makeUnmarshalMap(f) + } + return typeUnmarshaler(f.Type, f.Tag.Get("protobuf")) +} + +// typeUnmarshaler returns an unmarshaler for the given field type / field tag pair. +func typeUnmarshaler(t reflect.Type, tags string) unmarshaler { + tagArray := strings.Split(tags, ",") + encoding := tagArray[0] + name := "unknown" + ctype := false + isTime := false + isDuration := false + isWktPointer := false + proto3 := false + validateUTF8 := true + for _, tag := range tagArray[3:] { + if strings.HasPrefix(tag, "name=") { + name = tag[5:] + } + if tag == "proto3" { + proto3 = true + } + if strings.HasPrefix(tag, "customtype=") { + ctype = true + } + if tag == "stdtime" { + isTime = true + } + if tag == "stdduration" { + isDuration = true + } + if tag == "wktptr" { + isWktPointer = true + } + } + validateUTF8 = validateUTF8 && proto3 + + // Figure out packaging (pointer, slice, or both) + slice := false + pointer := false + if t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 { + slice = true + t = t.Elem() + } + if t.Kind() == reflect.Ptr { + pointer = true + t = t.Elem() + } + + if ctype { + if reflect.PtrTo(t).Implements(customType) { + if slice { + return makeUnmarshalCustomSlice(getUnmarshalInfo(t), name) + } + if pointer { + return makeUnmarshalCustomPtr(getUnmarshalInfo(t), name) + } + return makeUnmarshalCustom(getUnmarshalInfo(t), name) + } else { + panic(fmt.Sprintf("custom type: type: %v, does not implement the proto.custom interface", t)) + } + } + + if isTime { + if pointer { + if slice { + return makeUnmarshalTimePtrSlice(getUnmarshalInfo(t), name) + } + return makeUnmarshalTimePtr(getUnmarshalInfo(t), name) + } + if slice { + return makeUnmarshalTimeSlice(getUnmarshalInfo(t), name) + } + return makeUnmarshalTime(getUnmarshalInfo(t), name) + } + + if isDuration { + if pointer { + if slice { + return makeUnmarshalDurationPtrSlice(getUnmarshalInfo(t), name) + } + return makeUnmarshalDurationPtr(getUnmarshalInfo(t), name) + } + if slice { + return makeUnmarshalDurationSlice(getUnmarshalInfo(t), name) + } + return makeUnmarshalDuration(getUnmarshalInfo(t), name) + } + + if isWktPointer { + switch t.Kind() { + case reflect.Float64: + if pointer { + if slice { + return makeStdDoubleValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdDoubleValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdDoubleValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdDoubleValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.Float32: + if pointer { + if slice { + return makeStdFloatValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdFloatValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdFloatValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdFloatValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.Int64: + if pointer { + if slice { + return makeStdInt64ValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdInt64ValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdInt64ValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdInt64ValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.Uint64: + if pointer { + if slice { + return makeStdUInt64ValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdUInt64ValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdUInt64ValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdUInt64ValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.Int32: + if pointer { + if slice { + return makeStdInt32ValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdInt32ValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdInt32ValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdInt32ValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.Uint32: + if pointer { + if slice { + return makeStdUInt32ValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdUInt32ValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdUInt32ValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdUInt32ValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.Bool: + if pointer { + if slice { + return makeStdBoolValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdBoolValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdBoolValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdBoolValueUnmarshaler(getUnmarshalInfo(t), name) + case reflect.String: + if pointer { + if slice { + return makeStdStringValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdStringValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdStringValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdStringValueUnmarshaler(getUnmarshalInfo(t), name) + case uint8SliceType: + if pointer { + if slice { + return makeStdBytesValuePtrSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdBytesValuePtrUnmarshaler(getUnmarshalInfo(t), name) + } + if slice { + return makeStdBytesValueSliceUnmarshaler(getUnmarshalInfo(t), name) + } + return makeStdBytesValueUnmarshaler(getUnmarshalInfo(t), name) + default: + panic(fmt.Sprintf("unknown wktpointer type %#v", t)) + } + } + + // We'll never have both pointer and slice for basic types. + if pointer && slice && t.Kind() != reflect.Struct { + panic("both pointer and slice for basic type in " + t.Name()) + } + + switch t.Kind() { + case reflect.Bool: + if pointer { + return unmarshalBoolPtr + } + if slice { + return unmarshalBoolSlice + } + return unmarshalBoolValue + case reflect.Int32: + switch encoding { + case "fixed32": + if pointer { + return unmarshalFixedS32Ptr + } + if slice { + return unmarshalFixedS32Slice + } + return unmarshalFixedS32Value + case "varint": + // this could be int32 or enum + if pointer { + return unmarshalInt32Ptr + } + if slice { + return unmarshalInt32Slice + } + return unmarshalInt32Value + case "zigzag32": + if pointer { + return unmarshalSint32Ptr + } + if slice { + return unmarshalSint32Slice + } + return unmarshalSint32Value + } + case reflect.Int64: + switch encoding { + case "fixed64": + if pointer { + return unmarshalFixedS64Ptr + } + if slice { + return unmarshalFixedS64Slice + } + return unmarshalFixedS64Value + case "varint": + if pointer { + return unmarshalInt64Ptr + } + if slice { + return unmarshalInt64Slice + } + return unmarshalInt64Value + case "zigzag64": + if pointer { + return unmarshalSint64Ptr + } + if slice { + return unmarshalSint64Slice + } + return unmarshalSint64Value + } + case reflect.Uint32: + switch encoding { + case "fixed32": + if pointer { + return unmarshalFixed32Ptr + } + if slice { + return unmarshalFixed32Slice + } + return unmarshalFixed32Value + case "varint": + if pointer { + return unmarshalUint32Ptr + } + if slice { + return unmarshalUint32Slice + } + return unmarshalUint32Value + } + case reflect.Uint64: + switch encoding { + case "fixed64": + if pointer { + return unmarshalFixed64Ptr + } + if slice { + return unmarshalFixed64Slice + } + return unmarshalFixed64Value + case "varint": + if pointer { + return unmarshalUint64Ptr + } + if slice { + return unmarshalUint64Slice + } + return unmarshalUint64Value + } + case reflect.Float32: + if pointer { + return unmarshalFloat32Ptr + } + if slice { + return unmarshalFloat32Slice + } + return unmarshalFloat32Value + case reflect.Float64: + if pointer { + return unmarshalFloat64Ptr + } + if slice { + return unmarshalFloat64Slice + } + return unmarshalFloat64Value + case reflect.Map: + panic("map type in typeUnmarshaler in " + t.Name()) + case reflect.Slice: + if pointer { + panic("bad pointer in slice case in " + t.Name()) + } + if slice { + return unmarshalBytesSlice + } + return unmarshalBytesValue + case reflect.String: + if validateUTF8 { + if pointer { + return unmarshalUTF8StringPtr + } + if slice { + return unmarshalUTF8StringSlice + } + return unmarshalUTF8StringValue + } + if pointer { + return unmarshalStringPtr + } + if slice { + return unmarshalStringSlice + } + return unmarshalStringValue + case reflect.Struct: + // message or group field + if !pointer { + switch encoding { + case "bytes": + if slice { + return makeUnmarshalMessageSlice(getUnmarshalInfo(t), name) + } + return makeUnmarshalMessage(getUnmarshalInfo(t), name) + } + } + switch encoding { + case "bytes": + if slice { + return makeUnmarshalMessageSlicePtr(getUnmarshalInfo(t), name) + } + return makeUnmarshalMessagePtr(getUnmarshalInfo(t), name) + case "group": + if slice { + return makeUnmarshalGroupSlicePtr(getUnmarshalInfo(t), name) + } + return makeUnmarshalGroupPtr(getUnmarshalInfo(t), name) + } + } + panic(fmt.Sprintf("unmarshaler not found type:%s encoding:%s", t, encoding)) +} + +// Below are all the unmarshalers for individual fields of various types. + +func unmarshalInt64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + *f.toInt64() = v + return b, nil +} + +func unmarshalInt64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + *f.toInt64Ptr() = &v + return b, nil +} + +func unmarshalInt64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + s := f.toInt64Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x) + s := f.toInt64Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalSint64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + *f.toInt64() = v + return b, nil +} + +func unmarshalSint64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + *f.toInt64Ptr() = &v + return b, nil +} + +func unmarshalSint64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + s := f.toInt64Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int64(x>>1) ^ int64(x)<<63>>63 + s := f.toInt64Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalUint64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + *f.toUint64() = v + return b, nil +} + +func unmarshalUint64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + *f.toUint64Ptr() = &v + return b, nil +} + +func unmarshalUint64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + s := f.toUint64Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint64(x) + s := f.toUint64Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalInt32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + *f.toInt32() = v + return b, nil +} + +func unmarshalInt32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + f.setInt32Ptr(v) + return b, nil +} + +func unmarshalInt32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + f.appendInt32Slice(v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x) + f.appendInt32Slice(v) + return b, nil +} + +func unmarshalSint32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + *f.toInt32() = v + return b, nil +} + +func unmarshalSint32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + f.setInt32Ptr(v) + return b, nil +} + +func unmarshalSint32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + f.appendInt32Slice(v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := int32(x>>1) ^ int32(x)<<31>>31 + f.appendInt32Slice(v) + return b, nil +} + +func unmarshalUint32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + *f.toUint32() = v + return b, nil +} + +func unmarshalUint32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + *f.toUint32Ptr() = &v + return b, nil +} + +func unmarshalUint32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + s := f.toUint32Slice() + *s = append(*s, v) + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + v := uint32(x) + s := f.toUint32Slice() + *s = append(*s, v) + return b, nil +} + +func unmarshalFixed64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + *f.toUint64() = v + return b[8:], nil +} + +func unmarshalFixed64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + *f.toUint64Ptr() = &v + return b[8:], nil +} + +func unmarshalFixed64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + s := f.toUint64Slice() + *s = append(*s, v) + b = b[8:] + } + return res, nil + } + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + s := f.toUint64Slice() + *s = append(*s, v) + return b[8:], nil +} + +func unmarshalFixedS64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + *f.toInt64() = v + return b[8:], nil +} + +func unmarshalFixedS64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + *f.toInt64Ptr() = &v + return b[8:], nil +} + +func unmarshalFixedS64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + s := f.toInt64Slice() + *s = append(*s, v) + b = b[8:] + } + return res, nil + } + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := int64(b[0]) | int64(b[1])<<8 | int64(b[2])<<16 | int64(b[3])<<24 | int64(b[4])<<32 | int64(b[5])<<40 | int64(b[6])<<48 | int64(b[7])<<56 + s := f.toInt64Slice() + *s = append(*s, v) + return b[8:], nil +} + +func unmarshalFixed32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + *f.toUint32() = v + return b[4:], nil +} + +func unmarshalFixed32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + *f.toUint32Ptr() = &v + return b[4:], nil +} + +func unmarshalFixed32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + s := f.toUint32Slice() + *s = append(*s, v) + b = b[4:] + } + return res, nil + } + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + s := f.toUint32Slice() + *s = append(*s, v) + return b[4:], nil +} + +func unmarshalFixedS32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + *f.toInt32() = v + return b[4:], nil +} + +func unmarshalFixedS32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + f.setInt32Ptr(v) + return b[4:], nil +} + +func unmarshalFixedS32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + f.appendInt32Slice(v) + b = b[4:] + } + return res, nil + } + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := int32(b[0]) | int32(b[1])<<8 | int32(b[2])<<16 | int32(b[3])<<24 + f.appendInt32Slice(v) + return b[4:], nil +} + +func unmarshalBoolValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + // Note: any length varint is allowed, even though any sane + // encoder will use one byte. + // See https://github.com/golang/protobuf/issues/76 + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + // TODO: check if x>1? Tests seem to indicate no. + v := x != 0 + *f.toBool() = v + return b[n:], nil +} + +func unmarshalBoolPtr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + v := x != 0 + *f.toBoolPtr() = &v + return b[n:], nil +} + +func unmarshalBoolSlice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + x, n = decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + v := x != 0 + s := f.toBoolSlice() + *s = append(*s, v) + b = b[n:] + } + return res, nil + } + if w != WireVarint { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + v := x != 0 + s := f.toBoolSlice() + *s = append(*s, v) + return b[n:], nil +} + +func unmarshalFloat64Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + *f.toFloat64() = v + return b[8:], nil +} + +func unmarshalFloat64Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + *f.toFloat64Ptr() = &v + return b[8:], nil +} + +func unmarshalFloat64Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + s := f.toFloat64Slice() + *s = append(*s, v) + b = b[8:] + } + return res, nil + } + if w != WireFixed64 { + return b, errInternalBadWireType + } + if len(b) < 8 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float64frombits(uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56) + s := f.toFloat64Slice() + *s = append(*s, v) + return b[8:], nil +} + +func unmarshalFloat32Value(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + *f.toFloat32() = v + return b[4:], nil +} + +func unmarshalFloat32Ptr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + *f.toFloat32Ptr() = &v + return b[4:], nil +} + +func unmarshalFloat32Slice(b []byte, f pointer, w int) ([]byte, error) { + if w == WireBytes { // packed + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + res := b[x:] + b = b[:x] + for len(b) > 0 { + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + s := f.toFloat32Slice() + *s = append(*s, v) + b = b[4:] + } + return res, nil + } + if w != WireFixed32 { + return b, errInternalBadWireType + } + if len(b) < 4 { + return nil, io.ErrUnexpectedEOF + } + v := math.Float32frombits(uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24) + s := f.toFloat32Slice() + *s = append(*s, v) + return b[4:], nil +} + +func unmarshalStringValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + *f.toString() = v + return b[x:], nil +} + +func unmarshalStringPtr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + *f.toStringPtr() = &v + return b[x:], nil +} + +func unmarshalStringSlice(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + s := f.toStringSlice() + *s = append(*s, v) + return b[x:], nil +} + +func unmarshalUTF8StringValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + *f.toString() = v + if !utf8.ValidString(v) { + return b[x:], errInvalidUTF8 + } + return b[x:], nil +} + +func unmarshalUTF8StringPtr(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + *f.toStringPtr() = &v + if !utf8.ValidString(v) { + return b[x:], errInvalidUTF8 + } + return b[x:], nil +} + +func unmarshalUTF8StringSlice(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := string(b[:x]) + s := f.toStringSlice() + *s = append(*s, v) + if !utf8.ValidString(v) { + return b[x:], errInvalidUTF8 + } + return b[x:], nil +} + +var emptyBuf [0]byte + +func unmarshalBytesValue(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + // The use of append here is a trick which avoids the zeroing + // that would be required if we used a make/copy pair. + // We append to emptyBuf instead of nil because we want + // a non-nil result even when the length is 0. + v := append(emptyBuf[:], b[:x]...) + *f.toBytes() = v + return b[x:], nil +} + +func unmarshalBytesSlice(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := append(emptyBuf[:], b[:x]...) + s := f.toBytesSlice() + *s = append(*s, v) + return b[x:], nil +} + +func makeUnmarshalMessagePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + // First read the message field to see if something is there. + // The semantics of multiple submessages are weird. Instead of + // the last one winning (as it is for all other fields), multiple + // submessages are merged. + v := f.getPointer() + if v.isNil() { + v = valToPointer(reflect.New(sub.typ)) + f.setPointer(v) + } + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + return b[x:], err + } +} + +func makeUnmarshalMessageSlicePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return b, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := valToPointer(reflect.New(sub.typ)) + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + f.appendPointer(v) + return b[x:], err + } +} + +func makeUnmarshalGroupPtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireStartGroup { + return b, errInternalBadWireType + } + x, y := findEndGroup(b) + if x < 0 { + return nil, io.ErrUnexpectedEOF + } + v := f.getPointer() + if v.isNil() { + v = valToPointer(reflect.New(sub.typ)) + f.setPointer(v) + } + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + return b[y:], err + } +} + +func makeUnmarshalGroupSlicePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireStartGroup { + return b, errInternalBadWireType + } + x, y := findEndGroup(b) + if x < 0 { + return nil, io.ErrUnexpectedEOF + } + v := valToPointer(reflect.New(sub.typ)) + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + f.appendPointer(v) + return b[y:], err + } +} + +func makeUnmarshalMap(f *reflect.StructField) unmarshaler { + t := f.Type + kt := t.Key() + vt := t.Elem() + tagArray := strings.Split(f.Tag.Get("protobuf"), ",") + valTags := strings.Split(f.Tag.Get("protobuf_val"), ",") + for _, t := range tagArray { + if strings.HasPrefix(t, "customtype=") { + valTags = append(valTags, t) + } + if t == "stdtime" { + valTags = append(valTags, t) + } + if t == "stdduration" { + valTags = append(valTags, t) + } + if t == "wktptr" { + valTags = append(valTags, t) + } + } + unmarshalKey := typeUnmarshaler(kt, f.Tag.Get("protobuf_key")) + unmarshalVal := typeUnmarshaler(vt, strings.Join(valTags, ",")) + return func(b []byte, f pointer, w int) ([]byte, error) { + // The map entry is a submessage. Figure out how big it is. + if w != WireBytes { + return nil, fmt.Errorf("proto: bad wiretype for map field: got %d want %d", w, WireBytes) + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + r := b[x:] // unused data to return + b = b[:x] // data for map entry + + // Note: we could use #keys * #values ~= 200 functions + // to do map decoding without reflection. Probably not worth it. + // Maps will be somewhat slow. Oh well. + + // Read key and value from data. + var nerr nonFatal + k := reflect.New(kt) + v := reflect.New(vt) + for len(b) > 0 { + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + wire := int(x) & 7 + b = b[n:] + + var err error + switch x >> 3 { + case 1: + b, err = unmarshalKey(b, valToPointer(k), wire) + case 2: + b, err = unmarshalVal(b, valToPointer(v), wire) + default: + err = errInternalBadWireType // skip unknown tag + } + + if nerr.Merge(err) { + continue + } + if err != errInternalBadWireType { + return nil, err + } + + // Skip past unknown fields. + b, err = skipField(b, wire) + if err != nil { + return nil, err + } + } + + // Get map, allocate if needed. + m := f.asPointerTo(t).Elem() // an addressable map[K]T + if m.IsNil() { + m.Set(reflect.MakeMap(t)) + } + + // Insert into map. + m.SetMapIndex(k.Elem(), v.Elem()) + + return r, nerr.E + } +} + +// makeUnmarshalOneof makes an unmarshaler for oneof fields. +// for: +// message Msg { +// oneof F { +// int64 X = 1; +// float64 Y = 2; +// } +// } +// typ is the type of the concrete entry for a oneof case (e.g. Msg_X). +// ityp is the interface type of the oneof field (e.g. isMsg_F). +// unmarshal is the unmarshaler for the base type of the oneof case (e.g. int64). +// Note that this function will be called once for each case in the oneof. +func makeUnmarshalOneof(typ, ityp reflect.Type, unmarshal unmarshaler) unmarshaler { + sf := typ.Field(0) + field0 := toField(&sf) + return func(b []byte, f pointer, w int) ([]byte, error) { + // Allocate holder for value. + v := reflect.New(typ) + + // Unmarshal data into holder. + // We unmarshal into the first field of the holder object. + var err error + var nerr nonFatal + b, err = unmarshal(b, valToPointer(v).offset(field0), w) + if !nerr.Merge(err) { + return nil, err + } + + // Write pointer to holder into target field. + f.asPointerTo(ityp).Elem().Set(v) + + return b, nerr.E + } +} + +// Error used by decode internally. +var errInternalBadWireType = errors.New("proto: internal error: bad wiretype") + +// skipField skips past a field of type wire and returns the remaining bytes. +func skipField(b []byte, wire int) ([]byte, error) { + switch wire { + case WireVarint: + _, k := decodeVarint(b) + if k == 0 { + return b, io.ErrUnexpectedEOF + } + b = b[k:] + case WireFixed32: + if len(b) < 4 { + return b, io.ErrUnexpectedEOF + } + b = b[4:] + case WireFixed64: + if len(b) < 8 { + return b, io.ErrUnexpectedEOF + } + b = b[8:] + case WireBytes: + m, k := decodeVarint(b) + if k == 0 || uint64(len(b)-k) < m { + return b, io.ErrUnexpectedEOF + } + b = b[uint64(k)+m:] + case WireStartGroup: + _, i := findEndGroup(b) + if i == -1 { + return b, io.ErrUnexpectedEOF + } + b = b[i:] + default: + return b, fmt.Errorf("proto: can't skip unknown wire type %d", wire) + } + return b, nil +} + +// findEndGroup finds the index of the next EndGroup tag. +// Groups may be nested, so the "next" EndGroup tag is the first +// unpaired EndGroup. +// findEndGroup returns the indexes of the start and end of the EndGroup tag. +// Returns (-1,-1) if it can't find one. +func findEndGroup(b []byte) (int, int) { + depth := 1 + i := 0 + for { + x, n := decodeVarint(b[i:]) + if n == 0 { + return -1, -1 + } + j := i + i += n + switch x & 7 { + case WireVarint: + _, k := decodeVarint(b[i:]) + if k == 0 { + return -1, -1 + } + i += k + case WireFixed32: + if len(b)-4 < i { + return -1, -1 + } + i += 4 + case WireFixed64: + if len(b)-8 < i { + return -1, -1 + } + i += 8 + case WireBytes: + m, k := decodeVarint(b[i:]) + if k == 0 { + return -1, -1 + } + i += k + if uint64(len(b)-i) < m { + return -1, -1 + } + i += int(m) + case WireStartGroup: + depth++ + case WireEndGroup: + depth-- + if depth == 0 { + return j, i + } + default: + return -1, -1 + } + } +} + +// encodeVarint appends a varint-encoded integer to b and returns the result. +func encodeVarint(b []byte, x uint64) []byte { + for x >= 1<<7 { + b = append(b, byte(x&0x7f|0x80)) + x >>= 7 + } + return append(b, byte(x)) +} + +// decodeVarint reads a varint-encoded integer from b. +// Returns the decoded integer and the number of bytes read. +// If there is an error, it returns 0,0. +func decodeVarint(b []byte) (uint64, int) { + var x, y uint64 + if len(b) == 0 { + goto bad + } + x = uint64(b[0]) + if x < 0x80 { + return x, 1 + } + x -= 0x80 + + if len(b) <= 1 { + goto bad + } + y = uint64(b[1]) + x += y << 7 + if y < 0x80 { + return x, 2 + } + x -= 0x80 << 7 + + if len(b) <= 2 { + goto bad + } + y = uint64(b[2]) + x += y << 14 + if y < 0x80 { + return x, 3 + } + x -= 0x80 << 14 + + if len(b) <= 3 { + goto bad + } + y = uint64(b[3]) + x += y << 21 + if y < 0x80 { + return x, 4 + } + x -= 0x80 << 21 + + if len(b) <= 4 { + goto bad + } + y = uint64(b[4]) + x += y << 28 + if y < 0x80 { + return x, 5 + } + x -= 0x80 << 28 + + if len(b) <= 5 { + goto bad + } + y = uint64(b[5]) + x += y << 35 + if y < 0x80 { + return x, 6 + } + x -= 0x80 << 35 + + if len(b) <= 6 { + goto bad + } + y = uint64(b[6]) + x += y << 42 + if y < 0x80 { + return x, 7 + } + x -= 0x80 << 42 + + if len(b) <= 7 { + goto bad + } + y = uint64(b[7]) + x += y << 49 + if y < 0x80 { + return x, 8 + } + x -= 0x80 << 49 + + if len(b) <= 8 { + goto bad + } + y = uint64(b[8]) + x += y << 56 + if y < 0x80 { + return x, 9 + } + x -= 0x80 << 56 + + if len(b) <= 9 { + goto bad + } + y = uint64(b[9]) + x += y << 63 + if y < 2 { + return x, 10 + } + +bad: + return 0, 0 +} diff --git a/vendor/github.com/gogo/protobuf/proto/table_unmarshal_gogo.go b/vendor/github.com/gogo/protobuf/proto/table_unmarshal_gogo.go new file mode 100644 index 0000000..00d6c7a --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/table_unmarshal_gogo.go @@ -0,0 +1,385 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "io" + "reflect" +) + +func makeUnmarshalMessage(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + // First read the message field to see if something is there. + // The semantics of multiple submessages are weird. Instead of + // the last one winning (as it is for all other fields), multiple + // submessages are merged. + v := f // gogo: changed from v := f.getPointer() + if v.isNil() { + v = valToPointer(reflect.New(sub.typ)) + f.setPointer(v) + } + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + return b[x:], err + } +} + +func makeUnmarshalMessageSlice(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + v := valToPointer(reflect.New(sub.typ)) + err := sub.unmarshal(v, b[:x]) + if err != nil { + if r, ok := err.(*RequiredNotSetError); ok { + r.field = name + "." + r.field + } else { + return nil, err + } + } + f.appendRef(v, sub.typ) // gogo: changed from f.appendPointer(v) + return b[x:], err + } +} + +func makeUnmarshalCustomPtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.New(sub.typ)) + m := s.Interface().(custom) + if err := m.Unmarshal(b[:x]); err != nil { + return nil, err + } + return b[x:], nil + } +} + +func makeUnmarshalCustomSlice(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := reflect.New(sub.typ) + c := m.Interface().(custom) + if err := c.Unmarshal(b[:x]); err != nil { + return nil, err + } + v := valToPointer(m) + f.appendRef(v, sub.typ) + return b[x:], nil + } +} + +func makeUnmarshalCustom(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + + m := f.asPointerTo(sub.typ).Interface().(custom) + if err := m.Unmarshal(b[:x]); err != nil { + return nil, err + } + return b[x:], nil + } +} + +func makeUnmarshalTime(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := ×tamp{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + t, err := timestampFromProto(m) + if err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(t)) + return b[x:], nil + } +} + +func makeUnmarshalTimePtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := ×tamp{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + t, err := timestampFromProto(m) + if err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&t)) + return b[x:], nil + } +} + +func makeUnmarshalTimePtrSlice(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := ×tamp{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + t, err := timestampFromProto(m) + if err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&t)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeUnmarshalTimeSlice(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := ×tamp{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + t, err := timestampFromProto(m) + if err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(t)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeUnmarshalDurationPtr(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &duration{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + d, err := durationFromProto(m) + if err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&d)) + return b[x:], nil + } +} + +func makeUnmarshalDuration(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &duration{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + d, err := durationFromProto(m) + if err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(d)) + return b[x:], nil + } +} + +func makeUnmarshalDurationPtrSlice(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &duration{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + d, err := durationFromProto(m) + if err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&d)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeUnmarshalDurationSlice(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &duration{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + d, err := durationFromProto(m) + if err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(d)) + slice.Set(newSlice) + return b[x:], nil + } +} diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/gogo/protobuf/proto/text.go similarity index 83% rename from vendor/github.com/golang/protobuf/proto/text.go rename to vendor/github.com/gogo/protobuf/proto/text.go index 965876b..87416af 100644 --- a/vendor/github.com/golang/protobuf/proto/text.go +++ b/vendor/github.com/gogo/protobuf/proto/text.go @@ -1,3 +1,8 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// // Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. @@ -45,12 +50,13 @@ import ( "reflect" "sort" "strings" + "sync" + "time" ) var ( newline = []byte("\n") spaces = []byte(" ") - gtNewline = []byte(">\n") endBraceNewline = []byte("}\n") backslashN = []byte{'\\', 'n'} backslashR = []byte{'\\', 'r'} @@ -170,11 +176,6 @@ func writeName(w *textWriter, props *Properties) error { return nil } -// raw is the interface satisfied by RawMessage. -type raw interface { - Bytes() []byte -} - func requiresQuotes(u string) bool { // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. for _, ch := range u { @@ -269,6 +270,10 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { props := sprops.Prop[i] name := st.Field(i).Name + if name == "XXX_NoUnkeyedLiteral" { + continue + } + if strings.HasPrefix(name, "XXX_") { // There are two XXX_ fields: // XXX_unrecognized []byte @@ -313,7 +318,11 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { } continue } - if err := tm.writeAny(w, v, props); err != nil { + if len(props.Enum) > 0 { + if err := tm.writeEnum(w, v, props); err != nil { + return err + } + } else if err := tm.writeAny(w, v, props); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -355,7 +364,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { return err } } - if err := tm.writeAny(w, key, props.mkeyprop); err != nil { + if err := tm.writeAny(w, key, props.MapKeyProp); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -372,7 +381,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { return err } } - if err := tm.writeAny(w, val, props.mvalprop); err != nil { + if err := tm.writeAny(w, val, props.MapValProp); err != nil { return err } if err := w.WriteByte('\n'); err != nil { @@ -394,7 +403,7 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { // empty bytes field continue } - if fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice { + if props.proto3 && fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice { // proto3 non-repeated scalar field; skip if zero value if isProto3Zero(fv) { continue @@ -436,15 +445,12 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { return err } } - if b, ok := fv.Interface().(raw); ok { - if err := writeRaw(w, b.Bytes()); err != nil { + + if len(props.Enum) > 0 { + if err := tm.writeEnum(w, fv, props); err != nil { return err } - continue - } - - // Enums have a String method, so writeAny will work fine. - if err := tm.writeAny(w, fv, props); err != nil { + } else if err := tm.writeAny(w, fv, props); err != nil { return err } @@ -454,8 +460,14 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { } // Extensions (the XXX_extensions field). - pv := sv.Addr() - if _, ok := extendable(pv.Interface()); ok { + pv := sv + if pv.CanAddr() { + pv = sv.Addr() + } else { + pv = reflect.New(sv.Type()) + pv.Elem().Set(sv) + } + if _, err := extendable(pv.Interface()); err == nil { if err := tm.writeExtensions(w, pv); err != nil { return err } @@ -464,31 +476,62 @@ func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { return nil } -// writeRaw writes an uninterpreted raw message. -func writeRaw(w *textWriter, b []byte) error { - if err := w.WriteByte('<'); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - if err := writeUnknownStruct(w, b); err != nil { - return err - } - w.unindent() - if err := w.WriteByte('>'); err != nil { - return err - } - return nil -} +var textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem() // writeAny writes an arbitrary field. func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { v = reflect.Indirect(v) + if props != nil { + if len(props.CustomType) > 0 { + custom, ok := v.Interface().(Marshaler) + if ok { + data, err := custom.Marshal() + if err != nil { + return err + } + if err := writeString(w, string(data)); err != nil { + return err + } + return nil + } + } else if len(props.CastType) > 0 { + if _, ok := v.Interface().(interface { + String() string + }); ok { + switch v.Kind() { + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, + reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: + _, err := fmt.Fprintf(w, "%d", v.Interface()) + return err + } + } + } else if props.StdTime { + t, ok := v.Interface().(time.Time) + if !ok { + return fmt.Errorf("stdtime is not time.Time, but %T", v.Interface()) + } + tproto, err := timestampProto(t) + if err != nil { + return err + } + propsCopy := *props // Make a copy so that this is goroutine-safe + propsCopy.StdTime = false + err = tm.writeAny(w, reflect.ValueOf(tproto), &propsCopy) + return err + } else if props.StdDuration { + d, ok := v.Interface().(time.Duration) + if !ok { + return fmt.Errorf("stdtime is not time.Duration, but %T", v.Interface()) + } + dproto := durationProto(d) + propsCopy := *props // Make a copy so that this is goroutine-safe + propsCopy.StdDuration = false + err := tm.writeAny(w, reflect.ValueOf(dproto), &propsCopy) + return err + } + } + // Floats have special cases. if v.Kind() == reflect.Float32 || v.Kind() == reflect.Float64 { x := v.Float() @@ -535,16 +578,34 @@ func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Propert } } w.indent() - if etm, ok := v.Interface().(encoding.TextMarshaler); ok { - text, err := etm.MarshalText() + if v.CanAddr() { + // Calling v.Interface on a struct causes the reflect package to + // copy the entire struct. This is racy with the new Marshaler + // since we atomically update the XXX_sizecache. + // + // Thus, we retrieve a pointer to the struct if possible to avoid + // a race since v.Interface on the pointer doesn't copy the struct. + // + // If v is not addressable, then we are not worried about a race + // since it implies that the binary Marshaler cannot possibly be + // mutating this value. + v = v.Addr() + } + if v.Type().Implements(textMarshalerType) { + text, err := v.Interface().(encoding.TextMarshaler).MarshalText() if err != nil { return err } if _, err = w.Write(text); err != nil { return err } - } else if err := tm.writeStruct(w, v); err != nil { - return err + } else { + if v.Kind() == reflect.Ptr { + v = v.Elem() + } + if err := tm.writeStruct(w, v); err != nil { + return err + } } w.unindent() if err := w.WriteByte(ket); err != nil { @@ -613,27 +674,27 @@ func writeUnknownStruct(w *textWriter, data []byte) (err error) { for b.index < len(b.buf) { x, err := b.DecodeVarint() if err != nil { - _, err := fmt.Fprintf(w, "/* %v */\n", err) - return err + _, ferr := fmt.Fprintf(w, "/* %v */\n", err) + return ferr } wire, tag := x&7, x>>3 if wire == WireEndGroup { w.unindent() - if _, err := w.Write(endBraceNewline); err != nil { - return err + if _, werr := w.Write(endBraceNewline); werr != nil { + return werr } continue } - if _, err := fmt.Fprint(w, tag); err != nil { - return err + if _, ferr := fmt.Fprint(w, tag); ferr != nil { + return ferr } if wire != WireStartGroup { - if err := w.WriteByte(':'); err != nil { + if err = w.WriteByte(':'); err != nil { return err } } if !w.compact || wire == WireStartGroup { - if err := w.WriteByte(' '); err != nil { + if err = w.WriteByte(' '); err != nil { return err } } @@ -663,7 +724,7 @@ func writeUnknownStruct(w *textWriter, data []byte) (err error) { if err != nil { return err } - if err = w.WriteByte('\n'); err != nil { + if err := w.WriteByte('\n'); err != nil { return err } } @@ -689,15 +750,30 @@ func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } // pv is assumed to be a pointer to a protocol message struct that is extendable. func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error { emap := extensionMaps[pv.Type().Elem()] - ep, _ := extendable(pv.Interface()) + e := pv.Interface().(Message) + + var m map[int32]Extension + var mu sync.Locker + if em, ok := e.(extensionsBytes); ok { + eb := em.GetExtensions() + var err error + m, err = BytesToExtensionsMap(*eb) + if err != nil { + return err + } + mu = notLocker{} + } else if _, ok := e.(extendableProto); ok { + ep, _ := extendable(e) + m, mu = ep.extensionsRead() + if m == nil { + return nil + } + } // Order the extensions by ID. // This isn't strictly necessary, but it will give us // canonical output, which will also make testing easier. - m, mu := ep.extensionsRead() - if m == nil { - return nil - } + mu.Lock() ids := make([]int32, 0, len(m)) for id := range m { @@ -720,7 +796,7 @@ func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error continue } - pb, err := GetExtension(ep, desc) + pb, err := GetExtension(e, desc) if err != nil { return fmt.Errorf("failed getting extension: %v", err) } diff --git a/vendor/github.com/gogo/protobuf/proto/text_gogo.go b/vendor/github.com/gogo/protobuf/proto/text_gogo.go new file mode 100644 index 0000000..1d6c6aa --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/text_gogo.go @@ -0,0 +1,57 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "fmt" + "reflect" +) + +func (tm *TextMarshaler) writeEnum(w *textWriter, v reflect.Value, props *Properties) error { + m, ok := enumStringMaps[props.Enum] + if !ok { + if err := tm.writeAny(w, v, props); err != nil { + return err + } + } + key := int32(0) + if v.Kind() == reflect.Ptr { + key = int32(v.Elem().Int()) + } else { + key = int32(v.Int()) + } + s, ok := m[key] + if !ok { + if err := tm.writeAny(w, v, props); err != nil { + return err + } + } + _, err := fmt.Fprint(w, s) + return err +} diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/gogo/protobuf/proto/text_parser.go similarity index 81% rename from vendor/github.com/golang/protobuf/proto/text_parser.go rename to vendor/github.com/gogo/protobuf/proto/text_parser.go index 5e14513..f85c0cc 100644 --- a/vendor/github.com/golang/protobuf/proto/text_parser.go +++ b/vendor/github.com/gogo/protobuf/proto/text_parser.go @@ -1,3 +1,8 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// // Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. @@ -41,6 +46,7 @@ import ( "reflect" "strconv" "strings" + "time" "unicode/utf8" ) @@ -206,7 +212,6 @@ func (p *textParser) advance() { var ( errBadUTF8 = errors.New("proto: bad UTF-8") - errBadHex = errors.New("proto: bad hexadecimal") ) func unquoteC(s string, quote rune) (string, error) { @@ -277,60 +282,47 @@ func unescape(s string) (ch string, tail string, err error) { return "?", s, nil // trigraph workaround case '\'', '"', '\\': return string(r), s, nil - case '0', '1', '2', '3', '4', '5', '6', '7', 'x', 'X': + case '0', '1', '2', '3', '4', '5', '6', '7': if len(s) < 2 { return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) } - base := 8 - ss := s[:2] + ss := string(r) + s[:2] s = s[2:] - if r == 'x' || r == 'X' { - base = 16 - } else { - ss = string(r) + ss - } - i, err := strconv.ParseUint(ss, base, 8) + i, err := strconv.ParseUint(ss, 8, 8) if err != nil { - return "", "", err + return "", "", fmt.Errorf(`\%s contains non-octal digits`, ss) } return string([]byte{byte(i)}), s, nil - case 'u', 'U': - n := 4 - if r == 'U' { + case 'x', 'X', 'u', 'U': + var n int + switch r { + case 'x', 'X': + n = 2 + case 'u': + n = 4 + case 'U': n = 8 } if len(s) < n { - return "", "", fmt.Errorf(`\%c requires %d digits`, r, n) - } - - bs := make([]byte, n/2) - for i := 0; i < n; i += 2 { - a, ok1 := unhex(s[i]) - b, ok2 := unhex(s[i+1]) - if !ok1 || !ok2 { - return "", "", errBadHex - } - bs[i/2] = a<<4 | b + return "", "", fmt.Errorf(`\%c requires %d following digits`, r, n) } + ss := s[:n] s = s[n:] - return string(bs), s, nil + i, err := strconv.ParseUint(ss, 16, 64) + if err != nil { + return "", "", fmt.Errorf(`\%c%s contains non-hexadecimal digits`, r, ss) + } + if r == 'x' || r == 'X' { + return string([]byte{byte(i)}), s, nil + } + if i > utf8.MaxRune { + return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss) + } + return string(rune(i)), s, nil } return "", "", fmt.Errorf(`unknown escape \%c`, r) } -// Adapted from src/pkg/strconv/quote.go. -func unhex(b byte) (v byte, ok bool) { - switch { - case '0' <= b && b <= '9': - return b - '0', true - case 'a' <= b && b <= 'f': - return b - 'a' + 10, true - case 'A' <= b && b <= 'F': - return b - 'A' + 10, true - } - return 0, false -} - // Back off the parser by one token. Can only be done between calls to next(). // It makes the next advance() a no-op. func (p *textParser) back() { p.backed = true } @@ -644,17 +636,17 @@ func (p *textParser) readStruct(sv reflect.Value, terminator string) error { if err := p.consumeToken(":"); err != nil { return err } - if err := p.readAny(key, props.mkeyprop); err != nil { + if err := p.readAny(key, props.MapKeyProp); err != nil { return err } if err := p.consumeOptionalSeparator(); err != nil { return err } case "value": - if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil { + if err := p.checkForColon(props.MapValProp, dst.Type().Elem()); err != nil { return err } - if err := p.readAny(val, props.mvalprop); err != nil { + if err := p.readAny(val, props.MapValProp); err != nil { return err } if err := p.consumeOptionalSeparator(); err != nil { @@ -728,6 +720,9 @@ func (p *textParser) consumeExtName() (string, error) { if tok.err != nil { return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) } + if p.done && tok.value != "]" { + return "", p.errorf("unclosed type_url or extension name") + } } return strings.Join(parts, ""), nil } @@ -753,7 +748,119 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { if tok.value == "" { return p.errorf("unexpected EOF") } + if len(props.CustomType) > 0 { + if props.Repeated { + t := reflect.TypeOf(v.Interface()) + if t.Kind() == reflect.Slice { + tc := reflect.TypeOf(new(Marshaler)) + ok := t.Elem().Implements(tc.Elem()) + if ok { + fv := v + flen := fv.Len() + if flen == fv.Cap() { + nav := reflect.MakeSlice(v.Type(), flen, 2*flen+1) + reflect.Copy(nav, fv) + fv.Set(nav) + } + fv.SetLen(flen + 1) + // Read one. + p.back() + return p.readAny(fv.Index(flen), props) + } + } + } + if reflect.TypeOf(v.Interface()).Kind() == reflect.Ptr { + custom := reflect.New(props.ctype.Elem()).Interface().(Unmarshaler) + err := custom.Unmarshal([]byte(tok.unquoted)) + if err != nil { + return p.errorf("%v %v: %v", err, v.Type(), tok.value) + } + v.Set(reflect.ValueOf(custom)) + } else { + custom := reflect.New(reflect.TypeOf(v.Interface())).Interface().(Unmarshaler) + err := custom.Unmarshal([]byte(tok.unquoted)) + if err != nil { + return p.errorf("%v %v: %v", err, v.Type(), tok.value) + } + v.Set(reflect.Indirect(reflect.ValueOf(custom))) + } + return nil + } + if props.StdTime { + fv := v + p.back() + props.StdTime = false + tproto := ×tamp{} + err := p.readAny(reflect.ValueOf(tproto).Elem(), props) + props.StdTime = true + if err != nil { + return err + } + tim, err := timestampFromProto(tproto) + if err != nil { + return err + } + if props.Repeated { + t := reflect.TypeOf(v.Interface()) + if t.Kind() == reflect.Slice { + if t.Elem().Kind() == reflect.Ptr { + ts := fv.Interface().([]*time.Time) + ts = append(ts, &tim) + fv.Set(reflect.ValueOf(ts)) + return nil + } else { + ts := fv.Interface().([]time.Time) + ts = append(ts, tim) + fv.Set(reflect.ValueOf(ts)) + return nil + } + } + } + if reflect.TypeOf(v.Interface()).Kind() == reflect.Ptr { + v.Set(reflect.ValueOf(&tim)) + } else { + v.Set(reflect.Indirect(reflect.ValueOf(&tim))) + } + return nil + } + if props.StdDuration { + fv := v + p.back() + props.StdDuration = false + dproto := &duration{} + err := p.readAny(reflect.ValueOf(dproto).Elem(), props) + props.StdDuration = true + if err != nil { + return err + } + dur, err := durationFromProto(dproto) + if err != nil { + return err + } + if props.Repeated { + t := reflect.TypeOf(v.Interface()) + if t.Kind() == reflect.Slice { + if t.Elem().Kind() == reflect.Ptr { + ds := fv.Interface().([]*time.Duration) + ds = append(ds, &dur) + fv.Set(reflect.ValueOf(ds)) + return nil + } else { + ds := fv.Interface().([]time.Duration) + ds = append(ds, dur) + fv.Set(reflect.ValueOf(ds)) + return nil + } + } + } + if reflect.TypeOf(v.Interface()).Kind() == reflect.Ptr { + v.Set(reflect.ValueOf(&dur)) + } else { + v.Set(reflect.Indirect(reflect.ValueOf(&dur))) + } + return nil + } switch fv := v; fv.Kind() { case reflect.Slice: at := v.Type() @@ -778,15 +885,15 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { if err != nil { return err } - tok := p.next() - if tok.err != nil { - return tok.err + ntok := p.next() + if ntok.err != nil { + return ntok.err } - if tok.value == "]" { + if ntok.value == "]" { break } - if tok.value != "," { - return p.errorf("Expected ']' or ',' found %q", tok.value) + if ntok.value != "," { + return p.errorf("Expected ']' or ',' found %q", ntok.value) } } return nil @@ -816,6 +923,16 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { fv.SetFloat(f) return nil } + case reflect.Int8: + if x, err := strconv.ParseInt(tok.value, 0, 8); err == nil { + fv.SetInt(x) + return nil + } + case reflect.Int16: + if x, err := strconv.ParseInt(tok.value, 0, 16); err == nil { + fv.SetInt(x) + return nil + } case reflect.Int32: if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { fv.SetInt(x) @@ -863,9 +980,19 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { } // TODO: Handle nested messages which implement encoding.TextUnmarshaler. return p.readStruct(fv, terminator) + case reflect.Uint8: + if x, err := strconv.ParseUint(tok.value, 0, 8); err == nil { + fv.SetUint(x) + return nil + } + case reflect.Uint16: + if x, err := strconv.ParseUint(tok.value, 0, 16); err == nil { + fv.SetUint(x) + return nil + } case reflect.Uint32: if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { - fv.SetUint(x) + fv.SetUint(uint64(x)) return nil } case reflect.Uint64: @@ -883,13 +1010,9 @@ func (p *textParser) readAny(v reflect.Value, props *Properties) error { // UnmarshalText returns *RequiredNotSetError. func UnmarshalText(s string, pb Message) error { if um, ok := pb.(encoding.TextUnmarshaler); ok { - err := um.UnmarshalText([]byte(s)) - return err + return um.UnmarshalText([]byte(s)) } pb.Reset() v := reflect.ValueOf(pb) - if pe := newTextParser(s).readStruct(v.Elem(), ""); pe != nil { - return pe - } - return nil + return newTextParser(s).readStruct(v.Elem(), "") } diff --git a/vendor/github.com/gogo/protobuf/proto/timestamp.go b/vendor/github.com/gogo/protobuf/proto/timestamp.go new file mode 100644 index 0000000..9324f65 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/timestamp.go @@ -0,0 +1,113 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +// This file implements operations on google.protobuf.Timestamp. + +import ( + "errors" + "fmt" + "time" +) + +const ( + // Seconds field of the earliest valid Timestamp. + // This is time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC).Unix(). + minValidSeconds = -62135596800 + // Seconds field just after the latest valid Timestamp. + // This is time.Date(10000, 1, 1, 0, 0, 0, 0, time.UTC).Unix(). + maxValidSeconds = 253402300800 +) + +// validateTimestamp determines whether a Timestamp is valid. +// A valid timestamp represents a time in the range +// [0001-01-01, 10000-01-01) and has a Nanos field +// in the range [0, 1e9). +// +// If the Timestamp is valid, validateTimestamp returns nil. +// Otherwise, it returns an error that describes +// the problem. +// +// Every valid Timestamp can be represented by a time.Time, but the converse is not true. +func validateTimestamp(ts *timestamp) error { + if ts == nil { + return errors.New("timestamp: nil Timestamp") + } + if ts.Seconds < minValidSeconds { + return fmt.Errorf("timestamp: %#v before 0001-01-01", ts) + } + if ts.Seconds >= maxValidSeconds { + return fmt.Errorf("timestamp: %#v after 10000-01-01", ts) + } + if ts.Nanos < 0 || ts.Nanos >= 1e9 { + return fmt.Errorf("timestamp: %#v: nanos not in range [0, 1e9)", ts) + } + return nil +} + +// TimestampFromProto converts a google.protobuf.Timestamp proto to a time.Time. +// It returns an error if the argument is invalid. +// +// Unlike most Go functions, if Timestamp returns an error, the first return value +// is not the zero time.Time. Instead, it is the value obtained from the +// time.Unix function when passed the contents of the Timestamp, in the UTC +// locale. This may or may not be a meaningful time; many invalid Timestamps +// do map to valid time.Times. +// +// A nil Timestamp returns an error. The first return value in that case is +// undefined. +func timestampFromProto(ts *timestamp) (time.Time, error) { + // Don't return the zero value on error, because corresponds to a valid + // timestamp. Instead return whatever time.Unix gives us. + var t time.Time + if ts == nil { + t = time.Unix(0, 0).UTC() // treat nil like the empty Timestamp + } else { + t = time.Unix(ts.Seconds, int64(ts.Nanos)).UTC() + } + return t, validateTimestamp(ts) +} + +// TimestampProto converts the time.Time to a google.protobuf.Timestamp proto. +// It returns an error if the resulting Timestamp is invalid. +func timestampProto(t time.Time) (*timestamp, error) { + seconds := t.Unix() + nanos := int32(t.Sub(time.Unix(seconds, 0))) + ts := ×tamp{ + Seconds: seconds, + Nanos: nanos, + } + if err := validateTimestamp(ts); err != nil { + return nil, err + } + return ts, nil +} diff --git a/vendor/github.com/gogo/protobuf/proto/timestamp_gogo.go b/vendor/github.com/gogo/protobuf/proto/timestamp_gogo.go new file mode 100644 index 0000000..38439fa --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/timestamp_gogo.go @@ -0,0 +1,49 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2016, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "reflect" + "time" +) + +var timeType = reflect.TypeOf((*time.Time)(nil)).Elem() + +type timestamp struct { + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +func (m *timestamp) Reset() { *m = timestamp{} } +func (*timestamp) ProtoMessage() {} +func (*timestamp) String() string { return "timestamp" } + +func init() { + RegisterType((*timestamp)(nil), "gogo.protobuf.proto.timestamp") +} diff --git a/vendor/github.com/gogo/protobuf/proto/wrappers.go b/vendor/github.com/gogo/protobuf/proto/wrappers.go new file mode 100644 index 0000000..b175d1b --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/wrappers.go @@ -0,0 +1,1888 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +import ( + "io" + "reflect" +) + +func makeStdDoubleValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*float64) + v := &float64Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*float64) + v := &float64Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdDoubleValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*float64) + v := &float64Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*float64) + v := &float64Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdDoubleValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(float64) + v := &float64Value{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(float64) + v := &float64Value{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdDoubleValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*float64) + v := &float64Value{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*float64) + v := &float64Value{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdDoubleValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdDoubleValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdDoubleValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdDoubleValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdFloatValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*float32) + v := &float32Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*float32) + v := &float32Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdFloatValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*float32) + v := &float32Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*float32) + v := &float32Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdFloatValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(float32) + v := &float32Value{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(float32) + v := &float32Value{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdFloatValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*float32) + v := &float32Value{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*float32) + v := &float32Value{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdFloatValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdFloatValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdFloatValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdFloatValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &float32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdInt64ValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*int64) + v := &int64Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*int64) + v := &int64Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdInt64ValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*int64) + v := &int64Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*int64) + v := &int64Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdInt64ValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(int64) + v := &int64Value{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(int64) + v := &int64Value{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdInt64ValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*int64) + v := &int64Value{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*int64) + v := &int64Value{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdInt64ValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdInt64ValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdInt64ValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdInt64ValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdUInt64ValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*uint64) + v := &uint64Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*uint64) + v := &uint64Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdUInt64ValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*uint64) + v := &uint64Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*uint64) + v := &uint64Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdUInt64ValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(uint64) + v := &uint64Value{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(uint64) + v := &uint64Value{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdUInt64ValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*uint64) + v := &uint64Value{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*uint64) + v := &uint64Value{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdUInt64ValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdUInt64ValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdUInt64ValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdUInt64ValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint64Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdInt32ValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*int32) + v := &int32Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*int32) + v := &int32Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdInt32ValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*int32) + v := &int32Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*int32) + v := &int32Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdInt32ValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(int32) + v := &int32Value{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(int32) + v := &int32Value{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdInt32ValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*int32) + v := &int32Value{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*int32) + v := &int32Value{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdInt32ValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdInt32ValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdInt32ValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdInt32ValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &int32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdUInt32ValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*uint32) + v := &uint32Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*uint32) + v := &uint32Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdUInt32ValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*uint32) + v := &uint32Value{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*uint32) + v := &uint32Value{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdUInt32ValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(uint32) + v := &uint32Value{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(uint32) + v := &uint32Value{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdUInt32ValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*uint32) + v := &uint32Value{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*uint32) + v := &uint32Value{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdUInt32ValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdUInt32ValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdUInt32ValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdUInt32ValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &uint32Value{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdBoolValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*bool) + v := &boolValue{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*bool) + v := &boolValue{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdBoolValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*bool) + v := &boolValue{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*bool) + v := &boolValue{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdBoolValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(bool) + v := &boolValue{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(bool) + v := &boolValue{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdBoolValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*bool) + v := &boolValue{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*bool) + v := &boolValue{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdBoolValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &boolValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdBoolValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &boolValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdBoolValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &boolValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdBoolValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &boolValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdStringValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*string) + v := &stringValue{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*string) + v := &stringValue{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdStringValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*string) + v := &stringValue{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*string) + v := &stringValue{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdStringValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(string) + v := &stringValue{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(string) + v := &stringValue{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdStringValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*string) + v := &stringValue{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*string) + v := &stringValue{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdStringValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &stringValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdStringValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &stringValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdStringValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &stringValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdStringValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &stringValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdBytesValueMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + t := ptr.asPointerTo(u.typ).Interface().(*[]byte) + v := &bytesValue{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + t := ptr.asPointerTo(u.typ).Interface().(*[]byte) + v := &bytesValue{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdBytesValuePtrMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + if ptr.isNil() { + return 0 + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*[]byte) + v := &bytesValue{*t} + siz := Size(v) + return tagsize + SizeVarint(uint64(siz)) + siz + }, func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + if ptr.isNil() { + return b, nil + } + t := ptr.asPointerTo(reflect.PtrTo(u.typ)).Elem().Interface().(*[]byte) + v := &bytesValue{*t} + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(len(buf))) + b = append(b, buf...) + return b, nil + } +} + +func makeStdBytesValueSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(u.typ) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().([]byte) + v := &bytesValue{t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(u.typ) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().([]byte) + v := &bytesValue{t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdBytesValuePtrSliceMarshaler(u *marshalInfo) (sizer, marshaler) { + return func(ptr pointer, tagsize int) int { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + n := 0 + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*[]byte) + v := &bytesValue{*t} + siz := Size(v) + n += siz + SizeVarint(uint64(siz)) + tagsize + } + return n + }, + func(b []byte, ptr pointer, wiretag uint64, deterministic bool) ([]byte, error) { + s := ptr.getSlice(reflect.PtrTo(u.typ)) + for i := 0; i < s.Len(); i++ { + elem := s.Index(i) + t := elem.Interface().(*[]byte) + v := &bytesValue{*t} + siz := Size(v) + buf, err := Marshal(v) + if err != nil { + return nil, err + } + b = appendVarint(b, wiretag) + b = appendVarint(b, uint64(siz)) + b = append(b, buf...) + } + + return b, nil + } +} + +func makeStdBytesValueUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &bytesValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(sub.typ).Elem() + s.Set(reflect.ValueOf(m.Value)) + return b[x:], nil + } +} + +func makeStdBytesValuePtrUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &bytesValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + s := f.asPointerTo(reflect.PtrTo(sub.typ)).Elem() + s.Set(reflect.ValueOf(&m.Value)) + return b[x:], nil + } +} + +func makeStdBytesValuePtrSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &bytesValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(reflect.PtrTo(sub.typ)) + newSlice := reflect.Append(slice, reflect.ValueOf(&m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} + +func makeStdBytesValueSliceUnmarshaler(sub *unmarshalInfo, name string) unmarshaler { + return func(b []byte, f pointer, w int) ([]byte, error) { + if w != WireBytes { + return nil, errInternalBadWireType + } + x, n := decodeVarint(b) + if n == 0 { + return nil, io.ErrUnexpectedEOF + } + b = b[n:] + if x > uint64(len(b)) { + return nil, io.ErrUnexpectedEOF + } + m := &bytesValue{} + if err := Unmarshal(b[:x], m); err != nil { + return nil, err + } + slice := f.getSlice(sub.typ) + newSlice := reflect.Append(slice, reflect.ValueOf(m.Value)) + slice.Set(newSlice) + return b[x:], nil + } +} diff --git a/vendor/github.com/gogo/protobuf/proto/wrappers_gogo.go b/vendor/github.com/gogo/protobuf/proto/wrappers_gogo.go new file mode 100644 index 0000000..c1cf7bf --- /dev/null +++ b/vendor/github.com/gogo/protobuf/proto/wrappers_gogo.go @@ -0,0 +1,113 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2018, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package proto + +type float64Value struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *float64Value) Reset() { *m = float64Value{} } +func (*float64Value) ProtoMessage() {} +func (*float64Value) String() string { return "float64" } + +type float32Value struct { + Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *float32Value) Reset() { *m = float32Value{} } +func (*float32Value) ProtoMessage() {} +func (*float32Value) String() string { return "float32" } + +type int64Value struct { + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *int64Value) Reset() { *m = int64Value{} } +func (*int64Value) ProtoMessage() {} +func (*int64Value) String() string { return "int64" } + +type uint64Value struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *uint64Value) Reset() { *m = uint64Value{} } +func (*uint64Value) ProtoMessage() {} +func (*uint64Value) String() string { return "uint64" } + +type int32Value struct { + Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *int32Value) Reset() { *m = int32Value{} } +func (*int32Value) ProtoMessage() {} +func (*int32Value) String() string { return "int32" } + +type uint32Value struct { + Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *uint32Value) Reset() { *m = uint32Value{} } +func (*uint32Value) ProtoMessage() {} +func (*uint32Value) String() string { return "uint32" } + +type boolValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *boolValue) Reset() { *m = boolValue{} } +func (*boolValue) ProtoMessage() {} +func (*boolValue) String() string { return "bool" } + +type stringValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *stringValue) Reset() { *m = stringValue{} } +func (*stringValue) ProtoMessage() {} +func (*stringValue) String() string { return "string" } + +type bytesValue struct { + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *bytesValue) Reset() { *m = bytesValue{} } +func (*bytesValue) ProtoMessage() {} +func (*bytesValue) String() string { return "[]byte" } + +func init() { + RegisterType((*float64Value)(nil), "gogo.protobuf.proto.DoubleValue") + RegisterType((*float32Value)(nil), "gogo.protobuf.proto.FloatValue") + RegisterType((*int64Value)(nil), "gogo.protobuf.proto.Int64Value") + RegisterType((*uint64Value)(nil), "gogo.protobuf.proto.UInt64Value") + RegisterType((*int32Value)(nil), "gogo.protobuf.proto.Int32Value") + RegisterType((*uint32Value)(nil), "gogo.protobuf.proto.UInt32Value") + RegisterType((*boolValue)(nil), "gogo.protobuf.proto.BoolValue") + RegisterType((*stringValue)(nil), "gogo.protobuf.proto.StringValue") + RegisterType((*bytesValue)(nil), "gogo.protobuf.proto.BytesValue") +} diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/Makefile similarity index 81% rename from vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile rename to vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/Makefile index f706871..3496dc9 100644 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/Makefile +++ b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/Makefile @@ -29,9 +29,8 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Not stored here, but descriptor.proto is in https://github.com/google/protobuf/ -# at src/google/protobuf/descriptor.proto regenerate: - @echo WARNING! THIS RULE IS PROBABLY NOT RIGHT FOR YOUR INSTALLATION - cp $(HOME)/src/protobuf/include/google/protobuf/descriptor.proto . - protoc --go_out=../../../../.. -I$(HOME)/src/protobuf/include $(HOME)/src/protobuf/include/google/protobuf/descriptor.proto + go install github.com/gogo/protobuf/protoc-gen-gogo + go install github.com/gogo/protobuf/protoc-gen-gostring + protoc --gogo_out=. -I=../../protobuf/google/protobuf ../../protobuf/google/protobuf/descriptor.proto + protoc --gostring_out=. -I=../../protobuf/google/protobuf ../../protobuf/google/protobuf/descriptor.proto diff --git a/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.go b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.go new file mode 100644 index 0000000..a85bf19 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.go @@ -0,0 +1,118 @@ +// Go support for Protocol Buffers - Google's data interchange format +// +// Copyright 2016 The Go Authors. All rights reserved. +// https://github.com/golang/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Package descriptor provides functions for obtaining protocol buffer +// descriptors for generated Go types. +// +// These functions cannot go in package proto because they depend on the +// generated protobuf descriptor messages, which themselves depend on proto. +package descriptor + +import ( + "bytes" + "compress/gzip" + "fmt" + "io/ioutil" + + "github.com/gogo/protobuf/proto" +) + +// extractFile extracts a FileDescriptorProto from a gzip'd buffer. +func extractFile(gz []byte) (*FileDescriptorProto, error) { + r, err := gzip.NewReader(bytes.NewReader(gz)) + if err != nil { + return nil, fmt.Errorf("failed to open gzip reader: %v", err) + } + defer r.Close() + + b, err := ioutil.ReadAll(r) + if err != nil { + return nil, fmt.Errorf("failed to uncompress descriptor: %v", err) + } + + fd := new(FileDescriptorProto) + if err := proto.Unmarshal(b, fd); err != nil { + return nil, fmt.Errorf("malformed FileDescriptorProto: %v", err) + } + + return fd, nil +} + +// Message is a proto.Message with a method to return its descriptor. +// +// Message types generated by the protocol compiler always satisfy +// the Message interface. +type Message interface { + proto.Message + Descriptor() ([]byte, []int) +} + +// ForMessage returns a FileDescriptorProto and a DescriptorProto from within it +// describing the given message. +func ForMessage(msg Message) (fd *FileDescriptorProto, md *DescriptorProto) { + gz, path := msg.Descriptor() + fd, err := extractFile(gz) + if err != nil { + panic(fmt.Sprintf("invalid FileDescriptorProto for %T: %v", msg, err)) + } + + md = fd.MessageType[path[0]] + for _, i := range path[1:] { + md = md.NestedType[i] + } + return fd, md +} + +// Is this field a scalar numeric type? +func (field *FieldDescriptorProto) IsScalar() bool { + if field.Type == nil { + return false + } + switch *field.Type { + case FieldDescriptorProto_TYPE_DOUBLE, + FieldDescriptorProto_TYPE_FLOAT, + FieldDescriptorProto_TYPE_INT64, + FieldDescriptorProto_TYPE_UINT64, + FieldDescriptorProto_TYPE_INT32, + FieldDescriptorProto_TYPE_FIXED64, + FieldDescriptorProto_TYPE_FIXED32, + FieldDescriptorProto_TYPE_BOOL, + FieldDescriptorProto_TYPE_UINT32, + FieldDescriptorProto_TYPE_ENUM, + FieldDescriptorProto_TYPE_SFIXED32, + FieldDescriptorProto_TYPE_SFIXED64, + FieldDescriptorProto_TYPE_SINT32, + FieldDescriptorProto_TYPE_SINT64: + return true + default: + return false + } +} diff --git a/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.pb.go b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.pb.go new file mode 100644 index 0000000..18b2a33 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor.pb.go @@ -0,0 +1,2865 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: descriptor.proto + +package descriptor + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type FieldDescriptorProto_Type int32 + +const ( + // 0 is reserved for errors. + // Order is weird for historical reasons. + FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1 + FieldDescriptorProto_TYPE_FLOAT FieldDescriptorProto_Type = 2 + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + FieldDescriptorProto_TYPE_INT64 FieldDescriptorProto_Type = 3 + FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4 + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + FieldDescriptorProto_TYPE_INT32 FieldDescriptorProto_Type = 5 + FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6 + FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7 + FieldDescriptorProto_TYPE_BOOL FieldDescriptorProto_Type = 8 + FieldDescriptorProto_TYPE_STRING FieldDescriptorProto_Type = 9 + // Tag-delimited aggregate. + // Group type is deprecated and not supported in proto3. However, Proto3 + // implementations should still be able to parse the group wire format and + // treat group fields as unknown fields. + FieldDescriptorProto_TYPE_GROUP FieldDescriptorProto_Type = 10 + FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11 + // New in version 2. + FieldDescriptorProto_TYPE_BYTES FieldDescriptorProto_Type = 12 + FieldDescriptorProto_TYPE_UINT32 FieldDescriptorProto_Type = 13 + FieldDescriptorProto_TYPE_ENUM FieldDescriptorProto_Type = 14 + FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15 + FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16 + FieldDescriptorProto_TYPE_SINT32 FieldDescriptorProto_Type = 17 + FieldDescriptorProto_TYPE_SINT64 FieldDescriptorProto_Type = 18 +) + +var FieldDescriptorProto_Type_name = map[int32]string{ + 1: "TYPE_DOUBLE", + 2: "TYPE_FLOAT", + 3: "TYPE_INT64", + 4: "TYPE_UINT64", + 5: "TYPE_INT32", + 6: "TYPE_FIXED64", + 7: "TYPE_FIXED32", + 8: "TYPE_BOOL", + 9: "TYPE_STRING", + 10: "TYPE_GROUP", + 11: "TYPE_MESSAGE", + 12: "TYPE_BYTES", + 13: "TYPE_UINT32", + 14: "TYPE_ENUM", + 15: "TYPE_SFIXED32", + 16: "TYPE_SFIXED64", + 17: "TYPE_SINT32", + 18: "TYPE_SINT64", +} + +var FieldDescriptorProto_Type_value = map[string]int32{ + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18, +} + +func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type { + p := new(FieldDescriptorProto_Type) + *p = x + return p +} + +func (x FieldDescriptorProto_Type) String() string { + return proto.EnumName(FieldDescriptorProto_Type_name, int32(x)) +} + +func (x *FieldDescriptorProto_Type) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FieldDescriptorProto_Type_value, data, "FieldDescriptorProto_Type") + if err != nil { + return err + } + *x = FieldDescriptorProto_Type(value) + return nil +} + +func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{4, 0} +} + +type FieldDescriptorProto_Label int32 + +const ( + // 0 is reserved for errors + FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1 + FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2 + FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3 +) + +var FieldDescriptorProto_Label_name = map[int32]string{ + 1: "LABEL_OPTIONAL", + 2: "LABEL_REQUIRED", + 3: "LABEL_REPEATED", +} + +var FieldDescriptorProto_Label_value = map[string]int32{ + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3, +} + +func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label { + p := new(FieldDescriptorProto_Label) + *p = x + return p +} + +func (x FieldDescriptorProto_Label) String() string { + return proto.EnumName(FieldDescriptorProto_Label_name, int32(x)) +} + +func (x *FieldDescriptorProto_Label) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FieldDescriptorProto_Label_value, data, "FieldDescriptorProto_Label") + if err != nil { + return err + } + *x = FieldDescriptorProto_Label(value) + return nil +} + +func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{4, 1} +} + +// Generated classes can be optimized for speed or code size. +type FileOptions_OptimizeMode int32 + +const ( + FileOptions_SPEED FileOptions_OptimizeMode = 1 + // etc. + FileOptions_CODE_SIZE FileOptions_OptimizeMode = 2 + FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3 +) + +var FileOptions_OptimizeMode_name = map[int32]string{ + 1: "SPEED", + 2: "CODE_SIZE", + 3: "LITE_RUNTIME", +} + +var FileOptions_OptimizeMode_value = map[string]int32{ + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3, +} + +func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode { + p := new(FileOptions_OptimizeMode) + *p = x + return p +} + +func (x FileOptions_OptimizeMode) String() string { + return proto.EnumName(FileOptions_OptimizeMode_name, int32(x)) +} + +func (x *FileOptions_OptimizeMode) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FileOptions_OptimizeMode_value, data, "FileOptions_OptimizeMode") + if err != nil { + return err + } + *x = FileOptions_OptimizeMode(value) + return nil +} + +func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{10, 0} +} + +type FieldOptions_CType int32 + +const ( + // Default mode. + FieldOptions_STRING FieldOptions_CType = 0 + FieldOptions_CORD FieldOptions_CType = 1 + FieldOptions_STRING_PIECE FieldOptions_CType = 2 +) + +var FieldOptions_CType_name = map[int32]string{ + 0: "STRING", + 1: "CORD", + 2: "STRING_PIECE", +} + +var FieldOptions_CType_value = map[string]int32{ + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2, +} + +func (x FieldOptions_CType) Enum() *FieldOptions_CType { + p := new(FieldOptions_CType) + *p = x + return p +} + +func (x FieldOptions_CType) String() string { + return proto.EnumName(FieldOptions_CType_name, int32(x)) +} + +func (x *FieldOptions_CType) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FieldOptions_CType_value, data, "FieldOptions_CType") + if err != nil { + return err + } + *x = FieldOptions_CType(value) + return nil +} + +func (FieldOptions_CType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{12, 0} +} + +type FieldOptions_JSType int32 + +const ( + // Use the default type. + FieldOptions_JS_NORMAL FieldOptions_JSType = 0 + // Use JavaScript strings. + FieldOptions_JS_STRING FieldOptions_JSType = 1 + // Use JavaScript numbers. + FieldOptions_JS_NUMBER FieldOptions_JSType = 2 +) + +var FieldOptions_JSType_name = map[int32]string{ + 0: "JS_NORMAL", + 1: "JS_STRING", + 2: "JS_NUMBER", +} + +var FieldOptions_JSType_value = map[string]int32{ + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2, +} + +func (x FieldOptions_JSType) Enum() *FieldOptions_JSType { + p := new(FieldOptions_JSType) + *p = x + return p +} + +func (x FieldOptions_JSType) String() string { + return proto.EnumName(FieldOptions_JSType_name, int32(x)) +} + +func (x *FieldOptions_JSType) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(FieldOptions_JSType_value, data, "FieldOptions_JSType") + if err != nil { + return err + } + *x = FieldOptions_JSType(value) + return nil +} + +func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{12, 1} +} + +// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, +// or neither? HTTP based RPC implementation may choose GET verb for safe +// methods, and PUT verb for idempotent methods instead of the default POST. +type MethodOptions_IdempotencyLevel int32 + +const ( + MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0 + MethodOptions_NO_SIDE_EFFECTS MethodOptions_IdempotencyLevel = 1 + MethodOptions_IDEMPOTENT MethodOptions_IdempotencyLevel = 2 +) + +var MethodOptions_IdempotencyLevel_name = map[int32]string{ + 0: "IDEMPOTENCY_UNKNOWN", + 1: "NO_SIDE_EFFECTS", + 2: "IDEMPOTENT", +} + +var MethodOptions_IdempotencyLevel_value = map[string]int32{ + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2, +} + +func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel { + p := new(MethodOptions_IdempotencyLevel) + *p = x + return p +} + +func (x MethodOptions_IdempotencyLevel) String() string { + return proto.EnumName(MethodOptions_IdempotencyLevel_name, int32(x)) +} + +func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(data []byte) error { + value, err := proto.UnmarshalJSONEnum(MethodOptions_IdempotencyLevel_value, data, "MethodOptions_IdempotencyLevel") + if err != nil { + return err + } + *x = MethodOptions_IdempotencyLevel(value) + return nil +} + +func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{17, 0} +} + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +type FileDescriptorSet struct { + File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileDescriptorSet) Reset() { *m = FileDescriptorSet{} } +func (m *FileDescriptorSet) String() string { return proto.CompactTextString(m) } +func (*FileDescriptorSet) ProtoMessage() {} +func (*FileDescriptorSet) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{0} +} +func (m *FileDescriptorSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileDescriptorSet.Unmarshal(m, b) +} +func (m *FileDescriptorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileDescriptorSet.Marshal(b, m, deterministic) +} +func (m *FileDescriptorSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileDescriptorSet.Merge(m, src) +} +func (m *FileDescriptorSet) XXX_Size() int { + return xxx_messageInfo_FileDescriptorSet.Size(m) +} +func (m *FileDescriptorSet) XXX_DiscardUnknown() { + xxx_messageInfo_FileDescriptorSet.DiscardUnknown(m) +} + +var xxx_messageInfo_FileDescriptorSet proto.InternalMessageInfo + +func (m *FileDescriptorSet) GetFile() []*FileDescriptorProto { + if m != nil { + return m.File + } + return nil +} + +// Describes a complete .proto file. +type FileDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` + // Names of files imported by this file. + Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` + // Indexes of the public imported files in the dependency list above. + PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"` + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"` + // All top-level definitions in this file. + MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"` + EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"` + Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` + Options *FileOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"` + // The syntax of the proto file. + // The supported values are "proto2" and "proto3". + Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileDescriptorProto) Reset() { *m = FileDescriptorProto{} } +func (m *FileDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*FileDescriptorProto) ProtoMessage() {} +func (*FileDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{1} +} +func (m *FileDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileDescriptorProto.Unmarshal(m, b) +} +func (m *FileDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileDescriptorProto.Marshal(b, m, deterministic) +} +func (m *FileDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileDescriptorProto.Merge(m, src) +} +func (m *FileDescriptorProto) XXX_Size() int { + return xxx_messageInfo_FileDescriptorProto.Size(m) +} +func (m *FileDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_FileDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_FileDescriptorProto proto.InternalMessageInfo + +func (m *FileDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *FileDescriptorProto) GetPackage() string { + if m != nil && m.Package != nil { + return *m.Package + } + return "" +} + +func (m *FileDescriptorProto) GetDependency() []string { + if m != nil { + return m.Dependency + } + return nil +} + +func (m *FileDescriptorProto) GetPublicDependency() []int32 { + if m != nil { + return m.PublicDependency + } + return nil +} + +func (m *FileDescriptorProto) GetWeakDependency() []int32 { + if m != nil { + return m.WeakDependency + } + return nil +} + +func (m *FileDescriptorProto) GetMessageType() []*DescriptorProto { + if m != nil { + return m.MessageType + } + return nil +} + +func (m *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto { + if m != nil { + return m.EnumType + } + return nil +} + +func (m *FileDescriptorProto) GetService() []*ServiceDescriptorProto { + if m != nil { + return m.Service + } + return nil +} + +func (m *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { + if m != nil { + return m.Extension + } + return nil +} + +func (m *FileDescriptorProto) GetOptions() *FileOptions { + if m != nil { + return m.Options + } + return nil +} + +func (m *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo { + if m != nil { + return m.SourceCodeInfo + } + return nil +} + +func (m *FileDescriptorProto) GetSyntax() string { + if m != nil && m.Syntax != nil { + return *m.Syntax + } + return "" +} + +// Describes a message type. +type DescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` + Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"` + NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"` + EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"` + OneofDecl []*OneofDescriptorProto `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"` + Options *MessageOptions `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"` + ReservedRange []*DescriptorProto_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DescriptorProto) Reset() { *m = DescriptorProto{} } +func (m *DescriptorProto) String() string { return proto.CompactTextString(m) } +func (*DescriptorProto) ProtoMessage() {} +func (*DescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{2} +} +func (m *DescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DescriptorProto.Unmarshal(m, b) +} +func (m *DescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DescriptorProto.Marshal(b, m, deterministic) +} +func (m *DescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_DescriptorProto.Merge(m, src) +} +func (m *DescriptorProto) XXX_Size() int { + return xxx_messageInfo_DescriptorProto.Size(m) +} +func (m *DescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_DescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_DescriptorProto proto.InternalMessageInfo + +func (m *DescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *DescriptorProto) GetField() []*FieldDescriptorProto { + if m != nil { + return m.Field + } + return nil +} + +func (m *DescriptorProto) GetExtension() []*FieldDescriptorProto { + if m != nil { + return m.Extension + } + return nil +} + +func (m *DescriptorProto) GetNestedType() []*DescriptorProto { + if m != nil { + return m.NestedType + } + return nil +} + +func (m *DescriptorProto) GetEnumType() []*EnumDescriptorProto { + if m != nil { + return m.EnumType + } + return nil +} + +func (m *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange { + if m != nil { + return m.ExtensionRange + } + return nil +} + +func (m *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto { + if m != nil { + return m.OneofDecl + } + return nil +} + +func (m *DescriptorProto) GetOptions() *MessageOptions { + if m != nil { + return m.Options + } + return nil +} + +func (m *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange { + if m != nil { + return m.ReservedRange + } + return nil +} + +func (m *DescriptorProto) GetReservedName() []string { + if m != nil { + return m.ReservedName + } + return nil +} + +type DescriptorProto_ExtensionRange struct { + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` + Options *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DescriptorProto_ExtensionRange) Reset() { *m = DescriptorProto_ExtensionRange{} } +func (m *DescriptorProto_ExtensionRange) String() string { return proto.CompactTextString(m) } +func (*DescriptorProto_ExtensionRange) ProtoMessage() {} +func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{2, 0} +} +func (m *DescriptorProto_ExtensionRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DescriptorProto_ExtensionRange.Unmarshal(m, b) +} +func (m *DescriptorProto_ExtensionRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DescriptorProto_ExtensionRange.Marshal(b, m, deterministic) +} +func (m *DescriptorProto_ExtensionRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_DescriptorProto_ExtensionRange.Merge(m, src) +} +func (m *DescriptorProto_ExtensionRange) XXX_Size() int { + return xxx_messageInfo_DescriptorProto_ExtensionRange.Size(m) +} +func (m *DescriptorProto_ExtensionRange) XXX_DiscardUnknown() { + xxx_messageInfo_DescriptorProto_ExtensionRange.DiscardUnknown(m) +} + +var xxx_messageInfo_DescriptorProto_ExtensionRange proto.InternalMessageInfo + +func (m *DescriptorProto_ExtensionRange) GetStart() int32 { + if m != nil && m.Start != nil { + return *m.Start + } + return 0 +} + +func (m *DescriptorProto_ExtensionRange) GetEnd() int32 { + if m != nil && m.End != nil { + return *m.End + } + return 0 +} + +func (m *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions { + if m != nil { + return m.Options + } + return nil +} + +// Range of reserved tag numbers. Reserved tag numbers may not be used by +// fields or extension ranges in the same message. Reserved ranges may +// not overlap. +type DescriptorProto_ReservedRange struct { + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DescriptorProto_ReservedRange) Reset() { *m = DescriptorProto_ReservedRange{} } +func (m *DescriptorProto_ReservedRange) String() string { return proto.CompactTextString(m) } +func (*DescriptorProto_ReservedRange) ProtoMessage() {} +func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{2, 1} +} +func (m *DescriptorProto_ReservedRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DescriptorProto_ReservedRange.Unmarshal(m, b) +} +func (m *DescriptorProto_ReservedRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DescriptorProto_ReservedRange.Marshal(b, m, deterministic) +} +func (m *DescriptorProto_ReservedRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_DescriptorProto_ReservedRange.Merge(m, src) +} +func (m *DescriptorProto_ReservedRange) XXX_Size() int { + return xxx_messageInfo_DescriptorProto_ReservedRange.Size(m) +} +func (m *DescriptorProto_ReservedRange) XXX_DiscardUnknown() { + xxx_messageInfo_DescriptorProto_ReservedRange.DiscardUnknown(m) +} + +var xxx_messageInfo_DescriptorProto_ReservedRange proto.InternalMessageInfo + +func (m *DescriptorProto_ReservedRange) GetStart() int32 { + if m != nil && m.Start != nil { + return *m.Start + } + return 0 +} + +func (m *DescriptorProto_ReservedRange) GetEnd() int32 { + if m != nil && m.End != nil { + return *m.End + } + return 0 +} + +type ExtensionRangeOptions struct { + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExtensionRangeOptions) Reset() { *m = ExtensionRangeOptions{} } +func (m *ExtensionRangeOptions) String() string { return proto.CompactTextString(m) } +func (*ExtensionRangeOptions) ProtoMessage() {} +func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{3} +} + +var extRange_ExtensionRangeOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*ExtensionRangeOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_ExtensionRangeOptions +} + +func (m *ExtensionRangeOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExtensionRangeOptions.Unmarshal(m, b) +} +func (m *ExtensionRangeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExtensionRangeOptions.Marshal(b, m, deterministic) +} +func (m *ExtensionRangeOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExtensionRangeOptions.Merge(m, src) +} +func (m *ExtensionRangeOptions) XXX_Size() int { + return xxx_messageInfo_ExtensionRangeOptions.Size(m) +} +func (m *ExtensionRangeOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ExtensionRangeOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ExtensionRangeOptions proto.InternalMessageInfo + +func (m *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +// Describes a field within a message. +type FieldDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Number *int32 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"` + Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"` + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"` + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"` + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"` + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + // TODO(kenton): Base-64 encode? + DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"` + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"` + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + JsonName *string `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"` + Options *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldDescriptorProto) Reset() { *m = FieldDescriptorProto{} } +func (m *FieldDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*FieldDescriptorProto) ProtoMessage() {} +func (*FieldDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{4} +} +func (m *FieldDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldDescriptorProto.Unmarshal(m, b) +} +func (m *FieldDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldDescriptorProto.Marshal(b, m, deterministic) +} +func (m *FieldDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldDescriptorProto.Merge(m, src) +} +func (m *FieldDescriptorProto) XXX_Size() int { + return xxx_messageInfo_FieldDescriptorProto.Size(m) +} +func (m *FieldDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_FieldDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldDescriptorProto proto.InternalMessageInfo + +func (m *FieldDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *FieldDescriptorProto) GetNumber() int32 { + if m != nil && m.Number != nil { + return *m.Number + } + return 0 +} + +func (m *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label { + if m != nil && m.Label != nil { + return *m.Label + } + return FieldDescriptorProto_LABEL_OPTIONAL +} + +func (m *FieldDescriptorProto) GetType() FieldDescriptorProto_Type { + if m != nil && m.Type != nil { + return *m.Type + } + return FieldDescriptorProto_TYPE_DOUBLE +} + +func (m *FieldDescriptorProto) GetTypeName() string { + if m != nil && m.TypeName != nil { + return *m.TypeName + } + return "" +} + +func (m *FieldDescriptorProto) GetExtendee() string { + if m != nil && m.Extendee != nil { + return *m.Extendee + } + return "" +} + +func (m *FieldDescriptorProto) GetDefaultValue() string { + if m != nil && m.DefaultValue != nil { + return *m.DefaultValue + } + return "" +} + +func (m *FieldDescriptorProto) GetOneofIndex() int32 { + if m != nil && m.OneofIndex != nil { + return *m.OneofIndex + } + return 0 +} + +func (m *FieldDescriptorProto) GetJsonName() string { + if m != nil && m.JsonName != nil { + return *m.JsonName + } + return "" +} + +func (m *FieldDescriptorProto) GetOptions() *FieldOptions { + if m != nil { + return m.Options + } + return nil +} + +// Describes a oneof. +type OneofDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OneofDescriptorProto) Reset() { *m = OneofDescriptorProto{} } +func (m *OneofDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*OneofDescriptorProto) ProtoMessage() {} +func (*OneofDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{5} +} +func (m *OneofDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OneofDescriptorProto.Unmarshal(m, b) +} +func (m *OneofDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OneofDescriptorProto.Marshal(b, m, deterministic) +} +func (m *OneofDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_OneofDescriptorProto.Merge(m, src) +} +func (m *OneofDescriptorProto) XXX_Size() int { + return xxx_messageInfo_OneofDescriptorProto.Size(m) +} +func (m *OneofDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_OneofDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_OneofDescriptorProto proto.InternalMessageInfo + +func (m *OneofDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *OneofDescriptorProto) GetOptions() *OneofOptions { + if m != nil { + return m.Options + } + return nil +} + +// Describes an enum type. +type EnumDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` + Options *EnumOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` + // Range of reserved numeric values. Reserved numeric values may not be used + // by enum values in the same enum declaration. Reserved ranges may not + // overlap. + ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` + // Reserved enum value names, which may not be reused. A given name may only + // be reserved once. + ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumDescriptorProto) Reset() { *m = EnumDescriptorProto{} } +func (m *EnumDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*EnumDescriptorProto) ProtoMessage() {} +func (*EnumDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{6} +} +func (m *EnumDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumDescriptorProto.Unmarshal(m, b) +} +func (m *EnumDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumDescriptorProto.Marshal(b, m, deterministic) +} +func (m *EnumDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumDescriptorProto.Merge(m, src) +} +func (m *EnumDescriptorProto) XXX_Size() int { + return xxx_messageInfo_EnumDescriptorProto.Size(m) +} +func (m *EnumDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_EnumDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumDescriptorProto proto.InternalMessageInfo + +func (m *EnumDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto { + if m != nil { + return m.Value + } + return nil +} + +func (m *EnumDescriptorProto) GetOptions() *EnumOptions { + if m != nil { + return m.Options + } + return nil +} + +func (m *EnumDescriptorProto) GetReservedRange() []*EnumDescriptorProto_EnumReservedRange { + if m != nil { + return m.ReservedRange + } + return nil +} + +func (m *EnumDescriptorProto) GetReservedName() []string { + if m != nil { + return m.ReservedName + } + return nil +} + +// Range of reserved numeric values. Reserved values may not be used by +// entries in the same enum. Reserved ranges may not overlap. +// +// Note that this is distinct from DescriptorProto.ReservedRange in that it +// is inclusive such that it can appropriately represent the entire int32 +// domain. +type EnumDescriptorProto_EnumReservedRange struct { + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumDescriptorProto_EnumReservedRange) Reset() { *m = EnumDescriptorProto_EnumReservedRange{} } +func (m *EnumDescriptorProto_EnumReservedRange) String() string { return proto.CompactTextString(m) } +func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage() {} +func (*EnumDescriptorProto_EnumReservedRange) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{6, 0} +} +func (m *EnumDescriptorProto_EnumReservedRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Unmarshal(m, b) +} +func (m *EnumDescriptorProto_EnumReservedRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Marshal(b, m, deterministic) +} +func (m *EnumDescriptorProto_EnumReservedRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Merge(m, src) +} +func (m *EnumDescriptorProto_EnumReservedRange) XXX_Size() int { + return xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.Size(m) +} +func (m *EnumDescriptorProto_EnumReservedRange) XXX_DiscardUnknown() { + xxx_messageInfo_EnumDescriptorProto_EnumReservedRange.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumDescriptorProto_EnumReservedRange proto.InternalMessageInfo + +func (m *EnumDescriptorProto_EnumReservedRange) GetStart() int32 { + if m != nil && m.Start != nil { + return *m.Start + } + return 0 +} + +func (m *EnumDescriptorProto_EnumReservedRange) GetEnd() int32 { + if m != nil && m.End != nil { + return *m.End + } + return 0 +} + +// Describes a value within an enum. +type EnumValueDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Number *int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"` + Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumValueDescriptorProto) Reset() { *m = EnumValueDescriptorProto{} } +func (m *EnumValueDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*EnumValueDescriptorProto) ProtoMessage() {} +func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{7} +} +func (m *EnumValueDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumValueDescriptorProto.Unmarshal(m, b) +} +func (m *EnumValueDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumValueDescriptorProto.Marshal(b, m, deterministic) +} +func (m *EnumValueDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumValueDescriptorProto.Merge(m, src) +} +func (m *EnumValueDescriptorProto) XXX_Size() int { + return xxx_messageInfo_EnumValueDescriptorProto.Size(m) +} +func (m *EnumValueDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_EnumValueDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumValueDescriptorProto proto.InternalMessageInfo + +func (m *EnumValueDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *EnumValueDescriptorProto) GetNumber() int32 { + if m != nil && m.Number != nil { + return *m.Number + } + return 0 +} + +func (m *EnumValueDescriptorProto) GetOptions() *EnumValueOptions { + if m != nil { + return m.Options + } + return nil +} + +// Describes a service. +type ServiceDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"` + Options *ServiceOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServiceDescriptorProto) Reset() { *m = ServiceDescriptorProto{} } +func (m *ServiceDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*ServiceDescriptorProto) ProtoMessage() {} +func (*ServiceDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{8} +} +func (m *ServiceDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ServiceDescriptorProto.Unmarshal(m, b) +} +func (m *ServiceDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ServiceDescriptorProto.Marshal(b, m, deterministic) +} +func (m *ServiceDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServiceDescriptorProto.Merge(m, src) +} +func (m *ServiceDescriptorProto) XXX_Size() int { + return xxx_messageInfo_ServiceDescriptorProto.Size(m) +} +func (m *ServiceDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_ServiceDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_ServiceDescriptorProto proto.InternalMessageInfo + +func (m *ServiceDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto { + if m != nil { + return m.Method + } + return nil +} + +func (m *ServiceDescriptorProto) GetOptions() *ServiceOptions { + if m != nil { + return m.Options + } + return nil +} + +// Describes a method of a service. +type MethodDescriptorProto struct { + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + InputType *string `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"` + OutputType *string `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"` + Options *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"` + // Identifies if client streams multiple client messages + ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"` + // Identifies if server streams multiple server messages + ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MethodDescriptorProto) Reset() { *m = MethodDescriptorProto{} } +func (m *MethodDescriptorProto) String() string { return proto.CompactTextString(m) } +func (*MethodDescriptorProto) ProtoMessage() {} +func (*MethodDescriptorProto) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{9} +} +func (m *MethodDescriptorProto) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MethodDescriptorProto.Unmarshal(m, b) +} +func (m *MethodDescriptorProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MethodDescriptorProto.Marshal(b, m, deterministic) +} +func (m *MethodDescriptorProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_MethodDescriptorProto.Merge(m, src) +} +func (m *MethodDescriptorProto) XXX_Size() int { + return xxx_messageInfo_MethodDescriptorProto.Size(m) +} +func (m *MethodDescriptorProto) XXX_DiscardUnknown() { + xxx_messageInfo_MethodDescriptorProto.DiscardUnknown(m) +} + +var xxx_messageInfo_MethodDescriptorProto proto.InternalMessageInfo + +const Default_MethodDescriptorProto_ClientStreaming bool = false +const Default_MethodDescriptorProto_ServerStreaming bool = false + +func (m *MethodDescriptorProto) GetName() string { + if m != nil && m.Name != nil { + return *m.Name + } + return "" +} + +func (m *MethodDescriptorProto) GetInputType() string { + if m != nil && m.InputType != nil { + return *m.InputType + } + return "" +} + +func (m *MethodDescriptorProto) GetOutputType() string { + if m != nil && m.OutputType != nil { + return *m.OutputType + } + return "" +} + +func (m *MethodDescriptorProto) GetOptions() *MethodOptions { + if m != nil { + return m.Options + } + return nil +} + +func (m *MethodDescriptorProto) GetClientStreaming() bool { + if m != nil && m.ClientStreaming != nil { + return *m.ClientStreaming + } + return Default_MethodDescriptorProto_ClientStreaming +} + +func (m *MethodDescriptorProto) GetServerStreaming() bool { + if m != nil && m.ServerStreaming != nil { + return *m.ServerStreaming + } + return Default_MethodDescriptorProto_ServerStreaming +} + +type FileOptions struct { + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"` + // If set, all the classes from the .proto file are wrapped in a single + // outer class with the given name. This applies to both Proto1 + // (equivalent to the old "--one_java_file" option) and Proto2 (where + // a .proto always translates to a single class, but you may want to + // explicitly choose the class name). + JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"` + // If set true, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the outer class + // named by java_outer_classname. However, the outer class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"` + // This option does nothing. + JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` // Deprecated: Do not use. + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + JavaStringCheckUtf8 *bool `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"` + OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"` + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"` + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"` + JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"` + PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"` + PhpGenericServices *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"` + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=0" json:"cc_enable_arenas,omitempty"` + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"` + // Namespace for generated classes; defaults to the package. + CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"` + // By default Swift generators will take the proto package and CamelCase it + // replacing '.' with underscore and use that to prefix the types/symbols + // defined. When this options is provided, they will use this value instead + // to prefix the types/symbols defined. + SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"` + // Sets the php class prefix which is prepended to all php generated classes + // from this .proto. Default is empty. + PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"` + // Use this option to change the namespace of php generated classes. Default + // is empty. When this option is empty, the package name will be used for + // determining the namespace. + PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"` + // Use this option to change the namespace of php generated metadata classes. + // Default is empty. When this option is empty, the proto file name will be + // used for determining the namespace. + PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"` + // Use this option to change the package of ruby generated classes. Default + // is empty. When this option is not set, the package name will be used for + // determining the ruby package. + RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"` + // The parser stores options it doesn't recognize here. + // See the documentation for the "Options" section above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FileOptions) Reset() { *m = FileOptions{} } +func (m *FileOptions) String() string { return proto.CompactTextString(m) } +func (*FileOptions) ProtoMessage() {} +func (*FileOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{10} +} + +var extRange_FileOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*FileOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_FileOptions +} + +func (m *FileOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FileOptions.Unmarshal(m, b) +} +func (m *FileOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FileOptions.Marshal(b, m, deterministic) +} +func (m *FileOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_FileOptions.Merge(m, src) +} +func (m *FileOptions) XXX_Size() int { + return xxx_messageInfo_FileOptions.Size(m) +} +func (m *FileOptions) XXX_DiscardUnknown() { + xxx_messageInfo_FileOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_FileOptions proto.InternalMessageInfo + +const Default_FileOptions_JavaMultipleFiles bool = false +const Default_FileOptions_JavaStringCheckUtf8 bool = false +const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED +const Default_FileOptions_CcGenericServices bool = false +const Default_FileOptions_JavaGenericServices bool = false +const Default_FileOptions_PyGenericServices bool = false +const Default_FileOptions_PhpGenericServices bool = false +const Default_FileOptions_Deprecated bool = false +const Default_FileOptions_CcEnableArenas bool = false + +func (m *FileOptions) GetJavaPackage() string { + if m != nil && m.JavaPackage != nil { + return *m.JavaPackage + } + return "" +} + +func (m *FileOptions) GetJavaOuterClassname() string { + if m != nil && m.JavaOuterClassname != nil { + return *m.JavaOuterClassname + } + return "" +} + +func (m *FileOptions) GetJavaMultipleFiles() bool { + if m != nil && m.JavaMultipleFiles != nil { + return *m.JavaMultipleFiles + } + return Default_FileOptions_JavaMultipleFiles +} + +// Deprecated: Do not use. +func (m *FileOptions) GetJavaGenerateEqualsAndHash() bool { + if m != nil && m.JavaGenerateEqualsAndHash != nil { + return *m.JavaGenerateEqualsAndHash + } + return false +} + +func (m *FileOptions) GetJavaStringCheckUtf8() bool { + if m != nil && m.JavaStringCheckUtf8 != nil { + return *m.JavaStringCheckUtf8 + } + return Default_FileOptions_JavaStringCheckUtf8 +} + +func (m *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode { + if m != nil && m.OptimizeFor != nil { + return *m.OptimizeFor + } + return Default_FileOptions_OptimizeFor +} + +func (m *FileOptions) GetGoPackage() string { + if m != nil && m.GoPackage != nil { + return *m.GoPackage + } + return "" +} + +func (m *FileOptions) GetCcGenericServices() bool { + if m != nil && m.CcGenericServices != nil { + return *m.CcGenericServices + } + return Default_FileOptions_CcGenericServices +} + +func (m *FileOptions) GetJavaGenericServices() bool { + if m != nil && m.JavaGenericServices != nil { + return *m.JavaGenericServices + } + return Default_FileOptions_JavaGenericServices +} + +func (m *FileOptions) GetPyGenericServices() bool { + if m != nil && m.PyGenericServices != nil { + return *m.PyGenericServices + } + return Default_FileOptions_PyGenericServices +} + +func (m *FileOptions) GetPhpGenericServices() bool { + if m != nil && m.PhpGenericServices != nil { + return *m.PhpGenericServices + } + return Default_FileOptions_PhpGenericServices +} + +func (m *FileOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_FileOptions_Deprecated +} + +func (m *FileOptions) GetCcEnableArenas() bool { + if m != nil && m.CcEnableArenas != nil { + return *m.CcEnableArenas + } + return Default_FileOptions_CcEnableArenas +} + +func (m *FileOptions) GetObjcClassPrefix() string { + if m != nil && m.ObjcClassPrefix != nil { + return *m.ObjcClassPrefix + } + return "" +} + +func (m *FileOptions) GetCsharpNamespace() string { + if m != nil && m.CsharpNamespace != nil { + return *m.CsharpNamespace + } + return "" +} + +func (m *FileOptions) GetSwiftPrefix() string { + if m != nil && m.SwiftPrefix != nil { + return *m.SwiftPrefix + } + return "" +} + +func (m *FileOptions) GetPhpClassPrefix() string { + if m != nil && m.PhpClassPrefix != nil { + return *m.PhpClassPrefix + } + return "" +} + +func (m *FileOptions) GetPhpNamespace() string { + if m != nil && m.PhpNamespace != nil { + return *m.PhpNamespace + } + return "" +} + +func (m *FileOptions) GetPhpMetadataNamespace() string { + if m != nil && m.PhpMetadataNamespace != nil { + return *m.PhpMetadataNamespace + } + return "" +} + +func (m *FileOptions) GetRubyPackage() string { + if m != nil && m.RubyPackage != nil { + return *m.RubyPackage + } + return "" +} + +func (m *FileOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type MessageOptions struct { + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"` + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,json=noStandardDescriptorAccessor,def=0" json:"no_standard_descriptor_accessor,omitempty"` + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // map map_field = 1; + // The parsed descriptor looks like: + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementations still need to work as + // if the field is a repeated message field. + // + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MessageOptions) Reset() { *m = MessageOptions{} } +func (m *MessageOptions) String() string { return proto.CompactTextString(m) } +func (*MessageOptions) ProtoMessage() {} +func (*MessageOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{11} +} + +var extRange_MessageOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*MessageOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_MessageOptions +} + +func (m *MessageOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MessageOptions.Unmarshal(m, b) +} +func (m *MessageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MessageOptions.Marshal(b, m, deterministic) +} +func (m *MessageOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_MessageOptions.Merge(m, src) +} +func (m *MessageOptions) XXX_Size() int { + return xxx_messageInfo_MessageOptions.Size(m) +} +func (m *MessageOptions) XXX_DiscardUnknown() { + xxx_messageInfo_MessageOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_MessageOptions proto.InternalMessageInfo + +const Default_MessageOptions_MessageSetWireFormat bool = false +const Default_MessageOptions_NoStandardDescriptorAccessor bool = false +const Default_MessageOptions_Deprecated bool = false + +func (m *MessageOptions) GetMessageSetWireFormat() bool { + if m != nil && m.MessageSetWireFormat != nil { + return *m.MessageSetWireFormat + } + return Default_MessageOptions_MessageSetWireFormat +} + +func (m *MessageOptions) GetNoStandardDescriptorAccessor() bool { + if m != nil && m.NoStandardDescriptorAccessor != nil { + return *m.NoStandardDescriptorAccessor + } + return Default_MessageOptions_NoStandardDescriptorAccessor +} + +func (m *MessageOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_MessageOptions_Deprecated +} + +func (m *MessageOptions) GetMapEntry() bool { + if m != nil && m.MapEntry != nil { + return *m.MapEntry + } + return false +} + +func (m *MessageOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type FieldOptions struct { + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is not yet implemented in the open source + // release -- sorry, we'll try to include it in a future version! + Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"` + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"` + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + // is represented as JavaScript string, which avoids loss of precision that + // can happen when a large value is converted to a floating point JavaScript. + // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + // use the JavaScript "number" type. The behavior of the default option + // JS_NORMAL is implementation dependent. + // + // This option is an enum to permit additional types to be added, e.g. + // goog.math.Integer. + Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"` + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outer message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"` + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // For Google-internal migration only. Do not use. + Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldOptions) Reset() { *m = FieldOptions{} } +func (m *FieldOptions) String() string { return proto.CompactTextString(m) } +func (*FieldOptions) ProtoMessage() {} +func (*FieldOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{12} +} + +var extRange_FieldOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*FieldOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_FieldOptions +} + +func (m *FieldOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldOptions.Unmarshal(m, b) +} +func (m *FieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldOptions.Marshal(b, m, deterministic) +} +func (m *FieldOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldOptions.Merge(m, src) +} +func (m *FieldOptions) XXX_Size() int { + return xxx_messageInfo_FieldOptions.Size(m) +} +func (m *FieldOptions) XXX_DiscardUnknown() { + xxx_messageInfo_FieldOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldOptions proto.InternalMessageInfo + +const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING +const Default_FieldOptions_Jstype FieldOptions_JSType = FieldOptions_JS_NORMAL +const Default_FieldOptions_Lazy bool = false +const Default_FieldOptions_Deprecated bool = false +const Default_FieldOptions_Weak bool = false + +func (m *FieldOptions) GetCtype() FieldOptions_CType { + if m != nil && m.Ctype != nil { + return *m.Ctype + } + return Default_FieldOptions_Ctype +} + +func (m *FieldOptions) GetPacked() bool { + if m != nil && m.Packed != nil { + return *m.Packed + } + return false +} + +func (m *FieldOptions) GetJstype() FieldOptions_JSType { + if m != nil && m.Jstype != nil { + return *m.Jstype + } + return Default_FieldOptions_Jstype +} + +func (m *FieldOptions) GetLazy() bool { + if m != nil && m.Lazy != nil { + return *m.Lazy + } + return Default_FieldOptions_Lazy +} + +func (m *FieldOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_FieldOptions_Deprecated +} + +func (m *FieldOptions) GetWeak() bool { + if m != nil && m.Weak != nil { + return *m.Weak + } + return Default_FieldOptions_Weak +} + +func (m *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type OneofOptions struct { + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OneofOptions) Reset() { *m = OneofOptions{} } +func (m *OneofOptions) String() string { return proto.CompactTextString(m) } +func (*OneofOptions) ProtoMessage() {} +func (*OneofOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{13} +} + +var extRange_OneofOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*OneofOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_OneofOptions +} + +func (m *OneofOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OneofOptions.Unmarshal(m, b) +} +func (m *OneofOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OneofOptions.Marshal(b, m, deterministic) +} +func (m *OneofOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_OneofOptions.Merge(m, src) +} +func (m *OneofOptions) XXX_Size() int { + return xxx_messageInfo_OneofOptions.Size(m) +} +func (m *OneofOptions) XXX_DiscardUnknown() { + xxx_messageInfo_OneofOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_OneofOptions proto.InternalMessageInfo + +func (m *OneofOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type EnumOptions struct { + // Set this option to true to allow mapping different tag names to the same + // value. + AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"` + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumOptions) Reset() { *m = EnumOptions{} } +func (m *EnumOptions) String() string { return proto.CompactTextString(m) } +func (*EnumOptions) ProtoMessage() {} +func (*EnumOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{14} +} + +var extRange_EnumOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*EnumOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_EnumOptions +} + +func (m *EnumOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumOptions.Unmarshal(m, b) +} +func (m *EnumOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumOptions.Marshal(b, m, deterministic) +} +func (m *EnumOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumOptions.Merge(m, src) +} +func (m *EnumOptions) XXX_Size() int { + return xxx_messageInfo_EnumOptions.Size(m) +} +func (m *EnumOptions) XXX_DiscardUnknown() { + xxx_messageInfo_EnumOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumOptions proto.InternalMessageInfo + +const Default_EnumOptions_Deprecated bool = false + +func (m *EnumOptions) GetAllowAlias() bool { + if m != nil && m.AllowAlias != nil { + return *m.AllowAlias + } + return false +} + +func (m *EnumOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_EnumOptions_Deprecated +} + +func (m *EnumOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type EnumValueOptions struct { + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumValueOptions) Reset() { *m = EnumValueOptions{} } +func (m *EnumValueOptions) String() string { return proto.CompactTextString(m) } +func (*EnumValueOptions) ProtoMessage() {} +func (*EnumValueOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{15} +} + +var extRange_EnumValueOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*EnumValueOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_EnumValueOptions +} + +func (m *EnumValueOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumValueOptions.Unmarshal(m, b) +} +func (m *EnumValueOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumValueOptions.Marshal(b, m, deterministic) +} +func (m *EnumValueOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumValueOptions.Merge(m, src) +} +func (m *EnumValueOptions) XXX_Size() int { + return xxx_messageInfo_EnumValueOptions.Size(m) +} +func (m *EnumValueOptions) XXX_DiscardUnknown() { + xxx_messageInfo_EnumValueOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumValueOptions proto.InternalMessageInfo + +const Default_EnumValueOptions_Deprecated bool = false + +func (m *EnumValueOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_EnumValueOptions_Deprecated +} + +func (m *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type ServiceOptions struct { + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ServiceOptions) Reset() { *m = ServiceOptions{} } +func (m *ServiceOptions) String() string { return proto.CompactTextString(m) } +func (*ServiceOptions) ProtoMessage() {} +func (*ServiceOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{16} +} + +var extRange_ServiceOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*ServiceOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_ServiceOptions +} + +func (m *ServiceOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ServiceOptions.Unmarshal(m, b) +} +func (m *ServiceOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ServiceOptions.Marshal(b, m, deterministic) +} +func (m *ServiceOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ServiceOptions.Merge(m, src) +} +func (m *ServiceOptions) XXX_Size() int { + return xxx_messageInfo_ServiceOptions.Size(m) +} +func (m *ServiceOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ServiceOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ServiceOptions proto.InternalMessageInfo + +const Default_ServiceOptions_Deprecated bool = false + +func (m *ServiceOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_ServiceOptions_Deprecated +} + +func (m *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +type MethodOptions struct { + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + proto.XXX_InternalExtensions `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MethodOptions) Reset() { *m = MethodOptions{} } +func (m *MethodOptions) String() string { return proto.CompactTextString(m) } +func (*MethodOptions) ProtoMessage() {} +func (*MethodOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{17} +} + +var extRange_MethodOptions = []proto.ExtensionRange{ + {Start: 1000, End: 536870911}, +} + +func (*MethodOptions) ExtensionRangeArray() []proto.ExtensionRange { + return extRange_MethodOptions +} + +func (m *MethodOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MethodOptions.Unmarshal(m, b) +} +func (m *MethodOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MethodOptions.Marshal(b, m, deterministic) +} +func (m *MethodOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_MethodOptions.Merge(m, src) +} +func (m *MethodOptions) XXX_Size() int { + return xxx_messageInfo_MethodOptions.Size(m) +} +func (m *MethodOptions) XXX_DiscardUnknown() { + xxx_messageInfo_MethodOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_MethodOptions proto.InternalMessageInfo + +const Default_MethodOptions_Deprecated bool = false +const Default_MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN + +func (m *MethodOptions) GetDeprecated() bool { + if m != nil && m.Deprecated != nil { + return *m.Deprecated + } + return Default_MethodOptions_Deprecated +} + +func (m *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel { + if m != nil && m.IdempotencyLevel != nil { + return *m.IdempotencyLevel + } + return Default_MethodOptions_IdempotencyLevel +} + +func (m *MethodOptions) GetUninterpretedOption() []*UninterpretedOption { + if m != nil { + return m.UninterpretedOption + } + return nil +} + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +type UninterpretedOption struct { + Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"` + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"` + PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"` + NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"` + DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"` + StringValue []byte `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` + AggregateValue *string `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UninterpretedOption) Reset() { *m = UninterpretedOption{} } +func (m *UninterpretedOption) String() string { return proto.CompactTextString(m) } +func (*UninterpretedOption) ProtoMessage() {} +func (*UninterpretedOption) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{18} +} +func (m *UninterpretedOption) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UninterpretedOption.Unmarshal(m, b) +} +func (m *UninterpretedOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UninterpretedOption.Marshal(b, m, deterministic) +} +func (m *UninterpretedOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_UninterpretedOption.Merge(m, src) +} +func (m *UninterpretedOption) XXX_Size() int { + return xxx_messageInfo_UninterpretedOption.Size(m) +} +func (m *UninterpretedOption) XXX_DiscardUnknown() { + xxx_messageInfo_UninterpretedOption.DiscardUnknown(m) +} + +var xxx_messageInfo_UninterpretedOption proto.InternalMessageInfo + +func (m *UninterpretedOption) GetName() []*UninterpretedOption_NamePart { + if m != nil { + return m.Name + } + return nil +} + +func (m *UninterpretedOption) GetIdentifierValue() string { + if m != nil && m.IdentifierValue != nil { + return *m.IdentifierValue + } + return "" +} + +func (m *UninterpretedOption) GetPositiveIntValue() uint64 { + if m != nil && m.PositiveIntValue != nil { + return *m.PositiveIntValue + } + return 0 +} + +func (m *UninterpretedOption) GetNegativeIntValue() int64 { + if m != nil && m.NegativeIntValue != nil { + return *m.NegativeIntValue + } + return 0 +} + +func (m *UninterpretedOption) GetDoubleValue() float64 { + if m != nil && m.DoubleValue != nil { + return *m.DoubleValue + } + return 0 +} + +func (m *UninterpretedOption) GetStringValue() []byte { + if m != nil { + return m.StringValue + } + return nil +} + +func (m *UninterpretedOption) GetAggregateValue() string { + if m != nil && m.AggregateValue != nil { + return *m.AggregateValue + } + return "" +} + +// The name of the uninterpreted option. Each string represents a segment in +// a dot-separated name. is_extension is true iff a segment represents an +// extension (denoted with parentheses in options specs in .proto files). +// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents +// "foo.(bar.baz).qux". +type UninterpretedOption_NamePart struct { + NamePart *string `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"` + IsExtension *bool `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UninterpretedOption_NamePart) Reset() { *m = UninterpretedOption_NamePart{} } +func (m *UninterpretedOption_NamePart) String() string { return proto.CompactTextString(m) } +func (*UninterpretedOption_NamePart) ProtoMessage() {} +func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{18, 0} +} +func (m *UninterpretedOption_NamePart) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UninterpretedOption_NamePart.Unmarshal(m, b) +} +func (m *UninterpretedOption_NamePart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UninterpretedOption_NamePart.Marshal(b, m, deterministic) +} +func (m *UninterpretedOption_NamePart) XXX_Merge(src proto.Message) { + xxx_messageInfo_UninterpretedOption_NamePart.Merge(m, src) +} +func (m *UninterpretedOption_NamePart) XXX_Size() int { + return xxx_messageInfo_UninterpretedOption_NamePart.Size(m) +} +func (m *UninterpretedOption_NamePart) XXX_DiscardUnknown() { + xxx_messageInfo_UninterpretedOption_NamePart.DiscardUnknown(m) +} + +var xxx_messageInfo_UninterpretedOption_NamePart proto.InternalMessageInfo + +func (m *UninterpretedOption_NamePart) GetNamePart() string { + if m != nil && m.NamePart != nil { + return *m.NamePart + } + return "" +} + +func (m *UninterpretedOption_NamePart) GetIsExtension() bool { + if m != nil && m.IsExtension != nil { + return *m.IsExtension + } + return false +} + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +type SourceCodeInfo struct { + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // message Foo { + // optional string foo = 1; + // } + // Let's look at just the field definition: + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // We have the following locations: + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendant. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + Location []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SourceCodeInfo) Reset() { *m = SourceCodeInfo{} } +func (m *SourceCodeInfo) String() string { return proto.CompactTextString(m) } +func (*SourceCodeInfo) ProtoMessage() {} +func (*SourceCodeInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{19} +} +func (m *SourceCodeInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SourceCodeInfo.Unmarshal(m, b) +} +func (m *SourceCodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SourceCodeInfo.Marshal(b, m, deterministic) +} +func (m *SourceCodeInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourceCodeInfo.Merge(m, src) +} +func (m *SourceCodeInfo) XXX_Size() int { + return xxx_messageInfo_SourceCodeInfo.Size(m) +} +func (m *SourceCodeInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SourceCodeInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SourceCodeInfo proto.InternalMessageInfo + +func (m *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location { + if m != nil { + return m.Location + } + return nil +} + +type SourceCodeInfo_Location struct { + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition. For + // example, this path: + // [ 4, 3, 2, 7, 1 ] + // refers to: + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // This is because FileDescriptorProto.message_type has field number 4: + // repeated DescriptorProto message_type = 4; + // and DescriptorProto.field has field number 2: + // repeated FieldDescriptorProto field = 2; + // and FieldDescriptorProto.name has field number 1: + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // [ 4, 3, 2, 7 ] + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"` + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to qux. + // // + // // Another line attached to qux. + // optional double qux = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to qux or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + LeadingComments *string `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"` + TrailingComments *string `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"` + LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SourceCodeInfo_Location) Reset() { *m = SourceCodeInfo_Location{} } +func (m *SourceCodeInfo_Location) String() string { return proto.CompactTextString(m) } +func (*SourceCodeInfo_Location) ProtoMessage() {} +func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{19, 0} +} +func (m *SourceCodeInfo_Location) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SourceCodeInfo_Location.Unmarshal(m, b) +} +func (m *SourceCodeInfo_Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SourceCodeInfo_Location.Marshal(b, m, deterministic) +} +func (m *SourceCodeInfo_Location) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourceCodeInfo_Location.Merge(m, src) +} +func (m *SourceCodeInfo_Location) XXX_Size() int { + return xxx_messageInfo_SourceCodeInfo_Location.Size(m) +} +func (m *SourceCodeInfo_Location) XXX_DiscardUnknown() { + xxx_messageInfo_SourceCodeInfo_Location.DiscardUnknown(m) +} + +var xxx_messageInfo_SourceCodeInfo_Location proto.InternalMessageInfo + +func (m *SourceCodeInfo_Location) GetPath() []int32 { + if m != nil { + return m.Path + } + return nil +} + +func (m *SourceCodeInfo_Location) GetSpan() []int32 { + if m != nil { + return m.Span + } + return nil +} + +func (m *SourceCodeInfo_Location) GetLeadingComments() string { + if m != nil && m.LeadingComments != nil { + return *m.LeadingComments + } + return "" +} + +func (m *SourceCodeInfo_Location) GetTrailingComments() string { + if m != nil && m.TrailingComments != nil { + return *m.TrailingComments + } + return "" +} + +func (m *SourceCodeInfo_Location) GetLeadingDetachedComments() []string { + if m != nil { + return m.LeadingDetachedComments + } + return nil +} + +// Describes the relationship between generated code and its original source +// file. A GeneratedCodeInfo message is associated with only one generated +// source file, but may contain references to different source .proto files. +type GeneratedCodeInfo struct { + // An Annotation connects some span of text in generated code to an element + // of its generating .proto file. + Annotation []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GeneratedCodeInfo) Reset() { *m = GeneratedCodeInfo{} } +func (m *GeneratedCodeInfo) String() string { return proto.CompactTextString(m) } +func (*GeneratedCodeInfo) ProtoMessage() {} +func (*GeneratedCodeInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{20} +} +func (m *GeneratedCodeInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GeneratedCodeInfo.Unmarshal(m, b) +} +func (m *GeneratedCodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GeneratedCodeInfo.Marshal(b, m, deterministic) +} +func (m *GeneratedCodeInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneratedCodeInfo.Merge(m, src) +} +func (m *GeneratedCodeInfo) XXX_Size() int { + return xxx_messageInfo_GeneratedCodeInfo.Size(m) +} +func (m *GeneratedCodeInfo) XXX_DiscardUnknown() { + xxx_messageInfo_GeneratedCodeInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_GeneratedCodeInfo proto.InternalMessageInfo + +func (m *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation { + if m != nil { + return m.Annotation + } + return nil +} + +type GeneratedCodeInfo_Annotation struct { + // Identifies the element in the original source .proto file. This field + // is formatted the same as SourceCodeInfo.Location.path. + Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` + // Identifies the filesystem path to the original source .proto. + SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"` + // Identifies the starting offset in bytes in the generated code + // that relates to the identified object. + Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"` + // Identifies the ending offset in bytes in the generated code that + // relates to the identified offset. The end offset should be one past + // the last relevant byte (so the length of the text = end - begin). + End *int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GeneratedCodeInfo_Annotation) Reset() { *m = GeneratedCodeInfo_Annotation{} } +func (m *GeneratedCodeInfo_Annotation) String() string { return proto.CompactTextString(m) } +func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} +func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int) { + return fileDescriptor_308767df5ffe18af, []int{20, 0} +} +func (m *GeneratedCodeInfo_Annotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GeneratedCodeInfo_Annotation.Unmarshal(m, b) +} +func (m *GeneratedCodeInfo_Annotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GeneratedCodeInfo_Annotation.Marshal(b, m, deterministic) +} +func (m *GeneratedCodeInfo_Annotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneratedCodeInfo_Annotation.Merge(m, src) +} +func (m *GeneratedCodeInfo_Annotation) XXX_Size() int { + return xxx_messageInfo_GeneratedCodeInfo_Annotation.Size(m) +} +func (m *GeneratedCodeInfo_Annotation) XXX_DiscardUnknown() { + xxx_messageInfo_GeneratedCodeInfo_Annotation.DiscardUnknown(m) +} + +var xxx_messageInfo_GeneratedCodeInfo_Annotation proto.InternalMessageInfo + +func (m *GeneratedCodeInfo_Annotation) GetPath() []int32 { + if m != nil { + return m.Path + } + return nil +} + +func (m *GeneratedCodeInfo_Annotation) GetSourceFile() string { + if m != nil && m.SourceFile != nil { + return *m.SourceFile + } + return "" +} + +func (m *GeneratedCodeInfo_Annotation) GetBegin() int32 { + if m != nil && m.Begin != nil { + return *m.Begin + } + return 0 +} + +func (m *GeneratedCodeInfo_Annotation) GetEnd() int32 { + if m != nil && m.End != nil { + return *m.End + } + return 0 +} + +func init() { + proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value) + proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value) + proto.RegisterEnum("google.protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value) + proto.RegisterEnum("google.protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value) + proto.RegisterEnum("google.protobuf.FieldOptions_JSType", FieldOptions_JSType_name, FieldOptions_JSType_value) + proto.RegisterEnum("google.protobuf.MethodOptions_IdempotencyLevel", MethodOptions_IdempotencyLevel_name, MethodOptions_IdempotencyLevel_value) + proto.RegisterType((*FileDescriptorSet)(nil), "google.protobuf.FileDescriptorSet") + proto.RegisterType((*FileDescriptorProto)(nil), "google.protobuf.FileDescriptorProto") + proto.RegisterType((*DescriptorProto)(nil), "google.protobuf.DescriptorProto") + proto.RegisterType((*DescriptorProto_ExtensionRange)(nil), "google.protobuf.DescriptorProto.ExtensionRange") + proto.RegisterType((*DescriptorProto_ReservedRange)(nil), "google.protobuf.DescriptorProto.ReservedRange") + proto.RegisterType((*ExtensionRangeOptions)(nil), "google.protobuf.ExtensionRangeOptions") + proto.RegisterType((*FieldDescriptorProto)(nil), "google.protobuf.FieldDescriptorProto") + proto.RegisterType((*OneofDescriptorProto)(nil), "google.protobuf.OneofDescriptorProto") + proto.RegisterType((*EnumDescriptorProto)(nil), "google.protobuf.EnumDescriptorProto") + proto.RegisterType((*EnumDescriptorProto_EnumReservedRange)(nil), "google.protobuf.EnumDescriptorProto.EnumReservedRange") + proto.RegisterType((*EnumValueDescriptorProto)(nil), "google.protobuf.EnumValueDescriptorProto") + proto.RegisterType((*ServiceDescriptorProto)(nil), "google.protobuf.ServiceDescriptorProto") + proto.RegisterType((*MethodDescriptorProto)(nil), "google.protobuf.MethodDescriptorProto") + proto.RegisterType((*FileOptions)(nil), "google.protobuf.FileOptions") + proto.RegisterType((*MessageOptions)(nil), "google.protobuf.MessageOptions") + proto.RegisterType((*FieldOptions)(nil), "google.protobuf.FieldOptions") + proto.RegisterType((*OneofOptions)(nil), "google.protobuf.OneofOptions") + proto.RegisterType((*EnumOptions)(nil), "google.protobuf.EnumOptions") + proto.RegisterType((*EnumValueOptions)(nil), "google.protobuf.EnumValueOptions") + proto.RegisterType((*ServiceOptions)(nil), "google.protobuf.ServiceOptions") + proto.RegisterType((*MethodOptions)(nil), "google.protobuf.MethodOptions") + proto.RegisterType((*UninterpretedOption)(nil), "google.protobuf.UninterpretedOption") + proto.RegisterType((*UninterpretedOption_NamePart)(nil), "google.protobuf.UninterpretedOption.NamePart") + proto.RegisterType((*SourceCodeInfo)(nil), "google.protobuf.SourceCodeInfo") + proto.RegisterType((*SourceCodeInfo_Location)(nil), "google.protobuf.SourceCodeInfo.Location") + proto.RegisterType((*GeneratedCodeInfo)(nil), "google.protobuf.GeneratedCodeInfo") + proto.RegisterType((*GeneratedCodeInfo_Annotation)(nil), "google.protobuf.GeneratedCodeInfo.Annotation") +} + +func init() { proto.RegisterFile("descriptor.proto", fileDescriptor_308767df5ffe18af) } + +var fileDescriptor_308767df5ffe18af = []byte{ + // 2522 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0x5f, 0x7d, 0x5a, 0x7a, 0x92, 0x65, 0x7a, 0xec, 0x75, 0x18, 0xef, 0x47, 0x1c, 0xed, 0x66, + 0xe3, 0x24, 0xbb, 0xca, 0xc2, 0x49, 0x9c, 0xac, 0x53, 0x6c, 0x2b, 0x4b, 0x8c, 0x57, 0xa9, 0xbe, + 0x4a, 0xc9, 0xdd, 0x64, 0x8b, 0x82, 0x18, 0x93, 0x23, 0x89, 0x09, 0x45, 0x72, 0x49, 0x2a, 0x89, + 0x83, 0x1e, 0x02, 0xf4, 0x54, 0xa0, 0x7f, 0x40, 0x51, 0x14, 0x3d, 0xf4, 0xb2, 0x40, 0xff, 0x80, + 0x02, 0xed, 0xbd, 0xd7, 0x02, 0xbd, 0xf7, 0x50, 0xa0, 0x05, 0xda, 0x3f, 0xa1, 0xc7, 0x62, 0x66, + 0x48, 0x8a, 0xd4, 0x47, 0xe2, 0x5d, 0x20, 0xd9, 0x93, 0x3d, 0xef, 0xfd, 0xde, 0x9b, 0x37, 0x8f, + 0xbf, 0x79, 0xf3, 0x66, 0x04, 0x82, 0x46, 0x5c, 0xd5, 0xd1, 0x6d, 0xcf, 0x72, 0x2a, 0xb6, 0x63, + 0x79, 0x16, 0x5a, 0x1b, 0x5a, 0xd6, 0xd0, 0x20, 0x7c, 0x74, 0x32, 0x19, 0x94, 0x5b, 0xb0, 0x7e, + 0x4f, 0x37, 0x48, 0x3d, 0x04, 0xf6, 0x88, 0x87, 0xee, 0x40, 0x7a, 0xa0, 0x1b, 0x44, 0x4c, 0xec, + 0xa4, 0x76, 0x0b, 0x7b, 0x1f, 0x56, 0x66, 0x8c, 0x2a, 0x71, 0x8b, 0x2e, 0x15, 0xcb, 0xcc, 0xa2, + 0xfc, 0xef, 0x34, 0x6c, 0x2c, 0xd0, 0x22, 0x04, 0x69, 0x13, 0x8f, 0xa9, 0xc7, 0xc4, 0x6e, 0x5e, + 0x66, 0xff, 0x23, 0x11, 0x56, 0x6c, 0xac, 0x3e, 0xc6, 0x43, 0x22, 0x26, 0x99, 0x38, 0x18, 0xa2, + 0xf7, 0x01, 0x34, 0x62, 0x13, 0x53, 0x23, 0xa6, 0x7a, 0x2a, 0xa6, 0x76, 0x52, 0xbb, 0x79, 0x39, + 0x22, 0x41, 0xd7, 0x60, 0xdd, 0x9e, 0x9c, 0x18, 0xba, 0xaa, 0x44, 0x60, 0xb0, 0x93, 0xda, 0xcd, + 0xc8, 0x02, 0x57, 0xd4, 0xa7, 0xe0, 0xcb, 0xb0, 0xf6, 0x94, 0xe0, 0xc7, 0x51, 0x68, 0x81, 0x41, + 0x4b, 0x54, 0x1c, 0x01, 0xd6, 0xa0, 0x38, 0x26, 0xae, 0x8b, 0x87, 0x44, 0xf1, 0x4e, 0x6d, 0x22, + 0xa6, 0xd9, 0xea, 0x77, 0xe6, 0x56, 0x3f, 0xbb, 0xf2, 0x82, 0x6f, 0xd5, 0x3f, 0xb5, 0x09, 0xaa, + 0x42, 0x9e, 0x98, 0x93, 0x31, 0xf7, 0x90, 0x59, 0x92, 0x3f, 0xc9, 0x9c, 0x8c, 0x67, 0xbd, 0xe4, + 0xa8, 0x99, 0xef, 0x62, 0xc5, 0x25, 0xce, 0x13, 0x5d, 0x25, 0x62, 0x96, 0x39, 0xb8, 0x3c, 0xe7, + 0xa0, 0xc7, 0xf5, 0xb3, 0x3e, 0x02, 0x3b, 0x54, 0x83, 0x3c, 0x79, 0xe6, 0x11, 0xd3, 0xd5, 0x2d, + 0x53, 0x5c, 0x61, 0x4e, 0x2e, 0x2d, 0xf8, 0x8a, 0xc4, 0xd0, 0x66, 0x5d, 0x4c, 0xed, 0xd0, 0x3e, + 0xac, 0x58, 0xb6, 0xa7, 0x5b, 0xa6, 0x2b, 0xe6, 0x76, 0x12, 0xbb, 0x85, 0xbd, 0x77, 0x17, 0x12, + 0xa1, 0xc3, 0x31, 0x72, 0x00, 0x46, 0x0d, 0x10, 0x5c, 0x6b, 0xe2, 0xa8, 0x44, 0x51, 0x2d, 0x8d, + 0x28, 0xba, 0x39, 0xb0, 0xc4, 0x3c, 0x73, 0x70, 0x61, 0x7e, 0x21, 0x0c, 0x58, 0xb3, 0x34, 0xd2, + 0x30, 0x07, 0x96, 0x5c, 0x72, 0x63, 0x63, 0xb4, 0x05, 0x59, 0xf7, 0xd4, 0xf4, 0xf0, 0x33, 0xb1, + 0xc8, 0x18, 0xe2, 0x8f, 0xca, 0x7f, 0xce, 0xc2, 0xda, 0x59, 0x28, 0x76, 0x17, 0x32, 0x03, 0xba, + 0x4a, 0x31, 0xf9, 0x6d, 0x72, 0xc0, 0x6d, 0xe2, 0x49, 0xcc, 0x7e, 0xc7, 0x24, 0x56, 0xa1, 0x60, + 0x12, 0xd7, 0x23, 0x1a, 0x67, 0x44, 0xea, 0x8c, 0x9c, 0x02, 0x6e, 0x34, 0x4f, 0xa9, 0xf4, 0x77, + 0xa2, 0xd4, 0x03, 0x58, 0x0b, 0x43, 0x52, 0x1c, 0x6c, 0x0e, 0x03, 0x6e, 0x5e, 0x7f, 0x55, 0x24, + 0x15, 0x29, 0xb0, 0x93, 0xa9, 0x99, 0x5c, 0x22, 0xb1, 0x31, 0xaa, 0x03, 0x58, 0x26, 0xb1, 0x06, + 0x8a, 0x46, 0x54, 0x43, 0xcc, 0x2d, 0xc9, 0x52, 0x87, 0x42, 0xe6, 0xb2, 0x64, 0x71, 0xa9, 0x6a, + 0xa0, 0xcf, 0xa6, 0x54, 0x5b, 0x59, 0xc2, 0x94, 0x16, 0xdf, 0x64, 0x73, 0x6c, 0x3b, 0x86, 0x92, + 0x43, 0x28, 0xef, 0x89, 0xe6, 0xaf, 0x2c, 0xcf, 0x82, 0xa8, 0xbc, 0x72, 0x65, 0xb2, 0x6f, 0xc6, + 0x17, 0xb6, 0xea, 0x44, 0x87, 0xe8, 0x03, 0x08, 0x05, 0x0a, 0xa3, 0x15, 0xb0, 0x2a, 0x54, 0x0c, + 0x84, 0x6d, 0x3c, 0x26, 0xdb, 0xcf, 0xa1, 0x14, 0x4f, 0x0f, 0xda, 0x84, 0x8c, 0xeb, 0x61, 0xc7, + 0x63, 0x2c, 0xcc, 0xc8, 0x7c, 0x80, 0x04, 0x48, 0x11, 0x53, 0x63, 0x55, 0x2e, 0x23, 0xd3, 0x7f, + 0xd1, 0x8f, 0xa6, 0x0b, 0x4e, 0xb1, 0x05, 0x7f, 0x34, 0xff, 0x45, 0x63, 0x9e, 0x67, 0xd7, 0xbd, + 0x7d, 0x1b, 0x56, 0x63, 0x0b, 0x38, 0xeb, 0xd4, 0xe5, 0x5f, 0xc0, 0xdb, 0x0b, 0x5d, 0xa3, 0x07, + 0xb0, 0x39, 0x31, 0x75, 0xd3, 0x23, 0x8e, 0xed, 0x10, 0xca, 0x58, 0x3e, 0x95, 0xf8, 0x9f, 0x95, + 0x25, 0x9c, 0x3b, 0x8e, 0xa2, 0xb9, 0x17, 0x79, 0x63, 0x32, 0x2f, 0xbc, 0x9a, 0xcf, 0xfd, 0x77, + 0x45, 0x78, 0xf1, 0xe2, 0xc5, 0x8b, 0x64, 0xf9, 0x37, 0x59, 0xd8, 0x5c, 0xb4, 0x67, 0x16, 0x6e, + 0xdf, 0x2d, 0xc8, 0x9a, 0x93, 0xf1, 0x09, 0x71, 0x58, 0x92, 0x32, 0xb2, 0x3f, 0x42, 0x55, 0xc8, + 0x18, 0xf8, 0x84, 0x18, 0x62, 0x7a, 0x27, 0xb1, 0x5b, 0xda, 0xbb, 0x76, 0xa6, 0x5d, 0x59, 0x69, + 0x52, 0x13, 0x99, 0x5b, 0xa2, 0xcf, 0x21, 0xed, 0x97, 0x68, 0xea, 0xe1, 0xea, 0xd9, 0x3c, 0xd0, + 0xbd, 0x24, 0x33, 0x3b, 0xf4, 0x0e, 0xe4, 0xe9, 0x5f, 0xce, 0x8d, 0x2c, 0x8b, 0x39, 0x47, 0x05, + 0x94, 0x17, 0x68, 0x1b, 0x72, 0x6c, 0x9b, 0x68, 0x24, 0x38, 0xda, 0xc2, 0x31, 0x25, 0x96, 0x46, + 0x06, 0x78, 0x62, 0x78, 0xca, 0x13, 0x6c, 0x4c, 0x08, 0x23, 0x7c, 0x5e, 0x2e, 0xfa, 0xc2, 0x9f, + 0x52, 0x19, 0xba, 0x00, 0x05, 0xbe, 0xab, 0x74, 0x53, 0x23, 0xcf, 0x58, 0xf5, 0xcc, 0xc8, 0x7c, + 0xa3, 0x35, 0xa8, 0x84, 0x4e, 0xff, 0xc8, 0xb5, 0xcc, 0x80, 0x9a, 0x6c, 0x0a, 0x2a, 0x60, 0xd3, + 0xdf, 0x9e, 0x2d, 0xdc, 0xef, 0x2d, 0x5e, 0xde, 0x2c, 0xa7, 0xca, 0x7f, 0x4a, 0x42, 0x9a, 0xd5, + 0x8b, 0x35, 0x28, 0xf4, 0x1f, 0x76, 0x25, 0xa5, 0xde, 0x39, 0x3e, 0x6c, 0x4a, 0x42, 0x02, 0x95, + 0x00, 0x98, 0xe0, 0x5e, 0xb3, 0x53, 0xed, 0x0b, 0xc9, 0x70, 0xdc, 0x68, 0xf7, 0xf7, 0x6f, 0x0a, + 0xa9, 0xd0, 0xe0, 0x98, 0x0b, 0xd2, 0x51, 0xc0, 0x8d, 0x3d, 0x21, 0x83, 0x04, 0x28, 0x72, 0x07, + 0x8d, 0x07, 0x52, 0x7d, 0xff, 0xa6, 0x90, 0x8d, 0x4b, 0x6e, 0xec, 0x09, 0x2b, 0x68, 0x15, 0xf2, + 0x4c, 0x72, 0xd8, 0xe9, 0x34, 0x85, 0x5c, 0xe8, 0xb3, 0xd7, 0x97, 0x1b, 0xed, 0x23, 0x21, 0x1f, + 0xfa, 0x3c, 0x92, 0x3b, 0xc7, 0x5d, 0x01, 0x42, 0x0f, 0x2d, 0xa9, 0xd7, 0xab, 0x1e, 0x49, 0x42, + 0x21, 0x44, 0x1c, 0x3e, 0xec, 0x4b, 0x3d, 0xa1, 0x18, 0x0b, 0xeb, 0xc6, 0x9e, 0xb0, 0x1a, 0x4e, + 0x21, 0xb5, 0x8f, 0x5b, 0x42, 0x09, 0xad, 0xc3, 0x2a, 0x9f, 0x22, 0x08, 0x62, 0x6d, 0x46, 0xb4, + 0x7f, 0x53, 0x10, 0xa6, 0x81, 0x70, 0x2f, 0xeb, 0x31, 0xc1, 0xfe, 0x4d, 0x01, 0x95, 0x6b, 0x90, + 0x61, 0xec, 0x42, 0x08, 0x4a, 0xcd, 0xea, 0xa1, 0xd4, 0x54, 0x3a, 0xdd, 0x7e, 0xa3, 0xd3, 0xae, + 0x36, 0x85, 0xc4, 0x54, 0x26, 0x4b, 0x3f, 0x39, 0x6e, 0xc8, 0x52, 0x5d, 0x48, 0x46, 0x65, 0x5d, + 0xa9, 0xda, 0x97, 0xea, 0x42, 0xaa, 0xac, 0xc2, 0xe6, 0xa2, 0x3a, 0xb9, 0x70, 0x67, 0x44, 0x3e, + 0x71, 0x72, 0xc9, 0x27, 0x66, 0xbe, 0xe6, 0x3e, 0xf1, 0xbf, 0x92, 0xb0, 0xb1, 0xe0, 0xac, 0x58, + 0x38, 0xc9, 0x0f, 0x21, 0xc3, 0x29, 0xca, 0x4f, 0xcf, 0x2b, 0x0b, 0x0f, 0x1d, 0x46, 0xd8, 0xb9, + 0x13, 0x94, 0xd9, 0x45, 0x3b, 0x88, 0xd4, 0x92, 0x0e, 0x82, 0xba, 0x98, 0xab, 0xe9, 0x3f, 0x9f, + 0xab, 0xe9, 0xfc, 0xd8, 0xdb, 0x3f, 0xcb, 0xb1, 0xc7, 0x64, 0xdf, 0xae, 0xb6, 0x67, 0x16, 0xd4, + 0xf6, 0xbb, 0xb0, 0x3e, 0xe7, 0xe8, 0xcc, 0x35, 0xf6, 0x97, 0x09, 0x10, 0x97, 0x25, 0xe7, 0x15, + 0x95, 0x2e, 0x19, 0xab, 0x74, 0x77, 0x67, 0x33, 0x78, 0x71, 0xf9, 0x47, 0x98, 0xfb, 0xd6, 0xdf, + 0x24, 0x60, 0x6b, 0x71, 0xa7, 0xb8, 0x30, 0x86, 0xcf, 0x21, 0x3b, 0x26, 0xde, 0xc8, 0x0a, 0xba, + 0xa5, 0x8f, 0x16, 0x9c, 0xc1, 0x54, 0x3d, 0xfb, 0xb1, 0x7d, 0xab, 0xe8, 0x21, 0x9e, 0x5a, 0xd6, + 0xee, 0xf1, 0x68, 0xe6, 0x22, 0xfd, 0x55, 0x12, 0xde, 0x5e, 0xe8, 0x7c, 0x61, 0xa0, 0xef, 0x01, + 0xe8, 0xa6, 0x3d, 0xf1, 0x78, 0x47, 0xc4, 0x0b, 0x6c, 0x9e, 0x49, 0x58, 0xf1, 0xa2, 0xc5, 0x73, + 0xe2, 0x85, 0xfa, 0x14, 0xd3, 0x03, 0x17, 0x31, 0xc0, 0x9d, 0x69, 0xa0, 0x69, 0x16, 0xe8, 0xfb, + 0x4b, 0x56, 0x3a, 0x47, 0xcc, 0x4f, 0x41, 0x50, 0x0d, 0x9d, 0x98, 0x9e, 0xe2, 0x7a, 0x0e, 0xc1, + 0x63, 0xdd, 0x1c, 0xb2, 0x13, 0x24, 0x77, 0x90, 0x19, 0x60, 0xc3, 0x25, 0xf2, 0x1a, 0x57, 0xf7, + 0x02, 0x2d, 0xb5, 0x60, 0x04, 0x72, 0x22, 0x16, 0xd9, 0x98, 0x05, 0x57, 0x87, 0x16, 0xe5, 0x5f, + 0xe7, 0xa1, 0x10, 0xe9, 0xab, 0xd1, 0x45, 0x28, 0x3e, 0xc2, 0x4f, 0xb0, 0x12, 0xdc, 0x95, 0x78, + 0x26, 0x0a, 0x54, 0xd6, 0xf5, 0xef, 0x4b, 0x9f, 0xc2, 0x26, 0x83, 0x58, 0x13, 0x8f, 0x38, 0x8a, + 0x6a, 0x60, 0xd7, 0x65, 0x49, 0xcb, 0x31, 0x28, 0xa2, 0xba, 0x0e, 0x55, 0xd5, 0x02, 0x0d, 0xba, + 0x05, 0x1b, 0xcc, 0x62, 0x3c, 0x31, 0x3c, 0xdd, 0x36, 0x88, 0x42, 0x6f, 0x6f, 0x2e, 0x3b, 0x49, + 0xc2, 0xc8, 0xd6, 0x29, 0xa2, 0xe5, 0x03, 0x68, 0x44, 0x2e, 0xaa, 0xc3, 0x7b, 0xcc, 0x6c, 0x48, + 0x4c, 0xe2, 0x60, 0x8f, 0x28, 0xe4, 0xeb, 0x09, 0x36, 0x5c, 0x05, 0x9b, 0x9a, 0x32, 0xc2, 0xee, + 0x48, 0xdc, 0xa4, 0x0e, 0x0e, 0x93, 0x62, 0x42, 0x3e, 0x4f, 0x81, 0x47, 0x3e, 0x4e, 0x62, 0xb0, + 0xaa, 0xa9, 0x7d, 0x81, 0xdd, 0x11, 0x3a, 0x80, 0x2d, 0xe6, 0xc5, 0xf5, 0x1c, 0xdd, 0x1c, 0x2a, + 0xea, 0x88, 0xa8, 0x8f, 0x95, 0x89, 0x37, 0xb8, 0x23, 0xbe, 0x13, 0x9d, 0x9f, 0x45, 0xd8, 0x63, + 0x98, 0x1a, 0x85, 0x1c, 0x7b, 0x83, 0x3b, 0xa8, 0x07, 0x45, 0xfa, 0x31, 0xc6, 0xfa, 0x73, 0xa2, + 0x0c, 0x2c, 0x87, 0x1d, 0x8d, 0xa5, 0x05, 0xa5, 0x29, 0x92, 0xc1, 0x4a, 0xc7, 0x37, 0x68, 0x59, + 0x1a, 0x39, 0xc8, 0xf4, 0xba, 0x92, 0x54, 0x97, 0x0b, 0x81, 0x97, 0x7b, 0x96, 0x43, 0x09, 0x35, + 0xb4, 0xc2, 0x04, 0x17, 0x38, 0xa1, 0x86, 0x56, 0x90, 0xde, 0x5b, 0xb0, 0xa1, 0xaa, 0x7c, 0xcd, + 0xba, 0xaa, 0xf8, 0x77, 0x2c, 0x57, 0x14, 0x62, 0xc9, 0x52, 0xd5, 0x23, 0x0e, 0xf0, 0x39, 0xee, + 0xa2, 0xcf, 0xe0, 0xed, 0x69, 0xb2, 0xa2, 0x86, 0xeb, 0x73, 0xab, 0x9c, 0x35, 0xbd, 0x05, 0x1b, + 0xf6, 0xe9, 0xbc, 0x21, 0x8a, 0xcd, 0x68, 0x9f, 0xce, 0x9a, 0xdd, 0x86, 0x4d, 0x7b, 0x64, 0xcf, + 0xdb, 0x5d, 0x8d, 0xda, 0x21, 0x7b, 0x64, 0xcf, 0x1a, 0x5e, 0x62, 0x17, 0x6e, 0x87, 0xa8, 0xd8, + 0x23, 0x9a, 0x78, 0x2e, 0x0a, 0x8f, 0x28, 0xd0, 0x75, 0x10, 0x54, 0x55, 0x21, 0x26, 0x3e, 0x31, + 0x88, 0x82, 0x1d, 0x62, 0x62, 0x57, 0xbc, 0x10, 0x05, 0x97, 0x54, 0x55, 0x62, 0xda, 0x2a, 0x53, + 0xa2, 0xab, 0xb0, 0x6e, 0x9d, 0x3c, 0x52, 0x39, 0x25, 0x15, 0xdb, 0x21, 0x03, 0xfd, 0x99, 0xf8, + 0x21, 0xcb, 0xef, 0x1a, 0x55, 0x30, 0x42, 0x76, 0x99, 0x18, 0x5d, 0x01, 0x41, 0x75, 0x47, 0xd8, + 0xb1, 0x59, 0x4d, 0x76, 0x6d, 0xac, 0x12, 0xf1, 0x12, 0x87, 0x72, 0x79, 0x3b, 0x10, 0xd3, 0x2d, + 0xe1, 0x3e, 0xd5, 0x07, 0x5e, 0xe0, 0xf1, 0x32, 0xdf, 0x12, 0x4c, 0xe6, 0x7b, 0xdb, 0x05, 0x81, + 0xa6, 0x22, 0x36, 0xf1, 0x2e, 0x83, 0x95, 0xec, 0x91, 0x1d, 0x9d, 0xf7, 0x03, 0x58, 0xa5, 0xc8, + 0xe9, 0xa4, 0x57, 0x78, 0x43, 0x66, 0x8f, 0x22, 0x33, 0xde, 0x84, 0x2d, 0x0a, 0x1a, 0x13, 0x0f, + 0x6b, 0xd8, 0xc3, 0x11, 0xf4, 0xc7, 0x0c, 0x4d, 0xf3, 0xde, 0xf2, 0x95, 0xb1, 0x38, 0x9d, 0xc9, + 0xc9, 0x69, 0xc8, 0xac, 0x4f, 0x78, 0x9c, 0x54, 0x16, 0x70, 0xeb, 0xb5, 0x35, 0xdd, 0xe5, 0x03, + 0x28, 0x46, 0x89, 0x8f, 0xf2, 0xc0, 0xa9, 0x2f, 0x24, 0x68, 0x17, 0x54, 0xeb, 0xd4, 0x69, 0xff, + 0xf2, 0x95, 0x24, 0x24, 0x69, 0x1f, 0xd5, 0x6c, 0xf4, 0x25, 0x45, 0x3e, 0x6e, 0xf7, 0x1b, 0x2d, + 0x49, 0x48, 0x45, 0x1b, 0xf6, 0xbf, 0x26, 0xa1, 0x14, 0xbf, 0x7b, 0xa1, 0x1f, 0xc0, 0xb9, 0xe0, + 0xa1, 0xc4, 0x25, 0x9e, 0xf2, 0x54, 0x77, 0xd8, 0x5e, 0x1c, 0x63, 0x7e, 0x2e, 0x86, 0x6c, 0xd8, + 0xf4, 0x51, 0x3d, 0xe2, 0x7d, 0xa9, 0x3b, 0x74, 0xa7, 0x8d, 0xb1, 0x87, 0x9a, 0x70, 0xc1, 0xb4, + 0x14, 0xd7, 0xc3, 0xa6, 0x86, 0x1d, 0x4d, 0x99, 0x3e, 0x51, 0x29, 0x58, 0x55, 0x89, 0xeb, 0x5a, + 0xfc, 0x0c, 0x0c, 0xbd, 0xbc, 0x6b, 0x5a, 0x3d, 0x1f, 0x3c, 0x3d, 0x1c, 0xaa, 0x3e, 0x74, 0x86, + 0xb9, 0xa9, 0x65, 0xcc, 0x7d, 0x07, 0xf2, 0x63, 0x6c, 0x2b, 0xc4, 0xf4, 0x9c, 0x53, 0xd6, 0x71, + 0xe7, 0xe4, 0xdc, 0x18, 0xdb, 0x12, 0x1d, 0xbf, 0x99, 0x8b, 0xcf, 0x3f, 0x52, 0x50, 0x8c, 0x76, + 0xdd, 0xf4, 0x12, 0xa3, 0xb2, 0x03, 0x2a, 0xc1, 0x4a, 0xd8, 0x07, 0x2f, 0xed, 0xd1, 0x2b, 0x35, + 0x7a, 0x72, 0x1d, 0x64, 0x79, 0x2f, 0x2c, 0x73, 0x4b, 0xda, 0x35, 0x50, 0x6a, 0x11, 0xde, 0x7b, + 0xe4, 0x64, 0x7f, 0x84, 0x8e, 0x20, 0xfb, 0xc8, 0x65, 0xbe, 0xb3, 0xcc, 0xf7, 0x87, 0x2f, 0xf7, + 0x7d, 0xbf, 0xc7, 0x9c, 0xe7, 0xef, 0xf7, 0x94, 0x76, 0x47, 0x6e, 0x55, 0x9b, 0xb2, 0x6f, 0x8e, + 0xce, 0x43, 0xda, 0xc0, 0xcf, 0x4f, 0xe3, 0x67, 0x1c, 0x13, 0x9d, 0x35, 0xf1, 0xe7, 0x21, 0xfd, + 0x94, 0xe0, 0xc7, 0xf1, 0x93, 0x85, 0x89, 0x5e, 0x23, 0xf5, 0xaf, 0x43, 0x86, 0xe5, 0x0b, 0x01, + 0xf8, 0x19, 0x13, 0xde, 0x42, 0x39, 0x48, 0xd7, 0x3a, 0x32, 0xa5, 0xbf, 0x00, 0x45, 0x2e, 0x55, + 0xba, 0x0d, 0xa9, 0x26, 0x09, 0xc9, 0xf2, 0x2d, 0xc8, 0xf2, 0x24, 0xd0, 0xad, 0x11, 0xa6, 0x41, + 0x78, 0xcb, 0x1f, 0xfa, 0x3e, 0x12, 0x81, 0xf6, 0xb8, 0x75, 0x28, 0xc9, 0x42, 0x32, 0xfa, 0x79, + 0x5d, 0x28, 0x46, 0x1b, 0xee, 0x37, 0xc3, 0xa9, 0xbf, 0x24, 0xa0, 0x10, 0x69, 0xa0, 0x69, 0xe7, + 0x83, 0x0d, 0xc3, 0x7a, 0xaa, 0x60, 0x43, 0xc7, 0xae, 0x4f, 0x0a, 0x60, 0xa2, 0x2a, 0x95, 0x9c, + 0xf5, 0xa3, 0xbd, 0x91, 0xe0, 0x7f, 0x9f, 0x00, 0x61, 0xb6, 0x77, 0x9d, 0x09, 0x30, 0xf1, 0xbd, + 0x06, 0xf8, 0xbb, 0x04, 0x94, 0xe2, 0x0d, 0xeb, 0x4c, 0x78, 0x17, 0xbf, 0xd7, 0xf0, 0xfe, 0x99, + 0x84, 0xd5, 0x58, 0x9b, 0x7a, 0xd6, 0xe8, 0xbe, 0x86, 0x75, 0x5d, 0x23, 0x63, 0xdb, 0xf2, 0x88, + 0xa9, 0x9e, 0x2a, 0x06, 0x79, 0x42, 0x0c, 0xb1, 0xcc, 0x0a, 0xc5, 0xf5, 0x97, 0x37, 0xc2, 0x95, + 0xc6, 0xd4, 0xae, 0x49, 0xcd, 0x0e, 0x36, 0x1a, 0x75, 0xa9, 0xd5, 0xed, 0xf4, 0xa5, 0x76, 0xed, + 0xa1, 0x72, 0xdc, 0xfe, 0x71, 0xbb, 0xf3, 0x65, 0x5b, 0x16, 0xf4, 0x19, 0xd8, 0x6b, 0xdc, 0xea, + 0x5d, 0x10, 0x66, 0x83, 0x42, 0xe7, 0x60, 0x51, 0x58, 0xc2, 0x5b, 0x68, 0x03, 0xd6, 0xda, 0x1d, + 0xa5, 0xd7, 0xa8, 0x4b, 0x8a, 0x74, 0xef, 0x9e, 0x54, 0xeb, 0xf7, 0xf8, 0xd3, 0x46, 0x88, 0xee, + 0xc7, 0x37, 0xf5, 0x6f, 0x53, 0xb0, 0xb1, 0x20, 0x12, 0x54, 0xf5, 0x2f, 0x25, 0xfc, 0x9e, 0xf4, + 0xc9, 0x59, 0xa2, 0xaf, 0xd0, 0xae, 0xa0, 0x8b, 0x1d, 0xcf, 0xbf, 0xc3, 0x5c, 0x01, 0x9a, 0x25, + 0xd3, 0xd3, 0x07, 0x3a, 0x71, 0xfc, 0x97, 0x20, 0x7e, 0x53, 0x59, 0x9b, 0xca, 0xf9, 0x63, 0xd0, + 0xc7, 0x80, 0x6c, 0xcb, 0xd5, 0x3d, 0xfd, 0x09, 0x51, 0x74, 0x33, 0x78, 0x36, 0xa2, 0x37, 0x97, + 0xb4, 0x2c, 0x04, 0x9a, 0x86, 0xe9, 0x85, 0x68, 0x93, 0x0c, 0xf1, 0x0c, 0x9a, 0x16, 0xf0, 0x94, + 0x2c, 0x04, 0x9a, 0x10, 0x7d, 0x11, 0x8a, 0x9a, 0x35, 0xa1, 0xed, 0x1c, 0xc7, 0xd1, 0xf3, 0x22, + 0x21, 0x17, 0xb8, 0x2c, 0x84, 0xf8, 0x8d, 0xfa, 0xf4, 0xbd, 0xaa, 0x28, 0x17, 0xb8, 0x8c, 0x43, + 0x2e, 0xc3, 0x1a, 0x1e, 0x0e, 0x1d, 0xea, 0x3c, 0x70, 0xc4, 0xaf, 0x1e, 0xa5, 0x50, 0xcc, 0x80, + 0xdb, 0xf7, 0x21, 0x17, 0xe4, 0x81, 0x1e, 0xc9, 0x34, 0x13, 0x8a, 0xcd, 0xef, 0xd3, 0xc9, 0xdd, + 0xbc, 0x9c, 0x33, 0x03, 0xe5, 0x45, 0x28, 0xea, 0xae, 0x32, 0x7d, 0x7e, 0x4f, 0xee, 0x24, 0x77, + 0x73, 0x72, 0x41, 0x77, 0xc3, 0xa7, 0xcb, 0xf2, 0x37, 0x49, 0x28, 0xc5, 0x7f, 0x3e, 0x40, 0x75, + 0xc8, 0x19, 0x96, 0x8a, 0x19, 0xb5, 0xf8, 0x6f, 0x57, 0xbb, 0xaf, 0xf8, 0xc5, 0xa1, 0xd2, 0xf4, + 0xf1, 0x72, 0x68, 0xb9, 0xfd, 0xb7, 0x04, 0xe4, 0x02, 0x31, 0xda, 0x82, 0xb4, 0x8d, 0xbd, 0x11, + 0x73, 0x97, 0x39, 0x4c, 0x0a, 0x09, 0x99, 0x8d, 0xa9, 0xdc, 0xb5, 0xb1, 0xc9, 0x28, 0xe0, 0xcb, + 0xe9, 0x98, 0x7e, 0x57, 0x83, 0x60, 0x8d, 0xdd, 0x6b, 0xac, 0xf1, 0x98, 0x98, 0x9e, 0x1b, 0x7c, + 0x57, 0x5f, 0x5e, 0xf3, 0xc5, 0xe8, 0x1a, 0xac, 0x7b, 0x0e, 0xd6, 0x8d, 0x18, 0x36, 0xcd, 0xb0, + 0x42, 0xa0, 0x08, 0xc1, 0x07, 0x70, 0x3e, 0xf0, 0xab, 0x11, 0x0f, 0xab, 0x23, 0xa2, 0x4d, 0x8d, + 0xb2, 0xec, 0xfd, 0xe2, 0x9c, 0x0f, 0xa8, 0xfb, 0xfa, 0xc0, 0xb6, 0xfc, 0xf7, 0x04, 0xac, 0x07, + 0x37, 0x31, 0x2d, 0x4c, 0x56, 0x0b, 0x00, 0x9b, 0xa6, 0xe5, 0x45, 0xd3, 0x35, 0x4f, 0xe5, 0x39, + 0xbb, 0x4a, 0x35, 0x34, 0x92, 0x23, 0x0e, 0xb6, 0xc7, 0x00, 0x53, 0xcd, 0xd2, 0xb4, 0x5d, 0x80, + 0x82, 0xff, 0xdb, 0x10, 0xfb, 0x81, 0x91, 0xdf, 0xdd, 0x81, 0x8b, 0xe8, 0x95, 0x0d, 0x6d, 0x42, + 0xe6, 0x84, 0x0c, 0x75, 0xd3, 0x7f, 0xf1, 0xe5, 0x83, 0xe0, 0x85, 0x25, 0x1d, 0xbe, 0xb0, 0x1c, + 0xfe, 0x0c, 0x36, 0x54, 0x6b, 0x3c, 0x1b, 0xee, 0xa1, 0x30, 0xf3, 0x7e, 0xe0, 0x7e, 0x91, 0xf8, + 0x0a, 0xa6, 0x2d, 0xe6, 0xff, 0x12, 0x89, 0x3f, 0x24, 0x53, 0x47, 0xdd, 0xc3, 0x3f, 0x26, 0xb7, + 0x8f, 0xb8, 0x69, 0x37, 0x58, 0xa9, 0x4c, 0x06, 0x06, 0x51, 0x69, 0xf4, 0xff, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x88, 0x17, 0xc1, 0xbe, 0x38, 0x1d, 0x00, 0x00, +} diff --git a/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor_gostring.gen.go b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor_gostring.gen.go new file mode 100644 index 0000000..165b211 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/descriptor_gostring.gen.go @@ -0,0 +1,752 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: descriptor.proto + +package descriptor + +import ( + fmt "fmt" + github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" + proto "github.com/gogo/protobuf/proto" + math "math" + reflect "reflect" + sort "sort" + strconv "strconv" + strings "strings" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func (this *FileDescriptorSet) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&descriptor.FileDescriptorSet{") + if this.File != nil { + s = append(s, "File: "+fmt.Sprintf("%#v", this.File)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FileDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 16) + s = append(s, "&descriptor.FileDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Package != nil { + s = append(s, "Package: "+valueToGoStringDescriptor(this.Package, "string")+",\n") + } + if this.Dependency != nil { + s = append(s, "Dependency: "+fmt.Sprintf("%#v", this.Dependency)+",\n") + } + if this.PublicDependency != nil { + s = append(s, "PublicDependency: "+fmt.Sprintf("%#v", this.PublicDependency)+",\n") + } + if this.WeakDependency != nil { + s = append(s, "WeakDependency: "+fmt.Sprintf("%#v", this.WeakDependency)+",\n") + } + if this.MessageType != nil { + s = append(s, "MessageType: "+fmt.Sprintf("%#v", this.MessageType)+",\n") + } + if this.EnumType != nil { + s = append(s, "EnumType: "+fmt.Sprintf("%#v", this.EnumType)+",\n") + } + if this.Service != nil { + s = append(s, "Service: "+fmt.Sprintf("%#v", this.Service)+",\n") + } + if this.Extension != nil { + s = append(s, "Extension: "+fmt.Sprintf("%#v", this.Extension)+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.SourceCodeInfo != nil { + s = append(s, "SourceCodeInfo: "+fmt.Sprintf("%#v", this.SourceCodeInfo)+",\n") + } + if this.Syntax != nil { + s = append(s, "Syntax: "+valueToGoStringDescriptor(this.Syntax, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 14) + s = append(s, "&descriptor.DescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Field != nil { + s = append(s, "Field: "+fmt.Sprintf("%#v", this.Field)+",\n") + } + if this.Extension != nil { + s = append(s, "Extension: "+fmt.Sprintf("%#v", this.Extension)+",\n") + } + if this.NestedType != nil { + s = append(s, "NestedType: "+fmt.Sprintf("%#v", this.NestedType)+",\n") + } + if this.EnumType != nil { + s = append(s, "EnumType: "+fmt.Sprintf("%#v", this.EnumType)+",\n") + } + if this.ExtensionRange != nil { + s = append(s, "ExtensionRange: "+fmt.Sprintf("%#v", this.ExtensionRange)+",\n") + } + if this.OneofDecl != nil { + s = append(s, "OneofDecl: "+fmt.Sprintf("%#v", this.OneofDecl)+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.ReservedRange != nil { + s = append(s, "ReservedRange: "+fmt.Sprintf("%#v", this.ReservedRange)+",\n") + } + if this.ReservedName != nil { + s = append(s, "ReservedName: "+fmt.Sprintf("%#v", this.ReservedName)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DescriptorProto_ExtensionRange) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&descriptor.DescriptorProto_ExtensionRange{") + if this.Start != nil { + s = append(s, "Start: "+valueToGoStringDescriptor(this.Start, "int32")+",\n") + } + if this.End != nil { + s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DescriptorProto_ReservedRange) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&descriptor.DescriptorProto_ReservedRange{") + if this.Start != nil { + s = append(s, "Start: "+valueToGoStringDescriptor(this.Start, "int32")+",\n") + } + if this.End != nil { + s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ExtensionRangeOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&descriptor.ExtensionRangeOptions{") + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FieldDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 14) + s = append(s, "&descriptor.FieldDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Number != nil { + s = append(s, "Number: "+valueToGoStringDescriptor(this.Number, "int32")+",\n") + } + if this.Label != nil { + s = append(s, "Label: "+valueToGoStringDescriptor(this.Label, "FieldDescriptorProto_Label")+",\n") + } + if this.Type != nil { + s = append(s, "Type: "+valueToGoStringDescriptor(this.Type, "FieldDescriptorProto_Type")+",\n") + } + if this.TypeName != nil { + s = append(s, "TypeName: "+valueToGoStringDescriptor(this.TypeName, "string")+",\n") + } + if this.Extendee != nil { + s = append(s, "Extendee: "+valueToGoStringDescriptor(this.Extendee, "string")+",\n") + } + if this.DefaultValue != nil { + s = append(s, "DefaultValue: "+valueToGoStringDescriptor(this.DefaultValue, "string")+",\n") + } + if this.OneofIndex != nil { + s = append(s, "OneofIndex: "+valueToGoStringDescriptor(this.OneofIndex, "int32")+",\n") + } + if this.JsonName != nil { + s = append(s, "JsonName: "+valueToGoStringDescriptor(this.JsonName, "string")+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *OneofDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&descriptor.OneofDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *EnumDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&descriptor.EnumDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Value != nil { + s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.ReservedRange != nil { + s = append(s, "ReservedRange: "+fmt.Sprintf("%#v", this.ReservedRange)+",\n") + } + if this.ReservedName != nil { + s = append(s, "ReservedName: "+fmt.Sprintf("%#v", this.ReservedName)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *EnumDescriptorProto_EnumReservedRange) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&descriptor.EnumDescriptorProto_EnumReservedRange{") + if this.Start != nil { + s = append(s, "Start: "+valueToGoStringDescriptor(this.Start, "int32")+",\n") + } + if this.End != nil { + s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *EnumValueDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&descriptor.EnumValueDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Number != nil { + s = append(s, "Number: "+valueToGoStringDescriptor(this.Number, "int32")+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ServiceDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&descriptor.ServiceDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.Method != nil { + s = append(s, "Method: "+fmt.Sprintf("%#v", this.Method)+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *MethodDescriptorProto) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 10) + s = append(s, "&descriptor.MethodDescriptorProto{") + if this.Name != nil { + s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") + } + if this.InputType != nil { + s = append(s, "InputType: "+valueToGoStringDescriptor(this.InputType, "string")+",\n") + } + if this.OutputType != nil { + s = append(s, "OutputType: "+valueToGoStringDescriptor(this.OutputType, "string")+",\n") + } + if this.Options != nil { + s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") + } + if this.ClientStreaming != nil { + s = append(s, "ClientStreaming: "+valueToGoStringDescriptor(this.ClientStreaming, "bool")+",\n") + } + if this.ServerStreaming != nil { + s = append(s, "ServerStreaming: "+valueToGoStringDescriptor(this.ServerStreaming, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FileOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 25) + s = append(s, "&descriptor.FileOptions{") + if this.JavaPackage != nil { + s = append(s, "JavaPackage: "+valueToGoStringDescriptor(this.JavaPackage, "string")+",\n") + } + if this.JavaOuterClassname != nil { + s = append(s, "JavaOuterClassname: "+valueToGoStringDescriptor(this.JavaOuterClassname, "string")+",\n") + } + if this.JavaMultipleFiles != nil { + s = append(s, "JavaMultipleFiles: "+valueToGoStringDescriptor(this.JavaMultipleFiles, "bool")+",\n") + } + if this.JavaGenerateEqualsAndHash != nil { + s = append(s, "JavaGenerateEqualsAndHash: "+valueToGoStringDescriptor(this.JavaGenerateEqualsAndHash, "bool")+",\n") + } + if this.JavaStringCheckUtf8 != nil { + s = append(s, "JavaStringCheckUtf8: "+valueToGoStringDescriptor(this.JavaStringCheckUtf8, "bool")+",\n") + } + if this.OptimizeFor != nil { + s = append(s, "OptimizeFor: "+valueToGoStringDescriptor(this.OptimizeFor, "FileOptions_OptimizeMode")+",\n") + } + if this.GoPackage != nil { + s = append(s, "GoPackage: "+valueToGoStringDescriptor(this.GoPackage, "string")+",\n") + } + if this.CcGenericServices != nil { + s = append(s, "CcGenericServices: "+valueToGoStringDescriptor(this.CcGenericServices, "bool")+",\n") + } + if this.JavaGenericServices != nil { + s = append(s, "JavaGenericServices: "+valueToGoStringDescriptor(this.JavaGenericServices, "bool")+",\n") + } + if this.PyGenericServices != nil { + s = append(s, "PyGenericServices: "+valueToGoStringDescriptor(this.PyGenericServices, "bool")+",\n") + } + if this.PhpGenericServices != nil { + s = append(s, "PhpGenericServices: "+valueToGoStringDescriptor(this.PhpGenericServices, "bool")+",\n") + } + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.CcEnableArenas != nil { + s = append(s, "CcEnableArenas: "+valueToGoStringDescriptor(this.CcEnableArenas, "bool")+",\n") + } + if this.ObjcClassPrefix != nil { + s = append(s, "ObjcClassPrefix: "+valueToGoStringDescriptor(this.ObjcClassPrefix, "string")+",\n") + } + if this.CsharpNamespace != nil { + s = append(s, "CsharpNamespace: "+valueToGoStringDescriptor(this.CsharpNamespace, "string")+",\n") + } + if this.SwiftPrefix != nil { + s = append(s, "SwiftPrefix: "+valueToGoStringDescriptor(this.SwiftPrefix, "string")+",\n") + } + if this.PhpClassPrefix != nil { + s = append(s, "PhpClassPrefix: "+valueToGoStringDescriptor(this.PhpClassPrefix, "string")+",\n") + } + if this.PhpNamespace != nil { + s = append(s, "PhpNamespace: "+valueToGoStringDescriptor(this.PhpNamespace, "string")+",\n") + } + if this.PhpMetadataNamespace != nil { + s = append(s, "PhpMetadataNamespace: "+valueToGoStringDescriptor(this.PhpMetadataNamespace, "string")+",\n") + } + if this.RubyPackage != nil { + s = append(s, "RubyPackage: "+valueToGoStringDescriptor(this.RubyPackage, "string")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *MessageOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&descriptor.MessageOptions{") + if this.MessageSetWireFormat != nil { + s = append(s, "MessageSetWireFormat: "+valueToGoStringDescriptor(this.MessageSetWireFormat, "bool")+",\n") + } + if this.NoStandardDescriptorAccessor != nil { + s = append(s, "NoStandardDescriptorAccessor: "+valueToGoStringDescriptor(this.NoStandardDescriptorAccessor, "bool")+",\n") + } + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.MapEntry != nil { + s = append(s, "MapEntry: "+valueToGoStringDescriptor(this.MapEntry, "bool")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *FieldOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 11) + s = append(s, "&descriptor.FieldOptions{") + if this.Ctype != nil { + s = append(s, "Ctype: "+valueToGoStringDescriptor(this.Ctype, "FieldOptions_CType")+",\n") + } + if this.Packed != nil { + s = append(s, "Packed: "+valueToGoStringDescriptor(this.Packed, "bool")+",\n") + } + if this.Jstype != nil { + s = append(s, "Jstype: "+valueToGoStringDescriptor(this.Jstype, "FieldOptions_JSType")+",\n") + } + if this.Lazy != nil { + s = append(s, "Lazy: "+valueToGoStringDescriptor(this.Lazy, "bool")+",\n") + } + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.Weak != nil { + s = append(s, "Weak: "+valueToGoStringDescriptor(this.Weak, "bool")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *OneofOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&descriptor.OneofOptions{") + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *EnumOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&descriptor.EnumOptions{") + if this.AllowAlias != nil { + s = append(s, "AllowAlias: "+valueToGoStringDescriptor(this.AllowAlias, "bool")+",\n") + } + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *EnumValueOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&descriptor.EnumValueOptions{") + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ServiceOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&descriptor.ServiceOptions{") + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *MethodOptions) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&descriptor.MethodOptions{") + if this.Deprecated != nil { + s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") + } + if this.IdempotencyLevel != nil { + s = append(s, "IdempotencyLevel: "+valueToGoStringDescriptor(this.IdempotencyLevel, "MethodOptions_IdempotencyLevel")+",\n") + } + if this.UninterpretedOption != nil { + s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") + } + s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UninterpretedOption) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 11) + s = append(s, "&descriptor.UninterpretedOption{") + if this.Name != nil { + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + } + if this.IdentifierValue != nil { + s = append(s, "IdentifierValue: "+valueToGoStringDescriptor(this.IdentifierValue, "string")+",\n") + } + if this.PositiveIntValue != nil { + s = append(s, "PositiveIntValue: "+valueToGoStringDescriptor(this.PositiveIntValue, "uint64")+",\n") + } + if this.NegativeIntValue != nil { + s = append(s, "NegativeIntValue: "+valueToGoStringDescriptor(this.NegativeIntValue, "int64")+",\n") + } + if this.DoubleValue != nil { + s = append(s, "DoubleValue: "+valueToGoStringDescriptor(this.DoubleValue, "float64")+",\n") + } + if this.StringValue != nil { + s = append(s, "StringValue: "+valueToGoStringDescriptor(this.StringValue, "byte")+",\n") + } + if this.AggregateValue != nil { + s = append(s, "AggregateValue: "+valueToGoStringDescriptor(this.AggregateValue, "string")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UninterpretedOption_NamePart) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&descriptor.UninterpretedOption_NamePart{") + if this.NamePart != nil { + s = append(s, "NamePart: "+valueToGoStringDescriptor(this.NamePart, "string")+",\n") + } + if this.IsExtension != nil { + s = append(s, "IsExtension: "+valueToGoStringDescriptor(this.IsExtension, "bool")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SourceCodeInfo) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&descriptor.SourceCodeInfo{") + if this.Location != nil { + s = append(s, "Location: "+fmt.Sprintf("%#v", this.Location)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SourceCodeInfo_Location) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&descriptor.SourceCodeInfo_Location{") + if this.Path != nil { + s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") + } + if this.Span != nil { + s = append(s, "Span: "+fmt.Sprintf("%#v", this.Span)+",\n") + } + if this.LeadingComments != nil { + s = append(s, "LeadingComments: "+valueToGoStringDescriptor(this.LeadingComments, "string")+",\n") + } + if this.TrailingComments != nil { + s = append(s, "TrailingComments: "+valueToGoStringDescriptor(this.TrailingComments, "string")+",\n") + } + if this.LeadingDetachedComments != nil { + s = append(s, "LeadingDetachedComments: "+fmt.Sprintf("%#v", this.LeadingDetachedComments)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GeneratedCodeInfo) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&descriptor.GeneratedCodeInfo{") + if this.Annotation != nil { + s = append(s, "Annotation: "+fmt.Sprintf("%#v", this.Annotation)+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GeneratedCodeInfo_Annotation) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&descriptor.GeneratedCodeInfo_Annotation{") + if this.Path != nil { + s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") + } + if this.SourceFile != nil { + s = append(s, "SourceFile: "+valueToGoStringDescriptor(this.SourceFile, "string")+",\n") + } + if this.Begin != nil { + s = append(s, "Begin: "+valueToGoStringDescriptor(this.Begin, "int32")+",\n") + } + if this.End != nil { + s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") + } + if this.XXX_unrecognized != nil { + s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringDescriptor(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func extensionToGoStringDescriptor(m github_com_gogo_protobuf_proto.Message) string { + e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) + if e == nil { + return "nil" + } + s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" + keys := make([]int, 0, len(e)) + for k := range e { + keys = append(keys, int(k)) + } + sort.Ints(keys) + ss := []string{} + for _, k := range keys { + ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) + } + s += strings.Join(ss, ",") + "})" + return s +} diff --git a/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/helper.go b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/helper.go new file mode 100644 index 0000000..e0846a3 --- /dev/null +++ b/vendor/github.com/gogo/protobuf/protoc-gen-gogo/descriptor/helper.go @@ -0,0 +1,390 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package descriptor + +import ( + "strings" +) + +func (msg *DescriptorProto) GetMapFields() (*FieldDescriptorProto, *FieldDescriptorProto) { + if !msg.GetOptions().GetMapEntry() { + return nil, nil + } + return msg.GetField()[0], msg.GetField()[1] +} + +func dotToUnderscore(r rune) rune { + if r == '.' { + return '_' + } + return r +} + +func (field *FieldDescriptorProto) WireType() (wire int) { + switch *field.Type { + case FieldDescriptorProto_TYPE_DOUBLE: + return 1 + case FieldDescriptorProto_TYPE_FLOAT: + return 5 + case FieldDescriptorProto_TYPE_INT64: + return 0 + case FieldDescriptorProto_TYPE_UINT64: + return 0 + case FieldDescriptorProto_TYPE_INT32: + return 0 + case FieldDescriptorProto_TYPE_UINT32: + return 0 + case FieldDescriptorProto_TYPE_FIXED64: + return 1 + case FieldDescriptorProto_TYPE_FIXED32: + return 5 + case FieldDescriptorProto_TYPE_BOOL: + return 0 + case FieldDescriptorProto_TYPE_STRING: + return 2 + case FieldDescriptorProto_TYPE_GROUP: + return 2 + case FieldDescriptorProto_TYPE_MESSAGE: + return 2 + case FieldDescriptorProto_TYPE_BYTES: + return 2 + case FieldDescriptorProto_TYPE_ENUM: + return 0 + case FieldDescriptorProto_TYPE_SFIXED32: + return 5 + case FieldDescriptorProto_TYPE_SFIXED64: + return 1 + case FieldDescriptorProto_TYPE_SINT32: + return 0 + case FieldDescriptorProto_TYPE_SINT64: + return 0 + } + panic("unreachable") +} + +func (field *FieldDescriptorProto) GetKeyUint64() (x uint64) { + packed := field.IsPacked() + wireType := field.WireType() + fieldNumber := field.GetNumber() + if packed { + wireType = 2 + } + x = uint64(uint32(fieldNumber)<<3 | uint32(wireType)) + return x +} + +func (field *FieldDescriptorProto) GetKey3Uint64() (x uint64) { + packed := field.IsPacked3() + wireType := field.WireType() + fieldNumber := field.GetNumber() + if packed { + wireType = 2 + } + x = uint64(uint32(fieldNumber)<<3 | uint32(wireType)) + return x +} + +func (field *FieldDescriptorProto) GetKey() []byte { + x := field.GetKeyUint64() + i := 0 + keybuf := make([]byte, 0) + for i = 0; x > 127; i++ { + keybuf = append(keybuf, 0x80|uint8(x&0x7F)) + x >>= 7 + } + keybuf = append(keybuf, uint8(x)) + return keybuf +} + +func (field *FieldDescriptorProto) GetKey3() []byte { + x := field.GetKey3Uint64() + i := 0 + keybuf := make([]byte, 0) + for i = 0; x > 127; i++ { + keybuf = append(keybuf, 0x80|uint8(x&0x7F)) + x >>= 7 + } + keybuf = append(keybuf, uint8(x)) + return keybuf +} + +func (desc *FileDescriptorSet) GetField(packageName, messageName, fieldName string) *FieldDescriptorProto { + msg := desc.GetMessage(packageName, messageName) + if msg == nil { + return nil + } + for _, field := range msg.GetField() { + if field.GetName() == fieldName { + return field + } + } + return nil +} + +func (file *FileDescriptorProto) GetMessage(typeName string) *DescriptorProto { + for _, msg := range file.GetMessageType() { + if msg.GetName() == typeName { + return msg + } + nes := file.GetNestedMessage(msg, strings.TrimPrefix(typeName, msg.GetName()+".")) + if nes != nil { + return nes + } + } + return nil +} + +func (file *FileDescriptorProto) GetNestedMessage(msg *DescriptorProto, typeName string) *DescriptorProto { + for _, nes := range msg.GetNestedType() { + if nes.GetName() == typeName { + return nes + } + res := file.GetNestedMessage(nes, strings.TrimPrefix(typeName, nes.GetName()+".")) + if res != nil { + return res + } + } + return nil +} + +func (desc *FileDescriptorSet) GetMessage(packageName string, typeName string) *DescriptorProto { + for _, file := range desc.GetFile() { + if strings.Map(dotToUnderscore, file.GetPackage()) != strings.Map(dotToUnderscore, packageName) { + continue + } + for _, msg := range file.GetMessageType() { + if msg.GetName() == typeName { + return msg + } + } + for _, msg := range file.GetMessageType() { + for _, nes := range msg.GetNestedType() { + if nes.GetName() == typeName { + return nes + } + if msg.GetName()+"."+nes.GetName() == typeName { + return nes + } + } + } + } + return nil +} + +func (desc *FileDescriptorSet) IsProto3(packageName string, typeName string) bool { + for _, file := range desc.GetFile() { + if strings.Map(dotToUnderscore, file.GetPackage()) != strings.Map(dotToUnderscore, packageName) { + continue + } + for _, msg := range file.GetMessageType() { + if msg.GetName() == typeName { + return file.GetSyntax() == "proto3" + } + } + for _, msg := range file.GetMessageType() { + for _, nes := range msg.GetNestedType() { + if nes.GetName() == typeName { + return file.GetSyntax() == "proto3" + } + if msg.GetName()+"."+nes.GetName() == typeName { + return file.GetSyntax() == "proto3" + } + } + } + } + return false +} + +func (msg *DescriptorProto) IsExtendable() bool { + return len(msg.GetExtensionRange()) > 0 +} + +func (desc *FileDescriptorSet) FindExtension(packageName string, typeName string, fieldName string) (extPackageName string, field *FieldDescriptorProto) { + parent := desc.GetMessage(packageName, typeName) + if parent == nil { + return "", nil + } + if !parent.IsExtendable() { + return "", nil + } + extendee := "." + packageName + "." + typeName + for _, file := range desc.GetFile() { + for _, ext := range file.GetExtension() { + if strings.Map(dotToUnderscore, file.GetPackage()) == strings.Map(dotToUnderscore, packageName) { + if !(ext.GetExtendee() == typeName || ext.GetExtendee() == extendee) { + continue + } + } else { + if ext.GetExtendee() != extendee { + continue + } + } + if ext.GetName() == fieldName { + return file.GetPackage(), ext + } + } + } + return "", nil +} + +func (desc *FileDescriptorSet) FindExtensionByFieldNumber(packageName string, typeName string, fieldNum int32) (extPackageName string, field *FieldDescriptorProto) { + parent := desc.GetMessage(packageName, typeName) + if parent == nil { + return "", nil + } + if !parent.IsExtendable() { + return "", nil + } + extendee := "." + packageName + "." + typeName + for _, file := range desc.GetFile() { + for _, ext := range file.GetExtension() { + if strings.Map(dotToUnderscore, file.GetPackage()) == strings.Map(dotToUnderscore, packageName) { + if !(ext.GetExtendee() == typeName || ext.GetExtendee() == extendee) { + continue + } + } else { + if ext.GetExtendee() != extendee { + continue + } + } + if ext.GetNumber() == fieldNum { + return file.GetPackage(), ext + } + } + } + return "", nil +} + +func (desc *FileDescriptorSet) FindMessage(packageName string, typeName string, fieldName string) (msgPackageName string, msgName string) { + parent := desc.GetMessage(packageName, typeName) + if parent == nil { + return "", "" + } + field := parent.GetFieldDescriptor(fieldName) + if field == nil { + var extPackageName string + extPackageName, field = desc.FindExtension(packageName, typeName, fieldName) + if field == nil { + return "", "" + } + packageName = extPackageName + } + typeNames := strings.Split(field.GetTypeName(), ".") + if len(typeNames) == 1 { + msg := desc.GetMessage(packageName, typeName) + if msg == nil { + return "", "" + } + return packageName, msg.GetName() + } + if len(typeNames) > 2 { + for i := 1; i < len(typeNames)-1; i++ { + packageName = strings.Join(typeNames[1:len(typeNames)-i], ".") + typeName = strings.Join(typeNames[len(typeNames)-i:], ".") + msg := desc.GetMessage(packageName, typeName) + if msg != nil { + typeNames := strings.Split(msg.GetName(), ".") + if len(typeNames) == 1 { + return packageName, msg.GetName() + } + return strings.Join(typeNames[1:len(typeNames)-1], "."), typeNames[len(typeNames)-1] + } + } + } + return "", "" +} + +func (msg *DescriptorProto) GetFieldDescriptor(fieldName string) *FieldDescriptorProto { + for _, field := range msg.GetField() { + if field.GetName() == fieldName { + return field + } + } + return nil +} + +func (desc *FileDescriptorSet) GetEnum(packageName string, typeName string) *EnumDescriptorProto { + for _, file := range desc.GetFile() { + if strings.Map(dotToUnderscore, file.GetPackage()) != strings.Map(dotToUnderscore, packageName) { + continue + } + for _, enum := range file.GetEnumType() { + if enum.GetName() == typeName { + return enum + } + } + } + return nil +} + +func (f *FieldDescriptorProto) IsEnum() bool { + return *f.Type == FieldDescriptorProto_TYPE_ENUM +} + +func (f *FieldDescriptorProto) IsMessage() bool { + return *f.Type == FieldDescriptorProto_TYPE_MESSAGE +} + +func (f *FieldDescriptorProto) IsBytes() bool { + return *f.Type == FieldDescriptorProto_TYPE_BYTES +} + +func (f *FieldDescriptorProto) IsRepeated() bool { + return f.Label != nil && *f.Label == FieldDescriptorProto_LABEL_REPEATED +} + +func (f *FieldDescriptorProto) IsString() bool { + return *f.Type == FieldDescriptorProto_TYPE_STRING +} + +func (f *FieldDescriptorProto) IsBool() bool { + return *f.Type == FieldDescriptorProto_TYPE_BOOL +} + +func (f *FieldDescriptorProto) IsRequired() bool { + return f.Label != nil && *f.Label == FieldDescriptorProto_LABEL_REQUIRED +} + +func (f *FieldDescriptorProto) IsPacked() bool { + return f.Options != nil && f.GetOptions().GetPacked() +} + +func (f *FieldDescriptorProto) IsPacked3() bool { + if f.IsRepeated() && f.IsScalar() { + if f.Options == nil || f.GetOptions().Packed == nil { + return true + } + return f.Options != nil && f.GetOptions().GetPacked() + } + return false +} + +func (m *DescriptorProto) HasExtension() bool { + return len(m.ExtensionRange) > 0 +} diff --git a/vendor/github.com/golang/protobuf/LICENSE b/vendor/github.com/golang/protobuf/LICENSE index 1b1b192..0f64693 100644 --- a/vendor/github.com/golang/protobuf/LICENSE +++ b/vendor/github.com/golang/protobuf/LICENSE @@ -1,7 +1,4 @@ -Go support for Protocol Buffers - Google's data interchange format - Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are diff --git a/vendor/github.com/golang/protobuf/jsonpb/decode.go b/vendor/github.com/golang/protobuf/jsonpb/decode.go new file mode 100644 index 0000000..60e82ca --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/decode.go @@ -0,0 +1,524 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package jsonpb + +import ( + "encoding/json" + "errors" + "fmt" + "io" + "math" + "reflect" + "strconv" + "strings" + "time" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/encoding/protojson" + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapJSONUnmarshalV2 = false + +// UnmarshalNext unmarshals the next JSON object from d into m. +func UnmarshalNext(d *json.Decoder, m proto.Message) error { + return new(Unmarshaler).UnmarshalNext(d, m) +} + +// Unmarshal unmarshals a JSON object from r into m. +func Unmarshal(r io.Reader, m proto.Message) error { + return new(Unmarshaler).Unmarshal(r, m) +} + +// UnmarshalString unmarshals a JSON object from s into m. +func UnmarshalString(s string, m proto.Message) error { + return new(Unmarshaler).Unmarshal(strings.NewReader(s), m) +} + +// Unmarshaler is a configurable object for converting from a JSON +// representation to a protocol buffer object. +type Unmarshaler struct { + // AllowUnknownFields specifies whether to allow messages to contain + // unknown JSON fields, as opposed to failing to unmarshal. + AllowUnknownFields bool + + // AnyResolver is used to resolve the google.protobuf.Any well-known type. + // If unset, the global registry is used by default. + AnyResolver AnyResolver +} + +// JSONPBUnmarshaler is implemented by protobuf messages that customize the way +// they are unmarshaled from JSON. Messages that implement this should also +// implement JSONPBMarshaler so that the custom format can be produced. +// +// The JSON unmarshaling must follow the JSON to proto specification: +// https://developers.google.com/protocol-buffers/docs/proto3#json +// +// Deprecated: Custom types should implement protobuf reflection instead. +type JSONPBUnmarshaler interface { + UnmarshalJSONPB(*Unmarshaler, []byte) error +} + +// Unmarshal unmarshals a JSON object from r into m. +func (u *Unmarshaler) Unmarshal(r io.Reader, m proto.Message) error { + return u.UnmarshalNext(json.NewDecoder(r), m) +} + +// UnmarshalNext unmarshals the next JSON object from d into m. +func (u *Unmarshaler) UnmarshalNext(d *json.Decoder, m proto.Message) error { + if m == nil { + return errors.New("invalid nil message") + } + + // Parse the next JSON object from the stream. + raw := json.RawMessage{} + if err := d.Decode(&raw); err != nil { + return err + } + + // Check for custom unmarshalers first since they may not properly + // implement protobuf reflection that the logic below relies on. + if jsu, ok := m.(JSONPBUnmarshaler); ok { + return jsu.UnmarshalJSONPB(u, raw) + } + + mr := proto.MessageReflect(m) + + // NOTE: For historical reasons, a top-level null is treated as a noop. + // This is incorrect, but kept for compatibility. + if string(raw) == "null" && mr.Descriptor().FullName() != "google.protobuf.Value" { + return nil + } + + if wrapJSONUnmarshalV2 { + // NOTE: If input message is non-empty, we need to preserve merge semantics + // of the old jsonpb implementation. These semantics are not supported by + // the protobuf JSON specification. + isEmpty := true + mr.Range(func(protoreflect.FieldDescriptor, protoreflect.Value) bool { + isEmpty = false // at least one iteration implies non-empty + return false + }) + if !isEmpty { + // Perform unmarshaling into a newly allocated, empty message. + mr = mr.New() + + // Use a defer to copy all unmarshaled fields into the original message. + dst := proto.MessageReflect(m) + defer mr.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + dst.Set(fd, v) + return true + }) + } + + // Unmarshal using the v2 JSON unmarshaler. + opts := protojson.UnmarshalOptions{ + DiscardUnknown: u.AllowUnknownFields, + } + if u.AnyResolver != nil { + opts.Resolver = anyResolver{u.AnyResolver} + } + return opts.Unmarshal(raw, mr.Interface()) + } else { + if err := u.unmarshalMessage(mr, raw); err != nil { + return err + } + return protoV2.CheckInitialized(mr.Interface()) + } +} + +func (u *Unmarshaler) unmarshalMessage(m protoreflect.Message, in []byte) error { + md := m.Descriptor() + fds := md.Fields() + + if jsu, ok := proto.MessageV1(m.Interface()).(JSONPBUnmarshaler); ok { + return jsu.UnmarshalJSONPB(u, in) + } + + if string(in) == "null" && md.FullName() != "google.protobuf.Value" { + return nil + } + + switch wellKnownType(md.FullName()) { + case "Any": + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return err + } + + rawTypeURL, ok := jsonObject["@type"] + if !ok { + return errors.New("Any JSON doesn't have '@type'") + } + typeURL, err := unquoteString(string(rawTypeURL)) + if err != nil { + return fmt.Errorf("can't unmarshal Any's '@type': %q", rawTypeURL) + } + m.Set(fds.ByNumber(1), protoreflect.ValueOfString(typeURL)) + + var m2 protoreflect.Message + if u.AnyResolver != nil { + mi, err := u.AnyResolver.Resolve(typeURL) + if err != nil { + return err + } + m2 = proto.MessageReflect(mi) + } else { + mt, err := protoregistry.GlobalTypes.FindMessageByURL(typeURL) + if err != nil { + if err == protoregistry.NotFound { + return fmt.Errorf("could not resolve Any message type: %v", typeURL) + } + return err + } + m2 = mt.New() + } + + if wellKnownType(m2.Descriptor().FullName()) != "" { + rawValue, ok := jsonObject["value"] + if !ok { + return errors.New("Any JSON doesn't have 'value'") + } + if err := u.unmarshalMessage(m2, rawValue); err != nil { + return fmt.Errorf("can't unmarshal Any nested proto %v: %v", typeURL, err) + } + } else { + delete(jsonObject, "@type") + rawJSON, err := json.Marshal(jsonObject) + if err != nil { + return fmt.Errorf("can't generate JSON for Any's nested proto to be unmarshaled: %v", err) + } + if err = u.unmarshalMessage(m2, rawJSON); err != nil { + return fmt.Errorf("can't unmarshal Any nested proto %v: %v", typeURL, err) + } + } + + rawWire, err := protoV2.Marshal(m2.Interface()) + if err != nil { + return fmt.Errorf("can't marshal proto %v into Any.Value: %v", typeURL, err) + } + m.Set(fds.ByNumber(2), protoreflect.ValueOfBytes(rawWire)) + return nil + case "BoolValue", "BytesValue", "StringValue", + "Int32Value", "UInt32Value", "FloatValue", + "Int64Value", "UInt64Value", "DoubleValue": + fd := fds.ByNumber(1) + v, err := u.unmarshalValue(m.NewField(fd), in, fd) + if err != nil { + return err + } + m.Set(fd, v) + return nil + case "Duration": + v, err := unquoteString(string(in)) + if err != nil { + return err + } + d, err := time.ParseDuration(v) + if err != nil { + return fmt.Errorf("bad Duration: %v", err) + } + + sec := d.Nanoseconds() / 1e9 + nsec := d.Nanoseconds() % 1e9 + m.Set(fds.ByNumber(1), protoreflect.ValueOfInt64(int64(sec))) + m.Set(fds.ByNumber(2), protoreflect.ValueOfInt32(int32(nsec))) + return nil + case "Timestamp": + v, err := unquoteString(string(in)) + if err != nil { + return err + } + t, err := time.Parse(time.RFC3339Nano, v) + if err != nil { + return fmt.Errorf("bad Timestamp: %v", err) + } + + sec := t.Unix() + nsec := t.Nanosecond() + m.Set(fds.ByNumber(1), protoreflect.ValueOfInt64(int64(sec))) + m.Set(fds.ByNumber(2), protoreflect.ValueOfInt32(int32(nsec))) + return nil + case "Value": + switch { + case string(in) == "null": + m.Set(fds.ByNumber(1), protoreflect.ValueOfEnum(0)) + case string(in) == "true": + m.Set(fds.ByNumber(4), protoreflect.ValueOfBool(true)) + case string(in) == "false": + m.Set(fds.ByNumber(4), protoreflect.ValueOfBool(false)) + case hasPrefixAndSuffix('"', in, '"'): + s, err := unquoteString(string(in)) + if err != nil { + return fmt.Errorf("unrecognized type for Value %q", in) + } + m.Set(fds.ByNumber(3), protoreflect.ValueOfString(s)) + case hasPrefixAndSuffix('[', in, ']'): + v := m.Mutable(fds.ByNumber(6)) + return u.unmarshalMessage(v.Message(), in) + case hasPrefixAndSuffix('{', in, '}'): + v := m.Mutable(fds.ByNumber(5)) + return u.unmarshalMessage(v.Message(), in) + default: + f, err := strconv.ParseFloat(string(in), 0) + if err != nil { + return fmt.Errorf("unrecognized type for Value %q", in) + } + m.Set(fds.ByNumber(2), protoreflect.ValueOfFloat64(f)) + } + return nil + case "ListValue": + var jsonArray []json.RawMessage + if err := json.Unmarshal(in, &jsonArray); err != nil { + return fmt.Errorf("bad ListValue: %v", err) + } + + lv := m.Mutable(fds.ByNumber(1)).List() + for _, raw := range jsonArray { + ve := lv.NewElement() + if err := u.unmarshalMessage(ve.Message(), raw); err != nil { + return err + } + lv.Append(ve) + } + return nil + case "Struct": + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return fmt.Errorf("bad StructValue: %v", err) + } + + mv := m.Mutable(fds.ByNumber(1)).Map() + for key, raw := range jsonObject { + kv := protoreflect.ValueOf(key).MapKey() + vv := mv.NewValue() + if err := u.unmarshalMessage(vv.Message(), raw); err != nil { + return fmt.Errorf("bad value in StructValue for key %q: %v", key, err) + } + mv.Set(kv, vv) + } + return nil + } + + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return err + } + + // Handle known fields. + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + if fd.IsWeak() && fd.Message().IsPlaceholder() { + continue // weak reference is not linked in + } + + // Search for any raw JSON value associated with this field. + var raw json.RawMessage + name := string(fd.Name()) + if fd.Kind() == protoreflect.GroupKind { + name = string(fd.Message().Name()) + } + if v, ok := jsonObject[name]; ok { + delete(jsonObject, name) + raw = v + } + name = string(fd.JSONName()) + if v, ok := jsonObject[name]; ok { + delete(jsonObject, name) + raw = v + } + + field := m.NewField(fd) + // Unmarshal the field value. + if raw == nil || (string(raw) == "null" && !isSingularWellKnownValue(fd) && !isSingularJSONPBUnmarshaler(field, fd)) { + continue + } + v, err := u.unmarshalValue(field, raw, fd) + if err != nil { + return err + } + m.Set(fd, v) + } + + // Handle extension fields. + for name, raw := range jsonObject { + if !strings.HasPrefix(name, "[") || !strings.HasSuffix(name, "]") { + continue + } + + // Resolve the extension field by name. + xname := protoreflect.FullName(name[len("[") : len(name)-len("]")]) + xt, _ := protoregistry.GlobalTypes.FindExtensionByName(xname) + if xt == nil && isMessageSet(md) { + xt, _ = protoregistry.GlobalTypes.FindExtensionByName(xname.Append("message_set_extension")) + } + if xt == nil { + continue + } + delete(jsonObject, name) + fd := xt.TypeDescriptor() + if fd.ContainingMessage().FullName() != m.Descriptor().FullName() { + return fmt.Errorf("extension field %q does not extend message %q", xname, m.Descriptor().FullName()) + } + + field := m.NewField(fd) + // Unmarshal the field value. + if raw == nil || (string(raw) == "null" && !isSingularWellKnownValue(fd) && !isSingularJSONPBUnmarshaler(field, fd)) { + continue + } + v, err := u.unmarshalValue(field, raw, fd) + if err != nil { + return err + } + m.Set(fd, v) + } + + if !u.AllowUnknownFields && len(jsonObject) > 0 { + for name := range jsonObject { + return fmt.Errorf("unknown field %q in %v", name, md.FullName()) + } + } + return nil +} + +func isSingularWellKnownValue(fd protoreflect.FieldDescriptor) bool { + if md := fd.Message(); md != nil { + return md.FullName() == "google.protobuf.Value" && fd.Cardinality() != protoreflect.Repeated + } + return false +} + +func isSingularJSONPBUnmarshaler(v protoreflect.Value, fd protoreflect.FieldDescriptor) bool { + if fd.Message() != nil && fd.Cardinality() != protoreflect.Repeated { + _, ok := proto.MessageV1(v.Interface()).(JSONPBUnmarshaler) + return ok + } + return false +} + +func (u *Unmarshaler) unmarshalValue(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + switch { + case fd.IsList(): + var jsonArray []json.RawMessage + if err := json.Unmarshal(in, &jsonArray); err != nil { + return v, err + } + lv := v.List() + for _, raw := range jsonArray { + ve, err := u.unmarshalSingularValue(lv.NewElement(), raw, fd) + if err != nil { + return v, err + } + lv.Append(ve) + } + return v, nil + case fd.IsMap(): + var jsonObject map[string]json.RawMessage + if err := json.Unmarshal(in, &jsonObject); err != nil { + return v, err + } + kfd := fd.MapKey() + vfd := fd.MapValue() + mv := v.Map() + for key, raw := range jsonObject { + var kv protoreflect.MapKey + if kfd.Kind() == protoreflect.StringKind { + kv = protoreflect.ValueOf(key).MapKey() + } else { + v, err := u.unmarshalSingularValue(kfd.Default(), []byte(key), kfd) + if err != nil { + return v, err + } + kv = v.MapKey() + } + + vv, err := u.unmarshalSingularValue(mv.NewValue(), raw, vfd) + if err != nil { + return v, err + } + mv.Set(kv, vv) + } + return v, nil + default: + return u.unmarshalSingularValue(v, in, fd) + } +} + +var nonFinite = map[string]float64{ + `"NaN"`: math.NaN(), + `"Infinity"`: math.Inf(+1), + `"-Infinity"`: math.Inf(-1), +} + +func (u *Unmarshaler) unmarshalSingularValue(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + switch fd.Kind() { + case protoreflect.BoolKind: + return unmarshalValue(in, new(bool)) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + return unmarshalValue(trimQuote(in), new(int32)) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return unmarshalValue(trimQuote(in), new(int64)) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + return unmarshalValue(trimQuote(in), new(uint32)) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return unmarshalValue(trimQuote(in), new(uint64)) + case protoreflect.FloatKind: + if f, ok := nonFinite[string(in)]; ok { + return protoreflect.ValueOfFloat32(float32(f)), nil + } + return unmarshalValue(trimQuote(in), new(float32)) + case protoreflect.DoubleKind: + if f, ok := nonFinite[string(in)]; ok { + return protoreflect.ValueOfFloat64(float64(f)), nil + } + return unmarshalValue(trimQuote(in), new(float64)) + case protoreflect.StringKind: + return unmarshalValue(in, new(string)) + case protoreflect.BytesKind: + return unmarshalValue(in, new([]byte)) + case protoreflect.EnumKind: + if hasPrefixAndSuffix('"', in, '"') { + vd := fd.Enum().Values().ByName(protoreflect.Name(trimQuote(in))) + if vd == nil { + return v, fmt.Errorf("unknown value %q for enum %s", in, fd.Enum().FullName()) + } + return protoreflect.ValueOfEnum(vd.Number()), nil + } + return unmarshalValue(in, new(protoreflect.EnumNumber)) + case protoreflect.MessageKind, protoreflect.GroupKind: + err := u.unmarshalMessage(v.Message(), in) + return v, err + default: + panic(fmt.Sprintf("invalid kind %v", fd.Kind())) + } +} + +func unmarshalValue(in []byte, v interface{}) (protoreflect.Value, error) { + err := json.Unmarshal(in, v) + return protoreflect.ValueOf(reflect.ValueOf(v).Elem().Interface()), err +} + +func unquoteString(in string) (out string, err error) { + err = json.Unmarshal([]byte(in), &out) + return out, err +} + +func hasPrefixAndSuffix(prefix byte, in []byte, suffix byte) bool { + if len(in) >= 2 && in[0] == prefix && in[len(in)-1] == suffix { + return true + } + return false +} + +// trimQuote is like unquoteString but simply strips surrounding quotes. +// This is incorrect, but is behavior done by the legacy implementation. +func trimQuote(in []byte) []byte { + if len(in) >= 2 && in[0] == '"' && in[len(in)-1] == '"' { + in = in[1 : len(in)-1] + } + return in +} diff --git a/vendor/github.com/golang/protobuf/jsonpb/encode.go b/vendor/github.com/golang/protobuf/jsonpb/encode.go new file mode 100644 index 0000000..685c80a --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/encode.go @@ -0,0 +1,559 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package jsonpb + +import ( + "encoding/json" + "errors" + "fmt" + "io" + "math" + "reflect" + "sort" + "strconv" + "strings" + "time" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/encoding/protojson" + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapJSONMarshalV2 = false + +// Marshaler is a configurable object for marshaling protocol buffer messages +// to the specified JSON representation. +type Marshaler struct { + // OrigName specifies whether to use the original protobuf name for fields. + OrigName bool + + // EnumsAsInts specifies whether to render enum values as integers, + // as opposed to string values. + EnumsAsInts bool + + // EmitDefaults specifies whether to render fields with zero values. + EmitDefaults bool + + // Indent controls whether the output is compact or not. + // If empty, the output is compact JSON. Otherwise, every JSON object + // entry and JSON array value will be on its own line. + // Each line will be preceded by repeated copies of Indent, where the + // number of copies is the current indentation depth. + Indent string + + // AnyResolver is used to resolve the google.protobuf.Any well-known type. + // If unset, the global registry is used by default. + AnyResolver AnyResolver +} + +// JSONPBMarshaler is implemented by protobuf messages that customize the +// way they are marshaled to JSON. Messages that implement this should also +// implement JSONPBUnmarshaler so that the custom format can be parsed. +// +// The JSON marshaling must follow the proto to JSON specification: +// https://developers.google.com/protocol-buffers/docs/proto3#json +// +// Deprecated: Custom types should implement protobuf reflection instead. +type JSONPBMarshaler interface { + MarshalJSONPB(*Marshaler) ([]byte, error) +} + +// Marshal serializes a protobuf message as JSON into w. +func (jm *Marshaler) Marshal(w io.Writer, m proto.Message) error { + b, err := jm.marshal(m) + if len(b) > 0 { + if _, err := w.Write(b); err != nil { + return err + } + } + return err +} + +// MarshalToString serializes a protobuf message as JSON in string form. +func (jm *Marshaler) MarshalToString(m proto.Message) (string, error) { + b, err := jm.marshal(m) + if err != nil { + return "", err + } + return string(b), nil +} + +func (jm *Marshaler) marshal(m proto.Message) ([]byte, error) { + v := reflect.ValueOf(m) + if m == nil || (v.Kind() == reflect.Ptr && v.IsNil()) { + return nil, errors.New("Marshal called with nil") + } + + // Check for custom marshalers first since they may not properly + // implement protobuf reflection that the logic below relies on. + if jsm, ok := m.(JSONPBMarshaler); ok { + return jsm.MarshalJSONPB(jm) + } + + if wrapJSONMarshalV2 { + opts := protojson.MarshalOptions{ + UseProtoNames: jm.OrigName, + UseEnumNumbers: jm.EnumsAsInts, + EmitUnpopulated: jm.EmitDefaults, + Indent: jm.Indent, + } + if jm.AnyResolver != nil { + opts.Resolver = anyResolver{jm.AnyResolver} + } + return opts.Marshal(proto.MessageReflect(m).Interface()) + } else { + // Check for unpopulated required fields first. + m2 := proto.MessageReflect(m) + if err := protoV2.CheckInitialized(m2.Interface()); err != nil { + return nil, err + } + + w := jsonWriter{Marshaler: jm} + err := w.marshalMessage(m2, "", "") + return w.buf, err + } +} + +type jsonWriter struct { + *Marshaler + buf []byte +} + +func (w *jsonWriter) write(s string) { + w.buf = append(w.buf, s...) +} + +func (w *jsonWriter) marshalMessage(m protoreflect.Message, indent, typeURL string) error { + if jsm, ok := proto.MessageV1(m.Interface()).(JSONPBMarshaler); ok { + b, err := jsm.MarshalJSONPB(w.Marshaler) + if err != nil { + return err + } + if typeURL != "" { + // we are marshaling this object to an Any type + var js map[string]*json.RawMessage + if err = json.Unmarshal(b, &js); err != nil { + return fmt.Errorf("type %T produced invalid JSON: %v", m.Interface(), err) + } + turl, err := json.Marshal(typeURL) + if err != nil { + return fmt.Errorf("failed to marshal type URL %q to JSON: %v", typeURL, err) + } + js["@type"] = (*json.RawMessage)(&turl) + if b, err = json.Marshal(js); err != nil { + return err + } + } + w.write(string(b)) + return nil + } + + md := m.Descriptor() + fds := md.Fields() + + // Handle well-known types. + const secondInNanos = int64(time.Second / time.Nanosecond) + switch wellKnownType(md.FullName()) { + case "Any": + return w.marshalAny(m, indent) + case "BoolValue", "BytesValue", "StringValue", + "Int32Value", "UInt32Value", "FloatValue", + "Int64Value", "UInt64Value", "DoubleValue": + fd := fds.ByNumber(1) + return w.marshalValue(fd, m.Get(fd), indent) + case "Duration": + const maxSecondsInDuration = 315576000000 + // "Generated output always contains 0, 3, 6, or 9 fractional digits, + // depending on required precision." + s := m.Get(fds.ByNumber(1)).Int() + ns := m.Get(fds.ByNumber(2)).Int() + if s < -maxSecondsInDuration || s > maxSecondsInDuration { + return fmt.Errorf("seconds out of range %v", s) + } + if ns <= -secondInNanos || ns >= secondInNanos { + return fmt.Errorf("ns out of range (%v, %v)", -secondInNanos, secondInNanos) + } + if (s > 0 && ns < 0) || (s < 0 && ns > 0) { + return errors.New("signs of seconds and nanos do not match") + } + var sign string + if s < 0 || ns < 0 { + sign, s, ns = "-", -1*s, -1*ns + } + x := fmt.Sprintf("%s%d.%09d", sign, s, ns) + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + w.write(fmt.Sprintf(`"%vs"`, x)) + return nil + case "Timestamp": + // "RFC 3339, where generated output will always be Z-normalized + // and uses 0, 3, 6 or 9 fractional digits." + s := m.Get(fds.ByNumber(1)).Int() + ns := m.Get(fds.ByNumber(2)).Int() + if ns < 0 || ns >= secondInNanos { + return fmt.Errorf("ns out of range [0, %v)", secondInNanos) + } + t := time.Unix(s, ns).UTC() + // time.RFC3339Nano isn't exactly right (we need to get 3/6/9 fractional digits). + x := t.Format("2006-01-02T15:04:05.000000000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + w.write(fmt.Sprintf(`"%vZ"`, x)) + return nil + case "Value": + // JSON value; which is a null, number, string, bool, object, or array. + od := md.Oneofs().Get(0) + fd := m.WhichOneof(od) + if fd == nil { + return errors.New("nil Value") + } + return w.marshalValue(fd, m.Get(fd), indent) + case "Struct", "ListValue": + // JSON object or array. + fd := fds.ByNumber(1) + return w.marshalValue(fd, m.Get(fd), indent) + } + + w.write("{") + if w.Indent != "" { + w.write("\n") + } + + firstField := true + if typeURL != "" { + if err := w.marshalTypeURL(indent, typeURL); err != nil { + return err + } + firstField = false + } + + for i := 0; i < fds.Len(); { + fd := fds.Get(i) + if od := fd.ContainingOneof(); od != nil { + fd = m.WhichOneof(od) + i += od.Fields().Len() + if fd == nil { + continue + } + } else { + i++ + } + + v := m.Get(fd) + + if !m.Has(fd) { + if !w.EmitDefaults || fd.ContainingOneof() != nil { + continue + } + if fd.Cardinality() != protoreflect.Repeated && (fd.Message() != nil || fd.Syntax() == protoreflect.Proto2) { + v = protoreflect.Value{} // use "null" for singular messages or proto2 scalars + } + } + + if !firstField { + w.writeComma() + } + if err := w.marshalField(fd, v, indent); err != nil { + return err + } + firstField = false + } + + // Handle proto2 extensions. + if md.ExtensionRanges().Len() > 0 { + // Collect a sorted list of all extension descriptor and values. + type ext struct { + desc protoreflect.FieldDescriptor + val protoreflect.Value + } + var exts []ext + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + exts = append(exts, ext{fd, v}) + } + return true + }) + sort.Slice(exts, func(i, j int) bool { + return exts[i].desc.Number() < exts[j].desc.Number() + }) + + for _, ext := range exts { + if !firstField { + w.writeComma() + } + if err := w.marshalField(ext.desc, ext.val, indent); err != nil { + return err + } + firstField = false + } + } + + if w.Indent != "" { + w.write("\n") + w.write(indent) + } + w.write("}") + return nil +} + +func (w *jsonWriter) writeComma() { + if w.Indent != "" { + w.write(",\n") + } else { + w.write(",") + } +} + +func (w *jsonWriter) marshalAny(m protoreflect.Message, indent string) error { + // "If the Any contains a value that has a special JSON mapping, + // it will be converted as follows: {"@type": xxx, "value": yyy}. + // Otherwise, the value will be converted into a JSON object, + // and the "@type" field will be inserted to indicate the actual data type." + md := m.Descriptor() + typeURL := m.Get(md.Fields().ByNumber(1)).String() + rawVal := m.Get(md.Fields().ByNumber(2)).Bytes() + + var m2 protoreflect.Message + if w.AnyResolver != nil { + mi, err := w.AnyResolver.Resolve(typeURL) + if err != nil { + return err + } + m2 = proto.MessageReflect(mi) + } else { + mt, err := protoregistry.GlobalTypes.FindMessageByURL(typeURL) + if err != nil { + return err + } + m2 = mt.New() + } + + if err := protoV2.Unmarshal(rawVal, m2.Interface()); err != nil { + return err + } + + if wellKnownType(m2.Descriptor().FullName()) == "" { + return w.marshalMessage(m2, indent, typeURL) + } + + w.write("{") + if w.Indent != "" { + w.write("\n") + } + if err := w.marshalTypeURL(indent, typeURL); err != nil { + return err + } + w.writeComma() + if w.Indent != "" { + w.write(indent) + w.write(w.Indent) + w.write(`"value": `) + } else { + w.write(`"value":`) + } + if err := w.marshalMessage(m2, indent+w.Indent, ""); err != nil { + return err + } + if w.Indent != "" { + w.write("\n") + w.write(indent) + } + w.write("}") + return nil +} + +func (w *jsonWriter) marshalTypeURL(indent, typeURL string) error { + if w.Indent != "" { + w.write(indent) + w.write(w.Indent) + } + w.write(`"@type":`) + if w.Indent != "" { + w.write(" ") + } + b, err := json.Marshal(typeURL) + if err != nil { + return err + } + w.write(string(b)) + return nil +} + +// marshalField writes field description and value to the Writer. +func (w *jsonWriter) marshalField(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error { + if w.Indent != "" { + w.write(indent) + w.write(w.Indent) + } + w.write(`"`) + switch { + case fd.IsExtension(): + // For message set, use the fname of the message as the extension name. + name := string(fd.FullName()) + if isMessageSet(fd.ContainingMessage()) { + name = strings.TrimSuffix(name, ".message_set_extension") + } + + w.write("[" + name + "]") + case w.OrigName: + name := string(fd.Name()) + if fd.Kind() == protoreflect.GroupKind { + name = string(fd.Message().Name()) + } + w.write(name) + default: + w.write(string(fd.JSONName())) + } + w.write(`":`) + if w.Indent != "" { + w.write(" ") + } + return w.marshalValue(fd, v, indent) +} + +func (w *jsonWriter) marshalValue(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error { + switch { + case fd.IsList(): + w.write("[") + comma := "" + lv := v.List() + for i := 0; i < lv.Len(); i++ { + w.write(comma) + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + w.write(w.Indent) + } + if err := w.marshalSingularValue(fd, lv.Get(i), indent+w.Indent); err != nil { + return err + } + comma = "," + } + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + } + w.write("]") + return nil + case fd.IsMap(): + kfd := fd.MapKey() + vfd := fd.MapValue() + mv := v.Map() + + // Collect a sorted list of all map keys and values. + type entry struct{ key, val protoreflect.Value } + var entries []entry + mv.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + entries = append(entries, entry{k.Value(), v}) + return true + }) + sort.Slice(entries, func(i, j int) bool { + switch kfd.Kind() { + case protoreflect.BoolKind: + return !entries[i].key.Bool() && entries[j].key.Bool() + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind, protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return entries[i].key.Int() < entries[j].key.Int() + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind, protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return entries[i].key.Uint() < entries[j].key.Uint() + case protoreflect.StringKind: + return entries[i].key.String() < entries[j].key.String() + default: + panic("invalid kind") + } + }) + + w.write(`{`) + comma := "" + for _, entry := range entries { + w.write(comma) + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + w.write(w.Indent) + } + + s := fmt.Sprint(entry.key.Interface()) + b, err := json.Marshal(s) + if err != nil { + return err + } + w.write(string(b)) + + w.write(`:`) + if w.Indent != "" { + w.write(` `) + } + + if err := w.marshalSingularValue(vfd, entry.val, indent+w.Indent); err != nil { + return err + } + comma = "," + } + if w.Indent != "" { + w.write("\n") + w.write(indent) + w.write(w.Indent) + } + w.write(`}`) + return nil + default: + return w.marshalSingularValue(fd, v, indent) + } +} + +func (w *jsonWriter) marshalSingularValue(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string) error { + switch { + case !v.IsValid(): + w.write("null") + return nil + case fd.Message() != nil: + return w.marshalMessage(v.Message(), indent+w.Indent, "") + case fd.Enum() != nil: + if fd.Enum().FullName() == "google.protobuf.NullValue" { + w.write("null") + return nil + } + + vd := fd.Enum().Values().ByNumber(v.Enum()) + if vd == nil || w.EnumsAsInts { + w.write(strconv.Itoa(int(v.Enum()))) + } else { + w.write(`"` + string(vd.Name()) + `"`) + } + return nil + default: + switch v.Interface().(type) { + case float32, float64: + switch { + case math.IsInf(v.Float(), +1): + w.write(`"Infinity"`) + return nil + case math.IsInf(v.Float(), -1): + w.write(`"-Infinity"`) + return nil + case math.IsNaN(v.Float()): + w.write(`"NaN"`) + return nil + } + case int64, uint64: + w.write(fmt.Sprintf(`"%d"`, v.Interface())) + return nil + } + + b, err := json.Marshal(v.Interface()) + if err != nil { + return err + } + w.write(string(b)) + return nil + } +} diff --git a/vendor/github.com/golang/protobuf/jsonpb/json.go b/vendor/github.com/golang/protobuf/jsonpb/json.go new file mode 100644 index 0000000..480e244 --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/json.go @@ -0,0 +1,69 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package jsonpb provides functionality to marshal and unmarshal between a +// protocol buffer message and JSON. It follows the specification at +// https://developers.google.com/protocol-buffers/docs/proto3#json. +// +// Do not rely on the default behavior of the standard encoding/json package +// when called on generated message types as it does not operate correctly. +// +// Deprecated: Use the "google.golang.org/protobuf/encoding/protojson" +// package instead. +package jsonpb + +import ( + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoimpl" +) + +// AnyResolver takes a type URL, present in an Any message, +// and resolves it into an instance of the associated message. +type AnyResolver interface { + Resolve(typeURL string) (proto.Message, error) +} + +type anyResolver struct{ AnyResolver } + +func (r anyResolver) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + return r.FindMessageByURL(string(message)) +} + +func (r anyResolver) FindMessageByURL(url string) (protoreflect.MessageType, error) { + m, err := r.Resolve(url) + if err != nil { + return nil, err + } + return protoimpl.X.MessageTypeOf(m), nil +} + +func (r anyResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + return protoregistry.GlobalTypes.FindExtensionByName(field) +} + +func (r anyResolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + return protoregistry.GlobalTypes.FindExtensionByNumber(message, field) +} + +func wellKnownType(s protoreflect.FullName) string { + if s.Parent() == "google.protobuf" { + switch s.Name() { + case "Empty", "Any", + "BoolValue", "BytesValue", "StringValue", + "Int32Value", "UInt32Value", "FloatValue", + "Int64Value", "UInt64Value", "DoubleValue", + "Duration", "Timestamp", + "NullValue", "Struct", "Value", "ListValue": + return string(s.Name()) + } + } + return "" +} + +func isMessageSet(md protoreflect.MessageDescriptor) bool { + ms, ok := md.(interface{ IsMessageSet() bool }) + return ok && ms.IsMessageSet() +} diff --git a/vendor/github.com/golang/protobuf/proto/buffer.go b/vendor/github.com/golang/protobuf/proto/buffer.go new file mode 100644 index 0000000..e810e6f --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/buffer.go @@ -0,0 +1,324 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "errors" + "fmt" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + WireVarint = 0 + WireFixed32 = 5 + WireFixed64 = 1 + WireBytes = 2 + WireStartGroup = 3 + WireEndGroup = 4 +) + +// EncodeVarint returns the varint encoded bytes of v. +func EncodeVarint(v uint64) []byte { + return protowire.AppendVarint(nil, v) +} + +// SizeVarint returns the length of the varint encoded bytes of v. +// This is equal to len(EncodeVarint(v)). +func SizeVarint(v uint64) int { + return protowire.SizeVarint(v) +} + +// DecodeVarint parses a varint encoded integer from b, +// returning the integer value and the length of the varint. +// It returns (0, 0) if there is a parse error. +func DecodeVarint(b []byte) (uint64, int) { + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, 0 + } + return v, n +} + +// Buffer is a buffer for encoding and decoding the protobuf wire format. +// It may be reused between invocations to reduce memory usage. +type Buffer struct { + buf []byte + idx int + deterministic bool +} + +// NewBuffer allocates a new Buffer initialized with buf, +// where the contents of buf are considered the unread portion of the buffer. +func NewBuffer(buf []byte) *Buffer { + return &Buffer{buf: buf} +} + +// SetDeterministic specifies whether to use deterministic serialization. +// +// Deterministic serialization guarantees that for a given binary, equal +// messages will always be serialized to the same bytes. This implies: +// +// - Repeated serialization of a message will return the same bytes. +// - Different processes of the same binary (which may be executing on +// different machines) will serialize equal messages to the same bytes. +// +// Note that the deterministic serialization is NOT canonical across +// languages. It is not guaranteed to remain stable over time. It is unstable +// across different builds with schema changes due to unknown fields. +// Users who need canonical serialization (e.g., persistent storage in a +// canonical form, fingerprinting, etc.) should define their own +// canonicalization specification and implement their own serializer rather +// than relying on this API. +// +// If deterministic serialization is requested, map entries will be sorted +// by keys in lexographical order. This is an implementation detail and +// subject to change. +func (b *Buffer) SetDeterministic(deterministic bool) { + b.deterministic = deterministic +} + +// SetBuf sets buf as the internal buffer, +// where the contents of buf are considered the unread portion of the buffer. +func (b *Buffer) SetBuf(buf []byte) { + b.buf = buf + b.idx = 0 +} + +// Reset clears the internal buffer of all written and unread data. +func (b *Buffer) Reset() { + b.buf = b.buf[:0] + b.idx = 0 +} + +// Bytes returns the internal buffer. +func (b *Buffer) Bytes() []byte { + return b.buf +} + +// Unread returns the unread portion of the buffer. +func (b *Buffer) Unread() []byte { + return b.buf[b.idx:] +} + +// Marshal appends the wire-format encoding of m to the buffer. +func (b *Buffer) Marshal(m Message) error { + var err error + b.buf, err = marshalAppend(b.buf, m, b.deterministic) + return err +} + +// Unmarshal parses the wire-format message in the buffer and +// places the decoded results in m. +// It does not reset m before unmarshaling. +func (b *Buffer) Unmarshal(m Message) error { + err := UnmarshalMerge(b.Unread(), m) + b.idx = len(b.buf) + return err +} + +type unknownFields struct{ XXX_unrecognized protoimpl.UnknownFields } + +func (m *unknownFields) String() string { panic("not implemented") } +func (m *unknownFields) Reset() { panic("not implemented") } +func (m *unknownFields) ProtoMessage() { panic("not implemented") } + +// DebugPrint dumps the encoded bytes of b with a header and footer including s +// to stdout. This is only intended for debugging. +func (*Buffer) DebugPrint(s string, b []byte) { + m := MessageReflect(new(unknownFields)) + m.SetUnknown(b) + b, _ = prototext.MarshalOptions{AllowPartial: true, Indent: "\t"}.Marshal(m.Interface()) + fmt.Printf("==== %s ====\n%s==== %s ====\n", s, b, s) +} + +// EncodeVarint appends an unsigned varint encoding to the buffer. +func (b *Buffer) EncodeVarint(v uint64) error { + b.buf = protowire.AppendVarint(b.buf, v) + return nil +} + +// EncodeZigzag32 appends a 32-bit zig-zag varint encoding to the buffer. +func (b *Buffer) EncodeZigzag32(v uint64) error { + return b.EncodeVarint(uint64((uint32(v) << 1) ^ uint32((int32(v) >> 31)))) +} + +// EncodeZigzag64 appends a 64-bit zig-zag varint encoding to the buffer. +func (b *Buffer) EncodeZigzag64(v uint64) error { + return b.EncodeVarint(uint64((uint64(v) << 1) ^ uint64((int64(v) >> 63)))) +} + +// EncodeFixed32 appends a 32-bit little-endian integer to the buffer. +func (b *Buffer) EncodeFixed32(v uint64) error { + b.buf = protowire.AppendFixed32(b.buf, uint32(v)) + return nil +} + +// EncodeFixed64 appends a 64-bit little-endian integer to the buffer. +func (b *Buffer) EncodeFixed64(v uint64) error { + b.buf = protowire.AppendFixed64(b.buf, uint64(v)) + return nil +} + +// EncodeRawBytes appends a length-prefixed raw bytes to the buffer. +func (b *Buffer) EncodeRawBytes(v []byte) error { + b.buf = protowire.AppendBytes(b.buf, v) + return nil +} + +// EncodeStringBytes appends a length-prefixed raw bytes to the buffer. +// It does not validate whether v contains valid UTF-8. +func (b *Buffer) EncodeStringBytes(v string) error { + b.buf = protowire.AppendString(b.buf, v) + return nil +} + +// EncodeMessage appends a length-prefixed encoded message to the buffer. +func (b *Buffer) EncodeMessage(m Message) error { + var err error + b.buf = protowire.AppendVarint(b.buf, uint64(Size(m))) + b.buf, err = marshalAppend(b.buf, m, b.deterministic) + return err +} + +// DecodeVarint consumes an encoded unsigned varint from the buffer. +func (b *Buffer) DecodeVarint() (uint64, error) { + v, n := protowire.ConsumeVarint(b.buf[b.idx:]) + if n < 0 { + return 0, protowire.ParseError(n) + } + b.idx += n + return uint64(v), nil +} + +// DecodeZigzag32 consumes an encoded 32-bit zig-zag varint from the buffer. +func (b *Buffer) DecodeZigzag32() (uint64, error) { + v, err := b.DecodeVarint() + if err != nil { + return 0, err + } + return uint64((uint32(v) >> 1) ^ uint32((int32(v&1)<<31)>>31)), nil +} + +// DecodeZigzag64 consumes an encoded 64-bit zig-zag varint from the buffer. +func (b *Buffer) DecodeZigzag64() (uint64, error) { + v, err := b.DecodeVarint() + if err != nil { + return 0, err + } + return uint64((uint64(v) >> 1) ^ uint64((int64(v&1)<<63)>>63)), nil +} + +// DecodeFixed32 consumes a 32-bit little-endian integer from the buffer. +func (b *Buffer) DecodeFixed32() (uint64, error) { + v, n := protowire.ConsumeFixed32(b.buf[b.idx:]) + if n < 0 { + return 0, protowire.ParseError(n) + } + b.idx += n + return uint64(v), nil +} + +// DecodeFixed64 consumes a 64-bit little-endian integer from the buffer. +func (b *Buffer) DecodeFixed64() (uint64, error) { + v, n := protowire.ConsumeFixed64(b.buf[b.idx:]) + if n < 0 { + return 0, protowire.ParseError(n) + } + b.idx += n + return uint64(v), nil +} + +// DecodeRawBytes consumes a length-prefixed raw bytes from the buffer. +// If alloc is specified, it returns a copy the raw bytes +// rather than a sub-slice of the buffer. +func (b *Buffer) DecodeRawBytes(alloc bool) ([]byte, error) { + v, n := protowire.ConsumeBytes(b.buf[b.idx:]) + if n < 0 { + return nil, protowire.ParseError(n) + } + b.idx += n + if alloc { + v = append([]byte(nil), v...) + } + return v, nil +} + +// DecodeStringBytes consumes a length-prefixed raw bytes from the buffer. +// It does not validate whether the raw bytes contain valid UTF-8. +func (b *Buffer) DecodeStringBytes() (string, error) { + v, n := protowire.ConsumeString(b.buf[b.idx:]) + if n < 0 { + return "", protowire.ParseError(n) + } + b.idx += n + return v, nil +} + +// DecodeMessage consumes a length-prefixed message from the buffer. +// It does not reset m before unmarshaling. +func (b *Buffer) DecodeMessage(m Message) error { + v, err := b.DecodeRawBytes(false) + if err != nil { + return err + } + return UnmarshalMerge(v, m) +} + +// DecodeGroup consumes a message group from the buffer. +// It assumes that the start group marker has already been consumed and +// consumes all bytes until (and including the end group marker). +// It does not reset m before unmarshaling. +func (b *Buffer) DecodeGroup(m Message) error { + v, n, err := consumeGroup(b.buf[b.idx:]) + if err != nil { + return err + } + b.idx += n + return UnmarshalMerge(v, m) +} + +// consumeGroup parses b until it finds an end group marker, returning +// the raw bytes of the message (excluding the end group marker) and the +// the total length of the message (including the end group marker). +func consumeGroup(b []byte) ([]byte, int, error) { + b0 := b + depth := 1 // assume this follows a start group marker + for { + _, wtyp, tagLen := protowire.ConsumeTag(b) + if tagLen < 0 { + return nil, 0, protowire.ParseError(tagLen) + } + b = b[tagLen:] + + var valLen int + switch wtyp { + case protowire.VarintType: + _, valLen = protowire.ConsumeVarint(b) + case protowire.Fixed32Type: + _, valLen = protowire.ConsumeFixed32(b) + case protowire.Fixed64Type: + _, valLen = protowire.ConsumeFixed64(b) + case protowire.BytesType: + _, valLen = protowire.ConsumeBytes(b) + case protowire.StartGroupType: + depth++ + case protowire.EndGroupType: + depth-- + default: + return nil, 0, errors.New("proto: cannot parse reserved wire type") + } + if valLen < 0 { + return nil, 0, protowire.ParseError(valLen) + } + b = b[valLen:] + + if depth == 0 { + return b0[:len(b0)-len(b)-tagLen], len(b0) - len(b), nil + } + } +} diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go deleted file mode 100644 index aa20729..0000000 --- a/vendor/github.com/golang/protobuf/proto/decode.go +++ /dev/null @@ -1,970 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for decoding protocol buffer data to construct in-memory representations. - */ - -import ( - "errors" - "fmt" - "io" - "os" - "reflect" -) - -// errOverflow is returned when an integer is too large to be represented. -var errOverflow = errors.New("proto: integer overflow") - -// ErrInternalBadWireType is returned by generated code when an incorrect -// wire type is encountered. It does not get returned to user code. -var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") - -// The fundamental decoders that interpret bytes on the wire. -// Those that take integer types all return uint64 and are -// therefore of type valueDecoder. - -// DecodeVarint reads a varint-encoded integer from the slice. -// It returns the integer and the number of bytes consumed, or -// zero if there is not enough. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func DecodeVarint(buf []byte) (x uint64, n int) { - for shift := uint(0); shift < 64; shift += 7 { - if n >= len(buf) { - return 0, 0 - } - b := uint64(buf[n]) - n++ - x |= (b & 0x7F) << shift - if (b & 0x80) == 0 { - return x, n - } - } - - // The number is too large to represent in a 64-bit value. - return 0, 0 -} - -func (p *Buffer) decodeVarintSlow() (x uint64, err error) { - i := p.index - l := len(p.buf) - - for shift := uint(0); shift < 64; shift += 7 { - if i >= l { - err = io.ErrUnexpectedEOF - return - } - b := p.buf[i] - i++ - x |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - p.index = i - return - } - } - - // The number is too large to represent in a 64-bit value. - err = errOverflow - return -} - -// DecodeVarint reads a varint-encoded integer from the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) DecodeVarint() (x uint64, err error) { - i := p.index - buf := p.buf - - if i >= len(buf) { - return 0, io.ErrUnexpectedEOF - } else if buf[i] < 0x80 { - p.index++ - return uint64(buf[i]), nil - } else if len(buf)-i < 10 { - return p.decodeVarintSlow() - } - - var b uint64 - // we already checked the first byte - x = uint64(buf[i]) - 0x80 - i++ - - b = uint64(buf[i]) - i++ - x += b << 7 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 7 - - b = uint64(buf[i]) - i++ - x += b << 14 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 14 - - b = uint64(buf[i]) - i++ - x += b << 21 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 21 - - b = uint64(buf[i]) - i++ - x += b << 28 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 28 - - b = uint64(buf[i]) - i++ - x += b << 35 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 35 - - b = uint64(buf[i]) - i++ - x += b << 42 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 42 - - b = uint64(buf[i]) - i++ - x += b << 49 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 49 - - b = uint64(buf[i]) - i++ - x += b << 56 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 56 - - b = uint64(buf[i]) - i++ - x += b << 63 - if b&0x80 == 0 { - goto done - } - // x -= 0x80 << 63 // Always zero. - - return 0, errOverflow - -done: - p.index = i - return x, nil -} - -// DecodeFixed64 reads a 64-bit integer from the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) DecodeFixed64() (x uint64, err error) { - // x, err already 0 - i := p.index + 8 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-8]) - x |= uint64(p.buf[i-7]) << 8 - x |= uint64(p.buf[i-6]) << 16 - x |= uint64(p.buf[i-5]) << 24 - x |= uint64(p.buf[i-4]) << 32 - x |= uint64(p.buf[i-3]) << 40 - x |= uint64(p.buf[i-2]) << 48 - x |= uint64(p.buf[i-1]) << 56 - return -} - -// DecodeFixed32 reads a 32-bit integer from the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) DecodeFixed32() (x uint64, err error) { - // x, err already 0 - i := p.index + 4 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-4]) - x |= uint64(p.buf[i-3]) << 8 - x |= uint64(p.buf[i-2]) << 16 - x |= uint64(p.buf[i-1]) << 24 - return -} - -// DecodeZigzag64 reads a zigzag-encoded 64-bit integer -// from the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) DecodeZigzag64() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = (x >> 1) ^ uint64((int64(x&1)<<63)>>63) - return -} - -// DecodeZigzag32 reads a zigzag-encoded 32-bit integer -// from the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) DecodeZigzag32() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = uint64((uint32(x) >> 1) ^ uint32((int32(x&1)<<31)>>31)) - return -} - -// These are not ValueDecoders: they produce an array of bytes or a string. -// bytes, embedded messages - -// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) { - n, err := p.DecodeVarint() - if err != nil { - return nil, err - } - - nb := int(n) - if nb < 0 { - return nil, fmt.Errorf("proto: bad byte length %d", nb) - } - end := p.index + nb - if end < p.index || end > len(p.buf) { - return nil, io.ErrUnexpectedEOF - } - - if !alloc { - // todo: check if can get more uses of alloc=false - buf = p.buf[p.index:end] - p.index += nb - return - } - - buf = make([]byte, nb) - copy(buf, p.buf[p.index:]) - p.index += nb - return -} - -// DecodeStringBytes reads an encoded string from the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) DecodeStringBytes() (s string, err error) { - buf, err := p.DecodeRawBytes(false) - if err != nil { - return - } - return string(buf), nil -} - -// Skip the next item in the buffer. Its wire type is decoded and presented as an argument. -// If the protocol buffer has extensions, and the field matches, add it as an extension. -// Otherwise, if the XXX_unrecognized field exists, append the skipped data there. -func (o *Buffer) skipAndSave(t reflect.Type, tag, wire int, base structPointer, unrecField field) error { - oi := o.index - - err := o.skip(t, tag, wire) - if err != nil { - return err - } - - if !unrecField.IsValid() { - return nil - } - - ptr := structPointer_Bytes(base, unrecField) - - // Add the skipped field to struct field - obuf := o.buf - - o.buf = *ptr - o.EncodeVarint(uint64(tag<<3 | wire)) - *ptr = append(o.buf, obuf[oi:o.index]...) - - o.buf = obuf - - return nil -} - -// Skip the next item in the buffer. Its wire type is decoded and presented as an argument. -func (o *Buffer) skip(t reflect.Type, tag, wire int) error { - - var u uint64 - var err error - - switch wire { - case WireVarint: - _, err = o.DecodeVarint() - case WireFixed64: - _, err = o.DecodeFixed64() - case WireBytes: - _, err = o.DecodeRawBytes(false) - case WireFixed32: - _, err = o.DecodeFixed32() - case WireStartGroup: - for { - u, err = o.DecodeVarint() - if err != nil { - break - } - fwire := int(u & 0x7) - if fwire == WireEndGroup { - break - } - ftag := int(u >> 3) - err = o.skip(t, ftag, fwire) - if err != nil { - break - } - } - default: - err = fmt.Errorf("proto: can't skip unknown wire type %d for %s", wire, t) - } - return err -} - -// Unmarshaler is the interface representing objects that can -// unmarshal themselves. The method should reset the receiver before -// decoding starts. The argument points to data that may be -// overwritten, so implementations should not keep references to the -// buffer. -type Unmarshaler interface { - Unmarshal([]byte) error -} - -// Unmarshal parses the protocol buffer representation in buf and places the -// decoded result in pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// Unmarshal resets pb before starting to unmarshal, so any -// existing data in pb is always removed. Use UnmarshalMerge -// to preserve and append to existing data. -func Unmarshal(buf []byte, pb Message) error { - pb.Reset() - return UnmarshalMerge(buf, pb) -} - -// UnmarshalMerge parses the protocol buffer representation in buf and -// writes the decoded result to pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// UnmarshalMerge merges into existing data in pb. -// Most code should use Unmarshal instead. -func UnmarshalMerge(buf []byte, pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(Unmarshaler); ok { - return u.Unmarshal(buf) - } - return NewBuffer(buf).Unmarshal(pb) -} - -// DecodeMessage reads a count-delimited message from the Buffer. -func (p *Buffer) DecodeMessage(pb Message) error { - enc, err := p.DecodeRawBytes(false) - if err != nil { - return err - } - return NewBuffer(enc).Unmarshal(pb) -} - -// DecodeGroup reads a tag-delimited group from the Buffer. -func (p *Buffer) DecodeGroup(pb Message) error { - typ, base, err := getbase(pb) - if err != nil { - return err - } - return p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), true, base) -} - -// Unmarshal parses the protocol buffer representation in the -// Buffer and places the decoded result in pb. If the struct -// underlying pb does not match the data in the buffer, the results can be -// unpredictable. -// -// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal. -func (p *Buffer) Unmarshal(pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(Unmarshaler); ok { - err := u.Unmarshal(p.buf[p.index:]) - p.index = len(p.buf) - return err - } - - typ, base, err := getbase(pb) - if err != nil { - return err - } - - err = p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), false, base) - - if collectStats { - stats.Decode++ - } - - return err -} - -// unmarshalType does the work of unmarshaling a structure. -func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_group bool, base structPointer) error { - var state errorState - required, reqFields := prop.reqCount, uint64(0) - - var err error - for err == nil && o.index < len(o.buf) { - oi := o.index - var u uint64 - u, err = o.DecodeVarint() - if err != nil { - break - } - wire := int(u & 0x7) - if wire == WireEndGroup { - if is_group { - if required > 0 { - // Not enough information to determine the exact field. - // (See below.) - return &RequiredNotSetError{"{Unknown}"} - } - return nil // input is satisfied - } - return fmt.Errorf("proto: %s: wiretype end group for non-group", st) - } - tag := int(u >> 3) - if tag <= 0 { - return fmt.Errorf("proto: %s: illegal tag %d (wire type %d)", st, tag, wire) - } - fieldnum, ok := prop.decoderTags.get(tag) - if !ok { - // Maybe it's an extension? - if prop.extendable { - if e, _ := extendable(structPointer_Interface(base, st)); isExtensionField(e, int32(tag)) { - if err = o.skip(st, tag, wire); err == nil { - extmap := e.extensionsWrite() - ext := extmap[int32(tag)] // may be missing - ext.enc = append(ext.enc, o.buf[oi:o.index]...) - extmap[int32(tag)] = ext - } - continue - } - } - // Maybe it's a oneof? - if prop.oneofUnmarshaler != nil { - m := structPointer_Interface(base, st).(Message) - // First return value indicates whether tag is a oneof field. - ok, err = prop.oneofUnmarshaler(m, tag, wire, o) - if err == ErrInternalBadWireType { - // Map the error to something more descriptive. - // Do the formatting here to save generated code space. - err = fmt.Errorf("bad wiretype for oneof field in %T", m) - } - if ok { - continue - } - } - err = o.skipAndSave(st, tag, wire, base, prop.unrecField) - continue - } - p := prop.Prop[fieldnum] - - if p.dec == nil { - fmt.Fprintf(os.Stderr, "proto: no protobuf decoder for %s.%s\n", st, st.Field(fieldnum).Name) - continue - } - dec := p.dec - if wire != WireStartGroup && wire != p.WireType { - if wire == WireBytes && p.packedDec != nil { - // a packable field - dec = p.packedDec - } else { - err = fmt.Errorf("proto: bad wiretype for field %s.%s: got wiretype %d, want %d", st, st.Field(fieldnum).Name, wire, p.WireType) - continue - } - } - decErr := dec(o, p, base) - if decErr != nil && !state.shouldContinue(decErr, p) { - err = decErr - } - if err == nil && p.Required { - // Successfully decoded a required field. - if tag <= 64 { - // use bitmap for fields 1-64 to catch field reuse. - var mask uint64 = 1 << uint64(tag-1) - if reqFields&mask == 0 { - // new required field - reqFields |= mask - required-- - } - } else { - // This is imprecise. It can be fooled by a required field - // with a tag > 64 that is encoded twice; that's very rare. - // A fully correct implementation would require allocating - // a data structure, which we would like to avoid. - required-- - } - } - } - if err == nil { - if is_group { - return io.ErrUnexpectedEOF - } - if state.err != nil { - return state.err - } - if required > 0 { - // Not enough information to determine the exact field. If we use extra - // CPU, we could determine the field only if the missing required field - // has a tag <= 64 and we check reqFields. - return &RequiredNotSetError{"{Unknown}"} - } - } - return err -} - -// Individual type decoders -// For each, -// u is the decoded value, -// v is a pointer to the field (pointer) in the struct - -// Sizes of the pools to allocate inside the Buffer. -// The goal is modest amortization and allocation -// on at least 16-byte boundaries. -const ( - boolPoolSize = 16 - uint32PoolSize = 8 - uint64PoolSize = 4 -) - -// Decode a bool. -func (o *Buffer) dec_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - if len(o.bools) == 0 { - o.bools = make([]bool, boolPoolSize) - } - o.bools[0] = u != 0 - *structPointer_Bool(base, p.field) = &o.bools[0] - o.bools = o.bools[1:] - return nil -} - -func (o *Buffer) dec_proto3_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - *structPointer_BoolVal(base, p.field) = u != 0 - return nil -} - -// Decode an int32. -func (o *Buffer) dec_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word32_Set(structPointer_Word32(base, p.field), o, uint32(u)) - return nil -} - -func (o *Buffer) dec_proto3_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word32Val_Set(structPointer_Word32Val(base, p.field), uint32(u)) - return nil -} - -// Decode an int64. -func (o *Buffer) dec_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word64_Set(structPointer_Word64(base, p.field), o, u) - return nil -} - -func (o *Buffer) dec_proto3_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word64Val_Set(structPointer_Word64Val(base, p.field), o, u) - return nil -} - -// Decode a string. -func (o *Buffer) dec_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - *structPointer_String(base, p.field) = &s - return nil -} - -func (o *Buffer) dec_proto3_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - *structPointer_StringVal(base, p.field) = s - return nil -} - -// Decode a slice of bytes ([]byte). -func (o *Buffer) dec_slice_byte(p *Properties, base structPointer) error { - b, err := o.DecodeRawBytes(true) - if err != nil { - return err - } - *structPointer_Bytes(base, p.field) = b - return nil -} - -// Decode a slice of bools ([]bool). -func (o *Buffer) dec_slice_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - v := structPointer_BoolSlice(base, p.field) - *v = append(*v, u != 0) - return nil -} - -// Decode a slice of bools ([]bool) in packed format. -func (o *Buffer) dec_slice_packed_bool(p *Properties, base structPointer) error { - v := structPointer_BoolSlice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded bools - fin := o.index + nb - if fin < o.index { - return errOverflow - } - - y := *v - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - y = append(y, u != 0) - } - - *v = y - return nil -} - -// Decode a slice of int32s ([]int32). -func (o *Buffer) dec_slice_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - structPointer_Word32Slice(base, p.field).Append(uint32(u)) - return nil -} - -// Decode a slice of int32s ([]int32) in packed format. -func (o *Buffer) dec_slice_packed_int32(p *Properties, base structPointer) error { - v := structPointer_Word32Slice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded int32s - - fin := o.index + nb - if fin < o.index { - return errOverflow - } - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - v.Append(uint32(u)) - } - return nil -} - -// Decode a slice of int64s ([]int64). -func (o *Buffer) dec_slice_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - - structPointer_Word64Slice(base, p.field).Append(u) - return nil -} - -// Decode a slice of int64s ([]int64) in packed format. -func (o *Buffer) dec_slice_packed_int64(p *Properties, base structPointer) error { - v := structPointer_Word64Slice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded int64s - - fin := o.index + nb - if fin < o.index { - return errOverflow - } - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - v.Append(u) - } - return nil -} - -// Decode a slice of strings ([]string). -func (o *Buffer) dec_slice_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - v := structPointer_StringSlice(base, p.field) - *v = append(*v, s) - return nil -} - -// Decode a slice of slice of bytes ([][]byte). -func (o *Buffer) dec_slice_slice_byte(p *Properties, base structPointer) error { - b, err := o.DecodeRawBytes(true) - if err != nil { - return err - } - v := structPointer_BytesSlice(base, p.field) - *v = append(*v, b) - return nil -} - -// Decode a map field. -func (o *Buffer) dec_new_map(p *Properties, base structPointer) error { - raw, err := o.DecodeRawBytes(false) - if err != nil { - return err - } - oi := o.index // index at the end of this map entry - o.index -= len(raw) // move buffer back to start of map entry - - mptr := structPointer_NewAt(base, p.field, p.mtype) // *map[K]V - if mptr.Elem().IsNil() { - mptr.Elem().Set(reflect.MakeMap(mptr.Type().Elem())) - } - v := mptr.Elem() // map[K]V - - // Prepare addressable doubly-indirect placeholders for the key and value types. - // See enc_new_map for why. - keyptr := reflect.New(reflect.PtrTo(p.mtype.Key())).Elem() // addressable *K - keybase := toStructPointer(keyptr.Addr()) // **K - - var valbase structPointer - var valptr reflect.Value - switch p.mtype.Elem().Kind() { - case reflect.Slice: - // []byte - var dummy []byte - valptr = reflect.ValueOf(&dummy) // *[]byte - valbase = toStructPointer(valptr) // *[]byte - case reflect.Ptr: - // message; valptr is **Msg; need to allocate the intermediate pointer - valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V - valptr.Set(reflect.New(valptr.Type().Elem())) - valbase = toStructPointer(valptr) - default: - // everything else - valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V - valbase = toStructPointer(valptr.Addr()) // **V - } - - // Decode. - // This parses a restricted wire format, namely the encoding of a message - // with two fields. See enc_new_map for the format. - for o.index < oi { - // tagcode for key and value properties are always a single byte - // because they have tags 1 and 2. - tagcode := o.buf[o.index] - o.index++ - switch tagcode { - case p.mkeyprop.tagcode[0]: - if err := p.mkeyprop.dec(o, p.mkeyprop, keybase); err != nil { - return err - } - case p.mvalprop.tagcode[0]: - if err := p.mvalprop.dec(o, p.mvalprop, valbase); err != nil { - return err - } - default: - // TODO: Should we silently skip this instead? - return fmt.Errorf("proto: bad map data tag %d", raw[0]) - } - } - keyelem, valelem := keyptr.Elem(), valptr.Elem() - if !keyelem.IsValid() { - keyelem = reflect.Zero(p.mtype.Key()) - } - if !valelem.IsValid() { - valelem = reflect.Zero(p.mtype.Elem()) - } - - v.SetMapIndex(keyelem, valelem) - return nil -} - -// Decode a group. -func (o *Buffer) dec_struct_group(p *Properties, base structPointer) error { - bas := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(bas) { - // allocate new nested message - bas = toStructPointer(reflect.New(p.stype)) - structPointer_SetStructPointer(base, p.field, bas) - } - return o.unmarshalType(p.stype, p.sprop, true, bas) -} - -// Decode an embedded message. -func (o *Buffer) dec_struct_message(p *Properties, base structPointer) (err error) { - raw, e := o.DecodeRawBytes(false) - if e != nil { - return e - } - - bas := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(bas) { - // allocate new nested message - bas = toStructPointer(reflect.New(p.stype)) - structPointer_SetStructPointer(base, p.field, bas) - } - - // If the object can unmarshal itself, let it. - if p.isUnmarshaler { - iv := structPointer_Interface(bas, p.stype) - return iv.(Unmarshaler).Unmarshal(raw) - } - - obuf := o.buf - oi := o.index - o.buf = raw - o.index = 0 - - err = o.unmarshalType(p.stype, p.sprop, false, bas) - o.buf = obuf - o.index = oi - - return err -} - -// Decode a slice of embedded messages. -func (o *Buffer) dec_slice_struct_message(p *Properties, base structPointer) error { - return o.dec_slice_struct(p, false, base) -} - -// Decode a slice of embedded groups. -func (o *Buffer) dec_slice_struct_group(p *Properties, base structPointer) error { - return o.dec_slice_struct(p, true, base) -} - -// Decode a slice of structs ([]*struct). -func (o *Buffer) dec_slice_struct(p *Properties, is_group bool, base structPointer) error { - v := reflect.New(p.stype) - bas := toStructPointer(v) - structPointer_StructPointerSlice(base, p.field).Append(bas) - - if is_group { - err := o.unmarshalType(p.stype, p.sprop, is_group, bas) - return err - } - - raw, err := o.DecodeRawBytes(false) - if err != nil { - return err - } - - // If the object can unmarshal itself, let it. - if p.isUnmarshaler { - iv := v.Interface() - return iv.(Unmarshaler).Unmarshal(raw) - } - - obuf := o.buf - oi := o.index - o.buf = raw - o.index = 0 - - err = o.unmarshalType(p.stype, p.sprop, is_group, bas) - - o.buf = obuf - o.index = oi - - return err -} diff --git a/vendor/github.com/golang/protobuf/proto/defaults.go b/vendor/github.com/golang/protobuf/proto/defaults.go new file mode 100644 index 0000000..d399bf0 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/defaults.go @@ -0,0 +1,63 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" +) + +// SetDefaults sets unpopulated scalar fields to their default values. +// Fields within a oneof are not set even if they have a default value. +// SetDefaults is recursively called upon any populated message fields. +func SetDefaults(m Message) { + if m != nil { + setDefaults(MessageReflect(m)) + } +} + +func setDefaults(m protoreflect.Message) { + fds := m.Descriptor().Fields() + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + if !m.Has(fd) { + if fd.HasDefault() && fd.ContainingOneof() == nil { + v := fd.Default() + if fd.Kind() == protoreflect.BytesKind { + v = protoreflect.ValueOf(append([]byte(nil), v.Bytes()...)) // copy the default bytes + } + m.Set(fd, v) + } + continue + } + } + + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + // Handle singular message. + case fd.Cardinality() != protoreflect.Repeated: + if fd.Message() != nil { + setDefaults(m.Get(fd).Message()) + } + // Handle list of messages. + case fd.IsList(): + if fd.Message() != nil { + ls := m.Get(fd).List() + for i := 0; i < ls.Len(); i++ { + setDefaults(ls.Get(i).Message()) + } + } + // Handle map of messages. + case fd.IsMap(): + if fd.MapValue().Message() != nil { + ms := m.Get(fd).Map() + ms.Range(func(_ protoreflect.MapKey, v protoreflect.Value) bool { + setDefaults(v.Message()) + return true + }) + } + } + return true + }) +} diff --git a/vendor/github.com/golang/protobuf/proto/deprecated.go b/vendor/github.com/golang/protobuf/proto/deprecated.go new file mode 100644 index 0000000..e8db57e --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/deprecated.go @@ -0,0 +1,113 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "encoding/json" + "errors" + "fmt" + "strconv" + + protoV2 "google.golang.org/protobuf/proto" +) + +var ( + // Deprecated: No longer returned. + ErrNil = errors.New("proto: Marshal called with nil") + + // Deprecated: No longer returned. + ErrTooLarge = errors.New("proto: message encodes to over 2 GB") + + // Deprecated: No longer returned. + ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") +) + +// Deprecated: Do not use. +type Stats struct{ Emalloc, Dmalloc, Encode, Decode, Chit, Cmiss, Size uint64 } + +// Deprecated: Do not use. +func GetStats() Stats { return Stats{} } + +// Deprecated: Do not use. +func MarshalMessageSet(interface{}) ([]byte, error) { + return nil, errors.New("proto: not implemented") +} + +// Deprecated: Do not use. +func UnmarshalMessageSet([]byte, interface{}) error { + return errors.New("proto: not implemented") +} + +// Deprecated: Do not use. +func MarshalMessageSetJSON(interface{}) ([]byte, error) { + return nil, errors.New("proto: not implemented") +} + +// Deprecated: Do not use. +func UnmarshalMessageSetJSON([]byte, interface{}) error { + return errors.New("proto: not implemented") +} + +// Deprecated: Do not use. +func RegisterMessageSetType(Message, int32, string) {} + +// Deprecated: Do not use. +func EnumName(m map[int32]string, v int32) string { + s, ok := m[v] + if ok { + return s + } + return strconv.Itoa(int(v)) +} + +// Deprecated: Do not use. +func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { + if data[0] == '"' { + // New style: enums are strings. + var repr string + if err := json.Unmarshal(data, &repr); err != nil { + return -1, err + } + val, ok := m[repr] + if !ok { + return 0, fmt.Errorf("unrecognized enum %s value %q", enumName, repr) + } + return val, nil + } + // Old style: enums are ints. + var val int32 + if err := json.Unmarshal(data, &val); err != nil { + return 0, fmt.Errorf("cannot unmarshal %#q into enum %s", data, enumName) + } + return val, nil +} + +// Deprecated: Do not use; this type existed for intenal-use only. +type InternalMessageInfo struct{} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) DiscardUnknown(m Message) { + DiscardUnknown(m) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Marshal(b []byte, m Message, deterministic bool) ([]byte, error) { + return protoV2.MarshalOptions{Deterministic: deterministic}.MarshalAppend(b, MessageV2(m)) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Merge(dst, src Message) { + protoV2.Merge(MessageV2(dst), MessageV2(src)) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Size(m Message) int { + return protoV2.Size(MessageV2(m)) +} + +// Deprecated: Do not use; this method existed for intenal-use only. +func (*InternalMessageInfo) Unmarshal(m Message, b []byte) error { + return protoV2.UnmarshalOptions{Merge: true}.Unmarshal(b, MessageV2(m)) +} diff --git a/vendor/github.com/golang/protobuf/proto/discard.go b/vendor/github.com/golang/protobuf/proto/discard.go index bd0e3bb..2187e87 100644 --- a/vendor/github.com/golang/protobuf/proto/discard.go +++ b/vendor/github.com/golang/protobuf/proto/discard.go @@ -1,40 +1,11 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2017 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto import ( - "fmt" - "reflect" - "strings" + "google.golang.org/protobuf/reflect/protoreflect" ) // DiscardUnknown recursively discards all unknown fields from this message @@ -45,107 +16,43 @@ import ( // marshal to be able to produce a message that continues to have those // unrecognized fields. To avoid this, DiscardUnknown is used to // explicitly clear the unknown fields after unmarshaling. -// -// For proto2 messages, the unknown fields of message extensions are only -// discarded from messages that have been accessed via GetExtension. func DiscardUnknown(m Message) { - discardLegacy(m) -} - -func discardLegacy(m Message) { - v := reflect.ValueOf(m) - if v.Kind() != reflect.Ptr || v.IsNil() { - return - } - v = v.Elem() - if v.Kind() != reflect.Struct { - return + if m != nil { + discardUnknown(MessageReflect(m)) } - t := v.Type() - - for i := 0; i < v.NumField(); i++ { - f := t.Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - vf := v.Field(i) - tf := f.Type - - // Unwrap tf to get its most basic type. - var isPointer, isSlice bool - if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { - isSlice = true - tf = tf.Elem() - } - if tf.Kind() == reflect.Ptr { - isPointer = true - tf = tf.Elem() - } - if isPointer && isSlice && tf.Kind() != reflect.Struct { - panic(fmt.Sprintf("%T.%s cannot be a slice of pointers to primitive types", m, f.Name)) - } +} - switch tf.Kind() { - case reflect.Struct: - switch { - case !isPointer: - panic(fmt.Sprintf("%T.%s cannot be a direct struct value", m, f.Name)) - case isSlice: // E.g., []*pb.T - for j := 0; j < vf.Len(); j++ { - discardLegacy(vf.Index(j).Interface().(Message)) - } - default: // E.g., *pb.T - discardLegacy(vf.Interface().(Message)) +func discardUnknown(m protoreflect.Message) { + m.Range(func(fd protoreflect.FieldDescriptor, val protoreflect.Value) bool { + switch { + // Handle singular message. + case fd.Cardinality() != protoreflect.Repeated: + if fd.Message() != nil { + discardUnknown(m.Get(fd).Message()) } - case reflect.Map: - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%T.%s cannot be a pointer to a map or a slice of map values", m, f.Name)) - default: // E.g., map[K]V - tv := vf.Type().Elem() - if tv.Kind() == reflect.Ptr && tv.Implements(protoMessageType) { // Proto struct (e.g., *T) - for _, key := range vf.MapKeys() { - val := vf.MapIndex(key) - discardLegacy(val.Interface().(Message)) - } + // Handle list of messages. + case fd.IsList(): + if fd.Message() != nil { + ls := m.Get(fd).List() + for i := 0; i < ls.Len(); i++ { + discardUnknown(ls.Get(i).Message()) } } - case reflect.Interface: - // Must be oneof field. - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%T.%s cannot be a pointer to a interface or a slice of interface values", m, f.Name)) - default: // E.g., test_proto.isCommunique_Union interface - if !vf.IsNil() && f.Tag.Get("protobuf_oneof") != "" { - vf = vf.Elem() // E.g., *test_proto.Communique_Msg - if !vf.IsNil() { - vf = vf.Elem() // E.g., test_proto.Communique_Msg - vf = vf.Field(0) // E.g., Proto struct (e.g., *T) or primitive value - if vf.Kind() == reflect.Ptr { - discardLegacy(vf.Interface().(Message)) - } - } - } + // Handle map of messages. + case fd.IsMap(): + if fd.MapValue().Message() != nil { + ms := m.Get(fd).Map() + ms.Range(func(_ protoreflect.MapKey, v protoreflect.Value) bool { + discardUnknown(v.Message()) + return true + }) } } - } + return true + }) - if vf := v.FieldByName("XXX_unrecognized"); vf.IsValid() { - if vf.Type() != reflect.TypeOf([]byte{}) { - panic("expected XXX_unrecognized to be of type []byte") - } - vf.Set(reflect.ValueOf([]byte(nil))) - } - - // For proto2 messages, only discard unknown fields in message extensions - // that have been accessed via GetExtension. - if em, ok := extendable(m); ok { - // Ignore lock since discardLegacy is not concurrency safe. - emm, _ := em.extensionsRead() - for _, mx := range emm { - if m, ok := mx.value.(Message); ok { - discardLegacy(m) - } - } + // Discard unknown fields. + if len(m.GetUnknown()) > 0 { + m.SetUnknown(nil) } } diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go deleted file mode 100644 index 8b84d1b..0000000 --- a/vendor/github.com/golang/protobuf/proto/encode.go +++ /dev/null @@ -1,1362 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - -import ( - "errors" - "fmt" - "reflect" - "sort" -) - -// RequiredNotSetError is the error returned if Marshal is called with -// a protocol buffer struct whose required fields have not -// all been initialized. It is also the error returned if Unmarshal is -// called with an encoded protocol buffer that does not include all the -// required fields. -// -// When printed, RequiredNotSetError reports the first unset required field in a -// message. If the field cannot be precisely determined, it is reported as -// "{Unknown}". -type RequiredNotSetError struct { - field string -} - -func (e *RequiredNotSetError) Error() string { - return fmt.Sprintf("proto: required field %q not set", e.field) -} - -var ( - // errRepeatedHasNil is the error returned if Marshal is called with - // a struct with a repeated field containing a nil element. - errRepeatedHasNil = errors.New("proto: repeated field has nil element") - - // errOneofHasNil is the error returned if Marshal is called with - // a struct with a oneof field containing a nil element. - errOneofHasNil = errors.New("proto: oneof field has nil value") - - // ErrNil is the error returned if Marshal is called with nil. - ErrNil = errors.New("proto: Marshal called with nil") - - // ErrTooLarge is the error returned if Marshal is called with a - // message that encodes to >2GB. - ErrTooLarge = errors.New("proto: message encodes to over 2 GB") -) - -// The fundamental encoders that put bytes on the wire. -// Those that take integer types all accept uint64 and are -// therefore of type valueEncoder. - -const maxVarintBytes = 10 // maximum length of a varint - -// maxMarshalSize is the largest allowed size of an encoded protobuf, -// since C++ and Java use signed int32s for the size. -const maxMarshalSize = 1<<31 - 1 - -// EncodeVarint returns the varint encoding of x. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -// Not used by the package itself, but helpful to clients -// wishing to use the same encoding. -func EncodeVarint(x uint64) []byte { - var buf [maxVarintBytes]byte - var n int - for n = 0; x > 127; n++ { - buf[n] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - buf[n] = uint8(x) - n++ - return buf[0:n] -} - -// EncodeVarint writes a varint-encoded integer to the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) EncodeVarint(x uint64) error { - for x >= 1<<7 { - p.buf = append(p.buf, uint8(x&0x7f|0x80)) - x >>= 7 - } - p.buf = append(p.buf, uint8(x)) - return nil -} - -// SizeVarint returns the varint encoding size of an integer. -func SizeVarint(x uint64) int { - return sizeVarint(x) -} - -func sizeVarint(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} - -// EncodeFixed64 writes a 64-bit integer to the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) EncodeFixed64(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24), - uint8(x>>32), - uint8(x>>40), - uint8(x>>48), - uint8(x>>56)) - return nil -} - -func sizeFixed64(x uint64) int { - return 8 -} - -// EncodeFixed32 writes a 32-bit integer to the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) EncodeFixed32(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24)) - return nil -} - -func sizeFixed32(x uint64) int { - return 4 -} - -// EncodeZigzag64 writes a zigzag-encoded 64-bit integer -// to the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) EncodeZigzag64(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint((x << 1) ^ uint64((int64(x) >> 63))) -} - -func sizeZigzag64(x uint64) int { - return sizeVarint((x << 1) ^ uint64((int64(x) >> 63))) -} - -// EncodeZigzag32 writes a zigzag-encoded 32-bit integer -// to the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) EncodeZigzag32(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -func sizeZigzag32(x uint64) int { - return sizeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) EncodeRawBytes(b []byte) error { - p.EncodeVarint(uint64(len(b))) - p.buf = append(p.buf, b...) - return nil -} - -func sizeRawBytes(b []byte) int { - return sizeVarint(uint64(len(b))) + - len(b) -} - -// EncodeStringBytes writes an encoded string to the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) EncodeStringBytes(s string) error { - p.EncodeVarint(uint64(len(s))) - p.buf = append(p.buf, s...) - return nil -} - -func sizeStringBytes(s string) int { - return sizeVarint(uint64(len(s))) + - len(s) -} - -// Marshaler is the interface representing objects that can marshal themselves. -type Marshaler interface { - Marshal() ([]byte, error) -} - -// Marshal takes the protocol buffer -// and encodes it into the wire format, returning the data. -func Marshal(pb Message) ([]byte, error) { - // Can the object marshal itself? - if m, ok := pb.(Marshaler); ok { - return m.Marshal() - } - p := NewBuffer(nil) - err := p.Marshal(pb) - if p.buf == nil && err == nil { - // Return a non-nil slice on success. - return []byte{}, nil - } - return p.buf, err -} - -// EncodeMessage writes the protocol buffer to the Buffer, -// prefixed by a varint-encoded length. -func (p *Buffer) EncodeMessage(pb Message) error { - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return ErrNil - } - if err == nil { - var state errorState - err = p.enc_len_struct(GetProperties(t.Elem()), base, &state) - } - return err -} - -// Marshal takes the protocol buffer -// and encodes it into the wire format, writing the result to the -// Buffer. -func (p *Buffer) Marshal(pb Message) error { - // Can the object marshal itself? - if m, ok := pb.(Marshaler); ok { - data, err := m.Marshal() - p.buf = append(p.buf, data...) - return err - } - - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return ErrNil - } - if err == nil { - err = p.enc_struct(GetProperties(t.Elem()), base) - } - - if collectStats { - (stats).Encode++ // Parens are to work around a goimports bug. - } - - if len(p.buf) > maxMarshalSize { - return ErrTooLarge - } - return err -} - -// Size returns the encoded size of a protocol buffer. -func Size(pb Message) (n int) { - // Can the object marshal itself? If so, Size is slow. - // TODO: add Size to Marshaler, or add a Sizer interface. - if m, ok := pb.(Marshaler); ok { - b, _ := m.Marshal() - return len(b) - } - - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return 0 - } - if err == nil { - n = size_struct(GetProperties(t.Elem()), base) - } - - if collectStats { - (stats).Size++ // Parens are to work around a goimports bug. - } - - return -} - -// Individual type encoders. - -// Encode a bool. -func (o *Buffer) enc_bool(p *Properties, base structPointer) error { - v := *structPointer_Bool(base, p.field) - if v == nil { - return ErrNil - } - x := 0 - if *v { - x = 1 - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_bool(p *Properties, base structPointer) error { - v := *structPointer_BoolVal(base, p.field) - if !v { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, 1) - return nil -} - -func size_bool(p *Properties, base structPointer) int { - v := *structPointer_Bool(base, p.field) - if v == nil { - return 0 - } - return len(p.tagcode) + 1 // each bool takes exactly one byte -} - -func size_proto3_bool(p *Properties, base structPointer) int { - v := *structPointer_BoolVal(base, p.field) - if !v && !p.oneof { - return 0 - } - return len(p.tagcode) + 1 // each bool takes exactly one byte -} - -// Encode an int32. -func (o *Buffer) enc_int32(p *Properties, base structPointer) error { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return ErrNil - } - x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_int32(p *Properties, base structPointer) error { - v := structPointer_Word32Val(base, p.field) - x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func size_int32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return 0 - } - x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -func size_proto3_int32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32Val(base, p.field) - x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -// Encode a uint32. -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_uint32(p *Properties, base structPointer) error { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return ErrNil - } - x := word32_Get(v) - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_uint32(p *Properties, base structPointer) error { - v := structPointer_Word32Val(base, p.field) - x := word32Val_Get(v) - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func size_uint32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return 0 - } - x := word32_Get(v) - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -func size_proto3_uint32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32Val(base, p.field) - x := word32Val_Get(v) - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -// Encode an int64. -func (o *Buffer) enc_int64(p *Properties, base structPointer) error { - v := structPointer_Word64(base, p.field) - if word64_IsNil(v) { - return ErrNil - } - x := word64_Get(v) - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, x) - return nil -} - -func (o *Buffer) enc_proto3_int64(p *Properties, base structPointer) error { - v := structPointer_Word64Val(base, p.field) - x := word64Val_Get(v) - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, x) - return nil -} - -func size_int64(p *Properties, base structPointer) (n int) { - v := structPointer_Word64(base, p.field) - if word64_IsNil(v) { - return 0 - } - x := word64_Get(v) - n += len(p.tagcode) - n += p.valSize(x) - return -} - -func size_proto3_int64(p *Properties, base structPointer) (n int) { - v := structPointer_Word64Val(base, p.field) - x := word64Val_Get(v) - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(x) - return -} - -// Encode a string. -func (o *Buffer) enc_string(p *Properties, base structPointer) error { - v := *structPointer_String(base, p.field) - if v == nil { - return ErrNil - } - x := *v - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(x) - return nil -} - -func (o *Buffer) enc_proto3_string(p *Properties, base structPointer) error { - v := *structPointer_StringVal(base, p.field) - if v == "" { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(v) - return nil -} - -func size_string(p *Properties, base structPointer) (n int) { - v := *structPointer_String(base, p.field) - if v == nil { - return 0 - } - x := *v - n += len(p.tagcode) - n += sizeStringBytes(x) - return -} - -func size_proto3_string(p *Properties, base structPointer) (n int) { - v := *structPointer_StringVal(base, p.field) - if v == "" && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeStringBytes(v) - return -} - -// All protocol buffer fields are nillable, but be careful. -func isNil(v reflect.Value) bool { - switch v.Kind() { - case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: - return v.IsNil() - } - return false -} - -// Encode a message struct. -func (o *Buffer) enc_struct_message(p *Properties, base structPointer) error { - var state errorState - structp := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(structp) { - return ErrNil - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, err := m.Marshal() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(data) - return state.err - } - - o.buf = append(o.buf, p.tagcode...) - return o.enc_len_struct(p.sprop, structp, &state) -} - -func size_struct_message(p *Properties, base structPointer) int { - structp := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(structp) { - return 0 - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, _ := m.Marshal() - n0 := len(p.tagcode) - n1 := sizeRawBytes(data) - return n0 + n1 - } - - n0 := len(p.tagcode) - n1 := size_struct(p.sprop, structp) - n2 := sizeVarint(uint64(n1)) // size of encoded length - return n0 + n1 + n2 -} - -// Encode a group struct. -func (o *Buffer) enc_struct_group(p *Properties, base structPointer) error { - var state errorState - b := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(b) { - return ErrNil - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup)) - err := o.enc_struct(p.sprop, b) - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup)) - return state.err -} - -func size_struct_group(p *Properties, base structPointer) (n int) { - b := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(b) { - return 0 - } - - n += sizeVarint(uint64((p.Tag << 3) | WireStartGroup)) - n += size_struct(p.sprop, b) - n += sizeVarint(uint64((p.Tag << 3) | WireEndGroup)) - return -} - -// Encode a slice of bools ([]bool). -func (o *Buffer) enc_slice_bool(p *Properties, base structPointer) error { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return ErrNil - } - for _, x := range s { - o.buf = append(o.buf, p.tagcode...) - v := uint64(0) - if x { - v = 1 - } - p.valEnc(o, v) - } - return nil -} - -func size_slice_bool(p *Properties, base structPointer) int { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return 0 - } - return l * (len(p.tagcode) + 1) // each bool takes exactly one byte -} - -// Encode a slice of bools ([]bool) in packed format. -func (o *Buffer) enc_slice_packed_bool(p *Properties, base structPointer) error { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(l)) // each bool takes exactly one byte - for _, x := range s { - v := uint64(0) - if x { - v = 1 - } - p.valEnc(o, v) - } - return nil -} - -func size_slice_packed_bool(p *Properties, base structPointer) (n int) { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return 0 - } - n += len(p.tagcode) - n += sizeVarint(uint64(l)) - n += l // each bool takes exactly one byte - return -} - -// Encode a slice of bytes ([]byte). -func (o *Buffer) enc_slice_byte(p *Properties, base structPointer) error { - s := *structPointer_Bytes(base, p.field) - if s == nil { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(s) - return nil -} - -func (o *Buffer) enc_proto3_slice_byte(p *Properties, base structPointer) error { - s := *structPointer_Bytes(base, p.field) - if len(s) == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(s) - return nil -} - -func size_slice_byte(p *Properties, base structPointer) (n int) { - s := *structPointer_Bytes(base, p.field) - if s == nil && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeRawBytes(s) - return -} - -func size_proto3_slice_byte(p *Properties, base structPointer) (n int) { - s := *structPointer_Bytes(base, p.field) - if len(s) == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeRawBytes(s) - return -} - -// Encode a slice of int32s ([]int32). -func (o *Buffer) enc_slice_int32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - p.valEnc(o, uint64(x)) - } - return nil -} - -func size_slice_int32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - n += p.valSize(uint64(x)) - } - return -} - -// Encode a slice of int32s ([]int32) in packed format. -func (o *Buffer) enc_slice_packed_int32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - p.valEnc(buf, uint64(x)) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_int32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - bufSize += p.valSize(uint64(x)) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of uint32s ([]uint32). -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_slice_uint32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - x := s.Index(i) - p.valEnc(o, uint64(x)) - } - return nil -} - -func size_slice_uint32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - x := s.Index(i) - n += p.valSize(uint64(x)) - } - return -} - -// Encode a slice of uint32s ([]uint32) in packed format. -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_slice_packed_uint32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - p.valEnc(buf, uint64(s.Index(i))) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_uint32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - bufSize += p.valSize(uint64(s.Index(i))) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of int64s ([]int64). -func (o *Buffer) enc_slice_int64(p *Properties, base structPointer) error { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, s.Index(i)) - } - return nil -} - -func size_slice_int64(p *Properties, base structPointer) (n int) { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - n += p.valSize(s.Index(i)) - } - return -} - -// Encode a slice of int64s ([]int64) in packed format. -func (o *Buffer) enc_slice_packed_int64(p *Properties, base structPointer) error { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - p.valEnc(buf, s.Index(i)) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_int64(p *Properties, base structPointer) (n int) { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - bufSize += p.valSize(s.Index(i)) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of slice of bytes ([][]byte). -func (o *Buffer) enc_slice_slice_byte(p *Properties, base structPointer) error { - ss := *structPointer_BytesSlice(base, p.field) - l := len(ss) - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(ss[i]) - } - return nil -} - -func size_slice_slice_byte(p *Properties, base structPointer) (n int) { - ss := *structPointer_BytesSlice(base, p.field) - l := len(ss) - if l == 0 { - return 0 - } - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - n += sizeRawBytes(ss[i]) - } - return -} - -// Encode a slice of strings ([]string). -func (o *Buffer) enc_slice_string(p *Properties, base structPointer) error { - ss := *structPointer_StringSlice(base, p.field) - l := len(ss) - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(ss[i]) - } - return nil -} - -func size_slice_string(p *Properties, base structPointer) (n int) { - ss := *structPointer_StringSlice(base, p.field) - l := len(ss) - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - n += sizeStringBytes(ss[i]) - } - return -} - -// Encode a slice of message structs ([]*struct). -func (o *Buffer) enc_slice_struct_message(p *Properties, base structPointer) error { - var state errorState - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - for i := 0; i < l; i++ { - structp := s.Index(i) - if structPointer_IsNil(structp) { - return errRepeatedHasNil - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, err := m.Marshal() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(data) - continue - } - - o.buf = append(o.buf, p.tagcode...) - err := o.enc_len_struct(p.sprop, structp, &state) - if err != nil && !state.shouldContinue(err, nil) { - if err == ErrNil { - return errRepeatedHasNil - } - return err - } - } - return state.err -} - -func size_slice_struct_message(p *Properties, base structPointer) (n int) { - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - structp := s.Index(i) - if structPointer_IsNil(structp) { - return // return the size up to this point - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, _ := m.Marshal() - n += sizeRawBytes(data) - continue - } - - n0 := size_struct(p.sprop, structp) - n1 := sizeVarint(uint64(n0)) // size of encoded length - n += n0 + n1 - } - return -} - -// Encode a slice of group structs ([]*struct). -func (o *Buffer) enc_slice_struct_group(p *Properties, base structPointer) error { - var state errorState - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - for i := 0; i < l; i++ { - b := s.Index(i) - if structPointer_IsNil(b) { - return errRepeatedHasNil - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup)) - - err := o.enc_struct(p.sprop, b) - - if err != nil && !state.shouldContinue(err, nil) { - if err == ErrNil { - return errRepeatedHasNil - } - return err - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup)) - } - return state.err -} - -func size_slice_struct_group(p *Properties, base structPointer) (n int) { - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - n += l * sizeVarint(uint64((p.Tag<<3)|WireStartGroup)) - n += l * sizeVarint(uint64((p.Tag<<3)|WireEndGroup)) - for i := 0; i < l; i++ { - b := s.Index(i) - if structPointer_IsNil(b) { - return // return size up to this point - } - - n += size_struct(p.sprop, b) - } - return -} - -// Encode an extension map. -func (o *Buffer) enc_map(p *Properties, base structPointer) error { - exts := structPointer_ExtMap(base, p.field) - if err := encodeExtensionsMap(*exts); err != nil { - return err - } - - return o.enc_map_body(*exts) -} - -func (o *Buffer) enc_exts(p *Properties, base structPointer) error { - exts := structPointer_Extensions(base, p.field) - - v, mu := exts.extensionsRead() - if v == nil { - return nil - } - - mu.Lock() - defer mu.Unlock() - if err := encodeExtensionsMap(v); err != nil { - return err - } - - return o.enc_map_body(v) -} - -func (o *Buffer) enc_map_body(v map[int32]Extension) error { - // Fast-path for common cases: zero or one extensions. - if len(v) <= 1 { - for _, e := range v { - o.buf = append(o.buf, e.enc...) - } - return nil - } - - // Sort keys to provide a deterministic encoding. - keys := make([]int, 0, len(v)) - for k := range v { - keys = append(keys, int(k)) - } - sort.Ints(keys) - - for _, k := range keys { - o.buf = append(o.buf, v[int32(k)].enc...) - } - return nil -} - -func size_map(p *Properties, base structPointer) int { - v := structPointer_ExtMap(base, p.field) - return extensionsMapSize(*v) -} - -func size_exts(p *Properties, base structPointer) int { - v := structPointer_Extensions(base, p.field) - return extensionsSize(v) -} - -// Encode a map field. -func (o *Buffer) enc_new_map(p *Properties, base structPointer) error { - var state errorState // XXX: or do we need to plumb this through? - - /* - A map defined as - map map_field = N; - is encoded in the same way as - message MapFieldEntry { - key_type key = 1; - value_type value = 2; - } - repeated MapFieldEntry map_field = N; - */ - - v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V - if v.Len() == 0 { - return nil - } - - keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype) - - enc := func() error { - if err := p.mkeyprop.enc(o, p.mkeyprop, keybase); err != nil { - return err - } - if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil && err != ErrNil { - return err - } - return nil - } - - // Don't sort map keys. It is not required by the spec, and C++ doesn't do it. - for _, key := range v.MapKeys() { - val := v.MapIndex(key) - - keycopy.Set(key) - valcopy.Set(val) - - o.buf = append(o.buf, p.tagcode...) - if err := o.enc_len_thing(enc, &state); err != nil { - return err - } - } - return nil -} - -func size_new_map(p *Properties, base structPointer) int { - v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V - - keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype) - - n := 0 - for _, key := range v.MapKeys() { - val := v.MapIndex(key) - keycopy.Set(key) - valcopy.Set(val) - - // Tag codes for key and val are the responsibility of the sub-sizer. - keysize := p.mkeyprop.size(p.mkeyprop, keybase) - valsize := p.mvalprop.size(p.mvalprop, valbase) - entry := keysize + valsize - // Add on tag code and length of map entry itself. - n += len(p.tagcode) + sizeVarint(uint64(entry)) + entry - } - return n -} - -// mapEncodeScratch returns a new reflect.Value matching the map's value type, -// and a structPointer suitable for passing to an encoder or sizer. -func mapEncodeScratch(mapType reflect.Type) (keycopy, valcopy reflect.Value, keybase, valbase structPointer) { - // Prepare addressable doubly-indirect placeholders for the key and value types. - // This is needed because the element-type encoders expect **T, but the map iteration produces T. - - keycopy = reflect.New(mapType.Key()).Elem() // addressable K - keyptr := reflect.New(reflect.PtrTo(keycopy.Type())).Elem() // addressable *K - keyptr.Set(keycopy.Addr()) // - keybase = toStructPointer(keyptr.Addr()) // **K - - // Value types are more varied and require special handling. - switch mapType.Elem().Kind() { - case reflect.Slice: - // []byte - var dummy []byte - valcopy = reflect.ValueOf(&dummy).Elem() // addressable []byte - valbase = toStructPointer(valcopy.Addr()) - case reflect.Ptr: - // message; the generated field type is map[K]*Msg (so V is *Msg), - // so we only need one level of indirection. - valcopy = reflect.New(mapType.Elem()).Elem() // addressable V - valbase = toStructPointer(valcopy.Addr()) - default: - // everything else - valcopy = reflect.New(mapType.Elem()).Elem() // addressable V - valptr := reflect.New(reflect.PtrTo(valcopy.Type())).Elem() // addressable *V - valptr.Set(valcopy.Addr()) // - valbase = toStructPointer(valptr.Addr()) // **V - } - return -} - -// Encode a struct. -func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error { - var state errorState - // Encode fields in tag order so that decoders may use optimizations - // that depend on the ordering. - // https://developers.google.com/protocol-buffers/docs/encoding#order - for _, i := range prop.order { - p := prop.Prop[i] - if p.enc != nil { - err := p.enc(o, p, base) - if err != nil { - if err == ErrNil { - if p.Required && state.err == nil { - state.err = &RequiredNotSetError{p.Name} - } - } else if err == errRepeatedHasNil { - // Give more context to nil values in repeated fields. - return errors.New("repeated field " + p.OrigName + " has nil element") - } else if !state.shouldContinue(err, p) { - return err - } - } - if len(o.buf) > maxMarshalSize { - return ErrTooLarge - } - } - } - - // Do oneof fields. - if prop.oneofMarshaler != nil { - m := structPointer_Interface(base, prop.stype).(Message) - if err := prop.oneofMarshaler(m, o); err == ErrNil { - return errOneofHasNil - } else if err != nil { - return err - } - } - - // Add unrecognized fields at the end. - if prop.unrecField.IsValid() { - v := *structPointer_Bytes(base, prop.unrecField) - if len(o.buf)+len(v) > maxMarshalSize { - return ErrTooLarge - } - if len(v) > 0 { - o.buf = append(o.buf, v...) - } - } - - return state.err -} - -func size_struct(prop *StructProperties, base structPointer) (n int) { - for _, i := range prop.order { - p := prop.Prop[i] - if p.size != nil { - n += p.size(p, base) - } - } - - // Add unrecognized fields at the end. - if prop.unrecField.IsValid() { - v := *structPointer_Bytes(base, prop.unrecField) - n += len(v) - } - - // Factor in any oneof fields. - if prop.oneofSizer != nil { - m := structPointer_Interface(base, prop.stype).(Message) - n += prop.oneofSizer(m) - } - - return -} - -var zeroes [20]byte // longer than any conceivable sizeVarint - -// Encode a struct, preceded by its encoded length (as a varint). -func (o *Buffer) enc_len_struct(prop *StructProperties, base structPointer, state *errorState) error { - return o.enc_len_thing(func() error { return o.enc_struct(prop, base) }, state) -} - -// Encode something, preceded by its encoded length (as a varint). -func (o *Buffer) enc_len_thing(enc func() error, state *errorState) error { - iLen := len(o.buf) - o.buf = append(o.buf, 0, 0, 0, 0) // reserve four bytes for length - iMsg := len(o.buf) - err := enc() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - lMsg := len(o.buf) - iMsg - lLen := sizeVarint(uint64(lMsg)) - switch x := lLen - (iMsg - iLen); { - case x > 0: // actual length is x bytes larger than the space we reserved - // Move msg x bytes right. - o.buf = append(o.buf, zeroes[:x]...) - copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg]) - case x < 0: // actual length is x bytes smaller than the space we reserved - // Move msg x bytes left. - copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg]) - o.buf = o.buf[:len(o.buf)+x] // x is negative - } - // Encode the length in the reserved space. - o.buf = o.buf[:iLen] - o.EncodeVarint(uint64(lMsg)) - o.buf = o.buf[:len(o.buf)+lMsg] - return state.err -} - -// errorState maintains the first error that occurs and updates that error -// with additional context. -type errorState struct { - err error -} - -// shouldContinue reports whether encoding should continue upon encountering the -// given error. If the error is RequiredNotSetError, shouldContinue returns true -// and, if this is the first appearance of that error, remembers it for future -// reporting. -// -// If prop is not nil, it may update any error with additional context about the -// field with the error. -func (s *errorState) shouldContinue(err error, prop *Properties) bool { - // Ignore unset required fields. - reqNotSet, ok := err.(*RequiredNotSetError) - if !ok { - return false - } - if s.err == nil { - if prop != nil { - err = &RequiredNotSetError{prop.Name + "." + reqNotSet.field} - } - s.err = err - } - return true -} diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go index eaad218..42fc120 100644 --- a/vendor/github.com/golang/protobuf/proto/extensions.go +++ b/vendor/github.com/golang/protobuf/proto/extensions.go @@ -1,587 +1,356 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto -/* - * Types and routines for supporting protocol buffer extensions. - */ - import ( "errors" "fmt" "reflect" - "strconv" - "sync" -) - -// ErrMissingExtension is the error returned by GetExtension if the named extension is not in the message. -var ErrMissingExtension = errors.New("proto: missing extension") -// ExtensionRange represents a range of message extensions for a protocol buffer. -// Used in code generated by the protocol compiler. -type ExtensionRange struct { - Start, End int32 // both inclusive -} - -// extendableProto is an interface implemented by any protocol buffer generated by the current -// proto compiler that may be extended. -type extendableProto interface { - Message - ExtensionRangeArray() []ExtensionRange - extensionsWrite() map[int32]Extension - extensionsRead() (map[int32]Extension, sync.Locker) -} - -// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous -// version of the proto compiler that may be extended. -type extendableProtoV1 interface { - Message - ExtensionRangeArray() []ExtensionRange - ExtensionMap() map[int32]Extension -} + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" + "google.golang.org/protobuf/runtime/protoimpl" +) -// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto. -type extensionAdapter struct { - extendableProtoV1 -} +type ( + // ExtensionDesc represents an extension descriptor and + // is used to interact with an extension field in a message. + // + // Variables of this type are generated in code by protoc-gen-go. + ExtensionDesc = protoimpl.ExtensionInfo -func (e extensionAdapter) extensionsWrite() map[int32]Extension { - return e.ExtensionMap() -} + // ExtensionRange represents a range of message extensions. + // Used in code generated by protoc-gen-go. + ExtensionRange = protoiface.ExtensionRangeV1 -func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { - return e.ExtensionMap(), notLocker{} -} + // Deprecated: Do not use; this is an internal type. + Extension = protoimpl.ExtensionFieldV1 -// notLocker is a sync.Locker whose Lock and Unlock methods are nops. -type notLocker struct{} + // Deprecated: Do not use; this is an internal type. + XXX_InternalExtensions = protoimpl.ExtensionFields +) -func (n notLocker) Lock() {} -func (n notLocker) Unlock() {} +// ErrMissingExtension reports whether the extension was not present. +var ErrMissingExtension = errors.New("proto: missing extension") -// extendable returns the extendableProto interface for the given generated proto message. -// If the proto message has the old extension format, it returns a wrapper that implements -// the extendableProto interface. -func extendable(p interface{}) (extendableProto, bool) { - if ep, ok := p.(extendableProto); ok { - return ep, ok - } - if ep, ok := p.(extendableProtoV1); ok { - return extensionAdapter{ep}, ok - } - return nil, false -} +var errNotExtendable = errors.New("proto: not an extendable proto.Message") -// XXX_InternalExtensions is an internal representation of proto extensions. -// -// Each generated message struct type embeds an anonymous XXX_InternalExtensions field, -// thus gaining the unexported 'extensions' method, which can be called only from the proto package. -// -// The methods of XXX_InternalExtensions are not concurrency safe in general, -// but calls to logically read-only methods such as has and get may be executed concurrently. -type XXX_InternalExtensions struct { - // The struct must be indirect so that if a user inadvertently copies a - // generated message and its embedded XXX_InternalExtensions, they - // avoid the mayhem of a copied mutex. - // - // The mutex serializes all logically read-only operations to p.extensionMap. - // It is up to the client to ensure that write operations to p.extensionMap are - // mutually exclusive with other accesses. - p *struct { - mu sync.Mutex - extensionMap map[int32]Extension +// HasExtension reports whether the extension field is present in m +// either as an explicitly populated field or as an unknown field. +func HasExtension(m Message, xt *ExtensionDesc) (has bool) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return false } -} -// extensionsWrite returns the extension map, creating it on first use. -func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension { - if e.p == nil { - e.p = new(struct { - mu sync.Mutex - extensionMap map[int32]Extension + // Check whether any populated known field matches the field number. + xtd := xt.TypeDescriptor() + if isValidExtension(mr.Descriptor(), xtd) { + has = mr.Has(xtd) + } else { + mr.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + has = int32(fd.Number()) == xt.Field + return !has }) - e.p.extensionMap = make(map[int32]Extension) } - return e.p.extensionMap -} -// extensionsRead returns the extensions map for read-only use. It may be nil. -// The caller must hold the returned mutex's lock when accessing Elements within the map. -func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) { - if e.p == nil { - return nil, nil + // Check whether any unknown field matches the field number. + for b := mr.GetUnknown(); !has && len(b) > 0; { + num, _, n := protowire.ConsumeField(b) + has = int32(num) == xt.Field + b = b[n:] } - return e.p.extensionMap, &e.p.mu -} - -var extendableProtoType = reflect.TypeOf((*extendableProto)(nil)).Elem() -var extendableProtoV1Type = reflect.TypeOf((*extendableProtoV1)(nil)).Elem() - -// ExtensionDesc represents an extension specification. -// Used in generated code from the protocol compiler. -type ExtensionDesc struct { - ExtendedType Message // nil pointer to the type that is being extended - ExtensionType interface{} // nil pointer to the extension type - Field int32 // field number - Name string // fully-qualified name of extension, for text formatting - Tag string // protobuf tag style - Filename string // name of the file in which the extension is defined + return has } -func (ed *ExtensionDesc) repeated() bool { - t := reflect.TypeOf(ed.ExtensionType) - return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 -} - -// Extension represents an extension in a message. -type Extension struct { - // When an extension is stored in a message using SetExtension - // only desc and value are set. When the message is marshaled - // enc will be set to the encoded form of the message. - // - // When a message is unmarshaled and contains extensions, each - // extension will have only enc set. When such an extension is - // accessed using GetExtension (or GetExtensions) desc and value - // will be set. - desc *ExtensionDesc - value interface{} - enc []byte -} - -// SetRawExtension is for testing only. -func SetRawExtension(base Message, id int32, b []byte) { - epb, ok := extendable(base) - if !ok { +// ClearExtension removes the extension field from m +// either as an explicitly populated field or as an unknown field. +func ClearExtension(m Message, xt *ExtensionDesc) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { return } - extmap := epb.extensionsWrite() - extmap[id] = Extension{enc: b} -} -// isExtensionField returns true iff the given field number is in an extension range. -func isExtensionField(pb extendableProto, field int32) bool { - for _, er := range pb.ExtensionRangeArray() { - if er.Start <= field && field <= er.End { + xtd := xt.TypeDescriptor() + if isValidExtension(mr.Descriptor(), xtd) { + mr.Clear(xtd) + } else { + mr.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + if int32(fd.Number()) == xt.Field { + mr.Clear(fd) + return false + } return true - } + }) } - return false + clearUnknown(mr, fieldNum(xt.Field)) } -// checkExtensionTypes checks that the given extension is valid for pb. -func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error { - var pbi interface{} = pb - // Check the extended type. - if ea, ok := pbi.(extensionAdapter); ok { - pbi = ea.extendableProtoV1 - } - if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { - return errors.New("proto: bad extended type; " + b.String() + " does not extend " + a.String()) - } - // Check the range. - if !isExtensionField(pb, extension.Field) { - return errors.New("proto: bad extension number; not in declared ranges") +// ClearAllExtensions clears all extensions from m. +// This includes populated fields and unknown fields in the extension range. +func ClearAllExtensions(m Message) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return } - return nil -} - -// extPropKey is sufficient to uniquely identify an extension. -type extPropKey struct { - base reflect.Type - field int32 -} -var extProp = struct { - sync.RWMutex - m map[extPropKey]*Properties -}{ - m: make(map[extPropKey]*Properties), + mr.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + if fd.IsExtension() { + mr.Clear(fd) + } + return true + }) + clearUnknown(mr, mr.Descriptor().ExtensionRanges()) } -func extensionProperties(ed *ExtensionDesc) *Properties { - key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field} - - extProp.RLock() - if prop, ok := extProp.m[key]; ok { - extProp.RUnlock() - return prop +// GetExtension retrieves a proto2 extended field from m. +// +// If the descriptor is type complete (i.e., ExtensionDesc.ExtensionType is non-nil), +// then GetExtension parses the encoded field and returns a Go value of the specified type. +// If the field is not present, then the default value is returned (if one is specified), +// otherwise ErrMissingExtension is reported. +// +// If the descriptor is type incomplete (i.e., ExtensionDesc.ExtensionType is nil), +// then GetExtension returns the raw encoded bytes for the extension field. +func GetExtension(m Message, xt *ExtensionDesc) (interface{}, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() || mr.Descriptor().ExtensionRanges().Len() == 0 { + return nil, errNotExtendable + } + + // Retrieve the unknown fields for this extension field. + var bo protoreflect.RawFields + for bi := mr.GetUnknown(); len(bi) > 0; { + num, _, n := protowire.ConsumeField(bi) + if int32(num) == xt.Field { + bo = append(bo, bi[:n]...) + } + bi = bi[n:] } - extProp.RUnlock() - extProp.Lock() - defer extProp.Unlock() - // Check again. - if prop, ok := extProp.m[key]; ok { - return prop + // For type incomplete descriptors, only retrieve the unknown fields. + if xt.ExtensionType == nil { + return []byte(bo), nil } - prop := new(Properties) - prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil) - extProp.m[key] = prop - return prop -} - -// encode encodes any unmarshaled (unencoded) extensions in e. -func encodeExtensions(e *XXX_InternalExtensions) error { - m, mu := e.extensionsRead() - if m == nil { - return nil // fast path + // If the extension field only exists as unknown fields, unmarshal it. + // This is rarely done since proto.Unmarshal eagerly unmarshals extensions. + xtd := xt.TypeDescriptor() + if !isValidExtension(mr.Descriptor(), xtd) { + return nil, fmt.Errorf("proto: bad extended type; %T does not extend %T", xt.ExtendedType, m) } - mu.Lock() - defer mu.Unlock() - return encodeExtensionsMap(m) -} - -// encode encodes any unmarshaled (unencoded) extensions in e. -func encodeExtensionsMap(m map[int32]Extension) error { - for k, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - continue + if !mr.Has(xtd) && len(bo) > 0 { + m2 := mr.New() + if err := (proto.UnmarshalOptions{ + Resolver: extensionResolver{xt}, + }.Unmarshal(bo, m2.Interface())); err != nil { + return nil, err } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - et := reflect.TypeOf(e.desc.ExtensionType) - props := extensionProperties(e.desc) - - p := NewBuffer(nil) - // If e.value has type T, the encoder expects a *struct{ X T }. - // Pass a *T with a zero field and hope it all works out. - x := reflect.New(et) - x.Elem().Set(reflect.ValueOf(e.value)) - if err := props.enc(p, props, toStructPointer(x)); err != nil { - return err + if m2.Has(xtd) { + mr.Set(xtd, m2.Get(xtd)) + clearUnknown(mr, fieldNum(xt.Field)) } - e.enc = p.buf - m[k] = e } - return nil -} -func extensionsSize(e *XXX_InternalExtensions) (n int) { - m, mu := e.extensionsRead() - if m == nil { - return 0 + // Check whether the message has the extension field set or a default. + var pv protoreflect.Value + switch { + case mr.Has(xtd): + pv = mr.Get(xtd) + case xtd.HasDefault(): + pv = xtd.Default() + default: + return nil, ErrMissingExtension } - mu.Lock() - defer mu.Unlock() - return extensionsMapSize(m) -} - -func extensionsMapSize(m map[int32]Extension) (n int) { - for _, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - n += len(e.enc) - continue - } - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - et := reflect.TypeOf(e.desc.ExtensionType) - props := extensionProperties(e.desc) - - // If e.value has type T, the encoder expects a *struct{ X T }. - // Pass a *T with a zero field and hope it all works out. - x := reflect.New(et) - x.Elem().Set(reflect.ValueOf(e.value)) - n += props.size(props, toStructPointer(x)) + v := xt.InterfaceOf(pv) + rv := reflect.ValueOf(v) + if isScalarKind(rv.Kind()) { + rv2 := reflect.New(rv.Type()) + rv2.Elem().Set(rv) + v = rv2.Interface() } - return + return v, nil } -// HasExtension returns whether the given extension is present in pb. -func HasExtension(pb Message, extension *ExtensionDesc) bool { - // TODO: Check types, field numbers, etc.? - epb, ok := extendable(pb) - if !ok { - return false - } - extmap, mu := epb.extensionsRead() - if extmap == nil { - return false - } - mu.Lock() - _, ok = extmap[extension.Field] - mu.Unlock() - return ok -} +// extensionResolver is a custom extension resolver that stores a single +// extension type that takes precedence over the global registry. +type extensionResolver struct{ xt protoreflect.ExtensionType } -// ClearExtension removes the given extension from pb. -func ClearExtension(pb Message, extension *ExtensionDesc) { - epb, ok := extendable(pb) - if !ok { - return +func (r extensionResolver) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + if xtd := r.xt.TypeDescriptor(); xtd.FullName() == field { + return r.xt, nil } - // TODO: Check types, field numbers, etc.? - extmap := epb.extensionsWrite() - delete(extmap, extension.Field) + return protoregistry.GlobalTypes.FindExtensionByName(field) } -// GetExtension parses and returns the given extension of pb. -// If the extension is not present and has no default value it returns ErrMissingExtension. -func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { - epb, ok := extendable(pb) - if !ok { - return nil, errors.New("proto: not an extendable proto") - } - - if err := checkExtensionTypes(epb, extension); err != nil { - return nil, err +func (r extensionResolver) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + if xtd := r.xt.TypeDescriptor(); xtd.ContainingMessage().FullName() == message && xtd.Number() == field { + return r.xt, nil } + return protoregistry.GlobalTypes.FindExtensionByNumber(message, field) +} - emap, mu := epb.extensionsRead() - if emap == nil { - return defaultExtensionValue(extension) - } - mu.Lock() - defer mu.Unlock() - e, ok := emap[extension.Field] - if !ok { - // defaultExtensionValue returns the default value or - // ErrMissingExtension if there is no default. - return defaultExtensionValue(extension) +// GetExtensions returns a list of the extensions values present in m, +// corresponding with the provided list of extension descriptors, xts. +// If an extension is missing in m, the corresponding value is nil. +func GetExtensions(m Message, xts []*ExtensionDesc) ([]interface{}, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return nil, errNotExtendable } - if e.value != nil { - // Already decoded. Check the descriptor, though. - if e.desc != extension { - // This shouldn't happen. If it does, it means that - // GetExtension was called twice with two different - // descriptors with the same field number. - return nil, errors.New("proto: descriptor conflict") + vs := make([]interface{}, len(xts)) + for i, xt := range xts { + v, err := GetExtension(m, xt) + if err != nil { + if err == ErrMissingExtension { + continue + } + return vs, err } - return e.value, nil - } - - v, err := decodeExtension(e.enc, extension) - if err != nil { - return nil, err + vs[i] = v } - - // Remember the decoded version and drop the encoded version. - // That way it is safe to mutate what we return. - e.value = v - e.desc = extension - e.enc = nil - emap[extension.Field] = e - return e.value, nil + return vs, nil } -// defaultExtensionValue returns the default value for extension. -// If no default for an extension is defined ErrMissingExtension is returned. -func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { - t := reflect.TypeOf(extension.ExtensionType) - props := extensionProperties(extension) - - sf, _, err := fieldDefault(t, props) - if err != nil { - return nil, err - } - - if sf == nil || sf.value == nil { - // There is no default value. - return nil, ErrMissingExtension - } - - if t.Kind() != reflect.Ptr { - // We do not need to return a Ptr, we can directly return sf.value. - return sf.value, nil +// SetExtension sets an extension field in m to the provided value. +func SetExtension(m Message, xt *ExtensionDesc, v interface{}) error { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() || mr.Descriptor().ExtensionRanges().Len() == 0 { + return errNotExtendable } - // We need to return an interface{} that is a pointer to sf.value. - value := reflect.New(t).Elem() - value.Set(reflect.New(value.Type().Elem())) - if sf.kind == reflect.Int32 { - // We may have an int32 or an enum, but the underlying data is int32. - // Since we can't set an int32 into a non int32 reflect.value directly - // set it as a int32. - value.Elem().SetInt(int64(sf.value.(int32))) - } else { - value.Elem().Set(reflect.ValueOf(sf.value)) + rv := reflect.ValueOf(v) + if reflect.TypeOf(v) != reflect.TypeOf(xt.ExtensionType) { + return fmt.Errorf("proto: bad extension value type. got: %T, want: %T", v, xt.ExtensionType) } - return value.Interface(), nil -} - -// decodeExtension decodes an extension encoded in b. -func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { - o := NewBuffer(b) - - t := reflect.TypeOf(extension.ExtensionType) - - props := extensionProperties(extension) - - // t is a pointer to a struct, pointer to basic type or a slice. - // Allocate a "field" to store the pointer/slice itself; the - // pointer/slice will be stored here. We pass - // the address of this field to props.dec. - // This passes a zero field and a *t and lets props.dec - // interpret it as a *struct{ x t }. - value := reflect.New(t).Elem() - - for { - // Discard wire type and field number varint. It isn't needed. - if _, err := o.DecodeVarint(); err != nil { - return nil, err + if rv.Kind() == reflect.Ptr { + if rv.IsNil() { + return fmt.Errorf("proto: SetExtension called with nil value of type %T", v) } - - if err := props.dec(o, props, toStructPointer(value.Addr())); err != nil { - return nil, err + if isScalarKind(rv.Elem().Kind()) { + v = rv.Elem().Interface() } + } - if o.index >= len(o.buf) { - break - } + xtd := xt.TypeDescriptor() + if !isValidExtension(mr.Descriptor(), xtd) { + return fmt.Errorf("proto: bad extended type; %T does not extend %T", xt.ExtendedType, m) } - return value.Interface(), nil + mr.Set(xtd, xt.ValueOf(v)) + clearUnknown(mr, fieldNum(xt.Field)) + return nil } -// GetExtensions returns a slice of the extensions present in pb that are also listed in es. -// The returned slice has the same length as es; missing extensions will appear as nil elements. -func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { - epb, ok := extendable(pb) - if !ok { - return nil, errors.New("proto: not an extendable proto") +// SetRawExtension inserts b into the unknown fields of m. +// +// Deprecated: Use Message.ProtoReflect.SetUnknown instead. +func SetRawExtension(m Message, fnum int32, b []byte) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return } - extensions = make([]interface{}, len(es)) - for i, e := range es { - extensions[i], err = GetExtension(epb, e) - if err == ErrMissingExtension { - err = nil - } - if err != nil { - return + + // Verify that the raw field is valid. + for b0 := b; len(b0) > 0; { + num, _, n := protowire.ConsumeField(b0) + if int32(num) != fnum { + panic(fmt.Sprintf("mismatching field number: got %d, want %d", num, fnum)) } + b0 = b0[n:] } - return + + ClearExtension(m, &ExtensionDesc{Field: fnum}) + mr.SetUnknown(append(mr.GetUnknown(), b...)) } -// ExtensionDescs returns a new slice containing pb's extension descriptors, in undefined order. -// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing -// just the Field field, which defines the extension's field number. -func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) { - epb, ok := extendable(pb) - if !ok { - return nil, fmt.Errorf("proto: %T is not an extendable proto.Message", pb) +// ExtensionDescs returns a list of extension descriptors found in m, +// containing descriptors for both populated extension fields in m and +// also unknown fields of m that are in the extension range. +// For the later case, an type incomplete descriptor is provided where only +// the ExtensionDesc.Field field is populated. +// The order of the extension descriptors is undefined. +func ExtensionDescs(m Message) ([]*ExtensionDesc, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() || mr.Descriptor().ExtensionRanges().Len() == 0 { + return nil, errNotExtendable } - registeredExtensions := RegisteredExtensions(pb) - emap, mu := epb.extensionsRead() - if emap == nil { - return nil, nil - } - mu.Lock() - defer mu.Unlock() - extensions := make([]*ExtensionDesc, 0, len(emap)) - for extid, e := range emap { - desc := e.desc - if desc == nil { - desc = registeredExtensions[extid] - if desc == nil { - desc = &ExtensionDesc{Field: extid} + // Collect a set of known extension descriptors. + extDescs := make(map[protoreflect.FieldNumber]*ExtensionDesc) + mr.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + xt := fd.(protoreflect.ExtensionTypeDescriptor) + if xd, ok := xt.Type().(*ExtensionDesc); ok { + extDescs[fd.Number()] = xd } } - - extensions = append(extensions, desc) + return true + }) + + // Collect a set of unknown extension descriptors. + extRanges := mr.Descriptor().ExtensionRanges() + for b := mr.GetUnknown(); len(b) > 0; { + num, _, n := protowire.ConsumeField(b) + if extRanges.Has(num) && extDescs[num] == nil { + extDescs[num] = nil + } + b = b[n:] } - return extensions, nil -} -// SetExtension sets the specified extension of pb to the specified value. -func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { - epb, ok := extendable(pb) - if !ok { - return errors.New("proto: not an extendable proto") - } - if err := checkExtensionTypes(epb, extension); err != nil { - return err - } - typ := reflect.TypeOf(extension.ExtensionType) - if typ != reflect.TypeOf(value) { - return errors.New("proto: bad extension value type") - } - // nil extension values need to be caught early, because the - // encoder can't distinguish an ErrNil due to a nil extension - // from an ErrNil due to a missing field. Extensions are - // always optional, so the encoder would just swallow the error - // and drop all the extensions from the encoded message. - if reflect.ValueOf(value).IsNil() { - return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) + // Transpose the set of descriptors into a list. + var xts []*ExtensionDesc + for num, xt := range extDescs { + if xt == nil { + xt = &ExtensionDesc{Field: int32(num)} + } + xts = append(xts, xt) } + return xts, nil +} - extmap := epb.extensionsWrite() - extmap[extension.Field] = Extension{desc: extension, value: value} - return nil +// isValidExtension reports whether xtd is a valid extension descriptor for md. +func isValidExtension(md protoreflect.MessageDescriptor, xtd protoreflect.ExtensionTypeDescriptor) bool { + return xtd.ContainingMessage() == md && md.ExtensionRanges().Has(xtd.Number()) } -// ClearAllExtensions clears all extensions from pb. -func ClearAllExtensions(pb Message) { - epb, ok := extendable(pb) - if !ok { - return - } - m := epb.extensionsWrite() - for k := range m { - delete(m, k) +// isScalarKind reports whether k is a protobuf scalar kind (except bytes). +// This function exists for historical reasons since the representation of +// scalars differs between v1 and v2, where v1 uses *T and v2 uses T. +func isScalarKind(k reflect.Kind) bool { + switch k { + case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: + return true + default: + return false } } -// A global registry of extensions. -// The generated code will register the generated descriptors by calling RegisterExtension. - -var extensionMaps = make(map[reflect.Type]map[int32]*ExtensionDesc) - -// RegisterExtension is called from the generated code. -func RegisterExtension(desc *ExtensionDesc) { - st := reflect.TypeOf(desc.ExtendedType).Elem() - m := extensionMaps[st] - if m == nil { - m = make(map[int32]*ExtensionDesc) - extensionMaps[st] = m +// clearUnknown removes unknown fields from m where remover.Has reports true. +func clearUnknown(m protoreflect.Message, remover interface { + Has(protoreflect.FieldNumber) bool +}) { + var bo protoreflect.RawFields + for bi := m.GetUnknown(); len(bi) > 0; { + num, _, n := protowire.ConsumeField(bi) + if !remover.Has(num) { + bo = append(bo, bi[:n]...) + } + bi = bi[n:] } - if _, ok := m[desc.Field]; ok { - panic("proto: duplicate extension registered: " + st.String() + " " + strconv.Itoa(int(desc.Field))) + if bi := m.GetUnknown(); len(bi) != len(bo) { + m.SetUnknown(bo) } - m[desc.Field] = desc } -// RegisteredExtensions returns a map of the registered extensions of a -// protocol buffer struct, indexed by the extension number. -// The argument pb should be a nil pointer to the struct type. -func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { - return extensionMaps[reflect.TypeOf(pb).Elem()] +type fieldNum protoreflect.FieldNumber + +func (n1 fieldNum) Has(n2 protoreflect.FieldNumber) bool { + return protoreflect.FieldNumber(n1) == n2 } diff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go deleted file mode 100644 index fb512e2..0000000 --- a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go +++ /dev/null @@ -1,484 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build appengine js - -// This file contains an implementation of proto field accesses using package reflect. -// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can -// be used on App Engine. - -package proto - -import ( - "math" - "reflect" -) - -// A structPointer is a pointer to a struct. -type structPointer struct { - v reflect.Value -} - -// toStructPointer returns a structPointer equivalent to the given reflect value. -// The reflect value must itself be a pointer to a struct. -func toStructPointer(v reflect.Value) structPointer { - return structPointer{v} -} - -// IsNil reports whether p is nil. -func structPointer_IsNil(p structPointer) bool { - return p.v.IsNil() -} - -// Interface returns the struct pointer as an interface value. -func structPointer_Interface(p structPointer, _ reflect.Type) interface{} { - return p.v.Interface() -} - -// A field identifies a field in a struct, accessible from a structPointer. -// In this implementation, a field is identified by the sequence of field indices -// passed to reflect's FieldByIndex. -type field []int - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return f.Index -} - -// invalidField is an invalid field identifier. -var invalidField = field(nil) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { return f != nil } - -// field returns the given field in the struct as a reflect value. -func structPointer_field(p structPointer, f field) reflect.Value { - // Special case: an extension map entry with a value of type T - // passes a *T to the struct-handling code with a zero field, - // expecting that it will be treated as equivalent to *struct{ X T }, - // which has the same memory layout. We have to handle that case - // specially, because reflect will panic if we call FieldByIndex on a - // non-struct. - if f == nil { - return p.v.Elem() - } - - return p.v.Elem().FieldByIndex(f) -} - -// ifield returns the given field in the struct as an interface value. -func structPointer_ifield(p structPointer, f field) interface{} { - return structPointer_field(p, f).Addr().Interface() -} - -// Bytes returns the address of a []byte field in the struct. -func structPointer_Bytes(p structPointer, f field) *[]byte { - return structPointer_ifield(p, f).(*[]byte) -} - -// BytesSlice returns the address of a [][]byte field in the struct. -func structPointer_BytesSlice(p structPointer, f field) *[][]byte { - return structPointer_ifield(p, f).(*[][]byte) -} - -// Bool returns the address of a *bool field in the struct. -func structPointer_Bool(p structPointer, f field) **bool { - return structPointer_ifield(p, f).(**bool) -} - -// BoolVal returns the address of a bool field in the struct. -func structPointer_BoolVal(p structPointer, f field) *bool { - return structPointer_ifield(p, f).(*bool) -} - -// BoolSlice returns the address of a []bool field in the struct. -func structPointer_BoolSlice(p structPointer, f field) *[]bool { - return structPointer_ifield(p, f).(*[]bool) -} - -// String returns the address of a *string field in the struct. -func structPointer_String(p structPointer, f field) **string { - return structPointer_ifield(p, f).(**string) -} - -// StringVal returns the address of a string field in the struct. -func structPointer_StringVal(p structPointer, f field) *string { - return structPointer_ifield(p, f).(*string) -} - -// StringSlice returns the address of a []string field in the struct. -func structPointer_StringSlice(p structPointer, f field) *[]string { - return structPointer_ifield(p, f).(*[]string) -} - -// Extensions returns the address of an extension map field in the struct. -func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions { - return structPointer_ifield(p, f).(*XXX_InternalExtensions) -} - -// ExtMap returns the address of an extension map field in the struct. -func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { - return structPointer_ifield(p, f).(*map[int32]Extension) -} - -// NewAt returns the reflect.Value for a pointer to a field in the struct. -func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { - return structPointer_field(p, f).Addr() -} - -// SetStructPointer writes a *struct field in the struct. -func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { - structPointer_field(p, f).Set(q.v) -} - -// GetStructPointer reads a *struct field in the struct. -func structPointer_GetStructPointer(p structPointer, f field) structPointer { - return structPointer{structPointer_field(p, f)} -} - -// StructPointerSlice the address of a []*struct field in the struct. -func structPointer_StructPointerSlice(p structPointer, f field) structPointerSlice { - return structPointerSlice{structPointer_field(p, f)} -} - -// A structPointerSlice represents the address of a slice of pointers to structs -// (themselves messages or groups). That is, v.Type() is *[]*struct{...}. -type structPointerSlice struct { - v reflect.Value -} - -func (p structPointerSlice) Len() int { return p.v.Len() } -func (p structPointerSlice) Index(i int) structPointer { return structPointer{p.v.Index(i)} } -func (p structPointerSlice) Append(q structPointer) { - p.v.Set(reflect.Append(p.v, q.v)) -} - -var ( - int32Type = reflect.TypeOf(int32(0)) - uint32Type = reflect.TypeOf(uint32(0)) - float32Type = reflect.TypeOf(float32(0)) - int64Type = reflect.TypeOf(int64(0)) - uint64Type = reflect.TypeOf(uint64(0)) - float64Type = reflect.TypeOf(float64(0)) -) - -// A word32 represents a field of type *int32, *uint32, *float32, or *enum. -// That is, v.Type() is *int32, *uint32, *float32, or *enum and v is assignable. -type word32 struct { - v reflect.Value -} - -// IsNil reports whether p is nil. -func word32_IsNil(p word32) bool { - return p.v.IsNil() -} - -// Set sets p to point at a newly allocated word with bits set to x. -func word32_Set(p word32, o *Buffer, x uint32) { - t := p.v.Type().Elem() - switch t { - case int32Type: - if len(o.int32s) == 0 { - o.int32s = make([]int32, uint32PoolSize) - } - o.int32s[0] = int32(x) - p.v.Set(reflect.ValueOf(&o.int32s[0])) - o.int32s = o.int32s[1:] - return - case uint32Type: - if len(o.uint32s) == 0 { - o.uint32s = make([]uint32, uint32PoolSize) - } - o.uint32s[0] = x - p.v.Set(reflect.ValueOf(&o.uint32s[0])) - o.uint32s = o.uint32s[1:] - return - case float32Type: - if len(o.float32s) == 0 { - o.float32s = make([]float32, uint32PoolSize) - } - o.float32s[0] = math.Float32frombits(x) - p.v.Set(reflect.ValueOf(&o.float32s[0])) - o.float32s = o.float32s[1:] - return - } - - // must be enum - p.v.Set(reflect.New(t)) - p.v.Elem().SetInt(int64(int32(x))) -} - -// Get gets the bits pointed at by p, as a uint32. -func word32_Get(p word32) uint32 { - elem := p.v.Elem() - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32 returns a reference to a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32(p structPointer, f field) word32 { - return word32{structPointer_field(p, f)} -} - -// A word32Val represents a field of type int32, uint32, float32, or enum. -// That is, v.Type() is int32, uint32, float32, or enum and v is assignable. -type word32Val struct { - v reflect.Value -} - -// Set sets *p to x. -func word32Val_Set(p word32Val, x uint32) { - switch p.v.Type() { - case int32Type: - p.v.SetInt(int64(x)) - return - case uint32Type: - p.v.SetUint(uint64(x)) - return - case float32Type: - p.v.SetFloat(float64(math.Float32frombits(x))) - return - } - - // must be enum - p.v.SetInt(int64(int32(x))) -} - -// Get gets the bits pointed at by p, as a uint32. -func word32Val_Get(p word32Val) uint32 { - elem := p.v - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32Val returns a reference to a int32, uint32, float32, or enum field in the struct. -func structPointer_Word32Val(p structPointer, f field) word32Val { - return word32Val{structPointer_field(p, f)} -} - -// A word32Slice is a slice of 32-bit values. -// That is, v.Type() is []int32, []uint32, []float32, or []enum. -type word32Slice struct { - v reflect.Value -} - -func (p word32Slice) Append(x uint32) { - n, m := p.v.Len(), p.v.Cap() - if n < m { - p.v.SetLen(n + 1) - } else { - t := p.v.Type().Elem() - p.v.Set(reflect.Append(p.v, reflect.Zero(t))) - } - elem := p.v.Index(n) - switch elem.Kind() { - case reflect.Int32: - elem.SetInt(int64(int32(x))) - case reflect.Uint32: - elem.SetUint(uint64(x)) - case reflect.Float32: - elem.SetFloat(float64(math.Float32frombits(x))) - } -} - -func (p word32Slice) Len() int { - return p.v.Len() -} - -func (p word32Slice) Index(i int) uint32 { - elem := p.v.Index(i) - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32Slice returns a reference to a []int32, []uint32, []float32, or []enum field in the struct. -func structPointer_Word32Slice(p structPointer, f field) word32Slice { - return word32Slice{structPointer_field(p, f)} -} - -// word64 is like word32 but for 64-bit values. -type word64 struct { - v reflect.Value -} - -func word64_Set(p word64, o *Buffer, x uint64) { - t := p.v.Type().Elem() - switch t { - case int64Type: - if len(o.int64s) == 0 { - o.int64s = make([]int64, uint64PoolSize) - } - o.int64s[0] = int64(x) - p.v.Set(reflect.ValueOf(&o.int64s[0])) - o.int64s = o.int64s[1:] - return - case uint64Type: - if len(o.uint64s) == 0 { - o.uint64s = make([]uint64, uint64PoolSize) - } - o.uint64s[0] = x - p.v.Set(reflect.ValueOf(&o.uint64s[0])) - o.uint64s = o.uint64s[1:] - return - case float64Type: - if len(o.float64s) == 0 { - o.float64s = make([]float64, uint64PoolSize) - } - o.float64s[0] = math.Float64frombits(x) - p.v.Set(reflect.ValueOf(&o.float64s[0])) - o.float64s = o.float64s[1:] - return - } - panic("unreachable") -} - -func word64_IsNil(p word64) bool { - return p.v.IsNil() -} - -func word64_Get(p word64) uint64 { - elem := p.v.Elem() - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return elem.Uint() - case reflect.Float64: - return math.Float64bits(elem.Float()) - } - panic("unreachable") -} - -func structPointer_Word64(p structPointer, f field) word64 { - return word64{structPointer_field(p, f)} -} - -// word64Val is like word32Val but for 64-bit values. -type word64Val struct { - v reflect.Value -} - -func word64Val_Set(p word64Val, o *Buffer, x uint64) { - switch p.v.Type() { - case int64Type: - p.v.SetInt(int64(x)) - return - case uint64Type: - p.v.SetUint(x) - return - case float64Type: - p.v.SetFloat(math.Float64frombits(x)) - return - } - panic("unreachable") -} - -func word64Val_Get(p word64Val) uint64 { - elem := p.v - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return elem.Uint() - case reflect.Float64: - return math.Float64bits(elem.Float()) - } - panic("unreachable") -} - -func structPointer_Word64Val(p structPointer, f field) word64Val { - return word64Val{structPointer_field(p, f)} -} - -type word64Slice struct { - v reflect.Value -} - -func (p word64Slice) Append(x uint64) { - n, m := p.v.Len(), p.v.Cap() - if n < m { - p.v.SetLen(n + 1) - } else { - t := p.v.Type().Elem() - p.v.Set(reflect.Append(p.v, reflect.Zero(t))) - } - elem := p.v.Index(n) - switch elem.Kind() { - case reflect.Int64: - elem.SetInt(int64(int64(x))) - case reflect.Uint64: - elem.SetUint(uint64(x)) - case reflect.Float64: - elem.SetFloat(float64(math.Float64frombits(x))) - } -} - -func (p word64Slice) Len() int { - return p.v.Len() -} - -func (p word64Slice) Index(i int) uint64 { - elem := p.v.Index(i) - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return uint64(elem.Uint()) - case reflect.Float64: - return math.Float64bits(float64(elem.Float())) - } - panic("unreachable") -} - -func structPointer_Word64Slice(p structPointer, f field) word64Slice { - return word64Slice{structPointer_field(p, f)} -} diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go deleted file mode 100644 index 6b5567d..0000000 --- a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go +++ /dev/null @@ -1,270 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build !appengine,!js - -// This file contains the implementation of the proto field accesses using package unsafe. - -package proto - -import ( - "reflect" - "unsafe" -) - -// NOTE: These type_Foo functions would more idiomatically be methods, -// but Go does not allow methods on pointer types, and we must preserve -// some pointer type for the garbage collector. We use these -// funcs with clunky names as our poor approximation to methods. -// -// An alternative would be -// type structPointer struct { p unsafe.Pointer } -// but that does not registerize as well. - -// A structPointer is a pointer to a struct. -type structPointer unsafe.Pointer - -// toStructPointer returns a structPointer equivalent to the given reflect value. -func toStructPointer(v reflect.Value) structPointer { - return structPointer(unsafe.Pointer(v.Pointer())) -} - -// IsNil reports whether p is nil. -func structPointer_IsNil(p structPointer) bool { - return p == nil -} - -// Interface returns the struct pointer, assumed to have element type t, -// as an interface value. -func structPointer_Interface(p structPointer, t reflect.Type) interface{} { - return reflect.NewAt(t, unsafe.Pointer(p)).Interface() -} - -// A field identifies a field in a struct, accessible from a structPointer. -// In this implementation, a field is identified by its byte offset from the start of the struct. -type field uintptr - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return field(f.Offset) -} - -// invalidField is an invalid field identifier. -const invalidField = ^field(0) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { - return f != ^field(0) -} - -// Bytes returns the address of a []byte field in the struct. -func structPointer_Bytes(p structPointer, f field) *[]byte { - return (*[]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BytesSlice returns the address of a [][]byte field in the struct. -func structPointer_BytesSlice(p structPointer, f field) *[][]byte { - return (*[][]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// Bool returns the address of a *bool field in the struct. -func structPointer_Bool(p structPointer, f field) **bool { - return (**bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BoolVal returns the address of a bool field in the struct. -func structPointer_BoolVal(p structPointer, f field) *bool { - return (*bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BoolSlice returns the address of a []bool field in the struct. -func structPointer_BoolSlice(p structPointer, f field) *[]bool { - return (*[]bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// String returns the address of a *string field in the struct. -func structPointer_String(p structPointer, f field) **string { - return (**string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StringVal returns the address of a string field in the struct. -func structPointer_StringVal(p structPointer, f field) *string { - return (*string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StringSlice returns the address of a []string field in the struct. -func structPointer_StringSlice(p structPointer, f field) *[]string { - return (*[]string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// ExtMap returns the address of an extension map field in the struct. -func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions { - return (*XXX_InternalExtensions)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { - return (*map[int32]Extension)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// NewAt returns the reflect.Value for a pointer to a field in the struct. -func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { - return reflect.NewAt(typ, unsafe.Pointer(uintptr(p)+uintptr(f))) -} - -// SetStructPointer writes a *struct field in the struct. -func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { - *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) = q -} - -// GetStructPointer reads a *struct field in the struct. -func structPointer_GetStructPointer(p structPointer, f field) structPointer { - return *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StructPointerSlice the address of a []*struct field in the struct. -func structPointer_StructPointerSlice(p structPointer, f field) *structPointerSlice { - return (*structPointerSlice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// A structPointerSlice represents a slice of pointers to structs (themselves submessages or groups). -type structPointerSlice []structPointer - -func (v *structPointerSlice) Len() int { return len(*v) } -func (v *structPointerSlice) Index(i int) structPointer { return (*v)[i] } -func (v *structPointerSlice) Append(p structPointer) { *v = append(*v, p) } - -// A word32 is the address of a "pointer to 32-bit value" field. -type word32 **uint32 - -// IsNil reports whether *v is nil. -func word32_IsNil(p word32) bool { - return *p == nil -} - -// Set sets *v to point at a newly allocated word set to x. -func word32_Set(p word32, o *Buffer, x uint32) { - if len(o.uint32s) == 0 { - o.uint32s = make([]uint32, uint32PoolSize) - } - o.uint32s[0] = x - *p = &o.uint32s[0] - o.uint32s = o.uint32s[1:] -} - -// Get gets the value pointed at by *v. -func word32_Get(p word32) uint32 { - return **p -} - -// Word32 returns the address of a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32(p structPointer, f field) word32 { - return word32((**uint32)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// A word32Val is the address of a 32-bit value field. -type word32Val *uint32 - -// Set sets *p to x. -func word32Val_Set(p word32Val, x uint32) { - *p = x -} - -// Get gets the value pointed at by p. -func word32Val_Get(p word32Val) uint32 { - return *p -} - -// Word32Val returns the address of a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32Val(p structPointer, f field) word32Val { - return word32Val((*uint32)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// A word32Slice is a slice of 32-bit values. -type word32Slice []uint32 - -func (v *word32Slice) Append(x uint32) { *v = append(*v, x) } -func (v *word32Slice) Len() int { return len(*v) } -func (v *word32Slice) Index(i int) uint32 { return (*v)[i] } - -// Word32Slice returns the address of a []int32, []uint32, []float32, or []enum field in the struct. -func structPointer_Word32Slice(p structPointer, f field) *word32Slice { - return (*word32Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// word64 is like word32 but for 64-bit values. -type word64 **uint64 - -func word64_Set(p word64, o *Buffer, x uint64) { - if len(o.uint64s) == 0 { - o.uint64s = make([]uint64, uint64PoolSize) - } - o.uint64s[0] = x - *p = &o.uint64s[0] - o.uint64s = o.uint64s[1:] -} - -func word64_IsNil(p word64) bool { - return *p == nil -} - -func word64_Get(p word64) uint64 { - return **p -} - -func structPointer_Word64(p structPointer, f field) word64 { - return word64((**uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// word64Val is like word32Val but for 64-bit values. -type word64Val *uint64 - -func word64Val_Set(p word64Val, o *Buffer, x uint64) { - *p = x -} - -func word64Val_Get(p word64Val) uint64 { - return *p -} - -func structPointer_Word64Val(p structPointer, f field) word64Val { - return word64Val((*uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// word64Slice is like word32Slice but for 64-bit values. -type word64Slice []uint64 - -func (v *word64Slice) Append(x uint64) { *v = append(*v, x) } -func (v *word64Slice) Len() int { return len(*v) } -func (v *word64Slice) Index(i int) uint64 { return (*v)[i] } - -func structPointer_Word64Slice(p structPointer, f field) *word64Slice { - return (*word64Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go index ec2289c..dcdc220 100644 --- a/vendor/github.com/golang/protobuf/proto/properties.go +++ b/vendor/github.com/golang/protobuf/proto/properties.go @@ -1,223 +1,104 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package proto -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - import ( "fmt" - "log" - "os" "reflect" - "sort" "strconv" "strings" "sync" -) -const debug bool = false - -// Constants that identify the encoding of a value on the wire. -const ( - WireVarint = 0 - WireFixed64 = 1 - WireBytes = 2 - WireStartGroup = 3 - WireEndGroup = 4 - WireFixed32 = 5 + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoimpl" ) -const startSize = 10 // initial slice/string sizes - -// Encoders are defined in encode.go -// An encoder outputs the full representation of a field, including its -// tag and encoder type. -type encoder func(p *Buffer, prop *Properties, base structPointer) error - -// A valueEncoder encodes a single integer in a particular encoding. -type valueEncoder func(o *Buffer, x uint64) error - -// Sizers are defined in encode.go -// A sizer returns the encoded size of a field, including its tag and encoder -// type. -type sizer func(prop *Properties, base structPointer) int - -// A valueSizer returns the encoded size of a single integer in a particular -// encoding. -type valueSizer func(x uint64) int - -// Decoders are defined in decode.go -// A decoder creates a value from its wire representation. -// Unrecognized subelements are saved in unrec. -type decoder func(p *Buffer, prop *Properties, base structPointer) error - -// A valueDecoder decodes a single integer in a particular encoding. -type valueDecoder func(o *Buffer) (x uint64, err error) - -// A oneofMarshaler does the marshaling for all oneof fields in a message. -type oneofMarshaler func(Message, *Buffer) error - -// A oneofUnmarshaler does the unmarshaling for a oneof field in a message. -type oneofUnmarshaler func(Message, int, int, *Buffer) (bool, error) - -// A oneofSizer does the sizing for all oneof fields in a message. -type oneofSizer func(Message) int - -// tagMap is an optimization over map[int]int for typical protocol buffer -// use-cases. Encoded protocol buffers are often in tag order with small tag -// numbers. -type tagMap struct { - fastTags []int - slowTags map[int]int -} - -// tagMapFastLimit is the upper bound on the tag number that will be stored in -// the tagMap slice rather than its map. -const tagMapFastLimit = 1024 - -func (p *tagMap) get(t int) (int, bool) { - if t > 0 && t < tagMapFastLimit { - if t >= len(p.fastTags) { - return 0, false - } - fi := p.fastTags[t] - return fi, fi >= 0 - } - fi, ok := p.slowTags[t] - return fi, ok -} - -func (p *tagMap) put(t int, fi int) { - if t > 0 && t < tagMapFastLimit { - for len(p.fastTags) < t+1 { - p.fastTags = append(p.fastTags, -1) - } - p.fastTags[t] = fi - return - } - if p.slowTags == nil { - p.slowTags = make(map[int]int) - } - p.slowTags[t] = fi -} - -// StructProperties represents properties for all the fields of a struct. -// decoderTags and decoderOrigNames should only be used by the decoder. +// StructProperties represents protocol buffer type information for a +// generated protobuf message in the open-struct API. +// +// Deprecated: Do not use. type StructProperties struct { - Prop []*Properties // properties for each field - reqCount int // required count - decoderTags tagMap // map from proto tag to struct field number - decoderOrigNames map[string]int // map from original name to struct field number - order []int // list of struct field numbers in tag order - unrecField field // field id of the XXX_unrecognized []byte field - extendable bool // is this an extendable proto - - oneofMarshaler oneofMarshaler - oneofUnmarshaler oneofUnmarshaler - oneofSizer oneofSizer - stype reflect.Type + // Prop are the properties for each field. + // + // Fields belonging to a oneof are stored in OneofTypes instead, with a + // single Properties representing the parent oneof held here. + // + // The order of Prop matches the order of fields in the Go struct. + // Struct fields that are not related to protobufs have a "XXX_" prefix + // in the Properties.Name and must be ignored by the user. + Prop []*Properties // OneofTypes contains information about the oneof fields in this message. - // It is keyed by the original name of a field. + // It is keyed by the protobuf field name. OneofTypes map[string]*OneofProperties } -// OneofProperties represents information about a specific field in a oneof. -type OneofProperties struct { - Type reflect.Type // pointer to generated struct type for this oneof field - Field int // struct field number of the containing oneof in the message - Prop *Properties -} - -// Implement the sorting interface so we can sort the fields in tag order, as recommended by the spec. -// See encode.go, (*Buffer).enc_struct. - -func (sp *StructProperties) Len() int { return len(sp.order) } -func (sp *StructProperties) Less(i, j int) bool { - return sp.Prop[sp.order[i]].Tag < sp.Prop[sp.order[j]].Tag -} -func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order[j], sp.order[i] } - -// Properties represents the protocol-specific behavior of a single struct field. +// Properties represents the type information for a protobuf message field. +// +// Deprecated: Do not use. type Properties struct { - Name string // name of the field, for error messages - OrigName string // original name before protocol compiler (always set) - JSONName string // name to use for JSON; determined by protoc - Wire string + // Name is a placeholder name with little meaningful semantic value. + // If the name has an "XXX_" prefix, the entire Properties must be ignored. + Name string + // OrigName is the protobuf field name or oneof name. + OrigName string + // JSONName is the JSON name for the protobuf field. + JSONName string + // Enum is a placeholder name for enums. + // For historical reasons, this is neither the Go name for the enum, + // nor the protobuf name for the enum. + Enum string // Deprecated: Do not use. + // Weak contains the full name of the weakly referenced message. + Weak string + // Wire is a string representation of the wire type. + Wire string + // WireType is the protobuf wire type for the field. WireType int - Tag int + // Tag is the protobuf field number. + Tag int + // Required reports whether this is a required field. Required bool + // Optional reports whether this is a optional field. Optional bool + // Repeated reports whether this is a repeated field. Repeated bool - Packed bool // relevant for repeated primitives only - Enum string // set for enum types only - proto3 bool // whether this is known to be a proto3 field; set for []byte only - oneof bool // whether this is a oneof field - - Default string // default value - HasDefault bool // whether an explicit default was provided - def_uint64 uint64 - - enc encoder - valEnc valueEncoder // set for bool and numeric types only - field field - tagcode []byte // encoding of EncodeVarint((Tag<<3)|WireType) - tagbuf [8]byte - stype reflect.Type // set for struct types only - sprop *StructProperties // set for struct types only - isMarshaler bool - isUnmarshaler bool - - mtype reflect.Type // set for map types only - mkeyprop *Properties // set for map types only - mvalprop *Properties // set for map types only - - size sizer - valSize valueSizer // set for bool and numeric types only - - dec decoder - valDec valueDecoder // set for bool and numeric types only + // Packed reports whether this is a packed repeated field of scalars. + Packed bool + // Proto3 reports whether this field operates under the proto3 syntax. + Proto3 bool + // Oneof reports whether this field belongs within a oneof. + Oneof bool + + // Default is the default value in string form. + Default string + // HasDefault reports whether the field has a default value. + HasDefault bool + + // MapKeyProp is the properties for the key field for a map field. + MapKeyProp *Properties + // MapValProp is the properties for the value field for a map field. + MapValProp *Properties +} - // If this is a packable field, this will be the decoder for the packed version of the field. - packedDec decoder +// OneofProperties represents the type information for a protobuf oneof. +// +// Deprecated: Do not use. +type OneofProperties struct { + // Type is a pointer to the generated wrapper type for the field value. + // This is nil for messages that are not in the open-struct API. + Type reflect.Type + // Field is the index into StructProperties.Prop for the containing oneof. + Field int + // Prop is the properties for the field. + Prop *Properties } // String formats the properties in the protobuf struct field tag style. func (p *Properties) String() string { s := p.Wire - s = "," - s += strconv.Itoa(p.Tag) + s += "," + strconv.Itoa(p.Tag) if p.Required { s += ",req" } @@ -231,18 +112,21 @@ func (p *Properties) String() string { s += ",packed" } s += ",name=" + p.OrigName - if p.JSONName != p.OrigName { + if p.JSONName != "" { s += ",json=" + p.JSONName } - if p.proto3 { + if len(p.Enum) > 0 { + s += ",enum=" + p.Enum + } + if len(p.Weak) > 0 { + s += ",weak=" + p.Weak + } + if p.Proto3 { s += ",proto3" } - if p.oneof { + if p.Oneof { s += ",oneof" } - if len(p.Enum) > 0 { - s += ",enum=" + p.Enum - } if p.HasDefault { s += ",def=" + p.Default } @@ -250,623 +134,173 @@ func (p *Properties) String() string { } // Parse populates p by parsing a string in the protobuf struct field tag style. -func (p *Properties) Parse(s string) { - // "bytes,49,opt,name=foo,def=hello!" - fields := strings.Split(s, ",") // breaks def=, but handled below. - if len(fields) < 2 { - fmt.Fprintf(os.Stderr, "proto: tag has too few fields: %q\n", s) - return - } - - p.Wire = fields[0] - switch p.Wire { - case "varint": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeVarint - p.valDec = (*Buffer).DecodeVarint - p.valSize = sizeVarint - case "fixed32": - p.WireType = WireFixed32 - p.valEnc = (*Buffer).EncodeFixed32 - p.valDec = (*Buffer).DecodeFixed32 - p.valSize = sizeFixed32 - case "fixed64": - p.WireType = WireFixed64 - p.valEnc = (*Buffer).EncodeFixed64 - p.valDec = (*Buffer).DecodeFixed64 - p.valSize = sizeFixed64 - case "zigzag32": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeZigzag32 - p.valDec = (*Buffer).DecodeZigzag32 - p.valSize = sizeZigzag32 - case "zigzag64": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeZigzag64 - p.valDec = (*Buffer).DecodeZigzag64 - p.valSize = sizeZigzag64 - case "bytes", "group": - p.WireType = WireBytes - // no numeric converter for non-numeric types - default: - fmt.Fprintf(os.Stderr, "proto: tag has unknown wire type: %q\n", s) - return - } - - var err error - p.Tag, err = strconv.Atoi(fields[1]) - if err != nil { - return - } - - for i := 2; i < len(fields); i++ { - f := fields[i] - switch { - case f == "req": - p.Required = true - case f == "opt": +func (p *Properties) Parse(tag string) { + // For example: "bytes,49,opt,name=foo,def=hello!" + for len(tag) > 0 { + i := strings.IndexByte(tag, ',') + if i < 0 { + i = len(tag) + } + switch s := tag[:i]; { + case strings.HasPrefix(s, "name="): + p.OrigName = s[len("name="):] + case strings.HasPrefix(s, "json="): + p.JSONName = s[len("json="):] + case strings.HasPrefix(s, "enum="): + p.Enum = s[len("enum="):] + case strings.HasPrefix(s, "weak="): + p.Weak = s[len("weak="):] + case strings.Trim(s, "0123456789") == "": + n, _ := strconv.ParseUint(s, 10, 32) + p.Tag = int(n) + case s == "opt": p.Optional = true - case f == "rep": + case s == "req": + p.Required = true + case s == "rep": p.Repeated = true - case f == "packed": + case s == "varint" || s == "zigzag32" || s == "zigzag64": + p.Wire = s + p.WireType = WireVarint + case s == "fixed32": + p.Wire = s + p.WireType = WireFixed32 + case s == "fixed64": + p.Wire = s + p.WireType = WireFixed64 + case s == "bytes": + p.Wire = s + p.WireType = WireBytes + case s == "group": + p.Wire = s + p.WireType = WireStartGroup + case s == "packed": p.Packed = true - case strings.HasPrefix(f, "name="): - p.OrigName = f[5:] - case strings.HasPrefix(f, "json="): - p.JSONName = f[5:] - case strings.HasPrefix(f, "enum="): - p.Enum = f[5:] - case f == "proto3": - p.proto3 = true - case f == "oneof": - p.oneof = true - case strings.HasPrefix(f, "def="): + case s == "proto3": + p.Proto3 = true + case s == "oneof": + p.Oneof = true + case strings.HasPrefix(s, "def="): + // The default tag is special in that everything afterwards is the + // default regardless of the presence of commas. p.HasDefault = true - p.Default = f[4:] // rest of string - if i+1 < len(fields) { - // Commas aren't escaped, and def is always last. - p.Default += "," + strings.Join(fields[i+1:], ",") - break - } + p.Default, i = tag[len("def="):], len(tag) } + tag = strings.TrimPrefix(tag[i:], ",") } } -func logNoSliceEnc(t1, t2 reflect.Type) { - fmt.Fprintf(os.Stderr, "proto: no slice oenc for %T = []%T\n", t1, t2) -} - -var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() - -// Initialize the fields for encoding and decoding. -func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { - p.enc = nil - p.dec = nil - p.size = nil - - switch t1 := typ; t1.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no coders for %v\n", t1) - - // proto3 scalar types - - case reflect.Bool: - p.enc = (*Buffer).enc_proto3_bool - p.dec = (*Buffer).dec_proto3_bool - p.size = size_proto3_bool - case reflect.Int32: - p.enc = (*Buffer).enc_proto3_int32 - p.dec = (*Buffer).dec_proto3_int32 - p.size = size_proto3_int32 - case reflect.Uint32: - p.enc = (*Buffer).enc_proto3_uint32 - p.dec = (*Buffer).dec_proto3_int32 // can reuse - p.size = size_proto3_uint32 - case reflect.Int64, reflect.Uint64: - p.enc = (*Buffer).enc_proto3_int64 - p.dec = (*Buffer).dec_proto3_int64 - p.size = size_proto3_int64 - case reflect.Float32: - p.enc = (*Buffer).enc_proto3_uint32 // can just treat them as bits - p.dec = (*Buffer).dec_proto3_int32 - p.size = size_proto3_uint32 - case reflect.Float64: - p.enc = (*Buffer).enc_proto3_int64 // can just treat them as bits - p.dec = (*Buffer).dec_proto3_int64 - p.size = size_proto3_int64 - case reflect.String: - p.enc = (*Buffer).enc_proto3_string - p.dec = (*Buffer).dec_proto3_string - p.size = size_proto3_string - - case reflect.Ptr: - switch t2 := t1.Elem(); t2.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no encoder function for %v -> %v\n", t1, t2) - break - case reflect.Bool: - p.enc = (*Buffer).enc_bool - p.dec = (*Buffer).dec_bool - p.size = size_bool - case reflect.Int32: - p.enc = (*Buffer).enc_int32 - p.dec = (*Buffer).dec_int32 - p.size = size_int32 - case reflect.Uint32: - p.enc = (*Buffer).enc_uint32 - p.dec = (*Buffer).dec_int32 // can reuse - p.size = size_uint32 - case reflect.Int64, reflect.Uint64: - p.enc = (*Buffer).enc_int64 - p.dec = (*Buffer).dec_int64 - p.size = size_int64 - case reflect.Float32: - p.enc = (*Buffer).enc_uint32 // can just treat them as bits - p.dec = (*Buffer).dec_int32 - p.size = size_uint32 - case reflect.Float64: - p.enc = (*Buffer).enc_int64 // can just treat them as bits - p.dec = (*Buffer).dec_int64 - p.size = size_int64 - case reflect.String: - p.enc = (*Buffer).enc_string - p.dec = (*Buffer).dec_string - p.size = size_string - case reflect.Struct: - p.stype = t1.Elem() - p.isMarshaler = isMarshaler(t1) - p.isUnmarshaler = isUnmarshaler(t1) - if p.Wire == "bytes" { - p.enc = (*Buffer).enc_struct_message - p.dec = (*Buffer).dec_struct_message - p.size = size_struct_message - } else { - p.enc = (*Buffer).enc_struct_group - p.dec = (*Buffer).dec_struct_group - p.size = size_struct_group - } - } - - case reflect.Slice: - switch t2 := t1.Elem(); t2.Kind() { - default: - logNoSliceEnc(t1, t2) - break - case reflect.Bool: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_bool - p.size = size_slice_packed_bool - } else { - p.enc = (*Buffer).enc_slice_bool - p.size = size_slice_bool - } - p.dec = (*Buffer).dec_slice_bool - p.packedDec = (*Buffer).dec_slice_packed_bool - case reflect.Int32: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int32 - p.size = size_slice_packed_int32 - } else { - p.enc = (*Buffer).enc_slice_int32 - p.size = size_slice_int32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case reflect.Uint32: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_uint32 - p.size = size_slice_packed_uint32 - } else { - p.enc = (*Buffer).enc_slice_uint32 - p.size = size_slice_uint32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case reflect.Int64, reflect.Uint64: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int64 - p.size = size_slice_packed_int64 - } else { - p.enc = (*Buffer).enc_slice_int64 - p.size = size_slice_int64 - } - p.dec = (*Buffer).dec_slice_int64 - p.packedDec = (*Buffer).dec_slice_packed_int64 - case reflect.Uint8: - p.dec = (*Buffer).dec_slice_byte - if p.proto3 { - p.enc = (*Buffer).enc_proto3_slice_byte - p.size = size_proto3_slice_byte - } else { - p.enc = (*Buffer).enc_slice_byte - p.size = size_slice_byte - } - case reflect.Float32, reflect.Float64: - switch t2.Bits() { - case 32: - // can just treat them as bits - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_uint32 - p.size = size_slice_packed_uint32 - } else { - p.enc = (*Buffer).enc_slice_uint32 - p.size = size_slice_uint32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case 64: - // can just treat them as bits - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int64 - p.size = size_slice_packed_int64 - } else { - p.enc = (*Buffer).enc_slice_int64 - p.size = size_slice_int64 - } - p.dec = (*Buffer).dec_slice_int64 - p.packedDec = (*Buffer).dec_slice_packed_int64 - default: - logNoSliceEnc(t1, t2) - break - } - case reflect.String: - p.enc = (*Buffer).enc_slice_string - p.dec = (*Buffer).dec_slice_string - p.size = size_slice_string - case reflect.Ptr: - switch t3 := t2.Elem(); t3.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no ptr oenc for %T -> %T -> %T\n", t1, t2, t3) - break - case reflect.Struct: - p.stype = t2.Elem() - p.isMarshaler = isMarshaler(t2) - p.isUnmarshaler = isUnmarshaler(t2) - if p.Wire == "bytes" { - p.enc = (*Buffer).enc_slice_struct_message - p.dec = (*Buffer).dec_slice_struct_message - p.size = size_slice_struct_message - } else { - p.enc = (*Buffer).enc_slice_struct_group - p.dec = (*Buffer).dec_slice_struct_group - p.size = size_slice_struct_group - } - } - case reflect.Slice: - switch t2.Elem().Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no slice elem oenc for %T -> %T -> %T\n", t1, t2, t2.Elem()) - break - case reflect.Uint8: - p.enc = (*Buffer).enc_slice_slice_byte - p.dec = (*Buffer).dec_slice_slice_byte - p.size = size_slice_slice_byte - } - } - - case reflect.Map: - p.enc = (*Buffer).enc_new_map - p.dec = (*Buffer).dec_new_map - p.size = size_new_map - - p.mtype = t1 - p.mkeyprop = &Properties{} - p.mkeyprop.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) - p.mvalprop = &Properties{} - vtype := p.mtype.Elem() - if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { - // The value type is not a message (*T) or bytes ([]byte), - // so we need encoders for the pointer to this type. - vtype = reflect.PtrTo(vtype) - } - p.mvalprop.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) - } - - // precalculate tag code - wire := p.WireType - if p.Packed { - wire = WireBytes - } - x := uint32(p.Tag)<<3 | uint32(wire) - i := 0 - for i = 0; x > 127; i++ { - p.tagbuf[i] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - p.tagbuf[i] = uint8(x) - p.tagcode = p.tagbuf[0 : i+1] - - if p.stype != nil { - if lockGetProp { - p.sprop = GetProperties(p.stype) - } else { - p.sprop = getPropertiesLocked(p.stype) - } - } -} - -var ( - marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() - unmarshalerType = reflect.TypeOf((*Unmarshaler)(nil)).Elem() -) - -// isMarshaler reports whether type t implements Marshaler. -func isMarshaler(t reflect.Type) bool { - // We're checking for (likely) pointer-receiver methods - // so if t is not a pointer, something is very wrong. - // The calls above only invoke isMarshaler on pointer types. - if t.Kind() != reflect.Ptr { - panic("proto: misuse of isMarshaler") - } - return t.Implements(marshalerType) -} - -// isUnmarshaler reports whether type t implements Unmarshaler. -func isUnmarshaler(t reflect.Type) bool { - // We're checking for (likely) pointer-receiver methods - // so if t is not a pointer, something is very wrong. - // The calls above only invoke isUnmarshaler on pointer types. - if t.Kind() != reflect.Ptr { - panic("proto: misuse of isUnmarshaler") - } - return t.Implements(unmarshalerType) -} - // Init populates the properties from a protocol buffer struct tag. +// +// Deprecated: Do not use. func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { - p.init(typ, name, tag, f, true) -} - -func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) { - // "bytes,49,opt,def=hello!" p.Name = name p.OrigName = name - if f != nil { - p.field = toField(f) - } if tag == "" { return } p.Parse(tag) - p.setEncAndDec(typ, f, lockGetProp) + + if typ != nil && typ.Kind() == reflect.Map { + p.MapKeyProp = new(Properties) + p.MapKeyProp.Init(nil, "Key", f.Tag.Get("protobuf_key"), nil) + p.MapValProp = new(Properties) + p.MapValProp.Init(nil, "Value", f.Tag.Get("protobuf_val"), nil) + } } -var ( - propertiesMu sync.RWMutex - propertiesMap = make(map[reflect.Type]*StructProperties) -) +var propertiesCache sync.Map // map[reflect.Type]*StructProperties -// GetProperties returns the list of properties for the type represented by t. -// t must represent a generated struct type of a protocol message. +// GetProperties returns the list of properties for the type represented by t, +// which must be a generated protocol buffer message in the open-struct API, +// where protobuf message fields are represented by exported Go struct fields. +// +// Deprecated: Use protobuf reflection instead. func GetProperties(t reflect.Type) *StructProperties { - if t.Kind() != reflect.Struct { - panic("proto: type must have kind struct") - } - - // Most calls to GetProperties in a long-running program will be - // retrieving details for types we have seen before. - propertiesMu.RLock() - sprop, ok := propertiesMap[t] - propertiesMu.RUnlock() - if ok { - if collectStats { - stats.Chit++ - } - return sprop + if p, ok := propertiesCache.Load(t); ok { + return p.(*StructProperties) } - - propertiesMu.Lock() - sprop = getPropertiesLocked(t) - propertiesMu.Unlock() - return sprop + p, _ := propertiesCache.LoadOrStore(t, newProperties(t)) + return p.(*StructProperties) } -// getPropertiesLocked requires that propertiesMu is held. -func getPropertiesLocked(t reflect.Type) *StructProperties { - if prop, ok := propertiesMap[t]; ok { - if collectStats { - stats.Chit++ - } - return prop - } - if collectStats { - stats.Cmiss++ +func newProperties(t reflect.Type) *StructProperties { + if t.Kind() != reflect.Struct { + panic(fmt.Sprintf("%v is not a generated message in the open-struct API", t)) } + var hasOneof bool prop := new(StructProperties) - // in case of recursive protos, fill this in now. - propertiesMap[t] = prop - - // build properties - prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType) || - reflect.PtrTo(t).Implements(extendableProtoV1Type) - prop.unrecField = invalidField - prop.Prop = make([]*Properties, t.NumField()) - prop.order = make([]int, t.NumField()) + // Construct a list of properties for each field in the struct. for i := 0; i < t.NumField(); i++ { - f := t.Field(i) p := new(Properties) - name := f.Name - p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) + f := t.Field(i) + tagField := f.Tag.Get("protobuf") + p.Init(f.Type, f.Name, tagField, &f) - if f.Name == "XXX_InternalExtensions" { // special case - p.enc = (*Buffer).enc_exts - p.dec = nil // not needed - p.size = size_exts - } else if f.Name == "XXX_extensions" { // special case - p.enc = (*Buffer).enc_map - p.dec = nil // not needed - p.size = size_map - } else if f.Name == "XXX_unrecognized" { // special case - prop.unrecField = toField(&f) - } - oneof := f.Tag.Get("protobuf_oneof") // special case - if oneof != "" { - // Oneof fields don't use the traditional protobuf tag. - p.OrigName = oneof - } - prop.Prop[i] = p - prop.order[i] = i - if debug { - print(i, " ", f.Name, " ", t.String(), " ") - if p.Tag > 0 { - print(p.String()) - } - print("\n") + tagOneof := f.Tag.Get("protobuf_oneof") + if tagOneof != "" { + hasOneof = true + p.OrigName = tagOneof } - if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" { - fmt.Fprintln(os.Stderr, "proto: no encoder for", f.Name, f.Type.String(), "[GetProperties]") - } - } - // Re-order prop.order. - sort.Sort(prop) + // Rename unrelated struct fields with the "XXX_" prefix since so much + // user code simply checks for this to exclude special fields. + if tagField == "" && tagOneof == "" && !strings.HasPrefix(p.Name, "XXX_") { + p.Name = "XXX_" + p.Name + p.OrigName = "XXX_" + p.OrigName + } else if p.Weak != "" { + p.Name = p.OrigName // avoid possible "XXX_" prefix on weak field + } - type oneofMessage interface { - XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) + prop.Prop = append(prop.Prop, p) } - if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { - var oots []interface{} - prop.oneofMarshaler, prop.oneofUnmarshaler, prop.oneofSizer, oots = om.XXX_OneofFuncs() - prop.stype = t - // Interpret oneof metadata. + // Construct a mapping of oneof field names to properties. + if hasOneof { + var oneofWrappers []interface{} + if fn, ok := reflect.PtrTo(t).MethodByName("XXX_OneofFuncs"); ok { + oneofWrappers = fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))})[3].Interface().([]interface{}) + } + if fn, ok := reflect.PtrTo(t).MethodByName("XXX_OneofWrappers"); ok { + oneofWrappers = fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))})[0].Interface().([]interface{}) + } + if m, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(protoreflect.ProtoMessage); ok { + if m, ok := m.ProtoReflect().(interface{ ProtoMessageInfo() *protoimpl.MessageInfo }); ok { + oneofWrappers = m.ProtoMessageInfo().OneofWrappers + } + } + prop.OneofTypes = make(map[string]*OneofProperties) - for _, oot := range oots { - oop := &OneofProperties{ - Type: reflect.ValueOf(oot).Type(), // *T + for _, wrapper := range oneofWrappers { + p := &OneofProperties{ + Type: reflect.ValueOf(wrapper).Type(), // *T Prop: new(Properties), } - sft := oop.Type.Elem().Field(0) - oop.Prop.Name = sft.Name - oop.Prop.Parse(sft.Tag.Get("protobuf")) - // There will be exactly one interface field that - // this new value is assignable to. - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - if f.Type.Kind() != reflect.Interface { - continue - } - if !oop.Type.AssignableTo(f.Type) { - continue + f := p.Type.Elem().Field(0) + p.Prop.Name = f.Name + p.Prop.Parse(f.Tag.Get("protobuf")) + + // Determine the struct field that contains this oneof. + // Each wrapper is assignable to exactly one parent field. + var foundOneof bool + for i := 0; i < t.NumField() && !foundOneof; i++ { + if p.Type.AssignableTo(t.Field(i).Type) { + p.Field = i + foundOneof = true } - oop.Field = i - break } - prop.OneofTypes[oop.Prop.OrigName] = oop - } - } - - // build required counts - // build tags - reqCount := 0 - prop.decoderOrigNames = make(map[string]int) - for i, p := range prop.Prop { - if strings.HasPrefix(p.Name, "XXX_") { - // Internal fields should not appear in tags/origNames maps. - // They are handled specially when encoding and decoding. - continue - } - if p.Required { - reqCount++ + if !foundOneof { + panic(fmt.Sprintf("%v is not a generated message in the open-struct API", t)) + } + prop.OneofTypes[p.Prop.OrigName] = p } - prop.decoderTags.put(p.Tag, i) - prop.decoderOrigNames[p.OrigName] = i } - prop.reqCount = reqCount return prop } -// Return the Properties object for the x[0]'th field of the structure. -func propByIndex(t reflect.Type, x []int) *Properties { - if len(x) != 1 { - fmt.Fprintf(os.Stderr, "proto: field index dimension %d (not 1) for type %s\n", len(x), t) - return nil - } - prop := GetProperties(t) - return prop.Prop[x[0]] -} - -// Get the address and type of a pointer to a struct from an interface. -func getbase(pb Message) (t reflect.Type, b structPointer, err error) { - if pb == nil { - err = ErrNil - return - } - // get the reflect type of the pointer to the struct. - t = reflect.TypeOf(pb) - // get the address of the struct. - value := reflect.ValueOf(pb) - b = toStructPointer(value) - return -} - -// A global registry of enum types. -// The generated code will register the generated maps by calling RegisterEnum. - -var enumValueMaps = make(map[string]map[string]int32) - -// RegisterEnum is called from the generated code to install the enum descriptor -// maps into the global table to aid parsing text format protocol buffers. -func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) { - if _, ok := enumValueMaps[typeName]; ok { - panic("proto: duplicate enum registered: " + typeName) - } - enumValueMaps[typeName] = valueMap -} - -// EnumValueMap returns the mapping from names to integers of the -// enum type enumType, or a nil if not found. -func EnumValueMap(enumType string) map[string]int32 { - return enumValueMaps[enumType] -} - -// A registry of all linked message types. -// The string is a fully-qualified proto name ("pkg.Message"). -var ( - protoTypes = make(map[string]reflect.Type) - revProtoTypes = make(map[reflect.Type]string) -) - -// RegisterType is called from generated code and maps from the fully qualified -// proto name to the type (pointer to struct) of the protocol buffer. -func RegisterType(x Message, name string) { - if _, ok := protoTypes[name]; ok { - // TODO: Some day, make this a panic. - log.Printf("proto: duplicate proto type registered: %s", name) - return - } - t := reflect.TypeOf(x) - protoTypes[name] = t - revProtoTypes[t] = name -} - -// MessageName returns the fully-qualified proto name for the given message type. -func MessageName(x Message) string { - type xname interface { - XXX_MessageName() string - } - if m, ok := x.(xname); ok { - return m.XXX_MessageName() - } - return revProtoTypes[reflect.TypeOf(x)] -} - -// MessageType returns the message type (pointer to struct) for a named message. -func MessageType(name string) reflect.Type { return protoTypes[name] } - -// A registry of all linked proto files. -var ( - protoFiles = make(map[string][]byte) // file name => fileDescriptor -) - -// RegisterFile is called from generated code and maps from the -// full file name of a .proto file to its compressed FileDescriptorProto. -func RegisterFile(filename string, fileDescriptor []byte) { - protoFiles[filename] = fileDescriptor -} - -// FileDescriptor returns the compressed FileDescriptorProto for a .proto file. -func FileDescriptor(filename string) []byte { return protoFiles[filename] } +func (sp *StructProperties) Len() int { return len(sp.Prop) } +func (sp *StructProperties) Less(i, j int) bool { return false } +func (sp *StructProperties) Swap(i, j int) { return } diff --git a/vendor/github.com/golang/protobuf/proto/proto.go b/vendor/github.com/golang/protobuf/proto/proto.go new file mode 100644 index 0000000..5aee89c --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/proto.go @@ -0,0 +1,167 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package proto provides functionality for handling protocol buffer messages. +// In particular, it provides marshaling and unmarshaling between a protobuf +// message and the binary wire format. +// +// See https://developers.google.com/protocol-buffers/docs/gotutorial for +// more information. +// +// Deprecated: Use the "google.golang.org/protobuf/proto" package instead. +package proto + +import ( + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" + "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + ProtoPackageIsVersion1 = true + ProtoPackageIsVersion2 = true + ProtoPackageIsVersion3 = true + ProtoPackageIsVersion4 = true +) + +// GeneratedEnum is any enum type generated by protoc-gen-go +// which is a named int32 kind. +// This type exists for documentation purposes. +type GeneratedEnum interface{} + +// GeneratedMessage is any message type generated by protoc-gen-go +// which is a pointer to a named struct kind. +// This type exists for documentation purposes. +type GeneratedMessage interface{} + +// Message is a protocol buffer message. +// +// This is the v1 version of the message interface and is marginally better +// than an empty interface as it lacks any method to programatically interact +// with the contents of the message. +// +// A v2 message is declared in "google.golang.org/protobuf/proto".Message and +// exposes protobuf reflection as a first-class feature of the interface. +// +// To convert a v1 message to a v2 message, use the MessageV2 function. +// To convert a v2 message to a v1 message, use the MessageV1 function. +type Message = protoiface.MessageV1 + +// MessageV1 converts either a v1 or v2 message to a v1 message. +// It returns nil if m is nil. +func MessageV1(m GeneratedMessage) protoiface.MessageV1 { + return protoimpl.X.ProtoMessageV1Of(m) +} + +// MessageV2 converts either a v1 or v2 message to a v2 message. +// It returns nil if m is nil. +func MessageV2(m GeneratedMessage) protoV2.Message { + return protoimpl.X.ProtoMessageV2Of(m) +} + +// MessageReflect returns a reflective view for a message. +// It returns nil if m is nil. +func MessageReflect(m Message) protoreflect.Message { + return protoimpl.X.MessageOf(m) +} + +// Marshaler is implemented by messages that can marshal themselves. +// This interface is used by the following functions: Size, Marshal, +// Buffer.Marshal, and Buffer.EncodeMessage. +// +// Deprecated: Do not implement. +type Marshaler interface { + // Marshal formats the encoded bytes of the message. + // It should be deterministic and emit valid protobuf wire data. + // The caller takes ownership of the returned buffer. + Marshal() ([]byte, error) +} + +// Unmarshaler is implemented by messages that can unmarshal themselves. +// This interface is used by the following functions: Unmarshal, UnmarshalMerge, +// Buffer.Unmarshal, Buffer.DecodeMessage, and Buffer.DecodeGroup. +// +// Deprecated: Do not implement. +type Unmarshaler interface { + // Unmarshal parses the encoded bytes of the protobuf wire input. + // The provided buffer is only valid for during method call. + // It should not reset the receiver message. + Unmarshal([]byte) error +} + +// Merger is implemented by messages that can merge themselves. +// This interface is used by the following functions: Clone and Merge. +// +// Deprecated: Do not implement. +type Merger interface { + // Merge merges the contents of src into the receiver message. + // It clones all data structures in src such that it aliases no mutable + // memory referenced by src. + Merge(src Message) +} + +// RequiredNotSetError is an error type returned when +// marshaling or unmarshaling a message with missing required fields. +type RequiredNotSetError struct { + err error +} + +func (e *RequiredNotSetError) Error() string { + if e.err != nil { + return e.err.Error() + } + return "proto: required field not set" +} +func (e *RequiredNotSetError) RequiredNotSet() bool { + return true +} + +func checkRequiredNotSet(m protoV2.Message) error { + if err := protoV2.CheckInitialized(m); err != nil { + return &RequiredNotSetError{err: err} + } + return nil +} + +// Clone returns a deep copy of src. +func Clone(src Message) Message { + return MessageV1(protoV2.Clone(MessageV2(src))) +} + +// Merge merges src into dst, which must be messages of the same type. +// +// Populated scalar fields in src are copied to dst, while populated +// singular messages in src are merged into dst by recursively calling Merge. +// The elements of every list field in src is appended to the corresponded +// list fields in dst. The entries of every map field in src is copied into +// the corresponding map field in dst, possibly replacing existing entries. +// The unknown fields of src are appended to the unknown fields of dst. +func Merge(dst, src Message) { + protoV2.Merge(MessageV2(dst), MessageV2(src)) +} + +// Equal reports whether two messages are equal. +// If two messages marshal to the same bytes under deterministic serialization, +// then Equal is guaranteed to report true. +// +// Two messages are equal if they are the same protobuf message type, +// have the same set of populated known and extension field values, +// and the same set of unknown fields values. +// +// Scalar values are compared with the equivalent of the == operator in Go, +// except bytes values which are compared using bytes.Equal and +// floating point values which specially treat NaNs as equal. +// Message values are compared by recursively calling Equal. +// Lists are equal if each element value is also equal. +// Maps are equal if they have the same set of keys, where the pair of values +// for each key is also equal. +func Equal(x, y Message) bool { + return protoV2.Equal(MessageV2(x), MessageV2(y)) +} + +func isMessageSet(md protoreflect.MessageDescriptor) bool { + ms, ok := md.(interface{ IsMessageSet() bool }) + return ok && ms.IsMessageSet() +} diff --git a/vendor/github.com/golang/protobuf/proto/registry.go b/vendor/github.com/golang/protobuf/proto/registry.go new file mode 100644 index 0000000..066b432 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/registry.go @@ -0,0 +1,317 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "bytes" + "compress/gzip" + "fmt" + "io/ioutil" + "reflect" + "strings" + "sync" + + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoimpl" +) + +// filePath is the path to the proto source file. +type filePath = string // e.g., "google/protobuf/descriptor.proto" + +// fileDescGZIP is the compressed contents of the encoded FileDescriptorProto. +type fileDescGZIP = []byte + +var fileCache sync.Map // map[filePath]fileDescGZIP + +// RegisterFile is called from generated code to register the compressed +// FileDescriptorProto with the file path for a proto source file. +// +// Deprecated: Use protoregistry.GlobalFiles.RegisterFile instead. +func RegisterFile(s filePath, d fileDescGZIP) { + // Decompress the descriptor. + zr, err := gzip.NewReader(bytes.NewReader(d)) + if err != nil { + panic(fmt.Sprintf("proto: invalid compressed file descriptor: %v", err)) + } + b, err := ioutil.ReadAll(zr) + if err != nil { + panic(fmt.Sprintf("proto: invalid compressed file descriptor: %v", err)) + } + + // Construct a protoreflect.FileDescriptor from the raw descriptor. + // Note that DescBuilder.Build automatically registers the constructed + // file descriptor with the v2 registry. + protoimpl.DescBuilder{RawDescriptor: b}.Build() + + // Locally cache the raw descriptor form for the file. + fileCache.Store(s, d) +} + +// FileDescriptor returns the compressed FileDescriptorProto given the file path +// for a proto source file. It returns nil if not found. +// +// Deprecated: Use protoregistry.GlobalFiles.FindFileByPath instead. +func FileDescriptor(s filePath) fileDescGZIP { + if v, ok := fileCache.Load(s); ok { + return v.(fileDescGZIP) + } + + // Find the descriptor in the v2 registry. + var b []byte + if fd, _ := protoregistry.GlobalFiles.FindFileByPath(s); fd != nil { + b, _ = Marshal(protodesc.ToFileDescriptorProto(fd)) + } + + // Locally cache the raw descriptor form for the file. + if len(b) > 0 { + v, _ := fileCache.LoadOrStore(s, protoimpl.X.CompressGZIP(b)) + return v.(fileDescGZIP) + } + return nil +} + +// enumName is the name of an enum. For historical reasons, the enum name is +// neither the full Go name nor the full protobuf name of the enum. +// The name is the dot-separated combination of just the proto package that the +// enum is declared within followed by the Go type name of the generated enum. +type enumName = string // e.g., "my.proto.package.GoMessage_GoEnum" + +// enumsByName maps enum values by name to their numeric counterpart. +type enumsByName = map[string]int32 + +// enumsByNumber maps enum values by number to their name counterpart. +type enumsByNumber = map[int32]string + +var enumCache sync.Map // map[enumName]enumsByName +var numFilesCache sync.Map // map[protoreflect.FullName]int + +// RegisterEnum is called from the generated code to register the mapping of +// enum value names to enum numbers for the enum identified by s. +// +// Deprecated: Use protoregistry.GlobalTypes.RegisterEnum instead. +func RegisterEnum(s enumName, _ enumsByNumber, m enumsByName) { + if _, ok := enumCache.Load(s); ok { + panic("proto: duplicate enum registered: " + s) + } + enumCache.Store(s, m) + + // This does not forward registration to the v2 registry since this API + // lacks sufficient information to construct a complete v2 enum descriptor. +} + +// EnumValueMap returns the mapping from enum value names to enum numbers for +// the enum of the given name. It returns nil if not found. +// +// Deprecated: Use protoregistry.GlobalTypes.FindEnumByName instead. +func EnumValueMap(s enumName) enumsByName { + if v, ok := enumCache.Load(s); ok { + return v.(enumsByName) + } + + // Check whether the cache is stale. If the number of files in the current + // package differs, then it means that some enums may have been recently + // registered upstream that we do not know about. + var protoPkg protoreflect.FullName + if i := strings.LastIndexByte(s, '.'); i >= 0 { + protoPkg = protoreflect.FullName(s[:i]) + } + v, _ := numFilesCache.Load(protoPkg) + numFiles, _ := v.(int) + if protoregistry.GlobalFiles.NumFilesByPackage(protoPkg) == numFiles { + return nil // cache is up-to-date; was not found earlier + } + + // Update the enum cache for all enums declared in the given proto package. + numFiles = 0 + protoregistry.GlobalFiles.RangeFilesByPackage(protoPkg, func(fd protoreflect.FileDescriptor) bool { + walkEnums(fd, func(ed protoreflect.EnumDescriptor) { + name := protoimpl.X.LegacyEnumName(ed) + if _, ok := enumCache.Load(name); !ok { + m := make(enumsByName) + evs := ed.Values() + for i := evs.Len() - 1; i >= 0; i-- { + ev := evs.Get(i) + m[string(ev.Name())] = int32(ev.Number()) + } + enumCache.LoadOrStore(name, m) + } + }) + numFiles++ + return true + }) + numFilesCache.Store(protoPkg, numFiles) + + // Check cache again for enum map. + if v, ok := enumCache.Load(s); ok { + return v.(enumsByName) + } + return nil +} + +// walkEnums recursively walks all enums declared in d. +func walkEnums(d interface { + Enums() protoreflect.EnumDescriptors + Messages() protoreflect.MessageDescriptors +}, f func(protoreflect.EnumDescriptor)) { + eds := d.Enums() + for i := eds.Len() - 1; i >= 0; i-- { + f(eds.Get(i)) + } + mds := d.Messages() + for i := mds.Len() - 1; i >= 0; i-- { + walkEnums(mds.Get(i), f) + } +} + +// messageName is the full name of protobuf message. +type messageName = string + +var messageTypeCache sync.Map // map[messageName]reflect.Type + +// RegisterType is called from generated code to register the message Go type +// for a message of the given name. +// +// Deprecated: Use protoregistry.GlobalTypes.RegisterMessage instead. +func RegisterType(m Message, s messageName) { + mt := protoimpl.X.LegacyMessageTypeOf(m, protoreflect.FullName(s)) + if err := protoregistry.GlobalTypes.RegisterMessage(mt); err != nil { + panic(err) + } + messageTypeCache.Store(s, reflect.TypeOf(m)) +} + +// RegisterMapType is called from generated code to register the Go map type +// for a protobuf message representing a map entry. +// +// Deprecated: Do not use. +func RegisterMapType(m interface{}, s messageName) { + t := reflect.TypeOf(m) + if t.Kind() != reflect.Map { + panic(fmt.Sprintf("invalid map kind: %v", t)) + } + if _, ok := messageTypeCache.Load(s); ok { + panic(fmt.Errorf("proto: duplicate proto message registered: %s", s)) + } + messageTypeCache.Store(s, t) +} + +// MessageType returns the message type for a named message. +// It returns nil if not found. +// +// Deprecated: Use protoregistry.GlobalTypes.FindMessageByName instead. +func MessageType(s messageName) reflect.Type { + if v, ok := messageTypeCache.Load(s); ok { + return v.(reflect.Type) + } + + // Derive the message type from the v2 registry. + var t reflect.Type + if mt, _ := protoregistry.GlobalTypes.FindMessageByName(protoreflect.FullName(s)); mt != nil { + t = messageGoType(mt) + } + + // If we could not get a concrete type, it is possible that it is a + // pseudo-message for a map entry. + if t == nil { + d, _ := protoregistry.GlobalFiles.FindDescriptorByName(protoreflect.FullName(s)) + if md, _ := d.(protoreflect.MessageDescriptor); md != nil && md.IsMapEntry() { + kt := goTypeForField(md.Fields().ByNumber(1)) + vt := goTypeForField(md.Fields().ByNumber(2)) + t = reflect.MapOf(kt, vt) + } + } + + // Locally cache the message type for the given name. + if t != nil { + v, _ := messageTypeCache.LoadOrStore(s, t) + return v.(reflect.Type) + } + return nil +} + +func goTypeForField(fd protoreflect.FieldDescriptor) reflect.Type { + switch k := fd.Kind(); k { + case protoreflect.EnumKind: + if et, _ := protoregistry.GlobalTypes.FindEnumByName(fd.Enum().FullName()); et != nil { + return enumGoType(et) + } + return reflect.TypeOf(protoreflect.EnumNumber(0)) + case protoreflect.MessageKind, protoreflect.GroupKind: + if mt, _ := protoregistry.GlobalTypes.FindMessageByName(fd.Message().FullName()); mt != nil { + return messageGoType(mt) + } + return reflect.TypeOf((*protoreflect.Message)(nil)).Elem() + default: + return reflect.TypeOf(fd.Default().Interface()) + } +} + +func enumGoType(et protoreflect.EnumType) reflect.Type { + return reflect.TypeOf(et.New(0)) +} + +func messageGoType(mt protoreflect.MessageType) reflect.Type { + return reflect.TypeOf(MessageV1(mt.Zero().Interface())) +} + +// MessageName returns the full protobuf name for the given message type. +// +// Deprecated: Use protoreflect.MessageDescriptor.FullName instead. +func MessageName(m Message) messageName { + if m == nil { + return "" + } + if m, ok := m.(interface{ XXX_MessageName() messageName }); ok { + return m.XXX_MessageName() + } + return messageName(protoimpl.X.MessageDescriptorOf(m).FullName()) +} + +// RegisterExtension is called from the generated code to register +// the extension descriptor. +// +// Deprecated: Use protoregistry.GlobalTypes.RegisterExtension instead. +func RegisterExtension(d *ExtensionDesc) { + if err := protoregistry.GlobalTypes.RegisterExtension(d); err != nil { + panic(err) + } +} + +type extensionsByNumber = map[int32]*ExtensionDesc + +var extensionCache sync.Map // map[messageName]extensionsByNumber + +// RegisteredExtensions returns a map of the registered extensions for the +// provided protobuf message, indexed by the extension field number. +// +// Deprecated: Use protoregistry.GlobalTypes.RangeExtensionsByMessage instead. +func RegisteredExtensions(m Message) extensionsByNumber { + // Check whether the cache is stale. If the number of extensions for + // the given message differs, then it means that some extensions were + // recently registered upstream that we do not know about. + s := MessageName(m) + v, _ := extensionCache.Load(s) + xs, _ := v.(extensionsByNumber) + if protoregistry.GlobalTypes.NumExtensionsByMessage(protoreflect.FullName(s)) == len(xs) { + return xs // cache is up-to-date + } + + // Cache is stale, re-compute the extensions map. + xs = make(extensionsByNumber) + protoregistry.GlobalTypes.RangeExtensionsByMessage(protoreflect.FullName(s), func(xt protoreflect.ExtensionType) bool { + if xd, ok := xt.(*ExtensionDesc); ok { + xs[int32(xt.TypeDescriptor().Number())] = xd + } else { + // TODO: This implies that the protoreflect.ExtensionType is a + // custom type not generated by protoc-gen-go. We could try and + // convert the type to an ExtensionDesc. + } + return true + }) + extensionCache.Store(s, xs) + return xs +} diff --git a/vendor/github.com/golang/protobuf/proto/text_decode.go b/vendor/github.com/golang/protobuf/proto/text_decode.go new file mode 100644 index 0000000..47eb3e4 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/text_decode.go @@ -0,0 +1,801 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "encoding" + "errors" + "fmt" + "reflect" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/prototext" + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapTextUnmarshalV2 = false + +// ParseError is returned by UnmarshalText. +type ParseError struct { + Message string + + // Deprecated: Do not use. + Line, Offset int +} + +func (e *ParseError) Error() string { + if wrapTextUnmarshalV2 { + return e.Message + } + if e.Line == 1 { + return fmt.Sprintf("line 1.%d: %v", e.Offset, e.Message) + } + return fmt.Sprintf("line %d: %v", e.Line, e.Message) +} + +// UnmarshalText parses a proto text formatted string into m. +func UnmarshalText(s string, m Message) error { + if u, ok := m.(encoding.TextUnmarshaler); ok { + return u.UnmarshalText([]byte(s)) + } + + m.Reset() + mi := MessageV2(m) + + if wrapTextUnmarshalV2 { + err := prototext.UnmarshalOptions{ + AllowPartial: true, + }.Unmarshal([]byte(s), mi) + if err != nil { + return &ParseError{Message: err.Error()} + } + return checkRequiredNotSet(mi) + } else { + if err := newTextParser(s).unmarshalMessage(mi.ProtoReflect(), ""); err != nil { + return err + } + return checkRequiredNotSet(mi) + } +} + +type textParser struct { + s string // remaining input + done bool // whether the parsing is finished (success or error) + backed bool // whether back() was called + offset, line int + cur token +} + +type token struct { + value string + err *ParseError + line int // line number + offset int // byte number from start of input, not start of line + unquoted string // the unquoted version of value, if it was a quoted string +} + +func newTextParser(s string) *textParser { + p := new(textParser) + p.s = s + p.line = 1 + p.cur.line = 1 + return p +} + +func (p *textParser) unmarshalMessage(m protoreflect.Message, terminator string) (err error) { + md := m.Descriptor() + fds := md.Fields() + + // A struct is a sequence of "name: value", terminated by one of + // '>' or '}', or the end of the input. A name may also be + // "[extension]" or "[type/url]". + // + // The whole struct can also be an expanded Any message, like: + // [type/url] < ... struct contents ... > + seen := make(map[protoreflect.FieldNumber]bool) + for { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value == terminator { + break + } + if tok.value == "[" { + if err := p.unmarshalExtensionOrAny(m, seen); err != nil { + return err + } + continue + } + + // This is a normal, non-extension field. + name := protoreflect.Name(tok.value) + fd := fds.ByName(name) + switch { + case fd == nil: + gd := fds.ByName(protoreflect.Name(strings.ToLower(string(name)))) + if gd != nil && gd.Kind() == protoreflect.GroupKind && gd.Message().Name() == name { + fd = gd + } + case fd.Kind() == protoreflect.GroupKind && fd.Message().Name() != name: + fd = nil + case fd.IsWeak() && fd.Message().IsPlaceholder(): + fd = nil + } + if fd == nil { + typeName := string(md.FullName()) + if m, ok := m.Interface().(Message); ok { + t := reflect.TypeOf(m) + if t.Kind() == reflect.Ptr { + typeName = t.Elem().String() + } + } + return p.errorf("unknown field name %q in %v", name, typeName) + } + if od := fd.ContainingOneof(); od != nil && m.WhichOneof(od) != nil { + return p.errorf("field '%s' would overwrite already parsed oneof '%s'", name, od.Name()) + } + if fd.Cardinality() != protoreflect.Repeated && seen[fd.Number()] { + return p.errorf("non-repeated field %q was repeated", fd.Name()) + } + seen[fd.Number()] = true + + // Consume any colon. + if err := p.checkForColon(fd); err != nil { + return err + } + + // Parse into the field. + v := m.Get(fd) + if !m.Has(fd) && (fd.IsList() || fd.IsMap() || fd.Message() != nil) { + v = m.Mutable(fd) + } + if v, err = p.unmarshalValue(v, fd); err != nil { + return err + } + m.Set(fd, v) + + if err := p.consumeOptionalSeparator(); err != nil { + return err + } + } + return nil +} + +func (p *textParser) unmarshalExtensionOrAny(m protoreflect.Message, seen map[protoreflect.FieldNumber]bool) error { + name, err := p.consumeExtensionOrAnyName() + if err != nil { + return err + } + + // If it contains a slash, it's an Any type URL. + if slashIdx := strings.LastIndex(name, "/"); slashIdx >= 0 { + tok := p.next() + if tok.err != nil { + return tok.err + } + // consume an optional colon + if tok.value == ":" { + tok = p.next() + if tok.err != nil { + return tok.err + } + } + + var terminator string + switch tok.value { + case "<": + terminator = ">" + case "{": + terminator = "}" + default: + return p.errorf("expected '{' or '<', found %q", tok.value) + } + + mt, err := protoregistry.GlobalTypes.FindMessageByURL(name) + if err != nil { + return p.errorf("unrecognized message %q in google.protobuf.Any", name[slashIdx+len("/"):]) + } + m2 := mt.New() + if err := p.unmarshalMessage(m2, terminator); err != nil { + return err + } + b, err := protoV2.Marshal(m2.Interface()) + if err != nil { + return p.errorf("failed to marshal message of type %q: %v", name[slashIdx+len("/"):], err) + } + + urlFD := m.Descriptor().Fields().ByName("type_url") + valFD := m.Descriptor().Fields().ByName("value") + if seen[urlFD.Number()] { + return p.errorf("Any message unpacked multiple times, or %q already set", urlFD.Name()) + } + if seen[valFD.Number()] { + return p.errorf("Any message unpacked multiple times, or %q already set", valFD.Name()) + } + m.Set(urlFD, protoreflect.ValueOfString(name)) + m.Set(valFD, protoreflect.ValueOfBytes(b)) + seen[urlFD.Number()] = true + seen[valFD.Number()] = true + return nil + } + + xname := protoreflect.FullName(name) + xt, _ := protoregistry.GlobalTypes.FindExtensionByName(xname) + if xt == nil && isMessageSet(m.Descriptor()) { + xt, _ = protoregistry.GlobalTypes.FindExtensionByName(xname.Append("message_set_extension")) + } + if xt == nil { + return p.errorf("unrecognized extension %q", name) + } + fd := xt.TypeDescriptor() + if fd.ContainingMessage().FullName() != m.Descriptor().FullName() { + return p.errorf("extension field %q does not extend message %q", name, m.Descriptor().FullName()) + } + + if err := p.checkForColon(fd); err != nil { + return err + } + + v := m.Get(fd) + if !m.Has(fd) && (fd.IsList() || fd.IsMap() || fd.Message() != nil) { + v = m.Mutable(fd) + } + v, err = p.unmarshalValue(v, fd) + if err != nil { + return err + } + m.Set(fd, v) + return p.consumeOptionalSeparator() +} + +func (p *textParser) unmarshalValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == "" { + return v, p.errorf("unexpected EOF") + } + + switch { + case fd.IsList(): + lv := v.List() + var err error + if tok.value == "[" { + // Repeated field with list notation, like [1,2,3]. + for { + vv := lv.NewElement() + vv, err = p.unmarshalSingularValue(vv, fd) + if err != nil { + return v, err + } + lv.Append(vv) + + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == "]" { + break + } + if tok.value != "," { + return v, p.errorf("Expected ']' or ',' found %q", tok.value) + } + } + return v, nil + } + + // One value of the repeated field. + p.back() + vv := lv.NewElement() + vv, err = p.unmarshalSingularValue(vv, fd) + if err != nil { + return v, err + } + lv.Append(vv) + return v, nil + case fd.IsMap(): + // The map entry should be this sequence of tokens: + // < key : KEY value : VALUE > + // However, implementations may omit key or value, and technically + // we should support them in any order. + var terminator string + switch tok.value { + case "<": + terminator = ">" + case "{": + terminator = "}" + default: + return v, p.errorf("expected '{' or '<', found %q", tok.value) + } + + keyFD := fd.MapKey() + valFD := fd.MapValue() + + mv := v.Map() + kv := keyFD.Default() + vv := mv.NewValue() + for { + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == terminator { + break + } + var err error + switch tok.value { + case "key": + if err := p.consumeToken(":"); err != nil { + return v, err + } + if kv, err = p.unmarshalSingularValue(kv, keyFD); err != nil { + return v, err + } + if err := p.consumeOptionalSeparator(); err != nil { + return v, err + } + case "value": + if err := p.checkForColon(valFD); err != nil { + return v, err + } + if vv, err = p.unmarshalSingularValue(vv, valFD); err != nil { + return v, err + } + if err := p.consumeOptionalSeparator(); err != nil { + return v, err + } + default: + p.back() + return v, p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value) + } + } + mv.Set(kv.MapKey(), vv) + return v, nil + default: + p.back() + return p.unmarshalSingularValue(v, fd) + } +} + +func (p *textParser) unmarshalSingularValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + tok := p.next() + if tok.err != nil { + return v, tok.err + } + if tok.value == "" { + return v, p.errorf("unexpected EOF") + } + + switch fd.Kind() { + case protoreflect.BoolKind: + switch tok.value { + case "true", "1", "t", "True": + return protoreflect.ValueOfBool(true), nil + case "false", "0", "f", "False": + return protoreflect.ValueOfBool(false), nil + } + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfInt32(int32(x)), nil + } + + // The C++ parser accepts large positive hex numbers that uses + // two's complement arithmetic to represent negative numbers. + // This feature is here for backwards compatibility with C++. + if strings.HasPrefix(tok.value, "0x") { + if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfInt32(int32(-(int64(^x) + 1))), nil + } + } + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if x, err := strconv.ParseInt(tok.value, 0, 64); err == nil { + return protoreflect.ValueOfInt64(int64(x)), nil + } + + // The C++ parser accepts large positive hex numbers that uses + // two's complement arithmetic to represent negative numbers. + // This feature is here for backwards compatibility with C++. + if strings.HasPrefix(tok.value, "0x") { + if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { + return protoreflect.ValueOfInt64(int64(-(int64(^x) + 1))), nil + } + } + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfUint32(uint32(x)), nil + } + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { + return protoreflect.ValueOfUint64(uint64(x)), nil + } + case protoreflect.FloatKind: + // Ignore 'f' for compatibility with output generated by C++, + // but don't remove 'f' when the value is "-inf" or "inf". + v := tok.value + if strings.HasSuffix(v, "f") && v != "-inf" && v != "inf" { + v = v[:len(v)-len("f")] + } + if x, err := strconv.ParseFloat(v, 32); err == nil { + return protoreflect.ValueOfFloat32(float32(x)), nil + } + case protoreflect.DoubleKind: + // Ignore 'f' for compatibility with output generated by C++, + // but don't remove 'f' when the value is "-inf" or "inf". + v := tok.value + if strings.HasSuffix(v, "f") && v != "-inf" && v != "inf" { + v = v[:len(v)-len("f")] + } + if x, err := strconv.ParseFloat(v, 64); err == nil { + return protoreflect.ValueOfFloat64(float64(x)), nil + } + case protoreflect.StringKind: + if isQuote(tok.value[0]) { + return protoreflect.ValueOfString(tok.unquoted), nil + } + case protoreflect.BytesKind: + if isQuote(tok.value[0]) { + return protoreflect.ValueOfBytes([]byte(tok.unquoted)), nil + } + case protoreflect.EnumKind: + if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(x)), nil + } + vd := fd.Enum().Values().ByName(protoreflect.Name(tok.value)) + if vd != nil { + return protoreflect.ValueOfEnum(vd.Number()), nil + } + case protoreflect.MessageKind, protoreflect.GroupKind: + var terminator string + switch tok.value { + case "{": + terminator = "}" + case "<": + terminator = ">" + default: + return v, p.errorf("expected '{' or '<', found %q", tok.value) + } + err := p.unmarshalMessage(v.Message(), terminator) + return v, err + default: + panic(fmt.Sprintf("invalid kind %v", fd.Kind())) + } + return v, p.errorf("invalid %v: %v", fd.Kind(), tok.value) +} + +// Consume a ':' from the input stream (if the next token is a colon), +// returning an error if a colon is needed but not present. +func (p *textParser) checkForColon(fd protoreflect.FieldDescriptor) *ParseError { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != ":" { + if fd.Message() == nil { + return p.errorf("expected ':', found %q", tok.value) + } + p.back() + } + return nil +} + +// consumeExtensionOrAnyName consumes an extension name or an Any type URL and +// the following ']'. It returns the name or URL consumed. +func (p *textParser) consumeExtensionOrAnyName() (string, error) { + tok := p.next() + if tok.err != nil { + return "", tok.err + } + + // If extension name or type url is quoted, it's a single token. + if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] { + name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0])) + if err != nil { + return "", err + } + return name, p.consumeToken("]") + } + + // Consume everything up to "]" + var parts []string + for tok.value != "]" { + parts = append(parts, tok.value) + tok = p.next() + if tok.err != nil { + return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) + } + if p.done && tok.value != "]" { + return "", p.errorf("unclosed type_url or extension name") + } + } + return strings.Join(parts, ""), nil +} + +// consumeOptionalSeparator consumes an optional semicolon or comma. +// It is used in unmarshalMessage to provide backward compatibility. +func (p *textParser) consumeOptionalSeparator() error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != ";" && tok.value != "," { + p.back() + } + return nil +} + +func (p *textParser) errorf(format string, a ...interface{}) *ParseError { + pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset} + p.cur.err = pe + p.done = true + return pe +} + +func (p *textParser) skipWhitespace() { + i := 0 + for i < len(p.s) && (isWhitespace(p.s[i]) || p.s[i] == '#') { + if p.s[i] == '#' { + // comment; skip to end of line or input + for i < len(p.s) && p.s[i] != '\n' { + i++ + } + if i == len(p.s) { + break + } + } + if p.s[i] == '\n' { + p.line++ + } + i++ + } + p.offset += i + p.s = p.s[i:len(p.s)] + if len(p.s) == 0 { + p.done = true + } +} + +func (p *textParser) advance() { + // Skip whitespace + p.skipWhitespace() + if p.done { + return + } + + // Start of non-whitespace + p.cur.err = nil + p.cur.offset, p.cur.line = p.offset, p.line + p.cur.unquoted = "" + switch p.s[0] { + case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': + // Single symbol + p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] + case '"', '\'': + // Quoted string + i := 1 + for i < len(p.s) && p.s[i] != p.s[0] && p.s[i] != '\n' { + if p.s[i] == '\\' && i+1 < len(p.s) { + // skip escaped char + i++ + } + i++ + } + if i >= len(p.s) || p.s[i] != p.s[0] { + p.errorf("unmatched quote") + return + } + unq, err := unquoteC(p.s[1:i], rune(p.s[0])) + if err != nil { + p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) + return + } + p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)] + p.cur.unquoted = unq + default: + i := 0 + for i < len(p.s) && isIdentOrNumberChar(p.s[i]) { + i++ + } + if i == 0 { + p.errorf("unexpected byte %#x", p.s[0]) + return + } + p.cur.value, p.s = p.s[0:i], p.s[i:len(p.s)] + } + p.offset += len(p.cur.value) +} + +// Back off the parser by one token. Can only be done between calls to next(). +// It makes the next advance() a no-op. +func (p *textParser) back() { p.backed = true } + +// Advances the parser and returns the new current token. +func (p *textParser) next() *token { + if p.backed || p.done { + p.backed = false + return &p.cur + } + p.advance() + if p.done { + p.cur.value = "" + } else if len(p.cur.value) > 0 && isQuote(p.cur.value[0]) { + // Look for multiple quoted strings separated by whitespace, + // and concatenate them. + cat := p.cur + for { + p.skipWhitespace() + if p.done || !isQuote(p.s[0]) { + break + } + p.advance() + if p.cur.err != nil { + return &p.cur + } + cat.value += " " + p.cur.value + cat.unquoted += p.cur.unquoted + } + p.done = false // parser may have seen EOF, but we want to return cat + p.cur = cat + } + return &p.cur +} + +func (p *textParser) consumeToken(s string) error { + tok := p.next() + if tok.err != nil { + return tok.err + } + if tok.value != s { + p.back() + return p.errorf("expected %q, found %q", s, tok.value) + } + return nil +} + +var errBadUTF8 = errors.New("proto: bad UTF-8") + +func unquoteC(s string, quote rune) (string, error) { + // This is based on C++'s tokenizer.cc. + // Despite its name, this is *not* parsing C syntax. + // For instance, "\0" is an invalid quoted string. + + // Avoid allocation in trivial cases. + simple := true + for _, r := range s { + if r == '\\' || r == quote { + simple = false + break + } + } + if simple { + return s, nil + } + + buf := make([]byte, 0, 3*len(s)/2) + for len(s) > 0 { + r, n := utf8.DecodeRuneInString(s) + if r == utf8.RuneError && n == 1 { + return "", errBadUTF8 + } + s = s[n:] + if r != '\\' { + if r < utf8.RuneSelf { + buf = append(buf, byte(r)) + } else { + buf = append(buf, string(r)...) + } + continue + } + + ch, tail, err := unescape(s) + if err != nil { + return "", err + } + buf = append(buf, ch...) + s = tail + } + return string(buf), nil +} + +func unescape(s string) (ch string, tail string, err error) { + r, n := utf8.DecodeRuneInString(s) + if r == utf8.RuneError && n == 1 { + return "", "", errBadUTF8 + } + s = s[n:] + switch r { + case 'a': + return "\a", s, nil + case 'b': + return "\b", s, nil + case 'f': + return "\f", s, nil + case 'n': + return "\n", s, nil + case 'r': + return "\r", s, nil + case 't': + return "\t", s, nil + case 'v': + return "\v", s, nil + case '?': + return "?", s, nil // trigraph workaround + case '\'', '"', '\\': + return string(r), s, nil + case '0', '1', '2', '3', '4', '5', '6', '7': + if len(s) < 2 { + return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) + } + ss := string(r) + s[:2] + s = s[2:] + i, err := strconv.ParseUint(ss, 8, 8) + if err != nil { + return "", "", fmt.Errorf(`\%s contains non-octal digits`, ss) + } + return string([]byte{byte(i)}), s, nil + case 'x', 'X', 'u', 'U': + var n int + switch r { + case 'x', 'X': + n = 2 + case 'u': + n = 4 + case 'U': + n = 8 + } + if len(s) < n { + return "", "", fmt.Errorf(`\%c requires %d following digits`, r, n) + } + ss := s[:n] + s = s[n:] + i, err := strconv.ParseUint(ss, 16, 64) + if err != nil { + return "", "", fmt.Errorf(`\%c%s contains non-hexadecimal digits`, r, ss) + } + if r == 'x' || r == 'X' { + return string([]byte{byte(i)}), s, nil + } + if i > utf8.MaxRune { + return "", "", fmt.Errorf(`\%c%s is not a valid Unicode code point`, r, ss) + } + return string(rune(i)), s, nil + } + return "", "", fmt.Errorf(`unknown escape \%c`, r) +} + +func isIdentOrNumberChar(c byte) bool { + switch { + case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z': + return true + case '0' <= c && c <= '9': + return true + } + switch c { + case '-', '+', '.', '_': + return true + } + return false +} + +func isWhitespace(c byte) bool { + switch c { + case ' ', '\t', '\n', '\r': + return true + } + return false +} + +func isQuote(c byte) bool { + switch c { + case '"', '\'': + return true + } + return false +} diff --git a/vendor/github.com/golang/protobuf/proto/text_encode.go b/vendor/github.com/golang/protobuf/proto/text_encode.go new file mode 100644 index 0000000..a31134e --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/text_encode.go @@ -0,0 +1,560 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "bytes" + "encoding" + "fmt" + "io" + "math" + "sort" + "strings" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const wrapTextMarshalV2 = false + +// TextMarshaler is a configurable text format marshaler. +type TextMarshaler struct { + Compact bool // use compact text format (one line) + ExpandAny bool // expand google.protobuf.Any messages of known types +} + +// Marshal writes the proto text format of m to w. +func (tm *TextMarshaler) Marshal(w io.Writer, m Message) error { + b, err := tm.marshal(m) + if len(b) > 0 { + if _, err := w.Write(b); err != nil { + return err + } + } + return err +} + +// Text returns a proto text formatted string of m. +func (tm *TextMarshaler) Text(m Message) string { + b, _ := tm.marshal(m) + return string(b) +} + +func (tm *TextMarshaler) marshal(m Message) ([]byte, error) { + mr := MessageReflect(m) + if mr == nil || !mr.IsValid() { + return []byte(""), nil + } + + if wrapTextMarshalV2 { + if m, ok := m.(encoding.TextMarshaler); ok { + return m.MarshalText() + } + + opts := prototext.MarshalOptions{ + AllowPartial: true, + EmitUnknown: true, + } + if !tm.Compact { + opts.Indent = " " + } + if !tm.ExpandAny { + opts.Resolver = (*protoregistry.Types)(nil) + } + return opts.Marshal(mr.Interface()) + } else { + w := &textWriter{ + compact: tm.Compact, + expandAny: tm.ExpandAny, + complete: true, + } + + if m, ok := m.(encoding.TextMarshaler); ok { + b, err := m.MarshalText() + if err != nil { + return nil, err + } + w.Write(b) + return w.buf, nil + } + + err := w.writeMessage(mr) + return w.buf, err + } +} + +var ( + defaultTextMarshaler = TextMarshaler{} + compactTextMarshaler = TextMarshaler{Compact: true} +) + +// MarshalText writes the proto text format of m to w. +func MarshalText(w io.Writer, m Message) error { return defaultTextMarshaler.Marshal(w, m) } + +// MarshalTextString returns a proto text formatted string of m. +func MarshalTextString(m Message) string { return defaultTextMarshaler.Text(m) } + +// CompactText writes the compact proto text format of m to w. +func CompactText(w io.Writer, m Message) error { return compactTextMarshaler.Marshal(w, m) } + +// CompactTextString returns a compact proto text formatted string of m. +func CompactTextString(m Message) string { return compactTextMarshaler.Text(m) } + +var ( + newline = []byte("\n") + endBraceNewline = []byte("}\n") + posInf = []byte("inf") + negInf = []byte("-inf") + nan = []byte("nan") +) + +// textWriter is an io.Writer that tracks its indentation level. +type textWriter struct { + compact bool // same as TextMarshaler.Compact + expandAny bool // same as TextMarshaler.ExpandAny + complete bool // whether the current position is a complete line + indent int // indentation level; never negative + buf []byte +} + +func (w *textWriter) Write(p []byte) (n int, _ error) { + newlines := bytes.Count(p, newline) + if newlines == 0 { + if !w.compact && w.complete { + w.writeIndent() + } + w.buf = append(w.buf, p...) + w.complete = false + return len(p), nil + } + + frags := bytes.SplitN(p, newline, newlines+1) + if w.compact { + for i, frag := range frags { + if i > 0 { + w.buf = append(w.buf, ' ') + n++ + } + w.buf = append(w.buf, frag...) + n += len(frag) + } + return n, nil + } + + for i, frag := range frags { + if w.complete { + w.writeIndent() + } + w.buf = append(w.buf, frag...) + n += len(frag) + if i+1 < len(frags) { + w.buf = append(w.buf, '\n') + n++ + } + } + w.complete = len(frags[len(frags)-1]) == 0 + return n, nil +} + +func (w *textWriter) WriteByte(c byte) error { + if w.compact && c == '\n' { + c = ' ' + } + if !w.compact && w.complete { + w.writeIndent() + } + w.buf = append(w.buf, c) + w.complete = c == '\n' + return nil +} + +func (w *textWriter) writeName(fd protoreflect.FieldDescriptor) { + if !w.compact && w.complete { + w.writeIndent() + } + w.complete = false + + if fd.Kind() != protoreflect.GroupKind { + w.buf = append(w.buf, fd.Name()...) + w.WriteByte(':') + } else { + // Use message type name for group field name. + w.buf = append(w.buf, fd.Message().Name()...) + } + + if !w.compact { + w.WriteByte(' ') + } +} + +func requiresQuotes(u string) bool { + // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. + for _, ch := range u { + switch { + case ch == '.' || ch == '/' || ch == '_': + continue + case '0' <= ch && ch <= '9': + continue + case 'A' <= ch && ch <= 'Z': + continue + case 'a' <= ch && ch <= 'z': + continue + default: + return true + } + } + return false +} + +// writeProto3Any writes an expanded google.protobuf.Any message. +// +// It returns (false, nil) if sv value can't be unmarshaled (e.g. because +// required messages are not linked in). +// +// It returns (true, error) when sv was written in expanded format or an error +// was encountered. +func (w *textWriter) writeProto3Any(m protoreflect.Message) (bool, error) { + md := m.Descriptor() + fdURL := md.Fields().ByName("type_url") + fdVal := md.Fields().ByName("value") + + url := m.Get(fdURL).String() + mt, err := protoregistry.GlobalTypes.FindMessageByURL(url) + if err != nil { + return false, nil + } + + b := m.Get(fdVal).Bytes() + m2 := mt.New() + if err := proto.Unmarshal(b, m2.Interface()); err != nil { + return false, nil + } + w.Write([]byte("[")) + if requiresQuotes(url) { + w.writeQuotedString(url) + } else { + w.Write([]byte(url)) + } + if w.compact { + w.Write([]byte("]:<")) + } else { + w.Write([]byte("]: <\n")) + w.indent++ + } + if err := w.writeMessage(m2); err != nil { + return true, err + } + if w.compact { + w.Write([]byte("> ")) + } else { + w.indent-- + w.Write([]byte(">\n")) + } + return true, nil +} + +func (w *textWriter) writeMessage(m protoreflect.Message) error { + md := m.Descriptor() + if w.expandAny && md.FullName() == "google.protobuf.Any" { + if canExpand, err := w.writeProto3Any(m); canExpand { + return err + } + } + + fds := md.Fields() + for i := 0; i < fds.Len(); { + fd := fds.Get(i) + if od := fd.ContainingOneof(); od != nil { + fd = m.WhichOneof(od) + i += od.Fields().Len() + } else { + i++ + } + if fd == nil || !m.Has(fd) { + continue + } + + switch { + case fd.IsList(): + lv := m.Get(fd).List() + for j := 0; j < lv.Len(); j++ { + w.writeName(fd) + v := lv.Get(j) + if err := w.writeSingularValue(v, fd); err != nil { + return err + } + w.WriteByte('\n') + } + case fd.IsMap(): + kfd := fd.MapKey() + vfd := fd.MapValue() + mv := m.Get(fd).Map() + + type entry struct{ key, val protoreflect.Value } + var entries []entry + mv.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + entries = append(entries, entry{k.Value(), v}) + return true + }) + sort.Slice(entries, func(i, j int) bool { + switch kfd.Kind() { + case protoreflect.BoolKind: + return !entries[i].key.Bool() && entries[j].key.Bool() + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind, protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return entries[i].key.Int() < entries[j].key.Int() + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind, protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return entries[i].key.Uint() < entries[j].key.Uint() + case protoreflect.StringKind: + return entries[i].key.String() < entries[j].key.String() + default: + panic("invalid kind") + } + }) + for _, entry := range entries { + w.writeName(fd) + w.WriteByte('<') + if !w.compact { + w.WriteByte('\n') + } + w.indent++ + w.writeName(kfd) + if err := w.writeSingularValue(entry.key, kfd); err != nil { + return err + } + w.WriteByte('\n') + w.writeName(vfd) + if err := w.writeSingularValue(entry.val, vfd); err != nil { + return err + } + w.WriteByte('\n') + w.indent-- + w.WriteByte('>') + w.WriteByte('\n') + } + default: + w.writeName(fd) + if err := w.writeSingularValue(m.Get(fd), fd); err != nil { + return err + } + w.WriteByte('\n') + } + } + + if b := m.GetUnknown(); len(b) > 0 { + w.writeUnknownFields(b) + } + return w.writeExtensions(m) +} + +func (w *textWriter) writeSingularValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) error { + switch fd.Kind() { + case protoreflect.FloatKind, protoreflect.DoubleKind: + switch vf := v.Float(); { + case math.IsInf(vf, +1): + w.Write(posInf) + case math.IsInf(vf, -1): + w.Write(negInf) + case math.IsNaN(vf): + w.Write(nan) + default: + fmt.Fprint(w, v.Interface()) + } + case protoreflect.StringKind: + // NOTE: This does not validate UTF-8 for historical reasons. + w.writeQuotedString(string(v.String())) + case protoreflect.BytesKind: + w.writeQuotedString(string(v.Bytes())) + case protoreflect.MessageKind, protoreflect.GroupKind: + var bra, ket byte = '<', '>' + if fd.Kind() == protoreflect.GroupKind { + bra, ket = '{', '}' + } + w.WriteByte(bra) + if !w.compact { + w.WriteByte('\n') + } + w.indent++ + m := v.Message() + if m2, ok := m.Interface().(encoding.TextMarshaler); ok { + b, err := m2.MarshalText() + if err != nil { + return err + } + w.Write(b) + } else { + w.writeMessage(m) + } + w.indent-- + w.WriteByte(ket) + case protoreflect.EnumKind: + if ev := fd.Enum().Values().ByNumber(v.Enum()); ev != nil { + fmt.Fprint(w, ev.Name()) + } else { + fmt.Fprint(w, v.Enum()) + } + default: + fmt.Fprint(w, v.Interface()) + } + return nil +} + +// writeQuotedString writes a quoted string in the protocol buffer text format. +func (w *textWriter) writeQuotedString(s string) { + w.WriteByte('"') + for i := 0; i < len(s); i++ { + switch c := s[i]; c { + case '\n': + w.buf = append(w.buf, `\n`...) + case '\r': + w.buf = append(w.buf, `\r`...) + case '\t': + w.buf = append(w.buf, `\t`...) + case '"': + w.buf = append(w.buf, `\"`...) + case '\\': + w.buf = append(w.buf, `\\`...) + default: + if isPrint := c >= 0x20 && c < 0x7f; isPrint { + w.buf = append(w.buf, c) + } else { + w.buf = append(w.buf, fmt.Sprintf(`\%03o`, c)...) + } + } + } + w.WriteByte('"') +} + +func (w *textWriter) writeUnknownFields(b []byte) { + if !w.compact { + fmt.Fprintf(w, "/* %d unknown bytes */\n", len(b)) + } + + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return + } + b = b[n:] + + if wtyp == protowire.EndGroupType { + w.indent-- + w.Write(endBraceNewline) + continue + } + fmt.Fprint(w, num) + if wtyp != protowire.StartGroupType { + w.WriteByte(':') + } + if !w.compact || wtyp == protowire.StartGroupType { + w.WriteByte(' ') + } + switch wtyp { + case protowire.VarintType: + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprint(w, v) + case protowire.Fixed32Type: + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprint(w, v) + case protowire.Fixed64Type: + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprint(w, v) + case protowire.BytesType: + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return + } + b = b[n:] + fmt.Fprintf(w, "%q", v) + case protowire.StartGroupType: + w.WriteByte('{') + w.indent++ + default: + fmt.Fprintf(w, "/* unknown wire type %d */", wtyp) + } + w.WriteByte('\n') + } +} + +// writeExtensions writes all the extensions in m. +func (w *textWriter) writeExtensions(m protoreflect.Message) error { + md := m.Descriptor() + if md.ExtensionRanges().Len() == 0 { + return nil + } + + type ext struct { + desc protoreflect.FieldDescriptor + val protoreflect.Value + } + var exts []ext + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + exts = append(exts, ext{fd, v}) + } + return true + }) + sort.Slice(exts, func(i, j int) bool { + return exts[i].desc.Number() < exts[j].desc.Number() + }) + + for _, ext := range exts { + // For message set, use the name of the message as the extension name. + name := string(ext.desc.FullName()) + if isMessageSet(ext.desc.ContainingMessage()) { + name = strings.TrimSuffix(name, ".message_set_extension") + } + + if !ext.desc.IsList() { + if err := w.writeSingularExtension(name, ext.val, ext.desc); err != nil { + return err + } + } else { + lv := ext.val.List() + for i := 0; i < lv.Len(); i++ { + if err := w.writeSingularExtension(name, lv.Get(i), ext.desc); err != nil { + return err + } + } + } + } + return nil +} + +func (w *textWriter) writeSingularExtension(name string, v protoreflect.Value, fd protoreflect.FieldDescriptor) error { + fmt.Fprintf(w, "[%s]:", name) + if !w.compact { + w.WriteByte(' ') + } + if err := w.writeSingularValue(v, fd); err != nil { + return err + } + w.WriteByte('\n') + return nil +} + +func (w *textWriter) writeIndent() { + if !w.complete { + return + } + for i := 0; i < w.indent*2; i++ { + w.buf = append(w.buf, ' ') + } + w.complete = false +} diff --git a/vendor/github.com/golang/protobuf/proto/wire.go b/vendor/github.com/golang/protobuf/proto/wire.go new file mode 100644 index 0000000..d7c28da --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/wire.go @@ -0,0 +1,78 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + protoV2 "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Size returns the size in bytes of the wire-format encoding of m. +func Size(m Message) int { + if m == nil { + return 0 + } + mi := MessageV2(m) + return protoV2.Size(mi) +} + +// Marshal returns the wire-format encoding of m. +func Marshal(m Message) ([]byte, error) { + b, err := marshalAppend(nil, m, false) + if b == nil { + b = zeroBytes + } + return b, err +} + +var zeroBytes = make([]byte, 0, 0) + +func marshalAppend(buf []byte, m Message, deterministic bool) ([]byte, error) { + if m == nil { + return nil, ErrNil + } + mi := MessageV2(m) + nbuf, err := protoV2.MarshalOptions{ + Deterministic: deterministic, + AllowPartial: true, + }.MarshalAppend(buf, mi) + if err != nil { + return buf, err + } + if len(buf) == len(nbuf) { + if !mi.ProtoReflect().IsValid() { + return buf, ErrNil + } + } + return nbuf, checkRequiredNotSet(mi) +} + +// Unmarshal parses a wire-format message in b and places the decoded results in m. +// +// Unmarshal resets m before starting to unmarshal, so any existing data in m is always +// removed. Use UnmarshalMerge to preserve and append to existing data. +func Unmarshal(b []byte, m Message) error { + m.Reset() + return UnmarshalMerge(b, m) +} + +// UnmarshalMerge parses a wire-format message in b and places the decoded results in m. +func UnmarshalMerge(b []byte, m Message) error { + mi := MessageV2(m) + out, err := protoV2.UnmarshalOptions{ + AllowPartial: true, + Merge: true, + }.UnmarshalState(protoiface.UnmarshalInput{ + Buf: b, + Message: mi.ProtoReflect(), + }) + if err != nil { + return err + } + if out.Flags&protoiface.UnmarshalInitialized > 0 { + return nil + } + return checkRequiredNotSet(mi) +} diff --git a/vendor/github.com/golang/protobuf/proto/wrappers.go b/vendor/github.com/golang/protobuf/proto/wrappers.go new file mode 100644 index 0000000..398e348 --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/wrappers.go @@ -0,0 +1,34 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +// Bool stores v in a new bool value and returns a pointer to it. +func Bool(v bool) *bool { return &v } + +// Int stores v in a new int32 value and returns a pointer to it. +// +// Deprecated: Use Int32 instead. +func Int(v int) *int32 { return Int32(int32(v)) } + +// Int32 stores v in a new int32 value and returns a pointer to it. +func Int32(v int32) *int32 { return &v } + +// Int64 stores v in a new int64 value and returns a pointer to it. +func Int64(v int64) *int64 { return &v } + +// Uint32 stores v in a new uint32 value and returns a pointer to it. +func Uint32(v uint32) *uint32 { return &v } + +// Uint64 stores v in a new uint64 value and returns a pointer to it. +func Uint64(v uint64) *uint64 { return &v } + +// Float32 stores v in a new float32 value and returns a pointer to it. +func Float32(v float32) *float32 { return &v } + +// Float64 stores v in a new float64 value and returns a pointer to it. +func Float64(v float64) *float64 { return &v } + +// String stores v in a new string value and returns a pointer to it. +func String(v string) *string { return &v } diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go b/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go index c6a91bc..63dc057 100644 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go +++ b/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.pb.go @@ -1,2215 +1,200 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/descriptor.proto +// source: github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto -/* -Package descriptor is a generated protocol buffer package. - -It is generated from these files: - google/protobuf/descriptor.proto - -It has these top-level messages: - FileDescriptorSet - FileDescriptorProto - DescriptorProto - ExtensionRangeOptions - FieldDescriptorProto - OneofDescriptorProto - EnumDescriptorProto - EnumValueDescriptorProto - ServiceDescriptorProto - MethodDescriptorProto - FileOptions - MessageOptions - FieldOptions - OneofOptions - EnumOptions - EnumValueOptions - ServiceOptions - MethodOptions - UninterpretedOption - SourceCodeInfo - GeneratedCodeInfo -*/ package descriptor -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type FieldDescriptorProto_Type int32 - -const ( - // 0 is reserved for errors. - // Order is weird for historical reasons. - FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1 - FieldDescriptorProto_TYPE_FLOAT FieldDescriptorProto_Type = 2 - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - FieldDescriptorProto_TYPE_INT64 FieldDescriptorProto_Type = 3 - FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4 - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - FieldDescriptorProto_TYPE_INT32 FieldDescriptorProto_Type = 5 - FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6 - FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7 - FieldDescriptorProto_TYPE_BOOL FieldDescriptorProto_Type = 8 - FieldDescriptorProto_TYPE_STRING FieldDescriptorProto_Type = 9 - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - FieldDescriptorProto_TYPE_GROUP FieldDescriptorProto_Type = 10 - FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11 - // New in version 2. - FieldDescriptorProto_TYPE_BYTES FieldDescriptorProto_Type = 12 - FieldDescriptorProto_TYPE_UINT32 FieldDescriptorProto_Type = 13 - FieldDescriptorProto_TYPE_ENUM FieldDescriptorProto_Type = 14 - FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15 - FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16 - FieldDescriptorProto_TYPE_SINT32 FieldDescriptorProto_Type = 17 - FieldDescriptorProto_TYPE_SINT64 FieldDescriptorProto_Type = 18 -) - -var FieldDescriptorProto_Type_name = map[int32]string{ - 1: "TYPE_DOUBLE", - 2: "TYPE_FLOAT", - 3: "TYPE_INT64", - 4: "TYPE_UINT64", - 5: "TYPE_INT32", - 6: "TYPE_FIXED64", - 7: "TYPE_FIXED32", - 8: "TYPE_BOOL", - 9: "TYPE_STRING", - 10: "TYPE_GROUP", - 11: "TYPE_MESSAGE", - 12: "TYPE_BYTES", - 13: "TYPE_UINT32", - 14: "TYPE_ENUM", - 15: "TYPE_SFIXED32", - 16: "TYPE_SFIXED64", - 17: "TYPE_SINT32", - 18: "TYPE_SINT64", -} -var FieldDescriptorProto_Type_value = map[string]int32{ - "TYPE_DOUBLE": 1, - "TYPE_FLOAT": 2, - "TYPE_INT64": 3, - "TYPE_UINT64": 4, - "TYPE_INT32": 5, - "TYPE_FIXED64": 6, - "TYPE_FIXED32": 7, - "TYPE_BOOL": 8, - "TYPE_STRING": 9, - "TYPE_GROUP": 10, - "TYPE_MESSAGE": 11, - "TYPE_BYTES": 12, - "TYPE_UINT32": 13, - "TYPE_ENUM": 14, - "TYPE_SFIXED32": 15, - "TYPE_SFIXED64": 16, - "TYPE_SINT32": 17, - "TYPE_SINT64": 18, -} - -func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type { - p := new(FieldDescriptorProto_Type) - *p = x - return p -} -func (x FieldDescriptorProto_Type) String() string { - return proto.EnumName(FieldDescriptorProto_Type_name, int32(x)) -} -func (x *FieldDescriptorProto_Type) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldDescriptorProto_Type_value, data, "FieldDescriptorProto_Type") - if err != nil { - return err - } - *x = FieldDescriptorProto_Type(value) - return nil -} -func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} } - -type FieldDescriptorProto_Label int32 - -const ( - // 0 is reserved for errors - FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1 - FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2 - FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3 -) - -var FieldDescriptorProto_Label_name = map[int32]string{ - 1: "LABEL_OPTIONAL", - 2: "LABEL_REQUIRED", - 3: "LABEL_REPEATED", -} -var FieldDescriptorProto_Label_value = map[string]int32{ - "LABEL_OPTIONAL": 1, - "LABEL_REQUIRED": 2, - "LABEL_REPEATED": 3, -} - -func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label { - p := new(FieldDescriptorProto_Label) - *p = x - return p -} -func (x FieldDescriptorProto_Label) String() string { - return proto.EnumName(FieldDescriptorProto_Label_name, int32(x)) -} -func (x *FieldDescriptorProto_Label) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldDescriptorProto_Label_value, data, "FieldDescriptorProto_Label") - if err != nil { - return err - } - *x = FieldDescriptorProto_Label(value) - return nil -} -func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{4, 1} -} - -// Generated classes can be optimized for speed or code size. -type FileOptions_OptimizeMode int32 - -const ( - FileOptions_SPEED FileOptions_OptimizeMode = 1 - // etc. - FileOptions_CODE_SIZE FileOptions_OptimizeMode = 2 - FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3 -) - -var FileOptions_OptimizeMode_name = map[int32]string{ - 1: "SPEED", - 2: "CODE_SIZE", - 3: "LITE_RUNTIME", -} -var FileOptions_OptimizeMode_value = map[string]int32{ - "SPEED": 1, - "CODE_SIZE": 2, - "LITE_RUNTIME": 3, -} - -func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode { - p := new(FileOptions_OptimizeMode) - *p = x - return p -} -func (x FileOptions_OptimizeMode) String() string { - return proto.EnumName(FileOptions_OptimizeMode_name, int32(x)) -} -func (x *FileOptions_OptimizeMode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FileOptions_OptimizeMode_value, data, "FileOptions_OptimizeMode") - if err != nil { - return err - } - *x = FileOptions_OptimizeMode(value) - return nil -} -func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{10, 0} } - -type FieldOptions_CType int32 - -const ( - // Default mode. - FieldOptions_STRING FieldOptions_CType = 0 - FieldOptions_CORD FieldOptions_CType = 1 - FieldOptions_STRING_PIECE FieldOptions_CType = 2 -) - -var FieldOptions_CType_name = map[int32]string{ - 0: "STRING", - 1: "CORD", - 2: "STRING_PIECE", -} -var FieldOptions_CType_value = map[string]int32{ - "STRING": 0, - "CORD": 1, - "STRING_PIECE": 2, -} - -func (x FieldOptions_CType) Enum() *FieldOptions_CType { - p := new(FieldOptions_CType) - *p = x - return p -} -func (x FieldOptions_CType) String() string { - return proto.EnumName(FieldOptions_CType_name, int32(x)) -} -func (x *FieldOptions_CType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldOptions_CType_value, data, "FieldOptions_CType") - if err != nil { - return err - } - *x = FieldOptions_CType(value) - return nil -} -func (FieldOptions_CType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{12, 0} } - -type FieldOptions_JSType int32 - -const ( - // Use the default type. - FieldOptions_JS_NORMAL FieldOptions_JSType = 0 - // Use JavaScript strings. - FieldOptions_JS_STRING FieldOptions_JSType = 1 - // Use JavaScript numbers. - FieldOptions_JS_NUMBER FieldOptions_JSType = 2 -) - -var FieldOptions_JSType_name = map[int32]string{ - 0: "JS_NORMAL", - 1: "JS_STRING", - 2: "JS_NUMBER", -} -var FieldOptions_JSType_value = map[string]int32{ - "JS_NORMAL": 0, - "JS_STRING": 1, - "JS_NUMBER": 2, -} - -func (x FieldOptions_JSType) Enum() *FieldOptions_JSType { - p := new(FieldOptions_JSType) - *p = x - return p -} -func (x FieldOptions_JSType) String() string { - return proto.EnumName(FieldOptions_JSType_name, int32(x)) -} -func (x *FieldOptions_JSType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FieldOptions_JSType_value, data, "FieldOptions_JSType") - if err != nil { - return err - } - *x = FieldOptions_JSType(value) - return nil -} -func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{12, 1} } - -// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, -// or neither? HTTP based RPC implementation may choose GET verb for safe -// methods, and PUT verb for idempotent methods instead of the default POST. -type MethodOptions_IdempotencyLevel int32 - -const ( - MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0 - MethodOptions_NO_SIDE_EFFECTS MethodOptions_IdempotencyLevel = 1 - MethodOptions_IDEMPOTENT MethodOptions_IdempotencyLevel = 2 +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" ) -var MethodOptions_IdempotencyLevel_name = map[int32]string{ - 0: "IDEMPOTENCY_UNKNOWN", - 1: "NO_SIDE_EFFECTS", - 2: "IDEMPOTENT", -} -var MethodOptions_IdempotencyLevel_value = map[string]int32{ - "IDEMPOTENCY_UNKNOWN": 0, - "NO_SIDE_EFFECTS": 1, - "IDEMPOTENT": 2, -} - -func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel { - p := new(MethodOptions_IdempotencyLevel) - *p = x - return p -} -func (x MethodOptions_IdempotencyLevel) String() string { - return proto.EnumName(MethodOptions_IdempotencyLevel_name, int32(x)) -} -func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(MethodOptions_IdempotencyLevel_value, data, "MethodOptions_IdempotencyLevel") - if err != nil { - return err - } - *x = MethodOptions_IdempotencyLevel(value) - return nil -} -func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{17, 0} -} - -// The protocol compiler can output a FileDescriptorSet containing the .proto -// files it parses. -type FileDescriptorSet struct { - File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FileDescriptorSet) Reset() { *m = FileDescriptorSet{} } -func (m *FileDescriptorSet) String() string { return proto.CompactTextString(m) } -func (*FileDescriptorSet) ProtoMessage() {} -func (*FileDescriptorSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *FileDescriptorSet) GetFile() []*FileDescriptorProto { - if m != nil { - return m.File - } - return nil -} - -// Describes a complete .proto file. -type FileDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` - // Names of files imported by this file. - Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` - // Indexes of the public imported files in the dependency list above. - PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"` - // Indexes of the weak imported files in the dependency list. - // For Google-internal migration only. Do not use. - WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"` - // All top-level definitions in this file. - MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"` - EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` - Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"` - Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` - Options *FileOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` - // This field contains optional information about the original source code. - // You may safely remove this entire field without harming runtime - // functionality of the descriptors -- the information is needed only by - // development tools. - SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"` - // The syntax of the proto file. - // The supported values are "proto2" and "proto3". - Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FileDescriptorProto) Reset() { *m = FileDescriptorProto{} } -func (m *FileDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*FileDescriptorProto) ProtoMessage() {} -func (*FileDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *FileDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *FileDescriptorProto) GetPackage() string { - if m != nil && m.Package != nil { - return *m.Package - } - return "" -} - -func (m *FileDescriptorProto) GetDependency() []string { - if m != nil { - return m.Dependency - } - return nil -} - -func (m *FileDescriptorProto) GetPublicDependency() []int32 { - if m != nil { - return m.PublicDependency - } - return nil -} - -func (m *FileDescriptorProto) GetWeakDependency() []int32 { - if m != nil { - return m.WeakDependency - } - return nil -} - -func (m *FileDescriptorProto) GetMessageType() []*DescriptorProto { - if m != nil { - return m.MessageType - } - return nil -} - -func (m *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto { - if m != nil { - return m.EnumType - } - return nil -} - -func (m *FileDescriptorProto) GetService() []*ServiceDescriptorProto { - if m != nil { - return m.Service - } - return nil -} - -func (m *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { - if m != nil { - return m.Extension - } - return nil -} - -func (m *FileDescriptorProto) GetOptions() *FileOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo { - if m != nil { - return m.SourceCodeInfo - } - return nil -} - -func (m *FileDescriptorProto) GetSyntax() string { - if m != nil && m.Syntax != nil { - return *m.Syntax - } - return "" -} - -// Describes a message type. -type DescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` - Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"` - NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"` - EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` - ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"` - OneofDecl []*OneofDescriptorProto `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"` - Options *MessageOptions `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"` - ReservedRange []*DescriptorProto_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` - // Reserved field names, which may not be used by fields in the same message. - // A given name may only be reserved once. - ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DescriptorProto) Reset() { *m = DescriptorProto{} } -func (m *DescriptorProto) String() string { return proto.CompactTextString(m) } -func (*DescriptorProto) ProtoMessage() {} -func (*DescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *DescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *DescriptorProto) GetField() []*FieldDescriptorProto { - if m != nil { - return m.Field - } - return nil -} - -func (m *DescriptorProto) GetExtension() []*FieldDescriptorProto { - if m != nil { - return m.Extension - } - return nil -} - -func (m *DescriptorProto) GetNestedType() []*DescriptorProto { - if m != nil { - return m.NestedType - } - return nil -} - -func (m *DescriptorProto) GetEnumType() []*EnumDescriptorProto { - if m != nil { - return m.EnumType - } - return nil -} - -func (m *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange { - if m != nil { - return m.ExtensionRange - } - return nil -} - -func (m *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto { - if m != nil { - return m.OneofDecl - } - return nil -} - -func (m *DescriptorProto) GetOptions() *MessageOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange { - if m != nil { - return m.ReservedRange - } - return nil -} - -func (m *DescriptorProto) GetReservedName() []string { - if m != nil { - return m.ReservedName - } - return nil -} - -type DescriptorProto_ExtensionRange struct { - Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` - End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` - Options *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DescriptorProto_ExtensionRange) Reset() { *m = DescriptorProto_ExtensionRange{} } -func (m *DescriptorProto_ExtensionRange) String() string { return proto.CompactTextString(m) } -func (*DescriptorProto_ExtensionRange) ProtoMessage() {} -func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{2, 0} -} - -func (m *DescriptorProto_ExtensionRange) GetStart() int32 { - if m != nil && m.Start != nil { - return *m.Start - } - return 0 -} - -func (m *DescriptorProto_ExtensionRange) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -func (m *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions { - if m != nil { - return m.Options - } - return nil -} - -// Range of reserved tag numbers. Reserved tag numbers may not be used by -// fields or extension ranges in the same message. Reserved ranges may -// not overlap. -type DescriptorProto_ReservedRange struct { - Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` - End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DescriptorProto_ReservedRange) Reset() { *m = DescriptorProto_ReservedRange{} } -func (m *DescriptorProto_ReservedRange) String() string { return proto.CompactTextString(m) } -func (*DescriptorProto_ReservedRange) ProtoMessage() {} -func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{2, 1} -} - -func (m *DescriptorProto_ReservedRange) GetStart() int32 { - if m != nil && m.Start != nil { - return *m.Start - } - return 0 -} - -func (m *DescriptorProto_ReservedRange) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -type ExtensionRangeOptions struct { - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ExtensionRangeOptions) Reset() { *m = ExtensionRangeOptions{} } -func (m *ExtensionRangeOptions) String() string { return proto.CompactTextString(m) } -func (*ExtensionRangeOptions) ProtoMessage() {} -func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -var extRange_ExtensionRangeOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*ExtensionRangeOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_ExtensionRangeOptions -} - -func (m *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -// Describes a field within a message. -type FieldDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Number *int32 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"` - Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"` - // If type_name is set, this need not be set. If both this and type_name - // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"` - // For message and enum types, this is the name of the type. If the name - // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - // rules are used to find the type (i.e. first the nested types within this - // message are searched, then within the parent, on up to the root - // namespace). - TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"` - // For extensions, this is the name of the type being extended. It is - // resolved in the same manner as type_name. - Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"` - // For numeric types, contains the original text representation of the value. - // For booleans, "true" or "false". - // For strings, contains the default text contents (not escaped in any way). - // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? - DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"` - // If set, gives the index of a oneof in the containing type's oneof_decl - // list. This field is a member of that oneof. - OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"` - // JSON name of this field. The value is set by protocol compiler. If the - // user has set a "json_name" option on this field, that option's value - // will be used. Otherwise, it's deduced from the field's name by converting - // it to camelCase. - JsonName *string `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"` - Options *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FieldDescriptorProto) Reset() { *m = FieldDescriptorProto{} } -func (m *FieldDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*FieldDescriptorProto) ProtoMessage() {} -func (*FieldDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *FieldDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *FieldDescriptorProto) GetNumber() int32 { - if m != nil && m.Number != nil { - return *m.Number - } - return 0 -} - -func (m *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label { - if m != nil && m.Label != nil { - return *m.Label - } - return FieldDescriptorProto_LABEL_OPTIONAL -} - -func (m *FieldDescriptorProto) GetType() FieldDescriptorProto_Type { - if m != nil && m.Type != nil { - return *m.Type - } - return FieldDescriptorProto_TYPE_DOUBLE -} - -func (m *FieldDescriptorProto) GetTypeName() string { - if m != nil && m.TypeName != nil { - return *m.TypeName - } - return "" -} - -func (m *FieldDescriptorProto) GetExtendee() string { - if m != nil && m.Extendee != nil { - return *m.Extendee - } - return "" -} - -func (m *FieldDescriptorProto) GetDefaultValue() string { - if m != nil && m.DefaultValue != nil { - return *m.DefaultValue - } - return "" -} - -func (m *FieldDescriptorProto) GetOneofIndex() int32 { - if m != nil && m.OneofIndex != nil { - return *m.OneofIndex - } - return 0 -} - -func (m *FieldDescriptorProto) GetJsonName() string { - if m != nil && m.JsonName != nil { - return *m.JsonName - } - return "" -} - -func (m *FieldDescriptorProto) GetOptions() *FieldOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes a oneof. -type OneofDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *OneofDescriptorProto) Reset() { *m = OneofDescriptorProto{} } -func (m *OneofDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*OneofDescriptorProto) ProtoMessage() {} -func (*OneofDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *OneofDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *OneofDescriptorProto) GetOptions() *OneofOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes an enum type. -type EnumDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` - Options *EnumOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *EnumDescriptorProto) Reset() { *m = EnumDescriptorProto{} } -func (m *EnumDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*EnumDescriptorProto) ProtoMessage() {} -func (*EnumDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *EnumDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto { - if m != nil { - return m.Value - } - return nil -} +// Symbols defined in public import of google/protobuf/descriptor.proto. -func (m *EnumDescriptorProto) GetOptions() *EnumOptions { - if m != nil { - return m.Options - } - return nil -} - -// Describes a value within an enum. -type EnumValueDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Number *int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"` - Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_unrecognized []byte `json:"-"` -} +type FieldDescriptorProto_Type = descriptorpb.FieldDescriptorProto_Type -func (m *EnumValueDescriptorProto) Reset() { *m = EnumValueDescriptorProto{} } -func (m *EnumValueDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*EnumValueDescriptorProto) ProtoMessage() {} -func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +const FieldDescriptorProto_TYPE_DOUBLE = descriptorpb.FieldDescriptorProto_TYPE_DOUBLE +const FieldDescriptorProto_TYPE_FLOAT = descriptorpb.FieldDescriptorProto_TYPE_FLOAT +const FieldDescriptorProto_TYPE_INT64 = descriptorpb.FieldDescriptorProto_TYPE_INT64 +const FieldDescriptorProto_TYPE_UINT64 = descriptorpb.FieldDescriptorProto_TYPE_UINT64 +const FieldDescriptorProto_TYPE_INT32 = descriptorpb.FieldDescriptorProto_TYPE_INT32 +const FieldDescriptorProto_TYPE_FIXED64 = descriptorpb.FieldDescriptorProto_TYPE_FIXED64 +const FieldDescriptorProto_TYPE_FIXED32 = descriptorpb.FieldDescriptorProto_TYPE_FIXED32 +const FieldDescriptorProto_TYPE_BOOL = descriptorpb.FieldDescriptorProto_TYPE_BOOL +const FieldDescriptorProto_TYPE_STRING = descriptorpb.FieldDescriptorProto_TYPE_STRING +const FieldDescriptorProto_TYPE_GROUP = descriptorpb.FieldDescriptorProto_TYPE_GROUP +const FieldDescriptorProto_TYPE_MESSAGE = descriptorpb.FieldDescriptorProto_TYPE_MESSAGE +const FieldDescriptorProto_TYPE_BYTES = descriptorpb.FieldDescriptorProto_TYPE_BYTES +const FieldDescriptorProto_TYPE_UINT32 = descriptorpb.FieldDescriptorProto_TYPE_UINT32 +const FieldDescriptorProto_TYPE_ENUM = descriptorpb.FieldDescriptorProto_TYPE_ENUM +const FieldDescriptorProto_TYPE_SFIXED32 = descriptorpb.FieldDescriptorProto_TYPE_SFIXED32 +const FieldDescriptorProto_TYPE_SFIXED64 = descriptorpb.FieldDescriptorProto_TYPE_SFIXED64 +const FieldDescriptorProto_TYPE_SINT32 = descriptorpb.FieldDescriptorProto_TYPE_SINT32 +const FieldDescriptorProto_TYPE_SINT64 = descriptorpb.FieldDescriptorProto_TYPE_SINT64 -func (m *EnumValueDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} +var FieldDescriptorProto_Type_name = descriptorpb.FieldDescriptorProto_Type_name +var FieldDescriptorProto_Type_value = descriptorpb.FieldDescriptorProto_Type_value -func (m *EnumValueDescriptorProto) GetNumber() int32 { - if m != nil && m.Number != nil { - return *m.Number - } - return 0 -} +type FieldDescriptorProto_Label = descriptorpb.FieldDescriptorProto_Label -func (m *EnumValueDescriptorProto) GetOptions() *EnumValueOptions { - if m != nil { - return m.Options - } - return nil -} +const FieldDescriptorProto_LABEL_OPTIONAL = descriptorpb.FieldDescriptorProto_LABEL_OPTIONAL +const FieldDescriptorProto_LABEL_REQUIRED = descriptorpb.FieldDescriptorProto_LABEL_REQUIRED +const FieldDescriptorProto_LABEL_REPEATED = descriptorpb.FieldDescriptorProto_LABEL_REPEATED -// Describes a service. -type ServiceDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"` - Options *ServiceOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` - XXX_unrecognized []byte `json:"-"` -} +var FieldDescriptorProto_Label_name = descriptorpb.FieldDescriptorProto_Label_name +var FieldDescriptorProto_Label_value = descriptorpb.FieldDescriptorProto_Label_value -func (m *ServiceDescriptorProto) Reset() { *m = ServiceDescriptorProto{} } -func (m *ServiceDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*ServiceDescriptorProto) ProtoMessage() {} -func (*ServiceDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +type FileOptions_OptimizeMode = descriptorpb.FileOptions_OptimizeMode -func (m *ServiceDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} +const FileOptions_SPEED = descriptorpb.FileOptions_SPEED +const FileOptions_CODE_SIZE = descriptorpb.FileOptions_CODE_SIZE +const FileOptions_LITE_RUNTIME = descriptorpb.FileOptions_LITE_RUNTIME -func (m *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto { - if m != nil { - return m.Method - } - return nil -} +var FileOptions_OptimizeMode_name = descriptorpb.FileOptions_OptimizeMode_name +var FileOptions_OptimizeMode_value = descriptorpb.FileOptions_OptimizeMode_value -func (m *ServiceDescriptorProto) GetOptions() *ServiceOptions { - if m != nil { - return m.Options - } - return nil -} +type FieldOptions_CType = descriptorpb.FieldOptions_CType -// Describes a method of a service. -type MethodDescriptorProto struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - // Input and output type names. These are resolved in the same way as - // FieldDescriptorProto.type_name, but must refer to a message type. - InputType *string `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"` - OutputType *string `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"` - Options *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"` - // Identifies if client streams multiple client messages - ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"` - // Identifies if server streams multiple server messages - ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"` - XXX_unrecognized []byte `json:"-"` -} +const FieldOptions_STRING = descriptorpb.FieldOptions_STRING +const FieldOptions_CORD = descriptorpb.FieldOptions_CORD +const FieldOptions_STRING_PIECE = descriptorpb.FieldOptions_STRING_PIECE -func (m *MethodDescriptorProto) Reset() { *m = MethodDescriptorProto{} } -func (m *MethodDescriptorProto) String() string { return proto.CompactTextString(m) } -func (*MethodDescriptorProto) ProtoMessage() {} -func (*MethodDescriptorProto) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +var FieldOptions_CType_name = descriptorpb.FieldOptions_CType_name +var FieldOptions_CType_value = descriptorpb.FieldOptions_CType_value -const Default_MethodDescriptorProto_ClientStreaming bool = false -const Default_MethodDescriptorProto_ServerStreaming bool = false +type FieldOptions_JSType = descriptorpb.FieldOptions_JSType -func (m *MethodDescriptorProto) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} +const FieldOptions_JS_NORMAL = descriptorpb.FieldOptions_JS_NORMAL +const FieldOptions_JS_STRING = descriptorpb.FieldOptions_JS_STRING +const FieldOptions_JS_NUMBER = descriptorpb.FieldOptions_JS_NUMBER -func (m *MethodDescriptorProto) GetInputType() string { - if m != nil && m.InputType != nil { - return *m.InputType - } - return "" -} +var FieldOptions_JSType_name = descriptorpb.FieldOptions_JSType_name +var FieldOptions_JSType_value = descriptorpb.FieldOptions_JSType_value -func (m *MethodDescriptorProto) GetOutputType() string { - if m != nil && m.OutputType != nil { - return *m.OutputType - } - return "" -} +type MethodOptions_IdempotencyLevel = descriptorpb.MethodOptions_IdempotencyLevel -func (m *MethodDescriptorProto) GetOptions() *MethodOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *MethodDescriptorProto) GetClientStreaming() bool { - if m != nil && m.ClientStreaming != nil { - return *m.ClientStreaming - } - return Default_MethodDescriptorProto_ClientStreaming -} - -func (m *MethodDescriptorProto) GetServerStreaming() bool { - if m != nil && m.ServerStreaming != nil { - return *m.ServerStreaming - } - return Default_MethodDescriptorProto_ServerStreaming -} - -type FileOptions struct { - // Sets the Java package where classes generated from this .proto will be - // placed. By default, the proto package is used, but this is often - // inappropriate because proto packages do not normally start with backwards - // domain names. - JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"` - // If set, all the classes from the .proto file are wrapped in a single - // outer class with the given name. This applies to both Proto1 - // (equivalent to the old "--one_java_file" option) and Proto2 (where - // a .proto always translates to a single class, but you may want to - // explicitly choose the class name). - JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"` - // If set true, then the Java code generator will generate a separate .java - // file for each top-level message, enum, and service defined in the .proto - // file. Thus, these types will *not* be nested inside the outer class - // named by java_outer_classname. However, the outer class will still be - // generated to contain the file's getDescriptor() method as well as any - // top-level extensions defined in the file. - JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"` - // This option does nothing. - JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. - JavaStringCheckUtf8 *bool `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"` - OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"` - // Sets the Go package where structs generated from this .proto will be - // placed. If omitted, the Go package will be derived from the following: - // - The basename of the package import path, if provided. - // - Otherwise, the package statement in the .proto file, if present. - // - Otherwise, the basename of the .proto file, without extension. - GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"` - // Should generic services be generated in each language? "Generic" services - // are not specific to any particular RPC system. They are generated by the - // main code generators in each language (without additional plugins). - // Generic services were the only kind of service generation supported by - // early versions of google.protobuf. - // - // Generic services are now considered deprecated in favor of using plugins - // that generate code specific to your particular RPC system. Therefore, - // these default to false. Old code which depends on generic services should - // explicitly set them to true. - CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"` - JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"` - PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"` - PhpGenericServices *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"` - // Is this file deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for everything in the file, or it will be completely ignored; in the very - // least, this is a formalization for deprecating files. - Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // Enables the use of arenas for the proto messages in this file. This applies - // only to generated classes for C++. - CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=0" json:"cc_enable_arenas,omitempty"` - // Sets the objective c class prefix which is prepended to all objective c - // generated classes from this .proto. There is no default. - ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"` - // Namespace for generated classes; defaults to the package. - CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"` - // By default Swift generators will take the proto package and CamelCase it - // replacing '.' with underscore and use that to prefix the types/symbols - // defined. When this options is provided, they will use this value instead - // to prefix the types/symbols defined. - SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"` - // Sets the php class prefix which is prepended to all php generated classes - // from this .proto. Default is empty. - PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"` - // Use this option to change the namespace of php generated classes. Default - // is empty. When this option is empty, the package name will be used for - // determining the namespace. - PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FileOptions) Reset() { *m = FileOptions{} } -func (m *FileOptions) String() string { return proto.CompactTextString(m) } -func (*FileOptions) ProtoMessage() {} -func (*FileOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } - -var extRange_FileOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*FileOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_FileOptions -} - -const Default_FileOptions_JavaMultipleFiles bool = false -const Default_FileOptions_JavaStringCheckUtf8 bool = false -const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED -const Default_FileOptions_CcGenericServices bool = false -const Default_FileOptions_JavaGenericServices bool = false -const Default_FileOptions_PyGenericServices bool = false -const Default_FileOptions_PhpGenericServices bool = false -const Default_FileOptions_Deprecated bool = false -const Default_FileOptions_CcEnableArenas bool = false - -func (m *FileOptions) GetJavaPackage() string { - if m != nil && m.JavaPackage != nil { - return *m.JavaPackage - } - return "" -} - -func (m *FileOptions) GetJavaOuterClassname() string { - if m != nil && m.JavaOuterClassname != nil { - return *m.JavaOuterClassname - } - return "" -} - -func (m *FileOptions) GetJavaMultipleFiles() bool { - if m != nil && m.JavaMultipleFiles != nil { - return *m.JavaMultipleFiles - } - return Default_FileOptions_JavaMultipleFiles -} - -func (m *FileOptions) GetJavaGenerateEqualsAndHash() bool { - if m != nil && m.JavaGenerateEqualsAndHash != nil { - return *m.JavaGenerateEqualsAndHash - } - return false -} - -func (m *FileOptions) GetJavaStringCheckUtf8() bool { - if m != nil && m.JavaStringCheckUtf8 != nil { - return *m.JavaStringCheckUtf8 - } - return Default_FileOptions_JavaStringCheckUtf8 -} - -func (m *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode { - if m != nil && m.OptimizeFor != nil { - return *m.OptimizeFor - } - return Default_FileOptions_OptimizeFor -} - -func (m *FileOptions) GetGoPackage() string { - if m != nil && m.GoPackage != nil { - return *m.GoPackage - } - return "" -} - -func (m *FileOptions) GetCcGenericServices() bool { - if m != nil && m.CcGenericServices != nil { - return *m.CcGenericServices - } - return Default_FileOptions_CcGenericServices -} - -func (m *FileOptions) GetJavaGenericServices() bool { - if m != nil && m.JavaGenericServices != nil { - return *m.JavaGenericServices - } - return Default_FileOptions_JavaGenericServices -} - -func (m *FileOptions) GetPyGenericServices() bool { - if m != nil && m.PyGenericServices != nil { - return *m.PyGenericServices - } - return Default_FileOptions_PyGenericServices -} - -func (m *FileOptions) GetPhpGenericServices() bool { - if m != nil && m.PhpGenericServices != nil { - return *m.PhpGenericServices - } - return Default_FileOptions_PhpGenericServices -} - -func (m *FileOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_FileOptions_Deprecated -} - -func (m *FileOptions) GetCcEnableArenas() bool { - if m != nil && m.CcEnableArenas != nil { - return *m.CcEnableArenas - } - return Default_FileOptions_CcEnableArenas -} - -func (m *FileOptions) GetObjcClassPrefix() string { - if m != nil && m.ObjcClassPrefix != nil { - return *m.ObjcClassPrefix - } - return "" -} - -func (m *FileOptions) GetCsharpNamespace() string { - if m != nil && m.CsharpNamespace != nil { - return *m.CsharpNamespace - } - return "" -} - -func (m *FileOptions) GetSwiftPrefix() string { - if m != nil && m.SwiftPrefix != nil { - return *m.SwiftPrefix - } - return "" -} - -func (m *FileOptions) GetPhpClassPrefix() string { - if m != nil && m.PhpClassPrefix != nil { - return *m.PhpClassPrefix - } - return "" -} - -func (m *FileOptions) GetPhpNamespace() string { - if m != nil && m.PhpNamespace != nil { - return *m.PhpNamespace - } - return "" -} - -func (m *FileOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type MessageOptions struct { - // Set true to use the old proto1 MessageSet wire format for extensions. - // This is provided for backwards-compatibility with the MessageSet wire - // format. You should not use this for any other reason: It's less - // efficient, has fewer features, and is more complicated. - // - // The message must be defined exactly as follows: - // message Foo { - // option message_set_wire_format = true; - // extensions 4 to max; - // } - // Note that the message cannot have any defined fields; MessageSets only - // have extensions. - // - // All extensions of your type must be singular messages; e.g. they cannot - // be int32s, enums, or repeated messages. - // - // Because this is an option, the above two restrictions are not enforced by - // the protocol compiler. - MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"` - // Disables the generation of the standard "descriptor()" accessor, which can - // conflict with a field of the same name. This is meant to make migration - // from proto1 easier; new code should avoid fields named "descriptor". - NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,json=noStandardDescriptorAccessor,def=0" json:"no_standard_descriptor_accessor,omitempty"` - // Is this message deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the message, or it will be completely ignored; in the very least, - // this is a formalization for deprecating messages. - Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // Whether the message is an automatically generated map entry type for the - // maps field. - // - // For maps fields: - // map map_field = 1; - // The parsed descriptor looks like: - // message MapFieldEntry { - // option map_entry = true; - // optional KeyType key = 1; - // optional ValueType value = 2; - // } - // repeated MapFieldEntry map_field = 1; - // - // Implementations may choose not to generate the map_entry=true message, but - // use a native map in the target language to hold the keys and values. - // The reflection APIs in such implementions still need to work as - // if the field is a repeated message field. - // - // NOTE: Do not set the option in .proto files. Always use the maps syntax - // instead. The option should only be implicitly set by the proto compiler - // parser. - MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *MessageOptions) Reset() { *m = MessageOptions{} } -func (m *MessageOptions) String() string { return proto.CompactTextString(m) } -func (*MessageOptions) ProtoMessage() {} -func (*MessageOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } - -var extRange_MessageOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*MessageOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_MessageOptions -} - -const Default_MessageOptions_MessageSetWireFormat bool = false -const Default_MessageOptions_NoStandardDescriptorAccessor bool = false -const Default_MessageOptions_Deprecated bool = false - -func (m *MessageOptions) GetMessageSetWireFormat() bool { - if m != nil && m.MessageSetWireFormat != nil { - return *m.MessageSetWireFormat - } - return Default_MessageOptions_MessageSetWireFormat -} - -func (m *MessageOptions) GetNoStandardDescriptorAccessor() bool { - if m != nil && m.NoStandardDescriptorAccessor != nil { - return *m.NoStandardDescriptorAccessor - } - return Default_MessageOptions_NoStandardDescriptorAccessor -} - -func (m *MessageOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_MessageOptions_Deprecated -} - -func (m *MessageOptions) GetMapEntry() bool { - if m != nil && m.MapEntry != nil { - return *m.MapEntry - } - return false -} - -func (m *MessageOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type FieldOptions struct { - // The ctype option instructs the C++ code generator to use a different - // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"` - // The packed option can be enabled for repeated primitive fields to enable - // a more efficient representation on the wire. Rather than repeatedly - // writing the tag and type for each element, the entire array is encoded as - // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. - Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"` - // The jstype option determines the JavaScript type used for values of the - // field. The option is permitted only for 64 bit integral and fixed types - // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - // is represented as JavaScript string, which avoids loss of precision that - // can happen when a large value is converted to a floating point JavaScript. - // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - // use the JavaScript "number" type. The behavior of the default option - // JS_NORMAL is implementation dependent. - // - // This option is an enum to permit additional types to be added, e.g. - // goog.math.Integer. - Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"` - // Should this field be parsed lazily? Lazy applies only to message-type - // fields. It means that when the outer message is initially parsed, the - // inner message's contents will not be parsed but instead stored in encoded - // form. The inner message will actually be parsed when it is first accessed. - // - // This is only a hint. Implementations are free to choose whether to use - // eager or lazy parsing regardless of the value of this option. However, - // setting this option true suggests that the protocol author believes that - // using lazy parsing on this field is worth the additional bookkeeping - // overhead typically needed to implement it. - // - // This option does not affect the public interface of any generated code; - // all method signatures remain the same. Furthermore, thread-safety of the - // interface is not affected by this option; const methods remain safe to - // call from multiple threads concurrently, while non-const methods continue - // to require exclusive access. - // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. - Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"` - // Is this field deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for accessors, or it will be completely ignored; in the very least, this - // is a formalization for deprecating fields. - Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // For Google-internal migration only. Do not use. - Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FieldOptions) Reset() { *m = FieldOptions{} } -func (m *FieldOptions) String() string { return proto.CompactTextString(m) } -func (*FieldOptions) ProtoMessage() {} -func (*FieldOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } - -var extRange_FieldOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*FieldOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_FieldOptions -} - -const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING -const Default_FieldOptions_Jstype FieldOptions_JSType = FieldOptions_JS_NORMAL -const Default_FieldOptions_Lazy bool = false -const Default_FieldOptions_Deprecated bool = false -const Default_FieldOptions_Weak bool = false - -func (m *FieldOptions) GetCtype() FieldOptions_CType { - if m != nil && m.Ctype != nil { - return *m.Ctype - } - return Default_FieldOptions_Ctype -} - -func (m *FieldOptions) GetPacked() bool { - if m != nil && m.Packed != nil { - return *m.Packed - } - return false -} - -func (m *FieldOptions) GetJstype() FieldOptions_JSType { - if m != nil && m.Jstype != nil { - return *m.Jstype - } - return Default_FieldOptions_Jstype -} - -func (m *FieldOptions) GetLazy() bool { - if m != nil && m.Lazy != nil { - return *m.Lazy - } - return Default_FieldOptions_Lazy -} - -func (m *FieldOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_FieldOptions_Deprecated -} - -func (m *FieldOptions) GetWeak() bool { - if m != nil && m.Weak != nil { - return *m.Weak - } - return Default_FieldOptions_Weak -} - -func (m *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type OneofOptions struct { - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *OneofOptions) Reset() { *m = OneofOptions{} } -func (m *OneofOptions) String() string { return proto.CompactTextString(m) } -func (*OneofOptions) ProtoMessage() {} -func (*OneofOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } - -var extRange_OneofOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*OneofOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_OneofOptions -} - -func (m *OneofOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type EnumOptions struct { - // Set this option to true to allow mapping different tag names to the same - // value. - AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"` - // Is this enum deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum, or it will be completely ignored; in the very least, this - // is a formalization for deprecating enums. - Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *EnumOptions) Reset() { *m = EnumOptions{} } -func (m *EnumOptions) String() string { return proto.CompactTextString(m) } -func (*EnumOptions) ProtoMessage() {} -func (*EnumOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } - -var extRange_EnumOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*EnumOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_EnumOptions -} - -const Default_EnumOptions_Deprecated bool = false - -func (m *EnumOptions) GetAllowAlias() bool { - if m != nil && m.AllowAlias != nil { - return *m.AllowAlias - } - return false -} - -func (m *EnumOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_EnumOptions_Deprecated -} - -func (m *EnumOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type EnumValueOptions struct { - // Is this enum value deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum value, or it will be completely ignored; in the very least, - // this is a formalization for deprecating enum values. - Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *EnumValueOptions) Reset() { *m = EnumValueOptions{} } -func (m *EnumValueOptions) String() string { return proto.CompactTextString(m) } -func (*EnumValueOptions) ProtoMessage() {} -func (*EnumValueOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } - -var extRange_EnumValueOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*EnumValueOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_EnumValueOptions -} - -const Default_EnumValueOptions_Deprecated bool = false - -func (m *EnumValueOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_EnumValueOptions_Deprecated -} - -func (m *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type ServiceOptions struct { - // Is this service deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the service, or it will be completely ignored; in the very least, - // this is a formalization for deprecating services. - Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ServiceOptions) Reset() { *m = ServiceOptions{} } -func (m *ServiceOptions) String() string { return proto.CompactTextString(m) } -func (*ServiceOptions) ProtoMessage() {} -func (*ServiceOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } - -var extRange_ServiceOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*ServiceOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_ServiceOptions -} - -const Default_ServiceOptions_Deprecated bool = false - -func (m *ServiceOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_ServiceOptions_Deprecated -} - -func (m *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -type MethodOptions struct { - // Is this method deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the method, or it will be completely ignored; in the very least, - // this is a formalization for deprecating methods. - Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` - IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"` - // The parser stores options it doesn't recognize here. See above. - UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` - proto.XXX_InternalExtensions `json:"-"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *MethodOptions) Reset() { *m = MethodOptions{} } -func (m *MethodOptions) String() string { return proto.CompactTextString(m) } -func (*MethodOptions) ProtoMessage() {} -func (*MethodOptions) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } - -var extRange_MethodOptions = []proto.ExtensionRange{ - {1000, 536870911}, -} - -func (*MethodOptions) ExtensionRangeArray() []proto.ExtensionRange { - return extRange_MethodOptions -} - -const Default_MethodOptions_Deprecated bool = false -const Default_MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN - -func (m *MethodOptions) GetDeprecated() bool { - if m != nil && m.Deprecated != nil { - return *m.Deprecated - } - return Default_MethodOptions_Deprecated -} - -func (m *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel { - if m != nil && m.IdempotencyLevel != nil { - return *m.IdempotencyLevel - } - return Default_MethodOptions_IdempotencyLevel -} - -func (m *MethodOptions) GetUninterpretedOption() []*UninterpretedOption { - if m != nil { - return m.UninterpretedOption - } - return nil -} - -// A message representing a option the parser does not recognize. This only -// appears in options protos created by the compiler::Parser class. -// DescriptorPool resolves these when building Descriptor objects. Therefore, -// options protos in descriptor objects (e.g. returned by Descriptor::options(), -// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions -// in them. -type UninterpretedOption struct { - Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"` - // The value of the uninterpreted option, in whatever type the tokenizer - // identified it as during parsing. Exactly one of these should be set. - IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"` - PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"` - NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"` - DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"` - StringValue []byte `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` - AggregateValue *string `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *UninterpretedOption) Reset() { *m = UninterpretedOption{} } -func (m *UninterpretedOption) String() string { return proto.CompactTextString(m) } -func (*UninterpretedOption) ProtoMessage() {} -func (*UninterpretedOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } - -func (m *UninterpretedOption) GetName() []*UninterpretedOption_NamePart { - if m != nil { - return m.Name - } - return nil -} - -func (m *UninterpretedOption) GetIdentifierValue() string { - if m != nil && m.IdentifierValue != nil { - return *m.IdentifierValue - } - return "" -} - -func (m *UninterpretedOption) GetPositiveIntValue() uint64 { - if m != nil && m.PositiveIntValue != nil { - return *m.PositiveIntValue - } - return 0 -} - -func (m *UninterpretedOption) GetNegativeIntValue() int64 { - if m != nil && m.NegativeIntValue != nil { - return *m.NegativeIntValue - } - return 0 -} - -func (m *UninterpretedOption) GetDoubleValue() float64 { - if m != nil && m.DoubleValue != nil { - return *m.DoubleValue - } - return 0 -} - -func (m *UninterpretedOption) GetStringValue() []byte { - if m != nil { - return m.StringValue - } - return nil -} - -func (m *UninterpretedOption) GetAggregateValue() string { - if m != nil && m.AggregateValue != nil { - return *m.AggregateValue - } - return "" -} - -// The name of the uninterpreted option. Each string represents a segment in -// a dot-separated name. is_extension is true iff a segment represents an -// extension (denoted with parentheses in options specs in .proto files). -// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents -// "foo.(bar.baz).qux". -type UninterpretedOption_NamePart struct { - NamePart *string `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"` - IsExtension *bool `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *UninterpretedOption_NamePart) Reset() { *m = UninterpretedOption_NamePart{} } -func (m *UninterpretedOption_NamePart) String() string { return proto.CompactTextString(m) } -func (*UninterpretedOption_NamePart) ProtoMessage() {} -func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{18, 0} -} - -func (m *UninterpretedOption_NamePart) GetNamePart() string { - if m != nil && m.NamePart != nil { - return *m.NamePart - } - return "" -} - -func (m *UninterpretedOption_NamePart) GetIsExtension() bool { - if m != nil && m.IsExtension != nil { - return *m.IsExtension - } - return false -} - -// Encapsulates information about the original source file from which a -// FileDescriptorProto was generated. -type SourceCodeInfo struct { - // A Location identifies a piece of source code in a .proto file which - // corresponds to a particular definition. This information is intended - // to be useful to IDEs, code indexers, documentation generators, and similar - // tools. - // - // For example, say we have a file like: - // message Foo { - // optional string foo = 1; - // } - // Let's look at just the field definition: - // optional string foo = 1; - // ^ ^^ ^^ ^ ^^^ - // a bc de f ghi - // We have the following locations: - // span path represents - // [a,i) [ 4, 0, 2, 0 ] The whole field definition. - // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - // - // Notes: - // - A location may refer to a repeated field itself (i.e. not to any - // particular index within it). This is used whenever a set of elements are - // logically enclosed in a single code segment. For example, an entire - // extend block (possibly containing multiple extension definitions) will - // have an outer location whose path refers to the "extensions" repeated - // field without an index. - // - Multiple locations may have the same path. This happens when a single - // logical declaration is spread out across multiple places. The most - // obvious example is the "extend" block again -- there may be multiple - // extend blocks in the same scope, each of which will have the same path. - // - A location's span is not always a subset of its parent's span. For - // example, the "extendee" of an extension declaration appears at the - // beginning of the "extend" block and is shared by all extensions within - // the block. - // - Just because a location's span is a subset of some other location's span - // does not mean that it is a descendent. For example, a "group" defines - // both a type and a field in a single declaration. Thus, the locations - // corresponding to the type and field and their components will overlap. - // - Code which tries to interpret locations should probably be designed to - // ignore those that it doesn't understand, as more types of locations could - // be recorded in the future. - Location []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *SourceCodeInfo) Reset() { *m = SourceCodeInfo{} } -func (m *SourceCodeInfo) String() string { return proto.CompactTextString(m) } -func (*SourceCodeInfo) ProtoMessage() {} -func (*SourceCodeInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } - -func (m *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location { - if m != nil { - return m.Location - } - return nil -} - -type SourceCodeInfo_Location struct { - // Identifies which part of the FileDescriptorProto was defined at this - // location. - // - // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: - // [ 4, 3, 2, 7, 1 ] - // refers to: - // file.message_type(3) // 4, 3 - // .field(7) // 2, 7 - // .name() // 1 - // This is because FileDescriptorProto.message_type has field number 4: - // repeated DescriptorProto message_type = 4; - // and DescriptorProto.field has field number 2: - // repeated FieldDescriptorProto field = 2; - // and FieldDescriptorProto.name has field number 1: - // optional string name = 1; - // - // Thus, the above path gives the location of a field name. If we removed - // the last element: - // [ 4, 3, 2, 7 ] - // this path refers to the whole field declaration (from the beginning - // of the label to the terminating semicolon). - Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` - // Always has exactly three or four elements: start line, start column, - // end line (optional, otherwise assumed same as start line), end column. - // These are packed into a single field for efficiency. Note that line - // and column numbers are zero-based -- typically you will want to add - // 1 to each before displaying to a user. - Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"` - // If this SourceCodeInfo represents a complete declaration, these are any - // comments appearing before and after the declaration which appear to be - // attached to the declaration. - // - // A series of line comments appearing on consecutive lines, with no other - // tokens appearing on those lines, will be treated as a single comment. - // - // leading_detached_comments will keep paragraphs of comments that appear - // before (but not connected to) the current element. Each paragraph, - // separated by empty lines, will be one comment element in the repeated - // field. - // - // Only the comment content is provided; comment markers (e.g. //) are - // stripped out. For block comments, leading whitespace and an asterisk - // will be stripped from the beginning of each line other than the first. - // Newlines are included in the output. - // - // Examples: - // - // optional int32 foo = 1; // Comment attached to foo. - // // Comment attached to bar. - // optional int32 bar = 2; - // - // optional string baz = 3; - // // Comment attached to baz. - // // Another line attached to baz. - // - // // Comment attached to qux. - // // - // // Another line attached to qux. - // optional double qux = 4; - // - // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from - // // both. - // - // // Detached comment for corge paragraph 2. - // - // optional string corge = 5; - // /* Block comment attached - // * to corge. Leading asterisks - // * will be removed. */ - // /* Block comment attached to - // * grault. */ - // optional int32 grault = 6; - // - // // ignored detached comments. - LeadingComments *string `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"` - TrailingComments *string `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"` - LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *SourceCodeInfo_Location) Reset() { *m = SourceCodeInfo_Location{} } -func (m *SourceCodeInfo_Location) String() string { return proto.CompactTextString(m) } -func (*SourceCodeInfo_Location) ProtoMessage() {} -func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19, 0} } - -func (m *SourceCodeInfo_Location) GetPath() []int32 { - if m != nil { - return m.Path - } - return nil -} - -func (m *SourceCodeInfo_Location) GetSpan() []int32 { - if m != nil { - return m.Span - } - return nil -} - -func (m *SourceCodeInfo_Location) GetLeadingComments() string { - if m != nil && m.LeadingComments != nil { - return *m.LeadingComments - } - return "" -} - -func (m *SourceCodeInfo_Location) GetTrailingComments() string { - if m != nil && m.TrailingComments != nil { - return *m.TrailingComments - } - return "" -} - -func (m *SourceCodeInfo_Location) GetLeadingDetachedComments() []string { - if m != nil { - return m.LeadingDetachedComments - } - return nil -} - -// Describes the relationship between generated code and its original source -// file. A GeneratedCodeInfo message is associated with only one generated -// source file, but may contain references to different source .proto files. -type GeneratedCodeInfo struct { - // An Annotation connects some span of text in generated code to an element - // of its generating .proto file. - Annotation []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *GeneratedCodeInfo) Reset() { *m = GeneratedCodeInfo{} } -func (m *GeneratedCodeInfo) String() string { return proto.CompactTextString(m) } -func (*GeneratedCodeInfo) ProtoMessage() {} -func (*GeneratedCodeInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } - -func (m *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation { - if m != nil { - return m.Annotation - } - return nil -} - -type GeneratedCodeInfo_Annotation struct { - // Identifies the element in the original source .proto file. This field - // is formatted the same as SourceCodeInfo.Location.path. - Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` - // Identifies the filesystem path to the original source .proto. - SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"` - // Identifies the starting offset in bytes in the generated code - // that relates to the identified object. - Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"` - // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past - // the last relevant byte (so the length of the text = end - begin). - End *int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *GeneratedCodeInfo_Annotation) Reset() { *m = GeneratedCodeInfo_Annotation{} } -func (m *GeneratedCodeInfo_Annotation) String() string { return proto.CompactTextString(m) } -func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} -func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{20, 0} -} - -func (m *GeneratedCodeInfo_Annotation) GetPath() []int32 { - if m != nil { - return m.Path - } - return nil -} - -func (m *GeneratedCodeInfo_Annotation) GetSourceFile() string { - if m != nil && m.SourceFile != nil { - return *m.SourceFile - } - return "" -} - -func (m *GeneratedCodeInfo_Annotation) GetBegin() int32 { - if m != nil && m.Begin != nil { - return *m.Begin - } - return 0 -} - -func (m *GeneratedCodeInfo_Annotation) GetEnd() int32 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -func init() { - proto.RegisterType((*FileDescriptorSet)(nil), "google.protobuf.FileDescriptorSet") - proto.RegisterType((*FileDescriptorProto)(nil), "google.protobuf.FileDescriptorProto") - proto.RegisterType((*DescriptorProto)(nil), "google.protobuf.DescriptorProto") - proto.RegisterType((*DescriptorProto_ExtensionRange)(nil), "google.protobuf.DescriptorProto.ExtensionRange") - proto.RegisterType((*DescriptorProto_ReservedRange)(nil), "google.protobuf.DescriptorProto.ReservedRange") - proto.RegisterType((*ExtensionRangeOptions)(nil), "google.protobuf.ExtensionRangeOptions") - proto.RegisterType((*FieldDescriptorProto)(nil), "google.protobuf.FieldDescriptorProto") - proto.RegisterType((*OneofDescriptorProto)(nil), "google.protobuf.OneofDescriptorProto") - proto.RegisterType((*EnumDescriptorProto)(nil), "google.protobuf.EnumDescriptorProto") - proto.RegisterType((*EnumValueDescriptorProto)(nil), "google.protobuf.EnumValueDescriptorProto") - proto.RegisterType((*ServiceDescriptorProto)(nil), "google.protobuf.ServiceDescriptorProto") - proto.RegisterType((*MethodDescriptorProto)(nil), "google.protobuf.MethodDescriptorProto") - proto.RegisterType((*FileOptions)(nil), "google.protobuf.FileOptions") - proto.RegisterType((*MessageOptions)(nil), "google.protobuf.MessageOptions") - proto.RegisterType((*FieldOptions)(nil), "google.protobuf.FieldOptions") - proto.RegisterType((*OneofOptions)(nil), "google.protobuf.OneofOptions") - proto.RegisterType((*EnumOptions)(nil), "google.protobuf.EnumOptions") - proto.RegisterType((*EnumValueOptions)(nil), "google.protobuf.EnumValueOptions") - proto.RegisterType((*ServiceOptions)(nil), "google.protobuf.ServiceOptions") - proto.RegisterType((*MethodOptions)(nil), "google.protobuf.MethodOptions") - proto.RegisterType((*UninterpretedOption)(nil), "google.protobuf.UninterpretedOption") - proto.RegisterType((*UninterpretedOption_NamePart)(nil), "google.protobuf.UninterpretedOption.NamePart") - proto.RegisterType((*SourceCodeInfo)(nil), "google.protobuf.SourceCodeInfo") - proto.RegisterType((*SourceCodeInfo_Location)(nil), "google.protobuf.SourceCodeInfo.Location") - proto.RegisterType((*GeneratedCodeInfo)(nil), "google.protobuf.GeneratedCodeInfo") - proto.RegisterType((*GeneratedCodeInfo_Annotation)(nil), "google.protobuf.GeneratedCodeInfo.Annotation") - proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value) - proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value) - proto.RegisterEnum("google.protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value) - proto.RegisterEnum("google.protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value) - proto.RegisterEnum("google.protobuf.FieldOptions_JSType", FieldOptions_JSType_name, FieldOptions_JSType_value) - proto.RegisterEnum("google.protobuf.MethodOptions_IdempotencyLevel", MethodOptions_IdempotencyLevel_name, MethodOptions_IdempotencyLevel_value) -} +const MethodOptions_IDEMPOTENCY_UNKNOWN = descriptorpb.MethodOptions_IDEMPOTENCY_UNKNOWN +const MethodOptions_NO_SIDE_EFFECTS = descriptorpb.MethodOptions_NO_SIDE_EFFECTS +const MethodOptions_IDEMPOTENT = descriptorpb.MethodOptions_IDEMPOTENT -func init() { proto.RegisterFile("google/protobuf/descriptor.proto", fileDescriptor0) } +var MethodOptions_IdempotencyLevel_name = descriptorpb.MethodOptions_IdempotencyLevel_name +var MethodOptions_IdempotencyLevel_value = descriptorpb.MethodOptions_IdempotencyLevel_value -var fileDescriptor0 = []byte{ - // 2519 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xdd, 0x6e, 0x1b, 0xc7, - 0x15, 0x0e, 0x7f, 0x45, 0x1e, 0x52, 0xd4, 0x68, 0xa4, 0xd8, 0x6b, 0xe5, 0xc7, 0x32, 0xf3, 0x63, - 0xd9, 0x69, 0xa8, 0x40, 0xb1, 0x1d, 0x47, 0x29, 0xd2, 0x52, 0xe4, 0x5a, 0xa1, 0x4a, 0x91, 0xec, - 0x92, 0x6a, 0x7e, 0x6e, 0x16, 0xa3, 0xdd, 0x21, 0xb9, 0xf6, 0x72, 0x77, 0xb3, 0xbb, 0xb4, 0xad, - 0xa0, 0x17, 0x06, 0x7a, 0x55, 0xa0, 0x0f, 0x50, 0x14, 0x45, 0x2f, 0x72, 0x13, 0xa0, 0x0f, 0x50, - 0x20, 0x77, 0x7d, 0x82, 0x02, 0x79, 0x83, 0xa2, 0x28, 0xd0, 0x3e, 0x46, 0x31, 0x33, 0xbb, 0xcb, - 0x5d, 0xfe, 0xc4, 0x6a, 0x80, 0x38, 0x57, 0xe4, 0x7c, 0xe7, 0x3b, 0x67, 0xce, 0x9c, 0x39, 0x33, - 0x73, 0x66, 0x16, 0x76, 0x47, 0xb6, 0x3d, 0x32, 0xe9, 0xbe, 0xe3, 0xda, 0xbe, 0x7d, 0x3e, 0x1d, - 0xee, 0xeb, 0xd4, 0xd3, 0x5c, 0xc3, 0xf1, 0x6d, 0xb7, 0xc6, 0x31, 0xbc, 0x21, 0x18, 0xb5, 0x90, - 0x51, 0x3d, 0x85, 0xcd, 0x07, 0x86, 0x49, 0x9b, 0x11, 0xb1, 0x4f, 0x7d, 0x7c, 0x1f, 0xb2, 0x43, - 0xc3, 0xa4, 0x52, 0x6a, 0x37, 0xb3, 0x57, 0x3a, 0x78, 0xb3, 0x36, 0xa7, 0x54, 0x4b, 0x6a, 0xf4, - 0x18, 0xac, 0x70, 0x8d, 0xea, 0xbf, 0xb3, 0xb0, 0xb5, 0x44, 0x8a, 0x31, 0x64, 0x2d, 0x32, 0x61, - 0x16, 0x53, 0x7b, 0x45, 0x85, 0xff, 0xc7, 0x12, 0xac, 0x39, 0x44, 0x7b, 0x44, 0x46, 0x54, 0x4a, - 0x73, 0x38, 0x6c, 0xe2, 0xd7, 0x01, 0x74, 0xea, 0x50, 0x4b, 0xa7, 0x96, 0x76, 0x21, 0x65, 0x76, - 0x33, 0x7b, 0x45, 0x25, 0x86, 0xe0, 0x77, 0x60, 0xd3, 0x99, 0x9e, 0x9b, 0x86, 0xa6, 0xc6, 0x68, - 0xb0, 0x9b, 0xd9, 0xcb, 0x29, 0x48, 0x08, 0x9a, 0x33, 0xf2, 0x4d, 0xd8, 0x78, 0x42, 0xc9, 0xa3, - 0x38, 0xb5, 0xc4, 0xa9, 0x15, 0x06, 0xc7, 0x88, 0x0d, 0x28, 0x4f, 0xa8, 0xe7, 0x91, 0x11, 0x55, - 0xfd, 0x0b, 0x87, 0x4a, 0x59, 0x3e, 0xfa, 0xdd, 0x85, 0xd1, 0xcf, 0x8f, 0xbc, 0x14, 0x68, 0x0d, - 0x2e, 0x1c, 0x8a, 0xeb, 0x50, 0xa4, 0xd6, 0x74, 0x22, 0x2c, 0xe4, 0x56, 0xc4, 0x4f, 0xb6, 0xa6, - 0x93, 0x79, 0x2b, 0x05, 0xa6, 0x16, 0x98, 0x58, 0xf3, 0xa8, 0xfb, 0xd8, 0xd0, 0xa8, 0x94, 0xe7, - 0x06, 0x6e, 0x2e, 0x18, 0xe8, 0x0b, 0xf9, 0xbc, 0x8d, 0x50, 0x0f, 0x37, 0xa0, 0x48, 0x9f, 0xfa, - 0xd4, 0xf2, 0x0c, 0xdb, 0x92, 0xd6, 0xb8, 0x91, 0xb7, 0x96, 0xcc, 0x22, 0x35, 0xf5, 0x79, 0x13, - 0x33, 0x3d, 0x7c, 0x0f, 0xd6, 0x6c, 0xc7, 0x37, 0x6c, 0xcb, 0x93, 0x0a, 0xbb, 0xa9, 0xbd, 0xd2, - 0xc1, 0xab, 0x4b, 0x13, 0xa1, 0x2b, 0x38, 0x4a, 0x48, 0xc6, 0x2d, 0x40, 0x9e, 0x3d, 0x75, 0x35, - 0xaa, 0x6a, 0xb6, 0x4e, 0x55, 0xc3, 0x1a, 0xda, 0x52, 0x91, 0x1b, 0xb8, 0xbe, 0x38, 0x10, 0x4e, - 0x6c, 0xd8, 0x3a, 0x6d, 0x59, 0x43, 0x5b, 0xa9, 0x78, 0x89, 0x36, 0xbe, 0x02, 0x79, 0xef, 0xc2, - 0xf2, 0xc9, 0x53, 0xa9, 0xcc, 0x33, 0x24, 0x68, 0x55, 0xbf, 0xcd, 0xc3, 0xc6, 0x65, 0x52, 0xec, - 0x23, 0xc8, 0x0d, 0xd9, 0x28, 0xa5, 0xf4, 0xff, 0x13, 0x03, 0xa1, 0x93, 0x0c, 0x62, 0xfe, 0x07, - 0x06, 0xb1, 0x0e, 0x25, 0x8b, 0x7a, 0x3e, 0xd5, 0x45, 0x46, 0x64, 0x2e, 0x99, 0x53, 0x20, 0x94, - 0x16, 0x53, 0x2a, 0xfb, 0x83, 0x52, 0xea, 0x33, 0xd8, 0x88, 0x5c, 0x52, 0x5d, 0x62, 0x8d, 0xc2, - 0xdc, 0xdc, 0x7f, 0x9e, 0x27, 0x35, 0x39, 0xd4, 0x53, 0x98, 0x9a, 0x52, 0xa1, 0x89, 0x36, 0x6e, - 0x02, 0xd8, 0x16, 0xb5, 0x87, 0xaa, 0x4e, 0x35, 0x53, 0x2a, 0xac, 0x88, 0x52, 0x97, 0x51, 0x16, - 0xa2, 0x64, 0x0b, 0x54, 0x33, 0xf1, 0x87, 0xb3, 0x54, 0x5b, 0x5b, 0x91, 0x29, 0xa7, 0x62, 0x91, - 0x2d, 0x64, 0xdb, 0x19, 0x54, 0x5c, 0xca, 0xf2, 0x9e, 0xea, 0xc1, 0xc8, 0x8a, 0xdc, 0x89, 0xda, - 0x73, 0x47, 0xa6, 0x04, 0x6a, 0x62, 0x60, 0xeb, 0x6e, 0xbc, 0x89, 0xdf, 0x80, 0x08, 0x50, 0x79, - 0x5a, 0x01, 0xdf, 0x85, 0xca, 0x21, 0xd8, 0x21, 0x13, 0xba, 0xf3, 0x15, 0x54, 0x92, 0xe1, 0xc1, - 0xdb, 0x90, 0xf3, 0x7c, 0xe2, 0xfa, 0x3c, 0x0b, 0x73, 0x8a, 0x68, 0x60, 0x04, 0x19, 0x6a, 0xe9, - 0x7c, 0x97, 0xcb, 0x29, 0xec, 0x2f, 0xfe, 0xe5, 0x6c, 0xc0, 0x19, 0x3e, 0xe0, 0xb7, 0x17, 0x67, - 0x34, 0x61, 0x79, 0x7e, 0xdc, 0x3b, 0x1f, 0xc0, 0x7a, 0x62, 0x00, 0x97, 0xed, 0xba, 0xfa, 0x5b, - 0x78, 0x79, 0xa9, 0x69, 0xfc, 0x19, 0x6c, 0x4f, 0x2d, 0xc3, 0xf2, 0xa9, 0xeb, 0xb8, 0x94, 0x65, - 0xac, 0xe8, 0x4a, 0xfa, 0xcf, 0xda, 0x8a, 0x9c, 0x3b, 0x8b, 0xb3, 0x85, 0x15, 0x65, 0x6b, 0xba, - 0x08, 0xde, 0x2e, 0x16, 0xfe, 0xbb, 0x86, 0x9e, 0x3d, 0x7b, 0xf6, 0x2c, 0x5d, 0xfd, 0x63, 0x1e, - 0xb6, 0x97, 0xad, 0x99, 0xa5, 0xcb, 0xf7, 0x0a, 0xe4, 0xad, 0xe9, 0xe4, 0x9c, 0xba, 0x3c, 0x48, - 0x39, 0x25, 0x68, 0xe1, 0x3a, 0xe4, 0x4c, 0x72, 0x4e, 0x4d, 0x29, 0xbb, 0x9b, 0xda, 0xab, 0x1c, - 0xbc, 0x73, 0xa9, 0x55, 0x59, 0x6b, 0x33, 0x15, 0x45, 0x68, 0xe2, 0x8f, 0x21, 0x1b, 0x6c, 0xd1, - 0xcc, 0xc2, 0xed, 0xcb, 0x59, 0x60, 0x6b, 0x49, 0xe1, 0x7a, 0xf8, 0x15, 0x28, 0xb2, 0x5f, 0x91, - 0x1b, 0x79, 0xee, 0x73, 0x81, 0x01, 0x2c, 0x2f, 0xf0, 0x0e, 0x14, 0xf8, 0x32, 0xd1, 0x69, 0x78, - 0xb4, 0x45, 0x6d, 0x96, 0x58, 0x3a, 0x1d, 0x92, 0xa9, 0xe9, 0xab, 0x8f, 0x89, 0x39, 0xa5, 0x3c, - 0xe1, 0x8b, 0x4a, 0x39, 0x00, 0x7f, 0xc3, 0x30, 0x7c, 0x1d, 0x4a, 0x62, 0x55, 0x19, 0x96, 0x4e, - 0x9f, 0xf2, 0xdd, 0x33, 0xa7, 0x88, 0x85, 0xd6, 0x62, 0x08, 0xeb, 0xfe, 0xa1, 0x67, 0x5b, 0x61, - 0x6a, 0xf2, 0x2e, 0x18, 0xc0, 0xbb, 0xff, 0x60, 0x7e, 0xe3, 0x7e, 0x6d, 0xf9, 0xf0, 0xe6, 0x73, - 0xaa, 0xfa, 0xb7, 0x34, 0x64, 0xf9, 0x7e, 0xb1, 0x01, 0xa5, 0xc1, 0xe7, 0x3d, 0x59, 0x6d, 0x76, - 0xcf, 0x8e, 0xda, 0x32, 0x4a, 0xe1, 0x0a, 0x00, 0x07, 0x1e, 0xb4, 0xbb, 0xf5, 0x01, 0x4a, 0x47, - 0xed, 0x56, 0x67, 0x70, 0xef, 0x0e, 0xca, 0x44, 0x0a, 0x67, 0x02, 0xc8, 0xc6, 0x09, 0xef, 0x1f, - 0xa0, 0x1c, 0x46, 0x50, 0x16, 0x06, 0x5a, 0x9f, 0xc9, 0xcd, 0x7b, 0x77, 0x50, 0x3e, 0x89, 0xbc, - 0x7f, 0x80, 0xd6, 0xf0, 0x3a, 0x14, 0x39, 0x72, 0xd4, 0xed, 0xb6, 0x51, 0x21, 0xb2, 0xd9, 0x1f, - 0x28, 0xad, 0xce, 0x31, 0x2a, 0x46, 0x36, 0x8f, 0x95, 0xee, 0x59, 0x0f, 0x41, 0x64, 0xe1, 0x54, - 0xee, 0xf7, 0xeb, 0xc7, 0x32, 0x2a, 0x45, 0x8c, 0xa3, 0xcf, 0x07, 0x72, 0x1f, 0x95, 0x13, 0x6e, - 0xbd, 0x7f, 0x80, 0xd6, 0xa3, 0x2e, 0xe4, 0xce, 0xd9, 0x29, 0xaa, 0xe0, 0x4d, 0x58, 0x17, 0x5d, - 0x84, 0x4e, 0x6c, 0xcc, 0x41, 0xf7, 0xee, 0x20, 0x34, 0x73, 0x44, 0x58, 0xd9, 0x4c, 0x00, 0xf7, - 0xee, 0x20, 0x5c, 0x6d, 0x40, 0x8e, 0x67, 0x17, 0xc6, 0x50, 0x69, 0xd7, 0x8f, 0xe4, 0xb6, 0xda, - 0xed, 0x0d, 0x5a, 0xdd, 0x4e, 0xbd, 0x8d, 0x52, 0x33, 0x4c, 0x91, 0x7f, 0x7d, 0xd6, 0x52, 0xe4, - 0x26, 0x4a, 0xc7, 0xb1, 0x9e, 0x5c, 0x1f, 0xc8, 0x4d, 0x94, 0xa9, 0x6a, 0xb0, 0xbd, 0x6c, 0x9f, - 0x5c, 0xba, 0x32, 0x62, 0x53, 0x9c, 0x5e, 0x31, 0xc5, 0xdc, 0xd6, 0xc2, 0x14, 0x7f, 0x9d, 0x82, - 0xad, 0x25, 0x67, 0xc5, 0xd2, 0x4e, 0x7e, 0x01, 0x39, 0x91, 0xa2, 0xe2, 0xf4, 0xbc, 0xb5, 0xf4, - 0xd0, 0xe1, 0x09, 0xbb, 0x70, 0x82, 0x72, 0xbd, 0x78, 0x05, 0x91, 0x59, 0x51, 0x41, 0x30, 0x13, - 0x0b, 0x4e, 0xfe, 0x2e, 0x05, 0xd2, 0x2a, 0xdb, 0xcf, 0xd9, 0x28, 0xd2, 0x89, 0x8d, 0xe2, 0xa3, - 0x79, 0x07, 0x6e, 0xac, 0x1e, 0xc3, 0x82, 0x17, 0xdf, 0xa4, 0xe0, 0xca, 0xf2, 0x42, 0x6b, 0xa9, - 0x0f, 0x1f, 0x43, 0x7e, 0x42, 0xfd, 0xb1, 0x1d, 0x16, 0x1b, 0x6f, 0x2f, 0x39, 0xc2, 0x98, 0x78, - 0x3e, 0x56, 0x81, 0x56, 0xfc, 0x0c, 0xcc, 0xac, 0xaa, 0x96, 0x84, 0x37, 0x0b, 0x9e, 0xfe, 0x3e, - 0x0d, 0x2f, 0x2f, 0x35, 0xbe, 0xd4, 0xd1, 0xd7, 0x00, 0x0c, 0xcb, 0x99, 0xfa, 0xa2, 0xa0, 0x10, - 0xfb, 0x53, 0x91, 0x23, 0x7c, 0xed, 0xb3, 0xbd, 0x67, 0xea, 0x47, 0xf2, 0x0c, 0x97, 0x83, 0x80, - 0x38, 0xe1, 0xfe, 0xcc, 0xd1, 0x2c, 0x77, 0xf4, 0xf5, 0x15, 0x23, 0x5d, 0x38, 0xab, 0xdf, 0x03, - 0xa4, 0x99, 0x06, 0xb5, 0x7c, 0xd5, 0xf3, 0x5d, 0x4a, 0x26, 0x86, 0x35, 0xe2, 0x1b, 0x70, 0xe1, - 0x30, 0x37, 0x24, 0xa6, 0x47, 0x95, 0x0d, 0x21, 0xee, 0x87, 0x52, 0xa6, 0xc1, 0xcf, 0x38, 0x37, - 0xa6, 0x91, 0x4f, 0x68, 0x08, 0x71, 0xa4, 0x51, 0xfd, 0xb6, 0x00, 0xa5, 0x58, 0x59, 0x8a, 0x6f, - 0x40, 0xf9, 0x21, 0x79, 0x4c, 0xd4, 0xf0, 0xaa, 0x21, 0x22, 0x51, 0x62, 0x58, 0x2f, 0xb8, 0x6e, - 0xbc, 0x07, 0xdb, 0x9c, 0x62, 0x4f, 0x7d, 0xea, 0xaa, 0x9a, 0x49, 0x3c, 0x8f, 0x07, 0xad, 0xc0, - 0xa9, 0x98, 0xc9, 0xba, 0x4c, 0xd4, 0x08, 0x25, 0xf8, 0x2e, 0x6c, 0x71, 0x8d, 0xc9, 0xd4, 0xf4, - 0x0d, 0xc7, 0xa4, 0x2a, 0xbb, 0xfc, 0x78, 0x7c, 0x23, 0x8e, 0x3c, 0xdb, 0x64, 0x8c, 0xd3, 0x80, - 0xc0, 0x3c, 0xf2, 0x70, 0x13, 0x5e, 0xe3, 0x6a, 0x23, 0x6a, 0x51, 0x97, 0xf8, 0x54, 0xa5, 0x5f, - 0x4e, 0x89, 0xe9, 0xa9, 0xc4, 0xd2, 0xd5, 0x31, 0xf1, 0xc6, 0xd2, 0x36, 0x33, 0x70, 0x94, 0x96, - 0x52, 0xca, 0x35, 0x46, 0x3c, 0x0e, 0x78, 0x32, 0xa7, 0xd5, 0x2d, 0xfd, 0x13, 0xe2, 0x8d, 0xf1, - 0x21, 0x5c, 0xe1, 0x56, 0x3c, 0xdf, 0x35, 0xac, 0x91, 0xaa, 0x8d, 0xa9, 0xf6, 0x48, 0x9d, 0xfa, - 0xc3, 0xfb, 0xd2, 0x2b, 0xf1, 0xfe, 0xb9, 0x87, 0x7d, 0xce, 0x69, 0x30, 0xca, 0x99, 0x3f, 0xbc, - 0x8f, 0xfb, 0x50, 0x66, 0x93, 0x31, 0x31, 0xbe, 0xa2, 0xea, 0xd0, 0x76, 0xf9, 0xc9, 0x52, 0x59, - 0xb2, 0xb2, 0x63, 0x11, 0xac, 0x75, 0x03, 0x85, 0x53, 0x5b, 0xa7, 0x87, 0xb9, 0x7e, 0x4f, 0x96, - 0x9b, 0x4a, 0x29, 0xb4, 0xf2, 0xc0, 0x76, 0x59, 0x42, 0x8d, 0xec, 0x28, 0xc0, 0x25, 0x91, 0x50, - 0x23, 0x3b, 0x0c, 0xef, 0x5d, 0xd8, 0xd2, 0x34, 0x31, 0x66, 0x43, 0x53, 0x83, 0x2b, 0x8a, 0x27, - 0xa1, 0x44, 0xb0, 0x34, 0xed, 0x58, 0x10, 0x82, 0x1c, 0xf7, 0xf0, 0x87, 0xf0, 0xf2, 0x2c, 0x58, - 0x71, 0xc5, 0xcd, 0x85, 0x51, 0xce, 0xab, 0xde, 0x85, 0x2d, 0xe7, 0x62, 0x51, 0x11, 0x27, 0x7a, - 0x74, 0x2e, 0xe6, 0xd5, 0x3e, 0x80, 0x6d, 0x67, 0xec, 0x2c, 0xea, 0xdd, 0x8e, 0xeb, 0x61, 0x67, - 0xec, 0xcc, 0x2b, 0xbe, 0xc5, 0xef, 0xab, 0x2e, 0xd5, 0x88, 0x4f, 0x75, 0xe9, 0x6a, 0x9c, 0x1e, - 0x13, 0xe0, 0x7d, 0x40, 0x9a, 0xa6, 0x52, 0x8b, 0x9c, 0x9b, 0x54, 0x25, 0x2e, 0xb5, 0x88, 0x27, - 0x5d, 0x8f, 0x93, 0x2b, 0x9a, 0x26, 0x73, 0x69, 0x9d, 0x0b, 0xf1, 0x6d, 0xd8, 0xb4, 0xcf, 0x1f, - 0x6a, 0x22, 0x25, 0x55, 0xc7, 0xa5, 0x43, 0xe3, 0xa9, 0xf4, 0x26, 0x8f, 0xef, 0x06, 0x13, 0xf0, - 0x84, 0xec, 0x71, 0x18, 0xdf, 0x02, 0xa4, 0x79, 0x63, 0xe2, 0x3a, 0xbc, 0x26, 0xf0, 0x1c, 0xa2, - 0x51, 0xe9, 0x2d, 0x41, 0x15, 0x78, 0x27, 0x84, 0xd9, 0x92, 0xf0, 0x9e, 0x18, 0x43, 0x3f, 0xb4, - 0x78, 0x53, 0x2c, 0x09, 0x8e, 0x05, 0xd6, 0xf6, 0x00, 0xb1, 0x50, 0x24, 0x3a, 0xde, 0xe3, 0xb4, - 0x8a, 0x33, 0x76, 0xe2, 0xfd, 0xbe, 0x01, 0xeb, 0x8c, 0x39, 0xeb, 0xf4, 0x96, 0xa8, 0x67, 0x9c, - 0x71, 0xac, 0xc7, 0x1f, 0xad, 0xb4, 0xac, 0x1e, 0x42, 0x39, 0x9e, 0x9f, 0xb8, 0x08, 0x22, 0x43, - 0x51, 0x8a, 0x9d, 0xf5, 0x8d, 0x6e, 0x93, 0x9d, 0xd2, 0x5f, 0xc8, 0x28, 0xcd, 0xaa, 0x85, 0x76, - 0x6b, 0x20, 0xab, 0xca, 0x59, 0x67, 0xd0, 0x3a, 0x95, 0x51, 0x26, 0x56, 0x96, 0x9e, 0x64, 0x0b, - 0x6f, 0xa3, 0x9b, 0xd5, 0xef, 0xd2, 0x50, 0x49, 0xde, 0x33, 0xf0, 0xcf, 0xe1, 0x6a, 0xf8, 0x28, - 0xe0, 0x51, 0x5f, 0x7d, 0x62, 0xb8, 0x7c, 0xe1, 0x4c, 0x88, 0xa8, 0xb3, 0xa3, 0xa9, 0xdb, 0x0e, - 0x58, 0x7d, 0xea, 0x7f, 0x6a, 0xb8, 0x6c, 0x59, 0x4c, 0x88, 0x8f, 0xdb, 0x70, 0xdd, 0xb2, 0x55, - 0xcf, 0x27, 0x96, 0x4e, 0x5c, 0x5d, 0x9d, 0x3d, 0xc7, 0xa8, 0x44, 0xd3, 0xa8, 0xe7, 0xd9, 0xe2, - 0xc0, 0x8a, 0xac, 0xbc, 0x6a, 0xd9, 0xfd, 0x80, 0x3c, 0xdb, 0xc9, 0xeb, 0x01, 0x75, 0x2e, 0xcd, - 0x32, 0xab, 0xd2, 0xec, 0x15, 0x28, 0x4e, 0x88, 0xa3, 0x52, 0xcb, 0x77, 0x2f, 0x78, 0x75, 0x59, - 0x50, 0x0a, 0x13, 0xe2, 0xc8, 0xac, 0xfd, 0x42, 0x8a, 0xfc, 0x93, 0x6c, 0xa1, 0x80, 0x8a, 0x27, - 0xd9, 0x42, 0x11, 0x41, 0xf5, 0x5f, 0x19, 0x28, 0xc7, 0xab, 0x4d, 0x56, 0xbc, 0x6b, 0xfc, 0x64, - 0x49, 0xf1, 0xbd, 0xe7, 0x8d, 0xef, 0xad, 0x4d, 0x6b, 0x0d, 0x76, 0xe4, 0x1c, 0xe6, 0x45, 0x0d, - 0xa8, 0x08, 0x4d, 0x76, 0xdc, 0xb3, 0xdd, 0x86, 0x8a, 0x7b, 0x4d, 0x41, 0x09, 0x5a, 0xf8, 0x18, - 0xf2, 0x0f, 0x3d, 0x6e, 0x3b, 0xcf, 0x6d, 0xbf, 0xf9, 0xfd, 0xb6, 0x4f, 0xfa, 0xdc, 0x78, 0xf1, - 0xa4, 0xaf, 0x76, 0xba, 0xca, 0x69, 0xbd, 0xad, 0x04, 0xea, 0xf8, 0x1a, 0x64, 0x4d, 0xf2, 0xd5, - 0x45, 0xf2, 0x70, 0xe2, 0xd0, 0x65, 0x27, 0xe1, 0x1a, 0x64, 0x9f, 0x50, 0xf2, 0x28, 0x79, 0x24, - 0x70, 0xe8, 0x47, 0x5c, 0x0c, 0xfb, 0x90, 0xe3, 0xf1, 0xc2, 0x00, 0x41, 0xc4, 0xd0, 0x4b, 0xb8, - 0x00, 0xd9, 0x46, 0x57, 0x61, 0x0b, 0x02, 0x41, 0x59, 0xa0, 0x6a, 0xaf, 0x25, 0x37, 0x64, 0x94, - 0xae, 0xde, 0x85, 0xbc, 0x08, 0x02, 0x5b, 0x2c, 0x51, 0x18, 0xd0, 0x4b, 0x41, 0x33, 0xb0, 0x91, - 0x0a, 0xa5, 0x67, 0xa7, 0x47, 0xb2, 0x82, 0xd2, 0xc9, 0xa9, 0xce, 0xa2, 0x5c, 0xd5, 0x83, 0x72, - 0xbc, 0xdc, 0x7c, 0x31, 0x57, 0xc9, 0xbf, 0xa7, 0xa0, 0x14, 0x2b, 0x1f, 0x59, 0xe1, 0x42, 0x4c, - 0xd3, 0x7e, 0xa2, 0x12, 0xd3, 0x20, 0x5e, 0x90, 0x1a, 0xc0, 0xa1, 0x3a, 0x43, 0x2e, 0x3b, 0x75, - 0x2f, 0x68, 0x89, 0xe4, 0x50, 0xbe, 0xfa, 0x97, 0x14, 0xa0, 0xf9, 0x02, 0x74, 0xce, 0xcd, 0xd4, - 0x4f, 0xe9, 0x66, 0xf5, 0xcf, 0x29, 0xa8, 0x24, 0xab, 0xce, 0x39, 0xf7, 0x6e, 0xfc, 0xa4, 0xee, - 0xfd, 0x33, 0x0d, 0xeb, 0x89, 0x5a, 0xf3, 0xb2, 0xde, 0x7d, 0x09, 0x9b, 0x86, 0x4e, 0x27, 0x8e, - 0xed, 0x53, 0x4b, 0xbb, 0x50, 0x4d, 0xfa, 0x98, 0x9a, 0x52, 0x95, 0x6f, 0x1a, 0xfb, 0xdf, 0x5f, - 0xcd, 0xd6, 0x5a, 0x33, 0xbd, 0x36, 0x53, 0x3b, 0xdc, 0x6a, 0x35, 0xe5, 0xd3, 0x5e, 0x77, 0x20, - 0x77, 0x1a, 0x9f, 0xab, 0x67, 0x9d, 0x5f, 0x75, 0xba, 0x9f, 0x76, 0x14, 0x64, 0xcc, 0xd1, 0x7e, - 0xc4, 0x65, 0xdf, 0x03, 0x34, 0xef, 0x14, 0xbe, 0x0a, 0xcb, 0xdc, 0x42, 0x2f, 0xe1, 0x2d, 0xd8, - 0xe8, 0x74, 0xd5, 0x7e, 0xab, 0x29, 0xab, 0xf2, 0x83, 0x07, 0x72, 0x63, 0xd0, 0x17, 0xd7, 0xfb, - 0x88, 0x3d, 0x48, 0x2c, 0xf0, 0xea, 0x9f, 0x32, 0xb0, 0xb5, 0xc4, 0x13, 0x5c, 0x0f, 0x6e, 0x16, - 0xe2, 0xb2, 0xf3, 0xee, 0x65, 0xbc, 0xaf, 0xb1, 0x82, 0xa0, 0x47, 0x5c, 0x3f, 0xb8, 0x88, 0xdc, - 0x02, 0x16, 0x25, 0xcb, 0x37, 0x86, 0x06, 0x75, 0x83, 0xd7, 0x10, 0x71, 0xdd, 0xd8, 0x98, 0xe1, - 0xe2, 0x41, 0xe4, 0x67, 0x80, 0x1d, 0xdb, 0x33, 0x7c, 0xe3, 0x31, 0x55, 0x0d, 0x2b, 0x7c, 0x3a, - 0x61, 0xd7, 0x8f, 0xac, 0x82, 0x42, 0x49, 0xcb, 0xf2, 0x23, 0xb6, 0x45, 0x47, 0x64, 0x8e, 0xcd, - 0x36, 0xf3, 0x8c, 0x82, 0x42, 0x49, 0xc4, 0xbe, 0x01, 0x65, 0xdd, 0x9e, 0xb2, 0x9a, 0x4c, 0xf0, - 0xd8, 0xd9, 0x91, 0x52, 0x4a, 0x02, 0x8b, 0x28, 0x41, 0xb5, 0x3d, 0x7b, 0xb3, 0x29, 0x2b, 0x25, - 0x81, 0x09, 0xca, 0x4d, 0xd8, 0x20, 0xa3, 0x91, 0xcb, 0x8c, 0x87, 0x86, 0xc4, 0xfd, 0xa1, 0x12, - 0xc1, 0x9c, 0xb8, 0x73, 0x02, 0x85, 0x30, 0x0e, 0xec, 0xa8, 0x66, 0x91, 0x50, 0x1d, 0xf1, 0x6e, - 0x97, 0xde, 0x2b, 0x2a, 0x05, 0x2b, 0x14, 0xde, 0x80, 0xb2, 0xe1, 0xa9, 0xb3, 0x27, 0xe8, 0xf4, - 0x6e, 0x7a, 0xaf, 0xa0, 0x94, 0x0c, 0x2f, 0x7a, 0xbe, 0xab, 0x7e, 0x93, 0x86, 0x4a, 0xf2, 0x09, - 0x1d, 0x37, 0xa1, 0x60, 0xda, 0x1a, 0xe1, 0xa9, 0x25, 0xbe, 0xdf, 0xec, 0x3d, 0xe7, 0xd5, 0xbd, - 0xd6, 0x0e, 0xf8, 0x4a, 0xa4, 0xb9, 0xf3, 0x8f, 0x14, 0x14, 0x42, 0x18, 0x5f, 0x81, 0xac, 0x43, - 0xfc, 0x31, 0x37, 0x97, 0x3b, 0x4a, 0xa3, 0x94, 0xc2, 0xdb, 0x0c, 0xf7, 0x1c, 0x62, 0xf1, 0x14, - 0x08, 0x70, 0xd6, 0x66, 0xf3, 0x6a, 0x52, 0xa2, 0xf3, 0xcb, 0x89, 0x3d, 0x99, 0x50, 0xcb, 0xf7, - 0xc2, 0x79, 0x0d, 0xf0, 0x46, 0x00, 0xe3, 0x77, 0x60, 0xd3, 0x77, 0x89, 0x61, 0x26, 0xb8, 0x59, - 0xce, 0x45, 0xa1, 0x20, 0x22, 0x1f, 0xc2, 0xb5, 0xd0, 0xae, 0x4e, 0x7d, 0xa2, 0x8d, 0xa9, 0x3e, - 0x53, 0xca, 0xf3, 0xf7, 0xd9, 0xab, 0x01, 0xa1, 0x19, 0xc8, 0x43, 0xdd, 0xea, 0x77, 0x29, 0xd8, - 0x0c, 0xaf, 0x53, 0x7a, 0x14, 0xac, 0x53, 0x00, 0x62, 0x59, 0xb6, 0x1f, 0x0f, 0xd7, 0x62, 0x2a, - 0x2f, 0xe8, 0xd5, 0xea, 0x91, 0x92, 0x12, 0x33, 0xb0, 0x33, 0x01, 0x98, 0x49, 0x56, 0x86, 0xed, - 0x3a, 0x94, 0x82, 0xef, 0x23, 0xfc, 0x23, 0x9b, 0xb8, 0x80, 0x83, 0x80, 0xd8, 0xbd, 0x0b, 0x6f, - 0x43, 0xee, 0x9c, 0x8e, 0x0c, 0x2b, 0x78, 0xf5, 0x14, 0x8d, 0xf0, 0x25, 0x37, 0x1b, 0xbd, 0xe4, - 0x1e, 0xfd, 0x21, 0x05, 0x5b, 0x9a, 0x3d, 0x99, 0xf7, 0xf7, 0x08, 0xcd, 0xbd, 0x02, 0x78, 0x9f, - 0xa4, 0xbe, 0xf8, 0x78, 0x64, 0xf8, 0xe3, 0xe9, 0x79, 0x4d, 0xb3, 0x27, 0xfb, 0x23, 0xdb, 0x24, - 0xd6, 0x68, 0xf6, 0x95, 0x90, 0xff, 0xd1, 0xde, 0x1d, 0x51, 0xeb, 0xdd, 0x91, 0x1d, 0xfb, 0x66, - 0xf8, 0xd1, 0xec, 0xef, 0xd7, 0xe9, 0xcc, 0x71, 0xef, 0xe8, 0xaf, 0xe9, 0x9d, 0x63, 0xd1, 0x57, - 0x2f, 0x8c, 0x8d, 0x42, 0x87, 0x26, 0xd5, 0xd8, 0x78, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x0c, - 0xab, 0xb6, 0x37, 0x7e, 0x1c, 0x00, 0x00, +type FileDescriptorSet = descriptorpb.FileDescriptorSet +type FileDescriptorProto = descriptorpb.FileDescriptorProto +type DescriptorProto = descriptorpb.DescriptorProto +type ExtensionRangeOptions = descriptorpb.ExtensionRangeOptions +type FieldDescriptorProto = descriptorpb.FieldDescriptorProto +type OneofDescriptorProto = descriptorpb.OneofDescriptorProto +type EnumDescriptorProto = descriptorpb.EnumDescriptorProto +type EnumValueDescriptorProto = descriptorpb.EnumValueDescriptorProto +type ServiceDescriptorProto = descriptorpb.ServiceDescriptorProto +type MethodDescriptorProto = descriptorpb.MethodDescriptorProto + +const Default_MethodDescriptorProto_ClientStreaming = descriptorpb.Default_MethodDescriptorProto_ClientStreaming +const Default_MethodDescriptorProto_ServerStreaming = descriptorpb.Default_MethodDescriptorProto_ServerStreaming + +type FileOptions = descriptorpb.FileOptions + +const Default_FileOptions_JavaMultipleFiles = descriptorpb.Default_FileOptions_JavaMultipleFiles +const Default_FileOptions_JavaStringCheckUtf8 = descriptorpb.Default_FileOptions_JavaStringCheckUtf8 +const Default_FileOptions_OptimizeFor = descriptorpb.Default_FileOptions_OptimizeFor +const Default_FileOptions_CcGenericServices = descriptorpb.Default_FileOptions_CcGenericServices +const Default_FileOptions_JavaGenericServices = descriptorpb.Default_FileOptions_JavaGenericServices +const Default_FileOptions_PyGenericServices = descriptorpb.Default_FileOptions_PyGenericServices +const Default_FileOptions_PhpGenericServices = descriptorpb.Default_FileOptions_PhpGenericServices +const Default_FileOptions_Deprecated = descriptorpb.Default_FileOptions_Deprecated +const Default_FileOptions_CcEnableArenas = descriptorpb.Default_FileOptions_CcEnableArenas + +type MessageOptions = descriptorpb.MessageOptions + +const Default_MessageOptions_MessageSetWireFormat = descriptorpb.Default_MessageOptions_MessageSetWireFormat +const Default_MessageOptions_NoStandardDescriptorAccessor = descriptorpb.Default_MessageOptions_NoStandardDescriptorAccessor +const Default_MessageOptions_Deprecated = descriptorpb.Default_MessageOptions_Deprecated + +type FieldOptions = descriptorpb.FieldOptions + +const Default_FieldOptions_Ctype = descriptorpb.Default_FieldOptions_Ctype +const Default_FieldOptions_Jstype = descriptorpb.Default_FieldOptions_Jstype +const Default_FieldOptions_Lazy = descriptorpb.Default_FieldOptions_Lazy +const Default_FieldOptions_Deprecated = descriptorpb.Default_FieldOptions_Deprecated +const Default_FieldOptions_Weak = descriptorpb.Default_FieldOptions_Weak + +type OneofOptions = descriptorpb.OneofOptions +type EnumOptions = descriptorpb.EnumOptions + +const Default_EnumOptions_Deprecated = descriptorpb.Default_EnumOptions_Deprecated + +type EnumValueOptions = descriptorpb.EnumValueOptions + +const Default_EnumValueOptions_Deprecated = descriptorpb.Default_EnumValueOptions_Deprecated + +type ServiceOptions = descriptorpb.ServiceOptions + +const Default_ServiceOptions_Deprecated = descriptorpb.Default_ServiceOptions_Deprecated + +type MethodOptions = descriptorpb.MethodOptions + +const Default_MethodOptions_Deprecated = descriptorpb.Default_MethodOptions_Deprecated +const Default_MethodOptions_IdempotencyLevel = descriptorpb.Default_MethodOptions_IdempotencyLevel + +type UninterpretedOption = descriptorpb.UninterpretedOption +type SourceCodeInfo = descriptorpb.SourceCodeInfo +type GeneratedCodeInfo = descriptorpb.GeneratedCodeInfo +type DescriptorProto_ExtensionRange = descriptorpb.DescriptorProto_ExtensionRange +type DescriptorProto_ReservedRange = descriptorpb.DescriptorProto_ReservedRange +type EnumDescriptorProto_EnumReservedRange = descriptorpb.EnumDescriptorProto_EnumReservedRange +type UninterpretedOption_NamePart = descriptorpb.UninterpretedOption_NamePart +type SourceCodeInfo_Location = descriptorpb.SourceCodeInfo_Location +type GeneratedCodeInfo_Annotation = descriptorpb.GeneratedCodeInfo_Annotation + +var File_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_rawDesc = []byte{ + 0x0a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, + 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x3b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x32, +} + +var file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init() } +func file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init() { + if File_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto = out.File + file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_rawDesc = nil + file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_goTypes = nil + file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto b/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto deleted file mode 100644 index 4d4fb37..0000000 --- a/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/descriptor.proto +++ /dev/null @@ -1,849 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// Based on original Protocol Buffers design by -// Sanjay Ghemawat, Jeff Dean, and others. -// -// The messages in this file describe the definitions found in .proto files. -// A valid .proto file can be translated directly to a FileDescriptorProto -// without any other information (e.g. without reading its imports). - - -syntax = "proto2"; - -package google.protobuf; -option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DescriptorProtos"; -option csharp_namespace = "Google.Protobuf.Reflection"; -option objc_class_prefix = "GPB"; - -// descriptor.proto must be optimized for speed because reflection-based -// algorithms don't work during bootstrapping. -option optimize_for = SPEED; - -// The protocol compiler can output a FileDescriptorSet containing the .proto -// files it parses. -message FileDescriptorSet { - repeated FileDescriptorProto file = 1; -} - -// Describes a complete .proto file. -message FileDescriptorProto { - optional string name = 1; // file name, relative to root of source tree - optional string package = 2; // e.g. "foo", "foo.bar", etc. - - // Names of files imported by this file. - repeated string dependency = 3; - // Indexes of the public imported files in the dependency list above. - repeated int32 public_dependency = 10; - // Indexes of the weak imported files in the dependency list. - // For Google-internal migration only. Do not use. - repeated int32 weak_dependency = 11; - - // All top-level definitions in this file. - repeated DescriptorProto message_type = 4; - repeated EnumDescriptorProto enum_type = 5; - repeated ServiceDescriptorProto service = 6; - repeated FieldDescriptorProto extension = 7; - - optional FileOptions options = 8; - - // This field contains optional information about the original source code. - // You may safely remove this entire field without harming runtime - // functionality of the descriptors -- the information is needed only by - // development tools. - optional SourceCodeInfo source_code_info = 9; - - // The syntax of the proto file. - // The supported values are "proto2" and "proto3". - optional string syntax = 12; -} - -// Describes a message type. -message DescriptorProto { - optional string name = 1; - - repeated FieldDescriptorProto field = 2; - repeated FieldDescriptorProto extension = 6; - - repeated DescriptorProto nested_type = 3; - repeated EnumDescriptorProto enum_type = 4; - - message ExtensionRange { - optional int32 start = 1; - optional int32 end = 2; - - optional ExtensionRangeOptions options = 3; - } - repeated ExtensionRange extension_range = 5; - - repeated OneofDescriptorProto oneof_decl = 8; - - optional MessageOptions options = 7; - - // Range of reserved tag numbers. Reserved tag numbers may not be used by - // fields or extension ranges in the same message. Reserved ranges may - // not overlap. - message ReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - } - repeated ReservedRange reserved_range = 9; - // Reserved field names, which may not be used by fields in the same message. - // A given name may only be reserved once. - repeated string reserved_name = 10; -} - -message ExtensionRangeOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -// Describes a field within a message. -message FieldDescriptorProto { - enum Type { - // 0 is reserved for errors. - // Order is weird for historical reasons. - TYPE_DOUBLE = 1; - TYPE_FLOAT = 2; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - TYPE_INT64 = 3; - TYPE_UINT64 = 4; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - TYPE_INT32 = 5; - TYPE_FIXED64 = 6; - TYPE_FIXED32 = 7; - TYPE_BOOL = 8; - TYPE_STRING = 9; - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - TYPE_GROUP = 10; - TYPE_MESSAGE = 11; // Length-delimited aggregate. - - // New in version 2. - TYPE_BYTES = 12; - TYPE_UINT32 = 13; - TYPE_ENUM = 14; - TYPE_SFIXED32 = 15; - TYPE_SFIXED64 = 16; - TYPE_SINT32 = 17; // Uses ZigZag encoding. - TYPE_SINT64 = 18; // Uses ZigZag encoding. - }; - - enum Label { - // 0 is reserved for errors - LABEL_OPTIONAL = 1; - LABEL_REQUIRED = 2; - LABEL_REPEATED = 3; - }; - - optional string name = 1; - optional int32 number = 3; - optional Label label = 4; - - // If type_name is set, this need not be set. If both this and type_name - // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - optional Type type = 5; - - // For message and enum types, this is the name of the type. If the name - // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - // rules are used to find the type (i.e. first the nested types within this - // message are searched, then within the parent, on up to the root - // namespace). - optional string type_name = 6; - - // For extensions, this is the name of the type being extended. It is - // resolved in the same manner as type_name. - optional string extendee = 2; - - // For numeric types, contains the original text representation of the value. - // For booleans, "true" or "false". - // For strings, contains the default text contents (not escaped in any way). - // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? - optional string default_value = 7; - - // If set, gives the index of a oneof in the containing type's oneof_decl - // list. This field is a member of that oneof. - optional int32 oneof_index = 9; - - // JSON name of this field. The value is set by protocol compiler. If the - // user has set a "json_name" option on this field, that option's value - // will be used. Otherwise, it's deduced from the field's name by converting - // it to camelCase. - optional string json_name = 10; - - optional FieldOptions options = 8; -} - -// Describes a oneof. -message OneofDescriptorProto { - optional string name = 1; - optional OneofOptions options = 2; -} - -// Describes an enum type. -message EnumDescriptorProto { - optional string name = 1; - - repeated EnumValueDescriptorProto value = 2; - - optional EnumOptions options = 3; -} - -// Describes a value within an enum. -message EnumValueDescriptorProto { - optional string name = 1; - optional int32 number = 2; - - optional EnumValueOptions options = 3; -} - -// Describes a service. -message ServiceDescriptorProto { - optional string name = 1; - repeated MethodDescriptorProto method = 2; - - optional ServiceOptions options = 3; -} - -// Describes a method of a service. -message MethodDescriptorProto { - optional string name = 1; - - // Input and output type names. These are resolved in the same way as - // FieldDescriptorProto.type_name, but must refer to a message type. - optional string input_type = 2; - optional string output_type = 3; - - optional MethodOptions options = 4; - - // Identifies if client streams multiple client messages - optional bool client_streaming = 5 [default=false]; - // Identifies if server streams multiple server messages - optional bool server_streaming = 6 [default=false]; -} - - -// =================================================================== -// Options - -// Each of the definitions above may have "options" attached. These are -// just annotations which may cause code to be generated slightly differently -// or may contain hints for code that manipulates protocol messages. -// -// Clients may define custom options as extensions of the *Options messages. -// These extensions may not yet be known at parsing time, so the parser cannot -// store the values in them. Instead it stores them in a field in the *Options -// message called uninterpreted_option. This field must have the same name -// across all *Options messages. We then use this field to populate the -// extensions when we build a descriptor, at which point all protos have been -// parsed and so all extensions are known. -// -// Extension numbers for custom options may be chosen as follows: -// * For options which will only be used within a single application or -// organization, or for experimental options, use field numbers 50000 -// through 99999. It is up to you to ensure that you do not use the -// same number for multiple options. -// * For options which will be published and used publicly by multiple -// independent entities, e-mail protobuf-global-extension-registry@google.com -// to reserve extension numbers. Simply provide your project name (e.g. -// Objective-C plugin) and your project website (if available) -- there's no -// need to explain how you intend to use them. Usually you only need one -// extension number. You can declare multiple options with only one extension -// number by putting them in a sub-message. See the Custom Options section of -// the docs for examples: -// https://developers.google.com/protocol-buffers/docs/proto#options -// If this turns out to be popular, a web service will be set up -// to automatically assign option numbers. - - -message FileOptions { - - // Sets the Java package where classes generated from this .proto will be - // placed. By default, the proto package is used, but this is often - // inappropriate because proto packages do not normally start with backwards - // domain names. - optional string java_package = 1; - - - // If set, all the classes from the .proto file are wrapped in a single - // outer class with the given name. This applies to both Proto1 - // (equivalent to the old "--one_java_file" option) and Proto2 (where - // a .proto always translates to a single class, but you may want to - // explicitly choose the class name). - optional string java_outer_classname = 8; - - // If set true, then the Java code generator will generate a separate .java - // file for each top-level message, enum, and service defined in the .proto - // file. Thus, these types will *not* be nested inside the outer class - // named by java_outer_classname. However, the outer class will still be - // generated to contain the file's getDescriptor() method as well as any - // top-level extensions defined in the file. - optional bool java_multiple_files = 10 [default=false]; - - // This option does nothing. - optional bool java_generate_equals_and_hash = 20 [deprecated=true]; - - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. - optional bool java_string_check_utf8 = 27 [default=false]; - - - // Generated classes can be optimized for speed or code size. - enum OptimizeMode { - SPEED = 1; // Generate complete code for parsing, serialization, - // etc. - CODE_SIZE = 2; // Use ReflectionOps to implement these methods. - LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. - } - optional OptimizeMode optimize_for = 9 [default=SPEED]; - - // Sets the Go package where structs generated from this .proto will be - // placed. If omitted, the Go package will be derived from the following: - // - The basename of the package import path, if provided. - // - Otherwise, the package statement in the .proto file, if present. - // - Otherwise, the basename of the .proto file, without extension. - optional string go_package = 11; - - - - // Should generic services be generated in each language? "Generic" services - // are not specific to any particular RPC system. They are generated by the - // main code generators in each language (without additional plugins). - // Generic services were the only kind of service generation supported by - // early versions of google.protobuf. - // - // Generic services are now considered deprecated in favor of using plugins - // that generate code specific to your particular RPC system. Therefore, - // these default to false. Old code which depends on generic services should - // explicitly set them to true. - optional bool cc_generic_services = 16 [default=false]; - optional bool java_generic_services = 17 [default=false]; - optional bool py_generic_services = 18 [default=false]; - optional bool php_generic_services = 42 [default=false]; - - // Is this file deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for everything in the file, or it will be completely ignored; in the very - // least, this is a formalization for deprecating files. - optional bool deprecated = 23 [default=false]; - - // Enables the use of arenas for the proto messages in this file. This applies - // only to generated classes for C++. - optional bool cc_enable_arenas = 31 [default=false]; - - - // Sets the objective c class prefix which is prepended to all objective c - // generated classes from this .proto. There is no default. - optional string objc_class_prefix = 36; - - // Namespace for generated classes; defaults to the package. - optional string csharp_namespace = 37; - - // By default Swift generators will take the proto package and CamelCase it - // replacing '.' with underscore and use that to prefix the types/symbols - // defined. When this options is provided, they will use this value instead - // to prefix the types/symbols defined. - optional string swift_prefix = 39; - - // Sets the php class prefix which is prepended to all php generated classes - // from this .proto. Default is empty. - optional string php_class_prefix = 40; - - // Use this option to change the namespace of php generated classes. Default - // is empty. When this option is empty, the package name will be used for - // determining the namespace. - optional string php_namespace = 41; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; - - reserved 38; -} - -message MessageOptions { - // Set true to use the old proto1 MessageSet wire format for extensions. - // This is provided for backwards-compatibility with the MessageSet wire - // format. You should not use this for any other reason: It's less - // efficient, has fewer features, and is more complicated. - // - // The message must be defined exactly as follows: - // message Foo { - // option message_set_wire_format = true; - // extensions 4 to max; - // } - // Note that the message cannot have any defined fields; MessageSets only - // have extensions. - // - // All extensions of your type must be singular messages; e.g. they cannot - // be int32s, enums, or repeated messages. - // - // Because this is an option, the above two restrictions are not enforced by - // the protocol compiler. - optional bool message_set_wire_format = 1 [default=false]; - - // Disables the generation of the standard "descriptor()" accessor, which can - // conflict with a field of the same name. This is meant to make migration - // from proto1 easier; new code should avoid fields named "descriptor". - optional bool no_standard_descriptor_accessor = 2 [default=false]; - - // Is this message deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the message, or it will be completely ignored; in the very least, - // this is a formalization for deprecating messages. - optional bool deprecated = 3 [default=false]; - - // Whether the message is an automatically generated map entry type for the - // maps field. - // - // For maps fields: - // map map_field = 1; - // The parsed descriptor looks like: - // message MapFieldEntry { - // option map_entry = true; - // optional KeyType key = 1; - // optional ValueType value = 2; - // } - // repeated MapFieldEntry map_field = 1; - // - // Implementations may choose not to generate the map_entry=true message, but - // use a native map in the target language to hold the keys and values. - // The reflection APIs in such implementions still need to work as - // if the field is a repeated message field. - // - // NOTE: Do not set the option in .proto files. Always use the maps syntax - // instead. The option should only be implicitly set by the proto compiler - // parser. - optional bool map_entry = 7; - - reserved 8; // javalite_serializable - reserved 9; // javanano_as_lite - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message FieldOptions { - // The ctype option instructs the C++ code generator to use a different - // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - optional CType ctype = 1 [default = STRING]; - enum CType { - // Default mode. - STRING = 0; - - CORD = 1; - - STRING_PIECE = 2; - } - // The packed option can be enabled for repeated primitive fields to enable - // a more efficient representation on the wire. Rather than repeatedly - // writing the tag and type for each element, the entire array is encoded as - // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. - optional bool packed = 2; - - // The jstype option determines the JavaScript type used for values of the - // field. The option is permitted only for 64 bit integral and fixed types - // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - // is represented as JavaScript string, which avoids loss of precision that - // can happen when a large value is converted to a floating point JavaScript. - // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - // use the JavaScript "number" type. The behavior of the default option - // JS_NORMAL is implementation dependent. - // - // This option is an enum to permit additional types to be added, e.g. - // goog.math.Integer. - optional JSType jstype = 6 [default = JS_NORMAL]; - enum JSType { - // Use the default type. - JS_NORMAL = 0; - - // Use JavaScript strings. - JS_STRING = 1; - - // Use JavaScript numbers. - JS_NUMBER = 2; - } - - // Should this field be parsed lazily? Lazy applies only to message-type - // fields. It means that when the outer message is initially parsed, the - // inner message's contents will not be parsed but instead stored in encoded - // form. The inner message will actually be parsed when it is first accessed. - // - // This is only a hint. Implementations are free to choose whether to use - // eager or lazy parsing regardless of the value of this option. However, - // setting this option true suggests that the protocol author believes that - // using lazy parsing on this field is worth the additional bookkeeping - // overhead typically needed to implement it. - // - // This option does not affect the public interface of any generated code; - // all method signatures remain the same. Furthermore, thread-safety of the - // interface is not affected by this option; const methods remain safe to - // call from multiple threads concurrently, while non-const methods continue - // to require exclusive access. - // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. - optional bool lazy = 5 [default=false]; - - // Is this field deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for accessors, or it will be completely ignored; in the very least, this - // is a formalization for deprecating fields. - optional bool deprecated = 3 [default=false]; - - // For Google-internal migration only. Do not use. - optional bool weak = 10 [default=false]; - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; - - reserved 4; // removed jtype -} - -message OneofOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumOptions { - - // Set this option to true to allow mapping different tag names to the same - // value. - optional bool allow_alias = 2; - - // Is this enum deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum, or it will be completely ignored; in the very least, this - // is a formalization for deprecating enums. - optional bool deprecated = 3 [default=false]; - - reserved 5; // javanano_as_lite - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumValueOptions { - // Is this enum value deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum value, or it will be completely ignored; in the very least, - // this is a formalization for deprecating enum values. - optional bool deprecated = 1 [default=false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message ServiceOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this service deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the service, or it will be completely ignored; in the very least, - // this is a formalization for deprecating services. - optional bool deprecated = 33 [default=false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message MethodOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this method deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the method, or it will be completely ignored; in the very least, - // this is a formalization for deprecating methods. - optional bool deprecated = 33 [default=false]; - - // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - // or neither? HTTP based RPC implementation may choose GET verb for safe - // methods, and PUT verb for idempotent methods instead of the default POST. - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0; - NO_SIDE_EFFECTS = 1; // implies idempotent - IDEMPOTENT = 2; // idempotent, but may have side effects - } - optional IdempotencyLevel idempotency_level = - 34 [default=IDEMPOTENCY_UNKNOWN]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - - -// A message representing a option the parser does not recognize. This only -// appears in options protos created by the compiler::Parser class. -// DescriptorPool resolves these when building Descriptor objects. Therefore, -// options protos in descriptor objects (e.g. returned by Descriptor::options(), -// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions -// in them. -message UninterpretedOption { - // The name of the uninterpreted option. Each string represents a segment in - // a dot-separated name. is_extension is true iff a segment represents an - // extension (denoted with parentheses in options specs in .proto files). - // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - // "foo.(bar.baz).qux". - message NamePart { - required string name_part = 1; - required bool is_extension = 2; - } - repeated NamePart name = 2; - - // The value of the uninterpreted option, in whatever type the tokenizer - // identified it as during parsing. Exactly one of these should be set. - optional string identifier_value = 3; - optional uint64 positive_int_value = 4; - optional int64 negative_int_value = 5; - optional double double_value = 6; - optional bytes string_value = 7; - optional string aggregate_value = 8; -} - -// =================================================================== -// Optional source code info - -// Encapsulates information about the original source file from which a -// FileDescriptorProto was generated. -message SourceCodeInfo { - // A Location identifies a piece of source code in a .proto file which - // corresponds to a particular definition. This information is intended - // to be useful to IDEs, code indexers, documentation generators, and similar - // tools. - // - // For example, say we have a file like: - // message Foo { - // optional string foo = 1; - // } - // Let's look at just the field definition: - // optional string foo = 1; - // ^ ^^ ^^ ^ ^^^ - // a bc de f ghi - // We have the following locations: - // span path represents - // [a,i) [ 4, 0, 2, 0 ] The whole field definition. - // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - // - // Notes: - // - A location may refer to a repeated field itself (i.e. not to any - // particular index within it). This is used whenever a set of elements are - // logically enclosed in a single code segment. For example, an entire - // extend block (possibly containing multiple extension definitions) will - // have an outer location whose path refers to the "extensions" repeated - // field without an index. - // - Multiple locations may have the same path. This happens when a single - // logical declaration is spread out across multiple places. The most - // obvious example is the "extend" block again -- there may be multiple - // extend blocks in the same scope, each of which will have the same path. - // - A location's span is not always a subset of its parent's span. For - // example, the "extendee" of an extension declaration appears at the - // beginning of the "extend" block and is shared by all extensions within - // the block. - // - Just because a location's span is a subset of some other location's span - // does not mean that it is a descendent. For example, a "group" defines - // both a type and a field in a single declaration. Thus, the locations - // corresponding to the type and field and their components will overlap. - // - Code which tries to interpret locations should probably be designed to - // ignore those that it doesn't understand, as more types of locations could - // be recorded in the future. - repeated Location location = 1; - message Location { - // Identifies which part of the FileDescriptorProto was defined at this - // location. - // - // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: - // [ 4, 3, 2, 7, 1 ] - // refers to: - // file.message_type(3) // 4, 3 - // .field(7) // 2, 7 - // .name() // 1 - // This is because FileDescriptorProto.message_type has field number 4: - // repeated DescriptorProto message_type = 4; - // and DescriptorProto.field has field number 2: - // repeated FieldDescriptorProto field = 2; - // and FieldDescriptorProto.name has field number 1: - // optional string name = 1; - // - // Thus, the above path gives the location of a field name. If we removed - // the last element: - // [ 4, 3, 2, 7 ] - // this path refers to the whole field declaration (from the beginning - // of the label to the terminating semicolon). - repeated int32 path = 1 [packed=true]; - - // Always has exactly three or four elements: start line, start column, - // end line (optional, otherwise assumed same as start line), end column. - // These are packed into a single field for efficiency. Note that line - // and column numbers are zero-based -- typically you will want to add - // 1 to each before displaying to a user. - repeated int32 span = 2 [packed=true]; - - // If this SourceCodeInfo represents a complete declaration, these are any - // comments appearing before and after the declaration which appear to be - // attached to the declaration. - // - // A series of line comments appearing on consecutive lines, with no other - // tokens appearing on those lines, will be treated as a single comment. - // - // leading_detached_comments will keep paragraphs of comments that appear - // before (but not connected to) the current element. Each paragraph, - // separated by empty lines, will be one comment element in the repeated - // field. - // - // Only the comment content is provided; comment markers (e.g. //) are - // stripped out. For block comments, leading whitespace and an asterisk - // will be stripped from the beginning of each line other than the first. - // Newlines are included in the output. - // - // Examples: - // - // optional int32 foo = 1; // Comment attached to foo. - // // Comment attached to bar. - // optional int32 bar = 2; - // - // optional string baz = 3; - // // Comment attached to baz. - // // Another line attached to baz. - // - // // Comment attached to qux. - // // - // // Another line attached to qux. - // optional double qux = 4; - // - // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from - // // both. - // - // // Detached comment for corge paragraph 2. - // - // optional string corge = 5; - // /* Block comment attached - // * to corge. Leading asterisks - // * will be removed. */ - // /* Block comment attached to - // * grault. */ - // optional int32 grault = 6; - // - // // ignored detached comments. - optional string leading_comments = 3; - optional string trailing_comments = 4; - repeated string leading_detached_comments = 6; - } -} - -// Describes the relationship between generated code and its original source -// file. A GeneratedCodeInfo message is associated with only one generated -// source file, but may contain references to different source .proto files. -message GeneratedCodeInfo { - // An Annotation connects some span of text in generated code to an element - // of its generating .proto file. - repeated Annotation annotation = 1; - message Annotation { - // Identifies the element in the original source .proto file. This field - // is formatted the same as SourceCodeInfo.Location.path. - repeated int32 path = 1 [packed=true]; - - // Identifies the filesystem path to the original source .proto. - optional string source_file = 2; - - // Identifies the starting offset in bytes in the generated code - // that relates to the identified object. - optional int32 begin = 3; - - // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past - // the last relevant byte (so the length of the text = end - begin). - optional int32 end = 4; - } -} diff --git a/vendor/github.com/golang/protobuf/ptypes/any.go b/vendor/github.com/golang/protobuf/ptypes/any.go index b2af97f..85f9f57 100644 --- a/vendor/github.com/golang/protobuf/ptypes/any.go +++ b/vendor/github.com/golang/protobuf/ptypes/any.go @@ -1,139 +1,179 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package ptypes -// This file implements functions to marshal proto.Message to/from -// google.protobuf.Any message. - import ( "fmt" - "reflect" "strings" "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/any" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + anypb "github.com/golang/protobuf/ptypes/any" ) -const googleApis = "type.googleapis.com/" +const urlPrefix = "type.googleapis.com/" -// AnyMessageName returns the name of the message contained in a google.protobuf.Any message. +// AnyMessageName returns the message name contained in an anypb.Any message. +// Most type assertions should use the Is function instead. // -// Note that regular type assertions should be done using the Is -// function. AnyMessageName is provided for less common use cases like filtering a -// sequence of Any messages based on a set of allowed message type names. -func AnyMessageName(any *any.Any) (string, error) { +// Deprecated: Call the any.MessageName method instead. +func AnyMessageName(any *anypb.Any) (string, error) { + name, err := anyMessageName(any) + return string(name), err +} +func anyMessageName(any *anypb.Any) (protoreflect.FullName, error) { if any == nil { return "", fmt.Errorf("message is nil") } - slash := strings.LastIndex(any.TypeUrl, "/") - if slash < 0 { + name := protoreflect.FullName(any.TypeUrl) + if i := strings.LastIndex(any.TypeUrl, "/"); i >= 0 { + name = name[i+len("/"):] + } + if !name.IsValid() { return "", fmt.Errorf("message type url %q is invalid", any.TypeUrl) } - return any.TypeUrl[slash+1:], nil + return name, nil } -// MarshalAny takes the protocol buffer and encodes it into google.protobuf.Any. -func MarshalAny(pb proto.Message) (*any.Any, error) { - value, err := proto.Marshal(pb) +// MarshalAny marshals the given message m into an anypb.Any message. +// +// Deprecated: Call the anypb.New function instead. +func MarshalAny(m proto.Message) (*anypb.Any, error) { + switch dm := m.(type) { + case DynamicAny: + m = dm.Message + case *DynamicAny: + if dm == nil { + return nil, proto.ErrNil + } + m = dm.Message + } + b, err := proto.Marshal(m) if err != nil { return nil, err } - return &any.Any{TypeUrl: googleApis + proto.MessageName(pb), Value: value}, nil + return &anypb.Any{TypeUrl: urlPrefix + proto.MessageName(m), Value: b}, nil } -// DynamicAny is a value that can be passed to UnmarshalAny to automatically -// allocate a proto.Message for the type specified in a google.protobuf.Any -// message. The allocated message is stored in the embedded proto.Message. -// -// Example: +// Empty returns a new message of the type specified in an anypb.Any message. +// It returns protoregistry.NotFound if the corresponding message type could not +// be resolved in the global registry. // -// var x ptypes.DynamicAny -// if err := ptypes.UnmarshalAny(a, &x); err != nil { ... } -// fmt.Printf("unmarshaled message: %v", x.Message) -type DynamicAny struct { - proto.Message -} - -// Empty returns a new proto.Message of the type specified in a -// google.protobuf.Any message. It returns an error if corresponding message -// type isn't linked in. -func Empty(any *any.Any) (proto.Message, error) { - aname, err := AnyMessageName(any) +// Deprecated: Use protoregistry.GlobalTypes.FindMessageByName instead +// to resolve the message name and create a new instance of it. +func Empty(any *anypb.Any) (proto.Message, error) { + name, err := anyMessageName(any) if err != nil { return nil, err } - - t := proto.MessageType(aname) - if t == nil { - return nil, fmt.Errorf("any: message type %q isn't linked in", aname) + mt, err := protoregistry.GlobalTypes.FindMessageByName(name) + if err != nil { + return nil, err } - return reflect.New(t.Elem()).Interface().(proto.Message), nil + return proto.MessageV1(mt.New().Interface()), nil } -// UnmarshalAny parses the protocol buffer representation in a google.protobuf.Any -// message and places the decoded result in pb. It returns an error if type of -// contents of Any message does not match type of pb message. +// UnmarshalAny unmarshals the encoded value contained in the anypb.Any message +// into the provided message m. It returns an error if the target message +// does not match the type in the Any message or if an unmarshal error occurs. +// +// The target message m may be a *DynamicAny message. If the underlying message +// type could not be resolved, then this returns protoregistry.NotFound. // -// pb can be a proto.Message, or a *DynamicAny. -func UnmarshalAny(any *any.Any, pb proto.Message) error { - if d, ok := pb.(*DynamicAny); ok { - if d.Message == nil { +// Deprecated: Call the any.UnmarshalTo method instead. +func UnmarshalAny(any *anypb.Any, m proto.Message) error { + if dm, ok := m.(*DynamicAny); ok { + if dm.Message == nil { var err error - d.Message, err = Empty(any) + dm.Message, err = Empty(any) if err != nil { return err } } - return UnmarshalAny(any, d.Message) + m = dm.Message } - aname, err := AnyMessageName(any) + anyName, err := AnyMessageName(any) if err != nil { return err } - - mname := proto.MessageName(pb) - if aname != mname { - return fmt.Errorf("mismatched message type: got %q want %q", aname, mname) + msgName := proto.MessageName(m) + if anyName != msgName { + return fmt.Errorf("mismatched message type: got %q want %q", anyName, msgName) } - return proto.Unmarshal(any.Value, pb) + return proto.Unmarshal(any.Value, m) } -// Is returns true if any value contains a given message type. -func Is(any *any.Any, pb proto.Message) bool { - aname, err := AnyMessageName(any) - if err != nil { +// Is reports whether the Any message contains a message of the specified type. +// +// Deprecated: Call the any.MessageIs method instead. +func Is(any *anypb.Any, m proto.Message) bool { + if any == nil || m == nil { return false } + name := proto.MessageName(m) + if !strings.HasSuffix(any.TypeUrl, name) { + return false + } + return len(any.TypeUrl) == len(name) || any.TypeUrl[len(any.TypeUrl)-len(name)-1] == '/' +} + +// DynamicAny is a value that can be passed to UnmarshalAny to automatically +// allocate a proto.Message for the type specified in an anypb.Any message. +// The allocated message is stored in the embedded proto.Message. +// +// Example: +// var x ptypes.DynamicAny +// if err := ptypes.UnmarshalAny(a, &x); err != nil { ... } +// fmt.Printf("unmarshaled message: %v", x.Message) +// +// Deprecated: Use the any.UnmarshalNew method instead to unmarshal +// the any message contents into a new instance of the underlying message. +type DynamicAny struct{ proto.Message } + +func (m DynamicAny) String() string { + if m.Message == nil { + return "" + } + return m.Message.String() +} +func (m DynamicAny) Reset() { + if m.Message == nil { + return + } + m.Message.Reset() +} +func (m DynamicAny) ProtoMessage() { + return +} +func (m DynamicAny) ProtoReflect() protoreflect.Message { + if m.Message == nil { + return nil + } + return dynamicAny{proto.MessageReflect(m.Message)} +} + +type dynamicAny struct{ protoreflect.Message } - return aname == proto.MessageName(pb) +func (m dynamicAny) Type() protoreflect.MessageType { + return dynamicAnyType{m.Message.Type()} +} +func (m dynamicAny) New() protoreflect.Message { + return dynamicAnyType{m.Message.Type()}.New() +} +func (m dynamicAny) Interface() protoreflect.ProtoMessage { + return DynamicAny{proto.MessageV1(m.Message.Interface())} +} + +type dynamicAnyType struct{ protoreflect.MessageType } + +func (t dynamicAnyType) New() protoreflect.Message { + return dynamicAny{t.MessageType.New()} +} +func (t dynamicAnyType) Zero() protoreflect.Message { + return dynamicAny{t.MessageType.Zero()} } diff --git a/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go b/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go index f346017..0ef27d3 100644 --- a/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go @@ -1,178 +1,62 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/any.proto +// source: github.com/golang/protobuf/ptypes/any/any.proto -/* -Package any is a generated protocol buffer package. - -It is generated from these files: - google/protobuf/any.proto - -It has these top-level messages: - Any -*/ package any -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := ptypes.MarshalAny(foo) -// ... -// foo := &pb.Foo{} -// if err := ptypes.UnmarshalAny(any, foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -type Any struct { - // A URL/resource name whose content describes the type of the - // serialized protocol buffer message. - // - // For URLs which use the scheme `http`, `https`, or no scheme, the - // following restrictions and interpretations apply: - // - // * If no scheme is provided, `https` is assumed. - // * The last segment of the URL's path must represent the fully - // qualified name of the type (as in `path/google.protobuf.Duration`). - // The name should be in a canonical form (e.g., leading "." is - // not accepted). - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl" json:"type_url,omitempty"` - // Must be a valid serialized protocol buffer of the above specified type. - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" +) + +// Symbols defined in public import of google/protobuf/any.proto. + +type Any = anypb.Any + +var File_github_com_golang_protobuf_ptypes_any_any_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_any_any_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x61, 0x6e, 0x79, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x2b, 0x5a, 0x29, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, + 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x61, 0x6e, 0x79, 0x3b, 0x61, 0x6e, 0x79, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func (m *Any) Reset() { *m = Any{} } -func (m *Any) String() string { return proto.CompactTextString(m) } -func (*Any) ProtoMessage() {} -func (*Any) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (*Any) XXX_WellKnownType() string { return "Any" } - -func (m *Any) GetTypeUrl() string { - if m != nil { - return m.TypeUrl - } - return "" +var file_github_com_golang_protobuf_ptypes_any_any_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_any_any_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (m *Any) GetValue() []byte { - if m != nil { - return m.Value +func init() { file_github_com_golang_protobuf_ptypes_any_any_proto_init() } +func file_github_com_golang_protobuf_ptypes_any_any_proto_init() { + if File_github_com_golang_protobuf_ptypes_any_any_proto != nil { + return } - return nil -} - -func init() { - proto.RegisterType((*Any)(nil), "google.protobuf.Any") -} - -func init() { proto.RegisterFile("google/protobuf/any.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 185 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0xd4, - 0x03, 0x73, 0x84, 0xf8, 0x21, 0x52, 0x7a, 0x30, 0x29, 0x25, 0x33, 0x2e, 0x66, 0xc7, 0xbc, 0x4a, - 0x21, 0x49, 0x2e, 0x8e, 0x92, 0xca, 0x82, 0xd4, 0xf8, 0xd2, 0xa2, 0x1c, 0x09, 0x46, 0x05, 0x46, - 0x0d, 0xce, 0x20, 0x76, 0x10, 0x3f, 0xb4, 0x28, 0x47, 0x48, 0x84, 0x8b, 0xb5, 0x2c, 0x31, 0xa7, - 0x34, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0xc2, 0x71, 0xca, 0xe7, 0x12, 0x4e, 0xce, - 0xcf, 0xd5, 0x43, 0x33, 0xce, 0x89, 0xc3, 0x31, 0xaf, 0x32, 0x00, 0xc4, 0x09, 0x60, 0x8c, 0x52, - 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, - 0x4b, 0x47, 0xb8, 0xa8, 0x00, 0x64, 0x7a, 0x31, 0xc8, 0x61, 0x8b, 0x98, 0x98, 0xdd, 0x03, 0x9c, - 0x56, 0x31, 0xc9, 0xb9, 0x43, 0x8c, 0x0a, 0x80, 0x2a, 0xd1, 0x0b, 0x4f, 0xcd, 0xc9, 0xf1, 0xce, - 0xcb, 0x2f, 0xcf, 0x0b, 0x01, 0x29, 0x4d, 0x62, 0x03, 0xeb, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, - 0xff, 0x13, 0xf8, 0xe8, 0x42, 0xdd, 0x00, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_any_any_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_any_any_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_any_any_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_any_any_proto = out.File + file_github_com_golang_protobuf_ptypes_any_any_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_any_any_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_any_any_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/any/any.proto b/vendor/github.com/golang/protobuf/ptypes/any/any.proto deleted file mode 100644 index c748667..0000000 --- a/vendor/github.com/golang/protobuf/ptypes/any/any.proto +++ /dev/null @@ -1,149 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "github.com/golang/protobuf/ptypes/any"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "AnyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := ptypes.MarshalAny(foo) -// ... -// foo := &pb.Foo{} -// if err := ptypes.UnmarshalAny(any, foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -message Any { - // A URL/resource name whose content describes the type of the - // serialized protocol buffer message. - // - // For URLs which use the scheme `http`, `https`, or no scheme, the - // following restrictions and interpretations apply: - // - // * If no scheme is provided, `https` is assumed. - // * The last segment of the URL's path must represent the fully - // qualified name of the type (as in `path/google.protobuf.Duration`). - // The name should be in a canonical form (e.g., leading "." is - // not accepted). - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - string type_url = 1; - - // Must be a valid serialized protocol buffer of the above specified type. - bytes value = 2; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/doc.go b/vendor/github.com/golang/protobuf/ptypes/doc.go index c0d595d..d3c3325 100644 --- a/vendor/github.com/golang/protobuf/ptypes/doc.go +++ b/vendor/github.com/golang/protobuf/ptypes/doc.go @@ -1,35 +1,10 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. -/* -Package ptypes contains code for interacting with well-known types. -*/ +// Package ptypes provides functionality for interacting with well-known types. +// +// Deprecated: Well-known types have specialized functionality directly +// injected into the generated packages for each message type. +// See the deprecation notice for each function for the suggested alternative. package ptypes diff --git a/vendor/github.com/golang/protobuf/ptypes/duration.go b/vendor/github.com/golang/protobuf/ptypes/duration.go index 65cb0f8..b2b55dd 100644 --- a/vendor/github.com/golang/protobuf/ptypes/duration.go +++ b/vendor/github.com/golang/protobuf/ptypes/duration.go @@ -1,102 +1,76 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package ptypes -// This file implements conversions between google.protobuf.Duration -// and time.Duration. - import ( "errors" "fmt" "time" - durpb "github.com/golang/protobuf/ptypes/duration" + durationpb "github.com/golang/protobuf/ptypes/duration" ) +// Range of google.protobuf.Duration as specified in duration.proto. +// This is about 10,000 years in seconds. const ( - // Range of a durpb.Duration in seconds, as specified in - // google/protobuf/duration.proto. This is about 10,000 years in seconds. maxSeconds = int64(10000 * 365.25 * 24 * 60 * 60) minSeconds = -maxSeconds ) -// validateDuration determines whether the durpb.Duration is valid according to the -// definition in google/protobuf/duration.proto. A valid durpb.Duration -// may still be too large to fit into a time.Duration (the range of durpb.Duration -// is about 10,000 years, and the range of time.Duration is about 290). -func validateDuration(d *durpb.Duration) error { - if d == nil { - return errors.New("duration: nil Duration") - } - if d.Seconds < minSeconds || d.Seconds > maxSeconds { - return fmt.Errorf("duration: %v: seconds out of range", d) - } - if d.Nanos <= -1e9 || d.Nanos >= 1e9 { - return fmt.Errorf("duration: %v: nanos out of range", d) - } - // Seconds and Nanos must have the same sign, unless d.Nanos is zero. - if (d.Seconds < 0 && d.Nanos > 0) || (d.Seconds > 0 && d.Nanos < 0) { - return fmt.Errorf("duration: %v: seconds and nanos have different signs", d) - } - return nil -} - -// Duration converts a durpb.Duration to a time.Duration. Duration -// returns an error if the durpb.Duration is invalid or is too large to be -// represented in a time.Duration. -func Duration(p *durpb.Duration) (time.Duration, error) { - if err := validateDuration(p); err != nil { +// Duration converts a durationpb.Duration to a time.Duration. +// Duration returns an error if dur is invalid or overflows a time.Duration. +// +// Deprecated: Call the dur.AsDuration and dur.CheckValid methods instead. +func Duration(dur *durationpb.Duration) (time.Duration, error) { + if err := validateDuration(dur); err != nil { return 0, err } - d := time.Duration(p.Seconds) * time.Second - if int64(d/time.Second) != p.Seconds { - return 0, fmt.Errorf("duration: %v is out of range for time.Duration", p) + d := time.Duration(dur.Seconds) * time.Second + if int64(d/time.Second) != dur.Seconds { + return 0, fmt.Errorf("duration: %v is out of range for time.Duration", dur) } - if p.Nanos != 0 { - d += time.Duration(p.Nanos) - if (d < 0) != (p.Nanos < 0) { - return 0, fmt.Errorf("duration: %v is out of range for time.Duration", p) + if dur.Nanos != 0 { + d += time.Duration(dur.Nanos) * time.Nanosecond + if (d < 0) != (dur.Nanos < 0) { + return 0, fmt.Errorf("duration: %v is out of range for time.Duration", dur) } } return d, nil } -// DurationProto converts a time.Duration to a durpb.Duration. -func DurationProto(d time.Duration) *durpb.Duration { +// DurationProto converts a time.Duration to a durationpb.Duration. +// +// Deprecated: Call the durationpb.New function instead. +func DurationProto(d time.Duration) *durationpb.Duration { nanos := d.Nanoseconds() secs := nanos / 1e9 nanos -= secs * 1e9 - return &durpb.Duration{ - Seconds: secs, + return &durationpb.Duration{ + Seconds: int64(secs), Nanos: int32(nanos), } } + +// validateDuration determines whether the durationpb.Duration is valid +// according to the definition in google/protobuf/duration.proto. +// A valid durpb.Duration may still be too large to fit into a time.Duration +// Note that the range of durationpb.Duration is about 10,000 years, +// while the range of time.Duration is about 290 years. +func validateDuration(dur *durationpb.Duration) error { + if dur == nil { + return errors.New("duration: nil Duration") + } + if dur.Seconds < minSeconds || dur.Seconds > maxSeconds { + return fmt.Errorf("duration: %v: seconds out of range", dur) + } + if dur.Nanos <= -1e9 || dur.Nanos >= 1e9 { + return fmt.Errorf("duration: %v: nanos out of range", dur) + } + // Seconds and Nanos must have the same sign, unless d.Nanos is zero. + if (dur.Seconds < 0 && dur.Nanos > 0) || (dur.Seconds > 0 && dur.Nanos < 0) { + return fmt.Errorf("duration: %v: seconds and nanos have different signs", dur) + } + return nil +} diff --git a/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go b/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go index b2410a0..d0079ee 100644 --- a/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/duration/duration.pb.go @@ -1,144 +1,63 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/duration.proto +// source: github.com/golang/protobuf/ptypes/duration/duration.proto -/* -Package duration is a generated protocol buffer package. - -It is generated from these files: - google/protobuf/duration.proto - -It has these top-level messages: - Duration -*/ package duration -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (durations.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -// -type Duration struct { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - Nanos int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + reflect "reflect" +) + +// Symbols defined in public import of google/protobuf/duration.proto. + +type Duration = durationpb.Duration + +var File_github_com_golang_protobuf_ptypes_duration_duration_proto protoreflect.FileDescriptor + +var file_github_com_golang_protobuf_ptypes_duration_duration_proto_rawDesc = []byte{ + 0x0a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x35, 0x5a, 0x33, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *Duration) Reset() { *m = Duration{} } -func (m *Duration) String() string { return proto.CompactTextString(m) } -func (*Duration) ProtoMessage() {} -func (*Duration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (*Duration) XXX_WellKnownType() string { return "Duration" } - -func (m *Duration) GetSeconds() int64 { - if m != nil { - return m.Seconds - } - return 0 +var file_github_com_golang_protobuf_ptypes_duration_duration_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_duration_duration_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func (m *Duration) GetNanos() int32 { - if m != nil { - return m.Nanos +func init() { file_github_com_golang_protobuf_ptypes_duration_duration_proto_init() } +func file_github_com_golang_protobuf_ptypes_duration_duration_proto_init() { + if File_github_com_golang_protobuf_ptypes_duration_duration_proto != nil { + return } - return 0 -} - -func init() { - proto.RegisterType((*Duration)(nil), "google.protobuf.Duration") -} - -func init() { proto.RegisterFile("google/protobuf/duration.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 190 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0x29, 0x2d, 0x4a, - 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x03, 0x8b, 0x08, 0xf1, 0x43, 0xe4, 0xf5, 0x60, 0xf2, 0x4a, 0x56, - 0x5c, 0x1c, 0x2e, 0x50, 0x25, 0x42, 0x12, 0x5c, 0xec, 0xc5, 0xa9, 0xc9, 0xf9, 0x79, 0x29, 0xc5, - 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x30, 0xae, 0x90, 0x08, 0x17, 0x6b, 0x5e, 0x62, 0x5e, - 0x7e, 0xb1, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x6b, 0x10, 0x84, 0xe3, 0x54, 0xc3, 0x25, 0x9c, 0x9c, - 0x9f, 0xab, 0x87, 0x66, 0xa4, 0x13, 0x2f, 0xcc, 0xc0, 0x00, 0x90, 0x48, 0x00, 0x63, 0x94, 0x56, - 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, - 0x3a, 0xc2, 0x7d, 0x05, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x70, 0x67, 0xfe, 0x60, 0x64, 0x5c, 0xc4, - 0xc4, 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, 0x1d, 0x62, 0x6e, 0x00, 0x54, 0xa9, 0x5e, 0x78, - 0x6a, 0x4e, 0x8e, 0x77, 0x5e, 0x7e, 0x79, 0x5e, 0x08, 0x48, 0x4b, 0x12, 0x1b, 0xd8, 0x0c, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x84, 0x30, 0xff, 0xf3, 0x00, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_duration_duration_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_duration_duration_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_duration_duration_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_duration_duration_proto = out.File + file_github_com_golang_protobuf_ptypes_duration_duration_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_duration_duration_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_duration_duration_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto b/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto deleted file mode 100644 index 975fce4..0000000 --- a/vendor/github.com/golang/protobuf/ptypes/duration/duration.proto +++ /dev/null @@ -1,117 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/duration"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DurationProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (durations.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -// -message Duration { - - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - int64 seconds = 1; - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - int32 nanos = 2; -} diff --git a/vendor/github.com/golang/protobuf/ptypes/regen.sh b/vendor/github.com/golang/protobuf/ptypes/regen.sh deleted file mode 100644 index b50a941..0000000 --- a/vendor/github.com/golang/protobuf/ptypes/regen.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -e -# -# This script fetches and rebuilds the "well-known types" protocol buffers. -# To run this you will need protoc and goprotobuf installed; -# see https://github.com/golang/protobuf for instructions. -# You also need Go and Git installed. - -PKG=github.com/golang/protobuf/ptypes -UPSTREAM=https://github.com/google/protobuf -UPSTREAM_SUBDIR=src/google/protobuf -PROTO_FILES=(any duration empty struct timestamp wrappers) - -function die() { - echo 1>&2 $* - exit 1 -} - -# Sanity check that the right tools are accessible. -for tool in go git protoc protoc-gen-go; do - q=$(which $tool) || die "didn't find $tool" - echo 1>&2 "$tool: $q" -done - -tmpdir=$(mktemp -d -t regen-wkt.XXXXXX) -trap 'rm -rf $tmpdir' EXIT - -echo -n 1>&2 "finding package dir... " -pkgdir=$(go list -f '{{.Dir}}' $PKG) -echo 1>&2 $pkgdir -base=$(echo $pkgdir | sed "s,/$PKG\$,,") -echo 1>&2 "base: $base" -cd "$base" - -echo 1>&2 "fetching latest protos... " -git clone -q $UPSTREAM $tmpdir - -for file in ${PROTO_FILES[@]}; do - echo 1>&2 "* $file" - protoc --go_out=. -I$tmpdir/src $tmpdir/src/google/protobuf/$file.proto || die - cp $tmpdir/src/google/protobuf/$file.proto $PKG/$file -done - -echo 1>&2 "All OK" diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp.go b/vendor/github.com/golang/protobuf/ptypes/timestamp.go index 47f10db..8368a3f 100644 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp.go +++ b/vendor/github.com/golang/protobuf/ptypes/timestamp.go @@ -1,46 +1,18 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2016 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. package ptypes -// This file implements operations on google.protobuf.Timestamp. - import ( "errors" "fmt" "time" - tspb "github.com/golang/protobuf/ptypes/timestamp" + timestamppb "github.com/golang/protobuf/ptypes/timestamp" ) +// Range of google.protobuf.Duration as specified in timestamp.proto. const ( // Seconds field of the earliest valid Timestamp. // This is time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC).Unix(). @@ -50,44 +22,20 @@ const ( maxValidSeconds = 253402300800 ) -// validateTimestamp determines whether a Timestamp is valid. -// A valid timestamp represents a time in the range -// [0001-01-01, 10000-01-01) and has a Nanos field -// in the range [0, 1e9). -// -// If the Timestamp is valid, validateTimestamp returns nil. -// Otherwise, it returns an error that describes -// the problem. -// -// Every valid Timestamp can be represented by a time.Time, but the converse is not true. -func validateTimestamp(ts *tspb.Timestamp) error { - if ts == nil { - return errors.New("timestamp: nil Timestamp") - } - if ts.Seconds < minValidSeconds { - return fmt.Errorf("timestamp: %v before 0001-01-01", ts) - } - if ts.Seconds >= maxValidSeconds { - return fmt.Errorf("timestamp: %v after 10000-01-01", ts) - } - if ts.Nanos < 0 || ts.Nanos >= 1e9 { - return fmt.Errorf("timestamp: %v: nanos not in range [0, 1e9)", ts) - } - return nil -} - -// Timestamp converts a google.protobuf.Timestamp proto to a time.Time. +// Timestamp converts a timestamppb.Timestamp to a time.Time. // It returns an error if the argument is invalid. // -// Unlike most Go functions, if Timestamp returns an error, the first return value -// is not the zero time.Time. Instead, it is the value obtained from the +// Unlike most Go functions, if Timestamp returns an error, the first return +// value is not the zero time.Time. Instead, it is the value obtained from the // time.Unix function when passed the contents of the Timestamp, in the UTC // locale. This may or may not be a meaningful time; many invalid Timestamps // do map to valid time.Times. // // A nil Timestamp returns an error. The first return value in that case is // undefined. -func Timestamp(ts *tspb.Timestamp) (time.Time, error) { +// +// Deprecated: Call the ts.AsTime and ts.CheckValid methods instead. +func Timestamp(ts *timestamppb.Timestamp) (time.Time, error) { // Don't return the zero value on error, because corresponds to a valid // timestamp. Instead return whatever time.Unix gives us. var t time.Time @@ -100,7 +48,9 @@ func Timestamp(ts *tspb.Timestamp) (time.Time, error) { } // TimestampNow returns a google.protobuf.Timestamp for the current time. -func TimestampNow() *tspb.Timestamp { +// +// Deprecated: Call the timestamppb.Now function instead. +func TimestampNow() *timestamppb.Timestamp { ts, err := TimestampProto(time.Now()) if err != nil { panic("ptypes: time.Now() out of Timestamp range") @@ -110,12 +60,12 @@ func TimestampNow() *tspb.Timestamp { // TimestampProto converts the time.Time to a google.protobuf.Timestamp proto. // It returns an error if the resulting Timestamp is invalid. -func TimestampProto(t time.Time) (*tspb.Timestamp, error) { - seconds := t.Unix() - nanos := int32(t.Sub(time.Unix(seconds, 0))) - ts := &tspb.Timestamp{ - Seconds: seconds, - Nanos: nanos, +// +// Deprecated: Call the timestamppb.New function instead. +func TimestampProto(t time.Time) (*timestamppb.Timestamp, error) { + ts := ×tamppb.Timestamp{ + Seconds: t.Unix(), + Nanos: int32(t.Nanosecond()), } if err := validateTimestamp(ts); err != nil { return nil, err @@ -123,12 +73,40 @@ func TimestampProto(t time.Time) (*tspb.Timestamp, error) { return ts, nil } -// TimestampString returns the RFC 3339 string for valid Timestamps. For invalid -// Timestamps, it returns an error message in parentheses. -func TimestampString(ts *tspb.Timestamp) string { +// TimestampString returns the RFC 3339 string for valid Timestamps. +// For invalid Timestamps, it returns an error message in parentheses. +// +// Deprecated: Call the ts.AsTime method instead, +// followed by a call to the Format method on the time.Time value. +func TimestampString(ts *timestamppb.Timestamp) string { t, err := Timestamp(ts) if err != nil { return fmt.Sprintf("(%v)", err) } return t.Format(time.RFC3339Nano) } + +// validateTimestamp determines whether a Timestamp is valid. +// A valid timestamp represents a time in the range [0001-01-01, 10000-01-01) +// and has a Nanos field in the range [0, 1e9). +// +// If the Timestamp is valid, validateTimestamp returns nil. +// Otherwise, it returns an error that describes the problem. +// +// Every valid Timestamp can be represented by a time.Time, +// but the converse is not true. +func validateTimestamp(ts *timestamppb.Timestamp) error { + if ts == nil { + return errors.New("timestamp: nil Timestamp") + } + if ts.Seconds < minValidSeconds { + return fmt.Errorf("timestamp: %v before 0001-01-01", ts) + } + if ts.Seconds >= maxValidSeconds { + return fmt.Errorf("timestamp: %v after 10000-01-01", ts) + } + if ts.Nanos < 0 || ts.Nanos >= 1e9 { + return fmt.Errorf("timestamp: %v: nanos not in range [0, 1e9)", ts) + } + return nil +} diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go b/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go index e23e4a2..a76f807 100644 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go +++ b/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go @@ -1,160 +1,64 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: google/protobuf/timestamp.proto +// source: github.com/golang/protobuf/ptypes/timestamp/timestamp.proto -/* -Package timestamp is a generated protocol buffer package. - -It is generated from these files: - google/protobuf/timestamp.proto - -It has these top-level messages: - Timestamp -*/ package timestamp -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -// A Timestamp represents a point in time independent of any time zone -// or calendar, represented as seconds and fractions of seconds at -// nanosecond resolution in UTC Epoch time. It is encoded using the -// Proleptic Gregorian Calendar which extends the Gregorian calendar -// backwards to year one. It is encoded assuming all minutes are 60 -// seconds long, i.e. leap seconds are "smeared" so that no leap second -// table is needed for interpretation. Range is from -// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. -// By restricting to that range, we ensure that we can convert to -// and from RFC 3339 date strings. -// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// -// Example 5: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required, though only UTC (as indicated by "Z") is presently supported. -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) -// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one -// can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) -// to obtain a formatter capable of generating timestamps in this format. -// -// -type Timestamp struct { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - Nanos int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` -} +// Symbols defined in public import of google/protobuf/timestamp.proto. -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (m *Timestamp) String() string { return proto.CompactTextString(m) } -func (*Timestamp) ProtoMessage() {} -func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (*Timestamp) XXX_WellKnownType() string { return "Timestamp" } +type Timestamp = timestamppb.Timestamp -func (m *Timestamp) GetSeconds() int64 { - if m != nil { - return m.Seconds - } - return 0 -} +var File_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto protoreflect.FileDescriptor -func (m *Timestamp) GetNanos() int32 { - if m != nil { - return m.Nanos - } - return 0 +var file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_rawDesc = []byte{ + 0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x37, + 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x70, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x3b, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x50, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } -func init() { - proto.RegisterType((*Timestamp)(nil), "google.protobuf.Timestamp") +var file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_goTypes = []interface{}{} +var file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func init() { proto.RegisterFile("google/protobuf/timestamp.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 191 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0xc9, 0xcc, 0x4d, - 0x2d, 0x2e, 0x49, 0xcc, 0x2d, 0xd0, 0x03, 0x0b, 0x09, 0xf1, 0x43, 0x14, 0xe8, 0xc1, 0x14, 0x28, - 0x59, 0x73, 0x71, 0x86, 0xc0, 0xd4, 0x08, 0x49, 0x70, 0xb1, 0x17, 0xa7, 0x26, 0xe7, 0xe7, 0xa5, - 0x14, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0xc1, 0xb8, 0x42, 0x22, 0x5c, 0xac, 0x79, 0x89, - 0x79, 0xf9, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x10, 0x8e, 0x53, 0x1d, 0x97, 0x70, - 0x72, 0x7e, 0xae, 0x1e, 0x9a, 0x99, 0x4e, 0x7c, 0x70, 0x13, 0x03, 0x40, 0x42, 0x01, 0x8c, 0x51, - 0xda, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0x39, 0x89, - 0x79, 0xe9, 0x08, 0x27, 0x16, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x23, 0x5c, 0xfa, 0x83, 0x91, 0x71, - 0x11, 0x13, 0xb3, 0x7b, 0x80, 0xd3, 0x2a, 0x26, 0x39, 0x77, 0x88, 0xc9, 0x01, 0x50, 0xb5, 0x7a, - 0xe1, 0xa9, 0x39, 0x39, 0xde, 0x79, 0xf9, 0xe5, 0x79, 0x21, 0x20, 0x3d, 0x49, 0x6c, 0x60, 0x43, - 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x77, 0x4a, 0x07, 0xf7, 0x00, 0x00, 0x00, +func init() { file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init() } +func file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init() { + if File_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_goTypes, + DependencyIndexes: file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_depIdxs, + }.Build() + File_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto = out.File + file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_rawDesc = nil + file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_goTypes = nil + file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_depIdxs = nil } diff --git a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto b/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto deleted file mode 100644 index b7cbd17..0000000 --- a/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.proto +++ /dev/null @@ -1,133 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/timestamp"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TimestampProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Timestamp represents a point in time independent of any time zone -// or calendar, represented as seconds and fractions of seconds at -// nanosecond resolution in UTC Epoch time. It is encoded using the -// Proleptic Gregorian Calendar which extends the Gregorian calendar -// backwards to year one. It is encoded assuming all minutes are 60 -// seconds long, i.e. leap seconds are "smeared" so that no leap second -// table is needed for interpretation. Range is from -// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. -// By restricting to that range, we ensure that we can convert to -// and from RFC 3339 date strings. -// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// -// Example 5: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required, though only UTC (as indicated by "Z") is presently supported. -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) -// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one -// can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()) -// to obtain a formatter capable of generating timestamps in this format. -// -// -message Timestamp { - - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - int32 nanos = 2; -} diff --git a/vendor/github.com/golang/snappy/AUTHORS b/vendor/github.com/golang/snappy/AUTHORS index bcfa195..203e84e 100644 --- a/vendor/github.com/golang/snappy/AUTHORS +++ b/vendor/github.com/golang/snappy/AUTHORS @@ -8,8 +8,10 @@ # Please keep the list sorted. +Amazon.com, Inc Damian Gryski Google Inc. Jan Mercl <0xjnml@gmail.com> +Klaus Post Rodolfo Carvalho Sebastien Binet diff --git a/vendor/github.com/golang/snappy/CONTRIBUTORS b/vendor/github.com/golang/snappy/CONTRIBUTORS index 931ae31..d991473 100644 --- a/vendor/github.com/golang/snappy/CONTRIBUTORS +++ b/vendor/github.com/golang/snappy/CONTRIBUTORS @@ -28,7 +28,9 @@ Damian Gryski Jan Mercl <0xjnml@gmail.com> +Jonathan Swinney Kai Backman +Klaus Post Marc-Antoine Ruel Nigel Tao Rob Pike diff --git a/vendor/github.com/golang/snappy/decode.go b/vendor/github.com/golang/snappy/decode.go index 72efb03..f1e04b1 100644 --- a/vendor/github.com/golang/snappy/decode.go +++ b/vendor/github.com/golang/snappy/decode.go @@ -52,6 +52,8 @@ const ( // Otherwise, a newly allocated slice will be returned. // // The dst and src must not overlap. It is valid to pass a nil dst. +// +// Decode handles the Snappy block format, not the Snappy stream format. func Decode(dst, src []byte) ([]byte, error) { dLen, s, err := decodedLen(src) if err != nil { @@ -83,6 +85,8 @@ func NewReader(r io.Reader) *Reader { } // Reader is an io.Reader that can read Snappy-compressed bytes. +// +// Reader handles the Snappy stream format, not the Snappy block format. type Reader struct { r io.Reader err error diff --git a/vendor/github.com/golang/snappy/decode_arm64.s b/vendor/github.com/golang/snappy/decode_arm64.s new file mode 100644 index 0000000..7a3ead1 --- /dev/null +++ b/vendor/github.com/golang/snappy/decode_arm64.s @@ -0,0 +1,494 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !appengine +// +build gc +// +build !noasm + +#include "textflag.h" + +// The asm code generally follows the pure Go code in decode_other.go, except +// where marked with a "!!!". + +// func decode(dst, src []byte) int +// +// All local variables fit into registers. The non-zero stack size is only to +// spill registers and push args when issuing a CALL. The register allocation: +// - R2 scratch +// - R3 scratch +// - R4 length or x +// - R5 offset +// - R6 &src[s] +// - R7 &dst[d] +// + R8 dst_base +// + R9 dst_len +// + R10 dst_base + dst_len +// + R11 src_base +// + R12 src_len +// + R13 src_base + src_len +// - R14 used by doCopy +// - R15 used by doCopy +// +// The registers R8-R13 (marked with a "+") are set at the start of the +// function, and after a CALL returns, and are not otherwise modified. +// +// The d variable is implicitly R7 - R8, and len(dst)-d is R10 - R7. +// The s variable is implicitly R6 - R11, and len(src)-s is R13 - R6. +TEXT ·decode(SB), NOSPLIT, $56-56 + // Initialize R6, R7 and R8-R13. + MOVD dst_base+0(FP), R8 + MOVD dst_len+8(FP), R9 + MOVD R8, R7 + MOVD R8, R10 + ADD R9, R10, R10 + MOVD src_base+24(FP), R11 + MOVD src_len+32(FP), R12 + MOVD R11, R6 + MOVD R11, R13 + ADD R12, R13, R13 + +loop: + // for s < len(src) + CMP R13, R6 + BEQ end + + // R4 = uint32(src[s]) + // + // switch src[s] & 0x03 + MOVBU (R6), R4 + MOVW R4, R3 + ANDW $3, R3 + MOVW $1, R1 + CMPW R1, R3 + BGE tagCopy + + // ---------------------------------------- + // The code below handles literal tags. + + // case tagLiteral: + // x := uint32(src[s] >> 2) + // switch + MOVW $60, R1 + LSRW $2, R4, R4 + CMPW R4, R1 + BLS tagLit60Plus + + // case x < 60: + // s++ + ADD $1, R6, R6 + +doLit: + // This is the end of the inner "switch", when we have a literal tag. + // + // We assume that R4 == x and x fits in a uint32, where x is the variable + // used in the pure Go decode_other.go code. + + // length = int(x) + 1 + // + // Unlike the pure Go code, we don't need to check if length <= 0 because + // R4 can hold 64 bits, so the increment cannot overflow. + ADD $1, R4, R4 + + // Prepare to check if copying length bytes will run past the end of dst or + // src. + // + // R2 = len(dst) - d + // R3 = len(src) - s + MOVD R10, R2 + SUB R7, R2, R2 + MOVD R13, R3 + SUB R6, R3, R3 + + // !!! Try a faster technique for short (16 or fewer bytes) copies. + // + // if length > 16 || len(dst)-d < 16 || len(src)-s < 16 { + // goto callMemmove // Fall back on calling runtime·memmove. + // } + // + // The C++ snappy code calls this TryFastAppend. It also checks len(src)-s + // against 21 instead of 16, because it cannot assume that all of its input + // is contiguous in memory and so it needs to leave enough source bytes to + // read the next tag without refilling buffers, but Go's Decode assumes + // contiguousness (the src argument is a []byte). + CMP $16, R4 + BGT callMemmove + CMP $16, R2 + BLT callMemmove + CMP $16, R3 + BLT callMemmove + + // !!! Implement the copy from src to dst as a 16-byte load and store. + // (Decode's documentation says that dst and src must not overlap.) + // + // This always copies 16 bytes, instead of only length bytes, but that's + // OK. If the input is a valid Snappy encoding then subsequent iterations + // will fix up the overrun. Otherwise, Decode returns a nil []byte (and a + // non-nil error), so the overrun will be ignored. + // + // Note that on arm64, it is legal and cheap to issue unaligned 8-byte or + // 16-byte loads and stores. This technique probably wouldn't be as + // effective on architectures that are fussier about alignment. + LDP 0(R6), (R14, R15) + STP (R14, R15), 0(R7) + + // d += length + // s += length + ADD R4, R7, R7 + ADD R4, R6, R6 + B loop + +callMemmove: + // if length > len(dst)-d || length > len(src)-s { etc } + CMP R2, R4 + BGT errCorrupt + CMP R3, R4 + BGT errCorrupt + + // copy(dst[d:], src[s:s+length]) + // + // This means calling runtime·memmove(&dst[d], &src[s], length), so we push + // R7, R6 and R4 as arguments. Coincidentally, we also need to spill those + // three registers to the stack, to save local variables across the CALL. + MOVD R7, 8(RSP) + MOVD R6, 16(RSP) + MOVD R4, 24(RSP) + MOVD R7, 32(RSP) + MOVD R6, 40(RSP) + MOVD R4, 48(RSP) + CALL runtime·memmove(SB) + + // Restore local variables: unspill registers from the stack and + // re-calculate R8-R13. + MOVD 32(RSP), R7 + MOVD 40(RSP), R6 + MOVD 48(RSP), R4 + MOVD dst_base+0(FP), R8 + MOVD dst_len+8(FP), R9 + MOVD R8, R10 + ADD R9, R10, R10 + MOVD src_base+24(FP), R11 + MOVD src_len+32(FP), R12 + MOVD R11, R13 + ADD R12, R13, R13 + + // d += length + // s += length + ADD R4, R7, R7 + ADD R4, R6, R6 + B loop + +tagLit60Plus: + // !!! This fragment does the + // + // s += x - 58; if uint(s) > uint(len(src)) { etc } + // + // checks. In the asm version, we code it once instead of once per switch case. + ADD R4, R6, R6 + SUB $58, R6, R6 + MOVD R6, R3 + SUB R11, R3, R3 + CMP R12, R3 + BGT errCorrupt + + // case x == 60: + MOVW $61, R1 + CMPW R1, R4 + BEQ tagLit61 + BGT tagLit62Plus + + // x = uint32(src[s-1]) + MOVBU -1(R6), R4 + B doLit + +tagLit61: + // case x == 61: + // x = uint32(src[s-2]) | uint32(src[s-1])<<8 + MOVHU -2(R6), R4 + B doLit + +tagLit62Plus: + CMPW $62, R4 + BHI tagLit63 + + // case x == 62: + // x = uint32(src[s-3]) | uint32(src[s-2])<<8 | uint32(src[s-1])<<16 + MOVHU -3(R6), R4 + MOVBU -1(R6), R3 + ORR R3<<16, R4 + B doLit + +tagLit63: + // case x == 63: + // x = uint32(src[s-4]) | uint32(src[s-3])<<8 | uint32(src[s-2])<<16 | uint32(src[s-1])<<24 + MOVWU -4(R6), R4 + B doLit + + // The code above handles literal tags. + // ---------------------------------------- + // The code below handles copy tags. + +tagCopy4: + // case tagCopy4: + // s += 5 + ADD $5, R6, R6 + + // if uint(s) > uint(len(src)) { etc } + MOVD R6, R3 + SUB R11, R3, R3 + CMP R12, R3 + BGT errCorrupt + + // length = 1 + int(src[s-5])>>2 + MOVD $1, R1 + ADD R4>>2, R1, R4 + + // offset = int(uint32(src[s-4]) | uint32(src[s-3])<<8 | uint32(src[s-2])<<16 | uint32(src[s-1])<<24) + MOVWU -4(R6), R5 + B doCopy + +tagCopy2: + // case tagCopy2: + // s += 3 + ADD $3, R6, R6 + + // if uint(s) > uint(len(src)) { etc } + MOVD R6, R3 + SUB R11, R3, R3 + CMP R12, R3 + BGT errCorrupt + + // length = 1 + int(src[s-3])>>2 + MOVD $1, R1 + ADD R4>>2, R1, R4 + + // offset = int(uint32(src[s-2]) | uint32(src[s-1])<<8) + MOVHU -2(R6), R5 + B doCopy + +tagCopy: + // We have a copy tag. We assume that: + // - R3 == src[s] & 0x03 + // - R4 == src[s] + CMP $2, R3 + BEQ tagCopy2 + BGT tagCopy4 + + // case tagCopy1: + // s += 2 + ADD $2, R6, R6 + + // if uint(s) > uint(len(src)) { etc } + MOVD R6, R3 + SUB R11, R3, R3 + CMP R12, R3 + BGT errCorrupt + + // offset = int(uint32(src[s-2])&0xe0<<3 | uint32(src[s-1])) + MOVD R4, R5 + AND $0xe0, R5 + MOVBU -1(R6), R3 + ORR R5<<3, R3, R5 + + // length = 4 + int(src[s-2])>>2&0x7 + MOVD $7, R1 + AND R4>>2, R1, R4 + ADD $4, R4, R4 + +doCopy: + // This is the end of the outer "switch", when we have a copy tag. + // + // We assume that: + // - R4 == length && R4 > 0 + // - R5 == offset + + // if offset <= 0 { etc } + MOVD $0, R1 + CMP R1, R5 + BLE errCorrupt + + // if d < offset { etc } + MOVD R7, R3 + SUB R8, R3, R3 + CMP R5, R3 + BLT errCorrupt + + // if length > len(dst)-d { etc } + MOVD R10, R3 + SUB R7, R3, R3 + CMP R3, R4 + BGT errCorrupt + + // forwardCopy(dst[d:d+length], dst[d-offset:]); d += length + // + // Set: + // - R14 = len(dst)-d + // - R15 = &dst[d-offset] + MOVD R10, R14 + SUB R7, R14, R14 + MOVD R7, R15 + SUB R5, R15, R15 + + // !!! Try a faster technique for short (16 or fewer bytes) forward copies. + // + // First, try using two 8-byte load/stores, similar to the doLit technique + // above. Even if dst[d:d+length] and dst[d-offset:] can overlap, this is + // still OK if offset >= 8. Note that this has to be two 8-byte load/stores + // and not one 16-byte load/store, and the first store has to be before the + // second load, due to the overlap if offset is in the range [8, 16). + // + // if length > 16 || offset < 8 || len(dst)-d < 16 { + // goto slowForwardCopy + // } + // copy 16 bytes + // d += length + CMP $16, R4 + BGT slowForwardCopy + CMP $8, R5 + BLT slowForwardCopy + CMP $16, R14 + BLT slowForwardCopy + MOVD 0(R15), R2 + MOVD R2, 0(R7) + MOVD 8(R15), R3 + MOVD R3, 8(R7) + ADD R4, R7, R7 + B loop + +slowForwardCopy: + // !!! If the forward copy is longer than 16 bytes, or if offset < 8, we + // can still try 8-byte load stores, provided we can overrun up to 10 extra + // bytes. As above, the overrun will be fixed up by subsequent iterations + // of the outermost loop. + // + // The C++ snappy code calls this technique IncrementalCopyFastPath. Its + // commentary says: + // + // ---- + // + // The main part of this loop is a simple copy of eight bytes at a time + // until we've copied (at least) the requested amount of bytes. However, + // if d and d-offset are less than eight bytes apart (indicating a + // repeating pattern of length < 8), we first need to expand the pattern in + // order to get the correct results. For instance, if the buffer looks like + // this, with the eight-byte and patterns marked as + // intervals: + // + // abxxxxxxxxxxxx + // [------] d-offset + // [------] d + // + // a single eight-byte copy from to will repeat the pattern + // once, after which we can move two bytes without moving : + // + // ababxxxxxxxxxx + // [------] d-offset + // [------] d + // + // and repeat the exercise until the two no longer overlap. + // + // This allows us to do very well in the special case of one single byte + // repeated many times, without taking a big hit for more general cases. + // + // The worst case of extra writing past the end of the match occurs when + // offset == 1 and length == 1; the last copy will read from byte positions + // [0..7] and write to [4..11], whereas it was only supposed to write to + // position 1. Thus, ten excess bytes. + // + // ---- + // + // That "10 byte overrun" worst case is confirmed by Go's + // TestSlowForwardCopyOverrun, which also tests the fixUpSlowForwardCopy + // and finishSlowForwardCopy algorithm. + // + // if length > len(dst)-d-10 { + // goto verySlowForwardCopy + // } + SUB $10, R14, R14 + CMP R14, R4 + BGT verySlowForwardCopy + +makeOffsetAtLeast8: + // !!! As above, expand the pattern so that offset >= 8 and we can use + // 8-byte load/stores. + // + // for offset < 8 { + // copy 8 bytes from dst[d-offset:] to dst[d:] + // length -= offset + // d += offset + // offset += offset + // // The two previous lines together means that d-offset, and therefore + // // R15, is unchanged. + // } + CMP $8, R5 + BGE fixUpSlowForwardCopy + MOVD (R15), R3 + MOVD R3, (R7) + SUB R5, R4, R4 + ADD R5, R7, R7 + ADD R5, R5, R5 + B makeOffsetAtLeast8 + +fixUpSlowForwardCopy: + // !!! Add length (which might be negative now) to d (implied by R7 being + // &dst[d]) so that d ends up at the right place when we jump back to the + // top of the loop. Before we do that, though, we save R7 to R2 so that, if + // length is positive, copying the remaining length bytes will write to the + // right place. + MOVD R7, R2 + ADD R4, R7, R7 + +finishSlowForwardCopy: + // !!! Repeat 8-byte load/stores until length <= 0. Ending with a negative + // length means that we overrun, but as above, that will be fixed up by + // subsequent iterations of the outermost loop. + MOVD $0, R1 + CMP R1, R4 + BLE loop + MOVD (R15), R3 + MOVD R3, (R2) + ADD $8, R15, R15 + ADD $8, R2, R2 + SUB $8, R4, R4 + B finishSlowForwardCopy + +verySlowForwardCopy: + // verySlowForwardCopy is a simple implementation of forward copy. In C + // parlance, this is a do/while loop instead of a while loop, since we know + // that length > 0. In Go syntax: + // + // for { + // dst[d] = dst[d - offset] + // d++ + // length-- + // if length == 0 { + // break + // } + // } + MOVB (R15), R3 + MOVB R3, (R7) + ADD $1, R15, R15 + ADD $1, R7, R7 + SUB $1, R4, R4 + CBNZ R4, verySlowForwardCopy + B loop + + // The code above handles copy tags. + // ---------------------------------------- + +end: + // This is the end of the "for s < len(src)". + // + // if d != len(dst) { etc } + CMP R10, R7 + BNE errCorrupt + + // return 0 + MOVD $0, ret+48(FP) + RET + +errCorrupt: + // return decodeErrCodeCorrupt + MOVD $1, R2 + MOVD R2, ret+48(FP) + RET diff --git a/vendor/github.com/golang/snappy/decode_amd64.go b/vendor/github.com/golang/snappy/decode_asm.go similarity index 93% rename from vendor/github.com/golang/snappy/decode_amd64.go rename to vendor/github.com/golang/snappy/decode_asm.go index fcd192b..7082b34 100644 --- a/vendor/github.com/golang/snappy/decode_amd64.go +++ b/vendor/github.com/golang/snappy/decode_asm.go @@ -5,6 +5,7 @@ // +build !appengine // +build gc // +build !noasm +// +build amd64 arm64 package snappy diff --git a/vendor/github.com/golang/snappy/decode_other.go b/vendor/github.com/golang/snappy/decode_other.go index 8c9f204..2f672be 100644 --- a/vendor/github.com/golang/snappy/decode_other.go +++ b/vendor/github.com/golang/snappy/decode_other.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !amd64 appengine !gc noasm +// +build !amd64,!arm64 appengine !gc noasm package snappy @@ -85,14 +85,28 @@ func decode(dst, src []byte) int { if offset <= 0 || d < offset || length > len(dst)-d { return decodeErrCodeCorrupt } - // Copy from an earlier sub-slice of dst to a later sub-slice. Unlike - // the built-in copy function, this byte-by-byte copy always runs + // Copy from an earlier sub-slice of dst to a later sub-slice. + // If no overlap, use the built-in copy: + if offset >= length { + copy(dst[d:d+length], dst[d-offset:]) + d += length + continue + } + + // Unlike the built-in copy function, this byte-by-byte copy always runs // forwards, even if the slices overlap. Conceptually, this is: // // d += forwardCopy(dst[d:d+length], dst[d-offset:]) - for end := d + length; d != end; d++ { - dst[d] = dst[d-offset] + // + // We align the slices into a and b and show the compiler they are the same size. + // This allows the loop to run without bounds checks. + a := dst[d : d+length] + b := dst[d-offset:] + b = b[:len(a)] + for i := range a { + a[i] = b[i] } + d += length } if d != len(dst) { return decodeErrCodeCorrupt diff --git a/vendor/github.com/golang/snappy/encode.go b/vendor/github.com/golang/snappy/encode.go index 8d393e9..7f23657 100644 --- a/vendor/github.com/golang/snappy/encode.go +++ b/vendor/github.com/golang/snappy/encode.go @@ -15,6 +15,8 @@ import ( // Otherwise, a newly allocated slice will be returned. // // The dst and src must not overlap. It is valid to pass a nil dst. +// +// Encode handles the Snappy block format, not the Snappy stream format. func Encode(dst, src []byte) []byte { if n := MaxEncodedLen(len(src)); n < 0 { panic(ErrTooLarge) @@ -139,6 +141,8 @@ func NewBufferedWriter(w io.Writer) *Writer { } // Writer is an io.Writer that can write Snappy-compressed bytes. +// +// Writer handles the Snappy stream format, not the Snappy block format. type Writer struct { w io.Writer err error diff --git a/vendor/github.com/golang/snappy/encode_arm64.s b/vendor/github.com/golang/snappy/encode_arm64.s new file mode 100644 index 0000000..bf83667 --- /dev/null +++ b/vendor/github.com/golang/snappy/encode_arm64.s @@ -0,0 +1,722 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build !appengine +// +build gc +// +build !noasm + +#include "textflag.h" + +// The asm code generally follows the pure Go code in encode_other.go, except +// where marked with a "!!!". + +// ---------------------------------------------------------------------------- + +// func emitLiteral(dst, lit []byte) int +// +// All local variables fit into registers. The register allocation: +// - R3 len(lit) +// - R4 n +// - R6 return value +// - R8 &dst[i] +// - R10 &lit[0] +// +// The 32 bytes of stack space is to call runtime·memmove. +// +// The unusual register allocation of local variables, such as R10 for the +// source pointer, matches the allocation used at the call site in encodeBlock, +// which makes it easier to manually inline this function. +TEXT ·emitLiteral(SB), NOSPLIT, $32-56 + MOVD dst_base+0(FP), R8 + MOVD lit_base+24(FP), R10 + MOVD lit_len+32(FP), R3 + MOVD R3, R6 + MOVW R3, R4 + SUBW $1, R4, R4 + + CMPW $60, R4 + BLT oneByte + CMPW $256, R4 + BLT twoBytes + +threeBytes: + MOVD $0xf4, R2 + MOVB R2, 0(R8) + MOVW R4, 1(R8) + ADD $3, R8, R8 + ADD $3, R6, R6 + B memmove + +twoBytes: + MOVD $0xf0, R2 + MOVB R2, 0(R8) + MOVB R4, 1(R8) + ADD $2, R8, R8 + ADD $2, R6, R6 + B memmove + +oneByte: + LSLW $2, R4, R4 + MOVB R4, 0(R8) + ADD $1, R8, R8 + ADD $1, R6, R6 + +memmove: + MOVD R6, ret+48(FP) + + // copy(dst[i:], lit) + // + // This means calling runtime·memmove(&dst[i], &lit[0], len(lit)), so we push + // R8, R10 and R3 as arguments. + MOVD R8, 8(RSP) + MOVD R10, 16(RSP) + MOVD R3, 24(RSP) + CALL runtime·memmove(SB) + RET + +// ---------------------------------------------------------------------------- + +// func emitCopy(dst []byte, offset, length int) int +// +// All local variables fit into registers. The register allocation: +// - R3 length +// - R7 &dst[0] +// - R8 &dst[i] +// - R11 offset +// +// The unusual register allocation of local variables, such as R11 for the +// offset, matches the allocation used at the call site in encodeBlock, which +// makes it easier to manually inline this function. +TEXT ·emitCopy(SB), NOSPLIT, $0-48 + MOVD dst_base+0(FP), R8 + MOVD R8, R7 + MOVD offset+24(FP), R11 + MOVD length+32(FP), R3 + +loop0: + // for length >= 68 { etc } + CMPW $68, R3 + BLT step1 + + // Emit a length 64 copy, encoded as 3 bytes. + MOVD $0xfe, R2 + MOVB R2, 0(R8) + MOVW R11, 1(R8) + ADD $3, R8, R8 + SUB $64, R3, R3 + B loop0 + +step1: + // if length > 64 { etc } + CMP $64, R3 + BLE step2 + + // Emit a length 60 copy, encoded as 3 bytes. + MOVD $0xee, R2 + MOVB R2, 0(R8) + MOVW R11, 1(R8) + ADD $3, R8, R8 + SUB $60, R3, R3 + +step2: + // if length >= 12 || offset >= 2048 { goto step3 } + CMP $12, R3 + BGE step3 + CMPW $2048, R11 + BGE step3 + + // Emit the remaining copy, encoded as 2 bytes. + MOVB R11, 1(R8) + LSRW $3, R11, R11 + AND $0xe0, R11, R11 + SUB $4, R3, R3 + LSLW $2, R3 + AND $0xff, R3, R3 + ORRW R3, R11, R11 + ORRW $1, R11, R11 + MOVB R11, 0(R8) + ADD $2, R8, R8 + + // Return the number of bytes written. + SUB R7, R8, R8 + MOVD R8, ret+40(FP) + RET + +step3: + // Emit the remaining copy, encoded as 3 bytes. + SUB $1, R3, R3 + AND $0xff, R3, R3 + LSLW $2, R3, R3 + ORRW $2, R3, R3 + MOVB R3, 0(R8) + MOVW R11, 1(R8) + ADD $3, R8, R8 + + // Return the number of bytes written. + SUB R7, R8, R8 + MOVD R8, ret+40(FP) + RET + +// ---------------------------------------------------------------------------- + +// func extendMatch(src []byte, i, j int) int +// +// All local variables fit into registers. The register allocation: +// - R6 &src[0] +// - R7 &src[j] +// - R13 &src[len(src) - 8] +// - R14 &src[len(src)] +// - R15 &src[i] +// +// The unusual register allocation of local variables, such as R15 for a source +// pointer, matches the allocation used at the call site in encodeBlock, which +// makes it easier to manually inline this function. +TEXT ·extendMatch(SB), NOSPLIT, $0-48 + MOVD src_base+0(FP), R6 + MOVD src_len+8(FP), R14 + MOVD i+24(FP), R15 + MOVD j+32(FP), R7 + ADD R6, R14, R14 + ADD R6, R15, R15 + ADD R6, R7, R7 + MOVD R14, R13 + SUB $8, R13, R13 + +cmp8: + // As long as we are 8 or more bytes before the end of src, we can load and + // compare 8 bytes at a time. If those 8 bytes are equal, repeat. + CMP R13, R7 + BHI cmp1 + MOVD (R15), R3 + MOVD (R7), R4 + CMP R4, R3 + BNE bsf + ADD $8, R15, R15 + ADD $8, R7, R7 + B cmp8 + +bsf: + // If those 8 bytes were not equal, XOR the two 8 byte values, and return + // the index of the first byte that differs. + // RBIT reverses the bit order, then CLZ counts the leading zeros, the + // combination of which finds the least significant bit which is set. + // The arm64 architecture is little-endian, and the shift by 3 converts + // a bit index to a byte index. + EOR R3, R4, R4 + RBIT R4, R4 + CLZ R4, R4 + ADD R4>>3, R7, R7 + + // Convert from &src[ret] to ret. + SUB R6, R7, R7 + MOVD R7, ret+40(FP) + RET + +cmp1: + // In src's tail, compare 1 byte at a time. + CMP R7, R14 + BLS extendMatchEnd + MOVB (R15), R3 + MOVB (R7), R4 + CMP R4, R3 + BNE extendMatchEnd + ADD $1, R15, R15 + ADD $1, R7, R7 + B cmp1 + +extendMatchEnd: + // Convert from &src[ret] to ret. + SUB R6, R7, R7 + MOVD R7, ret+40(FP) + RET + +// ---------------------------------------------------------------------------- + +// func encodeBlock(dst, src []byte) (d int) +// +// All local variables fit into registers, other than "var table". The register +// allocation: +// - R3 . . +// - R4 . . +// - R5 64 shift +// - R6 72 &src[0], tableSize +// - R7 80 &src[s] +// - R8 88 &dst[d] +// - R9 96 sLimit +// - R10 . &src[nextEmit] +// - R11 104 prevHash, currHash, nextHash, offset +// - R12 112 &src[base], skip +// - R13 . &src[nextS], &src[len(src) - 8] +// - R14 . len(src), bytesBetweenHashLookups, &src[len(src)], x +// - R15 120 candidate +// - R16 . hash constant, 0x1e35a7bd +// - R17 . &table +// - . 128 table +// +// The second column (64, 72, etc) is the stack offset to spill the registers +// when calling other functions. We could pack this slightly tighter, but it's +// simpler to have a dedicated spill map independent of the function called. +// +// "var table [maxTableSize]uint16" takes up 32768 bytes of stack space. An +// extra 64 bytes, to call other functions, and an extra 64 bytes, to spill +// local variables (registers) during calls gives 32768 + 64 + 64 = 32896. +TEXT ·encodeBlock(SB), 0, $32896-56 + MOVD dst_base+0(FP), R8 + MOVD src_base+24(FP), R7 + MOVD src_len+32(FP), R14 + + // shift, tableSize := uint32(32-8), 1<<8 + MOVD $24, R5 + MOVD $256, R6 + MOVW $0xa7bd, R16 + MOVKW $(0x1e35<<16), R16 + +calcShift: + // for ; tableSize < maxTableSize && tableSize < len(src); tableSize *= 2 { + // shift-- + // } + MOVD $16384, R2 + CMP R2, R6 + BGE varTable + CMP R14, R6 + BGE varTable + SUB $1, R5, R5 + LSL $1, R6, R6 + B calcShift + +varTable: + // var table [maxTableSize]uint16 + // + // In the asm code, unlike the Go code, we can zero-initialize only the + // first tableSize elements. Each uint16 element is 2 bytes and each + // iterations writes 64 bytes, so we can do only tableSize/32 writes + // instead of the 2048 writes that would zero-initialize all of table's + // 32768 bytes. This clear could overrun the first tableSize elements, but + // it won't overrun the allocated stack size. + ADD $128, RSP, R17 + MOVD R17, R4 + + // !!! R6 = &src[tableSize] + ADD R6<<1, R17, R6 + +memclr: + STP.P (ZR, ZR), 64(R4) + STP (ZR, ZR), -48(R4) + STP (ZR, ZR), -32(R4) + STP (ZR, ZR), -16(R4) + CMP R4, R6 + BHI memclr + + // !!! R6 = &src[0] + MOVD R7, R6 + + // sLimit := len(src) - inputMargin + MOVD R14, R9 + SUB $15, R9, R9 + + // !!! Pre-emptively spill R5, R6 and R9 to the stack. Their values don't + // change for the rest of the function. + MOVD R5, 64(RSP) + MOVD R6, 72(RSP) + MOVD R9, 96(RSP) + + // nextEmit := 0 + MOVD R6, R10 + + // s := 1 + ADD $1, R7, R7 + + // nextHash := hash(load32(src, s), shift) + MOVW 0(R7), R11 + MULW R16, R11, R11 + LSRW R5, R11, R11 + +outer: + // for { etc } + + // skip := 32 + MOVD $32, R12 + + // nextS := s + MOVD R7, R13 + + // candidate := 0 + MOVD $0, R15 + +inner0: + // for { etc } + + // s := nextS + MOVD R13, R7 + + // bytesBetweenHashLookups := skip >> 5 + MOVD R12, R14 + LSR $5, R14, R14 + + // nextS = s + bytesBetweenHashLookups + ADD R14, R13, R13 + + // skip += bytesBetweenHashLookups + ADD R14, R12, R12 + + // if nextS > sLimit { goto emitRemainder } + MOVD R13, R3 + SUB R6, R3, R3 + CMP R9, R3 + BHI emitRemainder + + // candidate = int(table[nextHash]) + MOVHU 0(R17)(R11<<1), R15 + + // table[nextHash] = uint16(s) + MOVD R7, R3 + SUB R6, R3, R3 + + MOVH R3, 0(R17)(R11<<1) + + // nextHash = hash(load32(src, nextS), shift) + MOVW 0(R13), R11 + MULW R16, R11 + LSRW R5, R11, R11 + + // if load32(src, s) != load32(src, candidate) { continue } break + MOVW 0(R7), R3 + MOVW (R6)(R15*1), R4 + CMPW R4, R3 + BNE inner0 + +fourByteMatch: + // As per the encode_other.go code: + // + // A 4-byte match has been found. We'll later see etc. + + // !!! Jump to a fast path for short (<= 16 byte) literals. See the comment + // on inputMargin in encode.go. + MOVD R7, R3 + SUB R10, R3, R3 + CMP $16, R3 + BLE emitLiteralFastPath + + // ---------------------------------------- + // Begin inline of the emitLiteral call. + // + // d += emitLiteral(dst[d:], src[nextEmit:s]) + + MOVW R3, R4 + SUBW $1, R4, R4 + + MOVW $60, R2 + CMPW R2, R4 + BLT inlineEmitLiteralOneByte + MOVW $256, R2 + CMPW R2, R4 + BLT inlineEmitLiteralTwoBytes + +inlineEmitLiteralThreeBytes: + MOVD $0xf4, R1 + MOVB R1, 0(R8) + MOVW R4, 1(R8) + ADD $3, R8, R8 + B inlineEmitLiteralMemmove + +inlineEmitLiteralTwoBytes: + MOVD $0xf0, R1 + MOVB R1, 0(R8) + MOVB R4, 1(R8) + ADD $2, R8, R8 + B inlineEmitLiteralMemmove + +inlineEmitLiteralOneByte: + LSLW $2, R4, R4 + MOVB R4, 0(R8) + ADD $1, R8, R8 + +inlineEmitLiteralMemmove: + // Spill local variables (registers) onto the stack; call; unspill. + // + // copy(dst[i:], lit) + // + // This means calling runtime·memmove(&dst[i], &lit[0], len(lit)), so we push + // R8, R10 and R3 as arguments. + MOVD R8, 8(RSP) + MOVD R10, 16(RSP) + MOVD R3, 24(RSP) + + // Finish the "d +=" part of "d += emitLiteral(etc)". + ADD R3, R8, R8 + MOVD R7, 80(RSP) + MOVD R8, 88(RSP) + MOVD R15, 120(RSP) + CALL runtime·memmove(SB) + MOVD 64(RSP), R5 + MOVD 72(RSP), R6 + MOVD 80(RSP), R7 + MOVD 88(RSP), R8 + MOVD 96(RSP), R9 + MOVD 120(RSP), R15 + ADD $128, RSP, R17 + MOVW $0xa7bd, R16 + MOVKW $(0x1e35<<16), R16 + B inner1 + +inlineEmitLiteralEnd: + // End inline of the emitLiteral call. + // ---------------------------------------- + +emitLiteralFastPath: + // !!! Emit the 1-byte encoding "uint8(len(lit)-1)<<2". + MOVB R3, R4 + SUBW $1, R4, R4 + AND $0xff, R4, R4 + LSLW $2, R4, R4 + MOVB R4, (R8) + ADD $1, R8, R8 + + // !!! Implement the copy from lit to dst as a 16-byte load and store. + // (Encode's documentation says that dst and src must not overlap.) + // + // This always copies 16 bytes, instead of only len(lit) bytes, but that's + // OK. Subsequent iterations will fix up the overrun. + // + // Note that on arm64, it is legal and cheap to issue unaligned 8-byte or + // 16-byte loads and stores. This technique probably wouldn't be as + // effective on architectures that are fussier about alignment. + LDP 0(R10), (R0, R1) + STP (R0, R1), 0(R8) + ADD R3, R8, R8 + +inner1: + // for { etc } + + // base := s + MOVD R7, R12 + + // !!! offset := base - candidate + MOVD R12, R11 + SUB R15, R11, R11 + SUB R6, R11, R11 + + // ---------------------------------------- + // Begin inline of the extendMatch call. + // + // s = extendMatch(src, candidate+4, s+4) + + // !!! R14 = &src[len(src)] + MOVD src_len+32(FP), R14 + ADD R6, R14, R14 + + // !!! R13 = &src[len(src) - 8] + MOVD R14, R13 + SUB $8, R13, R13 + + // !!! R15 = &src[candidate + 4] + ADD $4, R15, R15 + ADD R6, R15, R15 + + // !!! s += 4 + ADD $4, R7, R7 + +inlineExtendMatchCmp8: + // As long as we are 8 or more bytes before the end of src, we can load and + // compare 8 bytes at a time. If those 8 bytes are equal, repeat. + CMP R13, R7 + BHI inlineExtendMatchCmp1 + MOVD (R15), R3 + MOVD (R7), R4 + CMP R4, R3 + BNE inlineExtendMatchBSF + ADD $8, R15, R15 + ADD $8, R7, R7 + B inlineExtendMatchCmp8 + +inlineExtendMatchBSF: + // If those 8 bytes were not equal, XOR the two 8 byte values, and return + // the index of the first byte that differs. + // RBIT reverses the bit order, then CLZ counts the leading zeros, the + // combination of which finds the least significant bit which is set. + // The arm64 architecture is little-endian, and the shift by 3 converts + // a bit index to a byte index. + EOR R3, R4, R4 + RBIT R4, R4 + CLZ R4, R4 + ADD R4>>3, R7, R7 + B inlineExtendMatchEnd + +inlineExtendMatchCmp1: + // In src's tail, compare 1 byte at a time. + CMP R7, R14 + BLS inlineExtendMatchEnd + MOVB (R15), R3 + MOVB (R7), R4 + CMP R4, R3 + BNE inlineExtendMatchEnd + ADD $1, R15, R15 + ADD $1, R7, R7 + B inlineExtendMatchCmp1 + +inlineExtendMatchEnd: + // End inline of the extendMatch call. + // ---------------------------------------- + + // ---------------------------------------- + // Begin inline of the emitCopy call. + // + // d += emitCopy(dst[d:], base-candidate, s-base) + + // !!! length := s - base + MOVD R7, R3 + SUB R12, R3, R3 + +inlineEmitCopyLoop0: + // for length >= 68 { etc } + MOVW $68, R2 + CMPW R2, R3 + BLT inlineEmitCopyStep1 + + // Emit a length 64 copy, encoded as 3 bytes. + MOVD $0xfe, R1 + MOVB R1, 0(R8) + MOVW R11, 1(R8) + ADD $3, R8, R8 + SUBW $64, R3, R3 + B inlineEmitCopyLoop0 + +inlineEmitCopyStep1: + // if length > 64 { etc } + MOVW $64, R2 + CMPW R2, R3 + BLE inlineEmitCopyStep2 + + // Emit a length 60 copy, encoded as 3 bytes. + MOVD $0xee, R1 + MOVB R1, 0(R8) + MOVW R11, 1(R8) + ADD $3, R8, R8 + SUBW $60, R3, R3 + +inlineEmitCopyStep2: + // if length >= 12 || offset >= 2048 { goto inlineEmitCopyStep3 } + MOVW $12, R2 + CMPW R2, R3 + BGE inlineEmitCopyStep3 + MOVW $2048, R2 + CMPW R2, R11 + BGE inlineEmitCopyStep3 + + // Emit the remaining copy, encoded as 2 bytes. + MOVB R11, 1(R8) + LSRW $8, R11, R11 + LSLW $5, R11, R11 + SUBW $4, R3, R3 + AND $0xff, R3, R3 + LSLW $2, R3, R3 + ORRW R3, R11, R11 + ORRW $1, R11, R11 + MOVB R11, 0(R8) + ADD $2, R8, R8 + B inlineEmitCopyEnd + +inlineEmitCopyStep3: + // Emit the remaining copy, encoded as 3 bytes. + SUBW $1, R3, R3 + LSLW $2, R3, R3 + ORRW $2, R3, R3 + MOVB R3, 0(R8) + MOVW R11, 1(R8) + ADD $3, R8, R8 + +inlineEmitCopyEnd: + // End inline of the emitCopy call. + // ---------------------------------------- + + // nextEmit = s + MOVD R7, R10 + + // if s >= sLimit { goto emitRemainder } + MOVD R7, R3 + SUB R6, R3, R3 + CMP R3, R9 + BLS emitRemainder + + // As per the encode_other.go code: + // + // We could immediately etc. + + // x := load64(src, s-1) + MOVD -1(R7), R14 + + // prevHash := hash(uint32(x>>0), shift) + MOVW R14, R11 + MULW R16, R11, R11 + LSRW R5, R11, R11 + + // table[prevHash] = uint16(s-1) + MOVD R7, R3 + SUB R6, R3, R3 + SUB $1, R3, R3 + + MOVHU R3, 0(R17)(R11<<1) + + // currHash := hash(uint32(x>>8), shift) + LSR $8, R14, R14 + MOVW R14, R11 + MULW R16, R11, R11 + LSRW R5, R11, R11 + + // candidate = int(table[currHash]) + MOVHU 0(R17)(R11<<1), R15 + + // table[currHash] = uint16(s) + ADD $1, R3, R3 + MOVHU R3, 0(R17)(R11<<1) + + // if uint32(x>>8) == load32(src, candidate) { continue } + MOVW (R6)(R15*1), R4 + CMPW R4, R14 + BEQ inner1 + + // nextHash = hash(uint32(x>>16), shift) + LSR $8, R14, R14 + MOVW R14, R11 + MULW R16, R11, R11 + LSRW R5, R11, R11 + + // s++ + ADD $1, R7, R7 + + // break out of the inner1 for loop, i.e. continue the outer loop. + B outer + +emitRemainder: + // if nextEmit < len(src) { etc } + MOVD src_len+32(FP), R3 + ADD R6, R3, R3 + CMP R3, R10 + BEQ encodeBlockEnd + + // d += emitLiteral(dst[d:], src[nextEmit:]) + // + // Push args. + MOVD R8, 8(RSP) + MOVD $0, 16(RSP) // Unnecessary, as the callee ignores it, but conservative. + MOVD $0, 24(RSP) // Unnecessary, as the callee ignores it, but conservative. + MOVD R10, 32(RSP) + SUB R10, R3, R3 + MOVD R3, 40(RSP) + MOVD R3, 48(RSP) // Unnecessary, as the callee ignores it, but conservative. + + // Spill local variables (registers) onto the stack; call; unspill. + MOVD R8, 88(RSP) + CALL ·emitLiteral(SB) + MOVD 88(RSP), R8 + + // Finish the "d +=" part of "d += emitLiteral(etc)". + MOVD 56(RSP), R1 + ADD R1, R8, R8 + +encodeBlockEnd: + MOVD dst_base+0(FP), R3 + SUB R3, R8, R8 + MOVD R8, d+48(FP) + RET diff --git a/vendor/github.com/golang/snappy/encode_amd64.go b/vendor/github.com/golang/snappy/encode_asm.go similarity index 97% rename from vendor/github.com/golang/snappy/encode_amd64.go rename to vendor/github.com/golang/snappy/encode_asm.go index 150d91b..107c1e7 100644 --- a/vendor/github.com/golang/snappy/encode_amd64.go +++ b/vendor/github.com/golang/snappy/encode_asm.go @@ -5,6 +5,7 @@ // +build !appengine // +build gc // +build !noasm +// +build amd64 arm64 package snappy diff --git a/vendor/github.com/golang/snappy/encode_other.go b/vendor/github.com/golang/snappy/encode_other.go index dbcae90..296d7f0 100644 --- a/vendor/github.com/golang/snappy/encode_other.go +++ b/vendor/github.com/golang/snappy/encode_other.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !amd64 appengine !gc noasm +// +build !amd64,!arm64 appengine !gc noasm package snappy diff --git a/vendor/github.com/golang/snappy/go.mod b/vendor/github.com/golang/snappy/go.mod deleted file mode 100644 index f6406bb..0000000 --- a/vendor/github.com/golang/snappy/go.mod +++ /dev/null @@ -1 +0,0 @@ -module github.com/golang/snappy diff --git a/vendor/github.com/gorilla/mux/go.mod b/vendor/github.com/gorilla/mux/go.mod deleted file mode 100644 index df170a3..0000000 --- a/vendor/github.com/gorilla/mux/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/gorilla/mux - -go 1.12 diff --git a/vendor/github.com/hashicorp/go-uuid/go.mod b/vendor/github.com/hashicorp/go-uuid/go.mod deleted file mode 100644 index dd57f9d..0000000 --- a/vendor/github.com/hashicorp/go-uuid/go.mod +++ /dev/null @@ -1 +0,0 @@ -module github.com/hashicorp/go-uuid diff --git a/vendor/github.com/jhump/protoreflect/LICENSE b/vendor/github.com/jhump/protoreflect/LICENSE new file mode 100644 index 0000000..b53b91d --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2017 Joshua Humphries + + 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. diff --git a/vendor/github.com/jhump/protoreflect/desc/cache.go b/vendor/github.com/jhump/protoreflect/desc/cache.go new file mode 100644 index 0000000..e67cf49 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/cache.go @@ -0,0 +1,57 @@ +package desc + +import ( + "sync" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +type descriptorCache interface { + get(protoreflect.Descriptor) Descriptor + put(protoreflect.Descriptor, Descriptor) +} + +type lockingCache struct { + cacheMu sync.RWMutex + cache mapCache +} + +func (c *lockingCache) get(d protoreflect.Descriptor) Descriptor { + c.cacheMu.RLock() + defer c.cacheMu.RUnlock() + return c.cache.get(d) +} + +func (c *lockingCache) put(key protoreflect.Descriptor, val Descriptor) { + c.cacheMu.Lock() + defer c.cacheMu.Unlock() + c.cache.put(key, val) +} + +func (c *lockingCache) withLock(fn func(descriptorCache)) { + c.cacheMu.Lock() + defer c.cacheMu.Unlock() + // Pass the underlying mapCache. We don't want fn to use + // c.get or c.put sine we already have the lock. So those + // methods would try to re-acquire and then deadlock! + fn(c.cache) +} + +type mapCache map[protoreflect.Descriptor]Descriptor + +func (c mapCache) get(d protoreflect.Descriptor) Descriptor { + return c[d] +} + +func (c mapCache) put(key protoreflect.Descriptor, val Descriptor) { + c[key] = val +} + +type noopCache struct{} + +func (noopCache) get(protoreflect.Descriptor) Descriptor { + return nil +} + +func (noopCache) put(protoreflect.Descriptor, Descriptor) { +} diff --git a/vendor/github.com/jhump/protoreflect/desc/convert.go b/vendor/github.com/jhump/protoreflect/desc/convert.go new file mode 100644 index 0000000..9aa72a3 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/convert.go @@ -0,0 +1,296 @@ +package desc + +import ( + "errors" + "fmt" + "strings" + + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/jhump/protoreflect/desc/internal" + intn "github.com/jhump/protoreflect/internal" +) + +// CreateFileDescriptor instantiates a new file descriptor for the given descriptor proto. +// The file's direct dependencies must be provided. If the given dependencies do not include +// all of the file's dependencies or if the contents of the descriptors are internally +// inconsistent (e.g. contain unresolvable symbols) then an error is returned. +func CreateFileDescriptor(fd *descriptorpb.FileDescriptorProto, deps ...*FileDescriptor) (*FileDescriptor, error) { + return createFileDescriptor(fd, deps, nil) +} + +type descResolver struct { + files []*FileDescriptor + importResolver *ImportResolver + fromPath string +} + +func (r *descResolver) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + resolvedPath := r.importResolver.ResolveImport(r.fromPath, path) + d := r.findFileByPath(resolvedPath) + if d != nil { + return d, nil + } + if resolvedPath != path { + d := r.findFileByPath(path) + if d != nil { + return d, nil + } + } + return nil, protoregistry.NotFound +} + +func (r *descResolver) findFileByPath(path string) protoreflect.FileDescriptor { + for _, fd := range r.files { + if fd.GetName() == path { + return fd.UnwrapFile() + } + } + return nil +} + +func (r *descResolver) FindDescriptorByName(n protoreflect.FullName) (protoreflect.Descriptor, error) { + for _, fd := range r.files { + d := fd.FindSymbol(string(n)) + if d != nil { + return d.(DescriptorWrapper).Unwrap(), nil + } + } + return nil, protoregistry.NotFound +} + +func createFileDescriptor(fd *descriptorpb.FileDescriptorProto, deps []*FileDescriptor, r *ImportResolver) (*FileDescriptor, error) { + dr := &descResolver{files: deps, importResolver: r, fromPath: fd.GetName()} + d, err := protodesc.NewFile(fd, dr) + if err != nil { + return nil, err + } + + // make sure cache has dependencies populated + cache := mapCache{} + for _, dep := range deps { + fd, err := dr.FindFileByPath(dep.GetName()) + if err != nil { + return nil, err + } + cache.put(fd, dep) + } + + return convertFile(d, fd, cache) +} + +func convertFile(d protoreflect.FileDescriptor, fd *descriptorpb.FileDescriptorProto, cache descriptorCache) (*FileDescriptor, error) { + ret := &FileDescriptor{ + wrapped: d, + proto: fd, + symbols: map[string]Descriptor{}, + fieldIndex: map[string]map[int32]*FieldDescriptor{}, + } + cache.put(d, ret) + + // populate references to file descriptor dependencies + ret.deps = make([]*FileDescriptor, len(fd.GetDependency())) + for i := 0; i < d.Imports().Len(); i++ { + f := d.Imports().Get(i).FileDescriptor + if c := cache.get(f); c != nil { + ret.deps[i] = c.(*FileDescriptor) + } else if c, err := wrapFile(f, cache); err != nil { + return nil, err + } else { + ret.deps[i] = c + } + } + ret.publicDeps = make([]*FileDescriptor, len(fd.GetPublicDependency())) + for i, pd := range fd.GetPublicDependency() { + ret.publicDeps[i] = ret.deps[pd] + } + ret.weakDeps = make([]*FileDescriptor, len(fd.GetWeakDependency())) + for i, wd := range fd.GetWeakDependency() { + ret.weakDeps[i] = ret.deps[wd] + } + + // populate all tables of child descriptors + path := make([]int32, 1, 8) + path[0] = internal.File_messagesTag + for i := 0; i < d.Messages().Len(); i++ { + src := d.Messages().Get(i) + srcProto := fd.GetMessageType()[src.Index()] + md := createMessageDescriptor(ret, ret, src, srcProto, ret.symbols, cache, append(path, int32(i))) + ret.symbols[string(src.FullName())] = md + ret.messages = append(ret.messages, md) + } + path[0] = internal.File_enumsTag + for i := 0; i < d.Enums().Len(); i++ { + src := d.Enums().Get(i) + srcProto := fd.GetEnumType()[src.Index()] + ed := createEnumDescriptor(ret, ret, src, srcProto, ret.symbols, cache, append(path, int32(i))) + ret.symbols[string(src.FullName())] = ed + ret.enums = append(ret.enums, ed) + } + path[0] = internal.File_extensionsTag + for i := 0; i < d.Extensions().Len(); i++ { + src := d.Extensions().Get(i) + srcProto := fd.GetExtension()[src.Index()] + exd := createFieldDescriptor(ret, ret, src, srcProto, cache, append(path, int32(i))) + ret.symbols[string(src.FullName())] = exd + ret.extensions = append(ret.extensions, exd) + } + path[0] = internal.File_servicesTag + for i := 0; i < d.Services().Len(); i++ { + src := d.Services().Get(i) + srcProto := fd.GetService()[src.Index()] + sd := createServiceDescriptor(ret, src, srcProto, ret.symbols, append(path, int32(i))) + ret.symbols[string(src.FullName())] = sd + ret.services = append(ret.services, sd) + } + + ret.sourceInfo = internal.CreateSourceInfoMap(fd) + ret.sourceInfoRecomputeFunc = ret.recomputeSourceInfo + + // now we can resolve all type references and source code info + for _, md := range ret.messages { + if err := md.resolve(cache); err != nil { + return nil, err + } + } + path[0] = internal.File_extensionsTag + for _, exd := range ret.extensions { + if err := exd.resolve(cache); err != nil { + return nil, err + } + } + path[0] = internal.File_servicesTag + for _, sd := range ret.services { + if err := sd.resolve(cache); err != nil { + return nil, err + } + } + + return ret, nil +} + +// CreateFileDescriptors constructs a set of descriptors, one for each of the +// given descriptor protos. The given set of descriptor protos must include all +// transitive dependencies for every file. +func CreateFileDescriptors(fds []*descriptorpb.FileDescriptorProto) (map[string]*FileDescriptor, error) { + return createFileDescriptors(fds, nil) +} + +func createFileDescriptors(fds []*descriptorpb.FileDescriptorProto, r *ImportResolver) (map[string]*FileDescriptor, error) { + if len(fds) == 0 { + return nil, nil + } + files := map[string]*descriptorpb.FileDescriptorProto{} + resolved := map[string]*FileDescriptor{} + var name string + for _, fd := range fds { + name = fd.GetName() + files[name] = fd + } + for _, fd := range fds { + _, err := createFromSet(fd.GetName(), r, nil, files, resolved) + if err != nil { + return nil, err + } + } + return resolved, nil +} + +// ToFileDescriptorSet creates a FileDescriptorSet proto that contains all of the given +// file descriptors and their transitive dependencies. The files are topologically sorted +// so that a file will always appear after its dependencies. +func ToFileDescriptorSet(fds ...*FileDescriptor) *descriptorpb.FileDescriptorSet { + var fdps []*descriptorpb.FileDescriptorProto + addAllFiles(fds, &fdps, map[string]struct{}{}) + return &descriptorpb.FileDescriptorSet{File: fdps} +} + +func addAllFiles(src []*FileDescriptor, results *[]*descriptorpb.FileDescriptorProto, seen map[string]struct{}) { + for _, fd := range src { + if _, ok := seen[fd.GetName()]; ok { + continue + } + seen[fd.GetName()] = struct{}{} + addAllFiles(fd.GetDependencies(), results, seen) + *results = append(*results, fd.AsFileDescriptorProto()) + } +} + +// CreateFileDescriptorFromSet creates a descriptor from the given file descriptor set. The +// set's *last* file will be the returned descriptor. The set's remaining files must comprise +// the full set of transitive dependencies of that last file. This is the same format and +// order used by protoc when emitting a FileDescriptorSet file with an invocation like so: +// +// protoc --descriptor_set_out=./test.protoset --include_imports -I. test.proto +func CreateFileDescriptorFromSet(fds *descriptorpb.FileDescriptorSet) (*FileDescriptor, error) { + return createFileDescriptorFromSet(fds, nil) +} + +func createFileDescriptorFromSet(fds *descriptorpb.FileDescriptorSet, r *ImportResolver) (*FileDescriptor, error) { + result, err := createFileDescriptorsFromSet(fds, r) + if err != nil { + return nil, err + } + files := fds.GetFile() + lastFilename := files[len(files)-1].GetName() + return result[lastFilename], nil +} + +// CreateFileDescriptorsFromSet creates file descriptors from the given file descriptor set. +// The returned map includes all files in the set, keyed b name. The set must include the +// full set of transitive dependencies for all files therein or else a link error will occur +// and be returned instead of the slice of descriptors. This is the same format used by +// protoc when a FileDescriptorSet file with an invocation like so: +// +// protoc --descriptor_set_out=./test.protoset --include_imports -I. test.proto +func CreateFileDescriptorsFromSet(fds *descriptorpb.FileDescriptorSet) (map[string]*FileDescriptor, error) { + return createFileDescriptorsFromSet(fds, nil) +} + +func createFileDescriptorsFromSet(fds *descriptorpb.FileDescriptorSet, r *ImportResolver) (map[string]*FileDescriptor, error) { + files := fds.GetFile() + if len(files) == 0 { + return nil, errors.New("file descriptor set is empty") + } + return createFileDescriptors(files, r) +} + +// createFromSet creates a descriptor for the given filename. It recursively +// creates descriptors for the given file's dependencies. +func createFromSet(filename string, r *ImportResolver, seen []string, files map[string]*descriptorpb.FileDescriptorProto, resolved map[string]*FileDescriptor) (*FileDescriptor, error) { + for _, s := range seen { + if filename == s { + return nil, fmt.Errorf("cycle in imports: %s", strings.Join(append(seen, filename), " -> ")) + } + } + seen = append(seen, filename) + + if d, ok := resolved[filename]; ok { + return d, nil + } + fdp := files[filename] + if fdp == nil { + return nil, intn.ErrNoSuchFile(filename) + } + deps := make([]*FileDescriptor, len(fdp.GetDependency())) + for i, depName := range fdp.GetDependency() { + resolvedDep := r.ResolveImport(filename, depName) + dep, err := createFromSet(resolvedDep, r, seen, files, resolved) + if _, ok := err.(intn.ErrNoSuchFile); ok && resolvedDep != depName { + dep, err = createFromSet(depName, r, seen, files, resolved) + } + if err != nil { + return nil, err + } + deps[i] = dep + } + d, err := createFileDescriptor(fdp, deps, r) + if err != nil { + return nil, err + } + resolved[filename] = d + return d, nil +} diff --git a/vendor/github.com/jhump/protoreflect/desc/descriptor.go b/vendor/github.com/jhump/protoreflect/desc/descriptor.go new file mode 100644 index 0000000..6903a3a --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/descriptor.go @@ -0,0 +1,1835 @@ +package desc + +import ( + "bytes" + "fmt" + "sort" + "strconv" + "unicode" + "unicode/utf8" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/jhump/protoreflect/desc/internal" +) + +// Descriptor is the common interface implemented by all descriptor objects. +type Descriptor interface { + // GetName returns the name of the object described by the descriptor. This will + // be a base name that does not include enclosing message names or the package name. + // For file descriptors, this indicates the path and name to the described file. + GetName() string + // GetFullyQualifiedName returns the fully-qualified name of the object described by + // the descriptor. This will include the package name and any enclosing message names. + // For file descriptors, this returns the path and name to the described file (same as + // GetName). + GetFullyQualifiedName() string + // GetParent returns the enclosing element in a proto source file. If the described + // object is a top-level object, this returns the file descriptor. Otherwise, it returns + // the element in which the described object was declared. File descriptors have no + // parent and return nil. + GetParent() Descriptor + // GetFile returns the file descriptor in which this element was declared. File + // descriptors return themselves. + GetFile() *FileDescriptor + // GetOptions returns the options proto containing options for the described element. + GetOptions() proto.Message + // GetSourceInfo returns any source code information that was present in the file + // descriptor. Source code info is optional. If no source code info is available for + // the element (including if there is none at all in the file descriptor) then this + // returns nil + GetSourceInfo() *descriptorpb.SourceCodeInfo_Location + // AsProto returns the underlying descriptor proto for this descriptor. + AsProto() proto.Message +} + +type sourceInfoRecomputeFunc = internal.SourceInfoComputeFunc + +// FileDescriptor describes a proto source file. +type FileDescriptor struct { + wrapped protoreflect.FileDescriptor + proto *descriptorpb.FileDescriptorProto + symbols map[string]Descriptor + deps []*FileDescriptor + publicDeps []*FileDescriptor + weakDeps []*FileDescriptor + messages []*MessageDescriptor + enums []*EnumDescriptor + extensions []*FieldDescriptor + services []*ServiceDescriptor + fieldIndex map[string]map[int32]*FieldDescriptor + sourceInfo internal.SourceInfoMap + sourceInfoRecomputeFunc +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapFile, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (fd *FileDescriptor) Unwrap() protoreflect.Descriptor { + return fd.wrapped +} + +// UnwrapFile returns the underlying protoreflect.FileDescriptor. +func (fd *FileDescriptor) UnwrapFile() protoreflect.FileDescriptor { + return fd.wrapped +} + +func (fd *FileDescriptor) recomputeSourceInfo() { + internal.PopulateSourceInfoMap(fd.proto, fd.sourceInfo) +} + +func (fd *FileDescriptor) registerField(field *FieldDescriptor) { + fields := fd.fieldIndex[field.owner.GetFullyQualifiedName()] + if fields == nil { + fields = map[int32]*FieldDescriptor{} + fd.fieldIndex[field.owner.GetFullyQualifiedName()] = fields + } + fields[field.GetNumber()] = field +} + +// GetName returns the name of the file, as it was given to the protoc invocation +// to compile it, possibly including path (relative to a directory in the proto +// import path). +func (fd *FileDescriptor) GetName() string { + return fd.wrapped.Path() +} + +// GetFullyQualifiedName returns the name of the file, same as GetName. It is +// present to satisfy the Descriptor interface. +func (fd *FileDescriptor) GetFullyQualifiedName() string { + return fd.wrapped.Path() +} + +// GetPackage returns the name of the package declared in the file. +func (fd *FileDescriptor) GetPackage() string { + return string(fd.wrapped.Package()) +} + +// GetParent always returns nil: files are the root of descriptor hierarchies. +// Is it present to satisfy the Descriptor interface. +func (fd *FileDescriptor) GetParent() Descriptor { + return nil +} + +// GetFile returns the receiver, which is a file descriptor. This is present +// to satisfy the Descriptor interface. +func (fd *FileDescriptor) GetFile() *FileDescriptor { + return fd +} + +// GetOptions returns the file's options. Most usages will be more interested +// in GetFileOptions, which has a concrete return type. This generic version +// is present to satisfy the Descriptor interface. +func (fd *FileDescriptor) GetOptions() proto.Message { + return fd.proto.GetOptions() +} + +// GetFileOptions returns the file's options. +func (fd *FileDescriptor) GetFileOptions() *descriptorpb.FileOptions { + return fd.proto.GetOptions() +} + +// GetSourceInfo returns nil for files. It is present to satisfy the Descriptor +// interface. +func (fd *FileDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return nil +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsFileDescriptorProto, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (fd *FileDescriptor) AsProto() proto.Message { + return fd.proto +} + +// AsFileDescriptorProto returns the underlying descriptor proto. +func (fd *FileDescriptor) AsFileDescriptorProto() *descriptorpb.FileDescriptorProto { + return fd.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (fd *FileDescriptor) String() string { + return fd.proto.String() +} + +// IsProto3 returns true if the file declares a syntax of "proto3". +func (fd *FileDescriptor) IsProto3() bool { + return fd.wrapped.Syntax() == protoreflect.Proto3 +} + +// GetDependencies returns all of this file's dependencies. These correspond to +// import statements in the file. +func (fd *FileDescriptor) GetDependencies() []*FileDescriptor { + return fd.deps +} + +// GetPublicDependencies returns all of this file's public dependencies. These +// correspond to public import statements in the file. +func (fd *FileDescriptor) GetPublicDependencies() []*FileDescriptor { + return fd.publicDeps +} + +// GetWeakDependencies returns all of this file's weak dependencies. These +// correspond to weak import statements in the file. +func (fd *FileDescriptor) GetWeakDependencies() []*FileDescriptor { + return fd.weakDeps +} + +// GetMessageTypes returns all top-level messages declared in this file. +func (fd *FileDescriptor) GetMessageTypes() []*MessageDescriptor { + return fd.messages +} + +// GetEnumTypes returns all top-level enums declared in this file. +func (fd *FileDescriptor) GetEnumTypes() []*EnumDescriptor { + return fd.enums +} + +// GetExtensions returns all top-level extensions declared in this file. +func (fd *FileDescriptor) GetExtensions() []*FieldDescriptor { + return fd.extensions +} + +// GetServices returns all services declared in this file. +func (fd *FileDescriptor) GetServices() []*ServiceDescriptor { + return fd.services +} + +// FindSymbol returns the descriptor contained within this file for the +// element with the given fully-qualified symbol name. If no such element +// exists then this method returns nil. +func (fd *FileDescriptor) FindSymbol(symbol string) Descriptor { + if len(symbol) == 0 { + return nil + } + if symbol[0] == '.' { + symbol = symbol[1:] + } + if ret := fd.symbols[symbol]; ret != nil { + return ret + } + + // allow accessing symbols through public imports, too + for _, dep := range fd.GetPublicDependencies() { + if ret := dep.FindSymbol(symbol); ret != nil { + return ret + } + } + + // not found + return nil +} + +// FindMessage finds the message with the given fully-qualified name. If no +// such element exists in this file then nil is returned. +func (fd *FileDescriptor) FindMessage(msgName string) *MessageDescriptor { + if md, ok := fd.symbols[msgName].(*MessageDescriptor); ok { + return md + } else { + return nil + } +} + +// FindEnum finds the enum with the given fully-qualified name. If no such +// element exists in this file then nil is returned. +func (fd *FileDescriptor) FindEnum(enumName string) *EnumDescriptor { + if ed, ok := fd.symbols[enumName].(*EnumDescriptor); ok { + return ed + } else { + return nil + } +} + +// FindService finds the service with the given fully-qualified name. If no +// such element exists in this file then nil is returned. +func (fd *FileDescriptor) FindService(serviceName string) *ServiceDescriptor { + if sd, ok := fd.symbols[serviceName].(*ServiceDescriptor); ok { + return sd + } else { + return nil + } +} + +// FindExtension finds the extension field for the given extended type name and +// tag number. If no such element exists in this file then nil is returned. +func (fd *FileDescriptor) FindExtension(extendeeName string, tagNumber int32) *FieldDescriptor { + if exd, ok := fd.fieldIndex[extendeeName][tagNumber]; ok && exd.IsExtension() { + return exd + } else { + return nil + } +} + +// FindExtensionByName finds the extension field with the given fully-qualified +// name. If no such element exists in this file then nil is returned. +func (fd *FileDescriptor) FindExtensionByName(extName string) *FieldDescriptor { + if exd, ok := fd.symbols[extName].(*FieldDescriptor); ok && exd.IsExtension() { + return exd + } else { + return nil + } +} + +// MessageDescriptor describes a protocol buffer message. +type MessageDescriptor struct { + wrapped protoreflect.MessageDescriptor + proto *descriptorpb.DescriptorProto + parent Descriptor + file *FileDescriptor + fields []*FieldDescriptor + nested []*MessageDescriptor + enums []*EnumDescriptor + extensions []*FieldDescriptor + oneOfs []*OneOfDescriptor + extRanges extRanges + sourceInfoPath []int32 + jsonNames jsonNameMap +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapMessage, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (md *MessageDescriptor) Unwrap() protoreflect.Descriptor { + return md.wrapped +} + +// UnwrapMessage returns the underlying protoreflect.MessageDescriptor. +func (md *MessageDescriptor) UnwrapMessage() protoreflect.MessageDescriptor { + return md.wrapped +} + +func createMessageDescriptor(fd *FileDescriptor, parent Descriptor, md protoreflect.MessageDescriptor, mdp *descriptorpb.DescriptorProto, symbols map[string]Descriptor, cache descriptorCache, path []int32) *MessageDescriptor { + ret := &MessageDescriptor{ + wrapped: md, + proto: mdp, + parent: parent, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } + cache.put(md, ret) + path = append(path, internal.Message_nestedMessagesTag) + for i := 0; i < md.Messages().Len(); i++ { + src := md.Messages().Get(i) + srcProto := mdp.GetNestedType()[src.Index()] + nmd := createMessageDescriptor(fd, ret, src, srcProto, symbols, cache, append(path, int32(i))) + symbols[string(src.FullName())] = nmd + ret.nested = append(ret.nested, nmd) + } + path[len(path)-1] = internal.Message_enumsTag + for i := 0; i < md.Enums().Len(); i++ { + src := md.Enums().Get(i) + srcProto := mdp.GetEnumType()[src.Index()] + ed := createEnumDescriptor(fd, ret, src, srcProto, symbols, cache, append(path, int32(i))) + symbols[string(src.FullName())] = ed + ret.enums = append(ret.enums, ed) + } + path[len(path)-1] = internal.Message_fieldsTag + for i := 0; i < md.Fields().Len(); i++ { + src := md.Fields().Get(i) + srcProto := mdp.GetField()[src.Index()] + fld := createFieldDescriptor(fd, ret, src, srcProto, cache, append(path, int32(i))) + symbols[string(src.FullName())] = fld + ret.fields = append(ret.fields, fld) + } + path[len(path)-1] = internal.Message_extensionsTag + for i := 0; i < md.Extensions().Len(); i++ { + src := md.Extensions().Get(i) + srcProto := mdp.GetExtension()[src.Index()] + exd := createFieldDescriptor(fd, ret, src, srcProto, cache, append(path, int32(i))) + symbols[string(src.FullName())] = exd + ret.extensions = append(ret.extensions, exd) + } + path[len(path)-1] = internal.Message_oneOfsTag + for i := 0; i < md.Oneofs().Len(); i++ { + src := md.Oneofs().Get(i) + srcProto := mdp.GetOneofDecl()[src.Index()] + od := createOneOfDescriptor(fd, ret, i, src, srcProto, append(path, int32(i))) + symbols[string(src.FullName())] = od + ret.oneOfs = append(ret.oneOfs, od) + } + for _, r := range mdp.GetExtensionRange() { + // proto.ExtensionRange is inclusive (and that's how extension ranges are defined in code). + // but protoc converts range to exclusive end in descriptor, so we must convert back + end := r.GetEnd() - 1 + ret.extRanges = append(ret.extRanges, proto.ExtensionRange{ + Start: r.GetStart(), + End: end}) + } + sort.Sort(ret.extRanges) + + return ret +} + +func (md *MessageDescriptor) resolve(cache descriptorCache) error { + for _, nmd := range md.nested { + if err := nmd.resolve(cache); err != nil { + return err + } + } + for _, fld := range md.fields { + if err := fld.resolve(cache); err != nil { + return err + } + } + for _, exd := range md.extensions { + if err := exd.resolve(cache); err != nil { + return err + } + } + return nil +} + +// GetName returns the simple (unqualified) name of the message. +func (md *MessageDescriptor) GetName() string { + return string(md.wrapped.Name()) +} + +// GetFullyQualifiedName returns the fully qualified name of the message. This +// includes the package name (if there is one) as well as the names of any +// enclosing messages. +func (md *MessageDescriptor) GetFullyQualifiedName() string { + return string(md.wrapped.FullName()) +} + +// GetParent returns the message's enclosing descriptor. For top-level messages, +// this will be a file descriptor. Otherwise it will be the descriptor for the +// enclosing message. +func (md *MessageDescriptor) GetParent() Descriptor { + return md.parent +} + +// GetFile returns the descriptor for the file in which this message is defined. +func (md *MessageDescriptor) GetFile() *FileDescriptor { + return md.file +} + +// GetOptions returns the message's options. Most usages will be more interested +// in GetMessageOptions, which has a concrete return type. This generic version +// is present to satisfy the Descriptor interface. +func (md *MessageDescriptor) GetOptions() proto.Message { + return md.proto.GetOptions() +} + +// GetMessageOptions returns the message's options. +func (md *MessageDescriptor) GetMessageOptions() *descriptorpb.MessageOptions { + return md.proto.GetOptions() +} + +// GetSourceInfo returns source info for the message, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// message was defined and also contains comments associated with the message +// definition. +func (md *MessageDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return md.file.sourceInfo.Get(md.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsDescriptorProto, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (md *MessageDescriptor) AsProto() proto.Message { + return md.proto +} + +// AsDescriptorProto returns the underlying descriptor proto. +func (md *MessageDescriptor) AsDescriptorProto() *descriptorpb.DescriptorProto { + return md.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (md *MessageDescriptor) String() string { + return md.proto.String() +} + +// IsMapEntry returns true if this is a synthetic message type that represents an entry +// in a map field. +func (md *MessageDescriptor) IsMapEntry() bool { + return md.wrapped.IsMapEntry() +} + +// GetFields returns all of the fields for this message. +func (md *MessageDescriptor) GetFields() []*FieldDescriptor { + return md.fields +} + +// GetNestedMessageTypes returns all of the message types declared inside this message. +func (md *MessageDescriptor) GetNestedMessageTypes() []*MessageDescriptor { + return md.nested +} + +// GetNestedEnumTypes returns all of the enums declared inside this message. +func (md *MessageDescriptor) GetNestedEnumTypes() []*EnumDescriptor { + return md.enums +} + +// GetNestedExtensions returns all of the extensions declared inside this message. +func (md *MessageDescriptor) GetNestedExtensions() []*FieldDescriptor { + return md.extensions +} + +// GetOneOfs returns all of the one-of field sets declared inside this message. +func (md *MessageDescriptor) GetOneOfs() []*OneOfDescriptor { + return md.oneOfs +} + +// IsProto3 returns true if the file in which this message is defined declares a syntax of "proto3". +func (md *MessageDescriptor) IsProto3() bool { + return md.file.IsProto3() +} + +// GetExtensionRanges returns the ranges of extension field numbers for this message. +func (md *MessageDescriptor) GetExtensionRanges() []proto.ExtensionRange { + return md.extRanges +} + +// IsExtendable returns true if this message has any extension ranges. +func (md *MessageDescriptor) IsExtendable() bool { + return len(md.extRanges) > 0 +} + +// IsExtension returns true if the given tag number is within any of this message's +// extension ranges. +func (md *MessageDescriptor) IsExtension(tagNumber int32) bool { + return md.extRanges.IsExtension(tagNumber) +} + +type extRanges []proto.ExtensionRange + +func (er extRanges) String() string { + var buf bytes.Buffer + first := true + for _, r := range er { + if first { + first = false + } else { + buf.WriteString(",") + } + fmt.Fprintf(&buf, "%d..%d", r.Start, r.End) + } + return buf.String() +} + +func (er extRanges) IsExtension(tagNumber int32) bool { + i := sort.Search(len(er), func(i int) bool { return er[i].End >= tagNumber }) + return i < len(er) && tagNumber >= er[i].Start +} + +func (er extRanges) Len() int { + return len(er) +} + +func (er extRanges) Less(i, j int) bool { + return er[i].Start < er[j].Start +} + +func (er extRanges) Swap(i, j int) { + er[i], er[j] = er[j], er[i] +} + +// FindFieldByName finds the field with the given name. If no such field exists +// then nil is returned. Only regular fields are returned, not extensions. +func (md *MessageDescriptor) FindFieldByName(fieldName string) *FieldDescriptor { + fqn := fmt.Sprintf("%s.%s", md.GetFullyQualifiedName(), fieldName) + if fd, ok := md.file.symbols[fqn].(*FieldDescriptor); ok && !fd.IsExtension() { + return fd + } else { + return nil + } +} + +// FindFieldByNumber finds the field with the given tag number. If no such field +// exists then nil is returned. Only regular fields are returned, not extensions. +func (md *MessageDescriptor) FindFieldByNumber(tagNumber int32) *FieldDescriptor { + if fd, ok := md.file.fieldIndex[md.GetFullyQualifiedName()][tagNumber]; ok && !fd.IsExtension() { + return fd + } else { + return nil + } +} + +// FieldDescriptor describes a field of a protocol buffer message. +type FieldDescriptor struct { + wrapped protoreflect.FieldDescriptor + proto *descriptorpb.FieldDescriptorProto + parent Descriptor + owner *MessageDescriptor + file *FileDescriptor + oneOf *OneOfDescriptor + msgType *MessageDescriptor + enumType *EnumDescriptor + sourceInfoPath []int32 + def memoizedDefault +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapField, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (fd *FieldDescriptor) Unwrap() protoreflect.Descriptor { + return fd.wrapped +} + +// UnwrapField returns the underlying protoreflect.FieldDescriptor. +func (fd *FieldDescriptor) UnwrapField() protoreflect.FieldDescriptor { + return fd.wrapped +} + +func createFieldDescriptor(fd *FileDescriptor, parent Descriptor, fld protoreflect.FieldDescriptor, fldp *descriptorpb.FieldDescriptorProto, cache descriptorCache, path []int32) *FieldDescriptor { + ret := &FieldDescriptor{ + wrapped: fld, + proto: fldp, + parent: parent, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } + cache.put(fld, ret) + if !fld.IsExtension() { + ret.owner = parent.(*MessageDescriptor) + } + // owner for extensions, field type (be it message or enum), and one-ofs get resolved later + return ret +} + +func descriptorType(d Descriptor) string { + switch d := d.(type) { + case *FileDescriptor: + return "a file" + case *MessageDescriptor: + return "a message" + case *FieldDescriptor: + if d.IsExtension() { + return "an extension" + } + return "a field" + case *OneOfDescriptor: + return "a oneof" + case *EnumDescriptor: + return "an enum" + case *EnumValueDescriptor: + return "an enum value" + case *ServiceDescriptor: + return "a service" + case *MethodDescriptor: + return "a method" + default: + return fmt.Sprintf("a %T", d) + } +} + +func (fd *FieldDescriptor) resolve(cache descriptorCache) error { + if fd.proto.OneofIndex != nil && fd.oneOf == nil { + return fmt.Errorf("could not link field %s to one-of index %d", fd.GetFullyQualifiedName(), *fd.proto.OneofIndex) + } + if fd.proto.GetType() == descriptorpb.FieldDescriptorProto_TYPE_ENUM { + desc, err := resolve(fd.file, fd.wrapped.Enum(), cache) + if err != nil { + return err + } + enumType, ok := desc.(*EnumDescriptor) + if !ok { + return fmt.Errorf("field %v indicates a type of enum, but references %q which is %s", fd.GetFullyQualifiedName(), fd.proto.GetTypeName(), descriptorType(desc)) + } + fd.enumType = enumType + } + if fd.proto.GetType() == descriptorpb.FieldDescriptorProto_TYPE_MESSAGE || fd.proto.GetType() == descriptorpb.FieldDescriptorProto_TYPE_GROUP { + desc, err := resolve(fd.file, fd.wrapped.Message(), cache) + if err != nil { + return err + } + msgType, ok := desc.(*MessageDescriptor) + if !ok { + return fmt.Errorf("field %v indicates a type of message, but references %q which is %s", fd.GetFullyQualifiedName(), fd.proto.GetTypeName(), descriptorType(desc)) + } + fd.msgType = msgType + } + if fd.IsExtension() { + desc, err := resolve(fd.file, fd.wrapped.ContainingMessage(), cache) + if err != nil { + return err + } + msgType, ok := desc.(*MessageDescriptor) + if !ok { + return fmt.Errorf("field %v extends %q which should be a message but is %s", fd.GetFullyQualifiedName(), fd.proto.GetExtendee(), descriptorType(desc)) + } + fd.owner = msgType + } + fd.file.registerField(fd) + return nil +} + +func (fd *FieldDescriptor) determineDefault() interface{} { + if fd.IsMap() { + return map[interface{}]interface{}(nil) + } else if fd.IsRepeated() { + return []interface{}(nil) + } else if fd.msgType != nil { + return nil + } + + proto3 := fd.file.IsProto3() + if !proto3 { + def := fd.AsFieldDescriptorProto().GetDefaultValue() + if def != "" { + ret := parseDefaultValue(fd, def) + if ret != nil { + return ret + } + // if we can't parse default value, fall-through to return normal default... + } + } + + switch fd.GetType() { + case descriptorpb.FieldDescriptorProto_TYPE_FIXED32, + descriptorpb.FieldDescriptorProto_TYPE_UINT32: + return uint32(0) + case descriptorpb.FieldDescriptorProto_TYPE_SFIXED32, + descriptorpb.FieldDescriptorProto_TYPE_INT32, + descriptorpb.FieldDescriptorProto_TYPE_SINT32: + return int32(0) + case descriptorpb.FieldDescriptorProto_TYPE_FIXED64, + descriptorpb.FieldDescriptorProto_TYPE_UINT64: + return uint64(0) + case descriptorpb.FieldDescriptorProto_TYPE_SFIXED64, + descriptorpb.FieldDescriptorProto_TYPE_INT64, + descriptorpb.FieldDescriptorProto_TYPE_SINT64: + return int64(0) + case descriptorpb.FieldDescriptorProto_TYPE_FLOAT: + return float32(0.0) + case descriptorpb.FieldDescriptorProto_TYPE_DOUBLE: + return float64(0.0) + case descriptorpb.FieldDescriptorProto_TYPE_BOOL: + return false + case descriptorpb.FieldDescriptorProto_TYPE_BYTES: + return []byte(nil) + case descriptorpb.FieldDescriptorProto_TYPE_STRING: + return "" + case descriptorpb.FieldDescriptorProto_TYPE_ENUM: + if proto3 { + return int32(0) + } + enumVals := fd.GetEnumType().GetValues() + if len(enumVals) > 0 { + return enumVals[0].GetNumber() + } else { + return int32(0) // WTF? + } + default: + panic(fmt.Sprintf("Unknown field type: %v", fd.GetType())) + } +} + +func parseDefaultValue(fd *FieldDescriptor, val string) interface{} { + switch fd.GetType() { + case descriptorpb.FieldDescriptorProto_TYPE_ENUM: + vd := fd.GetEnumType().FindValueByName(val) + if vd != nil { + return vd.GetNumber() + } + return nil + case descriptorpb.FieldDescriptorProto_TYPE_BOOL: + if val == "true" { + return true + } else if val == "false" { + return false + } + return nil + case descriptorpb.FieldDescriptorProto_TYPE_BYTES: + return []byte(unescape(val)) + case descriptorpb.FieldDescriptorProto_TYPE_STRING: + return val + case descriptorpb.FieldDescriptorProto_TYPE_FLOAT: + if f, err := strconv.ParseFloat(val, 32); err == nil { + return float32(f) + } else { + return float32(0) + } + case descriptorpb.FieldDescriptorProto_TYPE_DOUBLE: + if f, err := strconv.ParseFloat(val, 64); err == nil { + return f + } else { + return float64(0) + } + case descriptorpb.FieldDescriptorProto_TYPE_INT32, + descriptorpb.FieldDescriptorProto_TYPE_SINT32, + descriptorpb.FieldDescriptorProto_TYPE_SFIXED32: + if i, err := strconv.ParseInt(val, 10, 32); err == nil { + return int32(i) + } else { + return int32(0) + } + case descriptorpb.FieldDescriptorProto_TYPE_UINT32, + descriptorpb.FieldDescriptorProto_TYPE_FIXED32: + if i, err := strconv.ParseUint(val, 10, 32); err == nil { + return uint32(i) + } else { + return uint32(0) + } + case descriptorpb.FieldDescriptorProto_TYPE_INT64, + descriptorpb.FieldDescriptorProto_TYPE_SINT64, + descriptorpb.FieldDescriptorProto_TYPE_SFIXED64: + if i, err := strconv.ParseInt(val, 10, 64); err == nil { + return i + } else { + return int64(0) + } + case descriptorpb.FieldDescriptorProto_TYPE_UINT64, + descriptorpb.FieldDescriptorProto_TYPE_FIXED64: + if i, err := strconv.ParseUint(val, 10, 64); err == nil { + return i + } else { + return uint64(0) + } + default: + return nil + } +} + +func unescape(s string) string { + // protoc encodes default values for 'bytes' fields using C escaping, + // so this function reverses that escaping + out := make([]byte, 0, len(s)) + var buf [4]byte + for len(s) > 0 { + if s[0] != '\\' || len(s) < 2 { + // not escape sequence, or too short to be well-formed escape + out = append(out, s[0]) + s = s[1:] + } else if s[1] == 'x' || s[1] == 'X' { + n := matchPrefix(s[2:], 2, isHex) + if n == 0 { + // bad escape + out = append(out, s[:2]...) + s = s[2:] + } else { + c, err := strconv.ParseUint(s[2:2+n], 16, 8) + if err != nil { + // shouldn't really happen... + out = append(out, s[:2+n]...) + } else { + out = append(out, byte(c)) + } + s = s[2+n:] + } + } else if s[1] >= '0' && s[1] <= '7' { + n := 1 + matchPrefix(s[2:], 2, isOctal) + c, err := strconv.ParseUint(s[1:1+n], 8, 8) + if err != nil || c > 0xff { + out = append(out, s[:1+n]...) + } else { + out = append(out, byte(c)) + } + s = s[1+n:] + } else if s[1] == 'u' { + if len(s) < 6 { + // bad escape + out = append(out, s...) + s = s[len(s):] + } else { + c, err := strconv.ParseUint(s[2:6], 16, 16) + if err != nil { + // bad escape + out = append(out, s[:6]...) + } else { + w := utf8.EncodeRune(buf[:], rune(c)) + out = append(out, buf[:w]...) + } + s = s[6:] + } + } else if s[1] == 'U' { + if len(s) < 10 { + // bad escape + out = append(out, s...) + s = s[len(s):] + } else { + c, err := strconv.ParseUint(s[2:10], 16, 32) + if err != nil || c > 0x10ffff { + // bad escape + out = append(out, s[:10]...) + } else { + w := utf8.EncodeRune(buf[:], rune(c)) + out = append(out, buf[:w]...) + } + s = s[10:] + } + } else { + switch s[1] { + case 'a': + out = append(out, '\a') + case 'b': + out = append(out, '\b') + case 'f': + out = append(out, '\f') + case 'n': + out = append(out, '\n') + case 'r': + out = append(out, '\r') + case 't': + out = append(out, '\t') + case 'v': + out = append(out, '\v') + case '\\': + out = append(out, '\\') + case '\'': + out = append(out, '\'') + case '"': + out = append(out, '"') + case '?': + out = append(out, '?') + default: + // invalid escape, just copy it as-is + out = append(out, s[:2]...) + } + s = s[2:] + } + } + return string(out) +} + +func isOctal(b byte) bool { return b >= '0' && b <= '7' } +func isHex(b byte) bool { + return (b >= '0' && b <= '9') || (b >= 'a' && b <= 'f') || (b >= 'A' && b <= 'F') +} +func matchPrefix(s string, limit int, fn func(byte) bool) int { + l := len(s) + if l > limit { + l = limit + } + i := 0 + for ; i < l; i++ { + if !fn(s[i]) { + return i + } + } + return i +} + +// GetName returns the name of the field. +func (fd *FieldDescriptor) GetName() string { + return string(fd.wrapped.Name()) +} + +// GetNumber returns the tag number of this field. +func (fd *FieldDescriptor) GetNumber() int32 { + return int32(fd.wrapped.Number()) +} + +// GetFullyQualifiedName returns the fully qualified name of the field. Unlike +// GetName, this includes fully qualified name of the enclosing message for +// regular fields. +// +// For extension fields, this includes the package (if there is one) as well as +// any enclosing messages. The package and/or enclosing messages are for where +// the extension is defined, not the message it extends. +// +// If this field is part of a one-of, the fully qualified name does *not* +// include the name of the one-of, only of the enclosing message. +func (fd *FieldDescriptor) GetFullyQualifiedName() string { + return string(fd.wrapped.FullName()) +} + +// GetParent returns the fields's enclosing descriptor. For normal +// (non-extension) fields, this is the enclosing message. For extensions, this +// is the descriptor in which the extension is defined, not the message that is +// extended. The parent for an extension may be a file descriptor or a message, +// depending on where the extension is defined. +func (fd *FieldDescriptor) GetParent() Descriptor { + return fd.parent +} + +// GetFile returns the descriptor for the file in which this field is defined. +func (fd *FieldDescriptor) GetFile() *FileDescriptor { + return fd.file +} + +// GetOptions returns the field's options. Most usages will be more interested +// in GetFieldOptions, which has a concrete return type. This generic version +// is present to satisfy the Descriptor interface. +func (fd *FieldDescriptor) GetOptions() proto.Message { + return fd.proto.GetOptions() +} + +// GetFieldOptions returns the field's options. +func (fd *FieldDescriptor) GetFieldOptions() *descriptorpb.FieldOptions { + return fd.proto.GetOptions() +} + +// GetSourceInfo returns source info for the field, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// field was defined and also contains comments associated with the field +// definition. +func (fd *FieldDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return fd.file.sourceInfo.Get(fd.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsFieldDescriptorProto, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (fd *FieldDescriptor) AsProto() proto.Message { + return fd.proto +} + +// AsFieldDescriptorProto returns the underlying descriptor proto. +func (fd *FieldDescriptor) AsFieldDescriptorProto() *descriptorpb.FieldDescriptorProto { + return fd.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (fd *FieldDescriptor) String() string { + return fd.proto.String() +} + +// GetJSONName returns the name of the field as referenced in the message's JSON +// format. +func (fd *FieldDescriptor) GetJSONName() string { + if jsonName := fd.proto.JsonName; jsonName != nil { + // if json name is present, use its value + return *jsonName + } + // otherwise, compute the proper JSON name from the field name + return jsonCamelCase(fd.proto.GetName()) +} + +func jsonCamelCase(s string) string { + // This mirrors the implementation in protoc/C++ runtime and in the Java runtime: + // https://github.com/protocolbuffers/protobuf/blob/a104dffcb6b1958a424f5fa6f9e6bdc0ab9b6f9e/src/google/protobuf/descriptor.cc#L276 + // https://github.com/protocolbuffers/protobuf/blob/a1c886834425abb64a966231dd2c9dd84fb289b3/java/core/src/main/java/com/google/protobuf/Descriptors.java#L1286 + var buf bytes.Buffer + prevWasUnderscore := false + for _, r := range s { + if r == '_' { + prevWasUnderscore = true + continue + } + if prevWasUnderscore { + r = unicode.ToUpper(r) + prevWasUnderscore = false + } + buf.WriteRune(r) + } + return buf.String() +} + +// GetFullyQualifiedJSONName returns the JSON format name (same as GetJSONName), +// but includes the fully qualified name of the enclosing message. +// +// If the field is an extension, it will return the package name (if there is +// one) as well as the names of any enclosing messages. The package and/or +// enclosing messages are for where the extension is defined, not the message it +// extends. +func (fd *FieldDescriptor) GetFullyQualifiedJSONName() string { + parent := fd.GetParent() + switch parent := parent.(type) { + case *FileDescriptor: + pkg := parent.GetPackage() + if pkg == "" { + return fd.GetJSONName() + } + return fmt.Sprintf("%s.%s", pkg, fd.GetJSONName()) + default: + return fmt.Sprintf("%s.%s", parent.GetFullyQualifiedName(), fd.GetJSONName()) + } +} + +// GetOwner returns the message type that this field belongs to. If this is a normal +// field then this is the same as GetParent. But for extensions, this will be the +// extendee message whereas GetParent refers to where the extension was declared. +func (fd *FieldDescriptor) GetOwner() *MessageDescriptor { + return fd.owner +} + +// IsExtension returns true if this is an extension field. +func (fd *FieldDescriptor) IsExtension() bool { + return fd.wrapped.IsExtension() +} + +// GetOneOf returns the one-of field set to which this field belongs. If this field +// is not part of a one-of then this method returns nil. +func (fd *FieldDescriptor) GetOneOf() *OneOfDescriptor { + return fd.oneOf +} + +// GetType returns the type of this field. If the type indicates an enum, the +// enum type can be queried via GetEnumType. If the type indicates a message, the +// message type can be queried via GetMessageType. +func (fd *FieldDescriptor) GetType() descriptorpb.FieldDescriptorProto_Type { + return fd.proto.GetType() +} + +// GetLabel returns the label for this field. The label can be required (proto2-only), +// optional (default for proto3), or required. +func (fd *FieldDescriptor) GetLabel() descriptorpb.FieldDescriptorProto_Label { + return fd.proto.GetLabel() +} + +// IsRequired returns true if this field has the "required" label. +func (fd *FieldDescriptor) IsRequired() bool { + return fd.wrapped.Cardinality() == protoreflect.Required +} + +// IsRepeated returns true if this field has the "repeated" label. +func (fd *FieldDescriptor) IsRepeated() bool { + return fd.wrapped.Cardinality() == protoreflect.Repeated +} + +// IsProto3Optional returns true if this field has an explicit "optional" label +// and is in a "proto3" syntax file. Such fields, if they are normal fields (not +// extensions), will be nested in synthetic oneofs that contain only the single +// field. +func (fd *FieldDescriptor) IsProto3Optional() bool { + return fd.proto.GetProto3Optional() +} + +// HasPresence returns true if this field can distinguish when a value is +// present or not. Scalar fields in "proto3" syntax files, for example, return +// false since absent values are indistinguishable from zero values. +func (fd *FieldDescriptor) HasPresence() bool { + return fd.wrapped.HasPresence() +} + +// IsMap returns true if this is a map field. If so, it will have the "repeated" +// label its type will be a message that represents a map entry. The map entry +// message will have exactly two fields: tag #1 is the key and tag #2 is the value. +func (fd *FieldDescriptor) IsMap() bool { + return fd.wrapped.IsMap() +} + +// GetMapKeyType returns the type of the key field if this is a map field. If it is +// not a map field, nil is returned. +func (fd *FieldDescriptor) GetMapKeyType() *FieldDescriptor { + if fd.IsMap() { + return fd.msgType.FindFieldByNumber(int32(1)) + } + return nil +} + +// GetMapValueType returns the type of the value field if this is a map field. If it +// is not a map field, nil is returned. +func (fd *FieldDescriptor) GetMapValueType() *FieldDescriptor { + if fd.IsMap() { + return fd.msgType.FindFieldByNumber(int32(2)) + } + return nil +} + +// GetMessageType returns the type of this field if it is a message type. If +// this field is not a message type, it returns nil. +func (fd *FieldDescriptor) GetMessageType() *MessageDescriptor { + return fd.msgType +} + +// GetEnumType returns the type of this field if it is an enum type. If this +// field is not an enum type, it returns nil. +func (fd *FieldDescriptor) GetEnumType() *EnumDescriptor { + return fd.enumType +} + +// GetDefaultValue returns the default value for this field. +// +// If this field represents a message type, this method always returns nil (even though +// for proto2 files, the default value should be a default instance of the message type). +// If the field represents an enum type, this method returns an int32 corresponding to the +// enum value. If this field is a map, it returns a nil map[interface{}]interface{}. If +// this field is repeated (and not a map), it returns a nil []interface{}. +// +// Otherwise, it returns the declared default value for the field or a zero value, if no +// default is declared or if the file is proto3. The type of said return value corresponds +// to the type of the field: +// +// +-------------------------+-----------+ +// | Declared Type | Go Type | +// +-------------------------+-----------+ +// | int32, sint32, sfixed32 | int32 | +// | int64, sint64, sfixed64 | int64 | +// | uint32, fixed32 | uint32 | +// | uint64, fixed64 | uint64 | +// | float | float32 | +// | double | double32 | +// | bool | bool | +// | string | string | +// | bytes | []byte | +// +-------------------------+-----------+ +func (fd *FieldDescriptor) GetDefaultValue() interface{} { + return fd.getDefaultValue() +} + +// EnumDescriptor describes an enum declared in a proto file. +type EnumDescriptor struct { + wrapped protoreflect.EnumDescriptor + proto *descriptorpb.EnumDescriptorProto + parent Descriptor + file *FileDescriptor + values []*EnumValueDescriptor + valuesByNum sortedValues + sourceInfoPath []int32 +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapEnum, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (ed *EnumDescriptor) Unwrap() protoreflect.Descriptor { + return ed.wrapped +} + +// UnwrapEnum returns the underlying protoreflect.EnumDescriptor. +func (ed *EnumDescriptor) UnwrapEnum() protoreflect.EnumDescriptor { + return ed.wrapped +} + +func createEnumDescriptor(fd *FileDescriptor, parent Descriptor, ed protoreflect.EnumDescriptor, edp *descriptorpb.EnumDescriptorProto, symbols map[string]Descriptor, cache descriptorCache, path []int32) *EnumDescriptor { + ret := &EnumDescriptor{ + wrapped: ed, + proto: edp, + parent: parent, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } + path = append(path, internal.Enum_valuesTag) + for i := 0; i < ed.Values().Len(); i++ { + src := ed.Values().Get(i) + srcProto := edp.GetValue()[src.Index()] + evd := createEnumValueDescriptor(fd, ret, src, srcProto, append(path, int32(i))) + symbols[string(src.FullName())] = evd + // NB: for backwards compatibility, also register the enum value as if + // scoped within the enum (counter-intuitively, enum value full names are + // scoped in the enum's parent element). EnumValueDescripto.GetFullyQualifiedName + // returns that alternate full name. + symbols[evd.GetFullyQualifiedName()] = evd + ret.values = append(ret.values, evd) + } + if len(ret.values) > 0 { + ret.valuesByNum = make(sortedValues, len(ret.values)) + copy(ret.valuesByNum, ret.values) + sort.Stable(ret.valuesByNum) + } + return ret +} + +type sortedValues []*EnumValueDescriptor + +func (sv sortedValues) Len() int { + return len(sv) +} + +func (sv sortedValues) Less(i, j int) bool { + return sv[i].GetNumber() < sv[j].GetNumber() +} + +func (sv sortedValues) Swap(i, j int) { + sv[i], sv[j] = sv[j], sv[i] + +} + +// GetName returns the simple (unqualified) name of the enum type. +func (ed *EnumDescriptor) GetName() string { + return string(ed.wrapped.Name()) +} + +// GetFullyQualifiedName returns the fully qualified name of the enum type. +// This includes the package name (if there is one) as well as the names of any +// enclosing messages. +func (ed *EnumDescriptor) GetFullyQualifiedName() string { + return string(ed.wrapped.FullName()) +} + +// GetParent returns the enum type's enclosing descriptor. For top-level enums, +// this will be a file descriptor. Otherwise it will be the descriptor for the +// enclosing message. +func (ed *EnumDescriptor) GetParent() Descriptor { + return ed.parent +} + +// GetFile returns the descriptor for the file in which this enum is defined. +func (ed *EnumDescriptor) GetFile() *FileDescriptor { + return ed.file +} + +// GetOptions returns the enum type's options. Most usages will be more +// interested in GetEnumOptions, which has a concrete return type. This generic +// version is present to satisfy the Descriptor interface. +func (ed *EnumDescriptor) GetOptions() proto.Message { + return ed.proto.GetOptions() +} + +// GetEnumOptions returns the enum type's options. +func (ed *EnumDescriptor) GetEnumOptions() *descriptorpb.EnumOptions { + return ed.proto.GetOptions() +} + +// GetSourceInfo returns source info for the enum type, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// enum type was defined and also contains comments associated with the enum +// definition. +func (ed *EnumDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return ed.file.sourceInfo.Get(ed.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsEnumDescriptorProto, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (ed *EnumDescriptor) AsProto() proto.Message { + return ed.proto +} + +// AsEnumDescriptorProto returns the underlying descriptor proto. +func (ed *EnumDescriptor) AsEnumDescriptorProto() *descriptorpb.EnumDescriptorProto { + return ed.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (ed *EnumDescriptor) String() string { + return ed.proto.String() +} + +// GetValues returns all of the allowed values defined for this enum. +func (ed *EnumDescriptor) GetValues() []*EnumValueDescriptor { + return ed.values +} + +// FindValueByName finds the enum value with the given name. If no such value exists +// then nil is returned. +func (ed *EnumDescriptor) FindValueByName(name string) *EnumValueDescriptor { + fqn := fmt.Sprintf("%s.%s", ed.GetFullyQualifiedName(), name) + if vd, ok := ed.file.symbols[fqn].(*EnumValueDescriptor); ok { + return vd + } else { + return nil + } +} + +// FindValueByNumber finds the value with the given numeric value. If no such value +// exists then nil is returned. If aliases are allowed and multiple values have the +// given number, the first declared value is returned. +func (ed *EnumDescriptor) FindValueByNumber(num int32) *EnumValueDescriptor { + index := sort.Search(len(ed.valuesByNum), func(i int) bool { return ed.valuesByNum[i].GetNumber() >= num }) + if index < len(ed.valuesByNum) { + vd := ed.valuesByNum[index] + if vd.GetNumber() == num { + return vd + } + } + return nil +} + +// EnumValueDescriptor describes an allowed value of an enum declared in a proto file. +type EnumValueDescriptor struct { + wrapped protoreflect.EnumValueDescriptor + proto *descriptorpb.EnumValueDescriptorProto + parent *EnumDescriptor + file *FileDescriptor + sourceInfoPath []int32 +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapEnumValue, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (vd *EnumValueDescriptor) Unwrap() protoreflect.Descriptor { + return vd.wrapped +} + +// UnwrapEnumValue returns the underlying protoreflect.EnumValueDescriptor. +func (vd *EnumValueDescriptor) UnwrapEnumValue() protoreflect.EnumValueDescriptor { + return vd.wrapped +} + +func createEnumValueDescriptor(fd *FileDescriptor, parent *EnumDescriptor, evd protoreflect.EnumValueDescriptor, evdp *descriptorpb.EnumValueDescriptorProto, path []int32) *EnumValueDescriptor { + return &EnumValueDescriptor{ + wrapped: evd, + proto: evdp, + parent: parent, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } +} + +func (vd *EnumValueDescriptor) resolve(path []int32) { + vd.sourceInfoPath = append([]int32(nil), path...) // defensive copy +} + +// GetName returns the name of the enum value. +func (vd *EnumValueDescriptor) GetName() string { + return string(vd.wrapped.Name()) +} + +// GetNumber returns the numeric value associated with this enum value. +func (vd *EnumValueDescriptor) GetNumber() int32 { + return int32(vd.wrapped.Number()) +} + +// GetFullyQualifiedName returns the fully qualified name of the enum value. +// Unlike GetName, this includes fully qualified name of the enclosing enum. +func (vd *EnumValueDescriptor) GetFullyQualifiedName() string { + // NB: Technically, we do not return the correct value. Enum values are + // scoped within the enclosing element, not within the enum itself (which + // is very non-intuitive, but it follows C++ scoping rules). The value + // returned from vd.wrapped.FullName() is correct. However, we return + // something different, just for backwards compatibility, as this package + // has always instead returned the name scoped inside the enum. + return fmt.Sprintf("%s.%s", vd.parent.GetFullyQualifiedName(), vd.wrapped.Name()) +} + +// GetParent returns the descriptor for the enum in which this enum value is +// defined. Most usages will prefer to use GetEnum, which has a concrete return +// type. This more generic method is present to satisfy the Descriptor interface. +func (vd *EnumValueDescriptor) GetParent() Descriptor { + return vd.parent +} + +// GetEnum returns the enum in which this enum value is defined. +func (vd *EnumValueDescriptor) GetEnum() *EnumDescriptor { + return vd.parent +} + +// GetFile returns the descriptor for the file in which this enum value is +// defined. +func (vd *EnumValueDescriptor) GetFile() *FileDescriptor { + return vd.file +} + +// GetOptions returns the enum value's options. Most usages will be more +// interested in GetEnumValueOptions, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (vd *EnumValueDescriptor) GetOptions() proto.Message { + return vd.proto.GetOptions() +} + +// GetEnumValueOptions returns the enum value's options. +func (vd *EnumValueDescriptor) GetEnumValueOptions() *descriptorpb.EnumValueOptions { + return vd.proto.GetOptions() +} + +// GetSourceInfo returns source info for the enum value, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// enum value was defined and also contains comments associated with the enum +// value definition. +func (vd *EnumValueDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return vd.file.sourceInfo.Get(vd.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsEnumValueDescriptorProto, which has a concrete return type. +// This generic version is present to satisfy the Descriptor interface. +func (vd *EnumValueDescriptor) AsProto() proto.Message { + return vd.proto +} + +// AsEnumValueDescriptorProto returns the underlying descriptor proto. +func (vd *EnumValueDescriptor) AsEnumValueDescriptorProto() *descriptorpb.EnumValueDescriptorProto { + return vd.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (vd *EnumValueDescriptor) String() string { + return vd.proto.String() +} + +// ServiceDescriptor describes an RPC service declared in a proto file. +type ServiceDescriptor struct { + wrapped protoreflect.ServiceDescriptor + proto *descriptorpb.ServiceDescriptorProto + file *FileDescriptor + methods []*MethodDescriptor + sourceInfoPath []int32 +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapService, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (sd *ServiceDescriptor) Unwrap() protoreflect.Descriptor { + return sd.wrapped +} + +// UnwrapService returns the underlying protoreflect.ServiceDescriptor. +func (sd *ServiceDescriptor) UnwrapService() protoreflect.ServiceDescriptor { + return sd.wrapped +} + +func createServiceDescriptor(fd *FileDescriptor, sd protoreflect.ServiceDescriptor, sdp *descriptorpb.ServiceDescriptorProto, symbols map[string]Descriptor, path []int32) *ServiceDescriptor { + ret := &ServiceDescriptor{ + wrapped: sd, + proto: sdp, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } + path = append(path, internal.Service_methodsTag) + for i := 0; i < sd.Methods().Len(); i++ { + src := sd.Methods().Get(i) + srcProto := sdp.GetMethod()[src.Index()] + md := createMethodDescriptor(fd, ret, src, srcProto, append(path, int32(i))) + symbols[string(src.FullName())] = md + ret.methods = append(ret.methods, md) + } + return ret +} + +func (sd *ServiceDescriptor) resolve(cache descriptorCache) error { + for _, md := range sd.methods { + if err := md.resolve(cache); err != nil { + return err + } + } + return nil +} + +// GetName returns the simple (unqualified) name of the service. +func (sd *ServiceDescriptor) GetName() string { + return string(sd.wrapped.Name()) +} + +// GetFullyQualifiedName returns the fully qualified name of the service. This +// includes the package name (if there is one). +func (sd *ServiceDescriptor) GetFullyQualifiedName() string { + return string(sd.wrapped.FullName()) +} + +// GetParent returns the descriptor for the file in which this service is +// defined. Most usages will prefer to use GetFile, which has a concrete return +// type. This more generic method is present to satisfy the Descriptor interface. +func (sd *ServiceDescriptor) GetParent() Descriptor { + return sd.file +} + +// GetFile returns the descriptor for the file in which this service is defined. +func (sd *ServiceDescriptor) GetFile() *FileDescriptor { + return sd.file +} + +// GetOptions returns the service's options. Most usages will be more interested +// in GetServiceOptions, which has a concrete return type. This generic version +// is present to satisfy the Descriptor interface. +func (sd *ServiceDescriptor) GetOptions() proto.Message { + return sd.proto.GetOptions() +} + +// GetServiceOptions returns the service's options. +func (sd *ServiceDescriptor) GetServiceOptions() *descriptorpb.ServiceOptions { + return sd.proto.GetOptions() +} + +// GetSourceInfo returns source info for the service, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// service was defined and also contains comments associated with the service +// definition. +func (sd *ServiceDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return sd.file.sourceInfo.Get(sd.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsServiceDescriptorProto, which has a concrete return type. +// This generic version is present to satisfy the Descriptor interface. +func (sd *ServiceDescriptor) AsProto() proto.Message { + return sd.proto +} + +// AsServiceDescriptorProto returns the underlying descriptor proto. +func (sd *ServiceDescriptor) AsServiceDescriptorProto() *descriptorpb.ServiceDescriptorProto { + return sd.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (sd *ServiceDescriptor) String() string { + return sd.proto.String() +} + +// GetMethods returns all of the RPC methods for this service. +func (sd *ServiceDescriptor) GetMethods() []*MethodDescriptor { + return sd.methods +} + +// FindMethodByName finds the method with the given name. If no such method exists +// then nil is returned. +func (sd *ServiceDescriptor) FindMethodByName(name string) *MethodDescriptor { + fqn := fmt.Sprintf("%s.%s", sd.GetFullyQualifiedName(), name) + if md, ok := sd.file.symbols[fqn].(*MethodDescriptor); ok { + return md + } else { + return nil + } +} + +// MethodDescriptor describes an RPC method declared in a proto file. +type MethodDescriptor struct { + wrapped protoreflect.MethodDescriptor + proto *descriptorpb.MethodDescriptorProto + parent *ServiceDescriptor + file *FileDescriptor + inType *MessageDescriptor + outType *MessageDescriptor + sourceInfoPath []int32 +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapMethod, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (md *MethodDescriptor) Unwrap() protoreflect.Descriptor { + return md.wrapped +} + +// UnwrapMethod returns the underlying protoreflect.MethodDescriptor. +func (md *MethodDescriptor) UnwrapMethod() protoreflect.MethodDescriptor { + return md.wrapped +} + +func createMethodDescriptor(fd *FileDescriptor, parent *ServiceDescriptor, md protoreflect.MethodDescriptor, mdp *descriptorpb.MethodDescriptorProto, path []int32) *MethodDescriptor { + // request and response types get resolved later + return &MethodDescriptor{ + wrapped: md, + proto: mdp, + parent: parent, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } +} + +func (md *MethodDescriptor) resolve(cache descriptorCache) error { + if desc, err := resolve(md.file, md.wrapped.Input(), cache); err != nil { + return err + } else { + msgType, ok := desc.(*MessageDescriptor) + if !ok { + return fmt.Errorf("method %v has request type %q which should be a message but is %s", md.GetFullyQualifiedName(), md.proto.GetInputType(), descriptorType(desc)) + } + md.inType = msgType + } + if desc, err := resolve(md.file, md.wrapped.Output(), cache); err != nil { + return err + } else { + msgType, ok := desc.(*MessageDescriptor) + if !ok { + return fmt.Errorf("method %v has response type %q which should be a message but is %s", md.GetFullyQualifiedName(), md.proto.GetOutputType(), descriptorType(desc)) + } + md.outType = msgType + } + return nil +} + +// GetName returns the name of the method. +func (md *MethodDescriptor) GetName() string { + return string(md.wrapped.Name()) +} + +// GetFullyQualifiedName returns the fully qualified name of the method. Unlike +// GetName, this includes fully qualified name of the enclosing service. +func (md *MethodDescriptor) GetFullyQualifiedName() string { + return string(md.wrapped.FullName()) +} + +// GetParent returns the descriptor for the service in which this method is +// defined. Most usages will prefer to use GetService, which has a concrete +// return type. This more generic method is present to satisfy the Descriptor +// interface. +func (md *MethodDescriptor) GetParent() Descriptor { + return md.parent +} + +// GetService returns the RPC service in which this method is declared. +func (md *MethodDescriptor) GetService() *ServiceDescriptor { + return md.parent +} + +// GetFile returns the descriptor for the file in which this method is defined. +func (md *MethodDescriptor) GetFile() *FileDescriptor { + return md.file +} + +// GetOptions returns the method's options. Most usages will be more interested +// in GetMethodOptions, which has a concrete return type. This generic version +// is present to satisfy the Descriptor interface. +func (md *MethodDescriptor) GetOptions() proto.Message { + return md.proto.GetOptions() +} + +// GetMethodOptions returns the method's options. +func (md *MethodDescriptor) GetMethodOptions() *descriptorpb.MethodOptions { + return md.proto.GetOptions() +} + +// GetSourceInfo returns source info for the method, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// method was defined and also contains comments associated with the method +// definition. +func (md *MethodDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return md.file.sourceInfo.Get(md.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsMethodDescriptorProto, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (md *MethodDescriptor) AsProto() proto.Message { + return md.proto +} + +// AsMethodDescriptorProto returns the underlying descriptor proto. +func (md *MethodDescriptor) AsMethodDescriptorProto() *descriptorpb.MethodDescriptorProto { + return md.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (md *MethodDescriptor) String() string { + return md.proto.String() +} + +// IsServerStreaming returns true if this is a server-streaming method. +func (md *MethodDescriptor) IsServerStreaming() bool { + return md.wrapped.IsStreamingServer() +} + +// IsClientStreaming returns true if this is a client-streaming method. +func (md *MethodDescriptor) IsClientStreaming() bool { + return md.wrapped.IsStreamingClient() +} + +// GetInputType returns the input type, or request type, of the RPC method. +func (md *MethodDescriptor) GetInputType() *MessageDescriptor { + return md.inType +} + +// GetOutputType returns the output type, or response type, of the RPC method. +func (md *MethodDescriptor) GetOutputType() *MessageDescriptor { + return md.outType +} + +// OneOfDescriptor describes a one-of field set declared in a protocol buffer message. +type OneOfDescriptor struct { + wrapped protoreflect.OneofDescriptor + proto *descriptorpb.OneofDescriptorProto + parent *MessageDescriptor + file *FileDescriptor + choices []*FieldDescriptor + sourceInfoPath []int32 +} + +// Unwrap returns the underlying protoreflect.Descriptor. Most usages will be more +// interested in UnwrapOneOf, which has a more specific return type. This generic +// version is present to satisfy the DescriptorWrapper interface. +func (od *OneOfDescriptor) Unwrap() protoreflect.Descriptor { + return od.wrapped +} + +// UnwrapOneOf returns the underlying protoreflect.OneofDescriptor. +func (od *OneOfDescriptor) UnwrapOneOf() protoreflect.OneofDescriptor { + return od.wrapped +} + +func createOneOfDescriptor(fd *FileDescriptor, parent *MessageDescriptor, index int, od protoreflect.OneofDescriptor, odp *descriptorpb.OneofDescriptorProto, path []int32) *OneOfDescriptor { + ret := &OneOfDescriptor{ + wrapped: od, + proto: odp, + parent: parent, + file: fd, + sourceInfoPath: append([]int32(nil), path...), // defensive copy + } + for _, f := range parent.fields { + oi := f.proto.OneofIndex + if oi != nil && *oi == int32(index) { + f.oneOf = ret + ret.choices = append(ret.choices, f) + } + } + return ret +} + +// GetName returns the name of the one-of. +func (od *OneOfDescriptor) GetName() string { + return string(od.wrapped.Name()) +} + +// GetFullyQualifiedName returns the fully qualified name of the one-of. Unlike +// GetName, this includes fully qualified name of the enclosing message. +func (od *OneOfDescriptor) GetFullyQualifiedName() string { + return string(od.wrapped.FullName()) +} + +// GetParent returns the descriptor for the message in which this one-of is +// defined. Most usages will prefer to use GetOwner, which has a concrete +// return type. This more generic method is present to satisfy the Descriptor +// interface. +func (od *OneOfDescriptor) GetParent() Descriptor { + return od.parent +} + +// GetOwner returns the message to which this one-of field set belongs. +func (od *OneOfDescriptor) GetOwner() *MessageDescriptor { + return od.parent +} + +// GetFile returns the descriptor for the file in which this one-fof is defined. +func (od *OneOfDescriptor) GetFile() *FileDescriptor { + return od.file +} + +// GetOptions returns the one-of's options. Most usages will be more interested +// in GetOneOfOptions, which has a concrete return type. This generic version +// is present to satisfy the Descriptor interface. +func (od *OneOfDescriptor) GetOptions() proto.Message { + return od.proto.GetOptions() +} + +// GetOneOfOptions returns the one-of's options. +func (od *OneOfDescriptor) GetOneOfOptions() *descriptorpb.OneofOptions { + return od.proto.GetOptions() +} + +// GetSourceInfo returns source info for the one-of, if present in the +// descriptor. Not all descriptors will contain source info. If non-nil, the +// returned info contains information about the location in the file where the +// one-of was defined and also contains comments associated with the one-of +// definition. +func (od *OneOfDescriptor) GetSourceInfo() *descriptorpb.SourceCodeInfo_Location { + return od.file.sourceInfo.Get(od.sourceInfoPath) +} + +// AsProto returns the underlying descriptor proto. Most usages will be more +// interested in AsOneofDescriptorProto, which has a concrete return type. This +// generic version is present to satisfy the Descriptor interface. +func (od *OneOfDescriptor) AsProto() proto.Message { + return od.proto +} + +// AsOneofDescriptorProto returns the underlying descriptor proto. +func (od *OneOfDescriptor) AsOneofDescriptorProto() *descriptorpb.OneofDescriptorProto { + return od.proto +} + +// String returns the underlying descriptor proto, in compact text format. +func (od *OneOfDescriptor) String() string { + return od.proto.String() +} + +// GetChoices returns the fields that are part of the one-of field set. At most one of +// these fields may be set for a given message. +func (od *OneOfDescriptor) GetChoices() []*FieldDescriptor { + return od.choices +} + +func (od *OneOfDescriptor) IsSynthetic() bool { + return od.wrapped.IsSynthetic() +} + +func resolve(fd *FileDescriptor, src protoreflect.Descriptor, cache descriptorCache) (Descriptor, error) { + d := cache.get(src) + if d != nil { + return d, nil + } + + fqn := string(src.FullName()) + + d = fd.FindSymbol(fqn) + if d != nil { + return d, nil + } + + for _, dep := range fd.deps { + d := dep.FindSymbol(fqn) + if d != nil { + return d, nil + } + } + + return nil, fmt.Errorf("file %q included an unresolvable reference to %q", fd.proto.GetName(), fqn) +} diff --git a/vendor/github.com/jhump/protoreflect/desc/descriptor_no_unsafe.go b/vendor/github.com/jhump/protoreflect/desc/descriptor_no_unsafe.go new file mode 100644 index 0000000..25d619a --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/descriptor_no_unsafe.go @@ -0,0 +1,30 @@ +//go:build appengine || gopherjs || purego +// +build appengine gopherjs purego + +// NB: other environments where unsafe is unappropriate should use "purego" build tag +// https://github.com/golang/go/issues/23172 + +package desc + +type jsonNameMap struct{} +type memoizedDefault struct{} + +// FindFieldByJSONName finds the field with the given JSON field name. If no such +// field exists then nil is returned. Only regular fields are returned, not +// extensions. +func (md *MessageDescriptor) FindFieldByJSONName(jsonName string) *FieldDescriptor { + // NB: With allowed use of unsafe, we use it to atomically define an index + // via atomic.LoadPointer/atomic.StorePointer. Without it, we skip the index + // and must do a linear scan of fields each time. + for _, f := range md.fields { + jn := f.GetJSONName() + if jn == jsonName { + return f + } + } + return nil +} + +func (fd *FieldDescriptor) getDefaultValue() interface{} { + return fd.determineDefault() +} diff --git a/vendor/github.com/jhump/protoreflect/desc/descriptor_unsafe.go b/vendor/github.com/jhump/protoreflect/desc/descriptor_unsafe.go new file mode 100644 index 0000000..691f0d8 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/descriptor_unsafe.go @@ -0,0 +1,59 @@ +//go:build !appengine && !gopherjs && !purego +// +build !appengine,!gopherjs,!purego + +// NB: other environments where unsafe is unappropriate should use "purego" build tag +// https://github.com/golang/go/issues/23172 + +package desc + +import ( + "sync/atomic" + "unsafe" +) + +type jsonNameMap map[string]*FieldDescriptor // loaded/stored atomically via atomic+unsafe +type memoizedDefault *interface{} // loaded/stored atomically via atomic+unsafe + +// FindFieldByJSONName finds the field with the given JSON field name. If no such +// field exists then nil is returned. Only regular fields are returned, not +// extensions. +func (md *MessageDescriptor) FindFieldByJSONName(jsonName string) *FieldDescriptor { + // NB: We don't want to eagerly index JSON names because many programs won't use it. + // So we want to do it lazily, but also make sure the result is thread-safe. So we + // atomically load/store the map as if it were a normal pointer. We don't use other + // mechanisms -- like sync.Mutex, sync.RWMutex, sync.Once, or atomic.Value -- to + // do this lazily because those types cannot be copied, and we'd rather not induce + // 'go vet' errors in programs that use descriptors and try to copy them. + // If multiple goroutines try to access the index at the same time, before it is + // built, they will all end up computing the index redundantly. Future reads of + // the index will use whatever was the "last one stored" by those racing goroutines. + // Since building the index is deterministic, this is fine: all indices computed + // will be the same. + addrOfJsonNames := (*unsafe.Pointer)(unsafe.Pointer(&md.jsonNames)) + jsonNames := atomic.LoadPointer(addrOfJsonNames) + var index map[string]*FieldDescriptor + if jsonNames == nil { + // slow path: compute the index + index = map[string]*FieldDescriptor{} + for _, f := range md.fields { + jn := f.GetJSONName() + index[jn] = f + } + atomic.StorePointer(addrOfJsonNames, *(*unsafe.Pointer)(unsafe.Pointer(&index))) + } else { + *(*unsafe.Pointer)(unsafe.Pointer(&index)) = jsonNames + } + return index[jsonName] +} + +func (fd *FieldDescriptor) getDefaultValue() interface{} { + addrOfDef := (*unsafe.Pointer)(unsafe.Pointer(&fd.def)) + def := atomic.LoadPointer(addrOfDef) + if def != nil { + return *(*interface{})(def) + } + // slow path: compute the default, potentially involves decoding value + d := fd.determineDefault() + atomic.StorePointer(addrOfDef, (unsafe.Pointer(&d))) + return d +} diff --git a/vendor/github.com/jhump/protoreflect/desc/doc.go b/vendor/github.com/jhump/protoreflect/desc/doc.go new file mode 100644 index 0000000..dfac5c7 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/doc.go @@ -0,0 +1,62 @@ +// Package desc contains "rich descriptors" for protocol buffers. The built-in +// descriptor types are simple protobuf messages, each one representing a +// different kind of element in the AST of a .proto source file. +// +// Because of this inherent "tree" quality, these build-in descriptors cannot +// refer to their enclosing file descriptor. Nor can a field descriptor refer to +// a message or enum descriptor that represents the field's type (for enum and +// nested message fields). All such links must instead be stringly typed. This +// limitation makes them much harder to use for doing interesting things with +// reflection. +// +// Without this package, resolving references to types is particularly complex. +// For example, resolving a field's type, the message type an extension extends, +// or the request and response types of an RPC method all require searching +// through symbols defined not only in the file in which these elements are +// declared but also in its transitive closure of dependencies. +// +// "Rich descriptors" avoid the need to deal with the complexities described +// above. A rich descriptor has all type references resolved and provides +// methods to access other rich descriptors for all referenced elements. Each +// rich descriptor has a usefully broad API, but does not try to mimic the full +// interface of the underlying descriptor proto. Instead, every rich descriptor +// provides access to that underlying proto, for extracting descriptor +// properties that are not immediately accessible through rich descriptor's +// methods. +// +// Also see the grpcreflect, dynamic, and grpcdynamic packages in this same +// repo to see just how useful rich descriptors really are. +// +// # Loading Descriptors +// +// Rich descriptors can be accessed in similar ways as their "poor" cousins +// (descriptor protos). Instead of using proto.FileDescriptor, use +// desc.LoadFileDescriptor. Message descriptors and extension field descriptors +// can also be easily accessed using desc.LoadMessageDescriptor and +// desc.LoadFieldDescriptorForExtension, respectively. +// +// If you are using the protoc-gen-gosrcinfo plugin (also in this repo), then +// the descriptors returned from these Load* functions will include source code +// information, and thus include comments for elements. +// +// # Creating Descriptors +// +// It is also possible create rich descriptors for proto messages that a given +// Go program doesn't even know about. For example, they could be loaded from a +// FileDescriptorSet file (which can be generated by protoc) or loaded from a +// server. This enables interesting things like dynamic clients: where a Go +// program can be an RPC client of a service it wasn't compiled to know about. +// +// You cannot create a message descriptor without also creating its enclosing +// file, because the enclosing file is what contains other relevant information +// like other symbols and dependencies/imports, which is how type references +// are resolved (such as when a field in a message has a type that is another +// message or enum). +// +// So the functions in this package for creating descriptors are all for +// creating *file* descriptors. See the various Create* functions for more +// information. +// +// Also see the desc/builder sub-package, for another API that makes it easier +// to synthesize descriptors programmatically. +package desc diff --git a/vendor/github.com/jhump/protoreflect/desc/imports.go b/vendor/github.com/jhump/protoreflect/desc/imports.go new file mode 100644 index 0000000..8e6a0d6 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/imports.go @@ -0,0 +1,360 @@ +package desc + +import ( + "fmt" + "path/filepath" + "reflect" + "strings" + "sync" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/descriptorpb" +) + +var ( + globalImportPathConf map[string]string + globalImportPathMu sync.RWMutex +) + +// RegisterImportPath registers an alternate import path for a given registered +// proto file path. For more details on why alternate import paths may need to +// be configured, see ImportResolver. +// +// This method panics if provided invalid input. An empty importPath is invalid. +// An un-registered registerPath is also invalid. For example, if an attempt is +// made to register the import path "foo/bar.proto" as "bar.proto", but there is +// no "bar.proto" registered in the Go protobuf runtime, this method will panic. +// This method also panics if an attempt is made to register the same import +// path more than once. +// +// This function works globally, applying to all descriptors loaded by this +// package. If you instead want more granular support for handling alternate +// import paths -- such as for a single invocation of a function in this +// package or when the alternate path is only used from one file (so you don't +// want the alternate path used when loading every other file), use an +// ImportResolver instead. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func RegisterImportPath(registerPath, importPath string) { + if len(importPath) == 0 { + panic("import path cannot be empty") + } + _, err := protoregistry.GlobalFiles.FindFileByPath(registerPath) + if err != nil { + panic(fmt.Sprintf("path %q is not a registered proto file", registerPath)) + } + globalImportPathMu.Lock() + defer globalImportPathMu.Unlock() + if reg := globalImportPathConf[importPath]; reg != "" { + panic(fmt.Sprintf("import path %q already registered for %s", importPath, reg)) + } + if globalImportPathConf == nil { + globalImportPathConf = map[string]string{} + } + globalImportPathConf[importPath] = registerPath +} + +// ResolveImport resolves the given import path. If it has been registered as an +// alternate via RegisterImportPath, the registered path is returned. Otherwise, +// the given import path is returned unchanged. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func ResolveImport(importPath string) string { + importPath = clean(importPath) + globalImportPathMu.RLock() + defer globalImportPathMu.RUnlock() + reg := globalImportPathConf[importPath] + if reg == "" { + return importPath + } + return reg +} + +// ImportResolver lets you work-around linking issues that are caused by +// mismatches between how a particular proto source file is registered in the Go +// protobuf runtime and how that same file is imported by other files. The file +// is registered using the same relative path given to protoc when the file is +// compiled (i.e. when Go code is generated). So if any file tries to import +// that source file, but using a different relative path, then a link error will +// occur when this package tries to load a descriptor for the importing file. +// +// For example, let's say we have two proto source files: "foo/bar.proto" and +// "fubar/baz.proto". The latter imports the former using a line like so: +// +// import "foo/bar.proto"; +// +// However, when protoc is invoked, the command-line args looks like so: +// +// protoc -Ifoo/ --go_out=foo/ bar.proto +// protoc -I./ -Ifubar/ --go_out=fubar/ baz.proto +// +// Because the path given to protoc is just "bar.proto" and "baz.proto", this is +// how they are registered in the Go protobuf runtime. So, when loading the +// descriptor for "fubar/baz.proto", we'll see an import path of "foo/bar.proto" +// but will find no file registered with that path: +// +// fd, err := desc.LoadFileDescriptor("baz.proto") +// // err will be non-nil, complaining that there is no such file +// // found named "foo/bar.proto" +// +// This can be remedied by registering alternate import paths using an +// ImportResolver. Continuing with the example above, the code below would fix +// any link issue: +// +// var r desc.ImportResolver +// r.RegisterImportPath("bar.proto", "foo/bar.proto") +// fd, err := r.LoadFileDescriptor("baz.proto") +// // err will be nil; descriptor successfully loaded! +// +// If there are files that are *always* imported using a different relative +// path then how they are registered, consider using the global +// RegisterImportPath function, so you don't have to use an ImportResolver for +// every file that imports it. +// +// Note that the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// customizing import paths for descriptor resolution is no longer necessary. +type ImportResolver struct { + children map[string]*ImportResolver + importPaths map[string]string + + // By default, an ImportResolver will fallback to consulting any paths + // registered via the top-level RegisterImportPath function. Setting this + // field to true will cause the ImportResolver to skip that fallback and + // only examine its own locally registered paths. + SkipFallbackRules bool +} + +// ResolveImport resolves the given import path in the context of the given +// source file. If a matching alternate has been registered with this resolver +// via a call to RegisterImportPath or RegisterImportPathFrom, then the +// registered path is returned. Otherwise, the given import path is returned +// unchanged. +func (r *ImportResolver) ResolveImport(source, importPath string) string { + if r != nil { + res := r.resolveImport(clean(source), clean(importPath)) + if res != "" { + return res + } + if r.SkipFallbackRules { + return importPath + } + } + return ResolveImport(importPath) +} + +func (r *ImportResolver) resolveImport(source, importPath string) string { + if source == "" { + return r.importPaths[importPath] + } + var car, cdr string + idx := strings.IndexRune(source, '/') + if idx < 0 { + car, cdr = source, "" + } else { + car, cdr = source[:idx], source[idx+1:] + } + ch := r.children[car] + if ch != nil { + if reg := ch.resolveImport(cdr, importPath); reg != "" { + return reg + } + } + return r.importPaths[importPath] +} + +// RegisterImportPath registers an alternate import path for a given registered +// proto file path with this resolver. Any appearance of the given import path +// when linking files will instead try to link the given registered path. If the +// registered path cannot be located, then linking will fallback to the actual +// imported path. +// +// This method will panic if given an empty path or if the same import path is +// registered more than once. +// +// To constrain the contexts where the given import path is to be re-written, +// use RegisterImportPathFrom instead. +func (r *ImportResolver) RegisterImportPath(registerPath, importPath string) { + r.RegisterImportPathFrom(registerPath, importPath, "") +} + +// RegisterImportPathFrom registers an alternate import path for a given +// registered proto file path with this resolver, but only for imports in the +// specified source context. +// +// The source context can be the name of a folder or a proto source file. Any +// appearance of the given import path in that context will instead try to link +// the given registered path. To be in context, the file that is being linked +// (i.e. the one whose import statement is being resolved) must be the same +// relative path of the source context or be a sub-path (i.e. a descendant of +// the source folder). +// +// If the registered path cannot be located, then linking will fallback to the +// actual imported path. +// +// This method will panic if given an empty path. The source context, on the +// other hand, is allowed to be blank. A blank source matches all files. This +// method also panics if the same import path is registered in the same source +// context more than once. +func (r *ImportResolver) RegisterImportPathFrom(registerPath, importPath, source string) { + importPath = clean(importPath) + if len(importPath) == 0 { + panic("import path cannot be empty") + } + registerPath = clean(registerPath) + if len(registerPath) == 0 { + panic("registered path cannot be empty") + } + r.registerImportPathFrom(registerPath, importPath, clean(source)) +} + +func (r *ImportResolver) registerImportPathFrom(registerPath, importPath, source string) { + if source == "" { + if r.importPaths == nil { + r.importPaths = map[string]string{} + } else if reg := r.importPaths[importPath]; reg != "" { + panic(fmt.Sprintf("already registered import path %q as %q", importPath, registerPath)) + } + r.importPaths[importPath] = registerPath + return + } + var car, cdr string + idx := strings.IndexRune(source, '/') + if idx < 0 { + car, cdr = source, "" + } else { + car, cdr = source[:idx], source[idx+1:] + } + ch := r.children[car] + if ch == nil { + if r.children == nil { + r.children = map[string]*ImportResolver{} + } + ch = &ImportResolver{} + r.children[car] = ch + } + ch.registerImportPathFrom(registerPath, importPath, cdr) +} + +// LoadFileDescriptor is the same as the package function of the same name, but +// any alternate paths configured in this resolver are used when linking the +// given descriptor proto. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadFileDescriptor(filePath string) (*FileDescriptor, error) { + return LoadFileDescriptor(filePath) +} + +// LoadMessageDescriptor is the same as the package function of the same name, +// but any alternate paths configured in this resolver are used when linking +// files for the returned descriptor. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadMessageDescriptor(msgName string) (*MessageDescriptor, error) { + return LoadMessageDescriptor(msgName) +} + +// LoadMessageDescriptorForMessage is the same as the package function of the +// same name, but any alternate paths configured in this resolver are used when +// linking files for the returned descriptor. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadMessageDescriptorForMessage(msg proto.Message) (*MessageDescriptor, error) { + return LoadMessageDescriptorForMessage(msg) +} + +// LoadMessageDescriptorForType is the same as the package function of the same +// name, but any alternate paths configured in this resolver are used when +// linking files for the returned descriptor. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadMessageDescriptorForType(msgType reflect.Type) (*MessageDescriptor, error) { + return LoadMessageDescriptorForType(msgType) +} + +// LoadEnumDescriptorForEnum is the same as the package function of the same +// name, but any alternate paths configured in this resolver are used when +// linking files for the returned descriptor. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadEnumDescriptorForEnum(enum protoEnum) (*EnumDescriptor, error) { + return LoadEnumDescriptorForEnum(enum) +} + +// LoadEnumDescriptorForType is the same as the package function of the same +// name, but any alternate paths configured in this resolver are used when +// linking files for the returned descriptor. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadEnumDescriptorForType(enumType reflect.Type) (*EnumDescriptor, error) { + return LoadEnumDescriptorForType(enumType) +} + +// LoadFieldDescriptorForExtension is the same as the package function of the +// same name, but any alternate paths configured in this resolver are used when +// linking files for the returned descriptor. +// +// Deprecated: the new protobuf runtime (v1.4+) verifies that import paths are +// correct and that descriptors can be linked during package initialization. So +// registering alternate paths is no longer useful or necessary. +func (r *ImportResolver) LoadFieldDescriptorForExtension(ext *proto.ExtensionDesc) (*FieldDescriptor, error) { + return LoadFieldDescriptorForExtension(ext) +} + +// CreateFileDescriptor is the same as the package function of the same name, +// but any alternate paths configured in this resolver are used when linking the +// given descriptor proto. +func (r *ImportResolver) CreateFileDescriptor(fdp *descriptorpb.FileDescriptorProto, deps ...*FileDescriptor) (*FileDescriptor, error) { + return createFileDescriptor(fdp, deps, r) +} + +// CreateFileDescriptors is the same as the package function of the same name, +// but any alternate paths configured in this resolver are used when linking the +// given descriptor protos. +func (r *ImportResolver) CreateFileDescriptors(fds []*descriptorpb.FileDescriptorProto) (map[string]*FileDescriptor, error) { + return createFileDescriptors(fds, r) +} + +// CreateFileDescriptorFromSet is the same as the package function of the same +// name, but any alternate paths configured in this resolver are used when +// linking the descriptor protos in the given set. +func (r *ImportResolver) CreateFileDescriptorFromSet(fds *descriptorpb.FileDescriptorSet) (*FileDescriptor, error) { + return createFileDescriptorFromSet(fds, r) +} + +// CreateFileDescriptorsFromSet is the same as the package function of the same +// name, but any alternate paths configured in this resolver are used when +// linking the descriptor protos in the given set. +func (r *ImportResolver) CreateFileDescriptorsFromSet(fds *descriptorpb.FileDescriptorSet) (map[string]*FileDescriptor, error) { + return createFileDescriptorsFromSet(fds, r) +} + +const dotPrefix = "./" + +func clean(path string) string { + if path == "" { + return "" + } + path = filepath.ToSlash(filepath.Clean(path)) + if path == "." { + return "" + } + return strings.TrimPrefix(path, dotPrefix) +} diff --git a/vendor/github.com/jhump/protoreflect/desc/internal/proto3_optional.go b/vendor/github.com/jhump/protoreflect/desc/internal/proto3_optional.go new file mode 100644 index 0000000..aa8c3e9 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/internal/proto3_optional.go @@ -0,0 +1,75 @@ +package internal + +import ( + "strings" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" +) + +// ProcessProto3OptionalFields adds synthetic oneofs to the given message descriptor +// for each proto3 optional field. It also updates the fields to have the correct +// oneof index reference. The given callback, if not nil, is called for each synthetic +// oneof created. +func ProcessProto3OptionalFields(msgd *descriptorpb.DescriptorProto, callback func(*descriptorpb.FieldDescriptorProto, *descriptorpb.OneofDescriptorProto)) { + var allNames map[string]struct{} + for _, fd := range msgd.Field { + if fd.GetProto3Optional() { + // lazy init the set of all names + if allNames == nil { + allNames = map[string]struct{}{} + for _, fd := range msgd.Field { + allNames[fd.GetName()] = struct{}{} + } + for _, od := range msgd.OneofDecl { + allNames[od.GetName()] = struct{}{} + } + // NB: protoc only considers names of other fields and oneofs + // when computing the synthetic oneof name. But that feels like + // a bug, since it means it could generate a name that conflicts + // with some other symbol defined in the message. If it's decided + // that's NOT a bug and is desirable, then we should remove the + // following four loops to mimic protoc's behavior. + for _, xd := range msgd.Extension { + allNames[xd.GetName()] = struct{}{} + } + for _, ed := range msgd.EnumType { + allNames[ed.GetName()] = struct{}{} + for _, evd := range ed.Value { + allNames[evd.GetName()] = struct{}{} + } + } + for _, fd := range msgd.NestedType { + allNames[fd.GetName()] = struct{}{} + } + for _, n := range msgd.ReservedName { + allNames[n] = struct{}{} + } + } + + // Compute a name for the synthetic oneof. This uses the same + // algorithm as used in protoc: + // https://github.com/protocolbuffers/protobuf/blob/74ad62759e0a9b5a21094f3fb9bb4ebfaa0d1ab8/src/google/protobuf/compiler/parser.cc#L785-L803 + ooName := fd.GetName() + if !strings.HasPrefix(ooName, "_") { + ooName = "_" + ooName + } + for { + _, ok := allNames[ooName] + if !ok { + // found a unique name + allNames[ooName] = struct{}{} + break + } + ooName = "X" + ooName + } + + fd.OneofIndex = proto.Int32(int32(len(msgd.OneofDecl))) + ood := &descriptorpb.OneofDescriptorProto{Name: proto.String(ooName)} + msgd.OneofDecl = append(msgd.OneofDecl, ood) + if callback != nil { + callback(fd, ood) + } + } + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/internal/registry.go b/vendor/github.com/jhump/protoreflect/desc/internal/registry.go new file mode 100644 index 0000000..9f160a3 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/internal/registry.go @@ -0,0 +1,48 @@ +package internal + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/dynamicpb" +) + +func RegisterExtensionsForFile(reg *protoregistry.Types, fd protoreflect.FileDescriptor) { + registerTypesForFile(reg, fd, true, false) +} + +func RegisterTypesForFile(reg *protoregistry.Types, fd protoreflect.FileDescriptor) { + registerTypesForFile(reg, fd, false, false) +} + +func registerTypesForFile(reg *protoregistry.Types, fd protoreflect.FileDescriptor, extensionsOnly, publicImportsOnly bool) { + registerTypes(reg, fd, extensionsOnly) + for i := 0; i < fd.Imports().Len(); i++ { + imp := fd.Imports().Get(i) + if imp.IsPublic || !publicImportsOnly { + registerTypesForFile(reg, imp, extensionsOnly, true) + } + } +} + +func registerTypes(reg *protoregistry.Types, elem fileOrMessage, extensionsOnly bool) { + for i := 0; i < elem.Extensions().Len(); i++ { + _ = reg.RegisterExtension(dynamicpb.NewExtensionType(elem.Extensions().Get(i))) + } + if !extensionsOnly { + for i := 0; i < elem.Messages().Len(); i++ { + _ = reg.RegisterMessage(dynamicpb.NewMessageType(elem.Messages().Get(i))) + } + for i := 0; i < elem.Enums().Len(); i++ { + _ = reg.RegisterEnum(dynamicpb.NewEnumType(elem.Enums().Get(i))) + } + } + for i := 0; i < elem.Messages().Len(); i++ { + registerTypes(reg, elem.Messages().Get(i), extensionsOnly) + } +} + +type fileOrMessage interface { + Extensions() protoreflect.ExtensionDescriptors + Messages() protoreflect.MessageDescriptors + Enums() protoreflect.EnumDescriptors +} diff --git a/vendor/github.com/jhump/protoreflect/desc/internal/source_info.go b/vendor/github.com/jhump/protoreflect/desc/internal/source_info.go new file mode 100644 index 0000000..6037128 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/internal/source_info.go @@ -0,0 +1,107 @@ +package internal + +import ( + "google.golang.org/protobuf/types/descriptorpb" +) + +// SourceInfoMap is a map of paths in a descriptor to the corresponding source +// code info. +type SourceInfoMap map[string][]*descriptorpb.SourceCodeInfo_Location + +// Get returns the source code info for the given path. If there are +// multiple locations for the same path, the first one is returned. +func (m SourceInfoMap) Get(path []int32) *descriptorpb.SourceCodeInfo_Location { + v := m[asMapKey(path)] + if len(v) > 0 { + return v[0] + } + return nil +} + +// GetAll returns all source code info for the given path. +func (m SourceInfoMap) GetAll(path []int32) []*descriptorpb.SourceCodeInfo_Location { + return m[asMapKey(path)] +} + +// Add stores the given source code info for the given path. +func (m SourceInfoMap) Add(path []int32, loc *descriptorpb.SourceCodeInfo_Location) { + m[asMapKey(path)] = append(m[asMapKey(path)], loc) +} + +// PutIfAbsent stores the given source code info for the given path only if the +// given path does not exist in the map. This method returns true when the value +// is stored, false if the path already exists. +func (m SourceInfoMap) PutIfAbsent(path []int32, loc *descriptorpb.SourceCodeInfo_Location) bool { + k := asMapKey(path) + if _, ok := m[k]; ok { + return false + } + m[k] = []*descriptorpb.SourceCodeInfo_Location{loc} + return true +} + +func asMapKey(slice []int32) string { + // NB: arrays should be usable as map keys, but this does not + // work due to a bug: https://github.com/golang/go/issues/22605 + //rv := reflect.ValueOf(slice) + //arrayType := reflect.ArrayOf(rv.Len(), rv.Type().Elem()) + //array := reflect.New(arrayType).Elem() + //reflect.Copy(array, rv) + //return array.Interface() + + b := make([]byte, len(slice)*4) + j := 0 + for _, s := range slice { + b[j] = byte(s) + b[j+1] = byte(s >> 8) + b[j+2] = byte(s >> 16) + b[j+3] = byte(s >> 24) + j += 4 + } + return string(b) +} + +// CreateSourceInfoMap constructs a new SourceInfoMap and populates it with the +// source code info in the given file descriptor proto. +func CreateSourceInfoMap(fd *descriptorpb.FileDescriptorProto) SourceInfoMap { + res := SourceInfoMap{} + PopulateSourceInfoMap(fd, res) + return res +} + +// PopulateSourceInfoMap populates the given SourceInfoMap with information from +// the given file descriptor. +func PopulateSourceInfoMap(fd *descriptorpb.FileDescriptorProto, m SourceInfoMap) { + for _, l := range fd.GetSourceCodeInfo().GetLocation() { + m.Add(l.Path, l) + } +} + +// NB: This wonkiness allows desc.Descriptor impl to implement an interface that +// is only usable from this package, by embedding a SourceInfoComputeFunc that +// implements the actual logic (which must live in desc package to avoid a +// dependency cycle). + +// SourceInfoComputer is a single method which will be invoked to recompute +// source info. This is needed for the protoparse package, which needs to link +// descriptors without source info in order to interpret options, but then needs +// to re-compute source info after that interpretation so that final linked +// descriptors expose the right info. +type SourceInfoComputer interface { + recomputeSourceInfo() +} + +// SourceInfoComputeFunc is the type that a desc.Descriptor will embed. It will +// be aliased in the desc package to an unexported name so it is not marked as +// an exported field in reflection and not present in Go docs. +type SourceInfoComputeFunc func() + +func (f SourceInfoComputeFunc) recomputeSourceInfo() { + f() +} + +// RecomputeSourceInfo is used to initiate recomputation of source info. This is +// is used by the protoparse package, after it interprets options. +func RecomputeSourceInfo(c SourceInfoComputer) { + c.recomputeSourceInfo() +} diff --git a/vendor/github.com/jhump/protoreflect/desc/internal/util.go b/vendor/github.com/jhump/protoreflect/desc/internal/util.go new file mode 100644 index 0000000..fcadbd1 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/internal/util.go @@ -0,0 +1,293 @@ +package internal + +import ( + "math" + "unicode" + "unicode/utf8" +) + +const ( + // MaxNormalTag is the maximum allowed tag number for a field in a normal message. + MaxNormalTag = 536870911 // 2^29 - 1 + + // MaxMessageSetTag is the maximum allowed tag number of a field in a message that + // uses the message set wire format. + MaxMessageSetTag = math.MaxInt32 - 1 + + // MaxTag is the maximum allowed tag number. (It is the same as MaxMessageSetTag + // since that is the absolute highest allowed.) + MaxTag = MaxMessageSetTag + + // SpecialReservedStart is the first tag in a range that is reserved and not + // allowed for use in message definitions. + SpecialReservedStart = 19000 + // SpecialReservedEnd is the last tag in a range that is reserved and not + // allowed for use in message definitions. + SpecialReservedEnd = 19999 + + // NB: It would be nice to use constants from generated code instead of + // hard-coding these here. But code-gen does not emit these as constants + // anywhere. The only places they appear in generated code are struct tags + // on fields of the generated descriptor protos. + + // File_packageTag is the tag number of the package element in a file + // descriptor proto. + File_packageTag = 2 + // File_dependencyTag is the tag number of the dependencies element in a + // file descriptor proto. + File_dependencyTag = 3 + // File_messagesTag is the tag number of the messages element in a file + // descriptor proto. + File_messagesTag = 4 + // File_enumsTag is the tag number of the enums element in a file descriptor + // proto. + File_enumsTag = 5 + // File_servicesTag is the tag number of the services element in a file + // descriptor proto. + File_servicesTag = 6 + // File_extensionsTag is the tag number of the extensions element in a file + // descriptor proto. + File_extensionsTag = 7 + // File_optionsTag is the tag number of the options element in a file + // descriptor proto. + File_optionsTag = 8 + // File_syntaxTag is the tag number of the syntax element in a file + // descriptor proto. + File_syntaxTag = 12 + // Message_nameTag is the tag number of the name element in a message + // descriptor proto. + Message_nameTag = 1 + // Message_fieldsTag is the tag number of the fields element in a message + // descriptor proto. + Message_fieldsTag = 2 + // Message_nestedMessagesTag is the tag number of the nested messages + // element in a message descriptor proto. + Message_nestedMessagesTag = 3 + // Message_enumsTag is the tag number of the enums element in a message + // descriptor proto. + Message_enumsTag = 4 + // Message_extensionRangeTag is the tag number of the extension ranges + // element in a message descriptor proto. + Message_extensionRangeTag = 5 + // Message_extensionsTag is the tag number of the extensions element in a + // message descriptor proto. + Message_extensionsTag = 6 + // Message_optionsTag is the tag number of the options element in a message + // descriptor proto. + Message_optionsTag = 7 + // Message_oneOfsTag is the tag number of the one-ofs element in a message + // descriptor proto. + Message_oneOfsTag = 8 + // Message_reservedRangeTag is the tag number of the reserved ranges element + // in a message descriptor proto. + Message_reservedRangeTag = 9 + // Message_reservedNameTag is the tag number of the reserved names element + // in a message descriptor proto. + Message_reservedNameTag = 10 + // ExtensionRange_startTag is the tag number of the start index in an + // extension range proto. + ExtensionRange_startTag = 1 + // ExtensionRange_endTag is the tag number of the end index in an + // extension range proto. + ExtensionRange_endTag = 2 + // ExtensionRange_optionsTag is the tag number of the options element in an + // extension range proto. + ExtensionRange_optionsTag = 3 + // ReservedRange_startTag is the tag number of the start index in a reserved + // range proto. + ReservedRange_startTag = 1 + // ReservedRange_endTag is the tag number of the end index in a reserved + // range proto. + ReservedRange_endTag = 2 + // Field_nameTag is the tag number of the name element in a field descriptor + // proto. + Field_nameTag = 1 + // Field_extendeeTag is the tag number of the extendee element in a field + // descriptor proto. + Field_extendeeTag = 2 + // Field_numberTag is the tag number of the number element in a field + // descriptor proto. + Field_numberTag = 3 + // Field_labelTag is the tag number of the label element in a field + // descriptor proto. + Field_labelTag = 4 + // Field_typeTag is the tag number of the type element in a field descriptor + // proto. + Field_typeTag = 5 + // Field_typeNameTag is the tag number of the type name element in a field + // descriptor proto. + Field_typeNameTag = 6 + // Field_defaultTag is the tag number of the default value element in a + // field descriptor proto. + Field_defaultTag = 7 + // Field_optionsTag is the tag number of the options element in a field + // descriptor proto. + Field_optionsTag = 8 + // Field_jsonNameTag is the tag number of the JSON name element in a field + // descriptor proto. + Field_jsonNameTag = 10 + // Field_proto3OptionalTag is the tag number of the proto3_optional element + // in a descriptor proto. + Field_proto3OptionalTag = 17 + // OneOf_nameTag is the tag number of the name element in a one-of + // descriptor proto. + OneOf_nameTag = 1 + // OneOf_optionsTag is the tag number of the options element in a one-of + // descriptor proto. + OneOf_optionsTag = 2 + // Enum_nameTag is the tag number of the name element in an enum descriptor + // proto. + Enum_nameTag = 1 + // Enum_valuesTag is the tag number of the values element in an enum + // descriptor proto. + Enum_valuesTag = 2 + // Enum_optionsTag is the tag number of the options element in an enum + // descriptor proto. + Enum_optionsTag = 3 + // Enum_reservedRangeTag is the tag number of the reserved ranges element in + // an enum descriptor proto. + Enum_reservedRangeTag = 4 + // Enum_reservedNameTag is the tag number of the reserved names element in + // an enum descriptor proto. + Enum_reservedNameTag = 5 + // EnumVal_nameTag is the tag number of the name element in an enum value + // descriptor proto. + EnumVal_nameTag = 1 + // EnumVal_numberTag is the tag number of the number element in an enum + // value descriptor proto. + EnumVal_numberTag = 2 + // EnumVal_optionsTag is the tag number of the options element in an enum + // value descriptor proto. + EnumVal_optionsTag = 3 + // Service_nameTag is the tag number of the name element in a service + // descriptor proto. + Service_nameTag = 1 + // Service_methodsTag is the tag number of the methods element in a service + // descriptor proto. + Service_methodsTag = 2 + // Service_optionsTag is the tag number of the options element in a service + // descriptor proto. + Service_optionsTag = 3 + // Method_nameTag is the tag number of the name element in a method + // descriptor proto. + Method_nameTag = 1 + // Method_inputTag is the tag number of the input type element in a method + // descriptor proto. + Method_inputTag = 2 + // Method_outputTag is the tag number of the output type element in a method + // descriptor proto. + Method_outputTag = 3 + // Method_optionsTag is the tag number of the options element in a method + // descriptor proto. + Method_optionsTag = 4 + // Method_inputStreamTag is the tag number of the input stream flag in a + // method descriptor proto. + Method_inputStreamTag = 5 + // Method_outputStreamTag is the tag number of the output stream flag in a + // method descriptor proto. + Method_outputStreamTag = 6 + + // UninterpretedOptionsTag is the tag number of the uninterpreted options + // element. All *Options messages use the same tag for the field that stores + // uninterpreted options. + UninterpretedOptionsTag = 999 + + // Uninterpreted_nameTag is the tag number of the name element in an + // uninterpreted options proto. + Uninterpreted_nameTag = 2 + // Uninterpreted_identTag is the tag number of the identifier value in an + // uninterpreted options proto. + Uninterpreted_identTag = 3 + // Uninterpreted_posIntTag is the tag number of the positive int value in an + // uninterpreted options proto. + Uninterpreted_posIntTag = 4 + // Uninterpreted_negIntTag is the tag number of the negative int value in an + // uninterpreted options proto. + Uninterpreted_negIntTag = 5 + // Uninterpreted_doubleTag is the tag number of the double value in an + // uninterpreted options proto. + Uninterpreted_doubleTag = 6 + // Uninterpreted_stringTag is the tag number of the string value in an + // uninterpreted options proto. + Uninterpreted_stringTag = 7 + // Uninterpreted_aggregateTag is the tag number of the aggregate value in an + // uninterpreted options proto. + Uninterpreted_aggregateTag = 8 + // UninterpretedName_nameTag is the tag number of the name element in an + // uninterpreted option name proto. + UninterpretedName_nameTag = 1 +) + +// JsonName returns the default JSON name for a field with the given name. +// This mirrors the algorithm in protoc: +// +// https://github.com/protocolbuffers/protobuf/blob/v21.3/src/google/protobuf/descriptor.cc#L95 +func JsonName(name string) string { + var js []rune + nextUpper := false + for _, r := range name { + if r == '_' { + nextUpper = true + continue + } + if nextUpper { + nextUpper = false + js = append(js, unicode.ToUpper(r)) + } else { + js = append(js, r) + } + } + return string(js) +} + +// InitCap returns the given field name, but with the first letter capitalized. +func InitCap(name string) string { + r, sz := utf8.DecodeRuneInString(name) + return string(unicode.ToUpper(r)) + name[sz:] +} + +// CreatePrefixList returns a list of package prefixes to search when resolving +// a symbol name. If the given package is blank, it returns only the empty +// string. If the given package contains only one token, e.g. "foo", it returns +// that token and the empty string, e.g. ["foo", ""]. Otherwise, it returns +// successively shorter prefixes of the package and then the empty string. For +// example, for a package named "foo.bar.baz" it will return the following list: +// +// ["foo.bar.baz", "foo.bar", "foo", ""] +func CreatePrefixList(pkg string) []string { + if pkg == "" { + return []string{""} + } + + numDots := 0 + // one pass to pre-allocate the returned slice + for i := 0; i < len(pkg); i++ { + if pkg[i] == '.' { + numDots++ + } + } + if numDots == 0 { + return []string{pkg, ""} + } + + prefixes := make([]string, numDots+2) + // second pass to fill in returned slice + for i := 0; i < len(pkg); i++ { + if pkg[i] == '.' { + prefixes[numDots] = pkg[:i] + numDots-- + } + } + prefixes[0] = pkg + + return prefixes +} + +// GetMaxTag returns the max tag number allowed, based on whether a message uses +// message set wire format or not. +func GetMaxTag(isMessageSet bool) int32 { + if isMessageSet { + return MaxMessageSetTag + } + return MaxNormalTag +} diff --git a/vendor/github.com/jhump/protoreflect/desc/load.go b/vendor/github.com/jhump/protoreflect/desc/load.go new file mode 100644 index 0000000..193bbe8 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/load.go @@ -0,0 +1,264 @@ +package desc + +import ( + "fmt" + "reflect" + "sync" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/jhump/protoreflect/desc/sourceinfo" + "github.com/jhump/protoreflect/internal" +) + +// The global cache is used to store descriptors that wrap items in +// protoregistry.GlobalTypes and protoregistry.GlobalFiles. This prevents +// repeating work to re-wrap underlying global descriptors. +var ( + // We put all wrapped file and message descriptors in this cache. + loadedDescriptors = lockingCache{cache: mapCache{}} + + // Unfortunately, we need a different mechanism for enums for + // compatibility with old APIs, which required that they were + // registered in a different way :( + loadedEnumsMu sync.RWMutex + loadedEnums = map[reflect.Type]*EnumDescriptor{} +) + +// LoadFileDescriptor creates a file descriptor using the bytes returned by +// proto.FileDescriptor. Descriptors are cached so that they do not need to be +// re-processed if the same file is fetched again later. +func LoadFileDescriptor(file string) (*FileDescriptor, error) { + d, err := sourceinfo.GlobalFiles.FindFileByPath(file) + if err == protoregistry.NotFound { + // for backwards compatibility, see if this matches a known old + // alias for the file (older versions of libraries that registered + // the files using incorrect/non-canonical paths) + if alt := internal.StdFileAliases[file]; alt != "" { + d, err = sourceinfo.GlobalFiles.FindFileByPath(alt) + } + } + if err != nil { + if err != protoregistry.NotFound { + return nil, internal.ErrNoSuchFile(file) + } + return nil, err + } + if fd := loadedDescriptors.get(d); fd != nil { + return fd.(*FileDescriptor), nil + } + + var fd *FileDescriptor + loadedDescriptors.withLock(func(cache descriptorCache) { + // double-check cache, in case it was concurrently added while + // we were waiting for the lock + f := cache.get(d) + if f != nil { + fd = f.(*FileDescriptor) + return + } + fd, err = wrapFile(d, cache) + }) + return fd, err +} + +// LoadMessageDescriptor loads descriptor using the encoded descriptor proto returned by +// Message.Descriptor() for the given message type. If the given type is not recognized, +// then a nil descriptor is returned. +func LoadMessageDescriptor(message string) (*MessageDescriptor, error) { + mt, err := sourceinfo.GlobalTypes.FindMessageByName(protoreflect.FullName(message)) + if err != nil { + if err == protoregistry.NotFound { + return nil, nil + } + return nil, err + } + return loadMessageDescriptor(mt.Descriptor()) +} + +func loadMessageDescriptor(md protoreflect.MessageDescriptor) (*MessageDescriptor, error) { + d := loadedDescriptors.get(md) + if d != nil { + return d.(*MessageDescriptor), nil + } + + var err error + loadedDescriptors.withLock(func(cache descriptorCache) { + d, err = wrapMessage(md, cache) + }) + if err != nil { + return nil, err + } + return d.(*MessageDescriptor), err +} + +// LoadMessageDescriptorForType loads descriptor using the encoded descriptor proto returned +// by message.Descriptor() for the given message type. If the given type is not recognized, +// then a nil descriptor is returned. +func LoadMessageDescriptorForType(messageType reflect.Type) (*MessageDescriptor, error) { + m, err := messageFromType(messageType) + if err != nil { + return nil, err + } + return LoadMessageDescriptorForMessage(m) +} + +// LoadMessageDescriptorForMessage loads descriptor using the encoded descriptor proto +// returned by message.Descriptor(). If the given type is not recognized, then a nil +// descriptor is returned. +func LoadMessageDescriptorForMessage(message proto.Message) (*MessageDescriptor, error) { + // efficiently handle dynamic messages + type descriptorable interface { + GetMessageDescriptor() *MessageDescriptor + } + if d, ok := message.(descriptorable); ok { + return d.GetMessageDescriptor(), nil + } + + var md protoreflect.MessageDescriptor + if m, ok := message.(protoreflect.ProtoMessage); ok { + md = m.ProtoReflect().Descriptor() + } else { + md = proto.MessageReflect(message).Descriptor() + } + return loadMessageDescriptor(sourceinfo.WrapMessage(md)) +} + +func messageFromType(mt reflect.Type) (proto.Message, error) { + if mt.Kind() != reflect.Ptr { + mt = reflect.PtrTo(mt) + } + m, ok := reflect.Zero(mt).Interface().(proto.Message) + if !ok { + return nil, fmt.Errorf("failed to create message from type: %v", mt) + } + return m, nil +} + +// interface implemented by all generated enums +type protoEnum interface { + EnumDescriptor() ([]byte, []int) +} + +// NB: There is no LoadEnumDescriptor that takes a fully-qualified enum name because +// it is not useful since protoc-gen-go does not expose the name anywhere in generated +// code or register it in a way that is it accessible for reflection code. This also +// means we have to cache enum descriptors differently -- we can only cache them as +// they are requested, as opposed to caching all enum types whenever a file descriptor +// is cached. This is because we need to know the generated type of the enums, and we +// don't know that at the time of caching file descriptors. + +// LoadEnumDescriptorForType loads descriptor using the encoded descriptor proto returned +// by enum.EnumDescriptor() for the given enum type. +func LoadEnumDescriptorForType(enumType reflect.Type) (*EnumDescriptor, error) { + // we cache descriptors using non-pointer type + if enumType.Kind() == reflect.Ptr { + enumType = enumType.Elem() + } + e := getEnumFromCache(enumType) + if e != nil { + return e, nil + } + enum, err := enumFromType(enumType) + if err != nil { + return nil, err + } + + return loadEnumDescriptor(enumType, enum) +} + +func getEnumFromCache(t reflect.Type) *EnumDescriptor { + loadedEnumsMu.RLock() + defer loadedEnumsMu.RUnlock() + return loadedEnums[t] +} + +func putEnumInCache(t reflect.Type, d *EnumDescriptor) { + loadedEnumsMu.Lock() + defer loadedEnumsMu.Unlock() + loadedEnums[t] = d +} + +// LoadEnumDescriptorForEnum loads descriptor using the encoded descriptor proto +// returned by enum.EnumDescriptor(). +func LoadEnumDescriptorForEnum(enum protoEnum) (*EnumDescriptor, error) { + et := reflect.TypeOf(enum) + // we cache descriptors using non-pointer type + if et.Kind() == reflect.Ptr { + et = et.Elem() + enum = reflect.Zero(et).Interface().(protoEnum) + } + e := getEnumFromCache(et) + if e != nil { + return e, nil + } + + return loadEnumDescriptor(et, enum) +} + +func enumFromType(et reflect.Type) (protoEnum, error) { + e, ok := reflect.Zero(et).Interface().(protoEnum) + if !ok { + if et.Kind() != reflect.Ptr { + et = et.Elem() + } + e, ok = reflect.Zero(et).Interface().(protoEnum) + } + if !ok { + return nil, fmt.Errorf("failed to create enum from type: %v", et) + } + return e, nil +} + +func getDescriptorForEnum(enum protoEnum) (*descriptorpb.FileDescriptorProto, []int, error) { + fdb, path := enum.EnumDescriptor() + name := fmt.Sprintf("%T", enum) + fd, err := internal.DecodeFileDescriptor(name, fdb) + return fd, path, err +} + +func loadEnumDescriptor(et reflect.Type, enum protoEnum) (*EnumDescriptor, error) { + fdp, path, err := getDescriptorForEnum(enum) + if err != nil { + return nil, err + } + + fd, err := LoadFileDescriptor(fdp.GetName()) + if err != nil { + return nil, err + } + + ed := findEnum(fd, path) + putEnumInCache(et, ed) + return ed, nil +} + +func findEnum(fd *FileDescriptor, path []int) *EnumDescriptor { + if len(path) == 1 { + return fd.GetEnumTypes()[path[0]] + } + md := fd.GetMessageTypes()[path[0]] + for _, i := range path[1 : len(path)-1] { + md = md.GetNestedMessageTypes()[i] + } + return md.GetNestedEnumTypes()[path[len(path)-1]] +} + +// LoadFieldDescriptorForExtension loads the field descriptor that corresponds to the given +// extension description. +func LoadFieldDescriptorForExtension(ext *proto.ExtensionDesc) (*FieldDescriptor, error) { + file, err := LoadFileDescriptor(ext.Filename) + if err != nil { + return nil, err + } + field, ok := file.FindSymbol(ext.Name).(*FieldDescriptor) + // make sure descriptor agrees with attributes of the ExtensionDesc + if !ok || !field.IsExtension() || field.GetOwner().GetFullyQualifiedName() != proto.MessageName(ext.ExtendedType) || + field.GetNumber() != ext.Field { + return nil, fmt.Errorf("file descriptor contained unexpected object with name %s", ext.Name) + } + return field, nil +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast.go new file mode 100644 index 0000000..0bc0938 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast.go @@ -0,0 +1,724 @@ +package protoparse + +import ( + "fmt" + + "github.com/bufbuild/protocompile/ast" + + ast2 "github.com/jhump/protoreflect/desc/protoparse/ast" +) + +func convertAST(file *ast.FileNode) *ast2.FileNode { + elements := make([]ast2.FileElement, len(file.Decls)) + for i := range file.Decls { + elements[i] = convertASTFileElement(file, file.Decls[i]) + } + root := ast2.NewFileNode(convertASTSyntax(file, file.Syntax), elements) + eofInfo := file.NodeInfo(file.EOF) + root.FinalComments = convertASTComments(eofInfo.LeadingComments()) + root.FinalWhitespace = eofInfo.LeadingWhitespace() + return root +} + +func convertASTSyntax(f *ast.FileNode, s *ast.SyntaxNode) *ast2.SyntaxNode { + return ast2.NewSyntaxNode( + convertASTKeyword(f, s.Keyword), + convertASTRune(f, s.Equals), + convertASTString(f, s.Syntax), + convertASTRune(f, s.Semicolon), + ) +} + +func convertASTFileElement(f *ast.FileNode, el ast.FileElement) ast2.FileElement { + switch el := el.(type) { + case *ast.ImportNode: + return convertASTImport(f, el) + case *ast.PackageNode: + return convertASTPackage(f, el) + case *ast.OptionNode: + return convertASTOption(f, el) + case *ast.MessageNode: + return convertASTMessage(f, el) + case *ast.EnumNode: + return convertASTEnum(f, el) + case *ast.ExtendNode: + return convertASTExtend(f, el) + case *ast.ServiceNode: + return convertASTService(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.FileElement: %T", el)) + } +} + +func convertASTImport(f *ast.FileNode, imp *ast.ImportNode) *ast2.ImportNode { + var public, weak *ast2.KeywordNode + if imp.Public != nil { + public = convertASTKeyword(f, imp.Public) + } + if imp.Weak != nil { + weak = convertASTKeyword(f, imp.Weak) + } + return ast2.NewImportNode( + convertASTKeyword(f, imp.Keyword), + public, weak, + convertASTString(f, imp.Name), + convertASTRune(f, imp.Semicolon), + ) +} + +func convertASTPackage(f *ast.FileNode, p *ast.PackageNode) *ast2.PackageNode { + return ast2.NewPackageNode( + convertASTKeyword(f, p.Keyword), + convertASTIdent(f, p.Name), + convertASTRune(f, p.Semicolon), + ) +} + +func convertASTOption(f *ast.FileNode, o *ast.OptionNode) *ast2.OptionNode { + if o.Keyword == nil { + return ast2.NewCompactOptionNode( + convertASTOptionName(f, o.Name), + convertASTRune(f, o.Equals), + convertASTValue(f, o.Val), + ) + } + return ast2.NewOptionNode( + convertASTKeyword(f, o.Keyword), + convertASTOptionName(f, o.Name), + convertASTRune(f, o.Equals), + convertASTValue(f, o.Val), + convertASTRune(f, o.Semicolon), + ) +} + +func convertASTOptionName(f *ast.FileNode, n *ast.OptionNameNode) *ast2.OptionNameNode { + parts := make([]*ast2.FieldReferenceNode, len(n.Parts)) + for i := range n.Parts { + parts[i] = convertASTFieldReference(f, n.Parts[i]) + } + dots := make([]*ast2.RuneNode, len(n.Dots)) + for i := range n.Dots { + dots[i] = convertASTRune(f, n.Dots[i]) + } + return ast2.NewOptionNameNode(parts, dots) +} + +func convertASTFieldReference(f *ast.FileNode, n *ast.FieldReferenceNode) *ast2.FieldReferenceNode { + switch { + case n.IsExtension(): + return ast2.NewExtensionFieldReferenceNode( + convertASTRune(f, n.Open), + convertASTIdent(f, n.Name), + convertASTRune(f, n.Close), + ) + case n.IsAnyTypeReference(): + return ast2.NewAnyTypeReferenceNode( + convertASTRune(f, n.Open), + convertASTIdent(f, n.URLPrefix), + convertASTRune(f, n.Slash), + convertASTIdent(f, n.Name), + convertASTRune(f, n.Close), + ) + default: + return ast2.NewFieldReferenceNode(convertASTIdent(f, n.Name).(*ast2.IdentNode)) + } +} + +func convertASTMessage(f *ast.FileNode, m *ast.MessageNode) *ast2.MessageNode { + decls := make([]ast2.MessageElement, len(m.Decls)) + for i := range m.Decls { + decls[i] = convertASTMessageElement(f, m.Decls[i]) + } + return ast2.NewMessageNode( + convertASTKeyword(f, m.Keyword), + convertASTIdentToken(f, m.Name), + convertASTRune(f, m.OpenBrace), + decls, + convertASTRune(f, m.CloseBrace), + ) +} + +func convertASTMessageElement(f *ast.FileNode, el ast.MessageElement) ast2.MessageElement { + switch el := el.(type) { + case *ast.OptionNode: + return convertASTOption(f, el) + case *ast.FieldNode: + return convertASTField(f, el) + case *ast.MapFieldNode: + return convertASTMapField(f, el) + case *ast.OneOfNode: + return convertASTOneOf(f, el) + case *ast.GroupNode: + return convertASTGroup(f, el) + case *ast.MessageNode: + return convertASTMessage(f, el) + case *ast.EnumNode: + return convertASTEnum(f, el) + case *ast.ExtendNode: + return convertASTExtend(f, el) + case *ast.ExtensionRangeNode: + return convertASTExtensions(f, el) + case *ast.ReservedNode: + return convertASTReserved(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.MessageElement: %T", el)) + } +} + +func convertASTField(f *ast.FileNode, fld *ast.FieldNode) *ast2.FieldNode { + var lbl *ast2.KeywordNode + if fld.Label.KeywordNode != nil { + lbl = convertASTKeyword(f, fld.Label.KeywordNode) + } + var opts *ast2.CompactOptionsNode + if fld.Options != nil { + opts = convertASTCompactOptions(f, fld.Options) + } + return ast2.NewFieldNode( + lbl, + convertASTIdent(f, fld.FldType), + convertASTIdentToken(f, fld.Name), + convertASTRune(f, fld.Equals), + convertASTUintLiteral(f, fld.Tag), + opts, + convertASTRune(f, fld.Semicolon), + ) +} + +func convertASTMapField(f *ast.FileNode, fld *ast.MapFieldNode) *ast2.MapFieldNode { + var opts *ast2.CompactOptionsNode + if fld.Options != nil { + opts = convertASTCompactOptions(f, fld.Options) + } + return ast2.NewMapFieldNode( + convertASTMapFieldType(f, fld.MapType), + convertASTIdentToken(f, fld.Name), + convertASTRune(f, fld.Equals), + convertASTUintLiteral(f, fld.Tag), + opts, + convertASTRune(f, fld.Semicolon), + ) +} + +func convertASTMapFieldType(f *ast.FileNode, t *ast.MapTypeNode) *ast2.MapTypeNode { + return ast2.NewMapTypeNode( + convertASTKeyword(f, t.Keyword), + convertASTRune(f, t.OpenAngle), + convertASTIdentToken(f, t.KeyType), + convertASTRune(f, t.Comma), + convertASTIdent(f, t.ValueType), + convertASTRune(f, t.CloseAngle), + ) +} + +func convertASTGroup(f *ast.FileNode, g *ast.GroupNode) *ast2.GroupNode { + var lbl *ast2.KeywordNode + if g.Label.KeywordNode != nil { + lbl = convertASTKeyword(f, g.Label.KeywordNode) + } + var opts *ast2.CompactOptionsNode + if g.Options != nil { + opts = convertASTCompactOptions(f, g.Options) + } + decls := make([]ast2.MessageElement, len(g.Decls)) + for i := range g.Decls { + decls[i] = convertASTMessageElement(f, g.Decls[i]) + } + return ast2.NewGroupNode( + lbl, + convertASTKeyword(f, g.Keyword), + convertASTIdentToken(f, g.Name), + convertASTRune(f, g.Equals), + convertASTUintLiteral(f, g.Tag), + opts, + convertASTRune(f, g.OpenBrace), + decls, + convertASTRune(f, g.CloseBrace), + ) +} + +func convertASTOneOf(f *ast.FileNode, oo *ast.OneOfNode) *ast2.OneOfNode { + decls := make([]ast2.OneOfElement, len(oo.Decls)) + for i := range oo.Decls { + decls[i] = convertASTOneOfElement(f, oo.Decls[i]) + } + return ast2.NewOneOfNode( + convertASTKeyword(f, oo.Keyword), + convertASTIdentToken(f, oo.Name), + convertASTRune(f, oo.OpenBrace), + decls, + convertASTRune(f, oo.CloseBrace), + ) +} + +func convertASTOneOfElement(f *ast.FileNode, el ast.OneOfElement) ast2.OneOfElement { + switch el := el.(type) { + case *ast.OptionNode: + return convertASTOption(f, el) + case *ast.FieldNode: + return convertASTField(f, el) + case *ast.GroupNode: + return convertASTGroup(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.OneOfElement: %T", el)) + } +} + +func convertASTExtensions(f *ast.FileNode, e *ast.ExtensionRangeNode) *ast2.ExtensionRangeNode { + var opts *ast2.CompactOptionsNode + if e.Options != nil { + opts = convertASTCompactOptions(f, e.Options) + } + ranges := make([]*ast2.RangeNode, len(e.Ranges)) + for i := range e.Ranges { + ranges[i] = convertASTRange(f, e.Ranges[i]) + } + commas := make([]*ast2.RuneNode, len(e.Commas)) + for i := range e.Commas { + commas[i] = convertASTRune(f, e.Commas[i]) + } + return ast2.NewExtensionRangeNode( + convertASTKeyword(f, e.Keyword), + ranges, commas, opts, + convertASTRune(f, e.Semicolon), + ) +} + +func convertASTReserved(f *ast.FileNode, r *ast.ReservedNode) *ast2.ReservedNode { + ranges := make([]*ast2.RangeNode, len(r.Ranges)) + for i := range r.Ranges { + ranges[i] = convertASTRange(f, r.Ranges[i]) + } + commas := make([]*ast2.RuneNode, len(r.Commas)) + for i := range r.Commas { + commas[i] = convertASTRune(f, r.Commas[i]) + } + names := make([]ast2.StringValueNode, len(r.Names)) + for i := range r.Names { + names[i] = convertASTString(f, r.Names[i]) + } + if len(r.Ranges) > 0 { + return ast2.NewReservedRangesNode( + convertASTKeyword(f, r.Keyword), + ranges, commas, + convertASTRune(f, r.Semicolon), + ) + } + return ast2.NewReservedNamesNode( + convertASTKeyword(f, r.Keyword), + names, commas, + convertASTRune(f, r.Semicolon), + ) +} + +func convertASTRange(f *ast.FileNode, r *ast.RangeNode) *ast2.RangeNode { + var to, max *ast2.KeywordNode + var end ast2.IntValueNode + if r.To != nil { + to = convertASTKeyword(f, r.To) + } + if r.Max != nil { + max = convertASTKeyword(f, r.Max) + } + if r.EndVal != nil { + end = convertASTInt(f, r.EndVal) + } + return ast2.NewRangeNode( + convertASTInt(f, r.StartVal), + to, end, max, + ) +} + +func convertASTEnum(f *ast.FileNode, e *ast.EnumNode) *ast2.EnumNode { + decls := make([]ast2.EnumElement, len(e.Decls)) + for i := range e.Decls { + decls[i] = convertASTEnumElement(f, e.Decls[i]) + } + return ast2.NewEnumNode( + convertASTKeyword(f, e.Keyword), + convertASTIdentToken(f, e.Name), + convertASTRune(f, e.OpenBrace), + decls, + convertASTRune(f, e.CloseBrace), + ) +} + +func convertASTEnumElement(f *ast.FileNode, el ast.EnumElement) ast2.EnumElement { + switch el := el.(type) { + case *ast.OptionNode: + return convertASTOption(f, el) + case *ast.EnumValueNode: + return convertASTEnumValue(f, el) + case *ast.ReservedNode: + return convertASTReserved(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.EnumElement: %T", el)) + } +} + +func convertASTEnumValue(f *ast.FileNode, e *ast.EnumValueNode) *ast2.EnumValueNode { + var opts *ast2.CompactOptionsNode + if e.Options != nil { + opts = convertASTCompactOptions(f, e.Options) + } + return ast2.NewEnumValueNode( + convertASTIdentToken(f, e.Name), + convertASTRune(f, e.Equals), + convertASTInt(f, e.Number), + opts, + convertASTRune(f, e.Semicolon), + ) +} + +func convertASTExtend(f *ast.FileNode, e *ast.ExtendNode) *ast2.ExtendNode { + decls := make([]ast2.ExtendElement, len(e.Decls)) + for i := range e.Decls { + decls[i] = convertASTExtendElement(f, e.Decls[i]) + } + return ast2.NewExtendNode( + convertASTKeyword(f, e.Keyword), + convertASTIdent(f, e.Extendee), + convertASTRune(f, e.OpenBrace), + decls, + convertASTRune(f, e.CloseBrace), + ) +} + +func convertASTExtendElement(f *ast.FileNode, el ast.ExtendElement) ast2.ExtendElement { + switch el := el.(type) { + case *ast.FieldNode: + return convertASTField(f, el) + case *ast.GroupNode: + return convertASTGroup(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.ExtendElement: %T", el)) + } +} + +func convertASTService(f *ast.FileNode, s *ast.ServiceNode) *ast2.ServiceNode { + decls := make([]ast2.ServiceElement, len(s.Decls)) + for i := range s.Decls { + decls[i] = convertASTServiceElement(f, s.Decls[i]) + } + return ast2.NewServiceNode( + convertASTKeyword(f, s.Keyword), + convertASTIdentToken(f, s.Name), + convertASTRune(f, s.OpenBrace), + decls, + convertASTRune(f, s.CloseBrace), + ) +} + +func convertASTServiceElement(f *ast.FileNode, el ast.ServiceElement) ast2.ServiceElement { + switch el := el.(type) { + case *ast.OptionNode: + return convertASTOption(f, el) + case *ast.RPCNode: + return convertASTMethod(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.ServiceElement: %T", el)) + } +} + +func convertASTMethod(f *ast.FileNode, m *ast.RPCNode) *ast2.RPCNode { + if m.OpenBrace == nil { + return ast2.NewRPCNode( + convertASTKeyword(f, m.Keyword), + convertASTIdentToken(f, m.Name), + convertASTMethodType(f, m.Input), + convertASTKeyword(f, m.Returns), + convertASTMethodType(f, m.Output), + convertASTRune(f, m.Semicolon), + ) + } + decls := make([]ast2.RPCElement, len(m.Decls)) + for i := range m.Decls { + decls[i] = convertASTMethodElement(f, m.Decls[i]) + } + return ast2.NewRPCNodeWithBody( + convertASTKeyword(f, m.Keyword), + convertASTIdentToken(f, m.Name), + convertASTMethodType(f, m.Input), + convertASTKeyword(f, m.Returns), + convertASTMethodType(f, m.Output), + convertASTRune(f, m.OpenBrace), + decls, + convertASTRune(f, m.CloseBrace), + ) +} + +func convertASTMethodElement(f *ast.FileNode, el ast.RPCElement) ast2.RPCElement { + switch el := el.(type) { + case *ast.OptionNode: + return convertASTOption(f, el) + case *ast.EmptyDeclNode: + return convertASTEmpty(f, el) + default: + panic(fmt.Sprintf("unrecognized type of ast.RPCElement: %T", el)) + } +} + +func convertASTMethodType(f *ast.FileNode, t *ast.RPCTypeNode) *ast2.RPCTypeNode { + var stream *ast2.KeywordNode + if t.Stream != nil { + stream = convertASTKeyword(f, t.Stream) + } + return ast2.NewRPCTypeNode( + convertASTRune(f, t.OpenParen), + stream, + convertASTIdent(f, t.MessageType), + convertASTRune(f, t.CloseParen), + ) +} + +func convertASTCompactOptions(f *ast.FileNode, opts *ast.CompactOptionsNode) *ast2.CompactOptionsNode { + elems := make([]*ast2.OptionNode, len(opts.Options)) + for i := range opts.Options { + elems[i] = convertASTOption(f, opts.Options[i]) + } + commas := make([]*ast2.RuneNode, len(opts.Commas)) + for i := range opts.Commas { + commas[i] = convertASTRune(f, opts.Commas[i]) + } + return ast2.NewCompactOptionsNode( + convertASTRune(f, opts.OpenBracket), + elems, commas, + convertASTRune(f, opts.CloseBracket), + ) +} + +func convertASTEmpty(f *ast.FileNode, e *ast.EmptyDeclNode) *ast2.EmptyDeclNode { + return ast2.NewEmptyDeclNode(convertASTRune(f, e.Semicolon)) +} + +func convertASTValue(f *ast.FileNode, v ast.ValueNode) ast2.ValueNode { + switch v := v.(type) { + case *ast.IdentNode: + return convertASTIdentToken(f, v) + case *ast.CompoundIdentNode: + return convertASTCompoundIdent(f, v) + case *ast.StringLiteralNode: + return convertASTStringLiteral(f, v) + case *ast.CompoundStringLiteralNode: + return convertASTCompoundStringLiteral(f, v) + case *ast.UintLiteralNode: + return convertASTUintLiteral(f, v) + case *ast.PositiveUintLiteralNode: + return convertASTPositiveUintLiteral(f, v) + case *ast.NegativeIntLiteralNode: + return convertASTNegativeIntLiteral(f, v) + case *ast.FloatLiteralNode: + return convertASTFloatLiteral(f, v) + case *ast.SpecialFloatLiteralNode: + return convertASTSpecialFloatLiteral(f, v) + case *ast.SignedFloatLiteralNode: + return convertASTSignedFloatLiteral(f, v) + case *ast.ArrayLiteralNode: + return convertASTArrayLiteral(f, v) + case *ast.MessageLiteralNode: + return convertASTMessageLiteral(f, v) + default: + panic(fmt.Sprintf("unrecognized type of ast.ValueNode: %T", v)) + } +} + +func convertASTIdent(f *ast.FileNode, ident ast.IdentValueNode) ast2.IdentValueNode { + switch ident := ident.(type) { + case *ast.IdentNode: + return convertASTIdentToken(f, ident) + case *ast.CompoundIdentNode: + return convertASTCompoundIdent(f, ident) + default: + panic(fmt.Sprintf("unrecognized type of ast.IdentValueNode: %T", ident)) + } +} + +func convertASTIdentToken(f *ast.FileNode, ident *ast.IdentNode) *ast2.IdentNode { + return ast2.NewIdentNode(ident.Val, convertASTTokenInfo(f, ident.Token())) +} + +func convertASTCompoundIdent(f *ast.FileNode, ident *ast.CompoundIdentNode) *ast2.CompoundIdentNode { + var leadingDot *ast2.RuneNode + if ident.LeadingDot != nil { + leadingDot = convertASTRune(f, ident.LeadingDot) + } + components := make([]*ast2.IdentNode, len(ident.Components)) + for i := range ident.Components { + components[i] = convertASTIdentToken(f, ident.Components[i]) + } + dots := make([]*ast2.RuneNode, len(ident.Dots)) + for i := range ident.Dots { + dots[i] = convertASTRune(f, ident.Dots[i]) + } + return ast2.NewCompoundIdentNode(leadingDot, components, dots) +} + +func convertASTString(f *ast.FileNode, str ast.StringValueNode) ast2.StringValueNode { + switch str := str.(type) { + case *ast.StringLiteralNode: + return convertASTStringLiteral(f, str) + case *ast.CompoundStringLiteralNode: + return convertASTCompoundStringLiteral(f, str) + default: + panic(fmt.Sprintf("unrecognized type of ast.StringValueNode: %T", str)) + } +} + +func convertASTStringLiteral(f *ast.FileNode, str *ast.StringLiteralNode) *ast2.StringLiteralNode { + return ast2.NewStringLiteralNode(str.Val, convertASTTokenInfo(f, str.Token())) +} + +func convertASTCompoundStringLiteral(f *ast.FileNode, str *ast.CompoundStringLiteralNode) *ast2.CompoundStringLiteralNode { + children := str.Children() + components := make([]*ast2.StringLiteralNode, len(children)) + for i := range children { + components[i] = convertASTStringLiteral(f, children[i].(*ast.StringLiteralNode)) + } + return ast2.NewCompoundLiteralStringNode(components...) +} + +func convertASTInt(f *ast.FileNode, n ast.IntValueNode) ast2.IntValueNode { + switch n := n.(type) { + case *ast.UintLiteralNode: + return convertASTUintLiteral(f, n) + case *ast.PositiveUintLiteralNode: + return convertASTPositiveUintLiteral(f, n) + case *ast.NegativeIntLiteralNode: + return convertASTNegativeIntLiteral(f, n) + default: + panic(fmt.Sprintf("unrecognized type of ast.IntValueNode: %T", n)) + } +} + +func convertASTUintLiteral(f *ast.FileNode, n *ast.UintLiteralNode) *ast2.UintLiteralNode { + return ast2.NewUintLiteralNode(n.Val, convertASTTokenInfo(f, n.Token())) +} + +func convertASTPositiveUintLiteral(f *ast.FileNode, n *ast.PositiveUintLiteralNode) *ast2.PositiveUintLiteralNode { + return ast2.NewPositiveUintLiteralNode(convertASTRune(f, n.Plus), convertASTUintLiteral(f, n.Uint)) +} + +func convertASTNegativeIntLiteral(f *ast.FileNode, n *ast.NegativeIntLiteralNode) *ast2.NegativeIntLiteralNode { + return ast2.NewNegativeIntLiteralNode(convertASTRune(f, n.Minus), convertASTUintLiteral(f, n.Uint)) +} + +func convertASTFloat(f *ast.FileNode, n ast.FloatValueNode) ast2.FloatValueNode { + switch n := n.(type) { + case *ast.FloatLiteralNode: + return convertASTFloatLiteral(f, n) + case *ast.SpecialFloatLiteralNode: + return convertASTSpecialFloatLiteral(f, n) + case *ast.UintLiteralNode: + return convertASTUintLiteral(f, n) + default: + panic(fmt.Sprintf("unrecognized type of ast.FloatValueNode: %T", n)) + } +} + +func convertASTFloatLiteral(f *ast.FileNode, n *ast.FloatLiteralNode) *ast2.FloatLiteralNode { + return ast2.NewFloatLiteralNode(n.Val, convertASTTokenInfo(f, n.Token())) +} + +func convertASTSpecialFloatLiteral(f *ast.FileNode, n *ast.SpecialFloatLiteralNode) *ast2.SpecialFloatLiteralNode { + return ast2.NewSpecialFloatLiteralNode(convertASTKeyword(f, n.KeywordNode)) +} + +func convertASTSignedFloatLiteral(f *ast.FileNode, n *ast.SignedFloatLiteralNode) *ast2.SignedFloatLiteralNode { + return ast2.NewSignedFloatLiteralNode(convertASTRune(f, n.Sign), convertASTFloat(f, n.Float)) +} + +func convertASTArrayLiteral(f *ast.FileNode, ar *ast.ArrayLiteralNode) *ast2.ArrayLiteralNode { + vals := make([]ast2.ValueNode, len(ar.Elements)) + for i := range ar.Elements { + vals[i] = convertASTValue(f, ar.Elements[i]) + } + commas := make([]*ast2.RuneNode, len(ar.Commas)) + for i := range ar.Commas { + commas[i] = convertASTRune(f, ar.Commas[i]) + } + return ast2.NewArrayLiteralNode( + convertASTRune(f, ar.OpenBracket), + vals, commas, + convertASTRune(f, ar.CloseBracket), + ) +} + +func convertASTMessageLiteral(f *ast.FileNode, m *ast.MessageLiteralNode) *ast2.MessageLiteralNode { + fields := make([]*ast2.MessageFieldNode, len(m.Elements)) + for i := range m.Elements { + fields[i] = convertASTMessageLiteralField(f, m.Elements[i]) + } + seps := make([]*ast2.RuneNode, len(m.Seps)) + for i := range m.Seps { + if m.Seps[i] != nil { + seps[i] = convertASTRune(f, m.Seps[i]) + } + } + return ast2.NewMessageLiteralNode( + convertASTRune(f, m.Open), + fields, seps, + convertASTRune(f, m.Close), + ) +} + +func convertASTMessageLiteralField(f *ast.FileNode, fld *ast.MessageFieldNode) *ast2.MessageFieldNode { + var sep *ast2.RuneNode + if fld.Sep != nil { + sep = convertASTRune(f, fld.Sep) + } + return ast2.NewMessageFieldNode( + convertASTFieldReference(f, fld.Name), + sep, + convertASTValue(f, fld.Val), + ) +} + +func convertASTKeyword(f *ast.FileNode, k *ast.KeywordNode) *ast2.KeywordNode { + return ast2.NewKeywordNode(k.Val, convertASTTokenInfo(f, k.Token())) +} + +func convertASTRune(f *ast.FileNode, r *ast.RuneNode) *ast2.RuneNode { + return ast2.NewRuneNode(r.Rune, convertASTTokenInfo(f, r.Token())) +} + +func convertASTTokenInfo(f *ast.FileNode, tok ast.Token) ast2.TokenInfo { + info := f.TokenInfo(tok) + return ast2.TokenInfo{ + PosRange: ast2.PosRange{ + Start: info.Start(), + End: info.End(), + }, + RawText: info.RawText(), + LeadingWhitespace: info.LeadingWhitespace(), + LeadingComments: convertASTComments(info.LeadingComments()), + TrailingComments: convertASTComments(info.TrailingComments()), + } +} + +func convertASTComments(comments ast.Comments) []ast2.Comment { + results := make([]ast2.Comment, comments.Len()) + for i := 0; i < comments.Len(); i++ { + cmt := comments.Index(i) + results[i] = ast2.Comment{ + PosRange: ast2.PosRange{ + Start: cmt.Start(), + End: cmt.End(), + }, + LeadingWhitespace: cmt.LeadingWhitespace(), + Text: cmt.RawText(), + } + } + return results +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/doc.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/doc.go new file mode 100644 index 0000000..e890200 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/doc.go @@ -0,0 +1,27 @@ +// Package ast defines types for modeling the AST (Abstract Syntax +// Tree) for the protocol buffers source language. +// +// All nodes of the tree implement the Node interface. Leaf nodes in the +// tree implement TerminalNode and all others implement CompositeNode. +// The root of the tree for a proto source file is a *FileNode. +// +// Comments are not represented as nodes in the tree. Instead, they are +// attached to all terminal nodes in the tree. So, when lexing, comments +// are accumulated until the next non-comment token is found. The AST +// model in this package thus provides access to all comments in the +// file, regardless of location (unlike the SourceCodeInfo present in +// descriptor protos, which are lossy). The comments associated with a +// a non-leaf/non-token node (i.e. a CompositeNode) come from the first +// and last nodes in its sub-tree. +// +// Creation of AST nodes should use the factory functions in this +// package instead of struct literals. Some factory functions accept +// optional arguments, which means the arguments can be nil. If nil +// values are provided for other (non-optional) arguments, the resulting +// node may be invalid and cause panics later in the program. +// +// This package defines numerous interfaces. However, user code should +// not attempt to implement any of them. Most consumers of an AST will +// not work correctly if they encounter concrete implementations other +// than the ones defined in this package. +package ast diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/enum.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/enum.go new file mode 100644 index 0000000..446a6a0 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/enum.go @@ -0,0 +1,154 @@ +package ast + +import "fmt" + +// EnumNode represents an enum declaration. Example: +// +// enum Foo { BAR = 0; BAZ = 1 } +type EnumNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + OpenBrace *RuneNode + Decls []EnumElement + CloseBrace *RuneNode +} + +func (*EnumNode) fileElement() {} +func (*EnumNode) msgElement() {} + +// NewEnumNode creates a new *EnumNode. All arguments must be non-nil. While +// it is technically allowed for decls to be nil or empty, the resulting node +// will not be a valid enum, which must have at least one value. +// - keyword: The token corresponding to the "enum" keyword. +// - name: The token corresponding to the enum's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the enum body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewEnumNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []EnumElement, closeBrace *RuneNode) *EnumNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + for _, decl := range decls { + switch decl.(type) { + case *OptionNode, *EnumValueNode, *ReservedNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid EnumElement type: %T", decl)) + } + } + + return &EnumNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + OpenBrace: openBrace, + CloseBrace: closeBrace, + Decls: decls, + } +} + +// EnumElement is an interface implemented by all AST nodes that can +// appear in the body of an enum declaration. +type EnumElement interface { + Node + enumElement() +} + +var _ EnumElement = (*OptionNode)(nil) +var _ EnumElement = (*EnumValueNode)(nil) +var _ EnumElement = (*ReservedNode)(nil) +var _ EnumElement = (*EmptyDeclNode)(nil) + +// EnumValueDeclNode is a placeholder interface for AST nodes that represent +// enum values. This allows NoSourceNode to be used in place of *EnumValueNode +// for some usages. +type EnumValueDeclNode interface { + Node + GetName() Node + GetNumber() Node +} + +var _ EnumValueDeclNode = (*EnumValueNode)(nil) +var _ EnumValueDeclNode = NoSourceNode{} + +// EnumNode represents an enum declaration. Example: +// +// UNSET = 0 [deprecated = true]; +type EnumValueNode struct { + compositeNode + Name *IdentNode + Equals *RuneNode + Number IntValueNode + Options *CompactOptionsNode + Semicolon *RuneNode +} + +func (*EnumValueNode) enumElement() {} + +// NewEnumValueNode creates a new *EnumValueNode. All arguments must be non-nil +// except opts which is only non-nil if the declaration included options. +// - name: The token corresponding to the enum value's name. +// - equals: The token corresponding to the '=' rune after the name. +// - number: The token corresponding to the enum value's number. +// - opts: Optional set of enum value options. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewEnumValueNode(name *IdentNode, equals *RuneNode, number IntValueNode, opts *CompactOptionsNode, semicolon *RuneNode) *EnumValueNode { + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if number == nil { + panic("number is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 4 + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, name, equals, number) + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + return &EnumValueNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + Equals: equals, + Number: number, + Options: opts, + Semicolon: semicolon, + } +} + +func (e *EnumValueNode) GetName() Node { + return e.Name +} + +func (e *EnumValueNode) GetNumber() Node { + return e.Number +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/field.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/field.go new file mode 100644 index 0000000..7ec9391 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/field.go @@ -0,0 +1,659 @@ +package ast + +import "fmt" + +// FieldDeclNode is a node in the AST that defines a field. This includes +// normal message fields as well as extensions. There are multiple types +// of AST nodes that declare fields: +// - *FieldNode +// - *GroupNode +// - *MapFieldNode +// - *SyntheticMapField +// +// This also allows NoSourceNode to be used in place of one of the above +// for some usages. +type FieldDeclNode interface { + Node + FieldLabel() Node + FieldName() Node + FieldType() Node + FieldTag() Node + FieldExtendee() Node + GetGroupKeyword() Node + GetOptions() *CompactOptionsNode +} + +var _ FieldDeclNode = (*FieldNode)(nil) +var _ FieldDeclNode = (*GroupNode)(nil) +var _ FieldDeclNode = (*MapFieldNode)(nil) +var _ FieldDeclNode = (*SyntheticMapField)(nil) +var _ FieldDeclNode = NoSourceNode{} + +// FieldNode represents a normal field declaration (not groups or maps). It +// can represent extension fields as well as non-extension fields (both inside +// of messages and inside of one-ofs). Example: +// +// optional string foo = 1; +type FieldNode struct { + compositeNode + Label FieldLabel + FldType IdentValueNode + Name *IdentNode + Equals *RuneNode + Tag *UintLiteralNode + Options *CompactOptionsNode + Semicolon *RuneNode + + // This is an up-link to the containing *ExtendNode for fields + // that are defined inside of "extend" blocks. + Extendee *ExtendNode +} + +func (*FieldNode) msgElement() {} +func (*FieldNode) oneOfElement() {} +func (*FieldNode) extendElement() {} + +// NewFieldNode creates a new *FieldNode. The label and options arguments may be +// nil but the others must be non-nil. +// - label: The token corresponding to the label keyword if present ("optional", +// "required", or "repeated"). +// - fieldType: The token corresponding to the field's type. +// - name: The token corresponding to the field's name. +// - equals: The token corresponding to the '=' rune after the name. +// - tag: The token corresponding to the field's tag number. +// - opts: Optional set of field options. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewFieldNode(label *KeywordNode, fieldType IdentValueNode, name *IdentNode, equals *RuneNode, tag *UintLiteralNode, opts *CompactOptionsNode, semicolon *RuneNode) *FieldNode { + if fieldType == nil { + panic("fieldType is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if tag == nil { + panic("tag is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 5 + if label != nil { + numChildren++ + } + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + if label != nil { + children = append(children, label) + } + children = append(children, fieldType, name, equals, tag) + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + + return &FieldNode{ + compositeNode: compositeNode{ + children: children, + }, + Label: newFieldLabel(label), + FldType: fieldType, + Name: name, + Equals: equals, + Tag: tag, + Options: opts, + Semicolon: semicolon, + } +} + +func (n *FieldNode) FieldLabel() Node { + // proto3 fields and fields inside one-ofs will not have a label and we need + // this check in order to return a nil node -- otherwise we'd return a + // non-nil node that has a nil pointer value in it :/ + if n.Label.KeywordNode == nil { + return nil + } + return n.Label.KeywordNode +} + +func (n *FieldNode) FieldName() Node { + return n.Name +} + +func (n *FieldNode) FieldType() Node { + return n.FldType +} + +func (n *FieldNode) FieldTag() Node { + return n.Tag +} + +func (n *FieldNode) FieldExtendee() Node { + if n.Extendee != nil { + return n.Extendee.Extendee + } + return nil +} + +func (n *FieldNode) GetGroupKeyword() Node { + return nil +} + +func (n *FieldNode) GetOptions() *CompactOptionsNode { + return n.Options +} + +// FieldLabel represents the label of a field, which indicates its cardinality +// (i.e. whether it is optional, required, or repeated). +type FieldLabel struct { + *KeywordNode + Repeated bool + Required bool +} + +func newFieldLabel(lbl *KeywordNode) FieldLabel { + repeated, required := false, false + if lbl != nil { + repeated = lbl.Val == "repeated" + required = lbl.Val == "required" + } + return FieldLabel{ + KeywordNode: lbl, + Repeated: repeated, + Required: required, + } +} + +// IsPresent returns true if a label keyword was present in the declaration +// and false if it was absent. +func (f *FieldLabel) IsPresent() bool { + return f.KeywordNode != nil +} + +// GroupNode represents a group declaration, which doubles as a field and inline +// message declaration. It can represent extension fields as well as +// non-extension fields (both inside of messages and inside of one-ofs). +// Example: +// +// optional group Key = 4 { +// optional uint64 id = 1; +// optional string name = 2; +// } +type GroupNode struct { + compositeNode + Label FieldLabel + Keyword *KeywordNode + Name *IdentNode + Equals *RuneNode + Tag *UintLiteralNode + Options *CompactOptionsNode + MessageBody + + // This is an up-link to the containing *ExtendNode for groups + // that are defined inside of "extend" blocks. + Extendee *ExtendNode +} + +func (*GroupNode) msgElement() {} +func (*GroupNode) oneOfElement() {} +func (*GroupNode) extendElement() {} + +// NewGroupNode creates a new *GroupNode. The label and options arguments may be +// nil but the others must be non-nil. +// - label: The token corresponding to the label keyword if present ("optional", +// "required", or "repeated"). +// - keyword: The token corresponding to the "group" keyword. +// - name: The token corresponding to the field's name. +// - equals: The token corresponding to the '=' rune after the name. +// - tag: The token corresponding to the field's tag number. +// - opts: Optional set of field options. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the group body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewGroupNode(label *KeywordNode, keyword *KeywordNode, name *IdentNode, equals *RuneNode, tag *UintLiteralNode, opts *CompactOptionsNode, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode) *GroupNode { + if keyword == nil { + panic("fieldType is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if tag == nil { + panic("tag is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + numChildren := 6 + len(decls) + if label != nil { + numChildren++ + } + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + if label != nil { + children = append(children, label) + } + children = append(children, keyword, name, equals, tag) + if opts != nil { + children = append(children, opts) + } + children = append(children, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + ret := &GroupNode{ + compositeNode: compositeNode{ + children: children, + }, + Label: newFieldLabel(label), + Keyword: keyword, + Name: name, + Equals: equals, + Tag: tag, + Options: opts, + } + populateMessageBody(&ret.MessageBody, openBrace, decls, closeBrace) + return ret +} + +func (n *GroupNode) FieldLabel() Node { + if n.Label.KeywordNode == nil { + // return nil interface to indicate absence, not a typed nil + return nil + } + return n.Label.KeywordNode +} + +func (n *GroupNode) FieldName() Node { + return n.Name +} + +func (n *GroupNode) FieldType() Node { + return n.Keyword +} + +func (n *GroupNode) FieldTag() Node { + return n.Tag +} + +func (n *GroupNode) FieldExtendee() Node { + if n.Extendee != nil { + return n.Extendee.Extendee + } + return nil +} + +func (n *GroupNode) GetGroupKeyword() Node { + return n.Keyword +} + +func (n *GroupNode) GetOptions() *CompactOptionsNode { + return n.Options +} + +func (n *GroupNode) MessageName() Node { + return n.Name +} + +// OneOfDeclNode is a node in the AST that defines a oneof. There are +// multiple types of AST nodes that declare oneofs: +// - *OneOfNode +// - *SyntheticOneOf +// +// This also allows NoSourceNode to be used in place of one of the above +// for some usages. +type OneOfDeclNode interface { + Node + OneOfName() Node +} + +// OneOfNode represents a one-of declaration. Example: +// +// oneof query { +// string by_name = 2; +// Type by_type = 3; +// Address by_address = 4; +// Labels by_label = 5; +// } +type OneOfNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + OpenBrace *RuneNode + Decls []OneOfElement + CloseBrace *RuneNode +} + +func (*OneOfNode) msgElement() {} + +// NewOneOfNode creates a new *OneOfNode. All arguments must be non-nil. While +// it is technically allowed for decls to be nil or empty, the resulting node +// will not be a valid oneof, which must have at least one field. +// - keyword: The token corresponding to the "oneof" keyword. +// - name: The token corresponding to the oneof's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the oneof body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewOneOfNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []OneOfElement, closeBrace *RuneNode) *OneOfNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + for _, decl := range decls { + switch decl := decl.(type) { + case *OptionNode, *FieldNode, *GroupNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid OneOfElement type: %T", decl)) + } + } + + return &OneOfNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } +} + +func (n *OneOfNode) OneOfName() Node { + return n.Name +} + +// SyntheticOneOf is not an actual node in the AST but a synthetic node +// that implements OneOfDeclNode. These are used to represent the implicit +// oneof declarations that enclose "proto3 optional" fields. +type SyntheticOneOf struct { + Field *FieldNode +} + +// NewSyntheticOneOf creates a new *SyntheticOneOf that corresponds to the +// given proto3 optional field. +func NewSyntheticOneOf(field *FieldNode) *SyntheticOneOf { + return &SyntheticOneOf{Field: field} +} + +func (n *SyntheticOneOf) Start() *SourcePos { + return n.Field.Start() +} + +func (n *SyntheticOneOf) End() *SourcePos { + return n.Field.End() +} + +func (n *SyntheticOneOf) LeadingComments() []Comment { + return nil +} + +func (n *SyntheticOneOf) TrailingComments() []Comment { + return nil +} + +func (n *SyntheticOneOf) OneOfName() Node { + return n.Field.FieldName() +} + +// OneOfElement is an interface implemented by all AST nodes that can +// appear in the body of a oneof declaration. +type OneOfElement interface { + Node + oneOfElement() +} + +var _ OneOfElement = (*OptionNode)(nil) +var _ OneOfElement = (*FieldNode)(nil) +var _ OneOfElement = (*GroupNode)(nil) +var _ OneOfElement = (*EmptyDeclNode)(nil) + +// MapTypeNode represents the type declaration for a map field. It defines +// both the key and value types for the map. Example: +// +// map +type MapTypeNode struct { + compositeNode + Keyword *KeywordNode + OpenAngle *RuneNode + KeyType *IdentNode + Comma *RuneNode + ValueType IdentValueNode + CloseAngle *RuneNode +} + +// NewMapTypeNode creates a new *MapTypeNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "map" keyword. +// - openAngle: The token corresponding to the "<" rune after the keyword. +// - keyType: The token corresponding to the key type for the map. +// - comma: The token corresponding to the "," rune between key and value types. +// - valType: The token corresponding to the value type for the map. +// - closeAngle: The token corresponding to the ">" rune that ends the declaration. +func NewMapTypeNode(keyword *KeywordNode, openAngle *RuneNode, keyType *IdentNode, comma *RuneNode, valType IdentValueNode, closeAngle *RuneNode) *MapTypeNode { + if keyword == nil { + panic("keyword is nil") + } + if openAngle == nil { + panic("openAngle is nil") + } + if keyType == nil { + panic("keyType is nil") + } + if comma == nil { + panic("comma is nil") + } + if valType == nil { + panic("valType is nil") + } + if closeAngle == nil { + panic("closeAngle is nil") + } + children := []Node{keyword, openAngle, keyType, comma, valType, closeAngle} + return &MapTypeNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + OpenAngle: openAngle, + KeyType: keyType, + Comma: comma, + ValueType: valType, + CloseAngle: closeAngle, + } +} + +// MapFieldNode represents a map field declaration. Example: +// +// map replacements = 3 [deprecated = true]; +type MapFieldNode struct { + compositeNode + MapType *MapTypeNode + Name *IdentNode + Equals *RuneNode + Tag *UintLiteralNode + Options *CompactOptionsNode + Semicolon *RuneNode +} + +func (*MapFieldNode) msgElement() {} + +// NewMapFieldNode creates a new *MapFieldNode. All arguments must be non-nil +// except opts, which may be nil. +// - mapType: The token corresponding to the map type. +// - name: The token corresponding to the field's name. +// - equals: The token corresponding to the '=' rune after the name. +// - tag: The token corresponding to the field's tag number. +// - opts: Optional set of field options. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewMapFieldNode(mapType *MapTypeNode, name *IdentNode, equals *RuneNode, tag *UintLiteralNode, opts *CompactOptionsNode, semicolon *RuneNode) *MapFieldNode { + if mapType == nil { + panic("mapType is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if tag == nil { + panic("tag is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 5 + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, mapType, name, equals, tag) + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + + return &MapFieldNode{ + compositeNode: compositeNode{ + children: children, + }, + MapType: mapType, + Name: name, + Equals: equals, + Tag: tag, + Options: opts, + Semicolon: semicolon, + } +} + +func (n *MapFieldNode) FieldLabel() Node { + return nil +} + +func (n *MapFieldNode) FieldName() Node { + return n.Name +} + +func (n *MapFieldNode) FieldType() Node { + return n.MapType +} + +func (n *MapFieldNode) FieldTag() Node { + return n.Tag +} + +func (n *MapFieldNode) FieldExtendee() Node { + return nil +} + +func (n *MapFieldNode) GetGroupKeyword() Node { + return nil +} + +func (n *MapFieldNode) GetOptions() *CompactOptionsNode { + return n.Options +} + +func (n *MapFieldNode) MessageName() Node { + return n.Name +} + +func (n *MapFieldNode) KeyField() *SyntheticMapField { + return NewSyntheticMapField(n.MapType.KeyType, 1) +} + +func (n *MapFieldNode) ValueField() *SyntheticMapField { + return NewSyntheticMapField(n.MapType.ValueType, 2) +} + +// SyntheticMapField is not an actual node in the AST but a synthetic node +// that implements FieldDeclNode. These are used to represent the implicit +// field declarations of the "key" and "value" fields in a map entry. +type SyntheticMapField struct { + Ident IdentValueNode + Tag *UintLiteralNode +} + +// NewSyntheticMapField creates a new *SyntheticMapField for the given +// identifier (either a key or value type in a map declaration) and tag +// number (1 for key, 2 for value). +func NewSyntheticMapField(ident IdentValueNode, tagNum uint64) *SyntheticMapField { + tag := &UintLiteralNode{ + terminalNode: terminalNode{ + posRange: PosRange{Start: *ident.Start(), End: *ident.End()}, + }, + Val: tagNum, + } + return &SyntheticMapField{Ident: ident, Tag: tag} +} + +func (n *SyntheticMapField) Start() *SourcePos { + return n.Ident.Start() +} + +func (n *SyntheticMapField) End() *SourcePos { + return n.Ident.End() +} + +func (n *SyntheticMapField) LeadingComments() []Comment { + return nil +} + +func (n *SyntheticMapField) TrailingComments() []Comment { + return nil +} + +func (n *SyntheticMapField) FieldLabel() Node { + return n.Ident +} + +func (n *SyntheticMapField) FieldName() Node { + return n.Ident +} + +func (n *SyntheticMapField) FieldType() Node { + return n.Ident +} + +func (n *SyntheticMapField) FieldTag() Node { + return n.Tag +} + +func (n *SyntheticMapField) FieldExtendee() Node { + return nil +} + +func (n *SyntheticMapField) GetGroupKeyword() Node { + return nil +} + +func (n *SyntheticMapField) GetOptions() *CompactOptionsNode { + return nil +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/file.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/file.go new file mode 100644 index 0000000..2cef3c6 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/file.go @@ -0,0 +1,234 @@ +package ast + +import "fmt" + +// FileDeclNode is a placeholder interface for AST nodes that represent files. +// This allows NoSourceNode to be used in place of *FileNode for some usages. +type FileDeclNode interface { + Node + GetSyntax() Node +} + +var _ FileDeclNode = (*FileNode)(nil) +var _ FileDeclNode = NoSourceNode{} + +// FileNode is the root of the AST hierarchy. It represents an entire +// protobuf source file. +type FileNode struct { + compositeNode + Syntax *SyntaxNode // nil if file has no syntax declaration + Decls []FileElement + + // Any comments that follow the last token in the file. + FinalComments []Comment + // Any whitespace at the end of the file (after the last token or + // last comment in the file). + FinalWhitespace string +} + +// NewFileNode creates a new *FileNode. The syntax parameter is optional. If it +// is absent, it means the file had no syntax declaration. +// +// This function panics if the concrete type of any element of decls is not +// from this package. +func NewFileNode(syntax *SyntaxNode, decls []FileElement) *FileNode { + numChildren := len(decls) + if syntax != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + if syntax != nil { + children = append(children, syntax) + } + for _, decl := range decls { + children = append(children, decl) + } + + for _, decl := range decls { + switch decl := decl.(type) { + case *PackageNode, *ImportNode, *OptionNode, *MessageNode, + *EnumNode, *ExtendNode, *ServiceNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid FileElement type: %T", decl)) + } + } + + return &FileNode{ + compositeNode: compositeNode{ + children: children, + }, + Syntax: syntax, + Decls: decls, + } +} + +func NewEmptyFileNode(filename string) *FileNode { + return &FileNode{ + compositeNode: compositeNode{ + children: []Node{NewNoSourceNode(filename)}, + }, + } +} + +func (f *FileNode) GetSyntax() Node { + return f.Syntax +} + +// FileElement is an interface implemented by all AST nodes that are +// allowed as top-level declarations in the file. +type FileElement interface { + Node + fileElement() +} + +var _ FileElement = (*ImportNode)(nil) +var _ FileElement = (*PackageNode)(nil) +var _ FileElement = (*OptionNode)(nil) +var _ FileElement = (*MessageNode)(nil) +var _ FileElement = (*EnumNode)(nil) +var _ FileElement = (*ExtendNode)(nil) +var _ FileElement = (*ServiceNode)(nil) +var _ FileElement = (*EmptyDeclNode)(nil) + +// SyntaxNode represents a syntax declaration, which if present must be +// the first non-comment content. Example: +// +// syntax = "proto2"; +// +// Files that don't have a syntax node are assumed to use proto2 syntax. +type SyntaxNode struct { + compositeNode + Keyword *KeywordNode + Equals *RuneNode + Syntax StringValueNode + Semicolon *RuneNode +} + +// NewSyntaxNode creates a new *SyntaxNode. All four arguments must be non-nil: +// - keyword: The token corresponding to the "syntax" keyword. +// - equals: The token corresponding to the "=" rune. +// - syntax: The actual syntax value, e.g. "proto2" or "proto3". +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewSyntaxNode(keyword *KeywordNode, equals *RuneNode, syntax StringValueNode, semicolon *RuneNode) *SyntaxNode { + if keyword == nil { + panic("keyword is nil") + } + if equals == nil { + panic("equals is nil") + } + if syntax == nil { + panic("syntax is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, equals, syntax, semicolon} + return &SyntaxNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Equals: equals, + Syntax: syntax, + Semicolon: semicolon, + } +} + +// ImportNode represents an import statement. Example: +// +// import "google/protobuf/empty.proto"; +type ImportNode struct { + compositeNode + Keyword *KeywordNode + // Optional; if present indicates this is a public import + Public *KeywordNode + // Optional; if present indicates this is a weak import + Weak *KeywordNode + Name StringValueNode + Semicolon *RuneNode +} + +// NewImportNode creates a new *ImportNode. The public and weak arguments are optional +// and only one or the other (or neither) may be specified, not both. When public is +// non-nil, it indicates the "public" keyword in the import statement and means this is +// a public import. When weak is non-nil, it indicates the "weak" keyword in the import +// statement and means this is a weak import. When both are nil, this is a normal import. +// The other arguments must be non-nil: +// - keyword: The token corresponding to the "import" keyword. +// - public: The token corresponding to the optional "public" keyword. +// - weak: The token corresponding to the optional "weak" keyword. +// - name: The actual imported file name. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewImportNode(keyword *KeywordNode, public *KeywordNode, weak *KeywordNode, name StringValueNode, semicolon *RuneNode) *ImportNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + numChildren := 3 + if public != nil || weak != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, keyword) + if public != nil { + children = append(children, public) + } else if weak != nil { + children = append(children, weak) + } + children = append(children, name, semicolon) + + return &ImportNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Public: public, + Weak: weak, + Name: name, + Semicolon: semicolon, + } +} + +func (*ImportNode) fileElement() {} + +// PackageNode represents a package declaration. Example: +// +// package foobar.com; +type PackageNode struct { + compositeNode + Keyword *KeywordNode + Name IdentValueNode + Semicolon *RuneNode +} + +func (*PackageNode) fileElement() {} + +// NewPackageNode creates a new *PackageNode. All three arguments must be non-nil: +// - keyword: The token corresponding to the "package" keyword. +// - name: The package name declared for the file. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewPackageNode(keyword *KeywordNode, name IdentValueNode, semicolon *RuneNode) *PackageNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, name, semicolon} + return &PackageNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Semicolon: semicolon, + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/identifiers.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/identifiers.go new file mode 100644 index 0000000..ed97e97 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/identifiers.go @@ -0,0 +1,134 @@ +package ast + +import ( + "fmt" + "strings" +) + +// Identifier is a possibly-qualified name. This is used to distinguish +// ValueNode values that are references/identifiers vs. those that are +// string literals. +type Identifier string + +// IdentValueNode is an AST node that represents an identifier. +type IdentValueNode interface { + ValueNode + AsIdentifier() Identifier +} + +var _ IdentValueNode = (*IdentNode)(nil) +var _ IdentValueNode = (*CompoundIdentNode)(nil) + +// IdentNode represents a simple, unqualified identifier. These are used to name +// elements declared in a protobuf file or to refer to elements. Example: +// +// foobar +type IdentNode struct { + terminalNode + Val string +} + +// NewIdentNode creates a new *IdentNode. The given val is the identifier text. +func NewIdentNode(val string, info TokenInfo) *IdentNode { + return &IdentNode{ + terminalNode: info.asTerminalNode(), + Val: val, + } +} + +func (n *IdentNode) Value() interface{} { + return n.AsIdentifier() +} + +func (n *IdentNode) AsIdentifier() Identifier { + return Identifier(n.Val) +} + +// ToKeyword is used to convert identifiers to keywords. Since keywords are not +// reserved in the protobuf language, they are initially lexed as identifiers +// and then converted to keywords based on context. +func (n *IdentNode) ToKeyword() *KeywordNode { + return (*KeywordNode)(n) +} + +// CompoundIdentNode represents a qualified identifier. A qualified identifier +// has at least one dot and possibly multiple identifier names (all separated by +// dots). If the identifier has a leading dot, then it is a *fully* qualified +// identifier. Example: +// +// .com.foobar.Baz +type CompoundIdentNode struct { + compositeNode + // Optional leading dot, indicating that the identifier is fully qualified. + LeadingDot *RuneNode + Components []*IdentNode + // Dots[0] is the dot after Components[0]. The length of Dots is always + // one less than the length of Components. + Dots []*RuneNode + // The text value of the identifier, with all components and dots + // concatenated. + Val string +} + +// NewCompoundIdentNode creates a *CompoundIdentNode. The leadingDot may be nil. +// The dots arg must have a length that is one less than the length of +// components. The components arg must not be empty. +func NewCompoundIdentNode(leadingDot *RuneNode, components []*IdentNode, dots []*RuneNode) *CompoundIdentNode { + if len(components) == 0 { + panic("must have at least one component") + } + if len(dots) != len(components)-1 { + panic(fmt.Sprintf("%d components requires %d dots, not %d", len(components), len(components)-1, len(dots))) + } + numChildren := len(components)*2 - 1 + if leadingDot != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + var b strings.Builder + if leadingDot != nil { + children = append(children, leadingDot) + b.WriteRune(leadingDot.Rune) + } + for i, comp := range components { + if i > 0 { + dot := dots[i-1] + children = append(children, dot) + b.WriteRune(dot.Rune) + } + children = append(children, comp) + b.WriteString(comp.Val) + } + return &CompoundIdentNode{ + compositeNode: compositeNode{ + children: children, + }, + LeadingDot: leadingDot, + Components: components, + Dots: dots, + Val: b.String(), + } +} + +func (n *CompoundIdentNode) Value() interface{} { + return n.AsIdentifier() +} + +func (n *CompoundIdentNode) AsIdentifier() Identifier { + return Identifier(n.Val) +} + +// KeywordNode is an AST node that represents a keyword. Keywords are +// like identifiers, but they have special meaning in particular contexts. +// Example: +// +// message +type KeywordNode IdentNode + +// NewKeywordNode creates a new *KeywordNode. The given val is the keyword. +func NewKeywordNode(val string, info TokenInfo) *KeywordNode { + return &KeywordNode{ + terminalNode: info.asTerminalNode(), + Val: val, + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/message.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/message.go new file mode 100644 index 0000000..c98b0f8 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/message.go @@ -0,0 +1,199 @@ +package ast + +import "fmt" + +// MessageDeclNode is a node in the AST that defines a message type. This +// includes normal message fields as well as implicit messages: +// - *MessageNode +// - *GroupNode (the group is a field and inline message type) +// - *MapFieldNode (map fields implicitly define a MapEntry message type) +// +// This also allows NoSourceNode to be used in place of one of the above +// for some usages. +type MessageDeclNode interface { + Node + MessageName() Node +} + +var _ MessageDeclNode = (*MessageNode)(nil) +var _ MessageDeclNode = (*GroupNode)(nil) +var _ MessageDeclNode = (*MapFieldNode)(nil) +var _ MessageDeclNode = NoSourceNode{} + +// MessageNode represents a message declaration. Example: +// +// message Foo { +// string name = 1; +// repeated string labels = 2; +// bytes extra = 3; +// } +type MessageNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + MessageBody +} + +func (*MessageNode) fileElement() {} +func (*MessageNode) msgElement() {} + +// NewMessageNode creates a new *MessageNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "message" keyword. +// - name: The token corresponding to the field's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the message body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewMessageNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode) *MessageNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + ret := &MessageNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + } + populateMessageBody(&ret.MessageBody, openBrace, decls, closeBrace) + return ret +} + +func (n *MessageNode) MessageName() Node { + return n.Name +} + +// MessageBody represents the body of a message. It is used by both +// MessageNodes and GroupNodes. +type MessageBody struct { + OpenBrace *RuneNode + Decls []MessageElement + CloseBrace *RuneNode +} + +func populateMessageBody(m *MessageBody, openBrace *RuneNode, decls []MessageElement, closeBrace *RuneNode) { + m.OpenBrace = openBrace + m.Decls = decls + for _, decl := range decls { + switch decl.(type) { + case *OptionNode, *FieldNode, *MapFieldNode, *GroupNode, *OneOfNode, + *MessageNode, *EnumNode, *ExtendNode, *ExtensionRangeNode, + *ReservedNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid MessageElement type: %T", decl)) + } + } + m.CloseBrace = closeBrace +} + +// MessageElement is an interface implemented by all AST nodes that can +// appear in a message body. +type MessageElement interface { + Node + msgElement() +} + +var _ MessageElement = (*OptionNode)(nil) +var _ MessageElement = (*FieldNode)(nil) +var _ MessageElement = (*MapFieldNode)(nil) +var _ MessageElement = (*OneOfNode)(nil) +var _ MessageElement = (*GroupNode)(nil) +var _ MessageElement = (*MessageNode)(nil) +var _ MessageElement = (*EnumNode)(nil) +var _ MessageElement = (*ExtendNode)(nil) +var _ MessageElement = (*ExtensionRangeNode)(nil) +var _ MessageElement = (*ReservedNode)(nil) +var _ MessageElement = (*EmptyDeclNode)(nil) + +// ExtendNode represents a declaration of extension fields. Example: +// +// extend google.protobuf.FieldOptions { +// bool redacted = 33333; +// } +type ExtendNode struct { + compositeNode + Keyword *KeywordNode + Extendee IdentValueNode + OpenBrace *RuneNode + Decls []ExtendElement + CloseBrace *RuneNode +} + +func (*ExtendNode) fileElement() {} +func (*ExtendNode) msgElement() {} + +// NewExtendNode creates a new *ExtendNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "extend" keyword. +// - extendee: The token corresponding to the name of the extended message. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the message body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewExtendNode(keyword *KeywordNode, extendee IdentValueNode, openBrace *RuneNode, decls []ExtendElement, closeBrace *RuneNode) *ExtendNode { + if keyword == nil { + panic("keyword is nil") + } + if extendee == nil { + panic("extendee is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, extendee, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + ret := &ExtendNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Extendee: extendee, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } + for _, decl := range decls { + switch decl := decl.(type) { + case *FieldNode: + decl.Extendee = ret + case *GroupNode: + decl.Extendee = ret + case *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid ExtendElement type: %T", decl)) + } + } + return ret +} + +// ExtendElement is an interface implemented by all AST nodes that can +// appear in the body of an extends declaration. +type ExtendElement interface { + Node + extendElement() +} + +var _ ExtendElement = (*FieldNode)(nil) +var _ ExtendElement = (*GroupNode)(nil) +var _ ExtendElement = (*EmptyDeclNode)(nil) diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/no_source.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/no_source.go new file mode 100644 index 0000000..44e02b1 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/no_source.go @@ -0,0 +1,103 @@ +package ast + +// UnknownPos is a placeholder position when only the source file +// name is known. +func UnknownPos(filename string) *SourcePos { + return &SourcePos{Filename: filename} +} + +// NoSourceNode is a placeholder AST node that implements numerous +// interfaces in this package. It can be used to represent an AST +// element for a file whose source is not available. +type NoSourceNode struct { + pos *SourcePos +} + +// NewNoSourceNode creates a new NoSourceNode for the given filename. +func NewNoSourceNode(filename string) NoSourceNode { + return NoSourceNode{pos: UnknownPos(filename)} +} + +func (n NoSourceNode) Start() *SourcePos { + return n.pos +} + +func (n NoSourceNode) End() *SourcePos { + return n.pos +} + +func (n NoSourceNode) LeadingComments() []Comment { + return nil +} + +func (n NoSourceNode) TrailingComments() []Comment { + return nil +} + +func (n NoSourceNode) GetSyntax() Node { + return n +} + +func (n NoSourceNode) GetName() Node { + return n +} + +func (n NoSourceNode) GetValue() ValueNode { + return n +} + +func (n NoSourceNode) FieldLabel() Node { + return n +} + +func (n NoSourceNode) FieldName() Node { + return n +} + +func (n NoSourceNode) FieldType() Node { + return n +} + +func (n NoSourceNode) FieldTag() Node { + return n +} + +func (n NoSourceNode) FieldExtendee() Node { + return n +} + +func (n NoSourceNode) GetGroupKeyword() Node { + return n +} + +func (n NoSourceNode) GetOptions() *CompactOptionsNode { + return nil +} + +func (n NoSourceNode) RangeStart() Node { + return n +} + +func (n NoSourceNode) RangeEnd() Node { + return n +} + +func (n NoSourceNode) GetNumber() Node { + return n +} + +func (n NoSourceNode) MessageName() Node { + return n +} + +func (n NoSourceNode) GetInputType() Node { + return n +} + +func (n NoSourceNode) GetOutputType() Node { + return n +} + +func (n NoSourceNode) Value() interface{} { + return nil +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/node.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/node.go new file mode 100644 index 0000000..a2a8a3b --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/node.go @@ -0,0 +1,200 @@ +package ast + +// Node is the interface implemented by all nodes in the AST. It +// provides information about the span of this AST node in terms +// of location in the source file. It also provides information +// about all prior comments (attached as leading comments) and +// optional subsequent comments (attached as trailing comments). +type Node interface { + Start() *SourcePos + End() *SourcePos + LeadingComments() []Comment + TrailingComments() []Comment +} + +// TerminalNode represents a leaf in the AST. These represent +// the tokens/lexemes in the protobuf language. Comments and +// whitespace are accumulated by the lexer and associated with +// the following lexed token. +type TerminalNode interface { + Node + // PopLeadingComment removes the first leading comment from this + // token and returns it. If the node has no leading comments then + // this method will panic. + PopLeadingComment() Comment + // PushTrailingComment appends the given comment to the token's + // trailing comments. + PushTrailingComment(Comment) + // LeadingWhitespace returns any whitespace between the prior comment + // (last leading comment), if any, or prior lexed token and this token. + LeadingWhitespace() string + // RawText returns the raw text of the token as read from the source. + RawText() string +} + +var _ TerminalNode = (*StringLiteralNode)(nil) +var _ TerminalNode = (*UintLiteralNode)(nil) +var _ TerminalNode = (*FloatLiteralNode)(nil) +var _ TerminalNode = (*IdentNode)(nil) +var _ TerminalNode = (*BoolLiteralNode)(nil) +var _ TerminalNode = (*SpecialFloatLiteralNode)(nil) +var _ TerminalNode = (*KeywordNode)(nil) +var _ TerminalNode = (*RuneNode)(nil) + +// TokenInfo represents state accumulated by the lexer to associated with a +// token (aka terminal node). +type TokenInfo struct { + // The location of the token in the source file. + PosRange + // The raw text of the token. + RawText string + // Any comments encountered preceding this token. + LeadingComments []Comment + // Any leading whitespace immediately preceding this token. + LeadingWhitespace string + // Any trailing comments following this token. This is usually + // empty as tokens are created by the lexer immediately and + // trailing comments are accounted for afterwards, added using + // the node's PushTrailingComment method. + TrailingComments []Comment +} + +func (t *TokenInfo) asTerminalNode() terminalNode { + return terminalNode{ + posRange: t.PosRange, + leadingComments: t.LeadingComments, + leadingWhitespace: t.LeadingWhitespace, + trailingComments: t.TrailingComments, + raw: t.RawText, + } +} + +// CompositeNode represents any non-terminal node in the tree. These +// are interior or root nodes and have child nodes. +type CompositeNode interface { + Node + // All AST nodes that are immediate children of this one. + Children() []Node +} + +// terminalNode contains book-keeping shared by all TerminalNode +// implementations. It is embedded in all such node types in this +// package. It provides the implementation of the TerminalNode +// interface. +type terminalNode struct { + posRange PosRange + leadingComments []Comment + leadingWhitespace string + trailingComments []Comment + raw string +} + +func (n *terminalNode) Start() *SourcePos { + return &n.posRange.Start +} + +func (n *terminalNode) End() *SourcePos { + return &n.posRange.End +} + +func (n *terminalNode) LeadingComments() []Comment { + return n.leadingComments +} + +func (n *terminalNode) TrailingComments() []Comment { + return n.trailingComments +} + +func (n *terminalNode) PopLeadingComment() Comment { + c := n.leadingComments[0] + n.leadingComments = n.leadingComments[1:] + return c +} + +func (n *terminalNode) PushTrailingComment(c Comment) { + n.trailingComments = append(n.trailingComments, c) +} + +func (n *terminalNode) LeadingWhitespace() string { + return n.leadingWhitespace +} + +func (n *terminalNode) RawText() string { + return n.raw +} + +// compositeNode contains book-keeping shared by all CompositeNode +// implementations. It is embedded in all such node types in this +// package. It provides the implementation of the CompositeNode +// interface. +type compositeNode struct { + children []Node +} + +func (n *compositeNode) Children() []Node { + return n.children +} + +func (n *compositeNode) Start() *SourcePos { + return n.children[0].Start() +} + +func (n *compositeNode) End() *SourcePos { + return n.children[len(n.children)-1].End() +} + +func (n *compositeNode) LeadingComments() []Comment { + return n.children[0].LeadingComments() +} + +func (n *compositeNode) TrailingComments() []Comment { + return n.children[len(n.children)-1].TrailingComments() +} + +// RuneNode represents a single rune in protobuf source. Runes +// are typically collected into tokens, but some runes stand on +// their own, such as punctuation/symbols like commas, semicolons, +// equals signs, open and close symbols (braces, brackets, angles, +// and parentheses), and periods/dots. +type RuneNode struct { + terminalNode + Rune rune +} + +// NewRuneNode creates a new *RuneNode with the given properties. +func NewRuneNode(r rune, info TokenInfo) *RuneNode { + return &RuneNode{ + terminalNode: info.asTerminalNode(), + Rune: r, + } +} + +// EmptyDeclNode represents an empty declaration in protobuf source. +// These amount to extra semicolons, with no actual content preceding +// the semicolon. +type EmptyDeclNode struct { + compositeNode + Semicolon *RuneNode +} + +// NewEmptyDeclNode creates a new *EmptyDeclNode. The one argument must +// be non-nil. +func NewEmptyDeclNode(semicolon *RuneNode) *EmptyDeclNode { + if semicolon == nil { + panic("semicolon is nil") + } + return &EmptyDeclNode{ + compositeNode: compositeNode{ + children: []Node{semicolon}, + }, + Semicolon: semicolon, + } +} + +func (e *EmptyDeclNode) fileElement() {} +func (e *EmptyDeclNode) msgElement() {} +func (e *EmptyDeclNode) extendElement() {} +func (e *EmptyDeclNode) oneOfElement() {} +func (e *EmptyDeclNode) enumElement() {} +func (e *EmptyDeclNode) serviceElement() {} +func (e *EmptyDeclNode) methodElement() {} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/options.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/options.go new file mode 100644 index 0000000..c4ed169 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/options.go @@ -0,0 +1,361 @@ +package ast + +import "fmt" + +// OptionDeclNode is a placeholder interface for AST nodes that represent +// options. This allows NoSourceNode to be used in place of *OptionNode +// for some usages. +type OptionDeclNode interface { + Node + GetName() Node + GetValue() ValueNode +} + +var _ OptionDeclNode = (*OptionNode)(nil) +var _ OptionDeclNode = NoSourceNode{} + +// OptionNode represents the declaration of a single option for an element. +// It is used both for normal option declarations (start with "option" keyword +// and end with semicolon) and for compact options found in fields, enum values, +// and extension ranges. Example: +// +// option (custom.option) = "foo"; +type OptionNode struct { + compositeNode + Keyword *KeywordNode // absent for compact options + Name *OptionNameNode + Equals *RuneNode + Val ValueNode + Semicolon *RuneNode // absent for compact options +} + +func (e *OptionNode) fileElement() {} +func (e *OptionNode) msgElement() {} +func (e *OptionNode) oneOfElement() {} +func (e *OptionNode) enumElement() {} +func (e *OptionNode) serviceElement() {} +func (e *OptionNode) methodElement() {} + +// NewOptionNode creates a new *OptionNode for a full option declaration (as +// used in files, messages, oneofs, enums, services, and methods). All arguments +// must be non-nil. (Also see NewCompactOptionNode.) +// - keyword: The token corresponding to the "option" keyword. +// - name: The token corresponding to the name of the option. +// - equals: The token corresponding to the "=" rune after the name. +// - val: The token corresponding to the option value. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewOptionNode(keyword *KeywordNode, name *OptionNameNode, equals *RuneNode, val ValueNode, semicolon *RuneNode) *OptionNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if val == nil { + panic("val is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, name, equals, val, semicolon} + return &OptionNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Equals: equals, + Val: val, + Semicolon: semicolon, + } +} + +// NewCompactOptionNode creates a new *OptionNode for a full compact declaration +// (as used in fields, enum values, and extension ranges). All arguments must be +// non-nil. +// - name: The token corresponding to the name of the option. +// - equals: The token corresponding to the "=" rune after the name. +// - val: The token corresponding to the option value. +func NewCompactOptionNode(name *OptionNameNode, equals *RuneNode, val ValueNode) *OptionNode { + if name == nil { + panic("name is nil") + } + if equals == nil { + panic("equals is nil") + } + if val == nil { + panic("val is nil") + } + children := []Node{name, equals, val} + return &OptionNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + Equals: equals, + Val: val, + } +} + +func (n *OptionNode) GetName() Node { + return n.Name +} + +func (n *OptionNode) GetValue() ValueNode { + return n.Val +} + +// OptionNameNode represents an option name or even a traversal through message +// types to name a nested option field. Example: +// +// (foo.bar).baz.(bob) +type OptionNameNode struct { + compositeNode + Parts []*FieldReferenceNode + // Dots represent the separating '.' characters between name parts. The + // length of this slice must be exactly len(Parts)-1, each item in Parts + // having a corresponding item in this slice *except the last* (since a + // trailing dot is not allowed). + // + // These do *not* include dots that are inside of an extension name. For + // example: (foo.bar).baz.(bob) has three parts: + // 1. (foo.bar) - an extension name + // 2. baz - a regular field in foo.bar + // 3. (bob) - an extension field in baz + // Note that the dot in foo.bar will thus not be present in Dots but is + // instead in Parts[0]. + Dots []*RuneNode +} + +// NewOptionNameNode creates a new *OptionNameNode. The dots arg must have a +// length that is one less than the length of parts. The parts arg must not be +// empty. +func NewOptionNameNode(parts []*FieldReferenceNode, dots []*RuneNode) *OptionNameNode { + if len(parts) == 0 { + panic("must have at least one part") + } + if len(dots) != len(parts)-1 { + panic(fmt.Sprintf("%d parts requires %d dots, not %d", len(parts), len(parts)-1, len(dots))) + } + children := make([]Node, 0, len(parts)*2-1) + for i, part := range parts { + if part == nil { + panic(fmt.Sprintf("parts[%d] is nil", i)) + } + if i > 0 { + if dots[i-1] == nil { + panic(fmt.Sprintf("dots[%d] is nil", i-1)) + } + children = append(children, dots[i-1]) + } + children = append(children, part) + } + return &OptionNameNode{ + compositeNode: compositeNode{ + children: children, + }, + Parts: parts, + Dots: dots, + } +} + +// FieldReferenceNode is a reference to a field name. It can indicate a regular +// field (simple unqualified name), an extension field (possibly-qualified name +// that is enclosed either in brackets or parentheses), or an "any" type +// reference (a type URL in the form "server.host/fully.qualified.Name" that is +// enclosed in brackets). +// +// Extension names are used in options to refer to custom options (which are +// actually extensions), in which case the name is enclosed in parentheses "(" +// and ")". They can also be used to refer to extension fields of options. +// +// Extension names are also used in message literals to set extension fields, +// in which case the name is enclosed in square brackets "[" and "]". +// +// "Any" type references can only be used in message literals, and are not +// allowed in option names. They are always enclosed in square brackets. An +// "any" type reference is distinguished from an extension name by the presence +// of a slash, which must be present in an "any" type reference and must be +// absent in an extension name. +// +// Examples: +// +// foobar +// (foo.bar) +// [foo.bar] +// [type.googleapis.com/foo.bar] +type FieldReferenceNode struct { + compositeNode + Open *RuneNode // only present for extension names and "any" type references + + // only present for "any" type references + UrlPrefix IdentValueNode + Slash *RuneNode + + Name IdentValueNode + + Close *RuneNode // only present for extension names and "any" type references +} + +// NewFieldReferenceNode creates a new *FieldReferenceNode for a regular field. +// The name arg must not be nil. +func NewFieldReferenceNode(name *IdentNode) *FieldReferenceNode { + if name == nil { + panic("name is nil") + } + children := []Node{name} + return &FieldReferenceNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + } +} + +// NewExtensionFieldReferenceNode creates a new *FieldReferenceNode for an +// extension field. All args must be non-nil. The openSym and closeSym runes +// should be "(" and ")" or "[" and "]". +func NewExtensionFieldReferenceNode(openSym *RuneNode, name IdentValueNode, closeSym *RuneNode) *FieldReferenceNode { + if name == nil { + panic("name is nil") + } + if openSym == nil { + panic("openSym is nil") + } + if closeSym == nil { + panic("closeSym is nil") + } + children := []Node{openSym, name, closeSym} + return &FieldReferenceNode{ + compositeNode: compositeNode{ + children: children, + }, + Open: openSym, + Name: name, + Close: closeSym, + } +} + +// NewAnyTypeReferenceNode creates a new *FieldReferenceNode for an "any" +// type reference. All args must be non-nil. The openSym and closeSym runes +// should be "[" and "]". The slashSym run should be "/". +func NewAnyTypeReferenceNode(openSym *RuneNode, urlPrefix IdentValueNode, slashSym *RuneNode, name IdentValueNode, closeSym *RuneNode) *FieldReferenceNode { + if name == nil { + panic("name is nil") + } + if openSym == nil { + panic("openSym is nil") + } + if closeSym == nil { + panic("closeSym is nil") + } + if urlPrefix == nil { + panic("urlPrefix is nil") + } + if slashSym == nil { + panic("slashSym is nil") + } + children := []Node{openSym, urlPrefix, slashSym, name, closeSym} + return &FieldReferenceNode{ + compositeNode: compositeNode{ + children: children, + }, + Open: openSym, + UrlPrefix: urlPrefix, + Slash: slashSym, + Name: name, + Close: closeSym, + } +} + +// IsExtension reports if this is an extension name or not (e.g. enclosed in +// punctuation, such as parentheses or brackets). +func (a *FieldReferenceNode) IsExtension() bool { + return a.Open != nil && a.Slash == nil +} + +// IsExtension reports if this is an extension name or not (e.g. enclosed in +// punctuation, such as parentheses or brackets). +func (a *FieldReferenceNode) IsAnyTypeReference() bool { + return a.Slash != nil +} + +func (a *FieldReferenceNode) Value() string { + if a.Open != nil { + if a.Slash != nil { + return string(a.Open.Rune) + string(a.UrlPrefix.AsIdentifier()) + string(a.Slash.Rune) + string(a.Name.AsIdentifier()) + string(a.Close.Rune) + } + return string(a.Open.Rune) + string(a.Name.AsIdentifier()) + string(a.Close.Rune) + } else { + return string(a.Name.AsIdentifier()) + } +} + +// CompactOptionsNode represents a compact options declaration, as used with +// fields, enum values, and extension ranges. Example: +// +// [deprecated = true, json_name = "foo_bar"] +type CompactOptionsNode struct { + compositeNode + OpenBracket *RuneNode + Options []*OptionNode + // Commas represent the separating ',' characters between options. The + // length of this slice must be exactly len(Options)-1, with each item + // in Options having a corresponding item in this slice *except the last* + // (since a trailing comma is not allowed). + Commas []*RuneNode + CloseBracket *RuneNode +} + +// NewCompactOptionsNode creates a *CompactOptionsNode. All args must be +// non-nil. The commas arg must have a length that is one less than the +// length of opts. The opts arg must not be empty. +func NewCompactOptionsNode(openBracket *RuneNode, opts []*OptionNode, commas []*RuneNode, closeBracket *RuneNode) *CompactOptionsNode { + if openBracket == nil { + panic("openBracket is nil") + } + if closeBracket == nil { + panic("closeBracket is nil") + } + if len(opts) == 0 { + panic("must have at least one part") + } + if len(commas) != len(opts)-1 { + panic(fmt.Sprintf("%d opts requires %d commas, not %d", len(opts), len(opts)-1, len(commas))) + } + children := make([]Node, 0, len(opts)*2+1) + children = append(children, openBracket) + for i, opt := range opts { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if opt == nil { + panic(fmt.Sprintf("opts[%d] is nil", i)) + } + children = append(children, opt) + } + children = append(children, closeBracket) + + return &CompactOptionsNode{ + compositeNode: compositeNode{ + children: children, + }, + OpenBracket: openBracket, + Options: opts, + Commas: commas, + CloseBracket: closeBracket, + } +} + +func (e *CompactOptionsNode) GetElements() []*OptionNode { + if e == nil { + return nil + } + return e.Options +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/print.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/print.go new file mode 100644 index 0000000..271200c --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/print.go @@ -0,0 +1,86 @@ +package ast + +import "io" + +// Print prints the given AST node to the given output. This operation +// basically walks the AST and, for each TerminalNode, prints the node's +// leading comments, leading whitespace, the node's raw text, and then +// any trailing comments. If the given node is a *FileNode, it will then +// also print the file's FinalComments and FinalWhitespace. +func Print(w io.Writer, node Node) error { + sw, ok := w.(stringWriter) + if !ok { + sw = &strWriter{w} + } + var err error + Walk(node, func(n Node) (bool, VisitFunc) { + if err != nil { + return false, nil + } + token, ok := n.(TerminalNode) + if !ok { + return true, nil + } + + err = printComments(sw, token.LeadingComments()) + if err != nil { + return false, nil + } + + _, err = sw.WriteString(token.LeadingWhitespace()) + if err != nil { + return false, nil + } + + _, err = sw.WriteString(token.RawText()) + if err != nil { + return false, nil + } + + err = printComments(sw, token.TrailingComments()) + return false, nil + }) + if err != nil { + return err + } + + if file, ok := node.(*FileNode); ok { + err = printComments(sw, file.FinalComments) + if err != nil { + return err + } + _, err = sw.WriteString(file.FinalWhitespace) + return err + } + + return nil +} + +func printComments(sw stringWriter, comments []Comment) error { + for _, comment := range comments { + if _, err := sw.WriteString(comment.LeadingWhitespace); err != nil { + return err + } + if _, err := sw.WriteString(comment.Text); err != nil { + return err + } + } + return nil +} + +// many io.Writer impls also provide a string-based method +type stringWriter interface { + WriteString(s string) (n int, err error) +} + +// adapter, in case the given writer does NOT provide a string-based method +type strWriter struct { + io.Writer +} + +func (s *strWriter) WriteString(str string) (int, error) { + if str == "" { + return 0, nil + } + return s.Write([]byte(str)) +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/ranges.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/ranges.go new file mode 100644 index 0000000..cdd78ba --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/ranges.go @@ -0,0 +1,305 @@ +package ast + +import "fmt" + +// ExtensionRangeNode represents an extension range declaration in an extendable +// message. Example: +// +// extensions 100 to max; +type ExtensionRangeNode struct { + compositeNode + Keyword *KeywordNode + Ranges []*RangeNode + // Commas represent the separating ',' characters between ranges. The + // length of this slice must be exactly len(Ranges)-1, each item in Ranges + // having a corresponding item in this slice *except the last* (since a + // trailing comma is not allowed). + Commas []*RuneNode + Options *CompactOptionsNode + Semicolon *RuneNode +} + +func (e *ExtensionRangeNode) msgElement() {} + +// NewExtensionRangeNode creates a new *ExtensionRangeNode. All args must be +// non-nil except opts, which may be nil. +// - keyword: The token corresponding to the "extends" keyword. +// - ranges: One or more range expressions. +// - commas: Tokens that represent the "," runes that delimit the range expressions. +// The length of commas must be one less than the length of ranges. +// - opts: The node corresponding to options that apply to each of the ranges. +// - semicolon The token corresponding to the ";" rune that ends the declaration. +func NewExtensionRangeNode(keyword *KeywordNode, ranges []*RangeNode, commas []*RuneNode, opts *CompactOptionsNode, semicolon *RuneNode) *ExtensionRangeNode { + if keyword == nil { + panic("keyword is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + if len(ranges) == 0 { + panic("must have at least one range") + } + if len(commas) != len(ranges)-1 { + panic(fmt.Sprintf("%d ranges requires %d commas, not %d", len(ranges), len(ranges)-1, len(commas))) + } + numChildren := len(ranges)*2 + 1 + if opts != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, keyword) + for i, rng := range ranges { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if rng == nil { + panic(fmt.Sprintf("ranges[%d] is nil", i)) + } + children = append(children, rng) + } + if opts != nil { + children = append(children, opts) + } + children = append(children, semicolon) + return &ExtensionRangeNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Ranges: ranges, + Commas: commas, + Options: opts, + Semicolon: semicolon, + } +} + +// RangeDeclNode is a placeholder interface for AST nodes that represent +// numeric values. This allows NoSourceNode to be used in place of *RangeNode +// for some usages. +type RangeDeclNode interface { + Node + RangeStart() Node + RangeEnd() Node +} + +var _ RangeDeclNode = (*RangeNode)(nil) +var _ RangeDeclNode = NoSourceNode{} + +// RangeNode represents a range expression, used in both extension ranges and +// reserved ranges. Example: +// +// 1000 to max +type RangeNode struct { + compositeNode + StartVal IntValueNode + // if To is non-nil, then exactly one of EndVal or Max must also be non-nil + To *KeywordNode + // EndVal and Max are mutually exclusive + EndVal IntValueNode + Max *KeywordNode +} + +// NewRangeNode creates a new *RangeNode. The start argument must be non-nil. +// The to argument represents the "to" keyword. If present (i.e. if it is non-nil), +// then so must be exactly one of end or max. If max is non-nil, it indicates a +// "100 to max" style range. But if end is non-nil, the end of the range is a +// literal, such as "100 to 200". +func NewRangeNode(start IntValueNode, to *KeywordNode, end IntValueNode, max *KeywordNode) *RangeNode { + if start == nil { + panic("start is nil") + } + numChildren := 1 + if to != nil { + if end == nil && max == nil { + panic("to is not nil, but end and max both are") + } + if end != nil && max != nil { + panic("end and max cannot be both non-nil") + } + numChildren = 3 + } else { + if end != nil { + panic("to is nil, but end is not") + } + if max != nil { + panic("to is nil, but max is not") + } + } + children := make([]Node, 0, numChildren) + children = append(children, start) + if to != nil { + children = append(children, to) + if end != nil { + children = append(children, end) + } else { + children = append(children, max) + } + } + return &RangeNode{ + compositeNode: compositeNode{ + children: children, + }, + StartVal: start, + To: to, + EndVal: end, + Max: max, + } +} + +func (n *RangeNode) RangeStart() Node { + return n.StartVal +} + +func (n *RangeNode) RangeEnd() Node { + if n.Max != nil { + return n.Max + } + if n.EndVal != nil { + return n.EndVal + } + return n.StartVal +} + +func (n *RangeNode) StartValue() interface{} { + return n.StartVal.Value() +} + +func (n *RangeNode) StartValueAsInt32(min, max int32) (int32, bool) { + return AsInt32(n.StartVal, min, max) +} + +func (n *RangeNode) EndValue() interface{} { + if n.EndVal == nil { + return nil + } + return n.EndVal.Value() +} + +func (n *RangeNode) EndValueAsInt32(min, max int32) (int32, bool) { + if n.Max != nil { + return max, true + } + if n.EndVal == nil { + return n.StartValueAsInt32(min, max) + } + return AsInt32(n.EndVal, min, max) +} + +// ReservedNode represents reserved declaration, which can be used to reserve +// either names or numbers. Examples: +// +// reserved 1, 10-12, 15; +// reserved "foo", "bar", "baz"; +type ReservedNode struct { + compositeNode + Keyword *KeywordNode + // If non-empty, this node represents reserved ranges and Names will be empty. + Ranges []*RangeNode + // If non-empty, this node represents reserved names and Ranges will be empty. + Names []StringValueNode + // Commas represent the separating ',' characters between options. The + // length of this slice must be exactly len(Ranges)-1 or len(Names)-1, depending + // on whether this node represents reserved ranges or reserved names. Each item + // in Ranges or Names has a corresponding item in this slice *except the last* + // (since a trailing comma is not allowed). + Commas []*RuneNode + Semicolon *RuneNode +} + +func (*ReservedNode) msgElement() {} +func (*ReservedNode) enumElement() {} + +// NewReservedRangesNode creates a new *ReservedNode that represents reserved +// numeric ranges. All args must be non-nil. +// - keyword: The token corresponding to the "reserved" keyword. +// - ranges: One or more range expressions. +// - commas: Tokens that represent the "," runes that delimit the range expressions. +// The length of commas must be one less than the length of ranges. +// - semicolon The token corresponding to the ";" rune that ends the declaration. +func NewReservedRangesNode(keyword *KeywordNode, ranges []*RangeNode, commas []*RuneNode, semicolon *RuneNode) *ReservedNode { + if keyword == nil { + panic("keyword is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + if len(ranges) == 0 { + panic("must have at least one range") + } + if len(commas) != len(ranges)-1 { + panic(fmt.Sprintf("%d ranges requires %d commas, not %d", len(ranges), len(ranges)-1, len(commas))) + } + children := make([]Node, 0, len(ranges)*2+1) + children = append(children, keyword) + for i, rng := range ranges { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if rng == nil { + panic(fmt.Sprintf("ranges[%d] is nil", i)) + } + children = append(children, rng) + } + children = append(children, semicolon) + return &ReservedNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Ranges: ranges, + Commas: commas, + Semicolon: semicolon, + } +} + +// NewReservedNamesNode creates a new *ReservedNode that represents reserved +// names. All args must be non-nil. +// - keyword: The token corresponding to the "reserved" keyword. +// - names: One or more names. +// - commas: Tokens that represent the "," runes that delimit the names. +// The length of commas must be one less than the length of names. +// - semicolon The token corresponding to the ";" rune that ends the declaration. +func NewReservedNamesNode(keyword *KeywordNode, names []StringValueNode, commas []*RuneNode, semicolon *RuneNode) *ReservedNode { + if keyword == nil { + panic("keyword is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + if len(names) == 0 { + panic("must have at least one name") + } + if len(commas) != len(names)-1 { + panic(fmt.Sprintf("%d names requires %d commas, not %d", len(names), len(names)-1, len(commas))) + } + children := make([]Node, 0, len(names)*2+1) + children = append(children, keyword) + for i, name := range names { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if name == nil { + panic(fmt.Sprintf("names[%d] is nil", i)) + } + children = append(children, name) + } + children = append(children, semicolon) + return &ReservedNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Names: names, + Commas: commas, + Semicolon: semicolon, + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/service.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/service.go new file mode 100644 index 0000000..739b29c --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/service.go @@ -0,0 +1,273 @@ +package ast + +import "fmt" + +// ServiceNode represents a service declaration. Example: +// +// service Foo { +// rpc Bar (Baz) returns (Bob); +// rpc Frobnitz (stream Parts) returns (Gyzmeaux); +// } +type ServiceNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + OpenBrace *RuneNode + Decls []ServiceElement + CloseBrace *RuneNode +} + +func (*ServiceNode) fileElement() {} + +// NewServiceNode creates a new *ServiceNode. All arguments must be non-nil. +// - keyword: The token corresponding to the "service" keyword. +// - name: The token corresponding to the service's name. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the service body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewServiceNode(keyword *KeywordNode, name *IdentNode, openBrace *RuneNode, decls []ServiceElement, closeBrace *RuneNode) *ServiceNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 4+len(decls)) + children = append(children, keyword, name, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + for _, decl := range decls { + switch decl := decl.(type) { + case *OptionNode, *RPCNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid ServiceElement type: %T", decl)) + } + } + + return &ServiceNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } +} + +// ServiceElement is an interface implemented by all AST nodes that can +// appear in the body of a service declaration. +type ServiceElement interface { + Node + serviceElement() +} + +var _ ServiceElement = (*OptionNode)(nil) +var _ ServiceElement = (*RPCNode)(nil) +var _ ServiceElement = (*EmptyDeclNode)(nil) + +// RPCDeclNode is a placeholder interface for AST nodes that represent RPC +// declarations. This allows NoSourceNode to be used in place of *RPCNode +// for some usages. +type RPCDeclNode interface { + Node + GetInputType() Node + GetOutputType() Node +} + +var _ RPCDeclNode = (*RPCNode)(nil) +var _ RPCDeclNode = NoSourceNode{} + +// RPCNode represents an RPC declaration. Example: +// +// rpc Foo (Bar) returns (Baz); +type RPCNode struct { + compositeNode + Keyword *KeywordNode + Name *IdentNode + Input *RPCTypeNode + Returns *KeywordNode + Output *RPCTypeNode + Semicolon *RuneNode + OpenBrace *RuneNode + Decls []RPCElement + CloseBrace *RuneNode +} + +func (n *RPCNode) serviceElement() {} + +// NewRPCNode creates a new *RPCNode with no body. All arguments must be non-nil. +// - keyword: The token corresponding to the "rpc" keyword. +// - name: The token corresponding to the RPC's name. +// - input: The token corresponding to the RPC input message type. +// - returns: The token corresponding to the "returns" keyword that precedes the output type. +// - output: The token corresponding to the RPC output message type. +// - semicolon: The token corresponding to the ";" rune that ends the declaration. +func NewRPCNode(keyword *KeywordNode, name *IdentNode, input *RPCTypeNode, returns *KeywordNode, output *RPCTypeNode, semicolon *RuneNode) *RPCNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if input == nil { + panic("input is nil") + } + if returns == nil { + panic("returns is nil") + } + if output == nil { + panic("output is nil") + } + if semicolon == nil { + panic("semicolon is nil") + } + children := []Node{keyword, name, input, returns, output, semicolon} + return &RPCNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Input: input, + Returns: returns, + Output: output, + Semicolon: semicolon, + } +} + +// NewRPCNodeWithBody creates a new *RPCNode that includes a body (and possibly +// options). All arguments must be non-nil. +// - keyword: The token corresponding to the "rpc" keyword. +// - name: The token corresponding to the RPC's name. +// - input: The token corresponding to the RPC input message type. +// - returns: The token corresponding to the "returns" keyword that precedes the output type. +// - output: The token corresponding to the RPC output message type. +// - openBrace: The token corresponding to the "{" rune that starts the body. +// - decls: All declarations inside the RPC body. +// - closeBrace: The token corresponding to the "}" rune that ends the body. +func NewRPCNodeWithBody(keyword *KeywordNode, name *IdentNode, input *RPCTypeNode, returns *KeywordNode, output *RPCTypeNode, openBrace *RuneNode, decls []RPCElement, closeBrace *RuneNode) *RPCNode { + if keyword == nil { + panic("keyword is nil") + } + if name == nil { + panic("name is nil") + } + if input == nil { + panic("input is nil") + } + if returns == nil { + panic("returns is nil") + } + if output == nil { + panic("output is nil") + } + if openBrace == nil { + panic("openBrace is nil") + } + if closeBrace == nil { + panic("closeBrace is nil") + } + children := make([]Node, 0, 7+len(decls)) + children = append(children, keyword, name, input, returns, output, openBrace) + for _, decl := range decls { + children = append(children, decl) + } + children = append(children, closeBrace) + + for _, decl := range decls { + switch decl := decl.(type) { + case *OptionNode, *EmptyDeclNode: + default: + panic(fmt.Sprintf("invalid RPCElement type: %T", decl)) + } + } + + return &RPCNode{ + compositeNode: compositeNode{ + children: children, + }, + Keyword: keyword, + Name: name, + Input: input, + Returns: returns, + Output: output, + OpenBrace: openBrace, + Decls: decls, + CloseBrace: closeBrace, + } +} + +func (n *RPCNode) GetInputType() Node { + return n.Input.MessageType +} + +func (n *RPCNode) GetOutputType() Node { + return n.Output.MessageType +} + +// RPCElement is an interface implemented by all AST nodes that can +// appear in the body of an rpc declaration (aka method). +type RPCElement interface { + Node + methodElement() +} + +var _ RPCElement = (*OptionNode)(nil) +var _ RPCElement = (*EmptyDeclNode)(nil) + +// RPCTypeNode represents the declaration of a request or response type for an +// RPC. Example: +// +// (stream foo.Bar) +type RPCTypeNode struct { + compositeNode + OpenParen *RuneNode + Stream *KeywordNode + MessageType IdentValueNode + CloseParen *RuneNode +} + +// NewRPCTypeNode creates a new *RPCTypeNode. All arguments must be non-nil +// except stream, which may be nil. +// - openParen: The token corresponding to the "(" rune that starts the declaration. +// - stream: The token corresponding to the "stream" keyword or nil if not present. +// - msgType: The token corresponding to the message type's name. +// - closeParen: The token corresponding to the ")" rune that ends the declaration. +func NewRPCTypeNode(openParen *RuneNode, stream *KeywordNode, msgType IdentValueNode, closeParen *RuneNode) *RPCTypeNode { + if openParen == nil { + panic("openParen is nil") + } + if msgType == nil { + panic("msgType is nil") + } + if closeParen == nil { + panic("closeParen is nil") + } + var children []Node + if stream != nil { + children = []Node{openParen, stream, msgType, closeParen} + } else { + children = []Node{openParen, msgType, closeParen} + } + + return &RPCTypeNode{ + compositeNode: compositeNode{ + children: children, + }, + OpenParen: openParen, + Stream: stream, + MessageType: msgType, + CloseParen: closeParen, + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/source_pos.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/source_pos.go new file mode 100644 index 0000000..8ab09c6 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/source_pos.go @@ -0,0 +1,29 @@ +package ast + +import ( + "github.com/bufbuild/protocompile/ast" +) + +// SourcePos identifies a location in a proto source file. +type SourcePos = ast.SourcePos + +// PosRange is a range of positions in a source file that indicates +// the span of some region of source, such as a single token or +// a sub-tree of the AST. +type PosRange struct { + Start, End SourcePos +} + +// Comment represents a single comment in a source file. It indicates +// the position of the comment and its contents. +type Comment struct { + // The location of the comment in the source file. + PosRange + // Any whitespace between the prior lexical element (either a token + // or other comment) and this comment. + LeadingWhitespace string + // The text of the comment, including any "//" or "/*" and "*/" + // symbols at the start and end. Single-line comments will include + // the trailing newline rune in Text. + Text string +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/values.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/values.go new file mode 100644 index 0000000..c75f448 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/values.go @@ -0,0 +1,569 @@ +package ast + +import ( + "fmt" + "math" + "strings" +) + +// ValueNode is an AST node that represents a literal value. +// +// It also includes references (e.g. IdentifierValueNode), which can be +// used as values in some contexts, such as describing the default value +// for a field, which can refer to an enum value. +// +// This also allows NoSourceNode to be used in place of a real value node +// for some usages. +type ValueNode interface { + Node + // Value returns a Go representation of the value. For scalars, this + // will be a string, int64, uint64, float64, or bool. This could also + // be an Identifier (e.g. IdentValueNodes). It can also be a composite + // literal: + // * For array literals, the type returned will be []ValueNode + // * For message literals, the type returned will be []*MessageFieldNode + Value() interface{} +} + +var _ ValueNode = (*IdentNode)(nil) +var _ ValueNode = (*CompoundIdentNode)(nil) +var _ ValueNode = (*StringLiteralNode)(nil) +var _ ValueNode = (*CompoundStringLiteralNode)(nil) +var _ ValueNode = (*UintLiteralNode)(nil) +var _ ValueNode = (*PositiveUintLiteralNode)(nil) +var _ ValueNode = (*NegativeIntLiteralNode)(nil) +var _ ValueNode = (*FloatLiteralNode)(nil) +var _ ValueNode = (*SpecialFloatLiteralNode)(nil) +var _ ValueNode = (*SignedFloatLiteralNode)(nil) +var _ ValueNode = (*BoolLiteralNode)(nil) +var _ ValueNode = (*ArrayLiteralNode)(nil) +var _ ValueNode = (*MessageLiteralNode)(nil) +var _ ValueNode = NoSourceNode{} + +// StringValueNode is an AST node that represents a string literal. +// Such a node can be a single literal (*StringLiteralNode) or a +// concatenation of multiple literals (*CompoundStringLiteralNode). +type StringValueNode interface { + ValueNode + AsString() string +} + +var _ StringValueNode = (*StringLiteralNode)(nil) +var _ StringValueNode = (*CompoundStringLiteralNode)(nil) + +// StringLiteralNode represents a simple string literal. Example: +// +// "proto2" +type StringLiteralNode struct { + terminalNode + // Val is the actual string value that the literal indicates. + Val string +} + +// NewStringLiteralNode creates a new *StringLiteralNode with the given val. +func NewStringLiteralNode(val string, info TokenInfo) *StringLiteralNode { + return &StringLiteralNode{ + terminalNode: info.asTerminalNode(), + Val: val, + } +} + +func (n *StringLiteralNode) Value() interface{} { + return n.AsString() +} + +func (n *StringLiteralNode) AsString() string { + return n.Val +} + +// CompoundStringLiteralNode represents a compound string literal, which is +// the concatenaton of adjacent string literals. Example: +// +// "this " "is" " all one " "string" +type CompoundStringLiteralNode struct { + compositeNode + Val string +} + +// NewCompoundLiteralStringNode creates a new *CompoundStringLiteralNode that +// consists of the given string components. The components argument may not be +// empty. +func NewCompoundLiteralStringNode(components ...*StringLiteralNode) *CompoundStringLiteralNode { + if len(components) == 0 { + panic("must have at least one component") + } + children := make([]Node, len(components)) + var b strings.Builder + for i, comp := range components { + children[i] = comp + b.WriteString(comp.Val) + } + return &CompoundStringLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Val: b.String(), + } +} + +func (n *CompoundStringLiteralNode) Value() interface{} { + return n.AsString() +} + +func (n *CompoundStringLiteralNode) AsString() string { + return n.Val +} + +// IntValueNode is an AST node that represents an integer literal. If +// an integer literal is too large for an int64 (or uint64 for +// positive literals), it is represented instead by a FloatValueNode. +type IntValueNode interface { + ValueNode + AsInt64() (int64, bool) + AsUint64() (uint64, bool) +} + +// AsInt32 range checks the given int value and returns its value is +// in the range or 0, false if it is outside the range. +func AsInt32(n IntValueNode, min, max int32) (int32, bool) { + i, ok := n.AsInt64() + if !ok { + return 0, false + } + if i < int64(min) || i > int64(max) { + return 0, false + } + return int32(i), true +} + +var _ IntValueNode = (*UintLiteralNode)(nil) +var _ IntValueNode = (*PositiveUintLiteralNode)(nil) +var _ IntValueNode = (*NegativeIntLiteralNode)(nil) + +// UintLiteralNode represents a simple integer literal with no sign character. +type UintLiteralNode struct { + terminalNode + // Val is the numeric value indicated by the literal + Val uint64 +} + +// NewUintLiteralNode creates a new *UintLiteralNode with the given val. +func NewUintLiteralNode(val uint64, info TokenInfo) *UintLiteralNode { + return &UintLiteralNode{ + terminalNode: info.asTerminalNode(), + Val: val, + } +} + +func (n *UintLiteralNode) Value() interface{} { + return n.Val +} + +func (n *UintLiteralNode) AsInt64() (int64, bool) { + if n.Val > math.MaxInt64 { + return 0, false + } + return int64(n.Val), true +} + +func (n *UintLiteralNode) AsUint64() (uint64, bool) { + return n.Val, true +} + +func (n *UintLiteralNode) AsFloat() float64 { + return float64(n.Val) +} + +// PositiveUintLiteralNode represents an integer literal with a positive (+) sign. +type PositiveUintLiteralNode struct { + compositeNode + Plus *RuneNode + Uint *UintLiteralNode + Val uint64 +} + +// NewPositiveUintLiteralNode creates a new *PositiveUintLiteralNode. Both +// arguments must be non-nil. +func NewPositiveUintLiteralNode(sign *RuneNode, i *UintLiteralNode) *PositiveUintLiteralNode { + if sign == nil { + panic("sign is nil") + } + if i == nil { + panic("i is nil") + } + children := []Node{sign, i} + return &PositiveUintLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Plus: sign, + Uint: i, + Val: i.Val, + } +} + +func (n *PositiveUintLiteralNode) Value() interface{} { + return n.Val +} + +func (n *PositiveUintLiteralNode) AsInt64() (int64, bool) { + if n.Val > math.MaxInt64 { + return 0, false + } + return int64(n.Val), true +} + +func (n *PositiveUintLiteralNode) AsUint64() (uint64, bool) { + return n.Val, true +} + +// NegativeIntLiteralNode represents an integer literal with a negative (-) sign. +type NegativeIntLiteralNode struct { + compositeNode + Minus *RuneNode + Uint *UintLiteralNode + Val int64 +} + +// NewNegativeIntLiteralNode creates a new *NegativeIntLiteralNode. Both +// arguments must be non-nil. +func NewNegativeIntLiteralNode(sign *RuneNode, i *UintLiteralNode) *NegativeIntLiteralNode { + if sign == nil { + panic("sign is nil") + } + if i == nil { + panic("i is nil") + } + children := []Node{sign, i} + return &NegativeIntLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Minus: sign, + Uint: i, + Val: -int64(i.Val), + } +} + +func (n *NegativeIntLiteralNode) Value() interface{} { + return n.Val +} + +func (n *NegativeIntLiteralNode) AsInt64() (int64, bool) { + return n.Val, true +} + +func (n *NegativeIntLiteralNode) AsUint64() (uint64, bool) { + if n.Val < 0 { + return 0, false + } + return uint64(n.Val), true +} + +// FloatValueNode is an AST node that represents a numeric literal with +// a floating point, in scientific notation, or too large to fit in an +// int64 or uint64. +type FloatValueNode interface { + ValueNode + AsFloat() float64 +} + +var _ FloatValueNode = (*FloatLiteralNode)(nil) +var _ FloatValueNode = (*SpecialFloatLiteralNode)(nil) +var _ FloatValueNode = (*UintLiteralNode)(nil) + +// FloatLiteralNode represents a floating point numeric literal. +type FloatLiteralNode struct { + terminalNode + // Val is the numeric value indicated by the literal + Val float64 +} + +// NewFloatLiteralNode creates a new *FloatLiteralNode with the given val. +func NewFloatLiteralNode(val float64, info TokenInfo) *FloatLiteralNode { + return &FloatLiteralNode{ + terminalNode: info.asTerminalNode(), + Val: val, + } +} + +func (n *FloatLiteralNode) Value() interface{} { + return n.AsFloat() +} + +func (n *FloatLiteralNode) AsFloat() float64 { + return n.Val +} + +// SpecialFloatLiteralNode represents a special floating point numeric literal +// for "inf" and "nan" values. +type SpecialFloatLiteralNode struct { + *KeywordNode + Val float64 +} + +// NewSpecialFloatLiteralNode returns a new *SpecialFloatLiteralNode for the +// given keyword, which must be "inf" or "nan". +func NewSpecialFloatLiteralNode(name *KeywordNode) *SpecialFloatLiteralNode { + var f float64 + if name.Val == "inf" { + f = math.Inf(1) + } else { + f = math.NaN() + } + return &SpecialFloatLiteralNode{ + KeywordNode: name, + Val: f, + } +} + +func (n *SpecialFloatLiteralNode) Value() interface{} { + return n.AsFloat() +} + +func (n *SpecialFloatLiteralNode) AsFloat() float64 { + return n.Val +} + +// SignedFloatLiteralNode represents a signed floating point number. +type SignedFloatLiteralNode struct { + compositeNode + Sign *RuneNode + Float FloatValueNode + Val float64 +} + +// NewSignedFloatLiteralNode creates a new *SignedFloatLiteralNode. Both +// arguments must be non-nil. +func NewSignedFloatLiteralNode(sign *RuneNode, f FloatValueNode) *SignedFloatLiteralNode { + if sign == nil { + panic("sign is nil") + } + if f == nil { + panic("f is nil") + } + children := []Node{sign, f} + val := f.AsFloat() + if sign.Rune == '-' { + val = -val + } + return &SignedFloatLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Sign: sign, + Float: f, + Val: val, + } +} + +func (n *SignedFloatLiteralNode) Value() interface{} { + return n.Val +} + +func (n *SignedFloatLiteralNode) AsFloat() float64 { + return n.Val +} + +// BoolLiteralNode represents a boolean literal. +// +// Deprecated: The AST uses IdentNode for boolean literals, where the +// identifier value is "true" or "false". This is required because an +// identifier "true" is not necessarily a boolean value as it could also +// be an enum value named "true" (ditto for "false"). +type BoolLiteralNode struct { + *KeywordNode + Val bool +} + +// NewBoolLiteralNode returns a new *BoolLiteralNode for the given keyword, +// which must be "true" or "false". +func NewBoolLiteralNode(name *KeywordNode) *BoolLiteralNode { + return &BoolLiteralNode{ + KeywordNode: name, + Val: name.Val == "true", + } +} + +func (n *BoolLiteralNode) Value() interface{} { + return n.Val +} + +// ArrayLiteralNode represents an array literal, which is only allowed inside of +// a MessageLiteralNode, to indicate values for a repeated field. Example: +// +// ["foo", "bar", "baz"] +type ArrayLiteralNode struct { + compositeNode + OpenBracket *RuneNode + Elements []ValueNode + // Commas represent the separating ',' characters between elements. The + // length of this slice must be exactly len(Elements)-1, with each item + // in Elements having a corresponding item in this slice *except the last* + // (since a trailing comma is not allowed). + Commas []*RuneNode + CloseBracket *RuneNode +} + +// NewArrayLiteralNode creates a new *ArrayLiteralNode. The openBracket and +// closeBracket args must be non-nil and represent the "[" and "]" runes that +// surround the array values. The given commas arg must have a length that is +// one less than the length of the vals arg. However, vals may be empty, in +// which case commas must also be empty. +func NewArrayLiteralNode(openBracket *RuneNode, vals []ValueNode, commas []*RuneNode, closeBracket *RuneNode) *ArrayLiteralNode { + if openBracket == nil { + panic("openBracket is nil") + } + if closeBracket == nil { + panic("closeBracket is nil") + } + if len(vals) == 0 && len(commas) != 0 { + panic("vals is empty but commas is not") + } + if len(vals) > 0 && len(commas) != len(vals)-1 { + panic(fmt.Sprintf("%d vals requires %d commas, not %d", len(vals), len(vals)-1, len(commas))) + } + children := make([]Node, 0, len(vals)*2+1) + children = append(children, openBracket) + for i, val := range vals { + if i > 0 { + if commas[i-1] == nil { + panic(fmt.Sprintf("commas[%d] is nil", i-1)) + } + children = append(children, commas[i-1]) + } + if val == nil { + panic(fmt.Sprintf("vals[%d] is nil", i)) + } + children = append(children, val) + } + children = append(children, closeBracket) + + return &ArrayLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + OpenBracket: openBracket, + Elements: vals, + Commas: commas, + CloseBracket: closeBracket, + } +} + +func (n *ArrayLiteralNode) Value() interface{} { + return n.Elements +} + +// MessageLiteralNode represents a message literal, which is compatible with the +// protobuf text format and can be used for custom options with message types. +// Example: +// +// { foo:1 foo:2 foo:3 bar: } +type MessageLiteralNode struct { + compositeNode + Open *RuneNode // should be '{' or '<' + Elements []*MessageFieldNode + // Separator characters between elements, which can be either ',' + // or ';' if present. This slice must be exactly len(Elements) in + // length, with each item in Elements having one corresponding item + // in Seps. Separators in message literals are optional, so a given + // item in this slice may be nil to indicate absence of a separator. + Seps []*RuneNode + Close *RuneNode // should be '}' or '>', depending on Open +} + +// NewMessageLiteralNode creates a new *MessageLiteralNode. The openSym and +// closeSym runes must not be nil and should be "{" and "}" or "<" and ">". +// +// Unlike separators (dots and commas) used for other AST nodes that represent +// a list of elements, the seps arg must be the SAME length as vals, and it may +// contain nil values to indicate absence of a separator (in fact, it could be +// all nils). +func NewMessageLiteralNode(openSym *RuneNode, vals []*MessageFieldNode, seps []*RuneNode, closeSym *RuneNode) *MessageLiteralNode { + if openSym == nil { + panic("openSym is nil") + } + if closeSym == nil { + panic("closeSym is nil") + } + if len(seps) != len(vals) { + panic(fmt.Sprintf("%d vals requires %d commas, not %d", len(vals), len(vals), len(seps))) + } + numChildren := len(vals) + 2 + for _, sep := range seps { + if sep != nil { + numChildren++ + } + } + children := make([]Node, 0, numChildren) + children = append(children, openSym) + for i, val := range vals { + if val == nil { + panic(fmt.Sprintf("vals[%d] is nil", i)) + } + children = append(children, val) + if seps[i] != nil { + children = append(children, seps[i]) + } + } + children = append(children, closeSym) + + return &MessageLiteralNode{ + compositeNode: compositeNode{ + children: children, + }, + Open: openSym, + Elements: vals, + Seps: seps, + Close: closeSym, + } +} + +func (n *MessageLiteralNode) Value() interface{} { + return n.Elements +} + +// MessageFieldNode represents a single field (name and value) inside of a +// message literal. Example: +// +// foo:"bar" +type MessageFieldNode struct { + compositeNode + Name *FieldReferenceNode + // Sep represents the ':' separator between the name and value. If + // the value is a message literal (and thus starts with '<' or '{') + // or an array literal (starting with '[') then the separator is + // optional, and thus may be nil. + Sep *RuneNode + Val ValueNode +} + +// NewMessageFieldNode creates a new *MessageFieldNode. All args except sep +// must be non-nil. +func NewMessageFieldNode(name *FieldReferenceNode, sep *RuneNode, val ValueNode) *MessageFieldNode { + if name == nil { + panic("name is nil") + } + if val == nil { + panic("val is nil") + } + numChildren := 2 + if sep != nil { + numChildren++ + } + children := make([]Node, 0, numChildren) + children = append(children, name) + if sep != nil { + children = append(children, sep) + } + children = append(children, val) + + return &MessageFieldNode{ + compositeNode: compositeNode{ + children: children, + }, + Name: name, + Sep: sep, + Val: val, + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/walk.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/walk.go new file mode 100644 index 0000000..5330194 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/ast/walk.go @@ -0,0 +1,492 @@ +package ast + +// VisitFunc is used to examine a node in the AST when walking the tree. +// It returns true or false as to whether or not the descendants of the +// given node should be visited. If it returns true, the node's children +// will be visisted; if false, they will not. When returning true, it +// can also return a new VisitFunc to use for the children. If it returns +// (true, nil), then the current function will be re-used when visiting +// the children. +// +// See also the Visitor type. +type VisitFunc func(Node) (bool, VisitFunc) + +// Walk conducts a walk of the AST rooted at the given root using the +// given function. It performs a "pre-order traversal", visiting a +// given AST node before it visits that node's descendants. +func Walk(root Node, v VisitFunc) { + ok, next := v(root) + if !ok { + return + } + if next != nil { + v = next + } + if comp, ok := root.(CompositeNode); ok { + for _, child := range comp.Children() { + Walk(child, v) + } + } +} + +// Visitor provides a technique for walking the AST that allows for +// dynamic dispatch, where a particular function is invoked based on +// the runtime type of the argument. +// +// It consists of a number of functions, each of which matches a +// concrete Node type. It also includes functions for sub-interfaces +// of Node and the Node interface itself, to be used as broader +// "catch all" functions. +// +// To use a visitor, provide a function for the node types of +// interest and pass visitor.Visit as the function to a Walk operation. +// When a node is traversed, the corresponding function field of +// the visitor is invoked, if not nil. If the function for a node's +// concrete type is nil/absent but the function for an interface it +// implements is present, that interface visit function will be used +// instead. If no matching function is present, the traversal will +// continue. If a matching function is present, it will be invoked +// and its response determines how the traversal proceeds. +// +// Every visit function returns (bool, *Visitor). If the bool returned +// is false, the visited node's descendants are skipped. Otherwise, +// traversal will continue into the node's children. If the returned +// visitor is nil, the current visitor will continue to be used. But +// if a non-nil visitor is returned, it will be used to visit the +// node's children. +type Visitor struct { + // VisitFileNode is invoked when visiting a *FileNode in the AST. + VisitFileNode func(*FileNode) (bool, *Visitor) + // VisitSyntaxNode is invoked when visiting a *SyntaxNode in the AST. + VisitSyntaxNode func(*SyntaxNode) (bool, *Visitor) + // VisitPackageNode is invoked when visiting a *PackageNode in the AST. + VisitPackageNode func(*PackageNode) (bool, *Visitor) + // VisitImportNode is invoked when visiting an *ImportNode in the AST. + VisitImportNode func(*ImportNode) (bool, *Visitor) + // VisitOptionNode is invoked when visiting an *OptionNode in the AST. + VisitOptionNode func(*OptionNode) (bool, *Visitor) + // VisitOptionNameNode is invoked when visiting an *OptionNameNode in the AST. + VisitOptionNameNode func(*OptionNameNode) (bool, *Visitor) + // VisitFieldReferenceNode is invoked when visiting a *FieldReferenceNode in the AST. + VisitFieldReferenceNode func(*FieldReferenceNode) (bool, *Visitor) + // VisitCompactOptionsNode is invoked when visiting a *CompactOptionsNode in the AST. + VisitCompactOptionsNode func(*CompactOptionsNode) (bool, *Visitor) + // VisitMessageNode is invoked when visiting a *MessageNode in the AST. + VisitMessageNode func(*MessageNode) (bool, *Visitor) + // VisitExtendNode is invoked when visiting an *ExtendNode in the AST. + VisitExtendNode func(*ExtendNode) (bool, *Visitor) + // VisitExtensionRangeNode is invoked when visiting an *ExtensionRangeNode in the AST. + VisitExtensionRangeNode func(*ExtensionRangeNode) (bool, *Visitor) + // VisitReservedNode is invoked when visiting a *ReservedNode in the AST. + VisitReservedNode func(*ReservedNode) (bool, *Visitor) + // VisitRangeNode is invoked when visiting a *RangeNode in the AST. + VisitRangeNode func(*RangeNode) (bool, *Visitor) + // VisitFieldNode is invoked when visiting a *FieldNode in the AST. + VisitFieldNode func(*FieldNode) (bool, *Visitor) + // VisitGroupNode is invoked when visiting a *GroupNode in the AST. + VisitGroupNode func(*GroupNode) (bool, *Visitor) + // VisitMapFieldNode is invoked when visiting a *MapFieldNode in the AST. + VisitMapFieldNode func(*MapFieldNode) (bool, *Visitor) + // VisitMapTypeNode is invoked when visiting a *MapTypeNode in the AST. + VisitMapTypeNode func(*MapTypeNode) (bool, *Visitor) + // VisitOneOfNode is invoked when visiting a *OneOfNode in the AST. + VisitOneOfNode func(*OneOfNode) (bool, *Visitor) + // VisitEnumNode is invoked when visiting an *EnumNode in the AST. + VisitEnumNode func(*EnumNode) (bool, *Visitor) + // VisitEnumValueNode is invoked when visiting an *EnumValueNode in the AST. + VisitEnumValueNode func(*EnumValueNode) (bool, *Visitor) + // VisitServiceNode is invoked when visiting a *ServiceNode in the AST. + VisitServiceNode func(*ServiceNode) (bool, *Visitor) + // VisitRPCNode is invoked when visiting an *RPCNode in the AST. + VisitRPCNode func(*RPCNode) (bool, *Visitor) + // VisitRPCTypeNode is invoked when visiting an *RPCTypeNode in the AST. + VisitRPCTypeNode func(*RPCTypeNode) (bool, *Visitor) + // VisitIdentNode is invoked when visiting an *IdentNode in the AST. + VisitIdentNode func(*IdentNode) (bool, *Visitor) + // VisitCompoundIdentNode is invoked when visiting a *CompoundIdentNode in the AST. + VisitCompoundIdentNode func(*CompoundIdentNode) (bool, *Visitor) + // VisitStringLiteralNode is invoked when visiting a *StringLiteralNode in the AST. + VisitStringLiteralNode func(*StringLiteralNode) (bool, *Visitor) + // VisitCompoundStringLiteralNode is invoked when visiting a *CompoundStringLiteralNode in the AST. + VisitCompoundStringLiteralNode func(*CompoundStringLiteralNode) (bool, *Visitor) + // VisitUintLiteralNode is invoked when visiting a *UintLiteralNode in the AST. + VisitUintLiteralNode func(*UintLiteralNode) (bool, *Visitor) + // VisitPositiveUintLiteralNode is invoked when visiting a *PositiveUintLiteralNode in the AST. + VisitPositiveUintLiteralNode func(*PositiveUintLiteralNode) (bool, *Visitor) + // VisitNegativeIntLiteralNode is invoked when visiting a *NegativeIntLiteralNode in the AST. + VisitNegativeIntLiteralNode func(*NegativeIntLiteralNode) (bool, *Visitor) + // VisitFloatLiteralNode is invoked when visiting a *FloatLiteralNode in the AST. + VisitFloatLiteralNode func(*FloatLiteralNode) (bool, *Visitor) + // VisitSpecialFloatLiteralNode is invoked when visiting a *SpecialFloatLiteralNode in the AST. + VisitSpecialFloatLiteralNode func(*SpecialFloatLiteralNode) (bool, *Visitor) + // VisitSignedFloatLiteralNode is invoked when visiting a *SignedFloatLiteralNode in the AST. + VisitSignedFloatLiteralNode func(*SignedFloatLiteralNode) (bool, *Visitor) + // VisitBoolLiteralNode is invoked when visiting a *BoolLiteralNode in the AST. + VisitBoolLiteralNode func(*BoolLiteralNode) (bool, *Visitor) + // VisitArrayLiteralNode is invoked when visiting an *ArrayLiteralNode in the AST. + VisitArrayLiteralNode func(*ArrayLiteralNode) (bool, *Visitor) + // VisitMessageLiteralNode is invoked when visiting a *MessageLiteralNode in the AST. + VisitMessageLiteralNode func(*MessageLiteralNode) (bool, *Visitor) + // VisitMessageFieldNode is invoked when visiting a *MessageFieldNode in the AST. + VisitMessageFieldNode func(*MessageFieldNode) (bool, *Visitor) + // VisitKeywordNode is invoked when visiting a *KeywordNode in the AST. + VisitKeywordNode func(*KeywordNode) (bool, *Visitor) + // VisitRuneNode is invoked when visiting a *RuneNode in the AST. + VisitRuneNode func(*RuneNode) (bool, *Visitor) + // VisitEmptyDeclNode is invoked when visiting a *EmptyDeclNode in the AST. + VisitEmptyDeclNode func(*EmptyDeclNode) (bool, *Visitor) + + // VisitFieldDeclNode is invoked when visiting a FieldDeclNode in the AST. + // This function is used when no concrete type function is provided. If + // both this and VisitMessageDeclNode are provided, and a node implements + // both (such as *GroupNode and *MapFieldNode), this function will be + // invoked and not the other. + VisitFieldDeclNode func(FieldDeclNode) (bool, *Visitor) + // VisitMessageDeclNode is invoked when visiting a MessageDeclNode in the AST. + // This function is used when no concrete type function is provided. + VisitMessageDeclNode func(MessageDeclNode) (bool, *Visitor) + + // VisitIdentValueNode is invoked when visiting an IdentValueNode in the AST. + // This function is used when no concrete type function is provided. + VisitIdentValueNode func(IdentValueNode) (bool, *Visitor) + // VisitStringValueNode is invoked when visiting a StringValueNode in the AST. + // This function is used when no concrete type function is provided. + VisitStringValueNode func(StringValueNode) (bool, *Visitor) + // VisitIntValueNode is invoked when visiting an IntValueNode in the AST. + // This function is used when no concrete type function is provided. If + // both this and VisitFloatValueNode are provided, and a node implements + // both (such as *UintLiteralNode), this function will be invoked and + // not the other. + VisitIntValueNode func(IntValueNode) (bool, *Visitor) + // VisitFloatValueNode is invoked when visiting a FloatValueNode in the AST. + // This function is used when no concrete type function is provided. + VisitFloatValueNode func(FloatValueNode) (bool, *Visitor) + // VisitValueNode is invoked when visiting a ValueNode in the AST. This + // function is used when no concrete type function is provided and no + // more specific ValueNode function is provided that matches the node. + VisitValueNode func(ValueNode) (bool, *Visitor) + + // VisitTerminalNode is invoked when visiting a TerminalNode in the AST. + // This function is used when no concrete type function is provided + // no more specific interface type function is provided. + VisitTerminalNode func(TerminalNode) (bool, *Visitor) + // VisitCompositeNode is invoked when visiting a CompositeNode in the AST. + // This function is used when no concrete type function is provided + // no more specific interface type function is provided. + VisitCompositeNode func(CompositeNode) (bool, *Visitor) + // VisitNode is invoked when visiting a Node in the AST. This + // function is only used when no other more specific function is + // provided. + VisitNode func(Node) (bool, *Visitor) +} + +// Visit provides the Visitor's implementation of VisitFunc, to be +// used with Walk operations. +func (v *Visitor) Visit(n Node) (bool, VisitFunc) { + var ok, matched bool + var next *Visitor + switch n := n.(type) { + case *FileNode: + if v.VisitFileNode != nil { + matched = true + ok, next = v.VisitFileNode(n) + } + case *SyntaxNode: + if v.VisitSyntaxNode != nil { + matched = true + ok, next = v.VisitSyntaxNode(n) + } + case *PackageNode: + if v.VisitPackageNode != nil { + matched = true + ok, next = v.VisitPackageNode(n) + } + case *ImportNode: + if v.VisitImportNode != nil { + matched = true + ok, next = v.VisitImportNode(n) + } + case *OptionNode: + if v.VisitOptionNode != nil { + matched = true + ok, next = v.VisitOptionNode(n) + } + case *OptionNameNode: + if v.VisitOptionNameNode != nil { + matched = true + ok, next = v.VisitOptionNameNode(n) + } + case *FieldReferenceNode: + if v.VisitFieldReferenceNode != nil { + matched = true + ok, next = v.VisitFieldReferenceNode(n) + } + case *CompactOptionsNode: + if v.VisitCompactOptionsNode != nil { + matched = true + ok, next = v.VisitCompactOptionsNode(n) + } + case *MessageNode: + if v.VisitMessageNode != nil { + matched = true + ok, next = v.VisitMessageNode(n) + } + case *ExtendNode: + if v.VisitExtendNode != nil { + matched = true + ok, next = v.VisitExtendNode(n) + } + case *ExtensionRangeNode: + if v.VisitExtensionRangeNode != nil { + matched = true + ok, next = v.VisitExtensionRangeNode(n) + } + case *ReservedNode: + if v.VisitReservedNode != nil { + matched = true + ok, next = v.VisitReservedNode(n) + } + case *RangeNode: + if v.VisitRangeNode != nil { + matched = true + ok, next = v.VisitRangeNode(n) + } + case *FieldNode: + if v.VisitFieldNode != nil { + matched = true + ok, next = v.VisitFieldNode(n) + } + case *GroupNode: + if v.VisitGroupNode != nil { + matched = true + ok, next = v.VisitGroupNode(n) + } + case *MapFieldNode: + if v.VisitMapFieldNode != nil { + matched = true + ok, next = v.VisitMapFieldNode(n) + } + case *MapTypeNode: + if v.VisitMapTypeNode != nil { + matched = true + ok, next = v.VisitMapTypeNode(n) + } + case *OneOfNode: + if v.VisitOneOfNode != nil { + matched = true + ok, next = v.VisitOneOfNode(n) + } + case *EnumNode: + if v.VisitEnumNode != nil { + matched = true + ok, next = v.VisitEnumNode(n) + } + case *EnumValueNode: + if v.VisitEnumValueNode != nil { + matched = true + ok, next = v.VisitEnumValueNode(n) + } + case *ServiceNode: + if v.VisitServiceNode != nil { + matched = true + ok, next = v.VisitServiceNode(n) + } + case *RPCNode: + if v.VisitRPCNode != nil { + matched = true + ok, next = v.VisitRPCNode(n) + } + case *RPCTypeNode: + if v.VisitRPCTypeNode != nil { + matched = true + ok, next = v.VisitRPCTypeNode(n) + } + case *IdentNode: + if v.VisitIdentNode != nil { + matched = true + ok, next = v.VisitIdentNode(n) + } + case *CompoundIdentNode: + if v.VisitCompoundIdentNode != nil { + matched = true + ok, next = v.VisitCompoundIdentNode(n) + } + case *StringLiteralNode: + if v.VisitStringLiteralNode != nil { + matched = true + ok, next = v.VisitStringLiteralNode(n) + } + case *CompoundStringLiteralNode: + if v.VisitCompoundStringLiteralNode != nil { + matched = true + ok, next = v.VisitCompoundStringLiteralNode(n) + } + case *UintLiteralNode: + if v.VisitUintLiteralNode != nil { + matched = true + ok, next = v.VisitUintLiteralNode(n) + } + case *PositiveUintLiteralNode: + if v.VisitPositiveUintLiteralNode != nil { + matched = true + ok, next = v.VisitPositiveUintLiteralNode(n) + } + case *NegativeIntLiteralNode: + if v.VisitNegativeIntLiteralNode != nil { + matched = true + ok, next = v.VisitNegativeIntLiteralNode(n) + } + case *FloatLiteralNode: + if v.VisitFloatLiteralNode != nil { + matched = true + ok, next = v.VisitFloatLiteralNode(n) + } + case *SpecialFloatLiteralNode: + if v.VisitSpecialFloatLiteralNode != nil { + matched = true + ok, next = v.VisitSpecialFloatLiteralNode(n) + } + case *SignedFloatLiteralNode: + if v.VisitSignedFloatLiteralNode != nil { + matched = true + ok, next = v.VisitSignedFloatLiteralNode(n) + } + case *BoolLiteralNode: + if v.VisitBoolLiteralNode != nil { + matched = true + ok, next = v.VisitBoolLiteralNode(n) + } + case *ArrayLiteralNode: + if v.VisitArrayLiteralNode != nil { + matched = true + ok, next = v.VisitArrayLiteralNode(n) + } + case *MessageLiteralNode: + if v.VisitMessageLiteralNode != nil { + matched = true + ok, next = v.VisitMessageLiteralNode(n) + } + case *MessageFieldNode: + if v.VisitMessageFieldNode != nil { + matched = true + ok, next = v.VisitMessageFieldNode(n) + } + case *KeywordNode: + if v.VisitKeywordNode != nil { + matched = true + ok, next = v.VisitKeywordNode(n) + } + case *RuneNode: + if v.VisitRuneNode != nil { + matched = true + ok, next = v.VisitRuneNode(n) + } + case *EmptyDeclNode: + if v.VisitEmptyDeclNode != nil { + matched = true + ok, next = v.VisitEmptyDeclNode(n) + } + } + + if !matched { + // Visitor provided no concrete type visit function, so + // check interface types. We do this in several passes + // to provide "priority" for matched interfaces for nodes + // that actually implement more than one interface. + // + // For example, StringLiteralNode implements both + // StringValueNode and ValueNode. Both cases could match + // so the first case is what would match. So if we want + // to test against either, they need to be in different + // switch statements. + switch n := n.(type) { + case FieldDeclNode: + if v.VisitFieldDeclNode != nil { + matched = true + ok, next = v.VisitFieldDeclNode(n) + } + case IdentValueNode: + if v.VisitIdentValueNode != nil { + matched = true + ok, next = v.VisitIdentValueNode(n) + } + case StringValueNode: + if v.VisitStringValueNode != nil { + matched = true + ok, next = v.VisitStringValueNode(n) + } + case IntValueNode: + if v.VisitIntValueNode != nil { + matched = true + ok, next = v.VisitIntValueNode(n) + } + } + } + + if !matched { + // These two are excluded from the above switch so that + // if visitor provides both VisitIntValueNode and + // VisitFloatValueNode, we'll prefer VisitIntValueNode + // for *UintLiteralNode (which implements both). Similarly, + // that way we prefer VisitFieldDeclNode over + // VisitMessageDeclNode when visiting a *GroupNode. + switch n := n.(type) { + case FloatValueNode: + if v.VisitFloatValueNode != nil { + matched = true + ok, next = v.VisitFloatValueNode(n) + } + case MessageDeclNode: + if v.VisitMessageDeclNode != nil { + matched = true + ok, next = v.VisitMessageDeclNode(n) + } + } + } + + if !matched { + switch n := n.(type) { + case ValueNode: + if v.VisitValueNode != nil { + matched = true + ok, next = v.VisitValueNode(n) + } + } + } + + if !matched { + switch n := n.(type) { + case TerminalNode: + if v.VisitTerminalNode != nil { + matched = true + ok, next = v.VisitTerminalNode(n) + } + case CompositeNode: + if v.VisitCompositeNode != nil { + matched = true + ok, next = v.VisitCompositeNode(n) + } + } + } + + if !matched { + // finally, fallback to most generic visit function + if v.VisitNode != nil { + matched = true + ok, next = v.VisitNode(n) + } + } + + if !matched { + // keep descending with the current visitor + return true, nil + } + + if !ok { + return false, nil + } + if next != nil { + return true, next.Visit + } + return true, v.Visit +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/doc.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/doc.go new file mode 100644 index 0000000..c6446d3 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/doc.go @@ -0,0 +1,10 @@ +// Package protoparse provides functionality for parsing *.proto source files +// into descriptors that can be used with other protoreflect packages, like +// dynamic messages and dynamic GRPC clients. +// +// This package links in other packages that include compiled descriptors for +// the various "google/protobuf/*.proto" files that are included with protoc. +// That way, like when invoking protoc, programs need not supply copies of these +// "builtin" files. Though if copies of the files are provided, they will be +// used instead of the builtin descriptors. +package protoparse diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/errors.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/errors.go new file mode 100644 index 0000000..c71d651 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/errors.go @@ -0,0 +1,117 @@ +package protoparse + +import ( + "errors" + "fmt" + + "github.com/bufbuild/protocompile/linker" + "github.com/bufbuild/protocompile/parser" + "github.com/bufbuild/protocompile/reporter" + + "github.com/jhump/protoreflect/desc/protoparse/ast" +) + +// SourcePos is the same as ast.SourcePos. This alias exists for +// backwards compatibility (SourcePos used to be defined in this package.) +type SourcePos = ast.SourcePos + +// ErrInvalidSource is a sentinel error that is returned by calls to +// Parser.ParseFiles and Parser.ParseFilesButDoNotLink in the event that syntax +// or link errors are encountered, but the parser's configured ErrorReporter +// always returns nil. +var ErrInvalidSource = reporter.ErrInvalidSource + +// ErrNoSyntax is a sentinel error that may be passed to a warning reporter. +// The error the reporter receives will be wrapped with source position that +// indicates the file that had no syntax statement. +var ErrNoSyntax = parser.ErrNoSyntax + +// ErrLookupImportAndProtoSet is the error returned if both LookupImport and LookupImportProto are set. +// +// Deprecated: This error is no longer used. It is now legal to set both LookupImport and LookupImportProto +// fields on the Parser. +var ErrLookupImportAndProtoSet = errors.New("both LookupImport and LookupImportProto set") + +// ErrorReporter is responsible for reporting the given error. If the reporter +// returns a non-nil error, parsing/linking will abort with that error. If the +// reporter returns nil, parsing will continue, allowing the parser to try to +// report as many syntax and/or link errors as it can find. +type ErrorReporter = reporter.ErrorReporter + +// WarningReporter is responsible for reporting the given warning. This is used +// for indicating non-error messages to the calling program for things that do +// not cause the parse to fail but are considered bad practice. Though they are +// just warnings, the details are supplied to the reporter via an error type. +type WarningReporter = reporter.WarningReporter + +// ErrorWithPos is an error about a proto source file that includes information +// about the location in the file that caused the error. +// +// The value of Error() will contain both the SourcePos and Underlying error. +// The value of Unwrap() will only be the Underlying error. +type ErrorWithPos = reporter.ErrorWithPos + +// ErrorWithSourcePos is an error about a proto source file that includes +// information about the location in the file that caused the error. +// +// Errors that include source location information *might* be of this type. +// However, calling code that is trying to examine errors with location info +// should instead look for instances of the ErrorWithPos interface, which +// will find other kinds of errors. This type is only exported for backwards +// compatibility. +// +// SourcePos should always be set and never nil. +type ErrorWithSourcePos struct { + Underlying error + Pos *SourcePos +} + +// Error implements the error interface +func (e ErrorWithSourcePos) Error() string { + sourcePos := e.GetPosition() + return fmt.Sprintf("%s: %v", sourcePos, e.Underlying) +} + +// GetPosition implements the ErrorWithPos interface, supplying a location in +// proto source that caused the error. +func (e ErrorWithSourcePos) GetPosition() SourcePos { + if e.Pos == nil { + return SourcePos{Filename: ""} + } + return *e.Pos +} + +// Unwrap implements the ErrorWithPos interface, supplying the underlying +// error. This error will not include location information. +func (e ErrorWithSourcePos) Unwrap() error { + return e.Underlying +} + +var _ ErrorWithPos = ErrorWithSourcePos{} + +func toErrorWithSourcePos(err ErrorWithPos) ErrorWithPos { + pos := err.GetPosition() + return ErrorWithSourcePos{ + Underlying: err.Unwrap(), + Pos: &pos, + } +} + +// ErrorUnusedImport may be passed to a warning reporter when an unused +// import is detected. The error the reporter receives will be wrapped +// with source position that indicates the file and line where the import +// statement appeared. +type ErrorUnusedImport = linker.ErrorUnusedImport + +type errorWithFilename struct { + underlying error + filename string +} + +func (e errorWithFilename) Error() string { + return fmt.Sprintf("%s: %v", e.filename, e.underlying) +} + +func (e errorWithFilename) Unwrap() error { + return e.underlying +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/parser.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/parser.go new file mode 100644 index 0000000..a1312d1 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/parser.go @@ -0,0 +1,680 @@ +package protoparse + +import ( + "context" + "fmt" + "io" + "io/ioutil" + "os" + "path/filepath" + "sort" + "strings" + + "github.com/bufbuild/protocompile" + ast2 "github.com/bufbuild/protocompile/ast" + "github.com/bufbuild/protocompile/linker" + "github.com/bufbuild/protocompile/options" + "github.com/bufbuild/protocompile/parser" + "github.com/bufbuild/protocompile/protoutil" + "github.com/bufbuild/protocompile/reporter" + "github.com/bufbuild/protocompile/sourceinfo" + "github.com/bufbuild/protocompile/walk" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/jhump/protoreflect/desc" + "github.com/jhump/protoreflect/desc/protoparse/ast" +) + +// FileAccessor is an abstraction for opening proto source files. It takes the +// name of the file to open and returns either the input reader or an error. +type FileAccessor func(filename string) (io.ReadCloser, error) + +// FileContentsFromMap returns a FileAccessor that uses the given map of file +// contents. This allows proto source files to be constructed in memory and +// easily supplied to a parser. The map keys are the paths to the proto source +// files, and the values are the actual proto source contents. +func FileContentsFromMap(files map[string]string) FileAccessor { + return func(filename string) (io.ReadCloser, error) { + contents, ok := files[filename] + if !ok { + return nil, os.ErrNotExist + } + return ioutil.NopCloser(strings.NewReader(contents)), nil + } +} + +// Parser parses proto source into descriptors. +type Parser struct { + // The paths used to search for dependencies that are referenced in import + // statements in proto source files. If no import paths are provided then + // "." (current directory) is assumed to be the only import path. + // + // This setting is only used during ParseFiles operations. Since calls to + // ParseFilesButDoNotLink do not link, there is no need to load and parse + // dependencies. + ImportPaths []string + + // If true, the supplied file names/paths need not necessarily match how the + // files are referenced in import statements. The parser will attempt to + // match import statements to supplied paths, "guessing" the import paths + // for the files. Note that this inference is not perfect and link errors + // could result. It works best when all proto files are organized such that + // a single import path can be inferred (e.g. all files under a single tree + // with import statements all being relative to the root of this tree). + InferImportPaths bool + + // LookupImport is a function that accepts a filename and + // returns a file descriptor, which will be consulted when resolving imports. + // This allows a compiled Go proto in another Go module to be referenced + // in the proto(s) being parsed. + // + // In the event of a filename collision, Accessor is consulted first, + // then LookupImport is consulted, and finally the well-known protos + // are used. + // + // For example, in order to automatically look up compiled Go protos that + // have been imported and be able to use them as imports, set this to + // desc.LoadFileDescriptor. + LookupImport func(string) (*desc.FileDescriptor, error) + + // LookupImportProto has the same functionality as LookupImport, however it returns + // a FileDescriptorProto instead of a FileDescriptor. + LookupImportProto func(string) (*descriptorpb.FileDescriptorProto, error) + + // Used to create a reader for a given filename, when loading proto source + // file contents. If unset, os.Open is used. If ImportPaths is also empty + // then relative paths are will be relative to the process's current working + // directory. + Accessor FileAccessor + + // If true, the resulting file descriptors will retain source code info, + // that maps elements to their location in the source files as well as + // includes comments found during parsing (and attributed to elements of + // the source file). + IncludeSourceCodeInfo bool + + // If true, the results from ParseFilesButDoNotLink will be passed through + // some additional validations. But only constraints that do not require + // linking can be checked. These include proto2 vs. proto3 language features, + // looking for incorrect usage of reserved names or tags, and ensuring that + // fields have unique tags and that enum values have unique numbers (unless + // the enum allows aliases). + ValidateUnlinkedFiles bool + + // If true, the results from ParseFilesButDoNotLink will have options + // interpreted. Any uninterpretable options (including any custom options or + // options that refer to message and enum types, which can only be + // interpreted after linking) will be left in uninterpreted_options. Also, + // the "default" pseudo-option for fields can only be interpreted for scalar + // fields, excluding enums. (Interpreting default values for enum fields + // requires resolving enum names, which requires linking.) + InterpretOptionsInUnlinkedFiles bool + + // A custom reporter of syntax and link errors. If not specified, the + // default reporter just returns the reported error, which causes parsing + // to abort after encountering a single error. + // + // The reporter is not invoked for system or I/O errors, only for syntax and + // link errors. + ErrorReporter ErrorReporter + + // A custom reporter of warnings. If not specified, warning messages are ignored. + WarningReporter WarningReporter +} + +// ParseFiles parses the named files into descriptors. The returned slice has +// the same number of entries as the give filenames, in the same order. So the +// first returned descriptor corresponds to the first given name, and so on. +// +// All dependencies for all specified files (including transitive dependencies) +// must be accessible via the parser's Accessor or a link error will occur. The +// exception to this rule is that files can import standard Google-provided +// files -- e.g. google/protobuf/*.proto -- without needing to supply sources +// for these files. Like protoc, this parser has a built-in version of these +// files it can use if they aren't explicitly supplied. +// +// If the Parser has no ErrorReporter set and a syntax or link error occurs, +// parsing will abort with the first such error encountered. If there is an +// ErrorReporter configured and it returns non-nil, parsing will abort with the +// error it returns. If syntax or link errors are encountered but the configured +// ErrorReporter always returns nil, the parse fails with ErrInvalidSource. +func (p Parser) ParseFiles(filenames ...string) ([]*desc.FileDescriptor, error) { + srcInfoMode := protocompile.SourceInfoNone + if p.IncludeSourceCodeInfo { + srcInfoMode = protocompile.SourceInfoExtraComments + } + rep := newReporter(p.ErrorReporter, p.WarningReporter) + res, srcPosAddr := p.getResolver(filenames) + + if p.InferImportPaths { + // we must first compile everything to protos + results, err := parseToProtosRecursive(res, filenames, reporter.NewHandler(rep), srcPosAddr) + if err != nil { + return nil, err + } + // then we can infer import paths + // TODO: if this re-writes one of the names in filenames, lookups below will break + results = fixupFilenames(results) + resolverFromResults := protocompile.ResolverFunc(func(path string) (protocompile.SearchResult, error) { + res, ok := results[path] + if !ok { + return protocompile.SearchResult{}, os.ErrNotExist + } + return protocompile.SearchResult{ParseResult: noCloneParseResult{res}}, nil + }) + res = protocompile.CompositeResolver{resolverFromResults, res} + } + + c := protocompile.Compiler{ + Resolver: res, + MaxParallelism: 1, + SourceInfoMode: srcInfoMode, + Reporter: rep, + } + results, err := c.Compile(context.Background(), filenames...) + if err != nil { + return nil, err + } + + fds := make([]protoreflect.FileDescriptor, len(results)) + for i, res := range results { + if linkRes, ok := res.(linker.Result); ok { + removeDynamicExtensions(linkRes.FileDescriptorProto()) + } + fds[i] = results[i] + } + return desc.WrapFiles(fds) +} + +type noCloneParseResult struct { + parser.Result +} + +func (r noCloneParseResult) Clone() parser.Result { + // protocompile will clone parser.Result to make sure it can't be shared + // with other compilation operations (which would not be thread-safe). + // However, this parse result cannot be shared with another compile + // operation. That means the clone is unnecessary; so we skip it, to avoid + // the associated performance costs. + return r.Result +} + +// ParseFilesButDoNotLink parses the named files into descriptor protos. The +// results are just protos, not fully-linked descriptors. It is possible that +// descriptors are invalid and still be returned in parsed form without error +// due to the fact that the linking step is skipped (and thus many validation +// steps omitted). +// +// There are a few side effects to not linking the descriptors: +// 1. No options will be interpreted. Options can refer to extensions or have +// message and enum types. Without linking, these extension and type +// references are not resolved, so the options may not be interpretable. +// So all options will appear in UninterpretedOption fields of the various +// descriptor options messages. +// 2. Type references will not be resolved. This means that the actual type +// names in the descriptors may be unqualified and even relative to the +// scope in which the type reference appears. This goes for fields that +// have message and enum types. It also applies to methods and their +// references to request and response message types. +// 3. Type references are not known. For non-scalar fields, until the type +// name is resolved (during linking), it is not known whether the type +// refers to a message or an enum. So all fields with such type references +// will not have their Type set, only the TypeName. +// +// This method will still validate the syntax of parsed files. If the parser's +// ValidateUnlinkedFiles field is true, additional checks, beyond syntax will +// also be performed. +// +// If the Parser has no ErrorReporter set and a syntax error occurs, parsing +// will abort with the first such error encountered. If there is an +// ErrorReporter configured and it returns non-nil, parsing will abort with the +// error it returns. If syntax errors are encountered but the configured +// ErrorReporter always returns nil, the parse fails with ErrInvalidSource. +func (p Parser) ParseFilesButDoNotLink(filenames ...string) ([]*descriptorpb.FileDescriptorProto, error) { + rep := newReporter(p.ErrorReporter, p.WarningReporter) + res, _ := p.getResolver(filenames) + results, err := parseToProtos(res, filenames, reporter.NewHandler(rep), p.ValidateUnlinkedFiles) + if err != nil { + return nil, err + } + + if p.InferImportPaths { + resultsMap := make(map[string]parser.Result, len(results)) + for _, res := range results { + resultsMap[res.FileDescriptorProto().GetName()] = res + } + resultsMap = fixupFilenames(resultsMap) + for i := range filenames { + results[i] = resultsMap[filenames[i]] + } + } + + protos := make([]*descriptorpb.FileDescriptorProto, len(results)) + for i, res := range results { + protos[i] = res.FileDescriptorProto() + var optsIndex options.Index + if p.InterpretOptionsInUnlinkedFiles { + var err error + optsIndex, err = options.InterpretUnlinkedOptions(res) + if err != nil { + return nil, err + } + removeDynamicExtensions(protos[i]) + } + if p.IncludeSourceCodeInfo { + protos[i].SourceCodeInfo = sourceinfo.GenerateSourceInfo(res.AST(), optsIndex) + } + } + + return protos, nil +} + +// ParseToAST parses the named files into ASTs, or Abstract Syntax Trees. This +// is for consumers of proto files that don't care about compiling the files to +// descriptors, but care deeply about a non-lossy structured representation of +// the source (since descriptors are lossy). This includes formatting tools and +// possibly linters, too. +// +// If the requested filenames include standard imports (such as +// "google/protobuf/empty.proto") and no source is provided, the corresponding +// AST in the returned slice will be nil. These standard imports are only +// available for use as descriptors; no source is available unless it is +// provided by the configured Accessor. +// +// If the Parser has no ErrorReporter set and a syntax error occurs, parsing +// will abort with the first such error encountered. If there is an +// ErrorReporter configured and it returns non-nil, parsing will abort with the +// error it returns. If syntax errors are encountered but the configured +// ErrorReporter always returns nil, the parse fails with ErrInvalidSource. +func (p Parser) ParseToAST(filenames ...string) ([]*ast.FileNode, error) { + rep := newReporter(p.ErrorReporter, p.WarningReporter) + res, _ := p.getResolver(filenames) + asts, _, err := parseToASTs(res, filenames, reporter.NewHandler(rep)) + if err != nil { + return nil, err + } + results := make([]*ast.FileNode, len(asts)) + for i := range asts { + if asts[i] == nil { + // should not be possible but... + return nil, fmt.Errorf("resolver did not produce source for %v", filenames[i]) + } + results[i] = convertAST(asts[i]) + } + return results, nil +} + +func parseToAST(res protocompile.Resolver, filename string, rep *reporter.Handler) (*ast2.FileNode, parser.Result, error) { + searchResult, err := res.FindFileByPath(filename) + if err != nil { + _ = rep.HandleError(err) + return nil, nil, rep.Error() + } + switch { + case searchResult.ParseResult != nil: + return nil, searchResult.ParseResult, nil + case searchResult.Proto != nil: + return nil, parser.ResultWithoutAST(searchResult.Proto), nil + case searchResult.Desc != nil: + return nil, parser.ResultWithoutAST(protoutil.ProtoFromFileDescriptor(searchResult.Desc)), nil + case searchResult.AST != nil: + return searchResult.AST, nil, nil + case searchResult.Source != nil: + astRoot, err := parser.Parse(filename, searchResult.Source, rep) + return astRoot, nil, err + default: + _ = rep.HandleError(fmt.Errorf("resolver did not produce a result for %v", filename)) + return nil, nil, rep.Error() + } +} + +func parseToASTs(res protocompile.Resolver, filenames []string, rep *reporter.Handler) ([]*ast2.FileNode, []parser.Result, error) { + asts := make([]*ast2.FileNode, len(filenames)) + results := make([]parser.Result, len(filenames)) + for i := range filenames { + asts[i], results[i], _ = parseToAST(res, filenames[i], rep) + if rep.ReporterError() != nil { + break + } + } + return asts, results, rep.Error() +} + +func parseToProtos(res protocompile.Resolver, filenames []string, rep *reporter.Handler, validate bool) ([]parser.Result, error) { + asts, results, err := parseToASTs(res, filenames, rep) + if err != nil { + return nil, err + } + for i := range results { + if results[i] != nil { + continue + } + var err error + results[i], err = parser.ResultFromAST(asts[i], validate, rep) + if err != nil { + return nil, err + } + } + return results, nil +} + +func parseToProtosRecursive(res protocompile.Resolver, filenames []string, rep *reporter.Handler, srcPosAddr *SourcePos) (map[string]parser.Result, error) { + results := make(map[string]parser.Result, len(filenames)) + for _, filename := range filenames { + parseToProtoRecursive(res, filename, rep, srcPosAddr, results) + } + return results, rep.Error() +} + +func parseToProtoRecursive(res protocompile.Resolver, filename string, rep *reporter.Handler, srcPosAddr *SourcePos, results map[string]parser.Result) { + if _, ok := results[filename]; ok { + // already processed this one + return + } + results[filename] = nil // placeholder entry + + astRoot, parseResult, _ := parseToAST(res, filename, rep) + if rep.ReporterError() != nil { + return + } + if parseResult == nil { + parseResult, _ = parser.ResultFromAST(astRoot, true, rep) + if rep.ReporterError() != nil { + return + } + } + results[filename] = parseResult + + for _, decl := range astRoot.Decls { + imp, ok := decl.(*ast2.ImportNode) + if !ok { + continue + } + func() { + orig := *srcPosAddr + *srcPosAddr = astRoot.NodeInfo(imp.Name).Start() + defer func() { + *srcPosAddr = orig + }() + + parseToProtoRecursive(res, imp.Name.AsString(), rep, srcPosAddr, results) + }() + if rep.ReporterError() != nil { + return + } + } +} + +func newReporter(errRep ErrorReporter, warnRep WarningReporter) reporter.Reporter { + if errRep != nil { + delegate := errRep + errRep = func(err ErrorWithPos) error { + if _, ok := err.(ErrorWithSourcePos); !ok { + err = toErrorWithSourcePos(err) + } + return delegate(err) + } + } + if warnRep != nil { + delegate := warnRep + warnRep = func(err ErrorWithPos) { + if _, ok := err.(ErrorWithSourcePos); !ok { + err = toErrorWithSourcePos(err) + } + delegate(err) + } + } + return reporter.NewReporter(errRep, warnRep) +} + +func (p Parser) getResolver(filenames []string) (protocompile.Resolver, *SourcePos) { + var srcPos SourcePos + accessor := p.Accessor + if accessor == nil { + accessor = func(name string) (io.ReadCloser, error) { + return os.Open(name) + } + } + sourceResolver := &protocompile.SourceResolver{ + Accessor: func(filename string) (io.ReadCloser, error) { + in, err := accessor(filename) + if err != nil { + if !strings.Contains(err.Error(), filename) { + // errors that don't include the filename that failed are no bueno + err = errorWithFilename{filename: filename, underlying: err} + } + if srcPos.Filename != "" { + err = reporter.Error(srcPos, err) + } + } + return in, err + }, + ImportPaths: p.ImportPaths, + } + var importResolver protocompile.CompositeResolver + if p.LookupImport != nil { + importResolver = append(importResolver, protocompile.ResolverFunc(func(path string) (protocompile.SearchResult, error) { + fd, err := p.LookupImport(path) + if err != nil { + return protocompile.SearchResult{}, err + } + return protocompile.SearchResult{Desc: fd.UnwrapFile()}, nil + })) + } + if p.LookupImportProto != nil { + importResolver = append(importResolver, protocompile.ResolverFunc(func(path string) (protocompile.SearchResult, error) { + fd, err := p.LookupImportProto(path) + if err != nil { + return protocompile.SearchResult{}, err + } + return protocompile.SearchResult{Proto: fd}, nil + })) + } + backupResolver := protocompile.WithStandardImports(importResolver) + mustBeSource := make(map[string]struct{}, len(filenames)) + for _, name := range filenames { + mustBeSource[name] = struct{}{} + } + return protocompile.CompositeResolver{ + sourceResolver, + protocompile.ResolverFunc(func(path string) (protocompile.SearchResult, error) { + if _, ok := mustBeSource[path]; ok { + return protocompile.SearchResult{}, os.ErrNotExist + } + return backupResolver.FindFileByPath(path) + }), + }, &srcPos +} + +func fixupFilenames(protos map[string]parser.Result) map[string]parser.Result { + // In the event that the given filenames (keys in the supplied map) do not + // match the actual paths used in 'import' statements in the files, we try + // to revise names in the protos so that they will match and be linkable. + revisedProtos := map[string]parser.Result{} + + protoPaths := map[string]struct{}{} + // TODO: this is O(n^2) but could likely be O(n) with a clever data structure (prefix tree that is indexed backwards?) + importCandidates := map[string]map[string]struct{}{} + candidatesAvailable := map[string]struct{}{} + for name := range protos { + candidatesAvailable[name] = struct{}{} + for _, f := range protos { + for _, imp := range f.FileDescriptorProto().Dependency { + if strings.HasSuffix(name, imp) { + candidates := importCandidates[imp] + if candidates == nil { + candidates = map[string]struct{}{} + importCandidates[imp] = candidates + } + candidates[name] = struct{}{} + } + } + } + } + for imp, candidates := range importCandidates { + // if we found multiple possible candidates, use the one that is an exact match + // if it exists, and otherwise, guess that it's the shortest path (fewest elements) + var best string + for c := range candidates { + if _, ok := candidatesAvailable[c]; !ok { + // already used this candidate and re-written its filename accordingly + continue + } + if c == imp { + // exact match! + best = c + break + } + if best == "" { + best = c + } else { + // HACK: we can't actually tell which files is supposed to match + // this import, so arbitrarily pick the "shorter" one (fewest + // path elements) or, on a tie, the lexically earlier one + minLen := strings.Count(best, string(filepath.Separator)) + cLen := strings.Count(c, string(filepath.Separator)) + if cLen < minLen || (cLen == minLen && c < best) { + best = c + } + } + } + if best != "" { + prefix := best[:len(best)-len(imp)] + if len(prefix) > 0 { + protoPaths[prefix] = struct{}{} + } + f := protos[best] + f.FileDescriptorProto().Name = proto.String(imp) + revisedProtos[imp] = f + delete(candidatesAvailable, best) + } + } + + if len(candidatesAvailable) == 0 { + return revisedProtos + } + + if len(protoPaths) == 0 { + for c := range candidatesAvailable { + revisedProtos[c] = protos[c] + } + return revisedProtos + } + + // Any remaining candidates are entry-points (not imported by others), so + // the best bet to "fixing" their file name is to see if they're in one of + // the proto paths we found, and if so strip that prefix. + protoPathStrs := make([]string, len(protoPaths)) + i := 0 + for p := range protoPaths { + protoPathStrs[i] = p + i++ + } + sort.Strings(protoPathStrs) + // we look at paths in reverse order, so we'll use a longer proto path if + // there is more than one match + for c := range candidatesAvailable { + var imp string + for i := len(protoPathStrs) - 1; i >= 0; i-- { + p := protoPathStrs[i] + if strings.HasPrefix(c, p) { + imp = c[len(p):] + break + } + } + if imp != "" { + f := protos[c] + f.FileDescriptorProto().Name = proto.String(imp) + f.FileNode() + revisedProtos[imp] = f + } else { + revisedProtos[c] = protos[c] + } + } + + return revisedProtos +} + +func removeDynamicExtensions(fd *descriptorpb.FileDescriptorProto) { + // protocompile returns descriptors with dynamic extension fields for custom options. + // But protoparse only used known custom options and everything else defined in the + // sources would be stored as unrecognized fields. So to bridge the difference in + // behavior, we need to remove custom options from the given file and add them back + // via serializing-then-de-serializing them back into the options messages. That way, + // statically known options will be properly typed and others will be unrecognized. + // + // This is best effort. So if an error occurs, we'll still return a result, but it + // may include a dynamic extension. + fd.Options = removeDynamicExtensionsFromOptions(fd.Options) + _ = walk.DescriptorProtos(fd, func(_ protoreflect.FullName, msg proto.Message) error { + switch msg := msg.(type) { + case *descriptorpb.DescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + for _, extr := range msg.ExtensionRange { + extr.Options = removeDynamicExtensionsFromOptions(extr.Options) + } + case *descriptorpb.FieldDescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + case *descriptorpb.OneofDescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + case *descriptorpb.EnumDescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + case *descriptorpb.EnumValueDescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + case *descriptorpb.ServiceDescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + case *descriptorpb.MethodDescriptorProto: + msg.Options = removeDynamicExtensionsFromOptions(msg.Options) + } + return nil + }) +} + +type ptrMsg[T any] interface { + *T + proto.Message +} + +type fieldValue struct { + fd protoreflect.FieldDescriptor + val protoreflect.Value +} + +func removeDynamicExtensionsFromOptions[O ptrMsg[T], T any](opts O) O { + if opts == nil { + return nil + } + var dynamicExtensions []fieldValue + opts.ProtoReflect().Range(func(fd protoreflect.FieldDescriptor, val protoreflect.Value) bool { + if fd.IsExtension() { + dynamicExtensions = append(dynamicExtensions, fieldValue{fd: fd, val: val}) + } + return true + }) + + // serialize only these custom options + optsWithOnlyDyn := opts.ProtoReflect().Type().New() + for _, fv := range dynamicExtensions { + optsWithOnlyDyn.Set(fv.fd, fv.val) + } + data, err := proto.MarshalOptions{AllowPartial: true}.Marshal(optsWithOnlyDyn.Interface()) + if err != nil { + // oh, well... can't fix this one + return opts + } + + // and then replace values by clearing these custom options and deserializing + optsClone := proto.Clone(opts).ProtoReflect() + for _, fv := range dynamicExtensions { + optsClone.Clear(fv.fd) + } + err = proto.UnmarshalOptions{AllowPartial: true, Merge: true}.Unmarshal(data, optsClone.Interface()) + if err != nil { + // bummer, can't fix this one + return opts + } + + return optsClone.Interface().(O) +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/resolve_files.go b/vendor/github.com/jhump/protoreflect/desc/protoparse/resolve_files.go new file mode 100644 index 0000000..3ae1415 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/resolve_files.go @@ -0,0 +1,175 @@ +package protoparse + +import ( + "errors" + "fmt" + "os" + "path/filepath" + "strings" +) + +var errNoImportPathsForAbsoluteFilePath = errors.New("must specify at least one import path if any absolute file paths are given") + +// ResolveFilenames tries to resolve fileNames into paths that are relative to +// directories in the given importPaths. The returned slice has the results in +// the same order as they are supplied in fileNames. +// +// The resulting names should be suitable for passing to Parser.ParseFiles. +// +// If no import paths are given and any file name is absolute, this returns an +// error. If no import paths are given and all file names are relative, this +// returns the original file names. If a file name is already relative to one +// of the given import paths, it will be unchanged in the returned slice. If a +// file name given is relative to the current working directory, it will be made +// relative to one of the given import paths; but if it cannot be made relative +// (due to no matching import path), an error will be returned. +func ResolveFilenames(importPaths []string, fileNames ...string) ([]string, error) { + if len(importPaths) == 0 { + if containsAbsFilePath(fileNames) { + // We have to do this as otherwise parseProtoFiles can result in duplicate symbols. + // For example, assume we import "foo/bar/bar.proto" in a file "/home/alice/dev/foo/bar/baz.proto" + // as we call ParseFiles("/home/alice/dev/foo/bar/bar.proto","/home/alice/dev/foo/bar/baz.proto") + // with "/home/alice/dev" as our current directory. Due to the recursive nature of parseProtoFiles, + // it will discover the import "foo/bar/bar.proto" in the input file, and call parse on this, + // adding "foo/bar/bar.proto" to the parsed results, as well as "/home/alice/dev/foo/bar/bar.proto" + // from the input file list. This will result in a + // 'duplicate symbol SYMBOL: already defined as field in "/home/alice/dev/foo/bar/bar.proto' + // error being returned from ParseFiles. + return nil, errNoImportPathsForAbsoluteFilePath + } + return fileNames, nil + } + absImportPaths, err := absoluteFilePaths(importPaths) + if err != nil { + return nil, err + } + resolvedFileNames := make([]string, 0, len(fileNames)) + for _, fileName := range fileNames { + resolvedFileName, err := resolveFilename(absImportPaths, fileName) + if err != nil { + return nil, err + } + // On Windows, the resolved paths will use "\", but proto imports + // require the use of "/". So fix up here. + if filepath.Separator != '/' { + resolvedFileName = strings.Replace(resolvedFileName, string(filepath.Separator), "/", -1) + } + resolvedFileNames = append(resolvedFileNames, resolvedFileName) + } + return resolvedFileNames, nil +} + +func containsAbsFilePath(filePaths []string) bool { + for _, filePath := range filePaths { + if filepath.IsAbs(filePath) { + return true + } + } + return false +} + +func absoluteFilePaths(filePaths []string) ([]string, error) { + absFilePaths := make([]string, 0, len(filePaths)) + for _, filePath := range filePaths { + absFilePath, err := canonicalize(filePath) + if err != nil { + return nil, err + } + absFilePaths = append(absFilePaths, absFilePath) + } + return absFilePaths, nil +} + +func canonicalize(filePath string) (string, error) { + absPath, err := filepath.Abs(filePath) + if err != nil { + return "", err + } + // this is kind of gross, but it lets us construct a resolved path even if some + // path elements do not exist (a single call to filepath.EvalSymlinks would just + // return an error, ENOENT, in that case). + head := absPath + tail := "" + for { + noLinks, err := filepath.EvalSymlinks(head) + if err == nil { + if tail != "" { + return filepath.Join(noLinks, tail), nil + } + return noLinks, nil + } + + if tail == "" { + tail = filepath.Base(head) + } else { + tail = filepath.Join(filepath.Base(head), tail) + } + head = filepath.Dir(head) + if head == "." { + // ran out of path elements to try to resolve + return absPath, nil + } + } +} + +const dotPrefix = "." + string(filepath.Separator) +const dotDotPrefix = ".." + string(filepath.Separator) + +func resolveFilename(absImportPaths []string, fileName string) (string, error) { + if filepath.IsAbs(fileName) { + return resolveAbsFilename(absImportPaths, fileName) + } + + if !strings.HasPrefix(fileName, dotPrefix) && !strings.HasPrefix(fileName, dotDotPrefix) { + // Use of . and .. are assumed to be relative to current working + // directory. So if those aren't present, check to see if the file is + // relative to an import path. + for _, absImportPath := range absImportPaths { + absFileName := filepath.Join(absImportPath, fileName) + _, err := os.Stat(absFileName) + if err != nil { + continue + } + // found it! it was relative to this import path + return fileName, nil + } + } + + // must be relative to current working dir + return resolveAbsFilename(absImportPaths, fileName) +} + +func resolveAbsFilename(absImportPaths []string, fileName string) (string, error) { + absFileName, err := canonicalize(fileName) + if err != nil { + return "", err + } + for _, absImportPath := range absImportPaths { + if isDescendant(absImportPath, absFileName) { + resolvedPath, err := filepath.Rel(absImportPath, absFileName) + if err != nil { + return "", err + } + return resolvedPath, nil + } + } + return "", fmt.Errorf("%s does not reside in any import path", fileName) +} + +// isDescendant returns true if file is a descendant of dir. Both dir and file must +// be cleaned, absolute paths. +func isDescendant(dir, file string) bool { + dir = filepath.Clean(dir) + cur := file + for { + d := filepath.Dir(cur) + if d == dir { + return true + } + if d == "." || d == cur { + // we've run out of path elements + return false + } + cur = d + } +} diff --git a/vendor/github.com/jhump/protoreflect/desc/protoparse/test-source-info.txt b/vendor/github.com/jhump/protoreflect/desc/protoparse/test-source-info.txt new file mode 100644 index 0000000..ef11ff4 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/protoparse/test-source-info.txt @@ -0,0 +1,6401 @@ +---- desc_test_comments.proto ---- + + +: +desc_test_comments.proto:8:1 +desc_test_comments.proto:156:2 + + + > syntax: +desc_test_comments.proto:8:1 +desc_test_comments.proto:8:19 + Leading detached comment [0]: + This is the first detached comment for the syntax. + + Leading detached comment [1]: + + This is a second detached comment. + + Leading detached comment [2]: + This is a third. + + Leading comments: + Syntax comment... + + Trailing comments: + Syntax trailer. + + + + > package: +desc_test_comments.proto:12:1 +desc_test_comments.proto:12:17 + Leading comments: + And now the package declaration + + + + > options: +desc_test_comments.proto:15:1 +desc_test_comments.proto:15:75 + + + > options > go_package: +desc_test_comments.proto:15:1 +desc_test_comments.proto:15:75 + Leading comments: + option comments FTW!!! + + + + > dependency[0]: +desc_test_comments.proto:17:1 +desc_test_comments.proto:17:45 + + + > public_dependency[0]: +desc_test_comments.proto:17:8 +desc_test_comments.proto:17:14 + + + > dependency[1]: +desc_test_comments.proto:18:1 +desc_test_comments.proto:18:34 + + + > message_type[0]: +desc_test_comments.proto:25:1 +desc_test_comments.proto:113:2 + Leading detached comment [0]: + Multiple white space lines (like above) cannot + be preserved... + + Leading comments: + We need a request for our RPC service below. + + + + > message_type[0] > name: +desc_test_comments.proto:25:68 +desc_test_comments.proto:25:75 + Leading comments: + request with a capital R + Trailing comments: + trailer + + + + > message_type[0] > options: +desc_test_comments.proto:26:9 +desc_test_comments.proto:26:34 + + + > message_type[0] > options > deprecated: +desc_test_comments.proto:26:9 +desc_test_comments.proto:26:34 + Trailing comments: + deprecated! + + + + > message_type[0] > field[0]: +desc_test_comments.proto:29:9 +desc_test_comments.proto:32:132 + Leading comments: + A field comment + + Trailing comments: + field trailer #1... + + + + > message_type[0] > field[0] > label: +desc_test_comments.proto:29:9 +desc_test_comments.proto:29:17 + + + > message_type[0] > field[0] > type: +desc_test_comments.proto:29:18 +desc_test_comments.proto:29:23 + + + > message_type[0] > field[0] > name: +desc_test_comments.proto:29:24 +desc_test_comments.proto:29:27 + + + > message_type[0] > field[0] > number: +desc_test_comments.proto:29:70 +desc_test_comments.proto:29:71 + Leading comments: + tag numero uno + Trailing comments: + tag trailer +that spans multiple lines... +more than two. + + + > message_type[0] > field[0] > options: +desc_test_comments.proto:32:11 +desc_test_comments.proto:32:131 + + + > message_type[0] > field[0] > options > packed: +desc_test_comments.proto:32:12 +desc_test_comments.proto:32:23 + Trailing comments: + packed! + + + > message_type[0] > field[0] > json_name: +desc_test_comments.proto:32:39 +desc_test_comments.proto:32:56 + Trailing comments: + custom JSON! + + + > message_type[0] > field[0] > options > (testprotos.ffubar)[0]: +desc_test_comments.proto:32:77 +desc_test_comments.proto:32:102 + + + > message_type[0] > field[0] > options > (testprotos.ffubarb): +desc_test_comments.proto:32:104 +desc_test_comments.proto:32:130 + + + > message_type[0] > options: +desc_test_comments.proto:35:27 +desc_test_comments.proto:35:61 + + + > message_type[0] > options > (testprotos.mfubar): +desc_test_comments.proto:35:27 +desc_test_comments.proto:35:61 + Leading comments: + lead mfubar + Trailing comments: + trailing mfubar + + + + > message_type[0] > field[1]: +desc_test_comments.proto:42:29 +desc_test_comments.proto:43:77 + Leading detached comment [0]: + some detached comments + + Leading detached comment [1]: + some detached comments with unicode 这个是值 + + Leading detached comment [2]: + Another field comment + + Leading comments: + label comment + + + > message_type[0] > field[1] > label: +desc_test_comments.proto:42:29 +desc_test_comments.proto:42:37 + + + > message_type[0] > field[1] > type: +desc_test_comments.proto:42:57 +desc_test_comments.proto:42:63 + Leading detached comment [0]: + type comment + + + > message_type[0] > field[1] > name: +desc_test_comments.proto:42:83 +desc_test_comments.proto:42:87 + Leading detached comment [0]: + name comment + + + > message_type[0] > field[1] > number: +desc_test_comments.proto:42:90 +desc_test_comments.proto:42:91 + + + > message_type[0] > field[1] > options: +desc_test_comments.proto:43:17 +desc_test_comments.proto:43:76 + + + > message_type[0] > field[1] > default_value: +desc_test_comments.proto:43:37 +desc_test_comments.proto:43:54 + Leading detached comment [0]: + default lead + Trailing comments: + default trail + + + > message_type[0] > extension_range: +desc_test_comments.proto:46:9 +desc_test_comments.proto:46:31 + Leading comments: + extension range comments are (sadly) not preserved + + + + > message_type[0] > extension_range[0]: +desc_test_comments.proto:46:20 +desc_test_comments.proto:46:30 + + + > message_type[0] > extension_range[0] > start: +desc_test_comments.proto:46:20 +desc_test_comments.proto:46:23 + + + > message_type[0] > extension_range[0] > end: +desc_test_comments.proto:46:27 +desc_test_comments.proto:46:30 + + + > message_type[0] > extension_range: +desc_test_comments.proto:47:9 +desc_test_comments.proto:47:109 + + + > message_type[0] > extension_range[1]: +desc_test_comments.proto:47:20 +desc_test_comments.proto:47:30 + + + > message_type[0] > extension_range[1] > start: +desc_test_comments.proto:47:20 +desc_test_comments.proto:47:23 + + + > message_type[0] > extension_range[1] > end: +desc_test_comments.proto:47:27 +desc_test_comments.proto:47:30 + + + > message_type[0] > extension_range[1] > options: +desc_test_comments.proto:47:31 +desc_test_comments.proto:47:108 + + + > message_type[0] > extension_range[1] > options > (testprotos.exfubarb): +desc_test_comments.proto:47:32 +desc_test_comments.proto:47:74 + + + > message_type[0] > extension_range[1] > options > (testprotos.exfubar)[0]: +desc_test_comments.proto:47:76 +desc_test_comments.proto:47:107 + + + > message_type[0] > reserved_range: +desc_test_comments.proto:51:48 +desc_test_comments.proto:51:77 + Leading detached comment [0]: + another detached comment + + Leading comments: + same for reserved range comments + + + > message_type[0] > reserved_range[0]: +desc_test_comments.proto:51:57 +desc_test_comments.proto:51:65 + + + > message_type[0] > reserved_range[0] > start: +desc_test_comments.proto:51:57 +desc_test_comments.proto:51:59 + + + > message_type[0] > reserved_range[0] > end: +desc_test_comments.proto:51:63 +desc_test_comments.proto:51:65 + + + > message_type[0] > reserved_range[1]: +desc_test_comments.proto:51:67 +desc_test_comments.proto:51:75 + + + > message_type[0] > reserved_range[1] > start: +desc_test_comments.proto:51:67 +desc_test_comments.proto:51:69 + + + > message_type[0] > reserved_range[1] > end: +desc_test_comments.proto:51:73 +desc_test_comments.proto:51:75 + + + > message_type[0] > reserved_name: +desc_test_comments.proto:52:9 +desc_test_comments.proto:52:38 + Trailing comments: + reserved trailers + + + > message_type[0] > reserved_name[0]: +desc_test_comments.proto:52:18 +desc_test_comments.proto:52:23 + + + > message_type[0] > reserved_name[1]: +desc_test_comments.proto:52:25 +desc_test_comments.proto:52:30 + + + > message_type[0] > reserved_name[2]: +desc_test_comments.proto:52:32 +desc_test_comments.proto:52:37 + + + > message_type[0] > field[2]: +desc_test_comments.proto:55:9 +desc_test_comments.proto:69:10 + + + > message_type[0] > field[2] > label: +desc_test_comments.proto:55:9 +desc_test_comments.proto:55:17 + + + > message_type[0] > field[2] > type: +desc_test_comments.proto:55:18 +desc_test_comments.proto:55:23 + + + > message_type[0] > field[2] > name: +desc_test_comments.proto:55:41 +desc_test_comments.proto:55:47 + + + > message_type[0] > field[2] > number: +desc_test_comments.proto:55:50 +desc_test_comments.proto:55:51 + + + > message_type[0] > nested_type[0]: +desc_test_comments.proto:55:9 +desc_test_comments.proto:69:10 + Leading comments: + Group comment with emoji 😀 😍 👻 ❤ 💯 💥 🐶 🦂 🥑 🍻 🌍 🚕 🪐 + + Trailing comments: + trailer for Extras + + + + > message_type[0] > nested_type[0] > name: +desc_test_comments.proto:55:41 +desc_test_comments.proto:55:47 + Leading detached comment [0]: + group name + + + > message_type[0] > field[2] > type_name: +desc_test_comments.proto:55:41 +desc_test_comments.proto:55:47 + + + > message_type[0] > nested_type[0] > options: +desc_test_comments.proto:59:17 +desc_test_comments.proto:59:52 + + + > message_type[0] > nested_type[0] > options > (testprotos.mfubar): +desc_test_comments.proto:59:17 +desc_test_comments.proto:59:52 + Leading comments: + this is a custom option + + + + > message_type[0] > nested_type[0] > field[0]: +desc_test_comments.proto:61:17 +desc_test_comments.proto:61:41 + + + > message_type[0] > nested_type[0] > field[0] > label: +desc_test_comments.proto:61:17 +desc_test_comments.proto:61:25 + + + > message_type[0] > nested_type[0] > field[0] > type: +desc_test_comments.proto:61:26 +desc_test_comments.proto:61:32 + + + > message_type[0] > nested_type[0] > field[0] > name: +desc_test_comments.proto:61:33 +desc_test_comments.proto:61:36 + + + > message_type[0] > nested_type[0] > field[0] > number: +desc_test_comments.proto:61:39 +desc_test_comments.proto:61:40 + + + > message_type[0] > nested_type[0] > field[1]: +desc_test_comments.proto:62:17 +desc_test_comments.proto:62:40 + + + > message_type[0] > nested_type[0] > field[1] > label: +desc_test_comments.proto:62:17 +desc_test_comments.proto:62:25 + + + > message_type[0] > nested_type[0] > field[1] > type: +desc_test_comments.proto:62:26 +desc_test_comments.proto:62:31 + + + > message_type[0] > nested_type[0] > field[1] > name: +desc_test_comments.proto:62:32 +desc_test_comments.proto:62:35 + + + > message_type[0] > nested_type[0] > field[1] > number: +desc_test_comments.proto:62:38 +desc_test_comments.proto:62:39 + + + > message_type[0] > nested_type[0] > options: +desc_test_comments.proto:64:17 +desc_test_comments.proto:64:64 + + + > message_type[0] > nested_type[0] > options > no_standard_descriptor_accessor: +desc_test_comments.proto:64:17 +desc_test_comments.proto:64:64 + + + > message_type[0] > nested_type[0] > field[2]: +desc_test_comments.proto:67:17 +desc_test_comments.proto:67:41 + Leading comments: + Leading comment... + + Trailing comments: + Trailing comment... + + + + > message_type[0] > nested_type[0] > field[2] > label: +desc_test_comments.proto:67:17 +desc_test_comments.proto:67:25 + + + > message_type[0] > nested_type[0] > field[2] > type: +desc_test_comments.proto:67:26 +desc_test_comments.proto:67:32 + + + > message_type[0] > nested_type[0] > field[2] > name: +desc_test_comments.proto:67:33 +desc_test_comments.proto:67:36 + + + > message_type[0] > nested_type[0] > field[2] > number: +desc_test_comments.proto:67:39 +desc_test_comments.proto:67:40 + + + > message_type[0] > enum_type[0]: +desc_test_comments.proto:71:9 +desc_test_comments.proto:93:10 + Trailing comments: + trailer for enum + + + + > message_type[0] > enum_type[0] > name: +desc_test_comments.proto:71:14 +desc_test_comments.proto:71:29 + Trailing comments: + "super"! + + + + > message_type[0] > enum_type[0] > options: +desc_test_comments.proto:75:17 +desc_test_comments.proto:75:43 + + + > message_type[0] > enum_type[0] > options > allow_alias: +desc_test_comments.proto:75:17 +desc_test_comments.proto:75:43 + Leading comments: + allow_alias comments! + + + + > message_type[0] > enum_type[0] > value[0]: +desc_test_comments.proto:77:17 +desc_test_comments.proto:77:86 + + + > message_type[0] > enum_type[0] > value[0] > name: +desc_test_comments.proto:77:17 +desc_test_comments.proto:77:22 + + + > message_type[0] > enum_type[0] > value[0] > number: +desc_test_comments.proto:77:25 +desc_test_comments.proto:77:26 + + + > message_type[0] > enum_type[0] > value[0] > options: +desc_test_comments.proto:77:27 +desc_test_comments.proto:77:85 + + + > message_type[0] > enum_type[0] > value[0] > options > (testprotos.evfubars): +desc_test_comments.proto:77:28 +desc_test_comments.proto:77:56 + + + > message_type[0] > enum_type[0] > value[0] > options > (testprotos.evfubar): +desc_test_comments.proto:77:58 +desc_test_comments.proto:77:84 + + + > message_type[0] > enum_type[0] > value[1]: +desc_test_comments.proto:78:17 +desc_test_comments.proto:78:100 + + + > message_type[0] > enum_type[0] > value[1] > name: +desc_test_comments.proto:78:17 +desc_test_comments.proto:78:22 + + + > message_type[0] > enum_type[0] > value[1] > number: +desc_test_comments.proto:78:25 +desc_test_comments.proto:78:26 + + + > message_type[0] > enum_type[0] > value[1] > options: +desc_test_comments.proto:78:27 +desc_test_comments.proto:78:99 + + + > message_type[0] > enum_type[0] > value[1] > options > (testprotos.evfubaruf): +desc_test_comments.proto:78:29 +desc_test_comments.proto:78:57 + + + > message_type[0] > enum_type[0] > value[1] > options > (testprotos.evfubaru): +desc_test_comments.proto:78:73 +desc_test_comments.proto:78:98 + Leading detached comment [0]: + swoosh! + + + > message_type[0] > enum_type[0] > value[2]: +desc_test_comments.proto:79:17 +desc_test_comments.proto:79:27 + + + > message_type[0] > enum_type[0] > value[2] > name: +desc_test_comments.proto:79:17 +desc_test_comments.proto:79:22 + + + > message_type[0] > enum_type[0] > value[2] > number: +desc_test_comments.proto:79:25 +desc_test_comments.proto:79:26 + + + > message_type[0] > enum_type[0] > value[3]: +desc_test_comments.proto:80:17 +desc_test_comments.proto:80:28 + + + > message_type[0] > enum_type[0] > value[3] > name: +desc_test_comments.proto:80:17 +desc_test_comments.proto:80:23 + + + > message_type[0] > enum_type[0] > value[3] > number: +desc_test_comments.proto:80:26 +desc_test_comments.proto:80:27 + + + > message_type[0] > enum_type[0] > options: +desc_test_comments.proto:82:17 +desc_test_comments.proto:82:52 + + + > message_type[0] > enum_type[0] > options > (testprotos.efubars): +desc_test_comments.proto:82:17 +desc_test_comments.proto:82:52 + + + > message_type[0] > enum_type[0] > value[4]: +desc_test_comments.proto:84:17 +desc_test_comments.proto:84:27 + + + > message_type[0] > enum_type[0] > value[4] > name: +desc_test_comments.proto:84:17 +desc_test_comments.proto:84:22 + + + > message_type[0] > enum_type[0] > value[4] > number: +desc_test_comments.proto:84:25 +desc_test_comments.proto:84:26 + + + > message_type[0] > enum_type[0] > value[5]: +desc_test_comments.proto:85:17 +desc_test_comments.proto:85:29 + + + > message_type[0] > enum_type[0] > value[5] > name: +desc_test_comments.proto:85:17 +desc_test_comments.proto:85:24 + + + > message_type[0] > enum_type[0] > value[5] > number: +desc_test_comments.proto:85:27 +desc_test_comments.proto:85:28 + + + > message_type[0] > enum_type[0] > value[6]: +desc_test_comments.proto:86:17 +desc_test_comments.proto:86:60 + + + > message_type[0] > enum_type[0] > value[6] > name: +desc_test_comments.proto:86:17 +desc_test_comments.proto:86:24 + + + > message_type[0] > enum_type[0] > value[6] > number: +desc_test_comments.proto:86:27 +desc_test_comments.proto:86:28 + + + > message_type[0] > enum_type[0] > value[6] > options: +desc_test_comments.proto:86:29 +desc_test_comments.proto:86:59 + + + > message_type[0] > enum_type[0] > value[6] > options > (testprotos.evfubarsf): +desc_test_comments.proto:86:30 +desc_test_comments.proto:86:58 + + + > message_type[0] > enum_type[0] > value[7]: +desc_test_comments.proto:87:17 +desc_test_comments.proto:87:28 + + + > message_type[0] > enum_type[0] > value[7] > name: +desc_test_comments.proto:87:17 +desc_test_comments.proto:87:23 + + + > message_type[0] > enum_type[0] > value[7] > number: +desc_test_comments.proto:87:26 +desc_test_comments.proto:87:27 + + + > message_type[0] > enum_type[0] > value[8]: +desc_test_comments.proto:88:17 +desc_test_comments.proto:88:31 + + + > message_type[0] > enum_type[0] > value[8] > name: +desc_test_comments.proto:88:17 +desc_test_comments.proto:88:26 + + + > message_type[0] > enum_type[0] > value[8] > number: +desc_test_comments.proto:88:29 +desc_test_comments.proto:88:30 + + + > message_type[0] > enum_type[0] > value[9]: +desc_test_comments.proto:89:17 +desc_test_comments.proto:89:27 + + + > message_type[0] > enum_type[0] > value[9] > name: +desc_test_comments.proto:89:17 +desc_test_comments.proto:89:22 + + + > message_type[0] > enum_type[0] > value[9] > number: +desc_test_comments.proto:89:25 +desc_test_comments.proto:89:26 + + + > message_type[0] > enum_type[0] > value[10]: +desc_test_comments.proto:90:17 +desc_test_comments.proto:90:31 + + + > message_type[0] > enum_type[0] > value[10] > name: +desc_test_comments.proto:90:17 +desc_test_comments.proto:90:23 + + + > message_type[0] > enum_type[0] > value[10] > number: +desc_test_comments.proto:90:26 +desc_test_comments.proto:90:30 + + + > message_type[0] > enum_type[0] > options: +desc_test_comments.proto:92:17 +desc_test_comments.proto:92:50 + + + > message_type[0] > enum_type[0] > options > (testprotos.efubar): +desc_test_comments.proto:92:17 +desc_test_comments.proto:92:50 + + + > message_type[0] > oneof_decl[0]: +desc_test_comments.proto:96:9 +desc_test_comments.proto:101:10 + Leading comments: + can be this or that + + Trailing comments: + trailer for oneof abc + + + + > message_type[0] > oneof_decl[0] > name: +desc_test_comments.proto:96:15 +desc_test_comments.proto:96:18 + + + > message_type[0] > field[3]: +desc_test_comments.proto:99:17 +desc_test_comments.proto:99:33 + + + > message_type[0] > field[3] > type: +desc_test_comments.proto:99:17 +desc_test_comments.proto:99:23 + + + > message_type[0] > field[3] > name: +desc_test_comments.proto:99:24 +desc_test_comments.proto:99:28 + + + > message_type[0] > field[3] > number: +desc_test_comments.proto:99:31 +desc_test_comments.proto:99:32 + + + > message_type[0] > field[4]: +desc_test_comments.proto:100:17 +desc_test_comments.proto:100:32 + + + > message_type[0] > field[4] > type: +desc_test_comments.proto:100:17 +desc_test_comments.proto:100:22 + + + > message_type[0] > field[4] > name: +desc_test_comments.proto:100:23 +desc_test_comments.proto:100:27 + + + > message_type[0] > field[4] > number: +desc_test_comments.proto:100:30 +desc_test_comments.proto:100:31 + + + > message_type[0] > oneof_decl[1]: +desc_test_comments.proto:103:9 +desc_test_comments.proto:109:10 + Leading comments: + can be these or those + + + + > message_type[0] > oneof_decl[1] > name: +desc_test_comments.proto:103:15 +desc_test_comments.proto:103:18 + + + > message_type[0] > oneof_decl[1] > options: +desc_test_comments.proto:105:17 +desc_test_comments.proto:105:89 + + + > message_type[0] > oneof_decl[1] > options > (testprotos.oofubar)[0]: +desc_test_comments.proto:105:17 +desc_test_comments.proto:105:89 + Leading comments: + whoops? + + + + > message_type[0] > field[5]: +desc_test_comments.proto:107:17 +desc_test_comments.proto:107:34 + + + > message_type[0] > field[5] > type: +desc_test_comments.proto:107:17 +desc_test_comments.proto:107:23 + + + > message_type[0] > field[5] > name: +desc_test_comments.proto:107:24 +desc_test_comments.proto:107:29 + + + > message_type[0] > field[5] > number: +desc_test_comments.proto:107:32 +desc_test_comments.proto:107:33 + + + > message_type[0] > field[6]: +desc_test_comments.proto:108:17 +desc_test_comments.proto:108:33 + + + > message_type[0] > field[6] > type: +desc_test_comments.proto:108:17 +desc_test_comments.proto:108:22 + + + > message_type[0] > field[6] > name: +desc_test_comments.proto:108:23 +desc_test_comments.proto:108:28 + + + > message_type[0] > field[6] > number: +desc_test_comments.proto:108:31 +desc_test_comments.proto:108:32 + + + > message_type[0] > field[7]: +desc_test_comments.proto:112:9 +desc_test_comments.proto:112:40 + Leading comments: + map field + + + + > message_type[0] > field[7] > type_name: +desc_test_comments.proto:112:9 +desc_test_comments.proto:112:28 + + + > message_type[0] > field[7] > name: +desc_test_comments.proto:112:29 +desc_test_comments.proto:112:35 + + + > message_type[0] > field[7] > number: +desc_test_comments.proto:112:38 +desc_test_comments.proto:112:39 + + + > extension: +desc_test_comments.proto:117:1 +desc_test_comments.proto:128:2 + Leading detached comment [0]: + And next we'll need some extensions... + + Trailing comments: + trailer for extend block + + + + > extension[0]: +desc_test_comments.proto:125:9 +desc_test_comments.proto:125:37 + Leading comments: + comment for guid1 + + + + > extension[0] > extendee: +desc_test_comments.proto:119:1 +desc_test_comments.proto:119:8 + Leading comments: + extendee comment + + + + > extension[0] > label: +desc_test_comments.proto:125:9 +desc_test_comments.proto:125:17 + + + > extension[0] > type: +desc_test_comments.proto:125:18 +desc_test_comments.proto:125:24 + + + > extension[0] > name: +desc_test_comments.proto:125:25 +desc_test_comments.proto:125:30 + + + > extension[0] > number: +desc_test_comments.proto:125:33 +desc_test_comments.proto:125:36 + + + > extension[1]: +desc_test_comments.proto:127:9 +desc_test_comments.proto:127:37 + Leading comments: + ... and a comment for guid2 + + + + > extension[1] > extendee: +desc_test_comments.proto:119:1 +desc_test_comments.proto:119:8 + + + > extension[1] > label: +desc_test_comments.proto:127:9 +desc_test_comments.proto:127:17 + + + > extension[1] > type: +desc_test_comments.proto:127:18 +desc_test_comments.proto:127:24 + + + > extension[1] > name: +desc_test_comments.proto:127:25 +desc_test_comments.proto:127:30 + + + > extension[1] > number: +desc_test_comments.proto:127:33 +desc_test_comments.proto:127:36 + + + > message_type[1]: +desc_test_comments.proto:131:1 +desc_test_comments.proto:131:115 + Trailing comments: + trailer for AnEmptyMessage + + + > message_type[1] > name: +desc_test_comments.proto:131:36 +desc_test_comments.proto:131:50 + Leading detached comment [0]: + name leading comment + + + > service[0]: +desc_test_comments.proto:134:1 +desc_test_comments.proto:156:2 + Leading comments: + Service comment + + Trailing comments: + service trailer + that spans multiple lines + + + + > service[0] > name: +desc_test_comments.proto:134:28 +desc_test_comments.proto:134:38 + Leading detached comment [0]: + service name + + + > service[0] > options: +desc_test_comments.proto:139:9 +desc_test_comments.proto:139:43 + + + > service[0] > options > (testprotos.sfubar) > id: +desc_test_comments.proto:139:9 +desc_test_comments.proto:139:43 + Leading comments: + option that sets field + + + + > service[0] > options: +desc_test_comments.proto:141:9 +desc_test_comments.proto:141:47 + + + > service[0] > options > (testprotos.sfubar) > name: +desc_test_comments.proto:141:9 +desc_test_comments.proto:141:47 + Leading comments: + another option that sets field + + + + > service[0] > options: +desc_test_comments.proto:142:9 +desc_test_comments.proto:142:35 + + + > service[0] > options > deprecated: +desc_test_comments.proto:142:9 +desc_test_comments.proto:142:35 + Trailing comments: + DEPRECATED! + + + + > service[0] > options: +desc_test_comments.proto:144:9 +desc_test_comments.proto:144:45 + + + > service[0] > options > (testprotos.sfubare): +desc_test_comments.proto:144:9 +desc_test_comments.proto:144:45 + + + > service[0] > method[0]: +desc_test_comments.proto:147:9 +desc_test_comments.proto:148:84 + Leading comments: + Method comment + + Trailing comments: + compact method trailer + + + + > service[0] > method[0] > name: +desc_test_comments.proto:147:28 +desc_test_comments.proto:147:40 + Leading detached comment [0]: + rpc name + + + > service[0] > method[0] > client_streaming: +desc_test_comments.proto:147:73 +desc_test_comments.proto:147:79 + Leading detached comment [0]: + comment B + + + > service[0] > method[0] > input_type: +desc_test_comments.proto:147:96 +desc_test_comments.proto:147:103 + Leading detached comment [0]: + comment C + + + > service[0] > method[0] > output_type: +desc_test_comments.proto:148:57 +desc_test_comments.proto:148:64 + Leading detached comment [0]: +comment E + + + > service[0] > method[1]: +desc_test_comments.proto:150:9 +desc_test_comments.proto:155:10 + Trailing comments: + trailer for method + + + + > service[0] > method[1] > name: +desc_test_comments.proto:150:13 +desc_test_comments.proto:150:21 + + + > service[0] > method[1] > input_type: +desc_test_comments.proto:150:23 +desc_test_comments.proto:150:30 + + + > service[0] > method[1] > output_type: +desc_test_comments.proto:150:41 +desc_test_comments.proto:150:62 + + + > service[0] > method[1] > options: +desc_test_comments.proto:152:17 +desc_test_comments.proto:152:42 + + + > service[0] > method[1] > options > deprecated: +desc_test_comments.proto:152:17 +desc_test_comments.proto:152:42 + Leading comments: + this RPC is deprecated! + + + + > service[0] > method[1] > options: +desc_test_comments.proto:153:17 +desc_test_comments.proto:153:53 + + + > service[0] > method[1] > options > (testprotos.mtfubar)[0]: +desc_test_comments.proto:153:17 +desc_test_comments.proto:153:53 + + + > service[0] > method[1] > options: +desc_test_comments.proto:154:17 +desc_test_comments.proto:154:56 + + + > service[0] > method[1] > options > (testprotos.mtfubard): +desc_test_comments.proto:154:17 +desc_test_comments.proto:154:56 +---- desc_test_complex.proto ---- + + +: +desc_test_complex.proto:1:1 +desc_test_complex.proto:298:2 + + + > syntax: +desc_test_complex.proto:1:1 +desc_test_complex.proto:1:19 + + + > package: +desc_test_complex.proto:3:1 +desc_test_complex.proto:3:17 + + + > options: +desc_test_complex.proto:5:1 +desc_test_complex.proto:5:73 + + + > options > go_package: +desc_test_complex.proto:5:1 +desc_test_complex.proto:5:73 + + + > dependency[0]: +desc_test_complex.proto:7:1 +desc_test_complex.proto:7:43 + + + > message_type[0]: +desc_test_complex.proto:9:1 +desc_test_complex.proto:14:2 + + + > message_type[0] > name: +desc_test_complex.proto:9:9 +desc_test_complex.proto:9:15 + + + > message_type[0] > field[0]: +desc_test_complex.proto:10:9 +desc_test_complex.proto:10:34 + + + > message_type[0] > field[0] > label: +desc_test_complex.proto:10:9 +desc_test_complex.proto:10:17 + + + > message_type[0] > field[0] > type: +desc_test_complex.proto:10:18 +desc_test_complex.proto:10:24 + + + > message_type[0] > field[0] > name: +desc_test_complex.proto:10:25 +desc_test_complex.proto:10:29 + + + > message_type[0] > field[0] > number: +desc_test_complex.proto:10:32 +desc_test_complex.proto:10:33 + + + > message_type[0] > field[1]: +desc_test_complex.proto:11:9 +desc_test_complex.proto:11:32 + + + > message_type[0] > field[1] > label: +desc_test_complex.proto:11:9 +desc_test_complex.proto:11:17 + + + > message_type[0] > field[1] > type: +desc_test_complex.proto:11:18 +desc_test_complex.proto:11:24 + + + > message_type[0] > field[1] > name: +desc_test_complex.proto:11:25 +desc_test_complex.proto:11:27 + + + > message_type[0] > field[1] > number: +desc_test_complex.proto:11:30 +desc_test_complex.proto:11:31 + + + > message_type[0] > field[2]: +desc_test_complex.proto:12:9 +desc_test_complex.proto:12:35 + Trailing comments: + default JSON name will be capitalized + + + + > message_type[0] > field[2] > label: +desc_test_complex.proto:12:9 +desc_test_complex.proto:12:17 + + + > message_type[0] > field[2] > type: +desc_test_complex.proto:12:18 +desc_test_complex.proto:12:23 + + + > message_type[0] > field[2] > name: +desc_test_complex.proto:12:24 +desc_test_complex.proto:12:30 + + + > message_type[0] > field[2] > number: +desc_test_complex.proto:12:33 +desc_test_complex.proto:12:34 + + + > message_type[0] > field[3]: +desc_test_complex.proto:13:9 +desc_test_complex.proto:13:29 + Trailing comments: + default JSON name will be empty(!) + + + + > message_type[0] > field[3] > label: +desc_test_complex.proto:13:9 +desc_test_complex.proto:13:17 + + + > message_type[0] > field[3] > type: +desc_test_complex.proto:13:18 +desc_test_complex.proto:13:22 + + + > message_type[0] > field[3] > name: +desc_test_complex.proto:13:23 +desc_test_complex.proto:13:24 + + + > message_type[0] > field[3] > number: +desc_test_complex.proto:13:27 +desc_test_complex.proto:13:28 + + + > extension: +desc_test_complex.proto:16:1 +desc_test_complex.proto:20:2 + + + > extension[0]: +desc_test_complex.proto:19:9 +desc_test_complex.proto:19:39 + + + > extension[0] > extendee: +desc_test_complex.proto:16:8 +desc_test_complex.proto:18:25 + + + > extension[0] > label: +desc_test_complex.proto:19:9 +desc_test_complex.proto:19:17 + + + > extension[0] > type: +desc_test_complex.proto:19:18 +desc_test_complex.proto:19:24 + + + > extension[0] > name: +desc_test_complex.proto:19:25 +desc_test_complex.proto:19:30 + + + > extension[0] > number: +desc_test_complex.proto:19:33 +desc_test_complex.proto:19:38 + + + > message_type[1]: +desc_test_complex.proto:22:1 +desc_test_complex.proto:61:2 + + + > message_type[1] > name: +desc_test_complex.proto:22:9 +desc_test_complex.proto:22:13 + + + > message_type[1] > field[0]: +desc_test_complex.proto:23:9 +desc_test_complex.proto:23:55 + + + > message_type[1] > field[0] > label: +desc_test_complex.proto:23:9 +desc_test_complex.proto:23:17 + + + > message_type[1] > field[0] > type: +desc_test_complex.proto:23:18 +desc_test_complex.proto:23:24 + + + > message_type[1] > field[0] > name: +desc_test_complex.proto:23:25 +desc_test_complex.proto:23:28 + + + > message_type[1] > field[0] > number: +desc_test_complex.proto:23:31 +desc_test_complex.proto:23:32 + + + > message_type[1] > field[0] > options: +desc_test_complex.proto:23:33 +desc_test_complex.proto:23:54 + + + > message_type[1] > field[0] > json_name: +desc_test_complex.proto:23:34 +desc_test_complex.proto:23:53 + + + > message_type[1] > field[1]: +desc_test_complex.proto:24:9 +desc_test_complex.proto:24:34 + + + > message_type[1] > field[1] > label: +desc_test_complex.proto:24:9 +desc_test_complex.proto:24:17 + + + > message_type[1] > field[1] > type: +desc_test_complex.proto:24:18 +desc_test_complex.proto:24:23 + + + > message_type[1] > field[1] > name: +desc_test_complex.proto:24:24 +desc_test_complex.proto:24:29 + + + > message_type[1] > field[1] > number: +desc_test_complex.proto:24:32 +desc_test_complex.proto:24:33 + + + > message_type[1] > field[2]: +desc_test_complex.proto:25:9 +desc_test_complex.proto:25:31 + + + > message_type[1] > field[2] > label: +desc_test_complex.proto:25:9 +desc_test_complex.proto:25:17 + + + > message_type[1] > field[2] > type_name: +desc_test_complex.proto:25:18 +desc_test_complex.proto:25:24 + + + > message_type[1] > field[2] > name: +desc_test_complex.proto:25:25 +desc_test_complex.proto:25:26 + + + > message_type[1] > field[2] > number: +desc_test_complex.proto:25:29 +desc_test_complex.proto:25:30 + + + > message_type[1] > field[3]: +desc_test_complex.proto:26:9 +desc_test_complex.proto:26:31 + + + > message_type[1] > field[3] > label: +desc_test_complex.proto:26:9 +desc_test_complex.proto:26:17 + + + > message_type[1] > field[3] > type_name: +desc_test_complex.proto:26:18 +desc_test_complex.proto:26:24 + + + > message_type[1] > field[3] > name: +desc_test_complex.proto:26:25 +desc_test_complex.proto:26:26 + + + > message_type[1] > field[3] > number: +desc_test_complex.proto:26:29 +desc_test_complex.proto:26:30 + + + > message_type[1] > field[4]: +desc_test_complex.proto:27:9 +desc_test_complex.proto:27:34 + + + > message_type[1] > field[4] > type_name: +desc_test_complex.proto:27:9 +desc_test_complex.proto:27:27 + + + > message_type[1] > field[4] > name: +desc_test_complex.proto:27:28 +desc_test_complex.proto:27:29 + + + > message_type[1] > field[4] > number: +desc_test_complex.proto:27:32 +desc_test_complex.proto:27:33 + + + > message_type[1] > field[5]: +desc_test_complex.proto:29:9 +desc_test_complex.proto:29:67 + + + > message_type[1] > field[5] > label: +desc_test_complex.proto:29:9 +desc_test_complex.proto:29:17 + + + > message_type[1] > field[5] > type: +desc_test_complex.proto:29:18 +desc_test_complex.proto:29:23 + + + > message_type[1] > field[5] > name: +desc_test_complex.proto:29:24 +desc_test_complex.proto:29:25 + + + > message_type[1] > field[5] > number: +desc_test_complex.proto:29:28 +desc_test_complex.proto:29:29 + + + > message_type[1] > field[5] > options: +desc_test_complex.proto:29:30 +desc_test_complex.proto:29:66 + + + > message_type[1] > field[5] > default_value: +desc_test_complex.proto:29:31 +desc_test_complex.proto:29:65 + + + > message_type[1] > extension_range: +desc_test_complex.proto:31:9 +desc_test_complex.proto:31:31 + + + > message_type[1] > extension_range[0]: +desc_test_complex.proto:31:20 +desc_test_complex.proto:31:30 + + + > message_type[1] > extension_range[0] > start: +desc_test_complex.proto:31:20 +desc_test_complex.proto:31:23 + + + > message_type[1] > extension_range[0] > end: +desc_test_complex.proto:31:27 +desc_test_complex.proto:31:30 + + + > message_type[1] > extension_range: +desc_test_complex.proto:33:9 +desc_test_complex.proto:33:81 + + + > message_type[1] > extension_range[1]: +desc_test_complex.proto:33:20 +desc_test_complex.proto:33:23 + + + > message_type[1] > extension_range[1] > start: +desc_test_complex.proto:33:20 +desc_test_complex.proto:33:23 + + + > message_type[1] > extension_range[1] > end: +desc_test_complex.proto:33:20 +desc_test_complex.proto:33:23 + + + > message_type[1] > extension_range[2]: +desc_test_complex.proto:33:25 +desc_test_complex.proto:33:35 + + + > message_type[1] > extension_range[2] > start: +desc_test_complex.proto:33:25 +desc_test_complex.proto:33:28 + + + > message_type[1] > extension_range[2] > end: +desc_test_complex.proto:33:32 +desc_test_complex.proto:33:35 + + + > message_type[1] > extension_range[3]: +desc_test_complex.proto:33:37 +desc_test_complex.proto:33:47 + + + > message_type[1] > extension_range[3] > start: +desc_test_complex.proto:33:37 +desc_test_complex.proto:33:40 + + + > message_type[1] > extension_range[3] > end: +desc_test_complex.proto:33:44 +desc_test_complex.proto:33:47 + + + > message_type[1] > extension_range[4]: +desc_test_complex.proto:33:49 +desc_test_complex.proto:33:61 + + + > message_type[1] > extension_range[4] > start: +desc_test_complex.proto:33:49 +desc_test_complex.proto:33:54 + + + > message_type[1] > extension_range[4] > end: +desc_test_complex.proto:33:58 +desc_test_complex.proto:33:61 + + + > message_type[1] > extension_range[1] > options: +desc_test_complex.proto:33:62 +desc_test_complex.proto:33:80 + + + > message_type[1] > extension_range[1] > options > (foo.bar.label): +desc_test_complex.proto:33:63 +desc_test_complex.proto:33:79 + + + > message_type[1] > extension_range[2] > options: +desc_test_complex.proto:33:62 +desc_test_complex.proto:33:80 + + + > message_type[1] > extension_range[2] > options > (foo.bar.label): +desc_test_complex.proto:33:63 +desc_test_complex.proto:33:79 + + + > message_type[1] > extension_range[3] > options: +desc_test_complex.proto:33:62 +desc_test_complex.proto:33:80 + + + > message_type[1] > extension_range[3] > options > (foo.bar.label): +desc_test_complex.proto:33:63 +desc_test_complex.proto:33:79 + + + > message_type[1] > extension_range[4] > options: +desc_test_complex.proto:33:62 +desc_test_complex.proto:33:80 + + + > message_type[1] > extension_range[4] > options > (foo.bar.label): +desc_test_complex.proto:33:63 +desc_test_complex.proto:33:79 + + + > message_type[1] > nested_type[1]: +desc_test_complex.proto:35:9 +desc_test_complex.proto:60:10 + + + > message_type[1] > nested_type[1] > name: +desc_test_complex.proto:35:17 +desc_test_complex.proto:35:23 + + + > message_type[1] > nested_type[1] > extension: +desc_test_complex.proto:36:17 +desc_test_complex.proto:38:18 + + + > message_type[1] > nested_type[1] > extension[0]: +desc_test_complex.proto:37:25 +desc_test_complex.proto:37:56 + + + > message_type[1] > nested_type[1] > extension[0] > extendee: +desc_test_complex.proto:36:24 +desc_test_complex.proto:36:54 + + + > message_type[1] > nested_type[1] > extension[0] > label: +desc_test_complex.proto:37:25 +desc_test_complex.proto:37:33 + + + > message_type[1] > nested_type[1] > extension[0] > type: +desc_test_complex.proto:37:34 +desc_test_complex.proto:37:39 + + + > message_type[1] > nested_type[1] > extension[0] > name: +desc_test_complex.proto:37:40 +desc_test_complex.proto:37:47 + + + > message_type[1] > nested_type[1] > extension[0] > number: +desc_test_complex.proto:37:50 +desc_test_complex.proto:37:55 + + + > message_type[1] > nested_type[1] > nested_type[0]: +desc_test_complex.proto:39:17 +desc_test_complex.proto:59:18 + + + > message_type[1] > nested_type[1] > nested_type[0] > name: +desc_test_complex.proto:39:25 +desc_test_complex.proto:39:38 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0]: +desc_test_complex.proto:40:25 +desc_test_complex.proto:48:26 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > name: +desc_test_complex.proto:40:30 +desc_test_complex.proto:40:33 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[0]: +desc_test_complex.proto:41:33 +desc_test_complex.proto:41:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[0] > name: +desc_test_complex.proto:41:33 +desc_test_complex.proto:41:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[0] > number: +desc_test_complex.proto:41:38 +desc_test_complex.proto:41:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[1]: +desc_test_complex.proto:42:33 +desc_test_complex.proto:42:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[1] > name: +desc_test_complex.proto:42:33 +desc_test_complex.proto:42:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[1] > number: +desc_test_complex.proto:42:38 +desc_test_complex.proto:42:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[2]: +desc_test_complex.proto:43:33 +desc_test_complex.proto:43:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[2] > name: +desc_test_complex.proto:43:33 +desc_test_complex.proto:43:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[2] > number: +desc_test_complex.proto:43:38 +desc_test_complex.proto:43:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[3]: +desc_test_complex.proto:44:33 +desc_test_complex.proto:44:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[3] > name: +desc_test_complex.proto:44:33 +desc_test_complex.proto:44:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[3] > number: +desc_test_complex.proto:44:38 +desc_test_complex.proto:44:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[4]: +desc_test_complex.proto:45:33 +desc_test_complex.proto:45:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[4] > name: +desc_test_complex.proto:45:33 +desc_test_complex.proto:45:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[4] > number: +desc_test_complex.proto:45:38 +desc_test_complex.proto:45:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[5]: +desc_test_complex.proto:46:33 +desc_test_complex.proto:46:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[5] > name: +desc_test_complex.proto:46:33 +desc_test_complex.proto:46:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[5] > number: +desc_test_complex.proto:46:38 +desc_test_complex.proto:46:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[6]: +desc_test_complex.proto:47:33 +desc_test_complex.proto:47:40 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[6] > name: +desc_test_complex.proto:47:33 +desc_test_complex.proto:47:35 + + + > message_type[1] > nested_type[1] > nested_type[0] > enum_type[0] > value[6] > number: +desc_test_complex.proto:47:38 +desc_test_complex.proto:47:39 + + + > message_type[1] > nested_type[1] > nested_type[0] > options: +desc_test_complex.proto:49:25 +desc_test_complex.proto:49:50 + + + > message_type[1] > nested_type[1] > nested_type[0] > options > (foo.bar.Test.Nested.fooblez): +desc_test_complex.proto:49:25 +desc_test_complex.proto:49:50 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension: +desc_test_complex.proto:50:25 +desc_test_complex.proto:52:26 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension[0]: +desc_test_complex.proto:51:33 +desc_test_complex.proto:51:64 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension[0] > extendee: +desc_test_complex.proto:50:32 +desc_test_complex.proto:50:36 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension[0] > label: +desc_test_complex.proto:51:33 +desc_test_complex.proto:51:41 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension[0] > type: +desc_test_complex.proto:51:42 +desc_test_complex.proto:51:48 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension[0] > name: +desc_test_complex.proto:51:49 +desc_test_complex.proto:51:57 + + + > message_type[1] > nested_type[1] > nested_type[0] > extension[0] > number: +desc_test_complex.proto:51:60 +desc_test_complex.proto:51:63 + + + > message_type[1] > nested_type[1] > nested_type[0] > options: +desc_test_complex.proto:53:25 +desc_test_complex.proto:53:108 + + + > message_type[1] > nested_type[1] > nested_type[0] > options > (foo.bar.rept)[0]: +desc_test_complex.proto:53:25 +desc_test_complex.proto:53:108 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0]: +desc_test_complex.proto:54:25 +desc_test_complex.proto:58:26 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > name: +desc_test_complex.proto:54:33 +desc_test_complex.proto:54:51 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > options: +desc_test_complex.proto:55:33 +desc_test_complex.proto:55:109 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > options > (foo.bar.rept)[0]: +desc_test_complex.proto:55:33 +desc_test_complex.proto:55:109 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > field[0]: +desc_test_complex.proto:57:33 +desc_test_complex.proto:57:56 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > field[0] > label: +desc_test_complex.proto:57:33 +desc_test_complex.proto:57:41 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > field[0] > type_name: +desc_test_complex.proto:57:42 +desc_test_complex.proto:57:46 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > field[0] > name: +desc_test_complex.proto:57:47 +desc_test_complex.proto:57:51 + + + > message_type[1] > nested_type[1] > nested_type[0] > nested_type[0] > field[0] > number: +desc_test_complex.proto:57:54 +desc_test_complex.proto:57:55 + + + > enum_type[0]: +desc_test_complex.proto:63:1 +desc_test_complex.proto:72:2 + + + > enum_type[0] > name: +desc_test_complex.proto:63:6 +desc_test_complex.proto:63:26 + + + > enum_type[0] > value[0]: +desc_test_complex.proto:64:9 +desc_test_complex.proto:64:15 + + + > enum_type[0] > value[0] > name: +desc_test_complex.proto:64:9 +desc_test_complex.proto:64:10 + + + > enum_type[0] > value[0] > number: +desc_test_complex.proto:64:13 +desc_test_complex.proto:64:14 + + + > enum_type[0] > value[1]: +desc_test_complex.proto:65:9 +desc_test_complex.proto:65:15 + + + > enum_type[0] > value[1] > name: +desc_test_complex.proto:65:9 +desc_test_complex.proto:65:10 + + + > enum_type[0] > value[1] > number: +desc_test_complex.proto:65:13 +desc_test_complex.proto:65:14 + + + > enum_type[0] > value[2]: +desc_test_complex.proto:66:9 +desc_test_complex.proto:66:15 + + + > enum_type[0] > value[2] > name: +desc_test_complex.proto:66:9 +desc_test_complex.proto:66:10 + + + > enum_type[0] > value[2] > number: +desc_test_complex.proto:66:13 +desc_test_complex.proto:66:14 + + + > enum_type[0] > reserved_range: +desc_test_complex.proto:67:9 +desc_test_complex.proto:67:30 + + + > enum_type[0] > reserved_range[0]: +desc_test_complex.proto:67:18 +desc_test_complex.proto:67:29 + + + > enum_type[0] > reserved_range[0] > start: +desc_test_complex.proto:67:18 +desc_test_complex.proto:67:22 + + + > enum_type[0] > reserved_range[0] > end: +desc_test_complex.proto:67:26 +desc_test_complex.proto:67:29 + + + > enum_type[0] > reserved_range: +desc_test_complex.proto:68:9 +desc_test_complex.proto:68:26 + + + > enum_type[0] > reserved_range[1]: +desc_test_complex.proto:68:18 +desc_test_complex.proto:68:25 + + + > enum_type[0] > reserved_range[1] > start: +desc_test_complex.proto:68:18 +desc_test_complex.proto:68:20 + + + > enum_type[0] > reserved_range[1] > end: +desc_test_complex.proto:68:24 +desc_test_complex.proto:68:25 + + + > enum_type[0] > reserved_range: +desc_test_complex.proto:69:9 +desc_test_complex.proto:69:40 + + + > enum_type[0] > reserved_range[2]: +desc_test_complex.proto:69:18 +desc_test_complex.proto:69:25 + + + > enum_type[0] > reserved_range[2] > start: +desc_test_complex.proto:69:18 +desc_test_complex.proto:69:19 + + + > enum_type[0] > reserved_range[2] > end: +desc_test_complex.proto:69:23 +desc_test_complex.proto:69:25 + + + > enum_type[0] > reserved_range[3]: +desc_test_complex.proto:69:27 +desc_test_complex.proto:69:35 + + + > enum_type[0] > reserved_range[3] > start: +desc_test_complex.proto:69:27 +desc_test_complex.proto:69:29 + + + > enum_type[0] > reserved_range[3] > end: +desc_test_complex.proto:69:33 +desc_test_complex.proto:69:35 + + + > enum_type[0] > reserved_range[4]: +desc_test_complex.proto:69:37 +desc_test_complex.proto:69:39 + + + > enum_type[0] > reserved_range[4] > start: +desc_test_complex.proto:69:37 +desc_test_complex.proto:69:39 + + + > enum_type[0] > reserved_range[4] > end: +desc_test_complex.proto:69:37 +desc_test_complex.proto:69:39 + + + > enum_type[0] > reserved_range: +desc_test_complex.proto:70:9 +desc_test_complex.proto:70:27 + + + > enum_type[0] > reserved_range[5]: +desc_test_complex.proto:70:18 +desc_test_complex.proto:70:26 + + + > enum_type[0] > reserved_range[5] > start: +desc_test_complex.proto:70:18 +desc_test_complex.proto:70:20 + + + > enum_type[0] > reserved_range[5] > end: +desc_test_complex.proto:70:24 +desc_test_complex.proto:70:26 + + + > enum_type[0] > reserved_name: +desc_test_complex.proto:71:9 +desc_test_complex.proto:71:32 + + + > enum_type[0] > reserved_name[0]: +desc_test_complex.proto:71:18 +desc_test_complex.proto:71:21 + + + > enum_type[0] > reserved_name[1]: +desc_test_complex.proto:71:23 +desc_test_complex.proto:71:26 + + + > enum_type[0] > reserved_name[2]: +desc_test_complex.proto:71:28 +desc_test_complex.proto:71:31 + + + > message_type[2]: +desc_test_complex.proto:74:1 +desc_test_complex.proto:78:2 + + + > message_type[2] > name: +desc_test_complex.proto:74:9 +desc_test_complex.proto:74:32 + + + > message_type[2] > reserved_range: +desc_test_complex.proto:75:9 +desc_test_complex.proto:75:40 + + + > message_type[2] > reserved_range[0]: +desc_test_complex.proto:75:18 +desc_test_complex.proto:75:25 + + + > message_type[2] > reserved_range[0] > start: +desc_test_complex.proto:75:18 +desc_test_complex.proto:75:19 + + + > message_type[2] > reserved_range[0] > end: +desc_test_complex.proto:75:23 +desc_test_complex.proto:75:25 + + + > message_type[2] > reserved_range[1]: +desc_test_complex.proto:75:27 +desc_test_complex.proto:75:35 + + + > message_type[2] > reserved_range[1] > start: +desc_test_complex.proto:75:27 +desc_test_complex.proto:75:29 + + + > message_type[2] > reserved_range[1] > end: +desc_test_complex.proto:75:33 +desc_test_complex.proto:75:35 + + + > message_type[2] > reserved_range[2]: +desc_test_complex.proto:75:37 +desc_test_complex.proto:75:39 + + + > message_type[2] > reserved_range[2] > start: +desc_test_complex.proto:75:37 +desc_test_complex.proto:75:39 + + + > message_type[2] > reserved_range[2] > end: +desc_test_complex.proto:75:37 +desc_test_complex.proto:75:39 + + + > message_type[2] > reserved_range: +desc_test_complex.proto:76:9 +desc_test_complex.proto:76:30 + + + > message_type[2] > reserved_range[3]: +desc_test_complex.proto:76:18 +desc_test_complex.proto:76:29 + + + > message_type[2] > reserved_range[3] > start: +desc_test_complex.proto:76:18 +desc_test_complex.proto:76:22 + + + > message_type[2] > reserved_range[3] > end: +desc_test_complex.proto:76:26 +desc_test_complex.proto:76:29 + + + > message_type[2] > reserved_name: +desc_test_complex.proto:77:9 +desc_test_complex.proto:77:32 + + + > message_type[2] > reserved_name[0]: +desc_test_complex.proto:77:18 +desc_test_complex.proto:77:21 + + + > message_type[2] > reserved_name[1]: +desc_test_complex.proto:77:23 +desc_test_complex.proto:77:26 + + + > message_type[2] > reserved_name[2]: +desc_test_complex.proto:77:28 +desc_test_complex.proto:77:31 + + + > message_type[3]: +desc_test_complex.proto:80:1 +desc_test_complex.proto:82:2 + + + > message_type[3] > name: +desc_test_complex.proto:80:9 +desc_test_complex.proto:80:23 + + + > message_type[3] > field[0]: +desc_test_complex.proto:81:9 +desc_test_complex.proto:81:38 + + + > message_type[3] > field[0] > type_name: +desc_test_complex.proto:81:9 +desc_test_complex.proto:81:28 + + + > message_type[3] > field[0] > name: +desc_test_complex.proto:81:29 +desc_test_complex.proto:81:33 + + + > message_type[3] > field[0] > number: +desc_test_complex.proto:81:36 +desc_test_complex.proto:81:37 + + + > extension: +desc_test_complex.proto:84:1 +desc_test_complex.proto:89:2 + + + > extension[1]: +desc_test_complex.proto:85:9 +desc_test_complex.proto:85:36 + + + > extension[1] > extendee: +desc_test_complex.proto:84:8 +desc_test_complex.proto:84:38 + + + > extension[1] > label: +desc_test_complex.proto:85:9 +desc_test_complex.proto:85:17 + + + > extension[1] > type_name: +desc_test_complex.proto:85:18 +desc_test_complex.proto:85:22 + + + > extension[1] > name: +desc_test_complex.proto:85:23 +desc_test_complex.proto:85:27 + + + > extension[1] > number: +desc_test_complex.proto:85:30 +desc_test_complex.proto:85:35 + + + > extension[2]: +desc_test_complex.proto:86:9 +desc_test_complex.proto:86:60 + + + > extension[2] > extendee: +desc_test_complex.proto:84:8 +desc_test_complex.proto:84:38 + + + > extension[2] > label: +desc_test_complex.proto:86:9 +desc_test_complex.proto:86:17 + + + > extension[2] > type_name: +desc_test_complex.proto:86:18 +desc_test_complex.proto:86:47 + + + > extension[2] > name: +desc_test_complex.proto:86:48 +desc_test_complex.proto:86:51 + + + > extension[2] > number: +desc_test_complex.proto:86:54 +desc_test_complex.proto:86:59 + + + > extension[3]: +desc_test_complex.proto:87:9 +desc_test_complex.proto:87:36 + + + > extension[3] > extendee: +desc_test_complex.proto:84:8 +desc_test_complex.proto:84:38 + + + > extension[3] > label: +desc_test_complex.proto:87:9 +desc_test_complex.proto:87:17 + + + > extension[3] > type_name: +desc_test_complex.proto:87:18 +desc_test_complex.proto:87:25 + + + > extension[3] > name: +desc_test_complex.proto:87:26 +desc_test_complex.proto:87:27 + + + > extension[3] > number: +desc_test_complex.proto:87:30 +desc_test_complex.proto:87:35 + + + > extension[4]: +desc_test_complex.proto:88:9 +desc_test_complex.proto:88:50 + + + > extension[4] > extendee: +desc_test_complex.proto:84:8 +desc_test_complex.proto:84:38 + + + > extension[4] > label: +desc_test_complex.proto:88:9 +desc_test_complex.proto:88:17 + + + > extension[4] > type_name: +desc_test_complex.proto:88:18 +desc_test_complex.proto:88:32 + + + > extension[4] > name: +desc_test_complex.proto:88:33 +desc_test_complex.proto:88:41 + + + > extension[4] > number: +desc_test_complex.proto:88:44 +desc_test_complex.proto:88:49 + + + > message_type[4]: +desc_test_complex.proto:91:1 +desc_test_complex.proto:111:2 + + + > message_type[4] > name: +desc_test_complex.proto:91:9 +desc_test_complex.proto:91:16 + + + > message_type[4] > options: +desc_test_complex.proto:92:5 +desc_test_complex.proto:92:130 + + + > message_type[4] > options > (foo.bar.rept)[0]: +desc_test_complex.proto:92:5 +desc_test_complex.proto:92:130 + + + > message_type[4] > options: +desc_test_complex.proto:93:5 +desc_test_complex.proto:93:115 + + + > message_type[4] > options > (foo.bar.rept)[1]: +desc_test_complex.proto:93:5 +desc_test_complex.proto:93:115 + + + > message_type[4] > options: +desc_test_complex.proto:94:5 +desc_test_complex.proto:94:36 + + + > message_type[4] > options > (foo.bar.rept)[2]: +desc_test_complex.proto:94:5 +desc_test_complex.proto:94:36 + + + > message_type[4] > options: +desc_test_complex.proto:95:5 +desc_test_complex.proto:95:23 + + + > message_type[4] > options > (foo.bar.eee): +desc_test_complex.proto:95:5 +desc_test_complex.proto:95:23 + + + > message_type[4] > options: +desc_test_complex.proto:96:9 +desc_test_complex.proto:96:34 + + + > message_type[4] > options > (foo.bar.a): +desc_test_complex.proto:96:9 +desc_test_complex.proto:96:34 + + + > message_type[4] > options: +desc_test_complex.proto:97:9 +desc_test_complex.proto:97:86 + + + > message_type[4] > options > (foo.bar.a) > test: +desc_test_complex.proto:97:9 +desc_test_complex.proto:97:86 + + + > message_type[4] > options: +desc_test_complex.proto:98:9 +desc_test_complex.proto:98:37 + + + > message_type[4] > options > (foo.bar.a) > test > foo: +desc_test_complex.proto:98:9 +desc_test_complex.proto:98:37 + + + > message_type[4] > options: +desc_test_complex.proto:99:9 +desc_test_complex.proto:99:41 + + + > message_type[4] > options > (foo.bar.a) > test > s > name: +desc_test_complex.proto:99:9 +desc_test_complex.proto:99:41 + + + > message_type[4] > options: +desc_test_complex.proto:100:5 +desc_test_complex.proto:100:34 + + + > message_type[4] > options > (foo.bar.a) > test > s > id: +desc_test_complex.proto:100:5 +desc_test_complex.proto:100:34 + + + > message_type[4] > options: +desc_test_complex.proto:101:5 +desc_test_complex.proto:101:31 + + + > message_type[4] > options > (foo.bar.a) > test > array[0]: +desc_test_complex.proto:101:5 +desc_test_complex.proto:101:31 + + + > message_type[4] > options: +desc_test_complex.proto:102:5 +desc_test_complex.proto:102:31 + + + > message_type[4] > options > (foo.bar.a) > test > array[1]: +desc_test_complex.proto:102:5 +desc_test_complex.proto:102:31 + + + > message_type[4] > options: +desc_test_complex.proto:103:5 +desc_test_complex.proto:103:78 + + + > message_type[4] > options > (foo.bar.a) > test > (foo.bar.Test.Nested._NestedNested._garblez): +desc_test_complex.proto:103:5 +desc_test_complex.proto:103:78 + + + > message_type[4] > options: +desc_test_complex.proto:105:9 +desc_test_complex.proto:105:37 + + + > message_type[4] > options > (foo.bar.map_vals) > vals[0]: +desc_test_complex.proto:105:9 +desc_test_complex.proto:105:37 + Trailing comments: + no key, no value + + + + > message_type[4] > options: +desc_test_complex.proto:106:9 +desc_test_complex.proto:106:47 + + + > message_type[4] > options > (foo.bar.map_vals) > vals[1]: +desc_test_complex.proto:106:9 +desc_test_complex.proto:106:47 + Trailing comments: + no value + + + + > message_type[4] > options: +desc_test_complex.proto:107:9 +desc_test_complex.proto:107:69 + + + > message_type[4] > options > (foo.bar.map_vals) > vals[2]: +desc_test_complex.proto:107:9 +desc_test_complex.proto:107:69 + + + > message_type[4] > field[0]: +desc_test_complex.proto:109:5 +desc_test_complex.proto:109:28 + + + > message_type[4] > field[0] > label: +desc_test_complex.proto:109:5 +desc_test_complex.proto:109:13 + + + > message_type[4] > field[0] > type_name: +desc_test_complex.proto:109:14 +desc_test_complex.proto:109:18 + + + > message_type[4] > field[0] > name: +desc_test_complex.proto:109:19 +desc_test_complex.proto:109:23 + + + > message_type[4] > field[0] > number: +desc_test_complex.proto:109:26 +desc_test_complex.proto:109:27 + + + > message_type[4] > field[1]: +desc_test_complex.proto:110:5 +desc_test_complex.proto:110:67 + + + > message_type[4] > field[1] > label: +desc_test_complex.proto:110:5 +desc_test_complex.proto:110:13 + + + > message_type[4] > field[1] > type_name: +desc_test_complex.proto:110:14 +desc_test_complex.proto:110:43 + + + > message_type[4] > field[1] > name: +desc_test_complex.proto:110:44 +desc_test_complex.proto:110:47 + + + > message_type[4] > field[1] > number: +desc_test_complex.proto:110:50 +desc_test_complex.proto:110:51 + + + > message_type[4] > field[1] > options: +desc_test_complex.proto:110:52 +desc_test_complex.proto:110:66 + + + > message_type[4] > field[1] > default_value: +desc_test_complex.proto:110:53 +desc_test_complex.proto:110:65 + + + > message_type[5]: +desc_test_complex.proto:113:1 +desc_test_complex.proto:127:2 + + + > message_type[5] > name: +desc_test_complex.proto:113:9 +desc_test_complex.proto:113:18 + + + > message_type[5] > field[0]: +desc_test_complex.proto:114:9 +desc_test_complex.proto:114:41 + + + > message_type[5] > field[0] > label: +desc_test_complex.proto:114:9 +desc_test_complex.proto:114:17 + + + > message_type[5] > field[0] > type: +desc_test_complex.proto:114:18 +desc_test_complex.proto:114:22 + + + > message_type[5] > field[0] > name: +desc_test_complex.proto:114:23 +desc_test_complex.proto:114:36 + + + > message_type[5] > field[0] > number: +desc_test_complex.proto:114:39 +desc_test_complex.proto:114:40 + + + > message_type[5] > enum_type[0]: +desc_test_complex.proto:116:9 +desc_test_complex.proto:120:10 + + + > message_type[5] > enum_type[0] > name: +desc_test_complex.proto:116:14 +desc_test_complex.proto:116:20 + + + > message_type[5] > enum_type[0] > value[0]: +desc_test_complex.proto:117:17 +desc_test_complex.proto:117:27 + + + > message_type[5] > enum_type[0] > value[0] > name: +desc_test_complex.proto:117:17 +desc_test_complex.proto:117:22 + + + > message_type[5] > enum_type[0] > value[0] > number: +desc_test_complex.proto:117:25 +desc_test_complex.proto:117:26 + + + > message_type[5] > enum_type[0] > value[1]: +desc_test_complex.proto:118:17 +desc_test_complex.proto:118:26 + + + > message_type[5] > enum_type[0] > value[1] > name: +desc_test_complex.proto:118:17 +desc_test_complex.proto:118:21 + + + > message_type[5] > enum_type[0] > value[1] > number: +desc_test_complex.proto:118:24 +desc_test_complex.proto:118:25 + + + > message_type[5] > enum_type[0] > value[2]: +desc_test_complex.proto:119:17 +desc_test_complex.proto:119:27 + + + > message_type[5] > enum_type[0] > value[2] > name: +desc_test_complex.proto:119:17 +desc_test_complex.proto:119:22 + + + > message_type[5] > enum_type[0] > value[2] > number: +desc_test_complex.proto:119:25 +desc_test_complex.proto:119:26 + + + > message_type[5] > nested_type[0]: +desc_test_complex.proto:121:9 +desc_test_complex.proto:124:10 + + + > message_type[5] > nested_type[0] > name: +desc_test_complex.proto:121:17 +desc_test_complex.proto:121:27 + + + > message_type[5] > nested_type[0] > field[0]: +desc_test_complex.proto:122:17 +desc_test_complex.proto:122:44 + + + > message_type[5] > nested_type[0] > field[0] > label: +desc_test_complex.proto:122:17 +desc_test_complex.proto:122:25 + + + > message_type[5] > nested_type[0] > field[0] > type_name: +desc_test_complex.proto:122:26 +desc_test_complex.proto:122:32 + + + > message_type[5] > nested_type[0] > field[0] > name: +desc_test_complex.proto:122:33 +desc_test_complex.proto:122:39 + + + > message_type[5] > nested_type[0] > field[0] > number: +desc_test_complex.proto:122:42 +desc_test_complex.proto:122:43 + + + > message_type[5] > nested_type[0] > field[1]: +desc_test_complex.proto:123:17 +desc_test_complex.proto:123:44 + + + > message_type[5] > nested_type[0] > field[1] > label: +desc_test_complex.proto:123:17 +desc_test_complex.proto:123:25 + + + > message_type[5] > nested_type[0] > field[1] > type: +desc_test_complex.proto:123:26 +desc_test_complex.proto:123:32 + + + > message_type[5] > nested_type[0] > field[1] > name: +desc_test_complex.proto:123:33 +desc_test_complex.proto:123:39 + + + > message_type[5] > nested_type[0] > field[1] > number: +desc_test_complex.proto:123:42 +desc_test_complex.proto:123:43 + + + > message_type[5] > field[1]: +desc_test_complex.proto:126:9 +desc_test_complex.proto:126:44 + + + > message_type[5] > field[1] > label: +desc_test_complex.proto:126:9 +desc_test_complex.proto:126:17 + + + > message_type[5] > field[1] > type_name: +desc_test_complex.proto:126:18 +desc_test_complex.proto:126:28 + + + > message_type[5] > field[1] > name: +desc_test_complex.proto:126:29 +desc_test_complex.proto:126:39 + + + > message_type[5] > field[1] > number: +desc_test_complex.proto:126:42 +desc_test_complex.proto:126:43 + + + > extension: +desc_test_complex.proto:129:1 +desc_test_complex.proto:131:2 + + + > extension[5]: +desc_test_complex.proto:130:9 +desc_test_complex.proto:130:46 + + + > extension[5] > extendee: +desc_test_complex.proto:129:8 +desc_test_complex.proto:129:37 + + + > extension[5] > label: +desc_test_complex.proto:130:9 +desc_test_complex.proto:130:17 + + + > extension[5] > type_name: +desc_test_complex.proto:130:18 +desc_test_complex.proto:130:27 + + + > extension[5] > name: +desc_test_complex.proto:130:28 +desc_test_complex.proto:130:37 + + + > extension[5] > number: +desc_test_complex.proto:130:40 +desc_test_complex.proto:130:45 + + + > service[0]: +desc_test_complex.proto:133:1 +desc_test_complex.proto:152:2 + + + > service[0] > name: +desc_test_complex.proto:133:9 +desc_test_complex.proto:133:24 + + + > service[0] > method[0]: +desc_test_complex.proto:134:9 +desc_test_complex.proto:142:10 + + + > service[0] > method[0] > name: +desc_test_complex.proto:134:13 +desc_test_complex.proto:134:21 + + + > service[0] > method[0] > input_type: +desc_test_complex.proto:134:22 +desc_test_complex.proto:134:26 + + + > service[0] > method[0] > output_type: +desc_test_complex.proto:134:37 +desc_test_complex.proto:134:41 + + + > service[0] > method[0] > options: +desc_test_complex.proto:135:17 +desc_test_complex.proto:141:19 + + + > service[0] > method[0] > options > (foo.bar.validator): +desc_test_complex.proto:135:17 +desc_test_complex.proto:141:19 + + + > service[0] > method[1]: +desc_test_complex.proto:143:9 +desc_test_complex.proto:151:10 + + + > service[0] > method[1] > name: +desc_test_complex.proto:143:13 +desc_test_complex.proto:143:16 + + + > service[0] > method[1] > input_type: +desc_test_complex.proto:143:17 +desc_test_complex.proto:143:21 + + + > service[0] > method[1] > output_type: +desc_test_complex.proto:143:32 +desc_test_complex.proto:143:36 + + + > service[0] > method[1] > options: +desc_test_complex.proto:144:17 +desc_test_complex.proto:150:19 + + + > service[0] > method[1] > options > (foo.bar.validator): +desc_test_complex.proto:144:17 +desc_test_complex.proto:150:19 + + + > message_type[6]: +desc_test_complex.proto:154:1 +desc_test_complex.proto:180:2 + + + > message_type[6] > name: +desc_test_complex.proto:154:9 +desc_test_complex.proto:154:13 + + + > message_type[6] > nested_type[0]: +desc_test_complex.proto:155:3 +desc_test_complex.proto:160:4 + + + > message_type[6] > nested_type[0] > name: +desc_test_complex.proto:155:11 +desc_test_complex.proto:155:21 + + + > message_type[6] > nested_type[0] > field[0]: +desc_test_complex.proto:156:5 +desc_test_complex.proto:156:33 + + + > message_type[6] > nested_type[0] > field[0] > label: +desc_test_complex.proto:156:5 +desc_test_complex.proto:156:13 + + + > message_type[6] > nested_type[0] > field[0] > type: +desc_test_complex.proto:156:14 +desc_test_complex.proto:156:20 + + + > message_type[6] > nested_type[0] > field[0] > name: +desc_test_complex.proto:156:21 +desc_test_complex.proto:156:28 + + + > message_type[6] > nested_type[0] > field[0] > number: +desc_test_complex.proto:156:31 +desc_test_complex.proto:156:32 + + + > message_type[6] > nested_type[0] > field[1]: +desc_test_complex.proto:157:5 +desc_test_complex.proto:157:35 + + + > message_type[6] > nested_type[0] > field[1] > label: +desc_test_complex.proto:157:5 +desc_test_complex.proto:157:13 + + + > message_type[6] > nested_type[0] > field[1] > type: +desc_test_complex.proto:157:14 +desc_test_complex.proto:157:18 + + + > message_type[6] > nested_type[0] > field[1] > name: +desc_test_complex.proto:157:19 +desc_test_complex.proto:157:30 + + + > message_type[6] > nested_type[0] > field[1] > number: +desc_test_complex.proto:157:33 +desc_test_complex.proto:157:34 + + + > message_type[6] > nested_type[0] > field[2]: +desc_test_complex.proto:158:5 +desc_test_complex.proto:158:32 + + + > message_type[6] > nested_type[0] > field[2] > label: +desc_test_complex.proto:158:5 +desc_test_complex.proto:158:13 + + + > message_type[6] > nested_type[0] > field[2] > type: +desc_test_complex.proto:158:14 +desc_test_complex.proto:158:19 + + + > message_type[6] > nested_type[0] > field[2] > name: +desc_test_complex.proto:158:20 +desc_test_complex.proto:158:27 + + + > message_type[6] > nested_type[0] > field[2] > number: +desc_test_complex.proto:158:30 +desc_test_complex.proto:158:31 + + + > message_type[6] > nested_type[0] > field[3]: +desc_test_complex.proto:159:5 +desc_test_complex.proto:159:32 + + + > message_type[6] > nested_type[0] > field[3] > label: +desc_test_complex.proto:159:5 +desc_test_complex.proto:159:13 + + + > message_type[6] > nested_type[0] > field[3] > type: +desc_test_complex.proto:159:14 +desc_test_complex.proto:159:19 + + + > message_type[6] > nested_type[0] > field[3] > name: +desc_test_complex.proto:159:20 +desc_test_complex.proto:159:27 + + + > message_type[6] > nested_type[0] > field[3] > number: +desc_test_complex.proto:159:30 +desc_test_complex.proto:159:31 + + + > message_type[6] > nested_type[1]: +desc_test_complex.proto:161:3 +desc_test_complex.proto:164:4 + + + > message_type[6] > nested_type[1] > name: +desc_test_complex.proto:161:11 +desc_test_complex.proto:161:18 + + + > message_type[6] > nested_type[1] > field[0]: +desc_test_complex.proto:162:5 +desc_test_complex.proto:162:32 + + + > message_type[6] > nested_type[1] > field[0] > label: +desc_test_complex.proto:162:5 +desc_test_complex.proto:162:13 + + + > message_type[6] > nested_type[1] > field[0] > type: +desc_test_complex.proto:162:14 +desc_test_complex.proto:162:19 + + + > message_type[6] > nested_type[1] > field[0] > name: +desc_test_complex.proto:162:20 +desc_test_complex.proto:162:27 + + + > message_type[6] > nested_type[1] > field[0] > number: +desc_test_complex.proto:162:30 +desc_test_complex.proto:162:31 + + + > message_type[6] > nested_type[1] > field[1]: +desc_test_complex.proto:163:5 +desc_test_complex.proto:163:33 + + + > message_type[6] > nested_type[1] > field[1] > label: +desc_test_complex.proto:163:5 +desc_test_complex.proto:163:13 + + + > message_type[6] > nested_type[1] > field[1] > type: +desc_test_complex.proto:163:14 +desc_test_complex.proto:163:20 + + + > message_type[6] > nested_type[1] > field[1] > name: +desc_test_complex.proto:163:21 +desc_test_complex.proto:163:28 + + + > message_type[6] > nested_type[1] > field[1] > number: +desc_test_complex.proto:163:31 +desc_test_complex.proto:163:32 + + + > message_type[6] > nested_type[2]: +desc_test_complex.proto:165:3 +desc_test_complex.proto:170:4 + + + > message_type[6] > nested_type[2] > name: +desc_test_complex.proto:165:11 +desc_test_complex.proto:165:23 + + + > message_type[6] > nested_type[2] > field[0]: +desc_test_complex.proto:166:5 +desc_test_complex.proto:166:35 + + + > message_type[6] > nested_type[2] > field[0] > label: +desc_test_complex.proto:166:5 +desc_test_complex.proto:166:13 + + + > message_type[6] > nested_type[2] > field[0] > type: +desc_test_complex.proto:166:14 +desc_test_complex.proto:166:18 + + + > message_type[6] > nested_type[2] > field[0] > name: +desc_test_complex.proto:166:19 +desc_test_complex.proto:166:30 + + + > message_type[6] > nested_type[2] > field[0] > number: +desc_test_complex.proto:166:33 +desc_test_complex.proto:166:34 + + + > message_type[6] > nested_type[2] > field[1]: +desc_test_complex.proto:167:5 +desc_test_complex.proto:167:34 + + + > message_type[6] > nested_type[2] > field[1] > label: +desc_test_complex.proto:167:5 +desc_test_complex.proto:167:13 + + + > message_type[6] > nested_type[2] > field[1] > type: +desc_test_complex.proto:167:14 +desc_test_complex.proto:167:19 + + + > message_type[6] > nested_type[2] > field[1] > name: +desc_test_complex.proto:167:20 +desc_test_complex.proto:167:29 + + + > message_type[6] > nested_type[2] > field[1] > number: +desc_test_complex.proto:167:32 +desc_test_complex.proto:167:33 + + + > message_type[6] > nested_type[2] > field[2]: +desc_test_complex.proto:168:5 +desc_test_complex.proto:168:34 + + + > message_type[6] > nested_type[2] > field[2] > label: +desc_test_complex.proto:168:5 +desc_test_complex.proto:168:13 + + + > message_type[6] > nested_type[2] > field[2] > type: +desc_test_complex.proto:168:14 +desc_test_complex.proto:168:19 + + + > message_type[6] > nested_type[2] > field[2] > name: +desc_test_complex.proto:168:20 +desc_test_complex.proto:168:29 + + + > message_type[6] > nested_type[2] > field[2] > number: +desc_test_complex.proto:168:32 +desc_test_complex.proto:168:33 + + + > message_type[6] > nested_type[2] > field[3]: +desc_test_complex.proto:169:5 +desc_test_complex.proto:169:29 + + + > message_type[6] > nested_type[2] > field[3] > label: +desc_test_complex.proto:169:5 +desc_test_complex.proto:169:13 + + + > message_type[6] > nested_type[2] > field[3] > type_name: +desc_test_complex.proto:169:14 +desc_test_complex.proto:169:18 + + + > message_type[6] > nested_type[2] > field[3] > name: +desc_test_complex.proto:169:19 +desc_test_complex.proto:169:24 + + + > message_type[6] > nested_type[2] > field[3] > number: +desc_test_complex.proto:169:27 +desc_test_complex.proto:169:28 + + + > message_type[6] > oneof_decl[0]: +desc_test_complex.proto:171:3 +desc_test_complex.proto:179:4 + + + > message_type[6] > oneof_decl[0] > name: +desc_test_complex.proto:171:9 +desc_test_complex.proto:171:13 + + + > message_type[6] > field[0]: +desc_test_complex.proto:172:5 +desc_test_complex.proto:172:27 + + + > message_type[6] > field[0] > type_name: +desc_test_complex.proto:172:5 +desc_test_complex.proto:172:15 + + + > message_type[6] > field[0] > name: +desc_test_complex.proto:172:16 +desc_test_complex.proto:172:22 + + + > message_type[6] > field[0] > number: +desc_test_complex.proto:172:25 +desc_test_complex.proto:172:26 + + + > message_type[6] > field[1]: +desc_test_complex.proto:173:5 +desc_test_complex.proto:173:31 + + + > message_type[6] > field[1] > type_name: +desc_test_complex.proto:173:5 +desc_test_complex.proto:173:17 + + + > message_type[6] > field[1] > name: +desc_test_complex.proto:173:18 +desc_test_complex.proto:173:26 + + + > message_type[6] > field[1] > number: +desc_test_complex.proto:173:29 +desc_test_complex.proto:173:30 + + + > message_type[6] > field[2]: +desc_test_complex.proto:174:5 +desc_test_complex.proto:174:21 + + + > message_type[6] > field[2] > type_name: +desc_test_complex.proto:174:5 +desc_test_complex.proto:174:12 + + + > message_type[6] > field[2] > name: +desc_test_complex.proto:174:13 +desc_test_complex.proto:174:16 + + + > message_type[6] > field[2] > number: +desc_test_complex.proto:174:19 +desc_test_complex.proto:174:20 + + + > message_type[6] > field[3]: +desc_test_complex.proto:175:9 +desc_test_complex.proto:178:10 + + + > message_type[6] > field[3] > type: +desc_test_complex.proto:175:9 +desc_test_complex.proto:175:14 + + + > message_type[6] > field[3] > name: +desc_test_complex.proto:175:15 +desc_test_complex.proto:175:24 + + + > message_type[6] > field[3] > number: +desc_test_complex.proto:175:27 +desc_test_complex.proto:175:28 + + + > message_type[6] > nested_type[3]: +desc_test_complex.proto:175:9 +desc_test_complex.proto:178:10 + + + > message_type[6] > nested_type[3] > name: +desc_test_complex.proto:175:15 +desc_test_complex.proto:175:24 + + + > message_type[6] > field[3] > type_name: +desc_test_complex.proto:175:15 +desc_test_complex.proto:175:24 + + + > message_type[6] > nested_type[3] > field[0]: +desc_test_complex.proto:176:17 +desc_test_complex.proto:176:45 + + + > message_type[6] > nested_type[3] > field[0] > label: +desc_test_complex.proto:176:17 +desc_test_complex.proto:176:25 + + + > message_type[6] > nested_type[3] > field[0] > type: +desc_test_complex.proto:176:26 +desc_test_complex.proto:176:32 + + + > message_type[6] > nested_type[3] > field[0] > name: +desc_test_complex.proto:176:33 +desc_test_complex.proto:176:40 + + + > message_type[6] > nested_type[3] > field[0] > number: +desc_test_complex.proto:176:43 +desc_test_complex.proto:176:44 + + + > message_type[6] > nested_type[3] > field[1]: +desc_test_complex.proto:177:17 +desc_test_complex.proto:177:45 + + + > message_type[6] > nested_type[3] > field[1] > label: +desc_test_complex.proto:177:17 +desc_test_complex.proto:177:25 + + + > message_type[6] > nested_type[3] > field[1] > type: +desc_test_complex.proto:177:26 +desc_test_complex.proto:177:32 + + + > message_type[6] > nested_type[3] > field[1] > name: +desc_test_complex.proto:177:33 +desc_test_complex.proto:177:40 + + + > message_type[6] > nested_type[3] > field[1] > number: +desc_test_complex.proto:177:43 +desc_test_complex.proto:177:44 + + + > extension: +desc_test_complex.proto:182:1 +desc_test_complex.proto:184:2 + + + > extension[6]: +desc_test_complex.proto:183:3 +desc_test_complex.proto:183:30 + + + > extension[6] > extendee: +desc_test_complex.proto:182:8 +desc_test_complex.proto:182:36 + + + > extension[6] > label: +desc_test_complex.proto:183:3 +desc_test_complex.proto:183:11 + + + > extension[6] > type_name: +desc_test_complex.proto:183:12 +desc_test_complex.proto:183:16 + + + > extension[6] > name: +desc_test_complex.proto:183:17 +desc_test_complex.proto:183:22 + + + > extension[6] > number: +desc_test_complex.proto:183:25 +desc_test_complex.proto:183:29 + + + > message_type[7]: +desc_test_complex.proto:186:1 +desc_test_complex.proto:192:2 + + + > message_type[7] > name: +desc_test_complex.proto:186:9 +desc_test_complex.proto:186:24 + + + > message_type[7] > field[0]: +desc_test_complex.proto:187:5 +desc_test_complex.proto:191:11 + + + > message_type[7] > field[0] > label: +desc_test_complex.proto:187:5 +desc_test_complex.proto:187:13 + + + > message_type[7] > field[0] > type: +desc_test_complex.proto:187:14 +desc_test_complex.proto:187:20 + + + > message_type[7] > field[0] > name: +desc_test_complex.proto:187:21 +desc_test_complex.proto:187:29 + + + > message_type[7] > field[0] > number: +desc_test_complex.proto:187:32 +desc_test_complex.proto:187:33 + + + > message_type[7] > field[0] > options: +desc_test_complex.proto:188:7 +desc_test_complex.proto:191:10 + + + > message_type[7] > field[0] > options > (foo.bar.rules) > repeated: +desc_test_complex.proto:188:8 +desc_test_complex.proto:191:9 + + + > message_type[8]: +desc_test_complex.proto:196:1 +desc_test_complex.proto:232:2 + Leading detached comment [0]: + tests cases where field names collide with keywords + + + + > message_type[8] > name: +desc_test_complex.proto:196:9 +desc_test_complex.proto:196:26 + + + > message_type[8] > field[0]: +desc_test_complex.proto:197:9 +desc_test_complex.proto:197:34 + + + > message_type[8] > field[0] > label: +desc_test_complex.proto:197:9 +desc_test_complex.proto:197:17 + + + > message_type[8] > field[0] > type: +desc_test_complex.proto:197:18 +desc_test_complex.proto:197:22 + + + > message_type[8] > field[0] > name: +desc_test_complex.proto:197:23 +desc_test_complex.proto:197:29 + + + > message_type[8] > field[0] > number: +desc_test_complex.proto:197:32 +desc_test_complex.proto:197:33 + + + > message_type[8] > field[1]: +desc_test_complex.proto:198:9 +desc_test_complex.proto:198:34 + + + > message_type[8] > field[1] > label: +desc_test_complex.proto:198:9 +desc_test_complex.proto:198:17 + + + > message_type[8] > field[1] > type: +desc_test_complex.proto:198:18 +desc_test_complex.proto:198:22 + + + > message_type[8] > field[1] > name: +desc_test_complex.proto:198:23 +desc_test_complex.proto:198:29 + + + > message_type[8] > field[1] > number: +desc_test_complex.proto:198:32 +desc_test_complex.proto:198:33 + + + > message_type[8] > field[2]: +desc_test_complex.proto:199:9 +desc_test_complex.proto:199:34 + + + > message_type[8] > field[2] > label: +desc_test_complex.proto:199:9 +desc_test_complex.proto:199:17 + + + > message_type[8] > field[2] > type: +desc_test_complex.proto:199:18 +desc_test_complex.proto:199:22 + + + > message_type[8] > field[2] > name: +desc_test_complex.proto:199:23 +desc_test_complex.proto:199:29 + + + > message_type[8] > field[2] > number: +desc_test_complex.proto:199:32 +desc_test_complex.proto:199:33 + + + > message_type[8] > field[3]: +desc_test_complex.proto:200:9 +desc_test_complex.proto:200:32 + + + > message_type[8] > field[3] > label: +desc_test_complex.proto:200:9 +desc_test_complex.proto:200:17 + + + > message_type[8] > field[3] > type: +desc_test_complex.proto:200:18 +desc_test_complex.proto:200:22 + + + > message_type[8] > field[3] > name: +desc_test_complex.proto:200:23 +desc_test_complex.proto:200:27 + + + > message_type[8] > field[3] > number: +desc_test_complex.proto:200:30 +desc_test_complex.proto:200:31 + + + > message_type[8] > field[4]: +desc_test_complex.proto:201:9 +desc_test_complex.proto:201:35 + + + > message_type[8] > field[4] > label: +desc_test_complex.proto:201:9 +desc_test_complex.proto:201:17 + + + > message_type[8] > field[4] > type: +desc_test_complex.proto:201:18 +desc_test_complex.proto:201:22 + + + > message_type[8] > field[4] > name: +desc_test_complex.proto:201:23 +desc_test_complex.proto:201:30 + + + > message_type[8] > field[4] > number: +desc_test_complex.proto:201:33 +desc_test_complex.proto:201:34 + + + > message_type[8] > field[5]: +desc_test_complex.proto:202:9 +desc_test_complex.proto:202:36 + + + > message_type[8] > field[5] > label: +desc_test_complex.proto:202:9 +desc_test_complex.proto:202:17 + + + > message_type[8] > field[5] > type: +desc_test_complex.proto:202:18 +desc_test_complex.proto:202:24 + + + > message_type[8] > field[5] > name: +desc_test_complex.proto:202:25 +desc_test_complex.proto:202:31 + + + > message_type[8] > field[5] > number: +desc_test_complex.proto:202:34 +desc_test_complex.proto:202:35 + + + > message_type[8] > field[6]: +desc_test_complex.proto:203:9 +desc_test_complex.proto:203:34 + + + > message_type[8] > field[6] > label: +desc_test_complex.proto:203:9 +desc_test_complex.proto:203:17 + + + > message_type[8] > field[6] > type: +desc_test_complex.proto:203:18 +desc_test_complex.proto:203:23 + + + > message_type[8] > field[6] > name: +desc_test_complex.proto:203:24 +desc_test_complex.proto:203:29 + + + > message_type[8] > field[6] > number: +desc_test_complex.proto:203:32 +desc_test_complex.proto:203:33 + + + > message_type[8] > field[7]: +desc_test_complex.proto:204:9 +desc_test_complex.proto:204:34 + + + > message_type[8] > field[7] > label: +desc_test_complex.proto:204:9 +desc_test_complex.proto:204:17 + + + > message_type[8] > field[7] > type: +desc_test_complex.proto:204:18 +desc_test_complex.proto:204:23 + + + > message_type[8] > field[7] > name: +desc_test_complex.proto:204:24 +desc_test_complex.proto:204:29 + + + > message_type[8] > field[7] > number: +desc_test_complex.proto:204:32 +desc_test_complex.proto:204:33 + + + > message_type[8] > field[8]: +desc_test_complex.proto:205:9 +desc_test_complex.proto:205:34 + + + > message_type[8] > field[8] > label: +desc_test_complex.proto:205:9 +desc_test_complex.proto:205:17 + + + > message_type[8] > field[8] > type: +desc_test_complex.proto:205:18 +desc_test_complex.proto:205:23 + + + > message_type[8] > field[8] > name: +desc_test_complex.proto:205:24 +desc_test_complex.proto:205:29 + + + > message_type[8] > field[8] > number: +desc_test_complex.proto:205:32 +desc_test_complex.proto:205:33 + + + > message_type[8] > field[9]: +desc_test_complex.proto:206:9 +desc_test_complex.proto:206:37 + + + > message_type[8] > field[9] > label: +desc_test_complex.proto:206:9 +desc_test_complex.proto:206:17 + + + > message_type[8] > field[9] > type: +desc_test_complex.proto:206:18 +desc_test_complex.proto:206:24 + + + > message_type[8] > field[9] > name: +desc_test_complex.proto:206:25 +desc_test_complex.proto:206:31 + + + > message_type[8] > field[9] > number: +desc_test_complex.proto:206:34 +desc_test_complex.proto:206:36 + + + > message_type[8] > field[10]: +desc_test_complex.proto:207:9 +desc_test_complex.proto:207:37 + + + > message_type[8] > field[10] > label: +desc_test_complex.proto:207:9 +desc_test_complex.proto:207:17 + + + > message_type[8] > field[10] > type: +desc_test_complex.proto:207:18 +desc_test_complex.proto:207:24 + + + > message_type[8] > field[10] > name: +desc_test_complex.proto:207:25 +desc_test_complex.proto:207:31 + + + > message_type[8] > field[10] > number: +desc_test_complex.proto:207:34 +desc_test_complex.proto:207:36 + + + > message_type[8] > field[11]: +desc_test_complex.proto:208:9 +desc_test_complex.proto:208:37 + + + > message_type[8] > field[11] > label: +desc_test_complex.proto:208:9 +desc_test_complex.proto:208:17 + + + > message_type[8] > field[11] > type: +desc_test_complex.proto:208:18 +desc_test_complex.proto:208:24 + + + > message_type[8] > field[11] > name: +desc_test_complex.proto:208:25 +desc_test_complex.proto:208:31 + + + > message_type[8] > field[11] > number: +desc_test_complex.proto:208:34 +desc_test_complex.proto:208:36 + + + > message_type[8] > field[12]: +desc_test_complex.proto:209:9 +desc_test_complex.proto:209:37 + + + > message_type[8] > field[12] > label: +desc_test_complex.proto:209:9 +desc_test_complex.proto:209:17 + + + > message_type[8] > field[12] > type: +desc_test_complex.proto:209:18 +desc_test_complex.proto:209:24 + + + > message_type[8] > field[12] > name: +desc_test_complex.proto:209:25 +desc_test_complex.proto:209:31 + + + > message_type[8] > field[12] > number: +desc_test_complex.proto:209:34 +desc_test_complex.proto:209:36 + + + > message_type[8] > field[13]: +desc_test_complex.proto:210:9 +desc_test_complex.proto:210:39 + + + > message_type[8] > field[13] > label: +desc_test_complex.proto:210:9 +desc_test_complex.proto:210:17 + + + > message_type[8] > field[13] > type: +desc_test_complex.proto:210:18 +desc_test_complex.proto:210:25 + + + > message_type[8] > field[13] > name: +desc_test_complex.proto:210:26 +desc_test_complex.proto:210:33 + + + > message_type[8] > field[13] > number: +desc_test_complex.proto:210:36 +desc_test_complex.proto:210:38 + + + > message_type[8] > field[14]: +desc_test_complex.proto:211:9 +desc_test_complex.proto:211:39 + + + > message_type[8] > field[14] > label: +desc_test_complex.proto:211:9 +desc_test_complex.proto:211:17 + + + > message_type[8] > field[14] > type: +desc_test_complex.proto:211:18 +desc_test_complex.proto:211:25 + + + > message_type[8] > field[14] > name: +desc_test_complex.proto:211:26 +desc_test_complex.proto:211:33 + + + > message_type[8] > field[14] > number: +desc_test_complex.proto:211:36 +desc_test_complex.proto:211:38 + + + > message_type[8] > field[15]: +desc_test_complex.proto:212:9 +desc_test_complex.proto:212:41 + + + > message_type[8] > field[15] > label: +desc_test_complex.proto:212:9 +desc_test_complex.proto:212:17 + + + > message_type[8] > field[15] > type: +desc_test_complex.proto:212:18 +desc_test_complex.proto:212:26 + + + > message_type[8] > field[15] > name: +desc_test_complex.proto:212:27 +desc_test_complex.proto:212:35 + + + > message_type[8] > field[15] > number: +desc_test_complex.proto:212:38 +desc_test_complex.proto:212:40 + + + > message_type[8] > field[16]: +desc_test_complex.proto:213:9 +desc_test_complex.proto:213:41 + + + > message_type[8] > field[16] > label: +desc_test_complex.proto:213:9 +desc_test_complex.proto:213:17 + + + > message_type[8] > field[16] > type: +desc_test_complex.proto:213:18 +desc_test_complex.proto:213:26 + + + > message_type[8] > field[16] > name: +desc_test_complex.proto:213:27 +desc_test_complex.proto:213:35 + + + > message_type[8] > field[16] > number: +desc_test_complex.proto:213:38 +desc_test_complex.proto:213:40 + + + > message_type[8] > field[17]: +desc_test_complex.proto:214:9 +desc_test_complex.proto:214:33 + + + > message_type[8] > field[17] > label: +desc_test_complex.proto:214:9 +desc_test_complex.proto:214:17 + + + > message_type[8] > field[17] > type: +desc_test_complex.proto:214:18 +desc_test_complex.proto:214:22 + + + > message_type[8] > field[17] > name: +desc_test_complex.proto:214:23 +desc_test_complex.proto:214:27 + + + > message_type[8] > field[17] > number: +desc_test_complex.proto:214:30 +desc_test_complex.proto:214:32 + + + > message_type[8] > field[18]: +desc_test_complex.proto:215:9 +desc_test_complex.proto:215:35 + + + > message_type[8] > field[18] > label: +desc_test_complex.proto:215:9 +desc_test_complex.proto:215:17 + + + > message_type[8] > field[18] > type: +desc_test_complex.proto:215:18 +desc_test_complex.proto:215:23 + + + > message_type[8] > field[18] > name: +desc_test_complex.proto:215:24 +desc_test_complex.proto:215:29 + + + > message_type[8] > field[18] > number: +desc_test_complex.proto:215:32 +desc_test_complex.proto:215:34 + + + > message_type[8] > field[19]: +desc_test_complex.proto:216:9 +desc_test_complex.proto:216:37 + + + > message_type[8] > field[19] > label: +desc_test_complex.proto:216:9 +desc_test_complex.proto:216:17 + + + > message_type[8] > field[19] > type: +desc_test_complex.proto:216:18 +desc_test_complex.proto:216:24 + + + > message_type[8] > field[19] > name: +desc_test_complex.proto:216:25 +desc_test_complex.proto:216:31 + + + > message_type[8] > field[19] > number: +desc_test_complex.proto:216:34 +desc_test_complex.proto:216:36 + + + > message_type[8] > field[20]: +desc_test_complex.proto:217:9 +desc_test_complex.proto:217:37 + + + > message_type[8] > field[20] > label: +desc_test_complex.proto:217:9 +desc_test_complex.proto:217:17 + + + > message_type[8] > field[20] > type: +desc_test_complex.proto:217:18 +desc_test_complex.proto:217:22 + + + > message_type[8] > field[20] > name: +desc_test_complex.proto:217:23 +desc_test_complex.proto:217:31 + + + > message_type[8] > field[20] > number: +desc_test_complex.proto:217:34 +desc_test_complex.proto:217:36 + + + > message_type[8] > field[21]: +desc_test_complex.proto:218:9 +desc_test_complex.proto:218:37 + + + > message_type[8] > field[21] > label: +desc_test_complex.proto:218:9 +desc_test_complex.proto:218:17 + + + > message_type[8] > field[21] > type: +desc_test_complex.proto:218:18 +desc_test_complex.proto:218:22 + + + > message_type[8] > field[21] > name: +desc_test_complex.proto:218:23 +desc_test_complex.proto:218:31 + + + > message_type[8] > field[21] > number: +desc_test_complex.proto:218:34 +desc_test_complex.proto:218:36 + + + > message_type[8] > field[22]: +desc_test_complex.proto:219:9 +desc_test_complex.proto:219:37 + + + > message_type[8] > field[22] > label: +desc_test_complex.proto:219:9 +desc_test_complex.proto:219:17 + + + > message_type[8] > field[22] > type: +desc_test_complex.proto:219:18 +desc_test_complex.proto:219:22 + + + > message_type[8] > field[22] > name: +desc_test_complex.proto:219:23 +desc_test_complex.proto:219:31 + + + > message_type[8] > field[22] > number: +desc_test_complex.proto:219:34 +desc_test_complex.proto:219:36 + + + > message_type[8] > field[23]: +desc_test_complex.proto:220:9 +desc_test_complex.proto:220:36 + + + > message_type[8] > field[23] > label: +desc_test_complex.proto:220:9 +desc_test_complex.proto:220:17 + + + > message_type[8] > field[23] > type: +desc_test_complex.proto:220:18 +desc_test_complex.proto:220:22 + + + > message_type[8] > field[23] > name: +desc_test_complex.proto:220:23 +desc_test_complex.proto:220:30 + + + > message_type[8] > field[23] > number: +desc_test_complex.proto:220:33 +desc_test_complex.proto:220:35 + + + > message_type[8] > field[24]: +desc_test_complex.proto:221:9 +desc_test_complex.proto:221:33 + + + > message_type[8] > field[24] > label: +desc_test_complex.proto:221:9 +desc_test_complex.proto:221:17 + + + > message_type[8] > field[24] > type: +desc_test_complex.proto:221:18 +desc_test_complex.proto:221:22 + + + > message_type[8] > field[24] > name: +desc_test_complex.proto:221:23 +desc_test_complex.proto:221:27 + + + > message_type[8] > field[24] > number: +desc_test_complex.proto:221:30 +desc_test_complex.proto:221:32 + + + > message_type[8] > field[25]: +desc_test_complex.proto:222:9 +desc_test_complex.proto:222:36 + + + > message_type[8] > field[25] > label: +desc_test_complex.proto:222:9 +desc_test_complex.proto:222:17 + + + > message_type[8] > field[25] > type: +desc_test_complex.proto:222:18 +desc_test_complex.proto:222:22 + + + > message_type[8] > field[25] > name: +desc_test_complex.proto:222:23 +desc_test_complex.proto:222:30 + + + > message_type[8] > field[25] > number: +desc_test_complex.proto:222:33 +desc_test_complex.proto:222:35 + + + > message_type[8] > field[26]: +desc_test_complex.proto:223:9 +desc_test_complex.proto:223:32 + + + > message_type[8] > field[26] > label: +desc_test_complex.proto:223:9 +desc_test_complex.proto:223:17 + + + > message_type[8] > field[26] > type: +desc_test_complex.proto:223:18 +desc_test_complex.proto:223:22 + + + > message_type[8] > field[26] > name: +desc_test_complex.proto:223:23 +desc_test_complex.proto:223:26 + + + > message_type[8] > field[26] > number: +desc_test_complex.proto:223:29 +desc_test_complex.proto:223:31 + + + > message_type[8] > field[27]: +desc_test_complex.proto:224:9 +desc_test_complex.proto:224:35 + + + > message_type[8] > field[27] > label: +desc_test_complex.proto:224:9 +desc_test_complex.proto:224:17 + + + > message_type[8] > field[27] > type: +desc_test_complex.proto:224:18 +desc_test_complex.proto:224:22 + + + > message_type[8] > field[27] > name: +desc_test_complex.proto:224:23 +desc_test_complex.proto:224:29 + + + > message_type[8] > field[27] > number: +desc_test_complex.proto:224:32 +desc_test_complex.proto:224:34 + + + > message_type[8] > field[28]: +desc_test_complex.proto:225:9 +desc_test_complex.proto:225:35 + + + > message_type[8] > field[28] > label: +desc_test_complex.proto:225:9 +desc_test_complex.proto:225:17 + + + > message_type[8] > field[28] > type: +desc_test_complex.proto:225:18 +desc_test_complex.proto:225:22 + + + > message_type[8] > field[28] > name: +desc_test_complex.proto:225:23 +desc_test_complex.proto:225:29 + + + > message_type[8] > field[28] > number: +desc_test_complex.proto:225:32 +desc_test_complex.proto:225:34 + + + > message_type[8] > field[29]: +desc_test_complex.proto:226:9 +desc_test_complex.proto:226:39 + + + > message_type[8] > field[29] > label: +desc_test_complex.proto:226:9 +desc_test_complex.proto:226:17 + + + > message_type[8] > field[29] > type: +desc_test_complex.proto:226:18 +desc_test_complex.proto:226:22 + + + > message_type[8] > field[29] > name: +desc_test_complex.proto:226:23 +desc_test_complex.proto:226:33 + + + > message_type[8] > field[29] > number: +desc_test_complex.proto:226:36 +desc_test_complex.proto:226:38 + + + > message_type[8] > field[30]: +desc_test_complex.proto:227:9 +desc_test_complex.proto:227:37 + + + > message_type[8] > field[30] > label: +desc_test_complex.proto:227:9 +desc_test_complex.proto:227:17 + + + > message_type[8] > field[30] > type: +desc_test_complex.proto:227:18 +desc_test_complex.proto:227:22 + + + > message_type[8] > field[30] > name: +desc_test_complex.proto:227:23 +desc_test_complex.proto:227:31 + + + > message_type[8] > field[30] > number: +desc_test_complex.proto:227:34 +desc_test_complex.proto:227:36 + + + > message_type[8] > field[31]: +desc_test_complex.proto:228:9 +desc_test_complex.proto:228:31 + + + > message_type[8] > field[31] > label: +desc_test_complex.proto:228:9 +desc_test_complex.proto:228:17 + + + > message_type[8] > field[31] > type: +desc_test_complex.proto:228:18 +desc_test_complex.proto:228:22 + + + > message_type[8] > field[31] > name: +desc_test_complex.proto:228:23 +desc_test_complex.proto:228:25 + + + > message_type[8] > field[31] > number: +desc_test_complex.proto:228:28 +desc_test_complex.proto:228:30 + + + > message_type[8] > field[32]: +desc_test_complex.proto:229:9 +desc_test_complex.proto:229:34 + + + > message_type[8] > field[32] > label: +desc_test_complex.proto:229:9 +desc_test_complex.proto:229:17 + + + > message_type[8] > field[32] > type: +desc_test_complex.proto:229:18 +desc_test_complex.proto:229:23 + + + > message_type[8] > field[32] > name: +desc_test_complex.proto:229:24 +desc_test_complex.proto:229:28 + + + > message_type[8] > field[32] > number: +desc_test_complex.proto:229:31 +desc_test_complex.proto:229:33 + + + > message_type[8] > field[33]: +desc_test_complex.proto:230:9 +desc_test_complex.proto:230:35 + + + > message_type[8] > field[33] > label: +desc_test_complex.proto:230:9 +desc_test_complex.proto:230:17 + + + > message_type[8] > field[33] > type: +desc_test_complex.proto:230:18 +desc_test_complex.proto:230:23 + + + > message_type[8] > field[33] > name: +desc_test_complex.proto:230:24 +desc_test_complex.proto:230:29 + + + > message_type[8] > field[33] > number: +desc_test_complex.proto:230:32 +desc_test_complex.proto:230:34 + + + > message_type[8] > field[34]: +desc_test_complex.proto:231:9 +desc_test_complex.proto:231:37 + + + > message_type[8] > field[34] > label: +desc_test_complex.proto:231:9 +desc_test_complex.proto:231:17 + + + > message_type[8] > field[34] > type: +desc_test_complex.proto:231:18 +desc_test_complex.proto:231:23 + + + > message_type[8] > field[34] > name: +desc_test_complex.proto:231:24 +desc_test_complex.proto:231:31 + + + > message_type[8] > field[34] > number: +desc_test_complex.proto:231:34 +desc_test_complex.proto:231:36 + + + > extension: +desc_test_complex.proto:234:1 +desc_test_complex.proto:271:2 + + + > extension[7]: +desc_test_complex.proto:235:9 +desc_test_complex.proto:235:38 + + + > extension[7] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[7] > label: +desc_test_complex.proto:235:9 +desc_test_complex.proto:235:17 + + + > extension[7] > type: +desc_test_complex.proto:235:18 +desc_test_complex.proto:235:22 + + + > extension[7] > name: +desc_test_complex.proto:235:23 +desc_test_complex.proto:235:29 + + + > extension[7] > number: +desc_test_complex.proto:235:32 +desc_test_complex.proto:235:37 + + + > extension[8]: +desc_test_complex.proto:236:9 +desc_test_complex.proto:236:38 + + + > extension[8] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[8] > label: +desc_test_complex.proto:236:9 +desc_test_complex.proto:236:17 + + + > extension[8] > type: +desc_test_complex.proto:236:18 +desc_test_complex.proto:236:22 + + + > extension[8] > name: +desc_test_complex.proto:236:23 +desc_test_complex.proto:236:29 + + + > extension[8] > number: +desc_test_complex.proto:236:32 +desc_test_complex.proto:236:37 + + + > extension[9]: +desc_test_complex.proto:237:9 +desc_test_complex.proto:237:38 + + + > extension[9] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[9] > label: +desc_test_complex.proto:237:9 +desc_test_complex.proto:237:17 + + + > extension[9] > type: +desc_test_complex.proto:237:18 +desc_test_complex.proto:237:22 + + + > extension[9] > name: +desc_test_complex.proto:237:23 +desc_test_complex.proto:237:29 + + + > extension[9] > number: +desc_test_complex.proto:237:32 +desc_test_complex.proto:237:37 + + + > extension[10]: +desc_test_complex.proto:238:9 +desc_test_complex.proto:238:36 + + + > extension[10] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[10] > label: +desc_test_complex.proto:238:9 +desc_test_complex.proto:238:17 + + + > extension[10] > type: +desc_test_complex.proto:238:18 +desc_test_complex.proto:238:22 + + + > extension[10] > name: +desc_test_complex.proto:238:23 +desc_test_complex.proto:238:27 + + + > extension[10] > number: +desc_test_complex.proto:238:30 +desc_test_complex.proto:238:35 + + + > extension[11]: +desc_test_complex.proto:239:9 +desc_test_complex.proto:239:39 + + + > extension[11] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[11] > label: +desc_test_complex.proto:239:9 +desc_test_complex.proto:239:17 + + + > extension[11] > type: +desc_test_complex.proto:239:18 +desc_test_complex.proto:239:22 + + + > extension[11] > name: +desc_test_complex.proto:239:23 +desc_test_complex.proto:239:30 + + + > extension[11] > number: +desc_test_complex.proto:239:33 +desc_test_complex.proto:239:38 + + + > extension[12]: +desc_test_complex.proto:240:9 +desc_test_complex.proto:240:40 + + + > extension[12] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[12] > label: +desc_test_complex.proto:240:9 +desc_test_complex.proto:240:17 + + + > extension[12] > type: +desc_test_complex.proto:240:18 +desc_test_complex.proto:240:24 + + + > extension[12] > name: +desc_test_complex.proto:240:25 +desc_test_complex.proto:240:31 + + + > extension[12] > number: +desc_test_complex.proto:240:34 +desc_test_complex.proto:240:39 + + + > extension[13]: +desc_test_complex.proto:241:9 +desc_test_complex.proto:241:38 + + + > extension[13] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[13] > label: +desc_test_complex.proto:241:9 +desc_test_complex.proto:241:17 + + + > extension[13] > type: +desc_test_complex.proto:241:18 +desc_test_complex.proto:241:23 + + + > extension[13] > name: +desc_test_complex.proto:241:24 +desc_test_complex.proto:241:29 + + + > extension[13] > number: +desc_test_complex.proto:241:32 +desc_test_complex.proto:241:37 + + + > extension[14]: +desc_test_complex.proto:242:9 +desc_test_complex.proto:242:38 + + + > extension[14] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[14] > label: +desc_test_complex.proto:242:9 +desc_test_complex.proto:242:17 + + + > extension[14] > type: +desc_test_complex.proto:242:18 +desc_test_complex.proto:242:23 + + + > extension[14] > name: +desc_test_complex.proto:242:24 +desc_test_complex.proto:242:29 + + + > extension[14] > number: +desc_test_complex.proto:242:32 +desc_test_complex.proto:242:37 + + + > extension[15]: +desc_test_complex.proto:243:9 +desc_test_complex.proto:243:38 + + + > extension[15] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[15] > label: +desc_test_complex.proto:243:9 +desc_test_complex.proto:243:17 + + + > extension[15] > type: +desc_test_complex.proto:243:18 +desc_test_complex.proto:243:23 + + + > extension[15] > name: +desc_test_complex.proto:243:24 +desc_test_complex.proto:243:29 + + + > extension[15] > number: +desc_test_complex.proto:243:32 +desc_test_complex.proto:243:37 + + + > extension[16]: +desc_test_complex.proto:244:9 +desc_test_complex.proto:244:40 + + + > extension[16] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[16] > label: +desc_test_complex.proto:244:9 +desc_test_complex.proto:244:17 + + + > extension[16] > type: +desc_test_complex.proto:244:18 +desc_test_complex.proto:244:24 + + + > extension[16] > name: +desc_test_complex.proto:244:25 +desc_test_complex.proto:244:31 + + + > extension[16] > number: +desc_test_complex.proto:244:34 +desc_test_complex.proto:244:39 + + + > extension[17]: +desc_test_complex.proto:245:9 +desc_test_complex.proto:245:40 + + + > extension[17] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[17] > label: +desc_test_complex.proto:245:9 +desc_test_complex.proto:245:17 + + + > extension[17] > type: +desc_test_complex.proto:245:18 +desc_test_complex.proto:245:24 + + + > extension[17] > name: +desc_test_complex.proto:245:25 +desc_test_complex.proto:245:31 + + + > extension[17] > number: +desc_test_complex.proto:245:34 +desc_test_complex.proto:245:39 + + + > extension[18]: +desc_test_complex.proto:246:9 +desc_test_complex.proto:246:40 + + + > extension[18] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[18] > label: +desc_test_complex.proto:246:9 +desc_test_complex.proto:246:17 + + + > extension[18] > type: +desc_test_complex.proto:246:18 +desc_test_complex.proto:246:24 + + + > extension[18] > name: +desc_test_complex.proto:246:25 +desc_test_complex.proto:246:31 + + + > extension[18] > number: +desc_test_complex.proto:246:34 +desc_test_complex.proto:246:39 + + + > extension[19]: +desc_test_complex.proto:247:9 +desc_test_complex.proto:247:40 + + + > extension[19] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[19] > label: +desc_test_complex.proto:247:9 +desc_test_complex.proto:247:17 + + + > extension[19] > type: +desc_test_complex.proto:247:18 +desc_test_complex.proto:247:24 + + + > extension[19] > name: +desc_test_complex.proto:247:25 +desc_test_complex.proto:247:31 + + + > extension[19] > number: +desc_test_complex.proto:247:34 +desc_test_complex.proto:247:39 + + + > extension[20]: +desc_test_complex.proto:248:9 +desc_test_complex.proto:248:42 + + + > extension[20] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[20] > label: +desc_test_complex.proto:248:9 +desc_test_complex.proto:248:17 + + + > extension[20] > type: +desc_test_complex.proto:248:18 +desc_test_complex.proto:248:25 + + + > extension[20] > name: +desc_test_complex.proto:248:26 +desc_test_complex.proto:248:33 + + + > extension[20] > number: +desc_test_complex.proto:248:36 +desc_test_complex.proto:248:41 + + + > extension[21]: +desc_test_complex.proto:249:9 +desc_test_complex.proto:249:42 + + + > extension[21] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[21] > label: +desc_test_complex.proto:249:9 +desc_test_complex.proto:249:17 + + + > extension[21] > type: +desc_test_complex.proto:249:18 +desc_test_complex.proto:249:25 + + + > extension[21] > name: +desc_test_complex.proto:249:26 +desc_test_complex.proto:249:33 + + + > extension[21] > number: +desc_test_complex.proto:249:36 +desc_test_complex.proto:249:41 + + + > extension[22]: +desc_test_complex.proto:250:9 +desc_test_complex.proto:250:44 + + + > extension[22] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[22] > label: +desc_test_complex.proto:250:9 +desc_test_complex.proto:250:17 + + + > extension[22] > type: +desc_test_complex.proto:250:18 +desc_test_complex.proto:250:26 + + + > extension[22] > name: +desc_test_complex.proto:250:27 +desc_test_complex.proto:250:35 + + + > extension[22] > number: +desc_test_complex.proto:250:38 +desc_test_complex.proto:250:43 + + + > extension[23]: +desc_test_complex.proto:251:9 +desc_test_complex.proto:251:44 + + + > extension[23] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[23] > label: +desc_test_complex.proto:251:9 +desc_test_complex.proto:251:17 + + + > extension[23] > type: +desc_test_complex.proto:251:18 +desc_test_complex.proto:251:26 + + + > extension[23] > name: +desc_test_complex.proto:251:27 +desc_test_complex.proto:251:35 + + + > extension[23] > number: +desc_test_complex.proto:251:38 +desc_test_complex.proto:251:43 + + + > extension[24]: +desc_test_complex.proto:252:9 +desc_test_complex.proto:252:36 + + + > extension[24] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[24] > label: +desc_test_complex.proto:252:9 +desc_test_complex.proto:252:17 + + + > extension[24] > type: +desc_test_complex.proto:252:18 +desc_test_complex.proto:252:22 + + + > extension[24] > name: +desc_test_complex.proto:252:23 +desc_test_complex.proto:252:27 + + + > extension[24] > number: +desc_test_complex.proto:252:30 +desc_test_complex.proto:252:35 + + + > extension[25]: +desc_test_complex.proto:253:9 +desc_test_complex.proto:253:38 + + + > extension[25] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[25] > label: +desc_test_complex.proto:253:9 +desc_test_complex.proto:253:17 + + + > extension[25] > type: +desc_test_complex.proto:253:18 +desc_test_complex.proto:253:23 + + + > extension[25] > name: +desc_test_complex.proto:253:24 +desc_test_complex.proto:253:29 + + + > extension[25] > number: +desc_test_complex.proto:253:32 +desc_test_complex.proto:253:37 + + + > extension[26]: +desc_test_complex.proto:254:9 +desc_test_complex.proto:254:40 + + + > extension[26] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[26] > label: +desc_test_complex.proto:254:9 +desc_test_complex.proto:254:17 + + + > extension[26] > type: +desc_test_complex.proto:254:18 +desc_test_complex.proto:254:24 + + + > extension[26] > name: +desc_test_complex.proto:254:25 +desc_test_complex.proto:254:31 + + + > extension[26] > number: +desc_test_complex.proto:254:34 +desc_test_complex.proto:254:39 + + + > extension[27]: +desc_test_complex.proto:255:9 +desc_test_complex.proto:255:40 + + + > extension[27] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[27] > label: +desc_test_complex.proto:255:9 +desc_test_complex.proto:255:17 + + + > extension[27] > type: +desc_test_complex.proto:255:18 +desc_test_complex.proto:255:22 + + + > extension[27] > name: +desc_test_complex.proto:255:23 +desc_test_complex.proto:255:31 + + + > extension[27] > number: +desc_test_complex.proto:255:34 +desc_test_complex.proto:255:39 + + + > extension[28]: +desc_test_complex.proto:256:9 +desc_test_complex.proto:256:40 + + + > extension[28] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[28] > label: +desc_test_complex.proto:256:9 +desc_test_complex.proto:256:17 + + + > extension[28] > type: +desc_test_complex.proto:256:18 +desc_test_complex.proto:256:22 + + + > extension[28] > name: +desc_test_complex.proto:256:23 +desc_test_complex.proto:256:31 + + + > extension[28] > number: +desc_test_complex.proto:256:34 +desc_test_complex.proto:256:39 + + + > extension[29]: +desc_test_complex.proto:257:9 +desc_test_complex.proto:257:40 + + + > extension[29] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[29] > label: +desc_test_complex.proto:257:9 +desc_test_complex.proto:257:17 + + + > extension[29] > type: +desc_test_complex.proto:257:18 +desc_test_complex.proto:257:22 + + + > extension[29] > name: +desc_test_complex.proto:257:23 +desc_test_complex.proto:257:31 + + + > extension[29] > number: +desc_test_complex.proto:257:34 +desc_test_complex.proto:257:39 + + + > extension[30]: +desc_test_complex.proto:258:9 +desc_test_complex.proto:258:39 + + + > extension[30] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[30] > label: +desc_test_complex.proto:258:9 +desc_test_complex.proto:258:17 + + + > extension[30] > type: +desc_test_complex.proto:258:18 +desc_test_complex.proto:258:22 + + + > extension[30] > name: +desc_test_complex.proto:258:23 +desc_test_complex.proto:258:30 + + + > extension[30] > number: +desc_test_complex.proto:258:33 +desc_test_complex.proto:258:38 + + + > extension[31]: +desc_test_complex.proto:259:9 +desc_test_complex.proto:259:36 + + + > extension[31] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[31] > label: +desc_test_complex.proto:259:9 +desc_test_complex.proto:259:17 + + + > extension[31] > type: +desc_test_complex.proto:259:18 +desc_test_complex.proto:259:22 + + + > extension[31] > name: +desc_test_complex.proto:259:23 +desc_test_complex.proto:259:27 + + + > extension[31] > number: +desc_test_complex.proto:259:30 +desc_test_complex.proto:259:35 + + + > extension[32]: +desc_test_complex.proto:260:9 +desc_test_complex.proto:260:39 + + + > extension[32] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[32] > label: +desc_test_complex.proto:260:9 +desc_test_complex.proto:260:17 + + + > extension[32] > type: +desc_test_complex.proto:260:18 +desc_test_complex.proto:260:22 + + + > extension[32] > name: +desc_test_complex.proto:260:23 +desc_test_complex.proto:260:30 + + + > extension[32] > number: +desc_test_complex.proto:260:33 +desc_test_complex.proto:260:38 + + + > extension[33]: +desc_test_complex.proto:261:9 +desc_test_complex.proto:261:35 + + + > extension[33] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[33] > label: +desc_test_complex.proto:261:9 +desc_test_complex.proto:261:17 + + + > extension[33] > type: +desc_test_complex.proto:261:18 +desc_test_complex.proto:261:22 + + + > extension[33] > name: +desc_test_complex.proto:261:23 +desc_test_complex.proto:261:26 + + + > extension[33] > number: +desc_test_complex.proto:261:29 +desc_test_complex.proto:261:34 + + + > extension[34]: +desc_test_complex.proto:262:9 +desc_test_complex.proto:262:38 + + + > extension[34] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[34] > label: +desc_test_complex.proto:262:9 +desc_test_complex.proto:262:17 + + + > extension[34] > type: +desc_test_complex.proto:262:18 +desc_test_complex.proto:262:22 + + + > extension[34] > name: +desc_test_complex.proto:262:23 +desc_test_complex.proto:262:29 + + + > extension[34] > number: +desc_test_complex.proto:262:32 +desc_test_complex.proto:262:37 + + + > extension[35]: +desc_test_complex.proto:263:9 +desc_test_complex.proto:263:38 + + + > extension[35] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[35] > label: +desc_test_complex.proto:263:9 +desc_test_complex.proto:263:17 + + + > extension[35] > type: +desc_test_complex.proto:263:18 +desc_test_complex.proto:263:22 + + + > extension[35] > name: +desc_test_complex.proto:263:23 +desc_test_complex.proto:263:29 + + + > extension[35] > number: +desc_test_complex.proto:263:32 +desc_test_complex.proto:263:37 + + + > extension[36]: +desc_test_complex.proto:264:9 +desc_test_complex.proto:264:42 + + + > extension[36] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[36] > label: +desc_test_complex.proto:264:9 +desc_test_complex.proto:264:17 + + + > extension[36] > type: +desc_test_complex.proto:264:18 +desc_test_complex.proto:264:22 + + + > extension[36] > name: +desc_test_complex.proto:264:23 +desc_test_complex.proto:264:33 + + + > extension[36] > number: +desc_test_complex.proto:264:36 +desc_test_complex.proto:264:41 + + + > extension[37]: +desc_test_complex.proto:265:9 +desc_test_complex.proto:265:40 + + + > extension[37] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[37] > label: +desc_test_complex.proto:265:9 +desc_test_complex.proto:265:17 + + + > extension[37] > type: +desc_test_complex.proto:265:18 +desc_test_complex.proto:265:22 + + + > extension[37] > name: +desc_test_complex.proto:265:23 +desc_test_complex.proto:265:31 + + + > extension[37] > number: +desc_test_complex.proto:265:34 +desc_test_complex.proto:265:39 + + + > extension[38]: +desc_test_complex.proto:266:9 +desc_test_complex.proto:266:34 + + + > extension[38] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[38] > label: +desc_test_complex.proto:266:9 +desc_test_complex.proto:266:17 + + + > extension[38] > type: +desc_test_complex.proto:266:18 +desc_test_complex.proto:266:22 + + + > extension[38] > name: +desc_test_complex.proto:266:23 +desc_test_complex.proto:266:25 + + + > extension[38] > number: +desc_test_complex.proto:266:28 +desc_test_complex.proto:266:33 + + + > extension[39]: +desc_test_complex.proto:267:9 +desc_test_complex.proto:267:37 + + + > extension[39] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[39] > label: +desc_test_complex.proto:267:9 +desc_test_complex.proto:267:17 + + + > extension[39] > type: +desc_test_complex.proto:267:18 +desc_test_complex.proto:267:23 + + + > extension[39] > name: +desc_test_complex.proto:267:24 +desc_test_complex.proto:267:28 + + + > extension[39] > number: +desc_test_complex.proto:267:31 +desc_test_complex.proto:267:36 + + + > extension[40]: +desc_test_complex.proto:268:9 +desc_test_complex.proto:268:38 + + + > extension[40] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[40] > label: +desc_test_complex.proto:268:9 +desc_test_complex.proto:268:17 + + + > extension[40] > type: +desc_test_complex.proto:268:18 +desc_test_complex.proto:268:23 + + + > extension[40] > name: +desc_test_complex.proto:268:24 +desc_test_complex.proto:268:29 + + + > extension[40] > number: +desc_test_complex.proto:268:32 +desc_test_complex.proto:268:37 + + + > extension[41]: +desc_test_complex.proto:269:9 +desc_test_complex.proto:269:40 + + + > extension[41] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[41] > label: +desc_test_complex.proto:269:9 +desc_test_complex.proto:269:17 + + + > extension[41] > type: +desc_test_complex.proto:269:18 +desc_test_complex.proto:269:23 + + + > extension[41] > name: +desc_test_complex.proto:269:24 +desc_test_complex.proto:269:31 + + + > extension[41] > number: +desc_test_complex.proto:269:34 +desc_test_complex.proto:269:39 + + + > extension[42]: +desc_test_complex.proto:270:9 +desc_test_complex.proto:270:49 + + + > extension[42] > extendee: +desc_test_complex.proto:234:8 +desc_test_complex.proto:234:36 + + + > extension[42] > label: +desc_test_complex.proto:270:9 +desc_test_complex.proto:270:17 + + + > extension[42] > type_name: +desc_test_complex.proto:270:18 +desc_test_complex.proto:270:35 + + + > extension[42] > name: +desc_test_complex.proto:270:36 +desc_test_complex.proto:270:40 + + + > extension[42] > number: +desc_test_complex.proto:270:43 +desc_test_complex.proto:270:48 + + + > message_type[9]: +desc_test_complex.proto:273:1 +desc_test_complex.proto:298:2 + + + > message_type[9] > name: +desc_test_complex.proto:273:9 +desc_test_complex.proto:273:32 + + + > message_type[9] > field[0]: +desc_test_complex.proto:274:9 +desc_test_complex.proto:284:11 + + + > message_type[9] > field[0] > label: +desc_test_complex.proto:274:9 +desc_test_complex.proto:274:17 + + + > message_type[9] > field[0] > type: +desc_test_complex.proto:274:18 +desc_test_complex.proto:274:24 + + + > message_type[9] > field[0] > name: +desc_test_complex.proto:274:25 +desc_test_complex.proto:274:27 + + + > message_type[9] > field[0] > number: +desc_test_complex.proto:274:30 +desc_test_complex.proto:274:31 + + + > message_type[9] > field[0] > options: +desc_test_complex.proto:274:32 +desc_test_complex.proto:284:10 + + + > message_type[9] > field[0] > options > (foo.bar.syntax): +desc_test_complex.proto:275:17 +desc_test_complex.proto:275:32 + + + > message_type[9] > field[0] > options > (foo.bar.import): +desc_test_complex.proto:275:34 +desc_test_complex.proto:275:49 + + + > message_type[9] > field[0] > options > (foo.bar.public): +desc_test_complex.proto:275:51 +desc_test_complex.proto:275:66 + + + > message_type[9] > field[0] > options > (foo.bar.weak): +desc_test_complex.proto:275:68 +desc_test_complex.proto:275:81 + + + > message_type[9] > field[0] > options > (foo.bar.package): +desc_test_complex.proto:275:83 +desc_test_complex.proto:275:99 + + + > message_type[9] > field[0] > options > (foo.bar.string): +desc_test_complex.proto:276:17 +desc_test_complex.proto:276:36 + + + > message_type[9] > field[0] > options > (foo.bar.bytes): +desc_test_complex.proto:276:38 +desc_test_complex.proto:276:55 + + + > message_type[9] > field[0] > options > (foo.bar.bool): +desc_test_complex.proto:276:57 +desc_test_complex.proto:276:70 + + + > message_type[9] > field[0] > options > (foo.bar.float): +desc_test_complex.proto:277:17 +desc_test_complex.proto:277:31 + + + > message_type[9] > field[0] > options > (foo.bar.double): +desc_test_complex.proto:277:33 +desc_test_complex.proto:277:51 + + + > message_type[9] > field[0] > options > (foo.bar.int32): +desc_test_complex.proto:278:17 +desc_test_complex.proto:278:29 + + + > message_type[9] > field[0] > options > (foo.bar.int64): +desc_test_complex.proto:278:31 +desc_test_complex.proto:278:43 + + + > message_type[9] > field[0] > options > (foo.bar.uint32): +desc_test_complex.proto:278:45 +desc_test_complex.proto:278:60 + + + > message_type[9] > field[0] > options > (foo.bar.uint64): +desc_test_complex.proto:278:62 +desc_test_complex.proto:278:77 + + + > message_type[9] > field[0] > options > (foo.bar.sint32): +desc_test_complex.proto:278:79 +desc_test_complex.proto:278:93 + + + > message_type[9] > field[0] > options > (foo.bar.sint64): +desc_test_complex.proto:278:95 +desc_test_complex.proto:278:109 + + + > message_type[9] > field[0] > options > (foo.bar.fixed32): +desc_test_complex.proto:279:17 +desc_test_complex.proto:279:33 + + + > message_type[9] > field[0] > options > (foo.bar.fixed64): +desc_test_complex.proto:279:35 +desc_test_complex.proto:279:51 + + + > message_type[9] > field[0] > options > (foo.bar.sfixed32): +desc_test_complex.proto:279:53 +desc_test_complex.proto:279:71 + + + > message_type[9] > field[0] > options > (foo.bar.sfixed64): +desc_test_complex.proto:279:73 +desc_test_complex.proto:279:91 + + + > message_type[9] > field[0] > options > (foo.bar.optional): +desc_test_complex.proto:280:17 +desc_test_complex.proto:280:34 + + + > message_type[9] > field[0] > options > (foo.bar.repeated): +desc_test_complex.proto:280:36 +desc_test_complex.proto:280:53 + + + > message_type[9] > field[0] > options > (foo.bar.required): +desc_test_complex.proto:280:55 +desc_test_complex.proto:280:72 + + + > message_type[9] > field[0] > options > (foo.bar.message): +desc_test_complex.proto:281:17 +desc_test_complex.proto:281:33 + + + > message_type[9] > field[0] > options > (foo.bar.enum): +desc_test_complex.proto:281:35 +desc_test_complex.proto:281:48 + + + > message_type[9] > field[0] > options > (foo.bar.service): +desc_test_complex.proto:281:50 +desc_test_complex.proto:281:66 + + + > message_type[9] > field[0] > options > (foo.bar.rpc): +desc_test_complex.proto:281:68 +desc_test_complex.proto:281:80 + + + > message_type[9] > field[0] > options > (foo.bar.option): +desc_test_complex.proto:282:17 +desc_test_complex.proto:282:32 + + + > message_type[9] > field[0] > options > (foo.bar.extend): +desc_test_complex.proto:282:34 +desc_test_complex.proto:282:49 + + + > message_type[9] > field[0] > options > (foo.bar.extensions): +desc_test_complex.proto:282:51 +desc_test_complex.proto:282:70 + + + > message_type[9] > field[0] > options > (foo.bar.reserved): +desc_test_complex.proto:282:72 +desc_test_complex.proto:282:89 + + + > message_type[9] > field[0] > options > (foo.bar.to): +desc_test_complex.proto:283:17 +desc_test_complex.proto:283:28 + + + > message_type[9] > field[0] > options > (foo.bar.true): +desc_test_complex.proto:283:30 +desc_test_complex.proto:283:42 + + + > message_type[9] > field[0] > options > (foo.bar.false): +desc_test_complex.proto:283:44 +desc_test_complex.proto:283:58 + + + > message_type[9] > field[0] > options > (foo.bar.default): +desc_test_complex.proto:283:60 +desc_test_complex.proto:283:75 + + + > message_type[9] > field[1]: +desc_test_complex.proto:285:9 +desc_test_complex.proto:297:11 + + + > message_type[9] > field[1] > label: +desc_test_complex.proto:285:9 +desc_test_complex.proto:285:17 + + + > message_type[9] > field[1] > type: +desc_test_complex.proto:285:18 +desc_test_complex.proto:285:24 + + + > message_type[9] > field[1] > name: +desc_test_complex.proto:285:25 +desc_test_complex.proto:285:29 + + + > message_type[9] > field[1] > number: +desc_test_complex.proto:285:32 +desc_test_complex.proto:285:33 + + + > message_type[9] > field[1] > options: +desc_test_complex.proto:285:34 +desc_test_complex.proto:297:10 + + + > message_type[9] > field[1] > options > (foo.bar.boom): +desc_test_complex.proto:286:17 +desc_test_complex.proto:296:18 +---- desc_test_options.proto ---- + + +: +desc_test_options.proto:1:1 +desc_test_options.proto:63:2 + + + > syntax: +desc_test_options.proto:1:1 +desc_test_options.proto:1:19 + + + > options: +desc_test_options.proto:3:1 +desc_test_options.proto:3:73 + + + > options > go_package: +desc_test_options.proto:3:1 +desc_test_options.proto:3:73 + + + > package: +desc_test_options.proto:5:1 +desc_test_options.proto:5:20 + + + > dependency[0]: +desc_test_options.proto:7:1 +desc_test_options.proto:7:43 + + + > extension: +desc_test_options.proto:9:1 +desc_test_options.proto:11:2 + + + > extension[0]: +desc_test_options.proto:10:9 +desc_test_options.proto:10:38 + + + > extension[0] > extendee: +desc_test_options.proto:9:8 +desc_test_options.proto:9:38 + + + > extension[0] > label: +desc_test_options.proto:10:9 +desc_test_options.proto:10:17 + + + > extension[0] > type: +desc_test_options.proto:10:18 +desc_test_options.proto:10:22 + + + > extension[0] > name: +desc_test_options.proto:10:23 +desc_test_options.proto:10:29 + + + > extension[0] > number: +desc_test_options.proto:10:32 +desc_test_options.proto:10:37 + + + > extension: +desc_test_options.proto:13:1 +desc_test_options.proto:16:2 + + + > extension[1]: +desc_test_options.proto:14:9 +desc_test_options.proto:14:40 + + + > extension[1] > extendee: +desc_test_options.proto:13:8 +desc_test_options.proto:13:36 + + + > extension[1] > label: +desc_test_options.proto:14:9 +desc_test_options.proto:14:17 + + + > extension[1] > type: +desc_test_options.proto:14:18 +desc_test_options.proto:14:24 + + + > extension[1] > name: +desc_test_options.proto:14:25 +desc_test_options.proto:14:31 + + + > extension[1] > number: +desc_test_options.proto:14:34 +desc_test_options.proto:14:39 + + + > extension[2]: +desc_test_options.proto:15:9 +desc_test_options.proto:15:40 + + + > extension[2] > extendee: +desc_test_options.proto:13:8 +desc_test_options.proto:13:36 + + + > extension[2] > label: +desc_test_options.proto:15:9 +desc_test_options.proto:15:17 + + + > extension[2] > type: +desc_test_options.proto:15:18 +desc_test_options.proto:15:23 + + + > extension[2] > name: +desc_test_options.proto:15:24 +desc_test_options.proto:15:31 + + + > extension[2] > number: +desc_test_options.proto:15:34 +desc_test_options.proto:15:39 + + + > extension: +desc_test_options.proto:18:1 +desc_test_options.proto:24:2 + + + > extension[3]: +desc_test_options.proto:19:9 +desc_test_options.proto:19:39 + + + > extension[3] > extendee: +desc_test_options.proto:18:8 +desc_test_options.proto:18:35 + + + > extension[3] > label: +desc_test_options.proto:19:9 +desc_test_options.proto:19:17 + + + > extension[3] > type: +desc_test_options.proto:19:18 +desc_test_options.proto:19:23 + + + > extension[3] > name: +desc_test_options.proto:19:24 +desc_test_options.proto:19:30 + + + > extension[3] > number: +desc_test_options.proto:19:33 +desc_test_options.proto:19:38 + + + > extension[4]: +desc_test_options.proto:20:9 +desc_test_options.proto:20:41 + + + > extension[4] > extendee: +desc_test_options.proto:18:8 +desc_test_options.proto:18:35 + + + > extension[4] > label: +desc_test_options.proto:20:9 +desc_test_options.proto:20:17 + + + > extension[4] > type: +desc_test_options.proto:20:18 +desc_test_options.proto:20:24 + + + > extension[4] > name: +desc_test_options.proto:20:25 +desc_test_options.proto:20:32 + + + > extension[4] > number: +desc_test_options.proto:20:35 +desc_test_options.proto:20:40 + + + > extension[5]: +desc_test_options.proto:21:9 +desc_test_options.proto:21:44 + + + > extension[5] > extendee: +desc_test_options.proto:18:8 +desc_test_options.proto:18:35 + + + > extension[5] > label: +desc_test_options.proto:21:9 +desc_test_options.proto:21:17 + + + > extension[5] > type: +desc_test_options.proto:21:18 +desc_test_options.proto:21:26 + + + > extension[5] > name: +desc_test_options.proto:21:27 +desc_test_options.proto:21:35 + + + > extension[5] > number: +desc_test_options.proto:21:38 +desc_test_options.proto:21:43 + + + > extension[6]: +desc_test_options.proto:22:9 +desc_test_options.proto:22:41 + + + > extension[6] > extendee: +desc_test_options.proto:18:8 +desc_test_options.proto:18:35 + + + > extension[6] > label: +desc_test_options.proto:22:9 +desc_test_options.proto:22:17 + + + > extension[6] > type: +desc_test_options.proto:22:18 +desc_test_options.proto:22:24 + + + > extension[6] > name: +desc_test_options.proto:22:25 +desc_test_options.proto:22:32 + + + > extension[6] > number: +desc_test_options.proto:22:35 +desc_test_options.proto:22:40 + + + > extension[7]: +desc_test_options.proto:23:9 +desc_test_options.proto:23:43 + + + > extension[7] > extendee: +desc_test_options.proto:18:8 +desc_test_options.proto:18:35 + + + > extension[7] > label: +desc_test_options.proto:23:9 +desc_test_options.proto:23:17 + + + > extension[7] > type: +desc_test_options.proto:23:18 +desc_test_options.proto:23:25 + + + > extension[7] > name: +desc_test_options.proto:23:26 +desc_test_options.proto:23:34 + + + > extension[7] > number: +desc_test_options.proto:23:37 +desc_test_options.proto:23:42 + + + > extension: +desc_test_options.proto:26:1 +desc_test_options.proto:32:2 + + + > extension[8]: +desc_test_options.proto:27:9 +desc_test_options.proto:27:40 + + + > extension[8] > extendee: +desc_test_options.proto:26:8 +desc_test_options.proto:26:40 + + + > extension[8] > label: +desc_test_options.proto:27:9 +desc_test_options.proto:27:17 + + + > extension[8] > type: +desc_test_options.proto:27:18 +desc_test_options.proto:27:23 + + + > extension[8] > name: +desc_test_options.proto:27:24 +desc_test_options.proto:27:31 + + + > extension[8] > number: +desc_test_options.proto:27:34 +desc_test_options.proto:27:39 + + + > extension[9]: +desc_test_options.proto:28:9 +desc_test_options.proto:28:42 + + + > extension[9] > extendee: +desc_test_options.proto:26:8 +desc_test_options.proto:26:40 + + + > extension[9] > label: +desc_test_options.proto:28:9 +desc_test_options.proto:28:17 + + + > extension[9] > type: +desc_test_options.proto:28:18 +desc_test_options.proto:28:24 + + + > extension[9] > name: +desc_test_options.proto:28:25 +desc_test_options.proto:28:33 + + + > extension[9] > number: +desc_test_options.proto:28:36 +desc_test_options.proto:28:41 + + + > extension[10]: +desc_test_options.proto:29:9 +desc_test_options.proto:29:45 + + + > extension[10] > extendee: +desc_test_options.proto:26:8 +desc_test_options.proto:26:40 + + + > extension[10] > label: +desc_test_options.proto:29:9 +desc_test_options.proto:29:17 + + + > extension[10] > type: +desc_test_options.proto:29:18 +desc_test_options.proto:29:26 + + + > extension[10] > name: +desc_test_options.proto:29:27 +desc_test_options.proto:29:36 + + + > extension[10] > number: +desc_test_options.proto:29:39 +desc_test_options.proto:29:44 + + + > extension[11]: +desc_test_options.proto:30:9 +desc_test_options.proto:30:42 + + + > extension[11] > extendee: +desc_test_options.proto:26:8 +desc_test_options.proto:26:40 + + + > extension[11] > label: +desc_test_options.proto:30:9 +desc_test_options.proto:30:17 + + + > extension[11] > type: +desc_test_options.proto:30:18 +desc_test_options.proto:30:24 + + + > extension[11] > name: +desc_test_options.proto:30:25 +desc_test_options.proto:30:33 + + + > extension[11] > number: +desc_test_options.proto:30:36 +desc_test_options.proto:30:41 + + + > extension[12]: +desc_test_options.proto:31:9 +desc_test_options.proto:31:44 + + + > extension[12] > extendee: +desc_test_options.proto:26:8 +desc_test_options.proto:26:40 + + + > extension[12] > label: +desc_test_options.proto:31:9 +desc_test_options.proto:31:17 + + + > extension[12] > type: +desc_test_options.proto:31:18 +desc_test_options.proto:31:25 + + + > extension[12] > name: +desc_test_options.proto:31:26 +desc_test_options.proto:31:35 + + + > extension[12] > number: +desc_test_options.proto:31:38 +desc_test_options.proto:31:43 + + + > extension: +desc_test_options.proto:34:1 +desc_test_options.proto:37:2 + + + > extension[13]: +desc_test_options.proto:35:9 +desc_test_options.proto:35:53 + + + > extension[13] > extendee: +desc_test_options.proto:34:8 +desc_test_options.proto:34:38 + + + > extension[13] > label: +desc_test_options.proto:35:9 +desc_test_options.proto:35:17 + + + > extension[13] > type_name: +desc_test_options.proto:35:18 +desc_test_options.proto:35:37 + + + > extension[13] > name: +desc_test_options.proto:35:38 +desc_test_options.proto:35:44 + + + > extension[13] > number: +desc_test_options.proto:35:47 +desc_test_options.proto:35:52 + + + > extension[14]: +desc_test_options.proto:36:9 +desc_test_options.proto:36:51 + + + > extension[14] > extendee: +desc_test_options.proto:34:8 +desc_test_options.proto:34:38 + + + > extension[14] > label: +desc_test_options.proto:36:9 +desc_test_options.proto:36:17 + + + > extension[14] > type_name: +desc_test_options.proto:36:18 +desc_test_options.proto:36:34 + + + > extension[14] > name: +desc_test_options.proto:36:35 +desc_test_options.proto:36:42 + + + > extension[14] > number: +desc_test_options.proto:36:45 +desc_test_options.proto:36:50 + + + > extension: +desc_test_options.proto:39:1 +desc_test_options.proto:42:2 + + + > extension[15]: +desc_test_options.proto:40:9 +desc_test_options.proto:40:40 + + + > extension[15] > extendee: +desc_test_options.proto:39:8 +desc_test_options.proto:39:37 + + + > extension[15] > label: +desc_test_options.proto:40:9 +desc_test_options.proto:40:17 + + + > extension[15] > type: +desc_test_options.proto:40:18 +desc_test_options.proto:40:23 + + + > extension[15] > name: +desc_test_options.proto:40:24 +desc_test_options.proto:40:31 + + + > extension[15] > number: +desc_test_options.proto:40:34 +desc_test_options.proto:40:39 + + + > extension[16]: +desc_test_options.proto:41:9 +desc_test_options.proto:41:42 + + + > extension[16] > extendee: +desc_test_options.proto:39:8 +desc_test_options.proto:39:37 + + + > extension[16] > label: +desc_test_options.proto:41:9 +desc_test_options.proto:41:17 + + + > extension[16] > type: +desc_test_options.proto:41:18 +desc_test_options.proto:41:24 + + + > extension[16] > name: +desc_test_options.proto:41:25 +desc_test_options.proto:41:33 + + + > extension[16] > number: +desc_test_options.proto:41:36 +desc_test_options.proto:41:41 + + + > message_type[0]: +desc_test_options.proto:45:1 +desc_test_options.proto:48:2 + Leading comments: + Test message used by custom options + + + + > message_type[0] > name: +desc_test_options.proto:45:9 +desc_test_options.proto:45:28 + + + > message_type[0] > field[0]: +desc_test_options.proto:46:9 +desc_test_options.proto:46:32 + + + > message_type[0] > field[0] > label: +desc_test_options.proto:46:9 +desc_test_options.proto:46:17 + + + > message_type[0] > field[0] > type: +desc_test_options.proto:46:18 +desc_test_options.proto:46:24 + + + > message_type[0] > field[0] > name: +desc_test_options.proto:46:25 +desc_test_options.proto:46:27 + + + > message_type[0] > field[0] > number: +desc_test_options.proto:46:30 +desc_test_options.proto:46:31 + + + > message_type[0] > field[1]: +desc_test_options.proto:47:9 +desc_test_options.proto:47:34 + + + > message_type[0] > field[1] > label: +desc_test_options.proto:47:9 +desc_test_options.proto:47:17 + + + > message_type[0] > field[1] > type: +desc_test_options.proto:47:18 +desc_test_options.proto:47:24 + + + > message_type[0] > field[1] > name: +desc_test_options.proto:47:25 +desc_test_options.proto:47:29 + + + > message_type[0] > field[1] > number: +desc_test_options.proto:47:32 +desc_test_options.proto:47:33 + + + > enum_type[0]: +desc_test_options.proto:51:1 +desc_test_options.proto:53:2 + Leading comments: + Test enum used by custom options + + + + > enum_type[0] > name: +desc_test_options.proto:51:6 +desc_test_options.proto:51:22 + + + > enum_type[0] > value[0]: +desc_test_options.proto:52:9 +desc_test_options.proto:52:19 + + + > enum_type[0] > value[0] > name: +desc_test_options.proto:52:9 +desc_test_options.proto:52:14 + + + > enum_type[0] > value[0] > number: +desc_test_options.proto:52:17 +desc_test_options.proto:52:18 + + + > extension: +desc_test_options.proto:55:1 +desc_test_options.proto:58:2 + + + > extension[17]: +desc_test_options.proto:56:9 +desc_test_options.proto:56:41 + + + > extension[17] > extendee: +desc_test_options.proto:55:8 +desc_test_options.proto:55:45 + + + > extension[17] > label: +desc_test_options.proto:56:9 +desc_test_options.proto:56:17 + + + > extension[17] > type: +desc_test_options.proto:56:18 +desc_test_options.proto:56:24 + + + > extension[17] > name: +desc_test_options.proto:56:25 +desc_test_options.proto:56:32 + + + > extension[17] > number: +desc_test_options.proto:56:35 +desc_test_options.proto:56:40 + + + > extension[18]: +desc_test_options.proto:57:9 +desc_test_options.proto:57:41 + + + > extension[18] > extendee: +desc_test_options.proto:55:8 +desc_test_options.proto:55:45 + + + > extension[18] > label: +desc_test_options.proto:57:9 +desc_test_options.proto:57:17 + + + > extension[18] > type: +desc_test_options.proto:57:18 +desc_test_options.proto:57:23 + + + > extension[18] > name: +desc_test_options.proto:57:24 +desc_test_options.proto:57:32 + + + > extension[18] > number: +desc_test_options.proto:57:35 +desc_test_options.proto:57:40 + + + > extension: +desc_test_options.proto:60:1 +desc_test_options.proto:63:2 + + + > extension[19]: +desc_test_options.proto:61:9 +desc_test_options.proto:61:41 + + + > extension[19] > extendee: +desc_test_options.proto:60:8 +desc_test_options.proto:60:36 + + + > extension[19] > label: +desc_test_options.proto:61:9 +desc_test_options.proto:61:17 + + + > extension[19] > type: +desc_test_options.proto:61:18 +desc_test_options.proto:61:24 + + + > extension[19] > name: +desc_test_options.proto:61:25 +desc_test_options.proto:61:32 + + + > extension[19] > number: +desc_test_options.proto:61:35 +desc_test_options.proto:61:40 + + + > extension[20]: +desc_test_options.proto:62:9 +desc_test_options.proto:62:41 + + + > extension[20] > extendee: +desc_test_options.proto:60:8 +desc_test_options.proto:60:36 + + + > extension[20] > label: +desc_test_options.proto:62:9 +desc_test_options.proto:62:17 + + + > extension[20] > type: +desc_test_options.proto:62:18 +desc_test_options.proto:62:23 + + + > extension[20] > name: +desc_test_options.proto:62:24 +desc_test_options.proto:62:32 + + + > extension[20] > number: +desc_test_options.proto:62:35 +desc_test_options.proto:62:40 diff --git a/vendor/github.com/jhump/protoreflect/desc/sourceinfo/locations.go b/vendor/github.com/jhump/protoreflect/desc/sourceinfo/locations.go new file mode 100644 index 0000000..20d2d7a --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/sourceinfo/locations.go @@ -0,0 +1,207 @@ +package sourceinfo + +import ( + "math" + "sync" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/types/descriptorpb" + + "github.com/jhump/protoreflect/desc/internal" +) + +// NB: forked from google.golang.org/protobuf/internal/filedesc +type sourceLocations struct { + protoreflect.SourceLocations + + orig []*descriptorpb.SourceCodeInfo_Location + // locs is a list of sourceLocations. + // The SourceLocation.Next field does not need to be populated + // as it will be lazily populated upon first need. + locs []protoreflect.SourceLocation + + // fd is the parent file descriptor that these locations are relative to. + // If non-nil, ByDescriptor verifies that the provided descriptor + // is a child of this file descriptor. + fd protoreflect.FileDescriptor + + once sync.Once + byPath map[pathKey]int +} + +func (p *sourceLocations) Len() int { return len(p.orig) } +func (p *sourceLocations) Get(i int) protoreflect.SourceLocation { + return p.lazyInit().locs[i] +} +func (p *sourceLocations) byKey(k pathKey) protoreflect.SourceLocation { + if i, ok := p.lazyInit().byPath[k]; ok { + return p.locs[i] + } + return protoreflect.SourceLocation{} +} +func (p *sourceLocations) ByPath(path protoreflect.SourcePath) protoreflect.SourceLocation { + return p.byKey(newPathKey(path)) +} +func (p *sourceLocations) ByDescriptor(desc protoreflect.Descriptor) protoreflect.SourceLocation { + if p.fd != nil && desc != nil && p.fd != desc.ParentFile() { + return protoreflect.SourceLocation{} // mismatching parent imports + } + var pathArr [16]int32 + path := pathArr[:0] + for { + switch desc.(type) { + case protoreflect.FileDescriptor: + // Reverse the path since it was constructed in reverse. + for i, j := 0, len(path)-1; i < j; i, j = i+1, j-1 { + path[i], path[j] = path[j], path[i] + } + return p.byKey(newPathKey(path)) + case protoreflect.MessageDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(internal.File_messagesTag)) + case protoreflect.MessageDescriptor: + path = append(path, int32(internal.Message_nestedMessagesTag)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.FieldDescriptor: + isExtension := desc.(protoreflect.FieldDescriptor).IsExtension() + path = append(path, int32(desc.Index())) + desc = desc.Parent() + if isExtension { + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(internal.File_extensionsTag)) + case protoreflect.MessageDescriptor: + path = append(path, int32(internal.Message_extensionsTag)) + default: + return protoreflect.SourceLocation{} + } + } else { + switch desc.(type) { + case protoreflect.MessageDescriptor: + path = append(path, int32(internal.Message_fieldsTag)) + default: + return protoreflect.SourceLocation{} + } + } + case protoreflect.OneofDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.MessageDescriptor: + path = append(path, int32(internal.Message_oneOfsTag)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.EnumDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(internal.File_enumsTag)) + case protoreflect.MessageDescriptor: + path = append(path, int32(internal.Message_enumsTag)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.EnumValueDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.EnumDescriptor: + path = append(path, int32(internal.Enum_valuesTag)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.ServiceDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(internal.File_servicesTag)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.MethodDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.ServiceDescriptor: + path = append(path, int32(internal.Service_methodsTag)) + default: + return protoreflect.SourceLocation{} + } + default: + return protoreflect.SourceLocation{} + } + } +} +func (p *sourceLocations) lazyInit() *sourceLocations { + p.once.Do(func() { + if len(p.orig) > 0 { + p.locs = make([]protoreflect.SourceLocation, len(p.orig)) + // Collect all the indexes for a given path. + pathIdxs := make(map[pathKey][]int, len(p.locs)) + for i := range p.orig { + l := asSourceLocation(p.orig[i]) + p.locs[i] = l + k := newPathKey(l.Path) + pathIdxs[k] = append(pathIdxs[k], i) + } + + // Update the next index for all locations. + p.byPath = make(map[pathKey]int, len(p.locs)) + for k, idxs := range pathIdxs { + for i := 0; i < len(idxs)-1; i++ { + p.locs[idxs[i]].Next = idxs[i+1] + } + p.locs[idxs[len(idxs)-1]].Next = 0 + p.byPath[k] = idxs[0] // record the first location for this path + } + } + }) + return p +} + +func asSourceLocation(l *descriptorpb.SourceCodeInfo_Location) protoreflect.SourceLocation { + endLine := l.Span[0] + endCol := l.Span[2] + if len(l.Span) > 3 { + endLine = l.Span[2] + endCol = l.Span[3] + } + return protoreflect.SourceLocation{ + Path: l.Path, + StartLine: int(l.Span[0]), + StartColumn: int(l.Span[1]), + EndLine: int(endLine), + EndColumn: int(endCol), + LeadingDetachedComments: l.LeadingDetachedComments, + LeadingComments: l.GetLeadingComments(), + TrailingComments: l.GetTrailingComments(), + } +} + +// pathKey is a comparable representation of protoreflect.SourcePath. +type pathKey struct { + arr [16]uint8 // first n-1 path segments; last element is the length + str string // used if the path does not fit in arr +} + +func newPathKey(p protoreflect.SourcePath) (k pathKey) { + if len(p) < len(k.arr) { + for i, ps := range p { + if ps < 0 || math.MaxUint8 <= ps { + return pathKey{str: p.String()} + } + k.arr[i] = uint8(ps) + } + k.arr[len(k.arr)-1] = uint8(len(p)) + return k + } + return pathKey{str: p.String()} +} diff --git a/vendor/github.com/jhump/protoreflect/desc/sourceinfo/registry.go b/vendor/github.com/jhump/protoreflect/desc/sourceinfo/registry.go new file mode 100644 index 0000000..de38e0d --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/sourceinfo/registry.go @@ -0,0 +1,269 @@ +// Package sourceinfo provides the ability to register and query source code info +// for file descriptors that are compiled into the binary. This data is registered +// by code generated from the protoc-gen-gosrcinfo plugin. +// +// The standard descriptors bundled into the compiled binary are stripped of source +// code info, to reduce binary size and reduce runtime memory footprint. However, +// the source code info can be very handy and worth the size cost when used with +// gRPC services and the server reflection service. Without source code info, the +// descriptors that a client downloads from the reflection service have no comments. +// But the presence of comments, and the ability to show them to humans, can greatly +// improve the utility of user agents that use the reflection service. +// +// When the protoc-gen-gosrcinfo plugin is used, the desc.Load* methods, which load +// descriptors for compiled-in elements, will automatically include source code +// info, using the data registered with this package. +// +// In order to make the reflection service use this functionality, you will need to +// be using v1.45 or higher of the Go runtime for gRPC (google.golang.org/grpc). The +// following snippet demonstrates how to do this in your server. Do this instead of +// using the reflection.Register function: +// +// refSvr := reflection.NewServer(reflection.ServerOptions{ +// Services: grpcServer, +// DescriptorResolver: sourceinfo.GlobalFiles, +// ExtensionResolver: sourceinfo.GlobalFiles, +// }) +// grpc_reflection_v1alpha.RegisterServerReflectionServer(grpcServer, refSvr) +package sourceinfo + +import ( + "bytes" + "compress/gzip" + "fmt" + "github.com/golang/protobuf/proto" + "io/ioutil" + "sync" + + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/types/descriptorpb" +) + +var ( + // GlobalFiles is a registry of descriptors that include source code info, if the + // files they belong to were processed with protoc-gen-gosrcinfo. + // + // If is mean to serve as a drop-in alternative to protoregistry.GlobalFiles that + // can include source code info in the returned descriptors. + GlobalFiles Resolver = registry{} + + // GlobalTypes is a registry of descriptors that include source code info, if the + // files they belong to were processed with protoc-gen-gosrcinfo. + // + // If is mean to serve as a drop-in alternative to protoregistry.GlobalTypes that + // can include source code info in the returned descriptors. + GlobalTypes TypeResolver = registry{} + + mu sync.RWMutex + sourceInfoByFile = map[string]*descriptorpb.SourceCodeInfo{} + fileDescriptors = map[protoreflect.FileDescriptor]protoreflect.FileDescriptor{} +) + +// Resolver can resolve file names into file descriptors and also provides methods for +// resolving extensions. +type Resolver interface { + protodesc.Resolver + protoregistry.ExtensionTypeResolver + RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) +} + +// NB: These interfaces are far from ideal. Ideally, Resolver would have +// * EITHER been named FileResolver and not included the extension methods. +// * OR also included message methods (i.e. embed protoregistry.MessageTypeResolver). +// Now (since it's been released) we can't add the message methods to the interface as +// that's not a backwards-compatible change. So we have to introduce the new interface +// below, which is now a little confusing since it has some overlap with Resolver. + +// TypeResolver can resolve message names and URLs into message descriptors and also +// provides methods for resolving extensions. +type TypeResolver interface { + protoregistry.MessageTypeResolver + protoregistry.ExtensionTypeResolver + RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) +} + +// RegisterSourceInfo registers the given source code info for the file descriptor +// with the given path/name. +// +// This is automatically used from older generated code if using a previous release of +// the protoc-gen-gosrcinfo plugin. +func RegisterSourceInfo(file string, srcInfo *descriptorpb.SourceCodeInfo) { + mu.Lock() + defer mu.Unlock() + sourceInfoByFile[file] = srcInfo +} + +// RegisterEncodedSourceInfo registers the given source code info, which is a serialized +// and gzipped form of a google.protobuf.SourceCodeInfo message. +// +// This is automatically used from generated code if using the protoc-gen-gosrcinfo +// plugin. +func RegisterEncodedSourceInfo(file string, data []byte) error { + zipReader, err := gzip.NewReader(bytes.NewReader(data)) + if err != nil { + return err + } + defer func() { + _ = zipReader.Close() + }() + unzipped, err := ioutil.ReadAll(zipReader) + if err != nil { + return err + } + var srcInfo descriptorpb.SourceCodeInfo + if err := proto.Unmarshal(unzipped, &srcInfo); err != nil { + return err + } + RegisterSourceInfo(file, &srcInfo) + return nil +} + +// SourceInfoForFile queries for any registered source code info for the file +// descriptor with the given path/name. It returns nil if no source code info +// was registered. +func SourceInfoForFile(file string) *descriptorpb.SourceCodeInfo { + mu.RLock() + defer mu.RUnlock() + return sourceInfoByFile[file] +} + +func canWrap(d protoreflect.Descriptor) bool { + srcInfo := SourceInfoForFile(d.ParentFile().Path()) + return len(srcInfo.GetLocation()) > 0 +} + +func getFile(fd protoreflect.FileDescriptor) protoreflect.FileDescriptor { + if fd == nil { + return nil + } + + mu.RLock() + result := fileDescriptors[fd] + mu.RUnlock() + + if result != nil { + return result + } + + mu.Lock() + defer mu.Unlock() + // double-check, in case it was added to map while upgrading lock + result = fileDescriptors[fd] + if result != nil { + return result + } + + srcInfo := sourceInfoByFile[fd.Path()] + if len(srcInfo.GetLocation()) > 0 { + result = &fileDescriptor{ + FileDescriptor: fd, + locs: &sourceLocations{ + orig: srcInfo.Location, + }, + } + } else { + // nothing to do; don't bother wrapping + result = fd + } + fileDescriptors[fd] = result + return result +} + +type registry struct{} + +var _ protodesc.Resolver = ®istry{} + +func (r registry) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + fd, err := protoregistry.GlobalFiles.FindFileByPath(path) + if err != nil { + return nil, err + } + return getFile(fd), nil +} + +func (r registry) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + d, err := protoregistry.GlobalFiles.FindDescriptorByName(name) + if !canWrap(d) { + return d, nil + } + if err != nil { + return nil, err + } + switch d := d.(type) { + case protoreflect.FileDescriptor: + return getFile(d), nil + case protoreflect.MessageDescriptor: + return messageDescriptor{d}, nil + case protoreflect.ExtensionTypeDescriptor: + return extensionDescriptor{d}, nil + case protoreflect.FieldDescriptor: + return fieldDescriptor{d}, nil + case protoreflect.OneofDescriptor: + return oneOfDescriptor{d}, nil + case protoreflect.EnumDescriptor: + return enumDescriptor{d}, nil + case protoreflect.EnumValueDescriptor: + return enumValueDescriptor{d}, nil + case protoreflect.ServiceDescriptor: + return serviceDescriptor{d}, nil + case protoreflect.MethodDescriptor: + return methodDescriptor{d}, nil + default: + return nil, fmt.Errorf("unrecognized descriptor type: %T", d) + } +} + +func (r registry) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + mt, err := protoregistry.GlobalTypes.FindMessageByName(message) + if err != nil { + return nil, err + } + if !canWrap(mt.Descriptor()) { + return mt, nil + } + return messageType{mt}, nil +} + +func (r registry) FindMessageByURL(url string) (protoreflect.MessageType, error) { + mt, err := protoregistry.GlobalTypes.FindMessageByURL(url) + if err != nil { + return nil, err + } + if !canWrap(mt.Descriptor()) { + return mt, nil + } + return messageType{mt}, nil +} + +func (r registry) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + xt, err := protoregistry.GlobalTypes.FindExtensionByName(field) + if err != nil { + return nil, err + } + if !canWrap(xt.TypeDescriptor()) { + return xt, nil + } + return extensionType{xt}, nil +} + +func (r registry) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + xt, err := protoregistry.GlobalTypes.FindExtensionByNumber(message, field) + if err != nil { + return nil, err + } + if !canWrap(xt.TypeDescriptor()) { + return xt, nil + } + return extensionType{xt}, nil +} + +func (r registry) RangeExtensionsByMessage(message protoreflect.FullName, fn func(protoreflect.ExtensionType) bool) { + protoregistry.GlobalTypes.RangeExtensionsByMessage(message, func(xt protoreflect.ExtensionType) bool { + if canWrap(xt.TypeDescriptor()) { + xt = extensionType{xt} + } + return fn(xt) + }) +} diff --git a/vendor/github.com/jhump/protoreflect/desc/sourceinfo/wrappers.go b/vendor/github.com/jhump/protoreflect/desc/sourceinfo/wrappers.go new file mode 100644 index 0000000..8cbb5bb --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/sourceinfo/wrappers.go @@ -0,0 +1,629 @@ +package sourceinfo + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +// These are wrappers around the various interfaces in the +// google.golang.org/protobuf/reflect/protoreflect that all +// make sure to return a FileDescriptor that includes source +// code info. + +type fileDescriptor struct { + protoreflect.FileDescriptor + locs protoreflect.SourceLocations +} + +func (f fileDescriptor) ParentFile() protoreflect.FileDescriptor { + return f +} + +func (f fileDescriptor) Parent() protoreflect.Descriptor { + return nil +} + +func (f fileDescriptor) Imports() protoreflect.FileImports { + return imports{f.FileDescriptor.Imports()} +} + +func (f fileDescriptor) Messages() protoreflect.MessageDescriptors { + return messages{f.FileDescriptor.Messages()} +} + +func (f fileDescriptor) Enums() protoreflect.EnumDescriptors { + return enums{f.FileDescriptor.Enums()} +} + +func (f fileDescriptor) Extensions() protoreflect.ExtensionDescriptors { + return extensions{f.FileDescriptor.Extensions()} +} + +func (f fileDescriptor) Services() protoreflect.ServiceDescriptors { + return services{f.FileDescriptor.Services()} +} + +func (f fileDescriptor) SourceLocations() protoreflect.SourceLocations { + return f.locs +} + +type imports struct { + protoreflect.FileImports +} + +func (im imports) Get(i int) protoreflect.FileImport { + fi := im.FileImports.Get(i) + return protoreflect.FileImport{ + FileDescriptor: getFile(fi.FileDescriptor), + IsPublic: fi.IsPublic, + IsWeak: fi.IsWeak, + } +} + +type messages struct { + protoreflect.MessageDescriptors +} + +func (m messages) Get(i int) protoreflect.MessageDescriptor { + return messageDescriptor{m.MessageDescriptors.Get(i)} +} + +func (m messages) ByName(n protoreflect.Name) protoreflect.MessageDescriptor { + return messageDescriptor{m.MessageDescriptors.ByName(n)} +} + +type enums struct { + protoreflect.EnumDescriptors +} + +func (e enums) Get(i int) protoreflect.EnumDescriptor { + return enumDescriptor{e.EnumDescriptors.Get(i)} +} + +func (e enums) ByName(n protoreflect.Name) protoreflect.EnumDescriptor { + return enumDescriptor{e.EnumDescriptors.ByName(n)} +} + +type extensions struct { + protoreflect.ExtensionDescriptors +} + +func (e extensions) Get(i int) protoreflect.ExtensionDescriptor { + d := e.ExtensionDescriptors.Get(i) + if ed, ok := d.(protoreflect.ExtensionTypeDescriptor); ok { + return extensionDescriptor{ed} + } + return fieldDescriptor{d} +} + +func (e extensions) ByName(n protoreflect.Name) protoreflect.ExtensionDescriptor { + d := e.ExtensionDescriptors.ByName(n) + if ed, ok := d.(protoreflect.ExtensionTypeDescriptor); ok { + return extensionDescriptor{ed} + } + return fieldDescriptor{d} +} + +type services struct { + protoreflect.ServiceDescriptors +} + +func (s services) Get(i int) protoreflect.ServiceDescriptor { + return serviceDescriptor{s.ServiceDescriptors.Get(i)} +} + +func (s services) ByName(n protoreflect.Name) protoreflect.ServiceDescriptor { + return serviceDescriptor{s.ServiceDescriptors.ByName(n)} +} + +type messageDescriptor struct { + protoreflect.MessageDescriptor +} + +func (m messageDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(m.MessageDescriptor.ParentFile()) +} + +func (m messageDescriptor) Parent() protoreflect.Descriptor { + d := m.MessageDescriptor.Parent() + switch d := d.(type) { + case protoreflect.MessageDescriptor: + return messageDescriptor{d} + case protoreflect.FileDescriptor: + return getFile(d) + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (m messageDescriptor) Fields() protoreflect.FieldDescriptors { + return fields{m.MessageDescriptor.Fields()} +} + +func (m messageDescriptor) Oneofs() protoreflect.OneofDescriptors { + return oneOfs{m.MessageDescriptor.Oneofs()} +} + +func (m messageDescriptor) Enums() protoreflect.EnumDescriptors { + return enums{m.MessageDescriptor.Enums()} +} + +func (m messageDescriptor) Messages() protoreflect.MessageDescriptors { + return messages{m.MessageDescriptor.Messages()} +} + +func (m messageDescriptor) Extensions() protoreflect.ExtensionDescriptors { + return extensions{m.MessageDescriptor.Extensions()} +} + +type fields struct { + protoreflect.FieldDescriptors +} + +func (f fields) Get(i int) protoreflect.FieldDescriptor { + return fieldDescriptor{f.FieldDescriptors.Get(i)} +} + +func (f fields) ByName(n protoreflect.Name) protoreflect.FieldDescriptor { + return fieldDescriptor{f.FieldDescriptors.ByName(n)} +} + +func (f fields) ByJSONName(n string) protoreflect.FieldDescriptor { + return fieldDescriptor{f.FieldDescriptors.ByJSONName(n)} +} + +func (f fields) ByTextName(n string) protoreflect.FieldDescriptor { + return fieldDescriptor{f.FieldDescriptors.ByTextName(n)} +} + +func (f fields) ByNumber(n protoreflect.FieldNumber) protoreflect.FieldDescriptor { + return fieldDescriptor{f.FieldDescriptors.ByNumber(n)} +} + +type oneOfs struct { + protoreflect.OneofDescriptors +} + +func (o oneOfs) Get(i int) protoreflect.OneofDescriptor { + return oneOfDescriptor{o.OneofDescriptors.Get(i)} +} + +func (o oneOfs) ByName(n protoreflect.Name) protoreflect.OneofDescriptor { + return oneOfDescriptor{o.OneofDescriptors.ByName(n)} +} + +type fieldDescriptor struct { + protoreflect.FieldDescriptor +} + +func (f fieldDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(f.FieldDescriptor.ParentFile()) +} + +func (f fieldDescriptor) Parent() protoreflect.Descriptor { + d := f.FieldDescriptor.Parent() + switch d := d.(type) { + case protoreflect.MessageDescriptor: + return messageDescriptor{d} + case protoreflect.FileDescriptor: + return getFile(d) + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (f fieldDescriptor) MapKey() protoreflect.FieldDescriptor { + fd := f.FieldDescriptor.MapKey() + if fd == nil { + return nil + } + return fieldDescriptor{fd} +} + +func (f fieldDescriptor) MapValue() protoreflect.FieldDescriptor { + fd := f.FieldDescriptor.MapValue() + if fd == nil { + return nil + } + return fieldDescriptor{fd} +} + +func (f fieldDescriptor) DefaultEnumValue() protoreflect.EnumValueDescriptor { + ed := f.FieldDescriptor.DefaultEnumValue() + if ed == nil { + return nil + } + return enumValueDescriptor{ed} +} + +func (f fieldDescriptor) ContainingOneof() protoreflect.OneofDescriptor { + od := f.FieldDescriptor.ContainingOneof() + if od == nil { + return nil + } + return oneOfDescriptor{od} +} + +func (f fieldDescriptor) ContainingMessage() protoreflect.MessageDescriptor { + return messageDescriptor{f.FieldDescriptor.ContainingMessage()} +} + +func (f fieldDescriptor) Enum() protoreflect.EnumDescriptor { + ed := f.FieldDescriptor.Enum() + if ed == nil { + return nil + } + return enumDescriptor{ed} +} + +func (f fieldDescriptor) Message() protoreflect.MessageDescriptor { + md := f.FieldDescriptor.Message() + if md == nil { + return nil + } + return messageDescriptor{md} +} + +type oneOfDescriptor struct { + protoreflect.OneofDescriptor +} + +func (o oneOfDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(o.OneofDescriptor.ParentFile()) +} + +func (o oneOfDescriptor) Parent() protoreflect.Descriptor { + d := o.OneofDescriptor.Parent() + switch d := d.(type) { + case protoreflect.MessageDescriptor: + return messageDescriptor{d} + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (o oneOfDescriptor) Fields() protoreflect.FieldDescriptors { + return fields{o.OneofDescriptor.Fields()} +} + +type enumDescriptor struct { + protoreflect.EnumDescriptor +} + +func (e enumDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(e.EnumDescriptor.ParentFile()) +} + +func (e enumDescriptor) Parent() protoreflect.Descriptor { + d := e.EnumDescriptor.Parent() + switch d := d.(type) { + case protoreflect.MessageDescriptor: + return messageDescriptor{d} + case protoreflect.FileDescriptor: + return getFile(d) + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (e enumDescriptor) Values() protoreflect.EnumValueDescriptors { + return enumValues{e.EnumDescriptor.Values()} +} + +type enumValues struct { + protoreflect.EnumValueDescriptors +} + +func (e enumValues) Get(i int) protoreflect.EnumValueDescriptor { + return enumValueDescriptor{e.EnumValueDescriptors.Get(i)} +} + +func (e enumValues) ByName(n protoreflect.Name) protoreflect.EnumValueDescriptor { + return enumValueDescriptor{e.EnumValueDescriptors.ByName(n)} +} + +func (e enumValues) ByNumber(n protoreflect.EnumNumber) protoreflect.EnumValueDescriptor { + return enumValueDescriptor{e.EnumValueDescriptors.ByNumber(n)} +} + +type enumValueDescriptor struct { + protoreflect.EnumValueDescriptor +} + +func (e enumValueDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(e.EnumValueDescriptor.ParentFile()) +} + +func (e enumValueDescriptor) Parent() protoreflect.Descriptor { + d := e.EnumValueDescriptor.Parent() + switch d := d.(type) { + case protoreflect.EnumDescriptor: + return enumDescriptor{d} + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +type extensionDescriptor struct { + protoreflect.ExtensionTypeDescriptor +} + +func (e extensionDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(e.ExtensionTypeDescriptor.ParentFile()) +} + +func (e extensionDescriptor) Parent() protoreflect.Descriptor { + d := e.ExtensionTypeDescriptor.Parent() + switch d := d.(type) { + case protoreflect.MessageDescriptor: + return messageDescriptor{d} + case protoreflect.FileDescriptor: + return getFile(d) + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (e extensionDescriptor) MapKey() protoreflect.FieldDescriptor { + fd := e.ExtensionTypeDescriptor.MapKey() + if fd == nil { + return nil + } + return fieldDescriptor{fd} +} + +func (e extensionDescriptor) MapValue() protoreflect.FieldDescriptor { + fd := e.ExtensionTypeDescriptor.MapValue() + if fd == nil { + return nil + } + return fieldDescriptor{fd} +} + +func (e extensionDescriptor) DefaultEnumValue() protoreflect.EnumValueDescriptor { + ed := e.ExtensionTypeDescriptor.DefaultEnumValue() + if ed == nil { + return nil + } + return enumValueDescriptor{ed} +} + +func (e extensionDescriptor) ContainingOneof() protoreflect.OneofDescriptor { + od := e.ExtensionTypeDescriptor.ContainingOneof() + if od == nil { + return nil + } + return oneOfDescriptor{od} +} + +func (e extensionDescriptor) ContainingMessage() protoreflect.MessageDescriptor { + return messageDescriptor{e.ExtensionTypeDescriptor.ContainingMessage()} +} + +func (e extensionDescriptor) Enum() protoreflect.EnumDescriptor { + ed := e.ExtensionTypeDescriptor.Enum() + if ed == nil { + return nil + } + return enumDescriptor{ed} +} + +func (e extensionDescriptor) Message() protoreflect.MessageDescriptor { + md := e.ExtensionTypeDescriptor.Message() + if md == nil { + return nil + } + return messageDescriptor{md} +} + +func (e extensionDescriptor) Descriptor() protoreflect.ExtensionDescriptor { + return e +} + +var _ protoreflect.ExtensionTypeDescriptor = extensionDescriptor{} + +type serviceDescriptor struct { + protoreflect.ServiceDescriptor +} + +func (s serviceDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(s.ServiceDescriptor.ParentFile()) +} + +func (s serviceDescriptor) Parent() protoreflect.Descriptor { + d := s.ServiceDescriptor.Parent() + switch d := d.(type) { + case protoreflect.FileDescriptor: + return getFile(d) + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (s serviceDescriptor) Methods() protoreflect.MethodDescriptors { + return methods{s.ServiceDescriptor.Methods()} +} + +type methods struct { + protoreflect.MethodDescriptors +} + +func (m methods) Get(i int) protoreflect.MethodDescriptor { + return methodDescriptor{m.MethodDescriptors.Get(i)} +} + +func (m methods) ByName(n protoreflect.Name) protoreflect.MethodDescriptor { + return methodDescriptor{m.MethodDescriptors.ByName(n)} +} + +type methodDescriptor struct { + protoreflect.MethodDescriptor +} + +func (m methodDescriptor) ParentFile() protoreflect.FileDescriptor { + return getFile(m.MethodDescriptor.ParentFile()) +} + +func (m methodDescriptor) Parent() protoreflect.Descriptor { + d := m.MethodDescriptor.Parent() + switch d := d.(type) { + case protoreflect.ServiceDescriptor: + return serviceDescriptor{d} + case nil: + return nil + default: + panic(fmt.Sprintf("unexpected descriptor type %T", d)) + } +} + +func (m methodDescriptor) Input() protoreflect.MessageDescriptor { + return messageDescriptor{m.MethodDescriptor.Input()} +} + +func (m methodDescriptor) Output() protoreflect.MessageDescriptor { + return messageDescriptor{m.MethodDescriptor.Output()} +} + +type extensionType struct { + protoreflect.ExtensionType +} + +func (e extensionType) TypeDescriptor() protoreflect.ExtensionTypeDescriptor { + return extensionDescriptor{e.ExtensionType.TypeDescriptor()} +} + +type messageType struct { + protoreflect.MessageType +} + +func (m messageType) Descriptor() protoreflect.MessageDescriptor { + return messageDescriptor{m.MessageType.Descriptor()} +} + +// WrapFile wraps the given file descriptor so that it will include source +// code info that was registered with this package if the given file was +// processed with protoc-gen-gosrcinfo. Returns fd without wrapping if fd +// already contains source code info. +func WrapFile(fd protoreflect.FileDescriptor) protoreflect.FileDescriptor { + if wrapper, ok := fd.(fileDescriptor); ok { + // already wrapped + return wrapper + } + if fd.SourceLocations().Len() > 0 { + // no need to wrap since it includes source info already + return fd + } + return getFile(fd) +} + +// WrapMessage wraps the given message descriptor so that it will include source +// code info that was registered with this package if the file it is defined in +// was processed with protoc-gen-gosrcinfo. Returns md without wrapping if md's +// parent file already contains source code info. +func WrapMessage(md protoreflect.MessageDescriptor) protoreflect.MessageDescriptor { + if wrapper, ok := md.(messageDescriptor); ok { + // already wrapped + return wrapper + } + if md.ParentFile().SourceLocations().Len() > 0 { + // no need to wrap since it includes source info already + return md + } + if !canWrap(md) { + return md + } + return messageDescriptor{md} +} + +// WrapEnum wraps the given enum descriptor so that it will include source +// code info that was registered with this package if the file it is defined in +// was processed with protoc-gen-gosrcinfo. Returns ed without wrapping if ed's +// parent file already contains source code info. +func WrapEnum(ed protoreflect.EnumDescriptor) protoreflect.EnumDescriptor { + if wrapper, ok := ed.(enumDescriptor); ok { + // already wrapped + return wrapper + } + if ed.ParentFile().SourceLocations().Len() > 0 { + // no need to wrap since it includes source info already + return ed + } + if !canWrap(ed) { + return ed + } + return enumDescriptor{ed} +} + +// WrapService wraps the given service descriptor so that it will include source +// code info that was registered with this package if the file it is defined in +// was processed with protoc-gen-gosrcinfo. Returns sd without wrapping if sd's +// parent file already contains source code info. +func WrapService(sd protoreflect.ServiceDescriptor) protoreflect.ServiceDescriptor { + if wrapper, ok := sd.(serviceDescriptor); ok { + // already wrapped + return wrapper + } + if sd.ParentFile().SourceLocations().Len() > 0 { + // no need to wrap since it includes source info already + return sd + } + if !canWrap(sd) { + return sd + } + return serviceDescriptor{sd} +} + +// WrapExtensionType wraps the given extension type so that its associated +// descriptor will include source code info that was registered with this package +// if the file it is defined in was processed with protoc-gen-gosrcinfo. Returns +// xt without wrapping if the parent file of xt's descriptor already contains +// source code info. +func WrapExtensionType(xt protoreflect.ExtensionType) protoreflect.ExtensionType { + if wrapper, ok := xt.(extensionType); ok { + // already wrapped + return wrapper + } + if xt.TypeDescriptor().ParentFile().SourceLocations().Len() > 0 { + // no need to wrap since it includes source info already + return xt + } + if !canWrap(xt.TypeDescriptor()) { + return xt + } + return extensionType{xt} +} + +// WrapMessageType wraps the given message type so that its associated +// descriptor will include source code info that was registered with this package +// if the file it is defined in was processed with protoc-gen-gosrcinfo. Returns +// mt without wrapping if the parent file of mt's descriptor already contains +// source code info. +func WrapMessageType(mt protoreflect.MessageType) protoreflect.MessageType { + if wrapper, ok := mt.(messageType); ok { + // already wrapped + return wrapper + } + if mt.Descriptor().ParentFile().SourceLocations().Len() > 0 { + // no need to wrap since it includes source info already + return mt + } + if !canWrap(mt.Descriptor()) { + return mt + } + return messageType{mt} +} diff --git a/vendor/github.com/jhump/protoreflect/desc/wrap.go b/vendor/github.com/jhump/protoreflect/desc/wrap.go new file mode 100644 index 0000000..82610a4 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/desc/wrap.go @@ -0,0 +1,208 @@ +package desc + +import ( + "fmt" + + "github.com/bufbuild/protocompile/protoutil" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// DescriptorWrapper wraps a protoreflect.Descriptor. All of the Descriptor +// implementations in this package implement this interface. This can be +// used to recover the underlying descriptor. Each descriptor type in this +// package also provides a strongly-typed form of this method, such as the +// following method for *FileDescriptor: +// +// UnwrapFile() protoreflect.FileDescriptor +type DescriptorWrapper interface { + Unwrap() protoreflect.Descriptor +} + +// WrapDescriptor wraps the given descriptor, returning a desc.Descriptor +// value that represents the same element. +func WrapDescriptor(d protoreflect.Descriptor) (Descriptor, error) { + return wrapDescriptor(d, noopCache{}) +} + +func wrapDescriptor(d protoreflect.Descriptor, cache descriptorCache) (Descriptor, error) { + switch d := d.(type) { + case protoreflect.FileDescriptor: + return wrapFile(d, cache) + case protoreflect.MessageDescriptor: + return wrapMessage(d, cache) + case protoreflect.FieldDescriptor: + return wrapField(d, cache) + case protoreflect.OneofDescriptor: + return wrapOneOf(d, cache) + case protoreflect.EnumDescriptor: + return wrapEnum(d, cache) + case protoreflect.EnumValueDescriptor: + return wrapEnumValue(d, cache) + case protoreflect.ServiceDescriptor: + return wrapService(d, cache) + case protoreflect.MethodDescriptor: + return wrapMethod(d, cache) + default: + return nil, fmt.Errorf("unknown descriptor type: %T", d) + } +} + +// WrapFiles wraps the given file descriptors, returning a slice of *desc.FileDescriptor +// values that represent the same files. +func WrapFiles(d []protoreflect.FileDescriptor) ([]*FileDescriptor, error) { + cache := mapCache{} + results := make([]*FileDescriptor, len(d)) + for i := range d { + var err error + results[i], err = wrapFile(d[i], cache) + if err != nil { + return nil, err + } + } + return results, nil +} + +// WrapFile wraps the given file descriptor, returning a *desc.FileDescriptor +// value that represents the same file. +func WrapFile(d protoreflect.FileDescriptor) (*FileDescriptor, error) { + return wrapFile(d, noopCache{}) +} + +func wrapFile(d protoreflect.FileDescriptor, cache descriptorCache) (*FileDescriptor, error) { + fdp := protoutil.ProtoFromFileDescriptor(d) + return convertFile(d, fdp, cache) +} + +// WrapMessage wraps the given message descriptor, returning a *desc.MessageDescriptor +// value that represents the same message. +func WrapMessage(d protoreflect.MessageDescriptor) (*MessageDescriptor, error) { + return wrapMessage(d, noopCache{}) +} + +func wrapMessage(d protoreflect.MessageDescriptor, cache descriptorCache) (*MessageDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + switch p := parent.(type) { + case *FileDescriptor: + return p.messages[d.Index()], nil + case *MessageDescriptor: + return p.nested[d.Index()], nil + default: + return nil, fmt.Errorf("message has unexpected parent type: %T", parent) + } +} + +// WrapField wraps the given field descriptor, returning a *desc.FieldDescriptor +// value that represents the same field. +func WrapField(d protoreflect.FieldDescriptor) (*FieldDescriptor, error) { + return wrapField(d, noopCache{}) +} + +func wrapField(d protoreflect.FieldDescriptor, cache descriptorCache) (*FieldDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + switch p := parent.(type) { + case *FileDescriptor: + return p.extensions[d.Index()], nil + case *MessageDescriptor: + if d.IsExtension() { + return p.extensions[d.Index()], nil + } + return p.fields[d.Index()], nil + default: + return nil, fmt.Errorf("field has unexpected parent type: %T", parent) + } +} + +// WrapOneOf wraps the given oneof descriptor, returning a *desc.OneOfDescriptor +// value that represents the same oneof. +func WrapOneOf(d protoreflect.OneofDescriptor) (*OneOfDescriptor, error) { + return wrapOneOf(d, noopCache{}) +} + +func wrapOneOf(d protoreflect.OneofDescriptor, cache descriptorCache) (*OneOfDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + if p, ok := parent.(*MessageDescriptor); ok { + return p.oneOfs[d.Index()], nil + } + return nil, fmt.Errorf("oneof has unexpected parent type: %T", parent) +} + +// WrapEnum wraps the given enum descriptor, returning a *desc.EnumDescriptor +// value that represents the same enum. +func WrapEnum(d protoreflect.EnumDescriptor) (*EnumDescriptor, error) { + return wrapEnum(d, noopCache{}) +} + +func wrapEnum(d protoreflect.EnumDescriptor, cache descriptorCache) (*EnumDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + switch p := parent.(type) { + case *FileDescriptor: + return p.enums[d.Index()], nil + case *MessageDescriptor: + return p.enums[d.Index()], nil + default: + return nil, fmt.Errorf("enum has unexpected parent type: %T", parent) + } +} + +// WrapEnumValue wraps the given enum value descriptor, returning a *desc.EnumValueDescriptor +// value that represents the same enum value. +func WrapEnumValue(d protoreflect.EnumValueDescriptor) (*EnumValueDescriptor, error) { + return wrapEnumValue(d, noopCache{}) +} + +func wrapEnumValue(d protoreflect.EnumValueDescriptor, cache descriptorCache) (*EnumValueDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + if p, ok := parent.(*EnumDescriptor); ok { + return p.values[d.Index()], nil + } + return nil, fmt.Errorf("enum value has unexpected parent type: %T", parent) +} + +// WrapService wraps the given service descriptor, returning a *desc.ServiceDescriptor +// value that represents the same service. +func WrapService(d protoreflect.ServiceDescriptor) (*ServiceDescriptor, error) { + return wrapService(d, noopCache{}) +} + +func wrapService(d protoreflect.ServiceDescriptor, cache descriptorCache) (*ServiceDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + if p, ok := parent.(*FileDescriptor); ok { + return p.services[d.Index()], nil + } + return nil, fmt.Errorf("service has unexpected parent type: %T", parent) +} + +// WrapMethod wraps the given method descriptor, returning a *desc.MethodDescriptor +// value that represents the same method. +func WrapMethod(d protoreflect.MethodDescriptor) (*MethodDescriptor, error) { + return wrapMethod(d, noopCache{}) +} + +func wrapMethod(d protoreflect.MethodDescriptor, cache descriptorCache) (*MethodDescriptor, error) { + parent, err := wrapDescriptor(d.Parent(), cache) + if err != nil { + return nil, err + } + if p, ok := parent.(*ServiceDescriptor); ok { + return p.methods[d.Index()], nil + } + return nil, fmt.Errorf("method has unexpected parent type: %T", parent) +} diff --git a/vendor/github.com/jhump/protoreflect/internal/standard_files.go b/vendor/github.com/jhump/protoreflect/internal/standard_files.go new file mode 100644 index 0000000..777c3a4 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/internal/standard_files.go @@ -0,0 +1,127 @@ +// Package internal contains some code that should not be exported but needs to +// be shared across more than one of the protoreflect sub-packages. +package internal + +import ( + "bytes" + "compress/gzip" + "fmt" + "io/ioutil" + + "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/types/descriptorpb" +) + +// TODO: replace this alias configuration with desc.RegisterImportPath? + +// StdFileAliases are the standard protos included with protoc, but older versions of +// their respective packages registered them using incorrect paths. +var StdFileAliases = map[string]string{ + // Files for the github.com/golang/protobuf/ptypes package at one point were + // registered using the path where the proto files are mirrored in GOPATH, + // inside the golang/protobuf repo. + // (Fixed as of https://github.com/golang/protobuf/pull/412) + "google/protobuf/any.proto": "github.com/golang/protobuf/ptypes/any/any.proto", + "google/protobuf/duration.proto": "github.com/golang/protobuf/ptypes/duration/duration.proto", + "google/protobuf/empty.proto": "github.com/golang/protobuf/ptypes/empty/empty.proto", + "google/protobuf/struct.proto": "github.com/golang/protobuf/ptypes/struct/struct.proto", + "google/protobuf/timestamp.proto": "github.com/golang/protobuf/ptypes/timestamp/timestamp.proto", + "google/protobuf/wrappers.proto": "github.com/golang/protobuf/ptypes/wrappers/wrappers.proto", + // Files for the google.golang.org/genproto/protobuf package at one point + // were registered with an anomalous "src/" prefix. + // (Fixed as of https://github.com/google/go-genproto/pull/31) + "google/protobuf/api.proto": "src/google/protobuf/api.proto", + "google/protobuf/field_mask.proto": "src/google/protobuf/field_mask.proto", + "google/protobuf/source_context.proto": "src/google/protobuf/source_context.proto", + "google/protobuf/type.proto": "src/google/protobuf/type.proto", + + // Other standard files (descriptor.proto and compiler/plugin.proto) are + // registered correctly, so we don't need rules for them here. +} + +func init() { + // We provide aliasing in both directions, to support files with the + // proper import path linked against older versions of the generated + // files AND files that used the aliased import path but linked against + // newer versions of the generated files (which register with the + // correct path). + + // Get all files defined above + keys := make([]string, 0, len(StdFileAliases)) + for k := range StdFileAliases { + keys = append(keys, k) + } + // And add inverse mappings + for _, k := range keys { + alias := StdFileAliases[k] + StdFileAliases[alias] = k + } +} + +type ErrNoSuchFile string + +func (e ErrNoSuchFile) Error() string { + return fmt.Sprintf("no such file: %q", string(e)) +} + +// LoadFileDescriptor loads a registered descriptor and decodes it. If the given +// name cannot be loaded but is a known standard name, an alias will be tried, +// so the standard files can be loaded even if linked against older "known bad" +// versions of packages. +func LoadFileDescriptor(file string) (*descriptorpb.FileDescriptorProto, error) { + fdb := proto.FileDescriptor(file) + aliased := false + if fdb == nil { + var ok bool + alias, ok := StdFileAliases[file] + if ok { + aliased = true + if fdb = proto.FileDescriptor(alias); fdb == nil { + return nil, ErrNoSuchFile(file) + } + } else { + return nil, ErrNoSuchFile(file) + } + } + + fd, err := DecodeFileDescriptor(file, fdb) + if err != nil { + return nil, err + } + + if aliased { + // the file descriptor will have the alias used to load it, but + // we need it to have the specified name in order to link it + fd.Name = proto.String(file) + } + + return fd, nil +} + +// DecodeFileDescriptor decodes the bytes of a registered file descriptor. +// Registered file descriptors are first "proto encoded" (e.g. binary format +// for the descriptor protos) and then gzipped. So this function gunzips and +// then unmarshals into a descriptor proto. +func DecodeFileDescriptor(element string, fdb []byte) (*descriptorpb.FileDescriptorProto, error) { + raw, err := decompress(fdb) + if err != nil { + return nil, fmt.Errorf("failed to decompress %q descriptor: %v", element, err) + } + fd := descriptorpb.FileDescriptorProto{} + if err := proto.Unmarshal(raw, &fd); err != nil { + return nil, fmt.Errorf("bad descriptor for %q: %v", element, err) + } + return &fd, nil +} + +func decompress(b []byte) ([]byte, error) { + r, err := gzip.NewReader(bytes.NewReader(b)) + if err != nil { + return nil, fmt.Errorf("bad gzipped descriptor: %v", err) + } + out, err := ioutil.ReadAll(r) + if err != nil { + return nil, fmt.Errorf("bad gzipped descriptor: %v", err) + } + return out, nil +} diff --git a/vendor/github.com/jhump/protoreflect/internal/unrecognized.go b/vendor/github.com/jhump/protoreflect/internal/unrecognized.go new file mode 100644 index 0000000..25376c7 --- /dev/null +++ b/vendor/github.com/jhump/protoreflect/internal/unrecognized.go @@ -0,0 +1,20 @@ +package internal + +import ( + "github.com/golang/protobuf/proto" +) + +// GetUnrecognized fetches the bytes of unrecognized fields for the given message. +func GetUnrecognized(msg proto.Message) []byte { + return proto.MessageReflect(msg).GetUnknown() +} + +// SetUnrecognized adds the given bytes to the unrecognized fields for the given message. +func SetUnrecognized(msg proto.Message, data []byte) { + refl := proto.MessageReflect(msg) + existing := refl.GetUnknown() + if len(existing) > 0 { + data = append(existing, data...) + } + refl.SetUnknown(data) +} diff --git a/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile new file mode 100644 index 0000000..81be214 --- /dev/null +++ b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile @@ -0,0 +1,7 @@ +all: + +cover: + go test -cover -v -coverprofile=cover.dat ./... + go tool cover -func cover.dat + +.PHONY: cover diff --git a/vendor/github.com/prometheus/client_model/go/metrics.pb.go b/vendor/github.com/prometheus/client_model/go/metrics.pb.go index b065f86..2f4930d 100644 --- a/vendor/github.com/prometheus/client_model/go/metrics.pb.go +++ b/vendor/github.com/prometheus/client_model/go/metrics.pb.go @@ -1,34 +1,26 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: metrics.proto -// DO NOT EDIT! - -/* -Package io_prometheus_client is a generated protocol buffer package. - -It is generated from these files: - metrics.proto - -It has these top-level messages: - LabelPair - Gauge - Counter - Quantile - Summary - Untyped - Histogram - Bucket - Metric - MetricFamily -*/ + package io_prometheus_client -import proto "github.com/golang/protobuf/proto" -import math "math" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal +var _ = fmt.Errorf var _ = math.Inf +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + type MetricType int32 const ( @@ -46,6 +38,7 @@ var MetricType_name = map[int32]string{ 3: "UNTYPED", 4: "HISTOGRAM", } + var MetricType_value = map[string]int32{ "COUNTER": 0, "GAUGE": 1, @@ -59,9 +52,11 @@ func (x MetricType) Enum() *MetricType { *p = x return p } + func (x MetricType) String() string { return proto.EnumName(MetricType_name, int32(x)) } + func (x *MetricType) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType") if err != nil { @@ -71,15 +66,42 @@ func (x *MetricType) UnmarshalJSON(data []byte) error { return nil } +func (MetricType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{0} +} + type LabelPair struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *LabelPair) Reset() { *m = LabelPair{} } func (m *LabelPair) String() string { return proto.CompactTextString(m) } func (*LabelPair) ProtoMessage() {} +func (*LabelPair) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{0} +} + +func (m *LabelPair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LabelPair.Unmarshal(m, b) +} +func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic) +} +func (m *LabelPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_LabelPair.Merge(m, src) +} +func (m *LabelPair) XXX_Size() int { + return xxx_messageInfo_LabelPair.Size(m) +} +func (m *LabelPair) XXX_DiscardUnknown() { + xxx_messageInfo_LabelPair.DiscardUnknown(m) +} + +var xxx_messageInfo_LabelPair proto.InternalMessageInfo func (m *LabelPair) GetName() string { if m != nil && m.Name != nil { @@ -96,13 +118,36 @@ func (m *LabelPair) GetValue() string { } type Gauge struct { - Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` + Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Gauge) Reset() { *m = Gauge{} } func (m *Gauge) String() string { return proto.CompactTextString(m) } func (*Gauge) ProtoMessage() {} +func (*Gauge) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{1} +} + +func (m *Gauge) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Gauge.Unmarshal(m, b) +} +func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Gauge.Marshal(b, m, deterministic) +} +func (m *Gauge) XXX_Merge(src proto.Message) { + xxx_messageInfo_Gauge.Merge(m, src) +} +func (m *Gauge) XXX_Size() int { + return xxx_messageInfo_Gauge.Size(m) +} +func (m *Gauge) XXX_DiscardUnknown() { + xxx_messageInfo_Gauge.DiscardUnknown(m) +} + +var xxx_messageInfo_Gauge proto.InternalMessageInfo func (m *Gauge) GetValue() float64 { if m != nil && m.Value != nil { @@ -112,13 +157,37 @@ func (m *Gauge) GetValue() float64 { } type Counter struct { - Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` + Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` + Exemplar *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Counter) Reset() { *m = Counter{} } func (m *Counter) String() string { return proto.CompactTextString(m) } func (*Counter) ProtoMessage() {} +func (*Counter) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{2} +} + +func (m *Counter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Counter.Unmarshal(m, b) +} +func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Counter.Marshal(b, m, deterministic) +} +func (m *Counter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Counter.Merge(m, src) +} +func (m *Counter) XXX_Size() int { + return xxx_messageInfo_Counter.Size(m) +} +func (m *Counter) XXX_DiscardUnknown() { + xxx_messageInfo_Counter.DiscardUnknown(m) +} + +var xxx_messageInfo_Counter proto.InternalMessageInfo func (m *Counter) GetValue() float64 { if m != nil && m.Value != nil { @@ -127,15 +196,45 @@ func (m *Counter) GetValue() float64 { return 0 } +func (m *Counter) GetExemplar() *Exemplar { + if m != nil { + return m.Exemplar + } + return nil +} + type Quantile struct { - Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"` - Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` + Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"` + Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Quantile) Reset() { *m = Quantile{} } func (m *Quantile) String() string { return proto.CompactTextString(m) } func (*Quantile) ProtoMessage() {} +func (*Quantile) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{3} +} + +func (m *Quantile) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Quantile.Unmarshal(m, b) +} +func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Quantile.Marshal(b, m, deterministic) +} +func (m *Quantile) XXX_Merge(src proto.Message) { + xxx_messageInfo_Quantile.Merge(m, src) +} +func (m *Quantile) XXX_Size() int { + return xxx_messageInfo_Quantile.Size(m) +} +func (m *Quantile) XXX_DiscardUnknown() { + xxx_messageInfo_Quantile.DiscardUnknown(m) +} + +var xxx_messageInfo_Quantile proto.InternalMessageInfo func (m *Quantile) GetQuantile() float64 { if m != nil && m.Quantile != nil { @@ -152,15 +251,38 @@ func (m *Quantile) GetValue() float64 { } type Summary struct { - SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count" json:"sample_count,omitempty"` - SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum" json:"sample_sum,omitempty"` - Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` - XXX_unrecognized []byte `json:"-"` + SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` + SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` + Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Summary) Reset() { *m = Summary{} } func (m *Summary) String() string { return proto.CompactTextString(m) } func (*Summary) ProtoMessage() {} +func (*Summary) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{4} +} + +func (m *Summary) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Summary.Unmarshal(m, b) +} +func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Summary.Marshal(b, m, deterministic) +} +func (m *Summary) XXX_Merge(src proto.Message) { + xxx_messageInfo_Summary.Merge(m, src) +} +func (m *Summary) XXX_Size() int { + return xxx_messageInfo_Summary.Size(m) +} +func (m *Summary) XXX_DiscardUnknown() { + xxx_messageInfo_Summary.DiscardUnknown(m) +} + +var xxx_messageInfo_Summary proto.InternalMessageInfo func (m *Summary) GetSampleCount() uint64 { if m != nil && m.SampleCount != nil { @@ -184,13 +306,36 @@ func (m *Summary) GetQuantile() []*Quantile { } type Untyped struct { - Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` + Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Untyped) Reset() { *m = Untyped{} } func (m *Untyped) String() string { return proto.CompactTextString(m) } func (*Untyped) ProtoMessage() {} +func (*Untyped) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{5} +} + +func (m *Untyped) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Untyped.Unmarshal(m, b) +} +func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Untyped.Marshal(b, m, deterministic) +} +func (m *Untyped) XXX_Merge(src proto.Message) { + xxx_messageInfo_Untyped.Merge(m, src) +} +func (m *Untyped) XXX_Size() int { + return xxx_messageInfo_Untyped.Size(m) +} +func (m *Untyped) XXX_DiscardUnknown() { + xxx_messageInfo_Untyped.DiscardUnknown(m) +} + +var xxx_messageInfo_Untyped proto.InternalMessageInfo func (m *Untyped) GetValue() float64 { if m != nil && m.Value != nil { @@ -200,15 +345,38 @@ func (m *Untyped) GetValue() float64 { } type Histogram struct { - SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count" json:"sample_count,omitempty"` - SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum" json:"sample_sum,omitempty"` - Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` - XXX_unrecognized []byte `json:"-"` + SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` + SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` + Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Histogram) Reset() { *m = Histogram{} } func (m *Histogram) String() string { return proto.CompactTextString(m) } func (*Histogram) ProtoMessage() {} +func (*Histogram) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{6} +} + +func (m *Histogram) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Histogram.Unmarshal(m, b) +} +func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Histogram.Marshal(b, m, deterministic) +} +func (m *Histogram) XXX_Merge(src proto.Message) { + xxx_messageInfo_Histogram.Merge(m, src) +} +func (m *Histogram) XXX_Size() int { + return xxx_messageInfo_Histogram.Size(m) +} +func (m *Histogram) XXX_DiscardUnknown() { + xxx_messageInfo_Histogram.DiscardUnknown(m) +} + +var xxx_messageInfo_Histogram proto.InternalMessageInfo func (m *Histogram) GetSampleCount() uint64 { if m != nil && m.SampleCount != nil { @@ -232,14 +400,38 @@ func (m *Histogram) GetBucket() []*Bucket { } type Bucket struct { - CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count" json:"cumulative_count,omitempty"` - UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound" json:"upper_bound,omitempty"` - XXX_unrecognized []byte `json:"-"` + CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"` + UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` + Exemplar *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Bucket) Reset() { *m = Bucket{} } func (m *Bucket) String() string { return proto.CompactTextString(m) } func (*Bucket) ProtoMessage() {} +func (*Bucket) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{7} +} + +func (m *Bucket) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Bucket.Unmarshal(m, b) +} +func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Bucket.Marshal(b, m, deterministic) +} +func (m *Bucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_Bucket.Merge(m, src) +} +func (m *Bucket) XXX_Size() int { + return xxx_messageInfo_Bucket.Size(m) +} +func (m *Bucket) XXX_DiscardUnknown() { + xxx_messageInfo_Bucket.DiscardUnknown(m) +} + +var xxx_messageInfo_Bucket proto.InternalMessageInfo func (m *Bucket) GetCumulativeCount() uint64 { if m != nil && m.CumulativeCount != nil { @@ -255,20 +447,105 @@ func (m *Bucket) GetUpperBound() float64 { return 0 } +func (m *Bucket) GetExemplar() *Exemplar { + if m != nil { + return m.Exemplar + } + return nil +} + +type Exemplar struct { + Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` + Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Exemplar) Reset() { *m = Exemplar{} } +func (m *Exemplar) String() string { return proto.CompactTextString(m) } +func (*Exemplar) ProtoMessage() {} +func (*Exemplar) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{8} +} + +func (m *Exemplar) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Exemplar.Unmarshal(m, b) +} +func (m *Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Exemplar.Marshal(b, m, deterministic) +} +func (m *Exemplar) XXX_Merge(src proto.Message) { + xxx_messageInfo_Exemplar.Merge(m, src) +} +func (m *Exemplar) XXX_Size() int { + return xxx_messageInfo_Exemplar.Size(m) +} +func (m *Exemplar) XXX_DiscardUnknown() { + xxx_messageInfo_Exemplar.DiscardUnknown(m) +} + +var xxx_messageInfo_Exemplar proto.InternalMessageInfo + +func (m *Exemplar) GetLabel() []*LabelPair { + if m != nil { + return m.Label + } + return nil +} + +func (m *Exemplar) GetValue() float64 { + if m != nil && m.Value != nil { + return *m.Value + } + return 0 +} + +func (m *Exemplar) GetTimestamp() *timestamp.Timestamp { + if m != nil { + return m.Timestamp + } + return nil +} + type Metric struct { - Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` - Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"` - Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"` - Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` - Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"` - Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"` - TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms" json:"timestamp_ms,omitempty"` - XXX_unrecognized []byte `json:"-"` + Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` + Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"` + Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"` + Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` + Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"` + Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"` + TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Metric) Reset() { *m = Metric{} } func (m *Metric) String() string { return proto.CompactTextString(m) } func (*Metric) ProtoMessage() {} +func (*Metric) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{9} +} + +func (m *Metric) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Metric.Unmarshal(m, b) +} +func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Metric.Marshal(b, m, deterministic) +} +func (m *Metric) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metric.Merge(m, src) +} +func (m *Metric) XXX_Size() int { + return xxx_messageInfo_Metric.Size(m) +} +func (m *Metric) XXX_DiscardUnknown() { + xxx_messageInfo_Metric.DiscardUnknown(m) +} + +var xxx_messageInfo_Metric proto.InternalMessageInfo func (m *Metric) GetLabel() []*LabelPair { if m != nil { @@ -320,16 +597,39 @@ func (m *Metric) GetTimestampMs() int64 { } type MetricFamily struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"` - Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"` - Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"` + Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"` + Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *MetricFamily) Reset() { *m = MetricFamily{} } func (m *MetricFamily) String() string { return proto.CompactTextString(m) } func (*MetricFamily) ProtoMessage() {} +func (*MetricFamily) Descriptor() ([]byte, []int) { + return fileDescriptor_6039342a2ba47b72, []int{10} +} + +func (m *MetricFamily) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MetricFamily.Unmarshal(m, b) +} +func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MetricFamily.Marshal(b, m, deterministic) +} +func (m *MetricFamily) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetricFamily.Merge(m, src) +} +func (m *MetricFamily) XXX_Size() int { + return xxx_messageInfo_MetricFamily.Size(m) +} +func (m *MetricFamily) XXX_DiscardUnknown() { + xxx_messageInfo_MetricFamily.DiscardUnknown(m) +} + +var xxx_messageInfo_MetricFamily proto.InternalMessageInfo func (m *MetricFamily) GetName() string { if m != nil && m.Name != nil { @@ -361,4 +661,63 @@ func (m *MetricFamily) GetMetric() []*Metric { func init() { proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value) + proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair") + proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge") + proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter") + proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile") + proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary") + proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped") + proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram") + proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket") + proto.RegisterType((*Exemplar)(nil), "io.prometheus.client.Exemplar") + proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric") + proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily") +} + +func init() { proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) } + +var fileDescriptor_6039342a2ba47b72 = []byte{ + // 665 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0xfd, 0xdc, 0x38, 0x3f, 0xbe, 0x69, 0x3f, 0xa2, 0x51, 0x17, 0x56, 0xa1, 0x24, 0x78, 0x55, + 0x58, 0x38, 0xa2, 0x6a, 0x05, 0x2a, 0xb0, 0x68, 0x4b, 0x48, 0x91, 0x48, 0x5b, 0x26, 0xc9, 0xa2, + 0xb0, 0x88, 0x1c, 0x77, 0x70, 0x2c, 0x3c, 0xb1, 0xb1, 0x67, 0x2a, 0xb2, 0x66, 0xc1, 0x16, 0x5e, + 0x81, 0x17, 0x05, 0xcd, 0x8f, 0x6d, 0x2a, 0xb9, 0x95, 0x40, 0xec, 0x66, 0xee, 0x3d, 0xe7, 0xfa, + 0xcc, 0xf8, 0x9c, 0x81, 0x0d, 0x4a, 0x58, 0x1a, 0xfa, 0x99, 0x9b, 0xa4, 0x31, 0x8b, 0xd1, 0x66, + 0x18, 0x8b, 0x15, 0x25, 0x6c, 0x41, 0x78, 0xe6, 0xfa, 0x51, 0x48, 0x96, 0x6c, 0xab, 0x1b, 0xc4, + 0x71, 0x10, 0x91, 0xbe, 0xc4, 0xcc, 0xf9, 0x87, 0x3e, 0x0b, 0x29, 0xc9, 0x98, 0x47, 0x13, 0x45, + 0x73, 0xf6, 0xc1, 0x7a, 0xe3, 0xcd, 0x49, 0x74, 0xee, 0x85, 0x29, 0x42, 0x60, 0x2e, 0x3d, 0x4a, + 0x6c, 0xa3, 0x67, 0xec, 0x58, 0x58, 0xae, 0xd1, 0x26, 0xd4, 0xaf, 0xbc, 0x88, 0x13, 0x7b, 0x4d, + 0x16, 0xd5, 0xc6, 0xd9, 0x86, 0xfa, 0xd0, 0xe3, 0xc1, 0x6f, 0x6d, 0xc1, 0x31, 0xf2, 0xf6, 0x7b, + 0x68, 0x1e, 0xc7, 0x7c, 0xc9, 0x48, 0x5a, 0x0d, 0x40, 0x07, 0xd0, 0x22, 0x9f, 0x09, 0x4d, 0x22, + 0x2f, 0x95, 0x83, 0xdb, 0xbb, 0xf7, 0xdd, 0xaa, 0x03, 0xb8, 0x03, 0x8d, 0xc2, 0x05, 0xde, 0x79, + 0x0e, 0xad, 0xb7, 0xdc, 0x5b, 0xb2, 0x30, 0x22, 0x68, 0x0b, 0x5a, 0x9f, 0xf4, 0x5a, 0x7f, 0xa0, + 0xd8, 0x5f, 0x57, 0x5e, 0x48, 0xfb, 0x6a, 0x40, 0x73, 0xcc, 0x29, 0xf5, 0xd2, 0x15, 0x7a, 0x00, + 0xeb, 0x99, 0x47, 0x93, 0x88, 0xcc, 0x7c, 0xa1, 0x56, 0x4e, 0x30, 0x71, 0x5b, 0xd5, 0xe4, 0x01, + 0xd0, 0x36, 0x80, 0x86, 0x64, 0x9c, 0xea, 0x49, 0x96, 0xaa, 0x8c, 0x39, 0x15, 0xe7, 0x28, 0xbe, + 0x5f, 0xeb, 0xd5, 0x6e, 0x3e, 0x47, 0xae, 0xb8, 0xd4, 0xe7, 0x74, 0xa1, 0x39, 0x5d, 0xb2, 0x55, + 0x42, 0x2e, 0x6f, 0xb8, 0xc5, 0x2f, 0x06, 0x58, 0x27, 0x61, 0xc6, 0xe2, 0x20, 0xf5, 0xe8, 0x3f, + 0x10, 0xbb, 0x07, 0x8d, 0x39, 0xf7, 0x3f, 0x12, 0xa6, 0xa5, 0xde, 0xab, 0x96, 0x7a, 0x24, 0x31, + 0x58, 0x63, 0x9d, 0x6f, 0x06, 0x34, 0x54, 0x09, 0x3d, 0x84, 0x8e, 0xcf, 0x29, 0x8f, 0x3c, 0x16, + 0x5e, 0x5d, 0x97, 0x71, 0xa7, 0xac, 0x2b, 0x29, 0x5d, 0x68, 0xf3, 0x24, 0x21, 0xe9, 0x6c, 0x1e, + 0xf3, 0xe5, 0xa5, 0xd6, 0x02, 0xb2, 0x74, 0x24, 0x2a, 0xd7, 0x1c, 0x50, 0xfb, 0x43, 0x07, 0x7c, + 0x37, 0xa0, 0x95, 0x97, 0xd1, 0x3e, 0xd4, 0x23, 0xe1, 0x60, 0xdb, 0x90, 0x87, 0xea, 0x56, 0x4f, + 0x29, 0x4c, 0x8e, 0x15, 0xba, 0xda, 0x1d, 0xe8, 0x29, 0x58, 0x45, 0x42, 0xb4, 0xac, 0x2d, 0x57, + 0x65, 0xc8, 0xcd, 0x33, 0xe4, 0x4e, 0x72, 0x04, 0x2e, 0xc1, 0xce, 0xcf, 0x35, 0x68, 0x8c, 0x64, + 0x22, 0xff, 0x56, 0xd1, 0x63, 0xa8, 0x07, 0x22, 0x53, 0x3a, 0x10, 0x77, 0xab, 0x69, 0x32, 0x76, + 0x58, 0x21, 0xd1, 0x13, 0x68, 0xfa, 0x2a, 0x67, 0x5a, 0xec, 0x76, 0x35, 0x49, 0x87, 0x11, 0xe7, + 0x68, 0x41, 0xcc, 0x54, 0x08, 0x6c, 0xf3, 0x36, 0xa2, 0x4e, 0x0a, 0xce, 0xd1, 0x82, 0xc8, 0x95, + 0x69, 0xed, 0xfa, 0x6d, 0x44, 0xed, 0x6c, 0x9c, 0xa3, 0xd1, 0x0b, 0xb0, 0x16, 0xb9, 0x97, 0xed, + 0xa6, 0xa4, 0xde, 0x70, 0x31, 0x85, 0xe5, 0x71, 0xc9, 0x10, 0xee, 0x2f, 0xee, 0x7a, 0x46, 0x33, + 0xbb, 0xd1, 0x33, 0x76, 0x6a, 0xb8, 0x5d, 0xd4, 0x46, 0x99, 0xf3, 0xc3, 0x80, 0x75, 0xf5, 0x07, + 0x5e, 0x79, 0x34, 0x8c, 0x56, 0x95, 0xcf, 0x19, 0x02, 0x73, 0x41, 0xa2, 0x44, 0xbf, 0x66, 0x72, + 0x8d, 0xf6, 0xc0, 0x14, 0x1a, 0xe5, 0x15, 0xfe, 0xbf, 0xdb, 0xab, 0x56, 0xa5, 0x26, 0x4f, 0x56, + 0x09, 0xc1, 0x12, 0x2d, 0xd2, 0xa4, 0x5e, 0x60, 0xdb, 0xbc, 0x2d, 0x4d, 0x8a, 0x87, 0x35, 0xf6, + 0xd1, 0x08, 0xa0, 0x9c, 0x84, 0xda, 0xd0, 0x3c, 0x3e, 0x9b, 0x9e, 0x4e, 0x06, 0xb8, 0xf3, 0x1f, + 0xb2, 0xa0, 0x3e, 0x3c, 0x9c, 0x0e, 0x07, 0x1d, 0x43, 0xd4, 0xc7, 0xd3, 0xd1, 0xe8, 0x10, 0x5f, + 0x74, 0xd6, 0xc4, 0x66, 0x7a, 0x3a, 0xb9, 0x38, 0x1f, 0xbc, 0xec, 0xd4, 0xd0, 0x06, 0x58, 0x27, + 0xaf, 0xc7, 0x93, 0xb3, 0x21, 0x3e, 0x1c, 0x75, 0xcc, 0x23, 0x0c, 0x95, 0xef, 0xfe, 0xbb, 0x83, + 0x20, 0x64, 0x0b, 0x3e, 0x77, 0xfd, 0x98, 0xf6, 0xcb, 0x6e, 0x5f, 0x75, 0x67, 0x34, 0xbe, 0x24, + 0x51, 0x3f, 0x88, 0x9f, 0x85, 0xf1, 0xac, 0xec, 0xce, 0x54, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xd0, 0x84, 0x91, 0x73, 0x59, 0x06, 0x00, 0x00, } diff --git a/vendor/golang.org/x/net/AUTHORS b/vendor/golang.org/x/net/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/net/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/net/CONTRIBUTORS b/vendor/golang.org/x/net/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/net/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/net/context/context.go b/vendor/golang.org/x/net/context/context.go index a3c021d..cf66309 100644 --- a/vendor/golang.org/x/net/context/context.go +++ b/vendor/golang.org/x/net/context/context.go @@ -21,9 +21,9 @@ // explicitly to each function that needs it. The Context should be the first // parameter, typically named ctx: // -// func DoSomething(ctx context.Context, arg Arg) error { -// // ... use ctx ... -// } +// func DoSomething(ctx context.Context, arg Arg) error { +// // ... use ctx ... +// } // // Do not pass a nil Context, even if a function permits it. Pass context.TODO // if you are unsure about which Context to use. diff --git a/vendor/golang.org/x/net/context/go17.go b/vendor/golang.org/x/net/context/go17.go index 344bd14..2cb9c40 100644 --- a/vendor/golang.org/x/net/context/go17.go +++ b/vendor/golang.org/x/net/context/go17.go @@ -32,7 +32,7 @@ var DeadlineExceeded = context.DeadlineExceeded // call cancel as soon as the operations running in this Context complete. func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { ctx, f := context.WithCancel(parent) - return ctx, CancelFunc(f) + return ctx, f } // WithDeadline returns a copy of the parent context with the deadline adjusted @@ -46,7 +46,7 @@ func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { // call cancel as soon as the operations running in this Context complete. func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { ctx, f := context.WithDeadline(parent, deadline) - return ctx, CancelFunc(f) + return ctx, f } // WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). @@ -54,11 +54,11 @@ func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { // Canceling this context releases resources associated with it, so code should // call cancel as soon as the operations running in this Context complete: // -// func slowOperationWithTimeout(ctx context.Context) (Result, error) { -// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) -// defer cancel() // releases resources if slowOperation completes before timeout elapses -// return slowOperation(ctx) -// } +// func slowOperationWithTimeout(ctx context.Context) (Result, error) { +// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) +// defer cancel() // releases resources if slowOperation completes before timeout elapses +// return slowOperation(ctx) +// } func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { return WithDeadline(parent, time.Now().Add(timeout)) } diff --git a/vendor/golang.org/x/net/context/pre_go17.go b/vendor/golang.org/x/net/context/pre_go17.go index 5270db5..7b6b685 100644 --- a/vendor/golang.org/x/net/context/pre_go17.go +++ b/vendor/golang.org/x/net/context/pre_go17.go @@ -264,11 +264,11 @@ func (c *timerCtx) cancel(removeFromParent bool, err error) { // Canceling this context releases resources associated with it, so code should // call cancel as soon as the operations running in this Context complete: // -// func slowOperationWithTimeout(ctx context.Context) (Result, error) { -// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) -// defer cancel() // releases resources if slowOperation completes before timeout elapses -// return slowOperation(ctx) -// } +// func slowOperationWithTimeout(ctx context.Context) (Result, error) { +// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) +// defer cancel() // releases resources if slowOperation completes before timeout elapses +// return slowOperation(ctx) +// } func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { return WithDeadline(parent, time.Now().Add(timeout)) } diff --git a/vendor/golang.org/x/net/http/httpguts/httplex.go b/vendor/golang.org/x/net/http/httpguts/httplex.go index c79aa73..6e071e8 100644 --- a/vendor/golang.org/x/net/http/httpguts/httplex.go +++ b/vendor/golang.org/x/net/http/httpguts/httplex.go @@ -173,13 +173,15 @@ func tokenEqual(t1, t2 string) bool { // isLWS reports whether b is linear white space, according // to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 -// LWS = [CRLF] 1*( SP | HT ) +// +// LWS = [CRLF] 1*( SP | HT ) func isLWS(b byte) bool { return b == ' ' || b == '\t' } // isCTL reports whether b is a control byte, according // to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 -// CTL = +// +// CTL = func isCTL(b byte) bool { const del = 0x7f // a CTL return b < ' ' || b == del @@ -189,12 +191,13 @@ func isCTL(b byte) bool { // HTTP/2 imposes the additional restriction that uppercase ASCII // letters are not allowed. // -// RFC 7230 says: -// header-field = field-name ":" OWS field-value OWS -// field-name = token -// token = 1*tchar -// tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / -// "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA +// RFC 7230 says: +// +// header-field = field-name ":" OWS field-value OWS +// field-name = token +// token = 1*tchar +// tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." / +// "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA func ValidHeaderFieldName(v string) bool { if len(v) == 0 { return false @@ -267,27 +270,28 @@ var validHostByte = [256]bool{ // ValidHeaderFieldValue reports whether v is a valid "field-value" according to // http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 : // -// message-header = field-name ":" [ field-value ] -// field-value = *( field-content | LWS ) -// field-content = +// message-header = field-name ":" [ field-value ] +// field-value = *( field-content | LWS ) +// field-content = // // http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2 : // -// TEXT = -// LWS = [CRLF] 1*( SP | HT ) -// CTL = +// TEXT = +// LWS = [CRLF] 1*( SP | HT ) +// CTL = // // RFC 7230 says: -// field-value = *( field-content / obs-fold ) -// obj-fold = N/A to http2, and deprecated -// field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] -// field-vchar = VCHAR / obs-text -// obs-text = %x80-FF -// VCHAR = "any visible [USASCII] character" +// +// field-value = *( field-content / obs-fold ) +// obj-fold = N/A to http2, and deprecated +// field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] +// field-vchar = VCHAR / obs-text +// obs-text = %x80-FF +// VCHAR = "any visible [USASCII] character" // // http2 further says: "Similarly, HTTP/2 allows header field values // that are not valid. While most of the values that can be encoded diff --git a/vendor/golang.org/x/net/http2/client_conn_pool.go b/vendor/golang.org/x/net/http2/client_conn_pool.go index 652bc11..780968d 100644 --- a/vendor/golang.org/x/net/http2/client_conn_pool.go +++ b/vendor/golang.org/x/net/http2/client_conn_pool.go @@ -16,6 +16,12 @@ import ( // ClientConnPool manages a pool of HTTP/2 client connections. type ClientConnPool interface { + // GetClientConn returns a specific HTTP/2 connection (usually + // a TLS-TCP connection) to an HTTP/2 server. On success, the + // returned ClientConn accounts for the upcoming RoundTrip + // call, so the caller should not omit it. If the caller needs + // to, ClientConn.RoundTrip can be called with a bogus + // new(http.Request) to release the stream reservation. GetClientConn(req *http.Request, addr string) (*ClientConn, error) MarkDead(*ClientConn) } @@ -42,7 +48,7 @@ type clientConnPool struct { conns map[string][]*ClientConn // key is host:port dialing map[string]*dialCall // currently in-flight dials keys map[*ClientConn][]string - addConnCalls map[string]*addConnCall // in-flight addConnIfNeede calls + addConnCalls map[string]*addConnCall // in-flight addConnIfNeeded calls } func (p *clientConnPool) GetClientConn(req *http.Request, addr string) (*ClientConn, error) { @@ -54,28 +60,8 @@ const ( noDialOnMiss = false ) -// shouldTraceGetConn reports whether getClientConn should call any -// ClientTrace.GetConn hook associated with the http.Request. -// -// This complexity is needed to avoid double calls of the GetConn hook -// during the back-and-forth between net/http and x/net/http2 (when the -// net/http.Transport is upgraded to also speak http2), as well as support -// the case where x/net/http2 is being used directly. -func (p *clientConnPool) shouldTraceGetConn(st clientConnIdleState) bool { - // If our Transport wasn't made via ConfigureTransport, always - // trace the GetConn hook if provided, because that means the - // http2 package is being used directly and it's the one - // dialing, as opposed to net/http. - if _, ok := p.t.ConnPool.(noDialClientConnPool); !ok { - return true - } - // Otherwise, only use the GetConn hook if this connection has - // been used previously for other requests. For fresh - // connections, the net/http package does the dialing. - return !st.freshConn -} - func (p *clientConnPool) getClientConn(req *http.Request, addr string, dialOnMiss bool) (*ClientConn, error) { + // TODO(dneil): Dial a new connection when t.DisableKeepAlives is set? if isConnectionCloseRequest(req) && dialOnMiss { // It gets its own connection. traceGetConn(req, addr) @@ -89,10 +75,14 @@ func (p *clientConnPool) getClientConn(req *http.Request, addr string, dialOnMis for { p.mu.Lock() for _, cc := range p.conns[addr] { - if st := cc.idleState(); st.canTakeNewRequest { - if p.shouldTraceGetConn(st) { + if cc.ReserveNewRequest() { + // When a connection is presented to us by the net/http package, + // the GetConn hook has already been called. + // Don't call it a second time here. + if !cc.getConnCalled { traceGetConn(req, addr) } + cc.getConnCalled = false p.mu.Unlock() return cc, nil } @@ -108,7 +98,13 @@ func (p *clientConnPool) getClientConn(req *http.Request, addr string, dialOnMis if shouldRetryDial(call, req) { continue } - return call.res, call.err + cc, err := call.res, call.err + if err != nil { + return nil, err + } + if cc.ReserveNewRequest() { + return cc, nil + } } } @@ -143,7 +139,6 @@ func (p *clientConnPool) getStartDialLocked(ctx context.Context, addr string) *d func (c *dialCall) dial(ctx context.Context, addr string) { const singleUse = false // shared conn c.res, c.err = c.p.t.dialClientConn(ctx, addr, singleUse) - close(c.done) c.p.mu.Lock() delete(c.p.dialing, addr) @@ -151,6 +146,8 @@ func (c *dialCall) dial(ctx context.Context, addr string) { c.p.addConnLocked(addr, c.res) } c.p.mu.Unlock() + + close(c.done) } // addConnIfNeeded makes a NewClientConn out of c if a connection for key doesn't @@ -205,6 +202,7 @@ func (c *addConnCall) run(t *Transport, key string, tc *tls.Conn) { if err != nil { c.err = err } else { + cc.getConnCalled = true // already called by the net/http package p.addConnLocked(key, cc) } delete(p.addConnCalls, key) diff --git a/vendor/golang.org/x/net/http2/errors.go b/vendor/golang.org/x/net/http2/errors.go index 2663e5d..f2067da 100644 --- a/vendor/golang.org/x/net/http2/errors.go +++ b/vendor/golang.org/x/net/http2/errors.go @@ -136,7 +136,7 @@ func (e headerFieldNameError) Error() string { type headerFieldValueError string func (e headerFieldValueError) Error() string { - return fmt.Sprintf("invalid header field value %q", string(e)) + return fmt.Sprintf("invalid header field value for %q", string(e)) } var ( diff --git a/vendor/golang.org/x/net/http2/flow.go b/vendor/golang.org/x/net/http2/flow.go index b51f0e0..b7dbd18 100644 --- a/vendor/golang.org/x/net/http2/flow.go +++ b/vendor/golang.org/x/net/http2/flow.go @@ -6,23 +6,91 @@ package http2 -// flow is the flow control window's size. -type flow struct { +// inflowMinRefresh is the minimum number of bytes we'll send for a +// flow control window update. +const inflowMinRefresh = 4 << 10 + +// inflow accounts for an inbound flow control window. +// It tracks both the latest window sent to the peer (used for enforcement) +// and the accumulated unsent window. +type inflow struct { + avail int32 + unsent int32 +} + +// init sets the initial window. +func (f *inflow) init(n int32) { + f.avail = n +} + +// add adds n bytes to the window, with a maximum window size of max, +// indicating that the peer can now send us more data. +// For example, the user read from a {Request,Response} body and consumed +// some of the buffered data, so the peer can now send more. +// It returns the number of bytes to send in a WINDOW_UPDATE frame to the peer. +// Window updates are accumulated and sent when the unsent capacity +// is at least inflowMinRefresh or will at least double the peer's available window. +func (f *inflow) add(n int) (connAdd int32) { + if n < 0 { + panic("negative update") + } + unsent := int64(f.unsent) + int64(n) + // "A sender MUST NOT allow a flow-control window to exceed 2^31-1 octets." + // RFC 7540 Section 6.9.1. + const maxWindow = 1<<31 - 1 + if unsent+int64(f.avail) > maxWindow { + panic("flow control update exceeds maximum window size") + } + f.unsent = int32(unsent) + if f.unsent < inflowMinRefresh && f.unsent < f.avail { + // If there aren't at least inflowMinRefresh bytes of window to send, + // and this update won't at least double the window, buffer the update for later. + return 0 + } + f.avail += f.unsent + f.unsent = 0 + return int32(unsent) +} + +// take attempts to take n bytes from the peer's flow control window. +// It reports whether the window has available capacity. +func (f *inflow) take(n uint32) bool { + if n > uint32(f.avail) { + return false + } + f.avail -= int32(n) + return true +} + +// takeInflows attempts to take n bytes from two inflows, +// typically connection-level and stream-level flows. +// It reports whether both windows have available capacity. +func takeInflows(f1, f2 *inflow, n uint32) bool { + if n > uint32(f1.avail) || n > uint32(f2.avail) { + return false + } + f1.avail -= int32(n) + f2.avail -= int32(n) + return true +} + +// outflow is the outbound flow control window's size. +type outflow struct { _ incomparable // n is the number of DATA bytes we're allowed to send. - // A flow is kept both on a conn and a per-stream. + // An outflow is kept both on a conn and a per-stream. n int32 - // conn points to the shared connection-level flow that is - // shared by all streams on that conn. It is nil for the flow + // conn points to the shared connection-level outflow that is + // shared by all streams on that conn. It is nil for the outflow // that's on the conn directly. - conn *flow + conn *outflow } -func (f *flow) setConnFlow(cf *flow) { f.conn = cf } +func (f *outflow) setConnFlow(cf *outflow) { f.conn = cf } -func (f *flow) available() int32 { +func (f *outflow) available() int32 { n := f.n if f.conn != nil && f.conn.n < n { n = f.conn.n @@ -30,7 +98,7 @@ func (f *flow) available() int32 { return n } -func (f *flow) take(n int32) { +func (f *outflow) take(n int32) { if n > f.available() { panic("internal error: took too much") } @@ -42,7 +110,7 @@ func (f *flow) take(n int32) { // add adds n bytes (positive or negative) to the flow control window. // It returns false if the sum would exceed 2^31-1. -func (f *flow) add(n int32) bool { +func (f *outflow) add(n int32) bool { sum := f.n + n if (sum > n) == (f.n > 0) { f.n = sum diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go index b95d6f2..c1f6b90 100644 --- a/vendor/golang.org/x/net/http2/frame.go +++ b/vendor/golang.org/x/net/http2/frame.go @@ -23,7 +23,7 @@ const frameHeaderLen = 9 var padZeros = make([]byte, 255) // zeros for padding // A FrameType is a registered frame type as defined in -// http://http2.github.io/http2-spec/#rfc.section.11.2 +// https://httpwg.org/specs/rfc7540.html#rfc.section.11.2 type FrameType uint8 const ( @@ -122,7 +122,7 @@ var flagName = map[FrameType]map[Flags]string{ // a frameParser parses a frame given its FrameHeader and payload // bytes. The length of payload will always equal fh.Length (which // might be 0). -type frameParser func(fc *frameCache, fh FrameHeader, payload []byte) (Frame, error) +type frameParser func(fc *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) var frameParsers = map[FrameType]frameParser{ FrameData: parseDataFrame, @@ -146,7 +146,7 @@ func typeFrameParser(t FrameType) frameParser { // A FrameHeader is the 9 byte header of all HTTP/2 frames. // -// See http://http2.github.io/http2-spec/#FrameHeader +// See https://httpwg.org/specs/rfc7540.html#FrameHeader type FrameHeader struct { valid bool // caller can access []byte fields in the Frame @@ -267,6 +267,11 @@ type Framer struct { lastFrame Frame errDetail error + // countError is a non-nil func that's called on a frame parse + // error with some unique error path token. It's initialized + // from Transport.CountError or Server.CountError. + countError func(errToken string) + // lastHeaderStream is non-zero if the last frame was an // unfinished HEADERS/CONTINUATION. lastHeaderStream uint32 @@ -426,6 +431,7 @@ func NewFramer(w io.Writer, r io.Reader) *Framer { fr := &Framer{ w: w, r: r, + countError: func(string) {}, logReads: logFrameReads, logWrites: logFrameWrites, debugReadLoggerf: log.Printf, @@ -500,7 +506,7 @@ func (fr *Framer) ReadFrame() (Frame, error) { if _, err := io.ReadFull(fr.r, payload); err != nil { return nil, err } - f, err := typeFrameParser(fh.Type)(fr.frameCache, fh, payload) + f, err := typeFrameParser(fh.Type)(fr.frameCache, fh, fr.countError, payload) if err != nil { if ce, ok := err.(connError); ok { return nil, fr.connError(ce.Code, ce.Reason) @@ -569,7 +575,7 @@ func (fr *Framer) checkFrameOrder(f Frame) error { // A DataFrame conveys arbitrary, variable-length sequences of octets // associated with a stream. -// See http://http2.github.io/http2-spec/#rfc.section.6.1 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.1 type DataFrame struct { FrameHeader data []byte @@ -588,13 +594,14 @@ func (f *DataFrame) Data() []byte { return f.data } -func parseDataFrame(fc *frameCache, fh FrameHeader, payload []byte) (Frame, error) { +func parseDataFrame(fc *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) { if fh.StreamID == 0 { // DATA frames MUST be associated with a stream. If a // DATA frame is received whose stream identifier // field is 0x0, the recipient MUST respond with a // connection error (Section 5.4.1) of type // PROTOCOL_ERROR. + countError("frame_data_stream_0") return nil, connError{ErrCodeProtocol, "DATA frame with stream ID 0"} } f := fc.getDataFrame() @@ -605,6 +612,7 @@ func parseDataFrame(fc *frameCache, fh FrameHeader, payload []byte) (Frame, erro var err error payload, padSize, err = readByte(payload) if err != nil { + countError("frame_data_pad_byte_short") return nil, err } } @@ -613,6 +621,7 @@ func parseDataFrame(fc *frameCache, fh FrameHeader, payload []byte) (Frame, erro // length of the frame payload, the recipient MUST // treat this as a connection error. // Filed: https://github.com/http2/http2-spec/issues/610 + countError("frame_data_pad_too_big") return nil, connError{ErrCodeProtocol, "pad size larger than data payload"} } f.data = payload[:len(payload)-int(padSize)] @@ -653,6 +662,15 @@ func (f *Framer) WriteData(streamID uint32, endStream bool, data []byte) error { // It is the caller's responsibility not to violate the maximum frame size // and to not call other Write methods concurrently. func (f *Framer) WriteDataPadded(streamID uint32, endStream bool, data, pad []byte) error { + if err := f.startWriteDataPadded(streamID, endStream, data, pad); err != nil { + return err + } + return f.endWrite() +} + +// startWriteDataPadded is WriteDataPadded, but only writes the frame to the Framer's internal buffer. +// The caller should call endWrite to flush the frame to the underlying writer. +func (f *Framer) startWriteDataPadded(streamID uint32, endStream bool, data, pad []byte) error { if !validStreamID(streamID) && !f.AllowIllegalWrites { return errStreamID } @@ -682,20 +700,20 @@ func (f *Framer) WriteDataPadded(streamID uint32, endStream bool, data, pad []by } f.wbuf = append(f.wbuf, data...) f.wbuf = append(f.wbuf, pad...) - return f.endWrite() + return nil } // A SettingsFrame conveys configuration parameters that affect how // endpoints communicate, such as preferences and constraints on peer // behavior. // -// See http://http2.github.io/http2-spec/#SETTINGS +// See https://httpwg.org/specs/rfc7540.html#SETTINGS type SettingsFrame struct { FrameHeader p []byte } -func parseSettingsFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) { +func parseSettingsFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (Frame, error) { if fh.Flags.Has(FlagSettingsAck) && fh.Length > 0 { // When this (ACK 0x1) bit is set, the payload of the // SETTINGS frame MUST be empty. Receipt of a @@ -703,6 +721,7 @@ func parseSettingsFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) // field value other than 0 MUST be treated as a // connection error (Section 5.4.1) of type // FRAME_SIZE_ERROR. + countError("frame_settings_ack_with_length") return nil, ConnectionError(ErrCodeFrameSize) } if fh.StreamID != 0 { @@ -713,14 +732,17 @@ func parseSettingsFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) // field is anything other than 0x0, the endpoint MUST // respond with a connection error (Section 5.4.1) of // type PROTOCOL_ERROR. + countError("frame_settings_has_stream") return nil, ConnectionError(ErrCodeProtocol) } if len(p)%6 != 0 { + countError("frame_settings_mod_6") // Expecting even number of 6 byte settings. return nil, ConnectionError(ErrCodeFrameSize) } f := &SettingsFrame{FrameHeader: fh, p: p} if v, ok := f.Value(SettingInitialWindowSize); ok && v > (1<<31)-1 { + countError("frame_settings_window_size_too_big") // Values above the maximum flow control window size of 2^31 - 1 MUST // be treated as a connection error (Section 5.4.1) of type // FLOW_CONTROL_ERROR. @@ -824,7 +846,7 @@ func (f *Framer) WriteSettingsAck() error { // A PingFrame is a mechanism for measuring a minimal round trip time // from the sender, as well as determining whether an idle connection // is still functional. -// See http://http2.github.io/http2-spec/#rfc.section.6.7 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.7 type PingFrame struct { FrameHeader Data [8]byte @@ -832,11 +854,13 @@ type PingFrame struct { func (f *PingFrame) IsAck() bool { return f.Flags.Has(FlagPingAck) } -func parsePingFrame(_ *frameCache, fh FrameHeader, payload []byte) (Frame, error) { +func parsePingFrame(_ *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) { if len(payload) != 8 { + countError("frame_ping_length") return nil, ConnectionError(ErrCodeFrameSize) } if fh.StreamID != 0 { + countError("frame_ping_has_stream") return nil, ConnectionError(ErrCodeProtocol) } f := &PingFrame{FrameHeader: fh} @@ -855,7 +879,7 @@ func (f *Framer) WritePing(ack bool, data [8]byte) error { } // A GoAwayFrame informs the remote peer to stop creating streams on this connection. -// See http://http2.github.io/http2-spec/#rfc.section.6.8 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.8 type GoAwayFrame struct { FrameHeader LastStreamID uint32 @@ -872,11 +896,13 @@ func (f *GoAwayFrame) DebugData() []byte { return f.debugData } -func parseGoAwayFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) { +func parseGoAwayFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (Frame, error) { if fh.StreamID != 0 { + countError("frame_goaway_has_stream") return nil, ConnectionError(ErrCodeProtocol) } if len(p) < 8 { + countError("frame_goaway_short") return nil, ConnectionError(ErrCodeFrameSize) } return &GoAwayFrame{ @@ -912,19 +938,20 @@ func (f *UnknownFrame) Payload() []byte { return f.p } -func parseUnknownFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) { +func parseUnknownFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (Frame, error) { return &UnknownFrame{fh, p}, nil } // A WindowUpdateFrame is used to implement flow control. -// See http://http2.github.io/http2-spec/#rfc.section.6.9 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.9 type WindowUpdateFrame struct { FrameHeader Increment uint32 // never read with high bit set } -func parseWindowUpdateFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) { +func parseWindowUpdateFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (Frame, error) { if len(p) != 4 { + countError("frame_windowupdate_bad_len") return nil, ConnectionError(ErrCodeFrameSize) } inc := binary.BigEndian.Uint32(p[:4]) & 0x7fffffff // mask off high reserved bit @@ -936,8 +963,10 @@ func parseWindowUpdateFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, err // control window MUST be treated as a connection // error (Section 5.4.1). if fh.StreamID == 0 { + countError("frame_windowupdate_zero_inc_conn") return nil, ConnectionError(ErrCodeProtocol) } + countError("frame_windowupdate_zero_inc_stream") return nil, streamError(fh.StreamID, ErrCodeProtocol) } return &WindowUpdateFrame{ @@ -988,7 +1017,7 @@ func (f *HeadersFrame) HasPriority() bool { return f.FrameHeader.Flags.Has(FlagHeadersPriority) } -func parseHeadersFrame(_ *frameCache, fh FrameHeader, p []byte) (_ Frame, err error) { +func parseHeadersFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (_ Frame, err error) { hf := &HeadersFrame{ FrameHeader: fh, } @@ -997,11 +1026,13 @@ func parseHeadersFrame(_ *frameCache, fh FrameHeader, p []byte) (_ Frame, err er // is received whose stream identifier field is 0x0, the recipient MUST // respond with a connection error (Section 5.4.1) of type // PROTOCOL_ERROR. + countError("frame_headers_zero_stream") return nil, connError{ErrCodeProtocol, "HEADERS frame with stream ID 0"} } var padLength uint8 if fh.Flags.Has(FlagHeadersPadded) { if p, padLength, err = readByte(p); err != nil { + countError("frame_headers_pad_short") return } } @@ -1009,16 +1040,19 @@ func parseHeadersFrame(_ *frameCache, fh FrameHeader, p []byte) (_ Frame, err er var v uint32 p, v, err = readUint32(p) if err != nil { + countError("frame_headers_prio_short") return nil, err } hf.Priority.StreamDep = v & 0x7fffffff hf.Priority.Exclusive = (v != hf.Priority.StreamDep) // high bit was set p, hf.Priority.Weight, err = readByte(p) if err != nil { + countError("frame_headers_prio_weight_short") return nil, err } } if len(p)-int(padLength) < 0 { + countError("frame_headers_pad_too_big") return nil, streamError(fh.StreamID, ErrCodeProtocol) } hf.headerFragBuf = p[:len(p)-int(padLength)] @@ -1098,7 +1132,7 @@ func (f *Framer) WriteHeaders(p HeadersFrameParam) error { } // A PriorityFrame specifies the sender-advised priority of a stream. -// See http://http2.github.io/http2-spec/#rfc.section.6.3 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.3 type PriorityFrame struct { FrameHeader PriorityParam @@ -1125,11 +1159,13 @@ func (p PriorityParam) IsZero() bool { return p == PriorityParam{} } -func parsePriorityFrame(_ *frameCache, fh FrameHeader, payload []byte) (Frame, error) { +func parsePriorityFrame(_ *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) { if fh.StreamID == 0 { + countError("frame_priority_zero_stream") return nil, connError{ErrCodeProtocol, "PRIORITY frame with stream ID 0"} } if len(payload) != 5 { + countError("frame_priority_bad_length") return nil, connError{ErrCodeFrameSize, fmt.Sprintf("PRIORITY frame payload size was %d; want 5", len(payload))} } v := binary.BigEndian.Uint32(payload[:4]) @@ -1166,17 +1202,19 @@ func (f *Framer) WritePriority(streamID uint32, p PriorityParam) error { } // A RSTStreamFrame allows for abnormal termination of a stream. -// See http://http2.github.io/http2-spec/#rfc.section.6.4 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.4 type RSTStreamFrame struct { FrameHeader ErrCode ErrCode } -func parseRSTStreamFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) { +func parseRSTStreamFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (Frame, error) { if len(p) != 4 { + countError("frame_rststream_bad_len") return nil, ConnectionError(ErrCodeFrameSize) } if fh.StreamID == 0 { + countError("frame_rststream_zero_stream") return nil, ConnectionError(ErrCodeProtocol) } return &RSTStreamFrame{fh, ErrCode(binary.BigEndian.Uint32(p[:4]))}, nil @@ -1196,14 +1234,15 @@ func (f *Framer) WriteRSTStream(streamID uint32, code ErrCode) error { } // A ContinuationFrame is used to continue a sequence of header block fragments. -// See http://http2.github.io/http2-spec/#rfc.section.6.10 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.10 type ContinuationFrame struct { FrameHeader headerFragBuf []byte } -func parseContinuationFrame(_ *frameCache, fh FrameHeader, p []byte) (Frame, error) { +func parseContinuationFrame(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (Frame, error) { if fh.StreamID == 0 { + countError("frame_continuation_zero_stream") return nil, connError{ErrCodeProtocol, "CONTINUATION frame with stream ID 0"} } return &ContinuationFrame{fh, p}, nil @@ -1236,7 +1275,7 @@ func (f *Framer) WriteContinuation(streamID uint32, endHeaders bool, headerBlock } // A PushPromiseFrame is used to initiate a server stream. -// See http://http2.github.io/http2-spec/#rfc.section.6.6 +// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.6 type PushPromiseFrame struct { FrameHeader PromiseID uint32 @@ -1252,7 +1291,7 @@ func (f *PushPromiseFrame) HeadersEnded() bool { return f.FrameHeader.Flags.Has(FlagPushPromiseEndHeaders) } -func parsePushPromise(_ *frameCache, fh FrameHeader, p []byte) (_ Frame, err error) { +func parsePushPromise(_ *frameCache, fh FrameHeader, countError func(string), p []byte) (_ Frame, err error) { pp := &PushPromiseFrame{ FrameHeader: fh, } @@ -1263,6 +1302,7 @@ func parsePushPromise(_ *frameCache, fh FrameHeader, p []byte) (_ Frame, err err // with. If the stream identifier field specifies the value // 0x0, a recipient MUST respond with a connection error // (Section 5.4.1) of type PROTOCOL_ERROR. + countError("frame_pushpromise_zero_stream") return nil, ConnectionError(ErrCodeProtocol) } // The PUSH_PROMISE frame includes optional padding. @@ -1270,18 +1310,21 @@ func parsePushPromise(_ *frameCache, fh FrameHeader, p []byte) (_ Frame, err err var padLength uint8 if fh.Flags.Has(FlagPushPromisePadded) { if p, padLength, err = readByte(p); err != nil { + countError("frame_pushpromise_pad_short") return } } p, pp.PromiseID, err = readUint32(p) if err != nil { + countError("frame_pushpromise_promiseid_short") return } pp.PromiseID = pp.PromiseID & (1<<31 - 1) if int(padLength) > len(p) { // like the DATA frame, error out if padding is longer than the body. + countError("frame_pushpromise_pad_too_big") return nil, ConnectionError(ErrCodeProtocol) } pp.headerFragBuf = p[:len(p)-int(padLength)] @@ -1498,7 +1541,8 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { fr.debugReadLoggerf("http2: decoded hpack field %+v", hf) } if !httpguts.ValidHeaderFieldValue(hf.Value) { - invalid = headerFieldValueError(hf.Value) + // Don't include the value in the error, because it may be sensitive. + invalid = headerFieldValueError(hf.Name) } isPseudo := strings.HasPrefix(hf.Name, ":") if isPseudo { diff --git a/vendor/golang.org/x/net/http2/go118.go b/vendor/golang.org/x/net/http2/go118.go new file mode 100644 index 0000000..aca4b2b --- /dev/null +++ b/vendor/golang.org/x/net/http2/go118.go @@ -0,0 +1,17 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.18 +// +build go1.18 + +package http2 + +import ( + "crypto/tls" + "net" +) + +func tlsUnderlyingConn(tc *tls.Conn) net.Conn { + return tc.NetConn() +} diff --git a/vendor/golang.org/x/net/http2/headermap.go b/vendor/golang.org/x/net/http2/headermap.go index 9e12941..149b3dd 100644 --- a/vendor/golang.org/x/net/http2/headermap.go +++ b/vendor/golang.org/x/net/http2/headermap.go @@ -27,7 +27,14 @@ func buildCommonHeaderMaps() { "accept-language", "accept-ranges", "age", + "access-control-allow-credentials", + "access-control-allow-headers", + "access-control-allow-methods", "access-control-allow-origin", + "access-control-expose-headers", + "access-control-max-age", + "access-control-request-headers", + "access-control-request-method", "allow", "authorization", "cache-control", @@ -53,6 +60,7 @@ func buildCommonHeaderMaps() { "link", "location", "max-forwards", + "origin", "proxy-authenticate", "proxy-authorization", "range", @@ -68,6 +76,8 @@ func buildCommonHeaderMaps() { "vary", "via", "www-authenticate", + "x-forwarded-for", + "x-forwarded-proto", } commonLowerHeader = make(map[string]string, len(common)) commonCanonHeader = make(map[string]string, len(common)) @@ -85,3 +95,11 @@ func lowerHeader(v string) (lower string, ascii bool) { } return asciiToLower(v) } + +func canonicalHeader(v string) string { + buildCommonHeaderMapsOnce() + if s, ok := commonCanonHeader[v]; ok { + return s + } + return http.CanonicalHeaderKey(v) +} diff --git a/vendor/golang.org/x/net/http2/hpack/encode.go b/vendor/golang.org/x/net/http2/hpack/encode.go index 97f1783..46219da 100644 --- a/vendor/golang.org/x/net/http2/hpack/encode.go +++ b/vendor/golang.org/x/net/http2/hpack/encode.go @@ -116,6 +116,11 @@ func (e *Encoder) SetMaxDynamicTableSize(v uint32) { e.dynTab.setMaxSize(v) } +// MaxDynamicTableSize returns the current dynamic header table size. +func (e *Encoder) MaxDynamicTableSize() (v uint32) { + return e.dynTab.maxSize +} + // SetMaxDynamicTableSizeLimit changes the maximum value that can be // specified in SetMaxDynamicTableSize to v. By default, it is set to // 4096, which is the same size of the default dynamic header table @@ -191,7 +196,7 @@ func appendTableSize(dst []byte, v uint32) []byte { // bit prefix, to dst and returns the extended buffer. // // See -// http://http2.github.io/http2-spec/compression.html#integer.representation +// https://httpwg.org/specs/rfc7541.html#integer.representation func appendVarInt(dst []byte, n byte, i uint64) []byte { k := uint64((1 << n) - 1) if i < k { diff --git a/vendor/golang.org/x/net/http2/hpack/hpack.go b/vendor/golang.org/x/net/http2/hpack/hpack.go index 85f18a2..7a1d976 100644 --- a/vendor/golang.org/x/net/http2/hpack/hpack.go +++ b/vendor/golang.org/x/net/http2/hpack/hpack.go @@ -59,7 +59,7 @@ func (hf HeaderField) String() string { // Size returns the size of an entry per RFC 7541 section 4.1. func (hf HeaderField) Size() uint32 { - // http://http2.github.io/http2-spec/compression.html#rfc.section.4.1 + // https://httpwg.org/specs/rfc7541.html#rfc.section.4.1 // "The size of the dynamic table is the sum of the size of // its entries. The size of an entry is the sum of its name's // length in octets (as defined in Section 5.2), its value's @@ -158,7 +158,7 @@ func (d *Decoder) SetAllowedMaxDynamicTableSize(v uint32) { } type dynamicTable struct { - // http://http2.github.io/http2-spec/compression.html#rfc.section.2.3.2 + // https://httpwg.org/specs/rfc7541.html#rfc.section.2.3.2 table headerFieldTable size uint32 // in bytes maxSize uint32 // current maxSize @@ -211,7 +211,7 @@ func (d *Decoder) at(i uint64) (hf HeaderField, ok bool) { return dt.ents[dt.len()-(int(i)-staticTable.len())], true } -// Decode decodes an entire block. +// DecodeFull decodes an entire block. // // TODO: remove this method and make it incremental later? This is // easier for debugging now. @@ -307,27 +307,27 @@ func (d *Decoder) parseHeaderFieldRepr() error { case b&128 != 0: // Indexed representation. // High bit set? - // http://http2.github.io/http2-spec/compression.html#rfc.section.6.1 + // https://httpwg.org/specs/rfc7541.html#rfc.section.6.1 return d.parseFieldIndexed() case b&192 == 64: // 6.2.1 Literal Header Field with Incremental Indexing // 0b10xxxxxx: top two bits are 10 - // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.1 + // https://httpwg.org/specs/rfc7541.html#rfc.section.6.2.1 return d.parseFieldLiteral(6, indexedTrue) case b&240 == 0: // 6.2.2 Literal Header Field without Indexing // 0b0000xxxx: top four bits are 0000 - // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.2 + // https://httpwg.org/specs/rfc7541.html#rfc.section.6.2.2 return d.parseFieldLiteral(4, indexedFalse) case b&240 == 16: // 6.2.3 Literal Header Field never Indexed // 0b0001xxxx: top four bits are 0001 - // http://http2.github.io/http2-spec/compression.html#rfc.section.6.2.3 + // https://httpwg.org/specs/rfc7541.html#rfc.section.6.2.3 return d.parseFieldLiteral(4, indexedNever) case b&224 == 32: // 6.3 Dynamic Table Size Update // Top three bits are '001'. - // http://http2.github.io/http2-spec/compression.html#rfc.section.6.3 + // https://httpwg.org/specs/rfc7541.html#rfc.section.6.3 return d.parseDynamicTableSizeUpdate() } @@ -359,6 +359,7 @@ func (d *Decoder) parseFieldLiteral(n uint8, it indexType) error { var hf HeaderField wantStr := d.emitEnabled || it.indexed() + var undecodedName undecodedString if nameIdx > 0 { ihf, ok := d.at(nameIdx) if !ok { @@ -366,15 +367,27 @@ func (d *Decoder) parseFieldLiteral(n uint8, it indexType) error { } hf.Name = ihf.Name } else { - hf.Name, buf, err = d.readString(buf, wantStr) + undecodedName, buf, err = d.readString(buf) if err != nil { return err } } - hf.Value, buf, err = d.readString(buf, wantStr) + undecodedValue, buf, err := d.readString(buf) if err != nil { return err } + if wantStr { + if nameIdx <= 0 { + hf.Name, err = d.decodeString(undecodedName) + if err != nil { + return err + } + } + hf.Value, err = d.decodeString(undecodedValue) + if err != nil { + return err + } + } d.buf = buf if it.indexed() { d.dynTab.add(hf) @@ -420,7 +433,7 @@ var errVarintOverflow = DecodingError{errors.New("varint integer overflow")} // readVarInt reads an unsigned variable length integer off the // beginning of p. n is the parameter as described in -// http://http2.github.io/http2-spec/compression.html#rfc.section.5.1. +// https://httpwg.org/specs/rfc7541.html#rfc.section.5.1. // // n must always be between 1 and 8. // @@ -459,46 +472,52 @@ func readVarInt(n byte, p []byte) (i uint64, remain []byte, err error) { return 0, origP, errNeedMore } -// readString decodes an hpack string from p. +// readString reads an hpack string from p. // -// wantStr is whether s will be used. If false, decompression and -// []byte->string garbage are skipped if s will be ignored -// anyway. This does mean that huffman decoding errors for non-indexed -// strings past the MAX_HEADER_LIST_SIZE are ignored, but the server -// is returning an error anyway, and because they're not indexed, the error -// won't affect the decoding state. -func (d *Decoder) readString(p []byte, wantStr bool) (s string, remain []byte, err error) { +// It returns a reference to the encoded string data to permit deferring decode costs +// until after the caller verifies all data is present. +func (d *Decoder) readString(p []byte) (u undecodedString, remain []byte, err error) { if len(p) == 0 { - return "", p, errNeedMore + return u, p, errNeedMore } isHuff := p[0]&128 != 0 strLen, p, err := readVarInt(7, p) if err != nil { - return "", p, err + return u, p, err } if d.maxStrLen != 0 && strLen > uint64(d.maxStrLen) { - return "", nil, ErrStringLength + // Returning an error here means Huffman decoding errors + // for non-indexed strings past the maximum string length + // are ignored, but the server is returning an error anyway + // and because the string is not indexed the error will not + // affect the decoding state. + return u, nil, ErrStringLength } if uint64(len(p)) < strLen { - return "", p, errNeedMore - } - if !isHuff { - if wantStr { - s = string(p[:strLen]) - } - return s, p[strLen:], nil + return u, p, errNeedMore } + u.isHuff = isHuff + u.b = p[:strLen] + return u, p[strLen:], nil +} - if wantStr { - buf := bufPool.Get().(*bytes.Buffer) - buf.Reset() // don't trust others - defer bufPool.Put(buf) - if err := huffmanDecode(buf, d.maxStrLen, p[:strLen]); err != nil { - buf.Reset() - return "", nil, err - } +type undecodedString struct { + isHuff bool + b []byte +} + +func (d *Decoder) decodeString(u undecodedString) (string, error) { + if !u.isHuff { + return string(u.b), nil + } + buf := bufPool.Get().(*bytes.Buffer) + buf.Reset() // don't trust others + var s string + err := huffmanDecode(buf, d.maxStrLen, u.b) + if err == nil { s = buf.String() - buf.Reset() // be nice to GC } - return s, p[strLen:], nil + buf.Reset() // be nice to GC + bufPool.Put(buf) + return s, err } diff --git a/vendor/golang.org/x/net/http2/hpack/huffman.go b/vendor/golang.org/x/net/http2/hpack/huffman.go index a1ab2f0..20d083a 100644 --- a/vendor/golang.org/x/net/http2/hpack/huffman.go +++ b/vendor/golang.org/x/net/http2/hpack/huffman.go @@ -140,50 +140,79 @@ func buildRootHuffmanNode() { panic("unexpected size") } lazyRootHuffmanNode = newInternalNode() - for i, code := range huffmanCodes { - addDecoderNode(byte(i), code, huffmanCodeLen[i]) - } -} + // allocate a leaf node for each of the 256 symbols + leaves := new([256]node) + + for sym, code := range huffmanCodes { + codeLen := huffmanCodeLen[sym] + + cur := lazyRootHuffmanNode + for codeLen > 8 { + codeLen -= 8 + i := uint8(code >> codeLen) + if cur.children[i] == nil { + cur.children[i] = newInternalNode() + } + cur = cur.children[i] + } + shift := 8 - codeLen + start, end := int(uint8(code< 8 { - codeLen -= 8 - i := uint8(code >> codeLen) - if cur.children[i] == nil { - cur.children[i] = newInternalNode() + leaves[sym].sym = byte(sym) + leaves[sym].codeLen = codeLen + for i := start; i < start+end; i++ { + cur.children[i] = &leaves[sym] } - cur = cur.children[i] - } - shift := 8 - codeLen - start, end := int(uint8(code<= 32 { + n %= 32 // Normally would be -= 32 but %= 32 informs compiler 0 <= n <= 31 for upcoming shift + y := uint32(x >> n) // Compiler doesn't combine memory writes if y isn't uint32 + dst = append(dst, byte(y>>24), byte(y>>16), byte(y>>8), byte(y)) } - dst, rembits = appendByteToHuffmanCode(dst, rembits, s[i]) } - - if rembits < 8 { - // special EOS symbol - code := uint32(0x3fffffff) - nbits := uint8(30) - - t := uint8(code >> (nbits - rembits)) - dst[len(dst)-1] |= t + // Add padding bits if necessary + if over := n % 8; over > 0 { + const ( + eosCode = 0x3fffffff + eosNBits = 30 + eosPadByte = eosCode >> (eosNBits - 8) + ) + pad := 8 - over + x = (x << pad) | (eosPadByte >> over) + n += pad // 8 now divides into n exactly } - - return dst + // n in (0, 8, 16, 24, 32) + switch n / 8 { + case 0: + return dst + case 1: + return append(dst, byte(x)) + case 2: + y := uint16(x) + return append(dst, byte(y>>8), byte(y)) + case 3: + y := uint16(x >> 8) + return append(dst, byte(y>>8), byte(y), byte(x)) + } + // case 4: + y := uint32(x) + return append(dst, byte(y>>24), byte(y>>16), byte(y>>8), byte(y)) } // HuffmanEncodeLength returns the number of bytes required to encode @@ -195,35 +224,3 @@ func HuffmanEncodeLength(s string) uint64 { } return (n + 7) / 8 } - -// appendByteToHuffmanCode appends Huffman code for c to dst and -// returns the extended buffer and the remaining bits in the last -// element. The appending is not byte aligned and the remaining bits -// in the last element of dst is given in rembits. -func appendByteToHuffmanCode(dst []byte, rembits uint8, c byte) ([]byte, uint8) { - code := huffmanCodes[c] - nbits := huffmanCodeLen[c] - - for { - if rembits > nbits { - t := uint8(code << (rembits - nbits)) - dst[len(dst)-1] |= t - rembits -= nbits - break - } - - t := uint8(code >> (nbits - rembits)) - dst[len(dst)-1] |= t - - nbits -= rembits - rembits = 8 - - if nbits == 0 { - break - } - - dst = append(dst, 0) - } - - return dst, rembits -} diff --git a/vendor/golang.org/x/net/http2/hpack/static_table.go b/vendor/golang.org/x/net/http2/hpack/static_table.go new file mode 100644 index 0000000..754a1eb --- /dev/null +++ b/vendor/golang.org/x/net/http2/hpack/static_table.go @@ -0,0 +1,188 @@ +// go generate gen.go +// Code generated by the command above; DO NOT EDIT. + +package hpack + +var staticTable = &headerFieldTable{ + evictCount: 0, + byName: map[string]uint64{ + ":authority": 1, + ":method": 3, + ":path": 5, + ":scheme": 7, + ":status": 14, + "accept-charset": 15, + "accept-encoding": 16, + "accept-language": 17, + "accept-ranges": 18, + "accept": 19, + "access-control-allow-origin": 20, + "age": 21, + "allow": 22, + "authorization": 23, + "cache-control": 24, + "content-disposition": 25, + "content-encoding": 26, + "content-language": 27, + "content-length": 28, + "content-location": 29, + "content-range": 30, + "content-type": 31, + "cookie": 32, + "date": 33, + "etag": 34, + "expect": 35, + "expires": 36, + "from": 37, + "host": 38, + "if-match": 39, + "if-modified-since": 40, + "if-none-match": 41, + "if-range": 42, + "if-unmodified-since": 43, + "last-modified": 44, + "link": 45, + "location": 46, + "max-forwards": 47, + "proxy-authenticate": 48, + "proxy-authorization": 49, + "range": 50, + "referer": 51, + "refresh": 52, + "retry-after": 53, + "server": 54, + "set-cookie": 55, + "strict-transport-security": 56, + "transfer-encoding": 57, + "user-agent": 58, + "vary": 59, + "via": 60, + "www-authenticate": 61, + }, + byNameValue: map[pairNameValue]uint64{ + {name: ":authority", value: ""}: 1, + {name: ":method", value: "GET"}: 2, + {name: ":method", value: "POST"}: 3, + {name: ":path", value: "/"}: 4, + {name: ":path", value: "/index.html"}: 5, + {name: ":scheme", value: "http"}: 6, + {name: ":scheme", value: "https"}: 7, + {name: ":status", value: "200"}: 8, + {name: ":status", value: "204"}: 9, + {name: ":status", value: "206"}: 10, + {name: ":status", value: "304"}: 11, + {name: ":status", value: "400"}: 12, + {name: ":status", value: "404"}: 13, + {name: ":status", value: "500"}: 14, + {name: "accept-charset", value: ""}: 15, + {name: "accept-encoding", value: "gzip, deflate"}: 16, + {name: "accept-language", value: ""}: 17, + {name: "accept-ranges", value: ""}: 18, + {name: "accept", value: ""}: 19, + {name: "access-control-allow-origin", value: ""}: 20, + {name: "age", value: ""}: 21, + {name: "allow", value: ""}: 22, + {name: "authorization", value: ""}: 23, + {name: "cache-control", value: ""}: 24, + {name: "content-disposition", value: ""}: 25, + {name: "content-encoding", value: ""}: 26, + {name: "content-language", value: ""}: 27, + {name: "content-length", value: ""}: 28, + {name: "content-location", value: ""}: 29, + {name: "content-range", value: ""}: 30, + {name: "content-type", value: ""}: 31, + {name: "cookie", value: ""}: 32, + {name: "date", value: ""}: 33, + {name: "etag", value: ""}: 34, + {name: "expect", value: ""}: 35, + {name: "expires", value: ""}: 36, + {name: "from", value: ""}: 37, + {name: "host", value: ""}: 38, + {name: "if-match", value: ""}: 39, + {name: "if-modified-since", value: ""}: 40, + {name: "if-none-match", value: ""}: 41, + {name: "if-range", value: ""}: 42, + {name: "if-unmodified-since", value: ""}: 43, + {name: "last-modified", value: ""}: 44, + {name: "link", value: ""}: 45, + {name: "location", value: ""}: 46, + {name: "max-forwards", value: ""}: 47, + {name: "proxy-authenticate", value: ""}: 48, + {name: "proxy-authorization", value: ""}: 49, + {name: "range", value: ""}: 50, + {name: "referer", value: ""}: 51, + {name: "refresh", value: ""}: 52, + {name: "retry-after", value: ""}: 53, + {name: "server", value: ""}: 54, + {name: "set-cookie", value: ""}: 55, + {name: "strict-transport-security", value: ""}: 56, + {name: "transfer-encoding", value: ""}: 57, + {name: "user-agent", value: ""}: 58, + {name: "vary", value: ""}: 59, + {name: "via", value: ""}: 60, + {name: "www-authenticate", value: ""}: 61, + }, + ents: []HeaderField{ + {Name: ":authority", Value: "", Sensitive: false}, + {Name: ":method", Value: "GET", Sensitive: false}, + {Name: ":method", Value: "POST", Sensitive: false}, + {Name: ":path", Value: "/", Sensitive: false}, + {Name: ":path", Value: "/index.html", Sensitive: false}, + {Name: ":scheme", Value: "http", Sensitive: false}, + {Name: ":scheme", Value: "https", Sensitive: false}, + {Name: ":status", Value: "200", Sensitive: false}, + {Name: ":status", Value: "204", Sensitive: false}, + {Name: ":status", Value: "206", Sensitive: false}, + {Name: ":status", Value: "304", Sensitive: false}, + {Name: ":status", Value: "400", Sensitive: false}, + {Name: ":status", Value: "404", Sensitive: false}, + {Name: ":status", Value: "500", Sensitive: false}, + {Name: "accept-charset", Value: "", Sensitive: false}, + {Name: "accept-encoding", Value: "gzip, deflate", Sensitive: false}, + {Name: "accept-language", Value: "", Sensitive: false}, + {Name: "accept-ranges", Value: "", Sensitive: false}, + {Name: "accept", Value: "", Sensitive: false}, + {Name: "access-control-allow-origin", Value: "", Sensitive: false}, + {Name: "age", Value: "", Sensitive: false}, + {Name: "allow", Value: "", Sensitive: false}, + {Name: "authorization", Value: "", Sensitive: false}, + {Name: "cache-control", Value: "", Sensitive: false}, + {Name: "content-disposition", Value: "", Sensitive: false}, + {Name: "content-encoding", Value: "", Sensitive: false}, + {Name: "content-language", Value: "", Sensitive: false}, + {Name: "content-length", Value: "", Sensitive: false}, + {Name: "content-location", Value: "", Sensitive: false}, + {Name: "content-range", Value: "", Sensitive: false}, + {Name: "content-type", Value: "", Sensitive: false}, + {Name: "cookie", Value: "", Sensitive: false}, + {Name: "date", Value: "", Sensitive: false}, + {Name: "etag", Value: "", Sensitive: false}, + {Name: "expect", Value: "", Sensitive: false}, + {Name: "expires", Value: "", Sensitive: false}, + {Name: "from", Value: "", Sensitive: false}, + {Name: "host", Value: "", Sensitive: false}, + {Name: "if-match", Value: "", Sensitive: false}, + {Name: "if-modified-since", Value: "", Sensitive: false}, + {Name: "if-none-match", Value: "", Sensitive: false}, + {Name: "if-range", Value: "", Sensitive: false}, + {Name: "if-unmodified-since", Value: "", Sensitive: false}, + {Name: "last-modified", Value: "", Sensitive: false}, + {Name: "link", Value: "", Sensitive: false}, + {Name: "location", Value: "", Sensitive: false}, + {Name: "max-forwards", Value: "", Sensitive: false}, + {Name: "proxy-authenticate", Value: "", Sensitive: false}, + {Name: "proxy-authorization", Value: "", Sensitive: false}, + {Name: "range", Value: "", Sensitive: false}, + {Name: "referer", Value: "", Sensitive: false}, + {Name: "refresh", Value: "", Sensitive: false}, + {Name: "retry-after", Value: "", Sensitive: false}, + {Name: "server", Value: "", Sensitive: false}, + {Name: "set-cookie", Value: "", Sensitive: false}, + {Name: "strict-transport-security", Value: "", Sensitive: false}, + {Name: "transfer-encoding", Value: "", Sensitive: false}, + {Name: "user-agent", Value: "", Sensitive: false}, + {Name: "vary", Value: "", Sensitive: false}, + {Name: "via", Value: "", Sensitive: false}, + {Name: "www-authenticate", Value: "", Sensitive: false}, + }, +} diff --git a/vendor/golang.org/x/net/http2/hpack/tables.go b/vendor/golang.org/x/net/http2/hpack/tables.go index a66cfbe..8cbdf3f 100644 --- a/vendor/golang.org/x/net/http2/hpack/tables.go +++ b/vendor/golang.org/x/net/http2/hpack/tables.go @@ -96,8 +96,7 @@ func (t *headerFieldTable) evictOldest(n int) { // meaning t.ents is reversed for dynamic tables. Hence, when t is a dynamic // table, the return value i actually refers to the entry t.ents[t.len()-i]. // -// All tables are assumed to be a dynamic tables except for the global -// staticTable pointer. +// All tables are assumed to be a dynamic tables except for the global staticTable. // // See Section 2.3.3. func (t *headerFieldTable) search(f HeaderField) (i uint64, nameValueMatch bool) { @@ -125,81 +124,6 @@ func (t *headerFieldTable) idToIndex(id uint64) uint64 { return k + 1 } -// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-07#appendix-B -var staticTable = newStaticTable() -var staticTableEntries = [...]HeaderField{ - {Name: ":authority"}, - {Name: ":method", Value: "GET"}, - {Name: ":method", Value: "POST"}, - {Name: ":path", Value: "/"}, - {Name: ":path", Value: "/index.html"}, - {Name: ":scheme", Value: "http"}, - {Name: ":scheme", Value: "https"}, - {Name: ":status", Value: "200"}, - {Name: ":status", Value: "204"}, - {Name: ":status", Value: "206"}, - {Name: ":status", Value: "304"}, - {Name: ":status", Value: "400"}, - {Name: ":status", Value: "404"}, - {Name: ":status", Value: "500"}, - {Name: "accept-charset"}, - {Name: "accept-encoding", Value: "gzip, deflate"}, - {Name: "accept-language"}, - {Name: "accept-ranges"}, - {Name: "accept"}, - {Name: "access-control-allow-origin"}, - {Name: "age"}, - {Name: "allow"}, - {Name: "authorization"}, - {Name: "cache-control"}, - {Name: "content-disposition"}, - {Name: "content-encoding"}, - {Name: "content-language"}, - {Name: "content-length"}, - {Name: "content-location"}, - {Name: "content-range"}, - {Name: "content-type"}, - {Name: "cookie"}, - {Name: "date"}, - {Name: "etag"}, - {Name: "expect"}, - {Name: "expires"}, - {Name: "from"}, - {Name: "host"}, - {Name: "if-match"}, - {Name: "if-modified-since"}, - {Name: "if-none-match"}, - {Name: "if-range"}, - {Name: "if-unmodified-since"}, - {Name: "last-modified"}, - {Name: "link"}, - {Name: "location"}, - {Name: "max-forwards"}, - {Name: "proxy-authenticate"}, - {Name: "proxy-authorization"}, - {Name: "range"}, - {Name: "referer"}, - {Name: "refresh"}, - {Name: "retry-after"}, - {Name: "server"}, - {Name: "set-cookie"}, - {Name: "strict-transport-security"}, - {Name: "transfer-encoding"}, - {Name: "user-agent"}, - {Name: "vary"}, - {Name: "via"}, - {Name: "www-authenticate"}, -} - -func newStaticTable() *headerFieldTable { - t := &headerFieldTable{} - t.init() - for _, e := range staticTableEntries[:] { - t.addEntry(e) - } - return t -} - var huffmanCodes = [256]uint32{ 0x1ff8, 0x7fffd8, diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go index 5571ccf..6f2df28 100644 --- a/vendor/golang.org/x/net/http2/http2.go +++ b/vendor/golang.org/x/net/http2/http2.go @@ -13,7 +13,6 @@ // See https://http2.github.io/ for more information on HTTP/2. // // See https://http2.golang.org/ for a test server running this code. -// package http2 // import "golang.org/x/net/http2" import ( @@ -56,14 +55,14 @@ const ( ClientPreface = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" // SETTINGS_MAX_FRAME_SIZE default - // http://http2.github.io/http2-spec/#rfc.section.6.5.2 + // https://httpwg.org/specs/rfc7540.html#rfc.section.6.5.2 initialMaxFrameSize = 16384 // NextProtoTLS is the NPN/ALPN protocol negotiated during // HTTP/2's TLS setup. NextProtoTLS = "h2" - // http://http2.github.io/http2-spec/#SettingValues + // https://httpwg.org/specs/rfc7540.html#SettingValues initialHeaderTableSize = 4096 initialWindowSize = 65535 // 6.9.2 Initial Flow Control Window Size @@ -112,7 +111,7 @@ func (st streamState) String() string { // Setting is a setting parameter: which setting it is, and its value. type Setting struct { // ID is which setting is being set. - // See http://http2.github.io/http2-spec/#SettingValues + // See https://httpwg.org/specs/rfc7540.html#SettingFormat ID SettingID // Val is the value. @@ -144,7 +143,7 @@ func (s Setting) Valid() error { } // A SettingID is an HTTP/2 setting as defined in -// http://http2.github.io/http2-spec/#iana-settings +// https://httpwg.org/specs/rfc7540.html#iana-settings type SettingID uint16 const ( @@ -176,10 +175,11 @@ func (s SettingID) String() string { // name (key). See httpguts.ValidHeaderName for the base rules. // // Further, http2 says: -// "Just as in HTTP/1.x, header field names are strings of ASCII -// characters that are compared in a case-insensitive -// fashion. However, header field names MUST be converted to -// lowercase prior to their encoding in HTTP/2. " +// +// "Just as in HTTP/1.x, header field names are strings of ASCII +// characters that are compared in a case-insensitive +// fashion. However, header field names MUST be converted to +// lowercase prior to their encoding in HTTP/2. " func validWireHeaderFieldName(v string) bool { if len(v) == 0 { return false @@ -365,8 +365,8 @@ func (s *sorter) SortStrings(ss []string) { // validPseudoPath reports whether v is a valid :path pseudo-header // value. It must be either: // -// *) a non-empty string starting with '/' -// *) the string '*', for OPTIONS requests. +// - a non-empty string starting with '/' +// - the string '*', for OPTIONS requests. // // For now this is only used a quick check for deciding when to clean // up Opaque URLs before sending requests from the Transport. diff --git a/vendor/golang.org/x/net/http2/not_go118.go b/vendor/golang.org/x/net/http2/not_go118.go new file mode 100644 index 0000000..eab532c --- /dev/null +++ b/vendor/golang.org/x/net/http2/not_go118.go @@ -0,0 +1,17 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !go1.18 +// +build !go1.18 + +package http2 + +import ( + "crypto/tls" + "net" +) + +func tlsUnderlyingConn(tc *tls.Conn) net.Conn { + return nil +} diff --git a/vendor/golang.org/x/net/http2/pipe.go b/vendor/golang.org/x/net/http2/pipe.go index 2a5399e..c15b8a7 100644 --- a/vendor/golang.org/x/net/http2/pipe.go +++ b/vendor/golang.org/x/net/http2/pipe.go @@ -30,6 +30,17 @@ type pipeBuffer interface { io.Reader } +// setBuffer initializes the pipe buffer. +// It has no effect if the pipe is already closed. +func (p *pipe) setBuffer(b pipeBuffer) { + p.mu.Lock() + defer p.mu.Unlock() + if p.err != nil || p.breakErr != nil { + return + } + p.b = b +} + func (p *pipe) Len() int { p.mu.Lock() defer p.mu.Unlock() diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go index d986655..8cb14f3 100644 --- a/vendor/golang.org/x/net/http2/server.go +++ b/vendor/golang.org/x/net/http2/server.go @@ -98,6 +98,19 @@ type Server struct { // the HTTP/2 spec's recommendations. MaxConcurrentStreams uint32 + // MaxDecoderHeaderTableSize optionally specifies the http2 + // SETTINGS_HEADER_TABLE_SIZE to send in the initial settings frame. It + // informs the remote endpoint of the maximum size of the header compression + // table used to decode header blocks, in octets. If zero, the default value + // of 4096 is used. + MaxDecoderHeaderTableSize uint32 + + // MaxEncoderHeaderTableSize optionally specifies an upper limit for the + // header compression table used for encoding request headers. Received + // SETTINGS_HEADER_TABLE_SIZE settings are capped at this limit. If zero, + // the default value of 4096 is used. + MaxEncoderHeaderTableSize uint32 + // MaxReadFrameSize optionally specifies the largest frame // this server is willing to read. A valid value is between // 16k and 16M, inclusive. If zero or otherwise invalid, a @@ -143,7 +156,7 @@ type Server struct { } func (s *Server) initialConnRecvWindowSize() int32 { - if s.MaxUploadBufferPerConnection > initialWindowSize { + if s.MaxUploadBufferPerConnection >= initialWindowSize { return s.MaxUploadBufferPerConnection } return 1 << 20 @@ -170,6 +183,20 @@ func (s *Server) maxConcurrentStreams() uint32 { return defaultMaxStreams } +func (s *Server) maxDecoderHeaderTableSize() uint32 { + if v := s.MaxDecoderHeaderTableSize; v > 0 { + return v + } + return initialHeaderTableSize +} + +func (s *Server) maxEncoderHeaderTableSize() uint32 { + if v := s.MaxEncoderHeaderTableSize; v > 0 { + return v + } + return initialHeaderTableSize +} + // maxQueuedControlFrames is the maximum number of control frames like // SETTINGS, PING and RST_STREAM that will be queued for writing before // the connection is closed to prevent memory exhaustion attacks. @@ -315,6 +342,20 @@ type ServeConnOpts struct { // requests. If nil, BaseConfig.Handler is used. If BaseConfig // or BaseConfig.Handler is nil, http.DefaultServeMux is used. Handler http.Handler + + // UpgradeRequest is an initial request received on a connection + // undergoing an h2c upgrade. The request body must have been + // completely read from the connection before calling ServeConn, + // and the 101 Switching Protocols response written. + UpgradeRequest *http.Request + + // Settings is the decoded contents of the HTTP2-Settings header + // in an h2c upgrade request. + Settings []byte + + // SawClientPreface is set if the HTTP/2 connection preface + // has already been read from the connection. + SawClientPreface bool } func (o *ServeConnOpts) context() context.Context { @@ -380,9 +421,9 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { advMaxStreams: s.maxConcurrentStreams(), initialStreamSendWindowSize: initialWindowSize, maxFrameSize: initialMaxFrameSize, - headerTableSize: initialHeaderTableSize, serveG: newGoroutineLock(), pushEnabled: true, + sawClientPreface: opts.SawClientPreface, } s.state.registerConn(sc) @@ -400,18 +441,22 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { if s.NewWriteScheduler != nil { sc.writeSched = s.NewWriteScheduler() } else { - sc.writeSched = NewRandomWriteScheduler() + sc.writeSched = NewPriorityWriteScheduler(nil) } // These start at the RFC-specified defaults. If there is a higher // configured value for inflow, that will be updated when we send a // WINDOW_UPDATE shortly after sending SETTINGS. sc.flow.add(initialWindowSize) - sc.inflow.add(initialWindowSize) + sc.inflow.init(initialWindowSize) sc.hpackEncoder = hpack.NewEncoder(&sc.headerWriteBuf) + sc.hpackEncoder.SetMaxDynamicTableSizeLimit(s.maxEncoderHeaderTableSize()) fr := NewFramer(sc.bw, c) - fr.ReadMetaHeaders = hpack.NewDecoder(initialHeaderTableSize, nil) + if s.CountError != nil { + fr.countError = s.CountError + } + fr.ReadMetaHeaders = hpack.NewDecoder(s.maxDecoderHeaderTableSize(), nil) fr.MaxHeaderListSize = sc.maxHeaderListSize() fr.SetMaxReadFrameSize(s.maxReadFrameSize()) sc.framer = fr @@ -462,9 +507,27 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { } } + if opts.Settings != nil { + fr := &SettingsFrame{ + FrameHeader: FrameHeader{valid: true}, + p: opts.Settings, + } + if err := fr.ForeachSetting(sc.processSetting); err != nil { + sc.rejectConn(ErrCodeProtocol, "invalid settings") + return + } + opts.Settings = nil + } + if hook := testHookGetServerConn; hook != nil { hook(sc) } + + if opts.UpgradeRequest != nil { + sc.upgradeRequest(opts.UpgradeRequest) + opts.UpgradeRequest = nil + } + sc.serve() } @@ -500,8 +563,8 @@ type serverConn struct { wroteFrameCh chan frameWriteResult // from writeFrameAsync -> serve, tickles more frame writes bodyReadCh chan bodyReadMsg // from handlers -> serve serveMsgCh chan interface{} // misc messages & code to send to / run on the serve loop - flow flow // conn-wide (not stream-specific) outbound flow control - inflow flow // conn-wide inbound flow control + flow outflow // conn-wide (not stream-specific) outbound flow control + inflow inflow // conn-wide inbound flow control tlsState *tls.ConnectionState // shared by all handlers, like net/http remoteAddrStr string writeSched WriteScheduler @@ -509,6 +572,7 @@ type serverConn struct { // Everything following is owned by the serve loop; use serveG.check(): serveG goroutineLock // used to verify funcs are on serve() pushEnabled bool + sawClientPreface bool // preface has already been read, used in h2c upgrade sawFirstSettings bool // got the initial SETTINGS frame after the preface needToSendSettingsAck bool unackedSettings int // how many SETTINGS have we sent without ACKs? @@ -522,9 +586,9 @@ type serverConn struct { streams map[uint32]*stream initialStreamSendWindowSize int32 maxFrameSize int32 - headerTableSize uint32 peerMaxHeaderListSize uint32 // zero means unknown (default) canonHeader map[string]string // http2-lower-case -> Go-Canonical-Case + canonHeaderKeysSize int // canonHeader keys size in bytes writingFrame bool // started writing a frame (on serve goroutine or separate) writingFrameAsync bool // started a frame on its own goroutine but haven't heard back on wroteFrameCh needsFrameFlush bool // last frame write wasn't a flush @@ -577,15 +641,17 @@ type stream struct { cancelCtx func() // owned by serverConn's serve loop: - bodyBytes int64 // body bytes seen so far - declBodyBytes int64 // or -1 if undeclared - flow flow // limits writing from Handler to client - inflow flow // what the client is allowed to POST/etc to us + bodyBytes int64 // body bytes seen so far + declBodyBytes int64 // or -1 if undeclared + flow outflow // limits writing from Handler to client + inflow inflow // what the client is allowed to POST/etc to us state streamState resetQueued bool // RST_STREAM queued for write; set by sc.resetStream gotTrailerHeader bool // HEADER frame for trailers was seen wroteHeaders bool // whether we wrote headers (not status 100) + readDeadline *time.Timer // nil if unused writeDeadline *time.Timer // nil if unused + closeErr error // set before cw is closed trailer http.Header // accumulated trailers reqTrailer http.Header // handler's Request.Trailer @@ -701,6 +767,13 @@ func (sc *serverConn) condlogf(err error, format string, args ...interface{}) { } } +// maxCachedCanonicalHeadersKeysSize is an arbitrarily-chosen limit on the size +// of the entries in the canonHeader cache. +// This should be larger than the size of unique, uncommon header keys likely to +// be sent by the peer, while not so high as to permit unreasonable memory usage +// if the peer sends an unbounded number of unique header keys. +const maxCachedCanonicalHeadersKeysSize = 2048 + func (sc *serverConn) canonicalHeader(v string) string { sc.serveG.check() buildCommonHeaderMapsOnce() @@ -716,7 +789,11 @@ func (sc *serverConn) canonicalHeader(v string) string { sc.canonHeader = make(map[string]string) } cv = http.CanonicalHeaderKey(v) - sc.canonHeader[v] = cv + size := 100 + len(v)*2 // 100 bytes of map overhead + key + value + if sc.canonHeaderKeysSize+size <= maxCachedCanonicalHeadersKeysSize { + sc.canonHeader[v] = cv + sc.canonHeaderKeysSize += size + } return cv } @@ -766,8 +843,13 @@ type frameWriteResult struct { // and then reports when it's done. // At most one goroutine can be running writeFrameAsync at a time per // serverConn. -func (sc *serverConn) writeFrameAsync(wr FrameWriteRequest) { - err := wr.write.writeFrame(sc) +func (sc *serverConn) writeFrameAsync(wr FrameWriteRequest, wd *writeData) { + var err error + if wd == nil { + err = wr.write.writeFrame(sc) + } else { + err = sc.framer.endWrite() + } sc.wroteFrameCh <- frameWriteResult{wr: wr, err: err} } @@ -817,6 +899,7 @@ func (sc *serverConn) serve() { {SettingMaxFrameSize, sc.srv.maxReadFrameSize()}, {SettingMaxConcurrentStreams, sc.advMaxStreams}, {SettingMaxHeaderListSize, sc.maxHeaderListSize()}, + {SettingHeaderTableSize, sc.srv.maxDecoderHeaderTableSize()}, {SettingInitialWindowSize, uint32(sc.srv.initialStreamRecvWindowSize())}, }, }) @@ -903,6 +986,8 @@ func (sc *serverConn) serve() { } case *startPushRequest: sc.startPush(v) + case func(*serverConn): + v(sc) default: panic(fmt.Sprintf("unexpected type %T", v)) } @@ -963,6 +1048,9 @@ var errPrefaceTimeout = errors.New("timeout waiting for client preface") // returns errPrefaceTimeout on timeout, or an error if the greeting // is invalid. func (sc *serverConn) readPreface() error { + if sc.sawClientPreface { + return nil + } errc := make(chan error, 1) go func() { // Read the client preface @@ -1168,9 +1256,16 @@ func (sc *serverConn) startFrameWrite(wr FrameWriteRequest) { sc.writingFrameAsync = false err := wr.write.writeFrame(sc) sc.wroteFrame(frameWriteResult{wr: wr, err: err}) + } else if wd, ok := wr.write.(*writeData); ok { + // Encode the frame in the serve goroutine, to ensure we don't have + // any lingering asynchronous references to data passed to Write. + // See https://go.dev/issue/58446. + sc.framer.startWriteDataPadded(wd.streamID, wd.endStream, wd.p, nil) + sc.writingFrameAsync = true + go sc.writeFrameAsync(wr, wd) } else { sc.writingFrameAsync = true - go sc.writeFrameAsync(wr) + go sc.writeFrameAsync(wr, nil) } } @@ -1323,6 +1418,9 @@ func (sc *serverConn) startGracefulShutdownInternal() { func (sc *serverConn) goAway(code ErrCode) { sc.serveG.check() if sc.inGoAway { + if sc.goAwayCode == ErrCodeNo { + sc.goAwayCode = code + } return } sc.inGoAway = true @@ -1410,6 +1508,21 @@ func (sc *serverConn) processFrame(f Frame) error { sc.sawFirstSettings = true } + // Discard frames for streams initiated after the identified last + // stream sent in a GOAWAY, or all frames after sending an error. + // We still need to return connection-level flow control for DATA frames. + // RFC 9113 Section 6.8. + if sc.inGoAway && (sc.goAwayCode != ErrCodeNo || f.Header().StreamID > sc.maxClientStreamID) { + + if f, ok := f.(*DataFrame); ok { + if !sc.inflow.take(f.Length) { + return sc.countError("data_flow", streamError(f.Header().StreamID, ErrCodeFlowControl)) + } + sc.sendWindowUpdate(nil, int(f.Length)) // conn-level + } + return nil + } + switch f := f.(type) { case *SettingsFrame: return sc.processSettings(f) @@ -1452,9 +1565,6 @@ func (sc *serverConn) processPing(f *PingFrame) error { // PROTOCOL_ERROR." return sc.countError("ping_on_stream", ConnectionError(ErrCodeProtocol)) } - if sc.inGoAway && sc.goAwayCode != ErrCodeNo { - return nil - } sc.writeFrame(FrameWriteRequest{write: writePingAck{f}}) return nil } @@ -1516,6 +1626,9 @@ func (sc *serverConn) closeStream(st *stream, err error) { panic(fmt.Sprintf("invariant; can't close stream in state %v", st.state)) } st.state = stateClosed + if st.readDeadline != nil { + st.readDeadline.Stop() + } if st.writeDeadline != nil { st.writeDeadline.Stop() } @@ -1541,6 +1654,14 @@ func (sc *serverConn) closeStream(st *stream, err error) { p.CloseWithError(err) } + if e, ok := err.(StreamError); ok { + if e.Cause != nil { + err = e.Cause + } else { + err = errStreamClosed + } + } + st.closeErr = err st.cw.Close() // signals Handler's CloseNotifier, unblocks writes, etc sc.writeSched.CloseStream(st.id) } @@ -1583,7 +1704,6 @@ func (sc *serverConn) processSetting(s Setting) error { } switch s.ID { case SettingHeaderTableSize: - sc.headerTableSize = s.Val sc.hpackEncoder.SetMaxDynamicTableSize(s.Val) case SettingEnablePush: sc.pushEnabled = s.Val != 0 @@ -1637,16 +1757,6 @@ func (sc *serverConn) processSettingInitialWindowSize(val uint32) error { func (sc *serverConn) processData(f *DataFrame) error { sc.serveG.check() id := f.Header().StreamID - if sc.inGoAway && (sc.goAwayCode != ErrCodeNo || id > sc.maxClientStreamID) { - // Discard all DATA frames if the GOAWAY is due to an - // error, or: - // - // Section 6.8: After sending a GOAWAY frame, the sender - // can discard frames for streams initiated by the - // receiver with identifiers higher than the identified - // last stream. - return nil - } data := f.Data() state, st := sc.state(id) @@ -1677,14 +1787,9 @@ func (sc *serverConn) processData(f *DataFrame) error { // But still enforce their connection-level flow control, // and return any flow control bytes since we're not going // to consume them. - if sc.inflow.available() < int32(f.Length) { + if !sc.inflow.take(f.Length) { return sc.countError("data_flow", streamError(id, ErrCodeFlowControl)) } - // Deduct the flow control from inflow, since we're - // going to immediately add it back in - // sendWindowUpdate, which also schedules sending the - // frames. - sc.inflow.take(int32(f.Length)) sc.sendWindowUpdate(nil, int(f.Length)) // conn-level if st != nil && st.resetQueued { @@ -1699,6 +1804,11 @@ func (sc *serverConn) processData(f *DataFrame) error { // Sender sending more than they'd declared? if st.declBodyBytes != -1 && st.bodyBytes+int64(len(data)) > st.declBodyBytes { + if !sc.inflow.take(f.Length) { + return sc.countError("data_flow", streamError(id, ErrCodeFlowControl)) + } + sc.sendWindowUpdate(nil, int(f.Length)) // conn-level + st.body.CloseWithError(fmt.Errorf("sender tried to send more than declared Content-Length of %d bytes", st.declBodyBytes)) // RFC 7540, sec 8.1.2.6: A request or response is also malformed if the // value of a content-length header field does not equal the sum of the @@ -1707,10 +1817,9 @@ func (sc *serverConn) processData(f *DataFrame) error { } if f.Length > 0 { // Check whether the client has flow control quota. - if st.inflow.available() < int32(f.Length) { + if !takeInflows(&sc.inflow, &st.inflow, f.Length) { return sc.countError("flow_on_data_length", streamError(id, ErrCodeFlowControl)) } - st.inflow.take(int32(f.Length)) if len(data) > 0 { wrote, err := st.body.Write(data) @@ -1726,10 +1835,12 @@ func (sc *serverConn) processData(f *DataFrame) error { // Return any padded flow control now, since we won't // refund it later on body reads. - if pad := int32(f.Length) - int32(len(data)); pad > 0 { - sc.sendWindowUpdate32(nil, pad) - sc.sendWindowUpdate32(st, pad) - } + // Call sendWindowUpdate even if there is no padding, + // to return buffered flow control credit if the sent + // window has shrunk. + pad := int32(f.Length) - int32(len(data)) + sc.sendWindowUpdate32(nil, pad) + sc.sendWindowUpdate32(st, pad) } if f.StreamEnded() { st.endStream() @@ -1783,19 +1894,27 @@ func (st *stream) copyTrailersToHandlerRequest() { } } +// onReadTimeout is run on its own goroutine (from time.AfterFunc) +// when the stream's ReadTimeout has fired. +func (st *stream) onReadTimeout() { + // Wrap the ErrDeadlineExceeded to avoid callers depending on us + // returning the bare error. + st.body.CloseWithError(fmt.Errorf("%w", os.ErrDeadlineExceeded)) +} + // onWriteTimeout is run on its own goroutine (from time.AfterFunc) // when the stream's WriteTimeout has fired. func (st *stream) onWriteTimeout() { - st.sc.writeFrameFromHandler(FrameWriteRequest{write: streamError(st.id, ErrCodeInternal)}) + st.sc.writeFrameFromHandler(FrameWriteRequest{write: StreamError{ + StreamID: st.id, + Code: ErrCodeInternal, + Cause: os.ErrDeadlineExceeded, + }}) } func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error { sc.serveG.check() id := f.StreamID - if sc.inGoAway { - // Ignore. - return nil - } // http://tools.ietf.org/html/rfc7540#section-5.1.1 // Streams initiated by a client MUST use odd-numbered stream // identifiers. [...] An endpoint that receives an unexpected @@ -1898,12 +2017,35 @@ func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error { // (in Go 1.8), though. That's a more sane option anyway. if sc.hs.ReadTimeout != 0 { sc.conn.SetReadDeadline(time.Time{}) + if st.body != nil { + st.readDeadline = time.AfterFunc(sc.hs.ReadTimeout, st.onReadTimeout) + } } go sc.runHandler(rw, req, handler) return nil } +func (sc *serverConn) upgradeRequest(req *http.Request) { + sc.serveG.check() + id := uint32(1) + sc.maxClientStreamID = id + st := sc.newStream(id, 0, stateHalfClosedRemote) + st.reqTrailer = req.Trailer + if st.reqTrailer != nil { + st.trailer = make(http.Header) + } + rw := sc.newResponseWriter(st, req) + + // Disable any read deadline set by the net/http package + // prior to the upgrade. + if sc.hs.ReadTimeout != 0 { + sc.conn.SetReadDeadline(time.Time{}) + } + + go sc.runHandler(rw, req, sc.handler.ServeHTTP) +} + func (st *stream) processTrailerHeaders(f *MetaHeadersFrame) error { sc := st.sc sc.serveG.check() @@ -1946,9 +2088,6 @@ func (sc *serverConn) checkPriority(streamID uint32, p PriorityParam) error { } func (sc *serverConn) processPriority(f *PriorityFrame) error { - if sc.inGoAway { - return nil - } if err := sc.checkPriority(f.StreamID, f.PriorityParam); err != nil { return err } @@ -1973,8 +2112,7 @@ func (sc *serverConn) newStream(id, pusherID uint32, state streamState) *stream st.cw.Init() st.flow.conn = &sc.flow // link to conn-level counter st.flow.add(sc.initialStreamSendWindowSize) - st.inflow.conn = &sc.inflow // link to conn-level counter - st.inflow.add(sc.srv.initialStreamRecvWindowSize()) + st.inflow.init(sc.srv.initialStreamRecvWindowSize()) if sc.hs.WriteTimeout != 0 { st.writeDeadline = time.AfterFunc(sc.hs.WriteTimeout, st.onWriteTimeout) } @@ -2006,7 +2144,7 @@ func (sc *serverConn) newWriterAndRequest(st *stream, f *MetaHeadersFrame) (*res isConnect := rp.method == "CONNECT" if isConnect { if rp.path != "" || rp.scheme != "" || rp.authority == "" { - return nil, nil, streamError(f.StreamID, ErrCodeProtocol) + return nil, nil, sc.countError("bad_connect", streamError(f.StreamID, ErrCodeProtocol)) } } else if rp.method == "" || rp.path == "" || (rp.scheme != "https" && rp.scheme != "http") { // See 8.1.2.6 Malformed Requests and Responses: @@ -2022,12 +2160,6 @@ func (sc *serverConn) newWriterAndRequest(st *stream, f *MetaHeadersFrame) (*res return nil, nil, sc.countError("bad_path_method", streamError(f.StreamID, ErrCodeProtocol)) } - bodyOpen := !f.StreamEnded() - if rp.method == "HEAD" && bodyOpen { - // HEAD requests can't have bodies - return nil, nil, sc.countError("head_body", streamError(f.StreamID, ErrCodeProtocol)) - } - rp.header = make(http.Header) for _, hf := range f.RegularFields() { rp.header.Add(sc.canonicalHeader(hf.Name), hf.Value) @@ -2040,6 +2172,7 @@ func (sc *serverConn) newWriterAndRequest(st *stream, f *MetaHeadersFrame) (*res if err != nil { return nil, nil, err } + bodyOpen := !f.StreamEnded() if bodyOpen { if vv, ok := rp.header["Content-Length"]; ok { if cl, err := strconv.ParseUint(vv[0], 10, 63); err == nil { @@ -2071,7 +2204,7 @@ func (sc *serverConn) newWriterAndRequestNoBody(st *stream, rp requestParam) (*r tlsState = sc.tlsState } - needsContinue := rp.header.Get("Expect") == "100-continue" + needsContinue := httpguts.HeaderValuesContainsToken(rp.header["Expect"], "100-continue") if needsContinue { rp.header.Del("Expect") } @@ -2134,6 +2267,11 @@ func (sc *serverConn) newWriterAndRequestNoBody(st *stream, rp requestParam) (*r } req = req.WithContext(st.ctx) + rw := sc.newResponseWriter(st, req) + return rw, req, nil +} + +func (sc *serverConn) newResponseWriter(st *stream, req *http.Request) *responseWriter { rws := responseWriterStatePool.Get().(*responseWriterState) bwSave := rws.bw *rws = responseWriterState{} // zero all the fields @@ -2142,10 +2280,7 @@ func (sc *serverConn) newWriterAndRequestNoBody(st *stream, rp requestParam) (*r rws.bw.Reset(chunkWriter{rws}) rws.stream = st rws.req = req - rws.body = body - - rw := &responseWriter{rws: rws} - return rw, req, nil + return &responseWriter{rws: rws} } // Run on its own goroutine. @@ -2153,6 +2288,9 @@ func (sc *serverConn) runHandler(rw *responseWriter, req *http.Request, handler didPanic := true defer func() { rw.rws.stream.cancelCtx() + if req.MultipartForm != nil { + req.MultipartForm.RemoveAll() + } if didPanic { e := recover() sc.writeFrameFromHandler(FrameWriteRequest{ @@ -2256,47 +2394,28 @@ func (sc *serverConn) noteBodyRead(st *stream, n int) { } // st may be nil for conn-level -func (sc *serverConn) sendWindowUpdate(st *stream, n int) { - sc.serveG.check() - // "The legal range for the increment to the flow control - // window is 1 to 2^31-1 (2,147,483,647) octets." - // A Go Read call on 64-bit machines could in theory read - // a larger Read than this. Very unlikely, but we handle it here - // rather than elsewhere for now. - const maxUint31 = 1<<31 - 1 - for n >= maxUint31 { - sc.sendWindowUpdate32(st, maxUint31) - n -= maxUint31 - } - sc.sendWindowUpdate32(st, int32(n)) +func (sc *serverConn) sendWindowUpdate32(st *stream, n int32) { + sc.sendWindowUpdate(st, int(n)) } // st may be nil for conn-level -func (sc *serverConn) sendWindowUpdate32(st *stream, n int32) { +func (sc *serverConn) sendWindowUpdate(st *stream, n int) { sc.serveG.check() - if n == 0 { - return - } - if n < 0 { - panic("negative update") - } var streamID uint32 - if st != nil { + var send int32 + if st == nil { + send = sc.inflow.add(n) + } else { streamID = st.id + send = st.inflow.add(n) + } + if send == 0 { + return } sc.writeFrame(FrameWriteRequest{ - write: writeWindowUpdate{streamID: streamID, n: uint32(n)}, + write: writeWindowUpdate{streamID: streamID, n: uint32(send)}, stream: st, }) - var ok bool - if st == nil { - ok = sc.inflow.add(n) - } else { - ok = st.inflow.add(n) - } - if !ok { - panic("internal error; sent too many window updates without decrements?") - } } // requestBody is the Handler's Request.Body type. @@ -2305,17 +2424,18 @@ type requestBody struct { _ incomparable stream *stream conn *serverConn - closed bool // for use by Close only - sawEOF bool // for use by Read only - pipe *pipe // non-nil if we have a HTTP entity message body - needsContinue bool // need to send a 100-continue + closeOnce sync.Once // for use by Close only + sawEOF bool // for use by Read only + pipe *pipe // non-nil if we have a HTTP entity message body + needsContinue bool // need to send a 100-continue } func (b *requestBody) Close() error { - if b.pipe != nil && !b.closed { - b.pipe.BreakWithError(errClosedBody) - } - b.closed = true + b.closeOnce.Do(func() { + if b.pipe != nil { + b.pipe.BreakWithError(errClosedBody) + } + }) return nil } @@ -2359,7 +2479,6 @@ type responseWriterState struct { // immutable within a request: stream *stream req *http.Request - body *requestBody // to close at end of request, if DATA frames didn't conn *serverConn // TODO: adjust buffer writing sizes based on server config, frame size updates from peer, etc @@ -2384,7 +2503,15 @@ type responseWriterState struct { type chunkWriter struct{ rws *responseWriterState } -func (cw chunkWriter) Write(p []byte) (n int, err error) { return cw.rws.writeChunk(p) } +func (cw chunkWriter) Write(p []byte) (n int, err error) { + n, err = cw.rws.writeChunk(p) + if err == errStreamClosed { + // If writing failed because the stream has been closed, + // return the reason it was closed. + err = cw.rws.stream.closeErr + } + return n, err +} func (rws *responseWriterState) hasTrailers() bool { return len(rws.trailers) > 0 } @@ -2423,6 +2550,10 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { rws.writeHeader(200) } + if rws.handlerDone { + rws.promoteUndeclaredTrailers() + } + isHeadResp := rws.req.Method == "HEAD" if !rws.sentHeader { rws.sentHeader = true @@ -2494,10 +2625,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { return 0, nil } - if rws.handlerDone { - rws.promoteUndeclaredTrailers() - } - // only send trailers if they have actually been defined by the // server handler. hasNonemptyTrailers := rws.hasNonemptyTrailers() @@ -2535,8 +2662,9 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { // prior to the headers being written. If the set of trailers is fixed // or known before the header is written, the normal Go trailers mechanism // is preferred: -// https://golang.org/pkg/net/http/#ResponseWriter -// https://golang.org/pkg/net/http/#example_ResponseWriter_trailers +// +// https://golang.org/pkg/net/http/#ResponseWriter +// https://golang.org/pkg/net/http/#example_ResponseWriter_trailers const TrailerPrefix = "Trailer:" // promoteUndeclaredTrailers permits http.Handlers to set trailers @@ -2577,23 +2705,85 @@ func (rws *responseWriterState) promoteUndeclaredTrailers() { } } +func (w *responseWriter) SetReadDeadline(deadline time.Time) error { + st := w.rws.stream + if !deadline.IsZero() && deadline.Before(time.Now()) { + // If we're setting a deadline in the past, reset the stream immediately + // so writes after SetWriteDeadline returns will fail. + st.onReadTimeout() + return nil + } + w.rws.conn.sendServeMsg(func(sc *serverConn) { + if st.readDeadline != nil { + if !st.readDeadline.Stop() { + // Deadline already exceeded, or stream has been closed. + return + } + } + if deadline.IsZero() { + st.readDeadline = nil + } else if st.readDeadline == nil { + st.readDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onReadTimeout) + } else { + st.readDeadline.Reset(deadline.Sub(time.Now())) + } + }) + return nil +} + +func (w *responseWriter) SetWriteDeadline(deadline time.Time) error { + st := w.rws.stream + if !deadline.IsZero() && deadline.Before(time.Now()) { + // If we're setting a deadline in the past, reset the stream immediately + // so writes after SetWriteDeadline returns will fail. + st.onWriteTimeout() + return nil + } + w.rws.conn.sendServeMsg(func(sc *serverConn) { + if st.writeDeadline != nil { + if !st.writeDeadline.Stop() { + // Deadline already exceeded, or stream has been closed. + return + } + } + if deadline.IsZero() { + st.writeDeadline = nil + } else if st.writeDeadline == nil { + st.writeDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onWriteTimeout) + } else { + st.writeDeadline.Reset(deadline.Sub(time.Now())) + } + }) + return nil +} + func (w *responseWriter) Flush() { + w.FlushError() +} + +func (w *responseWriter) FlushError() error { rws := w.rws if rws == nil { panic("Header called after Handler finished") } + var err error if rws.bw.Buffered() > 0 { - if err := rws.bw.Flush(); err != nil { - // Ignore the error. The frame writer already knows. - return - } + err = rws.bw.Flush() } else { // The bufio.Writer won't call chunkWriter.Write // (writeChunk with zero bytes, so we have to do it // ourselves to force the HTTP response header and/or // final DATA frame (with END_STREAM) to be sent. - rws.writeChunk(nil) + _, err = chunkWriter{rws}.Write(nil) + if err == nil { + select { + case <-rws.stream.cw: + err = rws.stream.closeErr + default: + } + } } + return err } func (w *responseWriter) CloseNotify() <-chan bool { @@ -2632,8 +2822,7 @@ func checkWriteHeaderCode(code int) { // Issue 22880: require valid WriteHeader status codes. // For now we only enforce that it's three digits. // In the future we might block things over 599 (600 and above aren't defined - // at http://httpwg.org/specs/rfc7231.html#status.codes) - // and we might block under 200 (once we have more mature 1xx support). + // at http://httpwg.org/specs/rfc7231.html#status.codes). // But for now any three digits. // // We used to send "HTTP/1.1 000 0" on the wire in responses but there's @@ -2654,13 +2843,41 @@ func (w *responseWriter) WriteHeader(code int) { } func (rws *responseWriterState) writeHeader(code int) { - if !rws.wroteHeader { - checkWriteHeaderCode(code) - rws.wroteHeader = true - rws.status = code - if len(rws.handlerHeader) > 0 { - rws.snapHeader = cloneHeader(rws.handlerHeader) + if rws.wroteHeader { + return + } + + checkWriteHeaderCode(code) + + // Handle informational headers + if code >= 100 && code <= 199 { + // Per RFC 8297 we must not clear the current header map + h := rws.handlerHeader + + _, cl := h["Content-Length"] + _, te := h["Transfer-Encoding"] + if cl || te { + h = h.Clone() + h.Del("Content-Length") + h.Del("Transfer-Encoding") + } + + if rws.conn.writeHeaders(rws.stream, &writeResHeaders{ + streamID: rws.stream.id, + httpResCode: code, + h: h, + endStream: rws.handlerDone && !rws.hasTrailers(), + }) != nil { + rws.dirty = true } + + return + } + + rws.wroteHeader = true + rws.status = code + if len(rws.handlerHeader) > 0 { + rws.snapHeader = cloneHeader(rws.handlerHeader) } } diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go index dc4bdde..05ba23d 100644 --- a/vendor/golang.org/x/net/http2/transport.go +++ b/vendor/golang.org/x/net/http2/transport.go @@ -16,7 +16,7 @@ import ( "errors" "fmt" "io" - "io/ioutil" + "io/fs" "log" "math" mathrand "math/rand" @@ -24,6 +24,7 @@ import ( "net/http" "net/http/httptrace" "net/textproto" + "os" "sort" "strconv" "strings" @@ -46,10 +47,6 @@ const ( // we buffer per stream. transportDefaultStreamFlow = 4 << 20 - // transportDefaultStreamMinRefresh is the minimum number of bytes we'll send - // a stream-level WINDOW_UPDATE for at a time. - transportDefaultStreamMinRefresh = 4 << 10 - defaultUserAgent = "Go-http-client/2.0" // initialMaxConcurrentStreams is a connections maxConcurrentStreams until @@ -67,13 +64,23 @@ const ( // A Transport internally caches connections to servers. It is safe // for concurrent use by multiple goroutines. type Transport struct { - // DialTLS specifies an optional dial function for creating - // TLS connections for requests. + // DialTLSContext specifies an optional dial function with context for + // creating TLS connections for requests. // - // If DialTLS is nil, tls.Dial is used. + // If DialTLSContext and DialTLS is nil, tls.Dial is used. // // If the returned net.Conn has a ConnectionState method like tls.Conn, // it will be used to set http.Response.TLS. + DialTLSContext func(ctx context.Context, network, addr string, cfg *tls.Config) (net.Conn, error) + + // DialTLS specifies an optional dial function for creating + // TLS connections for requests. + // + // If DialTLSContext and DialTLS is nil, tls.Dial is used. + // + // Deprecated: Use DialTLSContext instead, which allows the transport + // to cancel dials as soon as they are no longer needed. + // If both are set, DialTLSContext takes priority. DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error) // TLSClientConfig specifies the TLS configuration to use with @@ -107,6 +114,28 @@ type Transport struct { // to mean no limit. MaxHeaderListSize uint32 + // MaxReadFrameSize is the http2 SETTINGS_MAX_FRAME_SIZE to send in the + // initial settings frame. It is the size in bytes of the largest frame + // payload that the sender is willing to receive. If 0, no setting is + // sent, and the value is provided by the peer, which should be 16384 + // according to the spec: + // https://datatracker.ietf.org/doc/html/rfc7540#section-6.5.2. + // Values are bounded in the range 16k to 16M. + MaxReadFrameSize uint32 + + // MaxDecoderHeaderTableSize optionally specifies the http2 + // SETTINGS_HEADER_TABLE_SIZE to send in the initial settings frame. It + // informs the remote endpoint of the maximum size of the header compression + // table used to decode header blocks, in octets. If zero, the default value + // of 4096 is used. + MaxDecoderHeaderTableSize uint32 + + // MaxEncoderHeaderTableSize optionally specifies an upper limit for the + // header compression table used for encoding request headers. Received + // SETTINGS_HEADER_TABLE_SIZE settings are capped at this limit. If zero, + // the default value of 4096 is used. + MaxEncoderHeaderTableSize uint32 + // StrictMaxConcurrentStreams controls whether the server's // SETTINGS_MAX_CONCURRENT_STREAMS should be respected // globally. If false, new TCP connections are created to the @@ -130,6 +159,11 @@ type Transport struct { // Defaults to 15s. PingTimeout time.Duration + // WriteByteTimeout is the timeout after which the connection will be + // closed no data can be written to it. The timeout begins when data is + // available to write, and is extended whenever any bytes are written. + WriteByteTimeout time.Duration + // CountError, if non-nil, is called on HTTP/2 transport errors. // It's intended to increment a metric for monitoring, such // as an expvar or Prometheus metric. @@ -155,6 +189,19 @@ func (t *Transport) maxHeaderListSize() uint32 { return t.MaxHeaderListSize } +func (t *Transport) maxFrameReadSize() uint32 { + if t.MaxReadFrameSize == 0 { + return 0 // use the default provided by the peer + } + if t.MaxReadFrameSize < minMaxFrameSize { + return minMaxFrameSize + } + if t.MaxReadFrameSize > maxFrameSize { + return maxFrameSize + } + return t.MaxReadFrameSize +} + func (t *Transport) disableCompression() bool { return t.DisableCompression || (t.t1 != nil && t.t1.DisableCompression) } @@ -242,11 +289,13 @@ func (t *Transport) initConnPool() { // ClientConn is the state of a single HTTP/2 client connection to an // HTTP/2 server. type ClientConn struct { - t *Transport - tconn net.Conn // usually *tls.Conn, except specialized impls - tlsState *tls.ConnectionState // nil only for specialized impls - reused uint32 // whether conn is being reused; atomic - singleUse bool // whether being used for a single http.Request + t *Transport + tconn net.Conn // usually *tls.Conn, except specialized impls + tconnClosed bool + tlsState *tls.ConnectionState // nil only for specialized impls + reused uint32 // whether conn is being reused; atomic + singleUse bool // whether being used for a single http.Request + getConnCalled bool // used by clientConnPool // readLoop goroutine fields: readerDone chan struct{} // closed on error @@ -257,8 +306,8 @@ type ClientConn struct { mu sync.Mutex // guards following cond *sync.Cond // hold mu; broadcast on flow/closed changes - flow flow // our conn-level flow control quota (cs.flow is per stream) - inflow flow // peer's conn-level flow control + flow outflow // our conn-level flow control quota (cs.outflow is per stream) + inflow inflow // peer's conn-level flow control doNotReuse bool // whether conn is marked to not be reused for any future requests closing bool closed bool @@ -267,6 +316,7 @@ type ClientConn struct { goAway *GoAwayFrame // if non-nil, the GoAwayFrame we received goAwayDebug string // goAway frame's debug data, retained as a string streams map[uint32]*clientStream // client-initiated + streamsReserved int // incr by ReserveNewRequest; decr on RoundTrip nextStreamID uint32 pendingRequests int // requests blocked and waiting to be sent because len(streams) == maxConcurrentStreams pings map[[8]byte]chan struct{} // in flight ping data to notification channel @@ -274,10 +324,11 @@ type ClientConn struct { lastActive time.Time lastIdle time.Time // time last idle // Settings from peer: (also guarded by wmu) - maxFrameSize uint32 - maxConcurrentStreams uint32 - peerMaxHeaderListSize uint64 - initialWindowSize uint32 + maxFrameSize uint32 + maxConcurrentStreams uint32 + peerMaxHeaderListSize uint64 + peerMaxHeaderTableSize uint32 + initialWindowSize uint32 // reqHeaderMu is a 1-element semaphore channel controlling access to sending new requests. // Write to reqHeaderMu to lock it, read from it to unlock. @@ -298,56 +349,54 @@ type ClientConn struct { // clientStream is the state for a single HTTP/2 stream. One of these // is created for each Transport.RoundTrip call. type clientStream struct { - cc *ClientConn - req *http.Request + cc *ClientConn + + // Fields of Request that we may access even after the response body is closed. + ctx context.Context + reqCancel <-chan struct{} + trace *httptrace.ClientTrace // or nil ID uint32 - resc chan resAndError bufPipe pipe // buffered pipe with the flow-controlled response payload - startedWrite bool // started request body write; guarded by cc.mu requestedGzip bool - on100 func() // optional code to run if get a 100 continue response + isHead bool - flow flow // guarded by cc.mu - inflow flow // guarded by cc.mu - bytesRemain int64 // -1 means unknown; owned by transportResponseBody.Read - readErr error // sticky read error; owned by transportResponseBody.Read - stopReqBody error // if non-nil, stop writing req body; guarded by cc.mu - didReset bool // whether we sent a RST_STREAM to the server; guarded by cc.mu + abortOnce sync.Once + abort chan struct{} // closed to signal stream should end immediately + abortErr error // set if abort is closed - peerReset chan struct{} // closed on peer reset - resetErr error // populated before peerReset is closed + peerClosed chan struct{} // closed when the peer sends an END_STREAM flag + donec chan struct{} // closed after the stream is in the closed state + on100 chan struct{} // buffered; written to if a 100 is received - done chan struct{} // closed when stream remove from cc.streams map; close calls guarded by cc.mu + respHeaderRecv chan struct{} // closed when headers are received + res *http.Response // set if respHeaderRecv is closed + + flow outflow // guarded by cc.mu + inflow inflow // guarded by cc.mu + bytesRemain int64 // -1 means unknown; owned by transportResponseBody.Read + readErr error // sticky read error; owned by transportResponseBody.Read + + reqBody io.ReadCloser + reqBodyContentLength int64 // -1 means unknown + reqBodyClosed chan struct{} // guarded by cc.mu; non-nil on Close, closed when done + + // owned by writeRequest: + sentEndStream bool // sent an END_STREAM flag to the peer + sentHeaders bool // owned by clientConnReadLoop: firstByte bool // got the first response byte pastHeaders bool // got first MetaHeadersFrame (actual headers) pastTrailers bool // got optional second MetaHeadersFrame (trailers) num1xx uint8 // number of 1xx responses seen + readClosed bool // peer sent an END_STREAM flag + readAborted bool // read loop reset the stream trailer http.Header // accumulated trailers resTrailer *http.Header // client's Response.Trailer } -// awaitRequestCancel waits for the user to cancel a request or for the done -// channel to be signaled. A non-nil error is returned only if the request was -// canceled. -func awaitRequestCancel(req *http.Request, done <-chan struct{}) error { - ctx := req.Context() - if req.Cancel == nil && ctx.Done() == nil { - return nil - } - select { - case <-req.Cancel: - return errRequestCanceled - case <-ctx.Done(): - return ctx.Err() - case <-done: - return nil - } -} - var got1xxFuncForTests func(int, textproto.MIMEHeader) error // get1xxTraceFunc returns the value of request's httptrace.ClientTrace.Got1xxResponse func, @@ -359,79 +408,75 @@ func (cs *clientStream) get1xxTraceFunc() func(int, textproto.MIMEHeader) error return traceGot1xxResponseFunc(cs.trace) } -// awaitRequestCancel waits for the user to cancel a request, its context to -// expire, or for the request to be done (any way it might be removed from the -// cc.streams map: peer reset, successful completion, TCP connection breakage, -// etc). If the request is canceled, then cs will be canceled and closed. -func (cs *clientStream) awaitRequestCancel(req *http.Request) { - if err := awaitRequestCancel(req, cs.done); err != nil { - cs.cancelStream() - cs.bufPipe.CloseWithError(err) - } +func (cs *clientStream) abortStream(err error) { + cs.cc.mu.Lock() + defer cs.cc.mu.Unlock() + cs.abortStreamLocked(err) } -func (cs *clientStream) cancelStream() { - cc := cs.cc - cc.mu.Lock() - didReset := cs.didReset - cs.didReset = true - cc.mu.Unlock() - - if !didReset { - cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) - cc.forgetStreamID(cs.ID) +func (cs *clientStream) abortStreamLocked(err error) { + cs.abortOnce.Do(func() { + cs.abortErr = err + close(cs.abort) + }) + if cs.reqBody != nil { + cs.closeReqBodyLocked() } -} - -// checkResetOrDone reports any error sent in a RST_STREAM frame by the -// server, or errStreamClosed if the stream is complete. -func (cs *clientStream) checkResetOrDone() error { - select { - case <-cs.peerReset: - return cs.resetErr - case <-cs.done: - return errStreamClosed - default: - return nil + // TODO(dneil): Clean up tests where cs.cc.cond is nil. + if cs.cc.cond != nil { + // Wake up writeRequestBody if it is waiting on flow control. + cs.cc.cond.Broadcast() } } -func (cs *clientStream) getStartedWrite() bool { +func (cs *clientStream) abortRequestBodyWrite() { cc := cs.cc cc.mu.Lock() defer cc.mu.Unlock() - return cs.startedWrite + if cs.reqBody != nil && cs.reqBodyClosed == nil { + cs.closeReqBodyLocked() + cc.cond.Broadcast() + } } -func (cs *clientStream) abortRequestBodyWrite(err error) { - if err == nil { - panic("nil error") - } - cc := cs.cc - cc.mu.Lock() - if cs.stopReqBody == nil { - cs.stopReqBody = err - cc.cond.Broadcast() - // Close the body after releasing the mutex, in case it blocks. - if body := cs.req.Body; body != nil { - defer body.Close() - } +func (cs *clientStream) closeReqBodyLocked() { + if cs.reqBodyClosed != nil { + return } - cc.mu.Unlock() + cs.reqBodyClosed = make(chan struct{}) + reqBodyClosed := cs.reqBodyClosed + go func() { + cs.reqBody.Close() + close(reqBodyClosed) + }() } type stickyErrWriter struct { - w io.Writer - err *error + conn net.Conn + timeout time.Duration + err *error } func (sew stickyErrWriter) Write(p []byte) (n int, err error) { if *sew.err != nil { return 0, *sew.err } - n, err = sew.w.Write(p) - *sew.err = err - return + for { + if sew.timeout != 0 { + sew.conn.SetWriteDeadline(time.Now().Add(sew.timeout)) + } + nn, err := sew.conn.Write(p[n:]) + n += nn + if n < len(p) && nn > 0 && errors.Is(err, os.ErrDeadlineExceeded) { + // Keep extending the deadline so long as we're making progress. + continue + } + if sew.timeout != 0 { + sew.conn.SetWriteDeadline(time.Time{}) + } + *sew.err = err + return n, err + } } // noCachedConnError is the concrete type of ErrNoCachedConn, which @@ -489,6 +534,15 @@ func authorityAddr(scheme string, authority string) (addr string) { return net.JoinHostPort(host, port) } +var retryBackoffHook func(time.Duration) *time.Timer + +func backoffNewTimer(d time.Duration) *time.Timer { + if retryBackoffHook != nil { + return retryBackoffHook(d) + } + return time.NewTimer(d) +} + // RoundTripOpt is like RoundTrip, but takes options. func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Response, error) { if !(req.URL.Scheme == "https" || (req.URL.Scheme == "http" && t.AllowHTTP)) { @@ -504,31 +558,30 @@ func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Res } reused := !atomic.CompareAndSwapUint32(&cc.reused, 0, 1) traceGotConn(req, cc, reused) - body := req.Body - res, gotErrAfterReqBodyWrite, err := cc.roundTrip(req) + res, err := cc.RoundTrip(req) if err != nil && retry <= 6 { - if req, err = shouldRetryRequest(req, err, gotErrAfterReqBodyWrite); err == nil { + if req, err = shouldRetryRequest(req, err); err == nil { // After the first retry, do exponential backoff with 10% jitter. if retry == 0 { + t.vlogf("RoundTrip retrying after failure: %v", err) continue } backoff := float64(uint(1) << (uint(retry) - 1)) backoff += backoff * (0.1 * mathrand.Float64()) + d := time.Second * time.Duration(backoff) + timer := backoffNewTimer(d) select { - case <-time.After(time.Second * time.Duration(backoff)): + case <-timer.C: + t.vlogf("RoundTrip retrying after failure: %v", err) continue case <-req.Context().Done(): + timer.Stop() err = req.Context().Err() } } } if err != nil { t.vlogf("RoundTrip failure: %v", err) - // If the error occurred after the body write started, - // the body writer will close the body. Otherwise, do so here. - if body != nil && !gotErrAfterReqBodyWrite { - body.Close() - } return nil, err } return res, nil @@ -554,7 +607,7 @@ var ( // response headers. It is always called with a non-nil error. // It returns either a request to retry (either the same request, or a // modified clone), or an error if the request can't be replayed. -func shouldRetryRequest(req *http.Request, err error, afterBodyWrite bool) (*http.Request, error) { +func shouldRetryRequest(req *http.Request, err error) (*http.Request, error) { if !canRetryError(err) { return nil, err } @@ -567,7 +620,6 @@ func shouldRetryRequest(req *http.Request, err error, afterBodyWrite bool) (*htt // If the request body can be reset back to its original // state via the optional req.GetBody, do that. if req.GetBody != nil { - req.Body.Close() body, err := req.GetBody() if err != nil { return nil, err @@ -579,10 +631,8 @@ func shouldRetryRequest(req *http.Request, err error, afterBodyWrite bool) (*htt // The Request.Body can't reset back to the beginning, but we // don't seem to have started to read from it yet, so reuse - // the request directly. The "afterBodyWrite" means the - // bodyWrite process has started, which becomes true before - // the first Read. - if !afterBodyWrite { + // the request directly. + if err == errClientConnUnusable { return req, nil } @@ -608,7 +658,7 @@ func (t *Transport) dialClientConn(ctx context.Context, addr string, singleUse b if err != nil { return nil, err } - tconn, err := t.dialTLS(ctx)("tcp", addr, t.newTLSConfig(host)) + tconn, err := t.dialTLS(ctx, "tcp", addr, t.newTLSConfig(host)) if err != nil { return nil, err } @@ -629,24 +679,25 @@ func (t *Transport) newTLSConfig(host string) *tls.Config { return cfg } -func (t *Transport) dialTLS(ctx context.Context) func(string, string, *tls.Config) (net.Conn, error) { - if t.DialTLS != nil { - return t.DialTLS +func (t *Transport) dialTLS(ctx context.Context, network, addr string, tlsCfg *tls.Config) (net.Conn, error) { + if t.DialTLSContext != nil { + return t.DialTLSContext(ctx, network, addr, tlsCfg) + } else if t.DialTLS != nil { + return t.DialTLS(network, addr, tlsCfg) } - return func(network, addr string, cfg *tls.Config) (net.Conn, error) { - tlsCn, err := t.dialTLSWithContext(ctx, network, addr, cfg) - if err != nil { - return nil, err - } - state := tlsCn.ConnectionState() - if p := state.NegotiatedProtocol; p != NextProtoTLS { - return nil, fmt.Errorf("http2: unexpected ALPN protocol %q; want %q", p, NextProtoTLS) - } - if !state.NegotiatedProtocolIsMutual { - return nil, errors.New("http2: could not negotiate protocol mutually") - } - return tlsCn, nil + + tlsCn, err := t.dialTLSWithContext(ctx, network, addr, tlsCfg) + if err != nil { + return nil, err + } + state := tlsCn.ConnectionState() + if p := state.NegotiatedProtocol; p != NextProtoTLS { + return nil, fmt.Errorf("http2: unexpected ALPN protocol %q; want %q", p, NextProtoTLS) } + if !state.NegotiatedProtocolIsMutual { + return nil, errors.New("http2: could not negotiate protocol mutually") + } + return tlsCn, nil } // disableKeepAlives reports whether connections should be closed as @@ -662,6 +713,20 @@ func (t *Transport) expectContinueTimeout() time.Duration { return t.t1.ExpectContinueTimeout } +func (t *Transport) maxDecoderHeaderTableSize() uint32 { + if v := t.MaxDecoderHeaderTableSize; v > 0 { + return v + } + return initialHeaderTableSize +} + +func (t *Transport) maxEncoderHeaderTableSize() uint32 { + if v := t.MaxEncoderHeaderTableSize; v > 0 { + return v + } + return initialHeaderTableSize +} + func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) { return t.newClientConn(c, t.disableKeepAlives()) } @@ -695,15 +760,26 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro // TODO: adjust this writer size to account for frame size + // MTU + crypto/tls record padding. - cc.bw = bufio.NewWriter(stickyErrWriter{c, &cc.werr}) + cc.bw = bufio.NewWriter(stickyErrWriter{ + conn: c, + timeout: t.WriteByteTimeout, + err: &cc.werr, + }) cc.br = bufio.NewReader(c) cc.fr = NewFramer(cc.bw, cc.br) - cc.fr.ReadMetaHeaders = hpack.NewDecoder(initialHeaderTableSize, nil) + if t.maxFrameReadSize() != 0 { + cc.fr.SetMaxReadFrameSize(t.maxFrameReadSize()) + } + if t.CountError != nil { + cc.fr.countError = t.CountError + } + maxHeaderTableSize := t.maxDecoderHeaderTableSize() + cc.fr.ReadMetaHeaders = hpack.NewDecoder(maxHeaderTableSize, nil) cc.fr.MaxHeaderListSize = t.maxHeaderListSize() - // TODO: SetMaxDynamicTableSize, SetMaxDynamicTableSizeLimit on - // henc in response to SETTINGS frames? cc.henc = hpack.NewEncoder(&cc.hbuf) + cc.henc.SetMaxDynamicTableSizeLimit(t.maxEncoderHeaderTableSize()) + cc.peerMaxHeaderTableSize = initialHeaderTableSize if t.AllowHTTP { cc.nextStreamID = 3 @@ -718,14 +794,20 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, erro {ID: SettingEnablePush, Val: 0}, {ID: SettingInitialWindowSize, Val: transportDefaultStreamFlow}, } + if max := t.maxFrameReadSize(); max != 0 { + initialSettings = append(initialSettings, Setting{ID: SettingMaxFrameSize, Val: max}) + } if max := t.maxHeaderListSize(); max != 0 { initialSettings = append(initialSettings, Setting{ID: SettingMaxHeaderListSize, Val: max}) } + if maxHeaderTableSize != initialHeaderTableSize { + initialSettings = append(initialSettings, Setting{ID: SettingHeaderTableSize, Val: maxHeaderTableSize}) + } cc.bw.Write(clientPreface) cc.fr.WriteSettings(initialSettings...) cc.fr.WriteWindowUpdate(0, transportDefaultConnFlow) - cc.inflow.add(transportDefaultConnFlow + initialWindowSize) + cc.inflow.init(transportDefaultConnFlow + initialWindowSize) cc.bw.Flush() if cc.werr != nil { cc.Close() @@ -742,11 +824,13 @@ func (cc *ClientConn) healthCheck() { // trigger the healthCheck again if there is no frame received. ctx, cancel := context.WithTimeout(context.Background(), pingTimeout) defer cancel() + cc.vlogf("http2: Transport sending health check") err := cc.Ping(ctx) if err != nil { + cc.vlogf("http2: Transport health check failure: %v", err) cc.closeForLostPing() - cc.t.connPool().MarkDead(cc) - return + } else { + cc.vlogf("http2: Transport health check success") } } @@ -774,27 +858,94 @@ func (cc *ClientConn) setGoAway(f *GoAwayFrame) { last := f.LastStreamID for streamID, cs := range cc.streams { if streamID > last { - select { - case cs.resc <- resAndError{err: errClientConnGotGoAway}: - default: - } + cs.abortStreamLocked(errClientConnGotGoAway) } } } // CanTakeNewRequest reports whether the connection can take a new request, // meaning it has not been closed or received or sent a GOAWAY. +// +// If the caller is going to immediately make a new request on this +// connection, use ReserveNewRequest instead. func (cc *ClientConn) CanTakeNewRequest() bool { cc.mu.Lock() defer cc.mu.Unlock() return cc.canTakeNewRequestLocked() } +// ReserveNewRequest is like CanTakeNewRequest but also reserves a +// concurrent stream in cc. The reservation is decremented on the +// next call to RoundTrip. +func (cc *ClientConn) ReserveNewRequest() bool { + cc.mu.Lock() + defer cc.mu.Unlock() + if st := cc.idleStateLocked(); !st.canTakeNewRequest { + return false + } + cc.streamsReserved++ + return true +} + +// ClientConnState describes the state of a ClientConn. +type ClientConnState struct { + // Closed is whether the connection is closed. + Closed bool + + // Closing is whether the connection is in the process of + // closing. It may be closing due to shutdown, being a + // single-use connection, being marked as DoNotReuse, or + // having received a GOAWAY frame. + Closing bool + + // StreamsActive is how many streams are active. + StreamsActive int + + // StreamsReserved is how many streams have been reserved via + // ClientConn.ReserveNewRequest. + StreamsReserved int + + // StreamsPending is how many requests have been sent in excess + // of the peer's advertised MaxConcurrentStreams setting and + // are waiting for other streams to complete. + StreamsPending int + + // MaxConcurrentStreams is how many concurrent streams the + // peer advertised as acceptable. Zero means no SETTINGS + // frame has been received yet. + MaxConcurrentStreams uint32 + + // LastIdle, if non-zero, is when the connection last + // transitioned to idle state. + LastIdle time.Time +} + +// State returns a snapshot of cc's state. +func (cc *ClientConn) State() ClientConnState { + cc.wmu.Lock() + maxConcurrent := cc.maxConcurrentStreams + if !cc.seenSettings { + maxConcurrent = 0 + } + cc.wmu.Unlock() + + cc.mu.Lock() + defer cc.mu.Unlock() + return ClientConnState{ + Closed: cc.closed, + Closing: cc.closing || cc.singleUse || cc.doNotReuse || cc.goAway != nil, + StreamsActive: len(cc.streams), + StreamsReserved: cc.streamsReserved, + StreamsPending: cc.pendingRequests, + LastIdle: cc.lastIdle, + MaxConcurrentStreams: maxConcurrent, + } +} + // clientConnIdleState describes the suitability of a client // connection to initiate a new RoundTrip request. type clientConnIdleState struct { canTakeNewRequest bool - freshConn bool // whether it's unused by any previous request } func (cc *ClientConn) idleState() clientConnIdleState { @@ -815,14 +966,13 @@ func (cc *ClientConn) idleStateLocked() (st clientConnIdleState) { // writing it. maxConcurrentOkay = true } else { - maxConcurrentOkay = int64(len(cc.streams)+1) <= int64(cc.maxConcurrentStreams) + maxConcurrentOkay = int64(len(cc.streams)+cc.streamsReserved+1) <= int64(cc.maxConcurrentStreams) } st.canTakeNewRequest = cc.goAway == nil && !cc.closed && !cc.closing && maxConcurrentOkay && !cc.doNotReuse && int64(cc.nextStreamID)+2*int64(cc.pendingRequests) < math.MaxInt32 && !cc.tooIdleLocked() - st.freshConn = cc.nextStreamID == 1 && st.canTakeNewRequest return } @@ -851,9 +1001,27 @@ func (cc *ClientConn) onIdleTimeout() { cc.closeIfIdle() } +func (cc *ClientConn) closeConn() { + t := time.AfterFunc(250*time.Millisecond, cc.forceCloseConn) + defer t.Stop() + cc.tconn.Close() +} + +// A tls.Conn.Close can hang for a long time if the peer is unresponsive. +// Try to shut it down more aggressively. +func (cc *ClientConn) forceCloseConn() { + tc, ok := cc.tconn.(*tls.Conn) + if !ok { + return + } + if nc := tlsUnderlyingConn(tc); nc != nil { + nc.Close() + } +} + func (cc *ClientConn) closeIfIdle() { cc.mu.Lock() - if len(cc.streams) > 0 { + if len(cc.streams) > 0 || cc.streamsReserved > 0 { cc.mu.Unlock() return } @@ -865,18 +1033,24 @@ func (cc *ClientConn) closeIfIdle() { if VerboseLogs { cc.vlogf("http2: Transport closing idle conn %p (forSingleUse=%v, maxStream=%v)", cc, cc.singleUse, nextID-2) } - cc.tconn.Close() + cc.closeConn() +} + +func (cc *ClientConn) isDoNotReuseAndIdle() bool { + cc.mu.Lock() + defer cc.mu.Unlock() + return cc.doNotReuse && len(cc.streams) == 0 } var shutdownEnterWaitStateHook = func() {} -// Shutdown gracefully close the client connection, waiting for running streams to complete. +// Shutdown gracefully closes the client connection, waiting for running streams to complete. func (cc *ClientConn) Shutdown(ctx context.Context) error { if err := cc.sendGoAway(); err != nil { return err } // Wait for all in-flight streams to complete or connection to close - done := make(chan error, 1) + done := make(chan struct{}) cancelled := false // guarded by cc.mu go func() { cc.mu.Lock() @@ -884,7 +1058,7 @@ func (cc *ClientConn) Shutdown(ctx context.Context) error { for { if len(cc.streams) == 0 || cc.closed { cc.closed = true - done <- cc.tconn.Close() + close(done) break } if cancelled { @@ -895,8 +1069,9 @@ func (cc *ClientConn) Shutdown(ctx context.Context) error { }() shutdownEnterWaitStateHook() select { - case err := <-done: - return err + case <-done: + cc.closeConn() + return nil case <-ctx.Done(): cc.mu.Lock() // Free the goroutine above @@ -933,25 +1108,15 @@ func (cc *ClientConn) sendGoAway() error { // closes the client connection immediately. In-flight requests are interrupted. // err is sent to streams. -func (cc *ClientConn) closeForError(err error) error { +func (cc *ClientConn) closeForError(err error) { cc.mu.Lock() - streams := cc.streams - cc.streams = nil cc.closed = true - cc.mu.Unlock() - - for _, cs := range streams { - select { - case cs.resc <- resAndError{err: err}: - default: - } - cs.bufPipe.CloseWithError(err) + for _, cs := range cc.streams { + cs.abortStreamLocked(err) } - - cc.mu.Lock() - defer cc.cond.Broadcast() - defer cc.mu.Unlock() - return cc.tconn.Close() + cc.cond.Broadcast() + cc.mu.Unlock() + cc.closeConn() } // Close closes the client connection immediately. @@ -959,16 +1124,17 @@ func (cc *ClientConn) closeForError(err error) error { // In-flight requests are interrupted. For a graceful shutdown, use Shutdown instead. func (cc *ClientConn) Close() error { err := errors.New("http2: client connection force closed via ClientConn.Close") - return cc.closeForError(err) + cc.closeForError(err) + return nil } // closes the client connection immediately. In-flight requests are interrupted. -func (cc *ClientConn) closeForLostPing() error { +func (cc *ClientConn) closeForLostPing() { err := errors.New("http2: client connection lost") if f := cc.t.CountError; f != nil { f("conn_close_lost_ping") } - return cc.closeForError(err) + cc.closeForError(err) } // errRequestCanceled is a copy of net/http's errRequestCanceled because it's not @@ -978,7 +1144,7 @@ var errRequestCanceled = errors.New("net/http: request canceled") func commaSeparatedTrailers(req *http.Request) (string, error) { keys := make([]string, 0, len(req.Trailer)) for k := range req.Trailer { - k = http.CanonicalHeaderKey(k) + k = canonicalHeader(k) switch k { case "Transfer-Encoding", "Trailer", "Content-Length": return "", fmt.Errorf("invalid Trailer key %q", k) @@ -1032,62 +1198,158 @@ func actualContentLength(req *http.Request) int64 { return -1 } -func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { - resp, _, err := cc.roundTrip(req) - return resp, err +func (cc *ClientConn) decrStreamReservations() { + cc.mu.Lock() + defer cc.mu.Unlock() + cc.decrStreamReservationsLocked() } -func (cc *ClientConn) roundTrip(req *http.Request) (res *http.Response, gotErrAfterReqBodyWrite bool, err error) { +func (cc *ClientConn) decrStreamReservationsLocked() { + if cc.streamsReserved > 0 { + cc.streamsReserved-- + } +} + +func (cc *ClientConn) RoundTrip(req *http.Request) (*http.Response, error) { ctx := req.Context() - if err := checkConnHeaders(req); err != nil { - return nil, false, err + cs := &clientStream{ + cc: cc, + ctx: ctx, + reqCancel: req.Cancel, + isHead: req.Method == "HEAD", + reqBody: req.Body, + reqBodyContentLength: actualContentLength(req), + trace: httptrace.ContextClientTrace(ctx), + peerClosed: make(chan struct{}), + abort: make(chan struct{}), + respHeaderRecv: make(chan struct{}), + donec: make(chan struct{}), + } + go cs.doRequest(req) + + waitDone := func() error { + select { + case <-cs.donec: + return nil + case <-ctx.Done(): + return ctx.Err() + case <-cs.reqCancel: + return errRequestCanceled + } } - if cc.idleTimer != nil { - cc.idleTimer.Stop() + + handleResponseHeaders := func() (*http.Response, error) { + res := cs.res + if res.StatusCode > 299 { + // On error or status code 3xx, 4xx, 5xx, etc abort any + // ongoing write, assuming that the server doesn't care + // about our request body. If the server replied with 1xx or + // 2xx, however, then assume the server DOES potentially + // want our body (e.g. full-duplex streaming: + // golang.org/issue/13444). If it turns out the server + // doesn't, they'll RST_STREAM us soon enough. This is a + // heuristic to avoid adding knobs to Transport. Hopefully + // we can keep it. + cs.abortRequestBodyWrite() + } + res.Request = req + res.TLS = cc.tlsState + if res.Body == noBody && actualContentLength(req) == 0 { + // If there isn't a request or response body still being + // written, then wait for the stream to be closed before + // RoundTrip returns. + if err := waitDone(); err != nil { + return nil, err + } + } + return res, nil } - trailers, err := commaSeparatedTrailers(req) - if err != nil { - return nil, false, err + for { + select { + case <-cs.respHeaderRecv: + return handleResponseHeaders() + case <-cs.abort: + select { + case <-cs.respHeaderRecv: + // If both cs.respHeaderRecv and cs.abort are signaling, + // pick respHeaderRecv. The server probably wrote the + // response and immediately reset the stream. + // golang.org/issue/49645 + return handleResponseHeaders() + default: + waitDone() + return nil, cs.abortErr + } + case <-ctx.Done(): + err := ctx.Err() + cs.abortStream(err) + return nil, err + case <-cs.reqCancel: + cs.abortStream(errRequestCanceled) + return nil, errRequestCanceled + } + } +} + +// doRequest runs for the duration of the request lifetime. +// +// It sends the request and performs post-request cleanup (closing Request.Body, etc.). +func (cs *clientStream) doRequest(req *http.Request) { + err := cs.writeRequest(req) + cs.cleanupWriteRequest(err) +} + +// writeRequest sends a request. +// +// It returns nil after the request is written, the response read, +// and the request stream is half-closed by the peer. +// +// It returns non-nil if the request ends otherwise. +// If the returned error is StreamError, the error Code may be used in resetting the stream. +func (cs *clientStream) writeRequest(req *http.Request) (err error) { + cc := cs.cc + ctx := cs.ctx + + if err := checkConnHeaders(req); err != nil { + return err } - hasTrailers := trailers != "" // Acquire the new-request lock by writing to reqHeaderMu. // This lock guards the critical section covering allocating a new stream ID // (requires mu) and creating the stream (requires wmu). if cc.reqHeaderMu == nil { - panic("RoundTrip on initialized ClientConn") // for tests + panic("RoundTrip on uninitialized ClientConn") // for tests } select { case cc.reqHeaderMu <- struct{}{}: - case <-req.Cancel: - return nil, false, errRequestCanceled + case <-cs.reqCancel: + return errRequestCanceled case <-ctx.Done(): - return nil, false, ctx.Err() + return ctx.Err() } - reqHeaderMuNeedsUnlock := true - defer func() { - if reqHeaderMuNeedsUnlock { - <-cc.reqHeaderMu - } - }() cc.mu.Lock() - if err := cc.awaitOpenSlotForRequest(req); err != nil { + if cc.idleTimer != nil { + cc.idleTimer.Stop() + } + cc.decrStreamReservationsLocked() + if err := cc.awaitOpenSlotForStreamLocked(cs); err != nil { cc.mu.Unlock() - return nil, false, err + <-cc.reqHeaderMu + return err } - - body := req.Body - contentLen := actualContentLength(req) - hasBody := contentLen != 0 + cc.addStreamLocked(cs) // assigns stream ID + if isConnectionCloseRequest(req) { + cc.doNotReuse = true + } + cc.mu.Unlock() // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere? - var requestedGzip bool if !cc.t.disableCompression() && req.Header.Get("Accept-Encoding") == "" && req.Header.Get("Range") == "" && - req.Method != "HEAD" { + !cs.isHead { // Request gzip only, not deflate. Deflate is ambiguous and // not as universally supported anyway. // See: https://zlib.net/zlib_faq.html#faq39 @@ -1100,185 +1362,232 @@ func (cc *ClientConn) roundTrip(req *http.Request) (res *http.Response, gotErrAf // We don't request gzip if the request is for a range, since // auto-decoding a portion of a gzipped document will just fail // anyway. See https://golang.org/issue/8923 - requestedGzip = true + cs.requestedGzip = true } - cs := cc.newStream() - cs.req = req - cs.trace = httptrace.ContextClientTrace(req.Context()) - cs.requestedGzip = requestedGzip - bodyWriter := cc.t.getBodyWriterState(cs, body) - cs.on100 = bodyWriter.on100 - cc.mu.Unlock() + continueTimeout := cc.t.expectContinueTimeout() + if continueTimeout != 0 { + if !httpguts.HeaderValuesContainsToken(req.Header["Expect"], "100-continue") { + continueTimeout = 0 + } else { + cs.on100 = make(chan struct{}, 1) + } + } + + // Past this point (where we send request headers), it is possible for + // RoundTrip to return successfully. Since the RoundTrip contract permits + // the caller to "mutate or reuse" the Request after closing the Response's Body, + // we must take care when referencing the Request from here on. + err = cs.encodeAndWriteHeaders(req) + <-cc.reqHeaderMu + if err != nil { + return err + } + + hasBody := cs.reqBodyContentLength != 0 + if !hasBody { + cs.sentEndStream = true + } else { + if continueTimeout != 0 { + traceWait100Continue(cs.trace) + timer := time.NewTimer(continueTimeout) + select { + case <-timer.C: + err = nil + case <-cs.on100: + err = nil + case <-cs.abort: + err = cs.abortErr + case <-ctx.Done(): + err = ctx.Err() + case <-cs.reqCancel: + err = errRequestCanceled + } + timer.Stop() + if err != nil { + traceWroteRequest(cs.trace, err) + return err + } + } + + if err = cs.writeRequestBody(req); err != nil { + if err != errStopReqBodyWrite { + traceWroteRequest(cs.trace, err) + return err + } + } else { + cs.sentEndStream = true + } + } + + traceWroteRequest(cs.trace, err) + + var respHeaderTimer <-chan time.Time + var respHeaderRecv chan struct{} + if d := cc.responseHeaderTimeout(); d != 0 { + timer := time.NewTimer(d) + defer timer.Stop() + respHeaderTimer = timer.C + respHeaderRecv = cs.respHeaderRecv + } + // Wait until the peer half-closes its end of the stream, + // or until the request is aborted (via context, error, or otherwise), + // whichever comes first. + for { + select { + case <-cs.peerClosed: + return nil + case <-respHeaderTimer: + return errTimeout + case <-respHeaderRecv: + respHeaderRecv = nil + respHeaderTimer = nil // keep waiting for END_STREAM + case <-cs.abort: + return cs.abortErr + case <-ctx.Done(): + return ctx.Err() + case <-cs.reqCancel: + return errRequestCanceled + } + } +} + +func (cs *clientStream) encodeAndWriteHeaders(req *http.Request) error { + cc := cs.cc + ctx := cs.ctx + cc.wmu.Lock() + defer cc.wmu.Unlock() + + // If the request was canceled while waiting for cc.mu, just quit. + select { + case <-cs.abort: + return cs.abortErr + case <-ctx.Done(): + return ctx.Err() + case <-cs.reqCancel: + return errRequestCanceled + default: + } + + // Encode headers. + // // we send: HEADERS{1}, CONTINUATION{0,} + DATA{0,} (DATA is // sent by writeRequestBody below, along with any Trailers, // again in form HEADERS{1}, CONTINUATION{0,}) - cc.wmu.Lock() - hdrs, err := cc.encodeHeaders(req, requestedGzip, trailers, contentLen) + trailers, err := commaSeparatedTrailers(req) + if err != nil { + return err + } + hasTrailers := trailers != "" + contentLen := actualContentLength(req) + hasBody := contentLen != 0 + hdrs, err := cc.encodeHeaders(req, cs.requestedGzip, trailers, contentLen) if err != nil { - cc.wmu.Unlock() - return nil, false, err + return err } - defer func() { - cc.wmu.Lock() - werr := cc.werr - cc.wmu.Unlock() - if werr != nil { - cc.Close() - } - }() - + // Write the request. endStream := !hasBody && !hasTrailers + cs.sentHeaders = true err = cc.writeHeaders(cs.ID, endStream, int(cc.maxFrameSize), hdrs) - cc.wmu.Unlock() - <-cc.reqHeaderMu // release the new-request lock - reqHeaderMuNeedsUnlock = false traceWroteHeaders(cs.trace) + return err +} - if err != nil { - if hasBody { - bodyWriter.cancel() - } - cc.forgetStreamID(cs.ID) - // Don't bother sending a RST_STREAM (our write already failed; - // no need to keep writing) - traceWroteRequest(cs.trace, err) - // TODO(dneil): An error occurred while writing the headers. - // Should we return an error indicating that this request can be retried? - return nil, false, err - } +// cleanupWriteRequest performs post-request tasks. +// +// If err (the result of writeRequest) is non-nil and the stream is not closed, +// cleanupWriteRequest will send a reset to the peer. +func (cs *clientStream) cleanupWriteRequest(err error) { + cc := cs.cc - var respHeaderTimer <-chan time.Time - if hasBody { - bodyWriter.scheduleBodyWrite() - } else { - traceWroteRequest(cs.trace, nil) - if d := cc.responseHeaderTimeout(); d != 0 { - timer := time.NewTimer(d) - defer timer.Stop() - respHeaderTimer = timer.C - } + if cs.ID == 0 { + // We were canceled before creating the stream, so return our reservation. + cc.decrStreamReservations() } - readLoopResCh := cs.resc - bodyWritten := false + // TODO: write h12Compare test showing whether + // Request.Body is closed by the Transport, + // and in multiple cases: server replies <=299 and >299 + // while still writing request body + cc.mu.Lock() + mustCloseBody := false + if cs.reqBody != nil && cs.reqBodyClosed == nil { + mustCloseBody = true + cs.reqBodyClosed = make(chan struct{}) + } + bodyClosed := cs.reqBodyClosed + cc.mu.Unlock() + if mustCloseBody { + cs.reqBody.Close() + close(bodyClosed) + } + if bodyClosed != nil { + <-bodyClosed + } - handleReadLoopResponse := func(re resAndError) (*http.Response, bool, error) { - res := re.res - if re.err != nil || res.StatusCode > 299 { - // On error or status code 3xx, 4xx, 5xx, etc abort any - // ongoing write, assuming that the server doesn't care - // about our request body. If the server replied with 1xx or - // 2xx, however, then assume the server DOES potentially - // want our body (e.g. full-duplex streaming: - // golang.org/issue/13444). If it turns out the server - // doesn't, they'll RST_STREAM us soon enough. This is a - // heuristic to avoid adding knobs to Transport. Hopefully - // we can keep it. - bodyWriter.cancel() - cs.abortRequestBodyWrite(errStopReqBodyWrite) - if hasBody && !bodyWritten { - <-bodyWriter.resc + if err != nil && cs.sentEndStream { + // If the connection is closed immediately after the response is read, + // we may be aborted before finishing up here. If the stream was closed + // cleanly on both sides, there is no error. + select { + case <-cs.peerClosed: + err = nil + default: + } + } + if err != nil { + cs.abortStream(err) // possibly redundant, but harmless + if cs.sentHeaders { + if se, ok := err.(StreamError); ok { + if se.Cause != errFromPeer { + cc.writeStreamReset(cs.ID, se.Code, err) + } + } else { + cc.writeStreamReset(cs.ID, ErrCodeCancel, err) } } - if re.err != nil { - cc.forgetStreamID(cs.ID) - return nil, cs.getStartedWrite(), re.err + cs.bufPipe.CloseWithError(err) // no-op if already closed + } else { + if cs.sentHeaders && !cs.sentEndStream { + cc.writeStreamReset(cs.ID, ErrCodeNo, nil) } - res.Request = req - res.TLS = cc.tlsState - return res, false, nil + cs.bufPipe.CloseWithError(errRequestCanceled) } - - handleError := func(err error) (*http.Response, bool, error) { - if !hasBody || bodyWritten { - cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) - } else { - bodyWriter.cancel() - cs.abortRequestBodyWrite(errStopReqBodyWriteAndCancel) - <-bodyWriter.resc - } + if cs.ID != 0 { cc.forgetStreamID(cs.ID) - return nil, cs.getStartedWrite(), err } - for { - select { - case re := <-readLoopResCh: - return handleReadLoopResponse(re) - case <-respHeaderTimer: - return handleError(errTimeout) - case <-ctx.Done(): - return handleError(ctx.Err()) - case <-req.Cancel: - return handleError(errRequestCanceled) - case <-cs.peerReset: - // processResetStream already removed the - // stream from the streams map; no need for - // forgetStreamID. - return nil, cs.getStartedWrite(), cs.resetErr - case err := <-bodyWriter.resc: - bodyWritten = true - // Prefer the read loop's response, if available. Issue 16102. - select { - case re := <-readLoopResCh: - return handleReadLoopResponse(re) - default: - } - if err != nil { - cc.forgetStreamID(cs.ID) - return nil, cs.getStartedWrite(), err - } - if d := cc.responseHeaderTimeout(); d != 0 { - timer := time.NewTimer(d) - defer timer.Stop() - respHeaderTimer = timer.C - } - } + cc.wmu.Lock() + werr := cc.werr + cc.wmu.Unlock() + if werr != nil { + cc.Close() } + + close(cs.donec) } -// awaitOpenSlotForRequest waits until len(streams) < maxConcurrentStreams. +// awaitOpenSlotForStreamLocked waits until len(streams) < maxConcurrentStreams. // Must hold cc.mu. -func (cc *ClientConn) awaitOpenSlotForRequest(req *http.Request) error { - var waitingForConn chan struct{} - var waitingForConnErr error // guarded by cc.mu +func (cc *ClientConn) awaitOpenSlotForStreamLocked(cs *clientStream) error { for { cc.lastActive = time.Now() if cc.closed || !cc.canTakeNewRequestLocked() { - if waitingForConn != nil { - close(waitingForConn) - } return errClientConnUnusable } cc.lastIdle = time.Time{} if int64(len(cc.streams)) < int64(cc.maxConcurrentStreams) { - if waitingForConn != nil { - close(waitingForConn) - } return nil } - // Unfortunately, we cannot wait on a condition variable and channel at - // the same time, so instead, we spin up a goroutine to check if the - // request is canceled while we wait for a slot to open in the connection. - if waitingForConn == nil { - waitingForConn = make(chan struct{}) - go func() { - if err := awaitRequestCancel(req, waitingForConn); err != nil { - cc.mu.Lock() - waitingForConnErr = err - cc.cond.Broadcast() - cc.mu.Unlock() - } - }() - } cc.pendingRequests++ cc.cond.Wait() cc.pendingRequests-- - if waitingForConnErr != nil { - return waitingForConnErr + select { + case <-cs.abort: + return cs.abortErr + default: } } } @@ -1305,10 +1614,6 @@ func (cc *ClientConn) writeHeaders(streamID uint32, endStream bool, maxFrameSize cc.fr.WriteContinuation(streamID, endHeaders, chunk) } } - // TODO(bradfitz): this Flush could potentially block (as - // could the WriteHeaders call(s) above), which means they - // wouldn't respond to Request.Cancel being readable. That's - // rare, but this should probably be in a goroutine. cc.bw.Flush() return cc.werr } @@ -1335,7 +1640,7 @@ func (cs *clientStream) frameScratchBufferLen(maxFrameSize int) int { if n > max { n = max } - if cl := actualContentLength(cs.req); cl != -1 && cl+1 < n { + if cl := cs.reqBodyContentLength; cl != -1 && cl+1 < n { // Add an extra byte past the declared content-length to // give the caller's Request.Body io.Reader a chance to // give us more bytes than they declared, so we can catch it @@ -1350,31 +1655,13 @@ func (cs *clientStream) frameScratchBufferLen(maxFrameSize int) int { var bufPool sync.Pool // of *[]byte -func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) (err error) { +func (cs *clientStream) writeRequestBody(req *http.Request) (err error) { cc := cs.cc + body := cs.reqBody sentEnd := false // whether we sent the final DATA frame w/ END_STREAM - defer func() { - traceWroteRequest(cs.trace, err) - // TODO: write h12Compare test showing whether - // Request.Body is closed by the Transport, - // and in multiple cases: server replies <=299 and >299 - // while still writing request body - var cerr error - cc.mu.Lock() - if cs.stopReqBody == nil { - cs.stopReqBody = errStopReqBodyWrite - cerr = bodyCloser.Close() - } - cc.mu.Unlock() - if err == nil { - err = cerr - } - }() - - req := cs.req hasTrailers := req.Trailer != nil - remainLen := actualContentLength(req) + remainLen := cs.reqBodyContentLength hasContentLen := remainLen != -1 cc.mu.Lock() @@ -1394,7 +1681,7 @@ func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) ( var sawEOF bool for !sawEOF { - n, err := body.Read(buf[:len(buf)]) + n, err := body.Read(buf) if hasContentLen { remainLen -= int64(n) if remainLen == 0 && err == nil { @@ -1412,29 +1699,29 @@ func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) ( } if remainLen < 0 { err = errReqBodyTooLong - cc.writeStreamReset(cs.ID, ErrCodeCancel, err) return err } } - if err == io.EOF { - sawEOF = true - err = nil - } else if err != nil { - cc.writeStreamReset(cs.ID, ErrCodeCancel, err) - return err + if err != nil { + cc.mu.Lock() + bodyClosed := cs.reqBodyClosed != nil + cc.mu.Unlock() + switch { + case bodyClosed: + return errStopReqBodyWrite + case err == io.EOF: + sawEOF = true + err = nil + default: + return err + } } remain := buf[:n] for len(remain) > 0 && err == nil { var allowed int32 allowed, err = cs.awaitFlowControl(len(remain)) - switch { - case err == errStopReqBodyWrite: - return err - case err == errStopReqBodyWriteAndCancel: - cc.writeStreamReset(cs.ID, ErrCodeCancel, nil) - return err - case err != nil: + if err != nil { return err } cc.wmu.Lock() @@ -1465,18 +1752,26 @@ func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) ( return nil } + // Since the RoundTrip contract permits the caller to "mutate or reuse" + // a request after the Response's Body is closed, verify that this hasn't + // happened before accessing the trailers. + cc.mu.Lock() + trailer := req.Trailer + err = cs.abortErr + cc.mu.Unlock() + if err != nil { + return err + } + cc.wmu.Lock() + defer cc.wmu.Unlock() var trls []byte - if hasTrailers { - trls, err = cc.encodeTrailers(req) + if len(trailer) > 0 { + trls, err = cc.encodeTrailers(trailer) if err != nil { - cc.wmu.Unlock() - cc.writeStreamReset(cs.ID, ErrCodeInternal, err) - cc.forgetStreamID(cs.ID) return err } } - defer cc.wmu.Unlock() // Two ways to send END_STREAM: either with trailers, or // with an empty DATA frame. @@ -1497,17 +1792,24 @@ func (cs *clientStream) writeRequestBody(body io.Reader, bodyCloser io.Closer) ( // if the stream is dead. func (cs *clientStream) awaitFlowControl(maxBytes int) (taken int32, err error) { cc := cs.cc + ctx := cs.ctx cc.mu.Lock() defer cc.mu.Unlock() for { if cc.closed { return 0, errClientConnClosed } - if cs.stopReqBody != nil { - return 0, cs.stopReqBody + if cs.reqBodyClosed != nil { + return 0, errStopReqBodyWrite } - if err := cs.checkResetOrDone(); err != nil { - return 0, err + select { + case <-cs.abort: + return 0, cs.abortErr + case <-ctx.Done(): + return 0, ctx.Err() + case <-cs.reqCancel: + return 0, errRequestCanceled + default: } if a := cs.flow.available(); a > 0 { take := a @@ -1525,9 +1827,14 @@ func (cs *clientStream) awaitFlowControl(maxBytes int) (taken int32, err error) } } +var errNilRequestURL = errors.New("http2: Request.URI is nil") + // requires cc.wmu be held. func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trailers string, contentLength int64) ([]byte, error) { cc.hbuf.Reset() + if req.URL == nil { + return nil, errNilRequestURL + } host := req.Host if host == "" { @@ -1563,7 +1870,8 @@ func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trail } for _, v := range vv { if !httpguts.ValidHeaderFieldValue(v) { - return nil, fmt.Errorf("invalid HTTP header value %q for header %q", v, k) + // Don't include the value in the error, because it may be sensitive. + return nil, fmt.Errorf("invalid HTTP header value for header %q", k) } } } @@ -1676,7 +1984,7 @@ func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trail // Header list size is ok. Write the headers. enumerateHeaders(func(name, value string) { - name, ascii := asciiToLower(name) + name, ascii := lowerHeader(name) if !ascii { // Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header // field names have to be ASCII characters (just as in HTTP/1.x). @@ -1714,11 +2022,11 @@ func shouldSendReqContentLength(method string, contentLength int64) bool { } // requires cc.wmu be held. -func (cc *ClientConn) encodeTrailers(req *http.Request) ([]byte, error) { +func (cc *ClientConn) encodeTrailers(trailer http.Header) ([]byte, error) { cc.hbuf.Reset() hlSize := uint64(0) - for k, vv := range req.Trailer { + for k, vv := range trailer { for _, v := range vv { hf := hpack.HeaderField{Name: k, Value: v} hlSize += uint64(hf.Size()) @@ -1728,8 +2036,8 @@ func (cc *ClientConn) encodeTrailers(req *http.Request) ([]byte, error) { return nil, errRequestHeaderListSize } - for k, vv := range req.Trailer { - lowKey, ascii := asciiToLower(k) + for k, vv := range trailer { + lowKey, ascii := lowerHeader(k) if !ascii { // Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header // field names have to be ASCII characters (just as in HTTP/1.x). @@ -1758,51 +2066,50 @@ type resAndError struct { } // requires cc.mu be held. -func (cc *ClientConn) newStream() *clientStream { - cs := &clientStream{ - cc: cc, - ID: cc.nextStreamID, - resc: make(chan resAndError, 1), - peerReset: make(chan struct{}), - done: make(chan struct{}), - } +func (cc *ClientConn) addStreamLocked(cs *clientStream) { cs.flow.add(int32(cc.initialWindowSize)) cs.flow.setConnFlow(&cc.flow) - cs.inflow.add(transportDefaultStreamFlow) - cs.inflow.setConnFlow(&cc.inflow) + cs.inflow.init(transportDefaultStreamFlow) + cs.ID = cc.nextStreamID cc.nextStreamID += 2 cc.streams[cs.ID] = cs - return cs + if cs.ID == 0 { + panic("assigned stream ID 0") + } } func (cc *ClientConn) forgetStreamID(id uint32) { - cc.streamByID(id, true) -} - -func (cc *ClientConn) streamByID(id uint32, andRemove bool) *clientStream { cc.mu.Lock() - defer cc.mu.Unlock() - cs := cc.streams[id] - if andRemove && cs != nil && !cc.closed { - cc.lastActive = time.Now() - delete(cc.streams, id) - if len(cc.streams) == 0 && cc.idleTimer != nil { - cc.idleTimer.Reset(cc.idleTimeout) - cc.lastIdle = time.Now() - } - close(cs.done) - // Wake up checkResetOrDone via clientStream.awaitFlowControl and - // wake up RoundTrip if there is a pending request. - cc.cond.Broadcast() + slen := len(cc.streams) + delete(cc.streams, id) + if len(cc.streams) != slen-1 { + panic("forgetting unknown stream id") + } + cc.lastActive = time.Now() + if len(cc.streams) == 0 && cc.idleTimer != nil { + cc.idleTimer.Reset(cc.idleTimeout) + cc.lastIdle = time.Now() + } + // Wake up writeRequestBody via clientStream.awaitFlowControl and + // wake up RoundTrip if there is a pending request. + cc.cond.Broadcast() + + closeOnIdle := cc.singleUse || cc.doNotReuse || cc.t.disableKeepAlives() || cc.goAway != nil + if closeOnIdle && cc.streamsReserved == 0 && len(cc.streams) == 0 { + if VerboseLogs { + cc.vlogf("http2: Transport closing idle conn %p (forSingleUse=%v, maxStream=%v)", cc, cc.singleUse, cc.nextStreamID-2) + } + cc.closed = true + defer cc.closeConn() } - return cs + + cc.mu.Unlock() } // clientConnReadLoop is the state owned by the clientConn's frame-reading readLoop. type clientConnReadLoop struct { - _ incomparable - cc *ClientConn - closeWhenIdle bool + _ incomparable + cc *ClientConn } // readLoop runs in its own goroutine and reads and dispatches frames. @@ -1840,8 +2147,8 @@ func isEOFOrNetReadError(err error) bool { func (rl *clientConnReadLoop) cleanup() { cc := rl.cc - defer cc.tconn.Close() - defer cc.t.connPool().MarkDead(cc) + cc.t.connPool().MarkDead(cc) + defer cc.closeConn() defer close(cc.readerDone) if cc.idleTimer != nil { @@ -1863,18 +2170,16 @@ func (rl *clientConnReadLoop) cleanup() { err = io.ErrUnexpectedEOF } cc.closed = true - streams := cc.streams - cc.streams = nil - cc.mu.Unlock() - for _, cs := range streams { - cs.bufPipe.CloseWithError(err) // no-op if already closed + + for _, cs := range cc.streams { select { - case cs.resc <- resAndError{err: err}: + case <-cs.peerClosed: + // The server closed the stream before closing the conn, + // so no need to interrupt it. default: + cs.abortStreamLocked(err) } - close(cs.done) } - cc.mu.Lock() cc.cond.Broadcast() cc.mu.Unlock() } @@ -1908,8 +2213,6 @@ func (cc *ClientConn) countReadFrameError(err error) { func (rl *clientConnReadLoop) run() error { cc := rl.cc - rl.closeWhenIdle = cc.t.disableKeepAlives() || cc.singleUse - gotReply := false // ever saw a HEADERS reply gotSettings := false readIdleTimeout := cc.t.ReadIdleTimeout var t *time.Timer @@ -1926,9 +2229,7 @@ func (rl *clientConnReadLoop) run() error { cc.vlogf("http2: Transport readFrame error on conn %p: (%T) %v", cc, err, err) } if se, ok := err.(StreamError); ok { - if cs := cc.streamByID(se.StreamID, false); cs != nil { - cs.cc.writeStreamReset(cs.ID, se.Code, err) - cs.cc.forgetStreamID(cs.ID) + if cs := rl.streamByID(se.StreamID); cs != nil { if se.Cause == nil { se.Cause = cc.fr.errDetail } @@ -1949,22 +2250,16 @@ func (rl *clientConnReadLoop) run() error { } gotSettings = true } - maybeIdle := false // whether frame might transition us to idle switch f := f.(type) { case *MetaHeadersFrame: err = rl.processHeaders(f) - maybeIdle = true - gotReply = true case *DataFrame: err = rl.processData(f) - maybeIdle = true case *GoAwayFrame: err = rl.processGoAway(f) - maybeIdle = true case *RSTStreamFrame: err = rl.processResetStream(f) - maybeIdle = true case *SettingsFrame: err = rl.processSettings(f) case *PushPromiseFrame: @@ -1982,38 +2277,24 @@ func (rl *clientConnReadLoop) run() error { } return err } - if rl.closeWhenIdle && gotReply && maybeIdle { - cc.closeIfIdle() - } } } func (rl *clientConnReadLoop) processHeaders(f *MetaHeadersFrame) error { - cc := rl.cc - cs := cc.streamByID(f.StreamID, false) + cs := rl.streamByID(f.StreamID) if cs == nil { // We'd get here if we canceled a request while the // server had its response still in flight. So if this // was just something we canceled, ignore it. return nil } - if f.StreamEnded() { - // Issue 20521: If the stream has ended, streamByID() causes - // clientStream.done to be closed, which causes the request's bodyWriter - // to be closed with an errStreamClosed, which may be received by - // clientConn.RoundTrip before the result of processing these headers. - // Deferring stream closure allows the header processing to occur first. - // clientConn.RoundTrip may still receive the bodyWriter error first, but - // the fix for issue 16102 prioritises any response. - // - // Issue 22413: If there is no request body, we should close the - // stream before writing to cs.resc so that the stream is closed - // immediately once RoundTrip returns. - if cs.req.Body != nil { - defer cc.forgetStreamID(f.StreamID) - } else { - cc.forgetStreamID(f.StreamID) - } + if cs.readClosed { + rl.endStreamError(cs, StreamError{ + StreamID: f.StreamID, + Code: ErrCodeProtocol, + Cause: errors.New("protocol error: headers after END_STREAM"), + }) + return nil } if !cs.firstByte { if cs.trace != nil { @@ -2037,9 +2318,11 @@ func (rl *clientConnReadLoop) processHeaders(f *MetaHeadersFrame) error { return err } // Any other error type is a stream error. - cs.cc.writeStreamReset(f.StreamID, ErrCodeProtocol, err) - cc.forgetStreamID(cs.ID) - cs.resc <- resAndError{err: err} + rl.endStreamError(cs, StreamError{ + StreamID: f.StreamID, + Code: ErrCodeProtocol, + Cause: err, + }) return nil // return nil from process* funcs to keep conn alive } if res == nil { @@ -2047,7 +2330,11 @@ func (rl *clientConnReadLoop) processHeaders(f *MetaHeadersFrame) error { return nil } cs.resTrailer = &res.Trailer - cs.resc <- resAndError{res: res} + cs.res = res + close(cs.respHeaderRecv) + if f.StreamEnded() { + rl.endStream(cs) + } return nil } @@ -2082,7 +2369,7 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra Status: status + " " + http.StatusText(statusCode), } for _, hf := range regularFields { - key := http.CanonicalHeaderKey(hf.Name) + key := canonicalHeader(hf.Name) if key == "Trailer" { t := res.Trailer if t == nil { @@ -2090,7 +2377,7 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra res.Trailer = t } foreachHeaderElement(hf.Value, func(v string) { - t[http.CanonicalHeaderKey(v)] = nil + t[canonicalHeader(v)] = nil }) } else { vv := header[key] @@ -2109,6 +2396,9 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra } if statusCode >= 100 && statusCode <= 199 { + if f.StreamEnded() { + return nil, errors.New("1xx informational response with END_STREAM flag") + } cs.num1xx++ const max1xxResponses = 5 // arbitrary bound on number of informational responses, same as net/http if cs.num1xx > max1xxResponses { @@ -2121,42 +2411,49 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra } if statusCode == 100 { traceGot100Continue(cs.trace) - if cs.on100 != nil { - cs.on100() // forces any write delay timer to fire + select { + case cs.on100 <- struct{}{}: + default: } } cs.pastHeaders = false // do it all again return nil, nil } - streamEnded := f.StreamEnded() - isHead := cs.req.Method == "HEAD" - if !streamEnded || isHead { - res.ContentLength = -1 - if clens := res.Header["Content-Length"]; len(clens) == 1 { - if cl, err := strconv.ParseUint(clens[0], 10, 63); err == nil { - res.ContentLength = int64(cl) - } else { - // TODO: care? unlike http/1, it won't mess up our framing, so it's - // more safe smuggling-wise to ignore. - } - } else if len(clens) > 1 { + res.ContentLength = -1 + if clens := res.Header["Content-Length"]; len(clens) == 1 { + if cl, err := strconv.ParseUint(clens[0], 10, 63); err == nil { + res.ContentLength = int64(cl) + } else { // TODO: care? unlike http/1, it won't mess up our framing, so it's // more safe smuggling-wise to ignore. } + } else if len(clens) > 1 { + // TODO: care? unlike http/1, it won't mess up our framing, so it's + // more safe smuggling-wise to ignore. + } else if f.StreamEnded() && !cs.isHead { + res.ContentLength = 0 } - if streamEnded || isHead { + if cs.isHead { res.Body = noBody return res, nil } - cs.bufPipe = pipe{b: &dataBuffer{expected: res.ContentLength}} + if f.StreamEnded() { + if res.ContentLength > 0 { + res.Body = missingBody{} + } else { + res.Body = noBody + } + return res, nil + } + + cs.bufPipe.setBuffer(&dataBuffer{expected: res.ContentLength}) cs.bytesRemain = res.ContentLength res.Body = transportResponseBody{cs} - go cs.awaitRequestCancel(cs.req) - if cs.requestedGzip && res.Header.Get("Content-Encoding") == "gzip" { + if cs.requestedGzip && asciiEqualFold(res.Header.Get("Content-Encoding"), "gzip") { res.Header.Del("Content-Encoding") res.Header.Del("Content-Length") res.ContentLength = -1 @@ -2185,7 +2482,7 @@ func (rl *clientConnReadLoop) processTrailers(cs *clientStream, f *MetaHeadersFr trailer := make(http.Header) for _, hf := range f.RegularFields() { - key := http.CanonicalHeaderKey(hf.Name) + key := canonicalHeader(hf.Name) trailer[key] = append(trailer[key], hf.Value) } cs.trailer = trailer @@ -2195,8 +2492,7 @@ func (rl *clientConnReadLoop) processTrailers(cs *clientStream, f *MetaHeadersFr } // transportResponseBody is the concrete type of Transport.RoundTrip's -// Response.Body. It is an io.ReadCloser. On Read, it reads from cs.body. -// On Close it sends RST_STREAM if EOF wasn't already seen. +// Response.Body. It is an io.ReadCloser. type transportResponseBody struct { cs *clientStream } @@ -2214,7 +2510,7 @@ func (b transportResponseBody) Read(p []byte) (n int, err error) { n = int(cs.bytesRemain) if err == nil { err = errors.New("net/http: server replied with more than declared Content-Length; truncated") - cc.writeStreamReset(cs.ID, ErrCodeProtocol, err) + cs.abortStream(err) } cs.readErr = err return int(cs.bytesRemain), err @@ -2232,21 +2528,10 @@ func (b transportResponseBody) Read(p []byte) (n int, err error) { } cc.mu.Lock() - var connAdd, streamAdd int32 - // Check the conn-level first, before the stream-level. - if v := cc.inflow.available(); v < transportDefaultConnFlow/2 { - connAdd = transportDefaultConnFlow - v - cc.inflow.add(connAdd) - } + connAdd := cc.inflow.add(n) + var streamAdd int32 if err == nil { // No need to refresh if the stream is over or failed. - // Consider any buffered body data (read from the conn but not - // consumed by the client) when computing flow control for this - // stream. - v := int(cs.inflow.available()) + cs.bufPipe.Len() - if v < transportDefaultStreamFlow-transportDefaultStreamMinRefresh { - streamAdd = int32(transportDefaultStreamFlow - v) - cs.inflow.add(streamAdd) - } + streamAdd = cs.inflow.add(n) } cc.mu.Unlock() @@ -2270,40 +2555,43 @@ func (b transportResponseBody) Close() error { cs := b.cs cc := cs.cc - serverSentStreamEnd := cs.bufPipe.Err() == io.EOF unread := cs.bufPipe.Len() - - if unread > 0 || !serverSentStreamEnd { + if unread > 0 { cc.mu.Lock() - if !serverSentStreamEnd { - cs.didReset = true - } // Return connection-level flow control. - if unread > 0 { - cc.inflow.add(int32(unread)) - } + connAdd := cc.inflow.add(unread) cc.mu.Unlock() + // TODO(dneil): Acquiring this mutex can block indefinitely. + // Move flow control return to a goroutine? cc.wmu.Lock() - if !serverSentStreamEnd { - cc.fr.WriteRSTStream(cs.ID, ErrCodeCancel) - } // Return connection-level flow control. - if unread > 0 { - cc.fr.WriteWindowUpdate(0, uint32(unread)) + if connAdd > 0 { + cc.fr.WriteWindowUpdate(0, uint32(connAdd)) } cc.bw.Flush() cc.wmu.Unlock() } cs.bufPipe.BreakWithError(errClosedResponseBody) - cc.forgetStreamID(cs.ID) + cs.abortStream(errClosedResponseBody) + + select { + case <-cs.donec: + case <-cs.ctx.Done(): + // See golang/go#49366: The net/http package can cancel the + // request context after the response body is fully read. + // Don't treat this as an error. + return nil + case <-cs.reqCancel: + return errRequestCanceled + } return nil } func (rl *clientConnReadLoop) processData(f *DataFrame) error { cc := rl.cc - cs := cc.streamByID(f.StreamID, f.StreamEnded()) + cs := rl.streamByID(f.StreamID) data := f.Data() if cs == nil { cc.mu.Lock() @@ -2322,16 +2610,29 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { // But at least return their flow control: if f.Length > 0 { cc.mu.Lock() - cc.inflow.add(int32(f.Length)) + ok := cc.inflow.take(f.Length) + connAdd := cc.inflow.add(int(f.Length)) cc.mu.Unlock() - - cc.wmu.Lock() - cc.fr.WriteWindowUpdate(0, uint32(f.Length)) - cc.bw.Flush() - cc.wmu.Unlock() + if !ok { + return ConnectionError(ErrCodeFlowControl) + } + if connAdd > 0 { + cc.wmu.Lock() + cc.fr.WriteWindowUpdate(0, uint32(connAdd)) + cc.bw.Flush() + cc.wmu.Unlock() + } } return nil } + if cs.readClosed { + cc.logf("protocol error: received DATA after END_STREAM") + rl.endStreamError(cs, StreamError{ + StreamID: f.StreamID, + Code: ErrCodeProtocol, + }) + return nil + } if !cs.firstByte { cc.logf("protocol error: received DATA before a HEADERS frame") rl.endStreamError(cs, StreamError{ @@ -2341,7 +2642,7 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { return nil } if f.Length > 0 { - if cs.req.Method == "HEAD" && len(data) > 0 { + if cs.isHead && len(data) > 0 { cc.logf("protocol error: received DATA on a HEAD request") rl.endStreamError(cs, StreamError{ StreamID: f.StreamID, @@ -2351,9 +2652,7 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { } // Check connection-level flow control. cc.mu.Lock() - if cs.inflow.available() >= int32(f.Length) { - cs.inflow.take(int32(f.Length)) - } else { + if !takeInflows(&cc.inflow, &cs.inflow, f.Length) { cc.mu.Unlock() return ConnectionError(ErrCodeFlowControl) } @@ -2363,33 +2662,40 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { if pad := int(f.Length) - len(data); pad > 0 { refund += pad } - // Return len(data) now if the stream is already closed, - // since data will never be read. - didReset := cs.didReset - if didReset { - refund += len(data) + + didReset := false + var err error + if len(data) > 0 { + if _, err = cs.bufPipe.Write(data); err != nil { + // Return len(data) now if the stream is already closed, + // since data will never be read. + didReset = true + refund += len(data) + } } - if refund > 0 { - cc.inflow.add(int32(refund)) + + sendConn := cc.inflow.add(refund) + var sendStream int32 + if !didReset { + sendStream = cs.inflow.add(refund) } cc.mu.Unlock() - if refund > 0 { + if sendConn > 0 || sendStream > 0 { cc.wmu.Lock() - cc.fr.WriteWindowUpdate(0, uint32(refund)) - if !didReset { - cs.inflow.add(int32(refund)) - cc.fr.WriteWindowUpdate(cs.ID, uint32(refund)) + if sendConn > 0 { + cc.fr.WriteWindowUpdate(0, uint32(sendConn)) + } + if sendStream > 0 { + cc.fr.WriteWindowUpdate(cs.ID, uint32(sendStream)) } cc.bw.Flush() cc.wmu.Unlock() } - if len(data) > 0 && !didReset { - if _, err := cs.bufPipe.Write(data); err != nil { - rl.endStreamError(cs, err) - return err - } + if err != nil { + rl.endStreamError(cs, err) + return nil } } @@ -2402,24 +2708,32 @@ func (rl *clientConnReadLoop) processData(f *DataFrame) error { func (rl *clientConnReadLoop) endStream(cs *clientStream) { // TODO: check that any declared content-length matches, like // server.go's (*stream).endStream method. - rl.endStreamError(cs, nil) + if !cs.readClosed { + cs.readClosed = true + // Close cs.bufPipe and cs.peerClosed with cc.mu held to avoid a + // race condition: The caller can read io.EOF from Response.Body + // and close the body before we close cs.peerClosed, causing + // cleanupWriteRequest to send a RST_STREAM. + rl.cc.mu.Lock() + defer rl.cc.mu.Unlock() + cs.bufPipe.closeWithErrorAndCode(io.EOF, cs.copyTrailers) + close(cs.peerClosed) + } } func (rl *clientConnReadLoop) endStreamError(cs *clientStream, err error) { - var code func() - if err == nil { - err = io.EOF - code = cs.copyTrailers - } - if isConnectionCloseRequest(cs.req) { - rl.closeWhenIdle = true - } - cs.bufPipe.closeWithErrorAndCode(err, code) + cs.readAborted = true + cs.abortStream(err) +} - select { - case cs.resc <- resAndError{err: err}: - default: +func (rl *clientConnReadLoop) streamByID(id uint32) *clientStream { + rl.cc.mu.Lock() + defer rl.cc.mu.Unlock() + cs := rl.cc.streams[id] + if cs != nil && !cs.readAborted { + return cs } + return nil } func (cs *clientStream) copyTrailers() { @@ -2441,7 +2755,6 @@ func (rl *clientConnReadLoop) processGoAway(f *GoAwayFrame) error { if fn := cc.t.CountError; fn != nil { fn("recv_goaway_" + f.ErrCode.stringToken()) } - } cc.setGoAway(f) return nil @@ -2506,8 +2819,10 @@ func (rl *clientConnReadLoop) processSettingsNoWrite(f *SettingsFrame) error { cc.cond.Broadcast() cc.initialWindowSize = s.Val + case SettingHeaderTableSize: + cc.henc.SetMaxDynamicTableSize(s.Val) + cc.peerMaxHeaderTableSize = s.Val default: - // TODO(bradfitz): handle more settings? SETTINGS_HEADER_TABLE_SIZE probably. cc.vlogf("Unhandled Setting: %v", s) } return nil @@ -2532,7 +2847,7 @@ func (rl *clientConnReadLoop) processSettingsNoWrite(f *SettingsFrame) error { func (rl *clientConnReadLoop) processWindowUpdate(f *WindowUpdateFrame) error { cc := rl.cc - cs := cc.streamByID(f.StreamID, false) + cs := rl.streamByID(f.StreamID) if f.StreamID != 0 && cs == nil { return nil } @@ -2552,31 +2867,22 @@ func (rl *clientConnReadLoop) processWindowUpdate(f *WindowUpdateFrame) error { } func (rl *clientConnReadLoop) processResetStream(f *RSTStreamFrame) error { - cs := rl.cc.streamByID(f.StreamID, true) + cs := rl.streamByID(f.StreamID) if cs == nil { - // TODO: return error if server tries to RST_STEAM an idle stream + // TODO: return error if server tries to RST_STREAM an idle stream return nil } - select { - case <-cs.peerReset: - // Already reset. - // This is the only goroutine - // which closes this, so there - // isn't a race. - default: - serr := streamError(cs.ID, f.ErrCode) - if f.ErrCode == ErrCodeProtocol { - rl.cc.SetDoNotReuse() - serr.Cause = errFromPeer - } - if fn := cs.cc.t.CountError; fn != nil { - fn("recv_rststream_" + f.ErrCode.stringToken()) - } - cs.resetErr = serr - close(cs.peerReset) - cs.bufPipe.CloseWithError(serr) - cs.cc.cond.Broadcast() // wake up checkResetOrDone via clientStream.awaitFlowControl + serr := streamError(cs.ID, f.ErrCode) + serr.Cause = errFromPeer + if f.ErrCode == ErrCodeProtocol { + rl.cc.SetDoNotReuse() + } + if fn := cs.cc.t.CountError; fn != nil { + fn("recv_rststream_" + f.ErrCode.stringToken()) } + cs.abortStream(serr) + + cs.bufPipe.CloseWithError(serr) return nil } @@ -2598,19 +2904,24 @@ func (cc *ClientConn) Ping(ctx context.Context) error { } cc.mu.Unlock() } - cc.wmu.Lock() - if err := cc.fr.WritePing(false, p); err != nil { - cc.wmu.Unlock() - return err - } - if err := cc.bw.Flush(); err != nil { - cc.wmu.Unlock() - return err - } - cc.wmu.Unlock() + errc := make(chan error, 1) + go func() { + cc.wmu.Lock() + defer cc.wmu.Unlock() + if err := cc.fr.WritePing(false, p); err != nil { + errc <- err + return + } + if err := cc.bw.Flush(); err != nil { + errc <- err + return + } + }() select { case <-c: return nil + case err := <-errc: + return err case <-ctx.Done(): return ctx.Err() case <-cc.readerDone: @@ -2685,7 +2996,17 @@ func (t *Transport) logf(format string, args ...interface{}) { log.Printf(format, args...) } -var noBody io.ReadCloser = ioutil.NopCloser(bytes.NewReader(nil)) +var noBody io.ReadCloser = noBodyReader{} + +type noBodyReader struct{} + +func (noBodyReader) Close() error { return nil } +func (noBodyReader) Read([]byte) (int, error) { return 0, io.EOF } + +type missingBody struct{} + +func (missingBody) Close() error { return nil } +func (missingBody) Read([]byte) (int, error) { return 0, io.ErrUnexpectedEOF } func strSliceContains(ss []string, s string) bool { for _, v := range ss { @@ -2725,94 +3046,17 @@ func (gz *gzipReader) Read(p []byte) (n int, err error) { } func (gz *gzipReader) Close() error { - return gz.body.Close() + if err := gz.body.Close(); err != nil { + return err + } + gz.zerr = fs.ErrClosed + return nil } type errorReader struct{ err error } func (r errorReader) Read(p []byte) (int, error) { return 0, r.err } -// bodyWriterState encapsulates various state around the Transport's writing -// of the request body, particularly regarding doing delayed writes of the body -// when the request contains "Expect: 100-continue". -type bodyWriterState struct { - cs *clientStream - timer *time.Timer // if non-nil, we're doing a delayed write - fnonce *sync.Once // to call fn with - fn func() // the code to run in the goroutine, writing the body - resc chan error // result of fn's execution - delay time.Duration // how long we should delay a delayed write for -} - -func (t *Transport) getBodyWriterState(cs *clientStream, body io.Reader) (s bodyWriterState) { - s.cs = cs - if body == nil { - return - } - resc := make(chan error, 1) - s.resc = resc - s.fn = func() { - cs.cc.mu.Lock() - cs.startedWrite = true - cs.cc.mu.Unlock() - resc <- cs.writeRequestBody(body, cs.req.Body) - } - s.delay = t.expectContinueTimeout() - if s.delay == 0 || - !httpguts.HeaderValuesContainsToken( - cs.req.Header["Expect"], - "100-continue") { - return - } - s.fnonce = new(sync.Once) - - // Arm the timer with a very large duration, which we'll - // intentionally lower later. It has to be large now because - // we need a handle to it before writing the headers, but the - // s.delay value is defined to not start until after the - // request headers were written. - const hugeDuration = 365 * 24 * time.Hour - s.timer = time.AfterFunc(hugeDuration, func() { - s.fnonce.Do(s.fn) - }) - return -} - -func (s bodyWriterState) cancel() { - if s.timer != nil { - if s.timer.Stop() { - s.resc <- nil - } - } -} - -func (s bodyWriterState) on100() { - if s.timer == nil { - // If we didn't do a delayed write, ignore the server's - // bogus 100 continue response. - return - } - s.timer.Stop() - go func() { s.fnonce.Do(s.fn) }() -} - -// scheduleBodyWrite starts writing the body, either immediately (in -// the common case) or after the delay timeout. It should not be -// called until after the headers have been written. -func (s bodyWriterState) scheduleBodyWrite() { - if s.timer == nil { - // We're not doing a delayed write (see - // getBodyWriterState), so just start the writing - // goroutine immediately. - go s.fn() - return - } - traceWait100Continue(s.cs.trace) - if s.timer.Stop() { - s.timer.Reset(s.delay) - } -} - // isConnectionCloseRequest reports whether req should use its own // connection for a single request and then close the connection. func isConnectionCloseRequest(req *http.Request) bool { @@ -2870,7 +3114,7 @@ func traceGotConn(req *http.Request, cc *ClientConn, reused bool) { cc.mu.Lock() ci.WasIdle = len(cc.streams) == 0 && reused if ci.WasIdle && !cc.lastActive.IsZero() { - ci.IdleTime = time.Now().Sub(cc.lastActive) + ci.IdleTime = time.Since(cc.lastActive) } cc.mu.Unlock() diff --git a/vendor/golang.org/x/net/http2/writesched.go b/vendor/golang.org/x/net/http2/writesched.go index f24d2b1..c7cd001 100644 --- a/vendor/golang.org/x/net/http2/writesched.go +++ b/vendor/golang.org/x/net/http2/writesched.go @@ -32,7 +32,8 @@ type WriteScheduler interface { // Pop dequeues the next frame to write. Returns false if no frames can // be written. Frames with a given wr.StreamID() are Pop'd in the same - // order they are Push'd. No frames should be discarded except by CloseStream. + // order they are Push'd, except RST_STREAM frames. No frames should be + // discarded except by CloseStream. Pop() (wr FrameWriteRequest, ok bool) } @@ -52,6 +53,7 @@ type FrameWriteRequest struct { // stream is the stream on which this frame will be written. // nil for non-stream frames like PING and SETTINGS. + // nil for RST_STREAM streams, which use the StreamError.StreamID field instead. stream *stream // done, if non-nil, must be a buffered channel with space for diff --git a/vendor/golang.org/x/net/http2/writesched_priority.go b/vendor/golang.org/x/net/http2/writesched_priority.go index 2618b2c..0a242c6 100644 --- a/vendor/golang.org/x/net/http2/writesched_priority.go +++ b/vendor/golang.org/x/net/http2/writesched_priority.go @@ -383,16 +383,15 @@ func (ws *priorityWriteScheduler) AdjustStream(streamID uint32, priority Priorit func (ws *priorityWriteScheduler) Push(wr FrameWriteRequest) { var n *priorityNode - if id := wr.StreamID(); id == 0 { + if wr.isControl() { n = &ws.root } else { + id := wr.StreamID() n = ws.nodes[id] if n == nil { // id is an idle or closed stream. wr should not be a HEADERS or - // DATA frame. However, wr can be a RST_STREAM. In this case, we - // push wr onto the root, rather than creating a new priorityNode, - // since RST_STREAM is tiny and the stream's priority is unknown - // anyway. See issue #17919. + // DATA frame. In other case, we push wr onto the root, rather + // than creating a new priorityNode. if wr.DataSize() > 0 { panic("add DATA on non-open stream") } diff --git a/vendor/golang.org/x/net/http2/writesched_random.go b/vendor/golang.org/x/net/http2/writesched_random.go index 9a7b9e5..f2e55e0 100644 --- a/vendor/golang.org/x/net/http2/writesched_random.go +++ b/vendor/golang.org/x/net/http2/writesched_random.go @@ -45,11 +45,11 @@ func (ws *randomWriteScheduler) AdjustStream(streamID uint32, priority PriorityP } func (ws *randomWriteScheduler) Push(wr FrameWriteRequest) { - id := wr.StreamID() - if id == 0 { + if wr.isControl() { ws.zero.push(wr) return } + id := wr.StreamID() q, ok := ws.sq[id] if !ok { q = ws.queuePool.get() @@ -59,7 +59,7 @@ func (ws *randomWriteScheduler) Push(wr FrameWriteRequest) { } func (ws *randomWriteScheduler) Pop() (FrameWriteRequest, bool) { - // Control frames first. + // Control and RST_STREAM frames first. if !ws.zero.empty() { return ws.zero.shift(), true } diff --git a/vendor/golang.org/x/net/idna/go118.go b/vendor/golang.org/x/net/idna/go118.go new file mode 100644 index 0000000..c5c4338 --- /dev/null +++ b/vendor/golang.org/x/net/idna/go118.go @@ -0,0 +1,14 @@ +// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.18 +// +build go1.18 + +package idna + +// Transitional processing is disabled by default in Go 1.18. +// https://golang.org/issue/47510 +const transitionalLookup = false diff --git a/vendor/golang.org/x/net/idna/idna10.0.0.go b/vendor/golang.org/x/net/idna/idna10.0.0.go index 5208ba6..64ccf85 100644 --- a/vendor/golang.org/x/net/idna/idna10.0.0.go +++ b/vendor/golang.org/x/net/idna/idna10.0.0.go @@ -59,10 +59,10 @@ type Option func(*options) // Transitional sets a Profile to use the Transitional mapping as defined in UTS // #46. This will cause, for example, "ß" to be mapped to "ss". Using the // transitional mapping provides a compromise between IDNA2003 and IDNA2008 -// compatibility. It is used by most browsers when resolving domain names. This +// compatibility. It is used by some browsers when resolving domain names. This // option is only meaningful if combined with MapForLookup. func Transitional(transitional bool) Option { - return func(o *options) { o.transitional = true } + return func(o *options) { o.transitional = transitional } } // VerifyDNSLength sets whether a Profile should fail if any of the IDN parts @@ -284,7 +284,7 @@ var ( punycode = &Profile{} lookup = &Profile{options{ - transitional: true, + transitional: transitionalLookup, useSTD3Rules: true, checkHyphens: true, checkJoiners: true, diff --git a/vendor/golang.org/x/net/idna/idna9.0.0.go b/vendor/golang.org/x/net/idna/idna9.0.0.go index 55f718f..aae6aac 100644 --- a/vendor/golang.org/x/net/idna/idna9.0.0.go +++ b/vendor/golang.org/x/net/idna/idna9.0.0.go @@ -58,10 +58,10 @@ type Option func(*options) // Transitional sets a Profile to use the Transitional mapping as defined in UTS // #46. This will cause, for example, "ß" to be mapped to "ss". Using the // transitional mapping provides a compromise between IDNA2003 and IDNA2008 -// compatibility. It is used by most browsers when resolving domain names. This +// compatibility. It is used by some browsers when resolving domain names. This // option is only meaningful if combined with MapForLookup. func Transitional(transitional bool) Option { - return func(o *options) { o.transitional = true } + return func(o *options) { o.transitional = transitional } } // VerifyDNSLength sets whether a Profile should fail if any of the IDN parts diff --git a/vendor/golang.org/x/net/idna/pre_go118.go b/vendor/golang.org/x/net/idna/pre_go118.go new file mode 100644 index 0000000..3aaccab --- /dev/null +++ b/vendor/golang.org/x/net/idna/pre_go118.go @@ -0,0 +1,12 @@ +// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !go1.18 +// +build !go1.18 + +package idna + +const transitionalLookup = true diff --git a/vendor/golang.org/x/net/idna/punycode.go b/vendor/golang.org/x/net/idna/punycode.go index 02c7d59..e8e3ac1 100644 --- a/vendor/golang.org/x/net/idna/punycode.go +++ b/vendor/golang.org/x/net/idna/punycode.go @@ -49,6 +49,7 @@ func decode(encoded string) (string, error) { } } i, n, bias := int32(0), initialN, initialBias + overflow := false for pos < len(encoded) { oldI, w := i, int32(1) for k := base; ; k += base { @@ -60,29 +61,32 @@ func decode(encoded string) (string, error) { return "", punyError(encoded) } pos++ - i += digit * w - if i < 0 { + i, overflow = madd(i, digit, w) + if overflow { return "", punyError(encoded) } t := k - bias - if t < tmin { + if k <= bias { t = tmin - } else if t > tmax { + } else if k >= bias+tmax { t = tmax } if digit < t { break } - w *= base - t - if w >= math.MaxInt32/base { + w, overflow = madd(0, w, base-t) + if overflow { return "", punyError(encoded) } } + if len(output) >= 1024 { + return "", punyError(encoded) + } x := int32(len(output) + 1) bias = adapt(i-oldI, x, oldI == 0) n += i / x i %= x - if n > utf8.MaxRune || len(output) >= 1024 { + if n < 0 || n > utf8.MaxRune { return "", punyError(encoded) } output = append(output, 0) @@ -115,6 +119,7 @@ func encode(prefix, s string) (string, error) { if b > 0 { output = append(output, '-') } + overflow := false for remaining != 0 { m := int32(0x7fffffff) for _, r := range s { @@ -122,8 +127,8 @@ func encode(prefix, s string) (string, error) { m = r } } - delta += (m - n) * (h + 1) - if delta < 0 { + delta, overflow = madd(delta, m-n, h+1) + if overflow { return "", punyError(s) } n = m @@ -141,9 +146,9 @@ func encode(prefix, s string) (string, error) { q := delta for k := base; ; k += base { t := k - bias - if t < tmin { + if k <= bias { t = tmin - } else if t > tmax { + } else if k >= bias+tmax { t = tmax } if q < t { @@ -164,6 +169,15 @@ func encode(prefix, s string) (string, error) { return string(output), nil } +// madd computes a + (b * c), detecting overflow. +func madd(a, b, c int32) (next int32, overflow bool) { + p := int64(b) * int64(c) + if p > math.MaxInt32-int64(a) { + return 0, true + } + return a + int32(p), false +} + func decodeDigit(x byte) (digit int32, ok bool) { switch { case '0' <= x && x <= '9': diff --git a/vendor/golang.org/x/net/idna/trieval.go b/vendor/golang.org/x/net/idna/trieval.go index 7a8cf88..9c070a4 100644 --- a/vendor/golang.org/x/net/idna/trieval.go +++ b/vendor/golang.org/x/net/idna/trieval.go @@ -17,23 +17,23 @@ package idna // // The per-rune values have the following format: // -// if mapped { -// if inlinedXOR { -// 15..13 inline XOR marker -// 12..11 unused -// 10..3 inline XOR mask -// } else { -// 15..3 index into xor or mapping table -// } -// } else { -// 15..14 unused -// 13 mayNeedNorm -// 12..11 attributes -// 10..8 joining type -// 7..3 category type -// } -// 2 use xor pattern -// 1..0 mapped category +// if mapped { +// if inlinedXOR { +// 15..13 inline XOR marker +// 12..11 unused +// 10..3 inline XOR mask +// } else { +// 15..3 index into xor or mapping table +// } +// } else { +// 15..14 unused +// 13 mayNeedNorm +// 12..11 attributes +// 10..8 joining type +// 7..3 category type +// } +// 2 use xor pattern +// 1..0 mapped category // // See the definitions below for a more detailed description of the various // bits. diff --git a/vendor/golang.org/x/net/trace/histogram.go b/vendor/golang.org/x/net/trace/histogram.go index 9bf4286..d6c7110 100644 --- a/vendor/golang.org/x/net/trace/histogram.go +++ b/vendor/golang.org/x/net/trace/histogram.go @@ -32,7 +32,7 @@ type histogram struct { valueCount int64 // number of values recorded for single value } -// AddMeasurement records a value measurement observation to the histogram. +// addMeasurement records a value measurement observation to the histogram. func (h *histogram) addMeasurement(value int64) { // TODO: assert invariant h.sum += value diff --git a/vendor/golang.org/x/net/trace/trace.go b/vendor/golang.org/x/net/trace/trace.go index 3ebf6f2..eae2a99 100644 --- a/vendor/golang.org/x/net/trace/trace.go +++ b/vendor/golang.org/x/net/trace/trace.go @@ -395,7 +395,7 @@ func New(family, title string) Trace { } func (tr *trace) Finish() { - elapsed := time.Now().Sub(tr.Start) + elapsed := time.Since(tr.Start) tr.mu.Lock() tr.Elapsed = elapsed tr.mu.Unlock() diff --git a/vendor/golang.org/x/sync/LICENSE b/vendor/golang.org/x/sync/LICENSE new file mode 100644 index 0000000..6a66aea --- /dev/null +++ b/vendor/golang.org/x/sync/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/sync/PATENTS b/vendor/golang.org/x/sync/PATENTS new file mode 100644 index 0000000..7330990 --- /dev/null +++ b/vendor/golang.org/x/sync/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/sync/semaphore/semaphore.go b/vendor/golang.org/x/sync/semaphore/semaphore.go new file mode 100644 index 0000000..30f632c --- /dev/null +++ b/vendor/golang.org/x/sync/semaphore/semaphore.go @@ -0,0 +1,136 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package semaphore provides a weighted semaphore implementation. +package semaphore // import "golang.org/x/sync/semaphore" + +import ( + "container/list" + "context" + "sync" +) + +type waiter struct { + n int64 + ready chan<- struct{} // Closed when semaphore acquired. +} + +// NewWeighted creates a new weighted semaphore with the given +// maximum combined weight for concurrent access. +func NewWeighted(n int64) *Weighted { + w := &Weighted{size: n} + return w +} + +// Weighted provides a way to bound concurrent access to a resource. +// The callers can request access with a given weight. +type Weighted struct { + size int64 + cur int64 + mu sync.Mutex + waiters list.List +} + +// Acquire acquires the semaphore with a weight of n, blocking until resources +// are available or ctx is done. On success, returns nil. On failure, returns +// ctx.Err() and leaves the semaphore unchanged. +// +// If ctx is already done, Acquire may still succeed without blocking. +func (s *Weighted) Acquire(ctx context.Context, n int64) error { + s.mu.Lock() + if s.size-s.cur >= n && s.waiters.Len() == 0 { + s.cur += n + s.mu.Unlock() + return nil + } + + if n > s.size { + // Don't make other Acquire calls block on one that's doomed to fail. + s.mu.Unlock() + <-ctx.Done() + return ctx.Err() + } + + ready := make(chan struct{}) + w := waiter{n: n, ready: ready} + elem := s.waiters.PushBack(w) + s.mu.Unlock() + + select { + case <-ctx.Done(): + err := ctx.Err() + s.mu.Lock() + select { + case <-ready: + // Acquired the semaphore after we were canceled. Rather than trying to + // fix up the queue, just pretend we didn't notice the cancelation. + err = nil + default: + isFront := s.waiters.Front() == elem + s.waiters.Remove(elem) + // If we're at the front and there're extra tokens left, notify other waiters. + if isFront && s.size > s.cur { + s.notifyWaiters() + } + } + s.mu.Unlock() + return err + + case <-ready: + return nil + } +} + +// TryAcquire acquires the semaphore with a weight of n without blocking. +// On success, returns true. On failure, returns false and leaves the semaphore unchanged. +func (s *Weighted) TryAcquire(n int64) bool { + s.mu.Lock() + success := s.size-s.cur >= n && s.waiters.Len() == 0 + if success { + s.cur += n + } + s.mu.Unlock() + return success +} + +// Release releases the semaphore with a weight of n. +func (s *Weighted) Release(n int64) { + s.mu.Lock() + s.cur -= n + if s.cur < 0 { + s.mu.Unlock() + panic("semaphore: released more than held") + } + s.notifyWaiters() + s.mu.Unlock() +} + +func (s *Weighted) notifyWaiters() { + for { + next := s.waiters.Front() + if next == nil { + break // No more waiters blocked. + } + + w := next.Value.(waiter) + if s.size-s.cur < w.n { + // Not enough tokens for the next waiter. We could keep going (to try to + // find a waiter with a smaller request), but under load that could cause + // starvation for large requests; instead, we leave all remaining waiters + // blocked. + // + // Consider a semaphore used as a read-write lock, with N tokens, N + // readers, and one writer. Each reader can Acquire(1) to obtain a read + // lock. The writer can Acquire(N) to obtain a write lock, excluding all + // of the readers. If we allow the readers to jump ahead in the queue, + // the writer will starve — there is always one token available for every + // reader. + break + } + + s.cur += w.n + s.waiters.Remove(next) + close(w.ready) + } +} diff --git a/vendor/golang.org/x/sys/LICENSE b/vendor/golang.org/x/sys/LICENSE new file mode 100644 index 0000000..6a66aea --- /dev/null +++ b/vendor/golang.org/x/sys/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/sys/PATENTS b/vendor/golang.org/x/sys/PATENTS new file mode 100644 index 0000000..7330990 --- /dev/null +++ b/vendor/golang.org/x/sys/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/sys/unix/README.md b/vendor/golang.org/x/sys/unix/README.md new file mode 100644 index 0000000..7d3c060 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/README.md @@ -0,0 +1,184 @@ +# Building `sys/unix` + +The sys/unix package provides access to the raw system call interface of the +underlying operating system. See: https://godoc.org/golang.org/x/sys/unix + +Porting Go to a new architecture/OS combination or adding syscalls, types, or +constants to an existing architecture/OS pair requires some manual effort; +however, there are tools that automate much of the process. + +## Build Systems + +There are currently two ways we generate the necessary files. We are currently +migrating the build system to use containers so the builds are reproducible. +This is being done on an OS-by-OS basis. Please update this documentation as +components of the build system change. + +### Old Build System (currently for `GOOS != "linux"`) + +The old build system generates the Go files based on the C header files +present on your system. This means that files +for a given GOOS/GOARCH pair must be generated on a system with that OS and +architecture. This also means that the generated code can differ from system +to system, based on differences in the header files. + +To avoid this, if you are using the old build system, only generate the Go +files on an installation with unmodified header files. It is also important to +keep track of which version of the OS the files were generated from (ex. +Darwin 14 vs Darwin 15). This makes it easier to track the progress of changes +and have each OS upgrade correspond to a single change. + +To build the files for your current OS and architecture, make sure GOOS and +GOARCH are set correctly and run `mkall.sh`. This will generate the files for +your specific system. Running `mkall.sh -n` shows the commands that will be run. + +Requirements: bash, go + +### New Build System (currently for `GOOS == "linux"`) + +The new build system uses a Docker container to generate the go files directly +from source checkouts of the kernel and various system libraries. This means +that on any platform that supports Docker, all the files using the new build +system can be generated at once, and generated files will not change based on +what the person running the scripts has installed on their computer. + +The OS specific files for the new build system are located in the `${GOOS}` +directory, and the build is coordinated by the `${GOOS}/mkall.go` program. When +the kernel or system library updates, modify the Dockerfile at +`${GOOS}/Dockerfile` to checkout the new release of the source. + +To build all the files under the new build system, you must be on an amd64/Linux +system and have your GOOS and GOARCH set accordingly. Running `mkall.sh` will +then generate all of the files for all of the GOOS/GOARCH pairs in the new build +system. Running `mkall.sh -n` shows the commands that will be run. + +Requirements: bash, go, docker + +## Component files + +This section describes the various files used in the code generation process. +It also contains instructions on how to modify these files to add a new +architecture/OS or to add additional syscalls, types, or constants. Note that +if you are using the new build system, the scripts/programs cannot be called normally. +They must be called from within the docker container. + +### asm files + +The hand-written assembly file at `asm_${GOOS}_${GOARCH}.s` implements system +call dispatch. There are three entry points: +``` + func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) + func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) + func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) +``` +The first and second are the standard ones; they differ only in how many +arguments can be passed to the kernel. The third is for low-level use by the +ForkExec wrapper. Unlike the first two, it does not call into the scheduler to +let it know that a system call is running. + +When porting Go to a new architecture/OS, this file must be implemented for +each GOOS/GOARCH pair. + +### mksysnum + +Mksysnum is a Go program located at `${GOOS}/mksysnum.go` (or `mksysnum_${GOOS}.go` +for the old system). This program takes in a list of header files containing the +syscall number declarations and parses them to produce the corresponding list of +Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated +constants. + +Adding new syscall numbers is mostly done by running the build on a sufficiently +new installation of the target OS (or updating the source checkouts for the +new build system). However, depending on the OS, you may need to update the +parsing in mksysnum. + +### mksyscall.go + +The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are +hand-written Go files which implement system calls (for unix, the specific OS, +or the specific OS/Architecture pair respectively) that need special handling +and list `//sys` comments giving prototypes for ones that can be generated. + +The mksyscall.go program takes the `//sys` and `//sysnb` comments and converts +them into syscalls. This requires the name of the prototype in the comment to +match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function +prototype can be exported (capitalized) or not. + +Adding a new syscall often just requires adding a new `//sys` function prototype +with the desired arguments and a capitalized name so it is exported. However, if +you want the interface to the syscall to be different, often one will make an +unexported `//sys` prototype, and then write a custom wrapper in +`syscall_${GOOS}.go`. + +### types files + +For each OS, there is a hand-written Go file at `${GOOS}/types.go` (or +`types_${GOOS}.go` on the old system). This file includes standard C headers and +creates Go type aliases to the corresponding C types. The file is then fed +through godef to get the Go compatible definitions. Finally, the generated code +is fed though mkpost.go to format the code correctly and remove any hidden or +private identifiers. This cleaned-up code is written to +`ztypes_${GOOS}_${GOARCH}.go`. + +The hardest part about preparing this file is figuring out which headers to +include and which symbols need to be `#define`d to get the actual data +structures that pass through to the kernel system calls. Some C libraries +preset alternate versions for binary compatibility and translate them on the +way in and out of system calls, but there is almost always a `#define` that can +get the real ones. +See `types_darwin.go` and `linux/types.go` for examples. + +To add a new type, add in the necessary include statement at the top of the +file (if it is not already there) and add in a type alias line. Note that if +your type is significantly different on different architectures, you may need +some `#if/#elif` macros in your include statements. + +### mkerrors.sh + +This script is used to generate the system's various constants. This doesn't +just include the error numbers and error strings, but also the signal numbers +and a wide variety of miscellaneous constants. The constants come from the list +of include files in the `includes_${uname}` variable. A regex then picks out +the desired `#define` statements, and generates the corresponding Go constants. +The error numbers and strings are generated from `#include `, and the +signal numbers and strings are generated from `#include `. All of +these constants are written to `zerrors_${GOOS}_${GOARCH}.go` via a C program, +`_errors.c`, which prints out all the constants. + +To add a constant, add the header that includes it to the appropriate variable. +Then, edit the regex (if necessary) to match the desired constant. Avoid making +the regex too broad to avoid matching unintended constants. + +### internal/mkmerge + +This program is used to extract duplicate const, func, and type declarations +from the generated architecture-specific files listed below, and merge these +into a common file for each OS. + +The merge is performed in the following steps: +1. Construct the set of common code that is idential in all architecture-specific files. +2. Write this common code to the merged file. +3. Remove the common code from all architecture-specific files. + + +## Generated files + +### `zerrors_${GOOS}_${GOARCH}.go` + +A file containing all of the system's generated error numbers, error strings, +signal numbers, and constants. Generated by `mkerrors.sh` (see above). + +### `zsyscall_${GOOS}_${GOARCH}.go` + +A file containing all the generated syscalls for a specific GOOS and GOARCH. +Generated by `mksyscall.go` (see above). + +### `zsysnum_${GOOS}_${GOARCH}.go` + +A list of numeric constants for all the syscall number of the specific GOOS +and GOARCH. Generated by mksysnum (see above). + +### `ztypes_${GOOS}_${GOARCH}.go` + +A file containing Go types for passing into (or returning from) syscalls. +Generated by godefs and the types file (see above). diff --git a/vendor/golang.org/x/sys/unix/affinity_linux.go b/vendor/golang.org/x/sys/unix/affinity_linux.go new file mode 100644 index 0000000..6e5c81a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/affinity_linux.go @@ -0,0 +1,86 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// CPU affinity functions + +package unix + +import ( + "math/bits" + "unsafe" +) + +const cpuSetSize = _CPU_SETSIZE / _NCPUBITS + +// CPUSet represents a CPU affinity mask. +type CPUSet [cpuSetSize]cpuMask + +func schedAffinity(trap uintptr, pid int, set *CPUSet) error { + _, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set))) + if e != 0 { + return errnoErr(e) + } + return nil +} + +// SchedGetaffinity gets the CPU affinity mask of the thread specified by pid. +// If pid is 0 the calling thread is used. +func SchedGetaffinity(pid int, set *CPUSet) error { + return schedAffinity(SYS_SCHED_GETAFFINITY, pid, set) +} + +// SchedSetaffinity sets the CPU affinity mask of the thread specified by pid. +// If pid is 0 the calling thread is used. +func SchedSetaffinity(pid int, set *CPUSet) error { + return schedAffinity(SYS_SCHED_SETAFFINITY, pid, set) +} + +// Zero clears the set s, so that it contains no CPUs. +func (s *CPUSet) Zero() { + for i := range s { + s[i] = 0 + } +} + +func cpuBitsIndex(cpu int) int { + return cpu / _NCPUBITS +} + +func cpuBitsMask(cpu int) cpuMask { + return cpuMask(1 << (uint(cpu) % _NCPUBITS)) +} + +// Set adds cpu to the set s. +func (s *CPUSet) Set(cpu int) { + i := cpuBitsIndex(cpu) + if i < len(s) { + s[i] |= cpuBitsMask(cpu) + } +} + +// Clear removes cpu from the set s. +func (s *CPUSet) Clear(cpu int) { + i := cpuBitsIndex(cpu) + if i < len(s) { + s[i] &^= cpuBitsMask(cpu) + } +} + +// IsSet reports whether cpu is in the set s. +func (s *CPUSet) IsSet(cpu int) bool { + i := cpuBitsIndex(cpu) + if i < len(s) { + return s[i]&cpuBitsMask(cpu) != 0 + } + return false +} + +// Count returns the number of CPUs in the set s. +func (s *CPUSet) Count() int { + c := 0 + for _, b := range s { + c += bits.OnesCount64(uint64(b)) + } + return c +} diff --git a/vendor/golang.org/x/sys/unix/aliases.go b/vendor/golang.org/x/sys/unix/aliases.go new file mode 100644 index 0000000..abc89c1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/aliases.go @@ -0,0 +1,15 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos +// +build go1.9 + +package unix + +import "syscall" + +type Signal = syscall.Signal +type Errno = syscall.Errno +type SysProcAttr = syscall.SysProcAttr diff --git a/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s b/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s new file mode 100644 index 0000000..db9171c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s @@ -0,0 +1,18 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gc +// +build gc + +#include "textflag.h" + +// +// System calls for ppc64, AIX are implemented in runtime/syscall_aix.go +// + +TEXT ·syscall6(SB),NOSPLIT,$0-88 + JMP syscall·syscall6(SB) + +TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 + JMP syscall·rawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_bsd_386.s b/vendor/golang.org/x/sys/unix/asm_bsd_386.s new file mode 100644 index 0000000..e0fcd9b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_bsd_386.s @@ -0,0 +1,29 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (freebsd || netbsd || openbsd) && gc +// +build freebsd netbsd openbsd +// +build gc + +#include "textflag.h" + +// System call support for 386 BSD + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-28 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-40 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-52 + JMP syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-28 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 + JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s new file mode 100644 index 0000000..2b99c34 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s @@ -0,0 +1,29 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc +// +build darwin dragonfly freebsd netbsd openbsd +// +build gc + +#include "textflag.h" + +// System call support for AMD64 BSD + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-104 + JMP syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_bsd_arm.s b/vendor/golang.org/x/sys/unix/asm_bsd_arm.s new file mode 100644 index 0000000..d702d4a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_bsd_arm.s @@ -0,0 +1,29 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (freebsd || netbsd || openbsd) && gc +// +build freebsd netbsd openbsd +// +build gc + +#include "textflag.h" + +// System call support for ARM BSD + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-28 + B syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-40 + B syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-52 + B syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-28 + B syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 + B syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s b/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s new file mode 100644 index 0000000..fe36a73 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s @@ -0,0 +1,29 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin || freebsd || netbsd || openbsd) && gc +// +build darwin freebsd netbsd openbsd +// +build gc + +#include "textflag.h" + +// System call support for ARM64 BSD + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-104 + JMP syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s b/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s new file mode 100644 index 0000000..e5b9a84 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s @@ -0,0 +1,31 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin || freebsd || netbsd || openbsd) && gc +// +build darwin freebsd netbsd openbsd +// +build gc + +#include "textflag.h" + +// +// System call support for ppc64, BSD +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-104 + JMP syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s b/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s new file mode 100644 index 0000000..d560019 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s @@ -0,0 +1,29 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin || freebsd || netbsd || openbsd) && gc +// +build darwin freebsd netbsd openbsd +// +build gc + +#include "textflag.h" + +// System call support for RISCV64 BSD + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-104 + JMP syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_386.s b/vendor/golang.org/x/sys/unix/asm_linux_386.s new file mode 100644 index 0000000..8fd101d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_386.s @@ -0,0 +1,66 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gc +// +build gc + +#include "textflag.h" + +// +// System calls for 386, Linux +// + +// See ../runtime/sys_linux_386.s for the reason why we always use int 0x80 +// instead of the glibc-specific "CALL 0x10(GS)". +#define INVOKE_SYSCALL INT $0x80 + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-28 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-40 + JMP syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 + CALL runtime·entersyscall(SB) + MOVL trap+0(FP), AX // syscall entry + MOVL a1+4(FP), BX + MOVL a2+8(FP), CX + MOVL a3+12(FP), DX + MOVL $0, SI + MOVL $0, DI + INVOKE_SYSCALL + MOVL AX, r1+16(FP) + MOVL DX, r2+20(FP) + CALL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-28 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 + JMP syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 + MOVL trap+0(FP), AX // syscall entry + MOVL a1+4(FP), BX + MOVL a2+8(FP), CX + MOVL a3+12(FP), DX + MOVL $0, SI + MOVL $0, DI + INVOKE_SYSCALL + MOVL AX, r1+16(FP) + MOVL DX, r2+20(FP) + RET + +TEXT ·socketcall(SB),NOSPLIT,$0-36 + JMP syscall·socketcall(SB) + +TEXT ·rawsocketcall(SB),NOSPLIT,$0-36 + JMP syscall·rawsocketcall(SB) + +TEXT ·seek(SB),NOSPLIT,$0-28 + JMP syscall·seek(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_amd64.s b/vendor/golang.org/x/sys/unix/asm_linux_amd64.s new file mode 100644 index 0000000..7ed38e4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_amd64.s @@ -0,0 +1,58 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gc +// +build gc + +#include "textflag.h" + +// +// System calls for AMD64, Linux +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + CALL runtime·entersyscall(SB) + MOVQ a1+8(FP), DI + MOVQ a2+16(FP), SI + MOVQ a3+24(FP), DX + MOVQ $0, R10 + MOVQ $0, R8 + MOVQ $0, R9 + MOVQ trap+0(FP), AX // syscall entry + SYSCALL + MOVQ AX, r1+32(FP) + MOVQ DX, r2+40(FP) + CALL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOVQ a1+8(FP), DI + MOVQ a2+16(FP), SI + MOVQ a3+24(FP), DX + MOVQ $0, R10 + MOVQ $0, R8 + MOVQ $0, R9 + MOVQ trap+0(FP), AX // syscall entry + SYSCALL + MOVQ AX, r1+32(FP) + MOVQ DX, r2+40(FP) + RET + +TEXT ·gettimeofday(SB),NOSPLIT,$0-16 + JMP syscall·gettimeofday(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_arm.s b/vendor/golang.org/x/sys/unix/asm_linux_arm.s new file mode 100644 index 0000000..8ef1d51 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_arm.s @@ -0,0 +1,57 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gc +// +build gc + +#include "textflag.h" + +// +// System calls for arm, Linux +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-28 + B syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-40 + B syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 + BL runtime·entersyscall(SB) + MOVW trap+0(FP), R7 + MOVW a1+4(FP), R0 + MOVW a2+8(FP), R1 + MOVW a3+12(FP), R2 + MOVW $0, R3 + MOVW $0, R4 + MOVW $0, R5 + SWI $0 + MOVW R0, r1+16(FP) + MOVW $0, R0 + MOVW R0, r2+20(FP) + BL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-28 + B syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 + B syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 + MOVW trap+0(FP), R7 // syscall entry + MOVW a1+4(FP), R0 + MOVW a2+8(FP), R1 + MOVW a3+12(FP), R2 + SWI $0 + MOVW R0, r1+16(FP) + MOVW $0, R0 + MOVW R0, r2+20(FP) + RET + +TEXT ·seek(SB),NOSPLIT,$0-28 + B syscall·seek(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_arm64.s b/vendor/golang.org/x/sys/unix/asm_linux_arm64.s new file mode 100644 index 0000000..98ae027 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_arm64.s @@ -0,0 +1,53 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && arm64 && gc +// +build linux +// +build arm64 +// +build gc + +#include "textflag.h" + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + B syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + B syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + BL runtime·entersyscall(SB) + MOVD a1+8(FP), R0 + MOVD a2+16(FP), R1 + MOVD a3+24(FP), R2 + MOVD $0, R3 + MOVD $0, R4 + MOVD $0, R5 + MOVD trap+0(FP), R8 // syscall entry + SVC + MOVD R0, r1+32(FP) // r1 + MOVD R1, r2+40(FP) // r2 + BL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + B syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + B syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOVD a1+8(FP), R0 + MOVD a2+16(FP), R1 + MOVD a3+24(FP), R2 + MOVD $0, R3 + MOVD $0, R4 + MOVD $0, R5 + MOVD trap+0(FP), R8 // syscall entry + SVC + MOVD R0, r1+32(FP) + MOVD R1, r2+40(FP) + RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_loong64.s b/vendor/golang.org/x/sys/unix/asm_linux_loong64.s new file mode 100644 index 0000000..5653572 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_loong64.s @@ -0,0 +1,54 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && loong64 && gc +// +build linux +// +build loong64 +// +build gc + +#include "textflag.h" + + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + JAL runtime·entersyscall(SB) + MOVV a1+8(FP), R4 + MOVV a2+16(FP), R5 + MOVV a3+24(FP), R6 + MOVV R0, R7 + MOVV R0, R8 + MOVV R0, R9 + MOVV trap+0(FP), R11 // syscall entry + SYSCALL + MOVV R4, r1+32(FP) + MOVV R0, r2+40(FP) // r2 is not used. Always set to 0 + JAL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOVV a1+8(FP), R4 + MOVV a2+16(FP), R5 + MOVV a3+24(FP), R6 + MOVV R0, R7 + MOVV R0, R8 + MOVV R0, R9 + MOVV trap+0(FP), R11 // syscall entry + SYSCALL + MOVV R4, r1+32(FP) + MOVV R0, r2+40(FP) // r2 is not used. Always set to 0 + RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s b/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s new file mode 100644 index 0000000..21231d2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s @@ -0,0 +1,57 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (mips64 || mips64le) && gc +// +build linux +// +build mips64 mips64le +// +build gc + +#include "textflag.h" + +// +// System calls for mips64, Linux +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + JAL runtime·entersyscall(SB) + MOVV a1+8(FP), R4 + MOVV a2+16(FP), R5 + MOVV a3+24(FP), R6 + MOVV R0, R7 + MOVV R0, R8 + MOVV R0, R9 + MOVV trap+0(FP), R2 // syscall entry + SYSCALL + MOVV R2, r1+32(FP) + MOVV R3, r2+40(FP) + JAL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOVV a1+8(FP), R4 + MOVV a2+16(FP), R5 + MOVV a3+24(FP), R6 + MOVV R0, R7 + MOVV R0, R8 + MOVV R0, R9 + MOVV trap+0(FP), R2 // syscall entry + SYSCALL + MOVV R2, r1+32(FP) + MOVV R3, r2+40(FP) + RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s b/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s new file mode 100644 index 0000000..6783b26 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s @@ -0,0 +1,55 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (mips || mipsle) && gc +// +build linux +// +build mips mipsle +// +build gc + +#include "textflag.h" + +// +// System calls for mips, Linux +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-28 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-40 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-52 + JMP syscall·Syscall9(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 + JAL runtime·entersyscall(SB) + MOVW a1+4(FP), R4 + MOVW a2+8(FP), R5 + MOVW a3+12(FP), R6 + MOVW R0, R7 + MOVW trap+0(FP), R2 // syscall entry + SYSCALL + MOVW R2, r1+16(FP) // r1 + MOVW R3, r2+20(FP) // r2 + JAL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-28 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 + JMP syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 + MOVW a1+4(FP), R4 + MOVW a2+8(FP), R5 + MOVW a3+12(FP), R6 + MOVW trap+0(FP), R2 // syscall entry + SYSCALL + MOVW R2, r1+16(FP) + MOVW R3, r2+20(FP) + RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s new file mode 100644 index 0000000..19d4989 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s @@ -0,0 +1,45 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (ppc64 || ppc64le) && gc +// +build linux +// +build ppc64 ppc64le +// +build gc + +#include "textflag.h" + +// +// System calls for ppc64, Linux +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + BL runtime·entersyscall(SB) + MOVD a1+8(FP), R3 + MOVD a2+16(FP), R4 + MOVD a3+24(FP), R5 + MOVD R0, R6 + MOVD R0, R7 + MOVD R0, R8 + MOVD trap+0(FP), R9 // syscall entry + SYSCALL R9 + MOVD R3, r1+32(FP) + MOVD R4, r2+40(FP) + BL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOVD a1+8(FP), R3 + MOVD a2+16(FP), R4 + MOVD a3+24(FP), R5 + MOVD R0, R6 + MOVD R0, R7 + MOVD R0, R8 + MOVD trap+0(FP), R9 // syscall entry + SYSCALL R9 + MOVD R3, r1+32(FP) + MOVD R4, r2+40(FP) + RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s b/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s new file mode 100644 index 0000000..e42eb81 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s @@ -0,0 +1,49 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build riscv64 && gc +// +build riscv64 +// +build gc + +#include "textflag.h" + +// +// System calls for linux/riscv64. +// +// Where available, just jump to package syscall's implementation of +// these functions. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + CALL runtime·entersyscall(SB) + MOV a1+8(FP), A0 + MOV a2+16(FP), A1 + MOV a3+24(FP), A2 + MOV trap+0(FP), A7 // syscall entry + ECALL + MOV A0, r1+32(FP) // r1 + MOV A1, r2+40(FP) // r2 + CALL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOV a1+8(FP), A0 + MOV a2+16(FP), A1 + MOV a3+24(FP), A2 + MOV trap+0(FP), A7 // syscall entry + ECALL + MOV A0, r1+32(FP) + MOV A1, r2+40(FP) + RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_s390x.s b/vendor/golang.org/x/sys/unix/asm_linux_s390x.s new file mode 100644 index 0000000..c46aab3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_linux_s390x.s @@ -0,0 +1,57 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && s390x && gc +// +build linux +// +build s390x +// +build gc + +#include "textflag.h" + +// +// System calls for s390x, Linux +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + BR syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + BR syscall·Syscall6(SB) + +TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 + BL runtime·entersyscall(SB) + MOVD a1+8(FP), R2 + MOVD a2+16(FP), R3 + MOVD a3+24(FP), R4 + MOVD $0, R5 + MOVD $0, R6 + MOVD $0, R7 + MOVD trap+0(FP), R1 // syscall entry + SYSCALL + MOVD R2, r1+32(FP) + MOVD R3, r2+40(FP) + BL runtime·exitsyscall(SB) + RET + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + BR syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + BR syscall·RawSyscall6(SB) + +TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 + MOVD a1+8(FP), R2 + MOVD a2+16(FP), R3 + MOVD a3+24(FP), R4 + MOVD $0, R5 + MOVD $0, R6 + MOVD $0, R7 + MOVD trap+0(FP), R1 // syscall entry + SYSCALL + MOVD R2, r1+32(FP) + MOVD R3, r2+40(FP) + RET diff --git a/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s b/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s new file mode 100644 index 0000000..5e7a116 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s @@ -0,0 +1,30 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gc +// +build gc + +#include "textflag.h" + +// +// System call support for mips64, OpenBSD +// + +// Just jump to package syscall's implementation for all these functions. +// The runtime may know about them. + +TEXT ·Syscall(SB),NOSPLIT,$0-56 + JMP syscall·Syscall(SB) + +TEXT ·Syscall6(SB),NOSPLIT,$0-80 + JMP syscall·Syscall6(SB) + +TEXT ·Syscall9(SB),NOSPLIT,$0-104 + JMP syscall·Syscall9(SB) + +TEXT ·RawSyscall(SB),NOSPLIT,$0-56 + JMP syscall·RawSyscall(SB) + +TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 + JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s b/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s new file mode 100644 index 0000000..f8c5394 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s @@ -0,0 +1,18 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gc +// +build gc + +#include "textflag.h" + +// +// System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go +// + +TEXT ·sysvicall6(SB),NOSPLIT,$0-88 + JMP syscall·sysvicall6(SB) + +TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 + JMP syscall·rawSysvicall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_zos_s390x.s b/vendor/golang.org/x/sys/unix/asm_zos_s390x.s new file mode 100644 index 0000000..3b54e18 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/asm_zos_s390x.s @@ -0,0 +1,426 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x && gc +// +build zos +// +build s390x +// +build gc + +#include "textflag.h" + +#define PSALAA 1208(R0) +#define GTAB64(x) 80(x) +#define LCA64(x) 88(x) +#define CAA(x) 8(x) +#define EDCHPXV(x) 1016(x) // in the CAA +#define SAVSTACK_ASYNC(x) 336(x) // in the LCA + +// SS_*, where x=SAVSTACK_ASYNC +#define SS_LE(x) 0(x) +#define SS_GO(x) 8(x) +#define SS_ERRNO(x) 16(x) +#define SS_ERRNOJR(x) 20(x) + +#define LE_CALL BYTE $0x0D; BYTE $0x76; // BL R7, R6 + +TEXT ·clearErrno(SB),NOSPLIT,$0-0 + BL addrerrno<>(SB) + MOVD $0, 0(R3) + RET + +// Returns the address of errno in R3. +TEXT addrerrno<>(SB),NOSPLIT|NOFRAME,$0-0 + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get __errno FuncDesc. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + ADD $(0x156*16), R9 + LMG 0(R9), R5, R6 + + // Switch to saved LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Call __errno function. + LE_CALL + NOPH + + // Switch back to Go stack. + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + RET + +TEXT ·syscall_syscall(SB),NOSPLIT,$0-56 + BL runtime·entersyscall(SB) + MOVD a1+8(FP), R1 + MOVD a2+16(FP), R2 + MOVD a3+24(FP), R3 + + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get function. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + MOVD trap+0(FP), R5 + SLD $4, R5 + ADD R5, R9 + LMG 0(R9), R5, R6 + + // Restore LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Call function. + LE_CALL + NOPH + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + + MOVD R3, r1+32(FP) + MOVD R0, r2+40(FP) + MOVD R0, err+48(FP) + MOVW R3, R4 + CMP R4, $-1 + BNE done + BL addrerrno<>(SB) + MOVWZ 0(R3), R3 + MOVD R3, err+48(FP) +done: + BL runtime·exitsyscall(SB) + RET + +TEXT ·syscall_rawsyscall(SB),NOSPLIT,$0-56 + MOVD a1+8(FP), R1 + MOVD a2+16(FP), R2 + MOVD a3+24(FP), R3 + + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get function. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + MOVD trap+0(FP), R5 + SLD $4, R5 + ADD R5, R9 + LMG 0(R9), R5, R6 + + // Restore LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Call function. + LE_CALL + NOPH + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + + MOVD R3, r1+32(FP) + MOVD R0, r2+40(FP) + MOVD R0, err+48(FP) + MOVW R3, R4 + CMP R4, $-1 + BNE done + BL addrerrno<>(SB) + MOVWZ 0(R3), R3 + MOVD R3, err+48(FP) +done: + RET + +TEXT ·syscall_syscall6(SB),NOSPLIT,$0-80 + BL runtime·entersyscall(SB) + MOVD a1+8(FP), R1 + MOVD a2+16(FP), R2 + MOVD a3+24(FP), R3 + + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get function. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + MOVD trap+0(FP), R5 + SLD $4, R5 + ADD R5, R9 + LMG 0(R9), R5, R6 + + // Restore LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Fill in parameter list. + MOVD a4+32(FP), R12 + MOVD R12, (2176+24)(R4) + MOVD a5+40(FP), R12 + MOVD R12, (2176+32)(R4) + MOVD a6+48(FP), R12 + MOVD R12, (2176+40)(R4) + + // Call function. + LE_CALL + NOPH + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + + MOVD R3, r1+56(FP) + MOVD R0, r2+64(FP) + MOVD R0, err+72(FP) + MOVW R3, R4 + CMP R4, $-1 + BNE done + BL addrerrno<>(SB) + MOVWZ 0(R3), R3 + MOVD R3, err+72(FP) +done: + BL runtime·exitsyscall(SB) + RET + +TEXT ·syscall_rawsyscall6(SB),NOSPLIT,$0-80 + MOVD a1+8(FP), R1 + MOVD a2+16(FP), R2 + MOVD a3+24(FP), R3 + + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get function. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + MOVD trap+0(FP), R5 + SLD $4, R5 + ADD R5, R9 + LMG 0(R9), R5, R6 + + // Restore LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Fill in parameter list. + MOVD a4+32(FP), R12 + MOVD R12, (2176+24)(R4) + MOVD a5+40(FP), R12 + MOVD R12, (2176+32)(R4) + MOVD a6+48(FP), R12 + MOVD R12, (2176+40)(R4) + + // Call function. + LE_CALL + NOPH + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + + MOVD R3, r1+56(FP) + MOVD R0, r2+64(FP) + MOVD R0, err+72(FP) + MOVW R3, R4 + CMP R4, $-1 + BNE done + BL ·rrno<>(SB) + MOVWZ 0(R3), R3 + MOVD R3, err+72(FP) +done: + RET + +TEXT ·syscall_syscall9(SB),NOSPLIT,$0 + BL runtime·entersyscall(SB) + MOVD a1+8(FP), R1 + MOVD a2+16(FP), R2 + MOVD a3+24(FP), R3 + + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get function. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + MOVD trap+0(FP), R5 + SLD $4, R5 + ADD R5, R9 + LMG 0(R9), R5, R6 + + // Restore LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Fill in parameter list. + MOVD a4+32(FP), R12 + MOVD R12, (2176+24)(R4) + MOVD a5+40(FP), R12 + MOVD R12, (2176+32)(R4) + MOVD a6+48(FP), R12 + MOVD R12, (2176+40)(R4) + MOVD a7+56(FP), R12 + MOVD R12, (2176+48)(R4) + MOVD a8+64(FP), R12 + MOVD R12, (2176+56)(R4) + MOVD a9+72(FP), R12 + MOVD R12, (2176+64)(R4) + + // Call function. + LE_CALL + NOPH + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + + MOVD R3, r1+80(FP) + MOVD R0, r2+88(FP) + MOVD R0, err+96(FP) + MOVW R3, R4 + CMP R4, $-1 + BNE done + BL addrerrno<>(SB) + MOVWZ 0(R3), R3 + MOVD R3, err+96(FP) +done: + BL runtime·exitsyscall(SB) + RET + +TEXT ·syscall_rawsyscall9(SB),NOSPLIT,$0 + MOVD a1+8(FP), R1 + MOVD a2+16(FP), R2 + MOVD a3+24(FP), R3 + + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get function. + MOVD CAA(R8), R9 + MOVD EDCHPXV(R9), R9 + MOVD trap+0(FP), R5 + SLD $4, R5 + ADD R5, R9 + LMG 0(R9), R5, R6 + + // Restore LE stack. + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R4 + MOVD $0, 0(R9) + + // Fill in parameter list. + MOVD a4+32(FP), R12 + MOVD R12, (2176+24)(R4) + MOVD a5+40(FP), R12 + MOVD R12, (2176+32)(R4) + MOVD a6+48(FP), R12 + MOVD R12, (2176+40)(R4) + MOVD a7+56(FP), R12 + MOVD R12, (2176+48)(R4) + MOVD a8+64(FP), R12 + MOVD R12, (2176+56)(R4) + MOVD a9+72(FP), R12 + MOVD R12, (2176+64)(R4) + + // Call function. + LE_CALL + NOPH + XOR R0, R0 // Restore R0 to $0. + MOVD R4, 0(R9) // Save stack pointer. + + MOVD R3, r1+80(FP) + MOVD R0, r2+88(FP) + MOVD R0, err+96(FP) + MOVW R3, R4 + CMP R4, $-1 + BNE done + BL addrerrno<>(SB) + MOVWZ 0(R3), R3 + MOVD R3, err+96(FP) +done: + RET + +// func svcCall(fnptr unsafe.Pointer, argv *unsafe.Pointer, dsa *uint64) +TEXT ·svcCall(SB),NOSPLIT,$0 + BL runtime·save_g(SB) // Save g and stack pointer + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD R15, 0(R9) + + MOVD argv+8(FP), R1 // Move function arguments into registers + MOVD dsa+16(FP), g + MOVD fnptr+0(FP), R15 + + BYTE $0x0D // Branch to function + BYTE $0xEF + + BL runtime·load_g(SB) // Restore g and stack pointer + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + MOVD SAVSTACK_ASYNC(R8), R9 + MOVD 0(R9), R15 + + RET + +// func svcLoad(name *byte) unsafe.Pointer +TEXT ·svcLoad(SB),NOSPLIT,$0 + MOVD R15, R2 // Save go stack pointer + MOVD name+0(FP), R0 // Move SVC args into registers + MOVD $0x80000000, R1 + MOVD $0, R15 + BYTE $0x0A // SVC 08 LOAD + BYTE $0x08 + MOVW R15, R3 // Save return code from SVC + MOVD R2, R15 // Restore go stack pointer + CMP R3, $0 // Check SVC return code + BNE error + + MOVD $-2, R3 // Reset last bit of entry point to zero + AND R0, R3 + MOVD R3, addr+8(FP) // Return entry point returned by SVC + CMP R0, R3 // Check if last bit of entry point was set + BNE done + + MOVD R15, R2 // Save go stack pointer + MOVD $0, R15 // Move SVC args into registers (entry point still in r0 from SVC 08) + BYTE $0x0A // SVC 09 DELETE + BYTE $0x09 + MOVD R2, R15 // Restore go stack pointer + +error: + MOVD $0, addr+8(FP) // Return 0 on failure +done: + XOR R0, R0 // Reset r0 to 0 + RET + +// func svcUnload(name *byte, fnptr unsafe.Pointer) int64 +TEXT ·svcUnload(SB),NOSPLIT,$0 + MOVD R15, R2 // Save go stack pointer + MOVD name+0(FP), R0 // Move SVC args into registers + MOVD addr+8(FP), R15 + BYTE $0x0A // SVC 09 + BYTE $0x09 + XOR R0, R0 // Reset r0 to 0 + MOVD R15, R1 // Save SVC return code + MOVD R2, R15 // Restore go stack pointer + MOVD R1, rc+0(FP) // Return SVC return code + RET + +// func gettid() uint64 +TEXT ·gettid(SB), NOSPLIT, $0 + // Get library control area (LCA). + MOVW PSALAA, R8 + MOVD LCA64(R8), R8 + + // Get CEECAATHDID + MOVD CAA(R8), R9 + MOVD 0x3D0(R9), R9 + MOVD R9, ret+0(FP) + + RET diff --git a/vendor/golang.org/x/sys/unix/bluetooth_linux.go b/vendor/golang.org/x/sys/unix/bluetooth_linux.go new file mode 100644 index 0000000..a178a61 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/bluetooth_linux.go @@ -0,0 +1,36 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Bluetooth sockets and messages + +package unix + +// Bluetooth Protocols +const ( + BTPROTO_L2CAP = 0 + BTPROTO_HCI = 1 + BTPROTO_SCO = 2 + BTPROTO_RFCOMM = 3 + BTPROTO_BNEP = 4 + BTPROTO_CMTP = 5 + BTPROTO_HIDP = 6 + BTPROTO_AVDTP = 7 +) + +const ( + HCI_CHANNEL_RAW = 0 + HCI_CHANNEL_USER = 1 + HCI_CHANNEL_MONITOR = 2 + HCI_CHANNEL_CONTROL = 3 + HCI_CHANNEL_LOGGING = 4 +) + +// Socketoption Level +const ( + SOL_BLUETOOTH = 0x112 + SOL_HCI = 0x0 + SOL_L2CAP = 0x6 + SOL_RFCOMM = 0x12 + SOL_SCO = 0x11 +) diff --git a/vendor/golang.org/x/sys/unix/cap_freebsd.go b/vendor/golang.org/x/sys/unix/cap_freebsd.go new file mode 100644 index 0000000..0b7c6ad --- /dev/null +++ b/vendor/golang.org/x/sys/unix/cap_freebsd.go @@ -0,0 +1,196 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build freebsd +// +build freebsd + +package unix + +import ( + "errors" + "fmt" +) + +// Go implementation of C mostly found in /usr/src/sys/kern/subr_capability.c + +const ( + // This is the version of CapRights this package understands. See C implementation for parallels. + capRightsGoVersion = CAP_RIGHTS_VERSION_00 + capArSizeMin = CAP_RIGHTS_VERSION_00 + 2 + capArSizeMax = capRightsGoVersion + 2 +) + +var ( + bit2idx = []int{ + -1, 0, 1, -1, 2, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, + 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + } +) + +func capidxbit(right uint64) int { + return int((right >> 57) & 0x1f) +} + +func rightToIndex(right uint64) (int, error) { + idx := capidxbit(right) + if idx < 0 || idx >= len(bit2idx) { + return -2, fmt.Errorf("index for right 0x%x out of range", right) + } + return bit2idx[idx], nil +} + +func caprver(right uint64) int { + return int(right >> 62) +} + +func capver(rights *CapRights) int { + return caprver(rights.Rights[0]) +} + +func caparsize(rights *CapRights) int { + return capver(rights) + 2 +} + +// CapRightsSet sets the permissions in setrights in rights. +func CapRightsSet(rights *CapRights, setrights []uint64) error { + // This is essentially a copy of cap_rights_vset() + if capver(rights) != CAP_RIGHTS_VERSION_00 { + return fmt.Errorf("bad rights version %d", capver(rights)) + } + + n := caparsize(rights) + if n < capArSizeMin || n > capArSizeMax { + return errors.New("bad rights size") + } + + for _, right := range setrights { + if caprver(right) != CAP_RIGHTS_VERSION_00 { + return errors.New("bad right version") + } + i, err := rightToIndex(right) + if err != nil { + return err + } + if i >= n { + return errors.New("index overflow") + } + if capidxbit(rights.Rights[i]) != capidxbit(right) { + return errors.New("index mismatch") + } + rights.Rights[i] |= right + if capidxbit(rights.Rights[i]) != capidxbit(right) { + return errors.New("index mismatch (after assign)") + } + } + + return nil +} + +// CapRightsClear clears the permissions in clearrights from rights. +func CapRightsClear(rights *CapRights, clearrights []uint64) error { + // This is essentially a copy of cap_rights_vclear() + if capver(rights) != CAP_RIGHTS_VERSION_00 { + return fmt.Errorf("bad rights version %d", capver(rights)) + } + + n := caparsize(rights) + if n < capArSizeMin || n > capArSizeMax { + return errors.New("bad rights size") + } + + for _, right := range clearrights { + if caprver(right) != CAP_RIGHTS_VERSION_00 { + return errors.New("bad right version") + } + i, err := rightToIndex(right) + if err != nil { + return err + } + if i >= n { + return errors.New("index overflow") + } + if capidxbit(rights.Rights[i]) != capidxbit(right) { + return errors.New("index mismatch") + } + rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF) + if capidxbit(rights.Rights[i]) != capidxbit(right) { + return errors.New("index mismatch (after assign)") + } + } + + return nil +} + +// CapRightsIsSet checks whether all the permissions in setrights are present in rights. +func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) { + // This is essentially a copy of cap_rights_is_vset() + if capver(rights) != CAP_RIGHTS_VERSION_00 { + return false, fmt.Errorf("bad rights version %d", capver(rights)) + } + + n := caparsize(rights) + if n < capArSizeMin || n > capArSizeMax { + return false, errors.New("bad rights size") + } + + for _, right := range setrights { + if caprver(right) != CAP_RIGHTS_VERSION_00 { + return false, errors.New("bad right version") + } + i, err := rightToIndex(right) + if err != nil { + return false, err + } + if i >= n { + return false, errors.New("index overflow") + } + if capidxbit(rights.Rights[i]) != capidxbit(right) { + return false, errors.New("index mismatch") + } + if (rights.Rights[i] & right) != right { + return false, nil + } + } + + return true, nil +} + +func capright(idx uint64, bit uint64) uint64 { + return ((1 << (57 + idx)) | bit) +} + +// CapRightsInit returns a pointer to an initialised CapRights structure filled with rights. +// See man cap_rights_init(3) and rights(4). +func CapRightsInit(rights []uint64) (*CapRights, error) { + var r CapRights + r.Rights[0] = (capRightsGoVersion << 62) | capright(0, 0) + r.Rights[1] = capright(1, 0) + + err := CapRightsSet(&r, rights) + if err != nil { + return nil, err + } + return &r, nil +} + +// CapRightsLimit reduces the operations permitted on fd to at most those contained in rights. +// The capability rights on fd can never be increased by CapRightsLimit. +// See man cap_rights_limit(2) and rights(4). +func CapRightsLimit(fd uintptr, rights *CapRights) error { + return capRightsLimit(int(fd), rights) +} + +// CapRightsGet returns a CapRights structure containing the operations permitted on fd. +// See man cap_rights_get(3) and rights(4). +func CapRightsGet(fd uintptr) (*CapRights, error) { + r, err := CapRightsInit(nil) + if err != nil { + return nil, err + } + err = capRightsGet(capRightsGoVersion, int(fd), r) + if err != nil { + return nil, err + } + return r, nil +} diff --git a/vendor/golang.org/x/sys/unix/constants.go b/vendor/golang.org/x/sys/unix/constants.go new file mode 100644 index 0000000..394a396 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/constants.go @@ -0,0 +1,14 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +package unix + +const ( + R_OK = 0x4 + W_OK = 0x2 + X_OK = 0x1 +) diff --git a/vendor/golang.org/x/sys/unix/dev_aix_ppc.go b/vendor/golang.org/x/sys/unix/dev_aix_ppc.go new file mode 100644 index 0000000..65a9985 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_aix_ppc.go @@ -0,0 +1,27 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix && ppc +// +build aix,ppc + +// Functions to access/create device major and minor numbers matching the +// encoding used by AIX. + +package unix + +// Major returns the major component of a Linux device number. +func Major(dev uint64) uint32 { + return uint32((dev >> 16) & 0xffff) +} + +// Minor returns the minor component of a Linux device number. +func Minor(dev uint64) uint32 { + return uint32(dev & 0xffff) +} + +// Mkdev returns a Linux device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + return uint64(((major) << 16) | (minor)) +} diff --git a/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go b/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go new file mode 100644 index 0000000..8fc08ad --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go @@ -0,0 +1,29 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix && ppc64 +// +build aix,ppc64 + +// Functions to access/create device major and minor numbers matching the +// encoding used AIX. + +package unix + +// Major returns the major component of a Linux device number. +func Major(dev uint64) uint32 { + return uint32((dev & 0x3fffffff00000000) >> 32) +} + +// Minor returns the minor component of a Linux device number. +func Minor(dev uint64) uint32 { + return uint32((dev & 0x00000000ffffffff) >> 0) +} + +// Mkdev returns a Linux device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + var DEVNO64 uint64 + DEVNO64 = 0x8000000000000000 + return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64) +} diff --git a/vendor/golang.org/x/sys/unix/dev_darwin.go b/vendor/golang.org/x/sys/unix/dev_darwin.go new file mode 100644 index 0000000..8d1dc0f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_darwin.go @@ -0,0 +1,24 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Functions to access/create device major and minor numbers matching the +// encoding used in Darwin's sys/types.h header. + +package unix + +// Major returns the major component of a Darwin device number. +func Major(dev uint64) uint32 { + return uint32((dev >> 24) & 0xff) +} + +// Minor returns the minor component of a Darwin device number. +func Minor(dev uint64) uint32 { + return uint32(dev & 0xffffff) +} + +// Mkdev returns a Darwin device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + return (uint64(major) << 24) | uint64(minor) +} diff --git a/vendor/golang.org/x/sys/unix/dev_dragonfly.go b/vendor/golang.org/x/sys/unix/dev_dragonfly.go new file mode 100644 index 0000000..8502f20 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_dragonfly.go @@ -0,0 +1,30 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Functions to access/create device major and minor numbers matching the +// encoding used in Dragonfly's sys/types.h header. +// +// The information below is extracted and adapted from sys/types.h: +// +// Minor gives a cookie instead of an index since in order to avoid changing the +// meanings of bits 0-15 or wasting time and space shifting bits 16-31 for +// devices that don't use them. + +package unix + +// Major returns the major component of a DragonFlyBSD device number. +func Major(dev uint64) uint32 { + return uint32((dev >> 8) & 0xff) +} + +// Minor returns the minor component of a DragonFlyBSD device number. +func Minor(dev uint64) uint32 { + return uint32(dev & 0xffff00ff) +} + +// Mkdev returns a DragonFlyBSD device number generated from the given major and +// minor components. +func Mkdev(major, minor uint32) uint64 { + return (uint64(major) << 8) | uint64(minor) +} diff --git a/vendor/golang.org/x/sys/unix/dev_freebsd.go b/vendor/golang.org/x/sys/unix/dev_freebsd.go new file mode 100644 index 0000000..eba3b4b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_freebsd.go @@ -0,0 +1,30 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Functions to access/create device major and minor numbers matching the +// encoding used in FreeBSD's sys/types.h header. +// +// The information below is extracted and adapted from sys/types.h: +// +// Minor gives a cookie instead of an index since in order to avoid changing the +// meanings of bits 0-15 or wasting time and space shifting bits 16-31 for +// devices that don't use them. + +package unix + +// Major returns the major component of a FreeBSD device number. +func Major(dev uint64) uint32 { + return uint32((dev >> 8) & 0xff) +} + +// Minor returns the minor component of a FreeBSD device number. +func Minor(dev uint64) uint32 { + return uint32(dev & 0xffff00ff) +} + +// Mkdev returns a FreeBSD device number generated from the given major and +// minor components. +func Mkdev(major, minor uint32) uint64 { + return (uint64(major) << 8) | uint64(minor) +} diff --git a/vendor/golang.org/x/sys/unix/dev_linux.go b/vendor/golang.org/x/sys/unix/dev_linux.go new file mode 100644 index 0000000..d165d6f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_linux.go @@ -0,0 +1,42 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Functions to access/create device major and minor numbers matching the +// encoding used by the Linux kernel and glibc. +// +// The information below is extracted and adapted from bits/sysmacros.h in the +// glibc sources: +// +// dev_t in glibc is 64-bit, with 32-bit major and minor numbers. glibc's +// default encoding is MMMM Mmmm mmmM MMmm, where M is a hex digit of the major +// number and m is a hex digit of the minor number. This is backward compatible +// with legacy systems where dev_t is 16 bits wide, encoded as MMmm. It is also +// backward compatible with the Linux kernel, which for some architectures uses +// 32-bit dev_t, encoded as mmmM MMmm. + +package unix + +// Major returns the major component of a Linux device number. +func Major(dev uint64) uint32 { + major := uint32((dev & 0x00000000000fff00) >> 8) + major |= uint32((dev & 0xfffff00000000000) >> 32) + return major +} + +// Minor returns the minor component of a Linux device number. +func Minor(dev uint64) uint32 { + minor := uint32((dev & 0x00000000000000ff) >> 0) + minor |= uint32((dev & 0x00000ffffff00000) >> 12) + return minor +} + +// Mkdev returns a Linux device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + dev := (uint64(major) & 0x00000fff) << 8 + dev |= (uint64(major) & 0xfffff000) << 32 + dev |= (uint64(minor) & 0x000000ff) << 0 + dev |= (uint64(minor) & 0xffffff00) << 12 + return dev +} diff --git a/vendor/golang.org/x/sys/unix/dev_netbsd.go b/vendor/golang.org/x/sys/unix/dev_netbsd.go new file mode 100644 index 0000000..b4a203d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_netbsd.go @@ -0,0 +1,29 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Functions to access/create device major and minor numbers matching the +// encoding used in NetBSD's sys/types.h header. + +package unix + +// Major returns the major component of a NetBSD device number. +func Major(dev uint64) uint32 { + return uint32((dev & 0x000fff00) >> 8) +} + +// Minor returns the minor component of a NetBSD device number. +func Minor(dev uint64) uint32 { + minor := uint32((dev & 0x000000ff) >> 0) + minor |= uint32((dev & 0xfff00000) >> 12) + return minor +} + +// Mkdev returns a NetBSD device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + dev := (uint64(major) << 8) & 0x000fff00 + dev |= (uint64(minor) << 12) & 0xfff00000 + dev |= (uint64(minor) << 0) & 0x000000ff + return dev +} diff --git a/vendor/golang.org/x/sys/unix/dev_openbsd.go b/vendor/golang.org/x/sys/unix/dev_openbsd.go new file mode 100644 index 0000000..f3430c4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_openbsd.go @@ -0,0 +1,29 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Functions to access/create device major and minor numbers matching the +// encoding used in OpenBSD's sys/types.h header. + +package unix + +// Major returns the major component of an OpenBSD device number. +func Major(dev uint64) uint32 { + return uint32((dev & 0x0000ff00) >> 8) +} + +// Minor returns the minor component of an OpenBSD device number. +func Minor(dev uint64) uint32 { + minor := uint32((dev & 0x000000ff) >> 0) + minor |= uint32((dev & 0xffff0000) >> 8) + return minor +} + +// Mkdev returns an OpenBSD device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + dev := (uint64(major) << 8) & 0x0000ff00 + dev |= (uint64(minor) << 8) & 0xffff0000 + dev |= (uint64(minor) << 0) & 0x000000ff + return dev +} diff --git a/vendor/golang.org/x/sys/unix/dev_zos.go b/vendor/golang.org/x/sys/unix/dev_zos.go new file mode 100644 index 0000000..a388e59 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dev_zos.go @@ -0,0 +1,29 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +// Functions to access/create device major and minor numbers matching the +// encoding used by z/OS. +// +// The information below is extracted and adapted from macros. + +package unix + +// Major returns the major component of a z/OS device number. +func Major(dev uint64) uint32 { + return uint32((dev >> 16) & 0x0000FFFF) +} + +// Minor returns the minor component of a z/OS device number. +func Minor(dev uint64) uint32 { + return uint32(dev & 0x0000FFFF) +} + +// Mkdev returns a z/OS device number generated from the given major and minor +// components. +func Mkdev(major, minor uint32) uint64 { + return (uint64(major) << 16) | uint64(minor) +} diff --git a/vendor/golang.org/x/sys/unix/dirent.go b/vendor/golang.org/x/sys/unix/dirent.go new file mode 100644 index 0000000..2499f97 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/dirent.go @@ -0,0 +1,103 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +package unix + +import "unsafe" + +// readInt returns the size-bytes unsigned integer in native byte order at offset off. +func readInt(b []byte, off, size uintptr) (u uint64, ok bool) { + if len(b) < int(off+size) { + return 0, false + } + if isBigEndian { + return readIntBE(b[off:], size), true + } + return readIntLE(b[off:], size), true +} + +func readIntBE(b []byte, size uintptr) uint64 { + switch size { + case 1: + return uint64(b[0]) + case 2: + _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[1]) | uint64(b[0])<<8 + case 4: + _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24 + case 8: + _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 | + uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56 + default: + panic("syscall: readInt with unsupported size") + } +} + +func readIntLE(b []byte, size uintptr) uint64 { + switch size { + case 1: + return uint64(b[0]) + case 2: + _ = b[1] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[0]) | uint64(b[1])<<8 + case 4: + _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 + case 8: + _ = b[7] // bounds check hint to compiler; see golang.org/issue/14808 + return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | + uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + default: + panic("syscall: readInt with unsupported size") + } +} + +// ParseDirent parses up to max directory entries in buf, +// appending the names to names. It returns the number of +// bytes consumed from buf, the number of entries added +// to names, and the new names slice. +func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { + origlen := len(buf) + count = 0 + for max != 0 && len(buf) > 0 { + reclen, ok := direntReclen(buf) + if !ok || reclen > uint64(len(buf)) { + return origlen, count, names + } + rec := buf[:reclen] + buf = buf[reclen:] + ino, ok := direntIno(rec) + if !ok { + break + } + if ino == 0 { // File absent in directory. + continue + } + const namoff = uint64(unsafe.Offsetof(Dirent{}.Name)) + namlen, ok := direntNamlen(rec) + if !ok || namoff+namlen > uint64(len(rec)) { + break + } + name := rec[namoff : namoff+namlen] + for i, c := range name { + if c == 0 { + name = name[:i] + break + } + } + // Check for useless names before allocating a string. + if string(name) == "." || string(name) == ".." { + continue + } + max-- + count++ + names = append(names, string(name)) + } + return origlen - len(buf), count, names +} diff --git a/vendor/golang.org/x/sys/unix/endian_big.go b/vendor/golang.org/x/sys/unix/endian_big.go new file mode 100644 index 0000000..a520265 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/endian_big.go @@ -0,0 +1,10 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. +// +//go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 +// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 + +package unix + +const isBigEndian = true diff --git a/vendor/golang.org/x/sys/unix/endian_little.go b/vendor/golang.org/x/sys/unix/endian_little.go new file mode 100644 index 0000000..b0f2bc4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/endian_little.go @@ -0,0 +1,10 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. +// +//go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh +// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh + +package unix + +const isBigEndian = false diff --git a/vendor/golang.org/x/sys/unix/env_unix.go b/vendor/golang.org/x/sys/unix/env_unix.go new file mode 100644 index 0000000..29ccc4d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/env_unix.go @@ -0,0 +1,32 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +// Unix environment variables. + +package unix + +import "syscall" + +func Getenv(key string) (value string, found bool) { + return syscall.Getenv(key) +} + +func Setenv(key, value string) error { + return syscall.Setenv(key, value) +} + +func Clearenv() { + syscall.Clearenv() +} + +func Environ() []string { + return syscall.Environ() +} + +func Unsetenv(key string) error { + return syscall.Unsetenv(key) +} diff --git a/vendor/golang.org/x/sys/unix/epoll_zos.go b/vendor/golang.org/x/sys/unix/epoll_zos.go new file mode 100644 index 0000000..cedaf7e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/epoll_zos.go @@ -0,0 +1,221 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +package unix + +import ( + "sync" +) + +// This file simulates epoll on z/OS using poll. + +// Analogous to epoll_event on Linux. +// TODO(neeilan): Pad is because the Linux kernel expects a 96-bit struct. We never pass this to the kernel; remove? +type EpollEvent struct { + Events uint32 + Fd int32 + Pad int32 +} + +const ( + EPOLLERR = 0x8 + EPOLLHUP = 0x10 + EPOLLIN = 0x1 + EPOLLMSG = 0x400 + EPOLLOUT = 0x4 + EPOLLPRI = 0x2 + EPOLLRDBAND = 0x80 + EPOLLRDNORM = 0x40 + EPOLLWRBAND = 0x200 + EPOLLWRNORM = 0x100 + EPOLL_CTL_ADD = 0x1 + EPOLL_CTL_DEL = 0x2 + EPOLL_CTL_MOD = 0x3 + // The following constants are part of the epoll API, but represent + // currently unsupported functionality on z/OS. + // EPOLL_CLOEXEC = 0x80000 + // EPOLLET = 0x80000000 + // EPOLLONESHOT = 0x40000000 + // EPOLLRDHUP = 0x2000 // Typically used with edge-triggered notis + // EPOLLEXCLUSIVE = 0x10000000 // Exclusive wake-up mode + // EPOLLWAKEUP = 0x20000000 // Relies on Linux's BLOCK_SUSPEND capability +) + +// TODO(neeilan): We can eliminate these epToPoll / pToEpoll calls by using identical mask values for POLL/EPOLL +// constants where possible The lower 16 bits of epoll events (uint32) can fit any system poll event (int16). + +// epToPollEvt converts epoll event field to poll equivalent. +// In epoll, Events is a 32-bit field, while poll uses 16 bits. +func epToPollEvt(events uint32) int16 { + var ep2p = map[uint32]int16{ + EPOLLIN: POLLIN, + EPOLLOUT: POLLOUT, + EPOLLHUP: POLLHUP, + EPOLLPRI: POLLPRI, + EPOLLERR: POLLERR, + } + + var pollEvts int16 = 0 + for epEvt, pEvt := range ep2p { + if (events & epEvt) != 0 { + pollEvts |= pEvt + } + } + + return pollEvts +} + +// pToEpollEvt converts 16 bit poll event bitfields to 32-bit epoll event fields. +func pToEpollEvt(revents int16) uint32 { + var p2ep = map[int16]uint32{ + POLLIN: EPOLLIN, + POLLOUT: EPOLLOUT, + POLLHUP: EPOLLHUP, + POLLPRI: EPOLLPRI, + POLLERR: EPOLLERR, + } + + var epollEvts uint32 = 0 + for pEvt, epEvt := range p2ep { + if (revents & pEvt) != 0 { + epollEvts |= epEvt + } + } + + return epollEvts +} + +// Per-process epoll implementation. +type epollImpl struct { + mu sync.Mutex + epfd2ep map[int]*eventPoll + nextEpfd int +} + +// eventPoll holds a set of file descriptors being watched by the process. A process can have multiple epoll instances. +// On Linux, this is an in-kernel data structure accessed through a fd. +type eventPoll struct { + mu sync.Mutex + fds map[int]*EpollEvent +} + +// epoll impl for this process. +var impl epollImpl = epollImpl{ + epfd2ep: make(map[int]*eventPoll), + nextEpfd: 0, +} + +func (e *epollImpl) epollcreate(size int) (epfd int, err error) { + e.mu.Lock() + defer e.mu.Unlock() + epfd = e.nextEpfd + e.nextEpfd++ + + e.epfd2ep[epfd] = &eventPoll{ + fds: make(map[int]*EpollEvent), + } + return epfd, nil +} + +func (e *epollImpl) epollcreate1(flag int) (fd int, err error) { + return e.epollcreate(4) +} + +func (e *epollImpl) epollctl(epfd int, op int, fd int, event *EpollEvent) (err error) { + e.mu.Lock() + defer e.mu.Unlock() + + ep, ok := e.epfd2ep[epfd] + if !ok { + + return EBADF + } + + switch op { + case EPOLL_CTL_ADD: + // TODO(neeilan): When we make epfds and fds disjoint, detect epoll + // loops here (instances watching each other) and return ELOOP. + if _, ok := ep.fds[fd]; ok { + return EEXIST + } + ep.fds[fd] = event + case EPOLL_CTL_MOD: + if _, ok := ep.fds[fd]; !ok { + return ENOENT + } + ep.fds[fd] = event + case EPOLL_CTL_DEL: + if _, ok := ep.fds[fd]; !ok { + return ENOENT + } + delete(ep.fds, fd) + + } + return nil +} + +// Must be called while holding ep.mu +func (ep *eventPoll) getFds() []int { + fds := make([]int, len(ep.fds)) + for fd := range ep.fds { + fds = append(fds, fd) + } + return fds +} + +func (e *epollImpl) epollwait(epfd int, events []EpollEvent, msec int) (n int, err error) { + e.mu.Lock() // in [rare] case of concurrent epollcreate + epollwait + ep, ok := e.epfd2ep[epfd] + + if !ok { + e.mu.Unlock() + return 0, EBADF + } + + pollfds := make([]PollFd, 4) + for fd, epollevt := range ep.fds { + pollfds = append(pollfds, PollFd{Fd: int32(fd), Events: epToPollEvt(epollevt.Events)}) + } + e.mu.Unlock() + + n, err = Poll(pollfds, msec) + if err != nil { + return n, err + } + + i := 0 + for _, pFd := range pollfds { + if pFd.Revents != 0 { + events[i] = EpollEvent{Fd: pFd.Fd, Events: pToEpollEvt(pFd.Revents)} + i++ + } + + if i == n { + break + } + } + + return n, nil +} + +func EpollCreate(size int) (fd int, err error) { + return impl.epollcreate(size) +} + +func EpollCreate1(flag int) (fd int, err error) { + return impl.epollcreate1(flag) +} + +func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { + return impl.epollctl(epfd, op, fd, event) +} + +// Because EpollWait mutates events, the caller is expected to coordinate +// concurrent access if calling with the same epfd from multiple goroutines. +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + return impl.epollwait(epfd, events, msec) +} diff --git a/vendor/golang.org/x/sys/unix/fcntl.go b/vendor/golang.org/x/sys/unix/fcntl.go new file mode 100644 index 0000000..e9b9912 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/fcntl.go @@ -0,0 +1,37 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build dragonfly || freebsd || linux || netbsd || openbsd +// +build dragonfly freebsd linux netbsd openbsd + +package unix + +import "unsafe" + +// fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux +// systems by fcntl_linux_32bit.go to be SYS_FCNTL64. +var fcntl64Syscall uintptr = SYS_FCNTL + +func fcntl(fd int, cmd, arg int) (int, error) { + valptr, _, errno := Syscall(fcntl64Syscall, uintptr(fd), uintptr(cmd), uintptr(arg)) + var err error + if errno != 0 { + err = errno + } + return int(valptr), err +} + +// FcntlInt performs a fcntl syscall on fd with the provided command and argument. +func FcntlInt(fd uintptr, cmd, arg int) (int, error) { + return fcntl(int(fd), cmd, arg) +} + +// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { + _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) + if errno == 0 { + return nil + } + return errno +} diff --git a/vendor/golang.org/x/sys/unix/fcntl_darwin.go b/vendor/golang.org/x/sys/unix/fcntl_darwin.go new file mode 100644 index 0000000..a9911c7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/fcntl_darwin.go @@ -0,0 +1,24 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +import "unsafe" + +// FcntlInt performs a fcntl syscall on fd with the provided command and argument. +func FcntlInt(fd uintptr, cmd, arg int) (int, error) { + return fcntl(int(fd), cmd, arg) +} + +// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { + _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) + return err +} + +// FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. +func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { + _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) + return err +} diff --git a/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go b/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go new file mode 100644 index 0000000..29d4480 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go @@ -0,0 +1,14 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) +// +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc + +package unix + +func init() { + // On 32-bit Linux systems, the fcntl syscall that matches Go's + // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. + fcntl64Syscall = SYS_FCNTL64 +} diff --git a/vendor/golang.org/x/sys/unix/fdset.go b/vendor/golang.org/x/sys/unix/fdset.go new file mode 100644 index 0000000..a8068f9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/fdset.go @@ -0,0 +1,30 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +package unix + +// Set adds fd to the set fds. +func (fds *FdSet) Set(fd int) { + fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) +} + +// Clear removes fd from the set fds. +func (fds *FdSet) Clear(fd int) { + fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) +} + +// IsSet returns whether fd is in the set fds. +func (fds *FdSet) IsSet(fd int) bool { + return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 +} + +// Zero clears the set fds. +func (fds *FdSet) Zero() { + for i := range fds.Bits { + fds.Bits[i] = 0 + } +} diff --git a/vendor/golang.org/x/sys/unix/fstatfs_zos.go b/vendor/golang.org/x/sys/unix/fstatfs_zos.go new file mode 100644 index 0000000..e377cc9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/fstatfs_zos.go @@ -0,0 +1,164 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +package unix + +import ( + "unsafe" +) + +// This file simulates fstatfs on z/OS using fstatvfs and w_getmntent. + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + var stat_v Statvfs_t + err = Fstatvfs(fd, &stat_v) + if err == nil { + // populate stat + stat.Type = 0 + stat.Bsize = stat_v.Bsize + stat.Blocks = stat_v.Blocks + stat.Bfree = stat_v.Bfree + stat.Bavail = stat_v.Bavail + stat.Files = stat_v.Files + stat.Ffree = stat_v.Ffree + stat.Fsid = stat_v.Fsid + stat.Namelen = stat_v.Namemax + stat.Frsize = stat_v.Frsize + stat.Flags = stat_v.Flag + for passn := 0; passn < 5; passn++ { + switch passn { + case 0: + err = tryGetmntent64(stat) + break + case 1: + err = tryGetmntent128(stat) + break + case 2: + err = tryGetmntent256(stat) + break + case 3: + err = tryGetmntent512(stat) + break + case 4: + err = tryGetmntent1024(stat) + break + default: + break + } + //proceed to return if: err is nil (found), err is nonnil but not ERANGE (another error occurred) + if err == nil || err != nil && err != ERANGE { + break + } + } + } + return err +} + +func tryGetmntent64(stat *Statfs_t) (err error) { + var mnt_ent_buffer struct { + header W_Mnth + filesys_info [64]W_Mntent + } + var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer)) + fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size) + if err != nil { + return err + } + err = ERANGE //return ERANGE if no match is found in this batch + for i := 0; i < fs_count; i++ { + if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) { + stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0]) + err = nil + break + } + } + return err +} + +func tryGetmntent128(stat *Statfs_t) (err error) { + var mnt_ent_buffer struct { + header W_Mnth + filesys_info [128]W_Mntent + } + var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer)) + fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size) + if err != nil { + return err + } + err = ERANGE //return ERANGE if no match is found in this batch + for i := 0; i < fs_count; i++ { + if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) { + stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0]) + err = nil + break + } + } + return err +} + +func tryGetmntent256(stat *Statfs_t) (err error) { + var mnt_ent_buffer struct { + header W_Mnth + filesys_info [256]W_Mntent + } + var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer)) + fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size) + if err != nil { + return err + } + err = ERANGE //return ERANGE if no match is found in this batch + for i := 0; i < fs_count; i++ { + if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) { + stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0]) + err = nil + break + } + } + return err +} + +func tryGetmntent512(stat *Statfs_t) (err error) { + var mnt_ent_buffer struct { + header W_Mnth + filesys_info [512]W_Mntent + } + var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer)) + fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size) + if err != nil { + return err + } + err = ERANGE //return ERANGE if no match is found in this batch + for i := 0; i < fs_count; i++ { + if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) { + stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0]) + err = nil + break + } + } + return err +} + +func tryGetmntent1024(stat *Statfs_t) (err error) { + var mnt_ent_buffer struct { + header W_Mnth + filesys_info [1024]W_Mntent + } + var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer)) + fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size) + if err != nil { + return err + } + err = ERANGE //return ERANGE if no match is found in this batch + for i := 0; i < fs_count; i++ { + if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) { + stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0]) + err = nil + break + } + } + return err +} diff --git a/vendor/golang.org/x/sys/unix/gccgo.go b/vendor/golang.org/x/sys/unix/gccgo.go new file mode 100644 index 0000000..b06f52d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/gccgo.go @@ -0,0 +1,60 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gccgo && !aix && !hurd +// +build gccgo,!aix,!hurd + +package unix + +import "syscall" + +// We can't use the gc-syntax .s files for gccgo. On the plus side +// much of the functionality can be written directly in Go. + +func realSyscallNoError(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r uintptr) + +func realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r, errno uintptr) + +func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) { + syscall.Entersyscall() + r := realSyscallNoError(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) + syscall.Exitsyscall() + return r, 0 +} + +func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { + syscall.Entersyscall() + r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) + syscall.Exitsyscall() + return r, 0, syscall.Errno(errno) +} + +func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { + syscall.Entersyscall() + r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, 0, 0, 0) + syscall.Exitsyscall() + return r, 0, syscall.Errno(errno) +} + +func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) { + syscall.Entersyscall() + r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9) + syscall.Exitsyscall() + return r, 0, syscall.Errno(errno) +} + +func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) { + r := realSyscallNoError(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) + return r, 0 +} + +func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { + r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) + return r, 0, syscall.Errno(errno) +} + +func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { + r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, 0, 0, 0) + return r, 0, syscall.Errno(errno) +} diff --git a/vendor/golang.org/x/sys/unix/gccgo_c.c b/vendor/golang.org/x/sys/unix/gccgo_c.c new file mode 100644 index 0000000..f98a1c5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/gccgo_c.c @@ -0,0 +1,45 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gccgo && !aix && !hurd +// +build gccgo,!aix,!hurd + +#include +#include +#include + +#define _STRINGIFY2_(x) #x +#define _STRINGIFY_(x) _STRINGIFY2_(x) +#define GOSYM_PREFIX _STRINGIFY_(__USER_LABEL_PREFIX__) + +// Call syscall from C code because the gccgo support for calling from +// Go to C does not support varargs functions. + +struct ret { + uintptr_t r; + uintptr_t err; +}; + +struct ret gccgoRealSyscall(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9) + __asm__(GOSYM_PREFIX GOPKGPATH ".realSyscall"); + +struct ret +gccgoRealSyscall(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9) +{ + struct ret r; + + errno = 0; + r.r = syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9); + r.err = errno; + return r; +} + +uintptr_t gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9) + __asm__(GOSYM_PREFIX GOPKGPATH ".realSyscallNoError"); + +uintptr_t +gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9) +{ + return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9); +} diff --git a/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go b/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go new file mode 100644 index 0000000..e60e49a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go @@ -0,0 +1,21 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gccgo && linux && amd64 +// +build gccgo,linux,amd64 + +package unix + +import "syscall" + +//extern gettimeofday +func realGettimeofday(*Timeval, *byte) int32 + +func gettimeofday(tv *Timeval) (err syscall.Errno) { + r := realGettimeofday(tv, nil) + if r < 0 { + return syscall.GetErrno() + } + return 0 +} diff --git a/vendor/golang.org/x/sys/unix/ifreq_linux.go b/vendor/golang.org/x/sys/unix/ifreq_linux.go new file mode 100644 index 0000000..15721a5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ifreq_linux.go @@ -0,0 +1,142 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux +// +build linux + +package unix + +import ( + "unsafe" +) + +// Helpers for dealing with ifreq since it contains a union and thus requires a +// lot of unsafe.Pointer casts to use properly. + +// An Ifreq is a type-safe wrapper around the raw ifreq struct. An Ifreq +// contains an interface name and a union of arbitrary data which can be +// accessed using the Ifreq's methods. To create an Ifreq, use the NewIfreq +// function. +// +// Use the Name method to access the stored interface name. The union data +// fields can be get and set using the following methods: +// - Uint16/SetUint16: flags +// - Uint32/SetUint32: ifindex, metric, mtu +type Ifreq struct{ raw ifreq } + +// NewIfreq creates an Ifreq with the input network interface name after +// validating the name does not exceed IFNAMSIZ-1 (trailing NULL required) +// bytes. +func NewIfreq(name string) (*Ifreq, error) { + // Leave room for terminating NULL byte. + if len(name) >= IFNAMSIZ { + return nil, EINVAL + } + + var ifr ifreq + copy(ifr.Ifrn[:], name) + + return &Ifreq{raw: ifr}, nil +} + +// TODO(mdlayher): get/set methods for hardware address sockaddr, char array, etc. + +// Name returns the interface name associated with the Ifreq. +func (ifr *Ifreq) Name() string { + return ByteSliceToString(ifr.raw.Ifrn[:]) +} + +// According to netdevice(7), only AF_INET addresses are returned for numerous +// sockaddr ioctls. For convenience, we expose these as Inet4Addr since the Port +// field and other data is always empty. + +// Inet4Addr returns the Ifreq union data from an embedded sockaddr as a C +// in_addr/Go []byte (4-byte IPv4 address) value. If the sockaddr family is not +// AF_INET, an error is returned. +func (ifr *Ifreq) Inet4Addr() ([]byte, error) { + raw := *(*RawSockaddrInet4)(unsafe.Pointer(&ifr.raw.Ifru[:SizeofSockaddrInet4][0])) + if raw.Family != AF_INET { + // Cannot safely interpret raw.Addr bytes as an IPv4 address. + return nil, EINVAL + } + + return raw.Addr[:], nil +} + +// SetInet4Addr sets a C in_addr/Go []byte (4-byte IPv4 address) value in an +// embedded sockaddr within the Ifreq's union data. v must be 4 bytes in length +// or an error will be returned. +func (ifr *Ifreq) SetInet4Addr(v []byte) error { + if len(v) != 4 { + return EINVAL + } + + var addr [4]byte + copy(addr[:], v) + + ifr.clear() + *(*RawSockaddrInet4)( + unsafe.Pointer(&ifr.raw.Ifru[:SizeofSockaddrInet4][0]), + ) = RawSockaddrInet4{ + // Always set IP family as ioctls would require it anyway. + Family: AF_INET, + Addr: addr, + } + + return nil +} + +// Uint16 returns the Ifreq union data as a C short/Go uint16 value. +func (ifr *Ifreq) Uint16() uint16 { + return *(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) +} + +// SetUint16 sets a C short/Go uint16 value as the Ifreq's union data. +func (ifr *Ifreq) SetUint16(v uint16) { + ifr.clear() + *(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) = v +} + +// Uint32 returns the Ifreq union data as a C int/Go uint32 value. +func (ifr *Ifreq) Uint32() uint32 { + return *(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0])) +} + +// SetUint32 sets a C int/Go uint32 value as the Ifreq's union data. +func (ifr *Ifreq) SetUint32(v uint32) { + ifr.clear() + *(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0])) = v +} + +// clear zeroes the ifreq's union field to prevent trailing garbage data from +// being sent to the kernel if an ifreq is reused. +func (ifr *Ifreq) clear() { + for i := range ifr.raw.Ifru { + ifr.raw.Ifru[i] = 0 + } +} + +// TODO(mdlayher): export as IfreqData? For now we can provide helpers such as +// IoctlGetEthtoolDrvinfo which use these APIs under the hood. + +// An ifreqData is an Ifreq which carries pointer data. To produce an ifreqData, +// use the Ifreq.withData method. +type ifreqData struct { + name [IFNAMSIZ]byte + // A type separate from ifreq is required in order to comply with the + // unsafe.Pointer rules since the "pointer-ness" of data would not be + // preserved if it were cast into the byte array of a raw ifreq. + data unsafe.Pointer + // Pad to the same size as ifreq. + _ [len(ifreq{}.Ifru) - SizeofPtr]byte +} + +// withData produces an ifreqData with the pointer p set for ioctls which require +// arbitrary pointer data. +func (ifr Ifreq) withData(p unsafe.Pointer) ifreqData { + return ifreqData{ + name: ifr.raw.Ifrn, + data: p, + } +} diff --git a/vendor/golang.org/x/sys/unix/ioctl.go b/vendor/golang.org/x/sys/unix/ioctl.go new file mode 100644 index 0000000..1c51b0e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ioctl.go @@ -0,0 +1,75 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris + +package unix + +import ( + "runtime" + "unsafe" +) + +// ioctl itself should not be exposed directly, but additional get/set +// functions for specific types are permissible. + +// IoctlSetInt performs an ioctl operation which sets an integer value +// on fd, using the specified request number. +func IoctlSetInt(fd int, req uint, value int) error { + return ioctl(fd, req, uintptr(value)) +} + +// IoctlSetPointerInt performs an ioctl operation which sets an +// integer value on fd, using the specified request number. The ioctl +// argument is called with a pointer to the integer value, rather than +// passing the integer value directly. +func IoctlSetPointerInt(fd int, req uint, value int) error { + v := int32(value) + return ioctl(fd, req, uintptr(unsafe.Pointer(&v))) +} + +// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument. +// +// To change fd's window size, the req argument should be TIOCSWINSZ. +func IoctlSetWinsize(fd int, req uint, value *Winsize) error { + // TODO: if we get the chance, remove the req parameter and + // hardcode TIOCSWINSZ. + err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) + runtime.KeepAlive(value) + return err +} + +// IoctlSetTermios performs an ioctl on fd with a *Termios. +// +// The req value will usually be TCSETA or TIOCSETA. +func IoctlSetTermios(fd int, req uint, value *Termios) error { + // TODO: if we get the chance, remove the req parameter. + err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) + runtime.KeepAlive(value) + return err +} + +// IoctlGetInt performs an ioctl operation which gets an integer value +// from fd, using the specified request number. +// +// A few ioctl requests use the return value as an output parameter; +// for those, IoctlRetInt should be used instead of this function. +func IoctlGetInt(fd int, req uint) (int, error) { + var value int + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return value, err +} + +func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { + var value Winsize + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return &value, err +} + +func IoctlGetTermios(fd int, req uint) (*Termios, error) { + var value Termios + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return &value, err +} diff --git a/vendor/golang.org/x/sys/unix/ioctl_linux.go b/vendor/golang.org/x/sys/unix/ioctl_linux.go new file mode 100644 index 0000000..0d12c08 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ioctl_linux.go @@ -0,0 +1,233 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +import "unsafe" + +// IoctlRetInt performs an ioctl operation specified by req on a device +// associated with opened file descriptor fd, and returns a non-negative +// integer that is returned by the ioctl syscall. +func IoctlRetInt(fd int, req uint) (int, error) { + ret, _, err := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), 0) + if err != 0 { + return 0, err + } + return int(ret), nil +} + +func IoctlGetUint32(fd int, req uint) (uint32, error) { + var value uint32 + err := ioctlPtr(fd, req, unsafe.Pointer(&value)) + return value, err +} + +func IoctlGetRTCTime(fd int) (*RTCTime, error) { + var value RTCTime + err := ioctlPtr(fd, RTC_RD_TIME, unsafe.Pointer(&value)) + return &value, err +} + +func IoctlSetRTCTime(fd int, value *RTCTime) error { + return ioctlPtr(fd, RTC_SET_TIME, unsafe.Pointer(value)) +} + +func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) { + var value RTCWkAlrm + err := ioctlPtr(fd, RTC_WKALM_RD, unsafe.Pointer(&value)) + return &value, err +} + +func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error { + return ioctlPtr(fd, RTC_WKALM_SET, unsafe.Pointer(value)) +} + +// IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network +// device specified by ifname. +func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) { + ifr, err := NewIfreq(ifname) + if err != nil { + return nil, err + } + + value := EthtoolDrvinfo{Cmd: ETHTOOL_GDRVINFO} + ifrd := ifr.withData(unsafe.Pointer(&value)) + + err = ioctlIfreqData(fd, SIOCETHTOOL, &ifrd) + return &value, err +} + +// IoctlGetWatchdogInfo fetches information about a watchdog device from the +// Linux watchdog API. For more information, see: +// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. +func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) { + var value WatchdogInfo + err := ioctlPtr(fd, WDIOC_GETSUPPORT, unsafe.Pointer(&value)) + return &value, err +} + +// IoctlWatchdogKeepalive issues a keepalive ioctl to a watchdog device. For +// more information, see: +// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. +func IoctlWatchdogKeepalive(fd int) error { + // arg is ignored and not a pointer, so ioctl is fine instead of ioctlPtr. + return ioctl(fd, WDIOC_KEEPALIVE, 0) +} + +// IoctlFileCloneRange performs an FICLONERANGE ioctl operation to clone the +// range of data conveyed in value to the file associated with the file +// descriptor destFd. See the ioctl_ficlonerange(2) man page for details. +func IoctlFileCloneRange(destFd int, value *FileCloneRange) error { + return ioctlPtr(destFd, FICLONERANGE, unsafe.Pointer(value)) +} + +// IoctlFileClone performs an FICLONE ioctl operation to clone the entire file +// associated with the file description srcFd to the file associated with the +// file descriptor destFd. See the ioctl_ficlone(2) man page for details. +func IoctlFileClone(destFd, srcFd int) error { + return ioctl(destFd, FICLONE, uintptr(srcFd)) +} + +type FileDedupeRange struct { + Src_offset uint64 + Src_length uint64 + Reserved1 uint16 + Reserved2 uint32 + Info []FileDedupeRangeInfo +} + +type FileDedupeRangeInfo struct { + Dest_fd int64 + Dest_offset uint64 + Bytes_deduped uint64 + Status int32 + Reserved uint32 +} + +// IoctlFileDedupeRange performs an FIDEDUPERANGE ioctl operation to share the +// range of data conveyed in value from the file associated with the file +// descriptor srcFd to the value.Info destinations. See the +// ioctl_fideduperange(2) man page for details. +func IoctlFileDedupeRange(srcFd int, value *FileDedupeRange) error { + buf := make([]byte, SizeofRawFileDedupeRange+ + len(value.Info)*SizeofRawFileDedupeRangeInfo) + rawrange := (*RawFileDedupeRange)(unsafe.Pointer(&buf[0])) + rawrange.Src_offset = value.Src_offset + rawrange.Src_length = value.Src_length + rawrange.Dest_count = uint16(len(value.Info)) + rawrange.Reserved1 = value.Reserved1 + rawrange.Reserved2 = value.Reserved2 + + for i := range value.Info { + rawinfo := (*RawFileDedupeRangeInfo)(unsafe.Pointer( + uintptr(unsafe.Pointer(&buf[0])) + uintptr(SizeofRawFileDedupeRange) + + uintptr(i*SizeofRawFileDedupeRangeInfo))) + rawinfo.Dest_fd = value.Info[i].Dest_fd + rawinfo.Dest_offset = value.Info[i].Dest_offset + rawinfo.Bytes_deduped = value.Info[i].Bytes_deduped + rawinfo.Status = value.Info[i].Status + rawinfo.Reserved = value.Info[i].Reserved + } + + err := ioctlPtr(srcFd, FIDEDUPERANGE, unsafe.Pointer(&buf[0])) + + // Output + for i := range value.Info { + rawinfo := (*RawFileDedupeRangeInfo)(unsafe.Pointer( + uintptr(unsafe.Pointer(&buf[0])) + uintptr(SizeofRawFileDedupeRange) + + uintptr(i*SizeofRawFileDedupeRangeInfo))) + value.Info[i].Dest_fd = rawinfo.Dest_fd + value.Info[i].Dest_offset = rawinfo.Dest_offset + value.Info[i].Bytes_deduped = rawinfo.Bytes_deduped + value.Info[i].Status = rawinfo.Status + value.Info[i].Reserved = rawinfo.Reserved + } + + return err +} + +func IoctlHIDGetDesc(fd int, value *HIDRawReportDescriptor) error { + return ioctlPtr(fd, HIDIOCGRDESC, unsafe.Pointer(value)) +} + +func IoctlHIDGetRawInfo(fd int) (*HIDRawDevInfo, error) { + var value HIDRawDevInfo + err := ioctlPtr(fd, HIDIOCGRAWINFO, unsafe.Pointer(&value)) + return &value, err +} + +func IoctlHIDGetRawName(fd int) (string, error) { + var value [_HIDIOCGRAWNAME_LEN]byte + err := ioctlPtr(fd, _HIDIOCGRAWNAME, unsafe.Pointer(&value[0])) + return ByteSliceToString(value[:]), err +} + +func IoctlHIDGetRawPhys(fd int) (string, error) { + var value [_HIDIOCGRAWPHYS_LEN]byte + err := ioctlPtr(fd, _HIDIOCGRAWPHYS, unsafe.Pointer(&value[0])) + return ByteSliceToString(value[:]), err +} + +func IoctlHIDGetRawUniq(fd int) (string, error) { + var value [_HIDIOCGRAWUNIQ_LEN]byte + err := ioctlPtr(fd, _HIDIOCGRAWUNIQ, unsafe.Pointer(&value[0])) + return ByteSliceToString(value[:]), err +} + +// IoctlIfreq performs an ioctl using an Ifreq structure for input and/or +// output. See the netdevice(7) man page for details. +func IoctlIfreq(fd int, req uint, value *Ifreq) error { + // It is possible we will add more fields to *Ifreq itself later to prevent + // misuse, so pass the raw *ifreq directly. + return ioctlPtr(fd, req, unsafe.Pointer(&value.raw)) +} + +// TODO(mdlayher): export if and when IfreqData is exported. + +// ioctlIfreqData performs an ioctl using an ifreqData structure for input +// and/or output. See the netdevice(7) man page for details. +func ioctlIfreqData(fd int, req uint, value *ifreqData) error { + // The memory layout of IfreqData (type-safe) and ifreq (not type-safe) are + // identical so pass *IfreqData directly. + return ioctlPtr(fd, req, unsafe.Pointer(value)) +} + +// IoctlKCMClone attaches a new file descriptor to a multiplexor by cloning an +// existing KCM socket, returning a structure containing the file descriptor of +// the new socket. +func IoctlKCMClone(fd int) (*KCMClone, error) { + var info KCMClone + if err := ioctlPtr(fd, SIOCKCMCLONE, unsafe.Pointer(&info)); err != nil { + return nil, err + } + + return &info, nil +} + +// IoctlKCMAttach attaches a TCP socket and associated BPF program file +// descriptor to a multiplexor. +func IoctlKCMAttach(fd int, info KCMAttach) error { + return ioctlPtr(fd, SIOCKCMATTACH, unsafe.Pointer(&info)) +} + +// IoctlKCMUnattach unattaches a TCP socket file descriptor from a multiplexor. +func IoctlKCMUnattach(fd int, info KCMUnattach) error { + return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info)) +} + +// IoctlLoopGetStatus64 gets the status of the loop device associated with the +// file descriptor fd using the LOOP_GET_STATUS64 operation. +func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) { + var value LoopInfo64 + if err := ioctlPtr(fd, LOOP_GET_STATUS64, unsafe.Pointer(&value)); err != nil { + return nil, err + } + return &value, nil +} + +// IoctlLoopSetStatus64 sets the status of the loop device associated with the +// file descriptor fd using the LOOP_SET_STATUS64 operation. +func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error { + return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value)) +} diff --git a/vendor/golang.org/x/sys/unix/ioctl_zos.go b/vendor/golang.org/x/sys/unix/ioctl_zos.go new file mode 100644 index 0000000..5384e7d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ioctl_zos.go @@ -0,0 +1,74 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +package unix + +import ( + "runtime" + "unsafe" +) + +// ioctl itself should not be exposed directly, but additional get/set +// functions for specific types are permissible. + +// IoctlSetInt performs an ioctl operation which sets an integer value +// on fd, using the specified request number. +func IoctlSetInt(fd int, req uint, value int) error { + return ioctl(fd, req, uintptr(value)) +} + +// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument. +// +// To change fd's window size, the req argument should be TIOCSWINSZ. +func IoctlSetWinsize(fd int, req uint, value *Winsize) error { + // TODO: if we get the chance, remove the req parameter and + // hardcode TIOCSWINSZ. + err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) + runtime.KeepAlive(value) + return err +} + +// IoctlSetTermios performs an ioctl on fd with a *Termios. +// +// The req value is expected to be TCSETS, TCSETSW, or TCSETSF +func IoctlSetTermios(fd int, req uint, value *Termios) error { + if (req != TCSETS) && (req != TCSETSW) && (req != TCSETSF) { + return ENOSYS + } + err := Tcsetattr(fd, int(req), value) + runtime.KeepAlive(value) + return err +} + +// IoctlGetInt performs an ioctl operation which gets an integer value +// from fd, using the specified request number. +// +// A few ioctl requests use the return value as an output parameter; +// for those, IoctlRetInt should be used instead of this function. +func IoctlGetInt(fd int, req uint) (int, error) { + var value int + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return value, err +} + +func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { + var value Winsize + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return &value, err +} + +// IoctlGetTermios performs an ioctl on fd with a *Termios. +// +// The req value is expected to be TCGETS +func IoctlGetTermios(fd int, req uint) (*Termios, error) { + var value Termios + if req != TCGETS { + return &value, ENOSYS + } + err := Tcgetattr(fd, &value) + return &value, err +} diff --git a/vendor/golang.org/x/sys/unix/mkall.sh b/vendor/golang.org/x/sys/unix/mkall.sh new file mode 100644 index 0000000..8e3947c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/mkall.sh @@ -0,0 +1,249 @@ +#!/usr/bin/env bash +# Copyright 2009 The Go Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +# This script runs or (given -n) prints suggested commands to generate files for +# the Architecture/OS specified by the GOARCH and GOOS environment variables. +# See README.md for more information about how the build system works. + +GOOSARCH="${GOOS}_${GOARCH}" + +# defaults +mksyscall="go run mksyscall.go" +mkerrors="./mkerrors.sh" +zerrors="zerrors_$GOOSARCH.go" +mksysctl="" +zsysctl="zsysctl_$GOOSARCH.go" +mksysnum= +mktypes= +mkasm= +run="sh" +cmd="" + +case "$1" in +-syscalls) + for i in zsyscall*go + do + # Run the command line that appears in the first line + # of the generated file to regenerate it. + sed 1q $i | sed 's;^// ;;' | sh > _$i && gofmt < _$i > $i + rm _$i + done + exit 0 + ;; +-n) + run="cat" + cmd="echo" + shift +esac + +case "$#" in +0) + ;; +*) + echo 'usage: mkall.sh [-n]' 1>&2 + exit 2 +esac + +if [[ "$GOOS" = "linux" ]]; then + # Use the Docker-based build system + # Files generated through docker (use $cmd so you can Ctl-C the build or run) + $cmd docker build --tag generate:$GOOS $GOOS + $cmd docker run --interactive --tty --volume $(cd -- "$(dirname -- "$0")/.." && /bin/pwd):/build generate:$GOOS + exit +fi + +GOOSARCH_in=syscall_$GOOSARCH.go +case "$GOOSARCH" in +_* | *_ | _) + echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2 + exit 1 + ;; +aix_ppc) + mkerrors="$mkerrors -maix32" + mksyscall="go run mksyscall_aix_ppc.go -aix" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +aix_ppc64) + mkerrors="$mkerrors -maix64" + mksyscall="go run mksyscall_aix_ppc64.go -aix" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +darwin_amd64) + mkerrors="$mkerrors -m64" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + mkasm="go run mkasm.go" + ;; +darwin_arm64) + mkerrors="$mkerrors -m64" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + mkasm="go run mkasm.go" + ;; +dragonfly_amd64) + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -dragonfly" + mksysnum="go run mksysnum.go 'https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +freebsd_386) + mkerrors="$mkerrors -m32" + mksyscall="go run mksyscall.go -l32" + mksysnum="go run mksysnum.go 'https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +freebsd_amd64) + mkerrors="$mkerrors -m64" + mksysnum="go run mksysnum.go 'https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +freebsd_arm) + mkerrors="$mkerrors" + mksyscall="go run mksyscall.go -l32 -arm" + mksysnum="go run mksysnum.go 'https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12'" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +freebsd_arm64) + mkerrors="$mkerrors -m64" + mksysnum="go run mksysnum.go 'https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +freebsd_riscv64) + mkerrors="$mkerrors -m64" + mksysnum="go run mksysnum.go 'https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +netbsd_386) + mkerrors="$mkerrors -m32" + mksyscall="go run mksyscall.go -l32 -netbsd" + mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +netbsd_amd64) + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -netbsd" + mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +netbsd_arm) + mkerrors="$mkerrors" + mksyscall="go run mksyscall.go -l32 -netbsd -arm" + mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +netbsd_arm64) + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -netbsd" + mksysnum="go run mksysnum.go 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master'" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +openbsd_386) + mkasm="go run mkasm.go" + mkerrors="$mkerrors -m32" + mksyscall="go run mksyscall.go -l32 -openbsd -libc" + mksysctl="go run mksysctl_openbsd.go" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +openbsd_amd64) + mkasm="go run mkasm.go" + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -openbsd -libc" + mksysctl="go run mksysctl_openbsd.go" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +openbsd_arm) + mkasm="go run mkasm.go" + mkerrors="$mkerrors" + mksyscall="go run mksyscall.go -l32 -openbsd -arm -libc" + mksysctl="go run mksysctl_openbsd.go" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +openbsd_arm64) + mkasm="go run mkasm.go" + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -openbsd -libc" + mksysctl="go run mksysctl_openbsd.go" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +openbsd_mips64) + mkasm="go run mkasm.go" + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -openbsd -libc" + mksysctl="go run mksysctl_openbsd.go" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +openbsd_ppc64) + mkasm="go run mkasm.go" + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -openbsd -libc" + mksysctl="go run mksysctl_openbsd.go" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +openbsd_riscv64) + mkasm="go run mkasm.go" + mkerrors="$mkerrors -m64" + mksyscall="go run mksyscall.go -openbsd -libc" + mksysctl="go run mksysctl_openbsd.go" + # Let the type of C char be signed for making the bare syscall + # API consistent across platforms. + mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" + ;; +solaris_amd64) + mksyscall="go run mksyscall_solaris.go" + mkerrors="$mkerrors -m64" + mksysnum= + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +illumos_amd64) + mksyscall="go run mksyscall_solaris.go" + mkerrors= + mksysnum= + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +*) + echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2 + exit 1 + ;; +esac + +( + if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >$zerrors"; fi + case "$GOOS" in + *) + syscall_goos="syscall_$GOOS.go" + case "$GOOS" in + darwin | dragonfly | freebsd | netbsd | openbsd) + syscall_goos="syscall_bsd.go $syscall_goos" + ;; + esac + if [ -n "$mksyscall" ]; then + if [ "$GOOSARCH" == "aix_ppc64" ]; then + # aix/ppc64 script generates files instead of writing to stdin. + echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; + elif [ "$GOOS" == "illumos" ]; then + # illumos code generation requires a --illumos switch + echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go"; + # illumos implies solaris, so solaris code generation is also required + echo "$mksyscall -tags solaris,$GOARCH syscall_solaris.go syscall_solaris_$GOARCH.go |gofmt >zsyscall_solaris_$GOARCH.go"; + else + echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; + fi + fi + esac + if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi + if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi + if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi + if [ -n "$mkasm" ]; then echo "$mkasm $GOOS $GOARCH"; fi +) | $run diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh new file mode 100644 index 0000000..7456d9d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -0,0 +1,778 @@ +#!/usr/bin/env bash +# Copyright 2009 The Go Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +# Generate Go code listing errors and other #defined constant +# values (ENAMETOOLONG etc.), by asking the preprocessor +# about the definitions. + +unset LANG +export LC_ALL=C +export LC_CTYPE=C + +if test -z "$GOARCH" -o -z "$GOOS"; then + echo 1>&2 "GOARCH or GOOS not defined in environment" + exit 1 +fi + +# Check that we are using the new build system if we should +if [[ "$GOOS" = "linux" ]] && [[ "$GOLANG_SYS_BUILD" != "docker" ]]; then + echo 1>&2 "In the Docker based build system, mkerrors should not be called directly." + echo 1>&2 "See README.md" + exit 1 +fi + +if [[ "$GOOS" = "aix" ]]; then + CC=${CC:-gcc} +else + CC=${CC:-cc} +fi + +if [[ "$GOOS" = "solaris" ]]; then + # Assumes GNU versions of utilities in PATH. + export PATH=/usr/gnu/bin:$PATH +fi + +uname=$(uname) + +includes_AIX=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define AF_LOCAL AF_UNIX +' + +includes_Darwin=' +#define _DARWIN_C_SOURCE +#define KERNEL 1 +#define _DARWIN_USE_64_BIT_INODE +#define __APPLE_USE_RFC_3542 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// for backwards compatibility because moved TIOCREMOTE to Kernel.framework after MacOSX12.0.sdk. +#define TIOCREMOTE 0x80047469 +' + +includes_DragonFly=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +' + +includes_FreeBSD=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if __FreeBSD__ >= 10 +#define IFT_CARP 0xf8 // IFT_CARP is deprecated in FreeBSD 10 +#undef SIOCAIFADDR +#define SIOCAIFADDR _IOW(105, 26, struct oifaliasreq) // ifaliasreq contains if_data +#undef SIOCSIFPHYADDR +#define SIOCSIFPHYADDR _IOW(105, 70, struct oifaliasreq) // ifaliasreq contains if_data +#endif +' + +includes_Linux=' +#define _LARGEFILE_SOURCE +#define _LARGEFILE64_SOURCE +#ifndef __LP64__ +#define _FILE_OFFSET_BITS 64 +#endif +#define _GNU_SOURCE + +// is broken on powerpc64, as it fails to include definitions of +// these structures. We just include them copied from . +#if defined(__powerpc__) +struct sgttyb { + char sg_ispeed; + char sg_ospeed; + char sg_erase; + char sg_kill; + short sg_flags; +}; + +struct tchars { + char t_intrc; + char t_quitc; + char t_startc; + char t_stopc; + char t_eofc; + char t_brkc; +}; + +struct ltchars { + char t_suspc; + char t_dsuspc; + char t_rprntc; + char t_flushc; + char t_werasc; + char t_lnextc; +}; +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#if defined(__sparc__) +// On sparc{,64}, the kernel defines struct termios2 itself which clashes with the +// definition in glibc. As only the error constants are needed here, include the +// generic termibits.h (which is included by termbits.h on sparc). +#include +#else +#include +#endif + +#ifndef MSG_FASTOPEN +#define MSG_FASTOPEN 0x20000000 +#endif + +#ifndef PTRACE_GETREGS +#define PTRACE_GETREGS 0xc +#endif + +#ifndef PTRACE_SETREGS +#define PTRACE_SETREGS 0xd +#endif + +#ifndef SOL_NETLINK +#define SOL_NETLINK 270 +#endif + +#ifndef SOL_SMC +#define SOL_SMC 286 +#endif + +#ifdef SOL_BLUETOOTH +// SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h +// but it is already in bluetooth_linux.go +#undef SOL_BLUETOOTH +#endif + +// Certain constants are missing from the fs/crypto UAPI +#define FS_KEY_DESC_PREFIX "fscrypt:" +#define FS_KEY_DESC_PREFIX_SIZE 8 +#define FS_MAX_KEY_SIZE 64 + +// The code generator produces -0x1 for (~0), but an unsigned value is necessary +// for the tipc_subscr timeout __u32 field. +#undef TIPC_WAIT_FOREVER +#define TIPC_WAIT_FOREVER 0xffffffff + +// Copied from linux/l2tp.h +// Including linux/l2tp.h here causes conflicts between linux/in.h +// and netinet/in.h included via net/route.h above. +#define IPPROTO_L2TP 115 + +// Copied from linux/hid.h. +// Keep in sync with the size of the referenced fields. +#define _HIDIOCGRAWNAME_LEN 128 // sizeof_field(struct hid_device, name) +#define _HIDIOCGRAWPHYS_LEN 64 // sizeof_field(struct hid_device, phys) +#define _HIDIOCGRAWUNIQ_LEN 64 // sizeof_field(struct hid_device, uniq) + +#define _HIDIOCGRAWNAME HIDIOCGRAWNAME(_HIDIOCGRAWNAME_LEN) +#define _HIDIOCGRAWPHYS HIDIOCGRAWPHYS(_HIDIOCGRAWPHYS_LEN) +#define _HIDIOCGRAWUNIQ HIDIOCGRAWUNIQ(_HIDIOCGRAWUNIQ_LEN) + +' + +includes_NetBSD=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Needed since refers to it... +#define schedppq 1 +' + +includes_OpenBSD=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// We keep some constants not supported in OpenBSD 5.5 and beyond for +// the promise of compatibility. +#define EMUL_ENABLED 0x1 +#define EMUL_NATIVE 0x2 +#define IPV6_FAITH 0x1d +#define IPV6_OPTIONS 0x1 +#define IPV6_RTHDR_STRICT 0x1 +#define IPV6_SOCKOPT_RESERVED1 0x3 +#define SIOCGIFGENERIC 0xc020693a +#define SIOCSIFGENERIC 0x80206939 +#define WALTSIG 0x4 +' + +includes_SunOS=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +' + + +includes=' +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +' +ccflags="$@" + +# Write go tool cgo -godefs input. +( + echo package unix + echo + echo '/*' + indirect="includes_$(uname)" + echo "${!indirect} $includes" + echo '*/' + echo 'import "C"' + echo 'import "syscall"' + echo + echo 'const (' + + # The gcc command line prints all the #defines + # it encounters while processing the input + echo "${!indirect} $includes" | $CC -x c - -E -dM $ccflags | + awk ' + $1 != "#define" || $2 ~ /\(/ || $3 == "" {next} + + $2 ~ /^E([ABCD]X|[BIS]P|[SD]I|S|FL)$/ {next} # 386 registers + $2 ~ /^(SIGEV_|SIGSTKSZ|SIGRT(MIN|MAX))/ {next} + $2 ~ /^(SCM_SRCRT)$/ {next} + $2 ~ /^(MAP_FAILED)$/ {next} + $2 ~ /^ELF_.*$/ {next}# contains ELF_ARCH, etc. + + $2 ~ /^EXTATTR_NAMESPACE_NAMES/ || + $2 ~ /^EXTATTR_NAMESPACE_[A-Z]+_STRING/ {next} + + $2 !~ /^ECCAPBITS/ && + $2 !~ /^ETH_/ && + $2 !~ /^EPROC_/ && + $2 !~ /^EQUIV_/ && + $2 !~ /^EXPR_/ && + $2 !~ /^EVIOC/ && + $2 ~ /^E[A-Z0-9_]+$/ || + $2 ~ /^B[0-9_]+$/ || + $2 ~ /^(OLD|NEW)DEV$/ || + $2 == "BOTHER" || + $2 ~ /^CI?BAUD(EX)?$/ || + $2 == "IBSHIFT" || + $2 ~ /^V[A-Z0-9]+$/ || + $2 ~ /^CS[A-Z0-9]/ || + $2 ~ /^I(SIG|CANON|CRNL|UCLC|EXTEN|MAXBEL|STRIP|UTF8)$/ || + $2 ~ /^IGN/ || + $2 ~ /^IX(ON|ANY|OFF)$/ || + $2 ~ /^IN(LCR|PCK)$/ || + $2 !~ "X86_CR3_PCID_NOFLUSH" && + $2 ~ /(^FLU?SH)|(FLU?SH$)/ || + $2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ || + $2 == "BRKINT" || + $2 == "HUPCL" || + $2 == "PENDIN" || + $2 == "TOSTOP" || + $2 == "XCASE" || + $2 == "ALTWERASE" || + $2 == "NOKERNINFO" || + $2 == "NFDBITS" || + $2 ~ /^PAR/ || + $2 ~ /^SIG[^_]/ || + $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ || + $2 ~ /^(NL|CR|TAB|BS|VT|FF)DLY$/ || + $2 ~ /^(NL|CR|TAB|BS|VT|FF)[0-9]$/ || + $2 ~ /^O?XTABS$/ || + $2 ~ /^TC[IO](ON|OFF)$/ || + $2 ~ /^IN_/ || + $2 ~ /^KCM/ || + $2 ~ /^LANDLOCK_/ || + $2 ~ /^LOCK_(SH|EX|NB|UN)$/ || + $2 ~ /^LO_(KEY|NAME)_SIZE$/ || + $2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ || + $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT)_/ || + $2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ || + $2 ~ /^NFC_.*_(MAX)?SIZE$/ || + $2 ~ /^RAW_PAYLOAD_/ || + $2 ~ /^TP_STATUS_/ || + $2 ~ /^FALLOC_/ || + $2 ~ /^ICMPV?6?_(FILTER|SEC)/ || + $2 == "SOMAXCONN" || + $2 == "NAME_MAX" || + $2 == "IFNAMSIZ" || + $2 ~ /^CTL_(HW|KERN|MAXNAME|NET|QUERY)$/ || + $2 ~ /^KERN_(HOSTNAME|OS(RELEASE|TYPE)|VERSION)$/ || + $2 ~ /^HW_MACHINE$/ || + $2 ~ /^SYSCTL_VERS/ || + $2 !~ "MNT_BITS" && + $2 ~ /^(MS|MNT|MOUNT|UMOUNT)_/ || + $2 ~ /^NS_GET_/ || + $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || + $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT|PIOD|TFD)_/ || + $2 ~ /^KEXEC_/ || + $2 ~ /^LINUX_REBOOT_CMD_/ || + $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ || + $2 ~ /^MODULE_INIT_/ || + $2 !~ "NLA_TYPE_MASK" && + $2 !~ /^RTC_VL_(ACCURACY|BACKUP|DATA)/ && + $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ || + $2 ~ /^FIORDCHK$/ || + $2 ~ /^SIOC/ || + $2 ~ /^TIOC/ || + $2 ~ /^TCGET/ || + $2 ~ /^TCSET/ || + $2 ~ /^TC(FLSH|SBRKP?|XONC)$/ || + $2 !~ "RTF_BITS" && + $2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ || + $2 ~ /^BIOC/ || + $2 ~ /^DIOC/ || + $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ || + $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ || + $2 ~ /^PRIO_(PROCESS|PGRP|USER)/ || + $2 ~ /^CLONE_[A-Z_]+/ || + $2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+)$/ && + $2 ~ /^(BPF|DLT)_/ || + $2 ~ /^AUDIT_/ || + $2 ~ /^(CLOCK|TIMER)_/ || + $2 ~ /^CAN_/ || + $2 ~ /^CAP_/ || + $2 ~ /^CP_/ || + $2 ~ /^CPUSTATES$/ || + $2 ~ /^CTLIOCGINFO$/ || + $2 ~ /^ALG_/ || + $2 ~ /^FI(CLONE|DEDUPERANGE)/ || + $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ || + $2 ~ /^FS_IOC_.*(ENCRYPTION|VERITY|[GS]ETFLAGS)/ || + $2 ~ /^FS_VERITY_/ || + $2 ~ /^FSCRYPT_/ || + $2 ~ /^DM_/ || + $2 ~ /^GRND_/ || + $2 ~ /^RND/ || + $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || + $2 ~ /^KEYCTL_/ || + $2 ~ /^PERF_/ || + $2 ~ /^SECCOMP_MODE_/ || + $2 ~ /^SEEK_/ || + $2 ~ /^SPLICE_/ || + $2 ~ /^SYNC_FILE_RANGE_/ || + $2 !~ /IOC_MAGIC/ && + $2 ~ /^[A-Z][A-Z0-9_]+_MAGIC2?$/ || + $2 ~ /^(VM|VMADDR)_/ || + $2 ~ /^IOCTL_VM_SOCKETS_/ || + $2 ~ /^(TASKSTATS|TS)_/ || + $2 ~ /^CGROUPSTATS_/ || + $2 ~ /^GENL_/ || + $2 ~ /^STATX_/ || + $2 ~ /^RENAME/ || + $2 ~ /^UBI_IOC[A-Z]/ || + $2 ~ /^UTIME_/ || + $2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ || + $2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ || + $2 ~ /^FSOPT_/ || + $2 ~ /^WDIO[CFS]_/ || + $2 ~ /^NFN/ || + $2 ~ /^XDP_/ || + $2 ~ /^RWF_/ || + $2 ~ /^(HDIO|WIN|SMART)_/ || + $2 ~ /^CRYPTO_/ || + $2 ~ /^TIPC_/ || + $2 !~ "DEVLINK_RELOAD_LIMITS_VALID_MASK" && + $2 ~ /^DEVLINK_/ || + $2 ~ /^ETHTOOL_/ || + $2 ~ /^LWTUNNEL_IP/ || + $2 ~ /^ITIMER_/ || + $2 !~ "WMESGLEN" && + $2 ~ /^W[A-Z0-9]+$/ || + $2 ~ /^P_/ || + $2 ~/^PPPIOC/ || + $2 ~ /^FAN_|FANOTIFY_/ || + $2 == "HID_MAX_DESCRIPTOR_SIZE" || + $2 ~ /^_?HIDIOC/ || + $2 ~ /^BUS_(USB|HIL|BLUETOOTH|VIRTUAL)$/ || + $2 ~ /^MTD/ || + $2 ~ /^OTP/ || + $2 ~ /^MEM/ || + $2 ~ /^WG/ || + $2 ~ /^FIB_RULE_/ || + $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)} + $2 ~ /^__WCOREFLAG$/ {next} + $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)} + + {next} + ' | sort + + echo ')' +) >_const.go + +# Pull out the error names for later. +errors=$( + echo '#include ' | $CC -x c - -E -dM $ccflags | + awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print $2 }' | + sort +) + +# Pull out the signal names for later. +signals=$( + echo '#include ' | $CC -x c - -E -dM $ccflags | + awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | + grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | + sort +) + +# Again, writing regexps to a file. +echo '#include ' | $CC -x c - -E -dM $ccflags | + awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print "^\t" $2 "[ \t]*=" }' | + sort >_error.grep +echo '#include ' | $CC -x c - -E -dM $ccflags | + awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | + grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | + sort >_signal.grep + +echo '// mkerrors.sh' "$@" +echo '// Code generated by the command above; see README.md. DO NOT EDIT.' +echo +echo "//go:build ${GOARCH} && ${GOOS}" +echo "// +build ${GOARCH},${GOOS}" +echo +go tool cgo -godefs -- "$@" _const.go >_error.out +cat _error.out | grep -vf _error.grep | grep -vf _signal.grep +echo +echo '// Errors' +echo 'const (' +cat _error.out | grep -f _error.grep | sed 's/=\(.*\)/= syscall.Errno(\1)/' +echo ')' + +echo +echo '// Signals' +echo 'const (' +cat _error.out | grep -f _signal.grep | sed 's/=\(.*\)/= syscall.Signal(\1)/' +echo ')' + +# Run C program to print error and syscall strings. +( + echo -E " +#include +#include +#include +#include +#include +#include + +#define nelem(x) (sizeof(x)/sizeof((x)[0])) + +enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below + +struct tuple { + int num; + const char *name; +}; + +struct tuple errors[] = { +" + for i in $errors + do + echo -E ' {'$i', "'$i'" },' + done + + echo -E " +}; + +struct tuple signals[] = { +" + for i in $signals + do + echo -E ' {'$i', "'$i'" },' + done + + # Use -E because on some systems bash builtin interprets \n itself. + echo -E ' +}; + +static int +tuplecmp(const void *a, const void *b) +{ + return ((struct tuple *)a)->num - ((struct tuple *)b)->num; +} + +int +main(void) +{ + int i, e; + char buf[1024], *p; + + printf("\n\n// Error table\n"); + printf("var errorList = [...]struct {\n"); + printf("\tnum syscall.Errno\n"); + printf("\tname string\n"); + printf("\tdesc string\n"); + printf("} {\n"); + qsort(errors, nelem(errors), sizeof errors[0], tuplecmp); + for(i=0; i 0 && errors[i-1].num == e) + continue; + strcpy(buf, strerror(e)); + // lowercase first letter: Bad -> bad, but STREAM -> STREAM. + if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z) + buf[0] += a - A; + printf("\t{ %d, \"%s\", \"%s\" },\n", e, errors[i].name, buf); + } + printf("}\n\n"); + + printf("\n\n// Signal table\n"); + printf("var signalList = [...]struct {\n"); + printf("\tnum syscall.Signal\n"); + printf("\tname string\n"); + printf("\tdesc string\n"); + printf("} {\n"); + qsort(signals, nelem(signals), sizeof signals[0], tuplecmp); + for(i=0; i 0 && signals[i-1].num == e) + continue; + strcpy(buf, strsignal(e)); + // lowercase first letter: Bad -> bad, but STREAM -> STREAM. + if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z) + buf[0] += a - A; + // cut trailing : number. + p = strrchr(buf, ":"[0]); + if(p) + *p = '\0'; + printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf); + } + printf("}\n\n"); + + return 0; +} + +' +) >_errors.c + +$CC $ccflags -o _errors _errors.c && $GORUN ./_errors && rm -f _errors.c _errors _const.go _error.grep _signal.grep _error.out diff --git a/vendor/golang.org/x/sys/unix/pagesize_unix.go b/vendor/golang.org/x/sys/unix/pagesize_unix.go new file mode 100644 index 0000000..53f1b4c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/pagesize_unix.go @@ -0,0 +1,16 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris + +// For Unix, get the pagesize from the runtime. + +package unix + +import "syscall" + +func Getpagesize() int { + return syscall.Getpagesize() +} diff --git a/vendor/golang.org/x/sys/unix/pledge_openbsd.go b/vendor/golang.org/x/sys/unix/pledge_openbsd.go new file mode 100644 index 0000000..eb48294 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/pledge_openbsd.go @@ -0,0 +1,163 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +import ( + "errors" + "fmt" + "strconv" + "syscall" + "unsafe" +) + +// Pledge implements the pledge syscall. +// +// The pledge syscall does not accept execpromises on OpenBSD releases +// before 6.3. +// +// execpromises must be empty when Pledge is called on OpenBSD +// releases predating 6.3, otherwise an error will be returned. +// +// For more information see pledge(2). +func Pledge(promises, execpromises string) error { + maj, min, err := majmin() + if err != nil { + return err + } + + err = pledgeAvailable(maj, min, execpromises) + if err != nil { + return err + } + + pptr, err := syscall.BytePtrFromString(promises) + if err != nil { + return err + } + + // This variable will hold either a nil unsafe.Pointer or + // an unsafe.Pointer to a string (execpromises). + var expr unsafe.Pointer + + // If we're running on OpenBSD > 6.2, pass execpromises to the syscall. + if maj > 6 || (maj == 6 && min > 2) { + exptr, err := syscall.BytePtrFromString(execpromises) + if err != nil { + return err + } + expr = unsafe.Pointer(exptr) + } + + _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0) + if e != 0 { + return e + } + + return nil +} + +// PledgePromises implements the pledge syscall. +// +// This changes the promises and leaves the execpromises untouched. +// +// For more information see pledge(2). +func PledgePromises(promises string) error { + maj, min, err := majmin() + if err != nil { + return err + } + + err = pledgeAvailable(maj, min, "") + if err != nil { + return err + } + + // This variable holds the execpromises and is always nil. + var expr unsafe.Pointer + + pptr, err := syscall.BytePtrFromString(promises) + if err != nil { + return err + } + + _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0) + if e != 0 { + return e + } + + return nil +} + +// PledgeExecpromises implements the pledge syscall. +// +// This changes the execpromises and leaves the promises untouched. +// +// For more information see pledge(2). +func PledgeExecpromises(execpromises string) error { + maj, min, err := majmin() + if err != nil { + return err + } + + err = pledgeAvailable(maj, min, execpromises) + if err != nil { + return err + } + + // This variable holds the promises and is always nil. + var pptr unsafe.Pointer + + exptr, err := syscall.BytePtrFromString(execpromises) + if err != nil { + return err + } + + _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(pptr), uintptr(unsafe.Pointer(exptr)), 0) + if e != 0 { + return e + } + + return nil +} + +// majmin returns major and minor version number for an OpenBSD system. +func majmin() (major int, minor int, err error) { + var v Utsname + err = Uname(&v) + if err != nil { + return + } + + major, err = strconv.Atoi(string(v.Release[0])) + if err != nil { + err = errors.New("cannot parse major version number returned by uname") + return + } + + minor, err = strconv.Atoi(string(v.Release[2])) + if err != nil { + err = errors.New("cannot parse minor version number returned by uname") + return + } + + return +} + +// pledgeAvailable checks for availability of the pledge(2) syscall +// based on the running OpenBSD version. +func pledgeAvailable(maj, min int, execpromises string) error { + // If OpenBSD <= 5.9, pledge is not available. + if (maj == 5 && min != 9) || maj < 5 { + return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min) + } + + // If OpenBSD <= 6.2 and execpromises is not empty, + // return an error - execpromises is not available before 6.3 + if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" { + return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min) + } + + return nil +} diff --git a/vendor/golang.org/x/sys/unix/ptrace_darwin.go b/vendor/golang.org/x/sys/unix/ptrace_darwin.go new file mode 100644 index 0000000..463c3ef --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ptrace_darwin.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build darwin && !ios +// +build darwin,!ios + +package unix + +func ptrace(request int, pid int, addr uintptr, data uintptr) error { + return ptrace1(request, pid, addr, data) +} diff --git a/vendor/golang.org/x/sys/unix/ptrace_ios.go b/vendor/golang.org/x/sys/unix/ptrace_ios.go new file mode 100644 index 0000000..ed0509a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ptrace_ios.go @@ -0,0 +1,12 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build ios +// +build ios + +package unix + +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + return ENOTSUP +} diff --git a/vendor/golang.org/x/sys/unix/race.go b/vendor/golang.org/x/sys/unix/race.go new file mode 100644 index 0000000..6f6c5fe --- /dev/null +++ b/vendor/golang.org/x/sys/unix/race.go @@ -0,0 +1,31 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin && race) || (linux && race) || (freebsd && race) +// +build darwin,race linux,race freebsd,race + +package unix + +import ( + "runtime" + "unsafe" +) + +const raceenabled = true + +func raceAcquire(addr unsafe.Pointer) { + runtime.RaceAcquire(addr) +} + +func raceReleaseMerge(addr unsafe.Pointer) { + runtime.RaceReleaseMerge(addr) +} + +func raceReadRange(addr unsafe.Pointer, len int) { + runtime.RaceReadRange(addr, len) +} + +func raceWriteRange(addr unsafe.Pointer, len int) { + runtime.RaceWriteRange(addr, len) +} diff --git a/vendor/golang.org/x/sys/unix/race0.go b/vendor/golang.org/x/sys/unix/race0.go new file mode 100644 index 0000000..706e132 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/race0.go @@ -0,0 +1,26 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos +// +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos + +package unix + +import ( + "unsafe" +) + +const raceenabled = false + +func raceAcquire(addr unsafe.Pointer) { +} + +func raceReleaseMerge(addr unsafe.Pointer) { +} + +func raceReadRange(addr unsafe.Pointer, len int) { +} + +func raceWriteRange(addr unsafe.Pointer, len int) { +} diff --git a/vendor/golang.org/x/sys/unix/readdirent_getdents.go b/vendor/golang.org/x/sys/unix/readdirent_getdents.go new file mode 100644 index 0000000..4d62575 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/readdirent_getdents.go @@ -0,0 +1,13 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || dragonfly || freebsd || linux || netbsd || openbsd +// +build aix dragonfly freebsd linux netbsd openbsd + +package unix + +// ReadDirent reads directory entries from fd and writes them into buf. +func ReadDirent(fd int, buf []byte) (n int, err error) { + return Getdents(fd, buf) +} diff --git a/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go b/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go new file mode 100644 index 0000000..2a4ba47 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go @@ -0,0 +1,20 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build darwin +// +build darwin + +package unix + +import "unsafe" + +// ReadDirent reads directory entries from fd and writes them into buf. +func ReadDirent(fd int, buf []byte) (n int, err error) { + // Final argument is (basep *uintptr) and the syscall doesn't take nil. + // 64 bits should be enough. (32 bits isn't even on 386). Since the + // actual system call is getdirentries64, 64 is a good guess. + // TODO(rsc): Can we use a single global basep for all calls? + var base = (*uintptr)(unsafe.Pointer(new(uint64))) + return Getdirentries(fd, buf, base) +} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go b/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go new file mode 100644 index 0000000..5144dee --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go @@ -0,0 +1,16 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +// Round the length of a raw sockaddr up to align it properly. +func cmsgAlignOf(salen int) int { + salign := SizeofPtr + if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { + // 64-bit Dragonfly before the September 2019 ABI changes still requires + // 32-bit aligned access to network subsystem. + salign = 4 + } + return (salen + salign - 1) & ^(salign - 1) +} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_linux.go b/vendor/golang.org/x/sys/unix/sockcmsg_linux.go new file mode 100644 index 0000000..5f63147 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sockcmsg_linux.go @@ -0,0 +1,85 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Socket control messages + +package unix + +import "unsafe" + +// UnixCredentials encodes credentials into a socket control message +// for sending to another process. This can be used for +// authentication. +func UnixCredentials(ucred *Ucred) []byte { + b := make([]byte, CmsgSpace(SizeofUcred)) + h := (*Cmsghdr)(unsafe.Pointer(&b[0])) + h.Level = SOL_SOCKET + h.Type = SCM_CREDENTIALS + h.SetLen(CmsgLen(SizeofUcred)) + *(*Ucred)(h.data(0)) = *ucred + return b +} + +// ParseUnixCredentials decodes a socket control message that contains +// credentials in a Ucred structure. To receive such a message, the +// SO_PASSCRED option must be enabled on the socket. +func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) { + if m.Header.Level != SOL_SOCKET { + return nil, EINVAL + } + if m.Header.Type != SCM_CREDENTIALS { + return nil, EINVAL + } + ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0])) + return &ucred, nil +} + +// PktInfo4 encodes Inet4Pktinfo into a socket control message of type IP_PKTINFO. +func PktInfo4(info *Inet4Pktinfo) []byte { + b := make([]byte, CmsgSpace(SizeofInet4Pktinfo)) + h := (*Cmsghdr)(unsafe.Pointer(&b[0])) + h.Level = SOL_IP + h.Type = IP_PKTINFO + h.SetLen(CmsgLen(SizeofInet4Pktinfo)) + *(*Inet4Pktinfo)(h.data(0)) = *info + return b +} + +// PktInfo6 encodes Inet6Pktinfo into a socket control message of type IPV6_PKTINFO. +func PktInfo6(info *Inet6Pktinfo) []byte { + b := make([]byte, CmsgSpace(SizeofInet6Pktinfo)) + h := (*Cmsghdr)(unsafe.Pointer(&b[0])) + h.Level = SOL_IPV6 + h.Type = IPV6_PKTINFO + h.SetLen(CmsgLen(SizeofInet6Pktinfo)) + *(*Inet6Pktinfo)(h.data(0)) = *info + return b +} + +// ParseOrigDstAddr decodes a socket control message containing the original +// destination address. To receive such a message the IP_RECVORIGDSTADDR or +// IPV6_RECVORIGDSTADDR option must be enabled on the socket. +func ParseOrigDstAddr(m *SocketControlMessage) (Sockaddr, error) { + switch { + case m.Header.Level == SOL_IP && m.Header.Type == IP_ORIGDSTADDR: + pp := (*RawSockaddrInet4)(unsafe.Pointer(&m.Data[0])) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.Addr = pp.Addr + return sa, nil + + case m.Header.Level == SOL_IPV6 && m.Header.Type == IPV6_ORIGDSTADDR: + pp := (*RawSockaddrInet6)(unsafe.Pointer(&m.Data[0])) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + + default: + return nil, EINVAL + } +} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go new file mode 100644 index 0000000..3865943 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go @@ -0,0 +1,107 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +// Socket control messages + +package unix + +import ( + "unsafe" +) + +// CmsgLen returns the value to store in the Len field of the Cmsghdr +// structure, taking into account any necessary alignment. +func CmsgLen(datalen int) int { + return cmsgAlignOf(SizeofCmsghdr) + datalen +} + +// CmsgSpace returns the number of bytes an ancillary element with +// payload of the passed data length occupies. +func CmsgSpace(datalen int) int { + return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen) +} + +func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer { + return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr)) + offset) +} + +// SocketControlMessage represents a socket control message. +type SocketControlMessage struct { + Header Cmsghdr + Data []byte +} + +// ParseSocketControlMessage parses b as an array of socket control +// messages. +func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) { + var msgs []SocketControlMessage + i := 0 + for i+CmsgLen(0) <= len(b) { + h, dbuf, err := socketControlMessageHeaderAndData(b[i:]) + if err != nil { + return nil, err + } + m := SocketControlMessage{Header: *h, Data: dbuf} + msgs = append(msgs, m) + i += cmsgAlignOf(int(h.Len)) + } + return msgs, nil +} + +// ParseOneSocketControlMessage parses a single socket control message from b, returning the message header, +// message data (a slice of b), and the remainder of b after that single message. +// When there are no remaining messages, len(remainder) == 0. +func ParseOneSocketControlMessage(b []byte) (hdr Cmsghdr, data []byte, remainder []byte, err error) { + h, dbuf, err := socketControlMessageHeaderAndData(b) + if err != nil { + return Cmsghdr{}, nil, nil, err + } + if i := cmsgAlignOf(int(h.Len)); i < len(b) { + remainder = b[i:] + } + return *h, dbuf, remainder, nil +} + +func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) { + h := (*Cmsghdr)(unsafe.Pointer(&b[0])) + if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) { + return nil, nil, EINVAL + } + return h, b[cmsgAlignOf(SizeofCmsghdr):h.Len], nil +} + +// UnixRights encodes a set of open file descriptors into a socket +// control message for sending to another process. +func UnixRights(fds ...int) []byte { + datalen := len(fds) * 4 + b := make([]byte, CmsgSpace(datalen)) + h := (*Cmsghdr)(unsafe.Pointer(&b[0])) + h.Level = SOL_SOCKET + h.Type = SCM_RIGHTS + h.SetLen(CmsgLen(datalen)) + for i, fd := range fds { + *(*int32)(h.data(4 * uintptr(i))) = int32(fd) + } + return b +} + +// ParseUnixRights decodes a socket control message that contains an +// integer array of open file descriptors from another process. +func ParseUnixRights(m *SocketControlMessage) ([]int, error) { + if m.Header.Level != SOL_SOCKET { + return nil, EINVAL + } + if m.Header.Type != SCM_RIGHTS { + return nil, EINVAL + } + fds := make([]int, len(m.Data)>>2) + for i, j := 0, 0; i < len(m.Data); i += 4 { + fds[j] = int(*(*int32)(unsafe.Pointer(&m.Data[i]))) + j++ + } + return fds, nil +} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go new file mode 100644 index 0000000..0840fe4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go @@ -0,0 +1,47 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin freebsd linux netbsd openbsd solaris zos + +package unix + +import ( + "runtime" +) + +// Round the length of a raw sockaddr up to align it properly. +func cmsgAlignOf(salen int) int { + salign := SizeofPtr + + // dragonfly needs to check ABI version at runtime, see cmsgAlignOf in + // sockcmsg_dragonfly.go + switch runtime.GOOS { + case "aix": + // There is no alignment on AIX. + salign = 1 + case "darwin", "ios", "illumos", "solaris": + // NOTE: It seems like 64-bit Darwin, Illumos and Solaris + // kernels still require 32-bit aligned access to network + // subsystem. + if SizeofPtr == 8 { + salign = 4 + } + case "netbsd", "openbsd": + // NetBSD and OpenBSD armv7 require 64-bit alignment. + if runtime.GOARCH == "arm" { + salign = 8 + } + // NetBSD aarch64 requires 128-bit alignment. + if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" { + salign = 16 + } + case "zos": + // z/OS socket macros use [32-bit] sizeof(int) alignment, + // not pointer width. + salign = SizeofInt + } + + return (salen + salign - 1) & ^(salign - 1) +} diff --git a/vendor/golang.org/x/sys/unix/syscall.go b/vendor/golang.org/x/sys/unix/syscall.go new file mode 100644 index 0000000..63e8c83 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall.go @@ -0,0 +1,87 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +// Package unix contains an interface to the low-level operating system +// primitives. OS details vary depending on the underlying system, and +// by default, godoc will display OS-specific documentation for the current +// system. If you want godoc to display OS documentation for another +// system, set $GOOS and $GOARCH to the desired system. For example, if +// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS +// to freebsd and $GOARCH to arm. +// +// The primary use of this package is inside other packages that provide a more +// portable interface to the system, such as "os", "time" and "net". Use +// those packages rather than this one if you can. +// +// For details of the functions and data types in this package consult +// the manuals for the appropriate operating system. +// +// These calls return err == nil to indicate success; otherwise +// err represents an operating system error describing the failure and +// holds a value of type syscall.Errno. +package unix // import "golang.org/x/sys/unix" + +import ( + "bytes" + "strings" + "unsafe" +) + +// ByteSliceFromString returns a NUL-terminated slice of bytes +// containing the text of s. If s contains a NUL byte at any +// location, it returns (nil, EINVAL). +func ByteSliceFromString(s string) ([]byte, error) { + if strings.IndexByte(s, 0) != -1 { + return nil, EINVAL + } + a := make([]byte, len(s)+1) + copy(a, s) + return a, nil +} + +// BytePtrFromString returns a pointer to a NUL-terminated array of +// bytes containing the text of s. If s contains a NUL byte at any +// location, it returns (nil, EINVAL). +func BytePtrFromString(s string) (*byte, error) { + a, err := ByteSliceFromString(s) + if err != nil { + return nil, err + } + return &a[0], nil +} + +// ByteSliceToString returns a string form of the text represented by the slice s, with a terminating NUL and any +// bytes after the NUL removed. +func ByteSliceToString(s []byte) string { + if i := bytes.IndexByte(s, 0); i != -1 { + s = s[:i] + } + return string(s) +} + +// BytePtrToString takes a pointer to a sequence of text and returns the corresponding string. +// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated +// at a zero byte; if the zero byte is not present, the program may crash. +func BytePtrToString(p *byte) string { + if p == nil { + return "" + } + if *p == 0 { + return "" + } + + // Find NUL terminator. + n := 0 + for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ { + ptr = unsafe.Pointer(uintptr(ptr) + 1) + } + + return string(unsafe.Slice(p, n)) +} + +// Single-word zero for use when we need a valid pointer to 0 bytes. +var _zero uintptr diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go new file mode 100644 index 0000000..2db1b51 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -0,0 +1,600 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix +// +build aix + +// Aix system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and +// wrap it in our own nicer implementation. + +package unix + +import "unsafe" + +/* + * Wrapped + */ + +func Access(path string, mode uint32) (err error) { + return Faccessat(AT_FDCWD, path, mode, 0) +} + +func Chmod(path string, mode uint32) (err error) { + return Fchmodat(AT_FDCWD, path, mode, 0) +} + +func Chown(path string, uid int, gid int) (err error) { + return Fchownat(AT_FDCWD, path, uid, gid, 0) +} + +func Creat(path string, mode uint32) (fd int, err error) { + return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) +} + +//sys utimes(path string, times *[2]Timeval) (err error) + +func Utimes(path string, tv []Timeval) error { + if len(tv) != 2 { + return EINVAL + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +//sys utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) + +func UtimesNano(path string, ts []Timespec) error { + if len(ts) != 2 { + return EINVAL + } + return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { + if ts == nil { + return utimensat(dirfd, path, nil, flags) + } + if len(ts) != 2 { + return EINVAL + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) +} + +func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Family = AF_INET + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil +} + +func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Family = AF_INET6 + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Scope_id = sa.ZoneId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil +} + +func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { + name := sa.Name + n := len(name) + if n > len(sa.raw.Path) { + return nil, 0, EINVAL + } + if n == len(sa.raw.Path) && name[0] != '@' { + return nil, 0, EINVAL + } + sa.raw.Family = AF_UNIX + for i := 0; i < n; i++ { + sa.raw.Path[i] = uint8(name[i]) + } + // length is family (uint16), name, NUL. + sl := _Socklen(2) + if n > 0 { + sl += _Socklen(n) + 1 + } + if sa.raw.Path[0] == '@' { + sa.raw.Path[0] = 0 + // Don't count trailing NUL for abstract address. + sl-- + } + + return unsafe.Pointer(&sa.raw), sl, nil +} + +func Getsockname(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getsockname(fd, &rsa, &len); err != nil { + return + } + return anyToSockaddr(fd, &rsa) +} + +//sys getcwd(buf []byte) (err error) + +const ImplementsGetwd = true + +func Getwd() (ret string, err error) { + for len := uint64(4096); ; len *= 2 { + b := make([]byte, len) + err := getcwd(b) + if err == nil { + i := 0 + for b[i] != 0 { + i++ + } + return string(b[0:i]), nil + } + if err != ERANGE { + return "", err + } + } +} + +func Getcwd(buf []byte) (n int, err error) { + err = getcwd(buf) + if err == nil { + i := 0 + for buf[i] != 0 { + i++ + } + n = i + 1 + } + return +} + +func Getgroups() (gids []int, err error) { + n, err := getgroups(0, nil) + if err != nil { + return nil, err + } + if n == 0 { + return nil, nil + } + + // Sanity check group count. Max is 16 on BSD. + if n < 0 || n > 1000 { + return nil, EINVAL + } + + a := make([]_Gid_t, n) + n, err = getgroups(n, &a[0]) + if err != nil { + return nil, err + } + gids = make([]int, n) + for i, v := range a[0:n] { + gids[i] = int(v) + } + return +} + +func Setgroups(gids []int) (err error) { + if len(gids) == 0 { + return setgroups(0, nil) + } + + a := make([]_Gid_t, len(gids)) + for i, v := range gids { + a[i] = _Gid_t(v) + } + return setgroups(len(a), &a[0]) +} + +/* + * Socket + */ + +//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) + +func Accept(fd int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept(fd, &rsa, &len) + if nfd == -1 { + return + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(rsa)) + msg.Namelen = uint32(SizeofSockaddrAny) + var dummy byte + if len(oob) > 0 { + // receive at least one normal byte + if emptyIovecs(iov) { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + msg.Control = (*byte)(unsafe.Pointer(&oob[0])) + msg.SetControllen(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = recvmsg(fd, &msg, flags); n == -1 { + return + } + oobn = int(msg.Controllen) + recvflags = int(msg.Flags) + return +} + +func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(ptr)) + msg.Namelen = uint32(salen) + var dummy byte + var empty bool + if len(oob) > 0 { + // send at least one normal byte + empty = emptyIovecs(iov) + if empty { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + msg.Control = (*byte)(unsafe.Pointer(&oob[0])) + msg.SetControllen(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = sendmsg(fd, &msg, flags); err != nil { + return 0, err + } + if len(oob) > 0 && empty { + n = 0 + } + return n, nil +} + +func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + switch rsa.Addr.Family { + + case AF_UNIX: + pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) + sa := new(SockaddrUnix) + + // Some versions of AIX have a bug in getsockname (see IV78655). + // We can't rely on sa.Len being set correctly. + n := SizeofSockaddrUnix - 3 // subtract leading Family, Len, terminating NUL. + for i := 0; i < n; i++ { + if pp.Path[i] == 0 { + n = i + break + } + } + + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + sa.Name = string(bytes) + return sa, nil + + case AF_INET: + pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.Addr = pp.Addr + return sa, nil + + case AF_INET6: + pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + } + return nil, EAFNOSUPPORT +} + +func Gettimeofday(tv *Timeval) (err error) { + err = gettimeofday(tv, nil) + return +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +// TODO +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + return -1, ENOSYS +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} + +//sys getdirent(fd int, buf []byte) (n int, err error) + +func Getdents(fd int, buf []byte) (n int, err error) { + return getdirent(fd, buf) +} + +//sys wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) + +func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { + var status _C_int + var r Pid_t + err = ERESTART + // AIX wait4 may return with ERESTART errno, while the processus is still + // active. + for err == ERESTART { + r, err = wait4(Pid_t(pid), &status, options, rusage) + } + wpid = int(r) + if wstatus != nil { + *wstatus = WaitStatus(status) + } + return +} + +/* + * Wait + */ + +type WaitStatus uint32 + +func (w WaitStatus) Stopped() bool { return w&0x40 != 0 } +func (w WaitStatus) StopSignal() Signal { + if !w.Stopped() { + return -1 + } + return Signal(w>>8) & 0xFF +} + +func (w WaitStatus) Exited() bool { return w&0xFF == 0 } +func (w WaitStatus) ExitStatus() int { + if !w.Exited() { + return -1 + } + return int((w >> 8) & 0xFF) +} + +func (w WaitStatus) Signaled() bool { return w&0x40 == 0 && w&0xFF != 0 } +func (w WaitStatus) Signal() Signal { + if !w.Signaled() { + return -1 + } + return Signal(w>>16) & 0xFF +} + +func (w WaitStatus) Continued() bool { return w&0x01000000 != 0 } + +func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 } + +func (w WaitStatus) TrapCause() int { return -1 } + +//sys ioctl(fd int, req uint, arg uintptr) (err error) + +// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX +// There is no way to create a custom fcntl and to keep //sys fcntl easily, +// Therefore, the programmer must call dup2 instead of fcntl in this case. + +// FcntlInt performs a fcntl syscall on fd with the provided command and argument. +//sys FcntlInt(fd uintptr, cmd int, arg int) (r int,err error) = fcntl + +// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. +//sys FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) = fcntl + +//sys fcntl(fd int, cmd int, arg int) (val int, err error) + +//sys fsyncRange(fd int, how int, start int64, length int64) (err error) = fsync_range + +func Fsync(fd int) error { + return fsyncRange(fd, O_SYNC, 0, 0) +} + +/* + * Direct access + */ + +//sys Acct(path string) (err error) +//sys Chdir(path string) (err error) +//sys Chroot(path string) (err error) +//sys Close(fd int) (err error) +//sys Dup(oldfd int) (fd int, err error) +//sys Exit(code int) +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Fdatasync(fd int) (err error) +// readdir_r +//sysnb Getpgid(pid int) (pgid int, err error) + +//sys Getpgrp() (pid int) + +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Kill(pid int, sig Signal) (err error) +//sys Klogctl(typ int, buf []byte) (n int, err error) = syslog +//sys Mkdir(dirfd int, path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mknod(path string, mode uint32, dev int) (err error) +//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) = open64 +//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Setdomainname(p []byte) (err error) +//sys Sethostname(p []byte) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tv *Timeval) (err error) + +//sys Setuid(uid int) (err error) +//sys Setgid(uid int) (err error) + +//sys Setpriority(which int, who int, prio int) (err error) +//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) +//sys Sync() +//sysnb Times(tms *Tms) (ticks uintptr, err error) +//sysnb Umask(mask int) (oldmask int) +//sysnb Uname(buf *Utsname) (err error) +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys readlen(fd int, p *byte, np int) (n int, err error) = read +//sys writelen(fd int, p *byte, np int) (n int, err error) = write + +//sys Dup2(oldfd int, newfd int) (err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = posix_fadvise64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys fstat(fd int, stat *Stat_t) (err error) +//sys fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = fstatat +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getuid() (uid int) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) +//sys lstat(path string, stat *Stat_t) (err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = pread64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = pwrite64 +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) +//sys stat(path string, statptr *Stat_t) (err error) +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys Truncate(path string, length int64) (err error) + +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) + +// In order to use msghdr structure with Control, Controllen, nrecvmsg and nsendmsg must be used. +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = nrecvmsg +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = nsendmsg + +//sys munmap(addr uintptr, length uintptr) (err error) + +var mapper = &mmapper{ + active: make(map[*byte][]byte), + mmap: mmap, + munmap: munmap, +} + +func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + return mapper.Mmap(fd, offset, length, prot, flags) +} + +func Munmap(b []byte) (err error) { + return mapper.Munmap(b) +} + +//sys Madvise(b []byte, advice int) (err error) +//sys Mprotect(b []byte, prot int) (err error) +//sys Mlock(b []byte) (err error) +//sys Mlockall(flags int) (err error) +//sys Msync(b []byte, flags int) (err error) +//sys Munlock(b []byte) (err error) +//sys Munlockall() (err error) + +//sysnb pipe(p *[2]_C_int) (err error) + +func Pipe(p []int) (err error) { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err = pipe(&pp) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return +} + +//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) + +func Poll(fds []PollFd, timeout int) (n int, err error) { + if len(fds) == 0 { + return poll(nil, 0, timeout) + } + return poll(&fds[0], len(fds), timeout) +} + +//sys gettimeofday(tv *Timeval, tzp *Timezone) (err error) +//sysnb Time(t *Time_t) (tt Time_t, err error) +//sys Utime(path string, buf *Utimbuf) (err error) + +//sys Getsystemcfg(label int) (n uint64) + +//sys umount(target string) (err error) + +func Unmount(target string, flags int) (err error) { + if flags != 0 { + // AIX doesn't have any flags for umount. + return ENOSYS + } + return umount(target) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go new file mode 100644 index 0000000..e92a0be --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go @@ -0,0 +1,54 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix && ppc +// +build aix,ppc + +package unix + +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64 +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) = setrlimit64 +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek64 + +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: int32(sec), Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int32(sec), Usec: int32(usec)} +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func Fstat(fd int, stat *Stat_t) error { + return fstat(fd, stat) +} + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error { + return fstatat(dirfd, path, stat, flags) +} + +func Lstat(path string, stat *Stat_t) error { + return lstat(path, stat) +} + +func Stat(path string, statptr *Stat_t) error { + return stat(path, statptr) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go new file mode 100644 index 0000000..16eed17 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go @@ -0,0 +1,85 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix && ppc64 +// +build aix,ppc64 + +package unix + +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek + +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) = mmap64 + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int64(sec), Usec: int32(usec)} +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// In order to only have Timespec structure, type of Stat_t's fields +// Atim, Mtim and Ctim is changed from StTimespec to Timespec during +// ztypes generation. +// On ppc64, Timespec.Nsec is an int64 while StTimespec.Nsec is an +// int32, so the fields' value must be modified. +func fixStatTimFields(stat *Stat_t) { + stat.Atim.Nsec >>= 32 + stat.Mtim.Nsec >>= 32 + stat.Ctim.Nsec >>= 32 +} + +func Fstat(fd int, stat *Stat_t) error { + err := fstat(fd, stat) + if err != nil { + return err + } + fixStatTimFields(stat) + return nil +} + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) error { + err := fstatat(dirfd, path, stat, flags) + if err != nil { + return err + } + fixStatTimFields(stat) + return nil +} + +func Lstat(path string, stat *Stat_t) error { + err := lstat(path, stat) + if err != nil { + return err + } + fixStatTimFields(stat) + return nil +} + +func Stat(path string, statptr *Stat_t) error { + err := stat(path, statptr) + if err != nil { + return err + } + fixStatTimFields(statptr) + return nil +} diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go new file mode 100644 index 0000000..eda4267 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go @@ -0,0 +1,625 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build darwin || dragonfly || freebsd || netbsd || openbsd +// +build darwin dragonfly freebsd netbsd openbsd + +// BSD system call wrappers shared by *BSD based systems +// including OS X (Darwin) and FreeBSD. Like the other +// syscall_*.go files it is compiled as Go code but also +// used as input to mksyscall which parses the //sys +// lines and generates system call stubs. + +package unix + +import ( + "runtime" + "syscall" + "unsafe" +) + +const ImplementsGetwd = true + +func Getwd() (string, error) { + var buf [PathMax]byte + _, err := Getcwd(buf[0:]) + if err != nil { + return "", err + } + n := clen(buf[:]) + if n < 1 { + return "", EINVAL + } + return string(buf[:n]), nil +} + +/* + * Wrapped + */ + +//sysnb getgroups(ngid int, gid *_Gid_t) (n int, err error) +//sysnb setgroups(ngid int, gid *_Gid_t) (err error) + +func Getgroups() (gids []int, err error) { + n, err := getgroups(0, nil) + if err != nil { + return nil, err + } + if n == 0 { + return nil, nil + } + + // Sanity check group count. Max is 16 on BSD. + if n < 0 || n > 1000 { + return nil, EINVAL + } + + a := make([]_Gid_t, n) + n, err = getgroups(n, &a[0]) + if err != nil { + return nil, err + } + gids = make([]int, n) + for i, v := range a[0:n] { + gids[i] = int(v) + } + return +} + +func Setgroups(gids []int) (err error) { + if len(gids) == 0 { + return setgroups(0, nil) + } + + a := make([]_Gid_t, len(gids)) + for i, v := range gids { + a[i] = _Gid_t(v) + } + return setgroups(len(a), &a[0]) +} + +// Wait status is 7 bits at bottom, either 0 (exited), +// 0x7F (stopped), or a signal number that caused an exit. +// The 0x80 bit is whether there was a core dump. +// An extra number (exit code, signal causing a stop) +// is in the high bits. + +type WaitStatus uint32 + +const ( + mask = 0x7F + core = 0x80 + shift = 8 + + exited = 0 + killed = 9 + stopped = 0x7F +) + +func (w WaitStatus) Exited() bool { return w&mask == exited } + +func (w WaitStatus) ExitStatus() int { + if w&mask != exited { + return -1 + } + return int(w >> shift) +} + +func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 } + +func (w WaitStatus) Signal() syscall.Signal { + sig := syscall.Signal(w & mask) + if sig == stopped || sig == 0 { + return -1 + } + return sig +} + +func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } + +func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP } + +func (w WaitStatus) Killed() bool { return w&mask == killed && syscall.Signal(w>>shift) != SIGKILL } + +func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP } + +func (w WaitStatus) StopSignal() syscall.Signal { + if !w.Stopped() { + return -1 + } + return syscall.Signal(w>>shift) & 0xFF +} + +func (w WaitStatus) TrapCause() int { return -1 } + +//sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) + +func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { + var status _C_int + wpid, err = wait4(pid, &status, options, rusage) + if wstatus != nil { + *wstatus = WaitStatus(status) + } + return +} + +//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys Shutdown(s int, how int) (err error) + +func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Len = SizeofSockaddrInet4 + sa.raw.Family = AF_INET + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil +} + +func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Len = SizeofSockaddrInet6 + sa.raw.Family = AF_INET6 + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Scope_id = sa.ZoneId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil +} + +func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { + name := sa.Name + n := len(name) + if n >= len(sa.raw.Path) || n == 0 { + return nil, 0, EINVAL + } + sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL + sa.raw.Family = AF_UNIX + for i := 0; i < n; i++ { + sa.raw.Path[i] = int8(name[i]) + } + return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil +} + +func (sa *SockaddrDatalink) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Index == 0 { + return nil, 0, EINVAL + } + sa.raw.Len = sa.Len + sa.raw.Family = AF_LINK + sa.raw.Index = sa.Index + sa.raw.Type = sa.Type + sa.raw.Nlen = sa.Nlen + sa.raw.Alen = sa.Alen + sa.raw.Slen = sa.Slen + sa.raw.Data = sa.Data + return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil +} + +func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + switch rsa.Addr.Family { + case AF_LINK: + pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa)) + sa := new(SockaddrDatalink) + sa.Len = pp.Len + sa.Family = pp.Family + sa.Index = pp.Index + sa.Type = pp.Type + sa.Nlen = pp.Nlen + sa.Alen = pp.Alen + sa.Slen = pp.Slen + sa.Data = pp.Data + return sa, nil + + case AF_UNIX: + pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) + if pp.Len < 2 || pp.Len > SizeofSockaddrUnix { + return nil, EINVAL + } + sa := new(SockaddrUnix) + + // Some BSDs include the trailing NUL in the length, whereas + // others do not. Work around this by subtracting the leading + // family and len. The path is then scanned to see if a NUL + // terminator still exists within the length. + n := int(pp.Len) - 2 // subtract leading Family, Len + for i := 0; i < n; i++ { + if pp.Path[i] == 0 { + // found early NUL; assume Len included the NUL + // or was overestimating. + n = i + break + } + } + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + sa.Name = string(bytes) + return sa, nil + + case AF_INET: + pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.Addr = pp.Addr + return sa, nil + + case AF_INET6: + pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + } + return anyToSockaddrGOOS(fd, rsa) +} + +func Accept(fd int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept(fd, &rsa, &len) + if err != nil { + return + } + if (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && len == 0 { + // Accepted socket has no address. + // This is likely due to a bug in xnu kernels, + // where instead of ECONNABORTED error socket + // is accepted, but has no address. + Close(nfd) + return 0, nil, ECONNABORTED + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +func Getsockname(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getsockname(fd, &rsa, &len); err != nil { + return + } + // TODO(jsing): DragonFly has a "bug" (see issue 3349), which should be + // reported upstream. + if runtime.GOOS == "dragonfly" && rsa.Addr.Family == AF_UNSPEC && rsa.Addr.Len == 0 { + rsa.Addr.Family = AF_UNIX + rsa.Addr.Len = SizeofSockaddrUnix + } + return anyToSockaddr(fd, &rsa) +} + +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) + +// GetsockoptString returns the string value of the socket option opt for the +// socket associated with fd at the given socket level. +func GetsockoptString(fd, level, opt int) (string, error) { + buf := make([]byte, 256) + vallen := _Socklen(len(buf)) + err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) + if err != nil { + return "", err + } + return string(buf[:vallen-1]), nil +} + +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) + +func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(rsa)) + msg.Namelen = uint32(SizeofSockaddrAny) + var dummy byte + if len(oob) > 0 { + // receive at least one normal byte + if emptyIovecs(iov) { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + msg.Control = (*byte)(unsafe.Pointer(&oob[0])) + msg.SetControllen(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = recvmsg(fd, &msg, flags); err != nil { + return + } + oobn = int(msg.Controllen) + recvflags = int(msg.Flags) + return +} + +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) + +func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(ptr)) + msg.Namelen = uint32(salen) + var dummy byte + var empty bool + if len(oob) > 0 { + // send at least one normal byte + empty = emptyIovecs(iov) + if empty { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + msg.Control = (*byte)(unsafe.Pointer(&oob[0])) + msg.SetControllen(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = sendmsg(fd, &msg, flags); err != nil { + return 0, err + } + if len(oob) > 0 && empty { + n = 0 + } + return n, nil +} + +//sys kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) + +func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error) { + var change, event unsafe.Pointer + if len(changes) > 0 { + change = unsafe.Pointer(&changes[0]) + } + if len(events) > 0 { + event = unsafe.Pointer(&events[0]) + } + return kevent(kq, change, len(changes), event, len(events), timeout) +} + +// sysctlmib translates name to mib number and appends any additional args. +func sysctlmib(name string, args ...int) ([]_C_int, error) { + // Translate name to mib number. + mib, err := nametomib(name) + if err != nil { + return nil, err + } + + for _, a := range args { + mib = append(mib, _C_int(a)) + } + + return mib, nil +} + +func Sysctl(name string) (string, error) { + return SysctlArgs(name) +} + +func SysctlArgs(name string, args ...int) (string, error) { + buf, err := SysctlRaw(name, args...) + if err != nil { + return "", err + } + n := len(buf) + + // Throw away terminating NUL. + if n > 0 && buf[n-1] == '\x00' { + n-- + } + return string(buf[0:n]), nil +} + +func SysctlUint32(name string) (uint32, error) { + return SysctlUint32Args(name) +} + +func SysctlUint32Args(name string, args ...int) (uint32, error) { + mib, err := sysctlmib(name, args...) + if err != nil { + return 0, err + } + + n := uintptr(4) + buf := make([]byte, 4) + if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil { + return 0, err + } + if n != 4 { + return 0, EIO + } + return *(*uint32)(unsafe.Pointer(&buf[0])), nil +} + +func SysctlUint64(name string, args ...int) (uint64, error) { + mib, err := sysctlmib(name, args...) + if err != nil { + return 0, err + } + + n := uintptr(8) + buf := make([]byte, 8) + if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil { + return 0, err + } + if n != 8 { + return 0, EIO + } + return *(*uint64)(unsafe.Pointer(&buf[0])), nil +} + +func SysctlRaw(name string, args ...int) ([]byte, error) { + mib, err := sysctlmib(name, args...) + if err != nil { + return nil, err + } + + // Find size. + n := uintptr(0) + if err := sysctl(mib, nil, &n, nil, 0); err != nil { + return nil, err + } + if n == 0 { + return nil, nil + } + + // Read into buffer of that size. + buf := make([]byte, n) + if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil { + return nil, err + } + + // The actual call may return less than the original reported required + // size so ensure we deal with that. + return buf[:n], nil +} + +func SysctlClockinfo(name string) (*Clockinfo, error) { + mib, err := sysctlmib(name) + if err != nil { + return nil, err + } + + n := uintptr(SizeofClockinfo) + var ci Clockinfo + if err := sysctl(mib, (*byte)(unsafe.Pointer(&ci)), &n, nil, 0); err != nil { + return nil, err + } + if n != SizeofClockinfo { + return nil, EIO + } + return &ci, nil +} + +func SysctlTimeval(name string) (*Timeval, error) { + mib, err := sysctlmib(name) + if err != nil { + return nil, err + } + + var tv Timeval + n := uintptr(unsafe.Sizeof(tv)) + if err := sysctl(mib, (*byte)(unsafe.Pointer(&tv)), &n, nil, 0); err != nil { + return nil, err + } + if n != unsafe.Sizeof(tv) { + return nil, EIO + } + return &tv, nil +} + +//sys utimes(path string, timeval *[2]Timeval) (err error) + +func Utimes(path string, tv []Timeval) error { + if tv == nil { + return utimes(path, nil) + } + if len(tv) != 2 { + return EINVAL + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +func UtimesNano(path string, ts []Timespec) error { + if ts == nil { + err := utimensat(AT_FDCWD, path, nil, 0) + if err != ENOSYS { + return err + } + return utimes(path, nil) + } + if len(ts) != 2 { + return EINVAL + } + err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) + if err != ENOSYS { + return err + } + // Not as efficient as it could be because Timespec and + // Timeval have different types in the different OSes + tv := [2]Timeval{ + NsecToTimeval(TimespecToNsec(ts[0])), + NsecToTimeval(TimespecToNsec(ts[1])), + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { + if ts == nil { + return utimensat(dirfd, path, nil, flags) + } + if len(ts) != 2 { + return EINVAL + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) +} + +//sys futimes(fd int, timeval *[2]Timeval) (err error) + +func Futimes(fd int, tv []Timeval) error { + if tv == nil { + return futimes(fd, nil) + } + if len(tv) != 2 { + return EINVAL + } + return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) + +func Poll(fds []PollFd, timeout int) (n int, err error) { + if len(fds) == 0 { + return poll(nil, 0, timeout) + } + return poll(&fds[0], len(fds), timeout) +} + +// TODO: wrap +// Acct(name nil-string) (err error) +// Gethostuuid(uuid *byte, timeout *Timespec) (err error) +// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error) + +var mapper = &mmapper{ + active: make(map[*byte][]byte), + mmap: mmap, + munmap: munmap, +} + +func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + return mapper.Mmap(fd, offset, length, prot, flags) +} + +func Munmap(b []byte) (err error) { + return mapper.Munmap(b) +} + +//sys Madvise(b []byte, behav int) (err error) +//sys Mlock(b []byte) (err error) +//sys Mlockall(flags int) (err error) +//sys Mprotect(b []byte, prot int) (err error) +//sys Msync(b []byte, flags int) (err error) +//sys Munlock(b []byte) (err error) +//sys Munlockall() (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go new file mode 100644 index 0000000..192b071 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -0,0 +1,831 @@ +// Copyright 2009,2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Darwin system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and wrap +// it in our own nicer implementation, either here or in +// syscall_bsd.go or syscall_unix.go. + +package unix + +import ( + "fmt" + "runtime" + "syscall" + "unsafe" +) + +//sys closedir(dir uintptr) (err error) +//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) + +func fdopendir(fd int) (dir uintptr, err error) { + r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0) + dir = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fdopendir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib" + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + // Simulate Getdirentries using fdopendir/readdir_r/closedir. + // We store the number of entries to skip in the seek + // offset of fd. See issue #31368. + // It's not the full required semantics, but should handle the case + // of calling Getdirentries or ReadDirent repeatedly. + // It won't handle assigning the results of lseek to *basep, or handle + // the directory being edited underfoot. + skip, err := Seek(fd, 0, 1 /* SEEK_CUR */) + if err != nil { + return 0, err + } + + // We need to duplicate the incoming file descriptor + // because the caller expects to retain control of it, but + // fdopendir expects to take control of its argument. + // Just Dup'ing the file descriptor is not enough, as the + // result shares underlying state. Use Openat to make a really + // new file descriptor referring to the same directory. + fd2, err := Openat(fd, ".", O_RDONLY, 0) + if err != nil { + return 0, err + } + d, err := fdopendir(fd2) + if err != nil { + Close(fd2) + return 0, err + } + defer closedir(d) + + var cnt int64 + for { + var entry Dirent + var entryp *Dirent + e := readdir_r(d, &entry, &entryp) + if e != 0 { + return n, errnoErr(e) + } + if entryp == nil { + break + } + if skip > 0 { + skip-- + cnt++ + continue + } + + reclen := int(entry.Reclen) + if reclen > len(buf) { + // Not enough room. Return for now. + // The counter will let us know where we should start up again. + // Note: this strategy for suspending in the middle and + // restarting is O(n^2) in the length of the directory. Oh well. + break + } + + // Copy entry into return buffer. + s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen) + copy(buf, s) + + buf = buf[reclen:] + n += reclen + cnt++ + } + // Set the seek offset of the input fd to record + // how many files we've already returned. + _, err = Seek(fd, cnt, 0 /* SEEK_SET */) + if err != nil { + return n, err + } + + return n, nil +} + +// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. +type SockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 + raw RawSockaddrDatalink +} + +// SockaddrCtl implements the Sockaddr interface for AF_SYSTEM type sockets. +type SockaddrCtl struct { + ID uint32 + Unit uint32 + raw RawSockaddrCtl +} + +func (sa *SockaddrCtl) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Sc_len = SizeofSockaddrCtl + sa.raw.Sc_family = AF_SYSTEM + sa.raw.Ss_sysaddr = AF_SYS_CONTROL + sa.raw.Sc_id = sa.ID + sa.raw.Sc_unit = sa.Unit + return unsafe.Pointer(&sa.raw), SizeofSockaddrCtl, nil +} + +// SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets. +// SockaddrVM provides access to Darwin VM sockets: a mechanism that enables +// bidirectional communication between a hypervisor and its guest virtual +// machines. +type SockaddrVM struct { + // CID and Port specify a context ID and port address for a VM socket. + // Guests have a unique CID, and hosts may have a well-known CID of: + // - VMADDR_CID_HYPERVISOR: refers to the hypervisor process. + // - VMADDR_CID_LOCAL: refers to local communication (loopback). + // - VMADDR_CID_HOST: refers to other processes on the host. + CID uint32 + Port uint32 + raw RawSockaddrVM +} + +func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Len = SizeofSockaddrVM + sa.raw.Family = AF_VSOCK + sa.raw.Port = sa.Port + sa.raw.Cid = sa.CID + + return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil +} + +func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + switch rsa.Addr.Family { + case AF_SYSTEM: + pp := (*RawSockaddrCtl)(unsafe.Pointer(rsa)) + if pp.Ss_sysaddr == AF_SYS_CONTROL { + sa := new(SockaddrCtl) + sa.ID = pp.Sc_id + sa.Unit = pp.Sc_unit + return sa, nil + } + case AF_VSOCK: + pp := (*RawSockaddrVM)(unsafe.Pointer(rsa)) + sa := &SockaddrVM{ + CID: pp.Cid, + Port: pp.Port, + } + return sa, nil + } + return nil, EAFNOSUPPORT +} + +// Some external packages rely on SYS___SYSCTL being defined to implement their +// own sysctl wrappers. Provide it here, even though direct syscalls are no +// longer supported on darwin. +const SYS___SYSCTL = SYS_SYSCTL + +// Translate "kern.hostname" to []_C_int{0,1,2,3}. +func nametomib(name string) (mib []_C_int, err error) { + const siz = unsafe.Sizeof(mib[0]) + + // NOTE(rsc): It seems strange to set the buffer to have + // size CTL_MAXNAME+2 but use only CTL_MAXNAME + // as the size. I don't know why the +2 is here, but the + // kernel uses +2 for its own implementation of this function. + // I am scared that if we don't include the +2 here, the kernel + // will silently write 2 words farther than we specify + // and we'll get memory corruption. + var buf [CTL_MAXNAME + 2]_C_int + n := uintptr(CTL_MAXNAME) * siz + + p := (*byte)(unsafe.Pointer(&buf[0])) + bytes, err := ByteSliceFromString(name) + if err != nil { + return nil, err + } + + // Magic sysctl: "setting" 0.3 to a string name + // lets you read back the array of integers form. + if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil { + return nil, err + } + return buf[0 : n/siz], nil +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + +func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } +func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } +func PtraceDenyAttach() (err error) { return ptrace(PT_DENY_ATTACH, 0, 0, 0) } + +//sysnb pipe(p *[2]int32) (err error) + +func Pipe(p []int) (err error) { + if len(p) != 2 { + return EINVAL + } + var x [2]int32 + err = pipe(&x) + if err == nil { + p[0] = int(x[0]) + p[1] = int(x[1]) + } + return +} + +func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { + var _p0 unsafe.Pointer + var bufsize uintptr + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) + } + return getfsstat(_p0, bufsize, flags) +} + +func xattrPointer(dest []byte) *byte { + // It's only when dest is set to NULL that the OS X implementations of + // getxattr() and listxattr() return the current sizes of the named attributes. + // An empty byte array is not sufficient. To maintain the same behaviour as the + // linux implementation, we wrap around the system calls and pass in NULL when + // dest is empty. + var destp *byte + if len(dest) > 0 { + destp = &dest[0] + } + return destp +} + +//sys getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) + +func Getxattr(path string, attr string, dest []byte) (sz int, err error) { + return getxattr(path, attr, xattrPointer(dest), len(dest), 0, 0) +} + +func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) { + return getxattr(link, attr, xattrPointer(dest), len(dest), 0, XATTR_NOFOLLOW) +} + +//sys fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) + +func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { + return fgetxattr(fd, attr, xattrPointer(dest), len(dest), 0, 0) +} + +//sys setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) + +func Setxattr(path string, attr string, data []byte, flags int) (err error) { + // The parameters for the OS X implementation vary slightly compared to the + // linux system call, specifically the position parameter: + // + // linux: + // int setxattr( + // const char *path, + // const char *name, + // const void *value, + // size_t size, + // int flags + // ); + // + // darwin: + // int setxattr( + // const char *path, + // const char *name, + // void *value, + // size_t size, + // u_int32_t position, + // int options + // ); + // + // position specifies the offset within the extended attribute. In the + // current implementation, only the resource fork extended attribute makes + // use of this argument. For all others, position is reserved. We simply + // default to setting it to zero. + return setxattr(path, attr, xattrPointer(data), len(data), 0, flags) +} + +func Lsetxattr(link string, attr string, data []byte, flags int) (err error) { + return setxattr(link, attr, xattrPointer(data), len(data), 0, flags|XATTR_NOFOLLOW) +} + +//sys fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) + +func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) { + return fsetxattr(fd, attr, xattrPointer(data), len(data), 0, 0) +} + +//sys removexattr(path string, attr string, options int) (err error) + +func Removexattr(path string, attr string) (err error) { + // We wrap around and explicitly zero out the options provided to the OS X + // implementation of removexattr, we do so for interoperability with the + // linux variant. + return removexattr(path, attr, 0) +} + +func Lremovexattr(link string, attr string) (err error) { + return removexattr(link, attr, XATTR_NOFOLLOW) +} + +//sys fremovexattr(fd int, attr string, options int) (err error) + +func Fremovexattr(fd int, attr string) (err error) { + return fremovexattr(fd, attr, 0) +} + +//sys listxattr(path string, dest *byte, size int, options int) (sz int, err error) + +func Listxattr(path string, dest []byte) (sz int, err error) { + return listxattr(path, xattrPointer(dest), len(dest), 0) +} + +func Llistxattr(link string, dest []byte) (sz int, err error) { + return listxattr(link, xattrPointer(dest), len(dest), XATTR_NOFOLLOW) +} + +//sys flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) + +func Flistxattr(fd int, dest []byte) (sz int, err error) { + return flistxattr(fd, xattrPointer(dest), len(dest), 0) +} + +//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) + +/* + * Wrapped + */ + +//sys fcntl(fd int, cmd int, arg int) (val int, err error) + +//sys kill(pid int, signum int, posix int) (err error) + +func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) } + +//sys ioctl(fd int, req uint, arg uintptr) (err error) + +func IoctlCtlInfo(fd int, ctlInfo *CtlInfo) error { + err := ioctl(fd, CTLIOCGINFO, uintptr(unsafe.Pointer(ctlInfo))) + runtime.KeepAlive(ctlInfo) + return err +} + +// IfreqMTU is struct ifreq used to get or set a network device's MTU. +type IfreqMTU struct { + Name [IFNAMSIZ]byte + MTU int32 +} + +// IoctlGetIfreqMTU performs the SIOCGIFMTU ioctl operation on fd to get the MTU +// of the network device specified by ifname. +func IoctlGetIfreqMTU(fd int, ifname string) (*IfreqMTU, error) { + var ifreq IfreqMTU + copy(ifreq.Name[:], ifname) + err := ioctl(fd, SIOCGIFMTU, uintptr(unsafe.Pointer(&ifreq))) + return &ifreq, err +} + +// IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU +// of the network device specified by ifreq.Name. +func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error { + err := ioctl(fd, SIOCSIFMTU, uintptr(unsafe.Pointer(ifreq))) + runtime.KeepAlive(ifreq) + return err +} + +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL + +func Uname(uname *Utsname) error { + mib := []_C_int{CTL_KERN, KERN_OSTYPE} + n := unsafe.Sizeof(uname.Sysname) + if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_HOSTNAME} + n = unsafe.Sizeof(uname.Nodename) + if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_OSRELEASE} + n = unsafe.Sizeof(uname.Release) + if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_VERSION} + n = unsafe.Sizeof(uname.Version) + if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { + return err + } + + // The version might have newlines or tabs in it, convert them to + // spaces. + for i, b := range uname.Version { + if b == '\n' || b == '\t' { + if i == len(uname.Version)-1 { + uname.Version[i] = 0 + } else { + uname.Version[i] = ' ' + } + } + } + + mib = []_C_int{CTL_HW, HW_MACHINE} + n = unsafe.Sizeof(uname.Machine) + if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { + return err + } + + return nil +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + var length = int64(count) + err = sendfile(infd, outfd, *offset, &length, nil, 0) + written = int(length) + return +} + +func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { + var value IPMreqn + vallen := _Socklen(SizeofIPMreqn) + errno := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, errno +} + +func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) +} + +// GetsockoptXucred is a getsockopt wrapper that returns an Xucred struct. +// The usual level and opt are SOL_LOCAL and LOCAL_PEERCRED, respectively. +func GetsockoptXucred(fd, level, opt int) (*Xucred, error) { + x := new(Xucred) + vallen := _Socklen(SizeofXucred) + err := getsockopt(fd, level, opt, unsafe.Pointer(x), &vallen) + return x, err +} + +func GetsockoptTCPConnectionInfo(fd, level, opt int) (*TCPConnectionInfo, error) { + var value TCPConnectionInfo + vallen := _Socklen(SizeofTCPConnectionInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func SysctlKinfoProc(name string, args ...int) (*KinfoProc, error) { + mib, err := sysctlmib(name, args...) + if err != nil { + return nil, err + } + + var kinfo KinfoProc + n := uintptr(SizeofKinfoProc) + if err := sysctl(mib, (*byte)(unsafe.Pointer(&kinfo)), &n, nil, 0); err != nil { + return nil, err + } + if n != SizeofKinfoProc { + return nil, EIO + } + return &kinfo, nil +} + +func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) { + mib, err := sysctlmib(name, args...) + if err != nil { + return nil, err + } + + // Find size. + n := uintptr(0) + if err := sysctl(mib, nil, &n, nil, 0); err != nil { + return nil, err + } + if n == 0 { + return nil, nil + } + if n%SizeofKinfoProc != 0 { + return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc) + } + + // Read into buffer of that size. + buf := make([]KinfoProc, n/SizeofKinfoProc) + if err := sysctl(mib, (*byte)(unsafe.Pointer(&buf[0])), &n, nil, 0); err != nil { + return nil, err + } + if n%SizeofKinfoProc != 0 { + return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc) + } + + // The actual call may return less than the original reported required + // size so ensure we deal with that. + return buf[:n/SizeofKinfoProc], nil +} + +//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) + +//sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) +//sys shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) +//sys shmdt(addr uintptr) (err error) +//sys shmget(key int, size int, flag int) (id int, err error) + +/* + * Exposed directly + */ +//sys Access(path string, mode uint32) (err error) +//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) +//sys Chdir(path string) (err error) +//sys Chflags(path string, flags int) (err error) +//sys Chmod(path string, mode uint32) (err error) +//sys Chown(path string, uid int, gid int) (err error) +//sys Chroot(path string) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys Close(fd int) (err error) +//sys Clonefile(src string, dst string, flags int) (err error) +//sys Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int) (err error) +//sys Dup(fd int) (nfd int, err error) +//sys Dup2(from int, to int) (err error) +//sys Exchangedata(path1 string, path2 string, options int) (err error) +//sys Exit(code int) +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchflags(fd int, flags int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error) +//sys Flock(fd int, how int) (err error) +//sys Fpathconf(fd int, name int) (val int, err error) +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sys Getcwd(buf []byte) (n int, err error) +//sys Getdtablesize() (size int) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (uid int) +//sysnb Getgid() (gid int) +//sysnb Getpgid(pid int) (pgid int, err error) +//sysnb Getpgrp() (pgrp int) +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrlimit(which int, lim *Rlimit) (err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tp *Timeval) (err error) +//sysnb Getuid() (uid int) +//sysnb Issetugid() (tainted bool) +//sys Kqueue() (fd int, err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Link(path string, link string) (err error) +//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) +//sys Listen(s int, backlog int) (err error) +//sys Mkdir(path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mknod(path string, mode uint32, dev int) (err error) +//sys Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) +//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) +//sys Pathconf(path string, name int) (val int, err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) +//sys Rename(from string, to string) (err error) +//sys Renameat(fromfd int, from string, tofd int, to string) (err error) +//sys Revoke(path string) (err error) +//sys Rmdir(path string) (err error) +//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sys Setegid(egid int) (err error) +//sysnb Seteuid(euid int) (err error) +//sysnb Setgid(gid int) (err error) +//sys Setlogin(name string) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sys Setpriority(which int, who int, prio int) (err error) +//sys Setprivexec(flag int) (err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sysnb Setrlimit(which int, lim *Rlimit) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tp *Timeval) (err error) +//sysnb Setuid(uid int) (err error) +//sys Symlink(path string, link string) (err error) +//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) +//sys Sync() (err error) +//sys Truncate(path string, length int64) (err error) +//sys Umask(newmask int) (oldmask int) +//sys Undelete(path string) (err error) +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Unmount(path string, flags int) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) +//sys munmap(addr uintptr, length uintptr) (err error) +//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ +//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE + +/* + * Unimplemented + */ +// Profil +// Sigaction +// Sigprocmask +// Getlogin +// Sigpending +// Sigaltstack +// Ioctl +// Reboot +// Execve +// Vfork +// Sbrk +// Sstk +// Ovadvise +// Mincore +// Setitimer +// Swapon +// Select +// Sigsuspend +// Readv +// Writev +// Nfssvc +// Getfh +// Quotactl +// Csops +// Waitid +// Add_profil +// Kdebug_trace +// Sigreturn +// Atsocket +// Kqueue_from_portset_np +// Kqueue_portset +// Getattrlist +// Setattrlist +// Getdirentriesattr +// Searchfs +// Delete +// Copyfile +// Watchevent +// Waitevent +// Modwatch +// Fsctl +// Initgroups +// Posix_spawn +// Nfsclnt +// Fhopen +// Minherit +// Semsys +// Msgsys +// Shmsys +// Semctl +// Semget +// Semop +// Msgctl +// Msgget +// Msgsnd +// Msgrcv +// Shm_open +// Shm_unlink +// Sem_open +// Sem_close +// Sem_unlink +// Sem_wait +// Sem_trywait +// Sem_post +// Sem_getvalue +// Sem_init +// Sem_destroy +// Open_extended +// Umask_extended +// Stat_extended +// Lstat_extended +// Fstat_extended +// Chmod_extended +// Fchmod_extended +// Access_extended +// Settid +// Gettid +// Setsgroups +// Getsgroups +// Setwgroups +// Getwgroups +// Mkfifo_extended +// Mkdir_extended +// Identitysvc +// Shared_region_check_np +// Shared_region_map_np +// __pthread_mutex_destroy +// __pthread_mutex_init +// __pthread_mutex_lock +// __pthread_mutex_trylock +// __pthread_mutex_unlock +// __pthread_cond_init +// __pthread_cond_destroy +// __pthread_cond_broadcast +// __pthread_cond_signal +// Setsid_with_pid +// __pthread_cond_timedwait +// Aio_fsync +// Aio_return +// Aio_suspend +// Aio_cancel +// Aio_error +// Aio_read +// Aio_write +// Lio_listio +// __pthread_cond_wait +// Iopolicysys +// __pthread_kill +// __pthread_sigmask +// __sigwait +// __disable_threadsignal +// __pthread_markcancel +// __pthread_canceled +// __semwait_signal +// Proc_info +// sendfile +// Stat64_extended +// Lstat64_extended +// Fstat64_extended +// __pthread_chdir +// __pthread_fchdir +// Audit +// Auditon +// Getauid +// Setauid +// Getaudit +// Setaudit +// Getaudit_addr +// Setaudit_addr +// Auditctl +// Bsdthread_create +// Bsdthread_terminate +// Stack_snapshot +// Bsdthread_register +// Workq_open +// Workq_ops +// __mac_execve +// __mac_syscall +// __mac_get_file +// __mac_set_file +// __mac_get_link +// __mac_set_link +// __mac_get_proc +// __mac_set_proc +// __mac_get_fd +// __mac_set_fd +// __mac_get_pid +// __mac_get_lcid +// __mac_get_lctx +// __mac_set_lctx +// Setlcid +// Read_nocancel +// Write_nocancel +// Open_nocancel +// Close_nocancel +// Wait4_nocancel +// Recvmsg_nocancel +// Sendmsg_nocancel +// Recvfrom_nocancel +// Accept_nocancel +// Fcntl_nocancel +// Select_nocancel +// Fsync_nocancel +// Connect_nocancel +// Sigsuspend_nocancel +// Readv_nocancel +// Writev_nocancel +// Sendto_nocancel +// Pread_nocancel +// Pwrite_nocancel +// Waitid_nocancel +// Poll_nocancel +// Msgsnd_nocancel +// Msgrcv_nocancel +// Sem_wait_nocancel +// Aio_suspend_nocancel +// __sigwait_nocancel +// __semwait_signal_nocancel +// __mac_mount +// __mac_get_mount +// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go new file mode 100644 index 0000000..b37310c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go @@ -0,0 +1,51 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && darwin +// +build amd64,darwin + +package unix + +import "syscall" + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 +//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64 +//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT64 +//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 +//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace +//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 +//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64 diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go new file mode 100644 index 0000000..d51ec99 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go @@ -0,0 +1,51 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm64 && darwin +// +build arm64,darwin + +package unix + +import "syscall" + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic + +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatfs(fd int, stat *Statfs_t) (err error) +//sys getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT +//sys Lstat(path string, stat *Stat_t) (err error) +//sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statfs(path string, stat *Statfs_t) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go b/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go new file mode 100644 index 0000000..53c9664 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go @@ -0,0 +1,27 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build darwin && go1.12 +// +build darwin,go1.12 + +package unix + +import _ "unsafe" + +// Implemented in the runtime package (runtime/sys_darwin.go) +func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) // 32-bit only +func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) +func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscallPtr(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) + +//go:linkname syscall_syscall syscall.syscall +//go:linkname syscall_syscall6 syscall.syscall6 +//go:linkname syscall_syscall6X syscall.syscall6X +//go:linkname syscall_syscall9 syscall.syscall9 +//go:linkname syscall_rawSyscall syscall.rawSyscall +//go:linkname syscall_rawSyscall6 syscall.rawSyscall6 +//go:linkname syscall_syscallPtr syscall.syscallPtr diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go new file mode 100644 index 0000000..a41111a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go @@ -0,0 +1,545 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// DragonFly BSD system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and wrap +// it in our own nicer implementation, either here or in +// syscall_bsd.go or syscall_unix.go. + +package unix + +import ( + "sync" + "unsafe" +) + +// See version list in https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/sys/param.h +var ( + osreldateOnce sync.Once + osreldate uint32 +) + +// First __DragonFly_version after September 2019 ABI changes +// http://lists.dragonflybsd.org/pipermail/users/2019-September/358280.html +const _dragonflyABIChangeVersion = 500705 + +func supportsABI(ver uint32) bool { + osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") }) + return osreldate >= ver +} + +// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. +type SockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 + Rcf uint16 + Route [16]uint16 + raw RawSockaddrDatalink +} + +func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + return nil, EAFNOSUPPORT +} + +// Translate "kern.hostname" to []_C_int{0,1,2,3}. +func nametomib(name string) (mib []_C_int, err error) { + const siz = unsafe.Sizeof(mib[0]) + + // NOTE(rsc): It seems strange to set the buffer to have + // size CTL_MAXNAME+2 but use only CTL_MAXNAME + // as the size. I don't know why the +2 is here, but the + // kernel uses +2 for its own implementation of this function. + // I am scared that if we don't include the +2 here, the kernel + // will silently write 2 words farther than we specify + // and we'll get memory corruption. + var buf [CTL_MAXNAME + 2]_C_int + n := uintptr(CTL_MAXNAME) * siz + + p := (*byte)(unsafe.Pointer(&buf[0])) + bytes, err := ByteSliceFromString(name) + if err != nil { + return nil, err + } + + // Magic sysctl: "setting" 0.3 to a string name + // lets you read back the array of integers form. + if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil { + return nil, err + } + return buf[0 : n/siz], nil +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} + +func direntReclen(buf []byte) (uint64, bool) { + namlen, ok := direntNamlen(buf) + if !ok { + return 0, false + } + return (16 + namlen + 1 + 7) &^ 7, true +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + +//sysnb pipe() (r int, w int, err error) + +func Pipe(p []int) (err error) { + if len(p) != 2 { + return EINVAL + } + r, w, err := pipe() + if err == nil { + p[0], p[1] = r, w + } + return +} + +//sysnb pipe2(p *[2]_C_int, flags int) (r int, w int, err error) + +func Pipe2(p []int, flags int) (err error) { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + // pipe2 on dragonfly takes an fds array as an argument, but still + // returns the file descriptors. + r, w, err := pipe2(&pp, flags) + if err == nil { + p[0], p[1] = r, w + } + return err +} + +//sys extpread(fd int, p []byte, flags int, offset int64) (n int, err error) + +func pread(fd int, p []byte, offset int64) (n int, err error) { + return extpread(fd, p, 0, offset) +} + +//sys extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + return extpwrite(fd, p, 0, offset) +} + +func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept4(fd, &rsa, &len, flags) + if err != nil { + return + } + if len > SizeofSockaddrAny { + panic("RawSockaddrAny too small") + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD + +func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { + var _p0 unsafe.Pointer + var bufsize uintptr + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) + } + r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +//sys ioctl(fd int, req uint, arg uintptr) (err error) + +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + +func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error { + err := sysctl(mib, old, oldlen, nil, 0) + if err != nil { + // Utsname members on Dragonfly are only 32 bytes and + // the syscall returns ENOMEM in case the actual value + // is longer. + if err == ENOMEM { + err = nil + } + } + return err +} + +func Uname(uname *Utsname) error { + mib := []_C_int{CTL_KERN, KERN_OSTYPE} + n := unsafe.Sizeof(uname.Sysname) + if err := sysctlUname(mib, &uname.Sysname[0], &n); err != nil { + return err + } + uname.Sysname[unsafe.Sizeof(uname.Sysname)-1] = 0 + + mib = []_C_int{CTL_KERN, KERN_HOSTNAME} + n = unsafe.Sizeof(uname.Nodename) + if err := sysctlUname(mib, &uname.Nodename[0], &n); err != nil { + return err + } + uname.Nodename[unsafe.Sizeof(uname.Nodename)-1] = 0 + + mib = []_C_int{CTL_KERN, KERN_OSRELEASE} + n = unsafe.Sizeof(uname.Release) + if err := sysctlUname(mib, &uname.Release[0], &n); err != nil { + return err + } + uname.Release[unsafe.Sizeof(uname.Release)-1] = 0 + + mib = []_C_int{CTL_KERN, KERN_VERSION} + n = unsafe.Sizeof(uname.Version) + if err := sysctlUname(mib, &uname.Version[0], &n); err != nil { + return err + } + + // The version might have newlines or tabs in it, convert them to + // spaces. + for i, b := range uname.Version { + if b == '\n' || b == '\t' { + if i == len(uname.Version)-1 { + uname.Version[i] = 0 + } else { + uname.Version[i] = ' ' + } + } + } + + mib = []_C_int{CTL_HW, HW_MACHINE} + n = unsafe.Sizeof(uname.Machine) + if err := sysctlUname(mib, &uname.Machine[0], &n); err != nil { + return err + } + uname.Machine[unsafe.Sizeof(uname.Machine)-1] = 0 + + return nil +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +/* + * Exposed directly + */ +//sys Access(path string, mode uint32) (err error) +//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) +//sys Chdir(path string) (err error) +//sys Chflags(path string, flags int) (err error) +//sys Chmod(path string, mode uint32) (err error) +//sys Chown(path string, uid int, gid int) (err error) +//sys Chroot(path string) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys Close(fd int) (err error) +//sys Dup(fd int) (nfd int, err error) +//sys Dup2(from int, to int) (err error) +//sys Exit(code int) +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchflags(fd int, flags int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Flock(fd int, how int) (err error) +//sys Fpathconf(fd int, name int) (val int, err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatfs(fd int, stat *Statfs_t) (err error) +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sys Getdents(fd int, buf []byte) (n int, err error) +//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) +//sys Getdtablesize() (size int) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (uid int) +//sysnb Getgid() (gid int) +//sysnb Getpgid(pid int) (pgid int, err error) +//sysnb Getpgrp() (pgrp int) +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrlimit(which int, lim *Rlimit) (err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Getuid() (uid int) +//sys Issetugid() (tainted bool) +//sys Kill(pid int, signum syscall.Signal) (err error) +//sys Kqueue() (fd int, err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Link(path string, link string) (err error) +//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) +//sys Listen(s int, backlog int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Mkdir(path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mknod(path string, mode uint32, dev int) (err error) +//sys Mknodat(fd int, path string, mode uint32, dev int) (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) +//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) +//sys Pathconf(path string, name int) (val int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Rename(from string, to string) (err error) +//sys Renameat(fromfd int, from string, tofd int, to string) (err error) +//sys Revoke(path string) (err error) +//sys Rmdir(path string) (err error) +//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sysnb Setegid(egid int) (err error) +//sysnb Seteuid(euid int) (err error) +//sysnb Setgid(gid int) (err error) +//sys Setlogin(name string) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sys Setpriority(which int, who int, prio int) (err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sysnb Setresgid(rgid int, egid int, sgid int) (err error) +//sysnb Setresuid(ruid int, euid int, suid int) (err error) +//sysnb Setrlimit(which int, lim *Rlimit) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tp *Timeval) (err error) +//sysnb Setuid(uid int) (err error) +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statfs(path string, stat *Statfs_t) (err error) +//sys Symlink(path string, link string) (err error) +//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) +//sys Sync() (err error) +//sys Truncate(path string, length int64) (err error) +//sys Umask(newmask int) (oldmask int) +//sys Undelete(path string) (err error) +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Unmount(path string, flags int) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) +//sys munmap(addr uintptr, length uintptr) (err error) +//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ +//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE +//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) +//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) + +/* + * Unimplemented + * TODO(jsing): Update this list for DragonFly. + */ +// Profil +// Sigaction +// Sigprocmask +// Getlogin +// Sigpending +// Sigaltstack +// Reboot +// Execve +// Vfork +// Sbrk +// Sstk +// Ovadvise +// Mincore +// Setitimer +// Swapon +// Select +// Sigsuspend +// Readv +// Writev +// Nfssvc +// Getfh +// Quotactl +// Mount +// Csops +// Waitid +// Add_profil +// Kdebug_trace +// Sigreturn +// Atsocket +// Kqueue_from_portset_np +// Kqueue_portset +// Getattrlist +// Setattrlist +// Getdirentriesattr +// Searchfs +// Delete +// Copyfile +// Watchevent +// Waitevent +// Modwatch +// Getxattr +// Fgetxattr +// Setxattr +// Fsetxattr +// Removexattr +// Fremovexattr +// Listxattr +// Flistxattr +// Fsctl +// Initgroups +// Posix_spawn +// Nfsclnt +// Fhopen +// Minherit +// Semsys +// Msgsys +// Shmsys +// Semctl +// Semget +// Semop +// Msgctl +// Msgget +// Msgsnd +// Msgrcv +// Shmat +// Shmctl +// Shmdt +// Shmget +// Shm_open +// Shm_unlink +// Sem_open +// Sem_close +// Sem_unlink +// Sem_wait +// Sem_trywait +// Sem_post +// Sem_getvalue +// Sem_init +// Sem_destroy +// Open_extended +// Umask_extended +// Stat_extended +// Lstat_extended +// Fstat_extended +// Chmod_extended +// Fchmod_extended +// Access_extended +// Settid +// Gettid +// Setsgroups +// Getsgroups +// Setwgroups +// Getwgroups +// Mkfifo_extended +// Mkdir_extended +// Identitysvc +// Shared_region_check_np +// Shared_region_map_np +// __pthread_mutex_destroy +// __pthread_mutex_init +// __pthread_mutex_lock +// __pthread_mutex_trylock +// __pthread_mutex_unlock +// __pthread_cond_init +// __pthread_cond_destroy +// __pthread_cond_broadcast +// __pthread_cond_signal +// Setsid_with_pid +// __pthread_cond_timedwait +// Aio_fsync +// Aio_return +// Aio_suspend +// Aio_cancel +// Aio_error +// Aio_read +// Aio_write +// Lio_listio +// __pthread_cond_wait +// Iopolicysys +// __pthread_kill +// __pthread_sigmask +// __sigwait +// __disable_threadsignal +// __pthread_markcancel +// __pthread_canceled +// __semwait_signal +// Proc_info +// Stat64_extended +// Lstat64_extended +// Fstat64_extended +// __pthread_chdir +// __pthread_fchdir +// Audit +// Auditon +// Getauid +// Setauid +// Getaudit +// Setaudit +// Getaudit_addr +// Setaudit_addr +// Auditctl +// Bsdthread_create +// Bsdthread_terminate +// Stack_snapshot +// Bsdthread_register +// Workq_open +// Workq_ops +// __mac_execve +// __mac_syscall +// __mac_get_file +// __mac_set_file +// __mac_get_link +// __mac_set_link +// __mac_get_proc +// __mac_set_proc +// __mac_get_fd +// __mac_set_fd +// __mac_get_pid +// __mac_get_lcid +// __mac_get_lctx +// __mac_set_lctx +// Setlcid +// Read_nocancel +// Write_nocancel +// Open_nocancel +// Close_nocancel +// Wait4_nocancel +// Recvmsg_nocancel +// Sendmsg_nocancel +// Recvfrom_nocancel +// Accept_nocancel +// Fcntl_nocancel +// Select_nocancel +// Fsync_nocancel +// Connect_nocancel +// Sigsuspend_nocancel +// Readv_nocancel +// Writev_nocancel +// Sendto_nocancel +// Pread_nocancel +// Pwrite_nocancel +// Waitid_nocancel +// Msgsnd_nocancel +// Msgrcv_nocancel +// Sem_wait_nocancel +// Aio_suspend_nocancel +// __sigwait_nocancel +// __semwait_signal_nocancel +// __mac_mount +// __mac_get_mount +// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go new file mode 100644 index 0000000..4e2d321 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go @@ -0,0 +1,57 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && dragonfly +// +build amd64,dragonfly + +package unix + +import ( + "syscall" + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + var writtenOut uint64 = 0 + _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0) + + written = int(writtenOut) + + if e1 != 0 { + err = e1 + } + return +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go new file mode 100644 index 0000000..d50b9dc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go @@ -0,0 +1,615 @@ +// Copyright 2009,2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// FreeBSD system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and wrap +// it in our own nicer implementation, either here or in +// syscall_bsd.go or syscall_unix.go. + +package unix + +import ( + "sync" + "unsafe" +) + +// See https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/versions.html. +var ( + osreldateOnce sync.Once + osreldate uint32 +) + +func supportsABI(ver uint32) bool { + osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") }) + return osreldate >= ver +} + +// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. +type SockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [46]int8 + raw RawSockaddrDatalink +} + +func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + return nil, EAFNOSUPPORT +} + +// Translate "kern.hostname" to []_C_int{0,1,2,3}. +func nametomib(name string) (mib []_C_int, err error) { + const siz = unsafe.Sizeof(mib[0]) + + // NOTE(rsc): It seems strange to set the buffer to have + // size CTL_MAXNAME+2 but use only CTL_MAXNAME + // as the size. I don't know why the +2 is here, but the + // kernel uses +2 for its own implementation of this function. + // I am scared that if we don't include the +2 here, the kernel + // will silently write 2 words farther than we specify + // and we'll get memory corruption. + var buf [CTL_MAXNAME + 2]_C_int + n := uintptr(CTL_MAXNAME) * siz + + p := (*byte)(unsafe.Pointer(&buf[0])) + bytes, err := ByteSliceFromString(name) + if err != nil { + return nil, err + } + + // Magic sysctl: "setting" 0.3 to a string name + // lets you read back the array of integers form. + if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil { + return nil, err + } + return buf[0 : n/siz], nil +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + +func Pipe(p []int) (err error) { + return Pipe2(p, 0) +} + +//sysnb pipe2(p *[2]_C_int, flags int) (err error) + +func Pipe2(p []int, flags int) error { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err := pipe2(&pp, flags) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return err +} + +func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { + var value IPMreqn + vallen := _Socklen(SizeofIPMreqn) + errno := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, errno +} + +func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) +} + +// GetsockoptXucred is a getsockopt wrapper that returns an Xucred struct. +// The usual level and opt are SOL_LOCAL and LOCAL_PEERCRED, respectively. +func GetsockoptXucred(fd, level, opt int) (*Xucred, error) { + x := new(Xucred) + vallen := _Socklen(SizeofXucred) + err := getsockopt(fd, level, opt, unsafe.Pointer(x), &vallen) + return x, err +} + +func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept4(fd, &rsa, &len, flags) + if err != nil { + return + } + if len > SizeofSockaddrAny { + panic("RawSockaddrAny too small") + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD + +func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { + var ( + _p0 unsafe.Pointer + bufsize uintptr + ) + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) + } + r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +//sys ioctl(fd int, req uint, arg uintptr) (err error) + +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + +func Uname(uname *Utsname) error { + mib := []_C_int{CTL_KERN, KERN_OSTYPE} + n := unsafe.Sizeof(uname.Sysname) + if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_HOSTNAME} + n = unsafe.Sizeof(uname.Nodename) + if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_OSRELEASE} + n = unsafe.Sizeof(uname.Release) + if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_VERSION} + n = unsafe.Sizeof(uname.Version) + if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { + return err + } + + // The version might have newlines or tabs in it, convert them to + // spaces. + for i, b := range uname.Version { + if b == '\n' || b == '\t' { + if i == len(uname.Version)-1 { + uname.Version[i] = 0 + } else { + uname.Version[i] = ' ' + } + } + } + + mib = []_C_int{CTL_HW, HW_MACHINE} + n = unsafe.Sizeof(uname.Machine) + if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { + return err + } + + return nil +} + +func Stat(path string, st *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, st, 0) +} + +func Lstat(path string, st *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, st, AT_SYMLINK_NOFOLLOW) +} + +func Getdents(fd int, buf []byte) (n int, err error) { + return Getdirentries(fd, buf, nil) +} + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + if basep == nil || unsafe.Sizeof(*basep) == 8 { + return getdirentries(fd, buf, (*uint64)(unsafe.Pointer(basep))) + } + // The syscall needs a 64-bit base. On 32-bit machines + // we can't just use the basep passed in. See #32498. + var base uint64 = uint64(*basep) + n, err = getdirentries(fd, buf, &base) + *basep = uintptr(base) + if base>>32 != 0 { + // We can't stuff the base back into a uintptr, so any + // future calls would be suspect. Generate an error. + // EIO is allowed by getdirentries. + err = EIO + } + return +} + +func Mknod(path string, mode uint32, dev uint64) (err error) { + return Mknodat(AT_FDCWD, path, mode, dev) +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +//sys ptrace(request int, pid int, addr uintptr, data int) (err error) + +func PtraceAttach(pid int) (err error) { + return ptrace(PT_ATTACH, pid, 0, 0) +} + +func PtraceCont(pid int, signal int) (err error) { + return ptrace(PT_CONTINUE, pid, 1, signal) +} + +func PtraceDetach(pid int) (err error) { + return ptrace(PT_DETACH, pid, 1, 0) +} + +func PtraceGetFpRegs(pid int, fpregsout *FpReg) (err error) { + return ptrace(PT_GETFPREGS, pid, uintptr(unsafe.Pointer(fpregsout)), 0) +} + +func PtraceGetRegs(pid int, regsout *Reg) (err error) { + return ptrace(PT_GETREGS, pid, uintptr(unsafe.Pointer(regsout)), 0) +} + +func PtraceLwpEvents(pid int, enable int) (err error) { + return ptrace(PT_LWP_EVENTS, pid, 0, enable) +} + +func PtraceLwpInfo(pid int, info uintptr) (err error) { + return ptrace(PT_LWPINFO, pid, info, int(unsafe.Sizeof(PtraceLwpInfoStruct{}))) +} + +func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) { + return PtraceIO(PIOD_READ_D, pid, addr, out, SizeofLong) +} + +func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) { + return PtraceIO(PIOD_READ_I, pid, addr, out, SizeofLong) +} + +func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) { + return PtraceIO(PIOD_WRITE_D, pid, addr, data, SizeofLong) +} + +func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) { + return PtraceIO(PIOD_WRITE_I, pid, addr, data, SizeofLong) +} + +func PtraceSetRegs(pid int, regs *Reg) (err error) { + return ptrace(PT_SETREGS, pid, uintptr(unsafe.Pointer(regs)), 0) +} + +func PtraceSingleStep(pid int) (err error) { + return ptrace(PT_STEP, pid, 1, 0) +} + +/* + * Exposed directly + */ +//sys Access(path string, mode uint32) (err error) +//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) +//sys CapEnter() (err error) +//sys capRightsGet(version int, fd int, rightsp *CapRights) (err error) = SYS___CAP_RIGHTS_GET +//sys capRightsLimit(fd int, rightsp *CapRights) (err error) +//sys Chdir(path string) (err error) +//sys Chflags(path string, flags int) (err error) +//sys Chmod(path string, mode uint32) (err error) +//sys Chown(path string, uid int, gid int) (err error) +//sys Chroot(path string) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys Close(fd int) (err error) +//sys Dup(fd int) (nfd int, err error) +//sys Dup2(from int, to int) (err error) +//sys Exit(code int) +//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) +//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) +//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) +//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchflags(fd int, flags int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Flock(fd int, how int) (err error) +//sys Fpathconf(fd int, name int) (val int, err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatfs(fd int, stat *Statfs_t) (err error) +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sys getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) +//sys Getdtablesize() (size int) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (uid int) +//sysnb Getgid() (gid int) +//sysnb Getpgid(pid int) (pgid int, err error) +//sysnb Getpgrp() (pgrp int) +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrlimit(which int, lim *Rlimit) (err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Getuid() (uid int) +//sys Issetugid() (tainted bool) +//sys Kill(pid int, signum syscall.Signal) (err error) +//sys Kqueue() (fd int, err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Link(path string, link string) (err error) +//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) +//sys Listen(s int, backlog int) (err error) +//sys Mkdir(path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mknodat(fd int, path string, mode uint32, dev uint64) (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) +//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) +//sys Pathconf(path string, name int) (val int, err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) +//sys Rename(from string, to string) (err error) +//sys Renameat(fromfd int, from string, tofd int, to string) (err error) +//sys Revoke(path string) (err error) +//sys Rmdir(path string) (err error) +//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sysnb Setegid(egid int) (err error) +//sysnb Seteuid(euid int) (err error) +//sysnb Setgid(gid int) (err error) +//sys Setlogin(name string) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sys Setpriority(which int, who int, prio int) (err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sysnb Setresgid(rgid int, egid int, sgid int) (err error) +//sysnb Setresuid(ruid int, euid int, suid int) (err error) +//sysnb Setrlimit(which int, lim *Rlimit) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tp *Timeval) (err error) +//sysnb Setuid(uid int) (err error) +//sys Statfs(path string, stat *Statfs_t) (err error) +//sys Symlink(path string, link string) (err error) +//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) +//sys Sync() (err error) +//sys Truncate(path string, length int64) (err error) +//sys Umask(newmask int) (oldmask int) +//sys Undelete(path string) (err error) +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Unmount(path string, flags int) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) +//sys munmap(addr uintptr, length uintptr) (err error) +//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ +//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE +//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) +//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) + +/* + * Unimplemented + */ +// Profil +// Sigaction +// Sigprocmask +// Getlogin +// Sigpending +// Sigaltstack +// Ioctl +// Reboot +// Execve +// Vfork +// Sbrk +// Sstk +// Ovadvise +// Mincore +// Setitimer +// Swapon +// Select +// Sigsuspend +// Readv +// Writev +// Nfssvc +// Getfh +// Quotactl +// Mount +// Csops +// Waitid +// Add_profil +// Kdebug_trace +// Sigreturn +// Atsocket +// Kqueue_from_portset_np +// Kqueue_portset +// Getattrlist +// Setattrlist +// Getdents +// Getdirentriesattr +// Searchfs +// Delete +// Copyfile +// Watchevent +// Waitevent +// Modwatch +// Fsctl +// Initgroups +// Posix_spawn +// Nfsclnt +// Fhopen +// Minherit +// Semsys +// Msgsys +// Shmsys +// Semctl +// Semget +// Semop +// Msgctl +// Msgget +// Msgsnd +// Msgrcv +// Shmat +// Shmctl +// Shmdt +// Shmget +// Shm_open +// Shm_unlink +// Sem_open +// Sem_close +// Sem_unlink +// Sem_wait +// Sem_trywait +// Sem_post +// Sem_getvalue +// Sem_init +// Sem_destroy +// Open_extended +// Umask_extended +// Stat_extended +// Lstat_extended +// Fstat_extended +// Chmod_extended +// Fchmod_extended +// Access_extended +// Settid +// Gettid +// Setsgroups +// Getsgroups +// Setwgroups +// Getwgroups +// Mkfifo_extended +// Mkdir_extended +// Identitysvc +// Shared_region_check_np +// Shared_region_map_np +// __pthread_mutex_destroy +// __pthread_mutex_init +// __pthread_mutex_lock +// __pthread_mutex_trylock +// __pthread_mutex_unlock +// __pthread_cond_init +// __pthread_cond_destroy +// __pthread_cond_broadcast +// __pthread_cond_signal +// Setsid_with_pid +// __pthread_cond_timedwait +// Aio_fsync +// Aio_return +// Aio_suspend +// Aio_cancel +// Aio_error +// Aio_read +// Aio_write +// Lio_listio +// __pthread_cond_wait +// Iopolicysys +// __pthread_kill +// __pthread_sigmask +// __sigwait +// __disable_threadsignal +// __pthread_markcancel +// __pthread_canceled +// __semwait_signal +// Proc_info +// Stat64_extended +// Lstat64_extended +// Fstat64_extended +// __pthread_chdir +// __pthread_fchdir +// Audit +// Auditon +// Getauid +// Setauid +// Getaudit +// Setaudit +// Getaudit_addr +// Setaudit_addr +// Auditctl +// Bsdthread_create +// Bsdthread_terminate +// Stack_snapshot +// Bsdthread_register +// Workq_open +// Workq_ops +// __mac_execve +// __mac_syscall +// __mac_get_file +// __mac_set_file +// __mac_get_link +// __mac_set_link +// __mac_get_proc +// __mac_set_proc +// __mac_get_fd +// __mac_set_fd +// __mac_get_pid +// __mac_get_lcid +// __mac_get_lctx +// __mac_set_lctx +// Setlcid +// Read_nocancel +// Write_nocancel +// Open_nocancel +// Close_nocancel +// Wait4_nocancel +// Recvmsg_nocancel +// Sendmsg_nocancel +// Recvfrom_nocancel +// Accept_nocancel +// Fcntl_nocancel +// Select_nocancel +// Fsync_nocancel +// Connect_nocancel +// Sigsuspend_nocancel +// Readv_nocancel +// Writev_nocancel +// Sendto_nocancel +// Pread_nocancel +// Pwrite_nocancel +// Waitid_nocancel +// Poll_nocancel +// Msgsnd_nocancel +// Msgrcv_nocancel +// Sem_wait_nocancel +// Aio_suspend_nocancel +// __sigwait_nocancel +// __semwait_signal_nocancel +// __mac_mount +// __mac_get_mount +// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go new file mode 100644 index 0000000..6a91d47 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go @@ -0,0 +1,72 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build 386 && freebsd +// +build 386,freebsd + +package unix + +import ( + "syscall" + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: int32(sec), Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int32(sec), Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint32(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + var writtenOut uint64 = 0 + _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0) + + written = int(writtenOut) + + if e1 != 0 { + err = e1 + } + return +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceGetFsBase(pid int, fsbase *int64) (err error) { + return ptrace(PT_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0) +} + +func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{ + Op: int32(req), + Offs: offs, + Addr: uintptr(unsafe.Pointer(&out[0])), // TODO(#58351): this is not safe. + Len: uint32(countin), + } + err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go new file mode 100644 index 0000000..48110a0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go @@ -0,0 +1,72 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && freebsd +// +build amd64,freebsd + +package unix + +import ( + "syscall" + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + var writtenOut uint64 = 0 + _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0) + + written = int(writtenOut) + + if e1 != 0 { + err = e1 + } + return +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceGetFsBase(pid int, fsbase *int64) (err error) { + return ptrace(PT_GETFSBASE, pid, uintptr(unsafe.Pointer(fsbase)), 0) +} + +func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{ + Op: int32(req), + Offs: offs, + Addr: uintptr(unsafe.Pointer(&out[0])), // TODO(#58351): this is not safe. + Len: uint64(countin), + } + err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go new file mode 100644 index 0000000..52f1d4b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go @@ -0,0 +1,68 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm && freebsd +// +build arm,freebsd + +package unix + +import ( + "syscall" + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint32(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + var writtenOut uint64 = 0 + _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0) + + written = int(writtenOut) + + if e1 != 0 { + err = e1 + } + return +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{ + Op: int32(req), + Offs: offs, + Addr: uintptr(unsafe.Pointer(&out[0])), // TODO(#58351): this is not safe. + Len: uint32(countin), + } + err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go new file mode 100644 index 0000000..5537ee4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go @@ -0,0 +1,68 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm64 && freebsd +// +build arm64,freebsd + +package unix + +import ( + "syscall" + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + var writtenOut uint64 = 0 + _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0) + + written = int(writtenOut) + + if e1 != 0 { + err = e1 + } + return +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{ + Op: int32(req), + Offs: offs, + Addr: uintptr(unsafe.Pointer(&out[0])), // TODO(#58351): this is not safe. + Len: uint64(countin), + } + err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go new file mode 100644 index 0000000..164abd5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go @@ -0,0 +1,68 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build riscv64 && freebsd +// +build riscv64,freebsd + +package unix + +import ( + "syscall" + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + var writtenOut uint64 = 0 + _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0) + + written = int(writtenOut) + + if e1 != 0 { + err = e1 + } + return +} + +func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func PtraceIO(req int, pid int, offs uintptr, out []byte, countin int) (count int, err error) { + ioDesc := PtraceIoDesc{ + Op: int32(req), + Offs: offs, + Addr: uintptr(unsafe.Pointer(&out[0])), // TODO(#58351): this is not safe. + Len: uint64(countin), + } + err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) + return int(ioDesc.Len), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_hurd.go b/vendor/golang.org/x/sys/unix/syscall_hurd.go new file mode 100644 index 0000000..4ffb648 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_hurd.go @@ -0,0 +1,22 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build hurd +// +build hurd + +package unix + +/* +#include +int ioctl(int, unsigned long int, uintptr_t); +*/ +import "C" + +func ioctl(fd int, req uint, arg uintptr) (err error) { + r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) + if r0 == -1 && er != nil { + err = er + } + return +} diff --git a/vendor/golang.org/x/sys/unix/syscall_hurd_386.go b/vendor/golang.org/x/sys/unix/syscall_hurd_386.go new file mode 100644 index 0000000..7cf54a3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_hurd_386.go @@ -0,0 +1,29 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build 386 && hurd +// +build 386,hurd + +package unix + +const ( + TIOCGETA = 0x62251713 +) + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} diff --git a/vendor/golang.org/x/sys/unix/syscall_illumos.go b/vendor/golang.org/x/sys/unix/syscall_illumos.go new file mode 100644 index 0000000..87db5a6 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_illumos.go @@ -0,0 +1,79 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// illumos system calls not present on Solaris. + +//go:build amd64 && illumos +// +build amd64,illumos + +package unix + +import ( + "unsafe" +) + +func bytes2iovec(bs [][]byte) []Iovec { + iovecs := make([]Iovec, len(bs)) + for i, b := range bs { + iovecs[i].SetLen(len(b)) + if len(b) > 0 { + iovecs[i].Base = &b[0] + } else { + iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero)) + } + } + return iovecs +} + +//sys readv(fd int, iovs []Iovec) (n int, err error) + +func Readv(fd int, iovs [][]byte) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = readv(fd, iovecs) + return n, err +} + +//sys preadv(fd int, iovs []Iovec, off int64) (n int, err error) + +func Preadv(fd int, iovs [][]byte, off int64) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = preadv(fd, iovecs, off) + return n, err +} + +//sys writev(fd int, iovs []Iovec) (n int, err error) + +func Writev(fd int, iovs [][]byte) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = writev(fd, iovecs) + return n, err +} + +//sys pwritev(fd int, iovs []Iovec, off int64) (n int, err error) + +func Pwritev(fd int, iovs [][]byte, off int64) (n int, err error) { + iovecs := bytes2iovec(iovs) + n, err = pwritev(fd, iovecs, off) + return n, err +} + +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) = libsocket.accept4 + +func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept4(fd, &rsa, &len, flags) + if err != nil { + return + } + if len > SizeofSockaddrAny { + panic("RawSockaddrAny too small") + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go new file mode 100644 index 0000000..5443ddd --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -0,0 +1,2492 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Linux system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and +// wrap it in our own nicer implementation. + +package unix + +import ( + "encoding/binary" + "strconv" + "syscall" + "time" + "unsafe" +) + +/* + * Wrapped + */ + +func Access(path string, mode uint32) (err error) { + return Faccessat(AT_FDCWD, path, mode, 0) +} + +func Chmod(path string, mode uint32) (err error) { + return Fchmodat(AT_FDCWD, path, mode, 0) +} + +func Chown(path string, uid int, gid int) (err error) { + return Fchownat(AT_FDCWD, path, uid, gid, 0) +} + +func Creat(path string, mode uint32) (fd int, err error) { + return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) +} + +func EpollCreate(size int) (fd int, err error) { + if size <= 0 { + return -1, EINVAL + } + return EpollCreate1(0) +} + +//sys FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) +//sys fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) + +func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) (err error) { + if pathname == "" { + return fanotifyMark(fd, flags, mask, dirFd, nil) + } + p, err := BytePtrFromString(pathname) + if err != nil { + return err + } + return fanotifyMark(fd, flags, mask, dirFd, p) +} + +//sys fchmodat(dirfd int, path string, mode uint32) (err error) + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + // Linux fchmodat doesn't support the flags parameter. Mimick glibc's behavior + // and check the flags. Otherwise the mode would be applied to the symlink + // destination which is not what the user expects. + if flags&^AT_SYMLINK_NOFOLLOW != 0 { + return EINVAL + } else if flags&AT_SYMLINK_NOFOLLOW != 0 { + return EOPNOTSUPP + } + return fchmodat(dirfd, path, mode) +} + +func InotifyInit() (fd int, err error) { + return InotifyInit1(0) +} + +//sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL +//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL + +// ioctl itself should not be exposed directly, but additional get/set functions +// for specific types are permissible. These are defined in ioctl.go and +// ioctl_linux.go. +// +// The third argument to ioctl is often a pointer but sometimes an integer. +// Callers should use ioctlPtr when the third argument is a pointer and ioctl +// when the third argument is an integer. +// +// TODO: some existing code incorrectly uses ioctl when it should use ioctlPtr. + +//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) + +func Link(oldpath string, newpath string) (err error) { + return Linkat(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0) +} + +func Mkdir(path string, mode uint32) (err error) { + return Mkdirat(AT_FDCWD, path, mode) +} + +func Mknod(path string, mode uint32, dev int) (err error) { + return Mknodat(AT_FDCWD, path, mode, dev) +} + +func Open(path string, mode int, perm uint32) (fd int, err error) { + return openat(AT_FDCWD, path, mode|O_LARGEFILE, perm) +} + +//sys openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) + +func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { + return openat(dirfd, path, flags|O_LARGEFILE, mode) +} + +//sys openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) + +func Openat2(dirfd int, path string, how *OpenHow) (fd int, err error) { + return openat2(dirfd, path, how, SizeofOpenHow) +} + +func Pipe(p []int) error { + return Pipe2(p, 0) +} + +//sysnb pipe2(p *[2]_C_int, flags int) (err error) + +func Pipe2(p []int, flags int) error { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err := pipe2(&pp, flags) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return err +} + +//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) + +func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + if len(fds) == 0 { + return ppoll(nil, 0, timeout, sigmask) + } + return ppoll(&fds[0], len(fds), timeout, sigmask) +} + +func Poll(fds []PollFd, timeout int) (n int, err error) { + var ts *Timespec + if timeout >= 0 { + ts = new(Timespec) + *ts = NsecToTimespec(int64(timeout) * 1e6) + } + return Ppoll(fds, ts, nil) +} + +//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) + +func Readlink(path string, buf []byte) (n int, err error) { + return Readlinkat(AT_FDCWD, path, buf) +} + +func Rename(oldpath string, newpath string) (err error) { + return Renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath) +} + +func Rmdir(path string) error { + return Unlinkat(AT_FDCWD, path, AT_REMOVEDIR) +} + +//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) + +func Symlink(oldpath string, newpath string) (err error) { + return Symlinkat(oldpath, AT_FDCWD, newpath) +} + +func Unlink(path string) error { + return Unlinkat(AT_FDCWD, path, 0) +} + +//sys Unlinkat(dirfd int, path string, flags int) (err error) + +func Utimes(path string, tv []Timeval) error { + if tv == nil { + err := utimensat(AT_FDCWD, path, nil, 0) + if err != ENOSYS { + return err + } + return utimes(path, nil) + } + if len(tv) != 2 { + return EINVAL + } + var ts [2]Timespec + ts[0] = NsecToTimespec(TimevalToNsec(tv[0])) + ts[1] = NsecToTimespec(TimevalToNsec(tv[1])) + err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) + if err != ENOSYS { + return err + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) + +func UtimesNano(path string, ts []Timespec) error { + return UtimesNanoAt(AT_FDCWD, path, ts, 0) +} + +func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { + if ts == nil { + return utimensat(dirfd, path, nil, flags) + } + if len(ts) != 2 { + return EINVAL + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) +} + +func Futimesat(dirfd int, path string, tv []Timeval) error { + if tv == nil { + return futimesat(dirfd, path, nil) + } + if len(tv) != 2 { + return EINVAL + } + return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +func Futimes(fd int, tv []Timeval) (err error) { + // Believe it or not, this is the best we can do on Linux + // (and is what glibc does). + return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv) +} + +const ImplementsGetwd = true + +//sys Getcwd(buf []byte) (n int, err error) + +func Getwd() (wd string, err error) { + var buf [PathMax]byte + n, err := Getcwd(buf[0:]) + if err != nil { + return "", err + } + // Getcwd returns the number of bytes written to buf, including the NUL. + if n < 1 || n > len(buf) || buf[n-1] != 0 { + return "", EINVAL + } + // In some cases, Linux can return a path that starts with the + // "(unreachable)" prefix, which can potentially be a valid relative + // path. To work around that, return ENOENT if path is not absolute. + if buf[0] != '/' { + return "", ENOENT + } + + return string(buf[0 : n-1]), nil +} + +func Getgroups() (gids []int, err error) { + n, err := getgroups(0, nil) + if err != nil { + return nil, err + } + if n == 0 { + return nil, nil + } + + // Sanity check group count. Max is 1<<16 on Linux. + if n < 0 || n > 1<<20 { + return nil, EINVAL + } + + a := make([]_Gid_t, n) + n, err = getgroups(n, &a[0]) + if err != nil { + return nil, err + } + gids = make([]int, n) + for i, v := range a[0:n] { + gids[i] = int(v) + } + return +} + +func Setgroups(gids []int) (err error) { + if len(gids) == 0 { + return setgroups(0, nil) + } + + a := make([]_Gid_t, len(gids)) + for i, v := range gids { + a[i] = _Gid_t(v) + } + return setgroups(len(a), &a[0]) +} + +type WaitStatus uint32 + +// Wait status is 7 bits at bottom, either 0 (exited), +// 0x7F (stopped), or a signal number that caused an exit. +// The 0x80 bit is whether there was a core dump. +// An extra number (exit code, signal causing a stop) +// is in the high bits. At least that's the idea. +// There are various irregularities. For example, the +// "continued" status is 0xFFFF, distinguishing itself +// from stopped via the core dump bit. + +const ( + mask = 0x7F + core = 0x80 + exited = 0x00 + stopped = 0x7F + shift = 8 +) + +func (w WaitStatus) Exited() bool { return w&mask == exited } + +func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != exited } + +func (w WaitStatus) Stopped() bool { return w&0xFF == stopped } + +func (w WaitStatus) Continued() bool { return w == 0xFFFF } + +func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } + +func (w WaitStatus) ExitStatus() int { + if !w.Exited() { + return -1 + } + return int(w>>shift) & 0xFF +} + +func (w WaitStatus) Signal() syscall.Signal { + if !w.Signaled() { + return -1 + } + return syscall.Signal(w & mask) +} + +func (w WaitStatus) StopSignal() syscall.Signal { + if !w.Stopped() { + return -1 + } + return syscall.Signal(w>>shift) & 0xFF +} + +func (w WaitStatus) TrapCause() int { + if w.StopSignal() != SIGTRAP { + return -1 + } + return int(w>>shift) >> 8 +} + +//sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) + +func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { + var status _C_int + wpid, err = wait4(pid, &status, options, rusage) + if wstatus != nil { + *wstatus = WaitStatus(status) + } + return +} + +//sys Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) + +func Mkfifo(path string, mode uint32) error { + return Mknod(path, mode|S_IFIFO, 0) +} + +func Mkfifoat(dirfd int, path string, mode uint32) error { + return Mknodat(dirfd, path, mode|S_IFIFO, 0) +} + +func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Family = AF_INET + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil +} + +func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Family = AF_INET6 + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Scope_id = sa.ZoneId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil +} + +func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { + name := sa.Name + n := len(name) + if n >= len(sa.raw.Path) { + return nil, 0, EINVAL + } + sa.raw.Family = AF_UNIX + for i := 0; i < n; i++ { + sa.raw.Path[i] = int8(name[i]) + } + // length is family (uint16), name, NUL. + sl := _Socklen(2) + if n > 0 { + sl += _Socklen(n) + 1 + } + if sa.raw.Path[0] == '@' { + sa.raw.Path[0] = 0 + // Don't count trailing NUL for abstract address. + sl-- + } + + return unsafe.Pointer(&sa.raw), sl, nil +} + +// SockaddrLinklayer implements the Sockaddr interface for AF_PACKET type sockets. +type SockaddrLinklayer struct { + Protocol uint16 + Ifindex int + Hatype uint16 + Pkttype uint8 + Halen uint8 + Addr [8]byte + raw RawSockaddrLinklayer +} + +func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { + return nil, 0, EINVAL + } + sa.raw.Family = AF_PACKET + sa.raw.Protocol = sa.Protocol + sa.raw.Ifindex = int32(sa.Ifindex) + sa.raw.Hatype = sa.Hatype + sa.raw.Pkttype = sa.Pkttype + sa.raw.Halen = sa.Halen + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil +} + +// SockaddrNetlink implements the Sockaddr interface for AF_NETLINK type sockets. +type SockaddrNetlink struct { + Family uint16 + Pad uint16 + Pid uint32 + Groups uint32 + raw RawSockaddrNetlink +} + +func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_NETLINK + sa.raw.Pad = sa.Pad + sa.raw.Pid = sa.Pid + sa.raw.Groups = sa.Groups + return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil +} + +// SockaddrHCI implements the Sockaddr interface for AF_BLUETOOTH type sockets +// using the HCI protocol. +type SockaddrHCI struct { + Dev uint16 + Channel uint16 + raw RawSockaddrHCI +} + +func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_BLUETOOTH + sa.raw.Dev = sa.Dev + sa.raw.Channel = sa.Channel + return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil +} + +// SockaddrL2 implements the Sockaddr interface for AF_BLUETOOTH type sockets +// using the L2CAP protocol. +type SockaddrL2 struct { + PSM uint16 + CID uint16 + Addr [6]uint8 + AddrType uint8 + raw RawSockaddrL2 +} + +func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_BLUETOOTH + psm := (*[2]byte)(unsafe.Pointer(&sa.raw.Psm)) + psm[0] = byte(sa.PSM) + psm[1] = byte(sa.PSM >> 8) + for i := 0; i < len(sa.Addr); i++ { + sa.raw.Bdaddr[i] = sa.Addr[len(sa.Addr)-1-i] + } + cid := (*[2]byte)(unsafe.Pointer(&sa.raw.Cid)) + cid[0] = byte(sa.CID) + cid[1] = byte(sa.CID >> 8) + sa.raw.Bdaddr_type = sa.AddrType + return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil +} + +// SockaddrRFCOMM implements the Sockaddr interface for AF_BLUETOOTH type sockets +// using the RFCOMM protocol. +// +// Server example: +// +// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) +// _ = unix.Bind(fd, &unix.SockaddrRFCOMM{ +// Channel: 1, +// Addr: [6]uint8{0, 0, 0, 0, 0, 0}, // BDADDR_ANY or 00:00:00:00:00:00 +// }) +// _ = Listen(fd, 1) +// nfd, sa, _ := Accept(fd) +// fmt.Printf("conn addr=%v fd=%d", sa.(*unix.SockaddrRFCOMM).Addr, nfd) +// Read(nfd, buf) +// +// Client example: +// +// fd, _ := Socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM) +// _ = Connect(fd, &SockaddrRFCOMM{ +// Channel: 1, +// Addr: [6]byte{0x11, 0x22, 0x33, 0xaa, 0xbb, 0xcc}, // CC:BB:AA:33:22:11 +// }) +// Write(fd, []byte(`hello`)) +type SockaddrRFCOMM struct { + // Addr represents a bluetooth address, byte ordering is little-endian. + Addr [6]uint8 + + // Channel is a designated bluetooth channel, only 1-30 are available for use. + // Since Linux 2.6.7 and further zero value is the first available channel. + Channel uint8 + + raw RawSockaddrRFCOMM +} + +func (sa *SockaddrRFCOMM) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_BLUETOOTH + sa.raw.Channel = sa.Channel + sa.raw.Bdaddr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrRFCOMM, nil +} + +// SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. +// The RxID and TxID fields are used for transport protocol addressing in +// (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with +// zero values for CAN_RAW and CAN_BCM sockets as they have no meaning. +// +// The SockaddrCAN struct must be bound to the socket file descriptor +// using Bind before the CAN socket can be used. +// +// // Read one raw CAN frame +// fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW) +// addr := &SockaddrCAN{Ifindex: index} +// Bind(fd, addr) +// frame := make([]byte, 16) +// Read(fd, frame) +// +// The full SocketCAN documentation can be found in the linux kernel +// archives at: https://www.kernel.org/doc/Documentation/networking/can.txt +type SockaddrCAN struct { + Ifindex int + RxID uint32 + TxID uint32 + raw RawSockaddrCAN +} + +func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { + return nil, 0, EINVAL + } + sa.raw.Family = AF_CAN + sa.raw.Ifindex = int32(sa.Ifindex) + rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) + for i := 0; i < 4; i++ { + sa.raw.Addr[i] = rx[i] + } + tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) + for i := 0; i < 4; i++ { + sa.raw.Addr[i+4] = tx[i] + } + return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil +} + +// SockaddrCANJ1939 implements the Sockaddr interface for AF_CAN using J1939 +// protocol (https://en.wikipedia.org/wiki/SAE_J1939). For more information +// on the purposes of the fields, check the official linux kernel documentation +// available here: https://www.kernel.org/doc/Documentation/networking/j1939.rst +type SockaddrCANJ1939 struct { + Ifindex int + Name uint64 + PGN uint32 + Addr uint8 + raw RawSockaddrCAN +} + +func (sa *SockaddrCANJ1939) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { + return nil, 0, EINVAL + } + sa.raw.Family = AF_CAN + sa.raw.Ifindex = int32(sa.Ifindex) + n := (*[8]byte)(unsafe.Pointer(&sa.Name)) + for i := 0; i < 8; i++ { + sa.raw.Addr[i] = n[i] + } + p := (*[4]byte)(unsafe.Pointer(&sa.PGN)) + for i := 0; i < 4; i++ { + sa.raw.Addr[i+8] = p[i] + } + sa.raw.Addr[12] = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil +} + +// SockaddrALG implements the Sockaddr interface for AF_ALG type sockets. +// SockaddrALG enables userspace access to the Linux kernel's cryptography +// subsystem. The Type and Name fields specify which type of hash or cipher +// should be used with a given socket. +// +// To create a file descriptor that provides access to a hash or cipher, both +// Bind and Accept must be used. Once the setup process is complete, input +// data can be written to the socket, processed by the kernel, and then read +// back as hash output or ciphertext. +// +// Here is an example of using an AF_ALG socket with SHA1 hashing. +// The initial socket setup process is as follows: +// +// // Open a socket to perform SHA1 hashing. +// fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0) +// addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"} +// unix.Bind(fd, addr) +// // Note: unix.Accept does not work at this time; must invoke accept() +// // manually using unix.Syscall. +// hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0) +// +// Once a file descriptor has been returned from Accept, it may be used to +// perform SHA1 hashing. The descriptor is not safe for concurrent use, but +// may be re-used repeatedly with subsequent Write and Read operations. +// +// When hashing a small byte slice or string, a single Write and Read may +// be used: +// +// // Assume hashfd is already configured using the setup process. +// hash := os.NewFile(hashfd, "sha1") +// // Hash an input string and read the results. Each Write discards +// // previous hash state. Read always reads the current state. +// b := make([]byte, 20) +// for i := 0; i < 2; i++ { +// io.WriteString(hash, "Hello, world.") +// hash.Read(b) +// fmt.Println(hex.EncodeToString(b)) +// } +// // Output: +// // 2ae01472317d1935a84797ec1983ae243fc6aa28 +// // 2ae01472317d1935a84797ec1983ae243fc6aa28 +// +// For hashing larger byte slices, or byte streams such as those read from +// a file or socket, use Sendto with MSG_MORE to instruct the kernel to update +// the hash digest instead of creating a new one for a given chunk and finalizing it. +// +// // Assume hashfd and addr are already configured using the setup process. +// hash := os.NewFile(hashfd, "sha1") +// // Hash the contents of a file. +// f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz") +// b := make([]byte, 4096) +// for { +// n, err := f.Read(b) +// if err == io.EOF { +// break +// } +// unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr) +// } +// hash.Read(b) +// fmt.Println(hex.EncodeToString(b)) +// // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5 +// +// For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html. +type SockaddrALG struct { + Type string + Name string + Feature uint32 + Mask uint32 + raw RawSockaddrALG +} + +func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) { + // Leave room for NUL byte terminator. + if len(sa.Type) > 13 { + return nil, 0, EINVAL + } + if len(sa.Name) > 63 { + return nil, 0, EINVAL + } + + sa.raw.Family = AF_ALG + sa.raw.Feat = sa.Feature + sa.raw.Mask = sa.Mask + + typ, err := ByteSliceFromString(sa.Type) + if err != nil { + return nil, 0, err + } + name, err := ByteSliceFromString(sa.Name) + if err != nil { + return nil, 0, err + } + + copy(sa.raw.Type[:], typ) + copy(sa.raw.Name[:], name) + + return unsafe.Pointer(&sa.raw), SizeofSockaddrALG, nil +} + +// SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets. +// SockaddrVM provides access to Linux VM sockets: a mechanism that enables +// bidirectional communication between a hypervisor and its guest virtual +// machines. +type SockaddrVM struct { + // CID and Port specify a context ID and port address for a VM socket. + // Guests have a unique CID, and hosts may have a well-known CID of: + // - VMADDR_CID_HYPERVISOR: refers to the hypervisor process. + // - VMADDR_CID_LOCAL: refers to local communication (loopback). + // - VMADDR_CID_HOST: refers to other processes on the host. + CID uint32 + Port uint32 + Flags uint8 + raw RawSockaddrVM +} + +func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_VSOCK + sa.raw.Port = sa.Port + sa.raw.Cid = sa.CID + sa.raw.Flags = sa.Flags + + return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil +} + +type SockaddrXDP struct { + Flags uint16 + Ifindex uint32 + QueueID uint32 + SharedUmemFD uint32 + raw RawSockaddrXDP +} + +func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_XDP + sa.raw.Flags = sa.Flags + sa.raw.Ifindex = sa.Ifindex + sa.raw.Queue_id = sa.QueueID + sa.raw.Shared_umem_fd = sa.SharedUmemFD + + return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil +} + +// This constant mirrors the #define of PX_PROTO_OE in +// linux/if_pppox.h. We're defining this by hand here instead of +// autogenerating through mkerrors.sh because including +// linux/if_pppox.h causes some declaration conflicts with other +// includes (linux/if_pppox.h includes linux/in.h, which conflicts +// with netinet/in.h). Given that we only need a single zero constant +// out of that file, it's cleaner to just define it by hand here. +const px_proto_oe = 0 + +type SockaddrPPPoE struct { + SID uint16 + Remote []byte + Dev string + raw RawSockaddrPPPoX +} + +func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) { + if len(sa.Remote) != 6 { + return nil, 0, EINVAL + } + if len(sa.Dev) > IFNAMSIZ-1 { + return nil, 0, EINVAL + } + + *(*uint16)(unsafe.Pointer(&sa.raw[0])) = AF_PPPOX + // This next field is in host-endian byte order. We can't use the + // same unsafe pointer cast as above, because this value is not + // 32-bit aligned and some architectures don't allow unaligned + // access. + // + // However, the value of px_proto_oe is 0, so we can use + // encoding/binary helpers to write the bytes without worrying + // about the ordering. + binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe) + // This field is deliberately big-endian, unlike the previous + // one. The kernel expects SID to be in network byte order. + binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID) + copy(sa.raw[8:14], sa.Remote) + for i := 14; i < 14+IFNAMSIZ; i++ { + sa.raw[i] = 0 + } + copy(sa.raw[14:], sa.Dev) + return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil +} + +// SockaddrTIPC implements the Sockaddr interface for AF_TIPC type sockets. +// For more information on TIPC, see: http://tipc.sourceforge.net/. +type SockaddrTIPC struct { + // Scope is the publication scopes when binding service/service range. + // Should be set to TIPC_CLUSTER_SCOPE or TIPC_NODE_SCOPE. + Scope int + + // Addr is the type of address used to manipulate a socket. Addr must be + // one of: + // - *TIPCSocketAddr: "id" variant in the C addr union + // - *TIPCServiceRange: "nameseq" variant in the C addr union + // - *TIPCServiceName: "name" variant in the C addr union + // + // If nil, EINVAL will be returned when the structure is used. + Addr TIPCAddr + + raw RawSockaddrTIPC +} + +// TIPCAddr is implemented by types that can be used as an address for +// SockaddrTIPC. It is only implemented by *TIPCSocketAddr, *TIPCServiceRange, +// and *TIPCServiceName. +type TIPCAddr interface { + tipcAddrtype() uint8 + tipcAddr() [12]byte +} + +func (sa *TIPCSocketAddr) tipcAddr() [12]byte { + var out [12]byte + copy(out[:], (*(*[unsafe.Sizeof(TIPCSocketAddr{})]byte)(unsafe.Pointer(sa)))[:]) + return out +} + +func (sa *TIPCSocketAddr) tipcAddrtype() uint8 { return TIPC_SOCKET_ADDR } + +func (sa *TIPCServiceRange) tipcAddr() [12]byte { + var out [12]byte + copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceRange{})]byte)(unsafe.Pointer(sa)))[:]) + return out +} + +func (sa *TIPCServiceRange) tipcAddrtype() uint8 { return TIPC_SERVICE_RANGE } + +func (sa *TIPCServiceName) tipcAddr() [12]byte { + var out [12]byte + copy(out[:], (*(*[unsafe.Sizeof(TIPCServiceName{})]byte)(unsafe.Pointer(sa)))[:]) + return out +} + +func (sa *TIPCServiceName) tipcAddrtype() uint8 { return TIPC_SERVICE_ADDR } + +func (sa *SockaddrTIPC) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Addr == nil { + return nil, 0, EINVAL + } + sa.raw.Family = AF_TIPC + sa.raw.Scope = int8(sa.Scope) + sa.raw.Addrtype = sa.Addr.tipcAddrtype() + sa.raw.Addr = sa.Addr.tipcAddr() + return unsafe.Pointer(&sa.raw), SizeofSockaddrTIPC, nil +} + +// SockaddrL2TPIP implements the Sockaddr interface for IPPROTO_L2TP/AF_INET sockets. +type SockaddrL2TPIP struct { + Addr [4]byte + ConnId uint32 + raw RawSockaddrL2TPIP +} + +func (sa *SockaddrL2TPIP) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_INET + sa.raw.Conn_id = sa.ConnId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP, nil +} + +// SockaddrL2TPIP6 implements the Sockaddr interface for IPPROTO_L2TP/AF_INET6 sockets. +type SockaddrL2TPIP6 struct { + Addr [16]byte + ZoneId uint32 + ConnId uint32 + raw RawSockaddrL2TPIP6 +} + +func (sa *SockaddrL2TPIP6) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_INET6 + sa.raw.Conn_id = sa.ConnId + sa.raw.Scope_id = sa.ZoneId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrL2TPIP6, nil +} + +// SockaddrIUCV implements the Sockaddr interface for AF_IUCV sockets. +type SockaddrIUCV struct { + UserID string + Name string + raw RawSockaddrIUCV +} + +func (sa *SockaddrIUCV) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Family = AF_IUCV + // These are EBCDIC encoded by the kernel, but we still need to pad them + // with blanks. Initializing with blanks allows the caller to feed in either + // a padded or an unpadded string. + for i := 0; i < 8; i++ { + sa.raw.Nodeid[i] = ' ' + sa.raw.User_id[i] = ' ' + sa.raw.Name[i] = ' ' + } + if len(sa.UserID) > 8 || len(sa.Name) > 8 { + return nil, 0, EINVAL + } + for i, b := range []byte(sa.UserID[:]) { + sa.raw.User_id[i] = int8(b) + } + for i, b := range []byte(sa.Name[:]) { + sa.raw.Name[i] = int8(b) + } + return unsafe.Pointer(&sa.raw), SizeofSockaddrIUCV, nil +} + +type SockaddrNFC struct { + DeviceIdx uint32 + TargetIdx uint32 + NFCProtocol uint32 + raw RawSockaddrNFC +} + +func (sa *SockaddrNFC) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Sa_family = AF_NFC + sa.raw.Dev_idx = sa.DeviceIdx + sa.raw.Target_idx = sa.TargetIdx + sa.raw.Nfc_protocol = sa.NFCProtocol + return unsafe.Pointer(&sa.raw), SizeofSockaddrNFC, nil +} + +type SockaddrNFCLLCP struct { + DeviceIdx uint32 + TargetIdx uint32 + NFCProtocol uint32 + DestinationSAP uint8 + SourceSAP uint8 + ServiceName string + raw RawSockaddrNFCLLCP +} + +func (sa *SockaddrNFCLLCP) sockaddr() (unsafe.Pointer, _Socklen, error) { + sa.raw.Sa_family = AF_NFC + sa.raw.Dev_idx = sa.DeviceIdx + sa.raw.Target_idx = sa.TargetIdx + sa.raw.Nfc_protocol = sa.NFCProtocol + sa.raw.Dsap = sa.DestinationSAP + sa.raw.Ssap = sa.SourceSAP + if len(sa.ServiceName) > len(sa.raw.Service_name) { + return nil, 0, EINVAL + } + copy(sa.raw.Service_name[:], sa.ServiceName) + sa.raw.SetServiceNameLen(len(sa.ServiceName)) + return unsafe.Pointer(&sa.raw), SizeofSockaddrNFCLLCP, nil +} + +var socketProtocol = func(fd int) (int, error) { + return GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) +} + +func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + switch rsa.Addr.Family { + case AF_NETLINK: + pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa)) + sa := new(SockaddrNetlink) + sa.Family = pp.Family + sa.Pad = pp.Pad + sa.Pid = pp.Pid + sa.Groups = pp.Groups + return sa, nil + + case AF_PACKET: + pp := (*RawSockaddrLinklayer)(unsafe.Pointer(rsa)) + sa := new(SockaddrLinklayer) + sa.Protocol = pp.Protocol + sa.Ifindex = int(pp.Ifindex) + sa.Hatype = pp.Hatype + sa.Pkttype = pp.Pkttype + sa.Halen = pp.Halen + sa.Addr = pp.Addr + return sa, nil + + case AF_UNIX: + pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) + sa := new(SockaddrUnix) + if pp.Path[0] == 0 { + // "Abstract" Unix domain socket. + // Rewrite leading NUL as @ for textual display. + // (This is the standard convention.) + // Not friendly to overwrite in place, + // but the callers below don't care. + pp.Path[0] = '@' + } + + // Assume path ends at NUL. + // This is not technically the Linux semantics for + // abstract Unix domain sockets--they are supposed + // to be uninterpreted fixed-size binary blobs--but + // everyone uses this convention. + n := 0 + for n < len(pp.Path) && pp.Path[n] != 0 { + n++ + } + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + sa.Name = string(bytes) + return sa, nil + + case AF_INET: + proto, err := socketProtocol(fd) + if err != nil { + return nil, err + } + + switch proto { + case IPPROTO_L2TP: + pp := (*RawSockaddrL2TPIP)(unsafe.Pointer(rsa)) + sa := new(SockaddrL2TPIP) + sa.ConnId = pp.Conn_id + sa.Addr = pp.Addr + return sa, nil + default: + pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.Addr = pp.Addr + return sa, nil + } + + case AF_INET6: + proto, err := socketProtocol(fd) + if err != nil { + return nil, err + } + + switch proto { + case IPPROTO_L2TP: + pp := (*RawSockaddrL2TPIP6)(unsafe.Pointer(rsa)) + sa := new(SockaddrL2TPIP6) + sa.ConnId = pp.Conn_id + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + default: + pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + } + + case AF_VSOCK: + pp := (*RawSockaddrVM)(unsafe.Pointer(rsa)) + sa := &SockaddrVM{ + CID: pp.Cid, + Port: pp.Port, + Flags: pp.Flags, + } + return sa, nil + case AF_BLUETOOTH: + proto, err := socketProtocol(fd) + if err != nil { + return nil, err + } + // only BTPROTO_L2CAP and BTPROTO_RFCOMM can accept connections + switch proto { + case BTPROTO_L2CAP: + pp := (*RawSockaddrL2)(unsafe.Pointer(rsa)) + sa := &SockaddrL2{ + PSM: pp.Psm, + CID: pp.Cid, + Addr: pp.Bdaddr, + AddrType: pp.Bdaddr_type, + } + return sa, nil + case BTPROTO_RFCOMM: + pp := (*RawSockaddrRFCOMM)(unsafe.Pointer(rsa)) + sa := &SockaddrRFCOMM{ + Channel: pp.Channel, + Addr: pp.Bdaddr, + } + return sa, nil + } + case AF_XDP: + pp := (*RawSockaddrXDP)(unsafe.Pointer(rsa)) + sa := &SockaddrXDP{ + Flags: pp.Flags, + Ifindex: pp.Ifindex, + QueueID: pp.Queue_id, + SharedUmemFD: pp.Shared_umem_fd, + } + return sa, nil + case AF_PPPOX: + pp := (*RawSockaddrPPPoX)(unsafe.Pointer(rsa)) + if binary.BigEndian.Uint32(pp[2:6]) != px_proto_oe { + return nil, EINVAL + } + sa := &SockaddrPPPoE{ + SID: binary.BigEndian.Uint16(pp[6:8]), + Remote: pp[8:14], + } + for i := 14; i < 14+IFNAMSIZ; i++ { + if pp[i] == 0 { + sa.Dev = string(pp[14:i]) + break + } + } + return sa, nil + case AF_TIPC: + pp := (*RawSockaddrTIPC)(unsafe.Pointer(rsa)) + + sa := &SockaddrTIPC{ + Scope: int(pp.Scope), + } + + // Determine which union variant is present in pp.Addr by checking + // pp.Addrtype. + switch pp.Addrtype { + case TIPC_SERVICE_RANGE: + sa.Addr = (*TIPCServiceRange)(unsafe.Pointer(&pp.Addr)) + case TIPC_SERVICE_ADDR: + sa.Addr = (*TIPCServiceName)(unsafe.Pointer(&pp.Addr)) + case TIPC_SOCKET_ADDR: + sa.Addr = (*TIPCSocketAddr)(unsafe.Pointer(&pp.Addr)) + default: + return nil, EINVAL + } + + return sa, nil + case AF_IUCV: + pp := (*RawSockaddrIUCV)(unsafe.Pointer(rsa)) + + var user [8]byte + var name [8]byte + + for i := 0; i < 8; i++ { + user[i] = byte(pp.User_id[i]) + name[i] = byte(pp.Name[i]) + } + + sa := &SockaddrIUCV{ + UserID: string(user[:]), + Name: string(name[:]), + } + return sa, nil + + case AF_CAN: + proto, err := socketProtocol(fd) + if err != nil { + return nil, err + } + + pp := (*RawSockaddrCAN)(unsafe.Pointer(rsa)) + + switch proto { + case CAN_J1939: + sa := &SockaddrCANJ1939{ + Ifindex: int(pp.Ifindex), + } + name := (*[8]byte)(unsafe.Pointer(&sa.Name)) + for i := 0; i < 8; i++ { + name[i] = pp.Addr[i] + } + pgn := (*[4]byte)(unsafe.Pointer(&sa.PGN)) + for i := 0; i < 4; i++ { + pgn[i] = pp.Addr[i+8] + } + addr := (*[1]byte)(unsafe.Pointer(&sa.Addr)) + addr[0] = pp.Addr[12] + return sa, nil + default: + sa := &SockaddrCAN{ + Ifindex: int(pp.Ifindex), + } + rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) + for i := 0; i < 4; i++ { + rx[i] = pp.Addr[i] + } + tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) + for i := 0; i < 4; i++ { + tx[i] = pp.Addr[i+4] + } + return sa, nil + } + case AF_NFC: + proto, err := socketProtocol(fd) + if err != nil { + return nil, err + } + switch proto { + case NFC_SOCKPROTO_RAW: + pp := (*RawSockaddrNFC)(unsafe.Pointer(rsa)) + sa := &SockaddrNFC{ + DeviceIdx: pp.Dev_idx, + TargetIdx: pp.Target_idx, + NFCProtocol: pp.Nfc_protocol, + } + return sa, nil + case NFC_SOCKPROTO_LLCP: + pp := (*RawSockaddrNFCLLCP)(unsafe.Pointer(rsa)) + if uint64(pp.Service_name_len) > uint64(len(pp.Service_name)) { + return nil, EINVAL + } + sa := &SockaddrNFCLLCP{ + DeviceIdx: pp.Dev_idx, + TargetIdx: pp.Target_idx, + NFCProtocol: pp.Nfc_protocol, + DestinationSAP: pp.Dsap, + SourceSAP: pp.Ssap, + ServiceName: string(pp.Service_name[:pp.Service_name_len]), + } + return sa, nil + default: + return nil, EINVAL + } + } + return nil, EAFNOSUPPORT +} + +func Accept(fd int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept4(fd, &rsa, &len, 0) + if err != nil { + return + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept4(fd, &rsa, &len, flags) + if err != nil { + return + } + if len > SizeofSockaddrAny { + panic("RawSockaddrAny too small") + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +func Getsockname(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getsockname(fd, &rsa, &len); err != nil { + return + } + return anyToSockaddr(fd, &rsa) +} + +func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { + var value IPMreqn + vallen := _Socklen(SizeofIPMreqn) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptUcred(fd, level, opt int) (*Ucred, error) { + var value Ucred + vallen := _Socklen(SizeofUcred) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) { + var value TCPInfo + vallen := _Socklen(SizeofTCPInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +// GetsockoptString returns the string value of the socket option opt for the +// socket associated with fd at the given socket level. +func GetsockoptString(fd, level, opt int) (string, error) { + buf := make([]byte, 256) + vallen := _Socklen(len(buf)) + err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) + if err != nil { + if err == ERANGE { + buf = make([]byte, vallen) + err = getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) + } + if err != nil { + return "", err + } + } + return string(buf[:vallen-1]), nil +} + +func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) { + var value TpacketStats + vallen := _Socklen(SizeofTpacketStats) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptTpacketStatsV3(fd, level, opt int) (*TpacketStatsV3, error) { + var value TpacketStatsV3 + vallen := _Socklen(SizeofTpacketStatsV3) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) +} + +func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) error { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) +} + +// SetsockoptSockFprog attaches a classic BPF or an extended BPF program to a +// socket to filter incoming packets. See 'man 7 socket' for usage information. +func SetsockoptSockFprog(fd, level, opt int, fprog *SockFprog) error { + return setsockopt(fd, level, opt, unsafe.Pointer(fprog), unsafe.Sizeof(*fprog)) +} + +func SetsockoptCanRawFilter(fd, level, opt int, filter []CanFilter) error { + var p unsafe.Pointer + if len(filter) > 0 { + p = unsafe.Pointer(&filter[0]) + } + return setsockopt(fd, level, opt, p, uintptr(len(filter)*SizeofCanFilter)) +} + +func SetsockoptTpacketReq(fd, level, opt int, tp *TpacketReq) error { + return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) +} + +func SetsockoptTpacketReq3(fd, level, opt int, tp *TpacketReq3) error { + return setsockopt(fd, level, opt, unsafe.Pointer(tp), unsafe.Sizeof(*tp)) +} + +func SetsockoptTCPRepairOpt(fd, level, opt int, o []TCPRepairOpt) (err error) { + if len(o) == 0 { + return EINVAL + } + return setsockopt(fd, level, opt, unsafe.Pointer(&o[0]), uintptr(SizeofTCPRepairOpt*len(o))) +} + +// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) + +// KeyctlInt calls keyctl commands in which each argument is an int. +// These commands are KEYCTL_REVOKE, KEYCTL_CHOWN, KEYCTL_CLEAR, KEYCTL_LINK, +// KEYCTL_UNLINK, KEYCTL_NEGATE, KEYCTL_SET_REQKEY_KEYRING, KEYCTL_SET_TIMEOUT, +// KEYCTL_ASSUME_AUTHORITY, KEYCTL_SESSION_TO_PARENT, KEYCTL_REJECT, +// KEYCTL_INVALIDATE, and KEYCTL_GET_PERSISTENT. +//sys KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) = SYS_KEYCTL + +// KeyctlBuffer calls keyctl commands in which the third and fourth +// arguments are a buffer and its length, respectively. +// These commands are KEYCTL_UPDATE, KEYCTL_READ, and KEYCTL_INSTANTIATE. +//sys KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) = SYS_KEYCTL + +// KeyctlString calls keyctl commands which return a string. +// These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY. +func KeyctlString(cmd int, id int) (string, error) { + // We must loop as the string data may change in between the syscalls. + // We could allocate a large buffer here to reduce the chance that the + // syscall needs to be called twice; however, this is unnecessary as + // the performance loss is negligible. + var buffer []byte + for { + // Try to fill the buffer with data + length, err := KeyctlBuffer(cmd, id, buffer, 0) + if err != nil { + return "", err + } + + // Check if the data was written + if length <= len(buffer) { + // Exclude the null terminator + return string(buffer[:length-1]), nil + } + + // Make a bigger buffer if needed + buffer = make([]byte, length) + } +} + +// Keyctl commands with special signatures. + +// KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command. +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html +func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) { + createInt := 0 + if create { + createInt = 1 + } + return KeyctlInt(KEYCTL_GET_KEYRING_ID, id, createInt, 0, 0) +} + +// KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the +// key handle permission mask as described in the "keyctl setperm" section of +// http://man7.org/linux/man-pages/man1/keyctl.1.html. +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html +func KeyctlSetperm(id int, perm uint32) error { + _, err := KeyctlInt(KEYCTL_SETPERM, id, int(perm), 0, 0) + return err +} + +//sys keyctlJoin(cmd int, arg2 string) (ret int, err error) = SYS_KEYCTL + +// KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command. +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html +func KeyctlJoinSessionKeyring(name string) (ringid int, err error) { + return keyctlJoin(KEYCTL_JOIN_SESSION_KEYRING, name) +} + +//sys keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) = SYS_KEYCTL + +// KeyctlSearch implements the KEYCTL_SEARCH command. +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_search.3.html +func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) { + return keyctlSearch(KEYCTL_SEARCH, ringid, keyType, description, destRingid) +} + +//sys keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) = SYS_KEYCTL + +// KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This +// command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice +// of Iovec (each of which represents a buffer) instead of a single buffer. +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html +func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error { + return keyctlIOV(KEYCTL_INSTANTIATE_IOV, id, payload, ringid) +} + +//sys keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) = SYS_KEYCTL + +// KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command +// computes a Diffie-Hellman shared secret based on the provide params. The +// secret is written to the provided buffer and the returned size is the number +// of bytes written (returning an error if there is insufficient space in the +// buffer). If a nil buffer is passed in, this function returns the minimum +// buffer length needed to store the appropriate data. Note that this differs +// from KEYCTL_READ's behavior which always returns the requested payload size. +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html +func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) { + return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer) +} + +// KeyctlRestrictKeyring implements the KEYCTL_RESTRICT_KEYRING command. This +// command limits the set of keys that can be linked to the keyring, regardless +// of keyring permissions. The command requires the "setattr" permission. +// +// When called with an empty keyType the command locks the keyring, preventing +// any further keys from being linked to the keyring. +// +// The "asymmetric" keyType defines restrictions requiring key payloads to be +// DER encoded X.509 certificates signed by keys in another keyring. Restrictions +// for "asymmetric" include "builtin_trusted", "builtin_and_secondary_trusted", +// "key_or_keyring:", and "key_or_keyring::chain". +// +// As of Linux 4.12, only the "asymmetric" keyType defines type-specific +// restrictions. +// +// See the full documentation at: +// http://man7.org/linux/man-pages/man3/keyctl_restrict_keyring.3.html +// http://man7.org/linux/man-pages/man2/keyctl.2.html +func KeyctlRestrictKeyring(ringid int, keyType string, restriction string) error { + if keyType == "" { + return keyctlRestrictKeyring(KEYCTL_RESTRICT_KEYRING, ringid) + } + return keyctlRestrictKeyringByType(KEYCTL_RESTRICT_KEYRING, ringid, keyType, restriction) +} + +//sys keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) = SYS_KEYCTL +//sys keyctlRestrictKeyring(cmd int, arg2 int) (err error) = SYS_KEYCTL + +func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(rsa)) + msg.Namelen = uint32(SizeofSockaddrAny) + var dummy byte + if len(oob) > 0 { + if emptyIovecs(iov) { + var sockType int + sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) + if err != nil { + return + } + // receive at least one normal byte + if sockType != SOCK_DGRAM { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + } + msg.Control = &oob[0] + msg.SetControllen(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = recvmsg(fd, &msg, flags); err != nil { + return + } + oobn = int(msg.Controllen) + recvflags = int(msg.Flags) + return +} + +func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { + var msg Msghdr + msg.Name = (*byte)(ptr) + msg.Namelen = uint32(salen) + var dummy byte + var empty bool + if len(oob) > 0 { + empty = emptyIovecs(iov) + if empty { + var sockType int + sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) + if err != nil { + return 0, err + } + // send at least one normal byte + if sockType != SOCK_DGRAM { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + } + msg.Control = &oob[0] + msg.SetControllen(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = sendmsg(fd, &msg, flags); err != nil { + return 0, err + } + if len(oob) > 0 && empty { + n = 0 + } + return n, nil +} + +// BindToDevice binds the socket associated with fd to device. +func BindToDevice(fd int, device string) (err error) { + return SetsockoptString(fd, SOL_SOCKET, SO_BINDTODEVICE, device) +} + +//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) + +func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) { + // The peek requests are machine-size oriented, so we wrap it + // to retrieve arbitrary-length data. + + // The ptrace syscall differs from glibc's ptrace. + // Peeks returns the word in *data, not as the return value. + + var buf [SizeofPtr]byte + + // Leading edge. PEEKTEXT/PEEKDATA don't require aligned + // access (PEEKUSER warns that it might), but if we don't + // align our reads, we might straddle an unmapped page + // boundary and not get the bytes leading up to the page + // boundary. + n := 0 + if addr%SizeofPtr != 0 { + err = ptrace(req, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0]))) + if err != nil { + return 0, err + } + n += copy(out, buf[addr%SizeofPtr:]) + out = out[n:] + } + + // Remainder. + for len(out) > 0 { + // We use an internal buffer to guarantee alignment. + // It's not documented if this is necessary, but we're paranoid. + err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0]))) + if err != nil { + return n, err + } + copied := copy(out, buf[0:]) + n += copied + out = out[copied:] + } + + return n, nil +} + +func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) { + return ptracePeek(PTRACE_PEEKTEXT, pid, addr, out) +} + +func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) { + return ptracePeek(PTRACE_PEEKDATA, pid, addr, out) +} + +func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error) { + return ptracePeek(PTRACE_PEEKUSR, pid, addr, out) +} + +func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) { + // As for ptracePeek, we need to align our accesses to deal + // with the possibility of straddling an invalid page. + + // Leading edge. + n := 0 + if addr%SizeofPtr != 0 { + var buf [SizeofPtr]byte + err = ptrace(peekReq, pid, addr-addr%SizeofPtr, uintptr(unsafe.Pointer(&buf[0]))) + if err != nil { + return 0, err + } + n += copy(buf[addr%SizeofPtr:], data) + word := *((*uintptr)(unsafe.Pointer(&buf[0]))) + err = ptrace(pokeReq, pid, addr-addr%SizeofPtr, word) + if err != nil { + return 0, err + } + data = data[n:] + } + + // Interior. + for len(data) > SizeofPtr { + word := *((*uintptr)(unsafe.Pointer(&data[0]))) + err = ptrace(pokeReq, pid, addr+uintptr(n), word) + if err != nil { + return n, err + } + n += SizeofPtr + data = data[SizeofPtr:] + } + + // Trailing edge. + if len(data) > 0 { + var buf [SizeofPtr]byte + err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0]))) + if err != nil { + return n, err + } + copy(buf[0:], data) + word := *((*uintptr)(unsafe.Pointer(&buf[0]))) + err = ptrace(pokeReq, pid, addr+uintptr(n), word) + if err != nil { + return n, err + } + n += len(data) + } + + return n, nil +} + +func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) { + return ptracePoke(PTRACE_POKETEXT, PTRACE_PEEKTEXT, pid, addr, data) +} + +func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) { + return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data) +} + +func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) { + return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data) +} + +func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} + +func PtraceSetOptions(pid int, options int) (err error) { + return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options)) +} + +func PtraceGetEventMsg(pid int) (msg uint, err error) { + var data _C_long + err = ptrace(PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data))) + msg = uint(data) + return +} + +func PtraceCont(pid int, signal int) (err error) { + return ptrace(PTRACE_CONT, pid, 0, uintptr(signal)) +} + +func PtraceSyscall(pid int, signal int) (err error) { + return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal)) +} + +func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) } + +func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) } + +func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } + +func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) } + +func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) } + +//sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) + +func Reboot(cmd int) (err error) { + return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "") +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} + +//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) + +func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) { + // Certain file systems get rather angry and EINVAL if you give + // them an empty string of data, rather than NULL. + if data == "" { + return mount(source, target, fstype, flags, nil) + } + datap, err := BytePtrFromString(data) + if err != nil { + return err + } + return mount(source, target, fstype, flags, datap) +} + +//sys mountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr, size uintptr) (err error) = SYS_MOUNT_SETATTR + +// MountSetattr is a wrapper for mount_setattr(2). +// https://man7.org/linux/man-pages/man2/mount_setattr.2.html +// +// Requires kernel >= 5.12. +func MountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr) error { + return mountSetattr(dirfd, pathname, flags, attr, unsafe.Sizeof(*attr)) +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +// Sendto +// Recvfrom +// Socketpair + +/* + * Direct access + */ +//sys Acct(path string) (err error) +//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) +//sys Adjtimex(buf *Timex) (state int, err error) +//sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error) +//sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error) +//sys Chdir(path string) (err error) +//sys Chroot(path string) (err error) +//sys ClockAdjtime(clockid int32, buf *Timex) (state int, err error) +//sys ClockGetres(clockid int32, res *Timespec) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) +//sys Close(fd int) (err error) +//sys CloseRange(first uint, last uint, flags uint) (err error) +//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) +//sys DeleteModule(name string, flags int) (err error) +//sys Dup(oldfd int) (fd int, err error) + +func Dup2(oldfd, newfd int) error { + return Dup3(oldfd, newfd, 0) +} + +//sys Dup3(oldfd int, newfd int, flags int) (err error) +//sysnb EpollCreate1(flag int) (fd int, err error) +//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) +//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2 +//sys Exit(code int) = SYS_EXIT_GROUP +//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Fdatasync(fd int) (err error) +//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) +//sys FinitModule(fd int, params string, flags int) (err error) +//sys Flistxattr(fd int, dest []byte) (sz int, err error) +//sys Flock(fd int, how int) (err error) +//sys Fremovexattr(fd int, attr string) (err error) +//sys Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) +//sys Fsync(fd int) (err error) +//sys Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) +//sys Fsopen(fsName string, flags int) (fd int, err error) +//sys Fspick(dirfd int, pathName string, flags int) (fd int, err error) +//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64 +//sysnb Getpgid(pid int) (pgid int, err error) + +func Getpgrp() (pid int) { + pid, _ = Getpgid(0) + return +} + +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sys Getrandom(buf []byte, flags int) (n int, err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettid() (tid int) +//sys Getxattr(path string, attr string, dest []byte) (sz int, err error) +//sys InitModule(moduleImage []byte, params string) (err error) +//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) +//sysnb InotifyInit1(flags int) (fd int, err error) +//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) +//sysnb Kill(pid int, sig syscall.Signal) (err error) +//sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG +//sys Lgetxattr(path string, attr string, dest []byte) (sz int, err error) +//sys Listxattr(path string, dest []byte) (sz int, err error) +//sys Llistxattr(path string, dest []byte) (sz int, err error) +//sys Lremovexattr(path string, attr string) (err error) +//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error) +//sys MemfdCreate(name string, flags int) (fd int, err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) +//sys MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys OpenTree(dfd int, fileName string, flags uint) (r int, err error) +//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) +//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT +//sysnb Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64 +//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) +//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6 +//sys read(fd int, p []byte) (n int, err error) +//sys Removexattr(path string, attr string) (err error) +//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) +//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) +//sys Setdomainname(p []byte) (err error) +//sys Sethostname(p []byte) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tv *Timeval) (err error) +//sys Setns(fd int, nstype int) (err error) + +// PrctlRetInt performs a prctl operation specified by option and further +// optional arguments arg2 through arg5 depending on option. It returns a +// non-negative integer that is returned by the prctl syscall. +func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (int, error) { + ret, _, err := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) + if err != 0 { + return 0, err + } + return int(ret), nil +} + +func Setuid(uid int) (err error) { + return syscall.Setuid(uid) +} + +func Setgid(gid int) (err error) { + return syscall.Setgid(gid) +} + +func Setreuid(ruid, euid int) (err error) { + return syscall.Setreuid(ruid, euid) +} + +func Setregid(rgid, egid int) (err error) { + return syscall.Setregid(rgid, egid) +} + +func Setresuid(ruid, euid, suid int) (err error) { + return syscall.Setresuid(ruid, euid, suid) +} + +func Setresgid(rgid, egid, sgid int) (err error) { + return syscall.Setresgid(rgid, egid, sgid) +} + +// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set. +// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability. +// If the call fails due to other reasons, current fsgid will be returned. +func SetfsgidRetGid(gid int) (int, error) { + return setfsgid(gid) +} + +// SetfsuidRetUid sets fsuid for current thread and returns previous fsuid set. +// setfsgid(2) will return a non-nil error only if its caller lacks CAP_SETUID capability +// If the call fails due to other reasons, current fsuid will be returned. +func SetfsuidRetUid(uid int) (int, error) { + return setfsuid(uid) +} + +func Setfsgid(gid int) error { + _, err := setfsgid(gid) + return err +} + +func Setfsuid(uid int) error { + _, err := setfsuid(uid) + return err +} + +func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) { + return signalfd(fd, sigmask, _C__NSIG/8, flags) +} + +//sys Setpriority(which int, who int, prio int) (err error) +//sys Setxattr(path string, attr string, data []byte, flags int) (err error) +//sys signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) = SYS_SIGNALFD4 +//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) +//sys Sync() +//sys Syncfs(fd int) (err error) +//sysnb Sysinfo(info *Sysinfo_t) (err error) +//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error) +//sysnb TimerfdCreate(clockid int, flags int) (fd int, err error) +//sysnb TimerfdGettime(fd int, currValue *ItimerSpec) (err error) +//sysnb TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) +//sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error) +//sysnb Times(tms *Tms) (ticks uintptr, err error) +//sysnb Umask(mask int) (oldmask int) +//sysnb Uname(buf *Utsname) (err error) +//sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2 +//sys Unshare(flags int) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys exitThread(code int) (err error) = SYS_EXIT +//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ +//sys writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE +//sys readv(fd int, iovs []Iovec) (n int, err error) = SYS_READV +//sys writev(fd int, iovs []Iovec) (n int, err error) = SYS_WRITEV +//sys preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PREADV +//sys pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) = SYS_PWRITEV +//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2 +//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2 + +// minIovec is the size of the small initial allocation used by +// Readv, Writev, etc. +// +// This small allocation gets stack allocated, which lets the +// common use case of len(iovs) <= minIovs avoid more expensive +// heap allocations. +const minIovec = 8 + +// appendBytes converts bs to Iovecs and appends them to vecs. +func appendBytes(vecs []Iovec, bs [][]byte) []Iovec { + for _, b := range bs { + var v Iovec + v.SetLen(len(b)) + if len(b) > 0 { + v.Base = &b[0] + } else { + v.Base = (*byte)(unsafe.Pointer(&_zero)) + } + vecs = append(vecs, v) + } + return vecs +} + +// offs2lohi splits offs into its low and high order bits. +func offs2lohi(offs int64) (lo, hi uintptr) { + const longBits = SizeofLong * 8 + return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet +} + +func Readv(fd int, iovs [][]byte) (n int, err error) { + iovecs := make([]Iovec, 0, minIovec) + iovecs = appendBytes(iovecs, iovs) + n, err = readv(fd, iovecs) + readvRacedetect(iovecs, n, err) + return n, err +} + +func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) { + iovecs := make([]Iovec, 0, minIovec) + iovecs = appendBytes(iovecs, iovs) + lo, hi := offs2lohi(offset) + n, err = preadv(fd, iovecs, lo, hi) + readvRacedetect(iovecs, n, err) + return n, err +} + +func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { + iovecs := make([]Iovec, 0, minIovec) + iovecs = appendBytes(iovecs, iovs) + lo, hi := offs2lohi(offset) + n, err = preadv2(fd, iovecs, lo, hi, flags) + readvRacedetect(iovecs, n, err) + return n, err +} + +func readvRacedetect(iovecs []Iovec, n int, err error) { + if !raceenabled { + return + } + for i := 0; n > 0 && i < len(iovecs); i++ { + m := int(iovecs[i].Len) + if m > n { + m = n + } + n -= m + if m > 0 { + raceWriteRange(unsafe.Pointer(iovecs[i].Base), m) + } + } + if err == nil { + raceAcquire(unsafe.Pointer(&ioSync)) + } +} + +func Writev(fd int, iovs [][]byte) (n int, err error) { + iovecs := make([]Iovec, 0, minIovec) + iovecs = appendBytes(iovecs, iovs) + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + n, err = writev(fd, iovecs) + writevRacedetect(iovecs, n) + return n, err +} + +func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) { + iovecs := make([]Iovec, 0, minIovec) + iovecs = appendBytes(iovecs, iovs) + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + lo, hi := offs2lohi(offset) + n, err = pwritev(fd, iovecs, lo, hi) + writevRacedetect(iovecs, n) + return n, err +} + +func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) { + iovecs := make([]Iovec, 0, minIovec) + iovecs = appendBytes(iovecs, iovs) + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + lo, hi := offs2lohi(offset) + n, err = pwritev2(fd, iovecs, lo, hi, flags) + writevRacedetect(iovecs, n) + return n, err +} + +func writevRacedetect(iovecs []Iovec, n int) { + if !raceenabled { + return + } + for i := 0; n > 0 && i < len(iovecs); i++ { + m := int(iovecs[i].Len) + if m > n { + m = n + } + n -= m + if m > 0 { + raceReadRange(unsafe.Pointer(iovecs[i].Base), m) + } + } +} + +// mmap varies by architecture; see syscall_linux_*.go. +//sys munmap(addr uintptr, length uintptr) (err error) + +var mapper = &mmapper{ + active: make(map[*byte][]byte), + mmap: mmap, + munmap: munmap, +} + +func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + return mapper.Mmap(fd, offset, length, prot, flags) +} + +func Munmap(b []byte) (err error) { + return mapper.Munmap(b) +} + +//sys Madvise(b []byte, advice int) (err error) +//sys Mprotect(b []byte, prot int) (err error) +//sys Mlock(b []byte) (err error) +//sys Mlockall(flags int) (err error) +//sys Msync(b []byte, flags int) (err error) +//sys Munlock(b []byte) (err error) +//sys Munlockall() (err error) + +// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd, +// using the specified flags. +func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) { + var p unsafe.Pointer + if len(iovs) > 0 { + p = unsafe.Pointer(&iovs[0]) + } + + n, _, errno := Syscall6(SYS_VMSPLICE, uintptr(fd), uintptr(p), uintptr(len(iovs)), uintptr(flags), 0, 0) + if errno != 0 { + return 0, syscall.Errno(errno) + } + + return int(n), nil +} + +func isGroupMember(gid int) bool { + groups, err := Getgroups() + if err != nil { + return false + } + + for _, g := range groups { + if g == gid { + return true + } + } + return false +} + +//sys faccessat(dirfd int, path string, mode uint32) (err error) +//sys Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + if flags == 0 { + return faccessat(dirfd, path, mode) + } + + if err := Faccessat2(dirfd, path, mode, flags); err != ENOSYS && err != EPERM { + return err + } + + // The Linux kernel faccessat system call does not take any flags. + // The glibc faccessat implements the flags itself; see + // https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD + // Because people naturally expect syscall.Faccessat to act + // like C faccessat, we do the same. + + if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 { + return EINVAL + } + + var st Stat_t + if err := Fstatat(dirfd, path, &st, flags&AT_SYMLINK_NOFOLLOW); err != nil { + return err + } + + mode &= 7 + if mode == 0 { + return nil + } + + var uid int + if flags&AT_EACCESS != 0 { + uid = Geteuid() + } else { + uid = Getuid() + } + + if uid == 0 { + if mode&1 == 0 { + // Root can read and write any file. + return nil + } + if st.Mode&0111 != 0 { + // Root can execute any file that anybody can execute. + return nil + } + return EACCES + } + + var fmode uint32 + if uint32(uid) == st.Uid { + fmode = (st.Mode >> 6) & 7 + } else { + var gid int + if flags&AT_EACCESS != 0 { + gid = Getegid() + } else { + gid = Getgid() + } + + if uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) { + fmode = (st.Mode >> 3) & 7 + } else { + fmode = st.Mode & 7 + } + } + + if fmode&mode == mode { + return nil + } + + return EACCES +} + +//sys nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) = SYS_NAME_TO_HANDLE_AT +//sys openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) = SYS_OPEN_BY_HANDLE_AT + +// fileHandle is the argument to nameToHandleAt and openByHandleAt. We +// originally tried to generate it via unix/linux/types.go with "type +// fileHandle C.struct_file_handle" but that generated empty structs +// for mips64 and mips64le. Instead, hard code it for now (it's the +// same everywhere else) until the mips64 generator issue is fixed. +type fileHandle struct { + Bytes uint32 + Type int32 +} + +// FileHandle represents the C struct file_handle used by +// name_to_handle_at (see NameToHandleAt) and open_by_handle_at (see +// OpenByHandleAt). +type FileHandle struct { + *fileHandle +} + +// NewFileHandle constructs a FileHandle. +func NewFileHandle(handleType int32, handle []byte) FileHandle { + const hdrSize = unsafe.Sizeof(fileHandle{}) + buf := make([]byte, hdrSize+uintptr(len(handle))) + copy(buf[hdrSize:], handle) + fh := (*fileHandle)(unsafe.Pointer(&buf[0])) + fh.Type = handleType + fh.Bytes = uint32(len(handle)) + return FileHandle{fh} +} + +func (fh *FileHandle) Size() int { return int(fh.fileHandle.Bytes) } +func (fh *FileHandle) Type() int32 { return fh.fileHandle.Type } +func (fh *FileHandle) Bytes() []byte { + n := fh.Size() + if n == 0 { + return nil + } + return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n) +} + +// NameToHandleAt wraps the name_to_handle_at system call; it obtains +// a handle for a path name. +func NameToHandleAt(dirfd int, path string, flags int) (handle FileHandle, mountID int, err error) { + var mid _C_int + // Try first with a small buffer, assuming the handle will + // only be 32 bytes. + size := uint32(32 + unsafe.Sizeof(fileHandle{})) + didResize := false + for { + buf := make([]byte, size) + fh := (*fileHandle)(unsafe.Pointer(&buf[0])) + fh.Bytes = size - uint32(unsafe.Sizeof(fileHandle{})) + err = nameToHandleAt(dirfd, path, fh, &mid, flags) + if err == EOVERFLOW { + if didResize { + // We shouldn't need to resize more than once + return + } + didResize = true + size = fh.Bytes + uint32(unsafe.Sizeof(fileHandle{})) + continue + } + if err != nil { + return + } + return FileHandle{fh}, int(mid), nil + } +} + +// OpenByHandleAt wraps the open_by_handle_at system call; it opens a +// file via a handle as previously returned by NameToHandleAt. +func OpenByHandleAt(mountFD int, handle FileHandle, flags int) (fd int, err error) { + return openByHandleAt(mountFD, handle.fileHandle, flags) +} + +// Klogset wraps the sys_syslog system call; it sets console_loglevel to +// the value specified by arg and passes a dummy pointer to bufp. +func Klogset(typ int, arg int) (err error) { + var p unsafe.Pointer + _, _, errno := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(p), uintptr(arg)) + if errno != 0 { + return errnoErr(errno) + } + return nil +} + +// RemoteIovec is Iovec with the pointer replaced with an integer. +// It is used for ProcessVMReadv and ProcessVMWritev, where the pointer +// refers to a location in a different process' address space, which +// would confuse the Go garbage collector. +type RemoteIovec struct { + Base uintptr + Len int +} + +//sys ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_READV +//sys ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) = SYS_PROCESS_VM_WRITEV + +//sys PidfdOpen(pid int, flags int) (fd int, err error) = SYS_PIDFD_OPEN +//sys PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) = SYS_PIDFD_GETFD +//sys PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) = SYS_PIDFD_SEND_SIGNAL + +//sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) +//sys shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) +//sys shmdt(addr uintptr) (err error) +//sys shmget(key int, size int, flag int) (id int, err error) + +//sys getitimer(which int, currValue *Itimerval) (err error) +//sys setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) + +// MakeItimerval creates an Itimerval from interval and value durations. +func MakeItimerval(interval, value time.Duration) Itimerval { + return Itimerval{ + Interval: NsecToTimeval(interval.Nanoseconds()), + Value: NsecToTimeval(value.Nanoseconds()), + } +} + +// A value which may be passed to the which parameter for Getitimer and +// Setitimer. +type ItimerWhich int + +// Possible which values for Getitimer and Setitimer. +const ( + ItimerReal ItimerWhich = ITIMER_REAL + ItimerVirtual ItimerWhich = ITIMER_VIRTUAL + ItimerProf ItimerWhich = ITIMER_PROF +) + +// Getitimer wraps getitimer(2) to return the current value of the timer +// specified by which. +func Getitimer(which ItimerWhich) (Itimerval, error) { + var it Itimerval + if err := getitimer(int(which), &it); err != nil { + return Itimerval{}, err + } + + return it, nil +} + +// Setitimer wraps setitimer(2) to arm or disarm the timer specified by which. +// It returns the previous value of the timer. +// +// If the Itimerval argument is the zero value, the timer will be disarmed. +func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) { + var prev Itimerval + if err := setitimer(int(which), &it, &prev); err != nil { + return Itimerval{}, err + } + + return prev, nil +} + +//sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK + +func PthreadSigmask(how int, set, oldset *Sigset_t) error { + if oldset != nil { + // Explicitly clear in case Sigset_t is larger than _C__NSIG. + *oldset = Sigset_t{} + } + return rtSigprocmask(how, set, oldset, _C__NSIG/8) +} + +/* + * Unimplemented + */ +// AfsSyscall +// ArchPrctl +// Brk +// ClockNanosleep +// ClockSettime +// Clone +// EpollCtlOld +// EpollPwait +// EpollWaitOld +// Execve +// Fork +// Futex +// GetKernelSyms +// GetMempolicy +// GetRobustList +// GetThreadArea +// Getpmsg +// IoCancel +// IoDestroy +// IoGetevents +// IoSetup +// IoSubmit +// IoprioGet +// IoprioSet +// KexecLoad +// LookupDcookie +// Mbind +// MigratePages +// Mincore +// ModifyLdt +// Mount +// MovePages +// MqGetsetattr +// MqNotify +// MqOpen +// MqTimedreceive +// MqTimedsend +// MqUnlink +// Mremap +// Msgctl +// Msgget +// Msgrcv +// Msgsnd +// Nfsservctl +// Personality +// Pselect6 +// Ptrace +// Putpmsg +// Quotactl +// Readahead +// Readv +// RemapFilePages +// RestartSyscall +// RtSigaction +// RtSigpending +// RtSigqueueinfo +// RtSigreturn +// RtSigsuspend +// RtSigtimedwait +// SchedGetPriorityMax +// SchedGetPriorityMin +// SchedGetparam +// SchedGetscheduler +// SchedRrGetInterval +// SchedSetparam +// SchedYield +// Security +// Semctl +// Semget +// Semop +// Semtimedop +// SetMempolicy +// SetRobustList +// SetThreadArea +// SetTidAddress +// Sigaltstack +// Swapoff +// Swapon +// Sysfs +// TimerCreate +// TimerDelete +// TimerGetoverrun +// TimerGettime +// TimerSettime +// Tkill (obsolete) +// Tuxcall +// Umount2 +// Uselib +// Utimensat +// Vfork +// Vhangup +// Vserver +// _Sysctl diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go new file mode 100644 index 0000000..ff5b589 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_386.go @@ -0,0 +1,342 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build 386 && linux +// +build 386,linux + +package unix + +import ( + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: int32(sec), Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int32(sec), Usec: int32(usec)} +} + +// 64-bit file system and 32-bit uid calls +// (386 default is 32-bit file system and 16-bit uid). +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64 +//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 +//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 +//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 +//sysnb Getegid() (egid int) = SYS_GETEGID32 +//sysnb Geteuid() (euid int) = SYS_GETEUID32 +//sysnb Getgid() (gid int) = SYS_GETGID32 +//sysnb Getuid() (uid int) = SYS_GETUID32 +//sys Ioperm(from int, num int, on int) (err error) +//sys Iopl(level int) (err error) +//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 +//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 +//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32 +//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32 +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) +//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32 +//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32 +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT + +//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) +//sys Pause() (err error) + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + page := uintptr(offset / 4096) + if offset != int64(page)*4096 { + return 0, EINVAL + } + return mmap2(addr, length, prot, flags, fd, page) +} + +type rlimit32 struct { + Cur uint32 + Max uint32 +} + +//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT + +const rlimInf32 = ^uint32(0) +const rlimInf64 = ^uint64(0) + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, nil, rlim) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + err = getrlimit(resource, &rl) + if err != nil { + return + } + + if rl.Cur == rlimInf32 { + rlim.Cur = rlimInf64 + } else { + rlim.Cur = uint64(rl.Cur) + } + + if rl.Max == rlimInf32 { + rlim.Max = rlimInf64 + } else { + rlim.Max = uint64(rl.Max) + } + return +} + +//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, rlim, nil) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + if rlim.Cur == rlimInf64 { + rl.Cur = rlimInf32 + } else if rlim.Cur < uint64(rlimInf32) { + rl.Cur = uint32(rlim.Cur) + } else { + return EINVAL + } + if rlim.Max == rlimInf64 { + rl.Max = rlimInf32 + } else if rlim.Max < uint64(rlimInf32) { + rl.Max = uint32(rlim.Max) + } else { + return EINVAL + } + + return setrlimit(resource, &rl) +} + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + newoffset, errno := seek(fd, offset, whence) + if errno != 0 { + return 0, errno + } + return newoffset, nil +} + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Time(t *Time_t) (tt Time_t, err error) +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +// On x86 Linux, all the socket calls go through an extra indirection, +// I think because the 5-register system call interface can't handle +// the 6-argument calls like sendto and recvfrom. Instead the +// arguments to the underlying system call are the number below +// and a pointer to an array of uintptr. We hide the pointer in the +// socketcall assembly to avoid allocation on every system call. + +const ( + // see linux/net.h + _SOCKET = 1 + _BIND = 2 + _CONNECT = 3 + _LISTEN = 4 + _ACCEPT = 5 + _GETSOCKNAME = 6 + _GETPEERNAME = 7 + _SOCKETPAIR = 8 + _SEND = 9 + _RECV = 10 + _SENDTO = 11 + _RECVFROM = 12 + _SHUTDOWN = 13 + _SETSOCKOPT = 14 + _GETSOCKOPT = 15 + _SENDMSG = 16 + _RECVMSG = 17 + _ACCEPT4 = 18 + _RECVMMSG = 19 + _SENDMMSG = 20 +) + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + fd, e := socketcall(_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + if e != 0 { + err = e + } + return +} + +func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, e := rawsocketcall(_GETSOCKNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, e := rawsocketcall(_GETPEERNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) { + _, e := rawsocketcall(_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0) + if e != 0 { + err = e + } + return +} + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, e := socketcall(_BIND, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, e := socketcall(_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func socket(domain int, typ int, proto int) (fd int, err error) { + fd, e := rawsocketcall(_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, e := socketcall(_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e != 0 { + err = e + } + return +} + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, e := socketcall(_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), vallen, 0) + if e != 0 { + err = e + } + return +} + +func recvfrom(s int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var base uintptr + if len(p) > 0 { + base = uintptr(unsafe.Pointer(&p[0])) + } + n, e := socketcall(_RECVFROM, uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + if e != 0 { + err = e + } + return +} + +func sendto(s int, p []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var base uintptr + if len(p) > 0 { + base = uintptr(unsafe.Pointer(&p[0])) + } + _, e := socketcall(_SENDTO, uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e != 0 { + err = e + } + return +} + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + n, e := socketcall(_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + n, e := socketcall(_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func Listen(s int, n int) (err error) { + _, e := socketcall(_LISTEN, uintptr(s), uintptr(n), 0, 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func Shutdown(s, how int) (err error) { + _, e := socketcall(_SHUTDOWN, uintptr(s), uintptr(how), 0, 0, 0, 0) + if e != 0 { + err = e + } + return +} + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = e + } + return +} + +func Statfs(path string, buf *Statfs_t) (err error) { + pathp, err := BytePtrFromString(path) + if err != nil { + return err + } + _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = e + } + return +} + +func (r *PtraceRegs) PC() uint64 { return uint64(uint32(r.Eip)) } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Eip = int32(pc) } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go b/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go new file mode 100644 index 0000000..08086ac --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go @@ -0,0 +1,14 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) +// +build linux +// +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 + +package unix + +// SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH +// values. + +//sys Alarm(seconds uint) (remaining uint, err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go new file mode 100644 index 0000000..9b27035 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go @@ -0,0 +1,147 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && linux +// +build amd64,linux + +package unix + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Getuid() (uid int) +//sys Ioperm(from int, num int, on int) (err error) +//sys Iopl(level int) (err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) + +func Lstat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW) +} + +//sys MemfdSecret(flags int) (fd int, err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) +} + +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) + +func Stat(path string, stat *Stat_t) (err error) { + // Use fstatat, because Android's seccomp policy blocks stat. + return Fstatat(AT_FDCWD, path, stat, 0) +} + +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) + +func Gettimeofday(tv *Timeval) (err error) { + errno := gettimeofday(tv) + if errno != 0 { + return errno + } + return nil +} + +func Time(t *Time_t) (tt Time_t, err error) { + var tv Timeval + errno := gettimeofday(&tv) + if errno != 0 { + return 0, errno + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func (r *PtraceRegs) PC() uint64 { return r.Rip } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go new file mode 100644 index 0000000..8b0f0f3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go @@ -0,0 +1,13 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && linux && gc +// +build amd64,linux,gc + +package unix + +import "syscall" + +//go:noescape +func gettimeofday(tv *Timeval) (err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go new file mode 100644 index 0000000..856ad1d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go @@ -0,0 +1,244 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm && linux +// +build arm,linux + +package unix + +import ( + "unsafe" +) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: int32(sec), Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int32(sec), Usec: int32(usec)} +} + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + newoffset, errno := seek(fd, offset, whence) + if errno != 0 { + return 0, errno + } + return newoffset, nil +} + +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32 +//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32 +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) + +// 64-bit file system and 32-bit uid calls +// (16-bit uid calls are not always supported in newer kernels) +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 +//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 +//sysnb Getegid() (egid int) = SYS_GETEGID32 +//sysnb Geteuid() (euid int) = SYS_GETEUID32 +//sysnb Getgid() (gid int) = SYS_GETGID32 +//sysnb Getuid() (uid int) = SYS_GETUID32 +//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 +//sys Listen(s int, n int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 +//sys Pause() (err error) +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT +//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32 +//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32 +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) +//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 +//sys Ustat(dev int, ubuf *Ustat_t) (err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) + +func Time(t *Time_t) (Time_t, error) { + var tv Timeval + err := Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +func Utime(path string, buf *Utimbuf) error { + tv := []Timeval{ + {Sec: buf.Actime}, + {Sec: buf.Modtime}, + } + return Utimes(path, tv) +} + +//sys utimes(path string, times *[2]Timeval) (err error) + +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 +//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_ARM_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = e + } + return +} + +func Statfs(path string, buf *Statfs_t) (err error) { + pathp, err := BytePtrFromString(path) + if err != nil { + return err + } + _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = e + } + return +} + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + page := uintptr(offset / 4096) + if offset != int64(page)*4096 { + return 0, EINVAL + } + return mmap2(addr, length, prot, flags, fd, page) +} + +type rlimit32 struct { + Cur uint32 + Max uint32 +} + +//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_UGETRLIMIT + +const rlimInf32 = ^uint32(0) +const rlimInf64 = ^uint64(0) + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, nil, rlim) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + err = getrlimit(resource, &rl) + if err != nil { + return + } + + if rl.Cur == rlimInf32 { + rlim.Cur = rlimInf64 + } else { + rlim.Cur = uint64(rl.Cur) + } + + if rl.Max == rlimInf32 { + rlim.Max = rlimInf64 + } else { + rlim.Max = uint64(rl.Max) + } + return +} + +//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, rlim, nil) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + if rlim.Cur == rlimInf64 { + rl.Cur = rlimInf32 + } else if rlim.Cur < uint64(rlimInf32) { + rl.Cur = uint32(rlim.Cur) + } else { + return EINVAL + } + if rlim.Max == rlimInf64 { + rl.Max = rlimInf32 + } else if rlim.Max < uint64(rlimInf32) { + rl.Max = uint32(rlim.Max) + } else { + return EINVAL + } + + return setrlimit(resource, &rl) +} + +func (r *PtraceRegs) PC() uint64 { return uint64(r.Uregs[15]) } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Uregs[15] = uint32(pc) } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint32(length) +} + +//sys armSyncFileRange(fd int, flags int, off int64, n int64) (err error) = SYS_ARM_SYNC_FILE_RANGE + +func SyncFileRange(fd int, off int64, n int64, flags int) error { + // The sync_file_range and arm_sync_file_range syscalls differ only in the + // order of their arguments. + return armSyncFileRange(fd, flags, off, n) +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go new file mode 100644 index 0000000..6422704 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -0,0 +1,195 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm64 && linux +// +build arm64,linux + +package unix + +import "unsafe" + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Getuid() (uid int) +//sys Listen(s int, n int) (err error) +//sys MemfdSecret(flags int) (fd int, err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) +} + +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb setrlimit(resource int, rlim *Rlimit) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) + +func Stat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, 0) +} + +func Lchown(path string, uid int, gid int) (err error) { + return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW) +} + +func Lstat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW) +} + +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + return ENOSYS +} + +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +//sysnb Gettimeofday(tv *Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) { + if tv == nil { + return utimensat(dirfd, path, nil, 0) + } + + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func Time(t *Time_t) (Time_t, error) { + var tv Timeval + err := Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +func Utime(path string, buf *Utimbuf) error { + tv := []Timeval{ + {Sec: buf.Actime}, + {Sec: buf.Modtime}, + } + return Utimes(path, tv) +} + +func utimes(path string, tv *[2]Timeval) (err error) { + if tv == nil { + return utimensat(AT_FDCWD, path, nil, 0) + } + + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +// Getrlimit prefers the prlimit64 system call. See issue 38604. +func Getrlimit(resource int, rlim *Rlimit) error { + err := Prlimit(0, resource, nil, rlim) + if err != ENOSYS { + return err + } + return getrlimit(resource, rlim) +} + +// Setrlimit prefers the prlimit64 system call. See issue 38604. +func Setrlimit(resource int, rlim *Rlimit) error { + err := Prlimit(0, resource, rlim, nil) + if err != ENOSYS { + return err + } + return setrlimit(resource, rlim) +} + +func (r *PtraceRegs) PC() uint64 { return r.Pc } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} + +func Pause() error { + _, err := ppoll(nil, 0, nil, nil) + return err +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gc.go b/vendor/golang.org/x/sys/unix/syscall_linux_gc.go new file mode 100644 index 0000000..2b1168d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_gc.go @@ -0,0 +1,15 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && gc +// +build linux,gc + +package unix + +// SyscallNoError may be used instead of Syscall for syscalls that don't fail. +func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) + +// RawSyscallNoError may be used instead of RawSyscall for syscalls that don't +// fail. +func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go new file mode 100644 index 0000000..9843fb4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go @@ -0,0 +1,17 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && gc && 386 +// +build linux,gc,386 + +package unix + +import "syscall" + +// Underlying system call writes to newoffset via pointer. +// Implemented in assembly to avoid allocation. +func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) + +func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) +func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go new file mode 100644 index 0000000..a6008fc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go @@ -0,0 +1,14 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm && gc && linux +// +build arm,gc,linux + +package unix + +import "syscall" + +// Underlying system call writes to newoffset via pointer. +// Implemented in assembly to avoid allocation. +func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go new file mode 100644 index 0000000..7740af2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go @@ -0,0 +1,31 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && gccgo && 386 +// +build linux,gccgo,386 + +package unix + +import ( + "syscall" + "unsafe" +) + +func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { + var newoffset int64 + offsetLow := uint32(offset & 0xffffffff) + offsetHigh := uint32((offset >> 32) & 0xffffffff) + _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) + return newoffset, err +} + +func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) { + fd, _, err := Syscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0) + return int(fd), err +} + +func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) { + fd, _, err := RawSyscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0) + return int(fd), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go new file mode 100644 index 0000000..e16a122 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go @@ -0,0 +1,21 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && gccgo && arm +// +build linux,gccgo,arm + +package unix + +import ( + "syscall" + "unsafe" +) + +func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { + var newoffset int64 + offsetLow := uint32(offset & 0xffffffff) + offsetHigh := uint32((offset >> 32) & 0xffffffff) + _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) + return newoffset, err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go b/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go new file mode 100644 index 0000000..59dab51 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go @@ -0,0 +1,222 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build loong64 && linux +// +build loong64,linux + +package unix + +import "unsafe" + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getuid() (uid int) +//sys Listen(s int, n int) (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) +} + +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) + +func timespecFromStatxTimestamp(x StatxTimestamp) Timespec { + return Timespec{ + Sec: x.Sec, + Nsec: int64(x.Nsec), + } +} + +func Fstatat(fd int, path string, stat *Stat_t, flags int) error { + var r Statx_t + // Do it the glibc way, add AT_NO_AUTOMOUNT. + if err := Statx(fd, path, AT_NO_AUTOMOUNT|flags, STATX_BASIC_STATS, &r); err != nil { + return err + } + + stat.Dev = Mkdev(r.Dev_major, r.Dev_minor) + stat.Ino = r.Ino + stat.Mode = uint32(r.Mode) + stat.Nlink = r.Nlink + stat.Uid = r.Uid + stat.Gid = r.Gid + stat.Rdev = Mkdev(r.Rdev_major, r.Rdev_minor) + // hope we don't get to process files so large to overflow these size + // fields... + stat.Size = int64(r.Size) + stat.Blksize = int32(r.Blksize) + stat.Blocks = int64(r.Blocks) + stat.Atim = timespecFromStatxTimestamp(r.Atime) + stat.Mtim = timespecFromStatxTimestamp(r.Mtime) + stat.Ctim = timespecFromStatxTimestamp(r.Ctime) + + return nil +} + +func Fstat(fd int, stat *Stat_t) (err error) { + return Fstatat(fd, "", stat, AT_EMPTY_PATH) +} + +func Stat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, 0) +} + +func Lchown(path string, uid int, gid int) (err error) { + return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW) +} + +func Lstat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW) +} + +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + return ENOSYS +} + +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +//sysnb Gettimeofday(tv *Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, nil, rlim) + return +} + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, rlim, nil) + return +} + +func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) { + if tv == nil { + return utimensat(dirfd, path, nil, 0) + } + + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func Time(t *Time_t) (Time_t, error) { + var tv Timeval + err := Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +func Utime(path string, buf *Utimbuf) error { + tv := []Timeval{ + {Sec: buf.Actime}, + {Sec: buf.Modtime}, + } + return Utimes(path, tv) +} + +func utimes(path string, tv *[2]Timeval) (err error) { + if tv == nil { + return utimensat(AT_FDCWD, path, nil, 0) + } + + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func (r *PtraceRegs) PC() uint64 { return r.Era } + +func (r *PtraceRegs) SetPC(era uint64) { r.Era = era } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} + +func Pause() error { + _, err := ppoll(nil, 0, nil, nil) + return err +} + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0) +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go new file mode 100644 index 0000000..bfef09a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -0,0 +1,191 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (mips64 || mips64le) +// +build linux +// +build mips64 mips64le + +package unix + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Getuid() (uid int) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) +} + +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) + +func Time(t *Time_t) (tt Time_t, err error) { + var tv Timeval + err = Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func Ioperm(from int, num int, on int) (err error) { + return ENOSYS +} + +func Iopl(level int) (err error) { + return ENOSYS +} + +type stat_t struct { + Dev uint32 + Pad0 [3]int32 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint32 + Pad1 [3]uint32 + Size int64 + Atime uint32 + Atime_nsec uint32 + Mtime uint32 + Mtime_nsec uint32 + Ctime uint32 + Ctime_nsec uint32 + Blksize uint32 + Pad2 uint32 + Blocks int64 +} + +//sys fstat(fd int, st *stat_t) (err error) +//sys fstatat(dirfd int, path string, st *stat_t, flags int) (err error) = SYS_NEWFSTATAT +//sys lstat(path string, st *stat_t) (err error) +//sys stat(path string, st *stat_t) (err error) + +func Fstat(fd int, s *Stat_t) (err error) { + st := &stat_t{} + err = fstat(fd, st) + fillStat_t(s, st) + return +} + +func Fstatat(dirfd int, path string, s *Stat_t, flags int) (err error) { + st := &stat_t{} + err = fstatat(dirfd, path, st, flags) + fillStat_t(s, st) + return +} + +func Lstat(path string, s *Stat_t) (err error) { + st := &stat_t{} + err = lstat(path, st) + fillStat_t(s, st) + return +} + +func Stat(path string, s *Stat_t) (err error) { + st := &stat_t{} + err = stat(path, st) + fillStat_t(s, st) + return +} + +func fillStat_t(s *Stat_t, st *stat_t) { + s.Dev = st.Dev + s.Ino = st.Ino + s.Mode = st.Mode + s.Nlink = st.Nlink + s.Uid = st.Uid + s.Gid = st.Gid + s.Rdev = st.Rdev + s.Size = st.Size + s.Atim = Timespec{int64(st.Atime), int64(st.Atime_nsec)} + s.Mtim = Timespec{int64(st.Mtime), int64(st.Mtime_nsec)} + s.Ctim = Timespec{int64(st.Ctime), int64(st.Ctime_nsec)} + s.Blksize = st.Blksize + s.Blocks = st.Blocks +} + +func (r *PtraceRegs) PC() uint64 { return r.Epc } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go new file mode 100644 index 0000000..ab30250 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go @@ -0,0 +1,203 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (mips || mipsle) +// +build linux +// +build mips mipsle + +package unix + +import ( + "syscall" + "unsafe" +) + +func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getuid() (uid int) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) + +//sys Ioperm(from int, num int, on int) (err error) +//sys Iopl(level int) (err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Time(t *Time_t) (tt Time_t, err error) +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 +//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 +//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 + +//sys Pause() (err error) + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = errnoErr(e) + } + return +} + +func Statfs(path string, buf *Statfs_t) (err error) { + p, err := BytePtrFromString(path) + if err != nil { + return err + } + _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = errnoErr(e) + } + return +} + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + _, _, e := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offset>>32), uintptr(offset), uintptr(unsafe.Pointer(&off)), uintptr(whence), 0) + if e != 0 { + err = errnoErr(e) + } + return +} + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: int32(sec), Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int32(sec), Usec: int32(usec)} +} + +//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + page := uintptr(offset / 4096) + if offset != int64(page)*4096 { + return 0, EINVAL + } + return mmap2(addr, length, prot, flags, fd, page) +} + +const rlimInf32 = ^uint32(0) +const rlimInf64 = ^uint64(0) + +type rlimit32 struct { + Cur uint32 + Max uint32 +} + +//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, nil, rlim) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + err = getrlimit(resource, &rl) + if err != nil { + return + } + + if rl.Cur == rlimInf32 { + rlim.Cur = rlimInf64 + } else { + rlim.Cur = uint64(rl.Cur) + } + + if rl.Max == rlimInf32 { + rlim.Max = rlimInf64 + } else { + rlim.Max = uint64(rl.Max) + } + return +} + +//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, rlim, nil) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + if rlim.Cur == rlimInf64 { + rl.Cur = rlimInf32 + } else if rlim.Cur < uint64(rlimInf32) { + rl.Cur = uint32(rlim.Cur) + } else { + return EINVAL + } + if rlim.Max == rlimInf64 { + rl.Max = rlimInf32 + } else if rlim.Max < uint64(rlimInf32) { + rl.Max = uint32(rlim.Max) + } else { + return EINVAL + } + + return setrlimit(resource, &rl) +} + +func (r *PtraceRegs) PC() uint64 { return r.Epc } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go new file mode 100644 index 0000000..eac1cf1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go @@ -0,0 +1,232 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && ppc +// +build linux,ppc + +package unix + +import ( + "syscall" + "unsafe" +) + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 +//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getuid() (uid int) +//sys Ioperm(from int, num int, on int) (err error) +//sys Iopl(level int) (err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) +//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 +//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Time(t *Time_t) (tt Time_t, err error) +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { + var newoffset int64 + offsetLow := uint32(offset & 0xffffffff) + offsetHigh := uint32((offset >> 32) & 0xffffffff) + _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) + return newoffset, err +} + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + newoffset, errno := seek(fd, offset, whence) + if errno != 0 { + return 0, errno + } + return newoffset, nil +} + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = e + } + return +} + +func Statfs(path string, buf *Statfs_t) (err error) { + pathp, err := BytePtrFromString(path) + if err != nil { + return err + } + _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) + if e != 0 { + err = e + } + return +} + +//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + page := uintptr(offset / 4096) + if offset != int64(page)*4096 { + return 0, EINVAL + } + return mmap2(addr, length, prot, flags, fd, page) +} + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: int32(sec), Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: int32(sec), Usec: int32(usec)} +} + +type rlimit32 struct { + Cur uint32 + Max uint32 +} + +//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_UGETRLIMIT + +const rlimInf32 = ^uint32(0) +const rlimInf64 = ^uint64(0) + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, nil, rlim) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + err = getrlimit(resource, &rl) + if err != nil { + return + } + + if rl.Cur == rlimInf32 { + rlim.Cur = rlimInf64 + } else { + rlim.Cur = uint64(rl.Cur) + } + + if rl.Max == rlimInf32 { + rlim.Max = rlimInf64 + } else { + rlim.Max = uint64(rl.Max) + } + return +} + +//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + err = Prlimit(0, resource, rlim, nil) + if err != ENOSYS { + return err + } + + rl := rlimit32{} + if rlim.Cur == rlimInf64 { + rl.Cur = rlimInf32 + } else if rlim.Cur < uint64(rlimInf32) { + rl.Cur = uint32(rlim.Cur) + } else { + return EINVAL + } + if rlim.Max == rlimInf64 { + rl.Max = rlimInf32 + } else if rlim.Max < uint64(rlimInf32) { + rl.Max = uint32(rlim.Max) + } else { + return EINVAL + } + + return setrlimit(resource, &rl) +} + +func (r *PtraceRegs) PC() uint32 { return r.Nip } + +func (r *PtraceRegs) SetPC(pc uint32) { r.Nip = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint32(length) +} + +//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2 + +func SyncFileRange(fd int, off int64, n int64, flags int) error { + // The sync_file_range and sync_file_range2 syscalls differ only in the + // order of their arguments. + return syncFileRange2(fd, flags, off, n) +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go new file mode 100644 index 0000000..4df5661 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go @@ -0,0 +1,118 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (ppc64 || ppc64le) +// +build linux +// +build ppc64 ppc64le + +package unix + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_UGETRLIMIT +//sysnb Getuid() (uid int) +//sys Ioperm(from int, num int, on int) (err error) +//sys Iopl(level int) (err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys Truncate(path string, length int64) (err error) +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Time(t *Time_t) (tt Time_t, err error) +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func (r *PtraceRegs) PC() uint64 { return r.Nip } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Nip = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} + +//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2 + +func SyncFileRange(fd int, off int64, n int64, flags int) error { + // The sync_file_range and sync_file_range2 syscalls differ only in the + // order of their arguments. + return syncFileRange2(fd, flags, off, n) +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go new file mode 100644 index 0000000..5f4243d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go @@ -0,0 +1,180 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build riscv64 && linux +// +build riscv64,linux + +package unix + +import "unsafe" + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Getuid() (uid int) +//sys Listen(s int, n int) (err error) +//sys MemfdSecret(flags int) (fd int, err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + var ts *Timespec + if timeout != nil { + ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} + } + return Pselect(nfd, r, w, e, ts, nil) +} + +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) + +func Stat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, 0) +} + +func Lchown(path string, uid int, gid int) (err error) { + return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW) +} + +func Lstat(path string, stat *Stat_t) (err error) { + return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW) +} + +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + return ENOSYS +} + +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +//sysnb Gettimeofday(tv *Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func futimesat(dirfd int, path string, tv *[2]Timeval) (err error) { + if tv == nil { + return utimensat(dirfd, path, nil, 0) + } + + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func Time(t *Time_t) (Time_t, error) { + var tv Timeval + err := Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +func Utime(path string, buf *Utimbuf) error { + tv := []Timeval{ + {Sec: buf.Actime}, + {Sec: buf.Modtime}, + } + return Utimes(path, tv) +} + +func utimes(path string, tv *[2]Timeval) (err error) { + if tv == nil { + return utimensat(AT_FDCWD, path, nil, 0) + } + + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func (r *PtraceRegs) PC() uint64 { return r.Pc } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} + +func Pause() error { + _, err := ppoll(nil, 0, nil, nil) + return err +} + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + return Renameat2(olddirfd, oldpath, newdirfd, newpath, 0) +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go new file mode 100644 index 0000000..d0a7d40 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go @@ -0,0 +1,298 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build s390x && linux +// +build s390x,linux + +package unix + +import ( + "unsafe" +) + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Getuid() (uid int) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) + +func Time(t *Time_t) (tt Time_t, err error) { + var tv Timeval + err = Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func Ioperm(from int, num int, on int) (err error) { + return ENOSYS +} + +func Iopl(level int) (err error) { + return ENOSYS +} + +func (r *PtraceRegs) PC() uint64 { return r.Psw.Addr } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.Addr = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} + +// Linux on s390x uses the old mmap interface, which requires arguments to be passed in a struct. +// mmap2 also requires arguments to be passed in a struct; it is currently not exposed in . +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + mmap_args := [6]uintptr{addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)} + r0, _, e1 := Syscall(SYS_MMAP, uintptr(unsafe.Pointer(&mmap_args[0])), 0, 0) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// On s390x Linux, all the socket calls go through an extra indirection. +// The arguments to the underlying system call (SYS_SOCKETCALL) are the +// number below and a pointer to an array of uintptr. +const ( + // see linux/net.h + netSocket = 1 + netBind = 2 + netConnect = 3 + netListen = 4 + netAccept = 5 + netGetSockName = 6 + netGetPeerName = 7 + netSocketPair = 8 + netSend = 9 + netRecv = 10 + netSendTo = 11 + netRecvFrom = 12 + netShutdown = 13 + netSetSockOpt = 14 + netGetSockOpt = 15 + netSendMsg = 16 + netRecvMsg = 17 + netAccept4 = 18 + netRecvMMsg = 19 + netSendMMsg = 20 +) + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (int, error) { + args := [4]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags)} + fd, _, err := Syscall(SYS_SOCKETCALL, netAccept4, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return 0, err + } + return int(fd), nil +} + +func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) error { + args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} + _, _, err := RawSyscall(SYS_SOCKETCALL, netGetSockName, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) error { + args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} + _, _, err := RawSyscall(SYS_SOCKETCALL, netGetPeerName, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func socketpair(domain int, typ int, flags int, fd *[2]int32) error { + args := [4]uintptr{uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd))} + _, _, err := RawSyscall(SYS_SOCKETCALL, netSocketPair, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) error { + args := [3]uintptr{uintptr(s), uintptr(addr), uintptr(addrlen)} + _, _, err := Syscall(SYS_SOCKETCALL, netBind, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) error { + args := [3]uintptr{uintptr(s), uintptr(addr), uintptr(addrlen)} + _, _, err := Syscall(SYS_SOCKETCALL, netConnect, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func socket(domain int, typ int, proto int) (int, error) { + args := [3]uintptr{uintptr(domain), uintptr(typ), uintptr(proto)} + fd, _, err := RawSyscall(SYS_SOCKETCALL, netSocket, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return 0, err + } + return int(fd), nil +} + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) error { + args := [5]uintptr{uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen))} + _, _, err := Syscall(SYS_SOCKETCALL, netGetSockOpt, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) error { + args := [5]uintptr{uintptr(s), uintptr(level), uintptr(name), uintptr(val), vallen} + _, _, err := Syscall(SYS_SOCKETCALL, netSetSockOpt, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func recvfrom(s int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (int, error) { + var base uintptr + if len(p) > 0 { + base = uintptr(unsafe.Pointer(&p[0])) + } + args := [6]uintptr{uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))} + n, _, err := Syscall(SYS_SOCKETCALL, netRecvFrom, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return 0, err + } + return int(n), nil +} + +func sendto(s int, p []byte, flags int, to unsafe.Pointer, addrlen _Socklen) error { + var base uintptr + if len(p) > 0 { + base = uintptr(unsafe.Pointer(&p[0])) + } + args := [6]uintptr{uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(to), uintptr(addrlen)} + _, _, err := Syscall(SYS_SOCKETCALL, netSendTo, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func recvmsg(s int, msg *Msghdr, flags int) (int, error) { + args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)} + n, _, err := Syscall(SYS_SOCKETCALL, netRecvMsg, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return 0, err + } + return int(n), nil +} + +func sendmsg(s int, msg *Msghdr, flags int) (int, error) { + args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)} + n, _, err := Syscall(SYS_SOCKETCALL, netSendMsg, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return 0, err + } + return int(n), nil +} + +func Listen(s int, n int) error { + args := [2]uintptr{uintptr(s), uintptr(n)} + _, _, err := Syscall(SYS_SOCKETCALL, netListen, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +func Shutdown(s, how int) error { + args := [2]uintptr{uintptr(s), uintptr(how)} + _, _, err := Syscall(SYS_SOCKETCALL, netShutdown, uintptr(unsafe.Pointer(&args)), 0) + if err != 0 { + return err + } + return nil +} + +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) + +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { + cmdlineLen := len(cmdline) + if cmdlineLen > 0 { + // Account for the additional NULL byte added by + // BytePtrFromString in kexecFileLoad. The kexec_file_load + // syscall expects a NULL-terminated string. + cmdlineLen++ + } + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go new file mode 100644 index 0000000..f5c793b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go @@ -0,0 +1,114 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build sparc64 && linux +// +build sparc64,linux + +package unix + +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 +//sys Fstatfs(fd int, buf *Statfs_t) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (euid int) +//sysnb Getgid() (gid int) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) +//sysnb Getuid() (uid int) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Listen(s int, n int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) +//sys setfsgid(gid int) (prev int, err error) +//sys setfsuid(uid int) (prev int, err error) +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) +//sys Shutdown(fd int, how int) (err error) +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statfs(path string, buf *Statfs_t) (err error) +//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) +//sys Truncate(path string, length int64) (err error) +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) + +func Ioperm(from int, num int, on int) (err error) { + return ENOSYS +} + +func Iopl(level int) (err error) { + return ENOSYS +} + +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) +//sysnb Gettimeofday(tv *Timeval) (err error) + +func Time(t *Time_t) (tt Time_t, err error) { + var tv Timeval + err = Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +//sys Utime(path string, buf *Utimbuf) (err error) +//sys utimes(path string, times *[2]Timeval) (err error) + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func (r *PtraceRegs) PC() uint64 { return r.Tpc } + +func (r *PtraceRegs) SetPC(pc uint64) { r.Tpc = pc } + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint64(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint64(length) +} + +func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) { + rsa.Service_name_len = uint64(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go new file mode 100644 index 0000000..35a3ad7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go @@ -0,0 +1,624 @@ +// Copyright 2009,2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// NetBSD system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and wrap +// it in our own nicer implementation, either here or in +// syscall_bsd.go or syscall_unix.go. + +package unix + +import ( + "runtime" + "syscall" + "unsafe" +) + +// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. +type SockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 + raw RawSockaddrDatalink +} + +func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + return nil, EAFNOSUPPORT +} + +func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func sysctlNodes(mib []_C_int) (nodes []Sysctlnode, err error) { + var olen uintptr + + // Get a list of all sysctl nodes below the given MIB by performing + // a sysctl for the given MIB with CTL_QUERY appended. + mib = append(mib, CTL_QUERY) + qnode := Sysctlnode{Flags: SYSCTL_VERS_1} + qp := (*byte)(unsafe.Pointer(&qnode)) + sz := unsafe.Sizeof(qnode) + if err = sysctl(mib, nil, &olen, qp, sz); err != nil { + return nil, err + } + + // Now that we know the size, get the actual nodes. + nodes = make([]Sysctlnode, olen/sz) + np := (*byte)(unsafe.Pointer(&nodes[0])) + if err = sysctl(mib, np, &olen, qp, sz); err != nil { + return nil, err + } + + return nodes, nil +} + +func nametomib(name string) (mib []_C_int, err error) { + // Split name into components. + var parts []string + last := 0 + for i := 0; i < len(name); i++ { + if name[i] == '.' { + parts = append(parts, name[last:i]) + last = i + 1 + } + } + parts = append(parts, name[last:]) + + // Discover the nodes and construct the MIB OID. + for partno, part := range parts { + nodes, err := sysctlNodes(mib) + if err != nil { + return nil, err + } + for _, node := range nodes { + n := make([]byte, 0) + for i := range node.Name { + if node.Name[i] != 0 { + n = append(n, byte(node.Name[i])) + } + } + if string(n) == part { + mib = append(mib, _C_int(node.Num)) + break + } + } + if len(mib) != partno+1 { + return nil, EINVAL + } + } + + return mib, nil +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + +func SysctlUvmexp(name string) (*Uvmexp, error) { + mib, err := sysctlmib(name) + if err != nil { + return nil, err + } + + n := uintptr(SizeofUvmexp) + var u Uvmexp + if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil { + return nil, err + } + return &u, nil +} + +func Pipe(p []int) (err error) { + return Pipe2(p, 0) +} + +//sysnb pipe2(p *[2]_C_int, flags int) (err error) + +func Pipe2(p []int, flags int) error { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err := pipe2(&pp, flags) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return err +} + +//sys Getdents(fd int, buf []byte) (n int, err error) + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + n, err = Getdents(fd, buf) + if err != nil || basep == nil { + return + } + + var off int64 + off, err = Seek(fd, 0, 1 /* SEEK_CUR */) + if err != nil { + *basep = ^uintptr(0) + return + } + *basep = uintptr(off) + if unsafe.Sizeof(*basep) == 8 { + return + } + if off>>32 != 0 { + // We can't stuff the offset back into a uintptr, so any + // future calls would be suspect. Generate an error. + // EIO is allowed by getdirentries. + err = EIO + } + return +} + +//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD + +// TODO +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + return -1, ENOSYS +} + +//sys ioctl(fd int, req uint, arg uintptr) (err error) + +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + +func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) { + var value Ptmget + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + runtime.KeepAlive(value) + return &value, err +} + +func Uname(uname *Utsname) error { + mib := []_C_int{CTL_KERN, KERN_OSTYPE} + n := unsafe.Sizeof(uname.Sysname) + if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_HOSTNAME} + n = unsafe.Sizeof(uname.Nodename) + if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_OSRELEASE} + n = unsafe.Sizeof(uname.Release) + if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_VERSION} + n = unsafe.Sizeof(uname.Version) + if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { + return err + } + + // The version might have newlines or tabs in it, convert them to + // spaces. + for i, b := range uname.Version { + if b == '\n' || b == '\t' { + if i == len(uname.Version)-1 { + uname.Version[i] = 0 + } else { + uname.Version[i] = ' ' + } + } + } + + mib = []_C_int{CTL_HW, HW_MACHINE} + n = unsafe.Sizeof(uname.Machine) + if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { + return err + } + + return nil +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +func Fstatvfs(fd int, buf *Statvfs_t) (err error) { + return Fstatvfs1(fd, buf, ST_WAIT) +} + +func Statvfs(path string, buf *Statvfs_t) (err error) { + return Statvfs1(path, buf, ST_WAIT) +} + +/* + * Exposed directly + */ +//sys Access(path string, mode uint32) (err error) +//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) +//sys Chdir(path string) (err error) +//sys Chflags(path string, flags int) (err error) +//sys Chmod(path string, mode uint32) (err error) +//sys Chown(path string, uid int, gid int) (err error) +//sys Chroot(path string) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys Close(fd int) (err error) +//sys Dup(fd int) (nfd int, err error) +//sys Dup2(from int, to int) (err error) +//sys Dup3(from int, to int, flags int) (err error) +//sys Exit(code int) +//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) +//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) +//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) +//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) +//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE +//sys Fchdir(fd int) (err error) +//sys Fchflags(fd int, flags int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Flock(fd int, how int) (err error) +//sys Fpathconf(fd int, name int) (val int, err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) = SYS_FSTATVFS1 +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (uid int) +//sysnb Getgid() (gid int) +//sysnb Getpgid(pid int) (pgid int, err error) +//sysnb Getpgrp() (pgrp int) +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrlimit(which int, lim *Rlimit) (err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Getuid() (uid int) +//sys Issetugid() (tainted bool) +//sys Kill(pid int, signum syscall.Signal) (err error) +//sys Kqueue() (fd int, err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Link(path string, link string) (err error) +//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) +//sys Listen(s int, backlog int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Mkdir(path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mkfifoat(dirfd int, path string, mode uint32) (err error) +//sys Mknod(path string, mode uint32, dev int) (err error) +//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) +//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) +//sys Pathconf(path string, name int) (val int, err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) +//sys Rename(from string, to string) (err error) +//sys Renameat(fromfd int, from string, tofd int, to string) (err error) +//sys Revoke(path string) (err error) +//sys Rmdir(path string) (err error) +//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sysnb Setegid(egid int) (err error) +//sysnb Seteuid(euid int) (err error) +//sysnb Setgid(gid int) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sys Setpriority(which int, who int, prio int) (err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sysnb Setrlimit(which int, lim *Rlimit) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tp *Timeval) (err error) +//sysnb Setuid(uid int) (err error) +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statvfs1(path string, buf *Statvfs_t, flags int) (err error) = SYS_STATVFS1 +//sys Symlink(path string, link string) (err error) +//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) +//sys Sync() (err error) +//sys Truncate(path string, length int64) (err error) +//sys Umask(newmask int) (oldmask int) +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Unmount(path string, flags int) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) +//sys munmap(addr uintptr, length uintptr) (err error) +//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ +//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE +//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) + +/* + * Unimplemented + */ +// ____semctl13 +// __clone +// __fhopen40 +// __fhstat40 +// __fhstatvfs140 +// __fstat30 +// __getcwd +// __getfh30 +// __getlogin +// __lstat30 +// __mount50 +// __msgctl13 +// __msync13 +// __ntp_gettime30 +// __posix_chown +// __posix_fchown +// __posix_lchown +// __posix_rename +// __setlogin +// __shmctl13 +// __sigaction_sigtramp +// __sigaltstack14 +// __sigpending14 +// __sigprocmask14 +// __sigsuspend14 +// __sigtimedwait +// __stat30 +// __syscall +// __vfork14 +// _ksem_close +// _ksem_destroy +// _ksem_getvalue +// _ksem_init +// _ksem_open +// _ksem_post +// _ksem_trywait +// _ksem_unlink +// _ksem_wait +// _lwp_continue +// _lwp_create +// _lwp_ctl +// _lwp_detach +// _lwp_exit +// _lwp_getname +// _lwp_getprivate +// _lwp_kill +// _lwp_park +// _lwp_self +// _lwp_setname +// _lwp_setprivate +// _lwp_suspend +// _lwp_unpark +// _lwp_unpark_all +// _lwp_wait +// _lwp_wakeup +// _pset_bind +// _sched_getaffinity +// _sched_getparam +// _sched_setaffinity +// _sched_setparam +// acct +// aio_cancel +// aio_error +// aio_fsync +// aio_read +// aio_return +// aio_suspend +// aio_write +// break +// clock_getres +// clock_gettime +// clock_settime +// compat_09_ogetdomainname +// compat_09_osetdomainname +// compat_09_ouname +// compat_10_omsgsys +// compat_10_osemsys +// compat_10_oshmsys +// compat_12_fstat12 +// compat_12_getdirentries +// compat_12_lstat12 +// compat_12_msync +// compat_12_oreboot +// compat_12_oswapon +// compat_12_stat12 +// compat_13_sigaction13 +// compat_13_sigaltstack13 +// compat_13_sigpending13 +// compat_13_sigprocmask13 +// compat_13_sigreturn13 +// compat_13_sigsuspend13 +// compat_14___semctl +// compat_14_msgctl +// compat_14_shmctl +// compat_16___sigaction14 +// compat_16___sigreturn14 +// compat_20_fhstatfs +// compat_20_fstatfs +// compat_20_getfsstat +// compat_20_statfs +// compat_30___fhstat30 +// compat_30___fstat13 +// compat_30___lstat13 +// compat_30___stat13 +// compat_30_fhopen +// compat_30_fhstat +// compat_30_fhstatvfs1 +// compat_30_getdents +// compat_30_getfh +// compat_30_ntp_gettime +// compat_30_socket +// compat_40_mount +// compat_43_fstat43 +// compat_43_lstat43 +// compat_43_oaccept +// compat_43_ocreat +// compat_43_oftruncate +// compat_43_ogetdirentries +// compat_43_ogetdtablesize +// compat_43_ogethostid +// compat_43_ogethostname +// compat_43_ogetkerninfo +// compat_43_ogetpagesize +// compat_43_ogetpeername +// compat_43_ogetrlimit +// compat_43_ogetsockname +// compat_43_okillpg +// compat_43_olseek +// compat_43_ommap +// compat_43_oquota +// compat_43_orecv +// compat_43_orecvfrom +// compat_43_orecvmsg +// compat_43_osend +// compat_43_osendmsg +// compat_43_osethostid +// compat_43_osethostname +// compat_43_osetrlimit +// compat_43_osigblock +// compat_43_osigsetmask +// compat_43_osigstack +// compat_43_osigvec +// compat_43_otruncate +// compat_43_owait +// compat_43_stat43 +// execve +// extattr_delete_fd +// extattr_delete_file +// extattr_delete_link +// extattr_get_fd +// extattr_get_file +// extattr_get_link +// extattr_list_fd +// extattr_list_file +// extattr_list_link +// extattr_set_fd +// extattr_set_file +// extattr_set_link +// extattrctl +// fchroot +// fdatasync +// fgetxattr +// fktrace +// flistxattr +// fork +// fremovexattr +// fsetxattr +// fstatvfs1 +// fsync_range +// getcontext +// getitimer +// getvfsstat +// getxattr +// ktrace +// lchflags +// lchmod +// lfs_bmapv +// lfs_markv +// lfs_segclean +// lfs_segwait +// lgetxattr +// lio_listio +// listxattr +// llistxattr +// lremovexattr +// lseek +// lsetxattr +// lutimes +// madvise +// mincore +// minherit +// modctl +// mq_close +// mq_getattr +// mq_notify +// mq_open +// mq_receive +// mq_send +// mq_setattr +// mq_timedreceive +// mq_timedsend +// mq_unlink +// mremap +// msgget +// msgrcv +// msgsnd +// nfssvc +// ntp_adjtime +// pmc_control +// pmc_get_info +// pollts +// preadv +// profil +// pselect +// pset_assign +// pset_create +// pset_destroy +// ptrace +// pwritev +// quotactl +// rasctl +// readv +// reboot +// removexattr +// sa_enable +// sa_preempt +// sa_register +// sa_setconcurrency +// sa_stacks +// sa_yield +// sbrk +// sched_yield +// semconfig +// semget +// semop +// setcontext +// setitimer +// setxattr +// shmat +// shmdt +// shmget +// sstk +// statvfs1 +// swapctl +// sysarch +// syscall +// timer_create +// timer_delete +// timer_getoverrun +// timer_gettime +// timer_settime +// undelete +// utrace +// uuidgen +// vadvise +// vfork +// writev diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go new file mode 100644 index 0000000..5199d28 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go @@ -0,0 +1,38 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build 386 && netbsd +// +build 386,netbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint32(fd) + k.Filter = uint32(mode) + k.Flags = uint32(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go new file mode 100644 index 0000000..70a9c52 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go @@ -0,0 +1,38 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && netbsd +// +build amd64,netbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = uint32(mode) + k.Flags = uint32(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go new file mode 100644 index 0000000..3eb5942 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go @@ -0,0 +1,38 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm && netbsd +// +build arm,netbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint32(fd) + k.Filter = uint32(mode) + k.Flags = uint32(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go new file mode 100644 index 0000000..fc6ccfd --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go @@ -0,0 +1,38 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm64 && netbsd +// +build arm64,netbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = uint32(mode) + k.Flags = uint32(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go new file mode 100644 index 0000000..9b67b90 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -0,0 +1,390 @@ +// Copyright 2009,2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// OpenBSD system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and wrap +// it in our own nicer implementation, either here or in +// syscall_bsd.go or syscall_unix.go. + +package unix + +import ( + "sort" + "syscall" + "unsafe" +) + +// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. +type SockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 + raw RawSockaddrDatalink +} + +func anyToSockaddrGOOS(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + return nil, EAFNOSUPPORT +} + +func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) + +func nametomib(name string) (mib []_C_int, err error) { + i := sort.Search(len(sysctlMib), func(i int) bool { + return sysctlMib[i].ctlname >= name + }) + if i < len(sysctlMib) && sysctlMib[i].ctlname == name { + return sysctlMib[i].ctloid, nil + } + return nil, EINVAL +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) +} + +func SysctlUvmexp(name string) (*Uvmexp, error) { + mib, err := sysctlmib(name) + if err != nil { + return nil, err + } + + n := uintptr(SizeofUvmexp) + var u Uvmexp + if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil { + return nil, err + } + if n != SizeofUvmexp { + return nil, EIO + } + return &u, nil +} + +func Pipe(p []int) (err error) { + return Pipe2(p, 0) +} + +//sysnb pipe2(p *[2]_C_int, flags int) (err error) + +func Pipe2(p []int, flags int) error { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err := pipe2(&pp, flags) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return err +} + +//sys Getdents(fd int, buf []byte) (n int, err error) + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + n, err = Getdents(fd, buf) + if err != nil || basep == nil { + return + } + + var off int64 + off, err = Seek(fd, 0, 1 /* SEEK_CUR */) + if err != nil { + *basep = ^uintptr(0) + return + } + *basep = uintptr(off) + if unsafe.Sizeof(*basep) == 8 { + return + } + if off>>32 != 0 { + // We can't stuff the offset back into a uintptr, so any + // future calls would be suspect. Generate an error. + // EIO was allowed by getdirentries. + err = EIO + } + return +} + +//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +// TODO +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + return -1, ENOSYS +} + +func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { + var _p0 unsafe.Pointer + var bufsize uintptr + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) + } + r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +//sys ioctl(fd int, req uint, arg uintptr) (err error) + +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + +//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) + +func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + if len(fds) == 0 { + return ppoll(nil, 0, timeout, sigmask) + } + return ppoll(&fds[0], len(fds), timeout, sigmask) +} + +func Uname(uname *Utsname) error { + mib := []_C_int{CTL_KERN, KERN_OSTYPE} + n := unsafe.Sizeof(uname.Sysname) + if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_HOSTNAME} + n = unsafe.Sizeof(uname.Nodename) + if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_OSRELEASE} + n = unsafe.Sizeof(uname.Release) + if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { + return err + } + + mib = []_C_int{CTL_KERN, KERN_VERSION} + n = unsafe.Sizeof(uname.Version) + if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { + return err + } + + // The version might have newlines or tabs in it, convert them to + // spaces. + for i, b := range uname.Version { + if b == '\n' || b == '\t' { + if i == len(uname.Version)-1 { + uname.Version[i] = 0 + } else { + uname.Version[i] = ' ' + } + } + } + + mib = []_C_int{CTL_HW, HW_MACHINE} + n = unsafe.Sizeof(uname.Machine) + if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { + return err + } + + return nil +} + +/* + * Exposed directly + */ +//sys Access(path string, mode uint32) (err error) +//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) +//sys Chdir(path string) (err error) +//sys Chflags(path string, flags int) (err error) +//sys Chmod(path string, mode uint32) (err error) +//sys Chown(path string, uid int, gid int) (err error) +//sys Chroot(path string) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys Close(fd int) (err error) +//sys Dup(fd int) (nfd int, err error) +//sys Dup2(from int, to int) (err error) +//sys Dup3(from int, to int, flags int) (err error) +//sys Exit(code int) +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchflags(fd int, flags int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Flock(fd int, how int) (err error) +//sys Fpathconf(fd int, name int) (val int, err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatfs(fd int, stat *Statfs_t) (err error) +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sysnb Getegid() (egid int) +//sysnb Geteuid() (uid int) +//sysnb Getgid() (gid int) +//sysnb Getpgid(pid int) (pgid int, err error) +//sysnb Getpgrp() (pgrp int) +//sysnb Getpid() (pid int) +//sysnb Getppid() (ppid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrlimit(which int, lim *Rlimit) (err error) +//sysnb Getrtable() (rtable int, err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Getuid() (uid int) +//sys Issetugid() (tainted bool) +//sys Kill(pid int, signum syscall.Signal) (err error) +//sys Kqueue() (fd int, err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Link(path string, link string) (err error) +//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) +//sys Listen(s int, backlog int) (err error) +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Mkdir(path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mkfifoat(dirfd int, path string, mode uint32) (err error) +//sys Mknod(path string, mode uint32, dev int) (err error) +//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) +//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) +//sys Pathconf(path string, name int) (val int, err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) +//sys Rename(from string, to string) (err error) +//sys Renameat(fromfd int, from string, tofd int, to string) (err error) +//sys Revoke(path string) (err error) +//sys Rmdir(path string) (err error) +//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sysnb Setegid(egid int) (err error) +//sysnb Seteuid(euid int) (err error) +//sysnb Setgid(gid int) (err error) +//sys Setlogin(name string) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sys Setpriority(which int, who int, prio int) (err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sysnb Setresgid(rgid int, egid int, sgid int) (err error) +//sysnb Setresuid(ruid int, euid int, suid int) (err error) +//sysnb Setrlimit(which int, lim *Rlimit) (err error) +//sysnb Setrtable(rtable int) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Settimeofday(tp *Timeval) (err error) +//sysnb Setuid(uid int) (err error) +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statfs(path string, stat *Statfs_t) (err error) +//sys Symlink(path string, link string) (err error) +//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) +//sys Sync() (err error) +//sys Truncate(path string, length int64) (err error) +//sys Umask(newmask int) (oldmask int) +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Unmount(path string, flags int) (err error) +//sys write(fd int, p []byte) (n int, err error) +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) +//sys munmap(addr uintptr, length uintptr) (err error) +//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ +//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE +//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) + +/* + * Unimplemented + */ +// __getcwd +// __semctl +// __syscall +// __sysctl +// adjfreq +// break +// clock_getres +// clock_gettime +// clock_settime +// closefrom +// execve +// fhopen +// fhstat +// fhstatfs +// fork +// futimens +// getfh +// getgid +// getitimer +// getlogin +// getresgid +// getresuid +// getthrid +// ktrace +// lfs_bmapv +// lfs_markv +// lfs_segclean +// lfs_segwait +// mincore +// minherit +// mount +// mquery +// msgctl +// msgget +// msgrcv +// msgsnd +// nfssvc +// nnpfspioctl +// preadv +// profil +// pwritev +// quotactl +// readv +// reboot +// renameat +// rfork +// sched_yield +// semget +// semop +// setgroups +// setitimer +// setsockopt +// shmat +// shmctl +// shmdt +// shmget +// sigaction +// sigaltstack +// sigpending +// sigprocmask +// sigreturn +// sigsuspend +// sysarch +// syscall +// threxit +// thrsigdivert +// thrsleep +// thrwakeup +// vfork +// writev diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go new file mode 100644 index 0000000..6baabcd --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go @@ -0,0 +1,42 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build 386 && openbsd +// +build 386,openbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint32(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of openbsd/386 the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go new file mode 100644 index 0000000..bab2536 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go @@ -0,0 +1,42 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && openbsd +// +build amd64,openbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of openbsd/amd64 the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go new file mode 100644 index 0000000..8eed3c4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go @@ -0,0 +1,42 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm && openbsd +// +build arm,openbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: int32(nsec)} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: int32(usec)} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint32(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint32(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of openbsd/arm the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go new file mode 100644 index 0000000..483dde9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go @@ -0,0 +1,42 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build arm64 && openbsd +// +build arm64,openbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of openbsd/amd64 the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go new file mode 100644 index 0000000..04aa43f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go @@ -0,0 +1,27 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build openbsd +// +build openbsd + +package unix + +import _ "unsafe" + +// Implemented in the runtime package (runtime/sys_openbsd3.go) +func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2 uintptr, err Errno) +func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) +func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) + +//go:linkname syscall_syscall syscall.syscall +//go:linkname syscall_syscall6 syscall.syscall6 +//go:linkname syscall_syscall10 syscall.syscall10 +//go:linkname syscall_rawSyscall syscall.rawSyscall +//go:linkname syscall_rawSyscall6 syscall.rawSyscall6 + +func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) { + return syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, 0) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go new file mode 100644 index 0000000..1378489 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.go @@ -0,0 +1,39 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of OpenBSD the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go new file mode 100644 index 0000000..c279613 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go @@ -0,0 +1,42 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build ppc64 && openbsd +// +build ppc64,openbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of openbsd/ppc64 the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go new file mode 100644 index 0000000..23199a7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go @@ -0,0 +1,42 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build riscv64 && openbsd +// +build riscv64,openbsd + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func SetKevent(k *Kevent_t, fd, mode, flags int) { + k.Ident = uint64(fd) + k.Filter = int16(mode) + k.Flags = uint16(flags) +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = uint32(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = uint32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} + +// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions +// of openbsd/riscv64 the syscall is called sysctl instead of __sysctl. +const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go new file mode 100644 index 0000000..07ac561 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go @@ -0,0 +1,1133 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Solaris system calls. +// This file is compiled as ordinary Go code, +// but it is also input to mksyscall, +// which parses the //sys lines and generates system call stubs. +// Note that sometimes we use a lowercase //sys name and wrap +// it in our own nicer implementation, either here or in +// syscall_solaris.go or syscall_unix.go. + +package unix + +import ( + "fmt" + "os" + "runtime" + "sync" + "syscall" + "unsafe" +) + +// Implemented in runtime/syscall_solaris.go. +type syscallFunc uintptr + +func rawSysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) +func sysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) + +// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. +type SockaddrDatalink struct { + Family uint16 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [244]int8 + raw RawSockaddrDatalink +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} + +//sysnb pipe(p *[2]_C_int) (n int, err error) + +func Pipe(p []int) (err error) { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + n, err := pipe(&pp) + if n != 0 { + return err + } + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return nil +} + +//sysnb pipe2(p *[2]_C_int, flags int) (err error) + +func Pipe2(p []int, flags int) error { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err := pipe2(&pp, flags) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return err +} + +func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Family = AF_INET + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil +} + +func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Family = AF_INET6 + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Scope_id = sa.ZoneId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil +} + +func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { + name := sa.Name + n := len(name) + if n >= len(sa.raw.Path) { + return nil, 0, EINVAL + } + sa.raw.Family = AF_UNIX + for i := 0; i < n; i++ { + sa.raw.Path[i] = int8(name[i]) + } + // length is family (uint16), name, NUL. + sl := _Socklen(2) + if n > 0 { + sl += _Socklen(n) + 1 + } + if sa.raw.Path[0] == '@' { + sa.raw.Path[0] = 0 + // Don't count trailing NUL for abstract address. + sl-- + } + + return unsafe.Pointer(&sa.raw), sl, nil +} + +//sys getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getsockname + +func Getsockname(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getsockname(fd, &rsa, &len); err != nil { + return + } + return anyToSockaddr(fd, &rsa) +} + +// GetsockoptString returns the string value of the socket option opt for the +// socket associated with fd at the given socket level. +func GetsockoptString(fd, level, opt int) (string, error) { + buf := make([]byte, 256) + vallen := _Socklen(len(buf)) + err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) + if err != nil { + return "", err + } + return string(buf[:vallen-1]), nil +} + +const ImplementsGetwd = true + +//sys Getcwd(buf []byte) (n int, err error) + +func Getwd() (wd string, err error) { + var buf [PathMax]byte + // Getcwd will return an error if it failed for any reason. + _, err = Getcwd(buf[0:]) + if err != nil { + return "", err + } + n := clen(buf[:]) + if n < 1 { + return "", EINVAL + } + return string(buf[:n]), nil +} + +/* + * Wrapped + */ + +//sysnb getgroups(ngid int, gid *_Gid_t) (n int, err error) +//sysnb setgroups(ngid int, gid *_Gid_t) (err error) + +func Getgroups() (gids []int, err error) { + n, err := getgroups(0, nil) + // Check for error and sanity check group count. Newer versions of + // Solaris allow up to 1024 (NGROUPS_MAX). + if n < 0 || n > 1024 { + if err != nil { + return nil, err + } + return nil, EINVAL + } else if n == 0 { + return nil, nil + } + + a := make([]_Gid_t, n) + n, err = getgroups(n, &a[0]) + if n == -1 { + return nil, err + } + gids = make([]int, n) + for i, v := range a[0:n] { + gids[i] = int(v) + } + return +} + +func Setgroups(gids []int) (err error) { + if len(gids) == 0 { + return setgroups(0, nil) + } + + a := make([]_Gid_t, len(gids)) + for i, v := range gids { + a[i] = _Gid_t(v) + } + return setgroups(len(a), &a[0]) +} + +// ReadDirent reads directory entries from fd and writes them into buf. +func ReadDirent(fd int, buf []byte) (n int, err error) { + // Final argument is (basep *uintptr) and the syscall doesn't take nil. + // TODO(rsc): Can we use a single global basep for all calls? + return Getdents(fd, buf, new(uintptr)) +} + +// Wait status is 7 bits at bottom, either 0 (exited), +// 0x7F (stopped), or a signal number that caused an exit. +// The 0x80 bit is whether there was a core dump. +// An extra number (exit code, signal causing a stop) +// is in the high bits. + +type WaitStatus uint32 + +const ( + mask = 0x7F + core = 0x80 + shift = 8 + + exited = 0 + stopped = 0x7F +) + +func (w WaitStatus) Exited() bool { return w&mask == exited } + +func (w WaitStatus) ExitStatus() int { + if w&mask != exited { + return -1 + } + return int(w >> shift) +} + +func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 } + +func (w WaitStatus) Signal() syscall.Signal { + sig := syscall.Signal(w & mask) + if sig == stopped || sig == 0 { + return -1 + } + return sig +} + +func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } + +func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP } + +func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP } + +func (w WaitStatus) StopSignal() syscall.Signal { + if !w.Stopped() { + return -1 + } + return syscall.Signal(w>>shift) & 0xFF +} + +func (w WaitStatus) TrapCause() int { return -1 } + +//sys wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) + +func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (int, error) { + var status _C_int + rpid, err := wait4(int32(pid), &status, options, rusage) + wpid := int(rpid) + if wpid == -1 { + return wpid, err + } + if wstatus != nil { + *wstatus = WaitStatus(status) + } + return wpid, nil +} + +//sys gethostname(buf []byte) (n int, err error) + +func Gethostname() (name string, err error) { + var buf [MaxHostNameLen]byte + n, err := gethostname(buf[:]) + if n != 0 { + return "", err + } + n = clen(buf[:]) + if n < 1 { + return "", EFAULT + } + return string(buf[:n]), nil +} + +//sys utimes(path string, times *[2]Timeval) (err error) + +func Utimes(path string, tv []Timeval) (err error) { + if tv == nil { + return utimes(path, nil) + } + if len(tv) != 2 { + return EINVAL + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +//sys utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) + +func UtimesNano(path string, ts []Timespec) error { + if ts == nil { + return utimensat(AT_FDCWD, path, nil, 0) + } + if len(ts) != 2 { + return EINVAL + } + return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) +} + +func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { + if ts == nil { + return utimensat(dirfd, path, nil, flags) + } + if len(ts) != 2 { + return EINVAL + } + return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) +} + +//sys fcntl(fd int, cmd int, arg int) (val int, err error) + +// FcntlInt performs a fcntl syscall on fd with the provided command and argument. +func FcntlInt(fd uintptr, cmd, arg int) (int, error) { + valptr, _, errno := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0) + var err error + if errno != 0 { + err = errno + } + return int(valptr), err +} + +// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0) + if e1 != 0 { + return e1 + } + return nil +} + +//sys futimesat(fildes int, path *byte, times *[2]Timeval) (err error) + +func Futimesat(dirfd int, path string, tv []Timeval) error { + pathp, err := BytePtrFromString(path) + if err != nil { + return err + } + if tv == nil { + return futimesat(dirfd, pathp, nil) + } + if len(tv) != 2 { + return EINVAL + } + return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +// Solaris doesn't have an futimes function because it allows NULL to be +// specified as the path for futimesat. However, Go doesn't like +// NULL-style string interfaces, so this simple wrapper is provided. +func Futimes(fd int, tv []Timeval) error { + if tv == nil { + return futimesat(fd, nil, nil) + } + if len(tv) != 2 { + return EINVAL + } + return futimesat(fd, nil, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { + switch rsa.Addr.Family { + case AF_UNIX: + pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) + sa := new(SockaddrUnix) + // Assume path ends at NUL. + // This is not technically the Solaris semantics for + // abstract Unix domain sockets -- they are supposed + // to be uninterpreted fixed-size binary blobs -- but + // everyone uses this convention. + n := 0 + for n < len(pp.Path) && pp.Path[n] != 0 { + n++ + } + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + sa.Name = string(bytes) + return sa, nil + + case AF_INET: + pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.Addr = pp.Addr + return sa, nil + + case AF_INET6: + pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + } + return nil, EAFNOSUPPORT +} + +//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) = libsocket.accept + +func Accept(fd int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept(fd, &rsa, &len) + if nfd == -1 { + return + } + sa, err = anyToSockaddr(fd, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.__xnet_recvmsg + +func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(rsa)) + msg.Namelen = uint32(SizeofSockaddrAny) + var dummy byte + if len(oob) > 0 { + // receive at least one normal byte + if emptyIovecs(iov) { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + msg.Accrightslen = int32(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = recvmsg(fd, &msg, flags); n == -1 { + return + } + oobn = int(msg.Accrightslen) + return +} + +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.__xnet_sendmsg + +func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(ptr)) + msg.Namelen = uint32(salen) + var dummy byte + var empty bool + if len(oob) > 0 { + // send at least one normal byte + empty = emptyIovecs(iov) + if empty { + var iova [1]Iovec + iova[0].Base = &dummy + iova[0].SetLen(1) + iov = iova[:] + } + msg.Accrightslen = int32(len(oob)) + } + if len(iov) > 0 { + msg.Iov = &iov[0] + msg.SetIovlen(len(iov)) + } + if n, err = sendmsg(fd, &msg, flags); err != nil { + return 0, err + } + if len(oob) > 0 && empty { + n = 0 + } + return n, nil +} + +//sys acct(path *byte) (err error) + +func Acct(path string) (err error) { + if len(path) == 0 { + // Assume caller wants to disable accounting. + return acct(nil) + } + + pathp, err := BytePtrFromString(path) + if err != nil { + return err + } + return acct(pathp) +} + +//sys __makedev(version int, major uint, minor uint) (val uint64) + +func Mkdev(major, minor uint32) uint64 { + return __makedev(NEWDEV, uint(major), uint(minor)) +} + +//sys __major(version int, dev uint64) (val uint) + +func Major(dev uint64) uint32 { + return uint32(__major(NEWDEV, dev)) +} + +//sys __minor(version int, dev uint64) (val uint) + +func Minor(dev uint64) uint32 { + return uint32(__minor(NEWDEV, dev)) +} + +/* + * Expose the ioctl function + */ + +//sys ioctlRet(fd int, req uint, arg uintptr) (ret int, err error) = libc.ioctl + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, err = ioctlRet(fd, req, arg) + return err +} + +func IoctlSetTermio(fd int, req uint, value *Termio) error { + err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) + runtime.KeepAlive(value) + return err +} + +func IoctlGetTermio(fd int, req uint) (*Termio, error) { + var value Termio + err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) + return &value, err +} + +//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) + +func Poll(fds []PollFd, timeout int) (n int, err error) { + if len(fds) == 0 { + return poll(nil, 0, timeout) + } + return poll(&fds[0], len(fds), timeout) +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +/* + * Exposed directly + */ +//sys Access(path string, mode uint32) (err error) +//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) +//sys Chdir(path string) (err error) +//sys Chmod(path string, mode uint32) (err error) +//sys Chown(path string, uid int, gid int) (err error) +//sys Chroot(path string) (err error) +//sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys Close(fd int) (err error) +//sys Creat(path string, mode uint32) (fd int, err error) +//sys Dup(fd int) (nfd int, err error) +//sys Dup2(oldfd int, newfd int) (err error) +//sys Exit(code int) +//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchdir(fd int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) +//sys Fdatasync(fd int) (err error) +//sys Flock(fd int, how int) (err error) +//sys Fpathconf(fd int, name int) (val int, err error) +//sys Fstat(fd int, stat *Stat_t) (err error) +//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) +//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) +//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) +//sysnb Getgid() (gid int) +//sysnb Getpid() (pid int) +//sysnb Getpgid(pid int) (pgid int, err error) +//sysnb Getpgrp() (pgid int, err error) +//sys Geteuid() (euid int) +//sys Getegid() (egid int) +//sys Getppid() (ppid int) +//sys Getpriority(which int, who int) (n int, err error) +//sysnb Getrlimit(which int, lim *Rlimit) (err error) +//sysnb Getrusage(who int, rusage *Rusage) (err error) +//sysnb Getsid(pid int) (sid int, err error) +//sysnb Gettimeofday(tv *Timeval) (err error) +//sysnb Getuid() (uid int) +//sys Kill(pid int, signum syscall.Signal) (err error) +//sys Lchown(path string, uid int, gid int) (err error) +//sys Link(path string, link string) (err error) +//sys Listen(s int, backlog int) (err error) = libsocket.__xnet_llisten +//sys Lstat(path string, stat *Stat_t) (err error) +//sys Madvise(b []byte, advice int) (err error) +//sys Mkdir(path string, mode uint32) (err error) +//sys Mkdirat(dirfd int, path string, mode uint32) (err error) +//sys Mkfifo(path string, mode uint32) (err error) +//sys Mkfifoat(dirfd int, path string, mode uint32) (err error) +//sys Mknod(path string, mode uint32, dev int) (err error) +//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) +//sys Mlock(b []byte) (err error) +//sys Mlockall(flags int) (err error) +//sys Mprotect(b []byte, prot int) (err error) +//sys Msync(b []byte, flags int) (err error) +//sys Munlock(b []byte) (err error) +//sys Munlockall() (err error) +//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) +//sys Open(path string, mode int, perm uint32) (fd int, err error) +//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) +//sys Pathconf(path string, name int) (val int, err error) +//sys Pause() (err error) +//sys pread(fd int, p []byte, offset int64) (n int, err error) +//sys pwrite(fd int, p []byte, offset int64) (n int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) +//sys Rename(from string, to string) (err error) +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) +//sys Rmdir(path string) (err error) +//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = lseek +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) +//sysnb Setegid(egid int) (err error) +//sysnb Seteuid(euid int) (err error) +//sysnb Setgid(gid int) (err error) +//sys Sethostname(p []byte) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) +//sys Setpriority(which int, who int, prio int) (err error) +//sysnb Setregid(rgid int, egid int) (err error) +//sysnb Setreuid(ruid int, euid int) (err error) +//sysnb Setrlimit(which int, lim *Rlimit) (err error) +//sysnb Setsid() (pid int, err error) +//sysnb Setuid(uid int) (err error) +//sys Shutdown(s int, how int) (err error) = libsocket.shutdown +//sys Stat(path string, stat *Stat_t) (err error) +//sys Statvfs(path string, vfsstat *Statvfs_t) (err error) +//sys Symlink(path string, link string) (err error) +//sys Sync() (err error) +//sys Sysconf(which int) (n int64, err error) +//sysnb Times(tms *Tms) (ticks uintptr, err error) +//sys Truncate(path string, length int64) (err error) +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sys Umask(mask int) (oldmask int) +//sysnb Uname(buf *Utsname) (err error) +//sys Unmount(target string, flags int) (err error) = libc.umount +//sys Unlink(path string) (err error) +//sys Unlinkat(dirfd int, path string, flags int) (err error) +//sys Ustat(dev int, ubuf *Ustat_t) (err error) +//sys Utime(path string, buf *Utimbuf) (err error) +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_bind +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) +//sys munmap(addr uintptr, length uintptr) (err error) +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = libsendfile.sendfile +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto +//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair +//sys write(fd int, p []byte) (n int, err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) = libsocket.__xnet_getsockopt +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getpeername +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) = libsocket.setsockopt +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = libsocket.recvfrom + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +var mapper = &mmapper{ + active: make(map[*byte][]byte), + mmap: mmap, + munmap: munmap, +} + +func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + return mapper.Mmap(fd, offset, length, prot, flags) +} + +func Munmap(b []byte) (err error) { + return mapper.Munmap(b) +} + +// Event Ports + +type fileObjCookie struct { + fobj *fileObj + cookie interface{} +} + +// EventPort provides a safe abstraction on top of Solaris/illumos Event Ports. +type EventPort struct { + port int + mu sync.Mutex + fds map[uintptr]*fileObjCookie + paths map[string]*fileObjCookie + // The user cookie presents an interesting challenge from a memory management perspective. + // There are two paths by which we can discover that it is no longer in use: + // 1. The user calls port_dissociate before any events fire + // 2. An event fires and we return it to the user + // The tricky situation is if the event has fired in the kernel but + // the user hasn't requested/received it yet. + // If the user wants to port_dissociate before the event has been processed, + // we should handle things gracefully. To do so, we need to keep an extra + // reference to the cookie around until the event is processed + // thus the otherwise seemingly extraneous "cookies" map + // The key of this map is a pointer to the corresponding fCookie + cookies map[*fileObjCookie]struct{} +} + +// PortEvent is an abstraction of the port_event C struct. +// Compare Source against PORT_SOURCE_FILE or PORT_SOURCE_FD +// to see if Path or Fd was the event source. The other will be +// uninitialized. +type PortEvent struct { + Cookie interface{} + Events int32 + Fd uintptr + Path string + Source uint16 + fobj *fileObj +} + +// NewEventPort creates a new EventPort including the +// underlying call to port_create(3c). +func NewEventPort() (*EventPort, error) { + port, err := port_create() + if err != nil { + return nil, err + } + e := &EventPort{ + port: port, + fds: make(map[uintptr]*fileObjCookie), + paths: make(map[string]*fileObjCookie), + cookies: make(map[*fileObjCookie]struct{}), + } + return e, nil +} + +//sys port_create() (n int, err error) +//sys port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error) +//sys port_dissociate(port int, source int, object uintptr) (n int, err error) +//sys port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error) +//sys port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error) + +// Close closes the event port. +func (e *EventPort) Close() error { + e.mu.Lock() + defer e.mu.Unlock() + err := Close(e.port) + if err != nil { + return err + } + e.fds = nil + e.paths = nil + e.cookies = nil + return nil +} + +// PathIsWatched checks to see if path is associated with this EventPort. +func (e *EventPort) PathIsWatched(path string) bool { + e.mu.Lock() + defer e.mu.Unlock() + _, found := e.paths[path] + return found +} + +// FdIsWatched checks to see if fd is associated with this EventPort. +func (e *EventPort) FdIsWatched(fd uintptr) bool { + e.mu.Lock() + defer e.mu.Unlock() + _, found := e.fds[fd] + return found +} + +// AssociatePath wraps port_associate(3c) for a filesystem path including +// creating the necessary file_obj from the provided stat information. +func (e *EventPort) AssociatePath(path string, stat os.FileInfo, events int, cookie interface{}) error { + e.mu.Lock() + defer e.mu.Unlock() + if _, found := e.paths[path]; found { + return fmt.Errorf("%v is already associated with this Event Port", path) + } + fCookie, err := createFileObjCookie(path, stat, cookie) + if err != nil { + return err + } + _, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fCookie.fobj)), events, (*byte)(unsafe.Pointer(fCookie))) + if err != nil { + return err + } + e.paths[path] = fCookie + e.cookies[fCookie] = struct{}{} + return nil +} + +// DissociatePath wraps port_dissociate(3c) for a filesystem path. +func (e *EventPort) DissociatePath(path string) error { + e.mu.Lock() + defer e.mu.Unlock() + f, ok := e.paths[path] + if !ok { + return fmt.Errorf("%v is not associated with this Event Port", path) + } + _, err := port_dissociate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(f.fobj))) + // If the path is no longer associated with this event port (ENOENT) + // we should delete it from our map. We can still return ENOENT to the caller. + // But we need to save the cookie + if err != nil && err != ENOENT { + return err + } + if err == nil { + // dissociate was successful, safe to delete the cookie + fCookie := e.paths[path] + delete(e.cookies, fCookie) + } + delete(e.paths, path) + return err +} + +// AssociateFd wraps calls to port_associate(3c) on file descriptors. +func (e *EventPort) AssociateFd(fd uintptr, events int, cookie interface{}) error { + e.mu.Lock() + defer e.mu.Unlock() + if _, found := e.fds[fd]; found { + return fmt.Errorf("%v is already associated with this Event Port", fd) + } + fCookie, err := createFileObjCookie("", nil, cookie) + if err != nil { + return err + } + _, err = port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(fCookie))) + if err != nil { + return err + } + e.fds[fd] = fCookie + e.cookies[fCookie] = struct{}{} + return nil +} + +// DissociateFd wraps calls to port_dissociate(3c) on file descriptors. +func (e *EventPort) DissociateFd(fd uintptr) error { + e.mu.Lock() + defer e.mu.Unlock() + _, ok := e.fds[fd] + if !ok { + return fmt.Errorf("%v is not associated with this Event Port", fd) + } + _, err := port_dissociate(e.port, PORT_SOURCE_FD, fd) + if err != nil && err != ENOENT { + return err + } + if err == nil { + // dissociate was successful, safe to delete the cookie + fCookie := e.fds[fd] + delete(e.cookies, fCookie) + } + delete(e.fds, fd) + return err +} + +func createFileObjCookie(name string, stat os.FileInfo, cookie interface{}) (*fileObjCookie, error) { + fCookie := new(fileObjCookie) + fCookie.cookie = cookie + if name != "" && stat != nil { + fCookie.fobj = new(fileObj) + bs, err := ByteSliceFromString(name) + if err != nil { + return nil, err + } + fCookie.fobj.Name = (*int8)(unsafe.Pointer(&bs[0])) + s := stat.Sys().(*syscall.Stat_t) + fCookie.fobj.Atim.Sec = s.Atim.Sec + fCookie.fobj.Atim.Nsec = s.Atim.Nsec + fCookie.fobj.Mtim.Sec = s.Mtim.Sec + fCookie.fobj.Mtim.Nsec = s.Mtim.Nsec + fCookie.fobj.Ctim.Sec = s.Ctim.Sec + fCookie.fobj.Ctim.Nsec = s.Ctim.Nsec + } + return fCookie, nil +} + +// GetOne wraps port_get(3c) and returns a single PortEvent. +func (e *EventPort) GetOne(t *Timespec) (*PortEvent, error) { + pe := new(portEvent) + _, err := port_get(e.port, pe, t) + if err != nil { + return nil, err + } + p := new(PortEvent) + e.mu.Lock() + defer e.mu.Unlock() + err = e.peIntToExt(pe, p) + if err != nil { + return nil, err + } + return p, nil +} + +// peIntToExt converts a cgo portEvent struct into the friendlier PortEvent +// NOTE: Always call this function while holding the e.mu mutex +func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) error { + if e.cookies == nil { + return fmt.Errorf("this EventPort is already closed") + } + peExt.Events = peInt.Events + peExt.Source = peInt.Source + fCookie := (*fileObjCookie)(unsafe.Pointer(peInt.User)) + _, found := e.cookies[fCookie] + + if !found { + panic("unexpected event port address; may be due to kernel bug; see https://go.dev/issue/54254") + } + peExt.Cookie = fCookie.cookie + delete(e.cookies, fCookie) + + switch peInt.Source { + case PORT_SOURCE_FD: + peExt.Fd = uintptr(peInt.Object) + // Only remove the fds entry if it exists and this cookie matches + if fobj, ok := e.fds[peExt.Fd]; ok { + if fobj == fCookie { + delete(e.fds, peExt.Fd) + } + } + case PORT_SOURCE_FILE: + peExt.fobj = fCookie.fobj + peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name))) + // Only remove the paths entry if it exists and this cookie matches + if fobj, ok := e.paths[peExt.Path]; ok { + if fobj == fCookie { + delete(e.paths, peExt.Path) + } + } + } + return nil +} + +// Pending wraps port_getn(3c) and returns how many events are pending. +func (e *EventPort) Pending() (int, error) { + var n uint32 = 0 + _, err := port_getn(e.port, nil, 0, &n, nil) + return int(n), err +} + +// Get wraps port_getn(3c) and fills a slice of PortEvent. +// It will block until either min events have been received +// or the timeout has been exceeded. It will return how many +// events were actually received along with any error information. +func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error) { + if min == 0 { + return 0, fmt.Errorf("need to request at least one event or use Pending() instead") + } + if len(s) < min { + return 0, fmt.Errorf("len(s) (%d) is less than min events requested (%d)", len(s), min) + } + got := uint32(min) + max := uint32(len(s)) + var err error + ps := make([]portEvent, max) + _, err = port_getn(e.port, &ps[0], max, &got, timeout) + // got will be trustworthy with ETIME, but not any other error. + if err != nil && err != ETIME { + return 0, err + } + e.mu.Lock() + defer e.mu.Unlock() + valid := 0 + for i := 0; i < int(got); i++ { + err2 := e.peIntToExt(&ps[i], &s[i]) + if err2 != nil { + if valid == 0 && err == nil { + // If err2 is the only error and there are no valid events + // to return, return it to the caller. + err = err2 + } + break + } + valid = i + 1 + } + return valid, err +} + +//sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) + +func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) { + var clp, datap *strbuf + if len(cl) > 0 { + clp = &strbuf{ + Len: int32(len(cl)), + Buf: (*int8)(unsafe.Pointer(&cl[0])), + } + } + if len(data) > 0 { + datap = &strbuf{ + Len: int32(len(data)), + Buf: (*int8)(unsafe.Pointer(&data[0])), + } + } + return putmsg(fd, clp, datap, flags) +} + +//sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) + +func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) { + var clp, datap *strbuf + if len(cl) > 0 { + clp = &strbuf{ + Maxlen: int32(len(cl)), + Buf: (*int8)(unsafe.Pointer(&cl[0])), + } + } + if len(data) > 0 { + datap = &strbuf{ + Maxlen: int32(len(data)), + Buf: (*int8)(unsafe.Pointer(&data[0])), + } + } + + if err = getmsg(fd, clp, datap, &flags); err != nil { + return nil, nil, 0, err + } + + if len(cl) > 0 { + retCl = cl[:clp.Len] + } + if len(data) > 0 { + retData = data[:datap.Len] + } + return retCl, retData, flags, nil +} + +func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) { + return ioctlRet(fd, req, uintptr(arg)) +} + +func IoctlSetString(fd int, req uint, val string) error { + bs := make([]byte, len(val)+1) + copy(bs[:len(bs)-1], val) + err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0]))) + runtime.KeepAlive(&bs[0]) + return err +} + +// Lifreq Helpers + +func (l *Lifreq) SetName(name string) error { + if len(name) >= len(l.Name) { + return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1) + } + for i := range name { + l.Name[i] = int8(name[i]) + } + return nil +} + +func (l *Lifreq) SetLifruInt(d int) { + *(*int)(unsafe.Pointer(&l.Lifru[0])) = d +} + +func (l *Lifreq) GetLifruInt() int { + return *(*int)(unsafe.Pointer(&l.Lifru[0])) +} + +func (l *Lifreq) SetLifruUint(d uint) { + *(*uint)(unsafe.Pointer(&l.Lifru[0])) = d +} + +func (l *Lifreq) GetLifruUint() uint { + return *(*uint)(unsafe.Pointer(&l.Lifru[0])) +} + +func IoctlLifreq(fd int, req uint, l *Lifreq) error { + return ioctl(fd, req, uintptr(unsafe.Pointer(l))) +} + +// Strioctl Helpers + +func (s *Strioctl) SetInt(i int) { + s.Len = int32(unsafe.Sizeof(i)) + s.Dp = (*int8)(unsafe.Pointer(&i)) +} + +func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) { + return ioctlRet(fd, req, uintptr(unsafe.Pointer(s))) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go new file mode 100644 index 0000000..0bd25ef --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go @@ -0,0 +1,28 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build amd64 && solaris +// +build amd64,solaris + +package unix + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { + return Timeval{Sec: sec, Usec: usec} +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetIovlen(length int) { + msghdr.Iovlen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = uint32(length) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go new file mode 100644 index 0000000..00f0aa3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -0,0 +1,589 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris + +package unix + +import ( + "bytes" + "sort" + "sync" + "syscall" + "unsafe" +) + +var ( + Stdin = 0 + Stdout = 1 + Stderr = 2 +) + +// Do the interface allocations only once for common +// Errno values. +var ( + errEAGAIN error = syscall.EAGAIN + errEINVAL error = syscall.EINVAL + errENOENT error = syscall.ENOENT +) + +var ( + signalNameMapOnce sync.Once + signalNameMap map[string]syscall.Signal +) + +// errnoErr returns common boxed Errno values, to prevent +// allocations at runtime. +func errnoErr(e syscall.Errno) error { + switch e { + case 0: + return nil + case EAGAIN: + return errEAGAIN + case EINVAL: + return errEINVAL + case ENOENT: + return errENOENT + } + return e +} + +// ErrnoName returns the error name for error number e. +func ErrnoName(e syscall.Errno) string { + i := sort.Search(len(errorList), func(i int) bool { + return errorList[i].num >= e + }) + if i < len(errorList) && errorList[i].num == e { + return errorList[i].name + } + return "" +} + +// SignalName returns the signal name for signal number s. +func SignalName(s syscall.Signal) string { + i := sort.Search(len(signalList), func(i int) bool { + return signalList[i].num >= s + }) + if i < len(signalList) && signalList[i].num == s { + return signalList[i].name + } + return "" +} + +// SignalNum returns the syscall.Signal for signal named s, +// or 0 if a signal with such name is not found. +// The signal name should start with "SIG". +func SignalNum(s string) syscall.Signal { + signalNameMapOnce.Do(func() { + signalNameMap = make(map[string]syscall.Signal, len(signalList)) + for _, signal := range signalList { + signalNameMap[signal.name] = signal.num + } + }) + return signalNameMap[s] +} + +// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte. +func clen(n []byte) int { + i := bytes.IndexByte(n, 0) + if i == -1 { + i = len(n) + } + return i +} + +// Mmap manager, for use by operating system-specific implementations. + +type mmapper struct { + sync.Mutex + active map[*byte][]byte // active mappings; key is last byte in mapping + mmap func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error) + munmap func(addr uintptr, length uintptr) error +} + +func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + if length <= 0 { + return nil, EINVAL + } + + // Map the requested memory. + addr, errno := m.mmap(0, uintptr(length), prot, flags, fd, offset) + if errno != nil { + return nil, errno + } + + // Use unsafe to convert addr into a []byte. + b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length) + + // Register mapping in m and return it. + p := &b[cap(b)-1] + m.Lock() + defer m.Unlock() + m.active[p] = b + return b, nil +} + +func (m *mmapper) Munmap(data []byte) (err error) { + if len(data) == 0 || len(data) != cap(data) { + return EINVAL + } + + // Find the base of the mapping. + p := &data[cap(data)-1] + m.Lock() + defer m.Unlock() + b := m.active[p] + if b == nil || &b[0] != &data[0] { + return EINVAL + } + + // Unmap the memory and update m. + if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil { + return errno + } + delete(m.active, p) + return nil +} + +func Read(fd int, p []byte) (n int, err error) { + n, err = read(fd, p) + if raceenabled { + if n > 0 { + raceWriteRange(unsafe.Pointer(&p[0]), n) + } + if err == nil { + raceAcquire(unsafe.Pointer(&ioSync)) + } + } + return +} + +func Write(fd int, p []byte) (n int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + n, err = write(fd, p) + if raceenabled && n > 0 { + raceReadRange(unsafe.Pointer(&p[0]), n) + } + return +} + +func Pread(fd int, p []byte, offset int64) (n int, err error) { + n, err = pread(fd, p, offset) + if raceenabled { + if n > 0 { + raceWriteRange(unsafe.Pointer(&p[0]), n) + } + if err == nil { + raceAcquire(unsafe.Pointer(&ioSync)) + } + } + return +} + +func Pwrite(fd int, p []byte, offset int64) (n int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + n, err = pwrite(fd, p, offset) + if raceenabled && n > 0 { + raceReadRange(unsafe.Pointer(&p[0]), n) + } + return +} + +// For testing: clients can set this flag to force +// creation of IPv6 sockets to return EAFNOSUPPORT. +var SocketDisableIPv6 bool + +// Sockaddr represents a socket address. +type Sockaddr interface { + sockaddr() (ptr unsafe.Pointer, len _Socklen, err error) // lowercase; only we can define Sockaddrs +} + +// SockaddrInet4 implements the Sockaddr interface for AF_INET type sockets. +type SockaddrInet4 struct { + Port int + Addr [4]byte + raw RawSockaddrInet4 +} + +// SockaddrInet6 implements the Sockaddr interface for AF_INET6 type sockets. +type SockaddrInet6 struct { + Port int + ZoneId uint32 + Addr [16]byte + raw RawSockaddrInet6 +} + +// SockaddrUnix implements the Sockaddr interface for AF_UNIX type sockets. +type SockaddrUnix struct { + Name string + raw RawSockaddrUnix +} + +func Bind(fd int, sa Sockaddr) (err error) { + ptr, n, err := sa.sockaddr() + if err != nil { + return err + } + return bind(fd, ptr, n) +} + +func Connect(fd int, sa Sockaddr) (err error) { + ptr, n, err := sa.sockaddr() + if err != nil { + return err + } + return connect(fd, ptr, n) +} + +func Getpeername(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getpeername(fd, &rsa, &len); err != nil { + return + } + return anyToSockaddr(fd, &rsa) +} + +func GetsockoptByte(fd, level, opt int) (value byte, err error) { + var n byte + vallen := _Socklen(1) + err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) + return n, err +} + +func GetsockoptInt(fd, level, opt int) (value int, err error) { + var n int32 + vallen := _Socklen(4) + err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) + return int(n), err +} + +func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) { + vallen := _Socklen(4) + err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) + return value, err +} + +func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) { + var value IPMreq + vallen := _Socklen(SizeofIPMreq) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) { + var value IPv6Mreq + vallen := _Socklen(SizeofIPv6Mreq) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { + var value IPv6MTUInfo + vallen := _Socklen(SizeofIPv6MTUInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) { + var value ICMPv6Filter + vallen := _Socklen(SizeofICMPv6Filter) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptLinger(fd, level, opt int) (*Linger, error) { + var linger Linger + vallen := _Socklen(SizeofLinger) + err := getsockopt(fd, level, opt, unsafe.Pointer(&linger), &vallen) + return &linger, err +} + +func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) { + var tv Timeval + vallen := _Socklen(unsafe.Sizeof(tv)) + err := getsockopt(fd, level, opt, unsafe.Pointer(&tv), &vallen) + return &tv, err +} + +func GetsockoptUint64(fd, level, opt int) (value uint64, err error) { + var n uint64 + vallen := _Socklen(8) + err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) + return n, err +} + +func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if n, err = recvfrom(fd, p, flags, &rsa, &len); err != nil { + return + } + if rsa.Addr.Family != AF_UNSPEC { + from, err = anyToSockaddr(fd, &rsa) + } + return +} + +// Recvmsg receives a message from a socket using the recvmsg system call. The +// received non-control data will be written to p, and any "out of band" +// control data will be written to oob. The flags are passed to recvmsg. +// +// The results are: +// - n is the number of non-control data bytes read into p +// - oobn is the number of control data bytes read into oob; this may be interpreted using [ParseSocketControlMessage] +// - recvflags is flags returned by recvmsg +// - from is the address of the sender +// +// If the underlying socket type is not SOCK_DGRAM, a received message +// containing oob data and a single '\0' of non-control data is treated as if +// the message contained only control data, i.e. n will be zero on return. +func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { + var iov [1]Iovec + if len(p) > 0 { + iov[0].Base = &p[0] + iov[0].SetLen(len(p)) + } + var rsa RawSockaddrAny + n, oobn, recvflags, err = recvmsgRaw(fd, iov[:], oob, flags, &rsa) + // source address is only specified if the socket is unconnected + if rsa.Addr.Family != AF_UNSPEC { + from, err = anyToSockaddr(fd, &rsa) + } + return +} + +// RecvmsgBuffers receives a message from a socket using the recvmsg system +// call. This function is equivalent to Recvmsg, but non-control data read is +// scattered into the buffers slices. +func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { + iov := make([]Iovec, len(buffers)) + for i := range buffers { + if len(buffers[i]) > 0 { + iov[i].Base = &buffers[i][0] + iov[i].SetLen(len(buffers[i])) + } else { + iov[i].Base = (*byte)(unsafe.Pointer(&_zero)) + } + } + var rsa RawSockaddrAny + n, oobn, recvflags, err = recvmsgRaw(fd, iov, oob, flags, &rsa) + if err == nil && rsa.Addr.Family != AF_UNSPEC { + from, err = anyToSockaddr(fd, &rsa) + } + return +} + +// Sendmsg sends a message on a socket to an address using the sendmsg system +// call. This function is equivalent to SendmsgN, but does not return the +// number of bytes actually sent. +func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { + _, err = SendmsgN(fd, p, oob, to, flags) + return +} + +// SendmsgN sends a message on a socket to an address using the sendmsg system +// call. p contains the non-control data to send, and oob contains the "out of +// band" control data. The flags are passed to sendmsg. The number of +// non-control bytes actually written to the socket is returned. +// +// Some socket types do not support sending control data without accompanying +// non-control data. If p is empty, and oob contains control data, and the +// underlying socket type is not SOCK_DGRAM, p will be treated as containing a +// single '\0' and the return value will indicate zero bytes sent. +// +// The Go function Recvmsg, if called with an empty p and a non-empty oob, +// will read and ignore this additional '\0'. If the message is received by +// code that does not use Recvmsg, or that does not use Go at all, that code +// will need to be written to expect and ignore the additional '\0'. +// +// If you need to send non-empty oob with p actually empty, and if the +// underlying socket type supports it, you can do so via a raw system call as +// follows: +// +// msg := &unix.Msghdr{ +// Control: &oob[0], +// } +// msg.SetControllen(len(oob)) +// n, _, errno := unix.Syscall(unix.SYS_SENDMSG, uintptr(fd), uintptr(unsafe.Pointer(msg)), flags) +func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { + var iov [1]Iovec + if len(p) > 0 { + iov[0].Base = &p[0] + iov[0].SetLen(len(p)) + } + var ptr unsafe.Pointer + var salen _Socklen + if to != nil { + ptr, salen, err = to.sockaddr() + if err != nil { + return 0, err + } + } + return sendmsgN(fd, iov[:], oob, ptr, salen, flags) +} + +// SendmsgBuffers sends a message on a socket to an address using the sendmsg +// system call. This function is equivalent to SendmsgN, but the non-control +// data is gathered from buffers. +func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) { + iov := make([]Iovec, len(buffers)) + for i := range buffers { + if len(buffers[i]) > 0 { + iov[i].Base = &buffers[i][0] + iov[i].SetLen(len(buffers[i])) + } else { + iov[i].Base = (*byte)(unsafe.Pointer(&_zero)) + } + } + var ptr unsafe.Pointer + var salen _Socklen + if to != nil { + ptr, salen, err = to.sockaddr() + if err != nil { + return 0, err + } + } + return sendmsgN(fd, iov, oob, ptr, salen, flags) +} + +func Send(s int, buf []byte, flags int) (err error) { + return sendto(s, buf, flags, nil, 0) +} + +func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) { + var ptr unsafe.Pointer + var salen _Socklen + if to != nil { + ptr, salen, err = to.sockaddr() + if err != nil { + return err + } + } + return sendto(fd, p, flags, ptr, salen) +} + +func SetsockoptByte(fd, level, opt int, value byte) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(&value), 1) +} + +func SetsockoptInt(fd, level, opt int, value int) (err error) { + var n = int32(value) + return setsockopt(fd, level, opt, unsafe.Pointer(&n), 4) +} + +func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(&value[0]), 4) +} + +func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq) +} + +func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq) +} + +func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error { + return setsockopt(fd, level, opt, unsafe.Pointer(filter), SizeofICMPv6Filter) +} + +func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(l), SizeofLinger) +} + +func SetsockoptString(fd, level, opt int, s string) (err error) { + var p unsafe.Pointer + if len(s) > 0 { + p = unsafe.Pointer(&[]byte(s)[0]) + } + return setsockopt(fd, level, opt, p, uintptr(len(s))) +} + +func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv)) +} + +func SetsockoptUint64(fd, level, opt int, value uint64) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(&value), 8) +} + +func Socket(domain, typ, proto int) (fd int, err error) { + if domain == AF_INET6 && SocketDisableIPv6 { + return -1, EAFNOSUPPORT + } + fd, err = socket(domain, typ, proto) + return +} + +func Socketpair(domain, typ, proto int) (fd [2]int, err error) { + var fdx [2]int32 + err = socketpair(domain, typ, proto, &fdx) + if err == nil { + fd[0] = int(fdx[0]) + fd[1] = int(fdx[1]) + } + return +} + +var ioSync int64 + +func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) } + +func SetNonblock(fd int, nonblocking bool) (err error) { + flag, err := fcntl(fd, F_GETFL, 0) + if err != nil { + return err + } + if nonblocking { + flag |= O_NONBLOCK + } else { + flag &= ^O_NONBLOCK + } + _, err = fcntl(fd, F_SETFL, flag) + return err +} + +// Exec calls execve(2), which replaces the calling executable in the process +// tree. argv0 should be the full path to an executable ("/bin/ls") and the +// executable name should also be the first argument in argv (["ls", "-l"]). +// envv are the environment variables that should be passed to the new +// process (["USER=go", "PWD=/tmp"]). +func Exec(argv0 string, argv []string, envv []string) error { + return syscall.Exec(argv0, argv, envv) +} + +// Lutimes sets the access and modification times tv on path. If path refers to +// a symlink, it is not dereferenced and the timestamps are set on the symlink. +// If tv is nil, the access and modification times are set to the current time. +// Otherwise tv must contain exactly 2 elements, with access time as the first +// element and modification time as the second element. +func Lutimes(path string, tv []Timeval) error { + if tv == nil { + return UtimesNanoAt(AT_FDCWD, path, nil, AT_SYMLINK_NOFOLLOW) + } + if len(tv) != 2 { + return EINVAL + } + ts := []Timespec{ + NsecToTimespec(TimevalToNsec(tv[0])), + NsecToTimespec(TimevalToNsec(tv[1])), + } + return UtimesNanoAt(AT_FDCWD, path, ts, AT_SYMLINK_NOFOLLOW) +} + +// emptyIovecs reports whether there are no bytes in the slice of Iovec. +func emptyIovecs(iov []Iovec) bool { + for i := range iov { + if iov[i].Len > 0 { + return false + } + } + return true +} diff --git a/vendor/golang.org/x/sys/unix/syscall_unix_gc.go b/vendor/golang.org/x/sys/unix/syscall_unix_gc.go new file mode 100644 index 0000000..b6919ca --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_unix_gc.go @@ -0,0 +1,16 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc +// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris +// +build gc + +package unix + +import "syscall" + +func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) +func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) +func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) +func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go new file mode 100644 index 0000000..f6f707a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go @@ -0,0 +1,25 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux && (ppc64le || ppc64) && gc +// +build linux +// +build ppc64le ppc64 +// +build gc + +package unix + +import "syscall" + +func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { + return syscall.Syscall(trap, a1, a2, a3) +} +func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { + return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) +} +func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { + return syscall.RawSyscall(trap, a1, a2, a3) +} +func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { + return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) +} diff --git a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go new file mode 100644 index 0000000..68b2f3e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go @@ -0,0 +1,1994 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +package unix + +import ( + "bytes" + "fmt" + "runtime" + "sort" + "strings" + "sync" + "syscall" + "unsafe" +) + +const ( + O_CLOEXEC = 0 // Dummy value (not supported). + AF_LOCAL = AF_UNIX // AF_LOCAL is an alias for AF_UNIX +) + +func syscall_syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) +func syscall_rawsyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_rawsyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall_syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) +func syscall_rawsyscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno) + +func copyStat(stat *Stat_t, statLE *Stat_LE_t) { + stat.Dev = uint64(statLE.Dev) + stat.Ino = uint64(statLE.Ino) + stat.Nlink = uint64(statLE.Nlink) + stat.Mode = uint32(statLE.Mode) + stat.Uid = uint32(statLE.Uid) + stat.Gid = uint32(statLE.Gid) + stat.Rdev = uint64(statLE.Rdev) + stat.Size = statLE.Size + stat.Atim.Sec = int64(statLE.Atim) + stat.Atim.Nsec = 0 //zos doesn't return nanoseconds + stat.Mtim.Sec = int64(statLE.Mtim) + stat.Mtim.Nsec = 0 //zos doesn't return nanoseconds + stat.Ctim.Sec = int64(statLE.Ctim) + stat.Ctim.Nsec = 0 //zos doesn't return nanoseconds + stat.Blksize = int64(statLE.Blksize) + stat.Blocks = statLE.Blocks +} + +func svcCall(fnptr unsafe.Pointer, argv *unsafe.Pointer, dsa *uint64) +func svcLoad(name *byte) unsafe.Pointer +func svcUnload(name *byte, fnptr unsafe.Pointer) int64 + +func (d *Dirent) NameString() string { + if d == nil { + return "" + } + s := string(d.Name[:]) + idx := strings.IndexByte(s, 0) + if idx == -1 { + return s + } else { + return s[:idx] + } +} + +func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Len = SizeofSockaddrInet4 + sa.raw.Family = AF_INET + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil +} + +func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { + if sa.Port < 0 || sa.Port > 0xFFFF { + return nil, 0, EINVAL + } + sa.raw.Len = SizeofSockaddrInet6 + sa.raw.Family = AF_INET6 + p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) + p[0] = byte(sa.Port >> 8) + p[1] = byte(sa.Port) + sa.raw.Scope_id = sa.ZoneId + sa.raw.Addr = sa.Addr + return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil +} + +func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { + name := sa.Name + n := len(name) + if n >= len(sa.raw.Path) || n == 0 { + return nil, 0, EINVAL + } + sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL + sa.raw.Family = AF_UNIX + for i := 0; i < n; i++ { + sa.raw.Path[i] = int8(name[i]) + } + return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil +} + +func anyToSockaddr(_ int, rsa *RawSockaddrAny) (Sockaddr, error) { + // TODO(neeilan): Implement use of first param (fd) + switch rsa.Addr.Family { + case AF_UNIX: + pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) + sa := new(SockaddrUnix) + // For z/OS, only replace NUL with @ when the + // length is not zero. + if pp.Len != 0 && pp.Path[0] == 0 { + // "Abstract" Unix domain socket. + // Rewrite leading NUL as @ for textual display. + // (This is the standard convention.) + // Not friendly to overwrite in place, + // but the callers below don't care. + pp.Path[0] = '@' + } + + // Assume path ends at NUL. + // + // For z/OS, the length of the name is a field + // in the structure. To be on the safe side, we + // will still scan the name for a NUL but only + // to the length provided in the structure. + // + // This is not technically the Linux semantics for + // abstract Unix domain sockets--they are supposed + // to be uninterpreted fixed-size binary blobs--but + // everyone uses this convention. + n := 0 + for n < int(pp.Len) && pp.Path[n] != 0 { + n++ + } + bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] + sa.Name = string(bytes) + return sa, nil + + case AF_INET: + pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet4) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.Addr = pp.Addr + return sa, nil + + case AF_INET6: + pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) + sa := new(SockaddrInet6) + p := (*[2]byte)(unsafe.Pointer(&pp.Port)) + sa.Port = int(p[0])<<8 + int(p[1]) + sa.ZoneId = pp.Scope_id + sa.Addr = pp.Addr + return sa, nil + } + return nil, EAFNOSUPPORT +} + +func Accept(fd int) (nfd int, sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + nfd, err = accept(fd, &rsa, &len) + if err != nil { + return + } + // TODO(neeilan): Remove 0 in call + sa, err = anyToSockaddr(0, &rsa) + if err != nil { + Close(nfd) + nfd = 0 + } + return +} + +func (iov *Iovec) SetLen(length int) { + iov.Len = uint64(length) +} + +func (msghdr *Msghdr) SetControllen(length int) { + msghdr.Controllen = int32(length) +} + +func (cmsg *Cmsghdr) SetLen(length int) { + cmsg.Len = int32(length) +} + +//sys fcntl(fd int, cmd int, arg int) (val int, err error) +//sys read(fd int, p []byte) (n int, err error) +//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ +//sys write(fd int, p []byte) (n int, err error) + +//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) = SYS___ACCEPT_A +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = SYS___BIND_A +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = SYS___CONNECT_A +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) +//sysnb setgroups(n int, list *_Gid_t) (err error) +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) +//sysnb socket(domain int, typ int, proto int) (fd int, err error) +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = SYS___GETPEERNAME_A +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = SYS___GETSOCKNAME_A +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = SYS___RECVFROM_A +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = SYS___SENDTO_A +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = SYS___RECVMSG_A +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = SYS___SENDMSG_A +//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) = SYS_MMAP +//sys munmap(addr uintptr, length uintptr) (err error) = SYS_MUNMAP +//sys ioctl(fd int, req uint, arg uintptr) (err error) = SYS_IOCTL + +//sys Access(path string, mode uint32) (err error) = SYS___ACCESS_A +//sys Chdir(path string) (err error) = SYS___CHDIR_A +//sys Chown(path string, uid int, gid int) (err error) = SYS___CHOWN_A +//sys Chmod(path string, mode uint32) (err error) = SYS___CHMOD_A +//sys Creat(path string, mode uint32) (fd int, err error) = SYS___CREAT_A +//sys Dup(oldfd int) (fd int, err error) +//sys Dup2(oldfd int, newfd int) (err error) +//sys Errno2() (er2 int) = SYS___ERRNO2 +//sys Err2ad() (eadd *int) = SYS___ERR2AD +//sys Exit(code int) +//sys Fchdir(fd int) (err error) +//sys Fchmod(fd int, mode uint32) (err error) +//sys Fchown(fd int, uid int, gid int) (err error) +//sys FcntlInt(fd uintptr, cmd int, arg int) (retval int, err error) = SYS_FCNTL +//sys fstat(fd int, stat *Stat_LE_t) (err error) + +func Fstat(fd int, stat *Stat_t) (err error) { + var statLE Stat_LE_t + err = fstat(fd, &statLE) + copyStat(stat, &statLE) + return +} + +//sys Fstatvfs(fd int, stat *Statvfs_t) (err error) = SYS_FSTATVFS +//sys Fsync(fd int) (err error) +//sys Ftruncate(fd int, length int64) (err error) +//sys Getpagesize() (pgsize int) = SYS_GETPAGESIZE +//sys Mprotect(b []byte, prot int) (err error) = SYS_MPROTECT +//sys Msync(b []byte, flags int) (err error) = SYS_MSYNC +//sys Poll(fds []PollFd, timeout int) (n int, err error) = SYS_POLL +//sys Times(tms *Tms) (ticks uintptr, err error) = SYS_TIMES +//sys W_Getmntent(buff *byte, size int) (lastsys int, err error) = SYS_W_GETMNTENT +//sys W_Getmntent_A(buff *byte, size int) (lastsys int, err error) = SYS___W_GETMNTENT_A + +//sys mount_LE(path string, filesystem string, fstype string, mtm uint32, parmlen int32, parm string) (err error) = SYS___MOUNT_A +//sys unmount(filesystem string, mtm int) (err error) = SYS___UMOUNT_A +//sys Chroot(path string) (err error) = SYS___CHROOT_A +//sys Select(nmsgsfds int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (ret int, err error) = SYS_SELECT +//sysnb Uname(buf *Utsname) (err error) = SYS___UNAME_A + +func Ptsname(fd int) (name string, err error) { + r0, _, e1 := syscall_syscall(SYS___PTSNAME_A, uintptr(fd), 0, 0) + name = u2s(unsafe.Pointer(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func u2s(cstr unsafe.Pointer) string { + str := (*[1024]uint8)(cstr) + i := 0 + for str[i] != 0 { + i++ + } + return string(str[:i]) +} + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(SYS_CLOSE, uintptr(fd), 0, 0) + for i := 0; e1 == EAGAIN && i < 10; i++ { + _, _, _ = syscall_syscall(SYS_USLEEP, uintptr(10), 0, 0) + _, _, e1 = syscall_syscall(SYS_CLOSE, uintptr(fd), 0, 0) + } + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var mapper = &mmapper{ + active: make(map[*byte][]byte), + mmap: mmap, + munmap: munmap, +} + +// Dummy function: there are no semantics for Madvise on z/OS +func Madvise(b []byte, advice int) (err error) { + return +} + +func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + return mapper.Mmap(fd, offset, length, prot, flags) +} + +func Munmap(b []byte) (err error) { + return mapper.Munmap(b) +} + +//sys Gethostname(buf []byte) (err error) = SYS___GETHOSTNAME_A +//sysnb Getegid() (egid int) +//sysnb Geteuid() (uid int) +//sysnb Getgid() (gid int) +//sysnb Getpid() (pid int) +//sysnb Getpgid(pid int) (pgid int, err error) = SYS_GETPGID + +func Getpgrp() (pid int) { + pid, _ = Getpgid(0) + return +} + +//sysnb Getppid() (pid int) +//sys Getpriority(which int, who int) (prio int, err error) +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_GETRLIMIT + +//sysnb getrusage(who int, rusage *rusage_zos) (err error) = SYS_GETRUSAGE + +func Getrusage(who int, rusage *Rusage) (err error) { + var ruz rusage_zos + err = getrusage(who, &ruz) + //Only the first two fields of Rusage are set + rusage.Utime.Sec = ruz.Utime.Sec + rusage.Utime.Usec = int64(ruz.Utime.Usec) + rusage.Stime.Sec = ruz.Stime.Sec + rusage.Stime.Usec = int64(ruz.Stime.Usec) + return +} + +//sysnb Getsid(pid int) (sid int, err error) = SYS_GETSID +//sysnb Getuid() (uid int) +//sysnb Kill(pid int, sig Signal) (err error) +//sys Lchown(path string, uid int, gid int) (err error) = SYS___LCHOWN_A +//sys Link(path string, link string) (err error) = SYS___LINK_A +//sys Listen(s int, n int) (err error) +//sys lstat(path string, stat *Stat_LE_t) (err error) = SYS___LSTAT_A + +func Lstat(path string, stat *Stat_t) (err error) { + var statLE Stat_LE_t + err = lstat(path, &statLE) + copyStat(stat, &statLE) + return +} + +//sys Mkdir(path string, mode uint32) (err error) = SYS___MKDIR_A +//sys Mkfifo(path string, mode uint32) (err error) = SYS___MKFIFO_A +//sys Mknod(path string, mode uint32, dev int) (err error) = SYS___MKNOD_A +//sys Pread(fd int, p []byte, offset int64) (n int, err error) +//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) +//sys Readlink(path string, buf []byte) (n int, err error) = SYS___READLINK_A +//sys Rename(from string, to string) (err error) = SYS___RENAME_A +//sys Rmdir(path string) (err error) = SYS___RMDIR_A +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK +//sys Setpriority(which int, who int, prio int) (err error) +//sysnb Setpgid(pid int, pgid int) (err error) = SYS_SETPGID +//sysnb Setrlimit(resource int, lim *Rlimit) (err error) +//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID +//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID +//sysnb Setsid() (pid int, err error) = SYS_SETSID +//sys Setuid(uid int) (err error) = SYS_SETUID +//sys Setgid(uid int) (err error) = SYS_SETGID +//sys Shutdown(fd int, how int) (err error) +//sys stat(path string, statLE *Stat_LE_t) (err error) = SYS___STAT_A + +func Stat(path string, sta *Stat_t) (err error) { + var statLE Stat_LE_t + err = stat(path, &statLE) + copyStat(sta, &statLE) + return +} + +//sys Symlink(path string, link string) (err error) = SYS___SYMLINK_A +//sys Sync() = SYS_SYNC +//sys Truncate(path string, length int64) (err error) = SYS___TRUNCATE_A +//sys Tcgetattr(fildes int, termptr *Termios) (err error) = SYS_TCGETATTR +//sys Tcsetattr(fildes int, when int, termptr *Termios) (err error) = SYS_TCSETATTR +//sys Umask(mask int) (oldmask int) +//sys Unlink(path string) (err error) = SYS___UNLINK_A +//sys Utime(path string, utim *Utimbuf) (err error) = SYS___UTIME_A + +//sys open(path string, mode int, perm uint32) (fd int, err error) = SYS___OPEN_A + +func Open(path string, mode int, perm uint32) (fd int, err error) { + return open(path, mode, perm) +} + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + wd, err := Getwd() + if err != nil { + return err + } + + if err := Fchdir(dirfd); err != nil { + return err + } + defer Chdir(wd) + + return Mkfifo(path, mode) +} + +//sys remove(path string) (err error) + +func Remove(path string) error { + return remove(path) +} + +const ImplementsGetwd = true + +func Getcwd(buf []byte) (n int, err error) { + var p unsafe.Pointer + if len(buf) > 0 { + p = unsafe.Pointer(&buf[0]) + } else { + p = unsafe.Pointer(&_zero) + } + _, _, e := syscall_syscall(SYS___GETCWD_A, uintptr(p), uintptr(len(buf)), 0) + n = clen(buf) + 1 + if e != 0 { + err = errnoErr(e) + } + return +} + +func Getwd() (wd string, err error) { + var buf [PathMax]byte + n, err := Getcwd(buf[0:]) + if err != nil { + return "", err + } + // Getcwd returns the number of bytes written to buf, including the NUL. + if n < 1 || n > len(buf) || buf[n-1] != 0 { + return "", EINVAL + } + return string(buf[0 : n-1]), nil +} + +func Getgroups() (gids []int, err error) { + n, err := getgroups(0, nil) + if err != nil { + return nil, err + } + if n == 0 { + return nil, nil + } + + // Sanity check group count. Max is 1<<16 on Linux. + if n < 0 || n > 1<<20 { + return nil, EINVAL + } + + a := make([]_Gid_t, n) + n, err = getgroups(n, &a[0]) + if err != nil { + return nil, err + } + gids = make([]int, n) + for i, v := range a[0:n] { + gids[i] = int(v) + } + return +} + +func Setgroups(gids []int) (err error) { + if len(gids) == 0 { + return setgroups(0, nil) + } + + a := make([]_Gid_t, len(gids)) + for i, v := range gids { + a[i] = _Gid_t(v) + } + return setgroups(len(a), &a[0]) +} + +func gettid() uint64 + +func Gettid() (tid int) { + return int(gettid()) +} + +type WaitStatus uint32 + +// Wait status is 7 bits at bottom, either 0 (exited), +// 0x7F (stopped), or a signal number that caused an exit. +// The 0x80 bit is whether there was a core dump. +// An extra number (exit code, signal causing a stop) +// is in the high bits. At least that's the idea. +// There are various irregularities. For example, the +// "continued" status is 0xFFFF, distinguishing itself +// from stopped via the core dump bit. + +const ( + mask = 0x7F + core = 0x80 + exited = 0x00 + stopped = 0x7F + shift = 8 +) + +func (w WaitStatus) Exited() bool { return w&mask == exited } + +func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != exited } + +func (w WaitStatus) Stopped() bool { return w&0xFF == stopped } + +func (w WaitStatus) Continued() bool { return w == 0xFFFF } + +func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } + +func (w WaitStatus) ExitStatus() int { + if !w.Exited() { + return -1 + } + return int(w>>shift) & 0xFF +} + +func (w WaitStatus) Signal() Signal { + if !w.Signaled() { + return -1 + } + return Signal(w & mask) +} + +func (w WaitStatus) StopSignal() Signal { + if !w.Stopped() { + return -1 + } + return Signal(w>>shift) & 0xFF +} + +func (w WaitStatus) TrapCause() int { return -1 } + +//sys waitpid(pid int, wstatus *_C_int, options int) (wpid int, err error) + +func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { + // TODO(mundaym): z/OS doesn't have wait4. I don't think getrusage does what we want. + // At the moment rusage will not be touched. + var status _C_int + wpid, err = waitpid(pid, &status, options) + if wstatus != nil { + *wstatus = WaitStatus(status) + } + return +} + +//sysnb gettimeofday(tv *timeval_zos) (err error) + +func Gettimeofday(tv *Timeval) (err error) { + var tvz timeval_zos + err = gettimeofday(&tvz) + tv.Sec = tvz.Sec + tv.Usec = int64(tvz.Usec) + return +} + +func Time(t *Time_t) (tt Time_t, err error) { + var tv Timeval + err = Gettimeofday(&tv) + if err != nil { + return 0, err + } + if t != nil { + *t = Time_t(tv.Sec) + } + return Time_t(tv.Sec), nil +} + +func setTimespec(sec, nsec int64) Timespec { + return Timespec{Sec: sec, Nsec: nsec} +} + +func setTimeval(sec, usec int64) Timeval { //fix + return Timeval{Sec: sec, Usec: usec} +} + +//sysnb pipe(p *[2]_C_int) (err error) + +func Pipe(p []int) (err error) { + if len(p) != 2 { + return EINVAL + } + var pp [2]_C_int + err = pipe(&pp) + if err == nil { + p[0] = int(pp[0]) + p[1] = int(pp[1]) + } + return +} + +//sys utimes(path string, timeval *[2]Timeval) (err error) = SYS___UTIMES_A + +func Utimes(path string, tv []Timeval) (err error) { + if len(tv) != 2 { + return EINVAL + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +func UtimesNano(path string, ts []Timespec) error { + if len(ts) != 2 { + return EINVAL + } + // Not as efficient as it could be because Timespec and + // Timeval have different types in the different OSes + tv := [2]Timeval{ + NsecToTimeval(TimespecToNsec(ts[0])), + NsecToTimeval(TimespecToNsec(ts[1])), + } + return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) +} + +func Getsockname(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getsockname(fd, &rsa, &len); err != nil { + return + } + // TODO(neeilan) : Remove this 0 ( added to get sys/unix compiling on z/OS ) + return anyToSockaddr(0, &rsa) +} + +const ( + // identifier constants + nwmHeaderIdentifier = 0xd5e6d4c8 + nwmFilterIdentifier = 0xd5e6d4c6 + nwmTCPConnIdentifier = 0xd5e6d4c3 + nwmRecHeaderIdentifier = 0xd5e6d4d9 + nwmIPStatsIdentifier = 0xd5e6d4c9d7e2e340 + nwmIPGStatsIdentifier = 0xd5e6d4c9d7c7e2e3 + nwmTCPStatsIdentifier = 0xd5e6d4e3c3d7e2e3 + nwmUDPStatsIdentifier = 0xd5e6d4e4c4d7e2e3 + nwmICMPGStatsEntry = 0xd5e6d4c9c3d4d7c7 + nwmICMPTStatsEntry = 0xd5e6d4c9c3d4d7e3 + + // nwmHeader constants + nwmVersion1 = 1 + nwmVersion2 = 2 + nwmCurrentVer = 2 + + nwmTCPConnType = 1 + nwmGlobalStatsType = 14 + + // nwmFilter constants + nwmFilterLclAddrMask = 0x20000000 // Local address + nwmFilterSrcAddrMask = 0x20000000 // Source address + nwmFilterLclPortMask = 0x10000000 // Local port + nwmFilterSrcPortMask = 0x10000000 // Source port + + // nwmConnEntry constants + nwmTCPStateClosed = 1 + nwmTCPStateListen = 2 + nwmTCPStateSynSent = 3 + nwmTCPStateSynRcvd = 4 + nwmTCPStateEstab = 5 + nwmTCPStateFinWait1 = 6 + nwmTCPStateFinWait2 = 7 + nwmTCPStateClosWait = 8 + nwmTCPStateLastAck = 9 + nwmTCPStateClosing = 10 + nwmTCPStateTimeWait = 11 + nwmTCPStateDeletTCB = 12 + + // Existing constants on linux + BPF_TCP_CLOSE = 1 + BPF_TCP_LISTEN = 2 + BPF_TCP_SYN_SENT = 3 + BPF_TCP_SYN_RECV = 4 + BPF_TCP_ESTABLISHED = 5 + BPF_TCP_FIN_WAIT1 = 6 + BPF_TCP_FIN_WAIT2 = 7 + BPF_TCP_CLOSE_WAIT = 8 + BPF_TCP_LAST_ACK = 9 + BPF_TCP_CLOSING = 10 + BPF_TCP_TIME_WAIT = 11 + BPF_TCP_NEW_SYN_RECV = -1 + BPF_TCP_MAX_STATES = -2 +) + +type nwmTriplet struct { + offset uint32 + length uint32 + number uint32 +} + +type nwmQuadruplet struct { + offset uint32 + length uint32 + number uint32 + match uint32 +} + +type nwmHeader struct { + ident uint32 + length uint32 + version uint16 + nwmType uint16 + bytesNeeded uint32 + options uint32 + _ [16]byte + inputDesc nwmTriplet + outputDesc nwmQuadruplet +} + +type nwmFilter struct { + ident uint32 + flags uint32 + resourceName [8]byte + resourceId uint32 + listenerId uint32 + local [28]byte // union of sockaddr4 and sockaddr6 + remote [28]byte // union of sockaddr4 and sockaddr6 + _ uint16 + _ uint16 + asid uint16 + _ [2]byte + tnLuName [8]byte + tnMonGrp uint32 + tnAppl [8]byte + applData [40]byte + nInterface [16]byte + dVipa [16]byte + dVipaPfx uint16 + dVipaPort uint16 + dVipaFamily byte + _ [3]byte + destXCF [16]byte + destXCFPfx uint16 + destXCFFamily byte + _ [1]byte + targIP [16]byte + targIPPfx uint16 + targIPFamily byte + _ [1]byte + _ [20]byte +} + +type nwmRecHeader struct { + ident uint32 + length uint32 + number byte + _ [3]byte +} + +type nwmTCPStatsEntry struct { + ident uint64 + currEstab uint32 + activeOpened uint32 + passiveOpened uint32 + connClosed uint32 + estabResets uint32 + attemptFails uint32 + passiveDrops uint32 + timeWaitReused uint32 + inSegs uint64 + predictAck uint32 + predictData uint32 + inDupAck uint32 + inBadSum uint32 + inBadLen uint32 + inShort uint32 + inDiscOldTime uint32 + inAllBeforeWin uint32 + inSomeBeforeWin uint32 + inAllAfterWin uint32 + inSomeAfterWin uint32 + inOutOfOrder uint32 + inAfterClose uint32 + inWinProbes uint32 + inWinUpdates uint32 + outWinUpdates uint32 + outSegs uint64 + outDelayAcks uint32 + outRsts uint32 + retransSegs uint32 + retransTimeouts uint32 + retransDrops uint32 + pmtuRetrans uint32 + pmtuErrors uint32 + outWinProbes uint32 + probeDrops uint32 + keepAliveProbes uint32 + keepAliveDrops uint32 + finwait2Drops uint32 + acceptCount uint64 + inBulkQSegs uint64 + inDiscards uint64 + connFloods uint32 + connStalls uint32 + cfgEphemDef uint16 + ephemInUse uint16 + ephemHiWater uint16 + flags byte + _ [1]byte + ephemExhaust uint32 + smcRCurrEstabLnks uint32 + smcRLnkActTimeOut uint32 + smcRActLnkOpened uint32 + smcRPasLnkOpened uint32 + smcRLnksClosed uint32 + smcRCurrEstab uint32 + smcRActiveOpened uint32 + smcRPassiveOpened uint32 + smcRConnClosed uint32 + smcRInSegs uint64 + smcROutSegs uint64 + smcRInRsts uint32 + smcROutRsts uint32 + smcDCurrEstabLnks uint32 + smcDActLnkOpened uint32 + smcDPasLnkOpened uint32 + smcDLnksClosed uint32 + smcDCurrEstab uint32 + smcDActiveOpened uint32 + smcDPassiveOpened uint32 + smcDConnClosed uint32 + smcDInSegs uint64 + smcDOutSegs uint64 + smcDInRsts uint32 + smcDOutRsts uint32 +} + +type nwmConnEntry struct { + ident uint32 + local [28]byte // union of sockaddr4 and sockaddr6 + remote [28]byte // union of sockaddr4 and sockaddr6 + startTime [8]byte // uint64, changed to prevent padding from being inserted + lastActivity [8]byte // uint64 + bytesIn [8]byte // uint64 + bytesOut [8]byte // uint64 + inSegs [8]byte // uint64 + outSegs [8]byte // uint64 + state uint16 + activeOpen byte + flag01 byte + outBuffered uint32 + inBuffered uint32 + maxSndWnd uint32 + reXmtCount uint32 + congestionWnd uint32 + ssThresh uint32 + roundTripTime uint32 + roundTripVar uint32 + sendMSS uint32 + sndWnd uint32 + rcvBufSize uint32 + sndBufSize uint32 + outOfOrderCount uint32 + lcl0WindowCount uint32 + rmt0WindowCount uint32 + dupacks uint32 + flag02 byte + sockOpt6Cont byte + asid uint16 + resourceName [8]byte + resourceId uint32 + subtask uint32 + sockOpt byte + sockOpt6 byte + clusterConnFlag byte + proto byte + targetAppl [8]byte + luName [8]byte + clientUserId [8]byte + logMode [8]byte + timeStamp uint32 + timeStampAge uint32 + serverResourceId uint32 + intfName [16]byte + ttlsStatPol byte + ttlsStatConn byte + ttlsSSLProt uint16 + ttlsNegCiph [2]byte + ttlsSecType byte + ttlsFIPS140Mode byte + ttlsUserID [8]byte + applData [40]byte + inOldestTime [8]byte // uint64 + outOldestTime [8]byte // uint64 + tcpTrustedPartner byte + _ [3]byte + bulkDataIntfName [16]byte + ttlsNegCiph4 [4]byte + smcReason uint32 + lclSMCLinkId uint32 + rmtSMCLinkId uint32 + smcStatus byte + smcFlags byte + _ [2]byte + rcvWnd uint32 + lclSMCBufSz uint32 + rmtSMCBufSz uint32 + ttlsSessID [32]byte + ttlsSessIDLen int16 + _ [1]byte + smcDStatus byte + smcDReason uint32 +} + +var svcNameTable [][]byte = [][]byte{ + []byte("\xc5\xe9\xc2\xd5\xd4\xc9\xc6\xf4"), // svc_EZBNMIF4 +} + +const ( + svc_EZBNMIF4 = 0 +) + +func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) { + jobname := []byte("\x5c\x40\x40\x40\x40\x40\x40\x40") // "*" + responseBuffer := [4096]byte{0} + var bufferAlet, reasonCode uint32 = 0, 0 + var bufferLen, returnValue, returnCode int32 = 4096, 0, 0 + + dsa := [18]uint64{0} + var argv [7]unsafe.Pointer + argv[0] = unsafe.Pointer(&jobname[0]) + argv[1] = unsafe.Pointer(&responseBuffer[0]) + argv[2] = unsafe.Pointer(&bufferAlet) + argv[3] = unsafe.Pointer(&bufferLen) + argv[4] = unsafe.Pointer(&returnValue) + argv[5] = unsafe.Pointer(&returnCode) + argv[6] = unsafe.Pointer(&reasonCode) + + request := (*struct { + header nwmHeader + filter nwmFilter + })(unsafe.Pointer(&responseBuffer[0])) + + EZBNMIF4 := svcLoad(&svcNameTable[svc_EZBNMIF4][0]) + if EZBNMIF4 == nil { + return nil, errnoErr(EINVAL) + } + + // GetGlobalStats EZBNMIF4 call + request.header.ident = nwmHeaderIdentifier + request.header.length = uint32(unsafe.Sizeof(request.header)) + request.header.version = nwmCurrentVer + request.header.nwmType = nwmGlobalStatsType + request.header.options = 0x80000000 + + svcCall(EZBNMIF4, &argv[0], &dsa[0]) + + // outputDesc field is filled by EZBNMIF4 on success + if returnCode != 0 || request.header.outputDesc.offset == 0 { + return nil, errnoErr(EINVAL) + } + + // Check that EZBNMIF4 returned a nwmRecHeader + recHeader := (*nwmRecHeader)(unsafe.Pointer(&responseBuffer[request.header.outputDesc.offset])) + if recHeader.ident != nwmRecHeaderIdentifier { + return nil, errnoErr(EINVAL) + } + + // Parse nwmTriplets to get offsets of returned entries + var sections []*uint64 + var sectionDesc *nwmTriplet = (*nwmTriplet)(unsafe.Pointer(&responseBuffer[0])) + for i := uint32(0); i < uint32(recHeader.number); i++ { + offset := request.header.outputDesc.offset + uint32(unsafe.Sizeof(*recHeader)) + i*uint32(unsafe.Sizeof(*sectionDesc)) + sectionDesc = (*nwmTriplet)(unsafe.Pointer(&responseBuffer[offset])) + for j := uint32(0); j < sectionDesc.number; j++ { + offset = request.header.outputDesc.offset + sectionDesc.offset + j*sectionDesc.length + sections = append(sections, (*uint64)(unsafe.Pointer(&responseBuffer[offset]))) + } + } + + // Find nwmTCPStatsEntry in returned entries + var tcpStats *nwmTCPStatsEntry = nil + for _, ptr := range sections { + switch *ptr { + case nwmTCPStatsIdentifier: + if tcpStats != nil { + return nil, errnoErr(EINVAL) + } + tcpStats = (*nwmTCPStatsEntry)(unsafe.Pointer(ptr)) + case nwmIPStatsIdentifier: + case nwmIPGStatsIdentifier: + case nwmUDPStatsIdentifier: + case nwmICMPGStatsEntry: + case nwmICMPTStatsEntry: + default: + return nil, errnoErr(EINVAL) + } + } + if tcpStats == nil { + return nil, errnoErr(EINVAL) + } + + // GetConnectionDetail EZBNMIF4 call + responseBuffer = [4096]byte{0} + dsa = [18]uint64{0} + bufferAlet, reasonCode = 0, 0 + bufferLen, returnValue, returnCode = 4096, 0, 0 + nameptr := (*uint32)(unsafe.Pointer(uintptr(0x21c))) // Get jobname of current process + nameptr = (*uint32)(unsafe.Pointer(uintptr(*nameptr + 12))) + argv[0] = unsafe.Pointer(uintptr(*nameptr)) + + request.header.ident = nwmHeaderIdentifier + request.header.length = uint32(unsafe.Sizeof(request.header)) + request.header.version = nwmCurrentVer + request.header.nwmType = nwmTCPConnType + request.header.options = 0x80000000 + + request.filter.ident = nwmFilterIdentifier + + var localSockaddr RawSockaddrAny + socklen := _Socklen(SizeofSockaddrAny) + err := getsockname(fd, &localSockaddr, &socklen) + if err != nil { + return nil, errnoErr(EINVAL) + } + if localSockaddr.Addr.Family == AF_INET { + localSockaddr := (*RawSockaddrInet4)(unsafe.Pointer(&localSockaddr.Addr)) + localSockFilter := (*RawSockaddrInet4)(unsafe.Pointer(&request.filter.local[0])) + localSockFilter.Family = AF_INET + var i int + for i = 0; i < 4; i++ { + if localSockaddr.Addr[i] != 0 { + break + } + } + if i != 4 { + request.filter.flags |= nwmFilterLclAddrMask + for i = 0; i < 4; i++ { + localSockFilter.Addr[i] = localSockaddr.Addr[i] + } + } + if localSockaddr.Port != 0 { + request.filter.flags |= nwmFilterLclPortMask + localSockFilter.Port = localSockaddr.Port + } + } else if localSockaddr.Addr.Family == AF_INET6 { + localSockaddr := (*RawSockaddrInet6)(unsafe.Pointer(&localSockaddr.Addr)) + localSockFilter := (*RawSockaddrInet6)(unsafe.Pointer(&request.filter.local[0])) + localSockFilter.Family = AF_INET6 + var i int + for i = 0; i < 16; i++ { + if localSockaddr.Addr[i] != 0 { + break + } + } + if i != 16 { + request.filter.flags |= nwmFilterLclAddrMask + for i = 0; i < 16; i++ { + localSockFilter.Addr[i] = localSockaddr.Addr[i] + } + } + if localSockaddr.Port != 0 { + request.filter.flags |= nwmFilterLclPortMask + localSockFilter.Port = localSockaddr.Port + } + } + + svcCall(EZBNMIF4, &argv[0], &dsa[0]) + + // outputDesc field is filled by EZBNMIF4 on success + if returnCode != 0 || request.header.outputDesc.offset == 0 { + return nil, errnoErr(EINVAL) + } + + // Check that EZBNMIF4 returned a nwmConnEntry + conn := (*nwmConnEntry)(unsafe.Pointer(&responseBuffer[request.header.outputDesc.offset])) + if conn.ident != nwmTCPConnIdentifier { + return nil, errnoErr(EINVAL) + } + + // Copy data from the returned data structures into tcpInfo + // Stats from nwmConnEntry are specific to that connection. + // Stats from nwmTCPStatsEntry are global (to the interface?) + // Fields may not be an exact match. Some fields have no equivalent. + var tcpinfo TCPInfo + tcpinfo.State = uint8(conn.state) + tcpinfo.Ca_state = 0 // dummy + tcpinfo.Retransmits = uint8(tcpStats.retransSegs) + tcpinfo.Probes = uint8(tcpStats.outWinProbes) + tcpinfo.Backoff = 0 // dummy + tcpinfo.Options = 0 // dummy + tcpinfo.Rto = tcpStats.retransTimeouts + tcpinfo.Ato = tcpStats.outDelayAcks + tcpinfo.Snd_mss = conn.sendMSS + tcpinfo.Rcv_mss = conn.sendMSS // dummy + tcpinfo.Unacked = 0 // dummy + tcpinfo.Sacked = 0 // dummy + tcpinfo.Lost = 0 // dummy + tcpinfo.Retrans = conn.reXmtCount + tcpinfo.Fackets = 0 // dummy + tcpinfo.Last_data_sent = uint32(*(*uint64)(unsafe.Pointer(&conn.lastActivity[0]))) + tcpinfo.Last_ack_sent = uint32(*(*uint64)(unsafe.Pointer(&conn.outOldestTime[0]))) + tcpinfo.Last_data_recv = uint32(*(*uint64)(unsafe.Pointer(&conn.inOldestTime[0]))) + tcpinfo.Last_ack_recv = uint32(*(*uint64)(unsafe.Pointer(&conn.inOldestTime[0]))) + tcpinfo.Pmtu = conn.sendMSS // dummy, NWMIfRouteMtu is a candidate + tcpinfo.Rcv_ssthresh = conn.ssThresh + tcpinfo.Rtt = conn.roundTripTime + tcpinfo.Rttvar = conn.roundTripVar + tcpinfo.Snd_ssthresh = conn.ssThresh // dummy + tcpinfo.Snd_cwnd = conn.congestionWnd + tcpinfo.Advmss = conn.sendMSS // dummy + tcpinfo.Reordering = 0 // dummy + tcpinfo.Rcv_rtt = conn.roundTripTime // dummy + tcpinfo.Rcv_space = conn.sendMSS // dummy + tcpinfo.Total_retrans = conn.reXmtCount + + svcUnload(&svcNameTable[svc_EZBNMIF4][0], EZBNMIF4) + + return &tcpinfo, nil +} + +// GetsockoptString returns the string value of the socket option opt for the +// socket associated with fd at the given socket level. +func GetsockoptString(fd, level, opt int) (string, error) { + buf := make([]byte, 256) + vallen := _Socklen(len(buf)) + err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) + if err != nil { + return "", err + } + + return string(buf[:vallen-1]), nil +} + +func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { + var msg Msghdr + var rsa RawSockaddrAny + msg.Name = (*byte)(unsafe.Pointer(&rsa)) + msg.Namelen = SizeofSockaddrAny + var iov Iovec + if len(p) > 0 { + iov.Base = (*byte)(unsafe.Pointer(&p[0])) + iov.SetLen(len(p)) + } + var dummy byte + if len(oob) > 0 { + // receive at least one normal byte + if len(p) == 0 { + iov.Base = &dummy + iov.SetLen(1) + } + msg.Control = (*byte)(unsafe.Pointer(&oob[0])) + msg.SetControllen(len(oob)) + } + msg.Iov = &iov + msg.Iovlen = 1 + if n, err = recvmsg(fd, &msg, flags); err != nil { + return + } + oobn = int(msg.Controllen) + recvflags = int(msg.Flags) + // source address is only specified if the socket is unconnected + if rsa.Addr.Family != AF_UNSPEC { + // TODO(neeilan): Remove 0 arg added to get this compiling on z/OS + from, err = anyToSockaddr(0, &rsa) + } + return +} + +func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { + _, err = SendmsgN(fd, p, oob, to, flags) + return +} + +func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { + var ptr unsafe.Pointer + var salen _Socklen + if to != nil { + var err error + ptr, salen, err = to.sockaddr() + if err != nil { + return 0, err + } + } + var msg Msghdr + msg.Name = (*byte)(unsafe.Pointer(ptr)) + msg.Namelen = int32(salen) + var iov Iovec + if len(p) > 0 { + iov.Base = (*byte)(unsafe.Pointer(&p[0])) + iov.SetLen(len(p)) + } + var dummy byte + if len(oob) > 0 { + // send at least one normal byte + if len(p) == 0 { + iov.Base = &dummy + iov.SetLen(1) + } + msg.Control = (*byte)(unsafe.Pointer(&oob[0])) + msg.SetControllen(len(oob)) + } + msg.Iov = &iov + msg.Iovlen = 1 + if n, err = sendmsg(fd, &msg, flags); err != nil { + return 0, err + } + if len(oob) > 0 && len(p) == 0 { + n = 0 + } + return n, nil +} + +func Opendir(name string) (uintptr, error) { + p, err := BytePtrFromString(name) + if err != nil { + return 0, err + } + dir, _, e := syscall_syscall(SYS___OPENDIR_A, uintptr(unsafe.Pointer(p)), 0, 0) + runtime.KeepAlive(unsafe.Pointer(p)) + if e != 0 { + err = errnoErr(e) + } + return dir, err +} + +// clearsyscall.Errno resets the errno value to 0. +func clearErrno() + +func Readdir(dir uintptr) (*Dirent, error) { + var ent Dirent + var res uintptr + // __readdir_r_a returns errno at the end of the directory stream, rather than 0. + // Therefore to avoid false positives we clear errno before calling it. + + // TODO(neeilan): Commented this out to get sys/unix compiling on z/OS. Uncomment and fix. Error: "undefined: clearsyscall" + //clearsyscall.Errno() // TODO(mundaym): check pre-emption rules. + + e, _, _ := syscall_syscall(SYS___READDIR_R_A, dir, uintptr(unsafe.Pointer(&ent)), uintptr(unsafe.Pointer(&res))) + var err error + if e != 0 { + err = errnoErr(Errno(e)) + } + if res == 0 { + return nil, err + } + return &ent, err +} + +func readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) { + r0, _, e1 := syscall_syscall(SYS___READDIR_R_A, dirp, uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + if int64(r0) == -1 { + err = errnoErr(Errno(e1)) + } + return +} + +func Closedir(dir uintptr) error { + _, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0) + if e != 0 { + return errnoErr(e) + } + return nil +} + +func Seekdir(dir uintptr, pos int) { + _, _, _ = syscall_syscall(SYS_SEEKDIR, dir, uintptr(pos), 0) +} + +func Telldir(dir uintptr) (int, error) { + p, _, e := syscall_syscall(SYS_TELLDIR, dir, 0, 0) + pos := int(p) + if pos == -1 { + return pos, errnoErr(e) + } + return pos, nil +} + +// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { + // struct flock is packed on z/OS. We can't emulate that in Go so + // instead we pack it here. + var flock [24]byte + *(*int16)(unsafe.Pointer(&flock[0])) = lk.Type + *(*int16)(unsafe.Pointer(&flock[2])) = lk.Whence + *(*int64)(unsafe.Pointer(&flock[4])) = lk.Start + *(*int64)(unsafe.Pointer(&flock[12])) = lk.Len + *(*int32)(unsafe.Pointer(&flock[20])) = lk.Pid + _, _, errno := syscall_syscall(SYS_FCNTL, fd, uintptr(cmd), uintptr(unsafe.Pointer(&flock))) + lk.Type = *(*int16)(unsafe.Pointer(&flock[0])) + lk.Whence = *(*int16)(unsafe.Pointer(&flock[2])) + lk.Start = *(*int64)(unsafe.Pointer(&flock[4])) + lk.Len = *(*int64)(unsafe.Pointer(&flock[12])) + lk.Pid = *(*int32)(unsafe.Pointer(&flock[20])) + if errno == 0 { + return nil + } + return errno +} + +func Flock(fd int, how int) error { + + var flock_type int16 + var fcntl_cmd int + + switch how { + case LOCK_SH | LOCK_NB: + flock_type = F_RDLCK + fcntl_cmd = F_SETLK + case LOCK_EX | LOCK_NB: + flock_type = F_WRLCK + fcntl_cmd = F_SETLK + case LOCK_EX: + flock_type = F_WRLCK + fcntl_cmd = F_SETLKW + case LOCK_UN: + flock_type = F_UNLCK + fcntl_cmd = F_SETLKW + default: + } + + flock := Flock_t{ + Type: int16(flock_type), + Whence: int16(0), + Start: int64(0), + Len: int64(0), + Pid: int32(Getppid()), + } + + err := FcntlFlock(uintptr(fd), fcntl_cmd, &flock) + return err +} + +func Mlock(b []byte) (err error) { + _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_NONSWAP, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func Mlock2(b []byte, flags int) (err error) { + _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_NONSWAP, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_NONSWAP, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func Munlock(b []byte) (err error) { + _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_SWAP, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(SYS___MLOCKALL, _BPX_SWAP, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +func ClockGettime(clockid int32, ts *Timespec) error { + + var ticks_per_sec uint32 = 100 //TODO(kenan): value is currently hardcoded; need sysconf() call otherwise + var nsec_per_sec int64 = 1000000000 + + if ts == nil { + return EFAULT + } + if clockid == CLOCK_REALTIME || clockid == CLOCK_MONOTONIC { + var nanotime int64 = runtime.Nanotime1() + ts.Sec = nanotime / nsec_per_sec + ts.Nsec = nanotime % nsec_per_sec + } else if clockid == CLOCK_PROCESS_CPUTIME_ID || clockid == CLOCK_THREAD_CPUTIME_ID { + var tm Tms + _, err := Times(&tm) + if err != nil { + return EFAULT + } + ts.Sec = int64(tm.Utime / ticks_per_sec) + ts.Nsec = int64(tm.Utime) * nsec_per_sec / int64(ticks_per_sec) + } else { + return EINVAL + } + return nil +} + +func Statfs(path string, stat *Statfs_t) (err error) { + fd, err := open(path, O_RDONLY, 0) + defer Close(fd) + if err != nil { + return err + } + return Fstatfs(fd, stat) +} + +var ( + Stdin = 0 + Stdout = 1 + Stderr = 2 +) + +// Do the interface allocations only once for common +// Errno values. +var ( + errEAGAIN error = syscall.EAGAIN + errEINVAL error = syscall.EINVAL + errENOENT error = syscall.ENOENT +) + +var ( + signalNameMapOnce sync.Once + signalNameMap map[string]syscall.Signal +) + +// errnoErr returns common boxed Errno values, to prevent +// allocations at runtime. +func errnoErr(e Errno) error { + switch e { + case 0: + return nil + case EAGAIN: + return errEAGAIN + case EINVAL: + return errEINVAL + case ENOENT: + return errENOENT + } + return e +} + +// ErrnoName returns the error name for error number e. +func ErrnoName(e Errno) string { + i := sort.Search(len(errorList), func(i int) bool { + return errorList[i].num >= e + }) + if i < len(errorList) && errorList[i].num == e { + return errorList[i].name + } + return "" +} + +// SignalName returns the signal name for signal number s. +func SignalName(s syscall.Signal) string { + i := sort.Search(len(signalList), func(i int) bool { + return signalList[i].num >= s + }) + if i < len(signalList) && signalList[i].num == s { + return signalList[i].name + } + return "" +} + +// SignalNum returns the syscall.Signal for signal named s, +// or 0 if a signal with such name is not found. +// The signal name should start with "SIG". +func SignalNum(s string) syscall.Signal { + signalNameMapOnce.Do(func() { + signalNameMap = make(map[string]syscall.Signal, len(signalList)) + for _, signal := range signalList { + signalNameMap[signal.name] = signal.num + } + }) + return signalNameMap[s] +} + +// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte. +func clen(n []byte) int { + i := bytes.IndexByte(n, 0) + if i == -1 { + i = len(n) + } + return i +} + +// Mmap manager, for use by operating system-specific implementations. + +type mmapper struct { + sync.Mutex + active map[*byte][]byte // active mappings; key is last byte in mapping + mmap func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error) + munmap func(addr uintptr, length uintptr) error +} + +func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { + if length <= 0 { + return nil, EINVAL + } + + // Map the requested memory. + addr, errno := m.mmap(0, uintptr(length), prot, flags, fd, offset) + if errno != nil { + return nil, errno + } + + // Slice memory layout + var sl = struct { + addr uintptr + len int + cap int + }{addr, length, length} + + // Use unsafe to turn sl into a []byte. + b := *(*[]byte)(unsafe.Pointer(&sl)) + + // Register mapping in m and return it. + p := &b[cap(b)-1] + m.Lock() + defer m.Unlock() + m.active[p] = b + return b, nil +} + +func (m *mmapper) Munmap(data []byte) (err error) { + if len(data) == 0 || len(data) != cap(data) { + return EINVAL + } + + // Find the base of the mapping. + p := &data[cap(data)-1] + m.Lock() + defer m.Unlock() + b := m.active[p] + if b == nil || &b[0] != &data[0] { + return EINVAL + } + + // Unmap the memory and update m. + if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil { + return errno + } + delete(m.active, p) + return nil +} + +func Read(fd int, p []byte) (n int, err error) { + n, err = read(fd, p) + if raceenabled { + if n > 0 { + raceWriteRange(unsafe.Pointer(&p[0]), n) + } + if err == nil { + raceAcquire(unsafe.Pointer(&ioSync)) + } + } + return +} + +func Write(fd int, p []byte) (n int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + n, err = write(fd, p) + if raceenabled && n > 0 { + raceReadRange(unsafe.Pointer(&p[0]), n) + } + return +} + +// For testing: clients can set this flag to force +// creation of IPv6 sockets to return EAFNOSUPPORT. +var SocketDisableIPv6 bool + +// Sockaddr represents a socket address. +type Sockaddr interface { + sockaddr() (ptr unsafe.Pointer, len _Socklen, err error) // lowercase; only we can define Sockaddrs +} + +// SockaddrInet4 implements the Sockaddr interface for AF_INET type sockets. +type SockaddrInet4 struct { + Port int + Addr [4]byte + raw RawSockaddrInet4 +} + +// SockaddrInet6 implements the Sockaddr interface for AF_INET6 type sockets. +type SockaddrInet6 struct { + Port int + ZoneId uint32 + Addr [16]byte + raw RawSockaddrInet6 +} + +// SockaddrUnix implements the Sockaddr interface for AF_UNIX type sockets. +type SockaddrUnix struct { + Name string + raw RawSockaddrUnix +} + +func Bind(fd int, sa Sockaddr) (err error) { + ptr, n, err := sa.sockaddr() + if err != nil { + return err + } + return bind(fd, ptr, n) +} + +func Connect(fd int, sa Sockaddr) (err error) { + ptr, n, err := sa.sockaddr() + if err != nil { + return err + } + return connect(fd, ptr, n) +} + +func Getpeername(fd int) (sa Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if err = getpeername(fd, &rsa, &len); err != nil { + return + } + return anyToSockaddr(fd, &rsa) +} + +func GetsockoptByte(fd, level, opt int) (value byte, err error) { + var n byte + vallen := _Socklen(1) + err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) + return n, err +} + +func GetsockoptInt(fd, level, opt int) (value int, err error) { + var n int32 + vallen := _Socklen(4) + err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) + return int(n), err +} + +func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) { + vallen := _Socklen(4) + err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) + return value, err +} + +func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) { + var value IPMreq + vallen := _Socklen(SizeofIPMreq) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) { + var value IPv6Mreq + vallen := _Socklen(SizeofIPv6Mreq) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { + var value IPv6MTUInfo + vallen := _Socklen(SizeofIPv6MTUInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) { + var value ICMPv6Filter + vallen := _Socklen(SizeofICMPv6Filter) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) + return &value, err +} + +func GetsockoptLinger(fd, level, opt int) (*Linger, error) { + var linger Linger + vallen := _Socklen(SizeofLinger) + err := getsockopt(fd, level, opt, unsafe.Pointer(&linger), &vallen) + return &linger, err +} + +func GetsockoptTimeval(fd, level, opt int) (*Timeval, error) { + var tv Timeval + vallen := _Socklen(unsafe.Sizeof(tv)) + err := getsockopt(fd, level, opt, unsafe.Pointer(&tv), &vallen) + return &tv, err +} + +func GetsockoptUint64(fd, level, opt int) (value uint64, err error) { + var n uint64 + vallen := _Socklen(8) + err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) + return n, err +} + +func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { + var rsa RawSockaddrAny + var len _Socklen = SizeofSockaddrAny + if n, err = recvfrom(fd, p, flags, &rsa, &len); err != nil { + return + } + if rsa.Addr.Family != AF_UNSPEC { + from, err = anyToSockaddr(fd, &rsa) + } + return +} + +func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) { + ptr, n, err := to.sockaddr() + if err != nil { + return err + } + return sendto(fd, p, flags, ptr, n) +} + +func SetsockoptByte(fd, level, opt int, value byte) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(&value), 1) +} + +func SetsockoptInt(fd, level, opt int, value int) (err error) { + var n = int32(value) + return setsockopt(fd, level, opt, unsafe.Pointer(&n), 4) +} + +func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(&value[0]), 4) +} + +func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq) +} + +func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq) +} + +func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error { + return setsockopt(fd, level, opt, unsafe.Pointer(filter), SizeofICMPv6Filter) +} + +func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(l), SizeofLinger) +} + +func SetsockoptString(fd, level, opt int, s string) (err error) { + var p unsafe.Pointer + if len(s) > 0 { + p = unsafe.Pointer(&[]byte(s)[0]) + } + return setsockopt(fd, level, opt, p, uintptr(len(s))) +} + +func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv)) +} + +func SetsockoptUint64(fd, level, opt int, value uint64) (err error) { + return setsockopt(fd, level, opt, unsafe.Pointer(&value), 8) +} + +func Socket(domain, typ, proto int) (fd int, err error) { + if domain == AF_INET6 && SocketDisableIPv6 { + return -1, EAFNOSUPPORT + } + fd, err = socket(domain, typ, proto) + return +} + +func Socketpair(domain, typ, proto int) (fd [2]int, err error) { + var fdx [2]int32 + err = socketpair(domain, typ, proto, &fdx) + if err == nil { + fd[0] = int(fdx[0]) + fd[1] = int(fdx[1]) + } + return +} + +var ioSync int64 + +func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) } + +func SetNonblock(fd int, nonblocking bool) (err error) { + flag, err := fcntl(fd, F_GETFL, 0) + if err != nil { + return err + } + if nonblocking { + flag |= O_NONBLOCK + } else { + flag &= ^O_NONBLOCK + } + _, err = fcntl(fd, F_SETFL, flag) + return err +} + +// Exec calls execve(2), which replaces the calling executable in the process +// tree. argv0 should be the full path to an executable ("/bin/ls") and the +// executable name should also be the first argument in argv (["ls", "-l"]). +// envv are the environment variables that should be passed to the new +// process (["USER=go", "PWD=/tmp"]). +func Exec(argv0 string, argv []string, envv []string) error { + return syscall.Exec(argv0, argv, envv) +} + +func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) { + if needspace := 8 - len(fstype); needspace <= 0 { + fstype = fstype[:8] + } else { + fstype += " "[:needspace] + } + return mount_LE(target, source, fstype, uint32(flags), int32(len(data)), data) +} + +func Unmount(name string, mtm int) (err error) { + // mountpoint is always a full path and starts with a '/' + // check if input string is not a mountpoint but a filesystem name + if name[0] != '/' { + return unmount(name, mtm) + } + // treat name as mountpoint + b2s := func(arr []byte) string { + nulli := bytes.IndexByte(arr, 0) + if nulli == -1 { + return string(arr) + } else { + return string(arr[:nulli]) + } + } + var buffer struct { + header W_Mnth + fsinfo [64]W_Mntent + } + fsCount, err := W_Getmntent_A((*byte)(unsafe.Pointer(&buffer)), int(unsafe.Sizeof(buffer))) + if err != nil { + return err + } + if fsCount == 0 { + return EINVAL + } + for i := 0; i < fsCount; i++ { + if b2s(buffer.fsinfo[i].Mountpoint[:]) == name { + err = unmount(b2s(buffer.fsinfo[i].Fsname[:]), mtm) + break + } + } + return err +} + +func fdToPath(dirfd int) (path string, err error) { + var buffer [1024]byte + // w_ctrl() + ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_W_IOCTL<<4, + []uintptr{uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0]))}) + if ret == 0 { + zb := bytes.IndexByte(buffer[:], 0) + if zb == -1 { + zb = len(buffer) + } + // __e2a_l() + runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4, + []uintptr{uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb)}) + return string(buffer[:zb]), nil + } + // __errno() + errno := int(*(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4, + []uintptr{})))) + // __errno2() + errno2 := int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO2<<4, + []uintptr{})) + // strerror_r() + ret = runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_STRERROR_R<<4, + []uintptr{uintptr(errno), uintptr(unsafe.Pointer(&buffer[0])), 1024}) + if ret == 0 { + zb := bytes.IndexByte(buffer[:], 0) + if zb == -1 { + zb = len(buffer) + } + return "", fmt.Errorf("%s (errno2=0x%x)", buffer[:zb], errno2) + } else { + return "", fmt.Errorf("fdToPath errno %d (errno2=0x%x)", errno, errno2) + } +} + +func direntLeToDirentUnix(dirent *direntLE, dir uintptr, path string) (Dirent, error) { + var d Dirent + + d.Ino = uint64(dirent.Ino) + offset, err := Telldir(dir) + if err != nil { + return d, err + } + + d.Off = int64(offset) + s := string(bytes.Split(dirent.Name[:], []byte{0})[0]) + copy(d.Name[:], s) + + d.Reclen = uint16(24 + len(d.NameString())) + var st Stat_t + path = path + "/" + s + err = Lstat(path, &st) + if err != nil { + return d, err + } + + d.Type = uint8(st.Mode >> 24) + return d, err +} + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + // Simulation of Getdirentries port from the Darwin implementation. + // COMMENTS FROM DARWIN: + // It's not the full required semantics, but should handle the case + // of calling Getdirentries or ReadDirent repeatedly. + // It won't handle assigning the results of lseek to *basep, or handle + // the directory being edited underfoot. + + skip, err := Seek(fd, 0, 1 /* SEEK_CUR */) + if err != nil { + return 0, err + } + + // Get path from fd to avoid unavailable call (fdopendir) + path, err := fdToPath(fd) + if err != nil { + return 0, err + } + d, err := Opendir(path) + if err != nil { + return 0, err + } + defer Closedir(d) + + var cnt int64 + for { + var entryLE direntLE + var entrypLE *direntLE + e := readdir_r(d, &entryLE, &entrypLE) + if e != nil { + return n, e + } + if entrypLE == nil { + break + } + if skip > 0 { + skip-- + cnt++ + continue + } + + // Dirent on zos has a different structure + entry, e := direntLeToDirentUnix(&entryLE, d, path) + if e != nil { + return n, e + } + + reclen := int(entry.Reclen) + if reclen > len(buf) { + // Not enough room. Return for now. + // The counter will let us know where we should start up again. + // Note: this strategy for suspending in the middle and + // restarting is O(n^2) in the length of the directory. Oh well. + break + } + + // Copy entry into return buffer. + s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen) + copy(buf, s) + + buf = buf[reclen:] + n += reclen + cnt++ + } + // Set the seek offset of the input fd to record + // how many files we've already returned. + _, err = Seek(fd, cnt, 0 /* SEEK_SET */) + if err != nil { + return n, err + } + + return n, nil +} + +func ReadDirent(fd int, buf []byte) (n int, err error) { + var base = (*uintptr)(unsafe.Pointer(new(uint64))) + return Getdirentries(fd, buf, base) +} + +func direntIno(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino)) +} + +func direntReclen(buf []byte) (uint64, bool) { + return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen)) +} + +func direntNamlen(buf []byte) (uint64, bool) { + reclen, ok := direntReclen(buf) + if !ok { + return 0, false + } + return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true +} diff --git a/vendor/golang.org/x/sys/unix/sysvshm_linux.go b/vendor/golang.org/x/sys/unix/sysvshm_linux.go new file mode 100644 index 0000000..2c3a443 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sysvshm_linux.go @@ -0,0 +1,21 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build linux +// +build linux + +package unix + +import "runtime" + +// SysvShmCtl performs control operations on the shared memory segment +// specified by id. +func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { + if runtime.GOARCH == "arm" || + runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { + cmd |= ipc_64 + } + + return shmctl(id, cmd, desc) +} diff --git a/vendor/golang.org/x/sys/unix/sysvshm_unix.go b/vendor/golang.org/x/sys/unix/sysvshm_unix.go new file mode 100644 index 0000000..5bb41d1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sysvshm_unix.go @@ -0,0 +1,52 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build (darwin && !ios) || linux +// +build darwin,!ios linux + +package unix + +import "unsafe" + +// SysvShmAttach attaches the Sysv shared memory segment associated with the +// shared memory identifier id. +func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) { + addr, errno := shmat(id, addr, flag) + if errno != nil { + return nil, errno + } + + // Retrieve the size of the shared memory to enable slice creation + var info SysvShmDesc + + _, err := SysvShmCtl(id, IPC_STAT, &info) + if err != nil { + // release the shared memory if we can't find the size + + // ignoring error from shmdt as there's nothing sensible to return here + shmdt(addr) + return nil, err + } + + // Use unsafe to convert addr into a []byte. + b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz)) + return b, nil +} + +// SysvShmDetach unmaps the shared memory slice returned from SysvShmAttach. +// +// It is not safe to use the slice after calling this function. +func SysvShmDetach(data []byte) error { + if len(data) == 0 { + return EINVAL + } + + return shmdt(uintptr(unsafe.Pointer(&data[0]))) +} + +// SysvShmGet returns the Sysv shared memory identifier associated with key. +// If the IPC_CREAT flag is specified a new segment is created. +func SysvShmGet(key, size, flag int) (id int, err error) { + return shmget(key, size, flag) +} diff --git a/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go b/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go new file mode 100644 index 0000000..71bddef --- /dev/null +++ b/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go @@ -0,0 +1,14 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build darwin && !ios +// +build darwin,!ios + +package unix + +// SysvShmCtl performs control operations on the shared memory segment +// specified by id. +func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { + return shmctl(id, cmd, desc) +} diff --git a/vendor/golang.org/x/sys/unix/timestruct.go b/vendor/golang.org/x/sys/unix/timestruct.go new file mode 100644 index 0000000..616b1b2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/timestruct.go @@ -0,0 +1,77 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos +// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos + +package unix + +import "time" + +// TimespecToNsec returns the time stored in ts as nanoseconds. +func TimespecToNsec(ts Timespec) int64 { return ts.Nano() } + +// NsecToTimespec converts a number of nanoseconds into a Timespec. +func NsecToTimespec(nsec int64) Timespec { + sec := nsec / 1e9 + nsec = nsec % 1e9 + if nsec < 0 { + nsec += 1e9 + sec-- + } + return setTimespec(sec, nsec) +} + +// TimeToTimespec converts t into a Timespec. +// On some 32-bit systems the range of valid Timespec values are smaller +// than that of time.Time values. So if t is out of the valid range of +// Timespec, it returns a zero Timespec and ERANGE. +func TimeToTimespec(t time.Time) (Timespec, error) { + sec := t.Unix() + nsec := int64(t.Nanosecond()) + ts := setTimespec(sec, nsec) + + // Currently all targets have either int32 or int64 for Timespec.Sec. + // If there were a new target with floating point type for it, we have + // to consider the rounding error. + if int64(ts.Sec) != sec { + return Timespec{}, ERANGE + } + return ts, nil +} + +// TimevalToNsec returns the time stored in tv as nanoseconds. +func TimevalToNsec(tv Timeval) int64 { return tv.Nano() } + +// NsecToTimeval converts a number of nanoseconds into a Timeval. +func NsecToTimeval(nsec int64) Timeval { + nsec += 999 // round up to microsecond + usec := nsec % 1e9 / 1e3 + sec := nsec / 1e9 + if usec < 0 { + usec += 1e6 + sec-- + } + return setTimeval(sec, usec) +} + +// Unix returns the time stored in ts as seconds plus nanoseconds. +func (ts *Timespec) Unix() (sec int64, nsec int64) { + return int64(ts.Sec), int64(ts.Nsec) +} + +// Unix returns the time stored in tv as seconds plus nanoseconds. +func (tv *Timeval) Unix() (sec int64, nsec int64) { + return int64(tv.Sec), int64(tv.Usec) * 1000 +} + +// Nano returns the time stored in ts as nanoseconds. +func (ts *Timespec) Nano() int64 { + return int64(ts.Sec)*1e9 + int64(ts.Nsec) +} + +// Nano returns the time stored in tv as nanoseconds. +func (tv *Timeval) Nano() int64 { + return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000 +} diff --git a/vendor/golang.org/x/sys/unix/unveil_openbsd.go b/vendor/golang.org/x/sys/unix/unveil_openbsd.go new file mode 100644 index 0000000..168d5ae --- /dev/null +++ b/vendor/golang.org/x/sys/unix/unveil_openbsd.go @@ -0,0 +1,42 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unix + +import ( + "syscall" + "unsafe" +) + +// Unveil implements the unveil syscall. +// For more information see unveil(2). +// Note that the special case of blocking further +// unveil calls is handled by UnveilBlock. +func Unveil(path string, flags string) error { + pathPtr, err := syscall.BytePtrFromString(path) + if err != nil { + return err + } + flagsPtr, err := syscall.BytePtrFromString(flags) + if err != nil { + return err + } + _, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(unsafe.Pointer(pathPtr)), uintptr(unsafe.Pointer(flagsPtr)), 0) + if e != 0 { + return e + } + return nil +} + +// UnveilBlock blocks future unveil calls. +// For more information see unveil(2). +func UnveilBlock() error { + // Both pointers must be nil. + var pathUnsafe, flagsUnsafe unsafe.Pointer + _, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(pathUnsafe), uintptr(flagsUnsafe), 0) + if e != 0 { + return e + } + return nil +} diff --git a/vendor/golang.org/x/sys/unix/xattr_bsd.go b/vendor/golang.org/x/sys/unix/xattr_bsd.go new file mode 100644 index 0000000..f5f8e9f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/xattr_bsd.go @@ -0,0 +1,281 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build freebsd || netbsd +// +build freebsd netbsd + +package unix + +import ( + "strings" + "unsafe" +) + +// Derive extattr namespace and attribute name + +func xattrnamespace(fullattr string) (ns int, attr string, err error) { + s := strings.IndexByte(fullattr, '.') + if s == -1 { + return -1, "", ENOATTR + } + + namespace := fullattr[0:s] + attr = fullattr[s+1:] + + switch namespace { + case "user": + return EXTATTR_NAMESPACE_USER, attr, nil + case "system": + return EXTATTR_NAMESPACE_SYSTEM, attr, nil + default: + return -1, "", ENOATTR + } +} + +func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) { + if len(dest) > idx { + return unsafe.Pointer(&dest[idx]) + } + if dest != nil { + // extattr_get_file and extattr_list_file treat NULL differently from + // a non-NULL pointer of length zero. Preserve the property of nilness, + // even if we can't use dest directly. + return unsafe.Pointer(&_zero) + } + return nil +} + +// FreeBSD and NetBSD implement their own syscalls to handle extended attributes + +func Getxattr(file string, attr string, dest []byte) (sz int, err error) { + d := initxattrdest(dest, 0) + destsize := len(dest) + + nsid, a, err := xattrnamespace(attr) + if err != nil { + return -1, err + } + + return ExtattrGetFile(file, nsid, a, uintptr(d), destsize) +} + +func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { + d := initxattrdest(dest, 0) + destsize := len(dest) + + nsid, a, err := xattrnamespace(attr) + if err != nil { + return -1, err + } + + return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize) +} + +func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) { + d := initxattrdest(dest, 0) + destsize := len(dest) + + nsid, a, err := xattrnamespace(attr) + if err != nil { + return -1, err + } + + return ExtattrGetLink(link, nsid, a, uintptr(d), destsize) +} + +// flags are unused on FreeBSD + +func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) { + var d unsafe.Pointer + if len(data) > 0 { + d = unsafe.Pointer(&data[0]) + } + datasiz := len(data) + + nsid, a, err := xattrnamespace(attr) + if err != nil { + return + } + + _, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz) + return +} + +func Setxattr(file string, attr string, data []byte, flags int) (err error) { + var d unsafe.Pointer + if len(data) > 0 { + d = unsafe.Pointer(&data[0]) + } + datasiz := len(data) + + nsid, a, err := xattrnamespace(attr) + if err != nil { + return + } + + _, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz) + return +} + +func Lsetxattr(link string, attr string, data []byte, flags int) (err error) { + var d unsafe.Pointer + if len(data) > 0 { + d = unsafe.Pointer(&data[0]) + } + datasiz := len(data) + + nsid, a, err := xattrnamespace(attr) + if err != nil { + return + } + + _, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz) + return +} + +func Removexattr(file string, attr string) (err error) { + nsid, a, err := xattrnamespace(attr) + if err != nil { + return + } + + err = ExtattrDeleteFile(file, nsid, a) + return +} + +func Fremovexattr(fd int, attr string) (err error) { + nsid, a, err := xattrnamespace(attr) + if err != nil { + return + } + + err = ExtattrDeleteFd(fd, nsid, a) + return +} + +func Lremovexattr(link string, attr string) (err error) { + nsid, a, err := xattrnamespace(attr) + if err != nil { + return + } + + err = ExtattrDeleteLink(link, nsid, a) + return +} + +func Listxattr(file string, dest []byte) (sz int, err error) { + destsiz := len(dest) + + // FreeBSD won't allow you to list xattrs from multiple namespaces + s, pos := 0, 0 + for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { + stmp, e := ListxattrNS(file, nsid, dest[pos:]) + + /* Errors accessing system attrs are ignored so that + * we can implement the Linux-like behavior of omitting errors that + * we don't have read permissions on + * + * Linux will still error if we ask for user attributes on a file that + * we don't have read permissions on, so don't ignore those errors + */ + if e != nil { + if e == EPERM && nsid != EXTATTR_NAMESPACE_USER { + continue + } + return s, e + } + + s += stmp + pos = s + if pos > destsiz { + pos = destsiz + } + } + + return s, nil +} + +func ListxattrNS(file string, nsid int, dest []byte) (sz int, err error) { + d := initxattrdest(dest, 0) + destsiz := len(dest) + + s, e := ExtattrListFile(file, nsid, uintptr(d), destsiz) + if e != nil { + return 0, err + } + + return s, nil +} + +func Flistxattr(fd int, dest []byte) (sz int, err error) { + destsiz := len(dest) + + s, pos := 0, 0 + for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { + stmp, e := FlistxattrNS(fd, nsid, dest[pos:]) + + if e != nil { + if e == EPERM && nsid != EXTATTR_NAMESPACE_USER { + continue + } + return s, e + } + + s += stmp + pos = s + if pos > destsiz { + pos = destsiz + } + } + + return s, nil +} + +func FlistxattrNS(fd int, nsid int, dest []byte) (sz int, err error) { + d := initxattrdest(dest, 0) + destsiz := len(dest) + + s, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz) + if e != nil { + return 0, err + } + + return s, nil +} + +func Llistxattr(link string, dest []byte) (sz int, err error) { + destsiz := len(dest) + + s, pos := 0, 0 + for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { + stmp, e := LlistxattrNS(link, nsid, dest[pos:]) + + if e != nil { + if e == EPERM && nsid != EXTATTR_NAMESPACE_USER { + continue + } + return s, e + } + + s += stmp + pos = s + if pos > destsiz { + pos = destsiz + } + } + + return s, nil +} + +func LlistxattrNS(link string, nsid int, dest []byte) (sz int, err error) { + d := initxattrdest(dest, 0) + destsiz := len(dest) + + s, e := ExtattrListLink(link, nsid, uintptr(d), destsiz) + if e != nil { + return 0, err + } + + return s, nil +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go new file mode 100644 index 0000000..ca9799b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go @@ -0,0 +1,1385 @@ +// mkerrors.sh -maix32 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc && aix +// +build ppc,aix + +// Created by cgo -godefs - DO NOT EDIT +// cgo -godefs -- -maix32 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BYPASS = 0x19 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_INTF = 0x14 + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x1e + AF_NDD = 0x17 + AF_NETWARE = 0x16 + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_RIF = 0x15 + AF_ROUTE = 0x11 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x400000 + ARPHRD_802_3 = 0x6 + ARPHRD_802_5 = 0x6 + ARPHRD_ETHER = 0x1 + ARPHRD_FDDI = 0x1 + B0 = 0x0 + B110 = 0x3 + B1200 = 0x9 + B134 = 0x4 + B150 = 0x5 + B1800 = 0xa + B19200 = 0xe + B200 = 0x6 + B2400 = 0xb + B300 = 0x7 + B38400 = 0xf + B4800 = 0xc + B50 = 0x1 + B600 = 0x8 + B75 = 0x2 + B9600 = 0xd + BRKINT = 0x2 + BS0 = 0x0 + BS1 = 0x1000 + BSDLY = 0x1000 + CAP_AACCT = 0x6 + CAP_ARM_APPLICATION = 0x5 + CAP_BYPASS_RAC_VMM = 0x3 + CAP_CLEAR = 0x0 + CAP_CREDENTIALS = 0x7 + CAP_EFFECTIVE = 0x1 + CAP_EWLM_AGENT = 0x4 + CAP_INHERITABLE = 0x2 + CAP_MAXIMUM = 0x7 + CAP_NUMA_ATTACH = 0x2 + CAP_PERMITTED = 0x3 + CAP_PROPAGATE = 0x1 + CAP_PROPOGATE = 0x1 + CAP_SET = 0x1 + CBAUD = 0xf + CFLUSH = 0xf + CIBAUD = 0xf0000 + CLOCAL = 0x800 + CLOCK_MONOTONIC = 0xa + CLOCK_PROCESS_CPUTIME_ID = 0xb + CLOCK_REALTIME = 0x9 + CLOCK_THREAD_CPUTIME_ID = 0xc + CR0 = 0x0 + CR1 = 0x100 + CR2 = 0x200 + CR3 = 0x300 + CRDLY = 0x300 + CREAD = 0x80 + CS5 = 0x0 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIOCGIFCONF = -0x3ff796dc + CSIZE = 0x30 + CSMAP_DIR = "/usr/lib/nls/csmap/" + CSTART = '\021' + CSTOP = '\023' + CSTOPB = 0x40 + CSUSP = 0x1a + ECHO = 0x8 + ECHOCTL = 0x20000 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x80000 + ECHONL = 0x40 + ECHOPRT = 0x40000 + ECH_ICMPID = 0x2 + ETHERNET_CSMACD = 0x6 + EVENP = 0x80 + EXCONTINUE = 0x0 + EXDLOK = 0x3 + EXIO = 0x2 + EXPGIO = 0x0 + EXRESUME = 0x2 + EXRETURN = 0x1 + EXSIG = 0x4 + EXTA = 0xe + EXTB = 0xf + EXTRAP = 0x1 + EYEC_RTENTRYA = 0x257274656e747241 + EYEC_RTENTRYF = 0x257274656e747246 + E_ACC = 0x0 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0xfffe + FF0 = 0x0 + FF1 = 0x2000 + FFDLY = 0x2000 + FLUSHBAND = 0x40 + FLUSHLOW = 0x8 + FLUSHO = 0x100000 + FLUSHR = 0x1 + FLUSHRW = 0x3 + FLUSHW = 0x2 + F_CLOSEM = 0xa + F_DUP2FD = 0xe + F_DUPFD = 0x0 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x5 + F_GETLK64 = 0xb + F_GETOWN = 0x8 + F_LOCK = 0x1 + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x6 + F_SETLK64 = 0xc + F_SETLKW = 0x7 + F_SETLKW64 = 0xd + F_SETOWN = 0x9 + F_TEST = 0x3 + F_TLOCK = 0x2 + F_TSTLK = 0xf + F_ULOCK = 0x0 + F_UNLCK = 0x3 + F_WRLCK = 0x2 + HUPCL = 0x400 + IBSHIFT = 0x10 + ICANON = 0x2 + ICMP6_FILTER = 0x26 + ICMP6_SEC_SEND_DEL = 0x46 + ICMP6_SEC_SEND_GET = 0x47 + ICMP6_SEC_SEND_SET = 0x44 + ICMP6_SEC_SEND_SET_CGA_ADDR = 0x45 + ICRNL = 0x100 + IEXTEN = 0x200000 + IFA_FIRSTALIAS = 0x2000 + IFA_ROUTE = 0x1 + IFF_64BIT = 0x4000000 + IFF_ALLCAST = 0x20000 + IFF_ALLMULTI = 0x200 + IFF_BPF = 0x8000000 + IFF_BRIDGE = 0x40000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x80c52 + IFF_CHECKSUM_OFFLOAD = 0x10000000 + IFF_D1 = 0x8000 + IFF_D2 = 0x4000 + IFF_D3 = 0x2000 + IFF_D4 = 0x1000 + IFF_DEBUG = 0x4 + IFF_DEVHEALTH = 0x4000 + IFF_DO_HW_LOOPBACK = 0x10000 + IFF_GROUP_ROUTING = 0x2000000 + IFF_IFBUFMGT = 0x800000 + IFF_LINK0 = 0x100000 + IFF_LINK1 = 0x200000 + IFF_LINK2 = 0x400000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x80000 + IFF_NOARP = 0x80 + IFF_NOECHO = 0x800 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_PSEG = 0x40000000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_SNAP = 0x8000 + IFF_TCP_DISABLE_CKSUM = 0x20000000 + IFF_TCP_NOCKSUM = 0x1000000 + IFF_UP = 0x1 + IFF_VIPA = 0x80000000 + IFNAMSIZ = 0x10 + IFO_FLUSH = 0x1 + IFT_1822 = 0x2 + IFT_AAL5 = 0x31 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ATM = 0x25 + IFT_CEPT = 0x13 + IFT_CLUSTER = 0x3e + IFT_DS3 = 0x1e + IFT_EON = 0x19 + IFT_ETHER = 0x6 + IFT_FCS = 0x3a + IFT_FDDI = 0xf + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_GIFTUNNEL = 0x3c + IFT_HDH1822 = 0x3 + IFT_HF = 0x3d + IFT_HIPPI = 0x2f + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IB = 0xc7 + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88026 = 0xa + IFT_LAPB = 0x10 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_NSIP = 0x1b + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PPP = 0x17 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PTPSERIAL = 0x16 + IFT_RS232 = 0x21 + IFT_SDLC = 0x11 + IFT_SIP = 0x1f + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SN = 0x38 + IFT_SONET = 0x27 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SP = 0x39 + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TUNNEL = 0x3b + IFT_ULTRA = 0x1d + IFT_V35 = 0x2d + IFT_VIPA = 0x37 + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x10000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_USE = 0x1 + IPPROTO_AH = 0x33 + IPPROTO_BIP = 0x53 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GIF = 0x8c + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPIP = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_LOCAL = 0x3f + IPPROTO_MAX = 0x100 + IPPROTO_MH = 0x87 + IPPROTO_NONE = 0x3b + IPPROTO_PUP = 0xc + IPPROTO_QOS = 0x2d + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPV6_ADDRFORM = 0x16 + IPV6_ADDR_PREFERENCES = 0x4a + IPV6_ADD_MEMBERSHIP = 0xc + IPV6_AIXRAWSOCKET = 0x39 + IPV6_CHECKSUM = 0x27 + IPV6_DONTFRAG = 0x2d + IPV6_DROP_MEMBERSHIP = 0xd + IPV6_DSTOPTS = 0x36 + IPV6_FLOWINFO_FLOWLABEL = 0xffffff + IPV6_FLOWINFO_PRIFLOW = 0xfffffff + IPV6_FLOWINFO_PRIORITY = 0xf000000 + IPV6_FLOWINFO_SRFLAG = 0x10000000 + IPV6_FLOWINFO_VERSION = 0xf0000000 + IPV6_HOPLIMIT = 0x28 + IPV6_HOPOPTS = 0x34 + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MIPDSTOPTS = 0x36 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_NOPROBE = 0x1c + IPV6_PATHMTU = 0x2e + IPV6_PKTINFO = 0x21 + IPV6_PKTOPTIONS = 0x24 + IPV6_PRIORITY_10 = 0xa000000 + IPV6_PRIORITY_11 = 0xb000000 + IPV6_PRIORITY_12 = 0xc000000 + IPV6_PRIORITY_13 = 0xd000000 + IPV6_PRIORITY_14 = 0xe000000 + IPV6_PRIORITY_15 = 0xf000000 + IPV6_PRIORITY_8 = 0x8000000 + IPV6_PRIORITY_9 = 0x9000000 + IPV6_PRIORITY_BULK = 0x4000000 + IPV6_PRIORITY_CONTROL = 0x7000000 + IPV6_PRIORITY_FILLER = 0x1000000 + IPV6_PRIORITY_INTERACTIVE = 0x6000000 + IPV6_PRIORITY_RESERVED1 = 0x3000000 + IPV6_PRIORITY_RESERVED2 = 0x5000000 + IPV6_PRIORITY_UNATTENDED = 0x2000000 + IPV6_PRIORITY_UNCHARACTERIZED = 0x0 + IPV6_RECVDSTOPTS = 0x38 + IPV6_RECVHOPLIMIT = 0x29 + IPV6_RECVHOPOPTS = 0x35 + IPV6_RECVHOPS = 0x22 + IPV6_RECVIF = 0x1e + IPV6_RECVPATHMTU = 0x2f + IPV6_RECVPKTINFO = 0x23 + IPV6_RECVRTHDR = 0x33 + IPV6_RECVSRCRT = 0x1d + IPV6_RECVTCLASS = 0x2a + IPV6_RTHDR = 0x32 + IPV6_RTHDRDSTOPTS = 0x37 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_RTHDR_TYPE_2 = 0x2 + IPV6_SENDIF = 0x1f + IPV6_SRFLAG_LOOSE = 0x0 + IPV6_SRFLAG_STRICT = 0x10000000 + IPV6_TCLASS = 0x2b + IPV6_TOKEN_LENGTH = 0x40 + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2c + IPV6_V6ONLY = 0x25 + IPV6_VERSION = 0x60000000 + IP_ADDRFORM = 0x16 + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x3c + IP_BLOCK_SOURCE = 0x3a + IP_BROADCAST_IF = 0x10 + IP_CACHE_LINE_SIZE = 0x80 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DHCPMODE = 0x11 + IP_DONTFRAG = 0x19 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x3d + IP_FINDPMTU = 0x1a + IP_HDRINCL = 0x2 + IP_INC_MEMBERSHIPS = 0x14 + IP_INIT_MEMBERSHIP = 0x14 + IP_MAXPACKET = 0xffff + IP_MF = 0x2000 + IP_MSS = 0x240 + IP_MULTICAST_HOPS = 0xa + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OPT = 0x1b + IP_OPTIONS = 0x1 + IP_PMTUAGE = 0x1b + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVIFINFO = 0xf + IP_RECVINTERFACE = 0x20 + IP_RECVMACHDR = 0xe + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x22 + IP_RETOPTS = 0x8 + IP_SOURCE_FILTER = 0x48 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x3b + IP_UNICAST_HOPS = 0x4 + ISIG = 0x1 + ISTRIP = 0x20 + IUCLC = 0x800 + IXANY = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + I_FLUSH = 0x20005305 + LNOFLSH = 0x8000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x10 + MAP_ANONYMOUS = 0x10 + MAP_FILE = 0x0 + MAP_FIXED = 0x100 + MAP_PRIVATE = 0x2 + MAP_SHARED = 0x1 + MAP_TYPE = 0xf0 + MAP_VARIABLE = 0x0 + MCAST_BLOCK_SOURCE = 0x40 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x3e + MCAST_JOIN_SOURCE_GROUP = 0x42 + MCAST_LEAVE_GROUP = 0x3f + MCAST_LEAVE_SOURCE_GROUP = 0x43 + MCAST_SOURCE_FILTER = 0x49 + MCAST_UNBLOCK_SOURCE = 0x41 + MCL_CURRENT = 0x100 + MCL_FUTURE = 0x200 + MSG_ANY = 0x4 + MSG_ARGEXT = 0x400 + MSG_BAND = 0x2 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_EOR = 0x8 + MSG_HIPRI = 0x1 + MSG_MAXIOVLEN = 0x10 + MSG_MPEG2 = 0x80 + MSG_NONBLOCK = 0x4000 + MSG_NOSIGNAL = 0x100 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x200 + MS_ASYNC = 0x10 + MS_EINTR = 0x80 + MS_INVALIDATE = 0x40 + MS_PER_SEC = 0x3e8 + MS_SYNC = 0x20 + NFDBITS = 0x20 + NL0 = 0x0 + NL1 = 0x4000 + NL2 = 0x8000 + NL3 = 0xc000 + NLDLY = 0x4000 + NOFLSH = 0x80 + NOFLUSH = 0x80000000 + OCRNL = 0x8 + OFDEL = 0x80 + OFILL = 0x40 + OLCUC = 0x2 + ONLCR = 0x4 + ONLRET = 0x20 + ONOCR = 0x10 + ONOEOT = 0x80000 + OPOST = 0x1 + OXTABS = 0x40000 + O_ACCMODE = 0x23 + O_APPEND = 0x8 + O_CIO = 0x80 + O_CIOR = 0x800000000 + O_CLOEXEC = 0x800000 + O_CREAT = 0x100 + O_DEFER = 0x2000 + O_DELAY = 0x4000 + O_DIRECT = 0x8000000 + O_DIRECTORY = 0x80000 + O_DSYNC = 0x400000 + O_EFSOFF = 0x400000000 + O_EFSON = 0x200000000 + O_EXCL = 0x400 + O_EXEC = 0x20 + O_LARGEFILE = 0x4000000 + O_NDELAY = 0x8000 + O_NOCACHE = 0x100000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x1000000 + O_NONBLOCK = 0x4 + O_NONE = 0x3 + O_NSHARE = 0x10000 + O_RAW = 0x100000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSHARE = 0x1000 + O_RSYNC = 0x200000 + O_SEARCH = 0x20 + O_SNAPSHOT = 0x40 + O_SYNC = 0x10 + O_TRUNC = 0x200 + O_TTY_INIT = 0x0 + O_WRONLY = 0x1 + PARENB = 0x100 + PAREXT = 0x100000 + PARMRK = 0x8 + PARODD = 0x200 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PR_64BIT = 0x20 + PR_ADDR = 0x2 + PR_ARGEXT = 0x400 + PR_ATOMIC = 0x1 + PR_CONNREQUIRED = 0x4 + PR_FASTHZ = 0x5 + PR_INP = 0x40 + PR_INTRLEVEL = 0x8000 + PR_MLS = 0x100 + PR_MLS_1_LABEL = 0x200 + PR_NOEOR = 0x4000 + PR_RIGHTS = 0x10 + PR_SLOWHZ = 0x2 + PR_WANTRCVD = 0x8 + RLIMIT_AS = 0x6 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x9 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DOWNSTREAM = 0x100 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTC_IA64 = 0x3 + RTC_POWER = 0x1 + RTC_POWER_PC = 0x2 + RTF_ACTIVE_DGD = 0x1000000 + RTF_BCE = 0x80000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_BUL = 0x2000 + RTF_CLONE = 0x10000 + RTF_CLONED = 0x20000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FREE_IN_PROG = 0x4000000 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PERMANENT6 = 0x8000000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_SMALLMTU = 0x40000 + RTF_STATIC = 0x800 + RTF_STOPSRCH = 0x2000000 + RTF_UNREACHABLE = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_EXPIRE = 0xf + RTM_GET = 0x4 + RTM_GETNEXT = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTLOST = 0x10 + RTM_RTTUNIT = 0xf4240 + RTM_SAMEADDR = 0x12 + RTM_SET = 0x13 + RTM_VERSION = 0x2 + RTM_VERSION_GR = 0x4 + RTM_VERSION_GR_COMPAT = 0x3 + RTM_VERSION_POLICY = 0x5 + RTM_VERSION_POLICY_EXT = 0x6 + RTM_VERSION_POLICY_PRFN = 0x7 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIGMAX64 = 0xff + SIGQUEUE_MAX = 0x20 + SIOCADDIFVIPA = 0x20006942 + SIOCADDMTU = -0x7ffb9690 + SIOCADDMULTI = -0x7fdf96cf + SIOCADDNETID = -0x7fd796a9 + SIOCADDRT = -0x7fcf8df6 + SIOCAIFADDR = -0x7fbf96e6 + SIOCATMARK = 0x40047307 + SIOCDARP = -0x7fb396e0 + SIOCDELIFVIPA = 0x20006943 + SIOCDELMTU = -0x7ffb968f + SIOCDELMULTI = -0x7fdf96ce + SIOCDELPMTU = -0x7fd78ff6 + SIOCDELRT = -0x7fcf8df5 + SIOCDIFADDR = -0x7fd796e7 + SIOCDNETOPT = -0x3ffe9680 + SIOCDX25XLATE = -0x7fd7969b + SIOCFIFADDR = -0x7fdf966d + SIOCGARP = -0x3fb396da + SIOCGETMTUS = 0x2000696f + SIOCGETSGCNT = -0x3feb8acc + SIOCGETVIFCNT = -0x3feb8acd + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = -0x3fd796df + SIOCGIFADDRS = 0x2000698c + SIOCGIFBAUDRATE = -0x3fdf9669 + SIOCGIFBRDADDR = -0x3fd796dd + SIOCGIFCONF = -0x3ff796bb + SIOCGIFCONFGLOB = -0x3ff79670 + SIOCGIFDSTADDR = -0x3fd796de + SIOCGIFFLAGS = -0x3fd796ef + SIOCGIFGIDLIST = 0x20006968 + SIOCGIFHWADDR = -0x3fab966b + SIOCGIFMETRIC = -0x3fd796e9 + SIOCGIFMTU = -0x3fd796aa + SIOCGIFNETMASK = -0x3fd796db + SIOCGIFOPTIONS = -0x3fd796d6 + SIOCGISNO = -0x3fd79695 + SIOCGLOADF = -0x3ffb967e + SIOCGLOWAT = 0x40047303 + SIOCGNETOPT = -0x3ffe96a5 + SIOCGNETOPT1 = -0x3fdf967f + SIOCGNMTUS = 0x2000696e + SIOCGPGRP = 0x40047309 + SIOCGSIZIFCONF = 0x4004696a + SIOCGSRCFILTER = -0x3fe796cb + SIOCGTUNEPHASE = -0x3ffb9676 + SIOCGX25XLATE = -0x3fd7969c + SIOCIFATTACH = -0x7fdf9699 + SIOCIFDETACH = -0x7fdf969a + SIOCIFGETPKEY = -0x7fdf969b + SIOCIF_ATM_DARP = -0x7fdf9683 + SIOCIF_ATM_DUMPARP = -0x7fdf9685 + SIOCIF_ATM_GARP = -0x7fdf9682 + SIOCIF_ATM_IDLE = -0x7fdf9686 + SIOCIF_ATM_SARP = -0x7fdf9681 + SIOCIF_ATM_SNMPARP = -0x7fdf9687 + SIOCIF_ATM_SVC = -0x7fdf9684 + SIOCIF_ATM_UBR = -0x7fdf9688 + SIOCIF_DEVHEALTH = -0x7ffb966c + SIOCIF_IB_ARP_INCOMP = -0x7fdf9677 + SIOCIF_IB_ARP_TIMER = -0x7fdf9678 + SIOCIF_IB_CLEAR_PINFO = -0x3fdf966f + SIOCIF_IB_DEL_ARP = -0x7fdf967f + SIOCIF_IB_DEL_PINFO = -0x3fdf9670 + SIOCIF_IB_DUMP_ARP = -0x7fdf9680 + SIOCIF_IB_GET_ARP = -0x7fdf967e + SIOCIF_IB_GET_INFO = -0x3f879675 + SIOCIF_IB_GET_STATS = -0x3f879672 + SIOCIF_IB_NOTIFY_ADDR_REM = -0x3f87966a + SIOCIF_IB_RESET_STATS = -0x3f879671 + SIOCIF_IB_RESIZE_CQ = -0x7fdf9679 + SIOCIF_IB_SET_ARP = -0x7fdf967d + SIOCIF_IB_SET_PKEY = -0x7fdf967c + SIOCIF_IB_SET_PORT = -0x7fdf967b + SIOCIF_IB_SET_QKEY = -0x7fdf9676 + SIOCIF_IB_SET_QSIZE = -0x7fdf967a + SIOCLISTIFVIPA = 0x20006944 + SIOCSARP = -0x7fb396e2 + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = -0x7fd796f4 + SIOCSIFADDRORI = -0x7fdb9673 + SIOCSIFBRDADDR = -0x7fd796ed + SIOCSIFDSTADDR = -0x7fd796f2 + SIOCSIFFLAGS = -0x7fd796f0 + SIOCSIFGIDLIST = 0x20006969 + SIOCSIFMETRIC = -0x7fd796e8 + SIOCSIFMTU = -0x7fd796a8 + SIOCSIFNETDUMP = -0x7fd796e4 + SIOCSIFNETMASK = -0x7fd796ea + SIOCSIFOPTIONS = -0x7fd796d7 + SIOCSIFSUBCHAN = -0x7fd796e5 + SIOCSISNO = -0x7fd79694 + SIOCSLOADF = -0x3ffb967d + SIOCSLOWAT = 0x80047302 + SIOCSNETOPT = -0x7ffe96a6 + SIOCSPGRP = 0x80047308 + SIOCSX25XLATE = -0x7fd7969d + SOCK_CONN_DGRAM = 0x6 + SOCK_DGRAM = 0x2 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x400 + SO_ACCEPTCONN = 0x2 + SO_AUDIT = 0x8000 + SO_BROADCAST = 0x20 + SO_CKSUMRECV = 0x800 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_KERNACCEPT = 0x2000 + SO_LINGER = 0x80 + SO_NOMULTIPATH = 0x4000 + SO_NOREUSEADDR = 0x1000 + SO_OOBINLINE = 0x100 + SO_PEERID = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMPNS = 0x100a + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USE_IFBUFS = 0x400 + S_BANDURG = 0x400 + S_EMODFMT = 0x3c000000 + S_ENFMT = 0x400 + S_ERROR = 0x100 + S_HANGUP = 0x200 + S_HIPRI = 0x2 + S_ICRYPTO = 0x80000 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFJOURNAL = 0x10000 + S_IFLNK = 0xa000 + S_IFMPX = 0x2200 + S_IFMT = 0xf000 + S_IFPDIR = 0x4000000 + S_IFPSDIR = 0x8000000 + S_IFPSSDIR = 0xc000000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFSYSEA = 0x30000000 + S_INPUT = 0x1 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_ITCB = 0x1000000 + S_ITP = 0x800000 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXACL = 0x2000000 + S_IXATTR = 0x40000 + S_IXGRP = 0x8 + S_IXINTERFACE = 0x100000 + S_IXMOD = 0x40000000 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + S_MSG = 0x8 + S_OUTPUT = 0x4 + S_RDBAND = 0x20 + S_RDNORM = 0x10 + S_RESERVED1 = 0x20000 + S_RESERVED2 = 0x200000 + S_RESERVED3 = 0x400000 + S_RESERVED4 = 0x80000000 + S_RESFMT1 = 0x10000000 + S_RESFMT10 = 0x34000000 + S_RESFMT11 = 0x38000000 + S_RESFMT12 = 0x3c000000 + S_RESFMT2 = 0x14000000 + S_RESFMT3 = 0x18000000 + S_RESFMT4 = 0x1c000000 + S_RESFMT5 = 0x20000000 + S_RESFMT6 = 0x24000000 + S_RESFMT7 = 0x28000000 + S_RESFMT8 = 0x2c000000 + S_WRBAND = 0x80 + S_WRNORM = 0x40 + TAB0 = 0x0 + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x540c + TCGETA = 0x5405 + TCGETS = 0x5401 + TCIFLUSH = 0x0 + TCIOFF = 0x2 + TCIOFLUSH = 0x2 + TCION = 0x3 + TCOFLUSH = 0x1 + TCOOFF = 0x0 + TCOON = 0x1 + TCP_24DAYS_WORTH_OF_SLOWTICKS = 0x3f4800 + TCP_ACLADD = 0x23 + TCP_ACLBIND = 0x26 + TCP_ACLCLEAR = 0x22 + TCP_ACLDEL = 0x24 + TCP_ACLDENY = 0x8 + TCP_ACLFLUSH = 0x21 + TCP_ACLGID = 0x1 + TCP_ACLLS = 0x25 + TCP_ACLSUBNET = 0x4 + TCP_ACLUID = 0x2 + TCP_CWND_DF = 0x16 + TCP_CWND_IF = 0x15 + TCP_DELAY_ACK_FIN = 0x2 + TCP_DELAY_ACK_SYN = 0x1 + TCP_FASTNAME = 0x101080a + TCP_KEEPCNT = 0x13 + TCP_KEEPIDLE = 0x11 + TCP_KEEPINTVL = 0x12 + TCP_LSPRIV = 0x29 + TCP_LUID = 0x20 + TCP_MAXBURST = 0x8 + TCP_MAXDF = 0x64 + TCP_MAXIF = 0x64 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAXWINDOWSCALE = 0xe + TCP_MAX_SACK = 0x4 + TCP_MSS = 0x5b4 + TCP_NODELAY = 0x1 + TCP_NODELAYACK = 0x14 + TCP_NOREDUCE_CWND_EXIT_FRXMT = 0x19 + TCP_NOREDUCE_CWND_IN_FRXMT = 0x18 + TCP_NOTENTER_SSTART = 0x17 + TCP_OPT = 0x19 + TCP_RFC1323 = 0x4 + TCP_SETPRIV = 0x27 + TCP_STDURG = 0x10 + TCP_TIMESTAMP_OPTLEN = 0xc + TCP_UNSETPRIV = 0x28 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETSF = 0x5404 + TCSETSW = 0x5403 + TCXONC = 0x540b + TIMER_ABSTIME = 0x3e7 + TIMER_MAX = 0x20 + TIOC = 0x5400 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCEXCL = 0x2000740d + TIOCFLUSH = 0x80047410 + TIOCGETC = 0x40067412 + TIOCGETD = 0x40047400 + TIOCGETP = 0x40067408 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047448 + TIOCGSIZE = 0x40087468 + TIOCGWINSZ = 0x40087468 + TIOCHPCL = 0x20007402 + TIOCLBIC = 0x8004747e + TIOCLBIS = 0x8004747f + TIOCLGET = 0x4004747c + TIOCLSET = 0x8004747d + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMIWAIT = 0x80047464 + TIOCMODG = 0x40047403 + TIOCMODS = 0x80047404 + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSDTR = 0x20007479 + TIOCSETC = 0x80067411 + TIOCSETD = 0x80047401 + TIOCSETN = 0x8006740a + TIOCSETP = 0x80067409 + TIOCSLTC = 0x80067475 + TIOCSPGRP = 0x80047476 + TIOCSSIZE = 0x80087467 + TIOCSTART = 0x2000746e + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x10000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x3 + VDISCRD = 0xc + VDSUSP = 0xa + VEOF = 0x4 + VEOL = 0x5 + VEOL2 = 0x6 + VERASE = 0x2 + VINTR = 0x0 + VKILL = 0x3 + VLNEXT = 0xe + VMIN = 0x4 + VQUIT = 0x1 + VREPRINT = 0xb + VSTART = 0x7 + VSTOP = 0x8 + VSTRT = 0x7 + VSUSP = 0x9 + VT0 = 0x0 + VT1 = 0x8000 + VTDELAY = 0x2000 + VTDLY = 0x8000 + VTIME = 0x5 + VWERSE = 0xd + WPARSTART = 0x1 + WPARSTOP = 0x2 + WPARTTYNAME = "Global" + XCASE = 0x4 + XTABS = 0xc00 + _FDATAFLUSH = 0x2000000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x43) + EADDRNOTAVAIL = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x42) + EAGAIN = syscall.Errno(0xb) + EALREADY = syscall.Errno(0x38) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x78) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x75) + ECHILD = syscall.Errno(0xa) + ECHRNG = syscall.Errno(0x25) + ECLONEME = syscall.Errno(0x52) + ECONNABORTED = syscall.Errno(0x48) + ECONNREFUSED = syscall.Errno(0x4f) + ECONNRESET = syscall.Errno(0x49) + ECORRUPT = syscall.Errno(0x59) + EDEADLK = syscall.Errno(0x2d) + EDESTADDREQ = syscall.Errno(0x3a) + EDESTADDRREQ = syscall.Errno(0x3a) + EDIST = syscall.Errno(0x35) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x58) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFORMAT = syscall.Errno(0x30) + EHOSTDOWN = syscall.Errno(0x50) + EHOSTUNREACH = syscall.Errno(0x51) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x74) + EINPROGRESS = syscall.Errno(0x37) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x4b) + EISDIR = syscall.Errno(0x15) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELNRNG = syscall.Errno(0x29) + ELOOP = syscall.Errno(0x55) + EMEDIA = syscall.Errno(0x6e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x3b) + EMULTIHOP = syscall.Errno(0x7d) + ENAMETOOLONG = syscall.Errno(0x56) + ENETDOWN = syscall.Errno(0x45) + ENETRESET = syscall.Errno(0x47) + ENETUNREACH = syscall.Errno(0x46) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x70) + ENOBUFS = syscall.Errno(0x4a) + ENOCONNECT = syscall.Errno(0x32) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x7a) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x31) + ENOLINK = syscall.Errno(0x7e) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x23) + ENOPROTOOPT = syscall.Errno(0x3d) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x76) + ENOSTR = syscall.Errno(0x7b) + ENOSYS = syscall.Errno(0x6d) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x4c) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x11) + ENOTREADY = syscall.Errno(0x2e) + ENOTRECOVERABLE = syscall.Errno(0x5e) + ENOTRUST = syscall.Errno(0x72) + ENOTSOCK = syscall.Errno(0x39) + ENOTSUP = syscall.Errno(0x7c) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x40) + EOVERFLOW = syscall.Errno(0x7f) + EOWNERDEAD = syscall.Errno(0x5f) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x41) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x53) + EPROTO = syscall.Errno(0x79) + EPROTONOSUPPORT = syscall.Errno(0x3e) + EPROTOTYPE = syscall.Errno(0x3c) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x5d) + ERESTART = syscall.Errno(0x52) + EROFS = syscall.Errno(0x1e) + ESAD = syscall.Errno(0x71) + ESHUTDOWN = syscall.Errno(0x4d) + ESOCKTNOSUPPORT = syscall.Errno(0x3f) + ESOFT = syscall.Errno(0x6f) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x34) + ESYSERROR = syscall.Errno(0x5a) + ETIME = syscall.Errno(0x77) + ETIMEDOUT = syscall.Errno(0x4e) + ETOOMANYREFS = syscall.Errno(0x73) + ETXTBSY = syscall.Errno(0x1a) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x54) + EWOULDBLOCK = syscall.Errno(0xb) + EWRPROTECT = syscall.Errno(0x2f) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGAIO = syscall.Signal(0x17) + SIGALRM = syscall.Signal(0xe) + SIGALRM1 = syscall.Signal(0x26) + SIGBUS = syscall.Signal(0xa) + SIGCAPI = syscall.Signal(0x31) + SIGCHLD = syscall.Signal(0x14) + SIGCLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGCPUFAIL = syscall.Signal(0x3b) + SIGDANGER = syscall.Signal(0x21) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGGRANT = syscall.Signal(0x3c) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOINT = syscall.Signal(0x10) + SIGIOT = syscall.Signal(0x6) + SIGKAP = syscall.Signal(0x3c) + SIGKILL = syscall.Signal(0x9) + SIGLOST = syscall.Signal(0x6) + SIGMAX = syscall.Signal(0x3f) + SIGMAX32 = syscall.Signal(0x3f) + SIGMIGRATE = syscall.Signal(0x23) + SIGMSG = syscall.Signal(0x1b) + SIGPIPE = syscall.Signal(0xd) + SIGPOLL = syscall.Signal(0x17) + SIGPRE = syscall.Signal(0x24) + SIGPROF = syscall.Signal(0x20) + SIGPTY = syscall.Signal(0x17) + SIGPWR = syscall.Signal(0x1d) + SIGQUIT = syscall.Signal(0x3) + SIGRECONFIG = syscall.Signal(0x3a) + SIGRETRACT = syscall.Signal(0x3d) + SIGSAK = syscall.Signal(0x3f) + SIGSEGV = syscall.Signal(0xb) + SIGSOUND = syscall.Signal(0x3e) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGSYSERROR = syscall.Signal(0x30) + SIGTALRM = syscall.Signal(0x26) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVIRT = syscall.Signal(0x25) + SIGVTALRM = syscall.Signal(0x22) + SIGWAITING = syscall.Signal(0x27) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "not owner"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "I/O error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "arg list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file number"}, + {10, "ECHILD", "no child processes"}, + {11, "EWOULDBLOCK", "resource temporarily unavailable"}, + {12, "ENOMEM", "not enough space"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "ENOTEMPTY", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "file table overflow"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "not a typewriter"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "deadlock condition if locked"}, + {46, "ENOTREADY", "device not ready"}, + {47, "EWRPROTECT", "write-protected media"}, + {48, "EFORMAT", "unformatted or incompatible media"}, + {49, "ENOLCK", "no locks available"}, + {50, "ENOCONNECT", "cannot Establish Connection"}, + {52, "ESTALE", "missing file or filesystem"}, + {53, "EDIST", "requests blocked by Administrator"}, + {55, "EINPROGRESS", "operation now in progress"}, + {56, "EALREADY", "operation already in progress"}, + {57, "ENOTSOCK", "socket operation on non-socket"}, + {58, "EDESTADDREQ", "destination address required"}, + {59, "EMSGSIZE", "message too long"}, + {60, "EPROTOTYPE", "protocol wrong type for socket"}, + {61, "ENOPROTOOPT", "protocol not available"}, + {62, "EPROTONOSUPPORT", "protocol not supported"}, + {63, "ESOCKTNOSUPPORT", "socket type not supported"}, + {64, "EOPNOTSUPP", "operation not supported on socket"}, + {65, "EPFNOSUPPORT", "protocol family not supported"}, + {66, "EAFNOSUPPORT", "addr family not supported by protocol"}, + {67, "EADDRINUSE", "address already in use"}, + {68, "EADDRNOTAVAIL", "can't assign requested address"}, + {69, "ENETDOWN", "network is down"}, + {70, "ENETUNREACH", "network is unreachable"}, + {71, "ENETRESET", "network dropped connection on reset"}, + {72, "ECONNABORTED", "software caused connection abort"}, + {73, "ECONNRESET", "connection reset by peer"}, + {74, "ENOBUFS", "no buffer space available"}, + {75, "EISCONN", "socket is already connected"}, + {76, "ENOTCONN", "socket is not connected"}, + {77, "ESHUTDOWN", "can't send after socket shutdown"}, + {78, "ETIMEDOUT", "connection timed out"}, + {79, "ECONNREFUSED", "connection refused"}, + {80, "EHOSTDOWN", "host is down"}, + {81, "EHOSTUNREACH", "no route to host"}, + {82, "ERESTART", "restart the system call"}, + {83, "EPROCLIM", "too many processes"}, + {84, "EUSERS", "too many users"}, + {85, "ELOOP", "too many levels of symbolic links"}, + {86, "ENAMETOOLONG", "file name too long"}, + {88, "EDQUOT", "disk quota exceeded"}, + {89, "ECORRUPT", "invalid file system control data detected"}, + {90, "ESYSERROR", "for future use "}, + {93, "EREMOTE", "item is not local to host"}, + {94, "ENOTRECOVERABLE", "state not recoverable "}, + {95, "EOWNERDEAD", "previous owner died "}, + {109, "ENOSYS", "function not implemented"}, + {110, "EMEDIA", "media surface error"}, + {111, "ESOFT", "I/O completed, but needs relocation"}, + {112, "ENOATTR", "no attribute found"}, + {113, "ESAD", "security Authentication Denied"}, + {114, "ENOTRUST", "not a Trusted Program"}, + {115, "ETOOMANYREFS", "too many references: can't splice"}, + {116, "EILSEQ", "invalid wide character"}, + {117, "ECANCELED", "asynchronous I/O cancelled"}, + {118, "ENOSR", "out of STREAMS resources"}, + {119, "ETIME", "system call timed out"}, + {120, "EBADMSG", "next message has wrong type"}, + {121, "EPROTO", "error in protocol"}, + {122, "ENODATA", "no message on stream head read q"}, + {123, "ENOSTR", "fd not associated with a stream"}, + {124, "ENOTSUP", "unsupported attribute value"}, + {125, "EMULTIHOP", "multihop is not allowed"}, + {126, "ENOLINK", "the server link has been severed"}, + {127, "EOVERFLOW", "value too large to be stored in data type"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "IOT/Abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible/complete"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {27, "SIGMSG", "input device data"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGPWR", "power-failure"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGPROF", "profiling timer expired"}, + {33, "SIGDANGER", "paging space low"}, + {34, "SIGVTALRM", "virtual timer expired"}, + {35, "SIGMIGRATE", "signal 35"}, + {36, "SIGPRE", "signal 36"}, + {37, "SIGVIRT", "signal 37"}, + {38, "SIGTALRM", "signal 38"}, + {39, "SIGWAITING", "signal 39"}, + {48, "SIGSYSERROR", "signal 48"}, + {49, "SIGCAPI", "signal 49"}, + {58, "SIGRECONFIG", "signal 58"}, + {59, "SIGCPUFAIL", "CPU Failure Predicted"}, + {60, "SIGKAP", "monitor mode granted"}, + {61, "SIGRETRACT", "monitor mode retracted"}, + {62, "SIGSOUND", "sound completed"}, + {63, "SIGSAK", "secure attention"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go new file mode 100644 index 0000000..200c8c2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go @@ -0,0 +1,1386 @@ +// mkerrors.sh -maix64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && aix +// +build ppc64,aix + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -maix64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BYPASS = 0x19 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_INTF = 0x14 + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x1e + AF_NDD = 0x17 + AF_NETWARE = 0x16 + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_RIF = 0x15 + AF_ROUTE = 0x11 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x400000 + ARPHRD_802_3 = 0x6 + ARPHRD_802_5 = 0x6 + ARPHRD_ETHER = 0x1 + ARPHRD_FDDI = 0x1 + B0 = 0x0 + B110 = 0x3 + B1200 = 0x9 + B134 = 0x4 + B150 = 0x5 + B1800 = 0xa + B19200 = 0xe + B200 = 0x6 + B2400 = 0xb + B300 = 0x7 + B38400 = 0xf + B4800 = 0xc + B50 = 0x1 + B600 = 0x8 + B75 = 0x2 + B9600 = 0xd + BRKINT = 0x2 + BS0 = 0x0 + BS1 = 0x1000 + BSDLY = 0x1000 + CAP_AACCT = 0x6 + CAP_ARM_APPLICATION = 0x5 + CAP_BYPASS_RAC_VMM = 0x3 + CAP_CLEAR = 0x0 + CAP_CREDENTIALS = 0x7 + CAP_EFFECTIVE = 0x1 + CAP_EWLM_AGENT = 0x4 + CAP_INHERITABLE = 0x2 + CAP_MAXIMUM = 0x7 + CAP_NUMA_ATTACH = 0x2 + CAP_PERMITTED = 0x3 + CAP_PROPAGATE = 0x1 + CAP_PROPOGATE = 0x1 + CAP_SET = 0x1 + CBAUD = 0xf + CFLUSH = 0xf + CIBAUD = 0xf0000 + CLOCAL = 0x800 + CLOCK_MONOTONIC = 0xa + CLOCK_PROCESS_CPUTIME_ID = 0xb + CLOCK_REALTIME = 0x9 + CLOCK_THREAD_CPUTIME_ID = 0xc + CR0 = 0x0 + CR1 = 0x100 + CR2 = 0x200 + CR3 = 0x300 + CRDLY = 0x300 + CREAD = 0x80 + CS5 = 0x0 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIOCGIFCONF = -0x3fef96dc + CSIZE = 0x30 + CSMAP_DIR = "/usr/lib/nls/csmap/" + CSTART = '\021' + CSTOP = '\023' + CSTOPB = 0x40 + CSUSP = 0x1a + ECHO = 0x8 + ECHOCTL = 0x20000 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x80000 + ECHONL = 0x40 + ECHOPRT = 0x40000 + ECH_ICMPID = 0x2 + ETHERNET_CSMACD = 0x6 + EVENP = 0x80 + EXCONTINUE = 0x0 + EXDLOK = 0x3 + EXIO = 0x2 + EXPGIO = 0x0 + EXRESUME = 0x2 + EXRETURN = 0x1 + EXSIG = 0x4 + EXTA = 0xe + EXTB = 0xf + EXTRAP = 0x1 + EYEC_RTENTRYA = 0x257274656e747241 + EYEC_RTENTRYF = 0x257274656e747246 + E_ACC = 0x0 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0xfffe + FF0 = 0x0 + FF1 = 0x2000 + FFDLY = 0x2000 + FLUSHBAND = 0x40 + FLUSHLOW = 0x8 + FLUSHO = 0x100000 + FLUSHR = 0x1 + FLUSHRW = 0x3 + FLUSHW = 0x2 + F_CLOSEM = 0xa + F_DUP2FD = 0xe + F_DUPFD = 0x0 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xb + F_GETLK64 = 0xb + F_GETOWN = 0x8 + F_LOCK = 0x1 + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0xc + F_SETLK64 = 0xc + F_SETLKW = 0xd + F_SETLKW64 = 0xd + F_SETOWN = 0x9 + F_TEST = 0x3 + F_TLOCK = 0x2 + F_TSTLK = 0xf + F_ULOCK = 0x0 + F_UNLCK = 0x3 + F_WRLCK = 0x2 + HUPCL = 0x400 + IBSHIFT = 0x10 + ICANON = 0x2 + ICMP6_FILTER = 0x26 + ICMP6_SEC_SEND_DEL = 0x46 + ICMP6_SEC_SEND_GET = 0x47 + ICMP6_SEC_SEND_SET = 0x44 + ICMP6_SEC_SEND_SET_CGA_ADDR = 0x45 + ICRNL = 0x100 + IEXTEN = 0x200000 + IFA_FIRSTALIAS = 0x2000 + IFA_ROUTE = 0x1 + IFF_64BIT = 0x4000000 + IFF_ALLCAST = 0x20000 + IFF_ALLMULTI = 0x200 + IFF_BPF = 0x8000000 + IFF_BRIDGE = 0x40000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x80c52 + IFF_CHECKSUM_OFFLOAD = 0x10000000 + IFF_D1 = 0x8000 + IFF_D2 = 0x4000 + IFF_D3 = 0x2000 + IFF_D4 = 0x1000 + IFF_DEBUG = 0x4 + IFF_DEVHEALTH = 0x4000 + IFF_DO_HW_LOOPBACK = 0x10000 + IFF_GROUP_ROUTING = 0x2000000 + IFF_IFBUFMGT = 0x800000 + IFF_LINK0 = 0x100000 + IFF_LINK1 = 0x200000 + IFF_LINK2 = 0x400000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x80000 + IFF_NOARP = 0x80 + IFF_NOECHO = 0x800 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_PSEG = 0x40000000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_SNAP = 0x8000 + IFF_TCP_DISABLE_CKSUM = 0x20000000 + IFF_TCP_NOCKSUM = 0x1000000 + IFF_UP = 0x1 + IFF_VIPA = 0x80000000 + IFNAMSIZ = 0x10 + IFO_FLUSH = 0x1 + IFT_1822 = 0x2 + IFT_AAL5 = 0x31 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ATM = 0x25 + IFT_CEPT = 0x13 + IFT_CLUSTER = 0x3e + IFT_DS3 = 0x1e + IFT_EON = 0x19 + IFT_ETHER = 0x6 + IFT_FCS = 0x3a + IFT_FDDI = 0xf + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_GIFTUNNEL = 0x3c + IFT_HDH1822 = 0x3 + IFT_HF = 0x3d + IFT_HIPPI = 0x2f + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IB = 0xc7 + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88026 = 0xa + IFT_LAPB = 0x10 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_NSIP = 0x1b + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PPP = 0x17 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PTPSERIAL = 0x16 + IFT_RS232 = 0x21 + IFT_SDLC = 0x11 + IFT_SIP = 0x1f + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SN = 0x38 + IFT_SONET = 0x27 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SP = 0x39 + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TUNNEL = 0x3b + IFT_ULTRA = 0x1d + IFT_V35 = 0x2d + IFT_VIPA = 0x37 + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x10000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_USE = 0x1 + IPPROTO_AH = 0x33 + IPPROTO_BIP = 0x53 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GIF = 0x8c + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPIP = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_LOCAL = 0x3f + IPPROTO_MAX = 0x100 + IPPROTO_MH = 0x87 + IPPROTO_NONE = 0x3b + IPPROTO_PUP = 0xc + IPPROTO_QOS = 0x2d + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPV6_ADDRFORM = 0x16 + IPV6_ADDR_PREFERENCES = 0x4a + IPV6_ADD_MEMBERSHIP = 0xc + IPV6_AIXRAWSOCKET = 0x39 + IPV6_CHECKSUM = 0x27 + IPV6_DONTFRAG = 0x2d + IPV6_DROP_MEMBERSHIP = 0xd + IPV6_DSTOPTS = 0x36 + IPV6_FLOWINFO_FLOWLABEL = 0xffffff + IPV6_FLOWINFO_PRIFLOW = 0xfffffff + IPV6_FLOWINFO_PRIORITY = 0xf000000 + IPV6_FLOWINFO_SRFLAG = 0x10000000 + IPV6_FLOWINFO_VERSION = 0xf0000000 + IPV6_HOPLIMIT = 0x28 + IPV6_HOPOPTS = 0x34 + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MIPDSTOPTS = 0x36 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_NOPROBE = 0x1c + IPV6_PATHMTU = 0x2e + IPV6_PKTINFO = 0x21 + IPV6_PKTOPTIONS = 0x24 + IPV6_PRIORITY_10 = 0xa000000 + IPV6_PRIORITY_11 = 0xb000000 + IPV6_PRIORITY_12 = 0xc000000 + IPV6_PRIORITY_13 = 0xd000000 + IPV6_PRIORITY_14 = 0xe000000 + IPV6_PRIORITY_15 = 0xf000000 + IPV6_PRIORITY_8 = 0x8000000 + IPV6_PRIORITY_9 = 0x9000000 + IPV6_PRIORITY_BULK = 0x4000000 + IPV6_PRIORITY_CONTROL = 0x7000000 + IPV6_PRIORITY_FILLER = 0x1000000 + IPV6_PRIORITY_INTERACTIVE = 0x6000000 + IPV6_PRIORITY_RESERVED1 = 0x3000000 + IPV6_PRIORITY_RESERVED2 = 0x5000000 + IPV6_PRIORITY_UNATTENDED = 0x2000000 + IPV6_PRIORITY_UNCHARACTERIZED = 0x0 + IPV6_RECVDSTOPTS = 0x38 + IPV6_RECVHOPLIMIT = 0x29 + IPV6_RECVHOPOPTS = 0x35 + IPV6_RECVHOPS = 0x22 + IPV6_RECVIF = 0x1e + IPV6_RECVPATHMTU = 0x2f + IPV6_RECVPKTINFO = 0x23 + IPV6_RECVRTHDR = 0x33 + IPV6_RECVSRCRT = 0x1d + IPV6_RECVTCLASS = 0x2a + IPV6_RTHDR = 0x32 + IPV6_RTHDRDSTOPTS = 0x37 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_RTHDR_TYPE_2 = 0x2 + IPV6_SENDIF = 0x1f + IPV6_SRFLAG_LOOSE = 0x0 + IPV6_SRFLAG_STRICT = 0x10000000 + IPV6_TCLASS = 0x2b + IPV6_TOKEN_LENGTH = 0x40 + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2c + IPV6_V6ONLY = 0x25 + IPV6_VERSION = 0x60000000 + IP_ADDRFORM = 0x16 + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x3c + IP_BLOCK_SOURCE = 0x3a + IP_BROADCAST_IF = 0x10 + IP_CACHE_LINE_SIZE = 0x80 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DHCPMODE = 0x11 + IP_DONTFRAG = 0x19 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x3d + IP_FINDPMTU = 0x1a + IP_HDRINCL = 0x2 + IP_INC_MEMBERSHIPS = 0x14 + IP_INIT_MEMBERSHIP = 0x14 + IP_MAXPACKET = 0xffff + IP_MF = 0x2000 + IP_MSS = 0x240 + IP_MULTICAST_HOPS = 0xa + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OPT = 0x1b + IP_OPTIONS = 0x1 + IP_PMTUAGE = 0x1b + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVIFINFO = 0xf + IP_RECVINTERFACE = 0x20 + IP_RECVMACHDR = 0xe + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x22 + IP_RETOPTS = 0x8 + IP_SOURCE_FILTER = 0x48 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x3b + IP_UNICAST_HOPS = 0x4 + ISIG = 0x1 + ISTRIP = 0x20 + IUCLC = 0x800 + IXANY = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + I_FLUSH = 0x20005305 + LNOFLSH = 0x8000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x10 + MAP_ANONYMOUS = 0x10 + MAP_FILE = 0x0 + MAP_FIXED = 0x100 + MAP_PRIVATE = 0x2 + MAP_SHARED = 0x1 + MAP_TYPE = 0xf0 + MAP_VARIABLE = 0x0 + MCAST_BLOCK_SOURCE = 0x40 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x3e + MCAST_JOIN_SOURCE_GROUP = 0x42 + MCAST_LEAVE_GROUP = 0x3f + MCAST_LEAVE_SOURCE_GROUP = 0x43 + MCAST_SOURCE_FILTER = 0x49 + MCAST_UNBLOCK_SOURCE = 0x41 + MCL_CURRENT = 0x100 + MCL_FUTURE = 0x200 + MSG_ANY = 0x4 + MSG_ARGEXT = 0x400 + MSG_BAND = 0x2 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_EOR = 0x8 + MSG_HIPRI = 0x1 + MSG_MAXIOVLEN = 0x10 + MSG_MPEG2 = 0x80 + MSG_NONBLOCK = 0x4000 + MSG_NOSIGNAL = 0x100 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x200 + MS_ASYNC = 0x10 + MS_EINTR = 0x80 + MS_INVALIDATE = 0x40 + MS_PER_SEC = 0x3e8 + MS_SYNC = 0x20 + NFDBITS = 0x40 + NL0 = 0x0 + NL1 = 0x4000 + NL2 = 0x8000 + NL3 = 0xc000 + NLDLY = 0x4000 + NOFLSH = 0x80 + NOFLUSH = 0x80000000 + OCRNL = 0x8 + OFDEL = 0x80 + OFILL = 0x40 + OLCUC = 0x2 + ONLCR = 0x4 + ONLRET = 0x20 + ONOCR = 0x10 + ONOEOT = 0x80000 + OPOST = 0x1 + OXTABS = 0x40000 + O_ACCMODE = 0x23 + O_APPEND = 0x8 + O_CIO = 0x80 + O_CIOR = 0x800000000 + O_CLOEXEC = 0x800000 + O_CREAT = 0x100 + O_DEFER = 0x2000 + O_DELAY = 0x4000 + O_DIRECT = 0x8000000 + O_DIRECTORY = 0x80000 + O_DSYNC = 0x400000 + O_EFSOFF = 0x400000000 + O_EFSON = 0x200000000 + O_EXCL = 0x400 + O_EXEC = 0x20 + O_LARGEFILE = 0x4000000 + O_NDELAY = 0x8000 + O_NOCACHE = 0x100000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x1000000 + O_NONBLOCK = 0x4 + O_NONE = 0x3 + O_NSHARE = 0x10000 + O_RAW = 0x100000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSHARE = 0x1000 + O_RSYNC = 0x200000 + O_SEARCH = 0x20 + O_SNAPSHOT = 0x40 + O_SYNC = 0x10 + O_TRUNC = 0x200 + O_TTY_INIT = 0x0 + O_WRONLY = 0x1 + PARENB = 0x100 + PAREXT = 0x100000 + PARMRK = 0x8 + PARODD = 0x200 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PR_64BIT = 0x20 + PR_ADDR = 0x2 + PR_ARGEXT = 0x400 + PR_ATOMIC = 0x1 + PR_CONNREQUIRED = 0x4 + PR_FASTHZ = 0x5 + PR_INP = 0x40 + PR_INTRLEVEL = 0x8000 + PR_MLS = 0x100 + PR_MLS_1_LABEL = 0x200 + PR_NOEOR = 0x4000 + PR_RIGHTS = 0x10 + PR_SLOWHZ = 0x2 + PR_WANTRCVD = 0x8 + RLIMIT_AS = 0x6 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x9 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DOWNSTREAM = 0x100 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTC_IA64 = 0x3 + RTC_POWER = 0x1 + RTC_POWER_PC = 0x2 + RTF_ACTIVE_DGD = 0x1000000 + RTF_BCE = 0x80000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_BUL = 0x2000 + RTF_CLONE = 0x10000 + RTF_CLONED = 0x20000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FREE_IN_PROG = 0x4000000 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PERMANENT6 = 0x8000000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_SMALLMTU = 0x40000 + RTF_STATIC = 0x800 + RTF_STOPSRCH = 0x2000000 + RTF_UNREACHABLE = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_EXPIRE = 0xf + RTM_GET = 0x4 + RTM_GETNEXT = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTLOST = 0x10 + RTM_RTTUNIT = 0xf4240 + RTM_SAMEADDR = 0x12 + RTM_SET = 0x13 + RTM_VERSION = 0x2 + RTM_VERSION_GR = 0x4 + RTM_VERSION_GR_COMPAT = 0x3 + RTM_VERSION_POLICY = 0x5 + RTM_VERSION_POLICY_EXT = 0x6 + RTM_VERSION_POLICY_PRFN = 0x7 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIGMAX64 = 0xff + SIGQUEUE_MAX = 0x20 + SIOCADDIFVIPA = 0x20006942 + SIOCADDMTU = -0x7ffb9690 + SIOCADDMULTI = -0x7fdf96cf + SIOCADDNETID = -0x7fd796a9 + SIOCADDRT = -0x7fc78df6 + SIOCAIFADDR = -0x7fbf96e6 + SIOCATMARK = 0x40047307 + SIOCDARP = -0x7fb396e0 + SIOCDELIFVIPA = 0x20006943 + SIOCDELMTU = -0x7ffb968f + SIOCDELMULTI = -0x7fdf96ce + SIOCDELPMTU = -0x7fd78ff6 + SIOCDELRT = -0x7fc78df5 + SIOCDIFADDR = -0x7fd796e7 + SIOCDNETOPT = -0x3ffe9680 + SIOCDX25XLATE = -0x7fd7969b + SIOCFIFADDR = -0x7fdf966d + SIOCGARP = -0x3fb396da + SIOCGETMTUS = 0x2000696f + SIOCGETSGCNT = -0x3feb8acc + SIOCGETVIFCNT = -0x3feb8acd + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = -0x3fd796df + SIOCGIFADDRS = 0x2000698c + SIOCGIFBAUDRATE = -0x3fdf9669 + SIOCGIFBRDADDR = -0x3fd796dd + SIOCGIFCONF = -0x3fef96bb + SIOCGIFCONFGLOB = -0x3fef9670 + SIOCGIFDSTADDR = -0x3fd796de + SIOCGIFFLAGS = -0x3fd796ef + SIOCGIFGIDLIST = 0x20006968 + SIOCGIFHWADDR = -0x3fab966b + SIOCGIFMETRIC = -0x3fd796e9 + SIOCGIFMTU = -0x3fd796aa + SIOCGIFNETMASK = -0x3fd796db + SIOCGIFOPTIONS = -0x3fd796d6 + SIOCGISNO = -0x3fd79695 + SIOCGLOADF = -0x3ffb967e + SIOCGLOWAT = 0x40047303 + SIOCGNETOPT = -0x3ffe96a5 + SIOCGNETOPT1 = -0x3fdf967f + SIOCGNMTUS = 0x2000696e + SIOCGPGRP = 0x40047309 + SIOCGSIZIFCONF = 0x4004696a + SIOCGSRCFILTER = -0x3fe796cb + SIOCGTUNEPHASE = -0x3ffb9676 + SIOCGX25XLATE = -0x3fd7969c + SIOCIFATTACH = -0x7fdf9699 + SIOCIFDETACH = -0x7fdf969a + SIOCIFGETPKEY = -0x7fdf969b + SIOCIF_ATM_DARP = -0x7fdf9683 + SIOCIF_ATM_DUMPARP = -0x7fdf9685 + SIOCIF_ATM_GARP = -0x7fdf9682 + SIOCIF_ATM_IDLE = -0x7fdf9686 + SIOCIF_ATM_SARP = -0x7fdf9681 + SIOCIF_ATM_SNMPARP = -0x7fdf9687 + SIOCIF_ATM_SVC = -0x7fdf9684 + SIOCIF_ATM_UBR = -0x7fdf9688 + SIOCIF_DEVHEALTH = -0x7ffb966c + SIOCIF_IB_ARP_INCOMP = -0x7fdf9677 + SIOCIF_IB_ARP_TIMER = -0x7fdf9678 + SIOCIF_IB_CLEAR_PINFO = -0x3fdf966f + SIOCIF_IB_DEL_ARP = -0x7fdf967f + SIOCIF_IB_DEL_PINFO = -0x3fdf9670 + SIOCIF_IB_DUMP_ARP = -0x7fdf9680 + SIOCIF_IB_GET_ARP = -0x7fdf967e + SIOCIF_IB_GET_INFO = -0x3f879675 + SIOCIF_IB_GET_STATS = -0x3f879672 + SIOCIF_IB_NOTIFY_ADDR_REM = -0x3f87966a + SIOCIF_IB_RESET_STATS = -0x3f879671 + SIOCIF_IB_RESIZE_CQ = -0x7fdf9679 + SIOCIF_IB_SET_ARP = -0x7fdf967d + SIOCIF_IB_SET_PKEY = -0x7fdf967c + SIOCIF_IB_SET_PORT = -0x7fdf967b + SIOCIF_IB_SET_QKEY = -0x7fdf9676 + SIOCIF_IB_SET_QSIZE = -0x7fdf967a + SIOCLISTIFVIPA = 0x20006944 + SIOCSARP = -0x7fb396e2 + SIOCSHIWAT = 0xffffffff80047300 + SIOCSIFADDR = -0x7fd796f4 + SIOCSIFADDRORI = -0x7fdb9673 + SIOCSIFBRDADDR = -0x7fd796ed + SIOCSIFDSTADDR = -0x7fd796f2 + SIOCSIFFLAGS = -0x7fd796f0 + SIOCSIFGIDLIST = 0x20006969 + SIOCSIFMETRIC = -0x7fd796e8 + SIOCSIFMTU = -0x7fd796a8 + SIOCSIFNETDUMP = -0x7fd796e4 + SIOCSIFNETMASK = -0x7fd796ea + SIOCSIFOPTIONS = -0x7fd796d7 + SIOCSIFSUBCHAN = -0x7fd796e5 + SIOCSISNO = -0x7fd79694 + SIOCSLOADF = -0x3ffb967d + SIOCSLOWAT = 0xffffffff80047302 + SIOCSNETOPT = -0x7ffe96a6 + SIOCSPGRP = 0xffffffff80047308 + SIOCSX25XLATE = -0x7fd7969d + SOCK_CONN_DGRAM = 0x6 + SOCK_DGRAM = 0x2 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x400 + SO_ACCEPTCONN = 0x2 + SO_AUDIT = 0x8000 + SO_BROADCAST = 0x20 + SO_CKSUMRECV = 0x800 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_KERNACCEPT = 0x2000 + SO_LINGER = 0x80 + SO_NOMULTIPATH = 0x4000 + SO_NOREUSEADDR = 0x1000 + SO_OOBINLINE = 0x100 + SO_PEERID = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMPNS = 0x100a + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USE_IFBUFS = 0x400 + S_BANDURG = 0x400 + S_EMODFMT = 0x3c000000 + S_ENFMT = 0x400 + S_ERROR = 0x100 + S_HANGUP = 0x200 + S_HIPRI = 0x2 + S_ICRYPTO = 0x80000 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFJOURNAL = 0x10000 + S_IFLNK = 0xa000 + S_IFMPX = 0x2200 + S_IFMT = 0xf000 + S_IFPDIR = 0x4000000 + S_IFPSDIR = 0x8000000 + S_IFPSSDIR = 0xc000000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFSYSEA = 0x30000000 + S_INPUT = 0x1 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_ITCB = 0x1000000 + S_ITP = 0x800000 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXACL = 0x2000000 + S_IXATTR = 0x40000 + S_IXGRP = 0x8 + S_IXINTERFACE = 0x100000 + S_IXMOD = 0x40000000 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + S_MSG = 0x8 + S_OUTPUT = 0x4 + S_RDBAND = 0x20 + S_RDNORM = 0x10 + S_RESERVED1 = 0x20000 + S_RESERVED2 = 0x200000 + S_RESERVED3 = 0x400000 + S_RESERVED4 = 0x80000000 + S_RESFMT1 = 0x10000000 + S_RESFMT10 = 0x34000000 + S_RESFMT11 = 0x38000000 + S_RESFMT12 = 0x3c000000 + S_RESFMT2 = 0x14000000 + S_RESFMT3 = 0x18000000 + S_RESFMT4 = 0x1c000000 + S_RESFMT5 = 0x20000000 + S_RESFMT6 = 0x24000000 + S_RESFMT7 = 0x28000000 + S_RESFMT8 = 0x2c000000 + S_WRBAND = 0x80 + S_WRNORM = 0x40 + TAB0 = 0x0 + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x540c + TCGETA = 0x5405 + TCGETS = 0x5401 + TCIFLUSH = 0x0 + TCIOFF = 0x2 + TCIOFLUSH = 0x2 + TCION = 0x3 + TCOFLUSH = 0x1 + TCOOFF = 0x0 + TCOON = 0x1 + TCP_24DAYS_WORTH_OF_SLOWTICKS = 0x3f4800 + TCP_ACLADD = 0x23 + TCP_ACLBIND = 0x26 + TCP_ACLCLEAR = 0x22 + TCP_ACLDEL = 0x24 + TCP_ACLDENY = 0x8 + TCP_ACLFLUSH = 0x21 + TCP_ACLGID = 0x1 + TCP_ACLLS = 0x25 + TCP_ACLSUBNET = 0x4 + TCP_ACLUID = 0x2 + TCP_CWND_DF = 0x16 + TCP_CWND_IF = 0x15 + TCP_DELAY_ACK_FIN = 0x2 + TCP_DELAY_ACK_SYN = 0x1 + TCP_FASTNAME = 0x101080a + TCP_KEEPCNT = 0x13 + TCP_KEEPIDLE = 0x11 + TCP_KEEPINTVL = 0x12 + TCP_LSPRIV = 0x29 + TCP_LUID = 0x20 + TCP_MAXBURST = 0x8 + TCP_MAXDF = 0x64 + TCP_MAXIF = 0x64 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAXWINDOWSCALE = 0xe + TCP_MAX_SACK = 0x4 + TCP_MSS = 0x5b4 + TCP_NODELAY = 0x1 + TCP_NODELAYACK = 0x14 + TCP_NOREDUCE_CWND_EXIT_FRXMT = 0x19 + TCP_NOREDUCE_CWND_IN_FRXMT = 0x18 + TCP_NOTENTER_SSTART = 0x17 + TCP_OPT = 0x19 + TCP_RFC1323 = 0x4 + TCP_SETPRIV = 0x27 + TCP_STDURG = 0x10 + TCP_TIMESTAMP_OPTLEN = 0xc + TCP_UNSETPRIV = 0x28 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETSF = 0x5404 + TCSETSW = 0x5403 + TCXONC = 0x540b + TIMER_ABSTIME = 0x3e7 + TIMER_MAX = 0x20 + TIOC = 0x5400 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0xffffffff80047462 + TIOCEXCL = 0x2000740d + TIOCFLUSH = 0xffffffff80047410 + TIOCGETC = 0x40067412 + TIOCGETD = 0x40047400 + TIOCGETP = 0x40067408 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047448 + TIOCGSIZE = 0x40087468 + TIOCGWINSZ = 0x40087468 + TIOCHPCL = 0x20007402 + TIOCLBIC = 0xffffffff8004747e + TIOCLBIS = 0xffffffff8004747f + TIOCLGET = 0x4004747c + TIOCLSET = 0xffffffff8004747d + TIOCMBIC = 0xffffffff8004746b + TIOCMBIS = 0xffffffff8004746c + TIOCMGET = 0x4004746a + TIOCMIWAIT = 0xffffffff80047464 + TIOCMODG = 0x40047403 + TIOCMODS = 0xffffffff80047404 + TIOCMSET = 0xffffffff8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0xffffffff80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0xffffffff80047469 + TIOCSBRK = 0x2000747b + TIOCSDTR = 0x20007479 + TIOCSETC = 0xffffffff80067411 + TIOCSETD = 0xffffffff80047401 + TIOCSETN = 0xffffffff8006740a + TIOCSETP = 0xffffffff80067409 + TIOCSLTC = 0xffffffff80067475 + TIOCSPGRP = 0xffffffff80047476 + TIOCSSIZE = 0xffffffff80087467 + TIOCSTART = 0x2000746e + TIOCSTI = 0xffffffff80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0xffffffff80087467 + TIOCUCNTL = 0xffffffff80047466 + TOSTOP = 0x10000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x3 + VDISCRD = 0xc + VDSUSP = 0xa + VEOF = 0x4 + VEOL = 0x5 + VEOL2 = 0x6 + VERASE = 0x2 + VINTR = 0x0 + VKILL = 0x3 + VLNEXT = 0xe + VMIN = 0x4 + VQUIT = 0x1 + VREPRINT = 0xb + VSTART = 0x7 + VSTOP = 0x8 + VSTRT = 0x7 + VSUSP = 0x9 + VT0 = 0x0 + VT1 = 0x8000 + VTDELAY = 0x2000 + VTDLY = 0x8000 + VTIME = 0x5 + VWERSE = 0xd + WPARSTART = 0x1 + WPARSTOP = 0x2 + WPARTTYNAME = "Global" + XCASE = 0x4 + XTABS = 0xc00 + _FDATAFLUSH = 0x2000000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x43) + EADDRNOTAVAIL = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x42) + EAGAIN = syscall.Errno(0xb) + EALREADY = syscall.Errno(0x38) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x78) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x75) + ECHILD = syscall.Errno(0xa) + ECHRNG = syscall.Errno(0x25) + ECLONEME = syscall.Errno(0x52) + ECONNABORTED = syscall.Errno(0x48) + ECONNREFUSED = syscall.Errno(0x4f) + ECONNRESET = syscall.Errno(0x49) + ECORRUPT = syscall.Errno(0x59) + EDEADLK = syscall.Errno(0x2d) + EDESTADDREQ = syscall.Errno(0x3a) + EDESTADDRREQ = syscall.Errno(0x3a) + EDIST = syscall.Errno(0x35) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x58) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFORMAT = syscall.Errno(0x30) + EHOSTDOWN = syscall.Errno(0x50) + EHOSTUNREACH = syscall.Errno(0x51) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x74) + EINPROGRESS = syscall.Errno(0x37) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x4b) + EISDIR = syscall.Errno(0x15) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELNRNG = syscall.Errno(0x29) + ELOOP = syscall.Errno(0x55) + EMEDIA = syscall.Errno(0x6e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x3b) + EMULTIHOP = syscall.Errno(0x7d) + ENAMETOOLONG = syscall.Errno(0x56) + ENETDOWN = syscall.Errno(0x45) + ENETRESET = syscall.Errno(0x47) + ENETUNREACH = syscall.Errno(0x46) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x70) + ENOBUFS = syscall.Errno(0x4a) + ENOCONNECT = syscall.Errno(0x32) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x7a) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x31) + ENOLINK = syscall.Errno(0x7e) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x23) + ENOPROTOOPT = syscall.Errno(0x3d) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x76) + ENOSTR = syscall.Errno(0x7b) + ENOSYS = syscall.Errno(0x6d) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x4c) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x11) + ENOTREADY = syscall.Errno(0x2e) + ENOTRECOVERABLE = syscall.Errno(0x5e) + ENOTRUST = syscall.Errno(0x72) + ENOTSOCK = syscall.Errno(0x39) + ENOTSUP = syscall.Errno(0x7c) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x40) + EOVERFLOW = syscall.Errno(0x7f) + EOWNERDEAD = syscall.Errno(0x5f) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x41) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x53) + EPROTO = syscall.Errno(0x79) + EPROTONOSUPPORT = syscall.Errno(0x3e) + EPROTOTYPE = syscall.Errno(0x3c) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x5d) + ERESTART = syscall.Errno(0x52) + EROFS = syscall.Errno(0x1e) + ESAD = syscall.Errno(0x71) + ESHUTDOWN = syscall.Errno(0x4d) + ESOCKTNOSUPPORT = syscall.Errno(0x3f) + ESOFT = syscall.Errno(0x6f) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x34) + ESYSERROR = syscall.Errno(0x5a) + ETIME = syscall.Errno(0x77) + ETIMEDOUT = syscall.Errno(0x4e) + ETOOMANYREFS = syscall.Errno(0x73) + ETXTBSY = syscall.Errno(0x1a) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x54) + EWOULDBLOCK = syscall.Errno(0xb) + EWRPROTECT = syscall.Errno(0x2f) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGAIO = syscall.Signal(0x17) + SIGALRM = syscall.Signal(0xe) + SIGALRM1 = syscall.Signal(0x26) + SIGBUS = syscall.Signal(0xa) + SIGCAPI = syscall.Signal(0x31) + SIGCHLD = syscall.Signal(0x14) + SIGCLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGCPUFAIL = syscall.Signal(0x3b) + SIGDANGER = syscall.Signal(0x21) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGGRANT = syscall.Signal(0x3c) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOINT = syscall.Signal(0x10) + SIGIOT = syscall.Signal(0x6) + SIGKAP = syscall.Signal(0x3c) + SIGKILL = syscall.Signal(0x9) + SIGLOST = syscall.Signal(0x6) + SIGMAX = syscall.Signal(0xff) + SIGMAX32 = syscall.Signal(0x3f) + SIGMIGRATE = syscall.Signal(0x23) + SIGMSG = syscall.Signal(0x1b) + SIGPIPE = syscall.Signal(0xd) + SIGPOLL = syscall.Signal(0x17) + SIGPRE = syscall.Signal(0x24) + SIGPROF = syscall.Signal(0x20) + SIGPTY = syscall.Signal(0x17) + SIGPWR = syscall.Signal(0x1d) + SIGQUIT = syscall.Signal(0x3) + SIGRECONFIG = syscall.Signal(0x3a) + SIGRETRACT = syscall.Signal(0x3d) + SIGSAK = syscall.Signal(0x3f) + SIGSEGV = syscall.Signal(0xb) + SIGSOUND = syscall.Signal(0x3e) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGSYSERROR = syscall.Signal(0x30) + SIGTALRM = syscall.Signal(0x26) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVIRT = syscall.Signal(0x25) + SIGVTALRM = syscall.Signal(0x22) + SIGWAITING = syscall.Signal(0x27) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "not owner"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "I/O error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "arg list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file number"}, + {10, "ECHILD", "no child processes"}, + {11, "EWOULDBLOCK", "resource temporarily unavailable"}, + {12, "ENOMEM", "not enough space"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "ENOTEMPTY", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "file table overflow"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "not a typewriter"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "deadlock condition if locked"}, + {46, "ENOTREADY", "device not ready"}, + {47, "EWRPROTECT", "write-protected media"}, + {48, "EFORMAT", "unformatted or incompatible media"}, + {49, "ENOLCK", "no locks available"}, + {50, "ENOCONNECT", "cannot Establish Connection"}, + {52, "ESTALE", "missing file or filesystem"}, + {53, "EDIST", "requests blocked by Administrator"}, + {55, "EINPROGRESS", "operation now in progress"}, + {56, "EALREADY", "operation already in progress"}, + {57, "ENOTSOCK", "socket operation on non-socket"}, + {58, "EDESTADDREQ", "destination address required"}, + {59, "EMSGSIZE", "message too long"}, + {60, "EPROTOTYPE", "protocol wrong type for socket"}, + {61, "ENOPROTOOPT", "protocol not available"}, + {62, "EPROTONOSUPPORT", "protocol not supported"}, + {63, "ESOCKTNOSUPPORT", "socket type not supported"}, + {64, "EOPNOTSUPP", "operation not supported on socket"}, + {65, "EPFNOSUPPORT", "protocol family not supported"}, + {66, "EAFNOSUPPORT", "addr family not supported by protocol"}, + {67, "EADDRINUSE", "address already in use"}, + {68, "EADDRNOTAVAIL", "can't assign requested address"}, + {69, "ENETDOWN", "network is down"}, + {70, "ENETUNREACH", "network is unreachable"}, + {71, "ENETRESET", "network dropped connection on reset"}, + {72, "ECONNABORTED", "software caused connection abort"}, + {73, "ECONNRESET", "connection reset by peer"}, + {74, "ENOBUFS", "no buffer space available"}, + {75, "EISCONN", "socket is already connected"}, + {76, "ENOTCONN", "socket is not connected"}, + {77, "ESHUTDOWN", "can't send after socket shutdown"}, + {78, "ETIMEDOUT", "connection timed out"}, + {79, "ECONNREFUSED", "connection refused"}, + {80, "EHOSTDOWN", "host is down"}, + {81, "EHOSTUNREACH", "no route to host"}, + {82, "ERESTART", "restart the system call"}, + {83, "EPROCLIM", "too many processes"}, + {84, "EUSERS", "too many users"}, + {85, "ELOOP", "too many levels of symbolic links"}, + {86, "ENAMETOOLONG", "file name too long"}, + {88, "EDQUOT", "disk quota exceeded"}, + {89, "ECORRUPT", "invalid file system control data detected"}, + {90, "ESYSERROR", "for future use "}, + {93, "EREMOTE", "item is not local to host"}, + {94, "ENOTRECOVERABLE", "state not recoverable "}, + {95, "EOWNERDEAD", "previous owner died "}, + {109, "ENOSYS", "function not implemented"}, + {110, "EMEDIA", "media surface error"}, + {111, "ESOFT", "I/O completed, but needs relocation"}, + {112, "ENOATTR", "no attribute found"}, + {113, "ESAD", "security Authentication Denied"}, + {114, "ENOTRUST", "not a Trusted Program"}, + {115, "ETOOMANYREFS", "too many references: can't splice"}, + {116, "EILSEQ", "invalid wide character"}, + {117, "ECANCELED", "asynchronous I/O cancelled"}, + {118, "ENOSR", "out of STREAMS resources"}, + {119, "ETIME", "system call timed out"}, + {120, "EBADMSG", "next message has wrong type"}, + {121, "EPROTO", "error in protocol"}, + {122, "ENODATA", "no message on stream head read q"}, + {123, "ENOSTR", "fd not associated with a stream"}, + {124, "ENOTSUP", "unsupported attribute value"}, + {125, "EMULTIHOP", "multihop is not allowed"}, + {126, "ENOLINK", "the server link has been severed"}, + {127, "EOVERFLOW", "value too large to be stored in data type"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "IOT/Abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible/complete"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {27, "SIGMSG", "input device data"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGPWR", "power-failure"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGPROF", "profiling timer expired"}, + {33, "SIGDANGER", "paging space low"}, + {34, "SIGVTALRM", "virtual timer expired"}, + {35, "SIGMIGRATE", "signal 35"}, + {36, "SIGPRE", "signal 36"}, + {37, "SIGVIRT", "signal 37"}, + {38, "SIGTALRM", "signal 38"}, + {39, "SIGWAITING", "signal 39"}, + {48, "SIGSYSERROR", "signal 48"}, + {49, "SIGCAPI", "signal 49"}, + {58, "SIGRECONFIG", "signal 58"}, + {59, "SIGCPUFAIL", "CPU Failure Predicted"}, + {60, "SIGGRANT", "monitor mode granted"}, + {61, "SIGRETRACT", "monitor mode retracted"}, + {62, "SIGSOUND", "sound completed"}, + {63, "SIGMAX32", "secure attention"}, + {255, "SIGMAX", "signal 255"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go new file mode 100644 index 0000000..476a1c7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go @@ -0,0 +1,1892 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && darwin +// +build amd64,darwin + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1c + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1e + AF_IPX = 0x17 + AF_ISDN = 0x1c + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x29 + AF_NATM = 0x1f + AF_NDRV = 0x1b + AF_NETBIOS = 0x21 + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PPP = 0x22 + AF_PUP = 0x4 + AF_RESERVED_36 = 0x24 + AF_ROUTE = 0x11 + AF_SIP = 0x18 + AF_SNA = 0xb + AF_SYSTEM = 0x20 + AF_SYS_CONTROL = 0x2 + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_UTUN = 0x26 + AF_VSOCK = 0x28 + ALTWERASE = 0x200 + ATTR_BIT_MAP_COUNT = 0x5 + ATTR_CMN_ACCESSMASK = 0x20000 + ATTR_CMN_ACCTIME = 0x1000 + ATTR_CMN_ADDEDTIME = 0x10000000 + ATTR_CMN_BKUPTIME = 0x2000 + ATTR_CMN_CHGTIME = 0x800 + ATTR_CMN_CRTIME = 0x200 + ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 + ATTR_CMN_DEVID = 0x2 + ATTR_CMN_DOCUMENT_ID = 0x100000 + ATTR_CMN_ERROR = 0x20000000 + ATTR_CMN_EXTENDED_SECURITY = 0x400000 + ATTR_CMN_FILEID = 0x2000000 + ATTR_CMN_FLAGS = 0x40000 + ATTR_CMN_FNDRINFO = 0x4000 + ATTR_CMN_FSID = 0x4 + ATTR_CMN_FULLPATH = 0x8000000 + ATTR_CMN_GEN_COUNT = 0x80000 + ATTR_CMN_GRPID = 0x10000 + ATTR_CMN_GRPUUID = 0x1000000 + ATTR_CMN_MODTIME = 0x400 + ATTR_CMN_NAME = 0x1 + ATTR_CMN_NAMEDATTRCOUNT = 0x80000 + ATTR_CMN_NAMEDATTRLIST = 0x100000 + ATTR_CMN_OBJID = 0x20 + ATTR_CMN_OBJPERMANENTID = 0x40 + ATTR_CMN_OBJTAG = 0x10 + ATTR_CMN_OBJTYPE = 0x8 + ATTR_CMN_OWNERID = 0x8000 + ATTR_CMN_PARENTID = 0x4000000 + ATTR_CMN_PAROBJID = 0x80 + ATTR_CMN_RETURNED_ATTRS = 0x80000000 + ATTR_CMN_SCRIPT = 0x100 + ATTR_CMN_SETMASK = 0x51c7ff00 + ATTR_CMN_USERACCESS = 0x200000 + ATTR_CMN_UUID = 0x800000 + ATTR_CMN_VALIDMASK = 0xffffffff + ATTR_CMN_VOLSETMASK = 0x6700 + ATTR_FILE_ALLOCSIZE = 0x4 + ATTR_FILE_CLUMPSIZE = 0x10 + ATTR_FILE_DATAALLOCSIZE = 0x400 + ATTR_FILE_DATAEXTENTS = 0x800 + ATTR_FILE_DATALENGTH = 0x200 + ATTR_FILE_DEVTYPE = 0x20 + ATTR_FILE_FILETYPE = 0x40 + ATTR_FILE_FORKCOUNT = 0x80 + ATTR_FILE_FORKLIST = 0x100 + ATTR_FILE_IOBLOCKSIZE = 0x8 + ATTR_FILE_LINKCOUNT = 0x1 + ATTR_FILE_RSRCALLOCSIZE = 0x2000 + ATTR_FILE_RSRCEXTENTS = 0x4000 + ATTR_FILE_RSRCLENGTH = 0x1000 + ATTR_FILE_SETMASK = 0x20 + ATTR_FILE_TOTALSIZE = 0x2 + ATTR_FILE_VALIDMASK = 0x37ff + ATTR_VOL_ALLOCATIONCLUMP = 0x40 + ATTR_VOL_ATTRIBUTES = 0x40000000 + ATTR_VOL_CAPABILITIES = 0x20000 + ATTR_VOL_DIRCOUNT = 0x400 + ATTR_VOL_ENCODINGSUSED = 0x10000 + ATTR_VOL_FILECOUNT = 0x200 + ATTR_VOL_FSTYPE = 0x1 + ATTR_VOL_INFO = 0x80000000 + ATTR_VOL_IOBLOCKSIZE = 0x80 + ATTR_VOL_MAXOBJCOUNT = 0x800 + ATTR_VOL_MINALLOCATION = 0x20 + ATTR_VOL_MOUNTEDDEVICE = 0x8000 + ATTR_VOL_MOUNTFLAGS = 0x4000 + ATTR_VOL_MOUNTPOINT = 0x1000 + ATTR_VOL_NAME = 0x2000 + ATTR_VOL_OBJCOUNT = 0x100 + ATTR_VOL_QUOTA_SIZE = 0x10000000 + ATTR_VOL_RESERVED_SIZE = 0x20000000 + ATTR_VOL_SETMASK = 0x80002000 + ATTR_VOL_SIGNATURE = 0x2 + ATTR_VOL_SIZE = 0x4 + ATTR_VOL_SPACEAVAIL = 0x10 + ATTR_VOL_SPACEFREE = 0x8 + ATTR_VOL_SPACEUSED = 0x800000 + ATTR_VOL_UUID = 0x40000 + ATTR_VOL_VALIDMASK = 0xf087ffff + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc00c4279 + BIOCGETIF = 0x4020426b + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044278 + BIOCSETF = 0x80104267 + BIOCSETFNR = 0x8010427e + BIOCSETIF = 0x8020426c + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + BS0 = 0x0 + BS1 = 0x8000 + BSDLY = 0x8000 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x6 + CLOCK_MONOTONIC_RAW = 0x4 + CLOCK_MONOTONIC_RAW_APPROX = 0x5 + CLOCK_PROCESS_CPUTIME_ID = 0xc + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x10 + CLOCK_UPTIME_RAW = 0x8 + CLOCK_UPTIME_RAW_APPROX = 0x9 + CLONE_NOFOLLOW = 0x1 + CLONE_NOOWNERCOPY = 0x2 + CR0 = 0x0 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTLIOCGINFO = 0xc0644e03 + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HHDLC = 0x79 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_IPFILTER = 0x74 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x10a + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USB_DARWIN = 0x10a + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_WIHART = 0xdf + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EXCEPT = -0xf + EVFILT_FS = -0x9 + EVFILT_MACHPORT = -0x8 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x11 + EVFILT_THREADMARKER = 0x11 + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xa + EVFILT_VM = -0xc + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DISPATCH2 = 0x180 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG0 = 0x1000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_OOBAND = 0x2000 + EV_POLL = 0x1000 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EV_UDATA_SPECIFIC = 0x100 + EV_VANISHED = 0x200 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FF0 = 0x0 + FF1 = 0x4000 + FFDLY = 0x4000 + FLUSHO = 0x800000 + FSOPT_ATTR_CMN_EXTENDED = 0x20 + FSOPT_NOFOLLOW = 0x1 + FSOPT_NOINMEMUPDATE = 0x2 + FSOPT_PACK_INVAL_ATTRS = 0x8 + FSOPT_REPORT_FULLSIZE = 0x4 + FSOPT_RETURN_REALDEV = 0x200 + F_ADDFILESIGS = 0x3d + F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 + F_ADDFILESIGS_INFO = 0x67 + F_ADDFILESIGS_RETURN = 0x61 + F_ADDFILESUPPL = 0x68 + F_ADDSIGS = 0x3b + F_ALLOCATEALL = 0x4 + F_ALLOCATECONTIG = 0x2 + F_BARRIERFSYNC = 0x55 + F_CHECK_LV = 0x62 + F_CHKCLEAN = 0x29 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x43 + F_FINDSIGS = 0x4e + F_FLUSH_DATA = 0x28 + F_FREEZE_FS = 0x35 + F_FULLFSYNC = 0x33 + F_GETCODEDIR = 0x48 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETLKPID = 0x42 + F_GETNOSIGPIPE = 0x4a + F_GETOWN = 0x5 + F_GETPATH = 0x32 + F_GETPATH_MTMINFO = 0x47 + F_GETPATH_NOFIRMLINK = 0x66 + F_GETPROTECTIONCLASS = 0x3f + F_GETPROTECTIONLEVEL = 0x4d + F_GETSIGSINFO = 0x69 + F_GLOBAL_NOCACHE = 0x37 + F_LOG2PHYS = 0x31 + F_LOG2PHYS_EXT = 0x41 + F_NOCACHE = 0x30 + F_NODIRECT = 0x3e + F_OK = 0x0 + F_PATHPKG_CHECK = 0x34 + F_PEOFPOSMODE = 0x3 + F_PREALLOCATE = 0x2a + F_PUNCHHOLE = 0x63 + F_RDADVISE = 0x2c + F_RDAHEAD = 0x2d + F_RDLCK = 0x1 + F_SETBACKINGSTORE = 0x46 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETLKWTIMEOUT = 0xa + F_SETNOSIGPIPE = 0x49 + F_SETOWN = 0x6 + F_SETPROTECTIONCLASS = 0x40 + F_SETSIZE = 0x2b + F_SINGLE_WRITER = 0x4c + F_SPECULATIVE_READ = 0x65 + F_THAW_FS = 0x36 + F_TRANSCODEKEY = 0x4b + F_TRIM_ACTIVE_FILE = 0x64 + F_UNLCK = 0x2 + F_VOLPOSMODE = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_6LOWPAN = 0x40 + IFT_AAL5 = 0x31 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ATM = 0x25 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_CELLULAR = 0xff + IFT_CEPT = 0x13 + IFT_DS3 = 0x1e + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_ETHER = 0x6 + IFT_FAITH = 0x38 + IFT_FDDI = 0xf + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_GIF = 0x37 + IFT_HDH1822 = 0x3 + IFT_HIPPI = 0x2f + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IEEE1394 = 0x90 + IFT_IEEE8023ADLAG = 0x88 + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88026 = 0xa + IFT_L2VLAN = 0x87 + IFT_LAPB = 0x10 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_NSIP = 0x1b + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PDP = 0xff + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PKTAP = 0xfe + IFT_PPP = 0x17 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PTPSERIAL = 0x16 + IFT_RS232 = 0x21 + IFT_SDLC = 0x11 + IFT_SIP = 0x1f + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_STARLAN = 0xb + IFT_STF = 0x39 + IFT_T1 = 0x12 + IFT_ULTRA = 0x1d + IFT_V35 = 0x2d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LINKLOCALNETNUM = 0xa9fe0000 + IN_LOOPBACKNET = 0x7f + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x400473d1 + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0xfe + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MEAS = 0x13 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEP = 0x21 + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_2292DSTOPTS = 0x17 + IPV6_2292HOPLIMIT = 0x14 + IPV6_2292HOPOPTS = 0x16 + IPV6_2292NEXTHOP = 0x15 + IPV6_2292PKTINFO = 0x13 + IPV6_2292PKTOPTIONS = 0x19 + IPV6_2292RTHDR = 0x18 + IPV6_3542DSTOPTS = 0x32 + IPV6_3542HOPLIMIT = 0x2f + IPV6_3542HOPOPTS = 0x31 + IPV6_3542NEXTHOP = 0x30 + IPV6_3542PKTINFO = 0x2e + IPV6_3542RTHDR = 0x33 + IPV6_ADDR_MC_FLAGS_PREFIX = 0x20 + IPV6_ADDR_MC_FLAGS_TRANSIENT = 0x10 + IPV6_ADDR_MC_FLAGS_UNICAST_BASED = 0x30 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDV6ONLY = 0x1b + IPV6_BOUND_IF = 0x7d + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOW_ECN_MASK = 0x3000 + IPV6_FRAGTTL = 0x3c + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MIN_MEMBERSHIPS = 0x1f + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x3d + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x23 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x39 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x24 + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BLOCK_SOURCE = 0x48 + IP_BOUND_IF = 0x19 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x1c + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FAITH = 0x16 + IP_FW_ADD = 0x28 + IP_FW_DEL = 0x29 + IP_FW_FLUSH = 0x2a + IP_FW_GET = 0x2c + IP_FW_RESETLOG = 0x2d + IP_FW_ZERO = 0x2b + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MIN_MEMBERSHIPS = 0x1f + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_IFINDEX = 0x42 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_NAT__XXX = 0x37 + IP_OFFMASK = 0x1fff + IP_OLD_FW_ADD = 0x32 + IP_OLD_FW_DEL = 0x33 + IP_OLD_FW_FLUSH = 0x34 + IP_OLD_FW_GET = 0x36 + IP_OLD_FW_RESETLOG = 0x38 + IP_OLD_FW_ZERO = 0x35 + IP_OPTIONS = 0x1 + IP_PKTINFO = 0x1a + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVPKTINFO = 0x1a + IP_RECVRETOPTS = 0x6 + IP_RECVTOS = 0x1b + IP_RECVTTL = 0x18 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_STRIPHDR = 0x17 + IP_TOS = 0x3 + IP_TRAFFIC_MGT_BACKGROUND = 0x41 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + ISIG = 0x80 + ISTRIP = 0x20 + IUTF8 = 0x4000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_PEERCRED = 0x1 + LOCAL_PEEREPID = 0x3 + LOCAL_PEEREUUID = 0x5 + LOCAL_PEERPID = 0x2 + LOCAL_PEERTOKEN = 0x6 + LOCAL_PEERUUID = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_CAN_REUSE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_FREE_REUSABLE = 0x7 + MADV_FREE_REUSE = 0x8 + MADV_NORMAL = 0x0 + MADV_PAGEOUT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MADV_ZERO_WIRED_PAGES = 0x6 + MAP_32BIT = 0x8000 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_JIT = 0x800 + MAP_NOCACHE = 0x400 + MAP_NOEXTEND = 0x100 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_RESERVED0080 = 0x80 + MAP_RESILIENT_CODESIGN = 0x2000 + MAP_RESILIENT_MEDIA = 0x4000 + MAP_SHARED = 0x1 + MAP_TRANSLATED_ALLOW_EXECUTE = 0x20000 + MAP_UNIX03 = 0x40000 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x400000 + MNT_CMDFLAGS = 0xf0000 + MNT_CPROTECT = 0x80 + MNT_DEFWRITE = 0x2000000 + MNT_DONTBROWSE = 0x100000 + MNT_DOVOLFS = 0x8000 + MNT_DWAIT = 0x4 + MNT_EXPORTED = 0x100 + MNT_EXT_ROOT_DATA_VOL = 0x1 + MNT_FORCE = 0x80000 + MNT_IGNORE_OWNERSHIP = 0x200000 + MNT_JOURNALED = 0x800000 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NOATIME = 0x10000000 + MNT_NOBLOCK = 0x20000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOUSERXATTR = 0x1000000 + MNT_NOWAIT = 0x2 + MNT_QUARANTINE = 0x400 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_REMOVABLE = 0x200 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x40000000 + MNT_STRICTATIME = 0x80000000 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNKNOWNPERMISSIONS = 0x200000 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0xd7f0f7ff + MNT_WAIT = 0x1 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_FLUSH = 0x400 + MSG_HAVEMORE = 0x2000 + MSG_HOLD = 0x800 + MSG_NEEDSA = 0x10000 + MSG_NOSIGNAL = 0x80000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_RCVMORE = 0x4000 + MSG_SEND = 0x1000 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITSTREAM = 0x200 + MS_ASYNC = 0x1 + MS_DEACTIVATE = 0x8 + MS_INVALIDATE = 0x2 + MS_KILLPAGES = 0x4 + MS_SYNC = 0x10 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_DUMP2 = 0x7 + NET_RT_FLAGS = 0x2 + NET_RT_FLAGS_PRIV = 0xa + NET_RT_IFLIST = 0x3 + NET_RT_IFLIST2 = 0x6 + NET_RT_MAXID = 0xb + NET_RT_STAT = 0x4 + NET_RT_TRASH = 0x5 + NFDBITS = 0x20 + NL0 = 0x0 + NL1 = 0x100 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSOLUTE = 0x8 + NOTE_ATTRIB = 0x8 + NOTE_BACKGROUND = 0x40 + NOTE_CHILD = 0x4 + NOTE_CRITICAL = 0x20 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXITSTATUS = 0x4000000 + NOTE_EXIT_CSERROR = 0x40000 + NOTE_EXIT_DECRYPTFAIL = 0x10000 + NOTE_EXIT_DETAIL = 0x2000000 + NOTE_EXIT_DETAIL_MASK = 0x70000 + NOTE_EXIT_MEMORY = 0x20000 + NOTE_EXIT_REPARENTED = 0x80000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FORK = 0x40000000 + NOTE_FUNLOCK = 0x100 + NOTE_LEEWAY = 0x10 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MACHTIME = 0x100 + NOTE_MACH_CONTINUOUS_TIME = 0x80 + NOTE_NONE = 0x80 + NOTE_NSECONDS = 0x4 + NOTE_OOB = 0x2 + NOTE_PCTRLMASK = -0x100000 + NOTE_PDATAMASK = 0xfffff + NOTE_REAP = 0x10000000 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_SIGNAL = 0x8000000 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x2 + NOTE_VM_ERROR = 0x10000000 + NOTE_VM_PRESSURE = 0x80000000 + NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 + NOTE_VM_PRESSURE_TERMINATE = 0x40000000 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OFDEL = 0x20000 + OFILL = 0x80 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_ALERT = 0x20000000 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x1000000 + O_CREAT = 0x200 + O_DIRECTORY = 0x100000 + O_DP_GETRAWENCRYPTED = 0x1 + O_DP_GETRAWUNENCRYPTED = 0x2 + O_DSYNC = 0x400000 + O_EVTONLY = 0x8000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x20000 + O_NOFOLLOW = 0x100 + O_NOFOLLOW_ANY = 0x20000000 + O_NONBLOCK = 0x4 + O_POPUP = 0x80000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_SHLOCK = 0x10 + O_SYMLINK = 0x200000 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PT_ATTACH = 0xa + PT_ATTACHEXC = 0xe + PT_CONTINUE = 0x7 + PT_DENY_ATTACH = 0x1f + PT_DETACH = 0xb + PT_FIRSTMACH = 0x20 + PT_FORCEQUOTA = 0x1e + PT_KILL = 0x8 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_READ_U = 0x3 + PT_SIGEXC = 0xc + PT_STEP = 0x9 + PT_THUPDATE = 0xd + PT_TRACE_ME = 0x0 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + PT_WRITE_U = 0x6 + RLIMIT_AS = 0x5 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_CPU_USAGE_MONITOR = 0x2 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CLONING = 0x100 + RTF_CONDEMNED = 0x2000000 + RTF_DEAD = 0x20000000 + RTF_DELCLONE = 0x80 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_GLOBAL = 0x40000000 + RTF_HOST = 0x4 + RTF_IFREF = 0x4000000 + RTF_IFSCOPE = 0x1000000 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_NOIFREF = 0x2000 + RTF_PINNED = 0x100000 + RTF_PRCLONING = 0x10000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_PROXY = 0x8000000 + RTF_REJECT = 0x8 + RTF_ROUTER = 0x10000000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_WASCLONED = 0x20000 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_GET2 = 0x14 + RTM_IFINFO = 0xe + RTM_IFINFO2 = 0x12 + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_NEWMADDR2 = 0x13 + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x3 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIMESTAMP_MONOTONIC = 0x4 + SEEK_CUR = 0x1 + SEEK_DATA = 0x4 + SEEK_END = 0x2 + SEEK_HOLE = 0x3 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCARPIPLL = 0xc0206928 + SIOCATMARK = 0x40047307 + SIOCAUTOADDR = 0xc0206926 + SIOCAUTONETMASK = 0x80206927 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFPHYADDR = 0x80206941 + SIOCGDRVSPEC = 0xc028697b + SIOCGETVLAN = 0xc020697f + SIOCGHIWAT = 0x40047301 + SIOCGIF6LOWPAN = 0xc02069c5 + SIOCGIFADDR = 0xc0206921 + SIOCGIFALTMTU = 0xc0206948 + SIOCGIFASYNCMAP = 0xc020697c + SIOCGIFBOND = 0xc0206947 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020695b + SIOCGIFCONF = 0xc00c6924 + SIOCGIFDEVMTU = 0xc0206944 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFFUNCTIONALTYPE = 0xc02069ad + SIOCGIFGENERIC = 0xc020693a + SIOCGIFKPI = 0xc0206987 + SIOCGIFMAC = 0xc0206982 + SIOCGIFMEDIA = 0xc02c6938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206940 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc020693f + SIOCGIFSTATUS = 0xc331693d + SIOCGIFVLAN = 0xc020697f + SIOCGIFWAKEFLAGS = 0xc0206988 + SIOCGIFXMEDIA = 0xc02c6948 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCIFCREATE = 0xc0206978 + SIOCIFCREATE2 = 0xc020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106981 + SIOCRSLVMULTI = 0xc010693b + SIOCSDRVSPEC = 0x8028697b + SIOCSETVLAN = 0x8020697e + SIOCSHIWAT = 0x80047300 + SIOCSIF6LOWPAN = 0x802069c4 + SIOCSIFADDR = 0x8020690c + SIOCSIFALTMTU = 0x80206945 + SIOCSIFASYNCMAP = 0x8020697d + SIOCSIFBOND = 0x80206946 + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020695a + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFKPI = 0x80206986 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206983 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x8040693e + SIOCSIFPHYS = 0x80206936 + SIOCSIFVLAN = 0x8020697e + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_DONTTRUNC = 0x2000 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1010 + SO_LINGER = 0x80 + SO_LINGER_SEC = 0x1080 + SO_NETSVC_MARKING_LEVEL = 0x1119 + SO_NET_SERVICE_TYPE = 0x1116 + SO_NKE = 0x1021 + SO_NOADDRERR = 0x1023 + SO_NOSIGPIPE = 0x1022 + SO_NOTIFYCONFLICT = 0x1026 + SO_NP_EXTENSIONS = 0x1083 + SO_NREAD = 0x1020 + SO_NUMRCVPKT = 0x1112 + SO_NWRITE = 0x1024 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1011 + SO_RANDOMPORT = 0x1082 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSESHAREUID = 0x1025 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TIMESTAMP_MONOTONIC = 0x800 + SO_TRACKER_ATTRIBUTE_FLAGS_APP_APPROVED = 0x1 + SO_TRACKER_ATTRIBUTE_FLAGS_DOMAIN_SHORT = 0x4 + SO_TRACKER_ATTRIBUTE_FLAGS_TRACKER = 0x2 + SO_TRACKER_TRANSPARENCY_VERSION = 0x3 + SO_TYPE = 0x1008 + SO_UPCALLCLOSEWAIT = 0x1027 + SO_USELOOPBACK = 0x40 + SO_WANTMORE = 0x4000 + SO_WANTOOBFLAG = 0x8000 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0x4 + TABDLY = 0xc04 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_CC = 0xb + TCPOPT_CCECHO = 0xd + TCPOPT_CCNEW = 0xc + TCPOPT_EOL = 0x0 + TCPOPT_FASTOPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_CONNECTIONTIMEOUT = 0x20 + TCP_CONNECTION_INFO = 0x106 + TCP_ENABLE_ECN = 0x104 + TCP_FASTOPEN = 0x105 + TCP_KEEPALIVE = 0x10 + TCP_KEEPCNT = 0x102 + TCP_KEEPINTVL = 0x101 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MINMSS = 0xd8 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_NOTSENT_LOWAT = 0x201 + TCP_RXT_CONNDROPTIME = 0x80 + TCP_RXT_FINDROP = 0x100 + TCP_SENDMOREACKS = 0x103 + TCSAFLUSH = 0x2 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x40107458 + TIOCDRAIN = 0x2000745e + TIOCDSIMICROCODE = 0x20007455 + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x40487413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGWINSZ = 0x40087468 + TIOCIXOFF = 0x20007480 + TIOCIXON = 0x20007481 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMODG = 0x40047403 + TIOCMODS = 0x80047404 + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTYGNAME = 0x40807453 + TIOCPTYGRANT = 0x20007454 + TIOCPTYUNLK = 0x20007452 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCONS = 0x20007463 + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x80487414 + TIOCSETAF = 0x80487416 + TIOCSETAW = 0x80487415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2000745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMADDR_CID_ANY = 0xffffffff + VMADDR_CID_HOST = 0x2 + VMADDR_CID_HYPERVISOR = 0x0 + VMADDR_CID_RESERVED = 0x1 + VMADDR_PORT_ANY = 0xffffffff + VMIN = 0x10 + VM_LOADAVG = 0x2 + VM_MACHFACTOR = 0x4 + VM_MAXID = 0x6 + VM_METER = 0x1 + VM_SWAPUSAGE = 0x5 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VT0 = 0x0 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x10 + WCOREFLAG = 0x80 + WEXITED = 0x4 + WNOHANG = 0x1 + WNOWAIT = 0x20 + WORDSIZE = 0x40 + WSTOPPED = 0x8 + WUNTRACED = 0x2 + XATTR_CREATE = 0x2 + XATTR_NODEFAULT = 0x10 + XATTR_NOFOLLOW = 0x1 + XATTR_NOSECURITY = 0x8 + XATTR_REPLACE = 0x4 + XATTR_SHOWCOMPRESSION = 0x20 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADARCH = syscall.Errno(0x56) + EBADEXEC = syscall.Errno(0x55) + EBADF = syscall.Errno(0x9) + EBADMACHO = syscall.Errno(0x58) + EBADMSG = syscall.Errno(0x5e) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x59) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDEVERR = syscall.Errno(0x53) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x5a) + EILSEQ = syscall.Errno(0x5c) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x6a) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5f) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x5d) + ENOBUFS = syscall.Errno(0x37) + ENODATA = syscall.Errno(0x60) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x61) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5b) + ENOPOLICY = syscall.Errno(0x67) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x62) + ENOSTR = syscall.Errno(0x63) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x68) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x66) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x69) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x64) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + EPWROFF = syscall.Errno(0x52) + EQFULL = syscall.Errno(0x6a) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHLIBVERS = syscall.Errno(0x57) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIME = syscall.Errno(0x65) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "ENOTSUP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EPWROFF", "device power is off"}, + {83, "EDEVERR", "device error"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "EBADEXEC", "bad executable (or shared library)"}, + {86, "EBADARCH", "bad CPU type in executable"}, + {87, "ESHLIBVERS", "shared library version mismatch"}, + {88, "EBADMACHO", "malformed Mach-o file"}, + {89, "ECANCELED", "operation canceled"}, + {90, "EIDRM", "identifier removed"}, + {91, "ENOMSG", "no message of desired type"}, + {92, "EILSEQ", "illegal byte sequence"}, + {93, "ENOATTR", "attribute not found"}, + {94, "EBADMSG", "bad message"}, + {95, "EMULTIHOP", "EMULTIHOP (Reserved)"}, + {96, "ENODATA", "no message available on STREAM"}, + {97, "ENOLINK", "ENOLINK (Reserved)"}, + {98, "ENOSR", "no STREAM resources"}, + {99, "ENOSTR", "not a STREAM"}, + {100, "EPROTO", "protocol error"}, + {101, "ETIME", "STREAM ioctl timeout"}, + {102, "EOPNOTSUPP", "operation not supported on socket"}, + {103, "ENOPOLICY", "policy not found"}, + {104, "ENOTRECOVERABLE", "state not recoverable"}, + {105, "EOWNERDEAD", "previous owner died"}, + {106, "EQFULL", "interface output queue is full"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGABRT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go new file mode 100644 index 0000000..e36f517 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go @@ -0,0 +1,1892 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && darwin +// +build arm64,darwin + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1c + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1e + AF_IPX = 0x17 + AF_ISDN = 0x1c + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x29 + AF_NATM = 0x1f + AF_NDRV = 0x1b + AF_NETBIOS = 0x21 + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PPP = 0x22 + AF_PUP = 0x4 + AF_RESERVED_36 = 0x24 + AF_ROUTE = 0x11 + AF_SIP = 0x18 + AF_SNA = 0xb + AF_SYSTEM = 0x20 + AF_SYS_CONTROL = 0x2 + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_UTUN = 0x26 + AF_VSOCK = 0x28 + ALTWERASE = 0x200 + ATTR_BIT_MAP_COUNT = 0x5 + ATTR_CMN_ACCESSMASK = 0x20000 + ATTR_CMN_ACCTIME = 0x1000 + ATTR_CMN_ADDEDTIME = 0x10000000 + ATTR_CMN_BKUPTIME = 0x2000 + ATTR_CMN_CHGTIME = 0x800 + ATTR_CMN_CRTIME = 0x200 + ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 + ATTR_CMN_DEVID = 0x2 + ATTR_CMN_DOCUMENT_ID = 0x100000 + ATTR_CMN_ERROR = 0x20000000 + ATTR_CMN_EXTENDED_SECURITY = 0x400000 + ATTR_CMN_FILEID = 0x2000000 + ATTR_CMN_FLAGS = 0x40000 + ATTR_CMN_FNDRINFO = 0x4000 + ATTR_CMN_FSID = 0x4 + ATTR_CMN_FULLPATH = 0x8000000 + ATTR_CMN_GEN_COUNT = 0x80000 + ATTR_CMN_GRPID = 0x10000 + ATTR_CMN_GRPUUID = 0x1000000 + ATTR_CMN_MODTIME = 0x400 + ATTR_CMN_NAME = 0x1 + ATTR_CMN_NAMEDATTRCOUNT = 0x80000 + ATTR_CMN_NAMEDATTRLIST = 0x100000 + ATTR_CMN_OBJID = 0x20 + ATTR_CMN_OBJPERMANENTID = 0x40 + ATTR_CMN_OBJTAG = 0x10 + ATTR_CMN_OBJTYPE = 0x8 + ATTR_CMN_OWNERID = 0x8000 + ATTR_CMN_PARENTID = 0x4000000 + ATTR_CMN_PAROBJID = 0x80 + ATTR_CMN_RETURNED_ATTRS = 0x80000000 + ATTR_CMN_SCRIPT = 0x100 + ATTR_CMN_SETMASK = 0x51c7ff00 + ATTR_CMN_USERACCESS = 0x200000 + ATTR_CMN_UUID = 0x800000 + ATTR_CMN_VALIDMASK = 0xffffffff + ATTR_CMN_VOLSETMASK = 0x6700 + ATTR_FILE_ALLOCSIZE = 0x4 + ATTR_FILE_CLUMPSIZE = 0x10 + ATTR_FILE_DATAALLOCSIZE = 0x400 + ATTR_FILE_DATAEXTENTS = 0x800 + ATTR_FILE_DATALENGTH = 0x200 + ATTR_FILE_DEVTYPE = 0x20 + ATTR_FILE_FILETYPE = 0x40 + ATTR_FILE_FORKCOUNT = 0x80 + ATTR_FILE_FORKLIST = 0x100 + ATTR_FILE_IOBLOCKSIZE = 0x8 + ATTR_FILE_LINKCOUNT = 0x1 + ATTR_FILE_RSRCALLOCSIZE = 0x2000 + ATTR_FILE_RSRCEXTENTS = 0x4000 + ATTR_FILE_RSRCLENGTH = 0x1000 + ATTR_FILE_SETMASK = 0x20 + ATTR_FILE_TOTALSIZE = 0x2 + ATTR_FILE_VALIDMASK = 0x37ff + ATTR_VOL_ALLOCATIONCLUMP = 0x40 + ATTR_VOL_ATTRIBUTES = 0x40000000 + ATTR_VOL_CAPABILITIES = 0x20000 + ATTR_VOL_DIRCOUNT = 0x400 + ATTR_VOL_ENCODINGSUSED = 0x10000 + ATTR_VOL_FILECOUNT = 0x200 + ATTR_VOL_FSTYPE = 0x1 + ATTR_VOL_INFO = 0x80000000 + ATTR_VOL_IOBLOCKSIZE = 0x80 + ATTR_VOL_MAXOBJCOUNT = 0x800 + ATTR_VOL_MINALLOCATION = 0x20 + ATTR_VOL_MOUNTEDDEVICE = 0x8000 + ATTR_VOL_MOUNTFLAGS = 0x4000 + ATTR_VOL_MOUNTPOINT = 0x1000 + ATTR_VOL_NAME = 0x2000 + ATTR_VOL_OBJCOUNT = 0x100 + ATTR_VOL_QUOTA_SIZE = 0x10000000 + ATTR_VOL_RESERVED_SIZE = 0x20000000 + ATTR_VOL_SETMASK = 0x80002000 + ATTR_VOL_SIGNATURE = 0x2 + ATTR_VOL_SIZE = 0x4 + ATTR_VOL_SPACEAVAIL = 0x10 + ATTR_VOL_SPACEFREE = 0x8 + ATTR_VOL_SPACEUSED = 0x800000 + ATTR_VOL_UUID = 0x40000 + ATTR_VOL_VALIDMASK = 0xf087ffff + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc00c4279 + BIOCGETIF = 0x4020426b + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044278 + BIOCSETF = 0x80104267 + BIOCSETFNR = 0x8010427e + BIOCSETIF = 0x8020426c + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + BS0 = 0x0 + BS1 = 0x8000 + BSDLY = 0x8000 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x6 + CLOCK_MONOTONIC_RAW = 0x4 + CLOCK_MONOTONIC_RAW_APPROX = 0x5 + CLOCK_PROCESS_CPUTIME_ID = 0xc + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x10 + CLOCK_UPTIME_RAW = 0x8 + CLOCK_UPTIME_RAW_APPROX = 0x9 + CLONE_NOFOLLOW = 0x1 + CLONE_NOOWNERCOPY = 0x2 + CR0 = 0x0 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTLIOCGINFO = 0xc0644e03 + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HHDLC = 0x79 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_IPFILTER = 0x74 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x10a + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USB_DARWIN = 0x10a + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_WIHART = 0xdf + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EXCEPT = -0xf + EVFILT_FS = -0x9 + EVFILT_MACHPORT = -0x8 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x11 + EVFILT_THREADMARKER = 0x11 + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xa + EVFILT_VM = -0xc + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DISPATCH2 = 0x180 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG0 = 0x1000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_OOBAND = 0x2000 + EV_POLL = 0x1000 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EV_UDATA_SPECIFIC = 0x100 + EV_VANISHED = 0x200 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FF0 = 0x0 + FF1 = 0x4000 + FFDLY = 0x4000 + FLUSHO = 0x800000 + FSOPT_ATTR_CMN_EXTENDED = 0x20 + FSOPT_NOFOLLOW = 0x1 + FSOPT_NOINMEMUPDATE = 0x2 + FSOPT_PACK_INVAL_ATTRS = 0x8 + FSOPT_REPORT_FULLSIZE = 0x4 + FSOPT_RETURN_REALDEV = 0x200 + F_ADDFILESIGS = 0x3d + F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 + F_ADDFILESIGS_INFO = 0x67 + F_ADDFILESIGS_RETURN = 0x61 + F_ADDFILESUPPL = 0x68 + F_ADDSIGS = 0x3b + F_ALLOCATEALL = 0x4 + F_ALLOCATECONTIG = 0x2 + F_BARRIERFSYNC = 0x55 + F_CHECK_LV = 0x62 + F_CHKCLEAN = 0x29 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x43 + F_FINDSIGS = 0x4e + F_FLUSH_DATA = 0x28 + F_FREEZE_FS = 0x35 + F_FULLFSYNC = 0x33 + F_GETCODEDIR = 0x48 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETLKPID = 0x42 + F_GETNOSIGPIPE = 0x4a + F_GETOWN = 0x5 + F_GETPATH = 0x32 + F_GETPATH_MTMINFO = 0x47 + F_GETPATH_NOFIRMLINK = 0x66 + F_GETPROTECTIONCLASS = 0x3f + F_GETPROTECTIONLEVEL = 0x4d + F_GETSIGSINFO = 0x69 + F_GLOBAL_NOCACHE = 0x37 + F_LOG2PHYS = 0x31 + F_LOG2PHYS_EXT = 0x41 + F_NOCACHE = 0x30 + F_NODIRECT = 0x3e + F_OK = 0x0 + F_PATHPKG_CHECK = 0x34 + F_PEOFPOSMODE = 0x3 + F_PREALLOCATE = 0x2a + F_PUNCHHOLE = 0x63 + F_RDADVISE = 0x2c + F_RDAHEAD = 0x2d + F_RDLCK = 0x1 + F_SETBACKINGSTORE = 0x46 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETLKWTIMEOUT = 0xa + F_SETNOSIGPIPE = 0x49 + F_SETOWN = 0x6 + F_SETPROTECTIONCLASS = 0x40 + F_SETSIZE = 0x2b + F_SINGLE_WRITER = 0x4c + F_SPECULATIVE_READ = 0x65 + F_THAW_FS = 0x36 + F_TRANSCODEKEY = 0x4b + F_TRIM_ACTIVE_FILE = 0x64 + F_UNLCK = 0x2 + F_VOLPOSMODE = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_6LOWPAN = 0x40 + IFT_AAL5 = 0x31 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ATM = 0x25 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_CELLULAR = 0xff + IFT_CEPT = 0x13 + IFT_DS3 = 0x1e + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_ETHER = 0x6 + IFT_FAITH = 0x38 + IFT_FDDI = 0xf + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_GIF = 0x37 + IFT_HDH1822 = 0x3 + IFT_HIPPI = 0x2f + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IEEE1394 = 0x90 + IFT_IEEE8023ADLAG = 0x88 + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88026 = 0xa + IFT_L2VLAN = 0x87 + IFT_LAPB = 0x10 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_NSIP = 0x1b + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PDP = 0xff + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PKTAP = 0xfe + IFT_PPP = 0x17 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PTPSERIAL = 0x16 + IFT_RS232 = 0x21 + IFT_SDLC = 0x11 + IFT_SIP = 0x1f + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_STARLAN = 0xb + IFT_STF = 0x39 + IFT_T1 = 0x12 + IFT_ULTRA = 0x1d + IFT_V35 = 0x2d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LINKLOCALNETNUM = 0xa9fe0000 + IN_LOOPBACKNET = 0x7f + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x400473d1 + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0xfe + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MEAS = 0x13 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEP = 0x21 + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_2292DSTOPTS = 0x17 + IPV6_2292HOPLIMIT = 0x14 + IPV6_2292HOPOPTS = 0x16 + IPV6_2292NEXTHOP = 0x15 + IPV6_2292PKTINFO = 0x13 + IPV6_2292PKTOPTIONS = 0x19 + IPV6_2292RTHDR = 0x18 + IPV6_3542DSTOPTS = 0x32 + IPV6_3542HOPLIMIT = 0x2f + IPV6_3542HOPOPTS = 0x31 + IPV6_3542NEXTHOP = 0x30 + IPV6_3542PKTINFO = 0x2e + IPV6_3542RTHDR = 0x33 + IPV6_ADDR_MC_FLAGS_PREFIX = 0x20 + IPV6_ADDR_MC_FLAGS_TRANSIENT = 0x10 + IPV6_ADDR_MC_FLAGS_UNICAST_BASED = 0x30 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDV6ONLY = 0x1b + IPV6_BOUND_IF = 0x7d + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOW_ECN_MASK = 0x3000 + IPV6_FRAGTTL = 0x3c + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MIN_MEMBERSHIPS = 0x1f + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x3d + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x23 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x39 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x24 + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BLOCK_SOURCE = 0x48 + IP_BOUND_IF = 0x19 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x1c + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FAITH = 0x16 + IP_FW_ADD = 0x28 + IP_FW_DEL = 0x29 + IP_FW_FLUSH = 0x2a + IP_FW_GET = 0x2c + IP_FW_RESETLOG = 0x2d + IP_FW_ZERO = 0x2b + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MIN_MEMBERSHIPS = 0x1f + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_IFINDEX = 0x42 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_NAT__XXX = 0x37 + IP_OFFMASK = 0x1fff + IP_OLD_FW_ADD = 0x32 + IP_OLD_FW_DEL = 0x33 + IP_OLD_FW_FLUSH = 0x34 + IP_OLD_FW_GET = 0x36 + IP_OLD_FW_RESETLOG = 0x38 + IP_OLD_FW_ZERO = 0x35 + IP_OPTIONS = 0x1 + IP_PKTINFO = 0x1a + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVPKTINFO = 0x1a + IP_RECVRETOPTS = 0x6 + IP_RECVTOS = 0x1b + IP_RECVTTL = 0x18 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_STRIPHDR = 0x17 + IP_TOS = 0x3 + IP_TRAFFIC_MGT_BACKGROUND = 0x41 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + ISIG = 0x80 + ISTRIP = 0x20 + IUTF8 = 0x4000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_PEERCRED = 0x1 + LOCAL_PEEREPID = 0x3 + LOCAL_PEEREUUID = 0x5 + LOCAL_PEERPID = 0x2 + LOCAL_PEERTOKEN = 0x6 + LOCAL_PEERUUID = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_CAN_REUSE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_FREE_REUSABLE = 0x7 + MADV_FREE_REUSE = 0x8 + MADV_NORMAL = 0x0 + MADV_PAGEOUT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MADV_ZERO_WIRED_PAGES = 0x6 + MAP_32BIT = 0x8000 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_JIT = 0x800 + MAP_NOCACHE = 0x400 + MAP_NOEXTEND = 0x100 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_RESERVED0080 = 0x80 + MAP_RESILIENT_CODESIGN = 0x2000 + MAP_RESILIENT_MEDIA = 0x4000 + MAP_SHARED = 0x1 + MAP_TRANSLATED_ALLOW_EXECUTE = 0x20000 + MAP_UNIX03 = 0x40000 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x400000 + MNT_CMDFLAGS = 0xf0000 + MNT_CPROTECT = 0x80 + MNT_DEFWRITE = 0x2000000 + MNT_DONTBROWSE = 0x100000 + MNT_DOVOLFS = 0x8000 + MNT_DWAIT = 0x4 + MNT_EXPORTED = 0x100 + MNT_EXT_ROOT_DATA_VOL = 0x1 + MNT_FORCE = 0x80000 + MNT_IGNORE_OWNERSHIP = 0x200000 + MNT_JOURNALED = 0x800000 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NOATIME = 0x10000000 + MNT_NOBLOCK = 0x20000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOUSERXATTR = 0x1000000 + MNT_NOWAIT = 0x2 + MNT_QUARANTINE = 0x400 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_REMOVABLE = 0x200 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x40000000 + MNT_STRICTATIME = 0x80000000 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNKNOWNPERMISSIONS = 0x200000 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0xd7f0f7ff + MNT_WAIT = 0x1 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_FLUSH = 0x400 + MSG_HAVEMORE = 0x2000 + MSG_HOLD = 0x800 + MSG_NEEDSA = 0x10000 + MSG_NOSIGNAL = 0x80000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_RCVMORE = 0x4000 + MSG_SEND = 0x1000 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITSTREAM = 0x200 + MS_ASYNC = 0x1 + MS_DEACTIVATE = 0x8 + MS_INVALIDATE = 0x2 + MS_KILLPAGES = 0x4 + MS_SYNC = 0x10 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_DUMP2 = 0x7 + NET_RT_FLAGS = 0x2 + NET_RT_FLAGS_PRIV = 0xa + NET_RT_IFLIST = 0x3 + NET_RT_IFLIST2 = 0x6 + NET_RT_MAXID = 0xb + NET_RT_STAT = 0x4 + NET_RT_TRASH = 0x5 + NFDBITS = 0x20 + NL0 = 0x0 + NL1 = 0x100 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSOLUTE = 0x8 + NOTE_ATTRIB = 0x8 + NOTE_BACKGROUND = 0x40 + NOTE_CHILD = 0x4 + NOTE_CRITICAL = 0x20 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXITSTATUS = 0x4000000 + NOTE_EXIT_CSERROR = 0x40000 + NOTE_EXIT_DECRYPTFAIL = 0x10000 + NOTE_EXIT_DETAIL = 0x2000000 + NOTE_EXIT_DETAIL_MASK = 0x70000 + NOTE_EXIT_MEMORY = 0x20000 + NOTE_EXIT_REPARENTED = 0x80000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FORK = 0x40000000 + NOTE_FUNLOCK = 0x100 + NOTE_LEEWAY = 0x10 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MACHTIME = 0x100 + NOTE_MACH_CONTINUOUS_TIME = 0x80 + NOTE_NONE = 0x80 + NOTE_NSECONDS = 0x4 + NOTE_OOB = 0x2 + NOTE_PCTRLMASK = -0x100000 + NOTE_PDATAMASK = 0xfffff + NOTE_REAP = 0x10000000 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_SIGNAL = 0x8000000 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x2 + NOTE_VM_ERROR = 0x10000000 + NOTE_VM_PRESSURE = 0x80000000 + NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 + NOTE_VM_PRESSURE_TERMINATE = 0x40000000 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OFDEL = 0x20000 + OFILL = 0x80 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_ALERT = 0x20000000 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x1000000 + O_CREAT = 0x200 + O_DIRECTORY = 0x100000 + O_DP_GETRAWENCRYPTED = 0x1 + O_DP_GETRAWUNENCRYPTED = 0x2 + O_DSYNC = 0x400000 + O_EVTONLY = 0x8000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x20000 + O_NOFOLLOW = 0x100 + O_NOFOLLOW_ANY = 0x20000000 + O_NONBLOCK = 0x4 + O_POPUP = 0x80000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_SHLOCK = 0x10 + O_SYMLINK = 0x200000 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PT_ATTACH = 0xa + PT_ATTACHEXC = 0xe + PT_CONTINUE = 0x7 + PT_DENY_ATTACH = 0x1f + PT_DETACH = 0xb + PT_FIRSTMACH = 0x20 + PT_FORCEQUOTA = 0x1e + PT_KILL = 0x8 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_READ_U = 0x3 + PT_SIGEXC = 0xc + PT_STEP = 0x9 + PT_THUPDATE = 0xd + PT_TRACE_ME = 0x0 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + PT_WRITE_U = 0x6 + RLIMIT_AS = 0x5 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_CPU_USAGE_MONITOR = 0x2 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CLONING = 0x100 + RTF_CONDEMNED = 0x2000000 + RTF_DEAD = 0x20000000 + RTF_DELCLONE = 0x80 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_GLOBAL = 0x40000000 + RTF_HOST = 0x4 + RTF_IFREF = 0x4000000 + RTF_IFSCOPE = 0x1000000 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_NOIFREF = 0x2000 + RTF_PINNED = 0x100000 + RTF_PRCLONING = 0x10000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_PROXY = 0x8000000 + RTF_REJECT = 0x8 + RTF_ROUTER = 0x10000000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_WASCLONED = 0x20000 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_GET2 = 0x14 + RTM_IFINFO = 0xe + RTM_IFINFO2 = 0x12 + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_NEWMADDR2 = 0x13 + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x3 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIMESTAMP_MONOTONIC = 0x4 + SEEK_CUR = 0x1 + SEEK_DATA = 0x4 + SEEK_END = 0x2 + SEEK_HOLE = 0x3 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCARPIPLL = 0xc0206928 + SIOCATMARK = 0x40047307 + SIOCAUTOADDR = 0xc0206926 + SIOCAUTONETMASK = 0x80206927 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFPHYADDR = 0x80206941 + SIOCGDRVSPEC = 0xc028697b + SIOCGETVLAN = 0xc020697f + SIOCGHIWAT = 0x40047301 + SIOCGIF6LOWPAN = 0xc02069c5 + SIOCGIFADDR = 0xc0206921 + SIOCGIFALTMTU = 0xc0206948 + SIOCGIFASYNCMAP = 0xc020697c + SIOCGIFBOND = 0xc0206947 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020695b + SIOCGIFCONF = 0xc00c6924 + SIOCGIFDEVMTU = 0xc0206944 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFFUNCTIONALTYPE = 0xc02069ad + SIOCGIFGENERIC = 0xc020693a + SIOCGIFKPI = 0xc0206987 + SIOCGIFMAC = 0xc0206982 + SIOCGIFMEDIA = 0xc02c6938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206940 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc020693f + SIOCGIFSTATUS = 0xc331693d + SIOCGIFVLAN = 0xc020697f + SIOCGIFWAKEFLAGS = 0xc0206988 + SIOCGIFXMEDIA = 0xc02c6948 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCIFCREATE = 0xc0206978 + SIOCIFCREATE2 = 0xc020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106981 + SIOCRSLVMULTI = 0xc010693b + SIOCSDRVSPEC = 0x8028697b + SIOCSETVLAN = 0x8020697e + SIOCSHIWAT = 0x80047300 + SIOCSIF6LOWPAN = 0x802069c4 + SIOCSIFADDR = 0x8020690c + SIOCSIFALTMTU = 0x80206945 + SIOCSIFASYNCMAP = 0x8020697d + SIOCSIFBOND = 0x80206946 + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020695a + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFKPI = 0x80206986 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206983 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x8040693e + SIOCSIFPHYS = 0x80206936 + SIOCSIFVLAN = 0x8020697e + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_DONTTRUNC = 0x2000 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1010 + SO_LINGER = 0x80 + SO_LINGER_SEC = 0x1080 + SO_NETSVC_MARKING_LEVEL = 0x1119 + SO_NET_SERVICE_TYPE = 0x1116 + SO_NKE = 0x1021 + SO_NOADDRERR = 0x1023 + SO_NOSIGPIPE = 0x1022 + SO_NOTIFYCONFLICT = 0x1026 + SO_NP_EXTENSIONS = 0x1083 + SO_NREAD = 0x1020 + SO_NUMRCVPKT = 0x1112 + SO_NWRITE = 0x1024 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1011 + SO_RANDOMPORT = 0x1082 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSESHAREUID = 0x1025 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TIMESTAMP_MONOTONIC = 0x800 + SO_TRACKER_ATTRIBUTE_FLAGS_APP_APPROVED = 0x1 + SO_TRACKER_ATTRIBUTE_FLAGS_DOMAIN_SHORT = 0x4 + SO_TRACKER_ATTRIBUTE_FLAGS_TRACKER = 0x2 + SO_TRACKER_TRANSPARENCY_VERSION = 0x3 + SO_TYPE = 0x1008 + SO_UPCALLCLOSEWAIT = 0x1027 + SO_USELOOPBACK = 0x40 + SO_WANTMORE = 0x4000 + SO_WANTOOBFLAG = 0x8000 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0x4 + TABDLY = 0xc04 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_CC = 0xb + TCPOPT_CCECHO = 0xd + TCPOPT_CCNEW = 0xc + TCPOPT_EOL = 0x0 + TCPOPT_FASTOPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_CONNECTIONTIMEOUT = 0x20 + TCP_CONNECTION_INFO = 0x106 + TCP_ENABLE_ECN = 0x104 + TCP_FASTOPEN = 0x105 + TCP_KEEPALIVE = 0x10 + TCP_KEEPCNT = 0x102 + TCP_KEEPINTVL = 0x101 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MINMSS = 0xd8 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_NOTSENT_LOWAT = 0x201 + TCP_RXT_CONNDROPTIME = 0x80 + TCP_RXT_FINDROP = 0x100 + TCP_SENDMOREACKS = 0x103 + TCSAFLUSH = 0x2 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x40107458 + TIOCDRAIN = 0x2000745e + TIOCDSIMICROCODE = 0x20007455 + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x40487413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGWINSZ = 0x40087468 + TIOCIXOFF = 0x20007480 + TIOCIXON = 0x20007481 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMODG = 0x40047403 + TIOCMODS = 0x80047404 + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTYGNAME = 0x40807453 + TIOCPTYGRANT = 0x20007454 + TIOCPTYUNLK = 0x20007452 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCONS = 0x20007463 + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x80487414 + TIOCSETAF = 0x80487416 + TIOCSETAW = 0x80487415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2000745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMADDR_CID_ANY = 0xffffffff + VMADDR_CID_HOST = 0x2 + VMADDR_CID_HYPERVISOR = 0x0 + VMADDR_CID_RESERVED = 0x1 + VMADDR_PORT_ANY = 0xffffffff + VMIN = 0x10 + VM_LOADAVG = 0x2 + VM_MACHFACTOR = 0x4 + VM_MAXID = 0x6 + VM_METER = 0x1 + VM_SWAPUSAGE = 0x5 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VT0 = 0x0 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x10 + WCOREFLAG = 0x80 + WEXITED = 0x4 + WNOHANG = 0x1 + WNOWAIT = 0x20 + WORDSIZE = 0x40 + WSTOPPED = 0x8 + WUNTRACED = 0x2 + XATTR_CREATE = 0x2 + XATTR_NODEFAULT = 0x10 + XATTR_NOFOLLOW = 0x1 + XATTR_NOSECURITY = 0x8 + XATTR_REPLACE = 0x4 + XATTR_SHOWCOMPRESSION = 0x20 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADARCH = syscall.Errno(0x56) + EBADEXEC = syscall.Errno(0x55) + EBADF = syscall.Errno(0x9) + EBADMACHO = syscall.Errno(0x58) + EBADMSG = syscall.Errno(0x5e) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x59) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDEVERR = syscall.Errno(0x53) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x5a) + EILSEQ = syscall.Errno(0x5c) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x6a) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5f) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x5d) + ENOBUFS = syscall.Errno(0x37) + ENODATA = syscall.Errno(0x60) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x61) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5b) + ENOPOLICY = syscall.Errno(0x67) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x62) + ENOSTR = syscall.Errno(0x63) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x68) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x66) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x69) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x64) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + EPWROFF = syscall.Errno(0x52) + EQFULL = syscall.Errno(0x6a) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHLIBVERS = syscall.Errno(0x57) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIME = syscall.Errno(0x65) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "ENOTSUP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EPWROFF", "device power is off"}, + {83, "EDEVERR", "device error"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "EBADEXEC", "bad executable (or shared library)"}, + {86, "EBADARCH", "bad CPU type in executable"}, + {87, "ESHLIBVERS", "shared library version mismatch"}, + {88, "EBADMACHO", "malformed Mach-o file"}, + {89, "ECANCELED", "operation canceled"}, + {90, "EIDRM", "identifier removed"}, + {91, "ENOMSG", "no message of desired type"}, + {92, "EILSEQ", "illegal byte sequence"}, + {93, "ENOATTR", "attribute not found"}, + {94, "EBADMSG", "bad message"}, + {95, "EMULTIHOP", "EMULTIHOP (Reserved)"}, + {96, "ENODATA", "no message available on STREAM"}, + {97, "ENOLINK", "ENOLINK (Reserved)"}, + {98, "ENOSR", "no STREAM resources"}, + {99, "ENOSTR", "not a STREAM"}, + {100, "EPROTO", "protocol error"}, + {101, "ETIME", "STREAM ioctl timeout"}, + {102, "EOPNOTSUPP", "operation not supported on socket"}, + {103, "ENOPOLICY", "policy not found"}, + {104, "ENOTRECOVERABLE", "state not recoverable"}, + {105, "EOWNERDEAD", "previous owner died"}, + {106, "EQFULL", "interface output queue is full"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGABRT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go new file mode 100644 index 0000000..17bba0e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go @@ -0,0 +1,1738 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && dragonfly +// +build amd64,dragonfly + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ATM = 0x1e + AF_BLUETOOTH = 0x21 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x23 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1c + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x22 + AF_NATM = 0x1d + AF_NETBIOS = 0x6 + AF_NETGRAPH = 0x20 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x18 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427d + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0104279 + BIOCGETIF = 0x4020426b + BIOCGFEEDBACK = 0x4004427c + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x2000427a + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044278 + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x8010427b + BIOCSFEEDBACK = 0x8004427d + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x8 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DEFAULTBUFSIZE = 0x1000 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MAX_CLONES = 0x80 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XOR = 0xa0 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x4 + CLOCK_MONOTONIC_FAST = 0xc + CLOCK_MONOTONIC_PRECISE = 0xb + CLOCK_PROCESS_CPUTIME_ID = 0xf + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_FAST = 0xa + CLOCK_REALTIME_PRECISE = 0x9 + CLOCK_SECOND = 0xd + CLOCK_THREAD_CPUTIME_ID = 0xe + CLOCK_UPTIME = 0x5 + CLOCK_UPTIME_FAST = 0x8 + CLOCK_UPTIME_PRECISE = 0x7 + CLOCK_VIRTUAL = 0x1 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_BREDR_BB = 0xff + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_BLUETOOTH_LE_LL = 0xfb + DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 + DLT_BLUETOOTH_LINUX_MONITOR = 0xfe + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_EPON = 0x103 + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HHDLC = 0x79 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_INFINIBAND = 0xf7 + DLT_IPFILTER = 0x74 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPMI_HPM_2 = 0x104 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x109 + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NETLINK = 0xfd + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PKTAP = 0x102 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PRISM_HEADER = 0x77 + DLT_PROFIBUS_DL = 0x101 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 + DLT_RIO = 0x7c + DLT_RTAC_SERIAL = 0xfa + DLT_SCCP = 0x8e + DLT_SCTP = 0xf8 + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USBPCAP = 0xf9 + DLT_USB_FREEBSD = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_WATTSTOPPER_DLM = 0x107 + DLT_WIHART = 0xdf + DLT_WIRESHARK_UPPER_PDU = 0xfc + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DBF = 0xf + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EXCEPT = -0x8 + EVFILT_FS = -0xa + EVFILT_MARKER = 0xf + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0xa + EVFILT_TIMER = -0x7 + EVFILT_USER = -0x9 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_HUP = 0x800 + EV_NODATA = 0x1000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTEXIT_LWP = 0x10000 + EXTEXIT_PROC = 0x0 + EXTEXIT_SETINT = 0x1 + EXTEXIT_SIMPLE = 0x0 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUP2FD = 0xa + F_DUP2FD_CLOEXEC = 0x12 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x11 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x318e72 + IFF_DEBUG = 0x4 + IFF_IDIRECT = 0x200000 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MONITOR = 0x40000 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NPOLLING = 0x100000 + IFF_OACTIVE = 0x400 + IFF_OACTIVE_COMPAT = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_POLLING = 0x10000 + IFF_POLLING_COMPAT = 0x10000 + IFF_PPROMISC = 0x20000 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_SMART = 0x20 + IFF_STATICARP = 0x80000 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf8 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf1 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_STF = 0xf3 + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VOICEEM = 0x64 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_MASK = 0xfffffffe + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CARP = 0x70 + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0xfe + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MEAS = 0x13 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MOBILE = 0x37 + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SDRP = 0x2a + IPPROTO_SEP = 0x21 + IPPROTO_SKIP = 0x39 + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TLSP = 0x38 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_UNKNOWN = 0x102 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDV6ONLY = 0x1b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHLIM = 0x28 + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PKTOPTIONS = 0x34 + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FW_ADD = 0x32 + IP_FW_DEL = 0x33 + IP_FW_FLUSH = 0x34 + IP_FW_GET = 0x36 + IP_FW_RESETLOG = 0x37 + IP_FW_TBL_ADD = 0x2a + IP_FW_TBL_CREATE = 0x28 + IP_FW_TBL_DEL = 0x2b + IP_FW_TBL_DESTROY = 0x29 + IP_FW_TBL_EXPIRE = 0x2f + IP_FW_TBL_FLUSH = 0x2c + IP_FW_TBL_GET = 0x2d + IP_FW_TBL_ZERO = 0x2e + IP_FW_X = 0x31 + IP_FW_ZERO = 0x35 + IP_HDRINCL = 0x2 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINTTL = 0x42 + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x41 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_AUTOSYNC = 0x7 + MADV_CONTROL_END = 0xb + MADV_CONTROL_START = 0xa + MADV_CORE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_INVAL = 0xa + MADV_NOCORE = 0x8 + MADV_NORMAL = 0x0 + MADV_NOSYNC = 0x6 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SETMAP = 0xb + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_INHERIT = 0x80 + MAP_NOCORE = 0x20000 + MAP_NOEXTEND = 0x100 + MAP_NORESERVE = 0x40 + MAP_NOSYNC = 0x800 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_SHARED = 0x1 + MAP_SIZEALIGN = 0x40000 + MAP_STACK = 0x400 + MAP_TRYFIXED = 0x10000 + MAP_VPAGETABLE = 0x2000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x20 + MNT_CMDFLAGS = 0xf0000 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_EXKERB = 0x800 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x20000000 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_IGNORE = 0x800000 + MNT_LAZY = 0x4 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x10000000 + MNT_NOCLUSTERR = 0x40000000 + MNT_NOCLUSTERW = 0x80000000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOSYMFOLLOW = 0x400000 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x200000 + MNT_SUIDDIR = 0x100000 + MNT_SYNCHRONOUS = 0x2 + MNT_TRIM = 0x1000000 + MNT_UPDATE = 0x10000 + MNT_USER = 0x8000 + MNT_VISFLAGMASK = 0xf1f0ffff + MNT_WAIT = 0x1 + MSG_CMSG_CLOEXEC = 0x1000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_FBLOCKING = 0x10000 + MSG_FMASK = 0xffff0000 + MSG_FNONBLOCKING = 0x20000 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_SYNC = 0x800 + MSG_TRUNC = 0x10 + MSG_UNUSED09 = 0x200 + MSG_WAITALL = 0x40 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x0 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_MAXID = 0x4 + NFDBITS = 0x40 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x2 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x20000 + O_CREAT = 0x200 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x8000000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FAPPEND = 0x100000 + O_FASYNCWRITE = 0x800000 + O_FBLOCKING = 0x40000 + O_FMASK = 0xfc0000 + O_FNONBLOCKING = 0x80000 + O_FOFFSET = 0x200000 + O_FSYNC = 0x80 + O_FSYNCWRITE = 0x400000 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0xb + RTAX_MPLS1 = 0x8 + RTAX_MPLS2 = 0x9 + RTAX_MPLS3 = 0xa + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_MPLS1 = 0x100 + RTA_MPLS2 = 0x200 + RTA_MPLS3 = 0x400 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPLSOPS = 0x1000000 + RTF_MULTICAST = 0x800000 + RTF_PINNED = 0x100000 + RTF_PRCLONING = 0x10000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_WASCLONED = 0x20000 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x12 + RTM_IFANNOUNCE = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x7 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_IWCAPSEGS = 0x400 + RTV_IWMAXSEGS = 0x200 + RTV_MSL = 0x100 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x3 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCALIFADDR = 0x8118691b + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPHYADDR = 0x80206949 + SIOCDLIFADDR = 0x8118691d + SIOCGDRVSPEC = 0xc028697b + SIOCGETSGCNT = 0xc0207210 + SIOCGETVIFCNT = 0xc028720f + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = 0xc0206921 + SIOCGIFALIAS = 0xc0406929 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020691f + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0xc0206926 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFINDEX = 0xc0206920 + SIOCGIFMEDIA = 0xc0306938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206948 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPOLLCPU = 0xc020697e + SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFSTATUS = 0xc331693b + SIOCGIFTSOLEN = 0xc0206980 + SIOCGLIFADDR = 0xc118691c + SIOCGLIFPHYADDR = 0xc118694b + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGPRIVATE_0 = 0xc0206950 + SIOCGPRIVATE_1 = 0xc0206951 + SIOCIFCREATE = 0xc020697a + SIOCIFCREATE2 = 0xc020697c + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSDRVSPEC = 0x8028697b + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020691e + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNAME = 0x80206928 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSIFPHYS = 0x80206936 + SIOCSIFPOLLCPU = 0x8020697d + SIOCSIFTSOLEN = 0x8020697f + SIOCSLIFPHYADDR = 0x8118694a + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_NONBLOCK = 0x20000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BROADCAST = 0x20 + SO_CPUHINT = 0x1030 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NOSIGPIPE = 0x800 + SO_OOBINLINE = 0x100 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RERROR = 0x2000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDSPACE = 0x100a + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDB = 0x9000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB3 = 0x4 + TABDLY = 0x4 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCP_FASTKEEP = 0x80 + TCP_KEEPCNT = 0x400 + TCP_KEEPIDLE = 0x100 + TCP_KEEPINIT = 0x20 + TCP_KEEPINTVL = 0x200 + TCP_MAXBURST = 0x4 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MINMSS = 0x100 + TCP_MIN_WINSHIFT = 0x5 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_SIGNATURE_ENABLE = 0x10 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x40107458 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGWINSZ = 0x40087468 + TIOCISPTMASTER = 0x20007455 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMODG = 0x40047403 + TIOCMODS = 0x80047404 + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2000745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VCHECKPT = 0x13 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VERASE2 = 0x7 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_BCACHE_SIZE_MAX = 0x0 + VM_SWZONE_SIZE_MAX = 0x4000000000 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x4 + WCOREFLAG = 0x80 + WEXITED = 0x10 + WLINUXCLONE = 0x80000000 + WNOHANG = 0x1 + WNOWAIT = 0x8 + WSTOPPED = 0x2 + WTRAPPED = 0x20 + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EASYNC = syscall.Errno(0x63) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x59) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x55) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDOOFUS = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x56) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x63) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5a) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x57) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5b) + ENOMEDIUM = syscall.Errno(0x5d) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5c) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCKPT = syscall.Signal(0x21) + SIGCKPTEXIT = syscall.Signal(0x22) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EWOULDBLOCK", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "ECANCELED", "operation canceled"}, + {86, "EILSEQ", "illegal byte sequence"}, + {87, "ENOATTR", "attribute not found"}, + {88, "EDOOFUS", "programming error"}, + {89, "EBADMSG", "bad message"}, + {90, "EMULTIHOP", "multihop attempted"}, + {91, "ENOLINK", "link has been severed"}, + {92, "EPROTO", "protocol error"}, + {93, "ENOMEDIUM", "no medium found"}, + {99, "EASYNC", "unknown error: 99"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread Scheduler"}, + {33, "SIGCKPT", "checkPoint"}, + {34, "SIGCKPTEXIT", "checkPointExit"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go new file mode 100644 index 0000000..f8c2c51 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go @@ -0,0 +1,2043 @@ +// mkerrors.sh -m32 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && freebsd +// +build 386,freebsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m32 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x23 + AF_ATM = 0x1e + AF_BLUETOOTH = 0x24 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1c + AF_INET6_SDP = 0x2a + AF_INET_SDP = 0x28 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x2a + AF_NATM = 0x1d + AF_NETBIOS = 0x6 + AF_NETGRAPH = 0x20 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SCLUSTER = 0x22 + AF_SIP = 0x18 + AF_SLOW = 0x21 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VENDOR00 = 0x27 + AF_VENDOR01 = 0x29 + AF_VENDOR02 = 0x2b + AF_VENDOR03 = 0x2d + AF_VENDOR04 = 0x2f + AF_VENDOR05 = 0x31 + AF_VENDOR06 = 0x33 + AF_VENDOR07 = 0x35 + AF_VENDOR08 = 0x37 + AF_VENDOR09 = 0x39 + AF_VENDOR10 = 0x3b + AF_VENDOR11 = 0x3d + AF_VENDOR12 = 0x3f + AF_VENDOR13 = 0x41 + AF_VENDOR14 = 0x43 + AF_VENDOR15 = 0x45 + AF_VENDOR16 = 0x47 + AF_VENDOR17 = 0x49 + AF_VENDOR18 = 0x4b + AF_VENDOR19 = 0x4d + AF_VENDOR20 = 0x4f + AF_VENDOR21 = 0x51 + AF_VENDOR22 = 0x53 + AF_VENDOR23 = 0x55 + AF_VENDOR24 = 0x57 + AF_VENDOR25 = 0x59 + AF_VENDOR26 = 0x5b + AF_VENDOR27 = 0x5d + AF_VENDOR28 = 0x5f + AF_VENDOR29 = 0x61 + AF_VENDOR30 = 0x63 + AF_VENDOR31 = 0x65 + AF_VENDOR32 = 0x67 + AF_VENDOR33 = 0x69 + AF_VENDOR34 = 0x6b + AF_VENDOR35 = 0x6d + AF_VENDOR36 = 0x6f + AF_VENDOR37 = 0x71 + AF_VENDOR38 = 0x73 + AF_VENDOR39 = 0x75 + AF_VENDOR40 = 0x77 + AF_VENDOR41 = 0x79 + AF_VENDOR42 = 0x7b + AF_VENDOR43 = 0x7d + AF_VENDOR44 = 0x7f + AF_VENDOR45 = 0x81 + AF_VENDOR46 = 0x83 + AF_VENDOR47 = 0x85 + ALTWERASE = 0x200 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427c + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRECTION = 0x40044276 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0084279 + BIOCGETBUFMODE = 0x4004427d + BIOCGETIF = 0x4020426b + BIOCGETZMAX = 0x4004427f + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4008426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCGTSTAMP = 0x40044283 + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x2000427a + BIOCPROMISC = 0x20004269 + BIOCROTZBUF = 0x400c4280 + BIOCSBLEN = 0xc0044266 + BIOCSDIRECTION = 0x80044277 + BIOCSDLT = 0x80044278 + BIOCSETBUFMODE = 0x8004427e + BIOCSETF = 0x80084267 + BIOCSETFNR = 0x80084282 + BIOCSETIF = 0x8020426c + BIOCSETVLANPCP = 0x80044285 + BIOCSETWF = 0x8008427b + BIOCSETZBUF = 0x800c4281 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8008426d + BIOCSSEESENT = 0x80044277 + BIOCSTSTAMP = 0x80044284 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_BUFMODE_BUFFER = 0x1 + BPF_BUFMODE_ZBUF = 0x2 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_T_BINTIME = 0x2 + BPF_T_BINTIME_FAST = 0x102 + BPF_T_BINTIME_MONOTONIC = 0x202 + BPF_T_BINTIME_MONOTONIC_FAST = 0x302 + BPF_T_FAST = 0x100 + BPF_T_FLAG_MASK = 0x300 + BPF_T_FORMAT_MASK = 0x3 + BPF_T_MICROTIME = 0x0 + BPF_T_MICROTIME_FAST = 0x100 + BPF_T_MICROTIME_MONOTONIC = 0x200 + BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 + BPF_T_MONOTONIC = 0x200 + BPF_T_MONOTONIC_FAST = 0x300 + BPF_T_NANOTIME = 0x1 + BPF_T_NANOTIME_FAST = 0x101 + BPF_T_NANOTIME_MONOTONIC = 0x201 + BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 + BPF_T_NONE = 0x3 + BPF_T_NORMAL = 0x0 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XOR = 0xa0 + BRKINT = 0x2 + CAP_ACCEPT = 0x200000020000000 + CAP_ACL_CHECK = 0x400000000010000 + CAP_ACL_DELETE = 0x400000000020000 + CAP_ACL_GET = 0x400000000040000 + CAP_ACL_SET = 0x400000000080000 + CAP_ALL0 = 0x20007ffffffffff + CAP_ALL1 = 0x4000000001fffff + CAP_BIND = 0x200000040000000 + CAP_BINDAT = 0x200008000000400 + CAP_CHFLAGSAT = 0x200000000001400 + CAP_CONNECT = 0x200000080000000 + CAP_CONNECTAT = 0x200010000000400 + CAP_CREATE = 0x200000000000040 + CAP_EVENT = 0x400000000000020 + CAP_EXTATTR_DELETE = 0x400000000001000 + CAP_EXTATTR_GET = 0x400000000002000 + CAP_EXTATTR_LIST = 0x400000000004000 + CAP_EXTATTR_SET = 0x400000000008000 + CAP_FCHDIR = 0x200000000000800 + CAP_FCHFLAGS = 0x200000000001000 + CAP_FCHMOD = 0x200000000002000 + CAP_FCHMODAT = 0x200000000002400 + CAP_FCHOWN = 0x200000000004000 + CAP_FCHOWNAT = 0x200000000004400 + CAP_FCNTL = 0x200000000008000 + CAP_FCNTL_ALL = 0x78 + CAP_FCNTL_GETFL = 0x8 + CAP_FCNTL_GETOWN = 0x20 + CAP_FCNTL_SETFL = 0x10 + CAP_FCNTL_SETOWN = 0x40 + CAP_FEXECVE = 0x200000000000080 + CAP_FLOCK = 0x200000000010000 + CAP_FPATHCONF = 0x200000000020000 + CAP_FSCK = 0x200000000040000 + CAP_FSTAT = 0x200000000080000 + CAP_FSTATAT = 0x200000000080400 + CAP_FSTATFS = 0x200000000100000 + CAP_FSYNC = 0x200000000000100 + CAP_FTRUNCATE = 0x200000000000200 + CAP_FUTIMES = 0x200000000200000 + CAP_FUTIMESAT = 0x200000000200400 + CAP_GETPEERNAME = 0x200000100000000 + CAP_GETSOCKNAME = 0x200000200000000 + CAP_GETSOCKOPT = 0x200000400000000 + CAP_IOCTL = 0x400000000000080 + CAP_IOCTLS_ALL = 0x7fffffff + CAP_KQUEUE = 0x400000000100040 + CAP_KQUEUE_CHANGE = 0x400000000100000 + CAP_KQUEUE_EVENT = 0x400000000000040 + CAP_LINKAT_SOURCE = 0x200020000000400 + CAP_LINKAT_TARGET = 0x200000000400400 + CAP_LISTEN = 0x200000800000000 + CAP_LOOKUP = 0x200000000000400 + CAP_MAC_GET = 0x400000000000001 + CAP_MAC_SET = 0x400000000000002 + CAP_MKDIRAT = 0x200000000800400 + CAP_MKFIFOAT = 0x200000001000400 + CAP_MKNODAT = 0x200000002000400 + CAP_MMAP = 0x200000000000010 + CAP_MMAP_R = 0x20000000000001d + CAP_MMAP_RW = 0x20000000000001f + CAP_MMAP_RWX = 0x20000000000003f + CAP_MMAP_RX = 0x20000000000003d + CAP_MMAP_W = 0x20000000000001e + CAP_MMAP_WX = 0x20000000000003e + CAP_MMAP_X = 0x20000000000003c + CAP_PDGETPID = 0x400000000000200 + CAP_PDKILL = 0x400000000000800 + CAP_PDWAIT = 0x400000000000400 + CAP_PEELOFF = 0x200001000000000 + CAP_POLL_EVENT = 0x400000000000020 + CAP_PREAD = 0x20000000000000d + CAP_PWRITE = 0x20000000000000e + CAP_READ = 0x200000000000001 + CAP_RECV = 0x200000000000001 + CAP_RENAMEAT_SOURCE = 0x200000004000400 + CAP_RENAMEAT_TARGET = 0x200040000000400 + CAP_RIGHTS_VERSION = 0x0 + CAP_RIGHTS_VERSION_00 = 0x0 + CAP_SEEK = 0x20000000000000c + CAP_SEEK_TELL = 0x200000000000004 + CAP_SEM_GETVALUE = 0x400000000000004 + CAP_SEM_POST = 0x400000000000008 + CAP_SEM_WAIT = 0x400000000000010 + CAP_SEND = 0x200000000000002 + CAP_SETSOCKOPT = 0x200002000000000 + CAP_SHUTDOWN = 0x200004000000000 + CAP_SOCK_CLIENT = 0x200007780000003 + CAP_SOCK_SERVER = 0x200007f60000003 + CAP_SYMLINKAT = 0x200000008000400 + CAP_TTYHOOK = 0x400000000000100 + CAP_UNLINKAT = 0x200000010000400 + CAP_UNUSED0_44 = 0x200080000000000 + CAP_UNUSED0_57 = 0x300000000000000 + CAP_UNUSED1_22 = 0x400000000200000 + CAP_UNUSED1_57 = 0x500000000000000 + CAP_WRITE = 0x200000000000002 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x4 + CLOCK_MONOTONIC_FAST = 0xc + CLOCK_MONOTONIC_PRECISE = 0xb + CLOCK_PROCESS_CPUTIME_ID = 0xf + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_FAST = 0xa + CLOCK_REALTIME_PRECISE = 0x9 + CLOCK_SECOND = 0xd + CLOCK_THREAD_CPUTIME_ID = 0xe + CLOCK_UPTIME = 0x5 + CLOCK_UPTIME_FAST = 0x8 + CLOCK_UPTIME_PRECISE = 0x7 + CLOCK_VIRTUAL = 0x1 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0x18 + CTL_NET = 0x4 + DIOCGATTR = 0xc144648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x804c6490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc06c648f + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_BREDR_BB = 0xff + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_BLUETOOTH_LE_LL = 0xfb + DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 + DLT_BLUETOOTH_LINUX_MONITOR = 0xfe + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 + DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_EPON = 0x103 + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_INFINIBAND = 0xf7 + DLT_IPFILTER = 0x74 + DLT_IPMB_KONTRON = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPMI_HPM_2 = 0x104 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LINUX_SLL2 = 0x114 + DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x114 + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NETLINK = 0xfd + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x79 + DLT_PKTAP = 0x102 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PROFIBUS_DL = 0x101 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 + DLT_RIO = 0x7c + DLT_RTAC_SERIAL = 0xfa + DLT_SCCP = 0x8e + DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 + DLT_WIHART = 0xdf + DLT_WIRESHARK_UPPER_PDU = 0xfc + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd + EVFILT_FS = -0x9 + EVFILT_LIO = -0xa + EVFILT_PROC = -0x5 + EVFILT_PROCDESC = -0x8 + EVFILT_READ = -0x1 + EVFILT_SENDFILE = -0xc + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0xd + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xb + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DROP = 0x1000 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_FLAG2 = 0x4000 + EV_FORCEONESHOT = 0x100 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff + EXTATTR_NAMESPACE_EMPTY = 0x0 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_CANCEL = 0x5 + F_DUP2FD = 0xa + F_DUP2FD_CLOEXEC = 0x12 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x11 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xb + F_GETOWN = 0x5 + F_OGETLK = 0x7 + F_OK = 0x0 + F_OSETLK = 0x8 + F_OSETLKW = 0x9 + F_RDAHEAD = 0x10 + F_RDLCK = 0x1 + F_READAHEAD = 0xf + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0xc + F_SETLKW = 0xd + F_SETLK_REMOTE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_UNLCKSYS = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x218f52 + IFF_CANTCONFIG = 0x10000 + IFF_DEBUG = 0x4 + IFF_DRV_OACTIVE = 0x400 + IFF_DRV_RUNNING = 0x40 + IFF_DYING = 0x200000 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MONITOR = 0x40000 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PPROMISC = 0x20000 + IFF_PROMISC = 0x100 + IFF_RENAMING = 0x400000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x80000 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_IEEE1394 = 0x90 + IFT_INFINIBAND = 0xc7 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_PPP = 0x17 + IFT_PROPVIRTUAL = 0x35 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_MASK = 0xfffffffe + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CARP = 0x70 + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DCCP = 0x21 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HIP = 0x8b + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MEAS = 0x13 + IPPROTO_MH = 0x87 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OLD_DIVERT = 0xfe + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_RESERVED_253 = 0xfd + IPPROTO_RESERVED_254 = 0xfe + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEND = 0x103 + IPPROTO_SHIM6 = 0x8c + IPPROTO_SKIP = 0x39 + IPPROTO_SPACER = 0x7fff + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TLSP = 0x38 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDANY = 0x40 + IPV6_BINDMULTI = 0x41 + IPV6_BINDV6ONLY = 0x1b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FLOWID = 0x43 + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOWTYPE = 0x44 + IPV6_FRAGTTL = 0x78 + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVFLOWID = 0x46 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRSSBUCKETID = 0x47 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RSSBUCKETID = 0x45 + IPV6_RSS_LISTEN_BUCKET = 0x42 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IPV6_VLAN_PCP = 0x4b + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BINDANY = 0x18 + IP_BINDMULTI = 0x19 + IP_BLOCK_SOURCE = 0x48 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x43 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET3 = 0x31 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FLOWID = 0x5a + IP_FLOWTYPE = 0x5b + IP_FW3 = 0x30 + IP_FW_ADD = 0x32 + IP_FW_DEL = 0x33 + IP_FW_FLUSH = 0x34 + IP_FW_GET = 0x36 + IP_FW_NAT_CFG = 0x38 + IP_FW_NAT_DEL = 0x39 + IP_FW_NAT_GET_CONFIG = 0x3a + IP_FW_NAT_GET_LOG = 0x3b + IP_FW_RESETLOG = 0x37 + IP_FW_TABLE_ADD = 0x28 + IP_FW_TABLE_DEL = 0x29 + IP_FW_TABLE_FLUSH = 0x2a + IP_FW_TABLE_GETSIZE = 0x2b + IP_FW_TABLE_LIST = 0x2c + IP_FW_ZERO = 0x35 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MINTTL = 0x42 + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_OFFMASK = 0x1fff + IP_ONESBCAST = 0x17 + IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVFLOWID = 0x5d + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b + IP_RECVRETOPTS = 0x6 + IP_RECVRSSBUCKETID = 0x5e + IP_RECVTOS = 0x44 + IP_RECVTTL = 0x41 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSSBUCKETID = 0x5c + IP_RSS_LISTEN_BUCKET = 0x1a + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + IP_VLAN_PCP = 0x4b + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_CONNWAIT = 0x4 + LOCAL_CREDS = 0x2 + LOCAL_PEERCRED = 0x1 + LOCAL_VENDOR = 0x80000000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_AUTOSYNC = 0x7 + MADV_CORE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_NOCORE = 0x8 + MADV_NORMAL = 0x0 + MADV_NOSYNC = 0x6 + MADV_PROTECT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MAP_ALIGNED_SUPER = 0x1000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_EXCL = 0x4000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 + MAP_HASSEMAPHORE = 0x200 + MAP_NOCORE = 0x20000 + MAP_NOSYNC = 0x800 + MAP_PREFAULT_READ = 0x40000 + MAP_PRIVATE = 0x2 + MAP_RESERVED0020 = 0x20 + MAP_RESERVED0040 = 0x40 + MAP_RESERVED0080 = 0x80 + MAP_RESERVED0100 = 0x100 + MAP_SHARED = 0x1 + MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ACLS = 0x8000000 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x200000000 + MNT_BYFSID = 0x8000000 + MNT_CMDFLAGS = 0xd0f0000 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_EXKERB = 0x800 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x20000000 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_GJOURNAL = 0x2000000 + MNT_IGNORE = 0x800000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NFS4ACLS = 0x10 + MNT_NOATIME = 0x10000000 + MNT_NOCLUSTERR = 0x40000000 + MNT_NOCLUSTERW = 0x80000000 + MNT_NOEXEC = 0x4 + MNT_NONBUSY = 0x4000000 + MNT_NOSUID = 0x8 + MNT_NOSYMFOLLOW = 0x400000 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x1000000 + MNT_SOFTDEP = 0x200000 + MNT_SUIDDIR = 0x100000 + MNT_SUJ = 0x100000000 + MNT_SUSPEND = 0x4 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 + MNT_UPDATE = 0x10000 + MNT_UPDATEMASK = 0xad8d0807e + MNT_USER = 0x8000 + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff + MNT_WAIT = 0x1 + MSG_CMSG_CLOEXEC = 0x40000 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_NBIO = 0x4000 + MSG_NOSIGNAL = 0x20000 + MSG_NOTIFICATION = 0x2000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x80000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x0 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFLISTL = 0x5 + NET_RT_IFMALIST = 0x4 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_CLOSE = 0x100 + NOTE_CLOSE_WRITE = 0x200 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FILE_POLL = 0x2 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MSECONDS = 0x2 + NOTE_NSECONDS = 0x8 + NOTE_OPEN = 0x80 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_READ = 0x400 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x4 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x100000 + O_CREAT = 0x200 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x20000 + O_EXCL = 0x800 + O_EXEC = 0x40000 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RESOLVE_BENEATH = 0x800000 + O_SEARCH = 0x40000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_TTY_INIT = 0x80000 + O_VERIFY = 0x200000 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PIOD_READ_D = 0x1 + PIOD_READ_I = 0x3 + PIOD_WRITE_D = 0x2 + PIOD_WRITE_I = 0x4 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PTRACE_DEFAULT = 0x1 + PTRACE_EXEC = 0x1 + PTRACE_FORK = 0x8 + PTRACE_LWP = 0x10 + PTRACE_SCE = 0x2 + PTRACE_SCX = 0x4 + PTRACE_SYSCALL = 0x6 + PTRACE_VFORK = 0x20 + PT_ATTACH = 0xa + PT_CLEARSTEP = 0x10 + PT_CONTINUE = 0x7 + PT_DETACH = 0xb + PT_FIRSTMACH = 0x40 + PT_FOLLOW_FORK = 0x17 + PT_GETDBREGS = 0x25 + PT_GETFPREGS = 0x23 + PT_GETFSBASE = 0x47 + PT_GETGSBASE = 0x49 + PT_GETLWPLIST = 0xf + PT_GETNUMLWPS = 0xe + PT_GETREGS = 0x21 + PT_GETXMMREGS = 0x40 + PT_GETXSTATE = 0x45 + PT_GETXSTATE_INFO = 0x44 + PT_GET_EVENT_MASK = 0x19 + PT_GET_SC_ARGS = 0x1b + PT_GET_SC_RET = 0x1c + PT_IO = 0xc + PT_KILL = 0x8 + PT_LWPINFO = 0xd + PT_LWP_EVENTS = 0x18 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_RESUME = 0x13 + PT_SETDBREGS = 0x26 + PT_SETFPREGS = 0x24 + PT_SETFSBASE = 0x48 + PT_SETGSBASE = 0x4a + PT_SETREGS = 0x22 + PT_SETSTEP = 0x11 + PT_SETXMMREGS = 0x41 + PT_SETXSTATE = 0x46 + PT_SET_EVENT_MASK = 0x1a + PT_STEP = 0x9 + PT_SUSPEND = 0x12 + PT_SYSCALL = 0x16 + PT_TO_SCE = 0x14 + PT_TO_SCX = 0x15 + PT_TRACE_ME = 0x0 + PT_VM_ENTRY = 0x29 + PT_VM_TIMESTAMP = 0x28 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + P_ZONEID = 0xc + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FIXEDMTU = 0x80000 + RTF_FMASK = 0x1004d808 + RTF_GATEWAY = 0x2 + RTF_GWFLAG_COMPAT = 0x80000000 + RTF_HOST = 0x4 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_RNH_LOCKED = 0x40000000 + RTF_STATIC = 0x800 + RTF_STICKY = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x12 + RTM_IFANNOUNCE = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RTV_WEIGHT = 0x100 + RT_ALL_FIBS = -0x1 + RT_BLACKHOLE = 0x40 + RT_DEFAULT_FIB = 0x0 + RT_HAS_GW = 0x80 + RT_HAS_HEADER = 0x10 + RT_HAS_HEADER_BIT = 0x4 + RT_L2_ME = 0x4 + RT_L2_ME_BIT = 0x2 + RT_LLE_CACHE = 0x100 + RT_MAY_LOOP = 0x8 + RT_MAY_LOOP_BIT = 0x3 + RT_REJECT = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_BINTIME = 0x4 + SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 + SEEK_CUR = 0x1 + SEEK_DATA = 0x3 + SEEK_END = 0x2 + SEEK_HOLE = 0x4 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80246987 + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80246989 + SIOCDIFPHYADDR = 0x80206949 + SIOCGDRVSPEC = 0xc01c697b + SIOCGETSGCNT = 0xc0147210 + SIOCGETVIFCNT = 0xc014720f + SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e + SIOCGI2C = 0xc020693d + SIOCGIFADDR = 0xc0206921 + SIOCGIFALIAS = 0xc044692d + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020691f + SIOCGIFCONF = 0xc0086924 + SIOCGIFDESCR = 0xc020692a + SIOCGIFDOWNREASON = 0xc058699a + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFIB = 0xc020695c + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGMEMB = 0xc024698a + SIOCGIFGROUP = 0xc0246988 + SIOCGIFINDEX = 0xc0206920 + SIOCGIFMAC = 0xc0206926 + SIOCGIFMEDIA = 0xc0286938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206948 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 + SIOCGIFSTATUS = 0xc331693b + SIOCGIFXMEDIA = 0xc028698b + SIOCGLANPCP = 0xc0206998 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGPRIVATE_0 = 0xc0206950 + SIOCGPRIVATE_1 = 0xc0206951 + SIOCGTUNFIB = 0xc020695e + SIOCIFCREATE = 0xc020697a + SIOCIFCREATE2 = 0xc020697c + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc00c6978 + SIOCSDRVSPEC = 0x801c697b + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020691e + SIOCSIFDESCR = 0x80206929 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFIB = 0x8020695d + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206927 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNAME = 0x80206928 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSIFPHYS = 0x80206936 + SIOCSIFRVNET = 0xc020695b + SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSTUNFIB = 0x8020695f + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_NONBLOCK = 0x20000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BINTIME = 0x2000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1009 + SO_LINGER = 0x80 + SO_LISTENINCQLEN = 0x1013 + SO_LISTENQLEN = 0x1012 + SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 + SO_NOSIGPIPE = 0x800 + SO_NO_DDP = 0x8000 + SO_NO_OFFLOAD = 0x4000 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1010 + SO_PROTOCOL = 0x1016 + SO_PROTOTYPE = 0x1016 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RERROR = 0x20000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 + SO_SETFIB = 0x1014 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USER_COOKIE = 0x1015 + SO_VENDOR = 0x80000000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB3 = 0x4 + TABDLY = 0x4 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_FAST_OPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_PAD = 0x0 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_WINDOW = 0x3 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_ALGORITHM = 0x43b + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_EXTRA_STATE = 0x453 + TCP_BBR_FLOOR_MIN_TSO = 0x454 + TCP_BBR_HDWR_PACE = 0x451 + TCP_BBR_HOLD_TARGET = 0x436 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_MIN_TOPACEOUT = 0x455 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_OH = 0x435 + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_POLICER_DETECT = 0x457 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_SEND_IWND_IN_TSO = 0x44f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_TMR_PACE_OH = 0x448 + TCP_BBR_TSLIMITS = 0x434 + TCP_BBR_TSTMP_RAISES = 0x456 + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 + TCP_BBR_USE_RACK_CHEAT = 0x450 + TCP_BBR_UTTER_MAX_TSO = 0x452 + TCP_CA_NAME_MAX = 0x10 + TCP_CCALGOOPT = 0x41 + TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 + TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 + TCP_FUNCTION_BLK = 0x2000 + TCP_FUNCTION_NAME_LEN_MAX = 0x20 + TCP_INFO = 0x20 + TCP_KEEPCNT = 0x400 + TCP_KEEPIDLE = 0x100 + TCP_KEEPINIT = 0x80 + TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 + TCP_MAXBURST = 0x4 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_PCAP_IN = 0x1000 + TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_GP_INCREASE = 0x446 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 + TCP_VENDOR = 0x80000000 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGPTN = 0x4004740f + TIOCGSID = 0x40047463 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DCD = 0x40 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMASTER = 0x2000741c + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40087459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VERASE2 = 0x7 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_BCACHE_SIZE_MAX = 0x70e0000 + VM_SWZONE_SIZE_MAX = 0x2280000 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x4 + WCOREFLAG = 0x80 + WEXITED = 0x10 + WLINUXCLONE = 0x80000000 + WNOHANG = 0x1 + WNOWAIT = 0x8 + WSTOPPED = 0x2 + WTRAPPED = 0x20 + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x59) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x55) + ECAPMODE = syscall.Errno(0x5e) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDOOFUS = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x56) + EINPROGRESS = syscall.Errno(0x24) + EINTEGRITY = syscall.Errno(0x61) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x61) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5a) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x57) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5b) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCAPABLE = syscall.Errno(0x5d) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5f) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x60) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5c) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGLIBRT = syscall.Signal(0x21) + SIGLWP = syscall.Signal(0x20) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EWOULDBLOCK", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "ECANCELED", "operation canceled"}, + {86, "EILSEQ", "illegal byte sequence"}, + {87, "ENOATTR", "attribute not found"}, + {88, "EDOOFUS", "programming error"}, + {89, "EBADMSG", "bad message"}, + {90, "EMULTIHOP", "multihop attempted"}, + {91, "ENOLINK", "link has been severed"}, + {92, "EPROTO", "protocol error"}, + {93, "ENOTCAPABLE", "capabilities insufficient"}, + {94, "ECAPMODE", "not permitted in capability mode"}, + {95, "ENOTRECOVERABLE", "state not recoverable"}, + {96, "EOWNERDEAD", "previous owner died"}, + {97, "EINTEGRITY", "integrity check failed"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "unknown signal"}, + {33, "SIGLIBRT", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go new file mode 100644 index 0000000..96310c3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go @@ -0,0 +1,2040 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && freebsd +// +build amd64,freebsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x23 + AF_ATM = 0x1e + AF_BLUETOOTH = 0x24 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1c + AF_INET6_SDP = 0x2a + AF_INET_SDP = 0x28 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x2a + AF_NATM = 0x1d + AF_NETBIOS = 0x6 + AF_NETGRAPH = 0x20 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SCLUSTER = 0x22 + AF_SIP = 0x18 + AF_SLOW = 0x21 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VENDOR00 = 0x27 + AF_VENDOR01 = 0x29 + AF_VENDOR02 = 0x2b + AF_VENDOR03 = 0x2d + AF_VENDOR04 = 0x2f + AF_VENDOR05 = 0x31 + AF_VENDOR06 = 0x33 + AF_VENDOR07 = 0x35 + AF_VENDOR08 = 0x37 + AF_VENDOR09 = 0x39 + AF_VENDOR10 = 0x3b + AF_VENDOR11 = 0x3d + AF_VENDOR12 = 0x3f + AF_VENDOR13 = 0x41 + AF_VENDOR14 = 0x43 + AF_VENDOR15 = 0x45 + AF_VENDOR16 = 0x47 + AF_VENDOR17 = 0x49 + AF_VENDOR18 = 0x4b + AF_VENDOR19 = 0x4d + AF_VENDOR20 = 0x4f + AF_VENDOR21 = 0x51 + AF_VENDOR22 = 0x53 + AF_VENDOR23 = 0x55 + AF_VENDOR24 = 0x57 + AF_VENDOR25 = 0x59 + AF_VENDOR26 = 0x5b + AF_VENDOR27 = 0x5d + AF_VENDOR28 = 0x5f + AF_VENDOR29 = 0x61 + AF_VENDOR30 = 0x63 + AF_VENDOR31 = 0x65 + AF_VENDOR32 = 0x67 + AF_VENDOR33 = 0x69 + AF_VENDOR34 = 0x6b + AF_VENDOR35 = 0x6d + AF_VENDOR36 = 0x6f + AF_VENDOR37 = 0x71 + AF_VENDOR38 = 0x73 + AF_VENDOR39 = 0x75 + AF_VENDOR40 = 0x77 + AF_VENDOR41 = 0x79 + AF_VENDOR42 = 0x7b + AF_VENDOR43 = 0x7d + AF_VENDOR44 = 0x7f + AF_VENDOR45 = 0x81 + AF_VENDOR46 = 0x83 + AF_VENDOR47 = 0x85 + ALTWERASE = 0x200 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427c + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRECTION = 0x40044276 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0104279 + BIOCGETBUFMODE = 0x4004427d + BIOCGETIF = 0x4020426b + BIOCGETZMAX = 0x4008427f + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCGTSTAMP = 0x40044283 + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x2000427a + BIOCPROMISC = 0x20004269 + BIOCROTZBUF = 0x40184280 + BIOCSBLEN = 0xc0044266 + BIOCSDIRECTION = 0x80044277 + BIOCSDLT = 0x80044278 + BIOCSETBUFMODE = 0x8004427e + BIOCSETF = 0x80104267 + BIOCSETFNR = 0x80104282 + BIOCSETIF = 0x8020426c + BIOCSETVLANPCP = 0x80044285 + BIOCSETWF = 0x8010427b + BIOCSETZBUF = 0x80184281 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCSTSTAMP = 0x80044284 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x8 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_BUFMODE_BUFFER = 0x1 + BPF_BUFMODE_ZBUF = 0x2 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_T_BINTIME = 0x2 + BPF_T_BINTIME_FAST = 0x102 + BPF_T_BINTIME_MONOTONIC = 0x202 + BPF_T_BINTIME_MONOTONIC_FAST = 0x302 + BPF_T_FAST = 0x100 + BPF_T_FLAG_MASK = 0x300 + BPF_T_FORMAT_MASK = 0x3 + BPF_T_MICROTIME = 0x0 + BPF_T_MICROTIME_FAST = 0x100 + BPF_T_MICROTIME_MONOTONIC = 0x200 + BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 + BPF_T_MONOTONIC = 0x200 + BPF_T_MONOTONIC_FAST = 0x300 + BPF_T_NANOTIME = 0x1 + BPF_T_NANOTIME_FAST = 0x101 + BPF_T_NANOTIME_MONOTONIC = 0x201 + BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 + BPF_T_NONE = 0x3 + BPF_T_NORMAL = 0x0 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XOR = 0xa0 + BRKINT = 0x2 + CAP_ACCEPT = 0x200000020000000 + CAP_ACL_CHECK = 0x400000000010000 + CAP_ACL_DELETE = 0x400000000020000 + CAP_ACL_GET = 0x400000000040000 + CAP_ACL_SET = 0x400000000080000 + CAP_ALL0 = 0x20007ffffffffff + CAP_ALL1 = 0x4000000001fffff + CAP_BIND = 0x200000040000000 + CAP_BINDAT = 0x200008000000400 + CAP_CHFLAGSAT = 0x200000000001400 + CAP_CONNECT = 0x200000080000000 + CAP_CONNECTAT = 0x200010000000400 + CAP_CREATE = 0x200000000000040 + CAP_EVENT = 0x400000000000020 + CAP_EXTATTR_DELETE = 0x400000000001000 + CAP_EXTATTR_GET = 0x400000000002000 + CAP_EXTATTR_LIST = 0x400000000004000 + CAP_EXTATTR_SET = 0x400000000008000 + CAP_FCHDIR = 0x200000000000800 + CAP_FCHFLAGS = 0x200000000001000 + CAP_FCHMOD = 0x200000000002000 + CAP_FCHMODAT = 0x200000000002400 + CAP_FCHOWN = 0x200000000004000 + CAP_FCHOWNAT = 0x200000000004400 + CAP_FCNTL = 0x200000000008000 + CAP_FCNTL_ALL = 0x78 + CAP_FCNTL_GETFL = 0x8 + CAP_FCNTL_GETOWN = 0x20 + CAP_FCNTL_SETFL = 0x10 + CAP_FCNTL_SETOWN = 0x40 + CAP_FEXECVE = 0x200000000000080 + CAP_FLOCK = 0x200000000010000 + CAP_FPATHCONF = 0x200000000020000 + CAP_FSCK = 0x200000000040000 + CAP_FSTAT = 0x200000000080000 + CAP_FSTATAT = 0x200000000080400 + CAP_FSTATFS = 0x200000000100000 + CAP_FSYNC = 0x200000000000100 + CAP_FTRUNCATE = 0x200000000000200 + CAP_FUTIMES = 0x200000000200000 + CAP_FUTIMESAT = 0x200000000200400 + CAP_GETPEERNAME = 0x200000100000000 + CAP_GETSOCKNAME = 0x200000200000000 + CAP_GETSOCKOPT = 0x200000400000000 + CAP_IOCTL = 0x400000000000080 + CAP_IOCTLS_ALL = 0x7fffffffffffffff + CAP_KQUEUE = 0x400000000100040 + CAP_KQUEUE_CHANGE = 0x400000000100000 + CAP_KQUEUE_EVENT = 0x400000000000040 + CAP_LINKAT_SOURCE = 0x200020000000400 + CAP_LINKAT_TARGET = 0x200000000400400 + CAP_LISTEN = 0x200000800000000 + CAP_LOOKUP = 0x200000000000400 + CAP_MAC_GET = 0x400000000000001 + CAP_MAC_SET = 0x400000000000002 + CAP_MKDIRAT = 0x200000000800400 + CAP_MKFIFOAT = 0x200000001000400 + CAP_MKNODAT = 0x200000002000400 + CAP_MMAP = 0x200000000000010 + CAP_MMAP_R = 0x20000000000001d + CAP_MMAP_RW = 0x20000000000001f + CAP_MMAP_RWX = 0x20000000000003f + CAP_MMAP_RX = 0x20000000000003d + CAP_MMAP_W = 0x20000000000001e + CAP_MMAP_WX = 0x20000000000003e + CAP_MMAP_X = 0x20000000000003c + CAP_PDGETPID = 0x400000000000200 + CAP_PDKILL = 0x400000000000800 + CAP_PDWAIT = 0x400000000000400 + CAP_PEELOFF = 0x200001000000000 + CAP_POLL_EVENT = 0x400000000000020 + CAP_PREAD = 0x20000000000000d + CAP_PWRITE = 0x20000000000000e + CAP_READ = 0x200000000000001 + CAP_RECV = 0x200000000000001 + CAP_RENAMEAT_SOURCE = 0x200000004000400 + CAP_RENAMEAT_TARGET = 0x200040000000400 + CAP_RIGHTS_VERSION = 0x0 + CAP_RIGHTS_VERSION_00 = 0x0 + CAP_SEEK = 0x20000000000000c + CAP_SEEK_TELL = 0x200000000000004 + CAP_SEM_GETVALUE = 0x400000000000004 + CAP_SEM_POST = 0x400000000000008 + CAP_SEM_WAIT = 0x400000000000010 + CAP_SEND = 0x200000000000002 + CAP_SETSOCKOPT = 0x200002000000000 + CAP_SHUTDOWN = 0x200004000000000 + CAP_SOCK_CLIENT = 0x200007780000003 + CAP_SOCK_SERVER = 0x200007f60000003 + CAP_SYMLINKAT = 0x200000008000400 + CAP_TTYHOOK = 0x400000000000100 + CAP_UNLINKAT = 0x200000010000400 + CAP_UNUSED0_44 = 0x200080000000000 + CAP_UNUSED0_57 = 0x300000000000000 + CAP_UNUSED1_22 = 0x400000000200000 + CAP_UNUSED1_57 = 0x500000000000000 + CAP_WRITE = 0x200000000000002 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x4 + CLOCK_MONOTONIC_FAST = 0xc + CLOCK_MONOTONIC_PRECISE = 0xb + CLOCK_PROCESS_CPUTIME_ID = 0xf + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_FAST = 0xa + CLOCK_REALTIME_PRECISE = 0x9 + CLOCK_SECOND = 0xd + CLOCK_THREAD_CPUTIME_ID = 0xe + CLOCK_UPTIME = 0x5 + CLOCK_UPTIME_FAST = 0x8 + CLOCK_UPTIME_PRECISE = 0x7 + CLOCK_VIRTUAL = 0x1 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0x18 + CTL_NET = 0x4 + DIOCGATTR = 0xc148648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x80506490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc080648f + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_BREDR_BB = 0xff + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_BLUETOOTH_LE_LL = 0xfb + DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 + DLT_BLUETOOTH_LINUX_MONITOR = 0xfe + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 + DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_EPON = 0x103 + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_INFINIBAND = 0xf7 + DLT_IPFILTER = 0x74 + DLT_IPMB_KONTRON = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPMI_HPM_2 = 0x104 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LINUX_SLL2 = 0x114 + DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x114 + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NETLINK = 0xfd + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x79 + DLT_PKTAP = 0x102 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PROFIBUS_DL = 0x101 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 + DLT_RIO = 0x7c + DLT_RTAC_SERIAL = 0xfa + DLT_SCCP = 0x8e + DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 + DLT_WIHART = 0xdf + DLT_WIRESHARK_UPPER_PDU = 0xfc + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd + EVFILT_FS = -0x9 + EVFILT_LIO = -0xa + EVFILT_PROC = -0x5 + EVFILT_PROCDESC = -0x8 + EVFILT_READ = -0x1 + EVFILT_SENDFILE = -0xc + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0xd + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xb + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DROP = 0x1000 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_FLAG2 = 0x4000 + EV_FORCEONESHOT = 0x100 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff + EXTATTR_NAMESPACE_EMPTY = 0x0 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_CANCEL = 0x5 + F_DUP2FD = 0xa + F_DUP2FD_CLOEXEC = 0x12 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x11 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xb + F_GETOWN = 0x5 + F_OGETLK = 0x7 + F_OK = 0x0 + F_OSETLK = 0x8 + F_OSETLKW = 0x9 + F_RDAHEAD = 0x10 + F_RDLCK = 0x1 + F_READAHEAD = 0xf + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0xc + F_SETLKW = 0xd + F_SETLK_REMOTE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_UNLCKSYS = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x218f52 + IFF_CANTCONFIG = 0x10000 + IFF_DEBUG = 0x4 + IFF_DRV_OACTIVE = 0x400 + IFF_DRV_RUNNING = 0x40 + IFF_DYING = 0x200000 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MONITOR = 0x40000 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PPROMISC = 0x20000 + IFF_PROMISC = 0x100 + IFF_RENAMING = 0x400000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x80000 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_IEEE1394 = 0x90 + IFT_INFINIBAND = 0xc7 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_PPP = 0x17 + IFT_PROPVIRTUAL = 0x35 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_MASK = 0xfffffffe + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CARP = 0x70 + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DCCP = 0x21 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HIP = 0x8b + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MEAS = 0x13 + IPPROTO_MH = 0x87 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OLD_DIVERT = 0xfe + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_RESERVED_253 = 0xfd + IPPROTO_RESERVED_254 = 0xfe + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEND = 0x103 + IPPROTO_SHIM6 = 0x8c + IPPROTO_SKIP = 0x39 + IPPROTO_SPACER = 0x7fff + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TLSP = 0x38 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDANY = 0x40 + IPV6_BINDMULTI = 0x41 + IPV6_BINDV6ONLY = 0x1b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FLOWID = 0x43 + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOWTYPE = 0x44 + IPV6_FRAGTTL = 0x78 + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVFLOWID = 0x46 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRSSBUCKETID = 0x47 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RSSBUCKETID = 0x45 + IPV6_RSS_LISTEN_BUCKET = 0x42 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IPV6_VLAN_PCP = 0x4b + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BINDANY = 0x18 + IP_BINDMULTI = 0x19 + IP_BLOCK_SOURCE = 0x48 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x43 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET3 = 0x31 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FLOWID = 0x5a + IP_FLOWTYPE = 0x5b + IP_FW3 = 0x30 + IP_FW_ADD = 0x32 + IP_FW_DEL = 0x33 + IP_FW_FLUSH = 0x34 + IP_FW_GET = 0x36 + IP_FW_NAT_CFG = 0x38 + IP_FW_NAT_DEL = 0x39 + IP_FW_NAT_GET_CONFIG = 0x3a + IP_FW_NAT_GET_LOG = 0x3b + IP_FW_RESETLOG = 0x37 + IP_FW_TABLE_ADD = 0x28 + IP_FW_TABLE_DEL = 0x29 + IP_FW_TABLE_FLUSH = 0x2a + IP_FW_TABLE_GETSIZE = 0x2b + IP_FW_TABLE_LIST = 0x2c + IP_FW_ZERO = 0x35 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MINTTL = 0x42 + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_OFFMASK = 0x1fff + IP_ONESBCAST = 0x17 + IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVFLOWID = 0x5d + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b + IP_RECVRETOPTS = 0x6 + IP_RECVRSSBUCKETID = 0x5e + IP_RECVTOS = 0x44 + IP_RECVTTL = 0x41 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSSBUCKETID = 0x5c + IP_RSS_LISTEN_BUCKET = 0x1a + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + IP_VLAN_PCP = 0x4b + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_CONNWAIT = 0x4 + LOCAL_CREDS = 0x2 + LOCAL_PEERCRED = 0x1 + LOCAL_VENDOR = 0x80000000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_AUTOSYNC = 0x7 + MADV_CORE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_NOCORE = 0x8 + MADV_NORMAL = 0x0 + MADV_NOSYNC = 0x6 + MADV_PROTECT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MAP_32BIT = 0x80000 + MAP_ALIGNED_SUPER = 0x1000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_EXCL = 0x4000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 + MAP_HASSEMAPHORE = 0x200 + MAP_NOCORE = 0x20000 + MAP_NOSYNC = 0x800 + MAP_PREFAULT_READ = 0x40000 + MAP_PRIVATE = 0x2 + MAP_RESERVED0020 = 0x20 + MAP_RESERVED0040 = 0x40 + MAP_RESERVED0080 = 0x80 + MAP_RESERVED0100 = 0x100 + MAP_SHARED = 0x1 + MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ACLS = 0x8000000 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x200000000 + MNT_BYFSID = 0x8000000 + MNT_CMDFLAGS = 0xd0f0000 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_EXKERB = 0x800 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x20000000 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_GJOURNAL = 0x2000000 + MNT_IGNORE = 0x800000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NFS4ACLS = 0x10 + MNT_NOATIME = 0x10000000 + MNT_NOCLUSTERR = 0x40000000 + MNT_NOCLUSTERW = 0x80000000 + MNT_NOEXEC = 0x4 + MNT_NONBUSY = 0x4000000 + MNT_NOSUID = 0x8 + MNT_NOSYMFOLLOW = 0x400000 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x1000000 + MNT_SOFTDEP = 0x200000 + MNT_SUIDDIR = 0x100000 + MNT_SUJ = 0x100000000 + MNT_SUSPEND = 0x4 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 + MNT_UPDATE = 0x10000 + MNT_UPDATEMASK = 0xad8d0807e + MNT_USER = 0x8000 + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff + MNT_WAIT = 0x1 + MSG_CMSG_CLOEXEC = 0x40000 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_NBIO = 0x4000 + MSG_NOSIGNAL = 0x20000 + MSG_NOTIFICATION = 0x2000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x80000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x0 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFLISTL = 0x5 + NET_RT_IFMALIST = 0x4 + NFDBITS = 0x40 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_CLOSE = 0x100 + NOTE_CLOSE_WRITE = 0x200 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FILE_POLL = 0x2 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MSECONDS = 0x2 + NOTE_NSECONDS = 0x8 + NOTE_OPEN = 0x80 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_READ = 0x400 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x4 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x100000 + O_CREAT = 0x200 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x20000 + O_EXCL = 0x800 + O_EXEC = 0x40000 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RESOLVE_BENEATH = 0x800000 + O_SEARCH = 0x40000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_TTY_INIT = 0x80000 + O_VERIFY = 0x200000 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PIOD_READ_D = 0x1 + PIOD_READ_I = 0x3 + PIOD_WRITE_D = 0x2 + PIOD_WRITE_I = 0x4 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PTRACE_DEFAULT = 0x1 + PTRACE_EXEC = 0x1 + PTRACE_FORK = 0x8 + PTRACE_LWP = 0x10 + PTRACE_SCE = 0x2 + PTRACE_SCX = 0x4 + PTRACE_SYSCALL = 0x6 + PTRACE_VFORK = 0x20 + PT_ATTACH = 0xa + PT_CLEARSTEP = 0x10 + PT_CONTINUE = 0x7 + PT_DETACH = 0xb + PT_FIRSTMACH = 0x40 + PT_FOLLOW_FORK = 0x17 + PT_GETDBREGS = 0x25 + PT_GETFPREGS = 0x23 + PT_GETFSBASE = 0x47 + PT_GETGSBASE = 0x49 + PT_GETLWPLIST = 0xf + PT_GETNUMLWPS = 0xe + PT_GETREGS = 0x21 + PT_GETXSTATE = 0x45 + PT_GETXSTATE_INFO = 0x44 + PT_GET_EVENT_MASK = 0x19 + PT_GET_SC_ARGS = 0x1b + PT_GET_SC_RET = 0x1c + PT_IO = 0xc + PT_KILL = 0x8 + PT_LWPINFO = 0xd + PT_LWP_EVENTS = 0x18 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_RESUME = 0x13 + PT_SETDBREGS = 0x26 + PT_SETFPREGS = 0x24 + PT_SETFSBASE = 0x48 + PT_SETGSBASE = 0x4a + PT_SETREGS = 0x22 + PT_SETSTEP = 0x11 + PT_SETXSTATE = 0x46 + PT_SET_EVENT_MASK = 0x1a + PT_STEP = 0x9 + PT_SUSPEND = 0x12 + PT_SYSCALL = 0x16 + PT_TO_SCE = 0x14 + PT_TO_SCX = 0x15 + PT_TRACE_ME = 0x0 + PT_VM_ENTRY = 0x29 + PT_VM_TIMESTAMP = 0x28 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + P_ZONEID = 0xc + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FIXEDMTU = 0x80000 + RTF_FMASK = 0x1004d808 + RTF_GATEWAY = 0x2 + RTF_GWFLAG_COMPAT = 0x80000000 + RTF_HOST = 0x4 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_RNH_LOCKED = 0x40000000 + RTF_STATIC = 0x800 + RTF_STICKY = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x12 + RTM_IFANNOUNCE = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RTV_WEIGHT = 0x100 + RT_ALL_FIBS = -0x1 + RT_BLACKHOLE = 0x40 + RT_DEFAULT_FIB = 0x0 + RT_HAS_GW = 0x80 + RT_HAS_HEADER = 0x10 + RT_HAS_HEADER_BIT = 0x4 + RT_L2_ME = 0x4 + RT_L2_ME_BIT = 0x2 + RT_LLE_CACHE = 0x100 + RT_MAY_LOOP = 0x8 + RT_MAY_LOOP_BIT = 0x3 + RT_REJECT = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_BINTIME = 0x4 + SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 + SEEK_CUR = 0x1 + SEEK_DATA = 0x3 + SEEK_END = 0x2 + SEEK_HOLE = 0x4 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPHYADDR = 0x80206949 + SIOCGDRVSPEC = 0xc028697b + SIOCGETSGCNT = 0xc0207210 + SIOCGETVIFCNT = 0xc028720f + SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e + SIOCGI2C = 0xc020693d + SIOCGIFADDR = 0xc0206921 + SIOCGIFALIAS = 0xc044692d + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020691f + SIOCGIFCONF = 0xc0106924 + SIOCGIFDESCR = 0xc020692a + SIOCGIFDOWNREASON = 0xc058699a + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFIB = 0xc020695c + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFINDEX = 0xc0206920 + SIOCGIFMAC = 0xc0206926 + SIOCGIFMEDIA = 0xc0306938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206948 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 + SIOCGIFSTATUS = 0xc331693b + SIOCGIFXMEDIA = 0xc030698b + SIOCGLANPCP = 0xc0206998 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGPRIVATE_0 = 0xc0206950 + SIOCGPRIVATE_1 = 0xc0206951 + SIOCGTUNFIB = 0xc020695e + SIOCIFCREATE = 0xc020697a + SIOCIFCREATE2 = 0xc020697c + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSDRVSPEC = 0x8028697b + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020691e + SIOCSIFDESCR = 0x80206929 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFIB = 0x8020695d + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206927 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNAME = 0x80206928 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSIFPHYS = 0x80206936 + SIOCSIFRVNET = 0xc020695b + SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSTUNFIB = 0x8020695f + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_NONBLOCK = 0x20000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BINTIME = 0x2000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1009 + SO_LINGER = 0x80 + SO_LISTENINCQLEN = 0x1013 + SO_LISTENQLEN = 0x1012 + SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 + SO_NOSIGPIPE = 0x800 + SO_NO_DDP = 0x8000 + SO_NO_OFFLOAD = 0x4000 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1010 + SO_PROTOCOL = 0x1016 + SO_PROTOTYPE = 0x1016 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RERROR = 0x20000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 + SO_SETFIB = 0x1014 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USER_COOKIE = 0x1015 + SO_VENDOR = 0x80000000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB3 = 0x4 + TABDLY = 0x4 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_FAST_OPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_PAD = 0x0 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_WINDOW = 0x3 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_ALGORITHM = 0x43b + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_EXTRA_STATE = 0x453 + TCP_BBR_FLOOR_MIN_TSO = 0x454 + TCP_BBR_HDWR_PACE = 0x451 + TCP_BBR_HOLD_TARGET = 0x436 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_MIN_TOPACEOUT = 0x455 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_OH = 0x435 + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_POLICER_DETECT = 0x457 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_SEND_IWND_IN_TSO = 0x44f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_TMR_PACE_OH = 0x448 + TCP_BBR_TSLIMITS = 0x434 + TCP_BBR_TSTMP_RAISES = 0x456 + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 + TCP_BBR_USE_RACK_CHEAT = 0x450 + TCP_BBR_UTTER_MAX_TSO = 0x452 + TCP_CA_NAME_MAX = 0x10 + TCP_CCALGOOPT = 0x41 + TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 + TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 + TCP_FUNCTION_BLK = 0x2000 + TCP_FUNCTION_NAME_LEN_MAX = 0x20 + TCP_INFO = 0x20 + TCP_KEEPCNT = 0x400 + TCP_KEEPIDLE = 0x100 + TCP_KEEPINIT = 0x80 + TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 + TCP_MAXBURST = 0x4 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_PCAP_IN = 0x1000 + TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_GP_INCREASE = 0x446 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 + TCP_VENDOR = 0x80000000 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGPTN = 0x4004740f + TIOCGSID = 0x40047463 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DCD = 0x40 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMASTER = 0x2000741c + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VERASE2 = 0x7 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x4 + WCOREFLAG = 0x80 + WEXITED = 0x10 + WLINUXCLONE = 0x80000000 + WNOHANG = 0x1 + WNOWAIT = 0x8 + WSTOPPED = 0x2 + WTRAPPED = 0x20 + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x59) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x55) + ECAPMODE = syscall.Errno(0x5e) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDOOFUS = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x56) + EINPROGRESS = syscall.Errno(0x24) + EINTEGRITY = syscall.Errno(0x61) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x61) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5a) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x57) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5b) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCAPABLE = syscall.Errno(0x5d) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5f) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x60) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5c) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGLIBRT = syscall.Signal(0x21) + SIGLWP = syscall.Signal(0x20) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EWOULDBLOCK", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "ECANCELED", "operation canceled"}, + {86, "EILSEQ", "illegal byte sequence"}, + {87, "ENOATTR", "attribute not found"}, + {88, "EDOOFUS", "programming error"}, + {89, "EBADMSG", "bad message"}, + {90, "EMULTIHOP", "multihop attempted"}, + {91, "ENOLINK", "link has been severed"}, + {92, "EPROTO", "protocol error"}, + {93, "ENOTCAPABLE", "capabilities insufficient"}, + {94, "ECAPMODE", "not permitted in capability mode"}, + {95, "ENOTRECOVERABLE", "state not recoverable"}, + {96, "EOWNERDEAD", "previous owner died"}, + {97, "EINTEGRITY", "integrity check failed"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "unknown signal"}, + {33, "SIGLIBRT", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go new file mode 100644 index 0000000..777b69d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go @@ -0,0 +1,2034 @@ +// mkerrors.sh +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && freebsd +// +build arm,freebsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x23 + AF_ATM = 0x1e + AF_BLUETOOTH = 0x24 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1c + AF_INET6_SDP = 0x2a + AF_INET_SDP = 0x28 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x2a + AF_NATM = 0x1d + AF_NETBIOS = 0x6 + AF_NETGRAPH = 0x20 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SCLUSTER = 0x22 + AF_SIP = 0x18 + AF_SLOW = 0x21 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VENDOR00 = 0x27 + AF_VENDOR01 = 0x29 + AF_VENDOR02 = 0x2b + AF_VENDOR03 = 0x2d + AF_VENDOR04 = 0x2f + AF_VENDOR05 = 0x31 + AF_VENDOR06 = 0x33 + AF_VENDOR07 = 0x35 + AF_VENDOR08 = 0x37 + AF_VENDOR09 = 0x39 + AF_VENDOR10 = 0x3b + AF_VENDOR11 = 0x3d + AF_VENDOR12 = 0x3f + AF_VENDOR13 = 0x41 + AF_VENDOR14 = 0x43 + AF_VENDOR15 = 0x45 + AF_VENDOR16 = 0x47 + AF_VENDOR17 = 0x49 + AF_VENDOR18 = 0x4b + AF_VENDOR19 = 0x4d + AF_VENDOR20 = 0x4f + AF_VENDOR21 = 0x51 + AF_VENDOR22 = 0x53 + AF_VENDOR23 = 0x55 + AF_VENDOR24 = 0x57 + AF_VENDOR25 = 0x59 + AF_VENDOR26 = 0x5b + AF_VENDOR27 = 0x5d + AF_VENDOR28 = 0x5f + AF_VENDOR29 = 0x61 + AF_VENDOR30 = 0x63 + AF_VENDOR31 = 0x65 + AF_VENDOR32 = 0x67 + AF_VENDOR33 = 0x69 + AF_VENDOR34 = 0x6b + AF_VENDOR35 = 0x6d + AF_VENDOR36 = 0x6f + AF_VENDOR37 = 0x71 + AF_VENDOR38 = 0x73 + AF_VENDOR39 = 0x75 + AF_VENDOR40 = 0x77 + AF_VENDOR41 = 0x79 + AF_VENDOR42 = 0x7b + AF_VENDOR43 = 0x7d + AF_VENDOR44 = 0x7f + AF_VENDOR45 = 0x81 + AF_VENDOR46 = 0x83 + AF_VENDOR47 = 0x85 + ALTWERASE = 0x200 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427c + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRECTION = 0x40044276 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0084279 + BIOCGETBUFMODE = 0x4004427d + BIOCGETIF = 0x4020426b + BIOCGETZMAX = 0x4004427f + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCGTSTAMP = 0x40044283 + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x2000427a + BIOCPROMISC = 0x20004269 + BIOCROTZBUF = 0x400c4280 + BIOCSBLEN = 0xc0044266 + BIOCSDIRECTION = 0x80044277 + BIOCSDLT = 0x80044278 + BIOCSETBUFMODE = 0x8004427e + BIOCSETF = 0x80084267 + BIOCSETFNR = 0x80084282 + BIOCSETIF = 0x8020426c + BIOCSETVLANPCP = 0x80044285 + BIOCSETWF = 0x8008427b + BIOCSETZBUF = 0x800c4281 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCSTSTAMP = 0x80044284 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_BUFMODE_BUFFER = 0x1 + BPF_BUFMODE_ZBUF = 0x2 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_T_BINTIME = 0x2 + BPF_T_BINTIME_FAST = 0x102 + BPF_T_BINTIME_MONOTONIC = 0x202 + BPF_T_BINTIME_MONOTONIC_FAST = 0x302 + BPF_T_FAST = 0x100 + BPF_T_FLAG_MASK = 0x300 + BPF_T_FORMAT_MASK = 0x3 + BPF_T_MICROTIME = 0x0 + BPF_T_MICROTIME_FAST = 0x100 + BPF_T_MICROTIME_MONOTONIC = 0x200 + BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 + BPF_T_MONOTONIC = 0x200 + BPF_T_MONOTONIC_FAST = 0x300 + BPF_T_NANOTIME = 0x1 + BPF_T_NANOTIME_FAST = 0x101 + BPF_T_NANOTIME_MONOTONIC = 0x201 + BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 + BPF_T_NONE = 0x3 + BPF_T_NORMAL = 0x0 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XOR = 0xa0 + BRKINT = 0x2 + CAP_ACCEPT = 0x200000020000000 + CAP_ACL_CHECK = 0x400000000010000 + CAP_ACL_DELETE = 0x400000000020000 + CAP_ACL_GET = 0x400000000040000 + CAP_ACL_SET = 0x400000000080000 + CAP_ALL0 = 0x20007ffffffffff + CAP_ALL1 = 0x4000000001fffff + CAP_BIND = 0x200000040000000 + CAP_BINDAT = 0x200008000000400 + CAP_CHFLAGSAT = 0x200000000001400 + CAP_CONNECT = 0x200000080000000 + CAP_CONNECTAT = 0x200010000000400 + CAP_CREATE = 0x200000000000040 + CAP_EVENT = 0x400000000000020 + CAP_EXTATTR_DELETE = 0x400000000001000 + CAP_EXTATTR_GET = 0x400000000002000 + CAP_EXTATTR_LIST = 0x400000000004000 + CAP_EXTATTR_SET = 0x400000000008000 + CAP_FCHDIR = 0x200000000000800 + CAP_FCHFLAGS = 0x200000000001000 + CAP_FCHMOD = 0x200000000002000 + CAP_FCHMODAT = 0x200000000002400 + CAP_FCHOWN = 0x200000000004000 + CAP_FCHOWNAT = 0x200000000004400 + CAP_FCNTL = 0x200000000008000 + CAP_FCNTL_ALL = 0x78 + CAP_FCNTL_GETFL = 0x8 + CAP_FCNTL_GETOWN = 0x20 + CAP_FCNTL_SETFL = 0x10 + CAP_FCNTL_SETOWN = 0x40 + CAP_FEXECVE = 0x200000000000080 + CAP_FLOCK = 0x200000000010000 + CAP_FPATHCONF = 0x200000000020000 + CAP_FSCK = 0x200000000040000 + CAP_FSTAT = 0x200000000080000 + CAP_FSTATAT = 0x200000000080400 + CAP_FSTATFS = 0x200000000100000 + CAP_FSYNC = 0x200000000000100 + CAP_FTRUNCATE = 0x200000000000200 + CAP_FUTIMES = 0x200000000200000 + CAP_FUTIMESAT = 0x200000000200400 + CAP_GETPEERNAME = 0x200000100000000 + CAP_GETSOCKNAME = 0x200000200000000 + CAP_GETSOCKOPT = 0x200000400000000 + CAP_IOCTL = 0x400000000000080 + CAP_IOCTLS_ALL = 0x7fffffff + CAP_KQUEUE = 0x400000000100040 + CAP_KQUEUE_CHANGE = 0x400000000100000 + CAP_KQUEUE_EVENT = 0x400000000000040 + CAP_LINKAT_SOURCE = 0x200020000000400 + CAP_LINKAT_TARGET = 0x200000000400400 + CAP_LISTEN = 0x200000800000000 + CAP_LOOKUP = 0x200000000000400 + CAP_MAC_GET = 0x400000000000001 + CAP_MAC_SET = 0x400000000000002 + CAP_MKDIRAT = 0x200000000800400 + CAP_MKFIFOAT = 0x200000001000400 + CAP_MKNODAT = 0x200000002000400 + CAP_MMAP = 0x200000000000010 + CAP_MMAP_R = 0x20000000000001d + CAP_MMAP_RW = 0x20000000000001f + CAP_MMAP_RWX = 0x20000000000003f + CAP_MMAP_RX = 0x20000000000003d + CAP_MMAP_W = 0x20000000000001e + CAP_MMAP_WX = 0x20000000000003e + CAP_MMAP_X = 0x20000000000003c + CAP_PDGETPID = 0x400000000000200 + CAP_PDKILL = 0x400000000000800 + CAP_PDWAIT = 0x400000000000400 + CAP_PEELOFF = 0x200001000000000 + CAP_POLL_EVENT = 0x400000000000020 + CAP_PREAD = 0x20000000000000d + CAP_PWRITE = 0x20000000000000e + CAP_READ = 0x200000000000001 + CAP_RECV = 0x200000000000001 + CAP_RENAMEAT_SOURCE = 0x200000004000400 + CAP_RENAMEAT_TARGET = 0x200040000000400 + CAP_RIGHTS_VERSION = 0x0 + CAP_RIGHTS_VERSION_00 = 0x0 + CAP_SEEK = 0x20000000000000c + CAP_SEEK_TELL = 0x200000000000004 + CAP_SEM_GETVALUE = 0x400000000000004 + CAP_SEM_POST = 0x400000000000008 + CAP_SEM_WAIT = 0x400000000000010 + CAP_SEND = 0x200000000000002 + CAP_SETSOCKOPT = 0x200002000000000 + CAP_SHUTDOWN = 0x200004000000000 + CAP_SOCK_CLIENT = 0x200007780000003 + CAP_SOCK_SERVER = 0x200007f60000003 + CAP_SYMLINKAT = 0x200000008000400 + CAP_TTYHOOK = 0x400000000000100 + CAP_UNLINKAT = 0x200000010000400 + CAP_UNUSED0_44 = 0x200080000000000 + CAP_UNUSED0_57 = 0x300000000000000 + CAP_UNUSED1_22 = 0x400000000200000 + CAP_UNUSED1_57 = 0x500000000000000 + CAP_WRITE = 0x200000000000002 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x4 + CLOCK_MONOTONIC_FAST = 0xc + CLOCK_MONOTONIC_PRECISE = 0xb + CLOCK_PROCESS_CPUTIME_ID = 0xf + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_FAST = 0xa + CLOCK_REALTIME_PRECISE = 0x9 + CLOCK_SECOND = 0xd + CLOCK_THREAD_CPUTIME_ID = 0xe + CLOCK_UPTIME = 0x5 + CLOCK_UPTIME_FAST = 0x8 + CLOCK_UPTIME_PRECISE = 0x7 + CLOCK_VIRTUAL = 0x1 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0x18 + CTL_NET = 0x4 + DIOCGATTR = 0xc148648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x804c6490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc078648f + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_BREDR_BB = 0xff + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_BLUETOOTH_LE_LL = 0xfb + DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 + DLT_BLUETOOTH_LINUX_MONITOR = 0xfe + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 + DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_EPON = 0x103 + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_INFINIBAND = 0xf7 + DLT_IPFILTER = 0x74 + DLT_IPMB_KONTRON = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPMI_HPM_2 = 0x104 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LINUX_SLL2 = 0x114 + DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x114 + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NETLINK = 0xfd + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x79 + DLT_PKTAP = 0x102 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PROFIBUS_DL = 0x101 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 + DLT_RIO = 0x7c + DLT_RTAC_SERIAL = 0xfa + DLT_SCCP = 0x8e + DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 + DLT_WIHART = 0xdf + DLT_WIRESHARK_UPPER_PDU = 0xfc + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd + EVFILT_FS = -0x9 + EVFILT_LIO = -0xa + EVFILT_PROC = -0x5 + EVFILT_PROCDESC = -0x8 + EVFILT_READ = -0x1 + EVFILT_SENDFILE = -0xc + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0xd + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xb + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DROP = 0x1000 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_FLAG2 = 0x4000 + EV_FORCEONESHOT = 0x100 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff + EXTATTR_NAMESPACE_EMPTY = 0x0 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_CANCEL = 0x5 + F_DUP2FD = 0xa + F_DUP2FD_CLOEXEC = 0x12 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x11 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xb + F_GETOWN = 0x5 + F_OGETLK = 0x7 + F_OK = 0x0 + F_OSETLK = 0x8 + F_OSETLKW = 0x9 + F_RDAHEAD = 0x10 + F_RDLCK = 0x1 + F_READAHEAD = 0xf + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0xc + F_SETLKW = 0xd + F_SETLK_REMOTE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_UNLCKSYS = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x218f52 + IFF_CANTCONFIG = 0x10000 + IFF_DEBUG = 0x4 + IFF_DRV_OACTIVE = 0x400 + IFF_DRV_RUNNING = 0x40 + IFF_DYING = 0x200000 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MONITOR = 0x40000 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PPROMISC = 0x20000 + IFF_PROMISC = 0x100 + IFF_RENAMING = 0x400000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x80000 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_IEEE1394 = 0x90 + IFT_INFINIBAND = 0xc7 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_PPP = 0x17 + IFT_PROPVIRTUAL = 0x35 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_MASK = 0xfffffffe + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CARP = 0x70 + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DCCP = 0x21 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HIP = 0x8b + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MEAS = 0x13 + IPPROTO_MH = 0x87 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OLD_DIVERT = 0xfe + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_RESERVED_253 = 0xfd + IPPROTO_RESERVED_254 = 0xfe + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEND = 0x103 + IPPROTO_SHIM6 = 0x8c + IPPROTO_SKIP = 0x39 + IPPROTO_SPACER = 0x7fff + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TLSP = 0x38 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDANY = 0x40 + IPV6_BINDMULTI = 0x41 + IPV6_BINDV6ONLY = 0x1b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FLOWID = 0x43 + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOWTYPE = 0x44 + IPV6_FRAGTTL = 0x78 + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVFLOWID = 0x46 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRSSBUCKETID = 0x47 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RSSBUCKETID = 0x45 + IPV6_RSS_LISTEN_BUCKET = 0x42 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IPV6_VLAN_PCP = 0x4b + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BINDANY = 0x18 + IP_BINDMULTI = 0x19 + IP_BLOCK_SOURCE = 0x48 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x43 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET3 = 0x31 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FLOWID = 0x5a + IP_FLOWTYPE = 0x5b + IP_FW3 = 0x30 + IP_FW_ADD = 0x32 + IP_FW_DEL = 0x33 + IP_FW_FLUSH = 0x34 + IP_FW_GET = 0x36 + IP_FW_NAT_CFG = 0x38 + IP_FW_NAT_DEL = 0x39 + IP_FW_NAT_GET_CONFIG = 0x3a + IP_FW_NAT_GET_LOG = 0x3b + IP_FW_RESETLOG = 0x37 + IP_FW_TABLE_ADD = 0x28 + IP_FW_TABLE_DEL = 0x29 + IP_FW_TABLE_FLUSH = 0x2a + IP_FW_TABLE_GETSIZE = 0x2b + IP_FW_TABLE_LIST = 0x2c + IP_FW_ZERO = 0x35 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MINTTL = 0x42 + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_OFFMASK = 0x1fff + IP_ONESBCAST = 0x17 + IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVFLOWID = 0x5d + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b + IP_RECVRETOPTS = 0x6 + IP_RECVRSSBUCKETID = 0x5e + IP_RECVTOS = 0x44 + IP_RECVTTL = 0x41 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSSBUCKETID = 0x5c + IP_RSS_LISTEN_BUCKET = 0x1a + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + IP_VLAN_PCP = 0x4b + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_CONNWAIT = 0x4 + LOCAL_CREDS = 0x2 + LOCAL_PEERCRED = 0x1 + LOCAL_VENDOR = 0x80000000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_AUTOSYNC = 0x7 + MADV_CORE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_NOCORE = 0x8 + MADV_NORMAL = 0x0 + MADV_NOSYNC = 0x6 + MADV_PROTECT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MAP_ALIGNED_SUPER = 0x1000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_EXCL = 0x4000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 + MAP_HASSEMAPHORE = 0x200 + MAP_NOCORE = 0x20000 + MAP_NOSYNC = 0x800 + MAP_PREFAULT_READ = 0x40000 + MAP_PRIVATE = 0x2 + MAP_RESERVED0020 = 0x20 + MAP_RESERVED0040 = 0x40 + MAP_RESERVED0080 = 0x80 + MAP_RESERVED0100 = 0x100 + MAP_SHARED = 0x1 + MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ACLS = 0x8000000 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x200000000 + MNT_BYFSID = 0x8000000 + MNT_CMDFLAGS = 0xd0f0000 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_EXKERB = 0x800 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x20000000 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_GJOURNAL = 0x2000000 + MNT_IGNORE = 0x800000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NFS4ACLS = 0x10 + MNT_NOATIME = 0x10000000 + MNT_NOCLUSTERR = 0x40000000 + MNT_NOCLUSTERW = 0x80000000 + MNT_NOEXEC = 0x4 + MNT_NONBUSY = 0x4000000 + MNT_NOSUID = 0x8 + MNT_NOSYMFOLLOW = 0x400000 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x1000000 + MNT_SOFTDEP = 0x200000 + MNT_SUIDDIR = 0x100000 + MNT_SUJ = 0x100000000 + MNT_SUSPEND = 0x4 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 + MNT_UPDATE = 0x10000 + MNT_UPDATEMASK = 0xad8d0807e + MNT_USER = 0x8000 + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff + MNT_WAIT = 0x1 + MSG_CMSG_CLOEXEC = 0x40000 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_NBIO = 0x4000 + MSG_NOSIGNAL = 0x20000 + MSG_NOTIFICATION = 0x2000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x80000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x0 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFLISTL = 0x5 + NET_RT_IFMALIST = 0x4 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_CLOSE = 0x100 + NOTE_CLOSE_WRITE = 0x200 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FILE_POLL = 0x2 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MSECONDS = 0x2 + NOTE_NSECONDS = 0x8 + NOTE_OPEN = 0x80 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_READ = 0x400 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x4 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x100000 + O_CREAT = 0x200 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x20000 + O_EXCL = 0x800 + O_EXEC = 0x40000 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RESOLVE_BENEATH = 0x800000 + O_SEARCH = 0x40000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_TTY_INIT = 0x80000 + O_VERIFY = 0x200000 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PIOD_READ_D = 0x1 + PIOD_READ_I = 0x3 + PIOD_WRITE_D = 0x2 + PIOD_WRITE_I = 0x4 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PTRACE_DEFAULT = 0x1 + PTRACE_EXEC = 0x1 + PTRACE_FORK = 0x8 + PTRACE_LWP = 0x10 + PTRACE_SCE = 0x2 + PTRACE_SCX = 0x4 + PTRACE_SYSCALL = 0x6 + PTRACE_VFORK = 0x20 + PT_ATTACH = 0xa + PT_CLEARSTEP = 0x10 + PT_CONTINUE = 0x7 + PT_DETACH = 0xb + PT_FIRSTMACH = 0x40 + PT_FOLLOW_FORK = 0x17 + PT_GETDBREGS = 0x25 + PT_GETFPREGS = 0x23 + PT_GETLWPLIST = 0xf + PT_GETNUMLWPS = 0xe + PT_GETREGS = 0x21 + PT_GETVFPREGS = 0x40 + PT_GET_EVENT_MASK = 0x19 + PT_GET_SC_ARGS = 0x1b + PT_GET_SC_RET = 0x1c + PT_IO = 0xc + PT_KILL = 0x8 + PT_LWPINFO = 0xd + PT_LWP_EVENTS = 0x18 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_RESUME = 0x13 + PT_SETDBREGS = 0x26 + PT_SETFPREGS = 0x24 + PT_SETREGS = 0x22 + PT_SETSTEP = 0x11 + PT_SETVFPREGS = 0x41 + PT_SET_EVENT_MASK = 0x1a + PT_STEP = 0x9 + PT_SUSPEND = 0x12 + PT_SYSCALL = 0x16 + PT_TO_SCE = 0x14 + PT_TO_SCX = 0x15 + PT_TRACE_ME = 0x0 + PT_VM_ENTRY = 0x29 + PT_VM_TIMESTAMP = 0x28 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + P_ZONEID = 0xc + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FIXEDMTU = 0x80000 + RTF_FMASK = 0x1004d808 + RTF_GATEWAY = 0x2 + RTF_GWFLAG_COMPAT = 0x80000000 + RTF_HOST = 0x4 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_RNH_LOCKED = 0x40000000 + RTF_STATIC = 0x800 + RTF_STICKY = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x12 + RTM_IFANNOUNCE = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RTV_WEIGHT = 0x100 + RT_ALL_FIBS = -0x1 + RT_BLACKHOLE = 0x40 + RT_DEFAULT_FIB = 0x0 + RT_HAS_GW = 0x80 + RT_HAS_HEADER = 0x10 + RT_HAS_HEADER_BIT = 0x4 + RT_L2_ME = 0x4 + RT_L2_ME_BIT = 0x2 + RT_LLE_CACHE = 0x100 + RT_MAY_LOOP = 0x8 + RT_MAY_LOOP_BIT = 0x3 + RT_REJECT = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_BINTIME = 0x4 + SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 + SEEK_CUR = 0x1 + SEEK_DATA = 0x3 + SEEK_END = 0x2 + SEEK_HOLE = 0x4 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80246987 + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80246989 + SIOCDIFPHYADDR = 0x80206949 + SIOCGDRVSPEC = 0xc01c697b + SIOCGETSGCNT = 0xc0147210 + SIOCGETVIFCNT = 0xc014720f + SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e + SIOCGI2C = 0xc020693d + SIOCGIFADDR = 0xc0206921 + SIOCGIFALIAS = 0xc044692d + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020691f + SIOCGIFCONF = 0xc0086924 + SIOCGIFDESCR = 0xc020692a + SIOCGIFDOWNREASON = 0xc058699a + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFIB = 0xc020695c + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGMEMB = 0xc024698a + SIOCGIFGROUP = 0xc0246988 + SIOCGIFINDEX = 0xc0206920 + SIOCGIFMAC = 0xc0206926 + SIOCGIFMEDIA = 0xc0286938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206948 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 + SIOCGIFSTATUS = 0xc331693b + SIOCGIFXMEDIA = 0xc028698b + SIOCGLANPCP = 0xc0206998 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGPRIVATE_0 = 0xc0206950 + SIOCGPRIVATE_1 = 0xc0206951 + SIOCGTUNFIB = 0xc020695e + SIOCIFCREATE = 0xc020697a + SIOCIFCREATE2 = 0xc020697c + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc00c6978 + SIOCSDRVSPEC = 0x801c697b + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020691e + SIOCSIFDESCR = 0x80206929 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFIB = 0x8020695d + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206927 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNAME = 0x80206928 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSIFPHYS = 0x80206936 + SIOCSIFRVNET = 0xc020695b + SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSTUNFIB = 0x8020695f + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_NONBLOCK = 0x20000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BINTIME = 0x2000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1009 + SO_LINGER = 0x80 + SO_LISTENINCQLEN = 0x1013 + SO_LISTENQLEN = 0x1012 + SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 + SO_NOSIGPIPE = 0x800 + SO_NO_DDP = 0x8000 + SO_NO_OFFLOAD = 0x4000 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1010 + SO_PROTOCOL = 0x1016 + SO_PROTOTYPE = 0x1016 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RERROR = 0x20000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 + SO_SETFIB = 0x1014 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USER_COOKIE = 0x1015 + SO_VENDOR = 0x80000000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB3 = 0x4 + TABDLY = 0x4 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_FAST_OPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_PAD = 0x0 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_WINDOW = 0x3 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_ALGORITHM = 0x43b + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_EXTRA_STATE = 0x453 + TCP_BBR_FLOOR_MIN_TSO = 0x454 + TCP_BBR_HDWR_PACE = 0x451 + TCP_BBR_HOLD_TARGET = 0x436 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_MIN_TOPACEOUT = 0x455 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_OH = 0x435 + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_POLICER_DETECT = 0x457 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_SEND_IWND_IN_TSO = 0x44f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_TMR_PACE_OH = 0x448 + TCP_BBR_TSLIMITS = 0x434 + TCP_BBR_TSTMP_RAISES = 0x456 + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 + TCP_BBR_USE_RACK_CHEAT = 0x450 + TCP_BBR_UTTER_MAX_TSO = 0x452 + TCP_CA_NAME_MAX = 0x10 + TCP_CCALGOOPT = 0x41 + TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 + TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 + TCP_FUNCTION_BLK = 0x2000 + TCP_FUNCTION_NAME_LEN_MAX = 0x20 + TCP_INFO = 0x20 + TCP_KEEPCNT = 0x400 + TCP_KEEPIDLE = 0x100 + TCP_KEEPINIT = 0x80 + TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 + TCP_MAXBURST = 0x4 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_PCAP_IN = 0x1000 + TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_GP_INCREASE = 0x446 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 + TCP_VENDOR = 0x80000000 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGPTN = 0x4004740f + TIOCGSID = 0x40047463 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DCD = 0x40 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMASTER = 0x2000741c + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VERASE2 = 0x7 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x4 + WCOREFLAG = 0x80 + WEXITED = 0x10 + WLINUXCLONE = 0x80000000 + WNOHANG = 0x1 + WNOWAIT = 0x8 + WSTOPPED = 0x2 + WTRAPPED = 0x20 + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x59) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x55) + ECAPMODE = syscall.Errno(0x5e) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDOOFUS = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x56) + EINPROGRESS = syscall.Errno(0x24) + EINTEGRITY = syscall.Errno(0x61) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x61) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5a) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x57) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5b) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCAPABLE = syscall.Errno(0x5d) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5f) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x60) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5c) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGLIBRT = syscall.Signal(0x21) + SIGLWP = syscall.Signal(0x20) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EWOULDBLOCK", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "ECANCELED", "operation canceled"}, + {86, "EILSEQ", "illegal byte sequence"}, + {87, "ENOATTR", "attribute not found"}, + {88, "EDOOFUS", "programming error"}, + {89, "EBADMSG", "bad message"}, + {90, "EMULTIHOP", "multihop attempted"}, + {91, "ENOLINK", "link has been severed"}, + {92, "EPROTO", "protocol error"}, + {93, "ENOTCAPABLE", "capabilities insufficient"}, + {94, "ECAPMODE", "not permitted in capability mode"}, + {95, "ENOTRECOVERABLE", "state not recoverable"}, + {96, "EOWNERDEAD", "previous owner died"}, + {97, "EINTEGRITY", "integrity check failed"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "unknown signal"}, + {33, "SIGLIBRT", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go new file mode 100644 index 0000000..c557ac2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go @@ -0,0 +1,2034 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && freebsd +// +build arm64,freebsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x23 + AF_ATM = 0x1e + AF_BLUETOOTH = 0x24 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1c + AF_INET6_SDP = 0x2a + AF_INET_SDP = 0x28 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x2a + AF_NATM = 0x1d + AF_NETBIOS = 0x6 + AF_NETGRAPH = 0x20 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SCLUSTER = 0x22 + AF_SIP = 0x18 + AF_SLOW = 0x21 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VENDOR00 = 0x27 + AF_VENDOR01 = 0x29 + AF_VENDOR02 = 0x2b + AF_VENDOR03 = 0x2d + AF_VENDOR04 = 0x2f + AF_VENDOR05 = 0x31 + AF_VENDOR06 = 0x33 + AF_VENDOR07 = 0x35 + AF_VENDOR08 = 0x37 + AF_VENDOR09 = 0x39 + AF_VENDOR10 = 0x3b + AF_VENDOR11 = 0x3d + AF_VENDOR12 = 0x3f + AF_VENDOR13 = 0x41 + AF_VENDOR14 = 0x43 + AF_VENDOR15 = 0x45 + AF_VENDOR16 = 0x47 + AF_VENDOR17 = 0x49 + AF_VENDOR18 = 0x4b + AF_VENDOR19 = 0x4d + AF_VENDOR20 = 0x4f + AF_VENDOR21 = 0x51 + AF_VENDOR22 = 0x53 + AF_VENDOR23 = 0x55 + AF_VENDOR24 = 0x57 + AF_VENDOR25 = 0x59 + AF_VENDOR26 = 0x5b + AF_VENDOR27 = 0x5d + AF_VENDOR28 = 0x5f + AF_VENDOR29 = 0x61 + AF_VENDOR30 = 0x63 + AF_VENDOR31 = 0x65 + AF_VENDOR32 = 0x67 + AF_VENDOR33 = 0x69 + AF_VENDOR34 = 0x6b + AF_VENDOR35 = 0x6d + AF_VENDOR36 = 0x6f + AF_VENDOR37 = 0x71 + AF_VENDOR38 = 0x73 + AF_VENDOR39 = 0x75 + AF_VENDOR40 = 0x77 + AF_VENDOR41 = 0x79 + AF_VENDOR42 = 0x7b + AF_VENDOR43 = 0x7d + AF_VENDOR44 = 0x7f + AF_VENDOR45 = 0x81 + AF_VENDOR46 = 0x83 + AF_VENDOR47 = 0x85 + ALTWERASE = 0x200 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427c + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRECTION = 0x40044276 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0104279 + BIOCGETBUFMODE = 0x4004427d + BIOCGETIF = 0x4020426b + BIOCGETZMAX = 0x4008427f + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCGTSTAMP = 0x40044283 + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x2000427a + BIOCPROMISC = 0x20004269 + BIOCROTZBUF = 0x40184280 + BIOCSBLEN = 0xc0044266 + BIOCSDIRECTION = 0x80044277 + BIOCSDLT = 0x80044278 + BIOCSETBUFMODE = 0x8004427e + BIOCSETF = 0x80104267 + BIOCSETFNR = 0x80104282 + BIOCSETIF = 0x8020426c + BIOCSETVLANPCP = 0x80044285 + BIOCSETWF = 0x8010427b + BIOCSETZBUF = 0x80184281 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCSTSTAMP = 0x80044284 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x8 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_BUFMODE_BUFFER = 0x1 + BPF_BUFMODE_ZBUF = 0x2 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_T_BINTIME = 0x2 + BPF_T_BINTIME_FAST = 0x102 + BPF_T_BINTIME_MONOTONIC = 0x202 + BPF_T_BINTIME_MONOTONIC_FAST = 0x302 + BPF_T_FAST = 0x100 + BPF_T_FLAG_MASK = 0x300 + BPF_T_FORMAT_MASK = 0x3 + BPF_T_MICROTIME = 0x0 + BPF_T_MICROTIME_FAST = 0x100 + BPF_T_MICROTIME_MONOTONIC = 0x200 + BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 + BPF_T_MONOTONIC = 0x200 + BPF_T_MONOTONIC_FAST = 0x300 + BPF_T_NANOTIME = 0x1 + BPF_T_NANOTIME_FAST = 0x101 + BPF_T_NANOTIME_MONOTONIC = 0x201 + BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 + BPF_T_NONE = 0x3 + BPF_T_NORMAL = 0x0 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XOR = 0xa0 + BRKINT = 0x2 + CAP_ACCEPT = 0x200000020000000 + CAP_ACL_CHECK = 0x400000000010000 + CAP_ACL_DELETE = 0x400000000020000 + CAP_ACL_GET = 0x400000000040000 + CAP_ACL_SET = 0x400000000080000 + CAP_ALL0 = 0x20007ffffffffff + CAP_ALL1 = 0x4000000001fffff + CAP_BIND = 0x200000040000000 + CAP_BINDAT = 0x200008000000400 + CAP_CHFLAGSAT = 0x200000000001400 + CAP_CONNECT = 0x200000080000000 + CAP_CONNECTAT = 0x200010000000400 + CAP_CREATE = 0x200000000000040 + CAP_EVENT = 0x400000000000020 + CAP_EXTATTR_DELETE = 0x400000000001000 + CAP_EXTATTR_GET = 0x400000000002000 + CAP_EXTATTR_LIST = 0x400000000004000 + CAP_EXTATTR_SET = 0x400000000008000 + CAP_FCHDIR = 0x200000000000800 + CAP_FCHFLAGS = 0x200000000001000 + CAP_FCHMOD = 0x200000000002000 + CAP_FCHMODAT = 0x200000000002400 + CAP_FCHOWN = 0x200000000004000 + CAP_FCHOWNAT = 0x200000000004400 + CAP_FCNTL = 0x200000000008000 + CAP_FCNTL_ALL = 0x78 + CAP_FCNTL_GETFL = 0x8 + CAP_FCNTL_GETOWN = 0x20 + CAP_FCNTL_SETFL = 0x10 + CAP_FCNTL_SETOWN = 0x40 + CAP_FEXECVE = 0x200000000000080 + CAP_FLOCK = 0x200000000010000 + CAP_FPATHCONF = 0x200000000020000 + CAP_FSCK = 0x200000000040000 + CAP_FSTAT = 0x200000000080000 + CAP_FSTATAT = 0x200000000080400 + CAP_FSTATFS = 0x200000000100000 + CAP_FSYNC = 0x200000000000100 + CAP_FTRUNCATE = 0x200000000000200 + CAP_FUTIMES = 0x200000000200000 + CAP_FUTIMESAT = 0x200000000200400 + CAP_GETPEERNAME = 0x200000100000000 + CAP_GETSOCKNAME = 0x200000200000000 + CAP_GETSOCKOPT = 0x200000400000000 + CAP_IOCTL = 0x400000000000080 + CAP_IOCTLS_ALL = 0x7fffffffffffffff + CAP_KQUEUE = 0x400000000100040 + CAP_KQUEUE_CHANGE = 0x400000000100000 + CAP_KQUEUE_EVENT = 0x400000000000040 + CAP_LINKAT_SOURCE = 0x200020000000400 + CAP_LINKAT_TARGET = 0x200000000400400 + CAP_LISTEN = 0x200000800000000 + CAP_LOOKUP = 0x200000000000400 + CAP_MAC_GET = 0x400000000000001 + CAP_MAC_SET = 0x400000000000002 + CAP_MKDIRAT = 0x200000000800400 + CAP_MKFIFOAT = 0x200000001000400 + CAP_MKNODAT = 0x200000002000400 + CAP_MMAP = 0x200000000000010 + CAP_MMAP_R = 0x20000000000001d + CAP_MMAP_RW = 0x20000000000001f + CAP_MMAP_RWX = 0x20000000000003f + CAP_MMAP_RX = 0x20000000000003d + CAP_MMAP_W = 0x20000000000001e + CAP_MMAP_WX = 0x20000000000003e + CAP_MMAP_X = 0x20000000000003c + CAP_PDGETPID = 0x400000000000200 + CAP_PDKILL = 0x400000000000800 + CAP_PDWAIT = 0x400000000000400 + CAP_PEELOFF = 0x200001000000000 + CAP_POLL_EVENT = 0x400000000000020 + CAP_PREAD = 0x20000000000000d + CAP_PWRITE = 0x20000000000000e + CAP_READ = 0x200000000000001 + CAP_RECV = 0x200000000000001 + CAP_RENAMEAT_SOURCE = 0x200000004000400 + CAP_RENAMEAT_TARGET = 0x200040000000400 + CAP_RIGHTS_VERSION = 0x0 + CAP_RIGHTS_VERSION_00 = 0x0 + CAP_SEEK = 0x20000000000000c + CAP_SEEK_TELL = 0x200000000000004 + CAP_SEM_GETVALUE = 0x400000000000004 + CAP_SEM_POST = 0x400000000000008 + CAP_SEM_WAIT = 0x400000000000010 + CAP_SEND = 0x200000000000002 + CAP_SETSOCKOPT = 0x200002000000000 + CAP_SHUTDOWN = 0x200004000000000 + CAP_SOCK_CLIENT = 0x200007780000003 + CAP_SOCK_SERVER = 0x200007f60000003 + CAP_SYMLINKAT = 0x200000008000400 + CAP_TTYHOOK = 0x400000000000100 + CAP_UNLINKAT = 0x200000010000400 + CAP_UNUSED0_44 = 0x200080000000000 + CAP_UNUSED0_57 = 0x300000000000000 + CAP_UNUSED1_22 = 0x400000000200000 + CAP_UNUSED1_57 = 0x500000000000000 + CAP_WRITE = 0x200000000000002 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_MONOTONIC = 0x4 + CLOCK_MONOTONIC_FAST = 0xc + CLOCK_MONOTONIC_PRECISE = 0xb + CLOCK_PROCESS_CPUTIME_ID = 0xf + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_FAST = 0xa + CLOCK_REALTIME_PRECISE = 0x9 + CLOCK_SECOND = 0xd + CLOCK_THREAD_CPUTIME_ID = 0xe + CLOCK_UPTIME = 0x5 + CLOCK_UPTIME_FAST = 0x8 + CLOCK_UPTIME_PRECISE = 0x7 + CLOCK_VIRTUAL = 0x1 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0x18 + CTL_NET = 0x4 + DIOCGATTR = 0xc148648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFRONTSTUFF = 0x40086486 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x80506490 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCZONECMD = 0xc080648f + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_BREDR_BB = 0xff + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_BLUETOOTH_LE_LL = 0xfb + DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 + DLT_BLUETOOTH_LINUX_MONITOR = 0xfe + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 + DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_EPON = 0x103 + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_INFINIBAND = 0xf7 + DLT_IPFILTER = 0x74 + DLT_IPMB_KONTRON = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPMI_HPM_2 = 0x104 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LINUX_SLL2 = 0x114 + DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x114 + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NETLINK = 0xfd + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x79 + DLT_PKTAP = 0x102 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PROFIBUS_DL = 0x101 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 + DLT_RIO = 0x7c + DLT_RTAC_SERIAL = 0xfa + DLT_SCCP = 0x8e + DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 + DLT_WIHART = 0xdf + DLT_WIRESHARK_UPPER_PDU = 0xfc + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd + EVFILT_FS = -0x9 + EVFILT_LIO = -0xa + EVFILT_PROC = -0x5 + EVFILT_PROCDESC = -0x8 + EVFILT_READ = -0x1 + EVFILT_SENDFILE = -0xc + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0xd + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xb + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DROP = 0x1000 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_FLAG2 = 0x4000 + EV_FORCEONESHOT = 0x100 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff + EXTATTR_NAMESPACE_EMPTY = 0x0 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_CANCEL = 0x5 + F_DUP2FD = 0xa + F_DUP2FD_CLOEXEC = 0x12 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x11 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xb + F_GETOWN = 0x5 + F_OGETLK = 0x7 + F_OK = 0x0 + F_OSETLK = 0x8 + F_OSETLKW = 0x9 + F_RDAHEAD = 0x10 + F_RDLCK = 0x1 + F_READAHEAD = 0xf + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0xc + F_SETLKW = 0xd + F_SETLK_REMOTE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_UNLCKSYS = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x218f52 + IFF_CANTCONFIG = 0x10000 + IFF_DEBUG = 0x4 + IFF_DRV_OACTIVE = 0x400 + IFF_DRV_RUNNING = 0x40 + IFF_DYING = 0x200000 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MONITOR = 0x40000 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PPROMISC = 0x20000 + IFF_PROMISC = 0x100 + IFF_RENAMING = 0x400000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x80000 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_IEEE1394 = 0x90 + IFT_INFINIBAND = 0xc7 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_PPP = 0x17 + IFT_PROPVIRTUAL = 0x35 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_MASK = 0xfffffffe + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CARP = 0x70 + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DCCP = 0x21 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HIP = 0x8b + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MEAS = 0x13 + IPPROTO_MH = 0x87 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OLD_DIVERT = 0xfe + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_RESERVED_253 = 0xfd + IPPROTO_RESERVED_254 = 0xfe + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEND = 0x103 + IPPROTO_SHIM6 = 0x8c + IPPROTO_SKIP = 0x39 + IPPROTO_SPACER = 0x7fff + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TLSP = 0x38 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDANY = 0x40 + IPV6_BINDMULTI = 0x41 + IPV6_BINDV6ONLY = 0x1b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FLOWID = 0x43 + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOWTYPE = 0x44 + IPV6_FRAGTTL = 0x78 + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVFLOWID = 0x46 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRSSBUCKETID = 0x47 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RSSBUCKETID = 0x45 + IPV6_RSS_LISTEN_BUCKET = 0x42 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IPV6_VLAN_PCP = 0x4b + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BINDANY = 0x18 + IP_BINDMULTI = 0x19 + IP_BLOCK_SOURCE = 0x48 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x43 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET3 = 0x31 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FLOWID = 0x5a + IP_FLOWTYPE = 0x5b + IP_FW3 = 0x30 + IP_FW_ADD = 0x32 + IP_FW_DEL = 0x33 + IP_FW_FLUSH = 0x34 + IP_FW_GET = 0x36 + IP_FW_NAT_CFG = 0x38 + IP_FW_NAT_DEL = 0x39 + IP_FW_NAT_GET_CONFIG = 0x3a + IP_FW_NAT_GET_LOG = 0x3b + IP_FW_RESETLOG = 0x37 + IP_FW_TABLE_ADD = 0x28 + IP_FW_TABLE_DEL = 0x29 + IP_FW_TABLE_FLUSH = 0x2a + IP_FW_TABLE_GETSIZE = 0x2b + IP_FW_TABLE_LIST = 0x2c + IP_FW_ZERO = 0x35 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MINTTL = 0x42 + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_OFFMASK = 0x1fff + IP_ONESBCAST = 0x17 + IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVFLOWID = 0x5d + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b + IP_RECVRETOPTS = 0x6 + IP_RECVRSSBUCKETID = 0x5e + IP_RECVTOS = 0x44 + IP_RECVTTL = 0x41 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSSBUCKETID = 0x5c + IP_RSS_LISTEN_BUCKET = 0x1a + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + IP_VLAN_PCP = 0x4b + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_CONNWAIT = 0x4 + LOCAL_CREDS = 0x2 + LOCAL_PEERCRED = 0x1 + LOCAL_VENDOR = 0x80000000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_AUTOSYNC = 0x7 + MADV_CORE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_NOCORE = 0x8 + MADV_NORMAL = 0x0 + MADV_NOSYNC = 0x6 + MADV_PROTECT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MAP_32BIT = 0x80000 + MAP_ALIGNED_SUPER = 0x1000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_EXCL = 0x4000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 + MAP_HASSEMAPHORE = 0x200 + MAP_NOCORE = 0x20000 + MAP_NOSYNC = 0x800 + MAP_PREFAULT_READ = 0x40000 + MAP_PRIVATE = 0x2 + MAP_RESERVED0020 = 0x20 + MAP_RESERVED0040 = 0x40 + MAP_RESERVED0080 = 0x80 + MAP_RESERVED0100 = 0x100 + MAP_SHARED = 0x1 + MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ACLS = 0x8000000 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x200000000 + MNT_BYFSID = 0x8000000 + MNT_CMDFLAGS = 0xd0f0000 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_EXKERB = 0x800 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x20000000 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_GJOURNAL = 0x2000000 + MNT_IGNORE = 0x800000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NFS4ACLS = 0x10 + MNT_NOATIME = 0x10000000 + MNT_NOCLUSTERR = 0x40000000 + MNT_NOCLUSTERW = 0x80000000 + MNT_NOEXEC = 0x4 + MNT_NONBUSY = 0x4000000 + MNT_NOSUID = 0x8 + MNT_NOSYMFOLLOW = 0x400000 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x1000000 + MNT_SOFTDEP = 0x200000 + MNT_SUIDDIR = 0x100000 + MNT_SUJ = 0x100000000 + MNT_SUSPEND = 0x4 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 + MNT_UPDATE = 0x10000 + MNT_UPDATEMASK = 0xad8d0807e + MNT_USER = 0x8000 + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff + MNT_WAIT = 0x1 + MSG_CMSG_CLOEXEC = 0x40000 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_NBIO = 0x4000 + MSG_NOSIGNAL = 0x20000 + MSG_NOTIFICATION = 0x2000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x80000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x0 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFLISTL = 0x5 + NET_RT_IFMALIST = 0x4 + NFDBITS = 0x40 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_CLOSE = 0x100 + NOTE_CLOSE_WRITE = 0x200 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FILE_POLL = 0x2 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MSECONDS = 0x2 + NOTE_NSECONDS = 0x8 + NOTE_OPEN = 0x80 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_READ = 0x400 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x4 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x100000 + O_CREAT = 0x200 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x20000 + O_EXCL = 0x800 + O_EXEC = 0x40000 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RESOLVE_BENEATH = 0x800000 + O_SEARCH = 0x40000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_TTY_INIT = 0x80000 + O_VERIFY = 0x200000 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PIOD_READ_D = 0x1 + PIOD_READ_I = 0x3 + PIOD_WRITE_D = 0x2 + PIOD_WRITE_I = 0x4 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PTRACE_DEFAULT = 0x1 + PTRACE_EXEC = 0x1 + PTRACE_FORK = 0x8 + PTRACE_LWP = 0x10 + PTRACE_SCE = 0x2 + PTRACE_SCX = 0x4 + PTRACE_SYSCALL = 0x6 + PTRACE_VFORK = 0x20 + PT_ATTACH = 0xa + PT_CLEARSTEP = 0x10 + PT_CONTINUE = 0x7 + PT_DETACH = 0xb + PT_FIRSTMACH = 0x40 + PT_FOLLOW_FORK = 0x17 + PT_GETDBREGS = 0x25 + PT_GETFPREGS = 0x23 + PT_GETLWPLIST = 0xf + PT_GETNUMLWPS = 0xe + PT_GETREGS = 0x21 + PT_GET_EVENT_MASK = 0x19 + PT_GET_SC_ARGS = 0x1b + PT_GET_SC_RET = 0x1c + PT_IO = 0xc + PT_KILL = 0x8 + PT_LWPINFO = 0xd + PT_LWP_EVENTS = 0x18 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_RESUME = 0x13 + PT_SETDBREGS = 0x26 + PT_SETFPREGS = 0x24 + PT_SETREGS = 0x22 + PT_SETSTEP = 0x11 + PT_SET_EVENT_MASK = 0x1a + PT_STEP = 0x9 + PT_SUSPEND = 0x12 + PT_SYSCALL = 0x16 + PT_TO_SCE = 0x14 + PT_TO_SCX = 0x15 + PT_TRACE_ME = 0x0 + PT_VM_ENTRY = 0x29 + PT_VM_TIMESTAMP = 0x28 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + P_ZONEID = 0xc + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FIXEDMTU = 0x80000 + RTF_FMASK = 0x1004d808 + RTF_GATEWAY = 0x2 + RTF_GWFLAG_COMPAT = 0x80000000 + RTF_HOST = 0x4 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_RNH_LOCKED = 0x40000000 + RTF_STATIC = 0x800 + RTF_STICKY = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x12 + RTM_IFANNOUNCE = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RTV_WEIGHT = 0x100 + RT_ALL_FIBS = -0x1 + RT_BLACKHOLE = 0x40 + RT_DEFAULT_FIB = 0x0 + RT_HAS_GW = 0x80 + RT_HAS_HEADER = 0x10 + RT_HAS_HEADER_BIT = 0x4 + RT_L2_ME = 0x4 + RT_L2_ME_BIT = 0x2 + RT_LLE_CACHE = 0x100 + RT_MAY_LOOP = 0x8 + RT_MAY_LOOP_BIT = 0x3 + RT_REJECT = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_BINTIME = 0x4 + SCM_CREDS = 0x3 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 + SEEK_CUR = 0x1 + SEEK_DATA = 0x3 + SEEK_END = 0x2 + SEEK_HOLE = 0x4 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPHYADDR = 0x80206949 + SIOCGDRVSPEC = 0xc028697b + SIOCGETSGCNT = 0xc0207210 + SIOCGETVIFCNT = 0xc028720f + SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e + SIOCGI2C = 0xc020693d + SIOCGIFADDR = 0xc0206921 + SIOCGIFALIAS = 0xc044692d + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020691f + SIOCGIFCONF = 0xc0106924 + SIOCGIFDESCR = 0xc020692a + SIOCGIFDOWNREASON = 0xc058699a + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFIB = 0xc020695c + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFINDEX = 0xc0206920 + SIOCGIFMAC = 0xc0206926 + SIOCGIFMEDIA = 0xc0306938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206948 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 + SIOCGIFSTATUS = 0xc331693b + SIOCGIFXMEDIA = 0xc030698b + SIOCGLANPCP = 0xc0206998 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGPRIVATE_0 = 0xc0206950 + SIOCGPRIVATE_1 = 0xc0206951 + SIOCGTUNFIB = 0xc020695e + SIOCIFCREATE = 0xc020697a + SIOCIFCREATE2 = 0xc020697c + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSDRVSPEC = 0x8028697b + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020691e + SIOCSIFDESCR = 0x80206929 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFIB = 0x8020695d + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206927 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNAME = 0x80206928 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSIFPHYS = 0x80206936 + SIOCSIFRVNET = 0xc020695b + SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSTUNFIB = 0x8020695f + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_NONBLOCK = 0x20000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BINTIME = 0x2000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1009 + SO_LINGER = 0x80 + SO_LISTENINCQLEN = 0x1013 + SO_LISTENQLEN = 0x1012 + SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 + SO_NOSIGPIPE = 0x800 + SO_NO_DDP = 0x8000 + SO_NO_OFFLOAD = 0x4000 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1010 + SO_PROTOCOL = 0x1016 + SO_PROTOTYPE = 0x1016 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RERROR = 0x20000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 + SO_SETFIB = 0x1014 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USER_COOKIE = 0x1015 + SO_VENDOR = 0x80000000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB3 = 0x4 + TABDLY = 0x4 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_FAST_OPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_PAD = 0x0 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_WINDOW = 0x3 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_ALGORITHM = 0x43b + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_EXTRA_STATE = 0x453 + TCP_BBR_FLOOR_MIN_TSO = 0x454 + TCP_BBR_HDWR_PACE = 0x451 + TCP_BBR_HOLD_TARGET = 0x436 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_MIN_TOPACEOUT = 0x455 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_OH = 0x435 + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_POLICER_DETECT = 0x457 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_SEND_IWND_IN_TSO = 0x44f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_TMR_PACE_OH = 0x448 + TCP_BBR_TSLIMITS = 0x434 + TCP_BBR_TSTMP_RAISES = 0x456 + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 + TCP_BBR_USE_RACK_CHEAT = 0x450 + TCP_BBR_UTTER_MAX_TSO = 0x452 + TCP_CA_NAME_MAX = 0x10 + TCP_CCALGOOPT = 0x41 + TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DELACK = 0x48 + TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 + TCP_FUNCTION_BLK = 0x2000 + TCP_FUNCTION_NAME_LEN_MAX = 0x20 + TCP_INFO = 0x20 + TCP_KEEPCNT = 0x400 + TCP_KEEPIDLE = 0x100 + TCP_KEEPINIT = 0x80 + TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOG_ID_LEN = 0x40 + TCP_MAXBURST = 0x4 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_PCAP_IN = 0x1000 + TCP_PCAP_OUT = 0x800 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_GP_INCREASE = 0x446 + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 + TCP_VENDOR = 0x80000000 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGPTN = 0x4004740f + TIOCGSID = 0x40047463 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DCD = 0x40 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMASTER = 0x2000741c + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VERASE2 = 0x7 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_BCACHE_SIZE_MAX = 0x19000000 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x4 + WCOREFLAG = 0x80 + WEXITED = 0x10 + WLINUXCLONE = 0x80000000 + WNOHANG = 0x1 + WNOWAIT = 0x8 + WSTOPPED = 0x2 + WTRAPPED = 0x20 + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x59) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x55) + ECAPMODE = syscall.Errno(0x5e) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDOOFUS = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x56) + EINPROGRESS = syscall.Errno(0x24) + EINTEGRITY = syscall.Errno(0x61) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x61) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5a) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x57) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5b) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCAPABLE = syscall.Errno(0x5d) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5f) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x60) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5c) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGLIBRT = syscall.Signal(0x21) + SIGLWP = syscall.Signal(0x20) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EWOULDBLOCK", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "ECANCELED", "operation canceled"}, + {86, "EILSEQ", "illegal byte sequence"}, + {87, "ENOATTR", "attribute not found"}, + {88, "EDOOFUS", "programming error"}, + {89, "EBADMSG", "bad message"}, + {90, "EMULTIHOP", "multihop attempted"}, + {91, "ENOLINK", "link has been severed"}, + {92, "EPROTO", "protocol error"}, + {93, "ENOTCAPABLE", "capabilities insufficient"}, + {94, "ECAPMODE", "not permitted in capability mode"}, + {95, "ENOTRECOVERABLE", "state not recoverable"}, + {96, "EOWNERDEAD", "previous owner died"}, + {97, "EINTEGRITY", "integrity check failed"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "unknown signal"}, + {33, "SIGLIBRT", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go new file mode 100644 index 0000000..341b4d9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go @@ -0,0 +1,2148 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && freebsd +// +build riscv64,freebsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x23 + AF_ATM = 0x1e + AF_BLUETOOTH = 0x24 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_HYPERV = 0x2b + AF_IEEE80211 = 0x25 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1c + AF_INET6_SDP = 0x2a + AF_INET_SDP = 0x28 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x2b + AF_NATM = 0x1d + AF_NETBIOS = 0x6 + AF_NETGRAPH = 0x20 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SCLUSTER = 0x22 + AF_SIP = 0x18 + AF_SLOW = 0x21 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VENDOR00 = 0x27 + AF_VENDOR01 = 0x29 + AF_VENDOR03 = 0x2d + AF_VENDOR04 = 0x2f + AF_VENDOR05 = 0x31 + AF_VENDOR06 = 0x33 + AF_VENDOR07 = 0x35 + AF_VENDOR08 = 0x37 + AF_VENDOR09 = 0x39 + AF_VENDOR10 = 0x3b + AF_VENDOR11 = 0x3d + AF_VENDOR12 = 0x3f + AF_VENDOR13 = 0x41 + AF_VENDOR14 = 0x43 + AF_VENDOR15 = 0x45 + AF_VENDOR16 = 0x47 + AF_VENDOR17 = 0x49 + AF_VENDOR18 = 0x4b + AF_VENDOR19 = 0x4d + AF_VENDOR20 = 0x4f + AF_VENDOR21 = 0x51 + AF_VENDOR22 = 0x53 + AF_VENDOR23 = 0x55 + AF_VENDOR24 = 0x57 + AF_VENDOR25 = 0x59 + AF_VENDOR26 = 0x5b + AF_VENDOR27 = 0x5d + AF_VENDOR28 = 0x5f + AF_VENDOR29 = 0x61 + AF_VENDOR30 = 0x63 + AF_VENDOR31 = 0x65 + AF_VENDOR32 = 0x67 + AF_VENDOR33 = 0x69 + AF_VENDOR34 = 0x6b + AF_VENDOR35 = 0x6d + AF_VENDOR36 = 0x6f + AF_VENDOR37 = 0x71 + AF_VENDOR38 = 0x73 + AF_VENDOR39 = 0x75 + AF_VENDOR40 = 0x77 + AF_VENDOR41 = 0x79 + AF_VENDOR42 = 0x7b + AF_VENDOR43 = 0x7d + AF_VENDOR44 = 0x7f + AF_VENDOR45 = 0x81 + AF_VENDOR46 = 0x83 + AF_VENDOR47 = 0x85 + ALTWERASE = 0x200 + B0 = 0x0 + B1000000 = 0xf4240 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1500000 = 0x16e360 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B2000000 = 0x1e8480 + B230400 = 0x38400 + B2400 = 0x960 + B2500000 = 0x2625a0 + B28800 = 0x7080 + B300 = 0x12c + B3000000 = 0x2dc6c0 + B3500000 = 0x3567e0 + B38400 = 0x9600 + B4000000 = 0x3d0900 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B500000 = 0x7a120 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427c + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRECTION = 0x40044276 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0104279 + BIOCGETBUFMODE = 0x4004427d + BIOCGETIF = 0x4020426b + BIOCGETZMAX = 0x4008427f + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044272 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSEESENT = 0x40044276 + BIOCGSTATS = 0x4008426f + BIOCGTSTAMP = 0x40044283 + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x2000427a + BIOCPROMISC = 0x20004269 + BIOCROTZBUF = 0x40184280 + BIOCSBLEN = 0xc0044266 + BIOCSDIRECTION = 0x80044277 + BIOCSDLT = 0x80044278 + BIOCSETBUFMODE = 0x8004427e + BIOCSETF = 0x80104267 + BIOCSETFNR = 0x80104282 + BIOCSETIF = 0x8020426c + BIOCSETVLANPCP = 0x80044285 + BIOCSETWF = 0x8010427b + BIOCSETZBUF = 0x80184281 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044273 + BIOCSRTIMEOUT = 0x8010426d + BIOCSSEESENT = 0x80044277 + BIOCSTSTAMP = 0x80044284 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x8 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_BUFMODE_BUFFER = 0x1 + BPF_BUFMODE_ZBUF = 0x2 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x80000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_T_BINTIME = 0x2 + BPF_T_BINTIME_FAST = 0x102 + BPF_T_BINTIME_MONOTONIC = 0x202 + BPF_T_BINTIME_MONOTONIC_FAST = 0x302 + BPF_T_FAST = 0x100 + BPF_T_FLAG_MASK = 0x300 + BPF_T_FORMAT_MASK = 0x3 + BPF_T_MICROTIME = 0x0 + BPF_T_MICROTIME_FAST = 0x100 + BPF_T_MICROTIME_MONOTONIC = 0x200 + BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 + BPF_T_MONOTONIC = 0x200 + BPF_T_MONOTONIC_FAST = 0x300 + BPF_T_NANOTIME = 0x1 + BPF_T_NANOTIME_FAST = 0x101 + BPF_T_NANOTIME_MONOTONIC = 0x201 + BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 + BPF_T_NONE = 0x3 + BPF_T_NORMAL = 0x0 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XOR = 0xa0 + BRKINT = 0x2 + CAP_ACCEPT = 0x200000020000000 + CAP_ACL_CHECK = 0x400000000010000 + CAP_ACL_DELETE = 0x400000000020000 + CAP_ACL_GET = 0x400000000040000 + CAP_ACL_SET = 0x400000000080000 + CAP_ALL0 = 0x20007ffffffffff + CAP_ALL1 = 0x4000000001fffff + CAP_BIND = 0x200000040000000 + CAP_BINDAT = 0x200008000000400 + CAP_CHFLAGSAT = 0x200000000001400 + CAP_CONNECT = 0x200000080000000 + CAP_CONNECTAT = 0x200010000000400 + CAP_CREATE = 0x200000000000040 + CAP_EVENT = 0x400000000000020 + CAP_EXTATTR_DELETE = 0x400000000001000 + CAP_EXTATTR_GET = 0x400000000002000 + CAP_EXTATTR_LIST = 0x400000000004000 + CAP_EXTATTR_SET = 0x400000000008000 + CAP_FCHDIR = 0x200000000000800 + CAP_FCHFLAGS = 0x200000000001000 + CAP_FCHMOD = 0x200000000002000 + CAP_FCHMODAT = 0x200000000002400 + CAP_FCHOWN = 0x200000000004000 + CAP_FCHOWNAT = 0x200000000004400 + CAP_FCNTL = 0x200000000008000 + CAP_FCNTL_ALL = 0x78 + CAP_FCNTL_GETFL = 0x8 + CAP_FCNTL_GETOWN = 0x20 + CAP_FCNTL_SETFL = 0x10 + CAP_FCNTL_SETOWN = 0x40 + CAP_FEXECVE = 0x200000000000080 + CAP_FLOCK = 0x200000000010000 + CAP_FPATHCONF = 0x200000000020000 + CAP_FSCK = 0x200000000040000 + CAP_FSTAT = 0x200000000080000 + CAP_FSTATAT = 0x200000000080400 + CAP_FSTATFS = 0x200000000100000 + CAP_FSYNC = 0x200000000000100 + CAP_FTRUNCATE = 0x200000000000200 + CAP_FUTIMES = 0x200000000200000 + CAP_FUTIMESAT = 0x200000000200400 + CAP_GETPEERNAME = 0x200000100000000 + CAP_GETSOCKNAME = 0x200000200000000 + CAP_GETSOCKOPT = 0x200000400000000 + CAP_IOCTL = 0x400000000000080 + CAP_IOCTLS_ALL = 0x7fffffffffffffff + CAP_KQUEUE = 0x400000000100040 + CAP_KQUEUE_CHANGE = 0x400000000100000 + CAP_KQUEUE_EVENT = 0x400000000000040 + CAP_LINKAT_SOURCE = 0x200020000000400 + CAP_LINKAT_TARGET = 0x200000000400400 + CAP_LISTEN = 0x200000800000000 + CAP_LOOKUP = 0x200000000000400 + CAP_MAC_GET = 0x400000000000001 + CAP_MAC_SET = 0x400000000000002 + CAP_MKDIRAT = 0x200000000800400 + CAP_MKFIFOAT = 0x200000001000400 + CAP_MKNODAT = 0x200000002000400 + CAP_MMAP = 0x200000000000010 + CAP_MMAP_R = 0x20000000000001d + CAP_MMAP_RW = 0x20000000000001f + CAP_MMAP_RWX = 0x20000000000003f + CAP_MMAP_RX = 0x20000000000003d + CAP_MMAP_W = 0x20000000000001e + CAP_MMAP_WX = 0x20000000000003e + CAP_MMAP_X = 0x20000000000003c + CAP_PDGETPID = 0x400000000000200 + CAP_PDKILL = 0x400000000000800 + CAP_PDWAIT = 0x400000000000400 + CAP_PEELOFF = 0x200001000000000 + CAP_POLL_EVENT = 0x400000000000020 + CAP_PREAD = 0x20000000000000d + CAP_PWRITE = 0x20000000000000e + CAP_READ = 0x200000000000001 + CAP_RECV = 0x200000000000001 + CAP_RENAMEAT_SOURCE = 0x200000004000400 + CAP_RENAMEAT_TARGET = 0x200040000000400 + CAP_RIGHTS_VERSION = 0x0 + CAP_RIGHTS_VERSION_00 = 0x0 + CAP_SEEK = 0x20000000000000c + CAP_SEEK_TELL = 0x200000000000004 + CAP_SEM_GETVALUE = 0x400000000000004 + CAP_SEM_POST = 0x400000000000008 + CAP_SEM_WAIT = 0x400000000000010 + CAP_SEND = 0x200000000000002 + CAP_SETSOCKOPT = 0x200002000000000 + CAP_SHUTDOWN = 0x200004000000000 + CAP_SOCK_CLIENT = 0x200007780000003 + CAP_SOCK_SERVER = 0x200007f60000003 + CAP_SYMLINKAT = 0x200000008000400 + CAP_TTYHOOK = 0x400000000000100 + CAP_UNLINKAT = 0x200000010000400 + CAP_UNUSED0_44 = 0x200080000000000 + CAP_UNUSED0_57 = 0x300000000000000 + CAP_UNUSED1_22 = 0x400000000200000 + CAP_UNUSED1_57 = 0x500000000000000 + CAP_WRITE = 0x200000000000002 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x5 + CLOCK_MONOTONIC = 0x4 + CLOCK_MONOTONIC_COARSE = 0xc + CLOCK_MONOTONIC_FAST = 0xc + CLOCK_MONOTONIC_PRECISE = 0xb + CLOCK_PROCESS_CPUTIME_ID = 0xf + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_COARSE = 0xa + CLOCK_REALTIME_FAST = 0xa + CLOCK_REALTIME_PRECISE = 0x9 + CLOCK_SECOND = 0xd + CLOCK_THREAD_CPUTIME_ID = 0xe + CLOCK_UPTIME = 0x5 + CLOCK_UPTIME_FAST = 0x8 + CLOCK_UPTIME_PRECISE = 0x7 + CLOCK_VIRTUAL = 0x1 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x30000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0x18 + CTL_NET = 0x4 + DIOCGATTR = 0xc148648e + DIOCGDELETE = 0x80106488 + DIOCGFLUSH = 0x20006487 + DIOCGFWHEADS = 0x40046483 + DIOCGFWSECTORS = 0x40046482 + DIOCGIDENT = 0x41006489 + DIOCGKERNELDUMP = 0xc0986492 + DIOCGMEDIASIZE = 0x40086481 + DIOCGPHYSPATH = 0x4400648d + DIOCGPROVIDERNAME = 0x4400648a + DIOCGSECTORSIZE = 0x40046480 + DIOCGSTRIPEOFFSET = 0x4008648c + DIOCGSTRIPESIZE = 0x4008648b + DIOCSKERNELDUMP = 0x80986491 + DIOCSKERNELDUMP_FREEBSD11 = 0x80046485 + DIOCSKERNELDUMP_FREEBSD12 = 0x80506490 + DIOCZONECMD = 0xc080648f + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_BREDR_BB = 0xff + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_BLUETOOTH_LE_LL = 0xfb + DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 + DLT_BLUETOOTH_LINUX_MONITOR = 0xfe + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CHDLC = 0x68 + DLT_CISCO_IOS = 0x76 + DLT_CLASS_NETBSD_RAWAF = 0x2240000 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DBUS = 0xe7 + DLT_DECT = 0xdd + DLT_DISPLAYPORT_AUX = 0x113 + DLT_DOCSIS = 0x8f + DLT_DOCSIS31_XRA31 = 0x111 + DLT_DVB_CI = 0xeb + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_EPON = 0x103 + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_ETHERNET_MPACKET = 0x112 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NOFCS = 0xe6 + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_INFINIBAND = 0xf7 + DLT_IPFILTER = 0x74 + DLT_IPMB_KONTRON = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPMI_HPM_2 = 0x104 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xf2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_ISO_14443 = 0x108 + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_ATM_CEMIC = 0xee + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FIBRECHANNEL = 0xea + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_SRX_E2E = 0xe9 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_JUNIPER_VS = 0xe8 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_PPP_WITHDIRECTION = 0xa6 + DLT_LINUX_SLL = 0x71 + DLT_LINUX_SLL2 = 0x114 + DLT_LOOP = 0x6c + DLT_LORATAP = 0x10e + DLT_LTALK = 0x72 + DLT_MATCHING_MAX = 0x114 + DLT_MATCHING_MIN = 0x68 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPEG_2_TS = 0xf3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_MUX27010 = 0xec + DLT_NETANALYZER = 0xf0 + DLT_NETANALYZER_TRANSPARENT = 0xf1 + DLT_NETLINK = 0xfd + DLT_NFC_LLCP = 0xf5 + DLT_NFLOG = 0xef + DLT_NG40 = 0xf4 + DLT_NORDIC_BLE = 0x110 + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x79 + DLT_PKTAP = 0x102 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PPP_WITH_DIRECTION = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PROFIBUS_DL = 0x101 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RDS = 0x109 + DLT_REDBACK_SMARTEDGE = 0x20 + DLT_RIO = 0x7c + DLT_RTAC_SERIAL = 0xfa + DLT_SCCP = 0x8e + DLT_SCTP = 0xf8 + DLT_SDLC = 0x10c + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_STANAG_5066_D_PDU = 0xed + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TI_LLN_SNIFFER = 0x10d + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USBPCAP = 0xf9 + DLT_USB_DARWIN = 0x10a + DLT_USB_FREEBSD = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DLT_VSOCK = 0x10f + DLT_WATTSTOPPER_DLM = 0x107 + DLT_WIHART = 0xdf + DLT_WIRESHARK_UPPER_PDU = 0xfc + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DLT_ZWAVE_R1_R2 = 0x105 + DLT_ZWAVE_R3 = 0x106 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EHE_DEAD_PRIORITY = -0x1 + EVFILT_AIO = -0x3 + EVFILT_EMPTY = -0xd + EVFILT_FS = -0x9 + EVFILT_LIO = -0xa + EVFILT_PROC = -0x5 + EVFILT_PROCDESC = -0x8 + EVFILT_READ = -0x1 + EVFILT_SENDFILE = -0xc + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0xd + EVFILT_TIMER = -0x7 + EVFILT_USER = -0xb + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVNAMEMAP_NAME_SIZE = 0x40 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_DROP = 0x1000 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_FLAG2 = 0x4000 + EV_FORCEONESHOT = 0x100 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_MAXNAMELEN = 0xff + EXTATTR_NAMESPACE_EMPTY = 0x0 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_NONE = -0xc8 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_ADD_SEALS = 0x13 + F_CANCEL = 0x5 + F_DUP2FD = 0xa + F_DUP2FD_CLOEXEC = 0x12 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x11 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xb + F_GETOWN = 0x5 + F_GET_SEALS = 0x14 + F_ISUNIONSTACK = 0x15 + F_KINFO = 0x16 + F_OGETLK = 0x7 + F_OK = 0x0 + F_OSETLK = 0x8 + F_OSETLKW = 0x9 + F_RDAHEAD = 0x10 + F_RDLCK = 0x1 + F_READAHEAD = 0xf + F_SEAL_GROW = 0x4 + F_SEAL_SEAL = 0x1 + F_SEAL_SHRINK = 0x2 + F_SEAL_WRITE = 0x8 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0xc + F_SETLKW = 0xd + F_SETLK_REMOTE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_UNLCKSYS = 0x4 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFCAP_WOL_MAGIC = 0x2000 + IFF_ALLMULTI = 0x200 + IFF_ALTPHYS = 0x4000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x218f72 + IFF_CANTCONFIG = 0x10000 + IFF_DEBUG = 0x4 + IFF_DRV_OACTIVE = 0x400 + IFF_DRV_RUNNING = 0x40 + IFF_DYING = 0x200000 + IFF_KNOWSEPOCH = 0x20 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MONITOR = 0x40000 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOGROUP = 0x800000 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PPROMISC = 0x20000 + IFF_PROMISC = 0x100 + IFF_RENAMING = 0x400000 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x80000 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_BRIDGE = 0xd1 + IFT_CARP = 0xf8 + IFT_IEEE1394 = 0x90 + IFT_INFINIBAND = 0xc7 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_PPP = 0x17 + IFT_PROPVIRTUAL = 0x35 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_NETMASK_DEFAULT = 0xffffff00 + IN_RFC3021_MASK = 0xfffffffe + IPPROTO_3PC = 0x22 + IPPROTO_ADFS = 0x44 + IPPROTO_AH = 0x33 + IPPROTO_AHIP = 0x3d + IPPROTO_APES = 0x63 + IPPROTO_ARGUS = 0xd + IPPROTO_AX25 = 0x5d + IPPROTO_BHA = 0x31 + IPPROTO_BLT = 0x1e + IPPROTO_BRSATMON = 0x4c + IPPROTO_CARP = 0x70 + IPPROTO_CFTP = 0x3e + IPPROTO_CHAOS = 0x10 + IPPROTO_CMTP = 0x26 + IPPROTO_CPHB = 0x49 + IPPROTO_CPNX = 0x48 + IPPROTO_DCCP = 0x21 + IPPROTO_DDP = 0x25 + IPPROTO_DGP = 0x56 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_EMCON = 0xe + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GMTP = 0x64 + IPPROTO_GRE = 0x2f + IPPROTO_HELLO = 0x3f + IPPROTO_HIP = 0x8b + IPPROTO_HMP = 0x14 + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IDPR = 0x23 + IPPROTO_IDRP = 0x2d + IPPROTO_IGMP = 0x2 + IPPROTO_IGP = 0x55 + IPPROTO_IGRP = 0x58 + IPPROTO_IL = 0x28 + IPPROTO_INLSP = 0x34 + IPPROTO_INP = 0x20 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPCV = 0x47 + IPPROTO_IPEIP = 0x5e + IPPROTO_IPIP = 0x4 + IPPROTO_IPPC = 0x43 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IRTP = 0x1c + IPPROTO_KRYPTOLAN = 0x41 + IPPROTO_LARP = 0x5b + IPPROTO_LEAF1 = 0x19 + IPPROTO_LEAF2 = 0x1a + IPPROTO_MAX = 0x100 + IPPROTO_MEAS = 0x13 + IPPROTO_MH = 0x87 + IPPROTO_MHRP = 0x30 + IPPROTO_MICP = 0x5f + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_MTP = 0x5c + IPPROTO_MUX = 0x12 + IPPROTO_ND = 0x4d + IPPROTO_NHRP = 0x36 + IPPROTO_NONE = 0x3b + IPPROTO_NSP = 0x1f + IPPROTO_NVPII = 0xb + IPPROTO_OLD_DIVERT = 0xfe + IPPROTO_OSPFIGP = 0x59 + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PGM = 0x71 + IPPROTO_PIGP = 0x9 + IPPROTO_PIM = 0x67 + IPPROTO_PRM = 0x15 + IPPROTO_PUP = 0xc + IPPROTO_PVP = 0x4b + IPPROTO_RAW = 0xff + IPPROTO_RCCMON = 0xa + IPPROTO_RDP = 0x1b + IPPROTO_RESERVED_253 = 0xfd + IPPROTO_RESERVED_254 = 0xfe + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_RVD = 0x42 + IPPROTO_SATEXPAK = 0x40 + IPPROTO_SATMON = 0x45 + IPPROTO_SCCSP = 0x60 + IPPROTO_SCTP = 0x84 + IPPROTO_SDRP = 0x2a + IPPROTO_SEND = 0x103 + IPPROTO_SHIM6 = 0x8c + IPPROTO_SKIP = 0x39 + IPPROTO_SPACER = 0x7fff + IPPROTO_SRPC = 0x5a + IPPROTO_ST = 0x7 + IPPROTO_SVMTP = 0x52 + IPPROTO_SWIPE = 0x35 + IPPROTO_TCF = 0x57 + IPPROTO_TCP = 0x6 + IPPROTO_TLSP = 0x38 + IPPROTO_TP = 0x1d + IPPROTO_TPXX = 0x27 + IPPROTO_TRUNK1 = 0x17 + IPPROTO_TRUNK2 = 0x18 + IPPROTO_TTP = 0x54 + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPPROTO_VINES = 0x53 + IPPROTO_VISA = 0x46 + IPPROTO_VMTP = 0x51 + IPPROTO_WBEXPAK = 0x4f + IPPROTO_WBMON = 0x4e + IPPROTO_WSN = 0x4a + IPPROTO_XNET = 0xf + IPPROTO_XTP = 0x24 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_BINDANY = 0x40 + IPV6_BINDMULTI = 0x41 + IPV6_BINDV6ONLY = 0x1b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FLOWID = 0x43 + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_LEN = 0x14 + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FLOWTYPE = 0x44 + IPV6_FRAGTTL = 0x78 + IPV6_FW_ADD = 0x1e + IPV6_FW_DEL = 0x1f + IPV6_FW_FLUSH = 0x20 + IPV6_FW_GET = 0x22 + IPV6_FW_ZERO = 0x21 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXOPTHDR = 0x800 + IPV6_MAXPACKET = 0xffff + IPV6_MAX_GROUP_SRC_FILTER = 0x200 + IPV6_MAX_MEMBERSHIPS = 0xfff + IPV6_MAX_SOCK_SRC_FILTER = 0x80 + IPV6_MMTU = 0x500 + IPV6_MSFILTER = 0x4a + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_ORIGDSTADDR = 0x48 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_PREFER_TEMPADDR = 0x3f + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVFLOWID = 0x46 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVORIGDSTADDR = 0x48 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRSSBUCKETID = 0x47 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RSSBUCKETID = 0x45 + IPV6_RSS_LISTEN_BUCKET = 0x42 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IPV6_VLAN_PCP = 0x4b + IP_ADD_MEMBERSHIP = 0xc + IP_ADD_SOURCE_MEMBERSHIP = 0x46 + IP_BINDANY = 0x18 + IP_BINDMULTI = 0x19 + IP_BLOCK_SOURCE = 0x48 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DONTFRAG = 0x43 + IP_DROP_MEMBERSHIP = 0xd + IP_DROP_SOURCE_MEMBERSHIP = 0x47 + IP_DUMMYNET3 = 0x31 + IP_DUMMYNET_CONFIGURE = 0x3c + IP_DUMMYNET_DEL = 0x3d + IP_DUMMYNET_FLUSH = 0x3e + IP_DUMMYNET_GET = 0x40 + IP_FLOWID = 0x5a + IP_FLOWTYPE = 0x5b + IP_FW3 = 0x30 + IP_FW_ADD = 0x32 + IP_FW_DEL = 0x33 + IP_FW_FLUSH = 0x34 + IP_FW_GET = 0x36 + IP_FW_NAT_CFG = 0x38 + IP_FW_NAT_DEL = 0x39 + IP_FW_NAT_GET_CONFIG = 0x3a + IP_FW_NAT_GET_LOG = 0x3b + IP_FW_RESETLOG = 0x37 + IP_FW_TABLE_ADD = 0x28 + IP_FW_TABLE_DEL = 0x29 + IP_FW_TABLE_FLUSH = 0x2a + IP_FW_TABLE_GETSIZE = 0x2b + IP_FW_TABLE_LIST = 0x2c + IP_FW_ZERO = 0x35 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x15 + IP_MAXPACKET = 0xffff + IP_MAX_GROUP_SRC_FILTER = 0x200 + IP_MAX_MEMBERSHIPS = 0xfff + IP_MAX_SOCK_MUTE_FILTER = 0x80 + IP_MAX_SOCK_SRC_FILTER = 0x80 + IP_MF = 0x2000 + IP_MINTTL = 0x42 + IP_MSFILTER = 0x4a + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_MULTICAST_VIF = 0xe + IP_OFFMASK = 0x1fff + IP_ONESBCAST = 0x17 + IP_OPTIONS = 0x1 + IP_ORIGDSTADDR = 0x1b + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVFLOWID = 0x5d + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVORIGDSTADDR = 0x1b + IP_RECVRETOPTS = 0x6 + IP_RECVRSSBUCKETID = 0x5e + IP_RECVTOS = 0x44 + IP_RECVTTL = 0x41 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RSSBUCKETID = 0x5c + IP_RSS_LISTEN_BUCKET = 0x1a + IP_RSVP_OFF = 0x10 + IP_RSVP_ON = 0xf + IP_RSVP_VIF_OFF = 0x12 + IP_RSVP_VIF_ON = 0x11 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x49 + IP_VLAN_PCP = 0x4b + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCAL_CONNWAIT = 0x4 + LOCAL_CREDS = 0x2 + LOCAL_CREDS_PERSISTENT = 0x3 + LOCAL_PEERCRED = 0x1 + LOCAL_VENDOR = 0x80000000 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_AUTOSYNC = 0x7 + MADV_CORE = 0x9 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_NOCORE = 0x8 + MADV_NORMAL = 0x0 + MADV_NOSYNC = 0x6 + MADV_PROTECT = 0xa + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MAP_32BIT = 0x80000 + MAP_ALIGNED_SUPER = 0x1000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_COPY = 0x2 + MAP_EXCL = 0x4000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_GUARD = 0x2000 + MAP_HASSEMAPHORE = 0x200 + MAP_NOCORE = 0x20000 + MAP_NOSYNC = 0x800 + MAP_PREFAULT_READ = 0x40000 + MAP_PRIVATE = 0x2 + MAP_RESERVED0020 = 0x20 + MAP_RESERVED0040 = 0x40 + MAP_RESERVED0080 = 0x80 + MAP_RESERVED0100 = 0x100 + MAP_SHARED = 0x1 + MAP_STACK = 0x400 + MCAST_BLOCK_SOURCE = 0x54 + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x50 + MCAST_JOIN_SOURCE_GROUP = 0x52 + MCAST_LEAVE_GROUP = 0x51 + MCAST_LEAVE_SOURCE_GROUP = 0x53 + MCAST_UNBLOCK_SOURCE = 0x55 + MCAST_UNDEFINED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MFD_ALLOW_SEALING = 0x2 + MFD_CLOEXEC = 0x1 + MFD_HUGETLB = 0x4 + MFD_HUGE_16GB = -0x78000000 + MFD_HUGE_16MB = 0x60000000 + MFD_HUGE_1GB = 0x78000000 + MFD_HUGE_1MB = 0x50000000 + MFD_HUGE_256MB = 0x70000000 + MFD_HUGE_2GB = 0x7c000000 + MFD_HUGE_2MB = 0x54000000 + MFD_HUGE_32MB = 0x64000000 + MFD_HUGE_512KB = 0x4c000000 + MFD_HUGE_512MB = 0x74000000 + MFD_HUGE_64KB = 0x40000000 + MFD_HUGE_8MB = 0x5c000000 + MFD_HUGE_MASK = 0xfc000000 + MFD_HUGE_SHIFT = 0x1a + MNT_ACLS = 0x8000000 + MNT_ASYNC = 0x40 + MNT_AUTOMOUNTED = 0x200000000 + MNT_BYFSID = 0x8000000 + MNT_CMDFLAGS = 0x300d0f0000 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_EMPTYDIR = 0x2000000000 + MNT_EXKERB = 0x800 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x20000000 + MNT_EXRDONLY = 0x80 + MNT_EXTLS = 0x4000000000 + MNT_EXTLSCERT = 0x8000000000 + MNT_EXTLSCERTUSER = 0x10000000000 + MNT_FORCE = 0x80000 + MNT_GJOURNAL = 0x2000000 + MNT_IGNORE = 0x800000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_MULTILABEL = 0x4000000 + MNT_NFS4ACLS = 0x10 + MNT_NOATIME = 0x10000000 + MNT_NOCLUSTERR = 0x40000000 + MNT_NOCLUSTERW = 0x80000000 + MNT_NOCOVER = 0x1000000000 + MNT_NOEXEC = 0x4 + MNT_NONBUSY = 0x4000000 + MNT_NOSUID = 0x8 + MNT_NOSYMFOLLOW = 0x400000 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SNAPSHOT = 0x1000000 + MNT_SOFTDEP = 0x200000 + MNT_SUIDDIR = 0x100000 + MNT_SUJ = 0x100000000 + MNT_SUSPEND = 0x4 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UNTRUSTED = 0x800000000 + MNT_UPDATE = 0x10000 + MNT_UPDATEMASK = 0xad8d0807e + MNT_USER = 0x8000 + MNT_VERIFIED = 0x400000000 + MNT_VISFLAGMASK = 0xffef0ffff + MNT_WAIT = 0x1 + MSG_CMSG_CLOEXEC = 0x40000 + MSG_COMPAT = 0x8000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOF = 0x100 + MSG_EOR = 0x8 + MSG_NBIO = 0x4000 + MSG_NOSIGNAL = 0x20000 + MSG_NOTIFICATION = 0x2000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x80000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x0 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFLISTL = 0x5 + NET_RT_IFMALIST = 0x4 + NET_RT_NHGRP = 0x7 + NET_RT_NHOP = 0x6 + NFDBITS = 0x40 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ABSTIME = 0x10 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_CLOSE = 0x100 + NOTE_CLOSE_WRITE = 0x200 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FFAND = 0x40000000 + NOTE_FFCOPY = 0xc0000000 + NOTE_FFCTRLMASK = 0xc0000000 + NOTE_FFLAGSMASK = 0xffffff + NOTE_FFNOP = 0x0 + NOTE_FFOR = 0x80000000 + NOTE_FILE_POLL = 0x2 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_MSECONDS = 0x2 + NOTE_NSECONDS = 0x8 + NOTE_OPEN = 0x80 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_READ = 0x400 + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_SECONDS = 0x1 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRIGGER = 0x1000000 + NOTE_USECONDS = 0x4 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x100000 + O_CREAT = 0x200 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x1000000 + O_EMPTY_PATH = 0x2000000 + O_EXCL = 0x800 + O_EXEC = 0x40000 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_PATH = 0x400000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RESOLVE_BENEATH = 0x800000 + O_SEARCH = 0x40000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_TTY_INIT = 0x80000 + O_VERIFY = 0x200000 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PIOD_READ_D = 0x1 + PIOD_READ_I = 0x3 + PIOD_WRITE_D = 0x2 + PIOD_WRITE_I = 0x4 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PTRACE_DEFAULT = 0x1 + PTRACE_EXEC = 0x1 + PTRACE_FORK = 0x8 + PTRACE_LWP = 0x10 + PTRACE_SCE = 0x2 + PTRACE_SCX = 0x4 + PTRACE_SYSCALL = 0x6 + PTRACE_VFORK = 0x20 + PT_ATTACH = 0xa + PT_CLEARSTEP = 0x10 + PT_CONTINUE = 0x7 + PT_COREDUMP = 0x1d + PT_DETACH = 0xb + PT_FIRSTMACH = 0x40 + PT_FOLLOW_FORK = 0x17 + PT_GETDBREGS = 0x25 + PT_GETFPREGS = 0x23 + PT_GETLWPLIST = 0xf + PT_GETNUMLWPS = 0xe + PT_GETREGS = 0x21 + PT_GET_EVENT_MASK = 0x19 + PT_GET_SC_ARGS = 0x1b + PT_GET_SC_RET = 0x1c + PT_IO = 0xc + PT_KILL = 0x8 + PT_LWPINFO = 0xd + PT_LWP_EVENTS = 0x18 + PT_READ_D = 0x2 + PT_READ_I = 0x1 + PT_RESUME = 0x13 + PT_SETDBREGS = 0x26 + PT_SETFPREGS = 0x24 + PT_SETREGS = 0x22 + PT_SETSTEP = 0x11 + PT_SET_EVENT_MASK = 0x1a + PT_STEP = 0x9 + PT_SUSPEND = 0x12 + PT_SYSCALL = 0x16 + PT_TO_SCE = 0x14 + PT_TO_SCX = 0x15 + PT_TRACE_ME = 0x0 + PT_VM_ENTRY = 0x29 + PT_VM_TIMESTAMP = 0x28 + PT_WRITE_D = 0x5 + PT_WRITE_I = 0x4 + P_ZONEID = 0xc + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x8 + RTAX_NETMASK = 0x2 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FIXEDMTU = 0x80000 + RTF_FMASK = 0x1004d808 + RTF_GATEWAY = 0x2 + RTF_GWFLAG_COMPAT = 0x80000000 + RTF_HOST = 0x4 + RTF_LLDATA = 0x400 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MULTICAST = 0x800000 + RTF_PINNED = 0x100000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x40000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_STICKY = 0x10000000 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DELMADDR = 0x10 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x12 + RTM_IFANNOUNCE = 0x11 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_NEWMADDR = 0xf + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RTV_WEIGHT = 0x100 + RT_ALL_FIBS = -0x1 + RT_BLACKHOLE = 0x40 + RT_DEFAULT_FIB = 0x0 + RT_DEFAULT_WEIGHT = 0x1 + RT_HAS_GW = 0x80 + RT_HAS_HEADER = 0x10 + RT_HAS_HEADER_BIT = 0x4 + RT_L2_ME = 0x4 + RT_L2_ME_BIT = 0x2 + RT_LLE_CACHE = 0x100 + RT_MAX_WEIGHT = 0xffffff + RT_MAY_LOOP = 0x8 + RT_MAY_LOOP_BIT = 0x3 + RT_REJECT = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_BINTIME = 0x4 + SCM_CREDS = 0x3 + SCM_CREDS2 = 0x8 + SCM_MONOTONIC = 0x6 + SCM_REALTIME = 0x5 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x2 + SCM_TIME_INFO = 0x7 + SEEK_CUR = 0x1 + SEEK_DATA = 0x3 + SEEK_END = 0x2 + SEEK_HOLE = 0x4 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPHYADDR = 0x80206949 + SIOCGDRVSPEC = 0xc028697b + SIOCGETSGCNT = 0xc0207210 + SIOCGETVIFCNT = 0xc028720f + SIOCGHIWAT = 0x40047301 + SIOCGHWADDR = 0xc020693e + SIOCGI2C = 0xc020693d + SIOCGIFADDR = 0xc0206921 + SIOCGIFALIAS = 0xc044692d + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCAP = 0xc020691f + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0x8020692c + SIOCGIFDESCR = 0xc020692a + SIOCGIFDOWNREASON = 0xc058699a + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFIB = 0xc020695c + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFINDEX = 0xc0206920 + SIOCGIFMAC = 0xc0206926 + SIOCGIFMEDIA = 0xc0306938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc0206933 + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPDSTADDR = 0xc0206948 + SIOCGIFPHYS = 0xc0206935 + SIOCGIFPSRCADDR = 0xc0206947 + SIOCGIFRSSHASH = 0xc0186997 + SIOCGIFRSSKEY = 0xc0946996 + SIOCGIFSTATUS = 0xc331693b + SIOCGIFXMEDIA = 0xc030698b + SIOCGLANPCP = 0xc0206998 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGPRIVATE_0 = 0xc0206950 + SIOCGPRIVATE_1 = 0xc0206951 + SIOCGTUNFIB = 0xc020695e + SIOCIFCREATE = 0xc020697a + SIOCIFCREATE2 = 0xc020697c + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSDRVSPEC = 0x8028697b + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFCAP = 0x8020691e + SIOCSIFDESCR = 0x80206929 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFIB = 0x8020695d + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020693c + SIOCSIFMAC = 0x80206927 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x80206934 + SIOCSIFNAME = 0x80206928 + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSIFPHYS = 0x80206936 + SIOCSIFRVNET = 0xc020695b + SIOCSIFVNET = 0xc020695a + SIOCSLANPCP = 0x80206999 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSTUNFIB = 0x8020695f + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_MAXADDRLEN = 0xff + SOCK_NONBLOCK = 0x20000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_LOCAL = 0x0 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BINTIME = 0x2000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1019 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LABEL = 0x1009 + SO_LINGER = 0x80 + SO_LISTENINCQLEN = 0x1013 + SO_LISTENQLEN = 0x1012 + SO_LISTENQLIMIT = 0x1011 + SO_MAX_PACING_RATE = 0x1018 + SO_NOSIGPIPE = 0x800 + SO_NO_DDP = 0x8000 + SO_NO_OFFLOAD = 0x4000 + SO_OOBINLINE = 0x100 + SO_PEERLABEL = 0x1010 + SO_PROTOCOL = 0x1016 + SO_PROTOTYPE = 0x1016 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_RERROR = 0x20000 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_REUSEPORT_LB = 0x10000 + SO_SETFIB = 0x1014 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TIMESTAMP = 0x400 + SO_TS_BINTIME = 0x1 + SO_TS_CLOCK = 0x1017 + SO_TS_CLOCK_MAX = 0x3 + SO_TS_DEFAULT = 0x0 + SO_TS_MONOTONIC = 0x3 + SO_TS_REALTIME = 0x2 + SO_TS_REALTIME_MICRO = 0x0 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_USER_COOKIE = 0x1015 + SO_VENDOR = 0x80000000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB3 = 0x4 + TABDLY = 0x4 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_FAST_OPEN = 0x22 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_PAD = 0x0 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_WINDOW = 0x3 + TCP_BBR_ACK_COMP_ALG = 0x448 + TCP_BBR_ALGORITHM = 0x43b + TCP_BBR_DRAIN_INC_EXTRA = 0x43c + TCP_BBR_DRAIN_PG = 0x42e + TCP_BBR_EXTRA_GAIN = 0x449 + TCP_BBR_EXTRA_STATE = 0x453 + TCP_BBR_FLOOR_MIN_TSO = 0x454 + TCP_BBR_HDWR_PACE = 0x451 + TCP_BBR_HOLD_TARGET = 0x436 + TCP_BBR_IWINTSO = 0x42b + TCP_BBR_LOWGAIN_FD = 0x436 + TCP_BBR_LOWGAIN_HALF = 0x435 + TCP_BBR_LOWGAIN_THRESH = 0x434 + TCP_BBR_MAX_RTO = 0x439 + TCP_BBR_MIN_RTO = 0x438 + TCP_BBR_MIN_TOPACEOUT = 0x455 + TCP_BBR_ONE_RETRAN = 0x431 + TCP_BBR_PACE_CROSS = 0x442 + TCP_BBR_PACE_DEL_TAR = 0x43f + TCP_BBR_PACE_OH = 0x435 + TCP_BBR_PACE_PER_SEC = 0x43e + TCP_BBR_PACE_SEG_MAX = 0x440 + TCP_BBR_PACE_SEG_MIN = 0x441 + TCP_BBR_POLICER_DETECT = 0x457 + TCP_BBR_PROBE_RTT_GAIN = 0x44d + TCP_BBR_PROBE_RTT_INT = 0x430 + TCP_BBR_PROBE_RTT_LEN = 0x44e + TCP_BBR_RACK_INIT_RATE = 0x458 + TCP_BBR_RACK_RTT_USE = 0x44a + TCP_BBR_RECFORCE = 0x42c + TCP_BBR_REC_OVER_HPTS = 0x43a + TCP_BBR_RETRAN_WTSO = 0x44b + TCP_BBR_RWND_IS_APP = 0x42f + TCP_BBR_SEND_IWND_IN_TSO = 0x44f + TCP_BBR_STARTUP_EXIT_EPOCH = 0x43d + TCP_BBR_STARTUP_LOSS_EXIT = 0x432 + TCP_BBR_STARTUP_PG = 0x42d + TCP_BBR_TMR_PACE_OH = 0x448 + TCP_BBR_TSLIMITS = 0x434 + TCP_BBR_TSTMP_RAISES = 0x456 + TCP_BBR_UNLIMITED = 0x43b + TCP_BBR_USEDEL_RATE = 0x437 + TCP_BBR_USE_LOWGAIN = 0x433 + TCP_BBR_USE_RACK_CHEAT = 0x450 + TCP_BBR_USE_RACK_RR = 0x450 + TCP_BBR_UTTER_MAX_TSO = 0x452 + TCP_CA_NAME_MAX = 0x10 + TCP_CCALGOOPT = 0x41 + TCP_CONGESTION = 0x40 + TCP_DATA_AFTER_CLOSE = 0x44c + TCP_DEFER_OPTIONS = 0x470 + TCP_DELACK = 0x48 + TCP_FASTOPEN = 0x401 + TCP_FASTOPEN_MAX_COOKIE_LEN = 0x10 + TCP_FASTOPEN_MIN_COOKIE_LEN = 0x4 + TCP_FASTOPEN_PSK_LEN = 0x10 + TCP_FAST_RSM_HACK = 0x471 + TCP_FIN_IS_RST = 0x49 + TCP_FUNCTION_BLK = 0x2000 + TCP_FUNCTION_NAME_LEN_MAX = 0x20 + TCP_HDWR_RATE_CAP = 0x46a + TCP_HDWR_UP_ONLY = 0x46c + TCP_IDLE_REDUCE = 0x46 + TCP_INFO = 0x20 + TCP_IWND_NB = 0x2b + TCP_IWND_NSEG = 0x2c + TCP_KEEPCNT = 0x400 + TCP_KEEPIDLE = 0x100 + TCP_KEEPINIT = 0x80 + TCP_KEEPINTVL = 0x200 + TCP_LOG = 0x22 + TCP_LOGBUF = 0x23 + TCP_LOGDUMP = 0x25 + TCP_LOGDUMPID = 0x26 + TCP_LOGID = 0x24 + TCP_LOGID_CNT = 0x2e + TCP_LOG_ID_LEN = 0x40 + TCP_LOG_LIMIT = 0x4a + TCP_LOG_TAG = 0x2f + TCP_MAXBURST = 0x4 + TCP_MAXHLEN = 0x3c + TCP_MAXOLEN = 0x28 + TCP_MAXPEAKRATE = 0x45 + TCP_MAXSEG = 0x2 + TCP_MAXUNACKTIME = 0x44 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x4 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCP_NOOPT = 0x8 + TCP_NOPUSH = 0x4 + TCP_NO_PRR = 0x462 + TCP_PACING_RATE_CAP = 0x46b + TCP_PCAP_IN = 0x1000 + TCP_PCAP_OUT = 0x800 + TCP_PERF_INFO = 0x4e + TCP_PROC_ACCOUNTING = 0x4c + TCP_RACK_ABC_VAL = 0x46d + TCP_RACK_CHEAT_NOT_CONF_RATE = 0x459 + TCP_RACK_DO_DETECTION = 0x449 + TCP_RACK_EARLY_RECOV = 0x423 + TCP_RACK_EARLY_SEG = 0x424 + TCP_RACK_FORCE_MSEG = 0x45d + TCP_RACK_GP_INCREASE = 0x446 + TCP_RACK_GP_INCREASE_CA = 0x45a + TCP_RACK_GP_INCREASE_REC = 0x45c + TCP_RACK_GP_INCREASE_SS = 0x45b + TCP_RACK_IDLE_REDUCE_HIGH = 0x444 + TCP_RACK_MBUF_QUEUE = 0x41a + TCP_RACK_MEASURE_CNT = 0x46f + TCP_RACK_MIN_PACE = 0x445 + TCP_RACK_MIN_PACE_SEG = 0x446 + TCP_RACK_MIN_TO = 0x422 + TCP_RACK_NONRXT_CFG_RATE = 0x463 + TCP_RACK_NO_PUSH_AT_MAX = 0x466 + TCP_RACK_PACE_ALWAYS = 0x41f + TCP_RACK_PACE_MAX_SEG = 0x41e + TCP_RACK_PACE_RATE_CA = 0x45e + TCP_RACK_PACE_RATE_REC = 0x460 + TCP_RACK_PACE_RATE_SS = 0x45f + TCP_RACK_PACE_REDUCE = 0x41d + TCP_RACK_PACE_TO_FILL = 0x467 + TCP_RACK_PACING_BETA = 0x472 + TCP_RACK_PACING_BETA_ECN = 0x473 + TCP_RACK_PKT_DELAY = 0x428 + TCP_RACK_PROFILE = 0x469 + TCP_RACK_PROP = 0x41b + TCP_RACK_PROP_RATE = 0x420 + TCP_RACK_PRR_SENDALOT = 0x421 + TCP_RACK_REORD_FADE = 0x426 + TCP_RACK_REORD_THRESH = 0x425 + TCP_RACK_RR_CONF = 0x459 + TCP_RACK_TIMER_SLOP = 0x474 + TCP_RACK_TLP_INC_VAR = 0x429 + TCP_RACK_TLP_REDUCE = 0x41c + TCP_RACK_TLP_THRESH = 0x427 + TCP_RACK_TLP_USE = 0x447 + TCP_REC_ABC_VAL = 0x46e + TCP_REMOTE_UDP_ENCAPS_PORT = 0x47 + TCP_REUSPORT_LB_NUMA = 0x402 + TCP_REUSPORT_LB_NUMA_CURDOM = -0x1 + TCP_REUSPORT_LB_NUMA_NODOM = -0x2 + TCP_RXTLS_ENABLE = 0x29 + TCP_RXTLS_MODE = 0x2a + TCP_SHARED_CWND_ALLOWED = 0x4b + TCP_SHARED_CWND_ENABLE = 0x464 + TCP_SHARED_CWND_TIME_LIMIT = 0x468 + TCP_STATS = 0x21 + TCP_TIMELY_DYN_ADJ = 0x465 + TCP_TLS_MODE_IFNET = 0x2 + TCP_TLS_MODE_NONE = 0x0 + TCP_TLS_MODE_SW = 0x1 + TCP_TLS_MODE_TOE = 0x3 + TCP_TXTLS_ENABLE = 0x27 + TCP_TXTLS_MODE = 0x28 + TCP_USER_LOG = 0x30 + TCP_USE_CMP_ACKS = 0x4d + TCP_VENDOR = 0x80000000 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLUSH = 0x80047410 + TIOCGDRAINWAIT = 0x40047456 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGPGRP = 0x40047477 + TIOCGPTN = 0x4004740f + TIOCGSID = 0x40047463 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGDTRWAIT = 0x4004745a + TIOCMGET = 0x4004746a + TIOCMSDTRWAIT = 0x8004745b + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DCD = 0x40 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMASTER = 0x2000741c + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDRAINWAIT = 0x80047457 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSIG = 0x2004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCTIMESTAMP = 0x40107459 + TIOCUCNTL = 0x80047466 + TOSTOP = 0x400000 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VERASE2 = 0x7 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WCONTINUED = 0x4 + WCOREFLAG = 0x80 + WEXITED = 0x10 + WLINUXCLONE = 0x80000000 + WNOHANG = 0x1 + WNOWAIT = 0x8 + WSTOPPED = 0x2 + WTRAPPED = 0x20 + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x59) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x55) + ECAPMODE = syscall.Errno(0x5e) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDOOFUS = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x56) + EINPROGRESS = syscall.Errno(0x24) + EINTEGRITY = syscall.Errno(0x61) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x61) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5a) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x57) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5b) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCAPABLE = syscall.Errno(0x5d) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5f) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EOWNERDEAD = syscall.Errno(0x60) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5c) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGLIBRT = syscall.Signal(0x21) + SIGLWP = syscall.Signal(0x20) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EWOULDBLOCK", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "ECANCELED", "operation canceled"}, + {86, "EILSEQ", "illegal byte sequence"}, + {87, "ENOATTR", "attribute not found"}, + {88, "EDOOFUS", "programming error"}, + {89, "EBADMSG", "bad message"}, + {90, "EMULTIHOP", "multihop attempted"}, + {91, "ENOLINK", "link has been severed"}, + {92, "EPROTO", "protocol error"}, + {93, "ENOTCAPABLE", "capabilities insufficient"}, + {94, "ECAPMODE", "not permitted in capability mode"}, + {95, "ENOTRECOVERABLE", "state not recoverable"}, + {96, "EOWNERDEAD", "previous owner died"}, + {97, "EINTEGRITY", "integrity check failed"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "unknown signal"}, + {33, "SIGLIBRT", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go new file mode 100644 index 0000000..e174685 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -0,0 +1,3473 @@ +// Code generated by mkmerge; DO NOT EDIT. + +//go:build linux +// +build linux + +package unix + +import "syscall" + +const ( + AAFS_MAGIC = 0x5a3c69f0 + ADFS_SUPER_MAGIC = 0xadf5 + AFFS_SUPER_MAGIC = 0xadff + AFS_FS_MAGIC = 0x6b414653 + AFS_SUPER_MAGIC = 0x5346414f + AF_ALG = 0x26 + AF_APPLETALK = 0x5 + AF_ASH = 0x12 + AF_ATMPVC = 0x8 + AF_ATMSVC = 0x14 + AF_AX25 = 0x3 + AF_BLUETOOTH = 0x1f + AF_BRIDGE = 0x7 + AF_CAIF = 0x25 + AF_CAN = 0x1d + AF_DECnet = 0xc + AF_ECONET = 0x13 + AF_FILE = 0x1 + AF_IB = 0x1b + AF_IEEE802154 = 0x24 + AF_INET = 0x2 + AF_INET6 = 0xa + AF_IPX = 0x4 + AF_IRDA = 0x17 + AF_ISDN = 0x22 + AF_IUCV = 0x20 + AF_KCM = 0x29 + AF_KEY = 0xf + AF_LLC = 0x1a + AF_LOCAL = 0x1 + AF_MAX = 0x2e + AF_MCTP = 0x2d + AF_MPLS = 0x1c + AF_NETBEUI = 0xd + AF_NETLINK = 0x10 + AF_NETROM = 0x6 + AF_NFC = 0x27 + AF_PACKET = 0x11 + AF_PHONET = 0x23 + AF_PPPOX = 0x18 + AF_QIPCRTR = 0x2a + AF_RDS = 0x15 + AF_ROSE = 0xb + AF_ROUTE = 0x10 + AF_RXRPC = 0x21 + AF_SECURITY = 0xe + AF_SMC = 0x2b + AF_SNA = 0x16 + AF_TIPC = 0x1e + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_VSOCK = 0x28 + AF_WANPIPE = 0x19 + AF_X25 = 0x9 + AF_XDP = 0x2c + ALG_OP_DECRYPT = 0x0 + ALG_OP_ENCRYPT = 0x1 + ALG_SET_AEAD_ASSOCLEN = 0x4 + ALG_SET_AEAD_AUTHSIZE = 0x5 + ALG_SET_DRBG_ENTROPY = 0x6 + ALG_SET_IV = 0x2 + ALG_SET_KEY = 0x1 + ALG_SET_OP = 0x3 + ANON_INODE_FS_MAGIC = 0x9041934 + ARPHRD_6LOWPAN = 0x339 + ARPHRD_ADAPT = 0x108 + ARPHRD_APPLETLK = 0x8 + ARPHRD_ARCNET = 0x7 + ARPHRD_ASH = 0x30d + ARPHRD_ATM = 0x13 + ARPHRD_AX25 = 0x3 + ARPHRD_BIF = 0x307 + ARPHRD_CAIF = 0x336 + ARPHRD_CAN = 0x118 + ARPHRD_CHAOS = 0x5 + ARPHRD_CISCO = 0x201 + ARPHRD_CSLIP = 0x101 + ARPHRD_CSLIP6 = 0x103 + ARPHRD_DDCMP = 0x205 + ARPHRD_DLCI = 0xf + ARPHRD_ECONET = 0x30e + ARPHRD_EETHER = 0x2 + ARPHRD_ETHER = 0x1 + ARPHRD_EUI64 = 0x1b + ARPHRD_FCAL = 0x311 + ARPHRD_FCFABRIC = 0x313 + ARPHRD_FCPL = 0x312 + ARPHRD_FCPP = 0x310 + ARPHRD_FDDI = 0x306 + ARPHRD_FRAD = 0x302 + ARPHRD_HDLC = 0x201 + ARPHRD_HIPPI = 0x30c + ARPHRD_HWX25 = 0x110 + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + ARPHRD_IEEE80211 = 0x321 + ARPHRD_IEEE80211_PRISM = 0x322 + ARPHRD_IEEE80211_RADIOTAP = 0x323 + ARPHRD_IEEE802154 = 0x324 + ARPHRD_IEEE802154_MONITOR = 0x325 + ARPHRD_IEEE802_TR = 0x320 + ARPHRD_INFINIBAND = 0x20 + ARPHRD_IP6GRE = 0x337 + ARPHRD_IPDDP = 0x309 + ARPHRD_IPGRE = 0x30a + ARPHRD_IRDA = 0x30f + ARPHRD_LAPB = 0x204 + ARPHRD_LOCALTLK = 0x305 + ARPHRD_LOOPBACK = 0x304 + ARPHRD_MCTP = 0x122 + ARPHRD_METRICOM = 0x17 + ARPHRD_NETLINK = 0x338 + ARPHRD_NETROM = 0x0 + ARPHRD_NONE = 0xfffe + ARPHRD_PHONET = 0x334 + ARPHRD_PHONET_PIPE = 0x335 + ARPHRD_PIMREG = 0x30b + ARPHRD_PPP = 0x200 + ARPHRD_PRONET = 0x4 + ARPHRD_RAWHDLC = 0x206 + ARPHRD_RAWIP = 0x207 + ARPHRD_ROSE = 0x10e + ARPHRD_RSRVD = 0x104 + ARPHRD_SIT = 0x308 + ARPHRD_SKIP = 0x303 + ARPHRD_SLIP = 0x100 + ARPHRD_SLIP6 = 0x102 + ARPHRD_TUNNEL = 0x300 + ARPHRD_TUNNEL6 = 0x301 + ARPHRD_VOID = 0xffff + ARPHRD_VSOCKMON = 0x33a + ARPHRD_X25 = 0x10f + AUDIT_ADD = 0x3eb + AUDIT_ADD_RULE = 0x3f3 + AUDIT_ALWAYS = 0x2 + AUDIT_ANOM_ABEND = 0x6a5 + AUDIT_ANOM_CREAT = 0x6a7 + AUDIT_ANOM_LINK = 0x6a6 + AUDIT_ANOM_PROMISCUOUS = 0x6a4 + AUDIT_ARCH = 0xb + AUDIT_ARCH_AARCH64 = 0xc00000b7 + AUDIT_ARCH_ALPHA = 0xc0009026 + AUDIT_ARCH_ARCOMPACT = 0x4000005d + AUDIT_ARCH_ARCOMPACTBE = 0x5d + AUDIT_ARCH_ARCV2 = 0x400000c3 + AUDIT_ARCH_ARCV2BE = 0xc3 + AUDIT_ARCH_ARM = 0x40000028 + AUDIT_ARCH_ARMEB = 0x28 + AUDIT_ARCH_C6X = 0x4000008c + AUDIT_ARCH_C6XBE = 0x8c + AUDIT_ARCH_CRIS = 0x4000004c + AUDIT_ARCH_CSKY = 0x400000fc + AUDIT_ARCH_FRV = 0x5441 + AUDIT_ARCH_H8300 = 0x2e + AUDIT_ARCH_HEXAGON = 0xa4 + AUDIT_ARCH_I386 = 0x40000003 + AUDIT_ARCH_IA64 = 0xc0000032 + AUDIT_ARCH_LOONGARCH32 = 0x40000102 + AUDIT_ARCH_LOONGARCH64 = 0xc0000102 + AUDIT_ARCH_M32R = 0x58 + AUDIT_ARCH_M68K = 0x4 + AUDIT_ARCH_MICROBLAZE = 0xbd + AUDIT_ARCH_MIPS = 0x8 + AUDIT_ARCH_MIPS64 = 0x80000008 + AUDIT_ARCH_MIPS64N32 = 0xa0000008 + AUDIT_ARCH_MIPSEL = 0x40000008 + AUDIT_ARCH_MIPSEL64 = 0xc0000008 + AUDIT_ARCH_MIPSEL64N32 = 0xe0000008 + AUDIT_ARCH_NDS32 = 0x400000a7 + AUDIT_ARCH_NDS32BE = 0xa7 + AUDIT_ARCH_NIOS2 = 0x40000071 + AUDIT_ARCH_OPENRISC = 0x5c + AUDIT_ARCH_PARISC = 0xf + AUDIT_ARCH_PARISC64 = 0x8000000f + AUDIT_ARCH_PPC = 0x14 + AUDIT_ARCH_PPC64 = 0x80000015 + AUDIT_ARCH_PPC64LE = 0xc0000015 + AUDIT_ARCH_RISCV32 = 0x400000f3 + AUDIT_ARCH_RISCV64 = 0xc00000f3 + AUDIT_ARCH_S390 = 0x16 + AUDIT_ARCH_S390X = 0x80000016 + AUDIT_ARCH_SH = 0x2a + AUDIT_ARCH_SH64 = 0x8000002a + AUDIT_ARCH_SHEL = 0x4000002a + AUDIT_ARCH_SHEL64 = 0xc000002a + AUDIT_ARCH_SPARC = 0x2 + AUDIT_ARCH_SPARC64 = 0x8000002b + AUDIT_ARCH_TILEGX = 0xc00000bf + AUDIT_ARCH_TILEGX32 = 0x400000bf + AUDIT_ARCH_TILEPRO = 0x400000bc + AUDIT_ARCH_UNICORE = 0x4000006e + AUDIT_ARCH_X86_64 = 0xc000003e + AUDIT_ARCH_XTENSA = 0x5e + AUDIT_ARG0 = 0xc8 + AUDIT_ARG1 = 0xc9 + AUDIT_ARG2 = 0xca + AUDIT_ARG3 = 0xcb + AUDIT_AVC = 0x578 + AUDIT_AVC_PATH = 0x57a + AUDIT_BITMASK_SIZE = 0x40 + AUDIT_BIT_MASK = 0x8000000 + AUDIT_BIT_TEST = 0x48000000 + AUDIT_BPF = 0x536 + AUDIT_BPRM_FCAPS = 0x529 + AUDIT_CAPSET = 0x52a + AUDIT_CLASS_CHATTR = 0x2 + AUDIT_CLASS_CHATTR_32 = 0x3 + AUDIT_CLASS_DIR_WRITE = 0x0 + AUDIT_CLASS_DIR_WRITE_32 = 0x1 + AUDIT_CLASS_READ = 0x4 + AUDIT_CLASS_READ_32 = 0x5 + AUDIT_CLASS_SIGNAL = 0x8 + AUDIT_CLASS_SIGNAL_32 = 0x9 + AUDIT_CLASS_WRITE = 0x6 + AUDIT_CLASS_WRITE_32 = 0x7 + AUDIT_COMPARE_AUID_TO_EUID = 0x10 + AUDIT_COMPARE_AUID_TO_FSUID = 0xe + AUDIT_COMPARE_AUID_TO_OBJ_UID = 0x5 + AUDIT_COMPARE_AUID_TO_SUID = 0xf + AUDIT_COMPARE_EGID_TO_FSGID = 0x17 + AUDIT_COMPARE_EGID_TO_OBJ_GID = 0x4 + AUDIT_COMPARE_EGID_TO_SGID = 0x18 + AUDIT_COMPARE_EUID_TO_FSUID = 0x12 + AUDIT_COMPARE_EUID_TO_OBJ_UID = 0x3 + AUDIT_COMPARE_EUID_TO_SUID = 0x11 + AUDIT_COMPARE_FSGID_TO_OBJ_GID = 0x9 + AUDIT_COMPARE_FSUID_TO_OBJ_UID = 0x8 + AUDIT_COMPARE_GID_TO_EGID = 0x14 + AUDIT_COMPARE_GID_TO_FSGID = 0x15 + AUDIT_COMPARE_GID_TO_OBJ_GID = 0x2 + AUDIT_COMPARE_GID_TO_SGID = 0x16 + AUDIT_COMPARE_SGID_TO_FSGID = 0x19 + AUDIT_COMPARE_SGID_TO_OBJ_GID = 0x7 + AUDIT_COMPARE_SUID_TO_FSUID = 0x13 + AUDIT_COMPARE_SUID_TO_OBJ_UID = 0x6 + AUDIT_COMPARE_UID_TO_AUID = 0xa + AUDIT_COMPARE_UID_TO_EUID = 0xb + AUDIT_COMPARE_UID_TO_FSUID = 0xc + AUDIT_COMPARE_UID_TO_OBJ_UID = 0x1 + AUDIT_COMPARE_UID_TO_SUID = 0xd + AUDIT_CONFIG_CHANGE = 0x519 + AUDIT_CWD = 0x51b + AUDIT_DAEMON_ABORT = 0x4b2 + AUDIT_DAEMON_CONFIG = 0x4b3 + AUDIT_DAEMON_END = 0x4b1 + AUDIT_DAEMON_START = 0x4b0 + AUDIT_DEL = 0x3ec + AUDIT_DEL_RULE = 0x3f4 + AUDIT_DEVMAJOR = 0x64 + AUDIT_DEVMINOR = 0x65 + AUDIT_DIR = 0x6b + AUDIT_DM_CTRL = 0x53a + AUDIT_DM_EVENT = 0x53b + AUDIT_EGID = 0x6 + AUDIT_EOE = 0x528 + AUDIT_EQUAL = 0x40000000 + AUDIT_EUID = 0x2 + AUDIT_EVENT_LISTENER = 0x537 + AUDIT_EXE = 0x70 + AUDIT_EXECVE = 0x51d + AUDIT_EXIT = 0x67 + AUDIT_FAIL_PANIC = 0x2 + AUDIT_FAIL_PRINTK = 0x1 + AUDIT_FAIL_SILENT = 0x0 + AUDIT_FANOTIFY = 0x533 + AUDIT_FD_PAIR = 0x525 + AUDIT_FEATURE_BITMAP_ALL = 0x7f + AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT = 0x1 + AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME = 0x2 + AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND = 0x8 + AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH = 0x4 + AUDIT_FEATURE_BITMAP_FILTER_FS = 0x40 + AUDIT_FEATURE_BITMAP_LOST_RESET = 0x20 + AUDIT_FEATURE_BITMAP_SESSIONID_FILTER = 0x10 + AUDIT_FEATURE_CHANGE = 0x530 + AUDIT_FEATURE_LOGINUID_IMMUTABLE = 0x1 + AUDIT_FEATURE_ONLY_UNSET_LOGINUID = 0x0 + AUDIT_FEATURE_VERSION = 0x1 + AUDIT_FIELD_COMPARE = 0x6f + AUDIT_FILETYPE = 0x6c + AUDIT_FILTERKEY = 0xd2 + AUDIT_FILTER_ENTRY = 0x2 + AUDIT_FILTER_EXCLUDE = 0x5 + AUDIT_FILTER_EXIT = 0x4 + AUDIT_FILTER_FS = 0x6 + AUDIT_FILTER_PREPEND = 0x10 + AUDIT_FILTER_TASK = 0x1 + AUDIT_FILTER_TYPE = 0x5 + AUDIT_FILTER_URING_EXIT = 0x7 + AUDIT_FILTER_USER = 0x0 + AUDIT_FILTER_WATCH = 0x3 + AUDIT_FIRST_KERN_ANOM_MSG = 0x6a4 + AUDIT_FIRST_USER_MSG = 0x44c + AUDIT_FIRST_USER_MSG2 = 0x834 + AUDIT_FSGID = 0x8 + AUDIT_FSTYPE = 0x1a + AUDIT_FSUID = 0x4 + AUDIT_GET = 0x3e8 + AUDIT_GET_FEATURE = 0x3fb + AUDIT_GID = 0x5 + AUDIT_GREATER_THAN = 0x20000000 + AUDIT_GREATER_THAN_OR_EQUAL = 0x60000000 + AUDIT_INODE = 0x66 + AUDIT_INTEGRITY_DATA = 0x708 + AUDIT_INTEGRITY_EVM_XATTR = 0x70e + AUDIT_INTEGRITY_HASH = 0x70b + AUDIT_INTEGRITY_METADATA = 0x709 + AUDIT_INTEGRITY_PCR = 0x70c + AUDIT_INTEGRITY_POLICY_RULE = 0x70f + AUDIT_INTEGRITY_RULE = 0x70d + AUDIT_INTEGRITY_STATUS = 0x70a + AUDIT_IPC = 0x517 + AUDIT_IPC_SET_PERM = 0x51f + AUDIT_KERNEL = 0x7d0 + AUDIT_KERNEL_OTHER = 0x524 + AUDIT_KERN_MODULE = 0x532 + AUDIT_LAST_FEATURE = 0x1 + AUDIT_LAST_KERN_ANOM_MSG = 0x707 + AUDIT_LAST_USER_MSG = 0x4af + AUDIT_LAST_USER_MSG2 = 0xbb7 + AUDIT_LESS_THAN = 0x10000000 + AUDIT_LESS_THAN_OR_EQUAL = 0x50000000 + AUDIT_LIST = 0x3ea + AUDIT_LIST_RULES = 0x3f5 + AUDIT_LOGIN = 0x3ee + AUDIT_LOGINUID = 0x9 + AUDIT_LOGINUID_SET = 0x18 + AUDIT_MAC_CALIPSO_ADD = 0x58a + AUDIT_MAC_CALIPSO_DEL = 0x58b + AUDIT_MAC_CIPSOV4_ADD = 0x57f + AUDIT_MAC_CIPSOV4_DEL = 0x580 + AUDIT_MAC_CONFIG_CHANGE = 0x57d + AUDIT_MAC_IPSEC_ADDSA = 0x583 + AUDIT_MAC_IPSEC_ADDSPD = 0x585 + AUDIT_MAC_IPSEC_DELSA = 0x584 + AUDIT_MAC_IPSEC_DELSPD = 0x586 + AUDIT_MAC_IPSEC_EVENT = 0x587 + AUDIT_MAC_MAP_ADD = 0x581 + AUDIT_MAC_MAP_DEL = 0x582 + AUDIT_MAC_POLICY_LOAD = 0x57b + AUDIT_MAC_STATUS = 0x57c + AUDIT_MAC_UNLBL_ALLOW = 0x57e + AUDIT_MAC_UNLBL_STCADD = 0x588 + AUDIT_MAC_UNLBL_STCDEL = 0x589 + AUDIT_MAKE_EQUIV = 0x3f7 + AUDIT_MAX_FIELDS = 0x40 + AUDIT_MAX_FIELD_COMPARE = 0x19 + AUDIT_MAX_KEY_LEN = 0x100 + AUDIT_MESSAGE_TEXT_MAX = 0x2170 + AUDIT_MMAP = 0x52b + AUDIT_MQ_GETSETATTR = 0x523 + AUDIT_MQ_NOTIFY = 0x522 + AUDIT_MQ_OPEN = 0x520 + AUDIT_MQ_SENDRECV = 0x521 + AUDIT_MSGTYPE = 0xc + AUDIT_NEGATE = 0x80000000 + AUDIT_NETFILTER_CFG = 0x52d + AUDIT_NETFILTER_PKT = 0x52c + AUDIT_NEVER = 0x0 + AUDIT_NLGRP_MAX = 0x1 + AUDIT_NOT_EQUAL = 0x30000000 + AUDIT_NR_FILTERS = 0x8 + AUDIT_OBJ_GID = 0x6e + AUDIT_OBJ_LEV_HIGH = 0x17 + AUDIT_OBJ_LEV_LOW = 0x16 + AUDIT_OBJ_PID = 0x526 + AUDIT_OBJ_ROLE = 0x14 + AUDIT_OBJ_TYPE = 0x15 + AUDIT_OBJ_UID = 0x6d + AUDIT_OBJ_USER = 0x13 + AUDIT_OPENAT2 = 0x539 + AUDIT_OPERATORS = 0x78000000 + AUDIT_PATH = 0x516 + AUDIT_PERM = 0x6a + AUDIT_PERM_ATTR = 0x8 + AUDIT_PERM_EXEC = 0x1 + AUDIT_PERM_READ = 0x4 + AUDIT_PERM_WRITE = 0x2 + AUDIT_PERS = 0xa + AUDIT_PID = 0x0 + AUDIT_POSSIBLE = 0x1 + AUDIT_PPID = 0x12 + AUDIT_PROCTITLE = 0x52f + AUDIT_REPLACE = 0x531 + AUDIT_SADDR_FAM = 0x71 + AUDIT_SECCOMP = 0x52e + AUDIT_SELINUX_ERR = 0x579 + AUDIT_SESSIONID = 0x19 + AUDIT_SET = 0x3e9 + AUDIT_SET_FEATURE = 0x3fa + AUDIT_SGID = 0x7 + AUDIT_SID_UNSET = 0xffffffff + AUDIT_SIGNAL_INFO = 0x3f2 + AUDIT_SOCKADDR = 0x51a + AUDIT_SOCKETCALL = 0x518 + AUDIT_STATUS_BACKLOG_LIMIT = 0x10 + AUDIT_STATUS_BACKLOG_WAIT_TIME = 0x20 + AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL = 0x80 + AUDIT_STATUS_ENABLED = 0x1 + AUDIT_STATUS_FAILURE = 0x2 + AUDIT_STATUS_LOST = 0x40 + AUDIT_STATUS_PID = 0x4 + AUDIT_STATUS_RATE_LIMIT = 0x8 + AUDIT_SUBJ_CLR = 0x11 + AUDIT_SUBJ_ROLE = 0xe + AUDIT_SUBJ_SEN = 0x10 + AUDIT_SUBJ_TYPE = 0xf + AUDIT_SUBJ_USER = 0xd + AUDIT_SUCCESS = 0x68 + AUDIT_SUID = 0x3 + AUDIT_SYSCALL = 0x514 + AUDIT_SYSCALL_CLASSES = 0x10 + AUDIT_TIME_ADJNTPVAL = 0x535 + AUDIT_TIME_INJOFFSET = 0x534 + AUDIT_TRIM = 0x3f6 + AUDIT_TTY = 0x527 + AUDIT_TTY_GET = 0x3f8 + AUDIT_TTY_SET = 0x3f9 + AUDIT_UID = 0x1 + AUDIT_UID_UNSET = 0xffffffff + AUDIT_UNUSED_BITS = 0x7fffc00 + AUDIT_URINGOP = 0x538 + AUDIT_USER = 0x3ed + AUDIT_USER_AVC = 0x453 + AUDIT_USER_TTY = 0x464 + AUDIT_VERSION_BACKLOG_LIMIT = 0x1 + AUDIT_VERSION_BACKLOG_WAIT_TIME = 0x2 + AUDIT_VERSION_LATEST = 0x7f + AUDIT_WATCH = 0x69 + AUDIT_WATCH_INS = 0x3ef + AUDIT_WATCH_LIST = 0x3f1 + AUDIT_WATCH_REM = 0x3f0 + AUTOFS_SUPER_MAGIC = 0x187 + B0 = 0x0 + B110 = 0x3 + B1200 = 0x9 + B134 = 0x4 + B150 = 0x5 + B1800 = 0xa + B19200 = 0xe + B200 = 0x6 + B2400 = 0xb + B300 = 0x7 + B38400 = 0xf + B4800 = 0xc + B50 = 0x1 + B600 = 0x8 + B75 = 0x2 + B9600 = 0xd + BDEVFS_MAGIC = 0x62646576 + BINDERFS_SUPER_MAGIC = 0x6c6f6f70 + BINFMTFS_MAGIC = 0x42494e4d + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALU = 0x4 + BPF_ALU64 = 0x7 + BPF_AND = 0x50 + BPF_ARSH = 0xc0 + BPF_ATOMIC = 0xc0 + BPF_B = 0x10 + BPF_BUILD_ID_SIZE = 0x14 + BPF_CALL = 0x80 + BPF_CMPXCHG = 0xf1 + BPF_DIV = 0x30 + BPF_DW = 0x18 + BPF_END = 0xd0 + BPF_EXIT = 0x90 + BPF_FETCH = 0x1 + BPF_FROM_BE = 0x8 + BPF_FROM_LE = 0x0 + BPF_FS_MAGIC = 0xcafe4a11 + BPF_F_ALLOW_MULTI = 0x2 + BPF_F_ALLOW_OVERRIDE = 0x1 + BPF_F_ANY_ALIGNMENT = 0x2 + BPF_F_KPROBE_MULTI_RETURN = 0x1 + BPF_F_QUERY_EFFECTIVE = 0x1 + BPF_F_REPLACE = 0x4 + BPF_F_SLEEPABLE = 0x10 + BPF_F_STRICT_ALIGNMENT = 0x1 + BPF_F_TEST_RND_HI32 = 0x4 + BPF_F_TEST_RUN_ON_CPU = 0x1 + BPF_F_TEST_STATE_FREQ = 0x8 + BPF_F_TEST_XDP_LIVE_FRAMES = 0x2 + BPF_F_XDP_HAS_FRAGS = 0x20 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JLE = 0xb0 + BPF_JLT = 0xa0 + BPF_JMP = 0x5 + BPF_JMP32 = 0x6 + BPF_JNE = 0x50 + BPF_JSET = 0x40 + BPF_JSGE = 0x70 + BPF_JSGT = 0x60 + BPF_JSLE = 0xd0 + BPF_JSLT = 0xc0 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LL_OFF = -0x200000 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXINSNS = 0x1000 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MOD = 0x90 + BPF_MOV = 0xb0 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_NET_OFF = -0x100000 + BPF_OBJ_NAME_LEN = 0x10 + BPF_OR = 0x40 + BPF_PSEUDO_BTF_ID = 0x3 + BPF_PSEUDO_CALL = 0x1 + BPF_PSEUDO_FUNC = 0x4 + BPF_PSEUDO_KFUNC_CALL = 0x2 + BPF_PSEUDO_MAP_FD = 0x1 + BPF_PSEUDO_MAP_IDX = 0x5 + BPF_PSEUDO_MAP_IDX_VALUE = 0x6 + BPF_PSEUDO_MAP_VALUE = 0x2 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAG_SIZE = 0x8 + BPF_TAX = 0x0 + BPF_TO_BE = 0x8 + BPF_TO_LE = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BPF_XADD = 0xc0 + BPF_XCHG = 0xe1 + BPF_XOR = 0xa0 + BRKINT = 0x2 + BS0 = 0x0 + BTRFS_SUPER_MAGIC = 0x9123683e + BTRFS_TEST_MAGIC = 0x73727279 + BUS_BLUETOOTH = 0x5 + BUS_HIL = 0x4 + BUS_USB = 0x3 + BUS_VIRTUAL = 0x6 + CAN_BCM = 0x2 + CAN_BUS_OFF_THRESHOLD = 0x100 + CAN_CTRLMODE_3_SAMPLES = 0x4 + CAN_CTRLMODE_BERR_REPORTING = 0x10 + CAN_CTRLMODE_CC_LEN8_DLC = 0x100 + CAN_CTRLMODE_FD = 0x20 + CAN_CTRLMODE_FD_NON_ISO = 0x80 + CAN_CTRLMODE_LISTENONLY = 0x2 + CAN_CTRLMODE_LOOPBACK = 0x1 + CAN_CTRLMODE_ONE_SHOT = 0x8 + CAN_CTRLMODE_PRESUME_ACK = 0x40 + CAN_CTRLMODE_TDC_AUTO = 0x200 + CAN_CTRLMODE_TDC_MANUAL = 0x400 + CAN_EFF_FLAG = 0x80000000 + CAN_EFF_ID_BITS = 0x1d + CAN_EFF_MASK = 0x1fffffff + CAN_ERROR_PASSIVE_THRESHOLD = 0x80 + CAN_ERROR_WARNING_THRESHOLD = 0x60 + CAN_ERR_ACK = 0x20 + CAN_ERR_BUSERROR = 0x80 + CAN_ERR_BUSOFF = 0x40 + CAN_ERR_CNT = 0x200 + CAN_ERR_CRTL = 0x4 + CAN_ERR_CRTL_ACTIVE = 0x40 + CAN_ERR_CRTL_RX_OVERFLOW = 0x1 + CAN_ERR_CRTL_RX_PASSIVE = 0x10 + CAN_ERR_CRTL_RX_WARNING = 0x4 + CAN_ERR_CRTL_TX_OVERFLOW = 0x2 + CAN_ERR_CRTL_TX_PASSIVE = 0x20 + CAN_ERR_CRTL_TX_WARNING = 0x8 + CAN_ERR_CRTL_UNSPEC = 0x0 + CAN_ERR_DLC = 0x8 + CAN_ERR_FLAG = 0x20000000 + CAN_ERR_LOSTARB = 0x2 + CAN_ERR_LOSTARB_UNSPEC = 0x0 + CAN_ERR_MASK = 0x1fffffff + CAN_ERR_PROT = 0x8 + CAN_ERR_PROT_ACTIVE = 0x40 + CAN_ERR_PROT_BIT = 0x1 + CAN_ERR_PROT_BIT0 = 0x8 + CAN_ERR_PROT_BIT1 = 0x10 + CAN_ERR_PROT_FORM = 0x2 + CAN_ERR_PROT_LOC_ACK = 0x19 + CAN_ERR_PROT_LOC_ACK_DEL = 0x1b + CAN_ERR_PROT_LOC_CRC_DEL = 0x18 + CAN_ERR_PROT_LOC_CRC_SEQ = 0x8 + CAN_ERR_PROT_LOC_DATA = 0xa + CAN_ERR_PROT_LOC_DLC = 0xb + CAN_ERR_PROT_LOC_EOF = 0x1a + CAN_ERR_PROT_LOC_ID04_00 = 0xe + CAN_ERR_PROT_LOC_ID12_05 = 0xf + CAN_ERR_PROT_LOC_ID17_13 = 0x7 + CAN_ERR_PROT_LOC_ID20_18 = 0x6 + CAN_ERR_PROT_LOC_ID28_21 = 0x2 + CAN_ERR_PROT_LOC_IDE = 0x5 + CAN_ERR_PROT_LOC_INTERM = 0x12 + CAN_ERR_PROT_LOC_RES0 = 0x9 + CAN_ERR_PROT_LOC_RES1 = 0xd + CAN_ERR_PROT_LOC_RTR = 0xc + CAN_ERR_PROT_LOC_SOF = 0x3 + CAN_ERR_PROT_LOC_SRTR = 0x4 + CAN_ERR_PROT_LOC_UNSPEC = 0x0 + CAN_ERR_PROT_OVERLOAD = 0x20 + CAN_ERR_PROT_STUFF = 0x4 + CAN_ERR_PROT_TX = 0x80 + CAN_ERR_PROT_UNSPEC = 0x0 + CAN_ERR_RESTARTED = 0x100 + CAN_ERR_TRX = 0x10 + CAN_ERR_TRX_CANH_NO_WIRE = 0x4 + CAN_ERR_TRX_CANH_SHORT_TO_BAT = 0x5 + CAN_ERR_TRX_CANH_SHORT_TO_GND = 0x7 + CAN_ERR_TRX_CANH_SHORT_TO_VCC = 0x6 + CAN_ERR_TRX_CANL_NO_WIRE = 0x40 + CAN_ERR_TRX_CANL_SHORT_TO_BAT = 0x50 + CAN_ERR_TRX_CANL_SHORT_TO_CANH = 0x80 + CAN_ERR_TRX_CANL_SHORT_TO_GND = 0x70 + CAN_ERR_TRX_CANL_SHORT_TO_VCC = 0x60 + CAN_ERR_TRX_UNSPEC = 0x0 + CAN_ERR_TX_TIMEOUT = 0x1 + CAN_INV_FILTER = 0x20000000 + CAN_ISOTP = 0x6 + CAN_J1939 = 0x7 + CAN_MAX_DLC = 0x8 + CAN_MAX_DLEN = 0x8 + CAN_MAX_RAW_DLC = 0xf + CAN_MCNET = 0x5 + CAN_MTU = 0x10 + CAN_NPROTO = 0x8 + CAN_RAW = 0x1 + CAN_RAW_FILTER_MAX = 0x200 + CAN_RTR_FLAG = 0x40000000 + CAN_SFF_ID_BITS = 0xb + CAN_SFF_MASK = 0x7ff + CAN_TERMINATION_DISABLED = 0x0 + CAN_TP16 = 0x3 + CAN_TP20 = 0x4 + CAP_AUDIT_CONTROL = 0x1e + CAP_AUDIT_READ = 0x25 + CAP_AUDIT_WRITE = 0x1d + CAP_BLOCK_SUSPEND = 0x24 + CAP_BPF = 0x27 + CAP_CHECKPOINT_RESTORE = 0x28 + CAP_CHOWN = 0x0 + CAP_DAC_OVERRIDE = 0x1 + CAP_DAC_READ_SEARCH = 0x2 + CAP_FOWNER = 0x3 + CAP_FSETID = 0x4 + CAP_IPC_LOCK = 0xe + CAP_IPC_OWNER = 0xf + CAP_KILL = 0x5 + CAP_LAST_CAP = 0x28 + CAP_LEASE = 0x1c + CAP_LINUX_IMMUTABLE = 0x9 + CAP_MAC_ADMIN = 0x21 + CAP_MAC_OVERRIDE = 0x20 + CAP_MKNOD = 0x1b + CAP_NET_ADMIN = 0xc + CAP_NET_BIND_SERVICE = 0xa + CAP_NET_BROADCAST = 0xb + CAP_NET_RAW = 0xd + CAP_PERFMON = 0x26 + CAP_SETFCAP = 0x1f + CAP_SETGID = 0x6 + CAP_SETPCAP = 0x8 + CAP_SETUID = 0x7 + CAP_SYSLOG = 0x22 + CAP_SYS_ADMIN = 0x15 + CAP_SYS_BOOT = 0x16 + CAP_SYS_CHROOT = 0x12 + CAP_SYS_MODULE = 0x10 + CAP_SYS_NICE = 0x17 + CAP_SYS_PACCT = 0x14 + CAP_SYS_PTRACE = 0x13 + CAP_SYS_RAWIO = 0x11 + CAP_SYS_RESOURCE = 0x18 + CAP_SYS_TIME = 0x19 + CAP_SYS_TTY_CONFIG = 0x1a + CAP_WAKE_ALARM = 0x23 + CEPH_SUPER_MAGIC = 0xc36400 + CFLUSH = 0xf + CGROUP2_SUPER_MAGIC = 0x63677270 + CGROUP_SUPER_MAGIC = 0x27e0eb + CIFS_SUPER_MAGIC = 0xff534d42 + CLOCK_BOOTTIME = 0x7 + CLOCK_BOOTTIME_ALARM = 0x9 + CLOCK_DEFAULT = 0x0 + CLOCK_EXT = 0x1 + CLOCK_INT = 0x2 + CLOCK_MONOTONIC = 0x1 + CLOCK_MONOTONIC_COARSE = 0x6 + CLOCK_MONOTONIC_RAW = 0x4 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_REALTIME_ALARM = 0x8 + CLOCK_REALTIME_COARSE = 0x5 + CLOCK_TAI = 0xb + CLOCK_THREAD_CPUTIME_ID = 0x3 + CLOCK_TXFROMRX = 0x4 + CLOCK_TXINT = 0x3 + CLONE_ARGS_SIZE_VER0 = 0x40 + CLONE_ARGS_SIZE_VER1 = 0x50 + CLONE_ARGS_SIZE_VER2 = 0x58 + CLONE_CHILD_CLEARTID = 0x200000 + CLONE_CHILD_SETTID = 0x1000000 + CLONE_CLEAR_SIGHAND = 0x100000000 + CLONE_DETACHED = 0x400000 + CLONE_FILES = 0x400 + CLONE_FS = 0x200 + CLONE_INTO_CGROUP = 0x200000000 + CLONE_IO = 0x80000000 + CLONE_NEWCGROUP = 0x2000000 + CLONE_NEWIPC = 0x8000000 + CLONE_NEWNET = 0x40000000 + CLONE_NEWNS = 0x20000 + CLONE_NEWPID = 0x20000000 + CLONE_NEWTIME = 0x80 + CLONE_NEWUSER = 0x10000000 + CLONE_NEWUTS = 0x4000000 + CLONE_PARENT = 0x8000 + CLONE_PARENT_SETTID = 0x100000 + CLONE_PIDFD = 0x1000 + CLONE_PTRACE = 0x2000 + CLONE_SETTLS = 0x80000 + CLONE_SIGHAND = 0x800 + CLONE_SYSVSEM = 0x40000 + CLONE_THREAD = 0x10000 + CLONE_UNTRACED = 0x800000 + CLONE_VFORK = 0x4000 + CLONE_VM = 0x100 + CMSPAR = 0x40000000 + CODA_SUPER_MAGIC = 0x73757245 + CR0 = 0x0 + CRAMFS_MAGIC = 0x28cd3d45 + CRTSCTS = 0x80000000 + CRYPTO_MAX_NAME = 0x40 + CRYPTO_MSG_MAX = 0x15 + CRYPTO_NR_MSGTYPES = 0x6 + CRYPTO_REPORT_MAXSIZE = 0x160 + CS5 = 0x0 + CSIGNAL = 0xff + CSTART = 0x11 + CSTATUS = 0x0 + CSTOP = 0x13 + CSUSP = 0x1a + DAXFS_MAGIC = 0x64646178 + DEBUGFS_MAGIC = 0x64626720 + DEVLINK_CMD_ESWITCH_MODE_GET = 0x1d + DEVLINK_CMD_ESWITCH_MODE_SET = 0x1e + DEVLINK_FLASH_OVERWRITE_IDENTIFIERS = 0x2 + DEVLINK_FLASH_OVERWRITE_SETTINGS = 0x1 + DEVLINK_GENL_MCGRP_CONFIG_NAME = "config" + DEVLINK_GENL_NAME = "devlink" + DEVLINK_GENL_VERSION = 0x1 + DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14 + DEVLINK_SUPPORTED_FLASH_OVERWRITE_SECTIONS = 0x3 + DEVMEM_MAGIC = 0x454d444d + DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 + DM_ACTIVE_PRESENT_FLAG = 0x20 + DM_BUFFER_FULL_FLAG = 0x100 + DM_CONTROL_NODE = "control" + DM_DATA_OUT_FLAG = 0x10000 + DM_DEFERRED_REMOVE = 0x20000 + DM_DEV_ARM_POLL = 0xc138fd10 + DM_DEV_CREATE = 0xc138fd03 + DM_DEV_REMOVE = 0xc138fd04 + DM_DEV_RENAME = 0xc138fd05 + DM_DEV_SET_GEOMETRY = 0xc138fd0f + DM_DEV_STATUS = 0xc138fd07 + DM_DEV_SUSPEND = 0xc138fd06 + DM_DEV_WAIT = 0xc138fd08 + DM_DIR = "mapper" + DM_GET_TARGET_VERSION = 0xc138fd11 + DM_IMA_MEASUREMENT_FLAG = 0x80000 + DM_INACTIVE_PRESENT_FLAG = 0x40 + DM_INTERNAL_SUSPEND_FLAG = 0x40000 + DM_IOCTL = 0xfd + DM_LIST_DEVICES = 0xc138fd02 + DM_LIST_VERSIONS = 0xc138fd0d + DM_MAX_TYPE_NAME = 0x10 + DM_NAME_LEN = 0x80 + DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID = 0x2 + DM_NAME_LIST_FLAG_HAS_UUID = 0x1 + DM_NOFLUSH_FLAG = 0x800 + DM_PERSISTENT_DEV_FLAG = 0x8 + DM_QUERY_INACTIVE_TABLE_FLAG = 0x1000 + DM_READONLY_FLAG = 0x1 + DM_REMOVE_ALL = 0xc138fd01 + DM_SECURE_DATA_FLAG = 0x8000 + DM_SKIP_BDGET_FLAG = 0x200 + DM_SKIP_LOCKFS_FLAG = 0x400 + DM_STATUS_TABLE_FLAG = 0x10 + DM_SUSPEND_FLAG = 0x2 + DM_TABLE_CLEAR = 0xc138fd0a + DM_TABLE_DEPS = 0xc138fd0b + DM_TABLE_LOAD = 0xc138fd09 + DM_TABLE_STATUS = 0xc138fd0c + DM_TARGET_MSG = 0xc138fd0e + DM_UEVENT_GENERATED_FLAG = 0x2000 + DM_UUID_FLAG = 0x4000 + DM_UUID_LEN = 0x81 + DM_VERSION = 0xc138fd00 + DM_VERSION_EXTRA = "-ioctl (2022-07-28)" + DM_VERSION_MAJOR = 0x4 + DM_VERSION_MINOR = 0x2f + DM_VERSION_PATCHLEVEL = 0x0 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECRYPTFS_SUPER_MAGIC = 0xf15f + EFD_SEMAPHORE = 0x1 + EFIVARFS_MAGIC = 0xde5e81e4 + EFS_SUPER_MAGIC = 0x414a53 + EM_386 = 0x3 + EM_486 = 0x6 + EM_68K = 0x4 + EM_860 = 0x7 + EM_88K = 0x5 + EM_AARCH64 = 0xb7 + EM_ALPHA = 0x9026 + EM_ALTERA_NIOS2 = 0x71 + EM_ARCOMPACT = 0x5d + EM_ARCV2 = 0xc3 + EM_ARM = 0x28 + EM_BLACKFIN = 0x6a + EM_BPF = 0xf7 + EM_CRIS = 0x4c + EM_CSKY = 0xfc + EM_CYGNUS_M32R = 0x9041 + EM_CYGNUS_MN10300 = 0xbeef + EM_FRV = 0x5441 + EM_H8_300 = 0x2e + EM_HEXAGON = 0xa4 + EM_IA_64 = 0x32 + EM_LOONGARCH = 0x102 + EM_M32 = 0x1 + EM_M32R = 0x58 + EM_MICROBLAZE = 0xbd + EM_MIPS = 0x8 + EM_MIPS_RS3_LE = 0xa + EM_MIPS_RS4_BE = 0xa + EM_MN10300 = 0x59 + EM_NDS32 = 0xa7 + EM_NONE = 0x0 + EM_OPENRISC = 0x5c + EM_PARISC = 0xf + EM_PPC = 0x14 + EM_PPC64 = 0x15 + EM_RISCV = 0xf3 + EM_S390 = 0x16 + EM_S390_OLD = 0xa390 + EM_SH = 0x2a + EM_SPARC = 0x2 + EM_SPARC32PLUS = 0x12 + EM_SPARCV9 = 0x2b + EM_SPU = 0x17 + EM_TILEGX = 0xbf + EM_TILEPRO = 0xbc + EM_TI_C6000 = 0x8c + EM_UNICORE = 0x6e + EM_X86_64 = 0x3e + EM_XTENSA = 0x5e + ENCODING_DEFAULT = 0x0 + ENCODING_FM_MARK = 0x3 + ENCODING_FM_SPACE = 0x4 + ENCODING_MANCHESTER = 0x5 + ENCODING_NRZ = 0x1 + ENCODING_NRZI = 0x2 + EPOLLERR = 0x8 + EPOLLET = 0x80000000 + EPOLLEXCLUSIVE = 0x10000000 + EPOLLHUP = 0x10 + EPOLLIN = 0x1 + EPOLLMSG = 0x400 + EPOLLONESHOT = 0x40000000 + EPOLLOUT = 0x4 + EPOLLPRI = 0x2 + EPOLLRDBAND = 0x80 + EPOLLRDHUP = 0x2000 + EPOLLRDNORM = 0x40 + EPOLLWAKEUP = 0x20000000 + EPOLLWRBAND = 0x200 + EPOLLWRNORM = 0x100 + EPOLL_CTL_ADD = 0x1 + EPOLL_CTL_DEL = 0x2 + EPOLL_CTL_MOD = 0x3 + EROFS_SUPER_MAGIC_V1 = 0xe0f5e1e2 + ESP_V4_FLOW = 0xa + ESP_V6_FLOW = 0xc + ETHER_FLOW = 0x12 + ETHTOOL_BUSINFO_LEN = 0x20 + ETHTOOL_EROMVERS_LEN = 0x20 + ETHTOOL_FEC_AUTO = 0x2 + ETHTOOL_FEC_BASER = 0x10 + ETHTOOL_FEC_LLRS = 0x20 + ETHTOOL_FEC_NONE = 0x1 + ETHTOOL_FEC_OFF = 0x4 + ETHTOOL_FEC_RS = 0x8 + ETHTOOL_FLAG_ALL = 0x7 + ETHTOOL_FLAG_COMPACT_BITSETS = 0x1 + ETHTOOL_FLAG_OMIT_REPLY = 0x2 + ETHTOOL_FLAG_STATS = 0x4 + ETHTOOL_FLASHDEV = 0x33 + ETHTOOL_FLASH_MAX_FILENAME = 0x80 + ETHTOOL_FWVERS_LEN = 0x20 + ETHTOOL_F_COMPAT = 0x4 + ETHTOOL_F_UNSUPPORTED = 0x1 + ETHTOOL_F_WISH = 0x2 + ETHTOOL_GCHANNELS = 0x3c + ETHTOOL_GCOALESCE = 0xe + ETHTOOL_GDRVINFO = 0x3 + ETHTOOL_GEEE = 0x44 + ETHTOOL_GEEPROM = 0xb + ETHTOOL_GENL_NAME = "ethtool" + ETHTOOL_GENL_VERSION = 0x1 + ETHTOOL_GET_DUMP_DATA = 0x40 + ETHTOOL_GET_DUMP_FLAG = 0x3f + ETHTOOL_GET_TS_INFO = 0x41 + ETHTOOL_GFEATURES = 0x3a + ETHTOOL_GFECPARAM = 0x50 + ETHTOOL_GFLAGS = 0x25 + ETHTOOL_GGRO = 0x2b + ETHTOOL_GGSO = 0x23 + ETHTOOL_GLINK = 0xa + ETHTOOL_GLINKSETTINGS = 0x4c + ETHTOOL_GMODULEEEPROM = 0x43 + ETHTOOL_GMODULEINFO = 0x42 + ETHTOOL_GMSGLVL = 0x7 + ETHTOOL_GPAUSEPARAM = 0x12 + ETHTOOL_GPERMADDR = 0x20 + ETHTOOL_GPFLAGS = 0x27 + ETHTOOL_GPHYSTATS = 0x4a + ETHTOOL_GREGS = 0x4 + ETHTOOL_GRINGPARAM = 0x10 + ETHTOOL_GRSSH = 0x46 + ETHTOOL_GRXCLSRLALL = 0x30 + ETHTOOL_GRXCLSRLCNT = 0x2e + ETHTOOL_GRXCLSRULE = 0x2f + ETHTOOL_GRXCSUM = 0x14 + ETHTOOL_GRXFH = 0x29 + ETHTOOL_GRXFHINDIR = 0x38 + ETHTOOL_GRXNTUPLE = 0x36 + ETHTOOL_GRXRINGS = 0x2d + ETHTOOL_GSET = 0x1 + ETHTOOL_GSG = 0x18 + ETHTOOL_GSSET_INFO = 0x37 + ETHTOOL_GSTATS = 0x1d + ETHTOOL_GSTRINGS = 0x1b + ETHTOOL_GTSO = 0x1e + ETHTOOL_GTUNABLE = 0x48 + ETHTOOL_GTXCSUM = 0x16 + ETHTOOL_GUFO = 0x21 + ETHTOOL_GWOL = 0x5 + ETHTOOL_MCGRP_MONITOR_NAME = "monitor" + ETHTOOL_NWAY_RST = 0x9 + ETHTOOL_PERQUEUE = 0x4b + ETHTOOL_PHYS_ID = 0x1c + ETHTOOL_PHY_EDPD_DFLT_TX_MSECS = 0xffff + ETHTOOL_PHY_EDPD_DISABLE = 0x0 + ETHTOOL_PHY_EDPD_NO_TX = 0xfffe + ETHTOOL_PHY_FAST_LINK_DOWN_OFF = 0xff + ETHTOOL_PHY_FAST_LINK_DOWN_ON = 0x0 + ETHTOOL_PHY_GTUNABLE = 0x4e + ETHTOOL_PHY_STUNABLE = 0x4f + ETHTOOL_RESET = 0x34 + ETHTOOL_RXNTUPLE_ACTION_CLEAR = -0x2 + ETHTOOL_RXNTUPLE_ACTION_DROP = -0x1 + ETHTOOL_RX_FLOW_SPEC_RING = 0xffffffff + ETHTOOL_RX_FLOW_SPEC_RING_VF = 0xff00000000 + ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF = 0x20 + ETHTOOL_SCHANNELS = 0x3d + ETHTOOL_SCOALESCE = 0xf + ETHTOOL_SEEE = 0x45 + ETHTOOL_SEEPROM = 0xc + ETHTOOL_SET_DUMP = 0x3e + ETHTOOL_SFEATURES = 0x3b + ETHTOOL_SFECPARAM = 0x51 + ETHTOOL_SFLAGS = 0x26 + ETHTOOL_SGRO = 0x2c + ETHTOOL_SGSO = 0x24 + ETHTOOL_SLINKSETTINGS = 0x4d + ETHTOOL_SMSGLVL = 0x8 + ETHTOOL_SPAUSEPARAM = 0x13 + ETHTOOL_SPFLAGS = 0x28 + ETHTOOL_SRINGPARAM = 0x11 + ETHTOOL_SRSSH = 0x47 + ETHTOOL_SRXCLSRLDEL = 0x31 + ETHTOOL_SRXCLSRLINS = 0x32 + ETHTOOL_SRXCSUM = 0x15 + ETHTOOL_SRXFH = 0x2a + ETHTOOL_SRXFHINDIR = 0x39 + ETHTOOL_SRXNTUPLE = 0x35 + ETHTOOL_SSET = 0x2 + ETHTOOL_SSG = 0x19 + ETHTOOL_STSO = 0x1f + ETHTOOL_STUNABLE = 0x49 + ETHTOOL_STXCSUM = 0x17 + ETHTOOL_SUFO = 0x22 + ETHTOOL_SWOL = 0x6 + ETHTOOL_TEST = 0x1a + ETH_P_1588 = 0x88f7 + ETH_P_8021AD = 0x88a8 + ETH_P_8021AH = 0x88e7 + ETH_P_8021Q = 0x8100 + ETH_P_80221 = 0x8917 + ETH_P_802_2 = 0x4 + ETH_P_802_3 = 0x1 + ETH_P_802_3_MIN = 0x600 + ETH_P_802_EX1 = 0x88b5 + ETH_P_AARP = 0x80f3 + ETH_P_AF_IUCV = 0xfbfb + ETH_P_ALL = 0x3 + ETH_P_AOE = 0x88a2 + ETH_P_ARCNET = 0x1a + ETH_P_ARP = 0x806 + ETH_P_ATALK = 0x809b + ETH_P_ATMFATE = 0x8884 + ETH_P_ATMMPOA = 0x884c + ETH_P_AX25 = 0x2 + ETH_P_BATMAN = 0x4305 + ETH_P_BPQ = 0x8ff + ETH_P_CAIF = 0xf7 + ETH_P_CAN = 0xc + ETH_P_CANFD = 0xd + ETH_P_CANXL = 0xe + ETH_P_CFM = 0x8902 + ETH_P_CONTROL = 0x16 + ETH_P_CUST = 0x6006 + ETH_P_DDCMP = 0x6 + ETH_P_DEC = 0x6000 + ETH_P_DIAG = 0x6005 + ETH_P_DNA_DL = 0x6001 + ETH_P_DNA_RC = 0x6002 + ETH_P_DNA_RT = 0x6003 + ETH_P_DSA = 0x1b + ETH_P_DSA_8021Q = 0xdadb + ETH_P_DSA_A5PSW = 0xe001 + ETH_P_ECONET = 0x18 + ETH_P_EDSA = 0xdada + ETH_P_ERSPAN = 0x88be + ETH_P_ERSPAN2 = 0x22eb + ETH_P_ETHERCAT = 0x88a4 + ETH_P_FCOE = 0x8906 + ETH_P_FIP = 0x8914 + ETH_P_HDLC = 0x19 + ETH_P_HSR = 0x892f + ETH_P_IBOE = 0x8915 + ETH_P_IEEE802154 = 0xf6 + ETH_P_IEEEPUP = 0xa00 + ETH_P_IEEEPUPAT = 0xa01 + ETH_P_IFE = 0xed3e + ETH_P_IP = 0x800 + ETH_P_IPV6 = 0x86dd + ETH_P_IPX = 0x8137 + ETH_P_IRDA = 0x17 + ETH_P_LAT = 0x6004 + ETH_P_LINK_CTL = 0x886c + ETH_P_LLDP = 0x88cc + ETH_P_LOCALTALK = 0x9 + ETH_P_LOOP = 0x60 + ETH_P_LOOPBACK = 0x9000 + ETH_P_MACSEC = 0x88e5 + ETH_P_MAP = 0xf9 + ETH_P_MCTP = 0xfa + ETH_P_MOBITEX = 0x15 + ETH_P_MPLS_MC = 0x8848 + ETH_P_MPLS_UC = 0x8847 + ETH_P_MRP = 0x88e3 + ETH_P_MVRP = 0x88f5 + ETH_P_NCSI = 0x88f8 + ETH_P_NSH = 0x894f + ETH_P_PAE = 0x888e + ETH_P_PAUSE = 0x8808 + ETH_P_PHONET = 0xf5 + ETH_P_PPPTALK = 0x10 + ETH_P_PPP_DISC = 0x8863 + ETH_P_PPP_MP = 0x8 + ETH_P_PPP_SES = 0x8864 + ETH_P_PREAUTH = 0x88c7 + ETH_P_PROFINET = 0x8892 + ETH_P_PRP = 0x88fb + ETH_P_PUP = 0x200 + ETH_P_PUPAT = 0x201 + ETH_P_QINQ1 = 0x9100 + ETH_P_QINQ2 = 0x9200 + ETH_P_QINQ3 = 0x9300 + ETH_P_RARP = 0x8035 + ETH_P_REALTEK = 0x8899 + ETH_P_SCA = 0x6007 + ETH_P_SLOW = 0x8809 + ETH_P_SNAP = 0x5 + ETH_P_TDLS = 0x890d + ETH_P_TEB = 0x6558 + ETH_P_TIPC = 0x88ca + ETH_P_TRAILER = 0x1c + ETH_P_TR_802_2 = 0x11 + ETH_P_TSN = 0x22f0 + ETH_P_WAN_PPP = 0x7 + ETH_P_WCCP = 0x883e + ETH_P_X25 = 0x805 + ETH_P_XDSA = 0xf8 + EV_ABS = 0x3 + EV_CNT = 0x20 + EV_FF = 0x15 + EV_FF_STATUS = 0x17 + EV_KEY = 0x1 + EV_LED = 0x11 + EV_MAX = 0x1f + EV_MSC = 0x4 + EV_PWR = 0x16 + EV_REL = 0x2 + EV_REP = 0x14 + EV_SND = 0x12 + EV_SW = 0x5 + EV_SYN = 0x0 + EV_VERSION = 0x10001 + EXABYTE_ENABLE_NEST = 0xf0 + EXFAT_SUPER_MAGIC = 0x2011bab0 + EXT2_SUPER_MAGIC = 0xef53 + EXT3_SUPER_MAGIC = 0xef53 + EXT4_SUPER_MAGIC = 0xef53 + EXTA = 0xe + EXTB = 0xf + F2FS_SUPER_MAGIC = 0xf2f52010 + FALLOC_FL_COLLAPSE_RANGE = 0x8 + FALLOC_FL_INSERT_RANGE = 0x20 + FALLOC_FL_KEEP_SIZE = 0x1 + FALLOC_FL_NO_HIDE_STALE = 0x4 + FALLOC_FL_PUNCH_HOLE = 0x2 + FALLOC_FL_UNSHARE_RANGE = 0x40 + FALLOC_FL_ZERO_RANGE = 0x10 + FANOTIFY_METADATA_VERSION = 0x3 + FAN_ACCESS = 0x1 + FAN_ACCESS_PERM = 0x20000 + FAN_ALLOW = 0x1 + FAN_ALL_CLASS_BITS = 0xc + FAN_ALL_EVENTS = 0x3b + FAN_ALL_INIT_FLAGS = 0x3f + FAN_ALL_MARK_FLAGS = 0xff + FAN_ALL_OUTGOING_EVENTS = 0x3403b + FAN_ALL_PERM_EVENTS = 0x30000 + FAN_ATTRIB = 0x4 + FAN_AUDIT = 0x10 + FAN_CLASS_CONTENT = 0x4 + FAN_CLASS_NOTIF = 0x0 + FAN_CLASS_PRE_CONTENT = 0x8 + FAN_CLOEXEC = 0x1 + FAN_CLOSE = 0x18 + FAN_CLOSE_NOWRITE = 0x10 + FAN_CLOSE_WRITE = 0x8 + FAN_CREATE = 0x100 + FAN_DELETE = 0x200 + FAN_DELETE_SELF = 0x400 + FAN_DENY = 0x2 + FAN_ENABLE_AUDIT = 0x40 + FAN_EPIDFD = -0x2 + FAN_EVENT_INFO_TYPE_DFID = 0x3 + FAN_EVENT_INFO_TYPE_DFID_NAME = 0x2 + FAN_EVENT_INFO_TYPE_ERROR = 0x5 + FAN_EVENT_INFO_TYPE_FID = 0x1 + FAN_EVENT_INFO_TYPE_NEW_DFID_NAME = 0xc + FAN_EVENT_INFO_TYPE_OLD_DFID_NAME = 0xa + FAN_EVENT_INFO_TYPE_PIDFD = 0x4 + FAN_EVENT_METADATA_LEN = 0x18 + FAN_EVENT_ON_CHILD = 0x8000000 + FAN_FS_ERROR = 0x8000 + FAN_MARK_ADD = 0x1 + FAN_MARK_DONT_FOLLOW = 0x4 + FAN_MARK_EVICTABLE = 0x200 + FAN_MARK_FILESYSTEM = 0x100 + FAN_MARK_FLUSH = 0x80 + FAN_MARK_IGNORE = 0x400 + FAN_MARK_IGNORED_MASK = 0x20 + FAN_MARK_IGNORED_SURV_MODIFY = 0x40 + FAN_MARK_IGNORE_SURV = 0x440 + FAN_MARK_INODE = 0x0 + FAN_MARK_MOUNT = 0x10 + FAN_MARK_ONLYDIR = 0x8 + FAN_MARK_REMOVE = 0x2 + FAN_MODIFY = 0x2 + FAN_MOVE = 0xc0 + FAN_MOVED_FROM = 0x40 + FAN_MOVED_TO = 0x80 + FAN_MOVE_SELF = 0x800 + FAN_NOFD = -0x1 + FAN_NONBLOCK = 0x2 + FAN_NOPIDFD = -0x1 + FAN_ONDIR = 0x40000000 + FAN_OPEN = 0x20 + FAN_OPEN_EXEC = 0x1000 + FAN_OPEN_EXEC_PERM = 0x40000 + FAN_OPEN_PERM = 0x10000 + FAN_Q_OVERFLOW = 0x4000 + FAN_RENAME = 0x10000000 + FAN_REPORT_DFID_NAME = 0xc00 + FAN_REPORT_DFID_NAME_TARGET = 0x1e00 + FAN_REPORT_DIR_FID = 0x400 + FAN_REPORT_FID = 0x200 + FAN_REPORT_NAME = 0x800 + FAN_REPORT_PIDFD = 0x80 + FAN_REPORT_TARGET_FID = 0x1000 + FAN_REPORT_TID = 0x100 + FAN_UNLIMITED_MARKS = 0x20 + FAN_UNLIMITED_QUEUE = 0x10 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FF0 = 0x0 + FIB_RULE_DEV_DETACHED = 0x8 + FIB_RULE_FIND_SADDR = 0x10000 + FIB_RULE_IIF_DETACHED = 0x8 + FIB_RULE_INVERT = 0x2 + FIB_RULE_OIF_DETACHED = 0x10 + FIB_RULE_PERMANENT = 0x1 + FIB_RULE_UNRESOLVED = 0x4 + FIDEDUPERANGE = 0xc0189436 + FSCRYPT_KEY_DESCRIPTOR_SIZE = 0x8 + FSCRYPT_KEY_DESC_PREFIX = "fscrypt:" + FSCRYPT_KEY_DESC_PREFIX_SIZE = 0x8 + FSCRYPT_KEY_IDENTIFIER_SIZE = 0x10 + FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY = 0x1 + FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS = 0x2 + FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR = 0x1 + FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER = 0x2 + FSCRYPT_KEY_STATUS_ABSENT = 0x1 + FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF = 0x1 + FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED = 0x3 + FSCRYPT_KEY_STATUS_PRESENT = 0x2 + FSCRYPT_MAX_KEY_SIZE = 0x40 + FSCRYPT_MODE_ADIANTUM = 0x9 + FSCRYPT_MODE_AES_128_CBC = 0x5 + FSCRYPT_MODE_AES_128_CTS = 0x6 + FSCRYPT_MODE_AES_256_CTS = 0x4 + FSCRYPT_MODE_AES_256_HCTR2 = 0xa + FSCRYPT_MODE_AES_256_XTS = 0x1 + FSCRYPT_POLICY_FLAGS_PAD_16 = 0x2 + FSCRYPT_POLICY_FLAGS_PAD_32 = 0x3 + FSCRYPT_POLICY_FLAGS_PAD_4 = 0x0 + FSCRYPT_POLICY_FLAGS_PAD_8 = 0x1 + FSCRYPT_POLICY_FLAGS_PAD_MASK = 0x3 + FSCRYPT_POLICY_FLAG_DIRECT_KEY = 0x4 + FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32 = 0x10 + FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64 = 0x8 + FSCRYPT_POLICY_V1 = 0x0 + FSCRYPT_POLICY_V2 = 0x2 + FS_ENCRYPTION_MODE_ADIANTUM = 0x9 + FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 + FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 + FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 + FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 + FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 + FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 + FS_ENCRYPTION_MODE_INVALID = 0x0 + FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8 + FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7 + FS_IOC_ADD_ENCRYPTION_KEY = 0xc0506617 + FS_IOC_GET_ENCRYPTION_KEY_STATUS = 0xc080661a + FS_IOC_GET_ENCRYPTION_POLICY_EX = 0xc0096616 + FS_IOC_MEASURE_VERITY = 0xc0046686 + FS_IOC_READ_VERITY_METADATA = 0xc0286687 + FS_IOC_REMOVE_ENCRYPTION_KEY = 0xc0406618 + FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS = 0xc0406619 + FS_KEY_DESCRIPTOR_SIZE = 0x8 + FS_KEY_DESC_PREFIX = "fscrypt:" + FS_KEY_DESC_PREFIX_SIZE = 0x8 + FS_MAX_KEY_SIZE = 0x40 + FS_POLICY_FLAGS_PAD_16 = 0x2 + FS_POLICY_FLAGS_PAD_32 = 0x3 + FS_POLICY_FLAGS_PAD_4 = 0x0 + FS_POLICY_FLAGS_PAD_8 = 0x1 + FS_POLICY_FLAGS_PAD_MASK = 0x3 + FS_POLICY_FLAGS_VALID = 0x7 + FS_VERITY_FL = 0x100000 + FS_VERITY_HASH_ALG_SHA256 = 0x1 + FS_VERITY_HASH_ALG_SHA512 = 0x2 + FS_VERITY_METADATA_TYPE_DESCRIPTOR = 0x2 + FS_VERITY_METADATA_TYPE_MERKLE_TREE = 0x1 + FS_VERITY_METADATA_TYPE_SIGNATURE = 0x3 + FUSE_SUPER_MAGIC = 0x65735546 + FUTEXFS_SUPER_MAGIC = 0xbad1dea + F_ADD_SEALS = 0x409 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x406 + F_EXLCK = 0x4 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLEASE = 0x401 + F_GETOWN_EX = 0x10 + F_GETPIPE_SZ = 0x408 + F_GETSIG = 0xb + F_GET_FILE_RW_HINT = 0x40d + F_GET_RW_HINT = 0x40b + F_GET_SEALS = 0x40a + F_LOCK = 0x1 + F_NOTIFY = 0x402 + F_OFD_GETLK = 0x24 + F_OFD_SETLK = 0x25 + F_OFD_SETLKW = 0x26 + F_OK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 + F_SEAL_GROW = 0x4 + F_SEAL_SEAL = 0x1 + F_SEAL_SHRINK = 0x2 + F_SEAL_WRITE = 0x8 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLEASE = 0x400 + F_SETOWN_EX = 0xf + F_SETPIPE_SZ = 0x407 + F_SETSIG = 0xa + F_SET_FILE_RW_HINT = 0x40e + F_SET_RW_HINT = 0x40c + F_SHLCK = 0x8 + F_TEST = 0x3 + F_TLOCK = 0x2 + F_ULOCK = 0x0 + GENL_ADMIN_PERM = 0x1 + GENL_CMD_CAP_DO = 0x2 + GENL_CMD_CAP_DUMP = 0x4 + GENL_CMD_CAP_HASPOL = 0x8 + GENL_HDRLEN = 0x4 + GENL_ID_CTRL = 0x10 + GENL_ID_PMCRAID = 0x12 + GENL_ID_VFS_DQUOT = 0x11 + GENL_MAX_ID = 0x3ff + GENL_MIN_ID = 0x10 + GENL_NAMSIZ = 0x10 + GENL_START_ALLOC = 0x13 + GENL_UNS_ADMIN_PERM = 0x10 + GRND_INSECURE = 0x4 + GRND_NONBLOCK = 0x1 + GRND_RANDOM = 0x2 + HDIO_DRIVE_CMD = 0x31f + HDIO_DRIVE_CMD_AEB = 0x31e + HDIO_DRIVE_CMD_HDR_SIZE = 0x4 + HDIO_DRIVE_HOB_HDR_SIZE = 0x8 + HDIO_DRIVE_RESET = 0x31c + HDIO_DRIVE_TASK = 0x31e + HDIO_DRIVE_TASKFILE = 0x31d + HDIO_DRIVE_TASK_HDR_SIZE = 0x8 + HDIO_GETGEO = 0x301 + HDIO_GET_32BIT = 0x309 + HDIO_GET_ACOUSTIC = 0x30f + HDIO_GET_ADDRESS = 0x310 + HDIO_GET_BUSSTATE = 0x31a + HDIO_GET_DMA = 0x30b + HDIO_GET_IDENTITY = 0x30d + HDIO_GET_KEEPSETTINGS = 0x308 + HDIO_GET_MULTCOUNT = 0x304 + HDIO_GET_NICE = 0x30c + HDIO_GET_NOWERR = 0x30a + HDIO_GET_QDMA = 0x305 + HDIO_GET_UNMASKINTR = 0x302 + HDIO_GET_WCACHE = 0x30e + HDIO_OBSOLETE_IDENTITY = 0x307 + HDIO_SCAN_HWIF = 0x328 + HDIO_SET_32BIT = 0x324 + HDIO_SET_ACOUSTIC = 0x32c + HDIO_SET_ADDRESS = 0x32f + HDIO_SET_BUSSTATE = 0x32d + HDIO_SET_DMA = 0x326 + HDIO_SET_KEEPSETTINGS = 0x323 + HDIO_SET_MULTCOUNT = 0x321 + HDIO_SET_NICE = 0x329 + HDIO_SET_NOWERR = 0x325 + HDIO_SET_PIO_MODE = 0x327 + HDIO_SET_QDMA = 0x32e + HDIO_SET_UNMASKINTR = 0x322 + HDIO_SET_WCACHE = 0x32b + HDIO_SET_XFER = 0x306 + HDIO_TRISTATE_HWIF = 0x31b + HDIO_UNREGISTER_HWIF = 0x32a + HID_MAX_DESCRIPTOR_SIZE = 0x1000 + HOSTFS_SUPER_MAGIC = 0xc0ffee + HPFS_SUPER_MAGIC = 0xf995e849 + HUGETLBFS_MAGIC = 0x958458f6 + IBSHIFT = 0x10 + ICRNL = 0x100 + IFA_F_DADFAILED = 0x8 + IFA_F_DEPRECATED = 0x20 + IFA_F_HOMEADDRESS = 0x10 + IFA_F_MANAGETEMPADDR = 0x100 + IFA_F_MCAUTOJOIN = 0x400 + IFA_F_NODAD = 0x2 + IFA_F_NOPREFIXROUTE = 0x200 + IFA_F_OPTIMISTIC = 0x4 + IFA_F_PERMANENT = 0x80 + IFA_F_SECONDARY = 0x1 + IFA_F_STABLE_PRIVACY = 0x800 + IFA_F_TEMPORARY = 0x1 + IFA_F_TENTATIVE = 0x40 + IFA_MAX = 0xb + IFF_ALLMULTI = 0x200 + IFF_ATTACH_QUEUE = 0x200 + IFF_AUTOMEDIA = 0x4000 + IFF_BROADCAST = 0x2 + IFF_DEBUG = 0x4 + IFF_DETACH_QUEUE = 0x400 + IFF_DORMANT = 0x20000 + IFF_DYNAMIC = 0x8000 + IFF_ECHO = 0x40000 + IFF_LOOPBACK = 0x8 + IFF_LOWER_UP = 0x10000 + IFF_MASTER = 0x400 + IFF_MULTICAST = 0x1000 + IFF_MULTI_QUEUE = 0x100 + IFF_NAPI = 0x10 + IFF_NAPI_FRAGS = 0x20 + IFF_NOARP = 0x80 + IFF_NOFILTER = 0x1000 + IFF_NOTRAILERS = 0x20 + IFF_NO_CARRIER = 0x40 + IFF_NO_PI = 0x1000 + IFF_ONE_QUEUE = 0x2000 + IFF_PERSIST = 0x800 + IFF_POINTOPOINT = 0x10 + IFF_PORTSEL = 0x2000 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SLAVE = 0x800 + IFF_TAP = 0x2 + IFF_TUN = 0x1 + IFF_TUN_EXCL = 0x8000 + IFF_UP = 0x1 + IFF_VNET_HDR = 0x4000 + IFF_VOLATILE = 0x70c5a + IFNAMSIZ = 0x10 + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_ACCESS = 0x1 + IN_ALL_EVENTS = 0xfff + IN_ATTRIB = 0x4 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLOSE = 0x18 + IN_CLOSE_NOWRITE = 0x10 + IN_CLOSE_WRITE = 0x8 + IN_CREATE = 0x100 + IN_DELETE = 0x200 + IN_DELETE_SELF = 0x400 + IN_DONT_FOLLOW = 0x2000000 + IN_EXCL_UNLINK = 0x4000000 + IN_IGNORED = 0x8000 + IN_ISDIR = 0x40000000 + IN_LOOPBACKNET = 0x7f + IN_MASK_ADD = 0x20000000 + IN_MASK_CREATE = 0x10000000 + IN_MODIFY = 0x2 + IN_MOVE = 0xc0 + IN_MOVED_FROM = 0x40 + IN_MOVED_TO = 0x80 + IN_MOVE_SELF = 0x800 + IN_ONESHOT = 0x80000000 + IN_ONLYDIR = 0x1000000 + IN_OPEN = 0x20 + IN_Q_OVERFLOW = 0x4000 + IN_UNMOUNT = 0x2000 + IPPROTO_AH = 0x33 + IPPROTO_BEETPH = 0x5e + IPPROTO_COMP = 0x6c + IPPROTO_DCCP = 0x21 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERNET = 0x8f + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPIP = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_L2TP = 0x73 + IPPROTO_MH = 0x87 + IPPROTO_MPLS = 0x89 + IPPROTO_MPTCP = 0x106 + IPPROTO_MTP = 0x5c + IPPROTO_NONE = 0x3b + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_2292DSTOPTS = 0x4 + IPV6_2292HOPLIMIT = 0x8 + IPV6_2292HOPOPTS = 0x3 + IPV6_2292PKTINFO = 0x2 + IPV6_2292PKTOPTIONS = 0x6 + IPV6_2292RTHDR = 0x5 + IPV6_ADDRFORM = 0x1 + IPV6_ADDR_PREFERENCES = 0x48 + IPV6_ADD_MEMBERSHIP = 0x14 + IPV6_AUTHHDR = 0xa + IPV6_AUTOFLOWLABEL = 0x46 + IPV6_CHECKSUM = 0x7 + IPV6_DONTFRAG = 0x3e + IPV6_DROP_MEMBERSHIP = 0x15 + IPV6_DSTOPTS = 0x3b + IPV6_FLOW = 0x11 + IPV6_FREEBIND = 0x4e + IPV6_HDRINCL = 0x24 + IPV6_HOPLIMIT = 0x34 + IPV6_HOPOPTS = 0x36 + IPV6_IPSEC_POLICY = 0x22 + IPV6_JOIN_ANYCAST = 0x1b + IPV6_JOIN_GROUP = 0x14 + IPV6_LEAVE_ANYCAST = 0x1c + IPV6_LEAVE_GROUP = 0x15 + IPV6_MINHOPCOUNT = 0x49 + IPV6_MTU = 0x18 + IPV6_MTU_DISCOVER = 0x17 + IPV6_MULTICAST_ALL = 0x1d + IPV6_MULTICAST_HOPS = 0x12 + IPV6_MULTICAST_IF = 0x11 + IPV6_MULTICAST_LOOP = 0x13 + IPV6_NEXTHOP = 0x9 + IPV6_ORIGDSTADDR = 0x4a + IPV6_PATHMTU = 0x3d + IPV6_PKTINFO = 0x32 + IPV6_PMTUDISC_DO = 0x2 + IPV6_PMTUDISC_DONT = 0x0 + IPV6_PMTUDISC_INTERFACE = 0x4 + IPV6_PMTUDISC_OMIT = 0x5 + IPV6_PMTUDISC_PROBE = 0x3 + IPV6_PMTUDISC_WANT = 0x1 + IPV6_RECVDSTOPTS = 0x3a + IPV6_RECVERR = 0x19 + IPV6_RECVERR_RFC4884 = 0x1f + IPV6_RECVFRAGSIZE = 0x4d + IPV6_RECVHOPLIMIT = 0x33 + IPV6_RECVHOPOPTS = 0x35 + IPV6_RECVORIGDSTADDR = 0x4a + IPV6_RECVPATHMTU = 0x3c + IPV6_RECVPKTINFO = 0x31 + IPV6_RECVRTHDR = 0x38 + IPV6_RECVTCLASS = 0x42 + IPV6_ROUTER_ALERT = 0x16 + IPV6_ROUTER_ALERT_ISOLATE = 0x1e + IPV6_RTHDR = 0x39 + IPV6_RTHDRDSTOPTS = 0x37 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_RXDSTOPTS = 0x3b + IPV6_RXHOPOPTS = 0x36 + IPV6_TCLASS = 0x43 + IPV6_TRANSPARENT = 0x4b + IPV6_UNICAST_HOPS = 0x10 + IPV6_UNICAST_IF = 0x4c + IPV6_USER_FLOW = 0xe + IPV6_V6ONLY = 0x1a + IPV6_XFRM_POLICY = 0x23 + IP_ADD_MEMBERSHIP = 0x23 + IP_ADD_SOURCE_MEMBERSHIP = 0x27 + IP_BIND_ADDRESS_NO_PORT = 0x18 + IP_BLOCK_SOURCE = 0x26 + IP_CHECKSUM = 0x17 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0x24 + IP_DROP_SOURCE_MEMBERSHIP = 0x28 + IP_FREEBIND = 0xf + IP_HDRINCL = 0x3 + IP_IPSEC_POLICY = 0x10 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINTTL = 0x15 + IP_MSFILTER = 0x29 + IP_MSS = 0x240 + IP_MTU = 0xe + IP_MTU_DISCOVER = 0xa + IP_MULTICAST_ALL = 0x31 + IP_MULTICAST_IF = 0x20 + IP_MULTICAST_LOOP = 0x22 + IP_MULTICAST_TTL = 0x21 + IP_NODEFRAG = 0x16 + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x4 + IP_ORIGDSTADDR = 0x14 + IP_PASSSEC = 0x12 + IP_PKTINFO = 0x8 + IP_PKTOPTIONS = 0x9 + IP_PMTUDISC = 0xa + IP_PMTUDISC_DO = 0x2 + IP_PMTUDISC_DONT = 0x0 + IP_PMTUDISC_INTERFACE = 0x4 + IP_PMTUDISC_OMIT = 0x5 + IP_PMTUDISC_PROBE = 0x3 + IP_PMTUDISC_WANT = 0x1 + IP_RECVERR = 0xb + IP_RECVERR_RFC4884 = 0x1a + IP_RECVFRAGSIZE = 0x19 + IP_RECVOPTS = 0x6 + IP_RECVORIGDSTADDR = 0x14 + IP_RECVRETOPTS = 0x7 + IP_RECVTOS = 0xd + IP_RECVTTL = 0xc + IP_RETOPTS = 0x7 + IP_RF = 0x8000 + IP_ROUTER_ALERT = 0x5 + IP_TOS = 0x1 + IP_TRANSPARENT = 0x13 + IP_TTL = 0x2 + IP_UNBLOCK_SOURCE = 0x25 + IP_UNICAST_IF = 0x32 + IP_USER_FLOW = 0xd + IP_XFRM_POLICY = 0x11 + ISOFS_SUPER_MAGIC = 0x9660 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUTF8 = 0x4000 + IXANY = 0x800 + JFFS2_SUPER_MAGIC = 0x72b6 + KCMPROTO_CONNECTED = 0x0 + KCM_RECV_DISABLE = 0x1 + KEXEC_ARCH_386 = 0x30000 + KEXEC_ARCH_68K = 0x40000 + KEXEC_ARCH_AARCH64 = 0xb70000 + KEXEC_ARCH_ARM = 0x280000 + KEXEC_ARCH_DEFAULT = 0x0 + KEXEC_ARCH_IA_64 = 0x320000 + KEXEC_ARCH_LOONGARCH = 0x1020000 + KEXEC_ARCH_MASK = 0xffff0000 + KEXEC_ARCH_MIPS = 0x80000 + KEXEC_ARCH_MIPS_LE = 0xa0000 + KEXEC_ARCH_PARISC = 0xf0000 + KEXEC_ARCH_PPC = 0x140000 + KEXEC_ARCH_PPC64 = 0x150000 + KEXEC_ARCH_RISCV = 0xf30000 + KEXEC_ARCH_S390 = 0x160000 + KEXEC_ARCH_SH = 0x2a0000 + KEXEC_ARCH_X86_64 = 0x3e0000 + KEXEC_FILE_NO_INITRAMFS = 0x4 + KEXEC_FILE_ON_CRASH = 0x2 + KEXEC_FILE_UNLOAD = 0x1 + KEXEC_ON_CRASH = 0x1 + KEXEC_PRESERVE_CONTEXT = 0x2 + KEXEC_SEGMENT_MAX = 0x10 + KEYCTL_ASSUME_AUTHORITY = 0x10 + KEYCTL_CAPABILITIES = 0x1f + KEYCTL_CAPS0_BIG_KEY = 0x10 + KEYCTL_CAPS0_CAPABILITIES = 0x1 + KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4 + KEYCTL_CAPS0_INVALIDATE = 0x20 + KEYCTL_CAPS0_MOVE = 0x80 + KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2 + KEYCTL_CAPS0_PUBLIC_KEY = 0x8 + KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40 + KEYCTL_CAPS1_NOTIFICATIONS = 0x4 + KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1 + KEYCTL_CAPS1_NS_KEY_TAG = 0x2 + KEYCTL_CHOWN = 0x4 + KEYCTL_CLEAR = 0x7 + KEYCTL_DESCRIBE = 0x6 + KEYCTL_DH_COMPUTE = 0x17 + KEYCTL_GET_KEYRING_ID = 0x0 + KEYCTL_GET_PERSISTENT = 0x16 + KEYCTL_GET_SECURITY = 0x11 + KEYCTL_INSTANTIATE = 0xc + KEYCTL_INSTANTIATE_IOV = 0x14 + KEYCTL_INVALIDATE = 0x15 + KEYCTL_JOIN_SESSION_KEYRING = 0x1 + KEYCTL_LINK = 0x8 + KEYCTL_MOVE = 0x1e + KEYCTL_MOVE_EXCL = 0x1 + KEYCTL_NEGATE = 0xd + KEYCTL_PKEY_DECRYPT = 0x1a + KEYCTL_PKEY_ENCRYPT = 0x19 + KEYCTL_PKEY_QUERY = 0x18 + KEYCTL_PKEY_SIGN = 0x1b + KEYCTL_PKEY_VERIFY = 0x1c + KEYCTL_READ = 0xb + KEYCTL_REJECT = 0x13 + KEYCTL_RESTRICT_KEYRING = 0x1d + KEYCTL_REVOKE = 0x3 + KEYCTL_SEARCH = 0xa + KEYCTL_SESSION_TO_PARENT = 0x12 + KEYCTL_SETPERM = 0x5 + KEYCTL_SET_REQKEY_KEYRING = 0xe + KEYCTL_SET_TIMEOUT = 0xf + KEYCTL_SUPPORTS_DECRYPT = 0x2 + KEYCTL_SUPPORTS_ENCRYPT = 0x1 + KEYCTL_SUPPORTS_SIGN = 0x4 + KEYCTL_SUPPORTS_VERIFY = 0x8 + KEYCTL_UNLINK = 0x9 + KEYCTL_UPDATE = 0x2 + KEYCTL_WATCH_KEY = 0x20 + KEY_REQKEY_DEFL_DEFAULT = 0x0 + KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 + KEY_REQKEY_DEFL_NO_CHANGE = -0x1 + KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 + KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 + KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 + KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 + KEY_REQKEY_DEFL_USER_KEYRING = 0x4 + KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 + KEY_SPEC_GROUP_KEYRING = -0x6 + KEY_SPEC_PROCESS_KEYRING = -0x2 + KEY_SPEC_REQKEY_AUTH_KEY = -0x7 + KEY_SPEC_REQUESTOR_KEYRING = -0x8 + KEY_SPEC_SESSION_KEYRING = -0x3 + KEY_SPEC_THREAD_KEYRING = -0x1 + KEY_SPEC_USER_KEYRING = -0x4 + KEY_SPEC_USER_SESSION_KEYRING = -0x5 + LANDLOCK_ACCESS_FS_EXECUTE = 0x1 + LANDLOCK_ACCESS_FS_MAKE_BLOCK = 0x800 + LANDLOCK_ACCESS_FS_MAKE_CHAR = 0x40 + LANDLOCK_ACCESS_FS_MAKE_DIR = 0x80 + LANDLOCK_ACCESS_FS_MAKE_FIFO = 0x400 + LANDLOCK_ACCESS_FS_MAKE_REG = 0x100 + LANDLOCK_ACCESS_FS_MAKE_SOCK = 0x200 + LANDLOCK_ACCESS_FS_MAKE_SYM = 0x1000 + LANDLOCK_ACCESS_FS_READ_DIR = 0x8 + LANDLOCK_ACCESS_FS_READ_FILE = 0x4 + LANDLOCK_ACCESS_FS_REFER = 0x2000 + LANDLOCK_ACCESS_FS_REMOVE_DIR = 0x10 + LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20 + LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2 + LANDLOCK_CREATE_RULESET_VERSION = 0x1 + LINUX_REBOOT_CMD_CAD_OFF = 0x0 + LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef + LINUX_REBOOT_CMD_HALT = 0xcdef0123 + LINUX_REBOOT_CMD_KEXEC = 0x45584543 + LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc + LINUX_REBOOT_CMD_RESTART = 0x1234567 + LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 + LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 + LINUX_REBOOT_MAGIC1 = 0xfee1dead + LINUX_REBOOT_MAGIC2 = 0x28121969 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + LOOP_CLR_FD = 0x4c01 + LOOP_CTL_ADD = 0x4c80 + LOOP_CTL_GET_FREE = 0x4c82 + LOOP_CTL_REMOVE = 0x4c81 + LOOP_GET_STATUS = 0x4c03 + LOOP_GET_STATUS64 = 0x4c05 + LOOP_SET_BLOCK_SIZE = 0x4c09 + LOOP_SET_CAPACITY = 0x4c07 + LOOP_SET_DIRECT_IO = 0x4c08 + LOOP_SET_FD = 0x4c00 + LOOP_SET_STATUS = 0x4c02 + LOOP_SET_STATUS64 = 0x4c04 + LOOP_SET_STATUS_CLEARABLE_FLAGS = 0x4 + LOOP_SET_STATUS_SETTABLE_FLAGS = 0xc + LO_KEY_SIZE = 0x20 + LO_NAME_SIZE = 0x40 + LWTUNNEL_IP6_MAX = 0x8 + LWTUNNEL_IP_MAX = 0x8 + LWTUNNEL_IP_OPTS_MAX = 0x3 + LWTUNNEL_IP_OPT_ERSPAN_MAX = 0x4 + LWTUNNEL_IP_OPT_GENEVE_MAX = 0x3 + LWTUNNEL_IP_OPT_VXLAN_MAX = 0x1 + MADV_COLD = 0x14 + MADV_DODUMP = 0x11 + MADV_DOFORK = 0xb + MADV_DONTDUMP = 0x10 + MADV_DONTFORK = 0xa + MADV_DONTNEED = 0x4 + MADV_DONTNEED_LOCKED = 0x18 + MADV_FREE = 0x8 + MADV_HUGEPAGE = 0xe + MADV_HWPOISON = 0x64 + MADV_KEEPONFORK = 0x13 + MADV_MERGEABLE = 0xc + MADV_NOHUGEPAGE = 0xf + MADV_NORMAL = 0x0 + MADV_PAGEOUT = 0x15 + MADV_POPULATE_READ = 0x16 + MADV_POPULATE_WRITE = 0x17 + MADV_RANDOM = 0x1 + MADV_REMOVE = 0x9 + MADV_SEQUENTIAL = 0x2 + MADV_UNMERGEABLE = 0xd + MADV_WILLNEED = 0x3 + MADV_WIPEONFORK = 0x12 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FIXED_NOREPLACE = 0x100000 + MAP_HUGE_MASK = 0x3f + MAP_HUGE_SHIFT = 0x1a + MAP_PRIVATE = 0x2 + MAP_SHARED = 0x1 + MAP_SHARED_VALIDATE = 0x3 + MAP_TYPE = 0xf + MCAST_BLOCK_SOURCE = 0x2b + MCAST_EXCLUDE = 0x0 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x2a + MCAST_JOIN_SOURCE_GROUP = 0x2e + MCAST_LEAVE_GROUP = 0x2d + MCAST_LEAVE_SOURCE_GROUP = 0x2f + MCAST_MSFILTER = 0x30 + MCAST_UNBLOCK_SOURCE = 0x2c + MEMGETREGIONINFO = 0xc0104d08 + MEMREADOOB64 = 0xc0184d16 + MEMWRITE = 0xc0304d18 + MEMWRITEOOB64 = 0xc0184d15 + MFD_ALLOW_SEALING = 0x2 + MFD_CLOEXEC = 0x1 + MFD_HUGETLB = 0x4 + MFD_HUGE_16GB = 0x88000000 + MFD_HUGE_16MB = 0x60000000 + MFD_HUGE_1GB = 0x78000000 + MFD_HUGE_1MB = 0x50000000 + MFD_HUGE_256MB = 0x70000000 + MFD_HUGE_2GB = 0x7c000000 + MFD_HUGE_2MB = 0x54000000 + MFD_HUGE_32MB = 0x64000000 + MFD_HUGE_512KB = 0x4c000000 + MFD_HUGE_512MB = 0x74000000 + MFD_HUGE_64KB = 0x40000000 + MFD_HUGE_8MB = 0x5c000000 + MFD_HUGE_MASK = 0x3f + MFD_HUGE_SHIFT = 0x1a + MINIX2_SUPER_MAGIC = 0x2468 + MINIX2_SUPER_MAGIC2 = 0x2478 + MINIX3_SUPER_MAGIC = 0x4d5a + MINIX_SUPER_MAGIC = 0x137f + MINIX_SUPER_MAGIC2 = 0x138f + MNT_DETACH = 0x2 + MNT_EXPIRE = 0x4 + MNT_FORCE = 0x1 + MODULE_INIT_COMPRESSED_FILE = 0x4 + MODULE_INIT_IGNORE_MODVERSIONS = 0x1 + MODULE_INIT_IGNORE_VERMAGIC = 0x2 + MOUNT_ATTR_IDMAP = 0x100000 + MOUNT_ATTR_NOATIME = 0x10 + MOUNT_ATTR_NODEV = 0x4 + MOUNT_ATTR_NODIRATIME = 0x80 + MOUNT_ATTR_NOEXEC = 0x8 + MOUNT_ATTR_NOSUID = 0x2 + MOUNT_ATTR_NOSYMFOLLOW = 0x200000 + MOUNT_ATTR_RDONLY = 0x1 + MOUNT_ATTR_RELATIME = 0x0 + MOUNT_ATTR_SIZE_VER0 = 0x20 + MOUNT_ATTR_STRICTATIME = 0x20 + MOUNT_ATTR__ATIME = 0x70 + MSDOS_SUPER_MAGIC = 0x4d44 + MSG_BATCH = 0x40000 + MSG_CMSG_CLOEXEC = 0x40000000 + MSG_CONFIRM = 0x800 + MSG_CTRUNC = 0x8 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x40 + MSG_EOR = 0x80 + MSG_ERRQUEUE = 0x2000 + MSG_FASTOPEN = 0x20000000 + MSG_FIN = 0x200 + MSG_MORE = 0x8000 + MSG_NOSIGNAL = 0x4000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_PROXY = 0x10 + MSG_RST = 0x1000 + MSG_SYN = 0x400 + MSG_TRUNC = 0x20 + MSG_TRYHARD = 0x4 + MSG_WAITALL = 0x100 + MSG_WAITFORONE = 0x10000 + MSG_ZEROCOPY = 0x4000000 + MS_ACTIVE = 0x40000000 + MS_ASYNC = 0x1 + MS_BIND = 0x1000 + MS_BORN = 0x20000000 + MS_DIRSYNC = 0x80 + MS_INVALIDATE = 0x2 + MS_I_VERSION = 0x800000 + MS_KERNMOUNT = 0x400000 + MS_LAZYTIME = 0x2000000 + MS_MANDLOCK = 0x40 + MS_MGC_MSK = 0xffff0000 + MS_MGC_VAL = 0xc0ed0000 + MS_MOVE = 0x2000 + MS_NOATIME = 0x400 + MS_NODEV = 0x4 + MS_NODIRATIME = 0x800 + MS_NOEXEC = 0x8 + MS_NOREMOTELOCK = 0x8000000 + MS_NOSEC = 0x10000000 + MS_NOSUID = 0x2 + MS_NOSYMFOLLOW = 0x100 + MS_NOUSER = -0x80000000 + MS_POSIXACL = 0x10000 + MS_PRIVATE = 0x40000 + MS_RDONLY = 0x1 + MS_REC = 0x4000 + MS_RELATIME = 0x200000 + MS_REMOUNT = 0x20 + MS_RMT_MASK = 0x2800051 + MS_SHARED = 0x100000 + MS_SILENT = 0x8000 + MS_SLAVE = 0x80000 + MS_STRICTATIME = 0x1000000 + MS_SUBMOUNT = 0x4000000 + MS_SYNC = 0x4 + MS_SYNCHRONOUS = 0x10 + MS_UNBINDABLE = 0x20000 + MS_VERBOSE = 0x8000 + MTD_ABSENT = 0x0 + MTD_BIT_WRITEABLE = 0x800 + MTD_CAP_NANDFLASH = 0x400 + MTD_CAP_NORFLASH = 0xc00 + MTD_CAP_NVRAM = 0x1c00 + MTD_CAP_RAM = 0x1c00 + MTD_CAP_ROM = 0x0 + MTD_DATAFLASH = 0x6 + MTD_INODE_FS_MAGIC = 0x11307854 + MTD_MAX_ECCPOS_ENTRIES = 0x40 + MTD_MAX_OOBFREE_ENTRIES = 0x8 + MTD_MLCNANDFLASH = 0x8 + MTD_NANDECC_AUTOPLACE = 0x2 + MTD_NANDECC_AUTOPL_USR = 0x4 + MTD_NANDECC_OFF = 0x0 + MTD_NANDECC_PLACE = 0x1 + MTD_NANDECC_PLACEONLY = 0x3 + MTD_NANDFLASH = 0x4 + MTD_NORFLASH = 0x3 + MTD_NO_ERASE = 0x1000 + MTD_OTP_FACTORY = 0x1 + MTD_OTP_OFF = 0x0 + MTD_OTP_USER = 0x2 + MTD_POWERUP_LOCK = 0x2000 + MTD_RAM = 0x1 + MTD_ROM = 0x2 + MTD_SLC_ON_MLC_EMULATION = 0x4000 + MTD_UBIVOLUME = 0x7 + MTD_WRITEABLE = 0x400 + NAME_MAX = 0xff + NCP_SUPER_MAGIC = 0x564c + NETLINK_ADD_MEMBERSHIP = 0x1 + NETLINK_AUDIT = 0x9 + NETLINK_BROADCAST_ERROR = 0x4 + NETLINK_CAP_ACK = 0xa + NETLINK_CONNECTOR = 0xb + NETLINK_CRYPTO = 0x15 + NETLINK_DNRTMSG = 0xe + NETLINK_DROP_MEMBERSHIP = 0x2 + NETLINK_ECRYPTFS = 0x13 + NETLINK_EXT_ACK = 0xb + NETLINK_FIB_LOOKUP = 0xa + NETLINK_FIREWALL = 0x3 + NETLINK_GENERIC = 0x10 + NETLINK_GET_STRICT_CHK = 0xc + NETLINK_INET_DIAG = 0x4 + NETLINK_IP6_FW = 0xd + NETLINK_ISCSI = 0x8 + NETLINK_KOBJECT_UEVENT = 0xf + NETLINK_LISTEN_ALL_NSID = 0x8 + NETLINK_LIST_MEMBERSHIPS = 0x9 + NETLINK_NETFILTER = 0xc + NETLINK_NFLOG = 0x5 + NETLINK_NO_ENOBUFS = 0x5 + NETLINK_PKTINFO = 0x3 + NETLINK_RDMA = 0x14 + NETLINK_ROUTE = 0x0 + NETLINK_RX_RING = 0x6 + NETLINK_SCSITRANSPORT = 0x12 + NETLINK_SELINUX = 0x7 + NETLINK_SMC = 0x16 + NETLINK_SOCK_DIAG = 0x4 + NETLINK_TX_RING = 0x7 + NETLINK_UNUSED = 0x1 + NETLINK_USERSOCK = 0x2 + NETLINK_XFRM = 0x6 + NETNSA_MAX = 0x5 + NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFC_ATR_REQ_GB_MAXSIZE = 0x30 + NFC_ATR_REQ_MAXSIZE = 0x40 + NFC_ATR_RES_GB_MAXSIZE = 0x2f + NFC_ATR_RES_MAXSIZE = 0x40 + NFC_COMM_ACTIVE = 0x0 + NFC_COMM_PASSIVE = 0x1 + NFC_DEVICE_NAME_MAXSIZE = 0x8 + NFC_DIRECTION_RX = 0x0 + NFC_DIRECTION_TX = 0x1 + NFC_FIRMWARE_NAME_MAXSIZE = 0x20 + NFC_GB_MAXSIZE = 0x30 + NFC_GENL_MCAST_EVENT_NAME = "events" + NFC_GENL_NAME = "nfc" + NFC_GENL_VERSION = 0x1 + NFC_HEADER_SIZE = 0x1 + NFC_ISO15693_UID_MAXSIZE = 0x8 + NFC_LLCP_MAX_SERVICE_NAME = 0x3f + NFC_LLCP_MIUX = 0x1 + NFC_LLCP_REMOTE_LTO = 0x3 + NFC_LLCP_REMOTE_MIU = 0x2 + NFC_LLCP_REMOTE_RW = 0x4 + NFC_LLCP_RW = 0x0 + NFC_NFCID1_MAXSIZE = 0xa + NFC_NFCID2_MAXSIZE = 0x8 + NFC_NFCID3_MAXSIZE = 0xa + NFC_PROTO_FELICA = 0x3 + NFC_PROTO_FELICA_MASK = 0x8 + NFC_PROTO_ISO14443 = 0x4 + NFC_PROTO_ISO14443_B = 0x6 + NFC_PROTO_ISO14443_B_MASK = 0x40 + NFC_PROTO_ISO14443_MASK = 0x10 + NFC_PROTO_ISO15693 = 0x7 + NFC_PROTO_ISO15693_MASK = 0x80 + NFC_PROTO_JEWEL = 0x1 + NFC_PROTO_JEWEL_MASK = 0x2 + NFC_PROTO_MAX = 0x8 + NFC_PROTO_MIFARE = 0x2 + NFC_PROTO_MIFARE_MASK = 0x4 + NFC_PROTO_NFC_DEP = 0x5 + NFC_PROTO_NFC_DEP_MASK = 0x20 + NFC_RAW_HEADER_SIZE = 0x2 + NFC_RF_INITIATOR = 0x0 + NFC_RF_NONE = 0x2 + NFC_RF_TARGET = 0x1 + NFC_SENSB_RES_MAXSIZE = 0xc + NFC_SENSF_RES_MAXSIZE = 0x12 + NFC_SE_DISABLED = 0x0 + NFC_SE_EMBEDDED = 0x2 + NFC_SE_ENABLED = 0x1 + NFC_SE_UICC = 0x1 + NFC_SOCKPROTO_LLCP = 0x1 + NFC_SOCKPROTO_MAX = 0x2 + NFC_SOCKPROTO_RAW = 0x0 + NFNETLINK_V0 = 0x0 + NFNLGRP_ACCT_QUOTA = 0x8 + NFNLGRP_CONNTRACK_DESTROY = 0x3 + NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6 + NFNLGRP_CONNTRACK_EXP_NEW = 0x4 + NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5 + NFNLGRP_CONNTRACK_NEW = 0x1 + NFNLGRP_CONNTRACK_UPDATE = 0x2 + NFNLGRP_MAX = 0x9 + NFNLGRP_NFTABLES = 0x7 + NFNLGRP_NFTRACE = 0x9 + NFNLGRP_NONE = 0x0 + NFNL_BATCH_MAX = 0x1 + NFNL_MSG_BATCH_BEGIN = 0x10 + NFNL_MSG_BATCH_END = 0x11 + NFNL_NFA_NEST = 0x8000 + NFNL_SUBSYS_ACCT = 0x7 + NFNL_SUBSYS_COUNT = 0xd + NFNL_SUBSYS_CTHELPER = 0x9 + NFNL_SUBSYS_CTNETLINK = 0x1 + NFNL_SUBSYS_CTNETLINK_EXP = 0x2 + NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8 + NFNL_SUBSYS_HOOK = 0xc + NFNL_SUBSYS_IPSET = 0x6 + NFNL_SUBSYS_NFTABLES = 0xa + NFNL_SUBSYS_NFT_COMPAT = 0xb + NFNL_SUBSYS_NONE = 0x0 + NFNL_SUBSYS_OSF = 0x5 + NFNL_SUBSYS_QUEUE = 0x3 + NFNL_SUBSYS_ULOG = 0x4 + NFS_SUPER_MAGIC = 0x6969 + NILFS_SUPER_MAGIC = 0x3434 + NL0 = 0x0 + NL1 = 0x100 + NLA_ALIGNTO = 0x4 + NLA_F_NESTED = 0x8000 + NLA_F_NET_BYTEORDER = 0x4000 + NLA_HDRLEN = 0x4 + NLMSG_ALIGNTO = 0x4 + NLMSG_DONE = 0x3 + NLMSG_ERROR = 0x2 + NLMSG_HDRLEN = 0x10 + NLMSG_MIN_TYPE = 0x10 + NLMSG_NOOP = 0x1 + NLMSG_OVERRUN = 0x4 + NLM_F_ACK = 0x4 + NLM_F_ACK_TLVS = 0x200 + NLM_F_APPEND = 0x800 + NLM_F_ATOMIC = 0x400 + NLM_F_BULK = 0x200 + NLM_F_CAPPED = 0x100 + NLM_F_CREATE = 0x400 + NLM_F_DUMP = 0x300 + NLM_F_DUMP_FILTERED = 0x20 + NLM_F_DUMP_INTR = 0x10 + NLM_F_ECHO = 0x8 + NLM_F_EXCL = 0x200 + NLM_F_MATCH = 0x200 + NLM_F_MULTI = 0x2 + NLM_F_NONREC = 0x100 + NLM_F_REPLACE = 0x100 + NLM_F_REQUEST = 0x1 + NLM_F_ROOT = 0x100 + NSFS_MAGIC = 0x6e736673 + OCFS2_SUPER_MAGIC = 0x7461636f + OCRNL = 0x8 + OFDEL = 0x80 + OFILL = 0x40 + ONLRET = 0x20 + ONOCR = 0x10 + OPENPROM_SUPER_MAGIC = 0x9fa1 + OPOST = 0x1 + OVERLAYFS_SUPER_MAGIC = 0x794c7630 + O_ACCMODE = 0x3 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_WRONLY = 0x1 + PACKET_ADD_MEMBERSHIP = 0x1 + PACKET_AUXDATA = 0x8 + PACKET_BROADCAST = 0x1 + PACKET_COPY_THRESH = 0x7 + PACKET_DROP_MEMBERSHIP = 0x2 + PACKET_FANOUT = 0x12 + PACKET_FANOUT_CBPF = 0x6 + PACKET_FANOUT_CPU = 0x2 + PACKET_FANOUT_DATA = 0x16 + PACKET_FANOUT_EBPF = 0x7 + PACKET_FANOUT_FLAG_DEFRAG = 0x8000 + PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 + PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 + PACKET_FANOUT_HASH = 0x0 + PACKET_FANOUT_LB = 0x1 + PACKET_FANOUT_QM = 0x5 + PACKET_FANOUT_RND = 0x4 + PACKET_FANOUT_ROLLOVER = 0x3 + PACKET_FASTROUTE = 0x6 + PACKET_HDRLEN = 0xb + PACKET_HOST = 0x0 + PACKET_IGNORE_OUTGOING = 0x17 + PACKET_KERNEL = 0x7 + PACKET_LOOPBACK = 0x5 + PACKET_LOSS = 0xe + PACKET_MR_ALLMULTI = 0x2 + PACKET_MR_MULTICAST = 0x0 + PACKET_MR_PROMISC = 0x1 + PACKET_MR_UNICAST = 0x3 + PACKET_MULTICAST = 0x2 + PACKET_ORIGDEV = 0x9 + PACKET_OTHERHOST = 0x3 + PACKET_OUTGOING = 0x4 + PACKET_QDISC_BYPASS = 0x14 + PACKET_RECV_OUTPUT = 0x3 + PACKET_RESERVE = 0xc + PACKET_ROLLOVER_STATS = 0x15 + PACKET_RX_RING = 0x5 + PACKET_STATISTICS = 0x6 + PACKET_TIMESTAMP = 0x11 + PACKET_TX_HAS_OFF = 0x13 + PACKET_TX_RING = 0xd + PACKET_TX_TIMESTAMP = 0x10 + PACKET_USER = 0x6 + PACKET_VERSION = 0xa + PACKET_VNET_HDR = 0xf + PARITY_CRC16_PR0 = 0x2 + PARITY_CRC16_PR0_CCITT = 0x4 + PARITY_CRC16_PR1 = 0x3 + PARITY_CRC16_PR1_CCITT = 0x5 + PARITY_CRC32_PR0_CCITT = 0x6 + PARITY_CRC32_PR1_CCITT = 0x7 + PARITY_DEFAULT = 0x0 + PARITY_NONE = 0x1 + PARMRK = 0x8 + PERF_ATTR_SIZE_VER0 = 0x40 + PERF_ATTR_SIZE_VER1 = 0x48 + PERF_ATTR_SIZE_VER2 = 0x50 + PERF_ATTR_SIZE_VER3 = 0x60 + PERF_ATTR_SIZE_VER4 = 0x68 + PERF_ATTR_SIZE_VER5 = 0x70 + PERF_ATTR_SIZE_VER6 = 0x78 + PERF_ATTR_SIZE_VER7 = 0x80 + PERF_AUX_FLAG_COLLISION = 0x8 + PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT = 0x0 + PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW = 0x100 + PERF_AUX_FLAG_OVERWRITE = 0x2 + PERF_AUX_FLAG_PARTIAL = 0x4 + PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK = 0xff00 + PERF_AUX_FLAG_TRUNCATED = 0x1 + PERF_BR_ARM64_DEBUG_DATA = 0x7 + PERF_BR_ARM64_DEBUG_EXIT = 0x5 + PERF_BR_ARM64_DEBUG_HALT = 0x4 + PERF_BR_ARM64_DEBUG_INST = 0x6 + PERF_BR_ARM64_FIQ = 0x3 + PERF_FLAG_FD_CLOEXEC = 0x8 + PERF_FLAG_FD_NO_GROUP = 0x1 + PERF_FLAG_FD_OUTPUT = 0x2 + PERF_FLAG_PID_CGROUP = 0x4 + PERF_HW_EVENT_MASK = 0xffffffff + PERF_MAX_CONTEXTS_PER_STACK = 0x8 + PERF_MAX_STACK_DEPTH = 0x7f + PERF_MEM_BLK_ADDR = 0x4 + PERF_MEM_BLK_DATA = 0x2 + PERF_MEM_BLK_NA = 0x1 + PERF_MEM_BLK_SHIFT = 0x28 + PERF_MEM_HOPS_0 = 0x1 + PERF_MEM_HOPS_1 = 0x2 + PERF_MEM_HOPS_2 = 0x3 + PERF_MEM_HOPS_3 = 0x4 + PERF_MEM_HOPS_SHIFT = 0x2b + PERF_MEM_LOCK_LOCKED = 0x2 + PERF_MEM_LOCK_NA = 0x1 + PERF_MEM_LOCK_SHIFT = 0x18 + PERF_MEM_LVLNUM_ANY_CACHE = 0xb + PERF_MEM_LVLNUM_CXL = 0x9 + PERF_MEM_LVLNUM_IO = 0xa + PERF_MEM_LVLNUM_L1 = 0x1 + PERF_MEM_LVLNUM_L2 = 0x2 + PERF_MEM_LVLNUM_L3 = 0x3 + PERF_MEM_LVLNUM_L4 = 0x4 + PERF_MEM_LVLNUM_LFB = 0xc + PERF_MEM_LVLNUM_NA = 0xf + PERF_MEM_LVLNUM_PMEM = 0xe + PERF_MEM_LVLNUM_RAM = 0xd + PERF_MEM_LVLNUM_SHIFT = 0x21 + PERF_MEM_LVL_HIT = 0x2 + PERF_MEM_LVL_IO = 0x1000 + PERF_MEM_LVL_L1 = 0x8 + PERF_MEM_LVL_L2 = 0x20 + PERF_MEM_LVL_L3 = 0x40 + PERF_MEM_LVL_LFB = 0x10 + PERF_MEM_LVL_LOC_RAM = 0x80 + PERF_MEM_LVL_MISS = 0x4 + PERF_MEM_LVL_NA = 0x1 + PERF_MEM_LVL_REM_CCE1 = 0x400 + PERF_MEM_LVL_REM_CCE2 = 0x800 + PERF_MEM_LVL_REM_RAM1 = 0x100 + PERF_MEM_LVL_REM_RAM2 = 0x200 + PERF_MEM_LVL_SHIFT = 0x5 + PERF_MEM_LVL_UNC = 0x2000 + PERF_MEM_OP_EXEC = 0x10 + PERF_MEM_OP_LOAD = 0x2 + PERF_MEM_OP_NA = 0x1 + PERF_MEM_OP_PFETCH = 0x8 + PERF_MEM_OP_SHIFT = 0x0 + PERF_MEM_OP_STORE = 0x4 + PERF_MEM_REMOTE_REMOTE = 0x1 + PERF_MEM_REMOTE_SHIFT = 0x25 + PERF_MEM_SNOOPX_FWD = 0x1 + PERF_MEM_SNOOPX_PEER = 0x2 + PERF_MEM_SNOOPX_SHIFT = 0x26 + PERF_MEM_SNOOP_HIT = 0x4 + PERF_MEM_SNOOP_HITM = 0x10 + PERF_MEM_SNOOP_MISS = 0x8 + PERF_MEM_SNOOP_NA = 0x1 + PERF_MEM_SNOOP_NONE = 0x2 + PERF_MEM_SNOOP_SHIFT = 0x13 + PERF_MEM_TLB_HIT = 0x2 + PERF_MEM_TLB_L1 = 0x8 + PERF_MEM_TLB_L2 = 0x10 + PERF_MEM_TLB_MISS = 0x4 + PERF_MEM_TLB_NA = 0x1 + PERF_MEM_TLB_OS = 0x40 + PERF_MEM_TLB_SHIFT = 0x1a + PERF_MEM_TLB_WK = 0x20 + PERF_PMU_TYPE_SHIFT = 0x20 + PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER = 0x1 + PERF_RECORD_MISC_COMM_EXEC = 0x2000 + PERF_RECORD_MISC_CPUMODE_MASK = 0x7 + PERF_RECORD_MISC_CPUMODE_UNKNOWN = 0x0 + PERF_RECORD_MISC_EXACT_IP = 0x4000 + PERF_RECORD_MISC_EXT_RESERVED = 0x8000 + PERF_RECORD_MISC_FORK_EXEC = 0x2000 + PERF_RECORD_MISC_GUEST_KERNEL = 0x4 + PERF_RECORD_MISC_GUEST_USER = 0x5 + PERF_RECORD_MISC_HYPERVISOR = 0x3 + PERF_RECORD_MISC_KERNEL = 0x1 + PERF_RECORD_MISC_MMAP_BUILD_ID = 0x4000 + PERF_RECORD_MISC_MMAP_DATA = 0x2000 + PERF_RECORD_MISC_PROC_MAP_PARSE_TIMEOUT = 0x1000 + PERF_RECORD_MISC_SWITCH_OUT = 0x2000 + PERF_RECORD_MISC_SWITCH_OUT_PREEMPT = 0x4000 + PERF_RECORD_MISC_USER = 0x2 + PERF_SAMPLE_BRANCH_PLM_ALL = 0x7 + PERF_SAMPLE_WEIGHT_TYPE = 0x1004000 + PIPEFS_MAGIC = 0x50495045 + PPPIOCGNPMODE = 0xc008744c + PPPIOCNEWUNIT = 0xc004743e + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROC_SUPER_MAGIC = 0x9fa0 + PROT_EXEC = 0x4 + PROT_GROWSDOWN = 0x1000000 + PROT_GROWSUP = 0x2000000 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PR_CAPBSET_DROP = 0x18 + PR_CAPBSET_READ = 0x17 + PR_CAP_AMBIENT = 0x2f + PR_CAP_AMBIENT_CLEAR_ALL = 0x4 + PR_CAP_AMBIENT_IS_SET = 0x1 + PR_CAP_AMBIENT_LOWER = 0x3 + PR_CAP_AMBIENT_RAISE = 0x2 + PR_ENDIAN_BIG = 0x0 + PR_ENDIAN_LITTLE = 0x1 + PR_ENDIAN_PPC_LITTLE = 0x2 + PR_FPEMU_NOPRINT = 0x1 + PR_FPEMU_SIGFPE = 0x2 + PR_FP_EXC_ASYNC = 0x2 + PR_FP_EXC_DISABLED = 0x0 + PR_FP_EXC_DIV = 0x10000 + PR_FP_EXC_INV = 0x100000 + PR_FP_EXC_NONRECOV = 0x1 + PR_FP_EXC_OVF = 0x20000 + PR_FP_EXC_PRECISE = 0x3 + PR_FP_EXC_RES = 0x80000 + PR_FP_EXC_SW_ENABLE = 0x80 + PR_FP_EXC_UND = 0x40000 + PR_FP_MODE_FR = 0x1 + PR_FP_MODE_FRE = 0x2 + PR_GET_CHILD_SUBREAPER = 0x25 + PR_GET_DUMPABLE = 0x3 + PR_GET_ENDIAN = 0x13 + PR_GET_FPEMU = 0x9 + PR_GET_FPEXC = 0xb + PR_GET_FP_MODE = 0x2e + PR_GET_IO_FLUSHER = 0x3a + PR_GET_KEEPCAPS = 0x7 + PR_GET_NAME = 0x10 + PR_GET_NO_NEW_PRIVS = 0x27 + PR_GET_PDEATHSIG = 0x2 + PR_GET_SECCOMP = 0x15 + PR_GET_SECUREBITS = 0x1b + PR_GET_SPECULATION_CTRL = 0x34 + PR_GET_TAGGED_ADDR_CTRL = 0x38 + PR_GET_THP_DISABLE = 0x2a + PR_GET_TID_ADDRESS = 0x28 + PR_GET_TIMERSLACK = 0x1e + PR_GET_TIMING = 0xd + PR_GET_TSC = 0x19 + PR_GET_UNALIGN = 0x5 + PR_MCE_KILL = 0x21 + PR_MCE_KILL_CLEAR = 0x0 + PR_MCE_KILL_DEFAULT = 0x2 + PR_MCE_KILL_EARLY = 0x1 + PR_MCE_KILL_GET = 0x22 + PR_MCE_KILL_LATE = 0x0 + PR_MCE_KILL_SET = 0x1 + PR_MPX_DISABLE_MANAGEMENT = 0x2c + PR_MPX_ENABLE_MANAGEMENT = 0x2b + PR_MTE_TAG_MASK = 0x7fff8 + PR_MTE_TAG_SHIFT = 0x3 + PR_MTE_TCF_ASYNC = 0x4 + PR_MTE_TCF_MASK = 0x6 + PR_MTE_TCF_NONE = 0x0 + PR_MTE_TCF_SHIFT = 0x1 + PR_MTE_TCF_SYNC = 0x2 + PR_PAC_APDAKEY = 0x4 + PR_PAC_APDBKEY = 0x8 + PR_PAC_APGAKEY = 0x10 + PR_PAC_APIAKEY = 0x1 + PR_PAC_APIBKEY = 0x2 + PR_PAC_GET_ENABLED_KEYS = 0x3d + PR_PAC_RESET_KEYS = 0x36 + PR_PAC_SET_ENABLED_KEYS = 0x3c + PR_SCHED_CORE = 0x3e + PR_SCHED_CORE_CREATE = 0x1 + PR_SCHED_CORE_GET = 0x0 + PR_SCHED_CORE_MAX = 0x4 + PR_SCHED_CORE_SCOPE_PROCESS_GROUP = 0x2 + PR_SCHED_CORE_SCOPE_THREAD = 0x0 + PR_SCHED_CORE_SCOPE_THREAD_GROUP = 0x1 + PR_SCHED_CORE_SHARE_FROM = 0x3 + PR_SCHED_CORE_SHARE_TO = 0x2 + PR_SET_CHILD_SUBREAPER = 0x24 + PR_SET_DUMPABLE = 0x4 + PR_SET_ENDIAN = 0x14 + PR_SET_FPEMU = 0xa + PR_SET_FPEXC = 0xc + PR_SET_FP_MODE = 0x2d + PR_SET_IO_FLUSHER = 0x39 + PR_SET_KEEPCAPS = 0x8 + PR_SET_MM = 0x23 + PR_SET_MM_ARG_END = 0x9 + PR_SET_MM_ARG_START = 0x8 + PR_SET_MM_AUXV = 0xc + PR_SET_MM_BRK = 0x7 + PR_SET_MM_END_CODE = 0x2 + PR_SET_MM_END_DATA = 0x4 + PR_SET_MM_ENV_END = 0xb + PR_SET_MM_ENV_START = 0xa + PR_SET_MM_EXE_FILE = 0xd + PR_SET_MM_MAP = 0xe + PR_SET_MM_MAP_SIZE = 0xf + PR_SET_MM_START_BRK = 0x6 + PR_SET_MM_START_CODE = 0x1 + PR_SET_MM_START_DATA = 0x3 + PR_SET_MM_START_STACK = 0x5 + PR_SET_NAME = 0xf + PR_SET_NO_NEW_PRIVS = 0x26 + PR_SET_PDEATHSIG = 0x1 + PR_SET_PTRACER = 0x59616d61 + PR_SET_SECCOMP = 0x16 + PR_SET_SECUREBITS = 0x1c + PR_SET_SPECULATION_CTRL = 0x35 + PR_SET_SYSCALL_USER_DISPATCH = 0x3b + PR_SET_TAGGED_ADDR_CTRL = 0x37 + PR_SET_THP_DISABLE = 0x29 + PR_SET_TIMERSLACK = 0x1d + PR_SET_TIMING = 0xe + PR_SET_TSC = 0x1a + PR_SET_UNALIGN = 0x6 + PR_SET_VMA = 0x53564d41 + PR_SET_VMA_ANON_NAME = 0x0 + PR_SME_GET_VL = 0x40 + PR_SME_SET_VL = 0x3f + PR_SME_SET_VL_ONEXEC = 0x40000 + PR_SME_VL_INHERIT = 0x20000 + PR_SME_VL_LEN_MASK = 0xffff + PR_SPEC_DISABLE = 0x4 + PR_SPEC_DISABLE_NOEXEC = 0x10 + PR_SPEC_ENABLE = 0x2 + PR_SPEC_FORCE_DISABLE = 0x8 + PR_SPEC_INDIRECT_BRANCH = 0x1 + PR_SPEC_L1D_FLUSH = 0x2 + PR_SPEC_NOT_AFFECTED = 0x0 + PR_SPEC_PRCTL = 0x1 + PR_SPEC_STORE_BYPASS = 0x0 + PR_SVE_GET_VL = 0x33 + PR_SVE_SET_VL = 0x32 + PR_SVE_SET_VL_ONEXEC = 0x40000 + PR_SVE_VL_INHERIT = 0x20000 + PR_SVE_VL_LEN_MASK = 0xffff + PR_SYS_DISPATCH_OFF = 0x0 + PR_SYS_DISPATCH_ON = 0x1 + PR_TAGGED_ADDR_ENABLE = 0x1 + PR_TASK_PERF_EVENTS_DISABLE = 0x1f + PR_TASK_PERF_EVENTS_ENABLE = 0x20 + PR_TIMING_STATISTICAL = 0x0 + PR_TIMING_TIMESTAMP = 0x1 + PR_TSC_ENABLE = 0x1 + PR_TSC_SIGSEGV = 0x2 + PR_UNALIGN_NOPRINT = 0x1 + PR_UNALIGN_SIGBUS = 0x2 + PSTOREFS_MAGIC = 0x6165676c + PTRACE_ATTACH = 0x10 + PTRACE_CONT = 0x7 + PTRACE_DETACH = 0x11 + PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1 + PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2 + PTRACE_EVENT_CLONE = 0x3 + PTRACE_EVENT_EXEC = 0x4 + PTRACE_EVENT_EXIT = 0x6 + PTRACE_EVENT_FORK = 0x1 + PTRACE_EVENT_SECCOMP = 0x7 + PTRACE_EVENT_STOP = 0x80 + PTRACE_EVENT_VFORK = 0x2 + PTRACE_EVENT_VFORK_DONE = 0x5 + PTRACE_GETEVENTMSG = 0x4201 + PTRACE_GETREGS = 0xc + PTRACE_GETREGSET = 0x4204 + PTRACE_GETSIGINFO = 0x4202 + PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_RSEQ_CONFIGURATION = 0x420f + PTRACE_GET_SYSCALL_INFO = 0x420e + PTRACE_INTERRUPT = 0x4207 + PTRACE_KILL = 0x8 + PTRACE_LISTEN = 0x4208 + PTRACE_O_EXITKILL = 0x100000 + PTRACE_O_MASK = 0x3000ff + PTRACE_O_SUSPEND_SECCOMP = 0x200000 + PTRACE_O_TRACECLONE = 0x8 + PTRACE_O_TRACEEXEC = 0x10 + PTRACE_O_TRACEEXIT = 0x40 + PTRACE_O_TRACEFORK = 0x2 + PTRACE_O_TRACESECCOMP = 0x80 + PTRACE_O_TRACESYSGOOD = 0x1 + PTRACE_O_TRACEVFORK = 0x4 + PTRACE_O_TRACEVFORKDONE = 0x20 + PTRACE_PEEKDATA = 0x2 + PTRACE_PEEKSIGINFO = 0x4209 + PTRACE_PEEKSIGINFO_SHARED = 0x1 + PTRACE_PEEKTEXT = 0x1 + PTRACE_PEEKUSR = 0x3 + PTRACE_POKEDATA = 0x5 + PTRACE_POKETEXT = 0x4 + PTRACE_POKEUSR = 0x6 + PTRACE_SECCOMP_GET_FILTER = 0x420c + PTRACE_SECCOMP_GET_METADATA = 0x420d + PTRACE_SEIZE = 0x4206 + PTRACE_SETOPTIONS = 0x4200 + PTRACE_SETREGS = 0xd + PTRACE_SETREGSET = 0x4205 + PTRACE_SETSIGINFO = 0x4203 + PTRACE_SETSIGMASK = 0x420b + PTRACE_SINGLESTEP = 0x9 + PTRACE_SYSCALL = 0x18 + PTRACE_SYSCALL_INFO_ENTRY = 0x1 + PTRACE_SYSCALL_INFO_EXIT = 0x2 + PTRACE_SYSCALL_INFO_NONE = 0x0 + PTRACE_SYSCALL_INFO_SECCOMP = 0x3 + PTRACE_TRACEME = 0x0 + P_ALL = 0x0 + P_PGID = 0x2 + P_PID = 0x1 + P_PIDFD = 0x3 + QNX4_SUPER_MAGIC = 0x2f + QNX6_SUPER_MAGIC = 0x68191122 + RAMFS_MAGIC = 0x858458f6 + RAW_PAYLOAD_DIGITAL = 0x3 + RAW_PAYLOAD_HCI = 0x2 + RAW_PAYLOAD_LLCP = 0x0 + RAW_PAYLOAD_NCI = 0x1 + RAW_PAYLOAD_PROPRIETARY = 0x4 + RDTGROUP_SUPER_MAGIC = 0x7655821 + REISERFS_SUPER_MAGIC = 0x52654973 + RENAME_EXCHANGE = 0x2 + RENAME_NOREPLACE = 0x1 + RENAME_WHITEOUT = 0x4 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_LOCKS = 0xa + RLIMIT_MSGQUEUE = 0xc + RLIMIT_NICE = 0xd + RLIMIT_RTPRIO = 0xe + RLIMIT_RTTIME = 0xf + RLIMIT_SIGPENDING = 0xb + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0xffffffffffffffff + RTAX_ADVMSS = 0x8 + RTAX_CC_ALGO = 0x10 + RTAX_CWND = 0x7 + RTAX_FASTOPEN_NO_COOKIE = 0x11 + RTAX_FEATURES = 0xc + RTAX_FEATURE_ALLFRAG = 0x8 + RTAX_FEATURE_ECN = 0x1 + RTAX_FEATURE_MASK = 0xf + RTAX_FEATURE_SACK = 0x2 + RTAX_FEATURE_TIMESTAMP = 0x4 + RTAX_HOPLIMIT = 0xa + RTAX_INITCWND = 0xb + RTAX_INITRWND = 0xe + RTAX_LOCK = 0x1 + RTAX_MAX = 0x11 + RTAX_MTU = 0x2 + RTAX_QUICKACK = 0xf + RTAX_REORDERING = 0x9 + RTAX_RTO_MIN = 0xd + RTAX_RTT = 0x4 + RTAX_RTTVAR = 0x5 + RTAX_SSTHRESH = 0x6 + RTAX_UNSPEC = 0x0 + RTAX_WINDOW = 0x3 + RTA_ALIGNTO = 0x4 + RTA_MAX = 0x1e + RTCF_DIRECTSRC = 0x4000000 + RTCF_DOREDIRECT = 0x1000000 + RTCF_LOG = 0x2000000 + RTCF_MASQ = 0x400000 + RTCF_NAT = 0x800000 + RTCF_VALVE = 0x200000 + RTC_AF = 0x20 + RTC_BSM_DIRECT = 0x1 + RTC_BSM_DISABLED = 0x0 + RTC_BSM_LEVEL = 0x2 + RTC_BSM_STANDBY = 0x3 + RTC_FEATURE_ALARM = 0x0 + RTC_FEATURE_ALARM_RES_2S = 0x3 + RTC_FEATURE_ALARM_RES_MINUTE = 0x1 + RTC_FEATURE_ALARM_WAKEUP_ONLY = 0x7 + RTC_FEATURE_BACKUP_SWITCH_MODE = 0x6 + RTC_FEATURE_CNT = 0x8 + RTC_FEATURE_CORRECTION = 0x5 + RTC_FEATURE_NEED_WEEK_DAY = 0x2 + RTC_FEATURE_UPDATE_INTERRUPT = 0x4 + RTC_IRQF = 0x80 + RTC_MAX_FREQ = 0x2000 + RTC_PARAM_BACKUP_SWITCH_MODE = 0x2 + RTC_PARAM_CORRECTION = 0x1 + RTC_PARAM_FEATURES = 0x0 + RTC_PF = 0x40 + RTC_UF = 0x10 + RTF_ADDRCLASSMASK = 0xf8000000 + RTF_ADDRCONF = 0x40000 + RTF_ALLONLINK = 0x20000 + RTF_BROADCAST = 0x10000000 + RTF_CACHE = 0x1000000 + RTF_DEFAULT = 0x10000 + RTF_DYNAMIC = 0x10 + RTF_FLOW = 0x2000000 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_INTERFACE = 0x40000000 + RTF_IRTT = 0x100 + RTF_LINKRT = 0x100000 + RTF_LOCAL = 0x80000000 + RTF_MODIFIED = 0x20 + RTF_MSS = 0x40 + RTF_MTU = 0x40 + RTF_MULTICAST = 0x20000000 + RTF_NAT = 0x8000000 + RTF_NOFORWARD = 0x1000 + RTF_NONEXTHOP = 0x200000 + RTF_NOPMTUDISC = 0x4000 + RTF_POLICY = 0x4000000 + RTF_REINSTATE = 0x8 + RTF_REJECT = 0x200 + RTF_STATIC = 0x400 + RTF_THROW = 0x2000 + RTF_UP = 0x1 + RTF_WINDOW = 0x80 + RTF_XRESOLVE = 0x800 + RTMGRP_DECnet_IFADDR = 0x1000 + RTMGRP_DECnet_ROUTE = 0x4000 + RTMGRP_IPV4_IFADDR = 0x10 + RTMGRP_IPV4_MROUTE = 0x20 + RTMGRP_IPV4_ROUTE = 0x40 + RTMGRP_IPV4_RULE = 0x80 + RTMGRP_IPV6_IFADDR = 0x100 + RTMGRP_IPV6_IFINFO = 0x800 + RTMGRP_IPV6_MROUTE = 0x200 + RTMGRP_IPV6_PREFIX = 0x20000 + RTMGRP_IPV6_ROUTE = 0x400 + RTMGRP_LINK = 0x1 + RTMGRP_NEIGH = 0x4 + RTMGRP_NOTIFY = 0x2 + RTMGRP_TC = 0x8 + RTM_BASE = 0x10 + RTM_DELACTION = 0x31 + RTM_DELADDR = 0x15 + RTM_DELADDRLABEL = 0x49 + RTM_DELCHAIN = 0x65 + RTM_DELLINK = 0x11 + RTM_DELLINKPROP = 0x6d + RTM_DELMDB = 0x55 + RTM_DELNEIGH = 0x1d + RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 + RTM_DELNEXTHOPBUCKET = 0x75 + RTM_DELNSID = 0x59 + RTM_DELQDISC = 0x25 + RTM_DELROUTE = 0x19 + RTM_DELRULE = 0x21 + RTM_DELTCLASS = 0x29 + RTM_DELTFILTER = 0x2d + RTM_DELTUNNEL = 0x79 + RTM_DELVLAN = 0x71 + RTM_F_CLONED = 0x200 + RTM_F_EQUALIZE = 0x400 + RTM_F_FIB_MATCH = 0x2000 + RTM_F_LOOKUP_TABLE = 0x1000 + RTM_F_NOTIFY = 0x100 + RTM_F_OFFLOAD = 0x4000 + RTM_F_OFFLOAD_FAILED = 0x20000000 + RTM_F_PREFIX = 0x800 + RTM_F_TRAP = 0x8000 + RTM_GETACTION = 0x32 + RTM_GETADDR = 0x16 + RTM_GETADDRLABEL = 0x4a + RTM_GETANYCAST = 0x3e + RTM_GETCHAIN = 0x66 + RTM_GETDCB = 0x4e + RTM_GETLINK = 0x12 + RTM_GETLINKPROP = 0x6e + RTM_GETMDB = 0x56 + RTM_GETMULTICAST = 0x3a + RTM_GETNEIGH = 0x1e + RTM_GETNEIGHTBL = 0x42 + RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a + RTM_GETNEXTHOPBUCKET = 0x76 + RTM_GETNSID = 0x5a + RTM_GETQDISC = 0x26 + RTM_GETROUTE = 0x1a + RTM_GETRULE = 0x22 + RTM_GETSTATS = 0x5e + RTM_GETTCLASS = 0x2a + RTM_GETTFILTER = 0x2e + RTM_GETTUNNEL = 0x7a + RTM_GETVLAN = 0x72 + RTM_MAX = 0x7b + RTM_NEWACTION = 0x30 + RTM_NEWADDR = 0x14 + RTM_NEWADDRLABEL = 0x48 + RTM_NEWCACHEREPORT = 0x60 + RTM_NEWCHAIN = 0x64 + RTM_NEWLINK = 0x10 + RTM_NEWLINKPROP = 0x6c + RTM_NEWMDB = 0x54 + RTM_NEWNDUSEROPT = 0x44 + RTM_NEWNEIGH = 0x1c + RTM_NEWNEIGHTBL = 0x40 + RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 + RTM_NEWNEXTHOPBUCKET = 0x74 + RTM_NEWNSID = 0x58 + RTM_NEWNVLAN = 0x70 + RTM_NEWPREFIX = 0x34 + RTM_NEWQDISC = 0x24 + RTM_NEWROUTE = 0x18 + RTM_NEWRULE = 0x20 + RTM_NEWSTATS = 0x5c + RTM_NEWTCLASS = 0x28 + RTM_NEWTFILTER = 0x2c + RTM_NEWTUNNEL = 0x78 + RTM_NR_FAMILIES = 0x1b + RTM_NR_MSGTYPES = 0x6c + RTM_SETDCB = 0x4f + RTM_SETLINK = 0x13 + RTM_SETNEIGHTBL = 0x43 + RTM_SETSTATS = 0x5f + RTNH_ALIGNTO = 0x4 + RTNH_COMPARE_MASK = 0x59 + RTNH_F_DEAD = 0x1 + RTNH_F_LINKDOWN = 0x10 + RTNH_F_OFFLOAD = 0x8 + RTNH_F_ONLINK = 0x4 + RTNH_F_PERVASIVE = 0x2 + RTNH_F_TRAP = 0x40 + RTNH_F_UNRESOLVED = 0x20 + RTN_MAX = 0xb + RTPROT_BABEL = 0x2a + RTPROT_BGP = 0xba + RTPROT_BIRD = 0xc + RTPROT_BOOT = 0x3 + RTPROT_DHCP = 0x10 + RTPROT_DNROUTED = 0xd + RTPROT_EIGRP = 0xc0 + RTPROT_GATED = 0x8 + RTPROT_ISIS = 0xbb + RTPROT_KEEPALIVED = 0x12 + RTPROT_KERNEL = 0x2 + RTPROT_MROUTED = 0x11 + RTPROT_MRT = 0xa + RTPROT_NTK = 0xf + RTPROT_OPENR = 0x63 + RTPROT_OSPF = 0xbc + RTPROT_RA = 0x9 + RTPROT_REDIRECT = 0x1 + RTPROT_RIP = 0xbd + RTPROT_STATIC = 0x4 + RTPROT_UNSPEC = 0x0 + RTPROT_XORP = 0xe + RTPROT_ZEBRA = 0xb + RT_CLASS_DEFAULT = 0xfd + RT_CLASS_LOCAL = 0xff + RT_CLASS_MAIN = 0xfe + RT_CLASS_MAX = 0xff + RT_CLASS_UNSPEC = 0x0 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + RWF_APPEND = 0x10 + RWF_DSYNC = 0x2 + RWF_HIPRI = 0x1 + RWF_NOWAIT = 0x8 + RWF_SUPPORTED = 0x1f + RWF_SYNC = 0x4 + RWF_WRITE_LIFE_NOT_SET = 0x0 + SCM_CREDENTIALS = 0x2 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x1d + SC_LOG_FLUSH = 0x100000 + SECCOMP_MODE_DISABLED = 0x0 + SECCOMP_MODE_FILTER = 0x2 + SECCOMP_MODE_STRICT = 0x1 + SECRETMEM_MAGIC = 0x5345434d + SECURITYFS_MAGIC = 0x73636673 + SEEK_CUR = 0x1 + SEEK_DATA = 0x3 + SEEK_END = 0x2 + SEEK_HOLE = 0x4 + SEEK_MAX = 0x4 + SEEK_SET = 0x0 + SELINUX_MAGIC = 0xf97cff8c + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDDLCI = 0x8980 + SIOCADDMULTI = 0x8931 + SIOCADDRT = 0x890b + SIOCBONDCHANGEACTIVE = 0x8995 + SIOCBONDENSLAVE = 0x8990 + SIOCBONDINFOQUERY = 0x8994 + SIOCBONDRELEASE = 0x8991 + SIOCBONDSETHWADDR = 0x8992 + SIOCBONDSLAVEINFOQUERY = 0x8993 + SIOCBRADDBR = 0x89a0 + SIOCBRADDIF = 0x89a2 + SIOCBRDELBR = 0x89a1 + SIOCBRDELIF = 0x89a3 + SIOCDARP = 0x8953 + SIOCDELDLCI = 0x8981 + SIOCDELMULTI = 0x8932 + SIOCDELRT = 0x890c + SIOCDEVPRIVATE = 0x89f0 + SIOCDIFADDR = 0x8936 + SIOCDRARP = 0x8960 + SIOCETHTOOL = 0x8946 + SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 + SIOCGHWTSTAMP = 0x89b1 + SIOCGIFADDR = 0x8915 + SIOCGIFBR = 0x8940 + SIOCGIFBRDADDR = 0x8919 + SIOCGIFCONF = 0x8912 + SIOCGIFCOUNT = 0x8938 + SIOCGIFDSTADDR = 0x8917 + SIOCGIFENCAP = 0x8925 + SIOCGIFFLAGS = 0x8913 + SIOCGIFHWADDR = 0x8927 + SIOCGIFINDEX = 0x8933 + SIOCGIFMAP = 0x8970 + SIOCGIFMEM = 0x891f + SIOCGIFMETRIC = 0x891d + SIOCGIFMTU = 0x8921 + SIOCGIFNAME = 0x8910 + SIOCGIFNETMASK = 0x891b + SIOCGIFPFLAGS = 0x8935 + SIOCGIFSLAVE = 0x8929 + SIOCGIFTXQLEN = 0x8942 + SIOCGIFVLAN = 0x8982 + SIOCGMIIPHY = 0x8947 + SIOCGMIIREG = 0x8948 + SIOCGPPPCSTATS = 0x89f2 + SIOCGPPPSTATS = 0x89f0 + SIOCGPPPVER = 0x89f1 + SIOCGRARP = 0x8961 + SIOCGSKNS = 0x894c + SIOCGSTAMP = 0x8906 + SIOCGSTAMPNS = 0x8907 + SIOCGSTAMPNS_OLD = 0x8907 + SIOCGSTAMP_OLD = 0x8906 + SIOCKCMATTACH = 0x89e0 + SIOCKCMCLONE = 0x89e2 + SIOCKCMUNATTACH = 0x89e1 + SIOCOUTQNSD = 0x894b + SIOCPROTOPRIVATE = 0x89e0 + SIOCRTMSG = 0x890d + SIOCSARP = 0x8955 + SIOCSHWTSTAMP = 0x89b0 + SIOCSIFADDR = 0x8916 + SIOCSIFBR = 0x8941 + SIOCSIFBRDADDR = 0x891a + SIOCSIFDSTADDR = 0x8918 + SIOCSIFENCAP = 0x8926 + SIOCSIFFLAGS = 0x8914 + SIOCSIFHWADDR = 0x8924 + SIOCSIFHWBROADCAST = 0x8937 + SIOCSIFLINK = 0x8911 + SIOCSIFMAP = 0x8971 + SIOCSIFMEM = 0x8920 + SIOCSIFMETRIC = 0x891e + SIOCSIFMTU = 0x8922 + SIOCSIFNAME = 0x8923 + SIOCSIFNETMASK = 0x891c + SIOCSIFPFLAGS = 0x8934 + SIOCSIFSLAVE = 0x8930 + SIOCSIFTXQLEN = 0x8943 + SIOCSIFVLAN = 0x8983 + SIOCSMIIREG = 0x8949 + SIOCSRARP = 0x8962 + SIOCWANDEV = 0x894a + SMACK_MAGIC = 0x43415d53 + SMART_AUTOSAVE = 0xd2 + SMART_AUTO_OFFLINE = 0xdb + SMART_DISABLE = 0xd9 + SMART_ENABLE = 0xd8 + SMART_HCYL_PASS = 0xc2 + SMART_IMMEDIATE_OFFLINE = 0xd4 + SMART_LCYL_PASS = 0x4f + SMART_READ_LOG_SECTOR = 0xd5 + SMART_READ_THRESHOLDS = 0xd1 + SMART_READ_VALUES = 0xd0 + SMART_SAVE = 0xd3 + SMART_STATUS = 0xda + SMART_WRITE_LOG_SECTOR = 0xd6 + SMART_WRITE_THRESHOLDS = 0xd7 + SMB2_SUPER_MAGIC = 0xfe534d42 + SMB_SUPER_MAGIC = 0x517b + SOCKFS_MAGIC = 0x534f434b + SOCK_BUF_LOCK_MASK = 0x3 + SOCK_DCCP = 0x6 + SOCK_IOC_TYPE = 0x89 + SOCK_PACKET = 0xa + SOCK_RAW = 0x3 + SOCK_RCVBUF_LOCK = 0x2 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_SNDBUF_LOCK = 0x1 + SOCK_TXREHASH_DEFAULT = 0xff + SOCK_TXREHASH_DISABLED = 0x0 + SOCK_TXREHASH_ENABLED = 0x1 + SOL_AAL = 0x109 + SOL_ALG = 0x117 + SOL_ATM = 0x108 + SOL_CAIF = 0x116 + SOL_CAN_BASE = 0x64 + SOL_CAN_RAW = 0x65 + SOL_DCCP = 0x10d + SOL_DECNET = 0x105 + SOL_ICMPV6 = 0x3a + SOL_IP = 0x0 + SOL_IPV6 = 0x29 + SOL_IRDA = 0x10a + SOL_IUCV = 0x115 + SOL_KCM = 0x119 + SOL_LLC = 0x10c + SOL_MCTP = 0x11d + SOL_MPTCP = 0x11c + SOL_NETBEUI = 0x10b + SOL_NETLINK = 0x10e + SOL_NFC = 0x118 + SOL_PACKET = 0x107 + SOL_PNPIPE = 0x113 + SOL_PPPOL2TP = 0x111 + SOL_RAW = 0xff + SOL_RDS = 0x114 + SOL_RXRPC = 0x110 + SOL_SMC = 0x11e + SOL_TCP = 0x6 + SOL_TIPC = 0x10f + SOL_TLS = 0x11a + SOL_X25 = 0x106 + SOL_XDP = 0x11b + SOMAXCONN = 0x1000 + SO_ATTACH_FILTER = 0x1a + SO_DEBUG = 0x1 + SO_DETACH_BPF = 0x1b + SO_DETACH_FILTER = 0x1b + SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 + SO_EE_CODE_TXTIME_MISSED = 0x2 + SO_EE_CODE_ZEROCOPY_COPIED = 0x1 + SO_EE_ORIGIN_ICMP = 0x2 + SO_EE_ORIGIN_ICMP6 = 0x3 + SO_EE_ORIGIN_LOCAL = 0x1 + SO_EE_ORIGIN_NONE = 0x0 + SO_EE_ORIGIN_TIMESTAMPING = 0x4 + SO_EE_ORIGIN_TXSTATUS = 0x4 + SO_EE_ORIGIN_TXTIME = 0x6 + SO_EE_ORIGIN_ZEROCOPY = 0x5 + SO_EE_RFC4884_FLAG_INVALID = 0x1 + SO_GET_FILTER = 0x1a + SO_NO_CHECK = 0xb + SO_PEERNAME = 0x1c + SO_PRIORITY = 0xc + SO_TIMESTAMP = 0x1d + SO_TIMESTAMP_OLD = 0x1d + SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 + SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 + SO_VM_SOCKETS_BUFFER_SIZE = 0x0 + SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 + SO_VM_SOCKETS_CONNECT_TIMEOUT_NEW = 0x8 + SO_VM_SOCKETS_CONNECT_TIMEOUT_OLD = 0x6 + SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 + SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 + SO_VM_SOCKETS_TRUSTED = 0x5 + SPLICE_F_GIFT = 0x8 + SPLICE_F_MORE = 0x4 + SPLICE_F_MOVE = 0x1 + SPLICE_F_NONBLOCK = 0x2 + SQUASHFS_MAGIC = 0x73717368 + STACK_END_MAGIC = 0x57ac6e9d + STATX_ALL = 0xfff + STATX_ATIME = 0x20 + STATX_ATTR_APPEND = 0x20 + STATX_ATTR_AUTOMOUNT = 0x1000 + STATX_ATTR_COMPRESSED = 0x4 + STATX_ATTR_DAX = 0x200000 + STATX_ATTR_ENCRYPTED = 0x800 + STATX_ATTR_IMMUTABLE = 0x10 + STATX_ATTR_MOUNT_ROOT = 0x2000 + STATX_ATTR_NODUMP = 0x40 + STATX_ATTR_VERITY = 0x100000 + STATX_BASIC_STATS = 0x7ff + STATX_BLOCKS = 0x400 + STATX_BTIME = 0x800 + STATX_CTIME = 0x80 + STATX_DIOALIGN = 0x2000 + STATX_GID = 0x10 + STATX_INO = 0x100 + STATX_MNT_ID = 0x1000 + STATX_MODE = 0x2 + STATX_MTIME = 0x40 + STATX_NLINK = 0x4 + STATX_SIZE = 0x200 + STATX_TYPE = 0x1 + STATX_UID = 0x8 + STATX__RESERVED = 0x80000000 + SYNC_FILE_RANGE_WAIT_AFTER = 0x4 + SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 + SYNC_FILE_RANGE_WRITE = 0x2 + SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7 + SYSFS_MAGIC = 0x62656572 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TASKSTATS_CMD_ATTR_MAX = 0x4 + TASKSTATS_CMD_MAX = 0x2 + TASKSTATS_GENL_NAME = "TASKSTATS" + TASKSTATS_GENL_VERSION = 0x1 + TASKSTATS_TYPE_MAX = 0x6 + TASKSTATS_VERSION = 0xd + TCIFLUSH = 0x0 + TCIOFF = 0x2 + TCIOFLUSH = 0x2 + TCION = 0x3 + TCOFLUSH = 0x1 + TCOOFF = 0x0 + TCOON = 0x1 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_CC_INFO = 0x1a + TCP_CM_INQ = 0x24 + TCP_CONGESTION = 0xd + TCP_COOKIE_IN_ALWAYS = 0x1 + TCP_COOKIE_MAX = 0x10 + TCP_COOKIE_MIN = 0x8 + TCP_COOKIE_OUT_NEVER = 0x2 + TCP_COOKIE_PAIR_SIZE = 0x20 + TCP_COOKIE_TRANSACTIONS = 0xf + TCP_CORK = 0x3 + TCP_DEFER_ACCEPT = 0x9 + TCP_FASTOPEN = 0x17 + TCP_FASTOPEN_CONNECT = 0x1e + TCP_FASTOPEN_KEY = 0x21 + TCP_FASTOPEN_NO_COOKIE = 0x22 + TCP_INFO = 0xb + TCP_INQ = 0x24 + TCP_KEEPCNT = 0x6 + TCP_KEEPIDLE = 0x4 + TCP_KEEPINTVL = 0x5 + TCP_LINGER2 = 0x8 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0xe + TCP_MD5SIG_EXT = 0x20 + TCP_MD5SIG_FLAG_PREFIX = 0x1 + TCP_MD5SIG_MAXKEYLEN = 0x50 + TCP_MSS = 0x200 + TCP_MSS_DEFAULT = 0x218 + TCP_MSS_DESIRED = 0x4c4 + TCP_NODELAY = 0x1 + TCP_NOTSENT_LOWAT = 0x19 + TCP_QUEUE_SEQ = 0x15 + TCP_QUICKACK = 0xc + TCP_REPAIR = 0x13 + TCP_REPAIR_OFF = 0x0 + TCP_REPAIR_OFF_NO_WP = -0x1 + TCP_REPAIR_ON = 0x1 + TCP_REPAIR_OPTIONS = 0x16 + TCP_REPAIR_QUEUE = 0x14 + TCP_REPAIR_WINDOW = 0x1d + TCP_SAVED_SYN = 0x1c + TCP_SAVE_SYN = 0x1b + TCP_SYNCNT = 0x7 + TCP_S_DATA_IN = 0x4 + TCP_S_DATA_OUT = 0x8 + TCP_THIN_DUPACK = 0x11 + TCP_THIN_LINEAR_TIMEOUTS = 0x10 + TCP_TIMESTAMP = 0x18 + TCP_TX_DELAY = 0x25 + TCP_ULP = 0x1f + TCP_USER_TIMEOUT = 0x12 + TCP_V4_FLOW = 0x1 + TCP_V6_FLOW = 0x5 + TCP_WINDOW_CLAMP = 0xa + TCP_ZEROCOPY_RECEIVE = 0x23 + TFD_TIMER_ABSTIME = 0x1 + TFD_TIMER_CANCEL_ON_SET = 0x2 + TIMER_ABSTIME = 0x1 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RTS = 0x4 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + TIPC_AEAD_ALG_NAME = 0x20 + TIPC_AEAD_KEYLEN_MAX = 0x24 + TIPC_AEAD_KEYLEN_MIN = 0x14 + TIPC_AEAD_KEY_SIZE_MAX = 0x48 + TIPC_CFG_SRV = 0x0 + TIPC_CLUSTER_BITS = 0xc + TIPC_CLUSTER_MASK = 0xfff000 + TIPC_CLUSTER_OFFSET = 0xc + TIPC_CLUSTER_SIZE = 0xfff + TIPC_CONN_SHUTDOWN = 0x5 + TIPC_CONN_TIMEOUT = 0x82 + TIPC_CRITICAL_IMPORTANCE = 0x3 + TIPC_DESTNAME = 0x3 + TIPC_DEST_DROPPABLE = 0x81 + TIPC_ERRINFO = 0x1 + TIPC_ERR_NO_NAME = 0x1 + TIPC_ERR_NO_NODE = 0x3 + TIPC_ERR_NO_PORT = 0x2 + TIPC_ERR_OVERLOAD = 0x4 + TIPC_GROUP_JOIN = 0x87 + TIPC_GROUP_LEAVE = 0x88 + TIPC_GROUP_LOOPBACK = 0x1 + TIPC_GROUP_MEMBER_EVTS = 0x2 + TIPC_HIGH_IMPORTANCE = 0x2 + TIPC_IMPORTANCE = 0x7f + TIPC_LINK_STATE = 0x2 + TIPC_LOW_IMPORTANCE = 0x0 + TIPC_MAX_BEARER_NAME = 0x20 + TIPC_MAX_IF_NAME = 0x10 + TIPC_MAX_LINK_NAME = 0x44 + TIPC_MAX_MEDIA_NAME = 0x10 + TIPC_MAX_USER_MSG_SIZE = 0x101d0 + TIPC_MCAST_BROADCAST = 0x85 + TIPC_MCAST_REPLICAST = 0x86 + TIPC_MEDIUM_IMPORTANCE = 0x1 + TIPC_NODEID_LEN = 0x10 + TIPC_NODELAY = 0x8a + TIPC_NODE_BITS = 0xc + TIPC_NODE_MASK = 0xfff + TIPC_NODE_OFFSET = 0x0 + TIPC_NODE_RECVQ_DEPTH = 0x83 + TIPC_NODE_SIZE = 0xfff + TIPC_NODE_STATE = 0x0 + TIPC_OK = 0x0 + TIPC_PUBLISHED = 0x1 + TIPC_REKEYING_NOW = 0xffffffff + TIPC_RESERVED_TYPES = 0x40 + TIPC_RETDATA = 0x2 + TIPC_SERVICE_ADDR = 0x2 + TIPC_SERVICE_RANGE = 0x1 + TIPC_SOCKET_ADDR = 0x3 + TIPC_SOCK_RECVQ_DEPTH = 0x84 + TIPC_SOCK_RECVQ_USED = 0x89 + TIPC_SRC_DROPPABLE = 0x80 + TIPC_SUBSCR_TIMEOUT = 0x3 + TIPC_SUB_CANCEL = 0x4 + TIPC_SUB_PORTS = 0x1 + TIPC_SUB_SERVICE = 0x2 + TIPC_TOP_SRV = 0x1 + TIPC_WAIT_FOREVER = 0xffffffff + TIPC_WITHDRAWN = 0x2 + TIPC_ZONE_BITS = 0x8 + TIPC_ZONE_CLUSTER_MASK = 0xfffff000 + TIPC_ZONE_MASK = 0xff000000 + TIPC_ZONE_OFFSET = 0x18 + TIPC_ZONE_SCOPE = 0x1 + TIPC_ZONE_SIZE = 0xff + TMPFS_MAGIC = 0x1021994 + TPACKET_ALIGNMENT = 0x10 + TPACKET_HDRLEN = 0x34 + TP_STATUS_AVAILABLE = 0x0 + TP_STATUS_BLK_TMO = 0x20 + TP_STATUS_COPY = 0x2 + TP_STATUS_CSUMNOTREADY = 0x8 + TP_STATUS_CSUM_VALID = 0x80 + TP_STATUS_KERNEL = 0x0 + TP_STATUS_LOSING = 0x4 + TP_STATUS_SENDING = 0x2 + TP_STATUS_SEND_REQUEST = 0x1 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 + TP_STATUS_TS_SOFTWARE = 0x20000000 + TP_STATUS_TS_SYS_HARDWARE = 0x40000000 + TP_STATUS_USER = 0x1 + TP_STATUS_VLAN_TPID_VALID = 0x40 + TP_STATUS_VLAN_VALID = 0x10 + TP_STATUS_WRONG_FORMAT = 0x4 + TRACEFS_MAGIC = 0x74726163 + TS_COMM_LEN = 0x20 + UDF_SUPER_MAGIC = 0x15013346 + UMOUNT_NOFOLLOW = 0x8 + USBDEVICE_SUPER_MAGIC = 0x9fa2 + UTIME_NOW = 0x3fffffff + UTIME_OMIT = 0x3ffffffe + V9FS_MAGIC = 0x1021997 + VERASE = 0x2 + VINTR = 0x0 + VKILL = 0x3 + VLNEXT = 0xf + VMADDR_CID_ANY = 0xffffffff + VMADDR_CID_HOST = 0x2 + VMADDR_CID_HYPERVISOR = 0x0 + VMADDR_CID_LOCAL = 0x1 + VMADDR_FLAG_TO_HOST = 0x1 + VMADDR_PORT_ANY = 0xffffffff + VM_SOCKETS_INVALID_VERSION = 0xffffffff + VQUIT = 0x1 + VT0 = 0x0 + WAKE_MAGIC = 0x20 + WALL = 0x40000000 + WCLONE = 0x80000000 + WCONTINUED = 0x8 + WDIOC_SETPRETIMEOUT = 0xc0045708 + WDIOC_SETTIMEOUT = 0xc0045706 + WDIOF_ALARMONLY = 0x400 + WDIOF_CARDRESET = 0x20 + WDIOF_EXTERN1 = 0x4 + WDIOF_EXTERN2 = 0x8 + WDIOF_FANFAULT = 0x2 + WDIOF_KEEPALIVEPING = 0x8000 + WDIOF_MAGICCLOSE = 0x100 + WDIOF_OVERHEAT = 0x1 + WDIOF_POWEROVER = 0x40 + WDIOF_POWERUNDER = 0x10 + WDIOF_PRETIMEOUT = 0x200 + WDIOF_SETTIMEOUT = 0x80 + WDIOF_UNKNOWN = -0x1 + WDIOS_DISABLECARD = 0x1 + WDIOS_ENABLECARD = 0x2 + WDIOS_TEMPPANIC = 0x4 + WDIOS_UNKNOWN = -0x1 + WEXITED = 0x4 + WGALLOWEDIP_A_MAX = 0x3 + WGDEVICE_A_MAX = 0x8 + WGPEER_A_MAX = 0xa + WG_CMD_MAX = 0x1 + WG_GENL_NAME = "wireguard" + WG_GENL_VERSION = 0x1 + WG_KEY_LEN = 0x20 + WIN_ACKMEDIACHANGE = 0xdb + WIN_CHECKPOWERMODE1 = 0xe5 + WIN_CHECKPOWERMODE2 = 0x98 + WIN_DEVICE_RESET = 0x8 + WIN_DIAGNOSE = 0x90 + WIN_DOORLOCK = 0xde + WIN_DOORUNLOCK = 0xdf + WIN_DOWNLOAD_MICROCODE = 0x92 + WIN_FLUSH_CACHE = 0xe7 + WIN_FLUSH_CACHE_EXT = 0xea + WIN_FORMAT = 0x50 + WIN_GETMEDIASTATUS = 0xda + WIN_IDENTIFY = 0xec + WIN_IDENTIFY_DMA = 0xee + WIN_IDLEIMMEDIATE = 0xe1 + WIN_INIT = 0x60 + WIN_MEDIAEJECT = 0xed + WIN_MULTREAD = 0xc4 + WIN_MULTREAD_EXT = 0x29 + WIN_MULTWRITE = 0xc5 + WIN_MULTWRITE_EXT = 0x39 + WIN_NOP = 0x0 + WIN_PACKETCMD = 0xa0 + WIN_PIDENTIFY = 0xa1 + WIN_POSTBOOT = 0xdc + WIN_PREBOOT = 0xdd + WIN_QUEUED_SERVICE = 0xa2 + WIN_READ = 0x20 + WIN_READDMA = 0xc8 + WIN_READDMA_EXT = 0x25 + WIN_READDMA_ONCE = 0xc9 + WIN_READDMA_QUEUED = 0xc7 + WIN_READDMA_QUEUED_EXT = 0x26 + WIN_READ_BUFFER = 0xe4 + WIN_READ_EXT = 0x24 + WIN_READ_LONG = 0x22 + WIN_READ_LONG_ONCE = 0x23 + WIN_READ_NATIVE_MAX = 0xf8 + WIN_READ_NATIVE_MAX_EXT = 0x27 + WIN_READ_ONCE = 0x21 + WIN_RECAL = 0x10 + WIN_RESTORE = 0x10 + WIN_SECURITY_DISABLE = 0xf6 + WIN_SECURITY_ERASE_PREPARE = 0xf3 + WIN_SECURITY_ERASE_UNIT = 0xf4 + WIN_SECURITY_FREEZE_LOCK = 0xf5 + WIN_SECURITY_SET_PASS = 0xf1 + WIN_SECURITY_UNLOCK = 0xf2 + WIN_SEEK = 0x70 + WIN_SETFEATURES = 0xef + WIN_SETIDLE1 = 0xe3 + WIN_SETIDLE2 = 0x97 + WIN_SETMULT = 0xc6 + WIN_SET_MAX = 0xf9 + WIN_SET_MAX_EXT = 0x37 + WIN_SLEEPNOW1 = 0xe6 + WIN_SLEEPNOW2 = 0x99 + WIN_SMART = 0xb0 + WIN_SPECIFY = 0x91 + WIN_SRST = 0x8 + WIN_STANDBY = 0xe2 + WIN_STANDBY2 = 0x96 + WIN_STANDBYNOW1 = 0xe0 + WIN_STANDBYNOW2 = 0x94 + WIN_VERIFY = 0x40 + WIN_VERIFY_EXT = 0x42 + WIN_VERIFY_ONCE = 0x41 + WIN_WRITE = 0x30 + WIN_WRITEDMA = 0xca + WIN_WRITEDMA_EXT = 0x35 + WIN_WRITEDMA_ONCE = 0xcb + WIN_WRITEDMA_QUEUED = 0xcc + WIN_WRITEDMA_QUEUED_EXT = 0x36 + WIN_WRITE_BUFFER = 0xe8 + WIN_WRITE_EXT = 0x34 + WIN_WRITE_LONG = 0x32 + WIN_WRITE_LONG_ONCE = 0x33 + WIN_WRITE_ONCE = 0x31 + WIN_WRITE_SAME = 0xe9 + WIN_WRITE_VERIFY = 0x3c + WNOHANG = 0x1 + WNOTHREAD = 0x20000000 + WNOWAIT = 0x1000000 + WSTOPPED = 0x2 + WUNTRACED = 0x2 + XATTR_CREATE = 0x1 + XATTR_REPLACE = 0x2 + XDP_COPY = 0x2 + XDP_FLAGS_DRV_MODE = 0x4 + XDP_FLAGS_HW_MODE = 0x8 + XDP_FLAGS_MASK = 0x1f + XDP_FLAGS_MODES = 0xe + XDP_FLAGS_REPLACE = 0x10 + XDP_FLAGS_SKB_MODE = 0x2 + XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1 + XDP_MMAP_OFFSETS = 0x1 + XDP_OPTIONS = 0x8 + XDP_OPTIONS_ZEROCOPY = 0x1 + XDP_PACKET_HEADROOM = 0x100 + XDP_PGOFF_RX_RING = 0x0 + XDP_PGOFF_TX_RING = 0x80000000 + XDP_RING_NEED_WAKEUP = 0x1 + XDP_RX_RING = 0x2 + XDP_SHARED_UMEM = 0x1 + XDP_STATISTICS = 0x7 + XDP_TX_RING = 0x3 + XDP_UMEM_COMPLETION_RING = 0x6 + XDP_UMEM_FILL_RING = 0x5 + XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 + XDP_UMEM_PGOFF_FILL_RING = 0x100000000 + XDP_UMEM_REG = 0x4 + XDP_UMEM_UNALIGNED_CHUNK_FLAG = 0x1 + XDP_USE_NEED_WAKEUP = 0x8 + XDP_ZEROCOPY = 0x4 + XENFS_SUPER_MAGIC = 0xabba1974 + XFS_SUPER_MAGIC = 0x58465342 + ZONEFS_MAGIC = 0x5a4f4653 + _HIDIOCGRAWNAME_LEN = 0x80 + _HIDIOCGRAWPHYS_LEN = 0x40 + _HIDIOCGRAWUNIQ_LEN = 0x40 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EAGAIN = syscall.Errno(0xb) + EBADF = syscall.Errno(0x9) + EBUSY = syscall.Errno(0x10) + ECHILD = syscall.Errno(0xa) + EDOM = syscall.Errno(0x21) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISDIR = syscall.Errno(0x15) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + ENFILE = syscall.Errno(0x17) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOMEM = syscall.Errno(0xc) + ENOSPC = syscall.Errno(0x1c) + ENOTBLK = syscall.Errno(0xf) + ENOTDIR = syscall.Errno(0x14) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EPERM = syscall.Errno(0x1) + EPIPE = syscall.Errno(0x20) + ERANGE = syscall.Errno(0x22) + EROFS = syscall.Errno(0x1e) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ETXTBSY = syscall.Errno(0x1a) + EWOULDBLOCK = syscall.Errno(0xb) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINT = syscall.Signal(0x2) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) +) diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go new file mode 100644 index 0000000..a46df0f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -0,0 +1,829 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && linux +// +build 386,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80041270 + BLKBSZSET = 0x40041271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80041272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FP_XSTATE_MAGIC2 = 0x46505845 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40046602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0xc + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0xd + F_SETLK64 = 0xd + F_SETLKW = 0xe + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_32BIT = 0x40 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc03c4d1a + MEMREADOOB = 0xc00c4d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc00c4d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x8000 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8008743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40087446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x400c744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40087447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GETFPXREGS = 0x12 + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETFPXREGS = 0x13 + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SINGLEBLOCK = 0x21 + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8004700d + RTC_EPOCH_SET = 0x4004700e + RTC_IRQP_READ = 0x8004700b + RTC_IRQP_SET = 0x4004700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x801c7011 + RTC_PLL_SET = 0x401c7012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x400854d5 + TUNDETACHFILTER = 0x400854d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x800854db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x20 + X86_FXSR_MAGIC = 0x0 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go new file mode 100644 index 0000000..6cd4a3e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -0,0 +1,829 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/amd64/include -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && linux +// +build amd64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FP_XSTATE_MAGIC2 = 0x46505845 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_32BIT = 0x40 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_ARCH_PRCTL = 0x1e + PTRACE_GETFPREGS = 0xe + PTRACE_GETFPXREGS = 0x12 + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETFPXREGS = 0x13 + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SINGLEBLOCK = 0x21 + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go new file mode 100644 index 0000000..c7ebee2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -0,0 +1,835 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/arm/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && linux +// +build arm,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80041270 + BLKBSZSET = 0x40041271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80041272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40046602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0xc + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0xd + F_SETLK64 = 0xd + F_SETLKW = 0xe + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc00c4d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc00c4d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x20000 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8008743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40087446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x400c744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40087447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETCRUNCHREGS = 0x19 + PTRACE_GETFDPIC = 0x1f + PTRACE_GETFDPIC_EXEC = 0x0 + PTRACE_GETFDPIC_INTERP = 0x1 + PTRACE_GETFPREGS = 0xe + PTRACE_GETHBPREGS = 0x1d + PTRACE_GETVFPREGS = 0x1b + PTRACE_GETWMMXREGS = 0x12 + PTRACE_GET_THREAD_AREA = 0x16 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_SETCRUNCHREGS = 0x1a + PTRACE_SETFPREGS = 0xf + PTRACE_SETHBPREGS = 0x1e + PTRACE_SETVFPREGS = 0x1c + PTRACE_SETWMMXREGS = 0x13 + PTRACE_SET_SYSCALL = 0x17 + PT_DATA_ADDR = 0x10004 + PT_TEXT_ADDR = 0x10000 + PT_TEXT_END_ADDR = 0x10008 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8004700d + RTC_EPOCH_SET = 0x4004700e + RTC_IRQP_READ = 0x8004700b + RTC_IRQP_SET = 0x4004700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x801c7011 + RTC_PLL_SET = 0x401c7012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x400854d5 + TUNDETACHFILTER = 0x400854d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x800854db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x20 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go new file mode 100644 index 0000000..9d5352c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -0,0 +1,827 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/arm64/include -fsigned-char +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && linux +// +build arm64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + ESR_MAGIC = 0x45535201 + EXTPROC = 0x10000 + EXTRA_MAGIC = 0x45585401 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FPSIMD_MAGIC = 0x46508001 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x10000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PROT_BTI = 0x10 + PROT_MTE = 0x20 + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_PEEKMTETAGS = 0x21 + PTRACE_POKEMTETAGS = 0x22 + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + SVE_MAGIC = 0x53564501 + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + ZA_MAGIC = 0x54366345 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go new file mode 100644 index 0000000..f26a164 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go @@ -0,0 +1,819 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/loong64/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build loong64 && linux +// +build loong64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FPU_CTX_MAGIC = 0x46505501 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go new file mode 100644 index 0000000..890bc3c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -0,0 +1,836 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/mips/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips && linux +// +build mips,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40041270 + BLKBSZSET = 0x80041271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40041272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80046602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x21 + F_GETLK64 = 0x21 + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x22 + F_SETLK64 = 0x22 + F_SETLKW = 0x23 + F_SETLKW64 = 0x23 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc00c4d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc00c4d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x2000 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4008743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80087446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x800c744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80087447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4004700d + RTC_EPOCH_SET = 0x8004700e + RTC_IRQP_READ = 0x4004700b + RTC_IRQP_SET = 0x8004700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x401c7011 + RTC_PLL_SET = 0x801c7012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x800854d5 + TUNDETACHFILTER = 0x800854d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x400854db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x20 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x7d) + EADDRNOTAVAIL = syscall.Errno(0x7e) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x7c) + EALREADY = syscall.Errno(0x95) + EBADE = syscall.Errno(0x32) + EBADFD = syscall.Errno(0x51) + EBADMSG = syscall.Errno(0x4d) + EBADR = syscall.Errno(0x33) + EBADRQC = syscall.Errno(0x36) + EBADSLT = syscall.Errno(0x37) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x9e) + ECHRNG = syscall.Errno(0x25) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x82) + ECONNREFUSED = syscall.Errno(0x92) + ECONNRESET = syscall.Errno(0x83) + EDEADLK = syscall.Errno(0x2d) + EDEADLOCK = syscall.Errno(0x38) + EDESTADDRREQ = syscall.Errno(0x60) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x46d) + EHOSTDOWN = syscall.Errno(0x93) + EHOSTUNREACH = syscall.Errno(0x94) + EHWPOISON = syscall.Errno(0xa8) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x58) + EINIT = syscall.Errno(0x8d) + EINPROGRESS = syscall.Errno(0x96) + EISCONN = syscall.Errno(0x85) + EISNAM = syscall.Errno(0x8b) + EKEYEXPIRED = syscall.Errno(0xa2) + EKEYREJECTED = syscall.Errno(0xa4) + EKEYREVOKED = syscall.Errno(0xa3) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELIBACC = syscall.Errno(0x53) + ELIBBAD = syscall.Errno(0x54) + ELIBEXEC = syscall.Errno(0x57) + ELIBMAX = syscall.Errno(0x56) + ELIBSCN = syscall.Errno(0x55) + ELNRNG = syscall.Errno(0x29) + ELOOP = syscall.Errno(0x5a) + EMEDIUMTYPE = syscall.Errno(0xa0) + EMSGSIZE = syscall.Errno(0x61) + EMULTIHOP = syscall.Errno(0x4a) + ENAMETOOLONG = syscall.Errno(0x4e) + ENAVAIL = syscall.Errno(0x8a) + ENETDOWN = syscall.Errno(0x7f) + ENETRESET = syscall.Errno(0x81) + ENETUNREACH = syscall.Errno(0x80) + ENOANO = syscall.Errno(0x35) + ENOBUFS = syscall.Errno(0x84) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0xa1) + ENOLCK = syscall.Errno(0x2e) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x9f) + ENOMSG = syscall.Errno(0x23) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x63) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x59) + ENOTCONN = syscall.Errno(0x86) + ENOTEMPTY = syscall.Errno(0x5d) + ENOTNAM = syscall.Errno(0x89) + ENOTRECOVERABLE = syscall.Errno(0xa6) + ENOTSOCK = syscall.Errno(0x5f) + ENOTSUP = syscall.Errno(0x7a) + ENOTUNIQ = syscall.Errno(0x50) + EOPNOTSUPP = syscall.Errno(0x7a) + EOVERFLOW = syscall.Errno(0x4f) + EOWNERDEAD = syscall.Errno(0xa5) + EPFNOSUPPORT = syscall.Errno(0x7b) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x78) + EPROTOTYPE = syscall.Errno(0x62) + EREMCHG = syscall.Errno(0x52) + EREMDEV = syscall.Errno(0x8e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x8c) + ERESTART = syscall.Errno(0x5b) + ERFKILL = syscall.Errno(0xa7) + ESHUTDOWN = syscall.Errno(0x8f) + ESOCKTNOSUPPORT = syscall.Errno(0x79) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x97) + ESTRPIPE = syscall.Errno(0x5c) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x91) + ETOOMANYREFS = syscall.Errno(0x90) + EUCLEAN = syscall.Errno(0x87) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x5e) + EXFULL = syscall.Errno(0x34) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x12) + SIGCLD = syscall.Signal(0x12) + SIGCONT = syscall.Signal(0x19) + SIGEMT = syscall.Signal(0x7) + SIGIO = syscall.Signal(0x16) + SIGPOLL = syscall.Signal(0x16) + SIGPROF = syscall.Signal(0x1d) + SIGPWR = syscall.Signal(0x13) + SIGSTOP = syscall.Signal(0x17) + SIGSYS = syscall.Signal(0xc) + SIGTSTP = syscall.Signal(0x18) + SIGTTIN = syscall.Signal(0x1a) + SIGTTOU = syscall.Signal(0x1b) + SIGURG = syscall.Signal(0x15) + SIGUSR1 = syscall.Signal(0x10) + SIGUSR2 = syscall.Signal(0x11) + SIGVTALRM = syscall.Signal(0x1c) + SIGWINCH = syscall.Signal(0x14) + SIGXCPU = syscall.Signal(0x1e) + SIGXFSZ = syscall.Signal(0x1f) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "resource deadlock avoided"}, + {46, "ENOLCK", "no locks available"}, + {50, "EBADE", "invalid exchange"}, + {51, "EBADR", "invalid request descriptor"}, + {52, "EXFULL", "exchange full"}, + {53, "ENOANO", "no anode"}, + {54, "EBADRQC", "invalid request code"}, + {55, "EBADSLT", "invalid slot"}, + {56, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EMULTIHOP", "multihop attempted"}, + {77, "EBADMSG", "bad message"}, + {78, "ENAMETOOLONG", "file name too long"}, + {79, "EOVERFLOW", "value too large for defined data type"}, + {80, "ENOTUNIQ", "name not unique on network"}, + {81, "EBADFD", "file descriptor in bad state"}, + {82, "EREMCHG", "remote address changed"}, + {83, "ELIBACC", "can not access a needed shared library"}, + {84, "ELIBBAD", "accessing a corrupted shared library"}, + {85, "ELIBSCN", ".lib section in a.out corrupted"}, + {86, "ELIBMAX", "attempting to link in too many shared libraries"}, + {87, "ELIBEXEC", "cannot exec a shared library directly"}, + {88, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {89, "ENOSYS", "function not implemented"}, + {90, "ELOOP", "too many levels of symbolic links"}, + {91, "ERESTART", "interrupted system call should be restarted"}, + {92, "ESTRPIPE", "streams pipe error"}, + {93, "ENOTEMPTY", "directory not empty"}, + {94, "EUSERS", "too many users"}, + {95, "ENOTSOCK", "socket operation on non-socket"}, + {96, "EDESTADDRREQ", "destination address required"}, + {97, "EMSGSIZE", "message too long"}, + {98, "EPROTOTYPE", "protocol wrong type for socket"}, + {99, "ENOPROTOOPT", "protocol not available"}, + {120, "EPROTONOSUPPORT", "protocol not supported"}, + {121, "ESOCKTNOSUPPORT", "socket type not supported"}, + {122, "ENOTSUP", "operation not supported"}, + {123, "EPFNOSUPPORT", "protocol family not supported"}, + {124, "EAFNOSUPPORT", "address family not supported by protocol"}, + {125, "EADDRINUSE", "address already in use"}, + {126, "EADDRNOTAVAIL", "cannot assign requested address"}, + {127, "ENETDOWN", "network is down"}, + {128, "ENETUNREACH", "network is unreachable"}, + {129, "ENETRESET", "network dropped connection on reset"}, + {130, "ECONNABORTED", "software caused connection abort"}, + {131, "ECONNRESET", "connection reset by peer"}, + {132, "ENOBUFS", "no buffer space available"}, + {133, "EISCONN", "transport endpoint is already connected"}, + {134, "ENOTCONN", "transport endpoint is not connected"}, + {135, "EUCLEAN", "structure needs cleaning"}, + {137, "ENOTNAM", "not a XENIX named type file"}, + {138, "ENAVAIL", "no XENIX semaphores available"}, + {139, "EISNAM", "is a named type file"}, + {140, "EREMOTEIO", "remote I/O error"}, + {141, "EINIT", "unknown error 141"}, + {142, "EREMDEV", "unknown error 142"}, + {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {144, "ETOOMANYREFS", "too many references: cannot splice"}, + {145, "ETIMEDOUT", "connection timed out"}, + {146, "ECONNREFUSED", "connection refused"}, + {147, "EHOSTDOWN", "host is down"}, + {148, "EHOSTUNREACH", "no route to host"}, + {149, "EALREADY", "operation already in progress"}, + {150, "EINPROGRESS", "operation now in progress"}, + {151, "ESTALE", "stale file handle"}, + {158, "ECANCELED", "operation canceled"}, + {159, "ENOMEDIUM", "no medium found"}, + {160, "EMEDIUMTYPE", "wrong medium type"}, + {161, "ENOKEY", "required key not available"}, + {162, "EKEYEXPIRED", "key has expired"}, + {163, "EKEYREVOKED", "key has been revoked"}, + {164, "EKEYREJECTED", "key was rejected by service"}, + {165, "EOWNERDEAD", "owner died"}, + {166, "ENOTRECOVERABLE", "state not recoverable"}, + {167, "ERFKILL", "operation not possible due to RF-kill"}, + {168, "EHWPOISON", "memory page has hardware error"}, + {1133, "EDQUOT", "disk quota exceeded"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGUSR1", "user defined signal 1"}, + {17, "SIGUSR2", "user defined signal 2"}, + {18, "SIGCHLD", "child exited"}, + {19, "SIGPWR", "power failure"}, + {20, "SIGWINCH", "window changed"}, + {21, "SIGURG", "urgent I/O condition"}, + {22, "SIGIO", "I/O possible"}, + {23, "SIGSTOP", "stopped (signal)"}, + {24, "SIGTSTP", "stopped"}, + {25, "SIGCONT", "continued"}, + {26, "SIGTTIN", "stopped (tty input)"}, + {27, "SIGTTOU", "stopped (tty output)"}, + {28, "SIGVTALRM", "virtual timer expired"}, + {29, "SIGPROF", "profiling timer expired"}, + {30, "SIGXCPU", "CPU time limit exceeded"}, + {31, "SIGXFSZ", "file size limit exceeded"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go new file mode 100644 index 0000000..549f26a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -0,0 +1,836 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/mips64/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64 && linux +// +build mips64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0xe + F_GETLK64 = 0xe + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x0 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x7d) + EADDRNOTAVAIL = syscall.Errno(0x7e) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x7c) + EALREADY = syscall.Errno(0x95) + EBADE = syscall.Errno(0x32) + EBADFD = syscall.Errno(0x51) + EBADMSG = syscall.Errno(0x4d) + EBADR = syscall.Errno(0x33) + EBADRQC = syscall.Errno(0x36) + EBADSLT = syscall.Errno(0x37) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x9e) + ECHRNG = syscall.Errno(0x25) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x82) + ECONNREFUSED = syscall.Errno(0x92) + ECONNRESET = syscall.Errno(0x83) + EDEADLK = syscall.Errno(0x2d) + EDEADLOCK = syscall.Errno(0x38) + EDESTADDRREQ = syscall.Errno(0x60) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x46d) + EHOSTDOWN = syscall.Errno(0x93) + EHOSTUNREACH = syscall.Errno(0x94) + EHWPOISON = syscall.Errno(0xa8) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x58) + EINIT = syscall.Errno(0x8d) + EINPROGRESS = syscall.Errno(0x96) + EISCONN = syscall.Errno(0x85) + EISNAM = syscall.Errno(0x8b) + EKEYEXPIRED = syscall.Errno(0xa2) + EKEYREJECTED = syscall.Errno(0xa4) + EKEYREVOKED = syscall.Errno(0xa3) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELIBACC = syscall.Errno(0x53) + ELIBBAD = syscall.Errno(0x54) + ELIBEXEC = syscall.Errno(0x57) + ELIBMAX = syscall.Errno(0x56) + ELIBSCN = syscall.Errno(0x55) + ELNRNG = syscall.Errno(0x29) + ELOOP = syscall.Errno(0x5a) + EMEDIUMTYPE = syscall.Errno(0xa0) + EMSGSIZE = syscall.Errno(0x61) + EMULTIHOP = syscall.Errno(0x4a) + ENAMETOOLONG = syscall.Errno(0x4e) + ENAVAIL = syscall.Errno(0x8a) + ENETDOWN = syscall.Errno(0x7f) + ENETRESET = syscall.Errno(0x81) + ENETUNREACH = syscall.Errno(0x80) + ENOANO = syscall.Errno(0x35) + ENOBUFS = syscall.Errno(0x84) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0xa1) + ENOLCK = syscall.Errno(0x2e) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x9f) + ENOMSG = syscall.Errno(0x23) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x63) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x59) + ENOTCONN = syscall.Errno(0x86) + ENOTEMPTY = syscall.Errno(0x5d) + ENOTNAM = syscall.Errno(0x89) + ENOTRECOVERABLE = syscall.Errno(0xa6) + ENOTSOCK = syscall.Errno(0x5f) + ENOTSUP = syscall.Errno(0x7a) + ENOTUNIQ = syscall.Errno(0x50) + EOPNOTSUPP = syscall.Errno(0x7a) + EOVERFLOW = syscall.Errno(0x4f) + EOWNERDEAD = syscall.Errno(0xa5) + EPFNOSUPPORT = syscall.Errno(0x7b) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x78) + EPROTOTYPE = syscall.Errno(0x62) + EREMCHG = syscall.Errno(0x52) + EREMDEV = syscall.Errno(0x8e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x8c) + ERESTART = syscall.Errno(0x5b) + ERFKILL = syscall.Errno(0xa7) + ESHUTDOWN = syscall.Errno(0x8f) + ESOCKTNOSUPPORT = syscall.Errno(0x79) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x97) + ESTRPIPE = syscall.Errno(0x5c) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x91) + ETOOMANYREFS = syscall.Errno(0x90) + EUCLEAN = syscall.Errno(0x87) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x5e) + EXFULL = syscall.Errno(0x34) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x12) + SIGCLD = syscall.Signal(0x12) + SIGCONT = syscall.Signal(0x19) + SIGEMT = syscall.Signal(0x7) + SIGIO = syscall.Signal(0x16) + SIGPOLL = syscall.Signal(0x16) + SIGPROF = syscall.Signal(0x1d) + SIGPWR = syscall.Signal(0x13) + SIGSTOP = syscall.Signal(0x17) + SIGSYS = syscall.Signal(0xc) + SIGTSTP = syscall.Signal(0x18) + SIGTTIN = syscall.Signal(0x1a) + SIGTTOU = syscall.Signal(0x1b) + SIGURG = syscall.Signal(0x15) + SIGUSR1 = syscall.Signal(0x10) + SIGUSR2 = syscall.Signal(0x11) + SIGVTALRM = syscall.Signal(0x1c) + SIGWINCH = syscall.Signal(0x14) + SIGXCPU = syscall.Signal(0x1e) + SIGXFSZ = syscall.Signal(0x1f) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "resource deadlock avoided"}, + {46, "ENOLCK", "no locks available"}, + {50, "EBADE", "invalid exchange"}, + {51, "EBADR", "invalid request descriptor"}, + {52, "EXFULL", "exchange full"}, + {53, "ENOANO", "no anode"}, + {54, "EBADRQC", "invalid request code"}, + {55, "EBADSLT", "invalid slot"}, + {56, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EMULTIHOP", "multihop attempted"}, + {77, "EBADMSG", "bad message"}, + {78, "ENAMETOOLONG", "file name too long"}, + {79, "EOVERFLOW", "value too large for defined data type"}, + {80, "ENOTUNIQ", "name not unique on network"}, + {81, "EBADFD", "file descriptor in bad state"}, + {82, "EREMCHG", "remote address changed"}, + {83, "ELIBACC", "can not access a needed shared library"}, + {84, "ELIBBAD", "accessing a corrupted shared library"}, + {85, "ELIBSCN", ".lib section in a.out corrupted"}, + {86, "ELIBMAX", "attempting to link in too many shared libraries"}, + {87, "ELIBEXEC", "cannot exec a shared library directly"}, + {88, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {89, "ENOSYS", "function not implemented"}, + {90, "ELOOP", "too many levels of symbolic links"}, + {91, "ERESTART", "interrupted system call should be restarted"}, + {92, "ESTRPIPE", "streams pipe error"}, + {93, "ENOTEMPTY", "directory not empty"}, + {94, "EUSERS", "too many users"}, + {95, "ENOTSOCK", "socket operation on non-socket"}, + {96, "EDESTADDRREQ", "destination address required"}, + {97, "EMSGSIZE", "message too long"}, + {98, "EPROTOTYPE", "protocol wrong type for socket"}, + {99, "ENOPROTOOPT", "protocol not available"}, + {120, "EPROTONOSUPPORT", "protocol not supported"}, + {121, "ESOCKTNOSUPPORT", "socket type not supported"}, + {122, "ENOTSUP", "operation not supported"}, + {123, "EPFNOSUPPORT", "protocol family not supported"}, + {124, "EAFNOSUPPORT", "address family not supported by protocol"}, + {125, "EADDRINUSE", "address already in use"}, + {126, "EADDRNOTAVAIL", "cannot assign requested address"}, + {127, "ENETDOWN", "network is down"}, + {128, "ENETUNREACH", "network is unreachable"}, + {129, "ENETRESET", "network dropped connection on reset"}, + {130, "ECONNABORTED", "software caused connection abort"}, + {131, "ECONNRESET", "connection reset by peer"}, + {132, "ENOBUFS", "no buffer space available"}, + {133, "EISCONN", "transport endpoint is already connected"}, + {134, "ENOTCONN", "transport endpoint is not connected"}, + {135, "EUCLEAN", "structure needs cleaning"}, + {137, "ENOTNAM", "not a XENIX named type file"}, + {138, "ENAVAIL", "no XENIX semaphores available"}, + {139, "EISNAM", "is a named type file"}, + {140, "EREMOTEIO", "remote I/O error"}, + {141, "EINIT", "unknown error 141"}, + {142, "EREMDEV", "unknown error 142"}, + {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {144, "ETOOMANYREFS", "too many references: cannot splice"}, + {145, "ETIMEDOUT", "connection timed out"}, + {146, "ECONNREFUSED", "connection refused"}, + {147, "EHOSTDOWN", "host is down"}, + {148, "EHOSTUNREACH", "no route to host"}, + {149, "EALREADY", "operation already in progress"}, + {150, "EINPROGRESS", "operation now in progress"}, + {151, "ESTALE", "stale file handle"}, + {158, "ECANCELED", "operation canceled"}, + {159, "ENOMEDIUM", "no medium found"}, + {160, "EMEDIUMTYPE", "wrong medium type"}, + {161, "ENOKEY", "required key not available"}, + {162, "EKEYEXPIRED", "key has expired"}, + {163, "EKEYREVOKED", "key has been revoked"}, + {164, "EKEYREJECTED", "key was rejected by service"}, + {165, "EOWNERDEAD", "owner died"}, + {166, "ENOTRECOVERABLE", "state not recoverable"}, + {167, "ERFKILL", "operation not possible due to RF-kill"}, + {168, "EHWPOISON", "memory page has hardware error"}, + {1133, "EDQUOT", "disk quota exceeded"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGUSR1", "user defined signal 1"}, + {17, "SIGUSR2", "user defined signal 2"}, + {18, "SIGCHLD", "child exited"}, + {19, "SIGPWR", "power failure"}, + {20, "SIGWINCH", "window changed"}, + {21, "SIGURG", "urgent I/O condition"}, + {22, "SIGIO", "I/O possible"}, + {23, "SIGSTOP", "stopped (signal)"}, + {24, "SIGTSTP", "stopped"}, + {25, "SIGCONT", "continued"}, + {26, "SIGTTIN", "stopped (tty input)"}, + {27, "SIGTTOU", "stopped (tty output)"}, + {28, "SIGVTALRM", "virtual timer expired"}, + {29, "SIGPROF", "profiling timer expired"}, + {30, "SIGXCPU", "CPU time limit exceeded"}, + {31, "SIGXFSZ", "file size limit exceeded"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go new file mode 100644 index 0000000..e0365e3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -0,0 +1,836 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/mips64le/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64le && linux +// +build mips64le,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0xe + F_GETLK64 = 0xe + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x0 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x7d) + EADDRNOTAVAIL = syscall.Errno(0x7e) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x7c) + EALREADY = syscall.Errno(0x95) + EBADE = syscall.Errno(0x32) + EBADFD = syscall.Errno(0x51) + EBADMSG = syscall.Errno(0x4d) + EBADR = syscall.Errno(0x33) + EBADRQC = syscall.Errno(0x36) + EBADSLT = syscall.Errno(0x37) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x9e) + ECHRNG = syscall.Errno(0x25) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x82) + ECONNREFUSED = syscall.Errno(0x92) + ECONNRESET = syscall.Errno(0x83) + EDEADLK = syscall.Errno(0x2d) + EDEADLOCK = syscall.Errno(0x38) + EDESTADDRREQ = syscall.Errno(0x60) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x46d) + EHOSTDOWN = syscall.Errno(0x93) + EHOSTUNREACH = syscall.Errno(0x94) + EHWPOISON = syscall.Errno(0xa8) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x58) + EINIT = syscall.Errno(0x8d) + EINPROGRESS = syscall.Errno(0x96) + EISCONN = syscall.Errno(0x85) + EISNAM = syscall.Errno(0x8b) + EKEYEXPIRED = syscall.Errno(0xa2) + EKEYREJECTED = syscall.Errno(0xa4) + EKEYREVOKED = syscall.Errno(0xa3) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELIBACC = syscall.Errno(0x53) + ELIBBAD = syscall.Errno(0x54) + ELIBEXEC = syscall.Errno(0x57) + ELIBMAX = syscall.Errno(0x56) + ELIBSCN = syscall.Errno(0x55) + ELNRNG = syscall.Errno(0x29) + ELOOP = syscall.Errno(0x5a) + EMEDIUMTYPE = syscall.Errno(0xa0) + EMSGSIZE = syscall.Errno(0x61) + EMULTIHOP = syscall.Errno(0x4a) + ENAMETOOLONG = syscall.Errno(0x4e) + ENAVAIL = syscall.Errno(0x8a) + ENETDOWN = syscall.Errno(0x7f) + ENETRESET = syscall.Errno(0x81) + ENETUNREACH = syscall.Errno(0x80) + ENOANO = syscall.Errno(0x35) + ENOBUFS = syscall.Errno(0x84) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0xa1) + ENOLCK = syscall.Errno(0x2e) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x9f) + ENOMSG = syscall.Errno(0x23) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x63) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x59) + ENOTCONN = syscall.Errno(0x86) + ENOTEMPTY = syscall.Errno(0x5d) + ENOTNAM = syscall.Errno(0x89) + ENOTRECOVERABLE = syscall.Errno(0xa6) + ENOTSOCK = syscall.Errno(0x5f) + ENOTSUP = syscall.Errno(0x7a) + ENOTUNIQ = syscall.Errno(0x50) + EOPNOTSUPP = syscall.Errno(0x7a) + EOVERFLOW = syscall.Errno(0x4f) + EOWNERDEAD = syscall.Errno(0xa5) + EPFNOSUPPORT = syscall.Errno(0x7b) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x78) + EPROTOTYPE = syscall.Errno(0x62) + EREMCHG = syscall.Errno(0x52) + EREMDEV = syscall.Errno(0x8e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x8c) + ERESTART = syscall.Errno(0x5b) + ERFKILL = syscall.Errno(0xa7) + ESHUTDOWN = syscall.Errno(0x8f) + ESOCKTNOSUPPORT = syscall.Errno(0x79) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x97) + ESTRPIPE = syscall.Errno(0x5c) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x91) + ETOOMANYREFS = syscall.Errno(0x90) + EUCLEAN = syscall.Errno(0x87) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x5e) + EXFULL = syscall.Errno(0x34) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x12) + SIGCLD = syscall.Signal(0x12) + SIGCONT = syscall.Signal(0x19) + SIGEMT = syscall.Signal(0x7) + SIGIO = syscall.Signal(0x16) + SIGPOLL = syscall.Signal(0x16) + SIGPROF = syscall.Signal(0x1d) + SIGPWR = syscall.Signal(0x13) + SIGSTOP = syscall.Signal(0x17) + SIGSYS = syscall.Signal(0xc) + SIGTSTP = syscall.Signal(0x18) + SIGTTIN = syscall.Signal(0x1a) + SIGTTOU = syscall.Signal(0x1b) + SIGURG = syscall.Signal(0x15) + SIGUSR1 = syscall.Signal(0x10) + SIGUSR2 = syscall.Signal(0x11) + SIGVTALRM = syscall.Signal(0x1c) + SIGWINCH = syscall.Signal(0x14) + SIGXCPU = syscall.Signal(0x1e) + SIGXFSZ = syscall.Signal(0x1f) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "resource deadlock avoided"}, + {46, "ENOLCK", "no locks available"}, + {50, "EBADE", "invalid exchange"}, + {51, "EBADR", "invalid request descriptor"}, + {52, "EXFULL", "exchange full"}, + {53, "ENOANO", "no anode"}, + {54, "EBADRQC", "invalid request code"}, + {55, "EBADSLT", "invalid slot"}, + {56, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EMULTIHOP", "multihop attempted"}, + {77, "EBADMSG", "bad message"}, + {78, "ENAMETOOLONG", "file name too long"}, + {79, "EOVERFLOW", "value too large for defined data type"}, + {80, "ENOTUNIQ", "name not unique on network"}, + {81, "EBADFD", "file descriptor in bad state"}, + {82, "EREMCHG", "remote address changed"}, + {83, "ELIBACC", "can not access a needed shared library"}, + {84, "ELIBBAD", "accessing a corrupted shared library"}, + {85, "ELIBSCN", ".lib section in a.out corrupted"}, + {86, "ELIBMAX", "attempting to link in too many shared libraries"}, + {87, "ELIBEXEC", "cannot exec a shared library directly"}, + {88, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {89, "ENOSYS", "function not implemented"}, + {90, "ELOOP", "too many levels of symbolic links"}, + {91, "ERESTART", "interrupted system call should be restarted"}, + {92, "ESTRPIPE", "streams pipe error"}, + {93, "ENOTEMPTY", "directory not empty"}, + {94, "EUSERS", "too many users"}, + {95, "ENOTSOCK", "socket operation on non-socket"}, + {96, "EDESTADDRREQ", "destination address required"}, + {97, "EMSGSIZE", "message too long"}, + {98, "EPROTOTYPE", "protocol wrong type for socket"}, + {99, "ENOPROTOOPT", "protocol not available"}, + {120, "EPROTONOSUPPORT", "protocol not supported"}, + {121, "ESOCKTNOSUPPORT", "socket type not supported"}, + {122, "ENOTSUP", "operation not supported"}, + {123, "EPFNOSUPPORT", "protocol family not supported"}, + {124, "EAFNOSUPPORT", "address family not supported by protocol"}, + {125, "EADDRINUSE", "address already in use"}, + {126, "EADDRNOTAVAIL", "cannot assign requested address"}, + {127, "ENETDOWN", "network is down"}, + {128, "ENETUNREACH", "network is unreachable"}, + {129, "ENETRESET", "network dropped connection on reset"}, + {130, "ECONNABORTED", "software caused connection abort"}, + {131, "ECONNRESET", "connection reset by peer"}, + {132, "ENOBUFS", "no buffer space available"}, + {133, "EISCONN", "transport endpoint is already connected"}, + {134, "ENOTCONN", "transport endpoint is not connected"}, + {135, "EUCLEAN", "structure needs cleaning"}, + {137, "ENOTNAM", "not a XENIX named type file"}, + {138, "ENAVAIL", "no XENIX semaphores available"}, + {139, "EISNAM", "is a named type file"}, + {140, "EREMOTEIO", "remote I/O error"}, + {141, "EINIT", "unknown error 141"}, + {142, "EREMDEV", "unknown error 142"}, + {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {144, "ETOOMANYREFS", "too many references: cannot splice"}, + {145, "ETIMEDOUT", "connection timed out"}, + {146, "ECONNREFUSED", "connection refused"}, + {147, "EHOSTDOWN", "host is down"}, + {148, "EHOSTUNREACH", "no route to host"}, + {149, "EALREADY", "operation already in progress"}, + {150, "EINPROGRESS", "operation now in progress"}, + {151, "ESTALE", "stale file handle"}, + {158, "ECANCELED", "operation canceled"}, + {159, "ENOMEDIUM", "no medium found"}, + {160, "EMEDIUMTYPE", "wrong medium type"}, + {161, "ENOKEY", "required key not available"}, + {162, "EKEYEXPIRED", "key has expired"}, + {163, "EKEYREVOKED", "key has been revoked"}, + {164, "EKEYREJECTED", "key was rejected by service"}, + {165, "EOWNERDEAD", "owner died"}, + {166, "ENOTRECOVERABLE", "state not recoverable"}, + {167, "ERFKILL", "operation not possible due to RF-kill"}, + {168, "EHWPOISON", "memory page has hardware error"}, + {1133, "EDQUOT", "disk quota exceeded"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGUSR1", "user defined signal 1"}, + {17, "SIGUSR2", "user defined signal 2"}, + {18, "SIGCHLD", "child exited"}, + {19, "SIGPWR", "power failure"}, + {20, "SIGWINCH", "window changed"}, + {21, "SIGURG", "urgent I/O condition"}, + {22, "SIGIO", "I/O possible"}, + {23, "SIGSTOP", "stopped (signal)"}, + {24, "SIGTSTP", "stopped"}, + {25, "SIGCONT", "continued"}, + {26, "SIGTTIN", "stopped (tty input)"}, + {27, "SIGTTOU", "stopped (tty output)"}, + {28, "SIGVTALRM", "virtual timer expired"}, + {29, "SIGPROF", "profiling timer expired"}, + {30, "SIGXCPU", "CPU time limit exceeded"}, + {31, "SIGXFSZ", "file size limit exceeded"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go new file mode 100644 index 0000000..fdccce1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -0,0 +1,836 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/mipsle/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mipsle && linux +// +build mipsle,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40041270 + BLKBSZSET = 0x80041271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40041272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x80 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x2000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80046602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x21 + F_GETLK64 = 0x21 + F_GETOWN = 0x17 + F_RDLCK = 0x0 + F_SETLK = 0x22 + F_SETLK64 = 0x22 + F_SETLKW = 0x23 + F_SETLKW64 = 0x23 + F_SETOWN = 0x18 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x100 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x80 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x800 + MAP_ANONYMOUS = 0x800 + MAP_DENYWRITE = 0x2000 + MAP_EXECUTABLE = 0x4000 + MAP_GROWSDOWN = 0x1000 + MAP_HUGETLB = 0x80000 + MAP_LOCKED = 0x8000 + MAP_NONBLOCK = 0x20000 + MAP_NORESERVE = 0x400 + MAP_POPULATE = 0x10000 + MAP_RENAME = 0x800 + MAP_STACK = 0x40000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc00c4d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc00c4d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x20 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x8 + O_ASYNC = 0x1000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x100 + O_DIRECT = 0x8000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x10 + O_EXCL = 0x400 + O_FSYNC = 0x4010 + O_LARGEFILE = 0x2000 + O_NDELAY = 0x80 + O_NOATIME = 0x40000 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x80 + O_PATH = 0x200000 + O_RSYNC = 0x4010 + O_SYNC = 0x4010 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4008743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80087446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x800c744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80087447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETFPREGS = 0xe + PTRACE_GET_THREAD_AREA = 0x19 + PTRACE_GET_THREAD_AREA_3264 = 0xc4 + PTRACE_GET_WATCH_REGS = 0xd0 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_3264 = 0xc1 + PTRACE_PEEKTEXT_3264 = 0xc0 + PTRACE_POKEDATA_3264 = 0xc3 + PTRACE_POKETEXT_3264 = 0xc2 + PTRACE_SETFPREGS = 0xf + PTRACE_SET_THREAD_AREA = 0x1a + PTRACE_SET_WATCH_REGS = 0xd1 + RLIMIT_AS = 0x6 + RLIMIT_MEMLOCK = 0x9 + RLIMIT_NOFILE = 0x5 + RLIMIT_NPROC = 0x8 + RLIMIT_RSS = 0x7 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4004700d + RTC_EPOCH_SET = 0x8004700e + RTC_IRQP_READ = 0x4004700b + RTC_IRQP_SET = 0x8004700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x401c7011 + RTC_PLL_SET = 0x801c7012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x80 + SIOCATMARK = 0x40047307 + SIOCGPGRP = 0x40047309 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x467f + SIOCOUTQ = 0x7472 + SIOCSPGRP = 0x80047308 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NONBLOCK = 0x80 + SOCK_STREAM = 0x2 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x1009 + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x11 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x12 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1e + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x1004 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x1006 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x1006 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x1f + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x1005 + SO_STYLE = 0x1008 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCGETS2 = 0x4030542a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSBRKP = 0x5486 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETS2 = 0x8030542b + TCSETSF = 0x5410 + TCSETSF2 = 0x8030542d + TCSETSW = 0x540f + TCSETSW2 = 0x8030542c + TCXONC = 0x5406 + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x80 + TIOCCBRK = 0x5428 + TIOCCONS = 0x80047478 + TIOCEXCL = 0x740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x5492 + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x548b + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x4020542e + TIOCGSERIAL = 0x5484 + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5481 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x467f + TIOCLINUX = 0x5483 + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMIWAIT = 0x5491 + TIOCMSET = 0x741a + TIOCM_CAR = 0x100 + TIOCM_CD = 0x100 + TIOCM_CTS = 0x40 + TIOCM_DSR = 0x400 + TIOCM_RI = 0x200 + TIOCM_RNG = 0x200 + TIOCM_SR = 0x20 + TIOCM_ST = 0x10 + TIOCNOTTY = 0x5471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7472 + TIOCPKT = 0x5470 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x5480 + TIOCSERCONFIG = 0x5488 + TIOCSERGETLSR = 0x548e + TIOCSERGETMULTI = 0x548f + TIOCSERGSTRUCT = 0x548d + TIOCSERGWILD = 0x5489 + TIOCSERSETMULTI = 0x5490 + TIOCSERSWILD = 0x548a + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x548c + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0xc020542f + TIOCSSERIAL = 0x5485 + TIOCSSOFTCAR = 0x5482 + TIOCSTI = 0x5472 + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x8000 + TUNATTACHFILTER = 0x800854d5 + TUNDETACHFILTER = 0x800854d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x400854db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x10 + VEOL = 0x11 + VEOL2 = 0x6 + VMIN = 0x4 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VSWTCH = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x20 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x7d) + EADDRNOTAVAIL = syscall.Errno(0x7e) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x7c) + EALREADY = syscall.Errno(0x95) + EBADE = syscall.Errno(0x32) + EBADFD = syscall.Errno(0x51) + EBADMSG = syscall.Errno(0x4d) + EBADR = syscall.Errno(0x33) + EBADRQC = syscall.Errno(0x36) + EBADSLT = syscall.Errno(0x37) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x9e) + ECHRNG = syscall.Errno(0x25) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x82) + ECONNREFUSED = syscall.Errno(0x92) + ECONNRESET = syscall.Errno(0x83) + EDEADLK = syscall.Errno(0x2d) + EDEADLOCK = syscall.Errno(0x38) + EDESTADDRREQ = syscall.Errno(0x60) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x46d) + EHOSTDOWN = syscall.Errno(0x93) + EHOSTUNREACH = syscall.Errno(0x94) + EHWPOISON = syscall.Errno(0xa8) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x58) + EINIT = syscall.Errno(0x8d) + EINPROGRESS = syscall.Errno(0x96) + EISCONN = syscall.Errno(0x85) + EISNAM = syscall.Errno(0x8b) + EKEYEXPIRED = syscall.Errno(0xa2) + EKEYREJECTED = syscall.Errno(0xa4) + EKEYREVOKED = syscall.Errno(0xa3) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELIBACC = syscall.Errno(0x53) + ELIBBAD = syscall.Errno(0x54) + ELIBEXEC = syscall.Errno(0x57) + ELIBMAX = syscall.Errno(0x56) + ELIBSCN = syscall.Errno(0x55) + ELNRNG = syscall.Errno(0x29) + ELOOP = syscall.Errno(0x5a) + EMEDIUMTYPE = syscall.Errno(0xa0) + EMSGSIZE = syscall.Errno(0x61) + EMULTIHOP = syscall.Errno(0x4a) + ENAMETOOLONG = syscall.Errno(0x4e) + ENAVAIL = syscall.Errno(0x8a) + ENETDOWN = syscall.Errno(0x7f) + ENETRESET = syscall.Errno(0x81) + ENETUNREACH = syscall.Errno(0x80) + ENOANO = syscall.Errno(0x35) + ENOBUFS = syscall.Errno(0x84) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0xa1) + ENOLCK = syscall.Errno(0x2e) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x9f) + ENOMSG = syscall.Errno(0x23) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x63) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x59) + ENOTCONN = syscall.Errno(0x86) + ENOTEMPTY = syscall.Errno(0x5d) + ENOTNAM = syscall.Errno(0x89) + ENOTRECOVERABLE = syscall.Errno(0xa6) + ENOTSOCK = syscall.Errno(0x5f) + ENOTSUP = syscall.Errno(0x7a) + ENOTUNIQ = syscall.Errno(0x50) + EOPNOTSUPP = syscall.Errno(0x7a) + EOVERFLOW = syscall.Errno(0x4f) + EOWNERDEAD = syscall.Errno(0xa5) + EPFNOSUPPORT = syscall.Errno(0x7b) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x78) + EPROTOTYPE = syscall.Errno(0x62) + EREMCHG = syscall.Errno(0x52) + EREMDEV = syscall.Errno(0x8e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x8c) + ERESTART = syscall.Errno(0x5b) + ERFKILL = syscall.Errno(0xa7) + ESHUTDOWN = syscall.Errno(0x8f) + ESOCKTNOSUPPORT = syscall.Errno(0x79) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x97) + ESTRPIPE = syscall.Errno(0x5c) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x91) + ETOOMANYREFS = syscall.Errno(0x90) + EUCLEAN = syscall.Errno(0x87) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x5e) + EXFULL = syscall.Errno(0x34) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x12) + SIGCLD = syscall.Signal(0x12) + SIGCONT = syscall.Signal(0x19) + SIGEMT = syscall.Signal(0x7) + SIGIO = syscall.Signal(0x16) + SIGPOLL = syscall.Signal(0x16) + SIGPROF = syscall.Signal(0x1d) + SIGPWR = syscall.Signal(0x13) + SIGSTOP = syscall.Signal(0x17) + SIGSYS = syscall.Signal(0xc) + SIGTSTP = syscall.Signal(0x18) + SIGTTIN = syscall.Signal(0x1a) + SIGTTOU = syscall.Signal(0x1b) + SIGURG = syscall.Signal(0x15) + SIGUSR1 = syscall.Signal(0x10) + SIGUSR2 = syscall.Signal(0x11) + SIGVTALRM = syscall.Signal(0x1c) + SIGWINCH = syscall.Signal(0x14) + SIGXCPU = syscall.Signal(0x1e) + SIGXFSZ = syscall.Signal(0x1f) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "resource deadlock avoided"}, + {46, "ENOLCK", "no locks available"}, + {50, "EBADE", "invalid exchange"}, + {51, "EBADR", "invalid request descriptor"}, + {52, "EXFULL", "exchange full"}, + {53, "ENOANO", "no anode"}, + {54, "EBADRQC", "invalid request code"}, + {55, "EBADSLT", "invalid slot"}, + {56, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EMULTIHOP", "multihop attempted"}, + {77, "EBADMSG", "bad message"}, + {78, "ENAMETOOLONG", "file name too long"}, + {79, "EOVERFLOW", "value too large for defined data type"}, + {80, "ENOTUNIQ", "name not unique on network"}, + {81, "EBADFD", "file descriptor in bad state"}, + {82, "EREMCHG", "remote address changed"}, + {83, "ELIBACC", "can not access a needed shared library"}, + {84, "ELIBBAD", "accessing a corrupted shared library"}, + {85, "ELIBSCN", ".lib section in a.out corrupted"}, + {86, "ELIBMAX", "attempting to link in too many shared libraries"}, + {87, "ELIBEXEC", "cannot exec a shared library directly"}, + {88, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {89, "ENOSYS", "function not implemented"}, + {90, "ELOOP", "too many levels of symbolic links"}, + {91, "ERESTART", "interrupted system call should be restarted"}, + {92, "ESTRPIPE", "streams pipe error"}, + {93, "ENOTEMPTY", "directory not empty"}, + {94, "EUSERS", "too many users"}, + {95, "ENOTSOCK", "socket operation on non-socket"}, + {96, "EDESTADDRREQ", "destination address required"}, + {97, "EMSGSIZE", "message too long"}, + {98, "EPROTOTYPE", "protocol wrong type for socket"}, + {99, "ENOPROTOOPT", "protocol not available"}, + {120, "EPROTONOSUPPORT", "protocol not supported"}, + {121, "ESOCKTNOSUPPORT", "socket type not supported"}, + {122, "ENOTSUP", "operation not supported"}, + {123, "EPFNOSUPPORT", "protocol family not supported"}, + {124, "EAFNOSUPPORT", "address family not supported by protocol"}, + {125, "EADDRINUSE", "address already in use"}, + {126, "EADDRNOTAVAIL", "cannot assign requested address"}, + {127, "ENETDOWN", "network is down"}, + {128, "ENETUNREACH", "network is unreachable"}, + {129, "ENETRESET", "network dropped connection on reset"}, + {130, "ECONNABORTED", "software caused connection abort"}, + {131, "ECONNRESET", "connection reset by peer"}, + {132, "ENOBUFS", "no buffer space available"}, + {133, "EISCONN", "transport endpoint is already connected"}, + {134, "ENOTCONN", "transport endpoint is not connected"}, + {135, "EUCLEAN", "structure needs cleaning"}, + {137, "ENOTNAM", "not a XENIX named type file"}, + {138, "ENAVAIL", "no XENIX semaphores available"}, + {139, "EISNAM", "is a named type file"}, + {140, "EREMOTEIO", "remote I/O error"}, + {141, "EINIT", "unknown error 141"}, + {142, "EREMDEV", "unknown error 142"}, + {143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {144, "ETOOMANYREFS", "too many references: cannot splice"}, + {145, "ETIMEDOUT", "connection timed out"}, + {146, "ECONNREFUSED", "connection refused"}, + {147, "EHOSTDOWN", "host is down"}, + {148, "EHOSTUNREACH", "no route to host"}, + {149, "EALREADY", "operation already in progress"}, + {150, "EINPROGRESS", "operation now in progress"}, + {151, "ESTALE", "stale file handle"}, + {158, "ECANCELED", "operation canceled"}, + {159, "ENOMEDIUM", "no medium found"}, + {160, "EMEDIUMTYPE", "wrong medium type"}, + {161, "ENOKEY", "required key not available"}, + {162, "EKEYEXPIRED", "key has expired"}, + {163, "EKEYREVOKED", "key has been revoked"}, + {164, "EKEYREJECTED", "key was rejected by service"}, + {165, "EOWNERDEAD", "owner died"}, + {166, "ENOTRECOVERABLE", "state not recoverable"}, + {167, "ERFKILL", "operation not possible due to RF-kill"}, + {168, "EHWPOISON", "memory page has hardware error"}, + {1133, "EDQUOT", "disk quota exceeded"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGUSR1", "user defined signal 1"}, + {17, "SIGUSR2", "user defined signal 2"}, + {18, "SIGCHLD", "child exited"}, + {19, "SIGPWR", "power failure"}, + {20, "SIGWINCH", "window changed"}, + {21, "SIGURG", "urgent I/O condition"}, + {22, "SIGIO", "I/O possible"}, + {23, "SIGSTOP", "stopped (signal)"}, + {24, "SIGTSTP", "stopped"}, + {25, "SIGCONT", "continued"}, + {26, "SIGTTIN", "stopped (tty input)"}, + {27, "SIGTTOU", "stopped (tty output)"}, + {28, "SIGVTALRM", "virtual timer expired"}, + {29, "SIGPROF", "profiling timer expired"}, + {30, "SIGXCPU", "CPU time limit exceeded"}, + {31, "SIGXFSZ", "file size limit exceeded"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go new file mode 100644 index 0000000..b2205c8 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go @@ -0,0 +1,888 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/ppc/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc && linux +// +build ppc,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x17 + B115200 = 0x11 + B1152000 = 0x18 + B1500000 = 0x19 + B2000000 = 0x1a + B230400 = 0x12 + B2500000 = 0x1b + B3000000 = 0x1c + B3500000 = 0x1d + B4000000 = 0x1e + B460800 = 0x13 + B500000 = 0x14 + B57600 = 0x10 + B576000 = 0x15 + B921600 = 0x16 + BLKBSZGET = 0x40041270 + BLKBSZSET = 0x80041271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40041272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1f + BS1 = 0x8000 + BSDLY = 0x8000 + CBAUD = 0xff + CBAUDEX = 0x0 + CIBAUD = 0xff0000 + CLOCAL = 0x8000 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTOPB = 0x400 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000000 + FF1 = 0x4000 + FFDLY = 0x4000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x800000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40046601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80046602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0xc + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0xd + F_SETLK64 = 0xd + F_SETLKW = 0xe + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x4000 + ICANON = 0x100 + IEXTEN = 0x400 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x80 + IUCLC = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x80 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc00c4d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc00c4d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x20 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x4 + ONLCR = 0x2 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x20000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x10000 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x1000 + PARODD = 0x2000 + PENDIN = 0x20000000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40042407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80042406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4008743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80087446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x800c744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80087447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PROT_SAO = 0x10 + PR_SET_PTRACER_ANY = 0xffffffff + PTRACE_GETEVRREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETREGS64 = 0x16 + PTRACE_GETVRREGS = 0x12 + PTRACE_GETVSRREGS = 0x1b + PTRACE_GET_DEBUGREG = 0x19 + PTRACE_SETEVRREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETREGS64 = 0x17 + PTRACE_SETVRREGS = 0x13 + PTRACE_SETVSRREGS = 0x1c + PTRACE_SET_DEBUGREG = 0x1a + PTRACE_SINGLEBLOCK = 0x100 + PTRACE_SYSEMU = 0x1d + PTRACE_SYSEMU_SINGLESTEP = 0x1e + PT_CCR = 0x26 + PT_CTR = 0x23 + PT_DAR = 0x29 + PT_DSCR = 0x2c + PT_DSISR = 0x2a + PT_FPR0 = 0x30 + PT_FPR31 = 0x6e + PT_FPSCR = 0x71 + PT_LNK = 0x24 + PT_MQ = 0x27 + PT_MSR = 0x21 + PT_NIP = 0x20 + PT_ORIG_R3 = 0x22 + PT_R0 = 0x0 + PT_R1 = 0x1 + PT_R10 = 0xa + PT_R11 = 0xb + PT_R12 = 0xc + PT_R13 = 0xd + PT_R14 = 0xe + PT_R15 = 0xf + PT_R16 = 0x10 + PT_R17 = 0x11 + PT_R18 = 0x12 + PT_R19 = 0x13 + PT_R2 = 0x2 + PT_R20 = 0x14 + PT_R21 = 0x15 + PT_R22 = 0x16 + PT_R23 = 0x17 + PT_R24 = 0x18 + PT_R25 = 0x19 + PT_R26 = 0x1a + PT_R27 = 0x1b + PT_R28 = 0x1c + PT_R29 = 0x1d + PT_R3 = 0x3 + PT_R30 = 0x1e + PT_R31 = 0x1f + PT_R4 = 0x4 + PT_R5 = 0x5 + PT_R6 = 0x6 + PT_R7 = 0x7 + PT_R8 = 0x8 + PT_R9 = 0x9 + PT_REGS_COUNT = 0x2c + PT_RESULT = 0x2b + PT_TRAP = 0x28 + PT_XER = 0x25 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4004700d + RTC_EPOCH_SET = 0x8004700e + RTC_IRQP_READ = 0x4004700b + RTC_IRQP_SET = 0x8004700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x401c7011 + RTC_PLL_SET = 0x801c7012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x14 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x15 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x10 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x12 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x12 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x11 + SO_SNDTIMEO = 0x13 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x13 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x2000741f + TCGETA = 0x40147417 + TCGETS = 0x402c7413 + TCSAFLUSH = 0x2 + TCSBRK = 0x2000741d + TCSBRKP = 0x5425 + TCSETA = 0x80147418 + TCSETAF = 0x8014741c + TCSETAW = 0x80147419 + TCSETS = 0x802c7414 + TCSETSF = 0x802c7416 + TCSETSW = 0x802c7415 + TCXONC = 0x2000741e + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x40045432 + TIOCGETC = 0x40067412 + TIOCGETD = 0x5424 + TIOCGETP = 0x40067408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_LOOP = 0x8000 + TIOCM_OUT1 = 0x2000 + TIOCM_OUT2 = 0x4000 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETC = 0x80067411 + TIOCSETD = 0x5423 + TIOCSETN = 0x8006740a + TIOCSETP = 0x80067409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSLTC = 0x80067475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTART = 0x2000746e + TIOCSTI = 0x5412 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x400000 + TUNATTACHFILTER = 0x800854d5 + TUNDETACHFILTER = 0x800854d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x400854db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0x10 + VEOF = 0x4 + VEOL = 0x6 + VEOL2 = 0x8 + VMIN = 0x5 + VREPRINT = 0xb + VSTART = 0xd + VSTOP = 0xe + VSUSP = 0xc + VSWTC = 0x9 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x7 + VWERASE = 0xa + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x20 + XCASE = 0x4000 + XTABS = 0xc00 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x3a) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {58, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go new file mode 100644 index 0000000..81aa5ad --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -0,0 +1,892 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && linux +// +build ppc64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x17 + B115200 = 0x11 + B1152000 = 0x18 + B1500000 = 0x19 + B2000000 = 0x1a + B230400 = 0x12 + B2500000 = 0x1b + B3000000 = 0x1c + B3500000 = 0x1d + B4000000 = 0x1e + B460800 = 0x13 + B500000 = 0x14 + B57600 = 0x10 + B576000 = 0x15 + B921600 = 0x16 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1f + BS1 = 0x8000 + BSDLY = 0x8000 + CBAUD = 0xff + CBAUDEX = 0x0 + CIBAUD = 0xff0000 + CLOCAL = 0x8000 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTOPB = 0x400 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000000 + FF1 = 0x4000 + FFDLY = 0x4000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x800000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x5 + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0xd + F_SETLKW = 0x7 + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x4000 + ICANON = 0x100 + IEXTEN = 0x400 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x80 + IUCLC = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x80 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x40 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x4 + ONLCR = 0x2 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x20000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x1000 + PARODD = 0x2000 + PENDIN = 0x20000000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PROT_SAO = 0x10 + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETEVRREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETREGS64 = 0x16 + PTRACE_GETVRREGS = 0x12 + PTRACE_GETVSRREGS = 0x1b + PTRACE_GET_DEBUGREG = 0x19 + PTRACE_SETEVRREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETREGS64 = 0x17 + PTRACE_SETVRREGS = 0x13 + PTRACE_SETVSRREGS = 0x1c + PTRACE_SET_DEBUGREG = 0x1a + PTRACE_SINGLEBLOCK = 0x100 + PTRACE_SYSEMU = 0x1d + PTRACE_SYSEMU_SINGLESTEP = 0x1e + PT_CCR = 0x26 + PT_CTR = 0x23 + PT_DAR = 0x29 + PT_DSCR = 0x2c + PT_DSISR = 0x2a + PT_FPR0 = 0x30 + PT_FPSCR = 0x50 + PT_LNK = 0x24 + PT_MSR = 0x21 + PT_NIP = 0x20 + PT_ORIG_R3 = 0x22 + PT_R0 = 0x0 + PT_R1 = 0x1 + PT_R10 = 0xa + PT_R11 = 0xb + PT_R12 = 0xc + PT_R13 = 0xd + PT_R14 = 0xe + PT_R15 = 0xf + PT_R16 = 0x10 + PT_R17 = 0x11 + PT_R18 = 0x12 + PT_R19 = 0x13 + PT_R2 = 0x2 + PT_R20 = 0x14 + PT_R21 = 0x15 + PT_R22 = 0x16 + PT_R23 = 0x17 + PT_R24 = 0x18 + PT_R25 = 0x19 + PT_R26 = 0x1a + PT_R27 = 0x1b + PT_R28 = 0x1c + PT_R29 = 0x1d + PT_R3 = 0x3 + PT_R30 = 0x1e + PT_R31 = 0x1f + PT_R4 = 0x4 + PT_R5 = 0x5 + PT_R6 = 0x6 + PT_R7 = 0x7 + PT_R8 = 0x8 + PT_R9 = 0x9 + PT_REGS_COUNT = 0x2c + PT_RESULT = 0x2b + PT_SOFTE = 0x27 + PT_TRAP = 0x28 + PT_VR0 = 0x52 + PT_VRSAVE = 0x94 + PT_VSCR = 0x93 + PT_VSR0 = 0x96 + PT_VSR31 = 0xd4 + PT_XER = 0x25 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x14 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x15 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x10 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x12 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x12 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x11 + SO_SNDTIMEO = 0x13 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x13 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x2000741f + TCGETA = 0x40147417 + TCGETS = 0x402c7413 + TCSAFLUSH = 0x2 + TCSBRK = 0x2000741d + TCSBRKP = 0x5425 + TCSETA = 0x80147418 + TCSETAF = 0x8014741c + TCSETAW = 0x80147419 + TCSETS = 0x802c7414 + TCSETSF = 0x802c7416 + TCSETSW = 0x802c7415 + TCXONC = 0x2000741e + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x40045432 + TIOCGETC = 0x40067412 + TIOCGETD = 0x5424 + TIOCGETP = 0x40067408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_LOOP = 0x8000 + TIOCM_OUT1 = 0x2000 + TIOCM_OUT2 = 0x4000 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETC = 0x80067411 + TIOCSETD = 0x5423 + TIOCSETN = 0x8006740a + TIOCSETP = 0x80067409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSLTC = 0x80067475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTART = 0x2000746e + TIOCSTI = 0x5412 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x400000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0x10 + VEOF = 0x4 + VEOL = 0x6 + VEOL2 = 0x8 + VMIN = 0x5 + VREPRINT = 0xb + VSTART = 0xd + VSTOP = 0xe + VSUSP = 0xc + VSWTC = 0x9 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x7 + VWERASE = 0xa + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4000 + XTABS = 0xc00 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x3a) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {58, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go new file mode 100644 index 0000000..76807a1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -0,0 +1,892 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64le/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64le && linux +// +build ppc64le,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x17 + B115200 = 0x11 + B1152000 = 0x18 + B1500000 = 0x19 + B2000000 = 0x1a + B230400 = 0x12 + B2500000 = 0x1b + B3000000 = 0x1c + B3500000 = 0x1d + B4000000 = 0x1e + B460800 = 0x13 + B500000 = 0x14 + B57600 = 0x10 + B576000 = 0x15 + B921600 = 0x16 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1f + BS1 = 0x8000 + BSDLY = 0x8000 + CBAUD = 0xff + CBAUDEX = 0x0 + CIBAUD = 0xff0000 + CLOCAL = 0x8000 + CR1 = 0x1000 + CR2 = 0x2000 + CR3 = 0x3000 + CRDLY = 0x3000 + CREAD = 0x800 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTOPB = 0x400 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000000 + FF1 = 0x4000 + FFDLY = 0x4000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x800000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x5 + F_GETLK64 = 0xc + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0xd + F_SETLKW = 0x7 + F_SETLKW64 = 0xe + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x4000 + ICANON = 0x100 + IEXTEN = 0x400 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x80 + IUCLC = 0x1000 + IXOFF = 0x400 + IXON = 0x200 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x80 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x40 + NL2 = 0x200 + NL3 = 0x300 + NLDLY = 0x300 + NOFLSH = 0x80000000 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x4 + ONLCR = 0x2 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x20000 + O_DIRECTORY = 0x4000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x8000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x404000 + O_TRUNC = 0x200 + PARENB = 0x1000 + PARODD = 0x2000 + PENDIN = 0x20000000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PROT_SAO = 0x10 + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETEVRREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETREGS64 = 0x16 + PTRACE_GETVRREGS = 0x12 + PTRACE_GETVSRREGS = 0x1b + PTRACE_GET_DEBUGREG = 0x19 + PTRACE_SETEVRREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETREGS64 = 0x17 + PTRACE_SETVRREGS = 0x13 + PTRACE_SETVSRREGS = 0x1c + PTRACE_SET_DEBUGREG = 0x1a + PTRACE_SINGLEBLOCK = 0x100 + PTRACE_SYSEMU = 0x1d + PTRACE_SYSEMU_SINGLESTEP = 0x1e + PT_CCR = 0x26 + PT_CTR = 0x23 + PT_DAR = 0x29 + PT_DSCR = 0x2c + PT_DSISR = 0x2a + PT_FPR0 = 0x30 + PT_FPSCR = 0x50 + PT_LNK = 0x24 + PT_MSR = 0x21 + PT_NIP = 0x20 + PT_ORIG_R3 = 0x22 + PT_R0 = 0x0 + PT_R1 = 0x1 + PT_R10 = 0xa + PT_R11 = 0xb + PT_R12 = 0xc + PT_R13 = 0xd + PT_R14 = 0xe + PT_R15 = 0xf + PT_R16 = 0x10 + PT_R17 = 0x11 + PT_R18 = 0x12 + PT_R19 = 0x13 + PT_R2 = 0x2 + PT_R20 = 0x14 + PT_R21 = 0x15 + PT_R22 = 0x16 + PT_R23 = 0x17 + PT_R24 = 0x18 + PT_R25 = 0x19 + PT_R26 = 0x1a + PT_R27 = 0x1b + PT_R28 = 0x1c + PT_R29 = 0x1d + PT_R3 = 0x3 + PT_R30 = 0x1e + PT_R31 = 0x1f + PT_R4 = 0x4 + PT_R5 = 0x5 + PT_R6 = 0x6 + PT_R7 = 0x7 + PT_R8 = 0x8 + PT_R9 = 0x9 + PT_REGS_COUNT = 0x2c + PT_RESULT = 0x2b + PT_SOFTE = 0x27 + PT_TRAP = 0x28 + PT_VR0 = 0x52 + PT_VRSAVE = 0x94 + PT_VSCR = 0x93 + PT_VSR0 = 0x96 + PT_VSR31 = 0xd4 + PT_XER = 0x25 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x14 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x15 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x10 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x12 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x12 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x11 + SO_SNDTIMEO = 0x13 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x13 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x400 + TAB2 = 0x800 + TAB3 = 0xc00 + TABDLY = 0xc00 + TCFLSH = 0x2000741f + TCGETA = 0x40147417 + TCGETS = 0x402c7413 + TCSAFLUSH = 0x2 + TCSBRK = 0x2000741d + TCSBRKP = 0x5425 + TCSETA = 0x80147418 + TCSETAF = 0x8014741c + TCSETAW = 0x80147419 + TCSETS = 0x802c7414 + TCSETSF = 0x802c7416 + TCSETSW = 0x802c7415 + TCXONC = 0x2000741e + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x40045432 + TIOCGETC = 0x40067412 + TIOCGETD = 0x5424 + TIOCGETP = 0x40067408 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGLTC = 0x40067474 + TIOCGPGRP = 0x40047477 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40045430 + TIOCGPTPEER = 0x20005441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_LOOP = 0x8000 + TIOCM_OUT1 = 0x2000 + TIOCM_OUT2 = 0x4000 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETC = 0x80067411 + TIOCSETD = 0x5423 + TIOCSETN = 0x8006740a + TIOCSETP = 0x80067409 + TIOCSIG = 0x80045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSLTC = 0x80067475 + TIOCSPGRP = 0x80047476 + TIOCSPTLCK = 0x80045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTART = 0x2000746e + TIOCSTI = 0x5412 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x400000 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0x10 + VEOF = 0x4 + VEOL = 0x6 + VEOL2 = 0x8 + VMIN = 0x5 + VREPRINT = 0xb + VSTART = 0xd + VSTOP = 0xe + VSUSP = 0xc + VSWTC = 0x9 + VT1 = 0x10000 + VTDLY = 0x10000 + VTIME = 0x7 + VWERASE = 0xa + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4000 + XTABS = 0xc00 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x3a) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {58, "EDEADLOCK", "file locking deadlock error"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go new file mode 100644 index 0000000..d4a5ab9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -0,0 +1,816 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/riscv64/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && linux +// +build riscv64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go new file mode 100644 index 0000000..66e65db --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -0,0 +1,891 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/s390x/include -fsigned-char +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build s390x && linux +// +build s390x,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go + +package unix + +import "syscall" + +const ( + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x80081270 + BLKBSZSET = 0x40081271 + BLKFLSBUF = 0x1261 + BLKFRAGET = 0x1265 + BLKFRASET = 0x1264 + BLKGETSIZE = 0x1260 + BLKGETSIZE64 = 0x80081272 + BLKPBSZGET = 0x127b + BLKRAGET = 0x1263 + BLKRASET = 0x1262 + BLKROGET = 0x125e + BLKROSET = 0x125d + BLKRRPART = 0x125f + BLKSECTGET = 0x1267 + BLKSECTSET = 0x1266 + BLKSSZGET = 0x1268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x81484d11 + ECCGETSTATS = 0x80104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x80000 + EFD_NONBLOCK = 0x800 + EPOLL_CLOEXEC = 0x80000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x40049409 + FICLONERANGE = 0x4020940d + FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x40806685 + FS_IOC_GETFLAGS = 0x80086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x8010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 + FS_IOC_SETFLAGS = 0x40086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 + F_GETLK = 0x5 + F_GETLK64 = 0x5 + F_GETOWN = 0x9 + F_RDLCK = 0x0 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETOWN = 0x8 + F_UNLCK = 0x2 + F_WRLCK = 0x1 + HIDIOCGRAWINFO = 0x80084803 + HIDIOCGRDESC = 0x90044802 + HIDIOCGRDESCSIZE = 0x80044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x80000 + IN_NONBLOCK = 0x800 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x100 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x2000 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x4000 + MAP_POPULATE = 0x8000 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MCL_ONFAULT = 0x4 + MEMERASE = 0x40084d02 + MEMERASE64 = 0x40104d14 + MEMGETBADBLOCK = 0x40084d0b + MEMGETINFO = 0x80204d01 + MEMGETOOBSEL = 0x80c84d0a + MEMGETREGIONCOUNT = 0x80044d07 + MEMISLOCKED = 0x80084d17 + MEMLOCK = 0x40084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x40084d0c + MEMUNLOCK = 0x40084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x4d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x400c4d19 + OTPGETREGIONCOUNT = 0x40044d0e + OTPGETREGIONINFO = 0x400c4d0f + OTPLOCK = 0x800c4d10 + OTPSELECT = 0x80044d0d + O_APPEND = 0x400 + O_ASYNC = 0x2000 + O_CLOEXEC = 0x80000 + O_CREAT = 0x40 + O_DIRECT = 0x4000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x1000 + O_EXCL = 0x80 + O_FSYNC = 0x101000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x800 + O_NOATIME = 0x40000 + O_NOCTTY = 0x100 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x800 + O_PATH = 0x200000 + O_RSYNC = 0x101000 + O_SYNC = 0x101000 + O_TMPFILE = 0x410000 + O_TRUNC = 0x200 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x2401 + PERF_EVENT_IOC_ENABLE = 0x2400 + PERF_EVENT_IOC_ID = 0x80082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 + PERF_EVENT_IOC_PERIOD = 0x40082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x2402 + PERF_EVENT_IOC_RESET = 0x2403 + PERF_EVENT_IOC_SET_BPF = 0x40042408 + PERF_EVENT_IOC_SET_FILTER = 0x40082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x2405 + PPPIOCATTACH = 0x4004743d + PPPIOCATTCHAN = 0x40047438 + PPPIOCBRIDGECHAN = 0x40047435 + PPPIOCCONNECT = 0x4004743a + PPPIOCDETACH = 0x4004743c + PPPIOCDISCONN = 0x7439 + PPPIOCGASYNCMAP = 0x80047458 + PPPIOCGCHAN = 0x80047437 + PPPIOCGDEBUG = 0x80047441 + PPPIOCGFLAGS = 0x8004745a + PPPIOCGIDLE = 0x8010743f + PPPIOCGIDLE32 = 0x8008743f + PPPIOCGIDLE64 = 0x8010743f + PPPIOCGL2TPSTATS = 0x80487436 + PPPIOCGMRU = 0x80047453 + PPPIOCGRASYNCMAP = 0x80047455 + PPPIOCGUNIT = 0x80047456 + PPPIOCGXASYNCMAP = 0x80207450 + PPPIOCSACTIVE = 0x40107446 + PPPIOCSASYNCMAP = 0x40047457 + PPPIOCSCOMPRESS = 0x4010744d + PPPIOCSDEBUG = 0x40047440 + PPPIOCSFLAGS = 0x40047459 + PPPIOCSMAXCID = 0x40047451 + PPPIOCSMRRU = 0x4004743b + PPPIOCSMRU = 0x40047452 + PPPIOCSNPMODE = 0x4008744b + PPPIOCSPASS = 0x40107447 + PPPIOCSRASYNCMAP = 0x40047454 + PPPIOCSXASYNCMAP = 0x4020744f + PPPIOCUNBRIDGECHAN = 0x7434 + PPPIOCXFERUNIT = 0x744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_DISABLE_TE = 0x5010 + PTRACE_ENABLE_TE = 0x5009 + PTRACE_GET_LAST_BREAK = 0x5006 + PTRACE_OLDSETOPTIONS = 0x15 + PTRACE_PEEKDATA_AREA = 0x5003 + PTRACE_PEEKTEXT_AREA = 0x5002 + PTRACE_PEEKUSR_AREA = 0x5000 + PTRACE_PEEK_SYSTEM_CALL = 0x5007 + PTRACE_POKEDATA_AREA = 0x5005 + PTRACE_POKETEXT_AREA = 0x5004 + PTRACE_POKEUSR_AREA = 0x5001 + PTRACE_POKE_SYSTEM_CALL = 0x5008 + PTRACE_PROT = 0x15 + PTRACE_SINGLEBLOCK = 0xc + PTRACE_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 + PTRACE_TE_ABORT_RAND = 0x5011 + PT_ACR0 = 0x90 + PT_ACR1 = 0x94 + PT_ACR10 = 0xb8 + PT_ACR11 = 0xbc + PT_ACR12 = 0xc0 + PT_ACR13 = 0xc4 + PT_ACR14 = 0xc8 + PT_ACR15 = 0xcc + PT_ACR2 = 0x98 + PT_ACR3 = 0x9c + PT_ACR4 = 0xa0 + PT_ACR5 = 0xa4 + PT_ACR6 = 0xa8 + PT_ACR7 = 0xac + PT_ACR8 = 0xb0 + PT_ACR9 = 0xb4 + PT_CR_10 = 0x168 + PT_CR_11 = 0x170 + PT_CR_9 = 0x160 + PT_ENDREGS = 0x1af + PT_FPC = 0xd8 + PT_FPR0 = 0xe0 + PT_FPR1 = 0xe8 + PT_FPR10 = 0x130 + PT_FPR11 = 0x138 + PT_FPR12 = 0x140 + PT_FPR13 = 0x148 + PT_FPR14 = 0x150 + PT_FPR15 = 0x158 + PT_FPR2 = 0xf0 + PT_FPR3 = 0xf8 + PT_FPR4 = 0x100 + PT_FPR5 = 0x108 + PT_FPR6 = 0x110 + PT_FPR7 = 0x118 + PT_FPR8 = 0x120 + PT_FPR9 = 0x128 + PT_GPR0 = 0x10 + PT_GPR1 = 0x18 + PT_GPR10 = 0x60 + PT_GPR11 = 0x68 + PT_GPR12 = 0x70 + PT_GPR13 = 0x78 + PT_GPR14 = 0x80 + PT_GPR15 = 0x88 + PT_GPR2 = 0x20 + PT_GPR3 = 0x28 + PT_GPR4 = 0x30 + PT_GPR5 = 0x38 + PT_GPR6 = 0x40 + PT_GPR7 = 0x48 + PT_GPR8 = 0x50 + PT_GPR9 = 0x58 + PT_IEEE_IP = 0x1a8 + PT_LASTOFF = 0x1a8 + PT_ORIGGPR2 = 0xd0 + PT_PSWADDR = 0x8 + PT_PSWMASK = 0x0 + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x7 + RLIMIT_NPROC = 0x6 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x40085203 + RNDADDTOENTCNT = 0x40045201 + RNDCLEARPOOL = 0x5206 + RNDGETENTCNT = 0x80045200 + RNDGETPOOL = 0x80085202 + RNDRESEEDCRNG = 0x5207 + RNDZAPENTCNT = 0x5204 + RTC_AIE_OFF = 0x7002 + RTC_AIE_ON = 0x7001 + RTC_ALM_READ = 0x80247008 + RTC_ALM_SET = 0x40247007 + RTC_EPOCH_READ = 0x8008700d + RTC_EPOCH_SET = 0x4008700e + RTC_IRQP_READ = 0x8008700b + RTC_IRQP_SET = 0x4008700c + RTC_PARAM_GET = 0x40187013 + RTC_PARAM_SET = 0x40187014 + RTC_PIE_OFF = 0x7006 + RTC_PIE_ON = 0x7005 + RTC_PLL_GET = 0x80207011 + RTC_PLL_SET = 0x40207012 + RTC_RD_TIME = 0x80247009 + RTC_SET_TIME = 0x4024700a + RTC_UIE_OFF = 0x7004 + RTC_UIE_ON = 0x7003 + RTC_VL_CLR = 0x7014 + RTC_VL_READ = 0x80047013 + RTC_WIE_OFF = 0x7010 + RTC_WIE_ON = 0x700f + RTC_WKALM_RD = 0x80287010 + RTC_WKALM_SET = 0x4028700f + SCM_TIMESTAMPING = 0x25 + SCM_TIMESTAMPING_OPT_STATS = 0x36 + SCM_TIMESTAMPING_PKTINFO = 0x3a + SCM_TIMESTAMPNS = 0x23 + SCM_TXTIME = 0x3d + SCM_WIFI_STATUS = 0x29 + SFD_CLOEXEC = 0x80000 + SFD_NONBLOCK = 0x800 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x80108907 + SIOCGSTAMP_NEW = 0x80108906 + SIOCINQ = 0x541b + SIOCOUTQ = 0x5411 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x800 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0x1 + SO_ACCEPTCONN = 0x1e + SO_ATTACH_BPF = 0x32 + SO_ATTACH_REUSEPORT_CBPF = 0x33 + SO_ATTACH_REUSEPORT_EBPF = 0x34 + SO_BINDTODEVICE = 0x19 + SO_BINDTOIFINDEX = 0x3e + SO_BPF_EXTENSIONS = 0x30 + SO_BROADCAST = 0x6 + SO_BSDCOMPAT = 0xe + SO_BUF_LOCK = 0x48 + SO_BUSY_POLL = 0x2e + SO_BUSY_POLL_BUDGET = 0x46 + SO_CNX_ADVICE = 0x35 + SO_COOKIE = 0x39 + SO_DETACH_REUSEPORT_BPF = 0x44 + SO_DOMAIN = 0x27 + SO_DONTROUTE = 0x5 + SO_ERROR = 0x4 + SO_INCOMING_CPU = 0x31 + SO_INCOMING_NAPI_ID = 0x38 + SO_KEEPALIVE = 0x9 + SO_LINGER = 0xd + SO_LOCK_FILTER = 0x2c + SO_MARK = 0x24 + SO_MAX_PACING_RATE = 0x2f + SO_MEMINFO = 0x37 + SO_NETNS_COOKIE = 0x47 + SO_NOFCS = 0x2b + SO_OOBINLINE = 0xa + SO_PASSCRED = 0x10 + SO_PASSSEC = 0x22 + SO_PEEK_OFF = 0x2a + SO_PEERCRED = 0x11 + SO_PEERGROUPS = 0x3b + SO_PEERSEC = 0x1f + SO_PREFER_BUSY_POLL = 0x45 + SO_PROTOCOL = 0x26 + SO_RCVBUF = 0x8 + SO_RCVBUFFORCE = 0x21 + SO_RCVLOWAT = 0x12 + SO_RCVMARK = 0x4b + SO_RCVTIMEO = 0x14 + SO_RCVTIMEO_NEW = 0x42 + SO_RCVTIMEO_OLD = 0x14 + SO_RESERVE_MEM = 0x49 + SO_REUSEADDR = 0x2 + SO_REUSEPORT = 0xf + SO_RXQ_OVFL = 0x28 + SO_SECURITY_AUTHENTICATION = 0x16 + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 + SO_SELECT_ERR_QUEUE = 0x2d + SO_SNDBUF = 0x7 + SO_SNDBUFFORCE = 0x20 + SO_SNDLOWAT = 0x13 + SO_SNDTIMEO = 0x15 + SO_SNDTIMEO_NEW = 0x43 + SO_SNDTIMEO_OLD = 0x15 + SO_TIMESTAMPING = 0x25 + SO_TIMESTAMPING_NEW = 0x41 + SO_TIMESTAMPING_OLD = 0x25 + SO_TIMESTAMPNS = 0x23 + SO_TIMESTAMPNS_NEW = 0x40 + SO_TIMESTAMPNS_OLD = 0x23 + SO_TIMESTAMP_NEW = 0x3f + SO_TXREHASH = 0x4a + SO_TXTIME = 0x3d + SO_TYPE = 0x3 + SO_WIFI_STATUS = 0x29 + SO_ZEROCOPY = 0x3c + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x540b + TCGETA = 0x5405 + TCGETS = 0x5401 + TCGETS2 = 0x802c542a + TCGETX = 0x5432 + TCSAFLUSH = 0x2 + TCSBRK = 0x5409 + TCSBRKP = 0x5425 + TCSETA = 0x5406 + TCSETAF = 0x5408 + TCSETAW = 0x5407 + TCSETS = 0x5402 + TCSETS2 = 0x402c542b + TCSETSF = 0x5404 + TCSETSF2 = 0x402c542d + TCSETSW = 0x5403 + TCSETSW2 = 0x402c542c + TCSETX = 0x5433 + TCSETXF = 0x5434 + TCSETXW = 0x5435 + TCXONC = 0x540a + TFD_CLOEXEC = 0x80000 + TFD_NONBLOCK = 0x800 + TIOCCBRK = 0x5428 + TIOCCONS = 0x541d + TIOCEXCL = 0x540c + TIOCGDEV = 0x80045432 + TIOCGETD = 0x5424 + TIOCGEXCL = 0x80045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x80285442 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x540f + TIOCGPKT = 0x80045438 + TIOCGPTLCK = 0x80045439 + TIOCGPTN = 0x80045430 + TIOCGPTPEER = 0x5441 + TIOCGRS485 = 0x542e + TIOCGSERIAL = 0x541e + TIOCGSID = 0x5429 + TIOCGSOFTCAR = 0x5419 + TIOCGWINSZ = 0x5413 + TIOCINQ = 0x541b + TIOCLINUX = 0x541c + TIOCMBIC = 0x5417 + TIOCMBIS = 0x5416 + TIOCMGET = 0x5415 + TIOCMIWAIT = 0x545c + TIOCMSET = 0x5418 + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x5422 + TIOCNXCL = 0x540d + TIOCOUTQ = 0x5411 + TIOCPKT = 0x5420 + TIOCSBRK = 0x5427 + TIOCSCTTY = 0x540e + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSER_TEMT = 0x1 + TIOCSETD = 0x5423 + TIOCSIG = 0x40045436 + TIOCSISO7816 = 0xc0285443 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x5410 + TIOCSPTLCK = 0x40045431 + TIOCSRS485 = 0x542f + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x541a + TIOCSTI = 0x5412 + TIOCSWINSZ = 0x5414 + TIOCVHANGUP = 0x5437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x401054d5 + TUNDETACHFILTER = 0x401054d6 + TUNGETDEVNETNS = 0x54e3 + TUNGETFEATURES = 0x800454cf + TUNGETFILTER = 0x801054db + TUNGETIFF = 0x800454d2 + TUNGETSNDBUF = 0x800454d3 + TUNGETVNETBE = 0x800454df + TUNGETVNETHDRSZ = 0x800454d7 + TUNGETVNETLE = 0x800454dd + TUNSETCARRIER = 0x400454e2 + TUNSETDEBUG = 0x400454c9 + TUNSETFILTEREBPF = 0x800454e1 + TUNSETGROUP = 0x400454ce + TUNSETIFF = 0x400454ca + TUNSETIFINDEX = 0x400454da + TUNSETLINK = 0x400454cd + TUNSETNOCSUM = 0x400454c8 + TUNSETOFFLOAD = 0x400454d0 + TUNSETOWNER = 0x400454cc + TUNSETPERSIST = 0x400454cb + TUNSETQUEUE = 0x400454d9 + TUNSETSNDBUF = 0x400454d4 + TUNSETSTEERINGEBPF = 0x800454e0 + TUNSETTXFILTER = 0x400454d1 + TUNSETVNETBE = 0x400454de + TUNSETVNETHDRSZ = 0x400454d8 + TUNSETVNETLE = 0x400454dc + UBI_IOCATT = 0x40186f40 + UBI_IOCDET = 0x40046f41 + UBI_IOCEBCH = 0x40044f02 + UBI_IOCEBER = 0x40044f01 + UBI_IOCEBISMAP = 0x80044f05 + UBI_IOCEBMAP = 0x40084f03 + UBI_IOCEBUNMAP = 0x40044f04 + UBI_IOCMKVOL = 0x40986f00 + UBI_IOCRMVOL = 0x40046f01 + UBI_IOCRNVOL = 0x51106f03 + UBI_IOCRPEB = 0x40046f04 + UBI_IOCRSVOL = 0x400c6f02 + UBI_IOCSETVOLPROP = 0x40104f06 + UBI_IOCSPEB = 0x40046f05 + UBI_IOCVOLCRBLK = 0x40804f07 + UBI_IOCVOLRMBLK = 0x4f08 + UBI_IOCVOLUP = 0x40084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x80045702 + WDIOC_GETPRETIMEOUT = 0x80045709 + WDIOC_GETSTATUS = 0x80045701 + WDIOC_GETSUPPORT = 0x80285700 + WDIOC_GETTEMP = 0x80045703 + WDIOC_GETTIMELEFT = 0x8004570a + WDIOC_GETTIMEOUT = 0x80045707 + WDIOC_KEEPALIVE = 0x80045705 + WDIOC_SETOPTIONS = 0x80045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x80804804 + _HIDIOCGRAWPHYS = 0x80404805 + _HIDIOCGRAWUNIQ = 0x80404808 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x62) + EADDRNOTAVAIL = syscall.Errno(0x63) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x61) + EALREADY = syscall.Errno(0x72) + EBADE = syscall.Errno(0x34) + EBADFD = syscall.Errno(0x4d) + EBADMSG = syscall.Errno(0x4a) + EBADR = syscall.Errno(0x35) + EBADRQC = syscall.Errno(0x38) + EBADSLT = syscall.Errno(0x39) + EBFONT = syscall.Errno(0x3b) + ECANCELED = syscall.Errno(0x7d) + ECHRNG = syscall.Errno(0x2c) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x67) + ECONNREFUSED = syscall.Errno(0x6f) + ECONNRESET = syscall.Errno(0x68) + EDEADLK = syscall.Errno(0x23) + EDEADLOCK = syscall.Errno(0x23) + EDESTADDRREQ = syscall.Errno(0x59) + EDOTDOT = syscall.Errno(0x49) + EDQUOT = syscall.Errno(0x7a) + EHOSTDOWN = syscall.Errno(0x70) + EHOSTUNREACH = syscall.Errno(0x71) + EHWPOISON = syscall.Errno(0x85) + EIDRM = syscall.Errno(0x2b) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x73) + EISCONN = syscall.Errno(0x6a) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x7f) + EKEYREJECTED = syscall.Errno(0x81) + EKEYREVOKED = syscall.Errno(0x80) + EL2HLT = syscall.Errno(0x33) + EL2NSYNC = syscall.Errno(0x2d) + EL3HLT = syscall.Errno(0x2e) + EL3RST = syscall.Errno(0x2f) + ELIBACC = syscall.Errno(0x4f) + ELIBBAD = syscall.Errno(0x50) + ELIBEXEC = syscall.Errno(0x53) + ELIBMAX = syscall.Errno(0x52) + ELIBSCN = syscall.Errno(0x51) + ELNRNG = syscall.Errno(0x30) + ELOOP = syscall.Errno(0x28) + EMEDIUMTYPE = syscall.Errno(0x7c) + EMSGSIZE = syscall.Errno(0x5a) + EMULTIHOP = syscall.Errno(0x48) + ENAMETOOLONG = syscall.Errno(0x24) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x64) + ENETRESET = syscall.Errno(0x66) + ENETUNREACH = syscall.Errno(0x65) + ENOANO = syscall.Errno(0x37) + ENOBUFS = syscall.Errno(0x69) + ENOCSI = syscall.Errno(0x32) + ENODATA = syscall.Errno(0x3d) + ENOKEY = syscall.Errno(0x7e) + ENOLCK = syscall.Errno(0x25) + ENOLINK = syscall.Errno(0x43) + ENOMEDIUM = syscall.Errno(0x7b) + ENOMSG = syscall.Errno(0x2a) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x5c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x26) + ENOTCONN = syscall.Errno(0x6b) + ENOTEMPTY = syscall.Errno(0x27) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x83) + ENOTSOCK = syscall.Errno(0x58) + ENOTSUP = syscall.Errno(0x5f) + ENOTUNIQ = syscall.Errno(0x4c) + EOPNOTSUPP = syscall.Errno(0x5f) + EOVERFLOW = syscall.Errno(0x4b) + EOWNERDEAD = syscall.Errno(0x82) + EPFNOSUPPORT = syscall.Errno(0x60) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x5d) + EPROTOTYPE = syscall.Errno(0x5b) + EREMCHG = syscall.Errno(0x4e) + EREMOTE = syscall.Errno(0x42) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x55) + ERFKILL = syscall.Errno(0x84) + ESHUTDOWN = syscall.Errno(0x6c) + ESOCKTNOSUPPORT = syscall.Errno(0x5e) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x74) + ESTRPIPE = syscall.Errno(0x56) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x6e) + ETOOMANYREFS = syscall.Errno(0x6d) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x31) + EUSERS = syscall.Errno(0x57) + EXFULL = syscall.Errno(0x36) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0x7) + SIGCHLD = syscall.Signal(0x11) + SIGCLD = syscall.Signal(0x11) + SIGCONT = syscall.Signal(0x12) + SIGIO = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x1d) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1e) + SIGSTKFLT = syscall.Signal(0x10) + SIGSTOP = syscall.Signal(0x13) + SIGSYS = syscall.Signal(0x1f) + SIGTSTP = syscall.Signal(0x14) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x17) + SIGUSR1 = syscall.Signal(0xa) + SIGUSR2 = syscall.Signal(0xc) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {35, "EDEADLK", "resource deadlock avoided"}, + {36, "ENAMETOOLONG", "file name too long"}, + {37, "ENOLCK", "no locks available"}, + {38, "ENOSYS", "function not implemented"}, + {39, "ENOTEMPTY", "directory not empty"}, + {40, "ELOOP", "too many levels of symbolic links"}, + {42, "ENOMSG", "no message of desired type"}, + {43, "EIDRM", "identifier removed"}, + {44, "ECHRNG", "channel number out of range"}, + {45, "EL2NSYNC", "level 2 not synchronized"}, + {46, "EL3HLT", "level 3 halted"}, + {47, "EL3RST", "level 3 reset"}, + {48, "ELNRNG", "link number out of range"}, + {49, "EUNATCH", "protocol driver not attached"}, + {50, "ENOCSI", "no CSI structure available"}, + {51, "EL2HLT", "level 2 halted"}, + {52, "EBADE", "invalid exchange"}, + {53, "EBADR", "invalid request descriptor"}, + {54, "EXFULL", "exchange full"}, + {55, "ENOANO", "no anode"}, + {56, "EBADRQC", "invalid request code"}, + {57, "EBADSLT", "invalid slot"}, + {59, "EBFONT", "bad font file format"}, + {60, "ENOSTR", "device not a stream"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of streams resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "EMULTIHOP", "multihop attempted"}, + {73, "EDOTDOT", "RFS specific error"}, + {74, "EBADMSG", "bad message"}, + {75, "EOVERFLOW", "value too large for defined data type"}, + {76, "ENOTUNIQ", "name not unique on network"}, + {77, "EBADFD", "file descriptor in bad state"}, + {78, "EREMCHG", "remote address changed"}, + {79, "ELIBACC", "can not access a needed shared library"}, + {80, "ELIBBAD", "accessing a corrupted shared library"}, + {81, "ELIBSCN", ".lib section in a.out corrupted"}, + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, + {83, "ELIBEXEC", "cannot exec a shared library directly"}, + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {85, "ERESTART", "interrupted system call should be restarted"}, + {86, "ESTRPIPE", "streams pipe error"}, + {87, "EUSERS", "too many users"}, + {88, "ENOTSOCK", "socket operation on non-socket"}, + {89, "EDESTADDRREQ", "destination address required"}, + {90, "EMSGSIZE", "message too long"}, + {91, "EPROTOTYPE", "protocol wrong type for socket"}, + {92, "ENOPROTOOPT", "protocol not available"}, + {93, "EPROTONOSUPPORT", "protocol not supported"}, + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, + {95, "ENOTSUP", "operation not supported"}, + {96, "EPFNOSUPPORT", "protocol family not supported"}, + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, + {98, "EADDRINUSE", "address already in use"}, + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, + {100, "ENETDOWN", "network is down"}, + {101, "ENETUNREACH", "network is unreachable"}, + {102, "ENETRESET", "network dropped connection on reset"}, + {103, "ECONNABORTED", "software caused connection abort"}, + {104, "ECONNRESET", "connection reset by peer"}, + {105, "ENOBUFS", "no buffer space available"}, + {106, "EISCONN", "transport endpoint is already connected"}, + {107, "ENOTCONN", "transport endpoint is not connected"}, + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {109, "ETOOMANYREFS", "too many references: cannot splice"}, + {110, "ETIMEDOUT", "connection timed out"}, + {111, "ECONNREFUSED", "connection refused"}, + {112, "EHOSTDOWN", "host is down"}, + {113, "EHOSTUNREACH", "no route to host"}, + {114, "EALREADY", "operation already in progress"}, + {115, "EINPROGRESS", "operation now in progress"}, + {116, "ESTALE", "stale file handle"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EDQUOT", "disk quota exceeded"}, + {123, "ENOMEDIUM", "no medium found"}, + {124, "EMEDIUMTYPE", "wrong medium type"}, + {125, "ECANCELED", "operation canceled"}, + {126, "ENOKEY", "required key not available"}, + {127, "EKEYEXPIRED", "key has expired"}, + {128, "EKEYREVOKED", "key has been revoked"}, + {129, "EKEYREJECTED", "key was rejected by service"}, + {130, "EOWNERDEAD", "owner died"}, + {131, "ENOTRECOVERABLE", "state not recoverable"}, + {132, "ERFKILL", "operation not possible due to RF-kill"}, + {133, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGBUS", "bus error"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGUSR1", "user defined signal 1"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGUSR2", "user defined signal 2"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGSTKFLT", "stack fault"}, + {17, "SIGCHLD", "child exited"}, + {18, "SIGCONT", "continued"}, + {19, "SIGSTOP", "stopped (signal)"}, + {20, "SIGTSTP", "stopped"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGURG", "urgent I/O condition"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGIO", "I/O possible"}, + {30, "SIGPWR", "power failure"}, + {31, "SIGSYS", "bad system call"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go new file mode 100644 index 0000000..f619252 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -0,0 +1,886 @@ +// mkerrors.sh -Wall -Werror -static -I/tmp/sparc64/include +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build sparc64 && linux +// +build sparc64,linux + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go + +package unix + +import "syscall" + +const ( + ASI_LEON_DFLUSH = 0x11 + ASI_LEON_IFLUSH = 0x10 + ASI_LEON_MMUFLUSH = 0x18 + B1000000 = 0x1008 + B115200 = 0x1002 + B1152000 = 0x1009 + B1500000 = 0x100a + B2000000 = 0x100b + B230400 = 0x1003 + B2500000 = 0x100c + B3000000 = 0x100d + B3500000 = 0x100e + B4000000 = 0x100f + B460800 = 0x1004 + B500000 = 0x1005 + B57600 = 0x1001 + B576000 = 0x1006 + B921600 = 0x1007 + BLKBSZGET = 0x40081270 + BLKBSZSET = 0x80081271 + BLKFLSBUF = 0x20001261 + BLKFRAGET = 0x20001265 + BLKFRASET = 0x20001264 + BLKGETSIZE = 0x20001260 + BLKGETSIZE64 = 0x40081272 + BLKPBSZGET = 0x2000127b + BLKRAGET = 0x20001263 + BLKRASET = 0x20001262 + BLKROGET = 0x2000125e + BLKROSET = 0x2000125d + BLKRRPART = 0x2000125f + BLKSECTGET = 0x20001267 + BLKSECTSET = 0x20001266 + BLKSSZGET = 0x20001268 + BOTHER = 0x1000 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0x100f + CBAUDEX = 0x1000 + CIBAUD = 0x100f0000 + CLOCAL = 0x800 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTOPB = 0x40 + ECCGETLAYOUT = 0x41484d11 + ECCGETSTATS = 0x40104d12 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EFD_CLOEXEC = 0x400000 + EFD_NONBLOCK = 0x4000 + EMT_TAGOVF = 0x1 + EPOLL_CLOEXEC = 0x400000 + EXTPROC = 0x10000 + FF1 = 0x8000 + FFDLY = 0x8000 + FICLONE = 0x80049409 + FICLONERANGE = 0x8020940d + FLUSHO = 0x1000 + FS_IOC_ENABLE_VERITY = 0x80806685 + FS_IOC_GETFLAGS = 0x40086601 + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 + FS_IOC_SETFLAGS = 0x80086602 + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 + F_GETLK = 0x7 + F_GETLK64 = 0x7 + F_GETOWN = 0x5 + F_RDLCK = 0x1 + F_SETLK = 0x8 + F_SETLK64 = 0x8 + F_SETLKW = 0x9 + F_SETLKW64 = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x3 + F_WRLCK = 0x2 + HIDIOCGRAWINFO = 0x40084803 + HIDIOCGRDESC = 0x50044802 + HIDIOCGRDESCSIZE = 0x40044801 + HUPCL = 0x400 + ICANON = 0x2 + IEXTEN = 0x8000 + IN_CLOEXEC = 0x400000 + IN_NONBLOCK = 0x4000 + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 + ISIG = 0x1 + IUCLC = 0x200 + IXOFF = 0x1000 + IXON = 0x400 + MAP_ANON = 0x20 + MAP_ANONYMOUS = 0x20 + MAP_DENYWRITE = 0x800 + MAP_EXECUTABLE = 0x1000 + MAP_GROWSDOWN = 0x200 + MAP_HUGETLB = 0x40000 + MAP_LOCKED = 0x100 + MAP_NONBLOCK = 0x10000 + MAP_NORESERVE = 0x40 + MAP_POPULATE = 0x8000 + MAP_RENAME = 0x20 + MAP_STACK = 0x20000 + MAP_SYNC = 0x80000 + MCL_CURRENT = 0x2000 + MCL_FUTURE = 0x4000 + MCL_ONFAULT = 0x8000 + MEMERASE = 0x80084d02 + MEMERASE64 = 0x80104d14 + MEMGETBADBLOCK = 0x80084d0b + MEMGETINFO = 0x40204d01 + MEMGETOOBSEL = 0x40c84d0a + MEMGETREGIONCOUNT = 0x40044d07 + MEMISLOCKED = 0x40084d17 + MEMLOCK = 0x80084d05 + MEMREAD = 0xc0404d1a + MEMREADOOB = 0xc0104d04 + MEMSETBADBLOCK = 0x80084d0c + MEMUNLOCK = 0x80084d06 + MEMWRITEOOB = 0xc0104d03 + MTDFILEMODE = 0x20004d13 + NFDBITS = 0x40 + NLDLY = 0x100 + NOFLSH = 0x80 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 + OLCUC = 0x2 + ONLCR = 0x4 + OTPERASE = 0x800c4d19 + OTPGETREGIONCOUNT = 0x80044d0e + OTPGETREGIONINFO = 0x800c4d0f + OTPLOCK = 0x400c4d10 + OTPSELECT = 0x40044d0d + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x400000 + O_CREAT = 0x200 + O_DIRECT = 0x100000 + O_DIRECTORY = 0x10000 + O_DSYNC = 0x2000 + O_EXCL = 0x800 + O_FSYNC = 0x802000 + O_LARGEFILE = 0x0 + O_NDELAY = 0x4004 + O_NOATIME = 0x200000 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x20000 + O_NONBLOCK = 0x4000 + O_PATH = 0x1000000 + O_RSYNC = 0x802000 + O_SYNC = 0x802000 + O_TMPFILE = 0x2010000 + O_TRUNC = 0x400 + PARENB = 0x100 + PARODD = 0x200 + PENDIN = 0x4000 + PERF_EVENT_IOC_DISABLE = 0x20002401 + PERF_EVENT_IOC_ENABLE = 0x20002400 + PERF_EVENT_IOC_ID = 0x40082407 + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 + PERF_EVENT_IOC_PERIOD = 0x80082404 + PERF_EVENT_IOC_QUERY_BPF = 0xc008240a + PERF_EVENT_IOC_REFRESH = 0x20002402 + PERF_EVENT_IOC_RESET = 0x20002403 + PERF_EVENT_IOC_SET_BPF = 0x80042408 + PERF_EVENT_IOC_SET_FILTER = 0x80082406 + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 + PPPIOCATTACH = 0x8004743d + PPPIOCATTCHAN = 0x80047438 + PPPIOCBRIDGECHAN = 0x80047435 + PPPIOCCONNECT = 0x8004743a + PPPIOCDETACH = 0x8004743c + PPPIOCDISCONN = 0x20007439 + PPPIOCGASYNCMAP = 0x40047458 + PPPIOCGCHAN = 0x40047437 + PPPIOCGDEBUG = 0x40047441 + PPPIOCGFLAGS = 0x4004745a + PPPIOCGIDLE = 0x4010743f + PPPIOCGIDLE32 = 0x4008743f + PPPIOCGIDLE64 = 0x4010743f + PPPIOCGL2TPSTATS = 0x40487436 + PPPIOCGMRU = 0x40047453 + PPPIOCGRASYNCMAP = 0x40047455 + PPPIOCGUNIT = 0x40047456 + PPPIOCGXASYNCMAP = 0x40207450 + PPPIOCSACTIVE = 0x80107446 + PPPIOCSASYNCMAP = 0x80047457 + PPPIOCSCOMPRESS = 0x8010744d + PPPIOCSDEBUG = 0x80047440 + PPPIOCSFLAGS = 0x80047459 + PPPIOCSMAXCID = 0x80047451 + PPPIOCSMRRU = 0x8004743b + PPPIOCSMRU = 0x80047452 + PPPIOCSNPMODE = 0x8008744b + PPPIOCSPASS = 0x80107447 + PPPIOCSRASYNCMAP = 0x80047454 + PPPIOCSXASYNCMAP = 0x8020744f + PPPIOCUNBRIDGECHAN = 0x20007434 + PPPIOCXFERUNIT = 0x2000744e + PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFPAREGS = 0x14 + PTRACE_GETFPREGS = 0xe + PTRACE_GETFPREGS64 = 0x19 + PTRACE_GETREGS64 = 0x16 + PTRACE_READDATA = 0x10 + PTRACE_READTEXT = 0x12 + PTRACE_SETFPAREGS = 0x15 + PTRACE_SETFPREGS = 0xf + PTRACE_SETFPREGS64 = 0x1a + PTRACE_SETREGS64 = 0x17 + PTRACE_SPARC_DETACH = 0xb + PTRACE_WRITEDATA = 0x11 + PTRACE_WRITETEXT = 0x13 + PT_FP = 0x48 + PT_G0 = 0x10 + PT_G1 = 0x14 + PT_G2 = 0x18 + PT_G3 = 0x1c + PT_G4 = 0x20 + PT_G5 = 0x24 + PT_G6 = 0x28 + PT_G7 = 0x2c + PT_I0 = 0x30 + PT_I1 = 0x34 + PT_I2 = 0x38 + PT_I3 = 0x3c + PT_I4 = 0x40 + PT_I5 = 0x44 + PT_I6 = 0x48 + PT_I7 = 0x4c + PT_NPC = 0x8 + PT_PC = 0x4 + PT_PSR = 0x0 + PT_REGS_MAGIC = 0x57ac6c00 + PT_TNPC = 0x90 + PT_TPC = 0x88 + PT_TSTATE = 0x80 + PT_V9_FP = 0x70 + PT_V9_G0 = 0x0 + PT_V9_G1 = 0x8 + PT_V9_G2 = 0x10 + PT_V9_G3 = 0x18 + PT_V9_G4 = 0x20 + PT_V9_G5 = 0x28 + PT_V9_G6 = 0x30 + PT_V9_G7 = 0x38 + PT_V9_I0 = 0x40 + PT_V9_I1 = 0x48 + PT_V9_I2 = 0x50 + PT_V9_I3 = 0x58 + PT_V9_I4 = 0x60 + PT_V9_I5 = 0x68 + PT_V9_I6 = 0x70 + PT_V9_I7 = 0x78 + PT_V9_MAGIC = 0x9c + PT_V9_TNPC = 0x90 + PT_V9_TPC = 0x88 + PT_V9_TSTATE = 0x80 + PT_V9_Y = 0x98 + PT_WIM = 0x10 + PT_Y = 0xc + RLIMIT_AS = 0x9 + RLIMIT_MEMLOCK = 0x8 + RLIMIT_NOFILE = 0x6 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RNDADDENTROPY = 0x80085203 + RNDADDTOENTCNT = 0x80045201 + RNDCLEARPOOL = 0x20005206 + RNDGETENTCNT = 0x40045200 + RNDGETPOOL = 0x40085202 + RNDRESEEDCRNG = 0x20005207 + RNDZAPENTCNT = 0x20005204 + RTC_AIE_OFF = 0x20007002 + RTC_AIE_ON = 0x20007001 + RTC_ALM_READ = 0x40247008 + RTC_ALM_SET = 0x80247007 + RTC_EPOCH_READ = 0x4008700d + RTC_EPOCH_SET = 0x8008700e + RTC_IRQP_READ = 0x4008700b + RTC_IRQP_SET = 0x8008700c + RTC_PARAM_GET = 0x80187013 + RTC_PARAM_SET = 0x80187014 + RTC_PIE_OFF = 0x20007006 + RTC_PIE_ON = 0x20007005 + RTC_PLL_GET = 0x40207011 + RTC_PLL_SET = 0x80207012 + RTC_RD_TIME = 0x40247009 + RTC_SET_TIME = 0x8024700a + RTC_UIE_OFF = 0x20007004 + RTC_UIE_ON = 0x20007003 + RTC_VL_CLR = 0x20007014 + RTC_VL_READ = 0x40047013 + RTC_WIE_OFF = 0x20007010 + RTC_WIE_ON = 0x2000700f + RTC_WKALM_RD = 0x40287010 + RTC_WKALM_SET = 0x8028700f + SCM_TIMESTAMPING = 0x23 + SCM_TIMESTAMPING_OPT_STATS = 0x38 + SCM_TIMESTAMPING_PKTINFO = 0x3c + SCM_TIMESTAMPNS = 0x21 + SCM_TXTIME = 0x3f + SCM_WIFI_STATUS = 0x25 + SFD_CLOEXEC = 0x400000 + SFD_NONBLOCK = 0x4000 + SIOCATMARK = 0x8905 + SIOCGPGRP = 0x8904 + SIOCGSTAMPNS_NEW = 0x40108907 + SIOCGSTAMP_NEW = 0x40108906 + SIOCINQ = 0x4004667f + SIOCOUTQ = 0x40047473 + SIOCSPGRP = 0x8902 + SOCK_CLOEXEC = 0x400000 + SOCK_DGRAM = 0x2 + SOCK_NONBLOCK = 0x4000 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SO_ACCEPTCONN = 0x8000 + SO_ATTACH_BPF = 0x34 + SO_ATTACH_REUSEPORT_CBPF = 0x35 + SO_ATTACH_REUSEPORT_EBPF = 0x36 + SO_BINDTODEVICE = 0xd + SO_BINDTOIFINDEX = 0x41 + SO_BPF_EXTENSIONS = 0x32 + SO_BROADCAST = 0x20 + SO_BSDCOMPAT = 0x400 + SO_BUF_LOCK = 0x51 + SO_BUSY_POLL = 0x30 + SO_BUSY_POLL_BUDGET = 0x49 + SO_CNX_ADVICE = 0x37 + SO_COOKIE = 0x3b + SO_DETACH_REUSEPORT_BPF = 0x47 + SO_DOMAIN = 0x1029 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_INCOMING_CPU = 0x33 + SO_INCOMING_NAPI_ID = 0x3a + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOCK_FILTER = 0x28 + SO_MARK = 0x22 + SO_MAX_PACING_RATE = 0x31 + SO_MEMINFO = 0x39 + SO_NETNS_COOKIE = 0x50 + SO_NOFCS = 0x27 + SO_OOBINLINE = 0x100 + SO_PASSCRED = 0x2 + SO_PASSSEC = 0x1f + SO_PEEK_OFF = 0x26 + SO_PEERCRED = 0x40 + SO_PEERGROUPS = 0x3d + SO_PEERSEC = 0x1e + SO_PREFER_BUSY_POLL = 0x48 + SO_PROTOCOL = 0x1028 + SO_RCVBUF = 0x1002 + SO_RCVBUFFORCE = 0x100b + SO_RCVLOWAT = 0x800 + SO_RCVMARK = 0x54 + SO_RCVTIMEO = 0x2000 + SO_RCVTIMEO_NEW = 0x44 + SO_RCVTIMEO_OLD = 0x2000 + SO_RESERVE_MEM = 0x52 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RXQ_OVFL = 0x24 + SO_SECURITY_AUTHENTICATION = 0x5001 + SO_SECURITY_ENCRYPTION_NETWORK = 0x5004 + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x5002 + SO_SELECT_ERR_QUEUE = 0x29 + SO_SNDBUF = 0x1001 + SO_SNDBUFFORCE = 0x100a + SO_SNDLOWAT = 0x1000 + SO_SNDTIMEO = 0x4000 + SO_SNDTIMEO_NEW = 0x45 + SO_SNDTIMEO_OLD = 0x4000 + SO_TIMESTAMPING = 0x23 + SO_TIMESTAMPING_NEW = 0x43 + SO_TIMESTAMPING_OLD = 0x23 + SO_TIMESTAMPNS = 0x21 + SO_TIMESTAMPNS_NEW = 0x42 + SO_TIMESTAMPNS_OLD = 0x21 + SO_TIMESTAMP_NEW = 0x46 + SO_TXREHASH = 0x53 + SO_TXTIME = 0x3f + SO_TYPE = 0x1008 + SO_WIFI_STATUS = 0x25 + SO_ZEROCOPY = 0x3e + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x20005407 + TCGETA = 0x40125401 + TCGETS = 0x40245408 + TCGETS2 = 0x402c540c + TCSAFLUSH = 0x2 + TCSBRK = 0x20005405 + TCSBRKP = 0x5425 + TCSETA = 0x80125402 + TCSETAF = 0x80125404 + TCSETAW = 0x80125403 + TCSETS = 0x80245409 + TCSETS2 = 0x802c540d + TCSETSF = 0x8024540b + TCSETSF2 = 0x802c540f + TCSETSW = 0x8024540a + TCSETSW2 = 0x802c540e + TCXONC = 0x20005406 + TFD_CLOEXEC = 0x400000 + TFD_NONBLOCK = 0x4000 + TIOCCBRK = 0x2000747a + TIOCCONS = 0x20007424 + TIOCEXCL = 0x2000740d + TIOCGDEV = 0x40045432 + TIOCGETD = 0x40047400 + TIOCGEXCL = 0x40045440 + TIOCGICOUNT = 0x545d + TIOCGISO7816 = 0x40285443 + TIOCGLCKTRMIOS = 0x5456 + TIOCGPGRP = 0x40047483 + TIOCGPKT = 0x40045438 + TIOCGPTLCK = 0x40045439 + TIOCGPTN = 0x40047486 + TIOCGPTPEER = 0x20007489 + TIOCGRS485 = 0x40205441 + TIOCGSERIAL = 0x541e + TIOCGSID = 0x40047485 + TIOCGSOFTCAR = 0x40047464 + TIOCGWINSZ = 0x40087468 + TIOCINQ = 0x4004667f + TIOCLINUX = 0x541c + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMIWAIT = 0x545c + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007484 + TIOCSERCONFIG = 0x5453 + TIOCSERGETLSR = 0x5459 + TIOCSERGETMULTI = 0x545a + TIOCSERGSTRUCT = 0x5458 + TIOCSERGWILD = 0x5454 + TIOCSERSETMULTI = 0x545b + TIOCSERSWILD = 0x5455 + TIOCSETD = 0x80047401 + TIOCSIG = 0x80047488 + TIOCSISO7816 = 0xc0285444 + TIOCSLCKTRMIOS = 0x5457 + TIOCSPGRP = 0x80047482 + TIOCSPTLCK = 0x80047487 + TIOCSRS485 = 0xc0205442 + TIOCSSERIAL = 0x541f + TIOCSSOFTCAR = 0x80047465 + TIOCSTART = 0x2000746e + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCVHANGUP = 0x20005437 + TOSTOP = 0x100 + TUNATTACHFILTER = 0x801054d5 + TUNDETACHFILTER = 0x801054d6 + TUNGETDEVNETNS = 0x200054e3 + TUNGETFEATURES = 0x400454cf + TUNGETFILTER = 0x401054db + TUNGETIFF = 0x400454d2 + TUNGETSNDBUF = 0x400454d3 + TUNGETVNETBE = 0x400454df + TUNGETVNETHDRSZ = 0x400454d7 + TUNGETVNETLE = 0x400454dd + TUNSETCARRIER = 0x800454e2 + TUNSETDEBUG = 0x800454c9 + TUNSETFILTEREBPF = 0x400454e1 + TUNSETGROUP = 0x800454ce + TUNSETIFF = 0x800454ca + TUNSETIFINDEX = 0x800454da + TUNSETLINK = 0x800454cd + TUNSETNOCSUM = 0x800454c8 + TUNSETOFFLOAD = 0x800454d0 + TUNSETOWNER = 0x800454cc + TUNSETPERSIST = 0x800454cb + TUNSETQUEUE = 0x800454d9 + TUNSETSNDBUF = 0x800454d4 + TUNSETSTEERINGEBPF = 0x400454e0 + TUNSETTXFILTER = 0x800454d1 + TUNSETVNETBE = 0x800454de + TUNSETVNETHDRSZ = 0x800454d8 + TUNSETVNETLE = 0x800454dc + UBI_IOCATT = 0x80186f40 + UBI_IOCDET = 0x80046f41 + UBI_IOCEBCH = 0x80044f02 + UBI_IOCEBER = 0x80044f01 + UBI_IOCEBISMAP = 0x40044f05 + UBI_IOCEBMAP = 0x80084f03 + UBI_IOCEBUNMAP = 0x80044f04 + UBI_IOCMKVOL = 0x80986f00 + UBI_IOCRMVOL = 0x80046f01 + UBI_IOCRNVOL = 0x91106f03 + UBI_IOCRPEB = 0x80046f04 + UBI_IOCRSVOL = 0x800c6f02 + UBI_IOCSETVOLPROP = 0x80104f06 + UBI_IOCSPEB = 0x80046f05 + UBI_IOCVOLCRBLK = 0x80804f07 + UBI_IOCVOLRMBLK = 0x20004f08 + UBI_IOCVOLUP = 0x80084f00 + VDISCARD = 0xd + VEOF = 0x4 + VEOL = 0xb + VEOL2 = 0x10 + VMIN = 0x6 + VREPRINT = 0xc + VSTART = 0x8 + VSTOP = 0x9 + VSUSP = 0xa + VSWTC = 0x7 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WDIOC_GETBOOTSTATUS = 0x40045702 + WDIOC_GETPRETIMEOUT = 0x40045709 + WDIOC_GETSTATUS = 0x40045701 + WDIOC_GETSUPPORT = 0x40285700 + WDIOC_GETTEMP = 0x40045703 + WDIOC_GETTIMELEFT = 0x4004570a + WDIOC_GETTIMEOUT = 0x40045707 + WDIOC_KEEPALIVE = 0x40045705 + WDIOC_SETOPTIONS = 0x40045704 + WORDSIZE = 0x40 + XCASE = 0x4 + XTABS = 0x1800 + _HIDIOCGRAWNAME = 0x40804804 + _HIDIOCGRAWPHYS = 0x40404805 + _HIDIOCGRAWUNIQ = 0x40404808 + __TIOCFLUSH = 0x80047410 +) + +// Errors +const ( + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EADV = syscall.Errno(0x53) + EAFNOSUPPORT = syscall.Errno(0x2f) + EALREADY = syscall.Errno(0x25) + EBADE = syscall.Errno(0x66) + EBADFD = syscall.Errno(0x5d) + EBADMSG = syscall.Errno(0x4c) + EBADR = syscall.Errno(0x67) + EBADRQC = syscall.Errno(0x6a) + EBADSLT = syscall.Errno(0x6b) + EBFONT = syscall.Errno(0x6d) + ECANCELED = syscall.Errno(0x7f) + ECHRNG = syscall.Errno(0x5e) + ECOMM = syscall.Errno(0x55) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0x4e) + EDEADLOCK = syscall.Errno(0x6c) + EDESTADDRREQ = syscall.Errno(0x27) + EDOTDOT = syscall.Errno(0x58) + EDQUOT = syscall.Errno(0x45) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EHWPOISON = syscall.Errno(0x87) + EIDRM = syscall.Errno(0x4d) + EILSEQ = syscall.Errno(0x7a) + EINPROGRESS = syscall.Errno(0x24) + EISCONN = syscall.Errno(0x38) + EISNAM = syscall.Errno(0x78) + EKEYEXPIRED = syscall.Errno(0x81) + EKEYREJECTED = syscall.Errno(0x83) + EKEYREVOKED = syscall.Errno(0x82) + EL2HLT = syscall.Errno(0x65) + EL2NSYNC = syscall.Errno(0x5f) + EL3HLT = syscall.Errno(0x60) + EL3RST = syscall.Errno(0x61) + ELIBACC = syscall.Errno(0x72) + ELIBBAD = syscall.Errno(0x70) + ELIBEXEC = syscall.Errno(0x6e) + ELIBMAX = syscall.Errno(0x7b) + ELIBSCN = syscall.Errno(0x7c) + ELNRNG = syscall.Errno(0x62) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x7e) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x57) + ENAMETOOLONG = syscall.Errno(0x3f) + ENAVAIL = syscall.Errno(0x77) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENOANO = syscall.Errno(0x69) + ENOBUFS = syscall.Errno(0x37) + ENOCSI = syscall.Errno(0x64) + ENODATA = syscall.Errno(0x6f) + ENOKEY = syscall.Errno(0x80) + ENOLCK = syscall.Errno(0x4f) + ENOLINK = syscall.Errno(0x52) + ENOMEDIUM = syscall.Errno(0x7d) + ENOMSG = syscall.Errno(0x4b) + ENONET = syscall.Errno(0x50) + ENOPKG = syscall.Errno(0x71) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSR = syscall.Errno(0x4a) + ENOSTR = syscall.Errno(0x48) + ENOSYS = syscall.Errno(0x5a) + ENOTCONN = syscall.Errno(0x39) + ENOTEMPTY = syscall.Errno(0x42) + ENOTNAM = syscall.Errno(0x76) + ENOTRECOVERABLE = syscall.Errno(0x85) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x2d) + ENOTUNIQ = syscall.Errno(0x73) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x5c) + EOWNERDEAD = syscall.Errno(0x84) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPROCLIM = syscall.Errno(0x43) + EPROTO = syscall.Errno(0x56) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + EREMCHG = syscall.Errno(0x59) + EREMOTE = syscall.Errno(0x47) + EREMOTEIO = syscall.Errno(0x79) + ERESTART = syscall.Errno(0x74) + ERFKILL = syscall.Errno(0x86) + ERREMOTE = syscall.Errno(0x51) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESRMNT = syscall.Errno(0x54) + ESTALE = syscall.Errno(0x46) + ESTRPIPE = syscall.Errno(0x5b) + ETIME = syscall.Errno(0x49) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + EUCLEAN = syscall.Errno(0x75) + EUNATCH = syscall.Errno(0x63) + EUSERS = syscall.Errno(0x44) + EXFULL = syscall.Errno(0x68) +) + +// Signals +const ( + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGIO = syscall.Signal(0x17) + SIGLOST = syscall.Signal(0x1d) + SIGPOLL = syscall.Signal(0x17) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x1d) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device or resource busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "invalid cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "numerical result out of range"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "ENOTSUP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "cannot assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "transport endpoint is already connected"}, + {57, "ENOTCONN", "transport endpoint is not connected"}, + {58, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, + {59, "ETOOMANYREFS", "too many references: cannot splice"}, + {60, "ETIMEDOUT", "connection timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale file handle"}, + {71, "EREMOTE", "object is remote"}, + {72, "ENOSTR", "device not a stream"}, + {73, "ETIME", "timer expired"}, + {74, "ENOSR", "out of streams resources"}, + {75, "ENOMSG", "no message of desired type"}, + {76, "EBADMSG", "bad message"}, + {77, "EIDRM", "identifier removed"}, + {78, "EDEADLK", "resource deadlock avoided"}, + {79, "ENOLCK", "no locks available"}, + {80, "ENONET", "machine is not on the network"}, + {81, "ERREMOTE", "unknown error 81"}, + {82, "ENOLINK", "link has been severed"}, + {83, "EADV", "advertise error"}, + {84, "ESRMNT", "srmount error"}, + {85, "ECOMM", "communication error on send"}, + {86, "EPROTO", "protocol error"}, + {87, "EMULTIHOP", "multihop attempted"}, + {88, "EDOTDOT", "RFS specific error"}, + {89, "EREMCHG", "remote address changed"}, + {90, "ENOSYS", "function not implemented"}, + {91, "ESTRPIPE", "streams pipe error"}, + {92, "EOVERFLOW", "value too large for defined data type"}, + {93, "EBADFD", "file descriptor in bad state"}, + {94, "ECHRNG", "channel number out of range"}, + {95, "EL2NSYNC", "level 2 not synchronized"}, + {96, "EL3HLT", "level 3 halted"}, + {97, "EL3RST", "level 3 reset"}, + {98, "ELNRNG", "link number out of range"}, + {99, "EUNATCH", "protocol driver not attached"}, + {100, "ENOCSI", "no CSI structure available"}, + {101, "EL2HLT", "level 2 halted"}, + {102, "EBADE", "invalid exchange"}, + {103, "EBADR", "invalid request descriptor"}, + {104, "EXFULL", "exchange full"}, + {105, "ENOANO", "no anode"}, + {106, "EBADRQC", "invalid request code"}, + {107, "EBADSLT", "invalid slot"}, + {108, "EDEADLOCK", "file locking deadlock error"}, + {109, "EBFONT", "bad font file format"}, + {110, "ELIBEXEC", "cannot exec a shared library directly"}, + {111, "ENODATA", "no data available"}, + {112, "ELIBBAD", "accessing a corrupted shared library"}, + {113, "ENOPKG", "package not installed"}, + {114, "ELIBACC", "can not access a needed shared library"}, + {115, "ENOTUNIQ", "name not unique on network"}, + {116, "ERESTART", "interrupted system call should be restarted"}, + {117, "EUCLEAN", "structure needs cleaning"}, + {118, "ENOTNAM", "not a XENIX named type file"}, + {119, "ENAVAIL", "no XENIX semaphores available"}, + {120, "EISNAM", "is a named type file"}, + {121, "EREMOTEIO", "remote I/O error"}, + {122, "EILSEQ", "invalid or incomplete multibyte or wide character"}, + {123, "ELIBMAX", "attempting to link in too many shared libraries"}, + {124, "ELIBSCN", ".lib section in a.out corrupted"}, + {125, "ENOMEDIUM", "no medium found"}, + {126, "EMEDIUMTYPE", "wrong medium type"}, + {127, "ECANCELED", "operation canceled"}, + {128, "ENOKEY", "required key not available"}, + {129, "EKEYEXPIRED", "key has expired"}, + {130, "EKEYREVOKED", "key has been revoked"}, + {131, "EKEYREJECTED", "key was rejected by service"}, + {132, "EOWNERDEAD", "owner died"}, + {133, "ENOTRECOVERABLE", "state not recoverable"}, + {134, "ERFKILL", "operation not possible due to RF-kill"}, + {135, "EHWPOISON", "memory page has hardware error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/breakpoint trap"}, + {6, "SIGABRT", "aborted"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "CPU time limit exceeded"}, + {25, "SIGXFSZ", "file size limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGLOST", "power failure"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go new file mode 100644 index 0000000..72f7420 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go @@ -0,0 +1,1780 @@ +// mkerrors.sh -m32 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && netbsd +// +build 386,netbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m32 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x1c + AF_BLUETOOTH = 0x1f + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x20 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x23 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OROUTE = 0x11 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x22 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ARPHRD_ARCNET = 0x7 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + ARPHRD_STRIP = 0x17 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427d + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0084277 + BIOCGETIF = 0x4090426b + BIOCGFEEDBACK = 0x4004427c + BIOCGHDRCMPLT = 0x40044274 + BIOCGRTIMEOUT = 0x400c427b + BIOCGSEESENT = 0x40044278 + BIOCGSTATS = 0x4080426f + BIOCGSTATSOLD = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044276 + BIOCSETF = 0x80084267 + BIOCSETIF = 0x8090426c + BIOCSFEEDBACK = 0x8004427d + BIOCSHDRCMPLT = 0x80044275 + BIOCSRTIMEOUT = 0x800c427a + BIOCSSEESENT = 0x80044279 + BIOCSTCPF = 0x80084272 + BIOCSUDPF = 0x80084273 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALIGNMENT32 = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DFLTBUFSIZE = 0x100000 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x1000000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLONE_CSIGNAL = 0xff + CLONE_FILES = 0x400 + CLONE_FS = 0x200 + CLONE_PID = 0x1000 + CLONE_PTRACE = 0x2000 + CLONE_SIGHAND = 0x800 + CLONE_VFORK = 0x4000 + CLONE_VM = 0x100 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + CTL_QUERY = -0x2 + DIOCBSFLUSH = 0x20006478 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HDLC = 0x10 + DLT_HHDLC = 0x79 + DLT_HIPPI = 0xf + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPNET = 0xe2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RAWAF_MASK = 0x2240000 + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_WIHART = 0xdf + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMUL_LINUX = 0x1 + EMUL_LINUX32 = 0x5 + EMUL_MAXID = 0x6 + EN_SW_CTL_INF = 0x1000 + EN_SW_CTL_PREC = 0x300 + EN_SW_CTL_ROUND = 0xc00 + EN_SW_DATACHAIN = 0x80 + EN_SW_DENORM = 0x2 + EN_SW_INVOP = 0x1 + EN_SW_OVERFLOW = 0x8 + EN_SW_PRECLOSS = 0x20 + EN_SW_UNDERFLOW = 0x10 + EN_SW_ZERODIV = 0x4 + ETHERCAP_JUMBO_MTU = 0x4 + ETHERCAP_VLAN_HWTAGGING = 0x2 + ETHERCAP_VLAN_MTU = 0x1 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERMTU_JUMBO = 0x2328 + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PAE = 0x888e + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOWPROTOCOLS = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_LEN = 0x5ee + ETHER_MAX_LEN_JUMBO = 0x233a + ETHER_MIN_LEN = 0x40 + ETHER_PPPOE_ENCAP_LEN = 0x8 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = 0x2 + EVFILT_PROC = 0x4 + EVFILT_READ = 0x0 + EVFILT_SIGNAL = 0x5 + EVFILT_SYSCOUNT = 0x7 + EVFILT_TIMER = 0x6 + EVFILT_VNODE = 0x3 + EVFILT_WRITE = 0x1 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_CMD_START = 0x1 + EXTATTR_CMD_STOP = 0x2 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x100 + FLUSHO = 0x800000 + F_CLOSEM = 0xa + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xc + F_FSCTL = -0x80000000 + F_FSDIRMASK = 0x70000000 + F_FSIN = 0x10000000 + F_FSINOUT = 0x30000000 + F_FSOUT = 0x20000000 + F_FSPRIV = 0x8000 + F_FSVOID = 0x40000000 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETNOSIGPIPE = 0xd + F_GETOWN = 0x5 + F_MAXFD = 0xb + F_OK = 0x0 + F_PARAM_MASK = 0xfff + F_PARAM_MAX = 0xfff + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETNOSIGPIPE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFA_ROUTE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8f52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf8 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf2 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf1 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_STF = 0xd7 + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IPV6_ICMP = 0x3a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MOBILE = 0x37 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_VRRP = 0x70 + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_EF = 0x8000 + IP_ERRORMTU = 0x15 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x16 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINFRAGSIZE = 0x45 + IP_MINTTL = 0x18 + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x17 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ALIGNMENT_16MB = 0x18000000 + MAP_ALIGNMENT_1TB = 0x28000000 + MAP_ALIGNMENT_256TB = 0x30000000 + MAP_ALIGNMENT_4GB = 0x20000000 + MAP_ALIGNMENT_64KB = 0x10000000 + MAP_ALIGNMENT_64PB = 0x38000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_INHERIT = 0x80 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_DEFAULT = 0x1 + MAP_INHERIT_DONATE_COPY = 0x3 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_SHARED = 0x1 + MAP_STACK = 0x2000 + MAP_TRYFIXED = 0x400 + MAP_WIRED = 0x800 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_BASIC_FLAGS = 0xe782807f + MNT_DEFEXPORTED = 0x200 + MNT_DISCARD = 0x800000 + MNT_EXKERB = 0x800 + MNT_EXNORESPORT = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x10000000 + MNT_EXRDONLY = 0x80 + MNT_EXTATTR = 0x1000000 + MNT_FORCE = 0x80000 + MNT_GETARGS = 0x400000 + MNT_IGNORE = 0x100000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_LOG = 0x2000000 + MNT_NOATIME = 0x4000000 + MNT_NOCOREDUMP = 0x8000 + MNT_NODEV = 0x10 + MNT_NODEVMTIME = 0x40000000 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_OP_FLAGS = 0x4d0000 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELATIME = 0x20000 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x80000000 + MNT_SYMPERM = 0x20000000 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0xff90ffff + MNT_WAIT = 0x1 + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CONTROLMBUF = 0x2000000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_IOVUSRSPACE = 0x4000000 + MSG_LENUSRSPACE = 0x8000000 + MSG_MCAST = 0x200 + MSG_NAMEMBUF = 0x1000000 + MSG_NBIO = 0x1000 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_USERFLAGS = 0xffffff + MSG_WAITALL = 0x40 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x4 + NAME_MAX = 0x1ff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x5 + NET_RT_MAXID = 0x6 + NET_RT_OIFLIST = 0x4 + NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OFIOGETBMAP = 0xc004667a + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + O_ACCMODE = 0x3 + O_ALT_IO = 0x40000 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x400000 + O_CREAT = 0x200 + O_DIRECT = 0x80000 + O_DIRECTORY = 0x200000 + O_DSYNC = 0x10000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_NOSIGPIPE = 0x1000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x20000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PRI_IOFLUSH = 0x7c + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x9 + RTAX_NETMASK = 0x2 + RTAX_TAG = 0x8 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTA_TAG = 0x100 + RTF_ANNOUNCE = 0x20000 + RTF_BLACKHOLE = 0x1000 + RTF_CLONED = 0x2000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_REJECT = 0x8 + RTF_SRC = 0x10000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_CHGADDR = 0x15 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x11 + RTM_IFANNOUNCE = 0x10 + RTM_IFINFO = 0x14 + RTM_LLINFO_UPD = 0x13 + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OIFINFO = 0xf + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_OOIFINFO = 0xe + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_SETGATE = 0x12 + RTM_VERSION = 0x4 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x4 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x8 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80906931 + SIOCADDRT = 0x8030720a + SIOCAIFADDR = 0x8040691a + SIOCALIFADDR = 0x8118691c + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80906932 + SIOCDELRT = 0x8030720b + SIOCDIFADDR = 0x80906919 + SIOCDIFPHYADDR = 0x80906949 + SIOCDLIFADDR = 0x8118691e + SIOCGDRVSPEC = 0xc01c697b + SIOCGETPFSYNC = 0xc09069f8 + SIOCGETSGCNT = 0xc0147534 + SIOCGETVIFCNT = 0xc0147533 + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = 0xc0906921 + SIOCGIFADDRPREF = 0xc0946920 + SIOCGIFALIAS = 0xc040691b + SIOCGIFBRDADDR = 0xc0906923 + SIOCGIFCAP = 0xc0206976 + SIOCGIFCONF = 0xc0086926 + SIOCGIFDATA = 0xc0946985 + SIOCGIFDLT = 0xc0906977 + SIOCGIFDSTADDR = 0xc0906922 + SIOCGIFFLAGS = 0xc0906911 + SIOCGIFGENERIC = 0xc090693a + SIOCGIFMEDIA = 0xc0286936 + SIOCGIFMETRIC = 0xc0906917 + SIOCGIFMTU = 0xc090697e + SIOCGIFNETMASK = 0xc0906925 + SIOCGIFPDSTADDR = 0xc0906948 + SIOCGIFPSRCADDR = 0xc0906947 + SIOCGLIFADDR = 0xc118691d + SIOCGLIFPHYADDR = 0xc118694b + SIOCGLINKSTR = 0xc01c6987 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGVH = 0xc0906983 + SIOCIFCREATE = 0x8090697a + SIOCIFDESTROY = 0x80906979 + SIOCIFGCLONERS = 0xc00c6978 + SIOCINITIFADDR = 0xc0446984 + SIOCSDRVSPEC = 0x801c697b + SIOCSETPFSYNC = 0x809069f7 + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8090690c + SIOCSIFADDRPREF = 0x8094691f + SIOCSIFBRDADDR = 0x80906913 + SIOCSIFCAP = 0x80206975 + SIOCSIFDSTADDR = 0x8090690e + SIOCSIFFLAGS = 0x80906910 + SIOCSIFGENERIC = 0x80906939 + SIOCSIFMEDIA = 0xc0906935 + SIOCSIFMETRIC = 0x80906918 + SIOCSIFMTU = 0x8090697f + SIOCSIFNETMASK = 0x80906916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSLIFPHYADDR = 0x8118694a + SIOCSLINKSTR = 0x801c6988 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSVH = 0xc0906982 + SIOCZIFDATA = 0xc0946986 + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_FLAGS_MASK = 0xf0000000 + SOCK_NONBLOCK = 0x20000000 + SOCK_NOSIGPIPE = 0x40000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NOHEADER = 0x100a + SO_NOSIGPIPE = 0x800 + SO_OOBINLINE = 0x100 + SO_OVERFLOWED = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x100c + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x100b + SO_TIMESTAMP = 0x2000 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SYSCTL_VERSION = 0x1000000 + SYSCTL_VERS_0 = 0x0 + SYSCTL_VERS_1 = 0x1000000 + SYSCTL_VERS_MASK = 0xff000000 + S_ARCH1 = 0x10000 + S_ARCH2 = 0x20000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + S_LOGIN_SET = 0x1 + TCIFLUSH = 0x1 + TCIOFLUSH = 0x3 + TCOFLUSH = 0x2 + TCP_CONGCTL = 0x20 + TCP_KEEPCNT = 0x6 + TCP_KEEPIDLE = 0x3 + TCP_KEEPINIT = 0x7 + TCP_KEEPINTVL = 0x5 + TCP_MAXBURST = 0x4 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCSAFLUSH = 0x2 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x400c7458 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CDTRCTS = 0x10 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGLINED = 0x40207442 + TIOCGPGRP = 0x40047477 + TIOCGQSIZE = 0x40047481 + TIOCGRANTPT = 0x20007447 + TIOCGSID = 0x40047463 + TIOCGSIZE = 0x40087468 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMGET = 0x40287446 + TIOCPTSNAME = 0x40287448 + TIOCRCVFRAME = 0x80047445 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x2000745f + TIOCSLINED = 0x80207443 + TIOCSPGRP = 0x80047476 + TIOCSQSIZE = 0x80047480 + TIOCSSIZE = 0x80087467 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x80047465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCXMTFRAME = 0x80047444 + TOSTOP = 0x400000 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALL = 0x8 + WALLSIG = 0x8 + WALTSIG = 0x4 + WCLONE = 0x4 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WNOWAIT = 0x10000 + WNOZOMBIE = 0x20000 + WOPTSCHECKED = 0x40000 + WSTOPPED = 0x7f + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x58) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x57) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x55) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x60) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5e) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x5d) + ENOBUFS = syscall.Errno(0x37) + ENODATA = syscall.Errno(0x59) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5f) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x5a) + ENOSTR = syscall.Errno(0x5b) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x56) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x60) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIME = syscall.Errno(0x5c) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x20) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large or too small"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol option not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "connection timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "EILSEQ", "illegal byte sequence"}, + {86, "ENOTSUP", "not supported"}, + {87, "ECANCELED", "operation Canceled"}, + {88, "EBADMSG", "bad or Corrupt message"}, + {89, "ENODATA", "no message available"}, + {90, "ENOSR", "no STREAM resources"}, + {91, "ENOSTR", "not a STREAM"}, + {92, "ETIME", "STREAM ioctl timeout"}, + {93, "ENOATTR", "attribute not found"}, + {94, "EMULTIHOP", "multihop attempted"}, + {95, "ENOLINK", "link has been severed"}, + {96, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGPWR", "power fail/restart"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go new file mode 100644 index 0000000..8d4eb0c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go @@ -0,0 +1,1770 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && netbsd +// +build amd64,netbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x1c + AF_BLUETOOTH = 0x1f + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x20 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x23 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OROUTE = 0x11 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x22 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ARPHRD_ARCNET = 0x7 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + ARPHRD_STRIP = 0x17 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427d + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0104277 + BIOCGETIF = 0x4090426b + BIOCGFEEDBACK = 0x4004427c + BIOCGHDRCMPLT = 0x40044274 + BIOCGRTIMEOUT = 0x4010427b + BIOCGSEESENT = 0x40044278 + BIOCGSTATS = 0x4080426f + BIOCGSTATSOLD = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044276 + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8090426c + BIOCSFEEDBACK = 0x8004427d + BIOCSHDRCMPLT = 0x80044275 + BIOCSRTIMEOUT = 0x8010427a + BIOCSSEESENT = 0x80044279 + BIOCSTCPF = 0x80104272 + BIOCSUDPF = 0x80104273 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x8 + BPF_ALIGNMENT32 = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DFLTBUFSIZE = 0x100000 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x1000000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLONE_CSIGNAL = 0xff + CLONE_FILES = 0x400 + CLONE_FS = 0x200 + CLONE_PID = 0x1000 + CLONE_PTRACE = 0x2000 + CLONE_SIGHAND = 0x800 + CLONE_VFORK = 0x4000 + CLONE_VM = 0x100 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + CTL_QUERY = -0x2 + DIOCBSFLUSH = 0x20006478 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HDLC = 0x10 + DLT_HHDLC = 0x79 + DLT_HIPPI = 0xf + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPNET = 0xe2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RAWAF_MASK = 0x2240000 + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_WIHART = 0xdf + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMUL_LINUX = 0x1 + EMUL_LINUX32 = 0x5 + EMUL_MAXID = 0x6 + ETHERCAP_JUMBO_MTU = 0x4 + ETHERCAP_VLAN_HWTAGGING = 0x2 + ETHERCAP_VLAN_MTU = 0x1 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERMTU_JUMBO = 0x2328 + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PAE = 0x888e + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOWPROTOCOLS = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_LEN = 0x5ee + ETHER_MAX_LEN_JUMBO = 0x233a + ETHER_MIN_LEN = 0x40 + ETHER_PPPOE_ENCAP_LEN = 0x8 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = 0x2 + EVFILT_PROC = 0x4 + EVFILT_READ = 0x0 + EVFILT_SIGNAL = 0x5 + EVFILT_SYSCOUNT = 0x7 + EVFILT_TIMER = 0x6 + EVFILT_VNODE = 0x3 + EVFILT_WRITE = 0x1 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_CMD_START = 0x1 + EXTATTR_CMD_STOP = 0x2 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x100 + FLUSHO = 0x800000 + F_CLOSEM = 0xa + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xc + F_FSCTL = -0x80000000 + F_FSDIRMASK = 0x70000000 + F_FSIN = 0x10000000 + F_FSINOUT = 0x30000000 + F_FSOUT = 0x20000000 + F_FSPRIV = 0x8000 + F_FSVOID = 0x40000000 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETNOSIGPIPE = 0xd + F_GETOWN = 0x5 + F_MAXFD = 0xb + F_OK = 0x0 + F_PARAM_MASK = 0xfff + F_PARAM_MAX = 0xfff + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETNOSIGPIPE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFA_ROUTE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8f52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf8 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf2 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf1 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_STF = 0xd7 + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IPV6_ICMP = 0x3a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MOBILE = 0x37 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_VRRP = 0x70 + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_EF = 0x8000 + IP_ERRORMTU = 0x15 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x16 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINFRAGSIZE = 0x45 + IP_MINTTL = 0x18 + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x17 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ALIGNMENT_16MB = 0x18000000 + MAP_ALIGNMENT_1TB = 0x28000000 + MAP_ALIGNMENT_256TB = 0x30000000 + MAP_ALIGNMENT_4GB = 0x20000000 + MAP_ALIGNMENT_64KB = 0x10000000 + MAP_ALIGNMENT_64PB = 0x38000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_INHERIT = 0x80 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_DEFAULT = 0x1 + MAP_INHERIT_DONATE_COPY = 0x3 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_SHARED = 0x1 + MAP_STACK = 0x2000 + MAP_TRYFIXED = 0x400 + MAP_WIRED = 0x800 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_BASIC_FLAGS = 0xe782807f + MNT_DEFEXPORTED = 0x200 + MNT_DISCARD = 0x800000 + MNT_EXKERB = 0x800 + MNT_EXNORESPORT = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x10000000 + MNT_EXRDONLY = 0x80 + MNT_EXTATTR = 0x1000000 + MNT_FORCE = 0x80000 + MNT_GETARGS = 0x400000 + MNT_IGNORE = 0x100000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_LOG = 0x2000000 + MNT_NOATIME = 0x4000000 + MNT_NOCOREDUMP = 0x8000 + MNT_NODEV = 0x10 + MNT_NODEVMTIME = 0x40000000 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_OP_FLAGS = 0x4d0000 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELATIME = 0x20000 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x80000000 + MNT_SYMPERM = 0x20000000 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0xff90ffff + MNT_WAIT = 0x1 + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CONTROLMBUF = 0x2000000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_IOVUSRSPACE = 0x4000000 + MSG_LENUSRSPACE = 0x8000000 + MSG_MCAST = 0x200 + MSG_NAMEMBUF = 0x1000000 + MSG_NBIO = 0x1000 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_USERFLAGS = 0xffffff + MSG_WAITALL = 0x40 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x4 + NAME_MAX = 0x1ff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x5 + NET_RT_MAXID = 0x6 + NET_RT_OIFLIST = 0x4 + NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OFIOGETBMAP = 0xc004667a + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + O_ACCMODE = 0x3 + O_ALT_IO = 0x40000 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x400000 + O_CREAT = 0x200 + O_DIRECT = 0x80000 + O_DIRECTORY = 0x200000 + O_DSYNC = 0x10000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_NOSIGPIPE = 0x1000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x20000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PRI_IOFLUSH = 0x7c + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x9 + RTAX_NETMASK = 0x2 + RTAX_TAG = 0x8 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTA_TAG = 0x100 + RTF_ANNOUNCE = 0x20000 + RTF_BLACKHOLE = 0x1000 + RTF_CLONED = 0x2000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_REJECT = 0x8 + RTF_SRC = 0x10000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_CHGADDR = 0x15 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x11 + RTM_IFANNOUNCE = 0x10 + RTM_IFINFO = 0x14 + RTM_LLINFO_UPD = 0x13 + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OIFINFO = 0xf + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_OOIFINFO = 0xe + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_SETGATE = 0x12 + RTM_VERSION = 0x4 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x4 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x8 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80906931 + SIOCADDRT = 0x8038720a + SIOCAIFADDR = 0x8040691a + SIOCALIFADDR = 0x8118691c + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80906932 + SIOCDELRT = 0x8038720b + SIOCDIFADDR = 0x80906919 + SIOCDIFPHYADDR = 0x80906949 + SIOCDLIFADDR = 0x8118691e + SIOCGDRVSPEC = 0xc028697b + SIOCGETPFSYNC = 0xc09069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = 0xc0906921 + SIOCGIFADDRPREF = 0xc0986920 + SIOCGIFALIAS = 0xc040691b + SIOCGIFBRDADDR = 0xc0906923 + SIOCGIFCAP = 0xc0206976 + SIOCGIFCONF = 0xc0106926 + SIOCGIFDATA = 0xc0986985 + SIOCGIFDLT = 0xc0906977 + SIOCGIFDSTADDR = 0xc0906922 + SIOCGIFFLAGS = 0xc0906911 + SIOCGIFGENERIC = 0xc090693a + SIOCGIFMEDIA = 0xc0306936 + SIOCGIFMETRIC = 0xc0906917 + SIOCGIFMTU = 0xc090697e + SIOCGIFNETMASK = 0xc0906925 + SIOCGIFPDSTADDR = 0xc0906948 + SIOCGIFPSRCADDR = 0xc0906947 + SIOCGLIFADDR = 0xc118691d + SIOCGLIFPHYADDR = 0xc118694b + SIOCGLINKSTR = 0xc0286987 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGVH = 0xc0906983 + SIOCIFCREATE = 0x8090697a + SIOCIFDESTROY = 0x80906979 + SIOCIFGCLONERS = 0xc0106978 + SIOCINITIFADDR = 0xc0706984 + SIOCSDRVSPEC = 0x8028697b + SIOCSETPFSYNC = 0x809069f7 + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8090690c + SIOCSIFADDRPREF = 0x8098691f + SIOCSIFBRDADDR = 0x80906913 + SIOCSIFCAP = 0x80206975 + SIOCSIFDSTADDR = 0x8090690e + SIOCSIFFLAGS = 0x80906910 + SIOCSIFGENERIC = 0x80906939 + SIOCSIFMEDIA = 0xc0906935 + SIOCSIFMETRIC = 0x80906918 + SIOCSIFMTU = 0x8090697f + SIOCSIFNETMASK = 0x80906916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSLIFPHYADDR = 0x8118694a + SIOCSLINKSTR = 0x80286988 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSVH = 0xc0906982 + SIOCZIFDATA = 0xc0986986 + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_FLAGS_MASK = 0xf0000000 + SOCK_NONBLOCK = 0x20000000 + SOCK_NOSIGPIPE = 0x40000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NOHEADER = 0x100a + SO_NOSIGPIPE = 0x800 + SO_OOBINLINE = 0x100 + SO_OVERFLOWED = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x100c + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x100b + SO_TIMESTAMP = 0x2000 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SYSCTL_VERSION = 0x1000000 + SYSCTL_VERS_0 = 0x0 + SYSCTL_VERS_1 = 0x1000000 + SYSCTL_VERS_MASK = 0xff000000 + S_ARCH1 = 0x10000 + S_ARCH2 = 0x20000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + S_LOGIN_SET = 0x1 + TCIFLUSH = 0x1 + TCIOFLUSH = 0x3 + TCOFLUSH = 0x2 + TCP_CONGCTL = 0x20 + TCP_KEEPCNT = 0x6 + TCP_KEEPIDLE = 0x3 + TCP_KEEPINIT = 0x7 + TCP_KEEPINTVL = 0x5 + TCP_MAXBURST = 0x4 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCSAFLUSH = 0x2 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x40107458 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CDTRCTS = 0x10 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGLINED = 0x40207442 + TIOCGPGRP = 0x40047477 + TIOCGQSIZE = 0x40047481 + TIOCGRANTPT = 0x20007447 + TIOCGSID = 0x40047463 + TIOCGSIZE = 0x40087468 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMGET = 0x40287446 + TIOCPTSNAME = 0x40287448 + TIOCRCVFRAME = 0x80087445 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x2000745f + TIOCSLINED = 0x80207443 + TIOCSPGRP = 0x80047476 + TIOCSQSIZE = 0x80047480 + TIOCSSIZE = 0x80087467 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x80047465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCXMTFRAME = 0x80087444 + TOSTOP = 0x400000 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALL = 0x8 + WALLSIG = 0x8 + WALTSIG = 0x4 + WCLONE = 0x4 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WNOWAIT = 0x10000 + WNOZOMBIE = 0x20000 + WOPTSCHECKED = 0x40000 + WSTOPPED = 0x7f + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x58) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x57) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x55) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x60) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5e) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x5d) + ENOBUFS = syscall.Errno(0x37) + ENODATA = syscall.Errno(0x59) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5f) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x5a) + ENOSTR = syscall.Errno(0x5b) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x56) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x60) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIME = syscall.Errno(0x5c) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x20) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large or too small"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol option not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "connection timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "EILSEQ", "illegal byte sequence"}, + {86, "ENOTSUP", "not supported"}, + {87, "ECANCELED", "operation Canceled"}, + {88, "EBADMSG", "bad or Corrupt message"}, + {89, "ENODATA", "no message available"}, + {90, "ENOSR", "no STREAM resources"}, + {91, "ENOSTR", "not a STREAM"}, + {92, "ETIME", "STREAM ioctl timeout"}, + {93, "ENOATTR", "attribute not found"}, + {94, "EMULTIHOP", "multihop attempted"}, + {95, "ENOLINK", "link has been severed"}, + {96, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGPWR", "power fail/restart"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go new file mode 100644 index 0000000..9eef974 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go @@ -0,0 +1,1759 @@ +// mkerrors.sh -marm +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && netbsd +// +build arm,netbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -marm _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x1c + AF_BLUETOOTH = 0x1f + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x20 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x23 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OROUTE = 0x11 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x22 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ARPHRD_ARCNET = 0x7 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + ARPHRD_STRIP = 0x17 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427d + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0084277 + BIOCGETIF = 0x4090426b + BIOCGFEEDBACK = 0x4004427c + BIOCGHDRCMPLT = 0x40044274 + BIOCGRTIMEOUT = 0x400c427b + BIOCGSEESENT = 0x40044278 + BIOCGSTATS = 0x4080426f + BIOCGSTATSOLD = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044276 + BIOCSETF = 0x80084267 + BIOCSETIF = 0x8090426c + BIOCSFEEDBACK = 0x8004427d + BIOCSHDRCMPLT = 0x80044275 + BIOCSRTIMEOUT = 0x800c427a + BIOCSSEESENT = 0x80044279 + BIOCSTCPF = 0x80084272 + BIOCSUDPF = 0x80084273 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALIGNMENT32 = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DFLTBUFSIZE = 0x100000 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x1000000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + CTL_QUERY = -0x2 + DIOCBSFLUSH = 0x20006478 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HDLC = 0x10 + DLT_HHDLC = 0x79 + DLT_HIPPI = 0xf + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPNET = 0xe2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RAWAF_MASK = 0x2240000 + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_WIHART = 0xdf + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMUL_LINUX = 0x1 + EMUL_LINUX32 = 0x5 + EMUL_MAXID = 0x6 + ETHERCAP_JUMBO_MTU = 0x4 + ETHERCAP_VLAN_HWTAGGING = 0x2 + ETHERCAP_VLAN_MTU = 0x1 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERMTU_JUMBO = 0x2328 + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PAE = 0x888e + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOWPROTOCOLS = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_LEN = 0x5ee + ETHER_MAX_LEN_JUMBO = 0x233a + ETHER_MIN_LEN = 0x40 + ETHER_PPPOE_ENCAP_LEN = 0x8 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = 0x2 + EVFILT_PROC = 0x4 + EVFILT_READ = 0x0 + EVFILT_SIGNAL = 0x5 + EVFILT_SYSCOUNT = 0x7 + EVFILT_TIMER = 0x6 + EVFILT_VNODE = 0x3 + EVFILT_WRITE = 0x1 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_CMD_START = 0x1 + EXTATTR_CMD_STOP = 0x2 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x100 + FLUSHO = 0x800000 + F_CLOSEM = 0xa + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xc + F_FSCTL = -0x80000000 + F_FSDIRMASK = 0x70000000 + F_FSIN = 0x10000000 + F_FSINOUT = 0x30000000 + F_FSOUT = 0x20000000 + F_FSPRIV = 0x8000 + F_FSVOID = 0x40000000 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETNOSIGPIPE = 0xd + F_GETOWN = 0x5 + F_MAXFD = 0xb + F_OK = 0x0 + F_PARAM_MASK = 0xfff + F_PARAM_MAX = 0xfff + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETNOSIGPIPE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFA_ROUTE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8f52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf8 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf2 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf1 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_STF = 0xd7 + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IPV6_ICMP = 0x3a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MOBILE = 0x37 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_VRRP = 0x70 + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_EF = 0x8000 + IP_ERRORMTU = 0x15 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x16 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINFRAGSIZE = 0x45 + IP_MINTTL = 0x18 + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x17 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ALIGNMENT_16MB = 0x18000000 + MAP_ALIGNMENT_1TB = 0x28000000 + MAP_ALIGNMENT_256TB = 0x30000000 + MAP_ALIGNMENT_4GB = 0x20000000 + MAP_ALIGNMENT_64KB = 0x10000000 + MAP_ALIGNMENT_64PB = 0x38000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_INHERIT = 0x80 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_DEFAULT = 0x1 + MAP_INHERIT_DONATE_COPY = 0x3 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_SHARED = 0x1 + MAP_STACK = 0x2000 + MAP_TRYFIXED = 0x400 + MAP_WIRED = 0x800 + MNT_ASYNC = 0x40 + MNT_BASIC_FLAGS = 0xe782807f + MNT_DEFEXPORTED = 0x200 + MNT_DISCARD = 0x800000 + MNT_EXKERB = 0x800 + MNT_EXNORESPORT = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x10000000 + MNT_EXRDONLY = 0x80 + MNT_EXTATTR = 0x1000000 + MNT_FORCE = 0x80000 + MNT_GETARGS = 0x400000 + MNT_IGNORE = 0x100000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_LOG = 0x2000000 + MNT_NOATIME = 0x4000000 + MNT_NOCOREDUMP = 0x8000 + MNT_NODEV = 0x10 + MNT_NODEVMTIME = 0x40000000 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_OP_FLAGS = 0x4d0000 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELATIME = 0x20000 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x80000000 + MNT_SYMPERM = 0x20000000 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0xff90ffff + MNT_WAIT = 0x1 + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CONTROLMBUF = 0x2000000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_IOVUSRSPACE = 0x4000000 + MSG_LENUSRSPACE = 0x8000000 + MSG_MCAST = 0x200 + MSG_NAMEMBUF = 0x1000000 + MSG_NBIO = 0x1000 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_USERFLAGS = 0xffffff + MSG_WAITALL = 0x40 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x4 + NAME_MAX = 0x1ff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x5 + NET_RT_MAXID = 0x6 + NET_RT_OIFLIST = 0x4 + NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OFIOGETBMAP = 0xc004667a + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + O_ACCMODE = 0x3 + O_ALT_IO = 0x40000 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x400000 + O_CREAT = 0x200 + O_DIRECT = 0x80000 + O_DIRECTORY = 0x200000 + O_DSYNC = 0x10000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_NOSIGPIPE = 0x1000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x20000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + PRI_IOFLUSH = 0x7c + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x9 + RTAX_NETMASK = 0x2 + RTAX_TAG = 0x8 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTA_TAG = 0x100 + RTF_ANNOUNCE = 0x20000 + RTF_BLACKHOLE = 0x1000 + RTF_CLONED = 0x2000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_REJECT = 0x8 + RTF_SRC = 0x10000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_CHGADDR = 0x15 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x11 + RTM_IFANNOUNCE = 0x10 + RTM_IFINFO = 0x14 + RTM_LLINFO_UPD = 0x13 + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OIFINFO = 0xf + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_OOIFINFO = 0xe + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_SETGATE = 0x12 + RTM_VERSION = 0x4 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x4 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x8 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80906931 + SIOCADDRT = 0x8030720a + SIOCAIFADDR = 0x8040691a + SIOCALIFADDR = 0x8118691c + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80906932 + SIOCDELRT = 0x8030720b + SIOCDIFADDR = 0x80906919 + SIOCDIFPHYADDR = 0x80906949 + SIOCDLIFADDR = 0x8118691e + SIOCGDRVSPEC = 0xc01c697b + SIOCGETPFSYNC = 0xc09069f8 + SIOCGETSGCNT = 0xc0147534 + SIOCGETVIFCNT = 0xc0147533 + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = 0xc0906921 + SIOCGIFADDRPREF = 0xc0946920 + SIOCGIFALIAS = 0xc040691b + SIOCGIFBRDADDR = 0xc0906923 + SIOCGIFCAP = 0xc0206976 + SIOCGIFCONF = 0xc0086926 + SIOCGIFDATA = 0xc0946985 + SIOCGIFDLT = 0xc0906977 + SIOCGIFDSTADDR = 0xc0906922 + SIOCGIFFLAGS = 0xc0906911 + SIOCGIFGENERIC = 0xc090693a + SIOCGIFMEDIA = 0xc0286936 + SIOCGIFMETRIC = 0xc0906917 + SIOCGIFMTU = 0xc090697e + SIOCGIFNETMASK = 0xc0906925 + SIOCGIFPDSTADDR = 0xc0906948 + SIOCGIFPSRCADDR = 0xc0906947 + SIOCGLIFADDR = 0xc118691d + SIOCGLIFPHYADDR = 0xc118694b + SIOCGLINKSTR = 0xc01c6987 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGVH = 0xc0906983 + SIOCIFCREATE = 0x8090697a + SIOCIFDESTROY = 0x80906979 + SIOCIFGCLONERS = 0xc00c6978 + SIOCINITIFADDR = 0xc0446984 + SIOCSDRVSPEC = 0x801c697b + SIOCSETPFSYNC = 0x809069f7 + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8090690c + SIOCSIFADDRPREF = 0x8094691f + SIOCSIFBRDADDR = 0x80906913 + SIOCSIFCAP = 0x80206975 + SIOCSIFDSTADDR = 0x8090690e + SIOCSIFFLAGS = 0x80906910 + SIOCSIFGENERIC = 0x80906939 + SIOCSIFMEDIA = 0xc0906935 + SIOCSIFMETRIC = 0x80906918 + SIOCSIFMTU = 0x8090697f + SIOCSIFNETMASK = 0x80906916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSLIFPHYADDR = 0x8118694a + SIOCSLINKSTR = 0x801c6988 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSVH = 0xc0906982 + SIOCZIFDATA = 0xc0946986 + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_FLAGS_MASK = 0xf0000000 + SOCK_NONBLOCK = 0x20000000 + SOCK_NOSIGPIPE = 0x40000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NOHEADER = 0x100a + SO_NOSIGPIPE = 0x800 + SO_OOBINLINE = 0x100 + SO_OVERFLOWED = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x100c + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x100b + SO_TIMESTAMP = 0x2000 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SYSCTL_VERSION = 0x1000000 + SYSCTL_VERS_0 = 0x0 + SYSCTL_VERS_1 = 0x1000000 + SYSCTL_VERS_MASK = 0xff000000 + S_ARCH1 = 0x10000 + S_ARCH2 = 0x20000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFLUSH = 0x3 + TCOFLUSH = 0x2 + TCP_CONGCTL = 0x20 + TCP_KEEPCNT = 0x6 + TCP_KEEPIDLE = 0x3 + TCP_KEEPINIT = 0x7 + TCP_KEEPINTVL = 0x5 + TCP_MAXBURST = 0x4 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCSAFLUSH = 0x2 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x400c7458 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CDTRCTS = 0x10 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGLINED = 0x40207442 + TIOCGPGRP = 0x40047477 + TIOCGQSIZE = 0x40047481 + TIOCGRANTPT = 0x20007447 + TIOCGSID = 0x40047463 + TIOCGSIZE = 0x40087468 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMGET = 0x48087446 + TIOCPTSNAME = 0x48087448 + TIOCRCVFRAME = 0x80047445 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x2000745f + TIOCSLINED = 0x80207443 + TIOCSPGRP = 0x80047476 + TIOCSQSIZE = 0x80047480 + TIOCSSIZE = 0x80087467 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x80047465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCXMTFRAME = 0x80047444 + TOSTOP = 0x400000 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALL = 0x8 + WALLSIG = 0x8 + WALTSIG = 0x4 + WCLONE = 0x4 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WNOWAIT = 0x10000 + WNOZOMBIE = 0x20000 + WOPTSCHECKED = 0x40000 + WSTOPPED = 0x7f + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x58) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x57) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x55) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x60) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5e) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x5d) + ENOBUFS = syscall.Errno(0x37) + ENODATA = syscall.Errno(0x59) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5f) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x5a) + ENOSTR = syscall.Errno(0x5b) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x56) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x60) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIME = syscall.Errno(0x5c) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x20) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large or too small"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol option not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "connection timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "EILSEQ", "illegal byte sequence"}, + {86, "ENOTSUP", "not supported"}, + {87, "ECANCELED", "operation Canceled"}, + {88, "EBADMSG", "bad or Corrupt message"}, + {89, "ENODATA", "no message available"}, + {90, "ENOSR", "no STREAM resources"}, + {91, "ENOSTR", "not a STREAM"}, + {92, "ETIME", "STREAM ioctl timeout"}, + {93, "ENOATTR", "attribute not found"}, + {94, "EMULTIHOP", "multihop attempted"}, + {95, "ENOLINK", "link has been severed"}, + {96, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGPWR", "power fail/restart"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go new file mode 100644 index 0000000..3b62ba1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go @@ -0,0 +1,1770 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && netbsd +// +build arm64,netbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_ARP = 0x1c + AF_BLUETOOTH = 0x1f + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_HYLINK = 0xf + AF_IEEE80211 = 0x20 + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x23 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OROUTE = 0x11 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x22 + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ARPHRD_ARCNET = 0x7 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + ARPHRD_STRIP = 0x17 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B460800 = 0x70800 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B921600 = 0xe1000 + B9600 = 0x2580 + BIOCFEEDBACK = 0x8004427d + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc0104277 + BIOCGETIF = 0x4090426b + BIOCGFEEDBACK = 0x4004427c + BIOCGHDRCMPLT = 0x40044274 + BIOCGRTIMEOUT = 0x4010427b + BIOCGSEESENT = 0x40044278 + BIOCGSTATS = 0x4080426f + BIOCGSTATSOLD = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDLT = 0x80044276 + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8090426c + BIOCSFEEDBACK = 0x8004427d + BIOCSHDRCMPLT = 0x80044275 + BIOCSRTIMEOUT = 0x8010427a + BIOCSSEESENT = 0x80044279 + BIOCSTCPF = 0x80104272 + BIOCSUDPF = 0x80104273 + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x8 + BPF_ALIGNMENT32 = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DFLTBUFSIZE = 0x100000 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x1000000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLONE_CSIGNAL = 0xff + CLONE_FILES = 0x400 + CLONE_FS = 0x200 + CLONE_PID = 0x1000 + CLONE_PTRACE = 0x2000 + CLONE_SIGHAND = 0x800 + CLONE_VFORK = 0x4000 + CLONE_VM = 0x100 + CPUSTATES = 0x5 + CP_IDLE = 0x4 + CP_INTR = 0x3 + CP_NICE = 0x1 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + CTL_QUERY = -0x2 + DIOCBSFLUSH = 0x20006478 + DLT_A429 = 0xb8 + DLT_A653_ICM = 0xb9 + DLT_AIRONET_HEADER = 0x78 + DLT_AOS = 0xde + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_AX25_KISS = 0xca + DLT_BACNET_MS_TP = 0xa5 + DLT_BLUETOOTH_HCI_H4 = 0xbb + DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 + DLT_CAN20B = 0xbe + DLT_CAN_SOCKETCAN = 0xe3 + DLT_CHAOS = 0x5 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_C_HDLC_WITH_DIR = 0xcd + DLT_DECT = 0xdd + DLT_DOCSIS = 0x8f + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF = 0xc5 + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FC_2 = 0xe0 + DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 + DLT_FDDI = 0xa + DLT_FLEXRAY = 0xd2 + DLT_FRELAY = 0x6b + DLT_FRELAY_WITH_DIR = 0xce + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_GSMTAP_ABIS = 0xda + DLT_GSMTAP_UM = 0xd9 + DLT_HDLC = 0x10 + DLT_HHDLC = 0x79 + DLT_HIPPI = 0xf + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IEEE802_15_4 = 0xc3 + DLT_IEEE802_15_4_LINUX = 0xbf + DLT_IEEE802_15_4_NONASK_PHY = 0xd7 + DLT_IEEE802_16_MAC_CPS = 0xbc + DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 + DLT_IPMB = 0xc7 + DLT_IPMB_LINUX = 0xd1 + DLT_IPNET = 0xe2 + DLT_IPV4 = 0xe4 + DLT_IPV6 = 0xe5 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_ISM = 0xc2 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_JUNIPER_ST = 0xc8 + DLT_JUNIPER_VP = 0xb7 + DLT_LAPB_WITH_DIR = 0xcf + DLT_LAPD = 0xcb + DLT_LIN = 0xd4 + DLT_LINUX_EVDEV = 0xd8 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MFR = 0xb6 + DLT_MOST = 0xd3 + DLT_MPLS = 0xdb + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPI = 0xc0 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_ETHER = 0x33 + DLT_PPP_PPPD = 0xa6 + DLT_PPP_SERIAL = 0x32 + DLT_PPP_WITH_DIR = 0xcc + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAIF1 = 0xc6 + DLT_RAW = 0xc + DLT_RAWAF_MASK = 0x2240000 + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SITA = 0xc4 + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + DLT_USB = 0xba + DLT_USB_LINUX = 0xbd + DLT_USB_LINUX_MMAPPED = 0xdc + DLT_WIHART = 0xdf + DLT_X2E_SERIAL = 0xd5 + DLT_X2E_XORAYA = 0xd6 + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + DT_WHT = 0xe + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMUL_LINUX = 0x1 + EMUL_LINUX32 = 0x5 + EMUL_MAXID = 0x6 + ETHERCAP_JUMBO_MTU = 0x4 + ETHERCAP_VLAN_HWTAGGING = 0x2 + ETHERCAP_VLAN_MTU = 0x1 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERMTU_JUMBO = 0x2328 + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PAE = 0x888e + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOWPROTOCOLS = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_LEN = 0x5ee + ETHER_MAX_LEN_JUMBO = 0x233a + ETHER_MIN_LEN = 0x40 + ETHER_PPPOE_ENCAP_LEN = 0x8 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = 0x2 + EVFILT_PROC = 0x4 + EVFILT_READ = 0x0 + EVFILT_SIGNAL = 0x5 + EVFILT_SYSCOUNT = 0x7 + EVFILT_TIMER = 0x6 + EVFILT_VNODE = 0x3 + EVFILT_WRITE = 0x1 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_SYSFLAGS = 0xf000 + EXTA = 0x4b00 + EXTATTR_CMD_START = 0x1 + EXTATTR_CMD_STOP = 0x2 + EXTATTR_NAMESPACE_SYSTEM = 0x2 + EXTATTR_NAMESPACE_USER = 0x1 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x100 + FLUSHO = 0x800000 + F_CLOSEM = 0xa + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xc + F_FSCTL = -0x80000000 + F_FSDIRMASK = 0x70000000 + F_FSIN = 0x10000000 + F_FSINOUT = 0x30000000 + F_FSOUT = 0x20000000 + F_FSPRIV = 0x8000 + F_FSVOID = 0x40000000 + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETNOSIGPIPE = 0xd + F_GETOWN = 0x5 + F_MAXFD = 0xb + F_OK = 0x0 + F_PARAM_MASK = 0xfff + F_PARAM_MAX = 0xfff + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETNOSIGPIPE = 0xe + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFA_ROUTE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8f52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_NOTRAILERS = 0x20 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf8 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf2 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf1 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_STF = 0xd7 + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_IPV6_ICMP = 0x3a + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x34 + IPPROTO_MOBILE = 0x37 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_VRRP = 0x70 + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPSEC_POLICY = 0x1c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_PATHMTU = 0x2c + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_EF = 0x8000 + IP_ERRORMTU = 0x15 + IP_HDRINCL = 0x2 + IP_IPSEC_POLICY = 0x16 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0x14 + IP_MF = 0x2000 + IP_MINFRAGSIZE = 0x45 + IP_MINTTL = 0x18 + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x14 + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVTTL = 0x17 + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ALIGNMENT_16MB = 0x18000000 + MAP_ALIGNMENT_1TB = 0x28000000 + MAP_ALIGNMENT_256TB = 0x30000000 + MAP_ALIGNMENT_4GB = 0x20000000 + MAP_ALIGNMENT_64KB = 0x10000000 + MAP_ALIGNMENT_64PB = 0x38000000 + MAP_ALIGNMENT_MASK = -0x1000000 + MAP_ALIGNMENT_SHIFT = 0x18 + MAP_ANON = 0x1000 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_HASSEMAPHORE = 0x200 + MAP_INHERIT = 0x80 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_DEFAULT = 0x1 + MAP_INHERIT_DONATE_COPY = 0x3 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_SHARED = 0x1 + MAP_STACK = 0x2000 + MAP_TRYFIXED = 0x400 + MAP_WIRED = 0x800 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_BASIC_FLAGS = 0xe782807f + MNT_DEFEXPORTED = 0x200 + MNT_DISCARD = 0x800000 + MNT_EXKERB = 0x800 + MNT_EXNORESPORT = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXPUBLIC = 0x10000000 + MNT_EXRDONLY = 0x80 + MNT_EXTATTR = 0x1000000 + MNT_FORCE = 0x80000 + MNT_GETARGS = 0x400000 + MNT_IGNORE = 0x100000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_LOG = 0x2000000 + MNT_NOATIME = 0x4000000 + MNT_NOCOREDUMP = 0x8000 + MNT_NODEV = 0x10 + MNT_NODEVMTIME = 0x40000000 + MNT_NOEXEC = 0x4 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_OP_FLAGS = 0x4d0000 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELATIME = 0x20000 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x80000000 + MNT_SYMPERM = 0x20000000 + MNT_SYNCHRONOUS = 0x2 + MNT_UNION = 0x20 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0xff90ffff + MNT_WAIT = 0x1 + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CONTROLMBUF = 0x2000000 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_IOVUSRSPACE = 0x4000000 + MSG_LENUSRSPACE = 0x8000000 + MSG_MCAST = 0x200 + MSG_NAMEMBUF = 0x1000000 + MSG_NBIO = 0x1000 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_USERFLAGS = 0xffffff + MSG_WAITALL = 0x40 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_SYNC = 0x4 + NAME_MAX = 0x1ff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x5 + NET_RT_MAXID = 0x6 + NET_RT_OIFLIST = 0x4 + NET_RT_OOIFLIST = 0x3 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOTE_ATTRIB = 0x8 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OFIOGETBMAP = 0xc004667a + ONLCR = 0x2 + ONLRET = 0x40 + ONOCR = 0x20 + ONOEOT = 0x8 + OPOST = 0x1 + O_ACCMODE = 0x3 + O_ALT_IO = 0x40000 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x400000 + O_CREAT = 0x200 + O_DIRECT = 0x80000 + O_DIRECTORY = 0x200000 + O_DSYNC = 0x10000 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_NOSIGPIPE = 0x1000000 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x20000 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PRI_IOFLUSH = 0x7c + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_AS = 0xa + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x9 + RTAX_NETMASK = 0x2 + RTAX_TAG = 0x8 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTA_TAG = 0x100 + RTF_ANNOUNCE = 0x20000 + RTF_BLACKHOLE = 0x1000 + RTF_CLONED = 0x2000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_REJECT = 0x8 + RTF_SRC = 0x10000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_CHGADDR = 0x15 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_GET = 0x4 + RTM_IEEE80211 = 0x11 + RTM_IFANNOUNCE = 0x10 + RTM_IFINFO = 0x14 + RTM_LLINFO_UPD = 0x13 + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OIFINFO = 0xf + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_OOIFINFO = 0xe + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_RTTUNIT = 0xf4240 + RTM_SETGATE = 0x12 + RTM_VERSION = 0x4 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_CREDS = 0x4 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x8 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80906931 + SIOCADDRT = 0x8038720a + SIOCAIFADDR = 0x8040691a + SIOCALIFADDR = 0x8118691c + SIOCATMARK = 0x40047307 + SIOCDELMULTI = 0x80906932 + SIOCDELRT = 0x8038720b + SIOCDIFADDR = 0x80906919 + SIOCDIFPHYADDR = 0x80906949 + SIOCDLIFADDR = 0x8118691e + SIOCGDRVSPEC = 0xc028697b + SIOCGETPFSYNC = 0xc09069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = 0xc0906921 + SIOCGIFADDRPREF = 0xc0986920 + SIOCGIFALIAS = 0xc040691b + SIOCGIFBRDADDR = 0xc0906923 + SIOCGIFCAP = 0xc0206976 + SIOCGIFCONF = 0xc0106926 + SIOCGIFDATA = 0xc0986985 + SIOCGIFDLT = 0xc0906977 + SIOCGIFDSTADDR = 0xc0906922 + SIOCGIFFLAGS = 0xc0906911 + SIOCGIFGENERIC = 0xc090693a + SIOCGIFMEDIA = 0xc0306936 + SIOCGIFMETRIC = 0xc0906917 + SIOCGIFMTU = 0xc090697e + SIOCGIFNETMASK = 0xc0906925 + SIOCGIFPDSTADDR = 0xc0906948 + SIOCGIFPSRCADDR = 0xc0906947 + SIOCGLIFADDR = 0xc118691d + SIOCGLIFPHYADDR = 0xc118694b + SIOCGLINKSTR = 0xc0286987 + SIOCGLOWAT = 0x40047303 + SIOCGPGRP = 0x40047309 + SIOCGVH = 0xc0906983 + SIOCIFCREATE = 0x8090697a + SIOCIFDESTROY = 0x80906979 + SIOCIFGCLONERS = 0xc0106978 + SIOCINITIFADDR = 0xc0706984 + SIOCSDRVSPEC = 0x8028697b + SIOCSETPFSYNC = 0x809069f7 + SIOCSHIWAT = 0x80047300 + SIOCSIFADDR = 0x8090690c + SIOCSIFADDRPREF = 0x8098691f + SIOCSIFBRDADDR = 0x80906913 + SIOCSIFCAP = 0x80206975 + SIOCSIFDSTADDR = 0x8090690e + SIOCSIFFLAGS = 0x80906910 + SIOCSIFGENERIC = 0x80906939 + SIOCSIFMEDIA = 0xc0906935 + SIOCSIFMETRIC = 0x80906918 + SIOCSIFMTU = 0x8090697f + SIOCSIFNETMASK = 0x80906916 + SIOCSIFPHYADDR = 0x80406946 + SIOCSLIFPHYADDR = 0x8118694a + SIOCSLINKSTR = 0x80286988 + SIOCSLOWAT = 0x80047302 + SIOCSPGRP = 0x80047308 + SIOCSVH = 0xc0906982 + SIOCZIFDATA = 0xc0986986 + SOCK_CLOEXEC = 0x10000000 + SOCK_DGRAM = 0x2 + SOCK_FLAGS_MASK = 0xf0000000 + SOCK_NONBLOCK = 0x20000000 + SOCK_NOSIGPIPE = 0x40000000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ACCEPTFILTER = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NOHEADER = 0x100a + SO_NOSIGPIPE = 0x800 + SO_OOBINLINE = 0x100 + SO_OVERFLOWED = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x100c + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x100b + SO_TIMESTAMP = 0x2000 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SYSCTL_VERSION = 0x1000000 + SYSCTL_VERS_0 = 0x0 + SYSCTL_VERS_1 = 0x1000000 + SYSCTL_VERS_MASK = 0xff000000 + S_ARCH1 = 0x10000 + S_ARCH2 = 0x20000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IFWHT = 0xe000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + S_LOGIN_SET = 0x1 + TCIFLUSH = 0x1 + TCIOFLUSH = 0x3 + TCOFLUSH = 0x2 + TCP_CONGCTL = 0x20 + TCP_KEEPCNT = 0x6 + TCP_KEEPIDLE = 0x3 + TCP_KEEPINIT = 0x7 + TCP_KEEPINTVL = 0x5 + TCP_MAXBURST = 0x4 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x10 + TCP_MINMSS = 0xd8 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCSAFLUSH = 0x2 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCONS = 0x80047462 + TIOCDCDTIMESTAMP = 0x40107458 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CDTRCTS = 0x10 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGLINED = 0x40207442 + TIOCGPGRP = 0x40047477 + TIOCGQSIZE = 0x40047481 + TIOCGRANTPT = 0x20007447 + TIOCGSID = 0x40047463 + TIOCGSIZE = 0x40087468 + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCPTMGET = 0x40287446 + TIOCPTSNAME = 0x40287448 + TIOCRCVFRAME = 0x80087445 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x2000745f + TIOCSLINED = 0x80207443 + TIOCSPGRP = 0x80047476 + TIOCSQSIZE = 0x80047480 + TIOCSSIZE = 0x80087467 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x80047465 + TIOCSTI = 0x80017472 + TIOCSTOP = 0x2000746f + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCXMTFRAME = 0x80087444 + TOSTOP = 0x400000 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALL = 0x8 + WALLSIG = 0x8 + WALTSIG = 0x4 + WCLONE = 0x4 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WNOWAIT = 0x10000 + WNOZOMBIE = 0x20000 + WOPTSCHECKED = 0x40000 + WSTOPPED = 0x7f + WUNTRACED = 0x2 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x58) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x57) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x52) + EILSEQ = syscall.Errno(0x55) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x60) + ELOOP = syscall.Errno(0x3e) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + EMULTIHOP = syscall.Errno(0x5e) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x5d) + ENOBUFS = syscall.Errno(0x37) + ENODATA = syscall.Errno(0x59) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOLINK = syscall.Errno(0x5f) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x53) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x5a) + ENOSTR = syscall.Errno(0x5b) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x56) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x54) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x60) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIME = syscall.Errno(0x5c) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGPWR = syscall.Signal(0x20) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large or too small"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol option not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "connection timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disc quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC prog. not avail"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIDRM", "identifier removed"}, + {83, "ENOMSG", "no message of desired type"}, + {84, "EOVERFLOW", "value too large to be stored in data type"}, + {85, "EILSEQ", "illegal byte sequence"}, + {86, "ENOTSUP", "not supported"}, + {87, "ECANCELED", "operation Canceled"}, + {88, "EBADMSG", "bad or Corrupt message"}, + {89, "ENODATA", "no message available"}, + {90, "ENOSR", "no STREAM resources"}, + {91, "ENOSTR", "not a STREAM"}, + {92, "ETIME", "STREAM ioctl timeout"}, + {93, "ENOATTR", "attribute not found"}, + {94, "EMULTIHOP", "multihop attempted"}, + {95, "ENOLINK", "link has been severed"}, + {96, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "stopped (signal)"}, + {18, "SIGTSTP", "stopped"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGPWR", "power fail/restart"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go new file mode 100644 index 0000000..af20e47 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go @@ -0,0 +1,1906 @@ +// mkerrors.sh -m32 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && openbsd +// +build 386,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m32 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc008427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x400c426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80084267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80084277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x800c426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc100445d + DIOCADDRULE = 0xccc84404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xccc8441a + DIOCCLRIFFLAG = 0xc024445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0d04412 + DIOCCLRSTATUS = 0xc0244416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1084460 + DIOCGETQUEUE = 0xc100445f + DIOCGETQUEUES = 0xc100445e + DIOCGETRULE = 0xccc84407 + DIOCGETRULES = 0xccc84406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0084454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0084419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0244457 + DIOCKILLSRCNODES = 0xc068445b + DIOCKILLSTATES = 0xc0d04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc084444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0844450 + DIOCRADDADDRS = 0xc44c4443 + DIOCRADDTABLES = 0xc44c443d + DIOCRCLRADDRS = 0xc44c4442 + DIOCRCLRASTATS = 0xc44c4448 + DIOCRCLRTABLES = 0xc44c443c + DIOCRCLRTSTATS = 0xc44c4441 + DIOCRDELADDRS = 0xc44c4444 + DIOCRDELTABLES = 0xc44c443e + DIOCRGETADDRS = 0xc44c4446 + DIOCRGETASTATS = 0xc44c4447 + DIOCRGETTABLES = 0xc44c443f + DIOCRGETTSTATS = 0xc44c4440 + DIOCRINADEFINE = 0xc44c444d + DIOCRSETADDRS = 0xc44c4445 + DIOCRSETTFLAGS = 0xc44c444a + DIOCRTSTADDRS = 0xc44c4449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0244459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0244414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc00c4451 + DIOCXCOMMIT = 0xc00c4452 + DIOCXROLLBACK = 0xc00c4453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x1000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80246987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x805c693c + SIOCBRDGADDL = 0x805c6949 + SIOCBRDGADDS = 0x805c6941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x805c693d + SIOCBRDGDELS = 0x805c6942 + SIOCBRDGFLUSH = 0x805c6948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc05c693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc03c6958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc028694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc05c6942 + SIOCBRDGRTS = 0xc0186943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x805c6955 + SIOCBRDGSIFFLGS = 0x805c693f + SIOCBRDGSIFPRIO = 0x805c6954 + SIOCBRDGSIFPROT = 0x805c694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80246989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0147534 + SIOCGETVIFCNT = 0xc0147533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0086924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc024698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc024698d + SIOCGIFGMEMB = 0xc024698a + SIOCGIFGROUP = 0xc0246988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0386938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc00c6978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8024698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x400c745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, + {28672, "SIGSTKSZ", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go new file mode 100644 index 0000000..6015fcb --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go @@ -0,0 +1,1906 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && openbsd +// +build amd64,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc010427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80104277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x8010426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc110445d + DIOCADDRULE = 0xcd604404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xcd60441a + DIOCCLRIFFLAG = 0xc028445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0e04412 + DIOCCLRSTATUS = 0xc0284416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1204460 + DIOCGETQUEUE = 0xc110445f + DIOCGETQUEUES = 0xc110445e + DIOCGETRULE = 0xcd604407 + DIOCGETRULES = 0xcd604406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0104454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0104419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0284457 + DIOCKILLSRCNODES = 0xc080445b + DIOCKILLSTATES = 0xc0e04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc088444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0884450 + DIOCRADDADDRS = 0xc4504443 + DIOCRADDTABLES = 0xc450443d + DIOCRCLRADDRS = 0xc4504442 + DIOCRCLRASTATS = 0xc4504448 + DIOCRCLRTABLES = 0xc450443c + DIOCRCLRTSTATS = 0xc4504441 + DIOCRDELADDRS = 0xc4504444 + DIOCRDELTABLES = 0xc450443e + DIOCRGETADDRS = 0xc4504446 + DIOCRGETASTATS = 0xc4504447 + DIOCRGETTABLES = 0xc450443f + DIOCRGETTSTATS = 0xc4504440 + DIOCRINADEFINE = 0xc450444d + DIOCRSETADDRS = 0xc4504445 + DIOCRSETTFLAGS = 0xc450444a + DIOCRTSTADDRS = 0xc4504449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0284459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0284414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc0104451 + DIOCXCOMMIT = 0xc0104452 + DIOCXROLLBACK = 0xc0104453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x1000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x8060693c + SIOCBRDGADDL = 0x80606949 + SIOCBRDGADDS = 0x80606941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x8060693d + SIOCBRDGDELS = 0x80606942 + SIOCBRDGFLUSH = 0x80606948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc060693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc0406958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc030694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc0606942 + SIOCBRDGRTS = 0xc0206943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x80606955 + SIOCBRDGSIFFLGS = 0x8060693f + SIOCBRDGSIFPRIO = 0x80606954 + SIOCBRDGSIFPROT = 0x8060694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc028698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc028698d + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0406938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8028698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x4010745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, + {28672, "SIGSTKSZ", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go new file mode 100644 index 0000000..8d44955 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go @@ -0,0 +1,1906 @@ +// mkerrors.sh +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && openbsd +// +build arm,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc008427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80084267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80084277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x8010426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc100445d + DIOCADDRULE = 0xcce04404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xcce0441a + DIOCCLRIFFLAG = 0xc024445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0d04412 + DIOCCLRSTATUS = 0xc0244416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1084460 + DIOCGETQUEUE = 0xc100445f + DIOCGETQUEUES = 0xc100445e + DIOCGETRULE = 0xcce04407 + DIOCGETRULES = 0xcce04406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0084454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0084419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0244457 + DIOCKILLSRCNODES = 0xc068445b + DIOCKILLSTATES = 0xc0d04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc088444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0884450 + DIOCRADDADDRS = 0xc44c4443 + DIOCRADDTABLES = 0xc44c443d + DIOCRCLRADDRS = 0xc44c4442 + DIOCRCLRASTATS = 0xc44c4448 + DIOCRCLRTABLES = 0xc44c443c + DIOCRCLRTSTATS = 0xc44c4441 + DIOCRDELADDRS = 0xc44c4444 + DIOCRDELTABLES = 0xc44c443e + DIOCRGETADDRS = 0xc44c4446 + DIOCRGETASTATS = 0xc44c4447 + DIOCRGETTABLES = 0xc44c443f + DIOCRGETTSTATS = 0xc44c4440 + DIOCRINADEFINE = 0xc44c444d + DIOCRSETADDRS = 0xc44c4445 + DIOCRSETTFLAGS = 0xc44c444a + DIOCRTSTADDRS = 0xc44c4449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0244459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0244414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc00c4451 + DIOCXCOMMIT = 0xc00c4452 + DIOCXROLLBACK = 0xc00c4453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x1000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80246987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x8060693c + SIOCBRDGADDL = 0x80606949 + SIOCBRDGADDS = 0x80606941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x8060693d + SIOCBRDGDELS = 0x80606942 + SIOCBRDGFLUSH = 0x80606948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc060693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc0406958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc028694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc0606942 + SIOCBRDGRTS = 0xc0186943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x80606955 + SIOCBRDGSIFFLGS = 0x8060693f + SIOCBRDGSIFPRIO = 0x80606954 + SIOCBRDGSIFPROT = 0x8060694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80246989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0147534 + SIOCGETVIFCNT = 0xc0147533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0086924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc024698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc024698d + SIOCGIFGMEMB = 0xc024698a + SIOCGIFGROUP = 0xc0246988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0386938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc00c6978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8024698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x4010745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, + {28672, "SIGSTKSZ", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go new file mode 100644 index 0000000..ae16fe7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go @@ -0,0 +1,1906 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && openbsd +// +build arm64,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc010427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80104277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x8010426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc110445d + DIOCADDRULE = 0xcd604404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xcd60441a + DIOCCLRIFFLAG = 0xc028445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0e04412 + DIOCCLRSTATUS = 0xc0284416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1204460 + DIOCGETQUEUE = 0xc110445f + DIOCGETQUEUES = 0xc110445e + DIOCGETRULE = 0xcd604407 + DIOCGETRULES = 0xcd604406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0104454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0104419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0284457 + DIOCKILLSRCNODES = 0xc080445b + DIOCKILLSTATES = 0xc0e04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc088444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0884450 + DIOCRADDADDRS = 0xc4504443 + DIOCRADDTABLES = 0xc450443d + DIOCRCLRADDRS = 0xc4504442 + DIOCRCLRASTATS = 0xc4504448 + DIOCRCLRTABLES = 0xc450443c + DIOCRCLRTSTATS = 0xc4504441 + DIOCRDELADDRS = 0xc4504444 + DIOCRDELTABLES = 0xc450443e + DIOCRGETADDRS = 0xc4504446 + DIOCRGETASTATS = 0xc4504447 + DIOCRGETTABLES = 0xc450443f + DIOCRGETTSTATS = 0xc4504440 + DIOCRINADEFINE = 0xc450444d + DIOCRSETADDRS = 0xc4504445 + DIOCRSETTFLAGS = 0xc450444a + DIOCRTSTADDRS = 0xc4504449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0284459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0284414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc0104451 + DIOCXCOMMIT = 0xc0104452 + DIOCXROLLBACK = 0xc0104453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x1000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x8060693c + SIOCBRDGADDL = 0x80606949 + SIOCBRDGADDS = 0x80606941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x8060693d + SIOCBRDGDELS = 0x80606942 + SIOCBRDGFLUSH = 0x80606948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc060693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc0406958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc030694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc0606942 + SIOCBRDGRTS = 0xc0206943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x80606955 + SIOCBRDGSIFFLGS = 0x8060693f + SIOCBRDGSIFPRIO = 0x80606954 + SIOCBRDGSIFPROT = 0x8060694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc028698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc028698d + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0406938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8028698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x4010745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, + {28672, "SIGSTKSZ", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go new file mode 100644 index 0000000..03d90fe --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go @@ -0,0 +1,1906 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64 && openbsd +// +build mips64,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc010427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80104277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x8010426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc110445d + DIOCADDRULE = 0xcd604404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xcd60441a + DIOCCLRIFFLAG = 0xc028445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0e04412 + DIOCCLRSTATUS = 0xc0284416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1204460 + DIOCGETQUEUE = 0xc110445f + DIOCGETQUEUES = 0xc110445e + DIOCGETRULE = 0xcd604407 + DIOCGETRULES = 0xcd604406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0104454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0104419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0284457 + DIOCKILLSRCNODES = 0xc080445b + DIOCKILLSTATES = 0xc0e04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc088444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0884450 + DIOCRADDADDRS = 0xc4504443 + DIOCRADDTABLES = 0xc450443d + DIOCRCLRADDRS = 0xc4504442 + DIOCRCLRASTATS = 0xc4504448 + DIOCRCLRTABLES = 0xc450443c + DIOCRCLRTSTATS = 0xc4504441 + DIOCRDELADDRS = 0xc4504444 + DIOCRDELTABLES = 0xc450443e + DIOCRGETADDRS = 0xc4504446 + DIOCRGETASTATS = 0xc4504447 + DIOCRGETTABLES = 0xc450443f + DIOCRGETTSTATS = 0xc4504440 + DIOCRINADEFINE = 0xc450444d + DIOCRSETADDRS = 0xc4504445 + DIOCRSETTFLAGS = 0xc450444a + DIOCRTSTADDRS = 0xc4504449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0284459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0284414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc0104451 + DIOCXCOMMIT = 0xc0104452 + DIOCXROLLBACK = 0xc0104453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xfffffff + IPV6_FLOWLABEL_MASK = 0xfffff + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x1000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x8060693c + SIOCBRDGADDL = 0x80606949 + SIOCBRDGADDS = 0x80606941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x8060693d + SIOCBRDGDELS = 0x80606942 + SIOCBRDGFLUSH = 0x80606948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc060693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc0406958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc030694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc0606942 + SIOCBRDGRTS = 0xc0206943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x80606955 + SIOCBRDGSIFFLGS = 0x8060693f + SIOCBRDGSIFPRIO = 0x80606954 + SIOCBRDGSIFPROT = 0x8060694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc028698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc028698d + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0406938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8028698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x4010745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGIOT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, + {81920, "SIGSTKSZ", "unknown signal"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go new file mode 100644 index 0000000..8e2c51b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go @@ -0,0 +1,1905 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && openbsd +// +build ppc64,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc010427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80104277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x8010426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc110445d + DIOCADDRULE = 0xcd604404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xcd60441a + DIOCCLRIFFLAG = 0xc028445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0e04412 + DIOCCLRSTATUS = 0xc0284416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1204460 + DIOCGETQUEUE = 0xc110445f + DIOCGETQUEUES = 0xc110445e + DIOCGETRULE = 0xcd604407 + DIOCGETRULES = 0xcd604406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0104454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0104419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0284457 + DIOCKILLSRCNODES = 0xc080445b + DIOCKILLSTATES = 0xc0e04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc088444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0884450 + DIOCRADDADDRS = 0xc4504443 + DIOCRADDTABLES = 0xc450443d + DIOCRCLRADDRS = 0xc4504442 + DIOCRCLRASTATS = 0xc4504448 + DIOCRCLRTABLES = 0xc450443c + DIOCRCLRTSTATS = 0xc4504441 + DIOCRDELADDRS = 0xc4504444 + DIOCRDELTABLES = 0xc450443e + DIOCRGETADDRS = 0xc4504446 + DIOCRGETASTATS = 0xc4504447 + DIOCRGETTABLES = 0xc450443f + DIOCRGETTSTATS = 0xc4504440 + DIOCRINADEFINE = 0xc450444d + DIOCRSETADDRS = 0xc4504445 + DIOCRSETTFLAGS = 0xc450444a + DIOCRTSTADDRS = 0xc4504449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0284459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0284414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc0104451 + DIOCXCOMMIT = 0xc0104452 + DIOCXROLLBACK = 0xc0104453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xfffffff + IPV6_FLOWLABEL_MASK = 0xfffff + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MSG_WAITFORONE = 0x1000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x8060693c + SIOCBRDGADDL = 0x80606949 + SIOCBRDGADDS = 0x80606941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x8060693d + SIOCBRDGDELS = 0x80606942 + SIOCBRDGFLUSH = 0x80606948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc060693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc0406958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc030694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc0606942 + SIOCBRDGRTS = 0xc0206943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x80606955 + SIOCBRDGSIFFLGS = 0x8060693f + SIOCBRDGSIFPRIO = 0x80606954 + SIOCBRDGSIFPROT = 0x8060694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc028698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc028698d + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0406938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8028698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x4010745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGABRT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go new file mode 100644 index 0000000..13d4030 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go @@ -0,0 +1,1904 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && openbsd +// +build riscv64,openbsd + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_APPLETALK = 0x10 + AF_BLUETOOTH = 0x20 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_CNT = 0x15 + AF_COIP = 0x14 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_E164 = 0x1a + AF_ECMA = 0x8 + AF_ENCAP = 0x1c + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x18 + AF_IPX = 0x17 + AF_ISDN = 0x1a + AF_ISO = 0x7 + AF_KEY = 0x1e + AF_LAT = 0xe + AF_LINK = 0x12 + AF_LOCAL = 0x1 + AF_MAX = 0x24 + AF_MPLS = 0x21 + AF_NATM = 0x1b + AF_NS = 0x6 + AF_OSI = 0x7 + AF_PUP = 0x4 + AF_ROUTE = 0x11 + AF_SIP = 0x1d + AF_SNA = 0xb + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + ALTWERASE = 0x200 + ARPHRD_ETHER = 0x1 + ARPHRD_FRELAY = 0xf + ARPHRD_IEEE1394 = 0x18 + ARPHRD_IEEE802 = 0x6 + B0 = 0x0 + B110 = 0x6e + B115200 = 0x1c200 + B1200 = 0x4b0 + B134 = 0x86 + B14400 = 0x3840 + B150 = 0x96 + B1800 = 0x708 + B19200 = 0x4b00 + B200 = 0xc8 + B230400 = 0x38400 + B2400 = 0x960 + B28800 = 0x7080 + B300 = 0x12c + B38400 = 0x9600 + B4800 = 0x12c0 + B50 = 0x32 + B57600 = 0xe100 + B600 = 0x258 + B7200 = 0x1c20 + B75 = 0x4b + B76800 = 0x12c00 + B9600 = 0x2580 + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDIRFILT = 0x4004427c + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = 0xc010427b + BIOCGETIF = 0x4020426b + BIOCGFILDROP = 0x40044278 + BIOCGHDRCMPLT = 0x40044274 + BIOCGRSIG = 0x40044273 + BIOCGRTIMEOUT = 0x4010426e + BIOCGSTATS = 0x4008426f + BIOCIMMEDIATE = 0x80044270 + BIOCLOCK = 0x20004276 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = 0xc0044266 + BIOCSDIRFILT = 0x8004427d + BIOCSDLT = 0x8004427a + BIOCSETF = 0x80104267 + BIOCSETIF = 0x8020426c + BIOCSETWF = 0x80104277 + BIOCSFILDROP = 0x80044279 + BIOCSHDRCMPLT = 0x80044275 + BIOCSRSIG = 0x80044272 + BIOCSRTIMEOUT = 0x8010426d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DIRECTION_IN = 0x1 + BPF_DIRECTION_OUT = 0x2 + BPF_DIV = 0x30 + BPF_FILDROP_CAPTURE = 0x1 + BPF_FILDROP_DROP = 0x2 + BPF_FILDROP_PASS = 0x0 + BPF_F_DIR_IN = 0x10 + BPF_F_DIR_MASK = 0x30 + BPF_F_DIR_OUT = 0x20 + BPF_F_DIR_SHIFT = 0x4 + BPF_F_FLOWID = 0x8 + BPF_F_PRI_MASK = 0x7 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x200000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RND = 0xc0 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + CFLUSH = 0xf + CLOCAL = 0x8000 + CLOCK_BOOTTIME = 0x6 + CLOCK_MONOTONIC = 0x3 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x4 + CLOCK_UPTIME = 0x5 + CPUSTATES = 0x6 + CP_IDLE = 0x5 + CP_INTR = 0x4 + CP_NICE = 0x1 + CP_SPIN = 0x3 + CP_SYS = 0x2 + CP_USER = 0x0 + CREAD = 0x800 + CRTSCTS = 0x10000 + CS5 = 0x0 + CS6 = 0x100 + CS7 = 0x200 + CS8 = 0x300 + CSIZE = 0x300 + CSTART = 0x11 + CSTATUS = 0xff + CSTOP = 0x13 + CSTOPB = 0x400 + CSUSP = 0x1a + CTL_HW = 0x6 + CTL_KERN = 0x1 + CTL_MAXNAME = 0xc + CTL_NET = 0x4 + DIOCADDQUEUE = 0xc110445d + DIOCADDRULE = 0xcd604404 + DIOCADDSTATE = 0xc1084425 + DIOCCHANGERULE = 0xcd60441a + DIOCCLRIFFLAG = 0xc028445a + DIOCCLRSRCNODES = 0x20004455 + DIOCCLRSTATES = 0xc0e04412 + DIOCCLRSTATUS = 0xc0284416 + DIOCGETLIMIT = 0xc0084427 + DIOCGETQSTATS = 0xc1204460 + DIOCGETQUEUE = 0xc110445f + DIOCGETQUEUES = 0xc110445e + DIOCGETRULE = 0xcd604407 + DIOCGETRULES = 0xcd604406 + DIOCGETRULESET = 0xc444443b + DIOCGETRULESETS = 0xc444443a + DIOCGETSRCNODES = 0xc0104454 + DIOCGETSTATE = 0xc1084413 + DIOCGETSTATES = 0xc0104419 + DIOCGETSTATUS = 0xc1e84415 + DIOCGETSYNFLWATS = 0xc0084463 + DIOCGETTIMEOUT = 0xc008441e + DIOCIGETIFACES = 0xc0284457 + DIOCKILLSRCNODES = 0xc080445b + DIOCKILLSTATES = 0xc0e04429 + DIOCNATLOOK = 0xc0504417 + DIOCOSFPADD = 0xc088444f + DIOCOSFPFLUSH = 0x2000444e + DIOCOSFPGET = 0xc0884450 + DIOCRADDADDRS = 0xc4504443 + DIOCRADDTABLES = 0xc450443d + DIOCRCLRADDRS = 0xc4504442 + DIOCRCLRASTATS = 0xc4504448 + DIOCRCLRTABLES = 0xc450443c + DIOCRCLRTSTATS = 0xc4504441 + DIOCRDELADDRS = 0xc4504444 + DIOCRDELTABLES = 0xc450443e + DIOCRGETADDRS = 0xc4504446 + DIOCRGETASTATS = 0xc4504447 + DIOCRGETTABLES = 0xc450443f + DIOCRGETTSTATS = 0xc4504440 + DIOCRINADEFINE = 0xc450444d + DIOCRSETADDRS = 0xc4504445 + DIOCRSETTFLAGS = 0xc450444a + DIOCRTSTADDRS = 0xc4504449 + DIOCSETDEBUG = 0xc0044418 + DIOCSETHOSTID = 0xc0044456 + DIOCSETIFFLAG = 0xc0284459 + DIOCSETLIMIT = 0xc0084428 + DIOCSETREASS = 0xc004445c + DIOCSETSTATUSIF = 0xc0284414 + DIOCSETSYNCOOKIES = 0xc0014462 + DIOCSETSYNFLWATS = 0xc0084461 + DIOCSETTIMEOUT = 0xc008441d + DIOCSTART = 0x20004401 + DIOCSTOP = 0x20004402 + DIOCXBEGIN = 0xc0104451 + DIOCXCOMMIT = 0xc0104452 + DIOCXROLLBACK = 0xc0104453 + DLT_ARCNET = 0x7 + DLT_ATM_RFC1483 = 0xb + DLT_AX25 = 0x3 + DLT_CHAOS = 0x5 + DLT_C_HDLC = 0x68 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0xd + DLT_FDDI = 0xa + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_LOOP = 0xc + DLT_MPLS = 0xdb + DLT_NULL = 0x0 + DLT_OPENFLOW = 0x10b + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0x10 + DLT_PPP_ETHER = 0x33 + DLT_PPP_SERIAL = 0x32 + DLT_PRONET = 0x4 + DLT_RAW = 0xe + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xf + DLT_USBPCAP = 0xf9 + DLT_USER0 = 0x93 + DLT_USER1 = 0x94 + DLT_USER10 = 0x9d + DLT_USER11 = 0x9e + DLT_USER12 = 0x9f + DLT_USER13 = 0xa0 + DLT_USER14 = 0xa1 + DLT_USER15 = 0xa2 + DLT_USER2 = 0x95 + DLT_USER3 = 0x96 + DLT_USER4 = 0x97 + DLT_USER5 = 0x98 + DLT_USER6 = 0x99 + DLT_USER7 = 0x9a + DLT_USER8 = 0x9b + DLT_USER9 = 0x9c + DT_BLK = 0x6 + DT_CHR = 0x2 + DT_DIR = 0x4 + DT_FIFO = 0x1 + DT_LNK = 0xa + DT_REG = 0x8 + DT_SOCK = 0xc + DT_UNKNOWN = 0x0 + ECHO = 0x8 + ECHOCTL = 0x40 + ECHOE = 0x2 + ECHOK = 0x4 + ECHOKE = 0x1 + ECHONL = 0x10 + ECHOPRT = 0x20 + EMT_TAGOVF = 0x1 + EMUL_ENABLED = 0x1 + EMUL_NATIVE = 0x2 + ENDRUNDISC = 0x9 + ETH64_8021_RSVD_MASK = 0xfffffffffff0 + ETH64_8021_RSVD_PREFIX = 0x180c2000000 + ETHERMIN = 0x2e + ETHERMTU = 0x5dc + ETHERTYPE_8023 = 0x4 + ETHERTYPE_AARP = 0x80f3 + ETHERTYPE_ACCTON = 0x8390 + ETHERTYPE_AEONIC = 0x8036 + ETHERTYPE_ALPHA = 0x814a + ETHERTYPE_AMBER = 0x6008 + ETHERTYPE_AMOEBA = 0x8145 + ETHERTYPE_AOE = 0x88a2 + ETHERTYPE_APOLLO = 0x80f7 + ETHERTYPE_APOLLODOMAIN = 0x8019 + ETHERTYPE_APPLETALK = 0x809b + ETHERTYPE_APPLITEK = 0x80c7 + ETHERTYPE_ARGONAUT = 0x803a + ETHERTYPE_ARP = 0x806 + ETHERTYPE_AT = 0x809b + ETHERTYPE_ATALK = 0x809b + ETHERTYPE_ATOMIC = 0x86df + ETHERTYPE_ATT = 0x8069 + ETHERTYPE_ATTSTANFORD = 0x8008 + ETHERTYPE_AUTOPHON = 0x806a + ETHERTYPE_AXIS = 0x8856 + ETHERTYPE_BCLOOP = 0x9003 + ETHERTYPE_BOFL = 0x8102 + ETHERTYPE_CABLETRON = 0x7034 + ETHERTYPE_CHAOS = 0x804 + ETHERTYPE_COMDESIGN = 0x806c + ETHERTYPE_COMPUGRAPHIC = 0x806d + ETHERTYPE_COUNTERPOINT = 0x8062 + ETHERTYPE_CRONUS = 0x8004 + ETHERTYPE_CRONUSVLN = 0x8003 + ETHERTYPE_DCA = 0x1234 + ETHERTYPE_DDE = 0x807b + ETHERTYPE_DEBNI = 0xaaaa + ETHERTYPE_DECAM = 0x8048 + ETHERTYPE_DECCUST = 0x6006 + ETHERTYPE_DECDIAG = 0x6005 + ETHERTYPE_DECDNS = 0x803c + ETHERTYPE_DECDTS = 0x803e + ETHERTYPE_DECEXPER = 0x6000 + ETHERTYPE_DECLAST = 0x8041 + ETHERTYPE_DECLTM = 0x803f + ETHERTYPE_DECMUMPS = 0x6009 + ETHERTYPE_DECNETBIOS = 0x8040 + ETHERTYPE_DELTACON = 0x86de + ETHERTYPE_DIDDLE = 0x4321 + ETHERTYPE_DLOG1 = 0x660 + ETHERTYPE_DLOG2 = 0x661 + ETHERTYPE_DN = 0x6003 + ETHERTYPE_DOGFIGHT = 0x1989 + ETHERTYPE_DSMD = 0x8039 + ETHERTYPE_EAPOL = 0x888e + ETHERTYPE_ECMA = 0x803 + ETHERTYPE_ENCRYPT = 0x803d + ETHERTYPE_ES = 0x805d + ETHERTYPE_EXCELAN = 0x8010 + ETHERTYPE_EXPERDATA = 0x8049 + ETHERTYPE_FLIP = 0x8146 + ETHERTYPE_FLOWCONTROL = 0x8808 + ETHERTYPE_FRARP = 0x808 + ETHERTYPE_GENDYN = 0x8068 + ETHERTYPE_HAYES = 0x8130 + ETHERTYPE_HIPPI_FP = 0x8180 + ETHERTYPE_HITACHI = 0x8820 + ETHERTYPE_HP = 0x8005 + ETHERTYPE_IEEEPUP = 0xa00 + ETHERTYPE_IEEEPUPAT = 0xa01 + ETHERTYPE_IMLBL = 0x4c42 + ETHERTYPE_IMLBLDIAG = 0x424c + ETHERTYPE_IP = 0x800 + ETHERTYPE_IPAS = 0x876c + ETHERTYPE_IPV6 = 0x86dd + ETHERTYPE_IPX = 0x8137 + ETHERTYPE_IPXNEW = 0x8037 + ETHERTYPE_KALPANA = 0x8582 + ETHERTYPE_LANBRIDGE = 0x8038 + ETHERTYPE_LANPROBE = 0x8888 + ETHERTYPE_LAT = 0x6004 + ETHERTYPE_LBACK = 0x9000 + ETHERTYPE_LITTLE = 0x8060 + ETHERTYPE_LLDP = 0x88cc + ETHERTYPE_LOGICRAFT = 0x8148 + ETHERTYPE_LOOPBACK = 0x9000 + ETHERTYPE_MACSEC = 0x88e5 + ETHERTYPE_MATRA = 0x807a + ETHERTYPE_MAX = 0xffff + ETHERTYPE_MERIT = 0x807c + ETHERTYPE_MICP = 0x873a + ETHERTYPE_MOPDL = 0x6001 + ETHERTYPE_MOPRC = 0x6002 + ETHERTYPE_MOTOROLA = 0x818d + ETHERTYPE_MPLS = 0x8847 + ETHERTYPE_MPLS_MCAST = 0x8848 + ETHERTYPE_MUMPS = 0x813f + ETHERTYPE_NBPCC = 0x3c04 + ETHERTYPE_NBPCLAIM = 0x3c09 + ETHERTYPE_NBPCLREQ = 0x3c05 + ETHERTYPE_NBPCLRSP = 0x3c06 + ETHERTYPE_NBPCREQ = 0x3c02 + ETHERTYPE_NBPCRSP = 0x3c03 + ETHERTYPE_NBPDG = 0x3c07 + ETHERTYPE_NBPDGB = 0x3c08 + ETHERTYPE_NBPDLTE = 0x3c0a + ETHERTYPE_NBPRAR = 0x3c0c + ETHERTYPE_NBPRAS = 0x3c0b + ETHERTYPE_NBPRST = 0x3c0d + ETHERTYPE_NBPSCD = 0x3c01 + ETHERTYPE_NBPVCD = 0x3c00 + ETHERTYPE_NBS = 0x802 + ETHERTYPE_NCD = 0x8149 + ETHERTYPE_NESTAR = 0x8006 + ETHERTYPE_NETBEUI = 0x8191 + ETHERTYPE_NHRP = 0x2001 + ETHERTYPE_NOVELL = 0x8138 + ETHERTYPE_NS = 0x600 + ETHERTYPE_NSAT = 0x601 + ETHERTYPE_NSCOMPAT = 0x807 + ETHERTYPE_NSH = 0x984f + ETHERTYPE_NTRAILER = 0x10 + ETHERTYPE_OS9 = 0x7007 + ETHERTYPE_OS9NET = 0x7009 + ETHERTYPE_PACER = 0x80c6 + ETHERTYPE_PBB = 0x88e7 + ETHERTYPE_PCS = 0x4242 + ETHERTYPE_PLANNING = 0x8044 + ETHERTYPE_PPP = 0x880b + ETHERTYPE_PPPOE = 0x8864 + ETHERTYPE_PPPOEDISC = 0x8863 + ETHERTYPE_PRIMENTS = 0x7031 + ETHERTYPE_PUP = 0x200 + ETHERTYPE_PUPAT = 0x200 + ETHERTYPE_QINQ = 0x88a8 + ETHERTYPE_RACAL = 0x7030 + ETHERTYPE_RATIONAL = 0x8150 + ETHERTYPE_RAWFR = 0x6559 + ETHERTYPE_RCL = 0x1995 + ETHERTYPE_RDP = 0x8739 + ETHERTYPE_RETIX = 0x80f2 + ETHERTYPE_REVARP = 0x8035 + ETHERTYPE_SCA = 0x6007 + ETHERTYPE_SECTRA = 0x86db + ETHERTYPE_SECUREDATA = 0x876d + ETHERTYPE_SGITW = 0x817e + ETHERTYPE_SG_BOUNCE = 0x8016 + ETHERTYPE_SG_DIAG = 0x8013 + ETHERTYPE_SG_NETGAMES = 0x8014 + ETHERTYPE_SG_RESV = 0x8015 + ETHERTYPE_SIMNET = 0x5208 + ETHERTYPE_SLOW = 0x8809 + ETHERTYPE_SNA = 0x80d5 + ETHERTYPE_SNMP = 0x814c + ETHERTYPE_SONIX = 0xfaf5 + ETHERTYPE_SPIDER = 0x809f + ETHERTYPE_SPRITE = 0x500 + ETHERTYPE_STP = 0x8181 + ETHERTYPE_TALARIS = 0x812b + ETHERTYPE_TALARISMC = 0x852b + ETHERTYPE_TCPCOMP = 0x876b + ETHERTYPE_TCPSM = 0x9002 + ETHERTYPE_TEC = 0x814f + ETHERTYPE_TIGAN = 0x802f + ETHERTYPE_TRAIL = 0x1000 + ETHERTYPE_TRANSETHER = 0x6558 + ETHERTYPE_TYMSHARE = 0x802e + ETHERTYPE_UBBST = 0x7005 + ETHERTYPE_UBDEBUG = 0x900 + ETHERTYPE_UBDIAGLOOP = 0x7002 + ETHERTYPE_UBDL = 0x7000 + ETHERTYPE_UBNIU = 0x7001 + ETHERTYPE_UBNMC = 0x7003 + ETHERTYPE_VALID = 0x1600 + ETHERTYPE_VARIAN = 0x80dd + ETHERTYPE_VAXELN = 0x803b + ETHERTYPE_VEECO = 0x8067 + ETHERTYPE_VEXP = 0x805b + ETHERTYPE_VGLAB = 0x8131 + ETHERTYPE_VINES = 0xbad + ETHERTYPE_VINESECHO = 0xbaf + ETHERTYPE_VINESLOOP = 0xbae + ETHERTYPE_VITAL = 0xff00 + ETHERTYPE_VLAN = 0x8100 + ETHERTYPE_VLTLMAN = 0x8080 + ETHERTYPE_VPROD = 0x805c + ETHERTYPE_VURESERVED = 0x8147 + ETHERTYPE_WATERLOO = 0x8130 + ETHERTYPE_WELLFLEET = 0x8103 + ETHERTYPE_X25 = 0x805 + ETHERTYPE_X75 = 0x801 + ETHERTYPE_XNSSM = 0x9001 + ETHERTYPE_XTP = 0x817d + ETHER_ADDR_LEN = 0x6 + ETHER_ALIGN = 0x2 + ETHER_CRC_LEN = 0x4 + ETHER_CRC_POLY_BE = 0x4c11db6 + ETHER_CRC_POLY_LE = 0xedb88320 + ETHER_HDR_LEN = 0xe + ETHER_MAX_DIX_LEN = 0x600 + ETHER_MAX_HARDMTU_LEN = 0xff9b + ETHER_MAX_LEN = 0x5ee + ETHER_MIN_LEN = 0x40 + ETHER_TYPE_LEN = 0x2 + ETHER_VLAN_ENCAP_LEN = 0x4 + EVFILT_AIO = -0x3 + EVFILT_DEVICE = -0x8 + EVFILT_EXCEPT = -0x9 + EVFILT_PROC = -0x5 + EVFILT_READ = -0x1 + EVFILT_SIGNAL = -0x6 + EVFILT_SYSCOUNT = 0x9 + EVFILT_TIMER = -0x7 + EVFILT_VNODE = -0x4 + EVFILT_WRITE = -0x2 + EVL_ENCAPLEN = 0x4 + EVL_PRIO_BITS = 0xd + EVL_PRIO_MAX = 0x7 + EVL_VLID_MASK = 0xfff + EVL_VLID_MAX = 0xffe + EVL_VLID_MIN = 0x1 + EVL_VLID_NULL = 0x0 + EV_ADD = 0x1 + EV_CLEAR = 0x20 + EV_DELETE = 0x2 + EV_DISABLE = 0x8 + EV_DISPATCH = 0x80 + EV_ENABLE = 0x4 + EV_EOF = 0x8000 + EV_ERROR = 0x4000 + EV_FLAG1 = 0x2000 + EV_ONESHOT = 0x10 + EV_RECEIPT = 0x40 + EV_SYSFLAGS = 0xf800 + EXTA = 0x4b00 + EXTB = 0x9600 + EXTPROC = 0x800 + FD_CLOEXEC = 0x1 + FD_SETSIZE = 0x400 + FLUSHO = 0x800000 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0xa + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0x7 + F_GETOWN = 0x5 + F_ISATTY = 0xb + F_OK = 0x0 + F_RDLCK = 0x1 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x8 + F_SETLKW = 0x9 + F_SETOWN = 0x6 + F_UNLCK = 0x2 + F_WRLCK = 0x3 + HUPCL = 0x4000 + HW_MACHINE = 0x1 + ICANON = 0x100 + ICMP6_FILTER = 0x12 + ICRNL = 0x100 + IEXTEN = 0x400 + IFAN_ARRIVAL = 0x0 + IFAN_DEPARTURE = 0x1 + IFF_ALLMULTI = 0x200 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x8e52 + IFF_DEBUG = 0x4 + IFF_LINK0 = 0x1000 + IFF_LINK1 = 0x2000 + IFF_LINK2 = 0x4000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x8000 + IFF_NOARP = 0x80 + IFF_OACTIVE = 0x400 + IFF_POINTOPOINT = 0x10 + IFF_PROMISC = 0x100 + IFF_RUNNING = 0x40 + IFF_SIMPLEX = 0x800 + IFF_STATICARP = 0x20 + IFF_UP = 0x1 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_A12MPPSWITCH = 0x82 + IFT_AAL2 = 0xbb + IFT_AAL5 = 0x31 + IFT_ADSL = 0x5e + IFT_AFLANE8023 = 0x3b + IFT_AFLANE8025 = 0x3c + IFT_ARAP = 0x58 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ASYNC = 0x54 + IFT_ATM = 0x25 + IFT_ATMDXI = 0x69 + IFT_ATMFUNI = 0x6a + IFT_ATMIMA = 0x6b + IFT_ATMLOGICAL = 0x50 + IFT_ATMRADIO = 0xbd + IFT_ATMSUBINTERFACE = 0x86 + IFT_ATMVCIENDPT = 0xc2 + IFT_ATMVIRTUAL = 0x95 + IFT_BGPPOLICYACCOUNTING = 0xa2 + IFT_BLUETOOTH = 0xf8 + IFT_BRIDGE = 0xd1 + IFT_BSC = 0x53 + IFT_CARP = 0xf7 + IFT_CCTEMUL = 0x3d + IFT_CEPT = 0x13 + IFT_CES = 0x85 + IFT_CHANNEL = 0x46 + IFT_CNR = 0x55 + IFT_COFFEE = 0x84 + IFT_COMPOSITELINK = 0x9b + IFT_DCN = 0x8d + IFT_DIGITALPOWERLINE = 0x8a + IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba + IFT_DLSW = 0x4a + IFT_DOCSCABLEDOWNSTREAM = 0x80 + IFT_DOCSCABLEMACLAYER = 0x7f + IFT_DOCSCABLEUPSTREAM = 0x81 + IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd + IFT_DS0 = 0x51 + IFT_DS0BUNDLE = 0x52 + IFT_DS1FDL = 0xaa + IFT_DS3 = 0x1e + IFT_DTM = 0x8c + IFT_DUMMY = 0xf1 + IFT_DVBASILN = 0xac + IFT_DVBASIOUT = 0xad + IFT_DVBRCCDOWNSTREAM = 0x93 + IFT_DVBRCCMACLAYER = 0x92 + IFT_DVBRCCUPSTREAM = 0x94 + IFT_ECONET = 0xce + IFT_ENC = 0xf4 + IFT_EON = 0x19 + IFT_EPLRS = 0x57 + IFT_ESCON = 0x49 + IFT_ETHER = 0x6 + IFT_FAITH = 0xf3 + IFT_FAST = 0x7d + IFT_FASTETHER = 0x3e + IFT_FASTETHERFX = 0x45 + IFT_FDDI = 0xf + IFT_FIBRECHANNEL = 0x38 + IFT_FRAMERELAYINTERCONNECT = 0x3a + IFT_FRAMERELAYMPI = 0x5c + IFT_FRDLCIENDPT = 0xc1 + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_FRF16MFRBUNDLE = 0xa3 + IFT_FRFORWARD = 0x9e + IFT_G703AT2MB = 0x43 + IFT_G703AT64K = 0x42 + IFT_GIF = 0xf0 + IFT_GIGABITETHERNET = 0x75 + IFT_GR303IDT = 0xb2 + IFT_GR303RDT = 0xb1 + IFT_H323GATEKEEPER = 0xa4 + IFT_H323PROXY = 0xa5 + IFT_HDH1822 = 0x3 + IFT_HDLC = 0x76 + IFT_HDSL2 = 0xa8 + IFT_HIPERLAN2 = 0xb7 + IFT_HIPPI = 0x2f + IFT_HIPPIINTERFACE = 0x39 + IFT_HOSTPAD = 0x5a + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IBM370PARCHAN = 0x48 + IFT_IDSL = 0x9a + IFT_IEEE1394 = 0x90 + IFT_IEEE80211 = 0x47 + IFT_IEEE80212 = 0x37 + IFT_IEEE8023ADLAG = 0xa1 + IFT_IFGSN = 0x91 + IFT_IMT = 0xbe + IFT_INFINIBAND = 0xc7 + IFT_INTERLEAVE = 0x7c + IFT_IP = 0x7e + IFT_IPFORWARD = 0x8e + IFT_IPOVERATM = 0x72 + IFT_IPOVERCDLC = 0x6d + IFT_IPOVERCLAW = 0x6e + IFT_IPSWITCH = 0x4e + IFT_ISDN = 0x3f + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISDNS = 0x4b + IFT_ISDNU = 0x4c + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88025CRFPINT = 0x62 + IFT_ISO88025DTR = 0x56 + IFT_ISO88025FIBER = 0x73 + IFT_ISO88026 = 0xa + IFT_ISUP = 0xb3 + IFT_L2VLAN = 0x87 + IFT_L3IPVLAN = 0x88 + IFT_L3IPXVLAN = 0x89 + IFT_LAPB = 0x10 + IFT_LAPD = 0x4d + IFT_LAPF = 0x77 + IFT_LINEGROUP = 0xd2 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MBIM = 0xfa + IFT_MEDIAMAILOVERIP = 0x8b + IFT_MFSIGLINK = 0xa7 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_MPC = 0x71 + IFT_MPLS = 0xa6 + IFT_MPLSTUNNEL = 0x96 + IFT_MSDSL = 0x8f + IFT_MVL = 0xbf + IFT_MYRINET = 0x63 + IFT_NFAS = 0xaf + IFT_NSIP = 0x1b + IFT_OPTICALCHANNEL = 0xc3 + IFT_OPTICALTRANSPORT = 0xc4 + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PFLOG = 0xf5 + IFT_PFLOW = 0xf9 + IFT_PFSYNC = 0xf6 + IFT_PLC = 0xae + IFT_PON155 = 0xcf + IFT_PON622 = 0xd0 + IFT_POS = 0xab + IFT_PPP = 0x17 + IFT_PPPMULTILINKBUNDLE = 0x6c + IFT_PROPATM = 0xc5 + IFT_PROPBWAP2MP = 0xb8 + IFT_PROPCNLS = 0x59 + IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 + IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 + IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PROPWIRELESSP2P = 0x9d + IFT_PTPSERIAL = 0x16 + IFT_PVC = 0xf2 + IFT_Q2931 = 0xc9 + IFT_QLLC = 0x44 + IFT_RADIOMAC = 0xbc + IFT_RADSL = 0x5f + IFT_REACHDSL = 0xc0 + IFT_RFC1483 = 0x9f + IFT_RS232 = 0x21 + IFT_RSRB = 0x4f + IFT_SDLC = 0x11 + IFT_SDSL = 0x60 + IFT_SHDSL = 0xa9 + IFT_SIP = 0x1f + IFT_SIPSIG = 0xcc + IFT_SIPTG = 0xcb + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETOVERHEADCHANNEL = 0xb9 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_SRP = 0x97 + IFT_SS7SIGLINK = 0x9c + IFT_STACKTOSTACK = 0x6f + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_TDLC = 0x74 + IFT_TELINK = 0xc8 + IFT_TERMPAD = 0x5b + IFT_TR008 = 0xb0 + IFT_TRANSPHDLC = 0x7b + IFT_TUNNEL = 0x83 + IFT_ULTRA = 0x1d + IFT_USB = 0xa0 + IFT_V11 = 0x40 + IFT_V35 = 0x2d + IFT_V36 = 0x41 + IFT_V37 = 0x78 + IFT_VDSL = 0x61 + IFT_VIRTUALIPADDRESS = 0x70 + IFT_VIRTUALTG = 0xca + IFT_VOICEDID = 0xd5 + IFT_VOICEEM = 0x64 + IFT_VOICEEMFGD = 0xd3 + IFT_VOICEENCAP = 0x67 + IFT_VOICEFGDEANA = 0xd4 + IFT_VOICEFXO = 0x65 + IFT_VOICEFXS = 0x66 + IFT_VOICEOVERATM = 0x98 + IFT_VOICEOVERCABLE = 0xc6 + IFT_VOICEOVERFRAMERELAY = 0x99 + IFT_VOICEOVERIP = 0x68 + IFT_WIREGUARD = 0xfb + IFT_X213 = 0x5d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25HUNTGROUP = 0x7a + IFT_X25MLP = 0x79 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_LOOPBACKNET = 0x7f + IN_RFC3021_HOST = 0x1 + IN_RFC3021_NET = 0xfffffffe + IN_RFC3021_NSHIFT = 0x1f + IPPROTO_AH = 0x33 + IPPROTO_CARP = 0x70 + IPPROTO_DIVERT = 0x102 + IPPROTO_DONE = 0x101 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x62 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_ETHERIP = 0x61 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_GRE = 0x2f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPCOMP = 0x6c + IPPROTO_IPIP = 0x4 + IPPROTO_IPV4 = 0x4 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_MAXID = 0x103 + IPPROTO_MOBILE = 0x37 + IPPROTO_MPLS = 0x89 + IPPROTO_NONE = 0x3b + IPPROTO_PFSYNC = 0xf0 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_TP = 0x1d + IPPROTO_UDP = 0x11 + IPPROTO_UDPLITE = 0x88 + IPV6_AUTH_LEVEL = 0x35 + IPV6_AUTOFLOWLABEL = 0x3b + IPV6_CHECKSUM = 0x1a + IPV6_DEFAULT_MULTICAST_HOPS = 0x1 + IPV6_DEFAULT_MULTICAST_LOOP = 0x1 + IPV6_DEFHLIM = 0x40 + IPV6_DONTFRAG = 0x3e + IPV6_DSTOPTS = 0x32 + IPV6_ESP_NETWORK_LEVEL = 0x37 + IPV6_ESP_TRANS_LEVEL = 0x36 + IPV6_FAITH = 0x1d + IPV6_FLOWINFO_MASK = 0xffffff0f + IPV6_FLOWLABEL_MASK = 0xffff0f00 + IPV6_FRAGTTL = 0x78 + IPV6_HLIMDEC = 0x1 + IPV6_HOPLIMIT = 0x2f + IPV6_HOPOPTS = 0x31 + IPV6_IPCOMP_LEVEL = 0x3c + IPV6_JOIN_GROUP = 0xc + IPV6_LEAVE_GROUP = 0xd + IPV6_MAXHLIM = 0xff + IPV6_MAXPACKET = 0xffff + IPV6_MINHOPCOUNT = 0x41 + IPV6_MMTU = 0x500 + IPV6_MULTICAST_HOPS = 0xa + IPV6_MULTICAST_IF = 0x9 + IPV6_MULTICAST_LOOP = 0xb + IPV6_NEXTHOP = 0x30 + IPV6_OPTIONS = 0x1 + IPV6_PATHMTU = 0x2c + IPV6_PIPEX = 0x3f + IPV6_PKTINFO = 0x2e + IPV6_PORTRANGE = 0xe + IPV6_PORTRANGE_DEFAULT = 0x0 + IPV6_PORTRANGE_HIGH = 0x1 + IPV6_PORTRANGE_LOW = 0x2 + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVDSTPORT = 0x40 + IPV6_RECVHOPLIMIT = 0x25 + IPV6_RECVHOPOPTS = 0x27 + IPV6_RECVPATHMTU = 0x2b + IPV6_RECVPKTINFO = 0x24 + IPV6_RECVRTHDR = 0x26 + IPV6_RECVTCLASS = 0x39 + IPV6_RTABLE = 0x1021 + IPV6_RTHDR = 0x33 + IPV6_RTHDRDSTOPTS = 0x23 + IPV6_RTHDR_LOOSE = 0x0 + IPV6_RTHDR_STRICT = 0x1 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SOCKOPT_RESERVED1 = 0x3 + IPV6_TCLASS = 0x3d + IPV6_UNICAST_HOPS = 0x4 + IPV6_USE_MIN_MTU = 0x2a + IPV6_V6ONLY = 0x1b + IPV6_VERSION = 0x60 + IPV6_VERSION_MASK = 0xf0 + IP_ADD_MEMBERSHIP = 0xc + IP_AUTH_LEVEL = 0x14 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DROP_MEMBERSHIP = 0xd + IP_ESP_NETWORK_LEVEL = 0x16 + IP_ESP_TRANS_LEVEL = 0x15 + IP_HDRINCL = 0x2 + IP_IPCOMP_LEVEL = 0x1d + IP_IPDEFTTL = 0x25 + IP_IPSECFLOWINFO = 0x24 + IP_IPSEC_LOCAL_AUTH = 0x1b + IP_IPSEC_LOCAL_CRED = 0x19 + IP_IPSEC_LOCAL_ID = 0x17 + IP_IPSEC_REMOTE_AUTH = 0x1c + IP_IPSEC_REMOTE_CRED = 0x1a + IP_IPSEC_REMOTE_ID = 0x18 + IP_MAXPACKET = 0xffff + IP_MAX_MEMBERSHIPS = 0xfff + IP_MF = 0x2000 + IP_MINTTL = 0x20 + IP_MIN_MEMBERSHIPS = 0xf + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x9 + IP_MULTICAST_LOOP = 0xb + IP_MULTICAST_TTL = 0xa + IP_OFFMASK = 0x1fff + IP_OPTIONS = 0x1 + IP_PIPEX = 0x22 + IP_PORTRANGE = 0x13 + IP_PORTRANGE_DEFAULT = 0x0 + IP_PORTRANGE_HIGH = 0x1 + IP_PORTRANGE_LOW = 0x2 + IP_RECVDSTADDR = 0x7 + IP_RECVDSTPORT = 0x21 + IP_RECVIF = 0x1e + IP_RECVOPTS = 0x5 + IP_RECVRETOPTS = 0x6 + IP_RECVRTABLE = 0x23 + IP_RECVTTL = 0x1f + IP_RETOPTS = 0x8 + IP_RF = 0x8000 + IP_RTABLE = 0x1021 + IP_SENDSRCADDR = 0x7 + IP_TOS = 0x3 + IP_TTL = 0x4 + ISIG = 0x80 + ISTRIP = 0x20 + ITIMER_PROF = 0x2 + ITIMER_REAL = 0x0 + ITIMER_VIRTUAL = 0x1 + IUCLC = 0x1000 + IXANY = 0x800 + IXOFF = 0x400 + IXON = 0x200 + KERN_HOSTNAME = 0xa + KERN_OSRELEASE = 0x2 + KERN_OSTYPE = 0x1 + KERN_VERSION = 0x4 + LCNT_OVERLOAD_FLUSH = 0x6 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x6 + MADV_NORMAL = 0x0 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_SPACEAVAIL = 0x5 + MADV_WILLNEED = 0x3 + MAP_ANON = 0x1000 + MAP_ANONYMOUS = 0x1000 + MAP_CONCEAL = 0x8000 + MAP_COPY = 0x2 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_FLAGMASK = 0xfff7 + MAP_HASSEMAPHORE = 0x0 + MAP_INHERIT = 0x0 + MAP_INHERIT_COPY = 0x1 + MAP_INHERIT_NONE = 0x2 + MAP_INHERIT_SHARE = 0x0 + MAP_INHERIT_ZERO = 0x3 + MAP_NOEXTEND = 0x0 + MAP_NORESERVE = 0x0 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x0 + MAP_SHARED = 0x1 + MAP_STACK = 0x4000 + MAP_TRYFIXED = 0x0 + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MNT_ASYNC = 0x40 + MNT_DEFEXPORTED = 0x200 + MNT_DELEXPORT = 0x20000 + MNT_DOOMED = 0x8000000 + MNT_EXPORTANON = 0x400 + MNT_EXPORTED = 0x100 + MNT_EXRDONLY = 0x80 + MNT_FORCE = 0x80000 + MNT_LAZY = 0x3 + MNT_LOCAL = 0x1000 + MNT_NOATIME = 0x8000 + MNT_NODEV = 0x10 + MNT_NOEXEC = 0x4 + MNT_NOPERM = 0x20 + MNT_NOSUID = 0x8 + MNT_NOWAIT = 0x2 + MNT_QUOTA = 0x2000 + MNT_RDONLY = 0x1 + MNT_RELOAD = 0x40000 + MNT_ROOTFS = 0x4000 + MNT_SOFTDEP = 0x4000000 + MNT_STALLED = 0x100000 + MNT_SWAPPABLE = 0x200000 + MNT_SYNCHRONOUS = 0x2 + MNT_UPDATE = 0x10000 + MNT_VISFLAGMASK = 0x400ffff + MNT_WAIT = 0x1 + MNT_WANTRDWR = 0x2000000 + MNT_WXALLOWED = 0x800 + MOUNT_AFS = "afs" + MOUNT_CD9660 = "cd9660" + MOUNT_EXT2FS = "ext2fs" + MOUNT_FFS = "ffs" + MOUNT_FUSEFS = "fuse" + MOUNT_MFS = "mfs" + MOUNT_MSDOS = "msdos" + MOUNT_NCPFS = "ncpfs" + MOUNT_NFS = "nfs" + MOUNT_NTFS = "ntfs" + MOUNT_TMPFS = "tmpfs" + MOUNT_UDF = "udf" + MOUNT_UFS = "ffs" + MSG_BCAST = 0x100 + MSG_CMSG_CLOEXEC = 0x800 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_EOR = 0x8 + MSG_MCAST = 0x200 + MSG_NOSIGNAL = 0x400 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x4 + MS_SYNC = 0x2 + NAME_MAX = 0xff + NET_RT_DUMP = 0x1 + NET_RT_FLAGS = 0x2 + NET_RT_IFLIST = 0x3 + NET_RT_IFNAMES = 0x6 + NET_RT_MAXID = 0x8 + NET_RT_SOURCE = 0x7 + NET_RT_STATS = 0x4 + NET_RT_TABLE = 0x5 + NFDBITS = 0x20 + NOFLSH = 0x80000000 + NOKERNINFO = 0x2000000 + NOTE_ATTRIB = 0x8 + NOTE_CHANGE = 0x1 + NOTE_CHILD = 0x4 + NOTE_DELETE = 0x1 + NOTE_EOF = 0x2 + NOTE_EXEC = 0x20000000 + NOTE_EXIT = 0x80000000 + NOTE_EXTEND = 0x4 + NOTE_FORK = 0x40000000 + NOTE_LINK = 0x10 + NOTE_LOWAT = 0x1 + NOTE_OOB = 0x4 + NOTE_PCTRLMASK = 0xf0000000 + NOTE_PDATAMASK = 0xfffff + NOTE_RENAME = 0x20 + NOTE_REVOKE = 0x40 + NOTE_TRACK = 0x1 + NOTE_TRACKERR = 0x2 + NOTE_TRUNCATE = 0x80 + NOTE_WRITE = 0x2 + OCRNL = 0x10 + OLCUC = 0x20 + ONLCR = 0x2 + ONLRET = 0x80 + ONOCR = 0x40 + ONOEOT = 0x8 + OPOST = 0x1 + OXTABS = 0x4 + O_ACCMODE = 0x3 + O_APPEND = 0x8 + O_ASYNC = 0x40 + O_CLOEXEC = 0x10000 + O_CREAT = 0x200 + O_DIRECTORY = 0x20000 + O_DSYNC = 0x80 + O_EXCL = 0x800 + O_EXLOCK = 0x20 + O_FSYNC = 0x80 + O_NDELAY = 0x4 + O_NOCTTY = 0x8000 + O_NOFOLLOW = 0x100 + O_NONBLOCK = 0x4 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x80 + O_SHLOCK = 0x10 + O_SYNC = 0x80 + O_TRUNC = 0x400 + O_WRONLY = 0x1 + PARENB = 0x1000 + PARMRK = 0x8 + PARODD = 0x2000 + PENDIN = 0x20000000 + PF_FLUSH = 0x1 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_MEMLOCK = 0x6 + RLIMIT_NOFILE = 0x8 + RLIMIT_NPROC = 0x7 + RLIMIT_RSS = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0x7fffffffffffffff + RTAX_AUTHOR = 0x6 + RTAX_BFD = 0xb + RTAX_BRD = 0x7 + RTAX_DNS = 0xc + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_LABEL = 0xa + RTAX_MAX = 0xf + RTAX_NETMASK = 0x2 + RTAX_SEARCH = 0xe + RTAX_SRC = 0x8 + RTAX_SRCMASK = 0x9 + RTAX_STATIC = 0xd + RTA_AUTHOR = 0x40 + RTA_BFD = 0x800 + RTA_BRD = 0x80 + RTA_DNS = 0x1000 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_LABEL = 0x400 + RTA_NETMASK = 0x4 + RTA_SEARCH = 0x4000 + RTA_SRC = 0x100 + RTA_SRCMASK = 0x200 + RTA_STATIC = 0x2000 + RTF_ANNOUNCE = 0x4000 + RTF_BFD = 0x1000000 + RTF_BLACKHOLE = 0x1000 + RTF_BROADCAST = 0x400000 + RTF_CACHED = 0x20000 + RTF_CLONED = 0x10000 + RTF_CLONING = 0x100 + RTF_CONNECTED = 0x800000 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_FMASK = 0x110fc08 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_LLINFO = 0x400 + RTF_LOCAL = 0x200000 + RTF_MODIFIED = 0x20 + RTF_MPATH = 0x40000 + RTF_MPLS = 0x100000 + RTF_MULTICAST = 0x200 + RTF_PERMANENT_ARP = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_PROTO3 = 0x2000 + RTF_REJECT = 0x8 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_USETRAILERS = 0x8000 + RTM_80211INFO = 0x15 + RTM_ADD = 0x1 + RTM_BFD = 0x12 + RTM_CHANGE = 0x3 + RTM_CHGADDRATTR = 0x14 + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_DESYNC = 0x10 + RTM_GET = 0x4 + RTM_IFANNOUNCE = 0xf + RTM_IFINFO = 0xe + RTM_INVALIDATE = 0x11 + RTM_LOSING = 0x5 + RTM_MAXSIZE = 0x800 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_PROPOSAL = 0x13 + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_SOURCE = 0x16 + RTM_VERSION = 0x5 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_TABLEID_BITS = 0x8 + RT_TABLEID_MASK = 0xff + RT_TABLEID_MAX = 0xff + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + RUSAGE_THREAD = 0x1 + SCM_RIGHTS = 0x1 + SCM_TIMESTAMP = 0x4 + SEEK_CUR = 0x1 + SEEK_END = 0x2 + SEEK_SET = 0x0 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIOCADDMULTI = 0x80206931 + SIOCAIFADDR = 0x8040691a + SIOCAIFGROUP = 0x80286987 + SIOCATMARK = 0x40047307 + SIOCBRDGADD = 0x8060693c + SIOCBRDGADDL = 0x80606949 + SIOCBRDGADDS = 0x80606941 + SIOCBRDGARL = 0x808c694d + SIOCBRDGDADDR = 0x81286947 + SIOCBRDGDEL = 0x8060693d + SIOCBRDGDELS = 0x80606942 + SIOCBRDGFLUSH = 0x80606948 + SIOCBRDGFRL = 0x808c694e + SIOCBRDGGCACHE = 0xc0146941 + SIOCBRDGGFD = 0xc0146952 + SIOCBRDGGHT = 0xc0146951 + SIOCBRDGGIFFLGS = 0xc060693e + SIOCBRDGGMA = 0xc0146953 + SIOCBRDGGPARAM = 0xc0406958 + SIOCBRDGGPRI = 0xc0146950 + SIOCBRDGGRL = 0xc030694f + SIOCBRDGGTO = 0xc0146946 + SIOCBRDGIFS = 0xc0606942 + SIOCBRDGRTS = 0xc0206943 + SIOCBRDGSADDR = 0xc1286944 + SIOCBRDGSCACHE = 0x80146940 + SIOCBRDGSFD = 0x80146952 + SIOCBRDGSHT = 0x80146951 + SIOCBRDGSIFCOST = 0x80606955 + SIOCBRDGSIFFLGS = 0x8060693f + SIOCBRDGSIFPRIO = 0x80606954 + SIOCBRDGSIFPROT = 0x8060694a + SIOCBRDGSMA = 0x80146953 + SIOCBRDGSPRI = 0x80146950 + SIOCBRDGSPROTO = 0x8014695a + SIOCBRDGSTO = 0x80146945 + SIOCBRDGSTXHC = 0x80146959 + SIOCDELLABEL = 0x80206997 + SIOCDELMULTI = 0x80206932 + SIOCDIFADDR = 0x80206919 + SIOCDIFGROUP = 0x80286989 + SIOCDIFPARENT = 0x802069b4 + SIOCDIFPHYADDR = 0x80206949 + SIOCDPWE3NEIGHBOR = 0x802069de + SIOCDVNETID = 0x802069af + SIOCGETKALIVE = 0xc01869a4 + SIOCGETLABEL = 0x8020699a + SIOCGETMPWCFG = 0xc02069ae + SIOCGETPFLOW = 0xc02069fe + SIOCGETPFSYNC = 0xc02069f8 + SIOCGETSGCNT = 0xc0207534 + SIOCGETVIFCNT = 0xc0287533 + SIOCGETVLAN = 0xc0206990 + SIOCGIFADDR = 0xc0206921 + SIOCGIFBRDADDR = 0xc0206923 + SIOCGIFCONF = 0xc0106924 + SIOCGIFDATA = 0xc020691b + SIOCGIFDESCR = 0xc0206981 + SIOCGIFDSTADDR = 0xc0206922 + SIOCGIFFLAGS = 0xc0206911 + SIOCGIFGATTR = 0xc028698b + SIOCGIFGENERIC = 0xc020693a + SIOCGIFGLIST = 0xc028698d + SIOCGIFGMEMB = 0xc028698a + SIOCGIFGROUP = 0xc0286988 + SIOCGIFHARDMTU = 0xc02069a5 + SIOCGIFLLPRIO = 0xc02069b6 + SIOCGIFMEDIA = 0xc0406938 + SIOCGIFMETRIC = 0xc0206917 + SIOCGIFMTU = 0xc020697e + SIOCGIFNETMASK = 0xc0206925 + SIOCGIFPAIR = 0xc02069b1 + SIOCGIFPARENT = 0xc02069b3 + SIOCGIFPRIORITY = 0xc020699c + SIOCGIFRDOMAIN = 0xc02069a0 + SIOCGIFRTLABEL = 0xc0206983 + SIOCGIFRXR = 0x802069aa + SIOCGIFSFFPAGE = 0xc1126939 + SIOCGIFXFLAGS = 0xc020699e + SIOCGLIFPHYADDR = 0xc218694b + SIOCGLIFPHYDF = 0xc02069c2 + SIOCGLIFPHYECN = 0xc02069c8 + SIOCGLIFPHYRTABLE = 0xc02069a2 + SIOCGLIFPHYTTL = 0xc02069a9 + SIOCGPGRP = 0x40047309 + SIOCGPWE3 = 0xc0206998 + SIOCGPWE3CTRLWORD = 0xc02069dc + SIOCGPWE3FAT = 0xc02069dd + SIOCGPWE3NEIGHBOR = 0xc21869de + SIOCGRXHPRIO = 0xc02069db + SIOCGSPPPPARAMS = 0xc0206994 + SIOCGTXHPRIO = 0xc02069c6 + SIOCGUMBINFO = 0xc02069be + SIOCGUMBPARAM = 0xc02069c0 + SIOCGVH = 0xc02069f6 + SIOCGVNETFLOWID = 0xc02069c4 + SIOCGVNETID = 0xc02069a7 + SIOCIFAFATTACH = 0x801169ab + SIOCIFAFDETACH = 0x801169ac + SIOCIFCREATE = 0x8020697a + SIOCIFDESTROY = 0x80206979 + SIOCIFGCLONERS = 0xc0106978 + SIOCSETKALIVE = 0x801869a3 + SIOCSETLABEL = 0x80206999 + SIOCSETMPWCFG = 0x802069ad + SIOCSETPFLOW = 0x802069fd + SIOCSETPFSYNC = 0x802069f7 + SIOCSETVLAN = 0x8020698f + SIOCSIFADDR = 0x8020690c + SIOCSIFBRDADDR = 0x80206913 + SIOCSIFDESCR = 0x80206980 + SIOCSIFDSTADDR = 0x8020690e + SIOCSIFFLAGS = 0x80206910 + SIOCSIFGATTR = 0x8028698c + SIOCSIFGENERIC = 0x80206939 + SIOCSIFLLADDR = 0x8020691f + SIOCSIFLLPRIO = 0x802069b5 + SIOCSIFMEDIA = 0xc0206937 + SIOCSIFMETRIC = 0x80206918 + SIOCSIFMTU = 0x8020697f + SIOCSIFNETMASK = 0x80206916 + SIOCSIFPAIR = 0x802069b0 + SIOCSIFPARENT = 0x802069b2 + SIOCSIFPRIORITY = 0x8020699b + SIOCSIFRDOMAIN = 0x8020699f + SIOCSIFRTLABEL = 0x80206982 + SIOCSIFXFLAGS = 0x8020699d + SIOCSLIFPHYADDR = 0x8218694a + SIOCSLIFPHYDF = 0x802069c1 + SIOCSLIFPHYECN = 0x802069c7 + SIOCSLIFPHYRTABLE = 0x802069a1 + SIOCSLIFPHYTTL = 0x802069a8 + SIOCSPGRP = 0x80047308 + SIOCSPWE3CTRLWORD = 0x802069dc + SIOCSPWE3FAT = 0x802069dd + SIOCSPWE3NEIGHBOR = 0x821869de + SIOCSRXHPRIO = 0x802069db + SIOCSSPPPPARAMS = 0x80206993 + SIOCSTXHPRIO = 0x802069c5 + SIOCSUMBPARAM = 0x802069bf + SIOCSVH = 0xc02069f5 + SIOCSVNETFLOWID = 0x802069c3 + SIOCSVNETID = 0x802069a6 + SOCK_CLOEXEC = 0x8000 + SOCK_DGRAM = 0x2 + SOCK_DNS = 0x1000 + SOCK_NONBLOCK = 0x4000 + SOCK_RAW = 0x3 + SOCK_RDM = 0x4 + SOCK_SEQPACKET = 0x5 + SOCK_STREAM = 0x1 + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_BINDANY = 0x1000 + SO_BROADCAST = 0x20 + SO_DEBUG = 0x1 + SO_DOMAIN = 0x1024 + SO_DONTROUTE = 0x10 + SO_ERROR = 0x1007 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_NETPROC = 0x1020 + SO_OOBINLINE = 0x100 + SO_PEERCRED = 0x1022 + SO_PROTOCOL = 0x1025 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x4 + SO_REUSEPORT = 0x200 + SO_RTABLE = 0x1021 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_SPLICE = 0x1023 + SO_TIMESTAMP = 0x800 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_ZEROIZE = 0x2000 + S_BLKSIZE = 0x200 + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISTXT = 0x200 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TCIFLUSH = 0x1 + TCIOFF = 0x3 + TCIOFLUSH = 0x3 + TCION = 0x4 + TCOFLUSH = 0x2 + TCOOFF = 0x1 + TCOON = 0x2 + TCPOPT_EOL = 0x0 + TCPOPT_MAXSEG = 0x2 + TCPOPT_NOP = 0x1 + TCPOPT_SACK = 0x5 + TCPOPT_SACK_HDR = 0x1010500 + TCPOPT_SACK_PERMITTED = 0x4 + TCPOPT_SACK_PERMIT_HDR = 0x1010402 + TCPOPT_SIGNATURE = 0x13 + TCPOPT_TIMESTAMP = 0x8 + TCPOPT_TSTAMP_HDR = 0x101080a + TCPOPT_WINDOW = 0x3 + TCP_INFO = 0x9 + TCP_MAXSEG = 0x2 + TCP_MAXWIN = 0xffff + TCP_MAX_SACK = 0x3 + TCP_MAX_WINSHIFT = 0xe + TCP_MD5SIG = 0x4 + TCP_MSS = 0x200 + TCP_NODELAY = 0x1 + TCP_NOPUSH = 0x10 + TCP_SACKHOLE_LIMIT = 0x80 + TCP_SACK_ENABLE = 0x8 + TCSAFLUSH = 0x2 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOCCBRK = 0x2000747a + TIOCCDTR = 0x20007478 + TIOCCHKVERAUTH = 0x2000741e + TIOCCLRVERAUTH = 0x2000741d + TIOCCONS = 0x80047462 + TIOCDRAIN = 0x2000745e + TIOCEXCL = 0x2000740d + TIOCEXT = 0x80047460 + TIOCFLAG_CLOCAL = 0x2 + TIOCFLAG_CRTSCTS = 0x4 + TIOCFLAG_MDMBUF = 0x8 + TIOCFLAG_PPS = 0x10 + TIOCFLAG_SOFTCAR = 0x1 + TIOCFLUSH = 0x80047410 + TIOCGETA = 0x402c7413 + TIOCGETD = 0x4004741a + TIOCGFLAGS = 0x4004745d + TIOCGPGRP = 0x40047477 + TIOCGSID = 0x40047463 + TIOCGTSTAMP = 0x4010745b + TIOCGWINSZ = 0x40087468 + TIOCMBIC = 0x8004746b + TIOCMBIS = 0x8004746c + TIOCMGET = 0x4004746a + TIOCMODG = 0x4004746a + TIOCMODS = 0x8004746d + TIOCMSET = 0x8004746d + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x20007471 + TIOCNXCL = 0x2000740e + TIOCOUTQ = 0x40047473 + TIOCPKT = 0x80047470 + TIOCPKT_DATA = 0x0 + TIOCPKT_DOSTOP = 0x20 + TIOCPKT_FLUSHREAD = 0x1 + TIOCPKT_FLUSHWRITE = 0x2 + TIOCPKT_IOCTL = 0x40 + TIOCPKT_NOSTOP = 0x10 + TIOCPKT_START = 0x8 + TIOCPKT_STOP = 0x4 + TIOCREMOTE = 0x80047469 + TIOCSBRK = 0x2000747b + TIOCSCTTY = 0x20007461 + TIOCSDTR = 0x20007479 + TIOCSETA = 0x802c7414 + TIOCSETAF = 0x802c7416 + TIOCSETAW = 0x802c7415 + TIOCSETD = 0x8004741b + TIOCSETVERAUTH = 0x8004741c + TIOCSFLAGS = 0x8004745c + TIOCSIG = 0x8004745f + TIOCSPGRP = 0x80047476 + TIOCSTART = 0x2000746e + TIOCSTAT = 0x20007465 + TIOCSTOP = 0x2000746f + TIOCSTSTAMP = 0x8008745a + TIOCSWINSZ = 0x80087467 + TIOCUCNTL = 0x80047466 + TIOCUCNTL_CBRK = 0x7a + TIOCUCNTL_SBRK = 0x7b + TOSTOP = 0x400000 + UTIME_NOW = -0x2 + UTIME_OMIT = -0x1 + VDISCARD = 0xf + VDSUSP = 0xb + VEOF = 0x0 + VEOL = 0x1 + VEOL2 = 0x2 + VERASE = 0x3 + VINTR = 0x8 + VKILL = 0x5 + VLNEXT = 0xe + VMIN = 0x10 + VM_ANONMIN = 0x7 + VM_LOADAVG = 0x2 + VM_MALLOC_CONF = 0xc + VM_MAXID = 0xd + VM_MAXSLP = 0xa + VM_METER = 0x1 + VM_NKMEMPAGES = 0x6 + VM_PSSTRINGS = 0x3 + VM_SWAPENCRYPT = 0x5 + VM_USPACE = 0xb + VM_UVMEXP = 0x4 + VM_VNODEMIN = 0x9 + VM_VTEXTMIN = 0x8 + VQUIT = 0x9 + VREPRINT = 0x6 + VSTART = 0xc + VSTATUS = 0x12 + VSTOP = 0xd + VSUSP = 0xa + VTIME = 0x11 + VWERASE = 0x4 + WALTSIG = 0x4 + WCONTINUED = 0x8 + WCOREFLAG = 0x80 + WNOHANG = 0x1 + WUNTRACED = 0x2 + XCASE = 0x1000000 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x30) + EADDRNOTAVAIL = syscall.Errno(0x31) + EAFNOSUPPORT = syscall.Errno(0x2f) + EAGAIN = syscall.Errno(0x23) + EALREADY = syscall.Errno(0x25) + EAUTH = syscall.Errno(0x50) + EBADF = syscall.Errno(0x9) + EBADMSG = syscall.Errno(0x5c) + EBADRPC = syscall.Errno(0x48) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x58) + ECHILD = syscall.Errno(0xa) + ECONNABORTED = syscall.Errno(0x35) + ECONNREFUSED = syscall.Errno(0x3d) + ECONNRESET = syscall.Errno(0x36) + EDEADLK = syscall.Errno(0xb) + EDESTADDRREQ = syscall.Errno(0x27) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x45) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EFTYPE = syscall.Errno(0x4f) + EHOSTDOWN = syscall.Errno(0x40) + EHOSTUNREACH = syscall.Errno(0x41) + EIDRM = syscall.Errno(0x59) + EILSEQ = syscall.Errno(0x54) + EINPROGRESS = syscall.Errno(0x24) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EIPSEC = syscall.Errno(0x52) + EISCONN = syscall.Errno(0x38) + EISDIR = syscall.Errno(0x15) + ELAST = syscall.Errno(0x5f) + ELOOP = syscall.Errno(0x3e) + EMEDIUMTYPE = syscall.Errno(0x56) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x28) + ENAMETOOLONG = syscall.Errno(0x3f) + ENEEDAUTH = syscall.Errno(0x51) + ENETDOWN = syscall.Errno(0x32) + ENETRESET = syscall.Errno(0x34) + ENETUNREACH = syscall.Errno(0x33) + ENFILE = syscall.Errno(0x17) + ENOATTR = syscall.Errno(0x53) + ENOBUFS = syscall.Errno(0x37) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x4d) + ENOMEDIUM = syscall.Errno(0x55) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x5a) + ENOPROTOOPT = syscall.Errno(0x2a) + ENOSPC = syscall.Errno(0x1c) + ENOSYS = syscall.Errno(0x4e) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x39) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x42) + ENOTRECOVERABLE = syscall.Errno(0x5d) + ENOTSOCK = syscall.Errno(0x26) + ENOTSUP = syscall.Errno(0x5b) + ENOTTY = syscall.Errno(0x19) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x2d) + EOVERFLOW = syscall.Errno(0x57) + EOWNERDEAD = syscall.Errno(0x5e) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x2e) + EPIPE = syscall.Errno(0x20) + EPROCLIM = syscall.Errno(0x43) + EPROCUNAVAIL = syscall.Errno(0x4c) + EPROGMISMATCH = syscall.Errno(0x4b) + EPROGUNAVAIL = syscall.Errno(0x4a) + EPROTO = syscall.Errno(0x5f) + EPROTONOSUPPORT = syscall.Errno(0x2b) + EPROTOTYPE = syscall.Errno(0x29) + ERANGE = syscall.Errno(0x22) + EREMOTE = syscall.Errno(0x47) + EROFS = syscall.Errno(0x1e) + ERPCMISMATCH = syscall.Errno(0x49) + ESHUTDOWN = syscall.Errno(0x3a) + ESOCKTNOSUPPORT = syscall.Errno(0x2c) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESTALE = syscall.Errno(0x46) + ETIMEDOUT = syscall.Errno(0x3c) + ETOOMANYREFS = syscall.Errno(0x3b) + ETXTBSY = syscall.Errno(0x1a) + EUSERS = syscall.Errno(0x44) + EWOULDBLOCK = syscall.Errno(0x23) + EXDEV = syscall.Errno(0x12) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCHLD = syscall.Signal(0x14) + SIGCONT = syscall.Signal(0x13) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x1d) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x17) + SIGIOT = syscall.Signal(0x6) + SIGKILL = syscall.Signal(0x9) + SIGPIPE = syscall.Signal(0xd) + SIGPROF = syscall.Signal(0x1b) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x11) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHR = syscall.Signal(0x20) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x12) + SIGTTIN = syscall.Signal(0x15) + SIGTTOU = syscall.Signal(0x16) + SIGURG = syscall.Signal(0x10) + SIGUSR1 = syscall.Signal(0x1e) + SIGUSR2 = syscall.Signal(0x1f) + SIGVTALRM = syscall.Signal(0x1a) + SIGWINCH = syscall.Signal(0x1c) + SIGXCPU = syscall.Signal(0x18) + SIGXFSZ = syscall.Signal(0x19) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "operation not permitted"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "input/output error"}, + {6, "ENXIO", "device not configured"}, + {7, "E2BIG", "argument list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file descriptor"}, + {10, "ECHILD", "no child processes"}, + {11, "EDEADLK", "resource deadlock avoided"}, + {12, "ENOMEM", "cannot allocate memory"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "operation not supported by device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "too many open files in system"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "numerical argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "EAGAIN", "resource temporarily unavailable"}, + {36, "EINPROGRESS", "operation now in progress"}, + {37, "EALREADY", "operation already in progress"}, + {38, "ENOTSOCK", "socket operation on non-socket"}, + {39, "EDESTADDRREQ", "destination address required"}, + {40, "EMSGSIZE", "message too long"}, + {41, "EPROTOTYPE", "protocol wrong type for socket"}, + {42, "ENOPROTOOPT", "protocol not available"}, + {43, "EPROTONOSUPPORT", "protocol not supported"}, + {44, "ESOCKTNOSUPPORT", "socket type not supported"}, + {45, "EOPNOTSUPP", "operation not supported"}, + {46, "EPFNOSUPPORT", "protocol family not supported"}, + {47, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {48, "EADDRINUSE", "address already in use"}, + {49, "EADDRNOTAVAIL", "can't assign requested address"}, + {50, "ENETDOWN", "network is down"}, + {51, "ENETUNREACH", "network is unreachable"}, + {52, "ENETRESET", "network dropped connection on reset"}, + {53, "ECONNABORTED", "software caused connection abort"}, + {54, "ECONNRESET", "connection reset by peer"}, + {55, "ENOBUFS", "no buffer space available"}, + {56, "EISCONN", "socket is already connected"}, + {57, "ENOTCONN", "socket is not connected"}, + {58, "ESHUTDOWN", "can't send after socket shutdown"}, + {59, "ETOOMANYREFS", "too many references: can't splice"}, + {60, "ETIMEDOUT", "operation timed out"}, + {61, "ECONNREFUSED", "connection refused"}, + {62, "ELOOP", "too many levels of symbolic links"}, + {63, "ENAMETOOLONG", "file name too long"}, + {64, "EHOSTDOWN", "host is down"}, + {65, "EHOSTUNREACH", "no route to host"}, + {66, "ENOTEMPTY", "directory not empty"}, + {67, "EPROCLIM", "too many processes"}, + {68, "EUSERS", "too many users"}, + {69, "EDQUOT", "disk quota exceeded"}, + {70, "ESTALE", "stale NFS file handle"}, + {71, "EREMOTE", "too many levels of remote in path"}, + {72, "EBADRPC", "RPC struct is bad"}, + {73, "ERPCMISMATCH", "RPC version wrong"}, + {74, "EPROGUNAVAIL", "RPC program not available"}, + {75, "EPROGMISMATCH", "program version wrong"}, + {76, "EPROCUNAVAIL", "bad procedure for program"}, + {77, "ENOLCK", "no locks available"}, + {78, "ENOSYS", "function not implemented"}, + {79, "EFTYPE", "inappropriate file type or format"}, + {80, "EAUTH", "authentication error"}, + {81, "ENEEDAUTH", "need authenticator"}, + {82, "EIPSEC", "IPsec processing failure"}, + {83, "ENOATTR", "attribute not found"}, + {84, "EILSEQ", "illegal byte sequence"}, + {85, "ENOMEDIUM", "no medium found"}, + {86, "EMEDIUMTYPE", "wrong medium type"}, + {87, "EOVERFLOW", "value too large to be stored in data type"}, + {88, "ECANCELED", "operation canceled"}, + {89, "EIDRM", "identifier removed"}, + {90, "ENOMSG", "no message of desired type"}, + {91, "ENOTSUP", "not supported"}, + {92, "EBADMSG", "bad message"}, + {93, "ENOTRECOVERABLE", "state not recoverable"}, + {94, "EOWNERDEAD", "previous owner died"}, + {95, "ELAST", "protocol error"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGTRAP", "trace/BPT trap"}, + {6, "SIGABRT", "abort trap"}, + {7, "SIGEMT", "EMT trap"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad system call"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGURG", "urgent I/O condition"}, + {17, "SIGSTOP", "suspended (signal)"}, + {18, "SIGTSTP", "suspended"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGXCPU", "cputime limit exceeded"}, + {25, "SIGXFSZ", "filesize limit exceeded"}, + {26, "SIGVTALRM", "virtual timer expired"}, + {27, "SIGPROF", "profiling timer expired"}, + {28, "SIGWINCH", "window size changes"}, + {29, "SIGINFO", "information request"}, + {30, "SIGUSR1", "user defined signal 1"}, + {31, "SIGUSR2", "user defined signal 2"}, + {32, "SIGTHR", "thread AST"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go new file mode 100644 index 0000000..1afee6a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go @@ -0,0 +1,1557 @@ +// mkerrors.sh -m64 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && solaris +// +build amd64,solaris + +// Code generated by cmd/cgo -godefs; DO NOT EDIT. +// cgo -godefs -- -m64 _const.go + +package unix + +import "syscall" + +const ( + AF_802 = 0x12 + AF_APPLETALK = 0x10 + AF_CCITT = 0xa + AF_CHAOS = 0x5 + AF_DATAKIT = 0x9 + AF_DECnet = 0xc + AF_DLI = 0xd + AF_ECMA = 0x8 + AF_FILE = 0x1 + AF_GOSIP = 0x16 + AF_HYLINK = 0xf + AF_IMPLINK = 0x3 + AF_INET = 0x2 + AF_INET6 = 0x1a + AF_INET_OFFLOAD = 0x1e + AF_IPX = 0x17 + AF_KEY = 0x1b + AF_LAT = 0xe + AF_LINK = 0x19 + AF_LOCAL = 0x1 + AF_MAX = 0x20 + AF_NBS = 0x7 + AF_NCA = 0x1c + AF_NIT = 0x11 + AF_NS = 0x6 + AF_OSI = 0x13 + AF_OSINET = 0x15 + AF_PACKET = 0x20 + AF_POLICY = 0x1d + AF_PUP = 0x4 + AF_ROUTE = 0x18 + AF_SNA = 0xb + AF_TRILL = 0x1f + AF_UNIX = 0x1 + AF_UNSPEC = 0x0 + AF_X25 = 0x14 + ARPHRD_ARCNET = 0x7 + ARPHRD_ATM = 0x10 + ARPHRD_AX25 = 0x3 + ARPHRD_CHAOS = 0x5 + ARPHRD_EETHER = 0x2 + ARPHRD_ETHER = 0x1 + ARPHRD_FC = 0x12 + ARPHRD_FRAME = 0xf + ARPHRD_HDLC = 0x11 + ARPHRD_IB = 0x20 + ARPHRD_IEEE802 = 0x6 + ARPHRD_IPATM = 0x13 + ARPHRD_METRICOM = 0x17 + ARPHRD_TUNNEL = 0x1f + B0 = 0x0 + B110 = 0x3 + B115200 = 0x12 + B1200 = 0x9 + B134 = 0x4 + B150 = 0x5 + B153600 = 0x13 + B1800 = 0xa + B19200 = 0xe + B200 = 0x6 + B230400 = 0x14 + B2400 = 0xb + B300 = 0x7 + B307200 = 0x15 + B38400 = 0xf + B460800 = 0x16 + B4800 = 0xc + B50 = 0x1 + B57600 = 0x10 + B600 = 0x8 + B75 = 0x2 + B76800 = 0x11 + B921600 = 0x17 + B9600 = 0xd + BIOCFLUSH = 0x20004268 + BIOCGBLEN = 0x40044266 + BIOCGDLT = 0x4004426a + BIOCGDLTLIST = -0x3fefbd89 + BIOCGDLTLIST32 = -0x3ff7bd89 + BIOCGETIF = 0x4020426b + BIOCGETLIF = 0x4078426b + BIOCGHDRCMPLT = 0x40044274 + BIOCGRTIMEOUT = 0x4010427b + BIOCGRTIMEOUT32 = 0x4008427b + BIOCGSEESENT = 0x40044278 + BIOCGSTATS = 0x4080426f + BIOCGSTATSOLD = 0x4008426f + BIOCIMMEDIATE = -0x7ffbbd90 + BIOCPROMISC = 0x20004269 + BIOCSBLEN = -0x3ffbbd9a + BIOCSDLT = -0x7ffbbd8a + BIOCSETF = -0x7fefbd99 + BIOCSETF32 = -0x7ff7bd99 + BIOCSETIF = -0x7fdfbd94 + BIOCSETLIF = -0x7f87bd94 + BIOCSHDRCMPLT = -0x7ffbbd8b + BIOCSRTIMEOUT = -0x7fefbd86 + BIOCSRTIMEOUT32 = -0x7ff7bd86 + BIOCSSEESENT = -0x7ffbbd87 + BIOCSTCPF = -0x7fefbd8e + BIOCSUDPF = -0x7fefbd8d + BIOCVERSION = 0x40044271 + BPF_A = 0x10 + BPF_ABS = 0x20 + BPF_ADD = 0x0 + BPF_ALIGNMENT = 0x4 + BPF_ALU = 0x4 + BPF_AND = 0x50 + BPF_B = 0x10 + BPF_DFLTBUFSIZE = 0x100000 + BPF_DIV = 0x30 + BPF_H = 0x8 + BPF_IMM = 0x0 + BPF_IND = 0x40 + BPF_JA = 0x0 + BPF_JEQ = 0x10 + BPF_JGE = 0x30 + BPF_JGT = 0x20 + BPF_JMP = 0x5 + BPF_JSET = 0x40 + BPF_K = 0x0 + BPF_LD = 0x0 + BPF_LDX = 0x1 + BPF_LEN = 0x80 + BPF_LSH = 0x60 + BPF_MAJOR_VERSION = 0x1 + BPF_MAXBUFSIZE = 0x1000000 + BPF_MAXINSNS = 0x200 + BPF_MEM = 0x60 + BPF_MEMWORDS = 0x10 + BPF_MINBUFSIZE = 0x20 + BPF_MINOR_VERSION = 0x1 + BPF_MISC = 0x7 + BPF_MSH = 0xa0 + BPF_MUL = 0x20 + BPF_NEG = 0x80 + BPF_OR = 0x40 + BPF_RELEASE = 0x30bb6 + BPF_RET = 0x6 + BPF_RSH = 0x70 + BPF_ST = 0x2 + BPF_STX = 0x3 + BPF_SUB = 0x10 + BPF_TAX = 0x0 + BPF_TXA = 0x80 + BPF_W = 0x0 + BPF_X = 0x8 + BRKINT = 0x2 + BS0 = 0x0 + BS1 = 0x2000 + BSDLY = 0x2000 + CBAUD = 0xf + CFLUSH = 0xf + CIBAUD = 0xf0000 + CLOCAL = 0x800 + CLOCK_HIGHRES = 0x4 + CLOCK_LEVEL = 0xa + CLOCK_MONOTONIC = 0x4 + CLOCK_PROCESS_CPUTIME_ID = 0x5 + CLOCK_PROF = 0x2 + CLOCK_REALTIME = 0x3 + CLOCK_THREAD_CPUTIME_ID = 0x2 + CLOCK_VIRTUAL = 0x1 + CR0 = 0x0 + CR1 = 0x200 + CR2 = 0x400 + CR3 = 0x600 + CRDLY = 0x600 + CREAD = 0x80 + CRTSCTS = 0x80000000 + CS5 = 0x0 + CS6 = 0x10 + CS7 = 0x20 + CS8 = 0x30 + CSIZE = 0x30 + CSTART = 0x11 + CSTATUS = 0x14 + CSTOP = 0x13 + CSTOPB = 0x40 + CSUSP = 0x1a + CSWTCH = 0x1a + DIOC = 0x6400 + DIOCGETB = 0x6402 + DIOCGETC = 0x6401 + DIOCGETP = 0x6408 + DIOCSETE = 0x6403 + DIOCSETP = 0x6409 + DLT_AIRONET_HEADER = 0x78 + DLT_APPLE_IP_OVER_IEEE1394 = 0x8a + DLT_ARCNET = 0x7 + DLT_ARCNET_LINUX = 0x81 + DLT_ATM_CLIP = 0x13 + DLT_ATM_RFC1483 = 0xb + DLT_AURORA = 0x7e + DLT_AX25 = 0x3 + DLT_BACNET_MS_TP = 0xa5 + DLT_CHAOS = 0x5 + DLT_CISCO_IOS = 0x76 + DLT_C_HDLC = 0x68 + DLT_DOCSIS = 0x8f + DLT_ECONET = 0x73 + DLT_EN10MB = 0x1 + DLT_EN3MB = 0x2 + DLT_ENC = 0x6d + DLT_ERF_ETH = 0xaf + DLT_ERF_POS = 0xb0 + DLT_FDDI = 0xa + DLT_FRELAY = 0x6b + DLT_GCOM_SERIAL = 0xad + DLT_GCOM_T1E1 = 0xac + DLT_GPF_F = 0xab + DLT_GPF_T = 0xaa + DLT_GPRS_LLC = 0xa9 + DLT_HDLC = 0x10 + DLT_HHDLC = 0x79 + DLT_HIPPI = 0xf + DLT_IBM_SN = 0x92 + DLT_IBM_SP = 0x91 + DLT_IEEE802 = 0x6 + DLT_IEEE802_11 = 0x69 + DLT_IEEE802_11_RADIO = 0x7f + DLT_IEEE802_11_RADIO_AVS = 0xa3 + DLT_IPNET = 0xe2 + DLT_IPOIB = 0xa2 + DLT_IP_OVER_FC = 0x7a + DLT_JUNIPER_ATM1 = 0x89 + DLT_JUNIPER_ATM2 = 0x87 + DLT_JUNIPER_CHDLC = 0xb5 + DLT_JUNIPER_ES = 0x84 + DLT_JUNIPER_ETHER = 0xb2 + DLT_JUNIPER_FRELAY = 0xb4 + DLT_JUNIPER_GGSN = 0x85 + DLT_JUNIPER_MFR = 0x86 + DLT_JUNIPER_MLFR = 0x83 + DLT_JUNIPER_MLPPP = 0x82 + DLT_JUNIPER_MONITOR = 0xa4 + DLT_JUNIPER_PIC_PEER = 0xae + DLT_JUNIPER_PPP = 0xb3 + DLT_JUNIPER_PPPOE = 0xa7 + DLT_JUNIPER_PPPOE_ATM = 0xa8 + DLT_JUNIPER_SERVICES = 0x88 + DLT_LINUX_IRDA = 0x90 + DLT_LINUX_LAPD = 0xb1 + DLT_LINUX_SLL = 0x71 + DLT_LOOP = 0x6c + DLT_LTALK = 0x72 + DLT_MTP2 = 0x8c + DLT_MTP2_WITH_PHDR = 0x8b + DLT_MTP3 = 0x8d + DLT_NULL = 0x0 + DLT_PCI_EXP = 0x7d + DLT_PFLOG = 0x75 + DLT_PFSYNC = 0x12 + DLT_PPP = 0x9 + DLT_PPP_BSDOS = 0xe + DLT_PPP_PPPD = 0xa6 + DLT_PRISM_HEADER = 0x77 + DLT_PRONET = 0x4 + DLT_RAW = 0xc + DLT_RAWAF_MASK = 0x2240000 + DLT_RIO = 0x7c + DLT_SCCP = 0x8e + DLT_SLIP = 0x8 + DLT_SLIP_BSDOS = 0xd + DLT_SUNATM = 0x7b + DLT_SYMANTEC_FIREWALL = 0x63 + DLT_TZSP = 0x80 + ECHO = 0x8 + ECHOCTL = 0x200 + ECHOE = 0x10 + ECHOK = 0x20 + ECHOKE = 0x800 + ECHONL = 0x40 + ECHOPRT = 0x400 + EMPTY_SET = 0x0 + EMT_CPCOVF = 0x1 + EQUALITY_CHECK = 0x0 + EXTA = 0xe + EXTB = 0xf + FD_CLOEXEC = 0x1 + FD_NFDBITS = 0x40 + FD_SETSIZE = 0x10000 + FF0 = 0x0 + FF1 = 0x8000 + FFDLY = 0x8000 + FIORDCHK = 0x6603 + FLUSHALL = 0x1 + FLUSHDATA = 0x0 + FLUSHO = 0x2000 + F_ALLOCSP = 0xa + F_ALLOCSP64 = 0xa + F_BADFD = 0x2e + F_BLKSIZE = 0x13 + F_BLOCKS = 0x12 + F_CHKFL = 0x8 + F_COMPAT = 0x8 + F_DUP2FD = 0x9 + F_DUP2FD_CLOEXEC = 0x24 + F_DUPFD = 0x0 + F_DUPFD_CLOEXEC = 0x25 + F_FLOCK = 0x35 + F_FLOCK64 = 0x35 + F_FLOCKW = 0x36 + F_FLOCKW64 = 0x36 + F_FREESP = 0xb + F_FREESP64 = 0xb + F_GETFD = 0x1 + F_GETFL = 0x3 + F_GETLK = 0xe + F_GETLK64 = 0xe + F_GETOWN = 0x17 + F_GETXFL = 0x2d + F_HASREMOTELOCKS = 0x1a + F_ISSTREAM = 0xd + F_MANDDNY = 0x10 + F_MDACC = 0x20 + F_NODNY = 0x0 + F_NPRIV = 0x10 + F_OFD_GETLK = 0x2f + F_OFD_GETLK64 = 0x2f + F_OFD_SETLK = 0x30 + F_OFD_SETLK64 = 0x30 + F_OFD_SETLKW = 0x31 + F_OFD_SETLKW64 = 0x31 + F_PRIV = 0xf + F_QUOTACTL = 0x11 + F_RDACC = 0x1 + F_RDDNY = 0x1 + F_RDLCK = 0x1 + F_REVOKE = 0x19 + F_RMACC = 0x4 + F_RMDNY = 0x4 + F_RWACC = 0x3 + F_RWDNY = 0x3 + F_SETFD = 0x2 + F_SETFL = 0x4 + F_SETLK = 0x6 + F_SETLK64 = 0x6 + F_SETLK64_NBMAND = 0x2a + F_SETLKW = 0x7 + F_SETLKW64 = 0x7 + F_SETLK_NBMAND = 0x2a + F_SETOWN = 0x18 + F_SHARE = 0x28 + F_SHARE_NBMAND = 0x2b + F_UNLCK = 0x3 + F_UNLKSYS = 0x4 + F_UNSHARE = 0x29 + F_WRACC = 0x2 + F_WRDNY = 0x2 + F_WRLCK = 0x2 + HUPCL = 0x400 + IBSHIFT = 0x10 + ICANON = 0x2 + ICMP6_FILTER = 0x1 + ICRNL = 0x100 + IEXTEN = 0x8000 + IFF_ADDRCONF = 0x80000 + IFF_ALLMULTI = 0x200 + IFF_ANYCAST = 0x400000 + IFF_BROADCAST = 0x2 + IFF_CANTCHANGE = 0x7f203003b5a + IFF_COS_ENABLED = 0x200000000 + IFF_DEBUG = 0x4 + IFF_DEPRECATED = 0x40000 + IFF_DHCPRUNNING = 0x4000 + IFF_DUPLICATE = 0x4000000000 + IFF_FAILED = 0x10000000 + IFF_FIXEDMTU = 0x1000000000 + IFF_INACTIVE = 0x40000000 + IFF_INTELLIGENT = 0x400 + IFF_IPMP = 0x8000000000 + IFF_IPMP_CANTCHANGE = 0x10000000 + IFF_IPMP_INVALID = 0x1ec200080 + IFF_IPV4 = 0x1000000 + IFF_IPV6 = 0x2000000 + IFF_L3PROTECT = 0x40000000000 + IFF_LOOPBACK = 0x8 + IFF_MULTICAST = 0x800 + IFF_MULTI_BCAST = 0x1000 + IFF_NOACCEPT = 0x4000000 + IFF_NOARP = 0x80 + IFF_NOFAILOVER = 0x8000000 + IFF_NOLINKLOCAL = 0x20000000000 + IFF_NOLOCAL = 0x20000 + IFF_NONUD = 0x200000 + IFF_NORTEXCH = 0x800000 + IFF_NOTRAILERS = 0x20 + IFF_NOXMIT = 0x10000 + IFF_OFFLINE = 0x80000000 + IFF_POINTOPOINT = 0x10 + IFF_PREFERRED = 0x400000000 + IFF_PRIVATE = 0x8000 + IFF_PROMISC = 0x100 + IFF_ROUTER = 0x100000 + IFF_RUNNING = 0x40 + IFF_STANDBY = 0x20000000 + IFF_TEMPORARY = 0x800000000 + IFF_UNNUMBERED = 0x2000 + IFF_UP = 0x1 + IFF_VIRTUAL = 0x2000000000 + IFF_VRRP = 0x10000000000 + IFF_XRESOLV = 0x100000000 + IFNAMSIZ = 0x10 + IFT_1822 = 0x2 + IFT_6TO4 = 0xca + IFT_AAL5 = 0x31 + IFT_ARCNET = 0x23 + IFT_ARCNETPLUS = 0x24 + IFT_ATM = 0x25 + IFT_CEPT = 0x13 + IFT_DS3 = 0x1e + IFT_EON = 0x19 + IFT_ETHER = 0x6 + IFT_FDDI = 0xf + IFT_FRELAY = 0x20 + IFT_FRELAYDCE = 0x2c + IFT_HDH1822 = 0x3 + IFT_HIPPI = 0x2f + IFT_HSSI = 0x2e + IFT_HY = 0xe + IFT_IB = 0xc7 + IFT_IPV4 = 0xc8 + IFT_IPV6 = 0xc9 + IFT_ISDNBASIC = 0x14 + IFT_ISDNPRIMARY = 0x15 + IFT_ISO88022LLC = 0x29 + IFT_ISO88023 = 0x7 + IFT_ISO88024 = 0x8 + IFT_ISO88025 = 0x9 + IFT_ISO88026 = 0xa + IFT_LAPB = 0x10 + IFT_LOCALTALK = 0x2a + IFT_LOOP = 0x18 + IFT_MIOX25 = 0x26 + IFT_MODEM = 0x30 + IFT_NSIP = 0x1b + IFT_OTHER = 0x1 + IFT_P10 = 0xc + IFT_P80 = 0xd + IFT_PARA = 0x22 + IFT_PPP = 0x17 + IFT_PROPMUX = 0x36 + IFT_PROPVIRTUAL = 0x35 + IFT_PTPSERIAL = 0x16 + IFT_RS232 = 0x21 + IFT_SDLC = 0x11 + IFT_SIP = 0x1f + IFT_SLIP = 0x1c + IFT_SMDSDXI = 0x2b + IFT_SMDSICIP = 0x34 + IFT_SONET = 0x27 + IFT_SONETPATH = 0x32 + IFT_SONETVT = 0x33 + IFT_STARLAN = 0xb + IFT_T1 = 0x12 + IFT_ULTRA = 0x1d + IFT_V35 = 0x2d + IFT_X25 = 0x5 + IFT_X25DDN = 0x4 + IFT_X25PLE = 0x28 + IFT_XETHER = 0x1a + IGNBRK = 0x1 + IGNCR = 0x80 + IGNPAR = 0x4 + IMAXBEL = 0x2000 + INLCR = 0x40 + INPCK = 0x10 + IN_AUTOCONF_MASK = 0xffff0000 + IN_AUTOCONF_NET = 0xa9fe0000 + IN_CLASSA_HOST = 0xffffff + IN_CLASSA_MAX = 0x80 + IN_CLASSA_NET = 0xff000000 + IN_CLASSA_NSHIFT = 0x18 + IN_CLASSB_HOST = 0xffff + IN_CLASSB_MAX = 0x10000 + IN_CLASSB_NET = 0xffff0000 + IN_CLASSB_NSHIFT = 0x10 + IN_CLASSC_HOST = 0xff + IN_CLASSC_NET = 0xffffff00 + IN_CLASSC_NSHIFT = 0x8 + IN_CLASSD_HOST = 0xfffffff + IN_CLASSD_NET = 0xf0000000 + IN_CLASSD_NSHIFT = 0x1c + IN_CLASSE_NET = 0xffffffff + IN_LOOPBACKNET = 0x7f + IN_PRIVATE12_MASK = 0xfff00000 + IN_PRIVATE12_NET = 0xac100000 + IN_PRIVATE16_MASK = 0xffff0000 + IN_PRIVATE16_NET = 0xc0a80000 + IN_PRIVATE8_MASK = 0xff000000 + IN_PRIVATE8_NET = 0xa000000 + IPPROTO_AH = 0x33 + IPPROTO_DSTOPTS = 0x3c + IPPROTO_EGP = 0x8 + IPPROTO_ENCAP = 0x4 + IPPROTO_EON = 0x50 + IPPROTO_ESP = 0x32 + IPPROTO_FRAGMENT = 0x2c + IPPROTO_GGP = 0x3 + IPPROTO_HELLO = 0x3f + IPPROTO_HOPOPTS = 0x0 + IPPROTO_ICMP = 0x1 + IPPROTO_ICMPV6 = 0x3a + IPPROTO_IDP = 0x16 + IPPROTO_IGMP = 0x2 + IPPROTO_IP = 0x0 + IPPROTO_IPV6 = 0x29 + IPPROTO_MAX = 0x100 + IPPROTO_ND = 0x4d + IPPROTO_NONE = 0x3b + IPPROTO_OSPF = 0x59 + IPPROTO_PIM = 0x67 + IPPROTO_PUP = 0xc + IPPROTO_RAW = 0xff + IPPROTO_ROUTING = 0x2b + IPPROTO_RSVP = 0x2e + IPPROTO_SCTP = 0x84 + IPPROTO_TCP = 0x6 + IPPROTO_UDP = 0x11 + IPV6_ADD_MEMBERSHIP = 0x9 + IPV6_BOUND_IF = 0x41 + IPV6_CHECKSUM = 0x18 + IPV6_DONTFRAG = 0x21 + IPV6_DROP_MEMBERSHIP = 0xa + IPV6_DSTOPTS = 0xf + IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00 + IPV6_FLOWINFO_TCLASS = 0xf00f + IPV6_HOPLIMIT = 0xc + IPV6_HOPOPTS = 0xe + IPV6_JOIN_GROUP = 0x9 + IPV6_LEAVE_GROUP = 0xa + IPV6_MULTICAST_HOPS = 0x7 + IPV6_MULTICAST_IF = 0x6 + IPV6_MULTICAST_LOOP = 0x8 + IPV6_NEXTHOP = 0xd + IPV6_PAD1_OPT = 0x0 + IPV6_PATHMTU = 0x25 + IPV6_PKTINFO = 0xb + IPV6_PREFER_SRC_CGA = 0x20 + IPV6_PREFER_SRC_CGADEFAULT = 0x10 + IPV6_PREFER_SRC_CGAMASK = 0x30 + IPV6_PREFER_SRC_COA = 0x2 + IPV6_PREFER_SRC_DEFAULT = 0x15 + IPV6_PREFER_SRC_HOME = 0x1 + IPV6_PREFER_SRC_MASK = 0x3f + IPV6_PREFER_SRC_MIPDEFAULT = 0x1 + IPV6_PREFER_SRC_MIPMASK = 0x3 + IPV6_PREFER_SRC_NONCGA = 0x10 + IPV6_PREFER_SRC_PUBLIC = 0x4 + IPV6_PREFER_SRC_TMP = 0x8 + IPV6_PREFER_SRC_TMPDEFAULT = 0x4 + IPV6_PREFER_SRC_TMPMASK = 0xc + IPV6_RECVDSTOPTS = 0x28 + IPV6_RECVHOPLIMIT = 0x13 + IPV6_RECVHOPOPTS = 0x14 + IPV6_RECVPATHMTU = 0x24 + IPV6_RECVPKTINFO = 0x12 + IPV6_RECVRTHDR = 0x16 + IPV6_RECVRTHDRDSTOPTS = 0x17 + IPV6_RECVTCLASS = 0x19 + IPV6_RTHDR = 0x10 + IPV6_RTHDRDSTOPTS = 0x11 + IPV6_RTHDR_TYPE_0 = 0x0 + IPV6_SEC_OPT = 0x22 + IPV6_SRC_PREFERENCES = 0x23 + IPV6_TCLASS = 0x26 + IPV6_UNICAST_HOPS = 0x5 + IPV6_UNSPEC_SRC = 0x42 + IPV6_USE_MIN_MTU = 0x20 + IPV6_V6ONLY = 0x27 + IP_ADD_MEMBERSHIP = 0x13 + IP_ADD_SOURCE_MEMBERSHIP = 0x17 + IP_BLOCK_SOURCE = 0x15 + IP_BOUND_IF = 0x41 + IP_BROADCAST = 0x106 + IP_BROADCAST_TTL = 0x43 + IP_DEFAULT_MULTICAST_LOOP = 0x1 + IP_DEFAULT_MULTICAST_TTL = 0x1 + IP_DF = 0x4000 + IP_DHCPINIT_IF = 0x45 + IP_DONTFRAG = 0x1b + IP_DONTROUTE = 0x105 + IP_DROP_MEMBERSHIP = 0x14 + IP_DROP_SOURCE_MEMBERSHIP = 0x18 + IP_HDRINCL = 0x2 + IP_MAXPACKET = 0xffff + IP_MF = 0x2000 + IP_MSS = 0x240 + IP_MULTICAST_IF = 0x10 + IP_MULTICAST_LOOP = 0x12 + IP_MULTICAST_TTL = 0x11 + IP_NEXTHOP = 0x19 + IP_OPTIONS = 0x1 + IP_PKTINFO = 0x1a + IP_RECVDSTADDR = 0x7 + IP_RECVIF = 0x9 + IP_RECVOPTS = 0x5 + IP_RECVPKTINFO = 0x1a + IP_RECVRETOPTS = 0x6 + IP_RECVSLLA = 0xa + IP_RECVTOS = 0xc + IP_RECVTTL = 0xb + IP_RETOPTS = 0x8 + IP_REUSEADDR = 0x104 + IP_SEC_OPT = 0x22 + IP_TOS = 0x3 + IP_TTL = 0x4 + IP_UNBLOCK_SOURCE = 0x16 + IP_UNSPEC_SRC = 0x42 + ISIG = 0x1 + ISTRIP = 0x20 + IUCLC = 0x200 + IXANY = 0x800 + IXOFF = 0x1000 + IXON = 0x400 + LOCK_EX = 0x2 + LOCK_NB = 0x4 + LOCK_SH = 0x1 + LOCK_UN = 0x8 + MADV_ACCESS_DEFAULT = 0x6 + MADV_ACCESS_LWP = 0x7 + MADV_ACCESS_MANY = 0x8 + MADV_DONTNEED = 0x4 + MADV_FREE = 0x5 + MADV_NORMAL = 0x0 + MADV_PURGE = 0x9 + MADV_RANDOM = 0x1 + MADV_SEQUENTIAL = 0x2 + MADV_WILLNEED = 0x3 + MAP_32BIT = 0x80 + MAP_ALIGN = 0x200 + MAP_ANON = 0x100 + MAP_ANONYMOUS = 0x100 + MAP_FILE = 0x0 + MAP_FIXED = 0x10 + MAP_INITDATA = 0x800 + MAP_NORESERVE = 0x40 + MAP_PRIVATE = 0x2 + MAP_RENAME = 0x20 + MAP_SHARED = 0x1 + MAP_TEXT = 0x400 + MAP_TYPE = 0xf + MCAST_BLOCK_SOURCE = 0x2b + MCAST_EXCLUDE = 0x2 + MCAST_INCLUDE = 0x1 + MCAST_JOIN_GROUP = 0x29 + MCAST_JOIN_SOURCE_GROUP = 0x2d + MCAST_LEAVE_GROUP = 0x2a + MCAST_LEAVE_SOURCE_GROUP = 0x2e + MCAST_UNBLOCK_SOURCE = 0x2c + MCL_CURRENT = 0x1 + MCL_FUTURE = 0x2 + MSG_CTRUNC = 0x10 + MSG_DONTROUTE = 0x4 + MSG_DONTWAIT = 0x80 + MSG_DUPCTRL = 0x800 + MSG_EOR = 0x8 + MSG_MAXIOVLEN = 0x10 + MSG_NOSIGNAL = 0x200 + MSG_NOTIFICATION = 0x100 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x20 + MSG_WAITALL = 0x40 + MSG_XPG4_2 = 0x8000 + MS_ASYNC = 0x1 + MS_INVALIDATE = 0x2 + MS_OLDSYNC = 0x0 + MS_SYNC = 0x4 + M_FLUSH = 0x86 + NAME_MAX = 0xff + NEWDEV = 0x1 + NFDBITS = 0x40 + NL0 = 0x0 + NL1 = 0x100 + NLDLY = 0x100 + NOFLSH = 0x80 + OCRNL = 0x8 + OFDEL = 0x80 + OFILL = 0x40 + OLCUC = 0x2 + OLDDEV = 0x0 + ONBITSMAJOR = 0x7 + ONBITSMINOR = 0x8 + ONLCR = 0x4 + ONLRET = 0x20 + ONOCR = 0x10 + OPENFAIL = -0x1 + OPOST = 0x1 + O_ACCMODE = 0x600003 + O_APPEND = 0x8 + O_CLOEXEC = 0x800000 + O_CREAT = 0x100 + O_DIRECT = 0x2000000 + O_DIRECTORY = 0x1000000 + O_DSYNC = 0x40 + O_EXCL = 0x400 + O_EXEC = 0x400000 + O_LARGEFILE = 0x2000 + O_NDELAY = 0x4 + O_NOCTTY = 0x800 + O_NOFOLLOW = 0x20000 + O_NOLINKS = 0x40000 + O_NONBLOCK = 0x80 + O_RDONLY = 0x0 + O_RDWR = 0x2 + O_RSYNC = 0x8000 + O_SEARCH = 0x200000 + O_SIOCGIFCONF = -0x3ff796ec + O_SIOCGLIFCONF = -0x3fef9688 + O_SYNC = 0x10 + O_TRUNC = 0x200 + O_WRONLY = 0x1 + O_XATTR = 0x4000 + PARENB = 0x100 + PAREXT = 0x100000 + PARMRK = 0x8 + PARODD = 0x200 + PENDIN = 0x4000 + PRIO_PGRP = 0x1 + PRIO_PROCESS = 0x0 + PRIO_USER = 0x2 + PROT_EXEC = 0x4 + PROT_NONE = 0x0 + PROT_READ = 0x1 + PROT_WRITE = 0x2 + RLIMIT_AS = 0x6 + RLIMIT_CORE = 0x4 + RLIMIT_CPU = 0x0 + RLIMIT_DATA = 0x2 + RLIMIT_FSIZE = 0x1 + RLIMIT_NOFILE = 0x5 + RLIMIT_STACK = 0x3 + RLIM_INFINITY = 0xfffffffffffffffd + RTAX_AUTHOR = 0x6 + RTAX_BRD = 0x7 + RTAX_DST = 0x0 + RTAX_GATEWAY = 0x1 + RTAX_GENMASK = 0x3 + RTAX_IFA = 0x5 + RTAX_IFP = 0x4 + RTAX_MAX = 0x9 + RTAX_NETMASK = 0x2 + RTAX_SRC = 0x8 + RTA_AUTHOR = 0x40 + RTA_BRD = 0x80 + RTA_DST = 0x1 + RTA_GATEWAY = 0x2 + RTA_GENMASK = 0x8 + RTA_IFA = 0x20 + RTA_IFP = 0x10 + RTA_NETMASK = 0x4 + RTA_NUMBITS = 0x9 + RTA_SRC = 0x100 + RTF_BLACKHOLE = 0x1000 + RTF_CLONING = 0x100 + RTF_DONE = 0x40 + RTF_DYNAMIC = 0x10 + RTF_GATEWAY = 0x2 + RTF_HOST = 0x4 + RTF_INDIRECT = 0x40000 + RTF_KERNEL = 0x80000 + RTF_LLINFO = 0x400 + RTF_MASK = 0x80 + RTF_MODIFIED = 0x20 + RTF_MULTIRT = 0x10000 + RTF_PRIVATE = 0x2000 + RTF_PROTO1 = 0x8000 + RTF_PROTO2 = 0x4000 + RTF_REJECT = 0x8 + RTF_SETSRC = 0x20000 + RTF_STATIC = 0x800 + RTF_UP = 0x1 + RTF_XRESOLVE = 0x200 + RTF_ZONE = 0x100000 + RTM_ADD = 0x1 + RTM_CHANGE = 0x3 + RTM_CHGADDR = 0xf + RTM_DELADDR = 0xd + RTM_DELETE = 0x2 + RTM_FREEADDR = 0x10 + RTM_GET = 0x4 + RTM_IFINFO = 0xe + RTM_LOCK = 0x8 + RTM_LOSING = 0x5 + RTM_MISS = 0x7 + RTM_NEWADDR = 0xc + RTM_OLDADD = 0x9 + RTM_OLDDEL = 0xa + RTM_REDIRECT = 0x6 + RTM_RESOLVE = 0xb + RTM_VERSION = 0x3 + RTV_EXPIRE = 0x4 + RTV_HOPCOUNT = 0x2 + RTV_MTU = 0x1 + RTV_RPIPE = 0x8 + RTV_RTT = 0x40 + RTV_RTTVAR = 0x80 + RTV_SPIPE = 0x10 + RTV_SSTHRESH = 0x20 + RT_AWARE = 0x1 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 + SCM_RIGHTS = 0x1010 + SCM_TIMESTAMP = 0x1013 + SCM_UCRED = 0x1012 + SHUT_RD = 0x0 + SHUT_RDWR = 0x2 + SHUT_WR = 0x1 + SIG2STR_MAX = 0x20 + SIOCADDMULTI = -0x7fdf96cf + SIOCADDRT = -0x7fcf8df6 + SIOCATMARK = 0x40047307 + SIOCDARP = -0x7fdb96e0 + SIOCDELMULTI = -0x7fdf96ce + SIOCDELRT = -0x7fcf8df5 + SIOCDXARP = -0x7fff9658 + SIOCGARP = -0x3fdb96e1 + SIOCGDSTINFO = -0x3fff965c + SIOCGENADDR = -0x3fdf96ab + SIOCGENPSTATS = -0x3fdf96c7 + SIOCGETLSGCNT = -0x3fef8deb + SIOCGETNAME = 0x40107334 + SIOCGETPEER = 0x40107335 + SIOCGETPROP = -0x3fff8f44 + SIOCGETSGCNT = -0x3feb8deb + SIOCGETSYNC = -0x3fdf96d3 + SIOCGETVIFCNT = -0x3feb8dec + SIOCGHIWAT = 0x40047301 + SIOCGIFADDR = -0x3fdf96f3 + SIOCGIFBRDADDR = -0x3fdf96e9 + SIOCGIFCONF = -0x3ff796a4 + SIOCGIFDSTADDR = -0x3fdf96f1 + SIOCGIFFLAGS = -0x3fdf96ef + SIOCGIFHWADDR = -0x3fdf9647 + SIOCGIFINDEX = -0x3fdf96a6 + SIOCGIFMEM = -0x3fdf96ed + SIOCGIFMETRIC = -0x3fdf96e5 + SIOCGIFMTU = -0x3fdf96ea + SIOCGIFMUXID = -0x3fdf96a8 + SIOCGIFNETMASK = -0x3fdf96e7 + SIOCGIFNUM = 0x40046957 + SIOCGIP6ADDRPOLICY = -0x3fff965e + SIOCGIPMSFILTER = -0x3ffb964c + SIOCGLIFADDR = -0x3f87968f + SIOCGLIFBINDING = -0x3f879666 + SIOCGLIFBRDADDR = -0x3f879685 + SIOCGLIFCONF = -0x3fef965b + SIOCGLIFDADSTATE = -0x3f879642 + SIOCGLIFDSTADDR = -0x3f87968d + SIOCGLIFFLAGS = -0x3f87968b + SIOCGLIFGROUPINFO = -0x3f4b9663 + SIOCGLIFGROUPNAME = -0x3f879664 + SIOCGLIFHWADDR = -0x3f879640 + SIOCGLIFINDEX = -0x3f87967b + SIOCGLIFLNKINFO = -0x3f879674 + SIOCGLIFMETRIC = -0x3f879681 + SIOCGLIFMTU = -0x3f879686 + SIOCGLIFMUXID = -0x3f87967d + SIOCGLIFNETMASK = -0x3f879683 + SIOCGLIFNUM = -0x3ff3967e + SIOCGLIFSRCOF = -0x3fef964f + SIOCGLIFSUBNET = -0x3f879676 + SIOCGLIFTOKEN = -0x3f879678 + SIOCGLIFUSESRC = -0x3f879651 + SIOCGLIFZONE = -0x3f879656 + SIOCGLOWAT = 0x40047303 + SIOCGMSFILTER = -0x3ffb964e + SIOCGPGRP = 0x40047309 + SIOCGSTAMP = -0x3fef9646 + SIOCGXARP = -0x3fff9659 + SIOCIFDETACH = -0x7fdf96c8 + SIOCILB = -0x3ffb9645 + SIOCLIFADDIF = -0x3f879691 + SIOCLIFDELND = -0x7f879673 + SIOCLIFGETND = -0x3f879672 + SIOCLIFREMOVEIF = -0x7f879692 + SIOCLIFSETND = -0x7f879671 + SIOCLOWER = -0x7fdf96d7 + SIOCSARP = -0x7fdb96e2 + SIOCSCTPGOPT = -0x3fef9653 + SIOCSCTPPEELOFF = -0x3ffb9652 + SIOCSCTPSOPT = -0x7fef9654 + SIOCSENABLESDP = -0x3ffb9649 + SIOCSETPROP = -0x7ffb8f43 + SIOCSETSYNC = -0x7fdf96d4 + SIOCSHIWAT = -0x7ffb8d00 + SIOCSIFADDR = -0x7fdf96f4 + SIOCSIFBRDADDR = -0x7fdf96e8 + SIOCSIFDSTADDR = -0x7fdf96f2 + SIOCSIFFLAGS = -0x7fdf96f0 + SIOCSIFINDEX = -0x7fdf96a5 + SIOCSIFMEM = -0x7fdf96ee + SIOCSIFMETRIC = -0x7fdf96e4 + SIOCSIFMTU = -0x7fdf96eb + SIOCSIFMUXID = -0x7fdf96a7 + SIOCSIFNAME = -0x7fdf96b7 + SIOCSIFNETMASK = -0x7fdf96e6 + SIOCSIP6ADDRPOLICY = -0x7fff965d + SIOCSIPMSFILTER = -0x7ffb964b + SIOCSLGETREQ = -0x3fdf96b9 + SIOCSLIFADDR = -0x7f879690 + SIOCSLIFBRDADDR = -0x7f879684 + SIOCSLIFDSTADDR = -0x7f87968e + SIOCSLIFFLAGS = -0x7f87968c + SIOCSLIFGROUPNAME = -0x7f879665 + SIOCSLIFINDEX = -0x7f87967a + SIOCSLIFLNKINFO = -0x7f879675 + SIOCSLIFMETRIC = -0x7f879680 + SIOCSLIFMTU = -0x7f879687 + SIOCSLIFMUXID = -0x7f87967c + SIOCSLIFNAME = -0x3f87967f + SIOCSLIFNETMASK = -0x7f879682 + SIOCSLIFPREFIX = -0x3f879641 + SIOCSLIFSUBNET = -0x7f879677 + SIOCSLIFTOKEN = -0x7f879679 + SIOCSLIFUSESRC = -0x7f879650 + SIOCSLIFZONE = -0x7f879655 + SIOCSLOWAT = -0x7ffb8cfe + SIOCSLSTAT = -0x7fdf96b8 + SIOCSMSFILTER = -0x7ffb964d + SIOCSPGRP = -0x7ffb8cf8 + SIOCSPROMISC = -0x7ffb96d0 + SIOCSQPTR = -0x3ffb9648 + SIOCSSDSTATS = -0x3fdf96d2 + SIOCSSESTATS = -0x3fdf96d1 + SIOCSXARP = -0x7fff965a + SIOCTMYADDR = -0x3ff79670 + SIOCTMYSITE = -0x3ff7966e + SIOCTONLINK = -0x3ff7966f + SIOCUPPER = -0x7fdf96d8 + SIOCX25RCV = -0x3fdf96c4 + SIOCX25TBL = -0x3fdf96c3 + SIOCX25XMT = -0x3fdf96c5 + SIOCXPROTO = 0x20007337 + SOCK_CLOEXEC = 0x80000 + SOCK_DGRAM = 0x1 + SOCK_NDELAY = 0x200000 + SOCK_NONBLOCK = 0x100000 + SOCK_RAW = 0x4 + SOCK_RDM = 0x5 + SOCK_SEQPACKET = 0x6 + SOCK_STREAM = 0x2 + SOCK_TYPE_MASK = 0xffff + SOL_FILTER = 0xfffc + SOL_PACKET = 0xfffd + SOL_ROUTE = 0xfffe + SOL_SOCKET = 0xffff + SOMAXCONN = 0x80 + SO_ACCEPTCONN = 0x2 + SO_ALL = 0x3f + SO_ALLZONES = 0x1014 + SO_ANON_MLP = 0x100a + SO_ATTACH_FILTER = 0x40000001 + SO_BAND = 0x4000 + SO_BROADCAST = 0x20 + SO_COPYOPT = 0x80000 + SO_DEBUG = 0x1 + SO_DELIM = 0x8000 + SO_DETACH_FILTER = 0x40000002 + SO_DGRAM_ERRIND = 0x200 + SO_DOMAIN = 0x100c + SO_DONTLINGER = -0x81 + SO_DONTROUTE = 0x10 + SO_ERROPT = 0x40000 + SO_ERROR = 0x1007 + SO_EXCLBIND = 0x1015 + SO_HIWAT = 0x10 + SO_ISNTTY = 0x800 + SO_ISTTY = 0x400 + SO_KEEPALIVE = 0x8 + SO_LINGER = 0x80 + SO_LOWAT = 0x20 + SO_MAC_EXEMPT = 0x100b + SO_MAC_IMPLICIT = 0x1016 + SO_MAXBLK = 0x100000 + SO_MAXPSZ = 0x8 + SO_MINPSZ = 0x4 + SO_MREADOFF = 0x80 + SO_MREADON = 0x40 + SO_NDELOFF = 0x200 + SO_NDELON = 0x100 + SO_NODELIM = 0x10000 + SO_OOBINLINE = 0x100 + SO_PROTOTYPE = 0x1009 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVPSH = 0x100d + SO_RCVTIMEO = 0x1006 + SO_READOPT = 0x1 + SO_RECVUCRED = 0x400 + SO_REUSEADDR = 0x4 + SO_SECATTR = 0x1011 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_STRHOLD = 0x20000 + SO_TAIL = 0x200000 + SO_TIMESTAMP = 0x1013 + SO_TONSTOP = 0x2000 + SO_TOSTOP = 0x1000 + SO_TYPE = 0x1008 + SO_USELOOPBACK = 0x40 + SO_VRRP = 0x1017 + SO_WROFF = 0x2 + S_ENFMT = 0x400 + S_IAMB = 0x1ff + S_IEXEC = 0x40 + S_IFBLK = 0x6000 + S_IFCHR = 0x2000 + S_IFDIR = 0x4000 + S_IFDOOR = 0xd000 + S_IFIFO = 0x1000 + S_IFLNK = 0xa000 + S_IFMT = 0xf000 + S_IFNAM = 0x5000 + S_IFPORT = 0xe000 + S_IFREG = 0x8000 + S_IFSOCK = 0xc000 + S_INSEM = 0x1 + S_INSHD = 0x2 + S_IREAD = 0x100 + S_IRGRP = 0x20 + S_IROTH = 0x4 + S_IRUSR = 0x100 + S_IRWXG = 0x38 + S_IRWXO = 0x7 + S_IRWXU = 0x1c0 + S_ISGID = 0x400 + S_ISUID = 0x800 + S_ISVTX = 0x200 + S_IWGRP = 0x10 + S_IWOTH = 0x2 + S_IWRITE = 0x80 + S_IWUSR = 0x80 + S_IXGRP = 0x8 + S_IXOTH = 0x1 + S_IXUSR = 0x40 + TAB0 = 0x0 + TAB1 = 0x800 + TAB2 = 0x1000 + TAB3 = 0x1800 + TABDLY = 0x1800 + TCFLSH = 0x5407 + TCGETA = 0x5401 + TCGETS = 0x540d + TCIFLUSH = 0x0 + TCIOFF = 0x2 + TCIOFLUSH = 0x2 + TCION = 0x3 + TCOFLUSH = 0x1 + TCOOFF = 0x0 + TCOON = 0x1 + TCP_ABORT_THRESHOLD = 0x11 + TCP_ANONPRIVBIND = 0x20 + TCP_CONGESTION = 0x25 + TCP_CONN_ABORT_THRESHOLD = 0x13 + TCP_CONN_NOTIFY_THRESHOLD = 0x12 + TCP_CORK = 0x18 + TCP_EXCLBIND = 0x21 + TCP_INIT_CWND = 0x15 + TCP_KEEPALIVE = 0x8 + TCP_KEEPALIVE_ABORT_THRESHOLD = 0x17 + TCP_KEEPALIVE_THRESHOLD = 0x16 + TCP_KEEPCNT = 0x23 + TCP_KEEPIDLE = 0x22 + TCP_KEEPINTVL = 0x24 + TCP_LINGER2 = 0x1c + TCP_MAXSEG = 0x2 + TCP_MSS = 0x218 + TCP_NODELAY = 0x1 + TCP_NOTIFY_THRESHOLD = 0x10 + TCP_RECVDSTADDR = 0x14 + TCP_RTO_INITIAL = 0x19 + TCP_RTO_MAX = 0x1b + TCP_RTO_MIN = 0x1a + TCSAFLUSH = 0x5410 + TCSBRK = 0x5405 + TCSETA = 0x5402 + TCSETAF = 0x5404 + TCSETAW = 0x5403 + TCSETS = 0x540e + TCSETSF = 0x5410 + TCSETSW = 0x540f + TCXONC = 0x5406 + TIMER_ABSTIME = 0x1 + TIMER_RELTIME = 0x0 + TIOC = 0x5400 + TIOCCBRK = 0x747a + TIOCCDTR = 0x7478 + TIOCCILOOP = 0x746c + TIOCEXCL = 0x740d + TIOCFLUSH = 0x7410 + TIOCGETC = 0x7412 + TIOCGETD = 0x7400 + TIOCGETP = 0x7408 + TIOCGLTC = 0x7474 + TIOCGPGRP = 0x7414 + TIOCGPPS = 0x547d + TIOCGPPSEV = 0x547f + TIOCGSID = 0x7416 + TIOCGSOFTCAR = 0x5469 + TIOCGWINSZ = 0x5468 + TIOCHPCL = 0x7402 + TIOCKBOF = 0x5409 + TIOCKBON = 0x5408 + TIOCLBIC = 0x747e + TIOCLBIS = 0x747f + TIOCLGET = 0x747c + TIOCLSET = 0x747d + TIOCMBIC = 0x741c + TIOCMBIS = 0x741b + TIOCMGET = 0x741d + TIOCMSET = 0x741a + TIOCM_CAR = 0x40 + TIOCM_CD = 0x40 + TIOCM_CTS = 0x20 + TIOCM_DSR = 0x100 + TIOCM_DTR = 0x2 + TIOCM_LE = 0x1 + TIOCM_RI = 0x80 + TIOCM_RNG = 0x80 + TIOCM_RTS = 0x4 + TIOCM_SR = 0x10 + TIOCM_ST = 0x8 + TIOCNOTTY = 0x7471 + TIOCNXCL = 0x740e + TIOCOUTQ = 0x7473 + TIOCREMOTE = 0x741e + TIOCSBRK = 0x747b + TIOCSCTTY = 0x7484 + TIOCSDTR = 0x7479 + TIOCSETC = 0x7411 + TIOCSETD = 0x7401 + TIOCSETN = 0x740a + TIOCSETP = 0x7409 + TIOCSIGNAL = 0x741f + TIOCSILOOP = 0x746d + TIOCSLTC = 0x7475 + TIOCSPGRP = 0x7415 + TIOCSPPS = 0x547e + TIOCSSOFTCAR = 0x546a + TIOCSTART = 0x746e + TIOCSTI = 0x7417 + TIOCSTOP = 0x746f + TIOCSWINSZ = 0x5467 + TOSTOP = 0x100 + UTIME_NOW = -0x1 + UTIME_OMIT = -0x2 + VCEOF = 0x8 + VCEOL = 0x9 + VDISCARD = 0xd + VDSUSP = 0xb + VEOF = 0x4 + VEOL = 0x5 + VEOL2 = 0x6 + VERASE = 0x2 + VERASE2 = 0x11 + VINTR = 0x0 + VKILL = 0x3 + VLNEXT = 0xf + VMIN = 0x4 + VQUIT = 0x1 + VREPRINT = 0xc + VSTART = 0x8 + VSTATUS = 0x10 + VSTOP = 0x9 + VSUSP = 0xa + VSWTCH = 0x7 + VT0 = 0x0 + VT1 = 0x4000 + VTDLY = 0x4000 + VTIME = 0x5 + VWERASE = 0xe + WCONTFLG = 0xffff + WCONTINUED = 0x8 + WCOREFLG = 0x80 + WEXITED = 0x1 + WNOHANG = 0x40 + WNOWAIT = 0x80 + WOPTMASK = 0xcf + WRAP = 0x20000 + WSIGMASK = 0x7f + WSTOPFLG = 0x7f + WSTOPPED = 0x4 + WTRAPPED = 0x2 + WUNTRACED = 0x4 + XCASE = 0x4 + XTABS = 0x1800 +) + +// Errors +const ( + E2BIG = syscall.Errno(0x7) + EACCES = syscall.Errno(0xd) + EADDRINUSE = syscall.Errno(0x7d) + EADDRNOTAVAIL = syscall.Errno(0x7e) + EADV = syscall.Errno(0x44) + EAFNOSUPPORT = syscall.Errno(0x7c) + EAGAIN = syscall.Errno(0xb) + EALREADY = syscall.Errno(0x95) + EBADE = syscall.Errno(0x32) + EBADF = syscall.Errno(0x9) + EBADFD = syscall.Errno(0x51) + EBADMSG = syscall.Errno(0x4d) + EBADR = syscall.Errno(0x33) + EBADRQC = syscall.Errno(0x36) + EBADSLT = syscall.Errno(0x37) + EBFONT = syscall.Errno(0x39) + EBUSY = syscall.Errno(0x10) + ECANCELED = syscall.Errno(0x2f) + ECHILD = syscall.Errno(0xa) + ECHRNG = syscall.Errno(0x25) + ECOMM = syscall.Errno(0x46) + ECONNABORTED = syscall.Errno(0x82) + ECONNREFUSED = syscall.Errno(0x92) + ECONNRESET = syscall.Errno(0x83) + EDEADLK = syscall.Errno(0x2d) + EDEADLOCK = syscall.Errno(0x38) + EDESTADDRREQ = syscall.Errno(0x60) + EDOM = syscall.Errno(0x21) + EDQUOT = syscall.Errno(0x31) + EEXIST = syscall.Errno(0x11) + EFAULT = syscall.Errno(0xe) + EFBIG = syscall.Errno(0x1b) + EHOSTDOWN = syscall.Errno(0x93) + EHOSTUNREACH = syscall.Errno(0x94) + EIDRM = syscall.Errno(0x24) + EILSEQ = syscall.Errno(0x58) + EINPROGRESS = syscall.Errno(0x96) + EINTR = syscall.Errno(0x4) + EINVAL = syscall.Errno(0x16) + EIO = syscall.Errno(0x5) + EISCONN = syscall.Errno(0x85) + EISDIR = syscall.Errno(0x15) + EL2HLT = syscall.Errno(0x2c) + EL2NSYNC = syscall.Errno(0x26) + EL3HLT = syscall.Errno(0x27) + EL3RST = syscall.Errno(0x28) + ELIBACC = syscall.Errno(0x53) + ELIBBAD = syscall.Errno(0x54) + ELIBEXEC = syscall.Errno(0x57) + ELIBMAX = syscall.Errno(0x56) + ELIBSCN = syscall.Errno(0x55) + ELNRNG = syscall.Errno(0x29) + ELOCKUNMAPPED = syscall.Errno(0x48) + ELOOP = syscall.Errno(0x5a) + EMFILE = syscall.Errno(0x18) + EMLINK = syscall.Errno(0x1f) + EMSGSIZE = syscall.Errno(0x61) + EMULTIHOP = syscall.Errno(0x4a) + ENAMETOOLONG = syscall.Errno(0x4e) + ENETDOWN = syscall.Errno(0x7f) + ENETRESET = syscall.Errno(0x81) + ENETUNREACH = syscall.Errno(0x80) + ENFILE = syscall.Errno(0x17) + ENOANO = syscall.Errno(0x35) + ENOBUFS = syscall.Errno(0x84) + ENOCSI = syscall.Errno(0x2b) + ENODATA = syscall.Errno(0x3d) + ENODEV = syscall.Errno(0x13) + ENOENT = syscall.Errno(0x2) + ENOEXEC = syscall.Errno(0x8) + ENOLCK = syscall.Errno(0x2e) + ENOLINK = syscall.Errno(0x43) + ENOMEM = syscall.Errno(0xc) + ENOMSG = syscall.Errno(0x23) + ENONET = syscall.Errno(0x40) + ENOPKG = syscall.Errno(0x41) + ENOPROTOOPT = syscall.Errno(0x63) + ENOSPC = syscall.Errno(0x1c) + ENOSR = syscall.Errno(0x3f) + ENOSTR = syscall.Errno(0x3c) + ENOSYS = syscall.Errno(0x59) + ENOTACTIVE = syscall.Errno(0x49) + ENOTBLK = syscall.Errno(0xf) + ENOTCONN = syscall.Errno(0x86) + ENOTDIR = syscall.Errno(0x14) + ENOTEMPTY = syscall.Errno(0x5d) + ENOTRECOVERABLE = syscall.Errno(0x3b) + ENOTSOCK = syscall.Errno(0x5f) + ENOTSUP = syscall.Errno(0x30) + ENOTTY = syscall.Errno(0x19) + ENOTUNIQ = syscall.Errno(0x50) + ENXIO = syscall.Errno(0x6) + EOPNOTSUPP = syscall.Errno(0x7a) + EOVERFLOW = syscall.Errno(0x4f) + EOWNERDEAD = syscall.Errno(0x3a) + EPERM = syscall.Errno(0x1) + EPFNOSUPPORT = syscall.Errno(0x7b) + EPIPE = syscall.Errno(0x20) + EPROTO = syscall.Errno(0x47) + EPROTONOSUPPORT = syscall.Errno(0x78) + EPROTOTYPE = syscall.Errno(0x62) + ERANGE = syscall.Errno(0x22) + EREMCHG = syscall.Errno(0x52) + EREMOTE = syscall.Errno(0x42) + ERESTART = syscall.Errno(0x5b) + EROFS = syscall.Errno(0x1e) + ESHUTDOWN = syscall.Errno(0x8f) + ESOCKTNOSUPPORT = syscall.Errno(0x79) + ESPIPE = syscall.Errno(0x1d) + ESRCH = syscall.Errno(0x3) + ESRMNT = syscall.Errno(0x45) + ESTALE = syscall.Errno(0x97) + ESTRPIPE = syscall.Errno(0x5c) + ETIME = syscall.Errno(0x3e) + ETIMEDOUT = syscall.Errno(0x91) + ETOOMANYREFS = syscall.Errno(0x90) + ETXTBSY = syscall.Errno(0x1a) + EUNATCH = syscall.Errno(0x2a) + EUSERS = syscall.Errno(0x5e) + EWOULDBLOCK = syscall.Errno(0xb) + EXDEV = syscall.Errno(0x12) + EXFULL = syscall.Errno(0x34) +) + +// Signals +const ( + SIGABRT = syscall.Signal(0x6) + SIGALRM = syscall.Signal(0xe) + SIGBUS = syscall.Signal(0xa) + SIGCANCEL = syscall.Signal(0x24) + SIGCHLD = syscall.Signal(0x12) + SIGCLD = syscall.Signal(0x12) + SIGCONT = syscall.Signal(0x19) + SIGEMT = syscall.Signal(0x7) + SIGFPE = syscall.Signal(0x8) + SIGFREEZE = syscall.Signal(0x22) + SIGHUP = syscall.Signal(0x1) + SIGILL = syscall.Signal(0x4) + SIGINFO = syscall.Signal(0x29) + SIGINT = syscall.Signal(0x2) + SIGIO = syscall.Signal(0x16) + SIGIOT = syscall.Signal(0x6) + SIGJVM1 = syscall.Signal(0x27) + SIGJVM2 = syscall.Signal(0x28) + SIGKILL = syscall.Signal(0x9) + SIGLOST = syscall.Signal(0x25) + SIGLWP = syscall.Signal(0x21) + SIGPIPE = syscall.Signal(0xd) + SIGPOLL = syscall.Signal(0x16) + SIGPROF = syscall.Signal(0x1d) + SIGPWR = syscall.Signal(0x13) + SIGQUIT = syscall.Signal(0x3) + SIGSEGV = syscall.Signal(0xb) + SIGSTOP = syscall.Signal(0x17) + SIGSYS = syscall.Signal(0xc) + SIGTERM = syscall.Signal(0xf) + SIGTHAW = syscall.Signal(0x23) + SIGTRAP = syscall.Signal(0x5) + SIGTSTP = syscall.Signal(0x18) + SIGTTIN = syscall.Signal(0x1a) + SIGTTOU = syscall.Signal(0x1b) + SIGURG = syscall.Signal(0x15) + SIGUSR1 = syscall.Signal(0x10) + SIGUSR2 = syscall.Signal(0x11) + SIGVTALRM = syscall.Signal(0x1c) + SIGWAITING = syscall.Signal(0x20) + SIGWINCH = syscall.Signal(0x14) + SIGXCPU = syscall.Signal(0x1e) + SIGXFSZ = syscall.Signal(0x1f) + SIGXRES = syscall.Signal(0x26) +) + +// Error table +var errorList = [...]struct { + num syscall.Errno + name string + desc string +}{ + {1, "EPERM", "not owner"}, + {2, "ENOENT", "no such file or directory"}, + {3, "ESRCH", "no such process"}, + {4, "EINTR", "interrupted system call"}, + {5, "EIO", "I/O error"}, + {6, "ENXIO", "no such device or address"}, + {7, "E2BIG", "arg list too long"}, + {8, "ENOEXEC", "exec format error"}, + {9, "EBADF", "bad file number"}, + {10, "ECHILD", "no child processes"}, + {11, "EAGAIN", "resource temporarily unavailable"}, + {12, "ENOMEM", "not enough space"}, + {13, "EACCES", "permission denied"}, + {14, "EFAULT", "bad address"}, + {15, "ENOTBLK", "block device required"}, + {16, "EBUSY", "device busy"}, + {17, "EEXIST", "file exists"}, + {18, "EXDEV", "cross-device link"}, + {19, "ENODEV", "no such device"}, + {20, "ENOTDIR", "not a directory"}, + {21, "EISDIR", "is a directory"}, + {22, "EINVAL", "invalid argument"}, + {23, "ENFILE", "file table overflow"}, + {24, "EMFILE", "too many open files"}, + {25, "ENOTTY", "inappropriate ioctl for device"}, + {26, "ETXTBSY", "text file busy"}, + {27, "EFBIG", "file too large"}, + {28, "ENOSPC", "no space left on device"}, + {29, "ESPIPE", "illegal seek"}, + {30, "EROFS", "read-only file system"}, + {31, "EMLINK", "too many links"}, + {32, "EPIPE", "broken pipe"}, + {33, "EDOM", "argument out of domain"}, + {34, "ERANGE", "result too large"}, + {35, "ENOMSG", "no message of desired type"}, + {36, "EIDRM", "identifier removed"}, + {37, "ECHRNG", "channel number out of range"}, + {38, "EL2NSYNC", "level 2 not synchronized"}, + {39, "EL3HLT", "level 3 halted"}, + {40, "EL3RST", "level 3 reset"}, + {41, "ELNRNG", "link number out of range"}, + {42, "EUNATCH", "protocol driver not attached"}, + {43, "ENOCSI", "no CSI structure available"}, + {44, "EL2HLT", "level 2 halted"}, + {45, "EDEADLK", "deadlock situation detected/avoided"}, + {46, "ENOLCK", "no record locks available"}, + {47, "ECANCELED", "operation canceled"}, + {48, "ENOTSUP", "operation not supported"}, + {49, "EDQUOT", "disc quota exceeded"}, + {50, "EBADE", "bad exchange descriptor"}, + {51, "EBADR", "bad request descriptor"}, + {52, "EXFULL", "message tables full"}, + {53, "ENOANO", "anode table overflow"}, + {54, "EBADRQC", "bad request code"}, + {55, "EBADSLT", "invalid slot"}, + {56, "EDEADLOCK", "file locking deadlock"}, + {57, "EBFONT", "bad font file format"}, + {58, "EOWNERDEAD", "owner of the lock died"}, + {59, "ENOTRECOVERABLE", "lock is not recoverable"}, + {60, "ENOSTR", "not a stream device"}, + {61, "ENODATA", "no data available"}, + {62, "ETIME", "timer expired"}, + {63, "ENOSR", "out of stream resources"}, + {64, "ENONET", "machine is not on the network"}, + {65, "ENOPKG", "package not installed"}, + {66, "EREMOTE", "object is remote"}, + {67, "ENOLINK", "link has been severed"}, + {68, "EADV", "advertise error"}, + {69, "ESRMNT", "srmount error"}, + {70, "ECOMM", "communication error on send"}, + {71, "EPROTO", "protocol error"}, + {72, "ELOCKUNMAPPED", "locked lock was unmapped "}, + {73, "ENOTACTIVE", "facility is not active"}, + {74, "EMULTIHOP", "multihop attempted"}, + {77, "EBADMSG", "not a data message"}, + {78, "ENAMETOOLONG", "file name too long"}, + {79, "EOVERFLOW", "value too large for defined data type"}, + {80, "ENOTUNIQ", "name not unique on network"}, + {81, "EBADFD", "file descriptor in bad state"}, + {82, "EREMCHG", "remote address changed"}, + {83, "ELIBACC", "can not access a needed shared library"}, + {84, "ELIBBAD", "accessing a corrupted shared library"}, + {85, "ELIBSCN", ".lib section in a.out corrupted"}, + {86, "ELIBMAX", "attempting to link in more shared libraries than system limit"}, + {87, "ELIBEXEC", "can not exec a shared library directly"}, + {88, "EILSEQ", "illegal byte sequence"}, + {89, "ENOSYS", "operation not applicable"}, + {90, "ELOOP", "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS"}, + {91, "ERESTART", "error 91"}, + {92, "ESTRPIPE", "error 92"}, + {93, "ENOTEMPTY", "directory not empty"}, + {94, "EUSERS", "too many users"}, + {95, "ENOTSOCK", "socket operation on non-socket"}, + {96, "EDESTADDRREQ", "destination address required"}, + {97, "EMSGSIZE", "message too long"}, + {98, "EPROTOTYPE", "protocol wrong type for socket"}, + {99, "ENOPROTOOPT", "option not supported by protocol"}, + {120, "EPROTONOSUPPORT", "protocol not supported"}, + {121, "ESOCKTNOSUPPORT", "socket type not supported"}, + {122, "EOPNOTSUPP", "operation not supported on transport endpoint"}, + {123, "EPFNOSUPPORT", "protocol family not supported"}, + {124, "EAFNOSUPPORT", "address family not supported by protocol family"}, + {125, "EADDRINUSE", "address already in use"}, + {126, "EADDRNOTAVAIL", "cannot assign requested address"}, + {127, "ENETDOWN", "network is down"}, + {128, "ENETUNREACH", "network is unreachable"}, + {129, "ENETRESET", "network dropped connection because of reset"}, + {130, "ECONNABORTED", "software caused connection abort"}, + {131, "ECONNRESET", "connection reset by peer"}, + {132, "ENOBUFS", "no buffer space available"}, + {133, "EISCONN", "transport endpoint is already connected"}, + {134, "ENOTCONN", "transport endpoint is not connected"}, + {143, "ESHUTDOWN", "cannot send after socket shutdown"}, + {144, "ETOOMANYREFS", "too many references: cannot splice"}, + {145, "ETIMEDOUT", "connection timed out"}, + {146, "ECONNREFUSED", "connection refused"}, + {147, "EHOSTDOWN", "host is down"}, + {148, "EHOSTUNREACH", "no route to host"}, + {149, "EALREADY", "operation already in progress"}, + {150, "EINPROGRESS", "operation now in progress"}, + {151, "ESTALE", "stale NFS file handle"}, +} + +// Signal table +var signalList = [...]struct { + num syscall.Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGQUIT", "quit"}, + {4, "SIGILL", "illegal Instruction"}, + {5, "SIGTRAP", "trace/Breakpoint Trap"}, + {6, "SIGABRT", "abort"}, + {7, "SIGEMT", "emulation Trap"}, + {8, "SIGFPE", "arithmetic Exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus Error"}, + {11, "SIGSEGV", "segmentation Fault"}, + {12, "SIGSYS", "bad System Call"}, + {13, "SIGPIPE", "broken Pipe"}, + {14, "SIGALRM", "alarm Clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGUSR1", "user Signal 1"}, + {17, "SIGUSR2", "user Signal 2"}, + {18, "SIGCHLD", "child Status Changed"}, + {19, "SIGPWR", "power-Fail/Restart"}, + {20, "SIGWINCH", "window Size Change"}, + {21, "SIGURG", "urgent Socket Condition"}, + {22, "SIGIO", "pollable Event"}, + {23, "SIGSTOP", "stopped (signal)"}, + {24, "SIGTSTP", "stopped (user)"}, + {25, "SIGCONT", "continued"}, + {26, "SIGTTIN", "stopped (tty input)"}, + {27, "SIGTTOU", "stopped (tty output)"}, + {28, "SIGVTALRM", "virtual Timer Expired"}, + {29, "SIGPROF", "profiling Timer Expired"}, + {30, "SIGXCPU", "cpu Limit Exceeded"}, + {31, "SIGXFSZ", "file Size Limit Exceeded"}, + {32, "SIGWAITING", "no runnable lwp"}, + {33, "SIGLWP", "inter-lwp signal"}, + {34, "SIGFREEZE", "checkpoint Freeze"}, + {35, "SIGTHAW", "checkpoint Thaw"}, + {36, "SIGCANCEL", "thread Cancellation"}, + {37, "SIGLOST", "resource Lost"}, + {38, "SIGXRES", "resource Control Exceeded"}, + {39, "SIGJVM1", "reserved for JVM 1"}, + {40, "SIGJVM2", "reserved for JVM 2"}, + {41, "SIGINFO", "information Request"}, +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go new file mode 100644 index 0000000..fc7d050 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go @@ -0,0 +1,860 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +// Hand edited based on zerrors_linux_s390x.go +// TODO: auto-generate. + +package unix + +const ( + BRKINT = 0x0001 + CLOCK_MONOTONIC = 0x1 + CLOCK_PROCESS_CPUTIME_ID = 0x2 + CLOCK_REALTIME = 0x0 + CLOCK_THREAD_CPUTIME_ID = 0x3 + CS8 = 0x0030 + CSIZE = 0x0030 + ECHO = 0x00000008 + ECHONL = 0x00000001 + FD_CLOEXEC = 0x01 + FD_CLOFORK = 0x02 + FNDELAY = 0x04 + F_CLOSFD = 9 + F_CONTROL_CVT = 13 + F_DUPFD = 0 + F_DUPFD2 = 8 + F_GETFD = 1 + F_GETFL = 259 + F_GETLK = 5 + F_GETOWN = 10 + F_OK = 0x0 + F_RDLCK = 1 + F_SETFD = 2 + F_SETFL = 4 + F_SETLK = 6 + F_SETLKW = 7 + F_SETOWN = 11 + F_SETTAG = 12 + F_UNLCK = 3 + F_WRLCK = 2 + FSTYPE_ZFS = 0xe9 //"Z" + FSTYPE_HFS = 0xc8 //"H" + FSTYPE_NFS = 0xd5 //"N" + FSTYPE_TFS = 0xe3 //"T" + FSTYPE_AUTOMOUNT = 0xc1 //"A" + IP6F_MORE_FRAG = 0x0001 + IP6F_OFF_MASK = 0xfff8 + IP6F_RESERVED_MASK = 0x0006 + IP6OPT_JUMBO = 0xc2 + IP6OPT_JUMBO_LEN = 6 + IP6OPT_MUTABLE = 0x20 + IP6OPT_NSAP_ADDR = 0xc3 + IP6OPT_PAD1 = 0x00 + IP6OPT_PADN = 0x01 + IP6OPT_ROUTER_ALERT = 0x05 + IP6OPT_TUNNEL_LIMIT = 0x04 + IP6OPT_TYPE_DISCARD = 0x40 + IP6OPT_TYPE_FORCEICMP = 0x80 + IP6OPT_TYPE_ICMP = 0xc0 + IP6OPT_TYPE_SKIP = 0x00 + IP6_ALERT_AN = 0x0002 + IP6_ALERT_MLD = 0x0000 + IP6_ALERT_RSVP = 0x0001 + IPPORT_RESERVED = 1024 + IPPORT_USERRESERVED = 5000 + IPPROTO_AH = 51 + SOL_AH = 51 + IPPROTO_DSTOPTS = 60 + SOL_DSTOPTS = 60 + IPPROTO_EGP = 8 + SOL_EGP = 8 + IPPROTO_ESP = 50 + SOL_ESP = 50 + IPPROTO_FRAGMENT = 44 + SOL_FRAGMENT = 44 + IPPROTO_GGP = 2 + SOL_GGP = 2 + IPPROTO_HOPOPTS = 0 + SOL_HOPOPTS = 0 + IPPROTO_ICMP = 1 + SOL_ICMP = 1 + IPPROTO_ICMPV6 = 58 + SOL_ICMPV6 = 58 + IPPROTO_IDP = 22 + SOL_IDP = 22 + IPPROTO_IP = 0 + SOL_IP = 0 + IPPROTO_IPV6 = 41 + SOL_IPV6 = 41 + IPPROTO_MAX = 256 + SOL_MAX = 256 + IPPROTO_NONE = 59 + SOL_NONE = 59 + IPPROTO_PUP = 12 + SOL_PUP = 12 + IPPROTO_RAW = 255 + SOL_RAW = 255 + IPPROTO_ROUTING = 43 + SOL_ROUTING = 43 + IPPROTO_TCP = 6 + SOL_TCP = 6 + IPPROTO_UDP = 17 + SOL_UDP = 17 + IPV6_ADDR_PREFERENCES = 32 + IPV6_CHECKSUM = 19 + IPV6_DONTFRAG = 29 + IPV6_DSTOPTS = 23 + IPV6_HOPLIMIT = 11 + IPV6_HOPOPTS = 22 + IPV6_JOIN_GROUP = 5 + IPV6_LEAVE_GROUP = 6 + IPV6_MULTICAST_HOPS = 9 + IPV6_MULTICAST_IF = 7 + IPV6_MULTICAST_LOOP = 4 + IPV6_NEXTHOP = 20 + IPV6_PATHMTU = 12 + IPV6_PKTINFO = 13 + IPV6_PREFER_SRC_CGA = 0x10 + IPV6_PREFER_SRC_COA = 0x02 + IPV6_PREFER_SRC_HOME = 0x01 + IPV6_PREFER_SRC_NONCGA = 0x20 + IPV6_PREFER_SRC_PUBLIC = 0x08 + IPV6_PREFER_SRC_TMP = 0x04 + IPV6_RECVDSTOPTS = 28 + IPV6_RECVHOPLIMIT = 14 + IPV6_RECVHOPOPTS = 26 + IPV6_RECVPATHMTU = 16 + IPV6_RECVPKTINFO = 15 + IPV6_RECVRTHDR = 25 + IPV6_RECVTCLASS = 31 + IPV6_RTHDR = 21 + IPV6_RTHDRDSTOPTS = 24 + IPV6_RTHDR_TYPE_0 = 0 + IPV6_TCLASS = 30 + IPV6_UNICAST_HOPS = 3 + IPV6_USE_MIN_MTU = 18 + IPV6_V6ONLY = 10 + IP_ADD_MEMBERSHIP = 5 + IP_ADD_SOURCE_MEMBERSHIP = 12 + IP_BLOCK_SOURCE = 10 + IP_DEFAULT_MULTICAST_LOOP = 1 + IP_DEFAULT_MULTICAST_TTL = 1 + IP_DROP_MEMBERSHIP = 6 + IP_DROP_SOURCE_MEMBERSHIP = 13 + IP_MAX_MEMBERSHIPS = 20 + IP_MULTICAST_IF = 7 + IP_MULTICAST_LOOP = 4 + IP_MULTICAST_TTL = 3 + IP_OPTIONS = 1 + IP_PKTINFO = 101 + IP_RECVPKTINFO = 102 + IP_TOS = 2 + IP_TTL = 3 + IP_UNBLOCK_SOURCE = 11 + ICANON = 0x0010 + ICMP6_FILTER = 0x26 + ICRNL = 0x0002 + IEXTEN = 0x0020 + IGNBRK = 0x0004 + IGNCR = 0x0008 + INLCR = 0x0020 + ISIG = 0x0040 + ISTRIP = 0x0080 + IXON = 0x0200 + IXOFF = 0x0100 + LOCK_SH = 0x1 // Not exist on zOS + LOCK_EX = 0x2 // Not exist on zOS + LOCK_NB = 0x4 // Not exist on zOS + LOCK_UN = 0x8 // Not exist on zOS + POLLIN = 0x0003 + POLLOUT = 0x0004 + POLLPRI = 0x0010 + POLLERR = 0x0020 + POLLHUP = 0x0040 + POLLNVAL = 0x0080 + PROT_READ = 0x1 // mmap - page can be read + PROT_WRITE = 0x2 // page can be written + PROT_NONE = 0x4 // can't be accessed + PROT_EXEC = 0x8 // can be executed + MAP_PRIVATE = 0x1 // changes are private + MAP_SHARED = 0x2 // changes are shared + MAP_FIXED = 0x4 // place exactly + MCAST_JOIN_GROUP = 40 + MCAST_LEAVE_GROUP = 41 + MCAST_JOIN_SOURCE_GROUP = 42 + MCAST_LEAVE_SOURCE_GROUP = 43 + MCAST_BLOCK_SOURCE = 44 + MCAST_UNBLOCK_SOURCE = 45 + MS_SYNC = 0x1 // msync - synchronous writes + MS_ASYNC = 0x2 // asynchronous writes + MS_INVALIDATE = 0x4 // invalidate mappings + MTM_RDONLY = 0x80000000 + MTM_RDWR = 0x40000000 + MTM_UMOUNT = 0x10000000 + MTM_IMMED = 0x08000000 + MTM_FORCE = 0x04000000 + MTM_DRAIN = 0x02000000 + MTM_RESET = 0x01000000 + MTM_SAMEMODE = 0x00100000 + MTM_UNQSEFORCE = 0x00040000 + MTM_NOSUID = 0x00000400 + MTM_SYNCHONLY = 0x00000200 + MTM_REMOUNT = 0x00000100 + MTM_NOSECURITY = 0x00000080 + NFDBITS = 0x20 + O_ACCMODE = 0x03 + O_APPEND = 0x08 + O_ASYNCSIG = 0x0200 + O_CREAT = 0x80 + O_EXCL = 0x40 + O_GETFL = 0x0F + O_LARGEFILE = 0x0400 + O_NONBLOCK = 0x04 + O_RDONLY = 0x02 + O_RDWR = 0x03 + O_SYNC = 0x0100 + O_TRUNC = 0x10 + O_WRONLY = 0x01 + O_NOCTTY = 0x20 + OPOST = 0x0001 + ONLCR = 0x0004 + PARENB = 0x0200 + PARMRK = 0x0400 + QUERYCVT = 3 + RUSAGE_CHILDREN = -0x1 + RUSAGE_SELF = 0x0 // RUSAGE_THREAD unsupported on z/OS + SEEK_CUR = 1 + SEEK_END = 2 + SEEK_SET = 0 + SETAUTOCVTALL = 5 + SETAUTOCVTON = 2 + SETCVTALL = 4 + SETCVTOFF = 0 + SETCVTON = 1 + AF_APPLETALK = 16 + AF_CCITT = 10 + AF_CHAOS = 5 + AF_DATAKIT = 9 + AF_DLI = 13 + AF_ECMA = 8 + AF_HYLINK = 15 + AF_IMPLINK = 3 + AF_INET = 2 + AF_INET6 = 19 + AF_INTF = 20 + AF_IUCV = 17 + AF_LAT = 14 + AF_LINK = 18 + AF_MAX = 30 + AF_NBS = 7 + AF_NDD = 23 + AF_NETWARE = 22 + AF_NS = 6 + AF_PUP = 4 + AF_RIF = 21 + AF_ROUTE = 20 + AF_SNA = 11 + AF_UNIX = 1 + AF_UNSPEC = 0 + IBMTCP_IMAGE = 1 + MSG_ACK_EXPECTED = 0x10 + MSG_ACK_GEN = 0x40 + MSG_ACK_TIMEOUT = 0x20 + MSG_CONNTERM = 0x80 + MSG_CTRUNC = 0x20 + MSG_DONTROUTE = 0x4 + MSG_EOF = 0x8000 + MSG_EOR = 0x8 + MSG_MAXIOVLEN = 16 + MSG_NONBLOCK = 0x4000 + MSG_OOB = 0x1 + MSG_PEEK = 0x2 + MSG_TRUNC = 0x10 + MSG_WAITALL = 0x40 + PRIO_PROCESS = 1 + PRIO_PGRP = 2 + PRIO_USER = 3 + RLIMIT_CPU = 0 + RLIMIT_FSIZE = 1 + RLIMIT_DATA = 2 + RLIMIT_STACK = 3 + RLIMIT_CORE = 4 + RLIMIT_AS = 5 + RLIMIT_NOFILE = 6 + RLIMIT_MEMLIMIT = 7 + RLIM_INFINITY = 2147483647 + SCM_RIGHTS = 0x01 + SF_CLOSE = 0x00000002 + SF_REUSE = 0x00000001 + SHUT_RD = 0 + SHUT_RDWR = 2 + SHUT_WR = 1 + SOCK_CONN_DGRAM = 6 + SOCK_DGRAM = 2 + SOCK_RAW = 3 + SOCK_RDM = 4 + SOCK_SEQPACKET = 5 + SOCK_STREAM = 1 + SOL_SOCKET = 0xffff + SOMAXCONN = 10 + SO_ACCEPTCONN = 0x0002 + SO_ACCEPTECONNABORTED = 0x0006 + SO_ACKNOW = 0x7700 + SO_BROADCAST = 0x0020 + SO_BULKMODE = 0x8000 + SO_CKSUMRECV = 0x0800 + SO_CLOSE = 0x01 + SO_CLUSTERCONNTYPE = 0x00004001 + SO_CLUSTERCONNTYPE_INTERNAL = 8 + SO_CLUSTERCONNTYPE_NOCONN = 0 + SO_CLUSTERCONNTYPE_NONE = 1 + SO_CLUSTERCONNTYPE_SAME_CLUSTER = 2 + SO_CLUSTERCONNTYPE_SAME_IMAGE = 4 + SO_DEBUG = 0x0001 + SO_DONTROUTE = 0x0010 + SO_ERROR = 0x1007 + SO_IGNOREINCOMINGPUSH = 0x1 + SO_IGNORESOURCEVIPA = 0x0002 + SO_KEEPALIVE = 0x0008 + SO_LINGER = 0x0080 + SO_NONBLOCKLOCAL = 0x8001 + SO_NOREUSEADDR = 0x1000 + SO_OOBINLINE = 0x0100 + SO_OPTACK = 0x8004 + SO_OPTMSS = 0x8003 + SO_RCVBUF = 0x1002 + SO_RCVLOWAT = 0x1004 + SO_RCVTIMEO = 0x1006 + SO_REUSEADDR = 0x0004 + SO_REUSEPORT = 0x0200 + SO_SECINFO = 0x00004002 + SO_SET = 0x0200 + SO_SNDBUF = 0x1001 + SO_SNDLOWAT = 0x1003 + SO_SNDTIMEO = 0x1005 + SO_TYPE = 0x1008 + SO_UNSET = 0x0400 + SO_USELOOPBACK = 0x0040 + SO_USE_IFBUFS = 0x0400 + S_ISUID = 0x0800 + S_ISGID = 0x0400 + S_ISVTX = 0x0200 + S_IRUSR = 0x0100 + S_IWUSR = 0x0080 + S_IXUSR = 0x0040 + S_IRWXU = 0x01C0 + S_IRGRP = 0x0020 + S_IWGRP = 0x0010 + S_IXGRP = 0x0008 + S_IRWXG = 0x0038 + S_IROTH = 0x0004 + S_IWOTH = 0x0002 + S_IXOTH = 0x0001 + S_IRWXO = 0x0007 + S_IREAD = S_IRUSR + S_IWRITE = S_IWUSR + S_IEXEC = S_IXUSR + S_IFDIR = 0x01000000 + S_IFCHR = 0x02000000 + S_IFREG = 0x03000000 + S_IFFIFO = 0x04000000 + S_IFIFO = 0x04000000 + S_IFLNK = 0x05000000 + S_IFBLK = 0x06000000 + S_IFSOCK = 0x07000000 + S_IFVMEXTL = 0xFE000000 + S_IFVMEXTL_EXEC = 0x00010000 + S_IFVMEXTL_DATA = 0x00020000 + S_IFVMEXTL_MEL = 0x00030000 + S_IFEXTL = 0x00000001 + S_IFPROGCTL = 0x00000002 + S_IFAPFCTL = 0x00000004 + S_IFNOSHARE = 0x00000008 + S_IFSHARELIB = 0x00000010 + S_IFMT = 0xFF000000 + S_IFMST = 0x00FF0000 + TCP_KEEPALIVE = 0x8 + TCP_NODELAY = 0x1 + TCP_INFO = 0xb + TCP_USER_TIMEOUT = 0x1 + TIOCGWINSZ = 0x4008a368 + TIOCSWINSZ = 0x8008a367 + TIOCSBRK = 0x2000a77b + TIOCCBRK = 0x2000a77a + TIOCSTI = 0x8001a772 + TIOCGPGRP = 0x4004a777 // _IOR(167, 119, int) + TCSANOW = 0 + TCSETS = 0 // equivalent to TCSANOW for tcsetattr + TCSADRAIN = 1 + TCSETSW = 1 // equivalent to TCSADRAIN for tcsetattr + TCSAFLUSH = 2 + TCSETSF = 2 // equivalent to TCSAFLUSH for tcsetattr + TCGETS = 3 // not defined in ioctl.h -- zos golang only + TCIFLUSH = 0 + TCOFLUSH = 1 + TCIOFLUSH = 2 + TCOOFF = 0 + TCOON = 1 + TCIOFF = 2 + TCION = 3 + TIOCSPGRP = 0x8004a776 + TIOCNOTTY = 0x2000a771 + TIOCEXCL = 0x2000a70d + TIOCNXCL = 0x2000a70e + TIOCGETD = 0x4004a700 + TIOCSETD = 0x8004a701 + TIOCPKT = 0x8004a770 + TIOCSTOP = 0x2000a76f + TIOCSTART = 0x2000a76e + TIOCUCNTL = 0x8004a766 + TIOCREMOTE = 0x8004a769 + TIOCMGET = 0x4004a76a + TIOCMSET = 0x8004a76d + TIOCMBIC = 0x8004a76b + TIOCMBIS = 0x8004a76c + VINTR = 0 + VQUIT = 1 + VERASE = 2 + VKILL = 3 + VEOF = 4 + VEOL = 5 + VMIN = 6 + VSTART = 7 + VSTOP = 8 + VSUSP = 9 + VTIME = 10 + WCONTINUED = 0x4 + WNOHANG = 0x1 + WUNTRACED = 0x2 + _BPX_SWAP = 1 + _BPX_NONSWAP = 2 + MCL_CURRENT = 1 // for Linux compatibility -- no zos semantics + MCL_FUTURE = 2 // for Linux compatibility -- no zos semantics + MCL_ONFAULT = 3 // for Linux compatibility -- no zos semantics + MADV_NORMAL = 0 // for Linux compatibility -- no zos semantics + MADV_RANDOM = 1 // for Linux compatibility -- no zos semantics + MADV_SEQUENTIAL = 2 // for Linux compatibility -- no zos semantics + MADV_WILLNEED = 3 // for Linux compatibility -- no zos semantics + MADV_REMOVE = 4 // for Linux compatibility -- no zos semantics + MADV_DONTFORK = 5 // for Linux compatibility -- no zos semantics + MADV_DOFORK = 6 // for Linux compatibility -- no zos semantics + MADV_HWPOISON = 7 // for Linux compatibility -- no zos semantics + MADV_MERGEABLE = 8 // for Linux compatibility -- no zos semantics + MADV_UNMERGEABLE = 9 // for Linux compatibility -- no zos semantics + MADV_SOFT_OFFLINE = 10 // for Linux compatibility -- no zos semantics + MADV_HUGEPAGE = 11 // for Linux compatibility -- no zos semantics + MADV_NOHUGEPAGE = 12 // for Linux compatibility -- no zos semantics + MADV_DONTDUMP = 13 // for Linux compatibility -- no zos semantics + MADV_DODUMP = 14 // for Linux compatibility -- no zos semantics + MADV_FREE = 15 // for Linux compatibility -- no zos semantics + MADV_WIPEONFORK = 16 // for Linux compatibility -- no zos semantics + MADV_KEEPONFORK = 17 // for Linux compatibility -- no zos semantics + AT_SYMLINK_NOFOLLOW = 1 // for Unix compatibility -- no zos semantics + AT_FDCWD = 2 // for Unix compatibility -- no zos semantics +) + +const ( + EDOM = Errno(1) + ERANGE = Errno(2) + EACCES = Errno(111) + EAGAIN = Errno(112) + EBADF = Errno(113) + EBUSY = Errno(114) + ECHILD = Errno(115) + EDEADLK = Errno(116) + EEXIST = Errno(117) + EFAULT = Errno(118) + EFBIG = Errno(119) + EINTR = Errno(120) + EINVAL = Errno(121) + EIO = Errno(122) + EISDIR = Errno(123) + EMFILE = Errno(124) + EMLINK = Errno(125) + ENAMETOOLONG = Errno(126) + ENFILE = Errno(127) + ENODEV = Errno(128) + ENOENT = Errno(129) + ENOEXEC = Errno(130) + ENOLCK = Errno(131) + ENOMEM = Errno(132) + ENOSPC = Errno(133) + ENOSYS = Errno(134) + ENOTDIR = Errno(135) + ENOTEMPTY = Errno(136) + ENOTTY = Errno(137) + ENXIO = Errno(138) + EPERM = Errno(139) + EPIPE = Errno(140) + EROFS = Errno(141) + ESPIPE = Errno(142) + ESRCH = Errno(143) + EXDEV = Errno(144) + E2BIG = Errno(145) + ELOOP = Errno(146) + EILSEQ = Errno(147) + ENODATA = Errno(148) + EOVERFLOW = Errno(149) + EMVSNOTUP = Errno(150) + ECMSSTORAGE = Errno(151) + EMVSDYNALC = Errno(151) + EMVSCVAF = Errno(152) + EMVSCATLG = Errno(153) + ECMSINITIAL = Errno(156) + EMVSINITIAL = Errno(156) + ECMSERR = Errno(157) + EMVSERR = Errno(157) + EMVSPARM = Errno(158) + ECMSPFSFILE = Errno(159) + EMVSPFSFILE = Errno(159) + EMVSBADCHAR = Errno(160) + ECMSPFSPERM = Errno(162) + EMVSPFSPERM = Errno(162) + EMVSSAFEXTRERR = Errno(163) + EMVSSAF2ERR = Errno(164) + EMVSTODNOTSET = Errno(165) + EMVSPATHOPTS = Errno(166) + EMVSNORTL = Errno(167) + EMVSEXPIRE = Errno(168) + EMVSPASSWORD = Errno(169) + EMVSWLMERROR = Errno(170) + EMVSCPLERROR = Errno(171) + EMVSARMERROR = Errno(172) + ELENOFORK = Errno(200) + ELEMSGERR = Errno(201) + EFPMASKINV = Errno(202) + EFPMODEINV = Errno(203) + EBUFLEN = Errno(227) + EEXTLINK = Errno(228) + ENODD = Errno(229) + ECMSESMERR = Errno(230) + ECPERR = Errno(231) + ELEMULTITHREAD = Errno(232) + ELEFENCE = Errno(244) + EBADDATA = Errno(245) + EUNKNOWN = Errno(246) + ENOTSUP = Errno(247) + EBADNAME = Errno(248) + ENOTSAFE = Errno(249) + ELEMULTITHREADFORK = Errno(257) + ECUNNOENV = Errno(258) + ECUNNOCONV = Errno(259) + ECUNNOTALIGNED = Errno(260) + ECUNERR = Errno(262) + EIBMBADCALL = Errno(1000) + EIBMBADPARM = Errno(1001) + EIBMSOCKOUTOFRANGE = Errno(1002) + EIBMSOCKINUSE = Errno(1003) + EIBMIUCVERR = Errno(1004) + EOFFLOADboxERROR = Errno(1005) + EOFFLOADboxRESTART = Errno(1006) + EOFFLOADboxDOWN = Errno(1007) + EIBMCONFLICT = Errno(1008) + EIBMCANCELLED = Errno(1009) + EIBMBADTCPNAME = Errno(1011) + ENOTBLK = Errno(1100) + ETXTBSY = Errno(1101) + EWOULDBLOCK = Errno(1102) + EINPROGRESS = Errno(1103) + EALREADY = Errno(1104) + ENOTSOCK = Errno(1105) + EDESTADDRREQ = Errno(1106) + EMSGSIZE = Errno(1107) + EPROTOTYPE = Errno(1108) + ENOPROTOOPT = Errno(1109) + EPROTONOSUPPORT = Errno(1110) + ESOCKTNOSUPPORT = Errno(1111) + EOPNOTSUPP = Errno(1112) + EPFNOSUPPORT = Errno(1113) + EAFNOSUPPORT = Errno(1114) + EADDRINUSE = Errno(1115) + EADDRNOTAVAIL = Errno(1116) + ENETDOWN = Errno(1117) + ENETUNREACH = Errno(1118) + ENETRESET = Errno(1119) + ECONNABORTED = Errno(1120) + ECONNRESET = Errno(1121) + ENOBUFS = Errno(1122) + EISCONN = Errno(1123) + ENOTCONN = Errno(1124) + ESHUTDOWN = Errno(1125) + ETOOMANYREFS = Errno(1126) + ETIMEDOUT = Errno(1127) + ECONNREFUSED = Errno(1128) + EHOSTDOWN = Errno(1129) + EHOSTUNREACH = Errno(1130) + EPROCLIM = Errno(1131) + EUSERS = Errno(1132) + EDQUOT = Errno(1133) + ESTALE = Errno(1134) + EREMOTE = Errno(1135) + ENOSTR = Errno(1136) + ETIME = Errno(1137) + ENOSR = Errno(1138) + ENOMSG = Errno(1139) + EBADMSG = Errno(1140) + EIDRM = Errno(1141) + ENONET = Errno(1142) + ERREMOTE = Errno(1143) + ENOLINK = Errno(1144) + EADV = Errno(1145) + ESRMNT = Errno(1146) + ECOMM = Errno(1147) + EPROTO = Errno(1148) + EMULTIHOP = Errno(1149) + EDOTDOT = Errno(1150) + EREMCHG = Errno(1151) + ECANCELED = Errno(1152) + EINTRNODATA = Errno(1159) + ENOREUSE = Errno(1160) + ENOMOVE = Errno(1161) +) + +// Signals +const ( + SIGHUP = Signal(1) + SIGINT = Signal(2) + SIGABRT = Signal(3) + SIGILL = Signal(4) + SIGPOLL = Signal(5) + SIGURG = Signal(6) + SIGSTOP = Signal(7) + SIGFPE = Signal(8) + SIGKILL = Signal(9) + SIGBUS = Signal(10) + SIGSEGV = Signal(11) + SIGSYS = Signal(12) + SIGPIPE = Signal(13) + SIGALRM = Signal(14) + SIGTERM = Signal(15) + SIGUSR1 = Signal(16) + SIGUSR2 = Signal(17) + SIGABND = Signal(18) + SIGCONT = Signal(19) + SIGCHLD = Signal(20) + SIGTTIN = Signal(21) + SIGTTOU = Signal(22) + SIGIO = Signal(23) + SIGQUIT = Signal(24) + SIGTSTP = Signal(25) + SIGTRAP = Signal(26) + SIGIOERR = Signal(27) + SIGWINCH = Signal(28) + SIGXCPU = Signal(29) + SIGXFSZ = Signal(30) + SIGVTALRM = Signal(31) + SIGPROF = Signal(32) + SIGDANGER = Signal(33) + SIGTHSTOP = Signal(34) + SIGTHCONT = Signal(35) + SIGTRACE = Signal(37) + SIGDCE = Signal(38) + SIGDUMP = Signal(39) +) + +// Error table +var errorList = [...]struct { + num Errno + name string + desc string +}{ + {1, "EDC5001I", "A domain error occurred."}, + {2, "EDC5002I", "A range error occurred."}, + {111, "EDC5111I", "Permission denied."}, + {112, "EDC5112I", "Resource temporarily unavailable."}, + {113, "EDC5113I", "Bad file descriptor."}, + {114, "EDC5114I", "Resource busy."}, + {115, "EDC5115I", "No child processes."}, + {116, "EDC5116I", "Resource deadlock avoided."}, + {117, "EDC5117I", "File exists."}, + {118, "EDC5118I", "Incorrect address."}, + {119, "EDC5119I", "File too large."}, + {120, "EDC5120I", "Interrupted function call."}, + {121, "EDC5121I", "Invalid argument."}, + {122, "EDC5122I", "Input/output error."}, + {123, "EDC5123I", "Is a directory."}, + {124, "EDC5124I", "Too many open files."}, + {125, "EDC5125I", "Too many links."}, + {126, "EDC5126I", "Filename too long."}, + {127, "EDC5127I", "Too many open files in system."}, + {128, "EDC5128I", "No such device."}, + {129, "EDC5129I", "No such file or directory."}, + {130, "EDC5130I", "Exec format error."}, + {131, "EDC5131I", "No locks available."}, + {132, "EDC5132I", "Not enough memory."}, + {133, "EDC5133I", "No space left on device."}, + {134, "EDC5134I", "Function not implemented."}, + {135, "EDC5135I", "Not a directory."}, + {136, "EDC5136I", "Directory not empty."}, + {137, "EDC5137I", "Inappropriate I/O control operation."}, + {138, "EDC5138I", "No such device or address."}, + {139, "EDC5139I", "Operation not permitted."}, + {140, "EDC5140I", "Broken pipe."}, + {141, "EDC5141I", "Read-only file system."}, + {142, "EDC5142I", "Invalid seek."}, + {143, "EDC5143I", "No such process."}, + {144, "EDC5144I", "Improper link."}, + {145, "EDC5145I", "The parameter list is too long, or the message to receive was too large for the buffer."}, + {146, "EDC5146I", "Too many levels of symbolic links."}, + {147, "EDC5147I", "Illegal byte sequence."}, + {148, "", ""}, + {149, "EDC5149I", "Value Overflow Error."}, + {150, "EDC5150I", "UNIX System Services is not active."}, + {151, "EDC5151I", "Dynamic allocation error."}, + {152, "EDC5152I", "Common VTOC access facility (CVAF) error."}, + {153, "EDC5153I", "Catalog obtain error."}, + {156, "EDC5156I", "Process initialization error."}, + {157, "EDC5157I", "An internal error has occurred."}, + {158, "EDC5158I", "Bad parameters were passed to the service."}, + {159, "EDC5159I", "The Physical File System encountered a permanent file error."}, + {160, "EDC5160I", "Bad character in environment variable name."}, + {162, "EDC5162I", "The Physical File System encountered a system error."}, + {163, "EDC5163I", "SAF/RACF extract error."}, + {164, "EDC5164I", "SAF/RACF error."}, + {165, "EDC5165I", "System TOD clock not set."}, + {166, "EDC5166I", "Access mode argument on function call conflicts with PATHOPTS parameter on JCL DD statement."}, + {167, "EDC5167I", "Access to the UNIX System Services version of the C RTL is denied."}, + {168, "EDC5168I", "Password has expired."}, + {169, "EDC5169I", "Password is invalid."}, + {170, "EDC5170I", "An error was encountered with WLM."}, + {171, "EDC5171I", "An error was encountered with CPL."}, + {172, "EDC5172I", "An error was encountered with Application Response Measurement (ARM) component."}, + {200, "EDC5200I", "The application contains a Language Environment member language that cannot tolerate a fork()."}, + {201, "EDC5201I", "The Language Environment message file was not found in the hierarchical file system."}, + {202, "EDC5202E", "DLL facilities are not supported under SPC environment."}, + {203, "EDC5203E", "DLL facilities are not supported under POSIX environment."}, + {227, "EDC5227I", "Buffer is not long enough to contain a path definition"}, + {228, "EDC5228I", "The file referred to is an external link"}, + {229, "EDC5229I", "No path definition for ddname in effect"}, + {230, "EDC5230I", "ESM error."}, + {231, "EDC5231I", "CP or the external security manager had an error"}, + {232, "EDC5232I", "The function failed because it was invoked from a multithread environment."}, + {244, "EDC5244I", "The program, module or DLL is not supported in this environment."}, + {245, "EDC5245I", "Data is not valid."}, + {246, "EDC5246I", "Unknown system state."}, + {247, "EDC5247I", "Operation not supported."}, + {248, "EDC5248I", "The object name specified is not correct."}, + {249, "EDC5249I", "The function is not allowed."}, + {257, "EDC5257I", "Function cannot be called in the child process of a fork() from a multithreaded process until exec() is called."}, + {258, "EDC5258I", "A CUN_RS_NO_UNI_ENV error was issued by Unicode Services."}, + {259, "EDC5259I", "A CUN_RS_NO_CONVERSION error was issued by Unicode Services."}, + {260, "EDC5260I", "A CUN_RS_TABLE_NOT_ALIGNED error was issued by Unicode Services."}, + {262, "EDC5262I", "An iconv() function encountered an unexpected error while using Unicode Services."}, + {1000, "EDC8000I", "A bad socket-call constant was found in the IUCV header."}, + {1001, "EDC8001I", "An error was found in the IUCV header."}, + {1002, "EDC8002I", "A socket descriptor is out of range."}, + {1003, "EDC8003I", "A socket descriptor is in use."}, + {1004, "EDC8004I", "Request failed because of an IUCV error."}, + {1005, "EDC8005I", "Offload box error."}, + {1006, "EDC8006I", "Offload box restarted."}, + {1007, "EDC8007I", "Offload box down."}, + {1008, "EDC8008I", "Already a conflicting call outstanding on socket."}, + {1009, "EDC8009I", "Request cancelled using a SOCKcallCANCEL request."}, + {1011, "EDC8011I", "A name of a PFS was specified that either is not configured or is not a Sockets PFS."}, + {1100, "EDC8100I", "Block device required."}, + {1101, "EDC8101I", "Text file busy."}, + {1102, "EDC8102I", "Operation would block."}, + {1103, "EDC8103I", "Operation now in progress."}, + {1104, "EDC8104I", "Connection already in progress."}, + {1105, "EDC8105I", "Socket operation on non-socket."}, + {1106, "EDC8106I", "Destination address required."}, + {1107, "EDC8107I", "Message too long."}, + {1108, "EDC8108I", "Protocol wrong type for socket."}, + {1109, "EDC8109I", "Protocol not available."}, + {1110, "EDC8110I", "Protocol not supported."}, + {1111, "EDC8111I", "Socket type not supported."}, + {1112, "EDC8112I", "Operation not supported on socket."}, + {1113, "EDC8113I", "Protocol family not supported."}, + {1114, "EDC8114I", "Address family not supported."}, + {1115, "EDC8115I", "Address already in use."}, + {1116, "EDC8116I", "Address not available."}, + {1117, "EDC8117I", "Network is down."}, + {1118, "EDC8118I", "Network is unreachable."}, + {1119, "EDC8119I", "Network dropped connection on reset."}, + {1120, "EDC8120I", "Connection ended abnormally."}, + {1121, "EDC8121I", "Connection reset."}, + {1122, "EDC8122I", "No buffer space available."}, + {1123, "EDC8123I", "Socket already connected."}, + {1124, "EDC8124I", "Socket not connected."}, + {1125, "EDC8125I", "Can't send after socket shutdown."}, + {1126, "EDC8126I", "Too many references; can't splice."}, + {1127, "EDC8127I", "Connection timed out."}, + {1128, "EDC8128I", "Connection refused."}, + {1129, "EDC8129I", "Host is not available."}, + {1130, "EDC8130I", "Host cannot be reached."}, + {1131, "EDC8131I", "Too many processes."}, + {1132, "EDC8132I", "Too many users."}, + {1133, "EDC8133I", "Disk quota exceeded."}, + {1134, "EDC8134I", "Stale file handle."}, + {1135, "", ""}, + {1136, "EDC8136I", "File is not a STREAM."}, + {1137, "EDC8137I", "STREAMS ioctl() timeout."}, + {1138, "EDC8138I", "No STREAMS resources."}, + {1139, "EDC8139I", "The message identified by set_id and msg_id is not in the message catalog."}, + {1140, "EDC8140I", "Bad message."}, + {1141, "EDC8141I", "Identifier removed."}, + {1142, "", ""}, + {1143, "", ""}, + {1144, "EDC8144I", "The link has been severed."}, + {1145, "", ""}, + {1146, "", ""}, + {1147, "", ""}, + {1148, "EDC8148I", "Protocol error."}, + {1149, "EDC8149I", "Multihop not allowed."}, + {1150, "", ""}, + {1151, "", ""}, + {1152, "EDC8152I", "The asynchronous I/O request has been canceled."}, + {1159, "EDC8159I", "Function call was interrupted before any data was received."}, + {1160, "EDC8160I", "Socket reuse is not supported."}, + {1161, "EDC8161I", "The file system cannot currently be moved."}, +} + +// Signal table +var signalList = [...]struct { + num Signal + name string + desc string +}{ + {1, "SIGHUP", "hangup"}, + {2, "SIGINT", "interrupt"}, + {3, "SIGABT", "aborted"}, + {4, "SIGILL", "illegal instruction"}, + {5, "SIGPOLL", "pollable event"}, + {6, "SIGURG", "urgent I/O condition"}, + {7, "SIGSTOP", "stop process"}, + {8, "SIGFPE", "floating point exception"}, + {9, "SIGKILL", "killed"}, + {10, "SIGBUS", "bus error"}, + {11, "SIGSEGV", "segmentation fault"}, + {12, "SIGSYS", "bad argument to routine"}, + {13, "SIGPIPE", "broken pipe"}, + {14, "SIGALRM", "alarm clock"}, + {15, "SIGTERM", "terminated"}, + {16, "SIGUSR1", "user defined signal 1"}, + {17, "SIGUSR2", "user defined signal 2"}, + {18, "SIGABND", "abend"}, + {19, "SIGCONT", "continued"}, + {20, "SIGCHLD", "child exited"}, + {21, "SIGTTIN", "stopped (tty input)"}, + {22, "SIGTTOU", "stopped (tty output)"}, + {23, "SIGIO", "I/O possible"}, + {24, "SIGQUIT", "quit"}, + {25, "SIGTSTP", "stopped"}, + {26, "SIGTRAP", "trace/breakpoint trap"}, + {27, "SIGIOER", "I/O error"}, + {28, "SIGWINCH", "window changed"}, + {29, "SIGXCPU", "CPU time limit exceeded"}, + {30, "SIGXFSZ", "file size limit exceeded"}, + {31, "SIGVTALRM", "virtual timer expired"}, + {32, "SIGPROF", "profiling timer expired"}, + {33, "SIGDANGER", "danger"}, + {34, "SIGTHSTOP", "stop thread"}, + {35, "SIGTHCONT", "continue thread"}, + {37, "SIGTRACE", "trace"}, + {38, "", "DCE"}, + {39, "SIGDUMP", "dump"}, +} diff --git a/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go new file mode 100644 index 0000000..bd001a6 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go @@ -0,0 +1,42 @@ +// Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT. + +//go:build linux && (arm || arm64) +// +build linux +// +build arm arm64 + +package unix + +import "unsafe" + +// PtraceRegsArm is the registers used by arm binaries. +type PtraceRegsArm struct { + Uregs [18]uint32 +} + +// PtraceGetRegsArm fetches the registers used by arm binaries. +func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsArm sets the registers used by arm binaries. +func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} + +// PtraceRegsArm64 is the registers used by arm64 binaries. +type PtraceRegsArm64 struct { + Regs [31]uint64 + Sp uint64 + Pc uint64 + Pstate uint64 +} + +// PtraceGetRegsArm64 fetches the registers used by arm64 binaries. +func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsArm64 sets the registers used by arm64 binaries. +func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} diff --git a/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go b/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go new file mode 100644 index 0000000..6cb6d68 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go @@ -0,0 +1,17 @@ +// Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. + +package unix + +import "unsafe" + +// PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. +func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { + iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} + return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) +} + +// PtraceSetRegSetArm64 sets the registers used by arm64 binaries. +func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { + iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} + return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) +} diff --git a/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go new file mode 100644 index 0000000..c34d063 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go @@ -0,0 +1,51 @@ +// Code generated by linux/mkall.go generatePtracePair("mips", "mips64"). DO NOT EDIT. + +//go:build linux && (mips || mips64) +// +build linux +// +build mips mips64 + +package unix + +import "unsafe" + +// PtraceRegsMips is the registers used by mips binaries. +type PtraceRegsMips struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +// PtraceGetRegsMips fetches the registers used by mips binaries. +func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsMips sets the registers used by mips binaries. +func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} + +// PtraceRegsMips64 is the registers used by mips64 binaries. +type PtraceRegsMips64 struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +// PtraceGetRegsMips64 fetches the registers used by mips64 binaries. +func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsMips64 sets the registers used by mips64 binaries. +func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} diff --git a/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go new file mode 100644 index 0000000..3ccf0c0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go @@ -0,0 +1,51 @@ +// Code generated by linux/mkall.go generatePtracePair("mipsle", "mips64le"). DO NOT EDIT. + +//go:build linux && (mipsle || mips64le) +// +build linux +// +build mipsle mips64le + +package unix + +import "unsafe" + +// PtraceRegsMipsle is the registers used by mipsle binaries. +type PtraceRegsMipsle struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +// PtraceGetRegsMipsle fetches the registers used by mipsle binaries. +func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsMipsle sets the registers used by mipsle binaries. +func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} + +// PtraceRegsMips64le is the registers used by mips64le binaries. +type PtraceRegsMips64le struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +// PtraceGetRegsMips64le fetches the registers used by mips64le binaries. +func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsMips64le sets the registers used by mips64le binaries. +func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} diff --git a/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go b/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go new file mode 100644 index 0000000..7d65857 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go @@ -0,0 +1,81 @@ +// Code generated by linux/mkall.go generatePtracePair("386", "amd64"). DO NOT EDIT. + +//go:build linux && (386 || amd64) +// +build linux +// +build 386 amd64 + +package unix + +import "unsafe" + +// PtraceRegs386 is the registers used by 386 binaries. +type PtraceRegs386 struct { + Ebx int32 + Ecx int32 + Edx int32 + Esi int32 + Edi int32 + Ebp int32 + Eax int32 + Xds int32 + Xes int32 + Xfs int32 + Xgs int32 + Orig_eax int32 + Eip int32 + Xcs int32 + Eflags int32 + Esp int32 + Xss int32 +} + +// PtraceGetRegs386 fetches the registers used by 386 binaries. +func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegs386 sets the registers used by 386 binaries. +func PtraceSetRegs386(pid int, regs *PtraceRegs386) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} + +// PtraceRegsAmd64 is the registers used by amd64 binaries. +type PtraceRegsAmd64 struct { + R15 uint64 + R14 uint64 + R13 uint64 + R12 uint64 + Rbp uint64 + Rbx uint64 + R11 uint64 + R10 uint64 + R9 uint64 + R8 uint64 + Rax uint64 + Rcx uint64 + Rdx uint64 + Rsi uint64 + Rdi uint64 + Orig_rax uint64 + Rip uint64 + Cs uint64 + Eflags uint64 + Rsp uint64 + Ss uint64 + Fs_base uint64 + Gs_base uint64 + Ds uint64 + Es uint64 + Fs uint64 + Gs uint64 +} + +// PtraceGetRegsAmd64 fetches the registers used by amd64 binaries. +func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsAmd64 sets the registers used by amd64 binaries. +func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go new file mode 100644 index 0000000..870215d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go @@ -0,0 +1,1485 @@ +// go run mksyscall_aix_ppc.go -aix -tags aix,ppc syscall_aix.go syscall_aix_ppc.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build aix && ppc +// +build aix,ppc + +package unix + +/* +#include +#include +int utimes(uintptr_t, uintptr_t); +int utimensat(int, uintptr_t, uintptr_t, int); +int getcwd(uintptr_t, size_t); +int accept(int, uintptr_t, uintptr_t); +int getdirent(int, uintptr_t, size_t); +int wait4(int, uintptr_t, int, uintptr_t); +int ioctl(int, int, uintptr_t); +int fcntl(uintptr_t, int, uintptr_t); +int fsync_range(int, int, long long, long long); +int acct(uintptr_t); +int chdir(uintptr_t); +int chroot(uintptr_t); +int close(int); +int dup(int); +void exit(int); +int faccessat(int, uintptr_t, unsigned int, int); +int fchdir(int); +int fchmod(int, unsigned int); +int fchmodat(int, uintptr_t, unsigned int, int); +int fchownat(int, uintptr_t, int, int, int); +int fdatasync(int); +int getpgid(int); +int getpgrp(); +int getpid(); +int getppid(); +int getpriority(int, int); +int getrusage(int, uintptr_t); +int getsid(int); +int kill(int, int); +int syslog(int, uintptr_t, size_t); +int mkdir(int, uintptr_t, unsigned int); +int mkdirat(int, uintptr_t, unsigned int); +int mkfifo(uintptr_t, unsigned int); +int mknod(uintptr_t, unsigned int, int); +int mknodat(int, uintptr_t, unsigned int, int); +int nanosleep(uintptr_t, uintptr_t); +int open64(uintptr_t, int, unsigned int); +int openat(int, uintptr_t, int, unsigned int); +int read(int, uintptr_t, size_t); +int readlink(uintptr_t, uintptr_t, size_t); +int renameat(int, uintptr_t, int, uintptr_t); +int setdomainname(uintptr_t, size_t); +int sethostname(uintptr_t, size_t); +int setpgid(int, int); +int setsid(); +int settimeofday(uintptr_t); +int setuid(int); +int setgid(int); +int setpriority(int, int, int); +int statx(int, uintptr_t, int, int, uintptr_t); +int sync(); +uintptr_t times(uintptr_t); +int umask(int); +int uname(uintptr_t); +int unlink(uintptr_t); +int unlinkat(int, uintptr_t, int); +int ustat(int, uintptr_t); +int write(int, uintptr_t, size_t); +int dup2(int, int); +int posix_fadvise64(int, long long, long long, int); +int fchown(int, int, int); +int fstat(int, uintptr_t); +int fstatat(int, uintptr_t, uintptr_t, int); +int fstatfs(int, uintptr_t); +int ftruncate(int, long long); +int getegid(); +int geteuid(); +int getgid(); +int getuid(); +int lchown(uintptr_t, int, int); +int listen(int, int); +int lstat(uintptr_t, uintptr_t); +int pause(); +int pread64(int, uintptr_t, size_t, long long); +int pwrite64(int, uintptr_t, size_t, long long); +#define c_select select +int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t); +int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t); +int setregid(int, int); +int setreuid(int, int); +int shutdown(int, int); +long long splice(int, uintptr_t, int, uintptr_t, int, int); +int stat(uintptr_t, uintptr_t); +int statfs(uintptr_t, uintptr_t); +int truncate(uintptr_t, long long); +int bind(int, uintptr_t, uintptr_t); +int connect(int, uintptr_t, uintptr_t); +int getgroups(int, uintptr_t); +int setgroups(int, uintptr_t); +int getsockopt(int, int, int, uintptr_t, uintptr_t); +int setsockopt(int, int, int, uintptr_t, uintptr_t); +int socket(int, int, int); +int socketpair(int, int, int, uintptr_t); +int getpeername(int, uintptr_t, uintptr_t); +int getsockname(int, uintptr_t, uintptr_t); +int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t); +int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t); +int nrecvmsg(int, uintptr_t, int); +int nsendmsg(int, uintptr_t, int); +int munmap(uintptr_t, uintptr_t); +int madvise(uintptr_t, size_t, int); +int mprotect(uintptr_t, size_t, int); +int mlock(uintptr_t, size_t); +int mlockall(int); +int msync(uintptr_t, size_t, int); +int munlock(uintptr_t, size_t); +int munlockall(); +int pipe(uintptr_t); +int poll(uintptr_t, int, int); +int gettimeofday(uintptr_t, uintptr_t); +int time(uintptr_t); +int utime(uintptr_t, uintptr_t); +unsigned long long getsystemcfg(int); +int umount(uintptr_t); +int getrlimit64(int, uintptr_t); +int setrlimit64(int, uintptr_t); +long long lseek64(int, long long, int); +uintptr_t mmap(uintptr_t, uintptr_t, int, int, int, long long); + +*/ +import "C" +import ( + "unsafe" +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.utimes(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(times)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.utimensat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(times))), C.int(flag)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getcwd(buf []byte) (err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + var _p1 int + _p1 = len(buf) + r0, er := C.getcwd(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, er := C.accept(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen)))) + fd = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirent(fd int, buf []byte) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + var _p1 int + _p1 = len(buf) + r0, er := C.getdirent(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) { + r0, er := C.wait4(C.int(pid), C.uintptr_t(uintptr(unsafe.Pointer(status))), C.int(options), C.uintptr_t(uintptr(unsafe.Pointer(rusage)))) + wpid = Pid_t(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + r0, er := C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) { + r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg)) + r = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) { + r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(uintptr(unsafe.Pointer(lk)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, er := C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg)) + val = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fsyncRange(fd int, how int, start int64, length int64) (err error) { + r0, er := C.fsync_range(C.int(fd), C.int(how), C.longlong(start), C.longlong(length)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Acct(path string) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.acct(C.uintptr_t(_p0)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.chdir(C.uintptr_t(_p0)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.chroot(C.uintptr_t(_p0)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + r0, er := C.close(C.int(fd)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(oldfd int) (fd int, err error) { + r0, er := C.dup(C.int(oldfd)) + fd = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + C.exit(C.int(code)) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.faccessat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + r0, er := C.fchdir(C.int(fd)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + r0, er := C.fchmod(C.int(fd), C.uint(mode)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.fchmodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.fchownat(C.int(dirfd), C.uintptr_t(_p0), C.int(uid), C.int(gid), C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fdatasync(fd int) (err error) { + r0, er := C.fdatasync(C.int(fd)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, er := C.getpgid(C.int(pid)) + pgid = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pid int) { + r0, _ := C.getpgrp() + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _ := C.getpid() + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _ := C.getppid() + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, er := C.getpriority(C.int(which), C.int(who)) + prio = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + r0, er := C.getrusage(C.int(who), C.uintptr_t(uintptr(unsafe.Pointer(rusage)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, er := C.getsid(C.int(pid)) + sid = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, sig Signal) (err error) { + r0, er := C.kill(C.int(pid), C.int(sig)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Klogctl(typ int, buf []byte) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + var _p1 int + _p1 = len(buf) + r0, er := C.syslog(C.int(typ), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(dirfd int, path string, mode uint32) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.mkdir(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.mkfifo(C.uintptr_t(_p0), C.uint(mode)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.mknod(C.uintptr_t(_p0), C.uint(mode), C.int(dev)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + r0, er := C.nanosleep(C.uintptr_t(uintptr(unsafe.Pointer(time))), C.uintptr_t(uintptr(unsafe.Pointer(leftover)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.open64(C.uintptr_t(_p0), C.int(mode), C.uint(perm)) + fd = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.openat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.uint(mode)) + fd = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + var _p1 *byte + if len(buf) > 0 { + _p1 = &buf[0] + } + var _p2 int + _p2 = len(buf) + r0, er := C.readlink(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(_p1))), C.size_t(_p2)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(oldpath))) + _p1 := uintptr(unsafe.Pointer(C.CString(newpath))) + r0, er := C.renameat(C.int(olddirfd), C.uintptr_t(_p0), C.int(newdirfd), C.uintptr_t(_p1)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setdomainname(p []byte) (err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.setdomainname(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sethostname(p []byte) (err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.sethostname(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + r0, er := C.setpgid(C.int(pid), C.int(pgid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, er := C.setsid() + pid = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tv *Timeval) (err error) { + r0, er := C.settimeofday(C.uintptr_t(uintptr(unsafe.Pointer(tv)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + r0, er := C.setuid(C.int(uid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(uid int) (err error) { + r0, er := C.setgid(C.int(uid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + r0, er := C.setpriority(C.int(which), C.int(who), C.int(prio)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.statx(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.int(mask), C.uintptr_t(uintptr(unsafe.Pointer(stat)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() { + C.sync() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Times(tms *Tms) (ticks uintptr, err error) { + r0, er := C.times(C.uintptr_t(uintptr(unsafe.Pointer(tms)))) + ticks = uintptr(r0) + if uintptr(r0) == ^uintptr(0) && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(mask int) (oldmask int) { + r0, _ := C.umask(C.int(mask)) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Uname(buf *Utsname) (err error) { + r0, er := C.uname(C.uintptr_t(uintptr(unsafe.Pointer(buf)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.unlink(C.uintptr_t(_p0)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.unlinkat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + r0, er := C.ustat(C.int(dev), C.uintptr_t(uintptr(unsafe.Pointer(ubuf)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, p *byte, np int) (n int, err error) { + r0, er := C.read(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, p *byte, np int) (n int, err error) { + r0, er := C.write(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(p))), C.size_t(np)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(oldfd int, newfd int) (err error) { + r0, er := C.dup2(C.int(oldfd), C.int(newfd)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + r0, er := C.posix_fadvise64(C.int(fd), C.longlong(offset), C.longlong(length), C.int(advice)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + r0, er := C.fchown(C.int(fd), C.int(uid), C.int(gid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstat(fd int, stat *Stat_t) (err error) { + r0, er := C.fstat(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(stat)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat))), C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + r0, er := C.fstatfs(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(buf)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + r0, er := C.ftruncate(C.int(fd), C.longlong(length)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := C.getegid() + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := C.geteuid() + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := C.getgid() + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := C.getuid() + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.lchown(C.uintptr_t(_p0), C.int(uid), C.int(gid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + r0, er := C.listen(C.int(s), C.int(n)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func lstat(path string, stat *Stat_t) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.lstat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(stat)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + r0, er := C.pause() + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.pread64(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.longlong(offset)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.pwrite64(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.longlong(offset)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, er := C.c_select(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout)))) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, er := C.pselect(C.int(nfd), C.uintptr_t(uintptr(unsafe.Pointer(r))), C.uintptr_t(uintptr(unsafe.Pointer(w))), C.uintptr_t(uintptr(unsafe.Pointer(e))), C.uintptr_t(uintptr(unsafe.Pointer(timeout))), C.uintptr_t(uintptr(unsafe.Pointer(sigmask)))) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + r0, er := C.setregid(C.int(rgid), C.int(egid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + r0, er := C.setreuid(C.int(ruid), C.int(euid)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + r0, er := C.shutdown(C.int(fd), C.int(how)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, er := C.splice(C.int(rfd), C.uintptr_t(uintptr(unsafe.Pointer(roff))), C.int(wfd), C.uintptr_t(uintptr(unsafe.Pointer(woff))), C.int(len), C.int(flags)) + n = int64(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func stat(path string, statptr *Stat_t) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.stat(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(statptr)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.statfs(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(buf)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.truncate(C.uintptr_t(_p0), C.longlong(length)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + r0, er := C.bind(C.int(s), C.uintptr_t(uintptr(addr)), C.uintptr_t(uintptr(addrlen))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + r0, er := C.connect(C.int(s), C.uintptr_t(uintptr(addr)), C.uintptr_t(uintptr(addrlen))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, er := C.getgroups(C.int(n), C.uintptr_t(uintptr(unsafe.Pointer(list)))) + nn = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + r0, er := C.setgroups(C.int(n), C.uintptr_t(uintptr(unsafe.Pointer(list)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + r0, er := C.getsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(uintptr(val)), C.uintptr_t(uintptr(unsafe.Pointer(vallen)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + r0, er := C.setsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(uintptr(val)), C.uintptr_t(vallen)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, er := C.socket(C.int(domain), C.int(typ), C.int(proto)) + fd = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + r0, er := C.socketpair(C.int(domain), C.int(typ), C.int(proto), C.uintptr_t(uintptr(unsafe.Pointer(fd)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + r0, er := C.getpeername(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + r0, er := C.getsockname(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(rsa))), C.uintptr_t(uintptr(unsafe.Pointer(addrlen)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + var _p1 int + _p1 = len(p) + r0, er := C.recvfrom(C.int(fd), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags), C.uintptr_t(uintptr(unsafe.Pointer(from))), C.uintptr_t(uintptr(unsafe.Pointer(fromlen)))) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + var _p1 int + _p1 = len(buf) + r0, er := C.sendto(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags), C.uintptr_t(uintptr(to)), C.uintptr_t(uintptr(addrlen))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, er := C.nrecvmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, er := C.nsendmsg(C.int(s), C.uintptr_t(uintptr(unsafe.Pointer(msg))), C.int(flags)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + r0, er := C.munmap(C.uintptr_t(addr), C.uintptr_t(length)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, advice int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + var _p1 int + _p1 = len(b) + r0, er := C.madvise(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(advice)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + var _p1 int + _p1 = len(b) + r0, er := C.mprotect(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(prot)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + var _p1 int + _p1 = len(b) + r0, er := C.mlock(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + r0, er := C.mlockall(C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + var _p1 int + _p1 = len(b) + r0, er := C.msync(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1), C.int(flags)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + var _p1 int + _p1 = len(b) + r0, er := C.munlock(C.uintptr_t(uintptr(unsafe.Pointer(_p0))), C.size_t(_p1)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + r0, er := C.munlockall() + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe(p *[2]_C_int) (err error) { + r0, er := C.pipe(C.uintptr_t(uintptr(unsafe.Pointer(p)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, er := C.poll(C.uintptr_t(uintptr(unsafe.Pointer(fds))), C.int(nfds), C.int(timeout)) + n = int(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func gettimeofday(tv *Timeval, tzp *Timezone) (err error) { + r0, er := C.gettimeofday(C.uintptr_t(uintptr(unsafe.Pointer(tv))), C.uintptr_t(uintptr(unsafe.Pointer(tzp)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, er := C.time(C.uintptr_t(uintptr(unsafe.Pointer(t)))) + tt = Time_t(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(path))) + r0, er := C.utime(C.uintptr_t(_p0), C.uintptr_t(uintptr(unsafe.Pointer(buf)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsystemcfg(label int) (n uint64) { + r0, _ := C.getsystemcfg(C.int(label)) + n = uint64(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func umount(target string) (err error) { + _p0 := uintptr(unsafe.Pointer(C.CString(target))) + r0, er := C.umount(C.uintptr_t(_p0)) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + r0, er := C.getrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + r0, er := C.setrlimit64(C.int(resource), C.uintptr_t(uintptr(unsafe.Pointer(rlim)))) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, er := C.lseek64(C.int(fd), C.longlong(offset), C.int(whence)) + off = int64(r0) + if r0 == -1 && er != nil { + err = er + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, er := C.mmap(C.uintptr_t(addr), C.uintptr_t(length), C.int(prot), C.int(flags), C.int(fd), C.longlong(offset)) + xaddr = uintptr(r0) + if uintptr(r0) == ^uintptr(0) && er != nil { + err = er + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go new file mode 100644 index 0000000..a89b0bf --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go @@ -0,0 +1,1443 @@ +// go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build aix && ppc64 +// +build aix,ppc64 + +package unix + +import ( + "unsafe" +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callutimes(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callutimensat(dirfd, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), flag) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getcwd(buf []byte) (err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + _, e1 := callgetcwd(uintptr(unsafe.Pointer(_p0)), len(buf)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, e1 := callaccept(s, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirent(fd int, buf []byte) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + r0, e1 := callgetdirent(fd, uintptr(unsafe.Pointer(_p0)), len(buf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid Pid_t, status *_C_int, options int, rusage *Rusage) (wpid Pid_t, err error) { + r0, e1 := callwait4(int(pid), uintptr(unsafe.Pointer(status)), options, uintptr(unsafe.Pointer(rusage))) + wpid = Pid_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, e1 := callioctl(fd, int(req), arg) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FcntlInt(fd uintptr, cmd int, arg int) (r int, err error) { + r0, e1 := callfcntl(fd, cmd, uintptr(arg)) + r = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) { + _, e1 := callfcntl(fd, cmd, uintptr(unsafe.Pointer(lk))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, e1 := callfcntl(uintptr(fd), cmd, uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fsyncRange(fd int, how int, start int64, length int64) (err error) { + _, e1 := callfsync_range(fd, how, start, length) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Acct(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callacct(uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callchdir(uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callchroot(uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, e1 := callclose(fd) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(oldfd int) (fd int, err error) { + r0, e1 := calldup(oldfd) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + callexit(code) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callfaccessat(dirfd, uintptr(unsafe.Pointer(_p0)), mode, flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, e1 := callfchdir(fd) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, e1 := callfchmod(fd, mode) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callfchmodat(dirfd, uintptr(unsafe.Pointer(_p0)), mode, flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callfchownat(dirfd, uintptr(unsafe.Pointer(_p0)), uid, gid, flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fdatasync(fd int) (err error) { + _, e1 := callfdatasync(fd) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, e1 := callgetpgid(pid) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pid int) { + r0, _ := callgetpgrp() + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _ := callgetpid() + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _ := callgetppid() + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, e1 := callgetpriority(which, who) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, e1 := callgetrusage(who, uintptr(unsafe.Pointer(rusage))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, e1 := callgetsid(pid) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, sig Signal) (err error) { + _, e1 := callkill(pid, int(sig)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Klogctl(typ int, buf []byte) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + r0, e1 := callsyslog(typ, uintptr(unsafe.Pointer(_p0)), len(buf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callmkdir(dirfd, uintptr(unsafe.Pointer(_p0)), mode) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callmkdirat(dirfd, uintptr(unsafe.Pointer(_p0)), mode) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callmkfifo(uintptr(unsafe.Pointer(_p0)), mode) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callmknod(uintptr(unsafe.Pointer(_p0)), mode, dev) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callmknodat(dirfd, uintptr(unsafe.Pointer(_p0)), mode, dev) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, e1 := callnanosleep(uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, e1 := callopen64(uintptr(unsafe.Pointer(_p0)), mode, perm) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, e1 := callopenat(dirfd, uintptr(unsafe.Pointer(_p0)), flags, mode) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, e1 := callread(fd, uintptr(unsafe.Pointer(_p0)), len(p)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + if len(buf) > 0 { + _p1 = &buf[0] + } + r0, e1 := callreadlink(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), len(buf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, e1 := callrenameat(olddirfd, uintptr(unsafe.Pointer(_p0)), newdirfd, uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setdomainname(p []byte) (err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + _, e1 := callsetdomainname(uintptr(unsafe.Pointer(_p0)), len(p)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sethostname(p []byte) (err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + _, e1 := callsethostname(uintptr(unsafe.Pointer(_p0)), len(p)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, e1 := callsetpgid(pid, pgid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, e1 := callsetsid() + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tv *Timeval) (err error) { + _, e1 := callsettimeofday(uintptr(unsafe.Pointer(tv))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, e1 := callsetuid(uid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(uid int) (err error) { + _, e1 := callsetgid(uid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, e1 := callsetpriority(which, who, prio) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callstatx(dirfd, uintptr(unsafe.Pointer(_p0)), flags, mask, uintptr(unsafe.Pointer(stat))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() { + callsync() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Times(tms *Tms) (ticks uintptr, err error) { + r0, e1 := calltimes(uintptr(unsafe.Pointer(tms))) + ticks = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(mask int) (oldmask int) { + r0, _ := callumask(mask) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Uname(buf *Utsname) (err error) { + _, e1 := calluname(uintptr(unsafe.Pointer(buf))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callunlink(uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callunlinkat(dirfd, uintptr(unsafe.Pointer(_p0)), flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, e1 := callustat(dev, uintptr(unsafe.Pointer(ubuf))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, e1 := callwrite(fd, uintptr(unsafe.Pointer(_p0)), len(p)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, p *byte, np int) (n int, err error) { + r0, e1 := callread(fd, uintptr(unsafe.Pointer(p)), np) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, p *byte, np int) (n int, err error) { + r0, e1 := callwrite(fd, uintptr(unsafe.Pointer(p)), np) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(oldfd int, newfd int) (err error) { + _, e1 := calldup2(oldfd, newfd) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, e1 := callposix_fadvise64(fd, offset, length, advice) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, e1 := callfchown(fd, uid, gid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstat(fd int, stat *Stat_t) (err error) { + _, e1 := callfstat(fd, uintptr(unsafe.Pointer(stat))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callfstatat(dirfd, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, e1 := callfstatfs(fd, uintptr(unsafe.Pointer(buf))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, e1 := callftruncate(fd, length) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := callgetegid() + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := callgeteuid() + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := callgetgid() + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := callgetuid() + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := calllchown(uintptr(unsafe.Pointer(_p0)), uid, gid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, e1 := calllisten(s, n) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := calllstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, e1 := callpause() + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, e1 := callpread64(fd, uintptr(unsafe.Pointer(_p0)), len(p), offset) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, e1 := callpwrite64(fd, uintptr(unsafe.Pointer(_p0)), len(p), offset) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, e1 := callselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, e1 := callpselect(nfd, uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, e1 := callsetregid(rgid, egid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, e1 := callsetreuid(ruid, euid) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, e1 := callshutdown(fd, how) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, e1 := callsplice(rfd, uintptr(unsafe.Pointer(roff)), wfd, uintptr(unsafe.Pointer(woff)), len, flags) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func stat(path string, statptr *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callstat(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statptr))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callstatfs(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := calltruncate(uintptr(unsafe.Pointer(_p0)), length) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, e1 := callbind(s, uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, e1 := callconnect(s, uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, e1 := callgetgroups(n, uintptr(unsafe.Pointer(list))) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, e1 := callsetgroups(n, uintptr(unsafe.Pointer(list))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, e1 := callgetsockopt(s, level, name, uintptr(val), uintptr(unsafe.Pointer(vallen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, e1 := callsetsockopt(s, level, name, uintptr(val), vallen) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, e1 := callsocket(domain, typ, proto) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, e1 := callsocketpair(domain, typ, proto, uintptr(unsafe.Pointer(fd))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, e1 := callgetpeername(fd, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, e1 := callgetsockname(fd, uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, e1 := callrecvfrom(fd, uintptr(unsafe.Pointer(_p0)), len(p), flags, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + _, e1 := callsendto(s, uintptr(unsafe.Pointer(_p0)), len(buf), flags, uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, e1 := callnrecvmsg(s, uintptr(unsafe.Pointer(msg)), flags) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, e1 := callnsendmsg(s, uintptr(unsafe.Pointer(msg)), flags) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, e1 := callmunmap(addr, length) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, advice int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, e1 := callmadvise(uintptr(unsafe.Pointer(_p0)), len(b), advice) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, e1 := callmprotect(uintptr(unsafe.Pointer(_p0)), len(b), prot) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, e1 := callmlock(uintptr(unsafe.Pointer(_p0)), len(b)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, e1 := callmlockall(flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, e1 := callmsync(uintptr(unsafe.Pointer(_p0)), len(b), flags) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, e1 := callmunlock(uintptr(unsafe.Pointer(_p0)), len(b)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, e1 := callmunlockall() + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe(p *[2]_C_int) (err error) { + _, e1 := callpipe(uintptr(unsafe.Pointer(p))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, e1 := callpoll(uintptr(unsafe.Pointer(fds)), nfds, timeout) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func gettimeofday(tv *Timeval, tzp *Timezone) (err error) { + _, e1 := callgettimeofday(uintptr(unsafe.Pointer(tv)), uintptr(unsafe.Pointer(tzp))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, e1 := calltime(uintptr(unsafe.Pointer(t))) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, e1 := callutime(uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsystemcfg(label int) (n uint64) { + r0, _ := callgetsystemcfg(label) + n = uint64(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func umount(target string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(target) + if err != nil { + return + } + _, e1 := callumount(uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, e1 := callgetrlimit(resource, uintptr(unsafe.Pointer(rlim))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, e1 := callsetrlimit(resource, uintptr(unsafe.Pointer(rlim))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, e1 := calllseek(fd, offset, whence) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, e1 := callmmap64(addr, length, prot, flags, fd, offset) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go new file mode 100644 index 0000000..2caa5ad --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go @@ -0,0 +1,1192 @@ +// go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build aix && ppc64 && gc +// +build aix,ppc64,gc + +package unix + +import ( + "unsafe" +) + +//go:cgo_import_dynamic libc_utimes utimes "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_utimensat utimensat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getcwd getcwd "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_accept accept "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getdirent getdirent "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_wait4 wait4 "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_ioctl ioctl "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fcntl fcntl "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fsync_range fsync_range "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_acct acct "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_chdir chdir "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_chroot chroot "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_close close "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_dup dup "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_exit exit "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_faccessat faccessat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fchdir fchdir "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fchmod fchmod "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fchownat fchownat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fdatasync fdatasync "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getpgid getpgid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getpid getpid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getppid getppid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getpriority getpriority "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getrusage getrusage "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getsid getsid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_kill kill "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_syslog syslog "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mkdir mkdir "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mknod mknod "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mknodat mknodat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_open64 open64 "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_openat openat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_read read "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_readlink readlink "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_renameat renameat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setdomainname setdomainname "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_sethostname sethostname "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setpgid setpgid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setsid setsid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setuid setuid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setgid setgid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setpriority setpriority "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_statx statx "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_sync sync "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_times times "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_umask umask "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_uname uname "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_unlink unlink "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_ustat ustat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_write write "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_dup2 dup2 "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_posix_fadvise64 posix_fadvise64 "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fchown fchown "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fstat fstat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fstatat fstatat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getegid getegid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_geteuid geteuid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getgid getgid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getuid getuid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_lchown lchown "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_listen listen "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_lstat lstat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_pause pause "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_pread64 pread64 "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_pwrite64 pwrite64 "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_select select "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_pselect pselect "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setregid setregid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setreuid setreuid "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_shutdown shutdown "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_splice splice "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_stat stat "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_statfs statfs "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_truncate truncate "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_bind bind "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_connect connect "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getgroups getgroups "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setgroups setgroups "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_socket socket "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_socketpair socketpair "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getpeername getpeername "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getsockname getsockname "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_sendto sendto "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_nrecvmsg nrecvmsg "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_nsendmsg nsendmsg "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_madvise madvise "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mprotect mprotect "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mlock mlock "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mlockall mlockall "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_msync msync "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_munlock munlock "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_munlockall munlockall "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_pipe pipe "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_poll poll "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_time time "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_utime utime "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getsystemcfg getsystemcfg "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_umount umount "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_lseek lseek "libc.a/shr_64.o" +//go:cgo_import_dynamic libc_mmap64 mmap64 "libc.a/shr_64.o" + +//go:linkname libc_utimes libc_utimes +//go:linkname libc_utimensat libc_utimensat +//go:linkname libc_getcwd libc_getcwd +//go:linkname libc_accept libc_accept +//go:linkname libc_getdirent libc_getdirent +//go:linkname libc_wait4 libc_wait4 +//go:linkname libc_ioctl libc_ioctl +//go:linkname libc_fcntl libc_fcntl +//go:linkname libc_fsync_range libc_fsync_range +//go:linkname libc_acct libc_acct +//go:linkname libc_chdir libc_chdir +//go:linkname libc_chroot libc_chroot +//go:linkname libc_close libc_close +//go:linkname libc_dup libc_dup +//go:linkname libc_exit libc_exit +//go:linkname libc_faccessat libc_faccessat +//go:linkname libc_fchdir libc_fchdir +//go:linkname libc_fchmod libc_fchmod +//go:linkname libc_fchmodat libc_fchmodat +//go:linkname libc_fchownat libc_fchownat +//go:linkname libc_fdatasync libc_fdatasync +//go:linkname libc_getpgid libc_getpgid +//go:linkname libc_getpgrp libc_getpgrp +//go:linkname libc_getpid libc_getpid +//go:linkname libc_getppid libc_getppid +//go:linkname libc_getpriority libc_getpriority +//go:linkname libc_getrusage libc_getrusage +//go:linkname libc_getsid libc_getsid +//go:linkname libc_kill libc_kill +//go:linkname libc_syslog libc_syslog +//go:linkname libc_mkdir libc_mkdir +//go:linkname libc_mkdirat libc_mkdirat +//go:linkname libc_mkfifo libc_mkfifo +//go:linkname libc_mknod libc_mknod +//go:linkname libc_mknodat libc_mknodat +//go:linkname libc_nanosleep libc_nanosleep +//go:linkname libc_open64 libc_open64 +//go:linkname libc_openat libc_openat +//go:linkname libc_read libc_read +//go:linkname libc_readlink libc_readlink +//go:linkname libc_renameat libc_renameat +//go:linkname libc_setdomainname libc_setdomainname +//go:linkname libc_sethostname libc_sethostname +//go:linkname libc_setpgid libc_setpgid +//go:linkname libc_setsid libc_setsid +//go:linkname libc_settimeofday libc_settimeofday +//go:linkname libc_setuid libc_setuid +//go:linkname libc_setgid libc_setgid +//go:linkname libc_setpriority libc_setpriority +//go:linkname libc_statx libc_statx +//go:linkname libc_sync libc_sync +//go:linkname libc_times libc_times +//go:linkname libc_umask libc_umask +//go:linkname libc_uname libc_uname +//go:linkname libc_unlink libc_unlink +//go:linkname libc_unlinkat libc_unlinkat +//go:linkname libc_ustat libc_ustat +//go:linkname libc_write libc_write +//go:linkname libc_dup2 libc_dup2 +//go:linkname libc_posix_fadvise64 libc_posix_fadvise64 +//go:linkname libc_fchown libc_fchown +//go:linkname libc_fstat libc_fstat +//go:linkname libc_fstatat libc_fstatat +//go:linkname libc_fstatfs libc_fstatfs +//go:linkname libc_ftruncate libc_ftruncate +//go:linkname libc_getegid libc_getegid +//go:linkname libc_geteuid libc_geteuid +//go:linkname libc_getgid libc_getgid +//go:linkname libc_getuid libc_getuid +//go:linkname libc_lchown libc_lchown +//go:linkname libc_listen libc_listen +//go:linkname libc_lstat libc_lstat +//go:linkname libc_pause libc_pause +//go:linkname libc_pread64 libc_pread64 +//go:linkname libc_pwrite64 libc_pwrite64 +//go:linkname libc_select libc_select +//go:linkname libc_pselect libc_pselect +//go:linkname libc_setregid libc_setregid +//go:linkname libc_setreuid libc_setreuid +//go:linkname libc_shutdown libc_shutdown +//go:linkname libc_splice libc_splice +//go:linkname libc_stat libc_stat +//go:linkname libc_statfs libc_statfs +//go:linkname libc_truncate libc_truncate +//go:linkname libc_bind libc_bind +//go:linkname libc_connect libc_connect +//go:linkname libc_getgroups libc_getgroups +//go:linkname libc_setgroups libc_setgroups +//go:linkname libc_getsockopt libc_getsockopt +//go:linkname libc_setsockopt libc_setsockopt +//go:linkname libc_socket libc_socket +//go:linkname libc_socketpair libc_socketpair +//go:linkname libc_getpeername libc_getpeername +//go:linkname libc_getsockname libc_getsockname +//go:linkname libc_recvfrom libc_recvfrom +//go:linkname libc_sendto libc_sendto +//go:linkname libc_nrecvmsg libc_nrecvmsg +//go:linkname libc_nsendmsg libc_nsendmsg +//go:linkname libc_munmap libc_munmap +//go:linkname libc_madvise libc_madvise +//go:linkname libc_mprotect libc_mprotect +//go:linkname libc_mlock libc_mlock +//go:linkname libc_mlockall libc_mlockall +//go:linkname libc_msync libc_msync +//go:linkname libc_munlock libc_munlock +//go:linkname libc_munlockall libc_munlockall +//go:linkname libc_pipe libc_pipe +//go:linkname libc_poll libc_poll +//go:linkname libc_gettimeofday libc_gettimeofday +//go:linkname libc_time libc_time +//go:linkname libc_utime libc_utime +//go:linkname libc_getsystemcfg libc_getsystemcfg +//go:linkname libc_umount libc_umount +//go:linkname libc_getrlimit libc_getrlimit +//go:linkname libc_setrlimit libc_setrlimit +//go:linkname libc_lseek libc_lseek +//go:linkname libc_mmap64 libc_mmap64 + +type syscallFunc uintptr + +var ( + libc_utimes, + libc_utimensat, + libc_getcwd, + libc_accept, + libc_getdirent, + libc_wait4, + libc_ioctl, + libc_fcntl, + libc_fsync_range, + libc_acct, + libc_chdir, + libc_chroot, + libc_close, + libc_dup, + libc_exit, + libc_faccessat, + libc_fchdir, + libc_fchmod, + libc_fchmodat, + libc_fchownat, + libc_fdatasync, + libc_getpgid, + libc_getpgrp, + libc_getpid, + libc_getppid, + libc_getpriority, + libc_getrusage, + libc_getsid, + libc_kill, + libc_syslog, + libc_mkdir, + libc_mkdirat, + libc_mkfifo, + libc_mknod, + libc_mknodat, + libc_nanosleep, + libc_open64, + libc_openat, + libc_read, + libc_readlink, + libc_renameat, + libc_setdomainname, + libc_sethostname, + libc_setpgid, + libc_setsid, + libc_settimeofday, + libc_setuid, + libc_setgid, + libc_setpriority, + libc_statx, + libc_sync, + libc_times, + libc_umask, + libc_uname, + libc_unlink, + libc_unlinkat, + libc_ustat, + libc_write, + libc_dup2, + libc_posix_fadvise64, + libc_fchown, + libc_fstat, + libc_fstatat, + libc_fstatfs, + libc_ftruncate, + libc_getegid, + libc_geteuid, + libc_getgid, + libc_getuid, + libc_lchown, + libc_listen, + libc_lstat, + libc_pause, + libc_pread64, + libc_pwrite64, + libc_select, + libc_pselect, + libc_setregid, + libc_setreuid, + libc_shutdown, + libc_splice, + libc_stat, + libc_statfs, + libc_truncate, + libc_bind, + libc_connect, + libc_getgroups, + libc_setgroups, + libc_getsockopt, + libc_setsockopt, + libc_socket, + libc_socketpair, + libc_getpeername, + libc_getsockname, + libc_recvfrom, + libc_sendto, + libc_nrecvmsg, + libc_nsendmsg, + libc_munmap, + libc_madvise, + libc_mprotect, + libc_mlock, + libc_mlockall, + libc_msync, + libc_munlock, + libc_munlockall, + libc_pipe, + libc_poll, + libc_gettimeofday, + libc_time, + libc_utime, + libc_getsystemcfg, + libc_umount, + libc_getrlimit, + libc_setrlimit, + libc_lseek, + libc_mmap64 syscallFunc +) + +// Implemented in runtime/syscall_aix.go. +func rawSyscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) +func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callutimes(_p0 uintptr, times uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_utimes)), 2, _p0, times, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callutimensat(dirfd int, _p0 uintptr, times uintptr, flag int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_utimensat)), 4, uintptr(dirfd), _p0, times, uintptr(flag), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetcwd(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getcwd)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callaccept(s int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_accept)), 3, uintptr(s), rsa, addrlen, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetdirent(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getdirent)), 3, uintptr(fd), _p0, uintptr(_lenp0), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callwait4(pid int, status uintptr, options int, rusage uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_wait4)), 4, uintptr(pid), status, uintptr(options), rusage, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ioctl)), 3, uintptr(fd), uintptr(req), arg, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, fd, uintptr(cmd), arg, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfsync_range(fd int, how int, start int64, length int64) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fsync_range)), 4, uintptr(fd), uintptr(how), uintptr(start), uintptr(length), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callacct(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_acct)), 1, _p0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callchdir(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_chdir)), 1, _p0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callchroot(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_chroot)), 1, _p0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callclose(fd int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_close)), 1, uintptr(fd), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calldup(oldfd int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_dup)), 1, uintptr(oldfd), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callexit(code int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_exit)), 1, uintptr(code), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfaccessat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_faccessat)), 4, uintptr(dirfd), _p0, uintptr(mode), uintptr(flags), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchdir(fd int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchmod(fd int, mode uint32) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchmodat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchmodat)), 4, uintptr(dirfd), _p0, uintptr(mode), uintptr(flags), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchownat(dirfd int, _p0 uintptr, uid int, gid int, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchownat)), 5, uintptr(dirfd), _p0, uintptr(uid), uintptr(gid), uintptr(flags), 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfdatasync(fd int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpgid(pid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpgrp() (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getpgrp)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getpid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetppid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getppid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpriority(which int, who int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetrusage(who int, rusage uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrusage)), 2, uintptr(who), rusage, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsid(pid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getsid)), 1, uintptr(pid), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callkill(pid int, sig int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_kill)), 2, uintptr(pid), uintptr(sig), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsyslog(typ int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_syslog)), 3, uintptr(typ), _p0, uintptr(_lenp0), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmkdir(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mkdir)), 3, uintptr(dirfd), _p0, uintptr(mode), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmkdirat(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mkdirat)), 3, uintptr(dirfd), _p0, uintptr(mode), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmkfifo(_p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mkfifo)), 2, _p0, uintptr(mode), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmknod(_p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mknod)), 3, _p0, uintptr(mode), uintptr(dev), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmknodat(dirfd int, _p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mknodat)), 4, uintptr(dirfd), _p0, uintptr(mode), uintptr(dev), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callnanosleep(time uintptr, leftover uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nanosleep)), 2, time, leftover, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callopen64(_p0 uintptr, mode int, perm uint32) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_open64)), 3, _p0, uintptr(mode), uintptr(perm), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callopenat(dirfd int, _p0 uintptr, flags int, mode uint32) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_openat)), 4, uintptr(dirfd), _p0, uintptr(flags), uintptr(mode), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callread(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_read)), 3, uintptr(fd), _p0, uintptr(_lenp0), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callreadlink(_p0 uintptr, _p1 uintptr, _lenp1 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_readlink)), 3, _p0, _p1, uintptr(_lenp1), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callrenameat(olddirfd int, _p0 uintptr, newdirfd int, _p1 uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_renameat)), 4, uintptr(olddirfd), _p0, uintptr(newdirfd), _p1, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetdomainname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setdomainname)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsethostname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sethostname)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetpgid(pid int, pgid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetsid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setsid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsettimeofday(tv uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_settimeofday)), 1, tv, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetuid(uid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setuid)), 1, uintptr(uid), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetgid(uid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setgid)), 1, uintptr(uid), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetpriority(which int, who int, prio int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callstatx(dirfd int, _p0 uintptr, flags int, mask int, stat uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_statx)), 5, uintptr(dirfd), _p0, uintptr(flags), uintptr(mask), stat, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsync() (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sync)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calltimes(tms uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_times)), 1, tms, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callumask(mask int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_umask)), 1, uintptr(mask), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calluname(buf uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_uname)), 1, buf, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callunlink(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_unlink)), 1, _p0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callunlinkat(dirfd int, _p0 uintptr, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_unlinkat)), 3, uintptr(dirfd), _p0, uintptr(flags), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callustat(dev int, ubuf uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ustat)), 2, uintptr(dev), ubuf, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callwrite(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_write)), 3, uintptr(fd), _p0, uintptr(_lenp0), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calldup2(oldfd int, newfd int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_dup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callposix_fadvise64(fd int, offset int64, length int64, advice int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_posix_fadvise64)), 4, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchown(fd int, uid int, gid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfstat(fd int, stat uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fstat)), 2, uintptr(fd), stat, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfstatat(dirfd int, _p0 uintptr, stat uintptr, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fstatat)), 4, uintptr(dirfd), _p0, stat, uintptr(flags), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfstatfs(fd int, buf uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_fstatfs)), 2, uintptr(fd), buf, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callftruncate(fd int, length int64) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_ftruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetegid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getegid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgeteuid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_geteuid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetgid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getgid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetuid() (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getuid)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllchown(_p0 uintptr, uid int, gid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lchown)), 3, _p0, uintptr(uid), uintptr(gid), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllisten(s int, n int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_listen)), 2, uintptr(s), uintptr(n), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllstat(_p0 uintptr, stat uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lstat)), 2, _p0, stat, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpause() (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pause)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpread64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pread64)), 4, uintptr(fd), _p0, uintptr(_lenp0), uintptr(offset), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpwrite64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pwrite64)), 4, uintptr(fd), _p0, uintptr(_lenp0), uintptr(offset), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_select)), 5, uintptr(nfd), r, w, e, timeout, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_pselect)), 6, uintptr(nfd), r, w, e, timeout, sigmask) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetregid(rgid int, egid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetreuid(ruid int, euid int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callshutdown(fd int, how int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_shutdown)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsplice(rfd int, roff uintptr, wfd int, woff uintptr, len int, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_splice)), 6, uintptr(rfd), roff, uintptr(wfd), woff, uintptr(len), uintptr(flags)) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callstat(_p0 uintptr, statptr uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_stat)), 2, _p0, statptr, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callstatfs(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_statfs)), 2, _p0, buf, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calltruncate(_p0 uintptr, length int64) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_truncate)), 2, _p0, uintptr(length), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callbind(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_bind)), 3, uintptr(s), addr, addrlen, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callconnect(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_connect)), 3, uintptr(s), addr, addrlen, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getgroups)), 2, uintptr(n), list, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setgroups)), 2, uintptr(n), list, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), val, vallen, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_setsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), val, vallen, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsocket(domain int, typ int, proto int) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsocketpair(domain int, typ int, proto int, fd uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), fd, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpeername(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getpeername)), 3, uintptr(fd), rsa, addrlen, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsockname(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getsockname)), 3, uintptr(fd), rsa, addrlen, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callrecvfrom(fd int, _p0 uintptr, _lenp0 int, flags int, from uintptr, fromlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_recvfrom)), 6, uintptr(fd), _p0, uintptr(_lenp0), uintptr(flags), from, fromlen) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsendto(s int, _p0 uintptr, _lenp0 int, flags int, to uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_sendto)), 6, uintptr(s), _p0, uintptr(_lenp0), uintptr(flags), to, addrlen) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callnrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nrecvmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callnsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_nsendmsg)), 3, uintptr(s), msg, uintptr(flags), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmunmap(addr uintptr, length uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_munmap)), 2, addr, length, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmadvise(_p0 uintptr, _lenp0 int, advice int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_madvise)), 3, _p0, uintptr(_lenp0), uintptr(advice), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmprotect(_p0 uintptr, _lenp0 int, prot int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mprotect)), 3, _p0, uintptr(_lenp0), uintptr(prot), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mlock)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmlockall(flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmsync(_p0 uintptr, _lenp0 int, flags int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_msync)), 3, _p0, uintptr(_lenp0), uintptr(flags), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmunlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_munlock)), 2, _p0, uintptr(_lenp0), 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmunlockall() (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_munlockall)), 0, 0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpipe(p uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_pipe)), 1, p, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpoll(fds uintptr, nfds int, timeout int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_poll)), 3, fds, uintptr(nfds), uintptr(timeout), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgettimeofday(tv uintptr, tzp uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_gettimeofday)), 2, tv, tzp, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calltime(t uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_time)), 1, t, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_utime)), 2, _p0, buf, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_getsystemcfg)), 1, uintptr(label), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callumount(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_umount)), 1, _p0, 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_getrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) { + r1, _, e1 = rawSyscall6(uintptr(unsafe.Pointer(&libc_setrlimit)), 2, uintptr(resource), rlim, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_lseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmmap64(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (r1 uintptr, e1 Errno) { + r1, _, e1 = syscall6(uintptr(unsafe.Pointer(&libc_mmap64)), 6, addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go new file mode 100644 index 0000000..944a714 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go @@ -0,0 +1,1070 @@ +// go run mksyscall_aix_ppc64.go -aix -tags aix,ppc64 syscall_aix.go syscall_aix_ppc64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build aix && ppc64 && gccgo +// +build aix,ppc64,gccgo + +package unix + +/* +#include +int utimes(uintptr_t, uintptr_t); +int utimensat(int, uintptr_t, uintptr_t, int); +int getcwd(uintptr_t, size_t); +int accept(int, uintptr_t, uintptr_t); +int getdirent(int, uintptr_t, size_t); +int wait4(int, uintptr_t, int, uintptr_t); +int ioctl(int, int, uintptr_t); +int fcntl(uintptr_t, int, uintptr_t); +int fsync_range(int, int, long long, long long); +int acct(uintptr_t); +int chdir(uintptr_t); +int chroot(uintptr_t); +int close(int); +int dup(int); +void exit(int); +int faccessat(int, uintptr_t, unsigned int, int); +int fchdir(int); +int fchmod(int, unsigned int); +int fchmodat(int, uintptr_t, unsigned int, int); +int fchownat(int, uintptr_t, int, int, int); +int fdatasync(int); +int getpgid(int); +int getpgrp(); +int getpid(); +int getppid(); +int getpriority(int, int); +int getrusage(int, uintptr_t); +int getsid(int); +int kill(int, int); +int syslog(int, uintptr_t, size_t); +int mkdir(int, uintptr_t, unsigned int); +int mkdirat(int, uintptr_t, unsigned int); +int mkfifo(uintptr_t, unsigned int); +int mknod(uintptr_t, unsigned int, int); +int mknodat(int, uintptr_t, unsigned int, int); +int nanosleep(uintptr_t, uintptr_t); +int open64(uintptr_t, int, unsigned int); +int openat(int, uintptr_t, int, unsigned int); +int read(int, uintptr_t, size_t); +int readlink(uintptr_t, uintptr_t, size_t); +int renameat(int, uintptr_t, int, uintptr_t); +int setdomainname(uintptr_t, size_t); +int sethostname(uintptr_t, size_t); +int setpgid(int, int); +int setsid(); +int settimeofday(uintptr_t); +int setuid(int); +int setgid(int); +int setpriority(int, int, int); +int statx(int, uintptr_t, int, int, uintptr_t); +int sync(); +uintptr_t times(uintptr_t); +int umask(int); +int uname(uintptr_t); +int unlink(uintptr_t); +int unlinkat(int, uintptr_t, int); +int ustat(int, uintptr_t); +int write(int, uintptr_t, size_t); +int dup2(int, int); +int posix_fadvise64(int, long long, long long, int); +int fchown(int, int, int); +int fstat(int, uintptr_t); +int fstatat(int, uintptr_t, uintptr_t, int); +int fstatfs(int, uintptr_t); +int ftruncate(int, long long); +int getegid(); +int geteuid(); +int getgid(); +int getuid(); +int lchown(uintptr_t, int, int); +int listen(int, int); +int lstat(uintptr_t, uintptr_t); +int pause(); +int pread64(int, uintptr_t, size_t, long long); +int pwrite64(int, uintptr_t, size_t, long long); +#define c_select select +int select(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t); +int pselect(int, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t); +int setregid(int, int); +int setreuid(int, int); +int shutdown(int, int); +long long splice(int, uintptr_t, int, uintptr_t, int, int); +int stat(uintptr_t, uintptr_t); +int statfs(uintptr_t, uintptr_t); +int truncate(uintptr_t, long long); +int bind(int, uintptr_t, uintptr_t); +int connect(int, uintptr_t, uintptr_t); +int getgroups(int, uintptr_t); +int setgroups(int, uintptr_t); +int getsockopt(int, int, int, uintptr_t, uintptr_t); +int setsockopt(int, int, int, uintptr_t, uintptr_t); +int socket(int, int, int); +int socketpair(int, int, int, uintptr_t); +int getpeername(int, uintptr_t, uintptr_t); +int getsockname(int, uintptr_t, uintptr_t); +int recvfrom(int, uintptr_t, size_t, int, uintptr_t, uintptr_t); +int sendto(int, uintptr_t, size_t, int, uintptr_t, uintptr_t); +int nrecvmsg(int, uintptr_t, int); +int nsendmsg(int, uintptr_t, int); +int munmap(uintptr_t, uintptr_t); +int madvise(uintptr_t, size_t, int); +int mprotect(uintptr_t, size_t, int); +int mlock(uintptr_t, size_t); +int mlockall(int); +int msync(uintptr_t, size_t, int); +int munlock(uintptr_t, size_t); +int munlockall(); +int pipe(uintptr_t); +int poll(uintptr_t, int, int); +int gettimeofday(uintptr_t, uintptr_t); +int time(uintptr_t); +int utime(uintptr_t, uintptr_t); +unsigned long long getsystemcfg(int); +int umount(uintptr_t); +int getrlimit(int, uintptr_t); +int setrlimit(int, uintptr_t); +long long lseek(int, long long, int); +uintptr_t mmap64(uintptr_t, uintptr_t, int, int, int, long long); + +*/ +import "C" +import ( + "syscall" +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callutimes(_p0 uintptr, times uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.utimes(C.uintptr_t(_p0), C.uintptr_t(times))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callutimensat(dirfd int, _p0 uintptr, times uintptr, flag int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.utimensat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(times), C.int(flag))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetcwd(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getcwd(C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callaccept(s int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.accept(C.int(s), C.uintptr_t(rsa), C.uintptr_t(addrlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetdirent(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getdirent(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callwait4(pid int, status uintptr, options int, rusage uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.wait4(C.int(pid), C.uintptr_t(status), C.int(options), C.uintptr_t(rusage))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callioctl(fd int, req int, arg uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.ioctl(C.int(fd), C.int(req), C.uintptr_t(arg))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfcntl(fd uintptr, cmd int, arg uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fcntl(C.uintptr_t(fd), C.int(cmd), C.uintptr_t(arg))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfsync_range(fd int, how int, start int64, length int64) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fsync_range(C.int(fd), C.int(how), C.longlong(start), C.longlong(length))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callacct(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.acct(C.uintptr_t(_p0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callchdir(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.chdir(C.uintptr_t(_p0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callchroot(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.chroot(C.uintptr_t(_p0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callclose(fd int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.close(C.int(fd))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calldup(oldfd int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.dup(C.int(oldfd))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callexit(code int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.exit(C.int(code))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfaccessat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.faccessat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchdir(fd int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fchdir(C.int(fd))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchmod(fd int, mode uint32) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fchmod(C.int(fd), C.uint(mode))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchmodat(dirfd int, _p0 uintptr, mode uint32, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fchmodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchownat(dirfd int, _p0 uintptr, uid int, gid int, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fchownat(C.int(dirfd), C.uintptr_t(_p0), C.int(uid), C.int(gid), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfdatasync(fd int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fdatasync(C.int(fd))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpgid(pid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getpgid(C.int(pid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpgrp() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getpgrp()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getpid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetppid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getppid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpriority(which int, who int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getpriority(C.int(which), C.int(who))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetrusage(who int, rusage uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getrusage(C.int(who), C.uintptr_t(rusage))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsid(pid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getsid(C.int(pid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callkill(pid int, sig int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.kill(C.int(pid), C.int(sig))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsyslog(typ int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.syslog(C.int(typ), C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmkdir(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mkdir(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmkdirat(dirfd int, _p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mkdirat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmkfifo(_p0 uintptr, mode uint32) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mkfifo(C.uintptr_t(_p0), C.uint(mode))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmknod(_p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mknod(C.uintptr_t(_p0), C.uint(mode), C.int(dev))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmknodat(dirfd int, _p0 uintptr, mode uint32, dev int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mknodat(C.int(dirfd), C.uintptr_t(_p0), C.uint(mode), C.int(dev))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callnanosleep(time uintptr, leftover uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.nanosleep(C.uintptr_t(time), C.uintptr_t(leftover))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callopen64(_p0 uintptr, mode int, perm uint32) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.open64(C.uintptr_t(_p0), C.int(mode), C.uint(perm))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callopenat(dirfd int, _p0 uintptr, flags int, mode uint32) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.openat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.uint(mode))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callread(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.read(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callreadlink(_p0 uintptr, _p1 uintptr, _lenp1 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.readlink(C.uintptr_t(_p0), C.uintptr_t(_p1), C.size_t(_lenp1))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callrenameat(olddirfd int, _p0 uintptr, newdirfd int, _p1 uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.renameat(C.int(olddirfd), C.uintptr_t(_p0), C.int(newdirfd), C.uintptr_t(_p1))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetdomainname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setdomainname(C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsethostname(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.sethostname(C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetpgid(pid int, pgid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setpgid(C.int(pid), C.int(pgid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetsid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setsid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsettimeofday(tv uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.settimeofday(C.uintptr_t(tv))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetuid(uid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setuid(C.int(uid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetgid(uid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setgid(C.int(uid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetpriority(which int, who int, prio int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setpriority(C.int(which), C.int(who), C.int(prio))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callstatx(dirfd int, _p0 uintptr, flags int, mask int, stat uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.statx(C.int(dirfd), C.uintptr_t(_p0), C.int(flags), C.int(mask), C.uintptr_t(stat))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsync() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.sync()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calltimes(tms uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.times(C.uintptr_t(tms))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callumask(mask int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.umask(C.int(mask))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calluname(buf uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.uname(C.uintptr_t(buf))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callunlink(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.unlink(C.uintptr_t(_p0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callunlinkat(dirfd int, _p0 uintptr, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.unlinkat(C.int(dirfd), C.uintptr_t(_p0), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callustat(dev int, ubuf uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.ustat(C.int(dev), C.uintptr_t(ubuf))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callwrite(fd int, _p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.write(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calldup2(oldfd int, newfd int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.dup2(C.int(oldfd), C.int(newfd))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callposix_fadvise64(fd int, offset int64, length int64, advice int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.posix_fadvise64(C.int(fd), C.longlong(offset), C.longlong(length), C.int(advice))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfchown(fd int, uid int, gid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fchown(C.int(fd), C.int(uid), C.int(gid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfstat(fd int, stat uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fstat(C.int(fd), C.uintptr_t(stat))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfstatat(dirfd int, _p0 uintptr, stat uintptr, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fstatat(C.int(dirfd), C.uintptr_t(_p0), C.uintptr_t(stat), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callfstatfs(fd int, buf uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.fstatfs(C.int(fd), C.uintptr_t(buf))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callftruncate(fd int, length int64) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.ftruncate(C.int(fd), C.longlong(length))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetegid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getegid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgeteuid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.geteuid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetgid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getgid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetuid() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getuid()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllchown(_p0 uintptr, uid int, gid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.lchown(C.uintptr_t(_p0), C.int(uid), C.int(gid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllisten(s int, n int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.listen(C.int(s), C.int(n))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllstat(_p0 uintptr, stat uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.lstat(C.uintptr_t(_p0), C.uintptr_t(stat))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpause() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.pause()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpread64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.pread64(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0), C.longlong(offset))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpwrite64(fd int, _p0 uintptr, _lenp0 int, offset int64) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.pwrite64(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0), C.longlong(offset))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.c_select(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpselect(nfd int, r uintptr, w uintptr, e uintptr, timeout uintptr, sigmask uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.pselect(C.int(nfd), C.uintptr_t(r), C.uintptr_t(w), C.uintptr_t(e), C.uintptr_t(timeout), C.uintptr_t(sigmask))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetregid(rgid int, egid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setregid(C.int(rgid), C.int(egid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetreuid(ruid int, euid int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setreuid(C.int(ruid), C.int(euid))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callshutdown(fd int, how int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.shutdown(C.int(fd), C.int(how))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsplice(rfd int, roff uintptr, wfd int, woff uintptr, len int, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.splice(C.int(rfd), C.uintptr_t(roff), C.int(wfd), C.uintptr_t(woff), C.int(len), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callstat(_p0 uintptr, statptr uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.stat(C.uintptr_t(_p0), C.uintptr_t(statptr))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callstatfs(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.statfs(C.uintptr_t(_p0), C.uintptr_t(buf))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calltruncate(_p0 uintptr, length int64) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.truncate(C.uintptr_t(_p0), C.longlong(length))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callbind(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.bind(C.int(s), C.uintptr_t(addr), C.uintptr_t(addrlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callconnect(s int, addr uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.connect(C.int(s), C.uintptr_t(addr), C.uintptr_t(addrlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getgroups(C.int(n), C.uintptr_t(list))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetgroups(n int, list uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setgroups(C.int(n), C.uintptr_t(list))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(val), C.uintptr_t(vallen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetsockopt(s int, level int, name int, val uintptr, vallen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setsockopt(C.int(s), C.int(level), C.int(name), C.uintptr_t(val), C.uintptr_t(vallen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsocket(domain int, typ int, proto int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.socket(C.int(domain), C.int(typ), C.int(proto))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsocketpair(domain int, typ int, proto int, fd uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.socketpair(C.int(domain), C.int(typ), C.int(proto), C.uintptr_t(fd))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetpeername(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getpeername(C.int(fd), C.uintptr_t(rsa), C.uintptr_t(addrlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsockname(fd int, rsa uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getsockname(C.int(fd), C.uintptr_t(rsa), C.uintptr_t(addrlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callrecvfrom(fd int, _p0 uintptr, _lenp0 int, flags int, from uintptr, fromlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.recvfrom(C.int(fd), C.uintptr_t(_p0), C.size_t(_lenp0), C.int(flags), C.uintptr_t(from), C.uintptr_t(fromlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsendto(s int, _p0 uintptr, _lenp0 int, flags int, to uintptr, addrlen uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.sendto(C.int(s), C.uintptr_t(_p0), C.size_t(_lenp0), C.int(flags), C.uintptr_t(to), C.uintptr_t(addrlen))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callnrecvmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.nrecvmsg(C.int(s), C.uintptr_t(msg), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callnsendmsg(s int, msg uintptr, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.nsendmsg(C.int(s), C.uintptr_t(msg), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmunmap(addr uintptr, length uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.munmap(C.uintptr_t(addr), C.uintptr_t(length))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmadvise(_p0 uintptr, _lenp0 int, advice int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.madvise(C.uintptr_t(_p0), C.size_t(_lenp0), C.int(advice))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmprotect(_p0 uintptr, _lenp0 int, prot int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mprotect(C.uintptr_t(_p0), C.size_t(_lenp0), C.int(prot))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mlock(C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmlockall(flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mlockall(C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmsync(_p0 uintptr, _lenp0 int, flags int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.msync(C.uintptr_t(_p0), C.size_t(_lenp0), C.int(flags))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmunlock(_p0 uintptr, _lenp0 int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.munlock(C.uintptr_t(_p0), C.size_t(_lenp0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmunlockall() (r1 uintptr, e1 Errno) { + r1 = uintptr(C.munlockall()) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpipe(p uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.pipe(C.uintptr_t(p))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callpoll(fds uintptr, nfds int, timeout int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.poll(C.uintptr_t(fds), C.int(nfds), C.int(timeout))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgettimeofday(tv uintptr, tzp uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.gettimeofday(C.uintptr_t(tv), C.uintptr_t(tzp))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calltime(t uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.time(C.uintptr_t(t))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callutime(_p0 uintptr, buf uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.utime(C.uintptr_t(_p0), C.uintptr_t(buf))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetsystemcfg(label int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getsystemcfg(C.int(label))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callumount(_p0 uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.umount(C.uintptr_t(_p0))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callgetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.getrlimit(C.int(resource), C.uintptr_t(rlim))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callsetrlimit(resource int, rlim uintptr) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.setrlimit(C.int(resource), C.uintptr_t(rlim))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func calllseek(fd int, offset int64, whence int) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.lseek(C.int(fd), C.longlong(offset), C.int(whence))) + e1 = syscall.GetErrno() + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func callmmap64(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (r1 uintptr, e1 Errno) { + r1 = uintptr(C.mmap64(C.uintptr_t(addr), C.uintptr_t(length), C.int(prot), C.int(flags), C.int(fd), C.longlong(offset))) + e1 = syscall.GetErrno() + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go new file mode 100644 index 0000000..c2461c4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -0,0 +1,2545 @@ +// go run mksyscall.go -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build darwin && amd64 +// +build darwin,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func closedir(dir uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_closedir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { + r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + res = Errno(r0) + return +} + +var libc_readdir_r_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe(p *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_getxattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_fgetxattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fgetxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_setxattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fsetxattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsetxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func removexattr(path string, attr string, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_removexattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_removexattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fremovexattr(fd int, attr string, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_fremovexattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fremovexattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func listxattr(path string, dest *byte, size int, options int) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_listxattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { + r0, _, e1 := syscall_syscall6(libc_flistxattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flistxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kill(pid int, signum int, posix int) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), uintptr(posix)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { + _, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendfile_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall(libc_shmat_trampoline_addr, uintptr(id), uintptr(addr), uintptr(flag)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmat shmat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) { + r0, _, e1 := syscall_syscall(libc_shmctl_trampoline_addr, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf))) + result = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmctl shmctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmdt(addr uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_shmdt_trampoline_addr, uintptr(addr), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmdt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmdt shmdt "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmget(key int, size int, flag int) (id int, err error) { + r0, _, e1 := syscall_syscall(libc_shmget_trampoline_addr, uintptr(key), uintptr(size), uintptr(flag)) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmget_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmget shmget "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Clonefile(src string, dst string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(src) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dst) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_clonefile_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clonefile_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clonefile clonefile "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(src) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dst) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_clonefileat_trampoline_addr, uintptr(srcDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(dstDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clonefileat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clonefileat clonefileat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exchangedata(path1 string, path2 string, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path1) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(path2) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_exchangedata_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_exchangedata_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(dst) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fclonefileat_trampoline_addr, uintptr(srcDirfd), uintptr(dstDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fclonefileat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fclonefileat fclonefileat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := syscall_syscall(libc_getdtablesize_trampoline_addr, 0, 0, 0) + size = int(r0) + return +} + +var libc_getdtablesize_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_rawSyscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_syscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setprivexec(flag int) (err error) { + _, _, e1 := syscall_syscall(libc_setprivexec_trampoline_addr, uintptr(flag), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setprivexec_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_undelete_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_undelete_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat64_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat64_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs64_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat64_trampoline_addr, uintptr(buf), uintptr(size), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat64 getfsstat64 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat64_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ptrace_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat64_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs64_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs64_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s new file mode 100644 index 0000000..95fe4c0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s @@ -0,0 +1,904 @@ +// go run mkasm.go darwin amd64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fdopendir(SB) + +GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) + +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) + +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) + +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) + +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) + +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) + +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) + +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) + +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) + +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) + +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) + +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) + +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) + +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) + +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) + +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) + +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) + +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) + +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) + +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) + +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) + +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) + +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) + +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) + +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) + +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) + +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) + +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) + +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_closedir(SB) + +GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) + +TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readdir_r(SB) + +GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) + +TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe(SB) + +GLOBL ·libc_pipe_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe_trampoline_addr(SB)/8, $libc_pipe_trampoline<>(SB) + +TEXT libc_getxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getxattr(SB) + +GLOBL ·libc_getxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getxattr_trampoline_addr(SB)/8, $libc_getxattr_trampoline<>(SB) + +TEXT libc_fgetxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fgetxattr(SB) + +GLOBL ·libc_fgetxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fgetxattr_trampoline_addr(SB)/8, $libc_fgetxattr_trampoline<>(SB) + +TEXT libc_setxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setxattr(SB) + +GLOBL ·libc_setxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setxattr_trampoline_addr(SB)/8, $libc_setxattr_trampoline<>(SB) + +TEXT libc_fsetxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsetxattr(SB) + +GLOBL ·libc_fsetxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsetxattr_trampoline_addr(SB)/8, $libc_fsetxattr_trampoline<>(SB) + +TEXT libc_removexattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_removexattr(SB) + +GLOBL ·libc_removexattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_removexattr_trampoline_addr(SB)/8, $libc_removexattr_trampoline<>(SB) + +TEXT libc_fremovexattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fremovexattr(SB) + +GLOBL ·libc_fremovexattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fremovexattr_trampoline_addr(SB)/8, $libc_fremovexattr_trampoline<>(SB) + +TEXT libc_listxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listxattr(SB) + +GLOBL ·libc_listxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listxattr_trampoline_addr(SB)/8, $libc_listxattr_trampoline<>(SB) + +TEXT libc_flistxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flistxattr(SB) + +GLOBL ·libc_flistxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flistxattr_trampoline_addr(SB)/8, $libc_flistxattr_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) + +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) + +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) + +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) + +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) + +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendfile(SB) + +GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendfile_trampoline_addr(SB)/8, $libc_sendfile_trampoline<>(SB) + +TEXT libc_shmat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmat(SB) + +GLOBL ·libc_shmat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmat_trampoline_addr(SB)/8, $libc_shmat_trampoline<>(SB) + +TEXT libc_shmctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmctl(SB) + +GLOBL ·libc_shmctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmctl_trampoline_addr(SB)/8, $libc_shmctl_trampoline<>(SB) + +TEXT libc_shmdt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmdt(SB) + +GLOBL ·libc_shmdt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmdt_trampoline_addr(SB)/8, $libc_shmdt_trampoline<>(SB) + +TEXT libc_shmget_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmget(SB) + +GLOBL ·libc_shmget_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmget_trampoline_addr(SB)/8, $libc_shmget_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) + +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) + +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) + +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) + +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) + +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) + +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) + +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) + +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) + +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_clonefile_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clonefile(SB) + +GLOBL ·libc_clonefile_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clonefile_trampoline_addr(SB)/8, $libc_clonefile_trampoline<>(SB) + +TEXT libc_clonefileat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clonefileat(SB) + +GLOBL ·libc_clonefileat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clonefileat_trampoline_addr(SB)/8, $libc_clonefileat_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) + +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) + +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_exchangedata_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exchangedata(SB) + +GLOBL ·libc_exchangedata_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exchangedata_trampoline_addr(SB)/8, $libc_exchangedata_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) + +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) + +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) + +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) + +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) + +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) + +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) + +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) + +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_fclonefileat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fclonefileat(SB) + +GLOBL ·libc_fclonefileat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fclonefileat_trampoline_addr(SB)/8, $libc_fclonefileat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) + +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) + +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) + +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) + +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) + +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_getdtablesize_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdtablesize(SB) + +GLOBL ·libc_getdtablesize_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdtablesize_trampoline_addr(SB)/8, $libc_getdtablesize_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) + +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) + +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) + +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) + +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) + +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) + +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) + +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) + +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) + +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) + +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) + +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) + +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) + +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) + +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) + +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) + +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) + +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) + +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) + +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) + +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) + +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) + +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) + +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) + +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) + +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) + +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) + +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) + +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) + +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) + +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) + +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) + +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) + +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) + +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) + +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) + +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) + +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) + +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) + +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) + +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) + +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) + +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) + +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) + +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setprivexec_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setprivexec(SB) + +GLOBL ·libc_setprivexec_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setprivexec_trampoline_addr(SB)/8, $libc_setprivexec_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) + +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) + +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) + +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) + +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) + +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) + +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) + +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) + +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) + +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) + +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) + +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_undelete_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_undelete(SB) + +GLOBL ·libc_undelete_trampoline_addr(SB), RODATA, $8 +DATA ·libc_undelete_trampoline_addr(SB)/8, $libc_undelete_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) + +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) + +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) + +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) + +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) + +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) + +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_fstat64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat64(SB) + +GLOBL ·libc_fstat64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat64_trampoline_addr(SB)/8, $libc_fstat64_trampoline<>(SB) + +TEXT libc_fstatat64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat64(SB) + +GLOBL ·libc_fstatat64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat64_trampoline_addr(SB)/8, $libc_fstatat64_trampoline<>(SB) + +TEXT libc_fstatfs64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs64(SB) + +GLOBL ·libc_fstatfs64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs64_trampoline_addr(SB)/8, $libc_fstatfs64_trampoline<>(SB) + +TEXT libc_getfsstat64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat64(SB) + +GLOBL ·libc_getfsstat64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat64_trampoline_addr(SB)/8, $libc_getfsstat64_trampoline<>(SB) + +TEXT libc_lstat64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat64(SB) + +GLOBL ·libc_lstat64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat64_trampoline_addr(SB)/8, $libc_lstat64_trampoline<>(SB) + +TEXT libc_ptrace_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ptrace(SB) + +GLOBL ·libc_ptrace_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ptrace_trampoline_addr(SB)/8, $libc_ptrace_trampoline<>(SB) + +TEXT libc_stat64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat64(SB) + +GLOBL ·libc_stat64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat64_trampoline_addr(SB)/8, $libc_stat64_trampoline<>(SB) + +TEXT libc_statfs64_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs64(SB) + +GLOBL ·libc_statfs64_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs64_trampoline_addr(SB)/8, $libc_statfs64_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go new file mode 100644 index 0000000..26a0fdc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -0,0 +1,2545 @@ +// go run mksyscall.go -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build darwin && arm64 +// +build darwin,arm64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func closedir(dir uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_closedir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { + r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) + res = Errno(r0) + return +} + +var libc_readdir_r_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe(p *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_getxattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_fgetxattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fgetxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_setxattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fsetxattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsetxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func removexattr(path string, attr string, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_removexattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_removexattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fremovexattr(fd int, attr string, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_fremovexattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fremovexattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func listxattr(path string, dest *byte, size int, options int) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_listxattr_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { + r0, _, e1 := syscall_syscall6(libc_flistxattr_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flistxattr_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kill(pid int, signum int, posix int) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), uintptr(posix)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { + _, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendfile_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall(libc_shmat_trampoline_addr, uintptr(id), uintptr(addr), uintptr(flag)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmat shmat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) { + r0, _, e1 := syscall_syscall(libc_shmctl_trampoline_addr, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf))) + result = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmctl shmctl "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmdt(addr uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_shmdt_trampoline_addr, uintptr(addr), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmdt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmdt shmdt "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmget(key int, size int, flag int) (id int, err error) { + r0, _, e1 := syscall_syscall(libc_shmget_trampoline_addr, uintptr(key), uintptr(size), uintptr(flag)) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shmget_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shmget shmget "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Clonefile(src string, dst string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(src) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dst) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_clonefile_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clonefile_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clonefile clonefile "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Clonefileat(srcDirfd int, src string, dstDirfd int, dst string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(src) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dst) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_clonefileat_trampoline_addr, uintptr(srcDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(dstDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clonefileat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clonefileat clonefileat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exchangedata(path1 string, path2 string, options int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path1) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(path2) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_exchangedata_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_exchangedata_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fclonefileat(srcDirfd int, dstDirfd int, dst string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(dst) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fclonefileat_trampoline_addr, uintptr(srcDirfd), uintptr(dstDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fclonefileat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fclonefileat fclonefileat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := syscall_syscall(libc_getdtablesize_trampoline_addr, 0, 0, 0) + size = int(r0) + return +} + +var libc_getdtablesize_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_rawSyscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_syscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setprivexec(flag int) (err error) { + _, _, e1 := syscall_syscall(libc_setprivexec_trampoline_addr, uintptr(flag), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setprivexec_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_undelete_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_undelete_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(buf), uintptr(size), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_ptrace_trampoline_addr, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ptrace_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s new file mode 100644 index 0000000..efa5b4c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s @@ -0,0 +1,904 @@ +// go run mkasm.go darwin arm64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fdopendir(SB) + +GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) + +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) + +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) + +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) + +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) + +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) + +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) + +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) + +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) + +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) + +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) + +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) + +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) + +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) + +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) + +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) + +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) + +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) + +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) + +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) + +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) + +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) + +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) + +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) + +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) + +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) + +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) + +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) + +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_closedir(SB) + +GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) + +TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readdir_r(SB) + +GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) + +TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe(SB) + +GLOBL ·libc_pipe_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe_trampoline_addr(SB)/8, $libc_pipe_trampoline<>(SB) + +TEXT libc_getxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getxattr(SB) + +GLOBL ·libc_getxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getxattr_trampoline_addr(SB)/8, $libc_getxattr_trampoline<>(SB) + +TEXT libc_fgetxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fgetxattr(SB) + +GLOBL ·libc_fgetxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fgetxattr_trampoline_addr(SB)/8, $libc_fgetxattr_trampoline<>(SB) + +TEXT libc_setxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setxattr(SB) + +GLOBL ·libc_setxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setxattr_trampoline_addr(SB)/8, $libc_setxattr_trampoline<>(SB) + +TEXT libc_fsetxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsetxattr(SB) + +GLOBL ·libc_fsetxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsetxattr_trampoline_addr(SB)/8, $libc_fsetxattr_trampoline<>(SB) + +TEXT libc_removexattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_removexattr(SB) + +GLOBL ·libc_removexattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_removexattr_trampoline_addr(SB)/8, $libc_removexattr_trampoline<>(SB) + +TEXT libc_fremovexattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fremovexattr(SB) + +GLOBL ·libc_fremovexattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fremovexattr_trampoline_addr(SB)/8, $libc_fremovexattr_trampoline<>(SB) + +TEXT libc_listxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listxattr(SB) + +GLOBL ·libc_listxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listxattr_trampoline_addr(SB)/8, $libc_listxattr_trampoline<>(SB) + +TEXT libc_flistxattr_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flistxattr(SB) + +GLOBL ·libc_flistxattr_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flistxattr_trampoline_addr(SB)/8, $libc_flistxattr_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) + +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) + +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) + +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) + +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) + +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendfile(SB) + +GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendfile_trampoline_addr(SB)/8, $libc_sendfile_trampoline<>(SB) + +TEXT libc_shmat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmat(SB) + +GLOBL ·libc_shmat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmat_trampoline_addr(SB)/8, $libc_shmat_trampoline<>(SB) + +TEXT libc_shmctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmctl(SB) + +GLOBL ·libc_shmctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmctl_trampoline_addr(SB)/8, $libc_shmctl_trampoline<>(SB) + +TEXT libc_shmdt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmdt(SB) + +GLOBL ·libc_shmdt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmdt_trampoline_addr(SB)/8, $libc_shmdt_trampoline<>(SB) + +TEXT libc_shmget_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shmget(SB) + +GLOBL ·libc_shmget_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shmget_trampoline_addr(SB)/8, $libc_shmget_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) + +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) + +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) + +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) + +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) + +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) + +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) + +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) + +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) + +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_clonefile_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clonefile(SB) + +GLOBL ·libc_clonefile_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clonefile_trampoline_addr(SB)/8, $libc_clonefile_trampoline<>(SB) + +TEXT libc_clonefileat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clonefileat(SB) + +GLOBL ·libc_clonefileat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clonefileat_trampoline_addr(SB)/8, $libc_clonefileat_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) + +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) + +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_exchangedata_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exchangedata(SB) + +GLOBL ·libc_exchangedata_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exchangedata_trampoline_addr(SB)/8, $libc_exchangedata_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) + +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) + +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) + +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) + +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) + +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) + +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) + +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) + +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_fclonefileat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fclonefileat(SB) + +GLOBL ·libc_fclonefileat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fclonefileat_trampoline_addr(SB)/8, $libc_fclonefileat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) + +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) + +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) + +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) + +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) + +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_getdtablesize_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdtablesize(SB) + +GLOBL ·libc_getdtablesize_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdtablesize_trampoline_addr(SB)/8, $libc_getdtablesize_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) + +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) + +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) + +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) + +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) + +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) + +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) + +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) + +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) + +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) + +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) + +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) + +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) + +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) + +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) + +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) + +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) + +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) + +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) + +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) + +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) + +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) + +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) + +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) + +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) + +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) + +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) + +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) + +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) + +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) + +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) + +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) + +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) + +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) + +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) + +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) + +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) + +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) + +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) + +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) + +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) + +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) + +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) + +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) + +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setprivexec_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setprivexec(SB) + +GLOBL ·libc_setprivexec_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setprivexec_trampoline_addr(SB)/8, $libc_setprivexec_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) + +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) + +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) + +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) + +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) + +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) + +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) + +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) + +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) + +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) + +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) + +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_undelete_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_undelete(SB) + +GLOBL ·libc_undelete_trampoline_addr(SB), RODATA, $8 +DATA ·libc_undelete_trampoline_addr(SB)/8, $libc_undelete_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) + +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) + +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) + +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) + +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) + +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) + +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) + +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) + +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) + +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) + +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) + +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) + +TEXT libc_ptrace_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ptrace(SB) + +GLOBL ·libc_ptrace_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ptrace_trampoline_addr(SB)/8, $libc_ptrace_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) + +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) + +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go new file mode 100644 index 0000000..54749f9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go @@ -0,0 +1,1689 @@ +// go run mksyscall.go -dragonfly -tags dragonfly,amd64 syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build dragonfly && amd64 +// +build dragonfly,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe() (r int, w int, err error) { + r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) + r = int(r0) + w = int(r1) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (r int, w int, err error) { + r0, r1, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + r = int(r0) + w = int(r1) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func extpread(fd int, p []byte, flags int, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EXTPREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EXTPWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) + size = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(fd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go new file mode 100644 index 0000000..77479d4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go @@ -0,0 +1,1899 @@ +// go run mksyscall.go -l32 -tags freebsd,386 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build freebsd && 386 +// +build freebsd,386 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CapEnter() (err error) { + _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsLimit(fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) + size = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), uintptr(dev>>32), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) + newoffset = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go new file mode 100644 index 0000000..2e966d4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go @@ -0,0 +1,1899 @@ +// go run mksyscall.go -tags freebsd,amd64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build freebsd && amd64 +// +build freebsd,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CapEnter() (err error) { + _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsLimit(fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) + size = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go new file mode 100644 index 0000000..d65a7c0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go @@ -0,0 +1,1899 @@ +// go run mksyscall.go -l32 -arm -tags freebsd,arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build freebsd && arm +// +build freebsd,arm + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CapEnter() (err error) { + _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsLimit(fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) + size = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, uintptr(dev), uintptr(dev>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) + newoffset = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go new file mode 100644 index 0000000..6f0b97c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go @@ -0,0 +1,1899 @@ +// go run mksyscall.go -tags freebsd,arm64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build freebsd && arm64 +// +build freebsd,arm64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CapEnter() (err error) { + _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsLimit(fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) + size = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go new file mode 100644 index 0000000..e1c23b5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go @@ -0,0 +1,1899 @@ +// go run mksyscall.go -tags freebsd,riscv64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_riscv64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build freebsd && riscv64 +// +build freebsd,riscv64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data int) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CapEnter() (err error) { + _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func capRightsLimit(fd int, rightsp *CapRights) (err error) { + _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getdirentries(fd int, buf []byte, basep *uint64) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdtablesize() (size int) { + r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) + size = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(fd int, path string, mode uint32, dev uint64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Undelete(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go new file mode 100644 index 0000000..b57c705 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go @@ -0,0 +1,102 @@ +// go run mksyscall_solaris.go -illumos -tags illumos,amd64 syscall_illumos.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build illumos && amd64 +// +build illumos,amd64 + +package unix + +import ( + "unsafe" +) + +//go:cgo_import_dynamic libc_readv readv "libc.so" +//go:cgo_import_dynamic libc_preadv preadv "libc.so" +//go:cgo_import_dynamic libc_writev writev "libc.so" +//go:cgo_import_dynamic libc_pwritev pwritev "libc.so" +//go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so" + +//go:linkname procreadv libc_readv +//go:linkname procpreadv libc_preadv +//go:linkname procwritev libc_writev +//go:linkname procpwritev libc_pwritev +//go:linkname procaccept4 libc_accept4 + +var ( + procreadv, + procpreadv, + procwritev, + procpwritev, + procaccept4 syscallFunc +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readv(fd int, iovs []Iovec) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func preadv(fd int, iovs []Iovec, off int64) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writev(fd int, iovs []Iovec) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) { + var _p0 *Iovec + if len(iovs) > 0 { + _p0 = &iovs[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = e1 + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go new file mode 100644 index 0000000..36ea3a5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -0,0 +1,2174 @@ +// Code generated by mkmerge; DO NOT EDIT. + +//go:build linux +// +build linux + +package unix + +import ( + "syscall" + "unsafe" +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) { + r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fchmodat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(open_how)), uintptr(size), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) { + _, _, e1 := Syscall6(SYS_WAITID, uintptr(idType), uintptr(id), uintptr(unsafe.Pointer(info)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlJoin(cmd int, arg2 string) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(arg2) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(arg3) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(arg4) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { + var _p0 unsafe.Pointer + if len(payload) > 0 { + _p0 = unsafe.Pointer(&payload[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(keyType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(restriction) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func keyctlRestrictKeyring(cmd int, arg2 int) (err error) { + _, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { + _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(arg) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(source) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(target) + if err != nil { + return + } + var _p2 *byte + _p2, err = BytePtrFromString(fstype) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr, size uintptr) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(pathname) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MOUNT_SETATTR, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(unsafe.Pointer(attr)), uintptr(size), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Acct(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(keyType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(description) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(payload) > 0 { + _p2 = unsafe.Pointer(&payload[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtimex(buf *Timex) (state int, err error) { + r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) + state = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Capget(hdr *CapUserHeader, data *CapUserData) (err error) { + _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Capset(hdr *CapUserHeader, data *CapUserData) (err error) { + _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockAdjtime(clockid int32, buf *Timex) (state int, err error) { + r0, _, e1 := Syscall(SYS_CLOCK_ADJTIME, uintptr(clockid), uintptr(unsafe.Pointer(buf)), 0) + state = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGetres(clockid int32, res *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { + _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CloseRange(first uint, last uint, flags uint) (err error) { + _, _, e1 := Syscall(SYS_CLOSE_RANGE, uintptr(first), uintptr(last), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func DeleteModule(name string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(oldfd int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(oldfd int, newfd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollCreate1(flag int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { + _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Eventfd(initval uint, flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fdatasync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FinitModule(fd int, params string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(params) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flistxattr(fd int, dest []byte) (sz int, err error) { + var _p0 unsafe.Pointer + if len(dest) > 0 { + _p0 = unsafe.Pointer(&dest[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest))) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fremovexattr(fd int, attr string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) { + r0, _, e1 := Syscall(SYS_FSMOUNT, uintptr(fd), uintptr(flags), uintptr(mountAttrs)) + fsfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsopen(fsName string, flags int) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsName) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_FSOPEN, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fspick(dirfd int, pathName string, flags int) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(pathName) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_FSPICK, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrandom(buf []byte, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettid() (tid int) { + r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) + tid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getxattr(path string, attr string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(dest) > 0 { + _p2 = unsafe.Pointer(&dest[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InitModule(moduleImage []byte, params string) (err error) { + var _p0 unsafe.Pointer + if len(moduleImage) > 0 { + _p0 = unsafe.Pointer(&moduleImage[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + var _p1 *byte + _p1, err = BytePtrFromString(params) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(pathname) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) + watchdesc = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InotifyInit1(flags int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { + r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) + success = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, sig syscall.Signal) (err error) { + _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Klogctl(typ int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(dest) > 0 { + _p2 = unsafe.Pointer(&dest[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listxattr(path string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Llistxattr(path string, dest []byte) (sz int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(dest) > 0 { + _p1 = unsafe.Pointer(&dest[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) + sz = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lremovexattr(path string, attr string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(data) > 0 { + _p2 = unsafe.Pointer(&data[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func MemfdCreate(name string, flags int) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fromPathName) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(toPathName) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MOVE_MOUNT, uintptr(fromDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(toDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func OpenTree(dfd int, fileName string, flags uint) (r int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fileName) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN_TREE, uintptr(dfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + r = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PivotRoot(newroot string, putold string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(newroot) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(putold) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { + _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { + _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Removexattr(path string, attr string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(keyType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(description) + if err != nil { + return + } + var _p2 *byte + _p2, err = BytePtrFromString(callback) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setdomainname(p []byte) (err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sethostname(p []byte) (err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setns(fd int, nstype int) (err error) { + _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setxattr(path string, attr string, data []byte, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attr) + if err != nil { + return + } + var _p2 unsafe.Pointer + if len(data) > 0 { + _p2 = unsafe.Pointer(&data[0]) + } else { + _p2 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) { + r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0) + newfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() { + SyscallNoError(SYS_SYNC, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Syncfs(fd int) (err error) { + _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sysinfo(info *Sysinfo_t) (err error) { + _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func TimerfdCreate(clockid int, flags int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func TimerfdGettime(fd int, currValue *ItimerSpec) (err error) { + _, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) { + _, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { + _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Times(tms *Tms) (ticks uintptr, err error) { + r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) + ticks = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(mask int) (oldmask int) { + r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Uname(buf *Utsname) (err error) { + _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(target string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(target) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unshare(flags int) (err error) { + _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func exitThread(code int) (err error) { + _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, p *byte, np int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, p *byte, np int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readv(fd int, iovs []Iovec) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writev(fd int, iovs []Iovec) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) { + var _p0 unsafe.Pointer + if len(iovs) > 0 { + _p0 = unsafe.Pointer(&iovs[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, advice int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func faccessat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(pathname) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) { + var _p0 unsafe.Pointer + if len(localIov) > 0 { + _p0 = unsafe.Pointer(&localIov[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + var _p1 unsafe.Pointer + if len(remoteIov) > 0 { + _p1 = unsafe.Pointer(&remoteIov[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PROCESS_VM_READV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) { + var _p0 unsafe.Pointer + if len(localIov) > 0 { + _p0 = unsafe.Pointer(&localIov[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + var _p1 unsafe.Pointer + if len(remoteIov) > 0 { + _p1 = unsafe.Pointer(&remoteIov[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PROCESS_VM_WRITEV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PidfdOpen(pid int, flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) { + _, _, e1 := Syscall6(SYS_PIDFD_SEND_SIGNAL, uintptr(pidfd), uintptr(sig), uintptr(unsafe.Pointer(info)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) { + r0, _, e1 := Syscall(SYS_SHMAT, uintptr(id), uintptr(addr), uintptr(flag)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) { + r0, _, e1 := Syscall(SYS_SHMCTL, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf))) + result = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmdt(addr uintptr) (err error) { + _, _, e1 := Syscall(SYS_SHMDT, uintptr(addr), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func shmget(key int, size int, flag int) (id int, err error) { + r0, _, e1 := Syscall(SYS_SHMGET, uintptr(key), uintptr(size), uintptr(flag)) + id = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getitimer(which int, currValue *Itimerval) (err error) { + _, _, e1 := Syscall(SYS_GETITIMER, uintptr(which), uintptr(unsafe.Pointer(currValue)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) { + _, _, e1 := Syscall(SYS_SETITIMER, uintptr(which), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) { + _, _, e1 := RawSyscall6(SYS_RT_SIGPROCMASK, uintptr(how), uintptr(unsafe.Pointer(set)), uintptr(unsafe.Pointer(oldset)), uintptr(sigsetsize), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go new file mode 100644 index 0000000..c81b0ad --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -0,0 +1,497 @@ +// go run mksyscall.go -l32 -tags linux,386 syscall_linux.go syscall_linux_386.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && 386 +// +build linux,386 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE64, uintptr(fd), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID32, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID32, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID32, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID32, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go new file mode 100644 index 0000000..2206bce --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -0,0 +1,664 @@ +// go run mksyscall.go -tags linux,amd64 syscall_linux.go syscall_linux_amd64.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && amd64 +// +build linux,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func MemfdSecret(flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_MEMFD_SECRET, uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go new file mode 100644 index 0000000..edf6b39 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -0,0 +1,612 @@ +// go run mksyscall.go -l32 -arm -tags linux,arm syscall_linux.go syscall_linux_arm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && arm +// +build linux,arm + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID32, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID32, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID32, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID32, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func armSyncFileRange(fd int, flags int, off int64, n int64) (err error) { + _, _, e1 := Syscall6(SYS_ARM_SYNC_FILE_RANGE, uintptr(fd), uintptr(flags), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go new file mode 100644 index 0000000..190609f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -0,0 +1,563 @@ +// go run mksyscall.go -tags linux,arm64 syscall_linux.go syscall_linux_arm64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && arm64 +// +build linux,arm64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func MemfdSecret(flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_MEMFD_SECRET, uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go new file mode 100644 index 0000000..806ffd1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go @@ -0,0 +1,487 @@ +// go run mksyscall.go -tags linux,loong64 syscall_linux.go syscall_linux_loong64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && loong64 +// +build linux,loong64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go new file mode 100644 index 0000000..5f984cb --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -0,0 +1,664 @@ +// go run mksyscall.go -b32 -arm -tags linux,mips syscall_linux.go syscall_linux_mipsx.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && mips +// +build linux,mips + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(int64(r0)<<32 | int64(r1)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length>>32), uintptr(length), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset>>32), uintptr(offset)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset>>32), uintptr(offset)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall9(SYS_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length>>32), uintptr(length), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go new file mode 100644 index 0000000..46fc380 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -0,0 +1,658 @@ +// go run mksyscall.go -tags linux,mips64 syscall_linux.go syscall_linux_mips64x.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && mips64 +// +build linux,mips64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstat(fd int, st *stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstatat(dirfd int, path string, st *stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func lstat(path string, st *stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func stat(path string, st *stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go new file mode 100644 index 0000000..cbd0d4d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -0,0 +1,647 @@ +// go run mksyscall.go -tags linux,mips64le syscall_linux.go syscall_linux_mips64x.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && mips64le +// +build linux,mips64le + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstat(fd int, st *stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstatat(dirfd int, path string, st *stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func lstat(path string, st *stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func stat(path string, st *stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go new file mode 100644 index 0000000..0c13d15 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -0,0 +1,664 @@ +// go run mksyscall.go -l32 -arm -tags linux,mipsle syscall_linux.go syscall_linux_mipsx.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && mipsle +// +build linux,mipsle + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(mask>>32), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall9(SYS_FADVISE64, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall9(SYS_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go new file mode 100644 index 0000000..e01432a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go @@ -0,0 +1,669 @@ +// go run mksyscall.go -b32 -tags linux,ppc syscall_linux.go syscall_linux_ppc.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && ppc +// +build linux,ppc + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(int64(r0)<<32 | int64(r1)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE64, uintptr(fd), uintptr(length>>32), uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset>>32), uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset>>32), uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), uintptr(length>>32), uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setrlimit(resource int, rlim *rlimit32) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go new file mode 100644 index 0000000..13c7ee7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -0,0 +1,715 @@ +// go run mksyscall.go -tags linux,ppc64 syscall_linux.go syscall_linux_ppc64x.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && ppc64 +// +build linux,ppc64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go new file mode 100644 index 0000000..02d0c0f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -0,0 +1,715 @@ +// go run mksyscall.go -tags linux,ppc64le syscall_linux.go syscall_linux_ppc64x.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && ppc64le +// +build linux,ppc64le + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ioperm(from int, num int, on int) (err error) { + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Iopl(level int) (err error) { + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Time(t *Time_t) (tt Time_t, err error) { + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) + tt = Time_t(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off), uintptr(n), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go new file mode 100644 index 0000000..9fee3b1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go @@ -0,0 +1,543 @@ +// go run mksyscall.go -tags linux,riscv64 syscall_linux.go syscall_linux_riscv64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && riscv64 +// +build linux,riscv64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func MemfdSecret(flags int) (fd int, err error) { + r0, _, e1 := Syscall(SYS_MEMFD_SECRET, uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go new file mode 100644 index 0000000..647bbfe --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -0,0 +1,506 @@ +// go run mksyscall.go -tags linux,s390x syscall_linux.go syscall_linux_s390x.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && s390x +// +build linux,s390x + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(cmdline) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go new file mode 100644 index 0000000..ada057f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -0,0 +1,659 @@ +// go run mksyscall.go -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go syscall_linux_alarm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build linux && sparc64 +// +build linux,sparc64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { + var _p0 unsafe.Pointer + if len(events) > 0 { + _p0 = unsafe.Pointer(&events[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, buf *Statfs_t) (err error) { + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsgid(gid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setfsuid(uid int) (prev int, err error) { + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) + prev = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { + r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) + n = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, buf *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { + r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) + xaddr = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Alarm(seconds uint) (remaining uint, err error) { + r0, _, e1 := Syscall(SYS_ALARM, uintptr(seconds), 0, 0) + remaining = uint(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go new file mode 100644 index 0000000..79f7389 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go @@ -0,0 +1,1860 @@ +// go run mksyscall.go -l32 -netbsd -tags netbsd,386 syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build netbsd && 386 +// +build netbsd,386 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) + newoffset = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go new file mode 100644 index 0000000..fb161f3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go @@ -0,0 +1,1860 @@ +// go run mksyscall.go -netbsd -tags netbsd,amd64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build netbsd && amd64 +// +build netbsd,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), 0, uintptr(length), uintptr(advice)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go new file mode 100644 index 0000000..4c8ac99 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go @@ -0,0 +1,1860 @@ +// go run mksyscall.go -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build netbsd && arm +// +build netbsd,arm + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), 0, uintptr(length), uintptr(length>>32), uintptr(advice), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) + newoffset = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go new file mode 100644 index 0000000..76dd8ec --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go @@ -0,0 +1,1860 @@ +// go run mksyscall.go -netbsd -tags netbsd,arm64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build netbsd && arm64 +// +build netbsd,arm64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + Syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(file) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(attrname) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(link) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { + _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), 0, uintptr(length), uintptr(advice)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatvfs1(fd int, buf *Statvfs_t, flags int) (err error) { + _, _, e1 := Syscall(SYS_FSTATVFS1, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) + pgrp = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statvfs1(path string, buf *Statvfs_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_STATVFS1, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go new file mode 100644 index 0000000..caeb807 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -l32 -openbsd -libc -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && 386 +// +build openbsd,386 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, r1, e1 := syscall_syscall6(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) + newoffset = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall9(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s new file mode 100644 index 0000000..0874442 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s @@ -0,0 +1,669 @@ +// go run mkasm.go openbsd 386 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getgroups_trampoline_addr(SB)/4, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setgroups_trampoline_addr(SB)/4, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $4 +DATA ·libc_wait4_trampoline_addr(SB)/4, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $4 +DATA ·libc_accept_trampoline_addr(SB)/4, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $4 +DATA ·libc_bind_trampoline_addr(SB)/4, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $4 +DATA ·libc_connect_trampoline_addr(SB)/4, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $4 +DATA ·libc_socket_trampoline_addr(SB)/4, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getsockopt_trampoline_addr(SB)/4, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setsockopt_trampoline_addr(SB)/4, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpeername_trampoline_addr(SB)/4, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getsockname_trampoline_addr(SB)/4, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_shutdown_trampoline_addr(SB)/4, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $4 +DATA ·libc_socketpair_trampoline_addr(SB)/4, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $4 +DATA ·libc_recvfrom_trampoline_addr(SB)/4, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sendto_trampoline_addr(SB)/4, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $4 +DATA ·libc_recvmsg_trampoline_addr(SB)/4, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sendmsg_trampoline_addr(SB)/4, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $4 +DATA ·libc_kevent_trampoline_addr(SB)/4, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $4 +DATA ·libc_utimes_trampoline_addr(SB)/4, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $4 +DATA ·libc_futimes_trampoline_addr(SB)/4, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $4 +DATA ·libc_poll_trampoline_addr(SB)/4, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $4 +DATA ·libc_madvise_trampoline_addr(SB)/4, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mlock_trampoline_addr(SB)/4, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mlockall_trampoline_addr(SB)/4, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mprotect_trampoline_addr(SB)/4, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $4 +DATA ·libc_msync_trampoline_addr(SB)/4, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $4 +DATA ·libc_munlock_trampoline_addr(SB)/4, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $4 +DATA ·libc_munlockall_trampoline_addr(SB)/4, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe2(SB) +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pipe2_trampoline_addr(SB)/4, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdents(SB) +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getdents_trampoline_addr(SB)/4, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getcwd_trampoline_addr(SB)/4, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $4 +DATA ·libc_ioctl_trampoline_addr(SB)/4, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sysctl_trampoline_addr(SB)/4, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ppoll(SB) +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $4 +DATA ·libc_ppoll_trampoline_addr(SB)/4, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $4 +DATA ·libc_access_trampoline_addr(SB)/4, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $4 +DATA ·libc_adjtime_trampoline_addr(SB)/4, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chdir_trampoline_addr(SB)/4, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chflags_trampoline_addr(SB)/4, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chmod_trampoline_addr(SB)/4, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chown_trampoline_addr(SB)/4, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chroot_trampoline_addr(SB)/4, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $4 +DATA ·libc_clock_gettime_trampoline_addr(SB)/4, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $4 +DATA ·libc_close_trampoline_addr(SB)/4, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $4 +DATA ·libc_dup_trampoline_addr(SB)/4, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $4 +DATA ·libc_dup2_trampoline_addr(SB)/4, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup3(SB) +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $4 +DATA ·libc_dup3_trampoline_addr(SB)/4, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $4 +DATA ·libc_exit_trampoline_addr(SB)/4, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_faccessat_trampoline_addr(SB)/4, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchdir_trampoline_addr(SB)/4, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchflags_trampoline_addr(SB)/4, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchmod_trampoline_addr(SB)/4, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchmodat_trampoline_addr(SB)/4, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchown_trampoline_addr(SB)/4, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchownat_trampoline_addr(SB)/4, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $4 +DATA ·libc_flock_trampoline_addr(SB)/4, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fpathconf_trampoline_addr(SB)/4, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fstat_trampoline_addr(SB)/4, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fstatat_trampoline_addr(SB)/4, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fstatfs_trampoline_addr(SB)/4, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fsync_trampoline_addr(SB)/4, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $4 +DATA ·libc_ftruncate_trampoline_addr(SB)/4, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getegid_trampoline_addr(SB)/4, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_geteuid_trampoline_addr(SB)/4, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getgid_trampoline_addr(SB)/4, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpgid_trampoline_addr(SB)/4, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpgrp_trampoline_addr(SB)/4, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpid_trampoline_addr(SB)/4, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getppid_trampoline_addr(SB)/4, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpriority_trampoline_addr(SB)/4, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getrlimit_trampoline_addr(SB)/4, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrtable(SB) +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getrtable_trampoline_addr(SB)/4, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getrusage_trampoline_addr(SB)/4, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getsid_trampoline_addr(SB)/4, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $4 +DATA ·libc_gettimeofday_trampoline_addr(SB)/4, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getuid_trampoline_addr(SB)/4, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_issetugid_trampoline_addr(SB)/4, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $4 +DATA ·libc_kill_trampoline_addr(SB)/4, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $4 +DATA ·libc_kqueue_trampoline_addr(SB)/4, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_lchown_trampoline_addr(SB)/4, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $4 +DATA ·libc_link_trampoline_addr(SB)/4, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_linkat_trampoline_addr(SB)/4, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $4 +DATA ·libc_listen_trampoline_addr(SB)/4, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_lstat_trampoline_addr(SB)/4, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkdir_trampoline_addr(SB)/4, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkdirat_trampoline_addr(SB)/4, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkfifo_trampoline_addr(SB)/4, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifoat(SB) +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkfifoat_trampoline_addr(SB)/4, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mknod_trampoline_addr(SB)/4, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknodat(SB) +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mknodat_trampoline_addr(SB)/4, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_nanosleep(SB) +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $4 +DATA ·libc_nanosleep_trampoline_addr(SB)/4, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $4 +DATA ·libc_open_trampoline_addr(SB)/4, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_openat_trampoline_addr(SB)/4, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pathconf_trampoline_addr(SB)/4, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pread_trampoline_addr(SB)/4, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pwrite_trampoline_addr(SB)/4, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $4 +DATA ·libc_read_trampoline_addr(SB)/4, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $4 +DATA ·libc_readlink_trampoline_addr(SB)/4, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_readlinkat_trampoline_addr(SB)/4, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $4 +DATA ·libc_rename_trampoline_addr(SB)/4, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_renameat_trampoline_addr(SB)/4, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $4 +DATA ·libc_revoke_trampoline_addr(SB)/4, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_rmdir_trampoline_addr(SB)/4, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $4 +DATA ·libc_lseek_trampoline_addr(SB)/4, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $4 +DATA ·libc_select_trampoline_addr(SB)/4, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setegid_trampoline_addr(SB)/4, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_seteuid_trampoline_addr(SB)/4, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setgid_trampoline_addr(SB)/4, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setlogin_trampoline_addr(SB)/4, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setpgid_trampoline_addr(SB)/4, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setpriority_trampoline_addr(SB)/4, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setregid_trampoline_addr(SB)/4, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setreuid_trampoline_addr(SB)/4, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresgid(SB) +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setresgid_trampoline_addr(SB)/4, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresuid(SB) +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setresuid_trampoline_addr(SB)/4, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setrlimit_trampoline_addr(SB)/4, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrtable(SB) +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setrtable_trampoline_addr(SB)/4, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setsid_trampoline_addr(SB)/4, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $4 +DATA ·libc_settimeofday_trampoline_addr(SB)/4, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setuid_trampoline_addr(SB)/4, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_stat_trampoline_addr(SB)/4, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $4 +DATA ·libc_statfs_trampoline_addr(SB)/4, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $4 +DATA ·libc_symlink_trampoline_addr(SB)/4, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_symlinkat_trampoline_addr(SB)/4, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sync_trampoline_addr(SB)/4, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $4 +DATA ·libc_truncate_trampoline_addr(SB)/4, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $4 +DATA ·libc_umask_trampoline_addr(SB)/4, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unlink_trampoline_addr(SB)/4, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unlinkat_trampoline_addr(SB)/4, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unmount_trampoline_addr(SB)/4, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $4 +DATA ·libc_write_trampoline_addr(SB)/4, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mmap_trampoline_addr(SB)/4, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $4 +DATA ·libc_munmap_trampoline_addr(SB)/4, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_utimensat_trampoline_addr(SB)/4, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go new file mode 100644 index 0000000..a05e5f4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -openbsd -libc -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && amd64 +// +build openbsd,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s new file mode 100644 index 0000000..5782cd1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s @@ -0,0 +1,669 @@ +// go run mkasm.go openbsd amd64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe2(SB) +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe2_trampoline_addr(SB)/8, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdents(SB) +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdents_trampoline_addr(SB)/8, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ppoll(SB) +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ppoll_trampoline_addr(SB)/8, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup3(SB) +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup3_trampoline_addr(SB)/8, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrtable(SB) +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrtable_trampoline_addr(SB)/8, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifoat(SB) +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifoat_trampoline_addr(SB)/8, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknodat(SB) +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_nanosleep(SB) +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 +DATA ·libc_nanosleep_trampoline_addr(SB)/8, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresgid(SB) +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresgid_trampoline_addr(SB)/8, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresuid(SB) +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresuid_trampoline_addr(SB)/8, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrtable(SB) +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrtable_trampoline_addr(SB)/8, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go new file mode 100644 index 0000000..b2da8e5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -l32 -openbsd -arm -libc -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && arm +// +build openbsd,arm + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall6(libc_ftruncate_trampoline_addr, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, r1, e1 := syscall_syscall6(libc_lseek_trampoline_addr, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) + newoffset = int64(int64(r1)<<32 | int64(r0)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall9(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s new file mode 100644 index 0000000..cf31042 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s @@ -0,0 +1,669 @@ +// go run mkasm.go openbsd arm +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getgroups_trampoline_addr(SB)/4, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setgroups_trampoline_addr(SB)/4, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $4 +DATA ·libc_wait4_trampoline_addr(SB)/4, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $4 +DATA ·libc_accept_trampoline_addr(SB)/4, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $4 +DATA ·libc_bind_trampoline_addr(SB)/4, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $4 +DATA ·libc_connect_trampoline_addr(SB)/4, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $4 +DATA ·libc_socket_trampoline_addr(SB)/4, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getsockopt_trampoline_addr(SB)/4, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setsockopt_trampoline_addr(SB)/4, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpeername_trampoline_addr(SB)/4, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getsockname_trampoline_addr(SB)/4, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_shutdown_trampoline_addr(SB)/4, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $4 +DATA ·libc_socketpair_trampoline_addr(SB)/4, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $4 +DATA ·libc_recvfrom_trampoline_addr(SB)/4, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sendto_trampoline_addr(SB)/4, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $4 +DATA ·libc_recvmsg_trampoline_addr(SB)/4, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sendmsg_trampoline_addr(SB)/4, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $4 +DATA ·libc_kevent_trampoline_addr(SB)/4, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $4 +DATA ·libc_utimes_trampoline_addr(SB)/4, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $4 +DATA ·libc_futimes_trampoline_addr(SB)/4, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $4 +DATA ·libc_poll_trampoline_addr(SB)/4, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $4 +DATA ·libc_madvise_trampoline_addr(SB)/4, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mlock_trampoline_addr(SB)/4, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mlockall_trampoline_addr(SB)/4, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mprotect_trampoline_addr(SB)/4, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $4 +DATA ·libc_msync_trampoline_addr(SB)/4, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $4 +DATA ·libc_munlock_trampoline_addr(SB)/4, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $4 +DATA ·libc_munlockall_trampoline_addr(SB)/4, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe2(SB) +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pipe2_trampoline_addr(SB)/4, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdents(SB) +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getdents_trampoline_addr(SB)/4, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getcwd_trampoline_addr(SB)/4, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $4 +DATA ·libc_ioctl_trampoline_addr(SB)/4, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sysctl_trampoline_addr(SB)/4, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ppoll(SB) +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $4 +DATA ·libc_ppoll_trampoline_addr(SB)/4, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $4 +DATA ·libc_access_trampoline_addr(SB)/4, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $4 +DATA ·libc_adjtime_trampoline_addr(SB)/4, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chdir_trampoline_addr(SB)/4, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chflags_trampoline_addr(SB)/4, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chmod_trampoline_addr(SB)/4, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chown_trampoline_addr(SB)/4, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $4 +DATA ·libc_chroot_trampoline_addr(SB)/4, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $4 +DATA ·libc_clock_gettime_trampoline_addr(SB)/4, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $4 +DATA ·libc_close_trampoline_addr(SB)/4, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $4 +DATA ·libc_dup_trampoline_addr(SB)/4, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $4 +DATA ·libc_dup2_trampoline_addr(SB)/4, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup3(SB) +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $4 +DATA ·libc_dup3_trampoline_addr(SB)/4, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $4 +DATA ·libc_exit_trampoline_addr(SB)/4, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_faccessat_trampoline_addr(SB)/4, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchdir_trampoline_addr(SB)/4, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchflags_trampoline_addr(SB)/4, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchmod_trampoline_addr(SB)/4, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchmodat_trampoline_addr(SB)/4, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchown_trampoline_addr(SB)/4, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fchownat_trampoline_addr(SB)/4, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $4 +DATA ·libc_flock_trampoline_addr(SB)/4, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fpathconf_trampoline_addr(SB)/4, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fstat_trampoline_addr(SB)/4, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fstatat_trampoline_addr(SB)/4, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fstatfs_trampoline_addr(SB)/4, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fsync_trampoline_addr(SB)/4, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $4 +DATA ·libc_ftruncate_trampoline_addr(SB)/4, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getegid_trampoline_addr(SB)/4, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_geteuid_trampoline_addr(SB)/4, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getgid_trampoline_addr(SB)/4, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpgid_trampoline_addr(SB)/4, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpgrp_trampoline_addr(SB)/4, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpid_trampoline_addr(SB)/4, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getppid_trampoline_addr(SB)/4, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getpriority_trampoline_addr(SB)/4, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getrlimit_trampoline_addr(SB)/4, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrtable(SB) +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getrtable_trampoline_addr(SB)/4, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getrusage_trampoline_addr(SB)/4, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getsid_trampoline_addr(SB)/4, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $4 +DATA ·libc_gettimeofday_trampoline_addr(SB)/4, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getuid_trampoline_addr(SB)/4, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_issetugid_trampoline_addr(SB)/4, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $4 +DATA ·libc_kill_trampoline_addr(SB)/4, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $4 +DATA ·libc_kqueue_trampoline_addr(SB)/4, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $4 +DATA ·libc_lchown_trampoline_addr(SB)/4, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $4 +DATA ·libc_link_trampoline_addr(SB)/4, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_linkat_trampoline_addr(SB)/4, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $4 +DATA ·libc_listen_trampoline_addr(SB)/4, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_lstat_trampoline_addr(SB)/4, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkdir_trampoline_addr(SB)/4, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkdirat_trampoline_addr(SB)/4, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkfifo_trampoline_addr(SB)/4, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifoat(SB) +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mkfifoat_trampoline_addr(SB)/4, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mknod_trampoline_addr(SB)/4, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknodat(SB) +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mknodat_trampoline_addr(SB)/4, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_nanosleep(SB) +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $4 +DATA ·libc_nanosleep_trampoline_addr(SB)/4, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $4 +DATA ·libc_open_trampoline_addr(SB)/4, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_openat_trampoline_addr(SB)/4, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pathconf_trampoline_addr(SB)/4, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pread_trampoline_addr(SB)/4, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pwrite_trampoline_addr(SB)/4, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $4 +DATA ·libc_read_trampoline_addr(SB)/4, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $4 +DATA ·libc_readlink_trampoline_addr(SB)/4, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_readlinkat_trampoline_addr(SB)/4, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $4 +DATA ·libc_rename_trampoline_addr(SB)/4, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_renameat_trampoline_addr(SB)/4, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $4 +DATA ·libc_revoke_trampoline_addr(SB)/4, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $4 +DATA ·libc_rmdir_trampoline_addr(SB)/4, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $4 +DATA ·libc_lseek_trampoline_addr(SB)/4, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $4 +DATA ·libc_select_trampoline_addr(SB)/4, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setegid_trampoline_addr(SB)/4, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_seteuid_trampoline_addr(SB)/4, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setgid_trampoline_addr(SB)/4, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setlogin_trampoline_addr(SB)/4, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setpgid_trampoline_addr(SB)/4, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setpriority_trampoline_addr(SB)/4, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setregid_trampoline_addr(SB)/4, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setreuid_trampoline_addr(SB)/4, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresgid(SB) +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setresgid_trampoline_addr(SB)/4, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresuid(SB) +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setresuid_trampoline_addr(SB)/4, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setrlimit_trampoline_addr(SB)/4, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrtable(SB) +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setrtable_trampoline_addr(SB)/4, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setsid_trampoline_addr(SB)/4, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $4 +DATA ·libc_settimeofday_trampoline_addr(SB)/4, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $4 +DATA ·libc_setuid_trampoline_addr(SB)/4, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_stat_trampoline_addr(SB)/4, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $4 +DATA ·libc_statfs_trampoline_addr(SB)/4, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $4 +DATA ·libc_symlink_trampoline_addr(SB)/4, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_symlinkat_trampoline_addr(SB)/4, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $4 +DATA ·libc_sync_trampoline_addr(SB)/4, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $4 +DATA ·libc_truncate_trampoline_addr(SB)/4, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $4 +DATA ·libc_umask_trampoline_addr(SB)/4, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unlink_trampoline_addr(SB)/4, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unlinkat_trampoline_addr(SB)/4, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unmount_trampoline_addr(SB)/4, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $4 +DATA ·libc_write_trampoline_addr(SB)/4, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mmap_trampoline_addr(SB)/4, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $4 +DATA ·libc_munmap_trampoline_addr(SB)/4, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_utimensat_trampoline_addr(SB)/4, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go new file mode 100644 index 0000000..048b265 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -openbsd -libc -tags openbsd,arm64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && arm64 +// +build openbsd,arm64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s new file mode 100644 index 0000000..484bb42 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s @@ -0,0 +1,669 @@ +// go run mkasm.go openbsd arm64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe2(SB) +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe2_trampoline_addr(SB)/8, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdents(SB) +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdents_trampoline_addr(SB)/8, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ppoll(SB) +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ppoll_trampoline_addr(SB)/8, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup3(SB) +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup3_trampoline_addr(SB)/8, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrtable(SB) +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrtable_trampoline_addr(SB)/8, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifoat(SB) +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifoat_trampoline_addr(SB)/8, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknodat(SB) +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_nanosleep(SB) +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 +DATA ·libc_nanosleep_trampoline_addr(SB)/8, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresgid(SB) +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresgid_trampoline_addr(SB)/8, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresuid(SB) +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresuid_trampoline_addr(SB)/8, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrtable(SB) +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrtable_trampoline_addr(SB)/8, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go new file mode 100644 index 0000000..6f33e37 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -openbsd -libc -tags openbsd,mips64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_mips64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && mips64 +// +build openbsd,mips64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s new file mode 100644 index 0000000..55af272 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s @@ -0,0 +1,669 @@ +// go run mkasm.go openbsd mips64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe2(SB) +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe2_trampoline_addr(SB)/8, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdents(SB) +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdents_trampoline_addr(SB)/8, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ppoll(SB) +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ppoll_trampoline_addr(SB)/8, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup3(SB) +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup3_trampoline_addr(SB)/8, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrtable(SB) +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrtable_trampoline_addr(SB)/8, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifoat(SB) +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifoat_trampoline_addr(SB)/8, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknodat(SB) +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_nanosleep(SB) +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 +DATA ·libc_nanosleep_trampoline_addr(SB)/8, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresgid(SB) +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresgid_trampoline_addr(SB)/8, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresuid(SB) +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresuid_trampoline_addr(SB)/8, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrtable(SB) +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrtable_trampoline_addr(SB)/8, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go new file mode 100644 index 0000000..330cf7f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -openbsd -libc -tags openbsd,ppc64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_ppc64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && ppc64 +// +build openbsd,ppc64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s new file mode 100644 index 0000000..4028255 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s @@ -0,0 +1,802 @@ +// go run mkasm.go openbsd ppc64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getgroups(SB) + RET +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setgroups(SB) + RET +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_wait4(SB) + RET +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_accept(SB) + RET +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_bind(SB) + RET +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_connect(SB) + RET +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_socket(SB) + RET +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getsockopt(SB) + RET +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setsockopt(SB) + RET +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getpeername(SB) + RET +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getsockname(SB) + RET +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_shutdown(SB) + RET +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_socketpair(SB) + RET +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_recvfrom(SB) + RET +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_sendto(SB) + RET +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_recvmsg(SB) + RET +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_sendmsg(SB) + RET +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_kevent(SB) + RET +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_utimes(SB) + RET +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_futimes(SB) + RET +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_poll(SB) + RET +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_madvise(SB) + RET +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mlock(SB) + RET +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mlockall(SB) + RET +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mprotect(SB) + RET +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_msync(SB) + RET +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_munlock(SB) + RET +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_munlockall(SB) + RET +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_pipe2(SB) + RET +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe2_trampoline_addr(SB)/8, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getdents(SB) + RET +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdents_trampoline_addr(SB)/8, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getcwd(SB) + RET +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_ioctl(SB) + RET +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_sysctl(SB) + RET +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_ppoll(SB) + RET +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ppoll_trampoline_addr(SB)/8, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_access(SB) + RET +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_adjtime(SB) + RET +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_chdir(SB) + RET +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_chflags(SB) + RET +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_chmod(SB) + RET +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_chown(SB) + RET +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_chroot(SB) + RET +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_clock_gettime(SB) + RET +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_close(SB) + RET +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_dup(SB) + RET +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_dup2(SB) + RET +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_dup3(SB) + RET +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup3_trampoline_addr(SB)/8, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_exit(SB) + RET +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_faccessat(SB) + RET +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fchdir(SB) + RET +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fchflags(SB) + RET +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fchmod(SB) + RET +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fchmodat(SB) + RET +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fchown(SB) + RET +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fchownat(SB) + RET +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_flock(SB) + RET +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fpathconf(SB) + RET +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fstat(SB) + RET +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fstatat(SB) + RET +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fstatfs(SB) + RET +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fsync(SB) + RET +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_ftruncate(SB) + RET +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getegid(SB) + RET +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_geteuid(SB) + RET +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getgid(SB) + RET +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getpgid(SB) + RET +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getpgrp(SB) + RET +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getpid(SB) + RET +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getppid(SB) + RET +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getpriority(SB) + RET +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getrlimit(SB) + RET +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getrtable(SB) + RET +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrtable_trampoline_addr(SB)/8, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getrusage(SB) + RET +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getsid(SB) + RET +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_gettimeofday(SB) + RET +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getuid(SB) + RET +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_issetugid(SB) + RET +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_kill(SB) + RET +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_kqueue(SB) + RET +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_lchown(SB) + RET +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_link(SB) + RET +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_linkat(SB) + RET +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_listen(SB) + RET +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_lstat(SB) + RET +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mkdir(SB) + RET +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mkdirat(SB) + RET +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mkfifo(SB) + RET +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mkfifoat(SB) + RET +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifoat_trampoline_addr(SB)/8, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mknod(SB) + RET +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mknodat(SB) + RET +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_nanosleep(SB) + RET +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 +DATA ·libc_nanosleep_trampoline_addr(SB)/8, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_open(SB) + RET +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_openat(SB) + RET +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_pathconf(SB) + RET +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_pread(SB) + RET +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_pwrite(SB) + RET +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_read(SB) + RET +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_readlink(SB) + RET +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_readlinkat(SB) + RET +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_rename(SB) + RET +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_renameat(SB) + RET +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_revoke(SB) + RET +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_rmdir(SB) + RET +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_lseek(SB) + RET +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_select(SB) + RET +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setegid(SB) + RET +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_seteuid(SB) + RET +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setgid(SB) + RET +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setlogin(SB) + RET +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setpgid(SB) + RET +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setpriority(SB) + RET +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setregid(SB) + RET +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setreuid(SB) + RET +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setresgid(SB) + RET +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresgid_trampoline_addr(SB)/8, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setresuid(SB) + RET +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresuid_trampoline_addr(SB)/8, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setrlimit(SB) + RET +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setrtable(SB) + RET +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrtable_trampoline_addr(SB)/8, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setsid(SB) + RET +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_settimeofday(SB) + RET +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_setuid(SB) + RET +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_stat(SB) + RET +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_statfs(SB) + RET +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_symlink(SB) + RET +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_symlinkat(SB) + RET +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_sync(SB) + RET +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_truncate(SB) + RET +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_umask(SB) + RET +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_unlink(SB) + RET +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_unlinkat(SB) + RET +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_unmount(SB) + RET +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_write(SB) + RET +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mmap(SB) + RET +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_munmap(SB) + RET +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_utimensat(SB) + RET +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go new file mode 100644 index 0000000..5f24de0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go @@ -0,0 +1,2235 @@ +// go run mksyscall.go -openbsd -libc -tags openbsd,riscv64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_riscv64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build openbsd && riscv64 +// +build openbsd,riscv64 + +package unix + +import ( + "syscall" + "unsafe" +) + +var _ syscall.Errno + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgroups_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { + r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_wait4_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_accept_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_accept accept "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_bind_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_bind bind "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connect connect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socket_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socket socket "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsockopt_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpeername_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpeername getpeername "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsockname_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsockname getsockname "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_shutdown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_shutdown shutdown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_socketpair_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_socketpair socketpair "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvfrom_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendto_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendto sendto "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_recvmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sendmsg_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kevent_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kevent kevent "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimes utimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimes(fd int, timeval *[2]Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_futimes_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_futimes futimes "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_poll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_poll poll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, behav int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_madvise_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_madvise madvise "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlock mlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mprotect_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_msync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_msync msync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlock munlock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munlockall_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pipe2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getdents_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getdents getdents "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getcwd_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ioctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sysctl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sysctl sysctl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ppoll_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ppoll ppoll "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_access_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_access access "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_adjtime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chdir chdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chflags(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chflags chflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chmod chmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chown chown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_chroot_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_chroot chroot "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_clock_gettime_trampoline_addr, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_clock_gettime_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_close_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_close close "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) + nfd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup dup "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(from int, to int) (err error) { + _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup2_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup3(from int, to int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_dup3_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_dup3 dup3 "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) + return +} + +var libc_exit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_exit exit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_faccessat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchflags(fd int, flags int) (err error) { + _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchflags_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchflags fchflags "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchmodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchown fchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fchownat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_flock_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_flock flock "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fpathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstat fstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatfs(fd int, stat *Statfs_t) (err error) { + _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fstatfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fsync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fsync fsync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_ftruncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) + egid = int(r0) + return +} + +var libc_getegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getegid getegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_geteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) + gid = int(r0) + return +} + +var libc_getgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getgid getgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgrp int) { + r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) + pgrp = int(r0) + return +} + +var libc_getpgrp_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) + pid = int(r0) + return +} + +var libc_getpid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpid getpid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) + ppid = int(r0) + return +} + +var libc_getppid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getppid getppid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrtable() (rtable int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) + rtable = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrtable getrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getrusage_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getsid getsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_gettimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) + uid = int(r0) + return +} + +var libc_getuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getuid getuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Issetugid() (tainted bool) { + r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) + tainted = bool(r0 != 0) + return +} + +var libc_issetugid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_issetugid issetugid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kill_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kill kill "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kqueue() (fd int, err error) { + r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_kqueue_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_kqueue kqueue "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lchown_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lchown lchown "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_link_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_link link "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_linkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_linkat linkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_listen_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_listen listen "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lstat lstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkdirat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifo_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mkfifoat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknod_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknod mknod "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mknodat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_nanosleep_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_open_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_open open "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_openat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_openat openat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pathconf_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pread_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pread pread "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pwrite_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_read_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_read read "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlink readlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_readlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rename_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rename rename "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(fromfd int, from string, tofd int, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameat renameat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Revoke(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_revoke_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_revoke revoke "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_rmdir_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) + newoffset = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_lseek_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_lseek lseek "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_select_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_select select "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setegid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setegid setegid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_seteuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setgid setgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setlogin(name string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(name) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setlogin_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setlogin setlogin "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setpriority_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setregid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setregid setregid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setreuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresgid(rgid int, egid int, sgid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresgid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresgid setresgid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setresuid(ruid int, euid int, suid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setresuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setresuid setresuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrlimit_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrtable(rtable int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setrtable_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setrtable setrtable "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setsid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setsid setsid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Settimeofday(tp *Timeval) (err error) { + _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_settimeofday_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_setuid_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_setuid setuid "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_stat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_stat stat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statfs(path string, stat *Statfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_statfs_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_statfs statfs "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlink symlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_symlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_sync_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_sync sync "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_truncate_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_truncate truncate "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(newmask int) (oldmask int) { + r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) + oldmask = int(r0) + return +} + +var libc_umask_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_umask umask "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlink_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlink unlink "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unlinkat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unmount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unmount unmount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_write_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_write write "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mmap mmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_munmap_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_munmap munmap "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func writelen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_utimensat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s new file mode 100644 index 0000000..e1fbd4d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s @@ -0,0 +1,669 @@ +// go run mkasm.go openbsd riscv64 +// Code generated by the command above; DO NOT EDIT. + +#include "textflag.h" + +TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgroups(SB) +GLOBL ·libc_getgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgroups_trampoline_addr(SB)/8, $libc_getgroups_trampoline<>(SB) + +TEXT libc_setgroups_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgroups(SB) +GLOBL ·libc_setgroups_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgroups_trampoline_addr(SB)/8, $libc_setgroups_trampoline<>(SB) + +TEXT libc_wait4_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_wait4(SB) +GLOBL ·libc_wait4_trampoline_addr(SB), RODATA, $8 +DATA ·libc_wait4_trampoline_addr(SB)/8, $libc_wait4_trampoline<>(SB) + +TEXT libc_accept_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_accept(SB) +GLOBL ·libc_accept_trampoline_addr(SB), RODATA, $8 +DATA ·libc_accept_trampoline_addr(SB)/8, $libc_accept_trampoline<>(SB) + +TEXT libc_bind_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_bind(SB) +GLOBL ·libc_bind_trampoline_addr(SB), RODATA, $8 +DATA ·libc_bind_trampoline_addr(SB)/8, $libc_bind_trampoline<>(SB) + +TEXT libc_connect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connect(SB) +GLOBL ·libc_connect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connect_trampoline_addr(SB)/8, $libc_connect_trampoline<>(SB) + +TEXT libc_socket_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socket(SB) +GLOBL ·libc_socket_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socket_trampoline_addr(SB)/8, $libc_socket_trampoline<>(SB) + +TEXT libc_getsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockopt(SB) +GLOBL ·libc_getsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockopt_trampoline_addr(SB)/8, $libc_getsockopt_trampoline<>(SB) + +TEXT libc_setsockopt_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsockopt(SB) +GLOBL ·libc_setsockopt_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsockopt_trampoline_addr(SB)/8, $libc_setsockopt_trampoline<>(SB) + +TEXT libc_getpeername_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpeername(SB) +GLOBL ·libc_getpeername_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpeername_trampoline_addr(SB)/8, $libc_getpeername_trampoline<>(SB) + +TEXT libc_getsockname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsockname(SB) +GLOBL ·libc_getsockname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsockname_trampoline_addr(SB)/8, $libc_getsockname_trampoline<>(SB) + +TEXT libc_shutdown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_shutdown(SB) +GLOBL ·libc_shutdown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_shutdown_trampoline_addr(SB)/8, $libc_shutdown_trampoline<>(SB) + +TEXT libc_socketpair_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_socketpair(SB) +GLOBL ·libc_socketpair_trampoline_addr(SB), RODATA, $8 +DATA ·libc_socketpair_trampoline_addr(SB)/8, $libc_socketpair_trampoline<>(SB) + +TEXT libc_recvfrom_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvfrom(SB) +GLOBL ·libc_recvfrom_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvfrom_trampoline_addr(SB)/8, $libc_recvfrom_trampoline<>(SB) + +TEXT libc_sendto_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendto(SB) +GLOBL ·libc_sendto_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendto_trampoline_addr(SB)/8, $libc_sendto_trampoline<>(SB) + +TEXT libc_recvmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_recvmsg(SB) +GLOBL ·libc_recvmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_recvmsg_trampoline_addr(SB)/8, $libc_recvmsg_trampoline<>(SB) + +TEXT libc_sendmsg_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sendmsg(SB) +GLOBL ·libc_sendmsg_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sendmsg_trampoline_addr(SB)/8, $libc_sendmsg_trampoline<>(SB) + +TEXT libc_kevent_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kevent(SB) +GLOBL ·libc_kevent_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kevent_trampoline_addr(SB)/8, $libc_kevent_trampoline<>(SB) + +TEXT libc_utimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimes(SB) +GLOBL ·libc_utimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimes_trampoline_addr(SB)/8, $libc_utimes_trampoline<>(SB) + +TEXT libc_futimes_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_futimes(SB) +GLOBL ·libc_futimes_trampoline_addr(SB), RODATA, $8 +DATA ·libc_futimes_trampoline_addr(SB)/8, $libc_futimes_trampoline<>(SB) + +TEXT libc_poll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_poll(SB) +GLOBL ·libc_poll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_poll_trampoline_addr(SB)/8, $libc_poll_trampoline<>(SB) + +TEXT libc_madvise_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_madvise(SB) +GLOBL ·libc_madvise_trampoline_addr(SB), RODATA, $8 +DATA ·libc_madvise_trampoline_addr(SB)/8, $libc_madvise_trampoline<>(SB) + +TEXT libc_mlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlock(SB) +GLOBL ·libc_mlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlock_trampoline_addr(SB)/8, $libc_mlock_trampoline<>(SB) + +TEXT libc_mlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mlockall(SB) +GLOBL ·libc_mlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mlockall_trampoline_addr(SB)/8, $libc_mlockall_trampoline<>(SB) + +TEXT libc_mprotect_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mprotect(SB) +GLOBL ·libc_mprotect_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mprotect_trampoline_addr(SB)/8, $libc_mprotect_trampoline<>(SB) + +TEXT libc_msync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_msync(SB) +GLOBL ·libc_msync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_msync_trampoline_addr(SB)/8, $libc_msync_trampoline<>(SB) + +TEXT libc_munlock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlock(SB) +GLOBL ·libc_munlock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlock_trampoline_addr(SB)/8, $libc_munlock_trampoline<>(SB) + +TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munlockall(SB) +GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) + +TEXT libc_pipe2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pipe2(SB) +GLOBL ·libc_pipe2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pipe2_trampoline_addr(SB)/8, $libc_pipe2_trampoline<>(SB) + +TEXT libc_getdents_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getdents(SB) +GLOBL ·libc_getdents_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getdents_trampoline_addr(SB)/8, $libc_getdents_trampoline<>(SB) + +TEXT libc_getcwd_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getcwd(SB) +GLOBL ·libc_getcwd_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getcwd_trampoline_addr(SB)/8, $libc_getcwd_trampoline<>(SB) + +TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ioctl(SB) +GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ppoll(SB) +GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ppoll_trampoline_addr(SB)/8, $libc_ppoll_trampoline<>(SB) + +TEXT libc_access_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_access(SB) +GLOBL ·libc_access_trampoline_addr(SB), RODATA, $8 +DATA ·libc_access_trampoline_addr(SB)/8, $libc_access_trampoline<>(SB) + +TEXT libc_adjtime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_adjtime(SB) +GLOBL ·libc_adjtime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_adjtime_trampoline_addr(SB)/8, $libc_adjtime_trampoline<>(SB) + +TEXT libc_chdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chdir(SB) +GLOBL ·libc_chdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chdir_trampoline_addr(SB)/8, $libc_chdir_trampoline<>(SB) + +TEXT libc_chflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chflags(SB) +GLOBL ·libc_chflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chflags_trampoline_addr(SB)/8, $libc_chflags_trampoline<>(SB) + +TEXT libc_chmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chmod(SB) +GLOBL ·libc_chmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chmod_trampoline_addr(SB)/8, $libc_chmod_trampoline<>(SB) + +TEXT libc_chown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chown(SB) +GLOBL ·libc_chown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chown_trampoline_addr(SB)/8, $libc_chown_trampoline<>(SB) + +TEXT libc_chroot_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_chroot(SB) +GLOBL ·libc_chroot_trampoline_addr(SB), RODATA, $8 +DATA ·libc_chroot_trampoline_addr(SB)/8, $libc_chroot_trampoline<>(SB) + +TEXT libc_clock_gettime_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_clock_gettime(SB) +GLOBL ·libc_clock_gettime_trampoline_addr(SB), RODATA, $8 +DATA ·libc_clock_gettime_trampoline_addr(SB)/8, $libc_clock_gettime_trampoline<>(SB) + +TEXT libc_close_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_close(SB) +GLOBL ·libc_close_trampoline_addr(SB), RODATA, $8 +DATA ·libc_close_trampoline_addr(SB)/8, $libc_close_trampoline<>(SB) + +TEXT libc_dup_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup(SB) +GLOBL ·libc_dup_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup_trampoline_addr(SB)/8, $libc_dup_trampoline<>(SB) + +TEXT libc_dup2_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup2(SB) +GLOBL ·libc_dup2_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup2_trampoline_addr(SB)/8, $libc_dup2_trampoline<>(SB) + +TEXT libc_dup3_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_dup3(SB) +GLOBL ·libc_dup3_trampoline_addr(SB), RODATA, $8 +DATA ·libc_dup3_trampoline_addr(SB)/8, $libc_dup3_trampoline<>(SB) + +TEXT libc_exit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_exit(SB) +GLOBL ·libc_exit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_exit_trampoline_addr(SB)/8, $libc_exit_trampoline<>(SB) + +TEXT libc_faccessat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_faccessat(SB) +GLOBL ·libc_faccessat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_faccessat_trampoline_addr(SB)/8, $libc_faccessat_trampoline<>(SB) + +TEXT libc_fchdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchdir(SB) +GLOBL ·libc_fchdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchdir_trampoline_addr(SB)/8, $libc_fchdir_trampoline<>(SB) + +TEXT libc_fchflags_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchflags(SB) +GLOBL ·libc_fchflags_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchflags_trampoline_addr(SB)/8, $libc_fchflags_trampoline<>(SB) + +TEXT libc_fchmod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmod(SB) +GLOBL ·libc_fchmod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmod_trampoline_addr(SB)/8, $libc_fchmod_trampoline<>(SB) + +TEXT libc_fchmodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchmodat(SB) +GLOBL ·libc_fchmodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchmodat_trampoline_addr(SB)/8, $libc_fchmodat_trampoline<>(SB) + +TEXT libc_fchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchown(SB) +GLOBL ·libc_fchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchown_trampoline_addr(SB)/8, $libc_fchown_trampoline<>(SB) + +TEXT libc_fchownat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fchownat(SB) +GLOBL ·libc_fchownat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fchownat_trampoline_addr(SB)/8, $libc_fchownat_trampoline<>(SB) + +TEXT libc_flock_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_flock(SB) +GLOBL ·libc_flock_trampoline_addr(SB), RODATA, $8 +DATA ·libc_flock_trampoline_addr(SB)/8, $libc_flock_trampoline<>(SB) + +TEXT libc_fpathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fpathconf(SB) +GLOBL ·libc_fpathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fpathconf_trampoline_addr(SB)/8, $libc_fpathconf_trampoline<>(SB) + +TEXT libc_fstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstat(SB) +GLOBL ·libc_fstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstat_trampoline_addr(SB)/8, $libc_fstat_trampoline<>(SB) + +TEXT libc_fstatat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatat(SB) +GLOBL ·libc_fstatat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatat_trampoline_addr(SB)/8, $libc_fstatat_trampoline<>(SB) + +TEXT libc_fstatfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fstatfs(SB) +GLOBL ·libc_fstatfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fstatfs_trampoline_addr(SB)/8, $libc_fstatfs_trampoline<>(SB) + +TEXT libc_fsync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fsync(SB) +GLOBL ·libc_fsync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fsync_trampoline_addr(SB)/8, $libc_fsync_trampoline<>(SB) + +TEXT libc_ftruncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_ftruncate(SB) +GLOBL ·libc_ftruncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_ftruncate_trampoline_addr(SB)/8, $libc_ftruncate_trampoline<>(SB) + +TEXT libc_getegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getegid(SB) +GLOBL ·libc_getegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getegid_trampoline_addr(SB)/8, $libc_getegid_trampoline<>(SB) + +TEXT libc_geteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_geteuid(SB) +GLOBL ·libc_geteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_geteuid_trampoline_addr(SB)/8, $libc_geteuid_trampoline<>(SB) + +TEXT libc_getgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getgid(SB) +GLOBL ·libc_getgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getgid_trampoline_addr(SB)/8, $libc_getgid_trampoline<>(SB) + +TEXT libc_getpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgid(SB) +GLOBL ·libc_getpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgid_trampoline_addr(SB)/8, $libc_getpgid_trampoline<>(SB) + +TEXT libc_getpgrp_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpgrp(SB) +GLOBL ·libc_getpgrp_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpgrp_trampoline_addr(SB)/8, $libc_getpgrp_trampoline<>(SB) + +TEXT libc_getpid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpid(SB) +GLOBL ·libc_getpid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpid_trampoline_addr(SB)/8, $libc_getpid_trampoline<>(SB) + +TEXT libc_getppid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getppid(SB) +GLOBL ·libc_getppid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getppid_trampoline_addr(SB)/8, $libc_getppid_trampoline<>(SB) + +TEXT libc_getpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getpriority(SB) +GLOBL ·libc_getpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getpriority_trampoline_addr(SB)/8, $libc_getpriority_trampoline<>(SB) + +TEXT libc_getrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrlimit(SB) +GLOBL ·libc_getrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrlimit_trampoline_addr(SB)/8, $libc_getrlimit_trampoline<>(SB) + +TEXT libc_getrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrtable(SB) +GLOBL ·libc_getrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrtable_trampoline_addr(SB)/8, $libc_getrtable_trampoline<>(SB) + +TEXT libc_getrusage_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getrusage(SB) +GLOBL ·libc_getrusage_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getrusage_trampoline_addr(SB)/8, $libc_getrusage_trampoline<>(SB) + +TEXT libc_getsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getsid(SB) +GLOBL ·libc_getsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getsid_trampoline_addr(SB)/8, $libc_getsid_trampoline<>(SB) + +TEXT libc_gettimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_gettimeofday(SB) +GLOBL ·libc_gettimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_gettimeofday_trampoline_addr(SB)/8, $libc_gettimeofday_trampoline<>(SB) + +TEXT libc_getuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getuid(SB) +GLOBL ·libc_getuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getuid_trampoline_addr(SB)/8, $libc_getuid_trampoline<>(SB) + +TEXT libc_issetugid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_issetugid(SB) +GLOBL ·libc_issetugid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_issetugid_trampoline_addr(SB)/8, $libc_issetugid_trampoline<>(SB) + +TEXT libc_kill_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kill(SB) +GLOBL ·libc_kill_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kill_trampoline_addr(SB)/8, $libc_kill_trampoline<>(SB) + +TEXT libc_kqueue_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_kqueue(SB) +GLOBL ·libc_kqueue_trampoline_addr(SB), RODATA, $8 +DATA ·libc_kqueue_trampoline_addr(SB)/8, $libc_kqueue_trampoline<>(SB) + +TEXT libc_lchown_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lchown(SB) +GLOBL ·libc_lchown_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lchown_trampoline_addr(SB)/8, $libc_lchown_trampoline<>(SB) + +TEXT libc_link_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_link(SB) +GLOBL ·libc_link_trampoline_addr(SB), RODATA, $8 +DATA ·libc_link_trampoline_addr(SB)/8, $libc_link_trampoline<>(SB) + +TEXT libc_linkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_linkat(SB) +GLOBL ·libc_linkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_linkat_trampoline_addr(SB)/8, $libc_linkat_trampoline<>(SB) + +TEXT libc_listen_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_listen(SB) +GLOBL ·libc_listen_trampoline_addr(SB), RODATA, $8 +DATA ·libc_listen_trampoline_addr(SB)/8, $libc_listen_trampoline<>(SB) + +TEXT libc_lstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lstat(SB) +GLOBL ·libc_lstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lstat_trampoline_addr(SB)/8, $libc_lstat_trampoline<>(SB) + +TEXT libc_mkdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdir(SB) +GLOBL ·libc_mkdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdir_trampoline_addr(SB)/8, $libc_mkdir_trampoline<>(SB) + +TEXT libc_mkdirat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkdirat(SB) +GLOBL ·libc_mkdirat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkdirat_trampoline_addr(SB)/8, $libc_mkdirat_trampoline<>(SB) + +TEXT libc_mkfifo_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifo(SB) +GLOBL ·libc_mkfifo_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifo_trampoline_addr(SB)/8, $libc_mkfifo_trampoline<>(SB) + +TEXT libc_mkfifoat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mkfifoat(SB) +GLOBL ·libc_mkfifoat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mkfifoat_trampoline_addr(SB)/8, $libc_mkfifoat_trampoline<>(SB) + +TEXT libc_mknod_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknod(SB) +GLOBL ·libc_mknod_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknod_trampoline_addr(SB)/8, $libc_mknod_trampoline<>(SB) + +TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mknodat(SB) +GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) + +TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_nanosleep(SB) +GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 +DATA ·libc_nanosleep_trampoline_addr(SB)/8, $libc_nanosleep_trampoline<>(SB) + +TEXT libc_open_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_open(SB) +GLOBL ·libc_open_trampoline_addr(SB), RODATA, $8 +DATA ·libc_open_trampoline_addr(SB)/8, $libc_open_trampoline<>(SB) + +TEXT libc_openat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_openat(SB) +GLOBL ·libc_openat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_openat_trampoline_addr(SB)/8, $libc_openat_trampoline<>(SB) + +TEXT libc_pathconf_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pathconf(SB) +GLOBL ·libc_pathconf_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pathconf_trampoline_addr(SB)/8, $libc_pathconf_trampoline<>(SB) + +TEXT libc_pread_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pread(SB) +GLOBL ·libc_pread_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pread_trampoline_addr(SB)/8, $libc_pread_trampoline<>(SB) + +TEXT libc_pwrite_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pwrite(SB) +GLOBL ·libc_pwrite_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pwrite_trampoline_addr(SB)/8, $libc_pwrite_trampoline<>(SB) + +TEXT libc_read_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_read(SB) +GLOBL ·libc_read_trampoline_addr(SB), RODATA, $8 +DATA ·libc_read_trampoline_addr(SB)/8, $libc_read_trampoline<>(SB) + +TEXT libc_readlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlink(SB) +GLOBL ·libc_readlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlink_trampoline_addr(SB)/8, $libc_readlink_trampoline<>(SB) + +TEXT libc_readlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_readlinkat(SB) +GLOBL ·libc_readlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_readlinkat_trampoline_addr(SB)/8, $libc_readlinkat_trampoline<>(SB) + +TEXT libc_rename_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rename(SB) +GLOBL ·libc_rename_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rename_trampoline_addr(SB)/8, $libc_rename_trampoline<>(SB) + +TEXT libc_renameat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameat(SB) +GLOBL ·libc_renameat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameat_trampoline_addr(SB)/8, $libc_renameat_trampoline<>(SB) + +TEXT libc_revoke_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_revoke(SB) +GLOBL ·libc_revoke_trampoline_addr(SB), RODATA, $8 +DATA ·libc_revoke_trampoline_addr(SB)/8, $libc_revoke_trampoline<>(SB) + +TEXT libc_rmdir_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_rmdir(SB) +GLOBL ·libc_rmdir_trampoline_addr(SB), RODATA, $8 +DATA ·libc_rmdir_trampoline_addr(SB)/8, $libc_rmdir_trampoline<>(SB) + +TEXT libc_lseek_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_lseek(SB) +GLOBL ·libc_lseek_trampoline_addr(SB), RODATA, $8 +DATA ·libc_lseek_trampoline_addr(SB)/8, $libc_lseek_trampoline<>(SB) + +TEXT libc_select_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_select(SB) +GLOBL ·libc_select_trampoline_addr(SB), RODATA, $8 +DATA ·libc_select_trampoline_addr(SB)/8, $libc_select_trampoline<>(SB) + +TEXT libc_setegid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setegid(SB) +GLOBL ·libc_setegid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setegid_trampoline_addr(SB)/8, $libc_setegid_trampoline<>(SB) + +TEXT libc_seteuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_seteuid(SB) +GLOBL ·libc_seteuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_seteuid_trampoline_addr(SB)/8, $libc_seteuid_trampoline<>(SB) + +TEXT libc_setgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setgid(SB) +GLOBL ·libc_setgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setgid_trampoline_addr(SB)/8, $libc_setgid_trampoline<>(SB) + +TEXT libc_setlogin_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setlogin(SB) +GLOBL ·libc_setlogin_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setlogin_trampoline_addr(SB)/8, $libc_setlogin_trampoline<>(SB) + +TEXT libc_setpgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpgid(SB) +GLOBL ·libc_setpgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpgid_trampoline_addr(SB)/8, $libc_setpgid_trampoline<>(SB) + +TEXT libc_setpriority_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setpriority(SB) +GLOBL ·libc_setpriority_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setpriority_trampoline_addr(SB)/8, $libc_setpriority_trampoline<>(SB) + +TEXT libc_setregid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setregid(SB) +GLOBL ·libc_setregid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setregid_trampoline_addr(SB)/8, $libc_setregid_trampoline<>(SB) + +TEXT libc_setreuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setreuid(SB) +GLOBL ·libc_setreuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setreuid_trampoline_addr(SB)/8, $libc_setreuid_trampoline<>(SB) + +TEXT libc_setresgid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresgid(SB) +GLOBL ·libc_setresgid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresgid_trampoline_addr(SB)/8, $libc_setresgid_trampoline<>(SB) + +TEXT libc_setresuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setresuid(SB) +GLOBL ·libc_setresuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setresuid_trampoline_addr(SB)/8, $libc_setresuid_trampoline<>(SB) + +TEXT libc_setrlimit_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrlimit(SB) +GLOBL ·libc_setrlimit_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrlimit_trampoline_addr(SB)/8, $libc_setrlimit_trampoline<>(SB) + +TEXT libc_setrtable_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setrtable(SB) +GLOBL ·libc_setrtable_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setrtable_trampoline_addr(SB)/8, $libc_setrtable_trampoline<>(SB) + +TEXT libc_setsid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setsid(SB) +GLOBL ·libc_setsid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setsid_trampoline_addr(SB)/8, $libc_setsid_trampoline<>(SB) + +TEXT libc_settimeofday_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_settimeofday(SB) +GLOBL ·libc_settimeofday_trampoline_addr(SB), RODATA, $8 +DATA ·libc_settimeofday_trampoline_addr(SB)/8, $libc_settimeofday_trampoline<>(SB) + +TEXT libc_setuid_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_setuid(SB) +GLOBL ·libc_setuid_trampoline_addr(SB), RODATA, $8 +DATA ·libc_setuid_trampoline_addr(SB)/8, $libc_setuid_trampoline<>(SB) + +TEXT libc_stat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_stat(SB) +GLOBL ·libc_stat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_stat_trampoline_addr(SB)/8, $libc_stat_trampoline<>(SB) + +TEXT libc_statfs_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_statfs(SB) +GLOBL ·libc_statfs_trampoline_addr(SB), RODATA, $8 +DATA ·libc_statfs_trampoline_addr(SB)/8, $libc_statfs_trampoline<>(SB) + +TEXT libc_symlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlink(SB) +GLOBL ·libc_symlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlink_trampoline_addr(SB)/8, $libc_symlink_trampoline<>(SB) + +TEXT libc_symlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_symlinkat(SB) +GLOBL ·libc_symlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_symlinkat_trampoline_addr(SB)/8, $libc_symlinkat_trampoline<>(SB) + +TEXT libc_sync_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sync(SB) +GLOBL ·libc_sync_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sync_trampoline_addr(SB)/8, $libc_sync_trampoline<>(SB) + +TEXT libc_truncate_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_truncate(SB) +GLOBL ·libc_truncate_trampoline_addr(SB), RODATA, $8 +DATA ·libc_truncate_trampoline_addr(SB)/8, $libc_truncate_trampoline<>(SB) + +TEXT libc_umask_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_umask(SB) +GLOBL ·libc_umask_trampoline_addr(SB), RODATA, $8 +DATA ·libc_umask_trampoline_addr(SB)/8, $libc_umask_trampoline<>(SB) + +TEXT libc_unlink_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlink(SB) +GLOBL ·libc_unlink_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlink_trampoline_addr(SB)/8, $libc_unlink_trampoline<>(SB) + +TEXT libc_unlinkat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unlinkat(SB) +GLOBL ·libc_unlinkat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unlinkat_trampoline_addr(SB)/8, $libc_unlinkat_trampoline<>(SB) + +TEXT libc_unmount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unmount(SB) +GLOBL ·libc_unmount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unmount_trampoline_addr(SB)/8, $libc_unmount_trampoline<>(SB) + +TEXT libc_write_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_write(SB) +GLOBL ·libc_write_trampoline_addr(SB), RODATA, $8 +DATA ·libc_write_trampoline_addr(SB)/8, $libc_write_trampoline<>(SB) + +TEXT libc_mmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mmap(SB) +GLOBL ·libc_mmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mmap_trampoline_addr(SB)/8, $libc_mmap_trampoline<>(SB) + +TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_munmap(SB) +GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 +DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) + +TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_utimensat(SB) +GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go new file mode 100644 index 0000000..78d4a42 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go @@ -0,0 +1,2106 @@ +// go run mksyscall_solaris.go -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build solaris && amd64 +// +build solaris,amd64 + +package unix + +import ( + "syscall" + "unsafe" +) + +//go:cgo_import_dynamic libc_pipe pipe "libc.so" +//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" +//go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so" +//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" +//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" +//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" +//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" +//go:cgo_import_dynamic libc_gethostname gethostname "libc.so" +//go:cgo_import_dynamic libc_utimes utimes "libc.so" +//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" +//go:cgo_import_dynamic libc_futimesat futimesat "libc.so" +//go:cgo_import_dynamic libc_accept accept "libsocket.so" +//go:cgo_import_dynamic libc___xnet_recvmsg __xnet_recvmsg "libsocket.so" +//go:cgo_import_dynamic libc___xnet_sendmsg __xnet_sendmsg "libsocket.so" +//go:cgo_import_dynamic libc_acct acct "libc.so" +//go:cgo_import_dynamic libc___makedev __makedev "libc.so" +//go:cgo_import_dynamic libc___major __major "libc.so" +//go:cgo_import_dynamic libc___minor __minor "libc.so" +//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" +//go:cgo_import_dynamic libc_poll poll "libc.so" +//go:cgo_import_dynamic libc_access access "libc.so" +//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" +//go:cgo_import_dynamic libc_chdir chdir "libc.so" +//go:cgo_import_dynamic libc_chmod chmod "libc.so" +//go:cgo_import_dynamic libc_chown chown "libc.so" +//go:cgo_import_dynamic libc_chroot chroot "libc.so" +//go:cgo_import_dynamic libc_clockgettime clockgettime "libc.so" +//go:cgo_import_dynamic libc_close close "libc.so" +//go:cgo_import_dynamic libc_creat creat "libc.so" +//go:cgo_import_dynamic libc_dup dup "libc.so" +//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" +//go:cgo_import_dynamic libc_exit exit "libc.so" +//go:cgo_import_dynamic libc_faccessat faccessat "libc.so" +//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" +//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" +//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" +//go:cgo_import_dynamic libc_fchown fchown "libc.so" +//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" +//go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so" +//go:cgo_import_dynamic libc_flock flock "libc.so" +//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" +//go:cgo_import_dynamic libc_fstat fstat "libc.so" +//go:cgo_import_dynamic libc_fstatat fstatat "libc.so" +//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so" +//go:cgo_import_dynamic libc_getdents getdents "libc.so" +//go:cgo_import_dynamic libc_getgid getgid "libc.so" +//go:cgo_import_dynamic libc_getpid getpid "libc.so" +//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" +//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" +//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" +//go:cgo_import_dynamic libc_getegid getegid "libc.so" +//go:cgo_import_dynamic libc_getppid getppid "libc.so" +//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" +//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" +//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" +//go:cgo_import_dynamic libc_getsid getsid "libc.so" +//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" +//go:cgo_import_dynamic libc_getuid getuid "libc.so" +//go:cgo_import_dynamic libc_kill kill "libc.so" +//go:cgo_import_dynamic libc_lchown lchown "libc.so" +//go:cgo_import_dynamic libc_link link "libc.so" +//go:cgo_import_dynamic libc___xnet_llisten __xnet_llisten "libsocket.so" +//go:cgo_import_dynamic libc_lstat lstat "libc.so" +//go:cgo_import_dynamic libc_madvise madvise "libc.so" +//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" +//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" +//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" +//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" +//go:cgo_import_dynamic libc_mknod mknod "libc.so" +//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" +//go:cgo_import_dynamic libc_mlock mlock "libc.so" +//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" +//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" +//go:cgo_import_dynamic libc_msync msync "libc.so" +//go:cgo_import_dynamic libc_munlock munlock "libc.so" +//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" +//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" +//go:cgo_import_dynamic libc_open open "libc.so" +//go:cgo_import_dynamic libc_openat openat "libc.so" +//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" +//go:cgo_import_dynamic libc_pause pause "libc.so" +//go:cgo_import_dynamic libc_pread pread "libc.so" +//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" +//go:cgo_import_dynamic libc_read read "libc.so" +//go:cgo_import_dynamic libc_readlink readlink "libc.so" +//go:cgo_import_dynamic libc_rename rename "libc.so" +//go:cgo_import_dynamic libc_renameat renameat "libc.so" +//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" +//go:cgo_import_dynamic libc_lseek lseek "libc.so" +//go:cgo_import_dynamic libc_select select "libc.so" +//go:cgo_import_dynamic libc_setegid setegid "libc.so" +//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" +//go:cgo_import_dynamic libc_setgid setgid "libc.so" +//go:cgo_import_dynamic libc_sethostname sethostname "libc.so" +//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" +//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" +//go:cgo_import_dynamic libc_setregid setregid "libc.so" +//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" +//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" +//go:cgo_import_dynamic libc_setsid setsid "libc.so" +//go:cgo_import_dynamic libc_setuid setuid "libc.so" +//go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so" +//go:cgo_import_dynamic libc_stat stat "libc.so" +//go:cgo_import_dynamic libc_statvfs statvfs "libc.so" +//go:cgo_import_dynamic libc_symlink symlink "libc.so" +//go:cgo_import_dynamic libc_sync sync "libc.so" +//go:cgo_import_dynamic libc_sysconf sysconf "libc.so" +//go:cgo_import_dynamic libc_times times "libc.so" +//go:cgo_import_dynamic libc_truncate truncate "libc.so" +//go:cgo_import_dynamic libc_fsync fsync "libc.so" +//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" +//go:cgo_import_dynamic libc_umask umask "libc.so" +//go:cgo_import_dynamic libc_uname uname "libc.so" +//go:cgo_import_dynamic libc_umount umount "libc.so" +//go:cgo_import_dynamic libc_unlink unlink "libc.so" +//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" +//go:cgo_import_dynamic libc_ustat ustat "libc.so" +//go:cgo_import_dynamic libc_utime utime "libc.so" +//go:cgo_import_dynamic libc___xnet_bind __xnet_bind "libsocket.so" +//go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so" +//go:cgo_import_dynamic libc_mmap mmap "libc.so" +//go:cgo_import_dynamic libc_munmap munmap "libc.so" +//go:cgo_import_dynamic libc_sendfile sendfile "libsendfile.so" +//go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so" +//go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so" +//go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so" +//go:cgo_import_dynamic libc_write write "libc.so" +//go:cgo_import_dynamic libc___xnet_getsockopt __xnet_getsockopt "libsocket.so" +//go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so" +//go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so" +//go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so" +//go:cgo_import_dynamic libc_port_create port_create "libc.so" +//go:cgo_import_dynamic libc_port_associate port_associate "libc.so" +//go:cgo_import_dynamic libc_port_dissociate port_dissociate "libc.so" +//go:cgo_import_dynamic libc_port_get port_get "libc.so" +//go:cgo_import_dynamic libc_port_getn port_getn "libc.so" +//go:cgo_import_dynamic libc_putmsg putmsg "libc.so" +//go:cgo_import_dynamic libc_getmsg getmsg "libc.so" + +//go:linkname procpipe libc_pipe +//go:linkname procpipe2 libc_pipe2 +//go:linkname procgetsockname libc_getsockname +//go:linkname procGetcwd libc_getcwd +//go:linkname procgetgroups libc_getgroups +//go:linkname procsetgroups libc_setgroups +//go:linkname procwait4 libc_wait4 +//go:linkname procgethostname libc_gethostname +//go:linkname procutimes libc_utimes +//go:linkname procutimensat libc_utimensat +//go:linkname procfcntl libc_fcntl +//go:linkname procfutimesat libc_futimesat +//go:linkname procaccept libc_accept +//go:linkname proc__xnet_recvmsg libc___xnet_recvmsg +//go:linkname proc__xnet_sendmsg libc___xnet_sendmsg +//go:linkname procacct libc_acct +//go:linkname proc__makedev libc___makedev +//go:linkname proc__major libc___major +//go:linkname proc__minor libc___minor +//go:linkname procioctl libc_ioctl +//go:linkname procpoll libc_poll +//go:linkname procAccess libc_access +//go:linkname procAdjtime libc_adjtime +//go:linkname procChdir libc_chdir +//go:linkname procChmod libc_chmod +//go:linkname procChown libc_chown +//go:linkname procChroot libc_chroot +//go:linkname procClockGettime libc_clockgettime +//go:linkname procClose libc_close +//go:linkname procCreat libc_creat +//go:linkname procDup libc_dup +//go:linkname procDup2 libc_dup2 +//go:linkname procExit libc_exit +//go:linkname procFaccessat libc_faccessat +//go:linkname procFchdir libc_fchdir +//go:linkname procFchmod libc_fchmod +//go:linkname procFchmodat libc_fchmodat +//go:linkname procFchown libc_fchown +//go:linkname procFchownat libc_fchownat +//go:linkname procFdatasync libc_fdatasync +//go:linkname procFlock libc_flock +//go:linkname procFpathconf libc_fpathconf +//go:linkname procFstat libc_fstat +//go:linkname procFstatat libc_fstatat +//go:linkname procFstatvfs libc_fstatvfs +//go:linkname procGetdents libc_getdents +//go:linkname procGetgid libc_getgid +//go:linkname procGetpid libc_getpid +//go:linkname procGetpgid libc_getpgid +//go:linkname procGetpgrp libc_getpgrp +//go:linkname procGeteuid libc_geteuid +//go:linkname procGetegid libc_getegid +//go:linkname procGetppid libc_getppid +//go:linkname procGetpriority libc_getpriority +//go:linkname procGetrlimit libc_getrlimit +//go:linkname procGetrusage libc_getrusage +//go:linkname procGetsid libc_getsid +//go:linkname procGettimeofday libc_gettimeofday +//go:linkname procGetuid libc_getuid +//go:linkname procKill libc_kill +//go:linkname procLchown libc_lchown +//go:linkname procLink libc_link +//go:linkname proc__xnet_llisten libc___xnet_llisten +//go:linkname procLstat libc_lstat +//go:linkname procMadvise libc_madvise +//go:linkname procMkdir libc_mkdir +//go:linkname procMkdirat libc_mkdirat +//go:linkname procMkfifo libc_mkfifo +//go:linkname procMkfifoat libc_mkfifoat +//go:linkname procMknod libc_mknod +//go:linkname procMknodat libc_mknodat +//go:linkname procMlock libc_mlock +//go:linkname procMlockall libc_mlockall +//go:linkname procMprotect libc_mprotect +//go:linkname procMsync libc_msync +//go:linkname procMunlock libc_munlock +//go:linkname procMunlockall libc_munlockall +//go:linkname procNanosleep libc_nanosleep +//go:linkname procOpen libc_open +//go:linkname procOpenat libc_openat +//go:linkname procPathconf libc_pathconf +//go:linkname procPause libc_pause +//go:linkname procpread libc_pread +//go:linkname procpwrite libc_pwrite +//go:linkname procread libc_read +//go:linkname procReadlink libc_readlink +//go:linkname procRename libc_rename +//go:linkname procRenameat libc_renameat +//go:linkname procRmdir libc_rmdir +//go:linkname proclseek libc_lseek +//go:linkname procSelect libc_select +//go:linkname procSetegid libc_setegid +//go:linkname procSeteuid libc_seteuid +//go:linkname procSetgid libc_setgid +//go:linkname procSethostname libc_sethostname +//go:linkname procSetpgid libc_setpgid +//go:linkname procSetpriority libc_setpriority +//go:linkname procSetregid libc_setregid +//go:linkname procSetreuid libc_setreuid +//go:linkname procSetrlimit libc_setrlimit +//go:linkname procSetsid libc_setsid +//go:linkname procSetuid libc_setuid +//go:linkname procshutdown libc_shutdown +//go:linkname procStat libc_stat +//go:linkname procStatvfs libc_statvfs +//go:linkname procSymlink libc_symlink +//go:linkname procSync libc_sync +//go:linkname procSysconf libc_sysconf +//go:linkname procTimes libc_times +//go:linkname procTruncate libc_truncate +//go:linkname procFsync libc_fsync +//go:linkname procFtruncate libc_ftruncate +//go:linkname procUmask libc_umask +//go:linkname procUname libc_uname +//go:linkname procumount libc_umount +//go:linkname procUnlink libc_unlink +//go:linkname procUnlinkat libc_unlinkat +//go:linkname procUstat libc_ustat +//go:linkname procUtime libc_utime +//go:linkname proc__xnet_bind libc___xnet_bind +//go:linkname proc__xnet_connect libc___xnet_connect +//go:linkname procmmap libc_mmap +//go:linkname procmunmap libc_munmap +//go:linkname procsendfile libc_sendfile +//go:linkname proc__xnet_sendto libc___xnet_sendto +//go:linkname proc__xnet_socket libc___xnet_socket +//go:linkname proc__xnet_socketpair libc___xnet_socketpair +//go:linkname procwrite libc_write +//go:linkname proc__xnet_getsockopt libc___xnet_getsockopt +//go:linkname procgetpeername libc_getpeername +//go:linkname procsetsockopt libc_setsockopt +//go:linkname procrecvfrom libc_recvfrom +//go:linkname procport_create libc_port_create +//go:linkname procport_associate libc_port_associate +//go:linkname procport_dissociate libc_port_dissociate +//go:linkname procport_get libc_port_get +//go:linkname procport_getn libc_port_getn +//go:linkname procputmsg libc_putmsg +//go:linkname procgetmsg libc_getmsg + +var ( + procpipe, + procpipe2, + procgetsockname, + procGetcwd, + procgetgroups, + procsetgroups, + procwait4, + procgethostname, + procutimes, + procutimensat, + procfcntl, + procfutimesat, + procaccept, + proc__xnet_recvmsg, + proc__xnet_sendmsg, + procacct, + proc__makedev, + proc__major, + proc__minor, + procioctl, + procpoll, + procAccess, + procAdjtime, + procChdir, + procChmod, + procChown, + procChroot, + procClockGettime, + procClose, + procCreat, + procDup, + procDup2, + procExit, + procFaccessat, + procFchdir, + procFchmod, + procFchmodat, + procFchown, + procFchownat, + procFdatasync, + procFlock, + procFpathconf, + procFstat, + procFstatat, + procFstatvfs, + procGetdents, + procGetgid, + procGetpid, + procGetpgid, + procGetpgrp, + procGeteuid, + procGetegid, + procGetppid, + procGetpriority, + procGetrlimit, + procGetrusage, + procGetsid, + procGettimeofday, + procGetuid, + procKill, + procLchown, + procLink, + proc__xnet_llisten, + procLstat, + procMadvise, + procMkdir, + procMkdirat, + procMkfifo, + procMkfifoat, + procMknod, + procMknodat, + procMlock, + procMlockall, + procMprotect, + procMsync, + procMunlock, + procMunlockall, + procNanosleep, + procOpen, + procOpenat, + procPathconf, + procPause, + procpread, + procpwrite, + procread, + procReadlink, + procRename, + procRenameat, + procRmdir, + proclseek, + procSelect, + procSetegid, + procSeteuid, + procSetgid, + procSethostname, + procSetpgid, + procSetpriority, + procSetregid, + procSetreuid, + procSetrlimit, + procSetsid, + procSetuid, + procshutdown, + procStat, + procStatvfs, + procSymlink, + procSync, + procSysconf, + procTimes, + procTruncate, + procFsync, + procFtruncate, + procUmask, + procUname, + procumount, + procUnlink, + procUnlinkat, + procUstat, + procUtime, + proc__xnet_bind, + proc__xnet_connect, + procmmap, + procmunmap, + procsendfile, + proc__xnet_sendto, + proc__xnet_socket, + proc__xnet_socketpair, + procwrite, + proc__xnet_getsockopt, + procgetpeername, + procsetsockopt, + procrecvfrom, + procport_create, + procport_associate, + procport_dissociate, + procport_get, + procport_getn, + procputmsg, + procgetmsg syscallFunc +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe(p *[2]_C_int) (n int, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe2(p *[2]_C_int, flags int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe2)), 2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getcwd(buf []byte) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(ngid int, gid *_Gid_t) (n int, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(ngid int, gid *_Gid_t) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(statusp)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) + wpid = int32(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func gethostname(buf []byte) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, times *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0) + val = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_recvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func acct(path *byte) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func __makedev(version int, major uint, minor uint) (val uint64) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__makedev)), 3, uintptr(version), uintptr(major), uintptr(minor), 0, 0, 0) + val = uint64(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func __major(version int, dev uint64) (val uint) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__major)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0) + val = uint(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func __minor(version int, dev uint64) (val uint) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__minor)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0) + val = uint(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctlRet(fd int, req uint, arg uintptr) (ret int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0) + ret = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpoll)), 3, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ClockGettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClockGettime)), 2, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Close(fd int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Creat(path string, mode uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(fd int) (nfd int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0) + nfd = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(oldfd int, newfd int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFaccessat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fdatasync(fd int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Flock(fd int, how int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fpathconf(fd int, name int) (val int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0) + val = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstat(fd int, stat *Stat_t) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0) + pgid = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgrp() (pgid int, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0) + pgid = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (euid int) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0) + euid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (ppid int) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0) + ppid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrusage(who int, rusage *Rusage) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetsid)), 1, uintptr(pid), 0, 0, 0, 0, 0) + sid = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gettimeofday(tv *Timeval) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, signum syscall.Signal) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, backlog int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_llisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lstat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Madvise(b []byte, advice int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdirat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifoat(dirfd int, path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlock(b []byte) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mlockall(flags int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMsync)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(flags), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlock(b []byte) (err error) { + var _p0 *byte + if len(b) > 0 { + _p0 = &b[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Munlockall() (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Nanosleep(time *Timespec, leftover *Timespec) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) + fd = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pathconf(path string, name int) (val int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0) + val = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pause() (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + if len(buf) > 0 { + _p1 = &buf[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(oldpath) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(newpath) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0) + newoffset = int64(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setegid(egid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seteuid(euid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(gid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sethostname(p []byte) (err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(which int, lim *Rlimit) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(s int, how int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Stat(path string, stat *Stat_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Statvfs(path string, vfsstat *Statvfs_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStatvfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sysconf(which int) (n int64, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSysconf)), 1, uintptr(which), 0, 0, 0, 0, 0) + n = int64(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Times(tms *Tms) (ticks uintptr, err error) { + r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0) + ticks = uintptr(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(mask int) (oldmask int) { + r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Uname(buf *Utsname) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unmount(target string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(target) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlinkat(dirfd int, path string, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ustat(dev int, ubuf *Ustat_t) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, buf *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsendfile)), 4, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) + written = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 *byte + if len(buf) > 0 { + _p0 = &buf[0] + } + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0) + fd = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 *byte + if len(p) > 0 { + _p0 = &p[0] + } + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func port_create() (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_create)), 0, 0, 0, 0, 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func port_associate(port int, source int, object uintptr, events int, user *byte) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_associate)), 5, uintptr(port), uintptr(source), uintptr(object), uintptr(events), uintptr(unsafe.Pointer(user)), 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func port_dissociate(port int, source int, object uintptr) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_dissociate)), 3, uintptr(port), uintptr(source), uintptr(object), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func port_get(port int, pe *portEvent, timeout *Timespec) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_get)), 3, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(unsafe.Pointer(timeout)), 0, 0, 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func port_getn(port int, pe *portEvent, max uint32, nget *uint32, timeout *Timespec) (n int, err error) { + r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procport_getn)), 5, uintptr(port), uintptr(unsafe.Pointer(pe)), uintptr(max), uintptr(unsafe.Pointer(nget)), uintptr(unsafe.Pointer(timeout)), 0) + n = int(r0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0) + if e1 != 0 { + err = e1 + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) { + _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(unsafe.Pointer(flags)), 0, 0) + if e1 != 0 { + err = e1 + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go new file mode 100644 index 0000000..f207945 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go @@ -0,0 +1,1255 @@ +// go run mksyscall.go -tags zos,s390x syscall_zos_s390x.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build zos && s390x +// +build zos,s390x + +package unix + +import ( + "unsafe" +) + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntl(fd int, cmd int, arg int) (val int, err error) { + r0, _, e1 := syscall_syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) + val = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func read(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func readlen(fd int, buf *byte, nbuf int) (n int, err error) { + r0, _, e1 := syscall_syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func write(fd int, p []byte) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { + r0, _, e1 := syscall_syscall(SYS___ACCEPT_A, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(SYS___BIND_A, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { + _, _, e1 := syscall_syscall(SYS___CONNECT_A, uintptr(s), uintptr(addr), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getgroups(n int, list *_Gid_t) (nn int, err error) { + r0, _, e1 := syscall_rawsyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + nn = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setgroups(n int, list *_Gid_t) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { + _, _, e1 := syscall_syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { + _, _, e1 := syscall_syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socket(domain int, typ int, proto int) (fd int, err error) { + r0, _, e1 := syscall_rawsyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { + _, _, e1 := syscall_rawsyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawsyscall(SYS___GETPEERNAME_A, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { + _, _, e1 := syscall_rawsyscall(SYS___GETSOCKNAME_A, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(SYS___RECVFROM_A, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall6(SYS___SENDTO_A, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(SYS___RECVMSG_A, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(SYS___SENDMSG_A, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { + r0, _, e1 := syscall_syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) + ret = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func munmap(addr uintptr, length uintptr) (err error) { + _, _, e1 := syscall_syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func ioctl(fd int, req uint, arg uintptr) (err error) { + _, _, e1 := syscall_syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Access(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___ACCESS_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___CHDIR_A, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___CHOWN_A, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chmod(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___CHMOD_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Creat(path string, mode uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(SYS___CREAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup(oldfd int) (fd int, err error) { + r0, _, e1 := syscall_syscall(SYS_DUP, uintptr(oldfd), 0, 0) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Dup2(oldfd int, newfd int) (err error) { + _, _, e1 := syscall_syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Errno2() (er2 int) { + uer2, _, _ := syscall_syscall(SYS___ERRNO2, 0, 0, 0) + er2 = int(uer2) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Err2ad() (eadd *int) { + ueadd, _, _ := syscall_syscall(SYS___ERR2AD, 0, 0, 0) + eadd = (*int)(unsafe.Pointer(ueadd)) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Exit(code int) { + syscall_syscall(SYS_EXIT, uintptr(code), 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchdir(fd int) (err error) { + _, _, e1 := syscall_syscall(SYS_FCHDIR, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchmod(fd int, mode uint32) (err error) { + _, _, e1 := syscall_syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fchown(fd int, uid int, gid int) (err error) { + _, _, e1 := syscall_syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func FcntlInt(fd uintptr, cmd int, arg int) (retval int, err error) { + r0, _, e1 := syscall_syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) + retval = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fstat(fd int, stat *Stat_LE_t) (err error) { + _, _, e1 := syscall_syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fstatvfs(fd int, stat *Statvfs_t) (err error) { + _, _, e1 := syscall_syscall(SYS_FSTATVFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Fsync(fd int) (err error) { + _, _, e1 := syscall_syscall(SYS_FSYNC, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Ftruncate(fd int, length int64) (err error) { + _, _, e1 := syscall_syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpagesize() (pgsize int) { + r0, _, _ := syscall_syscall(SYS_GETPAGESIZE, 0, 0, 0) + pgsize = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mprotect(b []byte, prot int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Msync(b []byte, flags int) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Poll(fds []PollFd, timeout int) (n int, err error) { + var _p0 unsafe.Pointer + if len(fds) > 0 { + _p0 = unsafe.Pointer(&fds[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(SYS_POLL, uintptr(_p0), uintptr(len(fds)), uintptr(timeout)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Times(tms *Tms) (ticks uintptr, err error) { + r0, _, e1 := syscall_syscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) + ticks = uintptr(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func W_Getmntent(buff *byte, size int) (lastsys int, err error) { + r0, _, e1 := syscall_syscall(SYS_W_GETMNTENT, uintptr(unsafe.Pointer(buff)), uintptr(size), 0) + lastsys = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func W_Getmntent_A(buff *byte, size int) (lastsys int, err error) { + r0, _, e1 := syscall_syscall(SYS___W_GETMNTENT_A, uintptr(unsafe.Pointer(buff)), uintptr(size), 0) + lastsys = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func mount_LE(path string, filesystem string, fstype string, mtm uint32, parmlen int32, parm string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(filesystem) + if err != nil { + return + } + var _p2 *byte + _p2, err = BytePtrFromString(fstype) + if err != nil { + return + } + var _p3 *byte + _p3, err = BytePtrFromString(parm) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(SYS___MOUNT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(mtm), uintptr(parmlen), uintptr(unsafe.Pointer(_p3))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unmount(filesystem string, mtm int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(filesystem) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___UMOUNT_A, uintptr(unsafe.Pointer(_p0)), uintptr(mtm), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Chroot(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___CHROOT_A, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Uname(buf *Utsname) (err error) { + _, _, e1 := syscall_rawsyscall(SYS___UNAME_A, uintptr(unsafe.Pointer(buf)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Gethostname(buf []byte) (err error) { + var _p0 unsafe.Pointer + if len(buf) > 0 { + _p0 = unsafe.Pointer(&buf[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall(SYS___GETHOSTNAME_A, uintptr(_p0), uintptr(len(buf)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getegid() (egid int) { + r0, _, _ := syscall_rawsyscall(SYS_GETEGID, 0, 0, 0) + egid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Geteuid() (uid int) { + r0, _, _ := syscall_rawsyscall(SYS_GETEUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getgid() (gid int) { + r0, _, _ := syscall_rawsyscall(SYS_GETGID, 0, 0, 0) + gid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpid() (pid int) { + r0, _, _ := syscall_rawsyscall(SYS_GETPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpgid(pid int) (pgid int, err error) { + r0, _, e1 := syscall_rawsyscall(SYS_GETPGID, uintptr(pid), 0, 0) + pgid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getppid() (pid int) { + r0, _, _ := syscall_rawsyscall(SYS_GETPPID, 0, 0, 0) + pid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getpriority(which int, who int) (prio int, err error) { + r0, _, e1 := syscall_syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) + prio = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getrlimit(resource int, rlim *Rlimit) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func getrusage(who int, rusage *rusage_zos) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getsid(pid int) (sid int, err error) { + r0, _, e1 := syscall_rawsyscall(SYS_GETSID, uintptr(pid), 0, 0) + sid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Getuid() (uid int) { + r0, _, _ := syscall_rawsyscall(SYS_GETUID, 0, 0, 0) + uid = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Kill(pid int, sig Signal) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Lchown(path string, uid int, gid int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___LCHOWN_A, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Link(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___LINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Listen(s int, n int) (err error) { + _, _, e1 := syscall_syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func lstat(path string, stat *Stat_LE_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___LSTAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkdir(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___MKDIR_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mkfifo(path string, mode uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___MKFIFO_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mknod(path string, mode uint32, dev int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___MKNOD_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pread(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Pwrite(fd int, p []byte, offset int64) (n int, err error) { + var _p0 unsafe.Pointer + if len(p) > 0 { + _p0 = unsafe.Pointer(&p[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Readlink(path string, buf []byte) (n int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 unsafe.Pointer + if len(buf) > 0 { + _p1 = unsafe.Pointer(&buf[0]) + } else { + _p1 = unsafe.Pointer(&_zero) + } + r0, _, e1 := syscall_syscall(SYS___READLINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rename(from string, to string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___RENAME_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Rmdir(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___RMDIR_A, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Seek(fd int, offset int64, whence int) (off int64, err error) { + r0, _, e1 := syscall_syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) + off = int64(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpriority(which int, who int, prio int) (err error) { + _, _, e1 := syscall_syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setpgid(pid int, pgid int) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setrlimit(resource int, lim *Rlimit) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(lim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setregid(rgid int, egid int) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setreuid(ruid int, euid int) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setsid() (pid int, err error) { + r0, _, e1 := syscall_rawsyscall(SYS_SETSID, 0, 0, 0) + pid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setuid(uid int) (err error) { + _, _, e1 := syscall_syscall(SYS_SETUID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Setgid(uid int) (err error) { + _, _, e1 := syscall_syscall(SYS_SETGID, uintptr(uid), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Shutdown(fd int, how int) (err error) { + _, _, e1 := syscall_syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func stat(path string, statLE *Stat_LE_t) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___STAT_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(statLE)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Symlink(path string, link string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(link) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___SYMLINK_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Sync() { + syscall_syscall(SYS_SYNC, 0, 0, 0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Truncate(path string, length int64) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___TRUNCATE_A, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tcgetattr(fildes int, termptr *Termios) (err error) { + _, _, e1 := syscall_syscall(SYS_TCGETATTR, uintptr(fildes), uintptr(unsafe.Pointer(termptr)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Tcsetattr(fildes int, when int, termptr *Termios) (err error) { + _, _, e1 := syscall_syscall(SYS_TCSETATTR, uintptr(fildes), uintptr(when), uintptr(unsafe.Pointer(termptr))) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Umask(mask int) (oldmask int) { + r0, _, _ := syscall_syscall(SYS_UMASK, uintptr(mask), 0, 0) + oldmask = int(r0) + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Unlink(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___UNLINK_A, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Utime(path string, utim *Utimbuf) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___UTIME_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(utim)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func open(path string, mode int, perm uint32) (fd int, err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + r0, _, e1 := syscall_syscall(SYS___OPEN_A, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) + fd = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func remove(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS_REMOVE, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func waitpid(pid int, wstatus *_C_int, options int) (wpid int, err error) { + r0, _, e1 := syscall_syscall(SYS_WAITPID, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options)) + wpid = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func gettimeofday(tv *timeval_zos) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pipe(p *[2]_C_int) (err error) { + _, _, e1 := syscall_rawsyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func utimes(path string, timeval *[2]Timeval) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(SYS___UTIMES_A, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Select(nmsgsfds int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (ret int, err error) { + r0, _, e1 := syscall_syscall6(SYS_SELECT, uintptr(nmsgsfds), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) + ret = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go new file mode 100644 index 0000000..55e0484 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go @@ -0,0 +1,281 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build 386 && openbsd +// +build 386,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go new file mode 100644 index 0000000..d2243cf --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go @@ -0,0 +1,281 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build amd64 && openbsd +// +build amd64,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go new file mode 100644 index 0000000..82dc51b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go @@ -0,0 +1,281 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build arm && openbsd +// +build arm,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go new file mode 100644 index 0000000..cbdda1a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go @@ -0,0 +1,281 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build arm64 && openbsd +// +build arm64,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go new file mode 100644 index 0000000..f55eae1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go @@ -0,0 +1,281 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build mips64 && openbsd +// +build mips64,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go new file mode 100644 index 0000000..e440544 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go @@ -0,0 +1,281 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build ppc64 && openbsd +// +build ppc64,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go new file mode 100644 index 0000000..a0db82f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go @@ -0,0 +1,282 @@ +// go run mksysctl_openbsd.go +// Code generated by the command above; DO NOT EDIT. + +//go:build riscv64 && openbsd +// +build riscv64,openbsd + +package unix + +type mibentry struct { + ctlname string + ctloid []_C_int +} + +var sysctlMib = []mibentry{ + {"ddb.console", []_C_int{9, 6}}, + {"ddb.log", []_C_int{9, 7}}, + {"ddb.max_line", []_C_int{9, 3}}, + {"ddb.max_width", []_C_int{9, 2}}, + {"ddb.panic", []_C_int{9, 5}}, + {"ddb.profile", []_C_int{9, 9}}, + {"ddb.radix", []_C_int{9, 1}}, + {"ddb.tab_stop_width", []_C_int{9, 4}}, + {"ddb.trigger", []_C_int{9, 8}}, + {"fs.posix.setuid", []_C_int{3, 1, 1}}, + {"hw.allowpowerdown", []_C_int{6, 22}}, + {"hw.byteorder", []_C_int{6, 4}}, + {"hw.cpuspeed", []_C_int{6, 12}}, + {"hw.diskcount", []_C_int{6, 10}}, + {"hw.disknames", []_C_int{6, 8}}, + {"hw.diskstats", []_C_int{6, 9}}, + {"hw.machine", []_C_int{6, 1}}, + {"hw.model", []_C_int{6, 2}}, + {"hw.ncpu", []_C_int{6, 3}}, + {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, + {"hw.pagesize", []_C_int{6, 7}}, + {"hw.perfpolicy", []_C_int{6, 23}}, + {"hw.physmem", []_C_int{6, 19}}, + {"hw.power", []_C_int{6, 26}}, + {"hw.product", []_C_int{6, 15}}, + {"hw.serialno", []_C_int{6, 17}}, + {"hw.setperf", []_C_int{6, 13}}, + {"hw.smt", []_C_int{6, 24}}, + {"hw.usermem", []_C_int{6, 20}}, + {"hw.uuid", []_C_int{6, 18}}, + {"hw.vendor", []_C_int{6, 14}}, + {"hw.version", []_C_int{6, 16}}, + {"kern.allowdt", []_C_int{1, 65}}, + {"kern.allowkmem", []_C_int{1, 52}}, + {"kern.argmax", []_C_int{1, 8}}, + {"kern.audio", []_C_int{1, 84}}, + {"kern.boottime", []_C_int{1, 21}}, + {"kern.bufcachepercent", []_C_int{1, 72}}, + {"kern.ccpu", []_C_int{1, 45}}, + {"kern.clockrate", []_C_int{1, 12}}, + {"kern.consbuf", []_C_int{1, 83}}, + {"kern.consbufsize", []_C_int{1, 82}}, + {"kern.consdev", []_C_int{1, 75}}, + {"kern.cp_time", []_C_int{1, 40}}, + {"kern.cp_time2", []_C_int{1, 71}}, + {"kern.cpustats", []_C_int{1, 85}}, + {"kern.domainname", []_C_int{1, 22}}, + {"kern.file", []_C_int{1, 73}}, + {"kern.forkstat", []_C_int{1, 42}}, + {"kern.fscale", []_C_int{1, 46}}, + {"kern.fsync", []_C_int{1, 33}}, + {"kern.global_ptrace", []_C_int{1, 81}}, + {"kern.hostid", []_C_int{1, 11}}, + {"kern.hostname", []_C_int{1, 10}}, + {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, + {"kern.job_control", []_C_int{1, 19}}, + {"kern.malloc.buckets", []_C_int{1, 39, 1}}, + {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, + {"kern.maxclusters", []_C_int{1, 67}}, + {"kern.maxfiles", []_C_int{1, 7}}, + {"kern.maxlocksperuid", []_C_int{1, 70}}, + {"kern.maxpartitions", []_C_int{1, 23}}, + {"kern.maxproc", []_C_int{1, 6}}, + {"kern.maxthread", []_C_int{1, 25}}, + {"kern.maxvnodes", []_C_int{1, 5}}, + {"kern.mbstat", []_C_int{1, 59}}, + {"kern.msgbuf", []_C_int{1, 48}}, + {"kern.msgbufsize", []_C_int{1, 38}}, + {"kern.nchstats", []_C_int{1, 41}}, + {"kern.netlivelocks", []_C_int{1, 76}}, + {"kern.nfiles", []_C_int{1, 56}}, + {"kern.ngroups", []_C_int{1, 18}}, + {"kern.nosuidcoredump", []_C_int{1, 32}}, + {"kern.nprocs", []_C_int{1, 47}}, + {"kern.nselcoll", []_C_int{1, 43}}, + {"kern.nthreads", []_C_int{1, 26}}, + {"kern.numvnodes", []_C_int{1, 58}}, + {"kern.osrelease", []_C_int{1, 2}}, + {"kern.osrevision", []_C_int{1, 3}}, + {"kern.ostype", []_C_int{1, 1}}, + {"kern.osversion", []_C_int{1, 27}}, + {"kern.pfstatus", []_C_int{1, 86}}, + {"kern.pool_debug", []_C_int{1, 77}}, + {"kern.posix1version", []_C_int{1, 17}}, + {"kern.proc", []_C_int{1, 66}}, + {"kern.rawpartition", []_C_int{1, 24}}, + {"kern.saved_ids", []_C_int{1, 20}}, + {"kern.securelevel", []_C_int{1, 9}}, + {"kern.seminfo", []_C_int{1, 61}}, + {"kern.shminfo", []_C_int{1, 62}}, + {"kern.somaxconn", []_C_int{1, 28}}, + {"kern.sominconn", []_C_int{1, 29}}, + {"kern.splassert", []_C_int{1, 54}}, + {"kern.stackgap_random", []_C_int{1, 50}}, + {"kern.sysvipc_info", []_C_int{1, 51}}, + {"kern.sysvmsg", []_C_int{1, 34}}, + {"kern.sysvsem", []_C_int{1, 35}}, + {"kern.sysvshm", []_C_int{1, 36}}, + {"kern.timecounter.choice", []_C_int{1, 69, 4}}, + {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, + {"kern.timecounter.tick", []_C_int{1, 69, 1}}, + {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, + {"kern.timeout_stats", []_C_int{1, 87}}, + {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, + {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, + {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, + {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, + {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, + {"kern.ttycount", []_C_int{1, 57}}, + {"kern.utc_offset", []_C_int{1, 88}}, + {"kern.version", []_C_int{1, 4}}, + {"kern.video", []_C_int{1, 89}}, + {"kern.watchdog.auto", []_C_int{1, 64, 2}}, + {"kern.watchdog.period", []_C_int{1, 64, 1}}, + {"kern.witnesswatch", []_C_int{1, 53}}, + {"kern.wxabort", []_C_int{1, 74}}, + {"net.bpf.bufsize", []_C_int{4, 31, 1}}, + {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, + {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, + {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, + {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, + {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, + {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, + {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, + {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, + {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, + {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, + {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, + {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, + {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, + {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, + {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, + {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, + {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, + {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, + {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, + {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, + {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, + {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, + {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, + {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, + {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, + {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, + {"net.inet.ip.arpdown", []_C_int{4, 2, 0, 40}}, + {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, + {"net.inet.ip.arptimeout", []_C_int{4, 2, 0, 39}}, + {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, + {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, + {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, + {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, + {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, + {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, + {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, + {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, + {"net.inet.ip.mrtmfc", []_C_int{4, 2, 0, 37}}, + {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, + {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, + {"net.inet.ip.mrtvif", []_C_int{4, 2, 0, 38}}, + {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, + {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, + {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, + {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, + {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, + {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, + {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, + {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, + {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, + {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, + {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, + {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, + {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, + {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, + {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, + {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, + {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, + {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, + {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, + {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, + {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, + {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, + {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, + {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, + {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, + {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, + {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, + {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, + {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, + {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, + {"net.inet.tcp.rootonly", []_C_int{4, 2, 6, 24}}, + {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, + {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, + {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, + {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, + {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, + {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, + {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, + {"net.inet.tcp.synhashsize", []_C_int{4, 2, 6, 25}}, + {"net.inet.tcp.synuselimit", []_C_int{4, 2, 6, 23}}, + {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, + {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, + {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, + {"net.inet.udp.rootonly", []_C_int{4, 2, 17, 6}}, + {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, + {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, + {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, + {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, + {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, + {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, + {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, + {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, + {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, + {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, + {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, + {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, + {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, + {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, + {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, + {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, + {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, + {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, + {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, + {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, + {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, + {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, + {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, + {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, + {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, + {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, + {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, + {"net.inet6.ip6.mrtmfc", []_C_int{4, 24, 17, 53}}, + {"net.inet6.ip6.mrtmif", []_C_int{4, 24, 17, 52}}, + {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, + {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, + {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, + {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, + {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, + {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, + {"net.inet6.ip6.soiikey", []_C_int{4, 24, 17, 54}}, + {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, + {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, + {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, + {"net.key.sadb_dump", []_C_int{4, 30, 1}}, + {"net.key.spd_dump", []_C_int{4, 30, 2}}, + {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, + {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, + {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, + {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, + {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, + {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, + {"net.mpls.ttl", []_C_int{4, 33, 2}}, + {"net.pflow.stats", []_C_int{4, 34, 1}}, + {"net.pipex.enable", []_C_int{4, 35, 1}}, + {"vm.anonmin", []_C_int{2, 7}}, + {"vm.loadavg", []_C_int{2, 2}}, + {"vm.malloc_conf", []_C_int{2, 12}}, + {"vm.maxslp", []_C_int{2, 10}}, + {"vm.nkmempages", []_C_int{2, 6}}, + {"vm.psstrings", []_C_int{2, 3}}, + {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, + {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, + {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, + {"vm.uspace", []_C_int{2, 11}}, + {"vm.uvmexp", []_C_int{2, 4}}, + {"vm.vmmeter", []_C_int{2, 1}}, + {"vm.vnodemin", []_C_int{2, 9}}, + {"vm.vtextmin", []_C_int{2, 8}}, +} diff --git a/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go new file mode 100644 index 0000000..f8298ff --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go @@ -0,0 +1,440 @@ +// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/syscall.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && darwin +// +build amd64,darwin + +package unix + +// Deprecated: Use libSystem wrappers instead of direct syscalls. +const ( + SYS_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAIT4 = 7 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_CHDIR = 12 + SYS_FCHDIR = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_CHOWN = 16 + SYS_GETFSSTAT = 18 + SYS_GETPID = 20 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_GETEUID = 25 + SYS_PTRACE = 26 + SYS_RECVMSG = 27 + SYS_SENDMSG = 28 + SYS_RECVFROM = 29 + SYS_ACCEPT = 30 + SYS_GETPEERNAME = 31 + SYS_GETSOCKNAME = 32 + SYS_ACCESS = 33 + SYS_CHFLAGS = 34 + SYS_FCHFLAGS = 35 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_GETPPID = 39 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_GETEGID = 43 + SYS_SIGACTION = 46 + SYS_GETGID = 47 + SYS_SIGPROCMASK = 48 + SYS_GETLOGIN = 49 + SYS_SETLOGIN = 50 + SYS_ACCT = 51 + SYS_SIGPENDING = 52 + SYS_SIGALTSTACK = 53 + SYS_IOCTL = 54 + SYS_REBOOT = 55 + SYS_REVOKE = 56 + SYS_SYMLINK = 57 + SYS_READLINK = 58 + SYS_EXECVE = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_MSYNC = 65 + SYS_VFORK = 66 + SYS_MUNMAP = 73 + SYS_MPROTECT = 74 + SYS_MADVISE = 75 + SYS_MINCORE = 78 + SYS_GETGROUPS = 79 + SYS_SETGROUPS = 80 + SYS_GETPGRP = 81 + SYS_SETPGID = 82 + SYS_SETITIMER = 83 + SYS_SWAPON = 85 + SYS_GETITIMER = 86 + SYS_GETDTABLESIZE = 89 + SYS_DUP2 = 90 + SYS_FCNTL = 92 + SYS_SELECT = 93 + SYS_FSYNC = 95 + SYS_SETPRIORITY = 96 + SYS_SOCKET = 97 + SYS_CONNECT = 98 + SYS_GETPRIORITY = 100 + SYS_BIND = 104 + SYS_SETSOCKOPT = 105 + SYS_LISTEN = 106 + SYS_SIGSUSPEND = 111 + SYS_GETTIMEOFDAY = 116 + SYS_GETRUSAGE = 117 + SYS_GETSOCKOPT = 118 + SYS_READV = 120 + SYS_WRITEV = 121 + SYS_SETTIMEOFDAY = 122 + SYS_FCHOWN = 123 + SYS_FCHMOD = 124 + SYS_SETREUID = 126 + SYS_SETREGID = 127 + SYS_RENAME = 128 + SYS_FLOCK = 131 + SYS_MKFIFO = 132 + SYS_SENDTO = 133 + SYS_SHUTDOWN = 134 + SYS_SOCKETPAIR = 135 + SYS_MKDIR = 136 + SYS_RMDIR = 137 + SYS_UTIMES = 138 + SYS_FUTIMES = 139 + SYS_ADJTIME = 140 + SYS_GETHOSTUUID = 142 + SYS_SETSID = 147 + SYS_GETPGID = 151 + SYS_SETPRIVEXEC = 152 + SYS_PREAD = 153 + SYS_PWRITE = 154 + SYS_NFSSVC = 155 + SYS_STATFS = 157 + SYS_FSTATFS = 158 + SYS_UNMOUNT = 159 + SYS_GETFH = 161 + SYS_QUOTACTL = 165 + SYS_MOUNT = 167 + SYS_CSOPS = 169 + SYS_CSOPS_AUDITTOKEN = 170 + SYS_WAITID = 173 + SYS_KDEBUG_TYPEFILTER = 177 + SYS_KDEBUG_TRACE_STRING = 178 + SYS_KDEBUG_TRACE64 = 179 + SYS_KDEBUG_TRACE = 180 + SYS_SETGID = 181 + SYS_SETEGID = 182 + SYS_SETEUID = 183 + SYS_SIGRETURN = 184 + SYS_THREAD_SELFCOUNTS = 186 + SYS_FDATASYNC = 187 + SYS_STAT = 188 + SYS_FSTAT = 189 + SYS_LSTAT = 190 + SYS_PATHCONF = 191 + SYS_FPATHCONF = 192 + SYS_GETRLIMIT = 194 + SYS_SETRLIMIT = 195 + SYS_GETDIRENTRIES = 196 + SYS_MMAP = 197 + SYS_LSEEK = 199 + SYS_TRUNCATE = 200 + SYS_FTRUNCATE = 201 + SYS_SYSCTL = 202 + SYS_MLOCK = 203 + SYS_MUNLOCK = 204 + SYS_UNDELETE = 205 + SYS_OPEN_DPROTECTED_NP = 216 + SYS_GETATTRLIST = 220 + SYS_SETATTRLIST = 221 + SYS_GETDIRENTRIESATTR = 222 + SYS_EXCHANGEDATA = 223 + SYS_SEARCHFS = 225 + SYS_DELETE = 226 + SYS_COPYFILE = 227 + SYS_FGETATTRLIST = 228 + SYS_FSETATTRLIST = 229 + SYS_POLL = 230 + SYS_WATCHEVENT = 231 + SYS_WAITEVENT = 232 + SYS_MODWATCH = 233 + SYS_GETXATTR = 234 + SYS_FGETXATTR = 235 + SYS_SETXATTR = 236 + SYS_FSETXATTR = 237 + SYS_REMOVEXATTR = 238 + SYS_FREMOVEXATTR = 239 + SYS_LISTXATTR = 240 + SYS_FLISTXATTR = 241 + SYS_FSCTL = 242 + SYS_INITGROUPS = 243 + SYS_POSIX_SPAWN = 244 + SYS_FFSCTL = 245 + SYS_NFSCLNT = 247 + SYS_FHOPEN = 248 + SYS_MINHERIT = 250 + SYS_SEMSYS = 251 + SYS_MSGSYS = 252 + SYS_SHMSYS = 253 + SYS_SEMCTL = 254 + SYS_SEMGET = 255 + SYS_SEMOP = 256 + SYS_MSGCTL = 258 + SYS_MSGGET = 259 + SYS_MSGSND = 260 + SYS_MSGRCV = 261 + SYS_SHMAT = 262 + SYS_SHMCTL = 263 + SYS_SHMDT = 264 + SYS_SHMGET = 265 + SYS_SHM_OPEN = 266 + SYS_SHM_UNLINK = 267 + SYS_SEM_OPEN = 268 + SYS_SEM_CLOSE = 269 + SYS_SEM_UNLINK = 270 + SYS_SEM_WAIT = 271 + SYS_SEM_TRYWAIT = 272 + SYS_SEM_POST = 273 + SYS_SYSCTLBYNAME = 274 + SYS_OPEN_EXTENDED = 277 + SYS_UMASK_EXTENDED = 278 + SYS_STAT_EXTENDED = 279 + SYS_LSTAT_EXTENDED = 280 + SYS_FSTAT_EXTENDED = 281 + SYS_CHMOD_EXTENDED = 282 + SYS_FCHMOD_EXTENDED = 283 + SYS_ACCESS_EXTENDED = 284 + SYS_SETTID = 285 + SYS_GETTID = 286 + SYS_SETSGROUPS = 287 + SYS_GETSGROUPS = 288 + SYS_SETWGROUPS = 289 + SYS_GETWGROUPS = 290 + SYS_MKFIFO_EXTENDED = 291 + SYS_MKDIR_EXTENDED = 292 + SYS_IDENTITYSVC = 293 + SYS_SHARED_REGION_CHECK_NP = 294 + SYS_VM_PRESSURE_MONITOR = 296 + SYS_PSYNCH_RW_LONGRDLOCK = 297 + SYS_PSYNCH_RW_YIELDWRLOCK = 298 + SYS_PSYNCH_RW_DOWNGRADE = 299 + SYS_PSYNCH_RW_UPGRADE = 300 + SYS_PSYNCH_MUTEXWAIT = 301 + SYS_PSYNCH_MUTEXDROP = 302 + SYS_PSYNCH_CVBROAD = 303 + SYS_PSYNCH_CVSIGNAL = 304 + SYS_PSYNCH_CVWAIT = 305 + SYS_PSYNCH_RW_RDLOCK = 306 + SYS_PSYNCH_RW_WRLOCK = 307 + SYS_PSYNCH_RW_UNLOCK = 308 + SYS_PSYNCH_RW_UNLOCK2 = 309 + SYS_GETSID = 310 + SYS_SETTID_WITH_PID = 311 + SYS_PSYNCH_CVCLRPREPOST = 312 + SYS_AIO_FSYNC = 313 + SYS_AIO_RETURN = 314 + SYS_AIO_SUSPEND = 315 + SYS_AIO_CANCEL = 316 + SYS_AIO_ERROR = 317 + SYS_AIO_READ = 318 + SYS_AIO_WRITE = 319 + SYS_LIO_LISTIO = 320 + SYS_IOPOLICYSYS = 322 + SYS_PROCESS_POLICY = 323 + SYS_MLOCKALL = 324 + SYS_MUNLOCKALL = 325 + SYS_ISSETUGID = 327 + SYS___PTHREAD_KILL = 328 + SYS___PTHREAD_SIGMASK = 329 + SYS___SIGWAIT = 330 + SYS___DISABLE_THREADSIGNAL = 331 + SYS___PTHREAD_MARKCANCEL = 332 + SYS___PTHREAD_CANCELED = 333 + SYS___SEMWAIT_SIGNAL = 334 + SYS_PROC_INFO = 336 + SYS_SENDFILE = 337 + SYS_STAT64 = 338 + SYS_FSTAT64 = 339 + SYS_LSTAT64 = 340 + SYS_STAT64_EXTENDED = 341 + SYS_LSTAT64_EXTENDED = 342 + SYS_FSTAT64_EXTENDED = 343 + SYS_GETDIRENTRIES64 = 344 + SYS_STATFS64 = 345 + SYS_FSTATFS64 = 346 + SYS_GETFSSTAT64 = 347 + SYS___PTHREAD_CHDIR = 348 + SYS___PTHREAD_FCHDIR = 349 + SYS_AUDIT = 350 + SYS_AUDITON = 351 + SYS_GETAUID = 353 + SYS_SETAUID = 354 + SYS_GETAUDIT_ADDR = 357 + SYS_SETAUDIT_ADDR = 358 + SYS_AUDITCTL = 359 + SYS_BSDTHREAD_CREATE = 360 + SYS_BSDTHREAD_TERMINATE = 361 + SYS_KQUEUE = 362 + SYS_KEVENT = 363 + SYS_LCHOWN = 364 + SYS_BSDTHREAD_REGISTER = 366 + SYS_WORKQ_OPEN = 367 + SYS_WORKQ_KERNRETURN = 368 + SYS_KEVENT64 = 369 + SYS___OLD_SEMWAIT_SIGNAL = 370 + SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 + SYS_THREAD_SELFID = 372 + SYS_LEDGER = 373 + SYS_KEVENT_QOS = 374 + SYS_KEVENT_ID = 375 + SYS___MAC_EXECVE = 380 + SYS___MAC_SYSCALL = 381 + SYS___MAC_GET_FILE = 382 + SYS___MAC_SET_FILE = 383 + SYS___MAC_GET_LINK = 384 + SYS___MAC_SET_LINK = 385 + SYS___MAC_GET_PROC = 386 + SYS___MAC_SET_PROC = 387 + SYS___MAC_GET_FD = 388 + SYS___MAC_SET_FD = 389 + SYS___MAC_GET_PID = 390 + SYS_PSELECT = 394 + SYS_PSELECT_NOCANCEL = 395 + SYS_READ_NOCANCEL = 396 + SYS_WRITE_NOCANCEL = 397 + SYS_OPEN_NOCANCEL = 398 + SYS_CLOSE_NOCANCEL = 399 + SYS_WAIT4_NOCANCEL = 400 + SYS_RECVMSG_NOCANCEL = 401 + SYS_SENDMSG_NOCANCEL = 402 + SYS_RECVFROM_NOCANCEL = 403 + SYS_ACCEPT_NOCANCEL = 404 + SYS_MSYNC_NOCANCEL = 405 + SYS_FCNTL_NOCANCEL = 406 + SYS_SELECT_NOCANCEL = 407 + SYS_FSYNC_NOCANCEL = 408 + SYS_CONNECT_NOCANCEL = 409 + SYS_SIGSUSPEND_NOCANCEL = 410 + SYS_READV_NOCANCEL = 411 + SYS_WRITEV_NOCANCEL = 412 + SYS_SENDTO_NOCANCEL = 413 + SYS_PREAD_NOCANCEL = 414 + SYS_PWRITE_NOCANCEL = 415 + SYS_WAITID_NOCANCEL = 416 + SYS_POLL_NOCANCEL = 417 + SYS_MSGSND_NOCANCEL = 418 + SYS_MSGRCV_NOCANCEL = 419 + SYS_SEM_WAIT_NOCANCEL = 420 + SYS_AIO_SUSPEND_NOCANCEL = 421 + SYS___SIGWAIT_NOCANCEL = 422 + SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 + SYS___MAC_MOUNT = 424 + SYS___MAC_GET_MOUNT = 425 + SYS___MAC_GETFSSTAT = 426 + SYS_FSGETPATH = 427 + SYS_AUDIT_SESSION_SELF = 428 + SYS_AUDIT_SESSION_JOIN = 429 + SYS_FILEPORT_MAKEPORT = 430 + SYS_FILEPORT_MAKEFD = 431 + SYS_AUDIT_SESSION_PORT = 432 + SYS_PID_SUSPEND = 433 + SYS_PID_RESUME = 434 + SYS_PID_HIBERNATE = 435 + SYS_PID_SHUTDOWN_SOCKETS = 436 + SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 + SYS_KAS_INFO = 439 + SYS_MEMORYSTATUS_CONTROL = 440 + SYS_GUARDED_OPEN_NP = 441 + SYS_GUARDED_CLOSE_NP = 442 + SYS_GUARDED_KQUEUE_NP = 443 + SYS_CHANGE_FDGUARD_NP = 444 + SYS_USRCTL = 445 + SYS_PROC_RLIMIT_CONTROL = 446 + SYS_CONNECTX = 447 + SYS_DISCONNECTX = 448 + SYS_PEELOFF = 449 + SYS_SOCKET_DELEGATE = 450 + SYS_TELEMETRY = 451 + SYS_PROC_UUID_POLICY = 452 + SYS_MEMORYSTATUS_GET_LEVEL = 453 + SYS_SYSTEM_OVERRIDE = 454 + SYS_VFS_PURGE = 455 + SYS_SFI_CTL = 456 + SYS_SFI_PIDCTL = 457 + SYS_COALITION = 458 + SYS_COALITION_INFO = 459 + SYS_NECP_MATCH_POLICY = 460 + SYS_GETATTRLISTBULK = 461 + SYS_CLONEFILEAT = 462 + SYS_OPENAT = 463 + SYS_OPENAT_NOCANCEL = 464 + SYS_RENAMEAT = 465 + SYS_FACCESSAT = 466 + SYS_FCHMODAT = 467 + SYS_FCHOWNAT = 468 + SYS_FSTATAT = 469 + SYS_FSTATAT64 = 470 + SYS_LINKAT = 471 + SYS_UNLINKAT = 472 + SYS_READLINKAT = 473 + SYS_SYMLINKAT = 474 + SYS_MKDIRAT = 475 + SYS_GETATTRLISTAT = 476 + SYS_PROC_TRACE_LOG = 477 + SYS_BSDTHREAD_CTL = 478 + SYS_OPENBYID_NP = 479 + SYS_RECVMSG_X = 480 + SYS_SENDMSG_X = 481 + SYS_THREAD_SELFUSAGE = 482 + SYS_CSRCTL = 483 + SYS_GUARDED_OPEN_DPROTECTED_NP = 484 + SYS_GUARDED_WRITE_NP = 485 + SYS_GUARDED_PWRITE_NP = 486 + SYS_GUARDED_WRITEV_NP = 487 + SYS_RENAMEATX_NP = 488 + SYS_MREMAP_ENCRYPTED = 489 + SYS_NETAGENT_TRIGGER = 490 + SYS_STACK_SNAPSHOT_WITH_CONFIG = 491 + SYS_MICROSTACKSHOT = 492 + SYS_GRAB_PGO_DATA = 493 + SYS_PERSONA = 494 + SYS_WORK_INTERVAL_CTL = 499 + SYS_GETENTROPY = 500 + SYS_NECP_OPEN = 501 + SYS_NECP_CLIENT_ACTION = 502 + SYS___NEXUS_OPEN = 503 + SYS___NEXUS_REGISTER = 504 + SYS___NEXUS_DEREGISTER = 505 + SYS___NEXUS_CREATE = 506 + SYS___NEXUS_DESTROY = 507 + SYS___NEXUS_GET_OPT = 508 + SYS___NEXUS_SET_OPT = 509 + SYS___CHANNEL_OPEN = 510 + SYS___CHANNEL_GET_INFO = 511 + SYS___CHANNEL_SYNC = 512 + SYS___CHANNEL_GET_OPT = 513 + SYS___CHANNEL_SET_OPT = 514 + SYS_ULOCK_WAIT = 515 + SYS_ULOCK_WAKE = 516 + SYS_FCLONEFILEAT = 517 + SYS_FS_SNAPSHOT = 518 + SYS_TERMINATE_WITH_PAYLOAD = 520 + SYS_ABORT_WITH_PAYLOAD = 521 + SYS_NECP_SESSION_OPEN = 522 + SYS_NECP_SESSION_ACTION = 523 + SYS_SETATTRLISTAT = 524 + SYS_NET_QOS_GUIDELINE = 525 + SYS_FMOUNT = 526 + SYS_NTP_ADJTIME = 527 + SYS_NTP_GETTIME = 528 + SYS_OS_FAULT_WITH_PAYLOAD = 529 + SYS_KQUEUE_WORKLOOP_CTL = 530 + SYS___MACH_BRIDGE_REMOTE_TIME = 531 + SYS_MAXSYSCALL = 532 + SYS_INVALID = 63 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go new file mode 100644 index 0000000..5eb433b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go @@ -0,0 +1,438 @@ +// go run mksysnum.go /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && darwin +// +build arm64,darwin + +package unix + +// Deprecated: Use libSystem wrappers instead of direct syscalls. +const ( + SYS_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAIT4 = 7 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_CHDIR = 12 + SYS_FCHDIR = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_CHOWN = 16 + SYS_GETFSSTAT = 18 + SYS_GETPID = 20 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_GETEUID = 25 + SYS_PTRACE = 26 + SYS_RECVMSG = 27 + SYS_SENDMSG = 28 + SYS_RECVFROM = 29 + SYS_ACCEPT = 30 + SYS_GETPEERNAME = 31 + SYS_GETSOCKNAME = 32 + SYS_ACCESS = 33 + SYS_CHFLAGS = 34 + SYS_FCHFLAGS = 35 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_GETPPID = 39 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_GETEGID = 43 + SYS_SIGACTION = 46 + SYS_GETGID = 47 + SYS_SIGPROCMASK = 48 + SYS_GETLOGIN = 49 + SYS_SETLOGIN = 50 + SYS_ACCT = 51 + SYS_SIGPENDING = 52 + SYS_SIGALTSTACK = 53 + SYS_IOCTL = 54 + SYS_REBOOT = 55 + SYS_REVOKE = 56 + SYS_SYMLINK = 57 + SYS_READLINK = 58 + SYS_EXECVE = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_MSYNC = 65 + SYS_VFORK = 66 + SYS_MUNMAP = 73 + SYS_MPROTECT = 74 + SYS_MADVISE = 75 + SYS_MINCORE = 78 + SYS_GETGROUPS = 79 + SYS_SETGROUPS = 80 + SYS_GETPGRP = 81 + SYS_SETPGID = 82 + SYS_SETITIMER = 83 + SYS_SWAPON = 85 + SYS_GETITIMER = 86 + SYS_GETDTABLESIZE = 89 + SYS_DUP2 = 90 + SYS_FCNTL = 92 + SYS_SELECT = 93 + SYS_FSYNC = 95 + SYS_SETPRIORITY = 96 + SYS_SOCKET = 97 + SYS_CONNECT = 98 + SYS_GETPRIORITY = 100 + SYS_BIND = 104 + SYS_SETSOCKOPT = 105 + SYS_LISTEN = 106 + SYS_SIGSUSPEND = 111 + SYS_GETTIMEOFDAY = 116 + SYS_GETRUSAGE = 117 + SYS_GETSOCKOPT = 118 + SYS_READV = 120 + SYS_WRITEV = 121 + SYS_SETTIMEOFDAY = 122 + SYS_FCHOWN = 123 + SYS_FCHMOD = 124 + SYS_SETREUID = 126 + SYS_SETREGID = 127 + SYS_RENAME = 128 + SYS_FLOCK = 131 + SYS_MKFIFO = 132 + SYS_SENDTO = 133 + SYS_SHUTDOWN = 134 + SYS_SOCKETPAIR = 135 + SYS_MKDIR = 136 + SYS_RMDIR = 137 + SYS_UTIMES = 138 + SYS_FUTIMES = 139 + SYS_ADJTIME = 140 + SYS_GETHOSTUUID = 142 + SYS_SETSID = 147 + SYS_GETPGID = 151 + SYS_SETPRIVEXEC = 152 + SYS_PREAD = 153 + SYS_PWRITE = 154 + SYS_NFSSVC = 155 + SYS_STATFS = 157 + SYS_FSTATFS = 158 + SYS_UNMOUNT = 159 + SYS_GETFH = 161 + SYS_QUOTACTL = 165 + SYS_MOUNT = 167 + SYS_CSOPS = 169 + SYS_CSOPS_AUDITTOKEN = 170 + SYS_WAITID = 173 + SYS_KDEBUG_TYPEFILTER = 177 + SYS_KDEBUG_TRACE_STRING = 178 + SYS_KDEBUG_TRACE64 = 179 + SYS_KDEBUG_TRACE = 180 + SYS_SETGID = 181 + SYS_SETEGID = 182 + SYS_SETEUID = 183 + SYS_SIGRETURN = 184 + SYS_THREAD_SELFCOUNTS = 186 + SYS_FDATASYNC = 187 + SYS_STAT = 188 + SYS_FSTAT = 189 + SYS_LSTAT = 190 + SYS_PATHCONF = 191 + SYS_FPATHCONF = 192 + SYS_GETRLIMIT = 194 + SYS_SETRLIMIT = 195 + SYS_GETDIRENTRIES = 196 + SYS_MMAP = 197 + SYS_LSEEK = 199 + SYS_TRUNCATE = 200 + SYS_FTRUNCATE = 201 + SYS_SYSCTL = 202 + SYS_MLOCK = 203 + SYS_MUNLOCK = 204 + SYS_UNDELETE = 205 + SYS_OPEN_DPROTECTED_NP = 216 + SYS_GETATTRLIST = 220 + SYS_SETATTRLIST = 221 + SYS_GETDIRENTRIESATTR = 222 + SYS_EXCHANGEDATA = 223 + SYS_SEARCHFS = 225 + SYS_DELETE = 226 + SYS_COPYFILE = 227 + SYS_FGETATTRLIST = 228 + SYS_FSETATTRLIST = 229 + SYS_POLL = 230 + SYS_WATCHEVENT = 231 + SYS_WAITEVENT = 232 + SYS_MODWATCH = 233 + SYS_GETXATTR = 234 + SYS_FGETXATTR = 235 + SYS_SETXATTR = 236 + SYS_FSETXATTR = 237 + SYS_REMOVEXATTR = 238 + SYS_FREMOVEXATTR = 239 + SYS_LISTXATTR = 240 + SYS_FLISTXATTR = 241 + SYS_FSCTL = 242 + SYS_INITGROUPS = 243 + SYS_POSIX_SPAWN = 244 + SYS_FFSCTL = 245 + SYS_NFSCLNT = 247 + SYS_FHOPEN = 248 + SYS_MINHERIT = 250 + SYS_SEMSYS = 251 + SYS_MSGSYS = 252 + SYS_SHMSYS = 253 + SYS_SEMCTL = 254 + SYS_SEMGET = 255 + SYS_SEMOP = 256 + SYS_MSGCTL = 258 + SYS_MSGGET = 259 + SYS_MSGSND = 260 + SYS_MSGRCV = 261 + SYS_SHMAT = 262 + SYS_SHMCTL = 263 + SYS_SHMDT = 264 + SYS_SHMGET = 265 + SYS_SHM_OPEN = 266 + SYS_SHM_UNLINK = 267 + SYS_SEM_OPEN = 268 + SYS_SEM_CLOSE = 269 + SYS_SEM_UNLINK = 270 + SYS_SEM_WAIT = 271 + SYS_SEM_TRYWAIT = 272 + SYS_SEM_POST = 273 + SYS_SYSCTLBYNAME = 274 + SYS_OPEN_EXTENDED = 277 + SYS_UMASK_EXTENDED = 278 + SYS_STAT_EXTENDED = 279 + SYS_LSTAT_EXTENDED = 280 + SYS_FSTAT_EXTENDED = 281 + SYS_CHMOD_EXTENDED = 282 + SYS_FCHMOD_EXTENDED = 283 + SYS_ACCESS_EXTENDED = 284 + SYS_SETTID = 285 + SYS_GETTID = 286 + SYS_SETSGROUPS = 287 + SYS_GETSGROUPS = 288 + SYS_SETWGROUPS = 289 + SYS_GETWGROUPS = 290 + SYS_MKFIFO_EXTENDED = 291 + SYS_MKDIR_EXTENDED = 292 + SYS_IDENTITYSVC = 293 + SYS_SHARED_REGION_CHECK_NP = 294 + SYS_VM_PRESSURE_MONITOR = 296 + SYS_PSYNCH_RW_LONGRDLOCK = 297 + SYS_PSYNCH_RW_YIELDWRLOCK = 298 + SYS_PSYNCH_RW_DOWNGRADE = 299 + SYS_PSYNCH_RW_UPGRADE = 300 + SYS_PSYNCH_MUTEXWAIT = 301 + SYS_PSYNCH_MUTEXDROP = 302 + SYS_PSYNCH_CVBROAD = 303 + SYS_PSYNCH_CVSIGNAL = 304 + SYS_PSYNCH_CVWAIT = 305 + SYS_PSYNCH_RW_RDLOCK = 306 + SYS_PSYNCH_RW_WRLOCK = 307 + SYS_PSYNCH_RW_UNLOCK = 308 + SYS_PSYNCH_RW_UNLOCK2 = 309 + SYS_GETSID = 310 + SYS_SETTID_WITH_PID = 311 + SYS_PSYNCH_CVCLRPREPOST = 312 + SYS_AIO_FSYNC = 313 + SYS_AIO_RETURN = 314 + SYS_AIO_SUSPEND = 315 + SYS_AIO_CANCEL = 316 + SYS_AIO_ERROR = 317 + SYS_AIO_READ = 318 + SYS_AIO_WRITE = 319 + SYS_LIO_LISTIO = 320 + SYS_IOPOLICYSYS = 322 + SYS_PROCESS_POLICY = 323 + SYS_MLOCKALL = 324 + SYS_MUNLOCKALL = 325 + SYS_ISSETUGID = 327 + SYS___PTHREAD_KILL = 328 + SYS___PTHREAD_SIGMASK = 329 + SYS___SIGWAIT = 330 + SYS___DISABLE_THREADSIGNAL = 331 + SYS___PTHREAD_MARKCANCEL = 332 + SYS___PTHREAD_CANCELED = 333 + SYS___SEMWAIT_SIGNAL = 334 + SYS_PROC_INFO = 336 + SYS_SENDFILE = 337 + SYS_STAT64 = 338 + SYS_FSTAT64 = 339 + SYS_LSTAT64 = 340 + SYS_STAT64_EXTENDED = 341 + SYS_LSTAT64_EXTENDED = 342 + SYS_FSTAT64_EXTENDED = 343 + SYS_GETDIRENTRIES64 = 344 + SYS_STATFS64 = 345 + SYS_FSTATFS64 = 346 + SYS_GETFSSTAT64 = 347 + SYS___PTHREAD_CHDIR = 348 + SYS___PTHREAD_FCHDIR = 349 + SYS_AUDIT = 350 + SYS_AUDITON = 351 + SYS_GETAUID = 353 + SYS_SETAUID = 354 + SYS_GETAUDIT_ADDR = 357 + SYS_SETAUDIT_ADDR = 358 + SYS_AUDITCTL = 359 + SYS_BSDTHREAD_CREATE = 360 + SYS_BSDTHREAD_TERMINATE = 361 + SYS_KQUEUE = 362 + SYS_KEVENT = 363 + SYS_LCHOWN = 364 + SYS_BSDTHREAD_REGISTER = 366 + SYS_WORKQ_OPEN = 367 + SYS_WORKQ_KERNRETURN = 368 + SYS_KEVENT64 = 369 + SYS___OLD_SEMWAIT_SIGNAL = 370 + SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 + SYS_THREAD_SELFID = 372 + SYS_LEDGER = 373 + SYS_KEVENT_QOS = 374 + SYS_KEVENT_ID = 375 + SYS___MAC_EXECVE = 380 + SYS___MAC_SYSCALL = 381 + SYS___MAC_GET_FILE = 382 + SYS___MAC_SET_FILE = 383 + SYS___MAC_GET_LINK = 384 + SYS___MAC_SET_LINK = 385 + SYS___MAC_GET_PROC = 386 + SYS___MAC_SET_PROC = 387 + SYS___MAC_GET_FD = 388 + SYS___MAC_SET_FD = 389 + SYS___MAC_GET_PID = 390 + SYS_PSELECT = 394 + SYS_PSELECT_NOCANCEL = 395 + SYS_READ_NOCANCEL = 396 + SYS_WRITE_NOCANCEL = 397 + SYS_OPEN_NOCANCEL = 398 + SYS_CLOSE_NOCANCEL = 399 + SYS_WAIT4_NOCANCEL = 400 + SYS_RECVMSG_NOCANCEL = 401 + SYS_SENDMSG_NOCANCEL = 402 + SYS_RECVFROM_NOCANCEL = 403 + SYS_ACCEPT_NOCANCEL = 404 + SYS_MSYNC_NOCANCEL = 405 + SYS_FCNTL_NOCANCEL = 406 + SYS_SELECT_NOCANCEL = 407 + SYS_FSYNC_NOCANCEL = 408 + SYS_CONNECT_NOCANCEL = 409 + SYS_SIGSUSPEND_NOCANCEL = 410 + SYS_READV_NOCANCEL = 411 + SYS_WRITEV_NOCANCEL = 412 + SYS_SENDTO_NOCANCEL = 413 + SYS_PREAD_NOCANCEL = 414 + SYS_PWRITE_NOCANCEL = 415 + SYS_WAITID_NOCANCEL = 416 + SYS_POLL_NOCANCEL = 417 + SYS_MSGSND_NOCANCEL = 418 + SYS_MSGRCV_NOCANCEL = 419 + SYS_SEM_WAIT_NOCANCEL = 420 + SYS_AIO_SUSPEND_NOCANCEL = 421 + SYS___SIGWAIT_NOCANCEL = 422 + SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 + SYS___MAC_MOUNT = 424 + SYS___MAC_GET_MOUNT = 425 + SYS___MAC_GETFSSTAT = 426 + SYS_FSGETPATH = 427 + SYS_AUDIT_SESSION_SELF = 428 + SYS_AUDIT_SESSION_JOIN = 429 + SYS_FILEPORT_MAKEPORT = 430 + SYS_FILEPORT_MAKEFD = 431 + SYS_AUDIT_SESSION_PORT = 432 + SYS_PID_SUSPEND = 433 + SYS_PID_RESUME = 434 + SYS_PID_HIBERNATE = 435 + SYS_PID_SHUTDOWN_SOCKETS = 436 + SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 + SYS_KAS_INFO = 439 + SYS_MEMORYSTATUS_CONTROL = 440 + SYS_GUARDED_OPEN_NP = 441 + SYS_GUARDED_CLOSE_NP = 442 + SYS_GUARDED_KQUEUE_NP = 443 + SYS_CHANGE_FDGUARD_NP = 444 + SYS_USRCTL = 445 + SYS_PROC_RLIMIT_CONTROL = 446 + SYS_CONNECTX = 447 + SYS_DISCONNECTX = 448 + SYS_PEELOFF = 449 + SYS_SOCKET_DELEGATE = 450 + SYS_TELEMETRY = 451 + SYS_PROC_UUID_POLICY = 452 + SYS_MEMORYSTATUS_GET_LEVEL = 453 + SYS_SYSTEM_OVERRIDE = 454 + SYS_VFS_PURGE = 455 + SYS_SFI_CTL = 456 + SYS_SFI_PIDCTL = 457 + SYS_COALITION = 458 + SYS_COALITION_INFO = 459 + SYS_NECP_MATCH_POLICY = 460 + SYS_GETATTRLISTBULK = 461 + SYS_CLONEFILEAT = 462 + SYS_OPENAT = 463 + SYS_OPENAT_NOCANCEL = 464 + SYS_RENAMEAT = 465 + SYS_FACCESSAT = 466 + SYS_FCHMODAT = 467 + SYS_FCHOWNAT = 468 + SYS_FSTATAT = 469 + SYS_FSTATAT64 = 470 + SYS_LINKAT = 471 + SYS_UNLINKAT = 472 + SYS_READLINKAT = 473 + SYS_SYMLINKAT = 474 + SYS_MKDIRAT = 475 + SYS_GETATTRLISTAT = 476 + SYS_PROC_TRACE_LOG = 477 + SYS_BSDTHREAD_CTL = 478 + SYS_OPENBYID_NP = 479 + SYS_RECVMSG_X = 480 + SYS_SENDMSG_X = 481 + SYS_THREAD_SELFUSAGE = 482 + SYS_CSRCTL = 483 + SYS_GUARDED_OPEN_DPROTECTED_NP = 484 + SYS_GUARDED_WRITE_NP = 485 + SYS_GUARDED_PWRITE_NP = 486 + SYS_GUARDED_WRITEV_NP = 487 + SYS_RENAMEATX_NP = 488 + SYS_MREMAP_ENCRYPTED = 489 + SYS_NETAGENT_TRIGGER = 490 + SYS_STACK_SNAPSHOT_WITH_CONFIG = 491 + SYS_MICROSTACKSHOT = 492 + SYS_GRAB_PGO_DATA = 493 + SYS_PERSONA = 494 + SYS_WORK_INTERVAL_CTL = 499 + SYS_GETENTROPY = 500 + SYS_NECP_OPEN = 501 + SYS_NECP_CLIENT_ACTION = 502 + SYS___NEXUS_OPEN = 503 + SYS___NEXUS_REGISTER = 504 + SYS___NEXUS_DEREGISTER = 505 + SYS___NEXUS_CREATE = 506 + SYS___NEXUS_DESTROY = 507 + SYS___NEXUS_GET_OPT = 508 + SYS___NEXUS_SET_OPT = 509 + SYS___CHANNEL_OPEN = 510 + SYS___CHANNEL_GET_INFO = 511 + SYS___CHANNEL_SYNC = 512 + SYS___CHANNEL_GET_OPT = 513 + SYS___CHANNEL_SET_OPT = 514 + SYS_ULOCK_WAIT = 515 + SYS_ULOCK_WAKE = 516 + SYS_FCLONEFILEAT = 517 + SYS_FS_SNAPSHOT = 518 + SYS_TERMINATE_WITH_PAYLOAD = 520 + SYS_ABORT_WITH_PAYLOAD = 521 + SYS_NECP_SESSION_OPEN = 522 + SYS_NECP_SESSION_ACTION = 523 + SYS_SETATTRLISTAT = 524 + SYS_NET_QOS_GUIDELINE = 525 + SYS_FMOUNT = 526 + SYS_NTP_ADJTIME = 527 + SYS_NTP_GETTIME = 528 + SYS_OS_FAULT_WITH_PAYLOAD = 529 + SYS_MAXSYSCALL = 530 + SYS_INVALID = 63 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go new file mode 100644 index 0000000..703675c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go @@ -0,0 +1,317 @@ +// go run mksysnum.go https://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && dragonfly +// +build amd64,dragonfly + +package unix + +const ( + SYS_EXIT = 1 // { void exit(int rval); } + SYS_FORK = 2 // { int fork(void); } + SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } + SYS_CLOSE = 6 // { int close(int fd); } + SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } wait4 wait_args int + // SYS_NOSYS = 8; // { int nosys(void); } __nosys nosys_args int + SYS_LINK = 9 // { int link(char *path, char *link); } + SYS_UNLINK = 10 // { int unlink(char *path); } + SYS_CHDIR = 12 // { int chdir(char *path); } + SYS_FCHDIR = 13 // { int fchdir(int fd); } + SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } + SYS_CHMOD = 15 // { int chmod(char *path, int mode); } + SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } + SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int + SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, int flags); } + SYS_GETPID = 20 // { pid_t getpid(void); } + SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); } + SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } + SYS_SETUID = 23 // { int setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t getuid(void); } + SYS_GETEUID = 25 // { uid_t geteuid(void); } + SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { int sendmsg(int s, caddr_t msg, int flags); } + SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, caddr_t from, int *fromlenaddr); } + SYS_ACCEPT = 30 // { int accept(int s, caddr_t name, int *anamelen); } + SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, int *alen); } + SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, int *alen); } + SYS_ACCESS = 33 // { int access(char *path, int flags); } + SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { int sync(void); } + SYS_KILL = 37 // { int kill(int pid, int signum); } + SYS_GETPPID = 39 // { pid_t getppid(void); } + SYS_DUP = 41 // { int dup(int fd); } + SYS_PIPE = 42 // { int pipe(void); } + SYS_GETEGID = 43 // { gid_t getegid(void); } + SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); } + SYS_GETGID = 47 // { gid_t getgid(void); } + SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, size_t namelen); } + SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } + SYS_ACCT = 51 // { int acct(char *path); } + SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } + SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } + SYS_REBOOT = 55 // { int reboot(int opt); } + SYS_REVOKE = 56 // { int revoke(char *path); } + SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } + SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); } + SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } + SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int + SYS_CHROOT = 61 // { int chroot(char *path); } + SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } + SYS_VFORK = 66 // { pid_t vfork(void); } + SYS_SBRK = 69 // { caddr_t sbrk(size_t incr); } + SYS_SSTK = 70 // { int sstk(size_t incr); } + SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } + SYS_GETPGRP = 81 // { int getpgrp(void); } + SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } + SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } + SYS_SWAPON = 85 // { int swapon(char *name); } + SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } + SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } + SYS_DUP2 = 90 // { int dup2(int from, int to); } + SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } + SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_FSYNC = 95 // { int fsync(int fd); } + SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } + SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } + SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } + SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } + SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); } + SYS_LISTEN = 106 // { int listen(int s, int backlog); } + SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } + SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); } + SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); } + SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } + SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } + SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } + SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } + SYS_RENAME = 128 // { int rename(char *from, char *to); } + SYS_FLOCK = 131 // { int flock(int fd, int how); } + SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } + SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); } + SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } + SYS_RMDIR = 137 // { int rmdir(char *path); } + SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } + SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); } + SYS_SETSID = 147 // { int setsid(void); } + SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); } + SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); } + SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); } + SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } + SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } + SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); } + SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, size_t nbyte, int flags, off_t offset); } + SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, size_t nbyte, int flags, off_t offset); } + SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int setgid(gid_t gid); } + SYS_SETEGID = 182 // { int setegid(gid_t egid); } + SYS_SETEUID = 183 // { int seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } + SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int + SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int + SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); } + SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int truncate(char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int ftruncate(int fd, int pad, off_t length); } + SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int + SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int undelete(char *path); } + SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } + SYS_GETPGID = 207 // { int getpgid(pid_t pid); } + SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS___SEMCTL = 220 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, u_int nsops); } + SYS_MSGCTL = 224 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { caddr_t shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMCTL = 229 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } + SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } + SYS_RFORK = 251 // { int rfork(int flags); } + SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int issetugid(void); } + SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } + SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } + SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } + SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, const struct iovec *iovp, int iovcnt, int flags, off_t offset); } + SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, const struct iovec *iovp, int iovcnt, int flags, off_t offset); } + SYS_FHSTATFS = 297 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } + SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } + SYS_MODNEXT = 300 // { int modnext(int modid); } + SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } + SYS_MODFNEXT = 302 // { int modfnext(int modid); } + SYS_MODFIND = 303 // { int modfind(const char *name); } + SYS_KLDLOAD = 304 // { int kldload(const char *file); } + SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } + SYS_KLDFIND = 306 // { int kldfind(const char *file); } + SYS_KLDNEXT = 307 // { int kldnext(int fileid); } + SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat* stat); } + SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } + SYS_GETSID = 310 // { int getsid(pid_t pid); } + SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); } + SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } + SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } + SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } + SYS_AIO_READ = 318 // { int aio_read(struct aiocb *aiocbp); } + SYS_AIO_WRITE = 319 // { int aio_write(struct aiocb *aiocbp); } + SYS_LIO_LISTIO = 320 // { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); } + SYS_YIELD = 321 // { int yield(void); } + SYS_MLOCKALL = 324 // { int mlockall(int how); } + SYS_MUNLOCKALL = 325 // { int munlockall(void); } + SYS___GETCWD = 326 // { int __getcwd(u_char *buf, u_int buflen); } + SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } + SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } + SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } + SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } + SYS_SCHED_YIELD = 331 // { int sched_yield (void); } + SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } + SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } + SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } + SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } + SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } + SYS_JAIL = 338 // { int jail(struct jail *jail); } + SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); } + SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } + SYS_SIGACTION = 342 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); } + SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } + SYS_SIGRETURN = 344 // { int sigreturn(ucontext_t *sigcntxp); } + SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set,siginfo_t *info, const struct timespec *timeout); } + SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set,siginfo_t *info); } + SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); } + SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } + SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 356 // { int extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 357 // { int extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } + SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_KQUEUE = 362 // { int kqueue(void); } + SYS_KEVENT = 363 // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } + SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); } + SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } + SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } + SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); } + SYS_VARSYM_GET = 451 // { int varsym_get(int mask, const char *wild, char *buf, int bufsize); } + SYS_VARSYM_LIST = 452 // { int varsym_list(int level, char *buf, int maxsize, int *marker); } + SYS_EXEC_SYS_REGISTER = 465 // { int exec_sys_register(void *entry); } + SYS_EXEC_SYS_UNREGISTER = 466 // { int exec_sys_unregister(int id); } + SYS_SYS_CHECKPOINT = 467 // { int sys_checkpoint(int type, int fd, pid_t pid, int retval); } + SYS_MOUNTCTL = 468 // { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); } + SYS_UMTX_SLEEP = 469 // { int umtx_sleep(volatile const int *ptr, int value, int timeout); } + SYS_UMTX_WAKEUP = 470 // { int umtx_wakeup(volatile const int *ptr, int count); } + SYS_JAIL_ATTACH = 471 // { int jail_attach(int jid); } + SYS_SET_TLS_AREA = 472 // { int set_tls_area(int which, struct tls_info *info, size_t infosize); } + SYS_GET_TLS_AREA = 473 // { int get_tls_area(int which, struct tls_info *info, size_t infosize); } + SYS_CLOSEFROM = 474 // { int closefrom(int fd); } + SYS_STAT = 475 // { int stat(const char *path, struct stat *ub); } + SYS_FSTAT = 476 // { int fstat(int fd, struct stat *sb); } + SYS_LSTAT = 477 // { int lstat(const char *path, struct stat *ub); } + SYS_FHSTAT = 478 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } + SYS_GETDIRENTRIES = 479 // { int getdirentries(int fd, char *buf, u_int count, long *basep); } + SYS_GETDENTS = 480 // { int getdents(int fd, char *buf, size_t count); } + SYS_USCHED_SET = 481 // { int usched_set(pid_t pid, int cmd, void *data, int bytes); } + SYS_EXTACCEPT = 482 // { int extaccept(int s, int flags, caddr_t name, int *anamelen); } + SYS_EXTCONNECT = 483 // { int extconnect(int s, int flags, caddr_t name, int namelen); } + SYS_MCONTROL = 485 // { int mcontrol(void *addr, size_t len, int behav, off_t value); } + SYS_VMSPACE_CREATE = 486 // { int vmspace_create(void *id, int type, void *data); } + SYS_VMSPACE_DESTROY = 487 // { int vmspace_destroy(void *id); } + SYS_VMSPACE_CTL = 488 // { int vmspace_ctl(void *id, int cmd, struct trapframe *tframe, struct vextframe *vframe); } + SYS_VMSPACE_MMAP = 489 // { int vmspace_mmap(void *id, void *addr, size_t len, int prot, int flags, int fd, off_t offset); } + SYS_VMSPACE_MUNMAP = 490 // { int vmspace_munmap(void *id, void *addr, size_t len); } + SYS_VMSPACE_MCONTROL = 491 // { int vmspace_mcontrol(void *id, void *addr, size_t len, int behav, off_t value); } + SYS_VMSPACE_PREAD = 492 // { ssize_t vmspace_pread(void *id, void *buf, size_t nbyte, int flags, off_t offset); } + SYS_VMSPACE_PWRITE = 493 // { ssize_t vmspace_pwrite(void *id, const void *buf, size_t nbyte, int flags, off_t offset); } + SYS_EXTEXIT = 494 // { void extexit(int how, int status, void *addr); } + SYS_LWP_CREATE = 495 // { int lwp_create(struct lwp_params *params); } + SYS_LWP_GETTID = 496 // { lwpid_t lwp_gettid(void); } + SYS_LWP_KILL = 497 // { int lwp_kill(pid_t pid, lwpid_t tid, int signum); } + SYS_LWP_RTPRIO = 498 // { int lwp_rtprio(int function, pid_t pid, lwpid_t tid, struct rtprio *rtp); } + SYS_PSELECT = 499 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sigmask); } + SYS_STATVFS = 500 // { int statvfs(const char *path, struct statvfs *buf); } + SYS_FSTATVFS = 501 // { int fstatvfs(int fd, struct statvfs *buf); } + SYS_FHSTATVFS = 502 // { int fhstatvfs(const struct fhandle *u_fhp, struct statvfs *buf); } + SYS_GETVFSSTAT = 503 // { int getvfsstat(struct statfs *buf, struct statvfs *vbuf, long vbufsize, int flags); } + SYS_OPENAT = 504 // { int openat(int fd, char *path, int flags, int mode); } + SYS_FSTATAT = 505 // { int fstatat(int fd, char *path, struct stat *sb, int flags); } + SYS_FCHMODAT = 506 // { int fchmodat(int fd, char *path, int mode, int flags); } + SYS_FCHOWNAT = 507 // { int fchownat(int fd, char *path, int uid, int gid, int flags); } + SYS_UNLINKAT = 508 // { int unlinkat(int fd, char *path, int flags); } + SYS_FACCESSAT = 509 // { int faccessat(int fd, char *path, int amode, int flags); } + SYS_MQ_OPEN = 510 // { mqd_t mq_open(const char * name, int oflag, mode_t mode, struct mq_attr *attr); } + SYS_MQ_CLOSE = 511 // { int mq_close(mqd_t mqdes); } + SYS_MQ_UNLINK = 512 // { int mq_unlink(const char *name); } + SYS_MQ_GETATTR = 513 // { int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat); } + SYS_MQ_SETATTR = 514 // { int mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat); } + SYS_MQ_NOTIFY = 515 // { int mq_notify(mqd_t mqdes, const struct sigevent *notification); } + SYS_MQ_SEND = 516 // { int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio); } + SYS_MQ_RECEIVE = 517 // { ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio); } + SYS_MQ_TIMEDSEND = 518 // { int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); } + SYS_MQ_TIMEDRECEIVE = 519 // { ssize_t mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); } + SYS_IOPRIO_SET = 520 // { int ioprio_set(int which, int who, int prio); } + SYS_IOPRIO_GET = 521 // { int ioprio_get(int which, int who); } + SYS_CHROOT_KERNEL = 522 // { int chroot_kernel(char *path); } + SYS_RENAMEAT = 523 // { int renameat(int oldfd, char *old, int newfd, char *new); } + SYS_MKDIRAT = 524 // { int mkdirat(int fd, char *path, mode_t mode); } + SYS_MKFIFOAT = 525 // { int mkfifoat(int fd, char *path, mode_t mode); } + SYS_MKNODAT = 526 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } + SYS_READLINKAT = 527 // { int readlinkat(int fd, char *path, char *buf, size_t bufsize); } + SYS_SYMLINKAT = 528 // { int symlinkat(char *path1, int fd, char *path2); } + SYS_SWAPOFF = 529 // { int swapoff(char *name); } + SYS_VQUOTACTL = 530 // { int vquotactl(const char *path, struct plistref *pref); } + SYS_LINKAT = 531 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flags); } + SYS_EACCESS = 532 // { int eaccess(char *path, int flags); } + SYS_LPATHCONF = 533 // { int lpathconf(char *path, int name); } + SYS_VMM_GUEST_CTL = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); } + SYS_VMM_GUEST_SYNC_ADDR = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); } + SYS_PROCCTL = 536 // { int procctl(idtype_t idtype, id_t id, int cmd, void *data); } + SYS_CHFLAGSAT = 537 // { int chflagsat(int fd, const char *path, u_long flags, int atflags);} + SYS_PIPE2 = 538 // { int pipe2(int *fildes, int flags); } + SYS_UTIMENSAT = 539 // { int utimensat(int fd, const char *path, const struct timespec *ts, int flags); } + SYS_FUTIMENS = 540 // { int futimens(int fd, const struct timespec *ts); } + SYS_ACCEPT4 = 541 // { int accept4(int s, caddr_t name, int *anamelen, int flags); } + SYS_LWP_SETNAME = 542 // { int lwp_setname(lwpid_t tid, const char *name); } + SYS_PPOLL = 543 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *sigmask); } + SYS_LWP_SETAFFINITY = 544 // { int lwp_setaffinity(pid_t pid, lwpid_t tid, const cpumask_t *mask); } + SYS_LWP_GETAFFINITY = 545 // { int lwp_getaffinity(pid_t pid, lwpid_t tid, cpumask_t *mask); } + SYS_LWP_CREATE2 = 546 // { int lwp_create2(struct lwp_params *params, const cpumask_t *mask); } + SYS_GETCPUCLOCKID = 547 // { int getcpuclockid(pid_t pid, lwpid_t lwp_id, clockid_t *clock_id); } + SYS_WAIT6 = 548 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); } + SYS_LWP_GETNAME = 549 // { int lwp_getname(lwpid_t tid, char *name, size_t len); } + SYS_GETRANDOM = 550 // { ssize_t getrandom(void *buf, size_t len, unsigned flags); } + SYS___REALPATH = 551 // { ssize_t __realpath(const char *path, char *buf, size_t len); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go new file mode 100644 index 0000000..4e0d961 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go @@ -0,0 +1,394 @@ +// go run mksysnum.go https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && freebsd +// +build 386,freebsd + +package unix + +const ( + // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int + SYS_EXIT = 1 // { void sys_exit(int rval); } exit sys_exit_args void + SYS_FORK = 2 // { int fork(void); } + SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } + SYS_CLOSE = 6 // { int close(int fd); } + SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } + SYS_LINK = 9 // { int link(char *path, char *link); } + SYS_UNLINK = 10 // { int unlink(char *path); } + SYS_CHDIR = 12 // { int chdir(char *path); } + SYS_FCHDIR = 13 // { int fchdir(int fd); } + SYS_CHMOD = 15 // { int chmod(char *path, int mode); } + SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } + SYS_BREAK = 17 // { caddr_t break(char *nsize); } + SYS_GETPID = 20 // { pid_t getpid(void); } + SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); } + SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } + SYS_SETUID = 23 // { int setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t getuid(void); } + SYS_GETEUID = 25 // { uid_t geteuid(void); } + SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, struct sockaddr * __restrict from, __socklen_t * __restrict fromlenaddr); } + SYS_ACCEPT = 30 // { int accept(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen); } + SYS_GETPEERNAME = 31 // { int getpeername(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_ACCESS = 33 // { int access(char *path, int amode); } + SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { int sync(void); } + SYS_KILL = 37 // { int kill(int pid, int signum); } + SYS_GETPPID = 39 // { pid_t getppid(void); } + SYS_DUP = 41 // { int dup(u_int fd); } + SYS_GETEGID = 43 // { gid_t getegid(void); } + SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); } + SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); } + SYS_GETGID = 47 // { gid_t getgid(void); } + SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); } + SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } + SYS_ACCT = 51 // { int acct(char *path); } + SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } + SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } + SYS_REBOOT = 55 // { int reboot(int opt); } + SYS_REVOKE = 56 // { int revoke(char *path); } + SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } + SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } + SYS_UMASK = 60 // { int umask(int newmask); } + SYS_CHROOT = 61 // { int chroot(char *path); } + SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } + SYS_VFORK = 66 // { int vfork(void); } + SYS_SBRK = 69 // { int sbrk(int incr); } + SYS_SSTK = 70 // { int sstk(int incr); } + SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } + SYS_GETPGRP = 81 // { int getpgrp(void); } + SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } + SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } + SYS_SWAPON = 85 // { int swapon(char *name); } + SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } + SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } + SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } + SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } + SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_FSYNC = 95 // { int fsync(int fd); } + SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } + SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } + SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } + SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } + SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); } + SYS_LISTEN = 106 // { int listen(int s, int backlog); } + SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } + SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); } + SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); } + SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } + SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } + SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } + SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } + SYS_RENAME = 128 // { int rename(char *from, char *to); } + SYS_FLOCK = 131 // { int flock(int fd, int how); } + SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } + SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); } + SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } + SYS_RMDIR = 137 // { int rmdir(char *path); } + SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } + SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); } + SYS_SETSID = 147 // { int setsid(void); } + SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); } + SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); } + SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); } + SYS_LGETFH = 160 // { int lgetfh(char *fname, struct fhandle *fhp); } + SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } + SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } + SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); } + SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } + SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } + SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } + SYS_SETFIB = 175 // { int setfib(int fibnum); } + SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int setgid(gid_t gid); } + SYS_SETEGID = 182 // { int setegid(gid_t egid); } + SYS_SETEUID = 183 // { int seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } + SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int + SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int + SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int + SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int undelete(char *path); } + SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } + SYS_GETPGID = 207 // { int getpgid(pid_t pid); } + SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } + SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); } + SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } + SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct itimerspec *value); } + SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } + SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } + SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate(struct ffclock_estimate *cest); } + SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate(struct ffclock_estimate *cest); } + SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); } + SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id, int which, clockid_t *clock_id); } + SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } + SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } + SYS_RFORK = 251 // { int rfork(int flags); } + SYS_ISSETUGID = 253 // { int issetugid(void); } + SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } + SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); } + SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); } + SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, struct aiocb* const *acb_list, int nent, struct sigevent *sig); } + SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } + SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } + SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } + SYS_MODNEXT = 300 // { int modnext(int modid); } + SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } + SYS_MODFNEXT = 302 // { int modfnext(int modid); } + SYS_MODFIND = 303 // { int modfind(const char *name); } + SYS_KLDLOAD = 304 // { int kldload(const char *file); } + SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } + SYS_KLDFIND = 306 // { int kldfind(const char *file); } + SYS_KLDNEXT = 307 // { int kldnext(int fileid); } + SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat *stat); } + SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } + SYS_GETSID = 310 // { int getsid(pid_t pid); } + SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); } + SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } + SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } + SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } + SYS_YIELD = 321 // { int yield(void); } + SYS_MLOCKALL = 324 // { int mlockall(int how); } + SYS_MUNLOCKALL = 325 // { int munlockall(void); } + SYS___GETCWD = 326 // { int __getcwd(char *buf, size_t buflen); } + SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } + SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } + SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } + SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } + SYS_SCHED_YIELD = 331 // { int sched_yield (void); } + SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } + SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } + SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } + SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } + SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } + SYS_JAIL = 338 // { int jail(struct jail *jail); } + SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); } + SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } + SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } + SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); } + SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, siginfo_t *info); } + SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); } + SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } + SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } + SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_KQUEUE = 362 // { int kqueue(void); } + SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS___SETUGID = 374 // { int __setugid(int flag); } + SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } + SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } + SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } + SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, struct mac *mac_p); } + SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, struct mac *mac_p); } + SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, struct mac *mac_p); } + SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } + SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); } + SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } + SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } + SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } + SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); } + SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); } + SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); } + SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); } + SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, unsigned int value); } + SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode, unsigned int value); } + SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); } + SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); } + SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); } + SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); } + SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, struct mac *mac_p); } + SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, char **envv, struct mac *mac_p); } + SYS_SIGACTION = 416 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); } + SYS_SIGRETURN = 417 // { int sigreturn(const struct __ucontext *sigcntxp); } + SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 422 // { int setcontext(const struct __ucontext *ucp); } + SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, const struct __ucontext *ucp); } + SYS_SWAPOFF = 424 // { int swapoff(const char *name); } + SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, acl_type_t type); } + SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, int *sig); } + SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, int flags); } + SYS_THR_EXIT = 431 // { void thr_exit(long *state); } + SYS_THR_SELF = 432 // { int thr_self(long *id); } + SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } + SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } + SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, const struct timespec *abstime); } + SYS_THR_SUSPEND = 442 // { int thr_suspend(const struct timespec *timeout); } + SYS_THR_WAKE = 443 // { int thr_wake(long id); } + SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } + SYS_AUDIT = 445 // { int audit(const void *record, u_int length); } + SYS_AUDITON = 446 // { int auditon(int cmd, void *data, u_int length); } + SYS_GETAUID = 447 // { int getauid(uid_t *auid); } + SYS_SETAUID = 448 // { int setauid(uid_t *auid); } + SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } + SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } + SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_AUDITCTL = 453 // { int auditctl(char *path); } + SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, u_long val, void *uaddr1, void *uaddr2); } + SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, int param_size); } + SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } + SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, mode_t mode, const struct mq_attr *attr); } + SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, const struct mq_attr *attr, struct mq_attr *oattr); } + SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, const struct sigevent *sigev); } + SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); } + SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } + SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } + SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); } + SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, lwpid_t lwpid, struct rtprio *rtp); } + SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } + SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, struct sockaddr *from, __socklen_t *fromlenaddr, struct sctp_sndrcvinfo *sinfo, int *msg_flags); } + SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset); } + SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset); } + SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); } + SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, int whence); } + SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } + SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } + SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } + SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, mode_t mode); } + SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } + SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } + SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); } + SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid); } + SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *mask); } + SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *mask); } + SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, int flag); } + SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag); } + SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, char **envv); } + SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, struct timeval *times); } + SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); } + SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } + SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } + SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, mode_t mode); } + SYS_READLINKAT = 500 // { ssize_t readlinkat(int fd, char *path, char *buf, size_t bufsize); } + SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, char *new); } + SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, char *path2); } + SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } + SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } + SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); } + SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } + SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } + SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } + SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, int fd, cap_rights_t *rightsp); } + SYS_CAP_ENTER = 516 // { int cap_enter(void); } + SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } + SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } + SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } + SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } + SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sm); } + SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, size_t namelen); } + SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } + SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, off_t offset, off_t len); } + SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, off_t len, int advice); } + SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); } + SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, cap_rights_t *rightsp); } + SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, const u_long *cmds, size_t ncmds); } + SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, u_long *cmds, size_t maxcmds); } + SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, uint32_t fcntlrights); } + SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, uint32_t *fcntlrightsp); } + SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, int namelen); } + SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, int namelen); } + SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, u_long flags, int atflag); } + SYS_ACCEPT4 = 541 // { int accept4(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen, int flags); } + SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } + SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); } + SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, int com, void *data); } + SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } + SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } + SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } + SYS_FDATASYNC = 550 // { int fdatasync(int fd); } + SYS_FSTAT = 551 // { int fstat(int fd, struct stat *sb); } + SYS_FSTATAT = 552 // { int fstatat(int fd, char *path, struct stat *buf, int flag); } + SYS_FHSTAT = 553 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } + SYS_GETDIRENTRIES = 554 // { ssize_t getdirentries(int fd, char *buf, size_t count, off_t *basep); } + SYS_STATFS = 555 // { int statfs(char *path, struct statfs *buf); } + SYS_FSTATFS = 556 // { int fstatfs(int fd, struct statfs *buf); } + SYS_GETFSSTAT = 557 // { int getfsstat(struct statfs *buf, long bufsize, int mode); } + SYS_FHSTATFS = 558 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } + SYS_MKNODAT = 559 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } + SYS_KEVENT = 560 // { int kevent(int fd, struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_CPUSET_GETDOMAIN = 561 // { int cpuset_getdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int *policy); } + SYS_CPUSET_SETDOMAIN = 562 // { int cpuset_setdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int policy); } + SYS_GETRANDOM = 563 // { int getrandom(void *buf, size_t buflen, unsigned int flags); } + SYS_GETFHAT = 564 // { int getfhat(int fd, char *path, struct fhandle *fhp, int flags); } + SYS_FHLINK = 565 // { int fhlink(struct fhandle *fhp, const char *to); } + SYS_FHLINKAT = 566 // { int fhlinkat(struct fhandle *fhp, int tofd, const char *to,); } + SYS_FHREADLINK = 567 // { int fhreadlink(struct fhandle *fhp, char *buf, size_t bufsize); } + SYS___SYSCTLBYNAME = 570 // { int __sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_CLOSE_RANGE = 575 // { int close_range(u_int lowfd, u_int highfd, int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go new file mode 100644 index 0000000..01636b8 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go @@ -0,0 +1,394 @@ +// go run mksysnum.go https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && freebsd +// +build amd64,freebsd + +package unix + +const ( + // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int + SYS_EXIT = 1 // { void sys_exit(int rval); } exit sys_exit_args void + SYS_FORK = 2 // { int fork(void); } + SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } + SYS_CLOSE = 6 // { int close(int fd); } + SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } + SYS_LINK = 9 // { int link(char *path, char *link); } + SYS_UNLINK = 10 // { int unlink(char *path); } + SYS_CHDIR = 12 // { int chdir(char *path); } + SYS_FCHDIR = 13 // { int fchdir(int fd); } + SYS_CHMOD = 15 // { int chmod(char *path, int mode); } + SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } + SYS_BREAK = 17 // { caddr_t break(char *nsize); } + SYS_GETPID = 20 // { pid_t getpid(void); } + SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); } + SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } + SYS_SETUID = 23 // { int setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t getuid(void); } + SYS_GETEUID = 25 // { uid_t geteuid(void); } + SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, struct sockaddr * __restrict from, __socklen_t * __restrict fromlenaddr); } + SYS_ACCEPT = 30 // { int accept(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen); } + SYS_GETPEERNAME = 31 // { int getpeername(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_ACCESS = 33 // { int access(char *path, int amode); } + SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { int sync(void); } + SYS_KILL = 37 // { int kill(int pid, int signum); } + SYS_GETPPID = 39 // { pid_t getppid(void); } + SYS_DUP = 41 // { int dup(u_int fd); } + SYS_GETEGID = 43 // { gid_t getegid(void); } + SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); } + SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); } + SYS_GETGID = 47 // { gid_t getgid(void); } + SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); } + SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } + SYS_ACCT = 51 // { int acct(char *path); } + SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } + SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } + SYS_REBOOT = 55 // { int reboot(int opt); } + SYS_REVOKE = 56 // { int revoke(char *path); } + SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } + SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } + SYS_UMASK = 60 // { int umask(int newmask); } + SYS_CHROOT = 61 // { int chroot(char *path); } + SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } + SYS_VFORK = 66 // { int vfork(void); } + SYS_SBRK = 69 // { int sbrk(int incr); } + SYS_SSTK = 70 // { int sstk(int incr); } + SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } + SYS_GETPGRP = 81 // { int getpgrp(void); } + SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } + SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } + SYS_SWAPON = 85 // { int swapon(char *name); } + SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } + SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } + SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } + SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } + SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_FSYNC = 95 // { int fsync(int fd); } + SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } + SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } + SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } + SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } + SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); } + SYS_LISTEN = 106 // { int listen(int s, int backlog); } + SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } + SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); } + SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); } + SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } + SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } + SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } + SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } + SYS_RENAME = 128 // { int rename(char *from, char *to); } + SYS_FLOCK = 131 // { int flock(int fd, int how); } + SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } + SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); } + SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } + SYS_RMDIR = 137 // { int rmdir(char *path); } + SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } + SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); } + SYS_SETSID = 147 // { int setsid(void); } + SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); } + SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); } + SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); } + SYS_LGETFH = 160 // { int lgetfh(char *fname, struct fhandle *fhp); } + SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } + SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } + SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); } + SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } + SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } + SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } + SYS_SETFIB = 175 // { int setfib(int fibnum); } + SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int setgid(gid_t gid); } + SYS_SETEGID = 182 // { int setegid(gid_t egid); } + SYS_SETEUID = 183 // { int seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } + SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int + SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int + SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int + SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int undelete(char *path); } + SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } + SYS_GETPGID = 207 // { int getpgid(pid_t pid); } + SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } + SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); } + SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } + SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct itimerspec *value); } + SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } + SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } + SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate(struct ffclock_estimate *cest); } + SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate(struct ffclock_estimate *cest); } + SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); } + SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id, int which, clockid_t *clock_id); } + SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } + SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } + SYS_RFORK = 251 // { int rfork(int flags); } + SYS_ISSETUGID = 253 // { int issetugid(void); } + SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } + SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); } + SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); } + SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, struct aiocb* const *acb_list, int nent, struct sigevent *sig); } + SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } + SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } + SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } + SYS_MODNEXT = 300 // { int modnext(int modid); } + SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } + SYS_MODFNEXT = 302 // { int modfnext(int modid); } + SYS_MODFIND = 303 // { int modfind(const char *name); } + SYS_KLDLOAD = 304 // { int kldload(const char *file); } + SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } + SYS_KLDFIND = 306 // { int kldfind(const char *file); } + SYS_KLDNEXT = 307 // { int kldnext(int fileid); } + SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat *stat); } + SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } + SYS_GETSID = 310 // { int getsid(pid_t pid); } + SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); } + SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } + SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } + SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } + SYS_YIELD = 321 // { int yield(void); } + SYS_MLOCKALL = 324 // { int mlockall(int how); } + SYS_MUNLOCKALL = 325 // { int munlockall(void); } + SYS___GETCWD = 326 // { int __getcwd(char *buf, size_t buflen); } + SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } + SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } + SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } + SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } + SYS_SCHED_YIELD = 331 // { int sched_yield (void); } + SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } + SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } + SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } + SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } + SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } + SYS_JAIL = 338 // { int jail(struct jail *jail); } + SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); } + SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } + SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } + SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); } + SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, siginfo_t *info); } + SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); } + SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } + SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } + SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_KQUEUE = 362 // { int kqueue(void); } + SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS___SETUGID = 374 // { int __setugid(int flag); } + SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } + SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } + SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } + SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, struct mac *mac_p); } + SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, struct mac *mac_p); } + SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, struct mac *mac_p); } + SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } + SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); } + SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } + SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } + SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } + SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); } + SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); } + SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); } + SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); } + SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, unsigned int value); } + SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode, unsigned int value); } + SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); } + SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); } + SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); } + SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); } + SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, struct mac *mac_p); } + SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, char **envv, struct mac *mac_p); } + SYS_SIGACTION = 416 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); } + SYS_SIGRETURN = 417 // { int sigreturn(const struct __ucontext *sigcntxp); } + SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 422 // { int setcontext(const struct __ucontext *ucp); } + SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, const struct __ucontext *ucp); } + SYS_SWAPOFF = 424 // { int swapoff(const char *name); } + SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, acl_type_t type); } + SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, int *sig); } + SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, int flags); } + SYS_THR_EXIT = 431 // { void thr_exit(long *state); } + SYS_THR_SELF = 432 // { int thr_self(long *id); } + SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } + SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } + SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, const struct timespec *abstime); } + SYS_THR_SUSPEND = 442 // { int thr_suspend(const struct timespec *timeout); } + SYS_THR_WAKE = 443 // { int thr_wake(long id); } + SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } + SYS_AUDIT = 445 // { int audit(const void *record, u_int length); } + SYS_AUDITON = 446 // { int auditon(int cmd, void *data, u_int length); } + SYS_GETAUID = 447 // { int getauid(uid_t *auid); } + SYS_SETAUID = 448 // { int setauid(uid_t *auid); } + SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } + SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } + SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_AUDITCTL = 453 // { int auditctl(char *path); } + SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, u_long val, void *uaddr1, void *uaddr2); } + SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, int param_size); } + SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } + SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, mode_t mode, const struct mq_attr *attr); } + SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, const struct mq_attr *attr, struct mq_attr *oattr); } + SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, const struct sigevent *sigev); } + SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); } + SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } + SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } + SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); } + SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, lwpid_t lwpid, struct rtprio *rtp); } + SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } + SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, struct sockaddr *from, __socklen_t *fromlenaddr, struct sctp_sndrcvinfo *sinfo, int *msg_flags); } + SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset); } + SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset); } + SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); } + SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, int whence); } + SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } + SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } + SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } + SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, mode_t mode); } + SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } + SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } + SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); } + SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid); } + SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *mask); } + SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *mask); } + SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, int flag); } + SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag); } + SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, char **envv); } + SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, struct timeval *times); } + SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); } + SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } + SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } + SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, mode_t mode); } + SYS_READLINKAT = 500 // { ssize_t readlinkat(int fd, char *path, char *buf, size_t bufsize); } + SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, char *new); } + SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, char *path2); } + SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } + SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } + SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); } + SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } + SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } + SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } + SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, int fd, cap_rights_t *rightsp); } + SYS_CAP_ENTER = 516 // { int cap_enter(void); } + SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } + SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } + SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } + SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } + SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sm); } + SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, size_t namelen); } + SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } + SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, off_t offset, off_t len); } + SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, off_t len, int advice); } + SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); } + SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, cap_rights_t *rightsp); } + SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, const u_long *cmds, size_t ncmds); } + SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, u_long *cmds, size_t maxcmds); } + SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, uint32_t fcntlrights); } + SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, uint32_t *fcntlrightsp); } + SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, int namelen); } + SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, int namelen); } + SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, u_long flags, int atflag); } + SYS_ACCEPT4 = 541 // { int accept4(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen, int flags); } + SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } + SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); } + SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, int com, void *data); } + SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } + SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } + SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } + SYS_FDATASYNC = 550 // { int fdatasync(int fd); } + SYS_FSTAT = 551 // { int fstat(int fd, struct stat *sb); } + SYS_FSTATAT = 552 // { int fstatat(int fd, char *path, struct stat *buf, int flag); } + SYS_FHSTAT = 553 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } + SYS_GETDIRENTRIES = 554 // { ssize_t getdirentries(int fd, char *buf, size_t count, off_t *basep); } + SYS_STATFS = 555 // { int statfs(char *path, struct statfs *buf); } + SYS_FSTATFS = 556 // { int fstatfs(int fd, struct statfs *buf); } + SYS_GETFSSTAT = 557 // { int getfsstat(struct statfs *buf, long bufsize, int mode); } + SYS_FHSTATFS = 558 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } + SYS_MKNODAT = 559 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } + SYS_KEVENT = 560 // { int kevent(int fd, struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_CPUSET_GETDOMAIN = 561 // { int cpuset_getdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int *policy); } + SYS_CPUSET_SETDOMAIN = 562 // { int cpuset_setdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int policy); } + SYS_GETRANDOM = 563 // { int getrandom(void *buf, size_t buflen, unsigned int flags); } + SYS_GETFHAT = 564 // { int getfhat(int fd, char *path, struct fhandle *fhp, int flags); } + SYS_FHLINK = 565 // { int fhlink(struct fhandle *fhp, const char *to); } + SYS_FHLINKAT = 566 // { int fhlinkat(struct fhandle *fhp, int tofd, const char *to,); } + SYS_FHREADLINK = 567 // { int fhreadlink(struct fhandle *fhp, char *buf, size_t bufsize); } + SYS___SYSCTLBYNAME = 570 // { int __sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_CLOSE_RANGE = 575 // { int close_range(u_int lowfd, u_int highfd, int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go new file mode 100644 index 0000000..ad99bc1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go @@ -0,0 +1,394 @@ +// go run mksysnum.go https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && freebsd +// +build arm,freebsd + +package unix + +const ( + // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int + SYS_EXIT = 1 // { void sys_exit(int rval); } exit sys_exit_args void + SYS_FORK = 2 // { int fork(void); } + SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } + SYS_CLOSE = 6 // { int close(int fd); } + SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } + SYS_LINK = 9 // { int link(char *path, char *link); } + SYS_UNLINK = 10 // { int unlink(char *path); } + SYS_CHDIR = 12 // { int chdir(char *path); } + SYS_FCHDIR = 13 // { int fchdir(int fd); } + SYS_CHMOD = 15 // { int chmod(char *path, int mode); } + SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } + SYS_BREAK = 17 // { caddr_t break(char *nsize); } + SYS_GETPID = 20 // { pid_t getpid(void); } + SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); } + SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } + SYS_SETUID = 23 // { int setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t getuid(void); } + SYS_GETEUID = 25 // { uid_t geteuid(void); } + SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, struct sockaddr * __restrict from, __socklen_t * __restrict fromlenaddr); } + SYS_ACCEPT = 30 // { int accept(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen); } + SYS_GETPEERNAME = 31 // { int getpeername(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_ACCESS = 33 // { int access(char *path, int amode); } + SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { int sync(void); } + SYS_KILL = 37 // { int kill(int pid, int signum); } + SYS_GETPPID = 39 // { pid_t getppid(void); } + SYS_DUP = 41 // { int dup(u_int fd); } + SYS_GETEGID = 43 // { gid_t getegid(void); } + SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); } + SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); } + SYS_GETGID = 47 // { gid_t getgid(void); } + SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); } + SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } + SYS_ACCT = 51 // { int acct(char *path); } + SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } + SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } + SYS_REBOOT = 55 // { int reboot(int opt); } + SYS_REVOKE = 56 // { int revoke(char *path); } + SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } + SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } + SYS_UMASK = 60 // { int umask(int newmask); } + SYS_CHROOT = 61 // { int chroot(char *path); } + SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } + SYS_VFORK = 66 // { int vfork(void); } + SYS_SBRK = 69 // { int sbrk(int incr); } + SYS_SSTK = 70 // { int sstk(int incr); } + SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } + SYS_GETPGRP = 81 // { int getpgrp(void); } + SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } + SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } + SYS_SWAPON = 85 // { int swapon(char *name); } + SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } + SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } + SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } + SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } + SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_FSYNC = 95 // { int fsync(int fd); } + SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } + SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } + SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } + SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } + SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); } + SYS_LISTEN = 106 // { int listen(int s, int backlog); } + SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } + SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); } + SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); } + SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } + SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } + SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } + SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } + SYS_RENAME = 128 // { int rename(char *from, char *to); } + SYS_FLOCK = 131 // { int flock(int fd, int how); } + SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } + SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); } + SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } + SYS_RMDIR = 137 // { int rmdir(char *path); } + SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } + SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); } + SYS_SETSID = 147 // { int setsid(void); } + SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); } + SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); } + SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); } + SYS_LGETFH = 160 // { int lgetfh(char *fname, struct fhandle *fhp); } + SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } + SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } + SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); } + SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } + SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } + SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } + SYS_SETFIB = 175 // { int setfib(int fibnum); } + SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int setgid(gid_t gid); } + SYS_SETEGID = 182 // { int setegid(gid_t egid); } + SYS_SETEUID = 183 // { int seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } + SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int + SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int + SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int + SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int undelete(char *path); } + SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } + SYS_GETPGID = 207 // { int getpgid(pid_t pid); } + SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } + SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); } + SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } + SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct itimerspec *value); } + SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } + SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } + SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate(struct ffclock_estimate *cest); } + SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate(struct ffclock_estimate *cest); } + SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); } + SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id, int which, clockid_t *clock_id); } + SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } + SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } + SYS_RFORK = 251 // { int rfork(int flags); } + SYS_ISSETUGID = 253 // { int issetugid(void); } + SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } + SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); } + SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); } + SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, struct aiocb* const *acb_list, int nent, struct sigevent *sig); } + SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } + SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } + SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } + SYS_MODNEXT = 300 // { int modnext(int modid); } + SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } + SYS_MODFNEXT = 302 // { int modfnext(int modid); } + SYS_MODFIND = 303 // { int modfind(const char *name); } + SYS_KLDLOAD = 304 // { int kldload(const char *file); } + SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } + SYS_KLDFIND = 306 // { int kldfind(const char *file); } + SYS_KLDNEXT = 307 // { int kldnext(int fileid); } + SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat *stat); } + SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } + SYS_GETSID = 310 // { int getsid(pid_t pid); } + SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); } + SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } + SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } + SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } + SYS_YIELD = 321 // { int yield(void); } + SYS_MLOCKALL = 324 // { int mlockall(int how); } + SYS_MUNLOCKALL = 325 // { int munlockall(void); } + SYS___GETCWD = 326 // { int __getcwd(char *buf, size_t buflen); } + SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } + SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } + SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } + SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } + SYS_SCHED_YIELD = 331 // { int sched_yield (void); } + SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } + SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } + SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } + SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } + SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } + SYS_JAIL = 338 // { int jail(struct jail *jail); } + SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); } + SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } + SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } + SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); } + SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, siginfo_t *info); } + SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); } + SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } + SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } + SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_KQUEUE = 362 // { int kqueue(void); } + SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS___SETUGID = 374 // { int __setugid(int flag); } + SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } + SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } + SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } + SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, struct mac *mac_p); } + SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, struct mac *mac_p); } + SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, struct mac *mac_p); } + SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } + SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); } + SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } + SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } + SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } + SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); } + SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); } + SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); } + SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); } + SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, unsigned int value); } + SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode, unsigned int value); } + SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); } + SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); } + SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); } + SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); } + SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, struct mac *mac_p); } + SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, char **envv, struct mac *mac_p); } + SYS_SIGACTION = 416 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); } + SYS_SIGRETURN = 417 // { int sigreturn(const struct __ucontext *sigcntxp); } + SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 422 // { int setcontext(const struct __ucontext *ucp); } + SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, const struct __ucontext *ucp); } + SYS_SWAPOFF = 424 // { int swapoff(const char *name); } + SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, acl_type_t type); } + SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, int *sig); } + SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, int flags); } + SYS_THR_EXIT = 431 // { void thr_exit(long *state); } + SYS_THR_SELF = 432 // { int thr_self(long *id); } + SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } + SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } + SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, const struct timespec *abstime); } + SYS_THR_SUSPEND = 442 // { int thr_suspend(const struct timespec *timeout); } + SYS_THR_WAKE = 443 // { int thr_wake(long id); } + SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } + SYS_AUDIT = 445 // { int audit(const void *record, u_int length); } + SYS_AUDITON = 446 // { int auditon(int cmd, void *data, u_int length); } + SYS_GETAUID = 447 // { int getauid(uid_t *auid); } + SYS_SETAUID = 448 // { int setauid(uid_t *auid); } + SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } + SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } + SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_AUDITCTL = 453 // { int auditctl(char *path); } + SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, u_long val, void *uaddr1, void *uaddr2); } + SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, int param_size); } + SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } + SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, mode_t mode, const struct mq_attr *attr); } + SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, const struct mq_attr *attr, struct mq_attr *oattr); } + SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, const struct sigevent *sigev); } + SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); } + SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } + SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } + SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); } + SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, lwpid_t lwpid, struct rtprio *rtp); } + SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } + SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, struct sockaddr *from, __socklen_t *fromlenaddr, struct sctp_sndrcvinfo *sinfo, int *msg_flags); } + SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset); } + SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset); } + SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); } + SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, int whence); } + SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } + SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } + SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } + SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, mode_t mode); } + SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } + SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } + SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); } + SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid); } + SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *mask); } + SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *mask); } + SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, int flag); } + SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag); } + SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, char **envv); } + SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, struct timeval *times); } + SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); } + SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } + SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } + SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, mode_t mode); } + SYS_READLINKAT = 500 // { ssize_t readlinkat(int fd, char *path, char *buf, size_t bufsize); } + SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, char *new); } + SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, char *path2); } + SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } + SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } + SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); } + SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } + SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } + SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } + SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, int fd, cap_rights_t *rightsp); } + SYS_CAP_ENTER = 516 // { int cap_enter(void); } + SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } + SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } + SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } + SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } + SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sm); } + SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, size_t namelen); } + SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } + SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, off_t offset, off_t len); } + SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, off_t len, int advice); } + SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); } + SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, cap_rights_t *rightsp); } + SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, const u_long *cmds, size_t ncmds); } + SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, u_long *cmds, size_t maxcmds); } + SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, uint32_t fcntlrights); } + SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, uint32_t *fcntlrightsp); } + SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, int namelen); } + SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, int namelen); } + SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, u_long flags, int atflag); } + SYS_ACCEPT4 = 541 // { int accept4(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen, int flags); } + SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } + SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); } + SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, int com, void *data); } + SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } + SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } + SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } + SYS_FDATASYNC = 550 // { int fdatasync(int fd); } + SYS_FSTAT = 551 // { int fstat(int fd, struct stat *sb); } + SYS_FSTATAT = 552 // { int fstatat(int fd, char *path, struct stat *buf, int flag); } + SYS_FHSTAT = 553 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } + SYS_GETDIRENTRIES = 554 // { ssize_t getdirentries(int fd, char *buf, size_t count, off_t *basep); } + SYS_STATFS = 555 // { int statfs(char *path, struct statfs *buf); } + SYS_FSTATFS = 556 // { int fstatfs(int fd, struct statfs *buf); } + SYS_GETFSSTAT = 557 // { int getfsstat(struct statfs *buf, long bufsize, int mode); } + SYS_FHSTATFS = 558 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } + SYS_MKNODAT = 559 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } + SYS_KEVENT = 560 // { int kevent(int fd, struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_CPUSET_GETDOMAIN = 561 // { int cpuset_getdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int *policy); } + SYS_CPUSET_SETDOMAIN = 562 // { int cpuset_setdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int policy); } + SYS_GETRANDOM = 563 // { int getrandom(void *buf, size_t buflen, unsigned int flags); } + SYS_GETFHAT = 564 // { int getfhat(int fd, char *path, struct fhandle *fhp, int flags); } + SYS_FHLINK = 565 // { int fhlink(struct fhandle *fhp, const char *to); } + SYS_FHLINKAT = 566 // { int fhlinkat(struct fhandle *fhp, int tofd, const char *to,); } + SYS_FHREADLINK = 567 // { int fhreadlink(struct fhandle *fhp, char *buf, size_t bufsize); } + SYS___SYSCTLBYNAME = 570 // { int __sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_CLOSE_RANGE = 575 // { int close_range(u_int lowfd, u_int highfd, int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go new file mode 100644 index 0000000..89dcc42 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go @@ -0,0 +1,394 @@ +// go run mksysnum.go https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && freebsd +// +build arm64,freebsd + +package unix + +const ( + // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int + SYS_EXIT = 1 // { void sys_exit(int rval); } exit sys_exit_args void + SYS_FORK = 2 // { int fork(void); } + SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } + SYS_CLOSE = 6 // { int close(int fd); } + SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } + SYS_LINK = 9 // { int link(char *path, char *link); } + SYS_UNLINK = 10 // { int unlink(char *path); } + SYS_CHDIR = 12 // { int chdir(char *path); } + SYS_FCHDIR = 13 // { int fchdir(int fd); } + SYS_CHMOD = 15 // { int chmod(char *path, int mode); } + SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } + SYS_BREAK = 17 // { caddr_t break(char *nsize); } + SYS_GETPID = 20 // { pid_t getpid(void); } + SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); } + SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } + SYS_SETUID = 23 // { int setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t getuid(void); } + SYS_GETEUID = 25 // { uid_t geteuid(void); } + SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, struct sockaddr * __restrict from, __socklen_t * __restrict fromlenaddr); } + SYS_ACCEPT = 30 // { int accept(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen); } + SYS_GETPEERNAME = 31 // { int getpeername(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_ACCESS = 33 // { int access(char *path, int amode); } + SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { int sync(void); } + SYS_KILL = 37 // { int kill(int pid, int signum); } + SYS_GETPPID = 39 // { pid_t getppid(void); } + SYS_DUP = 41 // { int dup(u_int fd); } + SYS_GETEGID = 43 // { gid_t getegid(void); } + SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); } + SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); } + SYS_GETGID = 47 // { gid_t getgid(void); } + SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); } + SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } + SYS_ACCT = 51 // { int acct(char *path); } + SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } + SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } + SYS_REBOOT = 55 // { int reboot(int opt); } + SYS_REVOKE = 56 // { int revoke(char *path); } + SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } + SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } + SYS_UMASK = 60 // { int umask(int newmask); } + SYS_CHROOT = 61 // { int chroot(char *path); } + SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } + SYS_VFORK = 66 // { int vfork(void); } + SYS_SBRK = 69 // { int sbrk(int incr); } + SYS_SSTK = 70 // { int sstk(int incr); } + SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } + SYS_GETPGRP = 81 // { int getpgrp(void); } + SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } + SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } + SYS_SWAPON = 85 // { int swapon(char *name); } + SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } + SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } + SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } + SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } + SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_FSYNC = 95 // { int fsync(int fd); } + SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } + SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } + SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } + SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } + SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); } + SYS_LISTEN = 106 // { int listen(int s, int backlog); } + SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } + SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); } + SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); } + SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } + SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } + SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } + SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } + SYS_RENAME = 128 // { int rename(char *from, char *to); } + SYS_FLOCK = 131 // { int flock(int fd, int how); } + SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } + SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); } + SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } + SYS_RMDIR = 137 // { int rmdir(char *path); } + SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } + SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); } + SYS_SETSID = 147 // { int setsid(void); } + SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); } + SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); } + SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); } + SYS_LGETFH = 160 // { int lgetfh(char *fname, struct fhandle *fhp); } + SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } + SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } + SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); } + SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } + SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } + SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } + SYS_SETFIB = 175 // { int setfib(int fibnum); } + SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int setgid(gid_t gid); } + SYS_SETEGID = 182 // { int setegid(gid_t egid); } + SYS_SETEUID = 183 // { int seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } + SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int + SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int + SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int + SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int undelete(char *path); } + SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } + SYS_GETPGID = 207 // { int getpgid(pid_t pid); } + SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } + SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); } + SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } + SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct itimerspec *value); } + SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } + SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } + SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate(struct ffclock_estimate *cest); } + SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate(struct ffclock_estimate *cest); } + SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); } + SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id, int which, clockid_t *clock_id); } + SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } + SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } + SYS_RFORK = 251 // { int rfork(int flags); } + SYS_ISSETUGID = 253 // { int issetugid(void); } + SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } + SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); } + SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); } + SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, struct aiocb* const *acb_list, int nent, struct sigevent *sig); } + SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } + SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } + SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } + SYS_MODNEXT = 300 // { int modnext(int modid); } + SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } + SYS_MODFNEXT = 302 // { int modfnext(int modid); } + SYS_MODFIND = 303 // { int modfind(const char *name); } + SYS_KLDLOAD = 304 // { int kldload(const char *file); } + SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } + SYS_KLDFIND = 306 // { int kldfind(const char *file); } + SYS_KLDNEXT = 307 // { int kldnext(int fileid); } + SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat *stat); } + SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } + SYS_GETSID = 310 // { int getsid(pid_t pid); } + SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); } + SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } + SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } + SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } + SYS_YIELD = 321 // { int yield(void); } + SYS_MLOCKALL = 324 // { int mlockall(int how); } + SYS_MUNLOCKALL = 325 // { int munlockall(void); } + SYS___GETCWD = 326 // { int __getcwd(char *buf, size_t buflen); } + SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } + SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } + SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } + SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } + SYS_SCHED_YIELD = 331 // { int sched_yield (void); } + SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } + SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } + SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } + SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } + SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } + SYS_JAIL = 338 // { int jail(struct jail *jail); } + SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); } + SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } + SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } + SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); } + SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, siginfo_t *info); } + SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); } + SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } + SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } + SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_KQUEUE = 362 // { int kqueue(void); } + SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS___SETUGID = 374 // { int __setugid(int flag); } + SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } + SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } + SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } + SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, struct mac *mac_p); } + SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, struct mac *mac_p); } + SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, struct mac *mac_p); } + SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } + SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); } + SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } + SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } + SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } + SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); } + SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); } + SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); } + SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); } + SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, unsigned int value); } + SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode, unsigned int value); } + SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); } + SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); } + SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); } + SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); } + SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, struct mac *mac_p); } + SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, char **envv, struct mac *mac_p); } + SYS_SIGACTION = 416 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); } + SYS_SIGRETURN = 417 // { int sigreturn(const struct __ucontext *sigcntxp); } + SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 422 // { int setcontext(const struct __ucontext *ucp); } + SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, const struct __ucontext *ucp); } + SYS_SWAPOFF = 424 // { int swapoff(const char *name); } + SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, acl_type_t type); } + SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, int *sig); } + SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, int flags); } + SYS_THR_EXIT = 431 // { void thr_exit(long *state); } + SYS_THR_SELF = 432 // { int thr_self(long *id); } + SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } + SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } + SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, const struct timespec *abstime); } + SYS_THR_SUSPEND = 442 // { int thr_suspend(const struct timespec *timeout); } + SYS_THR_WAKE = 443 // { int thr_wake(long id); } + SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } + SYS_AUDIT = 445 // { int audit(const void *record, u_int length); } + SYS_AUDITON = 446 // { int auditon(int cmd, void *data, u_int length); } + SYS_GETAUID = 447 // { int getauid(uid_t *auid); } + SYS_SETAUID = 448 // { int setauid(uid_t *auid); } + SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } + SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } + SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_AUDITCTL = 453 // { int auditctl(char *path); } + SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, u_long val, void *uaddr1, void *uaddr2); } + SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, int param_size); } + SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } + SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, mode_t mode, const struct mq_attr *attr); } + SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, const struct mq_attr *attr, struct mq_attr *oattr); } + SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, const struct sigevent *sigev); } + SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); } + SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } + SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } + SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); } + SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, lwpid_t lwpid, struct rtprio *rtp); } + SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } + SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, struct sockaddr *from, __socklen_t *fromlenaddr, struct sctp_sndrcvinfo *sinfo, int *msg_flags); } + SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset); } + SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset); } + SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); } + SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, int whence); } + SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } + SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } + SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } + SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, mode_t mode); } + SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } + SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } + SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); } + SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid); } + SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *mask); } + SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *mask); } + SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, int flag); } + SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag); } + SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, char **envv); } + SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, struct timeval *times); } + SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); } + SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } + SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } + SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, mode_t mode); } + SYS_READLINKAT = 500 // { ssize_t readlinkat(int fd, char *path, char *buf, size_t bufsize); } + SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, char *new); } + SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, char *path2); } + SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } + SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } + SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); } + SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } + SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } + SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } + SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, int fd, cap_rights_t *rightsp); } + SYS_CAP_ENTER = 516 // { int cap_enter(void); } + SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } + SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } + SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } + SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } + SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sm); } + SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, size_t namelen); } + SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } + SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, off_t offset, off_t len); } + SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, off_t len, int advice); } + SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); } + SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, cap_rights_t *rightsp); } + SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, const u_long *cmds, size_t ncmds); } + SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, u_long *cmds, size_t maxcmds); } + SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, uint32_t fcntlrights); } + SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, uint32_t *fcntlrightsp); } + SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, int namelen); } + SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, int namelen); } + SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, u_long flags, int atflag); } + SYS_ACCEPT4 = 541 // { int accept4(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen, int flags); } + SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } + SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); } + SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, int com, void *data); } + SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } + SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } + SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } + SYS_FDATASYNC = 550 // { int fdatasync(int fd); } + SYS_FSTAT = 551 // { int fstat(int fd, struct stat *sb); } + SYS_FSTATAT = 552 // { int fstatat(int fd, char *path, struct stat *buf, int flag); } + SYS_FHSTAT = 553 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } + SYS_GETDIRENTRIES = 554 // { ssize_t getdirentries(int fd, char *buf, size_t count, off_t *basep); } + SYS_STATFS = 555 // { int statfs(char *path, struct statfs *buf); } + SYS_FSTATFS = 556 // { int fstatfs(int fd, struct statfs *buf); } + SYS_GETFSSTAT = 557 // { int getfsstat(struct statfs *buf, long bufsize, int mode); } + SYS_FHSTATFS = 558 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } + SYS_MKNODAT = 559 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } + SYS_KEVENT = 560 // { int kevent(int fd, struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_CPUSET_GETDOMAIN = 561 // { int cpuset_getdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int *policy); } + SYS_CPUSET_SETDOMAIN = 562 // { int cpuset_setdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int policy); } + SYS_GETRANDOM = 563 // { int getrandom(void *buf, size_t buflen, unsigned int flags); } + SYS_GETFHAT = 564 // { int getfhat(int fd, char *path, struct fhandle *fhp, int flags); } + SYS_FHLINK = 565 // { int fhlink(struct fhandle *fhp, const char *to); } + SYS_FHLINKAT = 566 // { int fhlinkat(struct fhandle *fhp, int tofd, const char *to,); } + SYS_FHREADLINK = 567 // { int fhreadlink(struct fhandle *fhp, char *buf, size_t bufsize); } + SYS___SYSCTLBYNAME = 570 // { int __sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_CLOSE_RANGE = 575 // { int close_range(u_int lowfd, u_int highfd, int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go new file mode 100644 index 0000000..ee37aaa --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go @@ -0,0 +1,394 @@ +// go run mksysnum.go https://cgit.freebsd.org/src/plain/sys/kern/syscalls.master?h=stable/12 +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && freebsd +// +build riscv64,freebsd + +package unix + +const ( + // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int + SYS_EXIT = 1 // { void sys_exit(int rval); } exit sys_exit_args void + SYS_FORK = 2 // { int fork(void); } + SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } + SYS_CLOSE = 6 // { int close(int fd); } + SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } + SYS_LINK = 9 // { int link(char *path, char *link); } + SYS_UNLINK = 10 // { int unlink(char *path); } + SYS_CHDIR = 12 // { int chdir(char *path); } + SYS_FCHDIR = 13 // { int fchdir(int fd); } + SYS_CHMOD = 15 // { int chmod(char *path, int mode); } + SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } + SYS_BREAK = 17 // { caddr_t break(char *nsize); } + SYS_GETPID = 20 // { pid_t getpid(void); } + SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); } + SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } + SYS_SETUID = 23 // { int setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t getuid(void); } + SYS_GETEUID = 25 // { uid_t geteuid(void); } + SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, struct sockaddr * __restrict from, __socklen_t * __restrict fromlenaddr); } + SYS_ACCEPT = 30 // { int accept(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen); } + SYS_GETPEERNAME = 31 // { int getpeername(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, struct sockaddr * __restrict asa, __socklen_t * __restrict alen); } + SYS_ACCESS = 33 // { int access(char *path, int amode); } + SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { int sync(void); } + SYS_KILL = 37 // { int kill(int pid, int signum); } + SYS_GETPPID = 39 // { pid_t getppid(void); } + SYS_DUP = 41 // { int dup(u_int fd); } + SYS_GETEGID = 43 // { gid_t getegid(void); } + SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); } + SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); } + SYS_GETGID = 47 // { gid_t getgid(void); } + SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); } + SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } + SYS_ACCT = 51 // { int acct(char *path); } + SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } + SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } + SYS_REBOOT = 55 // { int reboot(int opt); } + SYS_REVOKE = 56 // { int revoke(char *path); } + SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } + SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } + SYS_UMASK = 60 // { int umask(int newmask); } + SYS_CHROOT = 61 // { int chroot(char *path); } + SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } + SYS_VFORK = 66 // { int vfork(void); } + SYS_SBRK = 69 // { int sbrk(int incr); } + SYS_SSTK = 70 // { int sstk(int incr); } + SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } + SYS_GETPGRP = 81 // { int getpgrp(void); } + SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } + SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } + SYS_SWAPON = 85 // { int swapon(char *name); } + SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } + SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } + SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } + SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } + SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_FSYNC = 95 // { int fsync(int fd); } + SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } + SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } + SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } + SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } + SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); } + SYS_LISTEN = 106 // { int listen(int s, int backlog); } + SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } + SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); } + SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); } + SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); } + SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } + SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } + SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } + SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } + SYS_RENAME = 128 // { int rename(char *from, char *to); } + SYS_FLOCK = 131 // { int flock(int fd, int how); } + SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } + SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); } + SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } + SYS_RMDIR = 137 // { int rmdir(char *path); } + SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } + SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); } + SYS_SETSID = 147 // { int setsid(void); } + SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); } + SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); } + SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); } + SYS_LGETFH = 160 // { int lgetfh(char *fname, struct fhandle *fhp); } + SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } + SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } + SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); } + SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, int a4, int a5); } + SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, int a4, int a5, int a6); } + SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, int a4); } + SYS_SETFIB = 175 // { int setfib(int fibnum); } + SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int setgid(gid_t gid); } + SYS_SETEGID = 182 // { int setegid(gid_t egid); } + SYS_SETEUID = 183 // { int seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } + SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int + SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int + SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } __sysctl sysctl_args int + SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int undelete(char *path); } + SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } + SYS_GETPGID = 207 // { int getpgid(pid_t pid); } + SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } + SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, struct sigevent *evp, int *timerid); } + SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } + SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct itimerspec *value); } + SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } + SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } + SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate(struct ffclock_estimate *cest); } + SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate(struct ffclock_estimate *cest); } + SYS_CLOCK_NANOSLEEP = 244 // { int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); } + SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id, int which, clockid_t *clock_id); } + SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } + SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } + SYS_RFORK = 251 // { int rfork(int flags); } + SYS_ISSETUGID = 253 // { int issetugid(void); } + SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } + SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); } + SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); } + SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, struct aiocb* const *acb_list, int nent, struct sigevent *sig); } + SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } + SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } + SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, u_int iovcnt, off_t offset); } + SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } + SYS_MODNEXT = 300 // { int modnext(int modid); } + SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } + SYS_MODFNEXT = 302 // { int modfnext(int modid); } + SYS_MODFIND = 303 // { int modfind(const char *name); } + SYS_KLDLOAD = 304 // { int kldload(const char *file); } + SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } + SYS_KLDFIND = 306 // { int kldfind(const char *file); } + SYS_KLDNEXT = 307 // { int kldnext(int fileid); } + SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat *stat); } + SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } + SYS_GETSID = 310 // { int getsid(pid_t pid); } + SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_AIO_RETURN = 314 // { ssize_t aio_return(struct aiocb *aiocbp); } + SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } + SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } + SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } + SYS_YIELD = 321 // { int yield(void); } + SYS_MLOCKALL = 324 // { int mlockall(int how); } + SYS_MUNLOCKALL = 325 // { int munlockall(void); } + SYS___GETCWD = 326 // { int __getcwd(char *buf, size_t buflen); } + SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } + SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } + SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } + SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } + SYS_SCHED_YIELD = 331 // { int sched_yield (void); } + SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } + SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } + SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } + SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } + SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } + SYS_JAIL = 338 // { int jail(struct jail *jail); } + SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, sigset_t *oset); } + SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } + SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } + SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); } + SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, siginfo_t *info); } + SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, acl_type_t type); } + SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } + SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); } + SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_AIO_WAITCOMPLETE = 359 // { ssize_t aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } + SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_KQUEUE = 362 // { int kqueue(void); } + SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS___SETUGID = 374 // { int __setugid(int flag); } + SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } + SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } + SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } + SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, struct mac *mac_p); } + SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, struct mac *mac_p); } + SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, struct mac *mac_p); } + SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } + SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); } + SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } + SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); } + SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, int call, void *arg); } + SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); } + SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); } + SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); } + SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); } + SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, unsigned int value); } + SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode, unsigned int value); } + SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); } + SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); } + SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); } + SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, struct mac *mac_p); } + SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, struct mac *mac_p); } + SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, struct mac *mac_p); } + SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, char **envv, struct mac *mac_p); } + SYS_SIGACTION = 416 // { int sigaction(int sig, const struct sigaction *act, struct sigaction *oact); } + SYS_SIGRETURN = 417 // { int sigreturn(const struct __ucontext *sigcntxp); } + SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 422 // { int setcontext(const struct __ucontext *ucp); } + SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, const struct __ucontext *ucp); } + SYS_SWAPOFF = 424 // { int swapoff(const char *name); } + SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, acl_type_t type); } + SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, acl_type_t type, struct acl *aclp); } + SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, int *sig); } + SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, int flags); } + SYS_THR_EXIT = 431 // { void thr_exit(long *state); } + SYS_THR_SELF = 432 // { int thr_self(long *id); } + SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } + SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } + SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, const struct timespec *abstime); } + SYS_THR_SUSPEND = 442 // { int thr_suspend(const struct timespec *timeout); } + SYS_THR_WAKE = 443 // { int thr_wake(long id); } + SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } + SYS_AUDIT = 445 // { int audit(const void *record, u_int length); } + SYS_AUDITON = 446 // { int auditon(int cmd, void *data, u_int length); } + SYS_GETAUID = 447 // { int getauid(uid_t *auid); } + SYS_SETAUID = 448 // { int setauid(uid_t *auid); } + SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } + SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } + SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, u_int length); } + SYS_AUDITCTL = 453 // { int auditctl(char *path); } + SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, u_long val, void *uaddr1, void *uaddr2); } + SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, int param_size); } + SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } + SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, mode_t mode, const struct mq_attr *attr); } + SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, const struct mq_attr *attr, struct mq_attr *oattr); } + SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, char *msg_ptr, size_t msg_len, unsigned *msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abs_timeout); } + SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, const struct sigevent *sigev); } + SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); } + SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } + SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } + SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); } + SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, lwpid_t lwpid, struct rtprio *rtp); } + SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } + SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, caddr_t to, __socklen_t tolen, struct sctp_sndrcvinfo *sinfo, int flags); } + SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, struct sockaddr *from, __socklen_t *fromlenaddr, struct sctp_sndrcvinfo *sinfo, int *msg_flags); } + SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset); } + SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset); } + SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos); } + SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, int whence); } + SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } + SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } + SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } + SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, mode_t mode); } + SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } + SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } + SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); } + SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t *setid); } + SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *mask); } + SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t *mask); } + SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, int flag); } + SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag); } + SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, char **envv); } + SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, struct timeval *times); } + SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, char *path2, int flag); } + SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } + SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } + SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, mode_t mode); } + SYS_READLINKAT = 500 // { ssize_t readlinkat(int fd, char *path, char *buf, size_t bufsize); } + SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, char *new); } + SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, char *path2); } + SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } + SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } + SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); } + SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, unsigned int iovcnt, int flags); } + SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } + SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } + SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } + SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, int fd, cap_rights_t *rightsp); } + SYS_CAP_ENTER = 516 // { int cap_enter(void); } + SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } + SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } + SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } + SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } + SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *sm); } + SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, size_t namelen); } + SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } + SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, size_t inbuflen, void *outbufp, size_t outbuflen); } + SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, off_t offset, off_t len); } + SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, off_t len, int advice); } + SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); } + SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, cap_rights_t *rightsp); } + SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, const u_long *cmds, size_t ncmds); } + SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, u_long *cmds, size_t maxcmds); } + SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, uint32_t fcntlrights); } + SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, uint32_t *fcntlrightsp); } + SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, int namelen); } + SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, int namelen); } + SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, u_long flags, int atflag); } + SYS_ACCEPT4 = 541 // { int accept4(int s, struct sockaddr * __restrict name, __socklen_t * __restrict anamelen, int flags); } + SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } + SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); } + SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, int com, void *data); } + SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *set); } + SYS_FUTIMENS = 546 // { int futimens(int fd, struct timespec *times); } + SYS_UTIMENSAT = 547 // { int utimensat(int fd, char *path, struct timespec *times, int flag); } + SYS_FDATASYNC = 550 // { int fdatasync(int fd); } + SYS_FSTAT = 551 // { int fstat(int fd, struct stat *sb); } + SYS_FSTATAT = 552 // { int fstatat(int fd, char *path, struct stat *buf, int flag); } + SYS_FHSTAT = 553 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } + SYS_GETDIRENTRIES = 554 // { ssize_t getdirentries(int fd, char *buf, size_t count, off_t *basep); } + SYS_STATFS = 555 // { int statfs(char *path, struct statfs *buf); } + SYS_FSTATFS = 556 // { int fstatfs(int fd, struct statfs *buf); } + SYS_GETFSSTAT = 557 // { int getfsstat(struct statfs *buf, long bufsize, int mode); } + SYS_FHSTATFS = 558 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } + SYS_MKNODAT = 559 // { int mknodat(int fd, char *path, mode_t mode, dev_t dev); } + SYS_KEVENT = 560 // { int kevent(int fd, struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_CPUSET_GETDOMAIN = 561 // { int cpuset_getdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int *policy); } + SYS_CPUSET_SETDOMAIN = 562 // { int cpuset_setdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t *mask, int policy); } + SYS_GETRANDOM = 563 // { int getrandom(void *buf, size_t buflen, unsigned int flags); } + SYS_GETFHAT = 564 // { int getfhat(int fd, char *path, struct fhandle *fhp, int flags); } + SYS_FHLINK = 565 // { int fhlink(struct fhandle *fhp, const char *to); } + SYS_FHLINKAT = 566 // { int fhlinkat(struct fhandle *fhp, int tofd, const char *to,); } + SYS_FHREADLINK = 567 // { int fhreadlink(struct fhandle *fhp, char *buf, size_t bufsize); } + SYS___SYSCTLBYNAME = 570 // { int __sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_CLOSE_RANGE = 575 // { int close_range(u_int lowfd, u_int highfd, int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go new file mode 100644 index 0000000..c9c4ad0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -0,0 +1,450 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/386/include -m32 /tmp/386/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && linux +// +build 386,linux + +package unix + +const ( + SYS_RESTART_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAITPID = 7 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECVE = 11 + SYS_CHDIR = 12 + SYS_TIME = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LCHOWN = 16 + SYS_BREAK = 17 + SYS_OLDSTAT = 18 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_MOUNT = 21 + SYS_UMOUNT = 22 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_STIME = 25 + SYS_PTRACE = 26 + SYS_ALARM = 27 + SYS_OLDFSTAT = 28 + SYS_PAUSE = 29 + SYS_UTIME = 30 + SYS_STTY = 31 + SYS_GTTY = 32 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_FTIME = 35 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_RENAME = 38 + SYS_MKDIR = 39 + SYS_RMDIR = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_PROF = 44 + SYS_BRK = 45 + SYS_SETGID = 46 + SYS_GETGID = 47 + SYS_SIGNAL = 48 + SYS_GETEUID = 49 + SYS_GETEGID = 50 + SYS_ACCT = 51 + SYS_UMOUNT2 = 52 + SYS_LOCK = 53 + SYS_IOCTL = 54 + SYS_FCNTL = 55 + SYS_MPX = 56 + SYS_SETPGID = 57 + SYS_ULIMIT = 58 + SYS_OLDOLDUNAME = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_USTAT = 62 + SYS_DUP2 = 63 + SYS_GETPPID = 64 + SYS_GETPGRP = 65 + SYS_SETSID = 66 + SYS_SIGACTION = 67 + SYS_SGETMASK = 68 + SYS_SSETMASK = 69 + SYS_SETREUID = 70 + SYS_SETREGID = 71 + SYS_SIGSUSPEND = 72 + SYS_SIGPENDING = 73 + SYS_SETHOSTNAME = 74 + SYS_SETRLIMIT = 75 + SYS_GETRLIMIT = 76 + SYS_GETRUSAGE = 77 + SYS_GETTIMEOFDAY = 78 + SYS_SETTIMEOFDAY = 79 + SYS_GETGROUPS = 80 + SYS_SETGROUPS = 81 + SYS_SELECT = 82 + SYS_SYMLINK = 83 + SYS_OLDLSTAT = 84 + SYS_READLINK = 85 + SYS_USELIB = 86 + SYS_SWAPON = 87 + SYS_REBOOT = 88 + SYS_READDIR = 89 + SYS_MMAP = 90 + SYS_MUNMAP = 91 + SYS_TRUNCATE = 92 + SYS_FTRUNCATE = 93 + SYS_FCHMOD = 94 + SYS_FCHOWN = 95 + SYS_GETPRIORITY = 96 + SYS_SETPRIORITY = 97 + SYS_PROFIL = 98 + SYS_STATFS = 99 + SYS_FSTATFS = 100 + SYS_IOPERM = 101 + SYS_SOCKETCALL = 102 + SYS_SYSLOG = 103 + SYS_SETITIMER = 104 + SYS_GETITIMER = 105 + SYS_STAT = 106 + SYS_LSTAT = 107 + SYS_FSTAT = 108 + SYS_OLDUNAME = 109 + SYS_IOPL = 110 + SYS_VHANGUP = 111 + SYS_IDLE = 112 + SYS_VM86OLD = 113 + SYS_WAIT4 = 114 + SYS_SWAPOFF = 115 + SYS_SYSINFO = 116 + SYS_IPC = 117 + SYS_FSYNC = 118 + SYS_SIGRETURN = 119 + SYS_CLONE = 120 + SYS_SETDOMAINNAME = 121 + SYS_UNAME = 122 + SYS_MODIFY_LDT = 123 + SYS_ADJTIMEX = 124 + SYS_MPROTECT = 125 + SYS_SIGPROCMASK = 126 + SYS_CREATE_MODULE = 127 + SYS_INIT_MODULE = 128 + SYS_DELETE_MODULE = 129 + SYS_GET_KERNEL_SYMS = 130 + SYS_QUOTACTL = 131 + SYS_GETPGID = 132 + SYS_FCHDIR = 133 + SYS_BDFLUSH = 134 + SYS_SYSFS = 135 + SYS_PERSONALITY = 136 + SYS_AFS_SYSCALL = 137 + SYS_SETFSUID = 138 + SYS_SETFSGID = 139 + SYS__LLSEEK = 140 + SYS_GETDENTS = 141 + SYS__NEWSELECT = 142 + SYS_FLOCK = 143 + SYS_MSYNC = 144 + SYS_READV = 145 + SYS_WRITEV = 146 + SYS_GETSID = 147 + SYS_FDATASYNC = 148 + SYS__SYSCTL = 149 + SYS_MLOCK = 150 + SYS_MUNLOCK = 151 + SYS_MLOCKALL = 152 + SYS_MUNLOCKALL = 153 + SYS_SCHED_SETPARAM = 154 + SYS_SCHED_GETPARAM = 155 + SYS_SCHED_SETSCHEDULER = 156 + SYS_SCHED_GETSCHEDULER = 157 + SYS_SCHED_YIELD = 158 + SYS_SCHED_GET_PRIORITY_MAX = 159 + SYS_SCHED_GET_PRIORITY_MIN = 160 + SYS_SCHED_RR_GET_INTERVAL = 161 + SYS_NANOSLEEP = 162 + SYS_MREMAP = 163 + SYS_SETRESUID = 164 + SYS_GETRESUID = 165 + SYS_VM86 = 166 + SYS_QUERY_MODULE = 167 + SYS_POLL = 168 + SYS_NFSSERVCTL = 169 + SYS_SETRESGID = 170 + SYS_GETRESGID = 171 + SYS_PRCTL = 172 + SYS_RT_SIGRETURN = 173 + SYS_RT_SIGACTION = 174 + SYS_RT_SIGPROCMASK = 175 + SYS_RT_SIGPENDING = 176 + SYS_RT_SIGTIMEDWAIT = 177 + SYS_RT_SIGQUEUEINFO = 178 + SYS_RT_SIGSUSPEND = 179 + SYS_PREAD64 = 180 + SYS_PWRITE64 = 181 + SYS_CHOWN = 182 + SYS_GETCWD = 183 + SYS_CAPGET = 184 + SYS_CAPSET = 185 + SYS_SIGALTSTACK = 186 + SYS_SENDFILE = 187 + SYS_GETPMSG = 188 + SYS_PUTPMSG = 189 + SYS_VFORK = 190 + SYS_UGETRLIMIT = 191 + SYS_MMAP2 = 192 + SYS_TRUNCATE64 = 193 + SYS_FTRUNCATE64 = 194 + SYS_STAT64 = 195 + SYS_LSTAT64 = 196 + SYS_FSTAT64 = 197 + SYS_LCHOWN32 = 198 + SYS_GETUID32 = 199 + SYS_GETGID32 = 200 + SYS_GETEUID32 = 201 + SYS_GETEGID32 = 202 + SYS_SETREUID32 = 203 + SYS_SETREGID32 = 204 + SYS_GETGROUPS32 = 205 + SYS_SETGROUPS32 = 206 + SYS_FCHOWN32 = 207 + SYS_SETRESUID32 = 208 + SYS_GETRESUID32 = 209 + SYS_SETRESGID32 = 210 + SYS_GETRESGID32 = 211 + SYS_CHOWN32 = 212 + SYS_SETUID32 = 213 + SYS_SETGID32 = 214 + SYS_SETFSUID32 = 215 + SYS_SETFSGID32 = 216 + SYS_PIVOT_ROOT = 217 + SYS_MINCORE = 218 + SYS_MADVISE = 219 + SYS_GETDENTS64 = 220 + SYS_FCNTL64 = 221 + SYS_GETTID = 224 + SYS_READAHEAD = 225 + SYS_SETXATTR = 226 + SYS_LSETXATTR = 227 + SYS_FSETXATTR = 228 + SYS_GETXATTR = 229 + SYS_LGETXATTR = 230 + SYS_FGETXATTR = 231 + SYS_LISTXATTR = 232 + SYS_LLISTXATTR = 233 + SYS_FLISTXATTR = 234 + SYS_REMOVEXATTR = 235 + SYS_LREMOVEXATTR = 236 + SYS_FREMOVEXATTR = 237 + SYS_TKILL = 238 + SYS_SENDFILE64 = 239 + SYS_FUTEX = 240 + SYS_SCHED_SETAFFINITY = 241 + SYS_SCHED_GETAFFINITY = 242 + SYS_SET_THREAD_AREA = 243 + SYS_GET_THREAD_AREA = 244 + SYS_IO_SETUP = 245 + SYS_IO_DESTROY = 246 + SYS_IO_GETEVENTS = 247 + SYS_IO_SUBMIT = 248 + SYS_IO_CANCEL = 249 + SYS_FADVISE64 = 250 + SYS_EXIT_GROUP = 252 + SYS_LOOKUP_DCOOKIE = 253 + SYS_EPOLL_CREATE = 254 + SYS_EPOLL_CTL = 255 + SYS_EPOLL_WAIT = 256 + SYS_REMAP_FILE_PAGES = 257 + SYS_SET_TID_ADDRESS = 258 + SYS_TIMER_CREATE = 259 + SYS_TIMER_SETTIME = 260 + SYS_TIMER_GETTIME = 261 + SYS_TIMER_GETOVERRUN = 262 + SYS_TIMER_DELETE = 263 + SYS_CLOCK_SETTIME = 264 + SYS_CLOCK_GETTIME = 265 + SYS_CLOCK_GETRES = 266 + SYS_CLOCK_NANOSLEEP = 267 + SYS_STATFS64 = 268 + SYS_FSTATFS64 = 269 + SYS_TGKILL = 270 + SYS_UTIMES = 271 + SYS_FADVISE64_64 = 272 + SYS_VSERVER = 273 + SYS_MBIND = 274 + SYS_GET_MEMPOLICY = 275 + SYS_SET_MEMPOLICY = 276 + SYS_MQ_OPEN = 277 + SYS_MQ_UNLINK = 278 + SYS_MQ_TIMEDSEND = 279 + SYS_MQ_TIMEDRECEIVE = 280 + SYS_MQ_NOTIFY = 281 + SYS_MQ_GETSETATTR = 282 + SYS_KEXEC_LOAD = 283 + SYS_WAITID = 284 + SYS_ADD_KEY = 286 + SYS_REQUEST_KEY = 287 + SYS_KEYCTL = 288 + SYS_IOPRIO_SET = 289 + SYS_IOPRIO_GET = 290 + SYS_INOTIFY_INIT = 291 + SYS_INOTIFY_ADD_WATCH = 292 + SYS_INOTIFY_RM_WATCH = 293 + SYS_MIGRATE_PAGES = 294 + SYS_OPENAT = 295 + SYS_MKDIRAT = 296 + SYS_MKNODAT = 297 + SYS_FCHOWNAT = 298 + SYS_FUTIMESAT = 299 + SYS_FSTATAT64 = 300 + SYS_UNLINKAT = 301 + SYS_RENAMEAT = 302 + SYS_LINKAT = 303 + SYS_SYMLINKAT = 304 + SYS_READLINKAT = 305 + SYS_FCHMODAT = 306 + SYS_FACCESSAT = 307 + SYS_PSELECT6 = 308 + SYS_PPOLL = 309 + SYS_UNSHARE = 310 + SYS_SET_ROBUST_LIST = 311 + SYS_GET_ROBUST_LIST = 312 + SYS_SPLICE = 313 + SYS_SYNC_FILE_RANGE = 314 + SYS_TEE = 315 + SYS_VMSPLICE = 316 + SYS_MOVE_PAGES = 317 + SYS_GETCPU = 318 + SYS_EPOLL_PWAIT = 319 + SYS_UTIMENSAT = 320 + SYS_SIGNALFD = 321 + SYS_TIMERFD_CREATE = 322 + SYS_EVENTFD = 323 + SYS_FALLOCATE = 324 + SYS_TIMERFD_SETTIME = 325 + SYS_TIMERFD_GETTIME = 326 + SYS_SIGNALFD4 = 327 + SYS_EVENTFD2 = 328 + SYS_EPOLL_CREATE1 = 329 + SYS_DUP3 = 330 + SYS_PIPE2 = 331 + SYS_INOTIFY_INIT1 = 332 + SYS_PREADV = 333 + SYS_PWRITEV = 334 + SYS_RT_TGSIGQUEUEINFO = 335 + SYS_PERF_EVENT_OPEN = 336 + SYS_RECVMMSG = 337 + SYS_FANOTIFY_INIT = 338 + SYS_FANOTIFY_MARK = 339 + SYS_PRLIMIT64 = 340 + SYS_NAME_TO_HANDLE_AT = 341 + SYS_OPEN_BY_HANDLE_AT = 342 + SYS_CLOCK_ADJTIME = 343 + SYS_SYNCFS = 344 + SYS_SENDMMSG = 345 + SYS_SETNS = 346 + SYS_PROCESS_VM_READV = 347 + SYS_PROCESS_VM_WRITEV = 348 + SYS_KCMP = 349 + SYS_FINIT_MODULE = 350 + SYS_SCHED_SETATTR = 351 + SYS_SCHED_GETATTR = 352 + SYS_RENAMEAT2 = 353 + SYS_SECCOMP = 354 + SYS_GETRANDOM = 355 + SYS_MEMFD_CREATE = 356 + SYS_BPF = 357 + SYS_EXECVEAT = 358 + SYS_SOCKET = 359 + SYS_SOCKETPAIR = 360 + SYS_BIND = 361 + SYS_CONNECT = 362 + SYS_LISTEN = 363 + SYS_ACCEPT4 = 364 + SYS_GETSOCKOPT = 365 + SYS_SETSOCKOPT = 366 + SYS_GETSOCKNAME = 367 + SYS_GETPEERNAME = 368 + SYS_SENDTO = 369 + SYS_SENDMSG = 370 + SYS_RECVFROM = 371 + SYS_RECVMSG = 372 + SYS_SHUTDOWN = 373 + SYS_USERFAULTFD = 374 + SYS_MEMBARRIER = 375 + SYS_MLOCK2 = 376 + SYS_COPY_FILE_RANGE = 377 + SYS_PREADV2 = 378 + SYS_PWRITEV2 = 379 + SYS_PKEY_MPROTECT = 380 + SYS_PKEY_ALLOC = 381 + SYS_PKEY_FREE = 382 + SYS_STATX = 383 + SYS_ARCH_PRCTL = 384 + SYS_IO_PGETEVENTS = 385 + SYS_RSEQ = 386 + SYS_SEMGET = 393 + SYS_SEMCTL = 394 + SYS_SHMGET = 395 + SYS_SHMCTL = 396 + SYS_SHMAT = 397 + SYS_SHMDT = 398 + SYS_MSGGET = 399 + SYS_MSGSND = 400 + SYS_MSGRCV = 401 + SYS_MSGCTL = 402 + SYS_CLOCK_GETTIME64 = 403 + SYS_CLOCK_SETTIME64 = 404 + SYS_CLOCK_ADJTIME64 = 405 + SYS_CLOCK_GETRES_TIME64 = 406 + SYS_CLOCK_NANOSLEEP_TIME64 = 407 + SYS_TIMER_GETTIME64 = 408 + SYS_TIMER_SETTIME64 = 409 + SYS_TIMERFD_GETTIME64 = 410 + SYS_TIMERFD_SETTIME64 = 411 + SYS_UTIMENSAT_TIME64 = 412 + SYS_PSELECT6_TIME64 = 413 + SYS_PPOLL_TIME64 = 414 + SYS_IO_PGETEVENTS_TIME64 = 416 + SYS_RECVMMSG_TIME64 = 417 + SYS_MQ_TIMEDSEND_TIME64 = 418 + SYS_MQ_TIMEDRECEIVE_TIME64 = 419 + SYS_SEMTIMEDOP_TIME64 = 420 + SYS_RT_SIGTIMEDWAIT_TIME64 = 421 + SYS_FUTEX_TIME64 = 422 + SYS_SCHED_RR_GET_INTERVAL_TIME64 = 423 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_MEMFD_SECRET = 447 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go new file mode 100644 index 0000000..12ff341 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -0,0 +1,372 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/amd64/include -m64 /tmp/amd64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && linux +// +build amd64,linux + +package unix + +const ( + SYS_READ = 0 + SYS_WRITE = 1 + SYS_OPEN = 2 + SYS_CLOSE = 3 + SYS_STAT = 4 + SYS_FSTAT = 5 + SYS_LSTAT = 6 + SYS_POLL = 7 + SYS_LSEEK = 8 + SYS_MMAP = 9 + SYS_MPROTECT = 10 + SYS_MUNMAP = 11 + SYS_BRK = 12 + SYS_RT_SIGACTION = 13 + SYS_RT_SIGPROCMASK = 14 + SYS_RT_SIGRETURN = 15 + SYS_IOCTL = 16 + SYS_PREAD64 = 17 + SYS_PWRITE64 = 18 + SYS_READV = 19 + SYS_WRITEV = 20 + SYS_ACCESS = 21 + SYS_PIPE = 22 + SYS_SELECT = 23 + SYS_SCHED_YIELD = 24 + SYS_MREMAP = 25 + SYS_MSYNC = 26 + SYS_MINCORE = 27 + SYS_MADVISE = 28 + SYS_SHMGET = 29 + SYS_SHMAT = 30 + SYS_SHMCTL = 31 + SYS_DUP = 32 + SYS_DUP2 = 33 + SYS_PAUSE = 34 + SYS_NANOSLEEP = 35 + SYS_GETITIMER = 36 + SYS_ALARM = 37 + SYS_SETITIMER = 38 + SYS_GETPID = 39 + SYS_SENDFILE = 40 + SYS_SOCKET = 41 + SYS_CONNECT = 42 + SYS_ACCEPT = 43 + SYS_SENDTO = 44 + SYS_RECVFROM = 45 + SYS_SENDMSG = 46 + SYS_RECVMSG = 47 + SYS_SHUTDOWN = 48 + SYS_BIND = 49 + SYS_LISTEN = 50 + SYS_GETSOCKNAME = 51 + SYS_GETPEERNAME = 52 + SYS_SOCKETPAIR = 53 + SYS_SETSOCKOPT = 54 + SYS_GETSOCKOPT = 55 + SYS_CLONE = 56 + SYS_FORK = 57 + SYS_VFORK = 58 + SYS_EXECVE = 59 + SYS_EXIT = 60 + SYS_WAIT4 = 61 + SYS_KILL = 62 + SYS_UNAME = 63 + SYS_SEMGET = 64 + SYS_SEMOP = 65 + SYS_SEMCTL = 66 + SYS_SHMDT = 67 + SYS_MSGGET = 68 + SYS_MSGSND = 69 + SYS_MSGRCV = 70 + SYS_MSGCTL = 71 + SYS_FCNTL = 72 + SYS_FLOCK = 73 + SYS_FSYNC = 74 + SYS_FDATASYNC = 75 + SYS_TRUNCATE = 76 + SYS_FTRUNCATE = 77 + SYS_GETDENTS = 78 + SYS_GETCWD = 79 + SYS_CHDIR = 80 + SYS_FCHDIR = 81 + SYS_RENAME = 82 + SYS_MKDIR = 83 + SYS_RMDIR = 84 + SYS_CREAT = 85 + SYS_LINK = 86 + SYS_UNLINK = 87 + SYS_SYMLINK = 88 + SYS_READLINK = 89 + SYS_CHMOD = 90 + SYS_FCHMOD = 91 + SYS_CHOWN = 92 + SYS_FCHOWN = 93 + SYS_LCHOWN = 94 + SYS_UMASK = 95 + SYS_GETTIMEOFDAY = 96 + SYS_GETRLIMIT = 97 + SYS_GETRUSAGE = 98 + SYS_SYSINFO = 99 + SYS_TIMES = 100 + SYS_PTRACE = 101 + SYS_GETUID = 102 + SYS_SYSLOG = 103 + SYS_GETGID = 104 + SYS_SETUID = 105 + SYS_SETGID = 106 + SYS_GETEUID = 107 + SYS_GETEGID = 108 + SYS_SETPGID = 109 + SYS_GETPPID = 110 + SYS_GETPGRP = 111 + SYS_SETSID = 112 + SYS_SETREUID = 113 + SYS_SETREGID = 114 + SYS_GETGROUPS = 115 + SYS_SETGROUPS = 116 + SYS_SETRESUID = 117 + SYS_GETRESUID = 118 + SYS_SETRESGID = 119 + SYS_GETRESGID = 120 + SYS_GETPGID = 121 + SYS_SETFSUID = 122 + SYS_SETFSGID = 123 + SYS_GETSID = 124 + SYS_CAPGET = 125 + SYS_CAPSET = 126 + SYS_RT_SIGPENDING = 127 + SYS_RT_SIGTIMEDWAIT = 128 + SYS_RT_SIGQUEUEINFO = 129 + SYS_RT_SIGSUSPEND = 130 + SYS_SIGALTSTACK = 131 + SYS_UTIME = 132 + SYS_MKNOD = 133 + SYS_USELIB = 134 + SYS_PERSONALITY = 135 + SYS_USTAT = 136 + SYS_STATFS = 137 + SYS_FSTATFS = 138 + SYS_SYSFS = 139 + SYS_GETPRIORITY = 140 + SYS_SETPRIORITY = 141 + SYS_SCHED_SETPARAM = 142 + SYS_SCHED_GETPARAM = 143 + SYS_SCHED_SETSCHEDULER = 144 + SYS_SCHED_GETSCHEDULER = 145 + SYS_SCHED_GET_PRIORITY_MAX = 146 + SYS_SCHED_GET_PRIORITY_MIN = 147 + SYS_SCHED_RR_GET_INTERVAL = 148 + SYS_MLOCK = 149 + SYS_MUNLOCK = 150 + SYS_MLOCKALL = 151 + SYS_MUNLOCKALL = 152 + SYS_VHANGUP = 153 + SYS_MODIFY_LDT = 154 + SYS_PIVOT_ROOT = 155 + SYS__SYSCTL = 156 + SYS_PRCTL = 157 + SYS_ARCH_PRCTL = 158 + SYS_ADJTIMEX = 159 + SYS_SETRLIMIT = 160 + SYS_CHROOT = 161 + SYS_SYNC = 162 + SYS_ACCT = 163 + SYS_SETTIMEOFDAY = 164 + SYS_MOUNT = 165 + SYS_UMOUNT2 = 166 + SYS_SWAPON = 167 + SYS_SWAPOFF = 168 + SYS_REBOOT = 169 + SYS_SETHOSTNAME = 170 + SYS_SETDOMAINNAME = 171 + SYS_IOPL = 172 + SYS_IOPERM = 173 + SYS_CREATE_MODULE = 174 + SYS_INIT_MODULE = 175 + SYS_DELETE_MODULE = 176 + SYS_GET_KERNEL_SYMS = 177 + SYS_QUERY_MODULE = 178 + SYS_QUOTACTL = 179 + SYS_NFSSERVCTL = 180 + SYS_GETPMSG = 181 + SYS_PUTPMSG = 182 + SYS_AFS_SYSCALL = 183 + SYS_TUXCALL = 184 + SYS_SECURITY = 185 + SYS_GETTID = 186 + SYS_READAHEAD = 187 + SYS_SETXATTR = 188 + SYS_LSETXATTR = 189 + SYS_FSETXATTR = 190 + SYS_GETXATTR = 191 + SYS_LGETXATTR = 192 + SYS_FGETXATTR = 193 + SYS_LISTXATTR = 194 + SYS_LLISTXATTR = 195 + SYS_FLISTXATTR = 196 + SYS_REMOVEXATTR = 197 + SYS_LREMOVEXATTR = 198 + SYS_FREMOVEXATTR = 199 + SYS_TKILL = 200 + SYS_TIME = 201 + SYS_FUTEX = 202 + SYS_SCHED_SETAFFINITY = 203 + SYS_SCHED_GETAFFINITY = 204 + SYS_SET_THREAD_AREA = 205 + SYS_IO_SETUP = 206 + SYS_IO_DESTROY = 207 + SYS_IO_GETEVENTS = 208 + SYS_IO_SUBMIT = 209 + SYS_IO_CANCEL = 210 + SYS_GET_THREAD_AREA = 211 + SYS_LOOKUP_DCOOKIE = 212 + SYS_EPOLL_CREATE = 213 + SYS_EPOLL_CTL_OLD = 214 + SYS_EPOLL_WAIT_OLD = 215 + SYS_REMAP_FILE_PAGES = 216 + SYS_GETDENTS64 = 217 + SYS_SET_TID_ADDRESS = 218 + SYS_RESTART_SYSCALL = 219 + SYS_SEMTIMEDOP = 220 + SYS_FADVISE64 = 221 + SYS_TIMER_CREATE = 222 + SYS_TIMER_SETTIME = 223 + SYS_TIMER_GETTIME = 224 + SYS_TIMER_GETOVERRUN = 225 + SYS_TIMER_DELETE = 226 + SYS_CLOCK_SETTIME = 227 + SYS_CLOCK_GETTIME = 228 + SYS_CLOCK_GETRES = 229 + SYS_CLOCK_NANOSLEEP = 230 + SYS_EXIT_GROUP = 231 + SYS_EPOLL_WAIT = 232 + SYS_EPOLL_CTL = 233 + SYS_TGKILL = 234 + SYS_UTIMES = 235 + SYS_VSERVER = 236 + SYS_MBIND = 237 + SYS_SET_MEMPOLICY = 238 + SYS_GET_MEMPOLICY = 239 + SYS_MQ_OPEN = 240 + SYS_MQ_UNLINK = 241 + SYS_MQ_TIMEDSEND = 242 + SYS_MQ_TIMEDRECEIVE = 243 + SYS_MQ_NOTIFY = 244 + SYS_MQ_GETSETATTR = 245 + SYS_KEXEC_LOAD = 246 + SYS_WAITID = 247 + SYS_ADD_KEY = 248 + SYS_REQUEST_KEY = 249 + SYS_KEYCTL = 250 + SYS_IOPRIO_SET = 251 + SYS_IOPRIO_GET = 252 + SYS_INOTIFY_INIT = 253 + SYS_INOTIFY_ADD_WATCH = 254 + SYS_INOTIFY_RM_WATCH = 255 + SYS_MIGRATE_PAGES = 256 + SYS_OPENAT = 257 + SYS_MKDIRAT = 258 + SYS_MKNODAT = 259 + SYS_FCHOWNAT = 260 + SYS_FUTIMESAT = 261 + SYS_NEWFSTATAT = 262 + SYS_UNLINKAT = 263 + SYS_RENAMEAT = 264 + SYS_LINKAT = 265 + SYS_SYMLINKAT = 266 + SYS_READLINKAT = 267 + SYS_FCHMODAT = 268 + SYS_FACCESSAT = 269 + SYS_PSELECT6 = 270 + SYS_PPOLL = 271 + SYS_UNSHARE = 272 + SYS_SET_ROBUST_LIST = 273 + SYS_GET_ROBUST_LIST = 274 + SYS_SPLICE = 275 + SYS_TEE = 276 + SYS_SYNC_FILE_RANGE = 277 + SYS_VMSPLICE = 278 + SYS_MOVE_PAGES = 279 + SYS_UTIMENSAT = 280 + SYS_EPOLL_PWAIT = 281 + SYS_SIGNALFD = 282 + SYS_TIMERFD_CREATE = 283 + SYS_EVENTFD = 284 + SYS_FALLOCATE = 285 + SYS_TIMERFD_SETTIME = 286 + SYS_TIMERFD_GETTIME = 287 + SYS_ACCEPT4 = 288 + SYS_SIGNALFD4 = 289 + SYS_EVENTFD2 = 290 + SYS_EPOLL_CREATE1 = 291 + SYS_DUP3 = 292 + SYS_PIPE2 = 293 + SYS_INOTIFY_INIT1 = 294 + SYS_PREADV = 295 + SYS_PWRITEV = 296 + SYS_RT_TGSIGQUEUEINFO = 297 + SYS_PERF_EVENT_OPEN = 298 + SYS_RECVMMSG = 299 + SYS_FANOTIFY_INIT = 300 + SYS_FANOTIFY_MARK = 301 + SYS_PRLIMIT64 = 302 + SYS_NAME_TO_HANDLE_AT = 303 + SYS_OPEN_BY_HANDLE_AT = 304 + SYS_CLOCK_ADJTIME = 305 + SYS_SYNCFS = 306 + SYS_SENDMMSG = 307 + SYS_SETNS = 308 + SYS_GETCPU = 309 + SYS_PROCESS_VM_READV = 310 + SYS_PROCESS_VM_WRITEV = 311 + SYS_KCMP = 312 + SYS_FINIT_MODULE = 313 + SYS_SCHED_SETATTR = 314 + SYS_SCHED_GETATTR = 315 + SYS_RENAMEAT2 = 316 + SYS_SECCOMP = 317 + SYS_GETRANDOM = 318 + SYS_MEMFD_CREATE = 319 + SYS_KEXEC_FILE_LOAD = 320 + SYS_BPF = 321 + SYS_EXECVEAT = 322 + SYS_USERFAULTFD = 323 + SYS_MEMBARRIER = 324 + SYS_MLOCK2 = 325 + SYS_COPY_FILE_RANGE = 326 + SYS_PREADV2 = 327 + SYS_PWRITEV2 = 328 + SYS_PKEY_MPROTECT = 329 + SYS_PKEY_ALLOC = 330 + SYS_PKEY_FREE = 331 + SYS_STATX = 332 + SYS_IO_PGETEVENTS = 333 + SYS_RSEQ = 334 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_MEMFD_SECRET = 447 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go new file mode 100644 index 0000000..c3fb5e7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -0,0 +1,414 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/arm/include /tmp/arm/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && linux +// +build arm,linux + +package unix + +const ( + SYS_SYSCALL_MASK = 0 + SYS_RESTART_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECVE = 11 + SYS_CHDIR = 12 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LCHOWN = 16 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_MOUNT = 21 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_PTRACE = 26 + SYS_PAUSE = 29 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_RENAME = 38 + SYS_MKDIR = 39 + SYS_RMDIR = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_BRK = 45 + SYS_SETGID = 46 + SYS_GETGID = 47 + SYS_GETEUID = 49 + SYS_GETEGID = 50 + SYS_ACCT = 51 + SYS_UMOUNT2 = 52 + SYS_IOCTL = 54 + SYS_FCNTL = 55 + SYS_SETPGID = 57 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_USTAT = 62 + SYS_DUP2 = 63 + SYS_GETPPID = 64 + SYS_GETPGRP = 65 + SYS_SETSID = 66 + SYS_SIGACTION = 67 + SYS_SETREUID = 70 + SYS_SETREGID = 71 + SYS_SIGSUSPEND = 72 + SYS_SIGPENDING = 73 + SYS_SETHOSTNAME = 74 + SYS_SETRLIMIT = 75 + SYS_GETRUSAGE = 77 + SYS_GETTIMEOFDAY = 78 + SYS_SETTIMEOFDAY = 79 + SYS_GETGROUPS = 80 + SYS_SETGROUPS = 81 + SYS_SYMLINK = 83 + SYS_READLINK = 85 + SYS_USELIB = 86 + SYS_SWAPON = 87 + SYS_REBOOT = 88 + SYS_MUNMAP = 91 + SYS_TRUNCATE = 92 + SYS_FTRUNCATE = 93 + SYS_FCHMOD = 94 + SYS_FCHOWN = 95 + SYS_GETPRIORITY = 96 + SYS_SETPRIORITY = 97 + SYS_STATFS = 99 + SYS_FSTATFS = 100 + SYS_SYSLOG = 103 + SYS_SETITIMER = 104 + SYS_GETITIMER = 105 + SYS_STAT = 106 + SYS_LSTAT = 107 + SYS_FSTAT = 108 + SYS_VHANGUP = 111 + SYS_WAIT4 = 114 + SYS_SWAPOFF = 115 + SYS_SYSINFO = 116 + SYS_FSYNC = 118 + SYS_SIGRETURN = 119 + SYS_CLONE = 120 + SYS_SETDOMAINNAME = 121 + SYS_UNAME = 122 + SYS_ADJTIMEX = 124 + SYS_MPROTECT = 125 + SYS_SIGPROCMASK = 126 + SYS_INIT_MODULE = 128 + SYS_DELETE_MODULE = 129 + SYS_QUOTACTL = 131 + SYS_GETPGID = 132 + SYS_FCHDIR = 133 + SYS_BDFLUSH = 134 + SYS_SYSFS = 135 + SYS_PERSONALITY = 136 + SYS_SETFSUID = 138 + SYS_SETFSGID = 139 + SYS__LLSEEK = 140 + SYS_GETDENTS = 141 + SYS__NEWSELECT = 142 + SYS_FLOCK = 143 + SYS_MSYNC = 144 + SYS_READV = 145 + SYS_WRITEV = 146 + SYS_GETSID = 147 + SYS_FDATASYNC = 148 + SYS__SYSCTL = 149 + SYS_MLOCK = 150 + SYS_MUNLOCK = 151 + SYS_MLOCKALL = 152 + SYS_MUNLOCKALL = 153 + SYS_SCHED_SETPARAM = 154 + SYS_SCHED_GETPARAM = 155 + SYS_SCHED_SETSCHEDULER = 156 + SYS_SCHED_GETSCHEDULER = 157 + SYS_SCHED_YIELD = 158 + SYS_SCHED_GET_PRIORITY_MAX = 159 + SYS_SCHED_GET_PRIORITY_MIN = 160 + SYS_SCHED_RR_GET_INTERVAL = 161 + SYS_NANOSLEEP = 162 + SYS_MREMAP = 163 + SYS_SETRESUID = 164 + SYS_GETRESUID = 165 + SYS_POLL = 168 + SYS_NFSSERVCTL = 169 + SYS_SETRESGID = 170 + SYS_GETRESGID = 171 + SYS_PRCTL = 172 + SYS_RT_SIGRETURN = 173 + SYS_RT_SIGACTION = 174 + SYS_RT_SIGPROCMASK = 175 + SYS_RT_SIGPENDING = 176 + SYS_RT_SIGTIMEDWAIT = 177 + SYS_RT_SIGQUEUEINFO = 178 + SYS_RT_SIGSUSPEND = 179 + SYS_PREAD64 = 180 + SYS_PWRITE64 = 181 + SYS_CHOWN = 182 + SYS_GETCWD = 183 + SYS_CAPGET = 184 + SYS_CAPSET = 185 + SYS_SIGALTSTACK = 186 + SYS_SENDFILE = 187 + SYS_VFORK = 190 + SYS_UGETRLIMIT = 191 + SYS_MMAP2 = 192 + SYS_TRUNCATE64 = 193 + SYS_FTRUNCATE64 = 194 + SYS_STAT64 = 195 + SYS_LSTAT64 = 196 + SYS_FSTAT64 = 197 + SYS_LCHOWN32 = 198 + SYS_GETUID32 = 199 + SYS_GETGID32 = 200 + SYS_GETEUID32 = 201 + SYS_GETEGID32 = 202 + SYS_SETREUID32 = 203 + SYS_SETREGID32 = 204 + SYS_GETGROUPS32 = 205 + SYS_SETGROUPS32 = 206 + SYS_FCHOWN32 = 207 + SYS_SETRESUID32 = 208 + SYS_GETRESUID32 = 209 + SYS_SETRESGID32 = 210 + SYS_GETRESGID32 = 211 + SYS_CHOWN32 = 212 + SYS_SETUID32 = 213 + SYS_SETGID32 = 214 + SYS_SETFSUID32 = 215 + SYS_SETFSGID32 = 216 + SYS_GETDENTS64 = 217 + SYS_PIVOT_ROOT = 218 + SYS_MINCORE = 219 + SYS_MADVISE = 220 + SYS_FCNTL64 = 221 + SYS_GETTID = 224 + SYS_READAHEAD = 225 + SYS_SETXATTR = 226 + SYS_LSETXATTR = 227 + SYS_FSETXATTR = 228 + SYS_GETXATTR = 229 + SYS_LGETXATTR = 230 + SYS_FGETXATTR = 231 + SYS_LISTXATTR = 232 + SYS_LLISTXATTR = 233 + SYS_FLISTXATTR = 234 + SYS_REMOVEXATTR = 235 + SYS_LREMOVEXATTR = 236 + SYS_FREMOVEXATTR = 237 + SYS_TKILL = 238 + SYS_SENDFILE64 = 239 + SYS_FUTEX = 240 + SYS_SCHED_SETAFFINITY = 241 + SYS_SCHED_GETAFFINITY = 242 + SYS_IO_SETUP = 243 + SYS_IO_DESTROY = 244 + SYS_IO_GETEVENTS = 245 + SYS_IO_SUBMIT = 246 + SYS_IO_CANCEL = 247 + SYS_EXIT_GROUP = 248 + SYS_LOOKUP_DCOOKIE = 249 + SYS_EPOLL_CREATE = 250 + SYS_EPOLL_CTL = 251 + SYS_EPOLL_WAIT = 252 + SYS_REMAP_FILE_PAGES = 253 + SYS_SET_TID_ADDRESS = 256 + SYS_TIMER_CREATE = 257 + SYS_TIMER_SETTIME = 258 + SYS_TIMER_GETTIME = 259 + SYS_TIMER_GETOVERRUN = 260 + SYS_TIMER_DELETE = 261 + SYS_CLOCK_SETTIME = 262 + SYS_CLOCK_GETTIME = 263 + SYS_CLOCK_GETRES = 264 + SYS_CLOCK_NANOSLEEP = 265 + SYS_STATFS64 = 266 + SYS_FSTATFS64 = 267 + SYS_TGKILL = 268 + SYS_UTIMES = 269 + SYS_ARM_FADVISE64_64 = 270 + SYS_PCICONFIG_IOBASE = 271 + SYS_PCICONFIG_READ = 272 + SYS_PCICONFIG_WRITE = 273 + SYS_MQ_OPEN = 274 + SYS_MQ_UNLINK = 275 + SYS_MQ_TIMEDSEND = 276 + SYS_MQ_TIMEDRECEIVE = 277 + SYS_MQ_NOTIFY = 278 + SYS_MQ_GETSETATTR = 279 + SYS_WAITID = 280 + SYS_SOCKET = 281 + SYS_BIND = 282 + SYS_CONNECT = 283 + SYS_LISTEN = 284 + SYS_ACCEPT = 285 + SYS_GETSOCKNAME = 286 + SYS_GETPEERNAME = 287 + SYS_SOCKETPAIR = 288 + SYS_SEND = 289 + SYS_SENDTO = 290 + SYS_RECV = 291 + SYS_RECVFROM = 292 + SYS_SHUTDOWN = 293 + SYS_SETSOCKOPT = 294 + SYS_GETSOCKOPT = 295 + SYS_SENDMSG = 296 + SYS_RECVMSG = 297 + SYS_SEMOP = 298 + SYS_SEMGET = 299 + SYS_SEMCTL = 300 + SYS_MSGSND = 301 + SYS_MSGRCV = 302 + SYS_MSGGET = 303 + SYS_MSGCTL = 304 + SYS_SHMAT = 305 + SYS_SHMDT = 306 + SYS_SHMGET = 307 + SYS_SHMCTL = 308 + SYS_ADD_KEY = 309 + SYS_REQUEST_KEY = 310 + SYS_KEYCTL = 311 + SYS_SEMTIMEDOP = 312 + SYS_VSERVER = 313 + SYS_IOPRIO_SET = 314 + SYS_IOPRIO_GET = 315 + SYS_INOTIFY_INIT = 316 + SYS_INOTIFY_ADD_WATCH = 317 + SYS_INOTIFY_RM_WATCH = 318 + SYS_MBIND = 319 + SYS_GET_MEMPOLICY = 320 + SYS_SET_MEMPOLICY = 321 + SYS_OPENAT = 322 + SYS_MKDIRAT = 323 + SYS_MKNODAT = 324 + SYS_FCHOWNAT = 325 + SYS_FUTIMESAT = 326 + SYS_FSTATAT64 = 327 + SYS_UNLINKAT = 328 + SYS_RENAMEAT = 329 + SYS_LINKAT = 330 + SYS_SYMLINKAT = 331 + SYS_READLINKAT = 332 + SYS_FCHMODAT = 333 + SYS_FACCESSAT = 334 + SYS_PSELECT6 = 335 + SYS_PPOLL = 336 + SYS_UNSHARE = 337 + SYS_SET_ROBUST_LIST = 338 + SYS_GET_ROBUST_LIST = 339 + SYS_SPLICE = 340 + SYS_ARM_SYNC_FILE_RANGE = 341 + SYS_TEE = 342 + SYS_VMSPLICE = 343 + SYS_MOVE_PAGES = 344 + SYS_GETCPU = 345 + SYS_EPOLL_PWAIT = 346 + SYS_KEXEC_LOAD = 347 + SYS_UTIMENSAT = 348 + SYS_SIGNALFD = 349 + SYS_TIMERFD_CREATE = 350 + SYS_EVENTFD = 351 + SYS_FALLOCATE = 352 + SYS_TIMERFD_SETTIME = 353 + SYS_TIMERFD_GETTIME = 354 + SYS_SIGNALFD4 = 355 + SYS_EVENTFD2 = 356 + SYS_EPOLL_CREATE1 = 357 + SYS_DUP3 = 358 + SYS_PIPE2 = 359 + SYS_INOTIFY_INIT1 = 360 + SYS_PREADV = 361 + SYS_PWRITEV = 362 + SYS_RT_TGSIGQUEUEINFO = 363 + SYS_PERF_EVENT_OPEN = 364 + SYS_RECVMMSG = 365 + SYS_ACCEPT4 = 366 + SYS_FANOTIFY_INIT = 367 + SYS_FANOTIFY_MARK = 368 + SYS_PRLIMIT64 = 369 + SYS_NAME_TO_HANDLE_AT = 370 + SYS_OPEN_BY_HANDLE_AT = 371 + SYS_CLOCK_ADJTIME = 372 + SYS_SYNCFS = 373 + SYS_SENDMMSG = 374 + SYS_SETNS = 375 + SYS_PROCESS_VM_READV = 376 + SYS_PROCESS_VM_WRITEV = 377 + SYS_KCMP = 378 + SYS_FINIT_MODULE = 379 + SYS_SCHED_SETATTR = 380 + SYS_SCHED_GETATTR = 381 + SYS_RENAMEAT2 = 382 + SYS_SECCOMP = 383 + SYS_GETRANDOM = 384 + SYS_MEMFD_CREATE = 385 + SYS_BPF = 386 + SYS_EXECVEAT = 387 + SYS_USERFAULTFD = 388 + SYS_MEMBARRIER = 389 + SYS_MLOCK2 = 390 + SYS_COPY_FILE_RANGE = 391 + SYS_PREADV2 = 392 + SYS_PWRITEV2 = 393 + SYS_PKEY_MPROTECT = 394 + SYS_PKEY_ALLOC = 395 + SYS_PKEY_FREE = 396 + SYS_STATX = 397 + SYS_RSEQ = 398 + SYS_IO_PGETEVENTS = 399 + SYS_MIGRATE_PAGES = 400 + SYS_KEXEC_FILE_LOAD = 401 + SYS_CLOCK_GETTIME64 = 403 + SYS_CLOCK_SETTIME64 = 404 + SYS_CLOCK_ADJTIME64 = 405 + SYS_CLOCK_GETRES_TIME64 = 406 + SYS_CLOCK_NANOSLEEP_TIME64 = 407 + SYS_TIMER_GETTIME64 = 408 + SYS_TIMER_SETTIME64 = 409 + SYS_TIMERFD_GETTIME64 = 410 + SYS_TIMERFD_SETTIME64 = 411 + SYS_UTIMENSAT_TIME64 = 412 + SYS_PSELECT6_TIME64 = 413 + SYS_PPOLL_TIME64 = 414 + SYS_IO_PGETEVENTS_TIME64 = 416 + SYS_RECVMMSG_TIME64 = 417 + SYS_MQ_TIMEDSEND_TIME64 = 418 + SYS_MQ_TIMEDRECEIVE_TIME64 = 419 + SYS_SEMTIMEDOP_TIME64 = 420 + SYS_RT_SIGTIMEDWAIT_TIME64 = 421 + SYS_FUTEX_TIME64 = 422 + SYS_SCHED_RR_GET_INTERVAL_TIME64 = 423 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go new file mode 100644 index 0000000..358c847 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -0,0 +1,317 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/arm64/include -fsigned-char /tmp/arm64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && linux +// +build arm64,linux + +package unix + +const ( + SYS_IO_SETUP = 0 + SYS_IO_DESTROY = 1 + SYS_IO_SUBMIT = 2 + SYS_IO_CANCEL = 3 + SYS_IO_GETEVENTS = 4 + SYS_SETXATTR = 5 + SYS_LSETXATTR = 6 + SYS_FSETXATTR = 7 + SYS_GETXATTR = 8 + SYS_LGETXATTR = 9 + SYS_FGETXATTR = 10 + SYS_LISTXATTR = 11 + SYS_LLISTXATTR = 12 + SYS_FLISTXATTR = 13 + SYS_REMOVEXATTR = 14 + SYS_LREMOVEXATTR = 15 + SYS_FREMOVEXATTR = 16 + SYS_GETCWD = 17 + SYS_LOOKUP_DCOOKIE = 18 + SYS_EVENTFD2 = 19 + SYS_EPOLL_CREATE1 = 20 + SYS_EPOLL_CTL = 21 + SYS_EPOLL_PWAIT = 22 + SYS_DUP = 23 + SYS_DUP3 = 24 + SYS_FCNTL = 25 + SYS_INOTIFY_INIT1 = 26 + SYS_INOTIFY_ADD_WATCH = 27 + SYS_INOTIFY_RM_WATCH = 28 + SYS_IOCTL = 29 + SYS_IOPRIO_SET = 30 + SYS_IOPRIO_GET = 31 + SYS_FLOCK = 32 + SYS_MKNODAT = 33 + SYS_MKDIRAT = 34 + SYS_UNLINKAT = 35 + SYS_SYMLINKAT = 36 + SYS_LINKAT = 37 + SYS_RENAMEAT = 38 + SYS_UMOUNT2 = 39 + SYS_MOUNT = 40 + SYS_PIVOT_ROOT = 41 + SYS_NFSSERVCTL = 42 + SYS_STATFS = 43 + SYS_FSTATFS = 44 + SYS_TRUNCATE = 45 + SYS_FTRUNCATE = 46 + SYS_FALLOCATE = 47 + SYS_FACCESSAT = 48 + SYS_CHDIR = 49 + SYS_FCHDIR = 50 + SYS_CHROOT = 51 + SYS_FCHMOD = 52 + SYS_FCHMODAT = 53 + SYS_FCHOWNAT = 54 + SYS_FCHOWN = 55 + SYS_OPENAT = 56 + SYS_CLOSE = 57 + SYS_VHANGUP = 58 + SYS_PIPE2 = 59 + SYS_QUOTACTL = 60 + SYS_GETDENTS64 = 61 + SYS_LSEEK = 62 + SYS_READ = 63 + SYS_WRITE = 64 + SYS_READV = 65 + SYS_WRITEV = 66 + SYS_PREAD64 = 67 + SYS_PWRITE64 = 68 + SYS_PREADV = 69 + SYS_PWRITEV = 70 + SYS_SENDFILE = 71 + SYS_PSELECT6 = 72 + SYS_PPOLL = 73 + SYS_SIGNALFD4 = 74 + SYS_VMSPLICE = 75 + SYS_SPLICE = 76 + SYS_TEE = 77 + SYS_READLINKAT = 78 + SYS_FSTATAT = 79 + SYS_FSTAT = 80 + SYS_SYNC = 81 + SYS_FSYNC = 82 + SYS_FDATASYNC = 83 + SYS_SYNC_FILE_RANGE = 84 + SYS_TIMERFD_CREATE = 85 + SYS_TIMERFD_SETTIME = 86 + SYS_TIMERFD_GETTIME = 87 + SYS_UTIMENSAT = 88 + SYS_ACCT = 89 + SYS_CAPGET = 90 + SYS_CAPSET = 91 + SYS_PERSONALITY = 92 + SYS_EXIT = 93 + SYS_EXIT_GROUP = 94 + SYS_WAITID = 95 + SYS_SET_TID_ADDRESS = 96 + SYS_UNSHARE = 97 + SYS_FUTEX = 98 + SYS_SET_ROBUST_LIST = 99 + SYS_GET_ROBUST_LIST = 100 + SYS_NANOSLEEP = 101 + SYS_GETITIMER = 102 + SYS_SETITIMER = 103 + SYS_KEXEC_LOAD = 104 + SYS_INIT_MODULE = 105 + SYS_DELETE_MODULE = 106 + SYS_TIMER_CREATE = 107 + SYS_TIMER_GETTIME = 108 + SYS_TIMER_GETOVERRUN = 109 + SYS_TIMER_SETTIME = 110 + SYS_TIMER_DELETE = 111 + SYS_CLOCK_SETTIME = 112 + SYS_CLOCK_GETTIME = 113 + SYS_CLOCK_GETRES = 114 + SYS_CLOCK_NANOSLEEP = 115 + SYS_SYSLOG = 116 + SYS_PTRACE = 117 + SYS_SCHED_SETPARAM = 118 + SYS_SCHED_SETSCHEDULER = 119 + SYS_SCHED_GETSCHEDULER = 120 + SYS_SCHED_GETPARAM = 121 + SYS_SCHED_SETAFFINITY = 122 + SYS_SCHED_GETAFFINITY = 123 + SYS_SCHED_YIELD = 124 + SYS_SCHED_GET_PRIORITY_MAX = 125 + SYS_SCHED_GET_PRIORITY_MIN = 126 + SYS_SCHED_RR_GET_INTERVAL = 127 + SYS_RESTART_SYSCALL = 128 + SYS_KILL = 129 + SYS_TKILL = 130 + SYS_TGKILL = 131 + SYS_SIGALTSTACK = 132 + SYS_RT_SIGSUSPEND = 133 + SYS_RT_SIGACTION = 134 + SYS_RT_SIGPROCMASK = 135 + SYS_RT_SIGPENDING = 136 + SYS_RT_SIGTIMEDWAIT = 137 + SYS_RT_SIGQUEUEINFO = 138 + SYS_RT_SIGRETURN = 139 + SYS_SETPRIORITY = 140 + SYS_GETPRIORITY = 141 + SYS_REBOOT = 142 + SYS_SETREGID = 143 + SYS_SETGID = 144 + SYS_SETREUID = 145 + SYS_SETUID = 146 + SYS_SETRESUID = 147 + SYS_GETRESUID = 148 + SYS_SETRESGID = 149 + SYS_GETRESGID = 150 + SYS_SETFSUID = 151 + SYS_SETFSGID = 152 + SYS_TIMES = 153 + SYS_SETPGID = 154 + SYS_GETPGID = 155 + SYS_GETSID = 156 + SYS_SETSID = 157 + SYS_GETGROUPS = 158 + SYS_SETGROUPS = 159 + SYS_UNAME = 160 + SYS_SETHOSTNAME = 161 + SYS_SETDOMAINNAME = 162 + SYS_GETRLIMIT = 163 + SYS_SETRLIMIT = 164 + SYS_GETRUSAGE = 165 + SYS_UMASK = 166 + SYS_PRCTL = 167 + SYS_GETCPU = 168 + SYS_GETTIMEOFDAY = 169 + SYS_SETTIMEOFDAY = 170 + SYS_ADJTIMEX = 171 + SYS_GETPID = 172 + SYS_GETPPID = 173 + SYS_GETUID = 174 + SYS_GETEUID = 175 + SYS_GETGID = 176 + SYS_GETEGID = 177 + SYS_GETTID = 178 + SYS_SYSINFO = 179 + SYS_MQ_OPEN = 180 + SYS_MQ_UNLINK = 181 + SYS_MQ_TIMEDSEND = 182 + SYS_MQ_TIMEDRECEIVE = 183 + SYS_MQ_NOTIFY = 184 + SYS_MQ_GETSETATTR = 185 + SYS_MSGGET = 186 + SYS_MSGCTL = 187 + SYS_MSGRCV = 188 + SYS_MSGSND = 189 + SYS_SEMGET = 190 + SYS_SEMCTL = 191 + SYS_SEMTIMEDOP = 192 + SYS_SEMOP = 193 + SYS_SHMGET = 194 + SYS_SHMCTL = 195 + SYS_SHMAT = 196 + SYS_SHMDT = 197 + SYS_SOCKET = 198 + SYS_SOCKETPAIR = 199 + SYS_BIND = 200 + SYS_LISTEN = 201 + SYS_ACCEPT = 202 + SYS_CONNECT = 203 + SYS_GETSOCKNAME = 204 + SYS_GETPEERNAME = 205 + SYS_SENDTO = 206 + SYS_RECVFROM = 207 + SYS_SETSOCKOPT = 208 + SYS_GETSOCKOPT = 209 + SYS_SHUTDOWN = 210 + SYS_SENDMSG = 211 + SYS_RECVMSG = 212 + SYS_READAHEAD = 213 + SYS_BRK = 214 + SYS_MUNMAP = 215 + SYS_MREMAP = 216 + SYS_ADD_KEY = 217 + SYS_REQUEST_KEY = 218 + SYS_KEYCTL = 219 + SYS_CLONE = 220 + SYS_EXECVE = 221 + SYS_MMAP = 222 + SYS_FADVISE64 = 223 + SYS_SWAPON = 224 + SYS_SWAPOFF = 225 + SYS_MPROTECT = 226 + SYS_MSYNC = 227 + SYS_MLOCK = 228 + SYS_MUNLOCK = 229 + SYS_MLOCKALL = 230 + SYS_MUNLOCKALL = 231 + SYS_MINCORE = 232 + SYS_MADVISE = 233 + SYS_REMAP_FILE_PAGES = 234 + SYS_MBIND = 235 + SYS_GET_MEMPOLICY = 236 + SYS_SET_MEMPOLICY = 237 + SYS_MIGRATE_PAGES = 238 + SYS_MOVE_PAGES = 239 + SYS_RT_TGSIGQUEUEINFO = 240 + SYS_PERF_EVENT_OPEN = 241 + SYS_ACCEPT4 = 242 + SYS_RECVMMSG = 243 + SYS_ARCH_SPECIFIC_SYSCALL = 244 + SYS_WAIT4 = 260 + SYS_PRLIMIT64 = 261 + SYS_FANOTIFY_INIT = 262 + SYS_FANOTIFY_MARK = 263 + SYS_NAME_TO_HANDLE_AT = 264 + SYS_OPEN_BY_HANDLE_AT = 265 + SYS_CLOCK_ADJTIME = 266 + SYS_SYNCFS = 267 + SYS_SETNS = 268 + SYS_SENDMMSG = 269 + SYS_PROCESS_VM_READV = 270 + SYS_PROCESS_VM_WRITEV = 271 + SYS_KCMP = 272 + SYS_FINIT_MODULE = 273 + SYS_SCHED_SETATTR = 274 + SYS_SCHED_GETATTR = 275 + SYS_RENAMEAT2 = 276 + SYS_SECCOMP = 277 + SYS_GETRANDOM = 278 + SYS_MEMFD_CREATE = 279 + SYS_BPF = 280 + SYS_EXECVEAT = 281 + SYS_USERFAULTFD = 282 + SYS_MEMBARRIER = 283 + SYS_MLOCK2 = 284 + SYS_COPY_FILE_RANGE = 285 + SYS_PREADV2 = 286 + SYS_PWRITEV2 = 287 + SYS_PKEY_MPROTECT = 288 + SYS_PKEY_ALLOC = 289 + SYS_PKEY_FREE = 290 + SYS_STATX = 291 + SYS_IO_PGETEVENTS = 292 + SYS_RSEQ = 293 + SYS_KEXEC_FILE_LOAD = 294 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_MEMFD_SECRET = 447 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go new file mode 100644 index 0000000..81c4849 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go @@ -0,0 +1,311 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/loong64/include /tmp/loong64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build loong64 && linux +// +build loong64,linux + +package unix + +const ( + SYS_IO_SETUP = 0 + SYS_IO_DESTROY = 1 + SYS_IO_SUBMIT = 2 + SYS_IO_CANCEL = 3 + SYS_IO_GETEVENTS = 4 + SYS_SETXATTR = 5 + SYS_LSETXATTR = 6 + SYS_FSETXATTR = 7 + SYS_GETXATTR = 8 + SYS_LGETXATTR = 9 + SYS_FGETXATTR = 10 + SYS_LISTXATTR = 11 + SYS_LLISTXATTR = 12 + SYS_FLISTXATTR = 13 + SYS_REMOVEXATTR = 14 + SYS_LREMOVEXATTR = 15 + SYS_FREMOVEXATTR = 16 + SYS_GETCWD = 17 + SYS_LOOKUP_DCOOKIE = 18 + SYS_EVENTFD2 = 19 + SYS_EPOLL_CREATE1 = 20 + SYS_EPOLL_CTL = 21 + SYS_EPOLL_PWAIT = 22 + SYS_DUP = 23 + SYS_DUP3 = 24 + SYS_FCNTL = 25 + SYS_INOTIFY_INIT1 = 26 + SYS_INOTIFY_ADD_WATCH = 27 + SYS_INOTIFY_RM_WATCH = 28 + SYS_IOCTL = 29 + SYS_IOPRIO_SET = 30 + SYS_IOPRIO_GET = 31 + SYS_FLOCK = 32 + SYS_MKNODAT = 33 + SYS_MKDIRAT = 34 + SYS_UNLINKAT = 35 + SYS_SYMLINKAT = 36 + SYS_LINKAT = 37 + SYS_UMOUNT2 = 39 + SYS_MOUNT = 40 + SYS_PIVOT_ROOT = 41 + SYS_NFSSERVCTL = 42 + SYS_STATFS = 43 + SYS_FSTATFS = 44 + SYS_TRUNCATE = 45 + SYS_FTRUNCATE = 46 + SYS_FALLOCATE = 47 + SYS_FACCESSAT = 48 + SYS_CHDIR = 49 + SYS_FCHDIR = 50 + SYS_CHROOT = 51 + SYS_FCHMOD = 52 + SYS_FCHMODAT = 53 + SYS_FCHOWNAT = 54 + SYS_FCHOWN = 55 + SYS_OPENAT = 56 + SYS_CLOSE = 57 + SYS_VHANGUP = 58 + SYS_PIPE2 = 59 + SYS_QUOTACTL = 60 + SYS_GETDENTS64 = 61 + SYS_LSEEK = 62 + SYS_READ = 63 + SYS_WRITE = 64 + SYS_READV = 65 + SYS_WRITEV = 66 + SYS_PREAD64 = 67 + SYS_PWRITE64 = 68 + SYS_PREADV = 69 + SYS_PWRITEV = 70 + SYS_SENDFILE = 71 + SYS_PSELECT6 = 72 + SYS_PPOLL = 73 + SYS_SIGNALFD4 = 74 + SYS_VMSPLICE = 75 + SYS_SPLICE = 76 + SYS_TEE = 77 + SYS_READLINKAT = 78 + SYS_SYNC = 81 + SYS_FSYNC = 82 + SYS_FDATASYNC = 83 + SYS_SYNC_FILE_RANGE = 84 + SYS_TIMERFD_CREATE = 85 + SYS_TIMERFD_SETTIME = 86 + SYS_TIMERFD_GETTIME = 87 + SYS_UTIMENSAT = 88 + SYS_ACCT = 89 + SYS_CAPGET = 90 + SYS_CAPSET = 91 + SYS_PERSONALITY = 92 + SYS_EXIT = 93 + SYS_EXIT_GROUP = 94 + SYS_WAITID = 95 + SYS_SET_TID_ADDRESS = 96 + SYS_UNSHARE = 97 + SYS_FUTEX = 98 + SYS_SET_ROBUST_LIST = 99 + SYS_GET_ROBUST_LIST = 100 + SYS_NANOSLEEP = 101 + SYS_GETITIMER = 102 + SYS_SETITIMER = 103 + SYS_KEXEC_LOAD = 104 + SYS_INIT_MODULE = 105 + SYS_DELETE_MODULE = 106 + SYS_TIMER_CREATE = 107 + SYS_TIMER_GETTIME = 108 + SYS_TIMER_GETOVERRUN = 109 + SYS_TIMER_SETTIME = 110 + SYS_TIMER_DELETE = 111 + SYS_CLOCK_SETTIME = 112 + SYS_CLOCK_GETTIME = 113 + SYS_CLOCK_GETRES = 114 + SYS_CLOCK_NANOSLEEP = 115 + SYS_SYSLOG = 116 + SYS_PTRACE = 117 + SYS_SCHED_SETPARAM = 118 + SYS_SCHED_SETSCHEDULER = 119 + SYS_SCHED_GETSCHEDULER = 120 + SYS_SCHED_GETPARAM = 121 + SYS_SCHED_SETAFFINITY = 122 + SYS_SCHED_GETAFFINITY = 123 + SYS_SCHED_YIELD = 124 + SYS_SCHED_GET_PRIORITY_MAX = 125 + SYS_SCHED_GET_PRIORITY_MIN = 126 + SYS_SCHED_RR_GET_INTERVAL = 127 + SYS_RESTART_SYSCALL = 128 + SYS_KILL = 129 + SYS_TKILL = 130 + SYS_TGKILL = 131 + SYS_SIGALTSTACK = 132 + SYS_RT_SIGSUSPEND = 133 + SYS_RT_SIGACTION = 134 + SYS_RT_SIGPROCMASK = 135 + SYS_RT_SIGPENDING = 136 + SYS_RT_SIGTIMEDWAIT = 137 + SYS_RT_SIGQUEUEINFO = 138 + SYS_RT_SIGRETURN = 139 + SYS_SETPRIORITY = 140 + SYS_GETPRIORITY = 141 + SYS_REBOOT = 142 + SYS_SETREGID = 143 + SYS_SETGID = 144 + SYS_SETREUID = 145 + SYS_SETUID = 146 + SYS_SETRESUID = 147 + SYS_GETRESUID = 148 + SYS_SETRESGID = 149 + SYS_GETRESGID = 150 + SYS_SETFSUID = 151 + SYS_SETFSGID = 152 + SYS_TIMES = 153 + SYS_SETPGID = 154 + SYS_GETPGID = 155 + SYS_GETSID = 156 + SYS_SETSID = 157 + SYS_GETGROUPS = 158 + SYS_SETGROUPS = 159 + SYS_UNAME = 160 + SYS_SETHOSTNAME = 161 + SYS_SETDOMAINNAME = 162 + SYS_GETRUSAGE = 165 + SYS_UMASK = 166 + SYS_PRCTL = 167 + SYS_GETCPU = 168 + SYS_GETTIMEOFDAY = 169 + SYS_SETTIMEOFDAY = 170 + SYS_ADJTIMEX = 171 + SYS_GETPID = 172 + SYS_GETPPID = 173 + SYS_GETUID = 174 + SYS_GETEUID = 175 + SYS_GETGID = 176 + SYS_GETEGID = 177 + SYS_GETTID = 178 + SYS_SYSINFO = 179 + SYS_MQ_OPEN = 180 + SYS_MQ_UNLINK = 181 + SYS_MQ_TIMEDSEND = 182 + SYS_MQ_TIMEDRECEIVE = 183 + SYS_MQ_NOTIFY = 184 + SYS_MQ_GETSETATTR = 185 + SYS_MSGGET = 186 + SYS_MSGCTL = 187 + SYS_MSGRCV = 188 + SYS_MSGSND = 189 + SYS_SEMGET = 190 + SYS_SEMCTL = 191 + SYS_SEMTIMEDOP = 192 + SYS_SEMOP = 193 + SYS_SHMGET = 194 + SYS_SHMCTL = 195 + SYS_SHMAT = 196 + SYS_SHMDT = 197 + SYS_SOCKET = 198 + SYS_SOCKETPAIR = 199 + SYS_BIND = 200 + SYS_LISTEN = 201 + SYS_ACCEPT = 202 + SYS_CONNECT = 203 + SYS_GETSOCKNAME = 204 + SYS_GETPEERNAME = 205 + SYS_SENDTO = 206 + SYS_RECVFROM = 207 + SYS_SETSOCKOPT = 208 + SYS_GETSOCKOPT = 209 + SYS_SHUTDOWN = 210 + SYS_SENDMSG = 211 + SYS_RECVMSG = 212 + SYS_READAHEAD = 213 + SYS_BRK = 214 + SYS_MUNMAP = 215 + SYS_MREMAP = 216 + SYS_ADD_KEY = 217 + SYS_REQUEST_KEY = 218 + SYS_KEYCTL = 219 + SYS_CLONE = 220 + SYS_EXECVE = 221 + SYS_MMAP = 222 + SYS_FADVISE64 = 223 + SYS_SWAPON = 224 + SYS_SWAPOFF = 225 + SYS_MPROTECT = 226 + SYS_MSYNC = 227 + SYS_MLOCK = 228 + SYS_MUNLOCK = 229 + SYS_MLOCKALL = 230 + SYS_MUNLOCKALL = 231 + SYS_MINCORE = 232 + SYS_MADVISE = 233 + SYS_REMAP_FILE_PAGES = 234 + SYS_MBIND = 235 + SYS_GET_MEMPOLICY = 236 + SYS_SET_MEMPOLICY = 237 + SYS_MIGRATE_PAGES = 238 + SYS_MOVE_PAGES = 239 + SYS_RT_TGSIGQUEUEINFO = 240 + SYS_PERF_EVENT_OPEN = 241 + SYS_ACCEPT4 = 242 + SYS_RECVMMSG = 243 + SYS_ARCH_SPECIFIC_SYSCALL = 244 + SYS_WAIT4 = 260 + SYS_PRLIMIT64 = 261 + SYS_FANOTIFY_INIT = 262 + SYS_FANOTIFY_MARK = 263 + SYS_NAME_TO_HANDLE_AT = 264 + SYS_OPEN_BY_HANDLE_AT = 265 + SYS_CLOCK_ADJTIME = 266 + SYS_SYNCFS = 267 + SYS_SETNS = 268 + SYS_SENDMMSG = 269 + SYS_PROCESS_VM_READV = 270 + SYS_PROCESS_VM_WRITEV = 271 + SYS_KCMP = 272 + SYS_FINIT_MODULE = 273 + SYS_SCHED_SETATTR = 274 + SYS_SCHED_GETATTR = 275 + SYS_RENAMEAT2 = 276 + SYS_SECCOMP = 277 + SYS_GETRANDOM = 278 + SYS_MEMFD_CREATE = 279 + SYS_BPF = 280 + SYS_EXECVEAT = 281 + SYS_USERFAULTFD = 282 + SYS_MEMBARRIER = 283 + SYS_MLOCK2 = 284 + SYS_COPY_FILE_RANGE = 285 + SYS_PREADV2 = 286 + SYS_PWRITEV2 = 287 + SYS_PKEY_MPROTECT = 288 + SYS_PKEY_ALLOC = 289 + SYS_PKEY_FREE = 290 + SYS_STATX = 291 + SYS_IO_PGETEVENTS = 292 + SYS_RSEQ = 293 + SYS_KEXEC_FILE_LOAD = 294 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go new file mode 100644 index 0000000..202a57e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -0,0 +1,434 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips/include /tmp/mips/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips && linux +// +build mips,linux + +package unix + +const ( + SYS_SYSCALL = 4000 + SYS_EXIT = 4001 + SYS_FORK = 4002 + SYS_READ = 4003 + SYS_WRITE = 4004 + SYS_OPEN = 4005 + SYS_CLOSE = 4006 + SYS_WAITPID = 4007 + SYS_CREAT = 4008 + SYS_LINK = 4009 + SYS_UNLINK = 4010 + SYS_EXECVE = 4011 + SYS_CHDIR = 4012 + SYS_TIME = 4013 + SYS_MKNOD = 4014 + SYS_CHMOD = 4015 + SYS_LCHOWN = 4016 + SYS_BREAK = 4017 + SYS_UNUSED18 = 4018 + SYS_LSEEK = 4019 + SYS_GETPID = 4020 + SYS_MOUNT = 4021 + SYS_UMOUNT = 4022 + SYS_SETUID = 4023 + SYS_GETUID = 4024 + SYS_STIME = 4025 + SYS_PTRACE = 4026 + SYS_ALARM = 4027 + SYS_UNUSED28 = 4028 + SYS_PAUSE = 4029 + SYS_UTIME = 4030 + SYS_STTY = 4031 + SYS_GTTY = 4032 + SYS_ACCESS = 4033 + SYS_NICE = 4034 + SYS_FTIME = 4035 + SYS_SYNC = 4036 + SYS_KILL = 4037 + SYS_RENAME = 4038 + SYS_MKDIR = 4039 + SYS_RMDIR = 4040 + SYS_DUP = 4041 + SYS_PIPE = 4042 + SYS_TIMES = 4043 + SYS_PROF = 4044 + SYS_BRK = 4045 + SYS_SETGID = 4046 + SYS_GETGID = 4047 + SYS_SIGNAL = 4048 + SYS_GETEUID = 4049 + SYS_GETEGID = 4050 + SYS_ACCT = 4051 + SYS_UMOUNT2 = 4052 + SYS_LOCK = 4053 + SYS_IOCTL = 4054 + SYS_FCNTL = 4055 + SYS_MPX = 4056 + SYS_SETPGID = 4057 + SYS_ULIMIT = 4058 + SYS_UNUSED59 = 4059 + SYS_UMASK = 4060 + SYS_CHROOT = 4061 + SYS_USTAT = 4062 + SYS_DUP2 = 4063 + SYS_GETPPID = 4064 + SYS_GETPGRP = 4065 + SYS_SETSID = 4066 + SYS_SIGACTION = 4067 + SYS_SGETMASK = 4068 + SYS_SSETMASK = 4069 + SYS_SETREUID = 4070 + SYS_SETREGID = 4071 + SYS_SIGSUSPEND = 4072 + SYS_SIGPENDING = 4073 + SYS_SETHOSTNAME = 4074 + SYS_SETRLIMIT = 4075 + SYS_GETRLIMIT = 4076 + SYS_GETRUSAGE = 4077 + SYS_GETTIMEOFDAY = 4078 + SYS_SETTIMEOFDAY = 4079 + SYS_GETGROUPS = 4080 + SYS_SETGROUPS = 4081 + SYS_RESERVED82 = 4082 + SYS_SYMLINK = 4083 + SYS_UNUSED84 = 4084 + SYS_READLINK = 4085 + SYS_USELIB = 4086 + SYS_SWAPON = 4087 + SYS_REBOOT = 4088 + SYS_READDIR = 4089 + SYS_MMAP = 4090 + SYS_MUNMAP = 4091 + SYS_TRUNCATE = 4092 + SYS_FTRUNCATE = 4093 + SYS_FCHMOD = 4094 + SYS_FCHOWN = 4095 + SYS_GETPRIORITY = 4096 + SYS_SETPRIORITY = 4097 + SYS_PROFIL = 4098 + SYS_STATFS = 4099 + SYS_FSTATFS = 4100 + SYS_IOPERM = 4101 + SYS_SOCKETCALL = 4102 + SYS_SYSLOG = 4103 + SYS_SETITIMER = 4104 + SYS_GETITIMER = 4105 + SYS_STAT = 4106 + SYS_LSTAT = 4107 + SYS_FSTAT = 4108 + SYS_UNUSED109 = 4109 + SYS_IOPL = 4110 + SYS_VHANGUP = 4111 + SYS_IDLE = 4112 + SYS_VM86 = 4113 + SYS_WAIT4 = 4114 + SYS_SWAPOFF = 4115 + SYS_SYSINFO = 4116 + SYS_IPC = 4117 + SYS_FSYNC = 4118 + SYS_SIGRETURN = 4119 + SYS_CLONE = 4120 + SYS_SETDOMAINNAME = 4121 + SYS_UNAME = 4122 + SYS_MODIFY_LDT = 4123 + SYS_ADJTIMEX = 4124 + SYS_MPROTECT = 4125 + SYS_SIGPROCMASK = 4126 + SYS_CREATE_MODULE = 4127 + SYS_INIT_MODULE = 4128 + SYS_DELETE_MODULE = 4129 + SYS_GET_KERNEL_SYMS = 4130 + SYS_QUOTACTL = 4131 + SYS_GETPGID = 4132 + SYS_FCHDIR = 4133 + SYS_BDFLUSH = 4134 + SYS_SYSFS = 4135 + SYS_PERSONALITY = 4136 + SYS_AFS_SYSCALL = 4137 + SYS_SETFSUID = 4138 + SYS_SETFSGID = 4139 + SYS__LLSEEK = 4140 + SYS_GETDENTS = 4141 + SYS__NEWSELECT = 4142 + SYS_FLOCK = 4143 + SYS_MSYNC = 4144 + SYS_READV = 4145 + SYS_WRITEV = 4146 + SYS_CACHEFLUSH = 4147 + SYS_CACHECTL = 4148 + SYS_SYSMIPS = 4149 + SYS_UNUSED150 = 4150 + SYS_GETSID = 4151 + SYS_FDATASYNC = 4152 + SYS__SYSCTL = 4153 + SYS_MLOCK = 4154 + SYS_MUNLOCK = 4155 + SYS_MLOCKALL = 4156 + SYS_MUNLOCKALL = 4157 + SYS_SCHED_SETPARAM = 4158 + SYS_SCHED_GETPARAM = 4159 + SYS_SCHED_SETSCHEDULER = 4160 + SYS_SCHED_GETSCHEDULER = 4161 + SYS_SCHED_YIELD = 4162 + SYS_SCHED_GET_PRIORITY_MAX = 4163 + SYS_SCHED_GET_PRIORITY_MIN = 4164 + SYS_SCHED_RR_GET_INTERVAL = 4165 + SYS_NANOSLEEP = 4166 + SYS_MREMAP = 4167 + SYS_ACCEPT = 4168 + SYS_BIND = 4169 + SYS_CONNECT = 4170 + SYS_GETPEERNAME = 4171 + SYS_GETSOCKNAME = 4172 + SYS_GETSOCKOPT = 4173 + SYS_LISTEN = 4174 + SYS_RECV = 4175 + SYS_RECVFROM = 4176 + SYS_RECVMSG = 4177 + SYS_SEND = 4178 + SYS_SENDMSG = 4179 + SYS_SENDTO = 4180 + SYS_SETSOCKOPT = 4181 + SYS_SHUTDOWN = 4182 + SYS_SOCKET = 4183 + SYS_SOCKETPAIR = 4184 + SYS_SETRESUID = 4185 + SYS_GETRESUID = 4186 + SYS_QUERY_MODULE = 4187 + SYS_POLL = 4188 + SYS_NFSSERVCTL = 4189 + SYS_SETRESGID = 4190 + SYS_GETRESGID = 4191 + SYS_PRCTL = 4192 + SYS_RT_SIGRETURN = 4193 + SYS_RT_SIGACTION = 4194 + SYS_RT_SIGPROCMASK = 4195 + SYS_RT_SIGPENDING = 4196 + SYS_RT_SIGTIMEDWAIT = 4197 + SYS_RT_SIGQUEUEINFO = 4198 + SYS_RT_SIGSUSPEND = 4199 + SYS_PREAD64 = 4200 + SYS_PWRITE64 = 4201 + SYS_CHOWN = 4202 + SYS_GETCWD = 4203 + SYS_CAPGET = 4204 + SYS_CAPSET = 4205 + SYS_SIGALTSTACK = 4206 + SYS_SENDFILE = 4207 + SYS_GETPMSG = 4208 + SYS_PUTPMSG = 4209 + SYS_MMAP2 = 4210 + SYS_TRUNCATE64 = 4211 + SYS_FTRUNCATE64 = 4212 + SYS_STAT64 = 4213 + SYS_LSTAT64 = 4214 + SYS_FSTAT64 = 4215 + SYS_PIVOT_ROOT = 4216 + SYS_MINCORE = 4217 + SYS_MADVISE = 4218 + SYS_GETDENTS64 = 4219 + SYS_FCNTL64 = 4220 + SYS_RESERVED221 = 4221 + SYS_GETTID = 4222 + SYS_READAHEAD = 4223 + SYS_SETXATTR = 4224 + SYS_LSETXATTR = 4225 + SYS_FSETXATTR = 4226 + SYS_GETXATTR = 4227 + SYS_LGETXATTR = 4228 + SYS_FGETXATTR = 4229 + SYS_LISTXATTR = 4230 + SYS_LLISTXATTR = 4231 + SYS_FLISTXATTR = 4232 + SYS_REMOVEXATTR = 4233 + SYS_LREMOVEXATTR = 4234 + SYS_FREMOVEXATTR = 4235 + SYS_TKILL = 4236 + SYS_SENDFILE64 = 4237 + SYS_FUTEX = 4238 + SYS_SCHED_SETAFFINITY = 4239 + SYS_SCHED_GETAFFINITY = 4240 + SYS_IO_SETUP = 4241 + SYS_IO_DESTROY = 4242 + SYS_IO_GETEVENTS = 4243 + SYS_IO_SUBMIT = 4244 + SYS_IO_CANCEL = 4245 + SYS_EXIT_GROUP = 4246 + SYS_LOOKUP_DCOOKIE = 4247 + SYS_EPOLL_CREATE = 4248 + SYS_EPOLL_CTL = 4249 + SYS_EPOLL_WAIT = 4250 + SYS_REMAP_FILE_PAGES = 4251 + SYS_SET_TID_ADDRESS = 4252 + SYS_RESTART_SYSCALL = 4253 + SYS_FADVISE64 = 4254 + SYS_STATFS64 = 4255 + SYS_FSTATFS64 = 4256 + SYS_TIMER_CREATE = 4257 + SYS_TIMER_SETTIME = 4258 + SYS_TIMER_GETTIME = 4259 + SYS_TIMER_GETOVERRUN = 4260 + SYS_TIMER_DELETE = 4261 + SYS_CLOCK_SETTIME = 4262 + SYS_CLOCK_GETTIME = 4263 + SYS_CLOCK_GETRES = 4264 + SYS_CLOCK_NANOSLEEP = 4265 + SYS_TGKILL = 4266 + SYS_UTIMES = 4267 + SYS_MBIND = 4268 + SYS_GET_MEMPOLICY = 4269 + SYS_SET_MEMPOLICY = 4270 + SYS_MQ_OPEN = 4271 + SYS_MQ_UNLINK = 4272 + SYS_MQ_TIMEDSEND = 4273 + SYS_MQ_TIMEDRECEIVE = 4274 + SYS_MQ_NOTIFY = 4275 + SYS_MQ_GETSETATTR = 4276 + SYS_VSERVER = 4277 + SYS_WAITID = 4278 + SYS_ADD_KEY = 4280 + SYS_REQUEST_KEY = 4281 + SYS_KEYCTL = 4282 + SYS_SET_THREAD_AREA = 4283 + SYS_INOTIFY_INIT = 4284 + SYS_INOTIFY_ADD_WATCH = 4285 + SYS_INOTIFY_RM_WATCH = 4286 + SYS_MIGRATE_PAGES = 4287 + SYS_OPENAT = 4288 + SYS_MKDIRAT = 4289 + SYS_MKNODAT = 4290 + SYS_FCHOWNAT = 4291 + SYS_FUTIMESAT = 4292 + SYS_FSTATAT64 = 4293 + SYS_UNLINKAT = 4294 + SYS_RENAMEAT = 4295 + SYS_LINKAT = 4296 + SYS_SYMLINKAT = 4297 + SYS_READLINKAT = 4298 + SYS_FCHMODAT = 4299 + SYS_FACCESSAT = 4300 + SYS_PSELECT6 = 4301 + SYS_PPOLL = 4302 + SYS_UNSHARE = 4303 + SYS_SPLICE = 4304 + SYS_SYNC_FILE_RANGE = 4305 + SYS_TEE = 4306 + SYS_VMSPLICE = 4307 + SYS_MOVE_PAGES = 4308 + SYS_SET_ROBUST_LIST = 4309 + SYS_GET_ROBUST_LIST = 4310 + SYS_KEXEC_LOAD = 4311 + SYS_GETCPU = 4312 + SYS_EPOLL_PWAIT = 4313 + SYS_IOPRIO_SET = 4314 + SYS_IOPRIO_GET = 4315 + SYS_UTIMENSAT = 4316 + SYS_SIGNALFD = 4317 + SYS_TIMERFD = 4318 + SYS_EVENTFD = 4319 + SYS_FALLOCATE = 4320 + SYS_TIMERFD_CREATE = 4321 + SYS_TIMERFD_GETTIME = 4322 + SYS_TIMERFD_SETTIME = 4323 + SYS_SIGNALFD4 = 4324 + SYS_EVENTFD2 = 4325 + SYS_EPOLL_CREATE1 = 4326 + SYS_DUP3 = 4327 + SYS_PIPE2 = 4328 + SYS_INOTIFY_INIT1 = 4329 + SYS_PREADV = 4330 + SYS_PWRITEV = 4331 + SYS_RT_TGSIGQUEUEINFO = 4332 + SYS_PERF_EVENT_OPEN = 4333 + SYS_ACCEPT4 = 4334 + SYS_RECVMMSG = 4335 + SYS_FANOTIFY_INIT = 4336 + SYS_FANOTIFY_MARK = 4337 + SYS_PRLIMIT64 = 4338 + SYS_NAME_TO_HANDLE_AT = 4339 + SYS_OPEN_BY_HANDLE_AT = 4340 + SYS_CLOCK_ADJTIME = 4341 + SYS_SYNCFS = 4342 + SYS_SENDMMSG = 4343 + SYS_SETNS = 4344 + SYS_PROCESS_VM_READV = 4345 + SYS_PROCESS_VM_WRITEV = 4346 + SYS_KCMP = 4347 + SYS_FINIT_MODULE = 4348 + SYS_SCHED_SETATTR = 4349 + SYS_SCHED_GETATTR = 4350 + SYS_RENAMEAT2 = 4351 + SYS_SECCOMP = 4352 + SYS_GETRANDOM = 4353 + SYS_MEMFD_CREATE = 4354 + SYS_BPF = 4355 + SYS_EXECVEAT = 4356 + SYS_USERFAULTFD = 4357 + SYS_MEMBARRIER = 4358 + SYS_MLOCK2 = 4359 + SYS_COPY_FILE_RANGE = 4360 + SYS_PREADV2 = 4361 + SYS_PWRITEV2 = 4362 + SYS_PKEY_MPROTECT = 4363 + SYS_PKEY_ALLOC = 4364 + SYS_PKEY_FREE = 4365 + SYS_STATX = 4366 + SYS_RSEQ = 4367 + SYS_IO_PGETEVENTS = 4368 + SYS_SEMGET = 4393 + SYS_SEMCTL = 4394 + SYS_SHMGET = 4395 + SYS_SHMCTL = 4396 + SYS_SHMAT = 4397 + SYS_SHMDT = 4398 + SYS_MSGGET = 4399 + SYS_MSGSND = 4400 + SYS_MSGRCV = 4401 + SYS_MSGCTL = 4402 + SYS_CLOCK_GETTIME64 = 4403 + SYS_CLOCK_SETTIME64 = 4404 + SYS_CLOCK_ADJTIME64 = 4405 + SYS_CLOCK_GETRES_TIME64 = 4406 + SYS_CLOCK_NANOSLEEP_TIME64 = 4407 + SYS_TIMER_GETTIME64 = 4408 + SYS_TIMER_SETTIME64 = 4409 + SYS_TIMERFD_GETTIME64 = 4410 + SYS_TIMERFD_SETTIME64 = 4411 + SYS_UTIMENSAT_TIME64 = 4412 + SYS_PSELECT6_TIME64 = 4413 + SYS_PPOLL_TIME64 = 4414 + SYS_IO_PGETEVENTS_TIME64 = 4416 + SYS_RECVMMSG_TIME64 = 4417 + SYS_MQ_TIMEDSEND_TIME64 = 4418 + SYS_MQ_TIMEDRECEIVE_TIME64 = 4419 + SYS_SEMTIMEDOP_TIME64 = 4420 + SYS_RT_SIGTIMEDWAIT_TIME64 = 4421 + SYS_FUTEX_TIME64 = 4422 + SYS_SCHED_RR_GET_INTERVAL_TIME64 = 4423 + SYS_PIDFD_SEND_SIGNAL = 4424 + SYS_IO_URING_SETUP = 4425 + SYS_IO_URING_ENTER = 4426 + SYS_IO_URING_REGISTER = 4427 + SYS_OPEN_TREE = 4428 + SYS_MOVE_MOUNT = 4429 + SYS_FSOPEN = 4430 + SYS_FSCONFIG = 4431 + SYS_FSMOUNT = 4432 + SYS_FSPICK = 4433 + SYS_PIDFD_OPEN = 4434 + SYS_CLONE3 = 4435 + SYS_CLOSE_RANGE = 4436 + SYS_OPENAT2 = 4437 + SYS_PIDFD_GETFD = 4438 + SYS_FACCESSAT2 = 4439 + SYS_PROCESS_MADVISE = 4440 + SYS_EPOLL_PWAIT2 = 4441 + SYS_MOUNT_SETATTR = 4442 + SYS_QUOTACTL_FD = 4443 + SYS_LANDLOCK_CREATE_RULESET = 4444 + SYS_LANDLOCK_ADD_RULE = 4445 + SYS_LANDLOCK_RESTRICT_SELF = 4446 + SYS_PROCESS_MRELEASE = 4448 + SYS_FUTEX_WAITV = 4449 + SYS_SET_MEMPOLICY_HOME_NODE = 4450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go new file mode 100644 index 0000000..1fbceb5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -0,0 +1,364 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips64/include /tmp/mips64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64 && linux +// +build mips64,linux + +package unix + +const ( + SYS_READ = 5000 + SYS_WRITE = 5001 + SYS_OPEN = 5002 + SYS_CLOSE = 5003 + SYS_STAT = 5004 + SYS_FSTAT = 5005 + SYS_LSTAT = 5006 + SYS_POLL = 5007 + SYS_LSEEK = 5008 + SYS_MMAP = 5009 + SYS_MPROTECT = 5010 + SYS_MUNMAP = 5011 + SYS_BRK = 5012 + SYS_RT_SIGACTION = 5013 + SYS_RT_SIGPROCMASK = 5014 + SYS_IOCTL = 5015 + SYS_PREAD64 = 5016 + SYS_PWRITE64 = 5017 + SYS_READV = 5018 + SYS_WRITEV = 5019 + SYS_ACCESS = 5020 + SYS_PIPE = 5021 + SYS__NEWSELECT = 5022 + SYS_SCHED_YIELD = 5023 + SYS_MREMAP = 5024 + SYS_MSYNC = 5025 + SYS_MINCORE = 5026 + SYS_MADVISE = 5027 + SYS_SHMGET = 5028 + SYS_SHMAT = 5029 + SYS_SHMCTL = 5030 + SYS_DUP = 5031 + SYS_DUP2 = 5032 + SYS_PAUSE = 5033 + SYS_NANOSLEEP = 5034 + SYS_GETITIMER = 5035 + SYS_SETITIMER = 5036 + SYS_ALARM = 5037 + SYS_GETPID = 5038 + SYS_SENDFILE = 5039 + SYS_SOCKET = 5040 + SYS_CONNECT = 5041 + SYS_ACCEPT = 5042 + SYS_SENDTO = 5043 + SYS_RECVFROM = 5044 + SYS_SENDMSG = 5045 + SYS_RECVMSG = 5046 + SYS_SHUTDOWN = 5047 + SYS_BIND = 5048 + SYS_LISTEN = 5049 + SYS_GETSOCKNAME = 5050 + SYS_GETPEERNAME = 5051 + SYS_SOCKETPAIR = 5052 + SYS_SETSOCKOPT = 5053 + SYS_GETSOCKOPT = 5054 + SYS_CLONE = 5055 + SYS_FORK = 5056 + SYS_EXECVE = 5057 + SYS_EXIT = 5058 + SYS_WAIT4 = 5059 + SYS_KILL = 5060 + SYS_UNAME = 5061 + SYS_SEMGET = 5062 + SYS_SEMOP = 5063 + SYS_SEMCTL = 5064 + SYS_SHMDT = 5065 + SYS_MSGGET = 5066 + SYS_MSGSND = 5067 + SYS_MSGRCV = 5068 + SYS_MSGCTL = 5069 + SYS_FCNTL = 5070 + SYS_FLOCK = 5071 + SYS_FSYNC = 5072 + SYS_FDATASYNC = 5073 + SYS_TRUNCATE = 5074 + SYS_FTRUNCATE = 5075 + SYS_GETDENTS = 5076 + SYS_GETCWD = 5077 + SYS_CHDIR = 5078 + SYS_FCHDIR = 5079 + SYS_RENAME = 5080 + SYS_MKDIR = 5081 + SYS_RMDIR = 5082 + SYS_CREAT = 5083 + SYS_LINK = 5084 + SYS_UNLINK = 5085 + SYS_SYMLINK = 5086 + SYS_READLINK = 5087 + SYS_CHMOD = 5088 + SYS_FCHMOD = 5089 + SYS_CHOWN = 5090 + SYS_FCHOWN = 5091 + SYS_LCHOWN = 5092 + SYS_UMASK = 5093 + SYS_GETTIMEOFDAY = 5094 + SYS_GETRLIMIT = 5095 + SYS_GETRUSAGE = 5096 + SYS_SYSINFO = 5097 + SYS_TIMES = 5098 + SYS_PTRACE = 5099 + SYS_GETUID = 5100 + SYS_SYSLOG = 5101 + SYS_GETGID = 5102 + SYS_SETUID = 5103 + SYS_SETGID = 5104 + SYS_GETEUID = 5105 + SYS_GETEGID = 5106 + SYS_SETPGID = 5107 + SYS_GETPPID = 5108 + SYS_GETPGRP = 5109 + SYS_SETSID = 5110 + SYS_SETREUID = 5111 + SYS_SETREGID = 5112 + SYS_GETGROUPS = 5113 + SYS_SETGROUPS = 5114 + SYS_SETRESUID = 5115 + SYS_GETRESUID = 5116 + SYS_SETRESGID = 5117 + SYS_GETRESGID = 5118 + SYS_GETPGID = 5119 + SYS_SETFSUID = 5120 + SYS_SETFSGID = 5121 + SYS_GETSID = 5122 + SYS_CAPGET = 5123 + SYS_CAPSET = 5124 + SYS_RT_SIGPENDING = 5125 + SYS_RT_SIGTIMEDWAIT = 5126 + SYS_RT_SIGQUEUEINFO = 5127 + SYS_RT_SIGSUSPEND = 5128 + SYS_SIGALTSTACK = 5129 + SYS_UTIME = 5130 + SYS_MKNOD = 5131 + SYS_PERSONALITY = 5132 + SYS_USTAT = 5133 + SYS_STATFS = 5134 + SYS_FSTATFS = 5135 + SYS_SYSFS = 5136 + SYS_GETPRIORITY = 5137 + SYS_SETPRIORITY = 5138 + SYS_SCHED_SETPARAM = 5139 + SYS_SCHED_GETPARAM = 5140 + SYS_SCHED_SETSCHEDULER = 5141 + SYS_SCHED_GETSCHEDULER = 5142 + SYS_SCHED_GET_PRIORITY_MAX = 5143 + SYS_SCHED_GET_PRIORITY_MIN = 5144 + SYS_SCHED_RR_GET_INTERVAL = 5145 + SYS_MLOCK = 5146 + SYS_MUNLOCK = 5147 + SYS_MLOCKALL = 5148 + SYS_MUNLOCKALL = 5149 + SYS_VHANGUP = 5150 + SYS_PIVOT_ROOT = 5151 + SYS__SYSCTL = 5152 + SYS_PRCTL = 5153 + SYS_ADJTIMEX = 5154 + SYS_SETRLIMIT = 5155 + SYS_CHROOT = 5156 + SYS_SYNC = 5157 + SYS_ACCT = 5158 + SYS_SETTIMEOFDAY = 5159 + SYS_MOUNT = 5160 + SYS_UMOUNT2 = 5161 + SYS_SWAPON = 5162 + SYS_SWAPOFF = 5163 + SYS_REBOOT = 5164 + SYS_SETHOSTNAME = 5165 + SYS_SETDOMAINNAME = 5166 + SYS_CREATE_MODULE = 5167 + SYS_INIT_MODULE = 5168 + SYS_DELETE_MODULE = 5169 + SYS_GET_KERNEL_SYMS = 5170 + SYS_QUERY_MODULE = 5171 + SYS_QUOTACTL = 5172 + SYS_NFSSERVCTL = 5173 + SYS_GETPMSG = 5174 + SYS_PUTPMSG = 5175 + SYS_AFS_SYSCALL = 5176 + SYS_RESERVED177 = 5177 + SYS_GETTID = 5178 + SYS_READAHEAD = 5179 + SYS_SETXATTR = 5180 + SYS_LSETXATTR = 5181 + SYS_FSETXATTR = 5182 + SYS_GETXATTR = 5183 + SYS_LGETXATTR = 5184 + SYS_FGETXATTR = 5185 + SYS_LISTXATTR = 5186 + SYS_LLISTXATTR = 5187 + SYS_FLISTXATTR = 5188 + SYS_REMOVEXATTR = 5189 + SYS_LREMOVEXATTR = 5190 + SYS_FREMOVEXATTR = 5191 + SYS_TKILL = 5192 + SYS_RESERVED193 = 5193 + SYS_FUTEX = 5194 + SYS_SCHED_SETAFFINITY = 5195 + SYS_SCHED_GETAFFINITY = 5196 + SYS_CACHEFLUSH = 5197 + SYS_CACHECTL = 5198 + SYS_SYSMIPS = 5199 + SYS_IO_SETUP = 5200 + SYS_IO_DESTROY = 5201 + SYS_IO_GETEVENTS = 5202 + SYS_IO_SUBMIT = 5203 + SYS_IO_CANCEL = 5204 + SYS_EXIT_GROUP = 5205 + SYS_LOOKUP_DCOOKIE = 5206 + SYS_EPOLL_CREATE = 5207 + SYS_EPOLL_CTL = 5208 + SYS_EPOLL_WAIT = 5209 + SYS_REMAP_FILE_PAGES = 5210 + SYS_RT_SIGRETURN = 5211 + SYS_SET_TID_ADDRESS = 5212 + SYS_RESTART_SYSCALL = 5213 + SYS_SEMTIMEDOP = 5214 + SYS_FADVISE64 = 5215 + SYS_TIMER_CREATE = 5216 + SYS_TIMER_SETTIME = 5217 + SYS_TIMER_GETTIME = 5218 + SYS_TIMER_GETOVERRUN = 5219 + SYS_TIMER_DELETE = 5220 + SYS_CLOCK_SETTIME = 5221 + SYS_CLOCK_GETTIME = 5222 + SYS_CLOCK_GETRES = 5223 + SYS_CLOCK_NANOSLEEP = 5224 + SYS_TGKILL = 5225 + SYS_UTIMES = 5226 + SYS_MBIND = 5227 + SYS_GET_MEMPOLICY = 5228 + SYS_SET_MEMPOLICY = 5229 + SYS_MQ_OPEN = 5230 + SYS_MQ_UNLINK = 5231 + SYS_MQ_TIMEDSEND = 5232 + SYS_MQ_TIMEDRECEIVE = 5233 + SYS_MQ_NOTIFY = 5234 + SYS_MQ_GETSETATTR = 5235 + SYS_VSERVER = 5236 + SYS_WAITID = 5237 + SYS_ADD_KEY = 5239 + SYS_REQUEST_KEY = 5240 + SYS_KEYCTL = 5241 + SYS_SET_THREAD_AREA = 5242 + SYS_INOTIFY_INIT = 5243 + SYS_INOTIFY_ADD_WATCH = 5244 + SYS_INOTIFY_RM_WATCH = 5245 + SYS_MIGRATE_PAGES = 5246 + SYS_OPENAT = 5247 + SYS_MKDIRAT = 5248 + SYS_MKNODAT = 5249 + SYS_FCHOWNAT = 5250 + SYS_FUTIMESAT = 5251 + SYS_NEWFSTATAT = 5252 + SYS_UNLINKAT = 5253 + SYS_RENAMEAT = 5254 + SYS_LINKAT = 5255 + SYS_SYMLINKAT = 5256 + SYS_READLINKAT = 5257 + SYS_FCHMODAT = 5258 + SYS_FACCESSAT = 5259 + SYS_PSELECT6 = 5260 + SYS_PPOLL = 5261 + SYS_UNSHARE = 5262 + SYS_SPLICE = 5263 + SYS_SYNC_FILE_RANGE = 5264 + SYS_TEE = 5265 + SYS_VMSPLICE = 5266 + SYS_MOVE_PAGES = 5267 + SYS_SET_ROBUST_LIST = 5268 + SYS_GET_ROBUST_LIST = 5269 + SYS_KEXEC_LOAD = 5270 + SYS_GETCPU = 5271 + SYS_EPOLL_PWAIT = 5272 + SYS_IOPRIO_SET = 5273 + SYS_IOPRIO_GET = 5274 + SYS_UTIMENSAT = 5275 + SYS_SIGNALFD = 5276 + SYS_TIMERFD = 5277 + SYS_EVENTFD = 5278 + SYS_FALLOCATE = 5279 + SYS_TIMERFD_CREATE = 5280 + SYS_TIMERFD_GETTIME = 5281 + SYS_TIMERFD_SETTIME = 5282 + SYS_SIGNALFD4 = 5283 + SYS_EVENTFD2 = 5284 + SYS_EPOLL_CREATE1 = 5285 + SYS_DUP3 = 5286 + SYS_PIPE2 = 5287 + SYS_INOTIFY_INIT1 = 5288 + SYS_PREADV = 5289 + SYS_PWRITEV = 5290 + SYS_RT_TGSIGQUEUEINFO = 5291 + SYS_PERF_EVENT_OPEN = 5292 + SYS_ACCEPT4 = 5293 + SYS_RECVMMSG = 5294 + SYS_FANOTIFY_INIT = 5295 + SYS_FANOTIFY_MARK = 5296 + SYS_PRLIMIT64 = 5297 + SYS_NAME_TO_HANDLE_AT = 5298 + SYS_OPEN_BY_HANDLE_AT = 5299 + SYS_CLOCK_ADJTIME = 5300 + SYS_SYNCFS = 5301 + SYS_SENDMMSG = 5302 + SYS_SETNS = 5303 + SYS_PROCESS_VM_READV = 5304 + SYS_PROCESS_VM_WRITEV = 5305 + SYS_KCMP = 5306 + SYS_FINIT_MODULE = 5307 + SYS_GETDENTS64 = 5308 + SYS_SCHED_SETATTR = 5309 + SYS_SCHED_GETATTR = 5310 + SYS_RENAMEAT2 = 5311 + SYS_SECCOMP = 5312 + SYS_GETRANDOM = 5313 + SYS_MEMFD_CREATE = 5314 + SYS_BPF = 5315 + SYS_EXECVEAT = 5316 + SYS_USERFAULTFD = 5317 + SYS_MEMBARRIER = 5318 + SYS_MLOCK2 = 5319 + SYS_COPY_FILE_RANGE = 5320 + SYS_PREADV2 = 5321 + SYS_PWRITEV2 = 5322 + SYS_PKEY_MPROTECT = 5323 + SYS_PKEY_ALLOC = 5324 + SYS_PKEY_FREE = 5325 + SYS_STATX = 5326 + SYS_RSEQ = 5327 + SYS_IO_PGETEVENTS = 5328 + SYS_PIDFD_SEND_SIGNAL = 5424 + SYS_IO_URING_SETUP = 5425 + SYS_IO_URING_ENTER = 5426 + SYS_IO_URING_REGISTER = 5427 + SYS_OPEN_TREE = 5428 + SYS_MOVE_MOUNT = 5429 + SYS_FSOPEN = 5430 + SYS_FSCONFIG = 5431 + SYS_FSMOUNT = 5432 + SYS_FSPICK = 5433 + SYS_PIDFD_OPEN = 5434 + SYS_CLONE3 = 5435 + SYS_CLOSE_RANGE = 5436 + SYS_OPENAT2 = 5437 + SYS_PIDFD_GETFD = 5438 + SYS_FACCESSAT2 = 5439 + SYS_PROCESS_MADVISE = 5440 + SYS_EPOLL_PWAIT2 = 5441 + SYS_MOUNT_SETATTR = 5442 + SYS_QUOTACTL_FD = 5443 + SYS_LANDLOCK_CREATE_RULESET = 5444 + SYS_LANDLOCK_ADD_RULE = 5445 + SYS_LANDLOCK_RESTRICT_SELF = 5446 + SYS_PROCESS_MRELEASE = 5448 + SYS_FUTEX_WAITV = 5449 + SYS_SET_MEMPOLICY_HOME_NODE = 5450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go new file mode 100644 index 0000000..b4ffb7a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -0,0 +1,364 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips64le/include /tmp/mips64le/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64le && linux +// +build mips64le,linux + +package unix + +const ( + SYS_READ = 5000 + SYS_WRITE = 5001 + SYS_OPEN = 5002 + SYS_CLOSE = 5003 + SYS_STAT = 5004 + SYS_FSTAT = 5005 + SYS_LSTAT = 5006 + SYS_POLL = 5007 + SYS_LSEEK = 5008 + SYS_MMAP = 5009 + SYS_MPROTECT = 5010 + SYS_MUNMAP = 5011 + SYS_BRK = 5012 + SYS_RT_SIGACTION = 5013 + SYS_RT_SIGPROCMASK = 5014 + SYS_IOCTL = 5015 + SYS_PREAD64 = 5016 + SYS_PWRITE64 = 5017 + SYS_READV = 5018 + SYS_WRITEV = 5019 + SYS_ACCESS = 5020 + SYS_PIPE = 5021 + SYS__NEWSELECT = 5022 + SYS_SCHED_YIELD = 5023 + SYS_MREMAP = 5024 + SYS_MSYNC = 5025 + SYS_MINCORE = 5026 + SYS_MADVISE = 5027 + SYS_SHMGET = 5028 + SYS_SHMAT = 5029 + SYS_SHMCTL = 5030 + SYS_DUP = 5031 + SYS_DUP2 = 5032 + SYS_PAUSE = 5033 + SYS_NANOSLEEP = 5034 + SYS_GETITIMER = 5035 + SYS_SETITIMER = 5036 + SYS_ALARM = 5037 + SYS_GETPID = 5038 + SYS_SENDFILE = 5039 + SYS_SOCKET = 5040 + SYS_CONNECT = 5041 + SYS_ACCEPT = 5042 + SYS_SENDTO = 5043 + SYS_RECVFROM = 5044 + SYS_SENDMSG = 5045 + SYS_RECVMSG = 5046 + SYS_SHUTDOWN = 5047 + SYS_BIND = 5048 + SYS_LISTEN = 5049 + SYS_GETSOCKNAME = 5050 + SYS_GETPEERNAME = 5051 + SYS_SOCKETPAIR = 5052 + SYS_SETSOCKOPT = 5053 + SYS_GETSOCKOPT = 5054 + SYS_CLONE = 5055 + SYS_FORK = 5056 + SYS_EXECVE = 5057 + SYS_EXIT = 5058 + SYS_WAIT4 = 5059 + SYS_KILL = 5060 + SYS_UNAME = 5061 + SYS_SEMGET = 5062 + SYS_SEMOP = 5063 + SYS_SEMCTL = 5064 + SYS_SHMDT = 5065 + SYS_MSGGET = 5066 + SYS_MSGSND = 5067 + SYS_MSGRCV = 5068 + SYS_MSGCTL = 5069 + SYS_FCNTL = 5070 + SYS_FLOCK = 5071 + SYS_FSYNC = 5072 + SYS_FDATASYNC = 5073 + SYS_TRUNCATE = 5074 + SYS_FTRUNCATE = 5075 + SYS_GETDENTS = 5076 + SYS_GETCWD = 5077 + SYS_CHDIR = 5078 + SYS_FCHDIR = 5079 + SYS_RENAME = 5080 + SYS_MKDIR = 5081 + SYS_RMDIR = 5082 + SYS_CREAT = 5083 + SYS_LINK = 5084 + SYS_UNLINK = 5085 + SYS_SYMLINK = 5086 + SYS_READLINK = 5087 + SYS_CHMOD = 5088 + SYS_FCHMOD = 5089 + SYS_CHOWN = 5090 + SYS_FCHOWN = 5091 + SYS_LCHOWN = 5092 + SYS_UMASK = 5093 + SYS_GETTIMEOFDAY = 5094 + SYS_GETRLIMIT = 5095 + SYS_GETRUSAGE = 5096 + SYS_SYSINFO = 5097 + SYS_TIMES = 5098 + SYS_PTRACE = 5099 + SYS_GETUID = 5100 + SYS_SYSLOG = 5101 + SYS_GETGID = 5102 + SYS_SETUID = 5103 + SYS_SETGID = 5104 + SYS_GETEUID = 5105 + SYS_GETEGID = 5106 + SYS_SETPGID = 5107 + SYS_GETPPID = 5108 + SYS_GETPGRP = 5109 + SYS_SETSID = 5110 + SYS_SETREUID = 5111 + SYS_SETREGID = 5112 + SYS_GETGROUPS = 5113 + SYS_SETGROUPS = 5114 + SYS_SETRESUID = 5115 + SYS_GETRESUID = 5116 + SYS_SETRESGID = 5117 + SYS_GETRESGID = 5118 + SYS_GETPGID = 5119 + SYS_SETFSUID = 5120 + SYS_SETFSGID = 5121 + SYS_GETSID = 5122 + SYS_CAPGET = 5123 + SYS_CAPSET = 5124 + SYS_RT_SIGPENDING = 5125 + SYS_RT_SIGTIMEDWAIT = 5126 + SYS_RT_SIGQUEUEINFO = 5127 + SYS_RT_SIGSUSPEND = 5128 + SYS_SIGALTSTACK = 5129 + SYS_UTIME = 5130 + SYS_MKNOD = 5131 + SYS_PERSONALITY = 5132 + SYS_USTAT = 5133 + SYS_STATFS = 5134 + SYS_FSTATFS = 5135 + SYS_SYSFS = 5136 + SYS_GETPRIORITY = 5137 + SYS_SETPRIORITY = 5138 + SYS_SCHED_SETPARAM = 5139 + SYS_SCHED_GETPARAM = 5140 + SYS_SCHED_SETSCHEDULER = 5141 + SYS_SCHED_GETSCHEDULER = 5142 + SYS_SCHED_GET_PRIORITY_MAX = 5143 + SYS_SCHED_GET_PRIORITY_MIN = 5144 + SYS_SCHED_RR_GET_INTERVAL = 5145 + SYS_MLOCK = 5146 + SYS_MUNLOCK = 5147 + SYS_MLOCKALL = 5148 + SYS_MUNLOCKALL = 5149 + SYS_VHANGUP = 5150 + SYS_PIVOT_ROOT = 5151 + SYS__SYSCTL = 5152 + SYS_PRCTL = 5153 + SYS_ADJTIMEX = 5154 + SYS_SETRLIMIT = 5155 + SYS_CHROOT = 5156 + SYS_SYNC = 5157 + SYS_ACCT = 5158 + SYS_SETTIMEOFDAY = 5159 + SYS_MOUNT = 5160 + SYS_UMOUNT2 = 5161 + SYS_SWAPON = 5162 + SYS_SWAPOFF = 5163 + SYS_REBOOT = 5164 + SYS_SETHOSTNAME = 5165 + SYS_SETDOMAINNAME = 5166 + SYS_CREATE_MODULE = 5167 + SYS_INIT_MODULE = 5168 + SYS_DELETE_MODULE = 5169 + SYS_GET_KERNEL_SYMS = 5170 + SYS_QUERY_MODULE = 5171 + SYS_QUOTACTL = 5172 + SYS_NFSSERVCTL = 5173 + SYS_GETPMSG = 5174 + SYS_PUTPMSG = 5175 + SYS_AFS_SYSCALL = 5176 + SYS_RESERVED177 = 5177 + SYS_GETTID = 5178 + SYS_READAHEAD = 5179 + SYS_SETXATTR = 5180 + SYS_LSETXATTR = 5181 + SYS_FSETXATTR = 5182 + SYS_GETXATTR = 5183 + SYS_LGETXATTR = 5184 + SYS_FGETXATTR = 5185 + SYS_LISTXATTR = 5186 + SYS_LLISTXATTR = 5187 + SYS_FLISTXATTR = 5188 + SYS_REMOVEXATTR = 5189 + SYS_LREMOVEXATTR = 5190 + SYS_FREMOVEXATTR = 5191 + SYS_TKILL = 5192 + SYS_RESERVED193 = 5193 + SYS_FUTEX = 5194 + SYS_SCHED_SETAFFINITY = 5195 + SYS_SCHED_GETAFFINITY = 5196 + SYS_CACHEFLUSH = 5197 + SYS_CACHECTL = 5198 + SYS_SYSMIPS = 5199 + SYS_IO_SETUP = 5200 + SYS_IO_DESTROY = 5201 + SYS_IO_GETEVENTS = 5202 + SYS_IO_SUBMIT = 5203 + SYS_IO_CANCEL = 5204 + SYS_EXIT_GROUP = 5205 + SYS_LOOKUP_DCOOKIE = 5206 + SYS_EPOLL_CREATE = 5207 + SYS_EPOLL_CTL = 5208 + SYS_EPOLL_WAIT = 5209 + SYS_REMAP_FILE_PAGES = 5210 + SYS_RT_SIGRETURN = 5211 + SYS_SET_TID_ADDRESS = 5212 + SYS_RESTART_SYSCALL = 5213 + SYS_SEMTIMEDOP = 5214 + SYS_FADVISE64 = 5215 + SYS_TIMER_CREATE = 5216 + SYS_TIMER_SETTIME = 5217 + SYS_TIMER_GETTIME = 5218 + SYS_TIMER_GETOVERRUN = 5219 + SYS_TIMER_DELETE = 5220 + SYS_CLOCK_SETTIME = 5221 + SYS_CLOCK_GETTIME = 5222 + SYS_CLOCK_GETRES = 5223 + SYS_CLOCK_NANOSLEEP = 5224 + SYS_TGKILL = 5225 + SYS_UTIMES = 5226 + SYS_MBIND = 5227 + SYS_GET_MEMPOLICY = 5228 + SYS_SET_MEMPOLICY = 5229 + SYS_MQ_OPEN = 5230 + SYS_MQ_UNLINK = 5231 + SYS_MQ_TIMEDSEND = 5232 + SYS_MQ_TIMEDRECEIVE = 5233 + SYS_MQ_NOTIFY = 5234 + SYS_MQ_GETSETATTR = 5235 + SYS_VSERVER = 5236 + SYS_WAITID = 5237 + SYS_ADD_KEY = 5239 + SYS_REQUEST_KEY = 5240 + SYS_KEYCTL = 5241 + SYS_SET_THREAD_AREA = 5242 + SYS_INOTIFY_INIT = 5243 + SYS_INOTIFY_ADD_WATCH = 5244 + SYS_INOTIFY_RM_WATCH = 5245 + SYS_MIGRATE_PAGES = 5246 + SYS_OPENAT = 5247 + SYS_MKDIRAT = 5248 + SYS_MKNODAT = 5249 + SYS_FCHOWNAT = 5250 + SYS_FUTIMESAT = 5251 + SYS_NEWFSTATAT = 5252 + SYS_UNLINKAT = 5253 + SYS_RENAMEAT = 5254 + SYS_LINKAT = 5255 + SYS_SYMLINKAT = 5256 + SYS_READLINKAT = 5257 + SYS_FCHMODAT = 5258 + SYS_FACCESSAT = 5259 + SYS_PSELECT6 = 5260 + SYS_PPOLL = 5261 + SYS_UNSHARE = 5262 + SYS_SPLICE = 5263 + SYS_SYNC_FILE_RANGE = 5264 + SYS_TEE = 5265 + SYS_VMSPLICE = 5266 + SYS_MOVE_PAGES = 5267 + SYS_SET_ROBUST_LIST = 5268 + SYS_GET_ROBUST_LIST = 5269 + SYS_KEXEC_LOAD = 5270 + SYS_GETCPU = 5271 + SYS_EPOLL_PWAIT = 5272 + SYS_IOPRIO_SET = 5273 + SYS_IOPRIO_GET = 5274 + SYS_UTIMENSAT = 5275 + SYS_SIGNALFD = 5276 + SYS_TIMERFD = 5277 + SYS_EVENTFD = 5278 + SYS_FALLOCATE = 5279 + SYS_TIMERFD_CREATE = 5280 + SYS_TIMERFD_GETTIME = 5281 + SYS_TIMERFD_SETTIME = 5282 + SYS_SIGNALFD4 = 5283 + SYS_EVENTFD2 = 5284 + SYS_EPOLL_CREATE1 = 5285 + SYS_DUP3 = 5286 + SYS_PIPE2 = 5287 + SYS_INOTIFY_INIT1 = 5288 + SYS_PREADV = 5289 + SYS_PWRITEV = 5290 + SYS_RT_TGSIGQUEUEINFO = 5291 + SYS_PERF_EVENT_OPEN = 5292 + SYS_ACCEPT4 = 5293 + SYS_RECVMMSG = 5294 + SYS_FANOTIFY_INIT = 5295 + SYS_FANOTIFY_MARK = 5296 + SYS_PRLIMIT64 = 5297 + SYS_NAME_TO_HANDLE_AT = 5298 + SYS_OPEN_BY_HANDLE_AT = 5299 + SYS_CLOCK_ADJTIME = 5300 + SYS_SYNCFS = 5301 + SYS_SENDMMSG = 5302 + SYS_SETNS = 5303 + SYS_PROCESS_VM_READV = 5304 + SYS_PROCESS_VM_WRITEV = 5305 + SYS_KCMP = 5306 + SYS_FINIT_MODULE = 5307 + SYS_GETDENTS64 = 5308 + SYS_SCHED_SETATTR = 5309 + SYS_SCHED_GETATTR = 5310 + SYS_RENAMEAT2 = 5311 + SYS_SECCOMP = 5312 + SYS_GETRANDOM = 5313 + SYS_MEMFD_CREATE = 5314 + SYS_BPF = 5315 + SYS_EXECVEAT = 5316 + SYS_USERFAULTFD = 5317 + SYS_MEMBARRIER = 5318 + SYS_MLOCK2 = 5319 + SYS_COPY_FILE_RANGE = 5320 + SYS_PREADV2 = 5321 + SYS_PWRITEV2 = 5322 + SYS_PKEY_MPROTECT = 5323 + SYS_PKEY_ALLOC = 5324 + SYS_PKEY_FREE = 5325 + SYS_STATX = 5326 + SYS_RSEQ = 5327 + SYS_IO_PGETEVENTS = 5328 + SYS_PIDFD_SEND_SIGNAL = 5424 + SYS_IO_URING_SETUP = 5425 + SYS_IO_URING_ENTER = 5426 + SYS_IO_URING_REGISTER = 5427 + SYS_OPEN_TREE = 5428 + SYS_MOVE_MOUNT = 5429 + SYS_FSOPEN = 5430 + SYS_FSCONFIG = 5431 + SYS_FSMOUNT = 5432 + SYS_FSPICK = 5433 + SYS_PIDFD_OPEN = 5434 + SYS_CLONE3 = 5435 + SYS_CLOSE_RANGE = 5436 + SYS_OPENAT2 = 5437 + SYS_PIDFD_GETFD = 5438 + SYS_FACCESSAT2 = 5439 + SYS_PROCESS_MADVISE = 5440 + SYS_EPOLL_PWAIT2 = 5441 + SYS_MOUNT_SETATTR = 5442 + SYS_QUOTACTL_FD = 5443 + SYS_LANDLOCK_CREATE_RULESET = 5444 + SYS_LANDLOCK_ADD_RULE = 5445 + SYS_LANDLOCK_RESTRICT_SELF = 5446 + SYS_PROCESS_MRELEASE = 5448 + SYS_FUTEX_WAITV = 5449 + SYS_SET_MEMPOLICY_HOME_NODE = 5450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go new file mode 100644 index 0000000..867985f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -0,0 +1,434 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mipsle/include /tmp/mipsle/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mipsle && linux +// +build mipsle,linux + +package unix + +const ( + SYS_SYSCALL = 4000 + SYS_EXIT = 4001 + SYS_FORK = 4002 + SYS_READ = 4003 + SYS_WRITE = 4004 + SYS_OPEN = 4005 + SYS_CLOSE = 4006 + SYS_WAITPID = 4007 + SYS_CREAT = 4008 + SYS_LINK = 4009 + SYS_UNLINK = 4010 + SYS_EXECVE = 4011 + SYS_CHDIR = 4012 + SYS_TIME = 4013 + SYS_MKNOD = 4014 + SYS_CHMOD = 4015 + SYS_LCHOWN = 4016 + SYS_BREAK = 4017 + SYS_UNUSED18 = 4018 + SYS_LSEEK = 4019 + SYS_GETPID = 4020 + SYS_MOUNT = 4021 + SYS_UMOUNT = 4022 + SYS_SETUID = 4023 + SYS_GETUID = 4024 + SYS_STIME = 4025 + SYS_PTRACE = 4026 + SYS_ALARM = 4027 + SYS_UNUSED28 = 4028 + SYS_PAUSE = 4029 + SYS_UTIME = 4030 + SYS_STTY = 4031 + SYS_GTTY = 4032 + SYS_ACCESS = 4033 + SYS_NICE = 4034 + SYS_FTIME = 4035 + SYS_SYNC = 4036 + SYS_KILL = 4037 + SYS_RENAME = 4038 + SYS_MKDIR = 4039 + SYS_RMDIR = 4040 + SYS_DUP = 4041 + SYS_PIPE = 4042 + SYS_TIMES = 4043 + SYS_PROF = 4044 + SYS_BRK = 4045 + SYS_SETGID = 4046 + SYS_GETGID = 4047 + SYS_SIGNAL = 4048 + SYS_GETEUID = 4049 + SYS_GETEGID = 4050 + SYS_ACCT = 4051 + SYS_UMOUNT2 = 4052 + SYS_LOCK = 4053 + SYS_IOCTL = 4054 + SYS_FCNTL = 4055 + SYS_MPX = 4056 + SYS_SETPGID = 4057 + SYS_ULIMIT = 4058 + SYS_UNUSED59 = 4059 + SYS_UMASK = 4060 + SYS_CHROOT = 4061 + SYS_USTAT = 4062 + SYS_DUP2 = 4063 + SYS_GETPPID = 4064 + SYS_GETPGRP = 4065 + SYS_SETSID = 4066 + SYS_SIGACTION = 4067 + SYS_SGETMASK = 4068 + SYS_SSETMASK = 4069 + SYS_SETREUID = 4070 + SYS_SETREGID = 4071 + SYS_SIGSUSPEND = 4072 + SYS_SIGPENDING = 4073 + SYS_SETHOSTNAME = 4074 + SYS_SETRLIMIT = 4075 + SYS_GETRLIMIT = 4076 + SYS_GETRUSAGE = 4077 + SYS_GETTIMEOFDAY = 4078 + SYS_SETTIMEOFDAY = 4079 + SYS_GETGROUPS = 4080 + SYS_SETGROUPS = 4081 + SYS_RESERVED82 = 4082 + SYS_SYMLINK = 4083 + SYS_UNUSED84 = 4084 + SYS_READLINK = 4085 + SYS_USELIB = 4086 + SYS_SWAPON = 4087 + SYS_REBOOT = 4088 + SYS_READDIR = 4089 + SYS_MMAP = 4090 + SYS_MUNMAP = 4091 + SYS_TRUNCATE = 4092 + SYS_FTRUNCATE = 4093 + SYS_FCHMOD = 4094 + SYS_FCHOWN = 4095 + SYS_GETPRIORITY = 4096 + SYS_SETPRIORITY = 4097 + SYS_PROFIL = 4098 + SYS_STATFS = 4099 + SYS_FSTATFS = 4100 + SYS_IOPERM = 4101 + SYS_SOCKETCALL = 4102 + SYS_SYSLOG = 4103 + SYS_SETITIMER = 4104 + SYS_GETITIMER = 4105 + SYS_STAT = 4106 + SYS_LSTAT = 4107 + SYS_FSTAT = 4108 + SYS_UNUSED109 = 4109 + SYS_IOPL = 4110 + SYS_VHANGUP = 4111 + SYS_IDLE = 4112 + SYS_VM86 = 4113 + SYS_WAIT4 = 4114 + SYS_SWAPOFF = 4115 + SYS_SYSINFO = 4116 + SYS_IPC = 4117 + SYS_FSYNC = 4118 + SYS_SIGRETURN = 4119 + SYS_CLONE = 4120 + SYS_SETDOMAINNAME = 4121 + SYS_UNAME = 4122 + SYS_MODIFY_LDT = 4123 + SYS_ADJTIMEX = 4124 + SYS_MPROTECT = 4125 + SYS_SIGPROCMASK = 4126 + SYS_CREATE_MODULE = 4127 + SYS_INIT_MODULE = 4128 + SYS_DELETE_MODULE = 4129 + SYS_GET_KERNEL_SYMS = 4130 + SYS_QUOTACTL = 4131 + SYS_GETPGID = 4132 + SYS_FCHDIR = 4133 + SYS_BDFLUSH = 4134 + SYS_SYSFS = 4135 + SYS_PERSONALITY = 4136 + SYS_AFS_SYSCALL = 4137 + SYS_SETFSUID = 4138 + SYS_SETFSGID = 4139 + SYS__LLSEEK = 4140 + SYS_GETDENTS = 4141 + SYS__NEWSELECT = 4142 + SYS_FLOCK = 4143 + SYS_MSYNC = 4144 + SYS_READV = 4145 + SYS_WRITEV = 4146 + SYS_CACHEFLUSH = 4147 + SYS_CACHECTL = 4148 + SYS_SYSMIPS = 4149 + SYS_UNUSED150 = 4150 + SYS_GETSID = 4151 + SYS_FDATASYNC = 4152 + SYS__SYSCTL = 4153 + SYS_MLOCK = 4154 + SYS_MUNLOCK = 4155 + SYS_MLOCKALL = 4156 + SYS_MUNLOCKALL = 4157 + SYS_SCHED_SETPARAM = 4158 + SYS_SCHED_GETPARAM = 4159 + SYS_SCHED_SETSCHEDULER = 4160 + SYS_SCHED_GETSCHEDULER = 4161 + SYS_SCHED_YIELD = 4162 + SYS_SCHED_GET_PRIORITY_MAX = 4163 + SYS_SCHED_GET_PRIORITY_MIN = 4164 + SYS_SCHED_RR_GET_INTERVAL = 4165 + SYS_NANOSLEEP = 4166 + SYS_MREMAP = 4167 + SYS_ACCEPT = 4168 + SYS_BIND = 4169 + SYS_CONNECT = 4170 + SYS_GETPEERNAME = 4171 + SYS_GETSOCKNAME = 4172 + SYS_GETSOCKOPT = 4173 + SYS_LISTEN = 4174 + SYS_RECV = 4175 + SYS_RECVFROM = 4176 + SYS_RECVMSG = 4177 + SYS_SEND = 4178 + SYS_SENDMSG = 4179 + SYS_SENDTO = 4180 + SYS_SETSOCKOPT = 4181 + SYS_SHUTDOWN = 4182 + SYS_SOCKET = 4183 + SYS_SOCKETPAIR = 4184 + SYS_SETRESUID = 4185 + SYS_GETRESUID = 4186 + SYS_QUERY_MODULE = 4187 + SYS_POLL = 4188 + SYS_NFSSERVCTL = 4189 + SYS_SETRESGID = 4190 + SYS_GETRESGID = 4191 + SYS_PRCTL = 4192 + SYS_RT_SIGRETURN = 4193 + SYS_RT_SIGACTION = 4194 + SYS_RT_SIGPROCMASK = 4195 + SYS_RT_SIGPENDING = 4196 + SYS_RT_SIGTIMEDWAIT = 4197 + SYS_RT_SIGQUEUEINFO = 4198 + SYS_RT_SIGSUSPEND = 4199 + SYS_PREAD64 = 4200 + SYS_PWRITE64 = 4201 + SYS_CHOWN = 4202 + SYS_GETCWD = 4203 + SYS_CAPGET = 4204 + SYS_CAPSET = 4205 + SYS_SIGALTSTACK = 4206 + SYS_SENDFILE = 4207 + SYS_GETPMSG = 4208 + SYS_PUTPMSG = 4209 + SYS_MMAP2 = 4210 + SYS_TRUNCATE64 = 4211 + SYS_FTRUNCATE64 = 4212 + SYS_STAT64 = 4213 + SYS_LSTAT64 = 4214 + SYS_FSTAT64 = 4215 + SYS_PIVOT_ROOT = 4216 + SYS_MINCORE = 4217 + SYS_MADVISE = 4218 + SYS_GETDENTS64 = 4219 + SYS_FCNTL64 = 4220 + SYS_RESERVED221 = 4221 + SYS_GETTID = 4222 + SYS_READAHEAD = 4223 + SYS_SETXATTR = 4224 + SYS_LSETXATTR = 4225 + SYS_FSETXATTR = 4226 + SYS_GETXATTR = 4227 + SYS_LGETXATTR = 4228 + SYS_FGETXATTR = 4229 + SYS_LISTXATTR = 4230 + SYS_LLISTXATTR = 4231 + SYS_FLISTXATTR = 4232 + SYS_REMOVEXATTR = 4233 + SYS_LREMOVEXATTR = 4234 + SYS_FREMOVEXATTR = 4235 + SYS_TKILL = 4236 + SYS_SENDFILE64 = 4237 + SYS_FUTEX = 4238 + SYS_SCHED_SETAFFINITY = 4239 + SYS_SCHED_GETAFFINITY = 4240 + SYS_IO_SETUP = 4241 + SYS_IO_DESTROY = 4242 + SYS_IO_GETEVENTS = 4243 + SYS_IO_SUBMIT = 4244 + SYS_IO_CANCEL = 4245 + SYS_EXIT_GROUP = 4246 + SYS_LOOKUP_DCOOKIE = 4247 + SYS_EPOLL_CREATE = 4248 + SYS_EPOLL_CTL = 4249 + SYS_EPOLL_WAIT = 4250 + SYS_REMAP_FILE_PAGES = 4251 + SYS_SET_TID_ADDRESS = 4252 + SYS_RESTART_SYSCALL = 4253 + SYS_FADVISE64 = 4254 + SYS_STATFS64 = 4255 + SYS_FSTATFS64 = 4256 + SYS_TIMER_CREATE = 4257 + SYS_TIMER_SETTIME = 4258 + SYS_TIMER_GETTIME = 4259 + SYS_TIMER_GETOVERRUN = 4260 + SYS_TIMER_DELETE = 4261 + SYS_CLOCK_SETTIME = 4262 + SYS_CLOCK_GETTIME = 4263 + SYS_CLOCK_GETRES = 4264 + SYS_CLOCK_NANOSLEEP = 4265 + SYS_TGKILL = 4266 + SYS_UTIMES = 4267 + SYS_MBIND = 4268 + SYS_GET_MEMPOLICY = 4269 + SYS_SET_MEMPOLICY = 4270 + SYS_MQ_OPEN = 4271 + SYS_MQ_UNLINK = 4272 + SYS_MQ_TIMEDSEND = 4273 + SYS_MQ_TIMEDRECEIVE = 4274 + SYS_MQ_NOTIFY = 4275 + SYS_MQ_GETSETATTR = 4276 + SYS_VSERVER = 4277 + SYS_WAITID = 4278 + SYS_ADD_KEY = 4280 + SYS_REQUEST_KEY = 4281 + SYS_KEYCTL = 4282 + SYS_SET_THREAD_AREA = 4283 + SYS_INOTIFY_INIT = 4284 + SYS_INOTIFY_ADD_WATCH = 4285 + SYS_INOTIFY_RM_WATCH = 4286 + SYS_MIGRATE_PAGES = 4287 + SYS_OPENAT = 4288 + SYS_MKDIRAT = 4289 + SYS_MKNODAT = 4290 + SYS_FCHOWNAT = 4291 + SYS_FUTIMESAT = 4292 + SYS_FSTATAT64 = 4293 + SYS_UNLINKAT = 4294 + SYS_RENAMEAT = 4295 + SYS_LINKAT = 4296 + SYS_SYMLINKAT = 4297 + SYS_READLINKAT = 4298 + SYS_FCHMODAT = 4299 + SYS_FACCESSAT = 4300 + SYS_PSELECT6 = 4301 + SYS_PPOLL = 4302 + SYS_UNSHARE = 4303 + SYS_SPLICE = 4304 + SYS_SYNC_FILE_RANGE = 4305 + SYS_TEE = 4306 + SYS_VMSPLICE = 4307 + SYS_MOVE_PAGES = 4308 + SYS_SET_ROBUST_LIST = 4309 + SYS_GET_ROBUST_LIST = 4310 + SYS_KEXEC_LOAD = 4311 + SYS_GETCPU = 4312 + SYS_EPOLL_PWAIT = 4313 + SYS_IOPRIO_SET = 4314 + SYS_IOPRIO_GET = 4315 + SYS_UTIMENSAT = 4316 + SYS_SIGNALFD = 4317 + SYS_TIMERFD = 4318 + SYS_EVENTFD = 4319 + SYS_FALLOCATE = 4320 + SYS_TIMERFD_CREATE = 4321 + SYS_TIMERFD_GETTIME = 4322 + SYS_TIMERFD_SETTIME = 4323 + SYS_SIGNALFD4 = 4324 + SYS_EVENTFD2 = 4325 + SYS_EPOLL_CREATE1 = 4326 + SYS_DUP3 = 4327 + SYS_PIPE2 = 4328 + SYS_INOTIFY_INIT1 = 4329 + SYS_PREADV = 4330 + SYS_PWRITEV = 4331 + SYS_RT_TGSIGQUEUEINFO = 4332 + SYS_PERF_EVENT_OPEN = 4333 + SYS_ACCEPT4 = 4334 + SYS_RECVMMSG = 4335 + SYS_FANOTIFY_INIT = 4336 + SYS_FANOTIFY_MARK = 4337 + SYS_PRLIMIT64 = 4338 + SYS_NAME_TO_HANDLE_AT = 4339 + SYS_OPEN_BY_HANDLE_AT = 4340 + SYS_CLOCK_ADJTIME = 4341 + SYS_SYNCFS = 4342 + SYS_SENDMMSG = 4343 + SYS_SETNS = 4344 + SYS_PROCESS_VM_READV = 4345 + SYS_PROCESS_VM_WRITEV = 4346 + SYS_KCMP = 4347 + SYS_FINIT_MODULE = 4348 + SYS_SCHED_SETATTR = 4349 + SYS_SCHED_GETATTR = 4350 + SYS_RENAMEAT2 = 4351 + SYS_SECCOMP = 4352 + SYS_GETRANDOM = 4353 + SYS_MEMFD_CREATE = 4354 + SYS_BPF = 4355 + SYS_EXECVEAT = 4356 + SYS_USERFAULTFD = 4357 + SYS_MEMBARRIER = 4358 + SYS_MLOCK2 = 4359 + SYS_COPY_FILE_RANGE = 4360 + SYS_PREADV2 = 4361 + SYS_PWRITEV2 = 4362 + SYS_PKEY_MPROTECT = 4363 + SYS_PKEY_ALLOC = 4364 + SYS_PKEY_FREE = 4365 + SYS_STATX = 4366 + SYS_RSEQ = 4367 + SYS_IO_PGETEVENTS = 4368 + SYS_SEMGET = 4393 + SYS_SEMCTL = 4394 + SYS_SHMGET = 4395 + SYS_SHMCTL = 4396 + SYS_SHMAT = 4397 + SYS_SHMDT = 4398 + SYS_MSGGET = 4399 + SYS_MSGSND = 4400 + SYS_MSGRCV = 4401 + SYS_MSGCTL = 4402 + SYS_CLOCK_GETTIME64 = 4403 + SYS_CLOCK_SETTIME64 = 4404 + SYS_CLOCK_ADJTIME64 = 4405 + SYS_CLOCK_GETRES_TIME64 = 4406 + SYS_CLOCK_NANOSLEEP_TIME64 = 4407 + SYS_TIMER_GETTIME64 = 4408 + SYS_TIMER_SETTIME64 = 4409 + SYS_TIMERFD_GETTIME64 = 4410 + SYS_TIMERFD_SETTIME64 = 4411 + SYS_UTIMENSAT_TIME64 = 4412 + SYS_PSELECT6_TIME64 = 4413 + SYS_PPOLL_TIME64 = 4414 + SYS_IO_PGETEVENTS_TIME64 = 4416 + SYS_RECVMMSG_TIME64 = 4417 + SYS_MQ_TIMEDSEND_TIME64 = 4418 + SYS_MQ_TIMEDRECEIVE_TIME64 = 4419 + SYS_SEMTIMEDOP_TIME64 = 4420 + SYS_RT_SIGTIMEDWAIT_TIME64 = 4421 + SYS_FUTEX_TIME64 = 4422 + SYS_SCHED_RR_GET_INTERVAL_TIME64 = 4423 + SYS_PIDFD_SEND_SIGNAL = 4424 + SYS_IO_URING_SETUP = 4425 + SYS_IO_URING_ENTER = 4426 + SYS_IO_URING_REGISTER = 4427 + SYS_OPEN_TREE = 4428 + SYS_MOVE_MOUNT = 4429 + SYS_FSOPEN = 4430 + SYS_FSCONFIG = 4431 + SYS_FSMOUNT = 4432 + SYS_FSPICK = 4433 + SYS_PIDFD_OPEN = 4434 + SYS_CLONE3 = 4435 + SYS_CLOSE_RANGE = 4436 + SYS_OPENAT2 = 4437 + SYS_PIDFD_GETFD = 4438 + SYS_FACCESSAT2 = 4439 + SYS_PROCESS_MADVISE = 4440 + SYS_EPOLL_PWAIT2 = 4441 + SYS_MOUNT_SETATTR = 4442 + SYS_QUOTACTL_FD = 4443 + SYS_LANDLOCK_CREATE_RULESET = 4444 + SYS_LANDLOCK_ADD_RULE = 4445 + SYS_LANDLOCK_RESTRICT_SELF = 4446 + SYS_PROCESS_MRELEASE = 4448 + SYS_FUTEX_WAITV = 4449 + SYS_SET_MEMPOLICY_HOME_NODE = 4450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go new file mode 100644 index 0000000..a8cce69 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go @@ -0,0 +1,441 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc/include /tmp/ppc/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc && linux +// +build ppc,linux + +package unix + +const ( + SYS_RESTART_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAITPID = 7 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECVE = 11 + SYS_CHDIR = 12 + SYS_TIME = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LCHOWN = 16 + SYS_BREAK = 17 + SYS_OLDSTAT = 18 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_MOUNT = 21 + SYS_UMOUNT = 22 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_STIME = 25 + SYS_PTRACE = 26 + SYS_ALARM = 27 + SYS_OLDFSTAT = 28 + SYS_PAUSE = 29 + SYS_UTIME = 30 + SYS_STTY = 31 + SYS_GTTY = 32 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_FTIME = 35 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_RENAME = 38 + SYS_MKDIR = 39 + SYS_RMDIR = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_PROF = 44 + SYS_BRK = 45 + SYS_SETGID = 46 + SYS_GETGID = 47 + SYS_SIGNAL = 48 + SYS_GETEUID = 49 + SYS_GETEGID = 50 + SYS_ACCT = 51 + SYS_UMOUNT2 = 52 + SYS_LOCK = 53 + SYS_IOCTL = 54 + SYS_FCNTL = 55 + SYS_MPX = 56 + SYS_SETPGID = 57 + SYS_ULIMIT = 58 + SYS_OLDOLDUNAME = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_USTAT = 62 + SYS_DUP2 = 63 + SYS_GETPPID = 64 + SYS_GETPGRP = 65 + SYS_SETSID = 66 + SYS_SIGACTION = 67 + SYS_SGETMASK = 68 + SYS_SSETMASK = 69 + SYS_SETREUID = 70 + SYS_SETREGID = 71 + SYS_SIGSUSPEND = 72 + SYS_SIGPENDING = 73 + SYS_SETHOSTNAME = 74 + SYS_SETRLIMIT = 75 + SYS_GETRLIMIT = 76 + SYS_GETRUSAGE = 77 + SYS_GETTIMEOFDAY = 78 + SYS_SETTIMEOFDAY = 79 + SYS_GETGROUPS = 80 + SYS_SETGROUPS = 81 + SYS_SELECT = 82 + SYS_SYMLINK = 83 + SYS_OLDLSTAT = 84 + SYS_READLINK = 85 + SYS_USELIB = 86 + SYS_SWAPON = 87 + SYS_REBOOT = 88 + SYS_READDIR = 89 + SYS_MMAP = 90 + SYS_MUNMAP = 91 + SYS_TRUNCATE = 92 + SYS_FTRUNCATE = 93 + SYS_FCHMOD = 94 + SYS_FCHOWN = 95 + SYS_GETPRIORITY = 96 + SYS_SETPRIORITY = 97 + SYS_PROFIL = 98 + SYS_STATFS = 99 + SYS_FSTATFS = 100 + SYS_IOPERM = 101 + SYS_SOCKETCALL = 102 + SYS_SYSLOG = 103 + SYS_SETITIMER = 104 + SYS_GETITIMER = 105 + SYS_STAT = 106 + SYS_LSTAT = 107 + SYS_FSTAT = 108 + SYS_OLDUNAME = 109 + SYS_IOPL = 110 + SYS_VHANGUP = 111 + SYS_IDLE = 112 + SYS_VM86 = 113 + SYS_WAIT4 = 114 + SYS_SWAPOFF = 115 + SYS_SYSINFO = 116 + SYS_IPC = 117 + SYS_FSYNC = 118 + SYS_SIGRETURN = 119 + SYS_CLONE = 120 + SYS_SETDOMAINNAME = 121 + SYS_UNAME = 122 + SYS_MODIFY_LDT = 123 + SYS_ADJTIMEX = 124 + SYS_MPROTECT = 125 + SYS_SIGPROCMASK = 126 + SYS_CREATE_MODULE = 127 + SYS_INIT_MODULE = 128 + SYS_DELETE_MODULE = 129 + SYS_GET_KERNEL_SYMS = 130 + SYS_QUOTACTL = 131 + SYS_GETPGID = 132 + SYS_FCHDIR = 133 + SYS_BDFLUSH = 134 + SYS_SYSFS = 135 + SYS_PERSONALITY = 136 + SYS_AFS_SYSCALL = 137 + SYS_SETFSUID = 138 + SYS_SETFSGID = 139 + SYS__LLSEEK = 140 + SYS_GETDENTS = 141 + SYS__NEWSELECT = 142 + SYS_FLOCK = 143 + SYS_MSYNC = 144 + SYS_READV = 145 + SYS_WRITEV = 146 + SYS_GETSID = 147 + SYS_FDATASYNC = 148 + SYS__SYSCTL = 149 + SYS_MLOCK = 150 + SYS_MUNLOCK = 151 + SYS_MLOCKALL = 152 + SYS_MUNLOCKALL = 153 + SYS_SCHED_SETPARAM = 154 + SYS_SCHED_GETPARAM = 155 + SYS_SCHED_SETSCHEDULER = 156 + SYS_SCHED_GETSCHEDULER = 157 + SYS_SCHED_YIELD = 158 + SYS_SCHED_GET_PRIORITY_MAX = 159 + SYS_SCHED_GET_PRIORITY_MIN = 160 + SYS_SCHED_RR_GET_INTERVAL = 161 + SYS_NANOSLEEP = 162 + SYS_MREMAP = 163 + SYS_SETRESUID = 164 + SYS_GETRESUID = 165 + SYS_QUERY_MODULE = 166 + SYS_POLL = 167 + SYS_NFSSERVCTL = 168 + SYS_SETRESGID = 169 + SYS_GETRESGID = 170 + SYS_PRCTL = 171 + SYS_RT_SIGRETURN = 172 + SYS_RT_SIGACTION = 173 + SYS_RT_SIGPROCMASK = 174 + SYS_RT_SIGPENDING = 175 + SYS_RT_SIGTIMEDWAIT = 176 + SYS_RT_SIGQUEUEINFO = 177 + SYS_RT_SIGSUSPEND = 178 + SYS_PREAD64 = 179 + SYS_PWRITE64 = 180 + SYS_CHOWN = 181 + SYS_GETCWD = 182 + SYS_CAPGET = 183 + SYS_CAPSET = 184 + SYS_SIGALTSTACK = 185 + SYS_SENDFILE = 186 + SYS_GETPMSG = 187 + SYS_PUTPMSG = 188 + SYS_VFORK = 189 + SYS_UGETRLIMIT = 190 + SYS_READAHEAD = 191 + SYS_MMAP2 = 192 + SYS_TRUNCATE64 = 193 + SYS_FTRUNCATE64 = 194 + SYS_STAT64 = 195 + SYS_LSTAT64 = 196 + SYS_FSTAT64 = 197 + SYS_PCICONFIG_READ = 198 + SYS_PCICONFIG_WRITE = 199 + SYS_PCICONFIG_IOBASE = 200 + SYS_MULTIPLEXER = 201 + SYS_GETDENTS64 = 202 + SYS_PIVOT_ROOT = 203 + SYS_FCNTL64 = 204 + SYS_MADVISE = 205 + SYS_MINCORE = 206 + SYS_GETTID = 207 + SYS_TKILL = 208 + SYS_SETXATTR = 209 + SYS_LSETXATTR = 210 + SYS_FSETXATTR = 211 + SYS_GETXATTR = 212 + SYS_LGETXATTR = 213 + SYS_FGETXATTR = 214 + SYS_LISTXATTR = 215 + SYS_LLISTXATTR = 216 + SYS_FLISTXATTR = 217 + SYS_REMOVEXATTR = 218 + SYS_LREMOVEXATTR = 219 + SYS_FREMOVEXATTR = 220 + SYS_FUTEX = 221 + SYS_SCHED_SETAFFINITY = 222 + SYS_SCHED_GETAFFINITY = 223 + SYS_TUXCALL = 225 + SYS_SENDFILE64 = 226 + SYS_IO_SETUP = 227 + SYS_IO_DESTROY = 228 + SYS_IO_GETEVENTS = 229 + SYS_IO_SUBMIT = 230 + SYS_IO_CANCEL = 231 + SYS_SET_TID_ADDRESS = 232 + SYS_FADVISE64 = 233 + SYS_EXIT_GROUP = 234 + SYS_LOOKUP_DCOOKIE = 235 + SYS_EPOLL_CREATE = 236 + SYS_EPOLL_CTL = 237 + SYS_EPOLL_WAIT = 238 + SYS_REMAP_FILE_PAGES = 239 + SYS_TIMER_CREATE = 240 + SYS_TIMER_SETTIME = 241 + SYS_TIMER_GETTIME = 242 + SYS_TIMER_GETOVERRUN = 243 + SYS_TIMER_DELETE = 244 + SYS_CLOCK_SETTIME = 245 + SYS_CLOCK_GETTIME = 246 + SYS_CLOCK_GETRES = 247 + SYS_CLOCK_NANOSLEEP = 248 + SYS_SWAPCONTEXT = 249 + SYS_TGKILL = 250 + SYS_UTIMES = 251 + SYS_STATFS64 = 252 + SYS_FSTATFS64 = 253 + SYS_FADVISE64_64 = 254 + SYS_RTAS = 255 + SYS_SYS_DEBUG_SETCONTEXT = 256 + SYS_MIGRATE_PAGES = 258 + SYS_MBIND = 259 + SYS_GET_MEMPOLICY = 260 + SYS_SET_MEMPOLICY = 261 + SYS_MQ_OPEN = 262 + SYS_MQ_UNLINK = 263 + SYS_MQ_TIMEDSEND = 264 + SYS_MQ_TIMEDRECEIVE = 265 + SYS_MQ_NOTIFY = 266 + SYS_MQ_GETSETATTR = 267 + SYS_KEXEC_LOAD = 268 + SYS_ADD_KEY = 269 + SYS_REQUEST_KEY = 270 + SYS_KEYCTL = 271 + SYS_WAITID = 272 + SYS_IOPRIO_SET = 273 + SYS_IOPRIO_GET = 274 + SYS_INOTIFY_INIT = 275 + SYS_INOTIFY_ADD_WATCH = 276 + SYS_INOTIFY_RM_WATCH = 277 + SYS_SPU_RUN = 278 + SYS_SPU_CREATE = 279 + SYS_PSELECT6 = 280 + SYS_PPOLL = 281 + SYS_UNSHARE = 282 + SYS_SPLICE = 283 + SYS_TEE = 284 + SYS_VMSPLICE = 285 + SYS_OPENAT = 286 + SYS_MKDIRAT = 287 + SYS_MKNODAT = 288 + SYS_FCHOWNAT = 289 + SYS_FUTIMESAT = 290 + SYS_FSTATAT64 = 291 + SYS_UNLINKAT = 292 + SYS_RENAMEAT = 293 + SYS_LINKAT = 294 + SYS_SYMLINKAT = 295 + SYS_READLINKAT = 296 + SYS_FCHMODAT = 297 + SYS_FACCESSAT = 298 + SYS_GET_ROBUST_LIST = 299 + SYS_SET_ROBUST_LIST = 300 + SYS_MOVE_PAGES = 301 + SYS_GETCPU = 302 + SYS_EPOLL_PWAIT = 303 + SYS_UTIMENSAT = 304 + SYS_SIGNALFD = 305 + SYS_TIMERFD_CREATE = 306 + SYS_EVENTFD = 307 + SYS_SYNC_FILE_RANGE2 = 308 + SYS_FALLOCATE = 309 + SYS_SUBPAGE_PROT = 310 + SYS_TIMERFD_SETTIME = 311 + SYS_TIMERFD_GETTIME = 312 + SYS_SIGNALFD4 = 313 + SYS_EVENTFD2 = 314 + SYS_EPOLL_CREATE1 = 315 + SYS_DUP3 = 316 + SYS_PIPE2 = 317 + SYS_INOTIFY_INIT1 = 318 + SYS_PERF_EVENT_OPEN = 319 + SYS_PREADV = 320 + SYS_PWRITEV = 321 + SYS_RT_TGSIGQUEUEINFO = 322 + SYS_FANOTIFY_INIT = 323 + SYS_FANOTIFY_MARK = 324 + SYS_PRLIMIT64 = 325 + SYS_SOCKET = 326 + SYS_BIND = 327 + SYS_CONNECT = 328 + SYS_LISTEN = 329 + SYS_ACCEPT = 330 + SYS_GETSOCKNAME = 331 + SYS_GETPEERNAME = 332 + SYS_SOCKETPAIR = 333 + SYS_SEND = 334 + SYS_SENDTO = 335 + SYS_RECV = 336 + SYS_RECVFROM = 337 + SYS_SHUTDOWN = 338 + SYS_SETSOCKOPT = 339 + SYS_GETSOCKOPT = 340 + SYS_SENDMSG = 341 + SYS_RECVMSG = 342 + SYS_RECVMMSG = 343 + SYS_ACCEPT4 = 344 + SYS_NAME_TO_HANDLE_AT = 345 + SYS_OPEN_BY_HANDLE_AT = 346 + SYS_CLOCK_ADJTIME = 347 + SYS_SYNCFS = 348 + SYS_SENDMMSG = 349 + SYS_SETNS = 350 + SYS_PROCESS_VM_READV = 351 + SYS_PROCESS_VM_WRITEV = 352 + SYS_FINIT_MODULE = 353 + SYS_KCMP = 354 + SYS_SCHED_SETATTR = 355 + SYS_SCHED_GETATTR = 356 + SYS_RENAMEAT2 = 357 + SYS_SECCOMP = 358 + SYS_GETRANDOM = 359 + SYS_MEMFD_CREATE = 360 + SYS_BPF = 361 + SYS_EXECVEAT = 362 + SYS_SWITCH_ENDIAN = 363 + SYS_USERFAULTFD = 364 + SYS_MEMBARRIER = 365 + SYS_MLOCK2 = 378 + SYS_COPY_FILE_RANGE = 379 + SYS_PREADV2 = 380 + SYS_PWRITEV2 = 381 + SYS_KEXEC_FILE_LOAD = 382 + SYS_STATX = 383 + SYS_PKEY_ALLOC = 384 + SYS_PKEY_FREE = 385 + SYS_PKEY_MPROTECT = 386 + SYS_RSEQ = 387 + SYS_IO_PGETEVENTS = 388 + SYS_SEMGET = 393 + SYS_SEMCTL = 394 + SYS_SHMGET = 395 + SYS_SHMCTL = 396 + SYS_SHMAT = 397 + SYS_SHMDT = 398 + SYS_MSGGET = 399 + SYS_MSGSND = 400 + SYS_MSGRCV = 401 + SYS_MSGCTL = 402 + SYS_CLOCK_GETTIME64 = 403 + SYS_CLOCK_SETTIME64 = 404 + SYS_CLOCK_ADJTIME64 = 405 + SYS_CLOCK_GETRES_TIME64 = 406 + SYS_CLOCK_NANOSLEEP_TIME64 = 407 + SYS_TIMER_GETTIME64 = 408 + SYS_TIMER_SETTIME64 = 409 + SYS_TIMERFD_GETTIME64 = 410 + SYS_TIMERFD_SETTIME64 = 411 + SYS_UTIMENSAT_TIME64 = 412 + SYS_PSELECT6_TIME64 = 413 + SYS_PPOLL_TIME64 = 414 + SYS_IO_PGETEVENTS_TIME64 = 416 + SYS_RECVMMSG_TIME64 = 417 + SYS_MQ_TIMEDSEND_TIME64 = 418 + SYS_MQ_TIMEDRECEIVE_TIME64 = 419 + SYS_SEMTIMEDOP_TIME64 = 420 + SYS_RT_SIGTIMEDWAIT_TIME64 = 421 + SYS_FUTEX_TIME64 = 422 + SYS_SCHED_RR_GET_INTERVAL_TIME64 = 423 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go new file mode 100644 index 0000000..d44c5b3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -0,0 +1,413 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc64/include /tmp/ppc64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && linux +// +build ppc64,linux + +package unix + +const ( + SYS_RESTART_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAITPID = 7 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECVE = 11 + SYS_CHDIR = 12 + SYS_TIME = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LCHOWN = 16 + SYS_BREAK = 17 + SYS_OLDSTAT = 18 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_MOUNT = 21 + SYS_UMOUNT = 22 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_STIME = 25 + SYS_PTRACE = 26 + SYS_ALARM = 27 + SYS_OLDFSTAT = 28 + SYS_PAUSE = 29 + SYS_UTIME = 30 + SYS_STTY = 31 + SYS_GTTY = 32 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_FTIME = 35 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_RENAME = 38 + SYS_MKDIR = 39 + SYS_RMDIR = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_PROF = 44 + SYS_BRK = 45 + SYS_SETGID = 46 + SYS_GETGID = 47 + SYS_SIGNAL = 48 + SYS_GETEUID = 49 + SYS_GETEGID = 50 + SYS_ACCT = 51 + SYS_UMOUNT2 = 52 + SYS_LOCK = 53 + SYS_IOCTL = 54 + SYS_FCNTL = 55 + SYS_MPX = 56 + SYS_SETPGID = 57 + SYS_ULIMIT = 58 + SYS_OLDOLDUNAME = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_USTAT = 62 + SYS_DUP2 = 63 + SYS_GETPPID = 64 + SYS_GETPGRP = 65 + SYS_SETSID = 66 + SYS_SIGACTION = 67 + SYS_SGETMASK = 68 + SYS_SSETMASK = 69 + SYS_SETREUID = 70 + SYS_SETREGID = 71 + SYS_SIGSUSPEND = 72 + SYS_SIGPENDING = 73 + SYS_SETHOSTNAME = 74 + SYS_SETRLIMIT = 75 + SYS_GETRLIMIT = 76 + SYS_GETRUSAGE = 77 + SYS_GETTIMEOFDAY = 78 + SYS_SETTIMEOFDAY = 79 + SYS_GETGROUPS = 80 + SYS_SETGROUPS = 81 + SYS_SELECT = 82 + SYS_SYMLINK = 83 + SYS_OLDLSTAT = 84 + SYS_READLINK = 85 + SYS_USELIB = 86 + SYS_SWAPON = 87 + SYS_REBOOT = 88 + SYS_READDIR = 89 + SYS_MMAP = 90 + SYS_MUNMAP = 91 + SYS_TRUNCATE = 92 + SYS_FTRUNCATE = 93 + SYS_FCHMOD = 94 + SYS_FCHOWN = 95 + SYS_GETPRIORITY = 96 + SYS_SETPRIORITY = 97 + SYS_PROFIL = 98 + SYS_STATFS = 99 + SYS_FSTATFS = 100 + SYS_IOPERM = 101 + SYS_SOCKETCALL = 102 + SYS_SYSLOG = 103 + SYS_SETITIMER = 104 + SYS_GETITIMER = 105 + SYS_STAT = 106 + SYS_LSTAT = 107 + SYS_FSTAT = 108 + SYS_OLDUNAME = 109 + SYS_IOPL = 110 + SYS_VHANGUP = 111 + SYS_IDLE = 112 + SYS_VM86 = 113 + SYS_WAIT4 = 114 + SYS_SWAPOFF = 115 + SYS_SYSINFO = 116 + SYS_IPC = 117 + SYS_FSYNC = 118 + SYS_SIGRETURN = 119 + SYS_CLONE = 120 + SYS_SETDOMAINNAME = 121 + SYS_UNAME = 122 + SYS_MODIFY_LDT = 123 + SYS_ADJTIMEX = 124 + SYS_MPROTECT = 125 + SYS_SIGPROCMASK = 126 + SYS_CREATE_MODULE = 127 + SYS_INIT_MODULE = 128 + SYS_DELETE_MODULE = 129 + SYS_GET_KERNEL_SYMS = 130 + SYS_QUOTACTL = 131 + SYS_GETPGID = 132 + SYS_FCHDIR = 133 + SYS_BDFLUSH = 134 + SYS_SYSFS = 135 + SYS_PERSONALITY = 136 + SYS_AFS_SYSCALL = 137 + SYS_SETFSUID = 138 + SYS_SETFSGID = 139 + SYS__LLSEEK = 140 + SYS_GETDENTS = 141 + SYS__NEWSELECT = 142 + SYS_FLOCK = 143 + SYS_MSYNC = 144 + SYS_READV = 145 + SYS_WRITEV = 146 + SYS_GETSID = 147 + SYS_FDATASYNC = 148 + SYS__SYSCTL = 149 + SYS_MLOCK = 150 + SYS_MUNLOCK = 151 + SYS_MLOCKALL = 152 + SYS_MUNLOCKALL = 153 + SYS_SCHED_SETPARAM = 154 + SYS_SCHED_GETPARAM = 155 + SYS_SCHED_SETSCHEDULER = 156 + SYS_SCHED_GETSCHEDULER = 157 + SYS_SCHED_YIELD = 158 + SYS_SCHED_GET_PRIORITY_MAX = 159 + SYS_SCHED_GET_PRIORITY_MIN = 160 + SYS_SCHED_RR_GET_INTERVAL = 161 + SYS_NANOSLEEP = 162 + SYS_MREMAP = 163 + SYS_SETRESUID = 164 + SYS_GETRESUID = 165 + SYS_QUERY_MODULE = 166 + SYS_POLL = 167 + SYS_NFSSERVCTL = 168 + SYS_SETRESGID = 169 + SYS_GETRESGID = 170 + SYS_PRCTL = 171 + SYS_RT_SIGRETURN = 172 + SYS_RT_SIGACTION = 173 + SYS_RT_SIGPROCMASK = 174 + SYS_RT_SIGPENDING = 175 + SYS_RT_SIGTIMEDWAIT = 176 + SYS_RT_SIGQUEUEINFO = 177 + SYS_RT_SIGSUSPEND = 178 + SYS_PREAD64 = 179 + SYS_PWRITE64 = 180 + SYS_CHOWN = 181 + SYS_GETCWD = 182 + SYS_CAPGET = 183 + SYS_CAPSET = 184 + SYS_SIGALTSTACK = 185 + SYS_SENDFILE = 186 + SYS_GETPMSG = 187 + SYS_PUTPMSG = 188 + SYS_VFORK = 189 + SYS_UGETRLIMIT = 190 + SYS_READAHEAD = 191 + SYS_PCICONFIG_READ = 198 + SYS_PCICONFIG_WRITE = 199 + SYS_PCICONFIG_IOBASE = 200 + SYS_MULTIPLEXER = 201 + SYS_GETDENTS64 = 202 + SYS_PIVOT_ROOT = 203 + SYS_MADVISE = 205 + SYS_MINCORE = 206 + SYS_GETTID = 207 + SYS_TKILL = 208 + SYS_SETXATTR = 209 + SYS_LSETXATTR = 210 + SYS_FSETXATTR = 211 + SYS_GETXATTR = 212 + SYS_LGETXATTR = 213 + SYS_FGETXATTR = 214 + SYS_LISTXATTR = 215 + SYS_LLISTXATTR = 216 + SYS_FLISTXATTR = 217 + SYS_REMOVEXATTR = 218 + SYS_LREMOVEXATTR = 219 + SYS_FREMOVEXATTR = 220 + SYS_FUTEX = 221 + SYS_SCHED_SETAFFINITY = 222 + SYS_SCHED_GETAFFINITY = 223 + SYS_TUXCALL = 225 + SYS_IO_SETUP = 227 + SYS_IO_DESTROY = 228 + SYS_IO_GETEVENTS = 229 + SYS_IO_SUBMIT = 230 + SYS_IO_CANCEL = 231 + SYS_SET_TID_ADDRESS = 232 + SYS_FADVISE64 = 233 + SYS_EXIT_GROUP = 234 + SYS_LOOKUP_DCOOKIE = 235 + SYS_EPOLL_CREATE = 236 + SYS_EPOLL_CTL = 237 + SYS_EPOLL_WAIT = 238 + SYS_REMAP_FILE_PAGES = 239 + SYS_TIMER_CREATE = 240 + SYS_TIMER_SETTIME = 241 + SYS_TIMER_GETTIME = 242 + SYS_TIMER_GETOVERRUN = 243 + SYS_TIMER_DELETE = 244 + SYS_CLOCK_SETTIME = 245 + SYS_CLOCK_GETTIME = 246 + SYS_CLOCK_GETRES = 247 + SYS_CLOCK_NANOSLEEP = 248 + SYS_SWAPCONTEXT = 249 + SYS_TGKILL = 250 + SYS_UTIMES = 251 + SYS_STATFS64 = 252 + SYS_FSTATFS64 = 253 + SYS_RTAS = 255 + SYS_SYS_DEBUG_SETCONTEXT = 256 + SYS_MIGRATE_PAGES = 258 + SYS_MBIND = 259 + SYS_GET_MEMPOLICY = 260 + SYS_SET_MEMPOLICY = 261 + SYS_MQ_OPEN = 262 + SYS_MQ_UNLINK = 263 + SYS_MQ_TIMEDSEND = 264 + SYS_MQ_TIMEDRECEIVE = 265 + SYS_MQ_NOTIFY = 266 + SYS_MQ_GETSETATTR = 267 + SYS_KEXEC_LOAD = 268 + SYS_ADD_KEY = 269 + SYS_REQUEST_KEY = 270 + SYS_KEYCTL = 271 + SYS_WAITID = 272 + SYS_IOPRIO_SET = 273 + SYS_IOPRIO_GET = 274 + SYS_INOTIFY_INIT = 275 + SYS_INOTIFY_ADD_WATCH = 276 + SYS_INOTIFY_RM_WATCH = 277 + SYS_SPU_RUN = 278 + SYS_SPU_CREATE = 279 + SYS_PSELECT6 = 280 + SYS_PPOLL = 281 + SYS_UNSHARE = 282 + SYS_SPLICE = 283 + SYS_TEE = 284 + SYS_VMSPLICE = 285 + SYS_OPENAT = 286 + SYS_MKDIRAT = 287 + SYS_MKNODAT = 288 + SYS_FCHOWNAT = 289 + SYS_FUTIMESAT = 290 + SYS_NEWFSTATAT = 291 + SYS_UNLINKAT = 292 + SYS_RENAMEAT = 293 + SYS_LINKAT = 294 + SYS_SYMLINKAT = 295 + SYS_READLINKAT = 296 + SYS_FCHMODAT = 297 + SYS_FACCESSAT = 298 + SYS_GET_ROBUST_LIST = 299 + SYS_SET_ROBUST_LIST = 300 + SYS_MOVE_PAGES = 301 + SYS_GETCPU = 302 + SYS_EPOLL_PWAIT = 303 + SYS_UTIMENSAT = 304 + SYS_SIGNALFD = 305 + SYS_TIMERFD_CREATE = 306 + SYS_EVENTFD = 307 + SYS_SYNC_FILE_RANGE2 = 308 + SYS_FALLOCATE = 309 + SYS_SUBPAGE_PROT = 310 + SYS_TIMERFD_SETTIME = 311 + SYS_TIMERFD_GETTIME = 312 + SYS_SIGNALFD4 = 313 + SYS_EVENTFD2 = 314 + SYS_EPOLL_CREATE1 = 315 + SYS_DUP3 = 316 + SYS_PIPE2 = 317 + SYS_INOTIFY_INIT1 = 318 + SYS_PERF_EVENT_OPEN = 319 + SYS_PREADV = 320 + SYS_PWRITEV = 321 + SYS_RT_TGSIGQUEUEINFO = 322 + SYS_FANOTIFY_INIT = 323 + SYS_FANOTIFY_MARK = 324 + SYS_PRLIMIT64 = 325 + SYS_SOCKET = 326 + SYS_BIND = 327 + SYS_CONNECT = 328 + SYS_LISTEN = 329 + SYS_ACCEPT = 330 + SYS_GETSOCKNAME = 331 + SYS_GETPEERNAME = 332 + SYS_SOCKETPAIR = 333 + SYS_SEND = 334 + SYS_SENDTO = 335 + SYS_RECV = 336 + SYS_RECVFROM = 337 + SYS_SHUTDOWN = 338 + SYS_SETSOCKOPT = 339 + SYS_GETSOCKOPT = 340 + SYS_SENDMSG = 341 + SYS_RECVMSG = 342 + SYS_RECVMMSG = 343 + SYS_ACCEPT4 = 344 + SYS_NAME_TO_HANDLE_AT = 345 + SYS_OPEN_BY_HANDLE_AT = 346 + SYS_CLOCK_ADJTIME = 347 + SYS_SYNCFS = 348 + SYS_SENDMMSG = 349 + SYS_SETNS = 350 + SYS_PROCESS_VM_READV = 351 + SYS_PROCESS_VM_WRITEV = 352 + SYS_FINIT_MODULE = 353 + SYS_KCMP = 354 + SYS_SCHED_SETATTR = 355 + SYS_SCHED_GETATTR = 356 + SYS_RENAMEAT2 = 357 + SYS_SECCOMP = 358 + SYS_GETRANDOM = 359 + SYS_MEMFD_CREATE = 360 + SYS_BPF = 361 + SYS_EXECVEAT = 362 + SYS_SWITCH_ENDIAN = 363 + SYS_USERFAULTFD = 364 + SYS_MEMBARRIER = 365 + SYS_MLOCK2 = 378 + SYS_COPY_FILE_RANGE = 379 + SYS_PREADV2 = 380 + SYS_PWRITEV2 = 381 + SYS_KEXEC_FILE_LOAD = 382 + SYS_STATX = 383 + SYS_PKEY_ALLOC = 384 + SYS_PKEY_FREE = 385 + SYS_PKEY_MPROTECT = 386 + SYS_RSEQ = 387 + SYS_IO_PGETEVENTS = 388 + SYS_SEMTIMEDOP = 392 + SYS_SEMGET = 393 + SYS_SEMCTL = 394 + SYS_SHMGET = 395 + SYS_SHMCTL = 396 + SYS_SHMAT = 397 + SYS_SHMDT = 398 + SYS_MSGGET = 399 + SYS_MSGSND = 400 + SYS_MSGRCV = 401 + SYS_MSGCTL = 402 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go new file mode 100644 index 0000000..4214dd9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -0,0 +1,413 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc64le/include /tmp/ppc64le/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64le && linux +// +build ppc64le,linux + +package unix + +const ( + SYS_RESTART_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAITPID = 7 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECVE = 11 + SYS_CHDIR = 12 + SYS_TIME = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LCHOWN = 16 + SYS_BREAK = 17 + SYS_OLDSTAT = 18 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_MOUNT = 21 + SYS_UMOUNT = 22 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_STIME = 25 + SYS_PTRACE = 26 + SYS_ALARM = 27 + SYS_OLDFSTAT = 28 + SYS_PAUSE = 29 + SYS_UTIME = 30 + SYS_STTY = 31 + SYS_GTTY = 32 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_FTIME = 35 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_RENAME = 38 + SYS_MKDIR = 39 + SYS_RMDIR = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_PROF = 44 + SYS_BRK = 45 + SYS_SETGID = 46 + SYS_GETGID = 47 + SYS_SIGNAL = 48 + SYS_GETEUID = 49 + SYS_GETEGID = 50 + SYS_ACCT = 51 + SYS_UMOUNT2 = 52 + SYS_LOCK = 53 + SYS_IOCTL = 54 + SYS_FCNTL = 55 + SYS_MPX = 56 + SYS_SETPGID = 57 + SYS_ULIMIT = 58 + SYS_OLDOLDUNAME = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_USTAT = 62 + SYS_DUP2 = 63 + SYS_GETPPID = 64 + SYS_GETPGRP = 65 + SYS_SETSID = 66 + SYS_SIGACTION = 67 + SYS_SGETMASK = 68 + SYS_SSETMASK = 69 + SYS_SETREUID = 70 + SYS_SETREGID = 71 + SYS_SIGSUSPEND = 72 + SYS_SIGPENDING = 73 + SYS_SETHOSTNAME = 74 + SYS_SETRLIMIT = 75 + SYS_GETRLIMIT = 76 + SYS_GETRUSAGE = 77 + SYS_GETTIMEOFDAY = 78 + SYS_SETTIMEOFDAY = 79 + SYS_GETGROUPS = 80 + SYS_SETGROUPS = 81 + SYS_SELECT = 82 + SYS_SYMLINK = 83 + SYS_OLDLSTAT = 84 + SYS_READLINK = 85 + SYS_USELIB = 86 + SYS_SWAPON = 87 + SYS_REBOOT = 88 + SYS_READDIR = 89 + SYS_MMAP = 90 + SYS_MUNMAP = 91 + SYS_TRUNCATE = 92 + SYS_FTRUNCATE = 93 + SYS_FCHMOD = 94 + SYS_FCHOWN = 95 + SYS_GETPRIORITY = 96 + SYS_SETPRIORITY = 97 + SYS_PROFIL = 98 + SYS_STATFS = 99 + SYS_FSTATFS = 100 + SYS_IOPERM = 101 + SYS_SOCKETCALL = 102 + SYS_SYSLOG = 103 + SYS_SETITIMER = 104 + SYS_GETITIMER = 105 + SYS_STAT = 106 + SYS_LSTAT = 107 + SYS_FSTAT = 108 + SYS_OLDUNAME = 109 + SYS_IOPL = 110 + SYS_VHANGUP = 111 + SYS_IDLE = 112 + SYS_VM86 = 113 + SYS_WAIT4 = 114 + SYS_SWAPOFF = 115 + SYS_SYSINFO = 116 + SYS_IPC = 117 + SYS_FSYNC = 118 + SYS_SIGRETURN = 119 + SYS_CLONE = 120 + SYS_SETDOMAINNAME = 121 + SYS_UNAME = 122 + SYS_MODIFY_LDT = 123 + SYS_ADJTIMEX = 124 + SYS_MPROTECT = 125 + SYS_SIGPROCMASK = 126 + SYS_CREATE_MODULE = 127 + SYS_INIT_MODULE = 128 + SYS_DELETE_MODULE = 129 + SYS_GET_KERNEL_SYMS = 130 + SYS_QUOTACTL = 131 + SYS_GETPGID = 132 + SYS_FCHDIR = 133 + SYS_BDFLUSH = 134 + SYS_SYSFS = 135 + SYS_PERSONALITY = 136 + SYS_AFS_SYSCALL = 137 + SYS_SETFSUID = 138 + SYS_SETFSGID = 139 + SYS__LLSEEK = 140 + SYS_GETDENTS = 141 + SYS__NEWSELECT = 142 + SYS_FLOCK = 143 + SYS_MSYNC = 144 + SYS_READV = 145 + SYS_WRITEV = 146 + SYS_GETSID = 147 + SYS_FDATASYNC = 148 + SYS__SYSCTL = 149 + SYS_MLOCK = 150 + SYS_MUNLOCK = 151 + SYS_MLOCKALL = 152 + SYS_MUNLOCKALL = 153 + SYS_SCHED_SETPARAM = 154 + SYS_SCHED_GETPARAM = 155 + SYS_SCHED_SETSCHEDULER = 156 + SYS_SCHED_GETSCHEDULER = 157 + SYS_SCHED_YIELD = 158 + SYS_SCHED_GET_PRIORITY_MAX = 159 + SYS_SCHED_GET_PRIORITY_MIN = 160 + SYS_SCHED_RR_GET_INTERVAL = 161 + SYS_NANOSLEEP = 162 + SYS_MREMAP = 163 + SYS_SETRESUID = 164 + SYS_GETRESUID = 165 + SYS_QUERY_MODULE = 166 + SYS_POLL = 167 + SYS_NFSSERVCTL = 168 + SYS_SETRESGID = 169 + SYS_GETRESGID = 170 + SYS_PRCTL = 171 + SYS_RT_SIGRETURN = 172 + SYS_RT_SIGACTION = 173 + SYS_RT_SIGPROCMASK = 174 + SYS_RT_SIGPENDING = 175 + SYS_RT_SIGTIMEDWAIT = 176 + SYS_RT_SIGQUEUEINFO = 177 + SYS_RT_SIGSUSPEND = 178 + SYS_PREAD64 = 179 + SYS_PWRITE64 = 180 + SYS_CHOWN = 181 + SYS_GETCWD = 182 + SYS_CAPGET = 183 + SYS_CAPSET = 184 + SYS_SIGALTSTACK = 185 + SYS_SENDFILE = 186 + SYS_GETPMSG = 187 + SYS_PUTPMSG = 188 + SYS_VFORK = 189 + SYS_UGETRLIMIT = 190 + SYS_READAHEAD = 191 + SYS_PCICONFIG_READ = 198 + SYS_PCICONFIG_WRITE = 199 + SYS_PCICONFIG_IOBASE = 200 + SYS_MULTIPLEXER = 201 + SYS_GETDENTS64 = 202 + SYS_PIVOT_ROOT = 203 + SYS_MADVISE = 205 + SYS_MINCORE = 206 + SYS_GETTID = 207 + SYS_TKILL = 208 + SYS_SETXATTR = 209 + SYS_LSETXATTR = 210 + SYS_FSETXATTR = 211 + SYS_GETXATTR = 212 + SYS_LGETXATTR = 213 + SYS_FGETXATTR = 214 + SYS_LISTXATTR = 215 + SYS_LLISTXATTR = 216 + SYS_FLISTXATTR = 217 + SYS_REMOVEXATTR = 218 + SYS_LREMOVEXATTR = 219 + SYS_FREMOVEXATTR = 220 + SYS_FUTEX = 221 + SYS_SCHED_SETAFFINITY = 222 + SYS_SCHED_GETAFFINITY = 223 + SYS_TUXCALL = 225 + SYS_IO_SETUP = 227 + SYS_IO_DESTROY = 228 + SYS_IO_GETEVENTS = 229 + SYS_IO_SUBMIT = 230 + SYS_IO_CANCEL = 231 + SYS_SET_TID_ADDRESS = 232 + SYS_FADVISE64 = 233 + SYS_EXIT_GROUP = 234 + SYS_LOOKUP_DCOOKIE = 235 + SYS_EPOLL_CREATE = 236 + SYS_EPOLL_CTL = 237 + SYS_EPOLL_WAIT = 238 + SYS_REMAP_FILE_PAGES = 239 + SYS_TIMER_CREATE = 240 + SYS_TIMER_SETTIME = 241 + SYS_TIMER_GETTIME = 242 + SYS_TIMER_GETOVERRUN = 243 + SYS_TIMER_DELETE = 244 + SYS_CLOCK_SETTIME = 245 + SYS_CLOCK_GETTIME = 246 + SYS_CLOCK_GETRES = 247 + SYS_CLOCK_NANOSLEEP = 248 + SYS_SWAPCONTEXT = 249 + SYS_TGKILL = 250 + SYS_UTIMES = 251 + SYS_STATFS64 = 252 + SYS_FSTATFS64 = 253 + SYS_RTAS = 255 + SYS_SYS_DEBUG_SETCONTEXT = 256 + SYS_MIGRATE_PAGES = 258 + SYS_MBIND = 259 + SYS_GET_MEMPOLICY = 260 + SYS_SET_MEMPOLICY = 261 + SYS_MQ_OPEN = 262 + SYS_MQ_UNLINK = 263 + SYS_MQ_TIMEDSEND = 264 + SYS_MQ_TIMEDRECEIVE = 265 + SYS_MQ_NOTIFY = 266 + SYS_MQ_GETSETATTR = 267 + SYS_KEXEC_LOAD = 268 + SYS_ADD_KEY = 269 + SYS_REQUEST_KEY = 270 + SYS_KEYCTL = 271 + SYS_WAITID = 272 + SYS_IOPRIO_SET = 273 + SYS_IOPRIO_GET = 274 + SYS_INOTIFY_INIT = 275 + SYS_INOTIFY_ADD_WATCH = 276 + SYS_INOTIFY_RM_WATCH = 277 + SYS_SPU_RUN = 278 + SYS_SPU_CREATE = 279 + SYS_PSELECT6 = 280 + SYS_PPOLL = 281 + SYS_UNSHARE = 282 + SYS_SPLICE = 283 + SYS_TEE = 284 + SYS_VMSPLICE = 285 + SYS_OPENAT = 286 + SYS_MKDIRAT = 287 + SYS_MKNODAT = 288 + SYS_FCHOWNAT = 289 + SYS_FUTIMESAT = 290 + SYS_NEWFSTATAT = 291 + SYS_UNLINKAT = 292 + SYS_RENAMEAT = 293 + SYS_LINKAT = 294 + SYS_SYMLINKAT = 295 + SYS_READLINKAT = 296 + SYS_FCHMODAT = 297 + SYS_FACCESSAT = 298 + SYS_GET_ROBUST_LIST = 299 + SYS_SET_ROBUST_LIST = 300 + SYS_MOVE_PAGES = 301 + SYS_GETCPU = 302 + SYS_EPOLL_PWAIT = 303 + SYS_UTIMENSAT = 304 + SYS_SIGNALFD = 305 + SYS_TIMERFD_CREATE = 306 + SYS_EVENTFD = 307 + SYS_SYNC_FILE_RANGE2 = 308 + SYS_FALLOCATE = 309 + SYS_SUBPAGE_PROT = 310 + SYS_TIMERFD_SETTIME = 311 + SYS_TIMERFD_GETTIME = 312 + SYS_SIGNALFD4 = 313 + SYS_EVENTFD2 = 314 + SYS_EPOLL_CREATE1 = 315 + SYS_DUP3 = 316 + SYS_PIPE2 = 317 + SYS_INOTIFY_INIT1 = 318 + SYS_PERF_EVENT_OPEN = 319 + SYS_PREADV = 320 + SYS_PWRITEV = 321 + SYS_RT_TGSIGQUEUEINFO = 322 + SYS_FANOTIFY_INIT = 323 + SYS_FANOTIFY_MARK = 324 + SYS_PRLIMIT64 = 325 + SYS_SOCKET = 326 + SYS_BIND = 327 + SYS_CONNECT = 328 + SYS_LISTEN = 329 + SYS_ACCEPT = 330 + SYS_GETSOCKNAME = 331 + SYS_GETPEERNAME = 332 + SYS_SOCKETPAIR = 333 + SYS_SEND = 334 + SYS_SENDTO = 335 + SYS_RECV = 336 + SYS_RECVFROM = 337 + SYS_SHUTDOWN = 338 + SYS_SETSOCKOPT = 339 + SYS_GETSOCKOPT = 340 + SYS_SENDMSG = 341 + SYS_RECVMSG = 342 + SYS_RECVMMSG = 343 + SYS_ACCEPT4 = 344 + SYS_NAME_TO_HANDLE_AT = 345 + SYS_OPEN_BY_HANDLE_AT = 346 + SYS_CLOCK_ADJTIME = 347 + SYS_SYNCFS = 348 + SYS_SENDMMSG = 349 + SYS_SETNS = 350 + SYS_PROCESS_VM_READV = 351 + SYS_PROCESS_VM_WRITEV = 352 + SYS_FINIT_MODULE = 353 + SYS_KCMP = 354 + SYS_SCHED_SETATTR = 355 + SYS_SCHED_GETATTR = 356 + SYS_RENAMEAT2 = 357 + SYS_SECCOMP = 358 + SYS_GETRANDOM = 359 + SYS_MEMFD_CREATE = 360 + SYS_BPF = 361 + SYS_EXECVEAT = 362 + SYS_SWITCH_ENDIAN = 363 + SYS_USERFAULTFD = 364 + SYS_MEMBARRIER = 365 + SYS_MLOCK2 = 378 + SYS_COPY_FILE_RANGE = 379 + SYS_PREADV2 = 380 + SYS_PWRITEV2 = 381 + SYS_KEXEC_FILE_LOAD = 382 + SYS_STATX = 383 + SYS_PKEY_ALLOC = 384 + SYS_PKEY_FREE = 385 + SYS_PKEY_MPROTECT = 386 + SYS_RSEQ = 387 + SYS_IO_PGETEVENTS = 388 + SYS_SEMTIMEDOP = 392 + SYS_SEMGET = 393 + SYS_SEMCTL = 394 + SYS_SHMGET = 395 + SYS_SHMCTL = 396 + SYS_SHMAT = 397 + SYS_SHMDT = 398 + SYS_MSGGET = 399 + SYS_MSGSND = 400 + SYS_MSGRCV = 401 + SYS_MSGCTL = 402 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go new file mode 100644 index 0000000..3e594a8 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -0,0 +1,316 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/riscv64/include /tmp/riscv64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && linux +// +build riscv64,linux + +package unix + +const ( + SYS_IO_SETUP = 0 + SYS_IO_DESTROY = 1 + SYS_IO_SUBMIT = 2 + SYS_IO_CANCEL = 3 + SYS_IO_GETEVENTS = 4 + SYS_SETXATTR = 5 + SYS_LSETXATTR = 6 + SYS_FSETXATTR = 7 + SYS_GETXATTR = 8 + SYS_LGETXATTR = 9 + SYS_FGETXATTR = 10 + SYS_LISTXATTR = 11 + SYS_LLISTXATTR = 12 + SYS_FLISTXATTR = 13 + SYS_REMOVEXATTR = 14 + SYS_LREMOVEXATTR = 15 + SYS_FREMOVEXATTR = 16 + SYS_GETCWD = 17 + SYS_LOOKUP_DCOOKIE = 18 + SYS_EVENTFD2 = 19 + SYS_EPOLL_CREATE1 = 20 + SYS_EPOLL_CTL = 21 + SYS_EPOLL_PWAIT = 22 + SYS_DUP = 23 + SYS_DUP3 = 24 + SYS_FCNTL = 25 + SYS_INOTIFY_INIT1 = 26 + SYS_INOTIFY_ADD_WATCH = 27 + SYS_INOTIFY_RM_WATCH = 28 + SYS_IOCTL = 29 + SYS_IOPRIO_SET = 30 + SYS_IOPRIO_GET = 31 + SYS_FLOCK = 32 + SYS_MKNODAT = 33 + SYS_MKDIRAT = 34 + SYS_UNLINKAT = 35 + SYS_SYMLINKAT = 36 + SYS_LINKAT = 37 + SYS_UMOUNT2 = 39 + SYS_MOUNT = 40 + SYS_PIVOT_ROOT = 41 + SYS_NFSSERVCTL = 42 + SYS_STATFS = 43 + SYS_FSTATFS = 44 + SYS_TRUNCATE = 45 + SYS_FTRUNCATE = 46 + SYS_FALLOCATE = 47 + SYS_FACCESSAT = 48 + SYS_CHDIR = 49 + SYS_FCHDIR = 50 + SYS_CHROOT = 51 + SYS_FCHMOD = 52 + SYS_FCHMODAT = 53 + SYS_FCHOWNAT = 54 + SYS_FCHOWN = 55 + SYS_OPENAT = 56 + SYS_CLOSE = 57 + SYS_VHANGUP = 58 + SYS_PIPE2 = 59 + SYS_QUOTACTL = 60 + SYS_GETDENTS64 = 61 + SYS_LSEEK = 62 + SYS_READ = 63 + SYS_WRITE = 64 + SYS_READV = 65 + SYS_WRITEV = 66 + SYS_PREAD64 = 67 + SYS_PWRITE64 = 68 + SYS_PREADV = 69 + SYS_PWRITEV = 70 + SYS_SENDFILE = 71 + SYS_PSELECT6 = 72 + SYS_PPOLL = 73 + SYS_SIGNALFD4 = 74 + SYS_VMSPLICE = 75 + SYS_SPLICE = 76 + SYS_TEE = 77 + SYS_READLINKAT = 78 + SYS_FSTATAT = 79 + SYS_FSTAT = 80 + SYS_SYNC = 81 + SYS_FSYNC = 82 + SYS_FDATASYNC = 83 + SYS_SYNC_FILE_RANGE = 84 + SYS_TIMERFD_CREATE = 85 + SYS_TIMERFD_SETTIME = 86 + SYS_TIMERFD_GETTIME = 87 + SYS_UTIMENSAT = 88 + SYS_ACCT = 89 + SYS_CAPGET = 90 + SYS_CAPSET = 91 + SYS_PERSONALITY = 92 + SYS_EXIT = 93 + SYS_EXIT_GROUP = 94 + SYS_WAITID = 95 + SYS_SET_TID_ADDRESS = 96 + SYS_UNSHARE = 97 + SYS_FUTEX = 98 + SYS_SET_ROBUST_LIST = 99 + SYS_GET_ROBUST_LIST = 100 + SYS_NANOSLEEP = 101 + SYS_GETITIMER = 102 + SYS_SETITIMER = 103 + SYS_KEXEC_LOAD = 104 + SYS_INIT_MODULE = 105 + SYS_DELETE_MODULE = 106 + SYS_TIMER_CREATE = 107 + SYS_TIMER_GETTIME = 108 + SYS_TIMER_GETOVERRUN = 109 + SYS_TIMER_SETTIME = 110 + SYS_TIMER_DELETE = 111 + SYS_CLOCK_SETTIME = 112 + SYS_CLOCK_GETTIME = 113 + SYS_CLOCK_GETRES = 114 + SYS_CLOCK_NANOSLEEP = 115 + SYS_SYSLOG = 116 + SYS_PTRACE = 117 + SYS_SCHED_SETPARAM = 118 + SYS_SCHED_SETSCHEDULER = 119 + SYS_SCHED_GETSCHEDULER = 120 + SYS_SCHED_GETPARAM = 121 + SYS_SCHED_SETAFFINITY = 122 + SYS_SCHED_GETAFFINITY = 123 + SYS_SCHED_YIELD = 124 + SYS_SCHED_GET_PRIORITY_MAX = 125 + SYS_SCHED_GET_PRIORITY_MIN = 126 + SYS_SCHED_RR_GET_INTERVAL = 127 + SYS_RESTART_SYSCALL = 128 + SYS_KILL = 129 + SYS_TKILL = 130 + SYS_TGKILL = 131 + SYS_SIGALTSTACK = 132 + SYS_RT_SIGSUSPEND = 133 + SYS_RT_SIGACTION = 134 + SYS_RT_SIGPROCMASK = 135 + SYS_RT_SIGPENDING = 136 + SYS_RT_SIGTIMEDWAIT = 137 + SYS_RT_SIGQUEUEINFO = 138 + SYS_RT_SIGRETURN = 139 + SYS_SETPRIORITY = 140 + SYS_GETPRIORITY = 141 + SYS_REBOOT = 142 + SYS_SETREGID = 143 + SYS_SETGID = 144 + SYS_SETREUID = 145 + SYS_SETUID = 146 + SYS_SETRESUID = 147 + SYS_GETRESUID = 148 + SYS_SETRESGID = 149 + SYS_GETRESGID = 150 + SYS_SETFSUID = 151 + SYS_SETFSGID = 152 + SYS_TIMES = 153 + SYS_SETPGID = 154 + SYS_GETPGID = 155 + SYS_GETSID = 156 + SYS_SETSID = 157 + SYS_GETGROUPS = 158 + SYS_SETGROUPS = 159 + SYS_UNAME = 160 + SYS_SETHOSTNAME = 161 + SYS_SETDOMAINNAME = 162 + SYS_GETRLIMIT = 163 + SYS_SETRLIMIT = 164 + SYS_GETRUSAGE = 165 + SYS_UMASK = 166 + SYS_PRCTL = 167 + SYS_GETCPU = 168 + SYS_GETTIMEOFDAY = 169 + SYS_SETTIMEOFDAY = 170 + SYS_ADJTIMEX = 171 + SYS_GETPID = 172 + SYS_GETPPID = 173 + SYS_GETUID = 174 + SYS_GETEUID = 175 + SYS_GETGID = 176 + SYS_GETEGID = 177 + SYS_GETTID = 178 + SYS_SYSINFO = 179 + SYS_MQ_OPEN = 180 + SYS_MQ_UNLINK = 181 + SYS_MQ_TIMEDSEND = 182 + SYS_MQ_TIMEDRECEIVE = 183 + SYS_MQ_NOTIFY = 184 + SYS_MQ_GETSETATTR = 185 + SYS_MSGGET = 186 + SYS_MSGCTL = 187 + SYS_MSGRCV = 188 + SYS_MSGSND = 189 + SYS_SEMGET = 190 + SYS_SEMCTL = 191 + SYS_SEMTIMEDOP = 192 + SYS_SEMOP = 193 + SYS_SHMGET = 194 + SYS_SHMCTL = 195 + SYS_SHMAT = 196 + SYS_SHMDT = 197 + SYS_SOCKET = 198 + SYS_SOCKETPAIR = 199 + SYS_BIND = 200 + SYS_LISTEN = 201 + SYS_ACCEPT = 202 + SYS_CONNECT = 203 + SYS_GETSOCKNAME = 204 + SYS_GETPEERNAME = 205 + SYS_SENDTO = 206 + SYS_RECVFROM = 207 + SYS_SETSOCKOPT = 208 + SYS_GETSOCKOPT = 209 + SYS_SHUTDOWN = 210 + SYS_SENDMSG = 211 + SYS_RECVMSG = 212 + SYS_READAHEAD = 213 + SYS_BRK = 214 + SYS_MUNMAP = 215 + SYS_MREMAP = 216 + SYS_ADD_KEY = 217 + SYS_REQUEST_KEY = 218 + SYS_KEYCTL = 219 + SYS_CLONE = 220 + SYS_EXECVE = 221 + SYS_MMAP = 222 + SYS_FADVISE64 = 223 + SYS_SWAPON = 224 + SYS_SWAPOFF = 225 + SYS_MPROTECT = 226 + SYS_MSYNC = 227 + SYS_MLOCK = 228 + SYS_MUNLOCK = 229 + SYS_MLOCKALL = 230 + SYS_MUNLOCKALL = 231 + SYS_MINCORE = 232 + SYS_MADVISE = 233 + SYS_REMAP_FILE_PAGES = 234 + SYS_MBIND = 235 + SYS_GET_MEMPOLICY = 236 + SYS_SET_MEMPOLICY = 237 + SYS_MIGRATE_PAGES = 238 + SYS_MOVE_PAGES = 239 + SYS_RT_TGSIGQUEUEINFO = 240 + SYS_PERF_EVENT_OPEN = 241 + SYS_ACCEPT4 = 242 + SYS_RECVMMSG = 243 + SYS_ARCH_SPECIFIC_SYSCALL = 244 + SYS_WAIT4 = 260 + SYS_PRLIMIT64 = 261 + SYS_FANOTIFY_INIT = 262 + SYS_FANOTIFY_MARK = 263 + SYS_NAME_TO_HANDLE_AT = 264 + SYS_OPEN_BY_HANDLE_AT = 265 + SYS_CLOCK_ADJTIME = 266 + SYS_SYNCFS = 267 + SYS_SETNS = 268 + SYS_SENDMMSG = 269 + SYS_PROCESS_VM_READV = 270 + SYS_PROCESS_VM_WRITEV = 271 + SYS_KCMP = 272 + SYS_FINIT_MODULE = 273 + SYS_SCHED_SETATTR = 274 + SYS_SCHED_GETATTR = 275 + SYS_RENAMEAT2 = 276 + SYS_SECCOMP = 277 + SYS_GETRANDOM = 278 + SYS_MEMFD_CREATE = 279 + SYS_BPF = 280 + SYS_EXECVEAT = 281 + SYS_USERFAULTFD = 282 + SYS_MEMBARRIER = 283 + SYS_MLOCK2 = 284 + SYS_COPY_FILE_RANGE = 285 + SYS_PREADV2 = 286 + SYS_PWRITEV2 = 287 + SYS_PKEY_MPROTECT = 288 + SYS_PKEY_ALLOC = 289 + SYS_PKEY_FREE = 290 + SYS_STATX = 291 + SYS_IO_PGETEVENTS = 292 + SYS_RSEQ = 293 + SYS_KEXEC_FILE_LOAD = 294 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_MEMFD_SECRET = 447 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go new file mode 100644 index 0000000..7ea4652 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -0,0 +1,378 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/s390x/include -fsigned-char /tmp/s390x/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build s390x && linux +// +build s390x,linux + +package unix + +const ( + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_RESTART_SYSCALL = 7 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECVE = 11 + SYS_CHDIR = 12 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_MOUNT = 21 + SYS_UMOUNT = 22 + SYS_PTRACE = 26 + SYS_ALARM = 27 + SYS_PAUSE = 29 + SYS_UTIME = 30 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_RENAME = 38 + SYS_MKDIR = 39 + SYS_RMDIR = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_BRK = 45 + SYS_SIGNAL = 48 + SYS_ACCT = 51 + SYS_UMOUNT2 = 52 + SYS_IOCTL = 54 + SYS_FCNTL = 55 + SYS_SETPGID = 57 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_USTAT = 62 + SYS_DUP2 = 63 + SYS_GETPPID = 64 + SYS_GETPGRP = 65 + SYS_SETSID = 66 + SYS_SIGACTION = 67 + SYS_SIGSUSPEND = 72 + SYS_SIGPENDING = 73 + SYS_SETHOSTNAME = 74 + SYS_SETRLIMIT = 75 + SYS_GETRUSAGE = 77 + SYS_GETTIMEOFDAY = 78 + SYS_SETTIMEOFDAY = 79 + SYS_SYMLINK = 83 + SYS_READLINK = 85 + SYS_USELIB = 86 + SYS_SWAPON = 87 + SYS_REBOOT = 88 + SYS_READDIR = 89 + SYS_MMAP = 90 + SYS_MUNMAP = 91 + SYS_TRUNCATE = 92 + SYS_FTRUNCATE = 93 + SYS_FCHMOD = 94 + SYS_GETPRIORITY = 96 + SYS_SETPRIORITY = 97 + SYS_STATFS = 99 + SYS_FSTATFS = 100 + SYS_SOCKETCALL = 102 + SYS_SYSLOG = 103 + SYS_SETITIMER = 104 + SYS_GETITIMER = 105 + SYS_STAT = 106 + SYS_LSTAT = 107 + SYS_FSTAT = 108 + SYS_LOOKUP_DCOOKIE = 110 + SYS_VHANGUP = 111 + SYS_IDLE = 112 + SYS_WAIT4 = 114 + SYS_SWAPOFF = 115 + SYS_SYSINFO = 116 + SYS_IPC = 117 + SYS_FSYNC = 118 + SYS_SIGRETURN = 119 + SYS_CLONE = 120 + SYS_SETDOMAINNAME = 121 + SYS_UNAME = 122 + SYS_ADJTIMEX = 124 + SYS_MPROTECT = 125 + SYS_SIGPROCMASK = 126 + SYS_CREATE_MODULE = 127 + SYS_INIT_MODULE = 128 + SYS_DELETE_MODULE = 129 + SYS_GET_KERNEL_SYMS = 130 + SYS_QUOTACTL = 131 + SYS_GETPGID = 132 + SYS_FCHDIR = 133 + SYS_BDFLUSH = 134 + SYS_SYSFS = 135 + SYS_PERSONALITY = 136 + SYS_AFS_SYSCALL = 137 + SYS_GETDENTS = 141 + SYS_SELECT = 142 + SYS_FLOCK = 143 + SYS_MSYNC = 144 + SYS_READV = 145 + SYS_WRITEV = 146 + SYS_GETSID = 147 + SYS_FDATASYNC = 148 + SYS__SYSCTL = 149 + SYS_MLOCK = 150 + SYS_MUNLOCK = 151 + SYS_MLOCKALL = 152 + SYS_MUNLOCKALL = 153 + SYS_SCHED_SETPARAM = 154 + SYS_SCHED_GETPARAM = 155 + SYS_SCHED_SETSCHEDULER = 156 + SYS_SCHED_GETSCHEDULER = 157 + SYS_SCHED_YIELD = 158 + SYS_SCHED_GET_PRIORITY_MAX = 159 + SYS_SCHED_GET_PRIORITY_MIN = 160 + SYS_SCHED_RR_GET_INTERVAL = 161 + SYS_NANOSLEEP = 162 + SYS_MREMAP = 163 + SYS_QUERY_MODULE = 167 + SYS_POLL = 168 + SYS_NFSSERVCTL = 169 + SYS_PRCTL = 172 + SYS_RT_SIGRETURN = 173 + SYS_RT_SIGACTION = 174 + SYS_RT_SIGPROCMASK = 175 + SYS_RT_SIGPENDING = 176 + SYS_RT_SIGTIMEDWAIT = 177 + SYS_RT_SIGQUEUEINFO = 178 + SYS_RT_SIGSUSPEND = 179 + SYS_PREAD64 = 180 + SYS_PWRITE64 = 181 + SYS_GETCWD = 183 + SYS_CAPGET = 184 + SYS_CAPSET = 185 + SYS_SIGALTSTACK = 186 + SYS_SENDFILE = 187 + SYS_GETPMSG = 188 + SYS_PUTPMSG = 189 + SYS_VFORK = 190 + SYS_GETRLIMIT = 191 + SYS_LCHOWN = 198 + SYS_GETUID = 199 + SYS_GETGID = 200 + SYS_GETEUID = 201 + SYS_GETEGID = 202 + SYS_SETREUID = 203 + SYS_SETREGID = 204 + SYS_GETGROUPS = 205 + SYS_SETGROUPS = 206 + SYS_FCHOWN = 207 + SYS_SETRESUID = 208 + SYS_GETRESUID = 209 + SYS_SETRESGID = 210 + SYS_GETRESGID = 211 + SYS_CHOWN = 212 + SYS_SETUID = 213 + SYS_SETGID = 214 + SYS_SETFSUID = 215 + SYS_SETFSGID = 216 + SYS_PIVOT_ROOT = 217 + SYS_MINCORE = 218 + SYS_MADVISE = 219 + SYS_GETDENTS64 = 220 + SYS_READAHEAD = 222 + SYS_SETXATTR = 224 + SYS_LSETXATTR = 225 + SYS_FSETXATTR = 226 + SYS_GETXATTR = 227 + SYS_LGETXATTR = 228 + SYS_FGETXATTR = 229 + SYS_LISTXATTR = 230 + SYS_LLISTXATTR = 231 + SYS_FLISTXATTR = 232 + SYS_REMOVEXATTR = 233 + SYS_LREMOVEXATTR = 234 + SYS_FREMOVEXATTR = 235 + SYS_GETTID = 236 + SYS_TKILL = 237 + SYS_FUTEX = 238 + SYS_SCHED_SETAFFINITY = 239 + SYS_SCHED_GETAFFINITY = 240 + SYS_TGKILL = 241 + SYS_IO_SETUP = 243 + SYS_IO_DESTROY = 244 + SYS_IO_GETEVENTS = 245 + SYS_IO_SUBMIT = 246 + SYS_IO_CANCEL = 247 + SYS_EXIT_GROUP = 248 + SYS_EPOLL_CREATE = 249 + SYS_EPOLL_CTL = 250 + SYS_EPOLL_WAIT = 251 + SYS_SET_TID_ADDRESS = 252 + SYS_FADVISE64 = 253 + SYS_TIMER_CREATE = 254 + SYS_TIMER_SETTIME = 255 + SYS_TIMER_GETTIME = 256 + SYS_TIMER_GETOVERRUN = 257 + SYS_TIMER_DELETE = 258 + SYS_CLOCK_SETTIME = 259 + SYS_CLOCK_GETTIME = 260 + SYS_CLOCK_GETRES = 261 + SYS_CLOCK_NANOSLEEP = 262 + SYS_STATFS64 = 265 + SYS_FSTATFS64 = 266 + SYS_REMAP_FILE_PAGES = 267 + SYS_MBIND = 268 + SYS_GET_MEMPOLICY = 269 + SYS_SET_MEMPOLICY = 270 + SYS_MQ_OPEN = 271 + SYS_MQ_UNLINK = 272 + SYS_MQ_TIMEDSEND = 273 + SYS_MQ_TIMEDRECEIVE = 274 + SYS_MQ_NOTIFY = 275 + SYS_MQ_GETSETATTR = 276 + SYS_KEXEC_LOAD = 277 + SYS_ADD_KEY = 278 + SYS_REQUEST_KEY = 279 + SYS_KEYCTL = 280 + SYS_WAITID = 281 + SYS_IOPRIO_SET = 282 + SYS_IOPRIO_GET = 283 + SYS_INOTIFY_INIT = 284 + SYS_INOTIFY_ADD_WATCH = 285 + SYS_INOTIFY_RM_WATCH = 286 + SYS_MIGRATE_PAGES = 287 + SYS_OPENAT = 288 + SYS_MKDIRAT = 289 + SYS_MKNODAT = 290 + SYS_FCHOWNAT = 291 + SYS_FUTIMESAT = 292 + SYS_NEWFSTATAT = 293 + SYS_UNLINKAT = 294 + SYS_RENAMEAT = 295 + SYS_LINKAT = 296 + SYS_SYMLINKAT = 297 + SYS_READLINKAT = 298 + SYS_FCHMODAT = 299 + SYS_FACCESSAT = 300 + SYS_PSELECT6 = 301 + SYS_PPOLL = 302 + SYS_UNSHARE = 303 + SYS_SET_ROBUST_LIST = 304 + SYS_GET_ROBUST_LIST = 305 + SYS_SPLICE = 306 + SYS_SYNC_FILE_RANGE = 307 + SYS_TEE = 308 + SYS_VMSPLICE = 309 + SYS_MOVE_PAGES = 310 + SYS_GETCPU = 311 + SYS_EPOLL_PWAIT = 312 + SYS_UTIMES = 313 + SYS_FALLOCATE = 314 + SYS_UTIMENSAT = 315 + SYS_SIGNALFD = 316 + SYS_TIMERFD = 317 + SYS_EVENTFD = 318 + SYS_TIMERFD_CREATE = 319 + SYS_TIMERFD_SETTIME = 320 + SYS_TIMERFD_GETTIME = 321 + SYS_SIGNALFD4 = 322 + SYS_EVENTFD2 = 323 + SYS_INOTIFY_INIT1 = 324 + SYS_PIPE2 = 325 + SYS_DUP3 = 326 + SYS_EPOLL_CREATE1 = 327 + SYS_PREADV = 328 + SYS_PWRITEV = 329 + SYS_RT_TGSIGQUEUEINFO = 330 + SYS_PERF_EVENT_OPEN = 331 + SYS_FANOTIFY_INIT = 332 + SYS_FANOTIFY_MARK = 333 + SYS_PRLIMIT64 = 334 + SYS_NAME_TO_HANDLE_AT = 335 + SYS_OPEN_BY_HANDLE_AT = 336 + SYS_CLOCK_ADJTIME = 337 + SYS_SYNCFS = 338 + SYS_SETNS = 339 + SYS_PROCESS_VM_READV = 340 + SYS_PROCESS_VM_WRITEV = 341 + SYS_S390_RUNTIME_INSTR = 342 + SYS_KCMP = 343 + SYS_FINIT_MODULE = 344 + SYS_SCHED_SETATTR = 345 + SYS_SCHED_GETATTR = 346 + SYS_RENAMEAT2 = 347 + SYS_SECCOMP = 348 + SYS_GETRANDOM = 349 + SYS_MEMFD_CREATE = 350 + SYS_BPF = 351 + SYS_S390_PCI_MMIO_WRITE = 352 + SYS_S390_PCI_MMIO_READ = 353 + SYS_EXECVEAT = 354 + SYS_USERFAULTFD = 355 + SYS_MEMBARRIER = 356 + SYS_RECVMMSG = 357 + SYS_SENDMMSG = 358 + SYS_SOCKET = 359 + SYS_SOCKETPAIR = 360 + SYS_BIND = 361 + SYS_CONNECT = 362 + SYS_LISTEN = 363 + SYS_ACCEPT4 = 364 + SYS_GETSOCKOPT = 365 + SYS_SETSOCKOPT = 366 + SYS_GETSOCKNAME = 367 + SYS_GETPEERNAME = 368 + SYS_SENDTO = 369 + SYS_SENDMSG = 370 + SYS_RECVFROM = 371 + SYS_RECVMSG = 372 + SYS_SHUTDOWN = 373 + SYS_MLOCK2 = 374 + SYS_COPY_FILE_RANGE = 375 + SYS_PREADV2 = 376 + SYS_PWRITEV2 = 377 + SYS_S390_GUARDED_STORAGE = 378 + SYS_STATX = 379 + SYS_S390_STHYI = 380 + SYS_KEXEC_FILE_LOAD = 381 + SYS_IO_PGETEVENTS = 382 + SYS_RSEQ = 383 + SYS_PKEY_MPROTECT = 384 + SYS_PKEY_ALLOC = 385 + SYS_PKEY_FREE = 386 + SYS_SEMTIMEDOP = 392 + SYS_SEMGET = 393 + SYS_SEMCTL = 394 + SYS_SHMGET = 395 + SYS_SHMCTL = 396 + SYS_SHMAT = 397 + SYS_SHMDT = 398 + SYS_MSGGET = 399 + SYS_MSGSND = 400 + SYS_MSGRCV = 401 + SYS_MSGCTL = 402 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLONE3 = 435 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go new file mode 100644 index 0000000..92f628e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -0,0 +1,392 @@ +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/sparc64/include /tmp/sparc64/include/asm/unistd.h +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build sparc64 && linux +// +build sparc64,linux + +package unix + +const ( + SYS_RESTART_SYSCALL = 0 + SYS_EXIT = 1 + SYS_FORK = 2 + SYS_READ = 3 + SYS_WRITE = 4 + SYS_OPEN = 5 + SYS_CLOSE = 6 + SYS_WAIT4 = 7 + SYS_CREAT = 8 + SYS_LINK = 9 + SYS_UNLINK = 10 + SYS_EXECV = 11 + SYS_CHDIR = 12 + SYS_CHOWN = 13 + SYS_MKNOD = 14 + SYS_CHMOD = 15 + SYS_LCHOWN = 16 + SYS_BRK = 17 + SYS_PERFCTR = 18 + SYS_LSEEK = 19 + SYS_GETPID = 20 + SYS_CAPGET = 21 + SYS_CAPSET = 22 + SYS_SETUID = 23 + SYS_GETUID = 24 + SYS_VMSPLICE = 25 + SYS_PTRACE = 26 + SYS_ALARM = 27 + SYS_SIGALTSTACK = 28 + SYS_PAUSE = 29 + SYS_UTIME = 30 + SYS_ACCESS = 33 + SYS_NICE = 34 + SYS_SYNC = 36 + SYS_KILL = 37 + SYS_STAT = 38 + SYS_SENDFILE = 39 + SYS_LSTAT = 40 + SYS_DUP = 41 + SYS_PIPE = 42 + SYS_TIMES = 43 + SYS_UMOUNT2 = 45 + SYS_SETGID = 46 + SYS_GETGID = 47 + SYS_SIGNAL = 48 + SYS_GETEUID = 49 + SYS_GETEGID = 50 + SYS_ACCT = 51 + SYS_MEMORY_ORDERING = 52 + SYS_IOCTL = 54 + SYS_REBOOT = 55 + SYS_SYMLINK = 57 + SYS_READLINK = 58 + SYS_EXECVE = 59 + SYS_UMASK = 60 + SYS_CHROOT = 61 + SYS_FSTAT = 62 + SYS_FSTAT64 = 63 + SYS_GETPAGESIZE = 64 + SYS_MSYNC = 65 + SYS_VFORK = 66 + SYS_PREAD64 = 67 + SYS_PWRITE64 = 68 + SYS_MMAP = 71 + SYS_MUNMAP = 73 + SYS_MPROTECT = 74 + SYS_MADVISE = 75 + SYS_VHANGUP = 76 + SYS_MINCORE = 78 + SYS_GETGROUPS = 79 + SYS_SETGROUPS = 80 + SYS_GETPGRP = 81 + SYS_SETITIMER = 83 + SYS_SWAPON = 85 + SYS_GETITIMER = 86 + SYS_SETHOSTNAME = 88 + SYS_DUP2 = 90 + SYS_FCNTL = 92 + SYS_SELECT = 93 + SYS_FSYNC = 95 + SYS_SETPRIORITY = 96 + SYS_SOCKET = 97 + SYS_CONNECT = 98 + SYS_ACCEPT = 99 + SYS_GETPRIORITY = 100 + SYS_RT_SIGRETURN = 101 + SYS_RT_SIGACTION = 102 + SYS_RT_SIGPROCMASK = 103 + SYS_RT_SIGPENDING = 104 + SYS_RT_SIGTIMEDWAIT = 105 + SYS_RT_SIGQUEUEINFO = 106 + SYS_RT_SIGSUSPEND = 107 + SYS_SETRESUID = 108 + SYS_GETRESUID = 109 + SYS_SETRESGID = 110 + SYS_GETRESGID = 111 + SYS_RECVMSG = 113 + SYS_SENDMSG = 114 + SYS_GETTIMEOFDAY = 116 + SYS_GETRUSAGE = 117 + SYS_GETSOCKOPT = 118 + SYS_GETCWD = 119 + SYS_READV = 120 + SYS_WRITEV = 121 + SYS_SETTIMEOFDAY = 122 + SYS_FCHOWN = 123 + SYS_FCHMOD = 124 + SYS_RECVFROM = 125 + SYS_SETREUID = 126 + SYS_SETREGID = 127 + SYS_RENAME = 128 + SYS_TRUNCATE = 129 + SYS_FTRUNCATE = 130 + SYS_FLOCK = 131 + SYS_LSTAT64 = 132 + SYS_SENDTO = 133 + SYS_SHUTDOWN = 134 + SYS_SOCKETPAIR = 135 + SYS_MKDIR = 136 + SYS_RMDIR = 137 + SYS_UTIMES = 138 + SYS_STAT64 = 139 + SYS_SENDFILE64 = 140 + SYS_GETPEERNAME = 141 + SYS_FUTEX = 142 + SYS_GETTID = 143 + SYS_GETRLIMIT = 144 + SYS_SETRLIMIT = 145 + SYS_PIVOT_ROOT = 146 + SYS_PRCTL = 147 + SYS_PCICONFIG_READ = 148 + SYS_PCICONFIG_WRITE = 149 + SYS_GETSOCKNAME = 150 + SYS_INOTIFY_INIT = 151 + SYS_INOTIFY_ADD_WATCH = 152 + SYS_POLL = 153 + SYS_GETDENTS64 = 154 + SYS_INOTIFY_RM_WATCH = 156 + SYS_STATFS = 157 + SYS_FSTATFS = 158 + SYS_UMOUNT = 159 + SYS_SCHED_SET_AFFINITY = 160 + SYS_SCHED_GET_AFFINITY = 161 + SYS_GETDOMAINNAME = 162 + SYS_SETDOMAINNAME = 163 + SYS_UTRAP_INSTALL = 164 + SYS_QUOTACTL = 165 + SYS_SET_TID_ADDRESS = 166 + SYS_MOUNT = 167 + SYS_USTAT = 168 + SYS_SETXATTR = 169 + SYS_LSETXATTR = 170 + SYS_FSETXATTR = 171 + SYS_GETXATTR = 172 + SYS_LGETXATTR = 173 + SYS_GETDENTS = 174 + SYS_SETSID = 175 + SYS_FCHDIR = 176 + SYS_FGETXATTR = 177 + SYS_LISTXATTR = 178 + SYS_LLISTXATTR = 179 + SYS_FLISTXATTR = 180 + SYS_REMOVEXATTR = 181 + SYS_LREMOVEXATTR = 182 + SYS_SIGPENDING = 183 + SYS_QUERY_MODULE = 184 + SYS_SETPGID = 185 + SYS_FREMOVEXATTR = 186 + SYS_TKILL = 187 + SYS_EXIT_GROUP = 188 + SYS_UNAME = 189 + SYS_INIT_MODULE = 190 + SYS_PERSONALITY = 191 + SYS_REMAP_FILE_PAGES = 192 + SYS_EPOLL_CREATE = 193 + SYS_EPOLL_CTL = 194 + SYS_EPOLL_WAIT = 195 + SYS_IOPRIO_SET = 196 + SYS_GETPPID = 197 + SYS_SIGACTION = 198 + SYS_SGETMASK = 199 + SYS_SSETMASK = 200 + SYS_SIGSUSPEND = 201 + SYS_OLDLSTAT = 202 + SYS_USELIB = 203 + SYS_READDIR = 204 + SYS_READAHEAD = 205 + SYS_SOCKETCALL = 206 + SYS_SYSLOG = 207 + SYS_LOOKUP_DCOOKIE = 208 + SYS_FADVISE64 = 209 + SYS_FADVISE64_64 = 210 + SYS_TGKILL = 211 + SYS_WAITPID = 212 + SYS_SWAPOFF = 213 + SYS_SYSINFO = 214 + SYS_IPC = 215 + SYS_SIGRETURN = 216 + SYS_CLONE = 217 + SYS_IOPRIO_GET = 218 + SYS_ADJTIMEX = 219 + SYS_SIGPROCMASK = 220 + SYS_CREATE_MODULE = 221 + SYS_DELETE_MODULE = 222 + SYS_GET_KERNEL_SYMS = 223 + SYS_GETPGID = 224 + SYS_BDFLUSH = 225 + SYS_SYSFS = 226 + SYS_AFS_SYSCALL = 227 + SYS_SETFSUID = 228 + SYS_SETFSGID = 229 + SYS__NEWSELECT = 230 + SYS_SPLICE = 232 + SYS_STIME = 233 + SYS_STATFS64 = 234 + SYS_FSTATFS64 = 235 + SYS__LLSEEK = 236 + SYS_MLOCK = 237 + SYS_MUNLOCK = 238 + SYS_MLOCKALL = 239 + SYS_MUNLOCKALL = 240 + SYS_SCHED_SETPARAM = 241 + SYS_SCHED_GETPARAM = 242 + SYS_SCHED_SETSCHEDULER = 243 + SYS_SCHED_GETSCHEDULER = 244 + SYS_SCHED_YIELD = 245 + SYS_SCHED_GET_PRIORITY_MAX = 246 + SYS_SCHED_GET_PRIORITY_MIN = 247 + SYS_SCHED_RR_GET_INTERVAL = 248 + SYS_NANOSLEEP = 249 + SYS_MREMAP = 250 + SYS__SYSCTL = 251 + SYS_GETSID = 252 + SYS_FDATASYNC = 253 + SYS_NFSSERVCTL = 254 + SYS_SYNC_FILE_RANGE = 255 + SYS_CLOCK_SETTIME = 256 + SYS_CLOCK_GETTIME = 257 + SYS_CLOCK_GETRES = 258 + SYS_CLOCK_NANOSLEEP = 259 + SYS_SCHED_GETAFFINITY = 260 + SYS_SCHED_SETAFFINITY = 261 + SYS_TIMER_SETTIME = 262 + SYS_TIMER_GETTIME = 263 + SYS_TIMER_GETOVERRUN = 264 + SYS_TIMER_DELETE = 265 + SYS_TIMER_CREATE = 266 + SYS_VSERVER = 267 + SYS_IO_SETUP = 268 + SYS_IO_DESTROY = 269 + SYS_IO_SUBMIT = 270 + SYS_IO_CANCEL = 271 + SYS_IO_GETEVENTS = 272 + SYS_MQ_OPEN = 273 + SYS_MQ_UNLINK = 274 + SYS_MQ_TIMEDSEND = 275 + SYS_MQ_TIMEDRECEIVE = 276 + SYS_MQ_NOTIFY = 277 + SYS_MQ_GETSETATTR = 278 + SYS_WAITID = 279 + SYS_TEE = 280 + SYS_ADD_KEY = 281 + SYS_REQUEST_KEY = 282 + SYS_KEYCTL = 283 + SYS_OPENAT = 284 + SYS_MKDIRAT = 285 + SYS_MKNODAT = 286 + SYS_FCHOWNAT = 287 + SYS_FUTIMESAT = 288 + SYS_FSTATAT64 = 289 + SYS_UNLINKAT = 290 + SYS_RENAMEAT = 291 + SYS_LINKAT = 292 + SYS_SYMLINKAT = 293 + SYS_READLINKAT = 294 + SYS_FCHMODAT = 295 + SYS_FACCESSAT = 296 + SYS_PSELECT6 = 297 + SYS_PPOLL = 298 + SYS_UNSHARE = 299 + SYS_SET_ROBUST_LIST = 300 + SYS_GET_ROBUST_LIST = 301 + SYS_MIGRATE_PAGES = 302 + SYS_MBIND = 303 + SYS_GET_MEMPOLICY = 304 + SYS_SET_MEMPOLICY = 305 + SYS_KEXEC_LOAD = 306 + SYS_MOVE_PAGES = 307 + SYS_GETCPU = 308 + SYS_EPOLL_PWAIT = 309 + SYS_UTIMENSAT = 310 + SYS_SIGNALFD = 311 + SYS_TIMERFD_CREATE = 312 + SYS_EVENTFD = 313 + SYS_FALLOCATE = 314 + SYS_TIMERFD_SETTIME = 315 + SYS_TIMERFD_GETTIME = 316 + SYS_SIGNALFD4 = 317 + SYS_EVENTFD2 = 318 + SYS_EPOLL_CREATE1 = 319 + SYS_DUP3 = 320 + SYS_PIPE2 = 321 + SYS_INOTIFY_INIT1 = 322 + SYS_ACCEPT4 = 323 + SYS_PREADV = 324 + SYS_PWRITEV = 325 + SYS_RT_TGSIGQUEUEINFO = 326 + SYS_PERF_EVENT_OPEN = 327 + SYS_RECVMMSG = 328 + SYS_FANOTIFY_INIT = 329 + SYS_FANOTIFY_MARK = 330 + SYS_PRLIMIT64 = 331 + SYS_NAME_TO_HANDLE_AT = 332 + SYS_OPEN_BY_HANDLE_AT = 333 + SYS_CLOCK_ADJTIME = 334 + SYS_SYNCFS = 335 + SYS_SENDMMSG = 336 + SYS_SETNS = 337 + SYS_PROCESS_VM_READV = 338 + SYS_PROCESS_VM_WRITEV = 339 + SYS_KERN_FEATURES = 340 + SYS_KCMP = 341 + SYS_FINIT_MODULE = 342 + SYS_SCHED_SETATTR = 343 + SYS_SCHED_GETATTR = 344 + SYS_RENAMEAT2 = 345 + SYS_SECCOMP = 346 + SYS_GETRANDOM = 347 + SYS_MEMFD_CREATE = 348 + SYS_BPF = 349 + SYS_EXECVEAT = 350 + SYS_MEMBARRIER = 351 + SYS_USERFAULTFD = 352 + SYS_BIND = 353 + SYS_LISTEN = 354 + SYS_SETSOCKOPT = 355 + SYS_MLOCK2 = 356 + SYS_COPY_FILE_RANGE = 357 + SYS_PREADV2 = 358 + SYS_PWRITEV2 = 359 + SYS_STATX = 360 + SYS_IO_PGETEVENTS = 361 + SYS_PKEY_MPROTECT = 362 + SYS_PKEY_ALLOC = 363 + SYS_PKEY_FREE = 364 + SYS_RSEQ = 365 + SYS_SEMTIMEDOP = 392 + SYS_SEMGET = 393 + SYS_SEMCTL = 394 + SYS_SHMGET = 395 + SYS_SHMCTL = 396 + SYS_SHMAT = 397 + SYS_SHMDT = 398 + SYS_MSGGET = 399 + SYS_MSGSND = 400 + SYS_MSGRCV = 401 + SYS_MSGCTL = 402 + SYS_PIDFD_SEND_SIGNAL = 424 + SYS_IO_URING_SETUP = 425 + SYS_IO_URING_ENTER = 426 + SYS_IO_URING_REGISTER = 427 + SYS_OPEN_TREE = 428 + SYS_MOVE_MOUNT = 429 + SYS_FSOPEN = 430 + SYS_FSCONFIG = 431 + SYS_FSMOUNT = 432 + SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 + SYS_CLOSE_RANGE = 436 + SYS_OPENAT2 = 437 + SYS_PIDFD_GETFD = 438 + SYS_FACCESSAT2 = 439 + SYS_PROCESS_MADVISE = 440 + SYS_EPOLL_PWAIT2 = 441 + SYS_MOUNT_SETATTR = 442 + SYS_QUOTACTL_FD = 443 + SYS_LANDLOCK_CREATE_RULESET = 444 + SYS_LANDLOCK_ADD_RULE = 445 + SYS_LANDLOCK_RESTRICT_SELF = 446 + SYS_PROCESS_MRELEASE = 448 + SYS_FUTEX_WAITV = 449 + SYS_SET_MEMPOLICY_HOME_NODE = 450 +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go new file mode 100644 index 0000000..3a6699e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go @@ -0,0 +1,275 @@ +// go run mksysnum.go http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && netbsd +// +build 386,netbsd + +package unix + +const ( + SYS_EXIT = 1 // { void|sys||exit(int rval); } + SYS_FORK = 2 // { int|sys||fork(void); } + SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int|sys||close(int fd); } + SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } + SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } + SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } + SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } + SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } + SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } + SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } + SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } + SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } + SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } + SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { void|sys||sync(void); } + SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } + SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } + SYS_DUP = 41 // { int|sys||dup(int fd); } + SYS_PIPE = 42 // { int|sys||pipe(void); } + SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } + SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } + SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } + SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int|sys||acct(const char *path); } + SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } + SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } + SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } + SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } + SYS_VFORK = 66 // { int|sys||vfork(void); } + SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } + SYS_SSTK = 70 // { int|sys||sstk(int incr); } + SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } + SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } + SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } + SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } + SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } + SYS_FSYNC = 95 // { int|sys||fsync(int fd); } + SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } + SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } + SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } + SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } + SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } + SYS_SETSID = 147 // { int|sys||setsid(void); } + SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } + SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } + SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } + SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } + SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } + SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } + SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } + SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } + SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } + SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } + SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } + SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } + SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } + SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } + SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } + SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } + SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } + SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } + SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } + SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } + SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } + SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } + SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } + SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } + SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } + SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } + SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } + SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } + SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } + SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } + SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } + SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } + SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } + SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } + SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } + SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } + SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } + SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } + SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } + SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } + SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } + SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } + SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } + SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } + SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } + SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } + SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } + SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } + SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } + SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } + SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } + SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } + SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } + SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } + SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } + SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } + SYS_KQUEUE = 344 // { int|sys||kqueue(void); } + SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } + SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } + SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } + SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } + SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } + SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } + SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } + SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } + SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } + SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } + SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } + SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } + SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } + SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } + SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } + SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } + SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } + SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } + SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } + SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } + SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } + SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } + SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } + SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } + SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } + SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } + SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } + SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } + SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } + SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } + SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } + SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } + SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } + SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } + SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } + SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } + SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } + SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } + SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } + SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } + SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } + SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } + SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } + SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } + SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } + SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } + SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } + SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } + SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } + SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } + SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } + SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } + SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } + SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } + SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } + SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } + SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } + SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } + SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } + SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } + SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } + SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } + SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } + SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } + SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } + SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } + SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go new file mode 100644 index 0000000..5677cd4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go @@ -0,0 +1,275 @@ +// go run mksysnum.go http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && netbsd +// +build amd64,netbsd + +package unix + +const ( + SYS_EXIT = 1 // { void|sys||exit(int rval); } + SYS_FORK = 2 // { int|sys||fork(void); } + SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int|sys||close(int fd); } + SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } + SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } + SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } + SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } + SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } + SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } + SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } + SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } + SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } + SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } + SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { void|sys||sync(void); } + SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } + SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } + SYS_DUP = 41 // { int|sys||dup(int fd); } + SYS_PIPE = 42 // { int|sys||pipe(void); } + SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } + SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } + SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } + SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int|sys||acct(const char *path); } + SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } + SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } + SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } + SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } + SYS_VFORK = 66 // { int|sys||vfork(void); } + SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } + SYS_SSTK = 70 // { int|sys||sstk(int incr); } + SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } + SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } + SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } + SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } + SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } + SYS_FSYNC = 95 // { int|sys||fsync(int fd); } + SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } + SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } + SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } + SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } + SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } + SYS_SETSID = 147 // { int|sys||setsid(void); } + SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } + SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } + SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } + SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } + SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } + SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } + SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } + SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } + SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } + SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } + SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } + SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } + SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } + SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } + SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } + SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } + SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } + SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } + SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } + SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } + SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } + SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } + SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } + SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } + SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } + SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } + SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } + SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } + SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } + SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } + SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } + SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } + SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } + SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } + SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } + SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } + SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } + SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } + SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } + SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } + SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } + SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } + SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } + SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } + SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } + SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } + SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } + SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } + SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } + SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } + SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } + SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } + SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } + SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } + SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } + SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } + SYS_KQUEUE = 344 // { int|sys||kqueue(void); } + SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } + SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } + SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } + SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } + SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } + SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } + SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } + SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } + SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } + SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } + SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } + SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } + SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } + SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } + SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } + SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } + SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } + SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } + SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } + SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } + SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } + SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } + SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } + SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } + SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } + SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } + SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } + SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } + SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } + SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } + SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } + SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } + SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } + SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } + SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } + SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } + SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } + SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } + SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } + SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } + SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } + SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } + SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } + SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } + SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } + SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } + SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } + SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } + SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } + SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } + SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } + SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } + SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } + SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } + SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } + SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } + SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } + SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } + SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } + SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } + SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } + SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } + SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } + SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } + SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } + SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } + SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go new file mode 100644 index 0000000..e784cb6 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go @@ -0,0 +1,275 @@ +// go run mksysnum.go http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && netbsd +// +build arm,netbsd + +package unix + +const ( + SYS_EXIT = 1 // { void|sys||exit(int rval); } + SYS_FORK = 2 // { int|sys||fork(void); } + SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int|sys||close(int fd); } + SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } + SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } + SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } + SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } + SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } + SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } + SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } + SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } + SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } + SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } + SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { void|sys||sync(void); } + SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } + SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } + SYS_DUP = 41 // { int|sys||dup(int fd); } + SYS_PIPE = 42 // { int|sys||pipe(void); } + SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } + SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } + SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } + SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int|sys||acct(const char *path); } + SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } + SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } + SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } + SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } + SYS_VFORK = 66 // { int|sys||vfork(void); } + SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } + SYS_SSTK = 70 // { int|sys||sstk(int incr); } + SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } + SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } + SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } + SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } + SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } + SYS_FSYNC = 95 // { int|sys||fsync(int fd); } + SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } + SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } + SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } + SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } + SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } + SYS_SETSID = 147 // { int|sys||setsid(void); } + SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } + SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } + SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } + SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } + SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } + SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } + SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } + SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } + SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } + SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } + SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } + SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } + SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } + SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } + SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } + SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } + SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } + SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } + SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } + SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } + SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } + SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } + SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } + SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } + SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } + SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } + SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } + SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } + SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } + SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } + SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } + SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } + SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } + SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } + SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } + SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } + SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } + SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } + SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } + SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } + SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } + SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } + SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } + SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } + SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } + SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } + SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } + SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } + SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } + SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } + SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } + SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } + SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } + SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } + SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } + SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } + SYS_KQUEUE = 344 // { int|sys||kqueue(void); } + SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } + SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } + SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } + SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } + SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } + SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } + SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } + SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } + SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } + SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } + SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } + SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } + SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } + SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } + SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } + SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } + SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } + SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } + SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } + SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } + SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } + SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } + SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } + SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } + SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } + SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } + SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } + SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } + SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } + SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } + SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } + SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } + SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } + SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } + SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } + SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } + SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } + SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } + SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } + SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } + SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } + SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } + SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } + SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } + SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } + SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } + SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } + SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } + SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } + SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } + SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } + SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } + SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } + SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } + SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } + SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } + SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } + SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } + SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } + SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } + SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } + SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } + SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } + SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } + SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } + SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } + SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go new file mode 100644 index 0000000..bd4952e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go @@ -0,0 +1,275 @@ +// go run mksysnum.go http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; DO NOT EDIT. + +//go:build arm64 && netbsd +// +build arm64,netbsd + +package unix + +const ( + SYS_EXIT = 1 // { void|sys||exit(int rval); } + SYS_FORK = 2 // { int|sys||fork(void); } + SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int|sys||close(int fd); } + SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } + SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } + SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } + SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } + SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } + SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } + SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } + SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } + SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } + SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } + SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } + SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } + SYS_SYNC = 36 // { void|sys||sync(void); } + SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } + SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } + SYS_DUP = 41 // { int|sys||dup(int fd); } + SYS_PIPE = 42 // { int|sys||pipe(void); } + SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } + SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } + SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } + SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int|sys||acct(const char *path); } + SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } + SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } + SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } + SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } + SYS_VFORK = 66 // { int|sys||vfork(void); } + SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } + SYS_SSTK = 70 // { int|sys||sstk(int incr); } + SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } + SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } + SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } + SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } + SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } + SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } + SYS_FSYNC = 95 // { int|sys||fsync(int fd); } + SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } + SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } + SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } + SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } + SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } + SYS_SETSID = 147 // { int|sys||setsid(void); } + SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } + SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } + SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } + SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } + SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } + SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } + SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } + SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } + SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } + SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } + SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } + SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } + SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } + SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } + SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } + SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } + SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } + SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } + SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } + SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } + SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } + SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } + SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } + SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } + SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } + SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } + SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } + SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } + SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } + SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } + SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } + SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } + SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } + SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } + SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } + SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } + SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } + SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } + SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } + SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } + SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } + SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } + SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } + SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } + SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } + SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } + SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } + SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } + SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } + SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } + SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } + SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } + SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } + SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } + SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } + SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } + SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } + SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } + SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } + SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } + SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } + SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } + SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } + SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } + SYS_KQUEUE = 344 // { int|sys||kqueue(void); } + SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } + SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } + SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } + SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } + SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } + SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } + SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } + SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } + SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } + SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } + SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } + SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } + SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } + SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } + SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } + SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } + SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } + SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } + SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } + SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } + SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } + SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } + SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } + SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } + SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } + SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } + SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } + SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } + SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } + SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } + SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } + SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } + SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } + SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } + SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } + SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } + SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } + SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } + SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } + SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } + SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } + SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } + SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } + SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } + SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } + SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } + SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } + SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } + SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } + SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } + SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } + SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } + SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } + SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } + SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } + SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } + SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } + SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } + SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } + SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } + SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } + SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } + SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } + SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } + SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } + SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } + SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } + SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } + SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } + SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } + SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } + SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } + SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } + SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go new file mode 100644 index 0000000..5977338 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go @@ -0,0 +1,220 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && openbsd +// +build 386,openbsd + +package unix + +// Deprecated: Use libc wrappers instead of direct syscalls. +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go new file mode 100644 index 0000000..16af291 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go @@ -0,0 +1,220 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && openbsd +// +build amd64,openbsd + +package unix + +// Deprecated: Use libc wrappers instead of direct syscalls. +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go new file mode 100644 index 0000000..f59b18a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go @@ -0,0 +1,220 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && openbsd +// +build arm,openbsd + +package unix + +// Deprecated: Use libc wrappers instead of direct syscalls. +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, char *vec); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go new file mode 100644 index 0000000..721ef59 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go @@ -0,0 +1,219 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && openbsd +// +build arm64,openbsd + +package unix + +// Deprecated: Use libc wrappers instead of direct syscalls. +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go new file mode 100644 index 0000000..01c43a0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go @@ -0,0 +1,222 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64 && openbsd +// +build mips64,openbsd + +package unix + +// Deprecated: Use libc wrappers instead of direct syscalls. +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_MSYSCALL = 37 // { int sys_msyscall(void *addr, size_t len); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS___REALPATH = 115 // { int sys___realpath(const char *pathname, char *resolved); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS___TMPFD = 164 // { int sys___tmpfd(int flags); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go new file mode 100644 index 0000000..f258cfa --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go @@ -0,0 +1,218 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && openbsd +// +build ppc64,openbsd + +package unix + +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go new file mode 100644 index 0000000..07919e0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go @@ -0,0 +1,219 @@ +// go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && openbsd +// +build riscv64,openbsd + +package unix + +// Deprecated: Use libc wrappers instead of direct syscalls. +const ( + SYS_EXIT = 1 // { void sys_exit(int rval); } + SYS_FORK = 2 // { int sys_fork(void); } + SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } + SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, size_t nbyte); } + SYS_OPEN = 5 // { int sys_open(const char *path, int flags, ... mode_t mode); } + SYS_CLOSE = 6 // { int sys_close(int fd); } + SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } + SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, size_t psize); } + SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } + SYS_UNLINK = 10 // { int sys_unlink(const char *path); } + SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, int options, struct rusage *rusage); } + SYS_CHDIR = 12 // { int sys_chdir(const char *path); } + SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } + SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, dev_t dev); } + SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } + SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, gid_t gid); } + SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break + SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } + SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, struct rusage *rusage); } + SYS_GETPID = 20 // { pid_t sys_getpid(void); } + SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, int flags, void *data); } + SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } + SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } + SYS_GETUID = 24 // { uid_t sys_getuid(void); } + SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } + SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, int data); } + SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, int flags); } + SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, const struct msghdr *msg, int flags); } + SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } + SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, socklen_t *anamelen); } + SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } + SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } + SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } + SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } + SYS_SYNC = 36 // { void sys_sync(void); } + SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } + SYS_GETPPID = 39 // { pid_t sys_getppid(void); } + SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } + SYS_DUP = 41 // { int sys_dup(int fd); } + SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, struct stat *buf, int flag); } + SYS_GETEGID = 43 // { gid_t sys_getegid(void); } + SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, u_long offset, u_int scale); } + SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, int facs, pid_t pid); } + SYS_SIGACTION = 46 // { int sys_sigaction(int signum, const struct sigaction *nsa, struct sigaction *osa); } + SYS_GETGID = 47 // { gid_t sys_getgid(void); } + SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } + SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } + SYS_ACCT = 51 // { int sys_acct(const char *path); } + SYS_SIGPENDING = 52 // { int sys_sigpending(void); } + SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } + SYS_IOCTL = 54 // { int sys_ioctl(int fd, u_long com, ... void *data); } + SYS_REBOOT = 55 // { int sys_reboot(int opt); } + SYS_REVOKE = 56 // { int sys_revoke(const char *path); } + SYS_SYMLINK = 57 // { int sys_symlink(const char *path, const char *link); } + SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, char *buf, size_t count); } + SYS_EXECVE = 59 // { int sys_execve(const char *path, char * const *argp, char * const *envp); } + SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } + SYS_CHROOT = 61 // { int sys_chroot(const char *path); } + SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, int flags); } + SYS_STATFS = 63 // { int sys_statfs(const char *path, struct statfs *buf); } + SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } + SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, struct statfs *buf); } + SYS_VFORK = 66 // { int sys_vfork(void); } + SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, struct timezone *tzp); } + SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, const struct timezone *tzp); } + SYS_SETITIMER = 69 // { int sys_setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } + SYS_GETITIMER = 70 // { int sys_getitimer(int which, struct itimerval *itv); } + SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } + SYS_KEVENT = 72 // { int sys_kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } + SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } + SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, int prot); } + SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, int behav); } + SYS_UTIMES = 76 // { int sys_utimes(const char *path, const struct timeval *tptr); } + SYS_FUTIMES = 77 // { int sys_futimes(int fd, const struct timeval *tptr); } + SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, gid_t *gidset); } + SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, const gid_t *gidset); } + SYS_GETPGRP = 81 // { int sys_getpgrp(void); } + SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } + SYS_FUTEX = 83 // { int sys_futex(uint32_t *f, int op, int val, const struct timespec *timeout, uint32_t *g); } + SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, const struct timespec *times, int flag); } + SYS_FUTIMENS = 85 // { int sys_futimens(int fd, const struct timespec *times); } + SYS_KBIND = 86 // { int sys_kbind(const struct __kbind *param, size_t psize, int64_t proc_cookie); } + SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, struct timespec *tp); } + SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, const struct timespec *tp); } + SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, struct timespec *tp); } + SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } + SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } + SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } + SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, socklen_t *anamelen, int flags); } + SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, clockid_t clock_id, const struct timespec *tp, void *lock, const int *abort); } + SYS_FSYNC = 95 // { int sys_fsync(int fd); } + SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } + SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } + SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } + SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } + SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } + SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } + SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } + SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, socklen_t namelen); } + SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } + SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } + SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, u_int flags, int atflags); } + SYS_PLEDGE = 108 // { int sys_pledge(const char *promises, const char *execpromises); } + SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } + SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } + SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } + SYS_SENDSYSLOG = 112 // { int sys_sendsyslog(const char *buf, size_t nbyte, int flags); } + SYS_UNVEIL = 114 // { int sys_unveil(const char *path, const char *permissions); } + SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } + SYS_THRKILL = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); } + SYS_READV = 120 // { ssize_t sys_readv(int fd, const struct iovec *iovp, int iovcnt); } + SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, const struct iovec *iovp, int iovcnt); } + SYS_KILL = 122 // { int sys_kill(int pid, int signum); } + SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } + SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } + SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } + SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } + SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } + SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } + SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } + SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } + SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } + SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, int protocol, int *rsv); } + SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } + SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } + SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, struct timeval *olddelta); } + SYS_GETLOGIN_R = 141 // { int sys_getlogin_r(char *namebuf, u_int namelen); } + SYS_SETSID = 147 // { int sys_setsid(void); } + SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, int uid, char *arg); } + SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } + SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } + SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } + SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, size_t nbyte, int pad, off_t offset); } + SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, size_t nbyte, int pad, off_t offset); } + SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } + SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } + SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } + SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } + SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } + SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } + SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, struct rlimit *rlp); } + SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, const struct rlimit *rlp); } + SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, int whence); } + SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, off_t length); } + SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } + SYS_SYSCTL = 202 // { int sys_sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen); } + SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } + SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } + SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } + SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, size_t len); } + SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } + SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } + SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } + SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } + SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, int shmflg); } + SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } + SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, int inherit); } + SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, u_int nfds, int timeout); } + SYS_ISSETUGID = 253 // { int sys_issetugid(void); } + SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } + SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } + SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } + SYS_PIPE = 263 // { int sys_pipe(int *fdp); } + SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } + SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, const struct iovec *iovp, int iovcnt, int pad, off_t offset); } + SYS_KQUEUE = 269 // { int sys_kqueue(void); } + SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } + SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } + SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } + SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); } + SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } + SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); } + SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, int flags, int fd, long pad, off_t pos); } + SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } + SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, struct sigaltstack *oss); } + SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } + SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, size_t nsops); } + SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, struct stat *sb); } + SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, union semun *arg); } + SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, struct shmid_ds *buf); } + SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, struct msqid_ds *buf); } + SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } + SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } + SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, int n); } + SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } + SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, siginfo_t *info, const struct timespec *timeout); } + SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } + SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, int64_t *oldfreq); } + SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } + SYS_GETRTABLE = 311 // { int sys_getrtable(void); } + SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, int amode, int flag); } + SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, mode_t mode, int flag); } + SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); } + SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); } + SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, mode_t mode); } + SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, mode_t mode); } + SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, mode_t mode, dev_t dev); } + SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, ... mode_t mode); } + SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, char *buf, size_t count); } + SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, int tofd, const char *to); } + SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, const char *link); } + SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, int flag); } + SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } + SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } +) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go new file mode 100644 index 0000000..073daad --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go @@ -0,0 +1,2670 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +package unix + +// TODO: auto-generate. + +const ( + SYS_ACOSD128 = 0xB80 + SYS_ACOSD32 = 0xB7E + SYS_ACOSD64 = 0xB7F + SYS_ACOSHD128 = 0xB83 + SYS_ACOSHD32 = 0xB81 + SYS_ACOSHD64 = 0xB82 + SYS_AIO_FSYNC = 0xC69 + SYS_ASCTIME = 0x0AE + SYS_ASCTIME64 = 0xCD7 + SYS_ASCTIME64_R = 0xCD8 + SYS_ASIND128 = 0xB86 + SYS_ASIND32 = 0xB84 + SYS_ASIND64 = 0xB85 + SYS_ASINHD128 = 0xB89 + SYS_ASINHD32 = 0xB87 + SYS_ASINHD64 = 0xB88 + SYS_ATAN2D128 = 0xB8F + SYS_ATAN2D32 = 0xB8D + SYS_ATAN2D64 = 0xB8E + SYS_ATAND128 = 0xB8C + SYS_ATAND32 = 0xB8A + SYS_ATAND64 = 0xB8B + SYS_ATANHD128 = 0xB92 + SYS_ATANHD32 = 0xB90 + SYS_ATANHD64 = 0xB91 + SYS_BIND2ADDRSEL = 0xD59 + SYS_C16RTOMB = 0xD40 + SYS_C32RTOMB = 0xD41 + SYS_CBRTD128 = 0xB95 + SYS_CBRTD32 = 0xB93 + SYS_CBRTD64 = 0xB94 + SYS_CEILD128 = 0xB98 + SYS_CEILD32 = 0xB96 + SYS_CEILD64 = 0xB97 + SYS_CLEARENV = 0x0C9 + SYS_CLEARERR_UNLOCKED = 0xCA1 + SYS_CLOCK = 0x0AA + SYS_CLOGL = 0xA00 + SYS_CLRMEMF = 0x0BD + SYS_CONJ = 0xA03 + SYS_CONJF = 0xA06 + SYS_CONJL = 0xA09 + SYS_COPYSIGND128 = 0xB9E + SYS_COPYSIGND32 = 0xB9C + SYS_COPYSIGND64 = 0xB9D + SYS_COSD128 = 0xBA1 + SYS_COSD32 = 0xB9F + SYS_COSD64 = 0xBA0 + SYS_COSHD128 = 0xBA4 + SYS_COSHD32 = 0xBA2 + SYS_COSHD64 = 0xBA3 + SYS_CPOW = 0xA0C + SYS_CPOWF = 0xA0F + SYS_CPOWL = 0xA12 + SYS_CPROJ = 0xA15 + SYS_CPROJF = 0xA18 + SYS_CPROJL = 0xA1B + SYS_CREAL = 0xA1E + SYS_CREALF = 0xA21 + SYS_CREALL = 0xA24 + SYS_CSIN = 0xA27 + SYS_CSINF = 0xA2A + SYS_CSINH = 0xA30 + SYS_CSINHF = 0xA33 + SYS_CSINHL = 0xA36 + SYS_CSINL = 0xA2D + SYS_CSNAP = 0x0C5 + SYS_CSQRT = 0xA39 + SYS_CSQRTF = 0xA3C + SYS_CSQRTL = 0xA3F + SYS_CTAN = 0xA42 + SYS_CTANF = 0xA45 + SYS_CTANH = 0xA4B + SYS_CTANHF = 0xA4E + SYS_CTANHL = 0xA51 + SYS_CTANL = 0xA48 + SYS_CTIME = 0x0AB + SYS_CTIME64 = 0xCD9 + SYS_CTIME64_R = 0xCDA + SYS_CTRACE = 0x0C6 + SYS_DIFFTIME = 0x0A7 + SYS_DIFFTIME64 = 0xCDB + SYS_DLADDR = 0xC82 + SYS_DYNALLOC = 0x0C3 + SYS_DYNFREE = 0x0C2 + SYS_ERFCD128 = 0xBAA + SYS_ERFCD32 = 0xBA8 + SYS_ERFCD64 = 0xBA9 + SYS_ERFD128 = 0xBA7 + SYS_ERFD32 = 0xBA5 + SYS_ERFD64 = 0xBA6 + SYS_EXP2D128 = 0xBB0 + SYS_EXP2D32 = 0xBAE + SYS_EXP2D64 = 0xBAF + SYS_EXPD128 = 0xBAD + SYS_EXPD32 = 0xBAB + SYS_EXPD64 = 0xBAC + SYS_EXPM1D128 = 0xBB3 + SYS_EXPM1D32 = 0xBB1 + SYS_EXPM1D64 = 0xBB2 + SYS_FABSD128 = 0xBB6 + SYS_FABSD32 = 0xBB4 + SYS_FABSD64 = 0xBB5 + SYS_FDELREC_UNLOCKED = 0xCA2 + SYS_FDIMD128 = 0xBB9 + SYS_FDIMD32 = 0xBB7 + SYS_FDIMD64 = 0xBB8 + SYS_FDOPEN_UNLOCKED = 0xCFC + SYS_FECLEAREXCEPT = 0xAEA + SYS_FEGETENV = 0xAEB + SYS_FEGETEXCEPTFLAG = 0xAEC + SYS_FEGETROUND = 0xAED + SYS_FEHOLDEXCEPT = 0xAEE + SYS_FEOF_UNLOCKED = 0xCA3 + SYS_FERAISEEXCEPT = 0xAEF + SYS_FERROR_UNLOCKED = 0xCA4 + SYS_FESETENV = 0xAF0 + SYS_FESETEXCEPTFLAG = 0xAF1 + SYS_FESETROUND = 0xAF2 + SYS_FETCHEP = 0x0BF + SYS_FETESTEXCEPT = 0xAF3 + SYS_FEUPDATEENV = 0xAF4 + SYS_FE_DEC_GETROUND = 0xBBA + SYS_FE_DEC_SETROUND = 0xBBB + SYS_FFLUSH_UNLOCKED = 0xCA5 + SYS_FGETC_UNLOCKED = 0xC80 + SYS_FGETPOS64 = 0xCEE + SYS_FGETPOS64_UNLOCKED = 0xCF4 + SYS_FGETPOS_UNLOCKED = 0xCA6 + SYS_FGETS_UNLOCKED = 0xC7C + SYS_FGETWC_UNLOCKED = 0xCA7 + SYS_FGETWS_UNLOCKED = 0xCA8 + SYS_FILENO_UNLOCKED = 0xCA9 + SYS_FLDATA = 0x0C1 + SYS_FLDATA_UNLOCKED = 0xCAA + SYS_FLOCATE_UNLOCKED = 0xCAB + SYS_FLOORD128 = 0xBBE + SYS_FLOORD32 = 0xBBC + SYS_FLOORD64 = 0xBBD + SYS_FMA = 0xA63 + SYS_FMAD128 = 0xBC1 + SYS_FMAD32 = 0xBBF + SYS_FMAD64 = 0xBC0 + SYS_FMAF = 0xA66 + SYS_FMAL = 0xA69 + SYS_FMAX = 0xA6C + SYS_FMAXD128 = 0xBC4 + SYS_FMAXD32 = 0xBC2 + SYS_FMAXD64 = 0xBC3 + SYS_FMAXF = 0xA6F + SYS_FMAXL = 0xA72 + SYS_FMIN = 0xA75 + SYS_FMIND128 = 0xBC7 + SYS_FMIND32 = 0xBC5 + SYS_FMIND64 = 0xBC6 + SYS_FMINF = 0xA78 + SYS_FMINL = 0xA7B + SYS_FMODD128 = 0xBCA + SYS_FMODD32 = 0xBC8 + SYS_FMODD64 = 0xBC9 + SYS_FOPEN64 = 0xD49 + SYS_FOPEN64_UNLOCKED = 0xD4A + SYS_FOPEN_UNLOCKED = 0xCFA + SYS_FPRINTF_UNLOCKED = 0xCAC + SYS_FPUTC_UNLOCKED = 0xC81 + SYS_FPUTS_UNLOCKED = 0xC7E + SYS_FPUTWC_UNLOCKED = 0xCAD + SYS_FPUTWS_UNLOCKED = 0xCAE + SYS_FREAD_NOUPDATE = 0xCEC + SYS_FREAD_NOUPDATE_UNLOCKED = 0xCED + SYS_FREAD_UNLOCKED = 0xC7B + SYS_FREEIFADDRS = 0xCE6 + SYS_FREOPEN64 = 0xD4B + SYS_FREOPEN64_UNLOCKED = 0xD4C + SYS_FREOPEN_UNLOCKED = 0xCFB + SYS_FREXPD128 = 0xBCE + SYS_FREXPD32 = 0xBCC + SYS_FREXPD64 = 0xBCD + SYS_FSCANF_UNLOCKED = 0xCAF + SYS_FSEEK64 = 0xCEF + SYS_FSEEK64_UNLOCKED = 0xCF5 + SYS_FSEEKO64 = 0xCF0 + SYS_FSEEKO64_UNLOCKED = 0xCF6 + SYS_FSEEKO_UNLOCKED = 0xCB1 + SYS_FSEEK_UNLOCKED = 0xCB0 + SYS_FSETPOS64 = 0xCF1 + SYS_FSETPOS64_UNLOCKED = 0xCF7 + SYS_FSETPOS_UNLOCKED = 0xCB3 + SYS_FTELL64 = 0xCF2 + SYS_FTELL64_UNLOCKED = 0xCF8 + SYS_FTELLO64 = 0xCF3 + SYS_FTELLO64_UNLOCKED = 0xCF9 + SYS_FTELLO_UNLOCKED = 0xCB5 + SYS_FTELL_UNLOCKED = 0xCB4 + SYS_FUPDATE = 0x0B5 + SYS_FUPDATE_UNLOCKED = 0xCB7 + SYS_FWIDE_UNLOCKED = 0xCB8 + SYS_FWPRINTF_UNLOCKED = 0xCB9 + SYS_FWRITE_UNLOCKED = 0xC7A + SYS_FWSCANF_UNLOCKED = 0xCBA + SYS_GETDATE64 = 0xD4F + SYS_GETIFADDRS = 0xCE7 + SYS_GETIPV4SOURCEFILTER = 0xC77 + SYS_GETSOURCEFILTER = 0xC79 + SYS_GETSYNTX = 0x0FD + SYS_GETS_UNLOCKED = 0xC7D + SYS_GETTIMEOFDAY64 = 0xD50 + SYS_GETWCHAR_UNLOCKED = 0xCBC + SYS_GETWC_UNLOCKED = 0xCBB + SYS_GMTIME = 0x0B0 + SYS_GMTIME64 = 0xCDC + SYS_GMTIME64_R = 0xCDD + SYS_HYPOTD128 = 0xBD1 + SYS_HYPOTD32 = 0xBCF + SYS_HYPOTD64 = 0xBD0 + SYS_ILOGBD128 = 0xBD4 + SYS_ILOGBD32 = 0xBD2 + SYS_ILOGBD64 = 0xBD3 + SYS_ILOGBF = 0xA7E + SYS_ILOGBL = 0xA81 + SYS_INET6_IS_SRCADDR = 0xD5A + SYS_ISBLANK = 0x0FE + SYS_ISWALNUM = 0x0FF + SYS_LDEXPD128 = 0xBD7 + SYS_LDEXPD32 = 0xBD5 + SYS_LDEXPD64 = 0xBD6 + SYS_LGAMMAD128 = 0xBDA + SYS_LGAMMAD32 = 0xBD8 + SYS_LGAMMAD64 = 0xBD9 + SYS_LIO_LISTIO = 0xC6A + SYS_LLRINT = 0xA84 + SYS_LLRINTD128 = 0xBDD + SYS_LLRINTD32 = 0xBDB + SYS_LLRINTD64 = 0xBDC + SYS_LLRINTF = 0xA87 + SYS_LLRINTL = 0xA8A + SYS_LLROUND = 0xA8D + SYS_LLROUNDD128 = 0xBE0 + SYS_LLROUNDD32 = 0xBDE + SYS_LLROUNDD64 = 0xBDF + SYS_LLROUNDF = 0xA90 + SYS_LLROUNDL = 0xA93 + SYS_LOCALTIM = 0x0B1 + SYS_LOCALTIME = 0x0B1 + SYS_LOCALTIME64 = 0xCDE + SYS_LOCALTIME64_R = 0xCDF + SYS_LOG10D128 = 0xBE6 + SYS_LOG10D32 = 0xBE4 + SYS_LOG10D64 = 0xBE5 + SYS_LOG1PD128 = 0xBE9 + SYS_LOG1PD32 = 0xBE7 + SYS_LOG1PD64 = 0xBE8 + SYS_LOG2D128 = 0xBEC + SYS_LOG2D32 = 0xBEA + SYS_LOG2D64 = 0xBEB + SYS_LOGBD128 = 0xBEF + SYS_LOGBD32 = 0xBED + SYS_LOGBD64 = 0xBEE + SYS_LOGBF = 0xA96 + SYS_LOGBL = 0xA99 + SYS_LOGD128 = 0xBE3 + SYS_LOGD32 = 0xBE1 + SYS_LOGD64 = 0xBE2 + SYS_LRINT = 0xA9C + SYS_LRINTD128 = 0xBF2 + SYS_LRINTD32 = 0xBF0 + SYS_LRINTD64 = 0xBF1 + SYS_LRINTF = 0xA9F + SYS_LRINTL = 0xAA2 + SYS_LROUNDD128 = 0xBF5 + SYS_LROUNDD32 = 0xBF3 + SYS_LROUNDD64 = 0xBF4 + SYS_LROUNDL = 0xAA5 + SYS_MBLEN = 0x0AF + SYS_MBRTOC16 = 0xD42 + SYS_MBRTOC32 = 0xD43 + SYS_MEMSET = 0x0A3 + SYS_MKTIME = 0x0AC + SYS_MKTIME64 = 0xCE0 + SYS_MODFD128 = 0xBF8 + SYS_MODFD32 = 0xBF6 + SYS_MODFD64 = 0xBF7 + SYS_NAN = 0xAA8 + SYS_NAND128 = 0xBFB + SYS_NAND32 = 0xBF9 + SYS_NAND64 = 0xBFA + SYS_NANF = 0xAAA + SYS_NANL = 0xAAC + SYS_NEARBYINT = 0xAAE + SYS_NEARBYINTD128 = 0xBFE + SYS_NEARBYINTD32 = 0xBFC + SYS_NEARBYINTD64 = 0xBFD + SYS_NEARBYINTF = 0xAB1 + SYS_NEARBYINTL = 0xAB4 + SYS_NEXTAFTERD128 = 0xC01 + SYS_NEXTAFTERD32 = 0xBFF + SYS_NEXTAFTERD64 = 0xC00 + SYS_NEXTAFTERF = 0xAB7 + SYS_NEXTAFTERL = 0xABA + SYS_NEXTTOWARD = 0xABD + SYS_NEXTTOWARDD128 = 0xC04 + SYS_NEXTTOWARDD32 = 0xC02 + SYS_NEXTTOWARDD64 = 0xC03 + SYS_NEXTTOWARDF = 0xAC0 + SYS_NEXTTOWARDL = 0xAC3 + SYS_NL_LANGINFO = 0x0FC + SYS_PERROR_UNLOCKED = 0xCBD + SYS_POSIX_FALLOCATE = 0xCE8 + SYS_POSIX_MEMALIGN = 0xCE9 + SYS_POSIX_OPENPT = 0xC66 + SYS_POWD128 = 0xC07 + SYS_POWD32 = 0xC05 + SYS_POWD64 = 0xC06 + SYS_PRINTF_UNLOCKED = 0xCBE + SYS_PSELECT = 0xC67 + SYS_PTHREAD_ATTR_GETSTACK = 0xB3E + SYS_PTHREAD_ATTR_SETSTACK = 0xB3F + SYS_PTHREAD_SECURITY_APPLID_NP = 0xCE4 + SYS_PUTS_UNLOCKED = 0xC7F + SYS_PUTWCHAR_UNLOCKED = 0xCC0 + SYS_PUTWC_UNLOCKED = 0xCBF + SYS_QUANTEXPD128 = 0xD46 + SYS_QUANTEXPD32 = 0xD44 + SYS_QUANTEXPD64 = 0xD45 + SYS_QUANTIZED128 = 0xC0A + SYS_QUANTIZED32 = 0xC08 + SYS_QUANTIZED64 = 0xC09 + SYS_REMAINDERD128 = 0xC0D + SYS_REMAINDERD32 = 0xC0B + SYS_REMAINDERD64 = 0xC0C + SYS_RESIZE_ALLOC = 0xCEB + SYS_REWIND_UNLOCKED = 0xCC1 + SYS_RINTD128 = 0xC13 + SYS_RINTD32 = 0xC11 + SYS_RINTD64 = 0xC12 + SYS_RINTF = 0xACB + SYS_RINTL = 0xACD + SYS_ROUND = 0xACF + SYS_ROUNDD128 = 0xC16 + SYS_ROUNDD32 = 0xC14 + SYS_ROUNDD64 = 0xC15 + SYS_ROUNDF = 0xAD2 + SYS_ROUNDL = 0xAD5 + SYS_SAMEQUANTUMD128 = 0xC19 + SYS_SAMEQUANTUMD32 = 0xC17 + SYS_SAMEQUANTUMD64 = 0xC18 + SYS_SCALBLN = 0xAD8 + SYS_SCALBLND128 = 0xC1C + SYS_SCALBLND32 = 0xC1A + SYS_SCALBLND64 = 0xC1B + SYS_SCALBLNF = 0xADB + SYS_SCALBLNL = 0xADE + SYS_SCALBND128 = 0xC1F + SYS_SCALBND32 = 0xC1D + SYS_SCALBND64 = 0xC1E + SYS_SCALBNF = 0xAE3 + SYS_SCALBNL = 0xAE6 + SYS_SCANF_UNLOCKED = 0xCC2 + SYS_SCHED_YIELD = 0xB32 + SYS_SETENV = 0x0C8 + SYS_SETIPV4SOURCEFILTER = 0xC76 + SYS_SETSOURCEFILTER = 0xC78 + SYS_SHM_OPEN = 0xC8C + SYS_SHM_UNLINK = 0xC8D + SYS_SIND128 = 0xC22 + SYS_SIND32 = 0xC20 + SYS_SIND64 = 0xC21 + SYS_SINHD128 = 0xC25 + SYS_SINHD32 = 0xC23 + SYS_SINHD64 = 0xC24 + SYS_SIZEOF_ALLOC = 0xCEA + SYS_SOCKATMARK = 0xC68 + SYS_SQRTD128 = 0xC28 + SYS_SQRTD32 = 0xC26 + SYS_SQRTD64 = 0xC27 + SYS_STRCHR = 0x0A0 + SYS_STRCSPN = 0x0A1 + SYS_STRERROR = 0x0A8 + SYS_STRERROR_R = 0xB33 + SYS_STRFTIME = 0x0B2 + SYS_STRLEN = 0x0A9 + SYS_STRPBRK = 0x0A2 + SYS_STRSPN = 0x0A4 + SYS_STRSTR = 0x0A5 + SYS_STRTOD128 = 0xC2B + SYS_STRTOD32 = 0xC29 + SYS_STRTOD64 = 0xC2A + SYS_STRTOK = 0x0A6 + SYS_TAND128 = 0xC2E + SYS_TAND32 = 0xC2C + SYS_TAND64 = 0xC2D + SYS_TANHD128 = 0xC31 + SYS_TANHD32 = 0xC2F + SYS_TANHD64 = 0xC30 + SYS_TGAMMAD128 = 0xC34 + SYS_TGAMMAD32 = 0xC32 + SYS_TGAMMAD64 = 0xC33 + SYS_TIME = 0x0AD + SYS_TIME64 = 0xCE1 + SYS_TMPFILE64 = 0xD4D + SYS_TMPFILE64_UNLOCKED = 0xD4E + SYS_TMPFILE_UNLOCKED = 0xCFD + SYS_TRUNCD128 = 0xC40 + SYS_TRUNCD32 = 0xC3E + SYS_TRUNCD64 = 0xC3F + SYS_UNGETC_UNLOCKED = 0xCC3 + SYS_UNGETWC_UNLOCKED = 0xCC4 + SYS_UNSETENV = 0xB34 + SYS_VFPRINTF_UNLOCKED = 0xCC5 + SYS_VFSCANF_UNLOCKED = 0xCC7 + SYS_VFWPRINTF_UNLOCKED = 0xCC9 + SYS_VFWSCANF_UNLOCKED = 0xCCB + SYS_VPRINTF_UNLOCKED = 0xCCD + SYS_VSCANF_UNLOCKED = 0xCCF + SYS_VWPRINTF_UNLOCKED = 0xCD1 + SYS_VWSCANF_UNLOCKED = 0xCD3 + SYS_WCSTOD128 = 0xC43 + SYS_WCSTOD32 = 0xC41 + SYS_WCSTOD64 = 0xC42 + SYS_WPRINTF_UNLOCKED = 0xCD5 + SYS_WSCANF_UNLOCKED = 0xCD6 + SYS__FLUSHLBF = 0xD68 + SYS__FLUSHLBF_UNLOCKED = 0xD6F + SYS___ACOSHF_H = 0xA54 + SYS___ACOSHL_H = 0xA55 + SYS___ASINHF_H = 0xA56 + SYS___ASINHL_H = 0xA57 + SYS___ATANPID128 = 0xC6D + SYS___ATANPID32 = 0xC6B + SYS___ATANPID64 = 0xC6C + SYS___CBRTF_H = 0xA58 + SYS___CBRTL_H = 0xA59 + SYS___CDUMP = 0x0C4 + SYS___CLASS = 0xAFA + SYS___CLASS2 = 0xB99 + SYS___CLASS2D128 = 0xC99 + SYS___CLASS2D32 = 0xC97 + SYS___CLASS2D64 = 0xC98 + SYS___CLASS2F = 0xC91 + SYS___CLASS2F_B = 0xC93 + SYS___CLASS2F_H = 0xC94 + SYS___CLASS2L = 0xC92 + SYS___CLASS2L_B = 0xC95 + SYS___CLASS2L_H = 0xC96 + SYS___CLASS2_B = 0xB9A + SYS___CLASS2_H = 0xB9B + SYS___CLASS_B = 0xAFB + SYS___CLASS_H = 0xAFC + SYS___CLOGL_B = 0xA01 + SYS___CLOGL_H = 0xA02 + SYS___CLRENV = 0x0C9 + SYS___CLRMF = 0x0BD + SYS___CODEPAGE_INFO = 0xC64 + SYS___CONJF_B = 0xA07 + SYS___CONJF_H = 0xA08 + SYS___CONJL_B = 0xA0A + SYS___CONJL_H = 0xA0B + SYS___CONJ_B = 0xA04 + SYS___CONJ_H = 0xA05 + SYS___COPYSIGN_B = 0xA5A + SYS___COPYSIGN_H = 0xAF5 + SYS___COSPID128 = 0xC70 + SYS___COSPID32 = 0xC6E + SYS___COSPID64 = 0xC6F + SYS___CPOWF_B = 0xA10 + SYS___CPOWF_H = 0xA11 + SYS___CPOWL_B = 0xA13 + SYS___CPOWL_H = 0xA14 + SYS___CPOW_B = 0xA0D + SYS___CPOW_H = 0xA0E + SYS___CPROJF_B = 0xA19 + SYS___CPROJF_H = 0xA1A + SYS___CPROJL_B = 0xA1C + SYS___CPROJL_H = 0xA1D + SYS___CPROJ_B = 0xA16 + SYS___CPROJ_H = 0xA17 + SYS___CREALF_B = 0xA22 + SYS___CREALF_H = 0xA23 + SYS___CREALL_B = 0xA25 + SYS___CREALL_H = 0xA26 + SYS___CREAL_B = 0xA1F + SYS___CREAL_H = 0xA20 + SYS___CSINF_B = 0xA2B + SYS___CSINF_H = 0xA2C + SYS___CSINHF_B = 0xA34 + SYS___CSINHF_H = 0xA35 + SYS___CSINHL_B = 0xA37 + SYS___CSINHL_H = 0xA38 + SYS___CSINH_B = 0xA31 + SYS___CSINH_H = 0xA32 + SYS___CSINL_B = 0xA2E + SYS___CSINL_H = 0xA2F + SYS___CSIN_B = 0xA28 + SYS___CSIN_H = 0xA29 + SYS___CSNAP = 0x0C5 + SYS___CSQRTF_B = 0xA3D + SYS___CSQRTF_H = 0xA3E + SYS___CSQRTL_B = 0xA40 + SYS___CSQRTL_H = 0xA41 + SYS___CSQRT_B = 0xA3A + SYS___CSQRT_H = 0xA3B + SYS___CTANF_B = 0xA46 + SYS___CTANF_H = 0xA47 + SYS___CTANHF_B = 0xA4F + SYS___CTANHF_H = 0xA50 + SYS___CTANHL_B = 0xA52 + SYS___CTANHL_H = 0xA53 + SYS___CTANH_B = 0xA4C + SYS___CTANH_H = 0xA4D + SYS___CTANL_B = 0xA49 + SYS___CTANL_H = 0xA4A + SYS___CTAN_B = 0xA43 + SYS___CTAN_H = 0xA44 + SYS___CTEST = 0x0C7 + SYS___CTRACE = 0x0C6 + SYS___D1TOP = 0xC9B + SYS___D2TOP = 0xC9C + SYS___D4TOP = 0xC9D + SYS___DYNALL = 0x0C3 + SYS___DYNFRE = 0x0C2 + SYS___EXP2F_H = 0xA5E + SYS___EXP2L_H = 0xA5F + SYS___EXP2_H = 0xA5D + SYS___EXPM1F_H = 0xA5B + SYS___EXPM1L_H = 0xA5C + SYS___FBUFSIZE = 0xD60 + SYS___FLBF = 0xD62 + SYS___FLDATA = 0x0C1 + SYS___FMAF_B = 0xA67 + SYS___FMAF_H = 0xA68 + SYS___FMAL_B = 0xA6A + SYS___FMAL_H = 0xA6B + SYS___FMAXF_B = 0xA70 + SYS___FMAXF_H = 0xA71 + SYS___FMAXL_B = 0xA73 + SYS___FMAXL_H = 0xA74 + SYS___FMAX_B = 0xA6D + SYS___FMAX_H = 0xA6E + SYS___FMA_B = 0xA64 + SYS___FMA_H = 0xA65 + SYS___FMINF_B = 0xA79 + SYS___FMINF_H = 0xA7A + SYS___FMINL_B = 0xA7C + SYS___FMINL_H = 0xA7D + SYS___FMIN_B = 0xA76 + SYS___FMIN_H = 0xA77 + SYS___FPENDING = 0xD61 + SYS___FPENDING_UNLOCKED = 0xD6C + SYS___FPURGE = 0xD69 + SYS___FPURGE_UNLOCKED = 0xD70 + SYS___FP_CAST_D = 0xBCB + SYS___FREADABLE = 0xD63 + SYS___FREADAHEAD = 0xD6A + SYS___FREADAHEAD_UNLOCKED = 0xD71 + SYS___FREADING = 0xD65 + SYS___FREADING_UNLOCKED = 0xD6D + SYS___FSEEK2 = 0xB3C + SYS___FSETERR = 0xD6B + SYS___FSETLOCKING = 0xD67 + SYS___FTCHEP = 0x0BF + SYS___FTELL2 = 0xB3B + SYS___FUPDT = 0x0B5 + SYS___FWRITABLE = 0xD64 + SYS___FWRITING = 0xD66 + SYS___FWRITING_UNLOCKED = 0xD6E + SYS___GETCB = 0x0B4 + SYS___GETGRGID1 = 0xD5B + SYS___GETGRNAM1 = 0xD5C + SYS___GETTHENT = 0xCE5 + SYS___GETTOD = 0xD3E + SYS___HYPOTF_H = 0xAF6 + SYS___HYPOTL_H = 0xAF7 + SYS___ILOGBF_B = 0xA7F + SYS___ILOGBF_H = 0xA80 + SYS___ILOGBL_B = 0xA82 + SYS___ILOGBL_H = 0xA83 + SYS___ISBLANK_A = 0xB2E + SYS___ISBLNK = 0x0FE + SYS___ISWBLANK_A = 0xB2F + SYS___LE_CEEGTJS = 0xD72 + SYS___LE_TRACEBACK = 0xB7A + SYS___LGAMMAL_H = 0xA62 + SYS___LGAMMA_B_C99 = 0xB39 + SYS___LGAMMA_H_C99 = 0xB38 + SYS___LGAMMA_R_C99 = 0xB3A + SYS___LLRINTF_B = 0xA88 + SYS___LLRINTF_H = 0xA89 + SYS___LLRINTL_B = 0xA8B + SYS___LLRINTL_H = 0xA8C + SYS___LLRINT_B = 0xA85 + SYS___LLRINT_H = 0xA86 + SYS___LLROUNDF_B = 0xA91 + SYS___LLROUNDF_H = 0xA92 + SYS___LLROUNDL_B = 0xA94 + SYS___LLROUNDL_H = 0xA95 + SYS___LLROUND_B = 0xA8E + SYS___LLROUND_H = 0xA8F + SYS___LOCALE_CTL = 0xD47 + SYS___LOG1PF_H = 0xA60 + SYS___LOG1PL_H = 0xA61 + SYS___LOGBF_B = 0xA97 + SYS___LOGBF_H = 0xA98 + SYS___LOGBL_B = 0xA9A + SYS___LOGBL_H = 0xA9B + SYS___LOGIN_APPLID = 0xCE2 + SYS___LRINTF_B = 0xAA0 + SYS___LRINTF_H = 0xAA1 + SYS___LRINTL_B = 0xAA3 + SYS___LRINTL_H = 0xAA4 + SYS___LRINT_B = 0xA9D + SYS___LRINT_H = 0xA9E + SYS___LROUNDF_FIXUP = 0xB31 + SYS___LROUNDL_B = 0xAA6 + SYS___LROUNDL_H = 0xAA7 + SYS___LROUND_FIXUP = 0xB30 + SYS___MOSERVICES = 0xD3D + SYS___MUST_STAY_CLEAN = 0xB7C + SYS___NANF_B = 0xAAB + SYS___NANL_B = 0xAAD + SYS___NAN_B = 0xAA9 + SYS___NEARBYINTF_B = 0xAB2 + SYS___NEARBYINTF_H = 0xAB3 + SYS___NEARBYINTL_B = 0xAB5 + SYS___NEARBYINTL_H = 0xAB6 + SYS___NEARBYINT_B = 0xAAF + SYS___NEARBYINT_H = 0xAB0 + SYS___NEXTAFTERF_B = 0xAB8 + SYS___NEXTAFTERF_H = 0xAB9 + SYS___NEXTAFTERL_B = 0xABB + SYS___NEXTAFTERL_H = 0xABC + SYS___NEXTTOWARDF_B = 0xAC1 + SYS___NEXTTOWARDF_H = 0xAC2 + SYS___NEXTTOWARDL_B = 0xAC4 + SYS___NEXTTOWARDL_H = 0xAC5 + SYS___NEXTTOWARD_B = 0xABE + SYS___NEXTTOWARD_H = 0xABF + SYS___O_ENV = 0xB7D + SYS___PASSWD_APPLID = 0xCE3 + SYS___PTOD1 = 0xC9E + SYS___PTOD2 = 0xC9F + SYS___PTOD4 = 0xCA0 + SYS___REGCOMP_STD = 0x0EA + SYS___REMAINDERF_H = 0xAC6 + SYS___REMAINDERL_H = 0xAC7 + SYS___REMQUOD128 = 0xC10 + SYS___REMQUOD32 = 0xC0E + SYS___REMQUOD64 = 0xC0F + SYS___REMQUOF_H = 0xAC9 + SYS___REMQUOL_H = 0xACA + SYS___REMQUO_H = 0xAC8 + SYS___RINTF_B = 0xACC + SYS___RINTL_B = 0xACE + SYS___ROUNDF_B = 0xAD3 + SYS___ROUNDF_H = 0xAD4 + SYS___ROUNDL_B = 0xAD6 + SYS___ROUNDL_H = 0xAD7 + SYS___ROUND_B = 0xAD0 + SYS___ROUND_H = 0xAD1 + SYS___SCALBLNF_B = 0xADC + SYS___SCALBLNF_H = 0xADD + SYS___SCALBLNL_B = 0xADF + SYS___SCALBLNL_H = 0xAE0 + SYS___SCALBLN_B = 0xAD9 + SYS___SCALBLN_H = 0xADA + SYS___SCALBNF_B = 0xAE4 + SYS___SCALBNF_H = 0xAE5 + SYS___SCALBNL_B = 0xAE7 + SYS___SCALBNL_H = 0xAE8 + SYS___SCALBN_B = 0xAE1 + SYS___SCALBN_H = 0xAE2 + SYS___SETENV = 0x0C8 + SYS___SINPID128 = 0xC73 + SYS___SINPID32 = 0xC71 + SYS___SINPID64 = 0xC72 + SYS___SMF_RECORD2 = 0xD48 + SYS___STATIC_REINIT = 0xB3D + SYS___TGAMMAF_H_C99 = 0xB79 + SYS___TGAMMAL_H = 0xAE9 + SYS___TGAMMA_H_C99 = 0xB78 + SYS___TOCSNAME2 = 0xC9A + SYS_CEIL = 0x01F + SYS_CHAUDIT = 0x1E0 + SYS_EXP = 0x01A + SYS_FCHAUDIT = 0x1E1 + SYS_FREXP = 0x01D + SYS_GETGROUPSBYNAME = 0x1E2 + SYS_GETPWUID = 0x1A0 + SYS_GETUID = 0x1A1 + SYS_ISATTY = 0x1A3 + SYS_KILL = 0x1A4 + SYS_LDEXP = 0x01E + SYS_LINK = 0x1A5 + SYS_LOG10 = 0x01C + SYS_LSEEK = 0x1A6 + SYS_LSTAT = 0x1A7 + SYS_MKDIR = 0x1A8 + SYS_MKFIFO = 0x1A9 + SYS_MKNOD = 0x1AA + SYS_MODF = 0x01B + SYS_MOUNT = 0x1AB + SYS_OPEN = 0x1AC + SYS_OPENDIR = 0x1AD + SYS_PATHCONF = 0x1AE + SYS_PAUSE = 0x1AF + SYS_PIPE = 0x1B0 + SYS_PTHREAD_ATTR_DESTROY = 0x1E7 + SYS_PTHREAD_ATTR_GETDETACHSTATE = 0x1EB + SYS_PTHREAD_ATTR_GETSTACKSIZE = 0x1E9 + SYS_PTHREAD_ATTR_GETWEIGHT_NP = 0x1ED + SYS_PTHREAD_ATTR_INIT = 0x1E6 + SYS_PTHREAD_ATTR_SETDETACHSTATE = 0x1EA + SYS_PTHREAD_ATTR_SETSTACKSIZE = 0x1E8 + SYS_PTHREAD_ATTR_SETWEIGHT_NP = 0x1EC + SYS_PTHREAD_CANCEL = 0x1EE + SYS_PTHREAD_CLEANUP_POP = 0x1F0 + SYS_PTHREAD_CLEANUP_PUSH = 0x1EF + SYS_PTHREAD_CONDATTR_DESTROY = 0x1F2 + SYS_PTHREAD_CONDATTR_INIT = 0x1F1 + SYS_PTHREAD_COND_BROADCAST = 0x1F6 + SYS_PTHREAD_COND_DESTROY = 0x1F4 + SYS_PTHREAD_COND_INIT = 0x1F3 + SYS_PTHREAD_COND_SIGNAL = 0x1F5 + SYS_PTHREAD_COND_TIMEDWAIT = 0x1F8 + SYS_PTHREAD_COND_WAIT = 0x1F7 + SYS_PTHREAD_CREATE = 0x1F9 + SYS_PTHREAD_DETACH = 0x1FA + SYS_PTHREAD_EQUAL = 0x1FB + SYS_PTHREAD_EXIT = 0x1E4 + SYS_PTHREAD_GETSPECIFIC = 0x1FC + SYS_PTHREAD_JOIN = 0x1FD + SYS_PTHREAD_KEY_CREATE = 0x1FE + SYS_PTHREAD_KILL = 0x1E5 + SYS_PTHREAD_MUTEXATTR_INIT = 0x1FF + SYS_READ = 0x1B2 + SYS_READDIR = 0x1B3 + SYS_READLINK = 0x1B4 + SYS_REWINDDIR = 0x1B5 + SYS_RMDIR = 0x1B6 + SYS_SETEGID = 0x1B7 + SYS_SETEUID = 0x1B8 + SYS_SETGID = 0x1B9 + SYS_SETPGID = 0x1BA + SYS_SETSID = 0x1BB + SYS_SETUID = 0x1BC + SYS_SIGACTION = 0x1BD + SYS_SIGADDSET = 0x1BE + SYS_SIGDELSET = 0x1BF + SYS_SIGEMPTYSET = 0x1C0 + SYS_SIGFILLSET = 0x1C1 + SYS_SIGISMEMBER = 0x1C2 + SYS_SIGLONGJMP = 0x1C3 + SYS_SIGPENDING = 0x1C4 + SYS_SIGPROCMASK = 0x1C5 + SYS_SIGSETJMP = 0x1C6 + SYS_SIGSUSPEND = 0x1C7 + SYS_SIGWAIT = 0x1E3 + SYS_SLEEP = 0x1C8 + SYS_STAT = 0x1C9 + SYS_SYMLINK = 0x1CB + SYS_SYSCONF = 0x1CC + SYS_TCDRAIN = 0x1CD + SYS_TCFLOW = 0x1CE + SYS_TCFLUSH = 0x1CF + SYS_TCGETATTR = 0x1D0 + SYS_TCGETPGRP = 0x1D1 + SYS_TCSENDBREAK = 0x1D2 + SYS_TCSETATTR = 0x1D3 + SYS_TCSETPGRP = 0x1D4 + SYS_TIMES = 0x1D5 + SYS_TTYNAME = 0x1D6 + SYS_TZSET = 0x1D7 + SYS_UMASK = 0x1D8 + SYS_UMOUNT = 0x1D9 + SYS_UNAME = 0x1DA + SYS_UNLINK = 0x1DB + SYS_UTIME = 0x1DC + SYS_WAIT = 0x1DD + SYS_WAITPID = 0x1DE + SYS_WRITE = 0x1DF + SYS_W_GETPSENT = 0x1B1 + SYS_W_IOCTL = 0x1A2 + SYS_W_STATFS = 0x1CA + SYS_A64L = 0x2EF + SYS_BCMP = 0x2B9 + SYS_BCOPY = 0x2BA + SYS_BZERO = 0x2BB + SYS_CATCLOSE = 0x2B6 + SYS_CATGETS = 0x2B7 + SYS_CATOPEN = 0x2B8 + SYS_CRYPT = 0x2AC + SYS_DBM_CLEARERR = 0x2F7 + SYS_DBM_CLOSE = 0x2F8 + SYS_DBM_DELETE = 0x2F9 + SYS_DBM_ERROR = 0x2FA + SYS_DBM_FETCH = 0x2FB + SYS_DBM_FIRSTKEY = 0x2FC + SYS_DBM_NEXTKEY = 0x2FD + SYS_DBM_OPEN = 0x2FE + SYS_DBM_STORE = 0x2FF + SYS_DRAND48 = 0x2B2 + SYS_ENCRYPT = 0x2AD + SYS_ENDUTXENT = 0x2E1 + SYS_ERAND48 = 0x2B3 + SYS_ERF = 0x02C + SYS_ERFC = 0x02D + SYS_FCHDIR = 0x2D9 + SYS_FFS = 0x2BC + SYS_FMTMSG = 0x2E5 + SYS_FSTATVFS = 0x2B4 + SYS_FTIME = 0x2F5 + SYS_GAMMA = 0x02E + SYS_GETDATE = 0x2A6 + SYS_GETPAGESIZE = 0x2D8 + SYS_GETTIMEOFDAY = 0x2F6 + SYS_GETUTXENT = 0x2E0 + SYS_GETUTXID = 0x2E2 + SYS_GETUTXLINE = 0x2E3 + SYS_HCREATE = 0x2C6 + SYS_HDESTROY = 0x2C7 + SYS_HSEARCH = 0x2C8 + SYS_HYPOT = 0x02B + SYS_INDEX = 0x2BD + SYS_INITSTATE = 0x2C2 + SYS_INSQUE = 0x2CF + SYS_ISASCII = 0x2ED + SYS_JRAND48 = 0x2E6 + SYS_L64A = 0x2F0 + SYS_LCONG48 = 0x2EA + SYS_LFIND = 0x2C9 + SYS_LRAND48 = 0x2E7 + SYS_LSEARCH = 0x2CA + SYS_MEMCCPY = 0x2D4 + SYS_MRAND48 = 0x2E8 + SYS_NRAND48 = 0x2E9 + SYS_PCLOSE = 0x2D2 + SYS_POPEN = 0x2D1 + SYS_PUTUTXLINE = 0x2E4 + SYS_RANDOM = 0x2C4 + SYS_REMQUE = 0x2D0 + SYS_RINDEX = 0x2BE + SYS_SEED48 = 0x2EC + SYS_SETKEY = 0x2AE + SYS_SETSTATE = 0x2C3 + SYS_SETUTXENT = 0x2DF + SYS_SRAND48 = 0x2EB + SYS_SRANDOM = 0x2C5 + SYS_STATVFS = 0x2B5 + SYS_STRCASECMP = 0x2BF + SYS_STRDUP = 0x2C0 + SYS_STRNCASECMP = 0x2C1 + SYS_SWAB = 0x2D3 + SYS_TDELETE = 0x2CB + SYS_TFIND = 0x2CC + SYS_TOASCII = 0x2EE + SYS_TSEARCH = 0x2CD + SYS_TWALK = 0x2CE + SYS_UALARM = 0x2F1 + SYS_USLEEP = 0x2F2 + SYS_WAIT3 = 0x2A7 + SYS_WAITID = 0x2A8 + SYS_Y1 = 0x02A + SYS___ATOE = 0x2DB + SYS___ATOE_L = 0x2DC + SYS___CATTRM = 0x2A9 + SYS___CNVBLK = 0x2AF + SYS___CRYTRM = 0x2B0 + SYS___DLGHT = 0x2A1 + SYS___ECRTRM = 0x2B1 + SYS___ETOA = 0x2DD + SYS___ETOA_L = 0x2DE + SYS___GDTRM = 0x2AA + SYS___OCLCK = 0x2DA + SYS___OPARGF = 0x2A2 + SYS___OPERRF = 0x2A5 + SYS___OPINDF = 0x2A4 + SYS___OPOPTF = 0x2A3 + SYS___RNDTRM = 0x2AB + SYS___SRCTRM = 0x2F4 + SYS___TZONE = 0x2A0 + SYS___UTXTRM = 0x2F3 + SYS_ASIN = 0x03E + SYS_ISXDIGIT = 0x03B + SYS_SETLOCAL = 0x03A + SYS_SETLOCALE = 0x03A + SYS_SIN = 0x03F + SYS_TOLOWER = 0x03C + SYS_TOUPPER = 0x03D + SYS_ACCEPT_AND_RECV = 0x4F7 + SYS_ATOL = 0x04E + SYS_CHECKSCH = 0x4BC + SYS_CHECKSCHENV = 0x4BC + SYS_CLEARERR = 0x04C + SYS_CONNECTS = 0x4B5 + SYS_CONNECTSERVER = 0x4B5 + SYS_CONNECTW = 0x4B4 + SYS_CONNECTWORKMGR = 0x4B4 + SYS_CONTINUE = 0x4B3 + SYS_CONTINUEWORKUNIT = 0x4B3 + SYS_COPYSIGN = 0x4C2 + SYS_CREATEWO = 0x4B2 + SYS_CREATEWORKUNIT = 0x4B2 + SYS_DELETEWO = 0x4B9 + SYS_DELETEWORKUNIT = 0x4B9 + SYS_DISCONNE = 0x4B6 + SYS_DISCONNECTSERVER = 0x4B6 + SYS_FEOF = 0x04D + SYS_FERROR = 0x04A + SYS_FINITE = 0x4C8 + SYS_GAMMA_R = 0x4E2 + SYS_JOINWORK = 0x4B7 + SYS_JOINWORKUNIT = 0x4B7 + SYS_LEAVEWOR = 0x4B8 + SYS_LEAVEWORKUNIT = 0x4B8 + SYS_LGAMMA_R = 0x4EB + SYS_MATHERR = 0x4D0 + SYS_PERROR = 0x04F + SYS_QUERYMET = 0x4BA + SYS_QUERYMETRICS = 0x4BA + SYS_QUERYSCH = 0x4BB + SYS_QUERYSCHENV = 0x4BB + SYS_REWIND = 0x04B + SYS_SCALBN = 0x4D4 + SYS_SIGNIFIC = 0x4D5 + SYS_SIGNIFICAND = 0x4D5 + SYS___ACOSH_B = 0x4DA + SYS___ACOS_B = 0x4D9 + SYS___ASINH_B = 0x4BE + SYS___ASIN_B = 0x4DB + SYS___ATAN2_B = 0x4DC + SYS___ATANH_B = 0x4DD + SYS___ATAN_B = 0x4BF + SYS___CBRT_B = 0x4C0 + SYS___CEIL_B = 0x4C1 + SYS___COSH_B = 0x4DE + SYS___COS_B = 0x4C3 + SYS___DGHT = 0x4A8 + SYS___ENVN = 0x4B0 + SYS___ERFC_B = 0x4C5 + SYS___ERF_B = 0x4C4 + SYS___EXPM1_B = 0x4C6 + SYS___EXP_B = 0x4DF + SYS___FABS_B = 0x4C7 + SYS___FLOOR_B = 0x4C9 + SYS___FMOD_B = 0x4E0 + SYS___FP_SETMODE = 0x4F8 + SYS___FREXP_B = 0x4CA + SYS___GAMMA_B = 0x4E1 + SYS___GDRR = 0x4A1 + SYS___HRRNO = 0x4A2 + SYS___HYPOT_B = 0x4E3 + SYS___ILOGB_B = 0x4CB + SYS___ISNAN_B = 0x4CC + SYS___J0_B = 0x4E4 + SYS___J1_B = 0x4E6 + SYS___JN_B = 0x4E8 + SYS___LDEXP_B = 0x4CD + SYS___LGAMMA_B = 0x4EA + SYS___LOG10_B = 0x4ED + SYS___LOG1P_B = 0x4CE + SYS___LOGB_B = 0x4CF + SYS___LOGIN = 0x4F5 + SYS___LOG_B = 0x4EC + SYS___MLOCKALL = 0x4B1 + SYS___MODF_B = 0x4D1 + SYS___NEXTAFTER_B = 0x4D2 + SYS___OPENDIR2 = 0x4F3 + SYS___OPEN_STAT = 0x4F6 + SYS___OPND = 0x4A5 + SYS___OPPT = 0x4A6 + SYS___OPRG = 0x4A3 + SYS___OPRR = 0x4A4 + SYS___PID_AFFINITY = 0x4BD + SYS___POW_B = 0x4EE + SYS___READDIR2 = 0x4F4 + SYS___REMAINDER_B = 0x4EF + SYS___RINT_B = 0x4D3 + SYS___SCALB_B = 0x4F0 + SYS___SIGACTIONSET = 0x4FB + SYS___SIGGM = 0x4A7 + SYS___SINH_B = 0x4F1 + SYS___SIN_B = 0x4D6 + SYS___SQRT_B = 0x4F2 + SYS___TANH_B = 0x4D8 + SYS___TAN_B = 0x4D7 + SYS___TRRNO = 0x4AF + SYS___TZNE = 0x4A9 + SYS___TZZN = 0x4AA + SYS___UCREATE = 0x4FC + SYS___UFREE = 0x4FE + SYS___UHEAPREPORT = 0x4FF + SYS___UMALLOC = 0x4FD + SYS___Y0_B = 0x4E5 + SYS___Y1_B = 0x4E7 + SYS___YN_B = 0x4E9 + SYS_ABORT = 0x05C + SYS_ASCTIME_R = 0x5E0 + SYS_ATEXIT = 0x05D + SYS_CONNECTE = 0x5AE + SYS_CONNECTEXPORTIMPORT = 0x5AE + SYS_CTIME_R = 0x5E1 + SYS_DN_COMP = 0x5DF + SYS_DN_EXPAND = 0x5DD + SYS_DN_SKIPNAME = 0x5DE + SYS_EXIT = 0x05A + SYS_EXPORTWO = 0x5A1 + SYS_EXPORTWORKUNIT = 0x5A1 + SYS_EXTRACTW = 0x5A5 + SYS_EXTRACTWORKUNIT = 0x5A5 + SYS_FSEEKO = 0x5C9 + SYS_FTELLO = 0x5C8 + SYS_GETGRGID_R = 0x5E7 + SYS_GETGRNAM_R = 0x5E8 + SYS_GETLOGIN_R = 0x5E9 + SYS_GETPWNAM_R = 0x5EA + SYS_GETPWUID_R = 0x5EB + SYS_GMTIME_R = 0x5E2 + SYS_IMPORTWO = 0x5A3 + SYS_IMPORTWORKUNIT = 0x5A3 + SYS_INET_NTOP = 0x5D3 + SYS_INET_PTON = 0x5D4 + SYS_LLABS = 0x5CE + SYS_LLDIV = 0x5CB + SYS_LOCALTIME_R = 0x5E3 + SYS_PTHREAD_ATFORK = 0x5ED + SYS_PTHREAD_ATTR_GETDETACHSTATE_U98 = 0x5FB + SYS_PTHREAD_ATTR_GETGUARDSIZE = 0x5EE + SYS_PTHREAD_ATTR_GETSCHEDPARAM = 0x5F9 + SYS_PTHREAD_ATTR_GETSTACKADDR = 0x5EF + SYS_PTHREAD_ATTR_SETDETACHSTATE_U98 = 0x5FC + SYS_PTHREAD_ATTR_SETGUARDSIZE = 0x5F0 + SYS_PTHREAD_ATTR_SETSCHEDPARAM = 0x5FA + SYS_PTHREAD_ATTR_SETSTACKADDR = 0x5F1 + SYS_PTHREAD_CONDATTR_GETPSHARED = 0x5F2 + SYS_PTHREAD_CONDATTR_SETPSHARED = 0x5F3 + SYS_PTHREAD_DETACH_U98 = 0x5FD + SYS_PTHREAD_GETCONCURRENCY = 0x5F4 + SYS_PTHREAD_GETSPECIFIC_U98 = 0x5FE + SYS_PTHREAD_KEY_DELETE = 0x5F5 + SYS_PTHREAD_SETCANCELSTATE = 0x5FF + SYS_PTHREAD_SETCONCURRENCY = 0x5F6 + SYS_PTHREAD_SIGMASK = 0x5F7 + SYS_QUERYENC = 0x5AD + SYS_QUERYWORKUNITCLASSIFICATION = 0x5AD + SYS_RAISE = 0x05E + SYS_RAND_R = 0x5E4 + SYS_READDIR_R = 0x5E6 + SYS_REALLOC = 0x05B + SYS_RES_INIT = 0x5D8 + SYS_RES_MKQUERY = 0x5D7 + SYS_RES_QUERY = 0x5D9 + SYS_RES_QUERYDOMAIN = 0x5DC + SYS_RES_SEARCH = 0x5DA + SYS_RES_SEND = 0x5DB + SYS_SETJMP = 0x05F + SYS_SIGQUEUE = 0x5A9 + SYS_STRTOK_R = 0x5E5 + SYS_STRTOLL = 0x5B0 + SYS_STRTOULL = 0x5B1 + SYS_TTYNAME_R = 0x5EC + SYS_UNDOEXPO = 0x5A2 + SYS_UNDOEXPORTWORKUNIT = 0x5A2 + SYS_UNDOIMPO = 0x5A4 + SYS_UNDOIMPORTWORKUNIT = 0x5A4 + SYS_WCSTOLL = 0x5CC + SYS_WCSTOULL = 0x5CD + SYS___ABORT = 0x05C + SYS___CONSOLE2 = 0x5D2 + SYS___CPL = 0x5A6 + SYS___DISCARDDATA = 0x5F8 + SYS___DSA_PREV = 0x5B2 + SYS___EP_FIND = 0x5B3 + SYS___FP_SWAPMODE = 0x5AF + SYS___GETUSERID = 0x5AB + SYS___GET_CPUID = 0x5B9 + SYS___GET_SYSTEM_SETTINGS = 0x5BA + SYS___IPDOMAINNAME = 0x5AC + SYS___MAP_INIT = 0x5A7 + SYS___MAP_SERVICE = 0x5A8 + SYS___MOUNT = 0x5AA + SYS___MSGRCV_TIMED = 0x5B7 + SYS___RES = 0x5D6 + SYS___SEMOP_TIMED = 0x5B8 + SYS___SERVER_THREADS_QUERY = 0x5B4 + SYS_FPRINTF = 0x06D + SYS_FSCANF = 0x06A + SYS_PRINTF = 0x06F + SYS_SETBUF = 0x06B + SYS_SETVBUF = 0x06C + SYS_SSCANF = 0x06E + SYS___CATGETS_A = 0x6C0 + SYS___CHAUDIT_A = 0x6F4 + SYS___CHMOD_A = 0x6E8 + SYS___COLLATE_INIT_A = 0x6AC + SYS___CREAT_A = 0x6F6 + SYS___CTYPE_INIT_A = 0x6AF + SYS___DLLLOAD_A = 0x6DF + SYS___DLLQUERYFN_A = 0x6E0 + SYS___DLLQUERYVAR_A = 0x6E1 + SYS___E2A_L = 0x6E3 + SYS___EXECLE_A = 0x6A0 + SYS___EXECLP_A = 0x6A4 + SYS___EXECVE_A = 0x6C1 + SYS___EXECVP_A = 0x6C2 + SYS___EXECV_A = 0x6B1 + SYS___FPRINTF_A = 0x6FA + SYS___GETADDRINFO_A = 0x6BF + SYS___GETNAMEINFO_A = 0x6C4 + SYS___GET_WCTYPE_STD_A = 0x6AE + SYS___ICONV_OPEN_A = 0x6DE + SYS___IF_INDEXTONAME_A = 0x6DC + SYS___IF_NAMETOINDEX_A = 0x6DB + SYS___ISWCTYPE_A = 0x6B0 + SYS___IS_WCTYPE_STD_A = 0x6B2 + SYS___LOCALECONV_A = 0x6B8 + SYS___LOCALECONV_STD_A = 0x6B9 + SYS___LOCALE_INIT_A = 0x6B7 + SYS___LSTAT_A = 0x6EE + SYS___LSTAT_O_A = 0x6EF + SYS___MKDIR_A = 0x6E9 + SYS___MKFIFO_A = 0x6EC + SYS___MKNOD_A = 0x6F0 + SYS___MONETARY_INIT_A = 0x6BC + SYS___MOUNT_A = 0x6F1 + SYS___NL_CSINFO_A = 0x6D6 + SYS___NL_LANGINFO_A = 0x6BA + SYS___NL_LNAGINFO_STD_A = 0x6BB + SYS___NL_MONINFO_A = 0x6D7 + SYS___NL_NUMINFO_A = 0x6D8 + SYS___NL_RESPINFO_A = 0x6D9 + SYS___NL_TIMINFO_A = 0x6DA + SYS___NUMERIC_INIT_A = 0x6C6 + SYS___OPEN_A = 0x6F7 + SYS___PRINTF_A = 0x6DD + SYS___RESP_INIT_A = 0x6C7 + SYS___RPMATCH_A = 0x6C8 + SYS___RPMATCH_C_A = 0x6C9 + SYS___RPMATCH_STD_A = 0x6CA + SYS___SETLOCALE_A = 0x6F9 + SYS___SPAWNP_A = 0x6C5 + SYS___SPAWN_A = 0x6C3 + SYS___SPRINTF_A = 0x6FB + SYS___STAT_A = 0x6EA + SYS___STAT_O_A = 0x6EB + SYS___STRCOLL_STD_A = 0x6A1 + SYS___STRFMON_A = 0x6BD + SYS___STRFMON_STD_A = 0x6BE + SYS___STRFTIME_A = 0x6CC + SYS___STRFTIME_STD_A = 0x6CD + SYS___STRPTIME_A = 0x6CE + SYS___STRPTIME_STD_A = 0x6CF + SYS___STRXFRM_A = 0x6A2 + SYS___STRXFRM_C_A = 0x6A3 + SYS___STRXFRM_STD_A = 0x6A5 + SYS___SYNTAX_INIT_A = 0x6D4 + SYS___TIME_INIT_A = 0x6CB + SYS___TOD_INIT_A = 0x6D5 + SYS___TOWLOWER_A = 0x6B3 + SYS___TOWLOWER_STD_A = 0x6B4 + SYS___TOWUPPER_A = 0x6B5 + SYS___TOWUPPER_STD_A = 0x6B6 + SYS___UMOUNT_A = 0x6F2 + SYS___VFPRINTF_A = 0x6FC + SYS___VPRINTF_A = 0x6FD + SYS___VSPRINTF_A = 0x6FE + SYS___VSWPRINTF_A = 0x6FF + SYS___WCSCOLL_A = 0x6A6 + SYS___WCSCOLL_C_A = 0x6A7 + SYS___WCSCOLL_STD_A = 0x6A8 + SYS___WCSFTIME_A = 0x6D0 + SYS___WCSFTIME_STD_A = 0x6D1 + SYS___WCSXFRM_A = 0x6A9 + SYS___WCSXFRM_C_A = 0x6AA + SYS___WCSXFRM_STD_A = 0x6AB + SYS___WCTYPE_A = 0x6AD + SYS___W_GETMNTENT_A = 0x6F5 + SYS_____CCSIDTYPE_A = 0x6E6 + SYS_____CHATTR_A = 0x6E2 + SYS_____CSNAMETYPE_A = 0x6E7 + SYS_____OPEN_STAT_A = 0x6ED + SYS_____SPAWN2_A = 0x6D2 + SYS_____SPAWNP2_A = 0x6D3 + SYS_____TOCCSID_A = 0x6E4 + SYS_____TOCSNAME_A = 0x6E5 + SYS_ACL_FREE = 0x7FF + SYS_ACL_INIT = 0x7FE + SYS_FWIDE = 0x7DF + SYS_FWPRINTF = 0x7D1 + SYS_FWRITE = 0x07E + SYS_FWSCANF = 0x7D5 + SYS_GETCHAR = 0x07B + SYS_GETS = 0x07C + SYS_M_CREATE_LAYOUT = 0x7C9 + SYS_M_DESTROY_LAYOUT = 0x7CA + SYS_M_GETVALUES_LAYOUT = 0x7CB + SYS_M_SETVALUES_LAYOUT = 0x7CC + SYS_M_TRANSFORM_LAYOUT = 0x7CD + SYS_M_WTRANSFORM_LAYOUT = 0x7CE + SYS_PREAD = 0x7C7 + SYS_PUTC = 0x07D + SYS_PUTCHAR = 0x07A + SYS_PUTS = 0x07F + SYS_PWRITE = 0x7C8 + SYS_TOWCTRAN = 0x7D8 + SYS_TOWCTRANS = 0x7D8 + SYS_UNATEXIT = 0x7B5 + SYS_VFWPRINT = 0x7D3 + SYS_VFWPRINTF = 0x7D3 + SYS_VWPRINTF = 0x7D4 + SYS_WCTRANS = 0x7D7 + SYS_WPRINTF = 0x7D2 + SYS_WSCANF = 0x7D6 + SYS___ASCTIME_R_A = 0x7A1 + SYS___BASENAME_A = 0x7DC + SYS___BTOWC_A = 0x7E4 + SYS___CDUMP_A = 0x7B7 + SYS___CEE3DMP_A = 0x7B6 + SYS___CEILF_H = 0x7F4 + SYS___CEILL_H = 0x7F5 + SYS___CEIL_H = 0x7EA + SYS___CRYPT_A = 0x7BE + SYS___CSNAP_A = 0x7B8 + SYS___CTEST_A = 0x7B9 + SYS___CTIME_R_A = 0x7A2 + SYS___CTRACE_A = 0x7BA + SYS___DBM_OPEN_A = 0x7E6 + SYS___DIRNAME_A = 0x7DD + SYS___FABSF_H = 0x7FA + SYS___FABSL_H = 0x7FB + SYS___FABS_H = 0x7ED + SYS___FGETWC_A = 0x7AA + SYS___FGETWS_A = 0x7AD + SYS___FLOORF_H = 0x7F6 + SYS___FLOORL_H = 0x7F7 + SYS___FLOOR_H = 0x7EB + SYS___FPUTWC_A = 0x7A5 + SYS___FPUTWS_A = 0x7A8 + SYS___GETTIMEOFDAY_A = 0x7AE + SYS___GETWCHAR_A = 0x7AC + SYS___GETWC_A = 0x7AB + SYS___GLOB_A = 0x7DE + SYS___GMTIME_A = 0x7AF + SYS___GMTIME_R_A = 0x7B0 + SYS___INET_PTON_A = 0x7BC + SYS___J0_H = 0x7EE + SYS___J1_H = 0x7EF + SYS___JN_H = 0x7F0 + SYS___LOCALTIME_A = 0x7B1 + SYS___LOCALTIME_R_A = 0x7B2 + SYS___MALLOC24 = 0x7FC + SYS___MALLOC31 = 0x7FD + SYS___MKTIME_A = 0x7B3 + SYS___MODFF_H = 0x7F8 + SYS___MODFL_H = 0x7F9 + SYS___MODF_H = 0x7EC + SYS___OPENDIR_A = 0x7C2 + SYS___OSNAME = 0x7E0 + SYS___PUTWCHAR_A = 0x7A7 + SYS___PUTWC_A = 0x7A6 + SYS___READDIR_A = 0x7C3 + SYS___STRTOLL_A = 0x7A3 + SYS___STRTOULL_A = 0x7A4 + SYS___SYSLOG_A = 0x7BD + SYS___TZZNA = 0x7B4 + SYS___UNGETWC_A = 0x7A9 + SYS___UTIME_A = 0x7A0 + SYS___VFPRINTF2_A = 0x7E7 + SYS___VPRINTF2_A = 0x7E8 + SYS___VSPRINTF2_A = 0x7E9 + SYS___VSWPRNTF2_A = 0x7BB + SYS___WCSTOD_A = 0x7D9 + SYS___WCSTOL_A = 0x7DA + SYS___WCSTOUL_A = 0x7DB + SYS___WCTOB_A = 0x7E5 + SYS___Y0_H = 0x7F1 + SYS___Y1_H = 0x7F2 + SYS___YN_H = 0x7F3 + SYS_____OPENDIR2_A = 0x7BF + SYS_____OSNAME_A = 0x7E1 + SYS_____READDIR2_A = 0x7C0 + SYS_DLCLOSE = 0x8DF + SYS_DLERROR = 0x8E0 + SYS_DLOPEN = 0x8DD + SYS_DLSYM = 0x8DE + SYS_FLOCKFILE = 0x8D3 + SYS_FTRYLOCKFILE = 0x8D4 + SYS_FUNLOCKFILE = 0x8D5 + SYS_GETCHAR_UNLOCKED = 0x8D7 + SYS_GETC_UNLOCKED = 0x8D6 + SYS_PUTCHAR_UNLOCKED = 0x8D9 + SYS_PUTC_UNLOCKED = 0x8D8 + SYS_SNPRINTF = 0x8DA + SYS_VSNPRINTF = 0x8DB + SYS_WCSCSPN = 0x08B + SYS_WCSLEN = 0x08C + SYS_WCSNCAT = 0x08D + SYS_WCSNCMP = 0x08A + SYS_WCSNCPY = 0x08F + SYS_WCSSPN = 0x08E + SYS___ABSF_H = 0x8E7 + SYS___ABSL_H = 0x8E8 + SYS___ABS_H = 0x8E6 + SYS___ACOSF_H = 0x8EA + SYS___ACOSH_H = 0x8EC + SYS___ACOSL_H = 0x8EB + SYS___ACOS_H = 0x8E9 + SYS___ASINF_H = 0x8EE + SYS___ASINH_H = 0x8F0 + SYS___ASINL_H = 0x8EF + SYS___ASIN_H = 0x8ED + SYS___ATAN2F_H = 0x8F8 + SYS___ATAN2L_H = 0x8F9 + SYS___ATAN2_H = 0x8F7 + SYS___ATANF_H = 0x8F2 + SYS___ATANHF_H = 0x8F5 + SYS___ATANHL_H = 0x8F6 + SYS___ATANH_H = 0x8F4 + SYS___ATANL_H = 0x8F3 + SYS___ATAN_H = 0x8F1 + SYS___CBRT_H = 0x8FA + SYS___COPYSIGNF_H = 0x8FB + SYS___COPYSIGNL_H = 0x8FC + SYS___COSF_H = 0x8FE + SYS___COSL_H = 0x8FF + SYS___COS_H = 0x8FD + SYS___DLERROR_A = 0x8D2 + SYS___DLOPEN_A = 0x8D0 + SYS___DLSYM_A = 0x8D1 + SYS___GETUTXENT_A = 0x8C6 + SYS___GETUTXID_A = 0x8C7 + SYS___GETUTXLINE_A = 0x8C8 + SYS___ITOA = 0x8AA + SYS___ITOA_A = 0x8B0 + SYS___LE_CONDITION_TOKEN_BUILD = 0x8A5 + SYS___LE_MSG_ADD_INSERT = 0x8A6 + SYS___LE_MSG_GET = 0x8A7 + SYS___LE_MSG_GET_AND_WRITE = 0x8A8 + SYS___LE_MSG_WRITE = 0x8A9 + SYS___LLTOA = 0x8AE + SYS___LLTOA_A = 0x8B4 + SYS___LTOA = 0x8AC + SYS___LTOA_A = 0x8B2 + SYS___PUTCHAR_UNLOCKED_A = 0x8CC + SYS___PUTC_UNLOCKED_A = 0x8CB + SYS___PUTUTXLINE_A = 0x8C9 + SYS___RESET_EXCEPTION_HANDLER = 0x8E3 + SYS___REXEC_A = 0x8C4 + SYS___REXEC_AF_A = 0x8C5 + SYS___SET_EXCEPTION_HANDLER = 0x8E2 + SYS___SNPRINTF_A = 0x8CD + SYS___SUPERKILL = 0x8A4 + SYS___TCGETATTR_A = 0x8A1 + SYS___TCSETATTR_A = 0x8A2 + SYS___ULLTOA = 0x8AF + SYS___ULLTOA_A = 0x8B5 + SYS___ULTOA = 0x8AD + SYS___ULTOA_A = 0x8B3 + SYS___UTOA = 0x8AB + SYS___UTOA_A = 0x8B1 + SYS___VHM_EVENT = 0x8E4 + SYS___VSNPRINTF_A = 0x8CE + SYS_____GETENV_A = 0x8C3 + SYS_____UTMPXNAME_A = 0x8CA + SYS_CACOSH = 0x9A0 + SYS_CACOSHF = 0x9A3 + SYS_CACOSHL = 0x9A6 + SYS_CARG = 0x9A9 + SYS_CARGF = 0x9AC + SYS_CARGL = 0x9AF + SYS_CASIN = 0x9B2 + SYS_CASINF = 0x9B5 + SYS_CASINH = 0x9BB + SYS_CASINHF = 0x9BE + SYS_CASINHL = 0x9C1 + SYS_CASINL = 0x9B8 + SYS_CATAN = 0x9C4 + SYS_CATANF = 0x9C7 + SYS_CATANH = 0x9CD + SYS_CATANHF = 0x9D0 + SYS_CATANHL = 0x9D3 + SYS_CATANL = 0x9CA + SYS_CCOS = 0x9D6 + SYS_CCOSF = 0x9D9 + SYS_CCOSH = 0x9DF + SYS_CCOSHF = 0x9E2 + SYS_CCOSHL = 0x9E5 + SYS_CCOSL = 0x9DC + SYS_CEXP = 0x9E8 + SYS_CEXPF = 0x9EB + SYS_CEXPL = 0x9EE + SYS_CIMAG = 0x9F1 + SYS_CIMAGF = 0x9F4 + SYS_CIMAGL = 0x9F7 + SYS_CLOGF = 0x9FD + SYS_MEMCHR = 0x09B + SYS_MEMCMP = 0x09A + SYS_STRCOLL = 0x09C + SYS_STRNCMP = 0x09D + SYS_STRRCHR = 0x09F + SYS_STRXFRM = 0x09E + SYS___CACOSHF_B = 0x9A4 + SYS___CACOSHF_H = 0x9A5 + SYS___CACOSHL_B = 0x9A7 + SYS___CACOSHL_H = 0x9A8 + SYS___CACOSH_B = 0x9A1 + SYS___CACOSH_H = 0x9A2 + SYS___CARGF_B = 0x9AD + SYS___CARGF_H = 0x9AE + SYS___CARGL_B = 0x9B0 + SYS___CARGL_H = 0x9B1 + SYS___CARG_B = 0x9AA + SYS___CARG_H = 0x9AB + SYS___CASINF_B = 0x9B6 + SYS___CASINF_H = 0x9B7 + SYS___CASINHF_B = 0x9BF + SYS___CASINHF_H = 0x9C0 + SYS___CASINHL_B = 0x9C2 + SYS___CASINHL_H = 0x9C3 + SYS___CASINH_B = 0x9BC + SYS___CASINH_H = 0x9BD + SYS___CASINL_B = 0x9B9 + SYS___CASINL_H = 0x9BA + SYS___CASIN_B = 0x9B3 + SYS___CASIN_H = 0x9B4 + SYS___CATANF_B = 0x9C8 + SYS___CATANF_H = 0x9C9 + SYS___CATANHF_B = 0x9D1 + SYS___CATANHF_H = 0x9D2 + SYS___CATANHL_B = 0x9D4 + SYS___CATANHL_H = 0x9D5 + SYS___CATANH_B = 0x9CE + SYS___CATANH_H = 0x9CF + SYS___CATANL_B = 0x9CB + SYS___CATANL_H = 0x9CC + SYS___CATAN_B = 0x9C5 + SYS___CATAN_H = 0x9C6 + SYS___CCOSF_B = 0x9DA + SYS___CCOSF_H = 0x9DB + SYS___CCOSHF_B = 0x9E3 + SYS___CCOSHF_H = 0x9E4 + SYS___CCOSHL_B = 0x9E6 + SYS___CCOSHL_H = 0x9E7 + SYS___CCOSH_B = 0x9E0 + SYS___CCOSH_H = 0x9E1 + SYS___CCOSL_B = 0x9DD + SYS___CCOSL_H = 0x9DE + SYS___CCOS_B = 0x9D7 + SYS___CCOS_H = 0x9D8 + SYS___CEXPF_B = 0x9EC + SYS___CEXPF_H = 0x9ED + SYS___CEXPL_B = 0x9EF + SYS___CEXPL_H = 0x9F0 + SYS___CEXP_B = 0x9E9 + SYS___CEXP_H = 0x9EA + SYS___CIMAGF_B = 0x9F5 + SYS___CIMAGF_H = 0x9F6 + SYS___CIMAGL_B = 0x9F8 + SYS___CIMAGL_H = 0x9F9 + SYS___CIMAG_B = 0x9F2 + SYS___CIMAG_H = 0x9F3 + SYS___CLOG = 0x9FA + SYS___CLOGF_B = 0x9FE + SYS___CLOGF_H = 0x9FF + SYS___CLOG_B = 0x9FB + SYS___CLOG_H = 0x9FC + SYS_ISWCTYPE = 0x10C + SYS_ISWXDIGI = 0x10A + SYS_ISWXDIGIT = 0x10A + SYS_MBSINIT = 0x10F + SYS_TOWLOWER = 0x10D + SYS_TOWUPPER = 0x10E + SYS_WCTYPE = 0x10B + SYS_WCSSTR = 0x11B + SYS___RPMTCH = 0x11A + SYS_WCSTOD = 0x12E + SYS_WCSTOK = 0x12C + SYS_WCSTOL = 0x12D + SYS_WCSTOUL = 0x12F + SYS_FGETWC = 0x13C + SYS_FGETWS = 0x13D + SYS_FPUTWC = 0x13E + SYS_FPUTWS = 0x13F + SYS_REGERROR = 0x13B + SYS_REGFREE = 0x13A + SYS_COLLEQUIV = 0x14F + SYS_COLLTOSTR = 0x14E + SYS_ISMCCOLLEL = 0x14C + SYS_STRTOCOLL = 0x14D + SYS_DLLFREE = 0x16F + SYS_DLLQUERYFN = 0x16D + SYS_DLLQUERYVAR = 0x16E + SYS_GETMCCOLL = 0x16A + SYS_GETWMCCOLL = 0x16B + SYS___ERR2AD = 0x16C + SYS_CFSETOSPEED = 0x17A + SYS_CHDIR = 0x17B + SYS_CHMOD = 0x17C + SYS_CHOWN = 0x17D + SYS_CLOSE = 0x17E + SYS_CLOSEDIR = 0x17F + SYS_LOG = 0x017 + SYS_COSH = 0x018 + SYS_FCHMOD = 0x18A + SYS_FCHOWN = 0x18B + SYS_FCNTL = 0x18C + SYS_FILENO = 0x18D + SYS_FORK = 0x18E + SYS_FPATHCONF = 0x18F + SYS_GETLOGIN = 0x19A + SYS_GETPGRP = 0x19C + SYS_GETPID = 0x19D + SYS_GETPPID = 0x19E + SYS_GETPWNAM = 0x19F + SYS_TANH = 0x019 + SYS_W_GETMNTENT = 0x19B + SYS_POW = 0x020 + SYS_PTHREAD_SELF = 0x20A + SYS_PTHREAD_SETINTR = 0x20B + SYS_PTHREAD_SETINTRTYPE = 0x20C + SYS_PTHREAD_SETSPECIFIC = 0x20D + SYS_PTHREAD_TESTINTR = 0x20E + SYS_PTHREAD_YIELD = 0x20F + SYS_SQRT = 0x021 + SYS_FLOOR = 0x022 + SYS_J1 = 0x023 + SYS_WCSPBRK = 0x23F + SYS_BSEARCH = 0x24C + SYS_FABS = 0x024 + SYS_GETENV = 0x24A + SYS_LDIV = 0x24D + SYS_SYSTEM = 0x24B + SYS_FMOD = 0x025 + SYS___RETHROW = 0x25F + SYS___THROW = 0x25E + SYS_J0 = 0x026 + SYS_PUTENV = 0x26A + SYS___GETENV = 0x26F + SYS_SEMCTL = 0x27A + SYS_SEMGET = 0x27B + SYS_SEMOP = 0x27C + SYS_SHMAT = 0x27D + SYS_SHMCTL = 0x27E + SYS_SHMDT = 0x27F + SYS_YN = 0x027 + SYS_JN = 0x028 + SYS_SIGALTSTACK = 0x28A + SYS_SIGHOLD = 0x28B + SYS_SIGIGNORE = 0x28C + SYS_SIGINTERRUPT = 0x28D + SYS_SIGPAUSE = 0x28E + SYS_SIGRELSE = 0x28F + SYS_GETOPT = 0x29A + SYS_GETSUBOPT = 0x29D + SYS_LCHOWN = 0x29B + SYS_SETPGRP = 0x29E + SYS_TRUNCATE = 0x29C + SYS_Y0 = 0x029 + SYS___GDERR = 0x29F + SYS_ISALPHA = 0x030 + SYS_VFORK = 0x30F + SYS__LONGJMP = 0x30D + SYS__SETJMP = 0x30E + SYS_GLOB = 0x31A + SYS_GLOBFREE = 0x31B + SYS_ISALNUM = 0x031 + SYS_PUTW = 0x31C + SYS_SEEKDIR = 0x31D + SYS_TELLDIR = 0x31E + SYS_TEMPNAM = 0x31F + SYS_GETTIMEOFDAY_R = 0x32E + SYS_ISLOWER = 0x032 + SYS_LGAMMA = 0x32C + SYS_REMAINDER = 0x32A + SYS_SCALB = 0x32B + SYS_SYNC = 0x32F + SYS_TTYSLOT = 0x32D + SYS_ENDPROTOENT = 0x33A + SYS_ENDSERVENT = 0x33B + SYS_GETHOSTBYADDR = 0x33D + SYS_GETHOSTBYADDR_R = 0x33C + SYS_GETHOSTBYNAME = 0x33F + SYS_GETHOSTBYNAME_R = 0x33E + SYS_ISCNTRL = 0x033 + SYS_GETSERVBYNAME = 0x34A + SYS_GETSERVBYPORT = 0x34B + SYS_GETSERVENT = 0x34C + SYS_GETSOCKNAME = 0x34D + SYS_GETSOCKOPT = 0x34E + SYS_INET_ADDR = 0x34F + SYS_ISDIGIT = 0x034 + SYS_ISGRAPH = 0x035 + SYS_SELECT = 0x35B + SYS_SELECTEX = 0x35C + SYS_SEND = 0x35D + SYS_SENDTO = 0x35F + SYS_CHROOT = 0x36A + SYS_ISNAN = 0x36D + SYS_ISUPPER = 0x036 + SYS_ULIMIT = 0x36C + SYS_UTIMES = 0x36E + SYS_W_STATVFS = 0x36B + SYS___H_ERRNO = 0x36F + SYS_GRANTPT = 0x37A + SYS_ISPRINT = 0x037 + SYS_TCGETSID = 0x37C + SYS_UNLOCKPT = 0x37B + SYS___TCGETCP = 0x37D + SYS___TCSETCP = 0x37E + SYS___TCSETTABLES = 0x37F + SYS_ISPUNCT = 0x038 + SYS_NLIST = 0x38C + SYS___IPDBCS = 0x38D + SYS___IPDSPX = 0x38E + SYS___IPMSGC = 0x38F + SYS___STHOSTENT = 0x38B + SYS___STSERVENT = 0x38A + SYS_ISSPACE = 0x039 + SYS_COS = 0x040 + SYS_T_ALLOC = 0x40A + SYS_T_BIND = 0x40B + SYS_T_CLOSE = 0x40C + SYS_T_CONNECT = 0x40D + SYS_T_ERROR = 0x40E + SYS_T_FREE = 0x40F + SYS_TAN = 0x041 + SYS_T_RCVREL = 0x41A + SYS_T_RCVUDATA = 0x41B + SYS_T_RCVUDERR = 0x41C + SYS_T_SND = 0x41D + SYS_T_SNDDIS = 0x41E + SYS_T_SNDREL = 0x41F + SYS_GETPMSG = 0x42A + SYS_ISASTREAM = 0x42B + SYS_PUTMSG = 0x42C + SYS_PUTPMSG = 0x42D + SYS_SINH = 0x042 + SYS___ISPOSIXON = 0x42E + SYS___OPENMVSREL = 0x42F + SYS_ACOS = 0x043 + SYS_ATAN = 0x044 + SYS_ATAN2 = 0x045 + SYS_FTELL = 0x046 + SYS_FGETPOS = 0x047 + SYS_SOCK_DEBUG = 0x47A + SYS_SOCK_DO_TESTSTOR = 0x47D + SYS_TAKESOCKET = 0x47E + SYS___SERVER_INIT = 0x47F + SYS_FSEEK = 0x048 + SYS___IPHOST = 0x48B + SYS___IPNODE = 0x48C + SYS___SERVER_CLASSIFY_CREATE = 0x48D + SYS___SERVER_CLASSIFY_DESTROY = 0x48E + SYS___SERVER_CLASSIFY_RESET = 0x48F + SYS___SMF_RECORD = 0x48A + SYS_FSETPOS = 0x049 + SYS___FNWSA = 0x49B + SYS___SPAWN2 = 0x49D + SYS___SPAWNP2 = 0x49E + SYS_ATOF = 0x050 + SYS_PTHREAD_MUTEXATTR_GETPSHARED = 0x50A + SYS_PTHREAD_MUTEXATTR_SETPSHARED = 0x50B + SYS_PTHREAD_RWLOCK_DESTROY = 0x50C + SYS_PTHREAD_RWLOCK_INIT = 0x50D + SYS_PTHREAD_RWLOCK_RDLOCK = 0x50E + SYS_PTHREAD_RWLOCK_TRYRDLOCK = 0x50F + SYS_ATOI = 0x051 + SYS___FP_CLASS = 0x51D + SYS___FP_CLR_FLAG = 0x51A + SYS___FP_FINITE = 0x51E + SYS___FP_ISNAN = 0x51F + SYS___FP_RAISE_XCP = 0x51C + SYS___FP_READ_FLAG = 0x51B + SYS_RAND = 0x052 + SYS_SIGTIMEDWAIT = 0x52D + SYS_SIGWAITINFO = 0x52E + SYS___CHKBFP = 0x52F + SYS___FPC_RS = 0x52C + SYS___FPC_RW = 0x52A + SYS___FPC_SM = 0x52B + SYS_STRTOD = 0x053 + SYS_STRTOL = 0x054 + SYS_STRTOUL = 0x055 + SYS_MALLOC = 0x056 + SYS_SRAND = 0x057 + SYS_CALLOC = 0x058 + SYS_FREE = 0x059 + SYS___OSENV = 0x59F + SYS___W_PIOCTL = 0x59E + SYS_LONGJMP = 0x060 + SYS___FLOORF_B = 0x60A + SYS___FLOORL_B = 0x60B + SYS___FREXPF_B = 0x60C + SYS___FREXPL_B = 0x60D + SYS___LDEXPF_B = 0x60E + SYS___LDEXPL_B = 0x60F + SYS_SIGNAL = 0x061 + SYS___ATAN2F_B = 0x61A + SYS___ATAN2L_B = 0x61B + SYS___COSHF_B = 0x61C + SYS___COSHL_B = 0x61D + SYS___EXPF_B = 0x61E + SYS___EXPL_B = 0x61F + SYS_TMPNAM = 0x062 + SYS___ABSF_B = 0x62A + SYS___ABSL_B = 0x62C + SYS___ABS_B = 0x62B + SYS___FMODF_B = 0x62D + SYS___FMODL_B = 0x62E + SYS___MODFF_B = 0x62F + SYS_ATANL = 0x63A + SYS_CEILF = 0x63B + SYS_CEILL = 0x63C + SYS_COSF = 0x63D + SYS_COSHF = 0x63F + SYS_COSL = 0x63E + SYS_REMOVE = 0x063 + SYS_POWL = 0x64A + SYS_RENAME = 0x064 + SYS_SINF = 0x64B + SYS_SINHF = 0x64F + SYS_SINL = 0x64C + SYS_SQRTF = 0x64D + SYS_SQRTL = 0x64E + SYS_BTOWC = 0x65F + SYS_FREXPL = 0x65A + SYS_LDEXPF = 0x65B + SYS_LDEXPL = 0x65C + SYS_MODFF = 0x65D + SYS_MODFL = 0x65E + SYS_TMPFILE = 0x065 + SYS_FREOPEN = 0x066 + SYS___CHARMAP_INIT_A = 0x66E + SYS___GETHOSTBYADDR_R_A = 0x66C + SYS___GETHOSTBYNAME_A = 0x66A + SYS___GETHOSTBYNAME_R_A = 0x66D + SYS___MBLEN_A = 0x66F + SYS___RES_INIT_A = 0x66B + SYS_FCLOSE = 0x067 + SYS___GETGRGID_R_A = 0x67D + SYS___WCSTOMBS_A = 0x67A + SYS___WCSTOMBS_STD_A = 0x67B + SYS___WCSWIDTH_A = 0x67C + SYS___WCSWIDTH_ASIA = 0x67F + SYS___WCSWIDTH_STD_A = 0x67E + SYS_FFLUSH = 0x068 + SYS___GETLOGIN_R_A = 0x68E + SYS___GETPWNAM_R_A = 0x68C + SYS___GETPWUID_R_A = 0x68D + SYS___TTYNAME_R_A = 0x68F + SYS___WCWIDTH_ASIA = 0x68B + SYS___WCWIDTH_STD_A = 0x68A + SYS_FOPEN = 0x069 + SYS___REGEXEC_A = 0x69A + SYS___REGEXEC_STD_A = 0x69B + SYS___REGFREE_A = 0x69C + SYS___REGFREE_STD_A = 0x69D + SYS___STRCOLL_A = 0x69E + SYS___STRCOLL_C_A = 0x69F + SYS_SCANF = 0x070 + SYS___A64L_A = 0x70C + SYS___ECVT_A = 0x70D + SYS___FCVT_A = 0x70E + SYS___GCVT_A = 0x70F + SYS___STRTOUL_A = 0x70A + SYS_____AE_CORRESTBL_QUERY_A = 0x70B + SYS_SPRINTF = 0x071 + SYS___ACCESS_A = 0x71F + SYS___CATOPEN_A = 0x71E + SYS___GETOPT_A = 0x71D + SYS___REALPATH_A = 0x71A + SYS___SETENV_A = 0x71B + SYS___SYSTEM_A = 0x71C + SYS_FGETC = 0x072 + SYS___GAI_STRERROR_A = 0x72F + SYS___RMDIR_A = 0x72A + SYS___STATVFS_A = 0x72B + SYS___SYMLINK_A = 0x72C + SYS___TRUNCATE_A = 0x72D + SYS___UNLINK_A = 0x72E + SYS_VFPRINTF = 0x073 + SYS___ISSPACE_A = 0x73A + SYS___ISUPPER_A = 0x73B + SYS___ISWALNUM_A = 0x73F + SYS___ISXDIGIT_A = 0x73C + SYS___TOLOWER_A = 0x73D + SYS___TOUPPER_A = 0x73E + SYS_VPRINTF = 0x074 + SYS___CONFSTR_A = 0x74B + SYS___FDOPEN_A = 0x74E + SYS___FLDATA_A = 0x74F + SYS___FTOK_A = 0x74C + SYS___ISWXDIGIT_A = 0x74A + SYS___MKTEMP_A = 0x74D + SYS_VSPRINTF = 0x075 + SYS___GETGRGID_A = 0x75A + SYS___GETGRNAM_A = 0x75B + SYS___GETGROUPSBYNAME_A = 0x75C + SYS___GETHOSTENT_A = 0x75D + SYS___GETHOSTNAME_A = 0x75E + SYS___GETLOGIN_A = 0x75F + SYS_GETC = 0x076 + SYS___CREATEWORKUNIT_A = 0x76A + SYS___CTERMID_A = 0x76B + SYS___FMTMSG_A = 0x76C + SYS___INITGROUPS_A = 0x76D + SYS___MSGRCV_A = 0x76F + SYS_____LOGIN_A = 0x76E + SYS_FGETS = 0x077 + SYS___STRCASECMP_A = 0x77B + SYS___STRNCASECMP_A = 0x77C + SYS___TTYNAME_A = 0x77D + SYS___UNAME_A = 0x77E + SYS___UTIMES_A = 0x77F + SYS_____SERVER_PWU_A = 0x77A + SYS_FPUTC = 0x078 + SYS___CREAT_O_A = 0x78E + SYS___ENVNA = 0x78F + SYS___FREAD_A = 0x78A + SYS___FWRITE_A = 0x78B + SYS___ISASCII = 0x78D + SYS___OPEN_O_A = 0x78C + SYS_FPUTS = 0x079 + SYS___ASCTIME_A = 0x79C + SYS___CTIME_A = 0x79D + SYS___GETDATE_A = 0x79E + SYS___GETSERVBYPORT_A = 0x79A + SYS___GETSERVENT_A = 0x79B + SYS___TZSET_A = 0x79F + SYS_ACL_FROM_TEXT = 0x80C + SYS_ACL_SET_FD = 0x80A + SYS_ACL_SET_FILE = 0x80B + SYS_ACL_SORT = 0x80E + SYS_ACL_TO_TEXT = 0x80D + SYS_UNGETC = 0x080 + SYS___SHUTDOWN_REGISTRATION = 0x80F + SYS_FREAD = 0x081 + SYS_FREEADDRINFO = 0x81A + SYS_GAI_STRERROR = 0x81B + SYS_REXEC_AF = 0x81C + SYS___DYNALLOC_A = 0x81F + SYS___POE = 0x81D + SYS_WCSTOMBS = 0x082 + SYS___INET_ADDR_A = 0x82F + SYS___NLIST_A = 0x82A + SYS_____TCGETCP_A = 0x82B + SYS_____TCSETCP_A = 0x82C + SYS_____W_PIOCTL_A = 0x82E + SYS_MBTOWC = 0x083 + SYS___CABEND = 0x83D + SYS___LE_CIB_GET = 0x83E + SYS___RECVMSG_A = 0x83B + SYS___SENDMSG_A = 0x83A + SYS___SET_LAA_FOR_JIT = 0x83F + SYS_____LCHATTR_A = 0x83C + SYS_WCTOMB = 0x084 + SYS___CBRTL_B = 0x84A + SYS___COPYSIGNF_B = 0x84B + SYS___COPYSIGNL_B = 0x84C + SYS___COTANF_B = 0x84D + SYS___COTANL_B = 0x84F + SYS___COTAN_B = 0x84E + SYS_MBSTOWCS = 0x085 + SYS___LOG1PL_B = 0x85A + SYS___LOG2F_B = 0x85B + SYS___LOG2L_B = 0x85D + SYS___LOG2_B = 0x85C + SYS___REMAINDERF_B = 0x85E + SYS___REMAINDERL_B = 0x85F + SYS_ACOSHF = 0x86E + SYS_ACOSHL = 0x86F + SYS_WCSCPY = 0x086 + SYS___ERFCF_B = 0x86D + SYS___ERFF_B = 0x86C + SYS___LROUNDF_B = 0x86A + SYS___LROUND_B = 0x86B + SYS_COTANL = 0x87A + SYS_EXP2F = 0x87B + SYS_EXP2L = 0x87C + SYS_EXPM1F = 0x87D + SYS_EXPM1L = 0x87E + SYS_FDIMF = 0x87F + SYS_WCSCAT = 0x087 + SYS___COTANL = 0x87A + SYS_REMAINDERF = 0x88A + SYS_REMAINDERL = 0x88B + SYS_REMAINDF = 0x88A + SYS_REMAINDL = 0x88B + SYS_REMQUO = 0x88D + SYS_REMQUOF = 0x88C + SYS_REMQUOL = 0x88E + SYS_TGAMMAF = 0x88F + SYS_WCSCHR = 0x088 + SYS_ERFCF = 0x89B + SYS_ERFCL = 0x89C + SYS_ERFL = 0x89A + SYS_EXP2 = 0x89E + SYS_WCSCMP = 0x089 + SYS___EXP2_B = 0x89D + SYS___FAR_JUMP = 0x89F + SYS_ABS = 0x090 + SYS___ERFCL_H = 0x90A + SYS___EXPF_H = 0x90C + SYS___EXPL_H = 0x90D + SYS___EXPM1_H = 0x90E + SYS___EXP_H = 0x90B + SYS___FDIM_H = 0x90F + SYS_DIV = 0x091 + SYS___LOG2F_H = 0x91F + SYS___LOG2_H = 0x91E + SYS___LOGB_H = 0x91D + SYS___LOGF_H = 0x91B + SYS___LOGL_H = 0x91C + SYS___LOG_H = 0x91A + SYS_LABS = 0x092 + SYS___POWL_H = 0x92A + SYS___REMAINDER_H = 0x92B + SYS___RINT_H = 0x92C + SYS___SCALB_H = 0x92D + SYS___SINF_H = 0x92F + SYS___SIN_H = 0x92E + SYS_STRNCPY = 0x093 + SYS___TANHF_H = 0x93B + SYS___TANHL_H = 0x93C + SYS___TANH_H = 0x93A + SYS___TGAMMAF_H = 0x93E + SYS___TGAMMA_H = 0x93D + SYS___TRUNC_H = 0x93F + SYS_MEMCPY = 0x094 + SYS_VFWSCANF = 0x94A + SYS_VSWSCANF = 0x94E + SYS_VWSCANF = 0x94C + SYS_INET6_RTH_ADD = 0x95D + SYS_INET6_RTH_INIT = 0x95C + SYS_INET6_RTH_REVERSE = 0x95E + SYS_INET6_RTH_SEGMENTS = 0x95F + SYS_INET6_RTH_SPACE = 0x95B + SYS_MEMMOVE = 0x095 + SYS_WCSTOLD = 0x95A + SYS_STRCPY = 0x096 + SYS_STRCMP = 0x097 + SYS_CABS = 0x98E + SYS_STRCAT = 0x098 + SYS___CABS_B = 0x98F + SYS___POW_II = 0x98A + SYS___POW_II_B = 0x98B + SYS___POW_II_H = 0x98C + SYS_CACOSF = 0x99A + SYS_CACOSL = 0x99D + SYS_STRNCAT = 0x099 + SYS___CACOSF_B = 0x99B + SYS___CACOSF_H = 0x99C + SYS___CACOSL_B = 0x99E + SYS___CACOSL_H = 0x99F + SYS_ISWALPHA = 0x100 + SYS_ISWBLANK = 0x101 + SYS___ISWBLK = 0x101 + SYS_ISWCNTRL = 0x102 + SYS_ISWDIGIT = 0x103 + SYS_ISWGRAPH = 0x104 + SYS_ISWLOWER = 0x105 + SYS_ISWPRINT = 0x106 + SYS_ISWPUNCT = 0x107 + SYS_ISWSPACE = 0x108 + SYS_ISWUPPER = 0x109 + SYS_WCTOB = 0x110 + SYS_MBRLEN = 0x111 + SYS_MBRTOWC = 0x112 + SYS_MBSRTOWC = 0x113 + SYS_MBSRTOWCS = 0x113 + SYS_WCRTOMB = 0x114 + SYS_WCSRTOMB = 0x115 + SYS_WCSRTOMBS = 0x115 + SYS___CSID = 0x116 + SYS___WCSID = 0x117 + SYS_STRPTIME = 0x118 + SYS___STRPTM = 0x118 + SYS_STRFMON = 0x119 + SYS_WCSCOLL = 0x130 + SYS_WCSXFRM = 0x131 + SYS_WCSWIDTH = 0x132 + SYS_WCWIDTH = 0x133 + SYS_WCSFTIME = 0x134 + SYS_SWPRINTF = 0x135 + SYS_VSWPRINT = 0x136 + SYS_VSWPRINTF = 0x136 + SYS_SWSCANF = 0x137 + SYS_REGCOMP = 0x138 + SYS_REGEXEC = 0x139 + SYS_GETWC = 0x140 + SYS_GETWCHAR = 0x141 + SYS_PUTWC = 0x142 + SYS_PUTWCHAR = 0x143 + SYS_UNGETWC = 0x144 + SYS_ICONV_OPEN = 0x145 + SYS_ICONV = 0x146 + SYS_ICONV_CLOSE = 0x147 + SYS_COLLRANGE = 0x150 + SYS_CCLASS = 0x151 + SYS_COLLORDER = 0x152 + SYS___DEMANGLE = 0x154 + SYS_FDOPEN = 0x155 + SYS___ERRNO = 0x156 + SYS___ERRNO2 = 0x157 + SYS___TERROR = 0x158 + SYS_MAXCOLL = 0x169 + SYS_DLLLOAD = 0x170 + SYS__EXIT = 0x174 + SYS_ACCESS = 0x175 + SYS_ALARM = 0x176 + SYS_CFGETISPEED = 0x177 + SYS_CFGETOSPEED = 0x178 + SYS_CFSETISPEED = 0x179 + SYS_CREAT = 0x180 + SYS_CTERMID = 0x181 + SYS_DUP = 0x182 + SYS_DUP2 = 0x183 + SYS_EXECL = 0x184 + SYS_EXECLE = 0x185 + SYS_EXECLP = 0x186 + SYS_EXECV = 0x187 + SYS_EXECVE = 0x188 + SYS_EXECVP = 0x189 + SYS_FSTAT = 0x190 + SYS_FSYNC = 0x191 + SYS_FTRUNCATE = 0x192 + SYS_GETCWD = 0x193 + SYS_GETEGID = 0x194 + SYS_GETEUID = 0x195 + SYS_GETGID = 0x196 + SYS_GETGRGID = 0x197 + SYS_GETGRNAM = 0x198 + SYS_GETGROUPS = 0x199 + SYS_PTHREAD_MUTEXATTR_DESTROY = 0x200 + SYS_PTHREAD_MUTEXATTR_SETKIND_NP = 0x201 + SYS_PTHREAD_MUTEXATTR_GETKIND_NP = 0x202 + SYS_PTHREAD_MUTEX_INIT = 0x203 + SYS_PTHREAD_MUTEX_DESTROY = 0x204 + SYS_PTHREAD_MUTEX_LOCK = 0x205 + SYS_PTHREAD_MUTEX_TRYLOCK = 0x206 + SYS_PTHREAD_MUTEX_UNLOCK = 0x207 + SYS_PTHREAD_ONCE = 0x209 + SYS_TW_OPEN = 0x210 + SYS_TW_FCNTL = 0x211 + SYS_PTHREAD_JOIN_D4_NP = 0x212 + SYS_PTHREAD_CONDATTR_SETKIND_NP = 0x213 + SYS_PTHREAD_CONDATTR_GETKIND_NP = 0x214 + SYS_EXTLINK_NP = 0x215 + SYS___PASSWD = 0x216 + SYS_SETGROUPS = 0x217 + SYS_INITGROUPS = 0x218 + SYS_WCSRCHR = 0x240 + SYS_SVC99 = 0x241 + SYS___SVC99 = 0x241 + SYS_WCSWCS = 0x242 + SYS_LOCALECO = 0x243 + SYS_LOCALECONV = 0x243 + SYS___LIBREL = 0x244 + SYS_RELEASE = 0x245 + SYS___RLSE = 0x245 + SYS_FLOCATE = 0x246 + SYS___FLOCT = 0x246 + SYS_FDELREC = 0x247 + SYS___FDLREC = 0x247 + SYS_FETCH = 0x248 + SYS___FETCH = 0x248 + SYS_QSORT = 0x249 + SYS___CLEANUPCATCH = 0x260 + SYS___CATCHMATCH = 0x261 + SYS___CLEAN2UPCATCH = 0x262 + SYS_GETPRIORITY = 0x270 + SYS_NICE = 0x271 + SYS_SETPRIORITY = 0x272 + SYS_GETITIMER = 0x273 + SYS_SETITIMER = 0x274 + SYS_MSGCTL = 0x275 + SYS_MSGGET = 0x276 + SYS_MSGRCV = 0x277 + SYS_MSGSND = 0x278 + SYS_MSGXRCV = 0x279 + SYS___MSGXR = 0x279 + SYS_SHMGET = 0x280 + SYS___GETIPC = 0x281 + SYS_SETGRENT = 0x282 + SYS_GETGRENT = 0x283 + SYS_ENDGRENT = 0x284 + SYS_SETPWENT = 0x285 + SYS_GETPWENT = 0x286 + SYS_ENDPWENT = 0x287 + SYS_BSD_SIGNAL = 0x288 + SYS_KILLPG = 0x289 + SYS_SIGSET = 0x290 + SYS_SIGSTACK = 0x291 + SYS_GETRLIMIT = 0x292 + SYS_SETRLIMIT = 0x293 + SYS_GETRUSAGE = 0x294 + SYS_MMAP = 0x295 + SYS_MPROTECT = 0x296 + SYS_MSYNC = 0x297 + SYS_MUNMAP = 0x298 + SYS_CONFSTR = 0x299 + SYS___NDMTRM = 0x300 + SYS_FTOK = 0x301 + SYS_BASENAME = 0x302 + SYS_DIRNAME = 0x303 + SYS_GETDTABLESIZE = 0x304 + SYS_MKSTEMP = 0x305 + SYS_MKTEMP = 0x306 + SYS_NFTW = 0x307 + SYS_GETWD = 0x308 + SYS_LOCKF = 0x309 + SYS_WORDEXP = 0x310 + SYS_WORDFREE = 0x311 + SYS_GETPGID = 0x312 + SYS_GETSID = 0x313 + SYS___UTMPXNAME = 0x314 + SYS_CUSERID = 0x315 + SYS_GETPASS = 0x316 + SYS_FNMATCH = 0x317 + SYS_FTW = 0x318 + SYS_GETW = 0x319 + SYS_ACOSH = 0x320 + SYS_ASINH = 0x321 + SYS_ATANH = 0x322 + SYS_CBRT = 0x323 + SYS_EXPM1 = 0x324 + SYS_ILOGB = 0x325 + SYS_LOGB = 0x326 + SYS_LOG1P = 0x327 + SYS_NEXTAFTER = 0x328 + SYS_RINT = 0x329 + SYS_SPAWN = 0x330 + SYS_SPAWNP = 0x331 + SYS_GETLOGIN_UU = 0x332 + SYS_ECVT = 0x333 + SYS_FCVT = 0x334 + SYS_GCVT = 0x335 + SYS_ACCEPT = 0x336 + SYS_BIND = 0x337 + SYS_CONNECT = 0x338 + SYS_ENDHOSTENT = 0x339 + SYS_GETHOSTENT = 0x340 + SYS_GETHOSTID = 0x341 + SYS_GETHOSTNAME = 0x342 + SYS_GETNETBYADDR = 0x343 + SYS_GETNETBYNAME = 0x344 + SYS_GETNETENT = 0x345 + SYS_GETPEERNAME = 0x346 + SYS_GETPROTOBYNAME = 0x347 + SYS_GETPROTOBYNUMBER = 0x348 + SYS_GETPROTOENT = 0x349 + SYS_INET_LNAOF = 0x350 + SYS_INET_MAKEADDR = 0x351 + SYS_INET_NETOF = 0x352 + SYS_INET_NETWORK = 0x353 + SYS_INET_NTOA = 0x354 + SYS_IOCTL = 0x355 + SYS_LISTEN = 0x356 + SYS_READV = 0x357 + SYS_RECV = 0x358 + SYS_RECVFROM = 0x359 + SYS_SETHOSTENT = 0x360 + SYS_SETNETENT = 0x361 + SYS_SETPEER = 0x362 + SYS_SETPROTOENT = 0x363 + SYS_SETSERVENT = 0x364 + SYS_SETSOCKOPT = 0x365 + SYS_SHUTDOWN = 0x366 + SYS_SOCKET = 0x367 + SYS_SOCKETPAIR = 0x368 + SYS_WRITEV = 0x369 + SYS_ENDNETENT = 0x370 + SYS_CLOSELOG = 0x371 + SYS_OPENLOG = 0x372 + SYS_SETLOGMASK = 0x373 + SYS_SYSLOG = 0x374 + SYS_PTSNAME = 0x375 + SYS_SETREUID = 0x376 + SYS_SETREGID = 0x377 + SYS_REALPATH = 0x378 + SYS___SIGNGAM = 0x379 + SYS_POLL = 0x380 + SYS_REXEC = 0x381 + SYS___ISASCII2 = 0x382 + SYS___TOASCII2 = 0x383 + SYS_CHPRIORITY = 0x384 + SYS_PTHREAD_ATTR_SETSYNCTYPE_NP = 0x385 + SYS_PTHREAD_ATTR_GETSYNCTYPE_NP = 0x386 + SYS_PTHREAD_SET_LIMIT_NP = 0x387 + SYS___STNETENT = 0x388 + SYS___STPROTOENT = 0x389 + SYS___SELECT1 = 0x390 + SYS_PTHREAD_SECURITY_NP = 0x391 + SYS___CHECK_RESOURCE_AUTH_NP = 0x392 + SYS___CONVERT_ID_NP = 0x393 + SYS___OPENVMREL = 0x394 + SYS_WMEMCHR = 0x395 + SYS_WMEMCMP = 0x396 + SYS_WMEMCPY = 0x397 + SYS_WMEMMOVE = 0x398 + SYS_WMEMSET = 0x399 + SYS___FPUTWC = 0x400 + SYS___PUTWC = 0x401 + SYS___PWCHAR = 0x402 + SYS___WCSFTM = 0x403 + SYS___WCSTOK = 0x404 + SYS___WCWDTH = 0x405 + SYS_T_ACCEPT = 0x409 + SYS_T_GETINFO = 0x410 + SYS_T_GETPROTADDR = 0x411 + SYS_T_GETSTATE = 0x412 + SYS_T_LISTEN = 0x413 + SYS_T_LOOK = 0x414 + SYS_T_OPEN = 0x415 + SYS_T_OPTMGMT = 0x416 + SYS_T_RCV = 0x417 + SYS_T_RCVCONNECT = 0x418 + SYS_T_RCVDIS = 0x419 + SYS_T_SNDUDATA = 0x420 + SYS_T_STRERROR = 0x421 + SYS_T_SYNC = 0x422 + SYS_T_UNBIND = 0x423 + SYS___T_ERRNO = 0x424 + SYS___RECVMSG2 = 0x425 + SYS___SENDMSG2 = 0x426 + SYS_FATTACH = 0x427 + SYS_FDETACH = 0x428 + SYS_GETMSG = 0x429 + SYS_GETCONTEXT = 0x430 + SYS_SETCONTEXT = 0x431 + SYS_MAKECONTEXT = 0x432 + SYS_SWAPCONTEXT = 0x433 + SYS_PTHREAD_GETSPECIFIC_D8_NP = 0x434 + SYS_GETCLIENTID = 0x470 + SYS___GETCLIENTID = 0x471 + SYS_GETSTABLESIZE = 0x472 + SYS_GETIBMOPT = 0x473 + SYS_GETIBMSOCKOPT = 0x474 + SYS_GIVESOCKET = 0x475 + SYS_IBMSFLUSH = 0x476 + SYS_MAXDESC = 0x477 + SYS_SETIBMOPT = 0x478 + SYS_SETIBMSOCKOPT = 0x479 + SYS___SERVER_PWU = 0x480 + SYS_PTHREAD_TAG_NP = 0x481 + SYS___CONSOLE = 0x482 + SYS___WSINIT = 0x483 + SYS___IPTCPN = 0x489 + SYS___SERVER_CLASSIFY = 0x490 + SYS___HEAPRPT = 0x496 + SYS___ISBFP = 0x500 + SYS___FP_CAST = 0x501 + SYS___CERTIFICATE = 0x502 + SYS_SEND_FILE = 0x503 + SYS_AIO_CANCEL = 0x504 + SYS_AIO_ERROR = 0x505 + SYS_AIO_READ = 0x506 + SYS_AIO_RETURN = 0x507 + SYS_AIO_SUSPEND = 0x508 + SYS_AIO_WRITE = 0x509 + SYS_PTHREAD_RWLOCK_TRYWRLOCK = 0x510 + SYS_PTHREAD_RWLOCK_UNLOCK = 0x511 + SYS_PTHREAD_RWLOCK_WRLOCK = 0x512 + SYS_PTHREAD_RWLOCKATTR_GETPSHARED = 0x513 + SYS_PTHREAD_RWLOCKATTR_SETPSHARED = 0x514 + SYS_PTHREAD_RWLOCKATTR_INIT = 0x515 + SYS_PTHREAD_RWLOCKATTR_DESTROY = 0x516 + SYS___CTTBL = 0x517 + SYS_PTHREAD_MUTEXATTR_SETTYPE = 0x518 + SYS_PTHREAD_MUTEXATTR_GETTYPE = 0x519 + SYS___FP_UNORDERED = 0x520 + SYS___FP_READ_RND = 0x521 + SYS___FP_READ_RND_B = 0x522 + SYS___FP_SWAP_RND = 0x523 + SYS___FP_SWAP_RND_B = 0x524 + SYS___FP_LEVEL = 0x525 + SYS___FP_BTOH = 0x526 + SYS___FP_HTOB = 0x527 + SYS___FPC_RD = 0x528 + SYS___FPC_WR = 0x529 + SYS_PTHREAD_SETCANCELTYPE = 0x600 + SYS_PTHREAD_TESTCANCEL = 0x601 + SYS___ATANF_B = 0x602 + SYS___ATANL_B = 0x603 + SYS___CEILF_B = 0x604 + SYS___CEILL_B = 0x605 + SYS___COSF_B = 0x606 + SYS___COSL_B = 0x607 + SYS___FABSF_B = 0x608 + SYS___FABSL_B = 0x609 + SYS___SINF_B = 0x610 + SYS___SINL_B = 0x611 + SYS___TANF_B = 0x612 + SYS___TANL_B = 0x613 + SYS___TANHF_B = 0x614 + SYS___TANHL_B = 0x615 + SYS___ACOSF_B = 0x616 + SYS___ACOSL_B = 0x617 + SYS___ASINF_B = 0x618 + SYS___ASINL_B = 0x619 + SYS___LOGF_B = 0x620 + SYS___LOGL_B = 0x621 + SYS___LOG10F_B = 0x622 + SYS___LOG10L_B = 0x623 + SYS___POWF_B = 0x624 + SYS___POWL_B = 0x625 + SYS___SINHF_B = 0x626 + SYS___SINHL_B = 0x627 + SYS___SQRTF_B = 0x628 + SYS___SQRTL_B = 0x629 + SYS___MODFL_B = 0x630 + SYS_ABSF = 0x631 + SYS_ABSL = 0x632 + SYS_ACOSF = 0x633 + SYS_ACOSL = 0x634 + SYS_ASINF = 0x635 + SYS_ASINL = 0x636 + SYS_ATAN2F = 0x637 + SYS_ATAN2L = 0x638 + SYS_ATANF = 0x639 + SYS_COSHL = 0x640 + SYS_EXPF = 0x641 + SYS_EXPL = 0x642 + SYS_TANHF = 0x643 + SYS_TANHL = 0x644 + SYS_LOG10F = 0x645 + SYS_LOG10L = 0x646 + SYS_LOGF = 0x647 + SYS_LOGL = 0x648 + SYS_POWF = 0x649 + SYS_SINHL = 0x650 + SYS_TANF = 0x651 + SYS_TANL = 0x652 + SYS_FABSF = 0x653 + SYS_FABSL = 0x654 + SYS_FLOORF = 0x655 + SYS_FLOORL = 0x656 + SYS_FMODF = 0x657 + SYS_FMODL = 0x658 + SYS_FREXPF = 0x659 + SYS___CHATTR = 0x660 + SYS___FCHATTR = 0x661 + SYS___TOCCSID = 0x662 + SYS___CSNAMETYPE = 0x663 + SYS___TOCSNAME = 0x664 + SYS___CCSIDTYPE = 0x665 + SYS___AE_CORRESTBL_QUERY = 0x666 + SYS___AE_AUTOCONVERT_STATE = 0x667 + SYS_DN_FIND = 0x668 + SYS___GETHOSTBYADDR_A = 0x669 + SYS___MBLEN_SB_A = 0x670 + SYS___MBLEN_STD_A = 0x671 + SYS___MBLEN_UTF = 0x672 + SYS___MBSTOWCS_A = 0x673 + SYS___MBSTOWCS_STD_A = 0x674 + SYS___MBTOWC_A = 0x675 + SYS___MBTOWC_ISO1 = 0x676 + SYS___MBTOWC_SBCS = 0x677 + SYS___MBTOWC_MBCS = 0x678 + SYS___MBTOWC_UTF = 0x679 + SYS___CSID_A = 0x680 + SYS___CSID_STD_A = 0x681 + SYS___WCSID_A = 0x682 + SYS___WCSID_STD_A = 0x683 + SYS___WCTOMB_A = 0x684 + SYS___WCTOMB_ISO1 = 0x685 + SYS___WCTOMB_STD_A = 0x686 + SYS___WCTOMB_UTF = 0x687 + SYS___WCWIDTH_A = 0x688 + SYS___GETGRNAM_R_A = 0x689 + SYS___READDIR_R_A = 0x690 + SYS___E2A_S = 0x691 + SYS___FNMATCH_A = 0x692 + SYS___FNMATCH_C_A = 0x693 + SYS___EXECL_A = 0x694 + SYS___FNMATCH_STD_A = 0x695 + SYS___REGCOMP_A = 0x696 + SYS___REGCOMP_STD_A = 0x697 + SYS___REGERROR_A = 0x698 + SYS___REGERROR_STD_A = 0x699 + SYS___SWPRINTF_A = 0x700 + SYS___FSCANF_A = 0x701 + SYS___SCANF_A = 0x702 + SYS___SSCANF_A = 0x703 + SYS___SWSCANF_A = 0x704 + SYS___ATOF_A = 0x705 + SYS___ATOI_A = 0x706 + SYS___ATOL_A = 0x707 + SYS___STRTOD_A = 0x708 + SYS___STRTOL_A = 0x709 + SYS___L64A_A = 0x710 + SYS___STRERROR_A = 0x711 + SYS___PERROR_A = 0x712 + SYS___FETCH_A = 0x713 + SYS___GETENV_A = 0x714 + SYS___MKSTEMP_A = 0x717 + SYS___PTSNAME_A = 0x718 + SYS___PUTENV_A = 0x719 + SYS___CHDIR_A = 0x720 + SYS___CHOWN_A = 0x721 + SYS___CHROOT_A = 0x722 + SYS___GETCWD_A = 0x723 + SYS___GETWD_A = 0x724 + SYS___LCHOWN_A = 0x725 + SYS___LINK_A = 0x726 + SYS___PATHCONF_A = 0x727 + SYS___IF_NAMEINDEX_A = 0x728 + SYS___READLINK_A = 0x729 + SYS___EXTLINK_NP_A = 0x730 + SYS___ISALNUM_A = 0x731 + SYS___ISALPHA_A = 0x732 + SYS___A2E_S = 0x733 + SYS___ISCNTRL_A = 0x734 + SYS___ISDIGIT_A = 0x735 + SYS___ISGRAPH_A = 0x736 + SYS___ISLOWER_A = 0x737 + SYS___ISPRINT_A = 0x738 + SYS___ISPUNCT_A = 0x739 + SYS___ISWALPHA_A = 0x740 + SYS___A2E_L = 0x741 + SYS___ISWCNTRL_A = 0x742 + SYS___ISWDIGIT_A = 0x743 + SYS___ISWGRAPH_A = 0x744 + SYS___ISWLOWER_A = 0x745 + SYS___ISWPRINT_A = 0x746 + SYS___ISWPUNCT_A = 0x747 + SYS___ISWSPACE_A = 0x748 + SYS___ISWUPPER_A = 0x749 + SYS___REMOVE_A = 0x750 + SYS___RENAME_A = 0x751 + SYS___TMPNAM_A = 0x752 + SYS___FOPEN_A = 0x753 + SYS___FREOPEN_A = 0x754 + SYS___CUSERID_A = 0x755 + SYS___POPEN_A = 0x756 + SYS___TEMPNAM_A = 0x757 + SYS___FTW_A = 0x758 + SYS___GETGRENT_A = 0x759 + SYS___INET_NTOP_A = 0x760 + SYS___GETPASS_A = 0x761 + SYS___GETPWENT_A = 0x762 + SYS___GETPWNAM_A = 0x763 + SYS___GETPWUID_A = 0x764 + SYS_____CHECK_RESOURCE_AUTH_NP_A = 0x765 + SYS___CHECKSCHENV_A = 0x766 + SYS___CONNECTSERVER_A = 0x767 + SYS___CONNECTWORKMGR_A = 0x768 + SYS_____CONSOLE_A = 0x769 + SYS___MSGSND_A = 0x770 + SYS___MSGXRCV_A = 0x771 + SYS___NFTW_A = 0x772 + SYS_____PASSWD_A = 0x773 + SYS___PTHREAD_SECURITY_NP_A = 0x774 + SYS___QUERYMETRICS_A = 0x775 + SYS___QUERYSCHENV = 0x776 + SYS___READV_A = 0x777 + SYS_____SERVER_CLASSIFY_A = 0x778 + SYS_____SERVER_INIT_A = 0x779 + SYS___W_GETPSENT_A = 0x780 + SYS___WRITEV_A = 0x781 + SYS___W_STATFS_A = 0x782 + SYS___W_STATVFS_A = 0x783 + SYS___FPUTC_A = 0x784 + SYS___PUTCHAR_A = 0x785 + SYS___PUTS_A = 0x786 + SYS___FGETS_A = 0x787 + SYS___GETS_A = 0x788 + SYS___FPUTS_A = 0x789 + SYS___PUTC_A = 0x790 + SYS___AE_THREAD_SETMODE = 0x791 + SYS___AE_THREAD_SWAPMODE = 0x792 + SYS___GETNETBYADDR_A = 0x793 + SYS___GETNETBYNAME_A = 0x794 + SYS___GETNETENT_A = 0x795 + SYS___GETPROTOBYNAME_A = 0x796 + SYS___GETPROTOBYNUMBER_A = 0x797 + SYS___GETPROTOENT_A = 0x798 + SYS___GETSERVBYNAME_A = 0x799 + SYS_ACL_FIRST_ENTRY = 0x800 + SYS_ACL_GET_ENTRY = 0x801 + SYS_ACL_VALID = 0x802 + SYS_ACL_CREATE_ENTRY = 0x803 + SYS_ACL_DELETE_ENTRY = 0x804 + SYS_ACL_UPDATE_ENTRY = 0x805 + SYS_ACL_DELETE_FD = 0x806 + SYS_ACL_DELETE_FILE = 0x807 + SYS_ACL_GET_FD = 0x808 + SYS_ACL_GET_FILE = 0x809 + SYS___ERFL_B = 0x810 + SYS___ERFCL_B = 0x811 + SYS___LGAMMAL_B = 0x812 + SYS___SETHOOKEVENTS = 0x813 + SYS_IF_NAMETOINDEX = 0x814 + SYS_IF_INDEXTONAME = 0x815 + SYS_IF_NAMEINDEX = 0x816 + SYS_IF_FREENAMEINDEX = 0x817 + SYS_GETADDRINFO = 0x818 + SYS_GETNAMEINFO = 0x819 + SYS___DYNFREE_A = 0x820 + SYS___RES_QUERY_A = 0x821 + SYS___RES_SEARCH_A = 0x822 + SYS___RES_QUERYDOMAIN_A = 0x823 + SYS___RES_MKQUERY_A = 0x824 + SYS___RES_SEND_A = 0x825 + SYS___DN_EXPAND_A = 0x826 + SYS___DN_SKIPNAME_A = 0x827 + SYS___DN_COMP_A = 0x828 + SYS___DN_FIND_A = 0x829 + SYS___INET_NTOA_A = 0x830 + SYS___INET_NETWORK_A = 0x831 + SYS___ACCEPT_A = 0x832 + SYS___ACCEPT_AND_RECV_A = 0x833 + SYS___BIND_A = 0x834 + SYS___CONNECT_A = 0x835 + SYS___GETPEERNAME_A = 0x836 + SYS___GETSOCKNAME_A = 0x837 + SYS___RECVFROM_A = 0x838 + SYS___SENDTO_A = 0x839 + SYS___LCHATTR = 0x840 + SYS___WRITEDOWN = 0x841 + SYS_PTHREAD_MUTEX_INIT2 = 0x842 + SYS___ACOSHF_B = 0x843 + SYS___ACOSHL_B = 0x844 + SYS___ASINHF_B = 0x845 + SYS___ASINHL_B = 0x846 + SYS___ATANHF_B = 0x847 + SYS___ATANHL_B = 0x848 + SYS___CBRTF_B = 0x849 + SYS___EXP2F_B = 0x850 + SYS___EXP2L_B = 0x851 + SYS___EXPM1F_B = 0x852 + SYS___EXPM1L_B = 0x853 + SYS___FDIMF_B = 0x854 + SYS___FDIM_B = 0x855 + SYS___FDIML_B = 0x856 + SYS___HYPOTF_B = 0x857 + SYS___HYPOTL_B = 0x858 + SYS___LOG1PF_B = 0x859 + SYS___REMQUOF_B = 0x860 + SYS___REMQUO_B = 0x861 + SYS___REMQUOL_B = 0x862 + SYS___TGAMMAF_B = 0x863 + SYS___TGAMMA_B = 0x864 + SYS___TGAMMAL_B = 0x865 + SYS___TRUNCF_B = 0x866 + SYS___TRUNC_B = 0x867 + SYS___TRUNCL_B = 0x868 + SYS___LGAMMAF_B = 0x869 + SYS_ASINHF = 0x870 + SYS_ASINHL = 0x871 + SYS_ATANHF = 0x872 + SYS_ATANHL = 0x873 + SYS_CBRTF = 0x874 + SYS_CBRTL = 0x875 + SYS_COPYSIGNF = 0x876 + SYS_CPYSIGNF = 0x876 + SYS_COPYSIGNL = 0x877 + SYS_CPYSIGNL = 0x877 + SYS_COTANF = 0x878 + SYS___COTANF = 0x878 + SYS_COTAN = 0x879 + SYS___COTAN = 0x879 + SYS_FDIM = 0x881 + SYS_FDIML = 0x882 + SYS_HYPOTF = 0x883 + SYS_HYPOTL = 0x884 + SYS_LOG1PF = 0x885 + SYS_LOG1PL = 0x886 + SYS_LOG2F = 0x887 + SYS_LOG2 = 0x888 + SYS_LOG2L = 0x889 + SYS_TGAMMA = 0x890 + SYS_TGAMMAL = 0x891 + SYS_TRUNCF = 0x892 + SYS_TRUNC = 0x893 + SYS_TRUNCL = 0x894 + SYS_LGAMMAF = 0x895 + SYS_LGAMMAL = 0x896 + SYS_LROUNDF = 0x897 + SYS_LROUND = 0x898 + SYS_ERFF = 0x899 + SYS___COSHF_H = 0x900 + SYS___COSHL_H = 0x901 + SYS___COTAN_H = 0x902 + SYS___COTANF_H = 0x903 + SYS___COTANL_H = 0x904 + SYS___ERF_H = 0x905 + SYS___ERFF_H = 0x906 + SYS___ERFL_H = 0x907 + SYS___ERFC_H = 0x908 + SYS___ERFCF_H = 0x909 + SYS___FDIMF_H = 0x910 + SYS___FDIML_H = 0x911 + SYS___FMOD_H = 0x912 + SYS___FMODF_H = 0x913 + SYS___FMODL_H = 0x914 + SYS___GAMMA_H = 0x915 + SYS___HYPOT_H = 0x916 + SYS___ILOGB_H = 0x917 + SYS___LGAMMA_H = 0x918 + SYS___LGAMMAF_H = 0x919 + SYS___LOG2L_H = 0x920 + SYS___LOG1P_H = 0x921 + SYS___LOG10_H = 0x922 + SYS___LOG10F_H = 0x923 + SYS___LOG10L_H = 0x924 + SYS___LROUND_H = 0x925 + SYS___LROUNDF_H = 0x926 + SYS___NEXTAFTER_H = 0x927 + SYS___POW_H = 0x928 + SYS___POWF_H = 0x929 + SYS___SINL_H = 0x930 + SYS___SINH_H = 0x931 + SYS___SINHF_H = 0x932 + SYS___SINHL_H = 0x933 + SYS___SQRT_H = 0x934 + SYS___SQRTF_H = 0x935 + SYS___SQRTL_H = 0x936 + SYS___TAN_H = 0x937 + SYS___TANF_H = 0x938 + SYS___TANL_H = 0x939 + SYS___TRUNCF_H = 0x940 + SYS___TRUNCL_H = 0x941 + SYS___COSH_H = 0x942 + SYS___LE_DEBUG_SET_RESUME_MCH = 0x943 + SYS_VFSCANF = 0x944 + SYS_VSCANF = 0x946 + SYS_VSSCANF = 0x948 + SYS_IMAXABS = 0x950 + SYS_IMAXDIV = 0x951 + SYS_STRTOIMAX = 0x952 + SYS_STRTOUMAX = 0x953 + SYS_WCSTOIMAX = 0x954 + SYS_WCSTOUMAX = 0x955 + SYS_ATOLL = 0x956 + SYS_STRTOF = 0x957 + SYS_STRTOLD = 0x958 + SYS_WCSTOF = 0x959 + SYS_INET6_RTH_GETADDR = 0x960 + SYS_INET6_OPT_INIT = 0x961 + SYS_INET6_OPT_APPEND = 0x962 + SYS_INET6_OPT_FINISH = 0x963 + SYS_INET6_OPT_SET_VAL = 0x964 + SYS_INET6_OPT_NEXT = 0x965 + SYS_INET6_OPT_FIND = 0x966 + SYS_INET6_OPT_GET_VAL = 0x967 + SYS___POW_I = 0x987 + SYS___POW_I_B = 0x988 + SYS___POW_I_H = 0x989 + SYS___CABS_H = 0x990 + SYS_CABSF = 0x991 + SYS___CABSF_B = 0x992 + SYS___CABSF_H = 0x993 + SYS_CABSL = 0x994 + SYS___CABSL_B = 0x995 + SYS___CABSL_H = 0x996 + SYS_CACOS = 0x997 + SYS___CACOS_B = 0x998 + SYS___CACOS_H = 0x999 +) diff --git a/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go new file mode 100644 index 0000000..7a8161c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go @@ -0,0 +1,354 @@ +// cgo -godefs types_aix.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc && aix +// +build ppc,aix + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 + PathMax = 0x3ff +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type off64 int64 +type off int32 +type Mode_t uint32 + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Timeval32 struct { + Sec int32 + Usec int32 +} + +type Timex struct{} + +type Time_t int32 + +type Tms struct{} + +type Utimbuf struct { + Actime int32 + Modtime int32 +} + +type Timezone struct { + Minuteswest int32 + Dsttime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type Pid_t int32 + +type _Gid_t uint32 + +type dev_t uint32 + +type Stat_t struct { + Dev uint32 + Ino uint32 + Mode uint32 + Nlink int16 + Flag uint16 + Uid uint32 + Gid uint32 + Rdev uint32 + Size int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int32 + Blocks int32 + Vfstype int32 + Vfs uint32 + Type uint32 + Gen uint32 + Reserved [9]uint32 +} + +type StatxTimestamp struct{} + +type Statx_t struct{} + +type Dirent struct { + Offset uint32 + Ino uint32 + Reclen uint16 + Namlen uint16 + Name [256]uint8 +} + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]uint8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [1023]uint8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [120]uint8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [1012]uint8 +} + +type _Socklen uint32 + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x404 + SizeofSockaddrUnix = 0x401 + SizeofSockaddrDatalink = 0x80 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofICMPv6Filter = 0x20 +) + +const ( + SizeofIfMsghdr = 0x10 +) + +type IfMsgHdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Addrlen uint8 + _ [1]byte +} + +type FdSet struct { + Bits [2048]int32 +} + +type Utsname struct { + Sysname [32]byte + Nodename [32]byte + Release [32]byte + Version [32]byte + Machine [32]byte +} + +type Ustat_t struct{} + +type Sigset_t struct { + Losigs uint32 + Hisigs uint32 +} + +const ( + AT_FDCWD = -0x2 + AT_REMOVEDIR = 0x1 + AT_SYMLINK_NOFOLLOW = 0x1 +) + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [16]uint8 +} + +type Termio struct { + Iflag uint16 + Oflag uint16 + Cflag uint16 + Lflag uint16 + Line uint8 + Cc [8]uint8 + _ [1]byte +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type PollFd struct { + Fd int32 + Events uint16 + Revents uint16 +} + +const ( + POLLERR = 0x4000 + POLLHUP = 0x2000 + POLLIN = 0x1 + POLLNVAL = 0x8000 + POLLOUT = 0x2 + POLLPRI = 0x4 + POLLRDBAND = 0x20 + POLLRDNORM = 0x10 + POLLWRBAND = 0x40 + POLLWRNORM = 0x2 +) + +type Flock_t struct { + Type int16 + Whence int16 + Sysid uint32 + Pid int32 + Vfs int32 + Start int64 + Len int64 +} + +type Fsid_t struct { + Val [2]uint32 +} +type Fsid64_t struct { + Val [2]uint64 +} + +type Statfs_t struct { + Version int32 + Type int32 + Bsize uint32 + Blocks uint32 + Bfree uint32 + Bavail uint32 + Files uint32 + Ffree uint32 + Fsid Fsid_t + Vfstype int32 + Fsize uint32 + Vfsnumber int32 + Vfsoff int32 + Vfslen int32 + Vfsvers int32 + Fname [32]uint8 + Fpack [32]uint8 + Name_max int32 +} + +const RNDGETENTCNT = 0x80045200 diff --git a/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go new file mode 100644 index 0000000..07ed733 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go @@ -0,0 +1,358 @@ +// cgo -godefs types_aix.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && aix +// +build ppc64,aix + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 + PathMax = 0x3ff +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type off64 int64 +type off int64 +type Mode_t uint32 + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int32 + _ [4]byte +} + +type Timeval32 struct { + Sec int32 + Usec int32 +} + +type Timex struct{} + +type Time_t int64 + +type Tms struct{} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Timezone struct { + Minuteswest int32 + Dsttime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type Pid_t int32 + +type _Gid_t uint32 + +type dev_t uint64 + +type Stat_t struct { + Dev uint64 + Ino uint64 + Mode uint32 + Nlink int16 + Flag uint16 + Uid uint32 + Gid uint32 + Rdev uint64 + Ssize int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int64 + Blocks int64 + Vfstype int32 + Vfs uint32 + Type uint32 + Gen uint32 + Reserved [9]uint32 + Padto_ll uint32 + Size int64 +} + +type StatxTimestamp struct{} + +type Statx_t struct{} + +type Dirent struct { + Offset uint64 + Ino uint64 + Reclen uint16 + Namlen uint16 + Name [256]uint8 + _ [4]byte +} + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]uint8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [1023]uint8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [120]uint8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [1012]uint8 +} + +type _Socklen uint32 + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x404 + SizeofSockaddrUnix = 0x401 + SizeofSockaddrDatalink = 0x80 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofICMPv6Filter = 0x20 +) + +const ( + SizeofIfMsghdr = 0x10 +) + +type IfMsgHdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Addrlen uint8 + _ [1]byte +} + +type FdSet struct { + Bits [1024]int64 +} + +type Utsname struct { + Sysname [32]byte + Nodename [32]byte + Release [32]byte + Version [32]byte + Machine [32]byte +} + +type Ustat_t struct{} + +type Sigset_t struct { + Set [4]uint64 +} + +const ( + AT_FDCWD = -0x2 + AT_REMOVEDIR = 0x1 + AT_SYMLINK_NOFOLLOW = 0x1 +) + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [16]uint8 +} + +type Termio struct { + Iflag uint16 + Oflag uint16 + Cflag uint16 + Lflag uint16 + Line uint8 + Cc [8]uint8 + _ [1]byte +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type PollFd struct { + Fd int32 + Events uint16 + Revents uint16 +} + +const ( + POLLERR = 0x4000 + POLLHUP = 0x2000 + POLLIN = 0x1 + POLLNVAL = 0x8000 + POLLOUT = 0x2 + POLLPRI = 0x4 + POLLRDBAND = 0x20 + POLLRDNORM = 0x10 + POLLWRBAND = 0x40 + POLLWRNORM = 0x2 +) + +type Flock_t struct { + Type int16 + Whence int16 + Sysid uint32 + Pid int32 + Vfs int32 + Start int64 + Len int64 +} + +type Fsid_t struct { + Val [2]uint32 +} +type Fsid64_t struct { + Val [2]uint64 +} + +type Statfs_t struct { + Version int32 + Type int32 + Bsize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid64_t + Vfstype int32 + Fsize uint64 + Vfsnumber int32 + Vfsoff int32 + Vfslen int32 + Vfsvers int32 + Fname [32]uint8 + Fpack [32]uint8 + Name_max int32 + _ [4]byte +} + +const RNDGETENTCNT = 0x80045200 diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go new file mode 100644 index 0000000..e2a64f0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go @@ -0,0 +1,795 @@ +// cgo -godefs types_darwin.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && darwin +// +build amd64,darwin + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int32 + _ [4]byte +} + +type Timeval32 struct { + Sec int32 + Usec int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev int32 + Mode uint16 + Nlink uint16 + Ino uint64 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + Lspare int32 + Qspare [2]int64 +} + +type Statfs_t struct { + Bsize uint32 + Iosize int32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Owner uint32 + Type uint32 + Flags uint32 + Fssubtype uint32 + Fstypename [16]byte + Mntonname [1024]byte + Mntfromname [1024]byte + Flags_ext uint32 + Reserved [7]uint32 +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Fstore_t struct { + Flags uint32 + Posmode int32 + Offset int64 + Length int64 + Bytesalloc int64 +} + +type Radvisory_t struct { + Offset int64 + Count int32 + _ [4]byte +} + +type Fbootstraptransfer_t struct { + Offset int64 + Length uint64 + Buffer *byte +} + +type Log2phys_t struct { + Flags uint32 + _ [16]byte +} + +type Fsid struct { + Val [2]int32 +} + +type Dirent struct { + Ino uint64 + Seekoff uint64 + Reclen uint16 + Namlen uint16 + Type uint8 + Name [1024]int8 + _ [3]byte +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type RawSockaddrCtl struct { + Sc_len uint8 + Sc_family uint8 + Ss_sysaddr uint16 + Sc_id uint32 + Sc_unit uint32 + Sc_reserved [5]uint32 +} + +type RawSockaddrVM struct { + Len uint8 + Family uint8 + Reserved1 uint16 + Port uint32 + Cid uint32 +} + +type XVSockPCB struct { + Xv_len uint32 + Xv_vsockpp uint64 + Xvp_local_cid uint32 + Xvp_local_port uint32 + Xvp_remote_cid uint32 + Xvp_remote_port uint32 + Xvp_rxcnt uint32 + Xvp_txcnt uint32 + Xvp_peer_rxhiwat uint32 + Xvp_peer_rxcnt uint32 + Xvp_last_pid int32 + Xvp_gencnt uint64 + Xv_socket XSocket + _ [4]byte +} + +type XSocket struct { + Xso_len uint32 + Xso_so uint32 + So_type int16 + So_options int16 + So_linger int16 + So_state int16 + So_pcb uint32 + Xso_protocol int32 + Xso_family int32 + So_qlen int16 + So_incqlen int16 + So_qlimit int16 + So_timeo int16 + So_error uint16 + So_pgid int32 + So_oobmark uint32 + So_rcv XSockbuf + So_snd XSockbuf + So_uid uint32 +} + +type XSocket64 struct { + Xso_len uint32 + _ [8]byte + So_type int16 + So_options int16 + So_linger int16 + So_state int16 + _ [8]byte + Xso_protocol int32 + Xso_family int32 + So_qlen int16 + So_incqlen int16 + So_qlimit int16 + So_timeo int16 + So_error uint16 + So_pgid int32 + So_oobmark uint32 + So_rcv XSockbuf + So_snd XSockbuf + So_uid uint32 +} + +type XSockbuf struct { + Cc uint32 + Hiwat uint32 + Mbcnt uint32 + Mbmax uint32 + Lowat int32 + Flags int16 + Timeo int16 +} + +type XVSockPgen struct { + Len uint32 + Count uint64 + Gen uint64 + Sogen uint64 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet4Pktinfo struct { + Ifindex uint32 + Spec_dst [4]byte /* in_addr */ + Addr [4]byte /* in_addr */ +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +type TCPConnectionInfo struct { + State uint8 + Snd_wscale uint8 + Rcv_wscale uint8 + _ uint8 + Options uint32 + Flags uint32 + Rto uint32 + Maxseg uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Snd_wnd uint32 + Snd_sbbytes uint32 + Rcv_wnd uint32 + Rttcur uint32 + Srtt uint32 + Rttvar uint32 + Txpackets uint64 + Txbytes uint64 + Txretransmitbytes uint64 + Rxpackets uint64 + Rxbytes uint64 + Rxoutoforderbytes uint64 + Txretransmitpackets uint64 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x14 + SizeofSockaddrCtl = 0x20 + SizeofSockaddrVM = 0xc + SizeofXvsockpcb = 0xa8 + SizeofXSocket = 0x64 + SizeofXSockbuf = 0x18 + SizeofXVSockPgen = 0x20 + SizeofXucred = 0x4c + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet4Pktinfo = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 + SizeofTCPConnectionInfo = 0x70 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]int32 +} + +const ( + SizeofIfMsghdr = 0x70 + SizeofIfData = 0x60 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfmaMsghdr2 = 0x14 + SizeofRtMsghdr = 0x5c + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type IfData struct { + Type uint8 + Typelen uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Recvquota uint8 + Xmitquota uint8 + Unused1 uint8 + Mtu uint32 + Metric uint32 + Baudrate uint32 + Ipackets uint32 + Ierrors uint32 + Opackets uint32 + Oerrors uint32 + Collisions uint32 + Ibytes uint32 + Obytes uint32 + Imcasts uint32 + Omcasts uint32 + Iqdrops uint32 + Noproto uint32 + Recvtiming uint32 + Xmittiming uint32 + Lastchange Timeval32 + Unused2 uint32 + Hwassist uint32 + Reserved1 uint32 + Reserved2 uint32 +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ [2]byte +} + +type IfmaMsghdr2 struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Refcount int32 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint32 + Mtu uint32 + Hopcount uint32 + Expire int32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pksent uint32 + State uint32 + Filler [3]uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x14 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval32 + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [2]byte +} + +type Termios struct { + Iflag uint64 + Oflag uint64 + Cflag uint64 + Lflag uint64 + Cc [20]uint8 + Ispeed uint64 + Ospeed uint64 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x2 + AT_REMOVEDIR = 0x80 + AT_SYMLINK_FOLLOW = 0x40 + AT_SYMLINK_NOFOLLOW = 0x20 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} + +type CtlInfo struct { + Id uint32 + Name [96]byte +} + +const SizeofKinfoProc = 0x288 + +type Eproc struct { + Paddr uintptr + Sess uintptr + Pcred Pcred + Ucred Ucred + Vm Vmspace + Ppid int32 + Pgid int32 + Jobc int16 + Tdev int32 + Tpgid int32 + Tsess uintptr + Wmesg [8]byte + Xsize int32 + Xrssize int16 + Xccount int16 + Xswrss int16 + Flag int32 + Login [12]byte + Spare [4]int32 + _ [4]byte +} + +type ExternProc struct { + P_starttime Timeval + P_vmspace *Vmspace + P_sigacts uintptr + P_flag int32 + P_stat int8 + P_pid int32 + P_oppid int32 + P_dupfd int32 + User_stack *int8 + Exit_thread *byte + P_debugger int32 + Sigwait int32 + P_estcpu uint32 + P_cpticks int32 + P_pctcpu uint32 + P_wchan *byte + P_wmesg *int8 + P_swtime uint32 + P_slptime uint32 + P_realtimer Itimerval + P_rtime Timeval + P_uticks uint64 + P_sticks uint64 + P_iticks uint64 + P_traceflag int32 + P_tracep uintptr + P_siglist int32 + P_textvp uintptr + P_holdcnt int32 + P_sigmask uint32 + P_sigignore uint32 + P_sigcatch uint32 + P_priority uint8 + P_usrpri uint8 + P_nice int8 + P_comm [17]byte + P_pgrp uintptr + P_addr uintptr + P_xstat uint16 + P_acflag uint16 + P_ru *Rusage +} + +type Itimerval struct { + Interval Timeval + Value Timeval +} + +type KinfoProc struct { + Proc ExternProc + Eproc Eproc +} + +type Vmspace struct { + Dummy int32 + Dummy2 *int8 + Dummy3 [5]int32 + Dummy4 [3]*int8 +} + +type Pcred struct { + Pc_lock [72]int8 + Pc_ucred uintptr + P_ruid uint32 + P_svuid uint32 + P_rgid uint32 + P_svgid uint32 + P_refcnt int32 + _ [4]byte +} + +type Ucred struct { + Ref int32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 +} + +type SysvIpcPerm struct { + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint16 + _ uint16 + _ int32 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Lpid int32 + Cpid int32 + Nattch uint16 + _ [34]byte +} + +const ( + IPC_CREAT = 0x200 + IPC_EXCL = 0x400 + IPC_NOWAIT = 0x800 + IPC_PRIVATE = 0x0 +) + +const ( + IPC_RMID = 0x0 + IPC_SET = 0x1 + IPC_STAT = 0x2 +) + +const ( + SHM_RDONLY = 0x1000 + SHM_RND = 0x2000 +) diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go new file mode 100644 index 0000000..34aa775 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go @@ -0,0 +1,795 @@ +// cgo -godefs types_darwin.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && darwin +// +build arm64,darwin + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int32 + _ [4]byte +} + +type Timeval32 struct { + Sec int32 + Usec int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev int32 + Mode uint16 + Nlink uint16 + Ino uint64 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + Lspare int32 + Qspare [2]int64 +} + +type Statfs_t struct { + Bsize uint32 + Iosize int32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Owner uint32 + Type uint32 + Flags uint32 + Fssubtype uint32 + Fstypename [16]byte + Mntonname [1024]byte + Mntfromname [1024]byte + Flags_ext uint32 + Reserved [7]uint32 +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Fstore_t struct { + Flags uint32 + Posmode int32 + Offset int64 + Length int64 + Bytesalloc int64 +} + +type Radvisory_t struct { + Offset int64 + Count int32 + _ [4]byte +} + +type Fbootstraptransfer_t struct { + Offset int64 + Length uint64 + Buffer *byte +} + +type Log2phys_t struct { + Flags uint32 + _ [16]byte +} + +type Fsid struct { + Val [2]int32 +} + +type Dirent struct { + Ino uint64 + Seekoff uint64 + Reclen uint16 + Namlen uint16 + Type uint8 + Name [1024]int8 + _ [3]byte +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type RawSockaddrCtl struct { + Sc_len uint8 + Sc_family uint8 + Ss_sysaddr uint16 + Sc_id uint32 + Sc_unit uint32 + Sc_reserved [5]uint32 +} + +type RawSockaddrVM struct { + Len uint8 + Family uint8 + Reserved1 uint16 + Port uint32 + Cid uint32 +} + +type XVSockPCB struct { + Xv_len uint32 + Xv_vsockpp uint64 + Xvp_local_cid uint32 + Xvp_local_port uint32 + Xvp_remote_cid uint32 + Xvp_remote_port uint32 + Xvp_rxcnt uint32 + Xvp_txcnt uint32 + Xvp_peer_rxhiwat uint32 + Xvp_peer_rxcnt uint32 + Xvp_last_pid int32 + Xvp_gencnt uint64 + Xv_socket XSocket + _ [4]byte +} + +type XSocket struct { + Xso_len uint32 + Xso_so uint32 + So_type int16 + So_options int16 + So_linger int16 + So_state int16 + So_pcb uint32 + Xso_protocol int32 + Xso_family int32 + So_qlen int16 + So_incqlen int16 + So_qlimit int16 + So_timeo int16 + So_error uint16 + So_pgid int32 + So_oobmark uint32 + So_rcv XSockbuf + So_snd XSockbuf + So_uid uint32 +} + +type XSocket64 struct { + Xso_len uint32 + _ [8]byte + So_type int16 + So_options int16 + So_linger int16 + So_state int16 + _ [8]byte + Xso_protocol int32 + Xso_family int32 + So_qlen int16 + So_incqlen int16 + So_qlimit int16 + So_timeo int16 + So_error uint16 + So_pgid int32 + So_oobmark uint32 + So_rcv XSockbuf + So_snd XSockbuf + So_uid uint32 +} + +type XSockbuf struct { + Cc uint32 + Hiwat uint32 + Mbcnt uint32 + Mbmax uint32 + Lowat int32 + Flags int16 + Timeo int16 +} + +type XVSockPgen struct { + Len uint32 + Count uint64 + Gen uint64 + Sogen uint64 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet4Pktinfo struct { + Ifindex uint32 + Spec_dst [4]byte /* in_addr */ + Addr [4]byte /* in_addr */ +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +type TCPConnectionInfo struct { + State uint8 + Snd_wscale uint8 + Rcv_wscale uint8 + _ uint8 + Options uint32 + Flags uint32 + Rto uint32 + Maxseg uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Snd_wnd uint32 + Snd_sbbytes uint32 + Rcv_wnd uint32 + Rttcur uint32 + Srtt uint32 + Rttvar uint32 + Txpackets uint64 + Txbytes uint64 + Txretransmitbytes uint64 + Rxpackets uint64 + Rxbytes uint64 + Rxoutoforderbytes uint64 + Txretransmitpackets uint64 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x14 + SizeofSockaddrCtl = 0x20 + SizeofSockaddrVM = 0xc + SizeofXvsockpcb = 0xa8 + SizeofXSocket = 0x64 + SizeofXSockbuf = 0x18 + SizeofXVSockPgen = 0x20 + SizeofXucred = 0x4c + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet4Pktinfo = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 + SizeofTCPConnectionInfo = 0x70 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]int32 +} + +const ( + SizeofIfMsghdr = 0x70 + SizeofIfData = 0x60 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfmaMsghdr2 = 0x14 + SizeofRtMsghdr = 0x5c + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type IfData struct { + Type uint8 + Typelen uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Recvquota uint8 + Xmitquota uint8 + Unused1 uint8 + Mtu uint32 + Metric uint32 + Baudrate uint32 + Ipackets uint32 + Ierrors uint32 + Opackets uint32 + Oerrors uint32 + Collisions uint32 + Ibytes uint32 + Obytes uint32 + Imcasts uint32 + Omcasts uint32 + Iqdrops uint32 + Noproto uint32 + Recvtiming uint32 + Xmittiming uint32 + Lastchange Timeval32 + Unused2 uint32 + Hwassist uint32 + Reserved1 uint32 + Reserved2 uint32 +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ [2]byte +} + +type IfmaMsghdr2 struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Refcount int32 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint32 + Mtu uint32 + Hopcount uint32 + Expire int32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pksent uint32 + State uint32 + Filler [3]uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x14 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval32 + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [2]byte +} + +type Termios struct { + Iflag uint64 + Oflag uint64 + Cflag uint64 + Lflag uint64 + Cc [20]uint8 + Ispeed uint64 + Ospeed uint64 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x2 + AT_REMOVEDIR = 0x80 + AT_SYMLINK_FOLLOW = 0x40 + AT_SYMLINK_NOFOLLOW = 0x20 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} + +type CtlInfo struct { + Id uint32 + Name [96]byte +} + +const SizeofKinfoProc = 0x288 + +type Eproc struct { + Paddr uintptr + Sess uintptr + Pcred Pcred + Ucred Ucred + Vm Vmspace + Ppid int32 + Pgid int32 + Jobc int16 + Tdev int32 + Tpgid int32 + Tsess uintptr + Wmesg [8]byte + Xsize int32 + Xrssize int16 + Xccount int16 + Xswrss int16 + Flag int32 + Login [12]byte + Spare [4]int32 + _ [4]byte +} + +type ExternProc struct { + P_starttime Timeval + P_vmspace *Vmspace + P_sigacts uintptr + P_flag int32 + P_stat int8 + P_pid int32 + P_oppid int32 + P_dupfd int32 + User_stack *int8 + Exit_thread *byte + P_debugger int32 + Sigwait int32 + P_estcpu uint32 + P_cpticks int32 + P_pctcpu uint32 + P_wchan *byte + P_wmesg *int8 + P_swtime uint32 + P_slptime uint32 + P_realtimer Itimerval + P_rtime Timeval + P_uticks uint64 + P_sticks uint64 + P_iticks uint64 + P_traceflag int32 + P_tracep uintptr + P_siglist int32 + P_textvp uintptr + P_holdcnt int32 + P_sigmask uint32 + P_sigignore uint32 + P_sigcatch uint32 + P_priority uint8 + P_usrpri uint8 + P_nice int8 + P_comm [17]byte + P_pgrp uintptr + P_addr uintptr + P_xstat uint16 + P_acflag uint16 + P_ru *Rusage +} + +type Itimerval struct { + Interval Timeval + Value Timeval +} + +type KinfoProc struct { + Proc ExternProc + Eproc Eproc +} + +type Vmspace struct { + Dummy int32 + Dummy2 *int8 + Dummy3 [5]int32 + Dummy4 [3]*int8 +} + +type Pcred struct { + Pc_lock [72]int8 + Pc_ucred uintptr + P_ruid uint32 + P_svuid uint32 + P_rgid uint32 + P_svgid uint32 + P_refcnt int32 + _ [4]byte +} + +type Ucred struct { + Ref int32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 +} + +type SysvIpcPerm struct { + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint16 + _ uint16 + _ int32 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Lpid int32 + Cpid int32 + Nattch uint16 + _ [34]byte +} + +const ( + IPC_CREAT = 0x200 + IPC_EXCL = 0x400 + IPC_NOWAIT = 0x800 + IPC_PRIVATE = 0x0 +) + +const ( + IPC_RMID = 0x0 + IPC_SET = 0x1 + IPC_STAT = 0x2 +) + +const ( + SHM_RDONLY = 0x1000 + SHM_RND = 0x2000 +) diff --git a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go new file mode 100644 index 0000000..d0ba8e9 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go @@ -0,0 +1,474 @@ +// cgo -godefs types_dragonfly.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && dragonfly +// +build amd64,dragonfly + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur int64 + Max int64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Ino uint64 + Nlink uint32 + Dev uint32 + Mode uint16 + _1 uint16 + Uid uint32 + Gid uint32 + Rdev uint32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + _ uint32 + Flags uint32 + Gen uint32 + Lspare int32 + Blksize int64 + Qspare2 int64 +} + +type Statfs_t struct { + Spare2 int64 + Bsize int64 + Iosize int64 + Blocks int64 + Bfree int64 + Bavail int64 + Files int64 + Ffree int64 + Fsid Fsid + Owner uint32 + Type int32 + Flags int32 + Syncwrites int64 + Asyncwrites int64 + Fstypename [16]byte + Mntonname [80]byte + Syncreads int64 + Asyncreads int64 + Spares1 int16 + Mntfromname [80]byte + Spares2 int16 + Spare [2]int64 +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Namlen uint16 + Type uint8 + Unused1 uint8 + Unused2 uint32 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 + Rcf uint16 + Route [16]uint16 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x36 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [16]uint64 +} + +const ( + SizeofIfMsghdr = 0xb0 + SizeofIfData = 0xa0 + SizeofIfaMsghdr = 0x18 + SizeofIfmaMsghdr = 0x10 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x98 + SizeofRtMetrics = 0x70 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 + Data IfData +} + +type IfData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Recvquota uint8 + Xmitquota uint8 + Mtu uint64 + Metric uint64 + Link_state uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Hwassist uint64 + Oqdrops uint64 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 + Addrflags int32 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits uint64 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Pksent uint64 + Expire uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Recvpipe uint64 + Hopcount uint64 + Mssopt uint16 + Pad uint16 + Msl uint64 + Iwmaxsegs uint64 + Iwcapsegs uint64 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [6]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = 0xfffafdcd + AT_SYMLINK_NOFOLLOW = 0x1 + AT_REMOVEDIR = 0x2 + AT_EACCESS = 0x4 + AT_SYMLINK_FOLLOW = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Utsname struct { + Sysname [32]byte + Nodename [32]byte + Release [32]byte + Version [32]byte + Machine [32]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go new file mode 100644 index 0000000..d9c78cd --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go @@ -0,0 +1,651 @@ +// cgo -godefs types_freebsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && freebsd +// +build 386,freebsd + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Time_t int32 + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur int64 + Max int64 +} + +type _Gid_t uint32 + +const ( + _statfsVersion = 0x20140518 + _dirblksiz = 0x400 +) + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint16 + _0 int16 + Uid uint32 + Gid uint32 + _1 int32 + Rdev uint64 + _ int32 + Atim Timespec + _ int32 + Mtim Timespec + _ int32 + Ctim Timespec + _ int32 + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint64 + Spare [10]uint64 +} + +type Statfs_t struct { + Version uint32 + Type uint32 + Flags uint64 + Bsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail int64 + Files uint64 + Ffree int64 + Syncwrites uint64 + Asyncwrites uint64 + Syncreads uint64 + Asyncreads uint64 + Spare [10]uint64 + Namemax uint32 + Owner uint32 + Fsid Fsid + Charspare [80]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 + Sysid int32 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Pad0 uint8 + Namlen uint16 + Pad1 uint16 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [46]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 + _ *byte +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x36 + SizeofXucred = 0x50 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type PtraceLwpInfoStruct struct { + Lwpid int32 + Event int32 + Flags int32 + Sigmask Sigset_t + Siglist Sigset_t + Siginfo __PtraceSiginfo + Tdname [20]int8 + Child_pid int32 + Syscall_code uint32 + Syscall_narg uint32 +} + +type __Siginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [4]byte + _ [32]byte +} +type __PtraceSiginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr uintptr + Value [4]byte + _ [32]byte +} + +type Sigset_t struct { + Val [4]uint32 +} + +type Reg struct { + Fs uint32 + Es uint32 + Ds uint32 + Edi uint32 + Esi uint32 + Ebp uint32 + Isp uint32 + Ebx uint32 + Edx uint32 + Ecx uint32 + Eax uint32 + Trapno uint32 + Err uint32 + Eip uint32 + Cs uint32 + Eflags uint32 + Esp uint32 + Ss uint32 + Gs uint32 +} + +type FpReg struct { + Env [7]uint32 + Acc [8][10]uint8 + Ex_sw uint32 + Pad [64]uint8 +} + +type FpExtendedPrecision struct{} + +type PtraceIoDesc struct { + Op int32 + Offs uintptr + Addr uintptr + Len uint32 +} + +type Kevent_t struct { + Ident uint32 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte + Ext [4]uint64 +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + sizeofIfMsghdr = 0xa8 + SizeofIfMsghdr = 0x60 + sizeofIfData = 0x98 + SizeofIfData = 0x50 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x5c + SizeofRtMetrics = 0x38 +) + +type ifMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Data ifData +} + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type ifData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Vhid uint8 + Datalen uint16 + Mtu uint32 + Metric uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Hwassist uint64 + _ [8]byte + _ [16]byte +} + +type IfData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Spare_char1 uint8 + Spare_char2 uint8 + Datalen uint8 + Mtu uint32 + Metric uint32 + Baudrate uint32 + Ipackets uint32 + Ierrors uint32 + Opackets uint32 + Oerrors uint32 + Collisions uint32 + Ibytes uint32 + Obytes uint32 + Imcasts uint32 + Omcasts uint32 + Iqdrops uint32 + Noproto uint32 + Hwassist uint32 + Epoch int32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + _ uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Fmask int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint32 + Mtu uint32 + Hopcount uint32 + Expire uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pksent uint32 + Weight uint32 + Filler [3]uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfZbuf = 0xc + SizeofBpfProgram = 0x8 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x14 + SizeofBpfZbufHeader = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfZbuf struct { + Bufa *byte + Bufb *byte + Buflen uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [2]byte +} + +type BpfZbufHeader struct { + Kernel_gen uint32 + Kernel_len uint32 + User_gen uint32 + _ [5]uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLINIGNEOF = 0x2000 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type CapRights struct { + Rights [2]uint64 +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go new file mode 100644 index 0000000..26991b1 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go @@ -0,0 +1,656 @@ +// cgo -godefs types_freebsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && freebsd +// +build amd64,freebsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Time_t int64 + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur int64 + Max int64 +} + +type _Gid_t uint32 + +const ( + _statfsVersion = 0x20140518 + _dirblksiz = 0x400 +) + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint16 + _0 int16 + Uid uint32 + Gid uint32 + _1 int32 + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint64 + Spare [10]uint64 +} + +type Statfs_t struct { + Version uint32 + Type uint32 + Flags uint64 + Bsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail int64 + Files uint64 + Ffree int64 + Syncwrites uint64 + Asyncwrites uint64 + Syncreads uint64 + Asyncreads uint64 + Spare [10]uint64 + Namemax uint32 + Owner uint32 + Fsid Fsid + Charspare [80]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 + Sysid int32 + _ [4]byte +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Pad0 uint8 + Namlen uint16 + Pad1 uint16 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [46]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 + _ *byte +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x36 + SizeofXucred = 0x58 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type PtraceLwpInfoStruct struct { + Lwpid int32 + Event int32 + Flags int32 + Sigmask Sigset_t + Siglist Sigset_t + Siginfo __PtraceSiginfo + Tdname [20]int8 + Child_pid int32 + Syscall_code uint32 + Syscall_narg uint32 +} + +type __Siginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [8]byte + _ [40]byte +} + +type __PtraceSiginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr uintptr + Value [8]byte + _ [40]byte +} + +type Sigset_t struct { + Val [4]uint32 +} + +type Reg struct { + R15 int64 + R14 int64 + R13 int64 + R12 int64 + R11 int64 + R10 int64 + R9 int64 + R8 int64 + Rdi int64 + Rsi int64 + Rbp int64 + Rbx int64 + Rdx int64 + Rcx int64 + Rax int64 + Trapno uint32 + Fs uint16 + Gs uint16 + Err uint32 + Es uint16 + Ds uint16 + Rip int64 + Cs int64 + Rflags int64 + Rsp int64 + Ss int64 +} + +type FpReg struct { + Env [4]uint64 + Acc [8][16]uint8 + Xacc [16][16]uint8 + Spare [12]uint64 +} + +type FpExtendedPrecision struct{} + +type PtraceIoDesc struct { + Op int32 + Offs uintptr + Addr uintptr + Len uint64 +} + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte + Ext [4]uint64 +} + +type FdSet struct { + Bits [16]uint64 +} + +const ( + sizeofIfMsghdr = 0xa8 + SizeofIfMsghdr = 0xa8 + sizeofIfData = 0x98 + SizeofIfData = 0x98 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x98 + SizeofRtMetrics = 0x70 +) + +type ifMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Data ifData +} + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type ifData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Vhid uint8 + Datalen uint16 + Mtu uint32 + Metric uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Hwassist uint64 + _ [8]byte + _ [16]byte +} + +type IfData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Spare_char1 uint8 + Spare_char2 uint8 + Datalen uint8 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Hwassist uint64 + Epoch int64 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + _ uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Fmask int32 + Inits uint64 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Expire uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Pksent uint64 + Weight uint64 + Filler [3]uint64 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfZbuf = 0x18 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 + SizeofBpfZbufHeader = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfZbuf struct { + Bufa *byte + Bufb *byte + Buflen uint64 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [6]byte +} + +type BpfZbufHeader struct { + Kernel_gen uint32 + Kernel_len uint32 + User_gen uint32 + _ [5]uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLINIGNEOF = 0x2000 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type CapRights struct { + Rights [2]uint64 +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go new file mode 100644 index 0000000..f8324e7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go @@ -0,0 +1,642 @@ +// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && freebsd +// +build arm,freebsd + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int32 + _ [4]byte +} + +type Timeval struct { + Sec int64 + Usec int32 + _ [4]byte +} + +type Time_t int64 + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur int64 + Max int64 +} + +type _Gid_t uint32 + +const ( + _statfsVersion = 0x20140518 + _dirblksiz = 0x400 +) + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint16 + _0 int16 + Uid uint32 + Gid uint32 + _1 int32 + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint64 + Spare [10]uint64 +} + +type Statfs_t struct { + Version uint32 + Type uint32 + Flags uint64 + Bsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail int64 + Files uint64 + Ffree int64 + Syncwrites uint64 + Asyncwrites uint64 + Syncreads uint64 + Asyncreads uint64 + Spare [10]uint64 + Namemax uint32 + Owner uint32 + Fsid Fsid + Charspare [80]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 + Sysid int32 + _ [4]byte +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Pad0 uint8 + Namlen uint16 + Pad1 uint16 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [46]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 + _ *byte +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x36 + SizeofXucred = 0x50 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type PtraceLwpInfoStruct struct { + Lwpid int32 + Event int32 + Flags int32 + Sigmask Sigset_t + Siglist Sigset_t + Siginfo __PtraceSiginfo + Tdname [20]int8 + Child_pid int32 + Syscall_code uint32 + Syscall_narg uint32 +} + +type __Siginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [4]byte + _ [32]byte +} + +type __PtraceSiginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr uintptr + Value [4]byte + _ [32]byte +} + +type Sigset_t struct { + Val [4]uint32 +} + +type Reg struct { + R [13]uint32 + Sp uint32 + Lr uint32 + Pc uint32 + Cpsr uint32 +} + +type FpReg struct { + Fpsr uint32 + Fpr [8]FpExtendedPrecision +} + +type FpExtendedPrecision struct { + Exponent uint32 + Mantissa_hi uint32 + Mantissa_lo uint32 +} + +type PtraceIoDesc struct { + Op int32 + Offs uintptr + Addr uintptr + Len uint32 +} + +type Kevent_t struct { + Ident uint32 + Filter int16 + Flags uint16 + Fflags uint32 + _ [4]byte + Data int64 + Udata *byte + _ [4]byte + Ext [4]uint64 +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + sizeofIfMsghdr = 0xa8 + SizeofIfMsghdr = 0x70 + sizeofIfData = 0x98 + SizeofIfData = 0x60 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x5c + SizeofRtMetrics = 0x38 +) + +type ifMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Data ifData +} + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type ifData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Vhid uint8 + Datalen uint16 + Mtu uint32 + Metric uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Hwassist uint64 + _ [8]byte + _ [16]byte +} + +type IfData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Spare_char1 uint8 + Spare_char2 uint8 + Datalen uint8 + Mtu uint32 + Metric uint32 + Baudrate uint32 + Ipackets uint32 + Ierrors uint32 + Opackets uint32 + Oerrors uint32 + Collisions uint32 + Ibytes uint32 + Obytes uint32 + Imcasts uint32 + Omcasts uint32 + Iqdrops uint32 + Noproto uint32 + Hwassist uint32 + _ [4]byte + Epoch int64 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + _ uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Fmask int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint32 + Mtu uint32 + Hopcount uint32 + Expire uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pksent uint32 + Weight uint32 + Filler [3]uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfZbuf = 0xc + SizeofBpfProgram = 0x8 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 + SizeofBpfZbufHeader = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfZbuf struct { + Bufa *byte + Bufb *byte + Buflen uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [6]byte +} + +type BpfZbufHeader struct { + Kernel_gen uint32 + Kernel_len uint32 + User_gen uint32 + _ [5]uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLINIGNEOF = 0x2000 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type CapRights struct { + Rights [2]uint64 +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go new file mode 100644 index 0000000..4220411 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go @@ -0,0 +1,636 @@ +// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && freebsd +// +build arm64,freebsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Time_t int64 + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur int64 + Max int64 +} + +type _Gid_t uint32 + +const ( + _statfsVersion = 0x20140518 + _dirblksiz = 0x400 +) + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint16 + _0 int16 + Uid uint32 + Gid uint32 + _1 int32 + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint64 + Spare [10]uint64 +} + +type Statfs_t struct { + Version uint32 + Type uint32 + Flags uint64 + Bsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail int64 + Files uint64 + Ffree int64 + Syncwrites uint64 + Asyncwrites uint64 + Syncreads uint64 + Asyncreads uint64 + Spare [10]uint64 + Namemax uint32 + Owner uint32 + Fsid Fsid + Charspare [80]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 + Sysid int32 + _ [4]byte +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Pad0 uint8 + Namlen uint16 + Pad1 uint16 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [46]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 + _ *byte +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x36 + SizeofXucred = 0x58 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type PtraceLwpInfoStruct struct { + Lwpid int32 + Event int32 + Flags int32 + Sigmask Sigset_t + Siglist Sigset_t + Siginfo __PtraceSiginfo + Tdname [20]int8 + Child_pid int32 + Syscall_code uint32 + Syscall_narg uint32 +} + +type __Siginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [8]byte + _ [40]byte +} + +type __PtraceSiginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr uintptr + Value [8]byte + _ [40]byte +} + +type Sigset_t struct { + Val [4]uint32 +} + +type Reg struct { + X [30]uint64 + Lr uint64 + Sp uint64 + Elr uint64 + Spsr uint32 + _ [4]byte +} + +type FpReg struct { + Q [32][16]uint8 + Sr uint32 + Cr uint32 + _ [8]byte +} + +type FpExtendedPrecision struct{} + +type PtraceIoDesc struct { + Op int32 + Offs uintptr + Addr uintptr + Len uint64 +} + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte + Ext [4]uint64 +} + +type FdSet struct { + Bits [16]uint64 +} + +const ( + sizeofIfMsghdr = 0xa8 + SizeofIfMsghdr = 0xa8 + sizeofIfData = 0x98 + SizeofIfData = 0x98 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x98 + SizeofRtMetrics = 0x70 +) + +type ifMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Data ifData +} + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type ifData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Vhid uint8 + Datalen uint16 + Mtu uint32 + Metric uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Hwassist uint64 + _ [8]byte + _ [16]byte +} + +type IfData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Spare_char1 uint8 + Spare_char2 uint8 + Datalen uint8 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Hwassist uint64 + Epoch int64 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + _ uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Fmask int32 + Inits uint64 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Expire uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Pksent uint64 + Weight uint64 + Filler [3]uint64 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfZbuf = 0x18 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 + SizeofBpfZbufHeader = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfZbuf struct { + Bufa *byte + Bufb *byte + Buflen uint64 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [6]byte +} + +type BpfZbufHeader struct { + Kernel_gen uint32 + Kernel_len uint32 + User_gen uint32 + _ [5]uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLINIGNEOF = 0x2000 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type CapRights struct { + Rights [2]uint64 +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go new file mode 100644 index 0000000..0660fd4 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go @@ -0,0 +1,638 @@ +// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && freebsd +// +build riscv64,freebsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Time_t int64 + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur int64 + Max int64 +} + +type _Gid_t uint32 + +const ( + _statfsVersion = 0x20140518 + _dirblksiz = 0x400 +) + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint16 + _0 int16 + Uid uint32 + Gid uint32 + _1 int32 + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint64 + Spare [10]uint64 +} + +type Statfs_t struct { + Version uint32 + Type uint32 + Flags uint64 + Bsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail int64 + Files uint64 + Ffree int64 + Syncwrites uint64 + Asyncwrites uint64 + Syncreads uint64 + Asyncreads uint64 + Spare [10]uint64 + Namemax uint32 + Owner uint32 + Fsid Fsid + Charspare [80]int8 + Fstypename [16]byte + Mntfromname [1024]byte + Mntonname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 + Sysid int32 + _ [4]byte +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Pad0 uint8 + Namlen uint16 + Pad1 uint16 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [46]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Xucred struct { + Version uint32 + Uid uint32 + Ngroups int16 + Groups [16]uint32 + _ *byte +} + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x36 + SizeofXucred = 0x58 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type PtraceLwpInfoStruct struct { + Lwpid int32 + Event int32 + Flags int32 + Sigmask Sigset_t + Siglist Sigset_t + Siginfo __PtraceSiginfo + Tdname [20]int8 + Child_pid int32 + Syscall_code uint32 + Syscall_narg uint32 +} + +type __Siginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr *byte + Value [8]byte + _ [40]byte +} + +type __PtraceSiginfo struct { + Signo int32 + Errno int32 + Code int32 + Pid int32 + Uid uint32 + Status int32 + Addr uintptr + Value [8]byte + _ [40]byte +} + +type Sigset_t struct { + Val [4]uint32 +} + +type Reg struct { + Ra uint64 + Sp uint64 + Gp uint64 + Tp uint64 + T [7]uint64 + S [12]uint64 + A [8]uint64 + Sepc uint64 + Sstatus uint64 +} + +type FpReg struct { + X [32][2]uint64 + Fcsr uint64 +} + +type FpExtendedPrecision struct{} + +type PtraceIoDesc struct { + Op int32 + Offs uintptr + Addr uintptr + Len uint64 +} + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte + Ext [4]uint64 +} + +type FdSet struct { + Bits [16]uint64 +} + +const ( + sizeofIfMsghdr = 0xa8 + SizeofIfMsghdr = 0xa8 + sizeofIfData = 0x98 + SizeofIfData = 0x98 + SizeofIfaMsghdr = 0x14 + SizeofIfmaMsghdr = 0x10 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x98 + SizeofRtMetrics = 0x70 +) + +type ifMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Data ifData +} + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type ifData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Vhid uint8 + Datalen uint16 + Mtu uint32 + Metric uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Hwassist uint64 + _ [8]byte + _ [16]byte +} + +type IfData struct { + Type uint8 + Physical uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Spare_char1 uint8 + Spare_char2 uint8 + Datalen uint8 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Hwassist uint64 + Epoch int64 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 + Metric int32 +} + +type IfmaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + _ uint16 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + _ uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Fmask int32 + Inits uint64 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Expire uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Pksent uint64 + Weight uint64 + Nhidx uint64 + Filler [2]uint64 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfZbuf = 0x18 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 + SizeofBpfZbufHeader = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfZbuf struct { + Bufa *byte + Bufb *byte + Buflen uint64 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp Timeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [6]byte +} + +type BpfZbufHeader struct { + Kernel_gen uint32 + Kernel_len uint32 + User_gen uint32 + _ [5]uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLINIGNEOF = 0x2000 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type CapRights struct { + Rights [2]uint64 +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Spare int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go new file mode 100644 index 0000000..7d9fc8f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -0,0 +1,5754 @@ +// Code generated by mkmerge; DO NOT EDIT. + +//go:build linux +// +build linux + +package unix + +const ( + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLongLong = 0x8 + PathMax = 0x1000 +) + +type ( + _C_short int16 + _C_int int32 + + _C_long_long int64 +) + +type ItimerSpec struct { + Interval Timespec + Value Timespec +} + +type Itimerval struct { + Interval Timeval + Value Timeval +} + +const ( + ADJ_OFFSET = 0x1 + ADJ_FREQUENCY = 0x2 + ADJ_MAXERROR = 0x4 + ADJ_ESTERROR = 0x8 + ADJ_STATUS = 0x10 + ADJ_TIMECONST = 0x20 + ADJ_TAI = 0x80 + ADJ_SETOFFSET = 0x100 + ADJ_MICRO = 0x1000 + ADJ_NANO = 0x2000 + ADJ_TICK = 0x4000 + ADJ_OFFSET_SINGLESHOT = 0x8001 + ADJ_OFFSET_SS_READ = 0xa001 +) + +const ( + STA_PLL = 0x1 + STA_PPSFREQ = 0x2 + STA_PPSTIME = 0x4 + STA_FLL = 0x8 + STA_INS = 0x10 + STA_DEL = 0x20 + STA_UNSYNC = 0x40 + STA_FREQHOLD = 0x80 + STA_PPSSIGNAL = 0x100 + STA_PPSJITTER = 0x200 + STA_PPSWANDER = 0x400 + STA_PPSERROR = 0x800 + STA_CLOCKERR = 0x1000 + STA_NANO = 0x2000 + STA_MODE = 0x4000 + STA_CLK = 0x8000 +) + +const ( + TIME_OK = 0x0 + TIME_INS = 0x1 + TIME_DEL = 0x2 + TIME_OOP = 0x3 + TIME_WAIT = 0x4 + TIME_ERROR = 0x5 + TIME_BAD = 0x5 +) + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type StatxTimestamp struct { + Sec int64 + Nsec uint32 + _ int32 +} + +type Statx_t struct { + Mask uint32 + Blksize uint32 + Attributes uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Mode uint16 + _ [1]uint16 + Ino uint64 + Size uint64 + Blocks uint64 + Attributes_mask uint64 + Atime StatxTimestamp + Btime StatxTimestamp + Ctime StatxTimestamp + Mtime StatxTimestamp + Rdev_major uint32 + Rdev_minor uint32 + Dev_major uint32 + Dev_minor uint32 + Mnt_id uint64 + Dio_mem_align uint32 + Dio_offset_align uint32 + _ [12]uint64 +} + +type Fsid struct { + Val [2]int32 +} + +type FileCloneRange struct { + Src_fd int64 + Src_offset uint64 + Src_length uint64 + Dest_offset uint64 +} + +type RawFileDedupeRange struct { + Src_offset uint64 + Src_length uint64 + Dest_count uint16 + Reserved1 uint16 + Reserved2 uint32 +} + +type RawFileDedupeRangeInfo struct { + Dest_fd int64 + Dest_offset uint64 + Bytes_deduped uint64 + Status int32 + Reserved uint32 +} + +const ( + SizeofRawFileDedupeRange = 0x18 + SizeofRawFileDedupeRangeInfo = 0x20 + FILE_DEDUPE_RANGE_SAME = 0x0 + FILE_DEDUPE_RANGE_DIFFERS = 0x1 +) + +type FscryptPolicy struct { + Version uint8 + Contents_encryption_mode uint8 + Filenames_encryption_mode uint8 + Flags uint8 + Master_key_descriptor [8]uint8 +} + +type FscryptKey struct { + Mode uint32 + Raw [64]uint8 + Size uint32 +} + +type FscryptPolicyV1 struct { + Version uint8 + Contents_encryption_mode uint8 + Filenames_encryption_mode uint8 + Flags uint8 + Master_key_descriptor [8]uint8 +} + +type FscryptPolicyV2 struct { + Version uint8 + Contents_encryption_mode uint8 + Filenames_encryption_mode uint8 + Flags uint8 + _ [4]uint8 + Master_key_identifier [16]uint8 +} + +type FscryptGetPolicyExArg struct { + Size uint64 + Policy [24]byte +} + +type FscryptKeySpecifier struct { + Type uint32 + _ uint32 + U [32]byte +} + +type FscryptAddKeyArg struct { + Key_spec FscryptKeySpecifier + Raw_size uint32 + Key_id uint32 + _ [8]uint32 +} + +type FscryptRemoveKeyArg struct { + Key_spec FscryptKeySpecifier + Removal_status_flags uint32 + _ [5]uint32 +} + +type FscryptGetKeyStatusArg struct { + Key_spec FscryptKeySpecifier + _ [6]uint32 + Status uint32 + Status_flags uint32 + User_count uint32 + _ [13]uint32 +} + +type DmIoctl struct { + Version [3]uint32 + Data_size uint32 + Data_start uint32 + Target_count uint32 + Open_count int32 + Flags uint32 + Event_nr uint32 + _ uint32 + Dev uint64 + Name [128]byte + Uuid [129]byte + Data [7]byte +} + +type DmTargetSpec struct { + Sector_start uint64 + Length uint64 + Status int32 + Next uint32 + Target_type [16]byte +} + +type DmTargetDeps struct { + Count uint32 + _ uint32 +} + +type DmTargetVersions struct { + Next uint32 + Version [3]uint32 +} + +type DmTargetMsg struct { + Sector uint64 +} + +const ( + SizeofDmIoctl = 0x138 + SizeofDmTargetSpec = 0x28 +) + +type KeyctlDHParams struct { + Private int32 + Prime int32 + Base int32 +} + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 +) + +type RawSockaddrInet4 struct { + Family uint16 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]uint8 +} + +type RawSockaddrInet6 struct { + Family uint16 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Family uint16 + Path [108]int8 +} + +type RawSockaddrLinklayer struct { + Family uint16 + Protocol uint16 + Ifindex int32 + Hatype uint16 + Pkttype uint8 + Halen uint8 + Addr [8]uint8 +} + +type RawSockaddrNetlink struct { + Family uint16 + Pad uint16 + Pid uint32 + Groups uint32 +} + +type RawSockaddrHCI struct { + Family uint16 + Dev uint16 + Channel uint16 +} + +type RawSockaddrL2 struct { + Family uint16 + Psm uint16 + Bdaddr [6]uint8 + Cid uint16 + Bdaddr_type uint8 + _ [1]byte +} + +type RawSockaddrRFCOMM struct { + Family uint16 + Bdaddr [6]uint8 + Channel uint8 + _ [1]byte +} + +type RawSockaddrCAN struct { + Family uint16 + Ifindex int32 + Addr [16]byte +} + +type RawSockaddrALG struct { + Family uint16 + Type [14]uint8 + Feat uint32 + Mask uint32 + Name [64]uint8 +} + +type RawSockaddrVM struct { + Family uint16 + Reserved1 uint16 + Port uint32 + Cid uint32 + Flags uint8 + Zero [3]uint8 +} + +type RawSockaddrXDP struct { + Family uint16 + Flags uint16 + Ifindex uint32 + Queue_id uint32 + Shared_umem_fd uint32 +} + +type RawSockaddrPPPoX [0x1e]byte + +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + +type RawSockaddrL2TPIP struct { + Family uint16 + Unused uint16 + Addr [4]byte /* in_addr */ + Conn_id uint32 + _ [4]uint8 +} + +type RawSockaddrL2TPIP6 struct { + Family uint16 + Unused uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 + Conn_id uint32 +} + +type RawSockaddrIUCV struct { + Family uint16 + Port uint16 + Addr uint32 + Nodeid [8]int8 + User_id [8]int8 + Name [8]int8 +} + +type RawSockaddrNFC struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPMreqn struct { + Multiaddr [4]byte /* in_addr */ + Address [4]byte /* in_addr */ + Ifindex int32 +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type PacketMreq struct { + Ifindex int32 + Type uint16 + Alen uint16 + Address [8]uint8 +} + +type Inet4Pktinfo struct { + Ifindex int32 + Spec_dst [4]byte /* in_addr */ + Addr [4]byte /* in_addr */ +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Data [8]uint32 +} + +type Ucred struct { + Pid int32 + Uid uint32 + Gid uint32 +} + +type TCPInfo struct { + State uint8 + Ca_state uint8 + Retransmits uint8 + Probes uint8 + Backoff uint8 + Options uint8 + Rto uint32 + Ato uint32 + Snd_mss uint32 + Rcv_mss uint32 + Unacked uint32 + Sacked uint32 + Lost uint32 + Retrans uint32 + Fackets uint32 + Last_data_sent uint32 + Last_ack_sent uint32 + Last_data_recv uint32 + Last_ack_recv uint32 + Pmtu uint32 + Rcv_ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Advmss uint32 + Reordering uint32 + Rcv_rtt uint32 + Rcv_space uint32 + Total_retrans uint32 +} + +type CanFilter struct { + Id uint32 + Mask uint32 +} + +type TCPRepairOpt struct { + Code uint32 + Val uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x70 + SizeofSockaddrUnix = 0x6e + SizeofSockaddrLinklayer = 0x14 + SizeofSockaddrNetlink = 0xc + SizeofSockaddrHCI = 0x6 + SizeofSockaddrL2 = 0xe + SizeofSockaddrRFCOMM = 0xa + SizeofSockaddrCAN = 0x18 + SizeofSockaddrALG = 0x58 + SizeofSockaddrVM = 0x10 + SizeofSockaddrXDP = 0x10 + SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 + SizeofSockaddrL2TPIP = 0x10 + SizeofSockaddrL2TPIP6 = 0x20 + SizeofSockaddrIUCV = 0x20 + SizeofSockaddrNFC = 0x10 + SizeofLinger = 0x8 + SizeofIPMreq = 0x8 + SizeofIPMreqn = 0xc + SizeofIPv6Mreq = 0x14 + SizeofPacketMreq = 0x10 + SizeofInet4Pktinfo = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 + SizeofUcred = 0xc + SizeofTCPInfo = 0x68 + SizeofCanFilter = 0x8 + SizeofTCPRepairOpt = 0x8 +) + +const ( + NDA_UNSPEC = 0x0 + NDA_DST = 0x1 + NDA_LLADDR = 0x2 + NDA_CACHEINFO = 0x3 + NDA_PROBES = 0x4 + NDA_VLAN = 0x5 + NDA_PORT = 0x6 + NDA_VNI = 0x7 + NDA_IFINDEX = 0x8 + NDA_MASTER = 0x9 + NDA_LINK_NETNSID = 0xa + NDA_SRC_VNI = 0xb + NTF_USE = 0x1 + NTF_SELF = 0x2 + NTF_MASTER = 0x4 + NTF_PROXY = 0x8 + NTF_EXT_LEARNED = 0x10 + NTF_OFFLOADED = 0x20 + NTF_ROUTER = 0x80 + NUD_INCOMPLETE = 0x1 + NUD_REACHABLE = 0x2 + NUD_STALE = 0x4 + NUD_DELAY = 0x8 + NUD_PROBE = 0x10 + NUD_FAILED = 0x20 + NUD_NOARP = 0x40 + NUD_PERMANENT = 0x80 + NUD_NONE = 0x0 + IFA_UNSPEC = 0x0 + IFA_ADDRESS = 0x1 + IFA_LOCAL = 0x2 + IFA_LABEL = 0x3 + IFA_BROADCAST = 0x4 + IFA_ANYCAST = 0x5 + IFA_CACHEINFO = 0x6 + IFA_MULTICAST = 0x7 + IFA_FLAGS = 0x8 + IFA_RT_PRIORITY = 0x9 + IFA_TARGET_NETNSID = 0xa + RT_SCOPE_UNIVERSE = 0x0 + RT_SCOPE_SITE = 0xc8 + RT_SCOPE_LINK = 0xfd + RT_SCOPE_HOST = 0xfe + RT_SCOPE_NOWHERE = 0xff + RT_TABLE_UNSPEC = 0x0 + RT_TABLE_COMPAT = 0xfc + RT_TABLE_DEFAULT = 0xfd + RT_TABLE_MAIN = 0xfe + RT_TABLE_LOCAL = 0xff + RT_TABLE_MAX = 0xffffffff + RTA_UNSPEC = 0x0 + RTA_DST = 0x1 + RTA_SRC = 0x2 + RTA_IIF = 0x3 + RTA_OIF = 0x4 + RTA_GATEWAY = 0x5 + RTA_PRIORITY = 0x6 + RTA_PREFSRC = 0x7 + RTA_METRICS = 0x8 + RTA_MULTIPATH = 0x9 + RTA_FLOW = 0xb + RTA_CACHEINFO = 0xc + RTA_TABLE = 0xf + RTA_MARK = 0x10 + RTA_MFC_STATS = 0x11 + RTA_VIA = 0x12 + RTA_NEWDST = 0x13 + RTA_PREF = 0x14 + RTA_ENCAP_TYPE = 0x15 + RTA_ENCAP = 0x16 + RTA_EXPIRES = 0x17 + RTA_PAD = 0x18 + RTA_UID = 0x19 + RTA_TTL_PROPAGATE = 0x1a + RTA_IP_PROTO = 0x1b + RTA_SPORT = 0x1c + RTA_DPORT = 0x1d + RTN_UNSPEC = 0x0 + RTN_UNICAST = 0x1 + RTN_LOCAL = 0x2 + RTN_BROADCAST = 0x3 + RTN_ANYCAST = 0x4 + RTN_MULTICAST = 0x5 + RTN_BLACKHOLE = 0x6 + RTN_UNREACHABLE = 0x7 + RTN_PROHIBIT = 0x8 + RTN_THROW = 0x9 + RTN_NAT = 0xa + RTN_XRESOLVE = 0xb + SizeofNlMsghdr = 0x10 + SizeofNlMsgerr = 0x14 + SizeofRtGenmsg = 0x1 + SizeofNlAttr = 0x4 + SizeofRtAttr = 0x4 + SizeofIfInfomsg = 0x10 + SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 + SizeofRtMsg = 0xc + SizeofRtNexthop = 0x8 + SizeofNdUseroptmsg = 0x10 + SizeofNdMsg = 0xc +) + +type NlMsghdr struct { + Len uint32 + Type uint16 + Flags uint16 + Seq uint32 + Pid uint32 +} + +type NlMsgerr struct { + Error int32 + Msg NlMsghdr +} + +type RtGenmsg struct { + Family uint8 +} + +type NlAttr struct { + Len uint16 + Type uint16 +} + +type RtAttr struct { + Len uint16 + Type uint16 +} + +type IfInfomsg struct { + Family uint8 + _ uint8 + Type uint16 + Index int32 + Flags uint32 + Change uint32 +} + +type IfAddrmsg struct { + Family uint8 + Prefixlen uint8 + Flags uint8 + Scope uint8 + Index uint32 +} + +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + +type RtMsg struct { + Family uint8 + Dst_len uint8 + Src_len uint8 + Tos uint8 + Table uint8 + Protocol uint8 + Scope uint8 + Type uint8 + Flags uint32 +} + +type RtNexthop struct { + Len uint16 + Flags uint8 + Hops uint8 + Ifindex int32 +} + +type NdUseroptmsg struct { + Family uint8 + Pad1 uint8 + Opts_len uint16 + Ifindex int32 + Icmp_type uint8 + Icmp_code uint8 + Pad2 uint16 + Pad3 uint32 +} + +type NdMsg struct { + Family uint8 + Pad1 uint8 + Pad2 uint16 + Ifindex int32 + State uint16 + Flags uint8 + Type uint8 +} + +const ( + ICMP_FILTER = 0x1 + + ICMPV6_FILTER = 0x1 + ICMPV6_FILTER_BLOCK = 0x1 + ICMPV6_FILTER_BLOCKOTHERS = 0x3 + ICMPV6_FILTER_PASS = 0x2 + ICMPV6_FILTER_PASSONLY = 0x4 +) + +const ( + SizeofSockFilter = 0x8 +) + +type SockFilter struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type SockFprog struct { + Len uint16 + Filter *SockFilter +} + +type InotifyEvent struct { + Wd int32 + Mask uint32 + Cookie uint32 + Len uint32 +} + +const SizeofInotifyEvent = 0x10 + +const SI_LOAD_SHIFT = 0x10 + +type Utsname struct { + Sysname [65]byte + Nodename [65]byte + Release [65]byte + Version [65]byte + Machine [65]byte + Domainname [65]byte +} + +const ( + AT_EMPTY_PATH = 0x1000 + AT_FDCWD = -0x64 + AT_NO_AUTOMOUNT = 0x800 + AT_REMOVEDIR = 0x200 + + AT_STATX_SYNC_AS_STAT = 0x0 + AT_STATX_FORCE_SYNC = 0x2000 + AT_STATX_DONT_SYNC = 0x4000 + + AT_RECURSIVE = 0x8000 + + AT_SYMLINK_FOLLOW = 0x400 + AT_SYMLINK_NOFOLLOW = 0x100 + + AT_EACCESS = 0x200 + + OPEN_TREE_CLONE = 0x1 + + MOVE_MOUNT_F_SYMLINKS = 0x1 + MOVE_MOUNT_F_AUTOMOUNTS = 0x2 + MOVE_MOUNT_F_EMPTY_PATH = 0x4 + MOVE_MOUNT_T_SYMLINKS = 0x10 + MOVE_MOUNT_T_AUTOMOUNTS = 0x20 + MOVE_MOUNT_T_EMPTY_PATH = 0x40 + MOVE_MOUNT_SET_GROUP = 0x100 + + FSOPEN_CLOEXEC = 0x1 + + FSPICK_CLOEXEC = 0x1 + FSPICK_SYMLINK_NOFOLLOW = 0x2 + FSPICK_NO_AUTOMOUNT = 0x4 + FSPICK_EMPTY_PATH = 0x8 + + FSMOUNT_CLOEXEC = 0x1 +) + +type OpenHow struct { + Flags uint64 + Mode uint64 + Resolve uint64 +} + +const SizeofOpenHow = 0x18 + +const ( + RESOLVE_BENEATH = 0x8 + RESOLVE_IN_ROOT = 0x10 + RESOLVE_NO_MAGICLINKS = 0x2 + RESOLVE_NO_SYMLINKS = 0x4 + RESOLVE_NO_XDEV = 0x1 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLIN = 0x1 + POLLPRI = 0x2 + POLLOUT = 0x4 + POLLERR = 0x8 + POLLHUP = 0x10 + POLLNVAL = 0x20 +) + +type SignalfdSiginfo struct { + Signo uint32 + Errno int32 + Code int32 + Pid uint32 + Uid uint32 + Fd int32 + Tid uint32 + Band uint32 + Overrun uint32 + Trapno uint32 + Status int32 + Int int32 + Ptr uint64 + Utime uint64 + Stime uint64 + Addr uint64 + Addr_lsb uint16 + _ uint16 + Syscall int32 + Call_addr uint64 + Arch uint32 + _ [28]uint8 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + TASKSTATS_CMD_UNSPEC = 0x0 + TASKSTATS_CMD_GET = 0x1 + TASKSTATS_CMD_NEW = 0x2 + TASKSTATS_TYPE_UNSPEC = 0x0 + TASKSTATS_TYPE_PID = 0x1 + TASKSTATS_TYPE_TGID = 0x2 + TASKSTATS_TYPE_STATS = 0x3 + TASKSTATS_TYPE_AGGR_PID = 0x4 + TASKSTATS_TYPE_AGGR_TGID = 0x5 + TASKSTATS_TYPE_NULL = 0x6 + TASKSTATS_CMD_ATTR_UNSPEC = 0x0 + TASKSTATS_CMD_ATTR_PID = 0x1 + TASKSTATS_CMD_ATTR_TGID = 0x2 + TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 + TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 +) + +type CGroupStats struct { + Sleeping uint64 + Running uint64 + Stopped uint64 + Uninterruptible uint64 + Io_wait uint64 +} + +const ( + CGROUPSTATS_CMD_UNSPEC = 0x3 + CGROUPSTATS_CMD_GET = 0x4 + CGROUPSTATS_CMD_NEW = 0x5 + CGROUPSTATS_TYPE_UNSPEC = 0x0 + CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 + CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 + CGROUPSTATS_CMD_ATTR_FD = 0x1 +) + +type Genlmsghdr struct { + Cmd uint8 + Version uint8 + Reserved uint16 +} + +const ( + CTRL_CMD_UNSPEC = 0x0 + CTRL_CMD_NEWFAMILY = 0x1 + CTRL_CMD_DELFAMILY = 0x2 + CTRL_CMD_GETFAMILY = 0x3 + CTRL_CMD_NEWOPS = 0x4 + CTRL_CMD_DELOPS = 0x5 + CTRL_CMD_GETOPS = 0x6 + CTRL_CMD_NEWMCAST_GRP = 0x7 + CTRL_CMD_DELMCAST_GRP = 0x8 + CTRL_CMD_GETMCAST_GRP = 0x9 + CTRL_CMD_GETPOLICY = 0xa + CTRL_ATTR_UNSPEC = 0x0 + CTRL_ATTR_FAMILY_ID = 0x1 + CTRL_ATTR_FAMILY_NAME = 0x2 + CTRL_ATTR_VERSION = 0x3 + CTRL_ATTR_HDRSIZE = 0x4 + CTRL_ATTR_MAXATTR = 0x5 + CTRL_ATTR_OPS = 0x6 + CTRL_ATTR_MCAST_GROUPS = 0x7 + CTRL_ATTR_POLICY = 0x8 + CTRL_ATTR_OP_POLICY = 0x9 + CTRL_ATTR_OP = 0xa + CTRL_ATTR_OP_UNSPEC = 0x0 + CTRL_ATTR_OP_ID = 0x1 + CTRL_ATTR_OP_FLAGS = 0x2 + CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 + CTRL_ATTR_MCAST_GRP_NAME = 0x1 + CTRL_ATTR_MCAST_GRP_ID = 0x2 + CTRL_ATTR_POLICY_UNSPEC = 0x0 + CTRL_ATTR_POLICY_DO = 0x1 + CTRL_ATTR_POLICY_DUMP = 0x2 + CTRL_ATTR_POLICY_DUMP_MAX = 0x2 +) + +const ( + _CPU_SETSIZE = 0x400 +) + +const ( + BDADDR_BREDR = 0x0 + BDADDR_LE_PUBLIC = 0x1 + BDADDR_LE_RANDOM = 0x2 +) + +type PerfEventAttr struct { + Type uint32 + Size uint32 + Config uint64 + Sample uint64 + Sample_type uint64 + Read_format uint64 + Bits uint64 + Wakeup uint32 + Bp_type uint32 + Ext1 uint64 + Ext2 uint64 + Branch_sample_type uint64 + Sample_regs_user uint64 + Sample_stack_user uint32 + Clockid int32 + Sample_regs_intr uint64 + Aux_watermark uint32 + Sample_max_stack uint16 + _ uint16 + Aux_sample_size uint32 + _ uint32 + Sig_data uint64 +} + +type PerfEventMmapPage struct { + Version uint32 + Compat_version uint32 + Lock uint32 + Index uint32 + Offset int64 + Time_enabled uint64 + Time_running uint64 + Capabilities uint64 + Pmc_width uint16 + Time_shift uint16 + Time_mult uint32 + Time_offset uint64 + Time_zero uint64 + Size uint32 + _ uint32 + Time_cycles uint64 + Time_mask uint64 + _ [928]uint8 + Data_head uint64 + Data_tail uint64 + Data_offset uint64 + Data_size uint64 + Aux_head uint64 + Aux_tail uint64 + Aux_offset uint64 + Aux_size uint64 +} + +const ( + PerfBitDisabled uint64 = CBitFieldMaskBit0 + PerfBitInherit = CBitFieldMaskBit1 + PerfBitPinned = CBitFieldMaskBit2 + PerfBitExclusive = CBitFieldMaskBit3 + PerfBitExcludeUser = CBitFieldMaskBit4 + PerfBitExcludeKernel = CBitFieldMaskBit5 + PerfBitExcludeHv = CBitFieldMaskBit6 + PerfBitExcludeIdle = CBitFieldMaskBit7 + PerfBitMmap = CBitFieldMaskBit8 + PerfBitComm = CBitFieldMaskBit9 + PerfBitFreq = CBitFieldMaskBit10 + PerfBitInheritStat = CBitFieldMaskBit11 + PerfBitEnableOnExec = CBitFieldMaskBit12 + PerfBitTask = CBitFieldMaskBit13 + PerfBitWatermark = CBitFieldMaskBit14 + PerfBitPreciseIPBit1 = CBitFieldMaskBit15 + PerfBitPreciseIPBit2 = CBitFieldMaskBit16 + PerfBitMmapData = CBitFieldMaskBit17 + PerfBitSampleIDAll = CBitFieldMaskBit18 + PerfBitExcludeHost = CBitFieldMaskBit19 + PerfBitExcludeGuest = CBitFieldMaskBit20 + PerfBitExcludeCallchainKernel = CBitFieldMaskBit21 + PerfBitExcludeCallchainUser = CBitFieldMaskBit22 + PerfBitMmap2 = CBitFieldMaskBit23 + PerfBitCommExec = CBitFieldMaskBit24 + PerfBitUseClockID = CBitFieldMaskBit25 + PerfBitContextSwitch = CBitFieldMaskBit26 +) + +const ( + PERF_TYPE_HARDWARE = 0x0 + PERF_TYPE_SOFTWARE = 0x1 + PERF_TYPE_TRACEPOINT = 0x2 + PERF_TYPE_HW_CACHE = 0x3 + PERF_TYPE_RAW = 0x4 + PERF_TYPE_BREAKPOINT = 0x5 + PERF_TYPE_MAX = 0x6 + PERF_COUNT_HW_CPU_CYCLES = 0x0 + PERF_COUNT_HW_INSTRUCTIONS = 0x1 + PERF_COUNT_HW_CACHE_REFERENCES = 0x2 + PERF_COUNT_HW_CACHE_MISSES = 0x3 + PERF_COUNT_HW_BRANCH_INSTRUCTIONS = 0x4 + PERF_COUNT_HW_BRANCH_MISSES = 0x5 + PERF_COUNT_HW_BUS_CYCLES = 0x6 + PERF_COUNT_HW_STALLED_CYCLES_FRONTEND = 0x7 + PERF_COUNT_HW_STALLED_CYCLES_BACKEND = 0x8 + PERF_COUNT_HW_REF_CPU_CYCLES = 0x9 + PERF_COUNT_HW_MAX = 0xa + PERF_COUNT_HW_CACHE_L1D = 0x0 + PERF_COUNT_HW_CACHE_L1I = 0x1 + PERF_COUNT_HW_CACHE_LL = 0x2 + PERF_COUNT_HW_CACHE_DTLB = 0x3 + PERF_COUNT_HW_CACHE_ITLB = 0x4 + PERF_COUNT_HW_CACHE_BPU = 0x5 + PERF_COUNT_HW_CACHE_NODE = 0x6 + PERF_COUNT_HW_CACHE_MAX = 0x7 + PERF_COUNT_HW_CACHE_OP_READ = 0x0 + PERF_COUNT_HW_CACHE_OP_WRITE = 0x1 + PERF_COUNT_HW_CACHE_OP_PREFETCH = 0x2 + PERF_COUNT_HW_CACHE_OP_MAX = 0x3 + PERF_COUNT_HW_CACHE_RESULT_ACCESS = 0x0 + PERF_COUNT_HW_CACHE_RESULT_MISS = 0x1 + PERF_COUNT_HW_CACHE_RESULT_MAX = 0x2 + PERF_COUNT_SW_CPU_CLOCK = 0x0 + PERF_COUNT_SW_TASK_CLOCK = 0x1 + PERF_COUNT_SW_PAGE_FAULTS = 0x2 + PERF_COUNT_SW_CONTEXT_SWITCHES = 0x3 + PERF_COUNT_SW_CPU_MIGRATIONS = 0x4 + PERF_COUNT_SW_PAGE_FAULTS_MIN = 0x5 + PERF_COUNT_SW_PAGE_FAULTS_MAJ = 0x6 + PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 + PERF_COUNT_SW_EMULATION_FAULTS = 0x8 + PERF_COUNT_SW_DUMMY = 0x9 + PERF_COUNT_SW_BPF_OUTPUT = 0xa + PERF_COUNT_SW_MAX = 0xc + PERF_SAMPLE_IP = 0x1 + PERF_SAMPLE_TID = 0x2 + PERF_SAMPLE_TIME = 0x4 + PERF_SAMPLE_ADDR = 0x8 + PERF_SAMPLE_READ = 0x10 + PERF_SAMPLE_CALLCHAIN = 0x20 + PERF_SAMPLE_ID = 0x40 + PERF_SAMPLE_CPU = 0x80 + PERF_SAMPLE_PERIOD = 0x100 + PERF_SAMPLE_STREAM_ID = 0x200 + PERF_SAMPLE_RAW = 0x400 + PERF_SAMPLE_BRANCH_STACK = 0x800 + PERF_SAMPLE_REGS_USER = 0x1000 + PERF_SAMPLE_STACK_USER = 0x2000 + PERF_SAMPLE_WEIGHT = 0x4000 + PERF_SAMPLE_DATA_SRC = 0x8000 + PERF_SAMPLE_IDENTIFIER = 0x10000 + PERF_SAMPLE_TRANSACTION = 0x20000 + PERF_SAMPLE_REGS_INTR = 0x40000 + PERF_SAMPLE_PHYS_ADDR = 0x80000 + PERF_SAMPLE_AUX = 0x100000 + PERF_SAMPLE_CGROUP = 0x200000 + PERF_SAMPLE_DATA_PAGE_SIZE = 0x400000 + PERF_SAMPLE_CODE_PAGE_SIZE = 0x800000 + PERF_SAMPLE_WEIGHT_STRUCT = 0x1000000 + PERF_SAMPLE_MAX = 0x2000000 + PERF_SAMPLE_BRANCH_USER_SHIFT = 0x0 + PERF_SAMPLE_BRANCH_KERNEL_SHIFT = 0x1 + PERF_SAMPLE_BRANCH_HV_SHIFT = 0x2 + PERF_SAMPLE_BRANCH_ANY_SHIFT = 0x3 + PERF_SAMPLE_BRANCH_ANY_CALL_SHIFT = 0x4 + PERF_SAMPLE_BRANCH_ANY_RETURN_SHIFT = 0x5 + PERF_SAMPLE_BRANCH_IND_CALL_SHIFT = 0x6 + PERF_SAMPLE_BRANCH_ABORT_TX_SHIFT = 0x7 + PERF_SAMPLE_BRANCH_IN_TX_SHIFT = 0x8 + PERF_SAMPLE_BRANCH_NO_TX_SHIFT = 0x9 + PERF_SAMPLE_BRANCH_COND_SHIFT = 0xa + PERF_SAMPLE_BRANCH_CALL_STACK_SHIFT = 0xb + PERF_SAMPLE_BRANCH_IND_JUMP_SHIFT = 0xc + PERF_SAMPLE_BRANCH_CALL_SHIFT = 0xd + PERF_SAMPLE_BRANCH_NO_FLAGS_SHIFT = 0xe + PERF_SAMPLE_BRANCH_NO_CYCLES_SHIFT = 0xf + PERF_SAMPLE_BRANCH_TYPE_SAVE_SHIFT = 0x10 + PERF_SAMPLE_BRANCH_HW_INDEX_SHIFT = 0x11 + PERF_SAMPLE_BRANCH_PRIV_SAVE_SHIFT = 0x12 + PERF_SAMPLE_BRANCH_MAX_SHIFT = 0x13 + PERF_SAMPLE_BRANCH_USER = 0x1 + PERF_SAMPLE_BRANCH_KERNEL = 0x2 + PERF_SAMPLE_BRANCH_HV = 0x4 + PERF_SAMPLE_BRANCH_ANY = 0x8 + PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 + PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 + PERF_SAMPLE_BRANCH_IND_CALL = 0x40 + PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 + PERF_SAMPLE_BRANCH_IN_TX = 0x100 + PERF_SAMPLE_BRANCH_NO_TX = 0x200 + PERF_SAMPLE_BRANCH_COND = 0x400 + PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 + PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 + PERF_SAMPLE_BRANCH_CALL = 0x2000 + PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 + PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 + PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 + PERF_SAMPLE_BRANCH_HW_INDEX = 0x20000 + PERF_SAMPLE_BRANCH_PRIV_SAVE = 0x40000 + PERF_SAMPLE_BRANCH_MAX = 0x80000 + PERF_BR_UNKNOWN = 0x0 + PERF_BR_COND = 0x1 + PERF_BR_UNCOND = 0x2 + PERF_BR_IND = 0x3 + PERF_BR_CALL = 0x4 + PERF_BR_IND_CALL = 0x5 + PERF_BR_RET = 0x6 + PERF_BR_SYSCALL = 0x7 + PERF_BR_SYSRET = 0x8 + PERF_BR_COND_CALL = 0x9 + PERF_BR_COND_RET = 0xa + PERF_BR_ERET = 0xb + PERF_BR_IRQ = 0xc + PERF_BR_SERROR = 0xd + PERF_BR_NO_TX = 0xe + PERF_BR_EXTEND_ABI = 0xf + PERF_BR_MAX = 0x10 + PERF_SAMPLE_REGS_ABI_NONE = 0x0 + PERF_SAMPLE_REGS_ABI_32 = 0x1 + PERF_SAMPLE_REGS_ABI_64 = 0x2 + PERF_TXN_ELISION = 0x1 + PERF_TXN_TRANSACTION = 0x2 + PERF_TXN_SYNC = 0x4 + PERF_TXN_ASYNC = 0x8 + PERF_TXN_RETRY = 0x10 + PERF_TXN_CONFLICT = 0x20 + PERF_TXN_CAPACITY_WRITE = 0x40 + PERF_TXN_CAPACITY_READ = 0x80 + PERF_TXN_MAX = 0x100 + PERF_TXN_ABORT_MASK = -0x100000000 + PERF_TXN_ABORT_SHIFT = 0x20 + PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 + PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 + PERF_FORMAT_ID = 0x4 + PERF_FORMAT_GROUP = 0x8 + PERF_FORMAT_LOST = 0x10 + PERF_FORMAT_MAX = 0x20 + PERF_IOC_FLAG_GROUP = 0x1 + PERF_RECORD_MMAP = 0x1 + PERF_RECORD_LOST = 0x2 + PERF_RECORD_COMM = 0x3 + PERF_RECORD_EXIT = 0x4 + PERF_RECORD_THROTTLE = 0x5 + PERF_RECORD_UNTHROTTLE = 0x6 + PERF_RECORD_FORK = 0x7 + PERF_RECORD_READ = 0x8 + PERF_RECORD_SAMPLE = 0x9 + PERF_RECORD_MMAP2 = 0xa + PERF_RECORD_AUX = 0xb + PERF_RECORD_ITRACE_START = 0xc + PERF_RECORD_LOST_SAMPLES = 0xd + PERF_RECORD_SWITCH = 0xe + PERF_RECORD_SWITCH_CPU_WIDE = 0xf + PERF_RECORD_NAMESPACES = 0x10 + PERF_RECORD_KSYMBOL = 0x11 + PERF_RECORD_BPF_EVENT = 0x12 + PERF_RECORD_CGROUP = 0x13 + PERF_RECORD_TEXT_POKE = 0x14 + PERF_RECORD_AUX_OUTPUT_HW_ID = 0x15 + PERF_RECORD_MAX = 0x16 + PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0x0 + PERF_RECORD_KSYMBOL_TYPE_BPF = 0x1 + PERF_RECORD_KSYMBOL_TYPE_OOL = 0x2 + PERF_RECORD_KSYMBOL_TYPE_MAX = 0x3 + PERF_BPF_EVENT_UNKNOWN = 0x0 + PERF_BPF_EVENT_PROG_LOAD = 0x1 + PERF_BPF_EVENT_PROG_UNLOAD = 0x2 + PERF_BPF_EVENT_MAX = 0x3 + PERF_CONTEXT_HV = -0x20 + PERF_CONTEXT_KERNEL = -0x80 + PERF_CONTEXT_USER = -0x200 + PERF_CONTEXT_GUEST = -0x800 + PERF_CONTEXT_GUEST_KERNEL = -0x880 + PERF_CONTEXT_GUEST_USER = -0xa00 + PERF_CONTEXT_MAX = -0xfff +) + +type TCPMD5Sig struct { + Addr SockaddrStorage + Flags uint8 + Prefixlen uint8 + Keylen uint16 + _ uint32 + Key [80]uint8 +} + +type HDDriveCmdHdr struct { + Command uint8 + Number uint8 + Feature uint8 + Count uint8 +} + +type HDDriveID struct { + Config uint16 + Cyls uint16 + Reserved2 uint16 + Heads uint16 + Track_bytes uint16 + Sector_bytes uint16 + Sectors uint16 + Vendor0 uint16 + Vendor1 uint16 + Vendor2 uint16 + Serial_no [20]uint8 + Buf_type uint16 + Buf_size uint16 + Ecc_bytes uint16 + Fw_rev [8]uint8 + Model [40]uint8 + Max_multsect uint8 + Vendor3 uint8 + Dword_io uint16 + Vendor4 uint8 + Capability uint8 + Reserved50 uint16 + Vendor5 uint8 + TPIO uint8 + Vendor6 uint8 + TDMA uint8 + Field_valid uint16 + Cur_cyls uint16 + Cur_heads uint16 + Cur_sectors uint16 + Cur_capacity0 uint16 + Cur_capacity1 uint16 + Multsect uint8 + Multsect_valid uint8 + Lba_capacity uint32 + Dma_1word uint16 + Dma_mword uint16 + Eide_pio_modes uint16 + Eide_dma_min uint16 + Eide_dma_time uint16 + Eide_pio uint16 + Eide_pio_iordy uint16 + Words69_70 [2]uint16 + Words71_74 [4]uint16 + Queue_depth uint16 + Words76_79 [4]uint16 + Major_rev_num uint16 + Minor_rev_num uint16 + Command_set_1 uint16 + Command_set_2 uint16 + Cfsse uint16 + Cfs_enable_1 uint16 + Cfs_enable_2 uint16 + Csf_default uint16 + Dma_ultra uint16 + Trseuc uint16 + TrsEuc uint16 + CurAPMvalues uint16 + Mprc uint16 + Hw_config uint16 + Acoustic uint16 + Msrqs uint16 + Sxfert uint16 + Sal uint16 + Spg uint32 + Lba_capacity_2 uint64 + Words104_125 [22]uint16 + Last_lun uint16 + Word127 uint16 + Dlf uint16 + Csfo uint16 + Words130_155 [26]uint16 + Word156 uint16 + Words157_159 [3]uint16 + Cfa_power uint16 + Words161_175 [15]uint16 + Words176_205 [30]uint16 + Words206_254 [49]uint16 + Integrity_word uint16 +} + +const ( + ST_MANDLOCK = 0x40 + ST_NOATIME = 0x400 + ST_NODEV = 0x4 + ST_NODIRATIME = 0x800 + ST_NOEXEC = 0x8 + ST_NOSUID = 0x2 + ST_RDONLY = 0x1 + ST_RELATIME = 0x1000 + ST_SYNCHRONOUS = 0x10 +) + +type Tpacket2Hdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Nsec uint32 + Vlan_tci uint16 + Vlan_tpid uint16 + _ [4]uint8 +} + +type Tpacket3Hdr struct { + Next_offset uint32 + Sec uint32 + Nsec uint32 + Snaplen uint32 + Len uint32 + Status uint32 + Mac uint16 + Net uint16 + Hv1 TpacketHdrVariant1 + _ [8]uint8 +} + +type TpacketHdrVariant1 struct { + Rxhash uint32 + Vlan_tci uint32 + Vlan_tpid uint16 + _ uint16 +} + +type TpacketBlockDesc struct { + Version uint32 + To_priv uint32 + Hdr [40]byte +} + +type TpacketBDTS struct { + Sec uint32 + Usec uint32 +} + +type TpacketHdrV1 struct { + Block_status uint32 + Num_pkts uint32 + Offset_to_first_pkt uint32 + Blk_len uint32 + Seq_num uint64 + Ts_first_pkt TpacketBDTS + Ts_last_pkt TpacketBDTS +} + +type TpacketReq struct { + Block_size uint32 + Block_nr uint32 + Frame_size uint32 + Frame_nr uint32 +} + +type TpacketReq3 struct { + Block_size uint32 + Block_nr uint32 + Frame_size uint32 + Frame_nr uint32 + Retire_blk_tov uint32 + Sizeof_priv uint32 + Feature_req_word uint32 +} + +type TpacketStats struct { + Packets uint32 + Drops uint32 +} + +type TpacketStatsV3 struct { + Packets uint32 + Drops uint32 + Freeze_q_cnt uint32 +} + +type TpacketAuxdata struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Vlan_tci uint16 + Vlan_tpid uint16 +} + +const ( + TPACKET_V1 = 0x0 + TPACKET_V2 = 0x1 + TPACKET_V3 = 0x2 +) + +const ( + SizeofTpacket2Hdr = 0x20 + SizeofTpacket3Hdr = 0x30 + + SizeofTpacketStats = 0x8 + SizeofTpacketStatsV3 = 0xc +) + +const ( + IFLA_UNSPEC = 0x0 + IFLA_ADDRESS = 0x1 + IFLA_BROADCAST = 0x2 + IFLA_IFNAME = 0x3 + IFLA_MTU = 0x4 + IFLA_LINK = 0x5 + IFLA_QDISC = 0x6 + IFLA_STATS = 0x7 + IFLA_COST = 0x8 + IFLA_PRIORITY = 0x9 + IFLA_MASTER = 0xa + IFLA_WIRELESS = 0xb + IFLA_PROTINFO = 0xc + IFLA_TXQLEN = 0xd + IFLA_MAP = 0xe + IFLA_WEIGHT = 0xf + IFLA_OPERSTATE = 0x10 + IFLA_LINKMODE = 0x11 + IFLA_LINKINFO = 0x12 + IFLA_NET_NS_PID = 0x13 + IFLA_IFALIAS = 0x14 + IFLA_NUM_VF = 0x15 + IFLA_VFINFO_LIST = 0x16 + IFLA_STATS64 = 0x17 + IFLA_VF_PORTS = 0x18 + IFLA_PORT_SELF = 0x19 + IFLA_AF_SPEC = 0x1a + IFLA_GROUP = 0x1b + IFLA_NET_NS_FD = 0x1c + IFLA_EXT_MASK = 0x1d + IFLA_PROMISCUITY = 0x1e + IFLA_NUM_TX_QUEUES = 0x1f + IFLA_NUM_RX_QUEUES = 0x20 + IFLA_CARRIER = 0x21 + IFLA_PHYS_PORT_ID = 0x22 + IFLA_CARRIER_CHANGES = 0x23 + IFLA_PHYS_SWITCH_ID = 0x24 + IFLA_LINK_NETNSID = 0x25 + IFLA_PHYS_PORT_NAME = 0x26 + IFLA_PROTO_DOWN = 0x27 + IFLA_GSO_MAX_SEGS = 0x28 + IFLA_GSO_MAX_SIZE = 0x29 + IFLA_PAD = 0x2a + IFLA_XDP = 0x2b + IFLA_EVENT = 0x2c + IFLA_NEW_NETNSID = 0x2d + IFLA_IF_NETNSID = 0x2e + IFLA_TARGET_NETNSID = 0x2e + IFLA_CARRIER_UP_COUNT = 0x2f + IFLA_CARRIER_DOWN_COUNT = 0x30 + IFLA_NEW_IFINDEX = 0x31 + IFLA_MIN_MTU = 0x32 + IFLA_MAX_MTU = 0x33 + IFLA_PROP_LIST = 0x34 + IFLA_ALT_IFNAME = 0x35 + IFLA_PERM_ADDRESS = 0x36 + IFLA_PROTO_DOWN_REASON = 0x37 + IFLA_PARENT_DEV_NAME = 0x38 + IFLA_PARENT_DEV_BUS_NAME = 0x39 + IFLA_GRO_MAX_SIZE = 0x3a + IFLA_TSO_MAX_SIZE = 0x3b + IFLA_TSO_MAX_SEGS = 0x3c + IFLA_PROTO_DOWN_REASON_UNSPEC = 0x0 + IFLA_PROTO_DOWN_REASON_MASK = 0x1 + IFLA_PROTO_DOWN_REASON_VALUE = 0x2 + IFLA_PROTO_DOWN_REASON_MAX = 0x2 + IFLA_INET_UNSPEC = 0x0 + IFLA_INET_CONF = 0x1 + IFLA_INET6_UNSPEC = 0x0 + IFLA_INET6_FLAGS = 0x1 + IFLA_INET6_CONF = 0x2 + IFLA_INET6_STATS = 0x3 + IFLA_INET6_MCAST = 0x4 + IFLA_INET6_CACHEINFO = 0x5 + IFLA_INET6_ICMP6STATS = 0x6 + IFLA_INET6_TOKEN = 0x7 + IFLA_INET6_ADDR_GEN_MODE = 0x8 + IFLA_BR_UNSPEC = 0x0 + IFLA_BR_FORWARD_DELAY = 0x1 + IFLA_BR_HELLO_TIME = 0x2 + IFLA_BR_MAX_AGE = 0x3 + IFLA_BR_AGEING_TIME = 0x4 + IFLA_BR_STP_STATE = 0x5 + IFLA_BR_PRIORITY = 0x6 + IFLA_BR_VLAN_FILTERING = 0x7 + IFLA_BR_VLAN_PROTOCOL = 0x8 + IFLA_BR_GROUP_FWD_MASK = 0x9 + IFLA_BR_ROOT_ID = 0xa + IFLA_BR_BRIDGE_ID = 0xb + IFLA_BR_ROOT_PORT = 0xc + IFLA_BR_ROOT_PATH_COST = 0xd + IFLA_BR_TOPOLOGY_CHANGE = 0xe + IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 0xf + IFLA_BR_HELLO_TIMER = 0x10 + IFLA_BR_TCN_TIMER = 0x11 + IFLA_BR_TOPOLOGY_CHANGE_TIMER = 0x12 + IFLA_BR_GC_TIMER = 0x13 + IFLA_BR_GROUP_ADDR = 0x14 + IFLA_BR_FDB_FLUSH = 0x15 + IFLA_BR_MCAST_ROUTER = 0x16 + IFLA_BR_MCAST_SNOOPING = 0x17 + IFLA_BR_MCAST_QUERY_USE_IFADDR = 0x18 + IFLA_BR_MCAST_QUERIER = 0x19 + IFLA_BR_MCAST_HASH_ELASTICITY = 0x1a + IFLA_BR_MCAST_HASH_MAX = 0x1b + IFLA_BR_MCAST_LAST_MEMBER_CNT = 0x1c + IFLA_BR_MCAST_STARTUP_QUERY_CNT = 0x1d + IFLA_BR_MCAST_LAST_MEMBER_INTVL = 0x1e + IFLA_BR_MCAST_MEMBERSHIP_INTVL = 0x1f + IFLA_BR_MCAST_QUERIER_INTVL = 0x20 + IFLA_BR_MCAST_QUERY_INTVL = 0x21 + IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 0x22 + IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 0x23 + IFLA_BR_NF_CALL_IPTABLES = 0x24 + IFLA_BR_NF_CALL_IP6TABLES = 0x25 + IFLA_BR_NF_CALL_ARPTABLES = 0x26 + IFLA_BR_VLAN_DEFAULT_PVID = 0x27 + IFLA_BR_PAD = 0x28 + IFLA_BR_VLAN_STATS_ENABLED = 0x29 + IFLA_BR_MCAST_STATS_ENABLED = 0x2a + IFLA_BR_MCAST_IGMP_VERSION = 0x2b + IFLA_BR_MCAST_MLD_VERSION = 0x2c + IFLA_BR_VLAN_STATS_PER_PORT = 0x2d + IFLA_BR_MULTI_BOOLOPT = 0x2e + IFLA_BRPORT_UNSPEC = 0x0 + IFLA_BRPORT_STATE = 0x1 + IFLA_BRPORT_PRIORITY = 0x2 + IFLA_BRPORT_COST = 0x3 + IFLA_BRPORT_MODE = 0x4 + IFLA_BRPORT_GUARD = 0x5 + IFLA_BRPORT_PROTECT = 0x6 + IFLA_BRPORT_FAST_LEAVE = 0x7 + IFLA_BRPORT_LEARNING = 0x8 + IFLA_BRPORT_UNICAST_FLOOD = 0x9 + IFLA_BRPORT_PROXYARP = 0xa + IFLA_BRPORT_LEARNING_SYNC = 0xb + IFLA_BRPORT_PROXYARP_WIFI = 0xc + IFLA_BRPORT_ROOT_ID = 0xd + IFLA_BRPORT_BRIDGE_ID = 0xe + IFLA_BRPORT_DESIGNATED_PORT = 0xf + IFLA_BRPORT_DESIGNATED_COST = 0x10 + IFLA_BRPORT_ID = 0x11 + IFLA_BRPORT_NO = 0x12 + IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 0x13 + IFLA_BRPORT_CONFIG_PENDING = 0x14 + IFLA_BRPORT_MESSAGE_AGE_TIMER = 0x15 + IFLA_BRPORT_FORWARD_DELAY_TIMER = 0x16 + IFLA_BRPORT_HOLD_TIMER = 0x17 + IFLA_BRPORT_FLUSH = 0x18 + IFLA_BRPORT_MULTICAST_ROUTER = 0x19 + IFLA_BRPORT_PAD = 0x1a + IFLA_BRPORT_MCAST_FLOOD = 0x1b + IFLA_BRPORT_MCAST_TO_UCAST = 0x1c + IFLA_BRPORT_VLAN_TUNNEL = 0x1d + IFLA_BRPORT_BCAST_FLOOD = 0x1e + IFLA_BRPORT_GROUP_FWD_MASK = 0x1f + IFLA_BRPORT_NEIGH_SUPPRESS = 0x20 + IFLA_BRPORT_ISOLATED = 0x21 + IFLA_BRPORT_BACKUP_PORT = 0x22 + IFLA_BRPORT_MRP_RING_OPEN = 0x23 + IFLA_BRPORT_MRP_IN_OPEN = 0x24 + IFLA_INFO_UNSPEC = 0x0 + IFLA_INFO_KIND = 0x1 + IFLA_INFO_DATA = 0x2 + IFLA_INFO_XSTATS = 0x3 + IFLA_INFO_SLAVE_KIND = 0x4 + IFLA_INFO_SLAVE_DATA = 0x5 + IFLA_VLAN_UNSPEC = 0x0 + IFLA_VLAN_ID = 0x1 + IFLA_VLAN_FLAGS = 0x2 + IFLA_VLAN_EGRESS_QOS = 0x3 + IFLA_VLAN_INGRESS_QOS = 0x4 + IFLA_VLAN_PROTOCOL = 0x5 + IFLA_VLAN_QOS_UNSPEC = 0x0 + IFLA_VLAN_QOS_MAPPING = 0x1 + IFLA_MACVLAN_UNSPEC = 0x0 + IFLA_MACVLAN_MODE = 0x1 + IFLA_MACVLAN_FLAGS = 0x2 + IFLA_MACVLAN_MACADDR_MODE = 0x3 + IFLA_MACVLAN_MACADDR = 0x4 + IFLA_MACVLAN_MACADDR_DATA = 0x5 + IFLA_MACVLAN_MACADDR_COUNT = 0x6 + IFLA_VRF_UNSPEC = 0x0 + IFLA_VRF_TABLE = 0x1 + IFLA_VRF_PORT_UNSPEC = 0x0 + IFLA_VRF_PORT_TABLE = 0x1 + IFLA_MACSEC_UNSPEC = 0x0 + IFLA_MACSEC_SCI = 0x1 + IFLA_MACSEC_PORT = 0x2 + IFLA_MACSEC_ICV_LEN = 0x3 + IFLA_MACSEC_CIPHER_SUITE = 0x4 + IFLA_MACSEC_WINDOW = 0x5 + IFLA_MACSEC_ENCODING_SA = 0x6 + IFLA_MACSEC_ENCRYPT = 0x7 + IFLA_MACSEC_PROTECT = 0x8 + IFLA_MACSEC_INC_SCI = 0x9 + IFLA_MACSEC_ES = 0xa + IFLA_MACSEC_SCB = 0xb + IFLA_MACSEC_REPLAY_PROTECT = 0xc + IFLA_MACSEC_VALIDATION = 0xd + IFLA_MACSEC_PAD = 0xe + IFLA_MACSEC_OFFLOAD = 0xf + IFLA_XFRM_UNSPEC = 0x0 + IFLA_XFRM_LINK = 0x1 + IFLA_XFRM_IF_ID = 0x2 + IFLA_IPVLAN_UNSPEC = 0x0 + IFLA_IPVLAN_MODE = 0x1 + IFLA_IPVLAN_FLAGS = 0x2 + IFLA_VXLAN_UNSPEC = 0x0 + IFLA_VXLAN_ID = 0x1 + IFLA_VXLAN_GROUP = 0x2 + IFLA_VXLAN_LINK = 0x3 + IFLA_VXLAN_LOCAL = 0x4 + IFLA_VXLAN_TTL = 0x5 + IFLA_VXLAN_TOS = 0x6 + IFLA_VXLAN_LEARNING = 0x7 + IFLA_VXLAN_AGEING = 0x8 + IFLA_VXLAN_LIMIT = 0x9 + IFLA_VXLAN_PORT_RANGE = 0xa + IFLA_VXLAN_PROXY = 0xb + IFLA_VXLAN_RSC = 0xc + IFLA_VXLAN_L2MISS = 0xd + IFLA_VXLAN_L3MISS = 0xe + IFLA_VXLAN_PORT = 0xf + IFLA_VXLAN_GROUP6 = 0x10 + IFLA_VXLAN_LOCAL6 = 0x11 + IFLA_VXLAN_UDP_CSUM = 0x12 + IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 0x13 + IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 0x14 + IFLA_VXLAN_REMCSUM_TX = 0x15 + IFLA_VXLAN_REMCSUM_RX = 0x16 + IFLA_VXLAN_GBP = 0x17 + IFLA_VXLAN_REMCSUM_NOPARTIAL = 0x18 + IFLA_VXLAN_COLLECT_METADATA = 0x19 + IFLA_VXLAN_LABEL = 0x1a + IFLA_VXLAN_GPE = 0x1b + IFLA_VXLAN_TTL_INHERIT = 0x1c + IFLA_VXLAN_DF = 0x1d + IFLA_GENEVE_UNSPEC = 0x0 + IFLA_GENEVE_ID = 0x1 + IFLA_GENEVE_REMOTE = 0x2 + IFLA_GENEVE_TTL = 0x3 + IFLA_GENEVE_TOS = 0x4 + IFLA_GENEVE_PORT = 0x5 + IFLA_GENEVE_COLLECT_METADATA = 0x6 + IFLA_GENEVE_REMOTE6 = 0x7 + IFLA_GENEVE_UDP_CSUM = 0x8 + IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 0x9 + IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 0xa + IFLA_GENEVE_LABEL = 0xb + IFLA_GENEVE_TTL_INHERIT = 0xc + IFLA_GENEVE_DF = 0xd + IFLA_BAREUDP_UNSPEC = 0x0 + IFLA_BAREUDP_PORT = 0x1 + IFLA_BAREUDP_ETHERTYPE = 0x2 + IFLA_BAREUDP_SRCPORT_MIN = 0x3 + IFLA_BAREUDP_MULTIPROTO_MODE = 0x4 + IFLA_PPP_UNSPEC = 0x0 + IFLA_PPP_DEV_FD = 0x1 + IFLA_GTP_UNSPEC = 0x0 + IFLA_GTP_FD0 = 0x1 + IFLA_GTP_FD1 = 0x2 + IFLA_GTP_PDP_HASHSIZE = 0x3 + IFLA_GTP_ROLE = 0x4 + IFLA_BOND_UNSPEC = 0x0 + IFLA_BOND_MODE = 0x1 + IFLA_BOND_ACTIVE_SLAVE = 0x2 + IFLA_BOND_MIIMON = 0x3 + IFLA_BOND_UPDELAY = 0x4 + IFLA_BOND_DOWNDELAY = 0x5 + IFLA_BOND_USE_CARRIER = 0x6 + IFLA_BOND_ARP_INTERVAL = 0x7 + IFLA_BOND_ARP_IP_TARGET = 0x8 + IFLA_BOND_ARP_VALIDATE = 0x9 + IFLA_BOND_ARP_ALL_TARGETS = 0xa + IFLA_BOND_PRIMARY = 0xb + IFLA_BOND_PRIMARY_RESELECT = 0xc + IFLA_BOND_FAIL_OVER_MAC = 0xd + IFLA_BOND_XMIT_HASH_POLICY = 0xe + IFLA_BOND_RESEND_IGMP = 0xf + IFLA_BOND_NUM_PEER_NOTIF = 0x10 + IFLA_BOND_ALL_SLAVES_ACTIVE = 0x11 + IFLA_BOND_MIN_LINKS = 0x12 + IFLA_BOND_LP_INTERVAL = 0x13 + IFLA_BOND_PACKETS_PER_SLAVE = 0x14 + IFLA_BOND_AD_LACP_RATE = 0x15 + IFLA_BOND_AD_SELECT = 0x16 + IFLA_BOND_AD_INFO = 0x17 + IFLA_BOND_AD_ACTOR_SYS_PRIO = 0x18 + IFLA_BOND_AD_USER_PORT_KEY = 0x19 + IFLA_BOND_AD_ACTOR_SYSTEM = 0x1a + IFLA_BOND_TLB_DYNAMIC_LB = 0x1b + IFLA_BOND_PEER_NOTIF_DELAY = 0x1c + IFLA_BOND_AD_INFO_UNSPEC = 0x0 + IFLA_BOND_AD_INFO_AGGREGATOR = 0x1 + IFLA_BOND_AD_INFO_NUM_PORTS = 0x2 + IFLA_BOND_AD_INFO_ACTOR_KEY = 0x3 + IFLA_BOND_AD_INFO_PARTNER_KEY = 0x4 + IFLA_BOND_AD_INFO_PARTNER_MAC = 0x5 + IFLA_BOND_SLAVE_UNSPEC = 0x0 + IFLA_BOND_SLAVE_STATE = 0x1 + IFLA_BOND_SLAVE_MII_STATUS = 0x2 + IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 0x3 + IFLA_BOND_SLAVE_PERM_HWADDR = 0x4 + IFLA_BOND_SLAVE_QUEUE_ID = 0x5 + IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 0x6 + IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 0x7 + IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 0x8 + IFLA_VF_INFO_UNSPEC = 0x0 + IFLA_VF_INFO = 0x1 + IFLA_VF_UNSPEC = 0x0 + IFLA_VF_MAC = 0x1 + IFLA_VF_VLAN = 0x2 + IFLA_VF_TX_RATE = 0x3 + IFLA_VF_SPOOFCHK = 0x4 + IFLA_VF_LINK_STATE = 0x5 + IFLA_VF_RATE = 0x6 + IFLA_VF_RSS_QUERY_EN = 0x7 + IFLA_VF_STATS = 0x8 + IFLA_VF_TRUST = 0x9 + IFLA_VF_IB_NODE_GUID = 0xa + IFLA_VF_IB_PORT_GUID = 0xb + IFLA_VF_VLAN_LIST = 0xc + IFLA_VF_BROADCAST = 0xd + IFLA_VF_VLAN_INFO_UNSPEC = 0x0 + IFLA_VF_VLAN_INFO = 0x1 + IFLA_VF_LINK_STATE_AUTO = 0x0 + IFLA_VF_LINK_STATE_ENABLE = 0x1 + IFLA_VF_LINK_STATE_DISABLE = 0x2 + IFLA_VF_STATS_RX_PACKETS = 0x0 + IFLA_VF_STATS_TX_PACKETS = 0x1 + IFLA_VF_STATS_RX_BYTES = 0x2 + IFLA_VF_STATS_TX_BYTES = 0x3 + IFLA_VF_STATS_BROADCAST = 0x4 + IFLA_VF_STATS_MULTICAST = 0x5 + IFLA_VF_STATS_PAD = 0x6 + IFLA_VF_STATS_RX_DROPPED = 0x7 + IFLA_VF_STATS_TX_DROPPED = 0x8 + IFLA_VF_PORT_UNSPEC = 0x0 + IFLA_VF_PORT = 0x1 + IFLA_PORT_UNSPEC = 0x0 + IFLA_PORT_VF = 0x1 + IFLA_PORT_PROFILE = 0x2 + IFLA_PORT_VSI_TYPE = 0x3 + IFLA_PORT_INSTANCE_UUID = 0x4 + IFLA_PORT_HOST_UUID = 0x5 + IFLA_PORT_REQUEST = 0x6 + IFLA_PORT_RESPONSE = 0x7 + IFLA_IPOIB_UNSPEC = 0x0 + IFLA_IPOIB_PKEY = 0x1 + IFLA_IPOIB_MODE = 0x2 + IFLA_IPOIB_UMCAST = 0x3 + IFLA_HSR_UNSPEC = 0x0 + IFLA_HSR_SLAVE1 = 0x1 + IFLA_HSR_SLAVE2 = 0x2 + IFLA_HSR_MULTICAST_SPEC = 0x3 + IFLA_HSR_SUPERVISION_ADDR = 0x4 + IFLA_HSR_SEQ_NR = 0x5 + IFLA_HSR_VERSION = 0x6 + IFLA_HSR_PROTOCOL = 0x7 + IFLA_STATS_UNSPEC = 0x0 + IFLA_STATS_LINK_64 = 0x1 + IFLA_STATS_LINK_XSTATS = 0x2 + IFLA_STATS_LINK_XSTATS_SLAVE = 0x3 + IFLA_STATS_LINK_OFFLOAD_XSTATS = 0x4 + IFLA_STATS_AF_SPEC = 0x5 + IFLA_OFFLOAD_XSTATS_UNSPEC = 0x0 + IFLA_OFFLOAD_XSTATS_CPU_HIT = 0x1 + IFLA_XDP_UNSPEC = 0x0 + IFLA_XDP_FD = 0x1 + IFLA_XDP_ATTACHED = 0x2 + IFLA_XDP_FLAGS = 0x3 + IFLA_XDP_PROG_ID = 0x4 + IFLA_XDP_DRV_PROG_ID = 0x5 + IFLA_XDP_SKB_PROG_ID = 0x6 + IFLA_XDP_HW_PROG_ID = 0x7 + IFLA_XDP_EXPECTED_FD = 0x8 + IFLA_EVENT_NONE = 0x0 + IFLA_EVENT_REBOOT = 0x1 + IFLA_EVENT_FEATURES = 0x2 + IFLA_EVENT_BONDING_FAILOVER = 0x3 + IFLA_EVENT_NOTIFY_PEERS = 0x4 + IFLA_EVENT_IGMP_RESEND = 0x5 + IFLA_EVENT_BONDING_OPTIONS = 0x6 + IFLA_TUN_UNSPEC = 0x0 + IFLA_TUN_OWNER = 0x1 + IFLA_TUN_GROUP = 0x2 + IFLA_TUN_TYPE = 0x3 + IFLA_TUN_PI = 0x4 + IFLA_TUN_VNET_HDR = 0x5 + IFLA_TUN_PERSIST = 0x6 + IFLA_TUN_MULTI_QUEUE = 0x7 + IFLA_TUN_NUM_QUEUES = 0x8 + IFLA_TUN_NUM_DISABLED_QUEUES = 0x9 + IFLA_RMNET_UNSPEC = 0x0 + IFLA_RMNET_MUX_ID = 0x1 + IFLA_RMNET_FLAGS = 0x2 +) + +const ( + NF_INET_PRE_ROUTING = 0x0 + NF_INET_LOCAL_IN = 0x1 + NF_INET_FORWARD = 0x2 + NF_INET_LOCAL_OUT = 0x3 + NF_INET_POST_ROUTING = 0x4 + NF_INET_NUMHOOKS = 0x5 +) + +const ( + NF_NETDEV_INGRESS = 0x0 + NF_NETDEV_EGRESS = 0x1 + NF_NETDEV_NUMHOOKS = 0x2 +) + +const ( + NFPROTO_UNSPEC = 0x0 + NFPROTO_INET = 0x1 + NFPROTO_IPV4 = 0x2 + NFPROTO_ARP = 0x3 + NFPROTO_NETDEV = 0x5 + NFPROTO_BRIDGE = 0x7 + NFPROTO_IPV6 = 0xa + NFPROTO_DECNET = 0xc + NFPROTO_NUMPROTO = 0xd +) + +const SO_ORIGINAL_DST = 0x50 + +type Nfgenmsg struct { + Nfgen_family uint8 + Version uint8 + Res_id uint16 +} + +const ( + NFNL_BATCH_UNSPEC = 0x0 + NFNL_BATCH_GENID = 0x1 +) + +const ( + NFT_REG_VERDICT = 0x0 + NFT_REG_1 = 0x1 + NFT_REG_2 = 0x2 + NFT_REG_3 = 0x3 + NFT_REG_4 = 0x4 + NFT_REG32_00 = 0x8 + NFT_REG32_01 = 0x9 + NFT_REG32_02 = 0xa + NFT_REG32_03 = 0xb + NFT_REG32_04 = 0xc + NFT_REG32_05 = 0xd + NFT_REG32_06 = 0xe + NFT_REG32_07 = 0xf + NFT_REG32_08 = 0x10 + NFT_REG32_09 = 0x11 + NFT_REG32_10 = 0x12 + NFT_REG32_11 = 0x13 + NFT_REG32_12 = 0x14 + NFT_REG32_13 = 0x15 + NFT_REG32_14 = 0x16 + NFT_REG32_15 = 0x17 + NFT_CONTINUE = -0x1 + NFT_BREAK = -0x2 + NFT_JUMP = -0x3 + NFT_GOTO = -0x4 + NFT_RETURN = -0x5 + NFT_MSG_NEWTABLE = 0x0 + NFT_MSG_GETTABLE = 0x1 + NFT_MSG_DELTABLE = 0x2 + NFT_MSG_NEWCHAIN = 0x3 + NFT_MSG_GETCHAIN = 0x4 + NFT_MSG_DELCHAIN = 0x5 + NFT_MSG_NEWRULE = 0x6 + NFT_MSG_GETRULE = 0x7 + NFT_MSG_DELRULE = 0x8 + NFT_MSG_NEWSET = 0x9 + NFT_MSG_GETSET = 0xa + NFT_MSG_DELSET = 0xb + NFT_MSG_NEWSETELEM = 0xc + NFT_MSG_GETSETELEM = 0xd + NFT_MSG_DELSETELEM = 0xe + NFT_MSG_NEWGEN = 0xf + NFT_MSG_GETGEN = 0x10 + NFT_MSG_TRACE = 0x11 + NFT_MSG_NEWOBJ = 0x12 + NFT_MSG_GETOBJ = 0x13 + NFT_MSG_DELOBJ = 0x14 + NFT_MSG_GETOBJ_RESET = 0x15 + NFT_MSG_MAX = 0x19 + NFTA_LIST_UNSPEC = 0x0 + NFTA_LIST_ELEM = 0x1 + NFTA_HOOK_UNSPEC = 0x0 + NFTA_HOOK_HOOKNUM = 0x1 + NFTA_HOOK_PRIORITY = 0x2 + NFTA_HOOK_DEV = 0x3 + NFT_TABLE_F_DORMANT = 0x1 + NFTA_TABLE_UNSPEC = 0x0 + NFTA_TABLE_NAME = 0x1 + NFTA_TABLE_FLAGS = 0x2 + NFTA_TABLE_USE = 0x3 + NFTA_CHAIN_UNSPEC = 0x0 + NFTA_CHAIN_TABLE = 0x1 + NFTA_CHAIN_HANDLE = 0x2 + NFTA_CHAIN_NAME = 0x3 + NFTA_CHAIN_HOOK = 0x4 + NFTA_CHAIN_POLICY = 0x5 + NFTA_CHAIN_USE = 0x6 + NFTA_CHAIN_TYPE = 0x7 + NFTA_CHAIN_COUNTERS = 0x8 + NFTA_CHAIN_PAD = 0x9 + NFTA_RULE_UNSPEC = 0x0 + NFTA_RULE_TABLE = 0x1 + NFTA_RULE_CHAIN = 0x2 + NFTA_RULE_HANDLE = 0x3 + NFTA_RULE_EXPRESSIONS = 0x4 + NFTA_RULE_COMPAT = 0x5 + NFTA_RULE_POSITION = 0x6 + NFTA_RULE_USERDATA = 0x7 + NFTA_RULE_PAD = 0x8 + NFTA_RULE_ID = 0x9 + NFT_RULE_COMPAT_F_INV = 0x2 + NFT_RULE_COMPAT_F_MASK = 0x2 + NFTA_RULE_COMPAT_UNSPEC = 0x0 + NFTA_RULE_COMPAT_PROTO = 0x1 + NFTA_RULE_COMPAT_FLAGS = 0x2 + NFT_SET_ANONYMOUS = 0x1 + NFT_SET_CONSTANT = 0x2 + NFT_SET_INTERVAL = 0x4 + NFT_SET_MAP = 0x8 + NFT_SET_TIMEOUT = 0x10 + NFT_SET_EVAL = 0x20 + NFT_SET_OBJECT = 0x40 + NFT_SET_POL_PERFORMANCE = 0x0 + NFT_SET_POL_MEMORY = 0x1 + NFTA_SET_DESC_UNSPEC = 0x0 + NFTA_SET_DESC_SIZE = 0x1 + NFTA_SET_UNSPEC = 0x0 + NFTA_SET_TABLE = 0x1 + NFTA_SET_NAME = 0x2 + NFTA_SET_FLAGS = 0x3 + NFTA_SET_KEY_TYPE = 0x4 + NFTA_SET_KEY_LEN = 0x5 + NFTA_SET_DATA_TYPE = 0x6 + NFTA_SET_DATA_LEN = 0x7 + NFTA_SET_POLICY = 0x8 + NFTA_SET_DESC = 0x9 + NFTA_SET_ID = 0xa + NFTA_SET_TIMEOUT = 0xb + NFTA_SET_GC_INTERVAL = 0xc + NFTA_SET_USERDATA = 0xd + NFTA_SET_PAD = 0xe + NFTA_SET_OBJ_TYPE = 0xf + NFT_SET_ELEM_INTERVAL_END = 0x1 + NFTA_SET_ELEM_UNSPEC = 0x0 + NFTA_SET_ELEM_KEY = 0x1 + NFTA_SET_ELEM_DATA = 0x2 + NFTA_SET_ELEM_FLAGS = 0x3 + NFTA_SET_ELEM_TIMEOUT = 0x4 + NFTA_SET_ELEM_EXPIRATION = 0x5 + NFTA_SET_ELEM_USERDATA = 0x6 + NFTA_SET_ELEM_EXPR = 0x7 + NFTA_SET_ELEM_PAD = 0x8 + NFTA_SET_ELEM_OBJREF = 0x9 + NFTA_SET_ELEM_LIST_UNSPEC = 0x0 + NFTA_SET_ELEM_LIST_TABLE = 0x1 + NFTA_SET_ELEM_LIST_SET = 0x2 + NFTA_SET_ELEM_LIST_ELEMENTS = 0x3 + NFTA_SET_ELEM_LIST_SET_ID = 0x4 + NFT_DATA_VALUE = 0x0 + NFT_DATA_VERDICT = 0xffffff00 + NFTA_DATA_UNSPEC = 0x0 + NFTA_DATA_VALUE = 0x1 + NFTA_DATA_VERDICT = 0x2 + NFTA_VERDICT_UNSPEC = 0x0 + NFTA_VERDICT_CODE = 0x1 + NFTA_VERDICT_CHAIN = 0x2 + NFTA_EXPR_UNSPEC = 0x0 + NFTA_EXPR_NAME = 0x1 + NFTA_EXPR_DATA = 0x2 + NFTA_IMMEDIATE_UNSPEC = 0x0 + NFTA_IMMEDIATE_DREG = 0x1 + NFTA_IMMEDIATE_DATA = 0x2 + NFTA_BITWISE_UNSPEC = 0x0 + NFTA_BITWISE_SREG = 0x1 + NFTA_BITWISE_DREG = 0x2 + NFTA_BITWISE_LEN = 0x3 + NFTA_BITWISE_MASK = 0x4 + NFTA_BITWISE_XOR = 0x5 + NFT_BYTEORDER_NTOH = 0x0 + NFT_BYTEORDER_HTON = 0x1 + NFTA_BYTEORDER_UNSPEC = 0x0 + NFTA_BYTEORDER_SREG = 0x1 + NFTA_BYTEORDER_DREG = 0x2 + NFTA_BYTEORDER_OP = 0x3 + NFTA_BYTEORDER_LEN = 0x4 + NFTA_BYTEORDER_SIZE = 0x5 + NFT_CMP_EQ = 0x0 + NFT_CMP_NEQ = 0x1 + NFT_CMP_LT = 0x2 + NFT_CMP_LTE = 0x3 + NFT_CMP_GT = 0x4 + NFT_CMP_GTE = 0x5 + NFTA_CMP_UNSPEC = 0x0 + NFTA_CMP_SREG = 0x1 + NFTA_CMP_OP = 0x2 + NFTA_CMP_DATA = 0x3 + NFT_RANGE_EQ = 0x0 + NFT_RANGE_NEQ = 0x1 + NFTA_RANGE_UNSPEC = 0x0 + NFTA_RANGE_SREG = 0x1 + NFTA_RANGE_OP = 0x2 + NFTA_RANGE_FROM_DATA = 0x3 + NFTA_RANGE_TO_DATA = 0x4 + NFT_LOOKUP_F_INV = 0x1 + NFTA_LOOKUP_UNSPEC = 0x0 + NFTA_LOOKUP_SET = 0x1 + NFTA_LOOKUP_SREG = 0x2 + NFTA_LOOKUP_DREG = 0x3 + NFTA_LOOKUP_SET_ID = 0x4 + NFTA_LOOKUP_FLAGS = 0x5 + NFT_DYNSET_OP_ADD = 0x0 + NFT_DYNSET_OP_UPDATE = 0x1 + NFT_DYNSET_F_INV = 0x1 + NFTA_DYNSET_UNSPEC = 0x0 + NFTA_DYNSET_SET_NAME = 0x1 + NFTA_DYNSET_SET_ID = 0x2 + NFTA_DYNSET_OP = 0x3 + NFTA_DYNSET_SREG_KEY = 0x4 + NFTA_DYNSET_SREG_DATA = 0x5 + NFTA_DYNSET_TIMEOUT = 0x6 + NFTA_DYNSET_EXPR = 0x7 + NFTA_DYNSET_PAD = 0x8 + NFTA_DYNSET_FLAGS = 0x9 + NFT_PAYLOAD_LL_HEADER = 0x0 + NFT_PAYLOAD_NETWORK_HEADER = 0x1 + NFT_PAYLOAD_TRANSPORT_HEADER = 0x2 + NFT_PAYLOAD_CSUM_NONE = 0x0 + NFT_PAYLOAD_CSUM_INET = 0x1 + NFT_PAYLOAD_L4CSUM_PSEUDOHDR = 0x1 + NFTA_PAYLOAD_UNSPEC = 0x0 + NFTA_PAYLOAD_DREG = 0x1 + NFTA_PAYLOAD_BASE = 0x2 + NFTA_PAYLOAD_OFFSET = 0x3 + NFTA_PAYLOAD_LEN = 0x4 + NFTA_PAYLOAD_SREG = 0x5 + NFTA_PAYLOAD_CSUM_TYPE = 0x6 + NFTA_PAYLOAD_CSUM_OFFSET = 0x7 + NFTA_PAYLOAD_CSUM_FLAGS = 0x8 + NFT_EXTHDR_F_PRESENT = 0x1 + NFT_EXTHDR_OP_IPV6 = 0x0 + NFT_EXTHDR_OP_TCPOPT = 0x1 + NFTA_EXTHDR_UNSPEC = 0x0 + NFTA_EXTHDR_DREG = 0x1 + NFTA_EXTHDR_TYPE = 0x2 + NFTA_EXTHDR_OFFSET = 0x3 + NFTA_EXTHDR_LEN = 0x4 + NFTA_EXTHDR_FLAGS = 0x5 + NFTA_EXTHDR_OP = 0x6 + NFTA_EXTHDR_SREG = 0x7 + NFT_META_LEN = 0x0 + NFT_META_PROTOCOL = 0x1 + NFT_META_PRIORITY = 0x2 + NFT_META_MARK = 0x3 + NFT_META_IIF = 0x4 + NFT_META_OIF = 0x5 + NFT_META_IIFNAME = 0x6 + NFT_META_OIFNAME = 0x7 + NFT_META_IIFTYPE = 0x8 + NFT_META_OIFTYPE = 0x9 + NFT_META_SKUID = 0xa + NFT_META_SKGID = 0xb + NFT_META_NFTRACE = 0xc + NFT_META_RTCLASSID = 0xd + NFT_META_SECMARK = 0xe + NFT_META_NFPROTO = 0xf + NFT_META_L4PROTO = 0x10 + NFT_META_BRI_IIFNAME = 0x11 + NFT_META_BRI_OIFNAME = 0x12 + NFT_META_PKTTYPE = 0x13 + NFT_META_CPU = 0x14 + NFT_META_IIFGROUP = 0x15 + NFT_META_OIFGROUP = 0x16 + NFT_META_CGROUP = 0x17 + NFT_META_PRANDOM = 0x18 + NFT_RT_CLASSID = 0x0 + NFT_RT_NEXTHOP4 = 0x1 + NFT_RT_NEXTHOP6 = 0x2 + NFT_RT_TCPMSS = 0x3 + NFT_HASH_JENKINS = 0x0 + NFT_HASH_SYM = 0x1 + NFTA_HASH_UNSPEC = 0x0 + NFTA_HASH_SREG = 0x1 + NFTA_HASH_DREG = 0x2 + NFTA_HASH_LEN = 0x3 + NFTA_HASH_MODULUS = 0x4 + NFTA_HASH_SEED = 0x5 + NFTA_HASH_OFFSET = 0x6 + NFTA_HASH_TYPE = 0x7 + NFTA_META_UNSPEC = 0x0 + NFTA_META_DREG = 0x1 + NFTA_META_KEY = 0x2 + NFTA_META_SREG = 0x3 + NFTA_RT_UNSPEC = 0x0 + NFTA_RT_DREG = 0x1 + NFTA_RT_KEY = 0x2 + NFT_CT_STATE = 0x0 + NFT_CT_DIRECTION = 0x1 + NFT_CT_STATUS = 0x2 + NFT_CT_MARK = 0x3 + NFT_CT_SECMARK = 0x4 + NFT_CT_EXPIRATION = 0x5 + NFT_CT_HELPER = 0x6 + NFT_CT_L3PROTOCOL = 0x7 + NFT_CT_SRC = 0x8 + NFT_CT_DST = 0x9 + NFT_CT_PROTOCOL = 0xa + NFT_CT_PROTO_SRC = 0xb + NFT_CT_PROTO_DST = 0xc + NFT_CT_LABELS = 0xd + NFT_CT_PKTS = 0xe + NFT_CT_BYTES = 0xf + NFT_CT_AVGPKT = 0x10 + NFT_CT_ZONE = 0x11 + NFT_CT_EVENTMASK = 0x12 + NFTA_CT_UNSPEC = 0x0 + NFTA_CT_DREG = 0x1 + NFTA_CT_KEY = 0x2 + NFTA_CT_DIRECTION = 0x3 + NFTA_CT_SREG = 0x4 + NFT_LIMIT_PKTS = 0x0 + NFT_LIMIT_PKT_BYTES = 0x1 + NFT_LIMIT_F_INV = 0x1 + NFTA_LIMIT_UNSPEC = 0x0 + NFTA_LIMIT_RATE = 0x1 + NFTA_LIMIT_UNIT = 0x2 + NFTA_LIMIT_BURST = 0x3 + NFTA_LIMIT_TYPE = 0x4 + NFTA_LIMIT_FLAGS = 0x5 + NFTA_LIMIT_PAD = 0x6 + NFTA_COUNTER_UNSPEC = 0x0 + NFTA_COUNTER_BYTES = 0x1 + NFTA_COUNTER_PACKETS = 0x2 + NFTA_COUNTER_PAD = 0x3 + NFTA_LOG_UNSPEC = 0x0 + NFTA_LOG_GROUP = 0x1 + NFTA_LOG_PREFIX = 0x2 + NFTA_LOG_SNAPLEN = 0x3 + NFTA_LOG_QTHRESHOLD = 0x4 + NFTA_LOG_LEVEL = 0x5 + NFTA_LOG_FLAGS = 0x6 + NFTA_QUEUE_UNSPEC = 0x0 + NFTA_QUEUE_NUM = 0x1 + NFTA_QUEUE_TOTAL = 0x2 + NFTA_QUEUE_FLAGS = 0x3 + NFTA_QUEUE_SREG_QNUM = 0x4 + NFT_QUOTA_F_INV = 0x1 + NFT_QUOTA_F_DEPLETED = 0x2 + NFTA_QUOTA_UNSPEC = 0x0 + NFTA_QUOTA_BYTES = 0x1 + NFTA_QUOTA_FLAGS = 0x2 + NFTA_QUOTA_PAD = 0x3 + NFTA_QUOTA_CONSUMED = 0x4 + NFT_REJECT_ICMP_UNREACH = 0x0 + NFT_REJECT_TCP_RST = 0x1 + NFT_REJECT_ICMPX_UNREACH = 0x2 + NFT_REJECT_ICMPX_NO_ROUTE = 0x0 + NFT_REJECT_ICMPX_PORT_UNREACH = 0x1 + NFT_REJECT_ICMPX_HOST_UNREACH = 0x2 + NFT_REJECT_ICMPX_ADMIN_PROHIBITED = 0x3 + NFTA_REJECT_UNSPEC = 0x0 + NFTA_REJECT_TYPE = 0x1 + NFTA_REJECT_ICMP_CODE = 0x2 + NFT_NAT_SNAT = 0x0 + NFT_NAT_DNAT = 0x1 + NFTA_NAT_UNSPEC = 0x0 + NFTA_NAT_TYPE = 0x1 + NFTA_NAT_FAMILY = 0x2 + NFTA_NAT_REG_ADDR_MIN = 0x3 + NFTA_NAT_REG_ADDR_MAX = 0x4 + NFTA_NAT_REG_PROTO_MIN = 0x5 + NFTA_NAT_REG_PROTO_MAX = 0x6 + NFTA_NAT_FLAGS = 0x7 + NFTA_MASQ_UNSPEC = 0x0 + NFTA_MASQ_FLAGS = 0x1 + NFTA_MASQ_REG_PROTO_MIN = 0x2 + NFTA_MASQ_REG_PROTO_MAX = 0x3 + NFTA_REDIR_UNSPEC = 0x0 + NFTA_REDIR_REG_PROTO_MIN = 0x1 + NFTA_REDIR_REG_PROTO_MAX = 0x2 + NFTA_REDIR_FLAGS = 0x3 + NFTA_DUP_UNSPEC = 0x0 + NFTA_DUP_SREG_ADDR = 0x1 + NFTA_DUP_SREG_DEV = 0x2 + NFTA_FWD_UNSPEC = 0x0 + NFTA_FWD_SREG_DEV = 0x1 + NFTA_OBJREF_UNSPEC = 0x0 + NFTA_OBJREF_IMM_TYPE = 0x1 + NFTA_OBJREF_IMM_NAME = 0x2 + NFTA_OBJREF_SET_SREG = 0x3 + NFTA_OBJREF_SET_NAME = 0x4 + NFTA_OBJREF_SET_ID = 0x5 + NFTA_GEN_UNSPEC = 0x0 + NFTA_GEN_ID = 0x1 + NFTA_GEN_PROC_PID = 0x2 + NFTA_GEN_PROC_NAME = 0x3 + NFTA_FIB_UNSPEC = 0x0 + NFTA_FIB_DREG = 0x1 + NFTA_FIB_RESULT = 0x2 + NFTA_FIB_FLAGS = 0x3 + NFT_FIB_RESULT_UNSPEC = 0x0 + NFT_FIB_RESULT_OIF = 0x1 + NFT_FIB_RESULT_OIFNAME = 0x2 + NFT_FIB_RESULT_ADDRTYPE = 0x3 + NFTA_FIB_F_SADDR = 0x1 + NFTA_FIB_F_DADDR = 0x2 + NFTA_FIB_F_MARK = 0x4 + NFTA_FIB_F_IIF = 0x8 + NFTA_FIB_F_OIF = 0x10 + NFTA_FIB_F_PRESENT = 0x20 + NFTA_CT_HELPER_UNSPEC = 0x0 + NFTA_CT_HELPER_NAME = 0x1 + NFTA_CT_HELPER_L3PROTO = 0x2 + NFTA_CT_HELPER_L4PROTO = 0x3 + NFTA_OBJ_UNSPEC = 0x0 + NFTA_OBJ_TABLE = 0x1 + NFTA_OBJ_NAME = 0x2 + NFTA_OBJ_TYPE = 0x3 + NFTA_OBJ_DATA = 0x4 + NFTA_OBJ_USE = 0x5 + NFTA_TRACE_UNSPEC = 0x0 + NFTA_TRACE_TABLE = 0x1 + NFTA_TRACE_CHAIN = 0x2 + NFTA_TRACE_RULE_HANDLE = 0x3 + NFTA_TRACE_TYPE = 0x4 + NFTA_TRACE_VERDICT = 0x5 + NFTA_TRACE_ID = 0x6 + NFTA_TRACE_LL_HEADER = 0x7 + NFTA_TRACE_NETWORK_HEADER = 0x8 + NFTA_TRACE_TRANSPORT_HEADER = 0x9 + NFTA_TRACE_IIF = 0xa + NFTA_TRACE_IIFTYPE = 0xb + NFTA_TRACE_OIF = 0xc + NFTA_TRACE_OIFTYPE = 0xd + NFTA_TRACE_MARK = 0xe + NFTA_TRACE_NFPROTO = 0xf + NFTA_TRACE_POLICY = 0x10 + NFTA_TRACE_PAD = 0x11 + NFT_TRACETYPE_UNSPEC = 0x0 + NFT_TRACETYPE_POLICY = 0x1 + NFT_TRACETYPE_RETURN = 0x2 + NFT_TRACETYPE_RULE = 0x3 + NFTA_NG_UNSPEC = 0x0 + NFTA_NG_DREG = 0x1 + NFTA_NG_MODULUS = 0x2 + NFTA_NG_TYPE = 0x3 + NFTA_NG_OFFSET = 0x4 + NFT_NG_INCREMENTAL = 0x0 + NFT_NG_RANDOM = 0x1 +) + +const ( + NFTA_TARGET_UNSPEC = 0x0 + NFTA_TARGET_NAME = 0x1 + NFTA_TARGET_REV = 0x2 + NFTA_TARGET_INFO = 0x3 + NFTA_MATCH_UNSPEC = 0x0 + NFTA_MATCH_NAME = 0x1 + NFTA_MATCH_REV = 0x2 + NFTA_MATCH_INFO = 0x3 + NFTA_COMPAT_UNSPEC = 0x0 + NFTA_COMPAT_NAME = 0x1 + NFTA_COMPAT_REV = 0x2 + NFTA_COMPAT_TYPE = 0x3 +) + +type RTCTime struct { + Sec int32 + Min int32 + Hour int32 + Mday int32 + Mon int32 + Year int32 + Wday int32 + Yday int32 + Isdst int32 +} + +type RTCWkAlrm struct { + Enabled uint8 + Pending uint8 + Time RTCTime +} + +type BlkpgIoctlArg struct { + Op int32 + Flags int32 + Datalen int32 + Data *byte +} + +const ( + BLKPG_ADD_PARTITION = 0x1 + BLKPG_DEL_PARTITION = 0x2 + BLKPG_RESIZE_PARTITION = 0x3 +) + +const ( + NETNSA_NONE = 0x0 + NETNSA_NSID = 0x1 + NETNSA_PID = 0x2 + NETNSA_FD = 0x3 + NETNSA_TARGET_NSID = 0x4 + NETNSA_CURRENT_NSID = 0x5 +) + +type XDPRingOffset struct { + Producer uint64 + Consumer uint64 + Desc uint64 + Flags uint64 +} + +type XDPMmapOffsets struct { + Rx XDPRingOffset + Tx XDPRingOffset + Fr XDPRingOffset + Cr XDPRingOffset +} + +type XDPStatistics struct { + Rx_dropped uint64 + Rx_invalid_descs uint64 + Tx_invalid_descs uint64 + Rx_ring_full uint64 + Rx_fill_ring_empty_descs uint64 + Tx_ring_empty_descs uint64 +} + +type XDPDesc struct { + Addr uint64 + Len uint32 + Options uint32 +} + +const ( + NCSI_CMD_UNSPEC = 0x0 + NCSI_CMD_PKG_INFO = 0x1 + NCSI_CMD_SET_INTERFACE = 0x2 + NCSI_CMD_CLEAR_INTERFACE = 0x3 + NCSI_ATTR_UNSPEC = 0x0 + NCSI_ATTR_IFINDEX = 0x1 + NCSI_ATTR_PACKAGE_LIST = 0x2 + NCSI_ATTR_PACKAGE_ID = 0x3 + NCSI_ATTR_CHANNEL_ID = 0x4 + NCSI_PKG_ATTR_UNSPEC = 0x0 + NCSI_PKG_ATTR = 0x1 + NCSI_PKG_ATTR_ID = 0x2 + NCSI_PKG_ATTR_FORCED = 0x3 + NCSI_PKG_ATTR_CHANNEL_LIST = 0x4 + NCSI_CHANNEL_ATTR_UNSPEC = 0x0 + NCSI_CHANNEL_ATTR = 0x1 + NCSI_CHANNEL_ATTR_ID = 0x2 + NCSI_CHANNEL_ATTR_VERSION_MAJOR = 0x3 + NCSI_CHANNEL_ATTR_VERSION_MINOR = 0x4 + NCSI_CHANNEL_ATTR_VERSION_STR = 0x5 + NCSI_CHANNEL_ATTR_LINK_STATE = 0x6 + NCSI_CHANNEL_ATTR_ACTIVE = 0x7 + NCSI_CHANNEL_ATTR_FORCED = 0x8 + NCSI_CHANNEL_ATTR_VLAN_LIST = 0x9 + NCSI_CHANNEL_ATTR_VLAN_ID = 0xa +) + +type ScmTimestamping struct { + Ts [3]Timespec +} + +const ( + SOF_TIMESTAMPING_TX_HARDWARE = 0x1 + SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 + SOF_TIMESTAMPING_RX_HARDWARE = 0x4 + SOF_TIMESTAMPING_RX_SOFTWARE = 0x8 + SOF_TIMESTAMPING_SOFTWARE = 0x10 + SOF_TIMESTAMPING_SYS_HARDWARE = 0x20 + SOF_TIMESTAMPING_RAW_HARDWARE = 0x40 + SOF_TIMESTAMPING_OPT_ID = 0x80 + SOF_TIMESTAMPING_TX_SCHED = 0x100 + SOF_TIMESTAMPING_TX_ACK = 0x200 + SOF_TIMESTAMPING_OPT_CMSG = 0x400 + SOF_TIMESTAMPING_OPT_TSONLY = 0x800 + SOF_TIMESTAMPING_OPT_STATS = 0x1000 + SOF_TIMESTAMPING_OPT_PKTINFO = 0x2000 + SOF_TIMESTAMPING_OPT_TX_SWHW = 0x4000 + + SOF_TIMESTAMPING_LAST = 0x8000 + SOF_TIMESTAMPING_MASK = 0xffff + + SCM_TSTAMP_SND = 0x0 + SCM_TSTAMP_SCHED = 0x1 + SCM_TSTAMP_ACK = 0x2 +) + +type SockExtendedErr struct { + Errno uint32 + Origin uint8 + Type uint8 + Code uint8 + Pad uint8 + Info uint32 + Data uint32 +} + +type FanotifyEventMetadata struct { + Event_len uint32 + Vers uint8 + Reserved uint8 + Metadata_len uint16 + Mask uint64 + Fd int32 + Pid int32 +} + +type FanotifyResponse struct { + Fd int32 + Response uint32 +} + +const ( + CRYPTO_MSG_BASE = 0x10 + CRYPTO_MSG_NEWALG = 0x10 + CRYPTO_MSG_DELALG = 0x11 + CRYPTO_MSG_UPDATEALG = 0x12 + CRYPTO_MSG_GETALG = 0x13 + CRYPTO_MSG_DELRNG = 0x14 + CRYPTO_MSG_GETSTAT = 0x15 +) + +const ( + CRYPTOCFGA_UNSPEC = 0x0 + CRYPTOCFGA_PRIORITY_VAL = 0x1 + CRYPTOCFGA_REPORT_LARVAL = 0x2 + CRYPTOCFGA_REPORT_HASH = 0x3 + CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 + CRYPTOCFGA_REPORT_AEAD = 0x5 + CRYPTOCFGA_REPORT_COMPRESS = 0x6 + CRYPTOCFGA_REPORT_RNG = 0x7 + CRYPTOCFGA_REPORT_CIPHER = 0x8 + CRYPTOCFGA_REPORT_AKCIPHER = 0x9 + CRYPTOCFGA_REPORT_KPP = 0xa + CRYPTOCFGA_REPORT_ACOMP = 0xb + CRYPTOCFGA_STAT_LARVAL = 0xc + CRYPTOCFGA_STAT_HASH = 0xd + CRYPTOCFGA_STAT_BLKCIPHER = 0xe + CRYPTOCFGA_STAT_AEAD = 0xf + CRYPTOCFGA_STAT_COMPRESS = 0x10 + CRYPTOCFGA_STAT_RNG = 0x11 + CRYPTOCFGA_STAT_CIPHER = 0x12 + CRYPTOCFGA_STAT_AKCIPHER = 0x13 + CRYPTOCFGA_STAT_KPP = 0x14 + CRYPTOCFGA_STAT_ACOMP = 0x15 +) + +const ( + BPF_REG_0 = 0x0 + BPF_REG_1 = 0x1 + BPF_REG_2 = 0x2 + BPF_REG_3 = 0x3 + BPF_REG_4 = 0x4 + BPF_REG_5 = 0x5 + BPF_REG_6 = 0x6 + BPF_REG_7 = 0x7 + BPF_REG_8 = 0x8 + BPF_REG_9 = 0x9 + BPF_REG_10 = 0xa + BPF_MAP_CREATE = 0x0 + BPF_MAP_LOOKUP_ELEM = 0x1 + BPF_MAP_UPDATE_ELEM = 0x2 + BPF_MAP_DELETE_ELEM = 0x3 + BPF_MAP_GET_NEXT_KEY = 0x4 + BPF_PROG_LOAD = 0x5 + BPF_OBJ_PIN = 0x6 + BPF_OBJ_GET = 0x7 + BPF_PROG_ATTACH = 0x8 + BPF_PROG_DETACH = 0x9 + BPF_PROG_TEST_RUN = 0xa + BPF_PROG_GET_NEXT_ID = 0xb + BPF_MAP_GET_NEXT_ID = 0xc + BPF_PROG_GET_FD_BY_ID = 0xd + BPF_MAP_GET_FD_BY_ID = 0xe + BPF_OBJ_GET_INFO_BY_FD = 0xf + BPF_PROG_QUERY = 0x10 + BPF_RAW_TRACEPOINT_OPEN = 0x11 + BPF_BTF_LOAD = 0x12 + BPF_BTF_GET_FD_BY_ID = 0x13 + BPF_TASK_FD_QUERY = 0x14 + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 + BPF_MAP_FREEZE = 0x16 + BPF_BTF_GET_NEXT_ID = 0x17 + BPF_MAP_LOOKUP_BATCH = 0x18 + BPF_MAP_LOOKUP_AND_DELETE_BATCH = 0x19 + BPF_MAP_UPDATE_BATCH = 0x1a + BPF_MAP_DELETE_BATCH = 0x1b + BPF_LINK_CREATE = 0x1c + BPF_LINK_UPDATE = 0x1d + BPF_LINK_GET_FD_BY_ID = 0x1e + BPF_LINK_GET_NEXT_ID = 0x1f + BPF_ENABLE_STATS = 0x20 + BPF_ITER_CREATE = 0x21 + BPF_LINK_DETACH = 0x22 + BPF_PROG_BIND_MAP = 0x23 + BPF_MAP_TYPE_UNSPEC = 0x0 + BPF_MAP_TYPE_HASH = 0x1 + BPF_MAP_TYPE_ARRAY = 0x2 + BPF_MAP_TYPE_PROG_ARRAY = 0x3 + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 + BPF_MAP_TYPE_PERCPU_HASH = 0x5 + BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 + BPF_MAP_TYPE_STACK_TRACE = 0x7 + BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 + BPF_MAP_TYPE_LRU_HASH = 0x9 + BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa + BPF_MAP_TYPE_LPM_TRIE = 0xb + BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc + BPF_MAP_TYPE_HASH_OF_MAPS = 0xd + BPF_MAP_TYPE_DEVMAP = 0xe + BPF_MAP_TYPE_SOCKMAP = 0xf + BPF_MAP_TYPE_CPUMAP = 0x10 + BPF_MAP_TYPE_XSKMAP = 0x11 + BPF_MAP_TYPE_SOCKHASH = 0x12 + BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 + BPF_MAP_TYPE_QUEUE = 0x16 + BPF_MAP_TYPE_STACK = 0x17 + BPF_MAP_TYPE_SK_STORAGE = 0x18 + BPF_MAP_TYPE_DEVMAP_HASH = 0x19 + BPF_MAP_TYPE_STRUCT_OPS = 0x1a + BPF_MAP_TYPE_RINGBUF = 0x1b + BPF_MAP_TYPE_INODE_STORAGE = 0x1c + BPF_PROG_TYPE_UNSPEC = 0x0 + BPF_PROG_TYPE_SOCKET_FILTER = 0x1 + BPF_PROG_TYPE_KPROBE = 0x2 + BPF_PROG_TYPE_SCHED_CLS = 0x3 + BPF_PROG_TYPE_SCHED_ACT = 0x4 + BPF_PROG_TYPE_TRACEPOINT = 0x5 + BPF_PROG_TYPE_XDP = 0x6 + BPF_PROG_TYPE_PERF_EVENT = 0x7 + BPF_PROG_TYPE_CGROUP_SKB = 0x8 + BPF_PROG_TYPE_CGROUP_SOCK = 0x9 + BPF_PROG_TYPE_LWT_IN = 0xa + BPF_PROG_TYPE_LWT_OUT = 0xb + BPF_PROG_TYPE_LWT_XMIT = 0xc + BPF_PROG_TYPE_SOCK_OPS = 0xd + BPF_PROG_TYPE_SK_SKB = 0xe + BPF_PROG_TYPE_CGROUP_DEVICE = 0xf + BPF_PROG_TYPE_SK_MSG = 0x10 + BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 + BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 + BPF_PROG_TYPE_LIRC_MODE2 = 0x14 + BPF_PROG_TYPE_SK_REUSEPORT = 0x15 + BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 + BPF_PROG_TYPE_CGROUP_SYSCTL = 0x17 + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 0x18 + BPF_PROG_TYPE_CGROUP_SOCKOPT = 0x19 + BPF_PROG_TYPE_TRACING = 0x1a + BPF_PROG_TYPE_STRUCT_OPS = 0x1b + BPF_PROG_TYPE_EXT = 0x1c + BPF_PROG_TYPE_LSM = 0x1d + BPF_PROG_TYPE_SK_LOOKUP = 0x1e + BPF_CGROUP_INET_INGRESS = 0x0 + BPF_CGROUP_INET_EGRESS = 0x1 + BPF_CGROUP_INET_SOCK_CREATE = 0x2 + BPF_CGROUP_SOCK_OPS = 0x3 + BPF_SK_SKB_STREAM_PARSER = 0x4 + BPF_SK_SKB_STREAM_VERDICT = 0x5 + BPF_CGROUP_DEVICE = 0x6 + BPF_SK_MSG_VERDICT = 0x7 + BPF_CGROUP_INET4_BIND = 0x8 + BPF_CGROUP_INET6_BIND = 0x9 + BPF_CGROUP_INET4_CONNECT = 0xa + BPF_CGROUP_INET6_CONNECT = 0xb + BPF_CGROUP_INET4_POST_BIND = 0xc + BPF_CGROUP_INET6_POST_BIND = 0xd + BPF_CGROUP_UDP4_SENDMSG = 0xe + BPF_CGROUP_UDP6_SENDMSG = 0xf + BPF_LIRC_MODE2 = 0x10 + BPF_FLOW_DISSECTOR = 0x11 + BPF_CGROUP_SYSCTL = 0x12 + BPF_CGROUP_UDP4_RECVMSG = 0x13 + BPF_CGROUP_UDP6_RECVMSG = 0x14 + BPF_CGROUP_GETSOCKOPT = 0x15 + BPF_CGROUP_SETSOCKOPT = 0x16 + BPF_TRACE_RAW_TP = 0x17 + BPF_TRACE_FENTRY = 0x18 + BPF_TRACE_FEXIT = 0x19 + BPF_MODIFY_RETURN = 0x1a + BPF_LSM_MAC = 0x1b + BPF_TRACE_ITER = 0x1c + BPF_CGROUP_INET4_GETPEERNAME = 0x1d + BPF_CGROUP_INET6_GETPEERNAME = 0x1e + BPF_CGROUP_INET4_GETSOCKNAME = 0x1f + BPF_CGROUP_INET6_GETSOCKNAME = 0x20 + BPF_XDP_DEVMAP = 0x21 + BPF_CGROUP_INET_SOCK_RELEASE = 0x22 + BPF_XDP_CPUMAP = 0x23 + BPF_SK_LOOKUP = 0x24 + BPF_XDP = 0x25 + BPF_LINK_TYPE_UNSPEC = 0x0 + BPF_LINK_TYPE_RAW_TRACEPOINT = 0x1 + BPF_LINK_TYPE_TRACING = 0x2 + BPF_LINK_TYPE_CGROUP = 0x3 + BPF_LINK_TYPE_ITER = 0x4 + BPF_LINK_TYPE_NETNS = 0x5 + BPF_LINK_TYPE_XDP = 0x6 + BPF_ANY = 0x0 + BPF_NOEXIST = 0x1 + BPF_EXIST = 0x2 + BPF_F_LOCK = 0x4 + BPF_F_NO_PREALLOC = 0x1 + BPF_F_NO_COMMON_LRU = 0x2 + BPF_F_NUMA_NODE = 0x4 + BPF_F_RDONLY = 0x8 + BPF_F_WRONLY = 0x10 + BPF_F_STACK_BUILD_ID = 0x20 + BPF_F_ZERO_SEED = 0x40 + BPF_F_RDONLY_PROG = 0x80 + BPF_F_WRONLY_PROG = 0x100 + BPF_F_CLONE = 0x200 + BPF_F_MMAPABLE = 0x400 + BPF_F_PRESERVE_ELEMS = 0x800 + BPF_F_INNER_MAP = 0x1000 + BPF_STATS_RUN_TIME = 0x0 + BPF_STACK_BUILD_ID_EMPTY = 0x0 + BPF_STACK_BUILD_ID_VALID = 0x1 + BPF_STACK_BUILD_ID_IP = 0x2 + BPF_F_RECOMPUTE_CSUM = 0x1 + BPF_F_INVALIDATE_HASH = 0x2 + BPF_F_HDR_FIELD_MASK = 0xf + BPF_F_PSEUDO_HDR = 0x10 + BPF_F_MARK_MANGLED_0 = 0x20 + BPF_F_MARK_ENFORCE = 0x40 + BPF_F_INGRESS = 0x1 + BPF_F_TUNINFO_IPV6 = 0x1 + BPF_F_SKIP_FIELD_MASK = 0xff + BPF_F_USER_STACK = 0x100 + BPF_F_FAST_STACK_CMP = 0x200 + BPF_F_REUSE_STACKID = 0x400 + BPF_F_USER_BUILD_ID = 0x800 + BPF_F_ZERO_CSUM_TX = 0x2 + BPF_F_DONT_FRAGMENT = 0x4 + BPF_F_SEQ_NUMBER = 0x8 + BPF_F_INDEX_MASK = 0xffffffff + BPF_F_CURRENT_CPU = 0xffffffff + BPF_F_CTXLEN_MASK = 0xfffff00000000 + BPF_F_CURRENT_NETNS = -0x1 + BPF_CSUM_LEVEL_QUERY = 0x0 + BPF_CSUM_LEVEL_INC = 0x1 + BPF_CSUM_LEVEL_DEC = 0x2 + BPF_CSUM_LEVEL_RESET = 0x3 + BPF_F_ADJ_ROOM_FIXED_GSO = 0x1 + BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2 + BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4 + BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8 + BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10 + BPF_F_ADJ_ROOM_NO_CSUM_RESET = 0x20 + BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff + BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38 + BPF_F_SYSCTL_BASE_NAME = 0x1 + BPF_LOCAL_STORAGE_GET_F_CREATE = 0x1 + BPF_SK_STORAGE_GET_F_CREATE = 0x1 + BPF_F_GET_BRANCH_RECORDS_SIZE = 0x1 + BPF_RB_NO_WAKEUP = 0x1 + BPF_RB_FORCE_WAKEUP = 0x2 + BPF_RB_AVAIL_DATA = 0x0 + BPF_RB_RING_SIZE = 0x1 + BPF_RB_CONS_POS = 0x2 + BPF_RB_PROD_POS = 0x3 + BPF_RINGBUF_BUSY_BIT = 0x80000000 + BPF_RINGBUF_DISCARD_BIT = 0x40000000 + BPF_RINGBUF_HDR_SZ = 0x8 + BPF_SK_LOOKUP_F_REPLACE = 0x1 + BPF_SK_LOOKUP_F_NO_REUSEPORT = 0x2 + BPF_ADJ_ROOM_NET = 0x0 + BPF_ADJ_ROOM_MAC = 0x1 + BPF_HDR_START_MAC = 0x0 + BPF_HDR_START_NET = 0x1 + BPF_LWT_ENCAP_SEG6 = 0x0 + BPF_LWT_ENCAP_SEG6_INLINE = 0x1 + BPF_LWT_ENCAP_IP = 0x2 + BPF_OK = 0x0 + BPF_DROP = 0x2 + BPF_REDIRECT = 0x7 + BPF_LWT_REROUTE = 0x80 + BPF_SOCK_OPS_RTO_CB_FLAG = 0x1 + BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2 + BPF_SOCK_OPS_STATE_CB_FLAG = 0x4 + BPF_SOCK_OPS_RTT_CB_FLAG = 0x8 + BPF_SOCK_OPS_PARSE_ALL_HDR_OPT_CB_FLAG = 0x10 + BPF_SOCK_OPS_PARSE_UNKNOWN_HDR_OPT_CB_FLAG = 0x20 + BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG = 0x40 + BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7f + BPF_SOCK_OPS_VOID = 0x0 + BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 + BPF_SOCK_OPS_RWND_INIT = 0x2 + BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 + BPF_SOCK_OPS_NEEDS_ECN = 0x6 + BPF_SOCK_OPS_BASE_RTT = 0x7 + BPF_SOCK_OPS_RTO_CB = 0x8 + BPF_SOCK_OPS_RETRANS_CB = 0x9 + BPF_SOCK_OPS_STATE_CB = 0xa + BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb + BPF_SOCK_OPS_RTT_CB = 0xc + BPF_SOCK_OPS_PARSE_HDR_OPT_CB = 0xd + BPF_SOCK_OPS_HDR_OPT_LEN_CB = 0xe + BPF_SOCK_OPS_WRITE_HDR_OPT_CB = 0xf + BPF_TCP_ESTABLISHED = 0x1 + BPF_TCP_SYN_SENT = 0x2 + BPF_TCP_SYN_RECV = 0x3 + BPF_TCP_FIN_WAIT1 = 0x4 + BPF_TCP_FIN_WAIT2 = 0x5 + BPF_TCP_TIME_WAIT = 0x6 + BPF_TCP_CLOSE = 0x7 + BPF_TCP_CLOSE_WAIT = 0x8 + BPF_TCP_LAST_ACK = 0x9 + BPF_TCP_LISTEN = 0xa + BPF_TCP_CLOSING = 0xb + BPF_TCP_NEW_SYN_RECV = 0xc + BPF_TCP_MAX_STATES = 0xd + TCP_BPF_IW = 0x3e9 + TCP_BPF_SNDCWND_CLAMP = 0x3ea + TCP_BPF_DELACK_MAX = 0x3eb + TCP_BPF_RTO_MIN = 0x3ec + TCP_BPF_SYN = 0x3ed + TCP_BPF_SYN_IP = 0x3ee + TCP_BPF_SYN_MAC = 0x3ef + BPF_LOAD_HDR_OPT_TCP_SYN = 0x1 + BPF_WRITE_HDR_TCP_CURRENT_MSS = 0x1 + BPF_WRITE_HDR_TCP_SYNACK_COOKIE = 0x2 + BPF_DEVCG_ACC_MKNOD = 0x1 + BPF_DEVCG_ACC_READ = 0x2 + BPF_DEVCG_ACC_WRITE = 0x4 + BPF_DEVCG_DEV_BLOCK = 0x1 + BPF_DEVCG_DEV_CHAR = 0x2 + BPF_FIB_LOOKUP_DIRECT = 0x1 + BPF_FIB_LOOKUP_OUTPUT = 0x2 + BPF_FIB_LKUP_RET_SUCCESS = 0x0 + BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 + BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 + BPF_FIB_LKUP_RET_PROHIBIT = 0x3 + BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 + BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 + BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 + BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 + BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 + BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 + BPF_FD_TYPE_TRACEPOINT = 0x1 + BPF_FD_TYPE_KPROBE = 0x2 + BPF_FD_TYPE_KRETPROBE = 0x3 + BPF_FD_TYPE_UPROBE = 0x4 + BPF_FD_TYPE_URETPROBE = 0x5 + BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = 0x1 + BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = 0x2 + BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = 0x4 +) + +const ( + RTNLGRP_NONE = 0x0 + RTNLGRP_LINK = 0x1 + RTNLGRP_NOTIFY = 0x2 + RTNLGRP_NEIGH = 0x3 + RTNLGRP_TC = 0x4 + RTNLGRP_IPV4_IFADDR = 0x5 + RTNLGRP_IPV4_MROUTE = 0x6 + RTNLGRP_IPV4_ROUTE = 0x7 + RTNLGRP_IPV4_RULE = 0x8 + RTNLGRP_IPV6_IFADDR = 0x9 + RTNLGRP_IPV6_MROUTE = 0xa + RTNLGRP_IPV6_ROUTE = 0xb + RTNLGRP_IPV6_IFINFO = 0xc + RTNLGRP_DECnet_IFADDR = 0xd + RTNLGRP_NOP2 = 0xe + RTNLGRP_DECnet_ROUTE = 0xf + RTNLGRP_DECnet_RULE = 0x10 + RTNLGRP_NOP4 = 0x11 + RTNLGRP_IPV6_PREFIX = 0x12 + RTNLGRP_IPV6_RULE = 0x13 + RTNLGRP_ND_USEROPT = 0x14 + RTNLGRP_PHONET_IFADDR = 0x15 + RTNLGRP_PHONET_ROUTE = 0x16 + RTNLGRP_DCB = 0x17 + RTNLGRP_IPV4_NETCONF = 0x18 + RTNLGRP_IPV6_NETCONF = 0x19 + RTNLGRP_MDB = 0x1a + RTNLGRP_MPLS_ROUTE = 0x1b + RTNLGRP_NSID = 0x1c + RTNLGRP_MPLS_NETCONF = 0x1d + RTNLGRP_IPV4_MROUTE_R = 0x1e + RTNLGRP_IPV6_MROUTE_R = 0x1f + RTNLGRP_NEXTHOP = 0x20 + RTNLGRP_BRVLAN = 0x21 +) + +type CapUserHeader struct { + Version uint32 + Pid int32 +} + +type CapUserData struct { + Effective uint32 + Permitted uint32 + Inheritable uint32 +} + +const ( + LINUX_CAPABILITY_VERSION_1 = 0x19980330 + LINUX_CAPABILITY_VERSION_2 = 0x20071026 + LINUX_CAPABILITY_VERSION_3 = 0x20080522 +) + +const ( + LO_FLAGS_READ_ONLY = 0x1 + LO_FLAGS_AUTOCLEAR = 0x4 + LO_FLAGS_PARTSCAN = 0x8 + LO_FLAGS_DIRECT_IO = 0x10 +) + +type LoopInfo64 struct { + Device uint64 + Inode uint64 + Rdevice uint64 + Offset uint64 + Sizelimit uint64 + Number uint32 + Encrypt_type uint32 + Encrypt_key_size uint32 + Flags uint32 + File_name [64]uint8 + Crypt_name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 +} + +type TIPCSocketAddr struct { + Ref uint32 + Node uint32 +} + +type TIPCServiceRange struct { + Type uint32 + Lower uint32 + Upper uint32 +} + +type TIPCServiceName struct { + Type uint32 + Instance uint32 + Domain uint32 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +const ( + TIPC_CLUSTER_SCOPE = 0x2 + TIPC_NODE_SCOPE = 0x3 +) + +const ( + SYSLOG_ACTION_CLOSE = 0 + SYSLOG_ACTION_OPEN = 1 + SYSLOG_ACTION_READ = 2 + SYSLOG_ACTION_READ_ALL = 3 + SYSLOG_ACTION_READ_CLEAR = 4 + SYSLOG_ACTION_CLEAR = 5 + SYSLOG_ACTION_CONSOLE_OFF = 6 + SYSLOG_ACTION_CONSOLE_ON = 7 + SYSLOG_ACTION_CONSOLE_LEVEL = 8 + SYSLOG_ACTION_SIZE_UNREAD = 9 + SYSLOG_ACTION_SIZE_BUFFER = 10 +) + +const ( + DEVLINK_CMD_UNSPEC = 0x0 + DEVLINK_CMD_GET = 0x1 + DEVLINK_CMD_SET = 0x2 + DEVLINK_CMD_NEW = 0x3 + DEVLINK_CMD_DEL = 0x4 + DEVLINK_CMD_PORT_GET = 0x5 + DEVLINK_CMD_PORT_SET = 0x6 + DEVLINK_CMD_PORT_NEW = 0x7 + DEVLINK_CMD_PORT_DEL = 0x8 + DEVLINK_CMD_PORT_SPLIT = 0x9 + DEVLINK_CMD_PORT_UNSPLIT = 0xa + DEVLINK_CMD_SB_GET = 0xb + DEVLINK_CMD_SB_SET = 0xc + DEVLINK_CMD_SB_NEW = 0xd + DEVLINK_CMD_SB_DEL = 0xe + DEVLINK_CMD_SB_POOL_GET = 0xf + DEVLINK_CMD_SB_POOL_SET = 0x10 + DEVLINK_CMD_SB_POOL_NEW = 0x11 + DEVLINK_CMD_SB_POOL_DEL = 0x12 + DEVLINK_CMD_SB_PORT_POOL_GET = 0x13 + DEVLINK_CMD_SB_PORT_POOL_SET = 0x14 + DEVLINK_CMD_SB_PORT_POOL_NEW = 0x15 + DEVLINK_CMD_SB_PORT_POOL_DEL = 0x16 + DEVLINK_CMD_SB_TC_POOL_BIND_GET = 0x17 + DEVLINK_CMD_SB_TC_POOL_BIND_SET = 0x18 + DEVLINK_CMD_SB_TC_POOL_BIND_NEW = 0x19 + DEVLINK_CMD_SB_TC_POOL_BIND_DEL = 0x1a + DEVLINK_CMD_SB_OCC_SNAPSHOT = 0x1b + DEVLINK_CMD_SB_OCC_MAX_CLEAR = 0x1c + DEVLINK_CMD_ESWITCH_GET = 0x1d + DEVLINK_CMD_ESWITCH_SET = 0x1e + DEVLINK_CMD_DPIPE_TABLE_GET = 0x1f + DEVLINK_CMD_DPIPE_ENTRIES_GET = 0x20 + DEVLINK_CMD_DPIPE_HEADERS_GET = 0x21 + DEVLINK_CMD_DPIPE_TABLE_COUNTERS_SET = 0x22 + DEVLINK_CMD_RESOURCE_SET = 0x23 + DEVLINK_CMD_RESOURCE_DUMP = 0x24 + DEVLINK_CMD_RELOAD = 0x25 + DEVLINK_CMD_PARAM_GET = 0x26 + DEVLINK_CMD_PARAM_SET = 0x27 + DEVLINK_CMD_PARAM_NEW = 0x28 + DEVLINK_CMD_PARAM_DEL = 0x29 + DEVLINK_CMD_REGION_GET = 0x2a + DEVLINK_CMD_REGION_SET = 0x2b + DEVLINK_CMD_REGION_NEW = 0x2c + DEVLINK_CMD_REGION_DEL = 0x2d + DEVLINK_CMD_REGION_READ = 0x2e + DEVLINK_CMD_PORT_PARAM_GET = 0x2f + DEVLINK_CMD_PORT_PARAM_SET = 0x30 + DEVLINK_CMD_PORT_PARAM_NEW = 0x31 + DEVLINK_CMD_PORT_PARAM_DEL = 0x32 + DEVLINK_CMD_INFO_GET = 0x33 + DEVLINK_CMD_HEALTH_REPORTER_GET = 0x34 + DEVLINK_CMD_HEALTH_REPORTER_SET = 0x35 + DEVLINK_CMD_HEALTH_REPORTER_RECOVER = 0x36 + DEVLINK_CMD_HEALTH_REPORTER_DIAGNOSE = 0x37 + DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET = 0x38 + DEVLINK_CMD_HEALTH_REPORTER_DUMP_CLEAR = 0x39 + DEVLINK_CMD_FLASH_UPDATE = 0x3a + DEVLINK_CMD_FLASH_UPDATE_END = 0x3b + DEVLINK_CMD_FLASH_UPDATE_STATUS = 0x3c + DEVLINK_CMD_TRAP_GET = 0x3d + DEVLINK_CMD_TRAP_SET = 0x3e + DEVLINK_CMD_TRAP_NEW = 0x3f + DEVLINK_CMD_TRAP_DEL = 0x40 + DEVLINK_CMD_TRAP_GROUP_GET = 0x41 + DEVLINK_CMD_TRAP_GROUP_SET = 0x42 + DEVLINK_CMD_TRAP_GROUP_NEW = 0x43 + DEVLINK_CMD_TRAP_GROUP_DEL = 0x44 + DEVLINK_CMD_TRAP_POLICER_GET = 0x45 + DEVLINK_CMD_TRAP_POLICER_SET = 0x46 + DEVLINK_CMD_TRAP_POLICER_NEW = 0x47 + DEVLINK_CMD_TRAP_POLICER_DEL = 0x48 + DEVLINK_CMD_HEALTH_REPORTER_TEST = 0x49 + DEVLINK_CMD_RATE_GET = 0x4a + DEVLINK_CMD_RATE_SET = 0x4b + DEVLINK_CMD_RATE_NEW = 0x4c + DEVLINK_CMD_RATE_DEL = 0x4d + DEVLINK_CMD_LINECARD_GET = 0x4e + DEVLINK_CMD_LINECARD_SET = 0x4f + DEVLINK_CMD_LINECARD_NEW = 0x50 + DEVLINK_CMD_LINECARD_DEL = 0x51 + DEVLINK_CMD_SELFTESTS_GET = 0x52 + DEVLINK_CMD_MAX = 0x53 + DEVLINK_PORT_TYPE_NOTSET = 0x0 + DEVLINK_PORT_TYPE_AUTO = 0x1 + DEVLINK_PORT_TYPE_ETH = 0x2 + DEVLINK_PORT_TYPE_IB = 0x3 + DEVLINK_SB_POOL_TYPE_INGRESS = 0x0 + DEVLINK_SB_POOL_TYPE_EGRESS = 0x1 + DEVLINK_SB_THRESHOLD_TYPE_STATIC = 0x0 + DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC = 0x1 + DEVLINK_ESWITCH_MODE_LEGACY = 0x0 + DEVLINK_ESWITCH_MODE_SWITCHDEV = 0x1 + DEVLINK_ESWITCH_INLINE_MODE_NONE = 0x0 + DEVLINK_ESWITCH_INLINE_MODE_LINK = 0x1 + DEVLINK_ESWITCH_INLINE_MODE_NETWORK = 0x2 + DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT = 0x3 + DEVLINK_ESWITCH_ENCAP_MODE_NONE = 0x0 + DEVLINK_ESWITCH_ENCAP_MODE_BASIC = 0x1 + DEVLINK_PORT_FLAVOUR_PHYSICAL = 0x0 + DEVLINK_PORT_FLAVOUR_CPU = 0x1 + DEVLINK_PORT_FLAVOUR_DSA = 0x2 + DEVLINK_PORT_FLAVOUR_PCI_PF = 0x3 + DEVLINK_PORT_FLAVOUR_PCI_VF = 0x4 + DEVLINK_PORT_FLAVOUR_VIRTUAL = 0x5 + DEVLINK_PORT_FLAVOUR_UNUSED = 0x6 + DEVLINK_PARAM_CMODE_RUNTIME = 0x0 + DEVLINK_PARAM_CMODE_DRIVERINIT = 0x1 + DEVLINK_PARAM_CMODE_PERMANENT = 0x2 + DEVLINK_PARAM_CMODE_MAX = 0x2 + DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DRIVER = 0x0 + DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_FLASH = 0x1 + DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_DISK = 0x2 + DEVLINK_PARAM_FW_LOAD_POLICY_VALUE_UNKNOWN = 0x3 + DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_UNKNOWN = 0x0 + DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_ALWAYS = 0x1 + DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_NEVER = 0x2 + DEVLINK_PARAM_RESET_DEV_ON_DRV_PROBE_VALUE_DISK = 0x3 + DEVLINK_ATTR_STATS_RX_PACKETS = 0x0 + DEVLINK_ATTR_STATS_RX_BYTES = 0x1 + DEVLINK_ATTR_STATS_RX_DROPPED = 0x2 + DEVLINK_ATTR_STATS_MAX = 0x2 + DEVLINK_FLASH_OVERWRITE_SETTINGS_BIT = 0x0 + DEVLINK_FLASH_OVERWRITE_IDENTIFIERS_BIT = 0x1 + DEVLINK_FLASH_OVERWRITE_MAX_BIT = 0x1 + DEVLINK_TRAP_ACTION_DROP = 0x0 + DEVLINK_TRAP_ACTION_TRAP = 0x1 + DEVLINK_TRAP_ACTION_MIRROR = 0x2 + DEVLINK_TRAP_TYPE_DROP = 0x0 + DEVLINK_TRAP_TYPE_EXCEPTION = 0x1 + DEVLINK_TRAP_TYPE_CONTROL = 0x2 + DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT = 0x0 + DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE = 0x1 + DEVLINK_RELOAD_ACTION_UNSPEC = 0x0 + DEVLINK_RELOAD_ACTION_DRIVER_REINIT = 0x1 + DEVLINK_RELOAD_ACTION_FW_ACTIVATE = 0x2 + DEVLINK_RELOAD_ACTION_MAX = 0x2 + DEVLINK_RELOAD_LIMIT_UNSPEC = 0x0 + DEVLINK_RELOAD_LIMIT_NO_RESET = 0x1 + DEVLINK_RELOAD_LIMIT_MAX = 0x1 + DEVLINK_ATTR_UNSPEC = 0x0 + DEVLINK_ATTR_BUS_NAME = 0x1 + DEVLINK_ATTR_DEV_NAME = 0x2 + DEVLINK_ATTR_PORT_INDEX = 0x3 + DEVLINK_ATTR_PORT_TYPE = 0x4 + DEVLINK_ATTR_PORT_DESIRED_TYPE = 0x5 + DEVLINK_ATTR_PORT_NETDEV_IFINDEX = 0x6 + DEVLINK_ATTR_PORT_NETDEV_NAME = 0x7 + DEVLINK_ATTR_PORT_IBDEV_NAME = 0x8 + DEVLINK_ATTR_PORT_SPLIT_COUNT = 0x9 + DEVLINK_ATTR_PORT_SPLIT_GROUP = 0xa + DEVLINK_ATTR_SB_INDEX = 0xb + DEVLINK_ATTR_SB_SIZE = 0xc + DEVLINK_ATTR_SB_INGRESS_POOL_COUNT = 0xd + DEVLINK_ATTR_SB_EGRESS_POOL_COUNT = 0xe + DEVLINK_ATTR_SB_INGRESS_TC_COUNT = 0xf + DEVLINK_ATTR_SB_EGRESS_TC_COUNT = 0x10 + DEVLINK_ATTR_SB_POOL_INDEX = 0x11 + DEVLINK_ATTR_SB_POOL_TYPE = 0x12 + DEVLINK_ATTR_SB_POOL_SIZE = 0x13 + DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE = 0x14 + DEVLINK_ATTR_SB_THRESHOLD = 0x15 + DEVLINK_ATTR_SB_TC_INDEX = 0x16 + DEVLINK_ATTR_SB_OCC_CUR = 0x17 + DEVLINK_ATTR_SB_OCC_MAX = 0x18 + DEVLINK_ATTR_ESWITCH_MODE = 0x19 + DEVLINK_ATTR_ESWITCH_INLINE_MODE = 0x1a + DEVLINK_ATTR_DPIPE_TABLES = 0x1b + DEVLINK_ATTR_DPIPE_TABLE = 0x1c + DEVLINK_ATTR_DPIPE_TABLE_NAME = 0x1d + DEVLINK_ATTR_DPIPE_TABLE_SIZE = 0x1e + DEVLINK_ATTR_DPIPE_TABLE_MATCHES = 0x1f + DEVLINK_ATTR_DPIPE_TABLE_ACTIONS = 0x20 + DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED = 0x21 + DEVLINK_ATTR_DPIPE_ENTRIES = 0x22 + DEVLINK_ATTR_DPIPE_ENTRY = 0x23 + DEVLINK_ATTR_DPIPE_ENTRY_INDEX = 0x24 + DEVLINK_ATTR_DPIPE_ENTRY_MATCH_VALUES = 0x25 + DEVLINK_ATTR_DPIPE_ENTRY_ACTION_VALUES = 0x26 + DEVLINK_ATTR_DPIPE_ENTRY_COUNTER = 0x27 + DEVLINK_ATTR_DPIPE_MATCH = 0x28 + DEVLINK_ATTR_DPIPE_MATCH_VALUE = 0x29 + DEVLINK_ATTR_DPIPE_MATCH_TYPE = 0x2a + DEVLINK_ATTR_DPIPE_ACTION = 0x2b + DEVLINK_ATTR_DPIPE_ACTION_VALUE = 0x2c + DEVLINK_ATTR_DPIPE_ACTION_TYPE = 0x2d + DEVLINK_ATTR_DPIPE_VALUE = 0x2e + DEVLINK_ATTR_DPIPE_VALUE_MASK = 0x2f + DEVLINK_ATTR_DPIPE_VALUE_MAPPING = 0x30 + DEVLINK_ATTR_DPIPE_HEADERS = 0x31 + DEVLINK_ATTR_DPIPE_HEADER = 0x32 + DEVLINK_ATTR_DPIPE_HEADER_NAME = 0x33 + DEVLINK_ATTR_DPIPE_HEADER_ID = 0x34 + DEVLINK_ATTR_DPIPE_HEADER_FIELDS = 0x35 + DEVLINK_ATTR_DPIPE_HEADER_GLOBAL = 0x36 + DEVLINK_ATTR_DPIPE_HEADER_INDEX = 0x37 + DEVLINK_ATTR_DPIPE_FIELD = 0x38 + DEVLINK_ATTR_DPIPE_FIELD_NAME = 0x39 + DEVLINK_ATTR_DPIPE_FIELD_ID = 0x3a + DEVLINK_ATTR_DPIPE_FIELD_BITWIDTH = 0x3b + DEVLINK_ATTR_DPIPE_FIELD_MAPPING_TYPE = 0x3c + DEVLINK_ATTR_PAD = 0x3d + DEVLINK_ATTR_ESWITCH_ENCAP_MODE = 0x3e + DEVLINK_ATTR_RESOURCE_LIST = 0x3f + DEVLINK_ATTR_RESOURCE = 0x40 + DEVLINK_ATTR_RESOURCE_NAME = 0x41 + DEVLINK_ATTR_RESOURCE_ID = 0x42 + DEVLINK_ATTR_RESOURCE_SIZE = 0x43 + DEVLINK_ATTR_RESOURCE_SIZE_NEW = 0x44 + DEVLINK_ATTR_RESOURCE_SIZE_VALID = 0x45 + DEVLINK_ATTR_RESOURCE_SIZE_MIN = 0x46 + DEVLINK_ATTR_RESOURCE_SIZE_MAX = 0x47 + DEVLINK_ATTR_RESOURCE_SIZE_GRAN = 0x48 + DEVLINK_ATTR_RESOURCE_UNIT = 0x49 + DEVLINK_ATTR_RESOURCE_OCC = 0x4a + DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID = 0x4b + DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS = 0x4c + DEVLINK_ATTR_PORT_FLAVOUR = 0x4d + DEVLINK_ATTR_PORT_NUMBER = 0x4e + DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER = 0x4f + DEVLINK_ATTR_PARAM = 0x50 + DEVLINK_ATTR_PARAM_NAME = 0x51 + DEVLINK_ATTR_PARAM_GENERIC = 0x52 + DEVLINK_ATTR_PARAM_TYPE = 0x53 + DEVLINK_ATTR_PARAM_VALUES_LIST = 0x54 + DEVLINK_ATTR_PARAM_VALUE = 0x55 + DEVLINK_ATTR_PARAM_VALUE_DATA = 0x56 + DEVLINK_ATTR_PARAM_VALUE_CMODE = 0x57 + DEVLINK_ATTR_REGION_NAME = 0x58 + DEVLINK_ATTR_REGION_SIZE = 0x59 + DEVLINK_ATTR_REGION_SNAPSHOTS = 0x5a + DEVLINK_ATTR_REGION_SNAPSHOT = 0x5b + DEVLINK_ATTR_REGION_SNAPSHOT_ID = 0x5c + DEVLINK_ATTR_REGION_CHUNKS = 0x5d + DEVLINK_ATTR_REGION_CHUNK = 0x5e + DEVLINK_ATTR_REGION_CHUNK_DATA = 0x5f + DEVLINK_ATTR_REGION_CHUNK_ADDR = 0x60 + DEVLINK_ATTR_REGION_CHUNK_LEN = 0x61 + DEVLINK_ATTR_INFO_DRIVER_NAME = 0x62 + DEVLINK_ATTR_INFO_SERIAL_NUMBER = 0x63 + DEVLINK_ATTR_INFO_VERSION_FIXED = 0x64 + DEVLINK_ATTR_INFO_VERSION_RUNNING = 0x65 + DEVLINK_ATTR_INFO_VERSION_STORED = 0x66 + DEVLINK_ATTR_INFO_VERSION_NAME = 0x67 + DEVLINK_ATTR_INFO_VERSION_VALUE = 0x68 + DEVLINK_ATTR_SB_POOL_CELL_SIZE = 0x69 + DEVLINK_ATTR_FMSG = 0x6a + DEVLINK_ATTR_FMSG_OBJ_NEST_START = 0x6b + DEVLINK_ATTR_FMSG_PAIR_NEST_START = 0x6c + DEVLINK_ATTR_FMSG_ARR_NEST_START = 0x6d + DEVLINK_ATTR_FMSG_NEST_END = 0x6e + DEVLINK_ATTR_FMSG_OBJ_NAME = 0x6f + DEVLINK_ATTR_FMSG_OBJ_VALUE_TYPE = 0x70 + DEVLINK_ATTR_FMSG_OBJ_VALUE_DATA = 0x71 + DEVLINK_ATTR_HEALTH_REPORTER = 0x72 + DEVLINK_ATTR_HEALTH_REPORTER_NAME = 0x73 + DEVLINK_ATTR_HEALTH_REPORTER_STATE = 0x74 + DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT = 0x75 + DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT = 0x76 + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS = 0x77 + DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD = 0x78 + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER = 0x79 + DEVLINK_ATTR_FLASH_UPDATE_FILE_NAME = 0x7a + DEVLINK_ATTR_FLASH_UPDATE_COMPONENT = 0x7b + DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG = 0x7c + DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE = 0x7d + DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL = 0x7e + DEVLINK_ATTR_PORT_PCI_PF_NUMBER = 0x7f + DEVLINK_ATTR_PORT_PCI_VF_NUMBER = 0x80 + DEVLINK_ATTR_STATS = 0x81 + DEVLINK_ATTR_TRAP_NAME = 0x82 + DEVLINK_ATTR_TRAP_ACTION = 0x83 + DEVLINK_ATTR_TRAP_TYPE = 0x84 + DEVLINK_ATTR_TRAP_GENERIC = 0x85 + DEVLINK_ATTR_TRAP_METADATA = 0x86 + DEVLINK_ATTR_TRAP_GROUP_NAME = 0x87 + DEVLINK_ATTR_RELOAD_FAILED = 0x88 + DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS = 0x89 + DEVLINK_ATTR_NETNS_FD = 0x8a + DEVLINK_ATTR_NETNS_PID = 0x8b + DEVLINK_ATTR_NETNS_ID = 0x8c + DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP = 0x8d + DEVLINK_ATTR_TRAP_POLICER_ID = 0x8e + DEVLINK_ATTR_TRAP_POLICER_RATE = 0x8f + DEVLINK_ATTR_TRAP_POLICER_BURST = 0x90 + DEVLINK_ATTR_PORT_FUNCTION = 0x91 + DEVLINK_ATTR_INFO_BOARD_SERIAL_NUMBER = 0x92 + DEVLINK_ATTR_PORT_LANES = 0x93 + DEVLINK_ATTR_PORT_SPLITTABLE = 0x94 + DEVLINK_ATTR_PORT_EXTERNAL = 0x95 + DEVLINK_ATTR_PORT_CONTROLLER_NUMBER = 0x96 + DEVLINK_ATTR_FLASH_UPDATE_STATUS_TIMEOUT = 0x97 + DEVLINK_ATTR_FLASH_UPDATE_OVERWRITE_MASK = 0x98 + DEVLINK_ATTR_RELOAD_ACTION = 0x99 + DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED = 0x9a + DEVLINK_ATTR_RELOAD_LIMITS = 0x9b + DEVLINK_ATTR_DEV_STATS = 0x9c + DEVLINK_ATTR_RELOAD_STATS = 0x9d + DEVLINK_ATTR_RELOAD_STATS_ENTRY = 0x9e + DEVLINK_ATTR_RELOAD_STATS_LIMIT = 0x9f + DEVLINK_ATTR_RELOAD_STATS_VALUE = 0xa0 + DEVLINK_ATTR_REMOTE_RELOAD_STATS = 0xa1 + DEVLINK_ATTR_RELOAD_ACTION_INFO = 0xa2 + DEVLINK_ATTR_RELOAD_ACTION_STATS = 0xa3 + DEVLINK_ATTR_PORT_PCI_SF_NUMBER = 0xa4 + DEVLINK_ATTR_RATE_TYPE = 0xa5 + DEVLINK_ATTR_RATE_TX_SHARE = 0xa6 + DEVLINK_ATTR_RATE_TX_MAX = 0xa7 + DEVLINK_ATTR_RATE_NODE_NAME = 0xa8 + DEVLINK_ATTR_RATE_PARENT_NODE_NAME = 0xa9 + DEVLINK_ATTR_REGION_MAX_SNAPSHOTS = 0xaa + DEVLINK_ATTR_LINECARD_INDEX = 0xab + DEVLINK_ATTR_LINECARD_STATE = 0xac + DEVLINK_ATTR_LINECARD_TYPE = 0xad + DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES = 0xae + DEVLINK_ATTR_NESTED_DEVLINK = 0xaf + DEVLINK_ATTR_SELFTESTS = 0xb0 + DEVLINK_ATTR_MAX = 0xb0 + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_NONE = 0x0 + DEVLINK_DPIPE_FIELD_MAPPING_TYPE_IFINDEX = 0x1 + DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT = 0x0 + DEVLINK_DPIPE_ACTION_TYPE_FIELD_MODIFY = 0x0 + DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC = 0x0 + DEVLINK_DPIPE_FIELD_IPV4_DST_IP = 0x0 + DEVLINK_DPIPE_FIELD_IPV6_DST_IP = 0x0 + DEVLINK_DPIPE_HEADER_ETHERNET = 0x0 + DEVLINK_DPIPE_HEADER_IPV4 = 0x1 + DEVLINK_DPIPE_HEADER_IPV6 = 0x2 + DEVLINK_RESOURCE_UNIT_ENTRY = 0x0 + DEVLINK_PORT_FUNCTION_ATTR_UNSPEC = 0x0 + DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR = 0x1 + DEVLINK_PORT_FN_ATTR_STATE = 0x2 + DEVLINK_PORT_FN_ATTR_OPSTATE = 0x3 + DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x3 +) + +type FsverityDigest struct { + Algorithm uint16 + Size uint16 +} + +type FsverityEnableArg struct { + Version uint32 + Hash_algorithm uint32 + Block_size uint32 + Salt_size uint32 + Salt_ptr uint64 + Sig_size uint32 + _ uint32 + Sig_ptr uint64 + _ [11]uint64 +} + +type Nhmsg struct { + Family uint8 + Scope uint8 + Protocol uint8 + Resvd uint8 + Flags uint32 +} + +type NexthopGrp struct { + Id uint32 + Weight uint8 + Resvd1 uint8 + Resvd2 uint16 +} + +const ( + NHA_UNSPEC = 0x0 + NHA_ID = 0x1 + NHA_GROUP = 0x2 + NHA_GROUP_TYPE = 0x3 + NHA_BLACKHOLE = 0x4 + NHA_OIF = 0x5 + NHA_GATEWAY = 0x6 + NHA_ENCAP_TYPE = 0x7 + NHA_ENCAP = 0x8 + NHA_GROUPS = 0x9 + NHA_MASTER = 0xa +) + +const ( + CAN_RAW_FILTER = 0x1 + CAN_RAW_ERR_FILTER = 0x2 + CAN_RAW_LOOPBACK = 0x3 + CAN_RAW_RECV_OWN_MSGS = 0x4 + CAN_RAW_FD_FRAMES = 0x5 + CAN_RAW_JOIN_FILTERS = 0x6 +) + +type WatchdogInfo struct { + Options uint32 + Version uint32 + Identity [32]uint8 +} + +type PPSFData struct { + Info PPSKInfo + Timeout PPSKTime +} + +type PPSKParams struct { + Api_version int32 + Mode int32 + Assert_off_tu PPSKTime + Clear_off_tu PPSKTime +} + +type PPSKTime struct { + Sec int64 + Nsec int32 + Flags uint32 +} + +const ( + LWTUNNEL_ENCAP_NONE = 0x0 + LWTUNNEL_ENCAP_MPLS = 0x1 + LWTUNNEL_ENCAP_IP = 0x2 + LWTUNNEL_ENCAP_ILA = 0x3 + LWTUNNEL_ENCAP_IP6 = 0x4 + LWTUNNEL_ENCAP_SEG6 = 0x5 + LWTUNNEL_ENCAP_BPF = 0x6 + LWTUNNEL_ENCAP_SEG6_LOCAL = 0x7 + LWTUNNEL_ENCAP_RPL = 0x8 + LWTUNNEL_ENCAP_IOAM6 = 0x9 + LWTUNNEL_ENCAP_XFRM = 0xa + LWTUNNEL_ENCAP_MAX = 0xa + + MPLS_IPTUNNEL_UNSPEC = 0x0 + MPLS_IPTUNNEL_DST = 0x1 + MPLS_IPTUNNEL_TTL = 0x2 + MPLS_IPTUNNEL_MAX = 0x2 +) + +const ( + ETHTOOL_ID_UNSPEC = 0x0 + ETHTOOL_RX_COPYBREAK = 0x1 + ETHTOOL_TX_COPYBREAK = 0x2 + ETHTOOL_PFC_PREVENTION_TOUT = 0x3 + ETHTOOL_TUNABLE_UNSPEC = 0x0 + ETHTOOL_TUNABLE_U8 = 0x1 + ETHTOOL_TUNABLE_U16 = 0x2 + ETHTOOL_TUNABLE_U32 = 0x3 + ETHTOOL_TUNABLE_U64 = 0x4 + ETHTOOL_TUNABLE_STRING = 0x5 + ETHTOOL_TUNABLE_S8 = 0x6 + ETHTOOL_TUNABLE_S16 = 0x7 + ETHTOOL_TUNABLE_S32 = 0x8 + ETHTOOL_TUNABLE_S64 = 0x9 + ETHTOOL_PHY_ID_UNSPEC = 0x0 + ETHTOOL_PHY_DOWNSHIFT = 0x1 + ETHTOOL_PHY_FAST_LINK_DOWN = 0x2 + ETHTOOL_PHY_EDPD = 0x3 + ETHTOOL_LINK_EXT_STATE_AUTONEG = 0x0 + ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE = 0x1 + ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH = 0x2 + ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY = 0x3 + ETHTOOL_LINK_EXT_STATE_NO_CABLE = 0x4 + ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE = 0x5 + ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE = 0x6 + ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE = 0x7 + ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED = 0x8 + ETHTOOL_LINK_EXT_STATE_OVERHEAT = 0x9 + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED = 0x1 + ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED = 0x2 + ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED = 0x3 + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE = 0x4 + ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE = 0x5 + ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD = 0x6 + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED = 0x1 + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT = 0x2 + ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY = 0x3 + ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT = 0x4 + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK = 0x1 + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK = 0x2 + ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS = 0x3 + ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED = 0x4 + ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED = 0x5 + ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 0x1 + ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE = 0x2 + ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE = 0x1 + ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE = 0x2 + ETHTOOL_FLASH_ALL_REGIONS = 0x0 + ETHTOOL_F_UNSUPPORTED__BIT = 0x0 + ETHTOOL_F_WISH__BIT = 0x1 + ETHTOOL_F_COMPAT__BIT = 0x2 + ETHTOOL_FEC_NONE_BIT = 0x0 + ETHTOOL_FEC_AUTO_BIT = 0x1 + ETHTOOL_FEC_OFF_BIT = 0x2 + ETHTOOL_FEC_RS_BIT = 0x3 + ETHTOOL_FEC_BASER_BIT = 0x4 + ETHTOOL_FEC_LLRS_BIT = 0x5 + ETHTOOL_LINK_MODE_10baseT_Half_BIT = 0x0 + ETHTOOL_LINK_MODE_10baseT_Full_BIT = 0x1 + ETHTOOL_LINK_MODE_100baseT_Half_BIT = 0x2 + ETHTOOL_LINK_MODE_100baseT_Full_BIT = 0x3 + ETHTOOL_LINK_MODE_1000baseT_Half_BIT = 0x4 + ETHTOOL_LINK_MODE_1000baseT_Full_BIT = 0x5 + ETHTOOL_LINK_MODE_Autoneg_BIT = 0x6 + ETHTOOL_LINK_MODE_TP_BIT = 0x7 + ETHTOOL_LINK_MODE_AUI_BIT = 0x8 + ETHTOOL_LINK_MODE_MII_BIT = 0x9 + ETHTOOL_LINK_MODE_FIBRE_BIT = 0xa + ETHTOOL_LINK_MODE_BNC_BIT = 0xb + ETHTOOL_LINK_MODE_10000baseT_Full_BIT = 0xc + ETHTOOL_LINK_MODE_Pause_BIT = 0xd + ETHTOOL_LINK_MODE_Asym_Pause_BIT = 0xe + ETHTOOL_LINK_MODE_2500baseX_Full_BIT = 0xf + ETHTOOL_LINK_MODE_Backplane_BIT = 0x10 + ETHTOOL_LINK_MODE_1000baseKX_Full_BIT = 0x11 + ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT = 0x12 + ETHTOOL_LINK_MODE_10000baseKR_Full_BIT = 0x13 + ETHTOOL_LINK_MODE_10000baseR_FEC_BIT = 0x14 + ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT = 0x15 + ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT = 0x16 + ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT = 0x17 + ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT = 0x18 + ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT = 0x19 + ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT = 0x1a + ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT = 0x1b + ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT = 0x1c + ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT = 0x1d + ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT = 0x1e + ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 0x1f + ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 0x20 + ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 0x21 + ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 0x22 + ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 0x23 + ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 0x24 + ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 0x25 + ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 0x26 + ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 0x27 + ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT = 0x28 + ETHTOOL_LINK_MODE_1000baseX_Full_BIT = 0x29 + ETHTOOL_LINK_MODE_10000baseCR_Full_BIT = 0x2a + ETHTOOL_LINK_MODE_10000baseSR_Full_BIT = 0x2b + ETHTOOL_LINK_MODE_10000baseLR_Full_BIT = 0x2c + ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT = 0x2d + ETHTOOL_LINK_MODE_10000baseER_Full_BIT = 0x2e + ETHTOOL_LINK_MODE_2500baseT_Full_BIT = 0x2f + ETHTOOL_LINK_MODE_5000baseT_Full_BIT = 0x30 + ETHTOOL_LINK_MODE_FEC_NONE_BIT = 0x31 + ETHTOOL_LINK_MODE_FEC_RS_BIT = 0x32 + ETHTOOL_LINK_MODE_FEC_BASER_BIT = 0x33 + ETHTOOL_LINK_MODE_50000baseKR_Full_BIT = 0x34 + ETHTOOL_LINK_MODE_50000baseSR_Full_BIT = 0x35 + ETHTOOL_LINK_MODE_50000baseCR_Full_BIT = 0x36 + ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT = 0x37 + ETHTOOL_LINK_MODE_50000baseDR_Full_BIT = 0x38 + ETHTOOL_LINK_MODE_100000baseKR2_Full_BIT = 0x39 + ETHTOOL_LINK_MODE_100000baseSR2_Full_BIT = 0x3a + ETHTOOL_LINK_MODE_100000baseCR2_Full_BIT = 0x3b + ETHTOOL_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT = 0x3c + ETHTOOL_LINK_MODE_100000baseDR2_Full_BIT = 0x3d + ETHTOOL_LINK_MODE_200000baseKR4_Full_BIT = 0x3e + ETHTOOL_LINK_MODE_200000baseSR4_Full_BIT = 0x3f + ETHTOOL_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT = 0x40 + ETHTOOL_LINK_MODE_200000baseDR4_Full_BIT = 0x41 + ETHTOOL_LINK_MODE_200000baseCR4_Full_BIT = 0x42 + ETHTOOL_LINK_MODE_100baseT1_Full_BIT = 0x43 + ETHTOOL_LINK_MODE_1000baseT1_Full_BIT = 0x44 + ETHTOOL_LINK_MODE_400000baseKR8_Full_BIT = 0x45 + ETHTOOL_LINK_MODE_400000baseSR8_Full_BIT = 0x46 + ETHTOOL_LINK_MODE_400000baseLR8_ER8_FR8_Full_BIT = 0x47 + ETHTOOL_LINK_MODE_400000baseDR8_Full_BIT = 0x48 + ETHTOOL_LINK_MODE_400000baseCR8_Full_BIT = 0x49 + ETHTOOL_LINK_MODE_FEC_LLRS_BIT = 0x4a + ETHTOOL_LINK_MODE_100000baseKR_Full_BIT = 0x4b + ETHTOOL_LINK_MODE_100000baseSR_Full_BIT = 0x4c + ETHTOOL_LINK_MODE_100000baseLR_ER_FR_Full_BIT = 0x4d + ETHTOOL_LINK_MODE_100000baseCR_Full_BIT = 0x4e + ETHTOOL_LINK_MODE_100000baseDR_Full_BIT = 0x4f + ETHTOOL_LINK_MODE_200000baseKR2_Full_BIT = 0x50 + ETHTOOL_LINK_MODE_200000baseSR2_Full_BIT = 0x51 + ETHTOOL_LINK_MODE_200000baseLR2_ER2_FR2_Full_BIT = 0x52 + ETHTOOL_LINK_MODE_200000baseDR2_Full_BIT = 0x53 + ETHTOOL_LINK_MODE_200000baseCR2_Full_BIT = 0x54 + ETHTOOL_LINK_MODE_400000baseKR4_Full_BIT = 0x55 + ETHTOOL_LINK_MODE_400000baseSR4_Full_BIT = 0x56 + ETHTOOL_LINK_MODE_400000baseLR4_ER4_FR4_Full_BIT = 0x57 + ETHTOOL_LINK_MODE_400000baseDR4_Full_BIT = 0x58 + ETHTOOL_LINK_MODE_400000baseCR4_Full_BIT = 0x59 + ETHTOOL_LINK_MODE_100baseFX_Half_BIT = 0x5a + ETHTOOL_LINK_MODE_100baseFX_Full_BIT = 0x5b + + ETHTOOL_MSG_USER_NONE = 0x0 + ETHTOOL_MSG_STRSET_GET = 0x1 + ETHTOOL_MSG_LINKINFO_GET = 0x2 + ETHTOOL_MSG_LINKINFO_SET = 0x3 + ETHTOOL_MSG_LINKMODES_GET = 0x4 + ETHTOOL_MSG_LINKMODES_SET = 0x5 + ETHTOOL_MSG_LINKSTATE_GET = 0x6 + ETHTOOL_MSG_DEBUG_GET = 0x7 + ETHTOOL_MSG_DEBUG_SET = 0x8 + ETHTOOL_MSG_WOL_GET = 0x9 + ETHTOOL_MSG_WOL_SET = 0xa + ETHTOOL_MSG_FEATURES_GET = 0xb + ETHTOOL_MSG_FEATURES_SET = 0xc + ETHTOOL_MSG_PRIVFLAGS_GET = 0xd + ETHTOOL_MSG_PRIVFLAGS_SET = 0xe + ETHTOOL_MSG_RINGS_GET = 0xf + ETHTOOL_MSG_RINGS_SET = 0x10 + ETHTOOL_MSG_CHANNELS_GET = 0x11 + ETHTOOL_MSG_CHANNELS_SET = 0x12 + ETHTOOL_MSG_COALESCE_GET = 0x13 + ETHTOOL_MSG_COALESCE_SET = 0x14 + ETHTOOL_MSG_PAUSE_GET = 0x15 + ETHTOOL_MSG_PAUSE_SET = 0x16 + ETHTOOL_MSG_EEE_GET = 0x17 + ETHTOOL_MSG_EEE_SET = 0x18 + ETHTOOL_MSG_TSINFO_GET = 0x19 + ETHTOOL_MSG_CABLE_TEST_ACT = 0x1a + ETHTOOL_MSG_CABLE_TEST_TDR_ACT = 0x1b + ETHTOOL_MSG_TUNNEL_INFO_GET = 0x1c + ETHTOOL_MSG_FEC_GET = 0x1d + ETHTOOL_MSG_FEC_SET = 0x1e + ETHTOOL_MSG_MODULE_EEPROM_GET = 0x1f + ETHTOOL_MSG_STATS_GET = 0x20 + ETHTOOL_MSG_PHC_VCLOCKS_GET = 0x21 + ETHTOOL_MSG_MODULE_GET = 0x22 + ETHTOOL_MSG_MODULE_SET = 0x23 + ETHTOOL_MSG_PSE_GET = 0x24 + ETHTOOL_MSG_PSE_SET = 0x25 + ETHTOOL_MSG_USER_MAX = 0x25 + ETHTOOL_MSG_KERNEL_NONE = 0x0 + ETHTOOL_MSG_STRSET_GET_REPLY = 0x1 + ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2 + ETHTOOL_MSG_LINKINFO_NTF = 0x3 + ETHTOOL_MSG_LINKMODES_GET_REPLY = 0x4 + ETHTOOL_MSG_LINKMODES_NTF = 0x5 + ETHTOOL_MSG_LINKSTATE_GET_REPLY = 0x6 + ETHTOOL_MSG_DEBUG_GET_REPLY = 0x7 + ETHTOOL_MSG_DEBUG_NTF = 0x8 + ETHTOOL_MSG_WOL_GET_REPLY = 0x9 + ETHTOOL_MSG_WOL_NTF = 0xa + ETHTOOL_MSG_FEATURES_GET_REPLY = 0xb + ETHTOOL_MSG_FEATURES_SET_REPLY = 0xc + ETHTOOL_MSG_FEATURES_NTF = 0xd + ETHTOOL_MSG_PRIVFLAGS_GET_REPLY = 0xe + ETHTOOL_MSG_PRIVFLAGS_NTF = 0xf + ETHTOOL_MSG_RINGS_GET_REPLY = 0x10 + ETHTOOL_MSG_RINGS_NTF = 0x11 + ETHTOOL_MSG_CHANNELS_GET_REPLY = 0x12 + ETHTOOL_MSG_CHANNELS_NTF = 0x13 + ETHTOOL_MSG_COALESCE_GET_REPLY = 0x14 + ETHTOOL_MSG_COALESCE_NTF = 0x15 + ETHTOOL_MSG_PAUSE_GET_REPLY = 0x16 + ETHTOOL_MSG_PAUSE_NTF = 0x17 + ETHTOOL_MSG_EEE_GET_REPLY = 0x18 + ETHTOOL_MSG_EEE_NTF = 0x19 + ETHTOOL_MSG_TSINFO_GET_REPLY = 0x1a + ETHTOOL_MSG_CABLE_TEST_NTF = 0x1b + ETHTOOL_MSG_CABLE_TEST_TDR_NTF = 0x1c + ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY = 0x1d + ETHTOOL_MSG_FEC_GET_REPLY = 0x1e + ETHTOOL_MSG_FEC_NTF = 0x1f + ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY = 0x20 + ETHTOOL_MSG_STATS_GET_REPLY = 0x21 + ETHTOOL_MSG_PHC_VCLOCKS_GET_REPLY = 0x22 + ETHTOOL_MSG_MODULE_GET_REPLY = 0x23 + ETHTOOL_MSG_MODULE_NTF = 0x24 + ETHTOOL_MSG_PSE_GET_REPLY = 0x25 + ETHTOOL_MSG_KERNEL_MAX = 0x25 + ETHTOOL_A_HEADER_UNSPEC = 0x0 + ETHTOOL_A_HEADER_DEV_INDEX = 0x1 + ETHTOOL_A_HEADER_DEV_NAME = 0x2 + ETHTOOL_A_HEADER_FLAGS = 0x3 + ETHTOOL_A_HEADER_MAX = 0x3 + ETHTOOL_A_BITSET_BIT_UNSPEC = 0x0 + ETHTOOL_A_BITSET_BIT_INDEX = 0x1 + ETHTOOL_A_BITSET_BIT_NAME = 0x2 + ETHTOOL_A_BITSET_BIT_VALUE = 0x3 + ETHTOOL_A_BITSET_BIT_MAX = 0x3 + ETHTOOL_A_BITSET_BITS_UNSPEC = 0x0 + ETHTOOL_A_BITSET_BITS_BIT = 0x1 + ETHTOOL_A_BITSET_BITS_MAX = 0x1 + ETHTOOL_A_BITSET_UNSPEC = 0x0 + ETHTOOL_A_BITSET_NOMASK = 0x1 + ETHTOOL_A_BITSET_SIZE = 0x2 + ETHTOOL_A_BITSET_BITS = 0x3 + ETHTOOL_A_BITSET_VALUE = 0x4 + ETHTOOL_A_BITSET_MASK = 0x5 + ETHTOOL_A_BITSET_MAX = 0x5 + ETHTOOL_A_STRING_UNSPEC = 0x0 + ETHTOOL_A_STRING_INDEX = 0x1 + ETHTOOL_A_STRING_VALUE = 0x2 + ETHTOOL_A_STRING_MAX = 0x2 + ETHTOOL_A_STRINGS_UNSPEC = 0x0 + ETHTOOL_A_STRINGS_STRING = 0x1 + ETHTOOL_A_STRINGS_MAX = 0x1 + ETHTOOL_A_STRINGSET_UNSPEC = 0x0 + ETHTOOL_A_STRINGSET_ID = 0x1 + ETHTOOL_A_STRINGSET_COUNT = 0x2 + ETHTOOL_A_STRINGSET_STRINGS = 0x3 + ETHTOOL_A_STRINGSET_MAX = 0x3 + ETHTOOL_A_STRINGSETS_UNSPEC = 0x0 + ETHTOOL_A_STRINGSETS_STRINGSET = 0x1 + ETHTOOL_A_STRINGSETS_MAX = 0x1 + ETHTOOL_A_STRSET_UNSPEC = 0x0 + ETHTOOL_A_STRSET_HEADER = 0x1 + ETHTOOL_A_STRSET_STRINGSETS = 0x2 + ETHTOOL_A_STRSET_COUNTS_ONLY = 0x3 + ETHTOOL_A_STRSET_MAX = 0x3 + ETHTOOL_A_LINKINFO_UNSPEC = 0x0 + ETHTOOL_A_LINKINFO_HEADER = 0x1 + ETHTOOL_A_LINKINFO_PORT = 0x2 + ETHTOOL_A_LINKINFO_PHYADDR = 0x3 + ETHTOOL_A_LINKINFO_TP_MDIX = 0x4 + ETHTOOL_A_LINKINFO_TP_MDIX_CTRL = 0x5 + ETHTOOL_A_LINKINFO_TRANSCEIVER = 0x6 + ETHTOOL_A_LINKINFO_MAX = 0x6 + ETHTOOL_A_LINKMODES_UNSPEC = 0x0 + ETHTOOL_A_LINKMODES_HEADER = 0x1 + ETHTOOL_A_LINKMODES_AUTONEG = 0x2 + ETHTOOL_A_LINKMODES_OURS = 0x3 + ETHTOOL_A_LINKMODES_PEER = 0x4 + ETHTOOL_A_LINKMODES_SPEED = 0x5 + ETHTOOL_A_LINKMODES_DUPLEX = 0x6 + ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG = 0x7 + ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE = 0x8 + ETHTOOL_A_LINKMODES_LANES = 0x9 + ETHTOOL_A_LINKMODES_RATE_MATCHING = 0xa + ETHTOOL_A_LINKMODES_MAX = 0xa + ETHTOOL_A_LINKSTATE_UNSPEC = 0x0 + ETHTOOL_A_LINKSTATE_HEADER = 0x1 + ETHTOOL_A_LINKSTATE_LINK = 0x2 + ETHTOOL_A_LINKSTATE_SQI = 0x3 + ETHTOOL_A_LINKSTATE_SQI_MAX = 0x4 + ETHTOOL_A_LINKSTATE_EXT_STATE = 0x5 + ETHTOOL_A_LINKSTATE_EXT_SUBSTATE = 0x6 + ETHTOOL_A_LINKSTATE_MAX = 0x6 + ETHTOOL_A_DEBUG_UNSPEC = 0x0 + ETHTOOL_A_DEBUG_HEADER = 0x1 + ETHTOOL_A_DEBUG_MSGMASK = 0x2 + ETHTOOL_A_DEBUG_MAX = 0x2 + ETHTOOL_A_WOL_UNSPEC = 0x0 + ETHTOOL_A_WOL_HEADER = 0x1 + ETHTOOL_A_WOL_MODES = 0x2 + ETHTOOL_A_WOL_SOPASS = 0x3 + ETHTOOL_A_WOL_MAX = 0x3 + ETHTOOL_A_FEATURES_UNSPEC = 0x0 + ETHTOOL_A_FEATURES_HEADER = 0x1 + ETHTOOL_A_FEATURES_HW = 0x2 + ETHTOOL_A_FEATURES_WANTED = 0x3 + ETHTOOL_A_FEATURES_ACTIVE = 0x4 + ETHTOOL_A_FEATURES_NOCHANGE = 0x5 + ETHTOOL_A_FEATURES_MAX = 0x5 + ETHTOOL_A_PRIVFLAGS_UNSPEC = 0x0 + ETHTOOL_A_PRIVFLAGS_HEADER = 0x1 + ETHTOOL_A_PRIVFLAGS_FLAGS = 0x2 + ETHTOOL_A_PRIVFLAGS_MAX = 0x2 + ETHTOOL_A_RINGS_UNSPEC = 0x0 + ETHTOOL_A_RINGS_HEADER = 0x1 + ETHTOOL_A_RINGS_RX_MAX = 0x2 + ETHTOOL_A_RINGS_RX_MINI_MAX = 0x3 + ETHTOOL_A_RINGS_RX_JUMBO_MAX = 0x4 + ETHTOOL_A_RINGS_TX_MAX = 0x5 + ETHTOOL_A_RINGS_RX = 0x6 + ETHTOOL_A_RINGS_RX_MINI = 0x7 + ETHTOOL_A_RINGS_RX_JUMBO = 0x8 + ETHTOOL_A_RINGS_TX = 0x9 + ETHTOOL_A_RINGS_RX_BUF_LEN = 0xa + ETHTOOL_A_RINGS_TCP_DATA_SPLIT = 0xb + ETHTOOL_A_RINGS_CQE_SIZE = 0xc + ETHTOOL_A_RINGS_TX_PUSH = 0xd + ETHTOOL_A_RINGS_MAX = 0xd + ETHTOOL_A_CHANNELS_UNSPEC = 0x0 + ETHTOOL_A_CHANNELS_HEADER = 0x1 + ETHTOOL_A_CHANNELS_RX_MAX = 0x2 + ETHTOOL_A_CHANNELS_TX_MAX = 0x3 + ETHTOOL_A_CHANNELS_OTHER_MAX = 0x4 + ETHTOOL_A_CHANNELS_COMBINED_MAX = 0x5 + ETHTOOL_A_CHANNELS_RX_COUNT = 0x6 + ETHTOOL_A_CHANNELS_TX_COUNT = 0x7 + ETHTOOL_A_CHANNELS_OTHER_COUNT = 0x8 + ETHTOOL_A_CHANNELS_COMBINED_COUNT = 0x9 + ETHTOOL_A_CHANNELS_MAX = 0x9 + ETHTOOL_A_COALESCE_UNSPEC = 0x0 + ETHTOOL_A_COALESCE_HEADER = 0x1 + ETHTOOL_A_COALESCE_RX_USECS = 0x2 + ETHTOOL_A_COALESCE_RX_MAX_FRAMES = 0x3 + ETHTOOL_A_COALESCE_RX_USECS_IRQ = 0x4 + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ = 0x5 + ETHTOOL_A_COALESCE_TX_USECS = 0x6 + ETHTOOL_A_COALESCE_TX_MAX_FRAMES = 0x7 + ETHTOOL_A_COALESCE_TX_USECS_IRQ = 0x8 + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ = 0x9 + ETHTOOL_A_COALESCE_STATS_BLOCK_USECS = 0xa + ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX = 0xb + ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX = 0xc + ETHTOOL_A_COALESCE_PKT_RATE_LOW = 0xd + ETHTOOL_A_COALESCE_RX_USECS_LOW = 0xe + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW = 0xf + ETHTOOL_A_COALESCE_TX_USECS_LOW = 0x10 + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW = 0x11 + ETHTOOL_A_COALESCE_PKT_RATE_HIGH = 0x12 + ETHTOOL_A_COALESCE_RX_USECS_HIGH = 0x13 + ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH = 0x14 + ETHTOOL_A_COALESCE_TX_USECS_HIGH = 0x15 + ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH = 0x16 + ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL = 0x17 + ETHTOOL_A_COALESCE_USE_CQE_MODE_TX = 0x18 + ETHTOOL_A_COALESCE_USE_CQE_MODE_RX = 0x19 + ETHTOOL_A_COALESCE_MAX = 0x19 + ETHTOOL_A_PAUSE_UNSPEC = 0x0 + ETHTOOL_A_PAUSE_HEADER = 0x1 + ETHTOOL_A_PAUSE_AUTONEG = 0x2 + ETHTOOL_A_PAUSE_RX = 0x3 + ETHTOOL_A_PAUSE_TX = 0x4 + ETHTOOL_A_PAUSE_STATS = 0x5 + ETHTOOL_A_PAUSE_MAX = 0x5 + ETHTOOL_A_PAUSE_STAT_UNSPEC = 0x0 + ETHTOOL_A_PAUSE_STAT_PAD = 0x1 + ETHTOOL_A_PAUSE_STAT_TX_FRAMES = 0x2 + ETHTOOL_A_PAUSE_STAT_RX_FRAMES = 0x3 + ETHTOOL_A_PAUSE_STAT_MAX = 0x3 + ETHTOOL_A_EEE_UNSPEC = 0x0 + ETHTOOL_A_EEE_HEADER = 0x1 + ETHTOOL_A_EEE_MODES_OURS = 0x2 + ETHTOOL_A_EEE_MODES_PEER = 0x3 + ETHTOOL_A_EEE_ACTIVE = 0x4 + ETHTOOL_A_EEE_ENABLED = 0x5 + ETHTOOL_A_EEE_TX_LPI_ENABLED = 0x6 + ETHTOOL_A_EEE_TX_LPI_TIMER = 0x7 + ETHTOOL_A_EEE_MAX = 0x7 + ETHTOOL_A_TSINFO_UNSPEC = 0x0 + ETHTOOL_A_TSINFO_HEADER = 0x1 + ETHTOOL_A_TSINFO_TIMESTAMPING = 0x2 + ETHTOOL_A_TSINFO_TX_TYPES = 0x3 + ETHTOOL_A_TSINFO_RX_FILTERS = 0x4 + ETHTOOL_A_TSINFO_PHC_INDEX = 0x5 + ETHTOOL_A_TSINFO_MAX = 0x5 + ETHTOOL_A_CABLE_TEST_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TEST_HEADER = 0x1 + ETHTOOL_A_CABLE_TEST_MAX = 0x1 + ETHTOOL_A_CABLE_RESULT_CODE_UNSPEC = 0x0 + ETHTOOL_A_CABLE_RESULT_CODE_OK = 0x1 + ETHTOOL_A_CABLE_RESULT_CODE_OPEN = 0x2 + ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT = 0x3 + ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT = 0x4 + ETHTOOL_A_CABLE_PAIR_A = 0x0 + ETHTOOL_A_CABLE_PAIR_B = 0x1 + ETHTOOL_A_CABLE_PAIR_C = 0x2 + ETHTOOL_A_CABLE_PAIR_D = 0x3 + ETHTOOL_A_CABLE_RESULT_UNSPEC = 0x0 + ETHTOOL_A_CABLE_RESULT_PAIR = 0x1 + ETHTOOL_A_CABLE_RESULT_CODE = 0x2 + ETHTOOL_A_CABLE_RESULT_MAX = 0x2 + ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC = 0x0 + ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR = 0x1 + ETHTOOL_A_CABLE_FAULT_LENGTH_CM = 0x2 + ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = 0x2 + ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED = 0x1 + ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED = 0x2 + ETHTOOL_A_CABLE_NEST_UNSPEC = 0x0 + ETHTOOL_A_CABLE_NEST_RESULT = 0x1 + ETHTOOL_A_CABLE_NEST_FAULT_LENGTH = 0x2 + ETHTOOL_A_CABLE_NEST_MAX = 0x2 + ETHTOOL_A_CABLE_TEST_NTF_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TEST_NTF_HEADER = 0x1 + ETHTOOL_A_CABLE_TEST_NTF_STATUS = 0x2 + ETHTOOL_A_CABLE_TEST_NTF_NEST = 0x3 + ETHTOOL_A_CABLE_TEST_NTF_MAX = 0x3 + ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST = 0x1 + ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST = 0x2 + ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP = 0x3 + ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR = 0x4 + ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = 0x4 + ETHTOOL_A_CABLE_TEST_TDR_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TEST_TDR_HEADER = 0x1 + ETHTOOL_A_CABLE_TEST_TDR_CFG = 0x2 + ETHTOOL_A_CABLE_TEST_TDR_MAX = 0x2 + ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC = 0x0 + ETHTOOL_A_CABLE_AMPLITUDE_PAIR = 0x1 + ETHTOOL_A_CABLE_AMPLITUDE_mV = 0x2 + ETHTOOL_A_CABLE_AMPLITUDE_MAX = 0x2 + ETHTOOL_A_CABLE_PULSE_UNSPEC = 0x0 + ETHTOOL_A_CABLE_PULSE_mV = 0x1 + ETHTOOL_A_CABLE_PULSE_MAX = 0x1 + ETHTOOL_A_CABLE_STEP_UNSPEC = 0x0 + ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE = 0x1 + ETHTOOL_A_CABLE_STEP_LAST_DISTANCE = 0x2 + ETHTOOL_A_CABLE_STEP_STEP_DISTANCE = 0x3 + ETHTOOL_A_CABLE_STEP_MAX = 0x3 + ETHTOOL_A_CABLE_TDR_NEST_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TDR_NEST_STEP = 0x1 + ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE = 0x2 + ETHTOOL_A_CABLE_TDR_NEST_PULSE = 0x3 + ETHTOOL_A_CABLE_TDR_NEST_MAX = 0x3 + ETHTOOL_A_CABLE_TEST_TDR_NTF_UNSPEC = 0x0 + ETHTOOL_A_CABLE_TEST_TDR_NTF_HEADER = 0x1 + ETHTOOL_A_CABLE_TEST_TDR_NTF_STATUS = 0x2 + ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST = 0x3 + ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX = 0x3 + ETHTOOL_UDP_TUNNEL_TYPE_VXLAN = 0x0 + ETHTOOL_UDP_TUNNEL_TYPE_GENEVE = 0x1 + ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE = 0x2 + ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC = 0x0 + ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT = 0x1 + ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE = 0x2 + ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = 0x2 + ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC = 0x0 + ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE = 0x1 + ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES = 0x2 + ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY = 0x3 + ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = 0x3 + ETHTOOL_A_TUNNEL_UDP_UNSPEC = 0x0 + ETHTOOL_A_TUNNEL_UDP_TABLE = 0x1 + ETHTOOL_A_TUNNEL_UDP_MAX = 0x1 + ETHTOOL_A_TUNNEL_INFO_UNSPEC = 0x0 + ETHTOOL_A_TUNNEL_INFO_HEADER = 0x1 + ETHTOOL_A_TUNNEL_INFO_UDP_PORTS = 0x2 + ETHTOOL_A_TUNNEL_INFO_MAX = 0x2 +) + +const SPEED_UNKNOWN = -0x1 + +type EthtoolDrvinfo struct { + Cmd uint32 + Driver [32]byte + Version [32]byte + Fw_version [32]byte + Bus_info [32]byte + Erom_version [32]byte + Reserved2 [12]byte + N_priv_flags uint32 + N_stats uint32 + Testinfo_len uint32 + Eedump_len uint32 + Regdump_len uint32 +} + +type ( + HIDRawReportDescriptor struct { + Size uint32 + Value [4096]uint8 + } + HIDRawDevInfo struct { + Bustype uint32 + Vendor int16 + Product int16 + } +) + +const ( + CLOSE_RANGE_UNSHARE = 0x2 + CLOSE_RANGE_CLOEXEC = 0x4 +) + +const ( + NLMSGERR_ATTR_MSG = 0x1 + NLMSGERR_ATTR_OFFS = 0x2 + NLMSGERR_ATTR_COOKIE = 0x3 +) + +type ( + EraseInfo struct { + Start uint32 + Length uint32 + } + EraseInfo64 struct { + Start uint64 + Length uint64 + } + MtdOobBuf struct { + Start uint32 + Length uint32 + Ptr *uint8 + } + MtdOobBuf64 struct { + Start uint64 + Pad uint32 + Length uint32 + Ptr uint64 + } + MtdWriteReq struct { + Start uint64 + Len uint64 + Ooblen uint64 + Data uint64 + Oob uint64 + Mode uint8 + _ [7]uint8 + } + MtdInfo struct { + Type uint8 + Flags uint32 + Size uint32 + Erasesize uint32 + Writesize uint32 + Oobsize uint32 + _ uint64 + } + RegionInfo struct { + Offset uint32 + Erasesize uint32 + Numblocks uint32 + Regionindex uint32 + } + OtpInfo struct { + Start uint32 + Length uint32 + Locked uint32 + } + NandOobinfo struct { + Useecc uint32 + Eccbytes uint32 + Oobfree [8][2]uint32 + Eccpos [32]uint32 + } + NandOobfree struct { + Offset uint32 + Length uint32 + } + NandEcclayout struct { + Eccbytes uint32 + Eccpos [64]uint32 + Oobavail uint32 + Oobfree [8]NandOobfree + } + MtdEccStats struct { + Corrected uint32 + Failed uint32 + Badblocks uint32 + Bbtblocks uint32 + } +) + +const ( + MTD_OPS_PLACE_OOB = 0x0 + MTD_OPS_AUTO_OOB = 0x1 + MTD_OPS_RAW = 0x2 +) + +const ( + MTD_FILE_MODE_NORMAL = 0x0 + MTD_FILE_MODE_OTP_FACTORY = 0x1 + MTD_FILE_MODE_OTP_USER = 0x2 + MTD_FILE_MODE_RAW = 0x3 +) + +const ( + NFC_CMD_UNSPEC = 0x0 + NFC_CMD_GET_DEVICE = 0x1 + NFC_CMD_DEV_UP = 0x2 + NFC_CMD_DEV_DOWN = 0x3 + NFC_CMD_DEP_LINK_UP = 0x4 + NFC_CMD_DEP_LINK_DOWN = 0x5 + NFC_CMD_START_POLL = 0x6 + NFC_CMD_STOP_POLL = 0x7 + NFC_CMD_GET_TARGET = 0x8 + NFC_EVENT_TARGETS_FOUND = 0x9 + NFC_EVENT_DEVICE_ADDED = 0xa + NFC_EVENT_DEVICE_REMOVED = 0xb + NFC_EVENT_TARGET_LOST = 0xc + NFC_EVENT_TM_ACTIVATED = 0xd + NFC_EVENT_TM_DEACTIVATED = 0xe + NFC_CMD_LLC_GET_PARAMS = 0xf + NFC_CMD_LLC_SET_PARAMS = 0x10 + NFC_CMD_ENABLE_SE = 0x11 + NFC_CMD_DISABLE_SE = 0x12 + NFC_CMD_LLC_SDREQ = 0x13 + NFC_EVENT_LLC_SDRES = 0x14 + NFC_CMD_FW_DOWNLOAD = 0x15 + NFC_EVENT_SE_ADDED = 0x16 + NFC_EVENT_SE_REMOVED = 0x17 + NFC_EVENT_SE_CONNECTIVITY = 0x18 + NFC_EVENT_SE_TRANSACTION = 0x19 + NFC_CMD_GET_SE = 0x1a + NFC_CMD_SE_IO = 0x1b + NFC_CMD_ACTIVATE_TARGET = 0x1c + NFC_CMD_VENDOR = 0x1d + NFC_CMD_DEACTIVATE_TARGET = 0x1e + NFC_ATTR_UNSPEC = 0x0 + NFC_ATTR_DEVICE_INDEX = 0x1 + NFC_ATTR_DEVICE_NAME = 0x2 + NFC_ATTR_PROTOCOLS = 0x3 + NFC_ATTR_TARGET_INDEX = 0x4 + NFC_ATTR_TARGET_SENS_RES = 0x5 + NFC_ATTR_TARGET_SEL_RES = 0x6 + NFC_ATTR_TARGET_NFCID1 = 0x7 + NFC_ATTR_TARGET_SENSB_RES = 0x8 + NFC_ATTR_TARGET_SENSF_RES = 0x9 + NFC_ATTR_COMM_MODE = 0xa + NFC_ATTR_RF_MODE = 0xb + NFC_ATTR_DEVICE_POWERED = 0xc + NFC_ATTR_IM_PROTOCOLS = 0xd + NFC_ATTR_TM_PROTOCOLS = 0xe + NFC_ATTR_LLC_PARAM_LTO = 0xf + NFC_ATTR_LLC_PARAM_RW = 0x10 + NFC_ATTR_LLC_PARAM_MIUX = 0x11 + NFC_ATTR_SE = 0x12 + NFC_ATTR_LLC_SDP = 0x13 + NFC_ATTR_FIRMWARE_NAME = 0x14 + NFC_ATTR_SE_INDEX = 0x15 + NFC_ATTR_SE_TYPE = 0x16 + NFC_ATTR_SE_AID = 0x17 + NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS = 0x18 + NFC_ATTR_SE_APDU = 0x19 + NFC_ATTR_TARGET_ISO15693_DSFID = 0x1a + NFC_ATTR_TARGET_ISO15693_UID = 0x1b + NFC_ATTR_SE_PARAMS = 0x1c + NFC_ATTR_VENDOR_ID = 0x1d + NFC_ATTR_VENDOR_SUBCMD = 0x1e + NFC_ATTR_VENDOR_DATA = 0x1f + NFC_SDP_ATTR_UNSPEC = 0x0 + NFC_SDP_ATTR_URI = 0x1 + NFC_SDP_ATTR_SAP = 0x2 +) + +type LandlockRulesetAttr struct { + Access_fs uint64 +} + +type LandlockPathBeneathAttr struct { + Allowed_access uint64 + Parent_fd int32 +} + +const ( + LANDLOCK_RULE_PATH_BENEATH = 0x1 +) + +const ( + IPC_CREAT = 0x200 + IPC_EXCL = 0x400 + IPC_NOWAIT = 0x800 + IPC_PRIVATE = 0x0 + + ipc_64 = 0x100 +) + +const ( + IPC_RMID = 0x0 + IPC_SET = 0x1 + IPC_STAT = 0x2 +) + +const ( + SHM_RDONLY = 0x1000 + SHM_RND = 0x2000 +) + +type MountAttr struct { + Attr_set uint64 + Attr_clr uint64 + Propagation uint64 + Userns_fd uint64 +} + +const ( + WG_CMD_GET_DEVICE = 0x0 + WG_CMD_SET_DEVICE = 0x1 + WGDEVICE_F_REPLACE_PEERS = 0x1 + WGDEVICE_A_UNSPEC = 0x0 + WGDEVICE_A_IFINDEX = 0x1 + WGDEVICE_A_IFNAME = 0x2 + WGDEVICE_A_PRIVATE_KEY = 0x3 + WGDEVICE_A_PUBLIC_KEY = 0x4 + WGDEVICE_A_FLAGS = 0x5 + WGDEVICE_A_LISTEN_PORT = 0x6 + WGDEVICE_A_FWMARK = 0x7 + WGDEVICE_A_PEERS = 0x8 + WGPEER_F_REMOVE_ME = 0x1 + WGPEER_F_REPLACE_ALLOWEDIPS = 0x2 + WGPEER_F_UPDATE_ONLY = 0x4 + WGPEER_A_UNSPEC = 0x0 + WGPEER_A_PUBLIC_KEY = 0x1 + WGPEER_A_PRESHARED_KEY = 0x2 + WGPEER_A_FLAGS = 0x3 + WGPEER_A_ENDPOINT = 0x4 + WGPEER_A_PERSISTENT_KEEPALIVE_INTERVAL = 0x5 + WGPEER_A_LAST_HANDSHAKE_TIME = 0x6 + WGPEER_A_RX_BYTES = 0x7 + WGPEER_A_TX_BYTES = 0x8 + WGPEER_A_ALLOWEDIPS = 0x9 + WGPEER_A_PROTOCOL_VERSION = 0xa + WGALLOWEDIP_A_UNSPEC = 0x0 + WGALLOWEDIP_A_FAMILY = 0x1 + WGALLOWEDIP_A_IPADDR = 0x2 + WGALLOWEDIP_A_CIDR_MASK = 0x3 +) + +const ( + NL_ATTR_TYPE_INVALID = 0x0 + NL_ATTR_TYPE_FLAG = 0x1 + NL_ATTR_TYPE_U8 = 0x2 + NL_ATTR_TYPE_U16 = 0x3 + NL_ATTR_TYPE_U32 = 0x4 + NL_ATTR_TYPE_U64 = 0x5 + NL_ATTR_TYPE_S8 = 0x6 + NL_ATTR_TYPE_S16 = 0x7 + NL_ATTR_TYPE_S32 = 0x8 + NL_ATTR_TYPE_S64 = 0x9 + NL_ATTR_TYPE_BINARY = 0xa + NL_ATTR_TYPE_STRING = 0xb + NL_ATTR_TYPE_NUL_STRING = 0xc + NL_ATTR_TYPE_NESTED = 0xd + NL_ATTR_TYPE_NESTED_ARRAY = 0xe + NL_ATTR_TYPE_BITFIELD32 = 0xf + + NL_POLICY_TYPE_ATTR_UNSPEC = 0x0 + NL_POLICY_TYPE_ATTR_TYPE = 0x1 + NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 0x2 + NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 0x3 + NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 0x4 + NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 0x5 + NL_POLICY_TYPE_ATTR_MIN_LENGTH = 0x6 + NL_POLICY_TYPE_ATTR_MAX_LENGTH = 0x7 + NL_POLICY_TYPE_ATTR_POLICY_IDX = 0x8 + NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 0x9 + NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 0xa + NL_POLICY_TYPE_ATTR_PAD = 0xb + NL_POLICY_TYPE_ATTR_MASK = 0xc + NL_POLICY_TYPE_ATTR_MAX = 0xc +) + +type CANBitTiming struct { + Bitrate uint32 + Sample_point uint32 + Tq uint32 + Prop_seg uint32 + Phase_seg1 uint32 + Phase_seg2 uint32 + Sjw uint32 + Brp uint32 +} + +type CANBitTimingConst struct { + Name [16]uint8 + Tseg1_min uint32 + Tseg1_max uint32 + Tseg2_min uint32 + Tseg2_max uint32 + Sjw_max uint32 + Brp_min uint32 + Brp_max uint32 + Brp_inc uint32 +} + +type CANClock struct { + Freq uint32 +} + +type CANBusErrorCounters struct { + Txerr uint16 + Rxerr uint16 +} + +type CANCtrlMode struct { + Mask uint32 + Flags uint32 +} + +type CANDeviceStats struct { + Bus_error uint32 + Error_warning uint32 + Error_passive uint32 + Bus_off uint32 + Arbitration_lost uint32 + Restarts uint32 +} + +const ( + CAN_STATE_ERROR_ACTIVE = 0x0 + CAN_STATE_ERROR_WARNING = 0x1 + CAN_STATE_ERROR_PASSIVE = 0x2 + CAN_STATE_BUS_OFF = 0x3 + CAN_STATE_STOPPED = 0x4 + CAN_STATE_SLEEPING = 0x5 + CAN_STATE_MAX = 0x6 +) + +const ( + IFLA_CAN_UNSPEC = 0x0 + IFLA_CAN_BITTIMING = 0x1 + IFLA_CAN_BITTIMING_CONST = 0x2 + IFLA_CAN_CLOCK = 0x3 + IFLA_CAN_STATE = 0x4 + IFLA_CAN_CTRLMODE = 0x5 + IFLA_CAN_RESTART_MS = 0x6 + IFLA_CAN_RESTART = 0x7 + IFLA_CAN_BERR_COUNTER = 0x8 + IFLA_CAN_DATA_BITTIMING = 0x9 + IFLA_CAN_DATA_BITTIMING_CONST = 0xa + IFLA_CAN_TERMINATION = 0xb + IFLA_CAN_TERMINATION_CONST = 0xc + IFLA_CAN_BITRATE_CONST = 0xd + IFLA_CAN_DATA_BITRATE_CONST = 0xe + IFLA_CAN_BITRATE_MAX = 0xf +) + +type KCMAttach struct { + Fd int32 + Bpf_fd int32 +} + +type KCMUnattach struct { + Fd int32 +} + +type KCMClone struct { + Fd int32 +} + +const ( + NL80211_AC_BE = 0x2 + NL80211_AC_BK = 0x3 + NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0x0 + NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 0x1 + NL80211_AC_VI = 0x1 + NL80211_AC_VO = 0x0 + NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 0x1 + NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 0x2 + NL80211_AP_SME_SA_QUERY_OFFLOAD = 0x1 + NL80211_ATTR_4ADDR = 0x53 + NL80211_ATTR_ACK = 0x5c + NL80211_ATTR_ACK_SIGNAL = 0x107 + NL80211_ATTR_ACL_POLICY = 0xa5 + NL80211_ATTR_ADMITTED_TIME = 0xd4 + NL80211_ATTR_AIRTIME_WEIGHT = 0x112 + NL80211_ATTR_AKM_SUITES = 0x4c + NL80211_ATTR_AP_ISOLATE = 0x60 + NL80211_ATTR_AP_SETTINGS_FLAGS = 0x135 + NL80211_ATTR_AUTH_DATA = 0x9c + NL80211_ATTR_AUTH_TYPE = 0x35 + NL80211_ATTR_BANDS = 0xef + NL80211_ATTR_BEACON_HEAD = 0xe + NL80211_ATTR_BEACON_INTERVAL = 0xc + NL80211_ATTR_BEACON_TAIL = 0xf + NL80211_ATTR_BG_SCAN_PERIOD = 0x98 + NL80211_ATTR_BSS_BASIC_RATES = 0x24 + NL80211_ATTR_BSS = 0x2f + NL80211_ATTR_BSS_CTS_PROT = 0x1c + NL80211_ATTR_BSS_HT_OPMODE = 0x6d + NL80211_ATTR_BSSID = 0xf5 + NL80211_ATTR_BSS_SELECT = 0xe3 + NL80211_ATTR_BSS_SHORT_PREAMBLE = 0x1d + NL80211_ATTR_BSS_SHORT_SLOT_TIME = 0x1e + NL80211_ATTR_CENTER_FREQ1 = 0xa0 + NL80211_ATTR_CENTER_FREQ1_OFFSET = 0x123 + NL80211_ATTR_CENTER_FREQ2 = 0xa1 + NL80211_ATTR_CHANNEL_WIDTH = 0x9f + NL80211_ATTR_CH_SWITCH_BLOCK_TX = 0xb8 + NL80211_ATTR_CH_SWITCH_COUNT = 0xb7 + NL80211_ATTR_CIPHER_SUITE_GROUP = 0x4a + NL80211_ATTR_CIPHER_SUITES = 0x39 + NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 0x49 + NL80211_ATTR_CNTDWN_OFFS_BEACON = 0xba + NL80211_ATTR_CNTDWN_OFFS_PRESP = 0xbb + NL80211_ATTR_COALESCE_RULE = 0xb6 + NL80211_ATTR_COALESCE_RULE_CONDITION = 0x2 + NL80211_ATTR_COALESCE_RULE_DELAY = 0x1 + NL80211_ATTR_COALESCE_RULE_MAX = 0x3 + NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 0x3 + NL80211_ATTR_COLOR_CHANGE_COLOR = 0x130 + NL80211_ATTR_COLOR_CHANGE_COUNT = 0x12f + NL80211_ATTR_COLOR_CHANGE_ELEMS = 0x131 + NL80211_ATTR_CONN_FAILED_REASON = 0x9b + NL80211_ATTR_CONTROL_PORT = 0x44 + NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 0x66 + NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 0x67 + NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 0x11e + NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 0x108 + NL80211_ATTR_COOKIE = 0x58 + NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 0x8 + NL80211_ATTR_CQM = 0x5e + NL80211_ATTR_CQM_MAX = 0x9 + NL80211_ATTR_CQM_PKT_LOSS_EVENT = 0x4 + NL80211_ATTR_CQM_RSSI_HYST = 0x2 + NL80211_ATTR_CQM_RSSI_LEVEL = 0x9 + NL80211_ATTR_CQM_RSSI_THOLD = 0x1 + NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 0x3 + NL80211_ATTR_CQM_TXE_INTVL = 0x7 + NL80211_ATTR_CQM_TXE_PKTS = 0x6 + NL80211_ATTR_CQM_TXE_RATE = 0x5 + NL80211_ATTR_CRIT_PROT_ID = 0xb3 + NL80211_ATTR_CSA_C_OFF_BEACON = 0xba + NL80211_ATTR_CSA_C_OFF_PRESP = 0xbb + NL80211_ATTR_CSA_C_OFFSETS_TX = 0xcd + NL80211_ATTR_CSA_IES = 0xb9 + NL80211_ATTR_DEVICE_AP_SME = 0x8d + NL80211_ATTR_DFS_CAC_TIME = 0x7 + NL80211_ATTR_DFS_REGION = 0x92 + NL80211_ATTR_DISABLE_EHT = 0x137 + NL80211_ATTR_DISABLE_HE = 0x12d + NL80211_ATTR_DISABLE_HT = 0x93 + NL80211_ATTR_DISABLE_VHT = 0xaf + NL80211_ATTR_DISCONNECTED_BY_AP = 0x47 + NL80211_ATTR_DONT_WAIT_FOR_ACK = 0x8e + NL80211_ATTR_DTIM_PERIOD = 0xd + NL80211_ATTR_DURATION = 0x57 + NL80211_ATTR_EHT_CAPABILITY = 0x136 + NL80211_ATTR_EML_CAPABILITY = 0x13d + NL80211_ATTR_EXT_CAPA = 0xa9 + NL80211_ATTR_EXT_CAPA_MASK = 0xaa + NL80211_ATTR_EXTERNAL_AUTH_ACTION = 0x104 + NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 0x105 + NL80211_ATTR_EXT_FEATURES = 0xd9 + NL80211_ATTR_FEATURE_FLAGS = 0x8f + NL80211_ATTR_FILS_CACHE_ID = 0xfd + NL80211_ATTR_FILS_DISCOVERY = 0x126 + NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 0xfb + NL80211_ATTR_FILS_ERP_REALM = 0xfa + NL80211_ATTR_FILS_ERP_RRK = 0xfc + NL80211_ATTR_FILS_ERP_USERNAME = 0xf9 + NL80211_ATTR_FILS_KEK = 0xf2 + NL80211_ATTR_FILS_NONCES = 0xf3 + NL80211_ATTR_FRAME = 0x33 + NL80211_ATTR_FRAME_MATCH = 0x5b + NL80211_ATTR_FRAME_TYPE = 0x65 + NL80211_ATTR_FREQ_AFTER = 0x3b + NL80211_ATTR_FREQ_BEFORE = 0x3a + NL80211_ATTR_FREQ_FIXED = 0x3c + NL80211_ATTR_FREQ_RANGE_END = 0x3 + NL80211_ATTR_FREQ_RANGE_MAX_BW = 0x4 + NL80211_ATTR_FREQ_RANGE_START = 0x2 + NL80211_ATTR_FTM_RESPONDER = 0x10e + NL80211_ATTR_FTM_RESPONDER_STATS = 0x10f + NL80211_ATTR_GENERATION = 0x2e + NL80211_ATTR_HANDLE_DFS = 0xbf + NL80211_ATTR_HE_6GHZ_CAPABILITY = 0x125 + NL80211_ATTR_HE_BSS_COLOR = 0x11b + NL80211_ATTR_HE_CAPABILITY = 0x10d + NL80211_ATTR_HE_OBSS_PD = 0x117 + NL80211_ATTR_HIDDEN_SSID = 0x7e + NL80211_ATTR_HT_CAPABILITY = 0x1f + NL80211_ATTR_HT_CAPABILITY_MASK = 0x94 + NL80211_ATTR_IE_ASSOC_RESP = 0x80 + NL80211_ATTR_IE = 0x2a + NL80211_ATTR_IE_PROBE_RESP = 0x7f + NL80211_ATTR_IE_RIC = 0xb2 + NL80211_ATTR_IFACE_SOCKET_OWNER = 0xcc + NL80211_ATTR_IFINDEX = 0x3 + NL80211_ATTR_IFNAME = 0x4 + NL80211_ATTR_IFTYPE_AKM_SUITES = 0x11c + NL80211_ATTR_IFTYPE = 0x5 + NL80211_ATTR_IFTYPE_EXT_CAPA = 0xe6 + NL80211_ATTR_INACTIVITY_TIMEOUT = 0x96 + NL80211_ATTR_INTERFACE_COMBINATIONS = 0x78 + NL80211_ATTR_KEY_CIPHER = 0x9 + NL80211_ATTR_KEY = 0x50 + NL80211_ATTR_KEY_DATA = 0x7 + NL80211_ATTR_KEY_DEFAULT = 0xb + NL80211_ATTR_KEY_DEFAULT_MGMT = 0x28 + NL80211_ATTR_KEY_DEFAULT_TYPES = 0x6e + NL80211_ATTR_KEY_IDX = 0x8 + NL80211_ATTR_KEYS = 0x51 + NL80211_ATTR_KEY_SEQ = 0xa + NL80211_ATTR_KEY_TYPE = 0x37 + NL80211_ATTR_LOCAL_MESH_POWER_MODE = 0xa4 + NL80211_ATTR_LOCAL_STATE_CHANGE = 0x5f + NL80211_ATTR_MAC_ACL_MAX = 0xa7 + NL80211_ATTR_MAC_ADDRS = 0xa6 + NL80211_ATTR_MAC = 0x6 + NL80211_ATTR_MAC_HINT = 0xc8 + NL80211_ATTR_MAC_MASK = 0xd7 + NL80211_ATTR_MAX_AP_ASSOC_STA = 0xca + NL80211_ATTR_MAX = 0x140 + NL80211_ATTR_MAX_CRIT_PROT_DURATION = 0xb4 + NL80211_ATTR_MAX_CSA_COUNTERS = 0xce + NL80211_ATTR_MAX_MATCH_SETS = 0x85 + NL80211_ATTR_MAX_NUM_AKM_SUITES = 0x13c + NL80211_ATTR_MAX_NUM_PMKIDS = 0x56 + NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 0x2b + NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 0xde + NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 0x7b + NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 0x6f + NL80211_ATTR_MAX_SCAN_IE_LEN = 0x38 + NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 0xdf + NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 0xe0 + NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 0x7c + NL80211_ATTR_MBSSID_CONFIG = 0x132 + NL80211_ATTR_MBSSID_ELEMS = 0x133 + NL80211_ATTR_MCAST_RATE = 0x6b + NL80211_ATTR_MDID = 0xb1 + NL80211_ATTR_MEASUREMENT_DURATION = 0xeb + NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 0xec + NL80211_ATTR_MESH_CONFIG = 0x23 + NL80211_ATTR_MESH_ID = 0x18 + NL80211_ATTR_MESH_PEER_AID = 0xed + NL80211_ATTR_MESH_SETUP = 0x70 + NL80211_ATTR_MGMT_SUBTYPE = 0x29 + NL80211_ATTR_MLD_ADDR = 0x13a + NL80211_ATTR_MLD_CAPA_AND_OPS = 0x13e + NL80211_ATTR_MLO_LINK_ID = 0x139 + NL80211_ATTR_MLO_LINKS = 0x138 + NL80211_ATTR_MLO_SUPPORT = 0x13b + NL80211_ATTR_MNTR_FLAGS = 0x17 + NL80211_ATTR_MPATH_INFO = 0x1b + NL80211_ATTR_MPATH_NEXT_HOP = 0x1a + NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 0xf4 + NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 0xe8 + NL80211_ATTR_MU_MIMO_GROUP_DATA = 0xe7 + NL80211_ATTR_NAN_FUNC = 0xf0 + NL80211_ATTR_NAN_MASTER_PREF = 0xee + NL80211_ATTR_NAN_MATCH = 0xf1 + NL80211_ATTR_NETNS_FD = 0xdb + NL80211_ATTR_NOACK_MAP = 0x95 + NL80211_ATTR_NSS = 0x106 + NL80211_ATTR_OBSS_COLOR_BITMAP = 0x12e + NL80211_ATTR_OFFCHANNEL_TX_OK = 0x6c + NL80211_ATTR_OPER_CLASS = 0xd6 + NL80211_ATTR_OPMODE_NOTIF = 0xc2 + NL80211_ATTR_P2P_CTWINDOW = 0xa2 + NL80211_ATTR_P2P_OPPPS = 0xa3 + NL80211_ATTR_PAD = 0xe5 + NL80211_ATTR_PBSS = 0xe2 + NL80211_ATTR_PEER_AID = 0xb5 + NL80211_ATTR_PEER_MEASUREMENTS = 0x111 + NL80211_ATTR_PID = 0x52 + NL80211_ATTR_PMK = 0xfe + NL80211_ATTR_PMKID = 0x55 + NL80211_ATTR_PMK_LIFETIME = 0x11f + NL80211_ATTR_PMKR0_NAME = 0x102 + NL80211_ATTR_PMK_REAUTH_THRESHOLD = 0x120 + NL80211_ATTR_PMKSA_CANDIDATE = 0x86 + NL80211_ATTR_PORT_AUTHORIZED = 0x103 + NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 0x5 + NL80211_ATTR_POWER_RULE_MAX_EIRP = 0x6 + NL80211_ATTR_PREV_BSSID = 0x4f + NL80211_ATTR_PRIVACY = 0x46 + NL80211_ATTR_PROBE_RESP = 0x91 + NL80211_ATTR_PROBE_RESP_OFFLOAD = 0x90 + NL80211_ATTR_PROTOCOL_FEATURES = 0xad + NL80211_ATTR_PS_STATE = 0x5d + NL80211_ATTR_QOS_MAP = 0xc7 + NL80211_ATTR_RADAR_BACKGROUND = 0x134 + NL80211_ATTR_RADAR_EVENT = 0xa8 + NL80211_ATTR_REASON_CODE = 0x36 + NL80211_ATTR_RECEIVE_MULTICAST = 0x121 + NL80211_ATTR_RECONNECT_REQUESTED = 0x12b + NL80211_ATTR_REG_ALPHA2 = 0x21 + NL80211_ATTR_REG_INDOOR = 0xdd + NL80211_ATTR_REG_INITIATOR = 0x30 + NL80211_ATTR_REG_RULE_FLAGS = 0x1 + NL80211_ATTR_REG_RULES = 0x22 + NL80211_ATTR_REG_TYPE = 0x31 + NL80211_ATTR_REKEY_DATA = 0x7a + NL80211_ATTR_REQ_IE = 0x4d + NL80211_ATTR_RESP_IE = 0x4e + NL80211_ATTR_ROAM_SUPPORT = 0x83 + NL80211_ATTR_RX_FRAME_TYPES = 0x64 + NL80211_ATTR_RX_HW_TIMESTAMP = 0x140 + NL80211_ATTR_RXMGMT_FLAGS = 0xbc + NL80211_ATTR_RX_SIGNAL_DBM = 0x97 + NL80211_ATTR_S1G_CAPABILITY = 0x128 + NL80211_ATTR_S1G_CAPABILITY_MASK = 0x129 + NL80211_ATTR_SAE_DATA = 0x9c + NL80211_ATTR_SAE_PASSWORD = 0x115 + NL80211_ATTR_SAE_PWE = 0x12a + NL80211_ATTR_SAR_SPEC = 0x12c + NL80211_ATTR_SCAN_FLAGS = 0x9e + NL80211_ATTR_SCAN_FREQ_KHZ = 0x124 + NL80211_ATTR_SCAN_FREQUENCIES = 0x2c + NL80211_ATTR_SCAN_GENERATION = 0x2e + NL80211_ATTR_SCAN_SSIDS = 0x2d + NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 0xea + NL80211_ATTR_SCAN_START_TIME_TSF = 0xe9 + NL80211_ATTR_SCAN_SUPP_RATES = 0x7d + NL80211_ATTR_SCHED_SCAN_DELAY = 0xdc + NL80211_ATTR_SCHED_SCAN_INTERVAL = 0x77 + NL80211_ATTR_SCHED_SCAN_MATCH = 0x84 + NL80211_ATTR_SCHED_SCAN_MATCH_SSID = 0x1 + NL80211_ATTR_SCHED_SCAN_MAX_REQS = 0x100 + NL80211_ATTR_SCHED_SCAN_MULTI = 0xff + NL80211_ATTR_SCHED_SCAN_PLANS = 0xe1 + NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 0xf6 + NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 0xf7 + NL80211_ATTR_SMPS_MODE = 0xd5 + NL80211_ATTR_SOCKET_OWNER = 0xcc + NL80211_ATTR_SOFTWARE_IFTYPES = 0x79 + NL80211_ATTR_SPLIT_WIPHY_DUMP = 0xae + NL80211_ATTR_SSID = 0x34 + NL80211_ATTR_STA_AID = 0x10 + NL80211_ATTR_STA_CAPABILITY = 0xab + NL80211_ATTR_STA_EXT_CAPABILITY = 0xac + NL80211_ATTR_STA_FLAGS2 = 0x43 + NL80211_ATTR_STA_FLAGS = 0x11 + NL80211_ATTR_STA_INFO = 0x15 + NL80211_ATTR_STA_LISTEN_INTERVAL = 0x12 + NL80211_ATTR_STA_PLINK_ACTION = 0x19 + NL80211_ATTR_STA_PLINK_STATE = 0x74 + NL80211_ATTR_STA_SUPPORTED_CHANNELS = 0xbd + NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 0xbe + NL80211_ATTR_STA_SUPPORTED_RATES = 0x13 + NL80211_ATTR_STA_SUPPORT_P2P_PS = 0xe4 + NL80211_ATTR_STATUS_CODE = 0x48 + NL80211_ATTR_STA_TX_POWER = 0x114 + NL80211_ATTR_STA_TX_POWER_SETTING = 0x113 + NL80211_ATTR_STA_VLAN = 0x14 + NL80211_ATTR_STA_WME = 0x81 + NL80211_ATTR_SUPPORT_10_MHZ = 0xc1 + NL80211_ATTR_SUPPORT_5_MHZ = 0xc0 + NL80211_ATTR_SUPPORT_AP_UAPSD = 0x82 + NL80211_ATTR_SUPPORTED_COMMANDS = 0x32 + NL80211_ATTR_SUPPORTED_IFTYPES = 0x20 + NL80211_ATTR_SUPPORT_IBSS_RSN = 0x68 + NL80211_ATTR_SUPPORT_MESH_AUTH = 0x73 + NL80211_ATTR_SURVEY_INFO = 0x54 + NL80211_ATTR_SURVEY_RADIO_STATS = 0xda + NL80211_ATTR_TDLS_ACTION = 0x88 + NL80211_ATTR_TDLS_DIALOG_TOKEN = 0x89 + NL80211_ATTR_TDLS_EXTERNAL_SETUP = 0x8c + NL80211_ATTR_TDLS_INITIATOR = 0xcf + NL80211_ATTR_TDLS_OPERATION = 0x8a + NL80211_ATTR_TDLS_PEER_CAPABILITY = 0xcb + NL80211_ATTR_TDLS_SUPPORT = 0x8b + NL80211_ATTR_TESTDATA = 0x45 + NL80211_ATTR_TID_CONFIG = 0x11d + NL80211_ATTR_TIMED_OUT = 0x41 + NL80211_ATTR_TIMEOUT = 0x110 + NL80211_ATTR_TIMEOUT_REASON = 0xf8 + NL80211_ATTR_TSID = 0xd2 + NL80211_ATTR_TWT_RESPONDER = 0x116 + NL80211_ATTR_TX_FRAME_TYPES = 0x63 + NL80211_ATTR_TX_HW_TIMESTAMP = 0x13f + NL80211_ATTR_TX_NO_CCK_RATE = 0x87 + NL80211_ATTR_TXQ_LIMIT = 0x10a + NL80211_ATTR_TXQ_MEMORY_LIMIT = 0x10b + NL80211_ATTR_TXQ_QUANTUM = 0x10c + NL80211_ATTR_TXQ_STATS = 0x109 + NL80211_ATTR_TX_RATES = 0x5a + NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 0x127 + NL80211_ATTR_UNSPEC = 0x0 + NL80211_ATTR_USE_MFP = 0x42 + NL80211_ATTR_USER_PRIO = 0xd3 + NL80211_ATTR_USER_REG_HINT_TYPE = 0x9a + NL80211_ATTR_USE_RRM = 0xd0 + NL80211_ATTR_VENDOR_DATA = 0xc5 + NL80211_ATTR_VENDOR_EVENTS = 0xc6 + NL80211_ATTR_VENDOR_ID = 0xc3 + NL80211_ATTR_VENDOR_SUBCMD = 0xc4 + NL80211_ATTR_VHT_CAPABILITY = 0x9d + NL80211_ATTR_VHT_CAPABILITY_MASK = 0xb0 + NL80211_ATTR_VLAN_ID = 0x11a + NL80211_ATTR_WANT_1X_4WAY_HS = 0x101 + NL80211_ATTR_WDEV = 0x99 + NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 0x72 + NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 0x71 + NL80211_ATTR_WIPHY_ANTENNA_RX = 0x6a + NL80211_ATTR_WIPHY_ANTENNA_TX = 0x69 + NL80211_ATTR_WIPHY_BANDS = 0x16 + NL80211_ATTR_WIPHY_CHANNEL_TYPE = 0x27 + NL80211_ATTR_WIPHY = 0x1 + NL80211_ATTR_WIPHY_COVERAGE_CLASS = 0x59 + NL80211_ATTR_WIPHY_DYN_ACK = 0xd1 + NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 0x119 + NL80211_ATTR_WIPHY_EDMG_CHANNELS = 0x118 + NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 0x3f + NL80211_ATTR_WIPHY_FREQ = 0x26 + NL80211_ATTR_WIPHY_FREQ_HINT = 0xc9 + NL80211_ATTR_WIPHY_FREQ_OFFSET = 0x122 + NL80211_ATTR_WIPHY_NAME = 0x2 + NL80211_ATTR_WIPHY_RETRY_LONG = 0x3e + NL80211_ATTR_WIPHY_RETRY_SHORT = 0x3d + NL80211_ATTR_WIPHY_RTS_THRESHOLD = 0x40 + NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 0xd8 + NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 0x62 + NL80211_ATTR_WIPHY_TX_POWER_SETTING = 0x61 + NL80211_ATTR_WIPHY_TXQ_PARAMS = 0x25 + NL80211_ATTR_WOWLAN_TRIGGERS = 0x75 + NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 0x76 + NL80211_ATTR_WPA_VERSIONS = 0x4b + NL80211_AUTHTYPE_AUTOMATIC = 0x8 + NL80211_AUTHTYPE_FILS_PK = 0x7 + NL80211_AUTHTYPE_FILS_SK = 0x5 + NL80211_AUTHTYPE_FILS_SK_PFS = 0x6 + NL80211_AUTHTYPE_FT = 0x2 + NL80211_AUTHTYPE_MAX = 0x7 + NL80211_AUTHTYPE_NETWORK_EAP = 0x3 + NL80211_AUTHTYPE_OPEN_SYSTEM = 0x0 + NL80211_AUTHTYPE_SAE = 0x4 + NL80211_AUTHTYPE_SHARED_KEY = 0x1 + NL80211_BAND_2GHZ = 0x0 + NL80211_BAND_5GHZ = 0x1 + NL80211_BAND_60GHZ = 0x2 + NL80211_BAND_6GHZ = 0x3 + NL80211_BAND_ATTR_EDMG_BW_CONFIG = 0xb + NL80211_BAND_ATTR_EDMG_CHANNELS = 0xa + NL80211_BAND_ATTR_FREQS = 0x1 + NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 0x6 + NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 0x5 + NL80211_BAND_ATTR_HT_CAPA = 0x4 + NL80211_BAND_ATTR_HT_MCS_SET = 0x3 + NL80211_BAND_ATTR_IFTYPE_DATA = 0x9 + NL80211_BAND_ATTR_MAX = 0xb + NL80211_BAND_ATTR_RATES = 0x2 + NL80211_BAND_ATTR_VHT_CAPA = 0x8 + NL80211_BAND_ATTR_VHT_MCS_SET = 0x7 + NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 0x8 + NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 0xa + NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 0x9 + NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 0xb + NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 0x6 + NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 0x2 + NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 0x4 + NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 0x3 + NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 0x5 + NL80211_BAND_IFTYPE_ATTR_IFTYPES = 0x1 + NL80211_BAND_IFTYPE_ATTR_MAX = 0xb + NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 0x7 + NL80211_BAND_LC = 0x5 + NL80211_BAND_S1GHZ = 0x4 + NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 0x2 + NL80211_BITRATE_ATTR_MAX = 0x2 + NL80211_BITRATE_ATTR_RATE = 0x1 + NL80211_BSS_BEACON_IES = 0xb + NL80211_BSS_BEACON_INTERVAL = 0x4 + NL80211_BSS_BEACON_TSF = 0xd + NL80211_BSS_BSSID = 0x1 + NL80211_BSS_CAPABILITY = 0x5 + NL80211_BSS_CHAIN_SIGNAL = 0x13 + NL80211_BSS_CHAN_WIDTH_10 = 0x1 + NL80211_BSS_CHAN_WIDTH_1 = 0x3 + NL80211_BSS_CHAN_WIDTH_20 = 0x0 + NL80211_BSS_CHAN_WIDTH_2 = 0x4 + NL80211_BSS_CHAN_WIDTH_5 = 0x2 + NL80211_BSS_CHAN_WIDTH = 0xc + NL80211_BSS_FREQUENCY = 0x2 + NL80211_BSS_FREQUENCY_OFFSET = 0x14 + NL80211_BSS_INFORMATION_ELEMENTS = 0x6 + NL80211_BSS_LAST_SEEN_BOOTTIME = 0xf + NL80211_BSS_MAX = 0x16 + NL80211_BSS_MLD_ADDR = 0x16 + NL80211_BSS_MLO_LINK_ID = 0x15 + NL80211_BSS_PAD = 0x10 + NL80211_BSS_PARENT_BSSID = 0x12 + NL80211_BSS_PARENT_TSF = 0x11 + NL80211_BSS_PRESP_DATA = 0xe + NL80211_BSS_SEEN_MS_AGO = 0xa + NL80211_BSS_SELECT_ATTR_BAND_PREF = 0x2 + NL80211_BSS_SELECT_ATTR_MAX = 0x3 + NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 0x3 + NL80211_BSS_SELECT_ATTR_RSSI = 0x1 + NL80211_BSS_SIGNAL_MBM = 0x7 + NL80211_BSS_SIGNAL_UNSPEC = 0x8 + NL80211_BSS_STATUS_ASSOCIATED = 0x1 + NL80211_BSS_STATUS_AUTHENTICATED = 0x0 + NL80211_BSS_STATUS = 0x9 + NL80211_BSS_STATUS_IBSS_JOINED = 0x2 + NL80211_BSS_TSF = 0x3 + NL80211_CHAN_HT20 = 0x1 + NL80211_CHAN_HT40MINUS = 0x2 + NL80211_CHAN_HT40PLUS = 0x3 + NL80211_CHAN_NO_HT = 0x0 + NL80211_CHAN_WIDTH_10 = 0x7 + NL80211_CHAN_WIDTH_160 = 0x5 + NL80211_CHAN_WIDTH_16 = 0xc + NL80211_CHAN_WIDTH_1 = 0x8 + NL80211_CHAN_WIDTH_20 = 0x1 + NL80211_CHAN_WIDTH_20_NOHT = 0x0 + NL80211_CHAN_WIDTH_2 = 0x9 + NL80211_CHAN_WIDTH_320 = 0xd + NL80211_CHAN_WIDTH_40 = 0x2 + NL80211_CHAN_WIDTH_4 = 0xa + NL80211_CHAN_WIDTH_5 = 0x6 + NL80211_CHAN_WIDTH_80 = 0x3 + NL80211_CHAN_WIDTH_80P80 = 0x4 + NL80211_CHAN_WIDTH_8 = 0xb + NL80211_CMD_ABORT_SCAN = 0x72 + NL80211_CMD_ACTION = 0x3b + NL80211_CMD_ACTION_TX_STATUS = 0x3c + NL80211_CMD_ADD_LINK = 0x94 + NL80211_CMD_ADD_LINK_STA = 0x96 + NL80211_CMD_ADD_NAN_FUNCTION = 0x75 + NL80211_CMD_ADD_TX_TS = 0x69 + NL80211_CMD_ASSOC_COMEBACK = 0x93 + NL80211_CMD_ASSOCIATE = 0x26 + NL80211_CMD_AUTHENTICATE = 0x25 + NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 0x38 + NL80211_CMD_CHANGE_NAN_CONFIG = 0x77 + NL80211_CMD_CHANNEL_SWITCH = 0x66 + NL80211_CMD_CH_SWITCH_NOTIFY = 0x58 + NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 0x6e + NL80211_CMD_COLOR_CHANGE_ABORTED = 0x90 + NL80211_CMD_COLOR_CHANGE_COMPLETED = 0x91 + NL80211_CMD_COLOR_CHANGE_REQUEST = 0x8e + NL80211_CMD_COLOR_CHANGE_STARTED = 0x8f + NL80211_CMD_CONNECT = 0x2e + NL80211_CMD_CONN_FAILED = 0x5b + NL80211_CMD_CONTROL_PORT_FRAME = 0x81 + NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 0x8b + NL80211_CMD_CRIT_PROTOCOL_START = 0x62 + NL80211_CMD_CRIT_PROTOCOL_STOP = 0x63 + NL80211_CMD_DEAUTHENTICATE = 0x27 + NL80211_CMD_DEL_BEACON = 0x10 + NL80211_CMD_DEL_INTERFACE = 0x8 + NL80211_CMD_DEL_KEY = 0xc + NL80211_CMD_DEL_MPATH = 0x18 + NL80211_CMD_DEL_NAN_FUNCTION = 0x76 + NL80211_CMD_DEL_PMK = 0x7c + NL80211_CMD_DEL_PMKSA = 0x35 + NL80211_CMD_DEL_STATION = 0x14 + NL80211_CMD_DEL_TX_TS = 0x6a + NL80211_CMD_DEL_WIPHY = 0x4 + NL80211_CMD_DISASSOCIATE = 0x28 + NL80211_CMD_DISCONNECT = 0x30 + NL80211_CMD_EXTERNAL_AUTH = 0x7f + NL80211_CMD_FLUSH_PMKSA = 0x36 + NL80211_CMD_FRAME = 0x3b + NL80211_CMD_FRAME_TX_STATUS = 0x3c + NL80211_CMD_FRAME_WAIT_CANCEL = 0x43 + NL80211_CMD_FT_EVENT = 0x61 + NL80211_CMD_GET_BEACON = 0xd + NL80211_CMD_GET_COALESCE = 0x64 + NL80211_CMD_GET_FTM_RESPONDER_STATS = 0x82 + NL80211_CMD_GET_INTERFACE = 0x5 + NL80211_CMD_GET_KEY = 0x9 + NL80211_CMD_GET_MESH_CONFIG = 0x1c + NL80211_CMD_GET_MESH_PARAMS = 0x1c + NL80211_CMD_GET_MPATH = 0x15 + NL80211_CMD_GET_MPP = 0x6b + NL80211_CMD_GET_POWER_SAVE = 0x3e + NL80211_CMD_GET_PROTOCOL_FEATURES = 0x5f + NL80211_CMD_GET_REG = 0x1f + NL80211_CMD_GET_SCAN = 0x20 + NL80211_CMD_GET_STATION = 0x11 + NL80211_CMD_GET_SURVEY = 0x32 + NL80211_CMD_GET_WIPHY = 0x1 + NL80211_CMD_GET_WOWLAN = 0x49 + NL80211_CMD_JOIN_IBSS = 0x2b + NL80211_CMD_JOIN_MESH = 0x44 + NL80211_CMD_JOIN_OCB = 0x6c + NL80211_CMD_LEAVE_IBSS = 0x2c + NL80211_CMD_LEAVE_MESH = 0x45 + NL80211_CMD_LEAVE_OCB = 0x6d + NL80211_CMD_MAX = 0x98 + NL80211_CMD_MICHAEL_MIC_FAILURE = 0x29 + NL80211_CMD_MODIFY_LINK_STA = 0x97 + NL80211_CMD_NAN_MATCH = 0x78 + NL80211_CMD_NEW_BEACON = 0xf + NL80211_CMD_NEW_INTERFACE = 0x7 + NL80211_CMD_NEW_KEY = 0xb + NL80211_CMD_NEW_MPATH = 0x17 + NL80211_CMD_NEW_PEER_CANDIDATE = 0x48 + NL80211_CMD_NEW_SCAN_RESULTS = 0x22 + NL80211_CMD_NEW_STATION = 0x13 + NL80211_CMD_NEW_SURVEY_RESULTS = 0x33 + NL80211_CMD_NEW_WIPHY = 0x3 + NL80211_CMD_NOTIFY_CQM = 0x40 + NL80211_CMD_NOTIFY_RADAR = 0x86 + NL80211_CMD_OBSS_COLOR_COLLISION = 0x8d + NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 0x85 + NL80211_CMD_PEER_MEASUREMENT_RESULT = 0x84 + NL80211_CMD_PEER_MEASUREMENT_START = 0x83 + NL80211_CMD_PMKSA_CANDIDATE = 0x50 + NL80211_CMD_PORT_AUTHORIZED = 0x7d + NL80211_CMD_PROBE_CLIENT = 0x54 + NL80211_CMD_PROBE_MESH_LINK = 0x88 + NL80211_CMD_RADAR_DETECT = 0x5e + NL80211_CMD_REG_BEACON_HINT = 0x2a + NL80211_CMD_REG_CHANGE = 0x24 + NL80211_CMD_REGISTER_ACTION = 0x3a + NL80211_CMD_REGISTER_BEACONS = 0x55 + NL80211_CMD_REGISTER_FRAME = 0x3a + NL80211_CMD_RELOAD_REGDB = 0x7e + NL80211_CMD_REMAIN_ON_CHANNEL = 0x37 + NL80211_CMD_REMOVE_LINK = 0x95 + NL80211_CMD_REMOVE_LINK_STA = 0x98 + NL80211_CMD_REQ_SET_REG = 0x1b + NL80211_CMD_ROAM = 0x2f + NL80211_CMD_SCAN_ABORTED = 0x23 + NL80211_CMD_SCHED_SCAN_RESULTS = 0x4d + NL80211_CMD_SCHED_SCAN_STOPPED = 0x4e + NL80211_CMD_SET_BEACON = 0xe + NL80211_CMD_SET_BSS = 0x19 + NL80211_CMD_SET_CHANNEL = 0x41 + NL80211_CMD_SET_COALESCE = 0x65 + NL80211_CMD_SET_CQM = 0x3f + NL80211_CMD_SET_FILS_AAD = 0x92 + NL80211_CMD_SET_INTERFACE = 0x6 + NL80211_CMD_SET_KEY = 0xa + NL80211_CMD_SET_MAC_ACL = 0x5d + NL80211_CMD_SET_MCAST_RATE = 0x5c + NL80211_CMD_SET_MESH_CONFIG = 0x1d + NL80211_CMD_SET_MESH_PARAMS = 0x1d + NL80211_CMD_SET_MGMT_EXTRA_IE = 0x1e + NL80211_CMD_SET_MPATH = 0x16 + NL80211_CMD_SET_MULTICAST_TO_UNICAST = 0x79 + NL80211_CMD_SET_NOACK_MAP = 0x57 + NL80211_CMD_SET_PMK = 0x7b + NL80211_CMD_SET_PMKSA = 0x34 + NL80211_CMD_SET_POWER_SAVE = 0x3d + NL80211_CMD_SET_QOS_MAP = 0x68 + NL80211_CMD_SET_REG = 0x1a + NL80211_CMD_SET_REKEY_OFFLOAD = 0x4f + NL80211_CMD_SET_SAR_SPECS = 0x8c + NL80211_CMD_SET_STATION = 0x12 + NL80211_CMD_SET_TID_CONFIG = 0x89 + NL80211_CMD_SET_TX_BITRATE_MASK = 0x39 + NL80211_CMD_SET_WDS_PEER = 0x42 + NL80211_CMD_SET_WIPHY = 0x2 + NL80211_CMD_SET_WIPHY_NETNS = 0x31 + NL80211_CMD_SET_WOWLAN = 0x4a + NL80211_CMD_STA_OPMODE_CHANGED = 0x80 + NL80211_CMD_START_AP = 0xf + NL80211_CMD_START_NAN = 0x73 + NL80211_CMD_START_P2P_DEVICE = 0x59 + NL80211_CMD_START_SCHED_SCAN = 0x4b + NL80211_CMD_STOP_AP = 0x10 + NL80211_CMD_STOP_NAN = 0x74 + NL80211_CMD_STOP_P2P_DEVICE = 0x5a + NL80211_CMD_STOP_SCHED_SCAN = 0x4c + NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 0x70 + NL80211_CMD_TDLS_CHANNEL_SWITCH = 0x6f + NL80211_CMD_TDLS_MGMT = 0x52 + NL80211_CMD_TDLS_OPER = 0x51 + NL80211_CMD_TESTMODE = 0x2d + NL80211_CMD_TRIGGER_SCAN = 0x21 + NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 0x56 + NL80211_CMD_UNEXPECTED_FRAME = 0x53 + NL80211_CMD_UNPROT_BEACON = 0x8a + NL80211_CMD_UNPROT_DEAUTHENTICATE = 0x46 + NL80211_CMD_UNPROT_DISASSOCIATE = 0x47 + NL80211_CMD_UNSPEC = 0x0 + NL80211_CMD_UPDATE_CONNECT_PARAMS = 0x7a + NL80211_CMD_UPDATE_FT_IES = 0x60 + NL80211_CMD_UPDATE_OWE_INFO = 0x87 + NL80211_CMD_VENDOR = 0x67 + NL80211_CMD_WIPHY_REG_CHANGE = 0x71 + NL80211_COALESCE_CONDITION_MATCH = 0x0 + NL80211_COALESCE_CONDITION_NO_MATCH = 0x1 + NL80211_CONN_FAIL_BLOCKED_CLIENT = 0x1 + NL80211_CONN_FAIL_MAX_CLIENTS = 0x0 + NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 0x2 + NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 0x1 + NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0x0 + NL80211_CQM_TXE_MAX_INTVL = 0x708 + NL80211_CRIT_PROTO_APIPA = 0x3 + NL80211_CRIT_PROTO_DHCP = 0x1 + NL80211_CRIT_PROTO_EAPOL = 0x2 + NL80211_CRIT_PROTO_MAX_DURATION = 0x1388 + NL80211_CRIT_PROTO_UNSPEC = 0x0 + NL80211_DFS_AVAILABLE = 0x2 + NL80211_DFS_ETSI = 0x2 + NL80211_DFS_FCC = 0x1 + NL80211_DFS_JP = 0x3 + NL80211_DFS_UNAVAILABLE = 0x1 + NL80211_DFS_UNSET = 0x0 + NL80211_DFS_USABLE = 0x0 + NL80211_EDMG_BW_CONFIG_MAX = 0xf + NL80211_EDMG_BW_CONFIG_MIN = 0x4 + NL80211_EDMG_CHANNELS_MAX = 0x3c + NL80211_EDMG_CHANNELS_MIN = 0x1 + NL80211_EHT_MAX_CAPABILITY_LEN = 0x33 + NL80211_EHT_MIN_CAPABILITY_LEN = 0xd + NL80211_EXTERNAL_AUTH_ABORT = 0x1 + NL80211_EXTERNAL_AUTH_START = 0x0 + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 0x32 + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 0x10 + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 0xf + NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 0x12 + NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 0x1b + NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 0x21 + NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 0x22 + NL80211_EXT_FEATURE_AQL = 0x28 + NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 0x2e + NL80211_EXT_FEATURE_BEACON_PROTECTION = 0x29 + NL80211_EXT_FEATURE_BEACON_RATE_HE = 0x36 + NL80211_EXT_FEATURE_BEACON_RATE_HT = 0x7 + NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 0x6 + NL80211_EXT_FEATURE_BEACON_RATE_VHT = 0x8 + NL80211_EXT_FEATURE_BSS_COLOR = 0x3a + NL80211_EXT_FEATURE_BSS_PARENT_TSF = 0x4 + NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 0x1f + NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 0x2a + NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 0x1a + NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 0x30 + NL80211_EXT_FEATURE_CQM_RSSI_LIST = 0xd + NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT = 0x1b + NL80211_EXT_FEATURE_DEL_IBSS_STA = 0x2c + NL80211_EXT_FEATURE_DFS_OFFLOAD = 0x19 + NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 0x20 + NL80211_EXT_FEATURE_EXT_KEY_ID = 0x24 + NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 0x3b + NL80211_EXT_FEATURE_FILS_DISCOVERY = 0x34 + NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 0x11 + NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 0xe + NL80211_EXT_FEATURE_FILS_STA = 0x9 + NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 0x18 + NL80211_EXT_FEATURE_LOW_POWER_SCAN = 0x17 + NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 0x16 + NL80211_EXT_FEATURE_MFP_OPTIONAL = 0x15 + NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 0xa + NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 0xb + NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 0x2d + NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 0x2 + NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 0x14 + NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 0x13 + NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 0x31 + NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 0x3d + NL80211_EXT_FEATURE_PROTECTED_TWT = 0x2b + NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 0x39 + NL80211_EXT_FEATURE_RADAR_BACKGROUND = 0x3c + NL80211_EXT_FEATURE_RRM = 0x1 + NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 0x33 + NL80211_EXT_FEATURE_SAE_OFFLOAD = 0x26 + NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 0x2f + NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 0x1e + NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 0x1d + NL80211_EXT_FEATURE_SCAN_START_TIME = 0x3 + NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 0x23 + NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 0xc + NL80211_EXT_FEATURE_SECURE_LTF = 0x37 + NL80211_EXT_FEATURE_SECURE_RTT = 0x38 + NL80211_EXT_FEATURE_SET_SCAN_DWELL = 0x5 + NL80211_EXT_FEATURE_STA_TX_PWR = 0x25 + NL80211_EXT_FEATURE_TXQS = 0x1c + NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 0x35 + NL80211_EXT_FEATURE_VHT_IBSS = 0x0 + NL80211_EXT_FEATURE_VLAN_OFFLOAD = 0x27 + NL80211_FEATURE_ACKTO_ESTIMATION = 0x800000 + NL80211_FEATURE_ACTIVE_MONITOR = 0x20000 + NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 0x4000 + NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 0x40000 + NL80211_FEATURE_AP_SCAN = 0x100 + NL80211_FEATURE_CELL_BASE_REG_HINTS = 0x8 + NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 0x80000 + NL80211_FEATURE_DYNAMIC_SMPS = 0x2000000 + NL80211_FEATURE_FULL_AP_CLIENT_STATE = 0x8000 + NL80211_FEATURE_HT_IBSS = 0x2 + NL80211_FEATURE_INACTIVITY_TIMER = 0x4 + NL80211_FEATURE_LOW_PRIORITY_SCAN = 0x40 + NL80211_FEATURE_MAC_ON_CREATE = 0x8000000 + NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 0x80000000 + NL80211_FEATURE_NEED_OBSS_SCAN = 0x400 + NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 0x10 + NL80211_FEATURE_P2P_GO_CTWIN = 0x800 + NL80211_FEATURE_P2P_GO_OPPPS = 0x1000 + NL80211_FEATURE_QUIET = 0x200000 + NL80211_FEATURE_SAE = 0x20 + NL80211_FEATURE_SCAN_FLUSH = 0x80 + NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 0x20000000 + NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 0x40000000 + NL80211_FEATURE_SK_TX_STATUS = 0x1 + NL80211_FEATURE_STATIC_SMPS = 0x1000000 + NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 0x4000000 + NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 0x10000000 + NL80211_FEATURE_TX_POWER_INSERTION = 0x400000 + NL80211_FEATURE_USERSPACE_MPM = 0x10000 + NL80211_FEATURE_VIF_TXPOWER = 0x200 + NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 0x100000 + NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 0x2 + NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 0x1 + NL80211_FILS_DISCOVERY_ATTR_MAX = 0x3 + NL80211_FILS_DISCOVERY_ATTR_TMPL = 0x3 + NL80211_FILS_DISCOVERY_TMPL_MIN_LEN = 0x2a + NL80211_FREQUENCY_ATTR_16MHZ = 0x19 + NL80211_FREQUENCY_ATTR_1MHZ = 0x15 + NL80211_FREQUENCY_ATTR_2MHZ = 0x16 + NL80211_FREQUENCY_ATTR_4MHZ = 0x17 + NL80211_FREQUENCY_ATTR_8MHZ = 0x18 + NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 0xd + NL80211_FREQUENCY_ATTR_DFS_STATE = 0x7 + NL80211_FREQUENCY_ATTR_DFS_TIME = 0x8 + NL80211_FREQUENCY_ATTR_DISABLED = 0x2 + NL80211_FREQUENCY_ATTR_FREQ = 0x1 + NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf + NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe + NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf + NL80211_FREQUENCY_ATTR_MAX = 0x1b + NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6 + NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11 + NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc + NL80211_FREQUENCY_ATTR_NO_20MHZ = 0x10 + NL80211_FREQUENCY_ATTR_NO_320MHZ = 0x1a + NL80211_FREQUENCY_ATTR_NO_80MHZ = 0xb + NL80211_FREQUENCY_ATTR_NO_EHT = 0x1b + NL80211_FREQUENCY_ATTR_NO_HE = 0x13 + NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 0x9 + NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 0xa + NL80211_FREQUENCY_ATTR_NO_IBSS = 0x3 + NL80211_FREQUENCY_ATTR_NO_IR = 0x3 + NL80211_FREQUENCY_ATTR_OFFSET = 0x14 + NL80211_FREQUENCY_ATTR_PASSIVE_SCAN = 0x3 + NL80211_FREQUENCY_ATTR_RADAR = 0x5 + NL80211_FREQUENCY_ATTR_WMM = 0x12 + NL80211_FTM_RESP_ATTR_CIVICLOC = 0x3 + NL80211_FTM_RESP_ATTR_ENABLED = 0x1 + NL80211_FTM_RESP_ATTR_LCI = 0x2 + NL80211_FTM_RESP_ATTR_MAX = 0x3 + NL80211_FTM_STATS_ASAP_NUM = 0x4 + NL80211_FTM_STATS_FAILED_NUM = 0x3 + NL80211_FTM_STATS_MAX = 0xa + NL80211_FTM_STATS_NON_ASAP_NUM = 0x5 + NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 0x9 + NL80211_FTM_STATS_PAD = 0xa + NL80211_FTM_STATS_PARTIAL_NUM = 0x2 + NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 0x8 + NL80211_FTM_STATS_SUCCESS_NUM = 0x1 + NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 0x6 + NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 0x7 + NL80211_GENL_NAME = "nl80211" + NL80211_HE_BSS_COLOR_ATTR_COLOR = 0x1 + NL80211_HE_BSS_COLOR_ATTR_DISABLED = 0x2 + NL80211_HE_BSS_COLOR_ATTR_MAX = 0x3 + NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 0x3 + NL80211_HE_MAX_CAPABILITY_LEN = 0x36 + NL80211_HE_MIN_CAPABILITY_LEN = 0x10 + NL80211_HE_NSS_MAX = 0x8 + NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 0x4 + NL80211_HE_OBSS_PD_ATTR_MAX = 0x6 + NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 0x2 + NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 0x1 + NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 0x3 + NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 0x5 + NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 0x6 + NL80211_HIDDEN_SSID_NOT_IN_USE = 0x0 + NL80211_HIDDEN_SSID_ZERO_CONTENTS = 0x2 + NL80211_HIDDEN_SSID_ZERO_LEN = 0x1 + NL80211_HT_CAPABILITY_LEN = 0x1a + NL80211_IFACE_COMB_BI_MIN_GCD = 0x7 + NL80211_IFACE_COMB_LIMITS = 0x1 + NL80211_IFACE_COMB_MAXNUM = 0x2 + NL80211_IFACE_COMB_NUM_CHANNELS = 0x4 + NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 0x6 + NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 0x5 + NL80211_IFACE_COMB_STA_AP_BI_MATCH = 0x3 + NL80211_IFACE_COMB_UNSPEC = 0x0 + NL80211_IFACE_LIMIT_MAX = 0x1 + NL80211_IFACE_LIMIT_TYPES = 0x2 + NL80211_IFACE_LIMIT_UNSPEC = 0x0 + NL80211_IFTYPE_ADHOC = 0x1 + NL80211_IFTYPE_AKM_ATTR_IFTYPES = 0x1 + NL80211_IFTYPE_AKM_ATTR_MAX = 0x2 + NL80211_IFTYPE_AKM_ATTR_SUITES = 0x2 + NL80211_IFTYPE_AP = 0x3 + NL80211_IFTYPE_AP_VLAN = 0x4 + NL80211_IFTYPE_MAX = 0xc + NL80211_IFTYPE_MESH_POINT = 0x7 + NL80211_IFTYPE_MONITOR = 0x6 + NL80211_IFTYPE_NAN = 0xc + NL80211_IFTYPE_OCB = 0xb + NL80211_IFTYPE_P2P_CLIENT = 0x8 + NL80211_IFTYPE_P2P_DEVICE = 0xa + NL80211_IFTYPE_P2P_GO = 0x9 + NL80211_IFTYPE_STATION = 0x2 + NL80211_IFTYPE_UNSPECIFIED = 0x0 + NL80211_IFTYPE_WDS = 0x5 + NL80211_KCK_EXT_LEN = 0x18 + NL80211_KCK_LEN = 0x10 + NL80211_KEK_EXT_LEN = 0x20 + NL80211_KEK_LEN = 0x10 + NL80211_KEY_CIPHER = 0x3 + NL80211_KEY_DATA = 0x1 + NL80211_KEY_DEFAULT_BEACON = 0xa + NL80211_KEY_DEFAULT = 0x5 + NL80211_KEY_DEFAULT_MGMT = 0x6 + NL80211_KEY_DEFAULT_TYPE_MULTICAST = 0x2 + NL80211_KEY_DEFAULT_TYPES = 0x8 + NL80211_KEY_DEFAULT_TYPE_UNICAST = 0x1 + NL80211_KEY_IDX = 0x2 + NL80211_KEY_MAX = 0xa + NL80211_KEY_MODE = 0x9 + NL80211_KEY_NO_TX = 0x1 + NL80211_KEY_RX_TX = 0x0 + NL80211_KEY_SEQ = 0x4 + NL80211_KEY_SET_TX = 0x2 + NL80211_KEY_TYPE = 0x7 + NL80211_KEYTYPE_GROUP = 0x0 + NL80211_KEYTYPE_PAIRWISE = 0x1 + NL80211_KEYTYPE_PEERKEY = 0x2 + NL80211_MAX_NR_AKM_SUITES = 0x2 + NL80211_MAX_NR_CIPHER_SUITES = 0x5 + NL80211_MAX_SUPP_HT_RATES = 0x4d + NL80211_MAX_SUPP_RATES = 0x20 + NL80211_MAX_SUPP_REG_RULES = 0x80 + NL80211_MBSSID_CONFIG_ATTR_EMA = 0x5 + NL80211_MBSSID_CONFIG_ATTR_INDEX = 0x3 + NL80211_MBSSID_CONFIG_ATTR_MAX = 0x5 + NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 0x2 + NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 0x1 + NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 0x4 + NL80211_MESHCONF_ATTR_MAX = 0x1f + NL80211_MESHCONF_AUTO_OPEN_PLINKS = 0x7 + NL80211_MESHCONF_AWAKE_WINDOW = 0x1b + NL80211_MESHCONF_CONFIRM_TIMEOUT = 0x2 + NL80211_MESHCONF_CONNECTED_TO_AS = 0x1f + NL80211_MESHCONF_CONNECTED_TO_GATE = 0x1d + NL80211_MESHCONF_ELEMENT_TTL = 0xf + NL80211_MESHCONF_FORWARDING = 0x13 + NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 0x11 + NL80211_MESHCONF_HOLDING_TIMEOUT = 0x3 + NL80211_MESHCONF_HT_OPMODE = 0x16 + NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 0xb + NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 0x19 + NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 0x8 + NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 0xd + NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 0x17 + NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 0x12 + NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 0xc + NL80211_MESHCONF_HWMP_RANN_INTERVAL = 0x10 + NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 0x18 + NL80211_MESHCONF_HWMP_ROOTMODE = 0xe + NL80211_MESHCONF_MAX_PEER_LINKS = 0x4 + NL80211_MESHCONF_MAX_RETRIES = 0x5 + NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 0xa + NL80211_MESHCONF_NOLEARN = 0x1e + NL80211_MESHCONF_PATH_REFRESH_TIME = 0x9 + NL80211_MESHCONF_PLINK_TIMEOUT = 0x1c + NL80211_MESHCONF_POWER_MODE = 0x1a + NL80211_MESHCONF_RETRY_TIMEOUT = 0x1 + NL80211_MESHCONF_RSSI_THRESHOLD = 0x14 + NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 0x15 + NL80211_MESHCONF_TTL = 0x6 + NL80211_MESH_POWER_ACTIVE = 0x1 + NL80211_MESH_POWER_DEEP_SLEEP = 0x3 + NL80211_MESH_POWER_LIGHT_SLEEP = 0x2 + NL80211_MESH_POWER_MAX = 0x3 + NL80211_MESH_POWER_UNKNOWN = 0x0 + NL80211_MESH_SETUP_ATTR_MAX = 0x8 + NL80211_MESH_SETUP_AUTH_PROTOCOL = 0x8 + NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 0x2 + NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 0x1 + NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 0x6 + NL80211_MESH_SETUP_IE = 0x3 + NL80211_MESH_SETUP_USERSPACE_AMPE = 0x5 + NL80211_MESH_SETUP_USERSPACE_AUTH = 0x4 + NL80211_MESH_SETUP_USERSPACE_MPM = 0x7 + NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE = 0x3 + NL80211_MFP_NO = 0x0 + NL80211_MFP_OPTIONAL = 0x2 + NL80211_MFP_REQUIRED = 0x1 + NL80211_MIN_REMAIN_ON_CHANNEL_TIME = 0xa + NL80211_MNTR_FLAG_ACTIVE = 0x6 + NL80211_MNTR_FLAG_CONTROL = 0x3 + NL80211_MNTR_FLAG_COOK_FRAMES = 0x5 + NL80211_MNTR_FLAG_FCSFAIL = 0x1 + NL80211_MNTR_FLAG_MAX = 0x6 + NL80211_MNTR_FLAG_OTHER_BSS = 0x4 + NL80211_MNTR_FLAG_PLCPFAIL = 0x2 + NL80211_MPATH_FLAG_ACTIVE = 0x1 + NL80211_MPATH_FLAG_FIXED = 0x8 + NL80211_MPATH_FLAG_RESOLVED = 0x10 + NL80211_MPATH_FLAG_RESOLVING = 0x2 + NL80211_MPATH_FLAG_SN_VALID = 0x4 + NL80211_MPATH_INFO_DISCOVERY_RETRIES = 0x7 + NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 0x6 + NL80211_MPATH_INFO_EXPTIME = 0x4 + NL80211_MPATH_INFO_FLAGS = 0x5 + NL80211_MPATH_INFO_FRAME_QLEN = 0x1 + NL80211_MPATH_INFO_HOP_COUNT = 0x8 + NL80211_MPATH_INFO_MAX = 0x9 + NL80211_MPATH_INFO_METRIC = 0x3 + NL80211_MPATH_INFO_PATH_CHANGE = 0x9 + NL80211_MPATH_INFO_SN = 0x2 + NL80211_MULTICAST_GROUP_CONFIG = "config" + NL80211_MULTICAST_GROUP_MLME = "mlme" + NL80211_MULTICAST_GROUP_NAN = "nan" + NL80211_MULTICAST_GROUP_REG = "regulatory" + NL80211_MULTICAST_GROUP_SCAN = "scan" + NL80211_MULTICAST_GROUP_TESTMODE = "testmode" + NL80211_MULTICAST_GROUP_VENDOR = "vendor" + NL80211_NAN_FUNC_ATTR_MAX = 0x10 + NL80211_NAN_FUNC_CLOSE_RANGE = 0x9 + NL80211_NAN_FUNC_FOLLOW_UP = 0x2 + NL80211_NAN_FUNC_FOLLOW_UP_DEST = 0x8 + NL80211_NAN_FUNC_FOLLOW_UP_ID = 0x6 + NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 0x7 + NL80211_NAN_FUNC_INSTANCE_ID = 0xf + NL80211_NAN_FUNC_MAX_TYPE = 0x2 + NL80211_NAN_FUNC_PUBLISH_BCAST = 0x4 + NL80211_NAN_FUNC_PUBLISH = 0x0 + NL80211_NAN_FUNC_PUBLISH_TYPE = 0x3 + NL80211_NAN_FUNC_RX_MATCH_FILTER = 0xd + NL80211_NAN_FUNC_SERVICE_ID = 0x2 + NL80211_NAN_FUNC_SERVICE_ID_LEN = 0x6 + NL80211_NAN_FUNC_SERVICE_INFO = 0xb + NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN = 0xff + NL80211_NAN_FUNC_SRF = 0xc + NL80211_NAN_FUNC_SRF_MAX_LEN = 0xff + NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 0x5 + NL80211_NAN_FUNC_SUBSCRIBE = 0x1 + NL80211_NAN_FUNC_TERM_REASON = 0x10 + NL80211_NAN_FUNC_TERM_REASON_ERROR = 0x2 + NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 0x1 + NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0x0 + NL80211_NAN_FUNC_TTL = 0xa + NL80211_NAN_FUNC_TX_MATCH_FILTER = 0xe + NL80211_NAN_FUNC_TYPE = 0x1 + NL80211_NAN_MATCH_ATTR_MAX = 0x2 + NL80211_NAN_MATCH_FUNC_LOCAL = 0x1 + NL80211_NAN_MATCH_FUNC_PEER = 0x2 + NL80211_NAN_SOLICITED_PUBLISH = 0x1 + NL80211_NAN_SRF_ATTR_MAX = 0x4 + NL80211_NAN_SRF_BF = 0x2 + NL80211_NAN_SRF_BF_IDX = 0x3 + NL80211_NAN_SRF_INCLUDE = 0x1 + NL80211_NAN_SRF_MAC_ADDRS = 0x4 + NL80211_NAN_UNSOLICITED_PUBLISH = 0x2 + NL80211_NUM_ACS = 0x4 + NL80211_P2P_PS_SUPPORTED = 0x1 + NL80211_P2P_PS_UNSUPPORTED = 0x0 + NL80211_PKTPAT_MASK = 0x1 + NL80211_PKTPAT_OFFSET = 0x3 + NL80211_PKTPAT_PATTERN = 0x2 + NL80211_PLINK_ACTION_BLOCK = 0x2 + NL80211_PLINK_ACTION_NO_ACTION = 0x0 + NL80211_PLINK_ACTION_OPEN = 0x1 + NL80211_PLINK_BLOCKED = 0x6 + NL80211_PLINK_CNF_RCVD = 0x3 + NL80211_PLINK_ESTAB = 0x4 + NL80211_PLINK_HOLDING = 0x5 + NL80211_PLINK_LISTEN = 0x0 + NL80211_PLINK_OPN_RCVD = 0x2 + NL80211_PLINK_OPN_SNT = 0x1 + NL80211_PMKSA_CANDIDATE_BSSID = 0x2 + NL80211_PMKSA_CANDIDATE_INDEX = 0x1 + NL80211_PMKSA_CANDIDATE_PREAUTH = 0x3 + NL80211_PMSR_ATTR_MAX = 0x5 + NL80211_PMSR_ATTR_MAX_PEERS = 0x1 + NL80211_PMSR_ATTR_PEERS = 0x5 + NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 0x3 + NL80211_PMSR_ATTR_REPORT_AP_TSF = 0x2 + NL80211_PMSR_ATTR_TYPE_CAPA = 0x4 + NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 0x1 + NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 0x6 + NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 0x7 + NL80211_PMSR_FTM_CAPA_ATTR_MAX = 0xa + NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 0x8 + NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 0x2 + NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 0xa + NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 0x5 + NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 0x4 + NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 0x3 + NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 0x9 + NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 0x7 + NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 0x5 + NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 0x1 + NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 0x6 + NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 0x4 + NL80211_PMSR_FTM_FAILURE_REJECTED = 0x2 + NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0x0 + NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 0x3 + NL80211_PMSR_FTM_REQ_ATTR_ASAP = 0x1 + NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 0xd + NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 0x5 + NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 0x4 + NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 0x6 + NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 0xc + NL80211_PMSR_FTM_REQ_ATTR_MAX = 0xd + NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 0xb + NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 0x3 + NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 0x7 + NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 0x2 + NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 0x9 + NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 0x8 + NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 0xa + NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 0x7 + NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 0x2 + NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 0x5 + NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 0x14 + NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 0x10 + NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 0x12 + NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 0x11 + NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 0x1 + NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 0x8 + NL80211_PMSR_FTM_RESP_ATTR_LCI = 0x13 + NL80211_PMSR_FTM_RESP_ATTR_MAX = 0x15 + NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 0x6 + NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 0x3 + NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 0x4 + NL80211_PMSR_FTM_RESP_ATTR_PAD = 0x15 + NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 0x9 + NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 0xa + NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 0xd + NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 0xf + NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 0xe + NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 0xc + NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 0xb + NL80211_PMSR_PEER_ATTR_ADDR = 0x1 + NL80211_PMSR_PEER_ATTR_CHAN = 0x2 + NL80211_PMSR_PEER_ATTR_MAX = 0x4 + NL80211_PMSR_PEER_ATTR_REQ = 0x3 + NL80211_PMSR_PEER_ATTR_RESP = 0x4 + NL80211_PMSR_REQ_ATTR_DATA = 0x1 + NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 0x2 + NL80211_PMSR_REQ_ATTR_MAX = 0x2 + NL80211_PMSR_RESP_ATTR_AP_TSF = 0x4 + NL80211_PMSR_RESP_ATTR_DATA = 0x1 + NL80211_PMSR_RESP_ATTR_FINAL = 0x5 + NL80211_PMSR_RESP_ATTR_HOST_TIME = 0x3 + NL80211_PMSR_RESP_ATTR_MAX = 0x6 + NL80211_PMSR_RESP_ATTR_PAD = 0x6 + NL80211_PMSR_RESP_ATTR_STATUS = 0x2 + NL80211_PMSR_STATUS_FAILURE = 0x3 + NL80211_PMSR_STATUS_REFUSED = 0x1 + NL80211_PMSR_STATUS_SUCCESS = 0x0 + NL80211_PMSR_STATUS_TIMEOUT = 0x2 + NL80211_PMSR_TYPE_FTM = 0x1 + NL80211_PMSR_TYPE_INVALID = 0x0 + NL80211_PMSR_TYPE_MAX = 0x1 + NL80211_PREAMBLE_DMG = 0x3 + NL80211_PREAMBLE_HE = 0x4 + NL80211_PREAMBLE_HT = 0x1 + NL80211_PREAMBLE_LEGACY = 0x0 + NL80211_PREAMBLE_VHT = 0x2 + NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 0x8 + NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 0x4 + NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 0x2 + NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 0x1 + NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 0x1 + NL80211_PS_DISABLED = 0x0 + NL80211_PS_ENABLED = 0x1 + NL80211_RADAR_CAC_ABORTED = 0x2 + NL80211_RADAR_CAC_FINISHED = 0x1 + NL80211_RADAR_CAC_STARTED = 0x5 + NL80211_RADAR_DETECTED = 0x0 + NL80211_RADAR_NOP_FINISHED = 0x3 + NL80211_RADAR_PRE_CAC_EXPIRED = 0x4 + NL80211_RATE_INFO_10_MHZ_WIDTH = 0xb + NL80211_RATE_INFO_160_MHZ_WIDTH = 0xa + NL80211_RATE_INFO_320_MHZ_WIDTH = 0x12 + NL80211_RATE_INFO_40_MHZ_WIDTH = 0x3 + NL80211_RATE_INFO_5_MHZ_WIDTH = 0xc + NL80211_RATE_INFO_80_MHZ_WIDTH = 0x8 + NL80211_RATE_INFO_80P80_MHZ_WIDTH = 0x9 + NL80211_RATE_INFO_BITRATE32 = 0x5 + NL80211_RATE_INFO_BITRATE = 0x1 + NL80211_RATE_INFO_EHT_GI_0_8 = 0x0 + NL80211_RATE_INFO_EHT_GI_1_6 = 0x1 + NL80211_RATE_INFO_EHT_GI_3_2 = 0x2 + NL80211_RATE_INFO_EHT_GI = 0x15 + NL80211_RATE_INFO_EHT_MCS = 0x13 + NL80211_RATE_INFO_EHT_NSS = 0x14 + NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 0x3 + NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 0x4 + NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 0x5 + NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0x0 + NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 0xb + NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 0xc + NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 0xd + NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 0xe + NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 0x6 + NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 0x7 + NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 0xf + NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 0x1 + NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 0x2 + NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 0x8 + NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 0x9 + NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 0xa + NL80211_RATE_INFO_EHT_RU_ALLOC = 0x16 + NL80211_RATE_INFO_HE_1XLTF = 0x0 + NL80211_RATE_INFO_HE_2XLTF = 0x1 + NL80211_RATE_INFO_HE_4XLTF = 0x2 + NL80211_RATE_INFO_HE_DCM = 0x10 + NL80211_RATE_INFO_HE_GI_0_8 = 0x0 + NL80211_RATE_INFO_HE_GI_1_6 = 0x1 + NL80211_RATE_INFO_HE_GI_3_2 = 0x2 + NL80211_RATE_INFO_HE_GI = 0xf + NL80211_RATE_INFO_HE_MCS = 0xd + NL80211_RATE_INFO_HE_NSS = 0xe + NL80211_RATE_INFO_HE_RU_ALLOC_106 = 0x2 + NL80211_RATE_INFO_HE_RU_ALLOC_242 = 0x3 + NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0x0 + NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 0x6 + NL80211_RATE_INFO_HE_RU_ALLOC_484 = 0x4 + NL80211_RATE_INFO_HE_RU_ALLOC_52 = 0x1 + NL80211_RATE_INFO_HE_RU_ALLOC_996 = 0x5 + NL80211_RATE_INFO_HE_RU_ALLOC = 0x11 + NL80211_RATE_INFO_MAX = 0x16 + NL80211_RATE_INFO_MCS = 0x2 + NL80211_RATE_INFO_SHORT_GI = 0x4 + NL80211_RATE_INFO_VHT_MCS = 0x6 + NL80211_RATE_INFO_VHT_NSS = 0x7 + NL80211_REGDOM_SET_BY_CORE = 0x0 + NL80211_REGDOM_SET_BY_COUNTRY_IE = 0x3 + NL80211_REGDOM_SET_BY_DRIVER = 0x2 + NL80211_REGDOM_SET_BY_USER = 0x1 + NL80211_REGDOM_TYPE_COUNTRY = 0x0 + NL80211_REGDOM_TYPE_CUSTOM_WORLD = 0x2 + NL80211_REGDOM_TYPE_INTERSECTION = 0x3 + NL80211_REGDOM_TYPE_WORLD = 0x1 + NL80211_REG_RULE_ATTR_MAX = 0x7 + NL80211_REKEY_DATA_AKM = 0x4 + NL80211_REKEY_DATA_KCK = 0x2 + NL80211_REKEY_DATA_KEK = 0x1 + NL80211_REKEY_DATA_REPLAY_CTR = 0x3 + NL80211_REPLAY_CTR_LEN = 0x8 + NL80211_RRF_AUTO_BW = 0x800 + NL80211_RRF_DFS = 0x10 + NL80211_RRF_GO_CONCURRENT = 0x1000 + NL80211_RRF_IR_CONCURRENT = 0x1000 + NL80211_RRF_NO_160MHZ = 0x10000 + NL80211_RRF_NO_320MHZ = 0x40000 + NL80211_RRF_NO_80MHZ = 0x8000 + NL80211_RRF_NO_CCK = 0x2 + NL80211_RRF_NO_HE = 0x20000 + NL80211_RRF_NO_HT40 = 0x6000 + NL80211_RRF_NO_HT40MINUS = 0x2000 + NL80211_RRF_NO_HT40PLUS = 0x4000 + NL80211_RRF_NO_IBSS = 0x80 + NL80211_RRF_NO_INDOOR = 0x4 + NL80211_RRF_NO_IR_ALL = 0x180 + NL80211_RRF_NO_IR = 0x80 + NL80211_RRF_NO_OFDM = 0x1 + NL80211_RRF_NO_OUTDOOR = 0x8 + NL80211_RRF_PASSIVE_SCAN = 0x80 + NL80211_RRF_PTMP_ONLY = 0x40 + NL80211_RRF_PTP_ONLY = 0x20 + NL80211_RXMGMT_FLAG_ANSWERED = 0x1 + NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 0x2 + NL80211_SAE_PWE_BOTH = 0x3 + NL80211_SAE_PWE_HASH_TO_ELEMENT = 0x2 + NL80211_SAE_PWE_HUNT_AND_PECK = 0x1 + NL80211_SAE_PWE_UNSPECIFIED = 0x0 + NL80211_SAR_ATTR_MAX = 0x2 + NL80211_SAR_ATTR_SPECS = 0x2 + NL80211_SAR_ATTR_SPECS_END_FREQ = 0x4 + NL80211_SAR_ATTR_SPECS_MAX = 0x4 + NL80211_SAR_ATTR_SPECS_POWER = 0x1 + NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 0x2 + NL80211_SAR_ATTR_SPECS_START_FREQ = 0x3 + NL80211_SAR_ATTR_TYPE = 0x1 + NL80211_SAR_TYPE_POWER = 0x0 + NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 0x20 + NL80211_SCAN_FLAG_AP = 0x4 + NL80211_SCAN_FLAG_COLOCATED_6GHZ = 0x4000 + NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 0x10 + NL80211_SCAN_FLAG_FLUSH = 0x2 + NL80211_SCAN_FLAG_FREQ_KHZ = 0x2000 + NL80211_SCAN_FLAG_HIGH_ACCURACY = 0x400 + NL80211_SCAN_FLAG_LOW_POWER = 0x200 + NL80211_SCAN_FLAG_LOW_PRIORITY = 0x1 + NL80211_SCAN_FLAG_LOW_SPAN = 0x100 + NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 0x1000 + NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 0x80 + NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 0x40 + NL80211_SCAN_FLAG_RANDOM_ADDR = 0x8 + NL80211_SCAN_FLAG_RANDOM_SN = 0x800 + NL80211_SCAN_RSSI_THOLD_OFF = -0x12c + NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 0x5 + NL80211_SCHED_SCAN_MATCH_ATTR_MAX = 0x6 + NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 0x3 + NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 0x4 + NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 0x2 + NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 0x1 + NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 0x6 + NL80211_SCHED_SCAN_PLAN_INTERVAL = 0x1 + NL80211_SCHED_SCAN_PLAN_ITERATIONS = 0x2 + NL80211_SCHED_SCAN_PLAN_MAX = 0x2 + NL80211_SMPS_DYNAMIC = 0x2 + NL80211_SMPS_MAX = 0x2 + NL80211_SMPS_OFF = 0x0 + NL80211_SMPS_STATIC = 0x1 + NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 0x5 + NL80211_STA_BSS_PARAM_CTS_PROT = 0x1 + NL80211_STA_BSS_PARAM_DTIM_PERIOD = 0x4 + NL80211_STA_BSS_PARAM_MAX = 0x5 + NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 0x2 + NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 0x3 + NL80211_STA_FLAG_ASSOCIATED = 0x7 + NL80211_STA_FLAG_AUTHENTICATED = 0x5 + NL80211_STA_FLAG_AUTHORIZED = 0x1 + NL80211_STA_FLAG_MAX = 0x7 + NL80211_STA_FLAG_MAX_OLD_API = 0x6 + NL80211_STA_FLAG_MFP = 0x4 + NL80211_STA_FLAG_SHORT_PREAMBLE = 0x2 + NL80211_STA_FLAG_TDLS_PEER = 0x6 + NL80211_STA_FLAG_WME = 0x3 + NL80211_STA_INFO_ACK_SIGNAL_AVG = 0x23 + NL80211_STA_INFO_ACK_SIGNAL = 0x22 + NL80211_STA_INFO_AIRTIME_LINK_METRIC = 0x29 + NL80211_STA_INFO_AIRTIME_WEIGHT = 0x28 + NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 0x2a + NL80211_STA_INFO_BEACON_LOSS = 0x12 + NL80211_STA_INFO_BEACON_RX = 0x1d + NL80211_STA_INFO_BEACON_SIGNAL_AVG = 0x1e + NL80211_STA_INFO_BSS_PARAM = 0xf + NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 0x1a + NL80211_STA_INFO_CHAIN_SIGNAL = 0x19 + NL80211_STA_INFO_CONNECTED_TIME = 0x10 + NL80211_STA_INFO_CONNECTED_TO_AS = 0x2b + NL80211_STA_INFO_CONNECTED_TO_GATE = 0x26 + NL80211_STA_INFO_DATA_ACK_SIGNAL_AVG = 0x23 + NL80211_STA_INFO_EXPECTED_THROUGHPUT = 0x1b + NL80211_STA_INFO_FCS_ERROR_COUNT = 0x25 + NL80211_STA_INFO_INACTIVE_TIME = 0x1 + NL80211_STA_INFO_LLID = 0x4 + NL80211_STA_INFO_LOCAL_PM = 0x14 + NL80211_STA_INFO_MAX = 0x2b + NL80211_STA_INFO_NONPEER_PM = 0x16 + NL80211_STA_INFO_PAD = 0x21 + NL80211_STA_INFO_PEER_PM = 0x15 + NL80211_STA_INFO_PLID = 0x5 + NL80211_STA_INFO_PLINK_STATE = 0x6 + NL80211_STA_INFO_RX_BITRATE = 0xe + NL80211_STA_INFO_RX_BYTES64 = 0x17 + NL80211_STA_INFO_RX_BYTES = 0x2 + NL80211_STA_INFO_RX_DROP_MISC = 0x1c + NL80211_STA_INFO_RX_DURATION = 0x20 + NL80211_STA_INFO_RX_MPDUS = 0x24 + NL80211_STA_INFO_RX_PACKETS = 0x9 + NL80211_STA_INFO_SIGNAL_AVG = 0xd + NL80211_STA_INFO_SIGNAL = 0x7 + NL80211_STA_INFO_STA_FLAGS = 0x11 + NL80211_STA_INFO_TID_STATS = 0x1f + NL80211_STA_INFO_T_OFFSET = 0x13 + NL80211_STA_INFO_TX_BITRATE = 0x8 + NL80211_STA_INFO_TX_BYTES64 = 0x18 + NL80211_STA_INFO_TX_BYTES = 0x3 + NL80211_STA_INFO_TX_DURATION = 0x27 + NL80211_STA_INFO_TX_FAILED = 0xc + NL80211_STA_INFO_TX_PACKETS = 0xa + NL80211_STA_INFO_TX_RETRIES = 0xb + NL80211_STA_WME_MAX = 0x2 + NL80211_STA_WME_MAX_SP = 0x2 + NL80211_STA_WME_UAPSD_QUEUES = 0x1 + NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY = 0x5 + NL80211_SURVEY_INFO_CHANNEL_TIME = 0x4 + NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY = 0x6 + NL80211_SURVEY_INFO_CHANNEL_TIME_RX = 0x7 + NL80211_SURVEY_INFO_CHANNEL_TIME_TX = 0x8 + NL80211_SURVEY_INFO_FREQUENCY = 0x1 + NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 0xc + NL80211_SURVEY_INFO_IN_USE = 0x3 + NL80211_SURVEY_INFO_MAX = 0xc + NL80211_SURVEY_INFO_NOISE = 0x2 + NL80211_SURVEY_INFO_PAD = 0xa + NL80211_SURVEY_INFO_TIME_BSS_RX = 0xb + NL80211_SURVEY_INFO_TIME_BUSY = 0x5 + NL80211_SURVEY_INFO_TIME = 0x4 + NL80211_SURVEY_INFO_TIME_EXT_BUSY = 0x6 + NL80211_SURVEY_INFO_TIME_RX = 0x7 + NL80211_SURVEY_INFO_TIME_SCAN = 0x9 + NL80211_SURVEY_INFO_TIME_TX = 0x8 + NL80211_TDLS_DISABLE_LINK = 0x4 + NL80211_TDLS_DISCOVERY_REQ = 0x0 + NL80211_TDLS_ENABLE_LINK = 0x3 + NL80211_TDLS_PEER_HE = 0x8 + NL80211_TDLS_PEER_HT = 0x1 + NL80211_TDLS_PEER_VHT = 0x2 + NL80211_TDLS_PEER_WMM = 0x4 + NL80211_TDLS_SETUP = 0x1 + NL80211_TDLS_TEARDOWN = 0x2 + NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 0x9 + NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 0xb + NL80211_TID_CONFIG_ATTR_MAX = 0xd + NL80211_TID_CONFIG_ATTR_NOACK = 0x6 + NL80211_TID_CONFIG_ATTR_OVERRIDE = 0x4 + NL80211_TID_CONFIG_ATTR_PAD = 0x1 + NL80211_TID_CONFIG_ATTR_PEER_SUPP = 0x3 + NL80211_TID_CONFIG_ATTR_RETRY_LONG = 0x8 + NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 0x7 + NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 0xa + NL80211_TID_CONFIG_ATTR_TIDS = 0x5 + NL80211_TID_CONFIG_ATTR_TX_RATE = 0xd + NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 0xc + NL80211_TID_CONFIG_ATTR_VIF_SUPP = 0x2 + NL80211_TID_CONFIG_DISABLE = 0x1 + NL80211_TID_CONFIG_ENABLE = 0x0 + NL80211_TID_STATS_MAX = 0x6 + NL80211_TID_STATS_PAD = 0x5 + NL80211_TID_STATS_RX_MSDU = 0x1 + NL80211_TID_STATS_TX_MSDU = 0x2 + NL80211_TID_STATS_TX_MSDU_FAILED = 0x4 + NL80211_TID_STATS_TX_MSDU_RETRIES = 0x3 + NL80211_TID_STATS_TXQ_STATS = 0x6 + NL80211_TIMEOUT_ASSOC = 0x3 + NL80211_TIMEOUT_AUTH = 0x2 + NL80211_TIMEOUT_SCAN = 0x1 + NL80211_TIMEOUT_UNSPECIFIED = 0x0 + NL80211_TKIP_DATA_OFFSET_ENCR_KEY = 0x0 + NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY = 0x18 + NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY = 0x10 + NL80211_TX_POWER_AUTOMATIC = 0x0 + NL80211_TX_POWER_FIXED = 0x2 + NL80211_TX_POWER_LIMITED = 0x1 + NL80211_TXQ_ATTR_AC = 0x1 + NL80211_TXQ_ATTR_AIFS = 0x5 + NL80211_TXQ_ATTR_CWMAX = 0x4 + NL80211_TXQ_ATTR_CWMIN = 0x3 + NL80211_TXQ_ATTR_MAX = 0x5 + NL80211_TXQ_ATTR_QUEUE = 0x1 + NL80211_TXQ_ATTR_TXOP = 0x2 + NL80211_TXQ_Q_BE = 0x2 + NL80211_TXQ_Q_BK = 0x3 + NL80211_TXQ_Q_VI = 0x1 + NL80211_TXQ_Q_VO = 0x0 + NL80211_TXQ_STATS_BACKLOG_BYTES = 0x1 + NL80211_TXQ_STATS_BACKLOG_PACKETS = 0x2 + NL80211_TXQ_STATS_COLLISIONS = 0x8 + NL80211_TXQ_STATS_DROPS = 0x4 + NL80211_TXQ_STATS_ECN_MARKS = 0x5 + NL80211_TXQ_STATS_FLOWS = 0x3 + NL80211_TXQ_STATS_MAX = 0xb + NL80211_TXQ_STATS_MAX_FLOWS = 0xb + NL80211_TXQ_STATS_OVERLIMIT = 0x6 + NL80211_TXQ_STATS_OVERMEMORY = 0x7 + NL80211_TXQ_STATS_TX_BYTES = 0x9 + NL80211_TXQ_STATS_TX_PACKETS = 0xa + NL80211_TX_RATE_AUTOMATIC = 0x0 + NL80211_TXRATE_DEFAULT_GI = 0x0 + NL80211_TX_RATE_FIXED = 0x2 + NL80211_TXRATE_FORCE_LGI = 0x2 + NL80211_TXRATE_FORCE_SGI = 0x1 + NL80211_TXRATE_GI = 0x4 + NL80211_TXRATE_HE = 0x5 + NL80211_TXRATE_HE_GI = 0x6 + NL80211_TXRATE_HE_LTF = 0x7 + NL80211_TXRATE_HT = 0x2 + NL80211_TXRATE_LEGACY = 0x1 + NL80211_TX_RATE_LIMITED = 0x1 + NL80211_TXRATE_MAX = 0x7 + NL80211_TXRATE_MCS = 0x2 + NL80211_TXRATE_VHT = 0x3 + NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 0x1 + NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX = 0x2 + NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 0x2 + NL80211_USER_REG_HINT_CELL_BASE = 0x1 + NL80211_USER_REG_HINT_INDOOR = 0x2 + NL80211_USER_REG_HINT_USER = 0x0 + NL80211_VENDOR_ID_IS_LINUX = 0x80000000 + NL80211_VHT_CAPABILITY_LEN = 0xc + NL80211_VHT_NSS_MAX = 0x8 + NL80211_WIPHY_NAME_MAXLEN = 0x40 + NL80211_WMMR_AIFSN = 0x3 + NL80211_WMMR_CW_MAX = 0x2 + NL80211_WMMR_CW_MIN = 0x1 + NL80211_WMMR_MAX = 0x4 + NL80211_WMMR_TXOP = 0x4 + NL80211_WOWLAN_PKTPAT_MASK = 0x1 + NL80211_WOWLAN_PKTPAT_OFFSET = 0x3 + NL80211_WOWLAN_PKTPAT_PATTERN = 0x2 + NL80211_WOWLAN_TCP_DATA_INTERVAL = 0x9 + NL80211_WOWLAN_TCP_DATA_PAYLOAD = 0x6 + NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 0x7 + NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 0x8 + NL80211_WOWLAN_TCP_DST_IPV4 = 0x2 + NL80211_WOWLAN_TCP_DST_MAC = 0x3 + NL80211_WOWLAN_TCP_DST_PORT = 0x5 + NL80211_WOWLAN_TCP_SRC_IPV4 = 0x1 + NL80211_WOWLAN_TCP_SRC_PORT = 0x4 + NL80211_WOWLAN_TCP_WAKE_MASK = 0xb + NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 0xa + NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 0x8 + NL80211_WOWLAN_TRIG_ANY = 0x1 + NL80211_WOWLAN_TRIG_DISCONNECT = 0x2 + NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 0x7 + NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 0x6 + NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 0x5 + NL80211_WOWLAN_TRIG_MAGIC_PKT = 0x3 + NL80211_WOWLAN_TRIG_NET_DETECT = 0x12 + NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 0x13 + NL80211_WOWLAN_TRIG_PKT_PATTERN = 0x4 + NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 0x9 + NL80211_WOWLAN_TRIG_TCP_CONNECTION = 0xe + NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 0xa + NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 0xb + NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 0xc + NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 0xd + NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 0x10 + NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 0xf + NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 0x11 + NL80211_WPA_VERSION_1 = 0x1 + NL80211_WPA_VERSION_2 = 0x2 + NL80211_WPA_VERSION_3 = 0x4 +) + +const ( + FRA_UNSPEC = 0x0 + FRA_DST = 0x1 + FRA_SRC = 0x2 + FRA_IIFNAME = 0x3 + FRA_GOTO = 0x4 + FRA_UNUSED2 = 0x5 + FRA_PRIORITY = 0x6 + FRA_UNUSED3 = 0x7 + FRA_UNUSED4 = 0x8 + FRA_UNUSED5 = 0x9 + FRA_FWMARK = 0xa + FRA_FLOW = 0xb + FRA_TUN_ID = 0xc + FRA_SUPPRESS_IFGROUP = 0xd + FRA_SUPPRESS_PREFIXLEN = 0xe + FRA_TABLE = 0xf + FRA_FWMASK = 0x10 + FRA_OIFNAME = 0x11 + FRA_PAD = 0x12 + FRA_L3MDEV = 0x13 + FRA_UID_RANGE = 0x14 + FRA_PROTOCOL = 0x15 + FRA_IP_PROTO = 0x16 + FRA_SPORT_RANGE = 0x17 + FRA_DPORT_RANGE = 0x18 + FR_ACT_UNSPEC = 0x0 + FR_ACT_TO_TBL = 0x1 + FR_ACT_GOTO = 0x2 + FR_ACT_NOP = 0x3 + FR_ACT_RES3 = 0x4 + FR_ACT_RES4 = 0x5 + FR_ACT_BLACKHOLE = 0x6 + FR_ACT_UNREACHABLE = 0x7 + FR_ACT_PROHIBIT = 0x8 +) + +const ( + AUDIT_NLGRP_NONE = 0x0 + AUDIT_NLGRP_READLOG = 0x1 +) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go new file mode 100644 index 0000000..89c516a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -0,0 +1,696 @@ +// cgo -godefs -objdir=/tmp/386/cgo -- -Wall -Werror -static -I/tmp/386/include -m32 linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && linux +// +build 386,linux + +package unix + +const ( + SizeofPtr = 0x4 + SizeofLong = 0x4 +) + +type ( + _C_long int32 +) + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Timex struct { + Modes uint32 + Offset int32 + Freq int32 + Maxerror int32 + Esterror int32 + Status int32 + Constant int32 + Precision int32 + Tolerance int32 + Time Timeval + Tick int32 + Ppsfreq int32 + Jitter int32 + Shift int32 + Stabil int32 + Jitcnt int32 + Calcnt int32 + Errcnt int32 + Stbcnt int32 + Tai int32 + _ [44]byte +} + +type Time_t int32 + +type Tms struct { + Utime int32 + Stime int32 + Cutime int32 + Cstime int32 +} + +type Utimbuf struct { + Actime int32 + Modtime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Stat_t struct { + Dev uint64 + _ uint16 + _ uint32 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint16 + Size int64 + Blksize int32 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Ino uint64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [1]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 +} + +type DmNameList struct { + Dev uint64 + Next uint32 +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint32 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [16]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x58 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc +) + +const ( + SizeofSockFprog = 0x8 +) + +type PtraceRegs struct { + Ebx int32 + Ecx int32 + Edx int32 + Esi int32 + Edi int32 + Ebp int32 + Eax int32 + Xds int32 + Xes int32 + Xfs int32 + Xgs int32 + Orig_eax int32 + Eip int32 + Xcs int32 + Eflags int32 + Esp int32 + Xss int32 +} + +type FdSet struct { + Bits [32]int32 +} + +type Sysinfo_t struct { + Uptime int32 + Loads [3]uint32 + Totalram uint32 + Freeram uint32 + Sharedram uint32 + Bufferram uint32 + Totalswap uint32 + Freeswap uint32 + Procs uint16 + Pad uint16 + Totalhigh uint32 + Freehigh uint32 + Unit uint32 + _ [8]int8 +} + +type Ustat_t struct { + Tfree int32 + Tinode uint32 + Fname [6]int8 + Fpack [6]int8 +} + +type EpollEvent struct { + Events uint32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [32]uint32 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ [116]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + _ [4]byte + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + _ [4]byte + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + _ [4]byte + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint32 + +const ( + _NCPUBITS = 0x20 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [122]int8 + _ uint32 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint32 +} + +type Statfs_t struct { + Type int32 + Bsize int32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int32 + Frsize int32 + Flags int32 + Spare [4]int32 +} + +type TpacketHdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 +} + +const ( + SizeofTpacketHdr = 0x18 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int32 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint16 + Inode uint32 + Rdevice uint16 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]int8 +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 +} + +const ( + PPS_GETPARAMS = 0x800470a1 + PPS_SETPARAMS = 0x400470a2 + PPS_GETCAP = 0x800470a3 + PPS_FETCH = 0xc00470a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint16 + _ [2]uint8 + Seq uint16 + _ uint16 + _ uint32 + _ uint32 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint32 + Atime uint32 + Atime_high uint32 + Dtime uint32 + Dtime_high uint32 + Ctime uint32 + Ctime_high uint32 + Cpid int32 + Lpid int32 + Nattch uint32 + _ uint32 + _ uint32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go new file mode 100644 index 0000000..62b4fb2 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -0,0 +1,711 @@ +// cgo -godefs -objdir=/tmp/amd64/cgo -- -Wall -Werror -static -I/tmp/amd64/include -m64 linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && linux +// +build amd64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint32 + Uid uint32 + Gid uint32 + _ int32 + Rdev uint64 + Size int64 + Blksize int64 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ [3]int64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + R15 uint64 + R14 uint64 + R13 uint64 + R12 uint64 + Rbp uint64 + Rbx uint64 + R11 uint64 + R10 uint64 + R9 uint64 + R8 uint64 + Rax uint64 + Rcx uint64 + Rdx uint64 + Rsi uint64 + Rdi uint64 + Orig_rax uint64 + Rip uint64 + Cs uint64 + Eflags uint64 + Rsp uint64 + Ss uint64 + Fs_base uint64 + Gs_base uint64 + Ds uint64 + Es uint64 + Fs uint64 + Gs uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint64 + Inode uint64 + Rdevice uint64 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x800870a1 + PPS_SETPARAMS = 0x400870a2 + PPS_GETCAP = 0x800870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go new file mode 100644 index 0000000..e86b358 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -0,0 +1,691 @@ +// cgo -godefs -objdir=/tmp/arm/cgo -- -Wall -Werror -static -I/tmp/arm/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && linux +// +build arm,linux + +package unix + +const ( + SizeofPtr = 0x4 + SizeofLong = 0x4 +) + +type ( + _C_long int32 +) + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Timex struct { + Modes uint32 + Offset int32 + Freq int32 + Maxerror int32 + Esterror int32 + Status int32 + Constant int32 + Precision int32 + Tolerance int32 + Time Timeval + Tick int32 + Ppsfreq int32 + Jitter int32 + Shift int32 + Stabil int32 + Jitcnt int32 + Calcnt int32 + Errcnt int32 + Stbcnt int32 + Tai int32 + _ [44]byte +} + +type Time_t int32 + +type Tms struct { + Utime int32 + Stime int32 + Cutime int32 + Cstime int32 +} + +type Utimbuf struct { + Actime int32 + Modtime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Stat_t struct { + Dev uint64 + _ uint16 + _ uint32 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint16 + _ [4]byte + Size int64 + Blksize int32 + _ [4]byte + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Ino uint64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]uint8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + _ [4]byte + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint32 +} + +type RawSockaddr struct { + Family uint16 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]uint8 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [16]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x58 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc +) + +const ( + SizeofSockFprog = 0x8 +) + +type PtraceRegs struct { + Uregs [18]uint32 +} + +type FdSet struct { + Bits [32]int32 +} + +type Sysinfo_t struct { + Uptime int32 + Loads [3]uint32 + Totalram uint32 + Freeram uint32 + Sharedram uint32 + Bufferram uint32 + Totalswap uint32 + Freeswap uint32 + Procs uint16 + Pad uint16 + Totalhigh uint32 + Freehigh uint32 + Unit uint32 + _ [8]uint8 +} + +type Ustat_t struct { + Tfree int32 + Tinode uint32 + Fname [6]uint8 + Fpack [6]uint8 +} + +type EpollEvent struct { + Events uint32 + PadFd int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [32]uint32 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ [116]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + _ [4]byte + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]uint8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + _ [4]byte + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + _ [4]byte + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint32 + +const ( + _NCPUBITS = 0x20 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [122]uint8 + _ uint32 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint32 +} + +type Statfs_t struct { + Type int32 + Bsize int32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int32 + Frsize int32 + Flags int32 + Spare [4]int32 + _ [4]byte +} + +type TpacketHdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 +} + +const ( + SizeofTpacketHdr = 0x18 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int32 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]uint8 + Driver_name [64]uint8 + Module_name [64]uint8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]uint8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]uint8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]uint8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]uint8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]uint8 +} + +type CryptoReportLarval struct { + Type [64]uint8 +} + +type CryptoReportHash struct { + Type [64]uint8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]uint8 +} + +type CryptoReportRNG struct { + Type [64]uint8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]uint8 +} + +type CryptoReportKPP struct { + Type [64]uint8 +} + +type CryptoReportAcomp struct { + Type [64]uint8 +} + +type LoopInfo struct { + Number int32 + Device uint16 + Inode uint32 + Rdevice uint16 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]uint8 +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x800470a1 + PPS_SETPARAMS = 0x400470a2 + PPS_GETCAP = 0x800470a3 + PPS_FETCH = 0xc00470a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint16 + _ [2]uint8 + Seq uint16 + _ uint16 + _ uint32 + _ uint32 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint32 + Atime uint32 + Atime_high uint32 + Dtime uint32 + Dtime_high uint32 + Ctime uint32 + Ctime_high uint32 + Cpid int32 + Lpid int32 + Nattch uint32 + _ uint32 + _ uint32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go new file mode 100644 index 0000000..6c6be4c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -0,0 +1,690 @@ +// cgo -godefs -objdir=/tmp/arm64/cgo -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && linux +// +build arm64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint64 + Size int64 + Blksize int32 + _ int32 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ [2]int32 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Regs [31]uint64 + Sp uint64 + Pc uint64 + Pstate uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + PadFd int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x800870a1 + PPS_SETPARAMS = 0x400870a2 + PPS_GETCAP = 0x800870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go new file mode 100644 index 0000000..4982ea3 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go @@ -0,0 +1,691 @@ +// cgo -godefs -objdir=/tmp/loong64/cgo -- -Wall -Werror -static -I/tmp/loong64/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build loong64 && linux +// +build loong64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint64 + Size int64 + Blksize int32 + _ int32 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ [2]int32 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Regs [32]uint64 + Orig_a0 uint64 + Era uint64 + Badv uint64 + Reserved [10]uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x800870a1 + PPS_SETPARAMS = 0x400870a2 + PPS_GETCAP = 0x800870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go new file mode 100644 index 0000000..173141a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -0,0 +1,696 @@ +// cgo -godefs -objdir=/tmp/mips/cgo -- -Wall -Werror -static -I/tmp/mips/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips && linux +// +build mips,linux + +package unix + +const ( + SizeofPtr = 0x4 + SizeofLong = 0x4 +) + +type ( + _C_long int32 +) + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Timex struct { + Modes uint32 + Offset int32 + Freq int32 + Maxerror int32 + Esterror int32 + Status int32 + Constant int32 + Precision int32 + Tolerance int32 + Time Timeval + Tick int32 + Ppsfreq int32 + Jitter int32 + Shift int32 + Stabil int32 + Jitcnt int32 + Calcnt int32 + Errcnt int32 + Stbcnt int32 + Tai int32 + _ [44]byte +} + +type Time_t int32 + +type Tms struct { + Utime int32 + Stime int32 + Cutime int32 + Cstime int32 +} + +type Utimbuf struct { + Actime int32 + Modtime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Stat_t struct { + Dev uint32 + Pad1 [3]int32 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint32 + Pad2 [3]int32 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int32 + Pad4 int32 + Blocks int64 + Pad5 [14]int32 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + _ [4]byte + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint32 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [16]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x58 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc +) + +const ( + SizeofSockFprog = 0x8 +) + +type PtraceRegs struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +type FdSet struct { + Bits [32]int32 +} + +type Sysinfo_t struct { + Uptime int32 + Loads [3]uint32 + Totalram uint32 + Freeram uint32 + Sharedram uint32 + Bufferram uint32 + Totalswap uint32 + Freeswap uint32 + Procs uint16 + Pad uint16 + Totalhigh uint32 + Freehigh uint32 + Unit uint32 + _ [8]int8 +} + +type Ustat_t struct { + Tfree int32 + Tinode uint32 + Fname [6]int8 + Fpack [6]int8 +} + +type EpollEvent struct { + Events uint32 + PadFd int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [32]uint32 +} + +const _C__NSIG = 0x80 + +const ( + SIG_BLOCK = 0x1 + SIG_UNBLOCK = 0x2 + SIG_SETMASK = 0x3 +) + +type Siginfo struct { + Signo int32 + Code int32 + Errno int32 + _ [116]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [23]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + _ [4]byte + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + _ [4]byte + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + _ [4]byte + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint32 + +const ( + _NCPUBITS = 0x20 +) + +const ( + CBitFieldMaskBit0 = 0x8000000000000000 + CBitFieldMaskBit1 = 0x4000000000000000 + CBitFieldMaskBit2 = 0x2000000000000000 + CBitFieldMaskBit3 = 0x1000000000000000 + CBitFieldMaskBit4 = 0x800000000000000 + CBitFieldMaskBit5 = 0x400000000000000 + CBitFieldMaskBit6 = 0x200000000000000 + CBitFieldMaskBit7 = 0x100000000000000 + CBitFieldMaskBit8 = 0x80000000000000 + CBitFieldMaskBit9 = 0x40000000000000 + CBitFieldMaskBit10 = 0x20000000000000 + CBitFieldMaskBit11 = 0x10000000000000 + CBitFieldMaskBit12 = 0x8000000000000 + CBitFieldMaskBit13 = 0x4000000000000 + CBitFieldMaskBit14 = 0x2000000000000 + CBitFieldMaskBit15 = 0x1000000000000 + CBitFieldMaskBit16 = 0x800000000000 + CBitFieldMaskBit17 = 0x400000000000 + CBitFieldMaskBit18 = 0x200000000000 + CBitFieldMaskBit19 = 0x100000000000 + CBitFieldMaskBit20 = 0x80000000000 + CBitFieldMaskBit21 = 0x40000000000 + CBitFieldMaskBit22 = 0x20000000000 + CBitFieldMaskBit23 = 0x10000000000 + CBitFieldMaskBit24 = 0x8000000000 + CBitFieldMaskBit25 = 0x4000000000 + CBitFieldMaskBit26 = 0x2000000000 + CBitFieldMaskBit27 = 0x1000000000 + CBitFieldMaskBit28 = 0x800000000 + CBitFieldMaskBit29 = 0x400000000 + CBitFieldMaskBit30 = 0x200000000 + CBitFieldMaskBit31 = 0x100000000 + CBitFieldMaskBit32 = 0x80000000 + CBitFieldMaskBit33 = 0x40000000 + CBitFieldMaskBit34 = 0x20000000 + CBitFieldMaskBit35 = 0x10000000 + CBitFieldMaskBit36 = 0x8000000 + CBitFieldMaskBit37 = 0x4000000 + CBitFieldMaskBit38 = 0x2000000 + CBitFieldMaskBit39 = 0x1000000 + CBitFieldMaskBit40 = 0x800000 + CBitFieldMaskBit41 = 0x400000 + CBitFieldMaskBit42 = 0x200000 + CBitFieldMaskBit43 = 0x100000 + CBitFieldMaskBit44 = 0x80000 + CBitFieldMaskBit45 = 0x40000 + CBitFieldMaskBit46 = 0x20000 + CBitFieldMaskBit47 = 0x10000 + CBitFieldMaskBit48 = 0x8000 + CBitFieldMaskBit49 = 0x4000 + CBitFieldMaskBit50 = 0x2000 + CBitFieldMaskBit51 = 0x1000 + CBitFieldMaskBit52 = 0x800 + CBitFieldMaskBit53 = 0x400 + CBitFieldMaskBit54 = 0x200 + CBitFieldMaskBit55 = 0x100 + CBitFieldMaskBit56 = 0x80 + CBitFieldMaskBit57 = 0x40 + CBitFieldMaskBit58 = 0x20 + CBitFieldMaskBit59 = 0x10 + CBitFieldMaskBit60 = 0x8 + CBitFieldMaskBit61 = 0x4 + CBitFieldMaskBit62 = 0x2 + CBitFieldMaskBit63 = 0x1 +) + +type SockaddrStorage struct { + Family uint16 + _ [122]int8 + _ uint32 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint32 +} + +type Statfs_t struct { + Type int32 + Bsize int32 + Frsize int32 + _ [4]byte + Blocks uint64 + Bfree uint64 + Files uint64 + Ffree uint64 + Bavail uint64 + Fsid Fsid + Namelen int32 + Flags int32 + Spare [5]int32 + _ [4]byte +} + +type TpacketHdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 +} + +const ( + SizeofTpacketHdr = 0x18 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int32 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint32 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]int8 +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400470a1 + PPS_SETPARAMS = 0x800470a2 + PPS_GETCAP = 0x400470a3 + PPS_FETCH = 0xc00470a4 +) + +const ( + PIDFD_NONBLOCK = 0x80 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint32 + _ uint32 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint32 + Atime uint32 + Dtime uint32 + Ctime uint32 + Cpid int32 + Lpid int32 + Nattch uint32 + Atime_high uint16 + Dtime_high uint16 + Ctime_high uint16 + _ uint16 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go new file mode 100644 index 0000000..93ae4c5 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -0,0 +1,693 @@ +// cgo -godefs -objdir=/tmp/mips64/cgo -- -Wall -Werror -static -I/tmp/mips64/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64 && linux +// +build mips64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint32 + Pad1 [3]uint32 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint32 + Pad2 [3]uint32 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize uint32 + Pad4 uint32 + Blocks int64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x80 + +const ( + SIG_BLOCK = 0x1 + SIG_UNBLOCK = 0x2 + SIG_SETMASK = 0x3 +) + +type Siginfo struct { + Signo int32 + Code int32 + Errno int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [23]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x8000000000000000 + CBitFieldMaskBit1 = 0x4000000000000000 + CBitFieldMaskBit2 = 0x2000000000000000 + CBitFieldMaskBit3 = 0x1000000000000000 + CBitFieldMaskBit4 = 0x800000000000000 + CBitFieldMaskBit5 = 0x400000000000000 + CBitFieldMaskBit6 = 0x200000000000000 + CBitFieldMaskBit7 = 0x100000000000000 + CBitFieldMaskBit8 = 0x80000000000000 + CBitFieldMaskBit9 = 0x40000000000000 + CBitFieldMaskBit10 = 0x20000000000000 + CBitFieldMaskBit11 = 0x10000000000000 + CBitFieldMaskBit12 = 0x8000000000000 + CBitFieldMaskBit13 = 0x4000000000000 + CBitFieldMaskBit14 = 0x2000000000000 + CBitFieldMaskBit15 = 0x1000000000000 + CBitFieldMaskBit16 = 0x800000000000 + CBitFieldMaskBit17 = 0x400000000000 + CBitFieldMaskBit18 = 0x200000000000 + CBitFieldMaskBit19 = 0x100000000000 + CBitFieldMaskBit20 = 0x80000000000 + CBitFieldMaskBit21 = 0x40000000000 + CBitFieldMaskBit22 = 0x20000000000 + CBitFieldMaskBit23 = 0x10000000000 + CBitFieldMaskBit24 = 0x8000000000 + CBitFieldMaskBit25 = 0x4000000000 + CBitFieldMaskBit26 = 0x2000000000 + CBitFieldMaskBit27 = 0x1000000000 + CBitFieldMaskBit28 = 0x800000000 + CBitFieldMaskBit29 = 0x400000000 + CBitFieldMaskBit30 = 0x200000000 + CBitFieldMaskBit31 = 0x100000000 + CBitFieldMaskBit32 = 0x80000000 + CBitFieldMaskBit33 = 0x40000000 + CBitFieldMaskBit34 = 0x20000000 + CBitFieldMaskBit35 = 0x10000000 + CBitFieldMaskBit36 = 0x8000000 + CBitFieldMaskBit37 = 0x4000000 + CBitFieldMaskBit38 = 0x2000000 + CBitFieldMaskBit39 = 0x1000000 + CBitFieldMaskBit40 = 0x800000 + CBitFieldMaskBit41 = 0x400000 + CBitFieldMaskBit42 = 0x200000 + CBitFieldMaskBit43 = 0x100000 + CBitFieldMaskBit44 = 0x80000 + CBitFieldMaskBit45 = 0x40000 + CBitFieldMaskBit46 = 0x20000 + CBitFieldMaskBit47 = 0x10000 + CBitFieldMaskBit48 = 0x8000 + CBitFieldMaskBit49 = 0x4000 + CBitFieldMaskBit50 = 0x2000 + CBitFieldMaskBit51 = 0x1000 + CBitFieldMaskBit52 = 0x800 + CBitFieldMaskBit53 = 0x400 + CBitFieldMaskBit54 = 0x200 + CBitFieldMaskBit55 = 0x100 + CBitFieldMaskBit56 = 0x80 + CBitFieldMaskBit57 = 0x40 + CBitFieldMaskBit58 = 0x20 + CBitFieldMaskBit59 = 0x10 + CBitFieldMaskBit60 = 0x8 + CBitFieldMaskBit61 = 0x4 + CBitFieldMaskBit62 = 0x2 + CBitFieldMaskBit63 = 0x1 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Frsize int64 + Blocks uint64 + Bfree uint64 + Files uint64 + Ffree uint64 + Bavail uint64 + Fsid Fsid + Namelen int64 + Flags int64 + Spare [5]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400870a1 + PPS_SETPARAMS = 0x800870a2 + PPS_GETCAP = 0x400870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x80 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go new file mode 100644 index 0000000..4e4e510 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -0,0 +1,693 @@ +// cgo -godefs -objdir=/tmp/mips64le/cgo -- -Wall -Werror -static -I/tmp/mips64le/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64le && linux +// +build mips64le,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint32 + Pad1 [3]uint32 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint32 + Pad2 [3]uint32 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize uint32 + Pad4 uint32 + Blocks int64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x80 + +const ( + SIG_BLOCK = 0x1 + SIG_UNBLOCK = 0x2 + SIG_SETMASK = 0x3 +) + +type Siginfo struct { + Signo int32 + Code int32 + Errno int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [23]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Frsize int64 + Blocks uint64 + Bfree uint64 + Files uint64 + Ffree uint64 + Bavail uint64 + Fsid Fsid + Namelen int64 + Flags int64 + Spare [5]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400870a1 + PPS_SETPARAMS = 0x800870a2 + PPS_GETCAP = 0x400870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x80 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go new file mode 100644 index 0000000..3f5ba01 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -0,0 +1,696 @@ +// cgo -godefs -objdir=/tmp/mipsle/cgo -- -Wall -Werror -static -I/tmp/mipsle/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mipsle && linux +// +build mipsle,linux + +package unix + +const ( + SizeofPtr = 0x4 + SizeofLong = 0x4 +) + +type ( + _C_long int32 +) + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Timex struct { + Modes uint32 + Offset int32 + Freq int32 + Maxerror int32 + Esterror int32 + Status int32 + Constant int32 + Precision int32 + Tolerance int32 + Time Timeval + Tick int32 + Ppsfreq int32 + Jitter int32 + Shift int32 + Stabil int32 + Jitcnt int32 + Calcnt int32 + Errcnt int32 + Stbcnt int32 + Tai int32 + _ [44]byte +} + +type Time_t int32 + +type Tms struct { + Utime int32 + Stime int32 + Cutime int32 + Cstime int32 +} + +type Utimbuf struct { + Actime int32 + Modtime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Stat_t struct { + Dev uint32 + Pad1 [3]int32 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint32 + Pad2 [3]int32 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int32 + Pad4 int32 + Blocks int64 + Pad5 [14]int32 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + _ [4]byte + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint32 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [16]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x58 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc +) + +const ( + SizeofSockFprog = 0x8 +) + +type PtraceRegs struct { + Regs [32]uint64 + Lo uint64 + Hi uint64 + Epc uint64 + Badvaddr uint64 + Status uint64 + Cause uint64 +} + +type FdSet struct { + Bits [32]int32 +} + +type Sysinfo_t struct { + Uptime int32 + Loads [3]uint32 + Totalram uint32 + Freeram uint32 + Sharedram uint32 + Bufferram uint32 + Totalswap uint32 + Freeswap uint32 + Procs uint16 + Pad uint16 + Totalhigh uint32 + Freehigh uint32 + Unit uint32 + _ [8]int8 +} + +type Ustat_t struct { + Tfree int32 + Tinode uint32 + Fname [6]int8 + Fpack [6]int8 +} + +type EpollEvent struct { + Events uint32 + PadFd int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [32]uint32 +} + +const _C__NSIG = 0x80 + +const ( + SIG_BLOCK = 0x1 + SIG_UNBLOCK = 0x2 + SIG_SETMASK = 0x3 +) + +type Siginfo struct { + Signo int32 + Code int32 + Errno int32 + _ [116]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [23]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + _ [4]byte + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + _ [4]byte + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + _ [4]byte + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint32 + +const ( + _NCPUBITS = 0x20 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [122]int8 + _ uint32 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint32 +} + +type Statfs_t struct { + Type int32 + Bsize int32 + Frsize int32 + _ [4]byte + Blocks uint64 + Bfree uint64 + Files uint64 + Ffree uint64 + Bavail uint64 + Fsid Fsid + Namelen int32 + Flags int32 + Spare [5]int32 + _ [4]byte +} + +type TpacketHdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 +} + +const ( + SizeofTpacketHdr = 0x18 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int32 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint32 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]int8 +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400470a1 + PPS_SETPARAMS = 0x800470a2 + PPS_GETCAP = 0x400470a3 + PPS_FETCH = 0xc00470a4 +) + +const ( + PIDFD_NONBLOCK = 0x80 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint32 + _ uint32 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint32 + Atime uint32 + Dtime uint32 + Ctime uint32 + Cpid int32 + Lpid int32 + Nattch uint32 + Atime_high uint16 + Dtime_high uint16 + Ctime_high uint16 + _ uint16 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go new file mode 100644 index 0000000..71dfe7c --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go @@ -0,0 +1,704 @@ +// cgo -godefs -objdir=/tmp/ppc/cgo -- -Wall -Werror -static -I/tmp/ppc/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc && linux +// +build ppc,linux + +package unix + +const ( + SizeofPtr = 0x4 + SizeofLong = 0x4 +) + +type ( + _C_long int32 +) + +type Timespec struct { + Sec int32 + Nsec int32 +} + +type Timeval struct { + Sec int32 + Usec int32 +} + +type Timex struct { + Modes uint32 + Offset int32 + Freq int32 + Maxerror int32 + Esterror int32 + Status int32 + Constant int32 + Precision int32 + Tolerance int32 + Time Timeval + Tick int32 + Ppsfreq int32 + Jitter int32 + Shift int32 + Stabil int32 + Jitcnt int32 + Calcnt int32 + Errcnt int32 + Stbcnt int32 + Tai int32 + _ [44]byte +} + +type Time_t int32 + +type Tms struct { + Utime int32 + Stime int32 + Cutime int32 + Cstime int32 +} + +type Utimbuf struct { + Actime int32 + Modtime int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint16 + _ [4]byte + Size int64 + Blksize int32 + _ [4]byte + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ uint32 + _ uint32 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]uint8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + _ [4]byte + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint32 +} + +type RawSockaddr struct { + Family uint16 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]uint8 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [16]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x58 + SizeofIovec = 0x8 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc +) + +const ( + SizeofSockFprog = 0x8 +) + +type PtraceRegs struct { + Gpr [32]uint32 + Nip uint32 + Msr uint32 + Orig_gpr3 uint32 + Ctr uint32 + Link uint32 + Xer uint32 + Ccr uint32 + Mq uint32 + Trap uint32 + Dar uint32 + Dsisr uint32 + Result uint32 +} + +type FdSet struct { + Bits [32]int32 +} + +type Sysinfo_t struct { + Uptime int32 + Loads [3]uint32 + Totalram uint32 + Freeram uint32 + Sharedram uint32 + Bufferram uint32 + Totalswap uint32 + Freeswap uint32 + Procs uint16 + Pad uint16 + Totalhigh uint32 + Freehigh uint32 + Unit uint32 + _ [8]uint8 +} + +type Ustat_t struct { + Tfree int32 + Tinode uint32 + Fname [6]uint8 + Fpack [6]uint8 +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [32]uint32 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ [116]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [19]uint8 + Line uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + _ [4]byte + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]uint8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + _ [4]byte + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + _ [4]byte + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint32 + +const ( + _NCPUBITS = 0x20 +) + +const ( + CBitFieldMaskBit0 = 0x8000000000000000 + CBitFieldMaskBit1 = 0x4000000000000000 + CBitFieldMaskBit2 = 0x2000000000000000 + CBitFieldMaskBit3 = 0x1000000000000000 + CBitFieldMaskBit4 = 0x800000000000000 + CBitFieldMaskBit5 = 0x400000000000000 + CBitFieldMaskBit6 = 0x200000000000000 + CBitFieldMaskBit7 = 0x100000000000000 + CBitFieldMaskBit8 = 0x80000000000000 + CBitFieldMaskBit9 = 0x40000000000000 + CBitFieldMaskBit10 = 0x20000000000000 + CBitFieldMaskBit11 = 0x10000000000000 + CBitFieldMaskBit12 = 0x8000000000000 + CBitFieldMaskBit13 = 0x4000000000000 + CBitFieldMaskBit14 = 0x2000000000000 + CBitFieldMaskBit15 = 0x1000000000000 + CBitFieldMaskBit16 = 0x800000000000 + CBitFieldMaskBit17 = 0x400000000000 + CBitFieldMaskBit18 = 0x200000000000 + CBitFieldMaskBit19 = 0x100000000000 + CBitFieldMaskBit20 = 0x80000000000 + CBitFieldMaskBit21 = 0x40000000000 + CBitFieldMaskBit22 = 0x20000000000 + CBitFieldMaskBit23 = 0x10000000000 + CBitFieldMaskBit24 = 0x8000000000 + CBitFieldMaskBit25 = 0x4000000000 + CBitFieldMaskBit26 = 0x2000000000 + CBitFieldMaskBit27 = 0x1000000000 + CBitFieldMaskBit28 = 0x800000000 + CBitFieldMaskBit29 = 0x400000000 + CBitFieldMaskBit30 = 0x200000000 + CBitFieldMaskBit31 = 0x100000000 + CBitFieldMaskBit32 = 0x80000000 + CBitFieldMaskBit33 = 0x40000000 + CBitFieldMaskBit34 = 0x20000000 + CBitFieldMaskBit35 = 0x10000000 + CBitFieldMaskBit36 = 0x8000000 + CBitFieldMaskBit37 = 0x4000000 + CBitFieldMaskBit38 = 0x2000000 + CBitFieldMaskBit39 = 0x1000000 + CBitFieldMaskBit40 = 0x800000 + CBitFieldMaskBit41 = 0x400000 + CBitFieldMaskBit42 = 0x200000 + CBitFieldMaskBit43 = 0x100000 + CBitFieldMaskBit44 = 0x80000 + CBitFieldMaskBit45 = 0x40000 + CBitFieldMaskBit46 = 0x20000 + CBitFieldMaskBit47 = 0x10000 + CBitFieldMaskBit48 = 0x8000 + CBitFieldMaskBit49 = 0x4000 + CBitFieldMaskBit50 = 0x2000 + CBitFieldMaskBit51 = 0x1000 + CBitFieldMaskBit52 = 0x800 + CBitFieldMaskBit53 = 0x400 + CBitFieldMaskBit54 = 0x200 + CBitFieldMaskBit55 = 0x100 + CBitFieldMaskBit56 = 0x80 + CBitFieldMaskBit57 = 0x40 + CBitFieldMaskBit58 = 0x20 + CBitFieldMaskBit59 = 0x10 + CBitFieldMaskBit60 = 0x8 + CBitFieldMaskBit61 = 0x4 + CBitFieldMaskBit62 = 0x2 + CBitFieldMaskBit63 = 0x1 +) + +type SockaddrStorage struct { + Family uint16 + _ [122]uint8 + _ uint32 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint32 +} + +type Statfs_t struct { + Type int32 + Bsize int32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int32 + Frsize int32 + Flags int32 + Spare [4]int32 + _ [4]byte +} + +type TpacketHdr struct { + Status uint32 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 +} + +const ( + SizeofTpacketHdr = 0x18 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int32 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]uint8 + Driver_name [64]uint8 + Module_name [64]uint8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]uint8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]uint8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]uint8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]uint8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]uint8 +} + +type CryptoReportLarval struct { + Type [64]uint8 +} + +type CryptoReportHash struct { + Type [64]uint8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]uint8 +} + +type CryptoReportRNG struct { + Type [64]uint8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]uint8 +} + +type CryptoReportKPP struct { + Type [64]uint8 +} + +type CryptoReportAcomp struct { + Type [64]uint8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint32 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint32 + Reserved [4]uint8 +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400470a1 + PPS_SETPARAMS = 0x800470a2 + PPS_GETCAP = 0x400470a3 + PPS_FETCH = 0xc00470a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + Seq uint32 + _ uint32 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Atime_high uint32 + Atime uint32 + Dtime_high uint32 + Dtime uint32 + Ctime_high uint32 + Ctime uint32 + _ uint32 + Segsz uint32 + Cpid int32 + Lpid int32 + Nattch uint32 + _ uint32 + _ uint32 + _ [4]byte +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go new file mode 100644 index 0000000..3a2b7f0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -0,0 +1,699 @@ +// cgo -godefs -objdir=/tmp/ppc64/cgo -- -Wall -Werror -static -I/tmp/ppc64/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && linux +// +build ppc64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint32 + Uid uint32 + Gid uint32 + _ int32 + Rdev uint64 + Size int64 + Blksize int64 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ uint64 + _ uint64 + _ uint64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]uint8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]uint8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Gpr [32]uint64 + Nip uint64 + Msr uint64 + Orig_gpr3 uint64 + Ctr uint64 + Link uint64 + Xer uint64 + Ccr uint64 + Softe uint64 + Trap uint64 + Dar uint64 + Dsisr uint64 + Result uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]uint8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]uint8 + Fpack [6]uint8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [19]uint8 + Line uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]uint8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x8000000000000000 + CBitFieldMaskBit1 = 0x4000000000000000 + CBitFieldMaskBit2 = 0x2000000000000000 + CBitFieldMaskBit3 = 0x1000000000000000 + CBitFieldMaskBit4 = 0x800000000000000 + CBitFieldMaskBit5 = 0x400000000000000 + CBitFieldMaskBit6 = 0x200000000000000 + CBitFieldMaskBit7 = 0x100000000000000 + CBitFieldMaskBit8 = 0x80000000000000 + CBitFieldMaskBit9 = 0x40000000000000 + CBitFieldMaskBit10 = 0x20000000000000 + CBitFieldMaskBit11 = 0x10000000000000 + CBitFieldMaskBit12 = 0x8000000000000 + CBitFieldMaskBit13 = 0x4000000000000 + CBitFieldMaskBit14 = 0x2000000000000 + CBitFieldMaskBit15 = 0x1000000000000 + CBitFieldMaskBit16 = 0x800000000000 + CBitFieldMaskBit17 = 0x400000000000 + CBitFieldMaskBit18 = 0x200000000000 + CBitFieldMaskBit19 = 0x100000000000 + CBitFieldMaskBit20 = 0x80000000000 + CBitFieldMaskBit21 = 0x40000000000 + CBitFieldMaskBit22 = 0x20000000000 + CBitFieldMaskBit23 = 0x10000000000 + CBitFieldMaskBit24 = 0x8000000000 + CBitFieldMaskBit25 = 0x4000000000 + CBitFieldMaskBit26 = 0x2000000000 + CBitFieldMaskBit27 = 0x1000000000 + CBitFieldMaskBit28 = 0x800000000 + CBitFieldMaskBit29 = 0x400000000 + CBitFieldMaskBit30 = 0x200000000 + CBitFieldMaskBit31 = 0x100000000 + CBitFieldMaskBit32 = 0x80000000 + CBitFieldMaskBit33 = 0x40000000 + CBitFieldMaskBit34 = 0x20000000 + CBitFieldMaskBit35 = 0x10000000 + CBitFieldMaskBit36 = 0x8000000 + CBitFieldMaskBit37 = 0x4000000 + CBitFieldMaskBit38 = 0x2000000 + CBitFieldMaskBit39 = 0x1000000 + CBitFieldMaskBit40 = 0x800000 + CBitFieldMaskBit41 = 0x400000 + CBitFieldMaskBit42 = 0x200000 + CBitFieldMaskBit43 = 0x100000 + CBitFieldMaskBit44 = 0x80000 + CBitFieldMaskBit45 = 0x40000 + CBitFieldMaskBit46 = 0x20000 + CBitFieldMaskBit47 = 0x10000 + CBitFieldMaskBit48 = 0x8000 + CBitFieldMaskBit49 = 0x4000 + CBitFieldMaskBit50 = 0x2000 + CBitFieldMaskBit51 = 0x1000 + CBitFieldMaskBit52 = 0x800 + CBitFieldMaskBit53 = 0x400 + CBitFieldMaskBit54 = 0x200 + CBitFieldMaskBit55 = 0x100 + CBitFieldMaskBit56 = 0x80 + CBitFieldMaskBit57 = 0x40 + CBitFieldMaskBit58 = 0x20 + CBitFieldMaskBit59 = 0x10 + CBitFieldMaskBit60 = 0x8 + CBitFieldMaskBit61 = 0x4 + CBitFieldMaskBit62 = 0x2 + CBitFieldMaskBit63 = 0x1 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]uint8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]uint8 + Driver_name [64]uint8 + Module_name [64]uint8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]uint8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]uint8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]uint8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]uint8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]uint8 +} + +type CryptoReportLarval struct { + Type [64]uint8 +} + +type CryptoReportHash struct { + Type [64]uint8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]uint8 +} + +type CryptoReportRNG struct { + Type [64]uint8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]uint8 +} + +type CryptoReportKPP struct { + Type [64]uint8 +} + +type CryptoReportAcomp struct { + Type [64]uint8 +} + +type LoopInfo struct { + Number int32 + Device uint64 + Inode uint64 + Rdevice uint64 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]uint8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400870a1 + PPS_SETPARAMS = 0x800870a2 + PPS_GETCAP = 0x400870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + Seq uint32 + _ uint32 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Atime int64 + Dtime int64 + Ctime int64 + Segsz uint64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go new file mode 100644 index 0000000..a52d627 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -0,0 +1,699 @@ +// cgo -godefs -objdir=/tmp/ppc64le/cgo -- -Wall -Werror -static -I/tmp/ppc64le/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64le && linux +// +build ppc64le,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint32 + Uid uint32 + Gid uint32 + _ int32 + Rdev uint64 + Size int64 + Blksize int64 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ uint64 + _ uint64 + _ uint64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]uint8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]uint8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Gpr [32]uint64 + Nip uint64 + Msr uint64 + Orig_gpr3 uint64 + Ctr uint64 + Link uint64 + Xer uint64 + Ccr uint64 + Softe uint64 + Trap uint64 + Dar uint64 + Dsisr uint64 + Result uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]uint8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]uint8 + Fpack [6]uint8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [19]uint8 + Line uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]uint8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]uint8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]uint8 + Driver_name [64]uint8 + Module_name [64]uint8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]uint8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]uint8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]uint8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]uint8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]uint8 +} + +type CryptoReportLarval struct { + Type [64]uint8 +} + +type CryptoReportHash struct { + Type [64]uint8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]uint8 +} + +type CryptoReportRNG struct { + Type [64]uint8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]uint8 +} + +type CryptoReportKPP struct { + Type [64]uint8 +} + +type CryptoReportAcomp struct { + Type [64]uint8 +} + +type LoopInfo struct { + Number int32 + Device uint64 + Inode uint64 + Rdevice uint64 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]uint8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400870a1 + PPS_SETPARAMS = 0x800870a2 + PPS_GETCAP = 0x400870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + Seq uint32 + _ uint32 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Atime int64 + Dtime int64 + Ctime int64 + Segsz uint64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go new file mode 100644 index 0000000..dfc007d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -0,0 +1,718 @@ +// cgo -godefs -objdir=/tmp/riscv64/cgo -- -Wall -Werror -static -I/tmp/riscv64/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && linux +// +build riscv64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint64 + Size int64 + Blksize int32 + _ int32 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ [2]int32 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]uint8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]uint8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Pc uint64 + Ra uint64 + Sp uint64 + Gp uint64 + Tp uint64 + T0 uint64 + T1 uint64 + T2 uint64 + S0 uint64 + S1 uint64 + A0 uint64 + A1 uint64 + A2 uint64 + A3 uint64 + A4 uint64 + A5 uint64 + A6 uint64 + A7 uint64 + S2 uint64 + S3 uint64 + S4 uint64 + S5 uint64 + S6 uint64 + S7 uint64 + S8 uint64 + S9 uint64 + S10 uint64 + S11 uint64 + T3 uint64 + T4 uint64 + T5 uint64 + T6 uint64 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]uint8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]uint8 + Fpack [6]uint8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]uint8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x1 + CBitFieldMaskBit1 = 0x2 + CBitFieldMaskBit2 = 0x4 + CBitFieldMaskBit3 = 0x8 + CBitFieldMaskBit4 = 0x10 + CBitFieldMaskBit5 = 0x20 + CBitFieldMaskBit6 = 0x40 + CBitFieldMaskBit7 = 0x80 + CBitFieldMaskBit8 = 0x100 + CBitFieldMaskBit9 = 0x200 + CBitFieldMaskBit10 = 0x400 + CBitFieldMaskBit11 = 0x800 + CBitFieldMaskBit12 = 0x1000 + CBitFieldMaskBit13 = 0x2000 + CBitFieldMaskBit14 = 0x4000 + CBitFieldMaskBit15 = 0x8000 + CBitFieldMaskBit16 = 0x10000 + CBitFieldMaskBit17 = 0x20000 + CBitFieldMaskBit18 = 0x40000 + CBitFieldMaskBit19 = 0x80000 + CBitFieldMaskBit20 = 0x100000 + CBitFieldMaskBit21 = 0x200000 + CBitFieldMaskBit22 = 0x400000 + CBitFieldMaskBit23 = 0x800000 + CBitFieldMaskBit24 = 0x1000000 + CBitFieldMaskBit25 = 0x2000000 + CBitFieldMaskBit26 = 0x4000000 + CBitFieldMaskBit27 = 0x8000000 + CBitFieldMaskBit28 = 0x10000000 + CBitFieldMaskBit29 = 0x20000000 + CBitFieldMaskBit30 = 0x40000000 + CBitFieldMaskBit31 = 0x80000000 + CBitFieldMaskBit32 = 0x100000000 + CBitFieldMaskBit33 = 0x200000000 + CBitFieldMaskBit34 = 0x400000000 + CBitFieldMaskBit35 = 0x800000000 + CBitFieldMaskBit36 = 0x1000000000 + CBitFieldMaskBit37 = 0x2000000000 + CBitFieldMaskBit38 = 0x4000000000 + CBitFieldMaskBit39 = 0x8000000000 + CBitFieldMaskBit40 = 0x10000000000 + CBitFieldMaskBit41 = 0x20000000000 + CBitFieldMaskBit42 = 0x40000000000 + CBitFieldMaskBit43 = 0x80000000000 + CBitFieldMaskBit44 = 0x100000000000 + CBitFieldMaskBit45 = 0x200000000000 + CBitFieldMaskBit46 = 0x400000000000 + CBitFieldMaskBit47 = 0x800000000000 + CBitFieldMaskBit48 = 0x1000000000000 + CBitFieldMaskBit49 = 0x2000000000000 + CBitFieldMaskBit50 = 0x4000000000000 + CBitFieldMaskBit51 = 0x8000000000000 + CBitFieldMaskBit52 = 0x10000000000000 + CBitFieldMaskBit53 = 0x20000000000000 + CBitFieldMaskBit54 = 0x40000000000000 + CBitFieldMaskBit55 = 0x80000000000000 + CBitFieldMaskBit56 = 0x100000000000000 + CBitFieldMaskBit57 = 0x200000000000000 + CBitFieldMaskBit58 = 0x400000000000000 + CBitFieldMaskBit59 = 0x800000000000000 + CBitFieldMaskBit60 = 0x1000000000000000 + CBitFieldMaskBit61 = 0x2000000000000000 + CBitFieldMaskBit62 = 0x4000000000000000 + CBitFieldMaskBit63 = 0x8000000000000000 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]uint8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]uint8 + Driver_name [64]uint8 + Module_name [64]uint8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]uint8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]uint8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]uint8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]uint8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]uint8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]uint8 +} + +type CryptoReportLarval struct { + Type [64]uint8 +} + +type CryptoReportHash struct { + Type [64]uint8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]uint8 + Geniv [64]uint8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]uint8 +} + +type CryptoReportRNG struct { + Type [64]uint8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]uint8 +} + +type CryptoReportKPP struct { + Type [64]uint8 +} + +type CryptoReportAcomp struct { + Type [64]uint8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]uint8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]uint8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x800870a1 + PPS_SETPARAMS = 0x400870a2 + PPS_GETCAP = 0x800870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ [0]uint8 + Seq uint16 + _ uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go new file mode 100644 index 0000000..b53cb91 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -0,0 +1,713 @@ +// cgo -godefs -objdir=/tmp/s390x/cgo -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build s390x && linux +// +build s390x,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint32 + Uid uint32 + Gid uint32 + _ int32 + Rdev uint64 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int64 + Blocks int64 + _ [3]int64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ [4]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x6 + FADV_NOREUSE = 0x7 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Psw PtracePsw + Gprs [16]uint64 + Acrs [16]uint32 + Orig_gpr2 uint64 + Fp_regs PtraceFpregs + Per_info PtracePer + Ieee_instruction_pointer uint64 +} + +type PtracePsw struct { + Mask uint64 + Addr uint64 +} + +type PtraceFpregs struct { + Fpc uint32 + Fprs [16]float64 +} + +type PtracePer struct { + Control_regs [3]uint64 + _ [8]byte + Starting_addr uint64 + Ending_addr uint64 + Perc_atmid uint16 + Address uint64 + Access_id uint8 + _ [7]byte +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x80000 +) + +const ( + POLLRDHUP = 0x2000 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x0 + SIG_UNBLOCK = 0x1 + SIG_SETMASK = 0x2 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x8000000000000000 + CBitFieldMaskBit1 = 0x4000000000000000 + CBitFieldMaskBit2 = 0x2000000000000000 + CBitFieldMaskBit3 = 0x1000000000000000 + CBitFieldMaskBit4 = 0x800000000000000 + CBitFieldMaskBit5 = 0x400000000000000 + CBitFieldMaskBit6 = 0x200000000000000 + CBitFieldMaskBit7 = 0x100000000000000 + CBitFieldMaskBit8 = 0x80000000000000 + CBitFieldMaskBit9 = 0x40000000000000 + CBitFieldMaskBit10 = 0x20000000000000 + CBitFieldMaskBit11 = 0x10000000000000 + CBitFieldMaskBit12 = 0x8000000000000 + CBitFieldMaskBit13 = 0x4000000000000 + CBitFieldMaskBit14 = 0x2000000000000 + CBitFieldMaskBit15 = 0x1000000000000 + CBitFieldMaskBit16 = 0x800000000000 + CBitFieldMaskBit17 = 0x400000000000 + CBitFieldMaskBit18 = 0x200000000000 + CBitFieldMaskBit19 = 0x100000000000 + CBitFieldMaskBit20 = 0x80000000000 + CBitFieldMaskBit21 = 0x40000000000 + CBitFieldMaskBit22 = 0x20000000000 + CBitFieldMaskBit23 = 0x10000000000 + CBitFieldMaskBit24 = 0x8000000000 + CBitFieldMaskBit25 = 0x4000000000 + CBitFieldMaskBit26 = 0x2000000000 + CBitFieldMaskBit27 = 0x1000000000 + CBitFieldMaskBit28 = 0x800000000 + CBitFieldMaskBit29 = 0x400000000 + CBitFieldMaskBit30 = 0x200000000 + CBitFieldMaskBit31 = 0x100000000 + CBitFieldMaskBit32 = 0x80000000 + CBitFieldMaskBit33 = 0x40000000 + CBitFieldMaskBit34 = 0x20000000 + CBitFieldMaskBit35 = 0x10000000 + CBitFieldMaskBit36 = 0x8000000 + CBitFieldMaskBit37 = 0x4000000 + CBitFieldMaskBit38 = 0x2000000 + CBitFieldMaskBit39 = 0x1000000 + CBitFieldMaskBit40 = 0x800000 + CBitFieldMaskBit41 = 0x400000 + CBitFieldMaskBit42 = 0x200000 + CBitFieldMaskBit43 = 0x100000 + CBitFieldMaskBit44 = 0x80000 + CBitFieldMaskBit45 = 0x40000 + CBitFieldMaskBit46 = 0x20000 + CBitFieldMaskBit47 = 0x10000 + CBitFieldMaskBit48 = 0x8000 + CBitFieldMaskBit49 = 0x4000 + CBitFieldMaskBit50 = 0x2000 + CBitFieldMaskBit51 = 0x1000 + CBitFieldMaskBit52 = 0x800 + CBitFieldMaskBit53 = 0x400 + CBitFieldMaskBit54 = 0x200 + CBitFieldMaskBit55 = 0x100 + CBitFieldMaskBit56 = 0x80 + CBitFieldMaskBit57 = 0x40 + CBitFieldMaskBit58 = 0x20 + CBitFieldMaskBit59 = 0x10 + CBitFieldMaskBit60 = 0x8 + CBitFieldMaskBit61 = 0x4 + CBitFieldMaskBit62 = 0x2 + CBitFieldMaskBit63 = 0x1 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type uint32 + Bsize uint32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen uint32 + Frsize uint32 + Flags uint32 + Spare [4]uint32 + _ [4]byte +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x1269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint16 + Inode uint64 + Rdevice uint16 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x800870a1 + PPS_SETPARAMS = 0x400870a2 + PPS_GETCAP = 0x800870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x800 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ uint16 + Seq uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Segsz uint64 + Atime int64 + Dtime int64 + Ctime int64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go new file mode 100644 index 0000000..fe0aa35 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -0,0 +1,694 @@ +// cgo -godefs -objdir=/tmp/sparc64/cgo -- -Wall -Werror -static -I/tmp/sparc64/include linux/types.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build sparc64 && linux +// +build sparc64,linux + +package unix + +const ( + SizeofPtr = 0x8 + SizeofLong = 0x8 +) + +type ( + _C_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int32 + _ [4]byte +} + +type Timex struct { + Modes uint32 + Offset int64 + Freq int64 + Maxerror int64 + Esterror int64 + Status int32 + Constant int64 + Precision int64 + Tolerance int64 + Time Timeval + Tick int64 + Ppsfreq int64 + Jitter int64 + Shift int32 + Stabil int64 + Jitcnt int64 + Calcnt int64 + Errcnt int64 + Stbcnt int64 + Tai int32 + _ [44]byte +} + +type Time_t int64 + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Stat_t struct { + Dev uint64 + _ uint16 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + _ uint16 + Size int64 + Blksize int64 + Blocks int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + _ uint64 + _ uint64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]int8 + _ [5]byte +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 + _ int16 + _ [2]byte +} + +type DmNameList struct { + Dev uint64 + Next uint32 + Name [0]byte + _ [4]byte +} + +const ( + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrNFCLLCP struct { + Sa_family uint16 + Dev_idx uint32 + Target_idx uint32 + Nfc_protocol uint32 + Dsap uint8 + Ssap uint8 + Service_name [63]uint8 + Service_name_len uint64 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [96]int8 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint64 + Control *byte + Controllen uint64 + Flags int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint64 + Level int32 + Type int32 +} + +type ifreq struct { + Ifrn [16]byte + Ifru [24]byte +} + +const ( + SizeofSockaddrNFCLLCP = 0x60 + SizeofIovec = 0x10 + SizeofMsghdr = 0x38 + SizeofCmsghdr = 0x10 +) + +const ( + SizeofSockFprog = 0x10 +) + +type PtraceRegs struct { + Regs [16]uint64 + Tstate uint64 + Tpc uint64 + Tnpc uint64 + Y uint32 + Magic uint32 +} + +type FdSet struct { + Bits [16]int64 +} + +type Sysinfo_t struct { + Uptime int64 + Loads [3]uint64 + Totalram uint64 + Freeram uint64 + Sharedram uint64 + Bufferram uint64 + Totalswap uint64 + Freeswap uint64 + Procs uint16 + Pad uint16 + Totalhigh uint64 + Freehigh uint64 + Unit uint32 + _ [0]int8 + _ [4]byte +} + +type Ustat_t struct { + Tfree int32 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +type EpollEvent struct { + Events uint32 + _ int32 + Fd int32 + Pad int32 +} + +const ( + OPEN_TREE_CLOEXEC = 0x400000 +) + +const ( + POLLRDHUP = 0x800 +) + +type Sigset_t struct { + Val [16]uint64 +} + +const _C__NSIG = 0x41 + +const ( + SIG_BLOCK = 0x1 + SIG_UNBLOCK = 0x2 + SIG_SETMASK = 0x4 +) + +type Siginfo struct { + Signo int32 + Errno int32 + Code int32 + _ int32 + _ [112]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Line uint8 + Cc [19]uint8 + Ispeed uint32 + Ospeed uint32 +} + +type Taskstats struct { + Version uint16 + Ac_exitcode uint32 + Ac_flag uint8 + Ac_nice uint8 + Cpu_count uint64 + Cpu_delay_total uint64 + Blkio_count uint64 + Blkio_delay_total uint64 + Swapin_count uint64 + Swapin_delay_total uint64 + Cpu_run_real_total uint64 + Cpu_run_virtual_total uint64 + Ac_comm [32]int8 + Ac_sched uint8 + Ac_pad [3]uint8 + _ [4]byte + Ac_uid uint32 + Ac_gid uint32 + Ac_pid uint32 + Ac_ppid uint32 + Ac_btime uint32 + Ac_etime uint64 + Ac_utime uint64 + Ac_stime uint64 + Ac_minflt uint64 + Ac_majflt uint64 + Coremem uint64 + Virtmem uint64 + Hiwater_rss uint64 + Hiwater_vm uint64 + Read_char uint64 + Write_char uint64 + Read_syscalls uint64 + Write_syscalls uint64 + Read_bytes uint64 + Write_bytes uint64 + Cancelled_write_bytes uint64 + Nvcsw uint64 + Nivcsw uint64 + Ac_utimescaled uint64 + Ac_stimescaled uint64 + Cpu_scaled_run_real_total uint64 + Freepages_count uint64 + Freepages_delay_total uint64 + Thrashing_count uint64 + Thrashing_delay_total uint64 + Ac_btime64 uint64 + Compact_count uint64 + Compact_delay_total uint64 + Ac_tgid uint32 + Ac_tgetime uint64 + Ac_exe_dev uint64 + Ac_exe_inode uint64 + Wpcopy_count uint64 + Wpcopy_delay_total uint64 +} + +type cpuMask uint64 + +const ( + _NCPUBITS = 0x40 +) + +const ( + CBitFieldMaskBit0 = 0x8000000000000000 + CBitFieldMaskBit1 = 0x4000000000000000 + CBitFieldMaskBit2 = 0x2000000000000000 + CBitFieldMaskBit3 = 0x1000000000000000 + CBitFieldMaskBit4 = 0x800000000000000 + CBitFieldMaskBit5 = 0x400000000000000 + CBitFieldMaskBit6 = 0x200000000000000 + CBitFieldMaskBit7 = 0x100000000000000 + CBitFieldMaskBit8 = 0x80000000000000 + CBitFieldMaskBit9 = 0x40000000000000 + CBitFieldMaskBit10 = 0x20000000000000 + CBitFieldMaskBit11 = 0x10000000000000 + CBitFieldMaskBit12 = 0x8000000000000 + CBitFieldMaskBit13 = 0x4000000000000 + CBitFieldMaskBit14 = 0x2000000000000 + CBitFieldMaskBit15 = 0x1000000000000 + CBitFieldMaskBit16 = 0x800000000000 + CBitFieldMaskBit17 = 0x400000000000 + CBitFieldMaskBit18 = 0x200000000000 + CBitFieldMaskBit19 = 0x100000000000 + CBitFieldMaskBit20 = 0x80000000000 + CBitFieldMaskBit21 = 0x40000000000 + CBitFieldMaskBit22 = 0x20000000000 + CBitFieldMaskBit23 = 0x10000000000 + CBitFieldMaskBit24 = 0x8000000000 + CBitFieldMaskBit25 = 0x4000000000 + CBitFieldMaskBit26 = 0x2000000000 + CBitFieldMaskBit27 = 0x1000000000 + CBitFieldMaskBit28 = 0x800000000 + CBitFieldMaskBit29 = 0x400000000 + CBitFieldMaskBit30 = 0x200000000 + CBitFieldMaskBit31 = 0x100000000 + CBitFieldMaskBit32 = 0x80000000 + CBitFieldMaskBit33 = 0x40000000 + CBitFieldMaskBit34 = 0x20000000 + CBitFieldMaskBit35 = 0x10000000 + CBitFieldMaskBit36 = 0x8000000 + CBitFieldMaskBit37 = 0x4000000 + CBitFieldMaskBit38 = 0x2000000 + CBitFieldMaskBit39 = 0x1000000 + CBitFieldMaskBit40 = 0x800000 + CBitFieldMaskBit41 = 0x400000 + CBitFieldMaskBit42 = 0x200000 + CBitFieldMaskBit43 = 0x100000 + CBitFieldMaskBit44 = 0x80000 + CBitFieldMaskBit45 = 0x40000 + CBitFieldMaskBit46 = 0x20000 + CBitFieldMaskBit47 = 0x10000 + CBitFieldMaskBit48 = 0x8000 + CBitFieldMaskBit49 = 0x4000 + CBitFieldMaskBit50 = 0x2000 + CBitFieldMaskBit51 = 0x1000 + CBitFieldMaskBit52 = 0x800 + CBitFieldMaskBit53 = 0x400 + CBitFieldMaskBit54 = 0x200 + CBitFieldMaskBit55 = 0x100 + CBitFieldMaskBit56 = 0x80 + CBitFieldMaskBit57 = 0x40 + CBitFieldMaskBit58 = 0x20 + CBitFieldMaskBit59 = 0x10 + CBitFieldMaskBit60 = 0x8 + CBitFieldMaskBit61 = 0x4 + CBitFieldMaskBit62 = 0x2 + CBitFieldMaskBit63 = 0x1 +) + +type SockaddrStorage struct { + Family uint16 + _ [118]int8 + _ uint64 +} + +type HDGeometry struct { + Heads uint8 + Sectors uint8 + Cylinders uint16 + Start uint64 +} + +type Statfs_t struct { + Type int64 + Bsize int64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Fsid Fsid + Namelen int64 + Frsize int64 + Flags int64 + Spare [4]int64 +} + +type TpacketHdr struct { + Status uint64 + Len uint32 + Snaplen uint32 + Mac uint16 + Net uint16 + Sec uint32 + Usec uint32 + _ [4]byte +} + +const ( + SizeofTpacketHdr = 0x20 +) + +type RTCPLLInfo struct { + Ctrl int32 + Value int32 + Max int32 + Min int32 + Posmult int32 + Negmult int32 + Clock int64 +} + +type BlkpgPartition struct { + Start int64 + Length int64 + Pno int32 + Devname [64]uint8 + Volname [64]uint8 + _ [4]byte +} + +const ( + BLKPG = 0x20001269 +) + +type XDPUmemReg struct { + Addr uint64 + Len uint64 + Size uint32 + Headroom uint32 + Flags uint32 + _ [4]byte +} + +type CryptoUserAlg struct { + Name [64]int8 + Driver_name [64]int8 + Module_name [64]int8 + Type uint32 + Mask uint32 + Refcnt uint32 + Flags uint32 +} + +type CryptoStatAEAD struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatAKCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Verify_cnt uint64 + Sign_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatCipher struct { + Type [64]int8 + Encrypt_cnt uint64 + Encrypt_tlen uint64 + Decrypt_cnt uint64 + Decrypt_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatCompress struct { + Type [64]int8 + Compress_cnt uint64 + Compress_tlen uint64 + Decompress_cnt uint64 + Decompress_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatHash struct { + Type [64]int8 + Hash_cnt uint64 + Hash_tlen uint64 + Err_cnt uint64 +} + +type CryptoStatKPP struct { + Type [64]int8 + Setsecret_cnt uint64 + Generate_public_key_cnt uint64 + Compute_shared_secret_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatRNG struct { + Type [64]int8 + Generate_cnt uint64 + Generate_tlen uint64 + Seed_cnt uint64 + Err_cnt uint64 +} + +type CryptoStatLarval struct { + Type [64]int8 +} + +type CryptoReportLarval struct { + Type [64]int8 +} + +type CryptoReportHash struct { + Type [64]int8 + Blocksize uint32 + Digestsize uint32 +} + +type CryptoReportCipher struct { + Type [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 +} + +type CryptoReportBlkCipher struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Min_keysize uint32 + Max_keysize uint32 + Ivsize uint32 +} + +type CryptoReportAEAD struct { + Type [64]int8 + Geniv [64]int8 + Blocksize uint32 + Maxauthsize uint32 + Ivsize uint32 +} + +type CryptoReportComp struct { + Type [64]int8 +} + +type CryptoReportRNG struct { + Type [64]int8 + Seedsize uint32 +} + +type CryptoReportAKCipher struct { + Type [64]int8 +} + +type CryptoReportKPP struct { + Type [64]int8 +} + +type CryptoReportAcomp struct { + Type [64]int8 +} + +type LoopInfo struct { + Number int32 + Device uint32 + Inode uint64 + Rdevice uint32 + Offset int32 + Encrypt_type int32 + Encrypt_key_size int32 + Flags int32 + Name [64]int8 + Encrypt_key [32]uint8 + Init [2]uint64 + Reserved [4]int8 + _ [4]byte +} + +type TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +type PPSKInfo struct { + Assert_sequence uint32 + Clear_sequence uint32 + Assert_tu PPSKTime + Clear_tu PPSKTime + Current_mode int32 + _ [4]byte +} + +const ( + PPS_GETPARAMS = 0x400870a1 + PPS_SETPARAMS = 0x800870a2 + PPS_GETCAP = 0x400870a3 + PPS_FETCH = 0xc00870a4 +) + +const ( + PIDFD_NONBLOCK = 0x4000 +) + +type SysvIpcPerm struct { + Key int32 + Uid uint32 + Gid uint32 + Cuid uint32 + Cgid uint32 + Mode uint32 + _ uint16 + Seq uint16 + _ uint64 + _ uint64 +} +type SysvShmDesc struct { + Perm SysvIpcPerm + Atime int64 + Dtime int64 + Ctime int64 + Segsz uint64 + Cpid int32 + Lpid int32 + Nattch uint64 + _ uint64 + _ uint64 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go new file mode 100644 index 0000000..9bc4c8f --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go @@ -0,0 +1,586 @@ +// cgo -godefs types_netbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && netbsd +// +build 386,netbsd + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int32 +} + +type Timeval struct { + Sec int64 + Usec int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev uint64 + Mode uint32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize uint32 + Flags uint32 + Gen uint32 + Spare [2]uint32 +} + +type Statfs_t [0]byte + +type Statvfs_t struct { + Flag uint32 + Bsize uint32 + Frsize uint32 + Iosize uint32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint32 + Namemax uint32 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Reclen uint16 + Namlen uint16 + Type uint8 + Name [512]int8 + Pad_cgo_0 [3]byte +} + +type Fsid struct { + X__fsid_val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x14 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint32 + Filter uint32 + Flags uint32 + Fflags uint32 + Data int64 + Udata int32 +} + +type FdSet struct { + Bits [8]uint32 +} + +const ( + SizeofIfMsghdr = 0x98 + SizeofIfData = 0x84 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x78 + SizeofRtMetrics = 0x50 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Pad_cgo_0 [2]byte + Data IfData + Pad_cgo_1 [4]byte +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Pad_cgo_0 [1]byte + Link_state int32 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Lastchange Timespec +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Metric int32 + Index uint16 + Pad_cgo_0 [6]byte +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Pad_cgo_0 [2]byte + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits int32 + Pad_cgo_1 [4]byte + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Expire int64 + Pksent int64 +} + +type Mclpool [0]byte + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x80 + SizeofBpfProgram = 0x8 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x14 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint64 + Drop uint64 + Capt uint64 + Padding [13]uint64 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Pad_cgo_0 [2]byte +} + +type BpfTimeval struct { + Sec int32 + Usec int32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type Ptmget struct { + Cfd int32 + Sfd int32 + Cn [1024]byte + Sn [1024]byte +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sysctlnode struct { + Flags uint32 + Num int32 + Name [32]int8 + Ver uint32 + X__rsvd uint32 + Un [16]byte + X_sysctl_size [8]byte + X_sysctl_func [8]byte + X_sysctl_parent [8]byte + X_sysctl_desc [8]byte +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x278 + +type Uvmexp struct { + Pagesize int64 + Pagemask int64 + Pageshift int64 + Npages int64 + Free int64 + Active int64 + Inactive int64 + Paging int64 + Wired int64 + Zeropages int64 + Reserve_pagedaemon int64 + Reserve_kernel int64 + Freemin int64 + Freetarg int64 + Inactarg int64 + Wiredmax int64 + Nswapdev int64 + Swpages int64 + Swpginuse int64 + Swpgonly int64 + Nswget int64 + Unused1 int64 + Cpuhit int64 + Cpumiss int64 + Faults int64 + Traps int64 + Intrs int64 + Swtch int64 + Softs int64 + Syscalls int64 + Pageins int64 + Swapins int64 + Swapouts int64 + Pgswapin int64 + Pgswapout int64 + Forks int64 + Forks_ppwait int64 + Forks_sharevm int64 + Pga_zerohit int64 + Pga_zeromiss int64 + Zeroaborts int64 + Fltnoram int64 + Fltnoanon int64 + Fltpgwait int64 + Fltpgrele int64 + Fltrelck int64 + Fltrelckok int64 + Fltanget int64 + Fltanretry int64 + Fltamcopy int64 + Fltnamap int64 + Fltnomap int64 + Fltlget int64 + Fltget int64 + Flt_anon int64 + Flt_acow int64 + Flt_obj int64 + Flt_prcopy int64 + Flt_przero int64 + Pdwoke int64 + Pdrevs int64 + Unused4 int64 + Pdfreed int64 + Pdscans int64 + Pdanscan int64 + Pdobscan int64 + Pdreact int64 + Pdbusy int64 + Pdpageouts int64 + Pdpending int64 + Pddeact int64 + Anonpages int64 + Filepages int64 + Execpages int64 + Colorhit int64 + Colormiss int64 + Ncolors int64 + Bootpages int64 + Poolpages int64 +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go new file mode 100644 index 0000000..bb05f65 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go @@ -0,0 +1,594 @@ +// cgo -godefs types_netbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && netbsd +// +build amd64,netbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int32 + Pad_cgo_0 [4]byte +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev uint64 + Mode uint32 + _ [4]byte + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + _ [4]byte + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize uint32 + Flags uint32 + Gen uint32 + Spare [2]uint32 + _ [4]byte +} + +type Statfs_t [0]byte + +type Statvfs_t struct { + Flag uint64 + Bsize uint64 + Frsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint64 + Namemax uint64 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte + _ [4]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Reclen uint16 + Namlen uint16 + Type uint8 + Name [512]int8 + Pad_cgo_0 [3]byte +} + +type Fsid struct { + X__fsid_val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Pad_cgo_0 [4]byte + Iov *Iovec + Iovlen int32 + Pad_cgo_1 [4]byte + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x14 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter uint32 + Flags uint32 + Fflags uint32 + Pad_cgo_0 [4]byte + Data int64 + Udata int64 +} + +type FdSet struct { + Bits [8]uint32 +} + +const ( + SizeofIfMsghdr = 0x98 + SizeofIfData = 0x88 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x78 + SizeofRtMetrics = 0x50 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Pad_cgo_0 [2]byte + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Pad_cgo_0 [1]byte + Link_state int32 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Lastchange Timespec +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Metric int32 + Index uint16 + Pad_cgo_0 [6]byte +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Pad_cgo_0 [2]byte + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits int32 + Pad_cgo_1 [4]byte + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Expire int64 + Pksent int64 +} + +type Mclpool [0]byte + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x80 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint64 + Drop uint64 + Capt uint64 + Padding [13]uint64 +} + +type BpfProgram struct { + Len uint32 + Pad_cgo_0 [4]byte + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Pad_cgo_0 [6]byte +} + +type BpfTimeval struct { + Sec int64 + Usec int64 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type Ptmget struct { + Cfd int32 + Sfd int32 + Cn [1024]byte + Sn [1024]byte +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sysctlnode struct { + Flags uint32 + Num int32 + Name [32]int8 + Ver uint32 + X__rsvd uint32 + Un [16]byte + X_sysctl_size [8]byte + X_sysctl_func [8]byte + X_sysctl_parent [8]byte + X_sysctl_desc [8]byte +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x278 + +type Uvmexp struct { + Pagesize int64 + Pagemask int64 + Pageshift int64 + Npages int64 + Free int64 + Active int64 + Inactive int64 + Paging int64 + Wired int64 + Zeropages int64 + Reserve_pagedaemon int64 + Reserve_kernel int64 + Freemin int64 + Freetarg int64 + Inactarg int64 + Wiredmax int64 + Nswapdev int64 + Swpages int64 + Swpginuse int64 + Swpgonly int64 + Nswget int64 + Unused1 int64 + Cpuhit int64 + Cpumiss int64 + Faults int64 + Traps int64 + Intrs int64 + Swtch int64 + Softs int64 + Syscalls int64 + Pageins int64 + Swapins int64 + Swapouts int64 + Pgswapin int64 + Pgswapout int64 + Forks int64 + Forks_ppwait int64 + Forks_sharevm int64 + Pga_zerohit int64 + Pga_zeromiss int64 + Zeroaborts int64 + Fltnoram int64 + Fltnoanon int64 + Fltpgwait int64 + Fltpgrele int64 + Fltrelck int64 + Fltrelckok int64 + Fltanget int64 + Fltanretry int64 + Fltamcopy int64 + Fltnamap int64 + Fltnomap int64 + Fltlget int64 + Fltget int64 + Flt_anon int64 + Flt_acow int64 + Flt_obj int64 + Flt_prcopy int64 + Flt_przero int64 + Pdwoke int64 + Pdrevs int64 + Unused4 int64 + Pdfreed int64 + Pdscans int64 + Pdanscan int64 + Pdobscan int64 + Pdreact int64 + Pdbusy int64 + Pdpageouts int64 + Pdpending int64 + Pddeact int64 + Anonpages int64 + Filepages int64 + Execpages int64 + Colorhit int64 + Colormiss int64 + Ncolors int64 + Bootpages int64 + Poolpages int64 +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go new file mode 100644 index 0000000..db40e3a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go @@ -0,0 +1,591 @@ +// cgo -godefs types_netbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && netbsd +// +build arm,netbsd + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int32 + Pad_cgo_0 [4]byte +} + +type Timeval struct { + Sec int64 + Usec int32 + Pad_cgo_0 [4]byte +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev uint64 + Mode uint32 + _ [4]byte + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + _ [4]byte + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize uint32 + Flags uint32 + Gen uint32 + Spare [2]uint32 + _ [4]byte +} + +type Statfs_t [0]byte + +type Statvfs_t struct { + Flag uint32 + Bsize uint32 + Frsize uint32 + Iosize uint32 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint32 + Namemax uint32 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Reclen uint16 + Namlen uint16 + Type uint8 + Name [512]int8 + Pad_cgo_0 [3]byte +} + +type Fsid struct { + X__fsid_val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x14 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint32 + Filter uint32 + Flags uint32 + Fflags uint32 + Data int64 + Udata int32 + Pad_cgo_0 [4]byte +} + +type FdSet struct { + Bits [8]uint32 +} + +const ( + SizeofIfMsghdr = 0x98 + SizeofIfData = 0x88 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x78 + SizeofRtMetrics = 0x50 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Pad_cgo_0 [2]byte + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Pad_cgo_0 [1]byte + Link_state int32 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Lastchange Timespec +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Metric int32 + Index uint16 + Pad_cgo_0 [6]byte +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Pad_cgo_0 [2]byte + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits int32 + Pad_cgo_1 [4]byte + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Expire int64 + Pksent int64 +} + +type Mclpool [0]byte + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x80 + SizeofBpfProgram = 0x8 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x14 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint64 + Drop uint64 + Capt uint64 + Padding [13]uint64 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Pad_cgo_0 [2]byte +} + +type BpfTimeval struct { + Sec int32 + Usec int32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type Ptmget struct { + Cfd int32 + Sfd int32 + Cn [1024]byte + Sn [1024]byte +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sysctlnode struct { + Flags uint32 + Num int32 + Name [32]int8 + Ver uint32 + X__rsvd uint32 + Un [16]byte + X_sysctl_size [8]byte + X_sysctl_func [8]byte + X_sysctl_parent [8]byte + X_sysctl_desc [8]byte +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x278 + +type Uvmexp struct { + Pagesize int64 + Pagemask int64 + Pageshift int64 + Npages int64 + Free int64 + Active int64 + Inactive int64 + Paging int64 + Wired int64 + Zeropages int64 + Reserve_pagedaemon int64 + Reserve_kernel int64 + Freemin int64 + Freetarg int64 + Inactarg int64 + Wiredmax int64 + Nswapdev int64 + Swpages int64 + Swpginuse int64 + Swpgonly int64 + Nswget int64 + Unused1 int64 + Cpuhit int64 + Cpumiss int64 + Faults int64 + Traps int64 + Intrs int64 + Swtch int64 + Softs int64 + Syscalls int64 + Pageins int64 + Swapins int64 + Swapouts int64 + Pgswapin int64 + Pgswapout int64 + Forks int64 + Forks_ppwait int64 + Forks_sharevm int64 + Pga_zerohit int64 + Pga_zeromiss int64 + Zeroaborts int64 + Fltnoram int64 + Fltnoanon int64 + Fltpgwait int64 + Fltpgrele int64 + Fltrelck int64 + Fltrelckok int64 + Fltanget int64 + Fltanretry int64 + Fltamcopy int64 + Fltnamap int64 + Fltnomap int64 + Fltlget int64 + Fltget int64 + Flt_anon int64 + Flt_acow int64 + Flt_obj int64 + Flt_prcopy int64 + Flt_przero int64 + Pdwoke int64 + Pdrevs int64 + Unused4 int64 + Pdfreed int64 + Pdscans int64 + Pdanscan int64 + Pdobscan int64 + Pdreact int64 + Pdbusy int64 + Pdpageouts int64 + Pdpending int64 + Pddeact int64 + Anonpages int64 + Filepages int64 + Execpages int64 + Colorhit int64 + Colormiss int64 + Ncolors int64 + Bootpages int64 + Poolpages int64 +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go new file mode 100644 index 0000000..1112115 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go @@ -0,0 +1,594 @@ +// cgo -godefs types_netbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && netbsd +// +build arm64,netbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int32 + Pad_cgo_0 [4]byte +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev uint64 + Mode uint32 + _ [4]byte + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + _ [4]byte + Rdev uint64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Btim Timespec + Size int64 + Blocks int64 + Blksize uint32 + Flags uint32 + Gen uint32 + Spare [2]uint32 + _ [4]byte +} + +type Statfs_t [0]byte + +type Statvfs_t struct { + Flag uint64 + Bsize uint64 + Frsize uint64 + Iosize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Bresvd uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fresvd uint64 + Syncreads uint64 + Syncwrites uint64 + Asyncreads uint64 + Asyncwrites uint64 + Fsidx Fsid + Fsid uint64 + Namemax uint64 + Owner uint32 + Spare [4]uint32 + Fstypename [32]byte + Mntonname [1024]byte + Mntfromname [1024]byte + _ [4]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Reclen uint16 + Namlen uint16 + Type uint8 + Name [512]int8 + Pad_cgo_0 [3]byte +} + +type Fsid struct { + X__fsid_val [2]int32 +} + +const ( + PathMax = 0x400 +) + +const ( + ST_WAIT = 0x1 + ST_NOWAIT = 0x2 +) + +const ( + FADV_NORMAL = 0x0 + FADV_RANDOM = 0x1 + FADV_SEQUENTIAL = 0x2 + FADV_WILLNEED = 0x3 + FADV_DONTNEED = 0x4 + FADV_NOREUSE = 0x5 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [12]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Pad_cgo_0 [4]byte + Iov *Iovec + Iovlen int32 + Pad_cgo_1 [4]byte + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x14 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter uint32 + Flags uint32 + Fflags uint32 + Pad_cgo_0 [4]byte + Data int64 + Udata int64 +} + +type FdSet struct { + Bits [8]uint32 +} + +const ( + SizeofIfMsghdr = 0x98 + SizeofIfData = 0x88 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x18 + SizeofRtMsghdr = 0x78 + SizeofRtMetrics = 0x50 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Pad_cgo_0 [2]byte + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Pad_cgo_0 [1]byte + Link_state int32 + Mtu uint64 + Metric uint64 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Noproto uint64 + Lastchange Timespec +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Metric int32 + Index uint16 + Pad_cgo_0 [6]byte +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Name [16]int8 + What uint16 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Pad_cgo_0 [2]byte + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits int32 + Pad_cgo_1 [4]byte + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint64 + Mtu uint64 + Hopcount uint64 + Recvpipe uint64 + Sendpipe uint64 + Ssthresh uint64 + Rtt uint64 + Rttvar uint64 + Expire int64 + Pksent int64 +} + +type Mclpool [0]byte + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x80 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x20 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint64 + Drop uint64 + Capt uint64 + Padding [13]uint64 +} + +type BpfProgram struct { + Len uint32 + Pad_cgo_0 [4]byte + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Pad_cgo_0 [6]byte +} + +type BpfTimeval struct { + Sec int64 + Usec int64 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type Ptmget struct { + Cfd int32 + Sfd int32 + Cn [1024]byte + Sn [1024]byte +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x100 + AT_SYMLINK_NOFOLLOW = 0x200 + AT_SYMLINK_FOLLOW = 0x400 + AT_REMOVEDIR = 0x800 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sysctlnode struct { + Flags uint32 + Num int32 + Name [32]int8 + Ver uint32 + X__rsvd uint32 + Un [16]byte + X_sysctl_size [8]byte + X_sysctl_func [8]byte + X_sysctl_parent [8]byte + X_sysctl_desc [8]byte +} + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x278 + +type Uvmexp struct { + Pagesize int64 + Pagemask int64 + Pageshift int64 + Npages int64 + Free int64 + Active int64 + Inactive int64 + Paging int64 + Wired int64 + Zeropages int64 + Reserve_pagedaemon int64 + Reserve_kernel int64 + Freemin int64 + Freetarg int64 + Inactarg int64 + Wiredmax int64 + Nswapdev int64 + Swpages int64 + Swpginuse int64 + Swpgonly int64 + Nswget int64 + Unused1 int64 + Cpuhit int64 + Cpumiss int64 + Faults int64 + Traps int64 + Intrs int64 + Swtch int64 + Softs int64 + Syscalls int64 + Pageins int64 + Swapins int64 + Swapouts int64 + Pgswapin int64 + Pgswapout int64 + Forks int64 + Forks_ppwait int64 + Forks_sharevm int64 + Pga_zerohit int64 + Pga_zeromiss int64 + Zeroaborts int64 + Fltnoram int64 + Fltnoanon int64 + Fltpgwait int64 + Fltpgrele int64 + Fltrelck int64 + Fltrelckok int64 + Fltanget int64 + Fltanretry int64 + Fltamcopy int64 + Fltnamap int64 + Fltnomap int64 + Fltlget int64 + Fltget int64 + Flt_anon int64 + Flt_acow int64 + Flt_obj int64 + Flt_prcopy int64 + Flt_przero int64 + Pdwoke int64 + Pdrevs int64 + Unused4 int64 + Pdfreed int64 + Pdscans int64 + Pdanscan int64 + Pdobscan int64 + Pdreact int64 + Pdbusy int64 + Pdpageouts int64 + Pdpending int64 + Pddeact int64 + Anonpages int64 + Filepages int64 + Execpages int64 + Colorhit int64 + Colormiss int64 + Ncolors int64 + Bootpages int64 + Poolpages int64 +} + +const SizeofClockinfo = 0x14 + +type Clockinfo struct { + Hz int32 + Tick int32 + Tickadj int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go new file mode 100644 index 0000000..26eba23 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go @@ -0,0 +1,569 @@ +// cgo -godefs types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build 386 && openbsd +// +build 386,openbsd + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int32 +} + +type Timeval struct { + Sec int64 + Usec int32 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint32 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa0 + SizeofIfData = 0x88 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x8 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go new file mode 100644 index 0000000..5a54798 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go @@ -0,0 +1,569 @@ +// cgo -godefs types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && openbsd +// +build amd64,openbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa8 + SizeofIfData = 0x90 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go new file mode 100644 index 0000000..be58c4e --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go @@ -0,0 +1,576 @@ +// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm && openbsd +// +build arm,openbsd + +package unix + +const ( + SizeofPtr = 0x4 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x4 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int32 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int32 + _ [4]byte +} + +type Timeval struct { + Sec int64 + Usec int32 + _ [4]byte +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int32 + Ixrss int32 + Idrss int32 + Isrss int32 + Minflt int32 + Majflt int32 + Nswap int32 + Inblock int32 + Oublock int32 + Msgsnd int32 + Msgrcv int32 + Nsignals int32 + Nvcsw int32 + Nivcsw int32 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ [4]byte + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + _ [4]byte + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint32 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x8 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x1c + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint32 + Filter int16 + Flags uint16 + Fflags uint32 + _ [4]byte + Data int64 + Udata *byte + _ [4]byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa8 + SizeofIfData = 0x90 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + _ [4]byte + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x8 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go new file mode 100644 index 0000000..5233826 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go @@ -0,0 +1,569 @@ +// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build arm64 && openbsd +// +build arm64,openbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa8 + SizeofIfData = 0x90 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go new file mode 100644 index 0000000..605cfdb --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go @@ -0,0 +1,569 @@ +// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build mips64 && openbsd +// +build mips64,openbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa8 + SizeofIfData = 0x90 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go new file mode 100644 index 0000000..d6724c0 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go @@ -0,0 +1,571 @@ +// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build ppc64 && openbsd +// +build ppc64,openbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa8 + SizeofIfData = 0x90 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +type Mclpool struct{} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go new file mode 100644 index 0000000..ddfd27a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go @@ -0,0 +1,571 @@ +// cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build riscv64 && openbsd +// +build riscv64,openbsd + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Mode uint32 + Dev int32 + Ino uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev int32 + Atim Timespec + Mtim Timespec + Ctim Timespec + Size int64 + Blocks int64 + Blksize int32 + Flags uint32 + Gen uint32 + _ Timespec +} + +type Statfs_t struct { + F_flags uint32 + F_bsize uint32 + F_iosize uint32 + F_blocks uint64 + F_bfree uint64 + F_bavail int64 + F_files uint64 + F_ffree uint64 + F_favail int64 + F_syncwrites uint64 + F_syncreads uint64 + F_asyncwrites uint64 + F_asyncreads uint64 + F_fsid Fsid + F_namemax uint32 + F_owner uint32 + F_ctime uint64 + F_fstypename [16]byte + F_mntonname [90]byte + F_mntfromname [90]byte + F_mntfromspec [90]byte + _ [2]byte + Mount_info [160]byte +} + +type Flock_t struct { + Start int64 + Len int64 + Pid int32 + Type int16 + Whence int16 +} + +type Dirent struct { + Fileno uint64 + Off int64 + Reclen uint16 + Type uint8 + Namlen uint8 + _ [4]uint8 + Name [256]int8 +} + +type Fsid struct { + Val [2]int32 +} + +const ( + PathMax = 0x400 +) + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [104]int8 +} + +type RawSockaddrDatalink struct { + Len uint8 + Family uint8 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [24]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [92]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen uint32 + Control *byte + Controllen uint32 + Flags int32 +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x1c + SizeofSockaddrAny = 0x6c + SizeofSockaddrUnix = 0x6a + SizeofSockaddrDatalink = 0x20 + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x20 + SizeofICMPv6Filter = 0x20 +) + +const ( + PTRACE_TRACEME = 0x0 + PTRACE_CONT = 0x7 + PTRACE_KILL = 0x8 +) + +type Kevent_t struct { + Ident uint64 + Filter int16 + Flags uint16 + Fflags uint32 + Data int64 + Udata *byte +} + +type FdSet struct { + Bits [32]uint32 +} + +const ( + SizeofIfMsghdr = 0xa8 + SizeofIfData = 0x90 + SizeofIfaMsghdr = 0x18 + SizeofIfAnnounceMsghdr = 0x1a + SizeofRtMsghdr = 0x60 + SizeofRtMetrics = 0x38 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Xflags int32 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Link_state uint8 + Mtu uint32 + Metric uint32 + Rdomain uint32 + Baudrate uint64 + Ipackets uint64 + Ierrors uint64 + Opackets uint64 + Oerrors uint64 + Collisions uint64 + Ibytes uint64 + Obytes uint64 + Imcasts uint64 + Omcasts uint64 + Iqdrops uint64 + Oqdrops uint64 + Noproto uint64 + Capabilities uint32 + Lastchange Timeval +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Pad1 uint8 + Pad2 uint8 + Addrs int32 + Flags int32 + Metric int32 +} + +type IfAnnounceMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + What uint16 + Name [16]int8 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Hdrlen uint16 + Index uint16 + Tableid uint16 + Priority uint8 + Mpls uint8 + Addrs int32 + Flags int32 + Fmask int32 + Pid int32 + Seq int32 + Errno int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Pksent uint64 + Expire int64 + Locks uint32 + Mtu uint32 + Refcnt uint32 + Hopcount uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pad uint32 +} + +type Mclpool struct{} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x8 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x18 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint32 + Drop uint32 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + Ifidx uint16 + Flowid uint16 + Flags uint8 + Drops uint8 +} + +type BpfTimeval struct { + Sec uint32 + Usec uint32 +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed int32 + Ospeed int32 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +const ( + AT_FDCWD = -0x64 + AT_EACCESS = 0x1 + AT_SYMLINK_NOFOLLOW = 0x2 + AT_SYMLINK_FOLLOW = 0x4 + AT_REMOVEDIR = 0x8 +) + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type Sigset_t uint32 + +type Utsname struct { + Sysname [256]byte + Nodename [256]byte + Release [256]byte + Version [256]byte + Machine [256]byte +} + +const SizeofUvmexp = 0x158 + +type Uvmexp struct { + Pagesize int32 + Pagemask int32 + Pageshift int32 + Npages int32 + Free int32 + Active int32 + Inactive int32 + Paging int32 + Wired int32 + Zeropages int32 + Reserve_pagedaemon int32 + Reserve_kernel int32 + Unused01 int32 + Vnodepages int32 + Vtextpages int32 + Freemin int32 + Freetarg int32 + Inactarg int32 + Wiredmax int32 + Anonmin int32 + Vtextmin int32 + Vnodemin int32 + Anonminpct int32 + Vtextminpct int32 + Vnodeminpct int32 + Nswapdev int32 + Swpages int32 + Swpginuse int32 + Swpgonly int32 + Nswget int32 + Nanon int32 + Unused05 int32 + Unused06 int32 + Faults int32 + Traps int32 + Intrs int32 + Swtch int32 + Softs int32 + Syscalls int32 + Pageins int32 + Unused07 int32 + Unused08 int32 + Pgswapin int32 + Pgswapout int32 + Forks int32 + Forks_ppwait int32 + Forks_sharevm int32 + Pga_zerohit int32 + Pga_zeromiss int32 + Unused09 int32 + Fltnoram int32 + Fltnoanon int32 + Fltnoamap int32 + Fltpgwait int32 + Fltpgrele int32 + Fltrelck int32 + Fltrelckok int32 + Fltanget int32 + Fltanretry int32 + Fltamcopy int32 + Fltnamap int32 + Fltnomap int32 + Fltlget int32 + Fltget int32 + Flt_anon int32 + Flt_acow int32 + Flt_obj int32 + Flt_prcopy int32 + Flt_przero int32 + Pdwoke int32 + Pdrevs int32 + Pdswout int32 + Pdfreed int32 + Pdscans int32 + Pdanscan int32 + Pdobscan int32 + Pdreact int32 + Pdbusy int32 + Pdpageouts int32 + Pdpending int32 + Pddeact int32 + Unused11 int32 + Unused12 int32 + Unused13 int32 + Fpswtch int32 + Kmapent int32 +} + +const SizeofClockinfo = 0x10 + +type Clockinfo struct { + Hz int32 + Tick int32 + Stathz int32 + Profhz int32 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go new file mode 100644 index 0000000..0400747 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go @@ -0,0 +1,517 @@ +// cgo -godefs types_solaris.go | go run mkpost.go +// Code generated by the command above; see README.md. DO NOT EDIT. + +//go:build amd64 && solaris +// +build amd64,solaris + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 + PathMax = 0x400 + MaxHostNameLen = 0x100 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type Timeval32 struct { + Sec int32 + Usec int32 +} + +type Tms struct { + Utime int64 + Stime int64 + Cutime int64 + Cstime int64 +} + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +type _Gid_t uint32 + +type Stat_t struct { + Dev uint64 + Ino uint64 + Mode uint32 + Nlink uint32 + Uid uint32 + Gid uint32 + Rdev uint64 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int32 + Blocks int64 + Fstype [16]int8 +} + +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Sysid int32 + Pid int32 + Pad [4]int64 +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Name [1]int8 + _ [5]byte +} + +type _Fsblkcnt_t uint64 + +type Statvfs_t struct { + Bsize uint64 + Frsize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint64 + Ffree uint64 + Favail uint64 + Fsid uint64 + Basetype [16]int8 + Flag uint64 + Namemax uint64 + Fstr [32]int8 +} + +type RawSockaddrInet4 struct { + Family uint16 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]int8 +} + +type RawSockaddrInet6 struct { + Family uint16 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 + _ uint32 +} + +type RawSockaddrUnix struct { + Family uint16 + Path [108]int8 +} + +type RawSockaddrDatalink struct { + Family uint16 + Index uint16 + Type uint8 + Nlen uint8 + Alen uint8 + Slen uint8 + Data [244]int8 +} + +type RawSockaddr struct { + Family uint16 + Data [14]int8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + Pad [236]int8 +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Namelen uint32 + Iov *Iovec + Iovlen int32 + Accrights *int8 + Accrightslen int32 + _ [4]byte +} + +type Cmsghdr struct { + Len uint32 + Level int32 + Type int32 +} + +type Inet4Pktinfo struct { + Ifindex uint32 + Spec_dst [4]byte /* in_addr */ + Addr [4]byte /* in_addr */ +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Filt [8]uint32 +} + +const ( + SizeofSockaddrInet4 = 0x10 + SizeofSockaddrInet6 = 0x20 + SizeofSockaddrAny = 0xfc + SizeofSockaddrUnix = 0x6e + SizeofSockaddrDatalink = 0xfc + SizeofLinger = 0x8 + SizeofIovec = 0x10 + SizeofIPMreq = 0x8 + SizeofIPv6Mreq = 0x14 + SizeofMsghdr = 0x30 + SizeofCmsghdr = 0xc + SizeofInet4Pktinfo = 0xc + SizeofInet6Pktinfo = 0x14 + SizeofIPv6MTUInfo = 0x24 + SizeofICMPv6Filter = 0x20 +) + +type FdSet struct { + Bits [1024]int64 +} + +type Utsname struct { + Sysname [257]byte + Nodename [257]byte + Release [257]byte + Version [257]byte + Machine [257]byte +} + +type Ustat_t struct { + Tfree int64 + Tinode uint64 + Fname [6]int8 + Fpack [6]int8 + _ [4]byte +} + +const ( + AT_FDCWD = 0xffd19553 + AT_SYMLINK_NOFOLLOW = 0x1000 + AT_SYMLINK_FOLLOW = 0x2000 + AT_REMOVEDIR = 0x1 + AT_EACCESS = 0x4 +) + +const ( + SizeofIfMsghdr = 0x54 + SizeofIfData = 0x44 + SizeofIfaMsghdr = 0x14 + SizeofRtMsghdr = 0x4c + SizeofRtMetrics = 0x28 +) + +type IfMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Data IfData +} + +type IfData struct { + Type uint8 + Addrlen uint8 + Hdrlen uint8 + Mtu uint32 + Metric uint32 + Baudrate uint32 + Ipackets uint32 + Ierrors uint32 + Opackets uint32 + Oerrors uint32 + Collisions uint32 + Ibytes uint32 + Obytes uint32 + Imcasts uint32 + Omcasts uint32 + Iqdrops uint32 + Noproto uint32 + Lastchange Timeval32 +} + +type IfaMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Addrs int32 + Flags int32 + Index uint16 + Metric int32 +} + +type RtMsghdr struct { + Msglen uint16 + Version uint8 + Type uint8 + Index uint16 + Flags int32 + Addrs int32 + Pid int32 + Seq int32 + Errno int32 + Use int32 + Inits uint32 + Rmx RtMetrics +} + +type RtMetrics struct { + Locks uint32 + Mtu uint32 + Hopcount uint32 + Expire uint32 + Recvpipe uint32 + Sendpipe uint32 + Ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Pksent uint32 +} + +const ( + SizeofBpfVersion = 0x4 + SizeofBpfStat = 0x80 + SizeofBpfProgram = 0x10 + SizeofBpfInsn = 0x8 + SizeofBpfHdr = 0x14 +) + +type BpfVersion struct { + Major uint16 + Minor uint16 +} + +type BpfStat struct { + Recv uint64 + Drop uint64 + Capt uint64 + _ [13]uint64 +} + +type BpfProgram struct { + Len uint32 + Insns *BpfInsn +} + +type BpfInsn struct { + Code uint16 + Jt uint8 + Jf uint8 + K uint32 +} + +type BpfTimeval struct { + Sec int32 + Usec int32 +} + +type BpfHdr struct { + Tstamp BpfTimeval + Caplen uint32 + Datalen uint32 + Hdrlen uint16 + _ [2]byte +} + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [19]uint8 + _ [1]byte +} + +type Termio struct { + Iflag uint16 + Oflag uint16 + Cflag uint16 + Lflag uint16 + Line int8 + Cc [8]uint8 + _ [1]byte +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +const ( + POLLERR = 0x8 + POLLHUP = 0x10 + POLLIN = 0x1 + POLLNVAL = 0x20 + POLLOUT = 0x4 + POLLPRI = 0x2 + POLLRDBAND = 0x80 + POLLRDNORM = 0x40 + POLLWRBAND = 0x100 + POLLWRNORM = 0x4 +) + +type fileObj struct { + Atim Timespec + Mtim Timespec + Ctim Timespec + Pad [3]uint64 + Name *int8 +} + +type portEvent struct { + Events int32 + Source uint16 + Pad uint16 + Object uint64 + User *byte +} + +const ( + PORT_SOURCE_AIO = 0x1 + PORT_SOURCE_TIMER = 0x2 + PORT_SOURCE_USER = 0x3 + PORT_SOURCE_FD = 0x4 + PORT_SOURCE_ALERT = 0x5 + PORT_SOURCE_MQ = 0x6 + PORT_SOURCE_FILE = 0x7 + PORT_ALERT_SET = 0x1 + PORT_ALERT_UPDATE = 0x2 + PORT_ALERT_INVALID = 0x3 + FILE_ACCESS = 0x1 + FILE_MODIFIED = 0x2 + FILE_ATTRIB = 0x4 + FILE_TRUNC = 0x100000 + FILE_NOFOLLOW = 0x10000000 + FILE_DELETE = 0x10 + FILE_RENAME_TO = 0x20 + FILE_RENAME_FROM = 0x40 + UNMOUNTED = 0x20000000 + MOUNTEDOVER = 0x40000000 + FILE_EXCEPTION = 0x60000070 +) + +const ( + TUNNEWPPA = 0x540001 + TUNSETPPA = 0x540002 + + I_STR = 0x5308 + I_POP = 0x5303 + I_PUSH = 0x5302 + I_LINK = 0x530c + I_UNLINK = 0x530d + I_PLINK = 0x5316 + I_PUNLINK = 0x5317 + + IF_UNITSEL = -0x7ffb8cca +) + +type strbuf struct { + Maxlen int32 + Len int32 + Buf *int8 +} + +type Strioctl struct { + Cmd int32 + Timout int32 + Len int32 + Dp *int8 +} + +type Lifreq struct { + Name [32]int8 + Lifru1 [4]byte + Type uint32 + Lifru [336]byte +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go new file mode 100644 index 0000000..aec1efc --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go @@ -0,0 +1,415 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build zos && s390x +// +build zos,s390x + +// Hand edited based on ztypes_linux_s390x.go +// TODO: auto-generate. + +package unix + +const ( + SizeofPtr = 0x8 + SizeofShort = 0x2 + SizeofInt = 0x4 + SizeofLong = 0x8 + SizeofLongLong = 0x8 + PathMax = 0x1000 +) + +const ( + SizeofSockaddrAny = 128 + SizeofCmsghdr = 12 + SizeofIPMreq = 8 + SizeofIPv6Mreq = 20 + SizeofICMPv6Filter = 32 + SizeofIPv6MTUInfo = 32 + SizeofLinger = 8 + SizeofSockaddrInet4 = 16 + SizeofSockaddrInet6 = 28 + SizeofTCPInfo = 0x68 +) + +type ( + _C_short int16 + _C_int int32 + _C_long int64 + _C_long_long int64 +) + +type Timespec struct { + Sec int64 + Nsec int64 +} + +type Timeval struct { + Sec int64 + Usec int64 +} + +type timeval_zos struct { //correct (with padding and all) + Sec int64 + _ [4]byte // pad + Usec int32 +} + +type Tms struct { //clock_t is 4-byte unsigned int in zos + Utime uint32 + Stime uint32 + Cutime uint32 + Cstime uint32 +} + +type Time_t int64 + +type Utimbuf struct { + Actime int64 + Modtime int64 +} + +type Utsname struct { + Sysname [65]byte + Nodename [65]byte + Release [65]byte + Version [65]byte + Machine [65]byte + Domainname [65]byte +} + +type RawSockaddrInet4 struct { + Len uint8 + Family uint8 + Port uint16 + Addr [4]byte /* in_addr */ + Zero [8]uint8 +} + +type RawSockaddrInet6 struct { + Len uint8 + Family uint8 + Port uint16 + Flowinfo uint32 + Addr [16]byte /* in6_addr */ + Scope_id uint32 +} + +type RawSockaddrUnix struct { + Len uint8 + Family uint8 + Path [108]int8 +} + +type RawSockaddr struct { + Len uint8 + Family uint8 + Data [14]uint8 +} + +type RawSockaddrAny struct { + Addr RawSockaddr + _ [112]uint8 // pad +} + +type _Socklen uint32 + +type Linger struct { + Onoff int32 + Linger int32 +} + +type Iovec struct { + Base *byte + Len uint64 +} + +type IPMreq struct { + Multiaddr [4]byte /* in_addr */ + Interface [4]byte /* in_addr */ +} + +type IPv6Mreq struct { + Multiaddr [16]byte /* in6_addr */ + Interface uint32 +} + +type Msghdr struct { + Name *byte + Iov *Iovec + Control *byte + Flags int32 + Namelen int32 + Iovlen int32 + Controllen int32 +} + +type Cmsghdr struct { + Len int32 + Level int32 + Type int32 +} + +type Inet4Pktinfo struct { + Addr [4]byte /* in_addr */ + Ifindex uint32 +} + +type Inet6Pktinfo struct { + Addr [16]byte /* in6_addr */ + Ifindex uint32 +} + +type IPv6MTUInfo struct { + Addr RawSockaddrInet6 + Mtu uint32 +} + +type ICMPv6Filter struct { + Data [8]uint32 +} + +type TCPInfo struct { + State uint8 + Ca_state uint8 + Retransmits uint8 + Probes uint8 + Backoff uint8 + Options uint8 + Rto uint32 + Ato uint32 + Snd_mss uint32 + Rcv_mss uint32 + Unacked uint32 + Sacked uint32 + Lost uint32 + Retrans uint32 + Fackets uint32 + Last_data_sent uint32 + Last_ack_sent uint32 + Last_data_recv uint32 + Last_ack_recv uint32 + Pmtu uint32 + Rcv_ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Advmss uint32 + Reordering uint32 + Rcv_rtt uint32 + Rcv_space uint32 + Total_retrans uint32 +} + +type _Gid_t uint32 + +type rusage_zos struct { + Utime timeval_zos + Stime timeval_zos +} + +type Rusage struct { + Utime Timeval + Stime Timeval + Maxrss int64 + Ixrss int64 + Idrss int64 + Isrss int64 + Minflt int64 + Majflt int64 + Nswap int64 + Inblock int64 + Oublock int64 + Msgsnd int64 + Msgrcv int64 + Nsignals int64 + Nvcsw int64 + Nivcsw int64 +} + +type Rlimit struct { + Cur uint64 + Max uint64 +} + +// { int, short, short } in poll.h +type PollFd struct { + Fd int32 + Events int16 + Revents int16 +} + +type Stat_t struct { //Linux Definition + Dev uint64 + Ino uint64 + Nlink uint64 + Mode uint32 + Uid uint32 + Gid uint32 + _ int32 + Rdev uint64 + Size int64 + Atim Timespec + Mtim Timespec + Ctim Timespec + Blksize int64 + Blocks int64 + _ [3]int64 +} + +type Stat_LE_t struct { + _ [4]byte // eye catcher + Length uint16 + Version uint16 + Mode int32 + Ino uint32 + Dev uint32 + Nlink int32 + Uid int32 + Gid int32 + Size int64 + Atim31 [4]byte + Mtim31 [4]byte + Ctim31 [4]byte + Rdev uint32 + Auditoraudit uint32 + Useraudit uint32 + Blksize int32 + Creatim31 [4]byte + AuditID [16]byte + _ [4]byte // rsrvd1 + File_tag struct { + Ccsid uint16 + Txtflag uint16 // aggregating Txflag:1 deferred:1 rsvflags:14 + } + CharsetID [8]byte + Blocks int64 + Genvalue uint32 + Reftim31 [4]byte + Fid [8]byte + Filefmt byte + Fspflag2 byte + _ [2]byte // rsrvd2 + Ctimemsec int32 + Seclabel [8]byte + _ [4]byte // rsrvd3 + _ [4]byte // rsrvd4 + Atim Time_t + Mtim Time_t + Ctim Time_t + Creatim Time_t + Reftim Time_t + _ [24]byte // rsrvd5 +} + +type Statvfs_t struct { + ID [4]byte + Len int32 + Bsize uint64 + Blocks uint64 + Usedspace uint64 + Bavail uint64 + Flag uint64 + Maxfilesize int64 + _ [16]byte + Frsize uint64 + Bfree uint64 + Files uint32 + Ffree uint32 + Favail uint32 + Namemax31 uint32 + Invarsec uint32 + _ [4]byte + Fsid uint64 + Namemax uint64 +} + +type Statfs_t struct { + Type uint32 + Bsize uint64 + Blocks uint64 + Bfree uint64 + Bavail uint64 + Files uint32 + Ffree uint32 + Fsid uint64 + Namelen uint64 + Frsize uint64 + Flags uint64 +} + +type direntLE struct { + Reclen uint16 + Namlen uint16 + Ino uint32 + Extra uintptr + Name [256]byte +} + +type Dirent struct { + Ino uint64 + Off int64 + Reclen uint16 + Type uint8 + Name [256]uint8 + _ [5]byte +} + +type FdSet struct { + Bits [64]int32 +} + +// This struct is packed on z/OS so it can't be used directly. +type Flock_t struct { + Type int16 + Whence int16 + Start int64 + Len int64 + Pid int32 +} + +type Termios struct { + Cflag uint32 + Iflag uint32 + Lflag uint32 + Oflag uint32 + Cc [11]uint8 +} + +type Winsize struct { + Row uint16 + Col uint16 + Xpixel uint16 + Ypixel uint16 +} + +type W_Mnth struct { + Hid [4]byte + Size int32 + Cur1 int32 //32bit pointer + Cur2 int32 //^ + Devno uint32 + _ [4]byte +} + +type W_Mntent struct { + Fstype uint32 + Mode uint32 + Dev uint32 + Parentdev uint32 + Rootino uint32 + Status byte + Ddname [9]byte + Fstname [9]byte + Fsname [45]byte + Pathlen uint32 + Mountpoint [1024]byte + Jobname [8]byte + PID int32 + Parmoffset int32 + Parmlen int16 + Owner [8]byte + Quiesceowner [8]byte + _ [38]byte +} diff --git a/vendor/golang.org/x/text/AUTHORS b/vendor/golang.org/x/text/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/text/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/text/CONTRIBUTORS b/vendor/golang.org/x/text/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/text/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/text/unicode/bidi/core.go b/vendor/golang.org/x/text/unicode/bidi/core.go index e4c0811..9d2ae54 100644 --- a/vendor/golang.org/x/text/unicode/bidi/core.go +++ b/vendor/golang.org/x/text/unicode/bidi/core.go @@ -193,14 +193,14 @@ func (p *paragraph) run() { // // At the end of this function: // -// - The member variable matchingPDI is set to point to the index of the -// matching PDI character for each isolate initiator character. If there is -// no matching PDI, it is set to the length of the input text. For other -// characters, it is set to -1. -// - The member variable matchingIsolateInitiator is set to point to the -// index of the matching isolate initiator character for each PDI character. -// If there is no matching isolate initiator, or the character is not a PDI, -// it is set to -1. +// - The member variable matchingPDI is set to point to the index of the +// matching PDI character for each isolate initiator character. If there is +// no matching PDI, it is set to the length of the input text. For other +// characters, it is set to -1. +// - The member variable matchingIsolateInitiator is set to point to the +// index of the matching isolate initiator character for each PDI character. +// If there is no matching isolate initiator, or the character is not a PDI, +// it is set to -1. func (p *paragraph) determineMatchingIsolates() { p.matchingPDI = make([]int, p.Len()) p.matchingIsolateInitiator = make([]int, p.Len()) @@ -435,7 +435,7 @@ func maxLevel(a, b level) level { } // Rule X10, second bullet: Determine the start-of-sequence (sos) and end-of-sequence (eos) types, -// either L or R, for each isolating run sequence. +// either L or R, for each isolating run sequence. func (p *paragraph) isolatingRunSequence(indexes []int) *isolatingRunSequence { length := len(indexes) types := make([]Class, length) @@ -495,9 +495,9 @@ func (s *isolatingRunSequence) resolveWeakTypes() { if t == NSM { s.types[i] = precedingCharacterType } else { - if t.in(LRI, RLI, FSI, PDI) { - precedingCharacterType = ON - } + // if t.in(LRI, RLI, FSI, PDI) { + // precedingCharacterType = ON + // } precedingCharacterType = t } } @@ -905,7 +905,7 @@ func (p *paragraph) getLevels(linebreaks []int) []level { // Lines are concatenated from left to right. So for example, the fifth // character from the left on the third line is // -// getReordering(linebreaks)[linebreaks[1] + 4] +// getReordering(linebreaks)[linebreaks[1] + 4] // // (linebreaks[1] is the position after the last character of the second // line, which is also the index of the first character on the third line, diff --git a/vendor/golang.org/x/text/unicode/bidi/trieval.go b/vendor/golang.org/x/text/unicode/bidi/trieval.go index 4c459c4..6a796e2 100644 --- a/vendor/golang.org/x/text/unicode/bidi/trieval.go +++ b/vendor/golang.org/x/text/unicode/bidi/trieval.go @@ -37,18 +37,6 @@ const ( unknownClass = ^Class(0) ) -var controlToClass = map[rune]Class{ - 0x202D: LRO, // LeftToRightOverride, - 0x202E: RLO, // RightToLeftOverride, - 0x202A: LRE, // LeftToRightEmbedding, - 0x202B: RLE, // RightToLeftEmbedding, - 0x202C: PDF, // PopDirectionalFormat, - 0x2066: LRI, // LeftToRightIsolate, - 0x2067: RLI, // RightToLeftIsolate, - 0x2068: FSI, // FirstStrongIsolate, - 0x2069: PDI, // PopDirectionalIsolate, -} - // A trie entry has the following bits: // 7..5 XOR mask for brackets // 4 1: Bracket open, 0: Bracket close diff --git a/vendor/golang.org/x/text/unicode/norm/forminfo.go b/vendor/golang.org/x/text/unicode/norm/forminfo.go index 526c703..d69ccb4 100644 --- a/vendor/golang.org/x/text/unicode/norm/forminfo.go +++ b/vendor/golang.org/x/text/unicode/norm/forminfo.go @@ -110,10 +110,11 @@ func (p Properties) BoundaryAfter() bool { } // We pack quick check data in 4 bits: -// 5: Combines forward (0 == false, 1 == true) -// 4..3: NFC_QC Yes(00), No (10), or Maybe (11) -// 2: NFD_QC Yes (0) or No (1). No also means there is a decomposition. -// 1..0: Number of trailing non-starters. +// +// 5: Combines forward (0 == false, 1 == true) +// 4..3: NFC_QC Yes(00), No (10), or Maybe (11) +// 2: NFD_QC Yes (0) or No (1). No also means there is a decomposition. +// 1..0: Number of trailing non-starters. // // When all 4 bits are zero, the character is inert, meaning it is never // influenced by normalization. diff --git a/vendor/golang.org/x/text/unicode/norm/normalize.go b/vendor/golang.org/x/text/unicode/norm/normalize.go index 95efcf2..4747ad0 100644 --- a/vendor/golang.org/x/text/unicode/norm/normalize.go +++ b/vendor/golang.org/x/text/unicode/norm/normalize.go @@ -18,16 +18,17 @@ import ( // A Form denotes a canonical representation of Unicode code points. // The Unicode-defined normalization and equivalence forms are: // -// NFC Unicode Normalization Form C -// NFD Unicode Normalization Form D -// NFKC Unicode Normalization Form KC -// NFKD Unicode Normalization Form KD +// NFC Unicode Normalization Form C +// NFD Unicode Normalization Form D +// NFKC Unicode Normalization Form KC +// NFKD Unicode Normalization Form KD // // For a Form f, this documentation uses the notation f(x) to mean // the bytes or string x converted to the given form. // A position n in x is called a boundary if conversion to the form can // proceed independently on both sides: -// f(x) == append(f(x[0:n]), f(x[n:])...) +// +// f(x) == append(f(x[0:n]), f(x[n:])...) // // References: https://unicode.org/reports/tr15/ and // https://unicode.org/notes/tn5/. diff --git a/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go b/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go index 96a130d..9115ef2 100644 --- a/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +++ b/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go @@ -7315,7 +7315,7 @@ const recompMapPacked = "" + "\x00V\x03\x03\x00\x00\x1e|" + // 0x00560303: 0x00001E7C "\x00v\x03\x03\x00\x00\x1e}" + // 0x00760303: 0x00001E7D "\x00V\x03#\x00\x00\x1e~" + // 0x00560323: 0x00001E7E - "\x00v\x03#\x00\x00\x1e\u007f" + // 0x00760323: 0x00001E7F + "\x00v\x03#\x00\x00\x1e\x7f" + // 0x00760323: 0x00001E7F "\x00W\x03\x00\x00\x00\x1e\x80" + // 0x00570300: 0x00001E80 "\x00w\x03\x00\x00\x00\x1e\x81" + // 0x00770300: 0x00001E81 "\x00W\x03\x01\x00\x00\x1e\x82" + // 0x00570301: 0x00001E82 @@ -7342,7 +7342,7 @@ const recompMapPacked = "" + "\x00t\x03\b\x00\x00\x1e\x97" + // 0x00740308: 0x00001E97 "\x00w\x03\n\x00\x00\x1e\x98" + // 0x0077030A: 0x00001E98 "\x00y\x03\n\x00\x00\x1e\x99" + // 0x0079030A: 0x00001E99 - "\x01\u007f\x03\a\x00\x00\x1e\x9b" + // 0x017F0307: 0x00001E9B + "\x01\x7f\x03\a\x00\x00\x1e\x9b" + // 0x017F0307: 0x00001E9B "\x00A\x03#\x00\x00\x1e\xa0" + // 0x00410323: 0x00001EA0 "\x00a\x03#\x00\x00\x1e\xa1" + // 0x00610323: 0x00001EA1 "\x00A\x03\t\x00\x00\x1e\xa2" + // 0x00410309: 0x00001EA2 diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go index 8867ae7..a6b5081 100644 --- a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go @@ -1,143 +1,203 @@ +// Copyright 2022 Google LLC +// +// 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. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.9 // source: google/rpc/status.proto -/* -Package status is a generated protocol buffer package. +package status -It is generated from these files: - google/rpc/status.proto +import ( + reflect "reflect" + sync "sync" -It has these top-level messages: - Status -*/ -package status + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" +) -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import google_protobuf "github.com/golang/protobuf/ptypes/any" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -// The `Status` type defines a logical error model that is suitable for different -// programming environments, including REST APIs and RPC APIs. It is used by -// [gRPC](https://github.com/grpc). The error model is designed to be: -// -// - Simple to use and understand for most users -// - Flexible enough to meet unexpected needs -// -// # Overview -// -// The `Status` message contains three pieces of data: error code, error message, -// and error details. The error code should be an enum value of -// [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The -// error message should be a developer-facing English message that helps -// developers *understand* and *resolve* the error. If a localized user-facing -// error message is needed, put the localized message in the error details or -// localize it in the client. The optional error details may contain arbitrary -// information about the error. There is a predefined set of error detail types -// in the package `google.rpc` that can be used for common error conditions. -// -// # Language mapping -// -// The `Status` message is the logical representation of the error model, but it -// is not necessarily the actual wire format. When the `Status` message is -// exposed in different client libraries and different wire protocols, it can be -// mapped differently. For example, it will likely be mapped to some exceptions -// in Java, but more likely mapped to some error codes in C. -// -// # Other uses -// -// The error model and the `Status` message can be used in a variety of -// environments, either with or without APIs, to provide a -// consistent developer experience across different environments. -// -// Example uses of this error model include: -// -// - Partial errors. If a service needs to return partial errors to the client, -// it may embed the `Status` in the normal response to indicate the partial -// errors. -// -// - Workflow errors. A typical workflow has multiple steps. Each step may -// have a `Status` message for error reporting. -// -// - Batch operations. If a client uses batch request and batch response, the -// `Status` message should be used directly inside batch response, one for -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous operation -// results in its response, the status of those operations should be -// represented directly using the `Status` message. +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The `Status` type defines a logical error model that is suitable for +// different programming environments, including REST APIs and RPC APIs. It is +// used by [gRPC](https://github.com/grpc). Each `Status` message contains +// three pieces of data: error code, error message, and error details. // -// - Logging. If some API errors are stored in logs, the message `Status` could -// be used directly after any stripping needed for security/privacy reasons. +// You can find out more about this error model and how to work with it in the +// [API Design Guide](https://cloud.google.com/apis/design/errors). type Status struct { - // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. - Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The status code, which should be an enum value of + // [google.rpc.Code][google.rpc.Code]. + Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // A developer-facing error message, which should be in English. Any // user-facing error message should be localized and sent in the - // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. - Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` + // [google.rpc.Status.details][google.rpc.Status.details] field, or localized + // by the client. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A list of messages that carry the error details. There is a common set of // message types for APIs to use. - Details []*google_protobuf.Any `protobuf:"bytes,3,rep,name=details" json:"details,omitempty"` + Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` } -func (m *Status) Reset() { *m = Status{} } -func (m *Status) String() string { return proto.CompactTextString(m) } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *Status) Reset() { + *x = Status{} + if protoimpl.UnsafeEnabled { + mi := &file_google_rpc_status_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Status) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Status) ProtoMessage() {} + +func (x *Status) ProtoReflect() protoreflect.Message { + mi := &file_google_rpc_status_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Status.ProtoReflect.Descriptor instead. +func (*Status) Descriptor() ([]byte, []int) { + return file_google_rpc_status_proto_rawDescGZIP(), []int{0} +} -func (m *Status) GetCode() int32 { - if m != nil { - return m.Code +func (x *Status) GetCode() int32 { + if x != nil { + return x.Code } return 0 } -func (m *Status) GetMessage() string { - if m != nil { - return m.Message +func (x *Status) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *Status) GetDetails() []*google_protobuf.Any { - if m != nil { - return m.Details +func (x *Status) GetDetails() []*anypb.Any { + if x != nil { + return x.Details } return nil } -func init() { - proto.RegisterType((*Status)(nil), "google.rpc.Status") +var File_google_rpc_status_proto protoreflect.FileDescriptor + +var file_google_rpc_status_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x72, 0x70, 0x63, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x66, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, + 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x61, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3b, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("google/rpc/status.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 209 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f, - 0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x82, 0x48, 0xe8, 0x15, 0x15, 0x24, 0x4b, 0x49, 0x42, 0x15, 0x81, - 0x65, 0x92, 0x4a, 0xd3, 0xf4, 0x13, 0xf3, 0x2a, 0x21, 0xca, 0x94, 0xd2, 0xb8, 0xd8, 0x82, 0xc1, - 0xda, 0x84, 0x84, 0xb8, 0x58, 0x92, 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x58, 0x83, - 0xc0, 0x6c, 0x21, 0x09, 0x2e, 0xf6, 0xdc, 0xd4, 0xe2, 0xe2, 0xc4, 0xf4, 0x54, 0x09, 0x26, 0x05, - 0x46, 0x0d, 0xce, 0x20, 0x18, 0x57, 0x48, 0x8f, 0x8b, 0x3d, 0x25, 0xb5, 0x24, 0x31, 0x33, 0xa7, - 0x58, 0x82, 0x59, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x44, 0x0f, 0x6a, 0x21, 0xcc, 0x12, 0x3d, 0xc7, - 0xbc, 0xca, 0x20, 0x98, 0x22, 0xa7, 0x38, 0x2e, 0xbe, 0xe4, 0xfc, 0x5c, 0x3d, 0x84, 0xa3, 0x9c, - 0xb8, 0x21, 0xf6, 0x06, 0x80, 0x94, 0x07, 0x30, 0x46, 0x99, 0x43, 0xa5, 0xd2, 0xf3, 0x73, 0x12, - 0xf3, 0xd2, 0xf5, 0xf2, 0x8b, 0xd2, 0xf5, 0xd3, 0x53, 0xf3, 0xc0, 0x86, 0xe9, 0x43, 0xa4, 0x12, - 0x0b, 0x32, 0x8b, 0x91, 0xfc, 0x69, 0x0d, 0xa1, 0x16, 0x31, 0x31, 0x07, 0x05, 0x38, 0x27, 0xb1, - 0x81, 0x55, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x53, 0xf0, 0x7c, 0x10, 0x01, 0x00, - 0x00, +var ( + file_google_rpc_status_proto_rawDescOnce sync.Once + file_google_rpc_status_proto_rawDescData = file_google_rpc_status_proto_rawDesc +) + +func file_google_rpc_status_proto_rawDescGZIP() []byte { + file_google_rpc_status_proto_rawDescOnce.Do(func() { + file_google_rpc_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_status_proto_rawDescData) + }) + return file_google_rpc_status_proto_rawDescData +} + +var file_google_rpc_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_rpc_status_proto_goTypes = []interface{}{ + (*Status)(nil), // 0: google.rpc.Status + (*anypb.Any)(nil), // 1: google.protobuf.Any +} +var file_google_rpc_status_proto_depIdxs = []int32{ + 1, // 0: google.rpc.Status.details:type_name -> google.protobuf.Any + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_google_rpc_status_proto_init() } +func file_google_rpc_status_proto_init() { + if File_google_rpc_status_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_rpc_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Status); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_rpc_status_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_rpc_status_proto_goTypes, + DependencyIndexes: file_google_rpc_status_proto_depIdxs, + MessageInfos: file_google_rpc_status_proto_msgTypes, + }.Build() + File_google_rpc_status_proto = out.File + file_google_rpc_status_proto_rawDesc = nil + file_google_rpc_status_proto_goTypes = nil + file_google_rpc_status_proto_depIdxs = nil } diff --git a/vendor/google.golang.org/grpc/.travis.yml b/vendor/google.golang.org/grpc/.travis.yml deleted file mode 100644 index 65ae29e..0000000 --- a/vendor/google.golang.org/grpc/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: go - -go: - - 1.6.x - - 1.7.x - - 1.8.x - - 1.9.x - - 1.10.x - -matrix: - include: - - go: 1.10.x - env: RUN386=1 - -go_import_path: google.golang.org/grpc - -before_install: - - if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh -install || exit 1; fi - -script: - - if [[ -n "$RUN386" ]]; then export GOARCH=386; fi - - if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh || exit 1; fi - - make test || exit 1 - - if [[ "$GOARCH" != "386" ]]; then make testrace; fi diff --git a/vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md b/vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md new file mode 100644 index 0000000..9d4213e --- /dev/null +++ b/vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md @@ -0,0 +1,3 @@ +## Community Code of Conduct + +gRPC follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). diff --git a/vendor/google.golang.org/grpc/CONTRIBUTING.md b/vendor/google.golang.org/grpc/CONTRIBUTING.md index 8ec6c95..52338d0 100644 --- a/vendor/google.golang.org/grpc/CONTRIBUTING.md +++ b/vendor/google.golang.org/grpc/CONTRIBUTING.md @@ -1,6 +1,8 @@ # How to contribute -We definitely welcome your patches and contributions to gRPC! +We definitely welcome your patches and contributions to gRPC! Please read the gRPC +organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md) +and [contribution guidelines](https://github.com/grpc/grpc-community/blob/master/CONTRIBUTING.md) before proceeding. If you are new to github, please start by reading [Pull Request howto](https://help.github.com/articles/about-pull-requests/) @@ -11,22 +13,48 @@ In order to protect both you and ourselves, you will need to sign the ## Guidelines for Pull Requests How to get your contributions merged smoothly and quickly. - -- Create **small PRs** that are narrowly focused on **addressing a single concern**. We often times receive PRs that are trying to fix several things at a time, but only one fix is considered acceptable, nothing gets merged and both author's & review's time is wasted. Create more PRs to address different concerns and everyone will be happy. - -- For speculative changes, consider opening an issue and discussing it first. If you are suggesting a behavioral or API change, consider starting with a [gRFC proposal](https://github.com/grpc/proposal). - -- Provide a good **PR description** as a record of **what** change is being made and **why** it was made. Link to a github issue if it exists. - -- Don't fix code style and formatting unless you are already changing that line to address an issue. PRs with irrelevant changes won't be merged. If you do want to fix formatting or style, do that in a separate PR. - -- Unless your PR is trivial, you should expect there will be reviewer comments that you'll need to address before merging. We expect you to be reasonably responsive to those comments, otherwise the PR will be closed after 2-3 weeks of inactivity. - -- Maintain **clean commit history** and use **meaningful commit messages**. PRs with messy commit history are difficult to review and won't be merged. Use `rebase -i upstream/master` to curate your commit history and/or to bring in latest changes from master (but avoid rebasing in the middle of a code review). - -- Keep your PR up to date with upstream/master (if there are merge conflicts, we can't really merge your change). - -- **All tests need to be passing** before your change can be merged. We recommend you **run tests locally** before creating your PR to catch breakages early on. + +- Create **small PRs** that are narrowly focused on **addressing a single + concern**. We often times receive PRs that are trying to fix several things at + a time, but only one fix is considered acceptable, nothing gets merged and + both author's & review's time is wasted. Create more PRs to address different + concerns and everyone will be happy. + +- The grpc package should only depend on standard Go packages and a small number + of exceptions. If your contribution introduces new dependencies which are NOT + in the [list](https://godoc.org/google.golang.org/grpc?imports), you need a + discussion with gRPC-Go authors and consultants. + +- For speculative changes, consider opening an issue and discussing it first. If + you are suggesting a behavioral or API change, consider starting with a [gRFC + proposal](https://github.com/grpc/proposal). + +- Provide a good **PR description** as a record of **what** change is being made + and **why** it was made. Link to a github issue if it exists. + +- Don't fix code style and formatting unless you are already changing that line + to address an issue. PRs with irrelevant changes won't be merged. If you do + want to fix formatting or style, do that in a separate PR. + +- Unless your PR is trivial, you should expect there will be reviewer comments + that you'll need to address before merging. We expect you to be reasonably + responsive to those comments, otherwise the PR will be closed after 2-3 weeks + of inactivity. + +- Maintain **clean commit history** and use **meaningful commit messages**. PRs + with messy commit history are difficult to review and won't be merged. Use + `rebase -i upstream/master` to curate your commit history and/or to bring in + latest changes from master (but avoid rebasing in the middle of a code + review). + +- Keep your PR up to date with upstream/master (if there are merge conflicts, we + can't really merge your change). + +- **All tests need to be passing** before your change can be merged. We + recommend you **run tests locally** before creating your PR to catch breakages + early on. + - `VET_SKIP_PROTO=1 ./vet.sh` to catch vet errors + - `go test -cpu 1,4 -timeout 7m ./...` to run the tests + - `go test -race -cpu 1,4 -timeout 7m ./...` to run tests in race mode - Exceptions to the rules can be made if there's a compelling reason for doing so. - diff --git a/vendor/google.golang.org/grpc/GOVERNANCE.md b/vendor/google.golang.org/grpc/GOVERNANCE.md new file mode 100644 index 0000000..d6ff267 --- /dev/null +++ b/vendor/google.golang.org/grpc/GOVERNANCE.md @@ -0,0 +1 @@ +This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). diff --git a/vendor/google.golang.org/grpc/MAINTAINERS.md b/vendor/google.golang.org/grpc/MAINTAINERS.md new file mode 100644 index 0000000..c6672c0 --- /dev/null +++ b/vendor/google.golang.org/grpc/MAINTAINERS.md @@ -0,0 +1,28 @@ +This page lists all active maintainers of this repository. If you were a +maintainer and would like to add your name to the Emeritus list, please send us a +PR. + +See [GOVERNANCE.md](https://github.com/grpc/grpc-community/blob/master/governance.md) +for governance guidelines and how to become a maintainer. +See [CONTRIBUTING.md](https://github.com/grpc/grpc-community/blob/master/CONTRIBUTING.md) +for general contribution guidelines. + +## Maintainers (in alphabetical order) + +- [cesarghali](https://github.com/cesarghali), Google LLC +- [dfawley](https://github.com/dfawley), Google LLC +- [easwars](https://github.com/easwars), Google LLC +- [menghanl](https://github.com/menghanl), Google LLC +- [srini100](https://github.com/srini100), Google LLC + +## Emeritus Maintainers (in alphabetical order) +- [adelez](https://github.com/adelez), Google LLC +- [canguler](https://github.com/canguler), Google LLC +- [iamqizhao](https://github.com/iamqizhao), Google LLC +- [jadekler](https://github.com/jadekler), Google LLC +- [jtattermusch](https://github.com/jtattermusch), Google LLC +- [lyuxuan](https://github.com/lyuxuan), Google LLC +- [makmukhi](https://github.com/makmukhi), Google LLC +- [matt-kwong](https://github.com/matt-kwong), Google LLC +- [nicolasnoble](https://github.com/nicolasnoble), Google LLC +- [yongni](https://github.com/yongni), Google LLC diff --git a/vendor/google.golang.org/grpc/Makefile b/vendor/google.golang.org/grpc/Makefile index c445343..1f89609 100644 --- a/vendor/google.golang.org/grpc/Makefile +++ b/vendor/google.golang.org/grpc/Makefile @@ -1,19 +1,13 @@ -all: test testrace +all: vet test testrace -deps: - go get -d -v google.golang.org/grpc/... - -updatedeps: - go get -d -v -u -f google.golang.org/grpc/... - -testdeps: - go get -d -v -t google.golang.org/grpc/... +build: + go build google.golang.org/grpc/... -updatetestdeps: - go get -d -v -t -u -f google.golang.org/grpc/... +clean: + go clean -i google.golang.org/grpc/... -build: deps - go build google.golang.org/grpc/... +deps: + GO111MODULE=on go get -d -v google.golang.org/grpc/... proto: @ if ! which protoc > /dev/null; then \ @@ -22,24 +16,31 @@ proto: fi go generate google.golang.org/grpc/... -test: testdeps - go test -cpu 1,4 -timeout 5m google.golang.org/grpc/... +test: + go test -cpu 1,4 -timeout 7m google.golang.org/grpc/... -testrace: testdeps +testsubmodule: + cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/... + cd security/authorization && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/authorization/... + +testrace: go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/... -clean: - go clean -i google.golang.org/grpc/... +testdeps: + GO111MODULE=on go get -d -v -t google.golang.org/grpc/... + +vet: vetdeps + ./vet.sh + +vetdeps: + ./vet.sh -install .PHONY: \ all \ - deps \ - updatedeps \ - testdeps \ - updatetestdeps \ build \ + clean \ proto \ test \ testrace \ - clean \ - coverage + vet \ + vetdeps diff --git a/vendor/google.golang.org/grpc/NOTICE.txt b/vendor/google.golang.org/grpc/NOTICE.txt new file mode 100644 index 0000000..5301977 --- /dev/null +++ b/vendor/google.golang.org/grpc/NOTICE.txt @@ -0,0 +1,13 @@ +Copyright 2014 gRPC authors. + +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. diff --git a/vendor/google.golang.org/grpc/README.md b/vendor/google.golang.org/grpc/README.md index 789adfd..0e6ae69 100644 --- a/vendor/google.golang.org/grpc/README.md +++ b/vendor/google.golang.org/grpc/README.md @@ -1,45 +1,141 @@ # gRPC-Go -[![Build Status](https://travis-ci.org/grpc/grpc-go.svg)](https://travis-ci.org/grpc/grpc-go) [![GoDoc](https://godoc.org/google.golang.org/grpc?status.svg)](https://godoc.org/google.golang.org/grpc) [![GoReportCard](https://goreportcard.com/badge/grpc/grpc-go)](https://goreportcard.com/report/github.com/grpc/grpc-go) +[![Build Status](https://travis-ci.org/grpc/grpc-go.svg)](https://travis-ci.org/grpc/grpc-go) +[![GoDoc](https://pkg.go.dev/badge/google.golang.org/grpc)][API] +[![GoReportCard](https://goreportcard.com/badge/grpc/grpc-go)](https://goreportcard.com/report/github.com/grpc/grpc-go) -The Go implementation of [gRPC](https://grpc.io/): A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the [gRPC Quick Start: Go](https://grpc.io/docs/quickstart/go.html) guide. +The [Go][] implementation of [gRPC][]: A high performance, open source, general +RPC framework that puts mobile and HTTP/2 first. For more information see the +[Go gRPC docs][], or jump directly into the [quick start][]. -Installation ------------- +## Prerequisites -To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run: +- **[Go][]**: any one of the **three latest major** [releases][go-releases]. +## Installation + +With [Go module][] support (Go 1.11+), simply add the following import + +```go +import "google.golang.org/grpc" +``` + +to your code, and then `go [build|run|test]` will automatically fetch the +necessary dependencies. + +Otherwise, to install the `grpc-go` package, run the following command: + +```console +$ go get -u google.golang.org/grpc ``` + +> **Note:** If you are trying to access `grpc-go` from **China**, see the +> [FAQ](#FAQ) below. + +## Learn more + +- [Go gRPC docs][], which include a [quick start][] and [API + reference][API] among other resources +- [Low-level technical docs](Documentation) from this repository +- [Performance benchmark][] +- [Examples](examples) + +## FAQ + +### I/O Timeout Errors + +The `golang.org` domain may be blocked from some countries. `go get` usually +produces an error like the following when this happens: + +```console $ go get -u google.golang.org/grpc +package google.golang.org/grpc: unrecognized import path "google.golang.org/grpc" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) ``` -Prerequisites -------------- +To build Go code, there are several options: + +- Set up a VPN and access google.golang.org through that. + +- Without Go module support: `git clone` the repo manually: -This requires Go 1.6 or later. Go 1.7 will be required soon. + ```sh + git clone https://github.com/grpc/grpc-go.git $GOPATH/src/google.golang.org/grpc + ``` -Constraints ------------ -The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the [list](http://godoc.org/google.golang.org/grpc?imports), you need a discussion with gRPC-Go authors and consultants. + You will need to do the same for all of grpc's dependencies in `golang.org`, + e.g. `golang.org/x/net`. -Documentation -------------- -See [API documentation](https://godoc.org/google.golang.org/grpc) for package and API descriptions and find examples in the [examples directory](examples/). +- With Go module support: it is possible to use the `replace` feature of `go + mod` to create aliases for golang.org packages. In your project's directory: -Performance ------------ -See the current benchmarks for some of the languages supported in [this dashboard](https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5652536396611584&widget=490377658&container=1286539696). + ```sh + go mod edit -replace=google.golang.org/grpc=github.com/grpc/grpc-go@latest + go mod tidy + go mod vendor + go build -mod=vendor + ``` + + Again, this will need to be done for all transitive dependencies hosted on + golang.org as well. For details, refer to [golang/go issue #28652](https://github.com/golang/go/issues/28652). + +### Compiling error, undefined: grpc.SupportPackageIsVersion + +#### If you are using Go modules: + +Ensure your gRPC-Go version is `require`d at the appropriate version in +the same module containing the generated `.pb.go` files. For example, +`SupportPackageIsVersion6` needs `v1.27.0`, so in your `go.mod` file: + +```go +module + +require ( + google.golang.org/grpc v1.27.0 +) +``` + +#### If you are *not* using Go modules: + +Update the `proto` package, gRPC package, and rebuild the `.proto` files: + +```sh +go get -u github.com/golang/protobuf/{proto,protoc-gen-go} +go get -u google.golang.org/grpc +protoc --go_out=plugins=grpc:. *.proto +``` + +### How to turn on logging + +The default logger is controlled by environment variables. Turn everything on +like this: + +```console +$ export GRPC_GO_LOG_VERBOSITY_LEVEL=99 +$ export GRPC_GO_LOG_SEVERITY_LEVEL=info +``` -Status ------- -General Availability [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages). +### The RPC failed with error `"code = Unavailable desc = transport is closing"` -FAQ ---- +This error means the connection the RPC is using was closed, and there are many +possible reasons, including: + 1. mis-configured transport credentials, connection failed on handshaking + 1. bytes disrupted, possibly by a proxy in between + 1. server shutdown + 1. Keepalive parameters caused connection shutdown, for example if you have configured + your server to terminate connections regularly to [trigger DNS lookups](https://github.com/grpc/grpc-go/issues/3170#issuecomment-552517779). + If this is the case, you may want to increase your [MaxConnectionAgeGrace](https://pkg.go.dev/google.golang.org/grpc/keepalive?tab=doc#ServerParameters), + to allow longer RPC calls to finish. -#### Compiling error, undefined: grpc.SupportPackageIsVersion +It can be tricky to debug this because the error happens on the client side but +the root cause of the connection being closed is on the server side. Turn on +logging on __both client and server__, and see if there are any transport +errors. -Please update proto package, gRPC package and rebuild the proto files: - - `go get -u github.com/golang/protobuf/{proto,protoc-gen-go}` - - `go get -u google.golang.org/grpc` - - `protoc --go_out=plugins=grpc:. *.proto` +[API]: https://pkg.go.dev/google.golang.org/grpc +[Go]: https://golang.org +[Go module]: https://github.com/golang/go/wiki/Modules +[gRPC]: https://grpc.io +[Go gRPC docs]: https://grpc.io/docs/languages/go +[Performance benchmark]: https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608 +[quick start]: https://grpc.io/docs/languages/go/quickstart +[go-releases]: https://golang.org/doc/devel/release.html diff --git a/vendor/google.golang.org/grpc/SECURITY.md b/vendor/google.golang.org/grpc/SECURITY.md new file mode 100644 index 0000000..be6e108 --- /dev/null +++ b/vendor/google.golang.org/grpc/SECURITY.md @@ -0,0 +1,3 @@ +# Security Policy + +For information on gRPC Security Policy and reporting potentional security issues, please see [gRPC CVE Process](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md). diff --git a/vendor/google.golang.org/grpc/attributes/attributes.go b/vendor/google.golang.org/grpc/attributes/attributes.go new file mode 100644 index 0000000..02f5dc5 --- /dev/null +++ b/vendor/google.golang.org/grpc/attributes/attributes.go @@ -0,0 +1,101 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * 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 attributes defines a generic key/value store used in various gRPC +// components. +// +// # Experimental +// +// Notice: This package is EXPERIMENTAL and may be changed or removed in a +// later release. +package attributes + +// Attributes is an immutable struct for storing and retrieving generic +// key/value pairs. Keys must be hashable, and users should define their own +// types for keys. Values should not be modified after they are added to an +// Attributes or if they were received from one. If values implement 'Equal(o +// interface{}) bool', it will be called by (*Attributes).Equal to determine +// whether two values with the same key should be considered equal. +type Attributes struct { + m map[interface{}]interface{} +} + +// New returns a new Attributes containing the key/value pair. +func New(key, value interface{}) *Attributes { + return &Attributes{m: map[interface{}]interface{}{key: value}} +} + +// WithValue returns a new Attributes containing the previous keys and values +// and the new key/value pair. If the same key appears multiple times, the +// last value overwrites all previous values for that key. To remove an +// existing key, use a nil value. value should not be modified later. +func (a *Attributes) WithValue(key, value interface{}) *Attributes { + if a == nil { + return New(key, value) + } + n := &Attributes{m: make(map[interface{}]interface{}, len(a.m)+1)} + for k, v := range a.m { + n.m[k] = v + } + n.m[key] = value + return n +} + +// Value returns the value associated with these attributes for key, or nil if +// no value is associated with key. The returned value should not be modified. +func (a *Attributes) Value(key interface{}) interface{} { + if a == nil { + return nil + } + return a.m[key] +} + +// Equal returns whether a and o are equivalent. If 'Equal(o interface{}) +// bool' is implemented for a value in the attributes, it is called to +// determine if the value matches the one stored in the other attributes. If +// Equal is not implemented, standard equality is used to determine if the two +// values are equal. Note that some types (e.g. maps) aren't comparable by +// default, so they must be wrapped in a struct, or in an alias type, with Equal +// defined. +func (a *Attributes) Equal(o *Attributes) bool { + if a == nil && o == nil { + return true + } + if a == nil || o == nil { + return false + } + if len(a.m) != len(o.m) { + return false + } + for k, v := range a.m { + ov, ok := o.m[k] + if !ok { + // o missing element of a + return false + } + if eq, ok := v.(interface{ Equal(o interface{}) bool }); ok { + if !eq.Equal(ov) { + return false + } + } else if v != ov { + // Fallback to a standard equality check if Value is unimplemented. + return false + } + } + return true +} diff --git a/vendor/google.golang.org/grpc/backoff.go b/vendor/google.golang.org/grpc/backoff.go index c40facc..29475e3 100644 --- a/vendor/google.golang.org/grpc/backoff.go +++ b/vendor/google.golang.org/grpc/backoff.go @@ -16,81 +16,46 @@ * */ +// See internal/backoff package for the backoff implementation. This file is +// kept for the exported types and API backward compatibility. + package grpc import ( - "math/rand" "time" + + "google.golang.org/grpc/backoff" ) // DefaultBackoffConfig uses values specified for backoff in // https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. -var DefaultBackoffConfig = BackoffConfig{ - MaxDelay: 120 * time.Second, - baseDelay: 1.0 * time.Second, - factor: 1.6, - jitter: 0.2, -} - -// backoffStrategy defines the methodology for backing off after a grpc -// connection failure. // -// This is unexported until the gRPC project decides whether or not to allow -// alternative backoff strategies. Once a decision is made, this type and its -// method may be exported. -type backoffStrategy interface { - // backoff returns the amount of time to wait before the next retry given - // the number of consecutive failures. - backoff(retries int) time.Duration +// Deprecated: use ConnectParams instead. Will be supported throughout 1.x. +var DefaultBackoffConfig = BackoffConfig{ + MaxDelay: 120 * time.Second, } // BackoffConfig defines the parameters for the default gRPC backoff strategy. +// +// Deprecated: use ConnectParams instead. Will be supported throughout 1.x. type BackoffConfig struct { // MaxDelay is the upper bound of backoff delay. MaxDelay time.Duration - - // TODO(stevvooe): The following fields are not exported, as allowing - // changes would violate the current gRPC specification for backoff. If - // gRPC decides to allow more interesting backoff strategies, these fields - // may be opened up in the future. - - // baseDelay is the amount of time to wait before retrying after the first - // failure. - baseDelay time.Duration - - // factor is applied to the backoff after each retry. - factor float64 - - // jitter provides a range to randomize backoff delays. - jitter float64 -} - -func setDefaults(bc *BackoffConfig) { - md := bc.MaxDelay - *bc = DefaultBackoffConfig - - if md > 0 { - bc.MaxDelay = md - } } -func (bc BackoffConfig) backoff(retries int) time.Duration { - if retries == 0 { - return bc.baseDelay - } - backoff, max := float64(bc.baseDelay), float64(bc.MaxDelay) - for backoff < max && retries > 0 { - backoff *= bc.factor - retries-- - } - if backoff > max { - backoff = max - } - // Randomize backoff delays so that if a cluster of requests start at - // the same time, they won't operate in lockstep. - backoff *= 1 + bc.jitter*(rand.Float64()*2-1) - if backoff < 0 { - return 0 - } - return time.Duration(backoff) +// ConnectParams defines the parameters for connecting and retrying. Users are +// encouraged to use this instead of the BackoffConfig type defined above. See +// here for more details: +// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type ConnectParams struct { + // Backoff specifies the configuration options for connection backoff. + Backoff backoff.Config + // MinConnectTimeout is the minimum amount of time we are willing to give a + // connection to complete. + MinConnectTimeout time.Duration } diff --git a/vendor/google.golang.org/grpc/backoff/backoff.go b/vendor/google.golang.org/grpc/backoff/backoff.go new file mode 100644 index 0000000..0787d0b --- /dev/null +++ b/vendor/google.golang.org/grpc/backoff/backoff.go @@ -0,0 +1,52 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * 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 backoff provides configuration options for backoff. +// +// More details can be found at: +// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +// +// All APIs in this package are experimental. +package backoff + +import "time" + +// Config defines the configuration options for backoff. +type Config struct { + // BaseDelay is the amount of time to backoff after the first failure. + BaseDelay time.Duration + // Multiplier is the factor with which to multiply backoffs after a + // failed retry. Should ideally be greater than 1. + Multiplier float64 + // Jitter is the factor with which backoffs are randomized. + Jitter float64 + // MaxDelay is the upper bound of backoff delay. + MaxDelay time.Duration +} + +// DefaultConfig is a backoff configuration with the default values specfied +// at https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +// +// This should be useful for callers who want to configure backoff with +// non-default values only for a subset of the options. +var DefaultConfig = Config{ + BaseDelay: 1.0 * time.Second, + Multiplier: 1.6, + Jitter: 0.2, + MaxDelay: 120 * time.Second, +} diff --git a/vendor/google.golang.org/grpc/balancer.go b/vendor/google.golang.org/grpc/balancer.go deleted file mode 100644 index 300da6c..0000000 --- a/vendor/google.golang.org/grpc/balancer.go +++ /dev/null @@ -1,409 +0,0 @@ -/* - * - * Copyright 2016 gRPC authors. - * - * 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 grpc - -import ( - "fmt" - "net" - "sync" - - "golang.org/x/net/context" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/credentials" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/naming" - "google.golang.org/grpc/status" -) - -// Address represents a server the client connects to. -// This is the EXPERIMENTAL API and may be changed or extended in the future. -type Address struct { - // Addr is the server address on which a connection will be established. - Addr string - // Metadata is the information associated with Addr, which may be used - // to make load balancing decision. - Metadata interface{} -} - -// BalancerConfig specifies the configurations for Balancer. -type BalancerConfig struct { - // DialCreds is the transport credential the Balancer implementation can - // use to dial to a remote load balancer server. The Balancer implementations - // can ignore this if it does not need to talk to another party securely. - DialCreds credentials.TransportCredentials - // Dialer is the custom dialer the Balancer implementation can use to dial - // to a remote load balancer server. The Balancer implementations - // can ignore this if it doesn't need to talk to remote balancer. - Dialer func(context.Context, string) (net.Conn, error) -} - -// BalancerGetOptions configures a Get call. -// This is the EXPERIMENTAL API and may be changed or extended in the future. -type BalancerGetOptions struct { - // BlockingWait specifies whether Get should block when there is no - // connected address. - BlockingWait bool -} - -// Balancer chooses network addresses for RPCs. -// This is the EXPERIMENTAL API and may be changed or extended in the future. -type Balancer interface { - // Start does the initialization work to bootstrap a Balancer. For example, - // this function may start the name resolution and watch the updates. It will - // be called when dialing. - Start(target string, config BalancerConfig) error - // Up informs the Balancer that gRPC has a connection to the server at - // addr. It returns down which is called once the connection to addr gets - // lost or closed. - // TODO: It is not clear how to construct and take advantage of the meaningful error - // parameter for down. Need realistic demands to guide. - Up(addr Address) (down func(error)) - // Get gets the address of a server for the RPC corresponding to ctx. - // i) If it returns a connected address, gRPC internals issues the RPC on the - // connection to this address; - // ii) If it returns an address on which the connection is under construction - // (initiated by Notify(...)) but not connected, gRPC internals - // * fails RPC if the RPC is fail-fast and connection is in the TransientFailure or - // Shutdown state; - // or - // * issues RPC on the connection otherwise. - // iii) If it returns an address on which the connection does not exist, gRPC - // internals treats it as an error and will fail the corresponding RPC. - // - // Therefore, the following is the recommended rule when writing a custom Balancer. - // If opts.BlockingWait is true, it should return a connected address or - // block if there is no connected address. It should respect the timeout or - // cancellation of ctx when blocking. If opts.BlockingWait is false (for fail-fast - // RPCs), it should return an address it has notified via Notify(...) immediately - // instead of blocking. - // - // The function returns put which is called once the rpc has completed or failed. - // put can collect and report RPC stats to a remote load balancer. - // - // This function should only return the errors Balancer cannot recover by itself. - // gRPC internals will fail the RPC if an error is returned. - Get(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error) - // Notify returns a channel that is used by gRPC internals to watch the addresses - // gRPC needs to connect. The addresses might be from a name resolver or remote - // load balancer. gRPC internals will compare it with the existing connected - // addresses. If the address Balancer notified is not in the existing connected - // addresses, gRPC starts to connect the address. If an address in the existing - // connected addresses is not in the notification list, the corresponding connection - // is shutdown gracefully. Otherwise, there are no operations to take. Note that - // the Address slice must be the full list of the Addresses which should be connected. - // It is NOT delta. - Notify() <-chan []Address - // Close shuts down the balancer. - Close() error -} - -// downErr implements net.Error. It is constructed by gRPC internals and passed to the down -// call of Balancer. -type downErr struct { - timeout bool - temporary bool - desc string -} - -func (e downErr) Error() string { return e.desc } -func (e downErr) Timeout() bool { return e.timeout } -func (e downErr) Temporary() bool { return e.temporary } - -func downErrorf(timeout, temporary bool, format string, a ...interface{}) downErr { - return downErr{ - timeout: timeout, - temporary: temporary, - desc: fmt.Sprintf(format, a...), - } -} - -// RoundRobin returns a Balancer that selects addresses round-robin. It uses r to watch -// the name resolution updates and updates the addresses available correspondingly. -func RoundRobin(r naming.Resolver) Balancer { - return &roundRobin{r: r} -} - -type addrInfo struct { - addr Address - connected bool -} - -type roundRobin struct { - r naming.Resolver - w naming.Watcher - addrs []*addrInfo // all the addresses the client should potentially connect - mu sync.Mutex - addrCh chan []Address // the channel to notify gRPC internals the list of addresses the client should connect to. - next int // index of the next address to return for Get() - waitCh chan struct{} // the channel to block when there is no connected address available - done bool // The Balancer is closed. -} - -func (rr *roundRobin) watchAddrUpdates() error { - updates, err := rr.w.Next() - if err != nil { - grpclog.Warningf("grpc: the naming watcher stops working due to %v.", err) - return err - } - rr.mu.Lock() - defer rr.mu.Unlock() - for _, update := range updates { - addr := Address{ - Addr: update.Addr, - Metadata: update.Metadata, - } - switch update.Op { - case naming.Add: - var exist bool - for _, v := range rr.addrs { - if addr == v.addr { - exist = true - grpclog.Infoln("grpc: The name resolver wanted to add an existing address: ", addr) - break - } - } - if exist { - continue - } - rr.addrs = append(rr.addrs, &addrInfo{addr: addr}) - case naming.Delete: - for i, v := range rr.addrs { - if addr == v.addr { - copy(rr.addrs[i:], rr.addrs[i+1:]) - rr.addrs = rr.addrs[:len(rr.addrs)-1] - break - } - } - default: - grpclog.Errorln("Unknown update.Op ", update.Op) - } - } - // Make a copy of rr.addrs and write it onto rr.addrCh so that gRPC internals gets notified. - open := make([]Address, len(rr.addrs)) - for i, v := range rr.addrs { - open[i] = v.addr - } - if rr.done { - return ErrClientConnClosing - } - select { - case <-rr.addrCh: - default: - } - rr.addrCh <- open - return nil -} - -func (rr *roundRobin) Start(target string, config BalancerConfig) error { - rr.mu.Lock() - defer rr.mu.Unlock() - if rr.done { - return ErrClientConnClosing - } - if rr.r == nil { - // If there is no name resolver installed, it is not needed to - // do name resolution. In this case, target is added into rr.addrs - // as the only address available and rr.addrCh stays nil. - rr.addrs = append(rr.addrs, &addrInfo{addr: Address{Addr: target}}) - return nil - } - w, err := rr.r.Resolve(target) - if err != nil { - return err - } - rr.w = w - rr.addrCh = make(chan []Address, 1) - go func() { - for { - if err := rr.watchAddrUpdates(); err != nil { - return - } - } - }() - return nil -} - -// Up sets the connected state of addr and sends notification if there are pending -// Get() calls. -func (rr *roundRobin) Up(addr Address) func(error) { - rr.mu.Lock() - defer rr.mu.Unlock() - var cnt int - for _, a := range rr.addrs { - if a.addr == addr { - if a.connected { - return nil - } - a.connected = true - } - if a.connected { - cnt++ - } - } - // addr is only one which is connected. Notify the Get() callers who are blocking. - if cnt == 1 && rr.waitCh != nil { - close(rr.waitCh) - rr.waitCh = nil - } - return func(err error) { - rr.down(addr, err) - } -} - -// down unsets the connected state of addr. -func (rr *roundRobin) down(addr Address, err error) { - rr.mu.Lock() - defer rr.mu.Unlock() - for _, a := range rr.addrs { - if addr == a.addr { - a.connected = false - break - } - } -} - -// Get returns the next addr in the rotation. -func (rr *roundRobin) Get(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error) { - var ch chan struct{} - rr.mu.Lock() - if rr.done { - rr.mu.Unlock() - err = ErrClientConnClosing - return - } - - if len(rr.addrs) > 0 { - if rr.next >= len(rr.addrs) { - rr.next = 0 - } - next := rr.next - for { - a := rr.addrs[next] - next = (next + 1) % len(rr.addrs) - if a.connected { - addr = a.addr - rr.next = next - rr.mu.Unlock() - return - } - if next == rr.next { - // Has iterated all the possible address but none is connected. - break - } - } - } - if !opts.BlockingWait { - if len(rr.addrs) == 0 { - rr.mu.Unlock() - err = status.Errorf(codes.Unavailable, "there is no address available") - return - } - // Returns the next addr on rr.addrs for failfast RPCs. - addr = rr.addrs[rr.next].addr - rr.next++ - rr.mu.Unlock() - return - } - // Wait on rr.waitCh for non-failfast RPCs. - if rr.waitCh == nil { - ch = make(chan struct{}) - rr.waitCh = ch - } else { - ch = rr.waitCh - } - rr.mu.Unlock() - for { - select { - case <-ctx.Done(): - err = ctx.Err() - return - case <-ch: - rr.mu.Lock() - if rr.done { - rr.mu.Unlock() - err = ErrClientConnClosing - return - } - - if len(rr.addrs) > 0 { - if rr.next >= len(rr.addrs) { - rr.next = 0 - } - next := rr.next - for { - a := rr.addrs[next] - next = (next + 1) % len(rr.addrs) - if a.connected { - addr = a.addr - rr.next = next - rr.mu.Unlock() - return - } - if next == rr.next { - // Has iterated all the possible address but none is connected. - break - } - } - } - // The newly added addr got removed by Down() again. - if rr.waitCh == nil { - ch = make(chan struct{}) - rr.waitCh = ch - } else { - ch = rr.waitCh - } - rr.mu.Unlock() - } - } -} - -func (rr *roundRobin) Notify() <-chan []Address { - return rr.addrCh -} - -func (rr *roundRobin) Close() error { - rr.mu.Lock() - defer rr.mu.Unlock() - if rr.done { - return errBalancerClosed - } - rr.done = true - if rr.w != nil { - rr.w.Close() - } - if rr.waitCh != nil { - close(rr.waitCh) - rr.waitCh = nil - } - if rr.addrCh != nil { - close(rr.addrCh) - } - return nil -} - -// pickFirst is used to test multi-addresses in one addrConn in which all addresses share the same addrConn. -// It is a wrapper around roundRobin balancer. The logic of all methods works fine because balancer.Get() -// returns the only address Up by resetTransport(). -type pickFirst struct { - *roundRobin -} - -func pickFirstBalancerV1(r naming.Resolver) Balancer { - return &pickFirst{&roundRobin{r: r}} -} diff --git a/vendor/google.golang.org/grpc/balancer/balancer.go b/vendor/google.golang.org/grpc/balancer/balancer.go index 219a294..09d61dd 100644 --- a/vendor/google.golang.org/grpc/balancer/balancer.go +++ b/vendor/google.golang.org/grpc/balancer/balancer.go @@ -21,14 +21,19 @@ package balancer import ( + "context" + "encoding/json" "errors" "net" "strings" - "golang.org/x/net/context" + "google.golang.org/grpc/channelz" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal" + "google.golang.org/grpc/metadata" "google.golang.org/grpc/resolver" + "google.golang.org/grpc/serviceconfig" ) var ( @@ -36,15 +41,33 @@ var ( m = make(map[string]Builder) ) -// Register registers the balancer builder to the balancer map. -// b.Name (lowercased) will be used as the name registered with -// this builder. +// Register registers the balancer builder to the balancer map. b.Name +// (lowercased) will be used as the name registered with this builder. If the +// Builder implements ConfigParser, ParseConfig will be called when new service +// configs are received by the resolver, and the result will be provided to the +// Balancer in UpdateClientConnState. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple Balancers are +// registered with the same name, the one registered last will take effect. func Register(b Builder) { m[strings.ToLower(b.Name())] = b } +// unregisterForTesting deletes the balancer with the given name from the +// balancer map. +// +// This function is not thread-safe. +func unregisterForTesting(name string) { + delete(m, name) +} + +func init() { + internal.BalancerUnregister = unregisterForTesting +} + // Get returns the resolver builder registered with the given name. -// Note that the compare is done in a case-insenstive fashion. +// Note that the compare is done in a case-insensitive fashion. // If no builder is register with the name, nil will be returned. func Get(name string) Builder { if b, ok := m[strings.ToLower(name)]; ok { @@ -53,24 +76,26 @@ func Get(name string) Builder { return nil } -// SubConn represents a gRPC sub connection. -// Each sub connection contains a list of addresses. gRPC will -// try to connect to them (in sequence), and stop trying the -// remainder once one connection is successful. +// A SubConn represents a single connection to a gRPC backend service. // -// The reconnect backoff will be applied on the list, not a single address. -// For example, try_on_all_addresses -> backoff -> try_on_all_addresses. +// Each SubConn contains a list of addresses. // -// All SubConns start in IDLE, and will not try to connect. To trigger -// the connecting, Balancers must call Connect. -// When the connection encounters an error, it will reconnect immediately. -// When the connection becomes IDLE, it will not reconnect unless Connect is -// called. +// All SubConns start in IDLE, and will not try to connect. To trigger the +// connecting, Balancers must call Connect. If a connection re-enters IDLE, +// Balancers must call Connect again to trigger a new connection attempt. // -// This interface is to be implemented by gRPC. Users should not need a -// brand new implementation of this interface. For the situations like -// testing, the new implementation should embed this interface. This allows -// gRPC to add new methods to this interface. +// gRPC will try to connect to the addresses in sequence, and stop trying the +// remainder once the first connection is successful. If an attempt to connect +// to all addresses encounters an error, the SubConn will enter +// TRANSIENT_FAILURE for a backoff period, and then transition to IDLE. +// +// Once established, if a connection is lost, the SubConn will transition +// directly to IDLE. +// +// This interface is to be implemented by gRPC. Users should not need their own +// implementation of this interface. For situations like testing, any +// implementations should embed this interface. This allows gRPC to add new +// methods to this interface. type SubConn interface { // UpdateAddresses updates the addresses used in this SubConn. // gRPC checks if currently-connected address is still in the new list. @@ -79,13 +104,41 @@ type SubConn interface { // a new connection will be created. // // This will trigger a state transition for the SubConn. + // + // Deprecated: This method is now part of the ClientConn interface and will + // eventually be removed from here. UpdateAddresses([]resolver.Address) // Connect starts the connecting for this SubConn. Connect() + // GetOrBuildProducer returns a reference to the existing Producer for this + // ProducerBuilder in this SubConn, or, if one does not currently exist, + // creates a new one and returns it. Returns a close function which must + // be called when the Producer is no longer needed. + GetOrBuildProducer(ProducerBuilder) (p Producer, close func()) } // NewSubConnOptions contains options to create new SubConn. -type NewSubConnOptions struct{} +type NewSubConnOptions struct { + // CredsBundle is the credentials bundle that will be used in the created + // SubConn. If it's nil, the original creds from grpc DialOptions will be + // used. + // + // Deprecated: Use the Attributes field in resolver.Address to pass + // arbitrary data to the credential handshaker. + CredsBundle credentials.Bundle + // HealthCheckEnabled indicates whether health check service should be + // enabled on this SubConn + HealthCheckEnabled bool +} + +// State contains the balancer's state relevant to the gRPC ClientConn. +type State struct { + // State contains the connectivity state of the balancer, which is used to + // determine the state of the ClientConn. + ConnectivityState connectivity.State + // Picker is used to choose connections (SubConns) for RPCs. + Picker Picker +} // ClientConn represents a gRPC ClientConn. // @@ -101,31 +154,59 @@ type ClientConn interface { // RemoveSubConn removes the SubConn from ClientConn. // The SubConn will be shutdown. RemoveSubConn(SubConn) + // UpdateAddresses updates the addresses used in the passed in SubConn. + // gRPC checks if the currently connected address is still in the new list. + // If so, the connection will be kept. Else, the connection will be + // gracefully closed, and a new connection will be created. + // + // This will trigger a state transition for the SubConn. + UpdateAddresses(SubConn, []resolver.Address) - // UpdateBalancerState is called by balancer to nofity gRPC that some internal - // state in balancer has changed. + // UpdateState notifies gRPC that the balancer's internal state has + // changed. // - // gRPC will update the connectivity state of the ClientConn, and will call pick - // on the new picker to pick new SubConn. - UpdateBalancerState(s connectivity.State, p Picker) + // gRPC will update the connectivity state of the ClientConn, and will call + // Pick on the new Picker to pick new SubConns. + UpdateState(State) // ResolveNow is called by balancer to notify gRPC to do a name resolving. - ResolveNow(resolver.ResolveNowOption) + ResolveNow(resolver.ResolveNowOptions) // Target returns the dial target for this ClientConn. + // + // Deprecated: Use the Target field in the BuildOptions instead. Target() string } // BuildOptions contains additional information for Build. type BuildOptions struct { - // DialCreds is the transport credential the Balancer implementation can - // use to dial to a remote load balancer server. The Balancer implementations - // can ignore this if it does not need to talk to another party securely. + // DialCreds is the transport credentials to use when communicating with a + // remote load balancer server. Balancer implementations which do not + // communicate with a remote load balancer server can ignore this field. DialCreds credentials.TransportCredentials - // Dialer is the custom dialer the Balancer implementation can use to dial - // to a remote load balancer server. The Balancer implementations - // can ignore this if it doesn't need to talk to remote balancer. + // CredsBundle is the credentials bundle to use when communicating with a + // remote load balancer server. Balancer implementations which do not + // communicate with a remote load balancer server can ignore this field. + CredsBundle credentials.Bundle + // Dialer is the custom dialer to use when communicating with a remote load + // balancer server. Balancer implementations which do not communicate with a + // remote load balancer server can ignore this field. Dialer func(context.Context, string) (net.Conn, error) + // Authority is the server name to use as part of the authentication + // handshake when communicating with a remote load balancer server. Balancer + // implementations which do not communicate with a remote load balancer + // server can ignore this field. + Authority string + // ChannelzParentID is the parent ClientConn's channelz ID. + ChannelzParentID *channelz.Identifier + // CustomUserAgent is the custom user agent set on the parent ClientConn. + // The balancer should set the same custom user agent if it creates a + // ClientConn. + CustomUserAgent string + // Target contains the parsed address info of the dial target. It is the + // same resolver.Target as passed to the resolver. See the documentation for + // the resolver.Target type for details about what it contains. + Target resolver.Target } // Builder creates a balancer. @@ -137,62 +218,110 @@ type Builder interface { Name() string } -// PickOptions contains addition information for the Pick operation. -type PickOptions struct{} +// ConfigParser parses load balancer configs. +type ConfigParser interface { + // ParseConfig parses the JSON load balancer config provided into an + // internal form or returns an error if the config is invalid. For future + // compatibility reasons, unknown fields in the config should be ignored. + ParseConfig(LoadBalancingConfigJSON json.RawMessage) (serviceconfig.LoadBalancingConfig, error) +} + +// PickInfo contains additional information for the Pick operation. +type PickInfo struct { + // FullMethodName is the method name that NewClientStream() is called + // with. The canonical format is /service/Method. + FullMethodName string + // Ctx is the RPC's context, and may contain relevant RPC-level information + // like the outgoing header metadata. + Ctx context.Context +} // DoneInfo contains additional information for done. type DoneInfo struct { // Err is the rpc error the RPC finished with. It could be nil. Err error + // Trailer contains the metadata from the RPC's trailer, if present. + Trailer metadata.MD // BytesSent indicates if any bytes have been sent to the server. BytesSent bool // BytesReceived indicates if any byte has been received from the server. BytesReceived bool + // ServerLoad is the load received from server. It's usually sent as part of + // trailing metadata. + // + // The only supported type now is *orca_v3.LoadReport. + ServerLoad interface{} } var ( // ErrNoSubConnAvailable indicates no SubConn is available for pick(). - // gRPC will block the RPC until a new picker is available via UpdateBalancerState(). + // gRPC will block the RPC until a new picker is available via UpdateState(). ErrNoSubConnAvailable = errors.New("no SubConn is available") // ErrTransientFailure indicates all SubConns are in TransientFailure. // WaitForReady RPCs will block, non-WaitForReady RPCs will fail. + // + // Deprecated: return an appropriate error based on the last resolution or + // connection attempt instead. The behavior is the same for any non-gRPC + // status error. ErrTransientFailure = errors.New("all SubConns are in TransientFailure") ) +// PickResult contains information related to a connection chosen for an RPC. +type PickResult struct { + // SubConn is the connection to use for this pick, if its state is Ready. + // If the state is not Ready, gRPC will block the RPC until a new Picker is + // provided by the balancer (using ClientConn.UpdateState). The SubConn + // must be one returned by ClientConn.NewSubConn. + SubConn SubConn + + // Done is called when the RPC is completed. If the SubConn is not ready, + // this will be called with a nil parameter. If the SubConn is not a valid + // type, Done may not be called. May be nil if the balancer does not wish + // to be notified when the RPC completes. + Done func(DoneInfo) + + // Metadata provides a way for LB policies to inject arbitrary per-call + // metadata. Any metadata returned here will be merged with existing + // metadata added by the client application. + // + // LB policies with child policies are responsible for propagating metadata + // injected by their children to the ClientConn, as part of Pick(). + Metatada metadata.MD +} + +// TransientFailureError returns e. It exists for backward compatibility and +// will be deleted soon. +// +// Deprecated: no longer necessary, picker errors are treated this way by +// default. +func TransientFailureError(e error) error { return e } + // Picker is used by gRPC to pick a SubConn to send an RPC. -// Balancer is expected to generate a new picker from its snapshot everytime its +// Balancer is expected to generate a new picker from its snapshot every time its // internal state has changed. // -// The pickers used by gRPC can be updated by ClientConn.UpdateBalancerState(). +// The pickers used by gRPC can be updated by ClientConn.UpdateState(). type Picker interface { - // Pick returns the SubConn to be used to send the RPC. - // The returned SubConn must be one returned by NewSubConn(). + // Pick returns the connection to use for this RPC and related information. // - // This functions is expected to return: - // - a SubConn that is known to be READY; - // - ErrNoSubConnAvailable if no SubConn is available, but progress is being - // made (for example, some SubConn is in CONNECTING mode); - // - other errors if no active connecting is happening (for example, all SubConn - // are in TRANSIENT_FAILURE mode). + // Pick should not block. If the balancer needs to do I/O or any blocking + // or time-consuming work to service this call, it should return + // ErrNoSubConnAvailable, and the Pick call will be repeated by gRPC when + // the Picker is updated (using ClientConn.UpdateState). // - // If a SubConn is returned: - // - If it is READY, gRPC will send the RPC on it; - // - If it is not ready, or becomes not ready after it's returned, gRPC will block - // until UpdateBalancerState() is called and will call pick on the new picker. + // If an error is returned: // - // If the returned error is not nil: - // - If the error is ErrNoSubConnAvailable, gRPC will block until UpdateBalancerState() - // - If the error is ErrTransientFailure: - // - If the RPC is wait-for-ready, gRPC will block until UpdateBalancerState() - // is called to pick again; - // - Otherwise, RPC will fail with unavailable error. - // - Else (error is other non-nil error): - // - The RPC will fail with unavailable error. + // - If the error is ErrNoSubConnAvailable, gRPC will block until a new + // Picker is provided by the balancer (using ClientConn.UpdateState). // - // The returned done() function will be called once the rpc has finished, with the - // final status of that RPC. - // done may be nil if balancer doesn't care about the RPC status. - Pick(ctx context.Context, opts PickOptions) (conn SubConn, done func(DoneInfo), err error) + // - If the error is a status error (implemented by the grpc/status + // package), gRPC will terminate the RPC with the code and message + // provided. + // + // - For all other errors, wait for ready RPCs will wait, but non-wait for + // ready RPCs will be terminated with this error's Error() string and + // status code Unavailable. + Pick(info PickInfo) (PickResult, error) } // Balancer takes input from gRPC, manages SubConns, and collects and aggregates @@ -200,24 +329,76 @@ type Picker interface { // // It also generates and updates the Picker used by gRPC to pick SubConns for RPCs. // -// HandleSubConnectionStateChange, HandleResolvedAddrs and Close are guaranteed -// to be called synchronously from the same goroutine. -// There's no guarantee on picker.Pick, it may be called anytime. +// UpdateClientConnState, ResolverError, UpdateSubConnState, and Close are +// guaranteed to be called synchronously from the same goroutine. There's no +// guarantee on picker.Pick, it may be called anytime. type Balancer interface { - // HandleSubConnStateChange is called by gRPC when the connectivity state - // of sc has changed. - // Balancer is expected to aggregate all the state of SubConn and report - // that back to gRPC. - // Balancer should also generate and update Pickers when its internal state has - // been changed by the new state. - HandleSubConnStateChange(sc SubConn, state connectivity.State) - // HandleResolvedAddrs is called by gRPC to send updated resolved addresses to - // balancers. - // Balancer can create new SubConn or remove SubConn with the addresses. - // An empty address slice and a non-nil error will be passed if the resolver returns - // non-nil error to gRPC. - HandleResolvedAddrs([]resolver.Address, error) + // UpdateClientConnState is called by gRPC when the state of the ClientConn + // changes. If the error returned is ErrBadResolverState, the ClientConn + // will begin calling ResolveNow on the active name resolver with + // exponential backoff until a subsequent call to UpdateClientConnState + // returns a nil error. Any other errors are currently ignored. + UpdateClientConnState(ClientConnState) error + // ResolverError is called by gRPC when the name resolver reports an error. + ResolverError(error) + // UpdateSubConnState is called by gRPC when the state of a SubConn + // changes. + UpdateSubConnState(SubConn, SubConnState) // Close closes the balancer. The balancer is not required to call // ClientConn.RemoveSubConn for its existing SubConns. Close() } + +// ExitIdler is an optional interface for balancers to implement. If +// implemented, ExitIdle will be called when ClientConn.Connect is called, if +// the ClientConn is idle. If unimplemented, ClientConn.Connect will cause +// all SubConns to connect. +// +// Notice: it will be required for all balancers to implement this in a future +// release. +type ExitIdler interface { + // ExitIdle instructs the LB policy to reconnect to backends / exit the + // IDLE state, if appropriate and possible. Note that SubConns that enter + // the IDLE state will not reconnect until SubConn.Connect is called. + ExitIdle() +} + +// SubConnState describes the state of a SubConn. +type SubConnState struct { + // ConnectivityState is the connectivity state of the SubConn. + ConnectivityState connectivity.State + // ConnectionError is set if the ConnectivityState is TransientFailure, + // describing the reason the SubConn failed. Otherwise, it is nil. + ConnectionError error +} + +// ClientConnState describes the state of a ClientConn relevant to the +// balancer. +type ClientConnState struct { + ResolverState resolver.State + // The parsed load balancing configuration returned by the builder's + // ParseConfig method, if implemented. + BalancerConfig serviceconfig.LoadBalancingConfig +} + +// ErrBadResolverState may be returned by UpdateClientConnState to indicate a +// problem with the provided name resolver data. +var ErrBadResolverState = errors.New("bad resolver state") + +// A ProducerBuilder is a simple constructor for a Producer. It is used by the +// SubConn to create producers when needed. +type ProducerBuilder interface { + // Build creates a Producer. The first parameter is always a + // grpc.ClientConnInterface (a type to allow creating RPCs/streams on the + // associated SubConn), but is declared as interface{} to avoid a + // dependency cycle. Should also return a close function that will be + // called when all references to the Producer have been given up. + Build(grpcClientConnInterface interface{}) (p Producer, close func()) +} + +// A Producer is a type shared among potentially many consumers. It is +// associated with a SubConn, and an implementation will typically contain +// other methods to provide additional functionality, e.g. configuration or +// subscription registration. +type Producer interface { +} diff --git a/vendor/google.golang.org/grpc/balancer/base/balancer.go b/vendor/google.golang.org/grpc/balancer/base/balancer.go index 1e962b7..3929c26 100644 --- a/vendor/google.golang.org/grpc/balancer/base/balancer.go +++ b/vendor/google.golang.org/grpc/balancer/base/balancer.go @@ -19,31 +19,39 @@ package base import ( - "golang.org/x/net/context" + "errors" + "fmt" + "google.golang.org/grpc/balancer" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/resolver" ) +var logger = grpclog.Component("balancer") + type baseBuilder struct { name string pickerBuilder PickerBuilder + config Config } func (bb *baseBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer { - return &baseBalancer{ + bal := &baseBalancer{ cc: cc, pickerBuilder: bb.pickerBuilder, - subConns: make(map[resolver.Address]balancer.SubConn), + subConns: resolver.NewAddressMap(), scStates: make(map[balancer.SubConn]connectivity.State), - csEvltr: &connectivityStateEvaluator{}, - // Initialize picker to a picker that always return - // ErrNoSubConnAvailable, because when state of a SubConn changes, we - // may call UpdateBalancerState with this picker. - picker: NewErrPicker(balancer.ErrNoSubConnAvailable), + csEvltr: &balancer.ConnectivityStateEvaluator{}, + config: bb.config, + state: connectivity.Connecting, } + // Initialize picker to a picker that always returns + // ErrNoSubConnAvailable, because when state of a SubConn changes, we + // may call UpdateState with this picker. + bal.picker = NewErrPicker(balancer.ErrNoSubConnAvailable) + return bal } func (bb *baseBuilder) Name() string { @@ -54,72 +62,141 @@ type baseBalancer struct { cc balancer.ClientConn pickerBuilder PickerBuilder - csEvltr *connectivityStateEvaluator + csEvltr *balancer.ConnectivityStateEvaluator state connectivity.State - subConns map[resolver.Address]balancer.SubConn + subConns *resolver.AddressMap scStates map[balancer.SubConn]connectivity.State picker balancer.Picker + config Config + + resolverErr error // the last error reported by the resolver; cleared on successful resolution + connErr error // the last connection error; cleared upon leaving TransientFailure } -func (b *baseBalancer) HandleResolvedAddrs(addrs []resolver.Address, err error) { - if err != nil { - grpclog.Infof("base.baseBalancer: HandleResolvedAddrs called with error %v", err) +func (b *baseBalancer) ResolverError(err error) { + b.resolverErr = err + if b.subConns.Len() == 0 { + b.state = connectivity.TransientFailure + } + + if b.state != connectivity.TransientFailure { + // The picker will not change since the balancer does not currently + // report an error. return } - grpclog.Infoln("base.baseBalancer: got new resolved addresses: ", addrs) + b.regeneratePicker() + b.cc.UpdateState(balancer.State{ + ConnectivityState: b.state, + Picker: b.picker, + }) +} + +func (b *baseBalancer) UpdateClientConnState(s balancer.ClientConnState) error { + // TODO: handle s.ResolverState.ServiceConfig? + if logger.V(2) { + logger.Info("base.baseBalancer: got new ClientConn state: ", s) + } + // Successful resolution; clear resolver error and ensure we return nil. + b.resolverErr = nil // addrsSet is the set converted from addrs, it's used for quick lookup of an address. - addrsSet := make(map[resolver.Address]struct{}) - for _, a := range addrs { - addrsSet[a] = struct{}{} - if _, ok := b.subConns[a]; !ok { + addrsSet := resolver.NewAddressMap() + for _, a := range s.ResolverState.Addresses { + addrsSet.Set(a, nil) + if _, ok := b.subConns.Get(a); !ok { // a is a new address (not existing in b.subConns). - sc, err := b.cc.NewSubConn([]resolver.Address{a}, balancer.NewSubConnOptions{}) + sc, err := b.cc.NewSubConn([]resolver.Address{a}, balancer.NewSubConnOptions{HealthCheckEnabled: b.config.HealthCheck}) if err != nil { - grpclog.Warningf("base.baseBalancer: failed to create new SubConn: %v", err) + logger.Warningf("base.baseBalancer: failed to create new SubConn: %v", err) continue } - b.subConns[a] = sc + b.subConns.Set(a, sc) b.scStates[sc] = connectivity.Idle + b.csEvltr.RecordTransition(connectivity.Shutdown, connectivity.Idle) sc.Connect() } } - for a, sc := range b.subConns { + for _, a := range b.subConns.Keys() { + sci, _ := b.subConns.Get(a) + sc := sci.(balancer.SubConn) // a was removed by resolver. - if _, ok := addrsSet[a]; !ok { + if _, ok := addrsSet.Get(a); !ok { b.cc.RemoveSubConn(sc) - delete(b.subConns, a) + b.subConns.Delete(a) // Keep the state of this sc in b.scStates until sc's state becomes Shutdown. - // The entry will be deleted in HandleSubConnStateChange. + // The entry will be deleted in UpdateSubConnState. } } + // If resolver state contains no addresses, return an error so ClientConn + // will trigger re-resolve. Also records this as an resolver error, so when + // the overall state turns transient failure, the error message will have + // the zero address information. + if len(s.ResolverState.Addresses) == 0 { + b.ResolverError(errors.New("produced zero addresses")) + return balancer.ErrBadResolverState + } + + b.regeneratePicker() + b.cc.UpdateState(balancer.State{ConnectivityState: b.state, Picker: b.picker}) + return nil +} + +// mergeErrors builds an error from the last connection error and the last +// resolver error. Must only be called if b.state is TransientFailure. +func (b *baseBalancer) mergeErrors() error { + // connErr must always be non-nil unless there are no SubConns, in which + // case resolverErr must be non-nil. + if b.connErr == nil { + return fmt.Errorf("last resolver error: %v", b.resolverErr) + } + if b.resolverErr == nil { + return fmt.Errorf("last connection error: %v", b.connErr) + } + return fmt.Errorf("last connection error: %v; last resolver error: %v", b.connErr, b.resolverErr) } // regeneratePicker takes a snapshot of the balancer, and generates a picker // from it. The picker is -// - errPicker with ErrTransientFailure if the balancer is in TransientFailure, -// - built by the pickerBuilder with all READY SubConns otherwise. +// - errPicker if the balancer is in TransientFailure, +// - built by the pickerBuilder with all READY SubConns otherwise. func (b *baseBalancer) regeneratePicker() { if b.state == connectivity.TransientFailure { - b.picker = NewErrPicker(balancer.ErrTransientFailure) + b.picker = NewErrPicker(b.mergeErrors()) return } - readySCs := make(map[resolver.Address]balancer.SubConn) + readySCs := make(map[balancer.SubConn]SubConnInfo) // Filter out all ready SCs from full subConn map. - for addr, sc := range b.subConns { + for _, addr := range b.subConns.Keys() { + sci, _ := b.subConns.Get(addr) + sc := sci.(balancer.SubConn) if st, ok := b.scStates[sc]; ok && st == connectivity.Ready { - readySCs[addr] = sc + readySCs[sc] = SubConnInfo{Address: addr} } } - b.picker = b.pickerBuilder.Build(readySCs) + b.picker = b.pickerBuilder.Build(PickerBuildInfo{ReadySCs: readySCs}) } -func (b *baseBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) { - grpclog.Infof("base.baseBalancer: handle SubConn state change: %p, %v", sc, s) +func (b *baseBalancer) UpdateSubConnState(sc balancer.SubConn, state balancer.SubConnState) { + s := state.ConnectivityState + if logger.V(2) { + logger.Infof("base.baseBalancer: handle SubConn state change: %p, %v", sc, s) + } oldS, ok := b.scStates[sc] if !ok { - grpclog.Infof("base.baseBalancer: got state changes for an unknown SubConn: %p, %v", sc, s) + if logger.V(2) { + logger.Infof("base.baseBalancer: got state changes for an unknown SubConn: %p, %v", sc, s) + } + return + } + if oldS == connectivity.TransientFailure && + (s == connectivity.Connecting || s == connectivity.Idle) { + // Once a subconn enters TRANSIENT_FAILURE, ignore subsequent IDLE or + // CONNECTING transitions to prevent the aggregated state from being + // always CONNECTING when many backends exist but are all down. + if s == connectivity.Idle { + sc.Connect() + } return } b.scStates[sc] = s @@ -130,23 +207,22 @@ func (b *baseBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectiv // When an address was removed by resolver, b called RemoveSubConn but // kept the sc's state in scStates. Remove state for this sc here. delete(b.scStates, sc) + case connectivity.TransientFailure: + // Save error to be reported via picker. + b.connErr = state.ConnectionError } - oldAggrState := b.state - b.state = b.csEvltr.recordTransition(oldS, s) + b.state = b.csEvltr.RecordTransition(oldS, s) // Regenerate picker when one of the following happens: - // - this sc became ready from not-ready - // - this sc became not-ready from ready - // - the aggregated state of balancer became TransientFailure from non-TransientFailure - // - the aggregated state of balancer became non-TransientFailure from TransientFailure + // - this sc entered or left ready + // - the aggregated state of balancer is TransientFailure + // (may need to update error message) if (s == connectivity.Ready) != (oldS == connectivity.Ready) || - (b.state == connectivity.TransientFailure) != (oldAggrState == connectivity.TransientFailure) { + b.state == connectivity.TransientFailure { b.regeneratePicker() } - - b.cc.UpdateBalancerState(b.state, b.picker) - return + b.cc.UpdateState(balancer.State{ConnectivityState: b.state, Picker: b.picker}) } // Close is a nop because base balancer doesn't have internal state to clean up, @@ -154,56 +230,25 @@ func (b *baseBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectiv func (b *baseBalancer) Close() { } -// NewErrPicker returns a picker that always returns err on Pick(). +// ExitIdle is a nop because the base balancer attempts to stay connected to +// all SubConns at all times. +func (b *baseBalancer) ExitIdle() { +} + +// NewErrPicker returns a Picker that always returns err on Pick(). func NewErrPicker(err error) balancer.Picker { return &errPicker{err: err} } +// NewErrPickerV2 is temporarily defined for backward compatibility reasons. +// +// Deprecated: use NewErrPicker instead. +var NewErrPickerV2 = NewErrPicker + type errPicker struct { err error // Pick() always returns this err. } -func (p *errPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - return nil, nil, p.err -} - -// connectivityStateEvaluator gets updated by addrConns when their -// states transition, based on which it evaluates the state of -// ClientConn. -type connectivityStateEvaluator struct { - numReady uint64 // Number of addrConns in ready state. - numConnecting uint64 // Number of addrConns in connecting state. - numTransientFailure uint64 // Number of addrConns in transientFailure. -} - -// recordTransition records state change happening in every subConn and based on -// that it evaluates what aggregated state should be. -// It can only transition between Ready, Connecting and TransientFailure. Other states, -// Idle and Shutdown are transitioned into by ClientConn; in the beginning of the connection -// before any subConn is created ClientConn is in idle state. In the end when ClientConn -// closes it is in Shutdown state. -// -// recordTransition should only be called synchronously from the same goroutine. -func (cse *connectivityStateEvaluator) recordTransition(oldState, newState connectivity.State) connectivity.State { - // Update counters. - for idx, state := range []connectivity.State{oldState, newState} { - updateVal := 2*uint64(idx) - 1 // -1 for oldState and +1 for new. - switch state { - case connectivity.Ready: - cse.numReady += updateVal - case connectivity.Connecting: - cse.numConnecting += updateVal - case connectivity.TransientFailure: - cse.numTransientFailure += updateVal - } - } - - // Evaluate. - if cse.numReady > 0 { - return connectivity.Ready - } - if cse.numConnecting > 0 { - return connectivity.Connecting - } - return connectivity.TransientFailure +func (p *errPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error) { + return balancer.PickResult{}, p.err } diff --git a/vendor/google.golang.org/grpc/balancer/base/base.go b/vendor/google.golang.org/grpc/balancer/base/base.go index 012ace2..e31d76e 100644 --- a/vendor/google.golang.org/grpc/balancer/base/base.go +++ b/vendor/google.golang.org/grpc/balancer/base/base.go @@ -37,16 +37,35 @@ import ( // PickerBuilder creates balancer.Picker. type PickerBuilder interface { - // Build takes a slice of ready SubConns, and returns a picker that will be - // used by gRPC to pick a SubConn. - Build(readySCs map[resolver.Address]balancer.SubConn) balancer.Picker + // Build returns a picker that will be used by gRPC to pick a SubConn. + Build(info PickerBuildInfo) balancer.Picker } -// NewBalancerBuilder returns a balancer builder. The balancers -// built by this builder will use the picker builder to build pickers. -func NewBalancerBuilder(name string, pb PickerBuilder) balancer.Builder { +// PickerBuildInfo contains information needed by the picker builder to +// construct a picker. +type PickerBuildInfo struct { + // ReadySCs is a map from all ready SubConns to the Addresses used to + // create them. + ReadySCs map[balancer.SubConn]SubConnInfo +} + +// SubConnInfo contains information about a SubConn created by the base +// balancer. +type SubConnInfo struct { + Address resolver.Address // the address used to create this SubConn +} + +// Config contains the config info about the base balancer builder. +type Config struct { + // HealthCheck indicates whether health checking should be enabled for this specific balancer. + HealthCheck bool +} + +// NewBalancerBuilder returns a base balancer builder configured by the provided config. +func NewBalancerBuilder(name string, pb PickerBuilder, config Config) balancer.Builder { return &baseBuilder{ name: name, pickerBuilder: pb, + config: config, } } diff --git a/vendor/google.golang.org/grpc/balancer/conn_state_evaluator.go b/vendor/google.golang.org/grpc/balancer/conn_state_evaluator.go new file mode 100644 index 0000000..c334135 --- /dev/null +++ b/vendor/google.golang.org/grpc/balancer/conn_state_evaluator.go @@ -0,0 +1,74 @@ +/* + * + * Copyright 2022 gRPC authors. + * + * 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 balancer + +import "google.golang.org/grpc/connectivity" + +// ConnectivityStateEvaluator takes the connectivity states of multiple SubConns +// and returns one aggregated connectivity state. +// +// It's not thread safe. +type ConnectivityStateEvaluator struct { + numReady uint64 // Number of addrConns in ready state. + numConnecting uint64 // Number of addrConns in connecting state. + numTransientFailure uint64 // Number of addrConns in transient failure state. + numIdle uint64 // Number of addrConns in idle state. +} + +// RecordTransition records state change happening in subConn and based on that +// it evaluates what aggregated state should be. +// +// - If at least one SubConn in Ready, the aggregated state is Ready; +// - Else if at least one SubConn in Connecting, the aggregated state is Connecting; +// - Else if at least one SubConn is Idle, the aggregated state is Idle; +// - Else if at least one SubConn is TransientFailure (or there are no SubConns), the aggregated state is Transient Failure. +// +// Shutdown is not considered. +func (cse *ConnectivityStateEvaluator) RecordTransition(oldState, newState connectivity.State) connectivity.State { + // Update counters. + for idx, state := range []connectivity.State{oldState, newState} { + updateVal := 2*uint64(idx) - 1 // -1 for oldState and +1 for new. + switch state { + case connectivity.Ready: + cse.numReady += updateVal + case connectivity.Connecting: + cse.numConnecting += updateVal + case connectivity.TransientFailure: + cse.numTransientFailure += updateVal + case connectivity.Idle: + cse.numIdle += updateVal + } + } + return cse.CurrentState() +} + +// CurrentState returns the current aggregate conn state by evaluating the counters +func (cse *ConnectivityStateEvaluator) CurrentState() connectivity.State { + // Evaluate. + if cse.numReady > 0 { + return connectivity.Ready + } + if cse.numConnecting > 0 { + return connectivity.Connecting + } + if cse.numIdle > 0 { + return connectivity.Idle + } + return connectivity.TransientFailure +} diff --git a/vendor/google.golang.org/grpc/balancer/grpclb/state/state.go b/vendor/google.golang.org/grpc/balancer/grpclb/state/state.go new file mode 100644 index 0000000..4ecfa1c --- /dev/null +++ b/vendor/google.golang.org/grpc/balancer/grpclb/state/state.go @@ -0,0 +1,51 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 state declares grpclb types to be set by resolvers wishing to pass +// information to grpclb via resolver.State Attributes. +package state + +import ( + "google.golang.org/grpc/resolver" +) + +// keyType is the key to use for storing State in Attributes. +type keyType string + +const key = keyType("grpc.grpclb.state") + +// State contains gRPCLB-relevant data passed from the name resolver. +type State struct { + // BalancerAddresses contains the remote load balancer address(es). If + // set, overrides any resolver-provided addresses with Type of GRPCLB. + BalancerAddresses []resolver.Address +} + +// Set returns a copy of the provided state with attributes containing s. s's +// data should not be mutated after calling Set. +func Set(state resolver.State, s *State) resolver.State { + state.Attributes = state.Attributes.WithValue(key, s) + return state +} + +// Get returns the grpclb State in the resolver.State, or nil if not present. +// The returned data should not be mutated. +func Get(state resolver.State) *State { + s, _ := state.Attributes.Value(key).(*State) + return s +} diff --git a/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go b/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go index 2eda0a1..f7031ad 100644 --- a/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go +++ b/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go @@ -22,21 +22,22 @@ package roundrobin import ( - "sync" + "sync/atomic" - "golang.org/x/net/context" "google.golang.org/grpc/balancer" "google.golang.org/grpc/balancer/base" "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/resolver" + "google.golang.org/grpc/internal/grpcrand" ) // Name is the name of round_robin balancer. const Name = "round_robin" +var logger = grpclog.Component("roundrobin") + // newBuilder creates a new roundrobin balancer builder. func newBuilder() balancer.Builder { - return base.NewBalancerBuilder(Name, &rrPickerBuilder{}) + return base.NewBalancerBuilder(Name, &rrPickerBuilder{}, base.Config{HealthCheck: true}) } func init() { @@ -45,14 +46,21 @@ func init() { type rrPickerBuilder struct{} -func (*rrPickerBuilder) Build(readySCs map[resolver.Address]balancer.SubConn) balancer.Picker { - grpclog.Infof("roundrobinPicker: newPicker called with readySCs: %v", readySCs) - var scs []balancer.SubConn - for _, sc := range readySCs { +func (*rrPickerBuilder) Build(info base.PickerBuildInfo) balancer.Picker { + logger.Infof("roundrobinPicker: Build called with info: %v", info) + if len(info.ReadySCs) == 0 { + return base.NewErrPicker(balancer.ErrNoSubConnAvailable) + } + scs := make([]balancer.SubConn, 0, len(info.ReadySCs)) + for sc := range info.ReadySCs { scs = append(scs, sc) } return &rrPicker{ subConns: scs, + // Start at a random index, as the same RR balancer rebuilds a new + // picker when SubConn states change, and we don't want to apply excess + // load to the first server in the list. + next: uint32(grpcrand.Intn(len(scs))), } } @@ -61,19 +69,13 @@ type rrPicker struct { // created. The slice is immutable. Each Get() will do a round robin // selection from it and return the selected SubConn. subConns []balancer.SubConn - - mu sync.Mutex - next int + next uint32 } -func (p *rrPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - if len(p.subConns) <= 0 { - return nil, nil, balancer.ErrNoSubConnAvailable - } +func (p *rrPicker) Pick(balancer.PickInfo) (balancer.PickResult, error) { + subConnsLen := uint32(len(p.subConns)) + nextIndex := atomic.AddUint32(&p.next, 1) - p.mu.Lock() - sc := p.subConns[p.next] - p.next = (p.next + 1) % len(p.subConns) - p.mu.Unlock() - return sc, nil, nil + sc := p.subConns[nextIndex%subConnsLen] + return balancer.PickResult{SubConn: sc}, nil } diff --git a/vendor/google.golang.org/grpc/balancer_conn_wrappers.go b/vendor/google.golang.org/grpc/balancer_conn_wrappers.go index db6f0ae..0359956 100644 --- a/vendor/google.golang.org/grpc/balancer_conn_wrappers.go +++ b/vendor/google.golang.org/grpc/balancer_conn_wrappers.go @@ -19,148 +19,182 @@ package grpc import ( + "context" "fmt" + "strings" "sync" "google.golang.org/grpc/balancer" + "google.golang.org/grpc/codes" "google.golang.org/grpc/connectivity" - "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal/balancer/gracefulswitch" + "google.golang.org/grpc/internal/buffer" + "google.golang.org/grpc/internal/channelz" + "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/resolver" + "google.golang.org/grpc/status" ) -// scStateUpdate contains the subConn and the new state it changed to. -type scStateUpdate struct { - sc balancer.SubConn - state connectivity.State -} +// ccBalancerWrapper sits between the ClientConn and the Balancer. +// +// ccBalancerWrapper implements methods corresponding to the ones on the +// balancer.Balancer interface. The ClientConn is free to call these methods +// concurrently and the ccBalancerWrapper ensures that calls from the ClientConn +// to the Balancer happen synchronously and in order. +// +// ccBalancerWrapper also implements the balancer.ClientConn interface and is +// passed to the Balancer implementations. It invokes unexported methods on the +// ClientConn to handle these calls from the Balancer. +// +// It uses the gracefulswitch.Balancer internally to ensure that balancer +// switches happen in a graceful manner. +type ccBalancerWrapper struct { + cc *ClientConn -// scStateUpdateBuffer is an unbounded channel for scStateChangeTuple. -// TODO make a general purpose buffer that uses interface{}. -type scStateUpdateBuffer struct { - c chan *scStateUpdate - mu sync.Mutex - backlog []*scStateUpdate -} + // Since these fields are accessed only from handleXxx() methods which are + // synchronized by the watcher goroutine, we do not need a mutex to protect + // these fields. + balancer *gracefulswitch.Balancer + curBalancerName string -func newSCStateUpdateBuffer() *scStateUpdateBuffer { - return &scStateUpdateBuffer{ - c: make(chan *scStateUpdate, 1), - } + updateCh *buffer.Unbounded // Updates written on this channel are processed by watcher(). + resultCh *buffer.Unbounded // Results of calls to UpdateClientConnState() are pushed here. + closed *grpcsync.Event // Indicates if close has been called. + done *grpcsync.Event // Indicates if close has completed its work. } -func (b *scStateUpdateBuffer) put(t *scStateUpdate) { - b.mu.Lock() - defer b.mu.Unlock() - if len(b.backlog) == 0 { - select { - case b.c <- t: - return - default: - } +// newCCBalancerWrapper creates a new balancer wrapper. The underlying balancer +// is not created until the switchTo() method is invoked. +func newCCBalancerWrapper(cc *ClientConn, bopts balancer.BuildOptions) *ccBalancerWrapper { + ccb := &ccBalancerWrapper{ + cc: cc, + updateCh: buffer.NewUnbounded(), + resultCh: buffer.NewUnbounded(), + closed: grpcsync.NewEvent(), + done: grpcsync.NewEvent(), } - b.backlog = append(b.backlog, t) + go ccb.watcher() + ccb.balancer = gracefulswitch.NewBalancer(ccb, bopts) + return ccb } -func (b *scStateUpdateBuffer) load() { - b.mu.Lock() - defer b.mu.Unlock() - if len(b.backlog) > 0 { - select { - case b.c <- b.backlog[0]: - b.backlog[0] = nil - b.backlog = b.backlog[1:] - default: - } - } -} +// The following xxxUpdate structs wrap the arguments received as part of the +// corresponding update. The watcher goroutine uses the 'type' of the update to +// invoke the appropriate handler routine to handle the update. -// get returns the channel that the scStateUpdate will be sent to. -// -// Upon receiving, the caller should call load to send another -// scStateChangeTuple onto the channel if there is any. -func (b *scStateUpdateBuffer) get() <-chan *scStateUpdate { - return b.c +type ccStateUpdate struct { + ccs *balancer.ClientConnState } -// resolverUpdate contains the new resolved addresses or error if there's -// any. -type resolverUpdate struct { - addrs []resolver.Address +type scStateUpdate struct { + sc balancer.SubConn + state connectivity.State err error } -// ccBalancerWrapper is a wrapper on top of cc for balancers. -// It implements balancer.ClientConn interface. -type ccBalancerWrapper struct { - cc *ClientConn - balancer balancer.Balancer - stateChangeQueue *scStateUpdateBuffer - resolverUpdateCh chan *resolverUpdate - done chan struct{} +type exitIdleUpdate struct{} - mu sync.Mutex - subConns map[*acBalancerWrapper]struct{} +type resolverErrorUpdate struct { + err error } -func newCCBalancerWrapper(cc *ClientConn, b balancer.Builder, bopts balancer.BuildOptions) *ccBalancerWrapper { - ccb := &ccBalancerWrapper{ - cc: cc, - stateChangeQueue: newSCStateUpdateBuffer(), - resolverUpdateCh: make(chan *resolverUpdate, 1), - done: make(chan struct{}), - subConns: make(map[*acBalancerWrapper]struct{}), - } - go ccb.watcher() - ccb.balancer = b.Build(ccb, bopts) - return ccb +type switchToUpdate struct { + name string +} + +type subConnUpdate struct { + acbw *acBalancerWrapper } -// watcher balancer functions sequencially, so the balancer can be implemeneted -// lock-free. +// watcher is a long-running goroutine which reads updates from a channel and +// invokes corresponding methods on the underlying balancer. It ensures that +// these methods are invoked in a synchronous fashion. It also ensures that +// these methods are invoked in the order in which the updates were received. func (ccb *ccBalancerWrapper) watcher() { for { select { - case t := <-ccb.stateChangeQueue.get(): - ccb.stateChangeQueue.load() - select { - case <-ccb.done: - ccb.balancer.Close() - return - default: + case u := <-ccb.updateCh.Get(): + ccb.updateCh.Load() + if ccb.closed.HasFired() { + break } - ccb.balancer.HandleSubConnStateChange(t.sc, t.state) - case t := <-ccb.resolverUpdateCh: - select { - case <-ccb.done: - ccb.balancer.Close() - return + switch update := u.(type) { + case *ccStateUpdate: + ccb.handleClientConnStateChange(update.ccs) + case *scStateUpdate: + ccb.handleSubConnStateChange(update) + case *exitIdleUpdate: + ccb.handleExitIdle() + case *resolverErrorUpdate: + ccb.handleResolverError(update.err) + case *switchToUpdate: + ccb.handleSwitchTo(update.name) + case *subConnUpdate: + ccb.handleRemoveSubConn(update.acbw) default: + logger.Errorf("ccBalancerWrapper.watcher: unknown update %+v, type %T", update, update) } - ccb.balancer.HandleResolvedAddrs(t.addrs, t.err) - case <-ccb.done: + case <-ccb.closed.Done(): } - select { - case <-ccb.done: - ccb.balancer.Close() - ccb.mu.Lock() - scs := ccb.subConns - ccb.subConns = nil - ccb.mu.Unlock() - for acbw := range scs { - ccb.cc.removeAddrConn(acbw.getAddrConn(), errConnDrain) - } + if ccb.closed.HasFired() { + ccb.handleClose() return - default: } } } -func (ccb *ccBalancerWrapper) close() { - close(ccb.done) +// updateClientConnState is invoked by grpc to push a ClientConnState update to +// the underlying balancer. +// +// Unlike other methods invoked by grpc to push updates to the underlying +// balancer, this method cannot simply push the update onto the update channel +// and return. It needs to return the error returned by the underlying balancer +// back to grpc which propagates that to the resolver. +func (ccb *ccBalancerWrapper) updateClientConnState(ccs *balancer.ClientConnState) error { + ccb.updateCh.Put(&ccStateUpdate{ccs: ccs}) + + var res interface{} + select { + case res = <-ccb.resultCh.Get(): + ccb.resultCh.Load() + case <-ccb.closed.Done(): + // Return early if the balancer wrapper is closed while we are waiting for + // the underlying balancer to process a ClientConnState update. + return nil + } + // If the returned error is nil, attempting to type assert to error leads to + // panic. So, this needs to handled separately. + if res == nil { + return nil + } + return res.(error) } -func (ccb *ccBalancerWrapper) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State) { +// handleClientConnStateChange handles a ClientConnState update from the update +// channel and invokes the appropriate method on the underlying balancer. +// +// If the addresses specified in the update contain addresses of type "grpclb" +// and the selected LB policy is not "grpclb", these addresses will be filtered +// out and ccs will be modified with the updated address list. +func (ccb *ccBalancerWrapper) handleClientConnStateChange(ccs *balancer.ClientConnState) { + if ccb.curBalancerName != grpclbName { + // Filter any grpclb addresses since we don't have the grpclb balancer. + var addrs []resolver.Address + for _, addr := range ccs.ResolverState.Addresses { + if addr.Type == resolver.GRPCLB { + continue + } + addrs = append(addrs, addr) + } + ccs.ResolverState.Addresses = addrs + } + ccb.resultCh.Put(ccb.balancer.UpdateClientConnState(*ccs)) +} + +// updateSubConnState is invoked by grpc to push a subConn state update to the +// underlying balancer. +func (ccb *ccBalancerWrapper) updateSubConnState(sc balancer.SubConn, s connectivity.State, err error) { // When updating addresses for a SubConn, if the address in use is not in // the new addresses, the old ac will be tearDown() and a new ac will be // created. tearDown() generates a state change with Shutdown state, we @@ -171,69 +205,153 @@ func (ccb *ccBalancerWrapper) handleSubConnStateChange(sc balancer.SubConn, s co if sc == nil { return } - ccb.stateChangeQueue.put(&scStateUpdate{ + ccb.updateCh.Put(&scStateUpdate{ sc: sc, state: s, + err: err, }) } -func (ccb *ccBalancerWrapper) handleResolvedAddrs(addrs []resolver.Address, err error) { - select { - case <-ccb.resolverUpdateCh: - default: +// handleSubConnStateChange handles a SubConnState update from the update +// channel and invokes the appropriate method on the underlying balancer. +func (ccb *ccBalancerWrapper) handleSubConnStateChange(update *scStateUpdate) { + ccb.balancer.UpdateSubConnState(update.sc, balancer.SubConnState{ConnectivityState: update.state, ConnectionError: update.err}) +} + +func (ccb *ccBalancerWrapper) exitIdle() { + ccb.updateCh.Put(&exitIdleUpdate{}) +} + +func (ccb *ccBalancerWrapper) handleExitIdle() { + if ccb.cc.GetState() != connectivity.Idle { + return } - ccb.resolverUpdateCh <- &resolverUpdate{ - addrs: addrs, - err: err, + ccb.balancer.ExitIdle() +} + +func (ccb *ccBalancerWrapper) resolverError(err error) { + ccb.updateCh.Put(&resolverErrorUpdate{err: err}) +} + +func (ccb *ccBalancerWrapper) handleResolverError(err error) { + ccb.balancer.ResolverError(err) +} + +// switchTo is invoked by grpc to instruct the balancer wrapper to switch to the +// LB policy identified by name. +// +// ClientConn calls newCCBalancerWrapper() at creation time. Upon receipt of the +// first good update from the name resolver, it determines the LB policy to use +// and invokes the switchTo() method. Upon receipt of every subsequent update +// from the name resolver, it invokes this method. +// +// the ccBalancerWrapper keeps track of the current LB policy name, and skips +// the graceful balancer switching process if the name does not change. +func (ccb *ccBalancerWrapper) switchTo(name string) { + ccb.updateCh.Put(&switchToUpdate{name: name}) +} + +// handleSwitchTo handles a balancer switch update from the update channel. It +// calls the SwitchTo() method on the gracefulswitch.Balancer with a +// balancer.Builder corresponding to name. If no balancer.Builder is registered +// for the given name, it uses the default LB policy which is "pick_first". +func (ccb *ccBalancerWrapper) handleSwitchTo(name string) { + // TODO: Other languages use case-insensitive balancer registries. We should + // switch as well. See: https://github.com/grpc/grpc-go/issues/5288. + if strings.EqualFold(ccb.curBalancerName, name) { + return } + + // TODO: Ensure that name is a registered LB policy when we get here. + // We currently only validate the `loadBalancingConfig` field. We need to do + // the same for the `loadBalancingPolicy` field and reject the service config + // if the specified policy is not registered. + builder := balancer.Get(name) + if builder == nil { + channelz.Warningf(logger, ccb.cc.channelzID, "Channel switches to new LB policy %q, since the specified LB policy %q was not registered", PickFirstBalancerName, name) + builder = newPickfirstBuilder() + } else { + channelz.Infof(logger, ccb.cc.channelzID, "Channel switches to new LB policy %q", name) + } + + if err := ccb.balancer.SwitchTo(builder); err != nil { + channelz.Errorf(logger, ccb.cc.channelzID, "Channel failed to build new LB policy %q: %v", name, err) + return + } + ccb.curBalancerName = builder.Name() +} + +// handleRemoveSucConn handles a request from the underlying balancer to remove +// a subConn. +// +// See comments in RemoveSubConn() for more details. +func (ccb *ccBalancerWrapper) handleRemoveSubConn(acbw *acBalancerWrapper) { + ccb.cc.removeAddrConn(acbw.getAddrConn(), errConnDrain) +} + +func (ccb *ccBalancerWrapper) close() { + ccb.closed.Fire() + <-ccb.done.Done() +} + +func (ccb *ccBalancerWrapper) handleClose() { + ccb.balancer.Close() + ccb.done.Fire() } func (ccb *ccBalancerWrapper) NewSubConn(addrs []resolver.Address, opts balancer.NewSubConnOptions) (balancer.SubConn, error) { if len(addrs) <= 0 { return nil, fmt.Errorf("grpc: cannot create SubConn with empty address list") } - ccb.mu.Lock() - defer ccb.mu.Unlock() - if ccb.subConns == nil { - return nil, fmt.Errorf("grpc: ClientConn balancer wrapper was closed") - } - ac, err := ccb.cc.newAddrConn(addrs) + ac, err := ccb.cc.newAddrConn(addrs, opts) if err != nil { + channelz.Warningf(logger, ccb.cc.channelzID, "acBalancerWrapper: NewSubConn: failed to newAddrConn: %v", err) return nil, err } - acbw := &acBalancerWrapper{ac: ac} + acbw := &acBalancerWrapper{ac: ac, producers: make(map[balancer.ProducerBuilder]*refCountedProducer)} acbw.ac.mu.Lock() ac.acbw = acbw acbw.ac.mu.Unlock() - ccb.subConns[acbw] = struct{}{} return acbw, nil } func (ccb *ccBalancerWrapper) RemoveSubConn(sc balancer.SubConn) { + // Before we switched the ccBalancerWrapper to use gracefulswitch.Balancer, it + // was required to handle the RemoveSubConn() method asynchronously by pushing + // the update onto the update channel. This was done to avoid a deadlock as + // switchBalancer() was holding cc.mu when calling Close() on the old + // balancer, which would in turn call RemoveSubConn(). + // + // With the use of gracefulswitch.Balancer in ccBalancerWrapper, handling this + // asynchronously is probably not required anymore since the switchTo() method + // handles the balancer switch by pushing the update onto the channel. + // TODO(easwars): Handle this inline. acbw, ok := sc.(*acBalancerWrapper) if !ok { return } - ccb.mu.Lock() - defer ccb.mu.Unlock() - if ccb.subConns == nil { - return - } - delete(ccb.subConns, acbw) - ccb.cc.removeAddrConn(acbw.getAddrConn(), errConnDrain) + ccb.updateCh.Put(&subConnUpdate{acbw: acbw}) } -func (ccb *ccBalancerWrapper) UpdateBalancerState(s connectivity.State, p balancer.Picker) { - ccb.mu.Lock() - defer ccb.mu.Unlock() - if ccb.subConns == nil { +func (ccb *ccBalancerWrapper) UpdateAddresses(sc balancer.SubConn, addrs []resolver.Address) { + acbw, ok := sc.(*acBalancerWrapper) + if !ok { return } - ccb.cc.csMgr.updateState(s) - ccb.cc.blockingpicker.updatePicker(p) + acbw.UpdateAddresses(addrs) } -func (ccb *ccBalancerWrapper) ResolveNow(o resolver.ResolveNowOption) { +func (ccb *ccBalancerWrapper) UpdateState(s balancer.State) { + // Update picker before updating state. Even though the ordering here does + // not matter, it can lead to multiple calls of Pick in the common start-up + // case where we wait for ready and then perform an RPC. If the picker is + // updated later, we could call the "connecting" picker when the state is + // updated, and then call the "ready" picker after the picker gets updated. + ccb.cc.blockingpicker.updatePicker(s.Picker) + ccb.cc.csMgr.updateState(s.ConnectivityState) +} + +func (ccb *ccBalancerWrapper) ResolveNow(o resolver.ResolveNowOptions) { ccb.cc.resolveNow(o) } @@ -244,19 +362,21 @@ func (ccb *ccBalancerWrapper) Target() string { // acBalancerWrapper is a wrapper on top of ac for balancers. // It implements balancer.SubConn interface. type acBalancerWrapper struct { - mu sync.Mutex - ac *addrConn + mu sync.Mutex + ac *addrConn + producers map[balancer.ProducerBuilder]*refCountedProducer } func (acbw *acBalancerWrapper) UpdateAddresses(addrs []resolver.Address) { acbw.mu.Lock() defer acbw.mu.Unlock() if len(addrs) <= 0 { - acbw.ac.tearDown(errConnDrain) + acbw.ac.cc.removeAddrConn(acbw.ac, errConnDrain) return } if !acbw.ac.tryUpdateAddrs(addrs) { cc := acbw.ac.cc + opts := acbw.ac.scopts acbw.ac.mu.Lock() // Set old ac.acbw to nil so the Shutdown state update will be ignored // by balancer. @@ -266,23 +386,23 @@ func (acbw *acBalancerWrapper) UpdateAddresses(addrs []resolver.Address) { acbw.ac.acbw = nil acbw.ac.mu.Unlock() acState := acbw.ac.getState() - acbw.ac.tearDown(errConnDrain) + acbw.ac.cc.removeAddrConn(acbw.ac, errConnDrain) if acState == connectivity.Shutdown { return } - ac, err := cc.newAddrConn(addrs) + newAC, err := cc.newAddrConn(addrs, opts) if err != nil { - grpclog.Warningf("acBalancerWrapper: UpdateAddresses: failed to newAddrConn: %v", err) + channelz.Warningf(logger, acbw.ac.channelzID, "acBalancerWrapper: UpdateAddresses: failed to newAddrConn: %v", err) return } - acbw.ac = ac - ac.mu.Lock() - ac.acbw = acbw - ac.mu.Unlock() + acbw.ac = newAC + newAC.mu.Lock() + newAC.acbw = acbw + newAC.mu.Unlock() if acState != connectivity.Idle { - ac.connect() + go newAC.connect() } } } @@ -290,7 +410,7 @@ func (acbw *acBalancerWrapper) UpdateAddresses(addrs []resolver.Address) { func (acbw *acBalancerWrapper) Connect() { acbw.mu.Lock() defer acbw.mu.Unlock() - acbw.ac.connect() + go acbw.ac.connect() } func (acbw *acBalancerWrapper) getAddrConn() *addrConn { @@ -298,3 +418,64 @@ func (acbw *acBalancerWrapper) getAddrConn() *addrConn { defer acbw.mu.Unlock() return acbw.ac } + +var errSubConnNotReady = status.Error(codes.Unavailable, "SubConn not currently connected") + +// NewStream begins a streaming RPC on the addrConn. If the addrConn is not +// ready, returns errSubConnNotReady. +func (acbw *acBalancerWrapper) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error) { + transport := acbw.ac.getReadyTransport() + if transport == nil { + return nil, errSubConnNotReady + } + return newNonRetryClientStream(ctx, desc, method, transport, acbw.ac, opts...) +} + +// Invoke performs a unary RPC. If the addrConn is not ready, returns +// errSubConnNotReady. +func (acbw *acBalancerWrapper) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...CallOption) error { + cs, err := acbw.NewStream(ctx, unaryStreamDesc, method, opts...) + if err != nil { + return err + } + if err := cs.SendMsg(args); err != nil { + return err + } + return cs.RecvMsg(reply) +} + +type refCountedProducer struct { + producer balancer.Producer + refs int // number of current refs to the producer + close func() // underlying producer's close function +} + +func (acbw *acBalancerWrapper) GetOrBuildProducer(pb balancer.ProducerBuilder) (balancer.Producer, func()) { + acbw.mu.Lock() + defer acbw.mu.Unlock() + + // Look up existing producer from this builder. + pData := acbw.producers[pb] + if pData == nil { + // Not found; create a new one and add it to the producers map. + p, close := pb.Build(acbw) + pData = &refCountedProducer{producer: p, close: close} + acbw.producers[pb] = pData + } + // Account for this new reference. + pData.refs++ + + // Return a cleanup function wrapped in a OnceFunc to remove this reference + // and delete the refCountedProducer from the map if the total reference + // count goes to zero. + unref := func() { + acbw.mu.Lock() + pData.refs-- + if pData.refs == 0 { + defer pData.close() // Run outside the acbw mutex + delete(acbw.producers, pb) + } + acbw.mu.Unlock() + } + return pData.producer, grpcsync.OnceFunc(unref) +} diff --git a/vendor/google.golang.org/grpc/balancer_v1_wrapper.go b/vendor/google.golang.org/grpc/balancer_v1_wrapper.go deleted file mode 100644 index faabf87..0000000 --- a/vendor/google.golang.org/grpc/balancer_v1_wrapper.go +++ /dev/null @@ -1,375 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * 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 grpc - -import ( - "strings" - "sync" - - "golang.org/x/net/context" - "google.golang.org/grpc/balancer" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/connectivity" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/resolver" - "google.golang.org/grpc/status" -) - -type balancerWrapperBuilder struct { - b Balancer // The v1 balancer. -} - -func (bwb *balancerWrapperBuilder) Build(cc balancer.ClientConn, opts balancer.BuildOptions) balancer.Balancer { - targetAddr := cc.Target() - targetSplitted := strings.Split(targetAddr, ":///") - if len(targetSplitted) >= 2 { - targetAddr = targetSplitted[1] - } - - bwb.b.Start(targetAddr, BalancerConfig{ - DialCreds: opts.DialCreds, - Dialer: opts.Dialer, - }) - _, pickfirst := bwb.b.(*pickFirst) - bw := &balancerWrapper{ - balancer: bwb.b, - pickfirst: pickfirst, - cc: cc, - targetAddr: targetAddr, - startCh: make(chan struct{}), - conns: make(map[resolver.Address]balancer.SubConn), - connSt: make(map[balancer.SubConn]*scState), - csEvltr: &connectivityStateEvaluator{}, - state: connectivity.Idle, - } - cc.UpdateBalancerState(connectivity.Idle, bw) - go bw.lbWatcher() - return bw -} - -func (bwb *balancerWrapperBuilder) Name() string { - return "wrapper" -} - -type scState struct { - addr Address // The v1 address type. - s connectivity.State - down func(error) -} - -type balancerWrapper struct { - balancer Balancer // The v1 balancer. - pickfirst bool - - cc balancer.ClientConn - targetAddr string // Target without the scheme. - - // To aggregate the connectivity state. - csEvltr *connectivityStateEvaluator - state connectivity.State - - mu sync.Mutex - conns map[resolver.Address]balancer.SubConn - connSt map[balancer.SubConn]*scState - // This channel is closed when handling the first resolver result. - // lbWatcher blocks until this is closed, to avoid race between - // - NewSubConn is created, cc wants to notify balancer of state changes; - // - Build hasn't return, cc doesn't have access to balancer. - startCh chan struct{} -} - -// lbWatcher watches the Notify channel of the balancer and manages -// connections accordingly. -func (bw *balancerWrapper) lbWatcher() { - <-bw.startCh - notifyCh := bw.balancer.Notify() - if notifyCh == nil { - // There's no resolver in the balancer. Connect directly. - a := resolver.Address{ - Addr: bw.targetAddr, - Type: resolver.Backend, - } - sc, err := bw.cc.NewSubConn([]resolver.Address{a}, balancer.NewSubConnOptions{}) - if err != nil { - grpclog.Warningf("Error creating connection to %v. Err: %v", a, err) - } else { - bw.mu.Lock() - bw.conns[a] = sc - bw.connSt[sc] = &scState{ - addr: Address{Addr: bw.targetAddr}, - s: connectivity.Idle, - } - bw.mu.Unlock() - sc.Connect() - } - return - } - - for addrs := range notifyCh { - grpclog.Infof("balancerWrapper: got update addr from Notify: %v\n", addrs) - if bw.pickfirst { - var ( - oldA resolver.Address - oldSC balancer.SubConn - ) - bw.mu.Lock() - for oldA, oldSC = range bw.conns { - break - } - bw.mu.Unlock() - if len(addrs) <= 0 { - if oldSC != nil { - // Teardown old sc. - bw.mu.Lock() - delete(bw.conns, oldA) - delete(bw.connSt, oldSC) - bw.mu.Unlock() - bw.cc.RemoveSubConn(oldSC) - } - continue - } - - var newAddrs []resolver.Address - for _, a := range addrs { - newAddr := resolver.Address{ - Addr: a.Addr, - Type: resolver.Backend, // All addresses from balancer are all backends. - ServerName: "", - Metadata: a.Metadata, - } - newAddrs = append(newAddrs, newAddr) - } - if oldSC == nil { - // Create new sc. - sc, err := bw.cc.NewSubConn(newAddrs, balancer.NewSubConnOptions{}) - if err != nil { - grpclog.Warningf("Error creating connection to %v. Err: %v", newAddrs, err) - } else { - bw.mu.Lock() - // For pickfirst, there should be only one SubConn, so the - // address doesn't matter. All states updating (up and down) - // and picking should all happen on that only SubConn. - bw.conns[resolver.Address{}] = sc - bw.connSt[sc] = &scState{ - addr: addrs[0], // Use the first address. - s: connectivity.Idle, - } - bw.mu.Unlock() - sc.Connect() - } - } else { - bw.mu.Lock() - bw.connSt[oldSC].addr = addrs[0] - bw.mu.Unlock() - oldSC.UpdateAddresses(newAddrs) - } - } else { - var ( - add []resolver.Address // Addresses need to setup connections. - del []balancer.SubConn // Connections need to tear down. - ) - resAddrs := make(map[resolver.Address]Address) - for _, a := range addrs { - resAddrs[resolver.Address{ - Addr: a.Addr, - Type: resolver.Backend, // All addresses from balancer are all backends. - ServerName: "", - Metadata: a.Metadata, - }] = a - } - bw.mu.Lock() - for a := range resAddrs { - if _, ok := bw.conns[a]; !ok { - add = append(add, a) - } - } - for a, c := range bw.conns { - if _, ok := resAddrs[a]; !ok { - del = append(del, c) - delete(bw.conns, a) - // Keep the state of this sc in bw.connSt until its state becomes Shutdown. - } - } - bw.mu.Unlock() - for _, a := range add { - sc, err := bw.cc.NewSubConn([]resolver.Address{a}, balancer.NewSubConnOptions{}) - if err != nil { - grpclog.Warningf("Error creating connection to %v. Err: %v", a, err) - } else { - bw.mu.Lock() - bw.conns[a] = sc - bw.connSt[sc] = &scState{ - addr: resAddrs[a], - s: connectivity.Idle, - } - bw.mu.Unlock() - sc.Connect() - } - } - for _, c := range del { - bw.cc.RemoveSubConn(c) - } - } - } -} - -func (bw *balancerWrapper) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) { - bw.mu.Lock() - defer bw.mu.Unlock() - scSt, ok := bw.connSt[sc] - if !ok { - return - } - if s == connectivity.Idle { - sc.Connect() - } - oldS := scSt.s - scSt.s = s - if oldS != connectivity.Ready && s == connectivity.Ready { - scSt.down = bw.balancer.Up(scSt.addr) - } else if oldS == connectivity.Ready && s != connectivity.Ready { - if scSt.down != nil { - scSt.down(errConnClosing) - } - } - sa := bw.csEvltr.recordTransition(oldS, s) - if bw.state != sa { - bw.state = sa - } - bw.cc.UpdateBalancerState(bw.state, bw) - if s == connectivity.Shutdown { - // Remove state for this sc. - delete(bw.connSt, sc) - } - return -} - -func (bw *balancerWrapper) HandleResolvedAddrs([]resolver.Address, error) { - bw.mu.Lock() - defer bw.mu.Unlock() - select { - case <-bw.startCh: - default: - close(bw.startCh) - } - // There should be a resolver inside the balancer. - // All updates here, if any, are ignored. - return -} - -func (bw *balancerWrapper) Close() { - bw.mu.Lock() - defer bw.mu.Unlock() - select { - case <-bw.startCh: - default: - close(bw.startCh) - } - bw.balancer.Close() - return -} - -// The picker is the balancerWrapper itself. -// Pick should never return ErrNoSubConnAvailable. -// It either blocks or returns error, consistent with v1 balancer Get(). -func (bw *balancerWrapper) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - failfast := true // Default failfast is true. - if ss, ok := rpcInfoFromContext(ctx); ok { - failfast = ss.failfast - } - a, p, err := bw.balancer.Get(ctx, BalancerGetOptions{BlockingWait: !failfast}) - if err != nil { - return nil, nil, err - } - var done func(balancer.DoneInfo) - if p != nil { - done = func(i balancer.DoneInfo) { p() } - } - var sc balancer.SubConn - bw.mu.Lock() - defer bw.mu.Unlock() - if bw.pickfirst { - // Get the first sc in conns. - for _, sc = range bw.conns { - break - } - } else { - var ok bool - sc, ok = bw.conns[resolver.Address{ - Addr: a.Addr, - Type: resolver.Backend, - ServerName: "", - Metadata: a.Metadata, - }] - if !ok && failfast { - return nil, nil, status.Errorf(codes.Unavailable, "there is no connection available") - } - if s, ok := bw.connSt[sc]; failfast && (!ok || s.s != connectivity.Ready) { - // If the returned sc is not ready and RPC is failfast, - // return error, and this RPC will fail. - return nil, nil, status.Errorf(codes.Unavailable, "there is no connection available") - } - } - - return sc, done, nil -} - -// connectivityStateEvaluator gets updated by addrConns when their -// states transition, based on which it evaluates the state of -// ClientConn. -type connectivityStateEvaluator struct { - mu sync.Mutex - numReady uint64 // Number of addrConns in ready state. - numConnecting uint64 // Number of addrConns in connecting state. - numTransientFailure uint64 // Number of addrConns in transientFailure. -} - -// recordTransition records state change happening in every subConn and based on -// that it evaluates what aggregated state should be. -// It can only transition between Ready, Connecting and TransientFailure. Other states, -// Idle and Shutdown are transitioned into by ClientConn; in the beginning of the connection -// before any subConn is created ClientConn is in idle state. In the end when ClientConn -// closes it is in Shutdown state. -// TODO Note that in later releases, a ClientConn with no activity will be put into an Idle state. -func (cse *connectivityStateEvaluator) recordTransition(oldState, newState connectivity.State) connectivity.State { - cse.mu.Lock() - defer cse.mu.Unlock() - - // Update counters. - for idx, state := range []connectivity.State{oldState, newState} { - updateVal := 2*uint64(idx) - 1 // -1 for oldState and +1 for new. - switch state { - case connectivity.Ready: - cse.numReady += updateVal - case connectivity.Connecting: - cse.numConnecting += updateVal - case connectivity.TransientFailure: - cse.numTransientFailure += updateVal - } - } - - // Evaluate. - if cse.numReady > 0 { - return connectivity.Ready - } - if cse.numConnecting > 0 { - return connectivity.Connecting - } - return connectivity.TransientFailure -} diff --git a/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go b/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go new file mode 100644 index 0000000..66d141f --- /dev/null +++ b/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go @@ -0,0 +1,1183 @@ +// Copyright 2018 The gRPC Authors +// 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. + +// The canonical version of this proto can be found at +// https://github.com/grpc/grpc-proto/blob/master/grpc/binlog/v1/binarylog.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.14.0 +// source: grpc/binlog/v1/binarylog.proto + +package grpc_binarylog_v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Enumerates the type of event +// Note the terminology is different from the RPC semantics +// definition, but the same meaning is expressed here. +type GrpcLogEntry_EventType int32 + +const ( + GrpcLogEntry_EVENT_TYPE_UNKNOWN GrpcLogEntry_EventType = 0 + // Header sent from client to server + GrpcLogEntry_EVENT_TYPE_CLIENT_HEADER GrpcLogEntry_EventType = 1 + // Header sent from server to client + GrpcLogEntry_EVENT_TYPE_SERVER_HEADER GrpcLogEntry_EventType = 2 + // Message sent from client to server + GrpcLogEntry_EVENT_TYPE_CLIENT_MESSAGE GrpcLogEntry_EventType = 3 + // Message sent from server to client + GrpcLogEntry_EVENT_TYPE_SERVER_MESSAGE GrpcLogEntry_EventType = 4 + // A signal that client is done sending + GrpcLogEntry_EVENT_TYPE_CLIENT_HALF_CLOSE GrpcLogEntry_EventType = 5 + // Trailer indicates the end of the RPC. + // On client side, this event means a trailer was either received + // from the network or the gRPC library locally generated a status + // to inform the application about a failure. + // On server side, this event means the server application requested + // to send a trailer. Note: EVENT_TYPE_CANCEL may still arrive after + // this due to races on server side. + GrpcLogEntry_EVENT_TYPE_SERVER_TRAILER GrpcLogEntry_EventType = 6 + // A signal that the RPC is cancelled. On client side, this + // indicates the client application requests a cancellation. + // On server side, this indicates that cancellation was detected. + // Note: This marks the end of the RPC. Events may arrive after + // this due to races. For example, on client side a trailer + // may arrive even though the application requested to cancel the RPC. + GrpcLogEntry_EVENT_TYPE_CANCEL GrpcLogEntry_EventType = 7 +) + +// Enum value maps for GrpcLogEntry_EventType. +var ( + GrpcLogEntry_EventType_name = map[int32]string{ + 0: "EVENT_TYPE_UNKNOWN", + 1: "EVENT_TYPE_CLIENT_HEADER", + 2: "EVENT_TYPE_SERVER_HEADER", + 3: "EVENT_TYPE_CLIENT_MESSAGE", + 4: "EVENT_TYPE_SERVER_MESSAGE", + 5: "EVENT_TYPE_CLIENT_HALF_CLOSE", + 6: "EVENT_TYPE_SERVER_TRAILER", + 7: "EVENT_TYPE_CANCEL", + } + GrpcLogEntry_EventType_value = map[string]int32{ + "EVENT_TYPE_UNKNOWN": 0, + "EVENT_TYPE_CLIENT_HEADER": 1, + "EVENT_TYPE_SERVER_HEADER": 2, + "EVENT_TYPE_CLIENT_MESSAGE": 3, + "EVENT_TYPE_SERVER_MESSAGE": 4, + "EVENT_TYPE_CLIENT_HALF_CLOSE": 5, + "EVENT_TYPE_SERVER_TRAILER": 6, + "EVENT_TYPE_CANCEL": 7, + } +) + +func (x GrpcLogEntry_EventType) Enum() *GrpcLogEntry_EventType { + p := new(GrpcLogEntry_EventType) + *p = x + return p +} + +func (x GrpcLogEntry_EventType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GrpcLogEntry_EventType) Descriptor() protoreflect.EnumDescriptor { + return file_grpc_binlog_v1_binarylog_proto_enumTypes[0].Descriptor() +} + +func (GrpcLogEntry_EventType) Type() protoreflect.EnumType { + return &file_grpc_binlog_v1_binarylog_proto_enumTypes[0] +} + +func (x GrpcLogEntry_EventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GrpcLogEntry_EventType.Descriptor instead. +func (GrpcLogEntry_EventType) EnumDescriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{0, 0} +} + +// Enumerates the entity that generates the log entry +type GrpcLogEntry_Logger int32 + +const ( + GrpcLogEntry_LOGGER_UNKNOWN GrpcLogEntry_Logger = 0 + GrpcLogEntry_LOGGER_CLIENT GrpcLogEntry_Logger = 1 + GrpcLogEntry_LOGGER_SERVER GrpcLogEntry_Logger = 2 +) + +// Enum value maps for GrpcLogEntry_Logger. +var ( + GrpcLogEntry_Logger_name = map[int32]string{ + 0: "LOGGER_UNKNOWN", + 1: "LOGGER_CLIENT", + 2: "LOGGER_SERVER", + } + GrpcLogEntry_Logger_value = map[string]int32{ + "LOGGER_UNKNOWN": 0, + "LOGGER_CLIENT": 1, + "LOGGER_SERVER": 2, + } +) + +func (x GrpcLogEntry_Logger) Enum() *GrpcLogEntry_Logger { + p := new(GrpcLogEntry_Logger) + *p = x + return p +} + +func (x GrpcLogEntry_Logger) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GrpcLogEntry_Logger) Descriptor() protoreflect.EnumDescriptor { + return file_grpc_binlog_v1_binarylog_proto_enumTypes[1].Descriptor() +} + +func (GrpcLogEntry_Logger) Type() protoreflect.EnumType { + return &file_grpc_binlog_v1_binarylog_proto_enumTypes[1] +} + +func (x GrpcLogEntry_Logger) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GrpcLogEntry_Logger.Descriptor instead. +func (GrpcLogEntry_Logger) EnumDescriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{0, 1} +} + +type Address_Type int32 + +const ( + Address_TYPE_UNKNOWN Address_Type = 0 + // address is in 1.2.3.4 form + Address_TYPE_IPV4 Address_Type = 1 + // address is in IPv6 canonical form (RFC5952 section 4) + // The scope is NOT included in the address string. + Address_TYPE_IPV6 Address_Type = 2 + // address is UDS string + Address_TYPE_UNIX Address_Type = 3 +) + +// Enum value maps for Address_Type. +var ( + Address_Type_name = map[int32]string{ + 0: "TYPE_UNKNOWN", + 1: "TYPE_IPV4", + 2: "TYPE_IPV6", + 3: "TYPE_UNIX", + } + Address_Type_value = map[string]int32{ + "TYPE_UNKNOWN": 0, + "TYPE_IPV4": 1, + "TYPE_IPV6": 2, + "TYPE_UNIX": 3, + } +) + +func (x Address_Type) Enum() *Address_Type { + p := new(Address_Type) + *p = x + return p +} + +func (x Address_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Address_Type) Descriptor() protoreflect.EnumDescriptor { + return file_grpc_binlog_v1_binarylog_proto_enumTypes[2].Descriptor() +} + +func (Address_Type) Type() protoreflect.EnumType { + return &file_grpc_binlog_v1_binarylog_proto_enumTypes[2] +} + +func (x Address_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Address_Type.Descriptor instead. +func (Address_Type) EnumDescriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{7, 0} +} + +// Log entry we store in binary logs +type GrpcLogEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The timestamp of the binary log message + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Uniquely identifies a call. The value must not be 0 in order to disambiguate + // from an unset value. + // Each call may have several log entries, they will all have the same call_id. + // Nothing is guaranteed about their value other than they are unique across + // different RPCs in the same gRPC process. + CallId uint64 `protobuf:"varint,2,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"` + // The entry sequence id for this call. The first GrpcLogEntry has a + // value of 1, to disambiguate from an unset value. The purpose of + // this field is to detect missing entries in environments where + // durability or ordering is not guaranteed. + SequenceIdWithinCall uint64 `protobuf:"varint,3,opt,name=sequence_id_within_call,json=sequenceIdWithinCall,proto3" json:"sequence_id_within_call,omitempty"` + Type GrpcLogEntry_EventType `protobuf:"varint,4,opt,name=type,proto3,enum=grpc.binarylog.v1.GrpcLogEntry_EventType" json:"type,omitempty"` + Logger GrpcLogEntry_Logger `protobuf:"varint,5,opt,name=logger,proto3,enum=grpc.binarylog.v1.GrpcLogEntry_Logger" json:"logger,omitempty"` // One of the above Logger enum + // The logger uses one of the following fields to record the payload, + // according to the type of the log entry. + // + // Types that are assignable to Payload: + // + // *GrpcLogEntry_ClientHeader + // *GrpcLogEntry_ServerHeader + // *GrpcLogEntry_Message + // *GrpcLogEntry_Trailer + Payload isGrpcLogEntry_Payload `protobuf_oneof:"payload"` + // true if payload does not represent the full message or metadata. + PayloadTruncated bool `protobuf:"varint,10,opt,name=payload_truncated,json=payloadTruncated,proto3" json:"payload_truncated,omitempty"` + // Peer address information, will only be recorded on the first + // incoming event. On client side, peer is logged on + // EVENT_TYPE_SERVER_HEADER normally or EVENT_TYPE_SERVER_TRAILER in + // the case of trailers-only. On server side, peer is always + // logged on EVENT_TYPE_CLIENT_HEADER. + Peer *Address `protobuf:"bytes,11,opt,name=peer,proto3" json:"peer,omitempty"` +} + +func (x *GrpcLogEntry) Reset() { + *x = GrpcLogEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GrpcLogEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrpcLogEntry) ProtoMessage() {} + +func (x *GrpcLogEntry) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GrpcLogEntry.ProtoReflect.Descriptor instead. +func (*GrpcLogEntry) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{0} +} + +func (x *GrpcLogEntry) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *GrpcLogEntry) GetCallId() uint64 { + if x != nil { + return x.CallId + } + return 0 +} + +func (x *GrpcLogEntry) GetSequenceIdWithinCall() uint64 { + if x != nil { + return x.SequenceIdWithinCall + } + return 0 +} + +func (x *GrpcLogEntry) GetType() GrpcLogEntry_EventType { + if x != nil { + return x.Type + } + return GrpcLogEntry_EVENT_TYPE_UNKNOWN +} + +func (x *GrpcLogEntry) GetLogger() GrpcLogEntry_Logger { + if x != nil { + return x.Logger + } + return GrpcLogEntry_LOGGER_UNKNOWN +} + +func (m *GrpcLogEntry) GetPayload() isGrpcLogEntry_Payload { + if m != nil { + return m.Payload + } + return nil +} + +func (x *GrpcLogEntry) GetClientHeader() *ClientHeader { + if x, ok := x.GetPayload().(*GrpcLogEntry_ClientHeader); ok { + return x.ClientHeader + } + return nil +} + +func (x *GrpcLogEntry) GetServerHeader() *ServerHeader { + if x, ok := x.GetPayload().(*GrpcLogEntry_ServerHeader); ok { + return x.ServerHeader + } + return nil +} + +func (x *GrpcLogEntry) GetMessage() *Message { + if x, ok := x.GetPayload().(*GrpcLogEntry_Message); ok { + return x.Message + } + return nil +} + +func (x *GrpcLogEntry) GetTrailer() *Trailer { + if x, ok := x.GetPayload().(*GrpcLogEntry_Trailer); ok { + return x.Trailer + } + return nil +} + +func (x *GrpcLogEntry) GetPayloadTruncated() bool { + if x != nil { + return x.PayloadTruncated + } + return false +} + +func (x *GrpcLogEntry) GetPeer() *Address { + if x != nil { + return x.Peer + } + return nil +} + +type isGrpcLogEntry_Payload interface { + isGrpcLogEntry_Payload() +} + +type GrpcLogEntry_ClientHeader struct { + ClientHeader *ClientHeader `protobuf:"bytes,6,opt,name=client_header,json=clientHeader,proto3,oneof"` +} + +type GrpcLogEntry_ServerHeader struct { + ServerHeader *ServerHeader `protobuf:"bytes,7,opt,name=server_header,json=serverHeader,proto3,oneof"` +} + +type GrpcLogEntry_Message struct { + // Used by EVENT_TYPE_CLIENT_MESSAGE, EVENT_TYPE_SERVER_MESSAGE + Message *Message `protobuf:"bytes,8,opt,name=message,proto3,oneof"` +} + +type GrpcLogEntry_Trailer struct { + Trailer *Trailer `protobuf:"bytes,9,opt,name=trailer,proto3,oneof"` +} + +func (*GrpcLogEntry_ClientHeader) isGrpcLogEntry_Payload() {} + +func (*GrpcLogEntry_ServerHeader) isGrpcLogEntry_Payload() {} + +func (*GrpcLogEntry_Message) isGrpcLogEntry_Payload() {} + +func (*GrpcLogEntry_Trailer) isGrpcLogEntry_Payload() {} + +type ClientHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // This contains only the metadata from the application. + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // The name of the RPC method, which looks something like: + // // + // Note the leading "/" character. + MethodName string `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` + // A single process may be used to run multiple virtual + // servers with different identities. + // The authority is the name of such a server identitiy. + // It is typically a portion of the URI in the form of + // or : . + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` + // the RPC timeout + Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` +} + +func (x *ClientHeader) Reset() { + *x = ClientHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClientHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClientHeader) ProtoMessage() {} + +func (x *ClientHeader) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClientHeader.ProtoReflect.Descriptor instead. +func (*ClientHeader) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{1} +} + +func (x *ClientHeader) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *ClientHeader) GetMethodName() string { + if x != nil { + return x.MethodName + } + return "" +} + +func (x *ClientHeader) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *ClientHeader) GetTimeout() *durationpb.Duration { + if x != nil { + return x.Timeout + } + return nil +} + +type ServerHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // This contains only the metadata from the application. + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *ServerHeader) Reset() { + *x = ServerHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerHeader) ProtoMessage() {} + +func (x *ServerHeader) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServerHeader.ProtoReflect.Descriptor instead. +func (*ServerHeader) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{2} +} + +func (x *ServerHeader) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +type Trailer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // This contains only the metadata from the application. + Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // The gRPC status code. + StatusCode uint32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` + // An original status message before any transport specific + // encoding. + StatusMessage string `protobuf:"bytes,3,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` + // The value of the 'grpc-status-details-bin' metadata key. If + // present, this is always an encoded 'google.rpc.Status' message. + StatusDetails []byte `protobuf:"bytes,4,opt,name=status_details,json=statusDetails,proto3" json:"status_details,omitempty"` +} + +func (x *Trailer) Reset() { + *x = Trailer{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Trailer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Trailer) ProtoMessage() {} + +func (x *Trailer) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Trailer.ProtoReflect.Descriptor instead. +func (*Trailer) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{3} +} + +func (x *Trailer) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Trailer) GetStatusCode() uint32 { + if x != nil { + return x.StatusCode + } + return 0 +} + +func (x *Trailer) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +func (x *Trailer) GetStatusDetails() []byte { + if x != nil { + return x.StatusDetails + } + return nil +} + +// Message payload, used by CLIENT_MESSAGE and SERVER_MESSAGE +type Message struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Length of the message. It may not be the same as the length of the + // data field, as the logging payload can be truncated or omitted. + Length uint32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` + // May be truncated or omitted. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *Message) Reset() { + *x = Message{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Message) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Message) ProtoMessage() {} + +func (x *Message) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Message.ProtoReflect.Descriptor instead. +func (*Message) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{4} +} + +func (x *Message) GetLength() uint32 { + if x != nil { + return x.Length + } + return 0 +} + +func (x *Message) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +// A list of metadata pairs, used in the payload of client header, +// server header, and server trailer. +// Implementations may omit some entries to honor the header limits +// of GRPC_BINARY_LOG_CONFIG. +// +// Header keys added by gRPC are omitted. To be more specific, +// implementations will not log the following entries, and this is +// not to be treated as a truncation: +// - entries handled by grpc that are not user visible, such as those +// that begin with 'grpc-' (with exception of grpc-trace-bin) +// or keys like 'lb-token' +// - transport specific entries, including but not limited to: +// ':path', ':authority', 'content-encoding', 'user-agent', 'te', etc +// - entries added for call credentials +// +// Implementations must always log grpc-trace-bin if it is present. +// Practically speaking it will only be visible on server side because +// grpc-trace-bin is managed by low level client side mechanisms +// inaccessible from the application level. On server side, the +// header is just a normal metadata key. +// The pair will not count towards the size limit. +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Entry []*MetadataEntry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{5} +} + +func (x *Metadata) GetEntry() []*MetadataEntry { + if x != nil { + return x.Entry + } + return nil +} + +// A metadata key value pair +type MetadataEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *MetadataEntry) Reset() { + *x = MetadataEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataEntry) ProtoMessage() {} + +func (x *MetadataEntry) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MetadataEntry.ProtoReflect.Descriptor instead. +func (*MetadataEntry) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{6} +} + +func (x *MetadataEntry) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *MetadataEntry) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +// Address information +type Address struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type Address_Type `protobuf:"varint,1,opt,name=type,proto3,enum=grpc.binarylog.v1.Address_Type" json:"type,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // only for TYPE_IPV4 and TYPE_IPV6 + IpPort uint32 `protobuf:"varint,3,opt,name=ip_port,json=ipPort,proto3" json:"ip_port,omitempty"` +} + +func (x *Address) Reset() { + *x = Address{} + if protoimpl.UnsafeEnabled { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Address) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Address) ProtoMessage() {} + +func (x *Address) ProtoReflect() protoreflect.Message { + mi := &file_grpc_binlog_v1_binarylog_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Address.ProtoReflect.Descriptor instead. +func (*Address) Descriptor() ([]byte, []int) { + return file_grpc_binlog_v1_binarylog_proto_rawDescGZIP(), []int{7} +} + +func (x *Address) GetType() Address_Type { + if x != nil { + return x.Type + } + return Address_TYPE_UNKNOWN +} + +func (x *Address) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *Address) GetIpPort() uint32 { + if x != nil { + return x.IpPort + } + return 0 +} + +var File_grpc_binlog_v1_binarylog_proto protoreflect.FileDescriptor + +var file_grpc_binlog_v1_binarylog_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x69, 0x6e, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x11, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, + 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x07, 0x0a, 0x0c, 0x47, 0x72, 0x70, 0x63, 0x4c, 0x6f, 0x67, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x17, 0x0a, 0x07, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x06, 0x63, 0x61, 0x6c, 0x6c, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x17, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x5f, 0x63, + 0x61, 0x6c, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14, 0x73, 0x65, 0x71, 0x75, 0x65, + 0x6e, 0x63, 0x65, 0x49, 0x64, 0x57, 0x69, 0x74, 0x68, 0x69, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x12, + 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, + 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3e, + 0x0a, 0x06, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, + 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, + 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x12, 0x46, + 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, + 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x36, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, + 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x69, + 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x07, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x12, 0x2b, + 0x0a, 0x11, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x70, + 0x65, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, + 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x04, 0x70, 0x65, 0x65, 0x72, 0x22, 0xf5, 0x01, 0x0a, 0x09, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x56, 0x45, + 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x01, 0x12, + 0x1c, 0x0a, 0x18, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, + 0x52, 0x56, 0x45, 0x52, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x02, 0x12, 0x1d, 0x0a, + 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x45, + 0x4e, 0x54, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, + 0x52, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12, 0x20, 0x0a, 0x1c, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, + 0x5f, 0x48, 0x41, 0x4c, 0x46, 0x5f, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x10, 0x05, 0x12, 0x1d, 0x0a, + 0x19, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, + 0x45, 0x52, 0x5f, 0x54, 0x52, 0x41, 0x49, 0x4c, 0x45, 0x52, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, + 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, + 0x4c, 0x10, 0x07, 0x22, 0x42, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x12, 0x12, 0x0a, + 0x0e, 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x49, 0x45, + 0x4e, 0x54, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x4f, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x53, + 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x02, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x22, 0xbb, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, + 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, + 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x07, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x22, 0x47, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, + 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb1, 0x01, 0x0a, 0x07, 0x54, 0x72, + 0x61, 0x69, 0x6c, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x35, 0x0a, + 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, + 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x42, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x36, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x37, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x33, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x67, 0x72, + 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x17, 0x0a, 0x07, + 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x69, + 0x70, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x45, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, + 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, 0x12, 0x0d, + 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x50, 0x56, 0x36, 0x10, 0x02, 0x12, 0x0d, 0x0a, + 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x49, 0x58, 0x10, 0x03, 0x42, 0x5c, 0x0a, 0x14, + 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, + 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, + 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x62, 0x69, + 0x6e, 0x61, 0x72, 0x79, 0x6c, 0x6f, 0x67, 0x5f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_grpc_binlog_v1_binarylog_proto_rawDescOnce sync.Once + file_grpc_binlog_v1_binarylog_proto_rawDescData = file_grpc_binlog_v1_binarylog_proto_rawDesc +) + +func file_grpc_binlog_v1_binarylog_proto_rawDescGZIP() []byte { + file_grpc_binlog_v1_binarylog_proto_rawDescOnce.Do(func() { + file_grpc_binlog_v1_binarylog_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_binlog_v1_binarylog_proto_rawDescData) + }) + return file_grpc_binlog_v1_binarylog_proto_rawDescData +} + +var file_grpc_binlog_v1_binarylog_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_grpc_binlog_v1_binarylog_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_grpc_binlog_v1_binarylog_proto_goTypes = []interface{}{ + (GrpcLogEntry_EventType)(0), // 0: grpc.binarylog.v1.GrpcLogEntry.EventType + (GrpcLogEntry_Logger)(0), // 1: grpc.binarylog.v1.GrpcLogEntry.Logger + (Address_Type)(0), // 2: grpc.binarylog.v1.Address.Type + (*GrpcLogEntry)(nil), // 3: grpc.binarylog.v1.GrpcLogEntry + (*ClientHeader)(nil), // 4: grpc.binarylog.v1.ClientHeader + (*ServerHeader)(nil), // 5: grpc.binarylog.v1.ServerHeader + (*Trailer)(nil), // 6: grpc.binarylog.v1.Trailer + (*Message)(nil), // 7: grpc.binarylog.v1.Message + (*Metadata)(nil), // 8: grpc.binarylog.v1.Metadata + (*MetadataEntry)(nil), // 9: grpc.binarylog.v1.MetadataEntry + (*Address)(nil), // 10: grpc.binarylog.v1.Address + (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 12: google.protobuf.Duration +} +var file_grpc_binlog_v1_binarylog_proto_depIdxs = []int32{ + 11, // 0: grpc.binarylog.v1.GrpcLogEntry.timestamp:type_name -> google.protobuf.Timestamp + 0, // 1: grpc.binarylog.v1.GrpcLogEntry.type:type_name -> grpc.binarylog.v1.GrpcLogEntry.EventType + 1, // 2: grpc.binarylog.v1.GrpcLogEntry.logger:type_name -> grpc.binarylog.v1.GrpcLogEntry.Logger + 4, // 3: grpc.binarylog.v1.GrpcLogEntry.client_header:type_name -> grpc.binarylog.v1.ClientHeader + 5, // 4: grpc.binarylog.v1.GrpcLogEntry.server_header:type_name -> grpc.binarylog.v1.ServerHeader + 7, // 5: grpc.binarylog.v1.GrpcLogEntry.message:type_name -> grpc.binarylog.v1.Message + 6, // 6: grpc.binarylog.v1.GrpcLogEntry.trailer:type_name -> grpc.binarylog.v1.Trailer + 10, // 7: grpc.binarylog.v1.GrpcLogEntry.peer:type_name -> grpc.binarylog.v1.Address + 8, // 8: grpc.binarylog.v1.ClientHeader.metadata:type_name -> grpc.binarylog.v1.Metadata + 12, // 9: grpc.binarylog.v1.ClientHeader.timeout:type_name -> google.protobuf.Duration + 8, // 10: grpc.binarylog.v1.ServerHeader.metadata:type_name -> grpc.binarylog.v1.Metadata + 8, // 11: grpc.binarylog.v1.Trailer.metadata:type_name -> grpc.binarylog.v1.Metadata + 9, // 12: grpc.binarylog.v1.Metadata.entry:type_name -> grpc.binarylog.v1.MetadataEntry + 2, // 13: grpc.binarylog.v1.Address.type:type_name -> grpc.binarylog.v1.Address.Type + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_grpc_binlog_v1_binarylog_proto_init() } +func file_grpc_binlog_v1_binarylog_proto_init() { + if File_grpc_binlog_v1_binarylog_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_grpc_binlog_v1_binarylog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GrpcLogEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClientHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Trailer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Message); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Address); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_grpc_binlog_v1_binarylog_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*GrpcLogEntry_ClientHeader)(nil), + (*GrpcLogEntry_ServerHeader)(nil), + (*GrpcLogEntry_Message)(nil), + (*GrpcLogEntry_Trailer)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_grpc_binlog_v1_binarylog_proto_rawDesc, + NumEnums: 3, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_grpc_binlog_v1_binarylog_proto_goTypes, + DependencyIndexes: file_grpc_binlog_v1_binarylog_proto_depIdxs, + EnumInfos: file_grpc_binlog_v1_binarylog_proto_enumTypes, + MessageInfos: file_grpc_binlog_v1_binarylog_proto_msgTypes, + }.Build() + File_grpc_binlog_v1_binarylog_proto = out.File + file_grpc_binlog_v1_binarylog_proto_rawDesc = nil + file_grpc_binlog_v1_binarylog_proto_goTypes = nil + file_grpc_binlog_v1_binarylog_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/grpc/call.go b/vendor/google.golang.org/grpc/call.go index f73b7d5..9e20e4d 100644 --- a/vendor/google.golang.org/grpc/call.go +++ b/vendor/google.golang.org/grpc/call.go @@ -19,7 +19,7 @@ package grpc import ( - "golang.org/x/net/context" + "context" ) // Invoke sends the RPC request on the wire and returns after response is @@ -40,7 +40,7 @@ func (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply int func combine(o1 []CallOption, o2 []CallOption) []CallOption { // we don't use append because o1 could have extra capacity whose // elements would be overwritten, which could cause inadvertent - // sharing (and race connditions) between concurrent calls + // sharing (and race conditions) between concurrent calls if len(o1) == 0 { return o2 } else if len(o2) == 0 { @@ -63,31 +63,12 @@ func Invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli var unaryStreamDesc = &StreamDesc{ServerStreams: false, ClientStreams: false} func invoke(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, opts ...CallOption) error { - // TODO: implement retries in clientStream and make this simply - // newClientStream, SendMsg, RecvMsg. - firstAttempt := true - for { - csInt, err := newClientStream(ctx, unaryStreamDesc, cc, method, opts...) - if err != nil { - return err - } - cs := csInt.(*clientStream) - if err := cs.SendMsg(req); err != nil { - if !cs.c.failFast && cs.attempt.s.Unprocessed() && firstAttempt { - // TODO: Add a field to header for grpc-transparent-retry-attempts - firstAttempt = false - continue - } - return err - } - if err := cs.RecvMsg(reply); err != nil { - if !cs.c.failFast && cs.attempt.s.Unprocessed() && firstAttempt { - // TODO: Add a field to header for grpc-transparent-retry-attempts - firstAttempt = false - continue - } - return err - } - return nil + cs, err := newClientStream(ctx, unaryStreamDesc, cc, method, opts...) + if err != nil { + return err } + if err := cs.SendMsg(req); err != nil { + return err + } + return cs.RecvMsg(reply) } diff --git a/vendor/google.golang.org/grpc/channelz/channelz.go b/vendor/google.golang.org/grpc/channelz/channelz.go new file mode 100644 index 0000000..32b7fa5 --- /dev/null +++ b/vendor/google.golang.org/grpc/channelz/channelz.go @@ -0,0 +1,36 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 channelz exports internals of the channelz implementation as required +// by other gRPC packages. +// +// The implementation of the channelz spec as defined in +// https://github.com/grpc/proposal/blob/master/A14-channelz.md, is provided by +// the `internal/channelz` package. +// +// # Experimental +// +// Notice: All APIs in this package are experimental and may be removed in a +// later release. +package channelz + +import "google.golang.org/grpc/internal/channelz" + +// Identifier is an opaque identifier which uniquely identifies an entity in the +// channelz database. +type Identifier = channelz.Identifier diff --git a/vendor/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.go index 6385407..d607d4e 100644 --- a/vendor/google.golang.org/grpc/clientconn.go +++ b/vendor/google.golang.org/grpc/clientconn.go @@ -19,35 +19,43 @@ package grpc import ( + "context" "errors" "fmt" "math" - "net" + "net/url" "reflect" "strings" "sync" + "sync/atomic" "time" - "golang.org/x/net/context" - "golang.org/x/net/trace" "google.golang.org/grpc/balancer" - _ "google.golang.org/grpc/balancer/roundrobin" // To register roundrobin. + "google.golang.org/grpc/balancer/base" "google.golang.org/grpc/codes" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/credentials" - "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal/backoff" + "google.golang.org/grpc/internal/channelz" + "google.golang.org/grpc/internal/grpcsync" + iresolver "google.golang.org/grpc/internal/resolver" + "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/keepalive" "google.golang.org/grpc/resolver" - _ "google.golang.org/grpc/resolver/dns" // To register dns resolver. - _ "google.golang.org/grpc/resolver/passthrough" // To register passthrough resolver. - "google.golang.org/grpc/stats" + "google.golang.org/grpc/serviceconfig" "google.golang.org/grpc/status" - "google.golang.org/grpc/transport" + + _ "google.golang.org/grpc/balancer/roundrobin" // To register roundrobin. + _ "google.golang.org/grpc/internal/resolver/dns" // To register dns resolver. + _ "google.golang.org/grpc/internal/resolver/passthrough" // To register passthrough resolver. + _ "google.golang.org/grpc/internal/resolver/unix" // To register unix resolver. ) const ( // minimum time to give a connection to complete minConnectTimeout = 20 * time.Second + // must match grpclbName in grpclb/grpclb.go + grpclbName = "grpclb" ) var ( @@ -61,15 +69,9 @@ var ( errConnDrain = errors.New("grpc: the connection is drained") // errConnClosing indicates that the connection is closing. errConnClosing = errors.New("grpc: the connection is closing") - // errConnUnavailable indicates that the connection is unavailable. - errConnUnavailable = errors.New("grpc: the connection is unavailable") - // errBalancerClosed indicates that the balancer is closed. - errBalancerClosed = errors.New("grpc: balancer is closed") - // We use an accessor so that minConnectTimeout can be - // atomically read and updated while testing. - getMinConnectTimeout = func() time.Duration { - return minConnectTimeout - } + // invalidDefaultServiceConfigErrPrefix is used to prefix the json parsing error for the default + // service config. + invalidDefaultServiceConfigErrPrefix = "grpc: the provided default service config is invalid" ) // The following errors are returned from Dial and DialContext @@ -77,360 +79,119 @@ var ( // errNoTransportSecurity indicates that there is no transport security // being set for ClientConn. Users should either set one or explicitly // call WithInsecure DialOption to disable security. - errNoTransportSecurity = errors.New("grpc: no transport security set (use grpc.WithInsecure() explicitly or set credentials)") - // errTransportCredentialsMissing indicates that users want to transmit security - // information (e.g., oauth2 token) which requires secure connection on an insecure - // connection. + errNoTransportSecurity = errors.New("grpc: no transport security set (use grpc.WithTransportCredentials(insecure.NewCredentials()) explicitly or set credentials)") + // errTransportCredsAndBundle indicates that creds bundle is used together + // with other individual Transport Credentials. + errTransportCredsAndBundle = errors.New("grpc: credentials.Bundle may not be used with individual TransportCredentials") + // errNoTransportCredsInBundle indicated that the configured creds bundle + // returned a transport credentials which was nil. + errNoTransportCredsInBundle = errors.New("grpc: credentials.Bundle must return non-nil transport credentials") + // errTransportCredentialsMissing indicates that users want to transmit + // security information (e.g., OAuth2 token) which requires secure + // connection on an insecure connection. errTransportCredentialsMissing = errors.New("grpc: the credentials require transport level security (use grpc.WithTransportCredentials() to set)") - // errCredentialsConflict indicates that grpc.WithTransportCredentials() - // and grpc.WithInsecure() are both called for a connection. - errCredentialsConflict = errors.New("grpc: transport credentials are set for an insecure connection (grpc.WithTransportCredentials() and grpc.WithInsecure() are both called)") - // errNetworkIO indicates that the connection is down due to some network I/O error. - errNetworkIO = errors.New("grpc: failed with network I/O error") ) -// dialOptions configure a Dial call. dialOptions are set by the DialOption -// values passed to Dial. -type dialOptions struct { - unaryInt UnaryClientInterceptor - streamInt StreamClientInterceptor - cp Compressor - dc Decompressor - bs backoffStrategy - block bool - insecure bool - timeout time.Duration - scChan <-chan ServiceConfig - copts transport.ConnectOptions - callOptions []CallOption - // This is used by v1 balancer dial option WithBalancer to support v1 - // balancer, and also by WithBalancerName dial option. - balancerBuilder balancer.Builder - // This is to support grpclb. - resolverBuilder resolver.Builder - waitForHandshake bool -} - const ( defaultClientMaxReceiveMessageSize = 1024 * 1024 * 4 defaultClientMaxSendMessageSize = math.MaxInt32 + // http2IOBufSize specifies the buffer size for sending frames. + defaultWriteBufSize = 32 * 1024 + defaultReadBufSize = 32 * 1024 ) -// DialOption configures how we set up the connection. -type DialOption func(*dialOptions) - -// WithWaitForHandshake blocks until the initial settings frame is received from the -// server before assigning RPCs to the connection. -// Experimental API. -func WithWaitForHandshake() DialOption { - return func(o *dialOptions) { - o.waitForHandshake = true - } -} - -// WithWriteBufferSize lets you set the size of write buffer, this determines how much data can be batched -// before doing a write on the wire. -func WithWriteBufferSize(s int) DialOption { - return func(o *dialOptions) { - o.copts.WriteBufferSize = s - } -} - -// WithReadBufferSize lets you set the size of read buffer, this determines how much data can be read at most -// for each read syscall. -func WithReadBufferSize(s int) DialOption { - return func(o *dialOptions) { - o.copts.ReadBufferSize = s - } -} - -// WithInitialWindowSize returns a DialOption which sets the value for initial window size on a stream. -// The lower bound for window size is 64K and any value smaller than that will be ignored. -func WithInitialWindowSize(s int32) DialOption { - return func(o *dialOptions) { - o.copts.InitialWindowSize = s - } -} - -// WithInitialConnWindowSize returns a DialOption which sets the value for initial window size on a connection. -// The lower bound for window size is 64K and any value smaller than that will be ignored. -func WithInitialConnWindowSize(s int32) DialOption { - return func(o *dialOptions) { - o.copts.InitialConnWindowSize = s - } -} - -// WithMaxMsgSize returns a DialOption which sets the maximum message size the client can receive. Deprecated: use WithDefaultCallOptions(MaxCallRecvMsgSize(s)) instead. -func WithMaxMsgSize(s int) DialOption { - return WithDefaultCallOptions(MaxCallRecvMsgSize(s)) -} - -// WithDefaultCallOptions returns a DialOption which sets the default CallOptions for calls over the connection. -func WithDefaultCallOptions(cos ...CallOption) DialOption { - return func(o *dialOptions) { - o.callOptions = append(o.callOptions, cos...) - } -} - -// WithCodec returns a DialOption which sets a codec for message marshaling and unmarshaling. -// -// Deprecated: use WithDefaultCallOptions(CallCustomCodec(c)) instead. -func WithCodec(c Codec) DialOption { - return WithDefaultCallOptions(CallCustomCodec(c)) -} - -// WithCompressor returns a DialOption which sets a Compressor to use for -// message compression. It has lower priority than the compressor set by -// the UseCompressor CallOption. -// -// Deprecated: use UseCompressor instead. -func WithCompressor(cp Compressor) DialOption { - return func(o *dialOptions) { - o.cp = cp - } +// Dial creates a client connection to the given target. +func Dial(target string, opts ...DialOption) (*ClientConn, error) { + return DialContext(context.Background(), target, opts...) } -// WithDecompressor returns a DialOption which sets a Decompressor to use for -// incoming message decompression. If incoming response messages are encoded -// using the decompressor's Type(), it will be used. Otherwise, the message -// encoding will be used to look up the compressor registered via -// encoding.RegisterCompressor, which will then be used to decompress the -// message. If no compressor is registered for the encoding, an Unimplemented -// status error will be returned. -// -// Deprecated: use encoding.RegisterCompressor instead. -func WithDecompressor(dc Decompressor) DialOption { - return func(o *dialOptions) { - o.dc = dc - } +type defaultConfigSelector struct { + sc *ServiceConfig } -// WithBalancer returns a DialOption which sets a load balancer with the v1 API. -// Name resolver will be ignored if this DialOption is specified. -// -// Deprecated: use the new balancer APIs in balancer package and WithBalancerName. -func WithBalancer(b Balancer) DialOption { - return func(o *dialOptions) { - o.balancerBuilder = &balancerWrapperBuilder{ - b: b, - } - } +func (dcs *defaultConfigSelector) SelectConfig(rpcInfo iresolver.RPCInfo) (*iresolver.RPCConfig, error) { + return &iresolver.RPCConfig{ + Context: rpcInfo.Context, + MethodConfig: getMethodConfig(dcs.sc, rpcInfo.Method), + }, nil } -// WithBalancerName sets the balancer that the ClientConn will be initialized -// with. Balancer registered with balancerName will be used. This function -// panics if no balancer was registered by balancerName. +// DialContext creates a client connection to the given target. By default, it's +// a non-blocking dial (the function won't wait for connections to be +// established, and connecting happens in the background). To make it a blocking +// dial, use WithBlock() dial option. // -// The balancer cannot be overridden by balancer option specified by service -// config. -// -// This is an EXPERIMENTAL API. -func WithBalancerName(balancerName string) DialOption { - builder := balancer.Get(balancerName) - if builder == nil { - panic(fmt.Sprintf("grpc.WithBalancerName: no balancer is registered for name %v", balancerName)) - } - return func(o *dialOptions) { - o.balancerBuilder = builder - } -} - -// withResolverBuilder is only for grpclb. -func withResolverBuilder(b resolver.Builder) DialOption { - return func(o *dialOptions) { - o.resolverBuilder = b - } -} - -// WithServiceConfig returns a DialOption which has a channel to read the service configuration. -// DEPRECATED: service config should be received through name resolver, as specified here. -// https://github.com/grpc/grpc/blob/master/doc/service_config.md -func WithServiceConfig(c <-chan ServiceConfig) DialOption { - return func(o *dialOptions) { - o.scChan = c - } -} - -// WithBackoffMaxDelay configures the dialer to use the provided maximum delay -// when backing off after failed connection attempts. -func WithBackoffMaxDelay(md time.Duration) DialOption { - return WithBackoffConfig(BackoffConfig{MaxDelay: md}) -} - -// WithBackoffConfig configures the dialer to use the provided backoff -// parameters after connection failures. +// In the non-blocking case, the ctx does not act against the connection. It +// only controls the setup steps. // -// Use WithBackoffMaxDelay until more parameters on BackoffConfig are opened up -// for use. -func WithBackoffConfig(b BackoffConfig) DialOption { - // Set defaults to ensure that provided BackoffConfig is valid and - // unexported fields get default values. - setDefaults(&b) - return withBackoff(b) -} - -// withBackoff sets the backoff strategy used for connectRetryNum after a -// failed connection attempt. +// In the blocking case, ctx can be used to cancel or expire the pending +// connection. Once this function returns, the cancellation and expiration of +// ctx will be noop. Users should call ClientConn.Close to terminate all the +// pending operations after this function returns. // -// This can be exported if arbitrary backoff strategies are allowed by gRPC. -func withBackoff(bs backoffStrategy) DialOption { - return func(o *dialOptions) { - o.bs = bs - } -} - -// WithBlock returns a DialOption which makes caller of Dial blocks until the underlying -// connection is up. Without this, Dial returns immediately and connecting the server -// happens in background. -func WithBlock() DialOption { - return func(o *dialOptions) { - o.block = true - } -} - -// WithInsecure returns a DialOption which disables transport security for this ClientConn. -// Note that transport security is required unless WithInsecure is set. -func WithInsecure() DialOption { - return func(o *dialOptions) { - o.insecure = true - } -} - -// WithTransportCredentials returns a DialOption which configures a -// connection level security credentials (e.g., TLS/SSL). -func WithTransportCredentials(creds credentials.TransportCredentials) DialOption { - return func(o *dialOptions) { - o.copts.TransportCredentials = creds - } -} - -// WithPerRPCCredentials returns a DialOption which sets -// credentials and places auth state on each outbound RPC. -func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption { - return func(o *dialOptions) { - o.copts.PerRPCCredentials = append(o.copts.PerRPCCredentials, creds) - } -} - -// WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn -// initially. This is valid if and only if WithBlock() is present. -// Deprecated: use DialContext and context.WithTimeout instead. -func WithTimeout(d time.Duration) DialOption { - return func(o *dialOptions) { - o.timeout = d - } -} +// The target name syntax is defined in +// https://github.com/grpc/grpc/blob/master/doc/naming.md. +// e.g. to use dns resolver, a "dns:///" prefix should be applied to the target. +func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) { + cc := &ClientConn{ + target: target, + csMgr: &connectivityStateManager{}, + conns: make(map[*addrConn]struct{}), + dopts: defaultDialOptions(), + blockingpicker: newPickerWrapper(), + czData: new(channelzData), + firstResolveEvent: grpcsync.NewEvent(), + } + cc.retryThrottler.Store((*retryThrottler)(nil)) + cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{nil}) + cc.ctx, cc.cancel = context.WithCancel(context.Background()) -func withContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption { - return func(o *dialOptions) { - o.copts.Dialer = f + for _, opt := range extraDialOptions { + opt.apply(&cc.dopts) } -} - -// WithDialer returns a DialOption that specifies a function to use for dialing network addresses. -// If FailOnNonTempDialError() is set to true, and an error is returned by f, gRPC checks the error's -// Temporary() method to decide if it should try to reconnect to the network address. -func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption { - return withContextDialer( - func(ctx context.Context, addr string) (net.Conn, error) { - if deadline, ok := ctx.Deadline(); ok { - return f(addr, deadline.Sub(time.Now())) - } - return f(addr, 0) - }) -} -// WithStatsHandler returns a DialOption that specifies the stats handler -// for all the RPCs and underlying network connections in this ClientConn. -func WithStatsHandler(h stats.Handler) DialOption { - return func(o *dialOptions) { - o.copts.StatsHandler = h + for _, opt := range opts { + opt.apply(&cc.dopts) } -} -// FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on non-temporary dial errors. -// If f is true, and dialer returns a non-temporary error, gRPC will fail the connection to the network -// address and won't try to reconnect. -// The default value of FailOnNonTempDialError is false. -// This is an EXPERIMENTAL API. -func FailOnNonTempDialError(f bool) DialOption { - return func(o *dialOptions) { - o.copts.FailOnNonTempDialError = f - } -} + chainUnaryClientInterceptors(cc) + chainStreamClientInterceptors(cc) -// WithUserAgent returns a DialOption that specifies a user agent string for all the RPCs. -func WithUserAgent(s string) DialOption { - return func(o *dialOptions) { - o.copts.UserAgent = s - } -} + defer func() { + if err != nil { + cc.Close() + } + }() -// WithKeepaliveParams returns a DialOption that specifies keepalive parameters for the client transport. -func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption { - return func(o *dialOptions) { - o.copts.KeepaliveParams = kp + pid := cc.dopts.channelzParentID + cc.channelzID = channelz.RegisterChannel(&channelzChannel{cc}, pid, target) + ted := &channelz.TraceEventDesc{ + Desc: "Channel created", + Severity: channelz.CtInfo, } -} - -// WithUnaryInterceptor returns a DialOption that specifies the interceptor for unary RPCs. -func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption { - return func(o *dialOptions) { - o.unaryInt = f + if cc.dopts.channelzParentID != nil { + ted.Parent = &channelz.TraceEventDesc{ + Desc: fmt.Sprintf("Nested Channel(id:%d) created", cc.channelzID.Int()), + Severity: channelz.CtInfo, + } } -} + channelz.AddTraceEvent(logger, cc.channelzID, 1, ted) + cc.csMgr.channelzID = cc.channelzID -// WithStreamInterceptor returns a DialOption that specifies the interceptor for streaming RPCs. -func WithStreamInterceptor(f StreamClientInterceptor) DialOption { - return func(o *dialOptions) { - o.streamInt = f + if cc.dopts.copts.TransportCredentials == nil && cc.dopts.copts.CredsBundle == nil { + return nil, errNoTransportSecurity } -} - -// WithAuthority returns a DialOption that specifies the value to be used as -// the :authority pseudo-header. This value only works with WithInsecure and -// has no effect if TransportCredentials are present. -func WithAuthority(a string) DialOption { - return func(o *dialOptions) { - o.copts.Authority = a + if cc.dopts.copts.TransportCredentials != nil && cc.dopts.copts.CredsBundle != nil { + return nil, errTransportCredsAndBundle } -} - -// Dial creates a client connection to the given target. -func Dial(target string, opts ...DialOption) (*ClientConn, error) { - return DialContext(context.Background(), target, opts...) -} - -// DialContext creates a client connection to the given target. ctx can be used to -// cancel or expire the pending connection. Once this function returns, the -// cancellation and expiration of ctx will be noop. Users should call ClientConn.Close -// to terminate all the pending operations after this function returns. -// -// The target name syntax is defined in -// https://github.com/grpc/grpc/blob/master/doc/naming.md. -// e.g. to use dns resolver, a "dns:///" prefix should be applied to the target. -func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) { - cc := &ClientConn{ - target: target, - csMgr: &connectivityStateManager{}, - conns: make(map[*addrConn]struct{}), - - blockingpicker: newPickerWrapper(), + if cc.dopts.copts.CredsBundle != nil && cc.dopts.copts.CredsBundle.TransportCredentials() == nil { + return nil, errNoTransportCredsInBundle } - cc.ctx, cc.cancel = context.WithCancel(context.Background()) - - for _, opt := range opts { - opt(&cc.dopts) + transportCreds := cc.dopts.copts.TransportCredentials + if transportCreds == nil { + transportCreds = cc.dopts.copts.CredsBundle.TransportCredentials() } - - if !cc.dopts.insecure { - if cc.dopts.copts.TransportCredentials == nil { - return nil, errNoTransportSecurity - } - } else { - if cc.dopts.copts.TransportCredentials != nil { - return nil, errCredentialsConflict - } + if transportCreds.Info().SecurityProtocol == "insecure" { for _, cd := range cc.dopts.copts.PerRPCCredentials { if cd.RequireTransportSecurity() { return nil, errTransportCredentialsMissing @@ -438,16 +199,14 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * } } - cc.mkp = cc.dopts.copts.KeepaliveParams - - if cc.dopts.copts.Dialer == nil { - cc.dopts.copts.Dialer = newProxyDialer( - func(ctx context.Context, addr string) (net.Conn, error) { - network, addr := parseDialTarget(addr) - return dialContext(ctx, network, addr) - }, - ) + if cc.dopts.defaultServiceConfigRawJSON != nil { + scpr := parseServiceConfig(*cc.dopts.defaultServiceConfigRawJSON) + if scpr.Err != nil { + return nil, fmt.Errorf("%s: %v", invalidDefaultServiceConfigErrPrefix, scpr.Err) + } + cc.dopts.defaultServiceConfig, _ = scpr.Config.(*ServiceConfig) } + cc.mkp = cc.dopts.copts.KeepaliveParams if cc.dopts.copts.UserAgent != "" { cc.dopts.copts.UserAgent += " " + grpcUA @@ -460,17 +219,19 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * ctx, cancel = context.WithTimeout(ctx, cc.dopts.timeout) defer cancel() } - defer func() { select { case <-ctx.Done(): - conn, err = nil, ctx.Err() + switch { + case ctx.Err() == err: + conn = nil + case err == nil || !cc.dopts.returnLastError: + conn, err = nil, ctx.Err() + default: + conn, err = nil, fmt.Errorf("%v: %v", ctx.Err(), err) + } default: } - - if err != nil { - cc.Close() - } }() scSet := false @@ -479,51 +240,35 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * select { case sc, ok := <-cc.dopts.scChan: if ok { - cc.sc = sc + cc.sc = &sc + cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{&sc}) scSet = true } default: } } if cc.dopts.bs == nil { - cc.dopts.bs = DefaultBackoffConfig - } - if cc.dopts.resolverBuilder == nil { - // Only try to parse target when resolver builder is not already set. - cc.parsedTarget = parseTarget(cc.target) - grpclog.Infof("parsed scheme: %q", cc.parsedTarget.Scheme) - cc.dopts.resolverBuilder = resolver.Get(cc.parsedTarget.Scheme) - if cc.dopts.resolverBuilder == nil { - // If resolver builder is still nil, the parse target's scheme is - // not registered. Fallback to default resolver and set Endpoint to - // the original unparsed target. - grpclog.Infof("scheme %q not registered, fallback to default scheme", cc.parsedTarget.Scheme) - cc.parsedTarget = resolver.Target{ - Scheme: resolver.GetDefaultScheme(), - Endpoint: target, - } - cc.dopts.resolverBuilder = resolver.Get(cc.parsedTarget.Scheme) - } - } else { - cc.parsedTarget = resolver.Target{Endpoint: target} + cc.dopts.bs = backoff.DefaultExponential } - creds := cc.dopts.copts.TransportCredentials - if creds != nil && creds.Info().ServerName != "" { - cc.authority = creds.Info().ServerName - } else if cc.dopts.insecure && cc.dopts.copts.Authority != "" { - cc.authority = cc.dopts.copts.Authority - } else { - // Use endpoint from "scheme://authority/endpoint" as the default - // authority for ClientConn. - cc.authority = cc.parsedTarget.Endpoint + + // Determine the resolver to use. + resolverBuilder, err := cc.parseTargetAndFindResolver() + if err != nil { + return nil, err + } + cc.authority, err = determineAuthority(cc.parsedTarget.Endpoint(), cc.target, cc.dopts) + if err != nil { + return nil, err } + channelz.Infof(logger, cc.channelzID, "Channel authority set to %q", cc.authority) if cc.dopts.scChan != nil && !scSet { // Blocking wait for the initial service config. select { case sc, ok := <-cc.dopts.scChan: if ok { - cc.sc = sc + cc.sc = &sc + cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{&sc}) } case <-ctx.Done(): return nil, ctx.Err() @@ -537,34 +282,47 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * if creds := cc.dopts.copts.TransportCredentials; creds != nil { credsClone = creds.Clone() } - cc.balancerBuildOpts = balancer.BuildOptions{ - DialCreds: credsClone, - Dialer: cc.dopts.copts.Dialer, - } + cc.balancerWrapper = newCCBalancerWrapper(cc, balancer.BuildOptions{ + DialCreds: credsClone, + CredsBundle: cc.dopts.copts.CredsBundle, + Dialer: cc.dopts.copts.Dialer, + Authority: cc.authority, + CustomUserAgent: cc.dopts.copts.UserAgent, + ChannelzParentID: cc.channelzID, + Target: cc.parsedTarget, + }) // Build the resolver. - cc.resolverWrapper, err = newCCResolverWrapper(cc) + rWrapper, err := newCCResolverWrapper(cc, resolverBuilder) if err != nil { return nil, fmt.Errorf("failed to build resolver: %v", err) } - // Start the resolver wrapper goroutine after resolverWrapper is created. - // - // If the goroutine is started before resolverWrapper is ready, the - // following may happen: The goroutine sends updates to cc. cc forwards - // those to balancer. Balancer creates new addrConn. addrConn fails to - // connect, and calls resolveNow(). resolveNow() tries to use the non-ready - // resolverWrapper. - cc.resolverWrapper.start() + cc.mu.Lock() + cc.resolverWrapper = rWrapper + cc.mu.Unlock() // A blocking dial blocks until the clientConn is ready. if cc.dopts.block { for { + cc.Connect() s := cc.GetState() if s == connectivity.Ready { break + } else if cc.dopts.copts.FailOnNonTempDialError && s == connectivity.TransientFailure { + if err = cc.connectionError(); err != nil { + terr, ok := err.(interface { + Temporary() bool + }) + if ok && !terr.Temporary() { + return nil, err + } + } } if !cc.WaitForStateChange(ctx, s) { // ctx got timeout or canceled. + if err = cc.connectionError(); err != nil && cc.dopts.returnLastError { + return nil, err + } return nil, ctx.Err() } } @@ -573,12 +331,75 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * return cc, nil } +// chainUnaryClientInterceptors chains all unary client interceptors into one. +func chainUnaryClientInterceptors(cc *ClientConn) { + interceptors := cc.dopts.chainUnaryInts + // Prepend dopts.unaryInt to the chaining interceptors if it exists, since unaryInt will + // be executed before any other chained interceptors. + if cc.dopts.unaryInt != nil { + interceptors = append([]UnaryClientInterceptor{cc.dopts.unaryInt}, interceptors...) + } + var chainedInt UnaryClientInterceptor + if len(interceptors) == 0 { + chainedInt = nil + } else if len(interceptors) == 1 { + chainedInt = interceptors[0] + } else { + chainedInt = func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error { + return interceptors[0](ctx, method, req, reply, cc, getChainUnaryInvoker(interceptors, 0, invoker), opts...) + } + } + cc.dopts.unaryInt = chainedInt +} + +// getChainUnaryInvoker recursively generate the chained unary invoker. +func getChainUnaryInvoker(interceptors []UnaryClientInterceptor, curr int, finalInvoker UnaryInvoker) UnaryInvoker { + if curr == len(interceptors)-1 { + return finalInvoker + } + return func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, opts ...CallOption) error { + return interceptors[curr+1](ctx, method, req, reply, cc, getChainUnaryInvoker(interceptors, curr+1, finalInvoker), opts...) + } +} + +// chainStreamClientInterceptors chains all stream client interceptors into one. +func chainStreamClientInterceptors(cc *ClientConn) { + interceptors := cc.dopts.chainStreamInts + // Prepend dopts.streamInt to the chaining interceptors if it exists, since streamInt will + // be executed before any other chained interceptors. + if cc.dopts.streamInt != nil { + interceptors = append([]StreamClientInterceptor{cc.dopts.streamInt}, interceptors...) + } + var chainedInt StreamClientInterceptor + if len(interceptors) == 0 { + chainedInt = nil + } else if len(interceptors) == 1 { + chainedInt = interceptors[0] + } else { + chainedInt = func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error) { + return interceptors[0](ctx, desc, cc, method, getChainStreamer(interceptors, 0, streamer), opts...) + } + } + cc.dopts.streamInt = chainedInt +} + +// getChainStreamer recursively generate the chained client stream constructor. +func getChainStreamer(interceptors []StreamClientInterceptor, curr int, finalStreamer Streamer) Streamer { + if curr == len(interceptors)-1 { + return finalStreamer + } + return func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error) { + return interceptors[curr+1](ctx, desc, cc, method, getChainStreamer(interceptors, curr+1, finalStreamer), opts...) + } +} + // connectivityStateManager keeps the connectivity.State of ClientConn. // This struct will eventually be exported so the balancers can access it. type connectivityStateManager struct { mu sync.Mutex state connectivity.State notifyChan chan struct{} + channelzID *channelz.Identifier } // updateState updates the connectivity.State of ClientConn. @@ -594,6 +415,7 @@ func (csm *connectivityStateManager) updateState(state connectivity.State) { return } csm.state = state + channelz.Infof(logger, csm.channelzID, "Channel Connectivity change to %v", state) if csm.notifyChan != nil { // There are other goroutines waiting on this channel. close(csm.notifyChan) @@ -616,36 +438,75 @@ func (csm *connectivityStateManager) getNotifyChan() <-chan struct{} { return csm.notifyChan } -// ClientConn represents a client connection to an RPC server. -type ClientConn struct { - ctx context.Context - cancel context.CancelFunc - - target string - parsedTarget resolver.Target - authority string - dopts dialOptions - csMgr *connectivityStateManager +// ClientConnInterface defines the functions clients need to perform unary and +// streaming RPCs. It is implemented by *ClientConn, and is only intended to +// be referenced by generated code. +type ClientConnInterface interface { + // Invoke performs a unary RPC and returns after the response is received + // into reply. + Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...CallOption) error + // NewStream begins a streaming RPC. + NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error) +} - balancerBuildOpts balancer.BuildOptions - resolverWrapper *ccResolverWrapper - blockingpicker *pickerWrapper +// Assert *ClientConn implements ClientConnInterface. +var _ ClientConnInterface = (*ClientConn)(nil) - mu sync.RWMutex - sc ServiceConfig - scRaw string - conns map[*addrConn]struct{} - // Keepalive parameter can be updated if a GoAway is received. - mkp keepalive.ClientParameters - curBalancerName string - preBalancerName string // previous balancer name. - curAddresses []resolver.Address - balancerWrapper *ccBalancerWrapper +// ClientConn represents a virtual connection to a conceptual endpoint, to +// perform RPCs. +// +// A ClientConn is free to have zero or more actual connections to the endpoint +// based on configuration, load, etc. It is also free to determine which actual +// endpoints to use and may change it every RPC, permitting client-side load +// balancing. +// +// A ClientConn encapsulates a range of functionality including name +// resolution, TCP connection establishment (with retries and backoff) and TLS +// handshakes. It also handles errors on established connections by +// re-resolving the name and reconnecting. +type ClientConn struct { + ctx context.Context // Initialized using the background context at dial time. + cancel context.CancelFunc // Cancelled on close. + + // The following are initialized at dial time, and are read-only after that. + target string // User's dial target. + parsedTarget resolver.Target // See parseTargetAndFindResolver(). + authority string // See determineAuthority(). + dopts dialOptions // Default and user specified dial options. + channelzID *channelz.Identifier // Channelz identifier for the channel. + balancerWrapper *ccBalancerWrapper // Uses gracefulswitch.balancer underneath. + + // The following provide their own synchronization, and therefore don't + // require cc.mu to be held to access them. + csMgr *connectivityStateManager + blockingpicker *pickerWrapper + safeConfigSelector iresolver.SafeConfigSelector + czData *channelzData + retryThrottler atomic.Value // Updated from service config. + + // firstResolveEvent is used to track whether the name resolver sent us at + // least one update. RPCs block on this event. + firstResolveEvent *grpcsync.Event + + // mu protects the following fields. + // TODO: split mu so the same mutex isn't used for everything. + mu sync.RWMutex + resolverWrapper *ccResolverWrapper // Initialized in Dial; cleared in Close. + sc *ServiceConfig // Latest service config received from the resolver. + conns map[*addrConn]struct{} // Set to nil on close. + mkp keepalive.ClientParameters // May be updated upon receipt of a GoAway. + + lceMu sync.Mutex // protects lastConnectionError + lastConnectionError error } // WaitForStateChange waits until the connectivity.State of ClientConn changes from sourceState or // ctx expires. A true value is returned in former case and false in latter. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool { ch := cc.csMgr.getNotifyChan() if cc.csMgr.getState() != sourceState { @@ -660,11 +521,27 @@ func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connec } // GetState returns the connectivity.State of ClientConn. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a later +// release. func (cc *ClientConn) GetState() connectivity.State { return cc.csMgr.getState() } +// Connect causes all subchannels in the ClientConn to attempt to connect if +// the channel is idle. Does not wait for the connection attempts to begin +// before returning. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a later +// release. +func (cc *ClientConn) Connect() { + cc.balancerWrapper.exitIdle() +} + func (cc *ClientConn) scWatcher() { for { select { @@ -674,9 +551,9 @@ func (cc *ClientConn) scWatcher() { } cc.mu.Lock() // TODO: load balance policy runtime change is ignored. - // We may revist this decision in the future. - cc.sc = sc - cc.scRaw = "" + // We may revisit this decision in the future. + cc.sc = &sc + cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{&sc}) cc.mu.Unlock() case <-cc.ctx.Done(): return @@ -684,128 +561,177 @@ func (cc *ClientConn) scWatcher() { } } -func (cc *ClientConn) handleResolvedAddrs(addrs []resolver.Address, err error) { - cc.mu.Lock() - defer cc.mu.Unlock() - if cc.conns == nil { - // cc was closed. - return +// waitForResolvedAddrs blocks until the resolver has provided addresses or the +// context expires. Returns nil unless the context expires first; otherwise +// returns a status error based on the context. +func (cc *ClientConn) waitForResolvedAddrs(ctx context.Context) error { + // This is on the RPC path, so we use a fast path to avoid the + // more-expensive "select" below after the resolver has returned once. + if cc.firstResolveEvent.HasFired() { + return nil } - - if reflect.DeepEqual(cc.curAddresses, addrs) { - return + select { + case <-cc.firstResolveEvent.Done(): + return nil + case <-ctx.Done(): + return status.FromContextError(ctx.Err()).Err() + case <-cc.ctx.Done(): + return ErrClientConnClosing } +} - cc.curAddresses = addrs +var emptyServiceConfig *ServiceConfig - if cc.dopts.balancerBuilder == nil { - // Only look at balancer types and switch balancer if balancer dial - // option is not set. - var isGRPCLB bool - for _, a := range addrs { - if a.Type == resolver.GRPCLB { - isGRPCLB = true - break - } - } - var newBalancerName string - if isGRPCLB { - newBalancerName = grpclbName - } else { - // Address list doesn't contain grpclb address. Try to pick a - // non-grpclb balancer. - newBalancerName = cc.curBalancerName - // If current balancer is grpclb, switch to the previous one. - if newBalancerName == grpclbName { - newBalancerName = cc.preBalancerName - } - // The following could be true in two cases: - // - the first time handling resolved addresses - // (curBalancerName="") - // - the first time handling non-grpclb addresses - // (curBalancerName="grpclb", preBalancerName="") - if newBalancerName == "" { - newBalancerName = PickFirstBalancerName - } - } - cc.switchBalancer(newBalancerName) - } else if cc.balancerWrapper == nil { - // Balancer dial option was set, and this is the first time handling - // resolved addresses. Build a balancer with dopts.balancerBuilder. - cc.balancerWrapper = newCCBalancerWrapper(cc, cc.dopts.balancerBuilder, cc.balancerBuildOpts) +func init() { + cfg := parseServiceConfig("{}") + if cfg.Err != nil { + panic(fmt.Sprintf("impossible error parsing empty service config: %v", cfg.Err)) } + emptyServiceConfig = cfg.Config.(*ServiceConfig) +} - cc.balancerWrapper.handleResolvedAddrs(addrs, nil) +func (cc *ClientConn) maybeApplyDefaultServiceConfig(addrs []resolver.Address) { + if cc.sc != nil { + cc.applyServiceConfigAndBalancer(cc.sc, nil, addrs) + return + } + if cc.dopts.defaultServiceConfig != nil { + cc.applyServiceConfigAndBalancer(cc.dopts.defaultServiceConfig, &defaultConfigSelector{cc.dopts.defaultServiceConfig}, addrs) + } else { + cc.applyServiceConfigAndBalancer(emptyServiceConfig, &defaultConfigSelector{emptyServiceConfig}, addrs) + } } -// switchBalancer starts the switching from current balancer to the balancer -// with the given name. -// -// It will NOT send the current address list to the new balancer. If needed, -// caller of this function should send address list to the new balancer after -// this function returns. -// -// Caller must hold cc.mu. -func (cc *ClientConn) switchBalancer(name string) { +func (cc *ClientConn) updateResolverState(s resolver.State, err error) error { + defer cc.firstResolveEvent.Fire() + cc.mu.Lock() + // Check if the ClientConn is already closed. Some fields (e.g. + // balancerWrapper) are set to nil when closing the ClientConn, and could + // cause nil pointer panic if we don't have this check. if cc.conns == nil { - return + cc.mu.Unlock() + return nil } - if strings.ToLower(cc.curBalancerName) == strings.ToLower(name) { - return + if err != nil { + // May need to apply the initial service config in case the resolver + // doesn't support service configs, or doesn't provide a service config + // with the new addresses. + cc.maybeApplyDefaultServiceConfig(nil) + + cc.balancerWrapper.resolverError(err) + + // No addresses are valid with err set; return early. + cc.mu.Unlock() + return balancer.ErrBadResolverState } - grpclog.Infof("ClientConn switching balancer to %q", name) - if cc.dopts.balancerBuilder != nil { - grpclog.Infoln("ignoring balancer switching: Balancer DialOption used instead") - return + var ret error + if cc.dopts.disableServiceConfig { + channelz.Infof(logger, cc.channelzID, "ignoring service config from resolver (%v) and applying the default because service config is disabled", s.ServiceConfig) + cc.maybeApplyDefaultServiceConfig(s.Addresses) + } else if s.ServiceConfig == nil { + cc.maybeApplyDefaultServiceConfig(s.Addresses) + // TODO: do we need to apply a failing LB policy if there is no + // default, per the error handling design? + } else { + if sc, ok := s.ServiceConfig.Config.(*ServiceConfig); s.ServiceConfig.Err == nil && ok { + configSelector := iresolver.GetConfigSelector(s) + if configSelector != nil { + if len(s.ServiceConfig.Config.(*ServiceConfig).Methods) != 0 { + channelz.Infof(logger, cc.channelzID, "method configs in service config will be ignored due to presence of config selector") + } + } else { + configSelector = &defaultConfigSelector{sc} + } + cc.applyServiceConfigAndBalancer(sc, configSelector, s.Addresses) + } else { + ret = balancer.ErrBadResolverState + if cc.sc == nil { + // Apply the failing LB only if we haven't received valid service config + // from the name resolver in the past. + cc.applyFailingLB(s.ServiceConfig) + cc.mu.Unlock() + return ret + } + } } - // TODO(bar switching) change this to two steps: drain and close. - // Keep track of sc in wrapper. - if cc.balancerWrapper != nil { - cc.balancerWrapper.close() + + var balCfg serviceconfig.LoadBalancingConfig + if cc.sc != nil && cc.sc.lbConfig != nil { + balCfg = cc.sc.lbConfig.cfg } + bw := cc.balancerWrapper + cc.mu.Unlock() - builder := balancer.Get(name) - if builder == nil { - grpclog.Infof("failed to get balancer builder for: %v, using pick_first instead", name) - builder = newPickfirstBuilder() + uccsErr := bw.updateClientConnState(&balancer.ClientConnState{ResolverState: s, BalancerConfig: balCfg}) + if ret == nil { + ret = uccsErr // prefer ErrBadResolver state since any other error is + // currently meaningless to the caller. } - cc.preBalancerName = cc.curBalancerName - cc.curBalancerName = builder.Name() - cc.balancerWrapper = newCCBalancerWrapper(cc, builder, cc.balancerBuildOpts) + return ret } -func (cc *ClientConn) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State) { - cc.mu.Lock() - if cc.conns == nil { - cc.mu.Unlock() - return +// applyFailingLB is akin to configuring an LB policy on the channel which +// always fails RPCs. Here, an actual LB policy is not configured, but an always +// erroring picker is configured, which returns errors with information about +// what was invalid in the received service config. A config selector with no +// service config is configured, and the connectivity state of the channel is +// set to TransientFailure. +// +// Caller must hold cc.mu. +func (cc *ClientConn) applyFailingLB(sc *serviceconfig.ParseResult) { + var err error + if sc.Err != nil { + err = status.Errorf(codes.Unavailable, "error parsing service config: %v", sc.Err) + } else { + err = status.Errorf(codes.Unavailable, "illegal service config type: %T", sc.Config) } - // TODO(bar switching) send updates to all balancer wrappers when balancer - // gracefully switching is supported. - cc.balancerWrapper.handleSubConnStateChange(sc, s) - cc.mu.Unlock() + cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{nil}) + cc.blockingpicker.updatePicker(base.NewErrPicker(err)) + cc.csMgr.updateState(connectivity.TransientFailure) +} + +func (cc *ClientConn) handleSubConnStateChange(sc balancer.SubConn, s connectivity.State, err error) { + cc.balancerWrapper.updateSubConnState(sc, s, err) } // newAddrConn creates an addrConn for addrs and adds it to cc.conns. // // Caller needs to make sure len(addrs) > 0. -func (cc *ClientConn) newAddrConn(addrs []resolver.Address) (*addrConn, error) { +func (cc *ClientConn) newAddrConn(addrs []resolver.Address, opts balancer.NewSubConnOptions) (*addrConn, error) { ac := &addrConn{ - cc: cc, - addrs: addrs, - dopts: cc.dopts, + state: connectivity.Idle, + cc: cc, + addrs: addrs, + scopts: opts, + dopts: cc.dopts, + czData: new(channelzData), + resetBackoff: make(chan struct{}), } ac.ctx, ac.cancel = context.WithCancel(cc.ctx) // Track ac in cc. This needs to be done before any getTransport(...) is called. cc.mu.Lock() + defer cc.mu.Unlock() if cc.conns == nil { - cc.mu.Unlock() return nil, ErrClientConnClosing } + + var err error + ac.channelzID, err = channelz.RegisterSubChannel(ac, cc.channelzID, "") + if err != nil { + return nil, err + } + channelz.AddTraceEvent(logger, ac.channelzID, 0, &channelz.TraceEventDesc{ + Desc: "Subchannel created", + Severity: channelz.CtInfo, + Parent: &channelz.TraceEventDesc{ + Desc: fmt.Sprintf("Subchannel(id:%d) created", ac.channelzID.Int()), + Severity: channelz.CtInfo, + }, + }) + cc.conns[ac] = struct{}{} - cc.mu.Unlock() return ac, nil } @@ -822,135 +748,275 @@ func (cc *ClientConn) removeAddrConn(ac *addrConn, err error) { ac.tearDown(err) } -// connect starts to creating transport and also starts the transport monitor -// goroutine for this ac. +func (cc *ClientConn) channelzMetric() *channelz.ChannelInternalMetric { + return &channelz.ChannelInternalMetric{ + State: cc.GetState(), + Target: cc.target, + CallsStarted: atomic.LoadInt64(&cc.czData.callsStarted), + CallsSucceeded: atomic.LoadInt64(&cc.czData.callsSucceeded), + CallsFailed: atomic.LoadInt64(&cc.czData.callsFailed), + LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&cc.czData.lastCallStartedTime)), + } +} + +// Target returns the target string of the ClientConn. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func (cc *ClientConn) Target() string { + return cc.target +} + +func (cc *ClientConn) incrCallsStarted() { + atomic.AddInt64(&cc.czData.callsStarted, 1) + atomic.StoreInt64(&cc.czData.lastCallStartedTime, time.Now().UnixNano()) +} + +func (cc *ClientConn) incrCallsSucceeded() { + atomic.AddInt64(&cc.czData.callsSucceeded, 1) +} + +func (cc *ClientConn) incrCallsFailed() { + atomic.AddInt64(&cc.czData.callsFailed, 1) +} + +// connect starts creating a transport. // It does nothing if the ac is not IDLE. // TODO(bar) Move this to the addrConn section. -// This was part of resetAddrConn, keep it here to make the diff look clean. func (ac *addrConn) connect() error { ac.mu.Lock() if ac.state == connectivity.Shutdown { + if logger.V(2) { + logger.Infof("connect called on shutdown addrConn; ignoring.") + } ac.mu.Unlock() return errConnClosing } if ac.state != connectivity.Idle { + if logger.V(2) { + logger.Infof("connect called on addrConn in non-idle state (%v); ignoring.", ac.state) + } ac.mu.Unlock() return nil } - ac.state = connectivity.Connecting - ac.cc.handleSubConnStateChange(ac.acbw, ac.state) + // Update connectivity state within the lock to prevent subsequent or + // concurrent calls from resetting the transport more than once. + ac.updateConnectivityState(connectivity.Connecting, nil) ac.mu.Unlock() - // Start a goroutine connecting to the server asynchronously. - go func() { - if err := ac.resetTransport(); err != nil { - grpclog.Warningf("Failed to dial %s: %v; please retry.", ac.addrs[0].Addr, err) - if err != errConnClosing { - // Keep this ac in cc.conns, to get the reason it's torn down. - ac.tearDown(err) - } - return - } - ac.transportMonitor() - }() + ac.resetTransport() return nil } +func equalAddresses(a, b []resolver.Address) bool { + if len(a) != len(b) { + return false + } + for i, v := range a { + if !v.Equal(b[i]) { + return false + } + } + return true +} + // tryUpdateAddrs tries to update ac.addrs with the new addresses list. // -// It checks whether current connected address of ac is in the new addrs list. -// - If true, it updates ac.addrs and returns true. The ac will keep using -// the existing connection. -// - If false, it does nothing and returns false. +// If ac is TransientFailure, it updates ac.addrs and returns true. The updated +// addresses will be picked up by retry in the next iteration after backoff. +// +// If ac is Shutdown or Idle, it updates ac.addrs and returns true. +// +// If the addresses is the same as the old list, it does nothing and returns +// true. +// +// If ac is Connecting, it returns false. The caller should tear down the ac and +// create a new one. Note that the backoff will be reset when this happens. +// +// If ac is Ready, it checks whether current connected address of ac is in the +// new addrs list. +// - If true, it updates ac.addrs and returns true. The ac will keep using +// the existing connection. +// - If false, it does nothing and returns false. func (ac *addrConn) tryUpdateAddrs(addrs []resolver.Address) bool { ac.mu.Lock() defer ac.mu.Unlock() - grpclog.Infof("addrConn: tryUpdateAddrs curAddr: %v, addrs: %v", ac.curAddr, addrs) - if ac.state == connectivity.Shutdown { + channelz.Infof(logger, ac.channelzID, "addrConn: tryUpdateAddrs curAddr: %v, addrs: %v", ac.curAddr, addrs) + if ac.state == connectivity.Shutdown || + ac.state == connectivity.TransientFailure || + ac.state == connectivity.Idle { ac.addrs = addrs return true } + if equalAddresses(ac.addrs, addrs) { + return true + } + + if ac.state == connectivity.Connecting { + return false + } + + // ac.state is Ready, try to find the connected address. var curAddrFound bool for _, a := range addrs { + a.ServerName = ac.cc.getServerName(a) if reflect.DeepEqual(ac.curAddr, a) { curAddrFound = true break } } - grpclog.Infof("addrConn: tryUpdateAddrs curAddrFound: %v", curAddrFound) + channelz.Infof(logger, ac.channelzID, "addrConn: tryUpdateAddrs curAddrFound: %v", curAddrFound) if curAddrFound { ac.addrs = addrs - ac.reconnectIdx = 0 // Start reconnecting from beginning in the new list. } return curAddrFound } +// getServerName determines the serverName to be used in the connection +// handshake. The default value for the serverName is the authority on the +// ClientConn, which either comes from the user's dial target or through an +// authority override specified using the WithAuthority dial option. Name +// resolvers can specify a per-address override for the serverName through the +// resolver.Address.ServerName field which is used only if the WithAuthority +// dial option was not used. The rationale is that per-address authority +// overrides specified by the name resolver can represent a security risk, while +// an override specified by the user is more dependable since they probably know +// what they are doing. +func (cc *ClientConn) getServerName(addr resolver.Address) string { + if cc.dopts.authority != "" { + return cc.dopts.authority + } + if addr.ServerName != "" { + return addr.ServerName + } + return cc.authority +} + +func getMethodConfig(sc *ServiceConfig, method string) MethodConfig { + if sc == nil { + return MethodConfig{} + } + if m, ok := sc.Methods[method]; ok { + return m + } + i := strings.LastIndex(method, "/") + if m, ok := sc.Methods[method[:i+1]]; ok { + return m + } + return sc.Methods[""] +} + // GetMethodConfig gets the method config of the input method. // If there's an exact match for input method (i.e. /service/method), we return // the corresponding MethodConfig. -// If there isn't an exact match for the input method, we look for the default config -// under the service (i.e /service/). If there is a default MethodConfig for -// the service, we return it. +// If there isn't an exact match for the input method, we look for the service's default +// config under the service (i.e /service/) and then for the default for all services (empty string). +// +// If there is a default MethodConfig for the service, we return it. // Otherwise, we return an empty MethodConfig. func (cc *ClientConn) GetMethodConfig(method string) MethodConfig { // TODO: Avoid the locking here. cc.mu.RLock() defer cc.mu.RUnlock() - m, ok := cc.sc.Methods[method] - if !ok { - i := strings.LastIndex(method, "/") - m, _ = cc.sc.Methods[method[:i+1]] - } - return m + return getMethodConfig(cc.sc, method) } -func (cc *ClientConn) getTransport(ctx context.Context, failfast bool) (transport.ClientTransport, func(balancer.DoneInfo), error) { - t, done, err := cc.blockingpicker.pick(ctx, failfast, balancer.PickOptions{}) - if err != nil { - return nil, nil, toRPCErr(err) +func (cc *ClientConn) healthCheckConfig() *healthCheckConfig { + cc.mu.RLock() + defer cc.mu.RUnlock() + if cc.sc == nil { + return nil } - return t, done, nil + return cc.sc.healthCheckConfig } -// handleServiceConfig parses the service config string in JSON format to Go native -// struct ServiceConfig, and store both the struct and the JSON string in ClientConn. -func (cc *ClientConn) handleServiceConfig(js string) error { - sc, err := parseServiceConfig(js) - if err != nil { - return err +func (cc *ClientConn) getTransport(ctx context.Context, failfast bool, method string) (transport.ClientTransport, balancer.PickResult, error) { + return cc.blockingpicker.pick(ctx, failfast, balancer.PickInfo{ + Ctx: ctx, + FullMethodName: method, + }) +} + +func (cc *ClientConn) applyServiceConfigAndBalancer(sc *ServiceConfig, configSelector iresolver.ConfigSelector, addrs []resolver.Address) { + if sc == nil { + // should never reach here. + return } - cc.mu.Lock() - cc.scRaw = js cc.sc = sc - if sc.LB != nil && *sc.LB != grpclbName { // "grpclb" is not a valid balancer option in service config. - if cc.curBalancerName == grpclbName { - // If current balancer is grpclb, there's at least one grpclb - // balancer address in the resolved list. Don't switch the balancer, - // but change the previous balancer name, so if a new resolved - // address list doesn't contain grpclb address, balancer will be - // switched to *sc.LB. - cc.preBalancerName = *sc.LB + if configSelector != nil { + cc.safeConfigSelector.UpdateConfigSelector(configSelector) + } + + if cc.sc.retryThrottling != nil { + newThrottler := &retryThrottler{ + tokens: cc.sc.retryThrottling.MaxTokens, + max: cc.sc.retryThrottling.MaxTokens, + thresh: cc.sc.retryThrottling.MaxTokens / 2, + ratio: cc.sc.retryThrottling.TokenRatio, + } + cc.retryThrottler.Store(newThrottler) + } else { + cc.retryThrottler.Store((*retryThrottler)(nil)) + } + + var newBalancerName string + if cc.sc != nil && cc.sc.lbConfig != nil { + newBalancerName = cc.sc.lbConfig.name + } else { + var isGRPCLB bool + for _, a := range addrs { + if a.Type == resolver.GRPCLB { + isGRPCLB = true + break + } + } + if isGRPCLB { + newBalancerName = grpclbName + } else if cc.sc != nil && cc.sc.LB != nil { + newBalancerName = *cc.sc.LB } else { - cc.switchBalancer(*sc.LB) - cc.balancerWrapper.handleResolvedAddrs(cc.curAddresses, nil) + newBalancerName = PickFirstBalancerName } } - cc.mu.Unlock() - return nil + cc.balancerWrapper.switchTo(newBalancerName) } -func (cc *ClientConn) resolveNow(o resolver.ResolveNowOption) { - cc.mu.Lock() +func (cc *ClientConn) resolveNow(o resolver.ResolveNowOptions) { + cc.mu.RLock() r := cc.resolverWrapper - cc.mu.Unlock() + cc.mu.RUnlock() if r == nil { return } go r.resolveNow(o) } +// ResetConnectBackoff wakes up all subchannels in transient failure and causes +// them to attempt another connection immediately. It also resets the backoff +// times used for subsequent attempts regardless of the current state. +// +// In general, this function should not be used. Typical service or network +// outages result in a reasonable client reconnection strategy by default. +// However, if a previously unavailable network becomes available, this may be +// used to trigger an immediate reconnect. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func (cc *ClientConn) ResetConnectBackoff() { + cc.mu.Lock() + conns := cc.conns + cc.mu.Unlock() + for ac := range conns { + ac.resetConnectBackoff() + } +} + // Close tears down the ClientConn and all underlying connections. func (cc *ClientConn) Close() error { defer cc.cancel() @@ -967,18 +1033,37 @@ func (cc *ClientConn) Close() error { rWrapper := cc.resolverWrapper cc.resolverWrapper = nil bWrapper := cc.balancerWrapper - cc.balancerWrapper = nil cc.mu.Unlock() + + // The order of closing matters here since the balancer wrapper assumes the + // picker is closed before it is closed. cc.blockingpicker.close() - if rWrapper != nil { - rWrapper.close() - } if bWrapper != nil { bWrapper.close() } + if rWrapper != nil { + rWrapper.close() + } + for ac := range conns { ac.tearDown(ErrClientConnClosing) } + ted := &channelz.TraceEventDesc{ + Desc: "Channel deleted", + Severity: channelz.CtInfo, + } + if cc.dopts.channelzParentID != nil { + ted.Parent = &channelz.TraceEventDesc{ + Desc: fmt.Sprintf("Nested channel(id:%d) deleted", cc.channelzID.Int()), + Severity: channelz.CtInfo, + } + } + channelz.AddTraceEvent(logger, cc.channelzID, 0, ted) + // TraceEvent needs to be called before RemoveEntry, as TraceEvent may add + // trace reference to the entity being deleted, and thus prevent it from being + // deleted right away. + channelz.RemoveEntry(cc.channelzID) + return nil } @@ -988,30 +1073,38 @@ type addrConn struct { cancel context.CancelFunc cc *ClientConn - addrs []resolver.Address dopts dialOptions - events trace.EventLog acbw balancer.SubConn + scopts balancer.NewSubConnOptions + + // transport is set when there's a viable transport (note: ac state may not be READY as LB channel + // health checking may require server to report healthy to set ac to READY), and is reset + // to nil when the current transport should no longer be used to create a stream (e.g. after GoAway + // is received, transport is closed, ac has been torn down). + transport transport.ClientTransport // The current transport. + + mu sync.Mutex + curAddr resolver.Address // The current address. + addrs []resolver.Address // All addresses that the resolver resolved to. - mu sync.Mutex - curAddr resolver.Address - reconnectIdx int // The index in addrs list to start reconnecting from. - state connectivity.State - // ready is closed and becomes nil when a new transport is up or failed - // due to timeout. - ready chan struct{} - transport transport.ClientTransport + // Use updateConnectivityState for updating addrConn's connectivity state. + state connectivity.State - // The reason this addrConn is torn down. - tearDownErr error + backoffIdx int // Needs to be stateful for resetConnectBackoff. + resetBackoff chan struct{} - connectRetryNum int - // backoffDeadline is the time until which resetTransport needs to - // wait before increasing connectRetryNum count. - backoffDeadline time.Time - // connectDeadline is the time by which all connection - // negotiations must complete. - connectDeadline time.Time + channelzID *channelz.Identifier + czData *channelzData +} + +// Note: this requires a lock on ac.mu. +func (ac *addrConn) updateConnectivityState(s connectivity.State, lastErr error) { + if ac.state == s { + return + } + ac.state = s + channelz.Infof(logger, ac.channelzID, "Subchannel Connectivity change to %v", s) + ac.cc.handleSubConnStateChange(ac.acbw, s, lastErr) } // adjustParams updates parameters used to create transports upon @@ -1028,365 +1121,325 @@ func (ac *addrConn) adjustParams(r transport.GoAwayReason) { } } -// printf records an event in ac's event log, unless ac has been closed. -// REQUIRES ac.mu is held. -func (ac *addrConn) printf(format string, a ...interface{}) { - if ac.events != nil { - ac.events.Printf(format, a...) - } -} - -// errorf records an error in ac's event log, unless ac has been closed. -// REQUIRES ac.mu is held. -func (ac *addrConn) errorf(format string, a ...interface{}) { - if ac.events != nil { - ac.events.Errorf(format, a...) - } -} - -// resetTransport recreates a transport to the address for ac. The old -// transport will close itself on error or when the clientconn is closed. -// The created transport must receive initial settings frame from the server. -// In case that doesnt happen, transportMonitor will kill the newly created -// transport after connectDeadline has expired. -// In case there was an error on the transport before the settings frame was -// received, resetTransport resumes connecting to backends after the one that -// was previously connected to. In case end of the list is reached, resetTransport -// backs off until the original deadline. -// If the DialOption WithWaitForHandshake was set, resetTrasport returns -// successfully only after server settings are received. -// -// TODO(bar) make sure all state transitions are valid. -func (ac *addrConn) resetTransport() error { +func (ac *addrConn) resetTransport() { ac.mu.Lock() if ac.state == connectivity.Shutdown { ac.mu.Unlock() - return errConnClosing + return } - if ac.ready != nil { - close(ac.ready) - ac.ready = nil + + addrs := ac.addrs + backoffFor := ac.dopts.bs.Backoff(ac.backoffIdx) + // This will be the duration that dial gets to finish. + dialDuration := minConnectTimeout + if ac.dopts.minConnectTimeout != nil { + dialDuration = ac.dopts.minConnectTimeout() } - ac.transport = nil - ridx := ac.reconnectIdx + + if dialDuration < backoffFor { + // Give dial more time as we keep failing to connect. + dialDuration = backoffFor + } + // We can potentially spend all the time trying the first address, and + // if the server accepts the connection and then hangs, the following + // addresses will never be tried. + // + // The spec doesn't mention what should be done for multiple addresses. + // https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md#proposed-backoff-algorithm + connectDeadline := time.Now().Add(dialDuration) + + ac.updateConnectivityState(connectivity.Connecting, nil) ac.mu.Unlock() - ac.cc.mu.RLock() - ac.dopts.copts.KeepaliveParams = ac.cc.mkp - ac.cc.mu.RUnlock() - var backoffDeadline, connectDeadline time.Time - for connectRetryNum := 0; ; connectRetryNum++ { + + if err := ac.tryAllAddrs(addrs, connectDeadline); err != nil { + ac.cc.resolveNow(resolver.ResolveNowOptions{}) + // After exhausting all addresses, the addrConn enters + // TRANSIENT_FAILURE. ac.mu.Lock() - if ac.backoffDeadline.IsZero() { - // This means either a successful HTTP2 connection was established - // or this is the first time this addrConn is trying to establish a - // connection. - backoffFor := ac.dopts.bs.backoff(connectRetryNum) // time.Duration. - // This will be the duration that dial gets to finish. - dialDuration := getMinConnectTimeout() - if backoffFor > dialDuration { - // Give dial more time as we keep failing to connect. - dialDuration = backoffFor - } - start := time.Now() - backoffDeadline = start.Add(backoffFor) - connectDeadline = start.Add(dialDuration) - ridx = 0 // Start connecting from the beginning. - } else { - // Continue trying to conect with the same deadlines. - connectRetryNum = ac.connectRetryNum - backoffDeadline = ac.backoffDeadline - connectDeadline = ac.connectDeadline - ac.backoffDeadline = time.Time{} - ac.connectDeadline = time.Time{} - ac.connectRetryNum = 0 - } if ac.state == connectivity.Shutdown { ac.mu.Unlock() - return errConnClosing - } - ac.printf("connecting") - if ac.state != connectivity.Connecting { - ac.state = connectivity.Connecting - ac.cc.handleSubConnStateChange(ac.acbw, ac.state) + return } - // copy ac.addrs in case of race - addrsIter := make([]resolver.Address, len(ac.addrs)) - copy(addrsIter, ac.addrs) - copts := ac.dopts.copts + ac.updateConnectivityState(connectivity.TransientFailure, err) + + // Backoff. + b := ac.resetBackoff ac.mu.Unlock() - connected, err := ac.createTransport(connectRetryNum, ridx, backoffDeadline, connectDeadline, addrsIter, copts) - if err != nil { - return err - } - if connected { - return nil - } - } -} -// createTransport creates a connection to one of the backends in addrs. -// It returns true if a connection was established. -func (ac *addrConn) createTransport(connectRetryNum, ridx int, backoffDeadline, connectDeadline time.Time, addrs []resolver.Address, copts transport.ConnectOptions) (bool, error) { - for i := ridx; i < len(addrs); i++ { - addr := addrs[i] - target := transport.TargetInfo{ - Addr: addr.Addr, - Metadata: addr.Metadata, - Authority: ac.cc.authority, - } - done := make(chan struct{}) - onPrefaceReceipt := func() { - ac.mu.Lock() - close(done) - if !ac.backoffDeadline.IsZero() { - // If we haven't already started reconnecting to - // other backends. - // Note, this can happen when writer notices an error - // and triggers resetTransport while at the same time - // reader receives the preface and invokes this closure. - ac.backoffDeadline = time.Time{} - ac.connectDeadline = time.Time{} - ac.connectRetryNum = 0 - } - ac.mu.Unlock() - } - // Do not cancel in the success path because of - // this issue in Go1.6: https://github.com/golang/go/issues/15078. - connectCtx, cancel := context.WithDeadline(ac.ctx, connectDeadline) - newTr, err := transport.NewClientTransport(connectCtx, ac.cc.ctx, target, copts, onPrefaceReceipt) - if err != nil { - cancel() - ac.cc.blockingpicker.updateConnectionError(err) + timer := time.NewTimer(backoffFor) + select { + case <-timer.C: ac.mu.Lock() - if ac.state == connectivity.Shutdown { - // ac.tearDown(...) has been invoked. - ac.mu.Unlock() - return false, errConnClosing - } + ac.backoffIdx++ ac.mu.Unlock() - grpclog.Warningf("grpc: addrConn.createTransport failed to connect to %v. Err :%v. Reconnecting...", addr, err) - continue - } - if ac.dopts.waitForHandshake { - select { - case <-done: - case <-connectCtx.Done(): - // Didn't receive server preface, must kill this new transport now. - grpclog.Warningf("grpc: addrConn.createTransport failed to receive server preface before deadline.") - newTr.Close() - break - case <-ac.ctx.Done(): - } + case <-b: + timer.Stop() + case <-ac.ctx.Done(): + timer.Stop() + return } + ac.mu.Lock() - if ac.state == connectivity.Shutdown { - ac.mu.Unlock() - // ac.tearDonn(...) has been invoked. - newTr.Close() - return false, errConnClosing - } - ac.printf("ready") - ac.state = connectivity.Ready - ac.cc.handleSubConnStateChange(ac.acbw, ac.state) - ac.transport = newTr - ac.curAddr = addr - if ac.ready != nil { - close(ac.ready) - ac.ready = nil - } - select { - case <-done: - // If the server has responded back with preface already, - // don't set the reconnect parameters. - default: - ac.connectRetryNum = connectRetryNum - ac.backoffDeadline = backoffDeadline - ac.connectDeadline = connectDeadline - ac.reconnectIdx = i + 1 // Start reconnecting from the next backend in the list. + if ac.state != connectivity.Shutdown { + ac.updateConnectivityState(connectivity.Idle, err) } ac.mu.Unlock() - return true, nil + return } + // Success; reset backoff. ac.mu.Lock() - ac.state = connectivity.TransientFailure - ac.cc.handleSubConnStateChange(ac.acbw, ac.state) - ac.cc.resolveNow(resolver.ResolveNowOption{}) - if ac.ready != nil { - close(ac.ready) - ac.ready = nil - } + ac.backoffIdx = 0 ac.mu.Unlock() - timer := time.NewTimer(backoffDeadline.Sub(time.Now())) - select { - case <-timer.C: - case <-ac.ctx.Done(): - timer.Stop() - return false, ac.ctx.Err() - } - return false, nil } -// Run in a goroutine to track the error in transport and create the -// new transport if an error happens. It returns when the channel is closing. -func (ac *addrConn) transportMonitor() { - for { - var timer *time.Timer - var cdeadline <-chan time.Time +// tryAllAddrs tries to creates a connection to the addresses, and stop when at +// the first successful one. It returns an error if no address was successfully +// connected, or updates ac appropriately with the new transport. +func (ac *addrConn) tryAllAddrs(addrs []resolver.Address, connectDeadline time.Time) error { + var firstConnErr error + for _, addr := range addrs { ac.mu.Lock() - t := ac.transport - if !ac.connectDeadline.IsZero() { - timer = time.NewTimer(ac.connectDeadline.Sub(time.Now())) - cdeadline = timer.C - } - ac.mu.Unlock() - // Block until we receive a goaway or an error occurs. - select { - case <-t.GoAway(): - case <-t.Error(): - case <-cdeadline: - ac.mu.Lock() - // This implies that client received server preface. - if ac.backoffDeadline.IsZero() { - ac.mu.Unlock() - continue - } + if ac.state == connectivity.Shutdown { ac.mu.Unlock() - timer = nil - // No server preface received until deadline. - // Kill the connection. - grpclog.Warningf("grpc: addrConn.transportMonitor didn't get server preface after waiting. Closing the new transport now.") - t.Close() + return errConnClosing } - if timer != nil { - timer.Stop() + + ac.cc.mu.RLock() + ac.dopts.copts.KeepaliveParams = ac.cc.mkp + ac.cc.mu.RUnlock() + + copts := ac.dopts.copts + if ac.scopts.CredsBundle != nil { + copts.CredsBundle = ac.scopts.CredsBundle } - // If a GoAway happened, regardless of error, adjust our keepalive - // parameters as appropriate. - select { - case <-t.GoAway(): - ac.adjustParams(t.GetGoAwayReason()) - default: + ac.mu.Unlock() + + channelz.Infof(logger, ac.channelzID, "Subchannel picks a new address %q to connect", addr.Addr) + + err := ac.createTransport(addr, copts, connectDeadline) + if err == nil { + return nil } + if firstConnErr == nil { + firstConnErr = err + } + ac.cc.updateConnectionError(err) + } + + // Couldn't connect to any address. + return firstConnErr +} + +// createTransport creates a connection to addr. It returns an error if the +// address was not successfully connected, or updates ac appropriately with the +// new transport. +func (ac *addrConn) createTransport(addr resolver.Address, copts transport.ConnectOptions, connectDeadline time.Time) error { + addr.ServerName = ac.cc.getServerName(addr) + hctx, hcancel := context.WithCancel(ac.ctx) + + onClose := func(r transport.GoAwayReason) { ac.mu.Lock() + defer ac.mu.Unlock() + // adjust params based on GoAwayReason + ac.adjustParams(r) if ac.state == connectivity.Shutdown { - ac.mu.Unlock() + // Already shut down. tearDown() already cleared the transport and + // canceled hctx via ac.ctx, and we expected this connection to be + // closed, so do nothing here. return } - // Set connectivity state to TransientFailure before calling - // resetTransport. Transition READY->CONNECTING is not valid. - ac.state = connectivity.TransientFailure - ac.cc.handleSubConnStateChange(ac.acbw, ac.state) - ac.cc.resolveNow(resolver.ResolveNowOption{}) - ac.curAddr = resolver.Address{} - ac.mu.Unlock() - if err := ac.resetTransport(); err != nil { - ac.mu.Lock() - ac.printf("transport exiting: %v", err) - ac.mu.Unlock() - grpclog.Warningf("grpc: addrConn.transportMonitor exits due to: %v", err) - if err != errConnClosing { - // Keep this ac in cc.conns, to get the reason it's torn down. - ac.tearDown(err) - } + hcancel() + if ac.transport == nil { + // We're still connecting to this address, which could error. Do + // not update the connectivity state or resolve; these will happen + // at the end of the tryAllAddrs connection loop in the event of an + // error. return } + ac.transport = nil + // Refresh the name resolver on any connection loss. + ac.cc.resolveNow(resolver.ResolveNowOptions{}) + // Always go idle and wait for the LB policy to initiate a new + // connection attempt. + ac.updateConnectivityState(connectivity.Idle, nil) } + + connectCtx, cancel := context.WithDeadline(ac.ctx, connectDeadline) + defer cancel() + copts.ChannelzParentID = ac.channelzID + + newTr, err := transport.NewClientTransport(connectCtx, ac.cc.ctx, addr, copts, onClose) + if err != nil { + if logger.V(2) { + logger.Infof("Creating new client transport to %q: %v", addr, err) + } + // newTr is either nil, or closed. + hcancel() + channelz.Warningf(logger, ac.channelzID, "grpc: addrConn.createTransport failed to connect to %s. Err: %v", addr, err) + return err + } + + ac.mu.Lock() + defer ac.mu.Unlock() + if ac.state == connectivity.Shutdown { + // This can happen if the subConn was removed while in `Connecting` + // state. tearDown() would have set the state to `Shutdown`, but + // would not have closed the transport since ac.transport would not + // have been set at that point. + // + // We run this in a goroutine because newTr.Close() calls onClose() + // inline, which requires locking ac.mu. + // + // The error we pass to Close() is immaterial since there are no open + // streams at this point, so no trailers with error details will be sent + // out. We just need to pass a non-nil error. + go newTr.Close(transport.ErrConnClosing) + return nil + } + if hctx.Err() != nil { + // onClose was already called for this connection, but the connection + // was successfully established first. Consider it a success and set + // the new state to Idle. + ac.updateConnectivityState(connectivity.Idle, nil) + return nil + } + ac.curAddr = addr + ac.transport = newTr + ac.startHealthCheck(hctx) // Will set state to READY if appropriate. + return nil } -// wait blocks until i) the new transport is up or ii) ctx is done or iii) ac is closed or -// iv) transport is in connectivity.TransientFailure and there is a balancer/failfast is true. -func (ac *addrConn) wait(ctx context.Context, hasBalancer, failfast bool) (transport.ClientTransport, error) { - for { +// startHealthCheck starts the health checking stream (RPC) to watch the health +// stats of this connection if health checking is requested and configured. +// +// LB channel health checking is enabled when all requirements below are met: +// 1. it is not disabled by the user with the WithDisableHealthCheck DialOption +// 2. internal.HealthCheckFunc is set by importing the grpc/health package +// 3. a service config with non-empty healthCheckConfig field is provided +// 4. the load balancer requests it +// +// It sets addrConn to READY if the health checking stream is not started. +// +// Caller must hold ac.mu. +func (ac *addrConn) startHealthCheck(ctx context.Context) { + var healthcheckManagingState bool + defer func() { + if !healthcheckManagingState { + ac.updateConnectivityState(connectivity.Ready, nil) + } + }() + + if ac.cc.dopts.disableHealthCheck { + return + } + healthCheckConfig := ac.cc.healthCheckConfig() + if healthCheckConfig == nil { + return + } + if !ac.scopts.HealthCheckEnabled { + return + } + healthCheckFunc := ac.cc.dopts.healthCheckFunc + if healthCheckFunc == nil { + // The health package is not imported to set health check function. + // + // TODO: add a link to the health check doc in the error message. + channelz.Error(logger, ac.channelzID, "Health check is requested but health check function is not set.") + return + } + + healthcheckManagingState = true + + // Set up the health check helper functions. + currentTr := ac.transport + newStream := func(method string) (interface{}, error) { ac.mu.Lock() - switch { - case ac.state == connectivity.Shutdown: - if failfast || !hasBalancer { - // RPC is failfast or balancer is nil. This RPC should fail with ac.tearDownErr. - err := ac.tearDownErr - ac.mu.Unlock() - return nil, err - } + if ac.transport != currentTr { ac.mu.Unlock() - return nil, errConnClosing - case ac.state == connectivity.Ready: - ct := ac.transport - ac.mu.Unlock() - return ct, nil - case ac.state == connectivity.TransientFailure: - if failfast || hasBalancer { - ac.mu.Unlock() - return nil, errConnUnavailable - } - } - ready := ac.ready - if ready == nil { - ready = make(chan struct{}) - ac.ready = ready + return nil, status.Error(codes.Canceled, "the provided transport is no longer valid to use") } ac.mu.Unlock() - select { - case <-ctx.Done(): - return nil, toRPCErr(ctx.Err()) - // Wait until the new transport is ready or failed. - case <-ready: + return newNonRetryClientStream(ctx, &StreamDesc{ServerStreams: true}, method, currentTr, ac) + } + setConnectivityState := func(s connectivity.State, lastErr error) { + ac.mu.Lock() + defer ac.mu.Unlock() + if ac.transport != currentTr { + return } + ac.updateConnectivityState(s, lastErr) } + // Start the health checking stream. + go func() { + err := ac.cc.dopts.healthCheckFunc(ctx, newStream, setConnectivityState, healthCheckConfig.ServiceName) + if err != nil { + if status.Code(err) == codes.Unimplemented { + channelz.Error(logger, ac.channelzID, "Subchannel health check is unimplemented at server side, thus health check is disabled") + } else { + channelz.Errorf(logger, ac.channelzID, "Health checking failed: %v", err) + } + } + }() } -// getReadyTransport returns the transport if ac's state is READY. -// Otherwise it returns nil, false. -// If ac's state is IDLE, it will trigger ac to connect. -func (ac *addrConn) getReadyTransport() (transport.ClientTransport, bool) { +func (ac *addrConn) resetConnectBackoff() { ac.mu.Lock() - if ac.state == connectivity.Ready { - t := ac.transport - ac.mu.Unlock() - return t, true - } - var idle bool - if ac.state == connectivity.Idle { - idle = true - } + close(ac.resetBackoff) + ac.backoffIdx = 0 + ac.resetBackoff = make(chan struct{}) ac.mu.Unlock() - // Trigger idle ac to connect. - if idle { - ac.connect() +} + +// getReadyTransport returns the transport if ac's state is READY or nil if not. +func (ac *addrConn) getReadyTransport() transport.ClientTransport { + ac.mu.Lock() + defer ac.mu.Unlock() + if ac.state == connectivity.Ready { + return ac.transport } - return nil, false + return nil } // tearDown starts to tear down the addrConn. -// TODO(zhaoq): Make this synchronous to avoid unbounded memory consumption in -// some edge cases (e.g., the caller opens and closes many addrConn's in a -// tight loop. -// tearDown doesn't remove ac from ac.cc.conns. +// +// Note that tearDown doesn't remove ac from ac.cc.conns, so the addrConn struct +// will leak. In most cases, call cc.removeAddrConn() instead. func (ac *addrConn) tearDown(err error) { - ac.cancel() ac.mu.Lock() - defer ac.mu.Unlock() if ac.state == connectivity.Shutdown { + ac.mu.Unlock() return } + curTr := ac.transport + ac.transport = nil + // We have to set the state to Shutdown before anything else to prevent races + // between setting the state and logic that waits on context cancellation / etc. + ac.updateConnectivityState(connectivity.Shutdown, nil) + ac.cancel() ac.curAddr = resolver.Address{} - if err == errConnDrain && ac.transport != nil { + if err == errConnDrain && curTr != nil { // GracefulClose(...) may be executed multiple times when // i) receiving multiple GoAway frames from the server; or // ii) there are concurrent name resolver/Balancer triggered // address removal and GoAway. - ac.transport.GracefulClose() - } - ac.state = connectivity.Shutdown - ac.tearDownErr = err - ac.cc.handleSubConnStateChange(ac.acbw, ac.state) - if ac.events != nil { - ac.events.Finish() - ac.events = nil - } - if ac.ready != nil { - close(ac.ready) - ac.ready = nil + // We have to unlock and re-lock here because GracefulClose => Close => onClose, which requires locking ac.mu. + ac.mu.Unlock() + curTr.GracefulClose() + ac.mu.Lock() } - return + channelz.AddTraceEvent(logger, ac.channelzID, 0, &channelz.TraceEventDesc{ + Desc: "Subchannel deleted", + Severity: channelz.CtInfo, + Parent: &channelz.TraceEventDesc{ + Desc: fmt.Sprintf("Subchannel(id:%d) deleted", ac.channelzID.Int()), + Severity: channelz.CtInfo, + }, + }) + // TraceEvent needs to be called before RemoveEntry, as TraceEvent may add + // trace reference to the entity being deleted, and thus prevent it from + // being deleted right away. + channelz.RemoveEntry(ac.channelzID) + ac.mu.Unlock() } func (ac *addrConn) getState() connectivity.State { @@ -1395,9 +1448,200 @@ func (ac *addrConn) getState() connectivity.State { return ac.state } +func (ac *addrConn) ChannelzMetric() *channelz.ChannelInternalMetric { + ac.mu.Lock() + addr := ac.curAddr.Addr + ac.mu.Unlock() + return &channelz.ChannelInternalMetric{ + State: ac.getState(), + Target: addr, + CallsStarted: atomic.LoadInt64(&ac.czData.callsStarted), + CallsSucceeded: atomic.LoadInt64(&ac.czData.callsSucceeded), + CallsFailed: atomic.LoadInt64(&ac.czData.callsFailed), + LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&ac.czData.lastCallStartedTime)), + } +} + +func (ac *addrConn) incrCallsStarted() { + atomic.AddInt64(&ac.czData.callsStarted, 1) + atomic.StoreInt64(&ac.czData.lastCallStartedTime, time.Now().UnixNano()) +} + +func (ac *addrConn) incrCallsSucceeded() { + atomic.AddInt64(&ac.czData.callsSucceeded, 1) +} + +func (ac *addrConn) incrCallsFailed() { + atomic.AddInt64(&ac.czData.callsFailed, 1) +} + +type retryThrottler struct { + max float64 + thresh float64 + ratio float64 + + mu sync.Mutex + tokens float64 // TODO(dfawley): replace with atomic and remove lock. +} + +// throttle subtracts a retry token from the pool and returns whether a retry +// should be throttled (disallowed) based upon the retry throttling policy in +// the service config. +func (rt *retryThrottler) throttle() bool { + if rt == nil { + return false + } + rt.mu.Lock() + defer rt.mu.Unlock() + rt.tokens-- + if rt.tokens < 0 { + rt.tokens = 0 + } + return rt.tokens <= rt.thresh +} + +func (rt *retryThrottler) successfulRPC() { + if rt == nil { + return + } + rt.mu.Lock() + defer rt.mu.Unlock() + rt.tokens += rt.ratio + if rt.tokens > rt.max { + rt.tokens = rt.max + } +} + +type channelzChannel struct { + cc *ClientConn +} + +func (c *channelzChannel) ChannelzMetric() *channelz.ChannelInternalMetric { + return c.cc.channelzMetric() +} + // ErrClientConnTimeout indicates that the ClientConn cannot establish the // underlying connections within the specified timeout. // // Deprecated: This error is never returned by grpc and should not be // referenced by users. var ErrClientConnTimeout = errors.New("grpc: timed out when dialing") + +func (cc *ClientConn) getResolver(scheme string) resolver.Builder { + for _, rb := range cc.dopts.resolvers { + if scheme == rb.Scheme() { + return rb + } + } + return resolver.Get(scheme) +} + +func (cc *ClientConn) updateConnectionError(err error) { + cc.lceMu.Lock() + cc.lastConnectionError = err + cc.lceMu.Unlock() +} + +func (cc *ClientConn) connectionError() error { + cc.lceMu.Lock() + defer cc.lceMu.Unlock() + return cc.lastConnectionError +} + +func (cc *ClientConn) parseTargetAndFindResolver() (resolver.Builder, error) { + channelz.Infof(logger, cc.channelzID, "original dial target is: %q", cc.target) + + var rb resolver.Builder + parsedTarget, err := parseTarget(cc.target) + if err != nil { + channelz.Infof(logger, cc.channelzID, "dial target %q parse failed: %v", cc.target, err) + } else { + channelz.Infof(logger, cc.channelzID, "parsed dial target is: %+v", parsedTarget) + rb = cc.getResolver(parsedTarget.URL.Scheme) + if rb != nil { + cc.parsedTarget = parsedTarget + return rb, nil + } + } + + // We are here because the user's dial target did not contain a scheme or + // specified an unregistered scheme. We should fallback to the default + // scheme, except when a custom dialer is specified in which case, we should + // always use passthrough scheme. + defScheme := resolver.GetDefaultScheme() + channelz.Infof(logger, cc.channelzID, "fallback to scheme %q", defScheme) + canonicalTarget := defScheme + ":///" + cc.target + + parsedTarget, err = parseTarget(canonicalTarget) + if err != nil { + channelz.Infof(logger, cc.channelzID, "dial target %q parse failed: %v", canonicalTarget, err) + return nil, err + } + channelz.Infof(logger, cc.channelzID, "parsed dial target is: %+v", parsedTarget) + rb = cc.getResolver(parsedTarget.URL.Scheme) + if rb == nil { + return nil, fmt.Errorf("could not get resolver for default scheme: %q", parsedTarget.URL.Scheme) + } + cc.parsedTarget = parsedTarget + return rb, nil +} + +// parseTarget uses RFC 3986 semantics to parse the given target into a +// resolver.Target struct containing scheme, authority and url. Query +// params are stripped from the endpoint. +func parseTarget(target string) (resolver.Target, error) { + u, err := url.Parse(target) + if err != nil { + return resolver.Target{}, err + } + + return resolver.Target{ + Scheme: u.Scheme, + Authority: u.Host, + URL: *u, + }, nil +} + +// Determine channel authority. The order of precedence is as follows: +// - user specified authority override using `WithAuthority` dial option +// - creds' notion of server name for the authentication handshake +// - endpoint from dial target of the form "scheme://[authority]/endpoint" +func determineAuthority(endpoint, target string, dopts dialOptions) (string, error) { + // Historically, we had two options for users to specify the serverName or + // authority for a channel. One was through the transport credentials + // (either in its constructor, or through the OverrideServerName() method). + // The other option (for cases where WithInsecure() dial option was used) + // was to use the WithAuthority() dial option. + // + // A few things have changed since: + // - `insecure` package with an implementation of the `TransportCredentials` + // interface for the insecure case + // - WithAuthority() dial option support for secure credentials + authorityFromCreds := "" + if creds := dopts.copts.TransportCredentials; creds != nil && creds.Info().ServerName != "" { + authorityFromCreds = creds.Info().ServerName + } + authorityFromDialOption := dopts.authority + if (authorityFromCreds != "" && authorityFromDialOption != "") && authorityFromCreds != authorityFromDialOption { + return "", fmt.Errorf("ClientConn's authority from transport creds %q and dial option %q don't match", authorityFromCreds, authorityFromDialOption) + } + + switch { + case authorityFromDialOption != "": + return authorityFromDialOption, nil + case authorityFromCreds != "": + return authorityFromCreds, nil + case strings.HasPrefix(target, "unix:") || strings.HasPrefix(target, "unix-abstract:"): + // TODO: remove when the unix resolver implements optional interface to + // return channel authority. + return "localhost", nil + case strings.HasPrefix(endpoint, ":"): + return "localhost" + endpoint, nil + default: + // TODO: Define an optional interface on the resolver builder to return + // the channel authority given the user's dial target. For resolvers + // which don't implement this interface, we will use the endpoint from + // "scheme://authority/endpoint" as the default authority. + return endpoint, nil + } +} diff --git a/vendor/google.golang.org/grpc/codes/codes.go b/vendor/google.golang.org/grpc/codes/codes.go index a8280ae..11b1061 100644 --- a/vendor/google.golang.org/grpc/codes/codes.go +++ b/vendor/google.golang.org/grpc/codes/codes.go @@ -22,6 +22,7 @@ package codes // import "google.golang.org/grpc/codes" import ( "fmt" + "strconv" ) // A Code is an unsigned 32-bit error code as defined in the gRPC spec. @@ -32,6 +33,9 @@ const ( OK Code = 0 // Canceled indicates the operation was canceled (typically by the caller). + // + // The gRPC framework will generate this error code when cancellation + // is requested. Canceled Code = 1 // Unknown error. An example of where this error may be returned is @@ -39,12 +43,17 @@ const ( // an error-space that is not known in this address space. Also // errors raised by APIs that do not return enough error information // may be converted to this error. + // + // The gRPC framework will generate this error code in the above two + // mentioned cases. Unknown Code = 2 // InvalidArgument indicates client specified an invalid argument. // Note that this differs from FailedPrecondition. It indicates arguments // that are problematic regardless of the state of the system // (e.g., a malformed file name). + // + // This error code will not be generated by the gRPC framework. InvalidArgument Code = 3 // DeadlineExceeded means operation expired before completion. @@ -52,14 +61,21 @@ const ( // returned even if the operation has completed successfully. For // example, a successful response from a server could have been delayed // long enough for the deadline to expire. + // + // The gRPC framework will generate this error code when the deadline is + // exceeded. DeadlineExceeded Code = 4 // NotFound means some requested entity (e.g., file or directory) was // not found. + // + // This error code will not be generated by the gRPC framework. NotFound Code = 5 // AlreadyExists means an attempt to create an entity failed because one // already exists. + // + // This error code will not be generated by the gRPC framework. AlreadyExists Code = 6 // PermissionDenied indicates the caller does not have permission to @@ -68,10 +84,17 @@ const ( // instead for those errors). It must not be // used if the caller cannot be identified (use Unauthenticated // instead for those errors). + // + // This error code will not be generated by the gRPC core framework, + // but expect authentication middleware to use it. PermissionDenied Code = 7 // ResourceExhausted indicates some resource has been exhausted, perhaps // a per-user quota, or perhaps the entire file system is out of space. + // + // This error code will be generated by the gRPC framework in + // out-of-memory and server overload situations, or when a message is + // larger than the configured maximum size. ResourceExhausted Code = 8 // FailedPrecondition indicates operation was rejected because the @@ -93,6 +116,8 @@ const ( // REST Get/Update/Delete on a resource and the resource on the // server does not match the condition. E.g., conflicting // read-modify-write on the same resource. + // + // This error code will not be generated by the gRPC framework. FailedPrecondition Code = 9 // Aborted indicates the operation was aborted, typically due to a @@ -101,6 +126,8 @@ const ( // // See litmus test above for deciding between FailedPrecondition, // Aborted, and Unavailable. + // + // This error code will not be generated by the gRPC framework. Aborted Code = 10 // OutOfRange means operation was attempted past the valid range. @@ -118,31 +145,54 @@ const ( // error) when it applies so that callers who are iterating through // a space can easily look for an OutOfRange error to detect when // they are done. + // + // This error code will not be generated by the gRPC framework. OutOfRange Code = 11 // Unimplemented indicates operation is not implemented or not // supported/enabled in this service. + // + // This error code will be generated by the gRPC framework. Most + // commonly, you will see this error code when a method implementation + // is missing on the server. It can also be generated for unknown + // compression algorithms or a disagreement as to whether an RPC should + // be streaming. Unimplemented Code = 12 // Internal errors. Means some invariants expected by underlying // system has been broken. If you see one of these errors, // something is very broken. + // + // This error code will be generated by the gRPC framework in several + // internal error conditions. Internal Code = 13 // Unavailable indicates the service is currently unavailable. // This is a most likely a transient condition and may be corrected - // by retrying with a backoff. + // by retrying with a backoff. Note that it is not always safe to retry + // non-idempotent operations. // // See litmus test above for deciding between FailedPrecondition, // Aborted, and Unavailable. + // + // This error code will be generated by the gRPC framework during + // abrupt shutdown of a server process or network connection. Unavailable Code = 14 // DataLoss indicates unrecoverable data loss or corruption. + // + // This error code will not be generated by the gRPC framework. DataLoss Code = 15 // Unauthenticated indicates the request does not have valid // authentication credentials for the operation. + // + // The gRPC framework will generate this error code when the + // authentication metadata is invalid or a Credentials callback fails, + // but also expect authentication middleware to generate it. Unauthenticated Code = 16 + + _maxCode = 17 ) var strToCode = map[string]Code{ @@ -176,6 +226,16 @@ func (c *Code) UnmarshalJSON(b []byte) error { if c == nil { return fmt.Errorf("nil receiver passed to UnmarshalJSON") } + + if ci, err := strconv.ParseUint(string(b), 10, 32); err == nil { + if ci >= _maxCode { + return fmt.Errorf("invalid code: %q", ci) + } + + *c = Code(ci) + return nil + } + if jc, ok := strToCode[string(b)]; ok { *c = jc return nil diff --git a/vendor/google.golang.org/grpc/connectivity/connectivity.go b/vendor/google.golang.org/grpc/connectivity/connectivity.go index 568ef5d..4a89926 100644 --- a/vendor/google.golang.org/grpc/connectivity/connectivity.go +++ b/vendor/google.golang.org/grpc/connectivity/connectivity.go @@ -18,14 +18,14 @@ // Package connectivity defines connectivity semantics. // For details, see https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md. -// All APIs in this package are experimental. package connectivity import ( - "golang.org/x/net/context" "google.golang.org/grpc/grpclog" ) +var logger = grpclog.Component("core") + // State indicates the state of connectivity. // It can be the state of a ClientConn or SubConn. type State int @@ -43,15 +43,15 @@ func (s State) String() string { case Shutdown: return "SHUTDOWN" default: - grpclog.Errorf("unknown connectivity state: %d", s) - return "Invalid-State" + logger.Errorf("unknown connectivity state: %d", s) + return "INVALID_STATE" } } const ( // Idle indicates the ClientConn is idle. Idle State = iota - // Connecting indicates the ClienConn is connecting. + // Connecting indicates the ClientConn is connecting. Connecting // Ready indicates the ClientConn is ready for work. Ready @@ -61,12 +61,34 @@ const ( Shutdown ) -// Reporter reports the connectivity states. -type Reporter interface { - // CurrentState returns the current state of the reporter. - CurrentState() State - // WaitForStateChange blocks until the reporter's state is different from the given state, - // and returns true. - // It returns false if <-ctx.Done() can proceed (ctx got timeout or got canceled). - WaitForStateChange(context.Context, State) bool +// ServingMode indicates the current mode of operation of the server. +// +// Only xDS enabled gRPC servers currently report their serving mode. +type ServingMode int + +const ( + // ServingModeStarting indicates that the server is starting up. + ServingModeStarting ServingMode = iota + // ServingModeServing indicates that the server contains all required + // configuration and is serving RPCs. + ServingModeServing + // ServingModeNotServing indicates that the server is not accepting new + // connections. Existing connections will be closed gracefully, allowing + // in-progress RPCs to complete. A server enters this mode when it does not + // contain the required configuration to serve RPCs. + ServingModeNotServing +) + +func (s ServingMode) String() string { + switch s { + case ServingModeStarting: + return "STARTING" + case ServingModeServing: + return "SERVING" + case ServingModeNotServing: + return "NOT_SERVING" + default: + logger.Errorf("unknown serving mode: %d", s) + return "INVALID_MODE" + } } diff --git a/vendor/google.golang.org/grpc/credentials/credentials.go b/vendor/google.golang.org/grpc/credentials/credentials.go index 3351bf0..5feac3a 100644 --- a/vendor/google.golang.org/grpc/credentials/credentials.go +++ b/vendor/google.golang.org/grpc/credentials/credentials.go @@ -23,38 +23,79 @@ package credentials // import "google.golang.org/grpc/credentials" import ( - "crypto/tls" - "crypto/x509" + "context" "errors" "fmt" - "io/ioutil" "net" - "strings" - "golang.org/x/net/context" + "github.com/golang/protobuf/proto" + "google.golang.org/grpc/attributes" + icredentials "google.golang.org/grpc/internal/credentials" ) -// alpnProtoStr are the specified application level protocols for gRPC. -var alpnProtoStr = []string{"h2"} - // PerRPCCredentials defines the common interface for the credentials which need to // attach security information to every RPC (e.g., oauth2). type PerRPCCredentials interface { - // GetRequestMetadata gets the current request metadata, refreshing - // tokens if required. This should be called by the transport layer on - // each request, and the data should be populated in headers or other - // context. If a status code is returned, it will be used as the status - // for the RPC. uri is the URI of the entry point for the request. - // When supported by the underlying implementation, ctx can be used for - // timeout and cancellation. - // TODO(zhaoq): Define the set of the qualified keys instead of leaving - // it as an arbitrary string. + // GetRequestMetadata gets the current request metadata, refreshing tokens + // if required. This should be called by the transport layer on each + // request, and the data should be populated in headers or other + // context. If a status code is returned, it will be used as the status for + // the RPC (restricted to an allowable set of codes as defined by gRFC + // A54). uri is the URI of the entry point for the request. When supported + // by the underlying implementation, ctx can be used for timeout and + // cancellation. Additionally, RequestInfo data will be available via ctx + // to this call. TODO(zhaoq): Define the set of the qualified keys instead + // of leaving it as an arbitrary string. GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) // RequireTransportSecurity indicates whether the credentials requires // transport security. RequireTransportSecurity() bool } +// SecurityLevel defines the protection level on an established connection. +// +// This API is experimental. +type SecurityLevel int + +const ( + // InvalidSecurityLevel indicates an invalid security level. + // The zero SecurityLevel value is invalid for backward compatibility. + InvalidSecurityLevel SecurityLevel = iota + // NoSecurity indicates a connection is insecure. + NoSecurity + // IntegrityOnly indicates a connection only provides integrity protection. + IntegrityOnly + // PrivacyAndIntegrity indicates a connection provides both privacy and integrity protection. + PrivacyAndIntegrity +) + +// String returns SecurityLevel in a string format. +func (s SecurityLevel) String() string { + switch s { + case NoSecurity: + return "NoSecurity" + case IntegrityOnly: + return "IntegrityOnly" + case PrivacyAndIntegrity: + return "PrivacyAndIntegrity" + } + return fmt.Sprintf("invalid SecurityLevel: %v", int(s)) +} + +// CommonAuthInfo contains authenticated information common to AuthInfo implementations. +// It should be embedded in a struct implementing AuthInfo to provide additional information +// about the credentials. +// +// This API is experimental. +type CommonAuthInfo struct { + SecurityLevel SecurityLevel +} + +// GetCommonAuthInfo returns the pointer to CommonAuthInfo struct. +func (c CommonAuthInfo) GetCommonAuthInfo() CommonAuthInfo { + return c +} + // ProtocolInfo provides information regarding the gRPC wire protocol version, // security protocol, security protocol version in use, server name, etc. type ProtocolInfo struct { @@ -62,13 +103,19 @@ type ProtocolInfo struct { ProtocolVersion string // SecurityProtocol is the security protocol in use. SecurityProtocol string - // SecurityVersion is the security protocol version. + // SecurityVersion is the security protocol version. It is a static version string from the + // credentials, not a value that reflects per-connection protocol negotiation. To retrieve + // details about the credentials used for a connection, use the Peer's AuthInfo field instead. + // + // Deprecated: please use Peer.AuthInfo. SecurityVersion string // ServerName is the user-configured server name. ServerName string } // AuthInfo defines the common interface for the auth information the users are interested in. +// A struct that implements AuthInfo should embed CommonAuthInfo by including additional +// information about the credentials in it. type AuthInfo interface { AuthType() string } @@ -80,20 +127,30 @@ var ErrConnDispatched = errors.New("credentials: rawConn is dispatched out of gR // TransportCredentials defines the common interface for all the live gRPC wire // protocols and supported transport security protocols (e.g., TLS, SSL). type TransportCredentials interface { - // ClientHandshake does the authentication handshake specified by the corresponding - // authentication protocol on rawConn for clients. It returns the authenticated - // connection and the corresponding auth information about the connection. - // Implementations must use the provided context to implement timely cancellation. - // gRPC will try to reconnect if the error returned is a temporary error - // (io.EOF, context.DeadlineExceeded or err.Temporary() == true). - // If the returned error is a wrapper error, implementations should make sure that + // ClientHandshake does the authentication handshake specified by the + // corresponding authentication protocol on rawConn for clients. It returns + // the authenticated connection and the corresponding auth information + // about the connection. The auth information should embed CommonAuthInfo + // to return additional information about the credentials. Implementations + // must use the provided context to implement timely cancellation. gRPC + // will try to reconnect if the error returned is a temporary error + // (io.EOF, context.DeadlineExceeded or err.Temporary() == true). If the + // returned error is a wrapper error, implementations should make sure that // the error implements Temporary() to have the correct retry behaviors. + // Additionally, ClientHandshakeInfo data will be available via the context + // passed to this call. + // + // The second argument to this method is the `:authority` header value used + // while creating new streams on this connection after authentication + // succeeds. Implementations must use this as the server name during the + // authentication handshake. // // If the returned net.Conn is closed, it MUST close the net.Conn provided. ClientHandshake(context.Context, string, net.Conn) (net.Conn, AuthInfo, error) // ServerHandshake does the authentication handshake for servers. It returns // the authenticated connection and the corresponding auth information about - // the connection. + // the connection. The auth information should embed CommonAuthInfo to return additional information + // about the credentials. // // If the returned net.Conn is closed, it MUST close the net.Conn provided. ServerHandshake(net.Conn) (net.Conn, AuthInfo, error) @@ -101,120 +158,134 @@ type TransportCredentials interface { Info() ProtocolInfo // Clone makes a copy of this TransportCredentials. Clone() TransportCredentials - // OverrideServerName overrides the server name used to verify the hostname on the returned certificates from the server. - // gRPC internals also use it to override the virtual hosting name if it is set. - // It must be called before dialing. Currently, this is only used by grpclb. + // OverrideServerName specifies the value used for the following: + // - verifying the hostname on the returned certificates + // - as SNI in the client's handshake to support virtual hosting + // - as the value for `:authority` header at stream creation time + // + // Deprecated: use grpc.WithAuthority instead. Will be supported + // throughout 1.x. OverrideServerName(string) error } -// TLSInfo contains the auth information for a TLS authenticated connection. -// It implements the AuthInfo interface. -type TLSInfo struct { - State tls.ConnectionState -} +// Bundle is a combination of TransportCredentials and PerRPCCredentials. +// +// It also contains a mode switching method, so it can be used as a combination +// of different credential policies. +// +// Bundle cannot be used together with individual TransportCredentials. +// PerRPCCredentials from Bundle will be appended to other PerRPCCredentials. +// +// This API is experimental. +type Bundle interface { + // TransportCredentials returns the transport credentials from the Bundle. + // + // Implementations must return non-nil transport credentials. If transport + // security is not needed by the Bundle, implementations may choose to + // return insecure.NewCredentials(). + TransportCredentials() TransportCredentials -// AuthType returns the type of TLSInfo as a string. -func (t TLSInfo) AuthType() string { - return "tls" -} + // PerRPCCredentials returns the per-RPC credentials from the Bundle. + // + // May be nil if per-RPC credentials are not needed. + PerRPCCredentials() PerRPCCredentials -// tlsCreds is the credentials required for authenticating a connection using TLS. -type tlsCreds struct { - // TLS configuration - config *tls.Config + // NewWithMode should make a copy of Bundle, and switch mode. Modifying the + // existing Bundle may cause races. + // + // NewWithMode returns nil if the requested mode is not supported. + NewWithMode(mode string) (Bundle, error) } -func (c tlsCreds) Info() ProtocolInfo { - return ProtocolInfo{ - SecurityProtocol: "tls", - SecurityVersion: "1.2", - ServerName: c.config.ServerName, - } +// RequestInfo contains request data attached to the context passed to GetRequestMetadata calls. +// +// This API is experimental. +type RequestInfo struct { + // The method passed to Invoke or NewStream for this RPC. (For proto methods, this has the format "/some.Service/Method") + Method string + // AuthInfo contains the information from a security handshake (TransportCredentials.ClientHandshake, TransportCredentials.ServerHandshake) + AuthInfo AuthInfo } -func (c *tlsCreds) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (_ net.Conn, _ AuthInfo, err error) { - // use local cfg to avoid clobbering ServerName if using multiple endpoints - cfg := cloneTLSConfig(c.config) - if cfg.ServerName == "" { - colonPos := strings.LastIndex(authority, ":") - if colonPos == -1 { - colonPos = len(authority) - } - cfg.ServerName = authority[:colonPos] - } - conn := tls.Client(rawConn, cfg) - errChannel := make(chan error, 1) - go func() { - errChannel <- conn.Handshake() - }() - select { - case err := <-errChannel: - if err != nil { - return nil, nil, err - } - case <-ctx.Done(): - return nil, nil, ctx.Err() - } - return conn, TLSInfo{conn.ConnectionState()}, nil +// RequestInfoFromContext extracts the RequestInfo from the context if it exists. +// +// This API is experimental. +func RequestInfoFromContext(ctx context.Context) (ri RequestInfo, ok bool) { + ri, ok = icredentials.RequestInfoFromContext(ctx).(RequestInfo) + return ri, ok } -func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) { - conn := tls.Server(rawConn, c.config) - if err := conn.Handshake(); err != nil { - return nil, nil, err - } - return conn, TLSInfo{conn.ConnectionState()}, nil +// ClientHandshakeInfo holds data to be passed to ClientHandshake. This makes +// it possible to pass arbitrary data to the handshaker from gRPC, resolver, +// balancer etc. Individual credential implementations control the actual +// format of the data that they are willing to receive. +// +// This API is experimental. +type ClientHandshakeInfo struct { + // Attributes contains the attributes for the address. It could be provided + // by the gRPC, resolver, balancer etc. + Attributes *attributes.Attributes } -func (c *tlsCreds) Clone() TransportCredentials { - return NewTLS(c.config) +// ClientHandshakeInfoFromContext returns the ClientHandshakeInfo struct stored +// in ctx. +// +// This API is experimental. +func ClientHandshakeInfoFromContext(ctx context.Context) ClientHandshakeInfo { + chi, _ := icredentials.ClientHandshakeInfoFromContext(ctx).(ClientHandshakeInfo) + return chi } -func (c *tlsCreds) OverrideServerName(serverNameOverride string) error { - c.config.ServerName = serverNameOverride +// CheckSecurityLevel checks if a connection's security level is greater than or equal to the specified one. +// It returns success if 1) the condition is satisified or 2) AuthInfo struct does not implement GetCommonAuthInfo() method +// or 3) CommonAuthInfo.SecurityLevel has an invalid zero value. For 2) and 3), it is for the purpose of backward-compatibility. +// +// This API is experimental. +func CheckSecurityLevel(ai AuthInfo, level SecurityLevel) error { + type internalInfo interface { + GetCommonAuthInfo() CommonAuthInfo + } + if ai == nil { + return errors.New("AuthInfo is nil") + } + if ci, ok := ai.(internalInfo); ok { + // CommonAuthInfo.SecurityLevel has an invalid value. + if ci.GetCommonAuthInfo().SecurityLevel == InvalidSecurityLevel { + return nil + } + if ci.GetCommonAuthInfo().SecurityLevel < level { + return fmt.Errorf("requires SecurityLevel %v; connection has %v", level, ci.GetCommonAuthInfo().SecurityLevel) + } + } + // The condition is satisfied or AuthInfo struct does not implement GetCommonAuthInfo() method. return nil } -// NewTLS uses c to construct a TransportCredentials based on TLS. -func NewTLS(c *tls.Config) TransportCredentials { - tc := &tlsCreds{cloneTLSConfig(c)} - tc.config.NextProtos = alpnProtoStr - return tc +// ChannelzSecurityInfo defines the interface that security protocols should implement +// in order to provide security info to channelz. +// +// This API is experimental. +type ChannelzSecurityInfo interface { + GetSecurityValue() ChannelzSecurityValue } -// NewClientTLSFromCert constructs TLS credentials from the input certificate for client. -// serverNameOverride is for testing only. If set to a non empty string, -// it will override the virtual host name of authority (e.g. :authority header field) in requests. -func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) TransportCredentials { - return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}) +// ChannelzSecurityValue defines the interface that GetSecurityValue() return value +// should satisfy. This interface should only be satisfied by *TLSChannelzSecurityValue +// and *OtherChannelzSecurityValue. +// +// This API is experimental. +type ChannelzSecurityValue interface { + isChannelzSecurityValue() } -// NewClientTLSFromFile constructs TLS credentials from the input certificate file for client. -// serverNameOverride is for testing only. If set to a non empty string, -// it will override the virtual host name of authority (e.g. :authority header field) in requests. -func NewClientTLSFromFile(certFile, serverNameOverride string) (TransportCredentials, error) { - b, err := ioutil.ReadFile(certFile) - if err != nil { - return nil, err - } - cp := x509.NewCertPool() - if !cp.AppendCertsFromPEM(b) { - return nil, fmt.Errorf("credentials: failed to append certificates") - } - return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}), nil -} - -// NewServerTLSFromCert constructs TLS credentials from the input certificate for server. -func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials { - return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}}) -} - -// NewServerTLSFromFile constructs TLS credentials from the input certificate file and key -// file for server. -func NewServerTLSFromFile(certFile, keyFile string) (TransportCredentials, error) { - cert, err := tls.LoadX509KeyPair(certFile, keyFile) - if err != nil { - return nil, err - } - return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil +// OtherChannelzSecurityValue defines the struct that non-TLS protocol should return +// from GetSecurityValue(), which contains protocol specific security info. Note +// the Value field will be sent to users of channelz requesting channel info, and +// thus sensitive info should better be avoided. +// +// This API is experimental. +type OtherChannelzSecurityValue struct { + ChannelzSecurityValue + Name string + Value proto.Message } diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go deleted file mode 100644 index 60409aa..0000000 --- a/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go +++ /dev/null @@ -1,60 +0,0 @@ -// +build go1.7 -// +build !go1.8 - -/* - * - * Copyright 2016 gRPC authors. - * - * 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 credentials - -import ( - "crypto/tls" -) - -// cloneTLSConfig returns a shallow clone of the exported -// fields of cfg, ignoring the unexported sync.Once, which -// contains a mutex and must not be copied. -// -// If cfg is nil, a new zero tls.Config is returned. -func cloneTLSConfig(cfg *tls.Config) *tls.Config { - if cfg == nil { - return &tls.Config{} - } - return &tls.Config{ - Rand: cfg.Rand, - Time: cfg.Time, - Certificates: cfg.Certificates, - NameToCertificate: cfg.NameToCertificate, - GetCertificate: cfg.GetCertificate, - RootCAs: cfg.RootCAs, - NextProtos: cfg.NextProtos, - ServerName: cfg.ServerName, - ClientAuth: cfg.ClientAuth, - ClientCAs: cfg.ClientCAs, - InsecureSkipVerify: cfg.InsecureSkipVerify, - CipherSuites: cfg.CipherSuites, - PreferServerCipherSuites: cfg.PreferServerCipherSuites, - SessionTicketsDisabled: cfg.SessionTicketsDisabled, - SessionTicketKey: cfg.SessionTicketKey, - ClientSessionCache: cfg.ClientSessionCache, - MinVersion: cfg.MinVersion, - MaxVersion: cfg.MaxVersion, - CurvePreferences: cfg.CurvePreferences, - DynamicRecordSizingDisabled: cfg.DynamicRecordSizingDisabled, - Renegotiation: cfg.Renegotiation, - } -} diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go deleted file mode 100644 index d6bbcc9..0000000 --- a/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go +++ /dev/null @@ -1,57 +0,0 @@ -// +build !go1.7 - -/* - * - * Copyright 2016 gRPC authors. - * - * 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 credentials - -import ( - "crypto/tls" -) - -// cloneTLSConfig returns a shallow clone of the exported -// fields of cfg, ignoring the unexported sync.Once, which -// contains a mutex and must not be copied. -// -// If cfg is nil, a new zero tls.Config is returned. -func cloneTLSConfig(cfg *tls.Config) *tls.Config { - if cfg == nil { - return &tls.Config{} - } - return &tls.Config{ - Rand: cfg.Rand, - Time: cfg.Time, - Certificates: cfg.Certificates, - NameToCertificate: cfg.NameToCertificate, - GetCertificate: cfg.GetCertificate, - RootCAs: cfg.RootCAs, - NextProtos: cfg.NextProtos, - ServerName: cfg.ServerName, - ClientAuth: cfg.ClientAuth, - ClientCAs: cfg.ClientCAs, - InsecureSkipVerify: cfg.InsecureSkipVerify, - CipherSuites: cfg.CipherSuites, - PreferServerCipherSuites: cfg.PreferServerCipherSuites, - SessionTicketsDisabled: cfg.SessionTicketsDisabled, - SessionTicketKey: cfg.SessionTicketKey, - ClientSessionCache: cfg.ClientSessionCache, - MinVersion: cfg.MinVersion, - MaxVersion: cfg.MaxVersion, - CurvePreferences: cfg.CurvePreferences, - } -} diff --git a/vendor/google.golang.org/grpc/credentials/insecure/insecure.go b/vendor/google.golang.org/grpc/credentials/insecure/insecure.go new file mode 100644 index 0000000..82bee14 --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/insecure/insecure.go @@ -0,0 +1,98 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 insecure provides an implementation of the +// credentials.TransportCredentials interface which disables transport security. +package insecure + +import ( + "context" + "net" + + "google.golang.org/grpc/credentials" +) + +// NewCredentials returns a credentials which disables transport security. +// +// Note that using this credentials with per-RPC credentials which require +// transport security is incompatible and will cause grpc.Dial() to fail. +func NewCredentials() credentials.TransportCredentials { + return insecureTC{} +} + +// insecureTC implements the insecure transport credentials. The handshake +// methods simply return the passed in net.Conn and set the security level to +// NoSecurity. +type insecureTC struct{} + +func (insecureTC) ClientHandshake(ctx context.Context, _ string, conn net.Conn) (net.Conn, credentials.AuthInfo, error) { + return conn, info{credentials.CommonAuthInfo{SecurityLevel: credentials.NoSecurity}}, nil +} + +func (insecureTC) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error) { + return conn, info{credentials.CommonAuthInfo{SecurityLevel: credentials.NoSecurity}}, nil +} + +func (insecureTC) Info() credentials.ProtocolInfo { + return credentials.ProtocolInfo{SecurityProtocol: "insecure"} +} + +func (insecureTC) Clone() credentials.TransportCredentials { + return insecureTC{} +} + +func (insecureTC) OverrideServerName(string) error { + return nil +} + +// info contains the auth information for an insecure connection. +// It implements the AuthInfo interface. +type info struct { + credentials.CommonAuthInfo +} + +// AuthType returns the type of info as a string. +func (info) AuthType() string { + return "insecure" +} + +// insecureBundle implements an insecure bundle. +// An insecure bundle provides a thin wrapper around insecureTC to support +// the credentials.Bundle interface. +type insecureBundle struct{} + +// NewBundle returns a bundle with disabled transport security and no per rpc credential. +func NewBundle() credentials.Bundle { + return insecureBundle{} +} + +// NewWithMode returns a new insecure Bundle. The mode is ignored. +func (insecureBundle) NewWithMode(string) (credentials.Bundle, error) { + return insecureBundle{}, nil +} + +// PerRPCCredentials returns an nil implementation as insecure +// bundle does not support a per rpc credential. +func (insecureBundle) PerRPCCredentials() credentials.PerRPCCredentials { + return nil +} + +// TransportCredentials returns the underlying insecure transport credential. +func (insecureBundle) TransportCredentials() credentials.TransportCredentials { + return NewCredentials() +} diff --git a/vendor/google.golang.org/grpc/credentials/tls.go b/vendor/google.golang.org/grpc/credentials/tls.go new file mode 100644 index 0000000..877b7cd --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/tls.go @@ -0,0 +1,236 @@ +/* + * + * Copyright 2014 gRPC authors. + * + * 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 credentials + +import ( + "context" + "crypto/tls" + "crypto/x509" + "fmt" + "net" + "net/url" + "os" + + credinternal "google.golang.org/grpc/internal/credentials" +) + +// TLSInfo contains the auth information for a TLS authenticated connection. +// It implements the AuthInfo interface. +type TLSInfo struct { + State tls.ConnectionState + CommonAuthInfo + // This API is experimental. + SPIFFEID *url.URL +} + +// AuthType returns the type of TLSInfo as a string. +func (t TLSInfo) AuthType() string { + return "tls" +} + +// GetSecurityValue returns security info requested by channelz. +func (t TLSInfo) GetSecurityValue() ChannelzSecurityValue { + v := &TLSChannelzSecurityValue{ + StandardName: cipherSuiteLookup[t.State.CipherSuite], + } + // Currently there's no way to get LocalCertificate info from tls package. + if len(t.State.PeerCertificates) > 0 { + v.RemoteCertificate = t.State.PeerCertificates[0].Raw + } + return v +} + +// tlsCreds is the credentials required for authenticating a connection using TLS. +type tlsCreds struct { + // TLS configuration + config *tls.Config +} + +func (c tlsCreds) Info() ProtocolInfo { + return ProtocolInfo{ + SecurityProtocol: "tls", + SecurityVersion: "1.2", + ServerName: c.config.ServerName, + } +} + +func (c *tlsCreds) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (_ net.Conn, _ AuthInfo, err error) { + // use local cfg to avoid clobbering ServerName if using multiple endpoints + cfg := credinternal.CloneTLSConfig(c.config) + if cfg.ServerName == "" { + serverName, _, err := net.SplitHostPort(authority) + if err != nil { + // If the authority had no host port or if the authority cannot be parsed, use it as-is. + serverName = authority + } + cfg.ServerName = serverName + } + conn := tls.Client(rawConn, cfg) + errChannel := make(chan error, 1) + go func() { + errChannel <- conn.Handshake() + close(errChannel) + }() + select { + case err := <-errChannel: + if err != nil { + conn.Close() + return nil, nil, err + } + case <-ctx.Done(): + conn.Close() + return nil, nil, ctx.Err() + } + tlsInfo := TLSInfo{ + State: conn.ConnectionState(), + CommonAuthInfo: CommonAuthInfo{ + SecurityLevel: PrivacyAndIntegrity, + }, + } + id := credinternal.SPIFFEIDFromState(conn.ConnectionState()) + if id != nil { + tlsInfo.SPIFFEID = id + } + return credinternal.WrapSyscallConn(rawConn, conn), tlsInfo, nil +} + +func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) { + conn := tls.Server(rawConn, c.config) + if err := conn.Handshake(); err != nil { + conn.Close() + return nil, nil, err + } + tlsInfo := TLSInfo{ + State: conn.ConnectionState(), + CommonAuthInfo: CommonAuthInfo{ + SecurityLevel: PrivacyAndIntegrity, + }, + } + id := credinternal.SPIFFEIDFromState(conn.ConnectionState()) + if id != nil { + tlsInfo.SPIFFEID = id + } + return credinternal.WrapSyscallConn(rawConn, conn), tlsInfo, nil +} + +func (c *tlsCreds) Clone() TransportCredentials { + return NewTLS(c.config) +} + +func (c *tlsCreds) OverrideServerName(serverNameOverride string) error { + c.config.ServerName = serverNameOverride + return nil +} + +// NewTLS uses c to construct a TransportCredentials based on TLS. +func NewTLS(c *tls.Config) TransportCredentials { + tc := &tlsCreds{credinternal.CloneTLSConfig(c)} + tc.config.NextProtos = credinternal.AppendH2ToNextProtos(tc.config.NextProtos) + return tc +} + +// NewClientTLSFromCert constructs TLS credentials from the provided root +// certificate authority certificate(s) to validate server connections. If +// certificates to establish the identity of the client need to be included in +// the credentials (eg: for mTLS), use NewTLS instead, where a complete +// tls.Config can be specified. +// serverNameOverride is for testing only. If set to a non empty string, +// it will override the virtual host name of authority (e.g. :authority header +// field) in requests. +func NewClientTLSFromCert(cp *x509.CertPool, serverNameOverride string) TransportCredentials { + return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}) +} + +// NewClientTLSFromFile constructs TLS credentials from the provided root +// certificate authority certificate file(s) to validate server connections. If +// certificates to establish the identity of the client need to be included in +// the credentials (eg: for mTLS), use NewTLS instead, where a complete +// tls.Config can be specified. +// serverNameOverride is for testing only. If set to a non empty string, +// it will override the virtual host name of authority (e.g. :authority header +// field) in requests. +func NewClientTLSFromFile(certFile, serverNameOverride string) (TransportCredentials, error) { + b, err := os.ReadFile(certFile) + if err != nil { + return nil, err + } + cp := x509.NewCertPool() + if !cp.AppendCertsFromPEM(b) { + return nil, fmt.Errorf("credentials: failed to append certificates") + } + return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}), nil +} + +// NewServerTLSFromCert constructs TLS credentials from the input certificate for server. +func NewServerTLSFromCert(cert *tls.Certificate) TransportCredentials { + return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}}) +} + +// NewServerTLSFromFile constructs TLS credentials from the input certificate file and key +// file for server. +func NewServerTLSFromFile(certFile, keyFile string) (TransportCredentials, error) { + cert, err := tls.LoadX509KeyPair(certFile, keyFile) + if err != nil { + return nil, err + } + return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil +} + +// TLSChannelzSecurityValue defines the struct that TLS protocol should return +// from GetSecurityValue(), containing security info like cipher and certificate used. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type TLSChannelzSecurityValue struct { + ChannelzSecurityValue + StandardName string + LocalCertificate []byte + RemoteCertificate []byte +} + +var cipherSuiteLookup = map[uint16]string{ + tls.TLS_RSA_WITH_RC4_128_SHA: "TLS_RSA_WITH_RC4_128_SHA", + tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA: "TLS_RSA_WITH_3DES_EDE_CBC_SHA", + tls.TLS_RSA_WITH_AES_128_CBC_SHA: "TLS_RSA_WITH_AES_128_CBC_SHA", + tls.TLS_RSA_WITH_AES_256_CBC_SHA: "TLS_RSA_WITH_AES_256_CBC_SHA", + tls.TLS_RSA_WITH_AES_128_GCM_SHA256: "TLS_RSA_WITH_AES_128_GCM_SHA256", + tls.TLS_RSA_WITH_AES_256_GCM_SHA384: "TLS_RSA_WITH_AES_256_GCM_SHA384", + tls.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA", + tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA: "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", + tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA: "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", + tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA: "TLS_ECDHE_RSA_WITH_RC4_128_SHA", + tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", + tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + tls.TLS_FALLBACK_SCSV: "TLS_FALLBACK_SCSV", + tls.TLS_RSA_WITH_AES_128_CBC_SHA256: "TLS_RSA_WITH_AES_128_CBC_SHA256", + tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256: "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256: "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", + tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305: "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", + tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305: "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305", + tls.TLS_AES_128_GCM_SHA256: "TLS_AES_128_GCM_SHA256", + tls.TLS_AES_256_GCM_SHA384: "TLS_AES_256_GCM_SHA384", + tls.TLS_CHACHA20_POLY1305_SHA256: "TLS_CHACHA20_POLY1305_SHA256", +} diff --git a/vendor/google.golang.org/grpc/dialoptions.go b/vendor/google.golang.org/grpc/dialoptions.go new file mode 100644 index 0000000..4866da1 --- /dev/null +++ b/vendor/google.golang.org/grpc/dialoptions.go @@ -0,0 +1,637 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 grpc + +import ( + "context" + "net" + "time" + + "google.golang.org/grpc/backoff" + "google.golang.org/grpc/channelz" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/credentials/insecure" + "google.golang.org/grpc/internal" + internalbackoff "google.golang.org/grpc/internal/backoff" + "google.golang.org/grpc/internal/binarylog" + "google.golang.org/grpc/internal/transport" + "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/resolver" + "google.golang.org/grpc/stats" +) + +func init() { + internal.AddGlobalDialOptions = func(opt ...DialOption) { + extraDialOptions = append(extraDialOptions, opt...) + } + internal.ClearGlobalDialOptions = func() { + extraDialOptions = nil + } + internal.WithBinaryLogger = withBinaryLogger + internal.JoinDialOptions = newJoinDialOption +} + +// dialOptions configure a Dial call. dialOptions are set by the DialOption +// values passed to Dial. +type dialOptions struct { + unaryInt UnaryClientInterceptor + streamInt StreamClientInterceptor + + chainUnaryInts []UnaryClientInterceptor + chainStreamInts []StreamClientInterceptor + + cp Compressor + dc Decompressor + bs internalbackoff.Strategy + block bool + returnLastError bool + timeout time.Duration + scChan <-chan ServiceConfig + authority string + binaryLogger binarylog.Logger + copts transport.ConnectOptions + callOptions []CallOption + channelzParentID *channelz.Identifier + disableServiceConfig bool + disableRetry bool + disableHealthCheck bool + healthCheckFunc internal.HealthChecker + minConnectTimeout func() time.Duration + defaultServiceConfig *ServiceConfig // defaultServiceConfig is parsed from defaultServiceConfigRawJSON. + defaultServiceConfigRawJSON *string + resolvers []resolver.Builder +} + +// DialOption configures how we set up the connection. +type DialOption interface { + apply(*dialOptions) +} + +var extraDialOptions []DialOption + +// EmptyDialOption does not alter the dial configuration. It can be embedded in +// another structure to build custom dial options. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type EmptyDialOption struct{} + +func (EmptyDialOption) apply(*dialOptions) {} + +// funcDialOption wraps a function that modifies dialOptions into an +// implementation of the DialOption interface. +type funcDialOption struct { + f func(*dialOptions) +} + +func (fdo *funcDialOption) apply(do *dialOptions) { + fdo.f(do) +} + +func newFuncDialOption(f func(*dialOptions)) *funcDialOption { + return &funcDialOption{ + f: f, + } +} + +type joinDialOption struct { + opts []DialOption +} + +func (jdo *joinDialOption) apply(do *dialOptions) { + for _, opt := range jdo.opts { + opt.apply(do) + } +} + +func newJoinDialOption(opts ...DialOption) DialOption { + return &joinDialOption{opts: opts} +} + +// WithWriteBufferSize determines how much data can be batched before doing a +// write on the wire. The corresponding memory allocation for this buffer will +// be twice the size to keep syscalls low. The default value for this buffer is +// 32KB. +// +// Zero or negative values will disable the write buffer such that each write +// will be on underlying connection. Note: A Send call may not directly +// translate to a write. +func WithWriteBufferSize(s int) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.WriteBufferSize = s + }) +} + +// WithReadBufferSize lets you set the size of read buffer, this determines how +// much data can be read at most for each read syscall. +// +// The default value for this buffer is 32KB. Zero or negative values will +// disable read buffer for a connection so data framer can access the +// underlying conn directly. +func WithReadBufferSize(s int) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.ReadBufferSize = s + }) +} + +// WithInitialWindowSize returns a DialOption which sets the value for initial +// window size on a stream. The lower bound for window size is 64K and any value +// smaller than that will be ignored. +func WithInitialWindowSize(s int32) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.InitialWindowSize = s + }) +} + +// WithInitialConnWindowSize returns a DialOption which sets the value for +// initial window size on a connection. The lower bound for window size is 64K +// and any value smaller than that will be ignored. +func WithInitialConnWindowSize(s int32) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.InitialConnWindowSize = s + }) +} + +// WithMaxMsgSize returns a DialOption which sets the maximum message size the +// client can receive. +// +// Deprecated: use WithDefaultCallOptions(MaxCallRecvMsgSize(s)) instead. Will +// be supported throughout 1.x. +func WithMaxMsgSize(s int) DialOption { + return WithDefaultCallOptions(MaxCallRecvMsgSize(s)) +} + +// WithDefaultCallOptions returns a DialOption which sets the default +// CallOptions for calls over the connection. +func WithDefaultCallOptions(cos ...CallOption) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.callOptions = append(o.callOptions, cos...) + }) +} + +// WithCodec returns a DialOption which sets a codec for message marshaling and +// unmarshaling. +// +// Deprecated: use WithDefaultCallOptions(ForceCodec(_)) instead. Will be +// supported throughout 1.x. +func WithCodec(c Codec) DialOption { + return WithDefaultCallOptions(CallCustomCodec(c)) +} + +// WithCompressor returns a DialOption which sets a Compressor to use for +// message compression. It has lower priority than the compressor set by the +// UseCompressor CallOption. +// +// Deprecated: use UseCompressor instead. Will be supported throughout 1.x. +func WithCompressor(cp Compressor) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.cp = cp + }) +} + +// WithDecompressor returns a DialOption which sets a Decompressor to use for +// incoming message decompression. If incoming response messages are encoded +// using the decompressor's Type(), it will be used. Otherwise, the message +// encoding will be used to look up the compressor registered via +// encoding.RegisterCompressor, which will then be used to decompress the +// message. If no compressor is registered for the encoding, an Unimplemented +// status error will be returned. +// +// Deprecated: use encoding.RegisterCompressor instead. Will be supported +// throughout 1.x. +func WithDecompressor(dc Decompressor) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.dc = dc + }) +} + +// WithServiceConfig returns a DialOption which has a channel to read the +// service configuration. +// +// Deprecated: service config should be received through name resolver or via +// WithDefaultServiceConfig, as specified at +// https://github.com/grpc/grpc/blob/master/doc/service_config.md. Will be +// removed in a future 1.x release. +func WithServiceConfig(c <-chan ServiceConfig) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.scChan = c + }) +} + +// WithConnectParams configures the ClientConn to use the provided ConnectParams +// for creating and maintaining connections to servers. +// +// The backoff configuration specified as part of the ConnectParams overrides +// all defaults specified in +// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. Consider +// using the backoff.DefaultConfig as a base, in cases where you want to +// override only a subset of the backoff configuration. +func WithConnectParams(p ConnectParams) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.bs = internalbackoff.Exponential{Config: p.Backoff} + o.minConnectTimeout = func() time.Duration { + return p.MinConnectTimeout + } + }) +} + +// WithBackoffMaxDelay configures the dialer to use the provided maximum delay +// when backing off after failed connection attempts. +// +// Deprecated: use WithConnectParams instead. Will be supported throughout 1.x. +func WithBackoffMaxDelay(md time.Duration) DialOption { + return WithBackoffConfig(BackoffConfig{MaxDelay: md}) +} + +// WithBackoffConfig configures the dialer to use the provided backoff +// parameters after connection failures. +// +// Deprecated: use WithConnectParams instead. Will be supported throughout 1.x. +func WithBackoffConfig(b BackoffConfig) DialOption { + bc := backoff.DefaultConfig + bc.MaxDelay = b.MaxDelay + return withBackoff(internalbackoff.Exponential{Config: bc}) +} + +// withBackoff sets the backoff strategy used for connectRetryNum after a failed +// connection attempt. +// +// This can be exported if arbitrary backoff strategies are allowed by gRPC. +func withBackoff(bs internalbackoff.Strategy) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.bs = bs + }) +} + +// WithBlock returns a DialOption which makes callers of Dial block until the +// underlying connection is up. Without this, Dial returns immediately and +// connecting the server happens in background. +func WithBlock() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.block = true + }) +} + +// WithReturnConnectionError returns a DialOption which makes the client connection +// return a string containing both the last connection error that occurred and +// the context.DeadlineExceeded error. +// Implies WithBlock() +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithReturnConnectionError() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.block = true + o.returnLastError = true + }) +} + +// WithInsecure returns a DialOption which disables transport security for this +// ClientConn. Under the hood, it uses insecure.NewCredentials(). +// +// Note that using this DialOption with per-RPC credentials (through +// WithCredentialsBundle or WithPerRPCCredentials) which require transport +// security is incompatible and will cause grpc.Dial() to fail. +// +// Deprecated: use WithTransportCredentials and insecure.NewCredentials() +// instead. Will be supported throughout 1.x. +func WithInsecure() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.TransportCredentials = insecure.NewCredentials() + }) +} + +// WithNoProxy returns a DialOption which disables the use of proxies for this +// ClientConn. This is ignored if WithDialer or WithContextDialer are used. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithNoProxy() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.UseProxy = false + }) +} + +// WithTransportCredentials returns a DialOption which configures a connection +// level security credentials (e.g., TLS/SSL). This should not be used together +// with WithCredentialsBundle. +func WithTransportCredentials(creds credentials.TransportCredentials) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.TransportCredentials = creds + }) +} + +// WithPerRPCCredentials returns a DialOption which sets credentials and places +// auth state on each outbound RPC. +func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.PerRPCCredentials = append(o.copts.PerRPCCredentials, creds) + }) +} + +// WithCredentialsBundle returns a DialOption to set a credentials bundle for +// the ClientConn.WithCreds. This should not be used together with +// WithTransportCredentials. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithCredentialsBundle(b credentials.Bundle) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.CredsBundle = b + }) +} + +// WithTimeout returns a DialOption that configures a timeout for dialing a +// ClientConn initially. This is valid if and only if WithBlock() is present. +// +// Deprecated: use DialContext instead of Dial and context.WithTimeout +// instead. Will be supported throughout 1.x. +func WithTimeout(d time.Duration) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.timeout = d + }) +} + +// WithContextDialer returns a DialOption that sets a dialer to create +// connections. If FailOnNonTempDialError() is set to true, and an error is +// returned by f, gRPC checks the error's Temporary() method to decide if it +// should try to reconnect to the network address. +func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.Dialer = f + }) +} + +func init() { + internal.WithHealthCheckFunc = withHealthCheckFunc +} + +// WithDialer returns a DialOption that specifies a function to use for dialing +// network addresses. If FailOnNonTempDialError() is set to true, and an error +// is returned by f, gRPC checks the error's Temporary() method to decide if it +// should try to reconnect to the network address. +// +// Deprecated: use WithContextDialer instead. Will be supported throughout +// 1.x. +func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption { + return WithContextDialer( + func(ctx context.Context, addr string) (net.Conn, error) { + if deadline, ok := ctx.Deadline(); ok { + return f(addr, time.Until(deadline)) + } + return f(addr, 0) + }) +} + +// WithStatsHandler returns a DialOption that specifies the stats handler for +// all the RPCs and underlying network connections in this ClientConn. +func WithStatsHandler(h stats.Handler) DialOption { + return newFuncDialOption(func(o *dialOptions) { + if h == nil { + logger.Error("ignoring nil parameter in grpc.WithStatsHandler ClientOption") + // Do not allow a nil stats handler, which would otherwise cause + // panics. + return + } + o.copts.StatsHandlers = append(o.copts.StatsHandlers, h) + }) +} + +// withBinaryLogger returns a DialOption that specifies the binary logger for +// this ClientConn. +func withBinaryLogger(bl binarylog.Logger) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.binaryLogger = bl + }) +} + +// FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on +// non-temporary dial errors. If f is true, and dialer returns a non-temporary +// error, gRPC will fail the connection to the network address and won't try to +// reconnect. The default value of FailOnNonTempDialError is false. +// +// FailOnNonTempDialError only affects the initial dial, and does not do +// anything useful unless you are also using WithBlock(). +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func FailOnNonTempDialError(f bool) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.FailOnNonTempDialError = f + }) +} + +// WithUserAgent returns a DialOption that specifies a user agent string for all +// the RPCs. +func WithUserAgent(s string) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.UserAgent = s + }) +} + +// WithKeepaliveParams returns a DialOption that specifies keepalive parameters +// for the client transport. +func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption { + if kp.Time < internal.KeepaliveMinPingTime { + logger.Warningf("Adjusting keepalive ping interval to minimum period of %v", internal.KeepaliveMinPingTime) + kp.Time = internal.KeepaliveMinPingTime + } + return newFuncDialOption(func(o *dialOptions) { + o.copts.KeepaliveParams = kp + }) +} + +// WithUnaryInterceptor returns a DialOption that specifies the interceptor for +// unary RPCs. +func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.unaryInt = f + }) +} + +// WithChainUnaryInterceptor returns a DialOption that specifies the chained +// interceptor for unary RPCs. The first interceptor will be the outer most, +// while the last interceptor will be the inner most wrapper around the real call. +// All interceptors added by this method will be chained, and the interceptor +// defined by WithUnaryInterceptor will always be prepended to the chain. +func WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.chainUnaryInts = append(o.chainUnaryInts, interceptors...) + }) +} + +// WithStreamInterceptor returns a DialOption that specifies the interceptor for +// streaming RPCs. +func WithStreamInterceptor(f StreamClientInterceptor) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.streamInt = f + }) +} + +// WithChainStreamInterceptor returns a DialOption that specifies the chained +// interceptor for streaming RPCs. The first interceptor will be the outer most, +// while the last interceptor will be the inner most wrapper around the real call. +// All interceptors added by this method will be chained, and the interceptor +// defined by WithStreamInterceptor will always be prepended to the chain. +func WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.chainStreamInts = append(o.chainStreamInts, interceptors...) + }) +} + +// WithAuthority returns a DialOption that specifies the value to be used as the +// :authority pseudo-header and as the server name in authentication handshake. +func WithAuthority(a string) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.authority = a + }) +} + +// WithChannelzParentID returns a DialOption that specifies the channelz ID of +// current ClientConn's parent. This function is used in nested channel creation +// (e.g. grpclb dial). +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithChannelzParentID(id *channelz.Identifier) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.channelzParentID = id + }) +} + +// WithDisableServiceConfig returns a DialOption that causes gRPC to ignore any +// service config provided by the resolver and provides a hint to the resolver +// to not fetch service configs. +// +// Note that this dial option only disables service config from resolver. If +// default service config is provided, gRPC will use the default service config. +func WithDisableServiceConfig() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.disableServiceConfig = true + }) +} + +// WithDefaultServiceConfig returns a DialOption that configures the default +// service config, which will be used in cases where: +// +// 1. WithDisableServiceConfig is also used, or +// +// 2. The name resolver does not provide a service config or provides an +// invalid service config. +// +// The parameter s is the JSON representation of the default service config. +// For more information about service configs, see: +// https://github.com/grpc/grpc/blob/master/doc/service_config.md +// For a simple example of usage, see: +// examples/features/load_balancing/client/main.go +func WithDefaultServiceConfig(s string) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.defaultServiceConfigRawJSON = &s + }) +} + +// WithDisableRetry returns a DialOption that disables retries, even if the +// service config enables them. This does not impact transparent retries, which +// will happen automatically if no data is written to the wire or if the RPC is +// unprocessed by the remote server. +func WithDisableRetry() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.disableRetry = true + }) +} + +// WithMaxHeaderListSize returns a DialOption that specifies the maximum +// (uncompressed) size of header list that the client is prepared to accept. +func WithMaxHeaderListSize(s uint32) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.copts.MaxHeaderListSize = &s + }) +} + +// WithDisableHealthCheck disables the LB channel health checking for all +// SubConns of this ClientConn. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithDisableHealthCheck() DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.disableHealthCheck = true + }) +} + +// withHealthCheckFunc replaces the default health check function with the +// provided one. It makes tests easier to change the health check function. +// +// For testing purpose only. +func withHealthCheckFunc(f internal.HealthChecker) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.healthCheckFunc = f + }) +} + +func defaultDialOptions() dialOptions { + return dialOptions{ + healthCheckFunc: internal.HealthCheckFunc, + copts: transport.ConnectOptions{ + WriteBufferSize: defaultWriteBufSize, + ReadBufferSize: defaultReadBufSize, + UseProxy: true, + }, + } +} + +// withGetMinConnectDeadline specifies the function that clientconn uses to +// get minConnectDeadline. This can be used to make connection attempts happen +// faster/slower. +// +// For testing purpose only. +func withMinConnectDeadline(f func() time.Duration) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.minConnectTimeout = f + }) +} + +// WithResolvers allows a list of resolver implementations to be registered +// locally with the ClientConn without needing to be globally registered via +// resolver.Register. They will be matched against the scheme used for the +// current Dial only, and will take precedence over the global registry. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithResolvers(rs ...resolver.Builder) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.resolvers = append(o.resolvers, rs...) + }) +} diff --git a/vendor/google.golang.org/grpc/doc.go b/vendor/google.golang.org/grpc/doc.go index 187adbb..0022859 100644 --- a/vendor/google.golang.org/grpc/doc.go +++ b/vendor/google.golang.org/grpc/doc.go @@ -16,6 +16,8 @@ * */ +//go:generate ./regenerate.sh + /* Package grpc implements an RPC system called gRPC. diff --git a/vendor/google.golang.org/grpc/encoding/encoding.go b/vendor/google.golang.org/grpc/encoding/encoding.go index 8e26c19..07a5861 100644 --- a/vendor/google.golang.org/grpc/encoding/encoding.go +++ b/vendor/google.golang.org/grpc/encoding/encoding.go @@ -19,12 +19,17 @@ // Package encoding defines the interface for the compressor and codec, and // functions to register and retrieve compressors and codecs. // -// This package is EXPERIMENTAL. +// # Experimental +// +// Notice: This package is EXPERIMENTAL and may be changed or removed in a +// later release. package encoding import ( "io" "strings" + + "google.golang.org/grpc/internal/grpcutil" ) // Identity specifies the optional encoding for uncompressed streams. @@ -46,6 +51,15 @@ type Compressor interface { // coding header. The result must be static; the result cannot change // between calls. Name() string + // If a Compressor implements + // DecompressedSize(compressedBytes []byte) int, gRPC will call it + // to determine the size of the buffer allocated for the result of decompression. + // Return -1 to indicate unknown size. + // + // Experimental + // + // Notice: This API is EXPERIMENTAL and may be changed or removed in a + // later release. } var registeredCompressor = make(map[string]Compressor) @@ -61,6 +75,9 @@ var registeredCompressor = make(map[string]Compressor) // registered with the same name, the one registered last will take effect. func RegisterCompressor(c Compressor) { registeredCompressor[c.Name()] = c + if !grpcutil.IsCompressorNameRegistered(c.Name()) { + grpcutil.RegisteredCompressorNames = append(grpcutil.RegisteredCompressorNames, c.Name()) + } } // GetCompressor returns Compressor for the given compressor name. @@ -82,7 +99,7 @@ type Codec interface { Name() string } -var registeredCodecs = make(map[string]Codec, 0) +var registeredCodecs = make(map[string]Codec) // RegisterCodec registers the provided Codec for use with all gRPC clients and // servers. @@ -96,16 +113,16 @@ var registeredCodecs = make(map[string]Codec, 0) // more details. // // NOTE: this function must only be called during initialization time (i.e. in -// an init() function), and is not thread-safe. If multiple Compressors are +// an init() function), and is not thread-safe. If multiple Codecs are // registered with the same name, the one registered last will take effect. func RegisterCodec(codec Codec) { if codec == nil { panic("cannot register a nil Codec") } - contentSubtype := strings.ToLower(codec.Name()) - if contentSubtype == "" { - panic("cannot register Codec with empty string result for String()") + if codec.Name() == "" { + panic("cannot register Codec with empty string result for Name()") } + contentSubtype := strings.ToLower(codec.Name()) registeredCodecs[contentSubtype] = codec } diff --git a/vendor/google.golang.org/grpc/encoding/gzip/gzip.go b/vendor/google.golang.org/grpc/encoding/gzip/gzip.go index 09564db..a3bb173 100644 --- a/vendor/google.golang.org/grpc/encoding/gzip/gzip.go +++ b/vendor/google.golang.org/grpc/encoding/gzip/gzip.go @@ -18,14 +18,18 @@ // Package gzip implements and registers the gzip compressor // during the initialization. -// This package is EXPERIMENTAL. +// +// # Experimental +// +// Notice: This package is EXPERIMENTAL and may be changed or removed in a +// later release. package gzip import ( "compress/gzip" + "encoding/binary" "fmt" "io" - "io/ioutil" "sync" "google.golang.org/grpc/encoding" @@ -37,7 +41,7 @@ const Name = "gzip" func init() { c := &compressor{} c.poolCompressor.New = func() interface{} { - return &writer{Writer: gzip.NewWriter(ioutil.Discard), pool: &c.poolCompressor} + return &writer{Writer: gzip.NewWriter(io.Discard), pool: &c.poolCompressor} } encoding.RegisterCompressor(c) } @@ -58,7 +62,7 @@ func SetLevel(level int) error { } c := encoding.GetCompressor(Name).(*compressor) c.poolCompressor.New = func() interface{} { - w, err := gzip.NewWriterLevel(ioutil.Discard, level) + w, err := gzip.NewWriterLevel(io.Discard, level) if err != nil { panic(err) } @@ -107,6 +111,17 @@ func (z *reader) Read(p []byte) (n int, err error) { return n, err } +// RFC1952 specifies that the last four bytes "contains the size of +// the original (uncompressed) input data modulo 2^32." +// gRPC has a max message size of 2GB so we don't need to worry about wraparound. +func (c *compressor) DecompressedSize(buf []byte) int { + last := len(buf) + if last < 4 { + return -1 + } + return int(binary.LittleEndian.Uint32(buf[last-4 : last])) +} + func (c *compressor) Name() string { return Name } diff --git a/vendor/google.golang.org/grpc/encoding/proto/proto.go b/vendor/google.golang.org/grpc/encoding/proto/proto.go index 66b97a6..3009b35 100644 --- a/vendor/google.golang.org/grpc/encoding/proto/proto.go +++ b/vendor/google.golang.org/grpc/encoding/proto/proto.go @@ -21,8 +21,7 @@ package proto import ( - "math" - "sync" + "fmt" "github.com/golang/protobuf/proto" "google.golang.org/grpc/encoding" @@ -38,73 +37,22 @@ func init() { // codec is a Codec implementation with protobuf. It is the default codec for gRPC. type codec struct{} -type cachedProtoBuffer struct { - lastMarshaledSize uint32 - proto.Buffer -} - -func capToMaxInt32(val int) uint32 { - if val > math.MaxInt32 { - return uint32(math.MaxInt32) - } - return uint32(val) -} - -func marshal(v interface{}, cb *cachedProtoBuffer) ([]byte, error) { - protoMsg := v.(proto.Message) - newSlice := make([]byte, 0, cb.lastMarshaledSize) - - cb.SetBuf(newSlice) - cb.Reset() - if err := cb.Marshal(protoMsg); err != nil { - return nil, err - } - out := cb.Bytes() - cb.lastMarshaledSize = capToMaxInt32(len(out)) - return out, nil -} - func (codec) Marshal(v interface{}) ([]byte, error) { - if pm, ok := v.(proto.Marshaler); ok { - // object can marshal itself, no need for buffer - return pm.Marshal() + vv, ok := v.(proto.Message) + if !ok { + return nil, fmt.Errorf("failed to marshal, message is %T, want proto.Message", v) } - - cb := protoBufferPool.Get().(*cachedProtoBuffer) - out, err := marshal(v, cb) - - // put back buffer and lose the ref to the slice - cb.SetBuf(nil) - protoBufferPool.Put(cb) - return out, err + return proto.Marshal(vv) } func (codec) Unmarshal(data []byte, v interface{}) error { - protoMsg := v.(proto.Message) - protoMsg.Reset() - - if pu, ok := protoMsg.(proto.Unmarshaler); ok { - // object can unmarshal itself, no need for buffer - return pu.Unmarshal(data) + vv, ok := v.(proto.Message) + if !ok { + return fmt.Errorf("failed to unmarshal, message is %T, want proto.Message", v) } - - cb := protoBufferPool.Get().(*cachedProtoBuffer) - cb.SetBuf(data) - err := cb.Unmarshal(protoMsg) - cb.SetBuf(nil) - protoBufferPool.Put(cb) - return err + return proto.Unmarshal(data, vv) } func (codec) Name() string { return Name } - -var protoBufferPool = &sync.Pool{ - New: func() interface{} { - return &cachedProtoBuffer{ - Buffer: proto.Buffer{}, - lastMarshaledSize: 16, - } - }, -} diff --git a/vendor/google.golang.org/grpc/go16.go b/vendor/google.golang.org/grpc/go16.go deleted file mode 100644 index 535ee93..0000000 --- a/vendor/google.golang.org/grpc/go16.go +++ /dev/null @@ -1,70 +0,0 @@ -// +build go1.6,!go1.7 - -/* - * - * Copyright 2016 gRPC authors. - * - * 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 grpc - -import ( - "fmt" - "io" - "net" - "net/http" - - "golang.org/x/net/context" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "google.golang.org/grpc/transport" -) - -// dialContext connects to the address on the named network. -func dialContext(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{Cancel: ctx.Done()}).Dial(network, address) -} - -func sendHTTPRequest(ctx context.Context, req *http.Request, conn net.Conn) error { - req.Cancel = ctx.Done() - if err := req.Write(conn); err != nil { - return fmt.Errorf("failed to write the HTTP request: %v", err) - } - return nil -} - -// toRPCErr converts an error into an error from the status package. -func toRPCErr(err error) error { - if err == nil || err == io.EOF { - return err - } - if _, ok := status.FromError(err); ok { - return err - } - switch e := err.(type) { - case transport.StreamError: - return status.Error(e.Code, e.Desc) - case transport.ConnectionError: - return status.Error(codes.Unavailable, e.Desc) - default: - switch err { - case context.DeadlineExceeded: - return status.Error(codes.DeadlineExceeded, err.Error()) - case context.Canceled: - return status.Error(codes.Canceled, err.Error()) - } - } - return status.Error(codes.Unknown, err.Error()) -} diff --git a/vendor/google.golang.org/grpc/go17.go b/vendor/google.golang.org/grpc/go17.go deleted file mode 100644 index ec676a9..0000000 --- a/vendor/google.golang.org/grpc/go17.go +++ /dev/null @@ -1,71 +0,0 @@ -// +build go1.7 - -/* - * - * Copyright 2016 gRPC authors. - * - * 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 grpc - -import ( - "context" - "fmt" - "io" - "net" - "net/http" - - netctx "golang.org/x/net/context" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "google.golang.org/grpc/transport" -) - -// dialContext connects to the address on the named network. -func dialContext(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{}).DialContext(ctx, network, address) -} - -func sendHTTPRequest(ctx context.Context, req *http.Request, conn net.Conn) error { - req = req.WithContext(ctx) - if err := req.Write(conn); err != nil { - return fmt.Errorf("failed to write the HTTP request: %v", err) - } - return nil -} - -// toRPCErr converts an error into an error from the status package. -func toRPCErr(err error) error { - if err == nil || err == io.EOF { - return err - } - if _, ok := status.FromError(err); ok { - return err - } - switch e := err.(type) { - case transport.StreamError: - return status.Error(e.Code, e.Desc) - case transport.ConnectionError: - return status.Error(codes.Unavailable, e.Desc) - default: - switch err { - case context.DeadlineExceeded, netctx.DeadlineExceeded: - return status.Error(codes.DeadlineExceeded, err.Error()) - case context.Canceled, netctx.Canceled: - return status.Error(codes.Canceled, err.Error()) - } - } - return status.Error(codes.Unknown, err.Error()) -} diff --git a/vendor/google.golang.org/grpc/grpclb.go b/vendor/google.golang.org/grpc/grpclb.go deleted file mode 100644 index d14a5d4..0000000 --- a/vendor/google.golang.org/grpc/grpclb.go +++ /dev/null @@ -1,342 +0,0 @@ -/* - * - * Copyright 2016 gRPC authors. - * - * 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 grpc - -import ( - "strconv" - "strings" - "sync" - "time" - - "golang.org/x/net/context" - "google.golang.org/grpc/balancer" - "google.golang.org/grpc/connectivity" - lbpb "google.golang.org/grpc/grpclb/grpc_lb_v1/messages" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/resolver" -) - -const ( - lbTokeyKey = "lb-token" - defaultFallbackTimeout = 10 * time.Second - grpclbName = "grpclb" -) - -func convertDuration(d *lbpb.Duration) time.Duration { - if d == nil { - return 0 - } - return time.Duration(d.Seconds)*time.Second + time.Duration(d.Nanos)*time.Nanosecond -} - -// Client API for LoadBalancer service. -// Mostly copied from generated pb.go file. -// To avoid circular dependency. -type loadBalancerClient struct { - cc *ClientConn -} - -func (c *loadBalancerClient) BalanceLoad(ctx context.Context, opts ...CallOption) (*balanceLoadClientStream, error) { - desc := &StreamDesc{ - StreamName: "BalanceLoad", - ServerStreams: true, - ClientStreams: true, - } - stream, err := NewClientStream(ctx, desc, c.cc, "/grpc.lb.v1.LoadBalancer/BalanceLoad", opts...) - if err != nil { - return nil, err - } - x := &balanceLoadClientStream{stream} - return x, nil -} - -type balanceLoadClientStream struct { - ClientStream -} - -func (x *balanceLoadClientStream) Send(m *lbpb.LoadBalanceRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *balanceLoadClientStream) Recv() (*lbpb.LoadBalanceResponse, error) { - m := new(lbpb.LoadBalanceResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func init() { - balancer.Register(newLBBuilder()) -} - -// newLBBuilder creates a builder for grpclb. -func newLBBuilder() balancer.Builder { - return NewLBBuilderWithFallbackTimeout(defaultFallbackTimeout) -} - -// NewLBBuilderWithFallbackTimeout creates a grpclb builder with the given -// fallbackTimeout. If no response is received from the remote balancer within -// fallbackTimeout, the backend addresses from the resolved address list will be -// used. -// -// Only call this function when a non-default fallback timeout is needed. -func NewLBBuilderWithFallbackTimeout(fallbackTimeout time.Duration) balancer.Builder { - return &lbBuilder{ - fallbackTimeout: fallbackTimeout, - } -} - -type lbBuilder struct { - fallbackTimeout time.Duration -} - -func (b *lbBuilder) Name() string { - return grpclbName -} - -func (b *lbBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer { - // This generates a manual resolver builder with a random scheme. This - // scheme will be used to dial to remote LB, so we can send filtered address - // updates to remote LB ClientConn using this manual resolver. - scheme := "grpclb_internal_" + strconv.FormatInt(time.Now().UnixNano(), 36) - r := &lbManualResolver{scheme: scheme, ccb: cc} - - var target string - targetSplitted := strings.Split(cc.Target(), ":///") - if len(targetSplitted) < 2 { - target = cc.Target() - } else { - target = targetSplitted[1] - } - - lb := &lbBalancer{ - cc: cc, - target: target, - opt: opt, - fallbackTimeout: b.fallbackTimeout, - doneCh: make(chan struct{}), - - manualResolver: r, - csEvltr: &connectivityStateEvaluator{}, - subConns: make(map[resolver.Address]balancer.SubConn), - scStates: make(map[balancer.SubConn]connectivity.State), - picker: &errPicker{err: balancer.ErrNoSubConnAvailable}, - clientStats: &rpcStats{}, - } - - return lb -} - -type lbBalancer struct { - cc balancer.ClientConn - target string - opt balancer.BuildOptions - fallbackTimeout time.Duration - doneCh chan struct{} - - // manualResolver is used in the remote LB ClientConn inside grpclb. When - // resolved address updates are received by grpclb, filtered updates will be - // send to remote LB ClientConn through this resolver. - manualResolver *lbManualResolver - // The ClientConn to talk to the remote balancer. - ccRemoteLB *ClientConn - - // Support client side load reporting. Each picker gets a reference to this, - // and will update its content. - clientStats *rpcStats - - mu sync.Mutex // guards everything following. - // The full server list including drops, used to check if the newly received - // serverList contains anything new. Each generate picker will also have - // reference to this list to do the first layer pick. - fullServerList []*lbpb.Server - // All backends addresses, with metadata set to nil. This list contains all - // backend addresses in the same order and with the same duplicates as in - // serverlist. When generating picker, a SubConn slice with the same order - // but with only READY SCs will be gerenated. - backendAddrs []resolver.Address - // Roundrobin functionalities. - csEvltr *connectivityStateEvaluator - state connectivity.State - subConns map[resolver.Address]balancer.SubConn // Used to new/remove SubConn. - scStates map[balancer.SubConn]connectivity.State // Used to filter READY SubConns. - picker balancer.Picker - // Support fallback to resolved backend addresses if there's no response - // from remote balancer within fallbackTimeout. - fallbackTimerExpired bool - serverListReceived bool - // resolvedBackendAddrs is resolvedAddrs minus remote balancers. It's set - // when resolved address updates are received, and read in the goroutine - // handling fallback. - resolvedBackendAddrs []resolver.Address -} - -// regeneratePicker takes a snapshot of the balancer, and generates a picker from -// it. The picker -// - always returns ErrTransientFailure if the balancer is in TransientFailure, -// - does two layer roundrobin pick otherwise. -// Caller must hold lb.mu. -func (lb *lbBalancer) regeneratePicker() { - if lb.state == connectivity.TransientFailure { - lb.picker = &errPicker{err: balancer.ErrTransientFailure} - return - } - var readySCs []balancer.SubConn - for _, a := range lb.backendAddrs { - if sc, ok := lb.subConns[a]; ok { - if st, ok := lb.scStates[sc]; ok && st == connectivity.Ready { - readySCs = append(readySCs, sc) - } - } - } - - if len(lb.fullServerList) <= 0 { - if len(readySCs) <= 0 { - lb.picker = &errPicker{err: balancer.ErrNoSubConnAvailable} - return - } - lb.picker = &rrPicker{subConns: readySCs} - return - } - lb.picker = &lbPicker{ - serverList: lb.fullServerList, - subConns: readySCs, - stats: lb.clientStats, - } - return -} - -func (lb *lbBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) { - grpclog.Infof("lbBalancer: handle SubConn state change: %p, %v", sc, s) - lb.mu.Lock() - defer lb.mu.Unlock() - - oldS, ok := lb.scStates[sc] - if !ok { - grpclog.Infof("lbBalancer: got state changes for an unknown SubConn: %p, %v", sc, s) - return - } - lb.scStates[sc] = s - switch s { - case connectivity.Idle: - sc.Connect() - case connectivity.Shutdown: - // When an address was removed by resolver, b called RemoveSubConn but - // kept the sc's state in scStates. Remove state for this sc here. - delete(lb.scStates, sc) - } - - oldAggrState := lb.state - lb.state = lb.csEvltr.recordTransition(oldS, s) - - // Regenerate picker when one of the following happens: - // - this sc became ready from not-ready - // - this sc became not-ready from ready - // - the aggregated state of balancer became TransientFailure from non-TransientFailure - // - the aggregated state of balancer became non-TransientFailure from TransientFailure - if (oldS == connectivity.Ready) != (s == connectivity.Ready) || - (lb.state == connectivity.TransientFailure) != (oldAggrState == connectivity.TransientFailure) { - lb.regeneratePicker() - } - - lb.cc.UpdateBalancerState(lb.state, lb.picker) - return -} - -// fallbackToBackendsAfter blocks for fallbackTimeout and falls back to use -// resolved backends (backends received from resolver, not from remote balancer) -// if no connection to remote balancers was successful. -func (lb *lbBalancer) fallbackToBackendsAfter(fallbackTimeout time.Duration) { - timer := time.NewTimer(fallbackTimeout) - defer timer.Stop() - select { - case <-timer.C: - case <-lb.doneCh: - return - } - lb.mu.Lock() - if lb.serverListReceived { - lb.mu.Unlock() - return - } - lb.fallbackTimerExpired = true - lb.refreshSubConns(lb.resolvedBackendAddrs) - lb.mu.Unlock() -} - -// HandleResolvedAddrs sends the updated remoteLB addresses to remoteLB -// clientConn. The remoteLB clientConn will handle creating/removing remoteLB -// connections. -func (lb *lbBalancer) HandleResolvedAddrs(addrs []resolver.Address, err error) { - grpclog.Infof("lbBalancer: handleResolvedResult: %+v", addrs) - if len(addrs) <= 0 { - return - } - - var remoteBalancerAddrs, backendAddrs []resolver.Address - for _, a := range addrs { - if a.Type == resolver.GRPCLB { - remoteBalancerAddrs = append(remoteBalancerAddrs, a) - } else { - backendAddrs = append(backendAddrs, a) - } - } - - if lb.ccRemoteLB == nil { - if len(remoteBalancerAddrs) <= 0 { - grpclog.Errorf("grpclb: no remote balancer address is available, should never happen") - return - } - // First time receiving resolved addresses, create a cc to remote - // balancers. - lb.dialRemoteLB(remoteBalancerAddrs[0].ServerName) - // Start the fallback goroutine. - go lb.fallbackToBackendsAfter(lb.fallbackTimeout) - } - - // cc to remote balancers uses lb.manualResolver. Send the updated remote - // balancer addresses to it through manualResolver. - lb.manualResolver.NewAddress(remoteBalancerAddrs) - - lb.mu.Lock() - lb.resolvedBackendAddrs = backendAddrs - // If serverListReceived is true, connection to remote balancer was - // successful and there's no need to do fallback anymore. - // If fallbackTimerExpired is false, fallback hasn't happened yet. - if !lb.serverListReceived && lb.fallbackTimerExpired { - // This means we received a new list of resolved backends, and we are - // still in fallback mode. Need to update the list of backends we are - // using to the new list of backends. - lb.refreshSubConns(lb.resolvedBackendAddrs) - } - lb.mu.Unlock() -} - -func (lb *lbBalancer) Close() { - select { - case <-lb.doneCh: - return - default: - } - close(lb.doneCh) - if lb.ccRemoteLB != nil { - lb.ccRemoteLB.Close() - } -} diff --git a/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.pb.go b/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.pb.go deleted file mode 100644 index f4a2712..0000000 --- a/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.pb.go +++ /dev/null @@ -1,615 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: grpc_lb_v1/messages/messages.proto - -/* -Package messages is a generated protocol buffer package. - -It is generated from these files: - grpc_lb_v1/messages/messages.proto - -It has these top-level messages: - Duration - Timestamp - LoadBalanceRequest - InitialLoadBalanceRequest - ClientStats - LoadBalanceResponse - InitialLoadBalanceResponse - ServerList - Server -*/ -package messages - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type Duration struct { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. - Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - Nanos int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` -} - -func (m *Duration) Reset() { *m = Duration{} } -func (m *Duration) String() string { return proto.CompactTextString(m) } -func (*Duration) ProtoMessage() {} -func (*Duration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *Duration) GetSeconds() int64 { - if m != nil { - return m.Seconds - } - return 0 -} - -func (m *Duration) GetNanos() int32 { - if m != nil { - return m.Nanos - } - return 0 -} - -type Timestamp struct { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - Nanos int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` -} - -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (m *Timestamp) String() string { return proto.CompactTextString(m) } -func (*Timestamp) ProtoMessage() {} -func (*Timestamp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *Timestamp) GetSeconds() int64 { - if m != nil { - return m.Seconds - } - return 0 -} - -func (m *Timestamp) GetNanos() int32 { - if m != nil { - return m.Nanos - } - return 0 -} - -type LoadBalanceRequest struct { - // Types that are valid to be assigned to LoadBalanceRequestType: - // *LoadBalanceRequest_InitialRequest - // *LoadBalanceRequest_ClientStats - LoadBalanceRequestType isLoadBalanceRequest_LoadBalanceRequestType `protobuf_oneof:"load_balance_request_type"` -} - -func (m *LoadBalanceRequest) Reset() { *m = LoadBalanceRequest{} } -func (m *LoadBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*LoadBalanceRequest) ProtoMessage() {} -func (*LoadBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type isLoadBalanceRequest_LoadBalanceRequestType interface { - isLoadBalanceRequest_LoadBalanceRequestType() -} - -type LoadBalanceRequest_InitialRequest struct { - InitialRequest *InitialLoadBalanceRequest `protobuf:"bytes,1,opt,name=initial_request,json=initialRequest,oneof"` -} -type LoadBalanceRequest_ClientStats struct { - ClientStats *ClientStats `protobuf:"bytes,2,opt,name=client_stats,json=clientStats,oneof"` -} - -func (*LoadBalanceRequest_InitialRequest) isLoadBalanceRequest_LoadBalanceRequestType() {} -func (*LoadBalanceRequest_ClientStats) isLoadBalanceRequest_LoadBalanceRequestType() {} - -func (m *LoadBalanceRequest) GetLoadBalanceRequestType() isLoadBalanceRequest_LoadBalanceRequestType { - if m != nil { - return m.LoadBalanceRequestType - } - return nil -} - -func (m *LoadBalanceRequest) GetInitialRequest() *InitialLoadBalanceRequest { - if x, ok := m.GetLoadBalanceRequestType().(*LoadBalanceRequest_InitialRequest); ok { - return x.InitialRequest - } - return nil -} - -func (m *LoadBalanceRequest) GetClientStats() *ClientStats { - if x, ok := m.GetLoadBalanceRequestType().(*LoadBalanceRequest_ClientStats); ok { - return x.ClientStats - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*LoadBalanceRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _LoadBalanceRequest_OneofMarshaler, _LoadBalanceRequest_OneofUnmarshaler, _LoadBalanceRequest_OneofSizer, []interface{}{ - (*LoadBalanceRequest_InitialRequest)(nil), - (*LoadBalanceRequest_ClientStats)(nil), - } -} - -func _LoadBalanceRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*LoadBalanceRequest) - // load_balance_request_type - switch x := m.LoadBalanceRequestType.(type) { - case *LoadBalanceRequest_InitialRequest: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.InitialRequest); err != nil { - return err - } - case *LoadBalanceRequest_ClientStats: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ClientStats); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("LoadBalanceRequest.LoadBalanceRequestType has unexpected type %T", x) - } - return nil -} - -func _LoadBalanceRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*LoadBalanceRequest) - switch tag { - case 1: // load_balance_request_type.initial_request - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitialLoadBalanceRequest) - err := b.DecodeMessage(msg) - m.LoadBalanceRequestType = &LoadBalanceRequest_InitialRequest{msg} - return true, err - case 2: // load_balance_request_type.client_stats - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ClientStats) - err := b.DecodeMessage(msg) - m.LoadBalanceRequestType = &LoadBalanceRequest_ClientStats{msg} - return true, err - default: - return false, nil - } -} - -func _LoadBalanceRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*LoadBalanceRequest) - // load_balance_request_type - switch x := m.LoadBalanceRequestType.(type) { - case *LoadBalanceRequest_InitialRequest: - s := proto.Size(x.InitialRequest) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *LoadBalanceRequest_ClientStats: - s := proto.Size(x.ClientStats) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type InitialLoadBalanceRequest struct { - // Name of load balanced service (IE, balancer.service.com) - // length should be less than 256 bytes. - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` -} - -func (m *InitialLoadBalanceRequest) Reset() { *m = InitialLoadBalanceRequest{} } -func (m *InitialLoadBalanceRequest) String() string { return proto.CompactTextString(m) } -func (*InitialLoadBalanceRequest) ProtoMessage() {} -func (*InitialLoadBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *InitialLoadBalanceRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// Contains client level statistics that are useful to load balancing. Each -// count except the timestamp should be reset to zero after reporting the stats. -type ClientStats struct { - // The timestamp of generating the report. - Timestamp *Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"` - // The total number of RPCs that started. - NumCallsStarted int64 `protobuf:"varint,2,opt,name=num_calls_started,json=numCallsStarted" json:"num_calls_started,omitempty"` - // The total number of RPCs that finished. - NumCallsFinished int64 `protobuf:"varint,3,opt,name=num_calls_finished,json=numCallsFinished" json:"num_calls_finished,omitempty"` - // The total number of RPCs that were dropped by the client because of rate - // limiting. - NumCallsFinishedWithDropForRateLimiting int64 `protobuf:"varint,4,opt,name=num_calls_finished_with_drop_for_rate_limiting,json=numCallsFinishedWithDropForRateLimiting" json:"num_calls_finished_with_drop_for_rate_limiting,omitempty"` - // The total number of RPCs that were dropped by the client because of load - // balancing. - NumCallsFinishedWithDropForLoadBalancing int64 `protobuf:"varint,5,opt,name=num_calls_finished_with_drop_for_load_balancing,json=numCallsFinishedWithDropForLoadBalancing" json:"num_calls_finished_with_drop_for_load_balancing,omitempty"` - // The total number of RPCs that failed to reach a server except dropped RPCs. - NumCallsFinishedWithClientFailedToSend int64 `protobuf:"varint,6,opt,name=num_calls_finished_with_client_failed_to_send,json=numCallsFinishedWithClientFailedToSend" json:"num_calls_finished_with_client_failed_to_send,omitempty"` - // The total number of RPCs that finished and are known to have been received - // by a server. - NumCallsFinishedKnownReceived int64 `protobuf:"varint,7,opt,name=num_calls_finished_known_received,json=numCallsFinishedKnownReceived" json:"num_calls_finished_known_received,omitempty"` -} - -func (m *ClientStats) Reset() { *m = ClientStats{} } -func (m *ClientStats) String() string { return proto.CompactTextString(m) } -func (*ClientStats) ProtoMessage() {} -func (*ClientStats) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *ClientStats) GetTimestamp() *Timestamp { - if m != nil { - return m.Timestamp - } - return nil -} - -func (m *ClientStats) GetNumCallsStarted() int64 { - if m != nil { - return m.NumCallsStarted - } - return 0 -} - -func (m *ClientStats) GetNumCallsFinished() int64 { - if m != nil { - return m.NumCallsFinished - } - return 0 -} - -func (m *ClientStats) GetNumCallsFinishedWithDropForRateLimiting() int64 { - if m != nil { - return m.NumCallsFinishedWithDropForRateLimiting - } - return 0 -} - -func (m *ClientStats) GetNumCallsFinishedWithDropForLoadBalancing() int64 { - if m != nil { - return m.NumCallsFinishedWithDropForLoadBalancing - } - return 0 -} - -func (m *ClientStats) GetNumCallsFinishedWithClientFailedToSend() int64 { - if m != nil { - return m.NumCallsFinishedWithClientFailedToSend - } - return 0 -} - -func (m *ClientStats) GetNumCallsFinishedKnownReceived() int64 { - if m != nil { - return m.NumCallsFinishedKnownReceived - } - return 0 -} - -type LoadBalanceResponse struct { - // Types that are valid to be assigned to LoadBalanceResponseType: - // *LoadBalanceResponse_InitialResponse - // *LoadBalanceResponse_ServerList - LoadBalanceResponseType isLoadBalanceResponse_LoadBalanceResponseType `protobuf_oneof:"load_balance_response_type"` -} - -func (m *LoadBalanceResponse) Reset() { *m = LoadBalanceResponse{} } -func (m *LoadBalanceResponse) String() string { return proto.CompactTextString(m) } -func (*LoadBalanceResponse) ProtoMessage() {} -func (*LoadBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -type isLoadBalanceResponse_LoadBalanceResponseType interface { - isLoadBalanceResponse_LoadBalanceResponseType() -} - -type LoadBalanceResponse_InitialResponse struct { - InitialResponse *InitialLoadBalanceResponse `protobuf:"bytes,1,opt,name=initial_response,json=initialResponse,oneof"` -} -type LoadBalanceResponse_ServerList struct { - ServerList *ServerList `protobuf:"bytes,2,opt,name=server_list,json=serverList,oneof"` -} - -func (*LoadBalanceResponse_InitialResponse) isLoadBalanceResponse_LoadBalanceResponseType() {} -func (*LoadBalanceResponse_ServerList) isLoadBalanceResponse_LoadBalanceResponseType() {} - -func (m *LoadBalanceResponse) GetLoadBalanceResponseType() isLoadBalanceResponse_LoadBalanceResponseType { - if m != nil { - return m.LoadBalanceResponseType - } - return nil -} - -func (m *LoadBalanceResponse) GetInitialResponse() *InitialLoadBalanceResponse { - if x, ok := m.GetLoadBalanceResponseType().(*LoadBalanceResponse_InitialResponse); ok { - return x.InitialResponse - } - return nil -} - -func (m *LoadBalanceResponse) GetServerList() *ServerList { - if x, ok := m.GetLoadBalanceResponseType().(*LoadBalanceResponse_ServerList); ok { - return x.ServerList - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*LoadBalanceResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _LoadBalanceResponse_OneofMarshaler, _LoadBalanceResponse_OneofUnmarshaler, _LoadBalanceResponse_OneofSizer, []interface{}{ - (*LoadBalanceResponse_InitialResponse)(nil), - (*LoadBalanceResponse_ServerList)(nil), - } -} - -func _LoadBalanceResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*LoadBalanceResponse) - // load_balance_response_type - switch x := m.LoadBalanceResponseType.(type) { - case *LoadBalanceResponse_InitialResponse: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.InitialResponse); err != nil { - return err - } - case *LoadBalanceResponse_ServerList: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.ServerList); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("LoadBalanceResponse.LoadBalanceResponseType has unexpected type %T", x) - } - return nil -} - -func _LoadBalanceResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*LoadBalanceResponse) - switch tag { - case 1: // load_balance_response_type.initial_response - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitialLoadBalanceResponse) - err := b.DecodeMessage(msg) - m.LoadBalanceResponseType = &LoadBalanceResponse_InitialResponse{msg} - return true, err - case 2: // load_balance_response_type.server_list - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ServerList) - err := b.DecodeMessage(msg) - m.LoadBalanceResponseType = &LoadBalanceResponse_ServerList{msg} - return true, err - default: - return false, nil - } -} - -func _LoadBalanceResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*LoadBalanceResponse) - // load_balance_response_type - switch x := m.LoadBalanceResponseType.(type) { - case *LoadBalanceResponse_InitialResponse: - s := proto.Size(x.InitialResponse) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *LoadBalanceResponse_ServerList: - s := proto.Size(x.ServerList) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type InitialLoadBalanceResponse struct { - // This is an application layer redirect that indicates the client should use - // the specified server for load balancing. When this field is non-empty in - // the response, the client should open a separate connection to the - // load_balancer_delegate and call the BalanceLoad method. Its length should - // be less than 64 bytes. - LoadBalancerDelegate string `protobuf:"bytes,1,opt,name=load_balancer_delegate,json=loadBalancerDelegate" json:"load_balancer_delegate,omitempty"` - // This interval defines how often the client should send the client stats - // to the load balancer. Stats should only be reported when the duration is - // positive. - ClientStatsReportInterval *Duration `protobuf:"bytes,2,opt,name=client_stats_report_interval,json=clientStatsReportInterval" json:"client_stats_report_interval,omitempty"` -} - -func (m *InitialLoadBalanceResponse) Reset() { *m = InitialLoadBalanceResponse{} } -func (m *InitialLoadBalanceResponse) String() string { return proto.CompactTextString(m) } -func (*InitialLoadBalanceResponse) ProtoMessage() {} -func (*InitialLoadBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *InitialLoadBalanceResponse) GetLoadBalancerDelegate() string { - if m != nil { - return m.LoadBalancerDelegate - } - return "" -} - -func (m *InitialLoadBalanceResponse) GetClientStatsReportInterval() *Duration { - if m != nil { - return m.ClientStatsReportInterval - } - return nil -} - -type ServerList struct { - // Contains a list of servers selected by the load balancer. The list will - // be updated when server resolutions change or as needed to balance load - // across more servers. The client should consume the server list in order - // unless instructed otherwise via the client_config. - Servers []*Server `protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"` -} - -func (m *ServerList) Reset() { *m = ServerList{} } -func (m *ServerList) String() string { return proto.CompactTextString(m) } -func (*ServerList) ProtoMessage() {} -func (*ServerList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *ServerList) GetServers() []*Server { - if m != nil { - return m.Servers - } - return nil -} - -// Contains server information. When none of the [drop_for_*] fields are true, -// use the other fields. When drop_for_rate_limiting is true, ignore all other -// fields. Use drop_for_load_balancing only when it is true and -// drop_for_rate_limiting is false. -type Server struct { - // A resolved address for the server, serialized in network-byte-order. It may - // either be an IPv4 or IPv6 address. - IpAddress []byte `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - // A resolved port number for the server. - Port int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` - // An opaque but printable token given to the frontend for each pick. All - // frontend requests for that pick must include the token in its initial - // metadata. The token is used by the backend to verify the request and to - // allow the backend to report load to the gRPC LB system. - // - // Its length is variable but less than 50 bytes. - LoadBalanceToken string `protobuf:"bytes,3,opt,name=load_balance_token,json=loadBalanceToken" json:"load_balance_token,omitempty"` - // Indicates whether this particular request should be dropped by the client - // for rate limiting. - DropForRateLimiting bool `protobuf:"varint,4,opt,name=drop_for_rate_limiting,json=dropForRateLimiting" json:"drop_for_rate_limiting,omitempty"` - // Indicates whether this particular request should be dropped by the client - // for load balancing. - DropForLoadBalancing bool `protobuf:"varint,5,opt,name=drop_for_load_balancing,json=dropForLoadBalancing" json:"drop_for_load_balancing,omitempty"` -} - -func (m *Server) Reset() { *m = Server{} } -func (m *Server) String() string { return proto.CompactTextString(m) } -func (*Server) ProtoMessage() {} -func (*Server) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -func (m *Server) GetIpAddress() []byte { - if m != nil { - return m.IpAddress - } - return nil -} - -func (m *Server) GetPort() int32 { - if m != nil { - return m.Port - } - return 0 -} - -func (m *Server) GetLoadBalanceToken() string { - if m != nil { - return m.LoadBalanceToken - } - return "" -} - -func (m *Server) GetDropForRateLimiting() bool { - if m != nil { - return m.DropForRateLimiting - } - return false -} - -func (m *Server) GetDropForLoadBalancing() bool { - if m != nil { - return m.DropForLoadBalancing - } - return false -} - -func init() { - proto.RegisterType((*Duration)(nil), "grpc.lb.v1.Duration") - proto.RegisterType((*Timestamp)(nil), "grpc.lb.v1.Timestamp") - proto.RegisterType((*LoadBalanceRequest)(nil), "grpc.lb.v1.LoadBalanceRequest") - proto.RegisterType((*InitialLoadBalanceRequest)(nil), "grpc.lb.v1.InitialLoadBalanceRequest") - proto.RegisterType((*ClientStats)(nil), "grpc.lb.v1.ClientStats") - proto.RegisterType((*LoadBalanceResponse)(nil), "grpc.lb.v1.LoadBalanceResponse") - proto.RegisterType((*InitialLoadBalanceResponse)(nil), "grpc.lb.v1.InitialLoadBalanceResponse") - proto.RegisterType((*ServerList)(nil), "grpc.lb.v1.ServerList") - proto.RegisterType((*Server)(nil), "grpc.lb.v1.Server") -} - -func init() { proto.RegisterFile("grpc_lb_v1/messages/messages.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 709 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x4e, 0x1b, 0x3b, - 0x10, 0x26, 0x27, 0x01, 0x92, 0x09, 0x3a, 0xe4, 0x98, 0x1c, 0x08, 0x14, 0x24, 0xba, 0x52, 0x69, - 0x54, 0xd1, 0x20, 0xa0, 0xbd, 0xe8, 0xcf, 0x45, 0x1b, 0x10, 0x0a, 0x2d, 0x17, 0x95, 0x43, 0x55, - 0xa9, 0x52, 0x65, 0x39, 0xd9, 0x21, 0x58, 0x6c, 0xec, 0xad, 0xed, 0x04, 0xf5, 0x11, 0xfa, 0x28, - 0x7d, 0x8c, 0xaa, 0xcf, 0xd0, 0xf7, 0xa9, 0xd6, 0xbb, 0x9b, 0x5d, 0x20, 0x80, 0x7a, 0x67, 0x8f, - 0xbf, 0xf9, 0xbe, 0xf1, 0xac, 0xbf, 0x59, 0xf0, 0x06, 0x3a, 0xec, 0xb3, 0xa0, 0xc7, 0xc6, 0xbb, - 0x3b, 0x43, 0x34, 0x86, 0x0f, 0xd0, 0x4c, 0x16, 0xad, 0x50, 0x2b, 0xab, 0x08, 0x44, 0x98, 0x56, - 0xd0, 0x6b, 0x8d, 0x77, 0xbd, 0x97, 0x50, 0x3e, 0x1c, 0x69, 0x6e, 0x85, 0x92, 0xa4, 0x01, 0xf3, - 0x06, 0xfb, 0x4a, 0xfa, 0xa6, 0x51, 0xd8, 0x2c, 0x34, 0x8b, 0x34, 0xdd, 0x92, 0x3a, 0xcc, 0x4a, - 0x2e, 0x95, 0x69, 0xfc, 0xb3, 0x59, 0x68, 0xce, 0xd2, 0x78, 0xe3, 0xbd, 0x82, 0xca, 0xa9, 0x18, - 0xa2, 0xb1, 0x7c, 0x18, 0xfe, 0x75, 0xf2, 0xcf, 0x02, 0x90, 0x13, 0xc5, 0xfd, 0x36, 0x0f, 0xb8, - 0xec, 0x23, 0xc5, 0xaf, 0x23, 0x34, 0x96, 0x7c, 0x80, 0x45, 0x21, 0x85, 0x15, 0x3c, 0x60, 0x3a, - 0x0e, 0x39, 0xba, 0xea, 0xde, 0xa3, 0x56, 0x56, 0x75, 0xeb, 0x38, 0x86, 0xdc, 0xcc, 0xef, 0xcc, - 0xd0, 0x7f, 0x93, 0xfc, 0x94, 0xf1, 0x35, 0x2c, 0xf4, 0x03, 0x81, 0xd2, 0x32, 0x63, 0xb9, 0x8d, - 0xab, 0xa8, 0xee, 0xad, 0xe4, 0xe9, 0x0e, 0xdc, 0x79, 0x37, 0x3a, 0xee, 0xcc, 0xd0, 0x6a, 0x3f, - 0xdb, 0xb6, 0x1f, 0xc0, 0x6a, 0xa0, 0xb8, 0xcf, 0x7a, 0xb1, 0x4c, 0x5a, 0x14, 0xb3, 0xdf, 0x42, - 0xf4, 0x76, 0x60, 0xf5, 0xd6, 0x4a, 0x08, 0x81, 0x92, 0xe4, 0x43, 0x74, 0xe5, 0x57, 0xa8, 0x5b, - 0x7b, 0xdf, 0x4b, 0x50, 0xcd, 0x89, 0x91, 0x7d, 0xa8, 0xd8, 0xb4, 0x83, 0xc9, 0x3d, 0xff, 0xcf, - 0x17, 0x36, 0x69, 0x2f, 0xcd, 0x70, 0xe4, 0x09, 0xfc, 0x27, 0x47, 0x43, 0xd6, 0xe7, 0x41, 0x60, - 0xa2, 0x3b, 0x69, 0x8b, 0xbe, 0xbb, 0x55, 0x91, 0x2e, 0xca, 0xd1, 0xf0, 0x20, 0x8a, 0x77, 0xe3, - 0x30, 0xd9, 0x06, 0x92, 0x61, 0xcf, 0x84, 0x14, 0xe6, 0x1c, 0xfd, 0x46, 0xd1, 0x81, 0x6b, 0x29, - 0xf8, 0x28, 0x89, 0x13, 0x06, 0xad, 0x9b, 0x68, 0x76, 0x29, 0xec, 0x39, 0xf3, 0xb5, 0x0a, 0xd9, - 0x99, 0xd2, 0x4c, 0x73, 0x8b, 0x2c, 0x10, 0x43, 0x61, 0x85, 0x1c, 0x34, 0x4a, 0x8e, 0xe9, 0xf1, - 0x75, 0xa6, 0x4f, 0xc2, 0x9e, 0x1f, 0x6a, 0x15, 0x1e, 0x29, 0x4d, 0xb9, 0xc5, 0x93, 0x04, 0x4e, - 0x38, 0xec, 0xdc, 0x2b, 0x90, 0x6b, 0x77, 0xa4, 0x30, 0xeb, 0x14, 0x9a, 0x77, 0x28, 0x64, 0xbd, - 0x8f, 0x24, 0xbe, 0xc0, 0xd3, 0xdb, 0x24, 0x92, 0x67, 0x70, 0xc6, 0x45, 0x80, 0x3e, 0xb3, 0x8a, - 0x19, 0x94, 0x7e, 0x63, 0xce, 0x09, 0x6c, 0x4d, 0x13, 0x88, 0x3f, 0xd5, 0x91, 0xc3, 0x9f, 0xaa, - 0x2e, 0x4a, 0x9f, 0x74, 0xe0, 0xe1, 0x14, 0xfa, 0x0b, 0xa9, 0x2e, 0x25, 0xd3, 0xd8, 0x47, 0x31, - 0x46, 0xbf, 0x31, 0xef, 0x28, 0x37, 0xae, 0x53, 0xbe, 0x8f, 0x50, 0x34, 0x01, 0x79, 0xbf, 0x0a, - 0xb0, 0x74, 0xe5, 0xd9, 0x98, 0x50, 0x49, 0x83, 0xa4, 0x0b, 0xb5, 0xcc, 0x01, 0x71, 0x2c, 0x79, - 0x1a, 0x5b, 0xf7, 0x59, 0x20, 0x46, 0x77, 0x66, 0xe8, 0xe2, 0xc4, 0x03, 0x09, 0xe9, 0x0b, 0xa8, - 0x1a, 0xd4, 0x63, 0xd4, 0x2c, 0x10, 0xc6, 0x26, 0x1e, 0x58, 0xce, 0xf3, 0x75, 0xdd, 0xf1, 0x89, - 0x70, 0x1e, 0x02, 0x33, 0xd9, 0xb5, 0xd7, 0x61, 0xed, 0x9a, 0x03, 0x62, 0xce, 0xd8, 0x02, 0x3f, - 0x0a, 0xb0, 0x76, 0x7b, 0x29, 0xe4, 0x19, 0x2c, 0xe7, 0x93, 0x35, 0xf3, 0x31, 0xc0, 0x01, 0xb7, - 0xa9, 0x2d, 0xea, 0x41, 0x96, 0xa4, 0x0f, 0x93, 0x33, 0xf2, 0x11, 0xd6, 0xf3, 0x96, 0x65, 0x1a, - 0x43, 0xa5, 0x2d, 0x13, 0xd2, 0xa2, 0x1e, 0xf3, 0x20, 0x29, 0xbf, 0x9e, 0x2f, 0x3f, 0x1d, 0x62, - 0x74, 0x35, 0xe7, 0x5e, 0xea, 0xf2, 0x8e, 0x93, 0x34, 0xef, 0x0d, 0x40, 0x76, 0x4b, 0xb2, 0x1d, - 0x0d, 0xac, 0x68, 0x17, 0x0d, 0xac, 0x62, 0xb3, 0xba, 0x47, 0x6e, 0xb6, 0x83, 0xa6, 0x90, 0x77, - 0xa5, 0x72, 0xb1, 0x56, 0xf2, 0x7e, 0x17, 0x60, 0x2e, 0x3e, 0x21, 0x1b, 0x00, 0x22, 0x64, 0xdc, - 0xf7, 0x35, 0x9a, 0x78, 0xe4, 0x2d, 0xd0, 0x8a, 0x08, 0xdf, 0xc6, 0x81, 0xc8, 0xfd, 0x91, 0x76, - 0x32, 0xf3, 0xdc, 0x3a, 0x32, 0xe3, 0x95, 0x4e, 0x5a, 0x75, 0x81, 0xd2, 0x99, 0xb1, 0x42, 0x6b, - 0xb9, 0x46, 0x9c, 0x46, 0x71, 0xb2, 0x0f, 0xcb, 0x77, 0x98, 0xae, 0x4c, 0x97, 0xfc, 0x29, 0x06, - 0x7b, 0x0e, 0x2b, 0x77, 0x19, 0xa9, 0x4c, 0xeb, 0xfe, 0x14, 0xd3, 0xb4, 0xe1, 0x73, 0x39, 0xfd, - 0x47, 0xf4, 0xe6, 0xdc, 0x4f, 0x62, 0xff, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x36, 0x86, - 0xa6, 0x4a, 0x06, 0x00, 0x00, -} diff --git a/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.proto b/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.proto deleted file mode 100644 index 42d99c1..0000000 --- a/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/messages/messages.proto +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright 2016 gRPC authors. -// -// 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. - -syntax = "proto3"; - -package grpc.lb.v1; -option go_package = "google.golang.org/grpc/grpclb/grpc_lb_v1/messages"; - -message Duration { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. - int64 seconds = 1; - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - int32 nanos = 2; -} - -message Timestamp { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - int32 nanos = 2; -} - -message LoadBalanceRequest { - oneof load_balance_request_type { - // This message should be sent on the first request to the load balancer. - InitialLoadBalanceRequest initial_request = 1; - - // The client stats should be periodically reported to the load balancer - // based on the duration defined in the InitialLoadBalanceResponse. - ClientStats client_stats = 2; - } -} - -message InitialLoadBalanceRequest { - // Name of load balanced service (IE, balancer.service.com) - // length should be less than 256 bytes. - string name = 1; -} - -// Contains client level statistics that are useful to load balancing. Each -// count except the timestamp should be reset to zero after reporting the stats. -message ClientStats { - // The timestamp of generating the report. - Timestamp timestamp = 1; - - // The total number of RPCs that started. - int64 num_calls_started = 2; - - // The total number of RPCs that finished. - int64 num_calls_finished = 3; - - // The total number of RPCs that were dropped by the client because of rate - // limiting. - int64 num_calls_finished_with_drop_for_rate_limiting = 4; - - // The total number of RPCs that were dropped by the client because of load - // balancing. - int64 num_calls_finished_with_drop_for_load_balancing = 5; - - // The total number of RPCs that failed to reach a server except dropped RPCs. - int64 num_calls_finished_with_client_failed_to_send = 6; - - // The total number of RPCs that finished and are known to have been received - // by a server. - int64 num_calls_finished_known_received = 7; -} - -message LoadBalanceResponse { - oneof load_balance_response_type { - // This message should be sent on the first response to the client. - InitialLoadBalanceResponse initial_response = 1; - - // Contains the list of servers selected by the load balancer. The client - // should send requests to these servers in the specified order. - ServerList server_list = 2; - } -} - -message InitialLoadBalanceResponse { - // This is an application layer redirect that indicates the client should use - // the specified server for load balancing. When this field is non-empty in - // the response, the client should open a separate connection to the - // load_balancer_delegate and call the BalanceLoad method. Its length should - // be less than 64 bytes. - string load_balancer_delegate = 1; - - // This interval defines how often the client should send the client stats - // to the load balancer. Stats should only be reported when the duration is - // positive. - Duration client_stats_report_interval = 2; -} - -message ServerList { - // Contains a list of servers selected by the load balancer. The list will - // be updated when server resolutions change or as needed to balance load - // across more servers. The client should consume the server list in order - // unless instructed otherwise via the client_config. - repeated Server servers = 1; - - // Was google.protobuf.Duration expiration_interval. - reserved 3; -} - -// Contains server information. When none of the [drop_for_*] fields are true, -// use the other fields. When drop_for_rate_limiting is true, ignore all other -// fields. Use drop_for_load_balancing only when it is true and -// drop_for_rate_limiting is false. -message Server { - // A resolved address for the server, serialized in network-byte-order. It may - // either be an IPv4 or IPv6 address. - bytes ip_address = 1; - - // A resolved port number for the server. - int32 port = 2; - - // An opaque but printable token given to the frontend for each pick. All - // frontend requests for that pick must include the token in its initial - // metadata. The token is used by the backend to verify the request and to - // allow the backend to report load to the gRPC LB system. - // - // Its length is variable but less than 50 bytes. - string load_balance_token = 3; - - // Indicates whether this particular request should be dropped by the client - // for rate limiting. - bool drop_for_rate_limiting = 4; - - // Indicates whether this particular request should be dropped by the client - // for load balancing. - bool drop_for_load_balancing = 5; -} diff --git a/vendor/google.golang.org/grpc/grpclb_picker.go b/vendor/google.golang.org/grpc/grpclb_picker.go deleted file mode 100644 index 872c7cc..0000000 --- a/vendor/google.golang.org/grpc/grpclb_picker.go +++ /dev/null @@ -1,159 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * 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 grpc - -import ( - "sync" - "sync/atomic" - - "golang.org/x/net/context" - "google.golang.org/grpc/balancer" - "google.golang.org/grpc/codes" - lbpb "google.golang.org/grpc/grpclb/grpc_lb_v1/messages" - "google.golang.org/grpc/status" -) - -type rpcStats struct { - NumCallsStarted int64 - NumCallsFinished int64 - NumCallsFinishedWithDropForRateLimiting int64 - NumCallsFinishedWithDropForLoadBalancing int64 - NumCallsFinishedWithClientFailedToSend int64 - NumCallsFinishedKnownReceived int64 -} - -// toClientStats converts rpcStats to lbpb.ClientStats, and clears rpcStats. -func (s *rpcStats) toClientStats() *lbpb.ClientStats { - stats := &lbpb.ClientStats{ - NumCallsStarted: atomic.SwapInt64(&s.NumCallsStarted, 0), - NumCallsFinished: atomic.SwapInt64(&s.NumCallsFinished, 0), - NumCallsFinishedWithDropForRateLimiting: atomic.SwapInt64(&s.NumCallsFinishedWithDropForRateLimiting, 0), - NumCallsFinishedWithDropForLoadBalancing: atomic.SwapInt64(&s.NumCallsFinishedWithDropForLoadBalancing, 0), - NumCallsFinishedWithClientFailedToSend: atomic.SwapInt64(&s.NumCallsFinishedWithClientFailedToSend, 0), - NumCallsFinishedKnownReceived: atomic.SwapInt64(&s.NumCallsFinishedKnownReceived, 0), - } - return stats -} - -func (s *rpcStats) dropForRateLimiting() { - atomic.AddInt64(&s.NumCallsStarted, 1) - atomic.AddInt64(&s.NumCallsFinishedWithDropForRateLimiting, 1) - atomic.AddInt64(&s.NumCallsFinished, 1) -} - -func (s *rpcStats) dropForLoadBalancing() { - atomic.AddInt64(&s.NumCallsStarted, 1) - atomic.AddInt64(&s.NumCallsFinishedWithDropForLoadBalancing, 1) - atomic.AddInt64(&s.NumCallsFinished, 1) -} - -func (s *rpcStats) failedToSend() { - atomic.AddInt64(&s.NumCallsStarted, 1) - atomic.AddInt64(&s.NumCallsFinishedWithClientFailedToSend, 1) - atomic.AddInt64(&s.NumCallsFinished, 1) -} - -func (s *rpcStats) knownReceived() { - atomic.AddInt64(&s.NumCallsStarted, 1) - atomic.AddInt64(&s.NumCallsFinishedKnownReceived, 1) - atomic.AddInt64(&s.NumCallsFinished, 1) -} - -type errPicker struct { - // Pick always returns this err. - err error -} - -func (p *errPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - return nil, nil, p.err -} - -// rrPicker does roundrobin on subConns. It's typically used when there's no -// response from remote balancer, and grpclb falls back to the resolved -// backends. -// -// It guaranteed that len(subConns) > 0. -type rrPicker struct { - mu sync.Mutex - subConns []balancer.SubConn // The subConns that were READY when taking the snapshot. - subConnsNext int -} - -func (p *rrPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - p.mu.Lock() - defer p.mu.Unlock() - sc := p.subConns[p.subConnsNext] - p.subConnsNext = (p.subConnsNext + 1) % len(p.subConns) - return sc, nil, nil -} - -// lbPicker does two layers of picks: -// -// First layer: roundrobin on all servers in serverList, including drops and backends. -// - If it picks a drop, the RPC will fail as being dropped. -// - If it picks a backend, do a second layer pick to pick the real backend. -// -// Second layer: roundrobin on all READY backends. -// -// It's guaranteed that len(serverList) > 0. -type lbPicker struct { - mu sync.Mutex - serverList []*lbpb.Server - serverListNext int - subConns []balancer.SubConn // The subConns that were READY when taking the snapshot. - subConnsNext int - - stats *rpcStats -} - -func (p *lbPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - p.mu.Lock() - defer p.mu.Unlock() - - // Layer one roundrobin on serverList. - s := p.serverList[p.serverListNext] - p.serverListNext = (p.serverListNext + 1) % len(p.serverList) - - // If it's a drop, return an error and fail the RPC. - if s.DropForRateLimiting { - p.stats.dropForRateLimiting() - return nil, nil, status.Errorf(codes.Unavailable, "request dropped by grpclb") - } - if s.DropForLoadBalancing { - p.stats.dropForLoadBalancing() - return nil, nil, status.Errorf(codes.Unavailable, "request dropped by grpclb") - } - - // If not a drop but there's no ready subConns. - if len(p.subConns) <= 0 { - return nil, nil, balancer.ErrNoSubConnAvailable - } - - // Return the next ready subConn in the list, also collect rpc stats. - sc := p.subConns[p.subConnsNext] - p.subConnsNext = (p.subConnsNext + 1) % len(p.subConns) - done := func(info balancer.DoneInfo) { - if !info.BytesSent { - p.stats.failedToSend() - } else if info.BytesReceived { - p.stats.knownReceived() - } - } - return sc, done, nil -} diff --git a/vendor/google.golang.org/grpc/grpclb_remote_balancer.go b/vendor/google.golang.org/grpc/grpclb_remote_balancer.go deleted file mode 100644 index 1b580df..0000000 --- a/vendor/google.golang.org/grpc/grpclb_remote_balancer.go +++ /dev/null @@ -1,254 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * 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 grpc - -import ( - "fmt" - "net" - "reflect" - "time" - - "golang.org/x/net/context" - "google.golang.org/grpc/balancer" - "google.golang.org/grpc/connectivity" - lbpb "google.golang.org/grpc/grpclb/grpc_lb_v1/messages" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/resolver" -) - -// processServerList updates balaner's internal state, create/remove SubConns -// and regenerates picker using the received serverList. -func (lb *lbBalancer) processServerList(l *lbpb.ServerList) { - grpclog.Infof("lbBalancer: processing server list: %+v", l) - lb.mu.Lock() - defer lb.mu.Unlock() - - // Set serverListReceived to true so fallback will not take effect if it has - // not hit timeout. - lb.serverListReceived = true - - // If the new server list == old server list, do nothing. - if reflect.DeepEqual(lb.fullServerList, l.Servers) { - grpclog.Infof("lbBalancer: new serverlist same as the previous one, ignoring") - return - } - lb.fullServerList = l.Servers - - var backendAddrs []resolver.Address - for _, s := range l.Servers { - if s.DropForLoadBalancing || s.DropForRateLimiting { - continue - } - - md := metadata.Pairs(lbTokeyKey, s.LoadBalanceToken) - ip := net.IP(s.IpAddress) - ipStr := ip.String() - if ip.To4() == nil { - // Add square brackets to ipv6 addresses, otherwise net.Dial() and - // net.SplitHostPort() will return too many colons error. - ipStr = fmt.Sprintf("[%s]", ipStr) - } - addr := resolver.Address{ - Addr: fmt.Sprintf("%s:%d", ipStr, s.Port), - Metadata: &md, - } - - backendAddrs = append(backendAddrs, addr) - } - - // Call refreshSubConns to create/remove SubConns. - backendsUpdated := lb.refreshSubConns(backendAddrs) - // If no backend was updated, no SubConn will be newed/removed. But since - // the full serverList was different, there might be updates in drops or - // pick weights(different number of duplicates). We need to update picker - // with the fulllist. - if !backendsUpdated { - lb.regeneratePicker() - lb.cc.UpdateBalancerState(lb.state, lb.picker) - } -} - -// refreshSubConns creates/removes SubConns with backendAddrs. It returns a bool -// indicating whether the backendAddrs are different from the cached -// backendAddrs (whether any SubConn was newed/removed). -// Caller must hold lb.mu. -func (lb *lbBalancer) refreshSubConns(backendAddrs []resolver.Address) bool { - lb.backendAddrs = nil - var backendsUpdated bool - // addrsSet is the set converted from backendAddrs, it's used to quick - // lookup for an address. - addrsSet := make(map[resolver.Address]struct{}) - // Create new SubConns. - for _, addr := range backendAddrs { - addrWithoutMD := addr - addrWithoutMD.Metadata = nil - addrsSet[addrWithoutMD] = struct{}{} - lb.backendAddrs = append(lb.backendAddrs, addrWithoutMD) - - if _, ok := lb.subConns[addrWithoutMD]; !ok { - backendsUpdated = true - - // Use addrWithMD to create the SubConn. - sc, err := lb.cc.NewSubConn([]resolver.Address{addr}, balancer.NewSubConnOptions{}) - if err != nil { - grpclog.Warningf("roundrobinBalancer: failed to create new SubConn: %v", err) - continue - } - lb.subConns[addrWithoutMD] = sc // Use the addr without MD as key for the map. - lb.scStates[sc] = connectivity.Idle - sc.Connect() - } - } - - for a, sc := range lb.subConns { - // a was removed by resolver. - if _, ok := addrsSet[a]; !ok { - backendsUpdated = true - - lb.cc.RemoveSubConn(sc) - delete(lb.subConns, a) - // Keep the state of this sc in b.scStates until sc's state becomes Shutdown. - // The entry will be deleted in HandleSubConnStateChange. - } - } - - return backendsUpdated -} - -func (lb *lbBalancer) readServerList(s *balanceLoadClientStream) error { - for { - reply, err := s.Recv() - if err != nil { - return fmt.Errorf("grpclb: failed to recv server list: %v", err) - } - if serverList := reply.GetServerList(); serverList != nil { - lb.processServerList(serverList) - } - } -} - -func (lb *lbBalancer) sendLoadReport(s *balanceLoadClientStream, interval time.Duration) { - ticker := time.NewTicker(interval) - defer ticker.Stop() - for { - select { - case <-ticker.C: - case <-s.Context().Done(): - return - } - stats := lb.clientStats.toClientStats() - t := time.Now() - stats.Timestamp = &lbpb.Timestamp{ - Seconds: t.Unix(), - Nanos: int32(t.Nanosecond()), - } - if err := s.Send(&lbpb.LoadBalanceRequest{ - LoadBalanceRequestType: &lbpb.LoadBalanceRequest_ClientStats{ - ClientStats: stats, - }, - }); err != nil { - return - } - } -} -func (lb *lbBalancer) callRemoteBalancer() error { - lbClient := &loadBalancerClient{cc: lb.ccRemoteLB} - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - stream, err := lbClient.BalanceLoad(ctx, FailFast(false)) - if err != nil { - return fmt.Errorf("grpclb: failed to perform RPC to the remote balancer %v", err) - } - - // grpclb handshake on the stream. - initReq := &lbpb.LoadBalanceRequest{ - LoadBalanceRequestType: &lbpb.LoadBalanceRequest_InitialRequest{ - InitialRequest: &lbpb.InitialLoadBalanceRequest{ - Name: lb.target, - }, - }, - } - if err := stream.Send(initReq); err != nil { - return fmt.Errorf("grpclb: failed to send init request: %v", err) - } - reply, err := stream.Recv() - if err != nil { - return fmt.Errorf("grpclb: failed to recv init response: %v", err) - } - initResp := reply.GetInitialResponse() - if initResp == nil { - return fmt.Errorf("grpclb: reply from remote balancer did not include initial response") - } - if initResp.LoadBalancerDelegate != "" { - return fmt.Errorf("grpclb: Delegation is not supported") - } - - go func() { - if d := convertDuration(initResp.ClientStatsReportInterval); d > 0 { - lb.sendLoadReport(stream, d) - } - }() - return lb.readServerList(stream) -} - -func (lb *lbBalancer) watchRemoteBalancer() { - for { - err := lb.callRemoteBalancer() - select { - case <-lb.doneCh: - return - default: - if err != nil { - grpclog.Error(err) - } - } - - } -} - -func (lb *lbBalancer) dialRemoteLB(remoteLBName string) { - var dopts []DialOption - if creds := lb.opt.DialCreds; creds != nil { - if err := creds.OverrideServerName(remoteLBName); err == nil { - dopts = append(dopts, WithTransportCredentials(creds)) - } else { - grpclog.Warningf("grpclb: failed to override the server name in the credentials: %v, using Insecure", err) - dopts = append(dopts, WithInsecure()) - } - } else { - dopts = append(dopts, WithInsecure()) - } - if lb.opt.Dialer != nil { - // WithDialer takes a different type of function, so we instead use a - // special DialOption here. - dopts = append(dopts, withContextDialer(lb.opt.Dialer)) - } - // Explicitly set pickfirst as the balancer. - dopts = append(dopts, WithBalancerName(PickFirstBalancerName)) - dopts = append(dopts, withResolverBuilder(lb.manualResolver)) - // Dial using manualResolver.Scheme, which is a random scheme generated - // when init grpclb. The target name is not important. - cc, err := Dial("grpclb:///grpclb.server", dopts...) - if err != nil { - grpclog.Fatalf("failed to dial: %v", err) - } - lb.ccRemoteLB = cc - go lb.watchRemoteBalancer() -} diff --git a/vendor/google.golang.org/grpc/grpclb_util.go b/vendor/google.golang.org/grpc/grpclb_util.go deleted file mode 100644 index 93ab2db..0000000 --- a/vendor/google.golang.org/grpc/grpclb_util.go +++ /dev/null @@ -1,90 +0,0 @@ -/* - * - * Copyright 2016 gRPC authors. - * - * 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 grpc - -import ( - "google.golang.org/grpc/balancer" - "google.golang.org/grpc/resolver" -) - -// The parent ClientConn should re-resolve when grpclb loses connection to the -// remote balancer. When the ClientConn inside grpclb gets a TransientFailure, -// it calls lbManualResolver.ResolveNow(), which calls parent ClientConn's -// ResolveNow, and eventually results in re-resolve happening in parent -// ClientConn's resolver (DNS for example). -// -// parent -// ClientConn -// +-----------------------------------------------------------------+ -// | parent +---------------------------------+ | -// | DNS ClientConn | grpclb | | -// | resolver balancerWrapper | | | -// | + + | grpclb grpclb | | -// | | | | ManualResolver ClientConn | | -// | | | | + + | | -// | | | | | | Transient | | -// | | | | | | Failure | | -// | | | | | <--------- | | | -// | | | <--------------- | ResolveNow | | | -// | | <--------- | ResolveNow | | | | | -// | | ResolveNow | | | | | | -// | | | | | | | | -// | + + | + + | | -// | +---------------------------------+ | -// +-----------------------------------------------------------------+ - -// lbManualResolver is used by the ClientConn inside grpclb. It's a manual -// resolver with a special ResolveNow() function. -// -// When ResolveNow() is called, it calls ResolveNow() on the parent ClientConn, -// so when grpclb client lose contact with remote balancers, the parent -// ClientConn's resolver will re-resolve. -type lbManualResolver struct { - scheme string - ccr resolver.ClientConn - - ccb balancer.ClientConn -} - -func (r *lbManualResolver) Build(_ resolver.Target, cc resolver.ClientConn, _ resolver.BuildOption) (resolver.Resolver, error) { - r.ccr = cc - return r, nil -} - -func (r *lbManualResolver) Scheme() string { - return r.scheme -} - -// ResolveNow calls resolveNow on the parent ClientConn. -func (r *lbManualResolver) ResolveNow(o resolver.ResolveNowOption) { - r.ccb.ResolveNow(o) -} - -// Close is a noop for Resolver. -func (*lbManualResolver) Close() {} - -// NewAddress calls cc.NewAddress. -func (r *lbManualResolver) NewAddress(addrs []resolver.Address) { - r.ccr.NewAddress(addrs) -} - -// NewServiceConfig calls cc.NewServiceConfig. -func (r *lbManualResolver) NewServiceConfig(sc string) { - r.ccr.NewServiceConfig(sc) -} diff --git a/vendor/google.golang.org/grpc/grpclog/component.go b/vendor/google.golang.org/grpc/grpclog/component.go new file mode 100644 index 0000000..8358dd6 --- /dev/null +++ b/vendor/google.golang.org/grpc/grpclog/component.go @@ -0,0 +1,117 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 grpclog + +import ( + "fmt" + + "google.golang.org/grpc/internal/grpclog" +) + +// componentData records the settings for a component. +type componentData struct { + name string +} + +var cache = map[string]*componentData{} + +func (c *componentData) InfoDepth(depth int, args ...interface{}) { + args = append([]interface{}{"[" + string(c.name) + "]"}, args...) + grpclog.InfoDepth(depth+1, args...) +} + +func (c *componentData) WarningDepth(depth int, args ...interface{}) { + args = append([]interface{}{"[" + string(c.name) + "]"}, args...) + grpclog.WarningDepth(depth+1, args...) +} + +func (c *componentData) ErrorDepth(depth int, args ...interface{}) { + args = append([]interface{}{"[" + string(c.name) + "]"}, args...) + grpclog.ErrorDepth(depth+1, args...) +} + +func (c *componentData) FatalDepth(depth int, args ...interface{}) { + args = append([]interface{}{"[" + string(c.name) + "]"}, args...) + grpclog.FatalDepth(depth+1, args...) +} + +func (c *componentData) Info(args ...interface{}) { + c.InfoDepth(1, args...) +} + +func (c *componentData) Warning(args ...interface{}) { + c.WarningDepth(1, args...) +} + +func (c *componentData) Error(args ...interface{}) { + c.ErrorDepth(1, args...) +} + +func (c *componentData) Fatal(args ...interface{}) { + c.FatalDepth(1, args...) +} + +func (c *componentData) Infof(format string, args ...interface{}) { + c.InfoDepth(1, fmt.Sprintf(format, args...)) +} + +func (c *componentData) Warningf(format string, args ...interface{}) { + c.WarningDepth(1, fmt.Sprintf(format, args...)) +} + +func (c *componentData) Errorf(format string, args ...interface{}) { + c.ErrorDepth(1, fmt.Sprintf(format, args...)) +} + +func (c *componentData) Fatalf(format string, args ...interface{}) { + c.FatalDepth(1, fmt.Sprintf(format, args...)) +} + +func (c *componentData) Infoln(args ...interface{}) { + c.InfoDepth(1, args...) +} + +func (c *componentData) Warningln(args ...interface{}) { + c.WarningDepth(1, args...) +} + +func (c *componentData) Errorln(args ...interface{}) { + c.ErrorDepth(1, args...) +} + +func (c *componentData) Fatalln(args ...interface{}) { + c.FatalDepth(1, args...) +} + +func (c *componentData) V(l int) bool { + return V(l) +} + +// Component creates a new component and returns it for logging. If a component +// with the name already exists, nothing will be created and it will be +// returned. SetLoggerV2 will panic if it is called with a logger created by +// Component. +func Component(componentName string) DepthLoggerV2 { + if cData, ok := cache[componentName]; ok { + return cData + } + c := &componentData{componentName} + cache[componentName] = c + return c +} diff --git a/vendor/google.golang.org/grpc/grpclog/grpclog.go b/vendor/google.golang.org/grpc/grpclog/grpclog.go index 16a7d88..c8bb2be 100644 --- a/vendor/google.golang.org/grpc/grpclog/grpclog.go +++ b/vendor/google.golang.org/grpc/grpclog/grpclog.go @@ -18,7 +18,7 @@ // Package grpclog defines logging for grpc. // -// All logs in transport package only go to verbose level 2. +// All logs in transport and grpclb packages only go to verbose level 2. // All logs in other packages in grpc are logged in spite of the verbosity level. // // In the default logger, @@ -26,72 +26,78 @@ // verbosity level can be set by GRPC_GO_LOG_VERBOSITY_LEVEL. package grpclog // import "google.golang.org/grpc/grpclog" -import "os" +import ( + "os" -var logger = newLoggerV2() + "google.golang.org/grpc/internal/grpclog" +) + +func init() { + SetLoggerV2(newLoggerV2()) +} // V reports whether verbosity level l is at least the requested verbose level. func V(l int) bool { - return logger.V(l) + return grpclog.Logger.V(l) } // Info logs to the INFO log. func Info(args ...interface{}) { - logger.Info(args...) + grpclog.Logger.Info(args...) } // Infof logs to the INFO log. Arguments are handled in the manner of fmt.Printf. func Infof(format string, args ...interface{}) { - logger.Infof(format, args...) + grpclog.Logger.Infof(format, args...) } // Infoln logs to the INFO log. Arguments are handled in the manner of fmt.Println. func Infoln(args ...interface{}) { - logger.Infoln(args...) + grpclog.Logger.Infoln(args...) } // Warning logs to the WARNING log. func Warning(args ...interface{}) { - logger.Warning(args...) + grpclog.Logger.Warning(args...) } // Warningf logs to the WARNING log. Arguments are handled in the manner of fmt.Printf. func Warningf(format string, args ...interface{}) { - logger.Warningf(format, args...) + grpclog.Logger.Warningf(format, args...) } // Warningln logs to the WARNING log. Arguments are handled in the manner of fmt.Println. func Warningln(args ...interface{}) { - logger.Warningln(args...) + grpclog.Logger.Warningln(args...) } // Error logs to the ERROR log. func Error(args ...interface{}) { - logger.Error(args...) + grpclog.Logger.Error(args...) } // Errorf logs to the ERROR log. Arguments are handled in the manner of fmt.Printf. func Errorf(format string, args ...interface{}) { - logger.Errorf(format, args...) + grpclog.Logger.Errorf(format, args...) } // Errorln logs to the ERROR log. Arguments are handled in the manner of fmt.Println. func Errorln(args ...interface{}) { - logger.Errorln(args...) + grpclog.Logger.Errorln(args...) } // Fatal logs to the FATAL log. Arguments are handled in the manner of fmt.Print. // It calls os.Exit() with exit code 1. func Fatal(args ...interface{}) { - logger.Fatal(args...) + grpclog.Logger.Fatal(args...) // Make sure fatal logs will exit. os.Exit(1) } // Fatalf logs to the FATAL log. Arguments are handled in the manner of fmt.Printf. -// It calles os.Exit() with exit code 1. +// It calls os.Exit() with exit code 1. func Fatalf(format string, args ...interface{}) { - logger.Fatalf(format, args...) + grpclog.Logger.Fatalf(format, args...) // Make sure fatal logs will exit. os.Exit(1) } @@ -99,25 +105,28 @@ func Fatalf(format string, args ...interface{}) { // Fatalln logs to the FATAL log. Arguments are handled in the manner of fmt.Println. // It calle os.Exit()) with exit code 1. func Fatalln(args ...interface{}) { - logger.Fatalln(args...) + grpclog.Logger.Fatalln(args...) // Make sure fatal logs will exit. os.Exit(1) } // Print prints to the logger. Arguments are handled in the manner of fmt.Print. +// // Deprecated: use Info. func Print(args ...interface{}) { - logger.Info(args...) + grpclog.Logger.Info(args...) } // Printf prints to the logger. Arguments are handled in the manner of fmt.Printf. +// // Deprecated: use Infof. func Printf(format string, args ...interface{}) { - logger.Infof(format, args...) + grpclog.Logger.Infof(format, args...) } // Println prints to the logger. Arguments are handled in the manner of fmt.Println. +// // Deprecated: use Infoln. func Println(args ...interface{}) { - logger.Infoln(args...) + grpclog.Logger.Infoln(args...) } diff --git a/vendor/google.golang.org/grpc/grpclog/logger.go b/vendor/google.golang.org/grpc/grpclog/logger.go index d03b239..ef06a48 100644 --- a/vendor/google.golang.org/grpc/grpclog/logger.go +++ b/vendor/google.golang.org/grpc/grpclog/logger.go @@ -18,7 +18,10 @@ package grpclog +import "google.golang.org/grpc/internal/grpclog" + // Logger mimics golang's standard Logger as an interface. +// // Deprecated: use LoggerV2. type Logger interface { Fatal(args ...interface{}) @@ -31,9 +34,10 @@ type Logger interface { // SetLogger sets the logger that is used in grpc. Call only from // init() functions. +// // Deprecated: use SetLoggerV2. func SetLogger(l Logger) { - logger = &loggerWrapper{Logger: l} + grpclog.Logger = &loggerWrapper{Logger: l} } // loggerWrapper wraps Logger into a LoggerV2. diff --git a/vendor/google.golang.org/grpc/grpclog/loggerv2.go b/vendor/google.golang.org/grpc/grpclog/loggerv2.go index d493257..5de66e4 100644 --- a/vendor/google.golang.org/grpc/grpclog/loggerv2.go +++ b/vendor/google.golang.org/grpc/grpclog/loggerv2.go @@ -19,11 +19,15 @@ package grpclog import ( + "encoding/json" + "fmt" "io" - "io/ioutil" "log" "os" "strconv" + "strings" + + "google.golang.org/grpc/internal/grpclog" ) // LoggerV2 does underlying logging work for grpclog. @@ -65,7 +69,11 @@ type LoggerV2 interface { // SetLoggerV2 sets logger that is used in grpc to a V2 logger. // Not mutex-protected, should be called before any gRPC functions. func SetLoggerV2(l LoggerV2) { - logger = l + if _, ok := l.(*componentData); ok { + panic("cannot use component logger as grpclog logger") + } + grpclog.Logger = l + grpclog.DepthLogger, _ = l.(grpclog.DepthLoggerV2) } const ( @@ -89,8 +97,9 @@ var severityName = []string{ // loggerT is the default logger used by grpclog. type loggerT struct { - m []*log.Logger - v int + m []*log.Logger + v int + jsonFormat bool } // NewLoggerV2 creates a loggerV2 with the provided writers. @@ -99,27 +108,40 @@ type loggerT struct { // Warning logs will be written to warningW and infoW. // Info logs will be written to infoW. func NewLoggerV2(infoW, warningW, errorW io.Writer) LoggerV2 { - return NewLoggerV2WithVerbosity(infoW, warningW, errorW, 0) + return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{}) } // NewLoggerV2WithVerbosity creates a loggerV2 with the provided writers and // verbosity level. func NewLoggerV2WithVerbosity(infoW, warningW, errorW io.Writer, v int) LoggerV2 { + return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{verbose: v}) +} + +type loggerV2Config struct { + verbose int + jsonFormat bool +} + +func newLoggerV2WithConfig(infoW, warningW, errorW io.Writer, c loggerV2Config) LoggerV2 { var m []*log.Logger - m = append(m, log.New(infoW, severityName[infoLog]+": ", log.LstdFlags)) - m = append(m, log.New(io.MultiWriter(infoW, warningW), severityName[warningLog]+": ", log.LstdFlags)) + flag := log.LstdFlags + if c.jsonFormat { + flag = 0 + } + m = append(m, log.New(infoW, "", flag)) + m = append(m, log.New(io.MultiWriter(infoW, warningW), "", flag)) ew := io.MultiWriter(infoW, warningW, errorW) // ew will be used for error and fatal. - m = append(m, log.New(ew, severityName[errorLog]+": ", log.LstdFlags)) - m = append(m, log.New(ew, severityName[fatalLog]+": ", log.LstdFlags)) - return &loggerT{m: m, v: v} + m = append(m, log.New(ew, "", flag)) + m = append(m, log.New(ew, "", flag)) + return &loggerT{m: m, v: c.verbose, jsonFormat: c.jsonFormat} } // newLoggerV2 creates a loggerV2 to be used as default logger. // All logs are written to stderr. func newLoggerV2() LoggerV2 { - errorW := ioutil.Discard - warningW := ioutil.Discard - infoW := ioutil.Discard + errorW := io.Discard + warningW := io.Discard + infoW := io.Discard logLevel := os.Getenv("GRPC_GO_LOG_SEVERITY_LEVEL") switch logLevel { @@ -136,60 +158,101 @@ func newLoggerV2() LoggerV2 { if vl, err := strconv.Atoi(vLevel); err == nil { v = vl } - return NewLoggerV2WithVerbosity(infoW, warningW, errorW, v) + + jsonFormat := strings.EqualFold(os.Getenv("GRPC_GO_LOG_FORMATTER"), "json") + + return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{ + verbose: v, + jsonFormat: jsonFormat, + }) +} + +func (g *loggerT) output(severity int, s string) { + sevStr := severityName[severity] + if !g.jsonFormat { + g.m[severity].Output(2, fmt.Sprintf("%v: %v", sevStr, s)) + return + } + // TODO: we can also include the logging component, but that needs more + // (API) changes. + b, _ := json.Marshal(map[string]string{ + "severity": sevStr, + "message": s, + }) + g.m[severity].Output(2, string(b)) } func (g *loggerT) Info(args ...interface{}) { - g.m[infoLog].Print(args...) + g.output(infoLog, fmt.Sprint(args...)) } func (g *loggerT) Infoln(args ...interface{}) { - g.m[infoLog].Println(args...) + g.output(infoLog, fmt.Sprintln(args...)) } func (g *loggerT) Infof(format string, args ...interface{}) { - g.m[infoLog].Printf(format, args...) + g.output(infoLog, fmt.Sprintf(format, args...)) } func (g *loggerT) Warning(args ...interface{}) { - g.m[warningLog].Print(args...) + g.output(warningLog, fmt.Sprint(args...)) } func (g *loggerT) Warningln(args ...interface{}) { - g.m[warningLog].Println(args...) + g.output(warningLog, fmt.Sprintln(args...)) } func (g *loggerT) Warningf(format string, args ...interface{}) { - g.m[warningLog].Printf(format, args...) + g.output(warningLog, fmt.Sprintf(format, args...)) } func (g *loggerT) Error(args ...interface{}) { - g.m[errorLog].Print(args...) + g.output(errorLog, fmt.Sprint(args...)) } func (g *loggerT) Errorln(args ...interface{}) { - g.m[errorLog].Println(args...) + g.output(errorLog, fmt.Sprintln(args...)) } func (g *loggerT) Errorf(format string, args ...interface{}) { - g.m[errorLog].Printf(format, args...) + g.output(errorLog, fmt.Sprintf(format, args...)) } func (g *loggerT) Fatal(args ...interface{}) { - g.m[fatalLog].Fatal(args...) - // No need to call os.Exit() again because log.Logger.Fatal() calls os.Exit(). + g.output(fatalLog, fmt.Sprint(args...)) + os.Exit(1) } func (g *loggerT) Fatalln(args ...interface{}) { - g.m[fatalLog].Fatalln(args...) - // No need to call os.Exit() again because log.Logger.Fatal() calls os.Exit(). + g.output(fatalLog, fmt.Sprintln(args...)) + os.Exit(1) } func (g *loggerT) Fatalf(format string, args ...interface{}) { - g.m[fatalLog].Fatalf(format, args...) - // No need to call os.Exit() again because log.Logger.Fatal() calls os.Exit(). + g.output(fatalLog, fmt.Sprintf(format, args...)) + os.Exit(1) } func (g *loggerT) V(l int) bool { return l <= g.v } + +// DepthLoggerV2 logs at a specified call frame. If a LoggerV2 also implements +// DepthLoggerV2, the below functions will be called with the appropriate stack +// depth set for trivial functions the logger may ignore. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type DepthLoggerV2 interface { + LoggerV2 + // InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Println. + InfoDepth(depth int, args ...interface{}) + // WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Println. + WarningDepth(depth int, args ...interface{}) + // ErrorDepth logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Println. + ErrorDepth(depth int, args ...interface{}) + // FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Println. + FatalDepth(depth int, args ...interface{}) +} diff --git a/vendor/google.golang.org/grpc/interceptor.go b/vendor/google.golang.org/grpc/interceptor.go index 1f6ef67..bb96ef5 100644 --- a/vendor/google.golang.org/grpc/interceptor.go +++ b/vendor/google.golang.org/grpc/interceptor.go @@ -19,23 +19,47 @@ package grpc import ( - "golang.org/x/net/context" + "context" ) // UnaryInvoker is called by UnaryClientInterceptor to complete RPCs. type UnaryInvoker func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, opts ...CallOption) error -// UnaryClientInterceptor intercepts the execution of a unary RPC on the client. invoker is the handler to complete the RPC -// and it is the responsibility of the interceptor to call it. -// This is an EXPERIMENTAL API. +// UnaryClientInterceptor intercepts the execution of a unary RPC on the client. +// Unary interceptors can be specified as a DialOption, using +// WithUnaryInterceptor() or WithChainUnaryInterceptor(), when creating a +// ClientConn. When a unary interceptor(s) is set on a ClientConn, gRPC +// delegates all unary RPC invocations to the interceptor, and it is the +// responsibility of the interceptor to call invoker to complete the processing +// of the RPC. +// +// method is the RPC name. req and reply are the corresponding request and +// response messages. cc is the ClientConn on which the RPC was invoked. invoker +// is the handler to complete the RPC and it is the responsibility of the +// interceptor to call it. opts contain all applicable call options, including +// defaults from the ClientConn as well as per-call options. +// +// The returned error must be compatible with the status package. type UnaryClientInterceptor func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error // Streamer is called by StreamClientInterceptor to create a ClientStream. type Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error) -// StreamClientInterceptor intercepts the creation of ClientStream. It may return a custom ClientStream to intercept all I/O -// operations. streamer is the handler to create a ClientStream and it is the responsibility of the interceptor to call it. -// This is an EXPERIMENTAL API. +// StreamClientInterceptor intercepts the creation of a ClientStream. Stream +// interceptors can be specified as a DialOption, using WithStreamInterceptor() +// or WithChainStreamInterceptor(), when creating a ClientConn. When a stream +// interceptor(s) is set on the ClientConn, gRPC delegates all stream creations +// to the interceptor, and it is the responsibility of the interceptor to call +// streamer. +// +// desc contains a description of the stream. cc is the ClientConn on which the +// RPC was invoked. streamer is the handler to create a ClientStream and it is +// the responsibility of the interceptor to call it. opts contain all applicable +// call options, including defaults from the ClientConn as well as per-call +// options. +// +// StreamClientInterceptor may return a custom ClientStream to intercept all I/O +// operations. The returned error must be compatible with the status package. type StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error) // UnaryServerInfo consists of various information about a unary RPC on @@ -48,9 +72,12 @@ type UnaryServerInfo struct { } // UnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal -// execution of a unary RPC. If a UnaryHandler returns an error, it should be produced by the -// status package, or else gRPC will use codes.Unknown as the status code and err.Error() as -// the status message of the RPC. +// execution of a unary RPC. +// +// If a UnaryHandler returns an error, it should either be produced by the +// status package, or be one of the context errors. Otherwise, gRPC will use +// codes.Unknown as the status code and err.Error() as the status message of the +// RPC. type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error) // UnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info diff --git a/vendor/google.golang.org/grpc/internal/backoff/backoff.go b/vendor/google.golang.org/grpc/internal/backoff/backoff.go new file mode 100644 index 0000000..5fc0ee3 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/backoff/backoff.go @@ -0,0 +1,73 @@ +/* + * + * Copyright 2017 gRPC authors. + * + * 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 backoff implement the backoff strategy for gRPC. +// +// This is kept in internal until the gRPC project decides whether or not to +// allow alternative backoff strategies. +package backoff + +import ( + "time" + + grpcbackoff "google.golang.org/grpc/backoff" + "google.golang.org/grpc/internal/grpcrand" +) + +// Strategy defines the methodology for backing off after a grpc connection +// failure. +type Strategy interface { + // Backoff returns the amount of time to wait before the next retry given + // the number of consecutive failures. + Backoff(retries int) time.Duration +} + +// DefaultExponential is an exponential backoff implementation using the +// default values for all the configurable knobs defined in +// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +var DefaultExponential = Exponential{Config: grpcbackoff.DefaultConfig} + +// Exponential implements exponential backoff algorithm as defined in +// https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. +type Exponential struct { + // Config contains all options to configure the backoff algorithm. + Config grpcbackoff.Config +} + +// Backoff returns the amount of time to wait before the next retry given the +// number of retries. +func (bc Exponential) Backoff(retries int) time.Duration { + if retries == 0 { + return bc.Config.BaseDelay + } + backoff, max := float64(bc.Config.BaseDelay), float64(bc.Config.MaxDelay) + for backoff < max && retries > 0 { + backoff *= bc.Config.Multiplier + retries-- + } + if backoff > max { + backoff = max + } + // Randomize backoff delays so that if a cluster of requests start at + // the same time, they won't operate in lockstep. + backoff *= 1 + bc.Config.Jitter*(grpcrand.Float64()*2-1) + if backoff < 0 { + return 0 + } + return time.Duration(backoff) +} diff --git a/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go b/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go new file mode 100644 index 0000000..08666f6 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go @@ -0,0 +1,384 @@ +/* + * + * Copyright 2022 gRPC authors. + * + * 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 gracefulswitch implements a graceful switch load balancer. +package gracefulswitch + +import ( + "errors" + "fmt" + "sync" + + "google.golang.org/grpc/balancer" + "google.golang.org/grpc/balancer/base" + "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/resolver" +) + +var errBalancerClosed = errors.New("gracefulSwitchBalancer is closed") +var _ balancer.Balancer = (*Balancer)(nil) + +// NewBalancer returns a graceful switch Balancer. +func NewBalancer(cc balancer.ClientConn, opts balancer.BuildOptions) *Balancer { + return &Balancer{ + cc: cc, + bOpts: opts, + } +} + +// Balancer is a utility to gracefully switch from one balancer to +// a new balancer. It implements the balancer.Balancer interface. +type Balancer struct { + bOpts balancer.BuildOptions + cc balancer.ClientConn + + // mu protects the following fields and all fields within balancerCurrent + // and balancerPending. mu does not need to be held when calling into the + // child balancers, as all calls into these children happen only as a direct + // result of a call into the gracefulSwitchBalancer, which are also + // guaranteed to be synchronous. There is one exception: an UpdateState call + // from a child balancer when current and pending are populated can lead to + // calling Close() on the current. To prevent that racing with an + // UpdateSubConnState from the channel, we hold currentMu during Close and + // UpdateSubConnState calls. + mu sync.Mutex + balancerCurrent *balancerWrapper + balancerPending *balancerWrapper + closed bool // set to true when this balancer is closed + + // currentMu must be locked before mu. This mutex guards against this + // sequence of events: UpdateSubConnState() called, finds the + // balancerCurrent, gives up lock, updateState comes in, causes Close() on + // balancerCurrent before the UpdateSubConnState is called on the + // balancerCurrent. + currentMu sync.Mutex +} + +// swap swaps out the current lb with the pending lb and updates the ClientConn. +// The caller must hold gsb.mu. +func (gsb *Balancer) swap() { + gsb.cc.UpdateState(gsb.balancerPending.lastState) + cur := gsb.balancerCurrent + gsb.balancerCurrent = gsb.balancerPending + gsb.balancerPending = nil + go func() { + gsb.currentMu.Lock() + defer gsb.currentMu.Unlock() + cur.Close() + }() +} + +// Helper function that checks if the balancer passed in is current or pending. +// The caller must hold gsb.mu. +func (gsb *Balancer) balancerCurrentOrPending(bw *balancerWrapper) bool { + return bw == gsb.balancerCurrent || bw == gsb.balancerPending +} + +// SwitchTo initializes the graceful switch process, which completes based on +// connectivity state changes on the current/pending balancer. Thus, the switch +// process is not complete when this method returns. This method must be called +// synchronously alongside the rest of the balancer.Balancer methods this +// Graceful Switch Balancer implements. +func (gsb *Balancer) SwitchTo(builder balancer.Builder) error { + gsb.mu.Lock() + if gsb.closed { + gsb.mu.Unlock() + return errBalancerClosed + } + bw := &balancerWrapper{ + gsb: gsb, + lastState: balancer.State{ + ConnectivityState: connectivity.Connecting, + Picker: base.NewErrPicker(balancer.ErrNoSubConnAvailable), + }, + subconns: make(map[balancer.SubConn]bool), + } + balToClose := gsb.balancerPending // nil if there is no pending balancer + if gsb.balancerCurrent == nil { + gsb.balancerCurrent = bw + } else { + gsb.balancerPending = bw + } + gsb.mu.Unlock() + balToClose.Close() + // This function takes a builder instead of a balancer because builder.Build + // can call back inline, and this utility needs to handle the callbacks. + newBalancer := builder.Build(bw, gsb.bOpts) + if newBalancer == nil { + // This is illegal and should never happen; we clear the balancerWrapper + // we were constructing if it happens to avoid a potential panic. + gsb.mu.Lock() + if gsb.balancerPending != nil { + gsb.balancerPending = nil + } else { + gsb.balancerCurrent = nil + } + gsb.mu.Unlock() + return balancer.ErrBadResolverState + } + + // This write doesn't need to take gsb.mu because this field never gets read + // or written to on any calls from the current or pending. Calls from grpc + // to this balancer are guaranteed to be called synchronously, so this + // bw.Balancer field will never be forwarded to until this SwitchTo() + // function returns. + bw.Balancer = newBalancer + return nil +} + +// Returns nil if the graceful switch balancer is closed. +func (gsb *Balancer) latestBalancer() *balancerWrapper { + gsb.mu.Lock() + defer gsb.mu.Unlock() + if gsb.balancerPending != nil { + return gsb.balancerPending + } + return gsb.balancerCurrent +} + +// UpdateClientConnState forwards the update to the latest balancer created. +func (gsb *Balancer) UpdateClientConnState(state balancer.ClientConnState) error { + // The resolver data is only relevant to the most recent LB Policy. + balToUpdate := gsb.latestBalancer() + if balToUpdate == nil { + return errBalancerClosed + } + // Perform this call without gsb.mu to prevent deadlocks if the child calls + // back into the channel. The latest balancer can never be closed during a + // call from the channel, even without gsb.mu held. + return balToUpdate.UpdateClientConnState(state) +} + +// ResolverError forwards the error to the latest balancer created. +func (gsb *Balancer) ResolverError(err error) { + // The resolver data is only relevant to the most recent LB Policy. + balToUpdate := gsb.latestBalancer() + if balToUpdate == nil { + return + } + // Perform this call without gsb.mu to prevent deadlocks if the child calls + // back into the channel. The latest balancer can never be closed during a + // call from the channel, even without gsb.mu held. + balToUpdate.ResolverError(err) +} + +// ExitIdle forwards the call to the latest balancer created. +// +// If the latest balancer does not support ExitIdle, the subConns are +// re-connected to manually. +func (gsb *Balancer) ExitIdle() { + balToUpdate := gsb.latestBalancer() + if balToUpdate == nil { + return + } + // There is no need to protect this read with a mutex, as the write to the + // Balancer field happens in SwitchTo, which completes before this can be + // called. + if ei, ok := balToUpdate.Balancer.(balancer.ExitIdler); ok { + ei.ExitIdle() + return + } + gsb.mu.Lock() + defer gsb.mu.Unlock() + for sc := range balToUpdate.subconns { + sc.Connect() + } +} + +// UpdateSubConnState forwards the update to the appropriate child. +func (gsb *Balancer) UpdateSubConnState(sc balancer.SubConn, state balancer.SubConnState) { + gsb.currentMu.Lock() + defer gsb.currentMu.Unlock() + gsb.mu.Lock() + // Forward update to the appropriate child. Even if there is a pending + // balancer, the current balancer should continue to get SubConn updates to + // maintain the proper state while the pending is still connecting. + var balToUpdate *balancerWrapper + if gsb.balancerCurrent != nil && gsb.balancerCurrent.subconns[sc] { + balToUpdate = gsb.balancerCurrent + } else if gsb.balancerPending != nil && gsb.balancerPending.subconns[sc] { + balToUpdate = gsb.balancerPending + } + gsb.mu.Unlock() + if balToUpdate == nil { + // SubConn belonged to a stale lb policy that has not yet fully closed, + // or the balancer was already closed. + return + } + balToUpdate.UpdateSubConnState(sc, state) +} + +// Close closes any active child balancers. +func (gsb *Balancer) Close() { + gsb.mu.Lock() + gsb.closed = true + currentBalancerToClose := gsb.balancerCurrent + gsb.balancerCurrent = nil + pendingBalancerToClose := gsb.balancerPending + gsb.balancerPending = nil + gsb.mu.Unlock() + + currentBalancerToClose.Close() + pendingBalancerToClose.Close() +} + +// balancerWrapper wraps a balancer.Balancer, and overrides some Balancer +// methods to help cleanup SubConns created by the wrapped balancer. +// +// It implements the balancer.ClientConn interface and is passed down in that +// capacity to the wrapped balancer. It maintains a set of subConns created by +// the wrapped balancer and calls from the latter to create/update/remove +// SubConns update this set before being forwarded to the parent ClientConn. +// State updates from the wrapped balancer can result in invocation of the +// graceful switch logic. +type balancerWrapper struct { + balancer.Balancer + gsb *Balancer + + lastState balancer.State + subconns map[balancer.SubConn]bool // subconns created by this balancer +} + +func (bw *balancerWrapper) UpdateSubConnState(sc balancer.SubConn, state balancer.SubConnState) { + if state.ConnectivityState == connectivity.Shutdown { + bw.gsb.mu.Lock() + delete(bw.subconns, sc) + bw.gsb.mu.Unlock() + } + // There is no need to protect this read with a mutex, as the write to the + // Balancer field happens in SwitchTo, which completes before this can be + // called. + bw.Balancer.UpdateSubConnState(sc, state) +} + +// Close closes the underlying LB policy and removes the subconns it created. bw +// must not be referenced via balancerCurrent or balancerPending in gsb when +// called. gsb.mu must not be held. Does not panic with a nil receiver. +func (bw *balancerWrapper) Close() { + // before Close is called. + if bw == nil { + return + } + // There is no need to protect this read with a mutex, as Close() is + // impossible to be called concurrently with the write in SwitchTo(). The + // callsites of Close() for this balancer in Graceful Switch Balancer will + // never be called until SwitchTo() returns. + bw.Balancer.Close() + bw.gsb.mu.Lock() + for sc := range bw.subconns { + bw.gsb.cc.RemoveSubConn(sc) + } + bw.gsb.mu.Unlock() +} + +func (bw *balancerWrapper) UpdateState(state balancer.State) { + // Hold the mutex for this entire call to ensure it cannot occur + // concurrently with other updateState() calls. This causes updates to + // lastState and calls to cc.UpdateState to happen atomically. + bw.gsb.mu.Lock() + defer bw.gsb.mu.Unlock() + bw.lastState = state + + if !bw.gsb.balancerCurrentOrPending(bw) { + return + } + + if bw == bw.gsb.balancerCurrent { + // In the case that the current balancer exits READY, and there is a pending + // balancer, you can forward the pending balancer's cached State up to + // ClientConn and swap the pending into the current. This is because there + // is no reason to gracefully switch from and keep using the old policy as + // the ClientConn is not connected to any backends. + if state.ConnectivityState != connectivity.Ready && bw.gsb.balancerPending != nil { + bw.gsb.swap() + return + } + // Even if there is a pending balancer waiting to be gracefully switched to, + // continue to forward current balancer updates to the Client Conn. Ignoring + // state + picker from the current would cause undefined behavior/cause the + // system to behave incorrectly from the current LB policies perspective. + // Also, the current LB is still being used by grpc to choose SubConns per + // RPC, and thus should use the most updated form of the current balancer. + bw.gsb.cc.UpdateState(state) + return + } + // This method is now dealing with a state update from the pending balancer. + // If the current balancer is currently in a state other than READY, the new + // policy can be swapped into place immediately. This is because there is no + // reason to gracefully switch from and keep using the old policy as the + // ClientConn is not connected to any backends. + if state.ConnectivityState != connectivity.Connecting || bw.gsb.balancerCurrent.lastState.ConnectivityState != connectivity.Ready { + bw.gsb.swap() + } +} + +func (bw *balancerWrapper) NewSubConn(addrs []resolver.Address, opts balancer.NewSubConnOptions) (balancer.SubConn, error) { + bw.gsb.mu.Lock() + if !bw.gsb.balancerCurrentOrPending(bw) { + bw.gsb.mu.Unlock() + return nil, fmt.Errorf("%T at address %p that called NewSubConn is deleted", bw, bw) + } + bw.gsb.mu.Unlock() + + sc, err := bw.gsb.cc.NewSubConn(addrs, opts) + if err != nil { + return nil, err + } + bw.gsb.mu.Lock() + if !bw.gsb.balancerCurrentOrPending(bw) { // balancer was closed during this call + bw.gsb.cc.RemoveSubConn(sc) + bw.gsb.mu.Unlock() + return nil, fmt.Errorf("%T at address %p that called NewSubConn is deleted", bw, bw) + } + bw.subconns[sc] = true + bw.gsb.mu.Unlock() + return sc, nil +} + +func (bw *balancerWrapper) ResolveNow(opts resolver.ResolveNowOptions) { + // Ignore ResolveNow requests from anything other than the most recent + // balancer, because older balancers were already removed from the config. + if bw != bw.gsb.latestBalancer() { + return + } + bw.gsb.cc.ResolveNow(opts) +} + +func (bw *balancerWrapper) RemoveSubConn(sc balancer.SubConn) { + bw.gsb.mu.Lock() + if !bw.gsb.balancerCurrentOrPending(bw) { + bw.gsb.mu.Unlock() + return + } + bw.gsb.mu.Unlock() + bw.gsb.cc.RemoveSubConn(sc) +} + +func (bw *balancerWrapper) UpdateAddresses(sc balancer.SubConn, addrs []resolver.Address) { + bw.gsb.mu.Lock() + if !bw.gsb.balancerCurrentOrPending(bw) { + bw.gsb.mu.Unlock() + return + } + bw.gsb.mu.Unlock() + bw.gsb.cc.UpdateAddresses(sc, addrs) +} + +func (bw *balancerWrapper) Target() string { + return bw.gsb.cc.Target() +} diff --git a/vendor/google.golang.org/grpc/internal/balancerload/load.go b/vendor/google.golang.org/grpc/internal/balancerload/load.go new file mode 100644 index 0000000..3a905d9 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/balancerload/load.go @@ -0,0 +1,46 @@ +/* + * Copyright 2019 gRPC authors. + * + * 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 balancerload defines APIs to parse server loads in trailers. The +// parsed loads are sent to balancers in DoneInfo. +package balancerload + +import ( + "google.golang.org/grpc/metadata" +) + +// Parser converts loads from metadata into a concrete type. +type Parser interface { + // Parse parses loads from metadata. + Parse(md metadata.MD) interface{} +} + +var parser Parser + +// SetParser sets the load parser. +// +// Not mutex-protected, should be called before any gRPC functions. +func SetParser(lr Parser) { + parser = lr +} + +// Parse calls parser.Read(). +func Parse(md metadata.MD) interface{} { + if parser == nil { + return nil + } + return parser.Parse(md) +} diff --git a/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go b/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go new file mode 100644 index 0000000..809d73c --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go @@ -0,0 +1,189 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 binarylog implementation binary logging as defined in +// https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. +package binarylog + +import ( + "fmt" + "os" + + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal/grpcutil" +) + +// Logger is the global binary logger. It can be used to get binary logger for +// each method. +type Logger interface { + GetMethodLogger(methodName string) MethodLogger +} + +// binLogger is the global binary logger for the binary. One of this should be +// built at init time from the configuration (environment variable or flags). +// +// It is used to get a MethodLogger for each individual method. +var binLogger Logger + +var grpclogLogger = grpclog.Component("binarylog") + +// SetLogger sets the binary logger. +// +// Only call this at init time. +func SetLogger(l Logger) { + binLogger = l +} + +// GetLogger gets the binary logger. +// +// Only call this at init time. +func GetLogger() Logger { + return binLogger +} + +// GetMethodLogger returns the MethodLogger for the given methodName. +// +// methodName should be in the format of "/service/method". +// +// Each MethodLogger returned by this method is a new instance. This is to +// generate sequence id within the call. +func GetMethodLogger(methodName string) MethodLogger { + if binLogger == nil { + return nil + } + return binLogger.GetMethodLogger(methodName) +} + +func init() { + const envStr = "GRPC_BINARY_LOG_FILTER" + configStr := os.Getenv(envStr) + binLogger = NewLoggerFromConfigString(configStr) +} + +// MethodLoggerConfig contains the setting for logging behavior of a method +// logger. Currently, it contains the max length of header and message. +type MethodLoggerConfig struct { + // Max length of header and message. + Header, Message uint64 +} + +// LoggerConfig contains the config for loggers to create method loggers. +type LoggerConfig struct { + All *MethodLoggerConfig + Services map[string]*MethodLoggerConfig + Methods map[string]*MethodLoggerConfig + + Blacklist map[string]struct{} +} + +type logger struct { + config LoggerConfig +} + +// NewLoggerFromConfig builds a logger with the given LoggerConfig. +func NewLoggerFromConfig(config LoggerConfig) Logger { + return &logger{config: config} +} + +// newEmptyLogger creates an empty logger. The map fields need to be filled in +// using the set* functions. +func newEmptyLogger() *logger { + return &logger{} +} + +// Set method logger for "*". +func (l *logger) setDefaultMethodLogger(ml *MethodLoggerConfig) error { + if l.config.All != nil { + return fmt.Errorf("conflicting global rules found") + } + l.config.All = ml + return nil +} + +// Set method logger for "service/*". +// +// New MethodLogger with same service overrides the old one. +func (l *logger) setServiceMethodLogger(service string, ml *MethodLoggerConfig) error { + if _, ok := l.config.Services[service]; ok { + return fmt.Errorf("conflicting service rules for service %v found", service) + } + if l.config.Services == nil { + l.config.Services = make(map[string]*MethodLoggerConfig) + } + l.config.Services[service] = ml + return nil +} + +// Set method logger for "service/method". +// +// New MethodLogger with same method overrides the old one. +func (l *logger) setMethodMethodLogger(method string, ml *MethodLoggerConfig) error { + if _, ok := l.config.Blacklist[method]; ok { + return fmt.Errorf("conflicting blacklist rules for method %v found", method) + } + if _, ok := l.config.Methods[method]; ok { + return fmt.Errorf("conflicting method rules for method %v found", method) + } + if l.config.Methods == nil { + l.config.Methods = make(map[string]*MethodLoggerConfig) + } + l.config.Methods[method] = ml + return nil +} + +// Set blacklist method for "-service/method". +func (l *logger) setBlacklist(method string) error { + if _, ok := l.config.Blacklist[method]; ok { + return fmt.Errorf("conflicting blacklist rules for method %v found", method) + } + if _, ok := l.config.Methods[method]; ok { + return fmt.Errorf("conflicting method rules for method %v found", method) + } + if l.config.Blacklist == nil { + l.config.Blacklist = make(map[string]struct{}) + } + l.config.Blacklist[method] = struct{}{} + return nil +} + +// getMethodLogger returns the MethodLogger for the given methodName. +// +// methodName should be in the format of "/service/method". +// +// Each MethodLogger returned by this method is a new instance. This is to +// generate sequence id within the call. +func (l *logger) GetMethodLogger(methodName string) MethodLogger { + s, m, err := grpcutil.ParseMethod(methodName) + if err != nil { + grpclogLogger.Infof("binarylogging: failed to parse %q: %v", methodName, err) + return nil + } + if ml, ok := l.config.Methods[s+"/"+m]; ok { + return NewTruncatingMethodLogger(ml.Header, ml.Message) + } + if _, ok := l.config.Blacklist[s+"/"+m]; ok { + return nil + } + if ml, ok := l.config.Services[s]; ok { + return NewTruncatingMethodLogger(ml.Header, ml.Message) + } + if l.config.All == nil { + return nil + } + return NewTruncatingMethodLogger(l.config.All.Header, l.config.All.Message) +} diff --git a/vendor/google.golang.org/grpc/internal/binarylog/binarylog_testutil.go b/vendor/google.golang.org/grpc/internal/binarylog/binarylog_testutil.go new file mode 100644 index 0000000..1ee00a3 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/binarylog/binarylog_testutil.go @@ -0,0 +1,42 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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. + * + */ + +// This file contains exported variables/functions that are exported for testing +// only. +// +// An ideal way for this would be to put those in a *_test.go but in binarylog +// package. But this doesn't work with staticcheck with go module. Error was: +// "MdToMetadataProto not declared by package binarylog". This could be caused +// by the way staticcheck looks for files for a certain package, which doesn't +// support *_test.go files. +// +// Move those to binary_test.go when staticcheck is fixed. + +package binarylog + +var ( + // AllLogger is a logger that logs all headers/messages for all RPCs. It's + // for testing only. + AllLogger = NewLoggerFromConfigString("*") + // MdToMetadataProto converts metadata to a binary logging proto message. + // It's for testing only. + MdToMetadataProto = mdToMetadataProto + // AddrToProto converts an address to a binary logging proto message. It's + // for testing only. + AddrToProto = addrToProto +) diff --git a/vendor/google.golang.org/grpc/internal/binarylog/env_config.go b/vendor/google.golang.org/grpc/internal/binarylog/env_config.go new file mode 100644 index 0000000..f9e80e2 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/binarylog/env_config.go @@ -0,0 +1,208 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 binarylog + +import ( + "errors" + "fmt" + "regexp" + "strconv" + "strings" +) + +// NewLoggerFromConfigString reads the string and build a logger. It can be used +// to build a new logger and assign it to binarylog.Logger. +// +// Example filter config strings: +// - "" Nothing will be logged +// - "*" All headers and messages will be fully logged. +// - "*{h}" Only headers will be logged. +// - "*{m:256}" Only the first 256 bytes of each message will be logged. +// - "Foo/*" Logs every method in service Foo +// - "Foo/*,-Foo/Bar" Logs every method in service Foo except method /Foo/Bar +// - "Foo/*,Foo/Bar{m:256}" Logs the first 256 bytes of each message in method +// /Foo/Bar, logs all headers and messages in every other method in service +// Foo. +// +// If two configs exist for one certain method or service, the one specified +// later overrides the previous config. +func NewLoggerFromConfigString(s string) Logger { + if s == "" { + return nil + } + l := newEmptyLogger() + methods := strings.Split(s, ",") + for _, method := range methods { + if err := l.fillMethodLoggerWithConfigString(method); err != nil { + grpclogLogger.Warningf("failed to parse binary log config: %v", err) + return nil + } + } + return l +} + +// fillMethodLoggerWithConfigString parses config, creates TruncatingMethodLogger and adds +// it to the right map in the logger. +func (l *logger) fillMethodLoggerWithConfigString(config string) error { + // "" is invalid. + if config == "" { + return errors.New("empty string is not a valid method binary logging config") + } + + // "-service/method", blacklist, no * or {} allowed. + if config[0] == '-' { + s, m, suffix, err := parseMethodConfigAndSuffix(config[1:]) + if err != nil { + return fmt.Errorf("invalid config: %q, %v", config, err) + } + if m == "*" { + return fmt.Errorf("invalid config: %q, %v", config, "* not allowed in blacklist config") + } + if suffix != "" { + return fmt.Errorf("invalid config: %q, %v", config, "header/message limit not allowed in blacklist config") + } + if err := l.setBlacklist(s + "/" + m); err != nil { + return fmt.Errorf("invalid config: %v", err) + } + return nil + } + + // "*{h:256;m:256}" + if config[0] == '*' { + hdr, msg, err := parseHeaderMessageLengthConfig(config[1:]) + if err != nil { + return fmt.Errorf("invalid config: %q, %v", config, err) + } + if err := l.setDefaultMethodLogger(&MethodLoggerConfig{Header: hdr, Message: msg}); err != nil { + return fmt.Errorf("invalid config: %v", err) + } + return nil + } + + s, m, suffix, err := parseMethodConfigAndSuffix(config) + if err != nil { + return fmt.Errorf("invalid config: %q, %v", config, err) + } + hdr, msg, err := parseHeaderMessageLengthConfig(suffix) + if err != nil { + return fmt.Errorf("invalid header/message length config: %q, %v", suffix, err) + } + if m == "*" { + if err := l.setServiceMethodLogger(s, &MethodLoggerConfig{Header: hdr, Message: msg}); err != nil { + return fmt.Errorf("invalid config: %v", err) + } + } else { + if err := l.setMethodMethodLogger(s+"/"+m, &MethodLoggerConfig{Header: hdr, Message: msg}); err != nil { + return fmt.Errorf("invalid config: %v", err) + } + } + return nil +} + +const ( + // TODO: this const is only used by env_config now. But could be useful for + // other config. Move to binarylog.go if necessary. + maxUInt = ^uint64(0) + + // For "p.s/m" plus any suffix. Suffix will be parsed again. See test for + // expected output. + longMethodConfigRegexpStr = `^([\w./]+)/((?:\w+)|[*])(.+)?$` + + // For suffix from above, "{h:123,m:123}". See test for expected output. + optionalLengthRegexpStr = `(?::(\d+))?` // Optional ":123". + headerConfigRegexpStr = `^{h` + optionalLengthRegexpStr + `}$` + messageConfigRegexpStr = `^{m` + optionalLengthRegexpStr + `}$` + headerMessageConfigRegexpStr = `^{h` + optionalLengthRegexpStr + `;m` + optionalLengthRegexpStr + `}$` +) + +var ( + longMethodConfigRegexp = regexp.MustCompile(longMethodConfigRegexpStr) + headerConfigRegexp = regexp.MustCompile(headerConfigRegexpStr) + messageConfigRegexp = regexp.MustCompile(messageConfigRegexpStr) + headerMessageConfigRegexp = regexp.MustCompile(headerMessageConfigRegexpStr) +) + +// Turn "service/method{h;m}" into "service", "method", "{h;m}". +func parseMethodConfigAndSuffix(c string) (service, method, suffix string, _ error) { + // Regexp result: + // + // in: "p.s/m{h:123,m:123}", + // out: []string{"p.s/m{h:123,m:123}", "p.s", "m", "{h:123,m:123}"}, + match := longMethodConfigRegexp.FindStringSubmatch(c) + if match == nil { + return "", "", "", fmt.Errorf("%q contains invalid substring", c) + } + service = match[1] + method = match[2] + suffix = match[3] + return +} + +// Turn "{h:123;m:345}" into 123, 345. +// +// Return maxUInt if length is unspecified. +func parseHeaderMessageLengthConfig(c string) (hdrLenStr, msgLenStr uint64, err error) { + if c == "" { + return maxUInt, maxUInt, nil + } + // Header config only. + if match := headerConfigRegexp.FindStringSubmatch(c); match != nil { + if s := match[1]; s != "" { + hdrLenStr, err = strconv.ParseUint(s, 10, 64) + if err != nil { + return 0, 0, fmt.Errorf("failed to convert %q to uint", s) + } + return hdrLenStr, 0, nil + } + return maxUInt, 0, nil + } + + // Message config only. + if match := messageConfigRegexp.FindStringSubmatch(c); match != nil { + if s := match[1]; s != "" { + msgLenStr, err = strconv.ParseUint(s, 10, 64) + if err != nil { + return 0, 0, fmt.Errorf("failed to convert %q to uint", s) + } + return 0, msgLenStr, nil + } + return 0, maxUInt, nil + } + + // Header and message config both. + if match := headerMessageConfigRegexp.FindStringSubmatch(c); match != nil { + // Both hdr and msg are specified, but one or two of them might be empty. + hdrLenStr = maxUInt + msgLenStr = maxUInt + if s := match[1]; s != "" { + hdrLenStr, err = strconv.ParseUint(s, 10, 64) + if err != nil { + return 0, 0, fmt.Errorf("failed to convert %q to uint", s) + } + } + if s := match[2]; s != "" { + msgLenStr, err = strconv.ParseUint(s, 10, 64) + if err != nil { + return 0, 0, fmt.Errorf("failed to convert %q to uint", s) + } + } + return hdrLenStr, msgLenStr, nil + } + return 0, 0, fmt.Errorf("%q contains invalid substring", c) +} diff --git a/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go b/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go new file mode 100644 index 0000000..d71e441 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go @@ -0,0 +1,435 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 binarylog + +import ( + "net" + "strings" + "sync/atomic" + "time" + + "github.com/golang/protobuf/proto" + "github.com/golang/protobuf/ptypes" + binlogpb "google.golang.org/grpc/binarylog/grpc_binarylog_v1" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +type callIDGenerator struct { + id uint64 +} + +func (g *callIDGenerator) next() uint64 { + id := atomic.AddUint64(&g.id, 1) + return id +} + +// reset is for testing only, and doesn't need to be thread safe. +func (g *callIDGenerator) reset() { + g.id = 0 +} + +var idGen callIDGenerator + +// MethodLogger is the sub-logger for each method. +type MethodLogger interface { + Log(LogEntryConfig) +} + +// TruncatingMethodLogger is a method logger that truncates headers and messages +// based on configured fields. +type TruncatingMethodLogger struct { + headerMaxLen, messageMaxLen uint64 + + callID uint64 + idWithinCallGen *callIDGenerator + + sink Sink // TODO(blog): make this plugable. +} + +// NewTruncatingMethodLogger returns a new truncating method logger. +func NewTruncatingMethodLogger(h, m uint64) *TruncatingMethodLogger { + return &TruncatingMethodLogger{ + headerMaxLen: h, + messageMaxLen: m, + + callID: idGen.next(), + idWithinCallGen: &callIDGenerator{}, + + sink: DefaultSink, // TODO(blog): make it plugable. + } +} + +// Build is an internal only method for building the proto message out of the +// input event. It's made public to enable other library to reuse as much logic +// in TruncatingMethodLogger as possible. +func (ml *TruncatingMethodLogger) Build(c LogEntryConfig) *binlogpb.GrpcLogEntry { + m := c.toProto() + timestamp, _ := ptypes.TimestampProto(time.Now()) + m.Timestamp = timestamp + m.CallId = ml.callID + m.SequenceIdWithinCall = ml.idWithinCallGen.next() + + switch pay := m.Payload.(type) { + case *binlogpb.GrpcLogEntry_ClientHeader: + m.PayloadTruncated = ml.truncateMetadata(pay.ClientHeader.GetMetadata()) + case *binlogpb.GrpcLogEntry_ServerHeader: + m.PayloadTruncated = ml.truncateMetadata(pay.ServerHeader.GetMetadata()) + case *binlogpb.GrpcLogEntry_Message: + m.PayloadTruncated = ml.truncateMessage(pay.Message) + } + return m +} + +// Log creates a proto binary log entry, and logs it to the sink. +func (ml *TruncatingMethodLogger) Log(c LogEntryConfig) { + ml.sink.Write(ml.Build(c)) +} + +func (ml *TruncatingMethodLogger) truncateMetadata(mdPb *binlogpb.Metadata) (truncated bool) { + if ml.headerMaxLen == maxUInt { + return false + } + var ( + bytesLimit = ml.headerMaxLen + index int + ) + // At the end of the loop, index will be the first entry where the total + // size is greater than the limit: + // + // len(entry[:index]) <= ml.hdr && len(entry[:index+1]) > ml.hdr. + for ; index < len(mdPb.Entry); index++ { + entry := mdPb.Entry[index] + if entry.Key == "grpc-trace-bin" { + // "grpc-trace-bin" is a special key. It's kept in the log entry, + // but not counted towards the size limit. + continue + } + currentEntryLen := uint64(len(entry.GetKey())) + uint64(len(entry.GetValue())) + if currentEntryLen > bytesLimit { + break + } + bytesLimit -= currentEntryLen + } + truncated = index < len(mdPb.Entry) + mdPb.Entry = mdPb.Entry[:index] + return truncated +} + +func (ml *TruncatingMethodLogger) truncateMessage(msgPb *binlogpb.Message) (truncated bool) { + if ml.messageMaxLen == maxUInt { + return false + } + if ml.messageMaxLen >= uint64(len(msgPb.Data)) { + return false + } + msgPb.Data = msgPb.Data[:ml.messageMaxLen] + return true +} + +// LogEntryConfig represents the configuration for binary log entry. +type LogEntryConfig interface { + toProto() *binlogpb.GrpcLogEntry +} + +// ClientHeader configs the binary log entry to be a ClientHeader entry. +type ClientHeader struct { + OnClientSide bool + Header metadata.MD + MethodName string + Authority string + Timeout time.Duration + // PeerAddr is required only when it's on server side. + PeerAddr net.Addr +} + +func (c *ClientHeader) toProto() *binlogpb.GrpcLogEntry { + // This function doesn't need to set all the fields (e.g. seq ID). The Log + // function will set the fields when necessary. + clientHeader := &binlogpb.ClientHeader{ + Metadata: mdToMetadataProto(c.Header), + MethodName: c.MethodName, + Authority: c.Authority, + } + if c.Timeout > 0 { + clientHeader.Timeout = ptypes.DurationProto(c.Timeout) + } + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_CLIENT_HEADER, + Payload: &binlogpb.GrpcLogEntry_ClientHeader{ + ClientHeader: clientHeader, + }, + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + if c.PeerAddr != nil { + ret.Peer = addrToProto(c.PeerAddr) + } + return ret +} + +// ServerHeader configs the binary log entry to be a ServerHeader entry. +type ServerHeader struct { + OnClientSide bool + Header metadata.MD + // PeerAddr is required only when it's on client side. + PeerAddr net.Addr +} + +func (c *ServerHeader) toProto() *binlogpb.GrpcLogEntry { + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_SERVER_HEADER, + Payload: &binlogpb.GrpcLogEntry_ServerHeader{ + ServerHeader: &binlogpb.ServerHeader{ + Metadata: mdToMetadataProto(c.Header), + }, + }, + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + if c.PeerAddr != nil { + ret.Peer = addrToProto(c.PeerAddr) + } + return ret +} + +// ClientMessage configs the binary log entry to be a ClientMessage entry. +type ClientMessage struct { + OnClientSide bool + // Message can be a proto.Message or []byte. Other messages formats are not + // supported. + Message interface{} +} + +func (c *ClientMessage) toProto() *binlogpb.GrpcLogEntry { + var ( + data []byte + err error + ) + if m, ok := c.Message.(proto.Message); ok { + data, err = proto.Marshal(m) + if err != nil { + grpclogLogger.Infof("binarylogging: failed to marshal proto message: %v", err) + } + } else if b, ok := c.Message.([]byte); ok { + data = b + } else { + grpclogLogger.Infof("binarylogging: message to log is neither proto.message nor []byte") + } + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_CLIENT_MESSAGE, + Payload: &binlogpb.GrpcLogEntry_Message{ + Message: &binlogpb.Message{ + Length: uint32(len(data)), + Data: data, + }, + }, + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + return ret +} + +// ServerMessage configs the binary log entry to be a ServerMessage entry. +type ServerMessage struct { + OnClientSide bool + // Message can be a proto.Message or []byte. Other messages formats are not + // supported. + Message interface{} +} + +func (c *ServerMessage) toProto() *binlogpb.GrpcLogEntry { + var ( + data []byte + err error + ) + if m, ok := c.Message.(proto.Message); ok { + data, err = proto.Marshal(m) + if err != nil { + grpclogLogger.Infof("binarylogging: failed to marshal proto message: %v", err) + } + } else if b, ok := c.Message.([]byte); ok { + data = b + } else { + grpclogLogger.Infof("binarylogging: message to log is neither proto.message nor []byte") + } + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_SERVER_MESSAGE, + Payload: &binlogpb.GrpcLogEntry_Message{ + Message: &binlogpb.Message{ + Length: uint32(len(data)), + Data: data, + }, + }, + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + return ret +} + +// ClientHalfClose configs the binary log entry to be a ClientHalfClose entry. +type ClientHalfClose struct { + OnClientSide bool +} + +func (c *ClientHalfClose) toProto() *binlogpb.GrpcLogEntry { + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_CLIENT_HALF_CLOSE, + Payload: nil, // No payload here. + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + return ret +} + +// ServerTrailer configs the binary log entry to be a ServerTrailer entry. +type ServerTrailer struct { + OnClientSide bool + Trailer metadata.MD + // Err is the status error. + Err error + // PeerAddr is required only when it's on client side and the RPC is trailer + // only. + PeerAddr net.Addr +} + +func (c *ServerTrailer) toProto() *binlogpb.GrpcLogEntry { + st, ok := status.FromError(c.Err) + if !ok { + grpclogLogger.Info("binarylogging: error in trailer is not a status error") + } + var ( + detailsBytes []byte + err error + ) + stProto := st.Proto() + if stProto != nil && len(stProto.Details) != 0 { + detailsBytes, err = proto.Marshal(stProto) + if err != nil { + grpclogLogger.Infof("binarylogging: failed to marshal status proto: %v", err) + } + } + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_SERVER_TRAILER, + Payload: &binlogpb.GrpcLogEntry_Trailer{ + Trailer: &binlogpb.Trailer{ + Metadata: mdToMetadataProto(c.Trailer), + StatusCode: uint32(st.Code()), + StatusMessage: st.Message(), + StatusDetails: detailsBytes, + }, + }, + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + if c.PeerAddr != nil { + ret.Peer = addrToProto(c.PeerAddr) + } + return ret +} + +// Cancel configs the binary log entry to be a Cancel entry. +type Cancel struct { + OnClientSide bool +} + +func (c *Cancel) toProto() *binlogpb.GrpcLogEntry { + ret := &binlogpb.GrpcLogEntry{ + Type: binlogpb.GrpcLogEntry_EVENT_TYPE_CANCEL, + Payload: nil, + } + if c.OnClientSide { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_CLIENT + } else { + ret.Logger = binlogpb.GrpcLogEntry_LOGGER_SERVER + } + return ret +} + +// metadataKeyOmit returns whether the metadata entry with this key should be +// omitted. +func metadataKeyOmit(key string) bool { + switch key { + case "lb-token", ":path", ":authority", "content-encoding", "content-type", "user-agent", "te": + return true + case "grpc-trace-bin": // grpc-trace-bin is special because it's visiable to users. + return false + } + return strings.HasPrefix(key, "grpc-") +} + +func mdToMetadataProto(md metadata.MD) *binlogpb.Metadata { + ret := &binlogpb.Metadata{} + for k, vv := range md { + if metadataKeyOmit(k) { + continue + } + for _, v := range vv { + ret.Entry = append(ret.Entry, + &binlogpb.MetadataEntry{ + Key: k, + Value: []byte(v), + }, + ) + } + } + return ret +} + +func addrToProto(addr net.Addr) *binlogpb.Address { + ret := &binlogpb.Address{} + switch a := addr.(type) { + case *net.TCPAddr: + if a.IP.To4() != nil { + ret.Type = binlogpb.Address_TYPE_IPV4 + } else if a.IP.To16() != nil { + ret.Type = binlogpb.Address_TYPE_IPV6 + } else { + ret.Type = binlogpb.Address_TYPE_UNKNOWN + // Do not set address and port fields. + break + } + ret.Address = a.IP.String() + ret.IpPort = uint32(a.Port) + case *net.UnixAddr: + ret.Type = binlogpb.Address_TYPE_UNIX + ret.Address = a.String() + default: + ret.Type = binlogpb.Address_TYPE_UNKNOWN + } + return ret +} diff --git a/vendor/google.golang.org/grpc/internal/binarylog/sink.go b/vendor/google.golang.org/grpc/internal/binarylog/sink.go new file mode 100644 index 0000000..264de38 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/binarylog/sink.go @@ -0,0 +1,170 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 binarylog + +import ( + "bufio" + "encoding/binary" + "io" + "sync" + "time" + + "github.com/golang/protobuf/proto" + binlogpb "google.golang.org/grpc/binarylog/grpc_binarylog_v1" +) + +var ( + // DefaultSink is the sink where the logs will be written to. It's exported + // for the binarylog package to update. + DefaultSink Sink = &noopSink{} // TODO(blog): change this default (file in /tmp). +) + +// Sink writes log entry into the binary log sink. +// +// sink is a copy of the exported binarylog.Sink, to avoid circular dependency. +type Sink interface { + // Write will be called to write the log entry into the sink. + // + // It should be thread-safe so it can be called in parallel. + Write(*binlogpb.GrpcLogEntry) error + // Close will be called when the Sink is replaced by a new Sink. + Close() error +} + +type noopSink struct{} + +func (ns *noopSink) Write(*binlogpb.GrpcLogEntry) error { return nil } +func (ns *noopSink) Close() error { return nil } + +// newWriterSink creates a binary log sink with the given writer. +// +// Write() marshals the proto message and writes it to the given writer. Each +// message is prefixed with a 4 byte big endian unsigned integer as the length. +// +// No buffer is done, Close() doesn't try to close the writer. +func newWriterSink(w io.Writer) Sink { + return &writerSink{out: w} +} + +type writerSink struct { + out io.Writer +} + +func (ws *writerSink) Write(e *binlogpb.GrpcLogEntry) error { + b, err := proto.Marshal(e) + if err != nil { + grpclogLogger.Errorf("binary logging: failed to marshal proto message: %v", err) + return err + } + hdr := make([]byte, 4) + binary.BigEndian.PutUint32(hdr, uint32(len(b))) + if _, err := ws.out.Write(hdr); err != nil { + return err + } + if _, err := ws.out.Write(b); err != nil { + return err + } + return nil +} + +func (ws *writerSink) Close() error { return nil } + +type bufferedSink struct { + mu sync.Mutex + closer io.Closer + out Sink // out is built on buf. + buf *bufio.Writer // buf is kept for flush. + flusherStarted bool + + writeTicker *time.Ticker + done chan struct{} +} + +func (fs *bufferedSink) Write(e *binlogpb.GrpcLogEntry) error { + fs.mu.Lock() + defer fs.mu.Unlock() + if !fs.flusherStarted { + // Start the write loop when Write is called. + fs.startFlushGoroutine() + fs.flusherStarted = true + } + if err := fs.out.Write(e); err != nil { + return err + } + return nil +} + +const ( + bufFlushDuration = 60 * time.Second +) + +func (fs *bufferedSink) startFlushGoroutine() { + fs.writeTicker = time.NewTicker(bufFlushDuration) + go func() { + for { + select { + case <-fs.done: + return + case <-fs.writeTicker.C: + } + fs.mu.Lock() + if err := fs.buf.Flush(); err != nil { + grpclogLogger.Warningf("failed to flush to Sink: %v", err) + } + fs.mu.Unlock() + } + }() +} + +func (fs *bufferedSink) Close() error { + fs.mu.Lock() + defer fs.mu.Unlock() + if fs.writeTicker != nil { + fs.writeTicker.Stop() + } + close(fs.done) + if err := fs.buf.Flush(); err != nil { + grpclogLogger.Warningf("failed to flush to Sink: %v", err) + } + if err := fs.closer.Close(); err != nil { + grpclogLogger.Warningf("failed to close the underlying WriterCloser: %v", err) + } + if err := fs.out.Close(); err != nil { + grpclogLogger.Warningf("failed to close the Sink: %v", err) + } + return nil +} + +// NewBufferedSink creates a binary log sink with the given WriteCloser. +// +// Write() marshals the proto message and writes it to the given writer. Each +// message is prefixed with a 4 byte big endian unsigned integer as the length. +// +// Content is kept in a buffer, and is flushed every 60 seconds. +// +// Close closes the WriteCloser. +func NewBufferedSink(o io.WriteCloser) Sink { + bufW := bufio.NewWriter(o) + return &bufferedSink{ + closer: o, + out: newWriterSink(bufW), + buf: bufW, + done: make(chan struct{}), + } +} diff --git a/vendor/google.golang.org/grpc/internal/buffer/unbounded.go b/vendor/google.golang.org/grpc/internal/buffer/unbounded.go new file mode 100644 index 0000000..9f6a0c1 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/buffer/unbounded.go @@ -0,0 +1,85 @@ +/* + * Copyright 2019 gRPC authors. + * + * 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 buffer provides an implementation of an unbounded buffer. +package buffer + +import "sync" + +// Unbounded is an implementation of an unbounded buffer which does not use +// extra goroutines. This is typically used for passing updates from one entity +// to another within gRPC. +// +// All methods on this type are thread-safe and don't block on anything except +// the underlying mutex used for synchronization. +// +// Unbounded supports values of any type to be stored in it by using a channel +// of `interface{}`. This means that a call to Put() incurs an extra memory +// allocation, and also that users need a type assertion while reading. For +// performance critical code paths, using Unbounded is strongly discouraged and +// defining a new type specific implementation of this buffer is preferred. See +// internal/transport/transport.go for an example of this. +type Unbounded struct { + c chan interface{} + mu sync.Mutex + backlog []interface{} +} + +// NewUnbounded returns a new instance of Unbounded. +func NewUnbounded() *Unbounded { + return &Unbounded{c: make(chan interface{}, 1)} +} + +// Put adds t to the unbounded buffer. +func (b *Unbounded) Put(t interface{}) { + b.mu.Lock() + if len(b.backlog) == 0 { + select { + case b.c <- t: + b.mu.Unlock() + return + default: + } + } + b.backlog = append(b.backlog, t) + b.mu.Unlock() +} + +// Load sends the earliest buffered data, if any, onto the read channel +// returned by Get(). Users are expected to call this every time they read a +// value from the read channel. +func (b *Unbounded) Load() { + b.mu.Lock() + if len(b.backlog) > 0 { + select { + case b.c <- b.backlog[0]: + b.backlog[0] = nil + b.backlog = b.backlog[1:] + default: + } + } + b.mu.Unlock() +} + +// Get returns a read channel on which values added to the buffer, via Put(), +// are sent on. +// +// Upon reading a value from this channel, users are expected to call Load() to +// send the next buffered value onto the channel if there is any. +func (b *Unbounded) Get() <-chan interface{} { + return b.c +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/funcs.go b/vendor/google.golang.org/grpc/internal/channelz/funcs.go new file mode 100644 index 0000000..777cbcd --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/funcs.go @@ -0,0 +1,789 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 channelz defines APIs for enabling channelz service, entry +// registration/deletion, and accessing channelz data. It also defines channelz +// metric struct formats. +// +// All APIs in this package are experimental. +package channelz + +import ( + "context" + "errors" + "fmt" + "sort" + "sync" + "sync/atomic" + "time" + + "google.golang.org/grpc/grpclog" +) + +const ( + defaultMaxTraceEntry int32 = 30 +) + +var ( + db dbWrapper + idGen idGenerator + // EntryPerPage defines the number of channelz entries to be shown on a web page. + EntryPerPage = int64(50) + curState int32 + maxTraceEntry = defaultMaxTraceEntry +) + +// TurnOn turns on channelz data collection. +func TurnOn() { + if !IsOn() { + db.set(newChannelMap()) + idGen.reset() + atomic.StoreInt32(&curState, 1) + } +} + +// IsOn returns whether channelz data collection is on. +func IsOn() bool { + return atomic.CompareAndSwapInt32(&curState, 1, 1) +} + +// SetMaxTraceEntry sets maximum number of trace entry per entity (i.e. channel/subchannel). +// Setting it to 0 will disable channel tracing. +func SetMaxTraceEntry(i int32) { + atomic.StoreInt32(&maxTraceEntry, i) +} + +// ResetMaxTraceEntryToDefault resets the maximum number of trace entry per entity to default. +func ResetMaxTraceEntryToDefault() { + atomic.StoreInt32(&maxTraceEntry, defaultMaxTraceEntry) +} + +func getMaxTraceEntry() int { + i := atomic.LoadInt32(&maxTraceEntry) + return int(i) +} + +// dbWarpper wraps around a reference to internal channelz data storage, and +// provide synchronized functionality to set and get the reference. +type dbWrapper struct { + mu sync.RWMutex + DB *channelMap +} + +func (d *dbWrapper) set(db *channelMap) { + d.mu.Lock() + d.DB = db + d.mu.Unlock() +} + +func (d *dbWrapper) get() *channelMap { + d.mu.RLock() + defer d.mu.RUnlock() + return d.DB +} + +// NewChannelzStorageForTesting initializes channelz data storage and id +// generator for testing purposes. +// +// Returns a cleanup function to be invoked by the test, which waits for up to +// 10s for all channelz state to be reset by the grpc goroutines when those +// entities get closed. This cleanup function helps with ensuring that tests +// don't mess up each other. +func NewChannelzStorageForTesting() (cleanup func() error) { + db.set(newChannelMap()) + idGen.reset() + + return func() error { + cm := db.get() + if cm == nil { + return nil + } + + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + ticker := time.NewTicker(10 * time.Millisecond) + defer ticker.Stop() + for { + cm.mu.RLock() + topLevelChannels, servers, channels, subChannels, listenSockets, normalSockets := len(cm.topLevelChannels), len(cm.servers), len(cm.channels), len(cm.subChannels), len(cm.listenSockets), len(cm.normalSockets) + cm.mu.RUnlock() + + if err := ctx.Err(); err != nil { + return fmt.Errorf("after 10s the channelz map has not been cleaned up yet, topchannels: %d, servers: %d, channels: %d, subchannels: %d, listen sockets: %d, normal sockets: %d", topLevelChannels, servers, channels, subChannels, listenSockets, normalSockets) + } + if topLevelChannels == 0 && servers == 0 && channels == 0 && subChannels == 0 && listenSockets == 0 && normalSockets == 0 { + return nil + } + <-ticker.C + } + } +} + +// GetTopChannels returns a slice of top channel's ChannelMetric, along with a +// boolean indicating whether there's more top channels to be queried for. +// +// The arg id specifies that only top channel with id at or above it will be included +// in the result. The returned slice is up to a length of the arg maxResults or +// EntryPerPage if maxResults is zero, and is sorted in ascending id order. +func GetTopChannels(id int64, maxResults int64) ([]*ChannelMetric, bool) { + return db.get().GetTopChannels(id, maxResults) +} + +// GetServers returns a slice of server's ServerMetric, along with a +// boolean indicating whether there's more servers to be queried for. +// +// The arg id specifies that only server with id at or above it will be included +// in the result. The returned slice is up to a length of the arg maxResults or +// EntryPerPage if maxResults is zero, and is sorted in ascending id order. +func GetServers(id int64, maxResults int64) ([]*ServerMetric, bool) { + return db.get().GetServers(id, maxResults) +} + +// GetServerSockets returns a slice of server's (identified by id) normal socket's +// SocketMetric, along with a boolean indicating whether there's more sockets to +// be queried for. +// +// The arg startID specifies that only sockets with id at or above it will be +// included in the result. The returned slice is up to a length of the arg maxResults +// or EntryPerPage if maxResults is zero, and is sorted in ascending id order. +func GetServerSockets(id int64, startID int64, maxResults int64) ([]*SocketMetric, bool) { + return db.get().GetServerSockets(id, startID, maxResults) +} + +// GetChannel returns the ChannelMetric for the channel (identified by id). +func GetChannel(id int64) *ChannelMetric { + return db.get().GetChannel(id) +} + +// GetSubChannel returns the SubChannelMetric for the subchannel (identified by id). +func GetSubChannel(id int64) *SubChannelMetric { + return db.get().GetSubChannel(id) +} + +// GetSocket returns the SocketInternalMetric for the socket (identified by id). +func GetSocket(id int64) *SocketMetric { + return db.get().GetSocket(id) +} + +// GetServer returns the ServerMetric for the server (identified by id). +func GetServer(id int64) *ServerMetric { + return db.get().GetServer(id) +} + +// RegisterChannel registers the given channel c in the channelz database with +// ref as its reference name, and adds it to the child list of its parent +// (identified by pid). pid == nil means no parent. +// +// Returns a unique channelz identifier assigned to this channel. +// +// If channelz is not turned ON, the channelz database is not mutated. +func RegisterChannel(c Channel, pid *Identifier, ref string) *Identifier { + id := idGen.genID() + var parent int64 + isTopChannel := true + if pid != nil { + isTopChannel = false + parent = pid.Int() + } + + if !IsOn() { + return newIdentifer(RefChannel, id, pid) + } + + cn := &channel{ + refName: ref, + c: c, + subChans: make(map[int64]string), + nestedChans: make(map[int64]string), + id: id, + pid: parent, + trace: &channelTrace{createdTime: time.Now(), events: make([]*TraceEvent, 0, getMaxTraceEntry())}, + } + db.get().addChannel(id, cn, isTopChannel, parent) + return newIdentifer(RefChannel, id, pid) +} + +// RegisterSubChannel registers the given subChannel c in the channelz database +// with ref as its reference name, and adds it to the child list of its parent +// (identified by pid). +// +// Returns a unique channelz identifier assigned to this subChannel. +// +// If channelz is not turned ON, the channelz database is not mutated. +func RegisterSubChannel(c Channel, pid *Identifier, ref string) (*Identifier, error) { + if pid == nil { + return nil, errors.New("a SubChannel's parent id cannot be nil") + } + id := idGen.genID() + if !IsOn() { + return newIdentifer(RefSubChannel, id, pid), nil + } + + sc := &subChannel{ + refName: ref, + c: c, + sockets: make(map[int64]string), + id: id, + pid: pid.Int(), + trace: &channelTrace{createdTime: time.Now(), events: make([]*TraceEvent, 0, getMaxTraceEntry())}, + } + db.get().addSubChannel(id, sc, pid.Int()) + return newIdentifer(RefSubChannel, id, pid), nil +} + +// RegisterServer registers the given server s in channelz database. It returns +// the unique channelz tracking id assigned to this server. +// +// If channelz is not turned ON, the channelz database is not mutated. +func RegisterServer(s Server, ref string) *Identifier { + id := idGen.genID() + if !IsOn() { + return newIdentifer(RefServer, id, nil) + } + + svr := &server{ + refName: ref, + s: s, + sockets: make(map[int64]string), + listenSockets: make(map[int64]string), + id: id, + } + db.get().addServer(id, svr) + return newIdentifer(RefServer, id, nil) +} + +// RegisterListenSocket registers the given listen socket s in channelz database +// with ref as its reference name, and add it to the child list of its parent +// (identified by pid). It returns the unique channelz tracking id assigned to +// this listen socket. +// +// If channelz is not turned ON, the channelz database is not mutated. +func RegisterListenSocket(s Socket, pid *Identifier, ref string) (*Identifier, error) { + if pid == nil { + return nil, errors.New("a ListenSocket's parent id cannot be 0") + } + id := idGen.genID() + if !IsOn() { + return newIdentifer(RefListenSocket, id, pid), nil + } + + ls := &listenSocket{refName: ref, s: s, id: id, pid: pid.Int()} + db.get().addListenSocket(id, ls, pid.Int()) + return newIdentifer(RefListenSocket, id, pid), nil +} + +// RegisterNormalSocket registers the given normal socket s in channelz database +// with ref as its reference name, and adds it to the child list of its parent +// (identified by pid). It returns the unique channelz tracking id assigned to +// this normal socket. +// +// If channelz is not turned ON, the channelz database is not mutated. +func RegisterNormalSocket(s Socket, pid *Identifier, ref string) (*Identifier, error) { + if pid == nil { + return nil, errors.New("a NormalSocket's parent id cannot be 0") + } + id := idGen.genID() + if !IsOn() { + return newIdentifer(RefNormalSocket, id, pid), nil + } + + ns := &normalSocket{refName: ref, s: s, id: id, pid: pid.Int()} + db.get().addNormalSocket(id, ns, pid.Int()) + return newIdentifer(RefNormalSocket, id, pid), nil +} + +// RemoveEntry removes an entry with unique channelz tracking id to be id from +// channelz database. +// +// If channelz is not turned ON, this function is a no-op. +func RemoveEntry(id *Identifier) { + if !IsOn() { + return + } + db.get().removeEntry(id.Int()) +} + +// TraceEventDesc is what the caller of AddTraceEvent should provide to describe +// the event to be added to the channel trace. +// +// The Parent field is optional. It is used for an event that will be recorded +// in the entity's parent trace. +type TraceEventDesc struct { + Desc string + Severity Severity + Parent *TraceEventDesc +} + +// AddTraceEvent adds trace related to the entity with specified id, using the +// provided TraceEventDesc. +// +// If channelz is not turned ON, this will simply log the event descriptions. +func AddTraceEvent(l grpclog.DepthLoggerV2, id *Identifier, depth int, desc *TraceEventDesc) { + // Log only the trace description associated with the bottom most entity. + switch desc.Severity { + case CtUnknown, CtInfo: + l.InfoDepth(depth+1, withParens(id)+desc.Desc) + case CtWarning: + l.WarningDepth(depth+1, withParens(id)+desc.Desc) + case CtError: + l.ErrorDepth(depth+1, withParens(id)+desc.Desc) + } + + if getMaxTraceEntry() == 0 { + return + } + if IsOn() { + db.get().traceEvent(id.Int(), desc) + } +} + +// channelMap is the storage data structure for channelz. +// Methods of channelMap can be divided in two two categories with respect to locking. +// 1. Methods acquire the global lock. +// 2. Methods that can only be called when global lock is held. +// A second type of method need always to be called inside a first type of method. +type channelMap struct { + mu sync.RWMutex + topLevelChannels map[int64]struct{} + servers map[int64]*server + channels map[int64]*channel + subChannels map[int64]*subChannel + listenSockets map[int64]*listenSocket + normalSockets map[int64]*normalSocket +} + +func newChannelMap() *channelMap { + return &channelMap{ + topLevelChannels: make(map[int64]struct{}), + channels: make(map[int64]*channel), + listenSockets: make(map[int64]*listenSocket), + normalSockets: make(map[int64]*normalSocket), + servers: make(map[int64]*server), + subChannels: make(map[int64]*subChannel), + } +} + +func (c *channelMap) addServer(id int64, s *server) { + c.mu.Lock() + s.cm = c + c.servers[id] = s + c.mu.Unlock() +} + +func (c *channelMap) addChannel(id int64, cn *channel, isTopChannel bool, pid int64) { + c.mu.Lock() + cn.cm = c + cn.trace.cm = c + c.channels[id] = cn + if isTopChannel { + c.topLevelChannels[id] = struct{}{} + } else { + c.findEntry(pid).addChild(id, cn) + } + c.mu.Unlock() +} + +func (c *channelMap) addSubChannel(id int64, sc *subChannel, pid int64) { + c.mu.Lock() + sc.cm = c + sc.trace.cm = c + c.subChannels[id] = sc + c.findEntry(pid).addChild(id, sc) + c.mu.Unlock() +} + +func (c *channelMap) addListenSocket(id int64, ls *listenSocket, pid int64) { + c.mu.Lock() + ls.cm = c + c.listenSockets[id] = ls + c.findEntry(pid).addChild(id, ls) + c.mu.Unlock() +} + +func (c *channelMap) addNormalSocket(id int64, ns *normalSocket, pid int64) { + c.mu.Lock() + ns.cm = c + c.normalSockets[id] = ns + c.findEntry(pid).addChild(id, ns) + c.mu.Unlock() +} + +// removeEntry triggers the removal of an entry, which may not indeed delete the entry, if it has to +// wait on the deletion of its children and until no other entity's channel trace references it. +// It may lead to a chain of entry deletion. For example, deleting the last socket of a gracefully +// shutting down server will lead to the server being also deleted. +func (c *channelMap) removeEntry(id int64) { + c.mu.Lock() + c.findEntry(id).triggerDelete() + c.mu.Unlock() +} + +// c.mu must be held by the caller +func (c *channelMap) decrTraceRefCount(id int64) { + e := c.findEntry(id) + if v, ok := e.(tracedChannel); ok { + v.decrTraceRefCount() + e.deleteSelfIfReady() + } +} + +// c.mu must be held by the caller. +func (c *channelMap) findEntry(id int64) entry { + var v entry + var ok bool + if v, ok = c.channels[id]; ok { + return v + } + if v, ok = c.subChannels[id]; ok { + return v + } + if v, ok = c.servers[id]; ok { + return v + } + if v, ok = c.listenSockets[id]; ok { + return v + } + if v, ok = c.normalSockets[id]; ok { + return v + } + return &dummyEntry{idNotFound: id} +} + +// c.mu must be held by the caller +// deleteEntry simply deletes an entry from the channelMap. Before calling this +// method, caller must check this entry is ready to be deleted, i.e removeEntry() +// has been called on it, and no children still exist. +// Conditionals are ordered by the expected frequency of deletion of each entity +// type, in order to optimize performance. +func (c *channelMap) deleteEntry(id int64) { + var ok bool + if _, ok = c.normalSockets[id]; ok { + delete(c.normalSockets, id) + return + } + if _, ok = c.subChannels[id]; ok { + delete(c.subChannels, id) + return + } + if _, ok = c.channels[id]; ok { + delete(c.channels, id) + delete(c.topLevelChannels, id) + return + } + if _, ok = c.listenSockets[id]; ok { + delete(c.listenSockets, id) + return + } + if _, ok = c.servers[id]; ok { + delete(c.servers, id) + return + } +} + +func (c *channelMap) traceEvent(id int64, desc *TraceEventDesc) { + c.mu.Lock() + child := c.findEntry(id) + childTC, ok := child.(tracedChannel) + if !ok { + c.mu.Unlock() + return + } + childTC.getChannelTrace().append(&TraceEvent{Desc: desc.Desc, Severity: desc.Severity, Timestamp: time.Now()}) + if desc.Parent != nil { + parent := c.findEntry(child.getParentID()) + var chanType RefChannelType + switch child.(type) { + case *channel: + chanType = RefChannel + case *subChannel: + chanType = RefSubChannel + } + if parentTC, ok := parent.(tracedChannel); ok { + parentTC.getChannelTrace().append(&TraceEvent{ + Desc: desc.Parent.Desc, + Severity: desc.Parent.Severity, + Timestamp: time.Now(), + RefID: id, + RefName: childTC.getRefName(), + RefType: chanType, + }) + childTC.incrTraceRefCount() + } + } + c.mu.Unlock() +} + +type int64Slice []int64 + +func (s int64Slice) Len() int { return len(s) } +func (s int64Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } +func (s int64Slice) Less(i, j int) bool { return s[i] < s[j] } + +func copyMap(m map[int64]string) map[int64]string { + n := make(map[int64]string) + for k, v := range m { + n[k] = v + } + return n +} + +func min(a, b int64) int64 { + if a < b { + return a + } + return b +} + +func (c *channelMap) GetTopChannels(id int64, maxResults int64) ([]*ChannelMetric, bool) { + if maxResults <= 0 { + maxResults = EntryPerPage + } + c.mu.RLock() + l := int64(len(c.topLevelChannels)) + ids := make([]int64, 0, l) + cns := make([]*channel, 0, min(l, maxResults)) + + for k := range c.topLevelChannels { + ids = append(ids, k) + } + sort.Sort(int64Slice(ids)) + idx := sort.Search(len(ids), func(i int) bool { return ids[i] >= id }) + count := int64(0) + var end bool + var t []*ChannelMetric + for i, v := range ids[idx:] { + if count == maxResults { + break + } + if cn, ok := c.channels[v]; ok { + cns = append(cns, cn) + t = append(t, &ChannelMetric{ + NestedChans: copyMap(cn.nestedChans), + SubChans: copyMap(cn.subChans), + }) + count++ + } + if i == len(ids[idx:])-1 { + end = true + break + } + } + c.mu.RUnlock() + if count == 0 { + end = true + } + + for i, cn := range cns { + t[i].ChannelData = cn.c.ChannelzMetric() + t[i].ID = cn.id + t[i].RefName = cn.refName + t[i].Trace = cn.trace.dumpData() + } + return t, end +} + +func (c *channelMap) GetServers(id, maxResults int64) ([]*ServerMetric, bool) { + if maxResults <= 0 { + maxResults = EntryPerPage + } + c.mu.RLock() + l := int64(len(c.servers)) + ids := make([]int64, 0, l) + ss := make([]*server, 0, min(l, maxResults)) + for k := range c.servers { + ids = append(ids, k) + } + sort.Sort(int64Slice(ids)) + idx := sort.Search(len(ids), func(i int) bool { return ids[i] >= id }) + count := int64(0) + var end bool + var s []*ServerMetric + for i, v := range ids[idx:] { + if count == maxResults { + break + } + if svr, ok := c.servers[v]; ok { + ss = append(ss, svr) + s = append(s, &ServerMetric{ + ListenSockets: copyMap(svr.listenSockets), + }) + count++ + } + if i == len(ids[idx:])-1 { + end = true + break + } + } + c.mu.RUnlock() + if count == 0 { + end = true + } + + for i, svr := range ss { + s[i].ServerData = svr.s.ChannelzMetric() + s[i].ID = svr.id + s[i].RefName = svr.refName + } + return s, end +} + +func (c *channelMap) GetServerSockets(id int64, startID int64, maxResults int64) ([]*SocketMetric, bool) { + if maxResults <= 0 { + maxResults = EntryPerPage + } + var svr *server + var ok bool + c.mu.RLock() + if svr, ok = c.servers[id]; !ok { + // server with id doesn't exist. + c.mu.RUnlock() + return nil, true + } + svrskts := svr.sockets + l := int64(len(svrskts)) + ids := make([]int64, 0, l) + sks := make([]*normalSocket, 0, min(l, maxResults)) + for k := range svrskts { + ids = append(ids, k) + } + sort.Sort(int64Slice(ids)) + idx := sort.Search(len(ids), func(i int) bool { return ids[i] >= startID }) + count := int64(0) + var end bool + for i, v := range ids[idx:] { + if count == maxResults { + break + } + if ns, ok := c.normalSockets[v]; ok { + sks = append(sks, ns) + count++ + } + if i == len(ids[idx:])-1 { + end = true + break + } + } + c.mu.RUnlock() + if count == 0 { + end = true + } + s := make([]*SocketMetric, 0, len(sks)) + for _, ns := range sks { + sm := &SocketMetric{} + sm.SocketData = ns.s.ChannelzMetric() + sm.ID = ns.id + sm.RefName = ns.refName + s = append(s, sm) + } + return s, end +} + +func (c *channelMap) GetChannel(id int64) *ChannelMetric { + cm := &ChannelMetric{} + var cn *channel + var ok bool + c.mu.RLock() + if cn, ok = c.channels[id]; !ok { + // channel with id doesn't exist. + c.mu.RUnlock() + return nil + } + cm.NestedChans = copyMap(cn.nestedChans) + cm.SubChans = copyMap(cn.subChans) + // cn.c can be set to &dummyChannel{} when deleteSelfFromMap is called. Save a copy of cn.c when + // holding the lock to prevent potential data race. + chanCopy := cn.c + c.mu.RUnlock() + cm.ChannelData = chanCopy.ChannelzMetric() + cm.ID = cn.id + cm.RefName = cn.refName + cm.Trace = cn.trace.dumpData() + return cm +} + +func (c *channelMap) GetSubChannel(id int64) *SubChannelMetric { + cm := &SubChannelMetric{} + var sc *subChannel + var ok bool + c.mu.RLock() + if sc, ok = c.subChannels[id]; !ok { + // subchannel with id doesn't exist. + c.mu.RUnlock() + return nil + } + cm.Sockets = copyMap(sc.sockets) + // sc.c can be set to &dummyChannel{} when deleteSelfFromMap is called. Save a copy of sc.c when + // holding the lock to prevent potential data race. + chanCopy := sc.c + c.mu.RUnlock() + cm.ChannelData = chanCopy.ChannelzMetric() + cm.ID = sc.id + cm.RefName = sc.refName + cm.Trace = sc.trace.dumpData() + return cm +} + +func (c *channelMap) GetSocket(id int64) *SocketMetric { + sm := &SocketMetric{} + c.mu.RLock() + if ls, ok := c.listenSockets[id]; ok { + c.mu.RUnlock() + sm.SocketData = ls.s.ChannelzMetric() + sm.ID = ls.id + sm.RefName = ls.refName + return sm + } + if ns, ok := c.normalSockets[id]; ok { + c.mu.RUnlock() + sm.SocketData = ns.s.ChannelzMetric() + sm.ID = ns.id + sm.RefName = ns.refName + return sm + } + c.mu.RUnlock() + return nil +} + +func (c *channelMap) GetServer(id int64) *ServerMetric { + sm := &ServerMetric{} + var svr *server + var ok bool + c.mu.RLock() + if svr, ok = c.servers[id]; !ok { + c.mu.RUnlock() + return nil + } + sm.ListenSockets = copyMap(svr.listenSockets) + c.mu.RUnlock() + sm.ID = svr.id + sm.RefName = svr.refName + sm.ServerData = svr.s.ChannelzMetric() + return sm +} + +type idGenerator struct { + id int64 +} + +func (i *idGenerator) reset() { + atomic.StoreInt64(&i.id, 0) +} + +func (i *idGenerator) genID() int64 { + return atomic.AddInt64(&i.id, 1) +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/id.go b/vendor/google.golang.org/grpc/internal/channelz/id.go new file mode 100644 index 0000000..c9a27ac --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/id.go @@ -0,0 +1,75 @@ +/* + * + * Copyright 2022 gRPC authors. + * + * 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 channelz + +import "fmt" + +// Identifier is an opaque identifier which uniquely identifies an entity in the +// channelz database. +type Identifier struct { + typ RefChannelType + id int64 + str string + pid *Identifier +} + +// Type returns the entity type corresponding to id. +func (id *Identifier) Type() RefChannelType { + return id.typ +} + +// Int returns the integer identifier corresponding to id. +func (id *Identifier) Int() int64 { + return id.id +} + +// String returns a string representation of the entity corresponding to id. +// +// This includes some information about the parent as well. Examples: +// Top-level channel: [Channel #channel-number] +// Nested channel: [Channel #parent-channel-number Channel #channel-number] +// Sub channel: [Channel #parent-channel SubChannel #subchannel-number] +func (id *Identifier) String() string { + return id.str +} + +// Equal returns true if other is the same as id. +func (id *Identifier) Equal(other *Identifier) bool { + if (id != nil) != (other != nil) { + return false + } + if id == nil && other == nil { + return true + } + return id.typ == other.typ && id.id == other.id && id.pid == other.pid +} + +// NewIdentifierForTesting returns a new opaque identifier to be used only for +// testing purposes. +func NewIdentifierForTesting(typ RefChannelType, id int64, pid *Identifier) *Identifier { + return newIdentifer(typ, id, pid) +} + +func newIdentifer(typ RefChannelType, id int64, pid *Identifier) *Identifier { + str := fmt.Sprintf("%s #%d", typ, id) + if pid != nil { + str = fmt.Sprintf("%s %s", pid, str) + } + return &Identifier{typ: typ, id: id, str: str, pid: pid} +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/logging.go b/vendor/google.golang.org/grpc/internal/channelz/logging.go new file mode 100644 index 0000000..8e13a3d --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/logging.go @@ -0,0 +1,79 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 channelz + +import ( + "fmt" + + "google.golang.org/grpc/grpclog" +) + +var logger = grpclog.Component("channelz") + +func withParens(id *Identifier) string { + return "[" + id.String() + "] " +} + +// Info logs and adds a trace event if channelz is on. +func Info(l grpclog.DepthLoggerV2, id *Identifier, args ...interface{}) { + AddTraceEvent(l, id, 1, &TraceEventDesc{ + Desc: fmt.Sprint(args...), + Severity: CtInfo, + }) +} + +// Infof logs and adds a trace event if channelz is on. +func Infof(l grpclog.DepthLoggerV2, id *Identifier, format string, args ...interface{}) { + AddTraceEvent(l, id, 1, &TraceEventDesc{ + Desc: fmt.Sprintf(format, args...), + Severity: CtInfo, + }) +} + +// Warning logs and adds a trace event if channelz is on. +func Warning(l grpclog.DepthLoggerV2, id *Identifier, args ...interface{}) { + AddTraceEvent(l, id, 1, &TraceEventDesc{ + Desc: fmt.Sprint(args...), + Severity: CtWarning, + }) +} + +// Warningf logs and adds a trace event if channelz is on. +func Warningf(l grpclog.DepthLoggerV2, id *Identifier, format string, args ...interface{}) { + AddTraceEvent(l, id, 1, &TraceEventDesc{ + Desc: fmt.Sprintf(format, args...), + Severity: CtWarning, + }) +} + +// Error logs and adds a trace event if channelz is on. +func Error(l grpclog.DepthLoggerV2, id *Identifier, args ...interface{}) { + AddTraceEvent(l, id, 1, &TraceEventDesc{ + Desc: fmt.Sprint(args...), + Severity: CtError, + }) +} + +// Errorf logs and adds a trace event if channelz is on. +func Errorf(l grpclog.DepthLoggerV2, id *Identifier, format string, args ...interface{}) { + AddTraceEvent(l, id, 1, &TraceEventDesc{ + Desc: fmt.Sprintf(format, args...), + Severity: CtError, + }) +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/types.go b/vendor/google.golang.org/grpc/internal/channelz/types.go new file mode 100644 index 0000000..7b2f350 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/types.go @@ -0,0 +1,722 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 channelz + +import ( + "net" + "sync" + "sync/atomic" + "time" + + "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/credentials" +) + +// entry represents a node in the channelz database. +type entry interface { + // addChild adds a child e, whose channelz id is id to child list + addChild(id int64, e entry) + // deleteChild deletes a child with channelz id to be id from child list + deleteChild(id int64) + // triggerDelete tries to delete self from channelz database. However, if child + // list is not empty, then deletion from the database is on hold until the last + // child is deleted from database. + triggerDelete() + // deleteSelfIfReady check whether triggerDelete() has been called before, and whether child + // list is now empty. If both conditions are met, then delete self from database. + deleteSelfIfReady() + // getParentID returns parent ID of the entry. 0 value parent ID means no parent. + getParentID() int64 +} + +// dummyEntry is a fake entry to handle entry not found case. +type dummyEntry struct { + idNotFound int64 +} + +func (d *dummyEntry) addChild(id int64, e entry) { + // Note: It is possible for a normal program to reach here under race condition. + // For example, there could be a race between ClientConn.Close() info being propagated + // to addrConn and http2Client. ClientConn.Close() cancel the context and result + // in http2Client to error. The error info is then caught by transport monitor + // and before addrConn.tearDown() is called in side ClientConn.Close(). Therefore, + // the addrConn will create a new transport. And when registering the new transport in + // channelz, its parent addrConn could have already been torn down and deleted + // from channelz tracking, and thus reach the code here. + logger.Infof("attempt to add child of type %T with id %d to a parent (id=%d) that doesn't currently exist", e, id, d.idNotFound) +} + +func (d *dummyEntry) deleteChild(id int64) { + // It is possible for a normal program to reach here under race condition. + // Refer to the example described in addChild(). + logger.Infof("attempt to delete child with id %d from a parent (id=%d) that doesn't currently exist", id, d.idNotFound) +} + +func (d *dummyEntry) triggerDelete() { + logger.Warningf("attempt to delete an entry (id=%d) that doesn't currently exist", d.idNotFound) +} + +func (*dummyEntry) deleteSelfIfReady() { + // code should not reach here. deleteSelfIfReady is always called on an existing entry. +} + +func (*dummyEntry) getParentID() int64 { + return 0 +} + +// ChannelMetric defines the info channelz provides for a specific Channel, which +// includes ChannelInternalMetric and channelz-specific data, such as channelz id, +// child list, etc. +type ChannelMetric struct { + // ID is the channelz id of this channel. + ID int64 + // RefName is the human readable reference string of this channel. + RefName string + // ChannelData contains channel internal metric reported by the channel through + // ChannelzMetric(). + ChannelData *ChannelInternalMetric + // NestedChans tracks the nested channel type children of this channel in the format of + // a map from nested channel channelz id to corresponding reference string. + NestedChans map[int64]string + // SubChans tracks the subchannel type children of this channel in the format of a + // map from subchannel channelz id to corresponding reference string. + SubChans map[int64]string + // Sockets tracks the socket type children of this channel in the format of a map + // from socket channelz id to corresponding reference string. + // Note current grpc implementation doesn't allow channel having sockets directly, + // therefore, this is field is unused. + Sockets map[int64]string + // Trace contains the most recent traced events. + Trace *ChannelTrace +} + +// SubChannelMetric defines the info channelz provides for a specific SubChannel, +// which includes ChannelInternalMetric and channelz-specific data, such as +// channelz id, child list, etc. +type SubChannelMetric struct { + // ID is the channelz id of this subchannel. + ID int64 + // RefName is the human readable reference string of this subchannel. + RefName string + // ChannelData contains subchannel internal metric reported by the subchannel + // through ChannelzMetric(). + ChannelData *ChannelInternalMetric + // NestedChans tracks the nested channel type children of this subchannel in the format of + // a map from nested channel channelz id to corresponding reference string. + // Note current grpc implementation doesn't allow subchannel to have nested channels + // as children, therefore, this field is unused. + NestedChans map[int64]string + // SubChans tracks the subchannel type children of this subchannel in the format of a + // map from subchannel channelz id to corresponding reference string. + // Note current grpc implementation doesn't allow subchannel to have subchannels + // as children, therefore, this field is unused. + SubChans map[int64]string + // Sockets tracks the socket type children of this subchannel in the format of a map + // from socket channelz id to corresponding reference string. + Sockets map[int64]string + // Trace contains the most recent traced events. + Trace *ChannelTrace +} + +// ChannelInternalMetric defines the struct that the implementor of Channel interface +// should return from ChannelzMetric(). +type ChannelInternalMetric struct { + // current connectivity state of the channel. + State connectivity.State + // The target this channel originally tried to connect to. May be absent + Target string + // The number of calls started on the channel. + CallsStarted int64 + // The number of calls that have completed with an OK status. + CallsSucceeded int64 + // The number of calls that have a completed with a non-OK status. + CallsFailed int64 + // The last time a call was started on the channel. + LastCallStartedTimestamp time.Time +} + +// ChannelTrace stores traced events on a channel/subchannel and related info. +type ChannelTrace struct { + // EventNum is the number of events that ever got traced (i.e. including those that have been deleted) + EventNum int64 + // CreationTime is the creation time of the trace. + CreationTime time.Time + // Events stores the most recent trace events (up to $maxTraceEntry, newer event will overwrite the + // oldest one) + Events []*TraceEvent +} + +// TraceEvent represent a single trace event +type TraceEvent struct { + // Desc is a simple description of the trace event. + Desc string + // Severity states the severity of this trace event. + Severity Severity + // Timestamp is the event time. + Timestamp time.Time + // RefID is the id of the entity that gets referenced in the event. RefID is 0 if no other entity is + // involved in this event. + // e.g. SubChannel (id: 4[]) Created. --> RefID = 4, RefName = "" (inside []) + RefID int64 + // RefName is the reference name for the entity that gets referenced in the event. + RefName string + // RefType indicates the referenced entity type, i.e Channel or SubChannel. + RefType RefChannelType +} + +// Channel is the interface that should be satisfied in order to be tracked by +// channelz as Channel or SubChannel. +type Channel interface { + ChannelzMetric() *ChannelInternalMetric +} + +type dummyChannel struct{} + +func (d *dummyChannel) ChannelzMetric() *ChannelInternalMetric { + return &ChannelInternalMetric{} +} + +type channel struct { + refName string + c Channel + closeCalled bool + nestedChans map[int64]string + subChans map[int64]string + id int64 + pid int64 + cm *channelMap + trace *channelTrace + // traceRefCount is the number of trace events that reference this channel. + // Non-zero traceRefCount means the trace of this channel cannot be deleted. + traceRefCount int32 +} + +func (c *channel) addChild(id int64, e entry) { + switch v := e.(type) { + case *subChannel: + c.subChans[id] = v.refName + case *channel: + c.nestedChans[id] = v.refName + default: + logger.Errorf("cannot add a child (id = %d) of type %T to a channel", id, e) + } +} + +func (c *channel) deleteChild(id int64) { + delete(c.subChans, id) + delete(c.nestedChans, id) + c.deleteSelfIfReady() +} + +func (c *channel) triggerDelete() { + c.closeCalled = true + c.deleteSelfIfReady() +} + +func (c *channel) getParentID() int64 { + return c.pid +} + +// deleteSelfFromTree tries to delete the channel from the channelz entry relation tree, which means +// deleting the channel reference from its parent's child list. +// +// In order for a channel to be deleted from the tree, it must meet the criteria that, removal of the +// corresponding grpc object has been invoked, and the channel does not have any children left. +// +// The returned boolean value indicates whether the channel has been successfully deleted from tree. +func (c *channel) deleteSelfFromTree() (deleted bool) { + if !c.closeCalled || len(c.subChans)+len(c.nestedChans) != 0 { + return false + } + // not top channel + if c.pid != 0 { + c.cm.findEntry(c.pid).deleteChild(c.id) + } + return true +} + +// deleteSelfFromMap checks whether it is valid to delete the channel from the map, which means +// deleting the channel from channelz's tracking entirely. Users can no longer use id to query the +// channel, and its memory will be garbage collected. +// +// The trace reference count of the channel must be 0 in order to be deleted from the map. This is +// specified in the channel tracing gRFC that as long as some other trace has reference to an entity, +// the trace of the referenced entity must not be deleted. In order to release the resource allocated +// by grpc, the reference to the grpc object is reset to a dummy object. +// +// deleteSelfFromMap must be called after deleteSelfFromTree returns true. +// +// It returns a bool to indicate whether the channel can be safely deleted from map. +func (c *channel) deleteSelfFromMap() (delete bool) { + if c.getTraceRefCount() != 0 { + c.c = &dummyChannel{} + return false + } + return true +} + +// deleteSelfIfReady tries to delete the channel itself from the channelz database. +// The delete process includes two steps: +// 1. delete the channel from the entry relation tree, i.e. delete the channel reference from its +// parent's child list. +// 2. delete the channel from the map, i.e. delete the channel entirely from channelz. Lookup by id +// will return entry not found error. +func (c *channel) deleteSelfIfReady() { + if !c.deleteSelfFromTree() { + return + } + if !c.deleteSelfFromMap() { + return + } + c.cm.deleteEntry(c.id) + c.trace.clear() +} + +func (c *channel) getChannelTrace() *channelTrace { + return c.trace +} + +func (c *channel) incrTraceRefCount() { + atomic.AddInt32(&c.traceRefCount, 1) +} + +func (c *channel) decrTraceRefCount() { + atomic.AddInt32(&c.traceRefCount, -1) +} + +func (c *channel) getTraceRefCount() int { + i := atomic.LoadInt32(&c.traceRefCount) + return int(i) +} + +func (c *channel) getRefName() string { + return c.refName +} + +type subChannel struct { + refName string + c Channel + closeCalled bool + sockets map[int64]string + id int64 + pid int64 + cm *channelMap + trace *channelTrace + traceRefCount int32 +} + +func (sc *subChannel) addChild(id int64, e entry) { + if v, ok := e.(*normalSocket); ok { + sc.sockets[id] = v.refName + } else { + logger.Errorf("cannot add a child (id = %d) of type %T to a subChannel", id, e) + } +} + +func (sc *subChannel) deleteChild(id int64) { + delete(sc.sockets, id) + sc.deleteSelfIfReady() +} + +func (sc *subChannel) triggerDelete() { + sc.closeCalled = true + sc.deleteSelfIfReady() +} + +func (sc *subChannel) getParentID() int64 { + return sc.pid +} + +// deleteSelfFromTree tries to delete the subchannel from the channelz entry relation tree, which +// means deleting the subchannel reference from its parent's child list. +// +// In order for a subchannel to be deleted from the tree, it must meet the criteria that, removal of +// the corresponding grpc object has been invoked, and the subchannel does not have any children left. +// +// The returned boolean value indicates whether the channel has been successfully deleted from tree. +func (sc *subChannel) deleteSelfFromTree() (deleted bool) { + if !sc.closeCalled || len(sc.sockets) != 0 { + return false + } + sc.cm.findEntry(sc.pid).deleteChild(sc.id) + return true +} + +// deleteSelfFromMap checks whether it is valid to delete the subchannel from the map, which means +// deleting the subchannel from channelz's tracking entirely. Users can no longer use id to query +// the subchannel, and its memory will be garbage collected. +// +// The trace reference count of the subchannel must be 0 in order to be deleted from the map. This is +// specified in the channel tracing gRFC that as long as some other trace has reference to an entity, +// the trace of the referenced entity must not be deleted. In order to release the resource allocated +// by grpc, the reference to the grpc object is reset to a dummy object. +// +// deleteSelfFromMap must be called after deleteSelfFromTree returns true. +// +// It returns a bool to indicate whether the channel can be safely deleted from map. +func (sc *subChannel) deleteSelfFromMap() (delete bool) { + if sc.getTraceRefCount() != 0 { + // free the grpc struct (i.e. addrConn) + sc.c = &dummyChannel{} + return false + } + return true +} + +// deleteSelfIfReady tries to delete the subchannel itself from the channelz database. +// The delete process includes two steps: +// 1. delete the subchannel from the entry relation tree, i.e. delete the subchannel reference from +// its parent's child list. +// 2. delete the subchannel from the map, i.e. delete the subchannel entirely from channelz. Lookup +// by id will return entry not found error. +func (sc *subChannel) deleteSelfIfReady() { + if !sc.deleteSelfFromTree() { + return + } + if !sc.deleteSelfFromMap() { + return + } + sc.cm.deleteEntry(sc.id) + sc.trace.clear() +} + +func (sc *subChannel) getChannelTrace() *channelTrace { + return sc.trace +} + +func (sc *subChannel) incrTraceRefCount() { + atomic.AddInt32(&sc.traceRefCount, 1) +} + +func (sc *subChannel) decrTraceRefCount() { + atomic.AddInt32(&sc.traceRefCount, -1) +} + +func (sc *subChannel) getTraceRefCount() int { + i := atomic.LoadInt32(&sc.traceRefCount) + return int(i) +} + +func (sc *subChannel) getRefName() string { + return sc.refName +} + +// SocketMetric defines the info channelz provides for a specific Socket, which +// includes SocketInternalMetric and channelz-specific data, such as channelz id, etc. +type SocketMetric struct { + // ID is the channelz id of this socket. + ID int64 + // RefName is the human readable reference string of this socket. + RefName string + // SocketData contains socket internal metric reported by the socket through + // ChannelzMetric(). + SocketData *SocketInternalMetric +} + +// SocketInternalMetric defines the struct that the implementor of Socket interface +// should return from ChannelzMetric(). +type SocketInternalMetric struct { + // The number of streams that have been started. + StreamsStarted int64 + // The number of streams that have ended successfully: + // On client side, receiving frame with eos bit set. + // On server side, sending frame with eos bit set. + StreamsSucceeded int64 + // The number of streams that have ended unsuccessfully: + // On client side, termination without receiving frame with eos bit set. + // On server side, termination without sending frame with eos bit set. + StreamsFailed int64 + // The number of messages successfully sent on this socket. + MessagesSent int64 + MessagesReceived int64 + // The number of keep alives sent. This is typically implemented with HTTP/2 + // ping messages. + KeepAlivesSent int64 + // The last time a stream was created by this endpoint. Usually unset for + // servers. + LastLocalStreamCreatedTimestamp time.Time + // The last time a stream was created by the remote endpoint. Usually unset + // for clients. + LastRemoteStreamCreatedTimestamp time.Time + // The last time a message was sent by this endpoint. + LastMessageSentTimestamp time.Time + // The last time a message was received by this endpoint. + LastMessageReceivedTimestamp time.Time + // The amount of window, granted to the local endpoint by the remote endpoint. + // This may be slightly out of date due to network latency. This does NOT + // include stream level or TCP level flow control info. + LocalFlowControlWindow int64 + // The amount of window, granted to the remote endpoint by the local endpoint. + // This may be slightly out of date due to network latency. This does NOT + // include stream level or TCP level flow control info. + RemoteFlowControlWindow int64 + // The locally bound address. + LocalAddr net.Addr + // The remote bound address. May be absent. + RemoteAddr net.Addr + // Optional, represents the name of the remote endpoint, if different than + // the original target name. + RemoteName string + SocketOptions *SocketOptionData + Security credentials.ChannelzSecurityValue +} + +// Socket is the interface that should be satisfied in order to be tracked by +// channelz as Socket. +type Socket interface { + ChannelzMetric() *SocketInternalMetric +} + +type listenSocket struct { + refName string + s Socket + id int64 + pid int64 + cm *channelMap +} + +func (ls *listenSocket) addChild(id int64, e entry) { + logger.Errorf("cannot add a child (id = %d) of type %T to a listen socket", id, e) +} + +func (ls *listenSocket) deleteChild(id int64) { + logger.Errorf("cannot delete a child (id = %d) from a listen socket", id) +} + +func (ls *listenSocket) triggerDelete() { + ls.cm.deleteEntry(ls.id) + ls.cm.findEntry(ls.pid).deleteChild(ls.id) +} + +func (ls *listenSocket) deleteSelfIfReady() { + logger.Errorf("cannot call deleteSelfIfReady on a listen socket") +} + +func (ls *listenSocket) getParentID() int64 { + return ls.pid +} + +type normalSocket struct { + refName string + s Socket + id int64 + pid int64 + cm *channelMap +} + +func (ns *normalSocket) addChild(id int64, e entry) { + logger.Errorf("cannot add a child (id = %d) of type %T to a normal socket", id, e) +} + +func (ns *normalSocket) deleteChild(id int64) { + logger.Errorf("cannot delete a child (id = %d) from a normal socket", id) +} + +func (ns *normalSocket) triggerDelete() { + ns.cm.deleteEntry(ns.id) + ns.cm.findEntry(ns.pid).deleteChild(ns.id) +} + +func (ns *normalSocket) deleteSelfIfReady() { + logger.Errorf("cannot call deleteSelfIfReady on a normal socket") +} + +func (ns *normalSocket) getParentID() int64 { + return ns.pid +} + +// ServerMetric defines the info channelz provides for a specific Server, which +// includes ServerInternalMetric and channelz-specific data, such as channelz id, +// child list, etc. +type ServerMetric struct { + // ID is the channelz id of this server. + ID int64 + // RefName is the human readable reference string of this server. + RefName string + // ServerData contains server internal metric reported by the server through + // ChannelzMetric(). + ServerData *ServerInternalMetric + // ListenSockets tracks the listener socket type children of this server in the + // format of a map from socket channelz id to corresponding reference string. + ListenSockets map[int64]string +} + +// ServerInternalMetric defines the struct that the implementor of Server interface +// should return from ChannelzMetric(). +type ServerInternalMetric struct { + // The number of incoming calls started on the server. + CallsStarted int64 + // The number of incoming calls that have completed with an OK status. + CallsSucceeded int64 + // The number of incoming calls that have a completed with a non-OK status. + CallsFailed int64 + // The last time a call was started on the server. + LastCallStartedTimestamp time.Time +} + +// Server is the interface to be satisfied in order to be tracked by channelz as +// Server. +type Server interface { + ChannelzMetric() *ServerInternalMetric +} + +type server struct { + refName string + s Server + closeCalled bool + sockets map[int64]string + listenSockets map[int64]string + id int64 + cm *channelMap +} + +func (s *server) addChild(id int64, e entry) { + switch v := e.(type) { + case *normalSocket: + s.sockets[id] = v.refName + case *listenSocket: + s.listenSockets[id] = v.refName + default: + logger.Errorf("cannot add a child (id = %d) of type %T to a server", id, e) + } +} + +func (s *server) deleteChild(id int64) { + delete(s.sockets, id) + delete(s.listenSockets, id) + s.deleteSelfIfReady() +} + +func (s *server) triggerDelete() { + s.closeCalled = true + s.deleteSelfIfReady() +} + +func (s *server) deleteSelfIfReady() { + if !s.closeCalled || len(s.sockets)+len(s.listenSockets) != 0 { + return + } + s.cm.deleteEntry(s.id) +} + +func (s *server) getParentID() int64 { + return 0 +} + +type tracedChannel interface { + getChannelTrace() *channelTrace + incrTraceRefCount() + decrTraceRefCount() + getRefName() string +} + +type channelTrace struct { + cm *channelMap + createdTime time.Time + eventCount int64 + mu sync.Mutex + events []*TraceEvent +} + +func (c *channelTrace) append(e *TraceEvent) { + c.mu.Lock() + if len(c.events) == getMaxTraceEntry() { + del := c.events[0] + c.events = c.events[1:] + if del.RefID != 0 { + // start recursive cleanup in a goroutine to not block the call originated from grpc. + go func() { + // need to acquire c.cm.mu lock to call the unlocked attemptCleanup func. + c.cm.mu.Lock() + c.cm.decrTraceRefCount(del.RefID) + c.cm.mu.Unlock() + }() + } + } + e.Timestamp = time.Now() + c.events = append(c.events, e) + c.eventCount++ + c.mu.Unlock() +} + +func (c *channelTrace) clear() { + c.mu.Lock() + for _, e := range c.events { + if e.RefID != 0 { + // caller should have already held the c.cm.mu lock. + c.cm.decrTraceRefCount(e.RefID) + } + } + c.mu.Unlock() +} + +// Severity is the severity level of a trace event. +// The canonical enumeration of all valid values is here: +// https://github.com/grpc/grpc-proto/blob/9b13d199cc0d4703c7ea26c9c330ba695866eb23/grpc/channelz/v1/channelz.proto#L126. +type Severity int + +const ( + // CtUnknown indicates unknown severity of a trace event. + CtUnknown Severity = iota + // CtInfo indicates info level severity of a trace event. + CtInfo + // CtWarning indicates warning level severity of a trace event. + CtWarning + // CtError indicates error level severity of a trace event. + CtError +) + +// RefChannelType is the type of the entity being referenced in a trace event. +type RefChannelType int + +const ( + // RefUnknown indicates an unknown entity type, the zero value for this type. + RefUnknown RefChannelType = iota + // RefChannel indicates the referenced entity is a Channel. + RefChannel + // RefSubChannel indicates the referenced entity is a SubChannel. + RefSubChannel + // RefServer indicates the referenced entity is a Server. + RefServer + // RefListenSocket indicates the referenced entity is a ListenSocket. + RefListenSocket + // RefNormalSocket indicates the referenced entity is a NormalSocket. + RefNormalSocket +) + +var refChannelTypeToString = map[RefChannelType]string{ + RefUnknown: "Unknown", + RefChannel: "Channel", + RefSubChannel: "SubChannel", + RefServer: "Server", + RefListenSocket: "ListenSocket", + RefNormalSocket: "NormalSocket", +} + +func (r RefChannelType) String() string { + return refChannelTypeToString[r] +} + +func (c *channelTrace) dumpData() *ChannelTrace { + c.mu.Lock() + ct := &ChannelTrace{EventNum: c.eventCount, CreationTime: c.createdTime} + ct.Events = c.events[:len(c.events)] + c.mu.Unlock() + return ct +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/types_linux.go b/vendor/google.golang.org/grpc/internal/channelz/types_linux.go new file mode 100644 index 0000000..1b1c4cc --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/types_linux.go @@ -0,0 +1,51 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 channelz + +import ( + "syscall" + + "golang.org/x/sys/unix" +) + +// SocketOptionData defines the struct to hold socket option data, and related +// getter function to obtain info from fd. +type SocketOptionData struct { + Linger *unix.Linger + RecvTimeout *unix.Timeval + SendTimeout *unix.Timeval + TCPInfo *unix.TCPInfo +} + +// Getsockopt defines the function to get socket options requested by channelz. +// It is to be passed to syscall.RawConn.Control(). +func (s *SocketOptionData) Getsockopt(fd uintptr) { + if v, err := unix.GetsockoptLinger(int(fd), syscall.SOL_SOCKET, syscall.SO_LINGER); err == nil { + s.Linger = v + } + if v, err := unix.GetsockoptTimeval(int(fd), syscall.SOL_SOCKET, syscall.SO_RCVTIMEO); err == nil { + s.RecvTimeout = v + } + if v, err := unix.GetsockoptTimeval(int(fd), syscall.SOL_SOCKET, syscall.SO_SNDTIMEO); err == nil { + s.SendTimeout = v + } + if v, err := unix.GetsockoptTCPInfo(int(fd), syscall.SOL_TCP, syscall.TCP_INFO); err == nil { + s.TCPInfo = v + } +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/types_nonlinux.go b/vendor/google.golang.org/grpc/internal/channelz/types_nonlinux.go new file mode 100644 index 0000000..8b06eed --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/types_nonlinux.go @@ -0,0 +1,43 @@ +//go:build !linux +// +build !linux + +/* + * + * Copyright 2018 gRPC authors. + * + * 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 channelz + +import ( + "sync" +) + +var once sync.Once + +// SocketOptionData defines the struct to hold socket option data, and related +// getter function to obtain info from fd. +// Windows OS doesn't support Socket Option +type SocketOptionData struct { +} + +// Getsockopt defines the function to get socket options requested by channelz. +// It is to be passed to syscall.RawConn.Control(). +// Windows OS doesn't support Socket Option +func (s *SocketOptionData) Getsockopt(fd uintptr) { + once.Do(func() { + logger.Warning("Channelz: socket options are not supported on non-linux environments") + }) +} diff --git a/vendor/google.golang.org/grpc/internal/channelz/util_linux.go b/vendor/google.golang.org/grpc/internal/channelz/util_linux.go new file mode 100644 index 0000000..8d194e4 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/channelz/util_linux.go @@ -0,0 +1,37 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 channelz + +import ( + "syscall" +) + +// GetSocketOption gets the socket option info of the conn. +func GetSocketOption(socket interface{}) *SocketOptionData { + c, ok := socket.(syscall.Conn) + if !ok { + return nil + } + data := &SocketOptionData{} + if rawConn, err := c.SyscallConn(); err == nil { + rawConn.Control(data.Getsockopt) + return data + } + return nil +} diff --git a/vendor/google.golang.org/grpc/resolver/dns/go18.go b/vendor/google.golang.org/grpc/internal/channelz/util_nonlinux.go similarity index 72% rename from vendor/google.golang.org/grpc/resolver/dns/go18.go rename to vendor/google.golang.org/grpc/internal/channelz/util_nonlinux.go index fa34f14..837ddc4 100644 --- a/vendor/google.golang.org/grpc/resolver/dns/go18.go +++ b/vendor/google.golang.org/grpc/internal/channelz/util_nonlinux.go @@ -1,8 +1,9 @@ -// +build go1.8 +//go:build !linux +// +build !linux /* * - * Copyright 2017 gRPC authors. + * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,12 +19,9 @@ * */ -package dns +package channelz -import "net" - -var ( - lookupHost = net.DefaultResolver.LookupHost - lookupSRV = net.DefaultResolver.LookupSRV - lookupTXT = net.DefaultResolver.LookupTXT -) +// GetSocketOption gets the socket option info of the conn. +func GetSocketOption(c interface{}) *SocketOptionData { + return nil +} diff --git a/vendor/google.golang.org/grpc/internal/credentials/credentials.go b/vendor/google.golang.org/grpc/internal/credentials/credentials.go new file mode 100644 index 0000000..32c9b59 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/credentials/credentials.go @@ -0,0 +1,49 @@ +/* + * Copyright 2021 gRPC authors. + * + * 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 credentials + +import ( + "context" +) + +// requestInfoKey is a struct to be used as the key to store RequestInfo in a +// context. +type requestInfoKey struct{} + +// NewRequestInfoContext creates a context with ri. +func NewRequestInfoContext(ctx context.Context, ri interface{}) context.Context { + return context.WithValue(ctx, requestInfoKey{}, ri) +} + +// RequestInfoFromContext extracts the RequestInfo from ctx. +func RequestInfoFromContext(ctx context.Context) interface{} { + return ctx.Value(requestInfoKey{}) +} + +// clientHandshakeInfoKey is a struct used as the key to store +// ClientHandshakeInfo in a context. +type clientHandshakeInfoKey struct{} + +// ClientHandshakeInfoFromContext extracts the ClientHandshakeInfo from ctx. +func ClientHandshakeInfoFromContext(ctx context.Context) interface{} { + return ctx.Value(clientHandshakeInfoKey{}) +} + +// NewClientHandshakeInfoContext creates a context with chi. +func NewClientHandshakeInfoContext(ctx context.Context, chi interface{}) context.Context { + return context.WithValue(ctx, clientHandshakeInfoKey{}, chi) +} diff --git a/vendor/google.golang.org/grpc/internal/credentials/spiffe.go b/vendor/google.golang.org/grpc/internal/credentials/spiffe.go new file mode 100644 index 0000000..25ade62 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/credentials/spiffe.go @@ -0,0 +1,75 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 credentials defines APIs for parsing SPIFFE ID. +// +// All APIs in this package are experimental. +package credentials + +import ( + "crypto/tls" + "crypto/x509" + "net/url" + + "google.golang.org/grpc/grpclog" +) + +var logger = grpclog.Component("credentials") + +// SPIFFEIDFromState parses the SPIFFE ID from State. If the SPIFFE ID format +// is invalid, return nil with warning. +func SPIFFEIDFromState(state tls.ConnectionState) *url.URL { + if len(state.PeerCertificates) == 0 || len(state.PeerCertificates[0].URIs) == 0 { + return nil + } + return SPIFFEIDFromCert(state.PeerCertificates[0]) +} + +// SPIFFEIDFromCert parses the SPIFFE ID from x509.Certificate. If the SPIFFE +// ID format is invalid, return nil with warning. +func SPIFFEIDFromCert(cert *x509.Certificate) *url.URL { + if cert == nil || cert.URIs == nil { + return nil + } + var spiffeID *url.URL + for _, uri := range cert.URIs { + if uri == nil || uri.Scheme != "spiffe" || uri.Opaque != "" || (uri.User != nil && uri.User.Username() != "") { + continue + } + // From this point, we assume the uri is intended for a SPIFFE ID. + if len(uri.String()) > 2048 { + logger.Warning("invalid SPIFFE ID: total ID length larger than 2048 bytes") + return nil + } + if len(uri.Host) == 0 || len(uri.Path) == 0 { + logger.Warning("invalid SPIFFE ID: domain or workload ID is empty") + return nil + } + if len(uri.Host) > 255 { + logger.Warning("invalid SPIFFE ID: domain length larger than 255 characters") + return nil + } + // A valid SPIFFE certificate can only have exactly one URI SAN field. + if len(cert.URIs) > 1 { + logger.Warning("invalid SPIFFE ID: multiple URI SANs") + return nil + } + spiffeID = uri + } + return spiffeID +} diff --git a/vendor/google.golang.org/grpc/internal/credentials/syscallconn.go b/vendor/google.golang.org/grpc/internal/credentials/syscallconn.go new file mode 100644 index 0000000..2919632 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/credentials/syscallconn.go @@ -0,0 +1,58 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 credentials + +import ( + "net" + "syscall" +) + +type sysConn = syscall.Conn + +// syscallConn keeps reference of rawConn to support syscall.Conn for channelz. +// SyscallConn() (the method in interface syscall.Conn) is explicitly +// implemented on this type, +// +// Interface syscall.Conn is implemented by most net.Conn implementations (e.g. +// TCPConn, UnixConn), but is not part of net.Conn interface. So wrapper conns +// that embed net.Conn don't implement syscall.Conn. (Side note: tls.Conn +// doesn't embed net.Conn, so even if syscall.Conn is part of net.Conn, it won't +// help here). +type syscallConn struct { + net.Conn + // sysConn is a type alias of syscall.Conn. It's necessary because the name + // `Conn` collides with `net.Conn`. + sysConn +} + +// WrapSyscallConn tries to wrap rawConn and newConn into a net.Conn that +// implements syscall.Conn. rawConn will be used to support syscall, and newConn +// will be used for read/write. +// +// This function returns newConn if rawConn doesn't implement syscall.Conn. +func WrapSyscallConn(rawConn, newConn net.Conn) net.Conn { + sysConn, ok := rawConn.(syscall.Conn) + if !ok { + return newConn + } + return &syscallConn{ + Conn: newConn, + sysConn: sysConn, + } +} diff --git a/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go b/vendor/google.golang.org/grpc/internal/credentials/util.go similarity index 63% rename from vendor/google.golang.org/grpc/credentials/credentials_util_go18.go rename to vendor/google.golang.org/grpc/internal/credentials/util.go index 93f0e1d..f792fd2 100644 --- a/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go +++ b/vendor/google.golang.org/grpc/internal/credentials/util.go @@ -1,8 +1,6 @@ -// +build go1.8 - /* * - * Copyright 2017 gRPC authors. + * Copyright 2020 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,12 +22,28 @@ import ( "crypto/tls" ) -// cloneTLSConfig returns a shallow clone of the exported +const alpnProtoStrH2 = "h2" + +// AppendH2ToNextProtos appends h2 to next protos. +func AppendH2ToNextProtos(ps []string) []string { + for _, p := range ps { + if p == alpnProtoStrH2 { + return ps + } + } + ret := make([]string, 0, len(ps)+1) + ret = append(ret, ps...) + return append(ret, alpnProtoStrH2) +} + +// CloneTLSConfig returns a shallow clone of the exported // fields of cfg, ignoring the unexported sync.Once, which // contains a mutex and must not be copied. // // If cfg is nil, a new zero tls.Config is returned. -func cloneTLSConfig(cfg *tls.Config) *tls.Config { +// +// TODO: inline this function if possible. +func CloneTLSConfig(cfg *tls.Config) *tls.Config { if cfg == nil { return &tls.Config{} } diff --git a/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go b/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go new file mode 100644 index 0000000..5ba9d94 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go @@ -0,0 +1,62 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 envconfig contains grpc settings configured by environment variables. +package envconfig + +import ( + "os" + "strconv" + "strings" +) + +var ( + // TXTErrIgnore is set if TXT errors should be ignored ("GRPC_GO_IGNORE_TXT_ERRORS" is not "false"). + TXTErrIgnore = boolFromEnv("GRPC_GO_IGNORE_TXT_ERRORS", true) + // AdvertiseCompressors is set if registered compressor should be advertised + // ("GRPC_GO_ADVERTISE_COMPRESSORS" is not "false"). + AdvertiseCompressors = boolFromEnv("GRPC_GO_ADVERTISE_COMPRESSORS", true) + // RingHashCap indicates the maximum ring size which defaults to 4096 + // entries but may be overridden by setting the environment variable + // "GRPC_RING_HASH_CAP". This does not override the default bounds + // checking which NACKs configs specifying ring sizes > 8*1024*1024 (~8M). + RingHashCap = uint64FromEnv("GRPC_RING_HASH_CAP", 4096, 1, 8*1024*1024) +) + +func boolFromEnv(envVar string, def bool) bool { + if def { + // The default is true; return true unless the variable is "false". + return !strings.EqualFold(os.Getenv(envVar), "false") + } + // The default is false; return false unless the variable is "true". + return strings.EqualFold(os.Getenv(envVar), "true") +} + +func uint64FromEnv(envVar string, def, min, max uint64) uint64 { + v, err := strconv.ParseUint(os.Getenv(envVar), 10, 64) + if err != nil { + return def + } + if v < min { + return min + } + if v > max { + return max + } + return v +} diff --git a/vendor/google.golang.org/grpc/internal/envconfig/observability.go b/vendor/google.golang.org/grpc/internal/envconfig/observability.go new file mode 100644 index 0000000..821dd0a --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/envconfig/observability.go @@ -0,0 +1,36 @@ +/* + * + * Copyright 2022 gRPC authors. + * + * 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 envconfig + +import "os" + +const ( + envObservabilityConfig = "GRPC_GCP_OBSERVABILITY_CONFIG" + envObservabilityConfigFile = "GRPC_GCP_OBSERVABILITY_CONFIG_FILE" +) + +var ( + // ObservabilityConfig is the json configuration for the gcp/observability + // package specified directly in the envObservabilityConfig env var. + ObservabilityConfig = os.Getenv(envObservabilityConfig) + // ObservabilityConfigFile is the json configuration for the + // gcp/observability specified in a file with the location specified in + // envObservabilityConfigFile env var. + ObservabilityConfigFile = os.Getenv(envObservabilityConfigFile) +) diff --git a/vendor/google.golang.org/grpc/internal/envconfig/xds.go b/vendor/google.golang.org/grpc/internal/envconfig/xds.go new file mode 100644 index 0000000..0413688 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/envconfig/xds.go @@ -0,0 +1,92 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 envconfig + +import ( + "os" +) + +const ( + // XDSBootstrapFileNameEnv is the env variable to set bootstrap file name. + // Do not use this and read from env directly. Its value is read and kept in + // variable XDSBootstrapFileName. + // + // When both bootstrap FileName and FileContent are set, FileName is used. + XDSBootstrapFileNameEnv = "GRPC_XDS_BOOTSTRAP" + // XDSBootstrapFileContentEnv is the env variable to set bootstrap file + // content. Do not use this and read from env directly. Its value is read + // and kept in variable XDSBootstrapFileContent. + // + // When both bootstrap FileName and FileContent are set, FileName is used. + XDSBootstrapFileContentEnv = "GRPC_XDS_BOOTSTRAP_CONFIG" +) + +var ( + // XDSBootstrapFileName holds the name of the file which contains xDS + // bootstrap configuration. Users can specify the location of the bootstrap + // file by setting the environment variable "GRPC_XDS_BOOTSTRAP". + // + // When both bootstrap FileName and FileContent are set, FileName is used. + XDSBootstrapFileName = os.Getenv(XDSBootstrapFileNameEnv) + // XDSBootstrapFileContent holds the content of the xDS bootstrap + // configuration. Users can specify the bootstrap config by setting the + // environment variable "GRPC_XDS_BOOTSTRAP_CONFIG". + // + // When both bootstrap FileName and FileContent are set, FileName is used. + XDSBootstrapFileContent = os.Getenv(XDSBootstrapFileContentEnv) + // XDSRingHash indicates whether ring hash support is enabled, which can be + // disabled by setting the environment variable + // "GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH" to "false". + XDSRingHash = boolFromEnv("GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH", true) + // XDSClientSideSecurity is used to control processing of security + // configuration on the client-side. + // + // Note that there is no env var protection for the server-side because we + // have a brand new API on the server-side and users explicitly need to use + // the new API to get security integration on the server. + XDSClientSideSecurity = boolFromEnv("GRPC_XDS_EXPERIMENTAL_SECURITY_SUPPORT", true) + // XDSAggregateAndDNS indicates whether processing of aggregated cluster + // and DNS cluster is enabled, which can be enabled by setting the + // environment variable + // "GRPC_XDS_EXPERIMENTAL_ENABLE_AGGREGATE_AND_LOGICAL_DNS_CLUSTER" to + // "true". + XDSAggregateAndDNS = boolFromEnv("GRPC_XDS_EXPERIMENTAL_ENABLE_AGGREGATE_AND_LOGICAL_DNS_CLUSTER", true) + + // XDSRBAC indicates whether xDS configured RBAC HTTP Filter is enabled, + // which can be disabled by setting the environment variable + // "GRPC_XDS_EXPERIMENTAL_RBAC" to "false". + XDSRBAC = boolFromEnv("GRPC_XDS_EXPERIMENTAL_RBAC", true) + // XDSOutlierDetection indicates whether outlier detection support is + // enabled, which can be disabled by setting the environment variable + // "GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION" to "false". + XDSOutlierDetection = boolFromEnv("GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION", true) + // XDSFederation indicates whether federation support is enabled, which can + // be enabled by setting the environment variable + // "GRPC_EXPERIMENTAL_XDS_FEDERATION" to "true". + XDSFederation = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FEDERATION", false) + + // XDSRLS indicates whether processing of Cluster Specifier plugins and + // support for the RLS CLuster Specifier is enabled, which can be enabled by + // setting the environment variable "GRPC_EXPERIMENTAL_XDS_RLS_LB" to + // "true". + XDSRLS = boolFromEnv("GRPC_EXPERIMENTAL_XDS_RLS_LB", false) + + // C2PResolverTestOnlyTrafficDirectorURI is the TD URI for testing. + C2PResolverTestOnlyTrafficDirectorURI = os.Getenv("GRPC_TEST_ONLY_GOOGLE_C2P_RESOLVER_TRAFFIC_DIRECTOR_URI") +) diff --git a/vendor/google.golang.org/grpc/internal/grpclog/grpclog.go b/vendor/google.golang.org/grpc/internal/grpclog/grpclog.go new file mode 100644 index 0000000..b68e26a --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpclog/grpclog.go @@ -0,0 +1,126 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 grpclog (internal) defines depth logging for grpc. +package grpclog + +import ( + "os" +) + +// Logger is the logger used for the non-depth log functions. +var Logger LoggerV2 + +// DepthLogger is the logger used for the depth log functions. +var DepthLogger DepthLoggerV2 + +// InfoDepth logs to the INFO log at the specified depth. +func InfoDepth(depth int, args ...interface{}) { + if DepthLogger != nil { + DepthLogger.InfoDepth(depth, args...) + } else { + Logger.Infoln(args...) + } +} + +// WarningDepth logs to the WARNING log at the specified depth. +func WarningDepth(depth int, args ...interface{}) { + if DepthLogger != nil { + DepthLogger.WarningDepth(depth, args...) + } else { + Logger.Warningln(args...) + } +} + +// ErrorDepth logs to the ERROR log at the specified depth. +func ErrorDepth(depth int, args ...interface{}) { + if DepthLogger != nil { + DepthLogger.ErrorDepth(depth, args...) + } else { + Logger.Errorln(args...) + } +} + +// FatalDepth logs to the FATAL log at the specified depth. +func FatalDepth(depth int, args ...interface{}) { + if DepthLogger != nil { + DepthLogger.FatalDepth(depth, args...) + } else { + Logger.Fatalln(args...) + } + os.Exit(1) +} + +// LoggerV2 does underlying logging work for grpclog. +// This is a copy of the LoggerV2 defined in the external grpclog package. It +// is defined here to avoid a circular dependency. +type LoggerV2 interface { + // Info logs to INFO log. Arguments are handled in the manner of fmt.Print. + Info(args ...interface{}) + // Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println. + Infoln(args ...interface{}) + // Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf. + Infof(format string, args ...interface{}) + // Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print. + Warning(args ...interface{}) + // Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println. + Warningln(args ...interface{}) + // Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf. + Warningf(format string, args ...interface{}) + // Error logs to ERROR log. Arguments are handled in the manner of fmt.Print. + Error(args ...interface{}) + // Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println. + Errorln(args ...interface{}) + // Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. + Errorf(format string, args ...interface{}) + // Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print. + // gRPC ensures that all Fatal logs will exit with os.Exit(1). + // Implementations may also call os.Exit() with a non-zero exit code. + Fatal(args ...interface{}) + // Fatalln logs to ERROR log. Arguments are handled in the manner of fmt.Println. + // gRPC ensures that all Fatal logs will exit with os.Exit(1). + // Implementations may also call os.Exit() with a non-zero exit code. + Fatalln(args ...interface{}) + // Fatalf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. + // gRPC ensures that all Fatal logs will exit with os.Exit(1). + // Implementations may also call os.Exit() with a non-zero exit code. + Fatalf(format string, args ...interface{}) + // V reports whether verbosity level l is at least the requested verbose level. + V(l int) bool +} + +// DepthLoggerV2 logs at a specified call frame. If a LoggerV2 also implements +// DepthLoggerV2, the below functions will be called with the appropriate stack +// depth set for trivial functions the logger may ignore. +// This is a copy of the DepthLoggerV2 defined in the external grpclog package. +// It is defined here to avoid a circular dependency. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type DepthLoggerV2 interface { + // InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Println. + InfoDepth(depth int, args ...interface{}) + // WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Println. + WarningDepth(depth int, args ...interface{}) + // ErrorDepth logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Println. + ErrorDepth(depth int, args ...interface{}) + // FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Println. + FatalDepth(depth int, args ...interface{}) +} diff --git a/vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go b/vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go new file mode 100644 index 0000000..82af70e --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go @@ -0,0 +1,81 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 grpclog + +import ( + "fmt" +) + +// PrefixLogger does logging with a prefix. +// +// Logging method on a nil logs without any prefix. +type PrefixLogger struct { + logger DepthLoggerV2 + prefix string +} + +// Infof does info logging. +func (pl *PrefixLogger) Infof(format string, args ...interface{}) { + if pl != nil { + // Handle nil, so the tests can pass in a nil logger. + format = pl.prefix + format + pl.logger.InfoDepth(1, fmt.Sprintf(format, args...)) + return + } + InfoDepth(1, fmt.Sprintf(format, args...)) +} + +// Warningf does warning logging. +func (pl *PrefixLogger) Warningf(format string, args ...interface{}) { + if pl != nil { + format = pl.prefix + format + pl.logger.WarningDepth(1, fmt.Sprintf(format, args...)) + return + } + WarningDepth(1, fmt.Sprintf(format, args...)) +} + +// Errorf does error logging. +func (pl *PrefixLogger) Errorf(format string, args ...interface{}) { + if pl != nil { + format = pl.prefix + format + pl.logger.ErrorDepth(1, fmt.Sprintf(format, args...)) + return + } + ErrorDepth(1, fmt.Sprintf(format, args...)) +} + +// Debugf does info logging at verbose level 2. +func (pl *PrefixLogger) Debugf(format string, args ...interface{}) { + if !Logger.V(2) { + return + } + if pl != nil { + // Handle nil, so the tests can pass in a nil logger. + format = pl.prefix + format + pl.logger.InfoDepth(1, fmt.Sprintf(format, args...)) + return + } + InfoDepth(1, fmt.Sprintf(format, args...)) +} + +// NewPrefixLogger creates a prefix logger with the given prefix. +func NewPrefixLogger(logger DepthLoggerV2, prefix string) *PrefixLogger { + return &PrefixLogger{logger: logger, prefix: prefix} +} diff --git a/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go b/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go new file mode 100644 index 0000000..517ea70 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go @@ -0,0 +1,74 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 grpcrand implements math/rand functions in a concurrent-safe way +// with a global random source, independent of math/rand's global source. +package grpcrand + +import ( + "math/rand" + "sync" + "time" +) + +var ( + r = rand.New(rand.NewSource(time.Now().UnixNano())) + mu sync.Mutex +) + +// Int implements rand.Int on the grpcrand global source. +func Int() int { + mu.Lock() + defer mu.Unlock() + return r.Int() +} + +// Int63n implements rand.Int63n on the grpcrand global source. +func Int63n(n int64) int64 { + mu.Lock() + defer mu.Unlock() + return r.Int63n(n) +} + +// Intn implements rand.Intn on the grpcrand global source. +func Intn(n int) int { + mu.Lock() + defer mu.Unlock() + return r.Intn(n) +} + +// Int31n implements rand.Int31n on the grpcrand global source. +func Int31n(n int32) int32 { + mu.Lock() + defer mu.Unlock() + return r.Int31n(n) +} + +// Float64 implements rand.Float64 on the grpcrand global source. +func Float64() float64 { + mu.Lock() + defer mu.Unlock() + return r.Float64() +} + +// Uint64 implements rand.Uint64 on the grpcrand global source. +func Uint64() uint64 { + mu.Lock() + defer mu.Unlock() + return r.Uint64() +} diff --git a/vendor/google.golang.org/grpc/internal/grpcsync/event.go b/vendor/google.golang.org/grpc/internal/grpcsync/event.go new file mode 100644 index 0000000..fbe697c --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcsync/event.go @@ -0,0 +1,61 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 grpcsync implements additional synchronization primitives built upon +// the sync package. +package grpcsync + +import ( + "sync" + "sync/atomic" +) + +// Event represents a one-time event that may occur in the future. +type Event struct { + fired int32 + c chan struct{} + o sync.Once +} + +// Fire causes e to complete. It is safe to call multiple times, and +// concurrently. It returns true iff this call to Fire caused the signaling +// channel returned by Done to close. +func (e *Event) Fire() bool { + ret := false + e.o.Do(func() { + atomic.StoreInt32(&e.fired, 1) + close(e.c) + ret = true + }) + return ret +} + +// Done returns a channel that will be closed when Fire is called. +func (e *Event) Done() <-chan struct{} { + return e.c +} + +// HasFired returns true if Fire has been called. +func (e *Event) HasFired() bool { + return atomic.LoadInt32(&e.fired) == 1 +} + +// NewEvent returns a new, ready-to-use Event. +func NewEvent() *Event { + return &Event{c: make(chan struct{})} +} diff --git a/vendor/google.golang.org/grpc/naming/go17.go b/vendor/google.golang.org/grpc/internal/grpcsync/oncefunc.go similarity index 61% rename from vendor/google.golang.org/grpc/naming/go17.go rename to vendor/google.golang.org/grpc/internal/grpcsync/oncefunc.go index 57b65d7..6635f7b 100644 --- a/vendor/google.golang.org/grpc/naming/go17.go +++ b/vendor/google.golang.org/grpc/internal/grpcsync/oncefunc.go @@ -1,8 +1,6 @@ -// +build go1.6,!go1.8 - /* * - * Copyright 2017 gRPC authors. + * Copyright 2022 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,17 +16,17 @@ * */ -package naming +package grpcsync import ( - "net" - - "golang.org/x/net/context" + "sync" ) -var ( - lookupHost = func(ctx context.Context, host string) ([]string, error) { return net.LookupHost(host) } - lookupSRV = func(ctx context.Context, service, proto, name string) (string, []*net.SRV, error) { - return net.LookupSRV(service, proto, name) +// OnceFunc returns a function wrapping f which ensures f is only executed +// once even if the returned function is executed multiple times. +func OnceFunc(f func()) func() { + var once sync.Once + return func() { + once.Do(f) } -) +} diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go b/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go new file mode 100644 index 0000000..9f40909 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go @@ -0,0 +1,47 @@ +/* + * + * Copyright 2022 gRPC authors. + * + * 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 grpcutil + +import ( + "strings" + + "google.golang.org/grpc/internal/envconfig" +) + +// RegisteredCompressorNames holds names of the registered compressors. +var RegisteredCompressorNames []string + +// IsCompressorNameRegistered returns true when name is available in registry. +func IsCompressorNameRegistered(name string) bool { + for _, compressor := range RegisteredCompressorNames { + if compressor == name { + return true + } + } + return false +} + +// RegisteredCompressors returns a string of registered compressor names +// separated by comma. +func RegisteredCompressors() string { + if !envconfig.AdvertiseCompressors { + return "" + } + return strings.Join(RegisteredCompressorNames, ",") +} diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/encode_duration.go b/vendor/google.golang.org/grpc/internal/grpcutil/encode_duration.go new file mode 100644 index 0000000..b25b0ba --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcutil/encode_duration.go @@ -0,0 +1,63 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 grpcutil + +import ( + "strconv" + "time" +) + +const maxTimeoutValue int64 = 100000000 - 1 + +// div does integer division and round-up the result. Note that this is +// equivalent to (d+r-1)/r but has less chance to overflow. +func div(d, r time.Duration) int64 { + if d%r > 0 { + return int64(d/r + 1) + } + return int64(d / r) +} + +// EncodeDuration encodes the duration to the format grpc-timeout header +// accepts. +// +// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests +func EncodeDuration(t time.Duration) string { + // TODO: This is simplistic and not bandwidth efficient. Improve it. + if t <= 0 { + return "0n" + } + if d := div(t, time.Nanosecond); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "n" + } + if d := div(t, time.Microsecond); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "u" + } + if d := div(t, time.Millisecond); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "m" + } + if d := div(t, time.Second); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "S" + } + if d := div(t, time.Minute); d <= maxTimeoutValue { + return strconv.FormatInt(d, 10) + "M" + } + // Note that maxTimeoutValue * time.Hour > MaxInt64. + return strconv.FormatInt(div(t, time.Hour), 10) + "H" +} diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/grpcutil.go b/vendor/google.golang.org/grpc/internal/grpcutil/grpcutil.go new file mode 100644 index 0000000..e2f948e --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcutil/grpcutil.go @@ -0,0 +1,20 @@ +/* + * + * Copyright 2021 gRPC authors. + * + * 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 grpcutil provides utility functions used across the gRPC codebase. +package grpcutil diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/metadata.go b/vendor/google.golang.org/grpc/internal/grpcutil/metadata.go new file mode 100644 index 0000000..6f22bd8 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcutil/metadata.go @@ -0,0 +1,40 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 grpcutil + +import ( + "context" + + "google.golang.org/grpc/metadata" +) + +type mdExtraKey struct{} + +// WithExtraMetadata creates a new context with incoming md attached. +func WithExtraMetadata(ctx context.Context, md metadata.MD) context.Context { + return context.WithValue(ctx, mdExtraKey{}, md) +} + +// ExtraMetadata returns the incoming metadata in ctx if it exists. The +// returned MD should not be modified. Writing to it may cause races. +// Modification should be made to copies of the returned MD. +func ExtraMetadata(ctx context.Context) (md metadata.MD, ok bool) { + md, ok = ctx.Value(mdExtraKey{}).(metadata.MD) + return +} diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/method.go b/vendor/google.golang.org/grpc/internal/grpcutil/method.go new file mode 100644 index 0000000..ec62b47 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcutil/method.go @@ -0,0 +1,88 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 grpcutil + +import ( + "errors" + "strings" +) + +// ParseMethod splits service and method from the input. It expects format +// "/service/method". +func ParseMethod(methodName string) (service, method string, _ error) { + if !strings.HasPrefix(methodName, "/") { + return "", "", errors.New("invalid method name: should start with /") + } + methodName = methodName[1:] + + pos := strings.LastIndex(methodName, "/") + if pos < 0 { + return "", "", errors.New("invalid method name: suffix /method is missing") + } + return methodName[:pos], methodName[pos+1:], nil +} + +// baseContentType is the base content-type for gRPC. This is a valid +// content-type on it's own, but can also include a content-subtype such as +// "proto" as a suffix after "+" or ";". See +// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests +// for more details. +const baseContentType = "application/grpc" + +// ContentSubtype returns the content-subtype for the given content-type. The +// given content-type must be a valid content-type that starts with +// "application/grpc". A content-subtype will follow "application/grpc" after a +// "+" or ";". See +// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for +// more details. +// +// If contentType is not a valid content-type for gRPC, the boolean +// will be false, otherwise true. If content-type == "application/grpc", +// "application/grpc+", or "application/grpc;", the boolean will be true, +// but no content-subtype will be returned. +// +// contentType is assumed to be lowercase already. +func ContentSubtype(contentType string) (string, bool) { + if contentType == baseContentType { + return "", true + } + if !strings.HasPrefix(contentType, baseContentType) { + return "", false + } + // guaranteed since != baseContentType and has baseContentType prefix + switch contentType[len(baseContentType)] { + case '+', ';': + // this will return true for "application/grpc+" or "application/grpc;" + // which the previous validContentType function tested to be valid, so we + // just say that no content-subtype is specified in this case + return contentType[len(baseContentType)+1:], true + default: + return "", false + } +} + +// ContentType builds full content type with the given sub-type. +// +// contentSubtype is assumed to be lowercase +func ContentType(contentSubtype string) string { + if contentSubtype == "" { + return baseContentType + } + return baseContentType + "+" + contentSubtype +} diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/regex.go b/vendor/google.golang.org/grpc/internal/grpcutil/regex.go new file mode 100644 index 0000000..7a092b2 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpcutil/regex.go @@ -0,0 +1,31 @@ +/* + * + * Copyright 2021 gRPC authors. + * + * 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 grpcutil + +import "regexp" + +// FullMatchWithRegex returns whether the full text matches the regex provided. +func FullMatchWithRegex(re *regexp.Regexp, text string) bool { + if len(text) == 0 { + return re.MatchString(text) + } + re.Longest() + rem := re.FindString(text) + return len(rem) == len(text) +} diff --git a/vendor/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.go index 53f1775..0a76d9d 100644 --- a/vendor/google.golang.org/grpc/internal/internal.go +++ b/vendor/google.golang.org/grpc/internal/internal.go @@ -15,13 +15,146 @@ * */ -// Package internal contains gRPC-internal code for testing, to avoid polluting -// the godoc of the top-level grpc package. +// Package internal contains gRPC-internal code, to avoid polluting +// the godoc of the top-level grpc package. It must not import any grpc +// symbols to avoid circular dependencies. package internal -// TestingUseHandlerImpl enables the http.Handler-based server implementation. -// It must be called before Serve and requires TLS credentials. +import ( + "context" + "time" + + "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/serviceconfig" +) + +var ( + // WithHealthCheckFunc is set by dialoptions.go + WithHealthCheckFunc interface{} // func (HealthChecker) DialOption + // HealthCheckFunc is used to provide client-side LB channel health checking + HealthCheckFunc HealthChecker + // BalancerUnregister is exported by package balancer to unregister a balancer. + BalancerUnregister func(name string) + // KeepaliveMinPingTime is the minimum ping interval. This must be 10s by + // default, but tests may wish to set it lower for convenience. + KeepaliveMinPingTime = 10 * time.Second + // ParseServiceConfig parses a JSON representation of the service config. + ParseServiceConfig interface{} // func(string) *serviceconfig.ParseResult + // EqualServiceConfigForTesting is for testing service config generation and + // parsing. Both a and b should be returned by ParseServiceConfig. + // This function compares the config without rawJSON stripped, in case the + // there's difference in white space. + EqualServiceConfigForTesting func(a, b serviceconfig.Config) bool + // GetCertificateProviderBuilder returns the registered builder for the + // given name. This is set by package certprovider for use from xDS + // bootstrap code while parsing certificate provider configs in the + // bootstrap file. + GetCertificateProviderBuilder interface{} // func(string) certprovider.Builder + // GetXDSHandshakeInfoForTesting returns a pointer to the xds.HandshakeInfo + // stored in the passed in attributes. This is set by + // credentials/xds/xds.go. + GetXDSHandshakeInfoForTesting interface{} // func (*attributes.Attributes) *xds.HandshakeInfo + // GetServerCredentials returns the transport credentials configured on a + // gRPC server. An xDS-enabled server needs to know what type of credentials + // is configured on the underlying gRPC server. This is set by server.go. + GetServerCredentials interface{} // func (*grpc.Server) credentials.TransportCredentials + // DrainServerTransports initiates a graceful close of existing connections + // on a gRPC server accepted on the provided listener address. An + // xDS-enabled server invokes this method on a grpc.Server when a particular + // listener moves to "not-serving" mode. + DrainServerTransports interface{} // func(*grpc.Server, string) + // AddGlobalServerOptions adds an array of ServerOption that will be + // effective globally for newly created servers. The priority will be: 1. + // user-provided; 2. this method; 3. default values. + AddGlobalServerOptions interface{} // func(opt ...ServerOption) + // ClearGlobalServerOptions clears the array of extra ServerOption. This + // method is useful in testing and benchmarking. + ClearGlobalServerOptions func() + // AddGlobalDialOptions adds an array of DialOption that will be effective + // globally for newly created client channels. The priority will be: 1. + // user-provided; 2. this method; 3. default values. + AddGlobalDialOptions interface{} // func(opt ...DialOption) + // ClearGlobalDialOptions clears the array of extra DialOption. This + // method is useful in testing and benchmarking. + ClearGlobalDialOptions func() + // JoinDialOptions combines the dial options passed as arguments into a + // single dial option. + JoinDialOptions interface{} // func(...grpc.DialOption) grpc.DialOption + // JoinServerOptions combines the server options passed as arguments into a + // single server option. + JoinServerOptions interface{} // func(...grpc.ServerOption) grpc.ServerOption + + // WithBinaryLogger returns a DialOption that specifies the binary logger + // for a ClientConn. + WithBinaryLogger interface{} // func(binarylog.Logger) grpc.DialOption + // BinaryLogger returns a ServerOption that can set the binary logger for a + // server. + BinaryLogger interface{} // func(binarylog.Logger) grpc.ServerOption + + // NewXDSResolverWithConfigForTesting creates a new xds resolver builder using + // the provided xds bootstrap config instead of the global configuration from + // the supported environment variables. The resolver.Builder is meant to be + // used in conjunction with the grpc.WithResolvers DialOption. + // + // Testing Only + // + // This function should ONLY be used for testing and may not work with some + // other features, including the CSDS service. + NewXDSResolverWithConfigForTesting interface{} // func([]byte) (resolver.Builder, error) + + // RegisterRLSClusterSpecifierPluginForTesting registers the RLS Cluster + // Specifier Plugin for testing purposes, regardless of the XDSRLS environment + // variable. + // + // TODO: Remove this function once the RLS env var is removed. + RegisterRLSClusterSpecifierPluginForTesting func() + + // UnregisterRLSClusterSpecifierPluginForTesting unregisters the RLS Cluster + // Specifier Plugin for testing purposes. This is needed because there is no way + // to unregister the RLS Cluster Specifier Plugin after registering it solely + // for testing purposes using RegisterRLSClusterSpecifierPluginForTesting(). + // + // TODO: Remove this function once the RLS env var is removed. + UnregisterRLSClusterSpecifierPluginForTesting func() + + // RegisterRBACHTTPFilterForTesting registers the RBAC HTTP Filter for testing + // purposes, regardless of the RBAC environment variable. + // + // TODO: Remove this function once the RBAC env var is removed. + RegisterRBACHTTPFilterForTesting func() + + // UnregisterRBACHTTPFilterForTesting unregisters the RBAC HTTP Filter for + // testing purposes. This is needed because there is no way to unregister the + // HTTP Filter after registering it solely for testing purposes using + // RegisterRBACHTTPFilterForTesting(). + // + // TODO: Remove this function once the RBAC env var is removed. + UnregisterRBACHTTPFilterForTesting func() +) + +// HealthChecker defines the signature of the client-side LB channel health checking function. +// +// The implementation is expected to create a health checking RPC stream by +// calling newStream(), watch for the health status of serviceName, and report +// it's health back by calling setConnectivityState(). +// +// The health checking protocol is defined at: +// https://github.com/grpc/grpc/blob/master/doc/health-checking.md +type HealthChecker func(ctx context.Context, newStream func(string) (interface{}, error), setConnectivityState func(connectivity.State, error), serviceName string) error + +const ( + // CredsBundleModeFallback switches GoogleDefaultCreds to fallback mode. + CredsBundleModeFallback = "fallback" + // CredsBundleModeBalancer switches GoogleDefaultCreds to grpclb balancer + // mode. + CredsBundleModeBalancer = "balancer" + // CredsBundleModeBackendFromBalancer switches GoogleDefaultCreds to mode + // that supports backend returned by grpclb balancer. + CredsBundleModeBackendFromBalancer = "backend-from-balancer" +) + +// RLSLoadBalancingPolicyName is the name of the RLS LB policy. // -// The provided grpcServer must be of type *grpc.Server. It is untyped -// for circular dependency reasons. -var TestingUseHandlerImpl func(grpcServer interface{}) +// It currently has an experimental suffix which would be removed once +// end-to-end testing of the policy is completed. +const RLSLoadBalancingPolicyName = "rls_experimental" diff --git a/vendor/google.golang.org/grpc/internal/metadata/metadata.go b/vendor/google.golang.org/grpc/internal/metadata/metadata.go new file mode 100644 index 0000000..b2980f8 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/metadata/metadata.go @@ -0,0 +1,120 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 metadata contains functions to set and get metadata from addresses. +// +// This package is experimental. +package metadata + +import ( + "fmt" + "strings" + + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/resolver" +) + +type mdKeyType string + +const mdKey = mdKeyType("grpc.internal.address.metadata") + +type mdValue metadata.MD + +func (m mdValue) Equal(o interface{}) bool { + om, ok := o.(mdValue) + if !ok { + return false + } + if len(m) != len(om) { + return false + } + for k, v := range m { + ov := om[k] + if len(ov) != len(v) { + return false + } + for i, ve := range v { + if ov[i] != ve { + return false + } + } + } + return true +} + +// Get returns the metadata of addr. +func Get(addr resolver.Address) metadata.MD { + attrs := addr.Attributes + if attrs == nil { + return nil + } + md, _ := attrs.Value(mdKey).(mdValue) + return metadata.MD(md) +} + +// Set sets (overrides) the metadata in addr. +// +// When a SubConn is created with this address, the RPCs sent on it will all +// have this metadata. +func Set(addr resolver.Address, md metadata.MD) resolver.Address { + addr.Attributes = addr.Attributes.WithValue(mdKey, mdValue(md)) + return addr +} + +// Validate returns an error if the input md contains invalid keys or values. +// +// If the header is not a pseudo-header, the following items are checked: +// - header names must contain one or more characters from this set [0-9 a-z _ - .]. +// - if the header-name ends with a "-bin" suffix, no validation of the header value is performed. +// - otherwise, the header value must contain one or more characters from the set [%x20-%x7E]. +func Validate(md metadata.MD) error { + for k, vals := range md { + // pseudo-header will be ignored + if k[0] == ':' { + continue + } + // check key, for i that saving a conversion if not using for range + for i := 0; i < len(k); i++ { + r := k[i] + if !(r >= 'a' && r <= 'z') && !(r >= '0' && r <= '9') && r != '.' && r != '-' && r != '_' { + return fmt.Errorf("header key %q contains illegal characters not in [0-9a-z-_.]", k) + } + } + if strings.HasSuffix(k, "-bin") { + continue + } + // check value + for _, val := range vals { + if hasNotPrintable(val) { + return fmt.Errorf("header key %q contains value with non-printable ASCII characters", k) + } + } + } + return nil +} + +// hasNotPrintable return true if msg contains any characters which are not in %x20-%x7E +func hasNotPrintable(msg string) bool { + // for i that saving a conversion if not using for range + for i := 0; i < len(msg); i++ { + if msg[i] < 0x20 || msg[i] > 0x7E { + return true + } + } + return false +} diff --git a/vendor/google.golang.org/grpc/internal/pretty/pretty.go b/vendor/google.golang.org/grpc/internal/pretty/pretty.go new file mode 100644 index 0000000..0177af4 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/pretty/pretty.go @@ -0,0 +1,82 @@ +/* + * + * Copyright 2021 gRPC authors. + * + * 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 pretty defines helper functions to pretty-print structs for logging. +package pretty + +import ( + "bytes" + "encoding/json" + "fmt" + + "github.com/golang/protobuf/jsonpb" + protov1 "github.com/golang/protobuf/proto" + "google.golang.org/protobuf/encoding/protojson" + protov2 "google.golang.org/protobuf/proto" +) + +const jsonIndent = " " + +// ToJSON marshals the input into a json string. +// +// If marshal fails, it falls back to fmt.Sprintf("%+v"). +func ToJSON(e interface{}) string { + switch ee := e.(type) { + case protov1.Message: + mm := jsonpb.Marshaler{Indent: jsonIndent} + ret, err := mm.MarshalToString(ee) + if err != nil { + // This may fail for proto.Anys, e.g. for xDS v2, LDS, the v2 + // messages are not imported, and this will fail because the message + // is not found. + return fmt.Sprintf("%+v", ee) + } + return ret + case protov2.Message: + mm := protojson.MarshalOptions{ + Multiline: true, + Indent: jsonIndent, + } + ret, err := mm.Marshal(ee) + if err != nil { + // This may fail for proto.Anys, e.g. for xDS v2, LDS, the v2 + // messages are not imported, and this will fail because the message + // is not found. + return fmt.Sprintf("%+v", ee) + } + return string(ret) + default: + ret, err := json.MarshalIndent(ee, "", jsonIndent) + if err != nil { + return fmt.Sprintf("%+v", ee) + } + return string(ret) + } +} + +// FormatJSON formats the input json bytes with indentation. +// +// If Indent fails, it returns the unchanged input as string. +func FormatJSON(b []byte) string { + var out bytes.Buffer + err := json.Indent(&out, b, "", jsonIndent) + if err != nil { + return string(b) + } + return out.String() +} diff --git a/vendor/google.golang.org/grpc/internal/resolver/config_selector.go b/vendor/google.golang.org/grpc/internal/resolver/config_selector.go new file mode 100644 index 0000000..c7a18a9 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/resolver/config_selector.go @@ -0,0 +1,167 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 resolver provides internal resolver-related functionality. +package resolver + +import ( + "context" + "sync" + + "google.golang.org/grpc/internal/serviceconfig" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/resolver" +) + +// ConfigSelector controls what configuration to use for every RPC. +type ConfigSelector interface { + // Selects the configuration for the RPC, or terminates it using the error. + // This error will be converted by the gRPC library to a status error with + // code UNKNOWN if it is not returned as a status error. + SelectConfig(RPCInfo) (*RPCConfig, error) +} + +// RPCInfo contains RPC information needed by a ConfigSelector. +type RPCInfo struct { + // Context is the user's context for the RPC and contains headers and + // application timeout. It is passed for interception purposes and for + // efficiency reasons. SelectConfig should not be blocking. + Context context.Context + Method string // i.e. "/Service/Method" +} + +// RPCConfig describes the configuration to use for each RPC. +type RPCConfig struct { + // The context to use for the remainder of the RPC; can pass info to LB + // policy or affect timeout or metadata. + Context context.Context + MethodConfig serviceconfig.MethodConfig // configuration to use for this RPC + OnCommitted func() // Called when the RPC has been committed (retries no longer possible) + Interceptor ClientInterceptor +} + +// ClientStream is the same as grpc.ClientStream, but defined here for circular +// dependency reasons. +type ClientStream interface { + // Header returns the header metadata received from the server if there + // is any. It blocks if the metadata is not ready to read. + Header() (metadata.MD, error) + // Trailer returns the trailer metadata from the server, if there is any. + // It must only be called after stream.CloseAndRecv has returned, or + // stream.Recv has returned a non-nil error (including io.EOF). + Trailer() metadata.MD + // CloseSend closes the send direction of the stream. It closes the stream + // when non-nil error is met. It is also not safe to call CloseSend + // concurrently with SendMsg. + CloseSend() error + // Context returns the context for this stream. + // + // It should not be called until after Header or RecvMsg has returned. Once + // called, subsequent client-side retries are disabled. + Context() context.Context + // SendMsg is generally called by generated code. On error, SendMsg aborts + // the stream. If the error was generated by the client, the status is + // returned directly; otherwise, io.EOF is returned and the status of + // the stream may be discovered using RecvMsg. + // + // SendMsg blocks until: + // - There is sufficient flow control to schedule m with the transport, or + // - The stream is done, or + // - The stream breaks. + // + // SendMsg does not wait until the message is received by the server. An + // untimely stream closure may result in lost messages. To ensure delivery, + // users should ensure the RPC completed successfully using RecvMsg. + // + // It is safe to have a goroutine calling SendMsg and another goroutine + // calling RecvMsg on the same stream at the same time, but it is not safe + // to call SendMsg on the same stream in different goroutines. It is also + // not safe to call CloseSend concurrently with SendMsg. + SendMsg(m interface{}) error + // RecvMsg blocks until it receives a message into m or the stream is + // done. It returns io.EOF when the stream completes successfully. On + // any other error, the stream is aborted and the error contains the RPC + // status. + // + // It is safe to have a goroutine calling SendMsg and another goroutine + // calling RecvMsg on the same stream at the same time, but it is not + // safe to call RecvMsg on the same stream in different goroutines. + RecvMsg(m interface{}) error +} + +// ClientInterceptor is an interceptor for gRPC client streams. +type ClientInterceptor interface { + // NewStream produces a ClientStream for an RPC which may optionally use + // the provided function to produce a stream for delegation. Note: + // RPCInfo.Context should not be used (will be nil). + // + // done is invoked when the RPC is finished using its connection, or could + // not be assigned a connection. RPC operations may still occur on + // ClientStream after done is called, since the interceptor is invoked by + // application-layer operations. done must never be nil when called. + NewStream(ctx context.Context, ri RPCInfo, done func(), newStream func(ctx context.Context, done func()) (ClientStream, error)) (ClientStream, error) +} + +// ServerInterceptor is an interceptor for incoming RPC's on gRPC server side. +type ServerInterceptor interface { + // AllowRPC checks if an incoming RPC is allowed to proceed based on + // information about connection RPC was received on, and HTTP Headers. This + // information will be piped into context. + AllowRPC(ctx context.Context) error // TODO: Make this a real interceptor for filters such as rate limiting. +} + +type csKeyType string + +const csKey = csKeyType("grpc.internal.resolver.configSelector") + +// SetConfigSelector sets the config selector in state and returns the new +// state. +func SetConfigSelector(state resolver.State, cs ConfigSelector) resolver.State { + state.Attributes = state.Attributes.WithValue(csKey, cs) + return state +} + +// GetConfigSelector retrieves the config selector from state, if present, and +// returns it or nil if absent. +func GetConfigSelector(state resolver.State) ConfigSelector { + cs, _ := state.Attributes.Value(csKey).(ConfigSelector) + return cs +} + +// SafeConfigSelector allows for safe switching of ConfigSelector +// implementations such that previous values are guaranteed to not be in use +// when UpdateConfigSelector returns. +type SafeConfigSelector struct { + mu sync.RWMutex + cs ConfigSelector +} + +// UpdateConfigSelector swaps to the provided ConfigSelector and blocks until +// all uses of the previous ConfigSelector have completed. +func (scs *SafeConfigSelector) UpdateConfigSelector(cs ConfigSelector) { + scs.mu.Lock() + defer scs.mu.Unlock() + scs.cs = cs +} + +// SelectConfig defers to the current ConfigSelector in scs. +func (scs *SafeConfigSelector) SelectConfig(r RPCInfo) (*RPCConfig, error) { + scs.mu.RLock() + defer scs.mu.RUnlock() + return scs.cs.SelectConfig(r) +} diff --git a/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go b/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go new file mode 100644 index 0000000..09a667f --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go @@ -0,0 +1,458 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 dns implements a dns resolver to be installed as the default resolver +// in grpc. +package dns + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "net" + "os" + "strconv" + "strings" + "sync" + "time" + + grpclbstate "google.golang.org/grpc/balancer/grpclb/state" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal/backoff" + "google.golang.org/grpc/internal/envconfig" + "google.golang.org/grpc/internal/grpcrand" + "google.golang.org/grpc/resolver" + "google.golang.org/grpc/serviceconfig" +) + +// EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB +// addresses from SRV records. Must not be changed after init time. +var EnableSRVLookups = false + +var logger = grpclog.Component("dns") + +// Globals to stub out in tests. TODO: Perhaps these two can be combined into a +// single variable for testing the resolver? +var ( + newTimer = time.NewTimer + newTimerDNSResRate = time.NewTimer +) + +func init() { + resolver.Register(NewBuilder()) +} + +const ( + defaultPort = "443" + defaultDNSSvrPort = "53" + golang = "GO" + // txtPrefix is the prefix string to be prepended to the host name for txt record lookup. + txtPrefix = "_grpc_config." + // In DNS, service config is encoded in a TXT record via the mechanism + // described in RFC-1464 using the attribute name grpc_config. + txtAttribute = "grpc_config=" +) + +var ( + errMissingAddr = errors.New("dns resolver: missing address") + + // Addresses ending with a colon that is supposed to be the separator + // between host and port is not allowed. E.g. "::" is a valid address as + // it is an IPv6 address (host only) and "[::]:" is invalid as it ends with + // a colon as the host and port separator + errEndsWithColon = errors.New("dns resolver: missing port after port-separator colon") +) + +var ( + defaultResolver netResolver = net.DefaultResolver + // To prevent excessive re-resolution, we enforce a rate limit on DNS + // resolution requests. + minDNSResRate = 30 * time.Second +) + +var customAuthorityDialler = func(authority string) func(ctx context.Context, network, address string) (net.Conn, error) { + return func(ctx context.Context, network, address string) (net.Conn, error) { + var dialer net.Dialer + return dialer.DialContext(ctx, network, authority) + } +} + +var customAuthorityResolver = func(authority string) (netResolver, error) { + host, port, err := parseTarget(authority, defaultDNSSvrPort) + if err != nil { + return nil, err + } + + authorityWithPort := net.JoinHostPort(host, port) + + return &net.Resolver{ + PreferGo: true, + Dial: customAuthorityDialler(authorityWithPort), + }, nil +} + +// NewBuilder creates a dnsBuilder which is used to factory DNS resolvers. +func NewBuilder() resolver.Builder { + return &dnsBuilder{} +} + +type dnsBuilder struct{} + +// Build creates and starts a DNS resolver that watches the name resolution of the target. +func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) { + host, port, err := parseTarget(target.Endpoint(), defaultPort) + if err != nil { + return nil, err + } + + // IP address. + if ipAddr, ok := formatIP(host); ok { + addr := []resolver.Address{{Addr: ipAddr + ":" + port}} + cc.UpdateState(resolver.State{Addresses: addr}) + return deadResolver{}, nil + } + + // DNS address (non-IP). + ctx, cancel := context.WithCancel(context.Background()) + d := &dnsResolver{ + host: host, + port: port, + ctx: ctx, + cancel: cancel, + cc: cc, + rn: make(chan struct{}, 1), + disableServiceConfig: opts.DisableServiceConfig, + } + + if target.URL.Host == "" { + d.resolver = defaultResolver + } else { + d.resolver, err = customAuthorityResolver(target.URL.Host) + if err != nil { + return nil, err + } + } + + d.wg.Add(1) + go d.watcher() + return d, nil +} + +// Scheme returns the naming scheme of this resolver builder, which is "dns". +func (b *dnsBuilder) Scheme() string { + return "dns" +} + +type netResolver interface { + LookupHost(ctx context.Context, host string) (addrs []string, err error) + LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) + LookupTXT(ctx context.Context, name string) (txts []string, err error) +} + +// deadResolver is a resolver that does nothing. +type deadResolver struct{} + +func (deadResolver) ResolveNow(resolver.ResolveNowOptions) {} + +func (deadResolver) Close() {} + +// dnsResolver watches for the name resolution update for a non-IP target. +type dnsResolver struct { + host string + port string + resolver netResolver + ctx context.Context + cancel context.CancelFunc + cc resolver.ClientConn + // rn channel is used by ResolveNow() to force an immediate resolution of the target. + rn chan struct{} + // wg is used to enforce Close() to return after the watcher() goroutine has finished. + // Otherwise, data race will be possible. [Race Example] in dns_resolver_test we + // replace the real lookup functions with mocked ones to facilitate testing. + // If Close() doesn't wait for watcher() goroutine finishes, race detector sometimes + // will warns lookup (READ the lookup function pointers) inside watcher() goroutine + // has data race with replaceNetFunc (WRITE the lookup function pointers). + wg sync.WaitGroup + disableServiceConfig bool +} + +// ResolveNow invoke an immediate resolution of the target that this dnsResolver watches. +func (d *dnsResolver) ResolveNow(resolver.ResolveNowOptions) { + select { + case d.rn <- struct{}{}: + default: + } +} + +// Close closes the dnsResolver. +func (d *dnsResolver) Close() { + d.cancel() + d.wg.Wait() +} + +func (d *dnsResolver) watcher() { + defer d.wg.Done() + backoffIndex := 1 + for { + state, err := d.lookup() + if err != nil { + // Report error to the underlying grpc.ClientConn. + d.cc.ReportError(err) + } else { + err = d.cc.UpdateState(*state) + } + + var timer *time.Timer + if err == nil { + // Success resolving, wait for the next ResolveNow. However, also wait 30 seconds at the very least + // to prevent constantly re-resolving. + backoffIndex = 1 + timer = newTimerDNSResRate(minDNSResRate) + select { + case <-d.ctx.Done(): + timer.Stop() + return + case <-d.rn: + } + } else { + // Poll on an error found in DNS Resolver or an error received from ClientConn. + timer = newTimer(backoff.DefaultExponential.Backoff(backoffIndex)) + backoffIndex++ + } + select { + case <-d.ctx.Done(): + timer.Stop() + return + case <-timer.C: + } + } +} + +func (d *dnsResolver) lookupSRV() ([]resolver.Address, error) { + if !EnableSRVLookups { + return nil, nil + } + var newAddrs []resolver.Address + _, srvs, err := d.resolver.LookupSRV(d.ctx, "grpclb", "tcp", d.host) + if err != nil { + err = handleDNSError(err, "SRV") // may become nil + return nil, err + } + for _, s := range srvs { + lbAddrs, err := d.resolver.LookupHost(d.ctx, s.Target) + if err != nil { + err = handleDNSError(err, "A") // may become nil + if err == nil { + // If there are other SRV records, look them up and ignore this + // one that does not exist. + continue + } + return nil, err + } + for _, a := range lbAddrs { + ip, ok := formatIP(a) + if !ok { + return nil, fmt.Errorf("dns: error parsing A record IP address %v", a) + } + addr := ip + ":" + strconv.Itoa(int(s.Port)) + newAddrs = append(newAddrs, resolver.Address{Addr: addr, ServerName: s.Target}) + } + } + return newAddrs, nil +} + +func handleDNSError(err error, lookupType string) error { + if dnsErr, ok := err.(*net.DNSError); ok && !dnsErr.IsTimeout && !dnsErr.IsTemporary { + // Timeouts and temporary errors should be communicated to gRPC to + // attempt another DNS query (with backoff). Other errors should be + // suppressed (they may represent the absence of a TXT record). + return nil + } + if err != nil { + err = fmt.Errorf("dns: %v record lookup error: %v", lookupType, err) + logger.Info(err) + } + return err +} + +func (d *dnsResolver) lookupTXT() *serviceconfig.ParseResult { + ss, err := d.resolver.LookupTXT(d.ctx, txtPrefix+d.host) + if err != nil { + if envconfig.TXTErrIgnore { + return nil + } + if err = handleDNSError(err, "TXT"); err != nil { + return &serviceconfig.ParseResult{Err: err} + } + return nil + } + var res string + for _, s := range ss { + res += s + } + + // TXT record must have "grpc_config=" attribute in order to be used as service config. + if !strings.HasPrefix(res, txtAttribute) { + logger.Warningf("dns: TXT record %v missing %v attribute", res, txtAttribute) + // This is not an error; it is the equivalent of not having a service config. + return nil + } + sc := canaryingSC(strings.TrimPrefix(res, txtAttribute)) + return d.cc.ParseServiceConfig(sc) +} + +func (d *dnsResolver) lookupHost() ([]resolver.Address, error) { + addrs, err := d.resolver.LookupHost(d.ctx, d.host) + if err != nil { + err = handleDNSError(err, "A") + return nil, err + } + newAddrs := make([]resolver.Address, 0, len(addrs)) + for _, a := range addrs { + ip, ok := formatIP(a) + if !ok { + return nil, fmt.Errorf("dns: error parsing A record IP address %v", a) + } + addr := ip + ":" + d.port + newAddrs = append(newAddrs, resolver.Address{Addr: addr}) + } + return newAddrs, nil +} + +func (d *dnsResolver) lookup() (*resolver.State, error) { + srv, srvErr := d.lookupSRV() + addrs, hostErr := d.lookupHost() + if hostErr != nil && (srvErr != nil || len(srv) == 0) { + return nil, hostErr + } + + state := resolver.State{Addresses: addrs} + if len(srv) > 0 { + state = grpclbstate.Set(state, &grpclbstate.State{BalancerAddresses: srv}) + } + if !d.disableServiceConfig { + state.ServiceConfig = d.lookupTXT() + } + return &state, nil +} + +// formatIP returns ok = false if addr is not a valid textual representation of an IP address. +// If addr is an IPv4 address, return the addr and ok = true. +// If addr is an IPv6 address, return the addr enclosed in square brackets and ok = true. +func formatIP(addr string) (addrIP string, ok bool) { + ip := net.ParseIP(addr) + if ip == nil { + return "", false + } + if ip.To4() != nil { + return addr, true + } + return "[" + addr + "]", true +} + +// parseTarget takes the user input target string and default port, returns formatted host and port info. +// If target doesn't specify a port, set the port to be the defaultPort. +// If target is in IPv6 format and host-name is enclosed in square brackets, brackets +// are stripped when setting the host. +// examples: +// target: "www.google.com" defaultPort: "443" returns host: "www.google.com", port: "443" +// target: "ipv4-host:80" defaultPort: "443" returns host: "ipv4-host", port: "80" +// target: "[ipv6-host]" defaultPort: "443" returns host: "ipv6-host", port: "443" +// target: ":80" defaultPort: "443" returns host: "localhost", port: "80" +func parseTarget(target, defaultPort string) (host, port string, err error) { + if target == "" { + return "", "", errMissingAddr + } + if ip := net.ParseIP(target); ip != nil { + // target is an IPv4 or IPv6(without brackets) address + return target, defaultPort, nil + } + if host, port, err = net.SplitHostPort(target); err == nil { + if port == "" { + // If the port field is empty (target ends with colon), e.g. "[::1]:", this is an error. + return "", "", errEndsWithColon + } + // target has port, i.e ipv4-host:port, [ipv6-host]:port, host-name:port + if host == "" { + // Keep consistent with net.Dial(): If the host is empty, as in ":80", the local system is assumed. + host = "localhost" + } + return host, port, nil + } + if host, port, err = net.SplitHostPort(target + ":" + defaultPort); err == nil { + // target doesn't have port + return host, port, nil + } + return "", "", fmt.Errorf("invalid target address %v, error info: %v", target, err) +} + +type rawChoice struct { + ClientLanguage *[]string `json:"clientLanguage,omitempty"` + Percentage *int `json:"percentage,omitempty"` + ClientHostName *[]string `json:"clientHostName,omitempty"` + ServiceConfig *json.RawMessage `json:"serviceConfig,omitempty"` +} + +func containsString(a *[]string, b string) bool { + if a == nil { + return true + } + for _, c := range *a { + if c == b { + return true + } + } + return false +} + +func chosenByPercentage(a *int) bool { + if a == nil { + return true + } + return grpcrand.Intn(100)+1 <= *a +} + +func canaryingSC(js string) string { + if js == "" { + return "" + } + var rcs []rawChoice + err := json.Unmarshal([]byte(js), &rcs) + if err != nil { + logger.Warningf("dns: error parsing service config json: %v", err) + return "" + } + cliHostname, err := os.Hostname() + if err != nil { + logger.Warningf("dns: error getting client hostname: %v", err) + return "" + } + var sc string + for _, c := range rcs { + if !containsString(c.ClientLanguage, golang) || + !chosenByPercentage(c.Percentage) || + !containsString(c.ClientHostName, cliHostname) || + c.ServiceConfig == nil { + continue + } + sc = string(*c.ServiceConfig) + break + } + return sc +} diff --git a/vendor/google.golang.org/grpc/resolver/passthrough/passthrough.go b/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go similarity index 78% rename from vendor/google.golang.org/grpc/resolver/passthrough/passthrough.go rename to vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go index b76010d..afac565 100644 --- a/vendor/google.golang.org/grpc/resolver/passthrough/passthrough.go +++ b/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go @@ -20,13 +20,20 @@ // name without scheme back to gRPC as resolved address. package passthrough -import "google.golang.org/grpc/resolver" +import ( + "errors" + + "google.golang.org/grpc/resolver" +) const scheme = "passthrough" type passthroughBuilder struct{} -func (*passthroughBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption) (resolver.Resolver, error) { +func (*passthroughBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) { + if target.Endpoint() == "" && opts.Dialer == nil { + return nil, errors.New("passthrough: received empty target in Build()") + } r := &passthroughResolver{ target: target, cc: cc, @@ -45,10 +52,10 @@ type passthroughResolver struct { } func (r *passthroughResolver) start() { - r.cc.NewAddress([]resolver.Address{{Addr: r.target.Endpoint}}) + r.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: r.target.Endpoint()}}}) } -func (*passthroughResolver) ResolveNow(o resolver.ResolveNowOption) {} +func (*passthroughResolver) ResolveNow(o resolver.ResolveNowOptions) {} func (*passthroughResolver) Close() {} diff --git a/vendor/google.golang.org/grpc/internal/resolver/unix/unix.go b/vendor/google.golang.org/grpc/internal/resolver/unix/unix.go new file mode 100644 index 0000000..1609116 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/resolver/unix/unix.go @@ -0,0 +1,74 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 unix implements a resolver for unix targets. +package unix + +import ( + "fmt" + + "google.golang.org/grpc/internal/transport/networktype" + "google.golang.org/grpc/resolver" +) + +const unixScheme = "unix" +const unixAbstractScheme = "unix-abstract" + +type builder struct { + scheme string +} + +func (b *builder) Build(target resolver.Target, cc resolver.ClientConn, _ resolver.BuildOptions) (resolver.Resolver, error) { + if target.URL.Host != "" { + return nil, fmt.Errorf("invalid (non-empty) authority: %v", target.URL.Host) + } + + // gRPC was parsing the dial target manually before PR #4817, and we + // switched to using url.Parse() in that PR. To avoid breaking existing + // resolver implementations we ended up stripping the leading "/" from the + // endpoint. This obviously does not work for the "unix" scheme. Hence we + // end up using the parsed URL instead. + endpoint := target.URL.Path + if endpoint == "" { + endpoint = target.URL.Opaque + } + addr := resolver.Address{Addr: endpoint} + if b.scheme == unixAbstractScheme { + // We can not prepend \0 as c++ gRPC does, as in Golang '@' is used to signify we do + // not want trailing \0 in address. + addr.Addr = "@" + addr.Addr + } + cc.UpdateState(resolver.State{Addresses: []resolver.Address{networktype.Set(addr, "unix")}}) + return &nopResolver{}, nil +} + +func (b *builder) Scheme() string { + return b.scheme +} + +type nopResolver struct { +} + +func (*nopResolver) ResolveNow(resolver.ResolveNowOptions) {} + +func (*nopResolver) Close() {} + +func init() { + resolver.Register(&builder{scheme: unixScheme}) + resolver.Register(&builder{scheme: unixAbstractScheme}) +} diff --git a/vendor/google.golang.org/grpc/internal/serviceconfig/serviceconfig.go b/vendor/google.golang.org/grpc/internal/serviceconfig/serviceconfig.go new file mode 100644 index 0000000..51e733e --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/serviceconfig/serviceconfig.go @@ -0,0 +1,180 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 serviceconfig contains utility functions to parse service config. +package serviceconfig + +import ( + "encoding/json" + "fmt" + "time" + + "google.golang.org/grpc/balancer" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + externalserviceconfig "google.golang.org/grpc/serviceconfig" +) + +var logger = grpclog.Component("core") + +// BalancerConfig wraps the name and config associated with one load balancing +// policy. It corresponds to a single entry of the loadBalancingConfig field +// from ServiceConfig. +// +// It implements the json.Unmarshaler interface. +// +// https://github.com/grpc/grpc-proto/blob/54713b1e8bc6ed2d4f25fb4dff527842150b91b2/grpc/service_config/service_config.proto#L247 +type BalancerConfig struct { + Name string + Config externalserviceconfig.LoadBalancingConfig +} + +type intermediateBalancerConfig []map[string]json.RawMessage + +// MarshalJSON implements the json.Marshaler interface. +// +// It marshals the balancer and config into a length-1 slice +// ([]map[string]config). +func (bc *BalancerConfig) MarshalJSON() ([]byte, error) { + if bc.Config == nil { + // If config is nil, return empty config `{}`. + return []byte(fmt.Sprintf(`[{%q: %v}]`, bc.Name, "{}")), nil + } + c, err := json.Marshal(bc.Config) + if err != nil { + return nil, err + } + return []byte(fmt.Sprintf(`[{%q: %s}]`, bc.Name, c)), nil +} + +// UnmarshalJSON implements the json.Unmarshaler interface. +// +// ServiceConfig contains a list of loadBalancingConfigs, each with a name and +// config. This method iterates through that list in order, and stops at the +// first policy that is supported. +// - If the config for the first supported policy is invalid, the whole service +// config is invalid. +// - If the list doesn't contain any supported policy, the whole service config +// is invalid. +func (bc *BalancerConfig) UnmarshalJSON(b []byte) error { + var ir intermediateBalancerConfig + err := json.Unmarshal(b, &ir) + if err != nil { + return err + } + + var names []string + for i, lbcfg := range ir { + if len(lbcfg) != 1 { + return fmt.Errorf("invalid loadBalancingConfig: entry %v does not contain exactly 1 policy/config pair: %q", i, lbcfg) + } + + var ( + name string + jsonCfg json.RawMessage + ) + // Get the key:value pair from the map. We have already made sure that + // the map contains a single entry. + for name, jsonCfg = range lbcfg { + } + + names = append(names, name) + builder := balancer.Get(name) + if builder == nil { + // If the balancer is not registered, move on to the next config. + // This is not an error. + continue + } + bc.Name = name + + parser, ok := builder.(balancer.ConfigParser) + if !ok { + if string(jsonCfg) != "{}" { + logger.Warningf("non-empty balancer configuration %q, but balancer does not implement ParseConfig", string(jsonCfg)) + } + // Stop at this, though the builder doesn't support parsing config. + return nil + } + + cfg, err := parser.ParseConfig(jsonCfg) + if err != nil { + return fmt.Errorf("error parsing loadBalancingConfig for policy %q: %v", name, err) + } + bc.Config = cfg + return nil + } + // This is reached when the for loop iterates over all entries, but didn't + // return. This means we had a loadBalancingConfig slice but did not + // encounter a registered policy. The config is considered invalid in this + // case. + return fmt.Errorf("invalid loadBalancingConfig: no supported policies found in %v", names) +} + +// MethodConfig defines the configuration recommended by the service providers for a +// particular method. +type MethodConfig struct { + // WaitForReady indicates whether RPCs sent to this method should wait until + // the connection is ready by default (!failfast). The value specified via the + // gRPC client API will override the value set here. + WaitForReady *bool + // Timeout is the default timeout for RPCs sent to this method. The actual + // deadline used will be the minimum of the value specified here and the value + // set by the application via the gRPC client API. If either one is not set, + // then the other will be used. If neither is set, then the RPC has no deadline. + Timeout *time.Duration + // MaxReqSize is the maximum allowed payload size for an individual request in a + // stream (client->server) in bytes. The size which is measured is the serialized + // payload after per-message compression (but before stream compression) in bytes. + // The actual value used is the minimum of the value specified here and the value set + // by the application via the gRPC client API. If either one is not set, then the other + // will be used. If neither is set, then the built-in default is used. + MaxReqSize *int + // MaxRespSize is the maximum allowed payload size for an individual response in a + // stream (server->client) in bytes. + MaxRespSize *int + // RetryPolicy configures retry options for the method. + RetryPolicy *RetryPolicy +} + +// RetryPolicy defines the go-native version of the retry policy defined by the +// service config here: +// https://github.com/grpc/proposal/blob/master/A6-client-retries.md#integration-with-service-config +type RetryPolicy struct { + // MaxAttempts is the maximum number of attempts, including the original RPC. + // + // This field is required and must be two or greater. + MaxAttempts int + + // Exponential backoff parameters. The initial retry attempt will occur at + // random(0, initialBackoff). In general, the nth attempt will occur at + // random(0, + // min(initialBackoff*backoffMultiplier**(n-1), maxBackoff)). + // + // These fields are required and must be greater than zero. + InitialBackoff time.Duration + MaxBackoff time.Duration + BackoffMultiplier float64 + + // The set of status codes which may be retried. + // + // Status codes are specified as strings, e.g., "UNAVAILABLE". + // + // This field is required and must be non-empty. + // Note: a set is used to store this for easy lookup. + RetryableStatusCodes map[codes.Code]bool +} diff --git a/vendor/google.golang.org/grpc/internal/status/status.go b/vendor/google.golang.org/grpc/internal/status/status.go new file mode 100644 index 0000000..b0ead4f --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/status/status.go @@ -0,0 +1,176 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 status implements errors returned by gRPC. These errors are +// serialized and transmitted on the wire between server and client, and allow +// for additional data to be transmitted via the Details field in the status +// proto. gRPC service handlers should return an error created by this +// package, and gRPC clients should expect a corresponding error to be +// returned from the RPC call. +// +// This package upholds the invariants that a non-nil error may not +// contain an OK code, and an OK code must result in a nil error. +package status + +import ( + "errors" + "fmt" + + "github.com/golang/protobuf/proto" + "github.com/golang/protobuf/ptypes" + spb "google.golang.org/genproto/googleapis/rpc/status" + "google.golang.org/grpc/codes" +) + +// Status represents an RPC status code, message, and details. It is immutable +// and should be created with New, Newf, or FromProto. +type Status struct { + s *spb.Status +} + +// New returns a Status representing c and msg. +func New(c codes.Code, msg string) *Status { + return &Status{s: &spb.Status{Code: int32(c), Message: msg}} +} + +// Newf returns New(c, fmt.Sprintf(format, a...)). +func Newf(c codes.Code, format string, a ...interface{}) *Status { + return New(c, fmt.Sprintf(format, a...)) +} + +// FromProto returns a Status representing s. +func FromProto(s *spb.Status) *Status { + return &Status{s: proto.Clone(s).(*spb.Status)} +} + +// Err returns an error representing c and msg. If c is OK, returns nil. +func Err(c codes.Code, msg string) error { + return New(c, msg).Err() +} + +// Errorf returns Error(c, fmt.Sprintf(format, a...)). +func Errorf(c codes.Code, format string, a ...interface{}) error { + return Err(c, fmt.Sprintf(format, a...)) +} + +// Code returns the status code contained in s. +func (s *Status) Code() codes.Code { + if s == nil || s.s == nil { + return codes.OK + } + return codes.Code(s.s.Code) +} + +// Message returns the message contained in s. +func (s *Status) Message() string { + if s == nil || s.s == nil { + return "" + } + return s.s.Message +} + +// Proto returns s's status as an spb.Status proto message. +func (s *Status) Proto() *spb.Status { + if s == nil { + return nil + } + return proto.Clone(s.s).(*spb.Status) +} + +// Err returns an immutable error representing s; returns nil if s.Code() is OK. +func (s *Status) Err() error { + if s.Code() == codes.OK { + return nil + } + return &Error{s: s} +} + +// WithDetails returns a new status with the provided details messages appended to the status. +// If any errors are encountered, it returns nil and the first error encountered. +func (s *Status) WithDetails(details ...proto.Message) (*Status, error) { + if s.Code() == codes.OK { + return nil, errors.New("no error details for status with code OK") + } + // s.Code() != OK implies that s.Proto() != nil. + p := s.Proto() + for _, detail := range details { + any, err := ptypes.MarshalAny(detail) + if err != nil { + return nil, err + } + p.Details = append(p.Details, any) + } + return &Status{s: p}, nil +} + +// Details returns a slice of details messages attached to the status. +// If a detail cannot be decoded, the error is returned in place of the detail. +func (s *Status) Details() []interface{} { + if s == nil || s.s == nil { + return nil + } + details := make([]interface{}, 0, len(s.s.Details)) + for _, any := range s.s.Details { + detail := &ptypes.DynamicAny{} + if err := ptypes.UnmarshalAny(any, detail); err != nil { + details = append(details, err) + continue + } + details = append(details, detail.Message) + } + return details +} + +func (s *Status) String() string { + return fmt.Sprintf("rpc error: code = %s desc = %s", s.Code(), s.Message()) +} + +// Error wraps a pointer of a status proto. It implements error and Status, +// and a nil *Error should never be returned by this package. +type Error struct { + s *Status +} + +func (e *Error) Error() string { + return e.s.String() +} + +// GRPCStatus returns the Status represented by se. +func (e *Error) GRPCStatus() *Status { + return e.s +} + +// Is implements future error.Is functionality. +// A Error is equivalent if the code and message are identical. +func (e *Error) Is(target error) bool { + tse, ok := target.(*Error) + if !ok { + return false + } + return proto.Equal(e.s.s, tse.s.s) +} + +// IsRestrictedControlPlaneCode returns whether the status includes a code +// restricted for control plane usage as defined by gRFC A54. +func IsRestrictedControlPlaneCode(s *Status) bool { + switch s.Code() { + case codes.InvalidArgument, codes.NotFound, codes.AlreadyExists, codes.FailedPrecondition, codes.Aborted, codes.OutOfRange, codes.DataLoss: + return true + } + return false +} diff --git a/vendor/google.golang.org/grpc/internal/syscall/syscall_linux.go b/vendor/google.golang.org/grpc/internal/syscall/syscall_linux.go new file mode 100644 index 0000000..b3a7227 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/syscall/syscall_linux.go @@ -0,0 +1,112 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 syscall provides functionalities that grpc uses to get low-level operating system +// stats/info. +package syscall + +import ( + "fmt" + "net" + "syscall" + "time" + + "golang.org/x/sys/unix" + "google.golang.org/grpc/grpclog" +) + +var logger = grpclog.Component("core") + +// GetCPUTime returns the how much CPU time has passed since the start of this process. +func GetCPUTime() int64 { + var ts unix.Timespec + if err := unix.ClockGettime(unix.CLOCK_PROCESS_CPUTIME_ID, &ts); err != nil { + logger.Fatal(err) + } + return ts.Nano() +} + +// Rusage is an alias for syscall.Rusage under linux environment. +type Rusage = syscall.Rusage + +// GetRusage returns the resource usage of current process. +func GetRusage() *Rusage { + rusage := new(Rusage) + syscall.Getrusage(syscall.RUSAGE_SELF, rusage) + return rusage +} + +// CPUTimeDiff returns the differences of user CPU time and system CPU time used +// between two Rusage structs. +func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64) { + var ( + utimeDiffs = latest.Utime.Sec - first.Utime.Sec + utimeDiffus = latest.Utime.Usec - first.Utime.Usec + stimeDiffs = latest.Stime.Sec - first.Stime.Sec + stimeDiffus = latest.Stime.Usec - first.Stime.Usec + ) + + uTimeElapsed := float64(utimeDiffs) + float64(utimeDiffus)*1.0e-6 + sTimeElapsed := float64(stimeDiffs) + float64(stimeDiffus)*1.0e-6 + + return uTimeElapsed, sTimeElapsed +} + +// SetTCPUserTimeout sets the TCP user timeout on a connection's socket +func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error { + tcpconn, ok := conn.(*net.TCPConn) + if !ok { + // not a TCP connection. exit early + return nil + } + rawConn, err := tcpconn.SyscallConn() + if err != nil { + return fmt.Errorf("error getting raw connection: %v", err) + } + err = rawConn.Control(func(fd uintptr) { + err = syscall.SetsockoptInt(int(fd), syscall.IPPROTO_TCP, unix.TCP_USER_TIMEOUT, int(timeout/time.Millisecond)) + }) + if err != nil { + return fmt.Errorf("error setting option on socket: %v", err) + } + + return nil +} + +// GetTCPUserTimeout gets the TCP user timeout on a connection's socket +func GetTCPUserTimeout(conn net.Conn) (opt int, err error) { + tcpconn, ok := conn.(*net.TCPConn) + if !ok { + err = fmt.Errorf("conn is not *net.TCPConn. got %T", conn) + return + } + rawConn, err := tcpconn.SyscallConn() + if err != nil { + err = fmt.Errorf("error getting raw connection: %v", err) + return + } + err = rawConn.Control(func(fd uintptr) { + opt, err = syscall.GetsockoptInt(int(fd), syscall.IPPROTO_TCP, unix.TCP_USER_TIMEOUT) + }) + if err != nil { + err = fmt.Errorf("error getting option on socket: %v", err) + return + } + + return +} diff --git a/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go b/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go new file mode 100644 index 0000000..999f52c --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go @@ -0,0 +1,77 @@ +//go:build !linux +// +build !linux + +/* + * + * Copyright 2018 gRPC authors. + * + * 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 syscall provides functionalities that grpc uses to get low-level +// operating system stats/info. +package syscall + +import ( + "net" + "sync" + "time" + + "google.golang.org/grpc/grpclog" +) + +var once sync.Once +var logger = grpclog.Component("core") + +func log() { + once.Do(func() { + logger.Info("CPU time info is unavailable on non-linux environments.") + }) +} + +// GetCPUTime returns the how much CPU time has passed since the start of this +// process. It always returns 0 under non-linux environments. +func GetCPUTime() int64 { + log() + return 0 +} + +// Rusage is an empty struct under non-linux environments. +type Rusage struct{} + +// GetRusage is a no-op function under non-linux environments. +func GetRusage() *Rusage { + log() + return nil +} + +// CPUTimeDiff returns the differences of user CPU time and system CPU time used +// between two Rusage structs. It a no-op function for non-linux environments. +func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64) { + log() + return 0, 0 +} + +// SetTCPUserTimeout is a no-op function under non-linux environments. +func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error { + log() + return nil +} + +// GetTCPUserTimeout is a no-op function under non-linux environments. +// A negative return value indicates the operation is not supported +func GetTCPUserTimeout(conn net.Conn) (int, error) { + log() + return -1, nil +} diff --git a/vendor/google.golang.org/grpc/transport/bdp_estimator.go b/vendor/google.golang.org/grpc/internal/transport/bdp_estimator.go similarity index 94% rename from vendor/google.golang.org/grpc/transport/bdp_estimator.go rename to vendor/google.golang.org/grpc/internal/transport/bdp_estimator.go index 63cd262..070680e 100644 --- a/vendor/google.golang.org/grpc/transport/bdp_estimator.go +++ b/vendor/google.golang.org/grpc/internal/transport/bdp_estimator.go @@ -24,9 +24,10 @@ import ( ) const ( - // bdpLimit is the maximum value the flow control windows - // will be increased to. - bdpLimit = (1 << 20) * 4 + // bdpLimit is the maximum value the flow control windows will be increased + // to. TCP typically limits this to 4MB, but some systems go up to 16MB. + // Since this is only a limit, it is safe to make it optimistic. + bdpLimit = (1 << 20) * 16 // alpha is a constant factor used to keep a moving average // of RTTs. alpha = 0.9 diff --git a/vendor/google.golang.org/grpc/internal/transport/controlbuf.go b/vendor/google.golang.org/grpc/internal/transport/controlbuf.go new file mode 100644 index 0000000..9097385 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/controlbuf.go @@ -0,0 +1,998 @@ +/* + * + * Copyright 2014 gRPC authors. + * + * 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 transport + +import ( + "bytes" + "errors" + "fmt" + "runtime" + "strconv" + "sync" + "sync/atomic" + + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/internal/grpcutil" + "google.golang.org/grpc/status" +) + +var updateHeaderTblSize = func(e *hpack.Encoder, v uint32) { + e.SetMaxDynamicTableSizeLimit(v) +} + +type itemNode struct { + it interface{} + next *itemNode +} + +type itemList struct { + head *itemNode + tail *itemNode +} + +func (il *itemList) enqueue(i interface{}) { + n := &itemNode{it: i} + if il.tail == nil { + il.head, il.tail = n, n + return + } + il.tail.next = n + il.tail = n +} + +// peek returns the first item in the list without removing it from the +// list. +func (il *itemList) peek() interface{} { + return il.head.it +} + +func (il *itemList) dequeue() interface{} { + if il.head == nil { + return nil + } + i := il.head.it + il.head = il.head.next + if il.head == nil { + il.tail = nil + } + return i +} + +func (il *itemList) dequeueAll() *itemNode { + h := il.head + il.head, il.tail = nil, nil + return h +} + +func (il *itemList) isEmpty() bool { + return il.head == nil +} + +// The following defines various control items which could flow through +// the control buffer of transport. They represent different aspects of +// control tasks, e.g., flow control, settings, streaming resetting, etc. + +// maxQueuedTransportResponseFrames is the most queued "transport response" +// frames we will buffer before preventing new reads from occurring on the +// transport. These are control frames sent in response to client requests, +// such as RST_STREAM due to bad headers or settings acks. +const maxQueuedTransportResponseFrames = 50 + +type cbItem interface { + isTransportResponseFrame() bool +} + +// registerStream is used to register an incoming stream with loopy writer. +type registerStream struct { + streamID uint32 + wq *writeQuota +} + +func (*registerStream) isTransportResponseFrame() bool { return false } + +// headerFrame is also used to register stream on the client-side. +type headerFrame struct { + streamID uint32 + hf []hpack.HeaderField + endStream bool // Valid on server side. + initStream func(uint32) error // Used only on the client side. + onWrite func() + wq *writeQuota // write quota for the stream created. + cleanup *cleanupStream // Valid on the server side. + onOrphaned func(error) // Valid on client-side +} + +func (h *headerFrame) isTransportResponseFrame() bool { + return h.cleanup != nil && h.cleanup.rst // Results in a RST_STREAM +} + +type cleanupStream struct { + streamID uint32 + rst bool + rstCode http2.ErrCode + onWrite func() +} + +func (c *cleanupStream) isTransportResponseFrame() bool { return c.rst } // Results in a RST_STREAM + +type earlyAbortStream struct { + httpStatus uint32 + streamID uint32 + contentSubtype string + status *status.Status + rst bool +} + +func (*earlyAbortStream) isTransportResponseFrame() bool { return false } + +type dataFrame struct { + streamID uint32 + endStream bool + h []byte + d []byte + // onEachWrite is called every time + // a part of d is written out. + onEachWrite func() +} + +func (*dataFrame) isTransportResponseFrame() bool { return false } + +type incomingWindowUpdate struct { + streamID uint32 + increment uint32 +} + +func (*incomingWindowUpdate) isTransportResponseFrame() bool { return false } + +type outgoingWindowUpdate struct { + streamID uint32 + increment uint32 +} + +func (*outgoingWindowUpdate) isTransportResponseFrame() bool { + return false // window updates are throttled by thresholds +} + +type incomingSettings struct { + ss []http2.Setting +} + +func (*incomingSettings) isTransportResponseFrame() bool { return true } // Results in a settings ACK + +type outgoingSettings struct { + ss []http2.Setting +} + +func (*outgoingSettings) isTransportResponseFrame() bool { return false } + +type incomingGoAway struct { +} + +func (*incomingGoAway) isTransportResponseFrame() bool { return false } + +type goAway struct { + code http2.ErrCode + debugData []byte + headsUp bool + closeConn error // if set, loopyWriter will exit, resulting in conn closure +} + +func (*goAway) isTransportResponseFrame() bool { return false } + +type ping struct { + ack bool + data [8]byte +} + +func (*ping) isTransportResponseFrame() bool { return true } + +type outFlowControlSizeRequest struct { + resp chan uint32 +} + +func (*outFlowControlSizeRequest) isTransportResponseFrame() bool { return false } + +// closeConnection is an instruction to tell the loopy writer to flush the +// framer and exit, which will cause the transport's connection to be closed +// (by the client or server). The transport itself will close after the reader +// encounters the EOF caused by the connection closure. +type closeConnection struct{} + +func (closeConnection) isTransportResponseFrame() bool { return false } + +type outStreamState int + +const ( + active outStreamState = iota + empty + waitingOnStreamQuota +) + +type outStream struct { + id uint32 + state outStreamState + itl *itemList + bytesOutStanding int + wq *writeQuota + + next *outStream + prev *outStream +} + +func (s *outStream) deleteSelf() { + if s.prev != nil { + s.prev.next = s.next + } + if s.next != nil { + s.next.prev = s.prev + } + s.next, s.prev = nil, nil +} + +type outStreamList struct { + // Following are sentinel objects that mark the + // beginning and end of the list. They do not + // contain any item lists. All valid objects are + // inserted in between them. + // This is needed so that an outStream object can + // deleteSelf() in O(1) time without knowing which + // list it belongs to. + head *outStream + tail *outStream +} + +func newOutStreamList() *outStreamList { + head, tail := new(outStream), new(outStream) + head.next = tail + tail.prev = head + return &outStreamList{ + head: head, + tail: tail, + } +} + +func (l *outStreamList) enqueue(s *outStream) { + e := l.tail.prev + e.next = s + s.prev = e + s.next = l.tail + l.tail.prev = s +} + +// remove from the beginning of the list. +func (l *outStreamList) dequeue() *outStream { + b := l.head.next + if b == l.tail { + return nil + } + b.deleteSelf() + return b +} + +// controlBuffer is a way to pass information to loopy. +// Information is passed as specific struct types called control frames. +// A control frame not only represents data, messages or headers to be sent out +// but can also be used to instruct loopy to update its internal state. +// It shouldn't be confused with an HTTP2 frame, although some of the control frames +// like dataFrame and headerFrame do go out on wire as HTTP2 frames. +type controlBuffer struct { + ch chan struct{} + done <-chan struct{} + mu sync.Mutex + consumerWaiting bool + list *itemList + err error + + // transportResponseFrames counts the number of queued items that represent + // the response of an action initiated by the peer. trfChan is created + // when transportResponseFrames >= maxQueuedTransportResponseFrames and is + // closed and nilled when transportResponseFrames drops below the + // threshold. Both fields are protected by mu. + transportResponseFrames int + trfChan atomic.Value // chan struct{} +} + +func newControlBuffer(done <-chan struct{}) *controlBuffer { + return &controlBuffer{ + ch: make(chan struct{}, 1), + list: &itemList{}, + done: done, + } +} + +// throttle blocks if there are too many incomingSettings/cleanupStreams in the +// controlbuf. +func (c *controlBuffer) throttle() { + ch, _ := c.trfChan.Load().(chan struct{}) + if ch != nil { + select { + case <-ch: + case <-c.done: + } + } +} + +func (c *controlBuffer) put(it cbItem) error { + _, err := c.executeAndPut(nil, it) + return err +} + +func (c *controlBuffer) executeAndPut(f func(it interface{}) bool, it cbItem) (bool, error) { + var wakeUp bool + c.mu.Lock() + if c.err != nil { + c.mu.Unlock() + return false, c.err + } + if f != nil { + if !f(it) { // f wasn't successful + c.mu.Unlock() + return false, nil + } + } + if c.consumerWaiting { + wakeUp = true + c.consumerWaiting = false + } + c.list.enqueue(it) + if it.isTransportResponseFrame() { + c.transportResponseFrames++ + if c.transportResponseFrames == maxQueuedTransportResponseFrames { + // We are adding the frame that puts us over the threshold; create + // a throttling channel. + c.trfChan.Store(make(chan struct{})) + } + } + c.mu.Unlock() + if wakeUp { + select { + case c.ch <- struct{}{}: + default: + } + } + return true, nil +} + +// Note argument f should never be nil. +func (c *controlBuffer) execute(f func(it interface{}) bool, it interface{}) (bool, error) { + c.mu.Lock() + if c.err != nil { + c.mu.Unlock() + return false, c.err + } + if !f(it) { // f wasn't successful + c.mu.Unlock() + return false, nil + } + c.mu.Unlock() + return true, nil +} + +func (c *controlBuffer) get(block bool) (interface{}, error) { + for { + c.mu.Lock() + if c.err != nil { + c.mu.Unlock() + return nil, c.err + } + if !c.list.isEmpty() { + h := c.list.dequeue().(cbItem) + if h.isTransportResponseFrame() { + if c.transportResponseFrames == maxQueuedTransportResponseFrames { + // We are removing the frame that put us over the + // threshold; close and clear the throttling channel. + ch := c.trfChan.Load().(chan struct{}) + close(ch) + c.trfChan.Store((chan struct{})(nil)) + } + c.transportResponseFrames-- + } + c.mu.Unlock() + return h, nil + } + if !block { + c.mu.Unlock() + return nil, nil + } + c.consumerWaiting = true + c.mu.Unlock() + select { + case <-c.ch: + case <-c.done: + return nil, errors.New("transport closed by client") + } + } +} + +func (c *controlBuffer) finish() { + c.mu.Lock() + if c.err != nil { + c.mu.Unlock() + return + } + c.err = ErrConnClosing + // There may be headers for streams in the control buffer. + // These streams need to be cleaned out since the transport + // is still not aware of these yet. + for head := c.list.dequeueAll(); head != nil; head = head.next { + hdr, ok := head.it.(*headerFrame) + if !ok { + continue + } + if hdr.onOrphaned != nil { // It will be nil on the server-side. + hdr.onOrphaned(ErrConnClosing) + } + } + // In case throttle() is currently in flight, it needs to be unblocked. + // Otherwise, the transport may not close, since the transport is closed by + // the reader encountering the connection error. + ch, _ := c.trfChan.Load().(chan struct{}) + if ch != nil { + close(ch) + } + c.trfChan.Store((chan struct{})(nil)) + c.mu.Unlock() +} + +type side int + +const ( + clientSide side = iota + serverSide +) + +// Loopy receives frames from the control buffer. +// Each frame is handled individually; most of the work done by loopy goes +// into handling data frames. Loopy maintains a queue of active streams, and each +// stream maintains a queue of data frames; as loopy receives data frames +// it gets added to the queue of the relevant stream. +// Loopy goes over this list of active streams by processing one node every iteration, +// thereby closely resemebling to a round-robin scheduling over all streams. While +// processing a stream, loopy writes out data bytes from this stream capped by the min +// of http2MaxFrameLen, connection-level flow control and stream-level flow control. +type loopyWriter struct { + side side + cbuf *controlBuffer + sendQuota uint32 + oiws uint32 // outbound initial window size. + // estdStreams is map of all established streams that are not cleaned-up yet. + // On client-side, this is all streams whose headers were sent out. + // On server-side, this is all streams whose headers were received. + estdStreams map[uint32]*outStream // Established streams. + // activeStreams is a linked-list of all streams that have data to send and some + // stream-level flow control quota. + // Each of these streams internally have a list of data items(and perhaps trailers + // on the server-side) to be sent out. + activeStreams *outStreamList + framer *framer + hBuf *bytes.Buffer // The buffer for HPACK encoding. + hEnc *hpack.Encoder // HPACK encoder. + bdpEst *bdpEstimator + draining bool + + // Side-specific handlers + ssGoAwayHandler func(*goAway) (bool, error) +} + +func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdpEstimator) *loopyWriter { + var buf bytes.Buffer + l := &loopyWriter{ + side: s, + cbuf: cbuf, + sendQuota: defaultWindowSize, + oiws: defaultWindowSize, + estdStreams: make(map[uint32]*outStream), + activeStreams: newOutStreamList(), + framer: fr, + hBuf: &buf, + hEnc: hpack.NewEncoder(&buf), + bdpEst: bdpEst, + } + return l +} + +const minBatchSize = 1000 + +// run should be run in a separate goroutine. +// It reads control frames from controlBuf and processes them by: +// 1. Updating loopy's internal state, or/and +// 2. Writing out HTTP2 frames on the wire. +// +// Loopy keeps all active streams with data to send in a linked-list. +// All streams in the activeStreams linked-list must have both: +// 1. Data to send, and +// 2. Stream level flow control quota available. +// +// In each iteration of run loop, other than processing the incoming control +// frame, loopy calls processData, which processes one node from the activeStreams linked-list. +// This results in writing of HTTP2 frames into an underlying write buffer. +// When there's no more control frames to read from controlBuf, loopy flushes the write buffer. +// As an optimization, to increase the batch size for each flush, loopy yields the processor, once +// if the batch size is too low to give stream goroutines a chance to fill it up. +func (l *loopyWriter) run() (err error) { + // Always flush the writer before exiting in case there are pending frames + // to be sent. + defer l.framer.writer.Flush() + for { + it, err := l.cbuf.get(true) + if err != nil { + return err + } + if err = l.handle(it); err != nil { + return err + } + if _, err = l.processData(); err != nil { + return err + } + gosched := true + hasdata: + for { + it, err := l.cbuf.get(false) + if err != nil { + return err + } + if it != nil { + if err = l.handle(it); err != nil { + return err + } + if _, err = l.processData(); err != nil { + return err + } + continue hasdata + } + isEmpty, err := l.processData() + if err != nil { + return err + } + if !isEmpty { + continue hasdata + } + if gosched { + gosched = false + if l.framer.writer.offset < minBatchSize { + runtime.Gosched() + continue hasdata + } + } + l.framer.writer.Flush() + break hasdata + } + } +} + +func (l *loopyWriter) outgoingWindowUpdateHandler(w *outgoingWindowUpdate) error { + return l.framer.fr.WriteWindowUpdate(w.streamID, w.increment) +} + +func (l *loopyWriter) incomingWindowUpdateHandler(w *incomingWindowUpdate) error { + // Otherwise update the quota. + if w.streamID == 0 { + l.sendQuota += w.increment + return nil + } + // Find the stream and update it. + if str, ok := l.estdStreams[w.streamID]; ok { + str.bytesOutStanding -= int(w.increment) + if strQuota := int(l.oiws) - str.bytesOutStanding; strQuota > 0 && str.state == waitingOnStreamQuota { + str.state = active + l.activeStreams.enqueue(str) + return nil + } + } + return nil +} + +func (l *loopyWriter) outgoingSettingsHandler(s *outgoingSettings) error { + return l.framer.fr.WriteSettings(s.ss...) +} + +func (l *loopyWriter) incomingSettingsHandler(s *incomingSettings) error { + if err := l.applySettings(s.ss); err != nil { + return err + } + return l.framer.fr.WriteSettingsAck() +} + +func (l *loopyWriter) registerStreamHandler(h *registerStream) error { + str := &outStream{ + id: h.streamID, + state: empty, + itl: &itemList{}, + wq: h.wq, + } + l.estdStreams[h.streamID] = str + return nil +} + +func (l *loopyWriter) headerHandler(h *headerFrame) error { + if l.side == serverSide { + str, ok := l.estdStreams[h.streamID] + if !ok { + if logger.V(logLevel) { + logger.Warningf("transport: loopy doesn't recognize the stream: %d", h.streamID) + } + return nil + } + // Case 1.A: Server is responding back with headers. + if !h.endStream { + return l.writeHeader(h.streamID, h.endStream, h.hf, h.onWrite) + } + // else: Case 1.B: Server wants to close stream. + + if str.state != empty { // either active or waiting on stream quota. + // add it str's list of items. + str.itl.enqueue(h) + return nil + } + if err := l.writeHeader(h.streamID, h.endStream, h.hf, h.onWrite); err != nil { + return err + } + return l.cleanupStreamHandler(h.cleanup) + } + // Case 2: Client wants to originate stream. + str := &outStream{ + id: h.streamID, + state: empty, + itl: &itemList{}, + wq: h.wq, + } + return l.originateStream(str, h) +} + +func (l *loopyWriter) originateStream(str *outStream, hdr *headerFrame) error { + // l.draining is set when handling GoAway. In which case, we want to avoid + // creating new streams. + if l.draining { + // TODO: provide a better error with the reason we are in draining. + hdr.onOrphaned(errStreamDrain) + return nil + } + if err := hdr.initStream(str.id); err != nil { + return err + } + if err := l.writeHeader(str.id, hdr.endStream, hdr.hf, hdr.onWrite); err != nil { + return err + } + l.estdStreams[str.id] = str + return nil +} + +func (l *loopyWriter) writeHeader(streamID uint32, endStream bool, hf []hpack.HeaderField, onWrite func()) error { + if onWrite != nil { + onWrite() + } + l.hBuf.Reset() + for _, f := range hf { + if err := l.hEnc.WriteField(f); err != nil { + if logger.V(logLevel) { + logger.Warningf("transport: loopyWriter.writeHeader encountered error while encoding headers: %v", err) + } + } + } + var ( + err error + endHeaders, first bool + ) + first = true + for !endHeaders { + size := l.hBuf.Len() + if size > http2MaxFrameLen { + size = http2MaxFrameLen + } else { + endHeaders = true + } + if first { + first = false + err = l.framer.fr.WriteHeaders(http2.HeadersFrameParam{ + StreamID: streamID, + BlockFragment: l.hBuf.Next(size), + EndStream: endStream, + EndHeaders: endHeaders, + }) + } else { + err = l.framer.fr.WriteContinuation( + streamID, + endHeaders, + l.hBuf.Next(size), + ) + } + if err != nil { + return err + } + } + return nil +} + +func (l *loopyWriter) preprocessData(df *dataFrame) error { + str, ok := l.estdStreams[df.streamID] + if !ok { + return nil + } + // If we got data for a stream it means that + // stream was originated and the headers were sent out. + str.itl.enqueue(df) + if str.state == empty { + str.state = active + l.activeStreams.enqueue(str) + } + return nil +} + +func (l *loopyWriter) pingHandler(p *ping) error { + if !p.ack { + l.bdpEst.timesnap(p.data) + } + return l.framer.fr.WritePing(p.ack, p.data) + +} + +func (l *loopyWriter) outFlowControlSizeRequestHandler(o *outFlowControlSizeRequest) error { + o.resp <- l.sendQuota + return nil +} + +func (l *loopyWriter) cleanupStreamHandler(c *cleanupStream) error { + c.onWrite() + if str, ok := l.estdStreams[c.streamID]; ok { + // On the server side it could be a trailers-only response or + // a RST_STREAM before stream initialization thus the stream might + // not be established yet. + delete(l.estdStreams, c.streamID) + str.deleteSelf() + } + if c.rst { // If RST_STREAM needs to be sent. + if err := l.framer.fr.WriteRSTStream(c.streamID, c.rstCode); err != nil { + return err + } + } + if l.draining && len(l.estdStreams) == 0 { + return errors.New("finished processing active streams while in draining mode") + } + return nil +} + +func (l *loopyWriter) earlyAbortStreamHandler(eas *earlyAbortStream) error { + if l.side == clientSide { + return errors.New("earlyAbortStream not handled on client") + } + // In case the caller forgets to set the http status, default to 200. + if eas.httpStatus == 0 { + eas.httpStatus = 200 + } + headerFields := []hpack.HeaderField{ + {Name: ":status", Value: strconv.Itoa(int(eas.httpStatus))}, + {Name: "content-type", Value: grpcutil.ContentType(eas.contentSubtype)}, + {Name: "grpc-status", Value: strconv.Itoa(int(eas.status.Code()))}, + {Name: "grpc-message", Value: encodeGrpcMessage(eas.status.Message())}, + } + + if err := l.writeHeader(eas.streamID, true, headerFields, nil); err != nil { + return err + } + if eas.rst { + if err := l.framer.fr.WriteRSTStream(eas.streamID, http2.ErrCodeNo); err != nil { + return err + } + } + return nil +} + +func (l *loopyWriter) incomingGoAwayHandler(*incomingGoAway) error { + if l.side == clientSide { + l.draining = true + if len(l.estdStreams) == 0 { + return errors.New("received GOAWAY with no active streams") + } + } + return nil +} + +func (l *loopyWriter) goAwayHandler(g *goAway) error { + // Handling of outgoing GoAway is very specific to side. + if l.ssGoAwayHandler != nil { + draining, err := l.ssGoAwayHandler(g) + if err != nil { + return err + } + l.draining = draining + } + return nil +} + +func (l *loopyWriter) closeConnectionHandler() error { + // Exit loopyWriter entirely by returning an error here. This will lead to + // the transport closing the connection, and, ultimately, transport + // closure. + return ErrConnClosing +} + +func (l *loopyWriter) handle(i interface{}) error { + switch i := i.(type) { + case *incomingWindowUpdate: + return l.incomingWindowUpdateHandler(i) + case *outgoingWindowUpdate: + return l.outgoingWindowUpdateHandler(i) + case *incomingSettings: + return l.incomingSettingsHandler(i) + case *outgoingSettings: + return l.outgoingSettingsHandler(i) + case *headerFrame: + return l.headerHandler(i) + case *registerStream: + return l.registerStreamHandler(i) + case *cleanupStream: + return l.cleanupStreamHandler(i) + case *earlyAbortStream: + return l.earlyAbortStreamHandler(i) + case *incomingGoAway: + return l.incomingGoAwayHandler(i) + case *dataFrame: + return l.preprocessData(i) + case *ping: + return l.pingHandler(i) + case *goAway: + return l.goAwayHandler(i) + case *outFlowControlSizeRequest: + return l.outFlowControlSizeRequestHandler(i) + case closeConnection: + return l.closeConnectionHandler() + default: + return fmt.Errorf("transport: unknown control message type %T", i) + } +} + +func (l *loopyWriter) applySettings(ss []http2.Setting) error { + for _, s := range ss { + switch s.ID { + case http2.SettingInitialWindowSize: + o := l.oiws + l.oiws = s.Val + if o < l.oiws { + // If the new limit is greater make all depleted streams active. + for _, stream := range l.estdStreams { + if stream.state == waitingOnStreamQuota { + stream.state = active + l.activeStreams.enqueue(stream) + } + } + } + case http2.SettingHeaderTableSize: + updateHeaderTblSize(l.hEnc, s.Val) + } + } + return nil +} + +// processData removes the first stream from active streams, writes out at most 16KB +// of its data and then puts it at the end of activeStreams if there's still more data +// to be sent and stream has some stream-level flow control. +func (l *loopyWriter) processData() (bool, error) { + if l.sendQuota == 0 { + return true, nil + } + str := l.activeStreams.dequeue() // Remove the first stream. + if str == nil { + return true, nil + } + dataItem := str.itl.peek().(*dataFrame) // Peek at the first data item this stream. + // A data item is represented by a dataFrame, since it later translates into + // multiple HTTP2 data frames. + // Every dataFrame has two buffers; h that keeps grpc-message header and d that is actual data. + // As an optimization to keep wire traffic low, data from d is copied to h to make as big as the + // maximum possible HTTP2 frame size. + + if len(dataItem.h) == 0 && len(dataItem.d) == 0 { // Empty data frame + // Client sends out empty data frame with endStream = true + if err := l.framer.fr.WriteData(dataItem.streamID, dataItem.endStream, nil); err != nil { + return false, err + } + str.itl.dequeue() // remove the empty data item from stream + if str.itl.isEmpty() { + str.state = empty + } else if trailer, ok := str.itl.peek().(*headerFrame); ok { // the next item is trailers. + if err := l.writeHeader(trailer.streamID, trailer.endStream, trailer.hf, trailer.onWrite); err != nil { + return false, err + } + if err := l.cleanupStreamHandler(trailer.cleanup); err != nil { + return false, nil + } + } else { + l.activeStreams.enqueue(str) + } + return false, nil + } + var ( + buf []byte + ) + // Figure out the maximum size we can send + maxSize := http2MaxFrameLen + if strQuota := int(l.oiws) - str.bytesOutStanding; strQuota <= 0 { // stream-level flow control. + str.state = waitingOnStreamQuota + return false, nil + } else if maxSize > strQuota { + maxSize = strQuota + } + if maxSize > int(l.sendQuota) { // connection-level flow control. + maxSize = int(l.sendQuota) + } + // Compute how much of the header and data we can send within quota and max frame length + hSize := min(maxSize, len(dataItem.h)) + dSize := min(maxSize-hSize, len(dataItem.d)) + if hSize != 0 { + if dSize == 0 { + buf = dataItem.h + } else { + // We can add some data to grpc message header to distribute bytes more equally across frames. + // Copy on the stack to avoid generating garbage + var localBuf [http2MaxFrameLen]byte + copy(localBuf[:hSize], dataItem.h) + copy(localBuf[hSize:], dataItem.d[:dSize]) + buf = localBuf[:hSize+dSize] + } + } else { + buf = dataItem.d + } + + size := hSize + dSize + + // Now that outgoing flow controls are checked we can replenish str's write quota + str.wq.replenish(size) + var endStream bool + // If this is the last data message on this stream and all of it can be written in this iteration. + if dataItem.endStream && len(dataItem.h)+len(dataItem.d) <= size { + endStream = true + } + if dataItem.onEachWrite != nil { + dataItem.onEachWrite() + } + if err := l.framer.fr.WriteData(dataItem.streamID, endStream, buf[:size]); err != nil { + return false, err + } + str.bytesOutStanding += size + l.sendQuota -= uint32(size) + dataItem.h = dataItem.h[hSize:] + dataItem.d = dataItem.d[dSize:] + + if len(dataItem.h) == 0 && len(dataItem.d) == 0 { // All the data from that message was written out. + str.itl.dequeue() + } + if str.itl.isEmpty() { + str.state = empty + } else if trailer, ok := str.itl.peek().(*headerFrame); ok { // The next item is trailers. + if err := l.writeHeader(trailer.streamID, trailer.endStream, trailer.hf, trailer.onWrite); err != nil { + return false, err + } + if err := l.cleanupStreamHandler(trailer.cleanup); err != nil { + return false, err + } + } else if int(l.oiws)-str.bytesOutStanding <= 0 { // Ran out of stream quota. + str.state = waitingOnStreamQuota + } else { // Otherwise add it back to the list of active streams. + l.activeStreams.enqueue(str) + } + return false, nil +} + +func min(a, b int) int { + if a < b { + return a + } + return b +} diff --git a/vendor/google.golang.org/grpc/internal/transport/defaults.go b/vendor/google.golang.org/grpc/internal/transport/defaults.go new file mode 100644 index 0000000..bc8ee07 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/defaults.go @@ -0,0 +1,55 @@ +/* + * + * Copyright 2018 gRPC authors. + * + * 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 transport + +import ( + "math" + "time" +) + +const ( + // The default value of flow control window size in HTTP2 spec. + defaultWindowSize = 65535 + // The initial window size for flow control. + initialWindowSize = defaultWindowSize // for an RPC + infinity = time.Duration(math.MaxInt64) + defaultClientKeepaliveTime = infinity + defaultClientKeepaliveTimeout = 20 * time.Second + defaultMaxStreamsClient = 100 + defaultMaxConnectionIdle = infinity + defaultMaxConnectionAge = infinity + defaultMaxConnectionAgeGrace = infinity + defaultServerKeepaliveTime = 2 * time.Hour + defaultServerKeepaliveTimeout = 20 * time.Second + defaultKeepalivePolicyMinTime = 5 * time.Minute + // max window limit set by HTTP2 Specs. + maxWindowSize = math.MaxInt32 + // defaultWriteQuota is the default value for number of data + // bytes that each stream can schedule before some of it being + // flushed out. + defaultWriteQuota = 64 * 1024 + defaultClientMaxHeaderListSize = uint32(16 << 20) + defaultServerMaxHeaderListSize = uint32(16 << 20) +) + +// MaxStreamID is the upper bound for the stream ID before the current +// transport gracefully closes and new transport is created for subsequent RPCs. +// This is set to 75% of 2^31-1. Streams are identified with an unsigned 31-bit +// integer. It's exported so that tests can override it. +var MaxStreamID = uint32(math.MaxInt32 * 3 / 4) diff --git a/vendor/google.golang.org/grpc/internal/transport/flowcontrol.go b/vendor/google.golang.org/grpc/internal/transport/flowcontrol.go new file mode 100644 index 0000000..97198c5 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/flowcontrol.go @@ -0,0 +1,215 @@ +/* + * + * Copyright 2014 gRPC authors. + * + * 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 transport + +import ( + "fmt" + "math" + "sync" + "sync/atomic" +) + +// writeQuota is a soft limit on the amount of data a stream can +// schedule before some of it is written out. +type writeQuota struct { + quota int32 + // get waits on read from when quota goes less than or equal to zero. + // replenish writes on it when quota goes positive again. + ch chan struct{} + // done is triggered in error case. + done <-chan struct{} + // replenish is called by loopyWriter to give quota back to. + // It is implemented as a field so that it can be updated + // by tests. + replenish func(n int) +} + +func newWriteQuota(sz int32, done <-chan struct{}) *writeQuota { + w := &writeQuota{ + quota: sz, + ch: make(chan struct{}, 1), + done: done, + } + w.replenish = w.realReplenish + return w +} + +func (w *writeQuota) get(sz int32) error { + for { + if atomic.LoadInt32(&w.quota) > 0 { + atomic.AddInt32(&w.quota, -sz) + return nil + } + select { + case <-w.ch: + continue + case <-w.done: + return errStreamDone + } + } +} + +func (w *writeQuota) realReplenish(n int) { + sz := int32(n) + a := atomic.AddInt32(&w.quota, sz) + b := a - sz + if b <= 0 && a > 0 { + select { + case w.ch <- struct{}{}: + default: + } + } +} + +type trInFlow struct { + limit uint32 + unacked uint32 + effectiveWindowSize uint32 +} + +func (f *trInFlow) newLimit(n uint32) uint32 { + d := n - f.limit + f.limit = n + f.updateEffectiveWindowSize() + return d +} + +func (f *trInFlow) onData(n uint32) uint32 { + f.unacked += n + if f.unacked >= f.limit/4 { + w := f.unacked + f.unacked = 0 + f.updateEffectiveWindowSize() + return w + } + f.updateEffectiveWindowSize() + return 0 +} + +func (f *trInFlow) reset() uint32 { + w := f.unacked + f.unacked = 0 + f.updateEffectiveWindowSize() + return w +} + +func (f *trInFlow) updateEffectiveWindowSize() { + atomic.StoreUint32(&f.effectiveWindowSize, f.limit-f.unacked) +} + +func (f *trInFlow) getSize() uint32 { + return atomic.LoadUint32(&f.effectiveWindowSize) +} + +// TODO(mmukhi): Simplify this code. +// inFlow deals with inbound flow control +type inFlow struct { + mu sync.Mutex + // The inbound flow control limit for pending data. + limit uint32 + // pendingData is the overall data which have been received but not been + // consumed by applications. + pendingData uint32 + // The amount of data the application has consumed but grpc has not sent + // window update for them. Used to reduce window update frequency. + pendingUpdate uint32 + // delta is the extra window update given by receiver when an application + // is reading data bigger in size than the inFlow limit. + delta uint32 +} + +// newLimit updates the inflow window to a new value n. +// It assumes that n is always greater than the old limit. +func (f *inFlow) newLimit(n uint32) { + f.mu.Lock() + f.limit = n + f.mu.Unlock() +} + +func (f *inFlow) maybeAdjust(n uint32) uint32 { + if n > uint32(math.MaxInt32) { + n = uint32(math.MaxInt32) + } + f.mu.Lock() + defer f.mu.Unlock() + // estSenderQuota is the receiver's view of the maximum number of bytes the sender + // can send without a window update. + estSenderQuota := int32(f.limit - (f.pendingData + f.pendingUpdate)) + // estUntransmittedData is the maximum number of bytes the sends might not have put + // on the wire yet. A value of 0 or less means that we have already received all or + // more bytes than the application is requesting to read. + estUntransmittedData := int32(n - f.pendingData) // Casting into int32 since it could be negative. + // This implies that unless we send a window update, the sender won't be able to send all the bytes + // for this message. Therefore we must send an update over the limit since there's an active read + // request from the application. + if estUntransmittedData > estSenderQuota { + // Sender's window shouldn't go more than 2^31 - 1 as specified in the HTTP spec. + if f.limit+n > maxWindowSize { + f.delta = maxWindowSize - f.limit + } else { + // Send a window update for the whole message and not just the difference between + // estUntransmittedData and estSenderQuota. This will be helpful in case the message + // is padded; We will fallback on the current available window(at least a 1/4th of the limit). + f.delta = n + } + return f.delta + } + return 0 +} + +// onData is invoked when some data frame is received. It updates pendingData. +func (f *inFlow) onData(n uint32) error { + f.mu.Lock() + f.pendingData += n + if f.pendingData+f.pendingUpdate > f.limit+f.delta { + limit := f.limit + rcvd := f.pendingData + f.pendingUpdate + f.mu.Unlock() + return fmt.Errorf("received %d-bytes data exceeding the limit %d bytes", rcvd, limit) + } + f.mu.Unlock() + return nil +} + +// onRead is invoked when the application reads the data. It returns the window size +// to be sent to the peer. +func (f *inFlow) onRead(n uint32) uint32 { + f.mu.Lock() + if f.pendingData == 0 { + f.mu.Unlock() + return 0 + } + f.pendingData -= n + if n > f.delta { + n -= f.delta + f.delta = 0 + } else { + f.delta -= n + n = 0 + } + f.pendingUpdate += n + if f.pendingUpdate >= f.limit/4 { + wu := f.pendingUpdate + f.pendingUpdate = 0 + f.mu.Unlock() + return wu + } + f.mu.Unlock() + return 0 +} diff --git a/vendor/google.golang.org/grpc/transport/handler_server.go b/vendor/google.golang.org/grpc/internal/transport/handler_server.go similarity index 69% rename from vendor/google.golang.org/grpc/transport/handler_server.go rename to vendor/google.golang.org/grpc/internal/transport/handler_server.go index 1a5e96c..e6626bf 100644 --- a/vendor/google.golang.org/grpc/transport/handler_server.go +++ b/vendor/google.golang.org/grpc/internal/transport/handler_server.go @@ -24,6 +24,8 @@ package transport import ( + "bytes" + "context" "errors" "fmt" "io" @@ -34,37 +36,42 @@ import ( "time" "github.com/golang/protobuf/proto" - "golang.org/x/net/context" "golang.org/x/net/http2" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/grpcutil" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" "google.golang.org/grpc/status" ) -// NewServerHandlerTransport returns a ServerTransport handling gRPC -// from inside an http.Handler. It requires that the http Server -// supports HTTP/2. -func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats stats.Handler) (ServerTransport, error) { +// NewServerHandlerTransport returns a ServerTransport handling gRPC from +// inside an http.Handler, or writes an HTTP error to w and returns an error. +// It requires that the http Server supports HTTP/2. +func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats []stats.Handler) (ServerTransport, error) { if r.ProtoMajor != 2 { - return nil, errors.New("gRPC requires HTTP/2") + msg := "gRPC requires HTTP/2" + http.Error(w, msg, http.StatusBadRequest) + return nil, errors.New(msg) } if r.Method != "POST" { - return nil, errors.New("invalid gRPC request method") + msg := fmt.Sprintf("invalid gRPC request method %q", r.Method) + http.Error(w, msg, http.StatusBadRequest) + return nil, errors.New(msg) } contentType := r.Header.Get("Content-Type") // TODO: do we assume contentType is lowercase? we did before - contentSubtype, validContentType := contentSubtype(contentType) + contentSubtype, validContentType := grpcutil.ContentSubtype(contentType) if !validContentType { - return nil, errors.New("invalid gRPC request content-type") + msg := fmt.Sprintf("invalid gRPC request content-type %q", contentType) + http.Error(w, msg, http.StatusUnsupportedMediaType) + return nil, errors.New(msg) } if _, ok := w.(http.Flusher); !ok { - return nil, errors.New("gRPC requires a ResponseWriter supporting http.Flusher") - } - if _, ok := w.(http.CloseNotifier); !ok { - return nil, errors.New("gRPC requires a ResponseWriter supporting http.CloseNotifier") + msg := "gRPC requires a ResponseWriter supporting http.Flusher" + http.Error(w, msg, http.StatusInternalServerError) + return nil, errors.New(msg) } st := &serverHandlerTransport{ @@ -80,7 +87,9 @@ func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats sta if v := r.Header.Get("grpc-timeout"); v != "" { to, err := decodeTimeout(v) if err != nil { - return nil, streamErrorf(codes.Internal, "malformed time-out: %v", err) + msg := fmt.Sprintf("malformed grpc-timeout: %v", err) + http.Error(w, msg, http.StatusBadRequest) + return nil, status.Error(codes.Internal, msg) } st.timeoutSet = true st.timeout = to @@ -92,13 +101,15 @@ func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats sta } for k, vv := range r.Header { k = strings.ToLower(k) - if isReservedHeader(k) && !isWhitelistedPseudoHeader(k) { + if isReservedHeader(k) && !isWhitelistedHeader(k) { continue } for _, v := range vv { v, err := decodeMetadataHeader(k, v) if err != nil { - return nil, streamErrorf(codes.Internal, "malformed binary metadata: %v", err) + msg := fmt.Sprintf("malformed binary metadata %q in header %q: %v", v, k, err) + http.Error(w, msg, http.StatusBadRequest) + return nil, status.Error(codes.Internal, msg) } metakv = append(metakv, k, v) } @@ -114,11 +125,10 @@ func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats sta // at this point to be speaking over HTTP/2, so it's able to speak valid // gRPC. type serverHandlerTransport struct { - rw http.ResponseWriter - req *http.Request - timeoutSet bool - timeout time.Duration - didCommonHeaders bool + rw http.ResponseWriter + req *http.Request + timeoutSet bool + timeout time.Duration headerMD metadata.MD @@ -140,16 +150,18 @@ type serverHandlerTransport struct { // TODO make sure this is consistent across handler_server and http2_server contentSubtype string - stats stats.Handler + stats []stats.Handler } -func (ht *serverHandlerTransport) Close() error { - ht.closeOnce.Do(ht.closeCloseChanOnce) - return nil +func (ht *serverHandlerTransport) Close(err error) { + ht.closeOnce.Do(func() { + if logger.V(logLevel) { + logger.Infof("Closing serverHandlerTransport: %v", err) + } + close(ht.closedCh) + }) } -func (ht *serverHandlerTransport) closeCloseChanOnce() { close(ht.closedCh) } - func (ht *serverHandlerTransport) RemoteAddr() net.Addr { return strAddr(ht.req.RemoteAddr) } // strAddr is a net.Addr backed by either a TCP "ip:port" string, or @@ -176,17 +188,11 @@ func (a strAddr) String() string { return string(a) } // do runs fn in the ServeHTTP goroutine. func (ht *serverHandlerTransport) do(fn func()) error { - // Avoid a panic writing to closed channel. Imperfect but maybe good enough. select { case <-ht.closedCh: return ErrConnClosing - default: - select { - case ht.writes <- fn: - return nil - case <-ht.closedCh: - return ErrConnClosing - } + case ht.writes <- fn: + return nil } } @@ -194,8 +200,11 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro ht.writeStatusMu.Lock() defer ht.writeStatusMu.Unlock() + headersWritten := s.updateHeaderSent() err := ht.do(func() { - ht.writeCommonHeaders(s) + if !headersWritten { + ht.writePendingHeaders(s) + } // And flush, in case no header or body has been sent yet. // This forces a separation of headers and trailers if this is the @@ -234,23 +243,28 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro }) if err == nil { // transport has not been closed - if ht.stats != nil { - ht.stats.HandleRPC(s.Context(), &stats.OutTrailer{}) + // Note: The trailer fields are compressed with hpack after this call returns. + // No WireLength field is set here. + for _, sh := range ht.stats { + sh.HandleRPC(s.Context(), &stats.OutTrailer{ + Trailer: s.trailer.Copy(), + }) } - ht.Close() - close(ht.writes) } + ht.Close(errors.New("finished writing status")) return err } +// writePendingHeaders sets common and custom headers on the first +// write call (Write, WriteHeader, or WriteStatus) +func (ht *serverHandlerTransport) writePendingHeaders(s *Stream) { + ht.writeCommonHeaders(s) + ht.writeCustomHeaders(s) +} + // writeCommonHeaders sets common headers on the first write // call (Write, WriteHeader, or WriteStatus). func (ht *serverHandlerTransport) writeCommonHeaders(s *Stream) { - if ht.didCommonHeaders { - return - } - ht.didCommonHeaders = true - h := ht.rw.Header() h["Date"] = nil // suppress Date to make tests happy; TODO: restore h.Set("Content-Type", ht.contentType) @@ -269,38 +283,59 @@ func (ht *serverHandlerTransport) writeCommonHeaders(s *Stream) { } } +// writeCustomHeaders sets custom headers set on the stream via SetHeader +// on the first write call (Write, WriteHeader, or WriteStatus). +func (ht *serverHandlerTransport) writeCustomHeaders(s *Stream) { + h := ht.rw.Header() + + s.hdrMu.Lock() + for k, vv := range s.header { + if isReservedHeader(k) { + continue + } + for _, v := range vv { + h.Add(k, encodeMetadataHeader(k, v)) + } + } + + s.hdrMu.Unlock() +} + func (ht *serverHandlerTransport) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { + headersWritten := s.updateHeaderSent() return ht.do(func() { - ht.writeCommonHeaders(s) + if !headersWritten { + ht.writePendingHeaders(s) + } ht.rw.Write(hdr) ht.rw.Write(data) - if !opts.Delay { - ht.rw.(http.Flusher).Flush() - } + ht.rw.(http.Flusher).Flush() }) } func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error { + if err := s.SetHeader(md); err != nil { + return err + } + + headersWritten := s.updateHeaderSent() err := ht.do(func() { - ht.writeCommonHeaders(s) - h := ht.rw.Header() - for k, vv := range md { - // Clients don't tolerate reading restricted headers after some non restricted ones were sent. - if isReservedHeader(k) { - continue - } - for _, v := range vv { - v = encodeMetadataHeader(k, v) - h.Add(k, v) - } + if !headersWritten { + ht.writePendingHeaders(s) } + ht.rw.WriteHeader(200) ht.rw.(http.Flusher).Flush() }) if err == nil { - if ht.stats != nil { - ht.stats.HandleRPC(s.Context(), &stats.OutHeader{}) + for _, sh := range ht.stats { + // Note: The header fields are compressed with hpack after this call returns. + // No WireLength field is set here. + sh.HandleRPC(s.Context(), &stats.OutHeader{ + Header: md.Copy(), + Compression: s.sendCompress, + }) } } return err @@ -309,7 +344,7 @@ func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error { func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), traceCtx func(context.Context, string) context.Context) { // With this transport type there will be exactly 1 stream: this HTTP request. - ctx := contextFromRequest(ht.req) + ctx := ht.req.Context() var cancel context.CancelFunc if ht.timeoutSet { ctx, cancel = context.WithTimeout(ctx, ht.timeout) @@ -317,22 +352,16 @@ func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), trace ctx, cancel = context.WithCancel(ctx) } - // requestOver is closed when either the request's context is done - // or the status has been written via WriteStatus. + // requestOver is closed when the status has been written via WriteStatus. requestOver := make(chan struct{}) - - // clientGone receives a single value if peer is gone, either - // because the underlying connection is dead or because the - // peer sends an http2 RST_STREAM. - clientGone := ht.rw.(http.CloseNotifier).CloseNotify() go func() { select { case <-requestOver: - return case <-ht.closedCh: - case <-clientGone: + case <-ht.req.Context().Done(): } cancel() + ht.Close(errors.New("request is done processing")) }() req := ht.req @@ -351,21 +380,21 @@ func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), trace Addr: ht.RemoteAddr(), } if req.TLS != nil { - pr.AuthInfo = credentials.TLSInfo{State: *req.TLS} + pr.AuthInfo = credentials.TLSInfo{State: *req.TLS, CommonAuthInfo: credentials.CommonAuthInfo{SecurityLevel: credentials.PrivacyAndIntegrity}} } ctx = metadata.NewIncomingContext(ctx, ht.headerMD) s.ctx = peer.NewContext(ctx, pr) - if ht.stats != nil { - s.ctx = ht.stats.TagRPC(s.ctx, &stats.RPCTagInfo{FullMethodName: s.method}) + for _, sh := range ht.stats { + s.ctx = sh.TagRPC(s.ctx, &stats.RPCTagInfo{FullMethodName: s.method}) inHeader := &stats.InHeader{ FullMethod: s.method, RemoteAddr: ht.RemoteAddr(), Compression: s.recvCompress, } - ht.stats.HandleRPC(s.ctx, inHeader) + sh.HandleRPC(s.ctx, inHeader) } s.trReader = &transportReader{ - reader: &recvBufferReader{ctx: s.ctx, recv: s.buf}, + reader: &recvBufferReader{ctx: s.ctx, ctxDone: s.ctx.Done(), recv: s.buf, freeBuffer: func(*bytes.Buffer) {}}, windowHandler: func(int) {}, } @@ -379,7 +408,7 @@ func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), trace for buf := make([]byte, readSize); ; { n, err := req.Body.Read(buf) if n > 0 { - s.buf.put(recvMsg{data: buf[:n:n]}) + s.buf.put(recvMsg{buffer: bytes.NewBuffer(buf[:n:n])}) buf = buf[n:] } if err != nil { @@ -409,10 +438,7 @@ func (ht *serverHandlerTransport) HandleStreams(startStream func(*Stream), trace func (ht *serverHandlerTransport) runStream() { for { select { - case fn, ok := <-ht.writes: - if !ok { - return - } + case fn := <-ht.writes: fn() case <-ht.closedCh: return @@ -420,6 +446,10 @@ func (ht *serverHandlerTransport) runStream() { } } +func (ht *serverHandlerTransport) IncrMsgSent() {} + +func (ht *serverHandlerTransport) IncrMsgRecv() {} + func (ht *serverHandlerTransport) Drain() { panic("Drain() is not implemented") } @@ -427,21 +457,21 @@ func (ht *serverHandlerTransport) Drain() { // mapRecvMsgError returns the non-nil err into the appropriate // error value as expected by callers of *grpc.parser.recvMsg. // In particular, in can only be: -// * io.EOF -// * io.ErrUnexpectedEOF -// * of type transport.ConnectionError -// * of type transport.StreamError +// - io.EOF +// - io.ErrUnexpectedEOF +// - of type transport.ConnectionError +// - an error from the status package func mapRecvMsgError(err error) error { if err == io.EOF || err == io.ErrUnexpectedEOF { return err } if se, ok := err.(http2.StreamError); ok { if code, ok := http2ErrConvTab[se.Code]; ok { - return StreamError{ - Code: code, - Desc: se.Error(), - } + return status.Error(code, se.Error()) } } + if strings.Contains(err.Error(), "body closed by handler") { + return status.Error(codes.Canceled, err.Error()) + } return connectionErrorf(true, err, err.Error()) } diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_client.go b/vendor/google.golang.org/grpc/internal/transport/http2_client.go new file mode 100644 index 0000000..79ee8ae --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/http2_client.go @@ -0,0 +1,1800 @@ +/* + * + * Copyright 2014 gRPC authors. + * + * 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 transport + +import ( + "context" + "fmt" + "io" + "math" + "net" + "net/http" + "path/filepath" + "strconv" + "strings" + "sync" + "sync/atomic" + "time" + + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/channelz" + icredentials "google.golang.org/grpc/internal/credentials" + "google.golang.org/grpc/internal/grpcsync" + "google.golang.org/grpc/internal/grpcutil" + imetadata "google.golang.org/grpc/internal/metadata" + istatus "google.golang.org/grpc/internal/status" + "google.golang.org/grpc/internal/syscall" + "google.golang.org/grpc/internal/transport/networktype" + "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" + "google.golang.org/grpc/resolver" + "google.golang.org/grpc/stats" + "google.golang.org/grpc/status" +) + +// clientConnectionCounter counts the number of connections a client has +// initiated (equal to the number of http2Clients created). Must be accessed +// atomically. +var clientConnectionCounter uint64 + +// http2Client implements the ClientTransport interface with HTTP2. +type http2Client struct { + lastRead int64 // Keep this field 64-bit aligned. Accessed atomically. + ctx context.Context + cancel context.CancelFunc + ctxDone <-chan struct{} // Cache the ctx.Done() chan. + userAgent string + // address contains the resolver returned address for this transport. + // If the `ServerName` field is set, it takes precedence over `CallHdr.Host` + // passed to `NewStream`, when determining the :authority header. + address resolver.Address + md metadata.MD + conn net.Conn // underlying communication channel + loopy *loopyWriter + remoteAddr net.Addr + localAddr net.Addr + authInfo credentials.AuthInfo // auth info about the connection + + readerDone chan struct{} // sync point to enable testing. + writerDone chan struct{} // sync point to enable testing. + // goAway is closed to notify the upper layer (i.e., addrConn.transportMonitor) + // that the server sent GoAway on this transport. + goAway chan struct{} + + framer *framer + // controlBuf delivers all the control related tasks (e.g., window + // updates, reset streams, and various settings) to the controller. + // Do not access controlBuf with mu held. + controlBuf *controlBuffer + fc *trInFlow + // The scheme used: https if TLS is on, http otherwise. + scheme string + + isSecure bool + + perRPCCreds []credentials.PerRPCCredentials + + kp keepalive.ClientParameters + keepaliveEnabled bool + + statsHandlers []stats.Handler + + initialWindowSize int32 + + // configured by peer through SETTINGS_MAX_HEADER_LIST_SIZE + maxSendHeaderListSize *uint32 + + bdpEst *bdpEstimator + + maxConcurrentStreams uint32 + streamQuota int64 + streamsQuotaAvailable chan struct{} + waitingStreams uint32 + nextID uint32 + registeredCompressors string + + // Do not access controlBuf with mu held. + mu sync.Mutex // guard the following variables + state transportState + activeStreams map[uint32]*Stream + // prevGoAway ID records the Last-Stream-ID in the previous GOAway frame. + prevGoAwayID uint32 + // goAwayReason records the http2.ErrCode and debug data received with the + // GoAway frame. + goAwayReason GoAwayReason + // goAwayDebugMessage contains a detailed human readable string about a + // GoAway frame, useful for error messages. + goAwayDebugMessage string + // A condition variable used to signal when the keepalive goroutine should + // go dormant. The condition for dormancy is based on the number of active + // streams and the `PermitWithoutStream` keepalive client parameter. And + // since the number of active streams is guarded by the above mutex, we use + // the same for this condition variable as well. + kpDormancyCond *sync.Cond + // A boolean to track whether the keepalive goroutine is dormant or not. + // This is checked before attempting to signal the above condition + // variable. + kpDormant bool + + // Fields below are for channelz metric collection. + channelzID *channelz.Identifier + czData *channelzData + + onClose func(GoAwayReason) + + bufferPool *bufferPool + + connectionID uint64 +} + +func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr resolver.Address, useProxy bool, grpcUA string) (net.Conn, error) { + address := addr.Addr + networkType, ok := networktype.Get(addr) + if fn != nil { + // Special handling for unix scheme with custom dialer. Back in the day, + // we did not have a unix resolver and therefore targets with a unix + // scheme would end up using the passthrough resolver. So, user's used a + // custom dialer in this case and expected the original dial target to + // be passed to the custom dialer. Now, we have a unix resolver. But if + // a custom dialer is specified, we want to retain the old behavior in + // terms of the address being passed to the custom dialer. + if networkType == "unix" && !strings.HasPrefix(address, "\x00") { + // Supported unix targets are either "unix://absolute-path" or + // "unix:relative-path". + if filepath.IsAbs(address) { + return fn(ctx, "unix://"+address) + } + return fn(ctx, "unix:"+address) + } + return fn(ctx, address) + } + if !ok { + networkType, address = parseDialTarget(address) + } + if networkType == "tcp" && useProxy { + return proxyDial(ctx, address, grpcUA) + } + return (&net.Dialer{}).DialContext(ctx, networkType, address) +} + +func isTemporary(err error) bool { + switch err := err.(type) { + case interface { + Temporary() bool + }: + return err.Temporary() + case interface { + Timeout() bool + }: + // Timeouts may be resolved upon retry, and are thus treated as + // temporary. + return err.Timeout() + } + return true +} + +// newHTTP2Client constructs a connected ClientTransport to addr based on HTTP2 +// and starts to receive messages on it. Non-nil error returns if construction +// fails. +func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts ConnectOptions, onClose func(GoAwayReason)) (_ *http2Client, err error) { + scheme := "http" + ctx, cancel := context.WithCancel(ctx) + defer func() { + if err != nil { + cancel() + } + }() + + // gRPC, resolver, balancer etc. can specify arbitrary data in the + // Attributes field of resolver.Address, which is shoved into connectCtx + // and passed to the dialer and credential handshaker. This makes it possible for + // address specific arbitrary data to reach custom dialers and credential handshakers. + connectCtx = icredentials.NewClientHandshakeInfoContext(connectCtx, credentials.ClientHandshakeInfo{Attributes: addr.Attributes}) + + conn, err := dial(connectCtx, opts.Dialer, addr, opts.UseProxy, opts.UserAgent) + if err != nil { + if opts.FailOnNonTempDialError { + return nil, connectionErrorf(isTemporary(err), err, "transport: error while dialing: %v", err) + } + return nil, connectionErrorf(true, err, "transport: Error while dialing: %v", err) + } + + // Any further errors will close the underlying connection + defer func(conn net.Conn) { + if err != nil { + conn.Close() + } + }(conn) + + // The following defer and goroutine monitor the connectCtx for cancelation + // and deadline. On context expiration, the connection is hard closed and + // this function will naturally fail as a result. Otherwise, the defer + // waits for the goroutine to exit to prevent the context from being + // monitored (and to prevent the connection from ever being closed) after + // returning from this function. + ctxMonitorDone := grpcsync.NewEvent() + newClientCtx, newClientDone := context.WithCancel(connectCtx) + defer func() { + newClientDone() // Awaken the goroutine below if connectCtx hasn't expired. + <-ctxMonitorDone.Done() // Wait for the goroutine below to exit. + }() + go func(conn net.Conn) { + defer ctxMonitorDone.Fire() // Signal this goroutine has exited. + <-newClientCtx.Done() // Block until connectCtx expires or the defer above executes. + if err := connectCtx.Err(); err != nil { + // connectCtx expired before exiting the function. Hard close the connection. + if logger.V(logLevel) { + logger.Infof("newClientTransport: aborting due to connectCtx: %v", err) + } + conn.Close() + } + }(conn) + + kp := opts.KeepaliveParams + // Validate keepalive parameters. + if kp.Time == 0 { + kp.Time = defaultClientKeepaliveTime + } + if kp.Timeout == 0 { + kp.Timeout = defaultClientKeepaliveTimeout + } + keepaliveEnabled := false + if kp.Time != infinity { + if err = syscall.SetTCPUserTimeout(conn, kp.Timeout); err != nil { + return nil, connectionErrorf(false, err, "transport: failed to set TCP_USER_TIMEOUT: %v", err) + } + keepaliveEnabled = true + } + var ( + isSecure bool + authInfo credentials.AuthInfo + ) + transportCreds := opts.TransportCredentials + perRPCCreds := opts.PerRPCCredentials + + if b := opts.CredsBundle; b != nil { + if t := b.TransportCredentials(); t != nil { + transportCreds = t + } + if t := b.PerRPCCredentials(); t != nil { + perRPCCreds = append(perRPCCreds, t) + } + } + if transportCreds != nil { + conn, authInfo, err = transportCreds.ClientHandshake(connectCtx, addr.ServerName, conn) + if err != nil { + return nil, connectionErrorf(isTemporary(err), err, "transport: authentication handshake failed: %v", err) + } + for _, cd := range perRPCCreds { + if cd.RequireTransportSecurity() { + if ci, ok := authInfo.(interface { + GetCommonAuthInfo() credentials.CommonAuthInfo + }); ok { + secLevel := ci.GetCommonAuthInfo().SecurityLevel + if secLevel != credentials.InvalidSecurityLevel && secLevel < credentials.PrivacyAndIntegrity { + return nil, connectionErrorf(true, nil, "transport: cannot send secure credentials on an insecure connection") + } + } + } + } + isSecure = true + if transportCreds.Info().SecurityProtocol == "tls" { + scheme = "https" + } + } + dynamicWindow := true + icwz := int32(initialWindowSize) + if opts.InitialConnWindowSize >= defaultWindowSize { + icwz = opts.InitialConnWindowSize + dynamicWindow = false + } + writeBufSize := opts.WriteBufferSize + readBufSize := opts.ReadBufferSize + maxHeaderListSize := defaultClientMaxHeaderListSize + if opts.MaxHeaderListSize != nil { + maxHeaderListSize = *opts.MaxHeaderListSize + } + t := &http2Client{ + ctx: ctx, + ctxDone: ctx.Done(), // Cache Done chan. + cancel: cancel, + userAgent: opts.UserAgent, + registeredCompressors: grpcutil.RegisteredCompressors(), + address: addr, + conn: conn, + remoteAddr: conn.RemoteAddr(), + localAddr: conn.LocalAddr(), + authInfo: authInfo, + readerDone: make(chan struct{}), + writerDone: make(chan struct{}), + goAway: make(chan struct{}), + framer: newFramer(conn, writeBufSize, readBufSize, maxHeaderListSize), + fc: &trInFlow{limit: uint32(icwz)}, + scheme: scheme, + activeStreams: make(map[uint32]*Stream), + isSecure: isSecure, + perRPCCreds: perRPCCreds, + kp: kp, + statsHandlers: opts.StatsHandlers, + initialWindowSize: initialWindowSize, + nextID: 1, + maxConcurrentStreams: defaultMaxStreamsClient, + streamQuota: defaultMaxStreamsClient, + streamsQuotaAvailable: make(chan struct{}, 1), + czData: new(channelzData), + keepaliveEnabled: keepaliveEnabled, + bufferPool: newBufferPool(), + onClose: onClose, + } + // Add peer information to the http2client context. + t.ctx = peer.NewContext(t.ctx, t.getPeer()) + + if md, ok := addr.Metadata.(*metadata.MD); ok { + t.md = *md + } else if md := imetadata.Get(addr); md != nil { + t.md = md + } + t.controlBuf = newControlBuffer(t.ctxDone) + if opts.InitialWindowSize >= defaultWindowSize { + t.initialWindowSize = opts.InitialWindowSize + dynamicWindow = false + } + if dynamicWindow { + t.bdpEst = &bdpEstimator{ + bdp: initialWindowSize, + updateFlowControl: t.updateFlowControl, + } + } + for _, sh := range t.statsHandlers { + t.ctx = sh.TagConn(t.ctx, &stats.ConnTagInfo{ + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + }) + connBegin := &stats.ConnBegin{ + Client: true, + } + sh.HandleConn(t.ctx, connBegin) + } + t.channelzID, err = channelz.RegisterNormalSocket(t, opts.ChannelzParentID, fmt.Sprintf("%s -> %s", t.localAddr, t.remoteAddr)) + if err != nil { + return nil, err + } + if t.keepaliveEnabled { + t.kpDormancyCond = sync.NewCond(&t.mu) + go t.keepalive() + } + + // Start the reader goroutine for incoming messages. Each transport has a + // dedicated goroutine which reads HTTP2 frames from the network. Then it + // dispatches the frame to the corresponding stream entity. When the + // server preface is received, readerErrCh is closed. If an error occurs + // first, an error is pushed to the channel. This must be checked before + // returning from this function. + readerErrCh := make(chan error, 1) + go t.reader(readerErrCh) + defer func() { + if err == nil { + err = <-readerErrCh + } + if err != nil { + t.Close(err) + } + }() + + // Send connection preface to server. + n, err := t.conn.Write(clientPreface) + if err != nil { + err = connectionErrorf(true, err, "transport: failed to write client preface: %v", err) + return nil, err + } + if n != len(clientPreface) { + err = connectionErrorf(true, nil, "transport: preface mismatch, wrote %d bytes; want %d", n, len(clientPreface)) + return nil, err + } + var ss []http2.Setting + + if t.initialWindowSize != defaultWindowSize { + ss = append(ss, http2.Setting{ + ID: http2.SettingInitialWindowSize, + Val: uint32(t.initialWindowSize), + }) + } + if opts.MaxHeaderListSize != nil { + ss = append(ss, http2.Setting{ + ID: http2.SettingMaxHeaderListSize, + Val: *opts.MaxHeaderListSize, + }) + } + err = t.framer.fr.WriteSettings(ss...) + if err != nil { + err = connectionErrorf(true, err, "transport: failed to write initial settings frame: %v", err) + return nil, err + } + // Adjust the connection flow control window if needed. + if delta := uint32(icwz - defaultWindowSize); delta > 0 { + if err := t.framer.fr.WriteWindowUpdate(0, delta); err != nil { + err = connectionErrorf(true, err, "transport: failed to write window update: %v", err) + return nil, err + } + } + + t.connectionID = atomic.AddUint64(&clientConnectionCounter, 1) + + if err := t.framer.writer.Flush(); err != nil { + return nil, err + } + go func() { + t.loopy = newLoopyWriter(clientSide, t.framer, t.controlBuf, t.bdpEst) + err := t.loopy.run() + if logger.V(logLevel) { + logger.Infof("transport: loopyWriter exited. Closing connection. Err: %v", err) + } + // Do not close the transport. Let reader goroutine handle it since + // there might be data in the buffers. + t.conn.Close() + t.controlBuf.finish() + close(t.writerDone) + }() + return t, nil +} + +func (t *http2Client) newStream(ctx context.Context, callHdr *CallHdr) *Stream { + // TODO(zhaoq): Handle uint32 overflow of Stream.id. + s := &Stream{ + ct: t, + done: make(chan struct{}), + method: callHdr.Method, + sendCompress: callHdr.SendCompress, + buf: newRecvBuffer(), + headerChan: make(chan struct{}), + contentSubtype: callHdr.ContentSubtype, + doneFunc: callHdr.DoneFunc, + } + s.wq = newWriteQuota(defaultWriteQuota, s.done) + s.requestRead = func(n int) { + t.adjustWindow(s, uint32(n)) + } + // The client side stream context should have exactly the same life cycle with the user provided context. + // That means, s.ctx should be read-only. And s.ctx is done iff ctx is done. + // So we use the original context here instead of creating a copy. + s.ctx = ctx + s.trReader = &transportReader{ + reader: &recvBufferReader{ + ctx: s.ctx, + ctxDone: s.ctx.Done(), + recv: s.buf, + closeStream: func(err error) { + t.CloseStream(s, err) + }, + freeBuffer: t.bufferPool.put, + }, + windowHandler: func(n int) { + t.updateWindow(s, uint32(n)) + }, + } + return s +} + +func (t *http2Client) getPeer() *peer.Peer { + return &peer.Peer{ + Addr: t.remoteAddr, + AuthInfo: t.authInfo, // Can be nil + } +} + +func (t *http2Client) createHeaderFields(ctx context.Context, callHdr *CallHdr) ([]hpack.HeaderField, error) { + aud := t.createAudience(callHdr) + ri := credentials.RequestInfo{ + Method: callHdr.Method, + AuthInfo: t.authInfo, + } + ctxWithRequestInfo := icredentials.NewRequestInfoContext(ctx, ri) + authData, err := t.getTrAuthData(ctxWithRequestInfo, aud) + if err != nil { + return nil, err + } + callAuthData, err := t.getCallAuthData(ctxWithRequestInfo, aud, callHdr) + if err != nil { + return nil, err + } + // TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields + // first and create a slice of that exact size. + // Make the slice of certain predictable size to reduce allocations made by append. + hfLen := 7 // :method, :scheme, :path, :authority, content-type, user-agent, te + hfLen += len(authData) + len(callAuthData) + headerFields := make([]hpack.HeaderField, 0, hfLen) + headerFields = append(headerFields, hpack.HeaderField{Name: ":method", Value: "POST"}) + headerFields = append(headerFields, hpack.HeaderField{Name: ":scheme", Value: t.scheme}) + headerFields = append(headerFields, hpack.HeaderField{Name: ":path", Value: callHdr.Method}) + headerFields = append(headerFields, hpack.HeaderField{Name: ":authority", Value: callHdr.Host}) + headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: grpcutil.ContentType(callHdr.ContentSubtype)}) + headerFields = append(headerFields, hpack.HeaderField{Name: "user-agent", Value: t.userAgent}) + headerFields = append(headerFields, hpack.HeaderField{Name: "te", Value: "trailers"}) + if callHdr.PreviousAttempts > 0 { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-previous-rpc-attempts", Value: strconv.Itoa(callHdr.PreviousAttempts)}) + } + + registeredCompressors := t.registeredCompressors + if callHdr.SendCompress != "" { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: callHdr.SendCompress}) + // Include the outgoing compressor name when compressor is not registered + // via encoding.RegisterCompressor. This is possible when client uses + // WithCompressor dial option. + if !grpcutil.IsCompressorNameRegistered(callHdr.SendCompress) { + if registeredCompressors != "" { + registeredCompressors += "," + } + registeredCompressors += callHdr.SendCompress + } + } + + if registeredCompressors != "" { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-accept-encoding", Value: registeredCompressors}) + } + if dl, ok := ctx.Deadline(); ok { + // Send out timeout regardless its value. The server can detect timeout context by itself. + // TODO(mmukhi): Perhaps this field should be updated when actually writing out to the wire. + timeout := time.Until(dl) + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-timeout", Value: grpcutil.EncodeDuration(timeout)}) + } + for k, v := range authData { + headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) + } + for k, v := range callAuthData { + headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) + } + if b := stats.OutgoingTags(ctx); b != nil { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-tags-bin", Value: encodeBinHeader(b)}) + } + if b := stats.OutgoingTrace(ctx); b != nil { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-trace-bin", Value: encodeBinHeader(b)}) + } + + if md, added, ok := metadata.FromOutgoingContextRaw(ctx); ok { + var k string + for k, vv := range md { + // HTTP doesn't allow you to set pseudoheaders after non pseudoheaders were set. + if isReservedHeader(k) { + continue + } + for _, v := range vv { + headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) + } + } + for _, vv := range added { + for i, v := range vv { + if i%2 == 0 { + k = strings.ToLower(v) + continue + } + // HTTP doesn't allow you to set pseudoheaders after non pseudoheaders were set. + if isReservedHeader(k) { + continue + } + headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) + } + } + } + for k, vv := range t.md { + if isReservedHeader(k) { + continue + } + for _, v := range vv { + headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) + } + } + return headerFields, nil +} + +func (t *http2Client) createAudience(callHdr *CallHdr) string { + // Create an audience string only if needed. + if len(t.perRPCCreds) == 0 && callHdr.Creds == nil { + return "" + } + // Construct URI required to get auth request metadata. + // Omit port if it is the default one. + host := strings.TrimSuffix(callHdr.Host, ":443") + pos := strings.LastIndex(callHdr.Method, "/") + if pos == -1 { + pos = len(callHdr.Method) + } + return "https://" + host + callHdr.Method[:pos] +} + +func (t *http2Client) getTrAuthData(ctx context.Context, audience string) (map[string]string, error) { + if len(t.perRPCCreds) == 0 { + return nil, nil + } + authData := map[string]string{} + for _, c := range t.perRPCCreds { + data, err := c.GetRequestMetadata(ctx, audience) + if err != nil { + if st, ok := status.FromError(err); ok { + // Restrict the code to the list allowed by gRFC A54. + if istatus.IsRestrictedControlPlaneCode(st) { + err = status.Errorf(codes.Internal, "transport: received per-RPC creds error with illegal status: %v", err) + } + return nil, err + } + + return nil, status.Errorf(codes.Unauthenticated, "transport: per-RPC creds failed due to error: %v", err) + } + for k, v := range data { + // Capital header names are illegal in HTTP/2. + k = strings.ToLower(k) + authData[k] = v + } + } + return authData, nil +} + +func (t *http2Client) getCallAuthData(ctx context.Context, audience string, callHdr *CallHdr) (map[string]string, error) { + var callAuthData map[string]string + // Check if credentials.PerRPCCredentials were provided via call options. + // Note: if these credentials are provided both via dial options and call + // options, then both sets of credentials will be applied. + if callCreds := callHdr.Creds; callCreds != nil { + if callCreds.RequireTransportSecurity() { + ri, _ := credentials.RequestInfoFromContext(ctx) + if !t.isSecure || credentials.CheckSecurityLevel(ri.AuthInfo, credentials.PrivacyAndIntegrity) != nil { + return nil, status.Error(codes.Unauthenticated, "transport: cannot send secure credentials on an insecure connection") + } + } + data, err := callCreds.GetRequestMetadata(ctx, audience) + if err != nil { + if st, ok := status.FromError(err); ok { + // Restrict the code to the list allowed by gRFC A54. + if istatus.IsRestrictedControlPlaneCode(st) { + err = status.Errorf(codes.Internal, "transport: received per-RPC creds error with illegal status: %v", err) + } + return nil, err + } + return nil, status.Errorf(codes.Internal, "transport: per-RPC creds failed due to error: %v", err) + } + callAuthData = make(map[string]string, len(data)) + for k, v := range data { + // Capital header names are illegal in HTTP/2 + k = strings.ToLower(k) + callAuthData[k] = v + } + } + return callAuthData, nil +} + +// NewStreamError wraps an error and reports additional information. Typically +// NewStream errors result in transparent retry, as they mean nothing went onto +// the wire. However, there are two notable exceptions: +// +// 1. If the stream headers violate the max header list size allowed by the +// server. It's possible this could succeed on another transport, even if +// it's unlikely, but do not transparently retry. +// 2. If the credentials errored when requesting their headers. In this case, +// it's possible a retry can fix the problem, but indefinitely transparently +// retrying is not appropriate as it is likely the credentials, if they can +// eventually succeed, would need I/O to do so. +type NewStreamError struct { + Err error + + AllowTransparentRetry bool +} + +func (e NewStreamError) Error() string { + return e.Err.Error() +} + +// NewStream creates a stream and registers it into the transport as "active" +// streams. All non-nil errors returned will be *NewStreamError. +func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, error) { + ctx = peer.NewContext(ctx, t.getPeer()) + + // ServerName field of the resolver returned address takes precedence over + // Host field of CallHdr to determine the :authority header. This is because, + // the ServerName field takes precedence for server authentication during + // TLS handshake, and the :authority header should match the value used + // for server authentication. + if t.address.ServerName != "" { + newCallHdr := *callHdr + newCallHdr.Host = t.address.ServerName + callHdr = &newCallHdr + } + + headerFields, err := t.createHeaderFields(ctx, callHdr) + if err != nil { + return nil, &NewStreamError{Err: err, AllowTransparentRetry: false} + } + s := t.newStream(ctx, callHdr) + cleanup := func(err error) { + if s.swapState(streamDone) == streamDone { + // If it was already done, return. + return + } + // The stream was unprocessed by the server. + atomic.StoreUint32(&s.unprocessed, 1) + s.write(recvMsg{err: err}) + close(s.done) + // If headerChan isn't closed, then close it. + if atomic.CompareAndSwapUint32(&s.headerChanClosed, 0, 1) { + close(s.headerChan) + } + } + hdr := &headerFrame{ + hf: headerFields, + endStream: false, + initStream: func(id uint32) error { + t.mu.Lock() + // TODO: handle transport closure in loopy instead and remove this + // initStream is never called when transport is draining. + if t.state == closing { + t.mu.Unlock() + cleanup(ErrConnClosing) + return ErrConnClosing + } + if channelz.IsOn() { + atomic.AddInt64(&t.czData.streamsStarted, 1) + atomic.StoreInt64(&t.czData.lastStreamCreatedTime, time.Now().UnixNano()) + } + // If the keepalive goroutine has gone dormant, wake it up. + if t.kpDormant { + t.kpDormancyCond.Signal() + } + t.mu.Unlock() + return nil + }, + onOrphaned: cleanup, + wq: s.wq, + } + firstTry := true + var ch chan struct{} + transportDrainRequired := false + checkForStreamQuota := func(it interface{}) bool { + if t.streamQuota <= 0 { // Can go negative if server decreases it. + if firstTry { + t.waitingStreams++ + } + ch = t.streamsQuotaAvailable + return false + } + if !firstTry { + t.waitingStreams-- + } + t.streamQuota-- + h := it.(*headerFrame) + h.streamID = t.nextID + t.nextID += 2 + + // Drain client transport if nextID > MaxStreamID which signals gRPC that + // the connection is closed and a new one must be created for subsequent RPCs. + transportDrainRequired = t.nextID > MaxStreamID + + s.id = h.streamID + s.fc = &inFlow{limit: uint32(t.initialWindowSize)} + t.mu.Lock() + if t.activeStreams == nil { // Can be niled from Close(). + t.mu.Unlock() + return false // Don't create a stream if the transport is already closed. + } + t.activeStreams[s.id] = s + t.mu.Unlock() + if t.streamQuota > 0 && t.waitingStreams > 0 { + select { + case t.streamsQuotaAvailable <- struct{}{}: + default: + } + } + return true + } + var hdrListSizeErr error + checkForHeaderListSize := func(it interface{}) bool { + if t.maxSendHeaderListSize == nil { + return true + } + hdrFrame := it.(*headerFrame) + var sz int64 + for _, f := range hdrFrame.hf { + if sz += int64(f.Size()); sz > int64(*t.maxSendHeaderListSize) { + hdrListSizeErr = status.Errorf(codes.Internal, "header list size to send violates the maximum size (%d bytes) set by server", *t.maxSendHeaderListSize) + return false + } + } + return true + } + for { + success, err := t.controlBuf.executeAndPut(func(it interface{}) bool { + return checkForHeaderListSize(it) && checkForStreamQuota(it) + }, hdr) + if err != nil { + // Connection closed. + return nil, &NewStreamError{Err: err, AllowTransparentRetry: true} + } + if success { + break + } + if hdrListSizeErr != nil { + return nil, &NewStreamError{Err: hdrListSizeErr} + } + firstTry = false + select { + case <-ch: + case <-ctx.Done(): + return nil, &NewStreamError{Err: ContextErr(ctx.Err())} + case <-t.goAway: + return nil, &NewStreamError{Err: errStreamDrain, AllowTransparentRetry: true} + case <-t.ctx.Done(): + return nil, &NewStreamError{Err: ErrConnClosing, AllowTransparentRetry: true} + } + } + if len(t.statsHandlers) != 0 { + header, ok := metadata.FromOutgoingContext(ctx) + if ok { + header.Set("user-agent", t.userAgent) + } else { + header = metadata.Pairs("user-agent", t.userAgent) + } + for _, sh := range t.statsHandlers { + // Note: The header fields are compressed with hpack after this call returns. + // No WireLength field is set here. + // Note: Creating a new stats object to prevent pollution. + outHeader := &stats.OutHeader{ + Client: true, + FullMethod: callHdr.Method, + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + Compression: callHdr.SendCompress, + Header: header, + } + sh.HandleRPC(s.ctx, outHeader) + } + } + if transportDrainRequired { + if logger.V(logLevel) { + logger.Infof("transport: t.nextID > MaxStreamID. Draining") + } + t.GracefulClose() + } + return s, nil +} + +// CloseStream clears the footprint of a stream when the stream is not needed any more. +// This must not be executed in reader's goroutine. +func (t *http2Client) CloseStream(s *Stream, err error) { + var ( + rst bool + rstCode http2.ErrCode + ) + if err != nil { + rst = true + rstCode = http2.ErrCodeCancel + } + t.closeStream(s, err, rst, rstCode, status.Convert(err), nil, false) +} + +func (t *http2Client) closeStream(s *Stream, err error, rst bool, rstCode http2.ErrCode, st *status.Status, mdata map[string][]string, eosReceived bool) { + // Set stream status to done. + if s.swapState(streamDone) == streamDone { + // If it was already done, return. If multiple closeStream calls + // happen simultaneously, wait for the first to finish. + <-s.done + return + } + // status and trailers can be updated here without any synchronization because the stream goroutine will + // only read it after it sees an io.EOF error from read or write and we'll write those errors + // only after updating this. + s.status = st + if len(mdata) > 0 { + s.trailer = mdata + } + if err != nil { + // This will unblock reads eventually. + s.write(recvMsg{err: err}) + } + // If headerChan isn't closed, then close it. + if atomic.CompareAndSwapUint32(&s.headerChanClosed, 0, 1) { + s.noHeaders = true + close(s.headerChan) + } + cleanup := &cleanupStream{ + streamID: s.id, + onWrite: func() { + t.mu.Lock() + if t.activeStreams != nil { + delete(t.activeStreams, s.id) + } + t.mu.Unlock() + if channelz.IsOn() { + if eosReceived { + atomic.AddInt64(&t.czData.streamsSucceeded, 1) + } else { + atomic.AddInt64(&t.czData.streamsFailed, 1) + } + } + }, + rst: rst, + rstCode: rstCode, + } + addBackStreamQuota := func(interface{}) bool { + t.streamQuota++ + if t.streamQuota > 0 && t.waitingStreams > 0 { + select { + case t.streamsQuotaAvailable <- struct{}{}: + default: + } + } + return true + } + t.controlBuf.executeAndPut(addBackStreamQuota, cleanup) + // This will unblock write. + close(s.done) + if s.doneFunc != nil { + s.doneFunc() + } +} + +// Close kicks off the shutdown process of the transport. This should be called +// only once on a transport. Once it is called, the transport should not be +// accessed any more. +func (t *http2Client) Close(err error) { + t.mu.Lock() + // Make sure we only close once. + if t.state == closing { + t.mu.Unlock() + return + } + if logger.V(logLevel) { + logger.Infof("transport: closing: %v", err) + } + // Call t.onClose ASAP to prevent the client from attempting to create new + // streams. + if t.state != draining { + t.onClose(GoAwayInvalid) + } + t.state = closing + streams := t.activeStreams + t.activeStreams = nil + if t.kpDormant { + // If the keepalive goroutine is blocked on this condition variable, we + // should unblock it so that the goroutine eventually exits. + t.kpDormancyCond.Signal() + } + t.mu.Unlock() + t.controlBuf.finish() + t.cancel() + t.conn.Close() + channelz.RemoveEntry(t.channelzID) + // Append info about previous goaways if there were any, since this may be important + // for understanding the root cause for this connection to be closed. + _, goAwayDebugMessage := t.GetGoAwayReason() + + var st *status.Status + if len(goAwayDebugMessage) > 0 { + st = status.Newf(codes.Unavailable, "closing transport due to: %v, received prior goaway: %v", err, goAwayDebugMessage) + err = st.Err() + } else { + st = status.New(codes.Unavailable, err.Error()) + } + + // Notify all active streams. + for _, s := range streams { + t.closeStream(s, err, false, http2.ErrCodeNo, st, nil, false) + } + for _, sh := range t.statsHandlers { + connEnd := &stats.ConnEnd{ + Client: true, + } + sh.HandleConn(t.ctx, connEnd) + } +} + +// GracefulClose sets the state to draining, which prevents new streams from +// being created and causes the transport to be closed when the last active +// stream is closed. If there are no active streams, the transport is closed +// immediately. This does nothing if the transport is already draining or +// closing. +func (t *http2Client) GracefulClose() { + t.mu.Lock() + // Make sure we move to draining only from active. + if t.state == draining || t.state == closing { + t.mu.Unlock() + return + } + if logger.V(logLevel) { + logger.Infof("transport: GracefulClose called") + } + t.onClose(GoAwayInvalid) + t.state = draining + active := len(t.activeStreams) + t.mu.Unlock() + if active == 0 { + t.Close(connectionErrorf(true, nil, "no active streams left to process while draining")) + return + } + t.controlBuf.put(&incomingGoAway{}) +} + +// Write formats the data into HTTP2 data frame(s) and sends it out. The caller +// should proceed only if Write returns nil. +func (t *http2Client) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { + if opts.Last { + // If it's the last message, update stream state. + if !s.compareAndSwapState(streamActive, streamWriteDone) { + return errStreamDone + } + } else if s.getState() != streamActive { + return errStreamDone + } + df := &dataFrame{ + streamID: s.id, + endStream: opts.Last, + h: hdr, + d: data, + } + if hdr != nil || data != nil { // If it's not an empty data frame, check quota. + if err := s.wq.get(int32(len(hdr) + len(data))); err != nil { + return err + } + } + return t.controlBuf.put(df) +} + +func (t *http2Client) getStream(f http2.Frame) *Stream { + t.mu.Lock() + s := t.activeStreams[f.Header().StreamID] + t.mu.Unlock() + return s +} + +// adjustWindow sends out extra window update over the initial window size +// of stream if the application is requesting data larger in size than +// the window. +func (t *http2Client) adjustWindow(s *Stream, n uint32) { + if w := s.fc.maybeAdjust(n); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{streamID: s.id, increment: w}) + } +} + +// updateWindow adjusts the inbound quota for the stream. +// Window updates will be sent out when the cumulative quota +// exceeds the corresponding threshold. +func (t *http2Client) updateWindow(s *Stream, n uint32) { + if w := s.fc.onRead(n); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{streamID: s.id, increment: w}) + } +} + +// updateFlowControl updates the incoming flow control windows +// for the transport and the stream based on the current bdp +// estimation. +func (t *http2Client) updateFlowControl(n uint32) { + updateIWS := func(interface{}) bool { + t.initialWindowSize = int32(n) + t.mu.Lock() + for _, s := range t.activeStreams { + s.fc.newLimit(n) + } + t.mu.Unlock() + return true + } + t.controlBuf.executeAndPut(updateIWS, &outgoingWindowUpdate{streamID: 0, increment: t.fc.newLimit(n)}) + t.controlBuf.put(&outgoingSettings{ + ss: []http2.Setting{ + { + ID: http2.SettingInitialWindowSize, + Val: n, + }, + }, + }) +} + +func (t *http2Client) handleData(f *http2.DataFrame) { + size := f.Header().Length + var sendBDPPing bool + if t.bdpEst != nil { + sendBDPPing = t.bdpEst.add(size) + } + // Decouple connection's flow control from application's read. + // An update on connection's flow control should not depend on + // whether user application has read the data or not. Such a + // restriction is already imposed on the stream's flow control, + // and therefore the sender will be blocked anyways. + // Decoupling the connection flow control will prevent other + // active(fast) streams from starving in presence of slow or + // inactive streams. + // + if w := t.fc.onData(size); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{ + streamID: 0, + increment: w, + }) + } + if sendBDPPing { + // Avoid excessive ping detection (e.g. in an L7 proxy) + // by sending a window update prior to the BDP ping. + + if w := t.fc.reset(); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{ + streamID: 0, + increment: w, + }) + } + + t.controlBuf.put(bdpPing) + } + // Select the right stream to dispatch. + s := t.getStream(f) + if s == nil { + return + } + if size > 0 { + if err := s.fc.onData(size); err != nil { + t.closeStream(s, io.EOF, true, http2.ErrCodeFlowControl, status.New(codes.Internal, err.Error()), nil, false) + return + } + if f.Header().Flags.Has(http2.FlagDataPadded) { + if w := s.fc.onRead(size - uint32(len(f.Data()))); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{s.id, w}) + } + } + // TODO(bradfitz, zhaoq): A copy is required here because there is no + // guarantee f.Data() is consumed before the arrival of next frame. + // Can this copy be eliminated? + if len(f.Data()) > 0 { + buffer := t.bufferPool.get() + buffer.Reset() + buffer.Write(f.Data()) + s.write(recvMsg{buffer: buffer}) + } + } + // The server has closed the stream without sending trailers. Record that + // the read direction is closed, and set the status appropriately. + if f.StreamEnded() { + t.closeStream(s, io.EOF, false, http2.ErrCodeNo, status.New(codes.Internal, "server closed the stream without sending trailers"), nil, true) + } +} + +func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { + s := t.getStream(f) + if s == nil { + return + } + if f.ErrCode == http2.ErrCodeRefusedStream { + // The stream was unprocessed by the server. + atomic.StoreUint32(&s.unprocessed, 1) + } + statusCode, ok := http2ErrConvTab[f.ErrCode] + if !ok { + if logger.V(logLevel) { + logger.Warningf("transport: http2Client.handleRSTStream found no mapped gRPC status for the received http2 error: %v", f.ErrCode) + } + statusCode = codes.Unknown + } + if statusCode == codes.Canceled { + if d, ok := s.ctx.Deadline(); ok && !d.After(time.Now()) { + // Our deadline was already exceeded, and that was likely the cause + // of this cancelation. Alter the status code accordingly. + statusCode = codes.DeadlineExceeded + } + } + t.closeStream(s, io.EOF, false, http2.ErrCodeNo, status.Newf(statusCode, "stream terminated by RST_STREAM with error code: %v", f.ErrCode), nil, false) +} + +func (t *http2Client) handleSettings(f *http2.SettingsFrame, isFirst bool) { + if f.IsAck() { + return + } + var maxStreams *uint32 + var ss []http2.Setting + var updateFuncs []func() + f.ForeachSetting(func(s http2.Setting) error { + switch s.ID { + case http2.SettingMaxConcurrentStreams: + maxStreams = new(uint32) + *maxStreams = s.Val + case http2.SettingMaxHeaderListSize: + updateFuncs = append(updateFuncs, func() { + t.maxSendHeaderListSize = new(uint32) + *t.maxSendHeaderListSize = s.Val + }) + default: + ss = append(ss, s) + } + return nil + }) + if isFirst && maxStreams == nil { + maxStreams = new(uint32) + *maxStreams = math.MaxUint32 + } + sf := &incomingSettings{ + ss: ss, + } + if maxStreams != nil { + updateStreamQuota := func() { + delta := int64(*maxStreams) - int64(t.maxConcurrentStreams) + t.maxConcurrentStreams = *maxStreams + t.streamQuota += delta + if delta > 0 && t.waitingStreams > 0 { + close(t.streamsQuotaAvailable) // wake all of them up. + t.streamsQuotaAvailable = make(chan struct{}, 1) + } + } + updateFuncs = append(updateFuncs, updateStreamQuota) + } + t.controlBuf.executeAndPut(func(interface{}) bool { + for _, f := range updateFuncs { + f() + } + return true + }, sf) +} + +func (t *http2Client) handlePing(f *http2.PingFrame) { + if f.IsAck() { + // Maybe it's a BDP ping. + if t.bdpEst != nil { + t.bdpEst.calculate(f.Data) + } + return + } + pingAck := &ping{ack: true} + copy(pingAck.data[:], f.Data[:]) + t.controlBuf.put(pingAck) +} + +func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) { + t.mu.Lock() + if t.state == closing { + t.mu.Unlock() + return + } + if f.ErrCode == http2.ErrCodeEnhanceYourCalm { + if logger.V(logLevel) { + logger.Infof("Client received GoAway with http2.ErrCodeEnhanceYourCalm.") + } + } + id := f.LastStreamID + if id > 0 && id%2 == 0 { + t.mu.Unlock() + t.Close(connectionErrorf(true, nil, "received goaway with non-zero even-numbered numbered stream id: %v", id)) + return + } + // A client can receive multiple GoAways from the server (see + // https://github.com/grpc/grpc-go/issues/1387). The idea is that the first + // GoAway will be sent with an ID of MaxInt32 and the second GoAway will be + // sent after an RTT delay with the ID of the last stream the server will + // process. + // + // Therefore, when we get the first GoAway we don't necessarily close any + // streams. While in case of second GoAway we close all streams created after + // the GoAwayId. This way streams that were in-flight while the GoAway from + // server was being sent don't get killed. + select { + case <-t.goAway: // t.goAway has been closed (i.e.,multiple GoAways). + // If there are multiple GoAways the first one should always have an ID greater than the following ones. + if id > t.prevGoAwayID { + t.mu.Unlock() + t.Close(connectionErrorf(true, nil, "received goaway with stream id: %v, which exceeds stream id of previous goaway: %v", id, t.prevGoAwayID)) + return + } + default: + t.setGoAwayReason(f) + close(t.goAway) + defer t.controlBuf.put(&incomingGoAway{}) // Defer as t.mu is currently held. + // Notify the clientconn about the GOAWAY before we set the state to + // draining, to allow the client to stop attempting to create streams + // before disallowing new streams on this connection. + if t.state != draining { + t.onClose(t.goAwayReason) + t.state = draining + } + } + // All streams with IDs greater than the GoAwayId + // and smaller than the previous GoAway ID should be killed. + upperLimit := t.prevGoAwayID + if upperLimit == 0 { // This is the first GoAway Frame. + upperLimit = math.MaxUint32 // Kill all streams after the GoAway ID. + } + + t.prevGoAwayID = id + if len(t.activeStreams) == 0 { + t.mu.Unlock() + t.Close(connectionErrorf(true, nil, "received goaway and there are no active streams")) + return + } + + streamsToClose := make([]*Stream, 0) + for streamID, stream := range t.activeStreams { + if streamID > id && streamID <= upperLimit { + // The stream was unprocessed by the server. + if streamID > id && streamID <= upperLimit { + atomic.StoreUint32(&stream.unprocessed, 1) + streamsToClose = append(streamsToClose, stream) + } + } + } + t.mu.Unlock() + // Called outside t.mu because closeStream can take controlBuf's mu, which + // could induce deadlock and is not allowed. + for _, stream := range streamsToClose { + t.closeStream(stream, errStreamDrain, false, http2.ErrCodeNo, statusGoAway, nil, false) + } +} + +// setGoAwayReason sets the value of t.goAwayReason based +// on the GoAway frame received. +// It expects a lock on transport's mutext to be held by +// the caller. +func (t *http2Client) setGoAwayReason(f *http2.GoAwayFrame) { + t.goAwayReason = GoAwayNoReason + switch f.ErrCode { + case http2.ErrCodeEnhanceYourCalm: + if string(f.DebugData()) == "too_many_pings" { + t.goAwayReason = GoAwayTooManyPings + } + } + if len(f.DebugData()) == 0 { + t.goAwayDebugMessage = fmt.Sprintf("code: %s", f.ErrCode) + } else { + t.goAwayDebugMessage = fmt.Sprintf("code: %s, debug data: %q", f.ErrCode, string(f.DebugData())) + } +} + +func (t *http2Client) GetGoAwayReason() (GoAwayReason, string) { + t.mu.Lock() + defer t.mu.Unlock() + return t.goAwayReason, t.goAwayDebugMessage +} + +func (t *http2Client) handleWindowUpdate(f *http2.WindowUpdateFrame) { + t.controlBuf.put(&incomingWindowUpdate{ + streamID: f.Header().StreamID, + increment: f.Increment, + }) +} + +// operateHeaders takes action on the decoded headers. +func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) { + s := t.getStream(frame) + if s == nil { + return + } + endStream := frame.StreamEnded() + atomic.StoreUint32(&s.bytesReceived, 1) + initialHeader := atomic.LoadUint32(&s.headerChanClosed) == 0 + + if !initialHeader && !endStream { + // As specified by gRPC over HTTP2, a HEADERS frame (and associated CONTINUATION frames) can only appear at the start or end of a stream. Therefore, second HEADERS frame must have EOS bit set. + st := status.New(codes.Internal, "a HEADERS frame cannot appear in the middle of a stream") + t.closeStream(s, st.Err(), true, http2.ErrCodeProtocol, st, nil, false) + return + } + + // frame.Truncated is set to true when framer detects that the current header + // list size hits MaxHeaderListSize limit. + if frame.Truncated { + se := status.New(codes.Internal, "peer header list size exceeded limit") + t.closeStream(s, se.Err(), true, http2.ErrCodeFrameSize, se, nil, endStream) + return + } + + var ( + // If a gRPC Response-Headers has already been received, then it means + // that the peer is speaking gRPC and we are in gRPC mode. + isGRPC = !initialHeader + mdata = make(map[string][]string) + contentTypeErr = "malformed header: missing HTTP content-type" + grpcMessage string + statusGen *status.Status + recvCompress string + httpStatusCode *int + httpStatusErr string + rawStatusCode = codes.Unknown + // headerError is set if an error is encountered while parsing the headers + headerError string + ) + + if initialHeader { + httpStatusErr = "malformed header: missing HTTP status" + } + + for _, hf := range frame.Fields { + switch hf.Name { + case "content-type": + if _, validContentType := grpcutil.ContentSubtype(hf.Value); !validContentType { + contentTypeErr = fmt.Sprintf("transport: received unexpected content-type %q", hf.Value) + break + } + contentTypeErr = "" + mdata[hf.Name] = append(mdata[hf.Name], hf.Value) + isGRPC = true + case "grpc-encoding": + recvCompress = hf.Value + case "grpc-status": + code, err := strconv.ParseInt(hf.Value, 10, 32) + if err != nil { + se := status.New(codes.Internal, fmt.Sprintf("transport: malformed grpc-status: %v", err)) + t.closeStream(s, se.Err(), true, http2.ErrCodeProtocol, se, nil, endStream) + return + } + rawStatusCode = codes.Code(uint32(code)) + case "grpc-message": + grpcMessage = decodeGrpcMessage(hf.Value) + case "grpc-status-details-bin": + var err error + statusGen, err = decodeGRPCStatusDetails(hf.Value) + if err != nil { + headerError = fmt.Sprintf("transport: malformed grpc-status-details-bin: %v", err) + } + case ":status": + if hf.Value == "200" { + httpStatusErr = "" + statusCode := 200 + httpStatusCode = &statusCode + break + } + + c, err := strconv.ParseInt(hf.Value, 10, 32) + if err != nil { + se := status.New(codes.Internal, fmt.Sprintf("transport: malformed http-status: %v", err)) + t.closeStream(s, se.Err(), true, http2.ErrCodeProtocol, se, nil, endStream) + return + } + statusCode := int(c) + httpStatusCode = &statusCode + + httpStatusErr = fmt.Sprintf( + "unexpected HTTP status code received from server: %d (%s)", + statusCode, + http.StatusText(statusCode), + ) + default: + if isReservedHeader(hf.Name) && !isWhitelistedHeader(hf.Name) { + break + } + v, err := decodeMetadataHeader(hf.Name, hf.Value) + if err != nil { + headerError = fmt.Sprintf("transport: malformed %s: %v", hf.Name, err) + logger.Warningf("Failed to decode metadata header (%q, %q): %v", hf.Name, hf.Value, err) + break + } + mdata[hf.Name] = append(mdata[hf.Name], v) + } + } + + if !isGRPC || httpStatusErr != "" { + var code = codes.Internal // when header does not include HTTP status, return INTERNAL + + if httpStatusCode != nil { + var ok bool + code, ok = HTTPStatusConvTab[*httpStatusCode] + if !ok { + code = codes.Unknown + } + } + var errs []string + if httpStatusErr != "" { + errs = append(errs, httpStatusErr) + } + if contentTypeErr != "" { + errs = append(errs, contentTypeErr) + } + // Verify the HTTP response is a 200. + se := status.New(code, strings.Join(errs, "; ")) + t.closeStream(s, se.Err(), true, http2.ErrCodeProtocol, se, nil, endStream) + return + } + + if headerError != "" { + se := status.New(codes.Internal, headerError) + t.closeStream(s, se.Err(), true, http2.ErrCodeProtocol, se, nil, endStream) + return + } + + isHeader := false + + // If headerChan hasn't been closed yet + if atomic.CompareAndSwapUint32(&s.headerChanClosed, 0, 1) { + s.headerValid = true + if !endStream { + // HEADERS frame block carries a Response-Headers. + isHeader = true + // These values can be set without any synchronization because + // stream goroutine will read it only after seeing a closed + // headerChan which we'll close after setting this. + s.recvCompress = recvCompress + if len(mdata) > 0 { + s.header = mdata + } + } else { + // HEADERS frame block carries a Trailers-Only. + s.noHeaders = true + } + close(s.headerChan) + } + + for _, sh := range t.statsHandlers { + if isHeader { + inHeader := &stats.InHeader{ + Client: true, + WireLength: int(frame.Header().Length), + Header: metadata.MD(mdata).Copy(), + Compression: s.recvCompress, + } + sh.HandleRPC(s.ctx, inHeader) + } else { + inTrailer := &stats.InTrailer{ + Client: true, + WireLength: int(frame.Header().Length), + Trailer: metadata.MD(mdata).Copy(), + } + sh.HandleRPC(s.ctx, inTrailer) + } + } + + if !endStream { + return + } + + if statusGen == nil { + statusGen = status.New(rawStatusCode, grpcMessage) + } + + // if client received END_STREAM from server while stream was still active, send RST_STREAM + rst := s.getState() == streamActive + t.closeStream(s, io.EOF, rst, http2.ErrCodeNo, statusGen, mdata, true) +} + +// readServerPreface reads and handles the initial settings frame from the +// server. +func (t *http2Client) readServerPreface() error { + frame, err := t.framer.fr.ReadFrame() + if err != nil { + return connectionErrorf(true, err, "error reading server preface: %v", err) + } + sf, ok := frame.(*http2.SettingsFrame) + if !ok { + return connectionErrorf(true, nil, "initial http2 frame from server is not a settings frame: %T", frame) + } + t.handleSettings(sf, true) + return nil +} + +// reader verifies the server preface and reads all subsequent data from +// network connection. If the server preface is not read successfully, an +// error is pushed to errCh; otherwise errCh is closed with no error. +func (t *http2Client) reader(errCh chan<- error) { + defer close(t.readerDone) + + if err := t.readServerPreface(); err != nil { + errCh <- err + return + } + close(errCh) + if t.keepaliveEnabled { + atomic.StoreInt64(&t.lastRead, time.Now().UnixNano()) + } + + // loop to keep reading incoming messages on this transport. + for { + t.controlBuf.throttle() + frame, err := t.framer.fr.ReadFrame() + if t.keepaliveEnabled { + atomic.StoreInt64(&t.lastRead, time.Now().UnixNano()) + } + if err != nil { + // Abort an active stream if the http2.Framer returns a + // http2.StreamError. This can happen only if the server's response + // is malformed http2. + if se, ok := err.(http2.StreamError); ok { + t.mu.Lock() + s := t.activeStreams[se.StreamID] + t.mu.Unlock() + if s != nil { + // use error detail to provide better err message + code := http2ErrConvTab[se.Code] + errorDetail := t.framer.fr.ErrorDetail() + var msg string + if errorDetail != nil { + msg = errorDetail.Error() + } else { + msg = "received invalid frame" + } + t.closeStream(s, status.Error(code, msg), true, http2.ErrCodeProtocol, status.New(code, msg), nil, false) + } + continue + } else { + // Transport error. + t.Close(connectionErrorf(true, err, "error reading from server: %v", err)) + return + } + } + switch frame := frame.(type) { + case *http2.MetaHeadersFrame: + t.operateHeaders(frame) + case *http2.DataFrame: + t.handleData(frame) + case *http2.RSTStreamFrame: + t.handleRSTStream(frame) + case *http2.SettingsFrame: + t.handleSettings(frame, false) + case *http2.PingFrame: + t.handlePing(frame) + case *http2.GoAwayFrame: + t.handleGoAway(frame) + case *http2.WindowUpdateFrame: + t.handleWindowUpdate(frame) + default: + if logger.V(logLevel) { + logger.Errorf("transport: http2Client.reader got unhandled frame type %v.", frame) + } + } + } +} + +func minTime(a, b time.Duration) time.Duration { + if a < b { + return a + } + return b +} + +// keepalive running in a separate goroutine makes sure the connection is alive by sending pings. +func (t *http2Client) keepalive() { + p := &ping{data: [8]byte{}} + // True iff a ping has been sent, and no data has been received since then. + outstandingPing := false + // Amount of time remaining before which we should receive an ACK for the + // last sent ping. + timeoutLeft := time.Duration(0) + // Records the last value of t.lastRead before we go block on the timer. + // This is required to check for read activity since then. + prevNano := time.Now().UnixNano() + timer := time.NewTimer(t.kp.Time) + for { + select { + case <-timer.C: + lastRead := atomic.LoadInt64(&t.lastRead) + if lastRead > prevNano { + // There has been read activity since the last time we were here. + outstandingPing = false + // Next timer should fire at kp.Time seconds from lastRead time. + timer.Reset(time.Duration(lastRead) + t.kp.Time - time.Duration(time.Now().UnixNano())) + prevNano = lastRead + continue + } + if outstandingPing && timeoutLeft <= 0 { + t.Close(connectionErrorf(true, nil, "keepalive ping failed to receive ACK within timeout")) + return + } + t.mu.Lock() + if t.state == closing { + // If the transport is closing, we should exit from the + // keepalive goroutine here. If not, we could have a race + // between the call to Signal() from Close() and the call to + // Wait() here, whereby the keepalive goroutine ends up + // blocking on the condition variable which will never be + // signalled again. + t.mu.Unlock() + return + } + if len(t.activeStreams) < 1 && !t.kp.PermitWithoutStream { + // If a ping was sent out previously (because there were active + // streams at that point) which wasn't acked and its timeout + // hadn't fired, but we got here and are about to go dormant, + // we should make sure that we unconditionally send a ping once + // we awaken. + outstandingPing = false + t.kpDormant = true + t.kpDormancyCond.Wait() + } + t.kpDormant = false + t.mu.Unlock() + + // We get here either because we were dormant and a new stream was + // created which unblocked the Wait() call, or because the + // keepalive timer expired. In both cases, we need to send a ping. + if !outstandingPing { + if channelz.IsOn() { + atomic.AddInt64(&t.czData.kpCount, 1) + } + t.controlBuf.put(p) + timeoutLeft = t.kp.Timeout + outstandingPing = true + } + // The amount of time to sleep here is the minimum of kp.Time and + // timeoutLeft. This will ensure that we wait only for kp.Time + // before sending out the next ping (for cases where the ping is + // acked). + sleepDuration := minTime(t.kp.Time, timeoutLeft) + timeoutLeft -= sleepDuration + timer.Reset(sleepDuration) + case <-t.ctx.Done(): + if !timer.Stop() { + <-timer.C + } + return + } + } +} + +func (t *http2Client) Error() <-chan struct{} { + return t.ctx.Done() +} + +func (t *http2Client) GoAway() <-chan struct{} { + return t.goAway +} + +func (t *http2Client) ChannelzMetric() *channelz.SocketInternalMetric { + s := channelz.SocketInternalMetric{ + StreamsStarted: atomic.LoadInt64(&t.czData.streamsStarted), + StreamsSucceeded: atomic.LoadInt64(&t.czData.streamsSucceeded), + StreamsFailed: atomic.LoadInt64(&t.czData.streamsFailed), + MessagesSent: atomic.LoadInt64(&t.czData.msgSent), + MessagesReceived: atomic.LoadInt64(&t.czData.msgRecv), + KeepAlivesSent: atomic.LoadInt64(&t.czData.kpCount), + LastLocalStreamCreatedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastStreamCreatedTime)), + LastMessageSentTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgSentTime)), + LastMessageReceivedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgRecvTime)), + LocalFlowControlWindow: int64(t.fc.getSize()), + SocketOptions: channelz.GetSocketOption(t.conn), + LocalAddr: t.localAddr, + RemoteAddr: t.remoteAddr, + // RemoteName : + } + if au, ok := t.authInfo.(credentials.ChannelzSecurityInfo); ok { + s.Security = au.GetSecurityValue() + } + s.RemoteFlowControlWindow = t.getOutFlowWindow() + return &s +} + +func (t *http2Client) RemoteAddr() net.Addr { return t.remoteAddr } + +func (t *http2Client) IncrMsgSent() { + atomic.AddInt64(&t.czData.msgSent, 1) + atomic.StoreInt64(&t.czData.lastMsgSentTime, time.Now().UnixNano()) +} + +func (t *http2Client) IncrMsgRecv() { + atomic.AddInt64(&t.czData.msgRecv, 1) + atomic.StoreInt64(&t.czData.lastMsgRecvTime, time.Now().UnixNano()) +} + +func (t *http2Client) getOutFlowWindow() int64 { + resp := make(chan uint32, 1) + timer := time.NewTimer(time.Second) + defer timer.Stop() + t.controlBuf.put(&outFlowControlSizeRequest{resp}) + select { + case sz := <-resp: + return int64(sz) + case <-t.ctxDone: + return -1 + case <-timer.C: + return -2 + } +} + +func (t *http2Client) stateForTesting() transportState { + t.mu.Lock() + defer t.mu.Unlock() + return t.state +} diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_server.go b/vendor/google.golang.org/grpc/internal/transport/http2_server.go new file mode 100644 index 0000000..bc3da70 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/http2_server.go @@ -0,0 +1,1461 @@ +/* + * + * Copyright 2014 gRPC authors. + * + * 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 transport + +import ( + "bytes" + "context" + "errors" + "fmt" + "io" + "math" + "net" + "net/http" + "strconv" + "sync" + "sync/atomic" + "time" + + "github.com/golang/protobuf/proto" + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/internal/grpcutil" + "google.golang.org/grpc/internal/syscall" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/channelz" + "google.golang.org/grpc/internal/grpcrand" + "google.golang.org/grpc/internal/grpcsync" + "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" + "google.golang.org/grpc/stats" + "google.golang.org/grpc/status" + "google.golang.org/grpc/tap" +) + +var ( + // ErrIllegalHeaderWrite indicates that setting header is illegal because of + // the stream's state. + ErrIllegalHeaderWrite = status.Error(codes.Internal, "transport: SendHeader called multiple times") + // ErrHeaderListSizeLimitViolation indicates that the header list size is larger + // than the limit set by peer. + ErrHeaderListSizeLimitViolation = status.Error(codes.Internal, "transport: trying to send header list size larger than the limit set by peer") +) + +// serverConnectionCounter counts the number of connections a server has seen +// (equal to the number of http2Servers created). Must be accessed atomically. +var serverConnectionCounter uint64 + +// http2Server implements the ServerTransport interface with HTTP2. +type http2Server struct { + lastRead int64 // Keep this field 64-bit aligned. Accessed atomically. + ctx context.Context + done chan struct{} + conn net.Conn + loopy *loopyWriter + readerDone chan struct{} // sync point to enable testing. + writerDone chan struct{} // sync point to enable testing. + remoteAddr net.Addr + localAddr net.Addr + authInfo credentials.AuthInfo // auth info about the connection + inTapHandle tap.ServerInHandle + framer *framer + // The max number of concurrent streams. + maxStreams uint32 + // controlBuf delivers all the control related tasks (e.g., window + // updates, reset streams, and various settings) to the controller. + controlBuf *controlBuffer + fc *trInFlow + stats []stats.Handler + // Keepalive and max-age parameters for the server. + kp keepalive.ServerParameters + // Keepalive enforcement policy. + kep keepalive.EnforcementPolicy + // The time instance last ping was received. + lastPingAt time.Time + // Number of times the client has violated keepalive ping policy so far. + pingStrikes uint8 + // Flag to signify that number of ping strikes should be reset to 0. + // This is set whenever data or header frames are sent. + // 1 means yes. + resetPingStrikes uint32 // Accessed atomically. + initialWindowSize int32 + bdpEst *bdpEstimator + maxSendHeaderListSize *uint32 + + mu sync.Mutex // guard the following + + // drainEvent is initialized when Drain() is called the first time. After + // which the server writes out the first GoAway(with ID 2^31-1) frame. Then + // an independent goroutine will be launched to later send the second + // GoAway. During this time we don't want to write another first GoAway(with + // ID 2^31 -1) frame. Thus call to Drain() will be a no-op if drainEvent is + // already initialized since draining is already underway. + drainEvent *grpcsync.Event + state transportState + activeStreams map[uint32]*Stream + // idle is the time instant when the connection went idle. + // This is either the beginning of the connection or when the number of + // RPCs go down to 0. + // When the connection is busy, this value is set to 0. + idle time.Time + + // Fields below are for channelz metric collection. + channelzID *channelz.Identifier + czData *channelzData + bufferPool *bufferPool + + connectionID uint64 + + // maxStreamMu guards the maximum stream ID + // This lock may not be taken if mu is already held. + maxStreamMu sync.Mutex + maxStreamID uint32 // max stream ID ever seen +} + +// NewServerTransport creates a http2 transport with conn and configuration +// options from config. +// +// It returns a non-nil transport and a nil error on success. On failure, it +// returns a nil transport and a non-nil error. For a special case where the +// underlying conn gets closed before the client preface could be read, it +// returns a nil transport and a nil error. +func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, err error) { + var authInfo credentials.AuthInfo + rawConn := conn + if config.Credentials != nil { + var err error + conn, authInfo, err = config.Credentials.ServerHandshake(rawConn) + if err != nil { + // ErrConnDispatched means that the connection was dispatched away + // from gRPC; those connections should be left open. io.EOF means + // the connection was closed before handshaking completed, which can + // happen naturally from probers. Return these errors directly. + if err == credentials.ErrConnDispatched || err == io.EOF { + return nil, err + } + return nil, connectionErrorf(false, err, "ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err) + } + } + writeBufSize := config.WriteBufferSize + readBufSize := config.ReadBufferSize + maxHeaderListSize := defaultServerMaxHeaderListSize + if config.MaxHeaderListSize != nil { + maxHeaderListSize = *config.MaxHeaderListSize + } + framer := newFramer(conn, writeBufSize, readBufSize, maxHeaderListSize) + // Send initial settings as connection preface to client. + isettings := []http2.Setting{{ + ID: http2.SettingMaxFrameSize, + Val: http2MaxFrameLen, + }} + // TODO(zhaoq): Have a better way to signal "no limit" because 0 is + // permitted in the HTTP2 spec. + maxStreams := config.MaxStreams + if maxStreams == 0 { + maxStreams = math.MaxUint32 + } else { + isettings = append(isettings, http2.Setting{ + ID: http2.SettingMaxConcurrentStreams, + Val: maxStreams, + }) + } + dynamicWindow := true + iwz := int32(initialWindowSize) + if config.InitialWindowSize >= defaultWindowSize { + iwz = config.InitialWindowSize + dynamicWindow = false + } + icwz := int32(initialWindowSize) + if config.InitialConnWindowSize >= defaultWindowSize { + icwz = config.InitialConnWindowSize + dynamicWindow = false + } + if iwz != defaultWindowSize { + isettings = append(isettings, http2.Setting{ + ID: http2.SettingInitialWindowSize, + Val: uint32(iwz)}) + } + if config.MaxHeaderListSize != nil { + isettings = append(isettings, http2.Setting{ + ID: http2.SettingMaxHeaderListSize, + Val: *config.MaxHeaderListSize, + }) + } + if config.HeaderTableSize != nil { + isettings = append(isettings, http2.Setting{ + ID: http2.SettingHeaderTableSize, + Val: *config.HeaderTableSize, + }) + } + if err := framer.fr.WriteSettings(isettings...); err != nil { + return nil, connectionErrorf(false, err, "transport: %v", err) + } + // Adjust the connection flow control window if needed. + if delta := uint32(icwz - defaultWindowSize); delta > 0 { + if err := framer.fr.WriteWindowUpdate(0, delta); err != nil { + return nil, connectionErrorf(false, err, "transport: %v", err) + } + } + kp := config.KeepaliveParams + if kp.MaxConnectionIdle == 0 { + kp.MaxConnectionIdle = defaultMaxConnectionIdle + } + if kp.MaxConnectionAge == 0 { + kp.MaxConnectionAge = defaultMaxConnectionAge + } + // Add a jitter to MaxConnectionAge. + kp.MaxConnectionAge += getJitter(kp.MaxConnectionAge) + if kp.MaxConnectionAgeGrace == 0 { + kp.MaxConnectionAgeGrace = defaultMaxConnectionAgeGrace + } + if kp.Time == 0 { + kp.Time = defaultServerKeepaliveTime + } + if kp.Timeout == 0 { + kp.Timeout = defaultServerKeepaliveTimeout + } + if kp.Time != infinity { + if err = syscall.SetTCPUserTimeout(conn, kp.Timeout); err != nil { + return nil, connectionErrorf(false, err, "transport: failed to set TCP_USER_TIMEOUT: %v", err) + } + } + kep := config.KeepalivePolicy + if kep.MinTime == 0 { + kep.MinTime = defaultKeepalivePolicyMinTime + } + + done := make(chan struct{}) + t := &http2Server{ + ctx: setConnection(context.Background(), rawConn), + done: done, + conn: conn, + remoteAddr: conn.RemoteAddr(), + localAddr: conn.LocalAddr(), + authInfo: authInfo, + framer: framer, + readerDone: make(chan struct{}), + writerDone: make(chan struct{}), + maxStreams: maxStreams, + inTapHandle: config.InTapHandle, + fc: &trInFlow{limit: uint32(icwz)}, + state: reachable, + activeStreams: make(map[uint32]*Stream), + stats: config.StatsHandlers, + kp: kp, + idle: time.Now(), + kep: kep, + initialWindowSize: iwz, + czData: new(channelzData), + bufferPool: newBufferPool(), + } + // Add peer information to the http2server context. + t.ctx = peer.NewContext(t.ctx, t.getPeer()) + + t.controlBuf = newControlBuffer(t.done) + if dynamicWindow { + t.bdpEst = &bdpEstimator{ + bdp: initialWindowSize, + updateFlowControl: t.updateFlowControl, + } + } + for _, sh := range t.stats { + t.ctx = sh.TagConn(t.ctx, &stats.ConnTagInfo{ + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + }) + connBegin := &stats.ConnBegin{} + sh.HandleConn(t.ctx, connBegin) + } + t.channelzID, err = channelz.RegisterNormalSocket(t, config.ChannelzParentID, fmt.Sprintf("%s -> %s", t.remoteAddr, t.localAddr)) + if err != nil { + return nil, err + } + + t.connectionID = atomic.AddUint64(&serverConnectionCounter, 1) + t.framer.writer.Flush() + + defer func() { + if err != nil { + t.Close(err) + } + }() + + // Check the validity of client preface. + preface := make([]byte, len(clientPreface)) + if _, err := io.ReadFull(t.conn, preface); err != nil { + // In deployments where a gRPC server runs behind a cloud load balancer + // which performs regular TCP level health checks, the connection is + // closed immediately by the latter. Returning io.EOF here allows the + // grpc server implementation to recognize this scenario and suppress + // logging to reduce spam. + if err == io.EOF { + return nil, io.EOF + } + return nil, connectionErrorf(false, err, "transport: http2Server.HandleStreams failed to receive the preface from client: %v", err) + } + if !bytes.Equal(preface, clientPreface) { + return nil, connectionErrorf(false, nil, "transport: http2Server.HandleStreams received bogus greeting from client: %q", preface) + } + + frame, err := t.framer.fr.ReadFrame() + if err == io.EOF || err == io.ErrUnexpectedEOF { + return nil, err + } + if err != nil { + return nil, connectionErrorf(false, err, "transport: http2Server.HandleStreams failed to read initial settings frame: %v", err) + } + atomic.StoreInt64(&t.lastRead, time.Now().UnixNano()) + sf, ok := frame.(*http2.SettingsFrame) + if !ok { + return nil, connectionErrorf(false, nil, "transport: http2Server.HandleStreams saw invalid preface type %T from client", frame) + } + t.handleSettings(sf) + + go func() { + t.loopy = newLoopyWriter(serverSide, t.framer, t.controlBuf, t.bdpEst) + t.loopy.ssGoAwayHandler = t.outgoingGoAwayHandler + err := t.loopy.run() + if logger.V(logLevel) { + logger.Infof("transport: loopyWriter exited. Closing connection. Err: %v", err) + } + t.conn.Close() + t.controlBuf.finish() + close(t.writerDone) + }() + go t.keepalive() + return t, nil +} + +// operateHeaders takes action on the decoded headers. Returns an error if fatal +// error encountered and transport needs to close, otherwise returns nil. +func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func(*Stream), traceCtx func(context.Context, string) context.Context) error { + // Acquire max stream ID lock for entire duration + t.maxStreamMu.Lock() + defer t.maxStreamMu.Unlock() + + streamID := frame.Header().StreamID + + // frame.Truncated is set to true when framer detects that the current header + // list size hits MaxHeaderListSize limit. + if frame.Truncated { + t.controlBuf.put(&cleanupStream{ + streamID: streamID, + rst: true, + rstCode: http2.ErrCodeFrameSize, + onWrite: func() {}, + }) + return nil + } + + if streamID%2 != 1 || streamID <= t.maxStreamID { + // illegal gRPC stream id. + return fmt.Errorf("received an illegal stream id: %v. headers frame: %+v", streamID, frame) + } + t.maxStreamID = streamID + + buf := newRecvBuffer() + s := &Stream{ + id: streamID, + st: t, + buf: buf, + fc: &inFlow{limit: uint32(t.initialWindowSize)}, + } + var ( + // if false, content-type was missing or invalid + isGRPC = false + contentType = "" + mdata = make(map[string][]string) + httpMethod string + // these are set if an error is encountered while parsing the headers + protocolError bool + headerError *status.Status + + timeoutSet bool + timeout time.Duration + ) + + for _, hf := range frame.Fields { + switch hf.Name { + case "content-type": + contentSubtype, validContentType := grpcutil.ContentSubtype(hf.Value) + if !validContentType { + contentType = hf.Value + break + } + mdata[hf.Name] = append(mdata[hf.Name], hf.Value) + s.contentSubtype = contentSubtype + isGRPC = true + case "grpc-encoding": + s.recvCompress = hf.Value + case ":method": + httpMethod = hf.Value + case ":path": + s.method = hf.Value + case "grpc-timeout": + timeoutSet = true + var err error + if timeout, err = decodeTimeout(hf.Value); err != nil { + headerError = status.Newf(codes.Internal, "malformed grpc-timeout: %v", err) + } + // "Transports must consider requests containing the Connection header + // as malformed." - A41 + case "connection": + if logger.V(logLevel) { + logger.Errorf("transport: http2Server.operateHeaders parsed a :connection header which makes a request malformed as per the HTTP/2 spec") + } + protocolError = true + default: + if isReservedHeader(hf.Name) && !isWhitelistedHeader(hf.Name) { + break + } + v, err := decodeMetadataHeader(hf.Name, hf.Value) + if err != nil { + headerError = status.Newf(codes.Internal, "malformed binary metadata %q in header %q: %v", hf.Value, hf.Name, err) + logger.Warningf("Failed to decode metadata header (%q, %q): %v", hf.Name, hf.Value, err) + break + } + mdata[hf.Name] = append(mdata[hf.Name], v) + } + } + + // "If multiple Host headers or multiple :authority headers are present, the + // request must be rejected with an HTTP status code 400 as required by Host + // validation in RFC 7230 §5.4, gRPC status code INTERNAL, or RST_STREAM + // with HTTP/2 error code PROTOCOL_ERROR." - A41. Since this is a HTTP/2 + // error, this takes precedence over a client not speaking gRPC. + if len(mdata[":authority"]) > 1 || len(mdata["host"]) > 1 { + errMsg := fmt.Sprintf("num values of :authority: %v, num values of host: %v, both must only have 1 value as per HTTP/2 spec", len(mdata[":authority"]), len(mdata["host"])) + if logger.V(logLevel) { + logger.Errorf("transport: %v", errMsg) + } + t.controlBuf.put(&earlyAbortStream{ + httpStatus: http.StatusBadRequest, + streamID: streamID, + contentSubtype: s.contentSubtype, + status: status.New(codes.Internal, errMsg), + rst: !frame.StreamEnded(), + }) + return nil + } + + if protocolError { + t.controlBuf.put(&cleanupStream{ + streamID: streamID, + rst: true, + rstCode: http2.ErrCodeProtocol, + onWrite: func() {}, + }) + return nil + } + if !isGRPC { + t.controlBuf.put(&earlyAbortStream{ + httpStatus: http.StatusUnsupportedMediaType, + streamID: streamID, + contentSubtype: s.contentSubtype, + status: status.Newf(codes.InvalidArgument, "invalid gRPC request content-type %q", contentType), + rst: !frame.StreamEnded(), + }) + return nil + } + if headerError != nil { + t.controlBuf.put(&earlyAbortStream{ + httpStatus: http.StatusBadRequest, + streamID: streamID, + contentSubtype: s.contentSubtype, + status: headerError, + rst: !frame.StreamEnded(), + }) + return nil + } + + // "If :authority is missing, Host must be renamed to :authority." - A41 + if len(mdata[":authority"]) == 0 { + // No-op if host isn't present, no eventual :authority header is a valid + // RPC. + if host, ok := mdata["host"]; ok { + mdata[":authority"] = host + delete(mdata, "host") + } + } else { + // "If :authority is present, Host must be discarded" - A41 + delete(mdata, "host") + } + + if frame.StreamEnded() { + // s is just created by the caller. No lock needed. + s.state = streamReadDone + } + if timeoutSet { + s.ctx, s.cancel = context.WithTimeout(t.ctx, timeout) + } else { + s.ctx, s.cancel = context.WithCancel(t.ctx) + } + + // Attach the received metadata to the context. + if len(mdata) > 0 { + s.ctx = metadata.NewIncomingContext(s.ctx, mdata) + if statsTags := mdata["grpc-tags-bin"]; len(statsTags) > 0 { + s.ctx = stats.SetIncomingTags(s.ctx, []byte(statsTags[len(statsTags)-1])) + } + if statsTrace := mdata["grpc-trace-bin"]; len(statsTrace) > 0 { + s.ctx = stats.SetIncomingTrace(s.ctx, []byte(statsTrace[len(statsTrace)-1])) + } + } + t.mu.Lock() + if t.state != reachable { + t.mu.Unlock() + s.cancel() + return nil + } + if uint32(len(t.activeStreams)) >= t.maxStreams { + t.mu.Unlock() + t.controlBuf.put(&cleanupStream{ + streamID: streamID, + rst: true, + rstCode: http2.ErrCodeRefusedStream, + onWrite: func() {}, + }) + s.cancel() + return nil + } + if httpMethod != http.MethodPost { + t.mu.Unlock() + errMsg := fmt.Sprintf("http2Server.operateHeaders parsed a :method field: %v which should be POST", httpMethod) + if logger.V(logLevel) { + logger.Infof("transport: %v", errMsg) + } + t.controlBuf.put(&earlyAbortStream{ + httpStatus: 405, + streamID: streamID, + contentSubtype: s.contentSubtype, + status: status.New(codes.Internal, errMsg), + rst: !frame.StreamEnded(), + }) + s.cancel() + return nil + } + if t.inTapHandle != nil { + var err error + if s.ctx, err = t.inTapHandle(s.ctx, &tap.Info{FullMethodName: s.method}); err != nil { + t.mu.Unlock() + if logger.V(logLevel) { + logger.Infof("transport: http2Server.operateHeaders got an error from InTapHandle: %v", err) + } + stat, ok := status.FromError(err) + if !ok { + stat = status.New(codes.PermissionDenied, err.Error()) + } + t.controlBuf.put(&earlyAbortStream{ + httpStatus: 200, + streamID: s.id, + contentSubtype: s.contentSubtype, + status: stat, + rst: !frame.StreamEnded(), + }) + return nil + } + } + t.activeStreams[streamID] = s + if len(t.activeStreams) == 1 { + t.idle = time.Time{} + } + t.mu.Unlock() + if channelz.IsOn() { + atomic.AddInt64(&t.czData.streamsStarted, 1) + atomic.StoreInt64(&t.czData.lastStreamCreatedTime, time.Now().UnixNano()) + } + s.requestRead = func(n int) { + t.adjustWindow(s, uint32(n)) + } + s.ctx = traceCtx(s.ctx, s.method) + for _, sh := range t.stats { + s.ctx = sh.TagRPC(s.ctx, &stats.RPCTagInfo{FullMethodName: s.method}) + inHeader := &stats.InHeader{ + FullMethod: s.method, + RemoteAddr: t.remoteAddr, + LocalAddr: t.localAddr, + Compression: s.recvCompress, + WireLength: int(frame.Header().Length), + Header: metadata.MD(mdata).Copy(), + } + sh.HandleRPC(s.ctx, inHeader) + } + s.ctxDone = s.ctx.Done() + s.wq = newWriteQuota(defaultWriteQuota, s.ctxDone) + s.trReader = &transportReader{ + reader: &recvBufferReader{ + ctx: s.ctx, + ctxDone: s.ctxDone, + recv: s.buf, + freeBuffer: t.bufferPool.put, + }, + windowHandler: func(n int) { + t.updateWindow(s, uint32(n)) + }, + } + // Register the stream with loopy. + t.controlBuf.put(®isterStream{ + streamID: s.id, + wq: s.wq, + }) + handle(s) + return nil +} + +// HandleStreams receives incoming streams using the given handler. This is +// typically run in a separate goroutine. +// traceCtx attaches trace to ctx and returns the new context. +func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context.Context, string) context.Context) { + defer close(t.readerDone) + for { + t.controlBuf.throttle() + frame, err := t.framer.fr.ReadFrame() + atomic.StoreInt64(&t.lastRead, time.Now().UnixNano()) + if err != nil { + if se, ok := err.(http2.StreamError); ok { + if logger.V(logLevel) { + logger.Warningf("transport: http2Server.HandleStreams encountered http2.StreamError: %v", se) + } + t.mu.Lock() + s := t.activeStreams[se.StreamID] + t.mu.Unlock() + if s != nil { + t.closeStream(s, true, se.Code, false) + } else { + t.controlBuf.put(&cleanupStream{ + streamID: se.StreamID, + rst: true, + rstCode: se.Code, + onWrite: func() {}, + }) + } + continue + } + if err == io.EOF || err == io.ErrUnexpectedEOF { + t.Close(err) + return + } + t.Close(err) + return + } + switch frame := frame.(type) { + case *http2.MetaHeadersFrame: + if err := t.operateHeaders(frame, handle, traceCtx); err != nil { + t.Close(err) + break + } + case *http2.DataFrame: + t.handleData(frame) + case *http2.RSTStreamFrame: + t.handleRSTStream(frame) + case *http2.SettingsFrame: + t.handleSettings(frame) + case *http2.PingFrame: + t.handlePing(frame) + case *http2.WindowUpdateFrame: + t.handleWindowUpdate(frame) + case *http2.GoAwayFrame: + // TODO: Handle GoAway from the client appropriately. + default: + if logger.V(logLevel) { + logger.Errorf("transport: http2Server.HandleStreams found unhandled frame type %v.", frame) + } + } + } +} + +func (t *http2Server) getStream(f http2.Frame) (*Stream, bool) { + t.mu.Lock() + defer t.mu.Unlock() + if t.activeStreams == nil { + // The transport is closing. + return nil, false + } + s, ok := t.activeStreams[f.Header().StreamID] + if !ok { + // The stream is already done. + return nil, false + } + return s, true +} + +// adjustWindow sends out extra window update over the initial window size +// of stream if the application is requesting data larger in size than +// the window. +func (t *http2Server) adjustWindow(s *Stream, n uint32) { + if w := s.fc.maybeAdjust(n); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{streamID: s.id, increment: w}) + } + +} + +// updateWindow adjusts the inbound quota for the stream and the transport. +// Window updates will deliver to the controller for sending when +// the cumulative quota exceeds the corresponding threshold. +func (t *http2Server) updateWindow(s *Stream, n uint32) { + if w := s.fc.onRead(n); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{streamID: s.id, + increment: w, + }) + } +} + +// updateFlowControl updates the incoming flow control windows +// for the transport and the stream based on the current bdp +// estimation. +func (t *http2Server) updateFlowControl(n uint32) { + t.mu.Lock() + for _, s := range t.activeStreams { + s.fc.newLimit(n) + } + t.initialWindowSize = int32(n) + t.mu.Unlock() + t.controlBuf.put(&outgoingWindowUpdate{ + streamID: 0, + increment: t.fc.newLimit(n), + }) + t.controlBuf.put(&outgoingSettings{ + ss: []http2.Setting{ + { + ID: http2.SettingInitialWindowSize, + Val: n, + }, + }, + }) + +} + +func (t *http2Server) handleData(f *http2.DataFrame) { + size := f.Header().Length + var sendBDPPing bool + if t.bdpEst != nil { + sendBDPPing = t.bdpEst.add(size) + } + // Decouple connection's flow control from application's read. + // An update on connection's flow control should not depend on + // whether user application has read the data or not. Such a + // restriction is already imposed on the stream's flow control, + // and therefore the sender will be blocked anyways. + // Decoupling the connection flow control will prevent other + // active(fast) streams from starving in presence of slow or + // inactive streams. + if w := t.fc.onData(size); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{ + streamID: 0, + increment: w, + }) + } + if sendBDPPing { + // Avoid excessive ping detection (e.g. in an L7 proxy) + // by sending a window update prior to the BDP ping. + if w := t.fc.reset(); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{ + streamID: 0, + increment: w, + }) + } + t.controlBuf.put(bdpPing) + } + // Select the right stream to dispatch. + s, ok := t.getStream(f) + if !ok { + return + } + if s.getState() == streamReadDone { + t.closeStream(s, true, http2.ErrCodeStreamClosed, false) + return + } + if size > 0 { + if err := s.fc.onData(size); err != nil { + t.closeStream(s, true, http2.ErrCodeFlowControl, false) + return + } + if f.Header().Flags.Has(http2.FlagDataPadded) { + if w := s.fc.onRead(size - uint32(len(f.Data()))); w > 0 { + t.controlBuf.put(&outgoingWindowUpdate{s.id, w}) + } + } + // TODO(bradfitz, zhaoq): A copy is required here because there is no + // guarantee f.Data() is consumed before the arrival of next frame. + // Can this copy be eliminated? + if len(f.Data()) > 0 { + buffer := t.bufferPool.get() + buffer.Reset() + buffer.Write(f.Data()) + s.write(recvMsg{buffer: buffer}) + } + } + if f.StreamEnded() { + // Received the end of stream from the client. + s.compareAndSwapState(streamActive, streamReadDone) + s.write(recvMsg{err: io.EOF}) + } +} + +func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) { + // If the stream is not deleted from the transport's active streams map, then do a regular close stream. + if s, ok := t.getStream(f); ok { + t.closeStream(s, false, 0, false) + return + } + // If the stream is already deleted from the active streams map, then put a cleanupStream item into controlbuf to delete the stream from loopy writer's established streams map. + t.controlBuf.put(&cleanupStream{ + streamID: f.Header().StreamID, + rst: false, + rstCode: 0, + onWrite: func() {}, + }) +} + +func (t *http2Server) handleSettings(f *http2.SettingsFrame) { + if f.IsAck() { + return + } + var ss []http2.Setting + var updateFuncs []func() + f.ForeachSetting(func(s http2.Setting) error { + switch s.ID { + case http2.SettingMaxHeaderListSize: + updateFuncs = append(updateFuncs, func() { + t.maxSendHeaderListSize = new(uint32) + *t.maxSendHeaderListSize = s.Val + }) + default: + ss = append(ss, s) + } + return nil + }) + t.controlBuf.executeAndPut(func(interface{}) bool { + for _, f := range updateFuncs { + f() + } + return true + }, &incomingSettings{ + ss: ss, + }) +} + +const ( + maxPingStrikes = 2 + defaultPingTimeout = 2 * time.Hour +) + +func (t *http2Server) handlePing(f *http2.PingFrame) { + if f.IsAck() { + if f.Data == goAwayPing.data && t.drainEvent != nil { + t.drainEvent.Fire() + return + } + // Maybe it's a BDP ping. + if t.bdpEst != nil { + t.bdpEst.calculate(f.Data) + } + return + } + pingAck := &ping{ack: true} + copy(pingAck.data[:], f.Data[:]) + t.controlBuf.put(pingAck) + + now := time.Now() + defer func() { + t.lastPingAt = now + }() + // A reset ping strikes means that we don't need to check for policy + // violation for this ping and the pingStrikes counter should be set + // to 0. + if atomic.CompareAndSwapUint32(&t.resetPingStrikes, 1, 0) { + t.pingStrikes = 0 + return + } + t.mu.Lock() + ns := len(t.activeStreams) + t.mu.Unlock() + if ns < 1 && !t.kep.PermitWithoutStream { + // Keepalive shouldn't be active thus, this new ping should + // have come after at least defaultPingTimeout. + if t.lastPingAt.Add(defaultPingTimeout).After(now) { + t.pingStrikes++ + } + } else { + // Check if keepalive policy is respected. + if t.lastPingAt.Add(t.kep.MinTime).After(now) { + t.pingStrikes++ + } + } + + if t.pingStrikes > maxPingStrikes { + // Send goaway and close the connection. + t.controlBuf.put(&goAway{code: http2.ErrCodeEnhanceYourCalm, debugData: []byte("too_many_pings"), closeConn: errors.New("got too many pings from the client")}) + } +} + +func (t *http2Server) handleWindowUpdate(f *http2.WindowUpdateFrame) { + t.controlBuf.put(&incomingWindowUpdate{ + streamID: f.Header().StreamID, + increment: f.Increment, + }) +} + +func appendHeaderFieldsFromMD(headerFields []hpack.HeaderField, md metadata.MD) []hpack.HeaderField { + for k, vv := range md { + if isReservedHeader(k) { + // Clients don't tolerate reading restricted headers after some non restricted ones were sent. + continue + } + for _, v := range vv { + headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) + } + } + return headerFields +} + +func (t *http2Server) checkForHeaderListSize(it interface{}) bool { + if t.maxSendHeaderListSize == nil { + return true + } + hdrFrame := it.(*headerFrame) + var sz int64 + for _, f := range hdrFrame.hf { + if sz += int64(f.Size()); sz > int64(*t.maxSendHeaderListSize) { + if logger.V(logLevel) { + logger.Errorf("header list size to send violates the maximum size (%d bytes) set by client", *t.maxSendHeaderListSize) + } + return false + } + } + return true +} + +func (t *http2Server) streamContextErr(s *Stream) error { + select { + case <-t.done: + return ErrConnClosing + default: + } + return ContextErr(s.ctx.Err()) +} + +// WriteHeader sends the header metadata md back to the client. +func (t *http2Server) WriteHeader(s *Stream, md metadata.MD) error { + s.hdrMu.Lock() + defer s.hdrMu.Unlock() + if s.getState() == streamDone { + return t.streamContextErr(s) + } + + if s.updateHeaderSent() { + return ErrIllegalHeaderWrite + } + + if md.Len() > 0 { + if s.header.Len() > 0 { + s.header = metadata.Join(s.header, md) + } else { + s.header = md + } + } + if err := t.writeHeaderLocked(s); err != nil { + return status.Convert(err).Err() + } + return nil +} + +func (t *http2Server) setResetPingStrikes() { + atomic.StoreUint32(&t.resetPingStrikes, 1) +} + +func (t *http2Server) writeHeaderLocked(s *Stream) error { + // TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields + // first and create a slice of that exact size. + headerFields := make([]hpack.HeaderField, 0, 2) // at least :status, content-type will be there if none else. + headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"}) + headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: grpcutil.ContentType(s.contentSubtype)}) + if s.sendCompress != "" { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress}) + } + headerFields = appendHeaderFieldsFromMD(headerFields, s.header) + success, err := t.controlBuf.executeAndPut(t.checkForHeaderListSize, &headerFrame{ + streamID: s.id, + hf: headerFields, + endStream: false, + onWrite: t.setResetPingStrikes, + }) + if !success { + if err != nil { + return err + } + t.closeStream(s, true, http2.ErrCodeInternal, false) + return ErrHeaderListSizeLimitViolation + } + for _, sh := range t.stats { + // Note: Headers are compressed with hpack after this call returns. + // No WireLength field is set here. + outHeader := &stats.OutHeader{ + Header: s.header.Copy(), + Compression: s.sendCompress, + } + sh.HandleRPC(s.Context(), outHeader) + } + return nil +} + +// WriteStatus sends stream status to the client and terminates the stream. +// There is no further I/O operations being able to perform on this stream. +// TODO(zhaoq): Now it indicates the end of entire stream. Revisit if early +// OK is adopted. +func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { + s.hdrMu.Lock() + defer s.hdrMu.Unlock() + + if s.getState() == streamDone { + return nil + } + + // TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields + // first and create a slice of that exact size. + headerFields := make([]hpack.HeaderField, 0, 2) // grpc-status and grpc-message will be there if none else. + if !s.updateHeaderSent() { // No headers have been sent. + if len(s.header) > 0 { // Send a separate header frame. + if err := t.writeHeaderLocked(s); err != nil { + return err + } + } else { // Send a trailer only response. + headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"}) + headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: grpcutil.ContentType(s.contentSubtype)}) + } + } + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status", Value: strconv.Itoa(int(st.Code()))}) + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-message", Value: encodeGrpcMessage(st.Message())}) + + if p := st.Proto(); p != nil && len(p.Details) > 0 { + stBytes, err := proto.Marshal(p) + if err != nil { + // TODO: return error instead, when callers are able to handle it. + logger.Errorf("transport: failed to marshal rpc status: %v, error: %v", p, err) + } else { + headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status-details-bin", Value: encodeBinHeader(stBytes)}) + } + } + + // Attach the trailer metadata. + headerFields = appendHeaderFieldsFromMD(headerFields, s.trailer) + trailingHeader := &headerFrame{ + streamID: s.id, + hf: headerFields, + endStream: true, + onWrite: t.setResetPingStrikes, + } + + success, err := t.controlBuf.execute(t.checkForHeaderListSize, trailingHeader) + if !success { + if err != nil { + return err + } + t.closeStream(s, true, http2.ErrCodeInternal, false) + return ErrHeaderListSizeLimitViolation + } + // Send a RST_STREAM after the trailers if the client has not already half-closed. + rst := s.getState() == streamActive + t.finishStream(s, rst, http2.ErrCodeNo, trailingHeader, true) + for _, sh := range t.stats { + // Note: The trailer fields are compressed with hpack after this call returns. + // No WireLength field is set here. + sh.HandleRPC(s.Context(), &stats.OutTrailer{ + Trailer: s.trailer.Copy(), + }) + } + return nil +} + +// Write converts the data into HTTP2 data frame and sends it out. Non-nil error +// is returns if it fails (e.g., framing error, transport error). +func (t *http2Server) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { + if !s.isHeaderSent() { // Headers haven't been written yet. + if err := t.WriteHeader(s, nil); err != nil { + return err + } + } else { + // Writing headers checks for this condition. + if s.getState() == streamDone { + return t.streamContextErr(s) + } + } + df := &dataFrame{ + streamID: s.id, + h: hdr, + d: data, + onEachWrite: t.setResetPingStrikes, + } + if err := s.wq.get(int32(len(hdr) + len(data))); err != nil { + return t.streamContextErr(s) + } + return t.controlBuf.put(df) +} + +// keepalive running in a separate goroutine does the following: +// 1. Gracefully closes an idle connection after a duration of keepalive.MaxConnectionIdle. +// 2. Gracefully closes any connection after a duration of keepalive.MaxConnectionAge. +// 3. Forcibly closes a connection after an additive period of keepalive.MaxConnectionAgeGrace over keepalive.MaxConnectionAge. +// 4. Makes sure a connection is alive by sending pings with a frequency of keepalive.Time and closes a non-responsive connection +// after an additional duration of keepalive.Timeout. +func (t *http2Server) keepalive() { + p := &ping{} + // True iff a ping has been sent, and no data has been received since then. + outstandingPing := false + // Amount of time remaining before which we should receive an ACK for the + // last sent ping. + kpTimeoutLeft := time.Duration(0) + // Records the last value of t.lastRead before we go block on the timer. + // This is required to check for read activity since then. + prevNano := time.Now().UnixNano() + // Initialize the different timers to their default values. + idleTimer := time.NewTimer(t.kp.MaxConnectionIdle) + ageTimer := time.NewTimer(t.kp.MaxConnectionAge) + kpTimer := time.NewTimer(t.kp.Time) + defer func() { + // We need to drain the underlying channel in these timers after a call + // to Stop(), only if we are interested in resetting them. Clearly we + // are not interested in resetting them here. + idleTimer.Stop() + ageTimer.Stop() + kpTimer.Stop() + }() + + for { + select { + case <-idleTimer.C: + t.mu.Lock() + idle := t.idle + if idle.IsZero() { // The connection is non-idle. + t.mu.Unlock() + idleTimer.Reset(t.kp.MaxConnectionIdle) + continue + } + val := t.kp.MaxConnectionIdle - time.Since(idle) + t.mu.Unlock() + if val <= 0 { + // The connection has been idle for a duration of keepalive.MaxConnectionIdle or more. + // Gracefully close the connection. + t.Drain() + return + } + idleTimer.Reset(val) + case <-ageTimer.C: + t.Drain() + ageTimer.Reset(t.kp.MaxConnectionAgeGrace) + select { + case <-ageTimer.C: + // Close the connection after grace period. + if logger.V(logLevel) { + logger.Infof("transport: closing server transport due to maximum connection age.") + } + t.controlBuf.put(closeConnection{}) + case <-t.done: + } + return + case <-kpTimer.C: + lastRead := atomic.LoadInt64(&t.lastRead) + if lastRead > prevNano { + // There has been read activity since the last time we were + // here. Setup the timer to fire at kp.Time seconds from + // lastRead time and continue. + outstandingPing = false + kpTimer.Reset(time.Duration(lastRead) + t.kp.Time - time.Duration(time.Now().UnixNano())) + prevNano = lastRead + continue + } + if outstandingPing && kpTimeoutLeft <= 0 { + t.Close(fmt.Errorf("keepalive ping not acked within timeout %s", t.kp.Time)) + return + } + if !outstandingPing { + if channelz.IsOn() { + atomic.AddInt64(&t.czData.kpCount, 1) + } + t.controlBuf.put(p) + kpTimeoutLeft = t.kp.Timeout + outstandingPing = true + } + // The amount of time to sleep here is the minimum of kp.Time and + // timeoutLeft. This will ensure that we wait only for kp.Time + // before sending out the next ping (for cases where the ping is + // acked). + sleepDuration := minTime(t.kp.Time, kpTimeoutLeft) + kpTimeoutLeft -= sleepDuration + kpTimer.Reset(sleepDuration) + case <-t.done: + return + } + } +} + +// Close starts shutting down the http2Server transport. +// TODO(zhaoq): Now the destruction is not blocked on any pending streams. This +// could cause some resource issue. Revisit this later. +func (t *http2Server) Close(err error) { + t.mu.Lock() + if t.state == closing { + t.mu.Unlock() + return + } + if logger.V(logLevel) { + logger.Infof("transport: closing: %v", err) + } + t.state = closing + streams := t.activeStreams + t.activeStreams = nil + t.mu.Unlock() + t.controlBuf.finish() + close(t.done) + if err := t.conn.Close(); err != nil && logger.V(logLevel) { + logger.Infof("transport: error closing conn during Close: %v", err) + } + channelz.RemoveEntry(t.channelzID) + // Cancel all active streams. + for _, s := range streams { + s.cancel() + } + for _, sh := range t.stats { + connEnd := &stats.ConnEnd{} + sh.HandleConn(t.ctx, connEnd) + } +} + +// deleteStream deletes the stream s from transport's active streams. +func (t *http2Server) deleteStream(s *Stream, eosReceived bool) { + + t.mu.Lock() + if _, ok := t.activeStreams[s.id]; ok { + delete(t.activeStreams, s.id) + if len(t.activeStreams) == 0 { + t.idle = time.Now() + } + } + t.mu.Unlock() + + if channelz.IsOn() { + if eosReceived { + atomic.AddInt64(&t.czData.streamsSucceeded, 1) + } else { + atomic.AddInt64(&t.czData.streamsFailed, 1) + } + } +} + +// finishStream closes the stream and puts the trailing headerFrame into controlbuf. +func (t *http2Server) finishStream(s *Stream, rst bool, rstCode http2.ErrCode, hdr *headerFrame, eosReceived bool) { + // In case stream sending and receiving are invoked in separate + // goroutines (e.g., bi-directional streaming), cancel needs to be + // called to interrupt the potential blocking on other goroutines. + s.cancel() + + oldState := s.swapState(streamDone) + if oldState == streamDone { + // If the stream was already done, return. + return + } + + hdr.cleanup = &cleanupStream{ + streamID: s.id, + rst: rst, + rstCode: rstCode, + onWrite: func() { + t.deleteStream(s, eosReceived) + }, + } + t.controlBuf.put(hdr) +} + +// closeStream clears the footprint of a stream when the stream is not needed any more. +func (t *http2Server) closeStream(s *Stream, rst bool, rstCode http2.ErrCode, eosReceived bool) { + // In case stream sending and receiving are invoked in separate + // goroutines (e.g., bi-directional streaming), cancel needs to be + // called to interrupt the potential blocking on other goroutines. + s.cancel() + + s.swapState(streamDone) + t.deleteStream(s, eosReceived) + + t.controlBuf.put(&cleanupStream{ + streamID: s.id, + rst: rst, + rstCode: rstCode, + onWrite: func() {}, + }) +} + +func (t *http2Server) RemoteAddr() net.Addr { + return t.remoteAddr +} + +func (t *http2Server) Drain() { + t.mu.Lock() + defer t.mu.Unlock() + if t.drainEvent != nil { + return + } + t.drainEvent = grpcsync.NewEvent() + t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte{}, headsUp: true}) +} + +var goAwayPing = &ping{data: [8]byte{1, 6, 1, 8, 0, 3, 3, 9}} + +// Handles outgoing GoAway and returns true if loopy needs to put itself +// in draining mode. +func (t *http2Server) outgoingGoAwayHandler(g *goAway) (bool, error) { + t.maxStreamMu.Lock() + t.mu.Lock() + if t.state == closing { // TODO(mmukhi): This seems unnecessary. + t.mu.Unlock() + t.maxStreamMu.Unlock() + // The transport is closing. + return false, ErrConnClosing + } + if !g.headsUp { + // Stop accepting more streams now. + t.state = draining + sid := t.maxStreamID + retErr := g.closeConn + if len(t.activeStreams) == 0 { + retErr = errors.New("second GOAWAY written and no active streams left to process") + } + t.mu.Unlock() + t.maxStreamMu.Unlock() + if err := t.framer.fr.WriteGoAway(sid, g.code, g.debugData); err != nil { + return false, err + } + if retErr != nil { + // Abruptly close the connection following the GoAway (via + // loopywriter). But flush out what's inside the buffer first. + t.framer.writer.Flush() + return false, retErr + } + return true, nil + } + t.mu.Unlock() + t.maxStreamMu.Unlock() + // For a graceful close, send out a GoAway with stream ID of MaxUInt32, + // Follow that with a ping and wait for the ack to come back or a timer + // to expire. During this time accept new streams since they might have + // originated before the GoAway reaches the client. + // After getting the ack or timer expiration send out another GoAway this + // time with an ID of the max stream server intends to process. + if err := t.framer.fr.WriteGoAway(math.MaxUint32, http2.ErrCodeNo, []byte{}); err != nil { + return false, err + } + if err := t.framer.fr.WritePing(false, goAwayPing.data); err != nil { + return false, err + } + go func() { + timer := time.NewTimer(time.Minute) + defer timer.Stop() + select { + case <-t.drainEvent.Done(): + case <-timer.C: + case <-t.done: + return + } + t.controlBuf.put(&goAway{code: g.code, debugData: g.debugData}) + }() + return false, nil +} + +func (t *http2Server) ChannelzMetric() *channelz.SocketInternalMetric { + s := channelz.SocketInternalMetric{ + StreamsStarted: atomic.LoadInt64(&t.czData.streamsStarted), + StreamsSucceeded: atomic.LoadInt64(&t.czData.streamsSucceeded), + StreamsFailed: atomic.LoadInt64(&t.czData.streamsFailed), + MessagesSent: atomic.LoadInt64(&t.czData.msgSent), + MessagesReceived: atomic.LoadInt64(&t.czData.msgRecv), + KeepAlivesSent: atomic.LoadInt64(&t.czData.kpCount), + LastRemoteStreamCreatedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastStreamCreatedTime)), + LastMessageSentTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgSentTime)), + LastMessageReceivedTimestamp: time.Unix(0, atomic.LoadInt64(&t.czData.lastMsgRecvTime)), + LocalFlowControlWindow: int64(t.fc.getSize()), + SocketOptions: channelz.GetSocketOption(t.conn), + LocalAddr: t.localAddr, + RemoteAddr: t.remoteAddr, + // RemoteName : + } + if au, ok := t.authInfo.(credentials.ChannelzSecurityInfo); ok { + s.Security = au.GetSecurityValue() + } + s.RemoteFlowControlWindow = t.getOutFlowWindow() + return &s +} + +func (t *http2Server) IncrMsgSent() { + atomic.AddInt64(&t.czData.msgSent, 1) + atomic.StoreInt64(&t.czData.lastMsgSentTime, time.Now().UnixNano()) +} + +func (t *http2Server) IncrMsgRecv() { + atomic.AddInt64(&t.czData.msgRecv, 1) + atomic.StoreInt64(&t.czData.lastMsgRecvTime, time.Now().UnixNano()) +} + +func (t *http2Server) getOutFlowWindow() int64 { + resp := make(chan uint32, 1) + timer := time.NewTimer(time.Second) + defer timer.Stop() + t.controlBuf.put(&outFlowControlSizeRequest{resp}) + select { + case sz := <-resp: + return int64(sz) + case <-t.done: + return -1 + case <-timer.C: + return -2 + } +} + +func (t *http2Server) getPeer() *peer.Peer { + return &peer.Peer{ + Addr: t.remoteAddr, + AuthInfo: t.authInfo, // Can be nil + } +} + +func getJitter(v time.Duration) time.Duration { + if v == infinity { + return 0 + } + // Generate a jitter between +/- 10% of the value. + r := int64(v / 10) + j := grpcrand.Int63n(2*r) - r + return time.Duration(j) +} + +type connectionKey struct{} + +// GetConnection gets the connection from the context. +func GetConnection(ctx context.Context) net.Conn { + conn, _ := ctx.Value(connectionKey{}).(net.Conn) + return conn +} + +// SetConnection adds the connection to the context to be able to get +// information about the destination ip and port for an incoming RPC. This also +// allows any unary or streaming interceptors to see the connection. +func setConnection(ctx context.Context, conn net.Conn) context.Context { + return context.WithValue(ctx, connectionKey{}, conn) +} diff --git a/vendor/google.golang.org/grpc/internal/transport/http_util.go b/vendor/google.golang.org/grpc/internal/transport/http_util.go new file mode 100644 index 0000000..2c601a8 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/http_util.go @@ -0,0 +1,412 @@ +/* + * + * Copyright 2014 gRPC authors. + * + * 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 transport + +import ( + "bufio" + "encoding/base64" + "fmt" + "io" + "math" + "net" + "net/http" + "net/url" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/proto" + "golang.org/x/net/http2" + "golang.org/x/net/http2/hpack" + spb "google.golang.org/genproto/googleapis/rpc/status" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/status" +) + +const ( + // http2MaxFrameLen specifies the max length of a HTTP2 frame. + http2MaxFrameLen = 16384 // 16KB frame + // https://httpwg.org/specs/rfc7540.html#SettingValues + http2InitHeaderTableSize = 4096 +) + +var ( + clientPreface = []byte(http2.ClientPreface) + http2ErrConvTab = map[http2.ErrCode]codes.Code{ + http2.ErrCodeNo: codes.Internal, + http2.ErrCodeProtocol: codes.Internal, + http2.ErrCodeInternal: codes.Internal, + http2.ErrCodeFlowControl: codes.ResourceExhausted, + http2.ErrCodeSettingsTimeout: codes.Internal, + http2.ErrCodeStreamClosed: codes.Internal, + http2.ErrCodeFrameSize: codes.Internal, + http2.ErrCodeRefusedStream: codes.Unavailable, + http2.ErrCodeCancel: codes.Canceled, + http2.ErrCodeCompression: codes.Internal, + http2.ErrCodeConnect: codes.Internal, + http2.ErrCodeEnhanceYourCalm: codes.ResourceExhausted, + http2.ErrCodeInadequateSecurity: codes.PermissionDenied, + http2.ErrCodeHTTP11Required: codes.Internal, + } + // HTTPStatusConvTab is the HTTP status code to gRPC error code conversion table. + HTTPStatusConvTab = map[int]codes.Code{ + // 400 Bad Request - INTERNAL. + http.StatusBadRequest: codes.Internal, + // 401 Unauthorized - UNAUTHENTICATED. + http.StatusUnauthorized: codes.Unauthenticated, + // 403 Forbidden - PERMISSION_DENIED. + http.StatusForbidden: codes.PermissionDenied, + // 404 Not Found - UNIMPLEMENTED. + http.StatusNotFound: codes.Unimplemented, + // 429 Too Many Requests - UNAVAILABLE. + http.StatusTooManyRequests: codes.Unavailable, + // 502 Bad Gateway - UNAVAILABLE. + http.StatusBadGateway: codes.Unavailable, + // 503 Service Unavailable - UNAVAILABLE. + http.StatusServiceUnavailable: codes.Unavailable, + // 504 Gateway timeout - UNAVAILABLE. + http.StatusGatewayTimeout: codes.Unavailable, + } + logger = grpclog.Component("transport") +) + +// isReservedHeader checks whether hdr belongs to HTTP2 headers +// reserved by gRPC protocol. Any other headers are classified as the +// user-specified metadata. +func isReservedHeader(hdr string) bool { + if hdr != "" && hdr[0] == ':' { + return true + } + switch hdr { + case "content-type", + "user-agent", + "grpc-message-type", + "grpc-encoding", + "grpc-message", + "grpc-status", + "grpc-timeout", + "grpc-status-details-bin", + // Intentionally exclude grpc-previous-rpc-attempts and + // grpc-retry-pushback-ms, which are "reserved", but their API + // intentionally works via metadata. + "te": + return true + default: + return false + } +} + +// isWhitelistedHeader checks whether hdr should be propagated into metadata +// visible to users, even though it is classified as "reserved", above. +func isWhitelistedHeader(hdr string) bool { + switch hdr { + case ":authority", "user-agent": + return true + default: + return false + } +} + +const binHdrSuffix = "-bin" + +func encodeBinHeader(v []byte) string { + return base64.RawStdEncoding.EncodeToString(v) +} + +func decodeBinHeader(v string) ([]byte, error) { + if len(v)%4 == 0 { + // Input was padded, or padding was not necessary. + return base64.StdEncoding.DecodeString(v) + } + return base64.RawStdEncoding.DecodeString(v) +} + +func encodeMetadataHeader(k, v string) string { + if strings.HasSuffix(k, binHdrSuffix) { + return encodeBinHeader(([]byte)(v)) + } + return v +} + +func decodeMetadataHeader(k, v string) (string, error) { + if strings.HasSuffix(k, binHdrSuffix) { + b, err := decodeBinHeader(v) + return string(b), err + } + return v, nil +} + +func decodeGRPCStatusDetails(rawDetails string) (*status.Status, error) { + v, err := decodeBinHeader(rawDetails) + if err != nil { + return nil, err + } + st := &spb.Status{} + if err = proto.Unmarshal(v, st); err != nil { + return nil, err + } + return status.FromProto(st), nil +} + +type timeoutUnit uint8 + +const ( + hour timeoutUnit = 'H' + minute timeoutUnit = 'M' + second timeoutUnit = 'S' + millisecond timeoutUnit = 'm' + microsecond timeoutUnit = 'u' + nanosecond timeoutUnit = 'n' +) + +func timeoutUnitToDuration(u timeoutUnit) (d time.Duration, ok bool) { + switch u { + case hour: + return time.Hour, true + case minute: + return time.Minute, true + case second: + return time.Second, true + case millisecond: + return time.Millisecond, true + case microsecond: + return time.Microsecond, true + case nanosecond: + return time.Nanosecond, true + default: + } + return +} + +func decodeTimeout(s string) (time.Duration, error) { + size := len(s) + if size < 2 { + return 0, fmt.Errorf("transport: timeout string is too short: %q", s) + } + if size > 9 { + // Spec allows for 8 digits plus the unit. + return 0, fmt.Errorf("transport: timeout string is too long: %q", s) + } + unit := timeoutUnit(s[size-1]) + d, ok := timeoutUnitToDuration(unit) + if !ok { + return 0, fmt.Errorf("transport: timeout unit is not recognized: %q", s) + } + t, err := strconv.ParseInt(s[:size-1], 10, 64) + if err != nil { + return 0, err + } + const maxHours = math.MaxInt64 / int64(time.Hour) + if d == time.Hour && t > maxHours { + // This timeout would overflow math.MaxInt64; clamp it. + return time.Duration(math.MaxInt64), nil + } + return d * time.Duration(t), nil +} + +const ( + spaceByte = ' ' + tildeByte = '~' + percentByte = '%' +) + +// encodeGrpcMessage is used to encode status code in header field +// "grpc-message". It does percent encoding and also replaces invalid utf-8 +// characters with Unicode replacement character. +// +// It checks to see if each individual byte in msg is an allowable byte, and +// then either percent encoding or passing it through. When percent encoding, +// the byte is converted into hexadecimal notation with a '%' prepended. +func encodeGrpcMessage(msg string) string { + if msg == "" { + return "" + } + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + c := msg[i] + if !(c >= spaceByte && c <= tildeByte && c != percentByte) { + return encodeGrpcMessageUnchecked(msg) + } + } + return msg +} + +func encodeGrpcMessageUnchecked(msg string) string { + var sb strings.Builder + for len(msg) > 0 { + r, size := utf8.DecodeRuneInString(msg) + for _, b := range []byte(string(r)) { + if size > 1 { + // If size > 1, r is not ascii. Always do percent encoding. + fmt.Fprintf(&sb, "%%%02X", b) + continue + } + + // The for loop is necessary even if size == 1. r could be + // utf8.RuneError. + // + // fmt.Sprintf("%%%02X", utf8.RuneError) gives "%FFFD". + if b >= spaceByte && b <= tildeByte && b != percentByte { + sb.WriteByte(b) + } else { + fmt.Fprintf(&sb, "%%%02X", b) + } + } + msg = msg[size:] + } + return sb.String() +} + +// decodeGrpcMessage decodes the msg encoded by encodeGrpcMessage. +func decodeGrpcMessage(msg string) string { + if msg == "" { + return "" + } + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + if msg[i] == percentByte && i+2 < lenMsg { + return decodeGrpcMessageUnchecked(msg) + } + } + return msg +} + +func decodeGrpcMessageUnchecked(msg string) string { + var sb strings.Builder + lenMsg := len(msg) + for i := 0; i < lenMsg; i++ { + c := msg[i] + if c == percentByte && i+2 < lenMsg { + parsed, err := strconv.ParseUint(msg[i+1:i+3], 16, 8) + if err != nil { + sb.WriteByte(c) + } else { + sb.WriteByte(byte(parsed)) + i += 2 + } + } else { + sb.WriteByte(c) + } + } + return sb.String() +} + +type bufWriter struct { + buf []byte + offset int + batchSize int + conn net.Conn + err error +} + +func newBufWriter(conn net.Conn, batchSize int) *bufWriter { + return &bufWriter{ + buf: make([]byte, batchSize*2), + batchSize: batchSize, + conn: conn, + } +} + +func (w *bufWriter) Write(b []byte) (n int, err error) { + if w.err != nil { + return 0, w.err + } + if w.batchSize == 0 { // Buffer has been disabled. + return w.conn.Write(b) + } + for len(b) > 0 { + nn := copy(w.buf[w.offset:], b) + b = b[nn:] + w.offset += nn + n += nn + if w.offset >= w.batchSize { + err = w.Flush() + } + } + return n, err +} + +func (w *bufWriter) Flush() error { + if w.err != nil { + return w.err + } + if w.offset == 0 { + return nil + } + _, w.err = w.conn.Write(w.buf[:w.offset]) + w.offset = 0 + return w.err +} + +type framer struct { + writer *bufWriter + fr *http2.Framer +} + +func newFramer(conn net.Conn, writeBufferSize, readBufferSize int, maxHeaderListSize uint32) *framer { + if writeBufferSize < 0 { + writeBufferSize = 0 + } + var r io.Reader = conn + if readBufferSize > 0 { + r = bufio.NewReaderSize(r, readBufferSize) + } + w := newBufWriter(conn, writeBufferSize) + f := &framer{ + writer: w, + fr: http2.NewFramer(w, r), + } + f.fr.SetMaxReadFrameSize(http2MaxFrameLen) + // Opt-in to Frame reuse API on framer to reduce garbage. + // Frames aren't safe to read from after a subsequent call to ReadFrame. + f.fr.SetReuseFrames() + f.fr.MaxHeaderListSize = maxHeaderListSize + f.fr.ReadMetaHeaders = hpack.NewDecoder(http2InitHeaderTableSize, nil) + return f +} + +// parseDialTarget returns the network and address to pass to dialer. +func parseDialTarget(target string) (string, string) { + net := "tcp" + m1 := strings.Index(target, ":") + m2 := strings.Index(target, ":/") + // handle unix:addr which will fail with url.Parse + if m1 >= 0 && m2 < 0 { + if n := target[0:m1]; n == "unix" { + return n, target[m1+1:] + } + } + if m2 >= 0 { + t, err := url.Parse(target) + if err != nil { + return net, target + } + scheme := t.Scheme + addr := t.Path + if scheme == "unix" { + if addr == "" { + addr = t.Host + } + return scheme, addr + } + } + return net, target +} diff --git a/vendor/google.golang.org/grpc/internal/transport/networktype/networktype.go b/vendor/google.golang.org/grpc/internal/transport/networktype/networktype.go new file mode 100644 index 0000000..c11b527 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/transport/networktype/networktype.go @@ -0,0 +1,46 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * 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 networktype declares the network type to be used in the default +// dialer. Attribute of a resolver.Address. +package networktype + +import ( + "google.golang.org/grpc/resolver" +) + +// keyType is the key to use for storing State in Attributes. +type keyType string + +const key = keyType("grpc.internal.transport.networktype") + +// Set returns a copy of the provided address with attributes containing networkType. +func Set(address resolver.Address, networkType string) resolver.Address { + address.Attributes = address.Attributes.WithValue(key, networkType) + return address +} + +// Get returns the network type in the resolver.Address and true, or "", false +// if not present. +func Get(address resolver.Address) (string, bool) { + v := address.Attributes.Value(key) + if v == nil { + return "", false + } + return v.(string), true +} diff --git a/vendor/google.golang.org/grpc/proxy.go b/vendor/google.golang.org/grpc/internal/transport/proxy.go similarity index 60% rename from vendor/google.golang.org/grpc/proxy.go rename to vendor/google.golang.org/grpc/internal/transport/proxy.go index 2d40236..4159619 100644 --- a/vendor/google.golang.org/grpc/proxy.go +++ b/vendor/google.golang.org/grpc/internal/transport/proxy.go @@ -16,29 +16,28 @@ * */ -package grpc +package transport import ( "bufio" - "errors" + "context" + "encoding/base64" "fmt" "io" "net" "net/http" "net/http/httputil" "net/url" - - "golang.org/x/net/context" ) +const proxyAuthHeaderKey = "Proxy-Authorization" + var ( - // errDisabled indicates that proxy is disabled for the address. - errDisabled = errors.New("proxy is disabled for the address") // The following variable will be overwritten in the tests. httpProxyFromEnvironment = http.ProxyFromEnvironment ) -func mapAddress(ctx context.Context, address string) (string, error) { +func mapAddress(address string) (*url.URL, error) { req := &http.Request{ URL: &url.URL{ Scheme: "https", @@ -47,12 +46,9 @@ func mapAddress(ctx context.Context, address string) (string, error) { } url, err := httpProxyFromEnvironment(req) if err != nil { - return "", err - } - if url == nil { - return "", errDisabled + return nil, err } - return url.Host, nil + return url, nil } // To read a response from a net.Conn, http.ReadResponse() takes a bufio.Reader. @@ -69,18 +65,28 @@ func (c *bufConn) Read(b []byte) (int, error) { return c.r.Read(b) } -func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr string) (_ net.Conn, err error) { +func basicAuth(username, password string) string { + auth := username + ":" + password + return base64.StdEncoding.EncodeToString([]byte(auth)) +} + +func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, backendAddr string, proxyURL *url.URL, grpcUA string) (_ net.Conn, err error) { defer func() { if err != nil { conn.Close() } }() - req := (&http.Request{ + req := &http.Request{ Method: http.MethodConnect, - URL: &url.URL{Host: addr}, + URL: &url.URL{Host: backendAddr}, Header: map[string][]string{"User-Agent": {grpcUA}}, - }) + } + if t := proxyURL.User; t != nil { + u := t.Username() + p, _ := t.Password() + req.Header.Add(proxyAuthHeaderKey, "Basic "+basicAuth(u, p)) + } if err := sendHTTPRequest(ctx, req, conn); err != nil { return nil, fmt.Errorf("failed to write the HTTP request: %v", err) @@ -103,28 +109,34 @@ func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr string) (_ return &bufConn{Conn: conn, r: r}, nil } -// newProxyDialer returns a dialer that connects to proxy first if necessary. -// The returned dialer checks if a proxy is necessary, dial to the proxy with the -// provided dialer, does HTTP CONNECT handshake and returns the connection. -func newProxyDialer(dialer func(context.Context, string) (net.Conn, error)) func(context.Context, string) (net.Conn, error) { - return func(ctx context.Context, addr string) (conn net.Conn, err error) { - var skipHandshake bool - newAddr, err := mapAddress(ctx, addr) - if err != nil { - if err != errDisabled { - return nil, err - } - skipHandshake = true - newAddr = addr - } +// proxyDial dials, connecting to a proxy first if necessary. Checks if a proxy +// is necessary, dials, does the HTTP CONNECT handshake, and returns the +// connection. +func proxyDial(ctx context.Context, addr string, grpcUA string) (conn net.Conn, err error) { + newAddr := addr + proxyURL, err := mapAddress(addr) + if err != nil { + return nil, err + } + if proxyURL != nil { + newAddr = proxyURL.Host + } - conn, err = dialer(ctx, newAddr) - if err != nil { - return - } - if !skipHandshake { - conn, err = doHTTPConnectHandshake(ctx, conn, addr) - } + conn, err = (&net.Dialer{}).DialContext(ctx, "tcp", newAddr) + if err != nil { return } + if proxyURL != nil { + // proxy is disabled if proxyURL is nil. + conn, err = doHTTPConnectHandshake(ctx, conn, addr, proxyURL, grpcUA) + } + return +} + +func sendHTTPRequest(ctx context.Context, req *http.Request, conn net.Conn) error { + req = req.WithContext(ctx) + if err := req.Write(conn); err != nil { + return fmt.Errorf("failed to write the HTTP request: %v", err) + } + return nil } diff --git a/vendor/google.golang.org/grpc/transport/transport.go b/vendor/google.golang.org/grpc/internal/transport/transport.go similarity index 57% rename from vendor/google.golang.org/grpc/transport/transport.go rename to vendor/google.golang.org/grpc/internal/transport/transport.go index e0c1e34..0ac77ea 100644 --- a/vendor/google.golang.org/grpc/transport/transport.go +++ b/vendor/google.golang.org/grpc/internal/transport/transport.go @@ -19,29 +19,62 @@ // Package transport defines and implements message oriented communication // channel to complete various transactions (e.g., an RPC). It is meant for // grpc-internal usage and is not intended to be imported directly by users. -package transport // import "google.golang.org/grpc/transport" +package transport import ( + "bytes" + "context" + "errors" "fmt" "io" "net" "sync" + "sync/atomic" + "time" - "golang.org/x/net/context" - "golang.org/x/net/http2" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/keepalive" "google.golang.org/grpc/metadata" + "google.golang.org/grpc/resolver" "google.golang.org/grpc/stats" "google.golang.org/grpc/status" "google.golang.org/grpc/tap" ) +// ErrNoHeaders is used as a signal that a trailers only response was received, +// and is not a real error. +var ErrNoHeaders = errors.New("stream has no headers") + +const logLevel = 2 + +type bufferPool struct { + pool sync.Pool +} + +func newBufferPool() *bufferPool { + return &bufferPool{ + pool: sync.Pool{ + New: func() interface{} { + return new(bytes.Buffer) + }, + }, + } +} + +func (p *bufferPool) get() *bytes.Buffer { + return p.pool.Get().(*bytes.Buffer) +} + +func (p *bufferPool) put(b *bytes.Buffer) { + p.pool.Put(b) +} + // recvMsg represents the received msg from the transport. All transport // protocol specific info has been removed. type recvMsg struct { - data []byte + buffer *bytes.Buffer // nil: received some data // io.EOF: stream is completed. data is nil. // other non-nil error: transport failure. data is nil. @@ -49,14 +82,16 @@ type recvMsg struct { } // recvBuffer is an unbounded channel of recvMsg structs. -// Note recvBuffer differs from controlBuffer only in that recvBuffer -// holds a channel of only recvMsg structs instead of objects implementing "item" interface. -// recvBuffer is written to much more often than -// controlBuffer and using strict recvMsg structs helps avoid allocation in "recvBuffer.put" +// +// Note: recvBuffer differs from buffer.Unbounded only in the fact that it +// holds a channel of recvMsg structs instead of objects implementing "item" +// interface. recvBuffer is written to much more often and using strict recvMsg +// structs helps avoid allocation in "recvBuffer.put" type recvBuffer struct { c chan recvMsg mu sync.Mutex backlog []recvMsg + err error } func newRecvBuffer() *recvBuffer { @@ -68,6 +103,13 @@ func newRecvBuffer() *recvBuffer { func (b *recvBuffer) put(r recvMsg) { b.mu.Lock() + if b.err != nil { + b.mu.Unlock() + // An error had occurred earlier, don't accept more + // data or errors. + return + } + b.err = r.err if len(b.backlog) == 0 { select { case b.c <- r: @@ -104,11 +146,13 @@ func (b *recvBuffer) get() <-chan recvMsg { // recvBufferReader implements io.Reader interface to read the data from // recvBuffer. type recvBufferReader struct { - ctx context.Context - goAway chan struct{} - recv *recvBuffer - last []byte // Stores the remaining data in the previous calls. - err error + closeStream func(error) // Closes the client transport stream with the given error and nil trailer metadata. + ctx context.Context + ctxDone <-chan struct{} // cache of ctx.Done() (for performance). + recv *recvBuffer + last *bytes.Buffer // Stores the remaining data in the previous calls. + err error + freeBuffer func(*bytes.Buffer) } // Read reads the next len(p) bytes from last. If last is drained, it tries to @@ -118,88 +162,75 @@ func (r *recvBufferReader) Read(p []byte) (n int, err error) { if r.err != nil { return 0, r.err } - n, r.err = r.read(p) + if r.last != nil { + // Read remaining data left in last call. + copied, _ := r.last.Read(p) + if r.last.Len() == 0 { + r.freeBuffer(r.last) + r.last = nil + } + return copied, nil + } + if r.closeStream != nil { + n, r.err = r.readClient(p) + } else { + n, r.err = r.read(p) + } return n, r.err } func (r *recvBufferReader) read(p []byte) (n int, err error) { - if r.last != nil && len(r.last) > 0 { - // Read remaining data left in last call. - copied := copy(p, r.last) - r.last = r.last[copied:] - return copied, nil - } select { - case <-r.ctx.Done(): + case <-r.ctxDone: return 0, ContextErr(r.ctx.Err()) - case <-r.goAway: - return 0, errStreamDrain case m := <-r.recv.get(): - r.recv.load() - if m.err != nil { - return 0, m.err - } - copied := copy(p, m.data) - r.last = m.data[copied:] - return copied, nil + return r.readAdditional(m, p) } } -// All items in an out of a controlBuffer should be the same type. -type item interface { - item() -} - -// controlBuffer is an unbounded channel of item. -type controlBuffer struct { - c chan item - mu sync.Mutex - backlog []item -} - -func newControlBuffer() *controlBuffer { - b := &controlBuffer{ - c: make(chan item, 1), +func (r *recvBufferReader) readClient(p []byte) (n int, err error) { + // If the context is canceled, then closes the stream with nil metadata. + // closeStream writes its error parameter to r.recv as a recvMsg. + // r.readAdditional acts on that message and returns the necessary error. + select { + case <-r.ctxDone: + // Note that this adds the ctx error to the end of recv buffer, and + // reads from the head. This will delay the error until recv buffer is + // empty, thus will delay ctx cancellation in Recv(). + // + // It's done this way to fix a race between ctx cancel and trailer. The + // race was, stream.Recv() may return ctx error if ctxDone wins the + // race, but stream.Trailer() may return a non-nil md because the stream + // was not marked as done when trailer is received. This closeStream + // call will mark stream as done, thus fix the race. + // + // TODO: delaying ctx error seems like a unnecessary side effect. What + // we really want is to mark the stream as done, and return ctx error + // faster. + r.closeStream(ContextErr(r.ctx.Err())) + m := <-r.recv.get() + return r.readAdditional(m, p) + case m := <-r.recv.get(): + return r.readAdditional(m, p) } - return b } -func (b *controlBuffer) put(r item) { - b.mu.Lock() - if len(b.backlog) == 0 { - select { - case b.c <- r: - b.mu.Unlock() - return - default: - } +func (r *recvBufferReader) readAdditional(m recvMsg, p []byte) (n int, err error) { + r.recv.load() + if m.err != nil { + return 0, m.err } - b.backlog = append(b.backlog, r) - b.mu.Unlock() -} - -func (b *controlBuffer) load() { - b.mu.Lock() - if len(b.backlog) > 0 { - select { - case b.c <- b.backlog[0]: - b.backlog[0] = nil - b.backlog = b.backlog[1:] - default: - } + copied, _ := m.buffer.Read(p) + if m.buffer.Len() == 0 { + r.freeBuffer(m.buffer) + r.last = nil + } else { + r.last = m.buffer } - b.mu.Unlock() -} - -// get returns the channel that receives an item in the buffer. -// -// Upon receipt of an item, the caller should call load to send another -// item onto the channel if there is any. -func (b *controlBuffer) get() <-chan item { - return b.c + return copied, nil } -type streamState uint8 +type streamState uint32 const ( streamActive streamState = iota @@ -212,69 +243,104 @@ const ( type Stream struct { id uint32 st ServerTransport // nil for client side Stream + ct *http2Client // nil for server side Stream ctx context.Context // the associated context of the stream cancel context.CancelFunc // always nil for client side Stream - done chan struct{} // closed when the final status arrives - goAway chan struct{} // closed when a GOAWAY control message is received + done chan struct{} // closed at the end of stream to unblock writers. On the client side. + doneFunc func() // invoked at the end of stream on client side. + ctxDone <-chan struct{} // same as done chan but for server side. Cache of ctx.Done() (for performance) method string // the associated RPC method of the stream recvCompress string sendCompress string buf *recvBuffer trReader io.Reader fc *inFlow - recvQuota uint32 - waiters waiters + wq *writeQuota // Callback to state application's intentions to read data. This // is used to adjust flow control, if needed. requestRead func(int) - sendQuotaPool *quotaPool - headerChan chan struct{} // closed to indicate the end of header metadata. - headerDone bool // set when headerChan is closed. Used to avoid closing headerChan multiple times. - header metadata.MD // the received header metadata. - trailer metadata.MD // the key-value map of trailer metadata. + headerChan chan struct{} // closed to indicate the end of header metadata. + headerChanClosed uint32 // set when headerChan is closed. Used to avoid closing headerChan multiple times. + // headerValid indicates whether a valid header was received. Only + // meaningful after headerChan is closed (always call waitOnHeader() before + // reading its value). Not valid on server side. + headerValid bool - mu sync.RWMutex // guard the following - headerOk bool // becomes true from the first header is about to send - state streamState + // hdrMu protects header and trailer metadata on the server-side. + hdrMu sync.Mutex + // On client side, header keeps the received header metadata. + // + // On server side, header keeps the header set by SetHeader(). The complete + // header will merged into this after t.WriteHeader() is called. + header metadata.MD + trailer metadata.MD // the key-value map of trailer metadata. - status *status.Status // the status error received from the server + noHeaders bool // set if the client never received headers (set only after the stream is done). - rstStream bool // indicates whether a RST_STREAM frame needs to be sent - rstError http2.ErrCode // the error that needs to be sent along with the RST_STREAM frame + // On the server-side, headerSent is atomically set to 1 when the headers are sent out. + headerSent uint32 - bytesReceived bool // indicates whether any bytes have been received on this stream - unprocessed bool // set if the server sends a refused stream or GOAWAY including this stream + state streamState + + // On client-side it is the status error received from the server. + // On server-side it is unused. + status *status.Status + + bytesReceived uint32 // indicates whether any bytes have been received on this stream + unprocessed uint32 // set if the server sends a refused stream or GOAWAY including this stream // contentSubtype is the content-subtype for requests. // this must be lowercase or the behavior is undefined. contentSubtype string } -func (s *Stream) waitOnHeader() error { +// isHeaderSent is only valid on the server-side. +func (s *Stream) isHeaderSent() bool { + return atomic.LoadUint32(&s.headerSent) == 1 +} + +// updateHeaderSent updates headerSent and returns true +// if it was alreay set. It is valid only on server-side. +func (s *Stream) updateHeaderSent() bool { + return atomic.SwapUint32(&s.headerSent, 1) == 1 +} + +func (s *Stream) swapState(st streamState) streamState { + return streamState(atomic.SwapUint32((*uint32)(&s.state), uint32(st))) +} + +func (s *Stream) compareAndSwapState(oldState, newState streamState) bool { + return atomic.CompareAndSwapUint32((*uint32)(&s.state), uint32(oldState), uint32(newState)) +} + +func (s *Stream) getState() streamState { + return streamState(atomic.LoadUint32((*uint32)(&s.state))) +} + +func (s *Stream) waitOnHeader() { if s.headerChan == nil { // On the server headerChan is always nil since a stream originates // only after having received headers. - return nil + return } - wc := s.waiters select { - case <-wc.ctx.Done(): - return ContextErr(wc.ctx.Err()) - case <-wc.goAway: - return errStreamDrain + case <-s.ctx.Done(): + // Close the stream to prevent headers/trailers from changing after + // this function returns. + s.ct.CloseStream(s, ContextErr(s.ctx.Err())) + // headerChan could possibly not be closed yet if closeStream raced + // with operateHeaders; wait until it is closed explicitly here. + <-s.headerChan case <-s.headerChan: - return nil } } // RecvCompress returns the compression algorithm applied to the inbound // message. It is empty string if there is no compression applied. func (s *Stream) RecvCompress() string { - if err := s.waitOnHeader(); err != nil { - return "" - } + s.waitOnHeader() return s.recvCompress } @@ -283,48 +349,57 @@ func (s *Stream) SetSendCompress(str string) { s.sendCompress = str } -// Done returns a chanel which is closed when it receives the final status +// Done returns a channel which is closed when it receives the final status // from the server. func (s *Stream) Done() <-chan struct{} { return s.done } -// GoAway returns a channel which is closed when the server sent GoAways signal -// before this stream was initiated. -func (s *Stream) GoAway() <-chan struct{} { - return s.goAway -} - -// Header acquires the key-value pairs of header metadata once it -// is available. It blocks until i) the metadata is ready or ii) there is no -// header metadata or iii) the stream is canceled/expired. +// Header returns the header metadata of the stream. +// +// On client side, it acquires the key-value pairs of header metadata once it is +// available. It blocks until i) the metadata is ready or ii) there is no header +// metadata or iii) the stream is canceled/expired. +// +// On server side, it returns the out header after t.WriteHeader is called. It +// does not block and must not be called until after WriteHeader. func (s *Stream) Header() (metadata.MD, error) { - err := s.waitOnHeader() - // Even if the stream is closed, header is returned if available. - select { - case <-s.headerChan: + if s.headerChan == nil { + // On server side, return the header in stream. It will be the out + // header after t.WriteHeader is called. return s.header.Copy(), nil - default: } - return nil, err + s.waitOnHeader() + + if !s.headerValid { + return nil, s.status.Err() + } + + if s.noHeaders { + return nil, ErrNoHeaders + } + + return s.header.Copy(), nil +} + +// TrailersOnly blocks until a header or trailers-only frame is received and +// then returns true if the stream was trailers-only. If the stream ends +// before headers are received, returns true, nil. Client-side only. +func (s *Stream) TrailersOnly() bool { + s.waitOnHeader() + return s.noHeaders } // Trailer returns the cached trailer metedata. Note that if it is not called // after the entire stream is done, it could return an empty MD. Client // side only. +// It can be safely read only after stream has ended that is either read +// or write have returned io.EOF. func (s *Stream) Trailer() metadata.MD { - s.mu.RLock() c := s.trailer.Copy() - s.mu.RUnlock() return c } -// ServerTransport returns the underlying ServerTransport for the stream. -// The client side stream always returns nil. -func (s *Stream) ServerTransport() ServerTransport { - return s.st -} - // ContentSubtype returns the content-subtype for a request. For example, a // content-subtype of "proto" will result in a content-type of // "application/grpc+proto". This will always be lowercase. See @@ -345,24 +420,25 @@ func (s *Stream) Method() string { } // Status returns the status received from the server. +// Status can be read safely only after the stream has ended, +// that is, after Done() is closed. func (s *Stream) Status() *status.Status { return s.status } // SetHeader sets the header metadata. This can be called multiple times. // Server side only. +// This should not be called in parallel to other data writes. func (s *Stream) SetHeader(md metadata.MD) error { - s.mu.Lock() - if s.headerOk || s.state == streamDone { - s.mu.Unlock() - return ErrIllegalHeaderWrite - } if md.Len() == 0 { - s.mu.Unlock() return nil } + if s.isHeaderSent() || s.getState() == streamDone { + return ErrIllegalHeaderWrite + } + s.hdrMu.Lock() s.header = metadata.Join(s.header, md) - s.mu.Unlock() + s.hdrMu.Unlock() return nil } @@ -370,19 +446,22 @@ func (s *Stream) SetHeader(md metadata.MD) error { // combined with any metadata set by previous calls to SetHeader and // then written to the transport stream. func (s *Stream) SendHeader(md metadata.MD) error { - t := s.ServerTransport() - return t.WriteHeader(s, md) + return s.st.WriteHeader(s, md) } // SetTrailer sets the trailer metadata which will be sent with the RPC status // by the server. This can be called multiple times. Server side only. +// This should not be called parallel to other data writes. func (s *Stream) SetTrailer(md metadata.MD) error { if md.Len() == 0 { return nil } - s.mu.Lock() + if s.getState() == streamDone { + return ErrIllegalHeaderWrite + } + s.hdrMu.Lock() s.trailer = metadata.Join(s.trailer, md) - s.mu.Unlock() + s.hdrMu.Unlock() return nil } @@ -422,29 +501,15 @@ func (t *transportReader) Read(p []byte) (n int, err error) { return } -// finish sets the stream's state and status, and closes the done channel. -// s.mu must be held by the caller. st must always be non-nil. -func (s *Stream) finish(st *status.Status) { - s.status = st - s.state = streamDone - close(s.done) -} - // BytesReceived indicates whether any bytes have been received on this stream. func (s *Stream) BytesReceived() bool { - s.mu.Lock() - br := s.bytesReceived - s.mu.Unlock() - return br + return atomic.LoadUint32(&s.bytesReceived) == 1 } // Unprocessed indicates whether the server did not process this stream -- // i.e. it sent a refused stream or GOAWAY including this stream ID. func (s *Stream) Unprocessed() bool { - s.mu.Lock() - br := s.unprocessed - s.mu.Unlock() - return br + return atomic.LoadUint32(&s.unprocessed) == 1 } // GoString is implemented by Stream so context.String() won't @@ -465,42 +530,41 @@ const ( // ServerConfig consists of all the configurations to establish a server transport. type ServerConfig struct { MaxStreams uint32 - AuthInfo credentials.AuthInfo + ConnectionTimeout time.Duration + Credentials credentials.TransportCredentials InTapHandle tap.ServerInHandle - StatsHandler stats.Handler + StatsHandlers []stats.Handler KeepaliveParams keepalive.ServerParameters KeepalivePolicy keepalive.EnforcementPolicy InitialWindowSize int32 InitialConnWindowSize int32 WriteBufferSize int ReadBufferSize int -} - -// NewServerTransport creates a ServerTransport with conn or non-nil error -// if it fails. -func NewServerTransport(protocol string, conn net.Conn, config *ServerConfig) (ServerTransport, error) { - return newHTTP2Server(conn, config) + ChannelzParentID *channelz.Identifier + MaxHeaderListSize *uint32 + HeaderTableSize *uint32 } // ConnectOptions covers all relevant options for communicating with the server. type ConnectOptions struct { // UserAgent is the application user agent. UserAgent string - // Authority is the :authority pseudo-header to use. This field has no effect if - // TransportCredentials is set. - Authority string // Dialer specifies how to dial a network address. Dialer func(context.Context, string) (net.Conn, error) // FailOnNonTempDialError specifies if gRPC fails on non-temporary dial errors. FailOnNonTempDialError bool // PerRPCCredentials stores the PerRPCCredentials required to issue RPCs. PerRPCCredentials []credentials.PerRPCCredentials - // TransportCredentials stores the Authenticator required to setup a client connection. + // TransportCredentials stores the Authenticator required to setup a client + // connection. Only one of TransportCredentials and CredsBundle is non-nil. TransportCredentials credentials.TransportCredentials + // CredsBundle is the credentials bundle to be used. Only one of + // TransportCredentials and CredsBundle is non-nil. + CredsBundle credentials.Bundle // KeepaliveParams stores the keepalive parameters. KeepaliveParams keepalive.ClientParameters - // StatsHandler stores the handler for stats. - StatsHandler stats.Handler + // StatsHandlers stores the handler for stats. + StatsHandlers []stats.Handler // InitialWindowSize sets the initial window size for a stream. InitialWindowSize int32 // InitialConnWindowSize sets the initial window size for a connection. @@ -509,19 +573,18 @@ type ConnectOptions struct { WriteBufferSize int // ReadBufferSize sets the size of read buffer, which in turn determines how much data can be read at most for one read syscall. ReadBufferSize int -} - -// TargetInfo contains the information of the target such as network address and metadata. -type TargetInfo struct { - Addr string - Metadata interface{} - Authority string + // ChannelzParentID sets the addrConn id which initiate the creation of this client transport. + ChannelzParentID *channelz.Identifier + // MaxHeaderListSize sets the max (uncompressed) size of header list that is prepared to be received. + MaxHeaderListSize *uint32 + // UseProxy specifies if a proxy should be used. + UseProxy bool } // NewClientTransport establishes the transport with the required ConnectOptions // and returns it to the caller. -func NewClientTransport(connectCtx, ctx context.Context, target TargetInfo, opts ConnectOptions, onSuccess func()) (ClientTransport, error) { - return newHTTP2Client(connectCtx, ctx, target, opts, onSuccess) +func NewClientTransport(connectCtx, ctx context.Context, addr resolver.Address, opts ConnectOptions, onClose func(GoAwayReason)) (ClientTransport, error) { + return newHTTP2Client(connectCtx, ctx, addr, opts, onClose) } // Options provides additional hints and information for message @@ -530,11 +593,6 @@ type Options struct { // Last indicates whether this write is the last piece for // this stream. Last bool - - // Delay is a hint to the transport implementation for whether - // the data could be buffered for a batching write. The - // transport implementation may ignore the hint. - Delay bool } // CallHdr carries the information of a particular RPC. @@ -552,14 +610,6 @@ type CallHdr struct { // Creds specifies credentials.PerRPCCredentials for a call. Creds credentials.PerRPCCredentials - // Flush indicates whether a new stream command should be sent - // to the peer without waiting for the first data. This is - // only a hint. - // If it's true, the transport may modify the flush decision - // for performance purposes. - // If it's false, new stream will never be flushed. - Flush bool - // ContentSubtype specifies the content-subtype for a request. For example, a // content-subtype of "proto" will result in a content-type of // "application/grpc+proto". The value of ContentSubtype must be all @@ -567,6 +617,10 @@ type CallHdr struct { // https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests // for more details. ContentSubtype string + + PreviousAttempts int // value of grpc-previous-rpc-attempts header to set + + DoneFunc func() // called when the stream is finished } // ClientTransport is the common interface for all gRPC client-side transport @@ -575,11 +629,14 @@ type ClientTransport interface { // Close tears down this transport. Once it returns, the transport // should not be accessed any more. The caller must make sure this // is called only once. - Close() error + Close(err error) - // GracefulClose starts to tear down the transport. It stops accepting - // new RPCs and wait the completion of the pending RPCs. - GracefulClose() error + // GracefulClose starts to tear down the transport: the transport will stop + // accepting new RPCs and NewStream will return error. Once all streams are + // finished, the transport will close. + // + // It does not block. + GracefulClose() // Write sends the data for the given stream. A nil stream indicates // the write is to be performed on the transport as a whole. @@ -606,8 +663,18 @@ type ClientTransport interface { // HTTP/2). GoAway() <-chan struct{} - // GetGoAwayReason returns the reason why GoAway frame was received. - GetGoAwayReason() GoAwayReason + // GetGoAwayReason returns the reason why GoAway frame was received, along + // with a human readable string with debug info. + GetGoAwayReason() (GoAwayReason, string) + + // RemoteAddr returns the remote network address. + RemoteAddr() net.Addr + + // IncrMsgSent increments the number of message sent through this transport. + IncrMsgSent() + + // IncrMsgRecv increments the number of message received through this transport. + IncrMsgRecv() } // ServerTransport is the common interface for all gRPC server-side transport @@ -634,21 +701,19 @@ type ServerTransport interface { // Close tears down the transport. Once it is called, the transport // should not be accessed any more. All the pending streams and their // handlers will be terminated asynchronously. - Close() error + Close(err error) // RemoteAddr returns the remote network address. RemoteAddr() net.Addr // Drain notifies the client this ServerTransport stops accepting new RPCs. Drain() -} -// streamErrorf creates an StreamError with the specified error code and description. -func streamErrorf(c codes.Code, format string, a ...interface{}) StreamError { - return StreamError{ - Code: c, - Desc: fmt.Sprintf(format, a...), - } + // IncrMsgSent increments the number of message sent through this transport. + IncrMsgSent() + + // IncrMsgRecv increments the number of message received through this transport. + IncrMsgRecv() } // connectionErrorf creates an ConnectionError with the specified error description. @@ -687,39 +752,27 @@ func (e ConnectionError) Origin() error { return e.err } +// Unwrap returns the original error of this connection error or nil when the +// origin is nil. +func (e ConnectionError) Unwrap() error { + return e.err +} + var ( // ErrConnClosing indicates that the transport is closing. ErrConnClosing = connectionErrorf(true, nil, "transport is closing") // errStreamDrain indicates that the stream is rejected because the // connection is draining. This could be caused by goaway or balancer // removing the address. - errStreamDrain = streamErrorf(codes.Unavailable, "the connection is draining") + errStreamDrain = status.Error(codes.Unavailable, "the connection is draining") + // errStreamDone is returned from write at the client side to indiacte application + // layer of an error. + errStreamDone = errors.New("the stream is done") // StatusGoAway indicates that the server sent a GOAWAY that included this // stream's ID in unprocessed RPCs. statusGoAway = status.New(codes.Unavailable, "the stream is rejected because server is draining the connection") ) -// TODO: See if we can replace StreamError with status package errors. - -// StreamError is an error that only affects one stream within a connection. -type StreamError struct { - Code codes.Code - Desc string -} - -func (e StreamError) Error() string { - return fmt.Sprintf("stream error: code = %s desc = %q", e.Code, e.Desc) -} - -// waiters are passed to quotaPool get methods to -// wait on in addition to waiting on quota. -type waiters struct { - ctx context.Context - tctx context.Context - done chan struct{} - goAway chan struct{} -} - // GoAwayReason contains the reason for the GoAway frame received. type GoAwayReason uint8 @@ -734,38 +787,37 @@ const ( GoAwayTooManyPings GoAwayReason = 2 ) -// loopyWriter is run in a separate go routine. It is the single code path that will -// write data on wire. -func loopyWriter(ctx context.Context, cbuf *controlBuffer, handler func(item) error) { - for { - select { - case i := <-cbuf.get(): - cbuf.load() - if err := handler(i); err != nil { - errorf("transport: Error while handling item. Err: %v", err) - return - } - case <-ctx.Done(): - return - } - hasData: - for { - select { - case i := <-cbuf.get(): - cbuf.load() - if err := handler(i); err != nil { - errorf("transport: Error while handling item. Err: %v", err) - return - } - case <-ctx.Done(): - return - default: - if err := handler(&flushIO{}); err != nil { - errorf("transport: Error while flushing. Err: %v", err) - return - } - break hasData - } - } +// channelzData is used to store channelz related data for http2Client and http2Server. +// These fields cannot be embedded in the original structs (e.g. http2Client), since to do atomic +// operation on int64 variable on 32-bit machine, user is responsible to enforce memory alignment. +// Here, by grouping those int64 fields inside a struct, we are enforcing the alignment. +type channelzData struct { + kpCount int64 + // The number of streams that have started, including already finished ones. + streamsStarted int64 + // Client side: The number of streams that have ended successfully by receiving + // EoS bit set frame from server. + // Server side: The number of streams that have ended successfully by sending + // frame with EoS bit set. + streamsSucceeded int64 + streamsFailed int64 + // lastStreamCreatedTime stores the timestamp that the last stream gets created. It is of int64 type + // instead of time.Time since it's more costly to atomically update time.Time variable than int64 + // variable. The same goes for lastMsgSentTime and lastMsgRecvTime. + lastStreamCreatedTime int64 + msgSent int64 + msgRecv int64 + lastMsgSentTime int64 + lastMsgRecvTime int64 +} + +// ContextErr converts the error from context package into a status error. +func ContextErr(err error) error { + switch err { + case context.DeadlineExceeded: + return status.Error(codes.DeadlineExceeded, err.Error()) + case context.Canceled: + return status.Error(codes.Canceled, err.Error()) } + return status.Errorf(codes.Internal, "Unexpected error from context packet: %v", err) } diff --git a/vendor/google.golang.org/grpc/internal/xds_handshake_cluster.go b/vendor/google.golang.org/grpc/internal/xds_handshake_cluster.go new file mode 100644 index 0000000..e8b4927 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/xds_handshake_cluster.go @@ -0,0 +1,40 @@ +/* + * Copyright 2021 gRPC authors. + * + * 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 internal + +import ( + "google.golang.org/grpc/attributes" + "google.golang.org/grpc/resolver" +) + +// handshakeClusterNameKey is the type used as the key to store cluster name in +// the Attributes field of resolver.Address. +type handshakeClusterNameKey struct{} + +// SetXDSHandshakeClusterName returns a copy of addr in which the Attributes field +// is updated with the cluster name. +func SetXDSHandshakeClusterName(addr resolver.Address, clusterName string) resolver.Address { + addr.Attributes = addr.Attributes.WithValue(handshakeClusterNameKey{}, clusterName) + return addr +} + +// GetXDSHandshakeClusterName returns cluster name stored in attr. +func GetXDSHandshakeClusterName(attr *attributes.Attributes) (string, bool) { + v := attr.Value(handshakeClusterNameKey{}) + name, ok := v.(string) + return name, ok +} diff --git a/vendor/google.golang.org/grpc/keepalive/keepalive.go b/vendor/google.golang.org/grpc/keepalive/keepalive.go index f8adc7e..34d31b5 100644 --- a/vendor/google.golang.org/grpc/keepalive/keepalive.go +++ b/vendor/google.golang.org/grpc/keepalive/keepalive.go @@ -16,7 +16,8 @@ * */ -// Package keepalive defines configurable parameters for point-to-point healthcheck. +// Package keepalive defines configurable parameters for point-to-point +// healthcheck. package keepalive import ( @@ -24,42 +25,61 @@ import ( ) // ClientParameters is used to set keepalive parameters on the client-side. -// These configure how the client will actively probe to notice when a connection is broken -// and send pings so intermediaries will be aware of the liveness of the connection. -// Make sure these parameters are set in coordination with the keepalive policy on the server, -// as incompatible settings can result in closing of connection. +// These configure how the client will actively probe to notice when a +// connection is broken and send pings so intermediaries will be aware of the +// liveness of the connection. Make sure these parameters are set in +// coordination with the keepalive policy on the server, as incompatible +// settings can result in closing of connection. type ClientParameters struct { - // After a duration of this time if the client doesn't see any activity it pings the server to see if the transport is still alive. + // After a duration of this time if the client doesn't see any activity it + // pings the server to see if the transport is still alive. + // If set below 10s, a minimum value of 10s will be used instead. Time time.Duration // The current default value is infinity. - // After having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that - // the connection is closed. + // After having pinged for keepalive check, the client waits for a duration + // of Timeout and if no activity is seen even after that the connection is + // closed. Timeout time.Duration // The current default value is 20 seconds. - // If true, client runs keepalive checks even with no active RPCs. + // If true, client sends keepalive pings even with no active RPCs. If false, + // when there are no active RPCs, Time and Timeout will be ignored and no + // keepalive pings will be sent. PermitWithoutStream bool // false by default. } -// ServerParameters is used to set keepalive and max-age parameters on the server-side. +// ServerParameters is used to set keepalive and max-age parameters on the +// server-side. type ServerParameters struct { - // MaxConnectionIdle is a duration for the amount of time after which an idle connection would be closed by sending a GoAway. - // Idleness duration is defined since the most recent time the number of outstanding RPCs became zero or the connection establishment. + // MaxConnectionIdle is a duration for the amount of time after which an + // idle connection would be closed by sending a GoAway. Idleness duration is + // defined since the most recent time the number of outstanding RPCs became + // zero or the connection establishment. MaxConnectionIdle time.Duration // The current default value is infinity. - // MaxConnectionAge is a duration for the maximum amount of time a connection may exist before it will be closed by sending a GoAway. - // A random jitter of +/-10% will be added to MaxConnectionAge to spread out connection storms. + // MaxConnectionAge is a duration for the maximum amount of time a + // connection may exist before it will be closed by sending a GoAway. A + // random jitter of +/-10% will be added to MaxConnectionAge to spread out + // connection storms. MaxConnectionAge time.Duration // The current default value is infinity. - // MaxConnectinoAgeGrace is an additive period after MaxConnectionAge after which the connection will be forcibly closed. + // MaxConnectionAgeGrace is an additive period after MaxConnectionAge after + // which the connection will be forcibly closed. MaxConnectionAgeGrace time.Duration // The current default value is infinity. - // After a duration of this time if the server doesn't see any activity it pings the client to see if the transport is still alive. + // After a duration of this time if the server doesn't see any activity it + // pings the client to see if the transport is still alive. + // If set below 1s, a minimum value of 1s will be used instead. Time time.Duration // The current default value is 2 hours. - // After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that - // the connection is closed. + // After having pinged for keepalive check, the server waits for a duration + // of Timeout and if no activity is seen even after that the connection is + // closed. Timeout time.Duration // The current default value is 20 seconds. } -// EnforcementPolicy is used to set keepalive enforcement policy on the server-side. -// Server will close connection with a client that violates this policy. +// EnforcementPolicy is used to set keepalive enforcement policy on the +// server-side. Server will close connection with a client that violates this +// policy. type EnforcementPolicy struct { - // MinTime is the minimum amount of time a client should wait before sending a keepalive ping. + // MinTime is the minimum amount of time a client should wait before sending + // a keepalive ping. MinTime time.Duration // The current default value is 5 minutes. - // If true, server expects keepalive pings even when there are no active streams(RPCs). + // If true, server allows keepalive pings even when there are no active + // streams(RPCs). If false, and client sends ping when there are no active + // streams, server will send GOAWAY and close the connection. PermitWithoutStream bool // false by default. } diff --git a/vendor/google.golang.org/grpc/metadata/metadata.go b/vendor/google.golang.org/grpc/metadata/metadata.go index e7c9946..fb4a88f 100644 --- a/vendor/google.golang.org/grpc/metadata/metadata.go +++ b/vendor/google.golang.org/grpc/metadata/metadata.go @@ -22,13 +22,14 @@ package metadata // import "google.golang.org/grpc/metadata" import ( + "context" "fmt" "strings" - - "golang.org/x/net/context" ) -// DecodeKeyValue returns k, v, nil. It is deprecated and should not be used. +// DecodeKeyValue returns k, v, nil. +// +// Deprecated: use k and v directly instead. func DecodeKeyValue(k, v string) (string, string, error) { return k, v, nil } @@ -40,16 +41,17 @@ type MD map[string][]string // New creates an MD from a given key-value map. // // Only the following ASCII characters are allowed in keys: -// - digits: 0-9 -// - uppercase letters: A-Z (normalized to lower) -// - lowercase letters: a-z -// - special characters: -_. +// - digits: 0-9 +// - uppercase letters: A-Z (normalized to lower) +// - lowercase letters: a-z +// - special characters: -_. +// // Uppercase letters are automatically converted to lowercase. // // Keys beginning with "grpc-" are reserved for grpc-internal use only and may // result in errors if set in metadata. func New(m map[string]string) MD { - md := MD{} + md := make(MD, len(m)) for k, val := range m { key := strings.ToLower(k) md[key] = append(md[key], val) @@ -61,10 +63,11 @@ func New(m map[string]string) MD { // Pairs panics if len(kv) is odd. // // Only the following ASCII characters are allowed in keys: -// - digits: 0-9 -// - uppercase letters: A-Z (normalized to lower) -// - lowercase letters: a-z -// - special characters: -_. +// - digits: 0-9 +// - uppercase letters: A-Z (normalized to lower) +// - lowercase letters: a-z +// - special characters: -_. +// // Uppercase letters are automatically converted to lowercase. // // Keys beginning with "grpc-" are reserved for grpc-internal use only and may @@ -73,14 +76,10 @@ func Pairs(kv ...string) MD { if len(kv)%2 == 1 { panic(fmt.Sprintf("metadata: Pairs got the odd number of input pairs for metadata: %d", len(kv))) } - md := MD{} - var key string - for i, s := range kv { - if i%2 == 0 { - key = strings.ToLower(s) - continue - } - md[key] = append(md[key], s) + md := make(MD, len(kv)/2) + for i := 0; i < len(kv); i += 2 { + key := strings.ToLower(kv[i]) + md[key] = append(md[key], kv[i+1]) } return md } @@ -95,9 +94,48 @@ func (md MD) Copy() MD { return Join(md) } +// Get obtains the values for a given key. +// +// k is converted to lowercase before searching in md. +func (md MD) Get(k string) []string { + k = strings.ToLower(k) + return md[k] +} + +// Set sets the value of a given key with a slice of values. +// +// k is converted to lowercase before storing in md. +func (md MD) Set(k string, vals ...string) { + if len(vals) == 0 { + return + } + k = strings.ToLower(k) + md[k] = vals +} + +// Append adds the values to key k, not overwriting what was already stored at +// that key. +// +// k is converted to lowercase before storing in md. +func (md MD) Append(k string, vals ...string) { + if len(vals) == 0 { + return + } + k = strings.ToLower(k) + md[k] = append(md[k], vals...) +} + +// Delete removes the values for a given key k which is converted to lowercase +// before removing it from md. +func (md MD) Delete(k string) { + k = strings.ToLower(k) + delete(md, k) +} + // Join joins any number of mds into a single MD. -// The order of values for each key is determined by the order in which -// the mds containing those values are presented to Join. +// +// The order of values for each key is determined by the order in which the mds +// containing those values are presented to Join. func Join(mds ...MD) MD { out := MD{} for _, md := range mds { @@ -124,8 +162,8 @@ func NewOutgoingContext(ctx context.Context, md MD) context.Context { } // AppendToOutgoingContext returns a new context with the provided kv merged -// with any existing metadata in the context. Please refer to the -// documentation of Pairs for a description of kv. +// with any existing metadata in the context. Please refer to the documentation +// of Pairs for a description of kv. func AppendToOutgoingContext(ctx context.Context, kv ...string) context.Context { if len(kv)%2 == 1 { panic(fmt.Sprintf("metadata: AppendToOutgoingContext got an odd number of input pairs for metadata: %d", len(kv))) @@ -138,20 +176,68 @@ func AppendToOutgoingContext(ctx context.Context, kv ...string) context.Context return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md.md, added: added}) } -// FromIncomingContext returns the incoming metadata in ctx if it exists. The -// returned MD should not be modified. Writing to it may cause races. -// Modification should be made to copies of the returned MD. -func FromIncomingContext(ctx context.Context) (md MD, ok bool) { - md, ok = ctx.Value(mdIncomingKey{}).(MD) - return +// FromIncomingContext returns the incoming metadata in ctx if it exists. +// +// All keys in the returned MD are lowercase. +func FromIncomingContext(ctx context.Context) (MD, bool) { + md, ok := ctx.Value(mdIncomingKey{}).(MD) + if !ok { + return nil, false + } + out := make(MD, len(md)) + for k, v := range md { + // We need to manually convert all keys to lower case, because MD is a + // map, and there's no guarantee that the MD attached to the context is + // created using our helper functions. + key := strings.ToLower(k) + out[key] = copyOf(v) + } + return out, true +} + +// ValueFromIncomingContext returns the metadata value corresponding to the metadata +// key from the incoming metadata if it exists. Key must be lower-case. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ValueFromIncomingContext(ctx context.Context, key string) []string { + md, ok := ctx.Value(mdIncomingKey{}).(MD) + if !ok { + return nil + } + + if v, ok := md[key]; ok { + return copyOf(v) + } + for k, v := range md { + // We need to manually convert all keys to lower case, because MD is a + // map, and there's no guarantee that the MD attached to the context is + // created using our helper functions. + if strings.ToLower(k) == key { + return copyOf(v) + } + } + return nil } -// FromOutgoingContextRaw returns the un-merged, intermediary contents -// of rawMD. Remember to perform strings.ToLower on the keys. The returned -// MD should not be modified. Writing to it may cause races. Modification -// should be made to copies of the returned MD. +// the returned slice must not be modified in place +func copyOf(v []string) []string { + vals := make([]string, len(v)) + copy(vals, v) + return vals +} + +// FromOutgoingContextRaw returns the un-merged, intermediary contents of rawMD. +// +// Remember to perform strings.ToLower on the keys, for both the returned MD (MD +// is a map, there's no guarantee it's created using our helper functions) and +// the extra kv pairs (AppendToOutgoingContext doesn't turn them into +// lowercase). // -// This is intended for gRPC-internal use ONLY. +// This is intended for gRPC-internal use ONLY. Users should use +// FromOutgoingContext instead. func FromOutgoingContextRaw(ctx context.Context) (MD, [][]string, bool) { raw, ok := ctx.Value(mdOutgoingKey{}).(rawMD) if !ok { @@ -161,21 +247,39 @@ func FromOutgoingContextRaw(ctx context.Context) (MD, [][]string, bool) { return raw.md, raw.added, true } -// FromOutgoingContext returns the outgoing metadata in ctx if it exists. The -// returned MD should not be modified. Writing to it may cause races. -// Modification should be made to copies of the returned MD. +// FromOutgoingContext returns the outgoing metadata in ctx if it exists. +// +// All keys in the returned MD are lowercase. func FromOutgoingContext(ctx context.Context) (MD, bool) { raw, ok := ctx.Value(mdOutgoingKey{}).(rawMD) if !ok { return nil, false } - mds := make([]MD, 0, len(raw.added)+1) - mds = append(mds, raw.md) - for _, vv := range raw.added { - mds = append(mds, Pairs(vv...)) + mdSize := len(raw.md) + for i := range raw.added { + mdSize += len(raw.added[i]) / 2 + } + + out := make(MD, mdSize) + for k, v := range raw.md { + // We need to manually convert all keys to lower case, because MD is a + // map, and there's no guarantee that the MD attached to the context is + // created using our helper functions. + key := strings.ToLower(k) + out[key] = copyOf(v) + } + for _, added := range raw.added { + if len(added)%2 == 1 { + panic(fmt.Sprintf("metadata: FromOutgoingContext got an odd number of input pairs for metadata: %d", len(added))) + } + + for i := 0; i < len(added); i += 2 { + key := strings.ToLower(added[i]) + out[key] = append(out[key], added[i+1]) + } } - return Join(mds...), ok + return out, ok } type rawMD struct { diff --git a/vendor/google.golang.org/grpc/naming/dns_resolver.go b/vendor/google.golang.org/grpc/naming/dns_resolver.go deleted file mode 100644 index 7e69a2c..0000000 --- a/vendor/google.golang.org/grpc/naming/dns_resolver.go +++ /dev/null @@ -1,290 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * 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 naming - -import ( - "errors" - "fmt" - "net" - "strconv" - "time" - - "golang.org/x/net/context" - "google.golang.org/grpc/grpclog" -) - -const ( - defaultPort = "443" - defaultFreq = time.Minute * 30 -) - -var ( - errMissingAddr = errors.New("missing address") - errWatcherClose = errors.New("watcher has been closed") -) - -// NewDNSResolverWithFreq creates a DNS Resolver that can resolve DNS names, and -// create watchers that poll the DNS server using the frequency set by freq. -func NewDNSResolverWithFreq(freq time.Duration) (Resolver, error) { - return &dnsResolver{freq: freq}, nil -} - -// NewDNSResolver creates a DNS Resolver that can resolve DNS names, and create -// watchers that poll the DNS server using the default frequency defined by defaultFreq. -func NewDNSResolver() (Resolver, error) { - return NewDNSResolverWithFreq(defaultFreq) -} - -// dnsResolver handles name resolution for names following the DNS scheme -type dnsResolver struct { - // frequency of polling the DNS server that the watchers created by this resolver will use. - freq time.Duration -} - -// formatIP returns ok = false if addr is not a valid textual representation of an IP address. -// If addr is an IPv4 address, return the addr and ok = true. -// If addr is an IPv6 address, return the addr enclosed in square brackets and ok = true. -func formatIP(addr string) (addrIP string, ok bool) { - ip := net.ParseIP(addr) - if ip == nil { - return "", false - } - if ip.To4() != nil { - return addr, true - } - return "[" + addr + "]", true -} - -// parseTarget takes the user input target string, returns formatted host and port info. -// If target doesn't specify a port, set the port to be the defaultPort. -// If target is in IPv6 format and host-name is enclosed in sqarue brackets, brackets -// are strippd when setting the host. -// examples: -// target: "www.google.com" returns host: "www.google.com", port: "443" -// target: "ipv4-host:80" returns host: "ipv4-host", port: "80" -// target: "[ipv6-host]" returns host: "ipv6-host", port: "443" -// target: ":80" returns host: "localhost", port: "80" -// target: ":" returns host: "localhost", port: "443" -func parseTarget(target string) (host, port string, err error) { - if target == "" { - return "", "", errMissingAddr - } - - if ip := net.ParseIP(target); ip != nil { - // target is an IPv4 or IPv6(without brackets) address - return target, defaultPort, nil - } - if host, port, err := net.SplitHostPort(target); err == nil { - // target has port, i.e ipv4-host:port, [ipv6-host]:port, host-name:port - if host == "" { - // Keep consistent with net.Dial(): If the host is empty, as in ":80", the local system is assumed. - host = "localhost" - } - if port == "" { - // If the port field is empty(target ends with colon), e.g. "[::1]:", defaultPort is used. - port = defaultPort - } - return host, port, nil - } - if host, port, err := net.SplitHostPort(target + ":" + defaultPort); err == nil { - // target doesn't have port - return host, port, nil - } - return "", "", fmt.Errorf("invalid target address %v", target) -} - -// Resolve creates a watcher that watches the name resolution of the target. -func (r *dnsResolver) Resolve(target string) (Watcher, error) { - host, port, err := parseTarget(target) - if err != nil { - return nil, err - } - - if net.ParseIP(host) != nil { - ipWatcher := &ipWatcher{ - updateChan: make(chan *Update, 1), - } - host, _ = formatIP(host) - ipWatcher.updateChan <- &Update{Op: Add, Addr: host + ":" + port} - return ipWatcher, nil - } - - ctx, cancel := context.WithCancel(context.Background()) - return &dnsWatcher{ - r: r, - host: host, - port: port, - ctx: ctx, - cancel: cancel, - t: time.NewTimer(0), - }, nil -} - -// dnsWatcher watches for the name resolution update for a specific target -type dnsWatcher struct { - r *dnsResolver - host string - port string - // The latest resolved address set - curAddrs map[string]*Update - ctx context.Context - cancel context.CancelFunc - t *time.Timer -} - -// ipWatcher watches for the name resolution update for an IP address. -type ipWatcher struct { - updateChan chan *Update -} - -// Next returns the adrress resolution Update for the target. For IP address, -// the resolution is itself, thus polling name server is unncessary. Therefore, -// Next() will return an Update the first time it is called, and will be blocked -// for all following calls as no Update exisits until watcher is closed. -func (i *ipWatcher) Next() ([]*Update, error) { - u, ok := <-i.updateChan - if !ok { - return nil, errWatcherClose - } - return []*Update{u}, nil -} - -// Close closes the ipWatcher. -func (i *ipWatcher) Close() { - close(i.updateChan) -} - -// AddressType indicates the address type returned by name resolution. -type AddressType uint8 - -const ( - // Backend indicates the server is a backend server. - Backend AddressType = iota - // GRPCLB indicates the server is a grpclb load balancer. - GRPCLB -) - -// AddrMetadataGRPCLB contains the information the name resolver for grpclb should provide. The -// name resolver used by the grpclb balancer is required to provide this type of metadata in -// its address updates. -type AddrMetadataGRPCLB struct { - // AddrType is the type of server (grpc load balancer or backend). - AddrType AddressType - // ServerName is the name of the grpc load balancer. Used for authentication. - ServerName string -} - -// compileUpdate compares the old resolved addresses and newly resolved addresses, -// and generates an update list -func (w *dnsWatcher) compileUpdate(newAddrs map[string]*Update) []*Update { - var res []*Update - for a, u := range w.curAddrs { - if _, ok := newAddrs[a]; !ok { - u.Op = Delete - res = append(res, u) - } - } - for a, u := range newAddrs { - if _, ok := w.curAddrs[a]; !ok { - res = append(res, u) - } - } - return res -} - -func (w *dnsWatcher) lookupSRV() map[string]*Update { - newAddrs := make(map[string]*Update) - _, srvs, err := lookupSRV(w.ctx, "grpclb", "tcp", w.host) - if err != nil { - grpclog.Infof("grpc: failed dns SRV record lookup due to %v.\n", err) - return nil - } - for _, s := range srvs { - lbAddrs, err := lookupHost(w.ctx, s.Target) - if err != nil { - grpclog.Warningf("grpc: failed load banlacer address dns lookup due to %v.\n", err) - continue - } - for _, a := range lbAddrs { - a, ok := formatIP(a) - if !ok { - grpclog.Errorf("grpc: failed IP parsing due to %v.\n", err) - continue - } - addr := a + ":" + strconv.Itoa(int(s.Port)) - newAddrs[addr] = &Update{Addr: addr, - Metadata: AddrMetadataGRPCLB{AddrType: GRPCLB, ServerName: s.Target}} - } - } - return newAddrs -} - -func (w *dnsWatcher) lookupHost() map[string]*Update { - newAddrs := make(map[string]*Update) - addrs, err := lookupHost(w.ctx, w.host) - if err != nil { - grpclog.Warningf("grpc: failed dns A record lookup due to %v.\n", err) - return nil - } - for _, a := range addrs { - a, ok := formatIP(a) - if !ok { - grpclog.Errorf("grpc: failed IP parsing due to %v.\n", err) - continue - } - addr := a + ":" + w.port - newAddrs[addr] = &Update{Addr: addr} - } - return newAddrs -} - -func (w *dnsWatcher) lookup() []*Update { - newAddrs := w.lookupSRV() - if newAddrs == nil { - // If failed to get any balancer address (either no corresponding SRV for the - // target, or caused by failure during resolution/parsing of the balancer target), - // return any A record info available. - newAddrs = w.lookupHost() - } - result := w.compileUpdate(newAddrs) - w.curAddrs = newAddrs - return result -} - -// Next returns the resolved address update(delta) for the target. If there's no -// change, it will sleep for 30 mins and try to resolve again after that. -func (w *dnsWatcher) Next() ([]*Update, error) { - for { - select { - case <-w.ctx.Done(): - return nil, errWatcherClose - case <-w.t.C: - } - result := w.lookup() - // Next lookup should happen after an interval defined by w.r.freq. - w.t.Reset(w.r.freq) - if len(result) > 0 { - return result, nil - } - } -} - -func (w *dnsWatcher) Close() { - w.cancel() -} diff --git a/vendor/google.golang.org/grpc/naming/naming.go b/vendor/google.golang.org/grpc/naming/naming.go deleted file mode 100644 index 1af7e32..0000000 --- a/vendor/google.golang.org/grpc/naming/naming.go +++ /dev/null @@ -1,59 +0,0 @@ -/* - * - * Copyright 2014 gRPC authors. - * - * 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 naming defines the naming API and related data structures for gRPC. -// The interface is EXPERIMENTAL and may be suject to change. -package naming - -// Operation defines the corresponding operations for a name resolution change. -type Operation uint8 - -const ( - // Add indicates a new address is added. - Add Operation = iota - // Delete indicates an exisiting address is deleted. - Delete -) - -// Update defines a name resolution update. Notice that it is not valid having both -// empty string Addr and nil Metadata in an Update. -type Update struct { - // Op indicates the operation of the update. - Op Operation - // Addr is the updated address. It is empty string if there is no address update. - Addr string - // Metadata is the updated metadata. It is nil if there is no metadata update. - // Metadata is not required for a custom naming implementation. - Metadata interface{} -} - -// Resolver creates a Watcher for a target to track its resolution changes. -type Resolver interface { - // Resolve creates a Watcher for target. - Resolve(target string) (Watcher, error) -} - -// Watcher watches for the updates on the specified target. -type Watcher interface { - // Next blocks until an update or error happens. It may return one or more - // updates. The first call should get the full set of the results. It should - // return an error if and only if Watcher cannot recover. - Next() ([]*Update, error) - // Close closes the Watcher. - Close() -} diff --git a/vendor/google.golang.org/grpc/peer/peer.go b/vendor/google.golang.org/grpc/peer/peer.go index 317b8b9..e01d219 100644 --- a/vendor/google.golang.org/grpc/peer/peer.go +++ b/vendor/google.golang.org/grpc/peer/peer.go @@ -21,9 +21,9 @@ package peer import ( + "context" "net" - "golang.org/x/net/context" "google.golang.org/grpc/credentials" ) diff --git a/vendor/google.golang.org/grpc/picker_wrapper.go b/vendor/google.golang.org/grpc/picker_wrapper.go index 4d00825..c525dc0 100644 --- a/vendor/google.golang.org/grpc/picker_wrapper.go +++ b/vendor/google.golang.org/grpc/picker_wrapper.go @@ -19,14 +19,16 @@ package grpc import ( + "context" + "io" "sync" - "golang.org/x/net/context" "google.golang.org/grpc/balancer" "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal/channelz" + istatus "google.golang.org/grpc/internal/status" + "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/status" - "google.golang.org/grpc/transport" ) // pickerWrapper is a wrapper of balancer.Picker. It blocks on certain pick @@ -36,42 +38,47 @@ type pickerWrapper struct { done bool blockingCh chan struct{} picker balancer.Picker - - // The latest connection happened. - connErrMu sync.Mutex - connErr error } func newPickerWrapper() *pickerWrapper { - bp := &pickerWrapper{blockingCh: make(chan struct{})} - return bp -} - -func (bp *pickerWrapper) updateConnectionError(err error) { - bp.connErrMu.Lock() - bp.connErr = err - bp.connErrMu.Unlock() -} - -func (bp *pickerWrapper) connectionError() error { - bp.connErrMu.Lock() - err := bp.connErr - bp.connErrMu.Unlock() - return err + return &pickerWrapper{blockingCh: make(chan struct{})} } // updatePicker is called by UpdateBalancerState. It unblocks all blocked pick. -func (bp *pickerWrapper) updatePicker(p balancer.Picker) { - bp.mu.Lock() - if bp.done { - bp.mu.Unlock() +func (pw *pickerWrapper) updatePicker(p balancer.Picker) { + pw.mu.Lock() + if pw.done { + pw.mu.Unlock() return } - bp.picker = p - // bp.blockingCh should never be nil. - close(bp.blockingCh) - bp.blockingCh = make(chan struct{}) - bp.mu.Unlock() + pw.picker = p + // pw.blockingCh should never be nil. + close(pw.blockingCh) + pw.blockingCh = make(chan struct{}) + pw.mu.Unlock() +} + +// doneChannelzWrapper performs the following: +// - increments the calls started channelz counter +// - wraps the done function in the passed in result to increment the calls +// failed or calls succeeded channelz counter before invoking the actual +// done function. +func doneChannelzWrapper(acw *acBalancerWrapper, result *balancer.PickResult) { + acw.mu.Lock() + ac := acw.ac + acw.mu.Unlock() + ac.incrCallsStarted() + done := result.Done + result.Done = func(b balancer.DoneInfo) { + if b.Err != nil && b.Err != io.EOF { + ac.incrCallsFailed() + } else { + ac.incrCallsSucceeded() + } + if done != nil { + done(b) + } + } } // pick returns the transport that will be used for the RPC. @@ -81,65 +88,88 @@ func (bp *pickerWrapper) updatePicker(p balancer.Picker) { // - the current picker returns other errors and failfast is false. // - the subConn returned by the current picker is not READY // When one of these situations happens, pick blocks until the picker gets updated. -func (bp *pickerWrapper) pick(ctx context.Context, failfast bool, opts balancer.PickOptions) (transport.ClientTransport, func(balancer.DoneInfo), error) { - var ( - p balancer.Picker - ch chan struct{} - ) +func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer.PickInfo) (transport.ClientTransport, balancer.PickResult, error) { + var ch chan struct{} + var lastPickErr error for { - bp.mu.Lock() - if bp.done { - bp.mu.Unlock() - return nil, nil, ErrClientConnClosing + pw.mu.Lock() + if pw.done { + pw.mu.Unlock() + return nil, balancer.PickResult{}, ErrClientConnClosing } - if bp.picker == nil { - ch = bp.blockingCh + if pw.picker == nil { + ch = pw.blockingCh } - if ch == bp.blockingCh { + if ch == pw.blockingCh { // This could happen when either: - // - bp.picker is nil (the previous if condition), or + // - pw.picker is nil (the previous if condition), or // - has called pick on the current picker. - bp.mu.Unlock() + pw.mu.Unlock() select { case <-ctx.Done(): - return nil, nil, ctx.Err() + var errStr string + if lastPickErr != nil { + errStr = "latest balancer error: " + lastPickErr.Error() + } else { + errStr = ctx.Err().Error() + } + switch ctx.Err() { + case context.DeadlineExceeded: + return nil, balancer.PickResult{}, status.Error(codes.DeadlineExceeded, errStr) + case context.Canceled: + return nil, balancer.PickResult{}, status.Error(codes.Canceled, errStr) + } case <-ch: } continue } - ch = bp.blockingCh - p = bp.picker - bp.mu.Unlock() - - subConn, done, err := p.Pick(ctx, opts) + ch = pw.blockingCh + p := pw.picker + pw.mu.Unlock() + pickResult, err := p.Pick(info) if err != nil { - switch err { - case balancer.ErrNoSubConnAvailable: + if err == balancer.ErrNoSubConnAvailable { continue - case balancer.ErrTransientFailure: - if !failfast { - continue + } + if st, ok := status.FromError(err); ok { + // Status error: end the RPC unconditionally with this status. + // First restrict the code to the list allowed by gRFC A54. + if istatus.IsRestrictedControlPlaneCode(st) { + err = status.Errorf(codes.Internal, "received picker error with illegal status: %v", err) } - return nil, nil, status.Errorf(codes.Unavailable, "%v, latest connection error: %v", err, bp.connectionError()) - default: - // err is some other error. - return nil, nil, toRPCErr(err) + return nil, balancer.PickResult{}, dropError{error: err} + } + // For all other errors, wait for ready RPCs should block and other + // RPCs should fail with unavailable. + if !failfast { + lastPickErr = err + continue } + return nil, balancer.PickResult{}, status.Error(codes.Unavailable, err.Error()) } - acw, ok := subConn.(*acBalancerWrapper) + acw, ok := pickResult.SubConn.(*acBalancerWrapper) if !ok { - grpclog.Infof("subconn returned from pick is not *acBalancerWrapper") + logger.Errorf("subconn returned from pick is type %T, not *acBalancerWrapper", pickResult.SubConn) continue } - if t, ok := acw.getAddrConn().getReadyTransport(); ok { - return t, done, nil + if t := acw.getAddrConn().getReadyTransport(); t != nil { + if channelz.IsOn() { + doneChannelzWrapper(acw, &pickResult) + return t, pickResult, nil + } + return t, pickResult, nil + } + if pickResult.Done != nil { + // Calling done with nil error, no bytes sent and no bytes received. + // DoneInfo with default value works. + pickResult.Done(balancer.DoneInfo{}) } - grpclog.Infof("blockingPicker: the picked transport is not ready, loop back to repick") + logger.Infof("blockingPicker: the picked transport is not ready, loop back to repick") // If ok == false, ac.state is not READY. // A valid picker always returns READY subConn. This means the state of ac // just changed, and picker will be updated shortly. @@ -147,12 +177,18 @@ func (bp *pickerWrapper) pick(ctx context.Context, failfast bool, opts balancer. } } -func (bp *pickerWrapper) close() { - bp.mu.Lock() - defer bp.mu.Unlock() - if bp.done { +func (pw *pickerWrapper) close() { + pw.mu.Lock() + defer pw.mu.Unlock() + if pw.done { return } - bp.done = true - close(bp.blockingCh) + pw.done = true + close(pw.blockingCh) +} + +// dropError is a wrapper error that indicates the LB policy wishes to drop the +// RPC and not retry it. +type dropError struct { + error } diff --git a/vendor/google.golang.org/grpc/pickfirst.go b/vendor/google.golang.org/grpc/pickfirst.go index bf659d4..fc91b4d 100644 --- a/vendor/google.golang.org/grpc/pickfirst.go +++ b/vendor/google.golang.org/grpc/pickfirst.go @@ -19,11 +19,11 @@ package grpc import ( - "golang.org/x/net/context" + "errors" + "fmt" + "google.golang.org/grpc/balancer" "google.golang.org/grpc/connectivity" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/resolver" ) // PickFirstBalancerName is the name of the pick_first balancer. @@ -44,63 +44,138 @@ func (*pickfirstBuilder) Name() string { } type pickfirstBalancer struct { - cc balancer.ClientConn - sc balancer.SubConn + state connectivity.State + cc balancer.ClientConn + subConn balancer.SubConn } -func (b *pickfirstBalancer) HandleResolvedAddrs(addrs []resolver.Address, err error) { - if err != nil { - grpclog.Infof("pickfirstBalancer: HandleResolvedAddrs called with error %v", err) +func (b *pickfirstBalancer) ResolverError(err error) { + if logger.V(2) { + logger.Infof("pickfirstBalancer: ResolverError called with error: %v", err) + } + if b.subConn == nil { + b.state = connectivity.TransientFailure + } + + if b.state != connectivity.TransientFailure { + // The picker will not change since the balancer does not currently + // report an error. return } - if b.sc == nil { - b.sc, err = b.cc.NewSubConn(addrs, balancer.NewSubConnOptions{}) - if err != nil { - grpclog.Errorf("pickfirstBalancer: failed to NewSubConn: %v", err) - return + b.cc.UpdateState(balancer.State{ + ConnectivityState: connectivity.TransientFailure, + Picker: &picker{err: fmt.Errorf("name resolver error: %v", err)}, + }) +} + +func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState) error { + if len(state.ResolverState.Addresses) == 0 { + // The resolver reported an empty address list. Treat it like an error by + // calling b.ResolverError. + if b.subConn != nil { + // Remove the old subConn. All addresses were removed, so it is no longer + // valid. + b.cc.RemoveSubConn(b.subConn) + b.subConn = nil } - b.cc.UpdateBalancerState(connectivity.Idle, &picker{sc: b.sc}) - b.sc.Connect() - } else { - b.sc.UpdateAddresses(addrs) - b.sc.Connect() + b.ResolverError(errors.New("produced zero addresses")) + return balancer.ErrBadResolverState + } + + if b.subConn != nil { + b.cc.UpdateAddresses(b.subConn, state.ResolverState.Addresses) + return nil } + + subConn, err := b.cc.NewSubConn(state.ResolverState.Addresses, balancer.NewSubConnOptions{}) + if err != nil { + if logger.V(2) { + logger.Errorf("pickfirstBalancer: failed to NewSubConn: %v", err) + } + b.state = connectivity.TransientFailure + b.cc.UpdateState(balancer.State{ + ConnectivityState: connectivity.TransientFailure, + Picker: &picker{err: fmt.Errorf("error creating connection: %v", err)}, + }) + return balancer.ErrBadResolverState + } + b.subConn = subConn + b.state = connectivity.Idle + b.cc.UpdateState(balancer.State{ + ConnectivityState: connectivity.Connecting, + Picker: &picker{err: balancer.ErrNoSubConnAvailable}, + }) + b.subConn.Connect() + return nil } -func (b *pickfirstBalancer) HandleSubConnStateChange(sc balancer.SubConn, s connectivity.State) { - grpclog.Infof("pickfirstBalancer: HandleSubConnStateChange: %p, %v", sc, s) - if b.sc != sc { - grpclog.Infof("pickfirstBalancer: ignored state change because sc is not recognized") +func (b *pickfirstBalancer) UpdateSubConnState(subConn balancer.SubConn, state balancer.SubConnState) { + if logger.V(2) { + logger.Infof("pickfirstBalancer: UpdateSubConnState: %p, %v", subConn, state) + } + if b.subConn != subConn { + if logger.V(2) { + logger.Infof("pickfirstBalancer: ignored state change because subConn is not recognized") + } return } - if s == connectivity.Shutdown { - b.sc = nil + b.state = state.ConnectivityState + if state.ConnectivityState == connectivity.Shutdown { + b.subConn = nil return } - switch s { - case connectivity.Ready, connectivity.Idle: - b.cc.UpdateBalancerState(s, &picker{sc: sc}) + switch state.ConnectivityState { + case connectivity.Ready: + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &picker{result: balancer.PickResult{SubConn: subConn}}, + }) case connectivity.Connecting: - b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrNoSubConnAvailable}) + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &picker{err: balancer.ErrNoSubConnAvailable}, + }) + case connectivity.Idle: + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &idlePicker{subConn: subConn}, + }) case connectivity.TransientFailure: - b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrTransientFailure}) + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &picker{err: state.ConnectionError}, + }) } } func (b *pickfirstBalancer) Close() { } +func (b *pickfirstBalancer) ExitIdle() { + if b.subConn != nil && b.state == connectivity.Idle { + b.subConn.Connect() + } +} + type picker struct { - err error - sc balancer.SubConn + result balancer.PickResult + err error } -func (p *picker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) { - if p.err != nil { - return nil, nil, p.err - } - return p.sc, nil, nil +func (p *picker) Pick(balancer.PickInfo) (balancer.PickResult, error) { + return p.result, p.err +} + +// idlePicker is used when the SubConn is IDLE and kicks the SubConn into +// CONNECTING when Pick is called. +type idlePicker struct { + subConn balancer.SubConn +} + +func (i *idlePicker) Pick(balancer.PickInfo) (balancer.PickResult, error) { + i.subConn.Connect() + return balancer.PickResult{}, balancer.ErrNoSubConnAvailable } func init() { diff --git a/vendor/google.golang.org/grpc/preloader.go b/vendor/google.golang.org/grpc/preloader.go new file mode 100644 index 0000000..cd45547 --- /dev/null +++ b/vendor/google.golang.org/grpc/preloader.go @@ -0,0 +1,67 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * 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 grpc + +import ( + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +// PreparedMsg is responsible for creating a Marshalled and Compressed object. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type PreparedMsg struct { + // Struct for preparing msg before sending them + encodedData []byte + hdr []byte + payload []byte +} + +// Encode marshalls and compresses the message using the codec and compressor for the stream. +func (p *PreparedMsg) Encode(s Stream, msg interface{}) error { + ctx := s.Context() + rpcInfo, ok := rpcInfoFromContext(ctx) + if !ok { + return status.Errorf(codes.Internal, "grpc: unable to get rpcInfo") + } + + // check if the context has the relevant information to prepareMsg + if rpcInfo.preloaderInfo == nil { + return status.Errorf(codes.Internal, "grpc: rpcInfo.preloaderInfo is nil") + } + if rpcInfo.preloaderInfo.codec == nil { + return status.Errorf(codes.Internal, "grpc: rpcInfo.preloaderInfo.codec is nil") + } + + // prepare the msg + data, err := encode(rpcInfo.preloaderInfo.codec, msg) + if err != nil { + return err + } + p.encodedData = data + compData, err := compress(data, rpcInfo.preloaderInfo.cp, rpcInfo.preloaderInfo.comp) + if err != nil { + return err + } + p.hdr, p.payload = msgHeader(data, compData) + return nil +} diff --git a/vendor/google.golang.org/grpc/regenerate.sh b/vendor/google.golang.org/grpc/regenerate.sh new file mode 100644 index 0000000..a6f26c8 --- /dev/null +++ b/vendor/google.golang.org/grpc/regenerate.sh @@ -0,0 +1,123 @@ +#!/bin/bash +# Copyright 2020 gRPC authors. +# +# 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. + +set -eu -o pipefail + +WORKDIR=$(mktemp -d) + +function finish { + rm -rf "$WORKDIR" +} +trap finish EXIT + +export GOBIN=${WORKDIR}/bin +export PATH=${GOBIN}:${PATH} +mkdir -p ${GOBIN} + +echo "remove existing generated files" +# grpc_testing_not_regenerate/*.pb.go is not re-generated, +# see grpc_testing_not_regenerate/README.md for details. +rm -f $(find . -name '*.pb.go' | grep -v 'grpc_testing_not_regenerate') + +echo "go install google.golang.org/protobuf/cmd/protoc-gen-go" +(cd test/tools && go install google.golang.org/protobuf/cmd/protoc-gen-go) + +echo "go install cmd/protoc-gen-go-grpc" +(cd cmd/protoc-gen-go-grpc && go install .) + +echo "git clone https://github.com/grpc/grpc-proto" +git clone --quiet https://github.com/grpc/grpc-proto ${WORKDIR}/grpc-proto + +echo "git clone https://github.com/protocolbuffers/protobuf" +git clone --quiet https://github.com/protocolbuffers/protobuf ${WORKDIR}/protobuf + +# Pull in code.proto as a proto dependency +mkdir -p ${WORKDIR}/googleapis/google/rpc +echo "curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/code.proto" +curl --silent https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/code.proto > ${WORKDIR}/googleapis/google/rpc/code.proto + +mkdir -p ${WORKDIR}/out + +# Generates sources without the embed requirement +LEGACY_SOURCES=( + ${WORKDIR}/grpc-proto/grpc/binlog/v1/binarylog.proto + ${WORKDIR}/grpc-proto/grpc/channelz/v1/channelz.proto + ${WORKDIR}/grpc-proto/grpc/health/v1/health.proto + ${WORKDIR}/grpc-proto/grpc/lb/v1/load_balancer.proto + profiling/proto/service.proto + ${WORKDIR}/grpc-proto/grpc/reflection/v1alpha/reflection.proto + ${WORKDIR}/grpc-proto/grpc/reflection/v1/reflection.proto +) + +# Generates only the new gRPC Service symbols +SOURCES=( + $(git ls-files --exclude-standard --cached --others "*.proto" | grep -v '^\(profiling/proto/service.proto\|reflection/grpc_reflection_v1alpha/reflection.proto\)$') + ${WORKDIR}/grpc-proto/grpc/gcp/altscontext.proto + ${WORKDIR}/grpc-proto/grpc/gcp/handshaker.proto + ${WORKDIR}/grpc-proto/grpc/gcp/transport_security_common.proto + ${WORKDIR}/grpc-proto/grpc/lookup/v1/rls.proto + ${WORKDIR}/grpc-proto/grpc/lookup/v1/rls_config.proto + ${WORKDIR}/grpc-proto/grpc/testing/*.proto + ${WORKDIR}/grpc-proto/grpc/core/*.proto +) + +# These options of the form 'Mfoo.proto=bar' instruct the codegen to use an +# import path of 'bar' in the generated code when 'foo.proto' is imported in +# one of the sources. +# +# Note that the protos listed here are all for testing purposes. All protos to +# be used externally should have a go_package option (and they don't need to be +# listed here). +OPTS=Mgrpc/core/stats.proto=google.golang.org/grpc/interop/grpc_testing/core,\ +Mgrpc/testing/benchmark_service.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/stats.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/report_qps_scenario_service.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/messages.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/worker_service.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/control.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/test.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/payloads.proto=google.golang.org/grpc/interop/grpc_testing,\ +Mgrpc/testing/empty.proto=google.golang.org/grpc/interop/grpc_testing + +for src in ${SOURCES[@]}; do + echo "protoc ${src}" + protoc --go_out=${OPTS}:${WORKDIR}/out --go-grpc_out=${OPTS}:${WORKDIR}/out \ + -I"." \ + -I${WORKDIR}/grpc-proto \ + -I${WORKDIR}/googleapis \ + -I${WORKDIR}/protobuf/src \ + ${src} +done + +for src in ${LEGACY_SOURCES[@]}; do + echo "protoc ${src}" + protoc --go_out=${OPTS}:${WORKDIR}/out --go-grpc_out=${OPTS},require_unimplemented_servers=false:${WORKDIR}/out \ + -I"." \ + -I${WORKDIR}/grpc-proto \ + -I${WORKDIR}/googleapis \ + -I${WORKDIR}/protobuf/src \ + ${src} +done + +# The go_package option in grpc/lookup/v1/rls.proto doesn't match the +# current location. Move it into the right place. +mkdir -p ${WORKDIR}/out/google.golang.org/grpc/internal/proto/grpc_lookup_v1 +mv ${WORKDIR}/out/google.golang.org/grpc/lookup/grpc_lookup_v1/* ${WORKDIR}/out/google.golang.org/grpc/internal/proto/grpc_lookup_v1 + +# grpc_testing_not_regenerate/*.pb.go are not re-generated, +# see grpc_testing_not_regenerate/README.md for details. +rm ${WORKDIR}/out/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/*.pb.go + +cp -R ${WORKDIR}/out/google.golang.org/grpc/* . diff --git a/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go b/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go deleted file mode 100644 index a543a70..0000000 --- a/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go +++ /dev/null @@ -1,377 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * 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 dns implements a dns resolver to be installed as the default resolver -// in grpc. -package dns - -import ( - "encoding/json" - "errors" - "fmt" - "math/rand" - "net" - "os" - "strconv" - "strings" - "sync" - "time" - - "golang.org/x/net/context" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/resolver" -) - -func init() { - resolver.Register(NewBuilder()) -} - -const ( - defaultPort = "443" - defaultFreq = time.Minute * 30 - golang = "GO" - // In DNS, service config is encoded in a TXT record via the mechanism - // described in RFC-1464 using the attribute name grpc_config. - txtAttribute = "grpc_config=" -) - -var errMissingAddr = errors.New("missing address") - -// NewBuilder creates a dnsBuilder which is used to factory DNS resolvers. -func NewBuilder() resolver.Builder { - return &dnsBuilder{freq: defaultFreq} -} - -type dnsBuilder struct { - // frequency of polling the DNS server. - freq time.Duration -} - -// Build creates and starts a DNS resolver that watches the name resolution of the target. -func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption) (resolver.Resolver, error) { - host, port, err := parseTarget(target.Endpoint) - if err != nil { - return nil, err - } - - // IP address. - if net.ParseIP(host) != nil { - host, _ = formatIP(host) - addr := []resolver.Address{{Addr: host + ":" + port}} - i := &ipResolver{ - cc: cc, - ip: addr, - rn: make(chan struct{}, 1), - q: make(chan struct{}), - } - cc.NewAddress(addr) - go i.watcher() - return i, nil - } - - // DNS address (non-IP). - ctx, cancel := context.WithCancel(context.Background()) - d := &dnsResolver{ - freq: b.freq, - host: host, - port: port, - ctx: ctx, - cancel: cancel, - cc: cc, - t: time.NewTimer(0), - rn: make(chan struct{}, 1), - } - - d.wg.Add(1) - go d.watcher() - return d, nil -} - -// Scheme returns the naming scheme of this resolver builder, which is "dns". -func (b *dnsBuilder) Scheme() string { - return "dns" -} - -// ipResolver watches for the name resolution update for an IP address. -type ipResolver struct { - cc resolver.ClientConn - ip []resolver.Address - // rn channel is used by ResolveNow() to force an immediate resolution of the target. - rn chan struct{} - q chan struct{} -} - -// ResolveNow resend the address it stores, no resolution is needed. -func (i *ipResolver) ResolveNow(opt resolver.ResolveNowOption) { - select { - case i.rn <- struct{}{}: - default: - } -} - -// Close closes the ipResolver. -func (i *ipResolver) Close() { - close(i.q) -} - -func (i *ipResolver) watcher() { - for { - select { - case <-i.rn: - i.cc.NewAddress(i.ip) - case <-i.q: - return - } - } -} - -// dnsResolver watches for the name resolution update for a non-IP target. -type dnsResolver struct { - freq time.Duration - host string - port string - ctx context.Context - cancel context.CancelFunc - cc resolver.ClientConn - // rn channel is used by ResolveNow() to force an immediate resolution of the target. - rn chan struct{} - t *time.Timer - // wg is used to enforce Close() to return after the watcher() goroutine has finished. - // Otherwise, data race will be possible. [Race Example] in dns_resolver_test we - // replace the real lookup functions with mocked ones to facilitate testing. - // If Close() doesn't wait for watcher() goroutine finishes, race detector sometimes - // will warns lookup (READ the lookup function pointers) inside watcher() goroutine - // has data race with replaceNetFunc (WRITE the lookup function pointers). - wg sync.WaitGroup -} - -// ResolveNow invoke an immediate resolution of the target that this dnsResolver watches. -func (d *dnsResolver) ResolveNow(opt resolver.ResolveNowOption) { - select { - case d.rn <- struct{}{}: - default: - } -} - -// Close closes the dnsResolver. -func (d *dnsResolver) Close() { - d.cancel() - d.wg.Wait() - d.t.Stop() -} - -func (d *dnsResolver) watcher() { - defer d.wg.Done() - for { - select { - case <-d.ctx.Done(): - return - case <-d.t.C: - case <-d.rn: - } - result, sc := d.lookup() - // Next lookup should happen after an interval defined by d.freq. - d.t.Reset(d.freq) - d.cc.NewServiceConfig(string(sc)) - d.cc.NewAddress(result) - } -} - -func (d *dnsResolver) lookupSRV() []resolver.Address { - var newAddrs []resolver.Address - _, srvs, err := lookupSRV(d.ctx, "grpclb", "tcp", d.host) - if err != nil { - grpclog.Infof("grpc: failed dns SRV record lookup due to %v.\n", err) - return nil - } - for _, s := range srvs { - lbAddrs, err := lookupHost(d.ctx, s.Target) - if err != nil { - grpclog.Warningf("grpc: failed load banlacer address dns lookup due to %v.\n", err) - continue - } - for _, a := range lbAddrs { - a, ok := formatIP(a) - if !ok { - grpclog.Errorf("grpc: failed IP parsing due to %v.\n", err) - continue - } - addr := a + ":" + strconv.Itoa(int(s.Port)) - newAddrs = append(newAddrs, resolver.Address{Addr: addr, Type: resolver.GRPCLB, ServerName: s.Target}) - } - } - return newAddrs -} - -func (d *dnsResolver) lookupTXT() string { - ss, err := lookupTXT(d.ctx, d.host) - if err != nil { - grpclog.Warningf("grpc: failed dns TXT record lookup due to %v.\n", err) - return "" - } - var res string - for _, s := range ss { - res += s - } - - // TXT record must have "grpc_config=" attribute in order to be used as service config. - if !strings.HasPrefix(res, txtAttribute) { - grpclog.Warningf("grpc: TXT record %v missing %v attribute", res, txtAttribute) - return "" - } - return strings.TrimPrefix(res, txtAttribute) -} - -func (d *dnsResolver) lookupHost() []resolver.Address { - var newAddrs []resolver.Address - addrs, err := lookupHost(d.ctx, d.host) - if err != nil { - grpclog.Warningf("grpc: failed dns A record lookup due to %v.\n", err) - return nil - } - for _, a := range addrs { - a, ok := formatIP(a) - if !ok { - grpclog.Errorf("grpc: failed IP parsing due to %v.\n", err) - continue - } - addr := a + ":" + d.port - newAddrs = append(newAddrs, resolver.Address{Addr: addr}) - } - return newAddrs -} - -func (d *dnsResolver) lookup() ([]resolver.Address, string) { - var newAddrs []resolver.Address - newAddrs = d.lookupSRV() - // Support fallback to non-balancer address. - newAddrs = append(newAddrs, d.lookupHost()...) - sc := d.lookupTXT() - return newAddrs, canaryingSC(sc) -} - -// formatIP returns ok = false if addr is not a valid textual representation of an IP address. -// If addr is an IPv4 address, return the addr and ok = true. -// If addr is an IPv6 address, return the addr enclosed in square brackets and ok = true. -func formatIP(addr string) (addrIP string, ok bool) { - ip := net.ParseIP(addr) - if ip == nil { - return "", false - } - if ip.To4() != nil { - return addr, true - } - return "[" + addr + "]", true -} - -// parseTarget takes the user input target string, returns formatted host and port info. -// If target doesn't specify a port, set the port to be the defaultPort. -// If target is in IPv6 format and host-name is enclosed in sqarue brackets, brackets -// are strippd when setting the host. -// examples: -// target: "www.google.com" returns host: "www.google.com", port: "443" -// target: "ipv4-host:80" returns host: "ipv4-host", port: "80" -// target: "[ipv6-host]" returns host: "ipv6-host", port: "443" -// target: ":80" returns host: "localhost", port: "80" -// target: ":" returns host: "localhost", port: "443" -func parseTarget(target string) (host, port string, err error) { - if target == "" { - return "", "", errMissingAddr - } - if ip := net.ParseIP(target); ip != nil { - // target is an IPv4 or IPv6(without brackets) address - return target, defaultPort, nil - } - if host, port, err = net.SplitHostPort(target); err == nil { - // target has port, i.e ipv4-host:port, [ipv6-host]:port, host-name:port - if host == "" { - // Keep consistent with net.Dial(): If the host is empty, as in ":80", the local system is assumed. - host = "localhost" - } - if port == "" { - // If the port field is empty(target ends with colon), e.g. "[::1]:", defaultPort is used. - port = defaultPort - } - return host, port, nil - } - if host, port, err = net.SplitHostPort(target + ":" + defaultPort); err == nil { - // target doesn't have port - return host, port, nil - } - return "", "", fmt.Errorf("invalid target address %v, error info: %v", target, err) -} - -type rawChoice struct { - ClientLanguage *[]string `json:"clientLanguage,omitempty"` - Percentage *int `json:"percentage,omitempty"` - ClientHostName *[]string `json:"clientHostName,omitempty"` - ServiceConfig *json.RawMessage `json:"serviceConfig,omitempty"` -} - -func containsString(a *[]string, b string) bool { - if a == nil { - return true - } - for _, c := range *a { - if c == b { - return true - } - } - return false -} - -func chosenByPercentage(a *int) bool { - if a == nil { - return true - } - s := rand.NewSource(time.Now().UnixNano()) - r := rand.New(s) - if r.Intn(100)+1 > *a { - return false - } - return true -} - -func canaryingSC(js string) string { - if js == "" { - return "" - } - var rcs []rawChoice - err := json.Unmarshal([]byte(js), &rcs) - if err != nil { - grpclog.Warningf("grpc: failed to parse service config json string due to %v.\n", err) - return "" - } - cliHostname, err := os.Hostname() - if err != nil { - grpclog.Warningf("grpc: failed to get client hostname due to %v.\n", err) - return "" - } - var sc string - for _, c := range rcs { - if !containsString(c.ClientLanguage, golang) || - !chosenByPercentage(c.Percentage) || - !containsString(c.ClientHostName, cliHostname) || - c.ServiceConfig == nil { - continue - } - sc = string(*c.ServiceConfig) - break - } - return sc -} diff --git a/vendor/google.golang.org/grpc/resolver/dns/go17.go b/vendor/google.golang.org/grpc/resolver/dns/go17.go deleted file mode 100644 index b466bc8..0000000 --- a/vendor/google.golang.org/grpc/resolver/dns/go17.go +++ /dev/null @@ -1,35 +0,0 @@ -// +build go1.6, !go1.8 - -/* - * - * Copyright 2017 gRPC authors. - * - * 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 dns - -import ( - "net" - - "golang.org/x/net/context" -) - -var ( - lookupHost = func(ctx context.Context, host string) ([]string, error) { return net.LookupHost(host) } - lookupSRV = func(ctx context.Context, service, proto, name string) (string, []*net.SRV, error) { - return net.LookupSRV(service, proto, name) - } - lookupTXT = func(ctx context.Context, name string) ([]string, error) { return net.LookupTXT(name) } -) diff --git a/vendor/google.golang.org/grpc/resolver/map.go b/vendor/google.golang.org/grpc/resolver/map.go new file mode 100644 index 0000000..efcb7f3 --- /dev/null +++ b/vendor/google.golang.org/grpc/resolver/map.go @@ -0,0 +1,138 @@ +/* + * + * Copyright 2021 gRPC authors. + * + * 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 resolver + +type addressMapEntry struct { + addr Address + value interface{} +} + +// AddressMap is a map of addresses to arbitrary values taking into account +// Attributes. BalancerAttributes are ignored, as are Metadata and Type. +// Multiple accesses may not be performed concurrently. Must be created via +// NewAddressMap; do not construct directly. +type AddressMap struct { + // The underlying map is keyed by an Address with fields that we don't care + // about being set to their zero values. The only fields that we care about + // are `Addr`, `ServerName` and `Attributes`. Since we need to be able to + // distinguish between addresses with same `Addr` and `ServerName`, but + // different `Attributes`, we cannot store the `Attributes` in the map key. + // + // The comparison operation for structs work as follows: + // Struct values are comparable if all their fields are comparable. Two + // struct values are equal if their corresponding non-blank fields are equal. + // + // The value type of the map contains a slice of addresses which match the key + // in their `Addr` and `ServerName` fields and contain the corresponding value + // associated with them. + m map[Address]addressMapEntryList +} + +func toMapKey(addr *Address) Address { + return Address{Addr: addr.Addr, ServerName: addr.ServerName} +} + +type addressMapEntryList []*addressMapEntry + +// NewAddressMap creates a new AddressMap. +func NewAddressMap() *AddressMap { + return &AddressMap{m: make(map[Address]addressMapEntryList)} +} + +// find returns the index of addr in the addressMapEntry slice, or -1 if not +// present. +func (l addressMapEntryList) find(addr Address) int { + for i, entry := range l { + // Attributes are the only thing to match on here, since `Addr` and + // `ServerName` are already equal. + if entry.addr.Attributes.Equal(addr.Attributes) { + return i + } + } + return -1 +} + +// Get returns the value for the address in the map, if present. +func (a *AddressMap) Get(addr Address) (value interface{}, ok bool) { + addrKey := toMapKey(&addr) + entryList := a.m[addrKey] + if entry := entryList.find(addr); entry != -1 { + return entryList[entry].value, true + } + return nil, false +} + +// Set updates or adds the value to the address in the map. +func (a *AddressMap) Set(addr Address, value interface{}) { + addrKey := toMapKey(&addr) + entryList := a.m[addrKey] + if entry := entryList.find(addr); entry != -1 { + entryList[entry].value = value + return + } + a.m[addrKey] = append(entryList, &addressMapEntry{addr: addr, value: value}) +} + +// Delete removes addr from the map. +func (a *AddressMap) Delete(addr Address) { + addrKey := toMapKey(&addr) + entryList := a.m[addrKey] + entry := entryList.find(addr) + if entry == -1 { + return + } + if len(entryList) == 1 { + entryList = nil + } else { + copy(entryList[entry:], entryList[entry+1:]) + entryList = entryList[:len(entryList)-1] + } + a.m[addrKey] = entryList +} + +// Len returns the number of entries in the map. +func (a *AddressMap) Len() int { + ret := 0 + for _, entryList := range a.m { + ret += len(entryList) + } + return ret +} + +// Keys returns a slice of all current map keys. +func (a *AddressMap) Keys() []Address { + ret := make([]Address, 0, a.Len()) + for _, entryList := range a.m { + for _, entry := range entryList { + ret = append(ret, entry.addr) + } + } + return ret +} + +// Values returns a slice of all current map values. +func (a *AddressMap) Values() []interface{} { + ret := make([]interface{}, 0, a.Len()) + for _, entryList := range a.m { + for _, entry := range entryList { + ret = append(ret, entry.value) + } + } + return ret +} diff --git a/vendor/google.golang.org/grpc/resolver/resolver.go b/vendor/google.golang.org/grpc/resolver/resolver.go index 775ee4d..654e9ce 100644 --- a/vendor/google.golang.org/grpc/resolver/resolver.go +++ b/vendor/google.golang.org/grpc/resolver/resolver.go @@ -20,6 +20,18 @@ // All APIs in this package are experimental. package resolver +import ( + "context" + "net" + "net/url" + "strings" + + "google.golang.org/grpc/attributes" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/pretty" + "google.golang.org/grpc/serviceconfig" +) + var ( // m is a map from scheme to resolver builder. m = make(map[string]Builder) @@ -29,8 +41,12 @@ var ( // TODO(bar) install dns resolver in init(){}. -// Register registers the resolver builder to the resolver map. -// b.Scheme will be used as the scheme registered with this builder. +// Register registers the resolver builder to the resolver map. b.Scheme will be +// used as the scheme registered with this builder. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple Resolvers are +// registered with the same name, the one registered last will take effect. func Register(b Builder) { m[b.Scheme()] = b } @@ -45,8 +61,12 @@ func Get(scheme string) Builder { return nil } -// SetDefaultScheme sets the default scheme that will be used. -// The default default scheme is "passthrough". +// SetDefaultScheme sets the default scheme that will be used. The default +// default scheme is "passthrough". +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. The scheme set last overrides +// previously set values. func SetDefaultScheme(scheme string) { defaultScheme = scheme } @@ -57,35 +77,121 @@ func GetDefaultScheme() string { } // AddressType indicates the address type returned by name resolution. +// +// Deprecated: use Attributes in Address instead. type AddressType uint8 const ( // Backend indicates the address is for a backend server. + // + // Deprecated: use Attributes in Address instead. Backend AddressType = iota // GRPCLB indicates the address is for a grpclb load balancer. + // + // Deprecated: to select the GRPCLB load balancing policy, use a service + // config with a corresponding loadBalancingConfig. To supply balancer + // addresses to the GRPCLB load balancing policy, set State.Attributes + // using balancer/grpclb/state.Set. GRPCLB ) // Address represents a server the client connects to. -// This is the EXPERIMENTAL API and may be changed or extended in the future. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type Address struct { // Addr is the server address on which a connection will be established. Addr string - // Type is the type of this address. - Type AddressType + // ServerName is the name of this address. + // If non-empty, the ServerName is used as the transport certification authority for + // the address, instead of the hostname from the Dial target string. In most cases, + // this should not be set. // - // e.g. if Type is GRPCLB, ServerName should be the name of the remote load + // If Type is GRPCLB, ServerName should be the name of the remote load // balancer, not the name of the backend. + // + // WARNING: ServerName must only be populated with trusted values. It + // is insecure to populate it with data from untrusted inputs since untrusted + // values could be used to bypass the authority checks performed by TLS. ServerName string + + // Attributes contains arbitrary data about this address intended for + // consumption by the SubConn. + Attributes *attributes.Attributes + + // BalancerAttributes contains arbitrary data about this address intended + // for consumption by the LB policy. These attribes do not affect SubConn + // creation, connection establishment, handshaking, etc. + BalancerAttributes *attributes.Attributes + + // Type is the type of this address. + // + // Deprecated: use Attributes instead. + Type AddressType + // Metadata is the information associated with Addr, which may be used // to make load balancing decision. + // + // Deprecated: use Attributes instead. Metadata interface{} } -// BuildOption includes additional information for the builder to create +// Equal returns whether a and o are identical. Metadata is compared directly, +// not with any recursive introspection. +func (a Address) Equal(o Address) bool { + return a.Addr == o.Addr && a.ServerName == o.ServerName && + a.Attributes.Equal(o.Attributes) && + a.BalancerAttributes.Equal(o.BalancerAttributes) && + a.Type == o.Type && a.Metadata == o.Metadata +} + +// String returns JSON formatted string representation of the address. +func (a Address) String() string { + return pretty.ToJSON(a) +} + +// BuildOptions includes additional information for the builder to create // the resolver. -type BuildOption struct { +type BuildOptions struct { + // DisableServiceConfig indicates whether a resolver implementation should + // fetch service config data. + DisableServiceConfig bool + // DialCreds is the transport credentials used by the ClientConn for + // communicating with the target gRPC service (set via + // WithTransportCredentials). In cases where a name resolution service + // requires the same credentials, the resolver may use this field. In most + // cases though, it is not appropriate, and this field may be ignored. + DialCreds credentials.TransportCredentials + // CredsBundle is the credentials bundle used by the ClientConn for + // communicating with the target gRPC service (set via + // WithCredentialsBundle). In cases where a name resolution service + // requires the same credentials, the resolver may use this field. In most + // cases though, it is not appropriate, and this field may be ignored. + CredsBundle credentials.Bundle + // Dialer is the custom dialer used by the ClientConn for dialling the + // target gRPC service (set via WithDialer). In cases where a name + // resolution service requires the same dialer, the resolver may use this + // field. In most cases though, it is not appropriate, and this field may + // be ignored. + Dialer func(context.Context, string) (net.Conn, error) +} + +// State contains the current Resolver state relevant to the ClientConn. +type State struct { + // Addresses is the latest set of resolved addresses for the target. + Addresses []Address + + // ServiceConfig contains the result from parsing the latest service + // config. If it is nil, it indicates no service config is present or the + // resolver does not provide service configs. + ServiceConfig *serviceconfig.ParseResult + + // Attributes contains arbitrary data about the resolver intended for + // consumption by the load balancing policy. + Attributes *attributes.Attributes } // ClientConn contains the callbacks for resolver to notify any updates @@ -96,21 +202,75 @@ type BuildOption struct { // testing, the new implementation should embed this interface. This allows // gRPC to add new methods to this interface. type ClientConn interface { + // UpdateState updates the state of the ClientConn appropriately. + UpdateState(State) error + // ReportError notifies the ClientConn that the Resolver encountered an + // error. The ClientConn will notify the load balancer and begin calling + // ResolveNow on the Resolver with exponential backoff. + ReportError(error) // NewAddress is called by resolver to notify ClientConn a new list // of resolved addresses. // The address list should be the complete list of resolved addresses. + // + // Deprecated: Use UpdateState instead. NewAddress(addresses []Address) // NewServiceConfig is called by resolver to notify ClientConn a new // service config. The service config should be provided as a json string. + // + // Deprecated: Use UpdateState instead. NewServiceConfig(serviceConfig string) + // ParseServiceConfig parses the provided service config and returns an + // object that provides the parsed config. + ParseServiceConfig(serviceConfigJSON string) *serviceconfig.ParseResult } // Target represents a target for gRPC, as specified in: // https://github.com/grpc/grpc/blob/master/doc/naming.md. +// It is parsed from the target string that gets passed into Dial or DialContext +// by the user. And gRPC passes it to the resolver and the balancer. +// +// If the target follows the naming spec, and the parsed scheme is registered +// with gRPC, we will parse the target string according to the spec. If the +// target does not contain a scheme or if the parsed scheme is not registered +// (i.e. no corresponding resolver available to resolve the endpoint), we will +// apply the default scheme, and will attempt to reparse it. +// +// Examples: +// +// - "dns://some_authority/foo.bar" +// Target{Scheme: "dns", Authority: "some_authority", Endpoint: "foo.bar"} +// - "foo.bar" +// Target{Scheme: resolver.GetDefaultScheme(), Endpoint: "foo.bar"} +// - "unknown_scheme://authority/endpoint" +// Target{Scheme: resolver.GetDefaultScheme(), Endpoint: "unknown_scheme://authority/endpoint"} type Target struct { - Scheme string + // Deprecated: use URL.Scheme instead. + Scheme string + // Deprecated: use URL.Host instead. Authority string - Endpoint string + // URL contains the parsed dial target with an optional default scheme added + // to it if the original dial target contained no scheme or contained an + // unregistered scheme. Any query params specified in the original dial + // target can be accessed from here. + URL url.URL +} + +// Endpoint retrieves endpoint without leading "/" from either `URL.Path` +// or `URL.Opaque`. The latter is used when the former is empty. +func (t Target) Endpoint() string { + endpoint := t.URL.Path + if endpoint == "" { + endpoint = t.URL.Opaque + } + // For targets of the form "[scheme]://[authority]/endpoint, the endpoint + // value returned from url.Parse() contains a leading "/". Although this is + // in accordance with RFC 3986, we do not want to break existing resolver + // implementations which expect the endpoint without the leading "/". So, we + // end up stripping the leading "/" here. But this will result in an + // incorrect parsing for something like "unix:///path/to/socket". Since we + // own the "unix" resolver, we can workaround in the unix resolver by using + // the `URL` field. + return strings.TrimPrefix(endpoint, "/") } // Builder creates a resolver that will be used to watch name resolution updates. @@ -119,14 +279,14 @@ type Builder interface { // // gRPC dial calls Build synchronously, and fails if the returned error is // not nil. - Build(target Target, cc ClientConn, opts BuildOption) (Resolver, error) + Build(target Target, cc ClientConn, opts BuildOptions) (Resolver, error) // Scheme returns the scheme supported by this resolver. // Scheme is defined at https://github.com/grpc/grpc/blob/master/doc/naming.md. Scheme() string } -// ResolveNowOption includes additional information for ResolveNow. -type ResolveNowOption struct{} +// ResolveNowOptions includes additional information for ResolveNow. +type ResolveNowOptions struct{} // Resolver watches for the updates on the specified target. // Updates include address updates and service config updates. @@ -135,7 +295,7 @@ type Resolver interface { // again. It's just a hint, resolver can ignore this if it's not necessary. // // It could be called multiple times concurrently. - ResolveNow(ResolveNowOption) + ResolveNow(ResolveNowOptions) // Close closes the resolver. Close() } diff --git a/vendor/google.golang.org/grpc/resolver_conn_wrapper.go b/vendor/google.golang.org/grpc/resolver_conn_wrapper.go index 75b8ce1..05a9d4e 100644 --- a/vendor/google.golang.org/grpc/resolver_conn_wrapper.go +++ b/vendor/google.golang.org/grpc/resolver_conn_wrapper.go @@ -19,140 +19,158 @@ package grpc import ( - "fmt" "strings" + "sync" - "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/balancer" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/channelz" + "google.golang.org/grpc/internal/grpcsync" + "google.golang.org/grpc/internal/pretty" "google.golang.org/grpc/resolver" + "google.golang.org/grpc/serviceconfig" ) // ccResolverWrapper is a wrapper on top of cc for resolvers. -// It implements resolver.ClientConnection interface. +// It implements resolver.ClientConn interface. type ccResolverWrapper struct { - cc *ClientConn - resolver resolver.Resolver - addrCh chan []resolver.Address - scCh chan string - done chan struct{} -} - -// split2 returns the values from strings.SplitN(s, sep, 2). -// If sep is not found, it returns ("", s, false) instead. -func split2(s, sep string) (string, string, bool) { - spl := strings.SplitN(s, sep, 2) - if len(spl) < 2 { - return "", "", false - } - return spl[0], spl[1], true -} + cc *ClientConn + resolverMu sync.Mutex + resolver resolver.Resolver + done *grpcsync.Event + curState resolver.State -// parseTarget splits target into a struct containing scheme, authority and -// endpoint. -// -// If target is not a valid scheme://authority/endpoint, it returns {Endpoint: -// target}. -func parseTarget(target string) (ret resolver.Target) { - var ok bool - ret.Scheme, ret.Endpoint, ok = split2(target, "://") - if !ok { - return resolver.Target{Endpoint: target} - } - ret.Authority, ret.Endpoint, ok = split2(ret.Endpoint, "/") - if !ok { - return resolver.Target{Endpoint: target} - } - return ret + incomingMu sync.Mutex // Synchronizes all the incoming calls. } -// newCCResolverWrapper parses cc.target for scheme and gets the resolver -// builder for this scheme. It then builds the resolver and starts the -// monitoring goroutine for it. -// -// If withResolverBuilder dial option is set, the specified resolver will be -// used instead. -func newCCResolverWrapper(cc *ClientConn) (*ccResolverWrapper, error) { - rb := cc.dopts.resolverBuilder - if rb == nil { - return nil, fmt.Errorf("could not get resolver for scheme: %q", cc.parsedTarget.Scheme) +// newCCResolverWrapper uses the resolver.Builder to build a Resolver and +// returns a ccResolverWrapper object which wraps the newly built resolver. +func newCCResolverWrapper(cc *ClientConn, rb resolver.Builder) (*ccResolverWrapper, error) { + ccr := &ccResolverWrapper{ + cc: cc, + done: grpcsync.NewEvent(), } - ccr := &ccResolverWrapper{ - cc: cc, - addrCh: make(chan []resolver.Address, 1), - scCh: make(chan string, 1), - done: make(chan struct{}), + var credsClone credentials.TransportCredentials + if creds := cc.dopts.copts.TransportCredentials; creds != nil { + credsClone = creds.Clone() + } + rbo := resolver.BuildOptions{ + DisableServiceConfig: cc.dopts.disableServiceConfig, + DialCreds: credsClone, + CredsBundle: cc.dopts.copts.CredsBundle, + Dialer: cc.dopts.copts.Dialer, } var err error - ccr.resolver, err = rb.Build(cc.parsedTarget, ccr, resolver.BuildOption{}) + // We need to hold the lock here while we assign to the ccr.resolver field + // to guard against a data race caused by the following code path, + // rb.Build-->ccr.ReportError-->ccr.poll-->ccr.resolveNow, would end up + // accessing ccr.resolver which is being assigned here. + ccr.resolverMu.Lock() + defer ccr.resolverMu.Unlock() + ccr.resolver, err = rb.Build(cc.parsedTarget, ccr, rbo) if err != nil { return nil, err } return ccr, nil } -func (ccr *ccResolverWrapper) start() { - go ccr.watcher() +func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOptions) { + ccr.resolverMu.Lock() + if !ccr.done.HasFired() { + ccr.resolver.ResolveNow(o) + } + ccr.resolverMu.Unlock() } -// watcher processes address updates and service config updates sequencially. -// Otherwise, we need to resolve possible races between address and service -// config (e.g. they specify different balancer types). -func (ccr *ccResolverWrapper) watcher() { - for { - select { - case <-ccr.done: - return - default: - } - - select { - case addrs := <-ccr.addrCh: - select { - case <-ccr.done: - return - default: - } - grpclog.Infof("ccResolverWrapper: sending new addresses to cc: %v", addrs) - ccr.cc.handleResolvedAddrs(addrs, nil) - case sc := <-ccr.scCh: - select { - case <-ccr.done: - return - default: - } - grpclog.Infof("ccResolverWrapper: got new service config: %v", sc) - ccr.cc.handleServiceConfig(sc) - case <-ccr.done: - return - } - } +func (ccr *ccResolverWrapper) close() { + ccr.resolverMu.Lock() + ccr.resolver.Close() + ccr.done.Fire() + ccr.resolverMu.Unlock() } -func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOption) { - ccr.resolver.ResolveNow(o) +func (ccr *ccResolverWrapper) UpdateState(s resolver.State) error { + ccr.incomingMu.Lock() + defer ccr.incomingMu.Unlock() + if ccr.done.HasFired() { + return nil + } + ccr.addChannelzTraceEvent(s) + ccr.curState = s + if err := ccr.cc.updateResolverState(ccr.curState, nil); err == balancer.ErrBadResolverState { + return balancer.ErrBadResolverState + } + return nil } -func (ccr *ccResolverWrapper) close() { - ccr.resolver.Close() - close(ccr.done) +func (ccr *ccResolverWrapper) ReportError(err error) { + ccr.incomingMu.Lock() + defer ccr.incomingMu.Unlock() + if ccr.done.HasFired() { + return + } + channelz.Warningf(logger, ccr.cc.channelzID, "ccResolverWrapper: reporting error to cc: %v", err) + ccr.cc.updateResolverState(resolver.State{}, err) } -// NewAddress is called by the resolver implemenetion to send addresses to gRPC. +// NewAddress is called by the resolver implementation to send addresses to gRPC. func (ccr *ccResolverWrapper) NewAddress(addrs []resolver.Address) { - select { - case <-ccr.addrCh: - default: + ccr.incomingMu.Lock() + defer ccr.incomingMu.Unlock() + if ccr.done.HasFired() { + return } - ccr.addrCh <- addrs + ccr.addChannelzTraceEvent(resolver.State{Addresses: addrs, ServiceConfig: ccr.curState.ServiceConfig}) + ccr.curState.Addresses = addrs + ccr.cc.updateResolverState(ccr.curState, nil) } -// NewServiceConfig is called by the resolver implemenetion to send service -// configs to gPRC. +// NewServiceConfig is called by the resolver implementation to send service +// configs to gRPC. func (ccr *ccResolverWrapper) NewServiceConfig(sc string) { - select { - case <-ccr.scCh: - default: + ccr.incomingMu.Lock() + defer ccr.incomingMu.Unlock() + if ccr.done.HasFired() { + return + } + channelz.Infof(logger, ccr.cc.channelzID, "ccResolverWrapper: got new service config: %s", sc) + if ccr.cc.dopts.disableServiceConfig { + channelz.Info(logger, ccr.cc.channelzID, "Service config lookups disabled; ignoring config") + return + } + scpr := parseServiceConfig(sc) + if scpr.Err != nil { + channelz.Warningf(logger, ccr.cc.channelzID, "ccResolverWrapper: error parsing service config: %v", scpr.Err) + return + } + ccr.addChannelzTraceEvent(resolver.State{Addresses: ccr.curState.Addresses, ServiceConfig: scpr}) + ccr.curState.ServiceConfig = scpr + ccr.cc.updateResolverState(ccr.curState, nil) +} + +func (ccr *ccResolverWrapper) ParseServiceConfig(scJSON string) *serviceconfig.ParseResult { + return parseServiceConfig(scJSON) +} + +func (ccr *ccResolverWrapper) addChannelzTraceEvent(s resolver.State) { + var updates []string + var oldSC, newSC *ServiceConfig + var oldOK, newOK bool + if ccr.curState.ServiceConfig != nil { + oldSC, oldOK = ccr.curState.ServiceConfig.Config.(*ServiceConfig) + } + if s.ServiceConfig != nil { + newSC, newOK = s.ServiceConfig.Config.(*ServiceConfig) + } + if oldOK != newOK || (oldOK && newOK && oldSC.rawJSONString != newSC.rawJSONString) { + updates = append(updates, "service config updated") + } + if len(ccr.curState.Addresses) > 0 && len(s.Addresses) == 0 { + updates = append(updates, "resolver returned an empty address list") + } else if len(ccr.curState.Addresses) == 0 && len(s.Addresses) > 0 { + updates = append(updates, "resolver returned new addresses") } - ccr.scCh <- sc + channelz.Infof(logger, ccr.cc.channelzID, "Resolver state updated: %s (%v)", pretty.ToJSON(s), strings.Join(updates, "; ")) } diff --git a/vendor/google.golang.org/grpc/rpc_util.go b/vendor/google.golang.org/grpc/rpc_util.go index 00a9976..cb7020e 100644 --- a/vendor/google.golang.org/grpc/rpc_util.go +++ b/vendor/google.golang.org/grpc/rpc_util.go @@ -21,29 +21,29 @@ package grpc import ( "bytes" "compress/gzip" + "context" "encoding/binary" "fmt" "io" - "io/ioutil" "math" - "net/url" "strings" "sync" "time" - "golang.org/x/net/context" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" "google.golang.org/grpc/encoding" "google.golang.org/grpc/encoding/proto" + "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" "google.golang.org/grpc/status" - "google.golang.org/grpc/transport" ) // Compressor defines the interface gRPC uses to compress a message. +// +// Deprecated: use package encoding. type Compressor interface { // Do compresses p into w. Do(w io.Writer, p []byte) error @@ -56,6 +56,8 @@ type gzipCompressor struct { } // NewGZIPCompressor creates a Compressor based on GZIP. +// +// Deprecated: use package encoding/gzip. func NewGZIPCompressor() Compressor { c, _ := NewGZIPCompressorWithLevel(gzip.DefaultCompression) return c @@ -65,6 +67,8 @@ func NewGZIPCompressor() Compressor { // of assuming DefaultCompression. // // The error returned will be nil if the level is valid. +// +// Deprecated: use package encoding/gzip. func NewGZIPCompressorWithLevel(level int) (Compressor, error) { if level < gzip.DefaultCompression || level > gzip.BestCompression { return nil, fmt.Errorf("grpc: invalid compression level: %d", level) @@ -72,7 +76,7 @@ func NewGZIPCompressorWithLevel(level int) (Compressor, error) { return &gzipCompressor{ pool: sync.Pool{ New: func() interface{} { - w, err := gzip.NewWriterLevel(ioutil.Discard, level) + w, err := gzip.NewWriterLevel(io.Discard, level) if err != nil { panic(err) } @@ -97,6 +101,8 @@ func (c *gzipCompressor) Type() string { } // Decompressor defines the interface gRPC uses to decompress a message. +// +// Deprecated: use package encoding. type Decompressor interface { // Do reads the data from r and uncompress them. Do(r io.Reader) ([]byte, error) @@ -109,6 +115,8 @@ type gzipDecompressor struct { } // NewGZIPDecompressor creates a Decompressor based on GZIP. +// +// Deprecated: use package encoding/gzip. func NewGZIPDecompressor() Decompressor { return &gzipDecompressor{} } @@ -134,7 +142,7 @@ func (d *gzipDecompressor) Do(r io.Reader) ([]byte, error) { z.Close() d.pool.Put(z) }() - return ioutil.ReadAll(z) + return io.ReadAll(z) } func (d *gzipDecompressor) Type() string { @@ -145,17 +153,19 @@ func (d *gzipDecompressor) Type() string { type callInfo struct { compressorType string failFast bool - stream *clientStream - traceInfo traceInfo // in trace.go maxReceiveMessageSize *int maxSendMessageSize *int creds credentials.PerRPCCredentials contentSubtype string codec baseCodec + maxRetryRPCBufferSize int } func defaultCallInfo() *callInfo { - return &callInfo{failFast: true} + return &callInfo{ + failFast: true, + maxRetryRPCBufferSize: 256 * 1024, // 256KB + } } // CallOption configures a Call before it starts or extracts information from @@ -167,7 +177,7 @@ type CallOption interface { // after is called after the call has completed. after cannot return an // error, so any failures should be reported via output parameters. - after(*callInfo) + after(*callInfo, *csAttempt) } // EmptyCallOption does not alter the Call configuration. @@ -175,8 +185,8 @@ type CallOption interface { // by interceptors. type EmptyCallOption struct{} -func (EmptyCallOption) before(*callInfo) error { return nil } -func (EmptyCallOption) after(*callInfo) {} +func (EmptyCallOption) before(*callInfo) error { return nil } +func (EmptyCallOption) after(*callInfo, *csAttempt) {} // Header returns a CallOptions that retrieves the header metadata // for a unary RPC. @@ -186,16 +196,18 @@ func Header(md *metadata.MD) CallOption { // HeaderCallOption is a CallOption for collecting response header metadata. // The metadata field will be populated *after* the RPC completes. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type HeaderCallOption struct { HeaderAddr *metadata.MD } func (o HeaderCallOption) before(c *callInfo) error { return nil } -func (o HeaderCallOption) after(c *callInfo) { - if c.stream != nil { - *o.HeaderAddr, _ = c.stream.Header() - } +func (o HeaderCallOption) after(c *callInfo, attempt *csAttempt) { + *o.HeaderAddr, _ = attempt.s.Header() } // Trailer returns a CallOptions that retrieves the trailer metadata @@ -206,42 +218,47 @@ func Trailer(md *metadata.MD) CallOption { // TrailerCallOption is a CallOption for collecting response trailer metadata. // The metadata field will be populated *after* the RPC completes. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type TrailerCallOption struct { TrailerAddr *metadata.MD } func (o TrailerCallOption) before(c *callInfo) error { return nil } -func (o TrailerCallOption) after(c *callInfo) { - if c.stream != nil { - *o.TrailerAddr = c.stream.Trailer() - } +func (o TrailerCallOption) after(c *callInfo, attempt *csAttempt) { + *o.TrailerAddr = attempt.s.Trailer() } -// Peer returns a CallOption that retrieves peer information for a -// unary RPC. +// Peer returns a CallOption that retrieves peer information for a unary RPC. +// The peer field will be populated *after* the RPC completes. func Peer(p *peer.Peer) CallOption { return PeerCallOption{PeerAddr: p} } // PeerCallOption is a CallOption for collecting the identity of the remote // peer. The peer field will be populated *after* the RPC completes. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type PeerCallOption struct { PeerAddr *peer.Peer } func (o PeerCallOption) before(c *callInfo) error { return nil } -func (o PeerCallOption) after(c *callInfo) { - if c.stream != nil { - if x, ok := peer.FromContext(c.stream.Context()); ok { - *o.PeerAddr = *x - } +func (o PeerCallOption) after(c *callInfo, attempt *csAttempt) { + if x, ok := peer.FromContext(attempt.s.Context()); ok { + *o.PeerAddr = *x } } -// FailFast configures the action to take when an RPC is attempted on broken -// connections or unreachable servers. If failFast is true, the RPC will fail +// WaitForReady configures the action to take when an RPC is attempted on broken +// connections or unreachable servers. If waitForReady is false and the +// connection is in the TRANSIENT_FAILURE state, the RPC will fail // immediately. Otherwise, the RPC client will block the call until a // connection is available (or the call is canceled or times out) and will // retry the call if it fails due to a transient error. gRPC will not retry if @@ -249,14 +266,25 @@ func (o PeerCallOption) after(c *callInfo) { // the data. Please refer to // https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md. // -// By default, RPCs are "Fail Fast". +// By default, RPCs don't "wait for ready". +func WaitForReady(waitForReady bool) CallOption { + return FailFastCallOption{FailFast: !waitForReady} +} + +// FailFast is the opposite of WaitForReady. +// +// Deprecated: use WaitForReady. func FailFast(failFast bool) CallOption { return FailFastCallOption{FailFast: failFast} } // FailFastCallOption is a CallOption for indicating whether an RPC should fail // fast or not. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type FailFastCallOption struct { FailFast bool } @@ -265,16 +293,22 @@ func (o FailFastCallOption) before(c *callInfo) error { c.failFast = o.FailFast return nil } -func (o FailFastCallOption) after(c *callInfo) { return } +func (o FailFastCallOption) after(c *callInfo, attempt *csAttempt) {} -// MaxCallRecvMsgSize returns a CallOption which sets the maximum message size the client can receive. -func MaxCallRecvMsgSize(s int) CallOption { - return MaxRecvMsgSizeCallOption{MaxRecvMsgSize: s} +// MaxCallRecvMsgSize returns a CallOption which sets the maximum message size +// in bytes the client can receive. If this is not set, gRPC uses the default +// 4MB. +func MaxCallRecvMsgSize(bytes int) CallOption { + return MaxRecvMsgSizeCallOption{MaxRecvMsgSize: bytes} } // MaxRecvMsgSizeCallOption is a CallOption that indicates the maximum message -// size the client can receive. -// This is an EXPERIMENTAL API. +// size in bytes the client can receive. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type MaxRecvMsgSizeCallOption struct { MaxRecvMsgSize int } @@ -283,16 +317,22 @@ func (o MaxRecvMsgSizeCallOption) before(c *callInfo) error { c.maxReceiveMessageSize = &o.MaxRecvMsgSize return nil } -func (o MaxRecvMsgSizeCallOption) after(c *callInfo) { return } +func (o MaxRecvMsgSizeCallOption) after(c *callInfo, attempt *csAttempt) {} -// MaxCallSendMsgSize returns a CallOption which sets the maximum message size the client can send. -func MaxCallSendMsgSize(s int) CallOption { - return MaxSendMsgSizeCallOption{MaxSendMsgSize: s} +// MaxCallSendMsgSize returns a CallOption which sets the maximum message size +// in bytes the client can send. If this is not set, gRPC uses the default +// `math.MaxInt32`. +func MaxCallSendMsgSize(bytes int) CallOption { + return MaxSendMsgSizeCallOption{MaxSendMsgSize: bytes} } // MaxSendMsgSizeCallOption is a CallOption that indicates the maximum message -// size the client can send. -// This is an EXPERIMENTAL API. +// size in bytes the client can send. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type MaxSendMsgSizeCallOption struct { MaxSendMsgSize int } @@ -301,7 +341,7 @@ func (o MaxSendMsgSizeCallOption) before(c *callInfo) error { c.maxSendMessageSize = &o.MaxSendMsgSize return nil } -func (o MaxSendMsgSizeCallOption) after(c *callInfo) { return } +func (o MaxSendMsgSizeCallOption) after(c *callInfo, attempt *csAttempt) {} // PerRPCCredentials returns a CallOption that sets credentials.PerRPCCredentials // for a call. @@ -311,7 +351,11 @@ func PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption { // PerRPCCredsCallOption is a CallOption that indicates the per-RPC // credentials to use for the call. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type PerRPCCredsCallOption struct { Creds credentials.PerRPCCredentials } @@ -320,19 +364,26 @@ func (o PerRPCCredsCallOption) before(c *callInfo) error { c.creds = o.Creds return nil } -func (o PerRPCCredsCallOption) after(c *callInfo) { return } +func (o PerRPCCredsCallOption) after(c *callInfo, attempt *csAttempt) {} // UseCompressor returns a CallOption which sets the compressor used when // sending the request. If WithCompressor is also set, UseCompressor has // higher priority. // -// This API is EXPERIMENTAL. +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. func UseCompressor(name string) CallOption { return CompressorCallOption{CompressorType: name} } // CompressorCallOption is a CallOption that indicates the compressor to use. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type CompressorCallOption struct { CompressorType string } @@ -341,7 +392,7 @@ func (o CompressorCallOption) before(c *callInfo) error { c.compressorType = o.CompressorType return nil } -func (o CompressorCallOption) after(c *callInfo) { return } +func (o CompressorCallOption) after(c *callInfo, attempt *csAttempt) {} // CallContentSubtype returns a CallOption that will set the content-subtype // for a call. For example, if content-subtype is "json", the Content-Type over @@ -350,13 +401,13 @@ func (o CompressorCallOption) after(c *callInfo) { return } // https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for // more details. // -// If CallCustomCodec is not also used, the content-subtype will be used to -// look up the Codec to use in the registry controlled by RegisterCodec. See -// the documention on RegisterCodec for details on registration. The lookup -// of content-subtype is case-insensitive. If no such Codec is found, the call +// If ForceCodec is not also used, the content-subtype will be used to look up +// the Codec to use in the registry controlled by RegisterCodec. See the +// documentation on RegisterCodec for details on registration. The lookup of +// content-subtype is case-insensitive. If no such Codec is found, the call // will result in an error with code codes.Internal. // -// If CallCustomCodec is also used, that Codec will be used for all request and +// If ForceCodec is also used, that Codec will be used for all request and // response messages, with the content-subtype set to the given contentSubtype // here for requests. func CallContentSubtype(contentSubtype string) CallOption { @@ -365,7 +416,11 @@ func CallContentSubtype(contentSubtype string) CallOption { // ContentSubtypeCallOption is a CallOption that indicates the content-subtype // used for marshaling messages. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type ContentSubtypeCallOption struct { ContentSubtype string } @@ -374,11 +429,12 @@ func (o ContentSubtypeCallOption) before(c *callInfo) error { c.contentSubtype = o.ContentSubtype return nil } -func (o ContentSubtypeCallOption) after(c *callInfo) { return } +func (o ContentSubtypeCallOption) after(c *callInfo, attempt *csAttempt) {} -// CallCustomCodec returns a CallOption that will set the given Codec to be -// used for all request and response messages for a call. The result of calling -// String() will be used as the content-subtype in a case-insensitive manner. +// ForceCodec returns a CallOption that will set codec to be used for all +// request and response messages for a call. The result of calling Name() will +// be used as the content-subtype after converting to lowercase, unless +// CallContentSubtype is also used. // // See Content-Type on // https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for @@ -388,13 +444,47 @@ func (o ContentSubtypeCallOption) after(c *callInfo) { return } // // This function is provided for advanced users; prefer to use only // CallContentSubtype to select a registered codec instead. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ForceCodec(codec encoding.Codec) CallOption { + return ForceCodecCallOption{Codec: codec} +} + +// ForceCodecCallOption is a CallOption that indicates the codec used for +// marshaling messages. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type ForceCodecCallOption struct { + Codec encoding.Codec +} + +func (o ForceCodecCallOption) before(c *callInfo) error { + c.codec = o.Codec + return nil +} +func (o ForceCodecCallOption) after(c *callInfo, attempt *csAttempt) {} + +// CallCustomCodec behaves like ForceCodec, but accepts a grpc.Codec instead of +// an encoding.Codec. +// +// Deprecated: use ForceCodec instead. func CallCustomCodec(codec Codec) CallOption { return CustomCodecCallOption{Codec: codec} } // CustomCodecCallOption is a CallOption that indicates the codec used for // marshaling messages. -// This is an EXPERIMENTAL API. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type CustomCodecCallOption struct { Codec Codec } @@ -403,14 +493,42 @@ func (o CustomCodecCallOption) before(c *callInfo) error { c.codec = o.Codec return nil } -func (o CustomCodecCallOption) after(c *callInfo) { return } +func (o CustomCodecCallOption) after(c *callInfo, attempt *csAttempt) {} + +// MaxRetryRPCBufferSize returns a CallOption that limits the amount of memory +// used for buffering this RPC's requests for retry purposes. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func MaxRetryRPCBufferSize(bytes int) CallOption { + return MaxRetryRPCBufferSizeCallOption{bytes} +} + +// MaxRetryRPCBufferSizeCallOption is a CallOption indicating the amount of +// memory to be used for caching this RPC for retry purposes. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type MaxRetryRPCBufferSizeCallOption struct { + MaxRetryRPCBufferSize int +} + +func (o MaxRetryRPCBufferSizeCallOption) before(c *callInfo) error { + c.maxRetryRPCBufferSize = o.MaxRetryRPCBufferSize + return nil +} +func (o MaxRetryRPCBufferSizeCallOption) after(c *callInfo, attempt *csAttempt) {} // The format of the payload: compressed or not? type payloadFormat uint8 const ( - compressionNone payloadFormat = iota // no compression - compressionMade + compressionNone payloadFormat = 0 // no compression + compressionMade payloadFormat = 1 // compressed ) // parser reads complete gRPC messages from the underlying reader. @@ -431,10 +549,11 @@ type parser struct { // format. The caller owns the returned msg memory. // // If there is an error, possible values are: -// * io.EOF, when no messages remain -// * io.ErrUnexpectedEOF -// * of type transport.ConnectionError -// * of type transport.StreamError +// - io.EOF, when no messages remain +// - io.ErrUnexpectedEOF +// - of type transport.ConnectionError +// - an error from the status package +// // No other error values or types must be returned, which also means // that the underlying io.Reader must not return an incompatible // error. @@ -467,65 +586,85 @@ func (p *parser) recvMsg(maxReceiveMessageSize int) (pf payloadFormat, msg []byt return pf, msg, nil } -// encode serializes msg and returns a buffer of message header and a buffer of msg. -// If msg is nil, it generates the message header and an empty msg buffer. -// TODO(ddyihai): eliminate extra Compressor parameter. -func encode(c baseCodec, msg interface{}, cp Compressor, outPayload *stats.OutPayload, compressor encoding.Compressor) ([]byte, []byte, error) { - var ( - b []byte - cbuf *bytes.Buffer - ) - const ( - payloadLen = 1 - sizeLen = 4 - ) - if msg != nil { - var err error - b, err = c.Marshal(msg) +// encode serializes msg and returns a buffer containing the message, or an +// error if it is too large to be transmitted by grpc. If msg is nil, it +// generates an empty message. +func encode(c baseCodec, msg interface{}) ([]byte, error) { + if msg == nil { // NOTE: typed nils will not be caught by this check + return nil, nil + } + b, err := c.Marshal(msg) + if err != nil { + return nil, status.Errorf(codes.Internal, "grpc: error while marshaling: %v", err.Error()) + } + if uint(len(b)) > math.MaxUint32 { + return nil, status.Errorf(codes.ResourceExhausted, "grpc: message too large (%d bytes)", len(b)) + } + return b, nil +} + +// compress returns the input bytes compressed by compressor or cp. If both +// compressors are nil, returns nil. +// +// TODO(dfawley): eliminate cp parameter by wrapping Compressor in an encoding.Compressor. +func compress(in []byte, cp Compressor, compressor encoding.Compressor) ([]byte, error) { + if compressor == nil && cp == nil { + return nil, nil + } + wrapErr := func(err error) error { + return status.Errorf(codes.Internal, "grpc: error while compressing: %v", err.Error()) + } + cbuf := &bytes.Buffer{} + if compressor != nil { + z, err := compressor.Compress(cbuf) if err != nil { - return nil, nil, status.Errorf(codes.Internal, "grpc: error while marshaling: %v", err.Error()) + return nil, wrapErr(err) } - if outPayload != nil { - outPayload.Payload = msg - // TODO truncate large payload. - outPayload.Data = b - outPayload.Length = len(b) + if _, err := z.Write(in); err != nil { + return nil, wrapErr(err) } - if compressor != nil || cp != nil { - cbuf = new(bytes.Buffer) - // Has compressor, check Compressor is set by UseCompressor first. - if compressor != nil { - z, _ := compressor.Compress(cbuf) - if _, err := z.Write(b); err != nil { - return nil, nil, status.Errorf(codes.Internal, "grpc: error while compressing: %v", err.Error()) - } - z.Close() - } else { - // If Compressor is not set by UseCompressor, use default Compressor - if err := cp.Do(cbuf, b); err != nil { - return nil, nil, status.Errorf(codes.Internal, "grpc: error while compressing: %v", err.Error()) - } - } - b = cbuf.Bytes() + if err := z.Close(); err != nil { + return nil, wrapErr(err) + } + } else { + if err := cp.Do(cbuf, in); err != nil { + return nil, wrapErr(err) } } - if uint(len(b)) > math.MaxUint32 { - return nil, nil, status.Errorf(codes.ResourceExhausted, "grpc: message too large (%d bytes)", len(b)) - } + return cbuf.Bytes(), nil +} + +const ( + payloadLen = 1 + sizeLen = 4 + headerLen = payloadLen + sizeLen +) - bufHeader := make([]byte, payloadLen+sizeLen) - if compressor != nil || cp != nil { - bufHeader[0] = byte(compressionMade) +// msgHeader returns a 5-byte header for the message being transmitted and the +// payload, which is compData if non-nil or data otherwise. +func msgHeader(data, compData []byte) (hdr []byte, payload []byte) { + hdr = make([]byte, headerLen) + if compData != nil { + hdr[0] = byte(compressionMade) + data = compData } else { - bufHeader[0] = byte(compressionNone) + hdr[0] = byte(compressionNone) } - // Write length of b into buf - binary.BigEndian.PutUint32(bufHeader[payloadLen:], uint32(len(b))) - if outPayload != nil { - outPayload.WireLength = payloadLen + sizeLen + len(b) + // Write length of payload into buf + binary.BigEndian.PutUint32(hdr[payloadLen:], uint32(len(data))) + return hdr, data +} + +func outPayload(client bool, msg interface{}, data, payload []byte, t time.Time) *stats.OutPayload { + return &stats.OutPayload{ + Client: client, + Payload: msg, + Data: data, + Length: len(data), + WireLength: len(payload) + headerLen, + SentTime: t, } - return bufHeader, b, nil } func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool) *status.Status { @@ -544,67 +683,119 @@ func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool return nil } -// For the two compressor parameters, both should not be set, but if they are, -// dc takes precedence over compressor. -// TODO(dfawley): wrap the old compressor/decompressor using the new API? -func recv(p *parser, c baseCodec, s *transport.Stream, dc Decompressor, m interface{}, maxReceiveMessageSize int, inPayload *stats.InPayload, compressor encoding.Compressor) error { +type payloadInfo struct { + wireLength int // The compressed length got from wire. + uncompressedBytes []byte +} + +func recvAndDecompress(p *parser, s *transport.Stream, dc Decompressor, maxReceiveMessageSize int, payInfo *payloadInfo, compressor encoding.Compressor) ([]byte, error) { pf, d, err := p.recvMsg(maxReceiveMessageSize) if err != nil { - return err + return nil, err } - if inPayload != nil { - inPayload.WireLength = len(d) + if payInfo != nil { + payInfo.wireLength = len(d) } if st := checkRecvPayload(pf, s.RecvCompress(), compressor != nil || dc != nil); st != nil { - return st.Err() + return nil, st.Err() } + var size int if pf == compressionMade { // To match legacy behavior, if the decompressor is set by WithDecompressor or RPCDecompressor, // use this decompressor as the default. if dc != nil { d, err = dc.Do(bytes.NewReader(d)) - if err != nil { - return status.Errorf(codes.Internal, "grpc: failed to decompress the received message %v", err) - } + size = len(d) } else { - dcReader, err := compressor.Decompress(bytes.NewReader(d)) - if err != nil { - return status.Errorf(codes.Internal, "grpc: failed to decompress the received message %v", err) - } - d, err = ioutil.ReadAll(dcReader) - if err != nil { - return status.Errorf(codes.Internal, "grpc: failed to decompress the received message %v", err) + d, size, err = decompress(compressor, d, maxReceiveMessageSize) + } + if err != nil { + return nil, status.Errorf(codes.Internal, "grpc: failed to decompress the received message: %v", err) + } + if size > maxReceiveMessageSize { + // TODO: Revisit the error code. Currently keep it consistent with java + // implementation. + return nil, status.Errorf(codes.ResourceExhausted, "grpc: received message after decompression larger than max (%d vs. %d)", size, maxReceiveMessageSize) + } + } + return d, nil +} + +// Using compressor, decompress d, returning data and size. +// Optionally, if data will be over maxReceiveMessageSize, just return the size. +func decompress(compressor encoding.Compressor, d []byte, maxReceiveMessageSize int) ([]byte, int, error) { + dcReader, err := compressor.Decompress(bytes.NewReader(d)) + if err != nil { + return nil, 0, err + } + if sizer, ok := compressor.(interface { + DecompressedSize(compressedBytes []byte) int + }); ok { + if size := sizer.DecompressedSize(d); size >= 0 { + if size > maxReceiveMessageSize { + return nil, size, nil } + // size is used as an estimate to size the buffer, but we + // will read more data if available. + // +MinRead so ReadFrom will not reallocate if size is correct. + buf := bytes.NewBuffer(make([]byte, 0, size+bytes.MinRead)) + bytesRead, err := buf.ReadFrom(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1)) + return buf.Bytes(), int(bytesRead), err } } - if len(d) > maxReceiveMessageSize { - // TODO: Revisit the error code. Currently keep it consistent with java - // implementation. - return status.Errorf(codes.ResourceExhausted, "grpc: received message larger than max (%d vs. %d)", len(d), maxReceiveMessageSize) + // Read from LimitReader with limit max+1. So if the underlying + // reader is over limit, the result will be bigger than max. + d, err = io.ReadAll(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1)) + return d, len(d), err +} + +// For the two compressor parameters, both should not be set, but if they are, +// dc takes precedence over compressor. +// TODO(dfawley): wrap the old compressor/decompressor using the new API? +func recv(p *parser, c baseCodec, s *transport.Stream, dc Decompressor, m interface{}, maxReceiveMessageSize int, payInfo *payloadInfo, compressor encoding.Compressor) error { + d, err := recvAndDecompress(p, s, dc, maxReceiveMessageSize, payInfo, compressor) + if err != nil { + return err } if err := c.Unmarshal(d, m); err != nil { - return status.Errorf(codes.Internal, "grpc: failed to unmarshal the received message %v", err) + return status.Errorf(codes.Internal, "grpc: failed to unmarshal the received message: %v", err) } - if inPayload != nil { - inPayload.RecvTime = time.Now() - inPayload.Payload = m - // TODO truncate large payload. - inPayload.Data = d - inPayload.Length = len(d) + if payInfo != nil { + payInfo.uncompressedBytes = d } return nil } +// Information about RPC type rpcInfo struct { - failfast bool + failfast bool + preloaderInfo *compressorInfo +} + +// Information about Preloader +// Responsible for storing codec, and compressors +// If stream (s) has context s.Context which stores rpcInfo that has non nil +// pointers to codec, and compressors, then we can use preparedMsg for Async message prep +// and reuse marshalled bytes +type compressorInfo struct { + codec baseCodec + cp Compressor + comp encoding.Compressor } type rpcInfoContextKey struct{} -func newContextWithRPCInfo(ctx context.Context, failfast bool) context.Context { - return context.WithValue(ctx, rpcInfoContextKey{}, &rpcInfo{failfast: failfast}) +func newContextWithRPCInfo(ctx context.Context, failfast bool, codec baseCodec, cp Compressor, comp encoding.Compressor) context.Context { + return context.WithValue(ctx, rpcInfoContextKey{}, &rpcInfo{ + failfast: failfast, + preloaderInfo: &compressorInfo{ + codec: codec, + cp: cp, + comp: comp, + }, + }) } func rpcInfoFromContext(ctx context.Context) (s *rpcInfo, ok bool) { @@ -615,23 +806,17 @@ func rpcInfoFromContext(ctx context.Context) (s *rpcInfo, ok bool) { // Code returns the error code for err if it was produced by the rpc system. // Otherwise, it returns codes.Unknown. // -// Deprecated: use status.FromError and Code method instead. +// Deprecated: use status.Code instead. func Code(err error) codes.Code { - if s, ok := status.FromError(err); ok { - return s.Code() - } - return codes.Unknown + return status.Code(err) } // ErrorDesc returns the error description of err if it was produced by the rpc system. // Otherwise, it returns err.Error() or empty string when err is nil. // -// Deprecated: use status.FromError and Message method instead. +// Deprecated: use status.Convert and Message method instead. func ErrorDesc(err error) string { - if s, ok := status.FromError(err); ok { - return s.Message() - } - return err.Error() + return status.Convert(err).Message() } // Errorf returns an error containing an error code and a description; @@ -642,10 +827,47 @@ func Errorf(c codes.Code, format string, a ...interface{}) error { return status.Errorf(c, format, a...) } +// toRPCErr converts an error into an error from the status package. +func toRPCErr(err error) error { + switch err { + case nil, io.EOF: + return err + case context.DeadlineExceeded: + return status.Error(codes.DeadlineExceeded, err.Error()) + case context.Canceled: + return status.Error(codes.Canceled, err.Error()) + case io.ErrUnexpectedEOF: + return status.Error(codes.Internal, err.Error()) + } + + switch e := err.(type) { + case transport.ConnectionError: + return status.Error(codes.Unavailable, e.Desc) + case *transport.NewStreamError: + return toRPCErr(e.Err) + } + + if _, ok := status.FromError(err); ok { + return err + } + + return status.Error(codes.Unknown, err.Error()) +} + // setCallInfoCodec should only be called after CallOptions have been applied. func setCallInfoCodec(c *callInfo) error { if c.codec != nil { - // codec was already set by a CallOption; use it. + // codec was already set by a CallOption; use it, but set the content + // subtype if it is not set. + if c.contentSubtype == "" { + // c.codec is a baseCodec to hide the difference between grpc.Codec and + // encoding.Codec (Name vs. String method name). We only support + // setting content subtype from encoding.Codec to avoid a behavior + // change with the deprecated version. + if ec, ok := c.codec.(encoding.Codec); ok { + c.contentSubtype = strings.ToLower(ec.Name()) + } + } return nil } @@ -663,55 +885,32 @@ func setCallInfoCodec(c *callInfo) error { return nil } -// parseDialTarget returns the network and address to pass to dialer -func parseDialTarget(target string) (net string, addr string) { - net = "tcp" - - m1 := strings.Index(target, ":") - m2 := strings.Index(target, ":/") - - // handle unix:addr which will fail with url.Parse - if m1 >= 0 && m2 < 0 { - if n := target[0:m1]; n == "unix" { - net = n - addr = target[m1+1:] - return net, addr - } - } - if m2 >= 0 { - t, err := url.Parse(target) - if err != nil { - return net, target - } - scheme := t.Scheme - addr = t.Path - if scheme == "unix" { - net = scheme - if addr == "" { - addr = t.Host - } - return net, addr - } - } - - return net, target +// channelzData is used to store channelz related data for ClientConn, addrConn and Server. +// These fields cannot be embedded in the original structs (e.g. ClientConn), since to do atomic +// operation on int64 variable on 32-bit machine, user is responsible to enforce memory alignment. +// Here, by grouping those int64 fields inside a struct, we are enforcing the alignment. +type channelzData struct { + callsStarted int64 + callsFailed int64 + callsSucceeded int64 + // lastCallStartedTime stores the timestamp that last call starts. It is of int64 type instead of + // time.Time since it's more costly to atomically update time.Time variable than int64 variable. + lastCallStartedTime int64 } // The SupportPackageIsVersion variables are referenced from generated protocol // buffer files to ensure compatibility with the gRPC version used. The latest -// support package version is 5. +// support package version is 7. // -// Older versions are kept for compatibility. They may be removed if -// compatibility cannot be maintained. +// Older versions are kept for compatibility. // // These constants should not be referenced from any other code. const ( SupportPackageIsVersion3 = true SupportPackageIsVersion4 = true SupportPackageIsVersion5 = true + SupportPackageIsVersion6 = true + SupportPackageIsVersion7 = true ) -// Version is the current grpc version. -const Version = "1.11.3" - const grpcUA = "grpc-go/" + Version diff --git a/vendor/google.golang.org/grpc/server.go b/vendor/google.golang.org/grpc/server.go index c6b413b..d5a6e78 100644 --- a/vendor/google.golang.org/grpc/server.go +++ b/vendor/google.golang.org/grpc/server.go @@ -19,7 +19,7 @@ package grpc import ( - "bytes" + "context" "errors" "fmt" "io" @@ -30,32 +30,62 @@ import ( "runtime" "strings" "sync" + "sync/atomic" "time" - "io/ioutil" - - "golang.org/x/net/context" - "golang.org/x/net/http2" "golang.org/x/net/trace" + "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" "google.golang.org/grpc/encoding" "google.golang.org/grpc/encoding/proto" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/internal" + "google.golang.org/grpc/internal/binarylog" + "google.golang.org/grpc/internal/channelz" + "google.golang.org/grpc/internal/grpcrand" + "google.golang.org/grpc/internal/grpcsync" + "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/keepalive" "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" "google.golang.org/grpc/status" "google.golang.org/grpc/tap" - "google.golang.org/grpc/transport" ) const ( defaultServerMaxReceiveMessageSize = 1024 * 1024 * 4 defaultServerMaxSendMessageSize = math.MaxInt32 + + // Server transports are tracked in a map which is keyed on listener + // address. For regular gRPC traffic, connections are accepted in Serve() + // through a call to Accept(), and we use the actual listener address as key + // when we add it to the map. But for connections received through + // ServeHTTP(), we do not have a listener and hence use this dummy value. + listenerAddressForServeHTTP = "listenerAddressForServeHTTP" ) +func init() { + internal.GetServerCredentials = func(srv *Server) credentials.TransportCredentials { + return srv.opts.creds + } + internal.DrainServerTransports = func(srv *Server, addr string) { + srv.drainServerTransports(addr) + } + internal.AddGlobalServerOptions = func(opt ...ServerOption) { + extraServerOptions = append(extraServerOptions, opt...) + } + internal.ClearGlobalServerOptions = func() { + extraServerOptions = nil + } + internal.BinaryLogger = binaryLogger + internal.JoinServerOptions = newJoinServerOption +} + +var statusOK = status.New(codes.OK, "") +var logger = grpclog.Component("core") + type methodHandler func(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor UnaryServerInterceptor) (interface{}, error) // MethodDesc represents an RPC service's method specification. @@ -75,48 +105,64 @@ type ServiceDesc struct { Metadata interface{} } -// service consists of the information of the server serving this service and -// the methods in this service. -type service struct { - server interface{} // the server for service methods - md map[string]*MethodDesc - sd map[string]*StreamDesc - mdata interface{} +// serviceInfo wraps information about a service. It is very similar to +// ServiceDesc and is constructed from it for internal purposes. +type serviceInfo struct { + // Contains the implementation for the methods in this service. + serviceImpl interface{} + methods map[string]*MethodDesc + streams map[string]*StreamDesc + mdata interface{} +} + +type serverWorkerData struct { + st transport.ServerTransport + wg *sync.WaitGroup + stream *transport.Stream } // Server is a gRPC server to serve RPC requests. type Server struct { - opts options - - mu sync.Mutex // guards following - lis map[net.Listener]bool - conns map[io.Closer]bool - serve bool - drain bool - cv *sync.Cond // signaled when connections close for GracefulStop - m map[string]*service // service name -> service info - events trace.EventLog - - quit chan struct{} - done chan struct{} - quitOnce sync.Once - doneOnce sync.Once - serveWG sync.WaitGroup // counts active Serve goroutines for GracefulStop + opts serverOptions + + mu sync.Mutex // guards following + lis map[net.Listener]bool + // conns contains all active server transports. It is a map keyed on a + // listener address with the value being the set of active transports + // belonging to that listener. + conns map[string]map[transport.ServerTransport]bool + serve bool + drain bool + cv *sync.Cond // signaled when connections close for GracefulStop + services map[string]*serviceInfo // service name -> service info + events trace.EventLog + + quit *grpcsync.Event + done *grpcsync.Event + channelzRemoveOnce sync.Once + serveWG sync.WaitGroup // counts active Serve goroutines for GracefulStop + + channelzID *channelz.Identifier + czData *channelzData + + serverWorkerChannels []chan *serverWorkerData } -type options struct { +type serverOptions struct { creds credentials.TransportCredentials codec baseCodec cp Compressor dc Decompressor unaryInt UnaryServerInterceptor streamInt StreamServerInterceptor + chainUnaryInts []UnaryServerInterceptor + chainStreamInts []StreamServerInterceptor + binaryLogger binarylog.Logger inTapHandle tap.ServerInHandle - statsHandler stats.Handler + statsHandlers []stats.Handler maxConcurrentStreams uint32 maxReceiveMessageSize int maxSendMessageSize int - useHandlerImpl bool // use http.Handler-based server unknownStreamDesc *StreamDesc keepaliveParams keepalive.ServerParameters keepalivePolicy keepalive.EnforcementPolicy @@ -125,70 +171,167 @@ type options struct { writeBufferSize int readBufferSize int connectionTimeout time.Duration + maxHeaderListSize *uint32 + headerTableSize *uint32 + numServerWorkers uint32 } -var defaultServerOptions = options{ +var defaultServerOptions = serverOptions{ maxReceiveMessageSize: defaultServerMaxReceiveMessageSize, maxSendMessageSize: defaultServerMaxSendMessageSize, connectionTimeout: 120 * time.Second, + writeBufferSize: defaultWriteBufSize, + readBufferSize: defaultReadBufSize, } +var extraServerOptions []ServerOption // A ServerOption sets options such as credentials, codec and keepalive parameters, etc. -type ServerOption func(*options) +type ServerOption interface { + apply(*serverOptions) +} + +// EmptyServerOption does not alter the server configuration. It can be embedded +// in another structure to build custom server options. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type EmptyServerOption struct{} + +func (EmptyServerOption) apply(*serverOptions) {} + +// funcServerOption wraps a function that modifies serverOptions into an +// implementation of the ServerOption interface. +type funcServerOption struct { + f func(*serverOptions) +} + +func (fdo *funcServerOption) apply(do *serverOptions) { + fdo.f(do) +} + +func newFuncServerOption(f func(*serverOptions)) *funcServerOption { + return &funcServerOption{ + f: f, + } +} + +// joinServerOption provides a way to combine arbitrary number of server +// options into one. +type joinServerOption struct { + opts []ServerOption +} -// WriteBufferSize lets you set the size of write buffer, this determines how much data can be batched -// before doing a write on the wire. +func (mdo *joinServerOption) apply(do *serverOptions) { + for _, opt := range mdo.opts { + opt.apply(do) + } +} + +func newJoinServerOption(opts ...ServerOption) ServerOption { + return &joinServerOption{opts: opts} +} + +// WriteBufferSize determines how much data can be batched before doing a write +// on the wire. The corresponding memory allocation for this buffer will be +// twice the size to keep syscalls low. The default value for this buffer is +// 32KB. Zero or negative values will disable the write buffer such that each +// write will be on underlying connection. +// Note: A Send call may not directly translate to a write. func WriteBufferSize(s int) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.writeBufferSize = s - } + }) } -// ReadBufferSize lets you set the size of read buffer, this determines how much data can be read at most -// for one read syscall. +// ReadBufferSize lets you set the size of read buffer, this determines how much +// data can be read at most for one read syscall. The default value for this +// buffer is 32KB. Zero or negative values will disable read buffer for a +// connection so data framer can access the underlying conn directly. func ReadBufferSize(s int) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.readBufferSize = s - } + }) } // InitialWindowSize returns a ServerOption that sets window size for stream. // The lower bound for window size is 64K and any value smaller than that will be ignored. func InitialWindowSize(s int32) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.initialWindowSize = s - } + }) } // InitialConnWindowSize returns a ServerOption that sets window size for a connection. // The lower bound for window size is 64K and any value smaller than that will be ignored. func InitialConnWindowSize(s int32) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.initialConnWindowSize = s - } + }) } // KeepaliveParams returns a ServerOption that sets keepalive and max-age parameters for the server. func KeepaliveParams(kp keepalive.ServerParameters) ServerOption { - return func(o *options) { - o.keepaliveParams = kp + if kp.Time > 0 && kp.Time < time.Second { + logger.Warning("Adjusting keepalive ping interval to minimum period of 1s") + kp.Time = time.Second } + + return newFuncServerOption(func(o *serverOptions) { + o.keepaliveParams = kp + }) } // KeepaliveEnforcementPolicy returns a ServerOption that sets keepalive enforcement policy for the server. func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.keepalivePolicy = kep - } + }) } // CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling. // // This will override any lookups by content-subtype for Codecs registered with RegisterCodec. +// +// Deprecated: register codecs using encoding.RegisterCodec. The server will +// automatically use registered codecs based on the incoming requests' headers. +// See also +// https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec. +// Will be supported throughout 1.x. func CustomCodec(codec Codec) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.codec = codec - } + }) +} + +// ForceServerCodec returns a ServerOption that sets a codec for message +// marshaling and unmarshaling. +// +// This will override any lookups by content-subtype for Codecs registered +// with RegisterCodec. +// +// See Content-Type on +// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for +// more details. Also see the documentation on RegisterCodec and +// CallContentSubtype for more details on the interaction between encoding.Codec +// and content-subtype. +// +// This function is provided for advanced users; prefer to register codecs +// using encoding.RegisterCodec. +// The server will automatically use registered codecs based on the incoming +// requests' headers. See also +// https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec. +// Will be supported throughout 1.x. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ForceServerCodec(codec encoding.Codec) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.codec = codec + }) } // RPCCompressor returns a ServerOption that sets a compressor for outbound @@ -197,26 +340,30 @@ func CustomCodec(codec Codec) ServerOption { // default, server messages will be sent using the same compressor with which // request messages were sent. // -// Deprecated: use encoding.RegisterCompressor instead. +// Deprecated: use encoding.RegisterCompressor instead. Will be supported +// throughout 1.x. func RPCCompressor(cp Compressor) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.cp = cp - } + }) } // RPCDecompressor returns a ServerOption that sets a decompressor for inbound // messages. It has higher priority than decompressors registered via // encoding.RegisterCompressor. // -// Deprecated: use encoding.RegisterCompressor instead. +// Deprecated: use encoding.RegisterCompressor instead. Will be supported +// throughout 1.x. func RPCDecompressor(dc Decompressor) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.dc = dc - } + }) } // MaxMsgSize returns a ServerOption to set the max message size in bytes the server can receive. -// If this is not set, gRPC uses the default limit. Deprecated: use MaxRecvMsgSize instead. +// If this is not set, gRPC uses the default limit. +// +// Deprecated: use MaxRecvMsgSize instead. Will be supported throughout 1.x. func MaxMsgSize(m int) ServerOption { return MaxRecvMsgSize(m) } @@ -224,83 +371,122 @@ func MaxMsgSize(m int) ServerOption { // MaxRecvMsgSize returns a ServerOption to set the max message size in bytes the server can receive. // If this is not set, gRPC uses the default 4MB. func MaxRecvMsgSize(m int) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.maxReceiveMessageSize = m - } + }) } // MaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send. -// If this is not set, gRPC uses the default 4MB. +// If this is not set, gRPC uses the default `math.MaxInt32`. func MaxSendMsgSize(m int) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.maxSendMessageSize = m - } + }) } // MaxConcurrentStreams returns a ServerOption that will apply a limit on the number // of concurrent streams to each ServerTransport. func MaxConcurrentStreams(n uint32) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.maxConcurrentStreams = n - } + }) } // Creds returns a ServerOption that sets credentials for server connections. func Creds(c credentials.TransportCredentials) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.creds = c - } + }) } // UnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the // server. Only one unary interceptor can be installed. The construction of multiple // interceptors (e.g., chaining) can be implemented at the caller. func UnaryInterceptor(i UnaryServerInterceptor) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { if o.unaryInt != nil { panic("The unary server interceptor was already set and may not be reset.") } o.unaryInt = i - } + }) +} + +// ChainUnaryInterceptor returns a ServerOption that specifies the chained interceptor +// for unary RPCs. The first interceptor will be the outer most, +// while the last interceptor will be the inner most wrapper around the real call. +// All unary interceptors added by this method will be chained. +func ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.chainUnaryInts = append(o.chainUnaryInts, interceptors...) + }) } // StreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the // server. Only one stream interceptor can be installed. func StreamInterceptor(i StreamServerInterceptor) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { if o.streamInt != nil { panic("The stream server interceptor was already set and may not be reset.") } o.streamInt = i - } + }) +} + +// ChainStreamInterceptor returns a ServerOption that specifies the chained interceptor +// for streaming RPCs. The first interceptor will be the outer most, +// while the last interceptor will be the inner most wrapper around the real call. +// All stream interceptors added by this method will be chained. +func ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.chainStreamInts = append(o.chainStreamInts, interceptors...) + }) } // InTapHandle returns a ServerOption that sets the tap handle for all the server // transport to be created. Only one can be installed. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. func InTapHandle(h tap.ServerInHandle) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { if o.inTapHandle != nil { panic("The tap handle was already set and may not be reset.") } o.inTapHandle = h - } + }) } // StatsHandler returns a ServerOption that sets the stats handler for the server. func StatsHandler(h stats.Handler) ServerOption { - return func(o *options) { - o.statsHandler = h - } + return newFuncServerOption(func(o *serverOptions) { + if h == nil { + logger.Error("ignoring nil parameter in grpc.StatsHandler ServerOption") + // Do not allow a nil stats handler, which would otherwise cause + // panics. + return + } + o.statsHandlers = append(o.statsHandlers, h) + }) +} + +// binaryLogger returns a ServerOption that can set the binary logger for the +// server. +func binaryLogger(bl binarylog.Logger) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.binaryLogger = bl + }) } // UnknownServiceHandler returns a ServerOption that allows for adding a custom // unknown service handler. The provided method is a bidi-streaming RPC service // handler that will be invoked instead of returning the "unimplemented" gRPC // error whenever a request is received for an unregistered service or method. -// The handling function has full access to the Context of the request and the -// stream, and the invocation bypasses interceptors. +// The handling function and stream interceptor (if set) have full access to +// the ServerStream, including its Context. func UnknownServiceHandler(streamHandler StreamHandler) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.unknownStreamDesc = &StreamDesc{ StreamName: "unknown_service_handler", Handler: streamHandler, @@ -308,7 +494,7 @@ func UnknownServiceHandler(streamHandler StreamHandler) ServerOption { ClientStreams: true, ServerStreams: true, } - } + }) } // ConnectionTimeout returns a ServerOption that sets the timeout for @@ -316,10 +502,97 @@ func UnknownServiceHandler(streamHandler StreamHandler) ServerOption { // new connections. If this is not set, the default is 120 seconds. A zero or // negative value will result in an immediate timeout. // -// This API is EXPERIMENTAL. +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. func ConnectionTimeout(d time.Duration) ServerOption { - return func(o *options) { + return newFuncServerOption(func(o *serverOptions) { o.connectionTimeout = d + }) +} + +// MaxHeaderListSize returns a ServerOption that sets the max (uncompressed) size +// of header list that the server is prepared to accept. +func MaxHeaderListSize(s uint32) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.maxHeaderListSize = &s + }) +} + +// HeaderTableSize returns a ServerOption that sets the size of dynamic +// header table for stream. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func HeaderTableSize(s uint32) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.headerTableSize = &s + }) +} + +// NumStreamWorkers returns a ServerOption that sets the number of worker +// goroutines that should be used to process incoming streams. Setting this to +// zero (default) will disable workers and spawn a new goroutine for each +// stream. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func NumStreamWorkers(numServerWorkers uint32) ServerOption { + // TODO: If/when this API gets stabilized (i.e. stream workers become the + // only way streams are processed), change the behavior of the zero value to + // a sane default. Preliminary experiments suggest that a value equal to the + // number of CPUs available is most performant; requires thorough testing. + return newFuncServerOption(func(o *serverOptions) { + o.numServerWorkers = numServerWorkers + }) +} + +// serverWorkerResetThreshold defines how often the stack must be reset. Every +// N requests, by spawning a new goroutine in its place, a worker can reset its +// stack so that large stacks don't live in memory forever. 2^16 should allow +// each goroutine stack to live for at least a few seconds in a typical +// workload (assuming a QPS of a few thousand requests/sec). +const serverWorkerResetThreshold = 1 << 16 + +// serverWorkers blocks on a *transport.Stream channel forever and waits for +// data to be fed by serveStreams. This allows different requests to be +// processed by the same goroutine, removing the need for expensive stack +// re-allocations (see the runtime.morestack problem [1]). +// +// [1] https://github.com/golang/go/issues/18138 +func (s *Server) serverWorker(ch chan *serverWorkerData) { + // To make sure all server workers don't reset at the same time, choose a + // random number of iterations before resetting. + threshold := serverWorkerResetThreshold + grpcrand.Intn(serverWorkerResetThreshold) + for completed := 0; completed < threshold; completed++ { + data, ok := <-ch + if !ok { + return + } + s.handleStream(data.st, data.stream, s.traceInfo(data.st, data.stream)) + data.wg.Done() + } + go s.serverWorker(ch) +} + +// initServerWorkers creates worker goroutines and channels to process incoming +// connections to reduce the time spent overall on runtime.morestack. +func (s *Server) initServerWorkers() { + s.serverWorkerChannels = make([]chan *serverWorkerData, s.opts.numServerWorkers) + for i := uint32(0); i < s.opts.numServerWorkers; i++ { + s.serverWorkerChannels[i] = make(chan *serverWorkerData) + go s.serverWorker(s.serverWorkerChannels[i]) + } +} + +func (s *Server) stopServerWorkers() { + for i := uint32(0); i < s.opts.numServerWorkers; i++ { + close(s.serverWorkerChannels[i]) } } @@ -327,22 +600,35 @@ func ConnectionTimeout(d time.Duration) ServerOption { // started to accept requests yet. func NewServer(opt ...ServerOption) *Server { opts := defaultServerOptions + for _, o := range extraServerOptions { + o.apply(&opts) + } for _, o := range opt { - o(&opts) + o.apply(&opts) } s := &Server{ - lis: make(map[net.Listener]bool), - opts: opts, - conns: make(map[io.Closer]bool), - m: make(map[string]*service), - quit: make(chan struct{}), - done: make(chan struct{}), - } + lis: make(map[net.Listener]bool), + opts: opts, + conns: make(map[string]map[transport.ServerTransport]bool), + services: make(map[string]*serviceInfo), + quit: grpcsync.NewEvent(), + done: grpcsync.NewEvent(), + czData: new(channelzData), + } + chainUnaryServerInterceptors(s) + chainStreamServerInterceptors(s) s.cv = sync.NewCond(&s.mu) if EnableTracing { _, file, line, _ := runtime.Caller(1) s.events = trace.NewEventLog("grpc.Server", fmt.Sprintf("%s:%d", file, line)) } + + if s.opts.numServerWorkers > 0 { + s.initServerWorkers() + } + + s.channelzID = channelz.RegisterServer(&channelzServer{s}, "") + channelz.Info(logger, s.channelzID, "Server created") return s } @@ -362,14 +648,29 @@ func (s *Server) errorf(format string, a ...interface{}) { } } +// ServiceRegistrar wraps a single method that supports service registration. It +// enables users to pass concrete types other than grpc.Server to the service +// registration methods exported by the IDL generated code. +type ServiceRegistrar interface { + // RegisterService registers a service and its implementation to the + // concrete type implementing this interface. It may not be called + // once the server has started serving. + // desc describes the service and its methods and handlers. impl is the + // service implementation which is passed to the method handlers. + RegisterService(desc *ServiceDesc, impl interface{}) +} + // RegisterService registers a service and its implementation to the gRPC // server. It is called from the IDL generated code. This must be called before -// invoking Serve. +// invoking Serve. If ss is non-nil (for legacy code), its type is checked to +// ensure it implements sd.HandlerType. func (s *Server) RegisterService(sd *ServiceDesc, ss interface{}) { - ht := reflect.TypeOf(sd.HandlerType).Elem() - st := reflect.TypeOf(ss) - if !st.Implements(ht) { - grpclog.Fatalf("grpc: Server.RegisterService found the handler of type %v that does not satisfy %v", st, ht) + if ss != nil { + ht := reflect.TypeOf(sd.HandlerType).Elem() + st := reflect.TypeOf(ss) + if !st.Implements(ht) { + logger.Fatalf("grpc: Server.RegisterService found the handler of type %v that does not satisfy %v", st, ht) + } } s.register(sd, ss) } @@ -379,26 +680,26 @@ func (s *Server) register(sd *ServiceDesc, ss interface{}) { defer s.mu.Unlock() s.printf("RegisterService(%q)", sd.ServiceName) if s.serve { - grpclog.Fatalf("grpc: Server.RegisterService after Server.Serve for %q", sd.ServiceName) + logger.Fatalf("grpc: Server.RegisterService after Server.Serve for %q", sd.ServiceName) } - if _, ok := s.m[sd.ServiceName]; ok { - grpclog.Fatalf("grpc: Server.RegisterService found duplicate service registration for %q", sd.ServiceName) + if _, ok := s.services[sd.ServiceName]; ok { + logger.Fatalf("grpc: Server.RegisterService found duplicate service registration for %q", sd.ServiceName) } - srv := &service{ - server: ss, - md: make(map[string]*MethodDesc), - sd: make(map[string]*StreamDesc), - mdata: sd.Metadata, + info := &serviceInfo{ + serviceImpl: ss, + methods: make(map[string]*MethodDesc), + streams: make(map[string]*StreamDesc), + mdata: sd.Metadata, } for i := range sd.Methods { d := &sd.Methods[i] - srv.md[d.MethodName] = d + info.methods[d.MethodName] = d } for i := range sd.Streams { d := &sd.Streams[i] - srv.sd[d.StreamName] = d + info.streams[d.StreamName] = d } - s.m[sd.ServiceName] = srv + s.services[sd.ServiceName] = info } // MethodInfo contains the information of an RPC including its method name and type. @@ -422,16 +723,16 @@ type ServiceInfo struct { // Service names include the package names, in the form of .. func (s *Server) GetServiceInfo() map[string]ServiceInfo { ret := make(map[string]ServiceInfo) - for n, srv := range s.m { - methods := make([]MethodInfo, 0, len(srv.md)+len(srv.sd)) - for m := range srv.md { + for n, srv := range s.services { + methods := make([]MethodInfo, 0, len(srv.methods)+len(srv.streams)) + for m := range srv.methods { methods = append(methods, MethodInfo{ Name: m, IsClientStream: false, IsServerStream: false, }) } - for m, d := range srv.sd { + for m, d := range srv.streams { methods = append(methods, MethodInfo{ Name: m, IsClientStream: d.ClientStreams, @@ -451,11 +752,23 @@ func (s *Server) GetServiceInfo() map[string]ServiceInfo { // the server being stopped. var ErrServerStopped = errors.New("grpc: the server has been stopped") -func (s *Server) useTransportAuthenticator(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) { - if s.opts.creds == nil { - return rawConn, nil, nil +type listenSocket struct { + net.Listener + channelzID *channelz.Identifier +} + +func (l *listenSocket) ChannelzMetric() *channelz.SocketInternalMetric { + return &channelz.SocketInternalMetric{ + SocketOptions: channelz.GetSocketOption(l.Listener), + LocalAddr: l.Listener.Addr(), } - return s.opts.creds.ServerHandshake(rawConn) +} + +func (l *listenSocket) Close() error { + err := l.Listener.Close() + channelz.RemoveEntry(l.channelzID) + channelz.Info(logger, l.channelzID, "ListenSocket deleted") + return err } // Serve accepts incoming connections on the listener lis, creating a new @@ -478,27 +791,34 @@ func (s *Server) Serve(lis net.Listener) error { s.serveWG.Add(1) defer func() { s.serveWG.Done() - select { - // Stop or GracefulStop called; block until done and return nil. - case <-s.quit: - <-s.done - default: + if s.quit.HasFired() { + // Stop or GracefulStop called; block until done and return nil. + <-s.done.Done() } }() - s.lis[lis] = true - s.mu.Unlock() + ls := &listenSocket{Listener: lis} + s.lis[ls] = true + defer func() { s.mu.Lock() - if s.lis != nil && s.lis[lis] { - lis.Close() - delete(s.lis, lis) + if s.lis != nil && s.lis[ls] { + ls.Close() + delete(s.lis, ls) } s.mu.Unlock() }() - var tempDelay time.Duration // how long to sleep on accept failure + var err error + ls.channelzID, err = channelz.RegisterListenSocket(ls, s.channelzID, lis.Addr().String()) + if err != nil { + s.mu.Unlock() + return err + } + s.mu.Unlock() + channelz.Info(logger, ls.channelzID, "ListenSocket created") + var tempDelay time.Duration // how long to sleep on accept failure for { rawConn, err := lis.Accept() if err != nil { @@ -519,7 +839,7 @@ func (s *Server) Serve(lis net.Listener) error { timer := time.NewTimer(tempDelay) select { case <-timer.C: - case <-s.quit: + case <-s.quit.Done(): timer.Stop() return nil } @@ -529,10 +849,8 @@ func (s *Server) Serve(lis net.Listener) error { s.printf("done serving; Accept = %v", err) s.mu.Unlock() - select { - case <-s.quit: + if s.quit.HasFired() { return nil - default: } return err } @@ -544,7 +862,7 @@ func (s *Server) Serve(lis net.Listener) error { // s.conns before this conn can be added. s.serveWG.Add(1) go func() { - s.handleRawConn(rawConn) + s.handleRawConn(lis.Addr().String(), rawConn) s.serveWG.Done() }() } @@ -552,90 +870,101 @@ func (s *Server) Serve(lis net.Listener) error { // handleRawConn forks a goroutine to handle a just-accepted connection that // has not had any I/O performed on it yet. -func (s *Server) handleRawConn(rawConn net.Conn) { - rawConn.SetDeadline(time.Now().Add(s.opts.connectionTimeout)) - conn, authInfo, err := s.useTransportAuthenticator(rawConn) - if err != nil { - s.mu.Lock() - s.errorf("ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err) - s.mu.Unlock() - grpclog.Warningf("grpc: Server.Serve failed to complete security handshake from %q: %v", rawConn.RemoteAddr(), err) - // If serverHandshake returns ErrConnDispatched, keep rawConn open. - if err != credentials.ErrConnDispatched { - rawConn.Close() - } - rawConn.SetDeadline(time.Time{}) +func (s *Server) handleRawConn(lisAddr string, rawConn net.Conn) { + if s.quit.HasFired() { + rawConn.Close() return } + rawConn.SetDeadline(time.Now().Add(s.opts.connectionTimeout)) - s.mu.Lock() - if s.conns == nil { - s.mu.Unlock() - conn.Close() + // Finish handshaking (HTTP2) + st := s.newHTTP2Transport(rawConn) + rawConn.SetDeadline(time.Time{}) + if st == nil { return } - s.mu.Unlock() - var serve func() - c := conn.(io.Closer) - if s.opts.useHandlerImpl { - serve = func() { s.serveUsingHandler(conn) } - } else { - // Finish handshaking (HTTP2) - st := s.newHTTP2Transport(conn, authInfo) - if st == nil { - return - } - c = st - serve = func() { s.serveStreams(st) } - } - - rawConn.SetDeadline(time.Time{}) - if !s.addConn(c) { + if !s.addConn(lisAddr, st) { return } go func() { - serve() - s.removeConn(c) + s.serveStreams(st) + s.removeConn(lisAddr, st) }() } +func (s *Server) drainServerTransports(addr string) { + s.mu.Lock() + conns := s.conns[addr] + for st := range conns { + st.Drain() + } + s.mu.Unlock() +} + // newHTTP2Transport sets up a http/2 transport (using the // gRPC http2 server transport in transport/http2_server.go). -func (s *Server) newHTTP2Transport(c net.Conn, authInfo credentials.AuthInfo) transport.ServerTransport { +func (s *Server) newHTTP2Transport(c net.Conn) transport.ServerTransport { config := &transport.ServerConfig{ MaxStreams: s.opts.maxConcurrentStreams, - AuthInfo: authInfo, + ConnectionTimeout: s.opts.connectionTimeout, + Credentials: s.opts.creds, InTapHandle: s.opts.inTapHandle, - StatsHandler: s.opts.statsHandler, + StatsHandlers: s.opts.statsHandlers, KeepaliveParams: s.opts.keepaliveParams, KeepalivePolicy: s.opts.keepalivePolicy, InitialWindowSize: s.opts.initialWindowSize, InitialConnWindowSize: s.opts.initialConnWindowSize, WriteBufferSize: s.opts.writeBufferSize, ReadBufferSize: s.opts.readBufferSize, + ChannelzParentID: s.channelzID, + MaxHeaderListSize: s.opts.maxHeaderListSize, + HeaderTableSize: s.opts.headerTableSize, } - st, err := transport.NewServerTransport("http2", c, config) + st, err := transport.NewServerTransport(c, config) if err != nil { s.mu.Lock() s.errorf("NewServerTransport(%q) failed: %v", c.RemoteAddr(), err) s.mu.Unlock() - c.Close() - grpclog.Warningln("grpc: Server.Serve failed to create ServerTransport: ", err) + // ErrConnDispatched means that the connection was dispatched away from + // gRPC; those connections should be left open. + if err != credentials.ErrConnDispatched { + // Don't log on ErrConnDispatched and io.EOF to prevent log spam. + if err != io.EOF { + channelz.Info(logger, s.channelzID, "grpc: Server.Serve failed to create ServerTransport: ", err) + } + c.Close() + } return nil } + return st } func (s *Server) serveStreams(st transport.ServerTransport) { - defer st.Close() + defer st.Close(errors.New("finished serving streams for the server transport")) var wg sync.WaitGroup + + var roundRobinCounter uint32 st.HandleStreams(func(stream *transport.Stream) { wg.Add(1) - go func() { - defer wg.Done() - s.handleStream(st, stream, s.traceInfo(st, stream)) - }() + if s.opts.numServerWorkers > 0 { + data := &serverWorkerData{st: st, wg: &wg, stream: stream} + select { + case s.serverWorkerChannels[atomic.AddUint32(&roundRobinCounter, 1)%s.opts.numServerWorkers] <- data: + default: + // If all stream workers are busy, fallback to the default code path. + go func() { + s.handleStream(st, stream, s.traceInfo(st, stream)) + wg.Done() + }() + } + } else { + go func() { + defer wg.Done() + s.handleStream(st, stream, s.traceInfo(st, stream)) + }() + } }, func(ctx context.Context, method string) context.Context { if !EnableTracing { return ctx @@ -648,27 +977,6 @@ func (s *Server) serveStreams(st transport.ServerTransport) { var _ http.Handler = (*Server)(nil) -// serveUsingHandler is called from handleRawConn when s is configured -// to handle requests via the http.Handler interface. It sets up a -// net/http.Server to handle the just-accepted conn. The http.Server -// is configured to route all incoming requests (all HTTP/2 streams) -// to ServeHTTP, which creates a new ServerTransport for each stream. -// serveUsingHandler blocks until conn closes. -// -// This codepath is only used when Server.TestingUseHandlerImpl has -// been configured. This lets the end2end tests exercise the ServeHTTP -// method as one of the environment types. -// -// conn is the *tls.Conn that's already been authenticated. -func (s *Server) serveUsingHandler(conn net.Conn) { - h2s := &http2.Server{ - MaxConcurrentStreams: s.opts.maxConcurrentStreams, - } - h2s.ServeConn(conn, &http2.ServeConnOpts{ - Handler: s, - }) -} - // ServeHTTP implements the Go standard library's http.Handler // interface by responding to the gRPC request r, by looking up // the requested gRPC method in the gRPC server s. @@ -681,34 +989,42 @@ func (s *Server) serveUsingHandler(conn net.Conn) { // To share one port (such as 443 for https) between gRPC and an // existing http.Handler, use a root http.Handler such as: // -// if r.ProtoMajor == 2 && strings.HasPrefix( -// r.Header.Get("Content-Type"), "application/grpc") { -// grpcServer.ServeHTTP(w, r) -// } else { -// yourMux.ServeHTTP(w, r) -// } +// if r.ProtoMajor == 2 && strings.HasPrefix( +// r.Header.Get("Content-Type"), "application/grpc") { +// grpcServer.ServeHTTP(w, r) +// } else { +// yourMux.ServeHTTP(w, r) +// } // // Note that ServeHTTP uses Go's HTTP/2 server implementation which is totally // separate from grpc-go's HTTP/2 server. Performance and features may vary // between the two paths. ServeHTTP does not support some gRPC features -// available through grpc-go's HTTP/2 server, and it is currently EXPERIMENTAL -// and subject to change. +// available through grpc-go's HTTP/2 server. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { - st, err := transport.NewServerHandlerTransport(w, r, s.opts.statsHandler) + st, err := transport.NewServerHandlerTransport(w, r, s.opts.statsHandlers) if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + // Errors returned from transport.NewServerHandlerTransport have + // already been written to w. return } - if !s.addConn(st) { + if !s.addConn(listenerAddressForServeHTTP, st) { return } - defer s.removeConn(st) + defer s.removeConn(listenerAddressForServeHTTP, st) s.serveStreams(st) } // traceInfo returns a traceInfo and associates it with stream, if tracing is enabled. // If tracing is not enabled, it returns nil. func (s *Server) traceInfo(st transport.ServerTransport, stream *transport.Stream) (trInfo *traceInfo) { + if !EnableTracing { + return nil + } tr, ok := trace.FromContext(stream.Context()) if !ok { return nil @@ -716,93 +1032,228 @@ func (s *Server) traceInfo(st transport.ServerTransport, stream *transport.Strea trInfo = &traceInfo{ tr: tr, + firstLine: firstLine{ + client: false, + remoteAddr: st.RemoteAddr(), + }, } - trInfo.firstLine.client = false - trInfo.firstLine.remoteAddr = st.RemoteAddr() - if dl, ok := stream.Context().Deadline(); ok { - trInfo.firstLine.deadline = dl.Sub(time.Now()) + trInfo.firstLine.deadline = time.Until(dl) } return trInfo } -func (s *Server) addConn(c io.Closer) bool { +func (s *Server) addConn(addr string, st transport.ServerTransport) bool { s.mu.Lock() defer s.mu.Unlock() if s.conns == nil { - c.Close() + st.Close(errors.New("Server.addConn called when server has already been stopped")) return false } if s.drain { // Transport added after we drained our existing conns: drain it // immediately. - c.(transport.ServerTransport).Drain() + st.Drain() + } + + if s.conns[addr] == nil { + // Create a map entry if this is the first connection on this listener. + s.conns[addr] = make(map[transport.ServerTransport]bool) } - s.conns[c] = true + s.conns[addr][st] = true return true } -func (s *Server) removeConn(c io.Closer) { +func (s *Server) removeConn(addr string, st transport.ServerTransport) { s.mu.Lock() defer s.mu.Unlock() - if s.conns != nil { - delete(s.conns, c) + + conns := s.conns[addr] + if conns != nil { + delete(conns, st) + if len(conns) == 0 { + // If the last connection for this address is being removed, also + // remove the map entry corresponding to the address. This is used + // in GracefulStop() when waiting for all connections to be closed. + delete(s.conns, addr) + } s.cv.Broadcast() } } +func (s *Server) channelzMetric() *channelz.ServerInternalMetric { + return &channelz.ServerInternalMetric{ + CallsStarted: atomic.LoadInt64(&s.czData.callsStarted), + CallsSucceeded: atomic.LoadInt64(&s.czData.callsSucceeded), + CallsFailed: atomic.LoadInt64(&s.czData.callsFailed), + LastCallStartedTimestamp: time.Unix(0, atomic.LoadInt64(&s.czData.lastCallStartedTime)), + } +} + +func (s *Server) incrCallsStarted() { + atomic.AddInt64(&s.czData.callsStarted, 1) + atomic.StoreInt64(&s.czData.lastCallStartedTime, time.Now().UnixNano()) +} + +func (s *Server) incrCallsSucceeded() { + atomic.AddInt64(&s.czData.callsSucceeded, 1) +} + +func (s *Server) incrCallsFailed() { + atomic.AddInt64(&s.czData.callsFailed, 1) +} + func (s *Server) sendResponse(t transport.ServerTransport, stream *transport.Stream, msg interface{}, cp Compressor, opts *transport.Options, comp encoding.Compressor) error { - var ( - outPayload *stats.OutPayload - ) - if s.opts.statsHandler != nil { - outPayload = &stats.OutPayload{} + data, err := encode(s.getCodec(stream.ContentSubtype()), msg) + if err != nil { + channelz.Error(logger, s.channelzID, "grpc: server failed to encode response: ", err) + return err } - hdr, data, err := encode(s.getCodec(stream.ContentSubtype()), msg, cp, outPayload, comp) + compData, err := compress(data, cp, comp) if err != nil { - grpclog.Errorln("grpc: server failed to encode response: ", err) + channelz.Error(logger, s.channelzID, "grpc: server failed to compress response: ", err) return err } - if len(data) > s.opts.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "grpc: trying to send message larger than max (%d vs. %d)", len(data), s.opts.maxSendMessageSize) + hdr, payload := msgHeader(data, compData) + // TODO(dfawley): should we be checking len(data) instead? + if len(payload) > s.opts.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "grpc: trying to send message larger than max (%d vs. %d)", len(payload), s.opts.maxSendMessageSize) } - err = t.Write(stream, hdr, data, opts) - if err == nil && outPayload != nil { - outPayload.SentTime = time.Now() - s.opts.statsHandler.HandleRPC(stream.Context(), outPayload) + err = t.Write(stream, hdr, payload, opts) + if err == nil { + for _, sh := range s.opts.statsHandlers { + sh.HandleRPC(stream.Context(), outPayload(false, msg, data, payload, time.Now())) + } } return err } -func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, md *MethodDesc, trInfo *traceInfo) (err error) { - sh := s.opts.statsHandler - if sh != nil { - beginTime := time.Now() - begin := &stats.Begin{ - BeginTime: beginTime, +// chainUnaryServerInterceptors chains all unary server interceptors into one. +func chainUnaryServerInterceptors(s *Server) { + // Prepend opts.unaryInt to the chaining interceptors if it exists, since unaryInt will + // be executed before any other chained interceptors. + interceptors := s.opts.chainUnaryInts + if s.opts.unaryInt != nil { + interceptors = append([]UnaryServerInterceptor{s.opts.unaryInt}, s.opts.chainUnaryInts...) + } + + var chainedInt UnaryServerInterceptor + if len(interceptors) == 0 { + chainedInt = nil + } else if len(interceptors) == 1 { + chainedInt = interceptors[0] + } else { + chainedInt = chainUnaryInterceptors(interceptors) + } + + s.opts.unaryInt = chainedInt +} + +func chainUnaryInterceptors(interceptors []UnaryServerInterceptor) UnaryServerInterceptor { + return func(ctx context.Context, req interface{}, info *UnaryServerInfo, handler UnaryHandler) (interface{}, error) { + return interceptors[0](ctx, req, info, getChainUnaryHandler(interceptors, 0, info, handler)) + } +} + +func getChainUnaryHandler(interceptors []UnaryServerInterceptor, curr int, info *UnaryServerInfo, finalHandler UnaryHandler) UnaryHandler { + if curr == len(interceptors)-1 { + return finalHandler + } + return func(ctx context.Context, req interface{}) (interface{}, error) { + return interceptors[curr+1](ctx, req, info, getChainUnaryHandler(interceptors, curr+1, info, finalHandler)) + } +} + +func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.Stream, info *serviceInfo, md *MethodDesc, trInfo *traceInfo) (err error) { + shs := s.opts.statsHandlers + if len(shs) != 0 || trInfo != nil || channelz.IsOn() { + if channelz.IsOn() { + s.incrCallsStarted() } - sh.HandleRPC(stream.Context(), begin) + var statsBegin *stats.Begin + for _, sh := range shs { + beginTime := time.Now() + statsBegin = &stats.Begin{ + BeginTime: beginTime, + IsClientStream: false, + IsServerStream: false, + } + sh.HandleRPC(stream.Context(), statsBegin) + } + if trInfo != nil { + trInfo.tr.LazyLog(&trInfo.firstLine, false) + } + // The deferred error handling for tracing, stats handler and channelz are + // combined into one function to reduce stack usage -- a defer takes ~56-64 + // bytes on the stack, so overflowing the stack will require a stack + // re-allocation, which is expensive. + // + // To maintain behavior similar to separate deferred statements, statements + // should be executed in the reverse order. That is, tracing first, stats + // handler second, and channelz last. Note that panics *within* defers will + // lead to different behavior, but that's an acceptable compromise; that + // would be undefined behavior territory anyway. defer func() { - end := &stats.End{ - BeginTime: beginTime, - EndTime: time.Now(), + if trInfo != nil { + if err != nil && err != io.EOF { + trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + trInfo.tr.SetError() + } + trInfo.tr.Finish() } - if err != nil && err != io.EOF { - end.Error = toRPCErr(err) + + for _, sh := range shs { + end := &stats.End{ + BeginTime: statsBegin.BeginTime, + EndTime: time.Now(), + } + if err != nil && err != io.EOF { + end.Error = toRPCErr(err) + } + sh.HandleRPC(stream.Context(), end) + } + + if channelz.IsOn() { + if err != nil && err != io.EOF { + s.incrCallsFailed() + } else { + s.incrCallsSucceeded() + } } - sh.HandleRPC(stream.Context(), end) }() } - if trInfo != nil { - defer trInfo.tr.Finish() - trInfo.firstLine.client = false - trInfo.tr.LazyLog(&trInfo.firstLine, false) - defer func() { - if err != nil && err != io.EOF { - trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) - trInfo.tr.SetError() + var binlogs []binarylog.MethodLogger + if ml := binarylog.GetMethodLogger(stream.Method()); ml != nil { + binlogs = append(binlogs, ml) + } + if s.opts.binaryLogger != nil { + if ml := s.opts.binaryLogger.GetMethodLogger(stream.Method()); ml != nil { + binlogs = append(binlogs, ml) + } + } + if len(binlogs) != 0 { + ctx := stream.Context() + md, _ := metadata.FromIncomingContext(ctx) + logEntry := &binarylog.ClientHeader{ + Header: md, + MethodName: stream.Method(), + PeerAddr: nil, + } + if deadline, ok := ctx.Deadline(); ok { + logEntry.Timeout = time.Until(deadline) + if logEntry.Timeout < 0 { + logEntry.Timeout = 0 } - }() + } + if a := md[":authority"]; len(a) > 0 { + logEntry.Authority = a[0] + } + if peer, ok := peer.FromContext(ctx); ok { + logEntry.PeerAddr = peer.Addr + } + for _, binlog := range binlogs { + binlog.Log(logEntry) + } } // comp and cp are used for compression. decomp and dc are used for @@ -841,78 +1292,40 @@ func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport. } } - p := &parser{r: stream} - pf, req, err := p.recvMsg(s.opts.maxReceiveMessageSize) - if err == io.EOF { - // The entire stream is done (for unary RPC only). - return err - } - if err == io.ErrUnexpectedEOF { - err = status.Errorf(codes.Internal, io.ErrUnexpectedEOF.Error()) + var payInfo *payloadInfo + if len(shs) != 0 || len(binlogs) != 0 { + payInfo = &payloadInfo{} } + d, err := recvAndDecompress(&parser{r: stream}, stream, dc, s.opts.maxReceiveMessageSize, payInfo, decomp) if err != nil { - if st, ok := status.FromError(err); ok { - if e := t.WriteStatus(stream, st); e != nil { - grpclog.Warningf("grpc: Server.processUnaryRPC failed to write status %v", e) - } - } else { - switch st := err.(type) { - case transport.ConnectionError: - // Nothing to do here. - case transport.StreamError: - if e := t.WriteStatus(stream, status.New(st.Code, st.Desc)); e != nil { - grpclog.Warningf("grpc: Server.processUnaryRPC failed to write status %v", e) - } - default: - panic(fmt.Sprintf("grpc: Unexpected error (%T) from recvMsg: %v", st, st)) - } + if e := t.WriteStatus(stream, status.Convert(err)); e != nil { + channelz.Warningf(logger, s.channelzID, "grpc: Server.processUnaryRPC failed to write status: %v", e) } return err } - if st := checkRecvPayload(pf, stream.RecvCompress(), dc != nil || decomp != nil); st != nil { - if e := t.WriteStatus(stream, st); e != nil { - grpclog.Warningf("grpc: Server.processUnaryRPC failed to write status %v", e) - } - return st.Err() - } - var inPayload *stats.InPayload - if sh != nil { - inPayload = &stats.InPayload{ - RecvTime: time.Now(), - } + if channelz.IsOn() { + t.IncrMsgRecv() } df := func(v interface{}) error { - if inPayload != nil { - inPayload.WireLength = len(req) - } - if pf == compressionMade { - var err error - if dc != nil { - req, err = dc.Do(bytes.NewReader(req)) - if err != nil { - return status.Errorf(codes.Internal, err.Error()) - } - } else { - tmp, _ := decomp.Decompress(bytes.NewReader(req)) - req, err = ioutil.ReadAll(tmp) - if err != nil { - return status.Errorf(codes.Internal, "grpc: failed to decompress the received message %v", err) - } - } - } - if len(req) > s.opts.maxReceiveMessageSize { - // TODO: Revisit the error code. Currently keep it consistent with - // java implementation. - return status.Errorf(codes.ResourceExhausted, "grpc: received message larger than max (%d vs. %d)", len(req), s.opts.maxReceiveMessageSize) - } - if err := s.getCodec(stream.ContentSubtype()).Unmarshal(req, v); err != nil { + if err := s.getCodec(stream.ContentSubtype()).Unmarshal(d, v); err != nil { return status.Errorf(codes.Internal, "grpc: error unmarshalling request: %v", err) } - if inPayload != nil { - inPayload.Payload = v - inPayload.Data = req - inPayload.Length = len(req) - sh.HandleRPC(stream.Context(), inPayload) + for _, sh := range shs { + sh.HandleRPC(stream.Context(), &stats.InPayload{ + RecvTime: time.Now(), + Payload: v, + WireLength: payInfo.wireLength + headerLen, + Data: d, + Length: len(d), + }) + } + if len(binlogs) != 0 { + cm := &binarylog.ClientMessage{ + Message: d, + } + for _, binlog := range binlogs { + binlog.Log(cm) + } } if trInfo != nil { trInfo.tr.LazyLog(&payload{sent: false, msg: v}, true) @@ -920,93 +1333,249 @@ func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport. return nil } ctx := NewContextWithServerTransportStream(stream.Context(), stream) - reply, appErr := md.Handler(srv.server, ctx, df, s.opts.unaryInt) + reply, appErr := md.Handler(info.serviceImpl, ctx, df, s.opts.unaryInt) if appErr != nil { appStatus, ok := status.FromError(appErr) if !ok { - // Convert appErr if it is not a grpc status error. - appErr = status.Error(codes.Unknown, appErr.Error()) - appStatus, _ = status.FromError(appErr) + // Convert non-status application error to a status error with code + // Unknown, but handle context errors specifically. + appStatus = status.FromContextError(appErr) + appErr = appStatus.Err() } if trInfo != nil { trInfo.tr.LazyLog(stringer(appStatus.Message()), true) trInfo.tr.SetError() } if e := t.WriteStatus(stream, appStatus); e != nil { - grpclog.Warningf("grpc: Server.processUnaryRPC failed to write status: %v", e) + channelz.Warningf(logger, s.channelzID, "grpc: Server.processUnaryRPC failed to write status: %v", e) + } + if len(binlogs) != 0 { + if h, _ := stream.Header(); h.Len() > 0 { + // Only log serverHeader if there was header. Otherwise it can + // be trailer only. + sh := &binarylog.ServerHeader{ + Header: h, + } + for _, binlog := range binlogs { + binlog.Log(sh) + } + } + st := &binarylog.ServerTrailer{ + Trailer: stream.Trailer(), + Err: appErr, + } + for _, binlog := range binlogs { + binlog.Log(st) + } } return appErr } if trInfo != nil { trInfo.tr.LazyLog(stringer("OK"), false) } - opts := &transport.Options{ - Last: true, - Delay: false, - } + opts := &transport.Options{Last: true} if err := s.sendResponse(t, stream, reply, cp, opts, comp); err != nil { if err == io.EOF { // The entire stream is done (for unary RPC only). return err } - if s, ok := status.FromError(err); ok { - if e := t.WriteStatus(stream, s); e != nil { - grpclog.Warningf("grpc: Server.processUnaryRPC failed to write status: %v", e) + if sts, ok := status.FromError(err); ok { + if e := t.WriteStatus(stream, sts); e != nil { + channelz.Warningf(logger, s.channelzID, "grpc: Server.processUnaryRPC failed to write status: %v", e) } } else { switch st := err.(type) { case transport.ConnectionError: // Nothing to do here. - case transport.StreamError: - if e := t.WriteStatus(stream, status.New(st.Code, st.Desc)); e != nil { - grpclog.Warningf("grpc: Server.processUnaryRPC failed to write status %v", e) - } default: panic(fmt.Sprintf("grpc: Unexpected error (%T) from sendResponse: %v", st, st)) } } + if len(binlogs) != 0 { + h, _ := stream.Header() + sh := &binarylog.ServerHeader{ + Header: h, + } + st := &binarylog.ServerTrailer{ + Trailer: stream.Trailer(), + Err: appErr, + } + for _, binlog := range binlogs { + binlog.Log(sh) + binlog.Log(st) + } + } return err } + if len(binlogs) != 0 { + h, _ := stream.Header() + sh := &binarylog.ServerHeader{ + Header: h, + } + sm := &binarylog.ServerMessage{ + Message: reply, + } + for _, binlog := range binlogs { + binlog.Log(sh) + binlog.Log(sm) + } + } + if channelz.IsOn() { + t.IncrMsgSent() + } if trInfo != nil { trInfo.tr.LazyLog(&payload{sent: true, msg: reply}, true) } // TODO: Should we be logging if writing status failed here, like above? // Should the logging be in WriteStatus? Should we ignore the WriteStatus // error or allow the stats handler to see it? - return t.WriteStatus(stream, status.New(codes.OK, "")) + err = t.WriteStatus(stream, statusOK) + if len(binlogs) != 0 { + st := &binarylog.ServerTrailer{ + Trailer: stream.Trailer(), + Err: appErr, + } + for _, binlog := range binlogs { + binlog.Log(st) + } + } + return err +} + +// chainStreamServerInterceptors chains all stream server interceptors into one. +func chainStreamServerInterceptors(s *Server) { + // Prepend opts.streamInt to the chaining interceptors if it exists, since streamInt will + // be executed before any other chained interceptors. + interceptors := s.opts.chainStreamInts + if s.opts.streamInt != nil { + interceptors = append([]StreamServerInterceptor{s.opts.streamInt}, s.opts.chainStreamInts...) + } + + var chainedInt StreamServerInterceptor + if len(interceptors) == 0 { + chainedInt = nil + } else if len(interceptors) == 1 { + chainedInt = interceptors[0] + } else { + chainedInt = chainStreamInterceptors(interceptors) + } + + s.opts.streamInt = chainedInt +} + +func chainStreamInterceptors(interceptors []StreamServerInterceptor) StreamServerInterceptor { + return func(srv interface{}, ss ServerStream, info *StreamServerInfo, handler StreamHandler) error { + return interceptors[0](srv, ss, info, getChainStreamHandler(interceptors, 0, info, handler)) + } +} + +func getChainStreamHandler(interceptors []StreamServerInterceptor, curr int, info *StreamServerInfo, finalHandler StreamHandler) StreamHandler { + if curr == len(interceptors)-1 { + return finalHandler + } + return func(srv interface{}, stream ServerStream) error { + return interceptors[curr+1](srv, stream, info, getChainStreamHandler(interceptors, curr+1, info, finalHandler)) + } } -func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transport.Stream, srv *service, sd *StreamDesc, trInfo *traceInfo) (err error) { - sh := s.opts.statsHandler - if sh != nil { +func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transport.Stream, info *serviceInfo, sd *StreamDesc, trInfo *traceInfo) (err error) { + if channelz.IsOn() { + s.incrCallsStarted() + } + shs := s.opts.statsHandlers + var statsBegin *stats.Begin + if len(shs) != 0 { beginTime := time.Now() - begin := &stats.Begin{ - BeginTime: beginTime, + statsBegin = &stats.Begin{ + BeginTime: beginTime, + IsClientStream: sd.ClientStreams, + IsServerStream: sd.ServerStreams, + } + for _, sh := range shs { + sh.HandleRPC(stream.Context(), statsBegin) } - sh.HandleRPC(stream.Context(), begin) - defer func() { - end := &stats.End{ - BeginTime: beginTime, - EndTime: time.Now(), - } - if err != nil && err != io.EOF { - end.Error = toRPCErr(err) - } - sh.HandleRPC(stream.Context(), end) - }() } ctx := NewContextWithServerTransportStream(stream.Context(), stream) ss := &serverStream{ - ctx: ctx, - t: t, - s: stream, - p: &parser{r: stream}, - codec: s.getCodec(stream.ContentSubtype()), + ctx: ctx, + t: t, + s: stream, + p: &parser{r: stream}, + codec: s.getCodec(stream.ContentSubtype()), maxReceiveMessageSize: s.opts.maxReceiveMessageSize, maxSendMessageSize: s.opts.maxSendMessageSize, trInfo: trInfo, - statsHandler: sh, + statsHandler: shs, + } + + if len(shs) != 0 || trInfo != nil || channelz.IsOn() { + // See comment in processUnaryRPC on defers. + defer func() { + if trInfo != nil { + ss.mu.Lock() + if err != nil && err != io.EOF { + ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) + ss.trInfo.tr.SetError() + } + ss.trInfo.tr.Finish() + ss.trInfo.tr = nil + ss.mu.Unlock() + } + + if len(shs) != 0 { + end := &stats.End{ + BeginTime: statsBegin.BeginTime, + EndTime: time.Now(), + } + if err != nil && err != io.EOF { + end.Error = toRPCErr(err) + } + for _, sh := range shs { + sh.HandleRPC(stream.Context(), end) + } + } + + if channelz.IsOn() { + if err != nil && err != io.EOF { + s.incrCallsFailed() + } else { + s.incrCallsSucceeded() + } + } + }() + } + + if ml := binarylog.GetMethodLogger(stream.Method()); ml != nil { + ss.binlogs = append(ss.binlogs, ml) + } + if s.opts.binaryLogger != nil { + if ml := s.opts.binaryLogger.GetMethodLogger(stream.Method()); ml != nil { + ss.binlogs = append(ss.binlogs, ml) + } + } + if len(ss.binlogs) != 0 { + md, _ := metadata.FromIncomingContext(ctx) + logEntry := &binarylog.ClientHeader{ + Header: md, + MethodName: stream.Method(), + PeerAddr: nil, + } + if deadline, ok := ctx.Deadline(); ok { + logEntry.Timeout = time.Until(deadline) + if logEntry.Timeout < 0 { + logEntry.Timeout = 0 + } + } + if a := md[":authority"]; len(a) > 0 { + logEntry.Authority = a[0] + } + if peer, ok := peer.FromContext(ss.Context()); ok { + logEntry.PeerAddr = peer.Addr + } + for _, binlog := range ss.binlogs { + binlog.Log(logEntry) + } } // If dc is set and matches the stream's compression, use it. Otherwise, try @@ -1037,23 +1606,15 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp } } + ss.ctx = newContextWithRPCInfo(ss.ctx, false, ss.codec, ss.cp, ss.comp) + if trInfo != nil { trInfo.tr.LazyLog(&trInfo.firstLine, false) - defer func() { - ss.mu.Lock() - if err != nil && err != io.EOF { - ss.trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) - ss.trInfo.tr.SetError() - } - ss.trInfo.tr.Finish() - ss.trInfo.tr = nil - ss.mu.Unlock() - }() } var appErr error var server interface{} - if srv != nil { - server = srv.server + if info != nil { + server = info.serviceImpl } if s.opts.streamInt == nil { appErr = sd.Handler(server, ss) @@ -1068,12 +1629,9 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp if appErr != nil { appStatus, ok := status.FromError(appErr) if !ok { - switch err := appErr.(type) { - case transport.StreamError: - appStatus = status.New(err.Code, err.Desc) - default: - appStatus = status.New(codes.Unknown, appErr.Error()) - } + // Convert non-status application error to a status error with code + // Unknown, but handle context errors specifically. + appStatus = status.FromContextError(appErr) appErr = appStatus.Err() } if trInfo != nil { @@ -1083,6 +1641,15 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp ss.mu.Unlock() } t.WriteStatus(ss.s, appStatus) + if len(ss.binlogs) != 0 { + st := &binarylog.ServerTrailer{ + Trailer: ss.s.Trailer(), + Err: appErr, + } + for _, binlog := range ss.binlogs { + binlog.Log(st) + } + } // TODO: Should we log an error from WriteStatus here and below? return appErr } @@ -1091,7 +1658,17 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp ss.trInfo.tr.LazyLog(stringer("OK"), false) ss.mu.Unlock() } - return t.WriteStatus(ss.s, status.New(codes.OK, "")) + err = t.WriteStatus(ss.s, statusOK) + if len(ss.binlogs) != 0 { + st := &binarylog.ServerTrailer{ + Trailer: ss.s.Trailer(), + Err: appErr, + } + for _, binlog := range ss.binlogs { + binlog.Log(st) + } + } + return err } func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Stream, trInfo *traceInfo) { @@ -1106,12 +1683,12 @@ func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Str trInfo.tr.SetError() } errDesc := fmt.Sprintf("malformed method name: %q", stream.Method()) - if err := t.WriteStatus(stream, status.New(codes.ResourceExhausted, errDesc)); err != nil { + if err := t.WriteStatus(stream, status.New(codes.Unimplemented, errDesc)); err != nil { if trInfo != nil { trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) trInfo.tr.SetError() } - grpclog.Warningf("grpc: Server.handleStream failed to write status: %v", err) + channelz.Warningf(logger, s.channelzID, "grpc: Server.handleStream failed to write status: %v", err) } if trInfo != nil { trInfo.tr.Finish() @@ -1120,53 +1697,39 @@ func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Str } service := sm[:pos] method := sm[pos+1:] - srv, ok := s.m[service] - if !ok { - if unknownDesc := s.opts.unknownStreamDesc; unknownDesc != nil { - s.processStreamingRPC(t, stream, nil, unknownDesc, trInfo) + + srv, knownService := s.services[service] + if knownService { + if md, ok := srv.methods[method]; ok { + s.processUnaryRPC(t, stream, srv, md, trInfo) return } - if trInfo != nil { - trInfo.tr.LazyLog(&fmtStringer{"Unknown service %v", []interface{}{service}}, true) - trInfo.tr.SetError() - } - errDesc := fmt.Sprintf("unknown service %v", service) - if err := t.WriteStatus(stream, status.New(codes.Unimplemented, errDesc)); err != nil { - if trInfo != nil { - trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) - trInfo.tr.SetError() - } - grpclog.Warningf("grpc: Server.handleStream failed to write status: %v", err) - } - if trInfo != nil { - trInfo.tr.Finish() + if sd, ok := srv.streams[method]; ok { + s.processStreamingRPC(t, stream, srv, sd, trInfo) + return } - return } - // Unary RPC or Streaming RPC? - if md, ok := srv.md[method]; ok { - s.processUnaryRPC(t, stream, srv, md, trInfo) + // Unknown service, or known server unknown method. + if unknownDesc := s.opts.unknownStreamDesc; unknownDesc != nil { + s.processStreamingRPC(t, stream, nil, unknownDesc, trInfo) return } - if sd, ok := srv.sd[method]; ok { - s.processStreamingRPC(t, stream, srv, sd, trInfo) - return + var errDesc string + if !knownService { + errDesc = fmt.Sprintf("unknown service %v", service) + } else { + errDesc = fmt.Sprintf("unknown method %v for service %v", method, service) } if trInfo != nil { - trInfo.tr.LazyLog(&fmtStringer{"Unknown method %v", []interface{}{method}}, true) + trInfo.tr.LazyPrintf("%s", errDesc) trInfo.tr.SetError() } - if unknownDesc := s.opts.unknownStreamDesc; unknownDesc != nil { - s.processStreamingRPC(t, stream, nil, unknownDesc, trInfo) - return - } - errDesc := fmt.Sprintf("unknown method %v", method) if err := t.WriteStatus(stream, status.New(codes.Unimplemented, errDesc)); err != nil { if trInfo != nil { trInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true) trInfo.tr.SetError() } - grpclog.Warningf("grpc: Server.handleStream failed to write status: %v", err) + channelz.Warningf(logger, s.channelzID, "grpc: Server.handleStream failed to write status: %v", err) } if trInfo != nil { trInfo.tr.Finish() @@ -1179,7 +1742,10 @@ type streamKey struct{} // NewContextWithServerTransportStream creates a new context from ctx and // attaches stream to it. // -// This API is EXPERIMENTAL. +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. func NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context { return context.WithValue(ctx, streamKey{}, stream) } @@ -1191,7 +1757,10 @@ func NewContextWithServerTransportStream(ctx context.Context, stream ServerTrans // // See also NewContextWithServerTransportStream. // -// This API is EXPERIMENTAL. +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. type ServerTransportStream interface { Method() string SetHeader(md metadata.MD) error @@ -1199,10 +1768,15 @@ type ServerTransportStream interface { SetTrailer(md metadata.MD) error } -// serverStreamFromContext returns the server stream saved in ctx. Returns -// nil if the given context has no stream associated with it (which implies -// it is not an RPC invocation context). -func serverTransportStreamFromContext(ctx context.Context) ServerTransportStream { +// ServerTransportStreamFromContext returns the ServerTransportStream saved in +// ctx. Returns nil if the given context has no stream associated with it +// (which implies it is not an RPC invocation context). +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream { s, _ := ctx.Value(streamKey{}).(ServerTransportStream) return s } @@ -1213,21 +1787,19 @@ func serverTransportStreamFromContext(ctx context.Context) ServerTransportStream // pending RPCs on the client side will get notified by connection // errors. func (s *Server) Stop() { - s.quitOnce.Do(func() { - close(s.quit) - }) + s.quit.Fire() defer func() { s.serveWG.Wait() - s.doneOnce.Do(func() { - close(s.done) - }) + s.done.Fire() }() + s.channelzRemoveOnce.Do(func() { channelz.RemoveEntry(s.channelzID) }) + s.mu.Lock() listeners := s.lis s.lis = nil - st := s.conns + conns := s.conns s.conns = nil // interrupt GracefulStop if Stop and GracefulStop are called concurrently. s.cv.Broadcast() @@ -1236,8 +1808,13 @@ func (s *Server) Stop() { for lis := range listeners { lis.Close() } - for c := range st { - c.Close() + for _, cs := range conns { + for st := range cs { + st.Close(errors.New("Server.Stop called")) + } + } + if s.opts.numServerWorkers > 0 { + s.stopServerWorkers() } s.mu.Lock() @@ -1252,28 +1829,25 @@ func (s *Server) Stop() { // accepting new connections and RPCs and blocks until all the pending RPCs are // finished. func (s *Server) GracefulStop() { - s.quitOnce.Do(func() { - close(s.quit) - }) - - defer func() { - s.doneOnce.Do(func() { - close(s.done) - }) - }() + s.quit.Fire() + defer s.done.Fire() + s.channelzRemoveOnce.Do(func() { channelz.RemoveEntry(s.channelzID) }) s.mu.Lock() if s.conns == nil { s.mu.Unlock() return } + for lis := range s.lis { lis.Close() } s.lis = nil if !s.drain { - for c := range s.conns { - c.(transport.ServerTransport).Drain() + for _, conns := range s.conns { + for st := range conns { + st.Drain() + } } s.drain = true } @@ -1295,12 +1869,6 @@ func (s *Server) GracefulStop() { s.mu.Unlock() } -func init() { - internal.TestingUseHandlerImpl = func(arg interface{}) { - arg.(*Server).opts.useHandlerImpl = true - } -} - // contentSubtype must be lowercase // cannot return nil func (s *Server) getCodec(contentSubtype string) baseCodec { @@ -1317,27 +1885,47 @@ func (s *Server) getCodec(contentSubtype string) baseCodec { return codec } -// SetHeader sets the header metadata. -// When called multiple times, all the provided metadata will be merged. -// All the metadata will be sent out when one of the following happens: -// - grpc.SendHeader() is called; -// - The first response is sent out; -// - An RPC status is sent out (error or success). +// SetHeader sets the header metadata to be sent from the server to the client. +// The context provided must be the context passed to the server's handler. +// +// Streaming RPCs should prefer the SetHeader method of the ServerStream. +// +// When called multiple times, all the provided metadata will be merged. All +// the metadata will be sent out when one of the following happens: +// +// - grpc.SendHeader is called, or for streaming handlers, stream.SendHeader. +// - The first response message is sent. For unary handlers, this occurs when +// the handler returns; for streaming handlers, this can happen when stream's +// SendMsg method is called. +// - An RPC status is sent out (error or success). This occurs when the handler +// returns. +// +// SetHeader will fail if called after any of the events above. +// +// The error returned is compatible with the status package. However, the +// status code will often not match the RPC status as seen by the client +// application, and therefore, should not be relied upon for this purpose. func SetHeader(ctx context.Context, md metadata.MD) error { if md.Len() == 0 { return nil } - stream := serverTransportStreamFromContext(ctx) + stream := ServerTransportStreamFromContext(ctx) if stream == nil { return status.Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx) } return stream.SetHeader(md) } -// SendHeader sends header metadata. It may be called at most once. -// The provided md and headers set by SetHeader() will be sent. +// SendHeader sends header metadata. It may be called at most once, and may not +// be called after any event that causes headers to be sent (see SetHeader for +// a complete list). The provided md and headers set by SetHeader() will be +// sent. +// +// The error returned is compatible with the status package. However, the +// status code will often not match the RPC status as seen by the client +// application, and therefore, should not be relied upon for this purpose. func SendHeader(ctx context.Context, md metadata.MD) error { - stream := serverTransportStreamFromContext(ctx) + stream := ServerTransportStreamFromContext(ctx) if stream == nil { return status.Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx) } @@ -1349,11 +1937,15 @@ func SendHeader(ctx context.Context, md metadata.MD) error { // SetTrailer sets the trailer metadata that will be sent when an RPC returns. // When called more than once, all the provided metadata will be merged. +// +// The error returned is compatible with the status package. However, the +// status code will often not match the RPC status as seen by the client +// application, and therefore, should not be relied upon for this purpose. func SetTrailer(ctx context.Context, md metadata.MD) error { if md.Len() == 0 { return nil } - stream := serverTransportStreamFromContext(ctx) + stream := ServerTransportStreamFromContext(ctx) if stream == nil { return status.Errorf(codes.Internal, "grpc: failed to fetch the stream from the context %v", ctx) } @@ -1363,9 +1955,17 @@ func SetTrailer(ctx context.Context, md metadata.MD) error { // Method returns the method string for the server context. The returned // string is in the format of "/service/method". func Method(ctx context.Context) (string, bool) { - s := serverTransportStreamFromContext(ctx) + s := ServerTransportStreamFromContext(ctx) if s == nil { return "", false } return s.Method(), true } + +type channelzServer struct { + s *Server +} + +func (c *channelzServer) ChannelzMetric() *channelz.ServerInternalMetric { + return c.s.channelzMetric() +} diff --git a/vendor/google.golang.org/grpc/service_config.go b/vendor/google.golang.org/grpc/service_config.go index 53fa88f..f22acac 100644 --- a/vendor/google.golang.org/grpc/service_config.go +++ b/vendor/google.golang.org/grpc/service_config.go @@ -20,57 +20,113 @@ package grpc import ( "encoding/json" + "errors" "fmt" + "reflect" "strconv" "strings" "time" - "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/internal" + internalserviceconfig "google.golang.org/grpc/internal/serviceconfig" + "google.golang.org/grpc/serviceconfig" ) const maxInt = int(^uint(0) >> 1) // MethodConfig defines the configuration recommended by the service providers for a // particular method. -// DEPRECATED: Users should not use this struct. Service config should be received +// +// Deprecated: Users should not use this struct. Service config should be received // through name resolver, as specified here // https://github.com/grpc/grpc/blob/master/doc/service_config.md -type MethodConfig struct { - // WaitForReady indicates whether RPCs sent to this method should wait until - // the connection is ready by default (!failfast). The value specified via the - // gRPC client API will override the value set here. - WaitForReady *bool - // Timeout is the default timeout for RPCs sent to this method. The actual - // deadline used will be the minimum of the value specified here and the value - // set by the application via the gRPC client API. If either one is not set, - // then the other will be used. If neither is set, then the RPC has no deadline. - Timeout *time.Duration - // MaxReqSize is the maximum allowed payload size for an individual request in a - // stream (client->server) in bytes. The size which is measured is the serialized - // payload after per-message compression (but before stream compression) in bytes. - // The actual value used is the minimum of the value specified here and the value set - // by the application via the gRPC client API. If either one is not set, then the other - // will be used. If neither is set, then the built-in default is used. - MaxReqSize *int - // MaxRespSize is the maximum allowed payload size for an individual response in a - // stream (server->client) in bytes. - MaxRespSize *int +type MethodConfig = internalserviceconfig.MethodConfig + +type lbConfig struct { + name string + cfg serviceconfig.LoadBalancingConfig } // ServiceConfig is provided by the service provider and contains parameters for how // clients that connect to the service should behave. -// DEPRECATED: Users should not use this struct. Service config should be received +// +// Deprecated: Users should not use this struct. Service config should be received // through name resolver, as specified here // https://github.com/grpc/grpc/blob/master/doc/service_config.md type ServiceConfig struct { - // LB is the load balancer the service providers recommends. The balancer specified - // via grpc.WithBalancer will override this. + serviceconfig.Config + + // LB is the load balancer the service providers recommends. This is + // deprecated; lbConfigs is preferred. If lbConfig and LB are both present, + // lbConfig will be used. LB *string - // Methods contains a map for the methods in this service. - // If there is an exact match for a method (i.e. /service/method) in the map, use the corresponding MethodConfig. - // If there's no exact match, look for the default config for the service (/service/) and use the corresponding MethodConfig if it exists. - // Otherwise, the method has no MethodConfig to use. + + // lbConfig is the service config's load balancing configuration. If + // lbConfig and LB are both present, lbConfig will be used. + lbConfig *lbConfig + + // Methods contains a map for the methods in this service. If there is an + // exact match for a method (i.e. /service/method) in the map, use the + // corresponding MethodConfig. If there's no exact match, look for the + // default config for the service (/service/) and use the corresponding + // MethodConfig if it exists. Otherwise, the method has no MethodConfig to + // use. Methods map[string]MethodConfig + + // If a retryThrottlingPolicy is provided, gRPC will automatically throttle + // retry attempts and hedged RPCs when the client’s ratio of failures to + // successes exceeds a threshold. + // + // For each server name, the gRPC client will maintain a token_count which is + // initially set to maxTokens, and can take values between 0 and maxTokens. + // + // Every outgoing RPC (regardless of service or method invoked) will change + // token_count as follows: + // + // - Every failed RPC will decrement the token_count by 1. + // - Every successful RPC will increment the token_count by tokenRatio. + // + // If token_count is less than or equal to maxTokens / 2, then RPCs will not + // be retried and hedged RPCs will not be sent. + retryThrottling *retryThrottlingPolicy + // healthCheckConfig must be set as one of the requirement to enable LB channel + // health check. + healthCheckConfig *healthCheckConfig + // rawJSONString stores service config json string that get parsed into + // this service config struct. + rawJSONString string +} + +// healthCheckConfig defines the go-native version of the LB channel health check config. +type healthCheckConfig struct { + // serviceName is the service name to use in the health-checking request. + ServiceName string +} + +type jsonRetryPolicy struct { + MaxAttempts int + InitialBackoff string + MaxBackoff string + BackoffMultiplier float64 + RetryableStatusCodes []codes.Code +} + +// retryThrottlingPolicy defines the go-native version of the retry throttling +// policy defined by the service config here: +// https://github.com/grpc/proposal/blob/master/A6-client-retries.md#integration-with-service-config +type retryThrottlingPolicy struct { + // The number of tokens starts at maxTokens. The token_count will always be + // between 0 and maxTokens. + // + // This field is required and must be greater than zero. + MaxTokens float64 + // The amount of tokens to add on each successful RPC. Typically this will + // be some number between 0 and 1, e.g., 0.1. + // + // This field is required and must be greater than zero. Up to 3 decimal + // places are supported. + TokenRatio float64 } func parseDuration(s *string) (*time.Duration, error) { @@ -118,19 +174,27 @@ func parseDuration(s *string) (*time.Duration, error) { } type jsonName struct { - Service *string - Method *string + Service string + Method string } -func (j jsonName) generatePath() (string, bool) { - if j.Service == nil { - return "", false +var ( + errDuplicatedName = errors.New("duplicated name") + errEmptyServiceNonEmptyMethod = errors.New("cannot combine empty 'service' and non-empty 'method'") +) + +func (j jsonName) generatePath() (string, error) { + if j.Service == "" { + if j.Method != "" { + return "", errEmptyServiceNonEmptyMethod + } + return "", nil } - res := "/" + *j.Service + "/" - if j.Method != nil { - res += *j.Method + res := "/" + j.Service + "/" + if j.Method != "" { + res += j.Method } - return res, true + return res, nil } // TODO(lyuxuan): delete this struct after cleaning up old service config implementation. @@ -140,43 +204,68 @@ type jsonMC struct { Timeout *string MaxRequestMessageBytes *int64 MaxResponseMessageBytes *int64 + RetryPolicy *jsonRetryPolicy } // TODO(lyuxuan): delete this struct after cleaning up old service config implementation. type jsonSC struct { LoadBalancingPolicy *string + LoadBalancingConfig *internalserviceconfig.BalancerConfig MethodConfig *[]jsonMC + RetryThrottling *retryThrottlingPolicy + HealthCheckConfig *healthCheckConfig } -func parseServiceConfig(js string) (ServiceConfig, error) { +func init() { + internal.ParseServiceConfig = parseServiceConfig +} +func parseServiceConfig(js string) *serviceconfig.ParseResult { + if len(js) == 0 { + return &serviceconfig.ParseResult{Err: fmt.Errorf("no JSON service config provided")} + } var rsc jsonSC err := json.Unmarshal([]byte(js), &rsc) if err != nil { - grpclog.Warningf("grpc: parseServiceConfig error unmarshaling %s due to %v", js, err) - return ServiceConfig{}, err + logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) + return &serviceconfig.ParseResult{Err: err} } sc := ServiceConfig{ - LB: rsc.LoadBalancingPolicy, - Methods: make(map[string]MethodConfig), + LB: rsc.LoadBalancingPolicy, + Methods: make(map[string]MethodConfig), + retryThrottling: rsc.RetryThrottling, + healthCheckConfig: rsc.HealthCheckConfig, + rawJSONString: js, + } + if c := rsc.LoadBalancingConfig; c != nil { + sc.lbConfig = &lbConfig{ + name: c.Name, + cfg: c.Config, + } } + if rsc.MethodConfig == nil { - return sc, nil + return &serviceconfig.ParseResult{Config: &sc} } + paths := map[string]struct{}{} for _, m := range *rsc.MethodConfig { if m.Name == nil { continue } d, err := parseDuration(m.Timeout) if err != nil { - grpclog.Warningf("grpc: parseServiceConfig error unmarshaling %s due to %v", js, err) - return ServiceConfig{}, err + logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) + return &serviceconfig.ParseResult{Err: err} } mc := MethodConfig{ WaitForReady: m.WaitForReady, Timeout: d, } + if mc.RetryPolicy, err = convertRetryPolicy(m.RetryPolicy); err != nil { + logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) + return &serviceconfig.ParseResult{Err: err} + } if m.MaxRequestMessageBytes != nil { if *m.MaxRequestMessageBytes > int64(maxInt) { mc.MaxReqSize = newInt(maxInt) @@ -191,14 +280,71 @@ func parseServiceConfig(js string) (ServiceConfig, error) { mc.MaxRespSize = newInt(int(*m.MaxResponseMessageBytes)) } } - for _, n := range *m.Name { - if path, valid := n.generatePath(); valid { - sc.Methods[path] = mc + for i, n := range *m.Name { + path, err := n.generatePath() + if err != nil { + logger.Warningf("grpc: error unmarshaling service config %s due to methodConfig[%d]: %v", js, i, err) + return &serviceconfig.ParseResult{Err: err} + } + + if _, ok := paths[path]; ok { + err = errDuplicatedName + logger.Warningf("grpc: error unmarshaling service config %s due to methodConfig[%d]: %v", js, i, err) + return &serviceconfig.ParseResult{Err: err} } + paths[path] = struct{}{} + sc.Methods[path] = mc } } - return sc, nil + if sc.retryThrottling != nil { + if mt := sc.retryThrottling.MaxTokens; mt <= 0 || mt > 1000 { + return &serviceconfig.ParseResult{Err: fmt.Errorf("invalid retry throttling config: maxTokens (%v) out of range (0, 1000]", mt)} + } + if tr := sc.retryThrottling.TokenRatio; tr <= 0 { + return &serviceconfig.ParseResult{Err: fmt.Errorf("invalid retry throttling config: tokenRatio (%v) may not be negative", tr)} + } + } + return &serviceconfig.ParseResult{Config: &sc} +} + +func convertRetryPolicy(jrp *jsonRetryPolicy) (p *internalserviceconfig.RetryPolicy, err error) { + if jrp == nil { + return nil, nil + } + ib, err := parseDuration(&jrp.InitialBackoff) + if err != nil { + return nil, err + } + mb, err := parseDuration(&jrp.MaxBackoff) + if err != nil { + return nil, err + } + + if jrp.MaxAttempts <= 1 || + *ib <= 0 || + *mb <= 0 || + jrp.BackoffMultiplier <= 0 || + len(jrp.RetryableStatusCodes) == 0 { + logger.Warningf("grpc: ignoring retry policy %v due to illegal configuration", jrp) + return nil, nil + } + + rp := &internalserviceconfig.RetryPolicy{ + MaxAttempts: jrp.MaxAttempts, + InitialBackoff: *ib, + MaxBackoff: *mb, + BackoffMultiplier: jrp.BackoffMultiplier, + RetryableStatusCodes: make(map[codes.Code]bool), + } + if rp.MaxAttempts > 5 { + // TODO(retry): Make the max maxAttempts configurable. + rp.MaxAttempts = 5 + } + for _, code := range jrp.RetryableStatusCodes { + rp.RetryableStatusCodes[code] = true + } + return rp, nil } func min(a, b *int) *int { @@ -224,3 +370,37 @@ func getMaxSize(mcMax, doptMax *int, defaultVal int) *int { func newInt(b int) *int { return &b } + +func init() { + internal.EqualServiceConfigForTesting = equalServiceConfig +} + +// equalServiceConfig compares two configs. The rawJSONString field is ignored, +// because they may diff in white spaces. +// +// If any of them is NOT *ServiceConfig, return false. +func equalServiceConfig(a, b serviceconfig.Config) bool { + if a == nil && b == nil { + return true + } + aa, ok := a.(*ServiceConfig) + if !ok { + return false + } + bb, ok := b.(*ServiceConfig) + if !ok { + return false + } + aaRaw := aa.rawJSONString + aa.rawJSONString = "" + bbRaw := bb.rawJSONString + bb.rawJSONString = "" + defer func() { + aa.rawJSONString = aaRaw + bb.rawJSONString = bbRaw + }() + // Using reflect.DeepEqual instead of cmp.Equal because many balancer + // configs are unexported, and cmp.Equal cannot compare unexported fields + // from unexported structs. + return reflect.DeepEqual(aa, bb) +} diff --git a/vendor/google.golang.org/grpc/serviceconfig/serviceconfig.go b/vendor/google.golang.org/grpc/serviceconfig/serviceconfig.go new file mode 100644 index 0000000..35e7a20 --- /dev/null +++ b/vendor/google.golang.org/grpc/serviceconfig/serviceconfig.go @@ -0,0 +1,44 @@ +/* + * + * Copyright 2019 gRPC authors. + * + * 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 serviceconfig defines types and methods for operating on gRPC +// service configs. +// +// # Experimental +// +// Notice: This package is EXPERIMENTAL and may be changed or removed in a +// later release. +package serviceconfig + +// Config represents an opaque data structure holding a service config. +type Config interface { + isServiceConfig() +} + +// LoadBalancingConfig represents an opaque data structure holding a load +// balancing config. +type LoadBalancingConfig interface { + isLoadBalancingConfig() +} + +// ParseResult contains a service config or an error. Exactly one must be +// non-nil. +type ParseResult struct { + Config Config + Err error +} diff --git a/vendor/google.golang.org/grpc/stats/handlers.go b/vendor/google.golang.org/grpc/stats/handlers.go index 05b384c..dc03731 100644 --- a/vendor/google.golang.org/grpc/stats/handlers.go +++ b/vendor/google.golang.org/grpc/stats/handlers.go @@ -19,9 +19,8 @@ package stats import ( + "context" "net" - - "golang.org/x/net/context" ) // ConnTagInfo defines the relevant information needed by connection context tagger. diff --git a/vendor/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.go index 3f13190..0285dcc 100644 --- a/vendor/google.golang.org/grpc/stats/stats.go +++ b/vendor/google.golang.org/grpc/stats/stats.go @@ -16,18 +16,17 @@ * */ -//go:generate protoc --go_out=plugins=grpc:. grpc_testing/test.proto - // Package stats is for collecting and reporting various network and RPC stats. // This package is for monitoring purpose only. All fields are read-only. // All APIs are experimental. package stats // import "google.golang.org/grpc/stats" import ( + "context" "net" "time" - "golang.org/x/net/context" + "google.golang.org/grpc/metadata" ) // RPCStats contains stats information about RPCs. @@ -37,15 +36,22 @@ type RPCStats interface { IsClient() bool } -// Begin contains stats when an RPC begins. +// Begin contains stats when an RPC attempt begins. // FailFast is only valid if this Begin is from client side. type Begin struct { // Client is true if this Begin is from client side. Client bool - // BeginTime is the time when the RPC begins. + // BeginTime is the time when the RPC attempt begins. BeginTime time.Time // FailFast indicates if this RPC is failfast. FailFast bool + // IsClientStream indicates whether the RPC is a client streaming RPC. + IsClientStream bool + // IsServerStream indicates whether the RPC is a server streaming RPC. + IsServerStream bool + // IsTransparentRetryAttempt indicates whether this attempt was initiated + // due to transparently retrying a previous attempt. + IsTransparentRetryAttempt bool } // IsClient indicates if the stats information is from client side. @@ -80,6 +86,10 @@ type InHeader struct { Client bool // WireLength is the wire length of header. WireLength int + // Compression is the compression algorithm used for the RPC. + Compression string + // Header contains the header metadata received. + Header metadata.MD // The following fields are valid only if Client is false. // FullMethod is the full RPC method string, i.e., /package.service/method. @@ -88,8 +98,6 @@ type InHeader struct { RemoteAddr net.Addr // LocalAddr is the local address of the corresponding connection. LocalAddr net.Addr - // Compression is the compression algorithm used for the RPC. - Compression string } // IsClient indicates if the stats information is from client side. @@ -103,6 +111,9 @@ type InTrailer struct { Client bool // WireLength is the wire length of trailer. WireLength int + // Trailer contains the trailer metadata received from the server. This + // field is only valid if this InTrailer is from the client side. + Trailer metadata.MD } // IsClient indicates if the stats information is from client side. @@ -135,6 +146,10 @@ func (s *OutPayload) isRPCStats() {} type OutHeader struct { // Client is true if this OutHeader is from client side. Client bool + // Compression is the compression algorithm used for the RPC. + Compression string + // Header contains the header metadata sent. + Header metadata.MD // The following fields are valid only if Client is true. // FullMethod is the full RPC method string, i.e., /package.service/method. @@ -143,8 +158,6 @@ type OutHeader struct { RemoteAddr net.Addr // LocalAddr is the local address of the corresponding connection. LocalAddr net.Addr - // Compression is the compression algorithm used for the RPC. - Compression string } // IsClient indicates if this stats information is from client side. @@ -157,7 +170,13 @@ type OutTrailer struct { // Client is true if this OutTrailer is from client side. Client bool // WireLength is the wire length of trailer. + // + // Deprecated: This field is never set. The length is not known when this message is + // emitted because the trailer fields are compressed with hpack after that. WireLength int + // Trailer contains the trailer metadata sent to the client. This + // field is only valid if this OutTrailer is from the server side. + Trailer metadata.MD } // IsClient indicates if this stats information is from client side. @@ -173,6 +192,10 @@ type End struct { BeginTime time.Time // EndTime is the time when the RPC ends. EndTime time.Time + // Trailer contains the trailer metadata received from the server. This + // field is only valid if this End is from the client side. + // Deprecated: use Trailer in InTrailer instead. + Trailer metadata.MD // Error is the error the RPC ended with. It is an error generated from // status.Status and can be converted back to status.Status using // status.FromError if non-nil. diff --git a/vendor/google.golang.org/grpc/status/status.go b/vendor/google.golang.org/grpc/status/status.go index 9c61b09..623be39 100644 --- a/vendor/google.golang.org/grpc/status/status.go +++ b/vendor/google.golang.org/grpc/status/status.go @@ -28,70 +28,25 @@ package status import ( + "context" "errors" "fmt" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes" spb "google.golang.org/genproto/googleapis/rpc/status" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/internal/status" ) -// statusError is an alias of a status proto. It implements error and Status, -// and a nil statusError should never be returned by this package. -type statusError spb.Status - -func (se *statusError) Error() string { - p := (*spb.Status)(se) - return fmt.Sprintf("rpc error: code = %s desc = %s", codes.Code(p.GetCode()), p.GetMessage()) -} - -func (se *statusError) GRPCStatus() *Status { - return &Status{s: (*spb.Status)(se)} -} - -// Status represents an RPC status code, message, and details. It is immutable -// and should be created with New, Newf, or FromProto. -type Status struct { - s *spb.Status -} - -// Code returns the status code contained in s. -func (s *Status) Code() codes.Code { - if s == nil || s.s == nil { - return codes.OK - } - return codes.Code(s.s.Code) -} - -// Message returns the message contained in s. -func (s *Status) Message() string { - if s == nil || s.s == nil { - return "" - } - return s.s.Message -} - -// Proto returns s's status as an spb.Status proto message. -func (s *Status) Proto() *spb.Status { - if s == nil { - return nil - } - return proto.Clone(s.s).(*spb.Status) -} - -// Err returns an immutable error representing s; returns nil if s.Code() is -// OK. -func (s *Status) Err() error { - if s.Code() == codes.OK { - return nil - } - return (*statusError)(s.s) -} +// Status references google.golang.org/grpc/internal/status. It represents an +// RPC status code, message, and details. It is immutable and should be +// created with New, Newf, or FromProto. +// https://godoc.org/google.golang.org/grpc/internal/status +type Status = status.Status // New returns a Status representing c and msg. func New(c codes.Code, msg string) *Status { - return &Status{s: &spb.Status{Code: int32(c), Message: msg}} + return status.New(c, msg) } // Newf returns New(c, fmt.Sprintf(format, a...)). @@ -116,17 +71,26 @@ func ErrorProto(s *spb.Status) error { // FromProto returns a Status representing s. func FromProto(s *spb.Status) *Status { - return &Status{s: proto.Clone(s).(*spb.Status)} + return status.FromProto(s) } -// FromError returns a Status representing err if it was produced from this -// package or has a method `GRPCStatus() *Status`. Otherwise, ok is false and a -// Status is returned with codes.Unknown and the original error message. +// FromError returns a Status representation of err. +// +// - If err was produced by this package or implements the method `GRPCStatus() +// *Status`, the appropriate Status is returned. +// +// - If err is nil, a Status is returned with codes.OK and no message. +// +// - Otherwise, err is an error not compatible with this package. In this +// case, a Status is returned with codes.Unknown and err's Error() message, +// and ok is false. func FromError(err error) (s *Status, ok bool) { if err == nil { - return &Status{s: &spb.Status{Code: int32(codes.OK)}}, true + return nil, true } - if se, ok := err.(interface{ GRPCStatus() *Status }); ok { + if se, ok := err.(interface { + GRPCStatus() *Status + }); ok { return se.GRPCStatus(), true } return New(codes.Unknown, err.Error()), false @@ -139,42 +103,6 @@ func Convert(err error) *Status { return s } -// WithDetails returns a new status with the provided details messages appended to the status. -// If any errors are encountered, it returns nil and the first error encountered. -func (s *Status) WithDetails(details ...proto.Message) (*Status, error) { - if s.Code() == codes.OK { - return nil, errors.New("no error details for status with code OK") - } - // s.Code() != OK implies that s.Proto() != nil. - p := s.Proto() - for _, detail := range details { - any, err := ptypes.MarshalAny(detail) - if err != nil { - return nil, err - } - p.Details = append(p.Details, any) - } - return &Status{s: p}, nil -} - -// Details returns a slice of details messages attached to the status. -// If a detail cannot be decoded, the error is returned in place of the detail. -func (s *Status) Details() []interface{} { - if s == nil || s.s == nil { - return nil - } - details := make([]interface{}, 0, len(s.s.Details)) - for _, any := range s.s.Details { - detail := &ptypes.DynamicAny{} - if err := ptypes.UnmarshalAny(any, detail); err != nil { - details = append(details, err) - continue - } - details = append(details, detail.Message) - } - return details -} - // Code returns the Code of the error if it is a Status error, codes.OK if err // is nil, or codes.Unknown otherwise. func Code(err error) codes.Code { @@ -182,8 +110,26 @@ func Code(err error) codes.Code { if err == nil { return codes.OK } - if se, ok := err.(interface{ GRPCStatus() *Status }); ok { + if se, ok := err.(interface { + GRPCStatus() *Status + }); ok { return se.GRPCStatus().Code() } return codes.Unknown } + +// FromContextError converts a context error or wrapped context error into a +// Status. It returns a Status with codes.OK if err is nil, or a Status with +// codes.Unknown if err is non-nil and not a context error. +func FromContextError(err error) *Status { + if err == nil { + return nil + } + if errors.Is(err, context.DeadlineExceeded) { + return New(codes.DeadlineExceeded, err.Error()) + } + if errors.Is(err, context.Canceled) { + return New(codes.Canceled, err.Error()) + } + return New(codes.Unknown, err.Error()) +} diff --git a/vendor/google.golang.org/grpc/stream.go b/vendor/google.golang.org/grpc/stream.go index 75a4e8d..93231af 100644 --- a/vendor/google.golang.org/grpc/stream.go +++ b/vendor/google.golang.org/grpc/stream.go @@ -19,66 +19,75 @@ package grpc import ( + "context" "errors" "io" + "math" + "strconv" "sync" "time" - "golang.org/x/net/context" "golang.org/x/net/trace" "google.golang.org/grpc/balancer" "google.golang.org/grpc/codes" "google.golang.org/grpc/encoding" + "google.golang.org/grpc/internal/balancerload" + "google.golang.org/grpc/internal/binarylog" + "google.golang.org/grpc/internal/channelz" + "google.golang.org/grpc/internal/grpcrand" + "google.golang.org/grpc/internal/grpcutil" + imetadata "google.golang.org/grpc/internal/metadata" + iresolver "google.golang.org/grpc/internal/resolver" + "google.golang.org/grpc/internal/serviceconfig" + istatus "google.golang.org/grpc/internal/status" + "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/metadata" + "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" "google.golang.org/grpc/status" - "google.golang.org/grpc/transport" ) // StreamHandler defines the handler called by gRPC server to complete the -// execution of a streaming RPC. If a StreamHandler returns an error, it -// should be produced by the status package, or else gRPC will use -// codes.Unknown as the status code and err.Error() as the status message -// of the RPC. +// execution of a streaming RPC. +// +// If a StreamHandler returns an error, it should either be produced by the +// status package, or be one of the context errors. Otherwise, gRPC will use +// codes.Unknown as the status code and err.Error() as the status message of the +// RPC. type StreamHandler func(srv interface{}, stream ServerStream) error -// StreamDesc represents a streaming RPC service's method specification. +// StreamDesc represents a streaming RPC service's method specification. Used +// on the server when registering services and on the client when initiating +// new streams. type StreamDesc struct { - StreamName string - Handler StreamHandler + // StreamName and Handler are only used when registering handlers on a + // server. + StreamName string // the name of the method excluding the service + Handler StreamHandler // the handler called for the method - // At least one of these is true. - ServerStreams bool - ClientStreams bool + // ServerStreams and ClientStreams are used for registering handlers on a + // server as well as defining RPC behavior when passed to NewClientStream + // and ClientConn.NewStream. At least one must be true. + ServerStreams bool // indicates the server can perform streaming sends + ClientStreams bool // indicates the client can perform streaming sends } // Stream defines the common interface a client or server stream has to satisfy. // -// All errors returned from Stream are compatible with the status package. +// Deprecated: See ClientStream and ServerStream documentation instead. type Stream interface { - // Context returns the context for this stream. + // Deprecated: See ClientStream and ServerStream documentation instead. Context() context.Context - // SendMsg blocks until it sends m, the stream is done or the stream - // breaks. - // On error, it aborts the stream and returns an RPC status on client - // side. On server side, it simply returns the error to the caller. - // SendMsg is called by generated code. Also Users can call SendMsg - // directly when it is really needed in their use cases. - // It's safe to have a goroutine calling SendMsg and another goroutine calling - // recvMsg on the same stream at the same time. - // But it is not safe to call SendMsg on the same stream in different goroutines. + // Deprecated: See ClientStream and ServerStream documentation instead. SendMsg(m interface{}) error - // RecvMsg blocks until it receives a message or the stream is - // done. On client side, it returns io.EOF when the stream is done. On - // any other error, it aborts the stream and returns an RPC status. On - // server side, it simply returns the error to the caller. - // It's safe to have a goroutine calling SendMsg and another goroutine calling - // recvMsg on the same stream at the same time. - // But it is not safe to call RecvMsg on the same stream in different goroutines. + // Deprecated: See ClientStream and ServerStream documentation instead. RecvMsg(m interface{}) error } -// ClientStream defines the interface a client stream has to satisfy. +// ClientStream defines the client-side behavior of a streaming RPC. +// +// All errors returned from ClientStream methods are compatible with the +// status package. type ClientStream interface { // Header returns the header metadata received from the server if there // is any. It blocks if the metadata is not ready to read. @@ -88,19 +97,60 @@ type ClientStream interface { // stream.Recv has returned a non-nil error (including io.EOF). Trailer() metadata.MD // CloseSend closes the send direction of the stream. It closes the stream - // when non-nil error is met. + // when non-nil error is met. It is also not safe to call CloseSend + // concurrently with SendMsg. CloseSend() error - // Stream.SendMsg() may return a non-nil error when something wrong happens sending - // the request. The returned error indicates the status of this sending, not the final - // status of the RPC. + // Context returns the context for this stream. + // + // It should not be called until after Header or RecvMsg has returned. Once + // called, subsequent client-side retries are disabled. + Context() context.Context + // SendMsg is generally called by generated code. On error, SendMsg aborts + // the stream. If the error was generated by the client, the status is + // returned directly; otherwise, io.EOF is returned and the status of + // the stream may be discovered using RecvMsg. + // + // SendMsg blocks until: + // - There is sufficient flow control to schedule m with the transport, or + // - The stream is done, or + // - The stream breaks. + // + // SendMsg does not wait until the message is received by the server. An + // untimely stream closure may result in lost messages. To ensure delivery, + // users should ensure the RPC completed successfully using RecvMsg. // - // Always call Stream.RecvMsg() to drain the stream and get the final - // status, otherwise there could be leaked resources. - Stream + // It is safe to have a goroutine calling SendMsg and another goroutine + // calling RecvMsg on the same stream at the same time, but it is not safe + // to call SendMsg on the same stream in different goroutines. It is also + // not safe to call CloseSend concurrently with SendMsg. + SendMsg(m interface{}) error + // RecvMsg blocks until it receives a message into m or the stream is + // done. It returns io.EOF when the stream completes successfully. On + // any other error, the stream is aborted and the error contains the RPC + // status. + // + // It is safe to have a goroutine calling SendMsg and another goroutine + // calling RecvMsg on the same stream at the same time, but it is not + // safe to call RecvMsg on the same stream in different goroutines. + RecvMsg(m interface{}) error } // NewStream creates a new Stream for the client side. This is typically -// called by generated code. +// called by generated code. ctx is used for the lifetime of the stream. +// +// To ensure resources are not leaked due to the stream returned, one of the following +// actions must be performed: +// +// 1. Call Close on the ClientConn. +// 2. Cancel the context provided. +// 3. Call RecvMsg until a non-nil error is returned. A protobuf-generated +// client-streaming RPC, for instance, might use the helper function +// CloseAndRecv (note that CloseSend does not Recv, therefore is not +// guaranteed to release all resources). +// 4. Receive a non-nil, non-io.EOF error from Header or SendMsg. +// +// If none of the above happen, a goroutine and a context will be leaked, and grpc +// will not call the optionally-configured stats handler with a stats.End message. func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error) { // allow interceptor to see all applicable call options, which means those // configured as defaults from dial option as well as per-call options @@ -109,35 +159,1030 @@ func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method st if cc.dopts.streamInt != nil { return cc.dopts.streamInt(ctx, desc, cc, method, newClientStream, opts...) } - return newClientStream(ctx, desc, cc, method, opts...) + return newClientStream(ctx, desc, cc, method, opts...) +} + +// NewClientStream is a wrapper for ClientConn.NewStream. +func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error) { + return cc.NewStream(ctx, desc, method, opts...) +} + +func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) { + if md, _, ok := metadata.FromOutgoingContextRaw(ctx); ok { + if err := imetadata.Validate(md); err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + } + if channelz.IsOn() { + cc.incrCallsStarted() + defer func() { + if err != nil { + cc.incrCallsFailed() + } + }() + } + // Provide an opportunity for the first RPC to see the first service config + // provided by the resolver. + if err := cc.waitForResolvedAddrs(ctx); err != nil { + return nil, err + } + + var mc serviceconfig.MethodConfig + var onCommit func() + var newStream = func(ctx context.Context, done func()) (iresolver.ClientStream, error) { + return newClientStreamWithParams(ctx, desc, cc, method, mc, onCommit, done, opts...) + } + + rpcInfo := iresolver.RPCInfo{Context: ctx, Method: method} + rpcConfig, err := cc.safeConfigSelector.SelectConfig(rpcInfo) + if err != nil { + if st, ok := status.FromError(err); ok { + // Restrict the code to the list allowed by gRFC A54. + if istatus.IsRestrictedControlPlaneCode(st) { + err = status.Errorf(codes.Internal, "config selector returned illegal status: %v", err) + } + return nil, err + } + return nil, toRPCErr(err) + } + + if rpcConfig != nil { + if rpcConfig.Context != nil { + ctx = rpcConfig.Context + } + mc = rpcConfig.MethodConfig + onCommit = rpcConfig.OnCommitted + if rpcConfig.Interceptor != nil { + rpcInfo.Context = nil + ns := newStream + newStream = func(ctx context.Context, done func()) (iresolver.ClientStream, error) { + cs, err := rpcConfig.Interceptor.NewStream(ctx, rpcInfo, done, ns) + if err != nil { + return nil, toRPCErr(err) + } + return cs, nil + } + } + } + + return newStream(ctx, func() {}) +} + +func newClientStreamWithParams(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, mc serviceconfig.MethodConfig, onCommit, doneFunc func(), opts ...CallOption) (_ iresolver.ClientStream, err error) { + c := defaultCallInfo() + if mc.WaitForReady != nil { + c.failFast = !*mc.WaitForReady + } + + // Possible context leak: + // The cancel function for the child context we create will only be called + // when RecvMsg returns a non-nil error, if the ClientConn is closed, or if + // an error is generated by SendMsg. + // https://github.com/grpc/grpc-go/issues/1818. + var cancel context.CancelFunc + if mc.Timeout != nil && *mc.Timeout >= 0 { + ctx, cancel = context.WithTimeout(ctx, *mc.Timeout) + } else { + ctx, cancel = context.WithCancel(ctx) + } + defer func() { + if err != nil { + cancel() + } + }() + + for _, o := range opts { + if err := o.before(c); err != nil { + return nil, toRPCErr(err) + } + } + c.maxSendMessageSize = getMaxSize(mc.MaxReqSize, c.maxSendMessageSize, defaultClientMaxSendMessageSize) + c.maxReceiveMessageSize = getMaxSize(mc.MaxRespSize, c.maxReceiveMessageSize, defaultClientMaxReceiveMessageSize) + if err := setCallInfoCodec(c); err != nil { + return nil, err + } + + callHdr := &transport.CallHdr{ + Host: cc.authority, + Method: method, + ContentSubtype: c.contentSubtype, + DoneFunc: doneFunc, + } + + // Set our outgoing compression according to the UseCompressor CallOption, if + // set. In that case, also find the compressor from the encoding package. + // Otherwise, use the compressor configured by the WithCompressor DialOption, + // if set. + var cp Compressor + var comp encoding.Compressor + if ct := c.compressorType; ct != "" { + callHdr.SendCompress = ct + if ct != encoding.Identity { + comp = encoding.GetCompressor(ct) + if comp == nil { + return nil, status.Errorf(codes.Internal, "grpc: Compressor is not installed for requested grpc-encoding %q", ct) + } + } + } else if cc.dopts.cp != nil { + callHdr.SendCompress = cc.dopts.cp.Type() + cp = cc.dopts.cp + } + if c.creds != nil { + callHdr.Creds = c.creds + } + + cs := &clientStream{ + callHdr: callHdr, + ctx: ctx, + methodConfig: &mc, + opts: opts, + callInfo: c, + cc: cc, + desc: desc, + codec: c.codec, + cp: cp, + comp: comp, + cancel: cancel, + firstAttempt: true, + onCommit: onCommit, + } + if !cc.dopts.disableRetry { + cs.retryThrottler = cc.retryThrottler.Load().(*retryThrottler) + } + if ml := binarylog.GetMethodLogger(method); ml != nil { + cs.binlogs = append(cs.binlogs, ml) + } + if cc.dopts.binaryLogger != nil { + if ml := cc.dopts.binaryLogger.GetMethodLogger(method); ml != nil { + cs.binlogs = append(cs.binlogs, ml) + } + } + + // Pick the transport to use and create a new stream on the transport. + // Assign cs.attempt upon success. + op := func(a *csAttempt) error { + if err := a.getTransport(); err != nil { + return err + } + if err := a.newStream(); err != nil { + return err + } + // Because this operation is always called either here (while creating + // the clientStream) or by the retry code while locked when replaying + // the operation, it is safe to access cs.attempt directly. + cs.attempt = a + return nil + } + if err := cs.withRetry(op, func() { cs.bufferForRetryLocked(0, op) }); err != nil { + return nil, err + } + + if len(cs.binlogs) != 0 { + md, _ := metadata.FromOutgoingContext(ctx) + logEntry := &binarylog.ClientHeader{ + OnClientSide: true, + Header: md, + MethodName: method, + Authority: cs.cc.authority, + } + if deadline, ok := ctx.Deadline(); ok { + logEntry.Timeout = time.Until(deadline) + if logEntry.Timeout < 0 { + logEntry.Timeout = 0 + } + } + for _, binlog := range cs.binlogs { + binlog.Log(logEntry) + } + } + + if desc != unaryStreamDesc { + // Listen on cc and stream contexts to cleanup when the user closes the + // ClientConn or cancels the stream context. In all other cases, an error + // should already be injected into the recv buffer by the transport, which + // the client will eventually receive, and then we will cancel the stream's + // context in clientStream.finish. + go func() { + select { + case <-cc.ctx.Done(): + cs.finish(ErrClientConnClosing) + case <-ctx.Done(): + cs.finish(toRPCErr(ctx.Err())) + } + }() + } + return cs, nil +} + +// newAttemptLocked creates a new csAttempt without a transport or stream. +func (cs *clientStream) newAttemptLocked(isTransparent bool) (*csAttempt, error) { + if err := cs.ctx.Err(); err != nil { + return nil, toRPCErr(err) + } + if err := cs.cc.ctx.Err(); err != nil { + return nil, ErrClientConnClosing + } + + ctx := newContextWithRPCInfo(cs.ctx, cs.callInfo.failFast, cs.callInfo.codec, cs.cp, cs.comp) + method := cs.callHdr.Method + var beginTime time.Time + shs := cs.cc.dopts.copts.StatsHandlers + for _, sh := range shs { + ctx = sh.TagRPC(ctx, &stats.RPCTagInfo{FullMethodName: method, FailFast: cs.callInfo.failFast}) + beginTime = time.Now() + begin := &stats.Begin{ + Client: true, + BeginTime: beginTime, + FailFast: cs.callInfo.failFast, + IsClientStream: cs.desc.ClientStreams, + IsServerStream: cs.desc.ServerStreams, + IsTransparentRetryAttempt: isTransparent, + } + sh.HandleRPC(ctx, begin) + } + + var trInfo *traceInfo + if EnableTracing { + trInfo = &traceInfo{ + tr: trace.New("grpc.Sent."+methodFamily(method), method), + firstLine: firstLine{ + client: true, + }, + } + if deadline, ok := ctx.Deadline(); ok { + trInfo.firstLine.deadline = time.Until(deadline) + } + trInfo.tr.LazyLog(&trInfo.firstLine, false) + ctx = trace.NewContext(ctx, trInfo.tr) + } + + if cs.cc.parsedTarget.URL.Scheme == "xds" { + // Add extra metadata (metadata that will be added by transport) to context + // so the balancer can see them. + ctx = grpcutil.WithExtraMetadata(ctx, metadata.Pairs( + "content-type", grpcutil.ContentType(cs.callHdr.ContentSubtype), + )) + } + + return &csAttempt{ + ctx: ctx, + beginTime: beginTime, + cs: cs, + dc: cs.cc.dopts.dc, + statsHandlers: shs, + trInfo: trInfo, + }, nil +} + +func (a *csAttempt) getTransport() error { + cs := a.cs + + var err error + a.t, a.pickResult, err = cs.cc.getTransport(a.ctx, cs.callInfo.failFast, cs.callHdr.Method) + if err != nil { + if de, ok := err.(dropError); ok { + err = de.error + a.drop = true + } + return err + } + if a.trInfo != nil { + a.trInfo.firstLine.SetRemoteAddr(a.t.RemoteAddr()) + } + return nil +} + +func (a *csAttempt) newStream() error { + cs := a.cs + cs.callHdr.PreviousAttempts = cs.numRetries + + // Merge metadata stored in PickResult, if any, with existing call metadata. + // It is safe to overwrite the csAttempt's context here, since all state + // maintained in it are local to the attempt. When the attempt has to be + // retried, a new instance of csAttempt will be created. + if a.pickResult.Metatada != nil { + // We currently do not have a function it the metadata package which + // merges given metadata with existing metadata in a context. Existing + // function `AppendToOutgoingContext()` takes a variadic argument of key + // value pairs. + // + // TODO: Make it possible to retrieve key value pairs from metadata.MD + // in a form passable to AppendToOutgoingContext(), or create a version + // of AppendToOutgoingContext() that accepts a metadata.MD. + md, _ := metadata.FromOutgoingContext(a.ctx) + md = metadata.Join(md, a.pickResult.Metatada) + a.ctx = metadata.NewOutgoingContext(a.ctx, md) + } + + s, err := a.t.NewStream(a.ctx, cs.callHdr) + if err != nil { + nse, ok := err.(*transport.NewStreamError) + if !ok { + // Unexpected. + return err + } + + if nse.AllowTransparentRetry { + a.allowTransparentRetry = true + } + + // Unwrap and convert error. + return toRPCErr(nse.Err) + } + a.s = s + a.p = &parser{r: s} + return nil +} + +// clientStream implements a client side Stream. +type clientStream struct { + callHdr *transport.CallHdr + opts []CallOption + callInfo *callInfo + cc *ClientConn + desc *StreamDesc + + codec baseCodec + cp Compressor + comp encoding.Compressor + + cancel context.CancelFunc // cancels all attempts + + sentLast bool // sent an end stream + + methodConfig *MethodConfig + + ctx context.Context // the application's context, wrapped by stats/tracing + + retryThrottler *retryThrottler // The throttler active when the RPC began. + + binlogs []binarylog.MethodLogger + // serverHeaderBinlogged is a boolean for whether server header has been + // logged. Server header will be logged when the first time one of those + // happens: stream.Header(), stream.Recv(). + // + // It's only read and used by Recv() and Header(), so it doesn't need to be + // synchronized. + serverHeaderBinlogged bool + + mu sync.Mutex + firstAttempt bool // if true, transparent retry is valid + numRetries int // exclusive of transparent retry attempt(s) + numRetriesSincePushback int // retries since pushback; to reset backoff + finished bool // TODO: replace with atomic cmpxchg or sync.Once? + // attempt is the active client stream attempt. + // The only place where it is written is the newAttemptLocked method and this method never writes nil. + // So, attempt can be nil only inside newClientStream function when clientStream is first created. + // One of the first things done after clientStream's creation, is to call newAttemptLocked which either + // assigns a non nil value to the attempt or returns an error. If an error is returned from newAttemptLocked, + // then newClientStream calls finish on the clientStream and returns. So, finish method is the only + // place where we need to check if the attempt is nil. + attempt *csAttempt + // TODO(hedging): hedging will have multiple attempts simultaneously. + committed bool // active attempt committed for retry? + onCommit func() + buffer []func(a *csAttempt) error // operations to replay on retry + bufferSize int // current size of buffer +} + +// csAttempt implements a single transport stream attempt within a +// clientStream. +type csAttempt struct { + ctx context.Context + cs *clientStream + t transport.ClientTransport + s *transport.Stream + p *parser + pickResult balancer.PickResult + + finished bool + dc Decompressor + decomp encoding.Compressor + decompSet bool + + mu sync.Mutex // guards trInfo.tr + // trInfo may be nil (if EnableTracing is false). + // trInfo.tr is set when created (if EnableTracing is true), + // and cleared when the finish method is called. + trInfo *traceInfo + + statsHandlers []stats.Handler + beginTime time.Time + + // set for newStream errors that may be transparently retried + allowTransparentRetry bool + // set for pick errors that are returned as a status + drop bool +} + +func (cs *clientStream) commitAttemptLocked() { + if !cs.committed && cs.onCommit != nil { + cs.onCommit() + } + cs.committed = true + cs.buffer = nil +} + +func (cs *clientStream) commitAttempt() { + cs.mu.Lock() + cs.commitAttemptLocked() + cs.mu.Unlock() +} + +// shouldRetry returns nil if the RPC should be retried; otherwise it returns +// the error that should be returned by the operation. If the RPC should be +// retried, the bool indicates whether it is being retried transparently. +func (a *csAttempt) shouldRetry(err error) (bool, error) { + cs := a.cs + + if cs.finished || cs.committed || a.drop { + // RPC is finished or committed or was dropped by the picker; cannot retry. + return false, err + } + if a.s == nil && a.allowTransparentRetry { + return true, nil + } + // Wait for the trailers. + unprocessed := false + if a.s != nil { + <-a.s.Done() + unprocessed = a.s.Unprocessed() + } + if cs.firstAttempt && unprocessed { + // First attempt, stream unprocessed: transparently retry. + return true, nil + } + if cs.cc.dopts.disableRetry { + return false, err + } + + pushback := 0 + hasPushback := false + if a.s != nil { + if !a.s.TrailersOnly() { + return false, err + } + + // TODO(retry): Move down if the spec changes to not check server pushback + // before considering this a failure for throttling. + sps := a.s.Trailer()["grpc-retry-pushback-ms"] + if len(sps) == 1 { + var e error + if pushback, e = strconv.Atoi(sps[0]); e != nil || pushback < 0 { + channelz.Infof(logger, cs.cc.channelzID, "Server retry pushback specified to abort (%q).", sps[0]) + cs.retryThrottler.throttle() // This counts as a failure for throttling. + return false, err + } + hasPushback = true + } else if len(sps) > 1 { + channelz.Warningf(logger, cs.cc.channelzID, "Server retry pushback specified multiple values (%q); not retrying.", sps) + cs.retryThrottler.throttle() // This counts as a failure for throttling. + return false, err + } + } + + var code codes.Code + if a.s != nil { + code = a.s.Status().Code() + } else { + code = status.Code(err) + } + + rp := cs.methodConfig.RetryPolicy + if rp == nil || !rp.RetryableStatusCodes[code] { + return false, err + } + + // Note: the ordering here is important; we count this as a failure + // only if the code matched a retryable code. + if cs.retryThrottler.throttle() { + return false, err + } + if cs.numRetries+1 >= rp.MaxAttempts { + return false, err + } + + var dur time.Duration + if hasPushback { + dur = time.Millisecond * time.Duration(pushback) + cs.numRetriesSincePushback = 0 + } else { + fact := math.Pow(rp.BackoffMultiplier, float64(cs.numRetriesSincePushback)) + cur := float64(rp.InitialBackoff) * fact + if max := float64(rp.MaxBackoff); cur > max { + cur = max + } + dur = time.Duration(grpcrand.Int63n(int64(cur))) + cs.numRetriesSincePushback++ + } + + // TODO(dfawley): we could eagerly fail here if dur puts us past the + // deadline, but unsure if it is worth doing. + t := time.NewTimer(dur) + select { + case <-t.C: + cs.numRetries++ + return false, nil + case <-cs.ctx.Done(): + t.Stop() + return false, status.FromContextError(cs.ctx.Err()).Err() + } +} + +// Returns nil if a retry was performed and succeeded; error otherwise. +func (cs *clientStream) retryLocked(attempt *csAttempt, lastErr error) error { + for { + attempt.finish(toRPCErr(lastErr)) + isTransparent, err := attempt.shouldRetry(lastErr) + if err != nil { + cs.commitAttemptLocked() + return err + } + cs.firstAttempt = false + attempt, err = cs.newAttemptLocked(isTransparent) + if err != nil { + // Only returns error if the clientconn is closed or the context of + // the stream is canceled. + return err + } + // Note that the first op in the replay buffer always sets cs.attempt + // if it is able to pick a transport and create a stream. + if lastErr = cs.replayBufferLocked(attempt); lastErr == nil { + return nil + } + } +} + +func (cs *clientStream) Context() context.Context { + cs.commitAttempt() + // No need to lock before using attempt, since we know it is committed and + // cannot change. + if cs.attempt.s != nil { + return cs.attempt.s.Context() + } + return cs.ctx +} + +func (cs *clientStream) withRetry(op func(a *csAttempt) error, onSuccess func()) error { + cs.mu.Lock() + for { + if cs.committed { + cs.mu.Unlock() + // toRPCErr is used in case the error from the attempt comes from + // NewClientStream, which intentionally doesn't return a status + // error to allow for further inspection; all other errors should + // already be status errors. + return toRPCErr(op(cs.attempt)) + } + if len(cs.buffer) == 0 { + // For the first op, which controls creation of the stream and + // assigns cs.attempt, we need to create a new attempt inline + // before executing the first op. On subsequent ops, the attempt + // is created immediately before replaying the ops. + var err error + if cs.attempt, err = cs.newAttemptLocked(false /* isTransparent */); err != nil { + cs.mu.Unlock() + cs.finish(err) + return err + } + } + a := cs.attempt + cs.mu.Unlock() + err := op(a) + cs.mu.Lock() + if a != cs.attempt { + // We started another attempt already. + continue + } + if err == io.EOF { + <-a.s.Done() + } + if err == nil || (err == io.EOF && a.s.Status().Code() == codes.OK) { + onSuccess() + cs.mu.Unlock() + return err + } + if err := cs.retryLocked(a, err); err != nil { + cs.mu.Unlock() + return err + } + } +} + +func (cs *clientStream) Header() (metadata.MD, error) { + var m metadata.MD + noHeader := false + err := cs.withRetry(func(a *csAttempt) error { + var err error + m, err = a.s.Header() + if err == transport.ErrNoHeaders { + noHeader = true + return nil + } + return toRPCErr(err) + }, cs.commitAttemptLocked) + + if err != nil { + cs.finish(err) + return nil, err + } + + if len(cs.binlogs) != 0 && !cs.serverHeaderBinlogged && !noHeader { + // Only log if binary log is on and header has not been logged, and + // there is actually headers to log. + logEntry := &binarylog.ServerHeader{ + OnClientSide: true, + Header: m, + PeerAddr: nil, + } + if peer, ok := peer.FromContext(cs.Context()); ok { + logEntry.PeerAddr = peer.Addr + } + cs.serverHeaderBinlogged = true + for _, binlog := range cs.binlogs { + binlog.Log(logEntry) + } + } + return m, nil +} + +func (cs *clientStream) Trailer() metadata.MD { + // On RPC failure, we never need to retry, because usage requires that + // RecvMsg() returned a non-nil error before calling this function is valid. + // We would have retried earlier if necessary. + // + // Commit the attempt anyway, just in case users are not following those + // directions -- it will prevent races and should not meaningfully impact + // performance. + cs.commitAttempt() + if cs.attempt.s == nil { + return nil + } + return cs.attempt.s.Trailer() +} + +func (cs *clientStream) replayBufferLocked(attempt *csAttempt) error { + for _, f := range cs.buffer { + if err := f(attempt); err != nil { + return err + } + } + return nil +} + +func (cs *clientStream) bufferForRetryLocked(sz int, op func(a *csAttempt) error) { + // Note: we still will buffer if retry is disabled (for transparent retries). + if cs.committed { + return + } + cs.bufferSize += sz + if cs.bufferSize > cs.callInfo.maxRetryRPCBufferSize { + cs.commitAttemptLocked() + return + } + cs.buffer = append(cs.buffer, op) +} + +func (cs *clientStream) SendMsg(m interface{}) (err error) { + defer func() { + if err != nil && err != io.EOF { + // Call finish on the client stream for errors generated by this SendMsg + // call, as these indicate problems created by this client. (Transport + // errors are converted to an io.EOF error in csAttempt.sendMsg; the real + // error will be returned from RecvMsg eventually in that case, or be + // retried.) + cs.finish(err) + } + }() + if cs.sentLast { + return status.Errorf(codes.Internal, "SendMsg called after CloseSend") + } + if !cs.desc.ClientStreams { + cs.sentLast = true + } + + // load hdr, payload, data + hdr, payload, data, err := prepareMsg(m, cs.codec, cs.cp, cs.comp) + if err != nil { + return err + } + + // TODO(dfawley): should we be checking len(data) instead? + if len(payload) > *cs.callInfo.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(payload), *cs.callInfo.maxSendMessageSize) + } + op := func(a *csAttempt) error { + return a.sendMsg(m, hdr, payload, data) + } + err = cs.withRetry(op, func() { cs.bufferForRetryLocked(len(hdr)+len(payload), op) }) + if len(cs.binlogs) != 0 && err == nil { + cm := &binarylog.ClientMessage{ + OnClientSide: true, + Message: data, + } + for _, binlog := range cs.binlogs { + binlog.Log(cm) + } + } + return err +} + +func (cs *clientStream) RecvMsg(m interface{}) error { + if len(cs.binlogs) != 0 && !cs.serverHeaderBinlogged { + // Call Header() to binary log header if it's not already logged. + cs.Header() + } + var recvInfo *payloadInfo + if len(cs.binlogs) != 0 { + recvInfo = &payloadInfo{} + } + err := cs.withRetry(func(a *csAttempt) error { + return a.recvMsg(m, recvInfo) + }, cs.commitAttemptLocked) + if len(cs.binlogs) != 0 && err == nil { + sm := &binarylog.ServerMessage{ + OnClientSide: true, + Message: recvInfo.uncompressedBytes, + } + for _, binlog := range cs.binlogs { + binlog.Log(sm) + } + } + if err != nil || !cs.desc.ServerStreams { + // err != nil or non-server-streaming indicates end of stream. + cs.finish(err) + + if len(cs.binlogs) != 0 { + // finish will not log Trailer. Log Trailer here. + logEntry := &binarylog.ServerTrailer{ + OnClientSide: true, + Trailer: cs.Trailer(), + Err: err, + } + if logEntry.Err == io.EOF { + logEntry.Err = nil + } + if peer, ok := peer.FromContext(cs.Context()); ok { + logEntry.PeerAddr = peer.Addr + } + for _, binlog := range cs.binlogs { + binlog.Log(logEntry) + } + } + } + return err +} + +func (cs *clientStream) CloseSend() error { + if cs.sentLast { + // TODO: return an error and finish the stream instead, due to API misuse? + return nil + } + cs.sentLast = true + op := func(a *csAttempt) error { + a.t.Write(a.s, nil, nil, &transport.Options{Last: true}) + // Always return nil; io.EOF is the only error that might make sense + // instead, but there is no need to signal the client to call RecvMsg + // as the only use left for the stream after CloseSend is to call + // RecvMsg. This also matches historical behavior. + return nil + } + cs.withRetry(op, func() { cs.bufferForRetryLocked(0, op) }) + if len(cs.binlogs) != 0 { + chc := &binarylog.ClientHalfClose{ + OnClientSide: true, + } + for _, binlog := range cs.binlogs { + binlog.Log(chc) + } + } + // We never returned an error here for reasons. + return nil +} + +func (cs *clientStream) finish(err error) { + if err == io.EOF { + // Ending a stream with EOF indicates a success. + err = nil + } + cs.mu.Lock() + if cs.finished { + cs.mu.Unlock() + return + } + cs.finished = true + cs.commitAttemptLocked() + if cs.attempt != nil { + cs.attempt.finish(err) + // after functions all rely upon having a stream. + if cs.attempt.s != nil { + for _, o := range cs.opts { + o.after(cs.callInfo, cs.attempt) + } + } + } + cs.mu.Unlock() + // For binary logging. only log cancel in finish (could be caused by RPC ctx + // canceled or ClientConn closed). Trailer will be logged in RecvMsg. + // + // Only one of cancel or trailer needs to be logged. In the cases where + // users don't call RecvMsg, users must have already canceled the RPC. + if len(cs.binlogs) != 0 && status.Code(err) == codes.Canceled { + c := &binarylog.Cancel{ + OnClientSide: true, + } + for _, binlog := range cs.binlogs { + binlog.Log(c) + } + } + if err == nil { + cs.retryThrottler.successfulRPC() + } + if channelz.IsOn() { + if err != nil { + cs.cc.incrCallsFailed() + } else { + cs.cc.incrCallsSucceeded() + } + } + cs.cancel() +} + +func (a *csAttempt) sendMsg(m interface{}, hdr, payld, data []byte) error { + cs := a.cs + if a.trInfo != nil { + a.mu.Lock() + if a.trInfo.tr != nil { + a.trInfo.tr.LazyLog(&payload{sent: true, msg: m}, true) + } + a.mu.Unlock() + } + if err := a.t.Write(a.s, hdr, payld, &transport.Options{Last: !cs.desc.ClientStreams}); err != nil { + if !cs.desc.ClientStreams { + // For non-client-streaming RPCs, we return nil instead of EOF on error + // because the generated code requires it. finish is not called; RecvMsg() + // will call it with the stream's status independently. + return nil + } + return io.EOF + } + for _, sh := range a.statsHandlers { + sh.HandleRPC(a.ctx, outPayload(true, m, data, payld, time.Now())) + } + if channelz.IsOn() { + a.t.IncrMsgSent() + } + return nil +} + +func (a *csAttempt) recvMsg(m interface{}, payInfo *payloadInfo) (err error) { + cs := a.cs + if len(a.statsHandlers) != 0 && payInfo == nil { + payInfo = &payloadInfo{} + } + + if !a.decompSet { + // Block until we receive headers containing received message encoding. + if ct := a.s.RecvCompress(); ct != "" && ct != encoding.Identity { + if a.dc == nil || a.dc.Type() != ct { + // No configured decompressor, or it does not match the incoming + // message encoding; attempt to find a registered compressor that does. + a.dc = nil + a.decomp = encoding.GetCompressor(ct) + } + } else { + // No compression is used; disable our decompressor. + a.dc = nil + } + // Only initialize this state once per stream. + a.decompSet = true + } + err = recv(a.p, cs.codec, a.s, a.dc, m, *cs.callInfo.maxReceiveMessageSize, payInfo, a.decomp) + if err != nil { + if err == io.EOF { + if statusErr := a.s.Status().Err(); statusErr != nil { + return statusErr + } + return io.EOF // indicates successful end of stream. + } + + return toRPCErr(err) + } + if a.trInfo != nil { + a.mu.Lock() + if a.trInfo.tr != nil { + a.trInfo.tr.LazyLog(&payload{sent: false, msg: m}, true) + } + a.mu.Unlock() + } + for _, sh := range a.statsHandlers { + sh.HandleRPC(a.ctx, &stats.InPayload{ + Client: true, + RecvTime: time.Now(), + Payload: m, + // TODO truncate large payload. + Data: payInfo.uncompressedBytes, + WireLength: payInfo.wireLength + headerLen, + Length: len(payInfo.uncompressedBytes), + }) + } + if channelz.IsOn() { + a.t.IncrMsgRecv() + } + if cs.desc.ServerStreams { + // Subsequent messages should be received by subsequent RecvMsg calls. + return nil + } + // Special handling for non-server-stream rpcs. + // This recv expects EOF or errors, so we don't collect inPayload. + err = recv(a.p, cs.codec, a.s, a.dc, m, *cs.callInfo.maxReceiveMessageSize, nil, a.decomp) + if err == nil { + return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) + } + if err == io.EOF { + return a.s.Status().Err() // non-server streaming Recv returns nil on success + } + return toRPCErr(err) +} + +func (a *csAttempt) finish(err error) { + a.mu.Lock() + if a.finished { + a.mu.Unlock() + return + } + a.finished = true + if err == io.EOF { + // Ending a stream with EOF indicates a success. + err = nil + } + var tr metadata.MD + if a.s != nil { + a.t.CloseStream(a.s, err) + tr = a.s.Trailer() + } + + if a.pickResult.Done != nil { + br := false + if a.s != nil { + br = a.s.BytesReceived() + } + a.pickResult.Done(balancer.DoneInfo{ + Err: err, + Trailer: tr, + BytesSent: a.s != nil, + BytesReceived: br, + ServerLoad: balancerload.Parse(tr), + }) + } + for _, sh := range a.statsHandlers { + end := &stats.End{ + Client: true, + BeginTime: a.beginTime, + EndTime: time.Now(), + Trailer: tr, + Error: err, + } + sh.HandleRPC(a.ctx, end) + } + if a.trInfo != nil && a.trInfo.tr != nil { + if err == nil { + a.trInfo.tr.LazyPrintf("RPC: [OK]") + } else { + a.trInfo.tr.LazyPrintf("RPC: [%v]", err) + a.trInfo.tr.SetError() + } + a.trInfo.tr.Finish() + a.trInfo.tr = nil + } + a.mu.Unlock() } -// NewClientStream creates a new Stream for the client side. This is typically -// called by generated code. +// newClientStream creates a ClientStream with the specified transport, on the +// given addrConn. // -// DEPRECATED: Use ClientConn.NewStream instead. -func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error) { - return cc.NewStream(ctx, desc, method, opts...) -} - -func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) { - c := defaultCallInfo() - mc := cc.GetMethodConfig(method) - if mc.WaitForReady != nil { - c.failFast = !*mc.WaitForReady +// It's expected that the given transport is either the same one in addrConn, or +// is already closed. To avoid race, transport is specified separately, instead +// of using ac.transpot. +// +// Main difference between this and ClientConn.NewStream: +// - no retry +// - no service config (or wait for service config) +// - no tracing or stats +func newNonRetryClientStream(ctx context.Context, desc *StreamDesc, method string, t transport.ClientTransport, ac *addrConn, opts ...CallOption) (_ ClientStream, err error) { + if t == nil { + // TODO: return RPC error here? + return nil, errors.New("transport provided is nil") } + // defaultCallInfo contains unnecessary info(i.e. failfast, maxRetryRPCBufferSize), so we just initialize an empty struct. + c := &callInfo{} // Possible context leak: // The cancel function for the child context we create will only be called // when RecvMsg returns a non-nil error, if the ClientConn is closed, or if // an error is generated by SendMsg. // https://github.com/grpc/grpc-go/issues/1818. - var cancel context.CancelFunc - if mc.Timeout != nil && *mc.Timeout >= 0 { - ctx, cancel = context.WithTimeout(ctx, *mc.Timeout) - } else { - ctx, cancel = context.WithCancel(ctx) - } + ctx, cancel := context.WithCancel(ctx) defer func() { if err != nil { cancel() @@ -149,20 +1194,15 @@ func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth return nil, toRPCErr(err) } } - c.maxSendMessageSize = getMaxSize(mc.MaxReqSize, c.maxSendMessageSize, defaultClientMaxSendMessageSize) - c.maxReceiveMessageSize = getMaxSize(mc.MaxRespSize, c.maxReceiveMessageSize, defaultClientMaxReceiveMessageSize) + c.maxReceiveMessageSize = getMaxSize(nil, c.maxReceiveMessageSize, defaultClientMaxReceiveMessageSize) + c.maxSendMessageSize = getMaxSize(nil, c.maxSendMessageSize, defaultServerMaxSendMessageSize) if err := setCallInfoCodec(c); err != nil { return nil, err } callHdr := &transport.CallHdr{ - Host: cc.authority, - Method: method, - // If it's not client streaming, we should already have the request to be sent, - // so we don't flush the header. - // If it's client streaming, the user may never send a request or send it any - // time soon, so we ask the transport to flush the header. - Flush: desc.ClientStreams, + Host: ac.cc.authority, + Method: method, ContentSubtype: c.contentSubtype, } @@ -180,117 +1220,37 @@ func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth return nil, status.Errorf(codes.Internal, "grpc: Compressor is not installed for requested grpc-encoding %q", ct) } } - } else if cc.dopts.cp != nil { - callHdr.SendCompress = cc.dopts.cp.Type() - cp = cc.dopts.cp + } else if ac.cc.dopts.cp != nil { + callHdr.SendCompress = ac.cc.dopts.cp.Type() + cp = ac.cc.dopts.cp } if c.creds != nil { callHdr.Creds = c.creds } - var trInfo traceInfo - if EnableTracing { - trInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method) - trInfo.firstLine.client = true - if deadline, ok := ctx.Deadline(); ok { - trInfo.firstLine.deadline = deadline.Sub(time.Now()) - } - trInfo.tr.LazyLog(&trInfo.firstLine, false) - ctx = trace.NewContext(ctx, trInfo.tr) - defer func() { - if err != nil { - // Need to call tr.finish() if error is returned. - // Because tr will not be returned to caller. - trInfo.tr.LazyPrintf("RPC: [%v]", err) - trInfo.tr.SetError() - trInfo.tr.Finish() - } - }() - } - ctx = newContextWithRPCInfo(ctx, c.failFast) - sh := cc.dopts.copts.StatsHandler - var beginTime time.Time - if sh != nil { - ctx = sh.TagRPC(ctx, &stats.RPCTagInfo{FullMethodName: method, FailFast: c.failFast}) - beginTime = time.Now() - begin := &stats.Begin{ - Client: true, - BeginTime: beginTime, - FailFast: c.failFast, - } - sh.HandleRPC(ctx, begin) - defer func() { - if err != nil { - // Only handle end stats if err != nil. - end := &stats.End{ - Client: true, - Error: err, - BeginTime: beginTime, - EndTime: time.Now(), - } - sh.HandleRPC(ctx, end) - } - }() - } - - var ( - t transport.ClientTransport - s *transport.Stream - done func(balancer.DoneInfo) - ) - for { - // Check to make sure the context has expired. This will prevent us from - // looping forever if an error occurs for wait-for-ready RPCs where no data - // is sent on the wire. - select { - case <-ctx.Done(): - return nil, toRPCErr(ctx.Err()) - default: - } - - t, done, err = cc.getTransport(ctx, c.failFast) - if err != nil { - return nil, err - } - s, err = t.NewStream(ctx, callHdr) - if err != nil { - if done != nil { - done(balancer.DoneInfo{Err: err}) - done = nil - } - // In the event of any error from NewStream, we never attempted to write - // anything to the wire, so we can retry indefinitely for non-fail-fast - // RPCs. - if !c.failFast { - continue - } - return nil, toRPCErr(err) - } - break + // Use a special addrConnStream to avoid retry. + as := &addrConnStream{ + callHdr: callHdr, + ac: ac, + ctx: ctx, + cancel: cancel, + opts: opts, + callInfo: c, + desc: desc, + codec: c.codec, + cp: cp, + comp: comp, + t: t, } - cs := &clientStream{ - opts: opts, - c: c, - desc: desc, - codec: c.codec, - cp: cp, - comp: comp, - cancel: cancel, - attempt: &csAttempt{ - t: t, - s: s, - p: &parser{r: s}, - done: done, - dc: cc.dopts.dc, - ctx: ctx, - trInfo: trInfo, - statsHandler: sh, - beginTime: beginTime, - }, - } - cs.c.stream = cs - cs.attempt.cs = cs + s, err := as.t.NewStream(as.ctx, as.callHdr) + if err != nil { + err = toRPCErr(err) + return nil, err + } + as.s = s + as.p = &parser{r: s} + ac.incrCallsStarted() if desc != unaryStreamDesc { // Listen on cc and stream contexts to cleanup when the user closes the // ClientConn or cancels the stream context. In all other cases, an error @@ -299,295 +1259,199 @@ func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth // context in clientStream.finish. go func() { select { - case <-cc.ctx.Done(): - cs.finish(ErrClientConnClosing) + case <-ac.ctx.Done(): + as.finish(status.Error(codes.Canceled, "grpc: the SubConn is closing")) case <-ctx.Done(): - cs.finish(toRPCErr(ctx.Err())) + as.finish(toRPCErr(ctx.Err())) } }() } - return cs, nil -} - -// clientStream implements a client side Stream. -type clientStream struct { - opts []CallOption - c *callInfo - desc *StreamDesc - - codec baseCodec - cp Compressor - comp encoding.Compressor - - cancel context.CancelFunc // cancels all attempts - - sentLast bool // sent an end stream - - mu sync.Mutex // guards finished - finished bool // TODO: replace with atomic cmpxchg or sync.Once? - - attempt *csAttempt // the active client stream attempt - // TODO(hedging): hedging will have multiple attempts simultaneously. + return as, nil } -// csAttempt implements a single transport stream attempt within a -// clientStream. -type csAttempt struct { - cs *clientStream - t transport.ClientTransport - s *transport.Stream - p *parser - done func(balancer.DoneInfo) - +type addrConnStream struct { + s *transport.Stream + ac *addrConn + callHdr *transport.CallHdr + cancel context.CancelFunc + opts []CallOption + callInfo *callInfo + t transport.ClientTransport + ctx context.Context + sentLast bool + desc *StreamDesc + codec baseCodec + cp Compressor + comp encoding.Compressor + decompSet bool dc Decompressor decomp encoding.Compressor - decompSet bool - - ctx context.Context // the application's context, wrapped by stats/tracing - - mu sync.Mutex // guards trInfo.tr - // trInfo.tr is set when created (if EnableTracing is true), - // and cleared when the finish method is called. - trInfo traceInfo - - statsHandler stats.Handler - beginTime time.Time -} - -func (cs *clientStream) Context() context.Context { - // TODO(retry): commit the current attempt (the context has peer-aware data). - return cs.attempt.context() + p *parser + mu sync.Mutex + finished bool } -func (cs *clientStream) Header() (metadata.MD, error) { - m, err := cs.attempt.header() +func (as *addrConnStream) Header() (metadata.MD, error) { + m, err := as.s.Header() if err != nil { - // TODO(retry): maybe retry on error or commit attempt on success. - err = toRPCErr(err) - cs.finish(err) + as.finish(toRPCErr(err)) } return m, err } -func (cs *clientStream) Trailer() metadata.MD { - // TODO(retry): on error, maybe retry (trailers-only). - return cs.attempt.trailer() -} - -func (cs *clientStream) SendMsg(m interface{}) (err error) { - // TODO(retry): buffer message for replaying if not committed. - return cs.attempt.sendMsg(m) -} - -func (cs *clientStream) RecvMsg(m interface{}) (err error) { - // TODO(retry): maybe retry on error or commit attempt on success. - return cs.attempt.recvMsg(m) -} - -func (cs *clientStream) CloseSend() error { - cs.attempt.closeSend() - return nil +func (as *addrConnStream) Trailer() metadata.MD { + return as.s.Trailer() } -func (cs *clientStream) finish(err error) { - if err == io.EOF { - // Ending a stream with EOF indicates a success. - err = nil - } - cs.mu.Lock() - if cs.finished { - cs.mu.Unlock() - return - } - cs.finished = true - cs.mu.Unlock() - // TODO(retry): commit current attempt if necessary. - cs.attempt.finish(err) - for _, o := range cs.opts { - o.after(cs.c) +func (as *addrConnStream) CloseSend() error { + if as.sentLast { + // TODO: return an error and finish the stream instead, due to API misuse? + return nil } - cs.cancel() -} + as.sentLast = true -func (a *csAttempt) context() context.Context { - return a.s.Context() -} - -func (a *csAttempt) header() (metadata.MD, error) { - return a.s.Header() + as.t.Write(as.s, nil, nil, &transport.Options{Last: true}) + // Always return nil; io.EOF is the only error that might make sense + // instead, but there is no need to signal the client to call RecvMsg + // as the only use left for the stream after CloseSend is to call + // RecvMsg. This also matches historical behavior. + return nil } -func (a *csAttempt) trailer() metadata.MD { - return a.s.Trailer() +func (as *addrConnStream) Context() context.Context { + return as.s.Context() } -func (a *csAttempt) sendMsg(m interface{}) (err error) { - // TODO Investigate how to signal the stats handling party. - // generate error stats if err != nil && err != io.EOF? - cs := a.cs +func (as *addrConnStream) SendMsg(m interface{}) (err error) { defer func() { - // For non-client-streaming RPCs, we return nil instead of EOF on success - // because the generated code requires it. finish is not called; RecvMsg() - // will call it with the stream's status independently. - if err == io.EOF && !cs.desc.ClientStreams { - err = nil - } if err != nil && err != io.EOF { // Call finish on the client stream for errors generated by this SendMsg // call, as these indicate problems created by this client. (Transport - // errors are converted to an io.EOF error below; the real error will be - // returned from RecvMsg eventually in that case, or be retried.) - cs.finish(err) + // errors are converted to an io.EOF error in csAttempt.sendMsg; the real + // error will be returned from RecvMsg eventually in that case, or be + // retried.) + as.finish(err) } }() - // TODO: Check cs.sentLast and error if we already ended the stream. - if EnableTracing { - a.mu.Lock() - if a.trInfo.tr != nil { - a.trInfo.tr.LazyLog(&payload{sent: true, msg: m}, true) - } - a.mu.Unlock() + if as.sentLast { + return status.Errorf(codes.Internal, "SendMsg called after CloseSend") } - var outPayload *stats.OutPayload - if a.statsHandler != nil { - outPayload = &stats.OutPayload{ - Client: true, - } + if !as.desc.ClientStreams { + as.sentLast = true } - hdr, data, err := encode(cs.codec, m, cs.cp, outPayload, cs.comp) + + // load hdr, payload, data + hdr, payld, _, err := prepareMsg(m, as.codec, as.cp, as.comp) if err != nil { return err } - if len(data) > *cs.c.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(data), *cs.c.maxSendMessageSize) - } - if !cs.desc.ClientStreams { - cs.sentLast = true + + // TODO(dfawley): should we be checking len(data) instead? + if len(payld) > *as.callInfo.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(payld), *as.callInfo.maxSendMessageSize) } - err = a.t.Write(a.s, hdr, data, &transport.Options{Last: !cs.desc.ClientStreams}) - if err == nil { - if outPayload != nil { - outPayload.SentTime = time.Now() - a.statsHandler.HandleRPC(a.ctx, outPayload) + + if err := as.t.Write(as.s, hdr, payld, &transport.Options{Last: !as.desc.ClientStreams}); err != nil { + if !as.desc.ClientStreams { + // For non-client-streaming RPCs, we return nil instead of EOF on error + // because the generated code requires it. finish is not called; RecvMsg() + // will call it with the stream's status independently. + return nil } - return nil + return io.EOF + } + + if channelz.IsOn() { + as.t.IncrMsgSent() } - return io.EOF + return nil } -func (a *csAttempt) recvMsg(m interface{}) (err error) { - cs := a.cs +func (as *addrConnStream) RecvMsg(m interface{}) (err error) { defer func() { - if err != nil || !cs.desc.ServerStreams { + if err != nil || !as.desc.ServerStreams { // err != nil or non-server-streaming indicates end of stream. - cs.finish(err) + as.finish(err) } }() - var inPayload *stats.InPayload - if a.statsHandler != nil { - inPayload = &stats.InPayload{ - Client: true, - } - } - if !a.decompSet { + + if !as.decompSet { // Block until we receive headers containing received message encoding. - if ct := a.s.RecvCompress(); ct != "" && ct != encoding.Identity { - if a.dc == nil || a.dc.Type() != ct { + if ct := as.s.RecvCompress(); ct != "" && ct != encoding.Identity { + if as.dc == nil || as.dc.Type() != ct { // No configured decompressor, or it does not match the incoming // message encoding; attempt to find a registered compressor that does. - a.dc = nil - a.decomp = encoding.GetCompressor(ct) + as.dc = nil + as.decomp = encoding.GetCompressor(ct) } } else { // No compression is used; disable our decompressor. - a.dc = nil + as.dc = nil } // Only initialize this state once per stream. - a.decompSet = true + as.decompSet = true } - err = recv(a.p, cs.codec, a.s, a.dc, m, *cs.c.maxReceiveMessageSize, inPayload, a.decomp) + err = recv(as.p, as.codec, as.s, as.dc, m, *as.callInfo.maxReceiveMessageSize, nil, as.decomp) if err != nil { if err == io.EOF { - if statusErr := a.s.Status().Err(); statusErr != nil { + if statusErr := as.s.Status().Err(); statusErr != nil { return statusErr } return io.EOF // indicates successful end of stream. } return toRPCErr(err) } - if EnableTracing { - a.mu.Lock() - if a.trInfo.tr != nil { - a.trInfo.tr.LazyLog(&payload{sent: false, msg: m}, true) - } - a.mu.Unlock() - } - if inPayload != nil { - a.statsHandler.HandleRPC(a.ctx, inPayload) + + if channelz.IsOn() { + as.t.IncrMsgRecv() } - if cs.desc.ServerStreams { + if as.desc.ServerStreams { // Subsequent messages should be received by subsequent RecvMsg calls. return nil } // Special handling for non-server-stream rpcs. // This recv expects EOF or errors, so we don't collect inPayload. - err = recv(a.p, cs.codec, a.s, a.dc, m, *cs.c.maxReceiveMessageSize, nil, a.decomp) + err = recv(as.p, as.codec, as.s, as.dc, m, *as.callInfo.maxReceiveMessageSize, nil, as.decomp) if err == nil { return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) } if err == io.EOF { - return a.s.Status().Err() // non-server streaming Recv returns nil on success + return as.s.Status().Err() // non-server streaming Recv returns nil on success } return toRPCErr(err) } -func (a *csAttempt) closeSend() { - cs := a.cs - if cs.sentLast { +func (as *addrConnStream) finish(err error) { + as.mu.Lock() + if as.finished { + as.mu.Unlock() return } - cs.sentLast = true - cs.attempt.t.Write(cs.attempt.s, nil, nil, &transport.Options{Last: true}) - // We ignore errors from Write. Any error it would return would also be - // returned by a subsequent RecvMsg call, and the user is supposed to always - // finish the stream by calling RecvMsg until it returns err != nil. -} - -func (a *csAttempt) finish(err error) { - a.mu.Lock() - a.t.CloseStream(a.s, err) - - if a.done != nil { - a.done(balancer.DoneInfo{ - Err: err, - BytesSent: true, - BytesReceived: a.s.BytesReceived(), - }) + as.finished = true + if err == io.EOF { + // Ending a stream with EOF indicates a success. + err = nil } - if a.statsHandler != nil { - end := &stats.End{ - Client: true, - BeginTime: a.beginTime, - EndTime: time.Now(), - Error: err, - } - a.statsHandler.HandleRPC(a.ctx, end) + if as.s != nil { + as.t.CloseStream(as.s, err) } - if a.trInfo.tr != nil { - if err == nil { - a.trInfo.tr.LazyPrintf("RPC: [OK]") - } else { - a.trInfo.tr.LazyPrintf("RPC: [%v]", err) - a.trInfo.tr.SetError() - } - a.trInfo.tr.Finish() - a.trInfo.tr = nil + + if err != nil { + as.ac.incrCallsFailed() + } else { + as.ac.incrCallsSucceeded() } - a.mu.Unlock() + as.cancel() + as.mu.Unlock() } -// ServerStream defines the interface a server stream has to satisfy. +// ServerStream defines the server-side behavior of a streaming RPC. +// +// Errors returned from ServerStream methods are compatible with the status +// package. However, the status code will often not match the RPC status as +// seen by the client application, and therefore, should not be relied upon for +// this purpose. type ServerStream interface { // SetHeader sets the header metadata. It may be called multiple times. // When call multiple times, all the provided metadata will be merged. @@ -603,7 +1467,35 @@ type ServerStream interface { // SetTrailer sets the trailer metadata which will be sent with the RPC status. // When called more than once, all the provided metadata will be merged. SetTrailer(metadata.MD) - Stream + // Context returns the context for this stream. + Context() context.Context + // SendMsg sends a message. On error, SendMsg aborts the stream and the + // error is returned directly. + // + // SendMsg blocks until: + // - There is sufficient flow control to schedule m with the transport, or + // - The stream is done, or + // - The stream breaks. + // + // SendMsg does not wait until the message is received by the client. An + // untimely stream closure may result in lost messages. + // + // It is safe to have a goroutine calling SendMsg and another goroutine + // calling RecvMsg on the same stream at the same time, but it is not safe + // to call SendMsg on the same stream in different goroutines. + // + // It is not safe to modify the message after calling SendMsg. Tracing + // libraries and stats handlers may use the message lazily. + SendMsg(m interface{}) error + // RecvMsg blocks until it receives a message into m or the stream is + // done. It returns io.EOF when the client has performed a CloseSend. On + // any non-EOF error, the stream is aborted and the error contains the + // RPC status. + // + // It is safe to have a goroutine calling SendMsg and another goroutine + // calling RecvMsg on the same stream at the same time, but it is not + // safe to call RecvMsg on the same stream in different goroutines. + RecvMsg(m interface{}) error } // serverStream implements a server side Stream. @@ -623,7 +1515,16 @@ type serverStream struct { maxSendMessageSize int trInfo *traceInfo - statsHandler stats.Handler + statsHandler []stats.Handler + + binlogs []binarylog.MethodLogger + // serverHeaderBinlogged indicates whether server header has been logged. It + // will happen when one of the following two happens: stream.SendHeader(), + // stream.Send(). + // + // It's only checked in send and sendHeader, doesn't need to be + // synchronized. + serverHeaderBinlogged bool mu sync.Mutex // protects trInfo.tr after the service handler runs. } @@ -636,19 +1537,41 @@ func (ss *serverStream) SetHeader(md metadata.MD) error { if md.Len() == 0 { return nil } + err := imetadata.Validate(md) + if err != nil { + return status.Error(codes.Internal, err.Error()) + } return ss.s.SetHeader(md) } func (ss *serverStream) SendHeader(md metadata.MD) error { - return ss.t.WriteHeader(ss.s, md) + err := imetadata.Validate(md) + if err != nil { + return status.Error(codes.Internal, err.Error()) + } + + err = ss.t.WriteHeader(ss.s, md) + if len(ss.binlogs) != 0 && !ss.serverHeaderBinlogged { + h, _ := ss.s.Header() + sh := &binarylog.ServerHeader{ + Header: h, + } + ss.serverHeaderBinlogged = true + for _, binlog := range ss.binlogs { + binlog.Log(sh) + } + } + return err } func (ss *serverStream) SetTrailer(md metadata.MD) { if md.Len() == 0 { return } + if err := imetadata.Validate(md); err != nil { + logger.Errorf("stream: failed to validate md when setting trailer, err: %v", err) + } ss.s.SetTrailer(md) - return } func (ss *serverStream) SendMsg(m interface{}) (err error) { @@ -668,25 +1591,53 @@ func (ss *serverStream) SendMsg(m interface{}) (err error) { if err != nil && err != io.EOF { st, _ := status.FromError(toRPCErr(err)) ss.t.WriteStatus(ss.s, st) + // Non-user specified status was sent out. This should be an error + // case (as a server side Cancel maybe). + // + // This is not handled specifically now. User will return a final + // status from the service handler, we will log that error instead. + // This behavior is similar to an interceptor. + } + if channelz.IsOn() && err == nil { + ss.t.IncrMsgSent() } }() - var outPayload *stats.OutPayload - if ss.statsHandler != nil { - outPayload = &stats.OutPayload{} - } - hdr, data, err := encode(ss.codec, m, ss.cp, outPayload, ss.comp) + + // load hdr, payload, data + hdr, payload, data, err := prepareMsg(m, ss.codec, ss.cp, ss.comp) if err != nil { return err } - if len(data) > ss.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(data), ss.maxSendMessageSize) + + // TODO(dfawley): should we be checking len(data) instead? + if len(payload) > ss.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(payload), ss.maxSendMessageSize) } - if err := ss.t.Write(ss.s, hdr, data, &transport.Options{Last: false}); err != nil { + if err := ss.t.Write(ss.s, hdr, payload, &transport.Options{Last: false}); err != nil { return toRPCErr(err) } - if outPayload != nil { - outPayload.SentTime = time.Now() - ss.statsHandler.HandleRPC(ss.s.Context(), outPayload) + if len(ss.binlogs) != 0 { + if !ss.serverHeaderBinlogged { + h, _ := ss.s.Header() + sh := &binarylog.ServerHeader{ + Header: h, + } + ss.serverHeaderBinlogged = true + for _, binlog := range ss.binlogs { + binlog.Log(sh) + } + } + sm := &binarylog.ServerMessage{ + Message: data, + } + for _, binlog := range ss.binlogs { + binlog.Log(sm) + } + } + if len(ss.statsHandler) != 0 { + for _, sh := range ss.statsHandler { + sh.HandleRPC(ss.s.Context(), outPayload(false, m, data, payload, time.Now())) + } } return nil } @@ -708,14 +1659,29 @@ func (ss *serverStream) RecvMsg(m interface{}) (err error) { if err != nil && err != io.EOF { st, _ := status.FromError(toRPCErr(err)) ss.t.WriteStatus(ss.s, st) + // Non-user specified status was sent out. This should be an error + // case (as a server side Cancel maybe). + // + // This is not handled specifically now. User will return a final + // status from the service handler, we will log that error instead. + // This behavior is similar to an interceptor. + } + if channelz.IsOn() && err == nil { + ss.t.IncrMsgRecv() } }() - var inPayload *stats.InPayload - if ss.statsHandler != nil { - inPayload = &stats.InPayload{} + var payInfo *payloadInfo + if len(ss.statsHandler) != 0 || len(ss.binlogs) != 0 { + payInfo = &payloadInfo{} } - if err := recv(ss.p, ss.codec, ss.s, ss.dc, m, ss.maxReceiveMessageSize, inPayload, ss.decomp); err != nil { + if err := recv(ss.p, ss.codec, ss.s, ss.dc, m, ss.maxReceiveMessageSize, payInfo, ss.decomp); err != nil { if err == io.EOF { + if len(ss.binlogs) != 0 { + chc := &binarylog.ClientHalfClose{} + for _, binlog := range ss.binlogs { + binlog.Log(chc) + } + } return err } if err == io.ErrUnexpectedEOF { @@ -723,8 +1689,25 @@ func (ss *serverStream) RecvMsg(m interface{}) (err error) { } return toRPCErr(err) } - if inPayload != nil { - ss.statsHandler.HandleRPC(ss.s.Context(), inPayload) + if len(ss.statsHandler) != 0 { + for _, sh := range ss.statsHandler { + sh.HandleRPC(ss.s.Context(), &stats.InPayload{ + RecvTime: time.Now(), + Payload: m, + // TODO truncate large payload. + Data: payInfo.uncompressedBytes, + WireLength: payInfo.wireLength + headerLen, + Length: len(payInfo.uncompressedBytes), + }) + } + } + if len(ss.binlogs) != 0 { + cm := &binarylog.ClientMessage{ + Message: payInfo.uncompressedBytes, + } + for _, binlog := range ss.binlogs { + binlog.Log(cm) + } } return nil } @@ -734,3 +1717,24 @@ func (ss *serverStream) RecvMsg(m interface{}) (err error) { func MethodFromServerStream(stream ServerStream) (string, bool) { return Method(stream.Context()) } + +// prepareMsg returns the hdr, payload and data +// using the compressors passed or using the +// passed preparedmsg +func prepareMsg(m interface{}, codec baseCodec, cp Compressor, comp encoding.Compressor) (hdr, payload, data []byte, err error) { + if preparedMsg, ok := m.(*PreparedMsg); ok { + return preparedMsg.hdr, preparedMsg.payload, preparedMsg.encodedData, nil + } + // The input interface is not a prepared msg. + // Marshal and Compress the data at this point + data, err = encode(codec, m) + if err != nil { + return nil, nil, nil, err + } + compData, err := compress(data, cp, comp) + if err != nil { + return nil, nil, nil, err + } + hdr, payload = msgHeader(data, compData) + return hdr, payload, data, nil +} diff --git a/vendor/google.golang.org/grpc/tap/tap.go b/vendor/google.golang.org/grpc/tap/tap.go index 22b8fb5..bfa5dfa 100644 --- a/vendor/google.golang.org/grpc/tap/tap.go +++ b/vendor/google.golang.org/grpc/tap/tap.go @@ -17,11 +17,16 @@ */ // Package tap defines the function handles which are executed on the transport -// layer of gRPC-Go and related information. Everything here is EXPERIMENTAL. +// layer of gRPC-Go and related information. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. package tap import ( - "golang.org/x/net/context" + "context" ) // Info defines the relevant information needed by the handles. @@ -32,16 +37,16 @@ type Info struct { // TODO: More to be added. } -// ServerInHandle defines the function which runs before a new stream is created -// on the server side. If it returns a non-nil error, the stream will not be -// created and a RST_STREAM will be sent back to the client with REFUSED_STREAM. -// The client will receive an RPC error "code = Unavailable, desc = stream -// terminated by RST_STREAM with error code: REFUSED_STREAM". +// ServerInHandle defines the function which runs before a new stream is +// created on the server side. If it returns a non-nil error, the stream will +// not be created and an error will be returned to the client. If the error +// returned is a status error, that status code and message will be used, +// otherwise PermissionDenied will be the code and err.Error() will be the +// message. // // It's intended to be used in situations where you don't want to waste the -// resources to accept the new stream (e.g. rate-limiting). And the content of -// the error will be ignored and won't be sent back to the client. For other -// general usages, please use interceptors. +// resources to accept the new stream (e.g. rate-limiting). For other general +// usages, please use interceptors. // // Note that it is executed in the per-connection I/O goroutine(s) instead of // per-RPC goroutine. Therefore, users should NOT have any diff --git a/vendor/google.golang.org/grpc/trace.go b/vendor/google.golang.org/grpc/trace.go index c1c96de..07a2d26 100644 --- a/vendor/google.golang.org/grpc/trace.go +++ b/vendor/google.golang.org/grpc/trace.go @@ -24,6 +24,7 @@ import ( "io" "net" "strings" + "sync" "time" "golang.org/x/net/trace" @@ -40,9 +41,6 @@ func methodFamily(m string) string { if i := strings.Index(m, "/"); i >= 0 { m = m[:i] // remove everything from second slash } - if i := strings.LastIndex(m, "."); i >= 0 { - m = m[i+1:] // cut down to last dotted component - } return m } @@ -53,13 +51,25 @@ type traceInfo struct { } // firstLine is the first line of an RPC trace. +// It may be mutated after construction; remoteAddr specifically may change +// during client-side use. type firstLine struct { + mu sync.Mutex client bool // whether this is a client (outgoing) RPC remoteAddr net.Addr deadline time.Duration // may be zero } +func (f *firstLine) SetRemoteAddr(addr net.Addr) { + f.mu.Lock() + f.remoteAddr = addr + f.mu.Unlock() +} + func (f *firstLine) String() string { + f.mu.Lock() + defer f.mu.Unlock() + var line bytes.Buffer io.WriteString(&line, "RPC: ") if f.client { diff --git a/vendor/google.golang.org/grpc/transport/control.go b/vendor/google.golang.org/grpc/transport/control.go deleted file mode 100644 index 0474b09..0000000 --- a/vendor/google.golang.org/grpc/transport/control.go +++ /dev/null @@ -1,334 +0,0 @@ -/* - * - * Copyright 2014 gRPC authors. - * - * 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 transport - -import ( - "fmt" - "io" - "math" - "sync" - "time" - - "golang.org/x/net/http2" - "golang.org/x/net/http2/hpack" -) - -const ( - // The default value of flow control window size in HTTP2 spec. - defaultWindowSize = 65535 - // The initial window size for flow control. - initialWindowSize = defaultWindowSize // for an RPC - infinity = time.Duration(math.MaxInt64) - defaultClientKeepaliveTime = infinity - defaultClientKeepaliveTimeout = time.Duration(20 * time.Second) - defaultMaxStreamsClient = 100 - defaultMaxConnectionIdle = infinity - defaultMaxConnectionAge = infinity - defaultMaxConnectionAgeGrace = infinity - defaultServerKeepaliveTime = time.Duration(2 * time.Hour) - defaultServerKeepaliveTimeout = time.Duration(20 * time.Second) - defaultKeepalivePolicyMinTime = time.Duration(5 * time.Minute) - // max window limit set by HTTP2 Specs. - maxWindowSize = math.MaxInt32 - // defaultLocalSendQuota sets is default value for number of data - // bytes that each stream can schedule before some of it being - // flushed out. - defaultLocalSendQuota = 128 * 1024 -) - -// The following defines various control items which could flow through -// the control buffer of transport. They represent different aspects of -// control tasks, e.g., flow control, settings, streaming resetting, etc. - -type headerFrame struct { - streamID uint32 - hf []hpack.HeaderField - endStream bool -} - -func (*headerFrame) item() {} - -type continuationFrame struct { - streamID uint32 - endHeaders bool - headerBlockFragment []byte -} - -type dataFrame struct { - streamID uint32 - endStream bool - d []byte - f func() -} - -func (*dataFrame) item() {} - -func (*continuationFrame) item() {} - -type windowUpdate struct { - streamID uint32 - increment uint32 -} - -func (*windowUpdate) item() {} - -type settings struct { - ss []http2.Setting -} - -func (*settings) item() {} - -type settingsAck struct { -} - -func (*settingsAck) item() {} - -type resetStream struct { - streamID uint32 - code http2.ErrCode -} - -func (*resetStream) item() {} - -type goAway struct { - code http2.ErrCode - debugData []byte - headsUp bool - closeConn bool -} - -func (*goAway) item() {} - -type flushIO struct { - closeTr bool -} - -func (*flushIO) item() {} - -type ping struct { - ack bool - data [8]byte -} - -func (*ping) item() {} - -// quotaPool is a pool which accumulates the quota and sends it to acquire() -// when it is available. -type quotaPool struct { - mu sync.Mutex - c chan struct{} - version uint32 - quota int -} - -// newQuotaPool creates a quotaPool which has quota q available to consume. -func newQuotaPool(q int) *quotaPool { - qb := "aPool{ - quota: q, - c: make(chan struct{}, 1), - } - return qb -} - -// add cancels the pending quota sent on acquired, incremented by v and sends -// it back on acquire. -func (qb *quotaPool) add(v int) { - qb.mu.Lock() - defer qb.mu.Unlock() - qb.lockedAdd(v) -} - -func (qb *quotaPool) lockedAdd(v int) { - var wakeUp bool - if qb.quota <= 0 { - wakeUp = true // Wake up potential waiters. - } - qb.quota += v - if wakeUp && qb.quota > 0 { - select { - case qb.c <- struct{}{}: - default: - } - } -} - -func (qb *quotaPool) addAndUpdate(v int) { - qb.mu.Lock() - qb.lockedAdd(v) - qb.version++ - qb.mu.Unlock() -} - -func (qb *quotaPool) get(v int, wc waiters) (int, uint32, error) { - qb.mu.Lock() - if qb.quota > 0 { - if v > qb.quota { - v = qb.quota - } - qb.quota -= v - ver := qb.version - qb.mu.Unlock() - return v, ver, nil - } - qb.mu.Unlock() - for { - select { - case <-wc.ctx.Done(): - return 0, 0, ContextErr(wc.ctx.Err()) - case <-wc.tctx.Done(): - return 0, 0, ErrConnClosing - case <-wc.done: - return 0, 0, io.EOF - case <-wc.goAway: - return 0, 0, errStreamDrain - case <-qb.c: - qb.mu.Lock() - if qb.quota > 0 { - if v > qb.quota { - v = qb.quota - } - qb.quota -= v - ver := qb.version - if qb.quota > 0 { - select { - case qb.c <- struct{}{}: - default: - } - } - qb.mu.Unlock() - return v, ver, nil - - } - qb.mu.Unlock() - } - } -} - -func (qb *quotaPool) compareAndExecute(version uint32, success, failure func()) bool { - qb.mu.Lock() - if version == qb.version { - success() - qb.mu.Unlock() - return true - } - failure() - qb.mu.Unlock() - return false -} - -// inFlow deals with inbound flow control -type inFlow struct { - mu sync.Mutex - // The inbound flow control limit for pending data. - limit uint32 - // pendingData is the overall data which have been received but not been - // consumed by applications. - pendingData uint32 - // The amount of data the application has consumed but grpc has not sent - // window update for them. Used to reduce window update frequency. - pendingUpdate uint32 - // delta is the extra window update given by receiver when an application - // is reading data bigger in size than the inFlow limit. - delta uint32 -} - -// newLimit updates the inflow window to a new value n. -// It assumes that n is always greater than the old limit. -func (f *inFlow) newLimit(n uint32) uint32 { - f.mu.Lock() - defer f.mu.Unlock() - d := n - f.limit - f.limit = n - return d -} - -func (f *inFlow) maybeAdjust(n uint32) uint32 { - if n > uint32(math.MaxInt32) { - n = uint32(math.MaxInt32) - } - f.mu.Lock() - defer f.mu.Unlock() - // estSenderQuota is the receiver's view of the maximum number of bytes the sender - // can send without a window update. - estSenderQuota := int32(f.limit - (f.pendingData + f.pendingUpdate)) - // estUntransmittedData is the maximum number of bytes the sends might not have put - // on the wire yet. A value of 0 or less means that we have already received all or - // more bytes than the application is requesting to read. - estUntransmittedData := int32(n - f.pendingData) // Casting into int32 since it could be negative. - // This implies that unless we send a window update, the sender won't be able to send all the bytes - // for this message. Therefore we must send an update over the limit since there's an active read - // request from the application. - if estUntransmittedData > estSenderQuota { - // Sender's window shouldn't go more than 2^31 - 1 as speecified in the HTTP spec. - if f.limit+n > maxWindowSize { - f.delta = maxWindowSize - f.limit - } else { - // Send a window update for the whole message and not just the difference between - // estUntransmittedData and estSenderQuota. This will be helpful in case the message - // is padded; We will fallback on the current available window(at least a 1/4th of the limit). - f.delta = n - } - return f.delta - } - return 0 -} - -// onData is invoked when some data frame is received. It updates pendingData. -func (f *inFlow) onData(n uint32) error { - f.mu.Lock() - defer f.mu.Unlock() - f.pendingData += n - if f.pendingData+f.pendingUpdate > f.limit+f.delta { - return fmt.Errorf("received %d-bytes data exceeding the limit %d bytes", f.pendingData+f.pendingUpdate, f.limit) - } - return nil -} - -// onRead is invoked when the application reads the data. It returns the window size -// to be sent to the peer. -func (f *inFlow) onRead(n uint32) uint32 { - f.mu.Lock() - defer f.mu.Unlock() - if f.pendingData == 0 { - return 0 - } - f.pendingData -= n - if n > f.delta { - n -= f.delta - f.delta = 0 - } else { - f.delta -= n - n = 0 - } - f.pendingUpdate += n - if f.pendingUpdate >= f.limit/4 { - wu := f.pendingUpdate - f.pendingUpdate = 0 - return wu - } - return 0 -} - -func (f *inFlow) resetPendingUpdate() uint32 { - f.mu.Lock() - defer f.mu.Unlock() - n := f.pendingUpdate - f.pendingUpdate = 0 - return n -} diff --git a/vendor/google.golang.org/grpc/transport/go16.go b/vendor/google.golang.org/grpc/transport/go16.go deleted file mode 100644 index 5babcf9..0000000 --- a/vendor/google.golang.org/grpc/transport/go16.go +++ /dev/null @@ -1,51 +0,0 @@ -// +build go1.6,!go1.7 - -/* - * - * Copyright 2016 gRPC authors. - * - * 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 transport - -import ( - "net" - "net/http" - - "google.golang.org/grpc/codes" - - "golang.org/x/net/context" -) - -// dialContext connects to the address on the named network. -func dialContext(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{Cancel: ctx.Done()}).Dial(network, address) -} - -// ContextErr converts the error from context package into a StreamError. -func ContextErr(err error) StreamError { - switch err { - case context.DeadlineExceeded: - return streamErrorf(codes.DeadlineExceeded, "%v", err) - case context.Canceled: - return streamErrorf(codes.Canceled, "%v", err) - } - return streamErrorf(codes.Internal, "Unexpected error from context packet: %v", err) -} - -// contextFromRequest returns a background context. -func contextFromRequest(r *http.Request) context.Context { - return context.Background() -} diff --git a/vendor/google.golang.org/grpc/transport/go17.go b/vendor/google.golang.org/grpc/transport/go17.go deleted file mode 100644 index b7fa6bd..0000000 --- a/vendor/google.golang.org/grpc/transport/go17.go +++ /dev/null @@ -1,52 +0,0 @@ -// +build go1.7 - -/* - * - * Copyright 2016 gRPC authors. - * - * 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 transport - -import ( - "context" - "net" - "net/http" - - "google.golang.org/grpc/codes" - - netctx "golang.org/x/net/context" -) - -// dialContext connects to the address on the named network. -func dialContext(ctx context.Context, network, address string) (net.Conn, error) { - return (&net.Dialer{}).DialContext(ctx, network, address) -} - -// ContextErr converts the error from context package into a StreamError. -func ContextErr(err error) StreamError { - switch err { - case context.DeadlineExceeded, netctx.DeadlineExceeded: - return streamErrorf(codes.DeadlineExceeded, "%v", err) - case context.Canceled, netctx.Canceled: - return streamErrorf(codes.Canceled, "%v", err) - } - return streamErrorf(codes.Internal, "Unexpected error from context packet: %v", err) -} - -// contextFromRequest returns a context from the HTTP Request. -func contextFromRequest(r *http.Request) context.Context { - return r.Context() -} diff --git a/vendor/google.golang.org/grpc/transport/http2_client.go b/vendor/google.golang.org/grpc/transport/http2_client.go deleted file mode 100644 index 8b5be0d..0000000 --- a/vendor/google.golang.org/grpc/transport/http2_client.go +++ /dev/null @@ -1,1386 +0,0 @@ -/* - * - * Copyright 2014 gRPC authors. - * - * 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 transport - -import ( - "bytes" - "fmt" - "io" - "math" - "net" - "strings" - "sync" - "sync/atomic" - "time" - - "golang.org/x/net/context" - "golang.org/x/net/http2" - "golang.org/x/net/http2/hpack" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/credentials" - "google.golang.org/grpc/keepalive" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/peer" - "google.golang.org/grpc/stats" - "google.golang.org/grpc/status" -) - -// http2Client implements the ClientTransport interface with HTTP2. -type http2Client struct { - ctx context.Context - cancel context.CancelFunc - userAgent string - md interface{} - conn net.Conn // underlying communication channel - remoteAddr net.Addr - localAddr net.Addr - authInfo credentials.AuthInfo // auth info about the connection - nextID uint32 // the next stream ID to be used - - // goAway is closed to notify the upper layer (i.e., addrConn.transportMonitor) - // that the server sent GoAway on this transport. - goAway chan struct{} - // awakenKeepalive is used to wake up keepalive when after it has gone dormant. - awakenKeepalive chan struct{} - - framer *framer - hBuf *bytes.Buffer // the buffer for HPACK encoding - hEnc *hpack.Encoder // HPACK encoder - - // controlBuf delivers all the control related tasks (e.g., window - // updates, reset streams, and various settings) to the controller. - controlBuf *controlBuffer - fc *inFlow - // sendQuotaPool provides flow control to outbound message. - sendQuotaPool *quotaPool - // localSendQuota limits the amount of data that can be scheduled - // for writing before it is actually written out. - localSendQuota *quotaPool - // streamsQuota limits the max number of concurrent streams. - streamsQuota *quotaPool - - // The scheme used: https if TLS is on, http otherwise. - scheme string - - isSecure bool - - creds []credentials.PerRPCCredentials - - // Boolean to keep track of reading activity on transport. - // 1 is true and 0 is false. - activity uint32 // Accessed atomically. - kp keepalive.ClientParameters - - statsHandler stats.Handler - - initialWindowSize int32 - - bdpEst *bdpEstimator - outQuotaVersion uint32 - - // onSuccess is a callback that client transport calls upon - // receiving server preface to signal that a succefull HTTP2 - // connection was established. - onSuccess func() - - mu sync.Mutex // guard the following variables - state transportState // the state of underlying connection - activeStreams map[uint32]*Stream - // The max number of concurrent streams - maxStreams int - // the per-stream outbound flow control window size set by the peer. - streamSendQuota uint32 - // prevGoAway ID records the Last-Stream-ID in the previous GOAway frame. - prevGoAwayID uint32 - // goAwayReason records the http2.ErrCode and debug data received with the - // GoAway frame. - goAwayReason GoAwayReason -} - -func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr string) (net.Conn, error) { - if fn != nil { - return fn(ctx, addr) - } - return dialContext(ctx, "tcp", addr) -} - -func isTemporary(err error) bool { - switch err := err.(type) { - case interface { - Temporary() bool - }: - return err.Temporary() - case interface { - Timeout() bool - }: - // Timeouts may be resolved upon retry, and are thus treated as - // temporary. - return err.Timeout() - } - return true -} - -// newHTTP2Client constructs a connected ClientTransport to addr based on HTTP2 -// and starts to receive messages on it. Non-nil error returns if construction -// fails. -func newHTTP2Client(connectCtx, ctx context.Context, addr TargetInfo, opts ConnectOptions, onSuccess func()) (_ ClientTransport, err error) { - scheme := "http" - ctx, cancel := context.WithCancel(ctx) - defer func() { - if err != nil { - cancel() - } - }() - - conn, err := dial(connectCtx, opts.Dialer, addr.Addr) - if err != nil { - if opts.FailOnNonTempDialError { - return nil, connectionErrorf(isTemporary(err), err, "transport: error while dialing: %v", err) - } - return nil, connectionErrorf(true, err, "transport: Error while dialing %v", err) - } - // Any further errors will close the underlying connection - defer func(conn net.Conn) { - if err != nil { - conn.Close() - } - }(conn) - var ( - isSecure bool - authInfo credentials.AuthInfo - ) - if creds := opts.TransportCredentials; creds != nil { - scheme = "https" - conn, authInfo, err = creds.ClientHandshake(connectCtx, addr.Authority, conn) - if err != nil { - return nil, connectionErrorf(isTemporary(err), err, "transport: authentication handshake failed: %v", err) - } - isSecure = true - } - kp := opts.KeepaliveParams - // Validate keepalive parameters. - if kp.Time == 0 { - kp.Time = defaultClientKeepaliveTime - } - if kp.Timeout == 0 { - kp.Timeout = defaultClientKeepaliveTimeout - } - dynamicWindow := true - icwz := int32(initialWindowSize) - if opts.InitialConnWindowSize >= defaultWindowSize { - icwz = opts.InitialConnWindowSize - dynamicWindow = false - } - var buf bytes.Buffer - writeBufSize := defaultWriteBufSize - if opts.WriteBufferSize > 0 { - writeBufSize = opts.WriteBufferSize - } - readBufSize := defaultReadBufSize - if opts.ReadBufferSize > 0 { - readBufSize = opts.ReadBufferSize - } - t := &http2Client{ - ctx: ctx, - cancel: cancel, - userAgent: opts.UserAgent, - md: addr.Metadata, - conn: conn, - remoteAddr: conn.RemoteAddr(), - localAddr: conn.LocalAddr(), - authInfo: authInfo, - // The client initiated stream id is odd starting from 1. - nextID: 1, - goAway: make(chan struct{}), - awakenKeepalive: make(chan struct{}, 1), - hBuf: &buf, - hEnc: hpack.NewEncoder(&buf), - framer: newFramer(conn, writeBufSize, readBufSize), - controlBuf: newControlBuffer(), - fc: &inFlow{limit: uint32(icwz)}, - sendQuotaPool: newQuotaPool(defaultWindowSize), - localSendQuota: newQuotaPool(defaultLocalSendQuota), - scheme: scheme, - state: reachable, - activeStreams: make(map[uint32]*Stream), - isSecure: isSecure, - creds: opts.PerRPCCredentials, - maxStreams: defaultMaxStreamsClient, - streamsQuota: newQuotaPool(defaultMaxStreamsClient), - streamSendQuota: defaultWindowSize, - kp: kp, - statsHandler: opts.StatsHandler, - initialWindowSize: initialWindowSize, - onSuccess: onSuccess, - } - if opts.InitialWindowSize >= defaultWindowSize { - t.initialWindowSize = opts.InitialWindowSize - dynamicWindow = false - } - if dynamicWindow { - t.bdpEst = &bdpEstimator{ - bdp: initialWindowSize, - updateFlowControl: t.updateFlowControl, - } - } - // Make sure awakenKeepalive can't be written upon. - // keepalive routine will make it writable, if need be. - t.awakenKeepalive <- struct{}{} - if t.statsHandler != nil { - t.ctx = t.statsHandler.TagConn(t.ctx, &stats.ConnTagInfo{ - RemoteAddr: t.remoteAddr, - LocalAddr: t.localAddr, - }) - connBegin := &stats.ConnBegin{ - Client: true, - } - t.statsHandler.HandleConn(t.ctx, connBegin) - } - // Start the reader goroutine for incoming message. Each transport has - // a dedicated goroutine which reads HTTP2 frame from network. Then it - // dispatches the frame to the corresponding stream entity. - go t.reader() - // Send connection preface to server. - n, err := t.conn.Write(clientPreface) - if err != nil { - t.Close() - return nil, connectionErrorf(true, err, "transport: failed to write client preface: %v", err) - } - if n != len(clientPreface) { - t.Close() - return nil, connectionErrorf(true, err, "transport: preface mismatch, wrote %d bytes; want %d", n, len(clientPreface)) - } - if t.initialWindowSize != defaultWindowSize { - err = t.framer.fr.WriteSettings(http2.Setting{ - ID: http2.SettingInitialWindowSize, - Val: uint32(t.initialWindowSize), - }) - } else { - err = t.framer.fr.WriteSettings() - } - if err != nil { - t.Close() - return nil, connectionErrorf(true, err, "transport: failed to write initial settings frame: %v", err) - } - // Adjust the connection flow control window if needed. - if delta := uint32(icwz - defaultWindowSize); delta > 0 { - if err := t.framer.fr.WriteWindowUpdate(0, delta); err != nil { - t.Close() - return nil, connectionErrorf(true, err, "transport: failed to write window update: %v", err) - } - } - t.framer.writer.Flush() - go func() { - loopyWriter(t.ctx, t.controlBuf, t.itemHandler) - t.conn.Close() - }() - if t.kp.Time != infinity { - go t.keepalive() - } - return t, nil -} - -func (t *http2Client) newStream(ctx context.Context, callHdr *CallHdr) *Stream { - // TODO(zhaoq): Handle uint32 overflow of Stream.id. - s := &Stream{ - id: t.nextID, - done: make(chan struct{}), - goAway: make(chan struct{}), - method: callHdr.Method, - sendCompress: callHdr.SendCompress, - buf: newRecvBuffer(), - fc: &inFlow{limit: uint32(t.initialWindowSize)}, - sendQuotaPool: newQuotaPool(int(t.streamSendQuota)), - headerChan: make(chan struct{}), - contentSubtype: callHdr.ContentSubtype, - } - t.nextID += 2 - s.requestRead = func(n int) { - t.adjustWindow(s, uint32(n)) - } - // The client side stream context should have exactly the same life cycle with the user provided context. - // That means, s.ctx should be read-only. And s.ctx is done iff ctx is done. - // So we use the original context here instead of creating a copy. - s.ctx = ctx - s.trReader = &transportReader{ - reader: &recvBufferReader{ - ctx: s.ctx, - goAway: s.goAway, - recv: s.buf, - }, - windowHandler: func(n int) { - t.updateWindow(s, uint32(n)) - }, - } - s.waiters = waiters{ - ctx: s.ctx, - tctx: t.ctx, - done: s.done, - goAway: s.goAway, - } - return s -} - -// NewStream creates a stream and registers it into the transport as "active" -// streams. -func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Stream, err error) { - pr := &peer.Peer{ - Addr: t.remoteAddr, - } - // Attach Auth info if there is any. - if t.authInfo != nil { - pr.AuthInfo = t.authInfo - } - ctx = peer.NewContext(ctx, pr) - var ( - authData = make(map[string]string) - audience string - ) - // Create an audience string only if needed. - if len(t.creds) > 0 || callHdr.Creds != nil { - // Construct URI required to get auth request metadata. - // Omit port if it is the default one. - host := strings.TrimSuffix(callHdr.Host, ":443") - pos := strings.LastIndex(callHdr.Method, "/") - if pos == -1 { - pos = len(callHdr.Method) - } - audience = "https://" + host + callHdr.Method[:pos] - } - for _, c := range t.creds { - data, err := c.GetRequestMetadata(ctx, audience) - if err != nil { - if _, ok := status.FromError(err); ok { - return nil, err - } - - return nil, streamErrorf(codes.Unauthenticated, "transport: %v", err) - } - for k, v := range data { - // Capital header names are illegal in HTTP/2. - k = strings.ToLower(k) - authData[k] = v - } - } - callAuthData := map[string]string{} - // Check if credentials.PerRPCCredentials were provided via call options. - // Note: if these credentials are provided both via dial options and call - // options, then both sets of credentials will be applied. - if callCreds := callHdr.Creds; callCreds != nil { - if !t.isSecure && callCreds.RequireTransportSecurity() { - return nil, streamErrorf(codes.Unauthenticated, "transport: cannot send secure credentials on an insecure connection") - } - data, err := callCreds.GetRequestMetadata(ctx, audience) - if err != nil { - return nil, streamErrorf(codes.Internal, "transport: %v", err) - } - for k, v := range data { - // Capital header names are illegal in HTTP/2 - k = strings.ToLower(k) - callAuthData[k] = v - } - } - t.mu.Lock() - if t.activeStreams == nil { - t.mu.Unlock() - return nil, ErrConnClosing - } - if t.state == draining { - t.mu.Unlock() - return nil, errStreamDrain - } - if t.state != reachable { - t.mu.Unlock() - return nil, ErrConnClosing - } - t.mu.Unlock() - // Get a quota of 1 from streamsQuota. - if _, _, err := t.streamsQuota.get(1, waiters{ctx: ctx, tctx: t.ctx}); err != nil { - return nil, err - } - // TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields - // first and create a slice of that exact size. - // Make the slice of certain predictable size to reduce allocations made by append. - hfLen := 7 // :method, :scheme, :path, :authority, content-type, user-agent, te - hfLen += len(authData) + len(callAuthData) - headerFields := make([]hpack.HeaderField, 0, hfLen) - headerFields = append(headerFields, hpack.HeaderField{Name: ":method", Value: "POST"}) - headerFields = append(headerFields, hpack.HeaderField{Name: ":scheme", Value: t.scheme}) - headerFields = append(headerFields, hpack.HeaderField{Name: ":path", Value: callHdr.Method}) - headerFields = append(headerFields, hpack.HeaderField{Name: ":authority", Value: callHdr.Host}) - headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: contentType(callHdr.ContentSubtype)}) - headerFields = append(headerFields, hpack.HeaderField{Name: "user-agent", Value: t.userAgent}) - headerFields = append(headerFields, hpack.HeaderField{Name: "te", Value: "trailers"}) - - if callHdr.SendCompress != "" { - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: callHdr.SendCompress}) - } - if dl, ok := ctx.Deadline(); ok { - // Send out timeout regardless its value. The server can detect timeout context by itself. - // TODO(mmukhi): Perhaps this field should be updated when actually writing out to the wire. - timeout := dl.Sub(time.Now()) - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-timeout", Value: encodeTimeout(timeout)}) - } - for k, v := range authData { - headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) - } - for k, v := range callAuthData { - headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) - } - if b := stats.OutgoingTags(ctx); b != nil { - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-tags-bin", Value: encodeBinHeader(b)}) - } - if b := stats.OutgoingTrace(ctx); b != nil { - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-trace-bin", Value: encodeBinHeader(b)}) - } - - if md, added, ok := metadata.FromOutgoingContextRaw(ctx); ok { - var k string - for _, vv := range added { - for i, v := range vv { - if i%2 == 0 { - k = v - continue - } - // HTTP doesn't allow you to set pseudoheaders after non pseudoheaders were set. - if isReservedHeader(k) { - continue - } - headerFields = append(headerFields, hpack.HeaderField{Name: strings.ToLower(k), Value: encodeMetadataHeader(k, v)}) - } - } - for k, vv := range md { - // HTTP doesn't allow you to set pseudoheaders after non pseudoheaders were set. - if isReservedHeader(k) { - continue - } - for _, v := range vv { - headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) - } - } - } - if md, ok := t.md.(*metadata.MD); ok { - for k, vv := range *md { - if isReservedHeader(k) { - continue - } - for _, v := range vv { - headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) - } - } - } - t.mu.Lock() - if t.state == draining { - t.mu.Unlock() - t.streamsQuota.add(1) - return nil, errStreamDrain - } - if t.state != reachable { - t.mu.Unlock() - return nil, ErrConnClosing - } - s := t.newStream(ctx, callHdr) - t.activeStreams[s.id] = s - // If the number of active streams change from 0 to 1, then check if keepalive - // has gone dormant. If so, wake it up. - if len(t.activeStreams) == 1 { - select { - case t.awakenKeepalive <- struct{}{}: - t.controlBuf.put(&ping{data: [8]byte{}}) - // Fill the awakenKeepalive channel again as this channel must be - // kept non-writable except at the point that the keepalive() - // goroutine is waiting either to be awaken or shutdown. - t.awakenKeepalive <- struct{}{} - default: - } - } - t.controlBuf.put(&headerFrame{ - streamID: s.id, - hf: headerFields, - endStream: false, - }) - t.mu.Unlock() - - if t.statsHandler != nil { - outHeader := &stats.OutHeader{ - Client: true, - FullMethod: callHdr.Method, - RemoteAddr: t.remoteAddr, - LocalAddr: t.localAddr, - Compression: callHdr.SendCompress, - } - t.statsHandler.HandleRPC(s.ctx, outHeader) - } - return s, nil -} - -// CloseStream clears the footprint of a stream when the stream is not needed any more. -// This must not be executed in reader's goroutine. -func (t *http2Client) CloseStream(s *Stream, err error) { - t.mu.Lock() - if t.activeStreams == nil { - t.mu.Unlock() - return - } - if err != nil { - // notify in-flight streams, before the deletion - s.write(recvMsg{err: err}) - } - delete(t.activeStreams, s.id) - if t.state == draining && len(t.activeStreams) == 0 { - // The transport is draining and s is the last live stream on t. - t.mu.Unlock() - t.Close() - return - } - t.mu.Unlock() - // rstStream is true in case the stream is being closed at the client-side - // and the server needs to be intimated about it by sending a RST_STREAM - // frame. - // To make sure this frame is written to the wire before the headers of the - // next stream waiting for streamsQuota, we add to streamsQuota pool only - // after having acquired the writableChan to send RST_STREAM out (look at - // the controller() routine). - var rstStream bool - var rstError http2.ErrCode - defer func() { - // In case, the client doesn't have to send RST_STREAM to server - // we can safely add back to streamsQuota pool now. - if !rstStream { - t.streamsQuota.add(1) - return - } - t.controlBuf.put(&resetStream{s.id, rstError}) - }() - s.mu.Lock() - rstStream = s.rstStream - rstError = s.rstError - if s.state == streamDone { - s.mu.Unlock() - return - } - if !s.headerDone { - close(s.headerChan) - s.headerDone = true - } - s.state = streamDone - s.mu.Unlock() - if err != nil && !rstStream { - rstStream = true - rstError = http2.ErrCodeCancel - } -} - -// Close kicks off the shutdown process of the transport. This should be called -// only once on a transport. Once it is called, the transport should not be -// accessed any more. -func (t *http2Client) Close() error { - t.mu.Lock() - if t.state == closing { - t.mu.Unlock() - return nil - } - t.state = closing - t.mu.Unlock() - t.cancel() - err := t.conn.Close() - t.mu.Lock() - streams := t.activeStreams - t.activeStreams = nil - t.mu.Unlock() - // Notify all active streams. - for _, s := range streams { - s.mu.Lock() - if !s.headerDone { - close(s.headerChan) - s.headerDone = true - } - s.mu.Unlock() - s.write(recvMsg{err: ErrConnClosing}) - } - if t.statsHandler != nil { - connEnd := &stats.ConnEnd{ - Client: true, - } - t.statsHandler.HandleConn(t.ctx, connEnd) - } - return err -} - -// GracefulClose sets the state to draining, which prevents new streams from -// being created and causes the transport to be closed when the last active -// stream is closed. If there are no active streams, the transport is closed -// immediately. This does nothing if the transport is already draining or -// closing. -func (t *http2Client) GracefulClose() error { - t.mu.Lock() - switch t.state { - case closing, draining: - t.mu.Unlock() - return nil - } - t.state = draining - active := len(t.activeStreams) - t.mu.Unlock() - if active == 0 { - return t.Close() - } - return nil -} - -// Write formats the data into HTTP2 data frame(s) and sends it out. The caller -// should proceed only if Write returns nil. -func (t *http2Client) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { - select { - case <-s.ctx.Done(): - return ContextErr(s.ctx.Err()) - case <-s.done: - return io.EOF - case <-t.ctx.Done(): - return ErrConnClosing - default: - } - - if hdr == nil && data == nil && opts.Last { - // stream.CloseSend uses this to send an empty frame with endStream=True - t.controlBuf.put(&dataFrame{streamID: s.id, endStream: true, f: func() {}}) - return nil - } - // Add data to header frame so that we can equally distribute data across frames. - emptyLen := http2MaxFrameLen - len(hdr) - if emptyLen > len(data) { - emptyLen = len(data) - } - hdr = append(hdr, data[:emptyLen]...) - data = data[emptyLen:] - var ( - streamQuota int - streamQuotaVer uint32 - err error - ) - for idx, r := range [][]byte{hdr, data} { - for len(r) > 0 { - size := http2MaxFrameLen - if size > len(r) { - size = len(r) - } - if streamQuota == 0 { // Used up all the locally cached stream quota. - // Get all the stream quota there is. - streamQuota, streamQuotaVer, err = s.sendQuotaPool.get(math.MaxInt32, s.waiters) - if err != nil { - return err - } - } - if size > streamQuota { - size = streamQuota - } - - // Get size worth quota from transport. - tq, _, err := t.sendQuotaPool.get(size, s.waiters) - if err != nil { - return err - } - if tq < size { - size = tq - } - ltq, _, err := t.localSendQuota.get(size, s.waiters) - if err != nil { - // Add the acquired quota back to transport. - t.sendQuotaPool.add(tq) - return err - } - // even if ltq is smaller than size we don't adjust size since - // ltq is only a soft limit. - streamQuota -= size - p := r[:size] - var endStream bool - // See if this is the last frame to be written. - if opts.Last { - if len(r)-size == 0 { // No more data in r after this iteration. - if idx == 0 { // We're writing data header. - if len(data) == 0 { // There's no data to follow. - endStream = true - } - } else { // We're writing data. - endStream = true - } - } - } - success := func() { - ltq := ltq - t.controlBuf.put(&dataFrame{streamID: s.id, endStream: endStream, d: p, f: func() { t.localSendQuota.add(ltq) }}) - r = r[size:] - } - failure := func() { // The stream quota version must have changed. - // Our streamQuota cache is invalidated now, so give it back. - s.sendQuotaPool.lockedAdd(streamQuota + size) - } - if !s.sendQuotaPool.compareAndExecute(streamQuotaVer, success, failure) { - // Couldn't send this chunk out. - t.sendQuotaPool.add(size) - t.localSendQuota.add(ltq) - streamQuota = 0 - } - } - } - if streamQuota > 0 { // Add the left over quota back to stream. - s.sendQuotaPool.add(streamQuota) - } - if !opts.Last { - return nil - } - s.mu.Lock() - if s.state != streamDone { - s.state = streamWriteDone - } - s.mu.Unlock() - return nil -} - -func (t *http2Client) getStream(f http2.Frame) (*Stream, bool) { - t.mu.Lock() - defer t.mu.Unlock() - s, ok := t.activeStreams[f.Header().StreamID] - return s, ok -} - -// adjustWindow sends out extra window update over the initial window size -// of stream if the application is requesting data larger in size than -// the window. -func (t *http2Client) adjustWindow(s *Stream, n uint32) { - s.mu.Lock() - defer s.mu.Unlock() - if s.state == streamDone { - return - } - if w := s.fc.maybeAdjust(n); w > 0 { - // Piggyback connection's window update along. - if cw := t.fc.resetPendingUpdate(); cw > 0 { - t.controlBuf.put(&windowUpdate{0, cw}) - } - t.controlBuf.put(&windowUpdate{s.id, w}) - } -} - -// updateWindow adjusts the inbound quota for the stream and the transport. -// Window updates will deliver to the controller for sending when -// the cumulative quota exceeds the corresponding threshold. -func (t *http2Client) updateWindow(s *Stream, n uint32) { - s.mu.Lock() - defer s.mu.Unlock() - if s.state == streamDone { - return - } - if w := s.fc.onRead(n); w > 0 { - if cw := t.fc.resetPendingUpdate(); cw > 0 { - t.controlBuf.put(&windowUpdate{0, cw}) - } - t.controlBuf.put(&windowUpdate{s.id, w}) - } -} - -// updateFlowControl updates the incoming flow control windows -// for the transport and the stream based on the current bdp -// estimation. -func (t *http2Client) updateFlowControl(n uint32) { - t.mu.Lock() - for _, s := range t.activeStreams { - s.fc.newLimit(n) - } - t.initialWindowSize = int32(n) - t.mu.Unlock() - t.controlBuf.put(&windowUpdate{0, t.fc.newLimit(n)}) - t.controlBuf.put(&settings{ - ss: []http2.Setting{ - { - ID: http2.SettingInitialWindowSize, - Val: uint32(n), - }, - }, - }) -} - -func (t *http2Client) handleData(f *http2.DataFrame) { - size := f.Header().Length - var sendBDPPing bool - if t.bdpEst != nil { - sendBDPPing = t.bdpEst.add(uint32(size)) - } - // Decouple connection's flow control from application's read. - // An update on connection's flow control should not depend on - // whether user application has read the data or not. Such a - // restriction is already imposed on the stream's flow control, - // and therefore the sender will be blocked anyways. - // Decoupling the connection flow control will prevent other - // active(fast) streams from starving in presence of slow or - // inactive streams. - // - // Furthermore, if a bdpPing is being sent out we can piggyback - // connection's window update for the bytes we just received. - if sendBDPPing { - if size != 0 { // Could've been an empty data frame. - t.controlBuf.put(&windowUpdate{0, uint32(size)}) - } - t.controlBuf.put(bdpPing) - } else { - if err := t.fc.onData(uint32(size)); err != nil { - t.Close() - return - } - if w := t.fc.onRead(uint32(size)); w > 0 { - t.controlBuf.put(&windowUpdate{0, w}) - } - } - // Select the right stream to dispatch. - s, ok := t.getStream(f) - if !ok { - return - } - if size > 0 { - s.mu.Lock() - if s.state == streamDone { - s.mu.Unlock() - return - } - if err := s.fc.onData(uint32(size)); err != nil { - s.rstStream = true - s.rstError = http2.ErrCodeFlowControl - s.finish(status.New(codes.Internal, err.Error())) - s.mu.Unlock() - s.write(recvMsg{err: io.EOF}) - return - } - if f.Header().Flags.Has(http2.FlagDataPadded) { - if w := s.fc.onRead(uint32(size) - uint32(len(f.Data()))); w > 0 { - t.controlBuf.put(&windowUpdate{s.id, w}) - } - } - s.mu.Unlock() - // TODO(bradfitz, zhaoq): A copy is required here because there is no - // guarantee f.Data() is consumed before the arrival of next frame. - // Can this copy be eliminated? - if len(f.Data()) > 0 { - data := make([]byte, len(f.Data())) - copy(data, f.Data()) - s.write(recvMsg{data: data}) - } - } - // The server has closed the stream without sending trailers. Record that - // the read direction is closed, and set the status appropriately. - if f.FrameHeader.Flags.Has(http2.FlagDataEndStream) { - s.mu.Lock() - if s.state == streamDone { - s.mu.Unlock() - return - } - s.finish(status.New(codes.Internal, "server closed the stream without sending trailers")) - s.mu.Unlock() - s.write(recvMsg{err: io.EOF}) - } -} - -func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { - s, ok := t.getStream(f) - if !ok { - return - } - s.mu.Lock() - if s.state == streamDone { - s.mu.Unlock() - return - } - if !s.headerDone { - close(s.headerChan) - s.headerDone = true - } - - code := http2.ErrCode(f.ErrCode) - if code == http2.ErrCodeRefusedStream { - // The stream was unprocessed by the server. - s.unprocessed = true - } - statusCode, ok := http2ErrConvTab[code] - if !ok { - warningf("transport: http2Client.handleRSTStream found no mapped gRPC status for the received http2 error %v", f.ErrCode) - statusCode = codes.Unknown - } - s.finish(status.Newf(statusCode, "stream terminated by RST_STREAM with error code: %v", f.ErrCode)) - s.mu.Unlock() - s.write(recvMsg{err: io.EOF}) -} - -func (t *http2Client) handleSettings(f *http2.SettingsFrame, isFirst bool) { - if f.IsAck() { - return - } - var rs []http2.Setting - var ps []http2.Setting - isMaxConcurrentStreamsMissing := true - f.ForeachSetting(func(s http2.Setting) error { - if s.ID == http2.SettingMaxConcurrentStreams { - isMaxConcurrentStreamsMissing = false - } - if t.isRestrictive(s) { - rs = append(rs, s) - } else { - ps = append(ps, s) - } - return nil - }) - if isFirst && isMaxConcurrentStreamsMissing { - // This means server is imposing no limits on - // maximum number of concurrent streams initiated by client. - // So we must remove our self-imposed limit. - ps = append(ps, http2.Setting{ - ID: http2.SettingMaxConcurrentStreams, - Val: math.MaxUint32, - }) - } - t.applySettings(rs) - t.controlBuf.put(&settingsAck{}) - t.applySettings(ps) -} - -func (t *http2Client) isRestrictive(s http2.Setting) bool { - switch s.ID { - case http2.SettingMaxConcurrentStreams: - return int(s.Val) < t.maxStreams - case http2.SettingInitialWindowSize: - // Note: we don't acquire a lock here to read streamSendQuota - // because the same goroutine updates it later. - return s.Val < t.streamSendQuota - } - return false -} - -func (t *http2Client) handlePing(f *http2.PingFrame) { - if f.IsAck() { - // Maybe it's a BDP ping. - if t.bdpEst != nil { - t.bdpEst.calculate(f.Data) - } - return - } - pingAck := &ping{ack: true} - copy(pingAck.data[:], f.Data[:]) - t.controlBuf.put(pingAck) -} - -func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) { - t.mu.Lock() - if t.state != reachable && t.state != draining { - t.mu.Unlock() - return - } - if f.ErrCode == http2.ErrCodeEnhanceYourCalm { - infof("Client received GoAway with http2.ErrCodeEnhanceYourCalm.") - } - id := f.LastStreamID - if id > 0 && id%2 != 1 { - t.mu.Unlock() - t.Close() - return - } - // A client can receive multiple GoAways from the server (see - // https://github.com/grpc/grpc-go/issues/1387). The idea is that the first - // GoAway will be sent with an ID of MaxInt32 and the second GoAway will be - // sent after an RTT delay with the ID of the last stream the server will - // process. - // - // Therefore, when we get the first GoAway we don't necessarily close any - // streams. While in case of second GoAway we close all streams created after - // the GoAwayId. This way streams that were in-flight while the GoAway from - // server was being sent don't get killed. - select { - case <-t.goAway: // t.goAway has been closed (i.e.,multiple GoAways). - // If there are multiple GoAways the first one should always have an ID greater than the following ones. - if id > t.prevGoAwayID { - t.mu.Unlock() - t.Close() - return - } - default: - t.setGoAwayReason(f) - close(t.goAway) - t.state = draining - } - // All streams with IDs greater than the GoAwayId - // and smaller than the previous GoAway ID should be killed. - upperLimit := t.prevGoAwayID - if upperLimit == 0 { // This is the first GoAway Frame. - upperLimit = math.MaxUint32 // Kill all streams after the GoAway ID. - } - for streamID, stream := range t.activeStreams { - if streamID > id && streamID <= upperLimit { - // The stream was unprocessed by the server. - stream.mu.Lock() - stream.unprocessed = true - stream.finish(statusGoAway) - stream.mu.Unlock() - close(stream.goAway) - } - } - t.prevGoAwayID = id - active := len(t.activeStreams) - t.mu.Unlock() - if active == 0 { - t.Close() - } -} - -// setGoAwayReason sets the value of t.goAwayReason based -// on the GoAway frame received. -// It expects a lock on transport's mutext to be held by -// the caller. -func (t *http2Client) setGoAwayReason(f *http2.GoAwayFrame) { - t.goAwayReason = GoAwayNoReason - switch f.ErrCode { - case http2.ErrCodeEnhanceYourCalm: - if string(f.DebugData()) == "too_many_pings" { - t.goAwayReason = GoAwayTooManyPings - } - } -} - -func (t *http2Client) GetGoAwayReason() GoAwayReason { - t.mu.Lock() - defer t.mu.Unlock() - return t.goAwayReason -} - -func (t *http2Client) handleWindowUpdate(f *http2.WindowUpdateFrame) { - id := f.Header().StreamID - incr := f.Increment - if id == 0 { - t.sendQuotaPool.add(int(incr)) - return - } - if s, ok := t.getStream(f); ok { - s.sendQuotaPool.add(int(incr)) - } -} - -// operateHeaders takes action on the decoded headers. -func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) { - s, ok := t.getStream(frame) - if !ok { - return - } - s.mu.Lock() - s.bytesReceived = true - s.mu.Unlock() - var state decodeState - if err := state.decodeResponseHeader(frame); err != nil { - s.mu.Lock() - if !s.headerDone { - close(s.headerChan) - s.headerDone = true - } - s.mu.Unlock() - s.write(recvMsg{err: err}) - // Something wrong. Stops reading even when there is remaining. - return - } - - endStream := frame.StreamEnded() - var isHeader bool - defer func() { - if t.statsHandler != nil { - if isHeader { - inHeader := &stats.InHeader{ - Client: true, - WireLength: int(frame.Header().Length), - } - t.statsHandler.HandleRPC(s.ctx, inHeader) - } else { - inTrailer := &stats.InTrailer{ - Client: true, - WireLength: int(frame.Header().Length), - } - t.statsHandler.HandleRPC(s.ctx, inTrailer) - } - } - }() - - s.mu.Lock() - if !s.headerDone { - if !endStream { - // Headers frame is not actually a trailers-only frame. - isHeader = true - s.recvCompress = state.encoding - if len(state.mdata) > 0 { - s.header = state.mdata - } - } - close(s.headerChan) - s.headerDone = true - } - if !endStream || s.state == streamDone { - s.mu.Unlock() - return - } - if len(state.mdata) > 0 { - s.trailer = state.mdata - } - s.finish(state.status()) - s.mu.Unlock() - s.write(recvMsg{err: io.EOF}) -} - -func handleMalformedHTTP2(s *Stream, err error) { - s.mu.Lock() - if !s.headerDone { - close(s.headerChan) - s.headerDone = true - } - s.mu.Unlock() - s.write(recvMsg{err: err}) -} - -// reader runs as a separate goroutine in charge of reading data from network -// connection. -// -// TODO(zhaoq): currently one reader per transport. Investigate whether this is -// optimal. -// TODO(zhaoq): Check the validity of the incoming frame sequence. -func (t *http2Client) reader() { - // Check the validity of server preface. - frame, err := t.framer.fr.ReadFrame() - if err != nil { - t.Close() - return - } - atomic.CompareAndSwapUint32(&t.activity, 0, 1) - sf, ok := frame.(*http2.SettingsFrame) - if !ok { - t.Close() - return - } - t.onSuccess() - t.handleSettings(sf, true) - - // loop to keep reading incoming messages on this transport. - for { - frame, err := t.framer.fr.ReadFrame() - atomic.CompareAndSwapUint32(&t.activity, 0, 1) - if err != nil { - // Abort an active stream if the http2.Framer returns a - // http2.StreamError. This can happen only if the server's response - // is malformed http2. - if se, ok := err.(http2.StreamError); ok { - t.mu.Lock() - s := t.activeStreams[se.StreamID] - t.mu.Unlock() - if s != nil { - // use error detail to provide better err message - handleMalformedHTTP2(s, streamErrorf(http2ErrConvTab[se.Code], "%v", t.framer.fr.ErrorDetail())) - } - continue - } else { - // Transport error. - t.Close() - return - } - } - switch frame := frame.(type) { - case *http2.MetaHeadersFrame: - t.operateHeaders(frame) - case *http2.DataFrame: - t.handleData(frame) - case *http2.RSTStreamFrame: - t.handleRSTStream(frame) - case *http2.SettingsFrame: - t.handleSettings(frame, false) - case *http2.PingFrame: - t.handlePing(frame) - case *http2.GoAwayFrame: - t.handleGoAway(frame) - case *http2.WindowUpdateFrame: - t.handleWindowUpdate(frame) - default: - errorf("transport: http2Client.reader got unhandled frame type %v.", frame) - } - } -} - -func (t *http2Client) applySettings(ss []http2.Setting) { - for _, s := range ss { - switch s.ID { - case http2.SettingMaxConcurrentStreams: - // TODO(zhaoq): This is a hack to avoid significant refactoring of the - // code to deal with the unrealistic int32 overflow. Probably will try - // to find a better way to handle this later. - if s.Val > math.MaxInt32 { - s.Val = math.MaxInt32 - } - ms := t.maxStreams - t.maxStreams = int(s.Val) - t.streamsQuota.add(int(s.Val) - ms) - case http2.SettingInitialWindowSize: - t.mu.Lock() - for _, stream := range t.activeStreams { - // Adjust the sending quota for each stream. - stream.sendQuotaPool.addAndUpdate(int(s.Val) - int(t.streamSendQuota)) - } - t.streamSendQuota = s.Val - t.mu.Unlock() - } - } -} - -// TODO(mmukhi): A lot of this code(and code in other places in the tranpsort layer) -// is duplicated between the client and the server. -// The transport layer needs to be refactored to take care of this. -func (t *http2Client) itemHandler(i item) (err error) { - defer func() { - if err != nil { - errorf(" error in itemHandler: %v", err) - } - }() - switch i := i.(type) { - case *dataFrame: - if err := t.framer.fr.WriteData(i.streamID, i.endStream, i.d); err != nil { - return err - } - i.f() - return nil - case *headerFrame: - t.hBuf.Reset() - for _, f := range i.hf { - t.hEnc.WriteField(f) - } - endHeaders := false - first := true - for !endHeaders { - size := t.hBuf.Len() - if size > http2MaxFrameLen { - size = http2MaxFrameLen - } else { - endHeaders = true - } - if first { - first = false - err = t.framer.fr.WriteHeaders(http2.HeadersFrameParam{ - StreamID: i.streamID, - BlockFragment: t.hBuf.Next(size), - EndStream: i.endStream, - EndHeaders: endHeaders, - }) - } else { - err = t.framer.fr.WriteContinuation( - i.streamID, - endHeaders, - t.hBuf.Next(size), - ) - } - if err != nil { - return err - } - } - return nil - case *windowUpdate: - return t.framer.fr.WriteWindowUpdate(i.streamID, i.increment) - case *settings: - return t.framer.fr.WriteSettings(i.ss...) - case *settingsAck: - return t.framer.fr.WriteSettingsAck() - case *resetStream: - // If the server needs to be to intimated about stream closing, - // then we need to make sure the RST_STREAM frame is written to - // the wire before the headers of the next stream waiting on - // streamQuota. We ensure this by adding to the streamsQuota pool - // only after having acquired the writableChan to send RST_STREAM. - err := t.framer.fr.WriteRSTStream(i.streamID, i.code) - t.streamsQuota.add(1) - return err - case *flushIO: - return t.framer.writer.Flush() - case *ping: - if !i.ack { - t.bdpEst.timesnap(i.data) - } - return t.framer.fr.WritePing(i.ack, i.data) - default: - errorf("transport: http2Client.controller got unexpected item type %v", i) - return fmt.Errorf("transport: http2Client.controller got unexpected item type %v", i) - } -} - -// keepalive running in a separate goroutune makes sure the connection is alive by sending pings. -func (t *http2Client) keepalive() { - p := &ping{data: [8]byte{}} - timer := time.NewTimer(t.kp.Time) - for { - select { - case <-timer.C: - if atomic.CompareAndSwapUint32(&t.activity, 1, 0) { - timer.Reset(t.kp.Time) - continue - } - // Check if keepalive should go dormant. - t.mu.Lock() - if len(t.activeStreams) < 1 && !t.kp.PermitWithoutStream { - // Make awakenKeepalive writable. - <-t.awakenKeepalive - t.mu.Unlock() - select { - case <-t.awakenKeepalive: - // If the control gets here a ping has been sent - // need to reset the timer with keepalive.Timeout. - case <-t.ctx.Done(): - return - } - } else { - t.mu.Unlock() - // Send ping. - t.controlBuf.put(p) - } - - // By the time control gets here a ping has been sent one way or the other. - timer.Reset(t.kp.Timeout) - select { - case <-timer.C: - if atomic.CompareAndSwapUint32(&t.activity, 1, 0) { - timer.Reset(t.kp.Time) - continue - } - t.Close() - return - case <-t.ctx.Done(): - if !timer.Stop() { - <-timer.C - } - return - } - case <-t.ctx.Done(): - if !timer.Stop() { - <-timer.C - } - return - } - } -} - -func (t *http2Client) Error() <-chan struct{} { - return t.ctx.Done() -} - -func (t *http2Client) GoAway() <-chan struct{} { - return t.goAway -} diff --git a/vendor/google.golang.org/grpc/transport/http2_server.go b/vendor/google.golang.org/grpc/transport/http2_server.go deleted file mode 100644 index 97b214c..0000000 --- a/vendor/google.golang.org/grpc/transport/http2_server.go +++ /dev/null @@ -1,1210 +0,0 @@ -/* - * - * Copyright 2014 gRPC authors. - * - * 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 transport - -import ( - "bytes" - "errors" - "fmt" - "io" - "math" - "math/rand" - "net" - "strconv" - "sync" - "sync/atomic" - "time" - - "github.com/golang/protobuf/proto" - "golang.org/x/net/context" - "golang.org/x/net/http2" - "golang.org/x/net/http2/hpack" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/credentials" - "google.golang.org/grpc/keepalive" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/peer" - "google.golang.org/grpc/stats" - "google.golang.org/grpc/status" - "google.golang.org/grpc/tap" -) - -// ErrIllegalHeaderWrite indicates that setting header is illegal because of -// the stream's state. -var ErrIllegalHeaderWrite = errors.New("transport: the stream is done or WriteHeader was already called") - -// http2Server implements the ServerTransport interface with HTTP2. -type http2Server struct { - ctx context.Context - cancel context.CancelFunc - conn net.Conn - remoteAddr net.Addr - localAddr net.Addr - maxStreamID uint32 // max stream ID ever seen - authInfo credentials.AuthInfo // auth info about the connection - inTapHandle tap.ServerInHandle - framer *framer - hBuf *bytes.Buffer // the buffer for HPACK encoding - hEnc *hpack.Encoder // HPACK encoder - // The max number of concurrent streams. - maxStreams uint32 - // controlBuf delivers all the control related tasks (e.g., window - // updates, reset streams, and various settings) to the controller. - controlBuf *controlBuffer - fc *inFlow - // sendQuotaPool provides flow control to outbound message. - sendQuotaPool *quotaPool - // localSendQuota limits the amount of data that can be scheduled - // for writing before it is actually written out. - localSendQuota *quotaPool - stats stats.Handler - // Flag to keep track of reading activity on transport. - // 1 is true and 0 is false. - activity uint32 // Accessed atomically. - // Keepalive and max-age parameters for the server. - kp keepalive.ServerParameters - - // Keepalive enforcement policy. - kep keepalive.EnforcementPolicy - // The time instance last ping was received. - lastPingAt time.Time - // Number of times the client has violated keepalive ping policy so far. - pingStrikes uint8 - // Flag to signify that number of ping strikes should be reset to 0. - // This is set whenever data or header frames are sent. - // 1 means yes. - resetPingStrikes uint32 // Accessed atomically. - initialWindowSize int32 - bdpEst *bdpEstimator - - mu sync.Mutex // guard the following - - // drainChan is initialized when drain(...) is called the first time. - // After which the server writes out the first GoAway(with ID 2^31-1) frame. - // Then an independent goroutine will be launched to later send the second GoAway. - // During this time we don't want to write another first GoAway(with ID 2^31 -1) frame. - // Thus call to drain(...) will be a no-op if drainChan is already initialized since draining is - // already underway. - drainChan chan struct{} - state transportState - activeStreams map[uint32]*Stream - // the per-stream outbound flow control window size set by the peer. - streamSendQuota uint32 - // idle is the time instant when the connection went idle. - // This is either the beginning of the connection or when the number of - // RPCs go down to 0. - // When the connection is busy, this value is set to 0. - idle time.Time -} - -// newHTTP2Server constructs a ServerTransport based on HTTP2. ConnectionError is -// returned if something goes wrong. -func newHTTP2Server(conn net.Conn, config *ServerConfig) (_ ServerTransport, err error) { - writeBufSize := defaultWriteBufSize - if config.WriteBufferSize > 0 { - writeBufSize = config.WriteBufferSize - } - readBufSize := defaultReadBufSize - if config.ReadBufferSize > 0 { - readBufSize = config.ReadBufferSize - } - framer := newFramer(conn, writeBufSize, readBufSize) - // Send initial settings as connection preface to client. - var isettings []http2.Setting - // TODO(zhaoq): Have a better way to signal "no limit" because 0 is - // permitted in the HTTP2 spec. - maxStreams := config.MaxStreams - if maxStreams == 0 { - maxStreams = math.MaxUint32 - } else { - isettings = append(isettings, http2.Setting{ - ID: http2.SettingMaxConcurrentStreams, - Val: maxStreams, - }) - } - dynamicWindow := true - iwz := int32(initialWindowSize) - if config.InitialWindowSize >= defaultWindowSize { - iwz = config.InitialWindowSize - dynamicWindow = false - } - icwz := int32(initialWindowSize) - if config.InitialConnWindowSize >= defaultWindowSize { - icwz = config.InitialConnWindowSize - dynamicWindow = false - } - if iwz != defaultWindowSize { - isettings = append(isettings, http2.Setting{ - ID: http2.SettingInitialWindowSize, - Val: uint32(iwz)}) - } - if err := framer.fr.WriteSettings(isettings...); err != nil { - return nil, connectionErrorf(false, err, "transport: %v", err) - } - // Adjust the connection flow control window if needed. - if delta := uint32(icwz - defaultWindowSize); delta > 0 { - if err := framer.fr.WriteWindowUpdate(0, delta); err != nil { - return nil, connectionErrorf(false, err, "transport: %v", err) - } - } - kp := config.KeepaliveParams - if kp.MaxConnectionIdle == 0 { - kp.MaxConnectionIdle = defaultMaxConnectionIdle - } - if kp.MaxConnectionAge == 0 { - kp.MaxConnectionAge = defaultMaxConnectionAge - } - // Add a jitter to MaxConnectionAge. - kp.MaxConnectionAge += getJitter(kp.MaxConnectionAge) - if kp.MaxConnectionAgeGrace == 0 { - kp.MaxConnectionAgeGrace = defaultMaxConnectionAgeGrace - } - if kp.Time == 0 { - kp.Time = defaultServerKeepaliveTime - } - if kp.Timeout == 0 { - kp.Timeout = defaultServerKeepaliveTimeout - } - kep := config.KeepalivePolicy - if kep.MinTime == 0 { - kep.MinTime = defaultKeepalivePolicyMinTime - } - var buf bytes.Buffer - ctx, cancel := context.WithCancel(context.Background()) - t := &http2Server{ - ctx: ctx, - cancel: cancel, - conn: conn, - remoteAddr: conn.RemoteAddr(), - localAddr: conn.LocalAddr(), - authInfo: config.AuthInfo, - framer: framer, - hBuf: &buf, - hEnc: hpack.NewEncoder(&buf), - maxStreams: maxStreams, - inTapHandle: config.InTapHandle, - controlBuf: newControlBuffer(), - fc: &inFlow{limit: uint32(icwz)}, - sendQuotaPool: newQuotaPool(defaultWindowSize), - localSendQuota: newQuotaPool(defaultLocalSendQuota), - state: reachable, - activeStreams: make(map[uint32]*Stream), - streamSendQuota: defaultWindowSize, - stats: config.StatsHandler, - kp: kp, - idle: time.Now(), - kep: kep, - initialWindowSize: iwz, - } - if dynamicWindow { - t.bdpEst = &bdpEstimator{ - bdp: initialWindowSize, - updateFlowControl: t.updateFlowControl, - } - } - if t.stats != nil { - t.ctx = t.stats.TagConn(t.ctx, &stats.ConnTagInfo{ - RemoteAddr: t.remoteAddr, - LocalAddr: t.localAddr, - }) - connBegin := &stats.ConnBegin{} - t.stats.HandleConn(t.ctx, connBegin) - } - t.framer.writer.Flush() - - defer func() { - if err != nil { - t.Close() - } - }() - - // Check the validity of client preface. - preface := make([]byte, len(clientPreface)) - if _, err := io.ReadFull(t.conn, preface); err != nil { - return nil, connectionErrorf(false, err, "transport: http2Server.HandleStreams failed to receive the preface from client: %v", err) - } - if !bytes.Equal(preface, clientPreface) { - return nil, connectionErrorf(false, nil, "transport: http2Server.HandleStreams received bogus greeting from client: %q", preface) - } - - frame, err := t.framer.fr.ReadFrame() - if err == io.EOF || err == io.ErrUnexpectedEOF { - return nil, err - } - if err != nil { - return nil, connectionErrorf(false, err, "transport: http2Server.HandleStreams failed to read initial settings frame: %v", err) - } - atomic.StoreUint32(&t.activity, 1) - sf, ok := frame.(*http2.SettingsFrame) - if !ok { - return nil, connectionErrorf(false, nil, "transport: http2Server.HandleStreams saw invalid preface type %T from client", frame) - } - t.handleSettings(sf) - - go func() { - loopyWriter(t.ctx, t.controlBuf, t.itemHandler) - t.conn.Close() - }() - go t.keepalive() - return t, nil -} - -// operateHeader takes action on the decoded headers. -func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func(*Stream), traceCtx func(context.Context, string) context.Context) (close bool) { - streamID := frame.Header().StreamID - - var state decodeState - for _, hf := range frame.Fields { - if err := state.processHeaderField(hf); err != nil { - if se, ok := err.(StreamError); ok { - t.controlBuf.put(&resetStream{streamID, statusCodeConvTab[se.Code]}) - } - return - } - } - - buf := newRecvBuffer() - s := &Stream{ - id: streamID, - st: t, - buf: buf, - fc: &inFlow{limit: uint32(t.initialWindowSize)}, - recvCompress: state.encoding, - method: state.method, - contentSubtype: state.contentSubtype, - } - - if frame.StreamEnded() { - // s is just created by the caller. No lock needed. - s.state = streamReadDone - } - if state.timeoutSet { - s.ctx, s.cancel = context.WithTimeout(t.ctx, state.timeout) - } else { - s.ctx, s.cancel = context.WithCancel(t.ctx) - } - pr := &peer.Peer{ - Addr: t.remoteAddr, - } - // Attach Auth info if there is any. - if t.authInfo != nil { - pr.AuthInfo = t.authInfo - } - s.ctx = peer.NewContext(s.ctx, pr) - // Attach the received metadata to the context. - if len(state.mdata) > 0 { - s.ctx = metadata.NewIncomingContext(s.ctx, state.mdata) - } - if state.statsTags != nil { - s.ctx = stats.SetIncomingTags(s.ctx, state.statsTags) - } - if state.statsTrace != nil { - s.ctx = stats.SetIncomingTrace(s.ctx, state.statsTrace) - } - if t.inTapHandle != nil { - var err error - info := &tap.Info{ - FullMethodName: state.method, - } - s.ctx, err = t.inTapHandle(s.ctx, info) - if err != nil { - warningf("transport: http2Server.operateHeaders got an error from InTapHandle: %v", err) - t.controlBuf.put(&resetStream{s.id, http2.ErrCodeRefusedStream}) - return - } - } - t.mu.Lock() - if t.state != reachable { - t.mu.Unlock() - return - } - if uint32(len(t.activeStreams)) >= t.maxStreams { - t.mu.Unlock() - t.controlBuf.put(&resetStream{streamID, http2.ErrCodeRefusedStream}) - return - } - if streamID%2 != 1 || streamID <= t.maxStreamID { - t.mu.Unlock() - // illegal gRPC stream id. - errorf("transport: http2Server.HandleStreams received an illegal stream id: %v", streamID) - return true - } - t.maxStreamID = streamID - s.sendQuotaPool = newQuotaPool(int(t.streamSendQuota)) - t.activeStreams[streamID] = s - if len(t.activeStreams) == 1 { - t.idle = time.Time{} - } - t.mu.Unlock() - s.requestRead = func(n int) { - t.adjustWindow(s, uint32(n)) - } - s.ctx = traceCtx(s.ctx, s.method) - if t.stats != nil { - s.ctx = t.stats.TagRPC(s.ctx, &stats.RPCTagInfo{FullMethodName: s.method}) - inHeader := &stats.InHeader{ - FullMethod: s.method, - RemoteAddr: t.remoteAddr, - LocalAddr: t.localAddr, - Compression: s.recvCompress, - WireLength: int(frame.Header().Length), - } - t.stats.HandleRPC(s.ctx, inHeader) - } - s.trReader = &transportReader{ - reader: &recvBufferReader{ - ctx: s.ctx, - recv: s.buf, - }, - windowHandler: func(n int) { - t.updateWindow(s, uint32(n)) - }, - } - s.waiters = waiters{ - ctx: s.ctx, - tctx: t.ctx, - } - handle(s) - return -} - -// HandleStreams receives incoming streams using the given handler. This is -// typically run in a separate goroutine. -// traceCtx attaches trace to ctx and returns the new context. -func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context.Context, string) context.Context) { - for { - frame, err := t.framer.fr.ReadFrame() - atomic.StoreUint32(&t.activity, 1) - if err != nil { - if se, ok := err.(http2.StreamError); ok { - t.mu.Lock() - s := t.activeStreams[se.StreamID] - t.mu.Unlock() - if s != nil { - t.closeStream(s) - } - t.controlBuf.put(&resetStream{se.StreamID, se.Code}) - continue - } - if err == io.EOF || err == io.ErrUnexpectedEOF { - t.Close() - return - } - warningf("transport: http2Server.HandleStreams failed to read frame: %v", err) - t.Close() - return - } - switch frame := frame.(type) { - case *http2.MetaHeadersFrame: - if t.operateHeaders(frame, handle, traceCtx) { - t.Close() - break - } - case *http2.DataFrame: - t.handleData(frame) - case *http2.RSTStreamFrame: - t.handleRSTStream(frame) - case *http2.SettingsFrame: - t.handleSettings(frame) - case *http2.PingFrame: - t.handlePing(frame) - case *http2.WindowUpdateFrame: - t.handleWindowUpdate(frame) - case *http2.GoAwayFrame: - // TODO: Handle GoAway from the client appropriately. - default: - errorf("transport: http2Server.HandleStreams found unhandled frame type %v.", frame) - } - } -} - -func (t *http2Server) getStream(f http2.Frame) (*Stream, bool) { - t.mu.Lock() - defer t.mu.Unlock() - if t.activeStreams == nil { - // The transport is closing. - return nil, false - } - s, ok := t.activeStreams[f.Header().StreamID] - if !ok { - // The stream is already done. - return nil, false - } - return s, true -} - -// adjustWindow sends out extra window update over the initial window size -// of stream if the application is requesting data larger in size than -// the window. -func (t *http2Server) adjustWindow(s *Stream, n uint32) { - s.mu.Lock() - defer s.mu.Unlock() - if s.state == streamDone { - return - } - if w := s.fc.maybeAdjust(n); w > 0 { - if cw := t.fc.resetPendingUpdate(); cw > 0 { - t.controlBuf.put(&windowUpdate{0, cw}) - } - t.controlBuf.put(&windowUpdate{s.id, w}) - } -} - -// updateWindow adjusts the inbound quota for the stream and the transport. -// Window updates will deliver to the controller for sending when -// the cumulative quota exceeds the corresponding threshold. -func (t *http2Server) updateWindow(s *Stream, n uint32) { - s.mu.Lock() - defer s.mu.Unlock() - if s.state == streamDone { - return - } - if w := s.fc.onRead(n); w > 0 { - if cw := t.fc.resetPendingUpdate(); cw > 0 { - t.controlBuf.put(&windowUpdate{0, cw}) - } - t.controlBuf.put(&windowUpdate{s.id, w}) - } -} - -// updateFlowControl updates the incoming flow control windows -// for the transport and the stream based on the current bdp -// estimation. -func (t *http2Server) updateFlowControl(n uint32) { - t.mu.Lock() - for _, s := range t.activeStreams { - s.fc.newLimit(n) - } - t.initialWindowSize = int32(n) - t.mu.Unlock() - t.controlBuf.put(&windowUpdate{0, t.fc.newLimit(n)}) - t.controlBuf.put(&settings{ - ss: []http2.Setting{ - { - ID: http2.SettingInitialWindowSize, - Val: uint32(n), - }, - }, - }) - -} - -func (t *http2Server) handleData(f *http2.DataFrame) { - size := f.Header().Length - var sendBDPPing bool - if t.bdpEst != nil { - sendBDPPing = t.bdpEst.add(uint32(size)) - } - // Decouple connection's flow control from application's read. - // An update on connection's flow control should not depend on - // whether user application has read the data or not. Such a - // restriction is already imposed on the stream's flow control, - // and therefore the sender will be blocked anyways. - // Decoupling the connection flow control will prevent other - // active(fast) streams from starving in presence of slow or - // inactive streams. - // - // Furthermore, if a bdpPing is being sent out we can piggyback - // connection's window update for the bytes we just received. - if sendBDPPing { - if size != 0 { // Could be an empty frame. - t.controlBuf.put(&windowUpdate{0, uint32(size)}) - } - t.controlBuf.put(bdpPing) - } else { - if err := t.fc.onData(uint32(size)); err != nil { - errorf("transport: http2Server %v", err) - t.Close() - return - } - if w := t.fc.onRead(uint32(size)); w > 0 { - t.controlBuf.put(&windowUpdate{0, w}) - } - } - // Select the right stream to dispatch. - s, ok := t.getStream(f) - if !ok { - return - } - if size > 0 { - s.mu.Lock() - if s.state == streamDone { - s.mu.Unlock() - return - } - if err := s.fc.onData(uint32(size)); err != nil { - s.mu.Unlock() - t.closeStream(s) - t.controlBuf.put(&resetStream{s.id, http2.ErrCodeFlowControl}) - return - } - if f.Header().Flags.Has(http2.FlagDataPadded) { - if w := s.fc.onRead(uint32(size) - uint32(len(f.Data()))); w > 0 { - t.controlBuf.put(&windowUpdate{s.id, w}) - } - } - s.mu.Unlock() - // TODO(bradfitz, zhaoq): A copy is required here because there is no - // guarantee f.Data() is consumed before the arrival of next frame. - // Can this copy be eliminated? - if len(f.Data()) > 0 { - data := make([]byte, len(f.Data())) - copy(data, f.Data()) - s.write(recvMsg{data: data}) - } - } - if f.Header().Flags.Has(http2.FlagDataEndStream) { - // Received the end of stream from the client. - s.mu.Lock() - if s.state != streamDone { - s.state = streamReadDone - } - s.mu.Unlock() - s.write(recvMsg{err: io.EOF}) - } -} - -func (t *http2Server) handleRSTStream(f *http2.RSTStreamFrame) { - s, ok := t.getStream(f) - if !ok { - return - } - t.closeStream(s) -} - -func (t *http2Server) handleSettings(f *http2.SettingsFrame) { - if f.IsAck() { - return - } - var rs []http2.Setting - var ps []http2.Setting - f.ForeachSetting(func(s http2.Setting) error { - if t.isRestrictive(s) { - rs = append(rs, s) - } else { - ps = append(ps, s) - } - return nil - }) - t.applySettings(rs) - t.controlBuf.put(&settingsAck{}) - t.applySettings(ps) -} - -func (t *http2Server) isRestrictive(s http2.Setting) bool { - switch s.ID { - case http2.SettingInitialWindowSize: - // Note: we don't acquire a lock here to read streamSendQuota - // because the same goroutine updates it later. - return s.Val < t.streamSendQuota - } - return false -} - -func (t *http2Server) applySettings(ss []http2.Setting) { - for _, s := range ss { - if s.ID == http2.SettingInitialWindowSize { - t.mu.Lock() - for _, stream := range t.activeStreams { - stream.sendQuotaPool.addAndUpdate(int(s.Val) - int(t.streamSendQuota)) - } - t.streamSendQuota = s.Val - t.mu.Unlock() - } - - } -} - -const ( - maxPingStrikes = 2 - defaultPingTimeout = 2 * time.Hour -) - -func (t *http2Server) handlePing(f *http2.PingFrame) { - if f.IsAck() { - if f.Data == goAwayPing.data && t.drainChan != nil { - close(t.drainChan) - return - } - // Maybe it's a BDP ping. - if t.bdpEst != nil { - t.bdpEst.calculate(f.Data) - } - return - } - pingAck := &ping{ack: true} - copy(pingAck.data[:], f.Data[:]) - t.controlBuf.put(pingAck) - - now := time.Now() - defer func() { - t.lastPingAt = now - }() - // A reset ping strikes means that we don't need to check for policy - // violation for this ping and the pingStrikes counter should be set - // to 0. - if atomic.CompareAndSwapUint32(&t.resetPingStrikes, 1, 0) { - t.pingStrikes = 0 - return - } - t.mu.Lock() - ns := len(t.activeStreams) - t.mu.Unlock() - if ns < 1 && !t.kep.PermitWithoutStream { - // Keepalive shouldn't be active thus, this new ping should - // have come after at least defaultPingTimeout. - if t.lastPingAt.Add(defaultPingTimeout).After(now) { - t.pingStrikes++ - } - } else { - // Check if keepalive policy is respected. - if t.lastPingAt.Add(t.kep.MinTime).After(now) { - t.pingStrikes++ - } - } - - if t.pingStrikes > maxPingStrikes { - // Send goaway and close the connection. - errorf("transport: Got too many pings from the client, closing the connection.") - t.controlBuf.put(&goAway{code: http2.ErrCodeEnhanceYourCalm, debugData: []byte("too_many_pings"), closeConn: true}) - } -} - -func (t *http2Server) handleWindowUpdate(f *http2.WindowUpdateFrame) { - id := f.Header().StreamID - incr := f.Increment - if id == 0 { - t.sendQuotaPool.add(int(incr)) - return - } - if s, ok := t.getStream(f); ok { - s.sendQuotaPool.add(int(incr)) - } -} - -// WriteHeader sends the header metedata md back to the client. -func (t *http2Server) WriteHeader(s *Stream, md metadata.MD) error { - select { - case <-s.ctx.Done(): - return ContextErr(s.ctx.Err()) - case <-t.ctx.Done(): - return ErrConnClosing - default: - } - - s.mu.Lock() - if s.headerOk || s.state == streamDone { - s.mu.Unlock() - return ErrIllegalHeaderWrite - } - s.headerOk = true - if md.Len() > 0 { - if s.header.Len() > 0 { - s.header = metadata.Join(s.header, md) - } else { - s.header = md - } - } - md = s.header - s.mu.Unlock() - // TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields - // first and create a slice of that exact size. - headerFields := make([]hpack.HeaderField, 0, 2) // at least :status, content-type will be there if none else. - headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"}) - headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: contentType(s.contentSubtype)}) - if s.sendCompress != "" { - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress}) - } - for k, vv := range md { - if isReservedHeader(k) { - // Clients don't tolerate reading restricted headers after some non restricted ones were sent. - continue - } - for _, v := range vv { - headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) - } - } - t.controlBuf.put(&headerFrame{ - streamID: s.id, - hf: headerFields, - endStream: false, - }) - if t.stats != nil { - // Note: WireLength is not set in outHeader. - // TODO(mmukhi): Revisit this later, if needed. - outHeader := &stats.OutHeader{} - t.stats.HandleRPC(s.Context(), outHeader) - } - return nil -} - -// WriteStatus sends stream status to the client and terminates the stream. -// There is no further I/O operations being able to perform on this stream. -// TODO(zhaoq): Now it indicates the end of entire stream. Revisit if early -// OK is adopted. -func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { - select { - case <-t.ctx.Done(): - return ErrConnClosing - default: - } - - var headersSent, hasHeader bool - s.mu.Lock() - if s.state == streamDone { - s.mu.Unlock() - return nil - } - if s.headerOk { - headersSent = true - } - if s.header.Len() > 0 { - hasHeader = true - } - s.mu.Unlock() - - if !headersSent && hasHeader { - t.WriteHeader(s, nil) - headersSent = true - } - - // TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields - // first and create a slice of that exact size. - headerFields := make([]hpack.HeaderField, 0, 2) // grpc-status and grpc-message will be there if none else. - if !headersSent { - headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"}) - headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: contentType(s.contentSubtype)}) - } - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status", Value: strconv.Itoa(int(st.Code()))}) - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-message", Value: encodeGrpcMessage(st.Message())}) - - if p := st.Proto(); p != nil && len(p.Details) > 0 { - stBytes, err := proto.Marshal(p) - if err != nil { - // TODO: return error instead, when callers are able to handle it. - panic(err) - } - - headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status-details-bin", Value: encodeBinHeader(stBytes)}) - } - - // Attach the trailer metadata. - for k, vv := range s.trailer { - // Clients don't tolerate reading restricted headers after some non restricted ones were sent. - if isReservedHeader(k) { - continue - } - for _, v := range vv { - headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)}) - } - } - t.controlBuf.put(&headerFrame{ - streamID: s.id, - hf: headerFields, - endStream: true, - }) - if t.stats != nil { - t.stats.HandleRPC(s.Context(), &stats.OutTrailer{}) - } - t.closeStream(s) - return nil -} - -// Write converts the data into HTTP2 data frame and sends it out. Non-nil error -// is returns if it fails (e.g., framing error, transport error). -func (t *http2Server) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { - select { - case <-s.ctx.Done(): - return ContextErr(s.ctx.Err()) - case <-t.ctx.Done(): - return ErrConnClosing - default: - } - - var writeHeaderFrame bool - s.mu.Lock() - if !s.headerOk { - writeHeaderFrame = true - } - s.mu.Unlock() - if writeHeaderFrame { - t.WriteHeader(s, nil) - } - // Add data to header frame so that we can equally distribute data across frames. - emptyLen := http2MaxFrameLen - len(hdr) - if emptyLen > len(data) { - emptyLen = len(data) - } - hdr = append(hdr, data[:emptyLen]...) - data = data[emptyLen:] - var ( - streamQuota int - streamQuotaVer uint32 - err error - ) - for _, r := range [][]byte{hdr, data} { - for len(r) > 0 { - size := http2MaxFrameLen - if size > len(r) { - size = len(r) - } - if streamQuota == 0 { // Used up all the locally cached stream quota. - // Get all the stream quota there is. - streamQuota, streamQuotaVer, err = s.sendQuotaPool.get(math.MaxInt32, s.waiters) - if err != nil { - return err - } - } - if size > streamQuota { - size = streamQuota - } - // Get size worth quota from transport. - tq, _, err := t.sendQuotaPool.get(size, s.waiters) - if err != nil { - return err - } - if tq < size { - size = tq - } - ltq, _, err := t.localSendQuota.get(size, s.waiters) - if err != nil { - // Add the acquired quota back to transport. - t.sendQuotaPool.add(tq) - return err - } - // even if ltq is smaller than size we don't adjust size since, - // ltq is only a soft limit. - streamQuota -= size - p := r[:size] - success := func() { - ltq := ltq - t.controlBuf.put(&dataFrame{streamID: s.id, endStream: false, d: p, f: func() { - t.localSendQuota.add(ltq) - }}) - r = r[size:] - } - failure := func() { // The stream quota version must have changed. - // Our streamQuota cache is invalidated now, so give it back. - s.sendQuotaPool.lockedAdd(streamQuota + size) - } - if !s.sendQuotaPool.compareAndExecute(streamQuotaVer, success, failure) { - // Couldn't send this chunk out. - t.sendQuotaPool.add(size) - t.localSendQuota.add(ltq) - streamQuota = 0 - } - } - } - if streamQuota > 0 { - // ADd the left over quota back to stream. - s.sendQuotaPool.add(streamQuota) - } - return nil -} - -// keepalive running in a separate goroutine does the following: -// 1. Gracefully closes an idle connection after a duration of keepalive.MaxConnectionIdle. -// 2. Gracefully closes any connection after a duration of keepalive.MaxConnectionAge. -// 3. Forcibly closes a connection after an additive period of keepalive.MaxConnectionAgeGrace over keepalive.MaxConnectionAge. -// 4. Makes sure a connection is alive by sending pings with a frequency of keepalive.Time and closes a non-responsive connection -// after an additional duration of keepalive.Timeout. -func (t *http2Server) keepalive() { - p := &ping{} - var pingSent bool - maxIdle := time.NewTimer(t.kp.MaxConnectionIdle) - maxAge := time.NewTimer(t.kp.MaxConnectionAge) - keepalive := time.NewTimer(t.kp.Time) - // NOTE: All exit paths of this function should reset their - // respective timers. A failure to do so will cause the - // following clean-up to deadlock and eventually leak. - defer func() { - if !maxIdle.Stop() { - <-maxIdle.C - } - if !maxAge.Stop() { - <-maxAge.C - } - if !keepalive.Stop() { - <-keepalive.C - } - }() - for { - select { - case <-maxIdle.C: - t.mu.Lock() - idle := t.idle - if idle.IsZero() { // The connection is non-idle. - t.mu.Unlock() - maxIdle.Reset(t.kp.MaxConnectionIdle) - continue - } - val := t.kp.MaxConnectionIdle - time.Since(idle) - t.mu.Unlock() - if val <= 0 { - // The connection has been idle for a duration of keepalive.MaxConnectionIdle or more. - // Gracefully close the connection. - t.drain(http2.ErrCodeNo, []byte{}) - // Reseting the timer so that the clean-up doesn't deadlock. - maxIdle.Reset(infinity) - return - } - maxIdle.Reset(val) - case <-maxAge.C: - t.drain(http2.ErrCodeNo, []byte{}) - maxAge.Reset(t.kp.MaxConnectionAgeGrace) - select { - case <-maxAge.C: - // Close the connection after grace period. - t.Close() - // Reseting the timer so that the clean-up doesn't deadlock. - maxAge.Reset(infinity) - case <-t.ctx.Done(): - } - return - case <-keepalive.C: - if atomic.CompareAndSwapUint32(&t.activity, 1, 0) { - pingSent = false - keepalive.Reset(t.kp.Time) - continue - } - if pingSent { - t.Close() - // Reseting the timer so that the clean-up doesn't deadlock. - keepalive.Reset(infinity) - return - } - pingSent = true - t.controlBuf.put(p) - keepalive.Reset(t.kp.Timeout) - case <-t.ctx.Done(): - return - } - } -} - -var goAwayPing = &ping{data: [8]byte{1, 6, 1, 8, 0, 3, 3, 9}} - -// TODO(mmukhi): A lot of this code(and code in other places in the tranpsort layer) -// is duplicated between the client and the server. -// The transport layer needs to be refactored to take care of this. -func (t *http2Server) itemHandler(i item) error { - switch i := i.(type) { - case *dataFrame: - // Reset ping strikes when sending data since this might cause - // the peer to send ping. - atomic.StoreUint32(&t.resetPingStrikes, 1) - if err := t.framer.fr.WriteData(i.streamID, i.endStream, i.d); err != nil { - return err - } - i.f() - return nil - case *headerFrame: - t.hBuf.Reset() - for _, f := range i.hf { - t.hEnc.WriteField(f) - } - first := true - endHeaders := false - for !endHeaders { - size := t.hBuf.Len() - if size > http2MaxFrameLen { - size = http2MaxFrameLen - } else { - endHeaders = true - } - var err error - if first { - first = false - err = t.framer.fr.WriteHeaders(http2.HeadersFrameParam{ - StreamID: i.streamID, - BlockFragment: t.hBuf.Next(size), - EndStream: i.endStream, - EndHeaders: endHeaders, - }) - } else { - err = t.framer.fr.WriteContinuation( - i.streamID, - endHeaders, - t.hBuf.Next(size), - ) - } - if err != nil { - return err - } - } - atomic.StoreUint32(&t.resetPingStrikes, 1) - return nil - case *windowUpdate: - return t.framer.fr.WriteWindowUpdate(i.streamID, i.increment) - case *settings: - return t.framer.fr.WriteSettings(i.ss...) - case *settingsAck: - return t.framer.fr.WriteSettingsAck() - case *resetStream: - return t.framer.fr.WriteRSTStream(i.streamID, i.code) - case *goAway: - t.mu.Lock() - if t.state == closing { - t.mu.Unlock() - // The transport is closing. - return fmt.Errorf("transport: Connection closing") - } - sid := t.maxStreamID - if !i.headsUp { - // Stop accepting more streams now. - t.state = draining - if len(t.activeStreams) == 0 { - i.closeConn = true - } - t.mu.Unlock() - if err := t.framer.fr.WriteGoAway(sid, i.code, i.debugData); err != nil { - return err - } - if i.closeConn { - // Abruptly close the connection following the GoAway (via - // loopywriter). But flush out what's inside the buffer first. - t.controlBuf.put(&flushIO{closeTr: true}) - } - return nil - } - t.mu.Unlock() - // For a graceful close, send out a GoAway with stream ID of MaxUInt32, - // Follow that with a ping and wait for the ack to come back or a timer - // to expire. During this time accept new streams since they might have - // originated before the GoAway reaches the client. - // After getting the ack or timer expiration send out another GoAway this - // time with an ID of the max stream server intends to process. - if err := t.framer.fr.WriteGoAway(math.MaxUint32, http2.ErrCodeNo, []byte{}); err != nil { - return err - } - if err := t.framer.fr.WritePing(false, goAwayPing.data); err != nil { - return err - } - go func() { - timer := time.NewTimer(time.Minute) - defer timer.Stop() - select { - case <-t.drainChan: - case <-timer.C: - case <-t.ctx.Done(): - return - } - t.controlBuf.put(&goAway{code: i.code, debugData: i.debugData}) - }() - return nil - case *flushIO: - if err := t.framer.writer.Flush(); err != nil { - return err - } - if i.closeTr { - return ErrConnClosing - } - return nil - case *ping: - if !i.ack { - t.bdpEst.timesnap(i.data) - } - return t.framer.fr.WritePing(i.ack, i.data) - default: - err := status.Errorf(codes.Internal, "transport: http2Server.controller got unexpected item type %t", i) - errorf("%v", err) - return err - } -} - -// Close starts shutting down the http2Server transport. -// TODO(zhaoq): Now the destruction is not blocked on any pending streams. This -// could cause some resource issue. Revisit this later. -func (t *http2Server) Close() error { - t.mu.Lock() - if t.state == closing { - t.mu.Unlock() - return errors.New("transport: Close() was already called") - } - t.state = closing - streams := t.activeStreams - t.activeStreams = nil - t.mu.Unlock() - t.cancel() - err := t.conn.Close() - // Cancel all active streams. - for _, s := range streams { - s.cancel() - } - if t.stats != nil { - connEnd := &stats.ConnEnd{} - t.stats.HandleConn(t.ctx, connEnd) - } - return err -} - -// closeStream clears the footprint of a stream when the stream is not needed -// any more. -func (t *http2Server) closeStream(s *Stream) { - t.mu.Lock() - delete(t.activeStreams, s.id) - if len(t.activeStreams) == 0 { - t.idle = time.Now() - } - if t.state == draining && len(t.activeStreams) == 0 { - defer t.controlBuf.put(&flushIO{closeTr: true}) - } - t.mu.Unlock() - // In case stream sending and receiving are invoked in separate - // goroutines (e.g., bi-directional streaming), cancel needs to be - // called to interrupt the potential blocking on other goroutines. - s.cancel() - s.mu.Lock() - if s.state == streamDone { - s.mu.Unlock() - return - } - s.state = streamDone - s.mu.Unlock() -} - -func (t *http2Server) RemoteAddr() net.Addr { - return t.remoteAddr -} - -func (t *http2Server) Drain() { - t.drain(http2.ErrCodeNo, []byte{}) -} - -func (t *http2Server) drain(code http2.ErrCode, debugData []byte) { - t.mu.Lock() - defer t.mu.Unlock() - if t.drainChan != nil { - return - } - t.drainChan = make(chan struct{}) - t.controlBuf.put(&goAway{code: code, debugData: debugData, headsUp: true}) -} - -var rgen = rand.New(rand.NewSource(time.Now().UnixNano())) - -func getJitter(v time.Duration) time.Duration { - if v == infinity { - return 0 - } - // Generate a jitter between +/- 10% of the value. - r := int64(v / 10) - j := rgen.Int63n(2*r) - r - return time.Duration(j) -} diff --git a/vendor/google.golang.org/grpc/transport/http_util.go b/vendor/google.golang.org/grpc/transport/http_util.go deleted file mode 100644 index de37e38..0000000 --- a/vendor/google.golang.org/grpc/transport/http_util.go +++ /dev/null @@ -1,530 +0,0 @@ -/* - * - * Copyright 2014 gRPC authors. - * - * 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 transport - -import ( - "bufio" - "bytes" - "encoding/base64" - "fmt" - "io" - "net" - "net/http" - "strconv" - "strings" - "time" - - "github.com/golang/protobuf/proto" - "golang.org/x/net/http2" - "golang.org/x/net/http2/hpack" - spb "google.golang.org/genproto/googleapis/rpc/status" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -const ( - // http2MaxFrameLen specifies the max length of a HTTP2 frame. - http2MaxFrameLen = 16384 // 16KB frame - // http://http2.github.io/http2-spec/#SettingValues - http2InitHeaderTableSize = 4096 - // http2IOBufSize specifies the buffer size for sending frames. - defaultWriteBufSize = 32 * 1024 - defaultReadBufSize = 32 * 1024 - // baseContentType is the base content-type for gRPC. This is a valid - // content-type on it's own, but can also include a content-subtype such as - // "proto" as a suffix after "+" or ";". See - // https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests - // for more details. - baseContentType = "application/grpc" -) - -var ( - clientPreface = []byte(http2.ClientPreface) - http2ErrConvTab = map[http2.ErrCode]codes.Code{ - http2.ErrCodeNo: codes.Internal, - http2.ErrCodeProtocol: codes.Internal, - http2.ErrCodeInternal: codes.Internal, - http2.ErrCodeFlowControl: codes.ResourceExhausted, - http2.ErrCodeSettingsTimeout: codes.Internal, - http2.ErrCodeStreamClosed: codes.Internal, - http2.ErrCodeFrameSize: codes.Internal, - http2.ErrCodeRefusedStream: codes.Unavailable, - http2.ErrCodeCancel: codes.Canceled, - http2.ErrCodeCompression: codes.Internal, - http2.ErrCodeConnect: codes.Internal, - http2.ErrCodeEnhanceYourCalm: codes.ResourceExhausted, - http2.ErrCodeInadequateSecurity: codes.PermissionDenied, - http2.ErrCodeHTTP11Required: codes.Internal, - } - statusCodeConvTab = map[codes.Code]http2.ErrCode{ - codes.Internal: http2.ErrCodeInternal, - codes.Canceled: http2.ErrCodeCancel, - codes.Unavailable: http2.ErrCodeRefusedStream, - codes.ResourceExhausted: http2.ErrCodeEnhanceYourCalm, - codes.PermissionDenied: http2.ErrCodeInadequateSecurity, - } - httpStatusConvTab = map[int]codes.Code{ - // 400 Bad Request - INTERNAL. - http.StatusBadRequest: codes.Internal, - // 401 Unauthorized - UNAUTHENTICATED. - http.StatusUnauthorized: codes.Unauthenticated, - // 403 Forbidden - PERMISSION_DENIED. - http.StatusForbidden: codes.PermissionDenied, - // 404 Not Found - UNIMPLEMENTED. - http.StatusNotFound: codes.Unimplemented, - // 429 Too Many Requests - UNAVAILABLE. - http.StatusTooManyRequests: codes.Unavailable, - // 502 Bad Gateway - UNAVAILABLE. - http.StatusBadGateway: codes.Unavailable, - // 503 Service Unavailable - UNAVAILABLE. - http.StatusServiceUnavailable: codes.Unavailable, - // 504 Gateway timeout - UNAVAILABLE. - http.StatusGatewayTimeout: codes.Unavailable, - } -) - -// Records the states during HPACK decoding. Must be reset once the -// decoding of the entire headers are finished. -type decodeState struct { - encoding string - // statusGen caches the stream status received from the trailer the server - // sent. Client side only. Do not access directly. After all trailers are - // parsed, use the status method to retrieve the status. - statusGen *status.Status - // rawStatusCode and rawStatusMsg are set from the raw trailer fields and are not - // intended for direct access outside of parsing. - rawStatusCode *int - rawStatusMsg string - httpStatus *int - // Server side only fields. - timeoutSet bool - timeout time.Duration - method string - // key-value metadata map from the peer. - mdata map[string][]string - statsTags []byte - statsTrace []byte - contentSubtype string -} - -// isReservedHeader checks whether hdr belongs to HTTP2 headers -// reserved by gRPC protocol. Any other headers are classified as the -// user-specified metadata. -func isReservedHeader(hdr string) bool { - if hdr != "" && hdr[0] == ':' { - return true - } - switch hdr { - case "content-type", - "grpc-message-type", - "grpc-encoding", - "grpc-message", - "grpc-status", - "grpc-timeout", - "grpc-status-details-bin", - "te": - return true - default: - return false - } -} - -// isWhitelistedPseudoHeader checks whether hdr belongs to HTTP2 pseudoheaders -// that should be propagated into metadata visible to users. -func isWhitelistedPseudoHeader(hdr string) bool { - switch hdr { - case ":authority": - return true - default: - return false - } -} - -// contentSubtype returns the content-subtype for the given content-type. The -// given content-type must be a valid content-type that starts with -// "application/grpc". A content-subtype will follow "application/grpc" after a -// "+" or ";". See -// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for -// more details. -// -// If contentType is not a valid content-type for gRPC, the boolean -// will be false, otherwise true. If content-type == "application/grpc", -// "application/grpc+", or "application/grpc;", the boolean will be true, -// but no content-subtype will be returned. -// -// contentType is assumed to be lowercase already. -func contentSubtype(contentType string) (string, bool) { - if contentType == baseContentType { - return "", true - } - if !strings.HasPrefix(contentType, baseContentType) { - return "", false - } - // guaranteed since != baseContentType and has baseContentType prefix - switch contentType[len(baseContentType)] { - case '+', ';': - // this will return true for "application/grpc+" or "application/grpc;" - // which the previous validContentType function tested to be valid, so we - // just say that no content-subtype is specified in this case - return contentType[len(baseContentType)+1:], true - default: - return "", false - } -} - -// contentSubtype is assumed to be lowercase -func contentType(contentSubtype string) string { - if contentSubtype == "" { - return baseContentType - } - return baseContentType + "+" + contentSubtype -} - -func (d *decodeState) status() *status.Status { - if d.statusGen == nil { - // No status-details were provided; generate status using code/msg. - d.statusGen = status.New(codes.Code(int32(*(d.rawStatusCode))), d.rawStatusMsg) - } - return d.statusGen -} - -const binHdrSuffix = "-bin" - -func encodeBinHeader(v []byte) string { - return base64.RawStdEncoding.EncodeToString(v) -} - -func decodeBinHeader(v string) ([]byte, error) { - if len(v)%4 == 0 { - // Input was padded, or padding was not necessary. - return base64.StdEncoding.DecodeString(v) - } - return base64.RawStdEncoding.DecodeString(v) -} - -func encodeMetadataHeader(k, v string) string { - if strings.HasSuffix(k, binHdrSuffix) { - return encodeBinHeader(([]byte)(v)) - } - return v -} - -func decodeMetadataHeader(k, v string) (string, error) { - if strings.HasSuffix(k, binHdrSuffix) { - b, err := decodeBinHeader(v) - return string(b), err - } - return v, nil -} - -func (d *decodeState) decodeResponseHeader(frame *http2.MetaHeadersFrame) error { - for _, hf := range frame.Fields { - if err := d.processHeaderField(hf); err != nil { - return err - } - } - - // If grpc status exists, no need to check further. - if d.rawStatusCode != nil || d.statusGen != nil { - return nil - } - - // If grpc status doesn't exist and http status doesn't exist, - // then it's a malformed header. - if d.httpStatus == nil { - return streamErrorf(codes.Internal, "malformed header: doesn't contain status(gRPC or HTTP)") - } - - if *(d.httpStatus) != http.StatusOK { - code, ok := httpStatusConvTab[*(d.httpStatus)] - if !ok { - code = codes.Unknown - } - return streamErrorf(code, http.StatusText(*(d.httpStatus))) - } - - // gRPC status doesn't exist and http status is OK. - // Set rawStatusCode to be unknown and return nil error. - // So that, if the stream has ended this Unknown status - // will be propogated to the user. - // Otherwise, it will be ignored. In which case, status from - // a later trailer, that has StreamEnded flag set, is propogated. - code := int(codes.Unknown) - d.rawStatusCode = &code - return nil - -} - -func (d *decodeState) addMetadata(k, v string) { - if d.mdata == nil { - d.mdata = make(map[string][]string) - } - d.mdata[k] = append(d.mdata[k], v) -} - -func (d *decodeState) processHeaderField(f hpack.HeaderField) error { - switch f.Name { - case "content-type": - contentSubtype, validContentType := contentSubtype(f.Value) - if !validContentType { - return streamErrorf(codes.Internal, "transport: received the unexpected content-type %q", f.Value) - } - d.contentSubtype = contentSubtype - // TODO: do we want to propagate the whole content-type in the metadata, - // or come up with a way to just propagate the content-subtype if it was set? - // ie {"content-type": "application/grpc+proto"} or {"content-subtype": "proto"} - // in the metadata? - d.addMetadata(f.Name, f.Value) - case "grpc-encoding": - d.encoding = f.Value - case "grpc-status": - code, err := strconv.Atoi(f.Value) - if err != nil { - return streamErrorf(codes.Internal, "transport: malformed grpc-status: %v", err) - } - d.rawStatusCode = &code - case "grpc-message": - d.rawStatusMsg = decodeGrpcMessage(f.Value) - case "grpc-status-details-bin": - v, err := decodeBinHeader(f.Value) - if err != nil { - return streamErrorf(codes.Internal, "transport: malformed grpc-status-details-bin: %v", err) - } - s := &spb.Status{} - if err := proto.Unmarshal(v, s); err != nil { - return streamErrorf(codes.Internal, "transport: malformed grpc-status-details-bin: %v", err) - } - d.statusGen = status.FromProto(s) - case "grpc-timeout": - d.timeoutSet = true - var err error - if d.timeout, err = decodeTimeout(f.Value); err != nil { - return streamErrorf(codes.Internal, "transport: malformed time-out: %v", err) - } - case ":path": - d.method = f.Value - case ":status": - code, err := strconv.Atoi(f.Value) - if err != nil { - return streamErrorf(codes.Internal, "transport: malformed http-status: %v", err) - } - d.httpStatus = &code - case "grpc-tags-bin": - v, err := decodeBinHeader(f.Value) - if err != nil { - return streamErrorf(codes.Internal, "transport: malformed grpc-tags-bin: %v", err) - } - d.statsTags = v - d.addMetadata(f.Name, string(v)) - case "grpc-trace-bin": - v, err := decodeBinHeader(f.Value) - if err != nil { - return streamErrorf(codes.Internal, "transport: malformed grpc-trace-bin: %v", err) - } - d.statsTrace = v - d.addMetadata(f.Name, string(v)) - default: - if isReservedHeader(f.Name) && !isWhitelistedPseudoHeader(f.Name) { - break - } - v, err := decodeMetadataHeader(f.Name, f.Value) - if err != nil { - errorf("Failed to decode metadata header (%q, %q): %v", f.Name, f.Value, err) - return nil - } - d.addMetadata(f.Name, string(v)) - } - return nil -} - -type timeoutUnit uint8 - -const ( - hour timeoutUnit = 'H' - minute timeoutUnit = 'M' - second timeoutUnit = 'S' - millisecond timeoutUnit = 'm' - microsecond timeoutUnit = 'u' - nanosecond timeoutUnit = 'n' -) - -func timeoutUnitToDuration(u timeoutUnit) (d time.Duration, ok bool) { - switch u { - case hour: - return time.Hour, true - case minute: - return time.Minute, true - case second: - return time.Second, true - case millisecond: - return time.Millisecond, true - case microsecond: - return time.Microsecond, true - case nanosecond: - return time.Nanosecond, true - default: - } - return -} - -const maxTimeoutValue int64 = 100000000 - 1 - -// div does integer division and round-up the result. Note that this is -// equivalent to (d+r-1)/r but has less chance to overflow. -func div(d, r time.Duration) int64 { - if m := d % r; m > 0 { - return int64(d/r + 1) - } - return int64(d / r) -} - -// TODO(zhaoq): It is the simplistic and not bandwidth efficient. Improve it. -func encodeTimeout(t time.Duration) string { - if t <= 0 { - return "0n" - } - if d := div(t, time.Nanosecond); d <= maxTimeoutValue { - return strconv.FormatInt(d, 10) + "n" - } - if d := div(t, time.Microsecond); d <= maxTimeoutValue { - return strconv.FormatInt(d, 10) + "u" - } - if d := div(t, time.Millisecond); d <= maxTimeoutValue { - return strconv.FormatInt(d, 10) + "m" - } - if d := div(t, time.Second); d <= maxTimeoutValue { - return strconv.FormatInt(d, 10) + "S" - } - if d := div(t, time.Minute); d <= maxTimeoutValue { - return strconv.FormatInt(d, 10) + "M" - } - // Note that maxTimeoutValue * time.Hour > MaxInt64. - return strconv.FormatInt(div(t, time.Hour), 10) + "H" -} - -func decodeTimeout(s string) (time.Duration, error) { - size := len(s) - if size < 2 { - return 0, fmt.Errorf("transport: timeout string is too short: %q", s) - } - unit := timeoutUnit(s[size-1]) - d, ok := timeoutUnitToDuration(unit) - if !ok { - return 0, fmt.Errorf("transport: timeout unit is not recognized: %q", s) - } - t, err := strconv.ParseInt(s[:size-1], 10, 64) - if err != nil { - return 0, err - } - return d * time.Duration(t), nil -} - -const ( - spaceByte = ' ' - tildaByte = '~' - percentByte = '%' -) - -// encodeGrpcMessage is used to encode status code in header field -// "grpc-message". -// It checks to see if each individual byte in msg is an -// allowable byte, and then either percent encoding or passing it through. -// When percent encoding, the byte is converted into hexadecimal notation -// with a '%' prepended. -func encodeGrpcMessage(msg string) string { - if msg == "" { - return "" - } - lenMsg := len(msg) - for i := 0; i < lenMsg; i++ { - c := msg[i] - if !(c >= spaceByte && c < tildaByte && c != percentByte) { - return encodeGrpcMessageUnchecked(msg) - } - } - return msg -} - -func encodeGrpcMessageUnchecked(msg string) string { - var buf bytes.Buffer - lenMsg := len(msg) - for i := 0; i < lenMsg; i++ { - c := msg[i] - if c >= spaceByte && c < tildaByte && c != percentByte { - buf.WriteByte(c) - } else { - buf.WriteString(fmt.Sprintf("%%%02X", c)) - } - } - return buf.String() -} - -// decodeGrpcMessage decodes the msg encoded by encodeGrpcMessage. -func decodeGrpcMessage(msg string) string { - if msg == "" { - return "" - } - lenMsg := len(msg) - for i := 0; i < lenMsg; i++ { - if msg[i] == percentByte && i+2 < lenMsg { - return decodeGrpcMessageUnchecked(msg) - } - } - return msg -} - -func decodeGrpcMessageUnchecked(msg string) string { - var buf bytes.Buffer - lenMsg := len(msg) - for i := 0; i < lenMsg; i++ { - c := msg[i] - if c == percentByte && i+2 < lenMsg { - parsed, err := strconv.ParseUint(msg[i+1:i+3], 16, 8) - if err != nil { - buf.WriteByte(c) - } else { - buf.WriteByte(byte(parsed)) - i += 2 - } - } else { - buf.WriteByte(c) - } - } - return buf.String() -} - -type framer struct { - numWriters int32 - reader io.Reader - writer *bufio.Writer - fr *http2.Framer -} - -func newFramer(conn net.Conn, writeBufferSize, readBufferSize int) *framer { - f := &framer{ - reader: bufio.NewReaderSize(conn, readBufferSize), - writer: bufio.NewWriterSize(conn, writeBufferSize), - } - f.fr = http2.NewFramer(f.writer, f.reader) - // Opt-in to Frame reuse API on framer to reduce garbage. - // Frames aren't safe to read from after a subsequent call to ReadFrame. - f.fr.SetReuseFrames() - f.fr.ReadMetaHeaders = hpack.NewDecoder(http2InitHeaderTableSize, nil) - return f -} diff --git a/vendor/google.golang.org/grpc/transport/log.go b/vendor/google.golang.org/grpc/transport/log.go deleted file mode 100644 index ac8e358..0000000 --- a/vendor/google.golang.org/grpc/transport/log.go +++ /dev/null @@ -1,50 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * 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. - * - */ - -// This file contains wrappers for grpclog functions. -// The transport package only logs to verbose level 2 by default. - -package transport - -import "google.golang.org/grpc/grpclog" - -const logLevel = 2 - -func infof(format string, args ...interface{}) { - if grpclog.V(logLevel) { - grpclog.Infof(format, args...) - } -} - -func warningf(format string, args ...interface{}) { - if grpclog.V(logLevel) { - grpclog.Warningf(format, args...) - } -} - -func errorf(format string, args ...interface{}) { - if grpclog.V(logLevel) { - grpclog.Errorf(format, args...) - } -} - -func fatalf(format string, args ...interface{}) { - if grpclog.V(logLevel) { - grpclog.Fatalf(format, args...) - } -} diff --git a/vendor/google.golang.org/grpc/naming/go18.go b/vendor/google.golang.org/grpc/version.go similarity index 76% rename from vendor/google.golang.org/grpc/naming/go18.go rename to vendor/google.golang.org/grpc/version.go index b5a0f84..fe552c3 100644 --- a/vendor/google.golang.org/grpc/naming/go18.go +++ b/vendor/google.golang.org/grpc/version.go @@ -1,8 +1,6 @@ -// +build go1.8 - /* * - * Copyright 2017 gRPC authors. + * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,11 +16,7 @@ * */ -package naming - -import "net" +package grpc -var ( - lookupHost = net.DefaultResolver.LookupHost - lookupSRV = net.DefaultResolver.LookupSRV -) +// Version is the current grpc version. +const Version = "1.53.0" diff --git a/vendor/google.golang.org/grpc/vet.sh b/vendor/google.golang.org/grpc/vet.sh index 2ad94fe..3728aed 100644 --- a/vendor/google.golang.org/grpc/vet.sh +++ b/vendor/google.golang.org/grpc/vet.sh @@ -3,37 +3,61 @@ set -ex # Exit on error; debugging enabled. set -o pipefail # Fail a pipe if any sub-command fails. +# not makes sure the command passed to it does not exit with a return code of 0. +not() { + # This is required instead of the earlier (! $COMMAND) because subshells and + # pipefail don't work the same on Darwin as in Linux. + ! "$@" +} + die() { echo "$@" >&2 exit 1 } -PATH="$GOPATH/bin:$GOROOT/bin:$PATH" +fail_on_output() { + tee /dev/stderr | not read +} + +# Check to make sure it's safe to modify the user's git repo. +git status --porcelain | fail_on_output -# Check proto in manual runs or cron runs. -if [[ "$TRAVIS" != "true" || "$TRAVIS_EVENT_TYPE" = "cron" ]]; then - check_proto="true" -fi +# Undo any edits made by this script. +cleanup() { + git reset --hard HEAD +} +trap cleanup EXIT + +PATH="${HOME}/go/bin:${GOROOT}/bin:${PATH}" +go version -if [ "$1" = "-install" ]; then - go get -d \ - google.golang.org/grpc/... - go get -u \ - github.com/golang/lint/golint \ +if [[ "$1" = "-install" ]]; then + # Install the pinned versions as defined in module tools. + pushd ./test/tools + go install \ + golang.org/x/lint/golint \ golang.org/x/tools/cmd/goimports \ honnef.co/go/tools/cmd/staticcheck \ - github.com/client9/misspell/cmd/misspell \ - github.com/golang/protobuf/protoc-gen-go - if [[ "$check_proto" = "true" ]]; then - if [[ "$TRAVIS" = "true" ]]; then - PROTOBUF_VERSION=3.3.0 + github.com/client9/misspell/cmd/misspell + popd + if [[ -z "${VET_SKIP_PROTO}" ]]; then + if [[ "${TRAVIS}" = "true" ]]; then + PROTOBUF_VERSION=3.14.0 PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip pushd /home/travis wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME} unzip ${PROTOC_FILENAME} bin/protoc --version popd - elif ! which protoc > /dev/null; then + elif [[ "${GITHUB_ACTIONS}" = "true" ]]; then + PROTOBUF_VERSION=3.14.0 + PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip + pushd /home/runner/go + wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME} + unzip ${PROTOC_FILENAME} + bin/protoc --version + popd + elif not which protoc > /dev/null; then die "Please install protoc into your path" fi fi @@ -42,43 +66,152 @@ elif [[ "$#" -ne 0 ]]; then die "Unknown argument(s): $*" fi -# TODO: Remove this check and the mangling below once "context" is imported -# directly. -if git status --porcelain | read; then - die "Uncommitted or untracked files found; commit changes first" +# - Check that generated proto files are up to date. +if [[ -z "${VET_SKIP_PROTO}" ]]; then + PATH="/home/travis/bin:${PATH}" make proto && \ + git status --porcelain 2>&1 | fail_on_output || \ + (git status; git --no-pager diff; exit 1) fi -git ls-files "*.go" | xargs grep -L "\(Copyright [0-9]\{4,\} gRPC authors\)\|DO NOT EDIT" 2>&1 | tee /dev/stderr | (! read) -gofmt -s -d -l . 2>&1 | tee /dev/stderr | (! read) -goimports -l . 2>&1 | tee /dev/stderr | (! read) -golint ./... 2>&1 | (grep -vE "(_mock|\.pb)\.go:" || true) | tee /dev/stderr | (! read) +if [[ -n "${VET_ONLY_PROTO}" ]]; then + exit 0 +fi -# Undo any edits made by this script. -cleanup() { - git reset --hard HEAD -} -trap cleanup EXIT +# - Ensure all source files contain a copyright message. +# (Done in two parts because Darwin "git grep" has broken support for compound +# exclusion matches.) +(grep -L "DO NOT EDIT" $(git grep -L "\(Copyright [0-9]\{4,\} gRPC authors\)" -- '*.go') || true) | fail_on_output -# Rewrite golang.org/x/net/context -> context imports (see grpc/grpc-go#1484). -# TODO: Remove this mangling once "context" is imported directly (grpc/grpc-go#711). -git ls-files "*.go" | xargs sed -i 's:"golang.org/x/net/context":"context":' -set +o pipefail -# TODO: Stop filtering pb.go files once golang/protobuf#214 is fixed. -go tool vet -all . 2>&1 | grep -vE '(clientconn|transport\/transport_test).go:.*cancel (function|var)' | grep -vF '.pb.go:' | tee /dev/stderr | (! read) -set -o pipefail -git reset --hard HEAD - -if [[ "$check_proto" = "true" ]]; then - PATH="/home/travis/bin:$PATH" make proto && \ - git status --porcelain 2>&1 | (! read) || \ - (git status; git --no-pager diff; exit 1) -fi +# - Make sure all tests in grpc and grpc/test use leakcheck via Teardown. +not grep 'func Test[^(]' *_test.go +not grep 'func Test[^(]' test/*.go + +# - Do not import x/net/context. +not git grep -l 'x/net/context' -- "*.go" + +# - Do not import math/rand for real library code. Use internal/grpcrand for +# thread safety. +git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test' + +# - Do not call grpclog directly. Use grpclog.Component instead. +git grep -l -e 'grpclog.I' --or -e 'grpclog.W' --or -e 'grpclog.E' --or -e 'grpclog.F' --or -e 'grpclog.V' -- "*.go" | not grep -v '^grpclog/component.go\|^internal/grpctest/tlogger_test.go' + +# - Ensure all ptypes proto packages are renamed when importing. +not git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go" + +# - Ensure all xds proto imports are renamed to *pb or *grpc. +git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "' -# TODO(menghanl): fix errors in transport_test. -staticcheck -ignore ' -google.golang.org/grpc/transport/transport_test.go:SA2002 -google.golang.org/grpc/benchmark/benchmain/main.go:SA1019 -google.golang.org/grpc/stats/stats_test.go:SA1019 -google.golang.org/grpc/test/end2end_test.go:SA1019 -' ./... misspell -error . + +# - gofmt, goimports, golint (with exceptions for generated code), go vet, +# go mod tidy. +# Perform these checks on each module inside gRPC. +for MOD_FILE in $(find . -name 'go.mod'); do + MOD_DIR=$(dirname ${MOD_FILE}) + pushd ${MOD_DIR} + go vet -all ./... | fail_on_output + gofmt -s -d -l . 2>&1 | fail_on_output + goimports -l . 2>&1 | not grep -vE "\.pb\.go" + golint ./... 2>&1 | not grep -vE "/grpc_testing_not_regenerate/.*\.pb\.go:" + + go mod tidy -compat=1.17 + git status --porcelain 2>&1 | fail_on_output || \ + (git status; git --no-pager diff; exit 1) + popd +done + +# - Collection of static analysis checks +# +# TODO(dfawley): don't use deprecated functions in examples or first-party +# plugins. +# TODO(dfawley): enable ST1019 (duplicate imports) but allow for protobufs. +SC_OUT="$(mktemp)" +staticcheck -go 1.19 -checks 'inherit,-ST1015,-ST1019,-SA1019' ./... > "${SC_OUT}" || true +# Error if anything other than deprecation warnings are printed. +not grep -v "is deprecated:.*SA1019" "${SC_OUT}" +# Only ignore the following deprecated types/fields/functions. +not grep -Fv '.CredsBundle +.HeaderMap +.Metadata is deprecated: use Attributes +.NewAddress +.NewServiceConfig +.Type is deprecated: use Attributes +BuildVersion is deprecated +balancer.ErrTransientFailure +balancer.Picker +extDesc.Filename is deprecated +github.com/golang/protobuf/jsonpb is deprecated +grpc.CallCustomCodec +grpc.Code +grpc.Compressor +grpc.CustomCodec +grpc.Decompressor +grpc.MaxMsgSize +grpc.MethodConfig +grpc.NewGZIPCompressor +grpc.NewGZIPDecompressor +grpc.RPCCompressor +grpc.RPCDecompressor +grpc.ServiceConfig +grpc.WithCompressor +grpc.WithDecompressor +grpc.WithDialer +grpc.WithMaxMsgSize +grpc.WithServiceConfig +grpc.WithTimeout +http.CloseNotifier +info.SecurityVersion +proto is deprecated +proto.InternalMessageInfo is deprecated +proto.EnumName is deprecated +proto.ErrInternalBadWireType is deprecated +proto.FileDescriptor is deprecated +proto.Marshaler is deprecated +proto.MessageType is deprecated +proto.RegisterEnum is deprecated +proto.RegisterFile is deprecated +proto.RegisterType is deprecated +proto.RegisterExtension is deprecated +proto.RegisteredExtension is deprecated +proto.RegisteredExtensions is deprecated +proto.RegisterMapType is deprecated +proto.Unmarshaler is deprecated +resolver.Backend +resolver.GRPCLB +Target is deprecated: Use the Target field in the BuildOptions instead. +xxx_messageInfo_ +' "${SC_OUT}" + +# - special golint on package comments. +lint_package_comment_per_package() { + # Number of files in this go package. + fileCount=$(go list -f '{{len .GoFiles}}' $1) + if [ ${fileCount} -eq 0 ]; then + return 0 + fi + # Number of package errors generated by golint. + lintPackageCommentErrorsCount=$(golint --min_confidence 0 $1 | grep -c "should have a package comment") + # golint complains about every file that's missing the package comment. If the + # number of files for this package is greater than the number of errors, there's + # at least one file with package comment, good. Otherwise, fail. + if [ ${fileCount} -le ${lintPackageCommentErrorsCount} ]; then + echo "Package $1 (with ${fileCount} files) is missing package comment" + return 1 + fi +} +lint_package_comment() { + set +ex + + count=0 + for i in $(go list ./...); do + lint_package_comment_per_package "$i" + ((count += $?)) + done + + set -ex + return $count +} +lint_package_comment + +echo SUCCESS diff --git a/vendor/google.golang.org/protobuf/LICENSE b/vendor/google.golang.org/protobuf/LICENSE new file mode 100644 index 0000000..49ea0f9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2018 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/google.golang.org/protobuf/PATENTS b/vendor/google.golang.org/protobuf/PATENTS new file mode 100644 index 0000000..7330990 --- /dev/null +++ b/vendor/google.golang.org/protobuf/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/decode.go b/vendor/google.golang.org/protobuf/encoding/protojson/decode.go new file mode 100644 index 0000000..5f28148 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/decode.go @@ -0,0 +1,665 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protojson + +import ( + "encoding/base64" + "fmt" + "math" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/encoding/json" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/set" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Unmarshal reads the given []byte into the given proto.Message. +// The provided message must be mutable (e.g., a non-nil pointer to a message). +func Unmarshal(b []byte, m proto.Message) error { + return UnmarshalOptions{}.Unmarshal(b, m) +} + +// UnmarshalOptions is a configurable JSON format parser. +type UnmarshalOptions struct { + pragma.NoUnkeyedLiterals + + // If AllowPartial is set, input for messages that will result in missing + // required fields will not return an error. + AllowPartial bool + + // If DiscardUnknown is set, unknown fields are ignored. + DiscardUnknown bool + + // Resolver is used for looking up types when unmarshaling + // google.protobuf.Any messages or extension fields. + // If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.MessageTypeResolver + protoregistry.ExtensionTypeResolver + } +} + +// Unmarshal reads the given []byte and populates the given proto.Message +// using options in the UnmarshalOptions object. +// It will clear the message first before setting the fields. +// If it returns an error, the given message may be partially set. +// The provided message must be mutable (e.g., a non-nil pointer to a message). +func (o UnmarshalOptions) Unmarshal(b []byte, m proto.Message) error { + return o.unmarshal(b, m) +} + +// unmarshal is a centralized function that all unmarshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for unmarshal that do not go through this. +func (o UnmarshalOptions) unmarshal(b []byte, m proto.Message) error { + proto.Reset(m) + + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + dec := decoder{json.NewDecoder(b), o} + if err := dec.unmarshalMessage(m.ProtoReflect(), false); err != nil { + return err + } + + // Check for EOF. + tok, err := dec.Read() + if err != nil { + return err + } + if tok.Kind() != json.EOF { + return dec.unexpectedTokenError(tok) + } + + if o.AllowPartial { + return nil + } + return proto.CheckInitialized(m) +} + +type decoder struct { + *json.Decoder + opts UnmarshalOptions +} + +// newError returns an error object with position info. +func (d decoder) newError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("(line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unexpectedTokenError returns a syntax error for the given unexpected token. +func (d decoder) unexpectedTokenError(tok json.Token) error { + return d.syntaxError(tok.Pos(), "unexpected token %s", tok.RawString()) +} + +// syntaxError returns a syntax error for given position. +func (d decoder) syntaxError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unmarshalMessage unmarshals a message into the given protoreflect.Message. +func (d decoder) unmarshalMessage(m protoreflect.Message, skipTypeURL bool) error { + if unmarshal := wellKnownTypeUnmarshaler(m.Descriptor().FullName()); unmarshal != nil { + return unmarshal(d, m) + } + + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(tok) + } + + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + var seenNums set.Ints + var seenOneofs set.Ints + fieldDescs := messageDesc.Fields() + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + default: + return d.unexpectedTokenError(tok) + case json.ObjectClose: + return nil + case json.Name: + // Continue below. + } + + name := tok.Name() + // Unmarshaling a non-custom embedded message in Any will contain the + // JSON field "@type" which should be skipped because it is not a field + // of the embedded message, but simply an artifact of the Any format. + if skipTypeURL && name == "@type" { + d.Read() + continue + } + + // Get the FieldDescriptor. + var fd protoreflect.FieldDescriptor + if strings.HasPrefix(name, "[") && strings.HasSuffix(name, "]") { + // Only extension names are in [name] format. + extName := protoreflect.FullName(name[1 : len(name)-1]) + extType, err := d.opts.Resolver.FindExtensionByName(extName) + if err != nil && err != protoregistry.NotFound { + return d.newError(tok.Pos(), "unable to resolve %s: %v", tok.RawString(), err) + } + if extType != nil { + fd = extType.TypeDescriptor() + if !messageDesc.ExtensionRanges().Has(fd.Number()) || fd.ContainingMessage().FullName() != messageDesc.FullName() { + return d.newError(tok.Pos(), "message %v cannot be extended by %v", messageDesc.FullName(), fd.FullName()) + } + } + } else { + // The name can either be the JSON name or the proto field name. + fd = fieldDescs.ByJSONName(name) + if fd == nil { + fd = fieldDescs.ByTextName(name) + } + } + if flags.ProtoLegacy { + if fd != nil && fd.IsWeak() && fd.Message().IsPlaceholder() { + fd = nil // reset since the weak reference is not linked in + } + } + + if fd == nil { + // Field is unknown. + if d.opts.DiscardUnknown { + if err := d.skipJSONValue(); err != nil { + return err + } + continue + } + return d.newError(tok.Pos(), "unknown field %v", tok.RawString()) + } + + // Do not allow duplicate fields. + num := uint64(fd.Number()) + if seenNums.Has(num) { + return d.newError(tok.Pos(), "duplicate field %v", tok.RawString()) + } + seenNums.Set(num) + + // No need to set values for JSON null unless the field type is + // google.protobuf.Value or google.protobuf.NullValue. + if tok, _ := d.Peek(); tok.Kind() == json.Null && !isKnownValue(fd) && !isNullValue(fd) { + d.Read() + continue + } + + switch { + case fd.IsList(): + list := m.Mutable(fd).List() + if err := d.unmarshalList(list, fd); err != nil { + return err + } + case fd.IsMap(): + mmap := m.Mutable(fd).Map() + if err := d.unmarshalMap(mmap, fd); err != nil { + return err + } + default: + // If field is a oneof, check if it has already been set. + if od := fd.ContainingOneof(); od != nil { + idx := uint64(od.Index()) + if seenOneofs.Has(idx) { + return d.newError(tok.Pos(), "error parsing %s, oneof %v is already set", tok.RawString(), od.FullName()) + } + seenOneofs.Set(idx) + } + + // Required or optional fields. + if err := d.unmarshalSingular(m, fd); err != nil { + return err + } + } + } +} + +func isKnownValue(fd protoreflect.FieldDescriptor) bool { + md := fd.Message() + return md != nil && md.FullName() == genid.Value_message_fullname +} + +func isNullValue(fd protoreflect.FieldDescriptor) bool { + ed := fd.Enum() + return ed != nil && ed.FullName() == genid.NullValue_enum_fullname +} + +// unmarshalSingular unmarshals to the non-repeated field specified +// by the given FieldDescriptor. +func (d decoder) unmarshalSingular(m protoreflect.Message, fd protoreflect.FieldDescriptor) error { + var val protoreflect.Value + var err error + switch fd.Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + val = m.NewField(fd) + err = d.unmarshalMessage(val.Message(), false) + default: + val, err = d.unmarshalScalar(fd) + } + + if err != nil { + return err + } + m.Set(fd, val) + return nil +} + +// unmarshalScalar unmarshals to a scalar/enum protoreflect.Value specified by +// the given FieldDescriptor. +func (d decoder) unmarshalScalar(fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + const b32 int = 32 + const b64 int = 64 + + tok, err := d.Read() + if err != nil { + return protoreflect.Value{}, err + } + + kind := fd.Kind() + switch kind { + case protoreflect.BoolKind: + if tok.Kind() == json.Bool { + return protoreflect.ValueOfBool(tok.Bool()), nil + } + + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if v, ok := unmarshalInt(tok, b32); ok { + return v, nil + } + + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if v, ok := unmarshalInt(tok, b64); ok { + return v, nil + } + + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if v, ok := unmarshalUint(tok, b32); ok { + return v, nil + } + + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if v, ok := unmarshalUint(tok, b64); ok { + return v, nil + } + + case protoreflect.FloatKind: + if v, ok := unmarshalFloat(tok, b32); ok { + return v, nil + } + + case protoreflect.DoubleKind: + if v, ok := unmarshalFloat(tok, b64); ok { + return v, nil + } + + case protoreflect.StringKind: + if tok.Kind() == json.String { + return protoreflect.ValueOfString(tok.ParsedString()), nil + } + + case protoreflect.BytesKind: + if v, ok := unmarshalBytes(tok); ok { + return v, nil + } + + case protoreflect.EnumKind: + if v, ok := unmarshalEnum(tok, fd); ok { + return v, nil + } + + default: + panic(fmt.Sprintf("unmarshalScalar: invalid scalar kind %v", kind)) + } + + return protoreflect.Value{}, d.newError(tok.Pos(), "invalid value for %v type: %v", kind, tok.RawString()) +} + +func unmarshalInt(tok json.Token, bitSize int) (protoreflect.Value, bool) { + switch tok.Kind() { + case json.Number: + return getInt(tok, bitSize) + + case json.String: + // Decode number from string. + s := strings.TrimSpace(tok.ParsedString()) + if len(s) != len(tok.ParsedString()) { + return protoreflect.Value{}, false + } + dec := json.NewDecoder([]byte(s)) + tok, err := dec.Read() + if err != nil { + return protoreflect.Value{}, false + } + return getInt(tok, bitSize) + } + return protoreflect.Value{}, false +} + +func getInt(tok json.Token, bitSize int) (protoreflect.Value, bool) { + n, ok := tok.Int(bitSize) + if !ok { + return protoreflect.Value{}, false + } + if bitSize == 32 { + return protoreflect.ValueOfInt32(int32(n)), true + } + return protoreflect.ValueOfInt64(n), true +} + +func unmarshalUint(tok json.Token, bitSize int) (protoreflect.Value, bool) { + switch tok.Kind() { + case json.Number: + return getUint(tok, bitSize) + + case json.String: + // Decode number from string. + s := strings.TrimSpace(tok.ParsedString()) + if len(s) != len(tok.ParsedString()) { + return protoreflect.Value{}, false + } + dec := json.NewDecoder([]byte(s)) + tok, err := dec.Read() + if err != nil { + return protoreflect.Value{}, false + } + return getUint(tok, bitSize) + } + return protoreflect.Value{}, false +} + +func getUint(tok json.Token, bitSize int) (protoreflect.Value, bool) { + n, ok := tok.Uint(bitSize) + if !ok { + return protoreflect.Value{}, false + } + if bitSize == 32 { + return protoreflect.ValueOfUint32(uint32(n)), true + } + return protoreflect.ValueOfUint64(n), true +} + +func unmarshalFloat(tok json.Token, bitSize int) (protoreflect.Value, bool) { + switch tok.Kind() { + case json.Number: + return getFloat(tok, bitSize) + + case json.String: + s := tok.ParsedString() + switch s { + case "NaN": + if bitSize == 32 { + return protoreflect.ValueOfFloat32(float32(math.NaN())), true + } + return protoreflect.ValueOfFloat64(math.NaN()), true + case "Infinity": + if bitSize == 32 { + return protoreflect.ValueOfFloat32(float32(math.Inf(+1))), true + } + return protoreflect.ValueOfFloat64(math.Inf(+1)), true + case "-Infinity": + if bitSize == 32 { + return protoreflect.ValueOfFloat32(float32(math.Inf(-1))), true + } + return protoreflect.ValueOfFloat64(math.Inf(-1)), true + } + + // Decode number from string. + if len(s) != len(strings.TrimSpace(s)) { + return protoreflect.Value{}, false + } + dec := json.NewDecoder([]byte(s)) + tok, err := dec.Read() + if err != nil { + return protoreflect.Value{}, false + } + return getFloat(tok, bitSize) + } + return protoreflect.Value{}, false +} + +func getFloat(tok json.Token, bitSize int) (protoreflect.Value, bool) { + n, ok := tok.Float(bitSize) + if !ok { + return protoreflect.Value{}, false + } + if bitSize == 32 { + return protoreflect.ValueOfFloat32(float32(n)), true + } + return protoreflect.ValueOfFloat64(n), true +} + +func unmarshalBytes(tok json.Token) (protoreflect.Value, bool) { + if tok.Kind() != json.String { + return protoreflect.Value{}, false + } + + s := tok.ParsedString() + enc := base64.StdEncoding + if strings.ContainsAny(s, "-_") { + enc = base64.URLEncoding + } + if len(s)%4 != 0 { + enc = enc.WithPadding(base64.NoPadding) + } + b, err := enc.DecodeString(s) + if err != nil { + return protoreflect.Value{}, false + } + return protoreflect.ValueOfBytes(b), true +} + +func unmarshalEnum(tok json.Token, fd protoreflect.FieldDescriptor) (protoreflect.Value, bool) { + switch tok.Kind() { + case json.String: + // Lookup EnumNumber based on name. + s := tok.ParsedString() + if enumVal := fd.Enum().Values().ByName(protoreflect.Name(s)); enumVal != nil { + return protoreflect.ValueOfEnum(enumVal.Number()), true + } + + case json.Number: + if n, ok := tok.Int(32); ok { + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(n)), true + } + + case json.Null: + // This is only valid for google.protobuf.NullValue. + if isNullValue(fd) { + return protoreflect.ValueOfEnum(0), true + } + } + + return protoreflect.Value{}, false +} + +func (d decoder) unmarshalList(list protoreflect.List, fd protoreflect.FieldDescriptor) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ArrayOpen { + return d.unexpectedTokenError(tok) + } + + switch fd.Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + for { + tok, err := d.Peek() + if err != nil { + return err + } + + if tok.Kind() == json.ArrayClose { + d.Read() + return nil + } + + val := list.NewElement() + if err := d.unmarshalMessage(val.Message(), false); err != nil { + return err + } + list.Append(val) + } + default: + for { + tok, err := d.Peek() + if err != nil { + return err + } + + if tok.Kind() == json.ArrayClose { + d.Read() + return nil + } + + val, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + list.Append(val) + } + } + + return nil +} + +func (d decoder) unmarshalMap(mmap protoreflect.Map, fd protoreflect.FieldDescriptor) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(tok) + } + + // Determine ahead whether map entry is a scalar type or a message type in + // order to call the appropriate unmarshalMapValue func inside the for loop + // below. + var unmarshalMapValue func() (protoreflect.Value, error) + switch fd.MapValue().Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + unmarshalMapValue = func() (protoreflect.Value, error) { + val := mmap.NewValue() + if err := d.unmarshalMessage(val.Message(), false); err != nil { + return protoreflect.Value{}, err + } + return val, nil + } + default: + unmarshalMapValue = func() (protoreflect.Value, error) { + return d.unmarshalScalar(fd.MapValue()) + } + } + +Loop: + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + default: + return d.unexpectedTokenError(tok) + case json.ObjectClose: + break Loop + case json.Name: + // Continue. + } + + // Unmarshal field name. + pkey, err := d.unmarshalMapKey(tok, fd.MapKey()) + if err != nil { + return err + } + + // Check for duplicate field name. + if mmap.Has(pkey) { + return d.newError(tok.Pos(), "duplicate map key %v", tok.RawString()) + } + + // Read and unmarshal field value. + pval, err := unmarshalMapValue() + if err != nil { + return err + } + + mmap.Set(pkey, pval) + } + + return nil +} + +// unmarshalMapKey converts given token of Name kind into a protoreflect.MapKey. +// A map key type is any integral or string type. +func (d decoder) unmarshalMapKey(tok json.Token, fd protoreflect.FieldDescriptor) (protoreflect.MapKey, error) { + const b32 = 32 + const b64 = 64 + const base10 = 10 + + name := tok.Name() + kind := fd.Kind() + switch kind { + case protoreflect.StringKind: + return protoreflect.ValueOfString(name).MapKey(), nil + + case protoreflect.BoolKind: + switch name { + case "true": + return protoreflect.ValueOfBool(true).MapKey(), nil + case "false": + return protoreflect.ValueOfBool(false).MapKey(), nil + } + + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if n, err := strconv.ParseInt(name, base10, b32); err == nil { + return protoreflect.ValueOfInt32(int32(n)).MapKey(), nil + } + + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if n, err := strconv.ParseInt(name, base10, b64); err == nil { + return protoreflect.ValueOfInt64(int64(n)).MapKey(), nil + } + + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if n, err := strconv.ParseUint(name, base10, b32); err == nil { + return protoreflect.ValueOfUint32(uint32(n)).MapKey(), nil + } + + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if n, err := strconv.ParseUint(name, base10, b64); err == nil { + return protoreflect.ValueOfUint64(uint64(n)).MapKey(), nil + } + + default: + panic(fmt.Sprintf("invalid kind for map key: %v", kind)) + } + + return protoreflect.MapKey{}, d.newError(tok.Pos(), "invalid value for %v key: %s", kind, tok.RawString()) +} diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/doc.go b/vendor/google.golang.org/protobuf/encoding/protojson/doc.go new file mode 100644 index 0000000..21d5d2c --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/doc.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protojson marshals and unmarshals protocol buffer messages as JSON +// format. It follows the guide at +// https://protobuf.dev/programming-guides/proto3#json. +// +// This package produces a different output than the standard "encoding/json" +// package, which does not operate correctly on protocol buffer messages. +package protojson diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/encode.go b/vendor/google.golang.org/protobuf/encoding/protojson/encode.go new file mode 100644 index 0000000..d09d22e --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/encode.go @@ -0,0 +1,343 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protojson + +import ( + "encoding/base64" + "fmt" + + "google.golang.org/protobuf/internal/encoding/json" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const defaultIndent = " " + +// Format formats the message as a multiline string. +// This function is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func Format(m proto.Message) string { + return MarshalOptions{Multiline: true}.Format(m) +} + +// Marshal writes the given proto.Message in JSON format using default options. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func Marshal(m proto.Message) ([]byte, error) { + return MarshalOptions{}.Marshal(m) +} + +// MarshalOptions is a configurable JSON format marshaler. +type MarshalOptions struct { + pragma.NoUnkeyedLiterals + + // Multiline specifies whether the marshaler should format the output in + // indented-form with every textual element on a new line. + // If Indent is an empty string, then an arbitrary indent is chosen. + Multiline bool + + // Indent specifies the set of indentation characters to use in a multiline + // formatted output such that every entry is preceded by Indent and + // terminated by a newline. If non-empty, then Multiline is treated as true. + // Indent can only be composed of space or tab characters. + Indent string + + // AllowPartial allows messages that have missing required fields to marshal + // without returning an error. If AllowPartial is false (the default), + // Marshal will return error if there are any missing required fields. + AllowPartial bool + + // UseProtoNames uses proto field name instead of lowerCamelCase name in JSON + // field names. + UseProtoNames bool + + // UseEnumNumbers emits enum values as numbers. + UseEnumNumbers bool + + // EmitUnpopulated specifies whether to emit unpopulated fields. It does not + // emit unpopulated oneof fields or unpopulated extension fields. + // The JSON value emitted for unpopulated fields are as follows: + // ╔═══════╤════════════════════════════╗ + // ║ JSON │ Protobuf field ║ + // ╠═══════╪════════════════════════════╣ + // ║ false │ proto3 boolean fields ║ + // ║ 0 │ proto3 numeric fields ║ + // ║ "" │ proto3 string/bytes fields ║ + // ║ null │ proto2 scalar fields ║ + // ║ null │ message fields ║ + // ║ [] │ list fields ║ + // ║ {} │ map fields ║ + // ╚═══════╧════════════════════════════╝ + EmitUnpopulated bool + + // Resolver is used for looking up types when expanding google.protobuf.Any + // messages. If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.ExtensionTypeResolver + protoregistry.MessageTypeResolver + } +} + +// Format formats the message as a string. +// This method is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func (o MarshalOptions) Format(m proto.Message) string { + if m == nil || !m.ProtoReflect().IsValid() { + return "" // invalid syntax, but okay since this is for debugging + } + o.AllowPartial = true + b, _ := o.Marshal(m) + return string(b) +} + +// Marshal marshals the given proto.Message in the JSON format using options in +// MarshalOptions. Do not depend on the output being stable. It may change over +// time across different versions of the program. +func (o MarshalOptions) Marshal(m proto.Message) ([]byte, error) { + return o.marshal(m) +} + +// marshal is a centralized function that all marshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for marshal that do not go through this. +func (o MarshalOptions) marshal(m proto.Message) ([]byte, error) { + if o.Multiline && o.Indent == "" { + o.Indent = defaultIndent + } + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + internalEnc, err := json.NewEncoder(o.Indent) + if err != nil { + return nil, err + } + + // Treat nil message interface as an empty message, + // in which case the output in an empty JSON object. + if m == nil { + return []byte("{}"), nil + } + + enc := encoder{internalEnc, o} + if err := enc.marshalMessage(m.ProtoReflect(), ""); err != nil { + return nil, err + } + if o.AllowPartial { + return enc.Bytes(), nil + } + return enc.Bytes(), proto.CheckInitialized(m) +} + +type encoder struct { + *json.Encoder + opts MarshalOptions +} + +// typeFieldDesc is a synthetic field descriptor used for the "@type" field. +var typeFieldDesc = func() protoreflect.FieldDescriptor { + var fd filedesc.Field + fd.L0.FullName = "@type" + fd.L0.Index = -1 + fd.L1.Cardinality = protoreflect.Optional + fd.L1.Kind = protoreflect.StringKind + return &fd +}() + +// typeURLFieldRanger wraps a protoreflect.Message and modifies its Range method +// to additionally iterate over a synthetic field for the type URL. +type typeURLFieldRanger struct { + order.FieldRanger + typeURL string +} + +func (m typeURLFieldRanger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if !f(typeFieldDesc, protoreflect.ValueOfString(m.typeURL)) { + return + } + m.FieldRanger.Range(f) +} + +// unpopulatedFieldRanger wraps a protoreflect.Message and modifies its Range +// method to additionally iterate over unpopulated fields. +type unpopulatedFieldRanger struct{ protoreflect.Message } + +func (m unpopulatedFieldRanger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + fds := m.Descriptor().Fields() + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + if m.Has(fd) || fd.ContainingOneof() != nil { + continue // ignore populated fields and fields within a oneofs + } + + v := m.Get(fd) + isProto2Scalar := fd.Syntax() == protoreflect.Proto2 && fd.Default().IsValid() + isSingularMessage := fd.Cardinality() != protoreflect.Repeated && fd.Message() != nil + if isProto2Scalar || isSingularMessage { + v = protoreflect.Value{} // use invalid value to emit null + } + if !f(fd, v) { + return + } + } + m.Message.Range(f) +} + +// marshalMessage marshals the fields in the given protoreflect.Message. +// If the typeURL is non-empty, then a synthetic "@type" field is injected +// containing the URL as the value. +func (e encoder) marshalMessage(m protoreflect.Message, typeURL string) error { + if !flags.ProtoLegacy && messageset.IsMessageSet(m.Descriptor()) { + return errors.New("no support for proto1 MessageSets") + } + + if marshal := wellKnownTypeMarshaler(m.Descriptor().FullName()); marshal != nil { + return marshal(e, m) + } + + e.StartObject() + defer e.EndObject() + + var fields order.FieldRanger = m + if e.opts.EmitUnpopulated { + fields = unpopulatedFieldRanger{m} + } + if typeURL != "" { + fields = typeURLFieldRanger{fields, typeURL} + } + + var err error + order.RangeFields(fields, order.IndexNameFieldOrder, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + name := fd.JSONName() + if e.opts.UseProtoNames { + name = fd.TextName() + } + + if err = e.WriteName(name); err != nil { + return false + } + if err = e.marshalValue(v, fd); err != nil { + return false + } + return true + }) + return err +} + +// marshalValue marshals the given protoreflect.Value. +func (e encoder) marshalValue(val protoreflect.Value, fd protoreflect.FieldDescriptor) error { + switch { + case fd.IsList(): + return e.marshalList(val.List(), fd) + case fd.IsMap(): + return e.marshalMap(val.Map(), fd) + default: + return e.marshalSingular(val, fd) + } +} + +// marshalSingular marshals the given non-repeated field value. This includes +// all scalar types, enums, messages, and groups. +func (e encoder) marshalSingular(val protoreflect.Value, fd protoreflect.FieldDescriptor) error { + if !val.IsValid() { + e.WriteNull() + return nil + } + + switch kind := fd.Kind(); kind { + case protoreflect.BoolKind: + e.WriteBool(val.Bool()) + + case protoreflect.StringKind: + if e.WriteString(val.String()) != nil { + return errors.InvalidUTF8(string(fd.FullName())) + } + + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + e.WriteInt(val.Int()) + + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + e.WriteUint(val.Uint()) + + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Uint64Kind, + protoreflect.Sfixed64Kind, protoreflect.Fixed64Kind: + // 64-bit integers are written out as JSON string. + e.WriteString(val.String()) + + case protoreflect.FloatKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 32) + + case protoreflect.DoubleKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 64) + + case protoreflect.BytesKind: + e.WriteString(base64.StdEncoding.EncodeToString(val.Bytes())) + + case protoreflect.EnumKind: + if fd.Enum().FullName() == genid.NullValue_enum_fullname { + e.WriteNull() + } else { + desc := fd.Enum().Values().ByNumber(val.Enum()) + if e.opts.UseEnumNumbers || desc == nil { + e.WriteInt(int64(val.Enum())) + } else { + e.WriteString(string(desc.Name())) + } + } + + case protoreflect.MessageKind, protoreflect.GroupKind: + if err := e.marshalMessage(val.Message(), ""); err != nil { + return err + } + + default: + panic(fmt.Sprintf("%v has unknown kind: %v", fd.FullName(), kind)) + } + return nil +} + +// marshalList marshals the given protoreflect.List. +func (e encoder) marshalList(list protoreflect.List, fd protoreflect.FieldDescriptor) error { + e.StartArray() + defer e.EndArray() + + for i := 0; i < list.Len(); i++ { + item := list.Get(i) + if err := e.marshalSingular(item, fd); err != nil { + return err + } + } + return nil +} + +// marshalMap marshals given protoreflect.Map. +func (e encoder) marshalMap(mmap protoreflect.Map, fd protoreflect.FieldDescriptor) error { + e.StartObject() + defer e.EndObject() + + var err error + order.RangeEntries(mmap, order.GenericKeyOrder, func(k protoreflect.MapKey, v protoreflect.Value) bool { + if err = e.WriteName(k.String()); err != nil { + return false + } + if err = e.marshalSingular(v, fd.MapValue()); err != nil { + return false + } + return true + }) + return err +} diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go b/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go new file mode 100644 index 0000000..6c37d41 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protojson/well_known_types.go @@ -0,0 +1,895 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protojson + +import ( + "bytes" + "fmt" + "math" + "strconv" + "strings" + "time" + + "google.golang.org/protobuf/internal/encoding/json" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type marshalFunc func(encoder, protoreflect.Message) error + +// wellKnownTypeMarshaler returns a marshal function if the message type +// has specialized serialization behavior. It returns nil otherwise. +func wellKnownTypeMarshaler(name protoreflect.FullName) marshalFunc { + if name.Parent() == genid.GoogleProtobuf_package { + switch name.Name() { + case genid.Any_message_name: + return encoder.marshalAny + case genid.Timestamp_message_name: + return encoder.marshalTimestamp + case genid.Duration_message_name: + return encoder.marshalDuration + case genid.BoolValue_message_name, + genid.Int32Value_message_name, + genid.Int64Value_message_name, + genid.UInt32Value_message_name, + genid.UInt64Value_message_name, + genid.FloatValue_message_name, + genid.DoubleValue_message_name, + genid.StringValue_message_name, + genid.BytesValue_message_name: + return encoder.marshalWrapperType + case genid.Struct_message_name: + return encoder.marshalStruct + case genid.ListValue_message_name: + return encoder.marshalListValue + case genid.Value_message_name: + return encoder.marshalKnownValue + case genid.FieldMask_message_name: + return encoder.marshalFieldMask + case genid.Empty_message_name: + return encoder.marshalEmpty + } + } + return nil +} + +type unmarshalFunc func(decoder, protoreflect.Message) error + +// wellKnownTypeUnmarshaler returns a unmarshal function if the message type +// has specialized serialization behavior. It returns nil otherwise. +func wellKnownTypeUnmarshaler(name protoreflect.FullName) unmarshalFunc { + if name.Parent() == genid.GoogleProtobuf_package { + switch name.Name() { + case genid.Any_message_name: + return decoder.unmarshalAny + case genid.Timestamp_message_name: + return decoder.unmarshalTimestamp + case genid.Duration_message_name: + return decoder.unmarshalDuration + case genid.BoolValue_message_name, + genid.Int32Value_message_name, + genid.Int64Value_message_name, + genid.UInt32Value_message_name, + genid.UInt64Value_message_name, + genid.FloatValue_message_name, + genid.DoubleValue_message_name, + genid.StringValue_message_name, + genid.BytesValue_message_name: + return decoder.unmarshalWrapperType + case genid.Struct_message_name: + return decoder.unmarshalStruct + case genid.ListValue_message_name: + return decoder.unmarshalListValue + case genid.Value_message_name: + return decoder.unmarshalKnownValue + case genid.FieldMask_message_name: + return decoder.unmarshalFieldMask + case genid.Empty_message_name: + return decoder.unmarshalEmpty + } + } + return nil +} + +// The JSON representation of an Any message uses the regular representation of +// the deserialized, embedded message, with an additional field `@type` which +// contains the type URL. If the embedded message type is well-known and has a +// custom JSON representation, that representation will be embedded adding a +// field `value` which holds the custom JSON in addition to the `@type` field. + +func (e encoder) marshalAny(m protoreflect.Message) error { + fds := m.Descriptor().Fields() + fdType := fds.ByNumber(genid.Any_TypeUrl_field_number) + fdValue := fds.ByNumber(genid.Any_Value_field_number) + + if !m.Has(fdType) { + if !m.Has(fdValue) { + // If message is empty, marshal out empty JSON object. + e.StartObject() + e.EndObject() + return nil + } else { + // Return error if type_url field is not set, but value is set. + return errors.New("%s: %v is not set", genid.Any_message_fullname, genid.Any_TypeUrl_field_name) + } + } + + typeVal := m.Get(fdType) + valueVal := m.Get(fdValue) + + // Resolve the type in order to unmarshal value field. + typeURL := typeVal.String() + emt, err := e.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return errors.New("%s: unable to resolve %q: %v", genid.Any_message_fullname, typeURL, err) + } + + em := emt.New() + err = proto.UnmarshalOptions{ + AllowPartial: true, // never check required fields inside an Any + Resolver: e.opts.Resolver, + }.Unmarshal(valueVal.Bytes(), em.Interface()) + if err != nil { + return errors.New("%s: unable to unmarshal %q: %v", genid.Any_message_fullname, typeURL, err) + } + + // If type of value has custom JSON encoding, marshal out a field "value" + // with corresponding custom JSON encoding of the embedded message as a + // field. + if marshal := wellKnownTypeMarshaler(emt.Descriptor().FullName()); marshal != nil { + e.StartObject() + defer e.EndObject() + + // Marshal out @type field. + e.WriteName("@type") + if err := e.WriteString(typeURL); err != nil { + return err + } + + e.WriteName("value") + return marshal(e, em) + } + + // Else, marshal out the embedded message's fields in this Any object. + if err := e.marshalMessage(em, typeURL); err != nil { + return err + } + + return nil +} + +func (d decoder) unmarshalAny(m protoreflect.Message) error { + // Peek to check for json.ObjectOpen to avoid advancing a read. + start, err := d.Peek() + if err != nil { + return err + } + if start.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(start) + } + + // Use another decoder to parse the unread bytes for @type field. This + // avoids advancing a read from current decoder because the current JSON + // object may contain the fields of the embedded type. + dec := decoder{d.Clone(), UnmarshalOptions{}} + tok, err := findTypeURL(dec) + switch err { + case errEmptyObject: + // An empty JSON object translates to an empty Any message. + d.Read() // Read json.ObjectOpen. + d.Read() // Read json.ObjectClose. + return nil + + case errMissingType: + if d.opts.DiscardUnknown { + // Treat all fields as unknowns, similar to an empty object. + return d.skipJSONValue() + } + // Use start.Pos() for line position. + return d.newError(start.Pos(), err.Error()) + + default: + if err != nil { + return err + } + } + + typeURL := tok.ParsedString() + emt, err := d.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return d.newError(tok.Pos(), "unable to resolve %v: %q", tok.RawString(), err) + } + + // Create new message for the embedded message type and unmarshal into it. + em := emt.New() + if unmarshal := wellKnownTypeUnmarshaler(emt.Descriptor().FullName()); unmarshal != nil { + // If embedded message is a custom type, + // unmarshal the JSON "value" field into it. + if err := d.unmarshalAnyValue(unmarshal, em); err != nil { + return err + } + } else { + // Else unmarshal the current JSON object into it. + if err := d.unmarshalMessage(em, true); err != nil { + return err + } + } + // Serialize the embedded message and assign the resulting bytes to the + // proto value field. + b, err := proto.MarshalOptions{ + AllowPartial: true, // No need to check required fields inside an Any. + Deterministic: true, + }.Marshal(em.Interface()) + if err != nil { + return d.newError(start.Pos(), "error in marshaling Any.value field: %v", err) + } + + fds := m.Descriptor().Fields() + fdType := fds.ByNumber(genid.Any_TypeUrl_field_number) + fdValue := fds.ByNumber(genid.Any_Value_field_number) + + m.Set(fdType, protoreflect.ValueOfString(typeURL)) + m.Set(fdValue, protoreflect.ValueOfBytes(b)) + return nil +} + +var errEmptyObject = fmt.Errorf(`empty object`) +var errMissingType = fmt.Errorf(`missing "@type" field`) + +// findTypeURL returns the token for the "@type" field value from the given +// JSON bytes. It is expected that the given bytes start with json.ObjectOpen. +// It returns errEmptyObject if the JSON object is empty or errMissingType if +// @type field does not exist. It returns other error if the @type field is not +// valid or other decoding issues. +func findTypeURL(d decoder) (json.Token, error) { + var typeURL string + var typeTok json.Token + numFields := 0 + // Skip start object. + d.Read() + +Loop: + for { + tok, err := d.Read() + if err != nil { + return json.Token{}, err + } + + switch tok.Kind() { + case json.ObjectClose: + if typeURL == "" { + // Did not find @type field. + if numFields > 0 { + return json.Token{}, errMissingType + } + return json.Token{}, errEmptyObject + } + break Loop + + case json.Name: + numFields++ + if tok.Name() != "@type" { + // Skip value. + if err := d.skipJSONValue(); err != nil { + return json.Token{}, err + } + continue + } + + // Return error if this was previously set already. + if typeURL != "" { + return json.Token{}, d.newError(tok.Pos(), `duplicate "@type" field`) + } + // Read field value. + tok, err := d.Read() + if err != nil { + return json.Token{}, err + } + if tok.Kind() != json.String { + return json.Token{}, d.newError(tok.Pos(), `@type field value is not a string: %v`, tok.RawString()) + } + typeURL = tok.ParsedString() + if typeURL == "" { + return json.Token{}, d.newError(tok.Pos(), `@type field contains empty value`) + } + typeTok = tok + } + } + + return typeTok, nil +} + +// skipJSONValue parses a JSON value (null, boolean, string, number, object and +// array) in order to advance the read to the next JSON value. It relies on +// the decoder returning an error if the types are not in valid sequence. +func (d decoder) skipJSONValue() error { + tok, err := d.Read() + if err != nil { + return err + } + // Only need to continue reading for objects and arrays. + switch tok.Kind() { + case json.ObjectOpen: + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case json.ObjectClose: + return nil + case json.Name: + // Skip object field value. + if err := d.skipJSONValue(); err != nil { + return err + } + } + } + + case json.ArrayOpen: + for { + tok, err := d.Peek() + if err != nil { + return err + } + switch tok.Kind() { + case json.ArrayClose: + d.Read() + return nil + default: + // Skip array item. + if err := d.skipJSONValue(); err != nil { + return err + } + } + } + } + return nil +} + +// unmarshalAnyValue unmarshals the given custom-type message from the JSON +// object's "value" field. +func (d decoder) unmarshalAnyValue(unmarshal unmarshalFunc, m protoreflect.Message) error { + // Skip ObjectOpen, and start reading the fields. + d.Read() + + var found bool // Used for detecting duplicate "value". + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case json.ObjectClose: + if !found { + return d.newError(tok.Pos(), `missing "value" field`) + } + return nil + + case json.Name: + switch tok.Name() { + case "@type": + // Skip the value as this was previously parsed already. + d.Read() + + case "value": + if found { + return d.newError(tok.Pos(), `duplicate "value" field`) + } + // Unmarshal the field value into the given message. + if err := unmarshal(d, m); err != nil { + return err + } + found = true + + default: + if d.opts.DiscardUnknown { + if err := d.skipJSONValue(); err != nil { + return err + } + continue + } + return d.newError(tok.Pos(), "unknown field %v", tok.RawString()) + } + } + } +} + +// Wrapper types are encoded as JSON primitives like string, number or boolean. + +func (e encoder) marshalWrapperType(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.WrapperValue_Value_field_number) + val := m.Get(fd) + return e.marshalSingular(val, fd) +} + +func (d decoder) unmarshalWrapperType(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.WrapperValue_Value_field_number) + val, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + m.Set(fd, val) + return nil +} + +// The JSON representation for Empty is an empty JSON object. + +func (e encoder) marshalEmpty(protoreflect.Message) error { + e.StartObject() + e.EndObject() + return nil +} + +func (d decoder) unmarshalEmpty(protoreflect.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.ObjectOpen { + return d.unexpectedTokenError(tok) + } + + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case json.ObjectClose: + return nil + + case json.Name: + if d.opts.DiscardUnknown { + if err := d.skipJSONValue(); err != nil { + return err + } + continue + } + return d.newError(tok.Pos(), "unknown field %v", tok.RawString()) + + default: + return d.unexpectedTokenError(tok) + } + } +} + +// The JSON representation for Struct is a JSON object that contains the encoded +// Struct.fields map and follows the serialization rules for a map. + +func (e encoder) marshalStruct(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.Struct_Fields_field_number) + return e.marshalMap(m.Get(fd).Map(), fd) +} + +func (d decoder) unmarshalStruct(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.Struct_Fields_field_number) + return d.unmarshalMap(m.Mutable(fd).Map(), fd) +} + +// The JSON representation for ListValue is JSON array that contains the encoded +// ListValue.values repeated field and follows the serialization rules for a +// repeated field. + +func (e encoder) marshalListValue(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.ListValue_Values_field_number) + return e.marshalList(m.Get(fd).List(), fd) +} + +func (d decoder) unmarshalListValue(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.ListValue_Values_field_number) + return d.unmarshalList(m.Mutable(fd).List(), fd) +} + +// The JSON representation for a Value is dependent on the oneof field that is +// set. Each of the field in the oneof has its own custom serialization rule. A +// Value message needs to be a oneof field set, else it is an error. + +func (e encoder) marshalKnownValue(m protoreflect.Message) error { + od := m.Descriptor().Oneofs().ByName(genid.Value_Kind_oneof_name) + fd := m.WhichOneof(od) + if fd == nil { + return errors.New("%s: none of the oneof fields is set", genid.Value_message_fullname) + } + if fd.Number() == genid.Value_NumberValue_field_number { + if v := m.Get(fd).Float(); math.IsNaN(v) || math.IsInf(v, 0) { + return errors.New("%s: invalid %v value", genid.Value_NumberValue_field_fullname, v) + } + } + return e.marshalSingular(m.Get(fd), fd) +} + +func (d decoder) unmarshalKnownValue(m protoreflect.Message) error { + tok, err := d.Peek() + if err != nil { + return err + } + + var fd protoreflect.FieldDescriptor + var val protoreflect.Value + switch tok.Kind() { + case json.Null: + d.Read() + fd = m.Descriptor().Fields().ByNumber(genid.Value_NullValue_field_number) + val = protoreflect.ValueOfEnum(0) + + case json.Bool: + tok, err := d.Read() + if err != nil { + return err + } + fd = m.Descriptor().Fields().ByNumber(genid.Value_BoolValue_field_number) + val = protoreflect.ValueOfBool(tok.Bool()) + + case json.Number: + tok, err := d.Read() + if err != nil { + return err + } + fd = m.Descriptor().Fields().ByNumber(genid.Value_NumberValue_field_number) + var ok bool + val, ok = unmarshalFloat(tok, 64) + if !ok { + return d.newError(tok.Pos(), "invalid %v: %v", genid.Value_message_fullname, tok.RawString()) + } + + case json.String: + // A JSON string may have been encoded from the number_value field, + // e.g. "NaN", "Infinity", etc. Parsing a proto double type also allows + // for it to be in JSON string form. Given this custom encoding spec, + // however, there is no way to identify that and hence a JSON string is + // always assigned to the string_value field, which means that certain + // encoding cannot be parsed back to the same field. + tok, err := d.Read() + if err != nil { + return err + } + fd = m.Descriptor().Fields().ByNumber(genid.Value_StringValue_field_number) + val = protoreflect.ValueOfString(tok.ParsedString()) + + case json.ObjectOpen: + fd = m.Descriptor().Fields().ByNumber(genid.Value_StructValue_field_number) + val = m.NewField(fd) + if err := d.unmarshalStruct(val.Message()); err != nil { + return err + } + + case json.ArrayOpen: + fd = m.Descriptor().Fields().ByNumber(genid.Value_ListValue_field_number) + val = m.NewField(fd) + if err := d.unmarshalListValue(val.Message()); err != nil { + return err + } + + default: + return d.newError(tok.Pos(), "invalid %v: %v", genid.Value_message_fullname, tok.RawString()) + } + + m.Set(fd, val) + return nil +} + +// The JSON representation for a Duration is a JSON string that ends in the +// suffix "s" (indicating seconds) and is preceded by the number of seconds, +// with nanoseconds expressed as fractional seconds. +// +// Durations less than one second are represented with a 0 seconds field and a +// positive or negative nanos field. For durations of one second or more, a +// non-zero value for the nanos field must be of the same sign as the seconds +// field. +// +// Duration.seconds must be from -315,576,000,000 to +315,576,000,000 inclusive. +// Duration.nanos must be from -999,999,999 to +999,999,999 inclusive. + +const ( + secondsInNanos = 999999999 + maxSecondsInDuration = 315576000000 +) + +func (e encoder) marshalDuration(m protoreflect.Message) error { + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(genid.Duration_Seconds_field_number) + fdNanos := fds.ByNumber(genid.Duration_Nanos_field_number) + + secsVal := m.Get(fdSeconds) + nanosVal := m.Get(fdNanos) + secs := secsVal.Int() + nanos := nanosVal.Int() + if secs < -maxSecondsInDuration || secs > maxSecondsInDuration { + return errors.New("%s: seconds out of range %v", genid.Duration_message_fullname, secs) + } + if nanos < -secondsInNanos || nanos > secondsInNanos { + return errors.New("%s: nanos out of range %v", genid.Duration_message_fullname, nanos) + } + if (secs > 0 && nanos < 0) || (secs < 0 && nanos > 0) { + return errors.New("%s: signs of seconds and nanos do not match", genid.Duration_message_fullname) + } + // Generated output always contains 0, 3, 6, or 9 fractional digits, + // depending on required precision, followed by the suffix "s". + var sign string + if secs < 0 || nanos < 0 { + sign, secs, nanos = "-", -1*secs, -1*nanos + } + x := fmt.Sprintf("%s%d.%09d", sign, secs, nanos) + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + e.WriteString(x + "s") + return nil +} + +func (d decoder) unmarshalDuration(m protoreflect.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.String { + return d.unexpectedTokenError(tok) + } + + secs, nanos, ok := parseDuration(tok.ParsedString()) + if !ok { + return d.newError(tok.Pos(), "invalid %v value %v", genid.Duration_message_fullname, tok.RawString()) + } + // Validate seconds. No need to validate nanos because parseDuration would + // have covered that already. + if secs < -maxSecondsInDuration || secs > maxSecondsInDuration { + return d.newError(tok.Pos(), "%v value out of range: %v", genid.Duration_message_fullname, tok.RawString()) + } + + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(genid.Duration_Seconds_field_number) + fdNanos := fds.ByNumber(genid.Duration_Nanos_field_number) + + m.Set(fdSeconds, protoreflect.ValueOfInt64(secs)) + m.Set(fdNanos, protoreflect.ValueOfInt32(nanos)) + return nil +} + +// parseDuration parses the given input string for seconds and nanoseconds value +// for the Duration JSON format. The format is a decimal number with a suffix +// 's'. It can have optional plus/minus sign. There needs to be at least an +// integer or fractional part. Fractional part is limited to 9 digits only for +// nanoseconds precision, regardless of whether there are trailing zero digits. +// Example values are 1s, 0.1s, 1.s, .1s, +1s, -1s, -.1s. +func parseDuration(input string) (int64, int32, bool) { + b := []byte(input) + size := len(b) + if size < 2 { + return 0, 0, false + } + if b[size-1] != 's' { + return 0, 0, false + } + b = b[:size-1] + + // Read optional plus/minus symbol. + var neg bool + switch b[0] { + case '-': + neg = true + b = b[1:] + case '+': + b = b[1:] + } + if len(b) == 0 { + return 0, 0, false + } + + // Read the integer part. + var intp []byte + switch { + case b[0] == '0': + b = b[1:] + + case '1' <= b[0] && b[0] <= '9': + intp = b[0:] + b = b[1:] + n := 1 + for len(b) > 0 && '0' <= b[0] && b[0] <= '9' { + n++ + b = b[1:] + } + intp = intp[:n] + + case b[0] == '.': + // Continue below. + + default: + return 0, 0, false + } + + hasFrac := false + var frac [9]byte + if len(b) > 0 { + if b[0] != '.' { + return 0, 0, false + } + // Read the fractional part. + b = b[1:] + n := 0 + for len(b) > 0 && n < 9 && '0' <= b[0] && b[0] <= '9' { + frac[n] = b[0] + n++ + b = b[1:] + } + // It is not valid if there are more bytes left. + if len(b) > 0 { + return 0, 0, false + } + // Pad fractional part with 0s. + for i := n; i < 9; i++ { + frac[i] = '0' + } + hasFrac = true + } + + var secs int64 + if len(intp) > 0 { + var err error + secs, err = strconv.ParseInt(string(intp), 10, 64) + if err != nil { + return 0, 0, false + } + } + + var nanos int64 + if hasFrac { + nanob := bytes.TrimLeft(frac[:], "0") + if len(nanob) > 0 { + var err error + nanos, err = strconv.ParseInt(string(nanob), 10, 32) + if err != nil { + return 0, 0, false + } + } + } + + if neg { + if secs > 0 { + secs = -secs + } + if nanos > 0 { + nanos = -nanos + } + } + return secs, int32(nanos), true +} + +// The JSON representation for a Timestamp is a JSON string in the RFC 3339 +// format, i.e. "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where +// {year} is always expressed using four digits while {month}, {day}, {hour}, +// {min}, and {sec} are zero-padded to two digits each. The fractional seconds, +// which can go up to 9 digits, up to 1 nanosecond resolution, is optional. The +// "Z" suffix indicates the timezone ("UTC"); the timezone is required. Encoding +// should always use UTC (as indicated by "Z") and a decoder should be able to +// accept both UTC and other timezones (as indicated by an offset). +// +// Timestamp.seconds must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z +// inclusive. +// Timestamp.nanos must be from 0 to 999,999,999 inclusive. + +const ( + maxTimestampSeconds = 253402300799 + minTimestampSeconds = -62135596800 +) + +func (e encoder) marshalTimestamp(m protoreflect.Message) error { + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(genid.Timestamp_Seconds_field_number) + fdNanos := fds.ByNumber(genid.Timestamp_Nanos_field_number) + + secsVal := m.Get(fdSeconds) + nanosVal := m.Get(fdNanos) + secs := secsVal.Int() + nanos := nanosVal.Int() + if secs < minTimestampSeconds || secs > maxTimestampSeconds { + return errors.New("%s: seconds out of range %v", genid.Timestamp_message_fullname, secs) + } + if nanos < 0 || nanos > secondsInNanos { + return errors.New("%s: nanos out of range %v", genid.Timestamp_message_fullname, nanos) + } + // Uses RFC 3339, where generated output will be Z-normalized and uses 0, 3, + // 6 or 9 fractional digits. + t := time.Unix(secs, nanos).UTC() + x := t.Format("2006-01-02T15:04:05.000000000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + e.WriteString(x + "Z") + return nil +} + +func (d decoder) unmarshalTimestamp(m protoreflect.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.String { + return d.unexpectedTokenError(tok) + } + + s := tok.ParsedString() + t, err := time.Parse(time.RFC3339Nano, s) + if err != nil { + return d.newError(tok.Pos(), "invalid %v value %v", genid.Timestamp_message_fullname, tok.RawString()) + } + // Validate seconds. + secs := t.Unix() + if secs < minTimestampSeconds || secs > maxTimestampSeconds { + return d.newError(tok.Pos(), "%v value out of range: %v", genid.Timestamp_message_fullname, tok.RawString()) + } + // Validate subseconds. + i := strings.LastIndexByte(s, '.') // start of subsecond field + j := strings.LastIndexAny(s, "Z-+") // start of timezone field + if i >= 0 && j >= i && j-i > len(".999999999") { + return d.newError(tok.Pos(), "invalid %v value %v", genid.Timestamp_message_fullname, tok.RawString()) + } + + fds := m.Descriptor().Fields() + fdSeconds := fds.ByNumber(genid.Timestamp_Seconds_field_number) + fdNanos := fds.ByNumber(genid.Timestamp_Nanos_field_number) + + m.Set(fdSeconds, protoreflect.ValueOfInt64(secs)) + m.Set(fdNanos, protoreflect.ValueOfInt32(int32(t.Nanosecond()))) + return nil +} + +// The JSON representation for a FieldMask is a JSON string where paths are +// separated by a comma. Fields name in each path are converted to/from +// lower-camel naming conventions. Encoding should fail if the path name would +// end up differently after a round-trip. + +func (e encoder) marshalFieldMask(m protoreflect.Message) error { + fd := m.Descriptor().Fields().ByNumber(genid.FieldMask_Paths_field_number) + list := m.Get(fd).List() + paths := make([]string, 0, list.Len()) + + for i := 0; i < list.Len(); i++ { + s := list.Get(i).String() + if !protoreflect.FullName(s).IsValid() { + return errors.New("%s contains invalid path: %q", genid.FieldMask_Paths_field_fullname, s) + } + // Return error if conversion to camelCase is not reversible. + cc := strs.JSONCamelCase(s) + if s != strs.JSONSnakeCase(cc) { + return errors.New("%s contains irreversible value %q", genid.FieldMask_Paths_field_fullname, s) + } + paths = append(paths, cc) + } + + e.WriteString(strings.Join(paths, ",")) + return nil +} + +func (d decoder) unmarshalFieldMask(m protoreflect.Message) error { + tok, err := d.Read() + if err != nil { + return err + } + if tok.Kind() != json.String { + return d.unexpectedTokenError(tok) + } + str := strings.TrimSpace(tok.ParsedString()) + if str == "" { + return nil + } + paths := strings.Split(str, ",") + + fd := m.Descriptor().Fields().ByNumber(genid.FieldMask_Paths_field_number) + list := m.Mutable(fd).List() + + for _, s0 := range paths { + s := strs.JSONSnakeCase(s0) + if strings.Contains(s0, "_") || !protoreflect.FullName(s).IsValid() { + return d.newError(tok.Pos(), "%v contains invalid path: %q", genid.FieldMask_Paths_field_fullname, s0) + } + list.Append(protoreflect.ValueOfString(s)) + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/decode.go b/vendor/google.golang.org/protobuf/encoding/prototext/decode.go new file mode 100644 index 0000000..4921b2d --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/prototext/decode.go @@ -0,0 +1,770 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package prototext + +import ( + "fmt" + "unicode/utf8" + + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/encoding/text" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/set" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Unmarshal reads the given []byte into the given proto.Message. +// The provided message must be mutable (e.g., a non-nil pointer to a message). +func Unmarshal(b []byte, m proto.Message) error { + return UnmarshalOptions{}.Unmarshal(b, m) +} + +// UnmarshalOptions is a configurable textproto format unmarshaler. +type UnmarshalOptions struct { + pragma.NoUnkeyedLiterals + + // AllowPartial accepts input for messages that will result in missing + // required fields. If AllowPartial is false (the default), Unmarshal will + // return error if there are any missing required fields. + AllowPartial bool + + // DiscardUnknown specifies whether to ignore unknown fields when parsing. + // An unknown field is any field whose field name or field number does not + // resolve to any known or extension field in the message. + // By default, unmarshal rejects unknown fields as an error. + DiscardUnknown bool + + // Resolver is used for looking up types when unmarshaling + // google.protobuf.Any messages or extension fields. + // If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.MessageTypeResolver + protoregistry.ExtensionTypeResolver + } +} + +// Unmarshal reads the given []byte and populates the given proto.Message +// using options in the UnmarshalOptions object. +// The provided message must be mutable (e.g., a non-nil pointer to a message). +func (o UnmarshalOptions) Unmarshal(b []byte, m proto.Message) error { + return o.unmarshal(b, m) +} + +// unmarshal is a centralized function that all unmarshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for unmarshal that do not go through this. +func (o UnmarshalOptions) unmarshal(b []byte, m proto.Message) error { + proto.Reset(m) + + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + dec := decoder{text.NewDecoder(b), o} + if err := dec.unmarshalMessage(m.ProtoReflect(), false); err != nil { + return err + } + if o.AllowPartial { + return nil + } + return proto.CheckInitialized(m) +} + +type decoder struct { + *text.Decoder + opts UnmarshalOptions +} + +// newError returns an error object with position info. +func (d decoder) newError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("(line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unexpectedTokenError returns a syntax error for the given unexpected token. +func (d decoder) unexpectedTokenError(tok text.Token) error { + return d.syntaxError(tok.Pos(), "unexpected token: %s", tok.RawString()) +} + +// syntaxError returns a syntax error for given position. +func (d decoder) syntaxError(pos int, f string, x ...interface{}) error { + line, column := d.Position(pos) + head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) + return errors.New(head+f, x...) +} + +// unmarshalMessage unmarshals into the given protoreflect.Message. +func (d decoder) unmarshalMessage(m protoreflect.Message, checkDelims bool) error { + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + if messageDesc.FullName() == genid.Any_message_fullname { + return d.unmarshalAny(m, checkDelims) + } + + if checkDelims { + tok, err := d.Read() + if err != nil { + return err + } + + if tok.Kind() != text.MessageOpen { + return d.unexpectedTokenError(tok) + } + } + + var seenNums set.Ints + var seenOneofs set.Ints + fieldDescs := messageDesc.Fields() + + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch typ := tok.Kind(); typ { + case text.Name: + // Continue below. + case text.EOF: + if checkDelims { + return text.ErrUnexpectedEOF + } + return nil + default: + if checkDelims && typ == text.MessageClose { + return nil + } + return d.unexpectedTokenError(tok) + } + + // Resolve the field descriptor. + var name protoreflect.Name + var fd protoreflect.FieldDescriptor + var xt protoreflect.ExtensionType + var xtErr error + var isFieldNumberName bool + + switch tok.NameKind() { + case text.IdentName: + name = protoreflect.Name(tok.IdentName()) + fd = fieldDescs.ByTextName(string(name)) + + case text.TypeName: + // Handle extensions only. This code path is not for Any. + xt, xtErr = d.opts.Resolver.FindExtensionByName(protoreflect.FullName(tok.TypeName())) + + case text.FieldNumber: + isFieldNumberName = true + num := protoreflect.FieldNumber(tok.FieldNumber()) + if !num.IsValid() { + return d.newError(tok.Pos(), "invalid field number: %d", num) + } + fd = fieldDescs.ByNumber(num) + if fd == nil { + xt, xtErr = d.opts.Resolver.FindExtensionByNumber(messageDesc.FullName(), num) + } + } + + if xt != nil { + fd = xt.TypeDescriptor() + if !messageDesc.ExtensionRanges().Has(fd.Number()) || fd.ContainingMessage().FullName() != messageDesc.FullName() { + return d.newError(tok.Pos(), "message %v cannot be extended by %v", messageDesc.FullName(), fd.FullName()) + } + } else if xtErr != nil && xtErr != protoregistry.NotFound { + return d.newError(tok.Pos(), "unable to resolve [%s]: %v", tok.RawString(), xtErr) + } + if flags.ProtoLegacy { + if fd != nil && fd.IsWeak() && fd.Message().IsPlaceholder() { + fd = nil // reset since the weak reference is not linked in + } + } + + // Handle unknown fields. + if fd == nil { + if d.opts.DiscardUnknown || messageDesc.ReservedNames().Has(name) { + d.skipValue() + continue + } + return d.newError(tok.Pos(), "unknown field: %v", tok.RawString()) + } + + // Handle fields identified by field number. + if isFieldNumberName { + // TODO: Add an option to permit parsing field numbers. + // + // This requires careful thought as the MarshalOptions.EmitUnknown + // option allows formatting unknown fields as the field number and the + // best-effort textual representation of the field value. In that case, + // it may not be possible to unmarshal the value from a parser that does + // have information about the unknown field. + return d.newError(tok.Pos(), "cannot specify field by number: %v", tok.RawString()) + } + + switch { + case fd.IsList(): + kind := fd.Kind() + if kind != protoreflect.MessageKind && kind != protoreflect.GroupKind && !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + + list := m.Mutable(fd).List() + if err := d.unmarshalList(fd, list); err != nil { + return err + } + + case fd.IsMap(): + mmap := m.Mutable(fd).Map() + if err := d.unmarshalMap(fd, mmap); err != nil { + return err + } + + default: + kind := fd.Kind() + if kind != protoreflect.MessageKind && kind != protoreflect.GroupKind && !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + + // If field is a oneof, check if it has already been set. + if od := fd.ContainingOneof(); od != nil { + idx := uint64(od.Index()) + if seenOneofs.Has(idx) { + return d.newError(tok.Pos(), "error parsing %q, oneof %v is already set", tok.RawString(), od.FullName()) + } + seenOneofs.Set(idx) + } + + num := uint64(fd.Number()) + if seenNums.Has(num) { + return d.newError(tok.Pos(), "non-repeated field %q is repeated", tok.RawString()) + } + + if err := d.unmarshalSingular(fd, m); err != nil { + return err + } + seenNums.Set(num) + } + } + + return nil +} + +// unmarshalSingular unmarshals a non-repeated field value specified by the +// given FieldDescriptor. +func (d decoder) unmarshalSingular(fd protoreflect.FieldDescriptor, m protoreflect.Message) error { + var val protoreflect.Value + var err error + switch fd.Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + val = m.NewField(fd) + err = d.unmarshalMessage(val.Message(), true) + default: + val, err = d.unmarshalScalar(fd) + } + if err == nil { + m.Set(fd, val) + } + return err +} + +// unmarshalScalar unmarshals a scalar/enum protoreflect.Value specified by the +// given FieldDescriptor. +func (d decoder) unmarshalScalar(fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { + tok, err := d.Read() + if err != nil { + return protoreflect.Value{}, err + } + + if tok.Kind() != text.Scalar { + return protoreflect.Value{}, d.unexpectedTokenError(tok) + } + + kind := fd.Kind() + switch kind { + case protoreflect.BoolKind: + if b, ok := tok.Bool(); ok { + return protoreflect.ValueOfBool(b), nil + } + + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if n, ok := tok.Int32(); ok { + return protoreflect.ValueOfInt32(n), nil + } + + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if n, ok := tok.Int64(); ok { + return protoreflect.ValueOfInt64(n), nil + } + + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if n, ok := tok.Uint32(); ok { + return protoreflect.ValueOfUint32(n), nil + } + + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if n, ok := tok.Uint64(); ok { + return protoreflect.ValueOfUint64(n), nil + } + + case protoreflect.FloatKind: + if n, ok := tok.Float32(); ok { + return protoreflect.ValueOfFloat32(n), nil + } + + case protoreflect.DoubleKind: + if n, ok := tok.Float64(); ok { + return protoreflect.ValueOfFloat64(n), nil + } + + case protoreflect.StringKind: + if s, ok := tok.String(); ok { + if strs.EnforceUTF8(fd) && !utf8.ValidString(s) { + return protoreflect.Value{}, d.newError(tok.Pos(), "contains invalid UTF-8") + } + return protoreflect.ValueOfString(s), nil + } + + case protoreflect.BytesKind: + if b, ok := tok.String(); ok { + return protoreflect.ValueOfBytes([]byte(b)), nil + } + + case protoreflect.EnumKind: + if lit, ok := tok.Enum(); ok { + // Lookup EnumNumber based on name. + if enumVal := fd.Enum().Values().ByName(protoreflect.Name(lit)); enumVal != nil { + return protoreflect.ValueOfEnum(enumVal.Number()), nil + } + } + if num, ok := tok.Int32(); ok { + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(num)), nil + } + + default: + panic(fmt.Sprintf("invalid scalar kind %v", kind)) + } + + return protoreflect.Value{}, d.newError(tok.Pos(), "invalid value for %v type: %v", kind, tok.RawString()) +} + +// unmarshalList unmarshals into given protoreflect.List. A list value can +// either be in [] syntax or simply just a single scalar/message value. +func (d decoder) unmarshalList(fd protoreflect.FieldDescriptor, list protoreflect.List) error { + tok, err := d.Peek() + if err != nil { + return err + } + + switch fd.Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + switch tok.Kind() { + case text.ListOpen: + d.Read() + for { + tok, err := d.Peek() + if err != nil { + return err + } + + switch tok.Kind() { + case text.ListClose: + d.Read() + return nil + case text.MessageOpen: + pval := list.NewElement() + if err := d.unmarshalMessage(pval.Message(), true); err != nil { + return err + } + list.Append(pval) + default: + return d.unexpectedTokenError(tok) + } + } + + case text.MessageOpen: + pval := list.NewElement() + if err := d.unmarshalMessage(pval.Message(), true); err != nil { + return err + } + list.Append(pval) + return nil + } + + default: + switch tok.Kind() { + case text.ListOpen: + d.Read() + for { + tok, err := d.Peek() + if err != nil { + return err + } + + switch tok.Kind() { + case text.ListClose: + d.Read() + return nil + case text.Scalar: + pval, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + list.Append(pval) + default: + return d.unexpectedTokenError(tok) + } + } + + case text.Scalar: + pval, err := d.unmarshalScalar(fd) + if err != nil { + return err + } + list.Append(pval) + return nil + } + } + + return d.unexpectedTokenError(tok) +} + +// unmarshalMap unmarshals into given protoreflect.Map. A map value is a +// textproto message containing {key: , value: }. +func (d decoder) unmarshalMap(fd protoreflect.FieldDescriptor, mmap protoreflect.Map) error { + // Determine ahead whether map entry is a scalar type or a message type in + // order to call the appropriate unmarshalMapValue func inside + // unmarshalMapEntry. + var unmarshalMapValue func() (protoreflect.Value, error) + switch fd.MapValue().Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + unmarshalMapValue = func() (protoreflect.Value, error) { + pval := mmap.NewValue() + if err := d.unmarshalMessage(pval.Message(), true); err != nil { + return protoreflect.Value{}, err + } + return pval, nil + } + default: + unmarshalMapValue = func() (protoreflect.Value, error) { + return d.unmarshalScalar(fd.MapValue()) + } + } + + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.MessageOpen: + return d.unmarshalMapEntry(fd, mmap, unmarshalMapValue) + + case text.ListOpen: + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.ListClose: + return nil + case text.MessageOpen: + if err := d.unmarshalMapEntry(fd, mmap, unmarshalMapValue); err != nil { + return err + } + default: + return d.unexpectedTokenError(tok) + } + } + + default: + return d.unexpectedTokenError(tok) + } +} + +// unmarshalMap unmarshals into given protoreflect.Map. A map value is a +// textproto message containing {key: , value: }. +func (d decoder) unmarshalMapEntry(fd protoreflect.FieldDescriptor, mmap protoreflect.Map, unmarshalMapValue func() (protoreflect.Value, error)) error { + var key protoreflect.MapKey + var pval protoreflect.Value +Loop: + for { + // Read field name. + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.Name: + if tok.NameKind() != text.IdentName { + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "unknown map entry field %q", tok.RawString()) + } + d.skipValue() + continue Loop + } + // Continue below. + case text.MessageClose: + break Loop + default: + return d.unexpectedTokenError(tok) + } + + switch name := protoreflect.Name(tok.IdentName()); name { + case genid.MapEntry_Key_field_name: + if !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + if key.IsValid() { + return d.newError(tok.Pos(), "map entry %q cannot be repeated", name) + } + val, err := d.unmarshalScalar(fd.MapKey()) + if err != nil { + return err + } + key = val.MapKey() + + case genid.MapEntry_Value_field_name: + if kind := fd.MapValue().Kind(); (kind != protoreflect.MessageKind) && (kind != protoreflect.GroupKind) { + if !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + } + if pval.IsValid() { + return d.newError(tok.Pos(), "map entry %q cannot be repeated", name) + } + pval, err = unmarshalMapValue() + if err != nil { + return err + } + + default: + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "unknown map entry field %q", name) + } + d.skipValue() + } + } + + if !key.IsValid() { + key = fd.MapKey().Default().MapKey() + } + if !pval.IsValid() { + switch fd.MapValue().Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind: + // If value field is not set for message/group types, construct an + // empty one as default. + pval = mmap.NewValue() + default: + pval = fd.MapValue().Default() + } + } + mmap.Set(key, pval) + return nil +} + +// unmarshalAny unmarshals an Any textproto. It can either be in expanded form +// or non-expanded form. +func (d decoder) unmarshalAny(m protoreflect.Message, checkDelims bool) error { + var typeURL string + var bValue []byte + var seenTypeUrl bool + var seenValue bool + var isExpanded bool + + if checkDelims { + tok, err := d.Read() + if err != nil { + return err + } + + if tok.Kind() != text.MessageOpen { + return d.unexpectedTokenError(tok) + } + } + +Loop: + for { + // Read field name. Can only have 3 possible field names, i.e. type_url, + // value and type URL name inside []. + tok, err := d.Read() + if err != nil { + return err + } + if typ := tok.Kind(); typ != text.Name { + if checkDelims { + if typ == text.MessageClose { + break Loop + } + } else if typ == text.EOF { + break Loop + } + return d.unexpectedTokenError(tok) + } + + switch tok.NameKind() { + case text.IdentName: + // Both type_url and value fields require field separator :. + if !tok.HasSeparator() { + return d.syntaxError(tok.Pos(), "missing field separator :") + } + + switch name := protoreflect.Name(tok.IdentName()); name { + case genid.Any_TypeUrl_field_name: + if seenTypeUrl { + return d.newError(tok.Pos(), "duplicate %v field", genid.Any_TypeUrl_field_fullname) + } + if isExpanded { + return d.newError(tok.Pos(), "conflict with [%s] field", typeURL) + } + tok, err := d.Read() + if err != nil { + return err + } + var ok bool + typeURL, ok = tok.String() + if !ok { + return d.newError(tok.Pos(), "invalid %v field value: %v", genid.Any_TypeUrl_field_fullname, tok.RawString()) + } + seenTypeUrl = true + + case genid.Any_Value_field_name: + if seenValue { + return d.newError(tok.Pos(), "duplicate %v field", genid.Any_Value_field_fullname) + } + if isExpanded { + return d.newError(tok.Pos(), "conflict with [%s] field", typeURL) + } + tok, err := d.Read() + if err != nil { + return err + } + s, ok := tok.String() + if !ok { + return d.newError(tok.Pos(), "invalid %v field value: %v", genid.Any_Value_field_fullname, tok.RawString()) + } + bValue = []byte(s) + seenValue = true + + default: + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "invalid field name %q in %v message", tok.RawString(), genid.Any_message_fullname) + } + } + + case text.TypeName: + if isExpanded { + return d.newError(tok.Pos(), "cannot have more than one type") + } + if seenTypeUrl { + return d.newError(tok.Pos(), "conflict with type_url field") + } + typeURL = tok.TypeName() + var err error + bValue, err = d.unmarshalExpandedAny(typeURL, tok.Pos()) + if err != nil { + return err + } + isExpanded = true + + default: + if !d.opts.DiscardUnknown { + return d.newError(tok.Pos(), "invalid field name %q in %v message", tok.RawString(), genid.Any_message_fullname) + } + } + } + + fds := m.Descriptor().Fields() + if len(typeURL) > 0 { + m.Set(fds.ByNumber(genid.Any_TypeUrl_field_number), protoreflect.ValueOfString(typeURL)) + } + if len(bValue) > 0 { + m.Set(fds.ByNumber(genid.Any_Value_field_number), protoreflect.ValueOfBytes(bValue)) + } + return nil +} + +func (d decoder) unmarshalExpandedAny(typeURL string, pos int) ([]byte, error) { + mt, err := d.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return nil, d.newError(pos, "unable to resolve message [%v]: %v", typeURL, err) + } + // Create new message for the embedded message type and unmarshal the value + // field into it. + m := mt.New() + if err := d.unmarshalMessage(m, true); err != nil { + return nil, err + } + // Serialize the embedded message and return the resulting bytes. + b, err := proto.MarshalOptions{ + AllowPartial: true, // Never check required fields inside an Any. + Deterministic: true, + }.Marshal(m.Interface()) + if err != nil { + return nil, d.newError(pos, "error in marshaling message into Any.value: %v", err) + } + return b, nil +} + +// skipValue makes the decoder parse a field value in order to advance the read +// to the next field. It relies on Read returning an error if the types are not +// in valid sequence. +func (d decoder) skipValue() error { + tok, err := d.Read() + if err != nil { + return err + } + // Only need to continue reading for messages and lists. + switch tok.Kind() { + case text.MessageOpen: + return d.skipMessageValue() + + case text.ListOpen: + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.ListClose: + return nil + case text.MessageOpen: + return d.skipMessageValue() + default: + // Skip items. This will not validate whether skipped values are + // of the same type or not, same behavior as C++ + // TextFormat::Parser::AllowUnknownField(true) version 3.8.0. + } + } + } + return nil +} + +// skipMessageValue makes the decoder parse and skip over all fields in a +// message. It assumes that the previous read type is MessageOpen. +func (d decoder) skipMessageValue() error { + for { + tok, err := d.Read() + if err != nil { + return err + } + switch tok.Kind() { + case text.MessageClose: + return nil + case text.Name: + if err := d.skipValue(); err != nil { + return err + } + } + } +} diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/doc.go b/vendor/google.golang.org/protobuf/encoding/prototext/doc.go new file mode 100644 index 0000000..162b4f9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/prototext/doc.go @@ -0,0 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package prototext marshals and unmarshals protocol buffer messages as the +// textproto format. +package prototext diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/encode.go b/vendor/google.golang.org/protobuf/encoding/prototext/encode.go new file mode 100644 index 0000000..ebf6c65 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/prototext/encode.go @@ -0,0 +1,370 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package prototext + +import ( + "fmt" + "strconv" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/encoding/text" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +const defaultIndent = " " + +// Format formats the message as a multiline string. +// This function is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func Format(m proto.Message) string { + return MarshalOptions{Multiline: true}.Format(m) +} + +// Marshal writes the given proto.Message in textproto format using default +// options. Do not depend on the output being stable. It may change over time +// across different versions of the program. +func Marshal(m proto.Message) ([]byte, error) { + return MarshalOptions{}.Marshal(m) +} + +// MarshalOptions is a configurable text format marshaler. +type MarshalOptions struct { + pragma.NoUnkeyedLiterals + + // Multiline specifies whether the marshaler should format the output in + // indented-form with every textual element on a new line. + // If Indent is an empty string, then an arbitrary indent is chosen. + Multiline bool + + // Indent specifies the set of indentation characters to use in a multiline + // formatted output such that every entry is preceded by Indent and + // terminated by a newline. If non-empty, then Multiline is treated as true. + // Indent can only be composed of space or tab characters. + Indent string + + // EmitASCII specifies whether to format strings and bytes as ASCII only + // as opposed to using UTF-8 encoding when possible. + EmitASCII bool + + // allowInvalidUTF8 specifies whether to permit the encoding of strings + // with invalid UTF-8. This is unexported as it is intended to only + // be specified by the Format method. + allowInvalidUTF8 bool + + // AllowPartial allows messages that have missing required fields to marshal + // without returning an error. If AllowPartial is false (the default), + // Marshal will return error if there are any missing required fields. + AllowPartial bool + + // EmitUnknown specifies whether to emit unknown fields in the output. + // If specified, the unmarshaler may be unable to parse the output. + // The default is to exclude unknown fields. + EmitUnknown bool + + // Resolver is used for looking up types when expanding google.protobuf.Any + // messages. If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + protoregistry.ExtensionTypeResolver + protoregistry.MessageTypeResolver + } +} + +// Format formats the message as a string. +// This method is only intended for human consumption and ignores errors. +// Do not depend on the output being stable. It may change over time across +// different versions of the program. +func (o MarshalOptions) Format(m proto.Message) string { + if m == nil || !m.ProtoReflect().IsValid() { + return "" // invalid syntax, but okay since this is for debugging + } + o.allowInvalidUTF8 = true + o.AllowPartial = true + o.EmitUnknown = true + b, _ := o.Marshal(m) + return string(b) +} + +// Marshal writes the given proto.Message in textproto format using options in +// MarshalOptions object. Do not depend on the output being stable. It may +// change over time across different versions of the program. +func (o MarshalOptions) Marshal(m proto.Message) ([]byte, error) { + return o.marshal(m) +} + +// marshal is a centralized function that all marshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for marshal that do not go through this. +func (o MarshalOptions) marshal(m proto.Message) ([]byte, error) { + var delims = [2]byte{'{', '}'} + + if o.Multiline && o.Indent == "" { + o.Indent = defaultIndent + } + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + internalEnc, err := text.NewEncoder(o.Indent, delims, o.EmitASCII) + if err != nil { + return nil, err + } + + // Treat nil message interface as an empty message, + // in which case there is nothing to output. + if m == nil { + return []byte{}, nil + } + + enc := encoder{internalEnc, o} + err = enc.marshalMessage(m.ProtoReflect(), false) + if err != nil { + return nil, err + } + out := enc.Bytes() + if len(o.Indent) > 0 && len(out) > 0 { + out = append(out, '\n') + } + if o.AllowPartial { + return out, nil + } + return out, proto.CheckInitialized(m) +} + +type encoder struct { + *text.Encoder + opts MarshalOptions +} + +// marshalMessage marshals the given protoreflect.Message. +func (e encoder) marshalMessage(m protoreflect.Message, inclDelims bool) error { + messageDesc := m.Descriptor() + if !flags.ProtoLegacy && messageset.IsMessageSet(messageDesc) { + return errors.New("no support for proto1 MessageSets") + } + + if inclDelims { + e.StartMessage() + defer e.EndMessage() + } + + // Handle Any expansion. + if messageDesc.FullName() == genid.Any_message_fullname { + if e.marshalAny(m) { + return nil + } + // If unable to expand, continue on to marshal Any as a regular message. + } + + // Marshal fields. + var err error + order.RangeFields(m, order.IndexNameFieldOrder, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if err = e.marshalField(fd.TextName(), v, fd); err != nil { + return false + } + return true + }) + if err != nil { + return err + } + + // Marshal unknown fields. + if e.opts.EmitUnknown { + e.marshalUnknown(m.GetUnknown()) + } + + return nil +} + +// marshalField marshals the given field with protoreflect.Value. +func (e encoder) marshalField(name string, val protoreflect.Value, fd protoreflect.FieldDescriptor) error { + switch { + case fd.IsList(): + return e.marshalList(name, val.List(), fd) + case fd.IsMap(): + return e.marshalMap(name, val.Map(), fd) + default: + e.WriteName(name) + return e.marshalSingular(val, fd) + } +} + +// marshalSingular marshals the given non-repeated field value. This includes +// all scalar types, enums, messages, and groups. +func (e encoder) marshalSingular(val protoreflect.Value, fd protoreflect.FieldDescriptor) error { + kind := fd.Kind() + switch kind { + case protoreflect.BoolKind: + e.WriteBool(val.Bool()) + + case protoreflect.StringKind: + s := val.String() + if !e.opts.allowInvalidUTF8 && strs.EnforceUTF8(fd) && !utf8.ValidString(s) { + return errors.InvalidUTF8(string(fd.FullName())) + } + e.WriteString(s) + + case protoreflect.Int32Kind, protoreflect.Int64Kind, + protoreflect.Sint32Kind, protoreflect.Sint64Kind, + protoreflect.Sfixed32Kind, protoreflect.Sfixed64Kind: + e.WriteInt(val.Int()) + + case protoreflect.Uint32Kind, protoreflect.Uint64Kind, + protoreflect.Fixed32Kind, protoreflect.Fixed64Kind: + e.WriteUint(val.Uint()) + + case protoreflect.FloatKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 32) + + case protoreflect.DoubleKind: + // Encoder.WriteFloat handles the special numbers NaN and infinites. + e.WriteFloat(val.Float(), 64) + + case protoreflect.BytesKind: + e.WriteString(string(val.Bytes())) + + case protoreflect.EnumKind: + num := val.Enum() + if desc := fd.Enum().Values().ByNumber(num); desc != nil { + e.WriteLiteral(string(desc.Name())) + } else { + // Use numeric value if there is no enum description. + e.WriteInt(int64(num)) + } + + case protoreflect.MessageKind, protoreflect.GroupKind: + return e.marshalMessage(val.Message(), true) + + default: + panic(fmt.Sprintf("%v has unknown kind: %v", fd.FullName(), kind)) + } + return nil +} + +// marshalList marshals the given protoreflect.List as multiple name-value fields. +func (e encoder) marshalList(name string, list protoreflect.List, fd protoreflect.FieldDescriptor) error { + size := list.Len() + for i := 0; i < size; i++ { + e.WriteName(name) + if err := e.marshalSingular(list.Get(i), fd); err != nil { + return err + } + } + return nil +} + +// marshalMap marshals the given protoreflect.Map as multiple name-value fields. +func (e encoder) marshalMap(name string, mmap protoreflect.Map, fd protoreflect.FieldDescriptor) error { + var err error + order.RangeEntries(mmap, order.GenericKeyOrder, func(key protoreflect.MapKey, val protoreflect.Value) bool { + e.WriteName(name) + e.StartMessage() + defer e.EndMessage() + + e.WriteName(string(genid.MapEntry_Key_field_name)) + err = e.marshalSingular(key.Value(), fd.MapKey()) + if err != nil { + return false + } + + e.WriteName(string(genid.MapEntry_Value_field_name)) + err = e.marshalSingular(val, fd.MapValue()) + if err != nil { + return false + } + return true + }) + return err +} + +// marshalUnknown parses the given []byte and marshals fields out. +// This function assumes proper encoding in the given []byte. +func (e encoder) marshalUnknown(b []byte) { + const dec = 10 + const hex = 16 + for len(b) > 0 { + num, wtype, n := protowire.ConsumeTag(b) + b = b[n:] + e.WriteName(strconv.FormatInt(int64(num), dec)) + + switch wtype { + case protowire.VarintType: + var v uint64 + v, n = protowire.ConsumeVarint(b) + e.WriteUint(v) + case protowire.Fixed32Type: + var v uint32 + v, n = protowire.ConsumeFixed32(b) + e.WriteLiteral("0x" + strconv.FormatUint(uint64(v), hex)) + case protowire.Fixed64Type: + var v uint64 + v, n = protowire.ConsumeFixed64(b) + e.WriteLiteral("0x" + strconv.FormatUint(v, hex)) + case protowire.BytesType: + var v []byte + v, n = protowire.ConsumeBytes(b) + e.WriteString(string(v)) + case protowire.StartGroupType: + e.StartMessage() + var v []byte + v, n = protowire.ConsumeGroup(num, b) + e.marshalUnknown(v) + e.EndMessage() + default: + panic(fmt.Sprintf("prototext: error parsing unknown field wire type: %v", wtype)) + } + + b = b[n:] + } +} + +// marshalAny marshals the given google.protobuf.Any message in expanded form. +// It returns true if it was able to marshal, else false. +func (e encoder) marshalAny(any protoreflect.Message) bool { + // Construct the embedded message. + fds := any.Descriptor().Fields() + fdType := fds.ByNumber(genid.Any_TypeUrl_field_number) + typeURL := any.Get(fdType).String() + mt, err := e.opts.Resolver.FindMessageByURL(typeURL) + if err != nil { + return false + } + m := mt.New().Interface() + + // Unmarshal bytes into embedded message. + fdValue := fds.ByNumber(genid.Any_Value_field_number) + value := any.Get(fdValue) + err = proto.UnmarshalOptions{ + AllowPartial: true, + Resolver: e.opts.Resolver, + }.Unmarshal(value.Bytes(), m) + if err != nil { + return false + } + + // Get current encoder position. If marshaling fails, reset encoder output + // back to this position. + pos := e.Snapshot() + + // Field name is the proto field name enclosed in []. + e.WriteName("[" + typeURL + "]") + err = e.marshalMessage(m.ProtoReflect(), true) + if err != nil { + e.Reset(pos) + return false + } + return true +} diff --git a/vendor/google.golang.org/protobuf/encoding/protowire/wire.go b/vendor/google.golang.org/protobuf/encoding/protowire/wire.go new file mode 100644 index 0000000..f4b4686 --- /dev/null +++ b/vendor/google.golang.org/protobuf/encoding/protowire/wire.go @@ -0,0 +1,547 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protowire parses and formats the raw wire encoding. +// See https://protobuf.dev/programming-guides/encoding. +// +// For marshaling and unmarshaling entire protobuf messages, +// use the "google.golang.org/protobuf/proto" package instead. +package protowire + +import ( + "io" + "math" + "math/bits" + + "google.golang.org/protobuf/internal/errors" +) + +// Number represents the field number. +type Number int32 + +const ( + MinValidNumber Number = 1 + FirstReservedNumber Number = 19000 + LastReservedNumber Number = 19999 + MaxValidNumber Number = 1<<29 - 1 + DefaultRecursionLimit = 10000 +) + +// IsValid reports whether the field number is semantically valid. +func (n Number) IsValid() bool { + return MinValidNumber <= n && n <= MaxValidNumber +} + +// Type represents the wire type. +type Type int8 + +const ( + VarintType Type = 0 + Fixed32Type Type = 5 + Fixed64Type Type = 1 + BytesType Type = 2 + StartGroupType Type = 3 + EndGroupType Type = 4 +) + +const ( + _ = -iota + errCodeTruncated + errCodeFieldNumber + errCodeOverflow + errCodeReserved + errCodeEndGroup + errCodeRecursionDepth +) + +var ( + errFieldNumber = errors.New("invalid field number") + errOverflow = errors.New("variable length integer overflow") + errReserved = errors.New("cannot parse reserved wire type") + errEndGroup = errors.New("mismatching end group marker") + errParse = errors.New("parse error") +) + +// ParseError converts an error code into an error value. +// This returns nil if n is a non-negative number. +func ParseError(n int) error { + if n >= 0 { + return nil + } + switch n { + case errCodeTruncated: + return io.ErrUnexpectedEOF + case errCodeFieldNumber: + return errFieldNumber + case errCodeOverflow: + return errOverflow + case errCodeReserved: + return errReserved + case errCodeEndGroup: + return errEndGroup + default: + return errParse + } +} + +// ConsumeField parses an entire field record (both tag and value) and returns +// the field number, the wire type, and the total length. +// This returns a negative length upon an error (see ParseError). +// +// The total length includes the tag header and the end group marker (if the +// field is a group). +func ConsumeField(b []byte) (Number, Type, int) { + num, typ, n := ConsumeTag(b) + if n < 0 { + return 0, 0, n // forward error code + } + m := ConsumeFieldValue(num, typ, b[n:]) + if m < 0 { + return 0, 0, m // forward error code + } + return num, typ, n + m +} + +// ConsumeFieldValue parses a field value and returns its length. +// This assumes that the field Number and wire Type have already been parsed. +// This returns a negative length upon an error (see ParseError). +// +// When parsing a group, the length includes the end group marker and +// the end group is verified to match the starting field number. +func ConsumeFieldValue(num Number, typ Type, b []byte) (n int) { + return consumeFieldValueD(num, typ, b, DefaultRecursionLimit) +} + +func consumeFieldValueD(num Number, typ Type, b []byte, depth int) (n int) { + switch typ { + case VarintType: + _, n = ConsumeVarint(b) + return n + case Fixed32Type: + _, n = ConsumeFixed32(b) + return n + case Fixed64Type: + _, n = ConsumeFixed64(b) + return n + case BytesType: + _, n = ConsumeBytes(b) + return n + case StartGroupType: + if depth < 0 { + return errCodeRecursionDepth + } + n0 := len(b) + for { + num2, typ2, n := ConsumeTag(b) + if n < 0 { + return n // forward error code + } + b = b[n:] + if typ2 == EndGroupType { + if num != num2 { + return errCodeEndGroup + } + return n0 - len(b) + } + + n = consumeFieldValueD(num2, typ2, b, depth-1) + if n < 0 { + return n // forward error code + } + b = b[n:] + } + case EndGroupType: + return errCodeEndGroup + default: + return errCodeReserved + } +} + +// AppendTag encodes num and typ as a varint-encoded tag and appends it to b. +func AppendTag(b []byte, num Number, typ Type) []byte { + return AppendVarint(b, EncodeTag(num, typ)) +} + +// ConsumeTag parses b as a varint-encoded tag, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeTag(b []byte) (Number, Type, int) { + v, n := ConsumeVarint(b) + if n < 0 { + return 0, 0, n // forward error code + } + num, typ := DecodeTag(v) + if num < MinValidNumber { + return 0, 0, errCodeFieldNumber + } + return num, typ, n +} + +func SizeTag(num Number) int { + return SizeVarint(EncodeTag(num, 0)) // wire type has no effect on size +} + +// AppendVarint appends v to b as a varint-encoded uint64. +func AppendVarint(b []byte, v uint64) []byte { + switch { + case v < 1<<7: + b = append(b, byte(v)) + case v < 1<<14: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte(v>>7)) + case v < 1<<21: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte(v>>14)) + case v < 1<<28: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte(v>>21)) + case v < 1<<35: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte(v>>28)) + case v < 1<<42: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte(v>>35)) + case v < 1<<49: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte(v>>42)) + case v < 1<<56: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte(v>>49)) + case v < 1<<63: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte(v>>56)) + default: + b = append(b, + byte((v>>0)&0x7f|0x80), + byte((v>>7)&0x7f|0x80), + byte((v>>14)&0x7f|0x80), + byte((v>>21)&0x7f|0x80), + byte((v>>28)&0x7f|0x80), + byte((v>>35)&0x7f|0x80), + byte((v>>42)&0x7f|0x80), + byte((v>>49)&0x7f|0x80), + byte((v>>56)&0x7f|0x80), + 1) + } + return b +} + +// ConsumeVarint parses b as a varint-encoded uint64, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeVarint(b []byte) (v uint64, n int) { + var y uint64 + if len(b) <= 0 { + return 0, errCodeTruncated + } + v = uint64(b[0]) + if v < 0x80 { + return v, 1 + } + v -= 0x80 + + if len(b) <= 1 { + return 0, errCodeTruncated + } + y = uint64(b[1]) + v += y << 7 + if y < 0x80 { + return v, 2 + } + v -= 0x80 << 7 + + if len(b) <= 2 { + return 0, errCodeTruncated + } + y = uint64(b[2]) + v += y << 14 + if y < 0x80 { + return v, 3 + } + v -= 0x80 << 14 + + if len(b) <= 3 { + return 0, errCodeTruncated + } + y = uint64(b[3]) + v += y << 21 + if y < 0x80 { + return v, 4 + } + v -= 0x80 << 21 + + if len(b) <= 4 { + return 0, errCodeTruncated + } + y = uint64(b[4]) + v += y << 28 + if y < 0x80 { + return v, 5 + } + v -= 0x80 << 28 + + if len(b) <= 5 { + return 0, errCodeTruncated + } + y = uint64(b[5]) + v += y << 35 + if y < 0x80 { + return v, 6 + } + v -= 0x80 << 35 + + if len(b) <= 6 { + return 0, errCodeTruncated + } + y = uint64(b[6]) + v += y << 42 + if y < 0x80 { + return v, 7 + } + v -= 0x80 << 42 + + if len(b) <= 7 { + return 0, errCodeTruncated + } + y = uint64(b[7]) + v += y << 49 + if y < 0x80 { + return v, 8 + } + v -= 0x80 << 49 + + if len(b) <= 8 { + return 0, errCodeTruncated + } + y = uint64(b[8]) + v += y << 56 + if y < 0x80 { + return v, 9 + } + v -= 0x80 << 56 + + if len(b) <= 9 { + return 0, errCodeTruncated + } + y = uint64(b[9]) + v += y << 63 + if y < 2 { + return v, 10 + } + return 0, errCodeOverflow +} + +// SizeVarint returns the encoded size of a varint. +// The size is guaranteed to be within 1 and 10, inclusive. +func SizeVarint(v uint64) int { + // This computes 1 + (bits.Len64(v)-1)/7. + // 9/64 is a good enough approximation of 1/7 + return int(9*uint32(bits.Len64(v))+64) / 64 +} + +// AppendFixed32 appends v to b as a little-endian uint32. +func AppendFixed32(b []byte, v uint32) []byte { + return append(b, + byte(v>>0), + byte(v>>8), + byte(v>>16), + byte(v>>24)) +} + +// ConsumeFixed32 parses b as a little-endian uint32, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeFixed32(b []byte) (v uint32, n int) { + if len(b) < 4 { + return 0, errCodeTruncated + } + v = uint32(b[0])<<0 | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 + return v, 4 +} + +// SizeFixed32 returns the encoded size of a fixed32; which is always 4. +func SizeFixed32() int { + return 4 +} + +// AppendFixed64 appends v to b as a little-endian uint64. +func AppendFixed64(b []byte, v uint64) []byte { + return append(b, + byte(v>>0), + byte(v>>8), + byte(v>>16), + byte(v>>24), + byte(v>>32), + byte(v>>40), + byte(v>>48), + byte(v>>56)) +} + +// ConsumeFixed64 parses b as a little-endian uint64, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeFixed64(b []byte) (v uint64, n int) { + if len(b) < 8 { + return 0, errCodeTruncated + } + v = uint64(b[0])<<0 | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56 + return v, 8 +} + +// SizeFixed64 returns the encoded size of a fixed64; which is always 8. +func SizeFixed64() int { + return 8 +} + +// AppendBytes appends v to b as a length-prefixed bytes value. +func AppendBytes(b []byte, v []byte) []byte { + return append(AppendVarint(b, uint64(len(v))), v...) +} + +// ConsumeBytes parses b as a length-prefixed bytes value, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeBytes(b []byte) (v []byte, n int) { + m, n := ConsumeVarint(b) + if n < 0 { + return nil, n // forward error code + } + if m > uint64(len(b[n:])) { + return nil, errCodeTruncated + } + return b[n:][:m], n + int(m) +} + +// SizeBytes returns the encoded size of a length-prefixed bytes value, +// given only the length. +func SizeBytes(n int) int { + return SizeVarint(uint64(n)) + n +} + +// AppendString appends v to b as a length-prefixed bytes value. +func AppendString(b []byte, v string) []byte { + return append(AppendVarint(b, uint64(len(v))), v...) +} + +// ConsumeString parses b as a length-prefixed bytes value, reporting its length. +// This returns a negative length upon an error (see ParseError). +func ConsumeString(b []byte) (v string, n int) { + bb, n := ConsumeBytes(b) + return string(bb), n +} + +// AppendGroup appends v to b as group value, with a trailing end group marker. +// The value v must not contain the end marker. +func AppendGroup(b []byte, num Number, v []byte) []byte { + return AppendVarint(append(b, v...), EncodeTag(num, EndGroupType)) +} + +// ConsumeGroup parses b as a group value until the trailing end group marker, +// and verifies that the end marker matches the provided num. The value v +// does not contain the end marker, while the length does contain the end marker. +// This returns a negative length upon an error (see ParseError). +func ConsumeGroup(num Number, b []byte) (v []byte, n int) { + n = ConsumeFieldValue(num, StartGroupType, b) + if n < 0 { + return nil, n // forward error code + } + b = b[:n] + + // Truncate off end group marker, but need to handle denormalized varints. + // Assuming end marker is never 0 (which is always the case since + // EndGroupType is non-zero), we can truncate all trailing bytes where the + // lower 7 bits are all zero (implying that the varint is denormalized). + for len(b) > 0 && b[len(b)-1]&0x7f == 0 { + b = b[:len(b)-1] + } + b = b[:len(b)-SizeTag(num)] + return b, n +} + +// SizeGroup returns the encoded size of a group, given only the length. +func SizeGroup(num Number, n int) int { + return n + SizeTag(num) +} + +// DecodeTag decodes the field Number and wire Type from its unified form. +// The Number is -1 if the decoded field number overflows int32. +// Other than overflow, this does not check for field number validity. +func DecodeTag(x uint64) (Number, Type) { + // NOTE: MessageSet allows for larger field numbers than normal. + if x>>3 > uint64(math.MaxInt32) { + return -1, 0 + } + return Number(x >> 3), Type(x & 7) +} + +// EncodeTag encodes the field Number and wire Type into its unified form. +func EncodeTag(num Number, typ Type) uint64 { + return uint64(num)<<3 | uint64(typ&7) +} + +// DecodeZigZag decodes a zig-zag-encoded uint64 as an int64. +// +// Input: {…, 5, 3, 1, 0, 2, 4, 6, …} +// Output: {…, -3, -2, -1, 0, +1, +2, +3, …} +func DecodeZigZag(x uint64) int64 { + return int64(x>>1) ^ int64(x)<<63>>63 +} + +// EncodeZigZag encodes an int64 as a zig-zag-encoded uint64. +// +// Input: {…, -3, -2, -1, 0, +1, +2, +3, …} +// Output: {…, 5, 3, 1, 0, 2, 4, 6, …} +func EncodeZigZag(x int64) uint64 { + return uint64(x<<1) ^ uint64(x>>63) +} + +// DecodeBool decodes a uint64 as a bool. +// +// Input: { 0, 1, 2, …} +// Output: {false, true, true, …} +func DecodeBool(x uint64) bool { + return x != 0 +} + +// EncodeBool encodes a bool as a uint64. +// +// Input: {false, true} +// Output: { 0, 1} +func EncodeBool(x bool) uint64 { + if x { + return 1 + } + return 0 +} diff --git a/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go b/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go new file mode 100644 index 0000000..db5248e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/descfmt/stringer.go @@ -0,0 +1,318 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package descfmt provides functionality to format descriptors. +package descfmt + +import ( + "fmt" + "io" + "reflect" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type list interface { + Len() int + pragma.DoNotImplement +} + +func FormatList(s fmt.State, r rune, vs list) { + io.WriteString(s, formatListOpt(vs, true, r == 'v' && (s.Flag('+') || s.Flag('#')))) +} +func formatListOpt(vs list, isRoot, allowMulti bool) string { + start, end := "[", "]" + if isRoot { + var name string + switch vs.(type) { + case protoreflect.Names: + name = "Names" + case protoreflect.FieldNumbers: + name = "FieldNumbers" + case protoreflect.FieldRanges: + name = "FieldRanges" + case protoreflect.EnumRanges: + name = "EnumRanges" + case protoreflect.FileImports: + name = "FileImports" + case protoreflect.Descriptor: + name = reflect.ValueOf(vs).MethodByName("Get").Type().Out(0).Name() + "s" + default: + name = reflect.ValueOf(vs).Elem().Type().Name() + } + start, end = name+"{", "}" + } + + var ss []string + switch vs := vs.(type) { + case protoreflect.Names: + for i := 0; i < vs.Len(); i++ { + ss = append(ss, fmt.Sprint(vs.Get(i))) + } + return start + joinStrings(ss, false) + end + case protoreflect.FieldNumbers: + for i := 0; i < vs.Len(); i++ { + ss = append(ss, fmt.Sprint(vs.Get(i))) + } + return start + joinStrings(ss, false) + end + case protoreflect.FieldRanges: + for i := 0; i < vs.Len(); i++ { + r := vs.Get(i) + if r[0]+1 == r[1] { + ss = append(ss, fmt.Sprintf("%d", r[0])) + } else { + ss = append(ss, fmt.Sprintf("%d:%d", r[0], r[1])) // enum ranges are end exclusive + } + } + return start + joinStrings(ss, false) + end + case protoreflect.EnumRanges: + for i := 0; i < vs.Len(); i++ { + r := vs.Get(i) + if r[0] == r[1] { + ss = append(ss, fmt.Sprintf("%d", r[0])) + } else { + ss = append(ss, fmt.Sprintf("%d:%d", r[0], int64(r[1])+1)) // enum ranges are end inclusive + } + } + return start + joinStrings(ss, false) + end + case protoreflect.FileImports: + for i := 0; i < vs.Len(); i++ { + var rs records + rs.Append(reflect.ValueOf(vs.Get(i)), "Path", "Package", "IsPublic", "IsWeak") + ss = append(ss, "{"+rs.Join()+"}") + } + return start + joinStrings(ss, allowMulti) + end + default: + _, isEnumValue := vs.(protoreflect.EnumValueDescriptors) + for i := 0; i < vs.Len(); i++ { + m := reflect.ValueOf(vs).MethodByName("Get") + v := m.Call([]reflect.Value{reflect.ValueOf(i)})[0].Interface() + ss = append(ss, formatDescOpt(v.(protoreflect.Descriptor), false, allowMulti && !isEnumValue)) + } + return start + joinStrings(ss, allowMulti && isEnumValue) + end + } +} + +// descriptorAccessors is a list of accessors to print for each descriptor. +// +// Do not print all accessors since some contain redundant information, +// while others are pointers that we do not want to follow since the descriptor +// is actually a cyclic graph. +// +// Using a list allows us to print the accessors in a sensible order. +var descriptorAccessors = map[reflect.Type][]string{ + reflect.TypeOf((*protoreflect.FileDescriptor)(nil)).Elem(): {"Path", "Package", "Imports", "Messages", "Enums", "Extensions", "Services"}, + reflect.TypeOf((*protoreflect.MessageDescriptor)(nil)).Elem(): {"IsMapEntry", "Fields", "Oneofs", "ReservedNames", "ReservedRanges", "RequiredNumbers", "ExtensionRanges", "Messages", "Enums", "Extensions"}, + reflect.TypeOf((*protoreflect.FieldDescriptor)(nil)).Elem(): {"Number", "Cardinality", "Kind", "HasJSONName", "JSONName", "HasPresence", "IsExtension", "IsPacked", "IsWeak", "IsList", "IsMap", "MapKey", "MapValue", "HasDefault", "Default", "ContainingOneof", "ContainingMessage", "Message", "Enum"}, + reflect.TypeOf((*protoreflect.OneofDescriptor)(nil)).Elem(): {"Fields"}, // not directly used; must keep in sync with formatDescOpt + reflect.TypeOf((*protoreflect.EnumDescriptor)(nil)).Elem(): {"Values", "ReservedNames", "ReservedRanges"}, + reflect.TypeOf((*protoreflect.EnumValueDescriptor)(nil)).Elem(): {"Number"}, + reflect.TypeOf((*protoreflect.ServiceDescriptor)(nil)).Elem(): {"Methods"}, + reflect.TypeOf((*protoreflect.MethodDescriptor)(nil)).Elem(): {"Input", "Output", "IsStreamingClient", "IsStreamingServer"}, +} + +func FormatDesc(s fmt.State, r rune, t protoreflect.Descriptor) { + io.WriteString(s, formatDescOpt(t, true, r == 'v' && (s.Flag('+') || s.Flag('#')))) +} +func formatDescOpt(t protoreflect.Descriptor, isRoot, allowMulti bool) string { + rv := reflect.ValueOf(t) + rt := rv.MethodByName("ProtoType").Type().In(0) + + start, end := "{", "}" + if isRoot { + start = rt.Name() + "{" + } + + _, isFile := t.(protoreflect.FileDescriptor) + rs := records{allowMulti: allowMulti} + if t.IsPlaceholder() { + if isFile { + rs.Append(rv, "Path", "Package", "IsPlaceholder") + } else { + rs.Append(rv, "FullName", "IsPlaceholder") + } + } else { + switch { + case isFile: + rs.Append(rv, "Syntax") + case isRoot: + rs.Append(rv, "Syntax", "FullName") + default: + rs.Append(rv, "Name") + } + switch t := t.(type) { + case protoreflect.FieldDescriptor: + for _, s := range descriptorAccessors[rt] { + switch s { + case "MapKey": + if k := t.MapKey(); k != nil { + rs.recs = append(rs.recs, [2]string{"MapKey", k.Kind().String()}) + } + case "MapValue": + if v := t.MapValue(); v != nil { + switch v.Kind() { + case protoreflect.EnumKind: + rs.recs = append(rs.recs, [2]string{"MapValue", string(v.Enum().FullName())}) + case protoreflect.MessageKind, protoreflect.GroupKind: + rs.recs = append(rs.recs, [2]string{"MapValue", string(v.Message().FullName())}) + default: + rs.recs = append(rs.recs, [2]string{"MapValue", v.Kind().String()}) + } + } + case "ContainingOneof": + if od := t.ContainingOneof(); od != nil { + rs.recs = append(rs.recs, [2]string{"Oneof", string(od.Name())}) + } + case "ContainingMessage": + if t.IsExtension() { + rs.recs = append(rs.recs, [2]string{"Extendee", string(t.ContainingMessage().FullName())}) + } + case "Message": + if !t.IsMap() { + rs.Append(rv, s) + } + default: + rs.Append(rv, s) + } + } + case protoreflect.OneofDescriptor: + var ss []string + fs := t.Fields() + for i := 0; i < fs.Len(); i++ { + ss = append(ss, string(fs.Get(i).Name())) + } + if len(ss) > 0 { + rs.recs = append(rs.recs, [2]string{"Fields", "[" + joinStrings(ss, false) + "]"}) + } + default: + rs.Append(rv, descriptorAccessors[rt]...) + } + if rv.MethodByName("GoType").IsValid() { + rs.Append(rv, "GoType") + } + } + return start + rs.Join() + end +} + +type records struct { + recs [][2]string + allowMulti bool +} + +func (rs *records) Append(v reflect.Value, accessors ...string) { + for _, a := range accessors { + var rv reflect.Value + if m := v.MethodByName(a); m.IsValid() { + rv = m.Call(nil)[0] + } + if v.Kind() == reflect.Struct && !rv.IsValid() { + rv = v.FieldByName(a) + } + if !rv.IsValid() { + panic(fmt.Sprintf("unknown accessor: %v.%s", v.Type(), a)) + } + if _, ok := rv.Interface().(protoreflect.Value); ok { + rv = rv.MethodByName("Interface").Call(nil)[0] + if !rv.IsNil() { + rv = rv.Elem() + } + } + + // Ignore zero values. + var isZero bool + switch rv.Kind() { + case reflect.Interface, reflect.Slice: + isZero = rv.IsNil() + case reflect.Bool: + isZero = rv.Bool() == false + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + isZero = rv.Int() == 0 + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: + isZero = rv.Uint() == 0 + case reflect.String: + isZero = rv.String() == "" + } + if n, ok := rv.Interface().(list); ok { + isZero = n.Len() == 0 + } + if isZero { + continue + } + + // Format the value. + var s string + v := rv.Interface() + switch v := v.(type) { + case list: + s = formatListOpt(v, false, rs.allowMulti) + case protoreflect.FieldDescriptor, protoreflect.OneofDescriptor, protoreflect.EnumValueDescriptor, protoreflect.MethodDescriptor: + s = string(v.(protoreflect.Descriptor).Name()) + case protoreflect.Descriptor: + s = string(v.FullName()) + case string: + s = strconv.Quote(v) + case []byte: + s = fmt.Sprintf("%q", v) + default: + s = fmt.Sprint(v) + } + rs.recs = append(rs.recs, [2]string{a, s}) + } +} + +func (rs *records) Join() string { + var ss []string + + // In single line mode, simply join all records with commas. + if !rs.allowMulti { + for _, r := range rs.recs { + ss = append(ss, r[0]+formatColon(0)+r[1]) + } + return joinStrings(ss, false) + } + + // In allowMulti line mode, align single line records for more readable output. + var maxLen int + flush := func(i int) { + for _, r := range rs.recs[len(ss):i] { + ss = append(ss, r[0]+formatColon(maxLen-len(r[0]))+r[1]) + } + maxLen = 0 + } + for i, r := range rs.recs { + if isMulti := strings.Contains(r[1], "\n"); isMulti { + flush(i) + ss = append(ss, r[0]+formatColon(0)+strings.Join(strings.Split(r[1], "\n"), "\n\t")) + } else if maxLen < len(r[0]) { + maxLen = len(r[0]) + } + } + flush(len(rs.recs)) + return joinStrings(ss, true) +} + +func formatColon(padding int) string { + // Deliberately introduce instability into the debug output to + // discourage users from performing string comparisons. + // This provides us flexibility to change the output in the future. + if detrand.Bool() { + return ":" + strings.Repeat(" ", 1+padding) // use non-breaking spaces (U+00a0) + } else { + return ":" + strings.Repeat(" ", 1+padding) // use regular spaces (U+0020) + } +} + +func joinStrings(ss []string, isMulti bool) string { + if len(ss) == 0 { + return "" + } + if isMulti { + return "\n\t" + strings.Join(ss, "\n\t") + "\n" + } + return strings.Join(ss, ", ") +} diff --git a/vendor/google.golang.org/protobuf/internal/descopts/options.go b/vendor/google.golang.org/protobuf/internal/descopts/options.go new file mode 100644 index 0000000..8401be8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/descopts/options.go @@ -0,0 +1,29 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package descopts contains the nil pointers to concrete descriptor options. +// +// This package exists as a form of reverse dependency injection so that certain +// packages (e.g., internal/filedesc and internal/filetype can avoid a direct +// dependency on the descriptor proto package). +package descopts + +import pref "google.golang.org/protobuf/reflect/protoreflect" + +// These variables are set by the init function in descriptor.pb.go via logic +// in internal/filetype. In other words, so long as the descriptor proto package +// is linked in, these variables will be populated. +// +// Each variable is populated with a nil pointer to the options struct. +var ( + File pref.ProtoMessage + Enum pref.ProtoMessage + EnumValue pref.ProtoMessage + Message pref.ProtoMessage + Field pref.ProtoMessage + Oneof pref.ProtoMessage + ExtensionRange pref.ProtoMessage + Service pref.ProtoMessage + Method pref.ProtoMessage +) diff --git a/vendor/google.golang.org/protobuf/internal/detrand/rand.go b/vendor/google.golang.org/protobuf/internal/detrand/rand.go new file mode 100644 index 0000000..49c8676 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/detrand/rand.go @@ -0,0 +1,69 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package detrand provides deterministically random functionality. +// +// The pseudo-randomness of these functions is seeded by the program binary +// itself and guarantees that the output does not change within a program, +// while ensuring that the output is unstable across different builds. +package detrand + +import ( + "encoding/binary" + "hash/fnv" + "os" +) + +// Disable disables detrand such that all functions returns the zero value. +// This function is not concurrent-safe and must be called during program init. +func Disable() { + randSeed = 0 +} + +// Bool returns a deterministically random boolean. +func Bool() bool { + return randSeed%2 == 1 +} + +// Intn returns a deterministically random integer between 0 and n-1, inclusive. +func Intn(n int) int { + if n <= 0 { + panic("must be positive") + } + return int(randSeed % uint64(n)) +} + +// randSeed is a best-effort at an approximate hash of the Go binary. +var randSeed = binaryHash() + +func binaryHash() uint64 { + // Open the Go binary. + s, err := os.Executable() + if err != nil { + return 0 + } + f, err := os.Open(s) + if err != nil { + return 0 + } + defer f.Close() + + // Hash the size and several samples of the Go binary. + const numSamples = 8 + var buf [64]byte + h := fnv.New64() + fi, err := f.Stat() + if err != nil { + return 0 + } + binary.LittleEndian.PutUint64(buf[:8], uint64(fi.Size())) + h.Write(buf[:8]) + for i := int64(0); i < numSamples; i++ { + if _, err := f.ReadAt(buf[:], i*fi.Size()/numSamples); err != nil { + return 0 + } + h.Write(buf[:]) + } + return h.Sum64() +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go b/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go new file mode 100644 index 0000000..328dc73 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/defval/default.go @@ -0,0 +1,213 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package defval marshals and unmarshals textual forms of default values. +// +// This package handles both the form historically used in Go struct field tags +// and also the form used by google.protobuf.FieldDescriptorProto.default_value +// since they differ in superficial ways. +package defval + +import ( + "fmt" + "math" + "strconv" + + ptext "google.golang.org/protobuf/internal/encoding/text" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Format is the serialization format used to represent the default value. +type Format int + +const ( + _ Format = iota + + // Descriptor uses the serialization format that protoc uses with the + // google.protobuf.FieldDescriptorProto.default_value field. + Descriptor + + // GoTag uses the historical serialization format in Go struct field tags. + GoTag +) + +// Unmarshal deserializes the default string s according to the given kind k. +// When k is an enum, a list of enum value descriptors must be provided. +func Unmarshal(s string, k protoreflect.Kind, evs protoreflect.EnumValueDescriptors, f Format) (protoreflect.Value, protoreflect.EnumValueDescriptor, error) { + switch k { + case protoreflect.BoolKind: + if f == GoTag { + switch s { + case "1": + return protoreflect.ValueOfBool(true), nil, nil + case "0": + return protoreflect.ValueOfBool(false), nil, nil + } + } else { + switch s { + case "true": + return protoreflect.ValueOfBool(true), nil, nil + case "false": + return protoreflect.ValueOfBool(false), nil, nil + } + } + case protoreflect.EnumKind: + if f == GoTag { + // Go tags use the numeric form of the enum value. + if n, err := strconv.ParseInt(s, 10, 32); err == nil { + if ev := evs.ByNumber(protoreflect.EnumNumber(n)); ev != nil { + return protoreflect.ValueOfEnum(ev.Number()), ev, nil + } + } + } else { + // Descriptor default_value use the enum identifier. + ev := evs.ByName(protoreflect.Name(s)) + if ev != nil { + return protoreflect.ValueOfEnum(ev.Number()), ev, nil + } + } + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if v, err := strconv.ParseInt(s, 10, 32); err == nil { + return protoreflect.ValueOfInt32(int32(v)), nil, nil + } + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if v, err := strconv.ParseInt(s, 10, 64); err == nil { + return protoreflect.ValueOfInt64(int64(v)), nil, nil + } + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if v, err := strconv.ParseUint(s, 10, 32); err == nil { + return protoreflect.ValueOfUint32(uint32(v)), nil, nil + } + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if v, err := strconv.ParseUint(s, 10, 64); err == nil { + return protoreflect.ValueOfUint64(uint64(v)), nil, nil + } + case protoreflect.FloatKind, protoreflect.DoubleKind: + var v float64 + var err error + switch s { + case "-inf": + v = math.Inf(-1) + case "inf": + v = math.Inf(+1) + case "nan": + v = math.NaN() + default: + v, err = strconv.ParseFloat(s, 64) + } + if err == nil { + if k == protoreflect.FloatKind { + return protoreflect.ValueOfFloat32(float32(v)), nil, nil + } else { + return protoreflect.ValueOfFloat64(float64(v)), nil, nil + } + } + case protoreflect.StringKind: + // String values are already unescaped and can be used as is. + return protoreflect.ValueOfString(s), nil, nil + case protoreflect.BytesKind: + if b, ok := unmarshalBytes(s); ok { + return protoreflect.ValueOfBytes(b), nil, nil + } + } + return protoreflect.Value{}, nil, errors.New("could not parse value for %v: %q", k, s) +} + +// Marshal serializes v as the default string according to the given kind k. +// When specifying the Descriptor format for an enum kind, the associated +// enum value descriptor must be provided. +func Marshal(v protoreflect.Value, ev protoreflect.EnumValueDescriptor, k protoreflect.Kind, f Format) (string, error) { + switch k { + case protoreflect.BoolKind: + if f == GoTag { + if v.Bool() { + return "1", nil + } else { + return "0", nil + } + } else { + if v.Bool() { + return "true", nil + } else { + return "false", nil + } + } + case protoreflect.EnumKind: + if f == GoTag { + return strconv.FormatInt(int64(v.Enum()), 10), nil + } else { + return string(ev.Name()), nil + } + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind, protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return strconv.FormatInt(v.Int(), 10), nil + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind, protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return strconv.FormatUint(v.Uint(), 10), nil + case protoreflect.FloatKind, protoreflect.DoubleKind: + f := v.Float() + switch { + case math.IsInf(f, -1): + return "-inf", nil + case math.IsInf(f, +1): + return "inf", nil + case math.IsNaN(f): + return "nan", nil + default: + if k == protoreflect.FloatKind { + return strconv.FormatFloat(f, 'g', -1, 32), nil + } else { + return strconv.FormatFloat(f, 'g', -1, 64), nil + } + } + case protoreflect.StringKind: + // String values are serialized as is without any escaping. + return v.String(), nil + case protoreflect.BytesKind: + if s, ok := marshalBytes(v.Bytes()); ok { + return s, nil + } + } + return "", errors.New("could not format value for %v: %v", k, v) +} + +// unmarshalBytes deserializes bytes by applying C unescaping. +func unmarshalBytes(s string) ([]byte, bool) { + // Bytes values use the same escaping as the text format, + // however they lack the surrounding double quotes. + v, err := ptext.UnmarshalString(`"` + s + `"`) + if err != nil { + return nil, false + } + return []byte(v), true +} + +// marshalBytes serializes bytes by using C escaping. +// To match the exact output of protoc, this is identical to the +// CEscape function in strutil.cc of the protoc source code. +func marshalBytes(b []byte) (string, bool) { + var s []byte + for _, c := range b { + switch c { + case '\n': + s = append(s, `\n`...) + case '\r': + s = append(s, `\r`...) + case '\t': + s = append(s, `\t`...) + case '"': + s = append(s, `\"`...) + case '\'': + s = append(s, `\'`...) + case '\\': + s = append(s, `\\`...) + default: + if printableASCII := c >= 0x20 && c <= 0x7e; printableASCII { + s = append(s, c) + } else { + s = append(s, fmt.Sprintf(`\%03o`, c)...) + } + } + } + return string(s), true +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go new file mode 100644 index 0000000..d043a6e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go @@ -0,0 +1,340 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "bytes" + "fmt" + "io" + "regexp" + "unicode/utf8" + + "google.golang.org/protobuf/internal/errors" +) + +// call specifies which Decoder method was invoked. +type call uint8 + +const ( + readCall call = iota + peekCall +) + +const unexpectedFmt = "unexpected token %s" + +// ErrUnexpectedEOF means that EOF was encountered in the middle of the input. +var ErrUnexpectedEOF = errors.New("%v", io.ErrUnexpectedEOF) + +// Decoder is a token-based JSON decoder. +type Decoder struct { + // lastCall is last method called, either readCall or peekCall. + // Initial value is readCall. + lastCall call + + // lastToken contains the last read token. + lastToken Token + + // lastErr contains the last read error. + lastErr error + + // openStack is a stack containing ObjectOpen and ArrayOpen values. The + // top of stack represents the object or the array the current value is + // directly located in. + openStack []Kind + + // orig is used in reporting line and column. + orig []byte + // in contains the unconsumed input. + in []byte +} + +// NewDecoder returns a Decoder to read the given []byte. +func NewDecoder(b []byte) *Decoder { + return &Decoder{orig: b, in: b} +} + +// Peek looks ahead and returns the next token kind without advancing a read. +func (d *Decoder) Peek() (Token, error) { + defer func() { d.lastCall = peekCall }() + if d.lastCall == readCall { + d.lastToken, d.lastErr = d.Read() + } + return d.lastToken, d.lastErr +} + +// Read returns the next JSON token. +// It will return an error if there is no valid token. +func (d *Decoder) Read() (Token, error) { + const scalar = Null | Bool | Number | String + + defer func() { d.lastCall = readCall }() + if d.lastCall == peekCall { + return d.lastToken, d.lastErr + } + + tok, err := d.parseNext() + if err != nil { + return Token{}, err + } + + switch tok.kind { + case EOF: + if len(d.openStack) != 0 || + d.lastToken.kind&scalar|ObjectClose|ArrayClose == 0 { + return Token{}, ErrUnexpectedEOF + } + + case Null: + if !d.isValueNext() { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + + case Bool, Number: + if !d.isValueNext() { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + + case String: + if d.isValueNext() { + break + } + // This string token should only be for a field name. + if d.lastToken.kind&(ObjectOpen|comma) == 0 { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + if len(d.in) == 0 { + return Token{}, ErrUnexpectedEOF + } + if c := d.in[0]; c != ':' { + return Token{}, d.newSyntaxError(d.currPos(), `unexpected character %s, missing ":" after field name`, string(c)) + } + tok.kind = Name + d.consume(1) + + case ObjectOpen, ArrayOpen: + if !d.isValueNext() { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + d.openStack = append(d.openStack, tok.kind) + + case ObjectClose: + if len(d.openStack) == 0 || + d.lastToken.kind == comma || + d.openStack[len(d.openStack)-1] != ObjectOpen { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + d.openStack = d.openStack[:len(d.openStack)-1] + + case ArrayClose: + if len(d.openStack) == 0 || + d.lastToken.kind == comma || + d.openStack[len(d.openStack)-1] != ArrayOpen { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + d.openStack = d.openStack[:len(d.openStack)-1] + + case comma: + if len(d.openStack) == 0 || + d.lastToken.kind&(scalar|ObjectClose|ArrayClose) == 0 { + return Token{}, d.newSyntaxError(tok.pos, unexpectedFmt, tok.RawString()) + } + } + + // Update d.lastToken only after validating token to be in the right sequence. + d.lastToken = tok + + if d.lastToken.kind == comma { + return d.Read() + } + return tok, nil +} + +// Any sequence that looks like a non-delimiter (for error reporting). +var errRegexp = regexp.MustCompile(`^([-+._a-zA-Z0-9]{1,32}|.)`) + +// parseNext parses for the next JSON token. It returns a Token object for +// different types, except for Name. It does not handle whether the next token +// is in a valid sequence or not. +func (d *Decoder) parseNext() (Token, error) { + // Trim leading spaces. + d.consume(0) + + in := d.in + if len(in) == 0 { + return d.consumeToken(EOF, 0), nil + } + + switch in[0] { + case 'n': + if n := matchWithDelim("null", in); n != 0 { + return d.consumeToken(Null, n), nil + } + + case 't': + if n := matchWithDelim("true", in); n != 0 { + return d.consumeBoolToken(true, n), nil + } + + case 'f': + if n := matchWithDelim("false", in); n != 0 { + return d.consumeBoolToken(false, n), nil + } + + case '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + if n, ok := parseNumber(in); ok { + return d.consumeToken(Number, n), nil + } + + case '"': + s, n, err := d.parseString(in) + if err != nil { + return Token{}, err + } + return d.consumeStringToken(s, n), nil + + case '{': + return d.consumeToken(ObjectOpen, 1), nil + + case '}': + return d.consumeToken(ObjectClose, 1), nil + + case '[': + return d.consumeToken(ArrayOpen, 1), nil + + case ']': + return d.consumeToken(ArrayClose, 1), nil + + case ',': + return d.consumeToken(comma, 1), nil + } + return Token{}, d.newSyntaxError(d.currPos(), "invalid value %s", errRegexp.Find(in)) +} + +// newSyntaxError returns an error with line and column information useful for +// syntax errors. +func (d *Decoder) newSyntaxError(pos int, f string, x ...interface{}) error { + e := errors.New(f, x...) + line, column := d.Position(pos) + return errors.New("syntax error (line %d:%d): %v", line, column, e) +} + +// Position returns line and column number of given index of the original input. +// It will panic if index is out of range. +func (d *Decoder) Position(idx int) (line int, column int) { + b := d.orig[:idx] + line = bytes.Count(b, []byte("\n")) + 1 + if i := bytes.LastIndexByte(b, '\n'); i >= 0 { + b = b[i+1:] + } + column = utf8.RuneCount(b) + 1 // ignore multi-rune characters + return line, column +} + +// currPos returns the current index position of d.in from d.orig. +func (d *Decoder) currPos() int { + return len(d.orig) - len(d.in) +} + +// matchWithDelim matches s with the input b and verifies that the match +// terminates with a delimiter of some form (e.g., r"[^-+_.a-zA-Z0-9]"). +// As a special case, EOF is considered a delimiter. It returns the length of s +// if there is a match, else 0. +func matchWithDelim(s string, b []byte) int { + if !bytes.HasPrefix(b, []byte(s)) { + return 0 + } + + n := len(s) + if n < len(b) && isNotDelim(b[n]) { + return 0 + } + return n +} + +// isNotDelim returns true if given byte is a not delimiter character. +func isNotDelim(c byte) bool { + return (c == '-' || c == '+' || c == '.' || c == '_' || + ('a' <= c && c <= 'z') || + ('A' <= c && c <= 'Z') || + ('0' <= c && c <= '9')) +} + +// consume consumes n bytes of input and any subsequent whitespace. +func (d *Decoder) consume(n int) { + d.in = d.in[n:] + for len(d.in) > 0 { + switch d.in[0] { + case ' ', '\n', '\r', '\t': + d.in = d.in[1:] + default: + return + } + } +} + +// isValueNext returns true if next type should be a JSON value: Null, +// Number, String or Bool. +func (d *Decoder) isValueNext() bool { + if len(d.openStack) == 0 { + return d.lastToken.kind == 0 + } + + start := d.openStack[len(d.openStack)-1] + switch start { + case ObjectOpen: + return d.lastToken.kind&Name != 0 + case ArrayOpen: + return d.lastToken.kind&(ArrayOpen|comma) != 0 + } + panic(fmt.Sprintf( + "unreachable logic in Decoder.isValueNext, lastToken.kind: %v, openStack: %v", + d.lastToken.kind, start)) +} + +// consumeToken constructs a Token for given Kind with raw value derived from +// current d.in and given size, and consumes the given size-length of it. +func (d *Decoder) consumeToken(kind Kind, size int) Token { + tok := Token{ + kind: kind, + raw: d.in[:size], + pos: len(d.orig) - len(d.in), + } + d.consume(size) + return tok +} + +// consumeBoolToken constructs a Token for a Bool kind with raw value derived from +// current d.in and given size. +func (d *Decoder) consumeBoolToken(b bool, size int) Token { + tok := Token{ + kind: Bool, + raw: d.in[:size], + pos: len(d.orig) - len(d.in), + boo: b, + } + d.consume(size) + return tok +} + +// consumeStringToken constructs a Token for a String kind with raw value derived +// from current d.in and given size. +func (d *Decoder) consumeStringToken(s string, size int) Token { + tok := Token{ + kind: String, + raw: d.in[:size], + pos: len(d.orig) - len(d.in), + str: s, + } + d.consume(size) + return tok +} + +// Clone returns a copy of the Decoder for use in reading ahead the next JSON +// object, array or other values without affecting current Decoder. +func (d *Decoder) Clone() *Decoder { + ret := *d + ret.openStack = append([]Kind(nil), ret.openStack...) + return &ret +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go new file mode 100644 index 0000000..2999d71 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_number.go @@ -0,0 +1,254 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "bytes" + "strconv" +) + +// parseNumber reads the given []byte for a valid JSON number. If it is valid, +// it returns the number of bytes. Parsing logic follows the definition in +// https://tools.ietf.org/html/rfc7159#section-6, and is based off +// encoding/json.isValidNumber function. +func parseNumber(input []byte) (int, bool) { + var n int + + s := input + if len(s) == 0 { + return 0, false + } + + // Optional - + if s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return 0, false + } + } + + // Digits + switch { + case s[0] == '0': + s = s[1:] + n++ + + case '1' <= s[0] && s[0] <= '9': + s = s[1:] + n++ + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + + default: + return 0, false + } + + // . followed by 1 or more digits. + if len(s) >= 2 && s[0] == '.' && '0' <= s[1] && s[1] <= '9' { + s = s[2:] + n += 2 + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + } + + // e or E followed by an optional - or + and + // 1 or more digits. + if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') { + s = s[1:] + n++ + if s[0] == '+' || s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return 0, false + } + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + } + + // Check that next byte is a delimiter or it is at the end. + if n < len(input) && isNotDelim(input[n]) { + return 0, false + } + + return n, true +} + +// numberParts is the result of parsing out a valid JSON number. It contains +// the parts of a number. The parts are used for integer conversion. +type numberParts struct { + neg bool + intp []byte + frac []byte + exp []byte +} + +// parseNumber constructs numberParts from given []byte. The logic here is +// similar to consumeNumber above with the difference of having to construct +// numberParts. The slice fields in numberParts are subslices of the input. +func parseNumberParts(input []byte) (numberParts, bool) { + var neg bool + var intp []byte + var frac []byte + var exp []byte + + s := input + if len(s) == 0 { + return numberParts{}, false + } + + // Optional - + if s[0] == '-' { + neg = true + s = s[1:] + if len(s) == 0 { + return numberParts{}, false + } + } + + // Digits + switch { + case s[0] == '0': + // Skip first 0 and no need to store. + s = s[1:] + + case '1' <= s[0] && s[0] <= '9': + intp = s + n := 1 + s = s[1:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + intp = intp[:n] + + default: + return numberParts{}, false + } + + // . followed by 1 or more digits. + if len(s) >= 2 && s[0] == '.' && '0' <= s[1] && s[1] <= '9' { + frac = s[1:] + n := 1 + s = s[2:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + frac = frac[:n] + } + + // e or E followed by an optional - or + and + // 1 or more digits. + if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') { + s = s[1:] + exp = s + n := 0 + if s[0] == '+' || s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return numberParts{}, false + } + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + exp = exp[:n] + } + + return numberParts{ + neg: neg, + intp: intp, + frac: bytes.TrimRight(frac, "0"), // Remove unnecessary 0s to the right. + exp: exp, + }, true +} + +// normalizeToIntString returns an integer string in normal form without the +// E-notation for given numberParts. It will return false if it is not an +// integer or if the exponent exceeds than max/min int value. +func normalizeToIntString(n numberParts) (string, bool) { + intpSize := len(n.intp) + fracSize := len(n.frac) + + if intpSize == 0 && fracSize == 0 { + return "0", true + } + + var exp int + if len(n.exp) > 0 { + i, err := strconv.ParseInt(string(n.exp), 10, 32) + if err != nil { + return "", false + } + exp = int(i) + } + + var num []byte + if exp >= 0 { + // For positive E, shift fraction digits into integer part and also pad + // with zeroes as needed. + + // If there are more digits in fraction than the E value, then the + // number is not an integer. + if fracSize > exp { + return "", false + } + + // Make sure resulting digits are within max value limit to avoid + // unnecessarily constructing a large byte slice that may simply fail + // later on. + const maxDigits = 20 // Max uint64 value has 20 decimal digits. + if intpSize+exp > maxDigits { + return "", false + } + + // Set cap to make a copy of integer part when appended. + num = n.intp[:len(n.intp):len(n.intp)] + num = append(num, n.frac...) + for i := 0; i < exp-fracSize; i++ { + num = append(num, '0') + } + } else { + // For negative E, shift digits in integer part out. + + // If there are fractions, then the number is not an integer. + if fracSize > 0 { + return "", false + } + + // index is where the decimal point will be after adjusting for negative + // exponent. + index := intpSize + exp + if index < 0 { + return "", false + } + + num = n.intp + // If any of the digits being shifted to the right of the decimal point + // is non-zero, then the number is not an integer. + for i := index; i < intpSize; i++ { + if num[i] != '0' { + return "", false + } + } + num = num[:index] + } + + if n.neg { + return "-" + string(num), true + } + return string(num), true +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go new file mode 100644 index 0000000..f7fea7d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_string.go @@ -0,0 +1,91 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "strconv" + "unicode" + "unicode/utf16" + "unicode/utf8" + + "google.golang.org/protobuf/internal/strs" +) + +func (d *Decoder) parseString(in []byte) (string, int, error) { + in0 := in + if len(in) == 0 { + return "", 0, ErrUnexpectedEOF + } + if in[0] != '"' { + return "", 0, d.newSyntaxError(d.currPos(), "invalid character %q at start of string", in[0]) + } + in = in[1:] + i := indexNeedEscapeInBytes(in) + in, out := in[i:], in[:i:i] // set cap to prevent mutations + for len(in) > 0 { + switch r, n := utf8.DecodeRune(in); { + case r == utf8.RuneError && n == 1: + return "", 0, d.newSyntaxError(d.currPos(), "invalid UTF-8 in string") + case r < ' ': + return "", 0, d.newSyntaxError(d.currPos(), "invalid character %q in string", r) + case r == '"': + in = in[1:] + n := len(in0) - len(in) + return string(out), n, nil + case r == '\\': + if len(in) < 2 { + return "", 0, ErrUnexpectedEOF + } + switch r := in[1]; r { + case '"', '\\', '/': + in, out = in[2:], append(out, r) + case 'b': + in, out = in[2:], append(out, '\b') + case 'f': + in, out = in[2:], append(out, '\f') + case 'n': + in, out = in[2:], append(out, '\n') + case 'r': + in, out = in[2:], append(out, '\r') + case 't': + in, out = in[2:], append(out, '\t') + case 'u': + if len(in) < 6 { + return "", 0, ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:6]), 16, 16) + if err != nil { + return "", 0, d.newSyntaxError(d.currPos(), "invalid escape code %q in string", in[:6]) + } + in = in[6:] + + r := rune(v) + if utf16.IsSurrogate(r) { + if len(in) < 6 { + return "", 0, ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:6]), 16, 16) + r = utf16.DecodeRune(r, rune(v)) + if in[0] != '\\' || in[1] != 'u' || + r == unicode.ReplacementChar || err != nil { + return "", 0, d.newSyntaxError(d.currPos(), "invalid escape code %q in string", in[:6]) + } + in = in[6:] + } + out = append(out, string(r)...) + default: + return "", 0, d.newSyntaxError(d.currPos(), "invalid escape code %q in string", in[:2]) + } + default: + i := indexNeedEscapeInBytes(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + return "", 0, ErrUnexpectedEOF +} + +// indexNeedEscapeInBytes returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInBytes(b []byte) int { return indexNeedEscapeInString(strs.UnsafeString(b)) } diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go new file mode 100644 index 0000000..50578d6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode_token.go @@ -0,0 +1,192 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "bytes" + "fmt" + "strconv" +) + +// Kind represents a token kind expressible in the JSON format. +type Kind uint16 + +const ( + Invalid Kind = (1 << iota) / 2 + EOF + Null + Bool + Number + String + Name + ObjectOpen + ObjectClose + ArrayOpen + ArrayClose + + // comma is only for parsing in between tokens and + // does not need to be exported. + comma +) + +func (k Kind) String() string { + switch k { + case EOF: + return "eof" + case Null: + return "null" + case Bool: + return "bool" + case Number: + return "number" + case String: + return "string" + case ObjectOpen: + return "{" + case ObjectClose: + return "}" + case Name: + return "name" + case ArrayOpen: + return "[" + case ArrayClose: + return "]" + case comma: + return "," + } + return "" +} + +// Token provides a parsed token kind and value. +// +// Values are provided by the difference accessor methods. The accessor methods +// Name, Bool, and ParsedString will panic if called on the wrong kind. There +// are different accessor methods for the Number kind for converting to the +// appropriate Go numeric type and those methods have the ok return value. +type Token struct { + // Token kind. + kind Kind + // pos provides the position of the token in the original input. + pos int + // raw bytes of the serialized token. + // This is a subslice into the original input. + raw []byte + // boo is parsed boolean value. + boo bool + // str is parsed string value. + str string +} + +// Kind returns the token kind. +func (t Token) Kind() Kind { + return t.kind +} + +// RawString returns the read value in string. +func (t Token) RawString() string { + return string(t.raw) +} + +// Pos returns the token position from the input. +func (t Token) Pos() int { + return t.pos +} + +// Name returns the object name if token is Name, else it panics. +func (t Token) Name() string { + if t.kind == Name { + return t.str + } + panic(fmt.Sprintf("Token is not a Name: %v", t.RawString())) +} + +// Bool returns the bool value if token kind is Bool, else it panics. +func (t Token) Bool() bool { + if t.kind == Bool { + return t.boo + } + panic(fmt.Sprintf("Token is not a Bool: %v", t.RawString())) +} + +// ParsedString returns the string value for a JSON string token or the read +// value in string if token is not a string. +func (t Token) ParsedString() string { + if t.kind == String { + return t.str + } + panic(fmt.Sprintf("Token is not a String: %v", t.RawString())) +} + +// Float returns the floating-point number if token kind is Number. +// +// The floating-point precision is specified by the bitSize parameter: 32 for +// float32 or 64 for float64. If bitSize=32, the result still has type float64, +// but it will be convertible to float32 without changing its value. It will +// return false if the number exceeds the floating point limits for given +// bitSize. +func (t Token) Float(bitSize int) (float64, bool) { + if t.kind != Number { + return 0, false + } + f, err := strconv.ParseFloat(t.RawString(), bitSize) + if err != nil { + return 0, false + } + return f, true +} + +// Int returns the signed integer number if token is Number. +// +// The given bitSize specifies the integer type that the result must fit into. +// It returns false if the number is not an integer value or if the result +// exceeds the limits for given bitSize. +func (t Token) Int(bitSize int) (int64, bool) { + s, ok := t.getIntStr() + if !ok { + return 0, false + } + n, err := strconv.ParseInt(s, 10, bitSize) + if err != nil { + return 0, false + } + return n, true +} + +// Uint returns the signed integer number if token is Number. +// +// The given bitSize specifies the unsigned integer type that the result must +// fit into. It returns false if the number is not an unsigned integer value +// or if the result exceeds the limits for given bitSize. +func (t Token) Uint(bitSize int) (uint64, bool) { + s, ok := t.getIntStr() + if !ok { + return 0, false + } + n, err := strconv.ParseUint(s, 10, bitSize) + if err != nil { + return 0, false + } + return n, true +} + +func (t Token) getIntStr() (string, bool) { + if t.kind != Number { + return "", false + } + parts, ok := parseNumberParts(t.raw) + if !ok { + return "", false + } + return normalizeToIntString(parts) +} + +// TokenEquals returns true if given Tokens are equal, else false. +func TokenEquals(x, y Token) bool { + return x.kind == y.kind && + x.pos == y.pos && + bytes.Equal(x.raw, y.raw) && + x.boo == y.boo && + x.str == y.str +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/encode.go b/vendor/google.golang.org/protobuf/internal/encoding/json/encode.go new file mode 100644 index 0000000..fbdf348 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/encode.go @@ -0,0 +1,276 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package json + +import ( + "math" + "math/bits" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/errors" +) + +// kind represents an encoding type. +type kind uint8 + +const ( + _ kind = (1 << iota) / 2 + name + scalar + objectOpen + objectClose + arrayOpen + arrayClose +) + +// Encoder provides methods to write out JSON constructs and values. The user is +// responsible for producing valid sequences of JSON constructs and values. +type Encoder struct { + indent string + lastKind kind + indents []byte + out []byte +} + +// NewEncoder returns an Encoder. +// +// If indent is a non-empty string, it causes every entry for an Array or Object +// to be preceded by the indent and trailed by a newline. +func NewEncoder(indent string) (*Encoder, error) { + e := &Encoder{} + if len(indent) > 0 { + if strings.Trim(indent, " \t") != "" { + return nil, errors.New("indent may only be composed of space or tab characters") + } + e.indent = indent + } + return e, nil +} + +// Bytes returns the content of the written bytes. +func (e *Encoder) Bytes() []byte { + return e.out +} + +// WriteNull writes out the null value. +func (e *Encoder) WriteNull() { + e.prepareNext(scalar) + e.out = append(e.out, "null"...) +} + +// WriteBool writes out the given boolean value. +func (e *Encoder) WriteBool(b bool) { + e.prepareNext(scalar) + if b { + e.out = append(e.out, "true"...) + } else { + e.out = append(e.out, "false"...) + } +} + +// WriteString writes out the given string in JSON string value. Returns error +// if input string contains invalid UTF-8. +func (e *Encoder) WriteString(s string) error { + e.prepareNext(scalar) + var err error + if e.out, err = appendString(e.out, s); err != nil { + return err + } + return nil +} + +// Sentinel error used for indicating invalid UTF-8. +var errInvalidUTF8 = errors.New("invalid UTF-8") + +func appendString(out []byte, in string) ([]byte, error) { + out = append(out, '"') + i := indexNeedEscapeInString(in) + in, out = in[i:], append(out, in[:i]...) + for len(in) > 0 { + switch r, n := utf8.DecodeRuneInString(in); { + case r == utf8.RuneError && n == 1: + return out, errInvalidUTF8 + case r < ' ' || r == '"' || r == '\\': + out = append(out, '\\') + switch r { + case '"', '\\': + out = append(out, byte(r)) + case '\b': + out = append(out, 'b') + case '\f': + out = append(out, 'f') + case '\n': + out = append(out, 'n') + case '\r': + out = append(out, 'r') + case '\t': + out = append(out, 't') + default: + out = append(out, 'u') + out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } + in = in[n:] + default: + i := indexNeedEscapeInString(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + out = append(out, '"') + return out, nil +} + +// indexNeedEscapeInString returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInString(s string) int { + for i, r := range s { + if r < ' ' || r == '\\' || r == '"' || r == utf8.RuneError { + return i + } + } + return len(s) +} + +// WriteFloat writes out the given float and bitSize in JSON number value. +func (e *Encoder) WriteFloat(n float64, bitSize int) { + e.prepareNext(scalar) + e.out = appendFloat(e.out, n, bitSize) +} + +// appendFloat formats given float in bitSize, and appends to the given []byte. +func appendFloat(out []byte, n float64, bitSize int) []byte { + switch { + case math.IsNaN(n): + return append(out, `"NaN"`...) + case math.IsInf(n, +1): + return append(out, `"Infinity"`...) + case math.IsInf(n, -1): + return append(out, `"-Infinity"`...) + } + + // JSON number formatting logic based on encoding/json. + // See floatEncoder.encode for reference. + fmt := byte('f') + if abs := math.Abs(n); abs != 0 { + if bitSize == 64 && (abs < 1e-6 || abs >= 1e21) || + bitSize == 32 && (float32(abs) < 1e-6 || float32(abs) >= 1e21) { + fmt = 'e' + } + } + out = strconv.AppendFloat(out, n, fmt, -1, bitSize) + if fmt == 'e' { + n := len(out) + if n >= 4 && out[n-4] == 'e' && out[n-3] == '-' && out[n-2] == '0' { + out[n-2] = out[n-1] + out = out[:n-1] + } + } + return out +} + +// WriteInt writes out the given signed integer in JSON number value. +func (e *Encoder) WriteInt(n int64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatInt(n, 10)...) +} + +// WriteUint writes out the given unsigned integer in JSON number value. +func (e *Encoder) WriteUint(n uint64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatUint(n, 10)...) +} + +// StartObject writes out the '{' symbol. +func (e *Encoder) StartObject() { + e.prepareNext(objectOpen) + e.out = append(e.out, '{') +} + +// EndObject writes out the '}' symbol. +func (e *Encoder) EndObject() { + e.prepareNext(objectClose) + e.out = append(e.out, '}') +} + +// WriteName writes out the given string in JSON string value and the name +// separator ':'. Returns error if input string contains invalid UTF-8, which +// should not be likely as protobuf field names should be valid. +func (e *Encoder) WriteName(s string) error { + e.prepareNext(name) + var err error + // Append to output regardless of error. + e.out, err = appendString(e.out, s) + e.out = append(e.out, ':') + return err +} + +// StartArray writes out the '[' symbol. +func (e *Encoder) StartArray() { + e.prepareNext(arrayOpen) + e.out = append(e.out, '[') +} + +// EndArray writes out the ']' symbol. +func (e *Encoder) EndArray() { + e.prepareNext(arrayClose) + e.out = append(e.out, ']') +} + +// prepareNext adds possible comma and indentation for the next value based +// on last type and indent option. It also updates lastKind to next. +func (e *Encoder) prepareNext(next kind) { + defer func() { + // Set lastKind to next. + e.lastKind = next + }() + + if len(e.indent) == 0 { + // Need to add comma on the following condition. + if e.lastKind&(scalar|objectClose|arrayClose) != 0 && + next&(name|scalar|objectOpen|arrayOpen) != 0 { + e.out = append(e.out, ',') + // For single-line output, add a random extra space after each + // comma to make output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + } + return + } + + switch { + case e.lastKind&(objectOpen|arrayOpen) != 0: + // If next type is NOT closing, add indent and newline. + if next&(objectClose|arrayClose) == 0 { + e.indents = append(e.indents, e.indent...) + e.out = append(e.out, '\n') + e.out = append(e.out, e.indents...) + } + + case e.lastKind&(scalar|objectClose|arrayClose) != 0: + switch { + // If next type is either a value or name, add comma and newline. + case next&(name|scalar|objectOpen|arrayOpen) != 0: + e.out = append(e.out, ',', '\n') + + // If next type is a closing object or array, adjust indentation. + case next&(objectClose|arrayClose) != 0: + e.indents = e.indents[:len(e.indents)-len(e.indent)] + e.out = append(e.out, '\n') + } + e.out = append(e.out, e.indents...) + + case e.lastKind&name != 0: + e.out = append(e.out, ' ') + // For multi-line output, add a random extra space after key: to make + // output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + } +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go b/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go new file mode 100644 index 0000000..a6693f0 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/messageset/messageset.go @@ -0,0 +1,242 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package messageset encodes and decodes the obsolete MessageSet wire format. +package messageset + +import ( + "math" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// The MessageSet wire format is equivalent to a message defined as follows, +// where each Item defines an extension field with a field number of 'type_id' +// and content of 'message'. MessageSet extensions must be non-repeated message +// fields. +// +// message MessageSet { +// repeated group Item = 1 { +// required int32 type_id = 2; +// required string message = 3; +// } +// } +const ( + FieldItem = protowire.Number(1) + FieldTypeID = protowire.Number(2) + FieldMessage = protowire.Number(3) +) + +// ExtensionName is the field name for extensions of MessageSet. +// +// A valid MessageSet extension must be of the form: +// +// message MyMessage { +// extend proto2.bridge.MessageSet { +// optional MyMessage message_set_extension = 1234; +// } +// ... +// } +const ExtensionName = "message_set_extension" + +// IsMessageSet returns whether the message uses the MessageSet wire format. +func IsMessageSet(md protoreflect.MessageDescriptor) bool { + xmd, ok := md.(interface{ IsMessageSet() bool }) + return ok && xmd.IsMessageSet() +} + +// IsMessageSetExtension reports this field properly extends a MessageSet. +func IsMessageSetExtension(fd protoreflect.FieldDescriptor) bool { + switch { + case fd.Name() != ExtensionName: + return false + case !IsMessageSet(fd.ContainingMessage()): + return false + case fd.FullName().Parent() != fd.Message().FullName(): + return false + } + return true +} + +// SizeField returns the size of a MessageSet item field containing an extension +// with the given field number, not counting the contents of the message subfield. +func SizeField(num protowire.Number) int { + return 2*protowire.SizeTag(FieldItem) + protowire.SizeTag(FieldTypeID) + protowire.SizeVarint(uint64(num)) +} + +// Unmarshal parses a MessageSet. +// +// It calls fn with the type ID and value of each item in the MessageSet. +// Unknown fields are discarded. +// +// If wantLen is true, the item values include the varint length prefix. +// This is ugly, but simplifies the fast-path decoder in internal/impl. +func Unmarshal(b []byte, wantLen bool, fn func(typeID protowire.Number, value []byte) error) error { + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return protowire.ParseError(n) + } + b = b[n:] + if num != FieldItem || wtyp != protowire.StartGroupType { + n := protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return protowire.ParseError(n) + } + b = b[n:] + continue + } + typeID, value, n, err := ConsumeFieldValue(b, wantLen) + if err != nil { + return err + } + b = b[n:] + if typeID == 0 { + continue + } + if err := fn(typeID, value); err != nil { + return err + } + } + return nil +} + +// ConsumeFieldValue parses b as a MessageSet item field value until and including +// the trailing end group marker. It assumes the start group tag has already been parsed. +// It returns the contents of the type_id and message subfields and the total +// item length. +// +// If wantLen is true, the returned message value includes the length prefix. +func ConsumeFieldValue(b []byte, wantLen bool) (typeid protowire.Number, message []byte, n int, err error) { + ilen := len(b) + for { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + b = b[n:] + switch { + case num == FieldItem && wtyp == protowire.EndGroupType: + if wantLen && len(message) == 0 { + // The message field was missing, which should never happen. + // Be prepared for this case anyway. + message = protowire.AppendVarint(message, 0) + } + return typeid, message, ilen - len(b), nil + case num == FieldTypeID && wtyp == protowire.VarintType: + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + b = b[n:] + if v < 1 || v > math.MaxInt32 { + return 0, nil, 0, errors.New("invalid type_id in message set") + } + typeid = protowire.Number(v) + case num == FieldMessage && wtyp == protowire.BytesType: + m, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + if message == nil { + if wantLen { + message = b[:n:n] + } else { + message = m[:len(m):len(m)] + } + } else { + // This case should never happen in practice, but handle it for + // correctness: The MessageSet item contains multiple message + // fields, which need to be merged. + // + // In the case where we're returning the length, this becomes + // quite inefficient since we need to strip the length off + // the existing data and reconstruct it with the combined length. + if wantLen { + _, nn := protowire.ConsumeVarint(message) + m0 := message[nn:] + message = nil + message = protowire.AppendVarint(message, uint64(len(m0)+len(m))) + message = append(message, m0...) + message = append(message, m...) + } else { + message = append(message, m...) + } + } + b = b[n:] + default: + // We have no place to put it, so we just ignore unknown fields. + n := protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return 0, nil, 0, protowire.ParseError(n) + } + b = b[n:] + } + } +} + +// AppendFieldStart appends the start of a MessageSet item field containing +// an extension with the given number. The caller must add the message +// subfield (including the tag). +func AppendFieldStart(b []byte, num protowire.Number) []byte { + b = protowire.AppendTag(b, FieldItem, protowire.StartGroupType) + b = protowire.AppendTag(b, FieldTypeID, protowire.VarintType) + b = protowire.AppendVarint(b, uint64(num)) + return b +} + +// AppendFieldEnd appends the trailing end group marker for a MessageSet item field. +func AppendFieldEnd(b []byte) []byte { + return protowire.AppendTag(b, FieldItem, protowire.EndGroupType) +} + +// SizeUnknown returns the size of an unknown fields section in MessageSet format. +// +// See AppendUnknown. +func SizeUnknown(unknown []byte) (size int) { + for len(unknown) > 0 { + num, typ, n := protowire.ConsumeTag(unknown) + if n < 0 || typ != protowire.BytesType { + return 0 + } + unknown = unknown[n:] + _, n = protowire.ConsumeBytes(unknown) + if n < 0 { + return 0 + } + unknown = unknown[n:] + size += SizeField(num) + protowire.SizeTag(FieldMessage) + n + } + return size +} + +// AppendUnknown appends unknown fields to b in MessageSet format. +// +// For historic reasons, unresolved items in a MessageSet are stored in a +// message's unknown fields section in non-MessageSet format. That is, an +// unknown item with typeID T and value V appears in the unknown fields as +// a field with number T and value V. +// +// This function converts the unknown fields back into MessageSet form. +func AppendUnknown(b, unknown []byte) ([]byte, error) { + for len(unknown) > 0 { + num, typ, n := protowire.ConsumeTag(unknown) + if n < 0 || typ != protowire.BytesType { + return nil, errors.New("invalid data in message set unknown fields") + } + unknown = unknown[n:] + _, n = protowire.ConsumeBytes(unknown) + if n < 0 { + return nil, errors.New("invalid data in message set unknown fields") + } + b = AppendFieldStart(b, num) + b = protowire.AppendTag(b, FieldMessage, protowire.BytesType) + b = append(b, unknown[:n]...) + b = AppendFieldEnd(b) + unknown = unknown[n:] + } + return b, nil +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go b/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go new file mode 100644 index 0000000..373d208 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/tag/tag.go @@ -0,0 +1,207 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package tag marshals and unmarshals the legacy struct tags as generated +// by historical versions of protoc-gen-go. +package tag + +import ( + "reflect" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +var byteType = reflect.TypeOf(byte(0)) + +// Unmarshal decodes the tag into a prototype.Field. +// +// The goType is needed to determine the original protoreflect.Kind since the +// tag does not record sufficient information to determine that. +// The type is the underlying field type (e.g., a repeated field may be +// represented by []T, but the Go type passed in is just T). +// A list of enum value descriptors must be provided for enum fields. +// This does not populate the Enum or Message (except for weak message). +// +// This function is a best effort attempt; parsing errors are ignored. +func Unmarshal(tag string, goType reflect.Type, evs protoreflect.EnumValueDescriptors) protoreflect.FieldDescriptor { + f := new(filedesc.Field) + f.L0.ParentFile = filedesc.SurrogateProto2 + for len(tag) > 0 { + i := strings.IndexByte(tag, ',') + if i < 0 { + i = len(tag) + } + switch s := tag[:i]; { + case strings.HasPrefix(s, "name="): + f.L0.FullName = protoreflect.FullName(s[len("name="):]) + case strings.Trim(s, "0123456789") == "": + n, _ := strconv.ParseUint(s, 10, 32) + f.L1.Number = protoreflect.FieldNumber(n) + case s == "opt": + f.L1.Cardinality = protoreflect.Optional + case s == "req": + f.L1.Cardinality = protoreflect.Required + case s == "rep": + f.L1.Cardinality = protoreflect.Repeated + case s == "varint": + switch goType.Kind() { + case reflect.Bool: + f.L1.Kind = protoreflect.BoolKind + case reflect.Int32: + f.L1.Kind = protoreflect.Int32Kind + case reflect.Int64: + f.L1.Kind = protoreflect.Int64Kind + case reflect.Uint32: + f.L1.Kind = protoreflect.Uint32Kind + case reflect.Uint64: + f.L1.Kind = protoreflect.Uint64Kind + } + case s == "zigzag32": + if goType.Kind() == reflect.Int32 { + f.L1.Kind = protoreflect.Sint32Kind + } + case s == "zigzag64": + if goType.Kind() == reflect.Int64 { + f.L1.Kind = protoreflect.Sint64Kind + } + case s == "fixed32": + switch goType.Kind() { + case reflect.Int32: + f.L1.Kind = protoreflect.Sfixed32Kind + case reflect.Uint32: + f.L1.Kind = protoreflect.Fixed32Kind + case reflect.Float32: + f.L1.Kind = protoreflect.FloatKind + } + case s == "fixed64": + switch goType.Kind() { + case reflect.Int64: + f.L1.Kind = protoreflect.Sfixed64Kind + case reflect.Uint64: + f.L1.Kind = protoreflect.Fixed64Kind + case reflect.Float64: + f.L1.Kind = protoreflect.DoubleKind + } + case s == "bytes": + switch { + case goType.Kind() == reflect.String: + f.L1.Kind = protoreflect.StringKind + case goType.Kind() == reflect.Slice && goType.Elem() == byteType: + f.L1.Kind = protoreflect.BytesKind + default: + f.L1.Kind = protoreflect.MessageKind + } + case s == "group": + f.L1.Kind = protoreflect.GroupKind + case strings.HasPrefix(s, "enum="): + f.L1.Kind = protoreflect.EnumKind + case strings.HasPrefix(s, "json="): + jsonName := s[len("json="):] + if jsonName != strs.JSONCamelCase(string(f.L0.FullName.Name())) { + f.L1.StringName.InitJSON(jsonName) + } + case s == "packed": + f.L1.HasPacked = true + f.L1.IsPacked = true + case strings.HasPrefix(s, "weak="): + f.L1.IsWeak = true + f.L1.Message = filedesc.PlaceholderMessage(protoreflect.FullName(s[len("weak="):])) + case strings.HasPrefix(s, "def="): + // The default tag is special in that everything afterwards is the + // default regardless of the presence of commas. + s, i = tag[len("def="):], len(tag) + v, ev, _ := defval.Unmarshal(s, f.L1.Kind, evs, defval.GoTag) + f.L1.Default = filedesc.DefaultValue(v, ev) + case s == "proto3": + f.L0.ParentFile = filedesc.SurrogateProto3 + } + tag = strings.TrimPrefix(tag[i:], ",") + } + + // The generator uses the group message name instead of the field name. + // We obtain the real field name by lowercasing the group name. + if f.L1.Kind == protoreflect.GroupKind { + f.L0.FullName = protoreflect.FullName(strings.ToLower(string(f.L0.FullName))) + } + return f +} + +// Marshal encodes the protoreflect.FieldDescriptor as a tag. +// +// The enumName must be provided if the kind is an enum. +// Historically, the formulation of the enum "name" was the proto package +// dot-concatenated with the generated Go identifier for the enum type. +// Depending on the context on how Marshal is called, there are different ways +// through which that information is determined. As such it is the caller's +// responsibility to provide a function to obtain that information. +func Marshal(fd protoreflect.FieldDescriptor, enumName string) string { + var tag []string + switch fd.Kind() { + case protoreflect.BoolKind, protoreflect.EnumKind, protoreflect.Int32Kind, protoreflect.Uint32Kind, protoreflect.Int64Kind, protoreflect.Uint64Kind: + tag = append(tag, "varint") + case protoreflect.Sint32Kind: + tag = append(tag, "zigzag32") + case protoreflect.Sint64Kind: + tag = append(tag, "zigzag64") + case protoreflect.Sfixed32Kind, protoreflect.Fixed32Kind, protoreflect.FloatKind: + tag = append(tag, "fixed32") + case protoreflect.Sfixed64Kind, protoreflect.Fixed64Kind, protoreflect.DoubleKind: + tag = append(tag, "fixed64") + case protoreflect.StringKind, protoreflect.BytesKind, protoreflect.MessageKind: + tag = append(tag, "bytes") + case protoreflect.GroupKind: + tag = append(tag, "group") + } + tag = append(tag, strconv.Itoa(int(fd.Number()))) + switch fd.Cardinality() { + case protoreflect.Optional: + tag = append(tag, "opt") + case protoreflect.Required: + tag = append(tag, "req") + case protoreflect.Repeated: + tag = append(tag, "rep") + } + if fd.IsPacked() { + tag = append(tag, "packed") + } + name := string(fd.Name()) + if fd.Kind() == protoreflect.GroupKind { + // The name of the FieldDescriptor for a group field is + // lowercased. To find the original capitalization, we + // look in the field's MessageType. + name = string(fd.Message().Name()) + } + tag = append(tag, "name="+name) + if jsonName := fd.JSONName(); jsonName != "" && jsonName != name && !fd.IsExtension() { + // NOTE: The jsonName != name condition is suspect, but it preserve + // the exact same semantics from the previous generator. + tag = append(tag, "json="+jsonName) + } + if fd.IsWeak() { + tag = append(tag, "weak="+string(fd.Message().FullName())) + } + // The previous implementation does not tag extension fields as proto3, + // even when the field is defined in a proto3 file. Match that behavior + // for consistency. + if fd.Syntax() == protoreflect.Proto3 && !fd.IsExtension() { + tag = append(tag, "proto3") + } + if fd.Kind() == protoreflect.EnumKind && enumName != "" { + tag = append(tag, "enum="+enumName) + } + if fd.ContainingOneof() != nil { + tag = append(tag, "oneof") + } + // This must appear last in the tag, since commas in strings aren't escaped. + if fd.HasDefault() { + def, _ := defval.Marshal(fd.Default(), fd.DefaultEnumValue(), fd.Kind(), defval.GoTag) + tag = append(tag, "def="+def) + } + return strings.Join(tag, ",") +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go new file mode 100644 index 0000000..427c62d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go @@ -0,0 +1,685 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "bytes" + "fmt" + "io" + "strconv" + "unicode/utf8" + + "google.golang.org/protobuf/internal/errors" +) + +// Decoder is a token-based textproto decoder. +type Decoder struct { + // lastCall is last method called, either readCall or peekCall. + // Initial value is readCall. + lastCall call + + // lastToken contains the last read token. + lastToken Token + + // lastErr contains the last read error. + lastErr error + + // openStack is a stack containing the byte characters for MessageOpen and + // ListOpen kinds. The top of stack represents the message or the list that + // the current token is nested in. An empty stack means the current token is + // at the top level message. The characters '{' and '<' both represent the + // MessageOpen kind. + openStack []byte + + // orig is used in reporting line and column. + orig []byte + // in contains the unconsumed input. + in []byte +} + +// NewDecoder returns a Decoder to read the given []byte. +func NewDecoder(b []byte) *Decoder { + return &Decoder{orig: b, in: b} +} + +// ErrUnexpectedEOF means that EOF was encountered in the middle of the input. +var ErrUnexpectedEOF = errors.New("%v", io.ErrUnexpectedEOF) + +// call specifies which Decoder method was invoked. +type call uint8 + +const ( + readCall call = iota + peekCall +) + +// Peek looks ahead and returns the next token and error without advancing a read. +func (d *Decoder) Peek() (Token, error) { + defer func() { d.lastCall = peekCall }() + if d.lastCall == readCall { + d.lastToken, d.lastErr = d.Read() + } + return d.lastToken, d.lastErr +} + +// Read returns the next token. +// It will return an error if there is no valid token. +func (d *Decoder) Read() (Token, error) { + defer func() { d.lastCall = readCall }() + if d.lastCall == peekCall { + return d.lastToken, d.lastErr + } + + tok, err := d.parseNext(d.lastToken.kind) + if err != nil { + return Token{}, err + } + + switch tok.kind { + case comma, semicolon: + tok, err = d.parseNext(tok.kind) + if err != nil { + return Token{}, err + } + } + d.lastToken = tok + return tok, nil +} + +const ( + mismatchedFmt = "mismatched close character %q" + unexpectedFmt = "unexpected character %q" +) + +// parseNext parses the next Token based on given last kind. +func (d *Decoder) parseNext(lastKind Kind) (Token, error) { + // Trim leading spaces. + d.consume(0) + isEOF := false + if len(d.in) == 0 { + isEOF = true + } + + switch lastKind { + case EOF: + return d.consumeToken(EOF, 0, 0), nil + + case bof: + // Start of top level message. Next token can be EOF or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + return d.parseFieldName() + + case Name: + // Next token can be MessageOpen, ListOpen or Scalar. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case '{', '<': + d.pushOpenStack(ch) + return d.consumeToken(MessageOpen, 1, 0), nil + case '[': + d.pushOpenStack(ch) + return d.consumeToken(ListOpen, 1, 0), nil + default: + return d.parseScalar() + } + + case Scalar: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. + // Next token can be EOF, comma, semicolon or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + switch d.in[0] { + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case MessageOpen: + // Next token can be MessageClose, comma, semicolon or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case ListOpen: + // Next token can be ListClose or comma. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case ']': + d.popOpenStack() + return d.consumeToken(ListClose, 1, 0), nil + case ',': + return d.consumeToken(comma, 1, 0), nil + default: + return Token{}, d.newSyntaxError(unexpectedFmt, ch) + } + } + + case MessageOpen: + // Next token can be MessageClose or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + _, closeCh := d.currentOpenKind() + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + default: + return d.parseFieldName() + } + + case MessageClose: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. + // Next token can be EOF, comma, semicolon or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + switch ch := d.in[0]; ch { + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case MessageOpen: + // Next token can be MessageClose, comma, semicolon or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case ListOpen: + // Next token can be ListClose or comma + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(ListClose, 1, 0), nil + case ',': + return d.consumeToken(comma, 1, 0), nil + default: + return Token{}, d.newSyntaxError(unexpectedFmt, ch) + } + } + + case ListOpen: + // Next token can be ListClose, MessageStart or Scalar. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case ']': + d.popOpenStack() + return d.consumeToken(ListClose, 1, 0), nil + case '{', '<': + d.pushOpenStack(ch) + return d.consumeToken(MessageOpen, 1, 0), nil + default: + return d.parseScalar() + } + + case ListClose: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. + // Next token can be EOF, comma, semicolon or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + switch ch := d.in[0]; ch { + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + case MessageOpen: + // Next token can be MessageClose, comma, semicolon or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + case ',': + return d.consumeToken(comma, 1, 0), nil + case ';': + return d.consumeToken(semicolon, 1, 0), nil + default: + return d.parseFieldName() + } + + default: + // It is not possible to have this case. Let it panic below. + } + + case comma, semicolon: + openKind, closeCh := d.currentOpenKind() + switch openKind { + case bof: + // Top level message. Next token can be EOF or Name. + if isEOF { + return d.consumeToken(EOF, 0, 0), nil + } + return d.parseFieldName() + + case MessageOpen: + // Next token can be MessageClose or Name. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case closeCh: + d.popOpenStack() + return d.consumeToken(MessageClose, 1, 0), nil + case otherCloseChar[closeCh]: + return Token{}, d.newSyntaxError(mismatchedFmt, ch) + default: + return d.parseFieldName() + } + + case ListOpen: + if lastKind == semicolon { + // It is not be possible to have this case as logic here + // should not have produced a semicolon Token when inside a + // list. Let it panic below. + break + } + // Next token can be MessageOpen or Scalar. + if isEOF { + return Token{}, ErrUnexpectedEOF + } + switch ch := d.in[0]; ch { + case '{', '<': + d.pushOpenStack(ch) + return d.consumeToken(MessageOpen, 1, 0), nil + default: + return d.parseScalar() + } + } + } + + line, column := d.Position(len(d.orig) - len(d.in)) + panic(fmt.Sprintf("Decoder.parseNext: bug at handling line %d:%d with lastKind=%v", line, column, lastKind)) +} + +var otherCloseChar = map[byte]byte{ + '}': '>', + '>': '}', +} + +// currentOpenKind indicates whether current position is inside a message, list +// or top-level message by returning MessageOpen, ListOpen or bof respectively. +// If the returned kind is either a MessageOpen or ListOpen, it also returns the +// corresponding closing character. +func (d *Decoder) currentOpenKind() (Kind, byte) { + if len(d.openStack) == 0 { + return bof, 0 + } + openCh := d.openStack[len(d.openStack)-1] + switch openCh { + case '{': + return MessageOpen, '}' + case '<': + return MessageOpen, '>' + case '[': + return ListOpen, ']' + } + panic(fmt.Sprintf("Decoder: openStack contains invalid byte %c", openCh)) +} + +func (d *Decoder) pushOpenStack(ch byte) { + d.openStack = append(d.openStack, ch) +} + +func (d *Decoder) popOpenStack() { + d.openStack = d.openStack[:len(d.openStack)-1] +} + +// parseFieldName parses field name and separator. +func (d *Decoder) parseFieldName() (tok Token, err error) { + defer func() { + if err == nil && d.tryConsumeChar(':') { + tok.attrs |= hasSeparator + } + }() + + // Extension or Any type URL. + if d.in[0] == '[' { + return d.parseTypeName() + } + + // Identifier. + if size := parseIdent(d.in, false); size > 0 { + return d.consumeToken(Name, size, uint8(IdentName)), nil + } + + // Field number. Identify if input is a valid number that is not negative + // and is decimal integer within 32-bit range. + if num := parseNumber(d.in); num.size > 0 { + if !num.neg && num.kind == numDec { + if _, err := strconv.ParseInt(string(d.in[:num.size]), 10, 32); err == nil { + return d.consumeToken(Name, num.size, uint8(FieldNumber)), nil + } + } + return Token{}, d.newSyntaxError("invalid field number: %s", d.in[:num.size]) + } + + return Token{}, d.newSyntaxError("invalid field name: %s", errId(d.in)) +} + +// parseTypeName parses Any type URL or extension field name. The name is +// enclosed in [ and ] characters. The C++ parser does not handle many legal URL +// strings. This implementation is more liberal and allows for the pattern +// ^[-_a-zA-Z0-9]+([./][-_a-zA-Z0-9]+)*`). Whitespaces and comments are allowed +// in between [ ], '.', '/' and the sub names. +func (d *Decoder) parseTypeName() (Token, error) { + startPos := len(d.orig) - len(d.in) + // Use alias s to advance first in order to use d.in for error handling. + // Caller already checks for [ as first character. + s := consume(d.in[1:], 0) + if len(s) == 0 { + return Token{}, ErrUnexpectedEOF + } + + var name []byte + for len(s) > 0 && isTypeNameChar(s[0]) { + name = append(name, s[0]) + s = s[1:] + } + s = consume(s, 0) + + var closed bool + for len(s) > 0 && !closed { + switch { + case s[0] == ']': + s = s[1:] + closed = true + + case s[0] == '/', s[0] == '.': + if len(name) > 0 && (name[len(name)-1] == '/' || name[len(name)-1] == '.') { + return Token{}, d.newSyntaxError("invalid type URL/extension field name: %s", + d.orig[startPos:len(d.orig)-len(s)+1]) + } + name = append(name, s[0]) + s = s[1:] + s = consume(s, 0) + for len(s) > 0 && isTypeNameChar(s[0]) { + name = append(name, s[0]) + s = s[1:] + } + s = consume(s, 0) + + default: + return Token{}, d.newSyntaxError( + "invalid type URL/extension field name: %s", d.orig[startPos:len(d.orig)-len(s)+1]) + } + } + + if !closed { + return Token{}, ErrUnexpectedEOF + } + + // First character cannot be '.'. Last character cannot be '.' or '/'. + size := len(name) + if size == 0 || name[0] == '.' || name[size-1] == '.' || name[size-1] == '/' { + return Token{}, d.newSyntaxError("invalid type URL/extension field name: %s", + d.orig[startPos:len(d.orig)-len(s)]) + } + + d.in = s + endPos := len(d.orig) - len(d.in) + d.consume(0) + + return Token{ + kind: Name, + attrs: uint8(TypeName), + pos: startPos, + raw: d.orig[startPos:endPos], + str: string(name), + }, nil +} + +func isTypeNameChar(b byte) bool { + return (b == '-' || b == '_' || + ('0' <= b && b <= '9') || + ('a' <= b && b <= 'z') || + ('A' <= b && b <= 'Z')) +} + +func isWhiteSpace(b byte) bool { + switch b { + case ' ', '\n', '\r', '\t': + return true + default: + return false + } +} + +// parseIdent parses an unquoted proto identifier and returns size. +// If allowNeg is true, it allows '-' to be the first character in the +// identifier. This is used when parsing literal values like -infinity, etc. +// Regular expression matches an identifier: `^[_a-zA-Z][_a-zA-Z0-9]*` +func parseIdent(input []byte, allowNeg bool) int { + var size int + + s := input + if len(s) == 0 { + return 0 + } + + if allowNeg && s[0] == '-' { + s = s[1:] + size++ + if len(s) == 0 { + return 0 + } + } + + switch { + case s[0] == '_', + 'a' <= s[0] && s[0] <= 'z', + 'A' <= s[0] && s[0] <= 'Z': + s = s[1:] + size++ + default: + return 0 + } + + for len(s) > 0 && (s[0] == '_' || + 'a' <= s[0] && s[0] <= 'z' || + 'A' <= s[0] && s[0] <= 'Z' || + '0' <= s[0] && s[0] <= '9') { + s = s[1:] + size++ + } + + if len(s) > 0 && !isDelim(s[0]) { + return 0 + } + + return size +} + +// parseScalar parses for a string, literal or number value. +func (d *Decoder) parseScalar() (Token, error) { + if d.in[0] == '"' || d.in[0] == '\'' { + return d.parseStringValue() + } + + if tok, ok := d.parseLiteralValue(); ok { + return tok, nil + } + + if tok, ok := d.parseNumberValue(); ok { + return tok, nil + } + + return Token{}, d.newSyntaxError("invalid scalar value: %s", errId(d.in)) +} + +// parseLiteralValue parses a literal value. A literal value is used for +// bools, special floats and enums. This function simply identifies that the +// field value is a literal. +func (d *Decoder) parseLiteralValue() (Token, bool) { + size := parseIdent(d.in, true) + if size == 0 { + return Token{}, false + } + return d.consumeToken(Scalar, size, literalValue), true +} + +// consumeToken constructs a Token for given Kind from d.in and consumes given +// size-length from it. +func (d *Decoder) consumeToken(kind Kind, size int, attrs uint8) Token { + // Important to compute raw and pos before consuming. + tok := Token{ + kind: kind, + attrs: attrs, + pos: len(d.orig) - len(d.in), + raw: d.in[:size], + } + d.consume(size) + return tok +} + +// newSyntaxError returns a syntax error with line and column information for +// current position. +func (d *Decoder) newSyntaxError(f string, x ...interface{}) error { + e := errors.New(f, x...) + line, column := d.Position(len(d.orig) - len(d.in)) + return errors.New("syntax error (line %d:%d): %v", line, column, e) +} + +// Position returns line and column number of given index of the original input. +// It will panic if index is out of range. +func (d *Decoder) Position(idx int) (line int, column int) { + b := d.orig[:idx] + line = bytes.Count(b, []byte("\n")) + 1 + if i := bytes.LastIndexByte(b, '\n'); i >= 0 { + b = b[i+1:] + } + column = utf8.RuneCount(b) + 1 // ignore multi-rune characters + return line, column +} + +func (d *Decoder) tryConsumeChar(c byte) bool { + if len(d.in) > 0 && d.in[0] == c { + d.consume(1) + return true + } + return false +} + +// consume consumes n bytes of input and any subsequent whitespace or comments. +func (d *Decoder) consume(n int) { + d.in = consume(d.in, n) + return +} + +// consume consumes n bytes of input and any subsequent whitespace or comments. +func consume(b []byte, n int) []byte { + b = b[n:] + for len(b) > 0 { + switch b[0] { + case ' ', '\n', '\r', '\t': + b = b[1:] + case '#': + if i := bytes.IndexByte(b, '\n'); i >= 0 { + b = b[i+len("\n"):] + } else { + b = nil + } + default: + return b + } + } + return b +} + +// errId extracts a byte sequence that looks like an invalid ID +// (for the purposes of error reporting). +func errId(seq []byte) []byte { + const maxLen = 32 + for i := 0; i < len(seq); { + if i > maxLen { + return append(seq[:i:i], "…"...) + } + r, size := utf8.DecodeRune(seq[i:]) + if r > utf8.RuneSelf || (r != '/' && isDelim(byte(r))) { + if i == 0 { + // Either the first byte is invalid UTF-8 or a + // delimiter, or the first rune is non-ASCII. + // Return it as-is. + i = size + } + return seq[:i:i] + } + i += size + } + // No delimiter found. + return seq +} + +// isDelim returns true if given byte is a delimiter character. +func isDelim(c byte) bool { + return !(c == '-' || c == '+' || c == '.' || c == '_' || + ('a' <= c && c <= 'z') || + ('A' <= c && c <= 'Z') || + ('0' <= c && c <= '9')) +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go new file mode 100644 index 0000000..81a5d8c --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_number.go @@ -0,0 +1,192 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +// parseNumberValue parses a number from the input and returns a Token object. +func (d *Decoder) parseNumberValue() (Token, bool) { + in := d.in + num := parseNumber(in) + if num.size == 0 { + return Token{}, false + } + numAttrs := num.kind + if num.neg { + numAttrs |= isNegative + } + strSize := num.size + last := num.size - 1 + if num.kind == numFloat && (d.in[last] == 'f' || d.in[last] == 'F') { + strSize = last + } + tok := Token{ + kind: Scalar, + attrs: numberValue, + pos: len(d.orig) - len(d.in), + raw: d.in[:num.size], + str: string(d.in[:strSize]), + numAttrs: numAttrs, + } + d.consume(num.size) + return tok, true +} + +const ( + numDec uint8 = (1 << iota) / 2 + numHex + numOct + numFloat +) + +// number is the result of parsing out a valid number from parseNumber. It +// contains data for doing float or integer conversion via the strconv package +// in conjunction with the input bytes. +type number struct { + kind uint8 + neg bool + size int +} + +// parseNumber constructs a number object from given input. It allows for the +// following patterns: +// +// integer: ^-?([1-9][0-9]*|0[xX][0-9a-fA-F]+|0[0-7]*) +// float: ^-?((0|[1-9][0-9]*)?([.][0-9]*)?([eE][+-]?[0-9]+)?[fF]?) +// +// It also returns the number of parsed bytes for the given number, 0 if it is +// not a number. +func parseNumber(input []byte) number { + kind := numDec + var size int + var neg bool + + s := input + if len(s) == 0 { + return number{} + } + + // Optional - + if s[0] == '-' { + neg = true + s = s[1:] + size++ + if len(s) == 0 { + return number{} + } + } + + // C++ allows for whitespace and comments in between the negative sign and + // the rest of the number. This logic currently does not but is consistent + // with v1. + + switch { + case s[0] == '0': + if len(s) > 1 { + switch { + case s[1] == 'x' || s[1] == 'X': + // Parse as hex number. + kind = numHex + n := 2 + s = s[2:] + for len(s) > 0 && (('0' <= s[0] && s[0] <= '9') || + ('a' <= s[0] && s[0] <= 'f') || + ('A' <= s[0] && s[0] <= 'F')) { + s = s[1:] + n++ + } + if n == 2 { + return number{} + } + size += n + + case '0' <= s[1] && s[1] <= '7': + // Parse as octal number. + kind = numOct + n := 2 + s = s[2:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '7' { + s = s[1:] + n++ + } + size += n + } + + if kind&(numHex|numOct) > 0 { + if len(s) > 0 && !isDelim(s[0]) { + return number{} + } + return number{kind: kind, neg: neg, size: size} + } + } + s = s[1:] + size++ + + case '1' <= s[0] && s[0] <= '9': + n := 1 + s = s[1:] + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + size += n + + case s[0] == '.': + // Set kind to numFloat to signify the intent to parse as float. And + // that it needs to have other digits after '.'. + kind = numFloat + + default: + return number{} + } + + // . followed by 0 or more digits. + if len(s) > 0 && s[0] == '.' { + n := 1 + s = s[1:] + // If decimal point was before any digits, it should be followed by + // other digits. + if len(s) == 0 && kind == numFloat { + return number{} + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + size += n + kind = numFloat + } + + // e or E followed by an optional - or + and 1 or more digits. + if len(s) >= 2 && (s[0] == 'e' || s[0] == 'E') { + kind = numFloat + s = s[1:] + n := 1 + if s[0] == '+' || s[0] == '-' { + s = s[1:] + n++ + if len(s) == 0 { + return number{} + } + } + for len(s) > 0 && '0' <= s[0] && s[0] <= '9' { + s = s[1:] + n++ + } + size += n + } + + // Optional suffix f or F for floats. + if len(s) > 0 && (s[0] == 'f' || s[0] == 'F') { + kind = numFloat + s = s[1:] + size++ + } + + // Check that next byte is a delimiter or it is at the end. + if len(s) > 0 && !isDelim(s[0]) { + return number{} + } + + return number{kind: kind, neg: neg, size: size} +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go new file mode 100644 index 0000000..d4d3490 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_string.go @@ -0,0 +1,161 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "bytes" + "strconv" + "strings" + "unicode" + "unicode/utf16" + "unicode/utf8" + + "google.golang.org/protobuf/internal/strs" +) + +// parseStringValue parses string field token. +// This differs from parseString since the text format allows +// multiple back-to-back string literals where they are semantically treated +// as a single large string with all values concatenated. +// +// E.g., `"foo" "bar" "baz"` => "foobarbaz" +func (d *Decoder) parseStringValue() (Token, error) { + // Note that the ending quote is sufficient to unambiguously mark the end + // of a string. Thus, the text grammar does not require intervening + // whitespace or control characters in-between strings. + // Thus, the following is valid: + // `"foo"'bar'"baz"` => "foobarbaz" + in0 := d.in + var ss []string + for len(d.in) > 0 && (d.in[0] == '"' || d.in[0] == '\'') { + s, err := d.parseString() + if err != nil { + return Token{}, err + } + ss = append(ss, s) + } + // d.in already points to the end of the value at this point. + return Token{ + kind: Scalar, + attrs: stringValue, + pos: len(d.orig) - len(in0), + raw: in0[:len(in0)-len(d.in)], + str: strings.Join(ss, ""), + }, nil +} + +// parseString parses a string value enclosed in " or '. +func (d *Decoder) parseString() (string, error) { + in := d.in + if len(in) == 0 { + return "", ErrUnexpectedEOF + } + quote := in[0] + in = in[1:] + i := indexNeedEscapeInBytes(in) + in, out := in[i:], in[:i:i] // set cap to prevent mutations + for len(in) > 0 { + switch r, n := utf8.DecodeRune(in); { + case r == utf8.RuneError && n == 1: + return "", d.newSyntaxError("invalid UTF-8 detected") + case r == 0 || r == '\n': + return "", d.newSyntaxError("invalid character %q in string", r) + case r == rune(quote): + in = in[1:] + d.consume(len(d.in) - len(in)) + return string(out), nil + case r == '\\': + if len(in) < 2 { + return "", ErrUnexpectedEOF + } + switch r := in[1]; r { + case '"', '\'', '\\', '?': + in, out = in[2:], append(out, r) + case 'a': + in, out = in[2:], append(out, '\a') + case 'b': + in, out = in[2:], append(out, '\b') + case 'n': + in, out = in[2:], append(out, '\n') + case 'r': + in, out = in[2:], append(out, '\r') + case 't': + in, out = in[2:], append(out, '\t') + case 'v': + in, out = in[2:], append(out, '\v') + case 'f': + in, out = in[2:], append(out, '\f') + case '0', '1', '2', '3', '4', '5', '6', '7': + // One, two, or three octal characters. + n := len(in[1:]) - len(bytes.TrimLeft(in[1:], "01234567")) + if n > 3 { + n = 3 + } + v, err := strconv.ParseUint(string(in[1:1+n]), 8, 8) + if err != nil { + return "", d.newSyntaxError("invalid octal escape code %q in string", in[:1+n]) + } + in, out = in[1+n:], append(out, byte(v)) + case 'x': + // One or two hexadecimal characters. + n := len(in[2:]) - len(bytes.TrimLeft(in[2:], "0123456789abcdefABCDEF")) + if n > 2 { + n = 2 + } + v, err := strconv.ParseUint(string(in[2:2+n]), 16, 8) + if err != nil { + return "", d.newSyntaxError("invalid hex escape code %q in string", in[:2+n]) + } + in, out = in[2+n:], append(out, byte(v)) + case 'u', 'U': + // Four or eight hexadecimal characters + n := 6 + if r == 'U' { + n = 10 + } + if len(in) < n { + return "", ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:n]), 16, 32) + if utf8.MaxRune < v || err != nil { + return "", d.newSyntaxError("invalid Unicode escape code %q in string", in[:n]) + } + in = in[n:] + + r := rune(v) + if utf16.IsSurrogate(r) { + if len(in) < 6 { + return "", ErrUnexpectedEOF + } + v, err := strconv.ParseUint(string(in[2:6]), 16, 16) + r = utf16.DecodeRune(r, rune(v)) + if in[0] != '\\' || in[1] != 'u' || r == unicode.ReplacementChar || err != nil { + return "", d.newSyntaxError("invalid Unicode escape code %q in string", in[:6]) + } + in = in[6:] + } + out = append(out, string(r)...) + default: + return "", d.newSyntaxError("invalid escape code %q in string", in[:2]) + } + default: + i := indexNeedEscapeInBytes(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + return "", ErrUnexpectedEOF +} + +// indexNeedEscapeInString returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInBytes(b []byte) int { return indexNeedEscapeInString(strs.UnsafeString(b)) } + +// UnmarshalString returns an unescaped string given a textproto string value. +// String value needs to contain single or double quotes. This is only used by +// internal/encoding/defval package for unmarshaling bytes. +func UnmarshalString(s string) (string, error) { + d := NewDecoder([]byte(s)) + return d.parseString() +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go new file mode 100644 index 0000000..83d2b0d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode_token.go @@ -0,0 +1,373 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "bytes" + "fmt" + "math" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/flags" +) + +// Kind represents a token kind expressible in the textproto format. +type Kind uint8 + +// Kind values. +const ( + Invalid Kind = iota + EOF + Name // Name indicates the field name. + Scalar // Scalar are scalar values, e.g. "string", 47, ENUM_LITERAL, true. + MessageOpen + MessageClose + ListOpen + ListClose + + // comma and semi-colon are only for parsing in between values and should not be exposed. + comma + semicolon + + // bof indicates beginning of file, which is the default token + // kind at the beginning of parsing. + bof = Invalid +) + +func (t Kind) String() string { + switch t { + case Invalid: + return "" + case EOF: + return "eof" + case Scalar: + return "scalar" + case Name: + return "name" + case MessageOpen: + return "{" + case MessageClose: + return "}" + case ListOpen: + return "[" + case ListClose: + return "]" + case comma: + return "," + case semicolon: + return ";" + default: + return fmt.Sprintf("", uint8(t)) + } +} + +// NameKind represents different types of field names. +type NameKind uint8 + +// NameKind values. +const ( + IdentName NameKind = iota + 1 + TypeName + FieldNumber +) + +func (t NameKind) String() string { + switch t { + case IdentName: + return "IdentName" + case TypeName: + return "TypeName" + case FieldNumber: + return "FieldNumber" + default: + return fmt.Sprintf("", uint8(t)) + } +} + +// Bit mask in Token.attrs to indicate if a Name token is followed by the +// separator char ':'. The field name separator char is optional for message +// field or repeated message field, but required for all other types. Decoder +// simply indicates whether a Name token is followed by separator or not. It is +// up to the prototext package to validate. +const hasSeparator = 1 << 7 + +// Scalar value types. +const ( + numberValue = iota + 1 + stringValue + literalValue +) + +// Bit mask in Token.numAttrs to indicate that the number is a negative. +const isNegative = 1 << 7 + +// Token provides a parsed token kind and value. Values are provided by the +// different accessor methods. +type Token struct { + // Kind of the Token object. + kind Kind + // attrs contains metadata for the following Kinds: + // Name: hasSeparator bit and one of NameKind. + // Scalar: one of numberValue, stringValue, literalValue. + attrs uint8 + // numAttrs contains metadata for numberValue: + // - highest bit is whether negative or positive. + // - lower bits indicate one of numDec, numHex, numOct, numFloat. + numAttrs uint8 + // pos provides the position of the token in the original input. + pos int + // raw bytes of the serialized token. + // This is a subslice into the original input. + raw []byte + // str contains parsed string for the following: + // - stringValue of Scalar kind + // - numberValue of Scalar kind + // - TypeName of Name kind + str string +} + +// Kind returns the token kind. +func (t Token) Kind() Kind { + return t.kind +} + +// RawString returns the read value in string. +func (t Token) RawString() string { + return string(t.raw) +} + +// Pos returns the token position from the input. +func (t Token) Pos() int { + return t.pos +} + +// NameKind returns IdentName, TypeName or FieldNumber. +// It panics if type is not Name. +func (t Token) NameKind() NameKind { + if t.kind == Name { + return NameKind(t.attrs &^ hasSeparator) + } + panic(fmt.Sprintf("Token is not a Name type: %s", t.kind)) +} + +// HasSeparator returns true if the field name is followed by the separator char +// ':', else false. It panics if type is not Name. +func (t Token) HasSeparator() bool { + if t.kind == Name { + return t.attrs&hasSeparator != 0 + } + panic(fmt.Sprintf("Token is not a Name type: %s", t.kind)) +} + +// IdentName returns the value for IdentName type. +func (t Token) IdentName() string { + if t.kind == Name && t.attrs&uint8(IdentName) != 0 { + return string(t.raw) + } + panic(fmt.Sprintf("Token is not an IdentName: %s:%s", t.kind, NameKind(t.attrs&^hasSeparator))) +} + +// TypeName returns the value for TypeName type. +func (t Token) TypeName() string { + if t.kind == Name && t.attrs&uint8(TypeName) != 0 { + return t.str + } + panic(fmt.Sprintf("Token is not a TypeName: %s:%s", t.kind, NameKind(t.attrs&^hasSeparator))) +} + +// FieldNumber returns the value for FieldNumber type. It returns a +// non-negative int32 value. Caller will still need to validate for the correct +// field number range. +func (t Token) FieldNumber() int32 { + if t.kind != Name || t.attrs&uint8(FieldNumber) == 0 { + panic(fmt.Sprintf("Token is not a FieldNumber: %s:%s", t.kind, NameKind(t.attrs&^hasSeparator))) + } + // Following should not return an error as it had already been called right + // before this Token was constructed. + num, _ := strconv.ParseInt(string(t.raw), 10, 32) + return int32(num) +} + +// String returns the string value for a Scalar type. +func (t Token) String() (string, bool) { + if t.kind != Scalar || t.attrs != stringValue { + return "", false + } + return t.str, true +} + +// Enum returns the literal value for a Scalar type for use as enum literals. +func (t Token) Enum() (string, bool) { + if t.kind != Scalar || t.attrs != literalValue || (len(t.raw) > 0 && t.raw[0] == '-') { + return "", false + } + return string(t.raw), true +} + +// Bool returns the bool value for a Scalar type. +func (t Token) Bool() (bool, bool) { + if t.kind != Scalar { + return false, false + } + switch t.attrs { + case literalValue: + if b, ok := boolLits[string(t.raw)]; ok { + return b, true + } + case numberValue: + // Unsigned integer representation of 0 or 1 is permitted: 00, 0x0, 01, + // 0x1, etc. + n, err := strconv.ParseUint(t.str, 0, 64) + if err == nil { + switch n { + case 0: + return false, true + case 1: + return true, true + } + } + } + return false, false +} + +// These exact boolean literals are the ones supported in C++. +var boolLits = map[string]bool{ + "t": true, + "true": true, + "True": true, + "f": false, + "false": false, + "False": false, +} + +// Uint64 returns the uint64 value for a Scalar type. +func (t Token) Uint64() (uint64, bool) { + if t.kind != Scalar || t.attrs != numberValue || + t.numAttrs&isNegative > 0 || t.numAttrs&numFloat > 0 { + return 0, false + } + n, err := strconv.ParseUint(t.str, 0, 64) + if err != nil { + return 0, false + } + return n, true +} + +// Uint32 returns the uint32 value for a Scalar type. +func (t Token) Uint32() (uint32, bool) { + if t.kind != Scalar || t.attrs != numberValue || + t.numAttrs&isNegative > 0 || t.numAttrs&numFloat > 0 { + return 0, false + } + n, err := strconv.ParseUint(t.str, 0, 32) + if err != nil { + return 0, false + } + return uint32(n), true +} + +// Int64 returns the int64 value for a Scalar type. +func (t Token) Int64() (int64, bool) { + if t.kind != Scalar || t.attrs != numberValue || t.numAttrs&numFloat > 0 { + return 0, false + } + if n, err := strconv.ParseInt(t.str, 0, 64); err == nil { + return n, true + } + // C++ accepts large positive hex numbers as negative values. + // This feature is here for proto1 backwards compatibility purposes. + if flags.ProtoLegacy && (t.numAttrs == numHex) { + if n, err := strconv.ParseUint(t.str, 0, 64); err == nil { + return int64(n), true + } + } + return 0, false +} + +// Int32 returns the int32 value for a Scalar type. +func (t Token) Int32() (int32, bool) { + if t.kind != Scalar || t.attrs != numberValue || t.numAttrs&numFloat > 0 { + return 0, false + } + if n, err := strconv.ParseInt(t.str, 0, 32); err == nil { + return int32(n), true + } + // C++ accepts large positive hex numbers as negative values. + // This feature is here for proto1 backwards compatibility purposes. + if flags.ProtoLegacy && (t.numAttrs == numHex) { + if n, err := strconv.ParseUint(t.str, 0, 32); err == nil { + return int32(n), true + } + } + return 0, false +} + +// Float64 returns the float64 value for a Scalar type. +func (t Token) Float64() (float64, bool) { + if t.kind != Scalar { + return 0, false + } + switch t.attrs { + case literalValue: + if f, ok := floatLits[strings.ToLower(string(t.raw))]; ok { + return f, true + } + case numberValue: + n, err := strconv.ParseFloat(t.str, 64) + if err == nil { + return n, true + } + nerr := err.(*strconv.NumError) + if nerr.Err == strconv.ErrRange { + return n, true + } + } + return 0, false +} + +// Float32 returns the float32 value for a Scalar type. +func (t Token) Float32() (float32, bool) { + if t.kind != Scalar { + return 0, false + } + switch t.attrs { + case literalValue: + if f, ok := floatLits[strings.ToLower(string(t.raw))]; ok { + return float32(f), true + } + case numberValue: + n, err := strconv.ParseFloat(t.str, 64) + if err == nil { + // Overflows are treated as (-)infinity. + return float32(n), true + } + nerr := err.(*strconv.NumError) + if nerr.Err == strconv.ErrRange { + return float32(n), true + } + } + return 0, false +} + +// These are the supported float literals which C++ permits case-insensitive +// variants of these. +var floatLits = map[string]float64{ + "nan": math.NaN(), + "inf": math.Inf(1), + "infinity": math.Inf(1), + "-inf": math.Inf(-1), + "-infinity": math.Inf(-1), +} + +// TokenEquals returns true if given Tokens are equal, else false. +func TokenEquals(x, y Token) bool { + return x.kind == y.kind && + x.attrs == y.attrs && + x.numAttrs == y.numAttrs && + x.pos == y.pos && + bytes.Equal(x.raw, y.raw) && + x.str == y.str +} diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go b/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go new file mode 100644 index 0000000..7ae6c2a --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/doc.go @@ -0,0 +1,29 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package text implements the text format for protocol buffers. +// This package has no semantic understanding for protocol buffers and is only +// a parser and composer for the format. +// +// There is no formal specification for the protobuf text format, as such the +// C++ implementation (see google::protobuf::TextFormat) is the reference +// implementation of the text format. +// +// This package is neither a superset nor a subset of the C++ implementation. +// This implementation permits a more liberal grammar in some cases to be +// backwards compatible with the historical Go implementation. +// Future parsings unique to Go should not be added. +// Some grammars allowed by the C++ implementation are deliberately +// not implemented here because they are considered a bug by the protobuf team +// and should not be replicated. +// +// The Go implementation should implement a sufficient amount of the C++ +// grammar such that the default text serialization by C++ can be parsed by Go. +// However, just because the C++ parser accepts some input does not mean that +// the Go implementation should as well. +// +// The text format is almost a superset of JSON except: +// - message keys are not quoted strings, but identifiers +// - the top-level value must be a message without the delimiters +package text diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go b/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go new file mode 100644 index 0000000..da289cc --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/encode.go @@ -0,0 +1,270 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package text + +import ( + "math" + "math/bits" + "strconv" + "strings" + "unicode/utf8" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/errors" +) + +// encType represents an encoding type. +type encType uint8 + +const ( + _ encType = (1 << iota) / 2 + name + scalar + messageOpen + messageClose +) + +// Encoder provides methods to write out textproto constructs and values. The user is +// responsible for producing valid sequences of constructs and values. +type Encoder struct { + encoderState + + indent string + delims [2]byte + outputASCII bool +} + +type encoderState struct { + lastType encType + indents []byte + out []byte +} + +// NewEncoder returns an Encoder. +// +// If indent is a non-empty string, it causes every entry in a List or Message +// to be preceded by the indent and trailed by a newline. +// +// If delims is not the zero value, it controls the delimiter characters used +// for messages (e.g., "{}" vs "<>"). +// +// If outputASCII is true, strings will be serialized in such a way that +// multi-byte UTF-8 sequences are escaped. This property ensures that the +// overall output is ASCII (as opposed to UTF-8). +func NewEncoder(indent string, delims [2]byte, outputASCII bool) (*Encoder, error) { + e := &Encoder{} + if len(indent) > 0 { + if strings.Trim(indent, " \t") != "" { + return nil, errors.New("indent may only be composed of space and tab characters") + } + e.indent = indent + } + switch delims { + case [2]byte{0, 0}: + e.delims = [2]byte{'{', '}'} + case [2]byte{'{', '}'}, [2]byte{'<', '>'}: + e.delims = delims + default: + return nil, errors.New("delimiters may only be \"{}\" or \"<>\"") + } + e.outputASCII = outputASCII + + return e, nil +} + +// Bytes returns the content of the written bytes. +func (e *Encoder) Bytes() []byte { + return e.out +} + +// StartMessage writes out the '{' or '<' symbol. +func (e *Encoder) StartMessage() { + e.prepareNext(messageOpen) + e.out = append(e.out, e.delims[0]) +} + +// EndMessage writes out the '}' or '>' symbol. +func (e *Encoder) EndMessage() { + e.prepareNext(messageClose) + e.out = append(e.out, e.delims[1]) +} + +// WriteName writes out the field name and the separator ':'. +func (e *Encoder) WriteName(s string) { + e.prepareNext(name) + e.out = append(e.out, s...) + e.out = append(e.out, ':') +} + +// WriteBool writes out the given boolean value. +func (e *Encoder) WriteBool(b bool) { + if b { + e.WriteLiteral("true") + } else { + e.WriteLiteral("false") + } +} + +// WriteString writes out the given string value. +func (e *Encoder) WriteString(s string) { + e.prepareNext(scalar) + e.out = appendString(e.out, s, e.outputASCII) +} + +func appendString(out []byte, in string, outputASCII bool) []byte { + out = append(out, '"') + i := indexNeedEscapeInString(in) + in, out = in[i:], append(out, in[:i]...) + for len(in) > 0 { + switch r, n := utf8.DecodeRuneInString(in); { + case r == utf8.RuneError && n == 1: + // We do not report invalid UTF-8 because strings in the text format + // are used to represent both the proto string and bytes type. + r = rune(in[0]) + fallthrough + case r < ' ' || r == '"' || r == '\\' || r == 0x7f: + out = append(out, '\\') + switch r { + case '"', '\\': + out = append(out, byte(r)) + case '\n': + out = append(out, 'n') + case '\r': + out = append(out, 'r') + case '\t': + out = append(out, 't') + default: + out = append(out, 'x') + out = append(out, "00"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } + in = in[n:] + case r >= utf8.RuneSelf && (outputASCII || r <= 0x009f): + out = append(out, '\\') + if r <= math.MaxUint16 { + out = append(out, 'u') + out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } else { + out = append(out, 'U') + out = append(out, "00000000"[1+(bits.Len32(uint32(r))-1)/4:]...) + out = strconv.AppendUint(out, uint64(r), 16) + } + in = in[n:] + default: + i := indexNeedEscapeInString(in[n:]) + in, out = in[n+i:], append(out, in[:n+i]...) + } + } + out = append(out, '"') + return out +} + +// indexNeedEscapeInString returns the index of the character that needs +// escaping. If no characters need escaping, this returns the input length. +func indexNeedEscapeInString(s string) int { + for i := 0; i < len(s); i++ { + if c := s[i]; c < ' ' || c == '"' || c == '\'' || c == '\\' || c >= 0x7f { + return i + } + } + return len(s) +} + +// WriteFloat writes out the given float value for given bitSize. +func (e *Encoder) WriteFloat(n float64, bitSize int) { + e.prepareNext(scalar) + e.out = appendFloat(e.out, n, bitSize) +} + +func appendFloat(out []byte, n float64, bitSize int) []byte { + switch { + case math.IsNaN(n): + return append(out, "nan"...) + case math.IsInf(n, +1): + return append(out, "inf"...) + case math.IsInf(n, -1): + return append(out, "-inf"...) + default: + return strconv.AppendFloat(out, n, 'g', -1, bitSize) + } +} + +// WriteInt writes out the given signed integer value. +func (e *Encoder) WriteInt(n int64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatInt(n, 10)...) +} + +// WriteUint writes out the given unsigned integer value. +func (e *Encoder) WriteUint(n uint64) { + e.prepareNext(scalar) + e.out = append(e.out, strconv.FormatUint(n, 10)...) +} + +// WriteLiteral writes out the given string as a literal value without quotes. +// This is used for writing enum literal strings. +func (e *Encoder) WriteLiteral(s string) { + e.prepareNext(scalar) + e.out = append(e.out, s...) +} + +// prepareNext adds possible space and indentation for the next value based +// on last encType and indent option. It also updates e.lastType to next. +func (e *Encoder) prepareNext(next encType) { + defer func() { + e.lastType = next + }() + + // Single line. + if len(e.indent) == 0 { + // Add space after each field before the next one. + if e.lastType&(scalar|messageClose) != 0 && next == name { + e.out = append(e.out, ' ') + // Add a random extra space to make output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + } + return + } + + // Multi-line. + switch { + case e.lastType == name: + e.out = append(e.out, ' ') + // Add a random extra space after name: to make output unstable. + if detrand.Bool() { + e.out = append(e.out, ' ') + } + + case e.lastType == messageOpen && next != messageClose: + e.indents = append(e.indents, e.indent...) + e.out = append(e.out, '\n') + e.out = append(e.out, e.indents...) + + case e.lastType&(scalar|messageClose) != 0: + if next == messageClose { + e.indents = e.indents[:len(e.indents)-len(e.indent)] + } + e.out = append(e.out, '\n') + e.out = append(e.out, e.indents...) + } +} + +// Snapshot returns the current snapshot for use in Reset. +func (e *Encoder) Snapshot() encoderState { + return e.encoderState +} + +// Reset resets the Encoder to the given encoderState from a Snapshot. +func (e *Encoder) Reset(es encoderState) { + e.encoderState = es +} + +// AppendString appends the escaped form of the input string to b. +func AppendString(b []byte, s string) []byte { + return appendString(b, s, false) +} diff --git a/vendor/google.golang.org/protobuf/internal/errors/errors.go b/vendor/google.golang.org/protobuf/internal/errors/errors.go new file mode 100644 index 0000000..20c17b3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/errors/errors.go @@ -0,0 +1,89 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package errors implements functions to manipulate errors. +package errors + +import ( + "errors" + "fmt" + + "google.golang.org/protobuf/internal/detrand" +) + +// Error is a sentinel matching all errors produced by this package. +var Error = errors.New("protobuf error") + +// New formats a string according to the format specifier and arguments and +// returns an error that has a "proto" prefix. +func New(f string, x ...interface{}) error { + return &prefixError{s: format(f, x...)} +} + +type prefixError struct{ s string } + +var prefix = func() string { + // Deliberately introduce instability into the error message string to + // discourage users from performing error string comparisons. + if detrand.Bool() { + return "proto: " // use non-breaking spaces (U+00a0) + } else { + return "proto: " // use regular spaces (U+0020) + } +}() + +func (e *prefixError) Error() string { + return prefix + e.s +} + +func (e *prefixError) Unwrap() error { + return Error +} + +// Wrap returns an error that has a "proto" prefix, the formatted string described +// by the format specifier and arguments, and a suffix of err. The error wraps err. +func Wrap(err error, f string, x ...interface{}) error { + return &wrapError{ + s: format(f, x...), + err: err, + } +} + +type wrapError struct { + s string + err error +} + +func (e *wrapError) Error() string { + return format("%v%v: %v", prefix, e.s, e.err) +} + +func (e *wrapError) Unwrap() error { + return e.err +} + +func (e *wrapError) Is(target error) bool { + return target == Error +} + +func format(f string, x ...interface{}) string { + // avoid "proto: " prefix when chaining + for i := 0; i < len(x); i++ { + switch e := x[i].(type) { + case *prefixError: + x[i] = e.s + case *wrapError: + x[i] = format("%v: %v", e.s, e.err) + } + } + return fmt.Sprintf(f, x...) +} + +func InvalidUTF8(name string) error { + return New("field %v contains invalid UTF-8", name) +} + +func RequiredNotSet(name string) error { + return New("required field %v not set", name) +} diff --git a/vendor/google.golang.org/protobuf/internal/errors/is_go112.go b/vendor/google.golang.org/protobuf/internal/errors/is_go112.go new file mode 100644 index 0000000..fbcd349 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/errors/is_go112.go @@ -0,0 +1,40 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !go1.13 +// +build !go1.13 + +package errors + +import "reflect" + +// Is is a copy of Go 1.13's errors.Is for use with older Go versions. +func Is(err, target error) bool { + if target == nil { + return err == target + } + + isComparable := reflect.TypeOf(target).Comparable() + for { + if isComparable && err == target { + return true + } + if x, ok := err.(interface{ Is(error) bool }); ok && x.Is(target) { + return true + } + if err = unwrap(err); err == nil { + return false + } + } +} + +func unwrap(err error) error { + u, ok := err.(interface { + Unwrap() error + }) + if !ok { + return nil + } + return u.Unwrap() +} diff --git a/vendor/google.golang.org/protobuf/internal/errors/is_go113.go b/vendor/google.golang.org/protobuf/internal/errors/is_go113.go new file mode 100644 index 0000000..5e72f1c --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/errors/is_go113.go @@ -0,0 +1,13 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.13 +// +build go1.13 + +package errors + +import "errors" + +// Is is errors.Is. +func Is(err, target error) bool { return errors.Is(err, target) } diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/build.go b/vendor/google.golang.org/protobuf/internal/filedesc/build.go new file mode 100644 index 0000000..7cac1c1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/build.go @@ -0,0 +1,157 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package filedesc provides functionality for constructing descriptors. +// +// The types in this package implement interfaces in the protoreflect package +// related to protobuf descripriptors. +package filedesc + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Builder construct a protoreflect.FileDescriptor from the raw descriptor. +type Builder struct { + // GoPackagePath is the Go package path that is invoking this builder. + GoPackagePath string + + // RawDescriptor is the wire-encoded bytes of FileDescriptorProto + // and must be populated. + RawDescriptor []byte + + // NumEnums is the total number of enums declared in the file. + NumEnums int32 + // NumMessages is the total number of messages declared in the file. + // It includes the implicit message declarations for map entries. + NumMessages int32 + // NumExtensions is the total number of extensions declared in the file. + NumExtensions int32 + // NumServices is the total number of services declared in the file. + NumServices int32 + + // TypeResolver resolves extension field types for descriptor options. + // If nil, it uses protoregistry.GlobalTypes. + TypeResolver interface { + protoregistry.ExtensionTypeResolver + } + + // FileRegistry is use to lookup file, enum, and message dependencies. + // Once constructed, the file descriptor is registered here. + // If nil, it uses protoregistry.GlobalFiles. + FileRegistry interface { + FindFileByPath(string) (protoreflect.FileDescriptor, error) + FindDescriptorByName(protoreflect.FullName) (protoreflect.Descriptor, error) + RegisterFile(protoreflect.FileDescriptor) error + } +} + +// resolverByIndex is an interface Builder.FileRegistry may implement. +// If so, it permits looking up an enum or message dependency based on the +// sub-list and element index into filetype.Builder.DependencyIndexes. +type resolverByIndex interface { + FindEnumByIndex(int32, int32, []Enum, []Message) protoreflect.EnumDescriptor + FindMessageByIndex(int32, int32, []Enum, []Message) protoreflect.MessageDescriptor +} + +// Indexes of each sub-list in filetype.Builder.DependencyIndexes. +const ( + listFieldDeps int32 = iota + listExtTargets + listExtDeps + listMethInDeps + listMethOutDeps +) + +// Out is the output of the Builder. +type Out struct { + File protoreflect.FileDescriptor + + // Enums is all enum descriptors in "flattened ordering". + Enums []Enum + // Messages is all message descriptors in "flattened ordering". + // It includes the implicit message declarations for map entries. + Messages []Message + // Extensions is all extension descriptors in "flattened ordering". + Extensions []Extension + // Service is all service descriptors in "flattened ordering". + Services []Service +} + +// Build constructs a FileDescriptor given the parameters set in Builder. +// It assumes that the inputs are well-formed and panics if any inconsistencies +// are encountered. +// +// If NumEnums+NumMessages+NumExtensions+NumServices is zero, +// then Build automatically derives them from the raw descriptor. +func (db Builder) Build() (out Out) { + // Populate the counts if uninitialized. + if db.NumEnums+db.NumMessages+db.NumExtensions+db.NumServices == 0 { + db.unmarshalCounts(db.RawDescriptor, true) + } + + // Initialize resolvers and registries if unpopulated. + if db.TypeResolver == nil { + db.TypeResolver = protoregistry.GlobalTypes + } + if db.FileRegistry == nil { + db.FileRegistry = protoregistry.GlobalFiles + } + + fd := newRawFile(db) + out.File = fd + out.Enums = fd.allEnums + out.Messages = fd.allMessages + out.Extensions = fd.allExtensions + out.Services = fd.allServices + + if err := db.FileRegistry.RegisterFile(fd); err != nil { + panic(err) + } + return out +} + +// unmarshalCounts counts the number of enum, message, extension, and service +// declarations in the raw message, which is either a FileDescriptorProto +// or a MessageDescriptorProto depending on whether isFile is set. +func (db *Builder) unmarshalCounts(b []byte, isFile bool) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + if isFile { + switch num { + case genid.FileDescriptorProto_EnumType_field_number: + db.NumEnums++ + case genid.FileDescriptorProto_MessageType_field_number: + db.unmarshalCounts(v, false) + db.NumMessages++ + case genid.FileDescriptorProto_Extension_field_number: + db.NumExtensions++ + case genid.FileDescriptorProto_Service_field_number: + db.NumServices++ + } + } else { + switch num { + case genid.DescriptorProto_EnumType_field_number: + db.NumEnums++ + case genid.DescriptorProto_NestedType_field_number: + db.unmarshalCounts(v, false) + db.NumMessages++ + case genid.DescriptorProto_Extension_field_number: + db.NumExtensions++ + } + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go new file mode 100644 index 0000000..7c3689b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go @@ -0,0 +1,633 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "bytes" + "fmt" + "sync" + "sync/atomic" + + "google.golang.org/protobuf/internal/descfmt" + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// The types in this file may have a suffix: +// • L0: Contains fields common to all descriptors (except File) and +// must be initialized up front. +// • L1: Contains fields specific to a descriptor and +// must be initialized up front. +// • L2: Contains fields that are lazily initialized when constructing +// from the raw file descriptor. When constructing as a literal, the L2 +// fields must be initialized up front. +// +// The types are exported so that packages like reflect/protodesc can +// directly construct descriptors. + +type ( + File struct { + fileRaw + L1 FileL1 + + once uint32 // atomically set if L2 is valid + mu sync.Mutex // protects L2 + L2 *FileL2 + } + FileL1 struct { + Syntax protoreflect.Syntax + Path string + Package protoreflect.FullName + + Enums Enums + Messages Messages + Extensions Extensions + Services Services + } + FileL2 struct { + Options func() protoreflect.ProtoMessage + Imports FileImports + Locations SourceLocations + } +) + +func (fd *File) ParentFile() protoreflect.FileDescriptor { return fd } +func (fd *File) Parent() protoreflect.Descriptor { return nil } +func (fd *File) Index() int { return 0 } +func (fd *File) Syntax() protoreflect.Syntax { return fd.L1.Syntax } +func (fd *File) Name() protoreflect.Name { return fd.L1.Package.Name() } +func (fd *File) FullName() protoreflect.FullName { return fd.L1.Package } +func (fd *File) IsPlaceholder() bool { return false } +func (fd *File) Options() protoreflect.ProtoMessage { + if f := fd.lazyInit().Options; f != nil { + return f() + } + return descopts.File +} +func (fd *File) Path() string { return fd.L1.Path } +func (fd *File) Package() protoreflect.FullName { return fd.L1.Package } +func (fd *File) Imports() protoreflect.FileImports { return &fd.lazyInit().Imports } +func (fd *File) Enums() protoreflect.EnumDescriptors { return &fd.L1.Enums } +func (fd *File) Messages() protoreflect.MessageDescriptors { return &fd.L1.Messages } +func (fd *File) Extensions() protoreflect.ExtensionDescriptors { return &fd.L1.Extensions } +func (fd *File) Services() protoreflect.ServiceDescriptors { return &fd.L1.Services } +func (fd *File) SourceLocations() protoreflect.SourceLocations { return &fd.lazyInit().Locations } +func (fd *File) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, fd) } +func (fd *File) ProtoType(protoreflect.FileDescriptor) {} +func (fd *File) ProtoInternal(pragma.DoNotImplement) {} + +func (fd *File) lazyInit() *FileL2 { + if atomic.LoadUint32(&fd.once) == 0 { + fd.lazyInitOnce() + } + return fd.L2 +} + +func (fd *File) lazyInitOnce() { + fd.mu.Lock() + if fd.L2 == nil { + fd.lazyRawInit() // recursively initializes all L2 structures + } + atomic.StoreUint32(&fd.once, 1) + fd.mu.Unlock() +} + +// GoPackagePath is a pseudo-internal API for determining the Go package path +// that this file descriptor is declared in. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (fd *File) GoPackagePath() string { + return fd.builder.GoPackagePath +} + +type ( + Enum struct { + Base + L1 EnumL1 + L2 *EnumL2 // protected by fileDesc.once + } + EnumL1 struct { + eagerValues bool // controls whether EnumL2.Values is already populated + } + EnumL2 struct { + Options func() protoreflect.ProtoMessage + Values EnumValues + ReservedNames Names + ReservedRanges EnumRanges + } + + EnumValue struct { + Base + L1 EnumValueL1 + } + EnumValueL1 struct { + Options func() protoreflect.ProtoMessage + Number protoreflect.EnumNumber + } +) + +func (ed *Enum) Options() protoreflect.ProtoMessage { + if f := ed.lazyInit().Options; f != nil { + return f() + } + return descopts.Enum +} +func (ed *Enum) Values() protoreflect.EnumValueDescriptors { + if ed.L1.eagerValues { + return &ed.L2.Values + } + return &ed.lazyInit().Values +} +func (ed *Enum) ReservedNames() protoreflect.Names { return &ed.lazyInit().ReservedNames } +func (ed *Enum) ReservedRanges() protoreflect.EnumRanges { return &ed.lazyInit().ReservedRanges } +func (ed *Enum) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, ed) } +func (ed *Enum) ProtoType(protoreflect.EnumDescriptor) {} +func (ed *Enum) lazyInit() *EnumL2 { + ed.L0.ParentFile.lazyInit() // implicitly initializes L2 + return ed.L2 +} + +func (ed *EnumValue) Options() protoreflect.ProtoMessage { + if f := ed.L1.Options; f != nil { + return f() + } + return descopts.EnumValue +} +func (ed *EnumValue) Number() protoreflect.EnumNumber { return ed.L1.Number } +func (ed *EnumValue) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, ed) } +func (ed *EnumValue) ProtoType(protoreflect.EnumValueDescriptor) {} + +type ( + Message struct { + Base + L1 MessageL1 + L2 *MessageL2 // protected by fileDesc.once + } + MessageL1 struct { + Enums Enums + Messages Messages + Extensions Extensions + IsMapEntry bool // promoted from google.protobuf.MessageOptions + IsMessageSet bool // promoted from google.protobuf.MessageOptions + } + MessageL2 struct { + Options func() protoreflect.ProtoMessage + Fields Fields + Oneofs Oneofs + ReservedNames Names + ReservedRanges FieldRanges + RequiredNumbers FieldNumbers // must be consistent with Fields.Cardinality + ExtensionRanges FieldRanges + ExtensionRangeOptions []func() protoreflect.ProtoMessage // must be same length as ExtensionRanges + } + + Field struct { + Base + L1 FieldL1 + } + FieldL1 struct { + Options func() protoreflect.ProtoMessage + Number protoreflect.FieldNumber + Cardinality protoreflect.Cardinality // must be consistent with Message.RequiredNumbers + Kind protoreflect.Kind + StringName stringName + IsProto3Optional bool // promoted from google.protobuf.FieldDescriptorProto + IsWeak bool // promoted from google.protobuf.FieldOptions + HasPacked bool // promoted from google.protobuf.FieldOptions + IsPacked bool // promoted from google.protobuf.FieldOptions + HasEnforceUTF8 bool // promoted from google.protobuf.FieldOptions + EnforceUTF8 bool // promoted from google.protobuf.FieldOptions + Default defaultValue + ContainingOneof protoreflect.OneofDescriptor // must be consistent with Message.Oneofs.Fields + Enum protoreflect.EnumDescriptor + Message protoreflect.MessageDescriptor + } + + Oneof struct { + Base + L1 OneofL1 + } + OneofL1 struct { + Options func() protoreflect.ProtoMessage + Fields OneofFields // must be consistent with Message.Fields.ContainingOneof + } +) + +func (md *Message) Options() protoreflect.ProtoMessage { + if f := md.lazyInit().Options; f != nil { + return f() + } + return descopts.Message +} +func (md *Message) IsMapEntry() bool { return md.L1.IsMapEntry } +func (md *Message) Fields() protoreflect.FieldDescriptors { return &md.lazyInit().Fields } +func (md *Message) Oneofs() protoreflect.OneofDescriptors { return &md.lazyInit().Oneofs } +func (md *Message) ReservedNames() protoreflect.Names { return &md.lazyInit().ReservedNames } +func (md *Message) ReservedRanges() protoreflect.FieldRanges { return &md.lazyInit().ReservedRanges } +func (md *Message) RequiredNumbers() protoreflect.FieldNumbers { return &md.lazyInit().RequiredNumbers } +func (md *Message) ExtensionRanges() protoreflect.FieldRanges { return &md.lazyInit().ExtensionRanges } +func (md *Message) ExtensionRangeOptions(i int) protoreflect.ProtoMessage { + if f := md.lazyInit().ExtensionRangeOptions[i]; f != nil { + return f() + } + return descopts.ExtensionRange +} +func (md *Message) Enums() protoreflect.EnumDescriptors { return &md.L1.Enums } +func (md *Message) Messages() protoreflect.MessageDescriptors { return &md.L1.Messages } +func (md *Message) Extensions() protoreflect.ExtensionDescriptors { return &md.L1.Extensions } +func (md *Message) ProtoType(protoreflect.MessageDescriptor) {} +func (md *Message) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, md) } +func (md *Message) lazyInit() *MessageL2 { + md.L0.ParentFile.lazyInit() // implicitly initializes L2 + return md.L2 +} + +// IsMessageSet is a pseudo-internal API for checking whether a message +// should serialize in the proto1 message format. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (md *Message) IsMessageSet() bool { + return md.L1.IsMessageSet +} + +func (fd *Field) Options() protoreflect.ProtoMessage { + if f := fd.L1.Options; f != nil { + return f() + } + return descopts.Field +} +func (fd *Field) Number() protoreflect.FieldNumber { return fd.L1.Number } +func (fd *Field) Cardinality() protoreflect.Cardinality { return fd.L1.Cardinality } +func (fd *Field) Kind() protoreflect.Kind { return fd.L1.Kind } +func (fd *Field) HasJSONName() bool { return fd.L1.StringName.hasJSON } +func (fd *Field) JSONName() string { return fd.L1.StringName.getJSON(fd) } +func (fd *Field) TextName() string { return fd.L1.StringName.getText(fd) } +func (fd *Field) HasPresence() bool { + return fd.L1.Cardinality != protoreflect.Repeated && (fd.L0.ParentFile.L1.Syntax == protoreflect.Proto2 || fd.L1.Message != nil || fd.L1.ContainingOneof != nil) +} +func (fd *Field) HasOptionalKeyword() bool { + return (fd.L0.ParentFile.L1.Syntax == protoreflect.Proto2 && fd.L1.Cardinality == protoreflect.Optional && fd.L1.ContainingOneof == nil) || fd.L1.IsProto3Optional +} +func (fd *Field) IsPacked() bool { + if !fd.L1.HasPacked && fd.L0.ParentFile.L1.Syntax != protoreflect.Proto2 && fd.L1.Cardinality == protoreflect.Repeated { + switch fd.L1.Kind { + case protoreflect.StringKind, protoreflect.BytesKind, protoreflect.MessageKind, protoreflect.GroupKind: + default: + return true + } + } + return fd.L1.IsPacked +} +func (fd *Field) IsExtension() bool { return false } +func (fd *Field) IsWeak() bool { return fd.L1.IsWeak } +func (fd *Field) IsList() bool { return fd.Cardinality() == protoreflect.Repeated && !fd.IsMap() } +func (fd *Field) IsMap() bool { return fd.Message() != nil && fd.Message().IsMapEntry() } +func (fd *Field) MapKey() protoreflect.FieldDescriptor { + if !fd.IsMap() { + return nil + } + return fd.Message().Fields().ByNumber(genid.MapEntry_Key_field_number) +} +func (fd *Field) MapValue() protoreflect.FieldDescriptor { + if !fd.IsMap() { + return nil + } + return fd.Message().Fields().ByNumber(genid.MapEntry_Value_field_number) +} +func (fd *Field) HasDefault() bool { return fd.L1.Default.has } +func (fd *Field) Default() protoreflect.Value { return fd.L1.Default.get(fd) } +func (fd *Field) DefaultEnumValue() protoreflect.EnumValueDescriptor { return fd.L1.Default.enum } +func (fd *Field) ContainingOneof() protoreflect.OneofDescriptor { return fd.L1.ContainingOneof } +func (fd *Field) ContainingMessage() protoreflect.MessageDescriptor { + return fd.L0.Parent.(protoreflect.MessageDescriptor) +} +func (fd *Field) Enum() protoreflect.EnumDescriptor { + return fd.L1.Enum +} +func (fd *Field) Message() protoreflect.MessageDescriptor { + if fd.L1.IsWeak { + if d, _ := protoregistry.GlobalFiles.FindDescriptorByName(fd.L1.Message.FullName()); d != nil { + return d.(protoreflect.MessageDescriptor) + } + } + return fd.L1.Message +} +func (fd *Field) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, fd) } +func (fd *Field) ProtoType(protoreflect.FieldDescriptor) {} + +// EnforceUTF8 is a pseudo-internal API to determine whether to enforce UTF-8 +// validation for the string field. This exists for Google-internal use only +// since proto3 did not enforce UTF-8 validity prior to the open-source release. +// If this method does not exist, the default is to enforce valid UTF-8. +// +// WARNING: This method is exempt from the compatibility promise and may be +// removed in the future without warning. +func (fd *Field) EnforceUTF8() bool { + if fd.L1.HasEnforceUTF8 { + return fd.L1.EnforceUTF8 + } + return fd.L0.ParentFile.L1.Syntax == protoreflect.Proto3 +} + +func (od *Oneof) IsSynthetic() bool { + return od.L0.ParentFile.L1.Syntax == protoreflect.Proto3 && len(od.L1.Fields.List) == 1 && od.L1.Fields.List[0].HasOptionalKeyword() +} +func (od *Oneof) Options() protoreflect.ProtoMessage { + if f := od.L1.Options; f != nil { + return f() + } + return descopts.Oneof +} +func (od *Oneof) Fields() protoreflect.FieldDescriptors { return &od.L1.Fields } +func (od *Oneof) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, od) } +func (od *Oneof) ProtoType(protoreflect.OneofDescriptor) {} + +type ( + Extension struct { + Base + L1 ExtensionL1 + L2 *ExtensionL2 // protected by fileDesc.once + } + ExtensionL1 struct { + Number protoreflect.FieldNumber + Extendee protoreflect.MessageDescriptor + Cardinality protoreflect.Cardinality + Kind protoreflect.Kind + } + ExtensionL2 struct { + Options func() protoreflect.ProtoMessage + StringName stringName + IsProto3Optional bool // promoted from google.protobuf.FieldDescriptorProto + IsPacked bool // promoted from google.protobuf.FieldOptions + Default defaultValue + Enum protoreflect.EnumDescriptor + Message protoreflect.MessageDescriptor + } +) + +func (xd *Extension) Options() protoreflect.ProtoMessage { + if f := xd.lazyInit().Options; f != nil { + return f() + } + return descopts.Field +} +func (xd *Extension) Number() protoreflect.FieldNumber { return xd.L1.Number } +func (xd *Extension) Cardinality() protoreflect.Cardinality { return xd.L1.Cardinality } +func (xd *Extension) Kind() protoreflect.Kind { return xd.L1.Kind } +func (xd *Extension) HasJSONName() bool { return xd.lazyInit().StringName.hasJSON } +func (xd *Extension) JSONName() string { return xd.lazyInit().StringName.getJSON(xd) } +func (xd *Extension) TextName() string { return xd.lazyInit().StringName.getText(xd) } +func (xd *Extension) HasPresence() bool { return xd.L1.Cardinality != protoreflect.Repeated } +func (xd *Extension) HasOptionalKeyword() bool { + return (xd.L0.ParentFile.L1.Syntax == protoreflect.Proto2 && xd.L1.Cardinality == protoreflect.Optional) || xd.lazyInit().IsProto3Optional +} +func (xd *Extension) IsPacked() bool { return xd.lazyInit().IsPacked } +func (xd *Extension) IsExtension() bool { return true } +func (xd *Extension) IsWeak() bool { return false } +func (xd *Extension) IsList() bool { return xd.Cardinality() == protoreflect.Repeated } +func (xd *Extension) IsMap() bool { return false } +func (xd *Extension) MapKey() protoreflect.FieldDescriptor { return nil } +func (xd *Extension) MapValue() protoreflect.FieldDescriptor { return nil } +func (xd *Extension) HasDefault() bool { return xd.lazyInit().Default.has } +func (xd *Extension) Default() protoreflect.Value { return xd.lazyInit().Default.get(xd) } +func (xd *Extension) DefaultEnumValue() protoreflect.EnumValueDescriptor { + return xd.lazyInit().Default.enum +} +func (xd *Extension) ContainingOneof() protoreflect.OneofDescriptor { return nil } +func (xd *Extension) ContainingMessage() protoreflect.MessageDescriptor { return xd.L1.Extendee } +func (xd *Extension) Enum() protoreflect.EnumDescriptor { return xd.lazyInit().Enum } +func (xd *Extension) Message() protoreflect.MessageDescriptor { return xd.lazyInit().Message } +func (xd *Extension) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, xd) } +func (xd *Extension) ProtoType(protoreflect.FieldDescriptor) {} +func (xd *Extension) ProtoInternal(pragma.DoNotImplement) {} +func (xd *Extension) lazyInit() *ExtensionL2 { + xd.L0.ParentFile.lazyInit() // implicitly initializes L2 + return xd.L2 +} + +type ( + Service struct { + Base + L1 ServiceL1 + L2 *ServiceL2 // protected by fileDesc.once + } + ServiceL1 struct{} + ServiceL2 struct { + Options func() protoreflect.ProtoMessage + Methods Methods + } + + Method struct { + Base + L1 MethodL1 + } + MethodL1 struct { + Options func() protoreflect.ProtoMessage + Input protoreflect.MessageDescriptor + Output protoreflect.MessageDescriptor + IsStreamingClient bool + IsStreamingServer bool + } +) + +func (sd *Service) Options() protoreflect.ProtoMessage { + if f := sd.lazyInit().Options; f != nil { + return f() + } + return descopts.Service +} +func (sd *Service) Methods() protoreflect.MethodDescriptors { return &sd.lazyInit().Methods } +func (sd *Service) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, sd) } +func (sd *Service) ProtoType(protoreflect.ServiceDescriptor) {} +func (sd *Service) ProtoInternal(pragma.DoNotImplement) {} +func (sd *Service) lazyInit() *ServiceL2 { + sd.L0.ParentFile.lazyInit() // implicitly initializes L2 + return sd.L2 +} + +func (md *Method) Options() protoreflect.ProtoMessage { + if f := md.L1.Options; f != nil { + return f() + } + return descopts.Method +} +func (md *Method) Input() protoreflect.MessageDescriptor { return md.L1.Input } +func (md *Method) Output() protoreflect.MessageDescriptor { return md.L1.Output } +func (md *Method) IsStreamingClient() bool { return md.L1.IsStreamingClient } +func (md *Method) IsStreamingServer() bool { return md.L1.IsStreamingServer } +func (md *Method) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, md) } +func (md *Method) ProtoType(protoreflect.MethodDescriptor) {} +func (md *Method) ProtoInternal(pragma.DoNotImplement) {} + +// Surrogate files are can be used to create standalone descriptors +// where the syntax is only information derived from the parent file. +var ( + SurrogateProto2 = &File{L1: FileL1{Syntax: protoreflect.Proto2}, L2: &FileL2{}} + SurrogateProto3 = &File{L1: FileL1{Syntax: protoreflect.Proto3}, L2: &FileL2{}} +) + +type ( + Base struct { + L0 BaseL0 + } + BaseL0 struct { + FullName protoreflect.FullName // must be populated + ParentFile *File // must be populated + Parent protoreflect.Descriptor + Index int + } +) + +func (d *Base) Name() protoreflect.Name { return d.L0.FullName.Name() } +func (d *Base) FullName() protoreflect.FullName { return d.L0.FullName } +func (d *Base) ParentFile() protoreflect.FileDescriptor { + if d.L0.ParentFile == SurrogateProto2 || d.L0.ParentFile == SurrogateProto3 { + return nil // surrogate files are not real parents + } + return d.L0.ParentFile +} +func (d *Base) Parent() protoreflect.Descriptor { return d.L0.Parent } +func (d *Base) Index() int { return d.L0.Index } +func (d *Base) Syntax() protoreflect.Syntax { return d.L0.ParentFile.Syntax() } +func (d *Base) IsPlaceholder() bool { return false } +func (d *Base) ProtoInternal(pragma.DoNotImplement) {} + +type stringName struct { + hasJSON bool + once sync.Once + nameJSON string + nameText string +} + +// InitJSON initializes the name. It is exported for use by other internal packages. +func (s *stringName) InitJSON(name string) { + s.hasJSON = true + s.nameJSON = name +} + +func (s *stringName) lazyInit(fd protoreflect.FieldDescriptor) *stringName { + s.once.Do(func() { + if fd.IsExtension() { + // For extensions, JSON and text are formatted the same way. + var name string + if messageset.IsMessageSetExtension(fd) { + name = string("[" + fd.FullName().Parent() + "]") + } else { + name = string("[" + fd.FullName() + "]") + } + s.nameJSON = name + s.nameText = name + } else { + // Format the JSON name. + if !s.hasJSON { + s.nameJSON = strs.JSONCamelCase(string(fd.Name())) + } + + // Format the text name. + s.nameText = string(fd.Name()) + if fd.Kind() == protoreflect.GroupKind { + s.nameText = string(fd.Message().Name()) + } + } + }) + return s +} + +func (s *stringName) getJSON(fd protoreflect.FieldDescriptor) string { return s.lazyInit(fd).nameJSON } +func (s *stringName) getText(fd protoreflect.FieldDescriptor) string { return s.lazyInit(fd).nameText } + +func DefaultValue(v protoreflect.Value, ev protoreflect.EnumValueDescriptor) defaultValue { + dv := defaultValue{has: v.IsValid(), val: v, enum: ev} + if b, ok := v.Interface().([]byte); ok { + // Store a copy of the default bytes, so that we can detect + // accidental mutations of the original value. + dv.bytes = append([]byte(nil), b...) + } + return dv +} + +func unmarshalDefault(b []byte, k protoreflect.Kind, pf *File, ed protoreflect.EnumDescriptor) defaultValue { + var evs protoreflect.EnumValueDescriptors + if k == protoreflect.EnumKind { + // If the enum is declared within the same file, be careful not to + // blindly call the Values method, lest we bind ourselves in a deadlock. + if e, ok := ed.(*Enum); ok && e.L0.ParentFile == pf { + evs = &e.L2.Values + } else { + evs = ed.Values() + } + + // If we are unable to resolve the enum dependency, use a placeholder + // enum value since we will not be able to parse the default value. + if ed.IsPlaceholder() && protoreflect.Name(b).IsValid() { + v := protoreflect.ValueOfEnum(0) + ev := PlaceholderEnumValue(ed.FullName().Parent().Append(protoreflect.Name(b))) + return DefaultValue(v, ev) + } + } + + v, ev, err := defval.Unmarshal(string(b), k, evs, defval.Descriptor) + if err != nil { + panic(err) + } + return DefaultValue(v, ev) +} + +type defaultValue struct { + has bool + val protoreflect.Value + enum protoreflect.EnumValueDescriptor + bytes []byte +} + +func (dv *defaultValue) get(fd protoreflect.FieldDescriptor) protoreflect.Value { + // Return the zero value as the default if unpopulated. + if !dv.has { + if fd.Cardinality() == protoreflect.Repeated { + return protoreflect.Value{} + } + switch fd.Kind() { + case protoreflect.BoolKind: + return protoreflect.ValueOfBool(false) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + return protoreflect.ValueOfInt32(0) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return protoreflect.ValueOfInt64(0) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + return protoreflect.ValueOfUint32(0) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return protoreflect.ValueOfUint64(0) + case protoreflect.FloatKind: + return protoreflect.ValueOfFloat32(0) + case protoreflect.DoubleKind: + return protoreflect.ValueOfFloat64(0) + case protoreflect.StringKind: + return protoreflect.ValueOfString("") + case protoreflect.BytesKind: + return protoreflect.ValueOfBytes(nil) + case protoreflect.EnumKind: + if evs := fd.Enum().Values(); evs.Len() > 0 { + return protoreflect.ValueOfEnum(evs.Get(0).Number()) + } + return protoreflect.ValueOfEnum(0) + } + } + + if len(dv.bytes) > 0 && !bytes.Equal(dv.bytes, dv.val.Bytes()) { + // TODO: Avoid panic if we're running with the race detector + // and instead spawn a goroutine that periodically resets + // this value back to the original to induce a race. + panic(fmt.Sprintf("detected mutation on the default bytes for %v", fd.FullName())) + } + return dv.val +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go new file mode 100644 index 0000000..4a1584c --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go @@ -0,0 +1,471 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// fileRaw is a data struct used when initializing a file descriptor from +// a raw FileDescriptorProto. +type fileRaw struct { + builder Builder + allEnums []Enum + allMessages []Message + allExtensions []Extension + allServices []Service +} + +func newRawFile(db Builder) *File { + fd := &File{fileRaw: fileRaw{builder: db}} + fd.initDecls(db.NumEnums, db.NumMessages, db.NumExtensions, db.NumServices) + fd.unmarshalSeed(db.RawDescriptor) + + // Extended message targets are eagerly resolved since registration + // needs this information at program init time. + for i := range fd.allExtensions { + xd := &fd.allExtensions[i] + xd.L1.Extendee = fd.resolveMessageDependency(xd.L1.Extendee, listExtTargets, int32(i)) + } + + fd.checkDecls() + return fd +} + +// initDecls pre-allocates slices for the exact number of enums, messages +// (including map entries), extensions, and services declared in the proto file. +// This is done to avoid regrowing the slice, which would change the address +// for any previously seen declaration. +// +// The alloc methods "allocates" slices by pulling from the capacity. +func (fd *File) initDecls(numEnums, numMessages, numExtensions, numServices int32) { + fd.allEnums = make([]Enum, 0, numEnums) + fd.allMessages = make([]Message, 0, numMessages) + fd.allExtensions = make([]Extension, 0, numExtensions) + fd.allServices = make([]Service, 0, numServices) +} + +func (fd *File) allocEnums(n int) []Enum { + total := len(fd.allEnums) + es := fd.allEnums[total : total+n] + fd.allEnums = fd.allEnums[:total+n] + return es +} +func (fd *File) allocMessages(n int) []Message { + total := len(fd.allMessages) + ms := fd.allMessages[total : total+n] + fd.allMessages = fd.allMessages[:total+n] + return ms +} +func (fd *File) allocExtensions(n int) []Extension { + total := len(fd.allExtensions) + xs := fd.allExtensions[total : total+n] + fd.allExtensions = fd.allExtensions[:total+n] + return xs +} +func (fd *File) allocServices(n int) []Service { + total := len(fd.allServices) + xs := fd.allServices[total : total+n] + fd.allServices = fd.allServices[:total+n] + return xs +} + +// checkDecls performs a sanity check that the expected number of expected +// declarations matches the number that were found in the descriptor proto. +func (fd *File) checkDecls() { + switch { + case len(fd.allEnums) != cap(fd.allEnums): + case len(fd.allMessages) != cap(fd.allMessages): + case len(fd.allExtensions) != cap(fd.allExtensions): + case len(fd.allServices) != cap(fd.allServices): + default: + return + } + panic("mismatching cardinality") +} + +func (fd *File) unmarshalSeed(b []byte) { + sb := getBuilder() + defer putBuilder(sb) + + var prevField protoreflect.FieldNumber + var numEnums, numMessages, numExtensions, numServices int + var posEnums, posMessages, posExtensions, posServices int + b0 := b + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.FileDescriptorProto_Syntax_field_number: + switch string(v) { + case "proto2": + fd.L1.Syntax = protoreflect.Proto2 + case "proto3": + fd.L1.Syntax = protoreflect.Proto3 + default: + panic("invalid syntax") + } + case genid.FileDescriptorProto_Name_field_number: + fd.L1.Path = sb.MakeString(v) + case genid.FileDescriptorProto_Package_field_number: + fd.L1.Package = protoreflect.FullName(sb.MakeString(v)) + case genid.FileDescriptorProto_EnumType_field_number: + if prevField != genid.FileDescriptorProto_EnumType_field_number { + if numEnums > 0 { + panic("non-contiguous repeated field") + } + posEnums = len(b0) - len(b) - n - m + } + numEnums++ + case genid.FileDescriptorProto_MessageType_field_number: + if prevField != genid.FileDescriptorProto_MessageType_field_number { + if numMessages > 0 { + panic("non-contiguous repeated field") + } + posMessages = len(b0) - len(b) - n - m + } + numMessages++ + case genid.FileDescriptorProto_Extension_field_number: + if prevField != genid.FileDescriptorProto_Extension_field_number { + if numExtensions > 0 { + panic("non-contiguous repeated field") + } + posExtensions = len(b0) - len(b) - n - m + } + numExtensions++ + case genid.FileDescriptorProto_Service_field_number: + if prevField != genid.FileDescriptorProto_Service_field_number { + if numServices > 0 { + panic("non-contiguous repeated field") + } + posServices = len(b0) - len(b) - n - m + } + numServices++ + } + prevField = num + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + prevField = -1 // ignore known field numbers of unknown wire type + } + } + + // If syntax is missing, it is assumed to be proto2. + if fd.L1.Syntax == 0 { + fd.L1.Syntax = protoreflect.Proto2 + } + + // Must allocate all declarations before parsing each descriptor type + // to ensure we handled all descriptors in "flattened ordering". + if numEnums > 0 { + fd.L1.Enums.List = fd.allocEnums(numEnums) + } + if numMessages > 0 { + fd.L1.Messages.List = fd.allocMessages(numMessages) + } + if numExtensions > 0 { + fd.L1.Extensions.List = fd.allocExtensions(numExtensions) + } + if numServices > 0 { + fd.L1.Services.List = fd.allocServices(numServices) + } + + if numEnums > 0 { + b := b0[posEnums:] + for i := range fd.L1.Enums.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Enums.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } + if numMessages > 0 { + b := b0[posMessages:] + for i := range fd.L1.Messages.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Messages.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } + if numExtensions > 0 { + b := b0[posExtensions:] + for i := range fd.L1.Extensions.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Extensions.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } + if numServices > 0 { + b := b0[posServices:] + for i := range fd.L1.Services.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + fd.L1.Services.List[i].unmarshalSeed(v, sb, fd, fd, i) + b = b[n+m:] + } + } +} + +func (ed *Enum) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + ed.L0.ParentFile = pf + ed.L0.Parent = pd + ed.L0.Index = i + + var numValues int + for b := b; len(b) > 0; { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.EnumDescriptorProto_Name_field_number: + ed.L0.FullName = appendFullName(sb, pd.FullName(), v) + case genid.EnumDescriptorProto_Value_field_number: + numValues++ + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + + // Only construct enum value descriptors for top-level enums since + // they are needed for registration. + if pd != pf { + return + } + ed.L1.eagerValues = true + ed.L2 = new(EnumL2) + ed.L2.Values.List = make([]EnumValue, numValues) + for i := 0; len(b) > 0; { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.EnumDescriptorProto_Value_field_number: + ed.L2.Values.List[i].unmarshalFull(v, sb, pf, ed, i) + i++ + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (md *Message) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + md.L0.ParentFile = pf + md.L0.Parent = pd + md.L0.Index = i + + var prevField protoreflect.FieldNumber + var numEnums, numMessages, numExtensions int + var posEnums, posMessages, posExtensions int + b0 := b + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.DescriptorProto_Name_field_number: + md.L0.FullName = appendFullName(sb, pd.FullName(), v) + case genid.DescriptorProto_EnumType_field_number: + if prevField != genid.DescriptorProto_EnumType_field_number { + if numEnums > 0 { + panic("non-contiguous repeated field") + } + posEnums = len(b0) - len(b) - n - m + } + numEnums++ + case genid.DescriptorProto_NestedType_field_number: + if prevField != genid.DescriptorProto_NestedType_field_number { + if numMessages > 0 { + panic("non-contiguous repeated field") + } + posMessages = len(b0) - len(b) - n - m + } + numMessages++ + case genid.DescriptorProto_Extension_field_number: + if prevField != genid.DescriptorProto_Extension_field_number { + if numExtensions > 0 { + panic("non-contiguous repeated field") + } + posExtensions = len(b0) - len(b) - n - m + } + numExtensions++ + case genid.DescriptorProto_Options_field_number: + md.unmarshalSeedOptions(v) + } + prevField = num + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + prevField = -1 // ignore known field numbers of unknown wire type + } + } + + // Must allocate all declarations before parsing each descriptor type + // to ensure we handled all descriptors in "flattened ordering". + if numEnums > 0 { + md.L1.Enums.List = pf.allocEnums(numEnums) + } + if numMessages > 0 { + md.L1.Messages.List = pf.allocMessages(numMessages) + } + if numExtensions > 0 { + md.L1.Extensions.List = pf.allocExtensions(numExtensions) + } + + if numEnums > 0 { + b := b0[posEnums:] + for i := range md.L1.Enums.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + md.L1.Enums.List[i].unmarshalSeed(v, sb, pf, md, i) + b = b[n+m:] + } + } + if numMessages > 0 { + b := b0[posMessages:] + for i := range md.L1.Messages.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + md.L1.Messages.List[i].unmarshalSeed(v, sb, pf, md, i) + b = b[n+m:] + } + } + if numExtensions > 0 { + b := b0[posExtensions:] + for i := range md.L1.Extensions.List { + _, n := protowire.ConsumeVarint(b) + v, m := protowire.ConsumeBytes(b[n:]) + md.L1.Extensions.List[i].unmarshalSeed(v, sb, pf, md, i) + b = b[n+m:] + } + } +} + +func (md *Message) unmarshalSeedOptions(b []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.MessageOptions_MapEntry_field_number: + md.L1.IsMapEntry = protowire.DecodeBool(v) + case genid.MessageOptions_MessageSetWireFormat_field_number: + md.L1.IsMessageSet = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (xd *Extension) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + xd.L0.ParentFile = pf + xd.L0.Parent = pd + xd.L0.Index = i + + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.FieldDescriptorProto_Number_field_number: + xd.L1.Number = protoreflect.FieldNumber(v) + case genid.FieldDescriptorProto_Label_field_number: + xd.L1.Cardinality = protoreflect.Cardinality(v) + case genid.FieldDescriptorProto_Type_field_number: + xd.L1.Kind = protoreflect.Kind(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.FieldDescriptorProto_Name_field_number: + xd.L0.FullName = appendFullName(sb, pd.FullName(), v) + case genid.FieldDescriptorProto_Extendee_field_number: + xd.L1.Extendee = PlaceholderMessage(makeFullName(sb, v)) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (sd *Service) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + sd.L0.ParentFile = pf + sd.L0.Parent = pd + sd.L0.Index = i + + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.ServiceDescriptorProto_Name_field_number: + sd.L0.FullName = appendFullName(sb, pd.FullName(), v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +var nameBuilderPool = sync.Pool{ + New: func() interface{} { return new(strs.Builder) }, +} + +func getBuilder() *strs.Builder { + return nameBuilderPool.Get().(*strs.Builder) +} +func putBuilder(b *strs.Builder) { + nameBuilderPool.Put(b) +} + +// makeFullName converts b to a protoreflect.FullName, +// where b must start with a leading dot. +func makeFullName(sb *strs.Builder, b []byte) protoreflect.FullName { + if len(b) == 0 || b[0] != '.' { + panic("name reference must be fully qualified") + } + return protoreflect.FullName(sb.MakeString(b[1:])) +} + +func appendFullName(sb *strs.Builder, prefix protoreflect.FullName, suffix []byte) protoreflect.FullName { + return sb.AppendFullName(prefix, protoreflect.Name(strs.UnsafeString(suffix))) +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go new file mode 100644 index 0000000..736a19a --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go @@ -0,0 +1,704 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "reflect" + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" +) + +func (fd *File) lazyRawInit() { + fd.unmarshalFull(fd.builder.RawDescriptor) + fd.resolveMessages() + fd.resolveExtensions() + fd.resolveServices() +} + +func (file *File) resolveMessages() { + var depIdx int32 + for i := range file.allMessages { + md := &file.allMessages[i] + + // Resolve message field dependencies. + for j := range md.L2.Fields.List { + fd := &md.L2.Fields.List[j] + + // Weak fields are resolved upon actual use. + if fd.L1.IsWeak { + continue + } + + // Resolve message field dependency. + switch fd.L1.Kind { + case protoreflect.EnumKind: + fd.L1.Enum = file.resolveEnumDependency(fd.L1.Enum, listFieldDeps, depIdx) + depIdx++ + case protoreflect.MessageKind, protoreflect.GroupKind: + fd.L1.Message = file.resolveMessageDependency(fd.L1.Message, listFieldDeps, depIdx) + depIdx++ + } + + // Default is resolved here since it depends on Enum being resolved. + if v := fd.L1.Default.val; v.IsValid() { + fd.L1.Default = unmarshalDefault(v.Bytes(), fd.L1.Kind, file, fd.L1.Enum) + } + } + } +} + +func (file *File) resolveExtensions() { + var depIdx int32 + for i := range file.allExtensions { + xd := &file.allExtensions[i] + + // Resolve extension field dependency. + switch xd.L1.Kind { + case protoreflect.EnumKind: + xd.L2.Enum = file.resolveEnumDependency(xd.L2.Enum, listExtDeps, depIdx) + depIdx++ + case protoreflect.MessageKind, protoreflect.GroupKind: + xd.L2.Message = file.resolveMessageDependency(xd.L2.Message, listExtDeps, depIdx) + depIdx++ + } + + // Default is resolved here since it depends on Enum being resolved. + if v := xd.L2.Default.val; v.IsValid() { + xd.L2.Default = unmarshalDefault(v.Bytes(), xd.L1.Kind, file, xd.L2.Enum) + } + } +} + +func (file *File) resolveServices() { + var depIdx int32 + for i := range file.allServices { + sd := &file.allServices[i] + + // Resolve method dependencies. + for j := range sd.L2.Methods.List { + md := &sd.L2.Methods.List[j] + md.L1.Input = file.resolveMessageDependency(md.L1.Input, listMethInDeps, depIdx) + md.L1.Output = file.resolveMessageDependency(md.L1.Output, listMethOutDeps, depIdx) + depIdx++ + } + } +} + +func (file *File) resolveEnumDependency(ed protoreflect.EnumDescriptor, i, j int32) protoreflect.EnumDescriptor { + r := file.builder.FileRegistry + if r, ok := r.(resolverByIndex); ok { + if ed2 := r.FindEnumByIndex(i, j, file.allEnums, file.allMessages); ed2 != nil { + return ed2 + } + } + for i := range file.allEnums { + if ed2 := &file.allEnums[i]; ed2.L0.FullName == ed.FullName() { + return ed2 + } + } + if d, _ := r.FindDescriptorByName(ed.FullName()); d != nil { + return d.(protoreflect.EnumDescriptor) + } + return ed +} + +func (file *File) resolveMessageDependency(md protoreflect.MessageDescriptor, i, j int32) protoreflect.MessageDescriptor { + r := file.builder.FileRegistry + if r, ok := r.(resolverByIndex); ok { + if md2 := r.FindMessageByIndex(i, j, file.allEnums, file.allMessages); md2 != nil { + return md2 + } + } + for i := range file.allMessages { + if md2 := &file.allMessages[i]; md2.L0.FullName == md.FullName() { + return md2 + } + } + if d, _ := r.FindDescriptorByName(md.FullName()); d != nil { + return d.(protoreflect.MessageDescriptor) + } + return md +} + +func (fd *File) unmarshalFull(b []byte) { + sb := getBuilder() + defer putBuilder(sb) + + var enumIdx, messageIdx, extensionIdx, serviceIdx int + var rawOptions []byte + fd.L2 = new(FileL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.FileDescriptorProto_PublicDependency_field_number: + fd.L2.Imports[v].IsPublic = true + case genid.FileDescriptorProto_WeakDependency_field_number: + fd.L2.Imports[v].IsWeak = true + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.FileDescriptorProto_Dependency_field_number: + path := sb.MakeString(v) + imp, _ := fd.builder.FileRegistry.FindFileByPath(path) + if imp == nil { + imp = PlaceholderFile(path) + } + fd.L2.Imports = append(fd.L2.Imports, protoreflect.FileImport{FileDescriptor: imp}) + case genid.FileDescriptorProto_EnumType_field_number: + fd.L1.Enums.List[enumIdx].unmarshalFull(v, sb) + enumIdx++ + case genid.FileDescriptorProto_MessageType_field_number: + fd.L1.Messages.List[messageIdx].unmarshalFull(v, sb) + messageIdx++ + case genid.FileDescriptorProto_Extension_field_number: + fd.L1.Extensions.List[extensionIdx].unmarshalFull(v, sb) + extensionIdx++ + case genid.FileDescriptorProto_Service_field_number: + fd.L1.Services.List[serviceIdx].unmarshalFull(v, sb) + serviceIdx++ + case genid.FileDescriptorProto_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + fd.L2.Options = fd.builder.optionsUnmarshaler(&descopts.File, rawOptions) +} + +func (ed *Enum) unmarshalFull(b []byte, sb *strs.Builder) { + var rawValues [][]byte + var rawOptions []byte + if !ed.L1.eagerValues { + ed.L2 = new(EnumL2) + } + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.EnumDescriptorProto_Value_field_number: + rawValues = append(rawValues, v) + case genid.EnumDescriptorProto_ReservedName_field_number: + ed.L2.ReservedNames.List = append(ed.L2.ReservedNames.List, protoreflect.Name(sb.MakeString(v))) + case genid.EnumDescriptorProto_ReservedRange_field_number: + ed.L2.ReservedRanges.List = append(ed.L2.ReservedRanges.List, unmarshalEnumReservedRange(v)) + case genid.EnumDescriptorProto_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if !ed.L1.eagerValues && len(rawValues) > 0 { + ed.L2.Values.List = make([]EnumValue, len(rawValues)) + for i, b := range rawValues { + ed.L2.Values.List[i].unmarshalFull(b, sb, ed.L0.ParentFile, ed, i) + } + } + ed.L2.Options = ed.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Enum, rawOptions) +} + +func unmarshalEnumReservedRange(b []byte) (r [2]protoreflect.EnumNumber) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.EnumDescriptorProto_EnumReservedRange_Start_field_number: + r[0] = protoreflect.EnumNumber(v) + case genid.EnumDescriptorProto_EnumReservedRange_End_field_number: + r[1] = protoreflect.EnumNumber(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + return r +} + +func (vd *EnumValue) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + vd.L0.ParentFile = pf + vd.L0.Parent = pd + vd.L0.Index = i + + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.EnumValueDescriptorProto_Number_field_number: + vd.L1.Number = protoreflect.EnumNumber(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.EnumValueDescriptorProto_Name_field_number: + // NOTE: Enum values are in the same scope as the enum parent. + vd.L0.FullName = appendFullName(sb, pd.Parent().FullName(), v) + case genid.EnumValueDescriptorProto_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + vd.L1.Options = pf.builder.optionsUnmarshaler(&descopts.EnumValue, rawOptions) +} + +func (md *Message) unmarshalFull(b []byte, sb *strs.Builder) { + var rawFields, rawOneofs [][]byte + var enumIdx, messageIdx, extensionIdx int + var rawOptions []byte + md.L2 = new(MessageL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.DescriptorProto_Field_field_number: + rawFields = append(rawFields, v) + case genid.DescriptorProto_OneofDecl_field_number: + rawOneofs = append(rawOneofs, v) + case genid.DescriptorProto_ReservedName_field_number: + md.L2.ReservedNames.List = append(md.L2.ReservedNames.List, protoreflect.Name(sb.MakeString(v))) + case genid.DescriptorProto_ReservedRange_field_number: + md.L2.ReservedRanges.List = append(md.L2.ReservedRanges.List, unmarshalMessageReservedRange(v)) + case genid.DescriptorProto_ExtensionRange_field_number: + r, rawOptions := unmarshalMessageExtensionRange(v) + opts := md.L0.ParentFile.builder.optionsUnmarshaler(&descopts.ExtensionRange, rawOptions) + md.L2.ExtensionRanges.List = append(md.L2.ExtensionRanges.List, r) + md.L2.ExtensionRangeOptions = append(md.L2.ExtensionRangeOptions, opts) + case genid.DescriptorProto_EnumType_field_number: + md.L1.Enums.List[enumIdx].unmarshalFull(v, sb) + enumIdx++ + case genid.DescriptorProto_NestedType_field_number: + md.L1.Messages.List[messageIdx].unmarshalFull(v, sb) + messageIdx++ + case genid.DescriptorProto_Extension_field_number: + md.L1.Extensions.List[extensionIdx].unmarshalFull(v, sb) + extensionIdx++ + case genid.DescriptorProto_Options_field_number: + md.unmarshalOptions(v) + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if len(rawFields) > 0 || len(rawOneofs) > 0 { + md.L2.Fields.List = make([]Field, len(rawFields)) + md.L2.Oneofs.List = make([]Oneof, len(rawOneofs)) + for i, b := range rawFields { + fd := &md.L2.Fields.List[i] + fd.unmarshalFull(b, sb, md.L0.ParentFile, md, i) + if fd.L1.Cardinality == protoreflect.Required { + md.L2.RequiredNumbers.List = append(md.L2.RequiredNumbers.List, fd.L1.Number) + } + } + for i, b := range rawOneofs { + od := &md.L2.Oneofs.List[i] + od.unmarshalFull(b, sb, md.L0.ParentFile, md, i) + } + } + md.L2.Options = md.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Message, rawOptions) +} + +func (md *Message) unmarshalOptions(b []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.MessageOptions_MapEntry_field_number: + md.L1.IsMapEntry = protowire.DecodeBool(v) + case genid.MessageOptions_MessageSetWireFormat_field_number: + md.L1.IsMessageSet = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func unmarshalMessageReservedRange(b []byte) (r [2]protoreflect.FieldNumber) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.DescriptorProto_ReservedRange_Start_field_number: + r[0] = protoreflect.FieldNumber(v) + case genid.DescriptorProto_ReservedRange_End_field_number: + r[1] = protoreflect.FieldNumber(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + return r +} + +func unmarshalMessageExtensionRange(b []byte) (r [2]protoreflect.FieldNumber, rawOptions []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.DescriptorProto_ExtensionRange_Start_field_number: + r[0] = protoreflect.FieldNumber(v) + case genid.DescriptorProto_ExtensionRange_End_field_number: + r[1] = protoreflect.FieldNumber(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.DescriptorProto_ExtensionRange_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + return r, rawOptions +} + +func (fd *Field) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + fd.L0.ParentFile = pf + fd.L0.Parent = pd + fd.L0.Index = i + + var rawTypeName []byte + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.FieldDescriptorProto_Number_field_number: + fd.L1.Number = protoreflect.FieldNumber(v) + case genid.FieldDescriptorProto_Label_field_number: + fd.L1.Cardinality = protoreflect.Cardinality(v) + case genid.FieldDescriptorProto_Type_field_number: + fd.L1.Kind = protoreflect.Kind(v) + case genid.FieldDescriptorProto_OneofIndex_field_number: + // In Message.unmarshalFull, we allocate slices for both + // the field and oneof descriptors before unmarshaling either + // of them. This ensures pointers to slice elements are stable. + od := &pd.(*Message).L2.Oneofs.List[v] + od.L1.Fields.List = append(od.L1.Fields.List, fd) + if fd.L1.ContainingOneof != nil { + panic("oneof type already set") + } + fd.L1.ContainingOneof = od + case genid.FieldDescriptorProto_Proto3Optional_field_number: + fd.L1.IsProto3Optional = protowire.DecodeBool(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.FieldDescriptorProto_Name_field_number: + fd.L0.FullName = appendFullName(sb, pd.FullName(), v) + case genid.FieldDescriptorProto_JsonName_field_number: + fd.L1.StringName.InitJSON(sb.MakeString(v)) + case genid.FieldDescriptorProto_DefaultValue_field_number: + fd.L1.Default.val = protoreflect.ValueOfBytes(v) // temporarily store as bytes; later resolved in resolveMessages + case genid.FieldDescriptorProto_TypeName_field_number: + rawTypeName = v + case genid.FieldDescriptorProto_Options_field_number: + fd.unmarshalOptions(v) + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if rawTypeName != nil { + name := makeFullName(sb, rawTypeName) + switch fd.L1.Kind { + case protoreflect.EnumKind: + fd.L1.Enum = PlaceholderEnum(name) + case protoreflect.MessageKind, protoreflect.GroupKind: + fd.L1.Message = PlaceholderMessage(name) + } + } + fd.L1.Options = pf.builder.optionsUnmarshaler(&descopts.Field, rawOptions) +} + +func (fd *Field) unmarshalOptions(b []byte) { + const FieldOptions_EnforceUTF8 = 13 + + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.FieldOptions_Packed_field_number: + fd.L1.HasPacked = true + fd.L1.IsPacked = protowire.DecodeBool(v) + case genid.FieldOptions_Weak_field_number: + fd.L1.IsWeak = protowire.DecodeBool(v) + case FieldOptions_EnforceUTF8: + fd.L1.HasEnforceUTF8 = true + fd.L1.EnforceUTF8 = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (od *Oneof) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + od.L0.ParentFile = pf + od.L0.Parent = pd + od.L0.Index = i + + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.OneofDescriptorProto_Name_field_number: + od.L0.FullName = appendFullName(sb, pd.FullName(), v) + case genid.OneofDescriptorProto_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + od.L1.Options = pf.builder.optionsUnmarshaler(&descopts.Oneof, rawOptions) +} + +func (xd *Extension) unmarshalFull(b []byte, sb *strs.Builder) { + var rawTypeName []byte + var rawOptions []byte + xd.L2 = new(ExtensionL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.FieldDescriptorProto_Proto3Optional_field_number: + xd.L2.IsProto3Optional = protowire.DecodeBool(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.FieldDescriptorProto_JsonName_field_number: + xd.L2.StringName.InitJSON(sb.MakeString(v)) + case genid.FieldDescriptorProto_DefaultValue_field_number: + xd.L2.Default.val = protoreflect.ValueOfBytes(v) // temporarily store as bytes; later resolved in resolveExtensions + case genid.FieldDescriptorProto_TypeName_field_number: + rawTypeName = v + case genid.FieldDescriptorProto_Options_field_number: + xd.unmarshalOptions(v) + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if rawTypeName != nil { + name := makeFullName(sb, rawTypeName) + switch xd.L1.Kind { + case protoreflect.EnumKind: + xd.L2.Enum = PlaceholderEnum(name) + case protoreflect.MessageKind, protoreflect.GroupKind: + xd.L2.Message = PlaceholderMessage(name) + } + } + xd.L2.Options = xd.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Field, rawOptions) +} + +func (xd *Extension) unmarshalOptions(b []byte) { + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.FieldOptions_Packed_field_number: + xd.L2.IsPacked = protowire.DecodeBool(v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } +} + +func (sd *Service) unmarshalFull(b []byte, sb *strs.Builder) { + var rawMethods [][]byte + var rawOptions []byte + sd.L2 = new(ServiceL2) + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.ServiceDescriptorProto_Method_field_number: + rawMethods = append(rawMethods, v) + case genid.ServiceDescriptorProto_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + if len(rawMethods) > 0 { + sd.L2.Methods.List = make([]Method, len(rawMethods)) + for i, b := range rawMethods { + sd.L2.Methods.List[i].unmarshalFull(b, sb, sd.L0.ParentFile, sd, i) + } + } + sd.L2.Options = sd.L0.ParentFile.builder.optionsUnmarshaler(&descopts.Service, rawOptions) +} + +func (md *Method) unmarshalFull(b []byte, sb *strs.Builder, pf *File, pd protoreflect.Descriptor, i int) { + md.L0.ParentFile = pf + md.L0.Parent = pd + md.L0.Index = i + + var rawOptions []byte + for len(b) > 0 { + num, typ, n := protowire.ConsumeTag(b) + b = b[n:] + switch typ { + case protowire.VarintType: + v, m := protowire.ConsumeVarint(b) + b = b[m:] + switch num { + case genid.MethodDescriptorProto_ClientStreaming_field_number: + md.L1.IsStreamingClient = protowire.DecodeBool(v) + case genid.MethodDescriptorProto_ServerStreaming_field_number: + md.L1.IsStreamingServer = protowire.DecodeBool(v) + } + case protowire.BytesType: + v, m := protowire.ConsumeBytes(b) + b = b[m:] + switch num { + case genid.MethodDescriptorProto_Name_field_number: + md.L0.FullName = appendFullName(sb, pd.FullName(), v) + case genid.MethodDescriptorProto_InputType_field_number: + md.L1.Input = PlaceholderMessage(makeFullName(sb, v)) + case genid.MethodDescriptorProto_OutputType_field_number: + md.L1.Output = PlaceholderMessage(makeFullName(sb, v)) + case genid.MethodDescriptorProto_Options_field_number: + rawOptions = appendOptions(rawOptions, v) + } + default: + m := protowire.ConsumeFieldValue(num, typ, b) + b = b[m:] + } + } + md.L1.Options = pf.builder.optionsUnmarshaler(&descopts.Method, rawOptions) +} + +// appendOptions appends src to dst, where the returned slice is never nil. +// This is necessary to distinguish between empty and unpopulated options. +func appendOptions(dst, src []byte) []byte { + if dst == nil { + dst = []byte{} + } + return append(dst, src...) +} + +// optionsUnmarshaler constructs a lazy unmarshal function for an options message. +// +// The type of message to unmarshal to is passed as a pointer since the +// vars in descopts may not yet be populated at the time this function is called. +func (db *Builder) optionsUnmarshaler(p *protoreflect.ProtoMessage, b []byte) func() protoreflect.ProtoMessage { + if b == nil { + return nil + } + var opts protoreflect.ProtoMessage + var once sync.Once + return func() protoreflect.ProtoMessage { + once.Do(func() { + if *p == nil { + panic("Descriptor.Options called without importing the descriptor package") + } + opts = reflect.New(reflect.TypeOf(*p).Elem()).Interface().(protoreflect.ProtoMessage) + if err := (proto.UnmarshalOptions{ + AllowPartial: true, + Resolver: db.TypeResolver, + }).Unmarshal(b, opts); err != nil { + panic(err) + } + }) + return opts + } +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go new file mode 100644 index 0000000..e3b6587 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list.go @@ -0,0 +1,457 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "fmt" + "math" + "sort" + "sync" + + "google.golang.org/protobuf/internal/genid" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/descfmt" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type FileImports []protoreflect.FileImport + +func (p *FileImports) Len() int { return len(*p) } +func (p *FileImports) Get(i int) protoreflect.FileImport { return (*p)[i] } +func (p *FileImports) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *FileImports) ProtoInternal(pragma.DoNotImplement) {} + +type Names struct { + List []protoreflect.Name + once sync.Once + has map[protoreflect.Name]int // protected by once +} + +func (p *Names) Len() int { return len(p.List) } +func (p *Names) Get(i int) protoreflect.Name { return p.List[i] } +func (p *Names) Has(s protoreflect.Name) bool { return p.lazyInit().has[s] > 0 } +func (p *Names) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *Names) ProtoInternal(pragma.DoNotImplement) {} +func (p *Names) lazyInit() *Names { + p.once.Do(func() { + if len(p.List) > 0 { + p.has = make(map[protoreflect.Name]int, len(p.List)) + for _, s := range p.List { + p.has[s] = p.has[s] + 1 + } + } + }) + return p +} + +// CheckValid reports any errors with the set of names with an error message +// that completes the sentence: "ranges is invalid because it has ..." +func (p *Names) CheckValid() error { + for s, n := range p.lazyInit().has { + switch { + case n > 1: + return errors.New("duplicate name: %q", s) + case false && !s.IsValid(): + // NOTE: The C++ implementation does not validate the identifier. + // See https://github.com/protocolbuffers/protobuf/issues/6335. + return errors.New("invalid name: %q", s) + } + } + return nil +} + +type EnumRanges struct { + List [][2]protoreflect.EnumNumber // start inclusive; end inclusive + once sync.Once + sorted [][2]protoreflect.EnumNumber // protected by once +} + +func (p *EnumRanges) Len() int { return len(p.List) } +func (p *EnumRanges) Get(i int) [2]protoreflect.EnumNumber { return p.List[i] } +func (p *EnumRanges) Has(n protoreflect.EnumNumber) bool { + for ls := p.lazyInit().sorted; len(ls) > 0; { + i := len(ls) / 2 + switch r := enumRange(ls[i]); { + case n < r.Start(): + ls = ls[:i] // search lower + case n > r.End(): + ls = ls[i+1:] // search upper + default: + return true + } + } + return false +} +func (p *EnumRanges) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *EnumRanges) ProtoInternal(pragma.DoNotImplement) {} +func (p *EnumRanges) lazyInit() *EnumRanges { + p.once.Do(func() { + p.sorted = append(p.sorted, p.List...) + sort.Slice(p.sorted, func(i, j int) bool { + return p.sorted[i][0] < p.sorted[j][0] + }) + }) + return p +} + +// CheckValid reports any errors with the set of names with an error message +// that completes the sentence: "ranges is invalid because it has ..." +func (p *EnumRanges) CheckValid() error { + var rp enumRange + for i, r := range p.lazyInit().sorted { + r := enumRange(r) + switch { + case !(r.Start() <= r.End()): + return errors.New("invalid range: %v", r) + case !(rp.End() < r.Start()) && i > 0: + return errors.New("overlapping ranges: %v with %v", rp, r) + } + rp = r + } + return nil +} + +type enumRange [2]protoreflect.EnumNumber + +func (r enumRange) Start() protoreflect.EnumNumber { return r[0] } // inclusive +func (r enumRange) End() protoreflect.EnumNumber { return r[1] } // inclusive +func (r enumRange) String() string { + if r.Start() == r.End() { + return fmt.Sprintf("%d", r.Start()) + } + return fmt.Sprintf("%d to %d", r.Start(), r.End()) +} + +type FieldRanges struct { + List [][2]protoreflect.FieldNumber // start inclusive; end exclusive + once sync.Once + sorted [][2]protoreflect.FieldNumber // protected by once +} + +func (p *FieldRanges) Len() int { return len(p.List) } +func (p *FieldRanges) Get(i int) [2]protoreflect.FieldNumber { return p.List[i] } +func (p *FieldRanges) Has(n protoreflect.FieldNumber) bool { + for ls := p.lazyInit().sorted; len(ls) > 0; { + i := len(ls) / 2 + switch r := fieldRange(ls[i]); { + case n < r.Start(): + ls = ls[:i] // search lower + case n > r.End(): + ls = ls[i+1:] // search upper + default: + return true + } + } + return false +} +func (p *FieldRanges) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *FieldRanges) ProtoInternal(pragma.DoNotImplement) {} +func (p *FieldRanges) lazyInit() *FieldRanges { + p.once.Do(func() { + p.sorted = append(p.sorted, p.List...) + sort.Slice(p.sorted, func(i, j int) bool { + return p.sorted[i][0] < p.sorted[j][0] + }) + }) + return p +} + +// CheckValid reports any errors with the set of ranges with an error message +// that completes the sentence: "ranges is invalid because it has ..." +func (p *FieldRanges) CheckValid(isMessageSet bool) error { + var rp fieldRange + for i, r := range p.lazyInit().sorted { + r := fieldRange(r) + switch { + case !isValidFieldNumber(r.Start(), isMessageSet): + return errors.New("invalid field number: %d", r.Start()) + case !isValidFieldNumber(r.End(), isMessageSet): + return errors.New("invalid field number: %d", r.End()) + case !(r.Start() <= r.End()): + return errors.New("invalid range: %v", r) + case !(rp.End() < r.Start()) && i > 0: + return errors.New("overlapping ranges: %v with %v", rp, r) + } + rp = r + } + return nil +} + +// isValidFieldNumber reports whether the field number is valid. +// Unlike the FieldNumber.IsValid method, it allows ranges that cover the +// reserved number range. +func isValidFieldNumber(n protoreflect.FieldNumber, isMessageSet bool) bool { + return protowire.MinValidNumber <= n && (n <= protowire.MaxValidNumber || isMessageSet) +} + +// CheckOverlap reports an error if p and q overlap. +func (p *FieldRanges) CheckOverlap(q *FieldRanges) error { + rps := p.lazyInit().sorted + rqs := q.lazyInit().sorted + for pi, qi := 0, 0; pi < len(rps) && qi < len(rqs); { + rp := fieldRange(rps[pi]) + rq := fieldRange(rqs[qi]) + if !(rp.End() < rq.Start() || rq.End() < rp.Start()) { + return errors.New("overlapping ranges: %v with %v", rp, rq) + } + if rp.Start() < rq.Start() { + pi++ + } else { + qi++ + } + } + return nil +} + +type fieldRange [2]protoreflect.FieldNumber + +func (r fieldRange) Start() protoreflect.FieldNumber { return r[0] } // inclusive +func (r fieldRange) End() protoreflect.FieldNumber { return r[1] - 1 } // inclusive +func (r fieldRange) String() string { + if r.Start() == r.End() { + return fmt.Sprintf("%d", r.Start()) + } + return fmt.Sprintf("%d to %d", r.Start(), r.End()) +} + +type FieldNumbers struct { + List []protoreflect.FieldNumber + once sync.Once + has map[protoreflect.FieldNumber]struct{} // protected by once +} + +func (p *FieldNumbers) Len() int { return len(p.List) } +func (p *FieldNumbers) Get(i int) protoreflect.FieldNumber { return p.List[i] } +func (p *FieldNumbers) Has(n protoreflect.FieldNumber) bool { + p.once.Do(func() { + if len(p.List) > 0 { + p.has = make(map[protoreflect.FieldNumber]struct{}, len(p.List)) + for _, n := range p.List { + p.has[n] = struct{}{} + } + } + }) + _, ok := p.has[n] + return ok +} +func (p *FieldNumbers) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *FieldNumbers) ProtoInternal(pragma.DoNotImplement) {} + +type OneofFields struct { + List []protoreflect.FieldDescriptor + once sync.Once + byName map[protoreflect.Name]protoreflect.FieldDescriptor // protected by once + byJSON map[string]protoreflect.FieldDescriptor // protected by once + byText map[string]protoreflect.FieldDescriptor // protected by once + byNum map[protoreflect.FieldNumber]protoreflect.FieldDescriptor // protected by once +} + +func (p *OneofFields) Len() int { return len(p.List) } +func (p *OneofFields) Get(i int) protoreflect.FieldDescriptor { return p.List[i] } +func (p *OneofFields) ByName(s protoreflect.Name) protoreflect.FieldDescriptor { + return p.lazyInit().byName[s] +} +func (p *OneofFields) ByJSONName(s string) protoreflect.FieldDescriptor { + return p.lazyInit().byJSON[s] +} +func (p *OneofFields) ByTextName(s string) protoreflect.FieldDescriptor { + return p.lazyInit().byText[s] +} +func (p *OneofFields) ByNumber(n protoreflect.FieldNumber) protoreflect.FieldDescriptor { + return p.lazyInit().byNum[n] +} +func (p *OneofFields) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) } +func (p *OneofFields) ProtoInternal(pragma.DoNotImplement) {} + +func (p *OneofFields) lazyInit() *OneofFields { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]protoreflect.FieldDescriptor, len(p.List)) + p.byJSON = make(map[string]protoreflect.FieldDescriptor, len(p.List)) + p.byText = make(map[string]protoreflect.FieldDescriptor, len(p.List)) + p.byNum = make(map[protoreflect.FieldNumber]protoreflect.FieldDescriptor, len(p.List)) + for _, f := range p.List { + // Field names and numbers are guaranteed to be unique. + p.byName[f.Name()] = f + p.byJSON[f.JSONName()] = f + p.byText[f.TextName()] = f + p.byNum[f.Number()] = f + } + } + }) + return p +} + +type SourceLocations struct { + // List is a list of SourceLocations. + // The SourceLocation.Next field does not need to be populated + // as it will be lazily populated upon first need. + List []protoreflect.SourceLocation + + // File is the parent file descriptor that these locations are relative to. + // If non-nil, ByDescriptor verifies that the provided descriptor + // is a child of this file descriptor. + File protoreflect.FileDescriptor + + once sync.Once + byPath map[pathKey]int +} + +func (p *SourceLocations) Len() int { return len(p.List) } +func (p *SourceLocations) Get(i int) protoreflect.SourceLocation { return p.lazyInit().List[i] } +func (p *SourceLocations) byKey(k pathKey) protoreflect.SourceLocation { + if i, ok := p.lazyInit().byPath[k]; ok { + return p.List[i] + } + return protoreflect.SourceLocation{} +} +func (p *SourceLocations) ByPath(path protoreflect.SourcePath) protoreflect.SourceLocation { + return p.byKey(newPathKey(path)) +} +func (p *SourceLocations) ByDescriptor(desc protoreflect.Descriptor) protoreflect.SourceLocation { + if p.File != nil && desc != nil && p.File != desc.ParentFile() { + return protoreflect.SourceLocation{} // mismatching parent files + } + var pathArr [16]int32 + path := pathArr[:0] + for { + switch desc.(type) { + case protoreflect.FileDescriptor: + // Reverse the path since it was constructed in reverse. + for i, j := 0, len(path)-1; i < j; i, j = i+1, j-1 { + path[i], path[j] = path[j], path[i] + } + return p.byKey(newPathKey(path)) + case protoreflect.MessageDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(genid.FileDescriptorProto_MessageType_field_number)) + case protoreflect.MessageDescriptor: + path = append(path, int32(genid.DescriptorProto_NestedType_field_number)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.FieldDescriptor: + isExtension := desc.(protoreflect.FieldDescriptor).IsExtension() + path = append(path, int32(desc.Index())) + desc = desc.Parent() + if isExtension { + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(genid.FileDescriptorProto_Extension_field_number)) + case protoreflect.MessageDescriptor: + path = append(path, int32(genid.DescriptorProto_Extension_field_number)) + default: + return protoreflect.SourceLocation{} + } + } else { + switch desc.(type) { + case protoreflect.MessageDescriptor: + path = append(path, int32(genid.DescriptorProto_Field_field_number)) + default: + return protoreflect.SourceLocation{} + } + } + case protoreflect.OneofDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.MessageDescriptor: + path = append(path, int32(genid.DescriptorProto_OneofDecl_field_number)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.EnumDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(genid.FileDescriptorProto_EnumType_field_number)) + case protoreflect.MessageDescriptor: + path = append(path, int32(genid.DescriptorProto_EnumType_field_number)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.EnumValueDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.EnumDescriptor: + path = append(path, int32(genid.EnumDescriptorProto_Value_field_number)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.ServiceDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.FileDescriptor: + path = append(path, int32(genid.FileDescriptorProto_Service_field_number)) + default: + return protoreflect.SourceLocation{} + } + case protoreflect.MethodDescriptor: + path = append(path, int32(desc.Index())) + desc = desc.Parent() + switch desc.(type) { + case protoreflect.ServiceDescriptor: + path = append(path, int32(genid.ServiceDescriptorProto_Method_field_number)) + default: + return protoreflect.SourceLocation{} + } + default: + return protoreflect.SourceLocation{} + } + } +} +func (p *SourceLocations) lazyInit() *SourceLocations { + p.once.Do(func() { + if len(p.List) > 0 { + // Collect all the indexes for a given path. + pathIdxs := make(map[pathKey][]int, len(p.List)) + for i, l := range p.List { + k := newPathKey(l.Path) + pathIdxs[k] = append(pathIdxs[k], i) + } + + // Update the next index for all locations. + p.byPath = make(map[pathKey]int, len(p.List)) + for k, idxs := range pathIdxs { + for i := 0; i < len(idxs)-1; i++ { + p.List[idxs[i]].Next = idxs[i+1] + } + p.List[idxs[len(idxs)-1]].Next = 0 + p.byPath[k] = idxs[0] // record the first location for this path + } + } + }) + return p +} +func (p *SourceLocations) ProtoInternal(pragma.DoNotImplement) {} + +// pathKey is a comparable representation of protoreflect.SourcePath. +type pathKey struct { + arr [16]uint8 // first n-1 path segments; last element is the length + str string // used if the path does not fit in arr +} + +func newPathKey(p protoreflect.SourcePath) (k pathKey) { + if len(p) < len(k.arr) { + for i, ps := range p { + if ps < 0 || math.MaxUint8 <= ps { + return pathKey{str: p.String()} + } + k.arr[i] = uint8(ps) + } + k.arr[len(k.arr)-1] = uint8(len(p)) + return k + } + return pathKey{str: p.String()} +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go new file mode 100644 index 0000000..30db19f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go @@ -0,0 +1,356 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package filedesc + +import ( + "fmt" + "sync" + + "google.golang.org/protobuf/internal/descfmt" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type Enums struct { + List []Enum + once sync.Once + byName map[protoreflect.Name]*Enum // protected by once +} + +func (p *Enums) Len() int { + return len(p.List) +} +func (p *Enums) Get(i int) protoreflect.EnumDescriptor { + return &p.List[i] +} +func (p *Enums) ByName(s protoreflect.Name) protoreflect.EnumDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Enums) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Enums) ProtoInternal(pragma.DoNotImplement) {} +func (p *Enums) lazyInit() *Enums { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Enum, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type EnumValues struct { + List []EnumValue + once sync.Once + byName map[protoreflect.Name]*EnumValue // protected by once + byNum map[protoreflect.EnumNumber]*EnumValue // protected by once +} + +func (p *EnumValues) Len() int { + return len(p.List) +} +func (p *EnumValues) Get(i int) protoreflect.EnumValueDescriptor { + return &p.List[i] +} +func (p *EnumValues) ByName(s protoreflect.Name) protoreflect.EnumValueDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *EnumValues) ByNumber(n protoreflect.EnumNumber) protoreflect.EnumValueDescriptor { + if d := p.lazyInit().byNum[n]; d != nil { + return d + } + return nil +} +func (p *EnumValues) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *EnumValues) ProtoInternal(pragma.DoNotImplement) {} +func (p *EnumValues) lazyInit() *EnumValues { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*EnumValue, len(p.List)) + p.byNum = make(map[protoreflect.EnumNumber]*EnumValue, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + if _, ok := p.byNum[d.Number()]; !ok { + p.byNum[d.Number()] = d + } + } + } + }) + return p +} + +type Messages struct { + List []Message + once sync.Once + byName map[protoreflect.Name]*Message // protected by once +} + +func (p *Messages) Len() int { + return len(p.List) +} +func (p *Messages) Get(i int) protoreflect.MessageDescriptor { + return &p.List[i] +} +func (p *Messages) ByName(s protoreflect.Name) protoreflect.MessageDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Messages) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Messages) ProtoInternal(pragma.DoNotImplement) {} +func (p *Messages) lazyInit() *Messages { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Message, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Fields struct { + List []Field + once sync.Once + byName map[protoreflect.Name]*Field // protected by once + byJSON map[string]*Field // protected by once + byText map[string]*Field // protected by once + byNum map[protoreflect.FieldNumber]*Field // protected by once +} + +func (p *Fields) Len() int { + return len(p.List) +} +func (p *Fields) Get(i int) protoreflect.FieldDescriptor { + return &p.List[i] +} +func (p *Fields) ByName(s protoreflect.Name) protoreflect.FieldDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Fields) ByJSONName(s string) protoreflect.FieldDescriptor { + if d := p.lazyInit().byJSON[s]; d != nil { + return d + } + return nil +} +func (p *Fields) ByTextName(s string) protoreflect.FieldDescriptor { + if d := p.lazyInit().byText[s]; d != nil { + return d + } + return nil +} +func (p *Fields) ByNumber(n protoreflect.FieldNumber) protoreflect.FieldDescriptor { + if d := p.lazyInit().byNum[n]; d != nil { + return d + } + return nil +} +func (p *Fields) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Fields) ProtoInternal(pragma.DoNotImplement) {} +func (p *Fields) lazyInit() *Fields { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Field, len(p.List)) + p.byJSON = make(map[string]*Field, len(p.List)) + p.byText = make(map[string]*Field, len(p.List)) + p.byNum = make(map[protoreflect.FieldNumber]*Field, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + if _, ok := p.byJSON[d.JSONName()]; !ok { + p.byJSON[d.JSONName()] = d + } + if _, ok := p.byText[d.TextName()]; !ok { + p.byText[d.TextName()] = d + } + if _, ok := p.byNum[d.Number()]; !ok { + p.byNum[d.Number()] = d + } + } + } + }) + return p +} + +type Oneofs struct { + List []Oneof + once sync.Once + byName map[protoreflect.Name]*Oneof // protected by once +} + +func (p *Oneofs) Len() int { + return len(p.List) +} +func (p *Oneofs) Get(i int) protoreflect.OneofDescriptor { + return &p.List[i] +} +func (p *Oneofs) ByName(s protoreflect.Name) protoreflect.OneofDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Oneofs) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Oneofs) ProtoInternal(pragma.DoNotImplement) {} +func (p *Oneofs) lazyInit() *Oneofs { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Oneof, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Extensions struct { + List []Extension + once sync.Once + byName map[protoreflect.Name]*Extension // protected by once +} + +func (p *Extensions) Len() int { + return len(p.List) +} +func (p *Extensions) Get(i int) protoreflect.ExtensionDescriptor { + return &p.List[i] +} +func (p *Extensions) ByName(s protoreflect.Name) protoreflect.ExtensionDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Extensions) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Extensions) ProtoInternal(pragma.DoNotImplement) {} +func (p *Extensions) lazyInit() *Extensions { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Extension, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Services struct { + List []Service + once sync.Once + byName map[protoreflect.Name]*Service // protected by once +} + +func (p *Services) Len() int { + return len(p.List) +} +func (p *Services) Get(i int) protoreflect.ServiceDescriptor { + return &p.List[i] +} +func (p *Services) ByName(s protoreflect.Name) protoreflect.ServiceDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Services) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Services) ProtoInternal(pragma.DoNotImplement) {} +func (p *Services) lazyInit() *Services { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Service, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} + +type Methods struct { + List []Method + once sync.Once + byName map[protoreflect.Name]*Method // protected by once +} + +func (p *Methods) Len() int { + return len(p.List) +} +func (p *Methods) Get(i int) protoreflect.MethodDescriptor { + return &p.List[i] +} +func (p *Methods) ByName(s protoreflect.Name) protoreflect.MethodDescriptor { + if d := p.lazyInit().byName[s]; d != nil { + return d + } + return nil +} +func (p *Methods) Format(s fmt.State, r rune) { + descfmt.FormatList(s, r, p) +} +func (p *Methods) ProtoInternal(pragma.DoNotImplement) {} +func (p *Methods) lazyInit() *Methods { + p.once.Do(func() { + if len(p.List) > 0 { + p.byName = make(map[protoreflect.Name]*Method, len(p.List)) + for i := range p.List { + d := &p.List[i] + if _, ok := p.byName[d.Name()]; !ok { + p.byName[d.Name()] = d + } + } + } + }) + return p +} diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go b/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go new file mode 100644 index 0000000..28240eb --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filedesc/placeholder.go @@ -0,0 +1,109 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package filedesc + +import ( + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +var ( + emptyNames = new(Names) + emptyEnumRanges = new(EnumRanges) + emptyFieldRanges = new(FieldRanges) + emptyFieldNumbers = new(FieldNumbers) + emptySourceLocations = new(SourceLocations) + + emptyFiles = new(FileImports) + emptyMessages = new(Messages) + emptyFields = new(Fields) + emptyOneofs = new(Oneofs) + emptyEnums = new(Enums) + emptyEnumValues = new(EnumValues) + emptyExtensions = new(Extensions) + emptyServices = new(Services) +) + +// PlaceholderFile is a placeholder, representing only the file path. +type PlaceholderFile string + +func (f PlaceholderFile) ParentFile() protoreflect.FileDescriptor { return f } +func (f PlaceholderFile) Parent() protoreflect.Descriptor { return nil } +func (f PlaceholderFile) Index() int { return 0 } +func (f PlaceholderFile) Syntax() protoreflect.Syntax { return 0 } +func (f PlaceholderFile) Name() protoreflect.Name { return "" } +func (f PlaceholderFile) FullName() protoreflect.FullName { return "" } +func (f PlaceholderFile) IsPlaceholder() bool { return true } +func (f PlaceholderFile) Options() protoreflect.ProtoMessage { return descopts.File } +func (f PlaceholderFile) Path() string { return string(f) } +func (f PlaceholderFile) Package() protoreflect.FullName { return "" } +func (f PlaceholderFile) Imports() protoreflect.FileImports { return emptyFiles } +func (f PlaceholderFile) Messages() protoreflect.MessageDescriptors { return emptyMessages } +func (f PlaceholderFile) Enums() protoreflect.EnumDescriptors { return emptyEnums } +func (f PlaceholderFile) Extensions() protoreflect.ExtensionDescriptors { return emptyExtensions } +func (f PlaceholderFile) Services() protoreflect.ServiceDescriptors { return emptyServices } +func (f PlaceholderFile) SourceLocations() protoreflect.SourceLocations { return emptySourceLocations } +func (f PlaceholderFile) ProtoType(protoreflect.FileDescriptor) { return } +func (f PlaceholderFile) ProtoInternal(pragma.DoNotImplement) { return } + +// PlaceholderEnum is a placeholder, representing only the full name. +type PlaceholderEnum protoreflect.FullName + +func (e PlaceholderEnum) ParentFile() protoreflect.FileDescriptor { return nil } +func (e PlaceholderEnum) Parent() protoreflect.Descriptor { return nil } +func (e PlaceholderEnum) Index() int { return 0 } +func (e PlaceholderEnum) Syntax() protoreflect.Syntax { return 0 } +func (e PlaceholderEnum) Name() protoreflect.Name { return protoreflect.FullName(e).Name() } +func (e PlaceholderEnum) FullName() protoreflect.FullName { return protoreflect.FullName(e) } +func (e PlaceholderEnum) IsPlaceholder() bool { return true } +func (e PlaceholderEnum) Options() protoreflect.ProtoMessage { return descopts.Enum } +func (e PlaceholderEnum) Values() protoreflect.EnumValueDescriptors { return emptyEnumValues } +func (e PlaceholderEnum) ReservedNames() protoreflect.Names { return emptyNames } +func (e PlaceholderEnum) ReservedRanges() protoreflect.EnumRanges { return emptyEnumRanges } +func (e PlaceholderEnum) ProtoType(protoreflect.EnumDescriptor) { return } +func (e PlaceholderEnum) ProtoInternal(pragma.DoNotImplement) { return } + +// PlaceholderEnumValue is a placeholder, representing only the full name. +type PlaceholderEnumValue protoreflect.FullName + +func (e PlaceholderEnumValue) ParentFile() protoreflect.FileDescriptor { return nil } +func (e PlaceholderEnumValue) Parent() protoreflect.Descriptor { return nil } +func (e PlaceholderEnumValue) Index() int { return 0 } +func (e PlaceholderEnumValue) Syntax() protoreflect.Syntax { return 0 } +func (e PlaceholderEnumValue) Name() protoreflect.Name { return protoreflect.FullName(e).Name() } +func (e PlaceholderEnumValue) FullName() protoreflect.FullName { return protoreflect.FullName(e) } +func (e PlaceholderEnumValue) IsPlaceholder() bool { return true } +func (e PlaceholderEnumValue) Options() protoreflect.ProtoMessage { return descopts.EnumValue } +func (e PlaceholderEnumValue) Number() protoreflect.EnumNumber { return 0 } +func (e PlaceholderEnumValue) ProtoType(protoreflect.EnumValueDescriptor) { return } +func (e PlaceholderEnumValue) ProtoInternal(pragma.DoNotImplement) { return } + +// PlaceholderMessage is a placeholder, representing only the full name. +type PlaceholderMessage protoreflect.FullName + +func (m PlaceholderMessage) ParentFile() protoreflect.FileDescriptor { return nil } +func (m PlaceholderMessage) Parent() protoreflect.Descriptor { return nil } +func (m PlaceholderMessage) Index() int { return 0 } +func (m PlaceholderMessage) Syntax() protoreflect.Syntax { return 0 } +func (m PlaceholderMessage) Name() protoreflect.Name { return protoreflect.FullName(m).Name() } +func (m PlaceholderMessage) FullName() protoreflect.FullName { return protoreflect.FullName(m) } +func (m PlaceholderMessage) IsPlaceholder() bool { return true } +func (m PlaceholderMessage) Options() protoreflect.ProtoMessage { return descopts.Message } +func (m PlaceholderMessage) IsMapEntry() bool { return false } +func (m PlaceholderMessage) Fields() protoreflect.FieldDescriptors { return emptyFields } +func (m PlaceholderMessage) Oneofs() protoreflect.OneofDescriptors { return emptyOneofs } +func (m PlaceholderMessage) ReservedNames() protoreflect.Names { return emptyNames } +func (m PlaceholderMessage) ReservedRanges() protoreflect.FieldRanges { return emptyFieldRanges } +func (m PlaceholderMessage) RequiredNumbers() protoreflect.FieldNumbers { return emptyFieldNumbers } +func (m PlaceholderMessage) ExtensionRanges() protoreflect.FieldRanges { return emptyFieldRanges } +func (m PlaceholderMessage) ExtensionRangeOptions(int) protoreflect.ProtoMessage { + panic("index out of range") +} +func (m PlaceholderMessage) Messages() protoreflect.MessageDescriptors { return emptyMessages } +func (m PlaceholderMessage) Enums() protoreflect.EnumDescriptors { return emptyEnums } +func (m PlaceholderMessage) Extensions() protoreflect.ExtensionDescriptors { return emptyExtensions } +func (m PlaceholderMessage) ProtoType(protoreflect.MessageDescriptor) { return } +func (m PlaceholderMessage) ProtoInternal(pragma.DoNotImplement) { return } diff --git a/vendor/google.golang.org/protobuf/internal/filetype/build.go b/vendor/google.golang.org/protobuf/internal/filetype/build.go new file mode 100644 index 0000000..f0e38c4 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/filetype/build.go @@ -0,0 +1,296 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package filetype provides functionality for wrapping descriptors +// with Go type information. +package filetype + +import ( + "reflect" + + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/filedesc" + pimpl "google.golang.org/protobuf/internal/impl" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Builder constructs type descriptors from a raw file descriptor +// and associated Go types for each enum and message declaration. +// +// # Flattened Ordering +// +// The protobuf type system represents declarations as a tree. Certain nodes in +// the tree require us to either associate it with a concrete Go type or to +// resolve a dependency, which is information that must be provided separately +// since it cannot be derived from the file descriptor alone. +// +// However, representing a tree as Go literals is difficult to simply do in a +// space and time efficient way. Thus, we store them as a flattened list of +// objects where the serialization order from the tree-based form is important. +// +// The "flattened ordering" is defined as a tree traversal of all enum, message, +// extension, and service declarations using the following algorithm: +// +// def VisitFileDecls(fd): +// for e in fd.Enums: yield e +// for m in fd.Messages: yield m +// for x in fd.Extensions: yield x +// for s in fd.Services: yield s +// for m in fd.Messages: yield from VisitMessageDecls(m) +// +// def VisitMessageDecls(md): +// for e in md.Enums: yield e +// for m in md.Messages: yield m +// for x in md.Extensions: yield x +// for m in md.Messages: yield from VisitMessageDecls(m) +// +// The traversal starts at the root file descriptor and yields each direct +// declaration within each node before traversing into sub-declarations +// that children themselves may have. +type Builder struct { + // File is the underlying file descriptor builder. + File filedesc.Builder + + // GoTypes is a unique set of the Go types for all declarations and + // dependencies. Each type is represented as a zero value of the Go type. + // + // Declarations are Go types generated for enums and messages directly + // declared (not publicly imported) in the proto source file. + // Messages for map entries are accounted for, but represented by nil. + // Enum declarations in "flattened ordering" come first, followed by + // message declarations in "flattened ordering". + // + // Dependencies are Go types for enums or messages referenced by + // message fields (excluding weak fields), for parent extended messages of + // extension fields, for enums or messages referenced by extension fields, + // and for input and output messages referenced by service methods. + // Dependencies must come after declarations, but the ordering of + // dependencies themselves is unspecified. + GoTypes []interface{} + + // DependencyIndexes is an ordered list of indexes into GoTypes for the + // dependencies of messages, extensions, or services. + // + // There are 5 sub-lists in "flattened ordering" concatenated back-to-back: + // 0. Message field dependencies: list of the enum or message type + // referred to by every message field. + // 1. Extension field targets: list of the extended parent message of + // every extension. + // 2. Extension field dependencies: list of the enum or message type + // referred to by every extension field. + // 3. Service method inputs: list of the input message type + // referred to by every service method. + // 4. Service method outputs: list of the output message type + // referred to by every service method. + // + // The offset into DependencyIndexes for the start of each sub-list + // is appended to the end in reverse order. + DependencyIndexes []int32 + + // EnumInfos is a list of enum infos in "flattened ordering". + EnumInfos []pimpl.EnumInfo + + // MessageInfos is a list of message infos in "flattened ordering". + // If provided, the GoType and PBType for each element is populated. + // + // Requirement: len(MessageInfos) == len(Build.Messages) + MessageInfos []pimpl.MessageInfo + + // ExtensionInfos is a list of extension infos in "flattened ordering". + // Each element is initialized and registered with the protoregistry package. + // + // Requirement: len(LegacyExtensions) == len(Build.Extensions) + ExtensionInfos []pimpl.ExtensionInfo + + // TypeRegistry is the registry to register each type descriptor. + // If nil, it uses protoregistry.GlobalTypes. + TypeRegistry interface { + RegisterMessage(protoreflect.MessageType) error + RegisterEnum(protoreflect.EnumType) error + RegisterExtension(protoreflect.ExtensionType) error + } +} + +// Out is the output of the builder. +type Out struct { + File protoreflect.FileDescriptor +} + +func (tb Builder) Build() (out Out) { + // Replace the resolver with one that resolves dependencies by index, + // which is faster and more reliable than relying on the global registry. + if tb.File.FileRegistry == nil { + tb.File.FileRegistry = protoregistry.GlobalFiles + } + tb.File.FileRegistry = &resolverByIndex{ + goTypes: tb.GoTypes, + depIdxs: tb.DependencyIndexes, + fileRegistry: tb.File.FileRegistry, + } + + // Initialize registry if unpopulated. + if tb.TypeRegistry == nil { + tb.TypeRegistry = protoregistry.GlobalTypes + } + + fbOut := tb.File.Build() + out.File = fbOut.File + + // Process enums. + enumGoTypes := tb.GoTypes[:len(fbOut.Enums)] + if len(tb.EnumInfos) != len(fbOut.Enums) { + panic("mismatching enum lengths") + } + if len(fbOut.Enums) > 0 { + for i := range fbOut.Enums { + tb.EnumInfos[i] = pimpl.EnumInfo{ + GoReflectType: reflect.TypeOf(enumGoTypes[i]), + Desc: &fbOut.Enums[i], + } + // Register enum types. + if err := tb.TypeRegistry.RegisterEnum(&tb.EnumInfos[i]); err != nil { + panic(err) + } + } + } + + // Process messages. + messageGoTypes := tb.GoTypes[len(fbOut.Enums):][:len(fbOut.Messages)] + if len(tb.MessageInfos) != len(fbOut.Messages) { + panic("mismatching message lengths") + } + if len(fbOut.Messages) > 0 { + for i := range fbOut.Messages { + if messageGoTypes[i] == nil { + continue // skip map entry + } + + tb.MessageInfos[i].GoReflectType = reflect.TypeOf(messageGoTypes[i]) + tb.MessageInfos[i].Desc = &fbOut.Messages[i] + + // Register message types. + if err := tb.TypeRegistry.RegisterMessage(&tb.MessageInfos[i]); err != nil { + panic(err) + } + } + + // As a special-case for descriptor.proto, + // locally register concrete message type for the options. + if out.File.Path() == "google/protobuf/descriptor.proto" && out.File.Package() == "google.protobuf" { + for i := range fbOut.Messages { + switch fbOut.Messages[i].Name() { + case "FileOptions": + descopts.File = messageGoTypes[i].(protoreflect.ProtoMessage) + case "EnumOptions": + descopts.Enum = messageGoTypes[i].(protoreflect.ProtoMessage) + case "EnumValueOptions": + descopts.EnumValue = messageGoTypes[i].(protoreflect.ProtoMessage) + case "MessageOptions": + descopts.Message = messageGoTypes[i].(protoreflect.ProtoMessage) + case "FieldOptions": + descopts.Field = messageGoTypes[i].(protoreflect.ProtoMessage) + case "OneofOptions": + descopts.Oneof = messageGoTypes[i].(protoreflect.ProtoMessage) + case "ExtensionRangeOptions": + descopts.ExtensionRange = messageGoTypes[i].(protoreflect.ProtoMessage) + case "ServiceOptions": + descopts.Service = messageGoTypes[i].(protoreflect.ProtoMessage) + case "MethodOptions": + descopts.Method = messageGoTypes[i].(protoreflect.ProtoMessage) + } + } + } + } + + // Process extensions. + if len(tb.ExtensionInfos) != len(fbOut.Extensions) { + panic("mismatching extension lengths") + } + var depIdx int32 + for i := range fbOut.Extensions { + // For enum and message kinds, determine the referent Go type so + // that we can construct their constructors. + const listExtDeps = 2 + var goType reflect.Type + switch fbOut.Extensions[i].L1.Kind { + case protoreflect.EnumKind: + j := depIdxs.Get(tb.DependencyIndexes, listExtDeps, depIdx) + goType = reflect.TypeOf(tb.GoTypes[j]) + depIdx++ + case protoreflect.MessageKind, protoreflect.GroupKind: + j := depIdxs.Get(tb.DependencyIndexes, listExtDeps, depIdx) + goType = reflect.TypeOf(tb.GoTypes[j]) + depIdx++ + default: + goType = goTypeForPBKind[fbOut.Extensions[i].L1.Kind] + } + if fbOut.Extensions[i].IsList() { + goType = reflect.SliceOf(goType) + } + + pimpl.InitExtensionInfo(&tb.ExtensionInfos[i], &fbOut.Extensions[i], goType) + + // Register extension types. + if err := tb.TypeRegistry.RegisterExtension(&tb.ExtensionInfos[i]); err != nil { + panic(err) + } + } + + return out +} + +var goTypeForPBKind = map[protoreflect.Kind]reflect.Type{ + protoreflect.BoolKind: reflect.TypeOf(bool(false)), + protoreflect.Int32Kind: reflect.TypeOf(int32(0)), + protoreflect.Sint32Kind: reflect.TypeOf(int32(0)), + protoreflect.Sfixed32Kind: reflect.TypeOf(int32(0)), + protoreflect.Int64Kind: reflect.TypeOf(int64(0)), + protoreflect.Sint64Kind: reflect.TypeOf(int64(0)), + protoreflect.Sfixed64Kind: reflect.TypeOf(int64(0)), + protoreflect.Uint32Kind: reflect.TypeOf(uint32(0)), + protoreflect.Fixed32Kind: reflect.TypeOf(uint32(0)), + protoreflect.Uint64Kind: reflect.TypeOf(uint64(0)), + protoreflect.Fixed64Kind: reflect.TypeOf(uint64(0)), + protoreflect.FloatKind: reflect.TypeOf(float32(0)), + protoreflect.DoubleKind: reflect.TypeOf(float64(0)), + protoreflect.StringKind: reflect.TypeOf(string("")), + protoreflect.BytesKind: reflect.TypeOf([]byte(nil)), +} + +type depIdxs []int32 + +// Get retrieves the jth element of the ith sub-list. +func (x depIdxs) Get(i, j int32) int32 { + return x[x[int32(len(x))-i-1]+j] +} + +type ( + resolverByIndex struct { + goTypes []interface{} + depIdxs depIdxs + fileRegistry + } + fileRegistry interface { + FindFileByPath(string) (protoreflect.FileDescriptor, error) + FindDescriptorByName(protoreflect.FullName) (protoreflect.Descriptor, error) + RegisterFile(protoreflect.FileDescriptor) error + } +) + +func (r *resolverByIndex) FindEnumByIndex(i, j int32, es []filedesc.Enum, ms []filedesc.Message) protoreflect.EnumDescriptor { + if depIdx := int(r.depIdxs.Get(i, j)); int(depIdx) < len(es)+len(ms) { + return &es[depIdx] + } else { + return pimpl.Export{}.EnumDescriptorOf(r.goTypes[depIdx]) + } +} + +func (r *resolverByIndex) FindMessageByIndex(i, j int32, es []filedesc.Enum, ms []filedesc.Message) protoreflect.MessageDescriptor { + if depIdx := int(r.depIdxs.Get(i, j)); depIdx < len(es)+len(ms) { + return &ms[depIdx-len(es)] + } else { + return pimpl.Export{}.MessageDescriptorOf(r.goTypes[depIdx]) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/flags/flags.go b/vendor/google.golang.org/protobuf/internal/flags/flags.go new file mode 100644 index 0000000..58372dd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/flags/flags.go @@ -0,0 +1,24 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package flags provides a set of flags controlled by build tags. +package flags + +// ProtoLegacy specifies whether to enable support for legacy functionality +// such as MessageSets, weak fields, and various other obscure behavior +// that is necessary to maintain backwards compatibility with proto1 or +// the pre-release variants of proto2 and proto3. +// +// This is disabled by default unless built with the "protolegacy" tag. +// +// WARNING: The compatibility agreement covers nothing provided by this flag. +// As such, functionality may suddenly be removed or changed at our discretion. +const ProtoLegacy = protoLegacy + +// LazyUnmarshalExtensions specifies whether to lazily unmarshal extensions. +// +// Lazy extension unmarshaling validates the contents of message-valued +// extension fields at unmarshal time, but defers creating the message +// structure until the extension is first accessed. +const LazyUnmarshalExtensions = ProtoLegacy diff --git a/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go new file mode 100644 index 0000000..bda8e8c --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go @@ -0,0 +1,10 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !protolegacy +// +build !protolegacy + +package flags + +const protoLegacy = false diff --git a/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go new file mode 100644 index 0000000..6d8d9bd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go @@ -0,0 +1,10 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build protolegacy +// +build protolegacy + +package flags + +const protoLegacy = true diff --git a/vendor/google.golang.org/protobuf/internal/genid/any_gen.go b/vendor/google.golang.org/protobuf/internal/genid/any_gen.go new file mode 100644 index 0000000..e6f7d47 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/any_gen.go @@ -0,0 +1,34 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_any_proto = "google/protobuf/any.proto" + +// Names for google.protobuf.Any. +const ( + Any_message_name protoreflect.Name = "Any" + Any_message_fullname protoreflect.FullName = "google.protobuf.Any" +) + +// Field names for google.protobuf.Any. +const ( + Any_TypeUrl_field_name protoreflect.Name = "type_url" + Any_Value_field_name protoreflect.Name = "value" + + Any_TypeUrl_field_fullname protoreflect.FullName = "google.protobuf.Any.type_url" + Any_Value_field_fullname protoreflect.FullName = "google.protobuf.Any.value" +) + +// Field numbers for google.protobuf.Any. +const ( + Any_TypeUrl_field_number protoreflect.FieldNumber = 1 + Any_Value_field_number protoreflect.FieldNumber = 2 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/api_gen.go b/vendor/google.golang.org/protobuf/internal/genid/api_gen.go new file mode 100644 index 0000000..df8f918 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/api_gen.go @@ -0,0 +1,106 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_api_proto = "google/protobuf/api.proto" + +// Names for google.protobuf.Api. +const ( + Api_message_name protoreflect.Name = "Api" + Api_message_fullname protoreflect.FullName = "google.protobuf.Api" +) + +// Field names for google.protobuf.Api. +const ( + Api_Name_field_name protoreflect.Name = "name" + Api_Methods_field_name protoreflect.Name = "methods" + Api_Options_field_name protoreflect.Name = "options" + Api_Version_field_name protoreflect.Name = "version" + Api_SourceContext_field_name protoreflect.Name = "source_context" + Api_Mixins_field_name protoreflect.Name = "mixins" + Api_Syntax_field_name protoreflect.Name = "syntax" + + Api_Name_field_fullname protoreflect.FullName = "google.protobuf.Api.name" + Api_Methods_field_fullname protoreflect.FullName = "google.protobuf.Api.methods" + Api_Options_field_fullname protoreflect.FullName = "google.protobuf.Api.options" + Api_Version_field_fullname protoreflect.FullName = "google.protobuf.Api.version" + Api_SourceContext_field_fullname protoreflect.FullName = "google.protobuf.Api.source_context" + Api_Mixins_field_fullname protoreflect.FullName = "google.protobuf.Api.mixins" + Api_Syntax_field_fullname protoreflect.FullName = "google.protobuf.Api.syntax" +) + +// Field numbers for google.protobuf.Api. +const ( + Api_Name_field_number protoreflect.FieldNumber = 1 + Api_Methods_field_number protoreflect.FieldNumber = 2 + Api_Options_field_number protoreflect.FieldNumber = 3 + Api_Version_field_number protoreflect.FieldNumber = 4 + Api_SourceContext_field_number protoreflect.FieldNumber = 5 + Api_Mixins_field_number protoreflect.FieldNumber = 6 + Api_Syntax_field_number protoreflect.FieldNumber = 7 +) + +// Names for google.protobuf.Method. +const ( + Method_message_name protoreflect.Name = "Method" + Method_message_fullname protoreflect.FullName = "google.protobuf.Method" +) + +// Field names for google.protobuf.Method. +const ( + Method_Name_field_name protoreflect.Name = "name" + Method_RequestTypeUrl_field_name protoreflect.Name = "request_type_url" + Method_RequestStreaming_field_name protoreflect.Name = "request_streaming" + Method_ResponseTypeUrl_field_name protoreflect.Name = "response_type_url" + Method_ResponseStreaming_field_name protoreflect.Name = "response_streaming" + Method_Options_field_name protoreflect.Name = "options" + Method_Syntax_field_name protoreflect.Name = "syntax" + + Method_Name_field_fullname protoreflect.FullName = "google.protobuf.Method.name" + Method_RequestTypeUrl_field_fullname protoreflect.FullName = "google.protobuf.Method.request_type_url" + Method_RequestStreaming_field_fullname protoreflect.FullName = "google.protobuf.Method.request_streaming" + Method_ResponseTypeUrl_field_fullname protoreflect.FullName = "google.protobuf.Method.response_type_url" + Method_ResponseStreaming_field_fullname protoreflect.FullName = "google.protobuf.Method.response_streaming" + Method_Options_field_fullname protoreflect.FullName = "google.protobuf.Method.options" + Method_Syntax_field_fullname protoreflect.FullName = "google.protobuf.Method.syntax" +) + +// Field numbers for google.protobuf.Method. +const ( + Method_Name_field_number protoreflect.FieldNumber = 1 + Method_RequestTypeUrl_field_number protoreflect.FieldNumber = 2 + Method_RequestStreaming_field_number protoreflect.FieldNumber = 3 + Method_ResponseTypeUrl_field_number protoreflect.FieldNumber = 4 + Method_ResponseStreaming_field_number protoreflect.FieldNumber = 5 + Method_Options_field_number protoreflect.FieldNumber = 6 + Method_Syntax_field_number protoreflect.FieldNumber = 7 +) + +// Names for google.protobuf.Mixin. +const ( + Mixin_message_name protoreflect.Name = "Mixin" + Mixin_message_fullname protoreflect.FullName = "google.protobuf.Mixin" +) + +// Field names for google.protobuf.Mixin. +const ( + Mixin_Name_field_name protoreflect.Name = "name" + Mixin_Root_field_name protoreflect.Name = "root" + + Mixin_Name_field_fullname protoreflect.FullName = "google.protobuf.Mixin.name" + Mixin_Root_field_fullname protoreflect.FullName = "google.protobuf.Mixin.root" +) + +// Field numbers for google.protobuf.Mixin. +const ( + Mixin_Name_field_number protoreflect.FieldNumber = 1 + Mixin_Root_field_number protoreflect.FieldNumber = 2 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go b/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go new file mode 100644 index 0000000..5c0e8f7 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go @@ -0,0 +1,871 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_descriptor_proto = "google/protobuf/descriptor.proto" + +// Names for google.protobuf.FileDescriptorSet. +const ( + FileDescriptorSet_message_name protoreflect.Name = "FileDescriptorSet" + FileDescriptorSet_message_fullname protoreflect.FullName = "google.protobuf.FileDescriptorSet" +) + +// Field names for google.protobuf.FileDescriptorSet. +const ( + FileDescriptorSet_File_field_name protoreflect.Name = "file" + + FileDescriptorSet_File_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorSet.file" +) + +// Field numbers for google.protobuf.FileDescriptorSet. +const ( + FileDescriptorSet_File_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.FileDescriptorProto. +const ( + FileDescriptorProto_message_name protoreflect.Name = "FileDescriptorProto" + FileDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto" +) + +// Field names for google.protobuf.FileDescriptorProto. +const ( + FileDescriptorProto_Name_field_name protoreflect.Name = "name" + FileDescriptorProto_Package_field_name protoreflect.Name = "package" + FileDescriptorProto_Dependency_field_name protoreflect.Name = "dependency" + FileDescriptorProto_PublicDependency_field_name protoreflect.Name = "public_dependency" + FileDescriptorProto_WeakDependency_field_name protoreflect.Name = "weak_dependency" + FileDescriptorProto_MessageType_field_name protoreflect.Name = "message_type" + FileDescriptorProto_EnumType_field_name protoreflect.Name = "enum_type" + FileDescriptorProto_Service_field_name protoreflect.Name = "service" + FileDescriptorProto_Extension_field_name protoreflect.Name = "extension" + FileDescriptorProto_Options_field_name protoreflect.Name = "options" + FileDescriptorProto_SourceCodeInfo_field_name protoreflect.Name = "source_code_info" + FileDescriptorProto_Syntax_field_name protoreflect.Name = "syntax" + FileDescriptorProto_Edition_field_name protoreflect.Name = "edition" + + FileDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.name" + FileDescriptorProto_Package_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.package" + FileDescriptorProto_Dependency_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.dependency" + FileDescriptorProto_PublicDependency_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.public_dependency" + FileDescriptorProto_WeakDependency_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.weak_dependency" + FileDescriptorProto_MessageType_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.message_type" + FileDescriptorProto_EnumType_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.enum_type" + FileDescriptorProto_Service_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.service" + FileDescriptorProto_Extension_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.extension" + FileDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.options" + FileDescriptorProto_SourceCodeInfo_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.source_code_info" + FileDescriptorProto_Syntax_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.syntax" + FileDescriptorProto_Edition_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto.edition" +) + +// Field numbers for google.protobuf.FileDescriptorProto. +const ( + FileDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + FileDescriptorProto_Package_field_number protoreflect.FieldNumber = 2 + FileDescriptorProto_Dependency_field_number protoreflect.FieldNumber = 3 + FileDescriptorProto_PublicDependency_field_number protoreflect.FieldNumber = 10 + FileDescriptorProto_WeakDependency_field_number protoreflect.FieldNumber = 11 + FileDescriptorProto_MessageType_field_number protoreflect.FieldNumber = 4 + FileDescriptorProto_EnumType_field_number protoreflect.FieldNumber = 5 + FileDescriptorProto_Service_field_number protoreflect.FieldNumber = 6 + FileDescriptorProto_Extension_field_number protoreflect.FieldNumber = 7 + FileDescriptorProto_Options_field_number protoreflect.FieldNumber = 8 + FileDescriptorProto_SourceCodeInfo_field_number protoreflect.FieldNumber = 9 + FileDescriptorProto_Syntax_field_number protoreflect.FieldNumber = 12 + FileDescriptorProto_Edition_field_number protoreflect.FieldNumber = 13 +) + +// Names for google.protobuf.DescriptorProto. +const ( + DescriptorProto_message_name protoreflect.Name = "DescriptorProto" + DescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.DescriptorProto" +) + +// Field names for google.protobuf.DescriptorProto. +const ( + DescriptorProto_Name_field_name protoreflect.Name = "name" + DescriptorProto_Field_field_name protoreflect.Name = "field" + DescriptorProto_Extension_field_name protoreflect.Name = "extension" + DescriptorProto_NestedType_field_name protoreflect.Name = "nested_type" + DescriptorProto_EnumType_field_name protoreflect.Name = "enum_type" + DescriptorProto_ExtensionRange_field_name protoreflect.Name = "extension_range" + DescriptorProto_OneofDecl_field_name protoreflect.Name = "oneof_decl" + DescriptorProto_Options_field_name protoreflect.Name = "options" + DescriptorProto_ReservedRange_field_name protoreflect.Name = "reserved_range" + DescriptorProto_ReservedName_field_name protoreflect.Name = "reserved_name" + + DescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.name" + DescriptorProto_Field_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.field" + DescriptorProto_Extension_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.extension" + DescriptorProto_NestedType_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.nested_type" + DescriptorProto_EnumType_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.enum_type" + DescriptorProto_ExtensionRange_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.extension_range" + DescriptorProto_OneofDecl_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.oneof_decl" + DescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.options" + DescriptorProto_ReservedRange_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.reserved_range" + DescriptorProto_ReservedName_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.reserved_name" +) + +// Field numbers for google.protobuf.DescriptorProto. +const ( + DescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + DescriptorProto_Field_field_number protoreflect.FieldNumber = 2 + DescriptorProto_Extension_field_number protoreflect.FieldNumber = 6 + DescriptorProto_NestedType_field_number protoreflect.FieldNumber = 3 + DescriptorProto_EnumType_field_number protoreflect.FieldNumber = 4 + DescriptorProto_ExtensionRange_field_number protoreflect.FieldNumber = 5 + DescriptorProto_OneofDecl_field_number protoreflect.FieldNumber = 8 + DescriptorProto_Options_field_number protoreflect.FieldNumber = 7 + DescriptorProto_ReservedRange_field_number protoreflect.FieldNumber = 9 + DescriptorProto_ReservedName_field_number protoreflect.FieldNumber = 10 +) + +// Names for google.protobuf.DescriptorProto.ExtensionRange. +const ( + DescriptorProto_ExtensionRange_message_name protoreflect.Name = "ExtensionRange" + DescriptorProto_ExtensionRange_message_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ExtensionRange" +) + +// Field names for google.protobuf.DescriptorProto.ExtensionRange. +const ( + DescriptorProto_ExtensionRange_Start_field_name protoreflect.Name = "start" + DescriptorProto_ExtensionRange_End_field_name protoreflect.Name = "end" + DescriptorProto_ExtensionRange_Options_field_name protoreflect.Name = "options" + + DescriptorProto_ExtensionRange_Start_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ExtensionRange.start" + DescriptorProto_ExtensionRange_End_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ExtensionRange.end" + DescriptorProto_ExtensionRange_Options_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ExtensionRange.options" +) + +// Field numbers for google.protobuf.DescriptorProto.ExtensionRange. +const ( + DescriptorProto_ExtensionRange_Start_field_number protoreflect.FieldNumber = 1 + DescriptorProto_ExtensionRange_End_field_number protoreflect.FieldNumber = 2 + DescriptorProto_ExtensionRange_Options_field_number protoreflect.FieldNumber = 3 +) + +// Names for google.protobuf.DescriptorProto.ReservedRange. +const ( + DescriptorProto_ReservedRange_message_name protoreflect.Name = "ReservedRange" + DescriptorProto_ReservedRange_message_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ReservedRange" +) + +// Field names for google.protobuf.DescriptorProto.ReservedRange. +const ( + DescriptorProto_ReservedRange_Start_field_name protoreflect.Name = "start" + DescriptorProto_ReservedRange_End_field_name protoreflect.Name = "end" + + DescriptorProto_ReservedRange_Start_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ReservedRange.start" + DescriptorProto_ReservedRange_End_field_fullname protoreflect.FullName = "google.protobuf.DescriptorProto.ReservedRange.end" +) + +// Field numbers for google.protobuf.DescriptorProto.ReservedRange. +const ( + DescriptorProto_ReservedRange_Start_field_number protoreflect.FieldNumber = 1 + DescriptorProto_ReservedRange_End_field_number protoreflect.FieldNumber = 2 +) + +// Names for google.protobuf.ExtensionRangeOptions. +const ( + ExtensionRangeOptions_message_name protoreflect.Name = "ExtensionRangeOptions" + ExtensionRangeOptions_message_fullname protoreflect.FullName = "google.protobuf.ExtensionRangeOptions" +) + +// Field names for google.protobuf.ExtensionRangeOptions. +const ( + ExtensionRangeOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + ExtensionRangeOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.ExtensionRangeOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.ExtensionRangeOptions. +const ( + ExtensionRangeOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Names for google.protobuf.FieldDescriptorProto. +const ( + FieldDescriptorProto_message_name protoreflect.Name = "FieldDescriptorProto" + FieldDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto" +) + +// Field names for google.protobuf.FieldDescriptorProto. +const ( + FieldDescriptorProto_Name_field_name protoreflect.Name = "name" + FieldDescriptorProto_Number_field_name protoreflect.Name = "number" + FieldDescriptorProto_Label_field_name protoreflect.Name = "label" + FieldDescriptorProto_Type_field_name protoreflect.Name = "type" + FieldDescriptorProto_TypeName_field_name protoreflect.Name = "type_name" + FieldDescriptorProto_Extendee_field_name protoreflect.Name = "extendee" + FieldDescriptorProto_DefaultValue_field_name protoreflect.Name = "default_value" + FieldDescriptorProto_OneofIndex_field_name protoreflect.Name = "oneof_index" + FieldDescriptorProto_JsonName_field_name protoreflect.Name = "json_name" + FieldDescriptorProto_Options_field_name protoreflect.Name = "options" + FieldDescriptorProto_Proto3Optional_field_name protoreflect.Name = "proto3_optional" + + FieldDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.name" + FieldDescriptorProto_Number_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.number" + FieldDescriptorProto_Label_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.label" + FieldDescriptorProto_Type_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.type" + FieldDescriptorProto_TypeName_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.type_name" + FieldDescriptorProto_Extendee_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.extendee" + FieldDescriptorProto_DefaultValue_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.default_value" + FieldDescriptorProto_OneofIndex_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.oneof_index" + FieldDescriptorProto_JsonName_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.json_name" + FieldDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.options" + FieldDescriptorProto_Proto3Optional_field_fullname protoreflect.FullName = "google.protobuf.FieldDescriptorProto.proto3_optional" +) + +// Field numbers for google.protobuf.FieldDescriptorProto. +const ( + FieldDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + FieldDescriptorProto_Number_field_number protoreflect.FieldNumber = 3 + FieldDescriptorProto_Label_field_number protoreflect.FieldNumber = 4 + FieldDescriptorProto_Type_field_number protoreflect.FieldNumber = 5 + FieldDescriptorProto_TypeName_field_number protoreflect.FieldNumber = 6 + FieldDescriptorProto_Extendee_field_number protoreflect.FieldNumber = 2 + FieldDescriptorProto_DefaultValue_field_number protoreflect.FieldNumber = 7 + FieldDescriptorProto_OneofIndex_field_number protoreflect.FieldNumber = 9 + FieldDescriptorProto_JsonName_field_number protoreflect.FieldNumber = 10 + FieldDescriptorProto_Options_field_number protoreflect.FieldNumber = 8 + FieldDescriptorProto_Proto3Optional_field_number protoreflect.FieldNumber = 17 +) + +// Full and short names for google.protobuf.FieldDescriptorProto.Type. +const ( + FieldDescriptorProto_Type_enum_fullname = "google.protobuf.FieldDescriptorProto.Type" + FieldDescriptorProto_Type_enum_name = "Type" +) + +// Full and short names for google.protobuf.FieldDescriptorProto.Label. +const ( + FieldDescriptorProto_Label_enum_fullname = "google.protobuf.FieldDescriptorProto.Label" + FieldDescriptorProto_Label_enum_name = "Label" +) + +// Names for google.protobuf.OneofDescriptorProto. +const ( + OneofDescriptorProto_message_name protoreflect.Name = "OneofDescriptorProto" + OneofDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.OneofDescriptorProto" +) + +// Field names for google.protobuf.OneofDescriptorProto. +const ( + OneofDescriptorProto_Name_field_name protoreflect.Name = "name" + OneofDescriptorProto_Options_field_name protoreflect.Name = "options" + + OneofDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.OneofDescriptorProto.name" + OneofDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.OneofDescriptorProto.options" +) + +// Field numbers for google.protobuf.OneofDescriptorProto. +const ( + OneofDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + OneofDescriptorProto_Options_field_number protoreflect.FieldNumber = 2 +) + +// Names for google.protobuf.EnumDescriptorProto. +const ( + EnumDescriptorProto_message_name protoreflect.Name = "EnumDescriptorProto" + EnumDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto" +) + +// Field names for google.protobuf.EnumDescriptorProto. +const ( + EnumDescriptorProto_Name_field_name protoreflect.Name = "name" + EnumDescriptorProto_Value_field_name protoreflect.Name = "value" + EnumDescriptorProto_Options_field_name protoreflect.Name = "options" + EnumDescriptorProto_ReservedRange_field_name protoreflect.Name = "reserved_range" + EnumDescriptorProto_ReservedName_field_name protoreflect.Name = "reserved_name" + + EnumDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.name" + EnumDescriptorProto_Value_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.value" + EnumDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.options" + EnumDescriptorProto_ReservedRange_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.reserved_range" + EnumDescriptorProto_ReservedName_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.reserved_name" +) + +// Field numbers for google.protobuf.EnumDescriptorProto. +const ( + EnumDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + EnumDescriptorProto_Value_field_number protoreflect.FieldNumber = 2 + EnumDescriptorProto_Options_field_number protoreflect.FieldNumber = 3 + EnumDescriptorProto_ReservedRange_field_number protoreflect.FieldNumber = 4 + EnumDescriptorProto_ReservedName_field_number protoreflect.FieldNumber = 5 +) + +// Names for google.protobuf.EnumDescriptorProto.EnumReservedRange. +const ( + EnumDescriptorProto_EnumReservedRange_message_name protoreflect.Name = "EnumReservedRange" + EnumDescriptorProto_EnumReservedRange_message_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.EnumReservedRange" +) + +// Field names for google.protobuf.EnumDescriptorProto.EnumReservedRange. +const ( + EnumDescriptorProto_EnumReservedRange_Start_field_name protoreflect.Name = "start" + EnumDescriptorProto_EnumReservedRange_End_field_name protoreflect.Name = "end" + + EnumDescriptorProto_EnumReservedRange_Start_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.EnumReservedRange.start" + EnumDescriptorProto_EnumReservedRange_End_field_fullname protoreflect.FullName = "google.protobuf.EnumDescriptorProto.EnumReservedRange.end" +) + +// Field numbers for google.protobuf.EnumDescriptorProto.EnumReservedRange. +const ( + EnumDescriptorProto_EnumReservedRange_Start_field_number protoreflect.FieldNumber = 1 + EnumDescriptorProto_EnumReservedRange_End_field_number protoreflect.FieldNumber = 2 +) + +// Names for google.protobuf.EnumValueDescriptorProto. +const ( + EnumValueDescriptorProto_message_name protoreflect.Name = "EnumValueDescriptorProto" + EnumValueDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.EnumValueDescriptorProto" +) + +// Field names for google.protobuf.EnumValueDescriptorProto. +const ( + EnumValueDescriptorProto_Name_field_name protoreflect.Name = "name" + EnumValueDescriptorProto_Number_field_name protoreflect.Name = "number" + EnumValueDescriptorProto_Options_field_name protoreflect.Name = "options" + + EnumValueDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.EnumValueDescriptorProto.name" + EnumValueDescriptorProto_Number_field_fullname protoreflect.FullName = "google.protobuf.EnumValueDescriptorProto.number" + EnumValueDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.EnumValueDescriptorProto.options" +) + +// Field numbers for google.protobuf.EnumValueDescriptorProto. +const ( + EnumValueDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + EnumValueDescriptorProto_Number_field_number protoreflect.FieldNumber = 2 + EnumValueDescriptorProto_Options_field_number protoreflect.FieldNumber = 3 +) + +// Names for google.protobuf.ServiceDescriptorProto. +const ( + ServiceDescriptorProto_message_name protoreflect.Name = "ServiceDescriptorProto" + ServiceDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.ServiceDescriptorProto" +) + +// Field names for google.protobuf.ServiceDescriptorProto. +const ( + ServiceDescriptorProto_Name_field_name protoreflect.Name = "name" + ServiceDescriptorProto_Method_field_name protoreflect.Name = "method" + ServiceDescriptorProto_Options_field_name protoreflect.Name = "options" + + ServiceDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.ServiceDescriptorProto.name" + ServiceDescriptorProto_Method_field_fullname protoreflect.FullName = "google.protobuf.ServiceDescriptorProto.method" + ServiceDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.ServiceDescriptorProto.options" +) + +// Field numbers for google.protobuf.ServiceDescriptorProto. +const ( + ServiceDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + ServiceDescriptorProto_Method_field_number protoreflect.FieldNumber = 2 + ServiceDescriptorProto_Options_field_number protoreflect.FieldNumber = 3 +) + +// Names for google.protobuf.MethodDescriptorProto. +const ( + MethodDescriptorProto_message_name protoreflect.Name = "MethodDescriptorProto" + MethodDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto" +) + +// Field names for google.protobuf.MethodDescriptorProto. +const ( + MethodDescriptorProto_Name_field_name protoreflect.Name = "name" + MethodDescriptorProto_InputType_field_name protoreflect.Name = "input_type" + MethodDescriptorProto_OutputType_field_name protoreflect.Name = "output_type" + MethodDescriptorProto_Options_field_name protoreflect.Name = "options" + MethodDescriptorProto_ClientStreaming_field_name protoreflect.Name = "client_streaming" + MethodDescriptorProto_ServerStreaming_field_name protoreflect.Name = "server_streaming" + + MethodDescriptorProto_Name_field_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto.name" + MethodDescriptorProto_InputType_field_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto.input_type" + MethodDescriptorProto_OutputType_field_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto.output_type" + MethodDescriptorProto_Options_field_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto.options" + MethodDescriptorProto_ClientStreaming_field_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto.client_streaming" + MethodDescriptorProto_ServerStreaming_field_fullname protoreflect.FullName = "google.protobuf.MethodDescriptorProto.server_streaming" +) + +// Field numbers for google.protobuf.MethodDescriptorProto. +const ( + MethodDescriptorProto_Name_field_number protoreflect.FieldNumber = 1 + MethodDescriptorProto_InputType_field_number protoreflect.FieldNumber = 2 + MethodDescriptorProto_OutputType_field_number protoreflect.FieldNumber = 3 + MethodDescriptorProto_Options_field_number protoreflect.FieldNumber = 4 + MethodDescriptorProto_ClientStreaming_field_number protoreflect.FieldNumber = 5 + MethodDescriptorProto_ServerStreaming_field_number protoreflect.FieldNumber = 6 +) + +// Names for google.protobuf.FileOptions. +const ( + FileOptions_message_name protoreflect.Name = "FileOptions" + FileOptions_message_fullname protoreflect.FullName = "google.protobuf.FileOptions" +) + +// Field names for google.protobuf.FileOptions. +const ( + FileOptions_JavaPackage_field_name protoreflect.Name = "java_package" + FileOptions_JavaOuterClassname_field_name protoreflect.Name = "java_outer_classname" + FileOptions_JavaMultipleFiles_field_name protoreflect.Name = "java_multiple_files" + FileOptions_JavaGenerateEqualsAndHash_field_name protoreflect.Name = "java_generate_equals_and_hash" + FileOptions_JavaStringCheckUtf8_field_name protoreflect.Name = "java_string_check_utf8" + FileOptions_OptimizeFor_field_name protoreflect.Name = "optimize_for" + FileOptions_GoPackage_field_name protoreflect.Name = "go_package" + FileOptions_CcGenericServices_field_name protoreflect.Name = "cc_generic_services" + FileOptions_JavaGenericServices_field_name protoreflect.Name = "java_generic_services" + FileOptions_PyGenericServices_field_name protoreflect.Name = "py_generic_services" + FileOptions_PhpGenericServices_field_name protoreflect.Name = "php_generic_services" + FileOptions_Deprecated_field_name protoreflect.Name = "deprecated" + FileOptions_CcEnableArenas_field_name protoreflect.Name = "cc_enable_arenas" + FileOptions_ObjcClassPrefix_field_name protoreflect.Name = "objc_class_prefix" + FileOptions_CsharpNamespace_field_name protoreflect.Name = "csharp_namespace" + FileOptions_SwiftPrefix_field_name protoreflect.Name = "swift_prefix" + FileOptions_PhpClassPrefix_field_name protoreflect.Name = "php_class_prefix" + FileOptions_PhpNamespace_field_name protoreflect.Name = "php_namespace" + FileOptions_PhpMetadataNamespace_field_name protoreflect.Name = "php_metadata_namespace" + FileOptions_RubyPackage_field_name protoreflect.Name = "ruby_package" + FileOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + FileOptions_JavaPackage_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.java_package" + FileOptions_JavaOuterClassname_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.java_outer_classname" + FileOptions_JavaMultipleFiles_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.java_multiple_files" + FileOptions_JavaGenerateEqualsAndHash_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.java_generate_equals_and_hash" + FileOptions_JavaStringCheckUtf8_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.java_string_check_utf8" + FileOptions_OptimizeFor_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.optimize_for" + FileOptions_GoPackage_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.go_package" + FileOptions_CcGenericServices_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.cc_generic_services" + FileOptions_JavaGenericServices_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.java_generic_services" + FileOptions_PyGenericServices_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.py_generic_services" + FileOptions_PhpGenericServices_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.php_generic_services" + FileOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.deprecated" + FileOptions_CcEnableArenas_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.cc_enable_arenas" + FileOptions_ObjcClassPrefix_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.objc_class_prefix" + FileOptions_CsharpNamespace_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.csharp_namespace" + FileOptions_SwiftPrefix_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.swift_prefix" + FileOptions_PhpClassPrefix_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.php_class_prefix" + FileOptions_PhpNamespace_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.php_namespace" + FileOptions_PhpMetadataNamespace_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.php_metadata_namespace" + FileOptions_RubyPackage_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.ruby_package" + FileOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.FileOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.FileOptions. +const ( + FileOptions_JavaPackage_field_number protoreflect.FieldNumber = 1 + FileOptions_JavaOuterClassname_field_number protoreflect.FieldNumber = 8 + FileOptions_JavaMultipleFiles_field_number protoreflect.FieldNumber = 10 + FileOptions_JavaGenerateEqualsAndHash_field_number protoreflect.FieldNumber = 20 + FileOptions_JavaStringCheckUtf8_field_number protoreflect.FieldNumber = 27 + FileOptions_OptimizeFor_field_number protoreflect.FieldNumber = 9 + FileOptions_GoPackage_field_number protoreflect.FieldNumber = 11 + FileOptions_CcGenericServices_field_number protoreflect.FieldNumber = 16 + FileOptions_JavaGenericServices_field_number protoreflect.FieldNumber = 17 + FileOptions_PyGenericServices_field_number protoreflect.FieldNumber = 18 + FileOptions_PhpGenericServices_field_number protoreflect.FieldNumber = 42 + FileOptions_Deprecated_field_number protoreflect.FieldNumber = 23 + FileOptions_CcEnableArenas_field_number protoreflect.FieldNumber = 31 + FileOptions_ObjcClassPrefix_field_number protoreflect.FieldNumber = 36 + FileOptions_CsharpNamespace_field_number protoreflect.FieldNumber = 37 + FileOptions_SwiftPrefix_field_number protoreflect.FieldNumber = 39 + FileOptions_PhpClassPrefix_field_number protoreflect.FieldNumber = 40 + FileOptions_PhpNamespace_field_number protoreflect.FieldNumber = 41 + FileOptions_PhpMetadataNamespace_field_number protoreflect.FieldNumber = 44 + FileOptions_RubyPackage_field_number protoreflect.FieldNumber = 45 + FileOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Full and short names for google.protobuf.FileOptions.OptimizeMode. +const ( + FileOptions_OptimizeMode_enum_fullname = "google.protobuf.FileOptions.OptimizeMode" + FileOptions_OptimizeMode_enum_name = "OptimizeMode" +) + +// Names for google.protobuf.MessageOptions. +const ( + MessageOptions_message_name protoreflect.Name = "MessageOptions" + MessageOptions_message_fullname protoreflect.FullName = "google.protobuf.MessageOptions" +) + +// Field names for google.protobuf.MessageOptions. +const ( + MessageOptions_MessageSetWireFormat_field_name protoreflect.Name = "message_set_wire_format" + MessageOptions_NoStandardDescriptorAccessor_field_name protoreflect.Name = "no_standard_descriptor_accessor" + MessageOptions_Deprecated_field_name protoreflect.Name = "deprecated" + MessageOptions_MapEntry_field_name protoreflect.Name = "map_entry" + MessageOptions_DeprecatedLegacyJsonFieldConflicts_field_name protoreflect.Name = "deprecated_legacy_json_field_conflicts" + MessageOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + MessageOptions_MessageSetWireFormat_field_fullname protoreflect.FullName = "google.protobuf.MessageOptions.message_set_wire_format" + MessageOptions_NoStandardDescriptorAccessor_field_fullname protoreflect.FullName = "google.protobuf.MessageOptions.no_standard_descriptor_accessor" + MessageOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.MessageOptions.deprecated" + MessageOptions_MapEntry_field_fullname protoreflect.FullName = "google.protobuf.MessageOptions.map_entry" + MessageOptions_DeprecatedLegacyJsonFieldConflicts_field_fullname protoreflect.FullName = "google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts" + MessageOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.MessageOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.MessageOptions. +const ( + MessageOptions_MessageSetWireFormat_field_number protoreflect.FieldNumber = 1 + MessageOptions_NoStandardDescriptorAccessor_field_number protoreflect.FieldNumber = 2 + MessageOptions_Deprecated_field_number protoreflect.FieldNumber = 3 + MessageOptions_MapEntry_field_number protoreflect.FieldNumber = 7 + MessageOptions_DeprecatedLegacyJsonFieldConflicts_field_number protoreflect.FieldNumber = 11 + MessageOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Names for google.protobuf.FieldOptions. +const ( + FieldOptions_message_name protoreflect.Name = "FieldOptions" + FieldOptions_message_fullname protoreflect.FullName = "google.protobuf.FieldOptions" +) + +// Field names for google.protobuf.FieldOptions. +const ( + FieldOptions_Ctype_field_name protoreflect.Name = "ctype" + FieldOptions_Packed_field_name protoreflect.Name = "packed" + FieldOptions_Jstype_field_name protoreflect.Name = "jstype" + FieldOptions_Lazy_field_name protoreflect.Name = "lazy" + FieldOptions_UnverifiedLazy_field_name protoreflect.Name = "unverified_lazy" + FieldOptions_Deprecated_field_name protoreflect.Name = "deprecated" + FieldOptions_Weak_field_name protoreflect.Name = "weak" + FieldOptions_DebugRedact_field_name protoreflect.Name = "debug_redact" + FieldOptions_Retention_field_name protoreflect.Name = "retention" + FieldOptions_Target_field_name protoreflect.Name = "target" + FieldOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + FieldOptions_Ctype_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.ctype" + FieldOptions_Packed_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.packed" + FieldOptions_Jstype_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.jstype" + FieldOptions_Lazy_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.lazy" + FieldOptions_UnverifiedLazy_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.unverified_lazy" + FieldOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.deprecated" + FieldOptions_Weak_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.weak" + FieldOptions_DebugRedact_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.debug_redact" + FieldOptions_Retention_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.retention" + FieldOptions_Target_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.target" + FieldOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.FieldOptions. +const ( + FieldOptions_Ctype_field_number protoreflect.FieldNumber = 1 + FieldOptions_Packed_field_number protoreflect.FieldNumber = 2 + FieldOptions_Jstype_field_number protoreflect.FieldNumber = 6 + FieldOptions_Lazy_field_number protoreflect.FieldNumber = 5 + FieldOptions_UnverifiedLazy_field_number protoreflect.FieldNumber = 15 + FieldOptions_Deprecated_field_number protoreflect.FieldNumber = 3 + FieldOptions_Weak_field_number protoreflect.FieldNumber = 10 + FieldOptions_DebugRedact_field_number protoreflect.FieldNumber = 16 + FieldOptions_Retention_field_number protoreflect.FieldNumber = 17 + FieldOptions_Target_field_number protoreflect.FieldNumber = 18 + FieldOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Full and short names for google.protobuf.FieldOptions.CType. +const ( + FieldOptions_CType_enum_fullname = "google.protobuf.FieldOptions.CType" + FieldOptions_CType_enum_name = "CType" +) + +// Full and short names for google.protobuf.FieldOptions.JSType. +const ( + FieldOptions_JSType_enum_fullname = "google.protobuf.FieldOptions.JSType" + FieldOptions_JSType_enum_name = "JSType" +) + +// Full and short names for google.protobuf.FieldOptions.OptionRetention. +const ( + FieldOptions_OptionRetention_enum_fullname = "google.protobuf.FieldOptions.OptionRetention" + FieldOptions_OptionRetention_enum_name = "OptionRetention" +) + +// Full and short names for google.protobuf.FieldOptions.OptionTargetType. +const ( + FieldOptions_OptionTargetType_enum_fullname = "google.protobuf.FieldOptions.OptionTargetType" + FieldOptions_OptionTargetType_enum_name = "OptionTargetType" +) + +// Names for google.protobuf.OneofOptions. +const ( + OneofOptions_message_name protoreflect.Name = "OneofOptions" + OneofOptions_message_fullname protoreflect.FullName = "google.protobuf.OneofOptions" +) + +// Field names for google.protobuf.OneofOptions. +const ( + OneofOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + OneofOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.OneofOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.OneofOptions. +const ( + OneofOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Names for google.protobuf.EnumOptions. +const ( + EnumOptions_message_name protoreflect.Name = "EnumOptions" + EnumOptions_message_fullname protoreflect.FullName = "google.protobuf.EnumOptions" +) + +// Field names for google.protobuf.EnumOptions. +const ( + EnumOptions_AllowAlias_field_name protoreflect.Name = "allow_alias" + EnumOptions_Deprecated_field_name protoreflect.Name = "deprecated" + EnumOptions_DeprecatedLegacyJsonFieldConflicts_field_name protoreflect.Name = "deprecated_legacy_json_field_conflicts" + EnumOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + EnumOptions_AllowAlias_field_fullname protoreflect.FullName = "google.protobuf.EnumOptions.allow_alias" + EnumOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.EnumOptions.deprecated" + EnumOptions_DeprecatedLegacyJsonFieldConflicts_field_fullname protoreflect.FullName = "google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts" + EnumOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.EnumOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.EnumOptions. +const ( + EnumOptions_AllowAlias_field_number protoreflect.FieldNumber = 2 + EnumOptions_Deprecated_field_number protoreflect.FieldNumber = 3 + EnumOptions_DeprecatedLegacyJsonFieldConflicts_field_number protoreflect.FieldNumber = 6 + EnumOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Names for google.protobuf.EnumValueOptions. +const ( + EnumValueOptions_message_name protoreflect.Name = "EnumValueOptions" + EnumValueOptions_message_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions" +) + +// Field names for google.protobuf.EnumValueOptions. +const ( + EnumValueOptions_Deprecated_field_name protoreflect.Name = "deprecated" + EnumValueOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + EnumValueOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.deprecated" + EnumValueOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.EnumValueOptions. +const ( + EnumValueOptions_Deprecated_field_number protoreflect.FieldNumber = 1 + EnumValueOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Names for google.protobuf.ServiceOptions. +const ( + ServiceOptions_message_name protoreflect.Name = "ServiceOptions" + ServiceOptions_message_fullname protoreflect.FullName = "google.protobuf.ServiceOptions" +) + +// Field names for google.protobuf.ServiceOptions. +const ( + ServiceOptions_Deprecated_field_name protoreflect.Name = "deprecated" + ServiceOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + ServiceOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.ServiceOptions.deprecated" + ServiceOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.ServiceOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.ServiceOptions. +const ( + ServiceOptions_Deprecated_field_number protoreflect.FieldNumber = 33 + ServiceOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Names for google.protobuf.MethodOptions. +const ( + MethodOptions_message_name protoreflect.Name = "MethodOptions" + MethodOptions_message_fullname protoreflect.FullName = "google.protobuf.MethodOptions" +) + +// Field names for google.protobuf.MethodOptions. +const ( + MethodOptions_Deprecated_field_name protoreflect.Name = "deprecated" + MethodOptions_IdempotencyLevel_field_name protoreflect.Name = "idempotency_level" + MethodOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" + + MethodOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.MethodOptions.deprecated" + MethodOptions_IdempotencyLevel_field_fullname protoreflect.FullName = "google.protobuf.MethodOptions.idempotency_level" + MethodOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.MethodOptions.uninterpreted_option" +) + +// Field numbers for google.protobuf.MethodOptions. +const ( + MethodOptions_Deprecated_field_number protoreflect.FieldNumber = 33 + MethodOptions_IdempotencyLevel_field_number protoreflect.FieldNumber = 34 + MethodOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 +) + +// Full and short names for google.protobuf.MethodOptions.IdempotencyLevel. +const ( + MethodOptions_IdempotencyLevel_enum_fullname = "google.protobuf.MethodOptions.IdempotencyLevel" + MethodOptions_IdempotencyLevel_enum_name = "IdempotencyLevel" +) + +// Names for google.protobuf.UninterpretedOption. +const ( + UninterpretedOption_message_name protoreflect.Name = "UninterpretedOption" + UninterpretedOption_message_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption" +) + +// Field names for google.protobuf.UninterpretedOption. +const ( + UninterpretedOption_Name_field_name protoreflect.Name = "name" + UninterpretedOption_IdentifierValue_field_name protoreflect.Name = "identifier_value" + UninterpretedOption_PositiveIntValue_field_name protoreflect.Name = "positive_int_value" + UninterpretedOption_NegativeIntValue_field_name protoreflect.Name = "negative_int_value" + UninterpretedOption_DoubleValue_field_name protoreflect.Name = "double_value" + UninterpretedOption_StringValue_field_name protoreflect.Name = "string_value" + UninterpretedOption_AggregateValue_field_name protoreflect.Name = "aggregate_value" + + UninterpretedOption_Name_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.name" + UninterpretedOption_IdentifierValue_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.identifier_value" + UninterpretedOption_PositiveIntValue_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.positive_int_value" + UninterpretedOption_NegativeIntValue_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.negative_int_value" + UninterpretedOption_DoubleValue_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.double_value" + UninterpretedOption_StringValue_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.string_value" + UninterpretedOption_AggregateValue_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.aggregate_value" +) + +// Field numbers for google.protobuf.UninterpretedOption. +const ( + UninterpretedOption_Name_field_number protoreflect.FieldNumber = 2 + UninterpretedOption_IdentifierValue_field_number protoreflect.FieldNumber = 3 + UninterpretedOption_PositiveIntValue_field_number protoreflect.FieldNumber = 4 + UninterpretedOption_NegativeIntValue_field_number protoreflect.FieldNumber = 5 + UninterpretedOption_DoubleValue_field_number protoreflect.FieldNumber = 6 + UninterpretedOption_StringValue_field_number protoreflect.FieldNumber = 7 + UninterpretedOption_AggregateValue_field_number protoreflect.FieldNumber = 8 +) + +// Names for google.protobuf.UninterpretedOption.NamePart. +const ( + UninterpretedOption_NamePart_message_name protoreflect.Name = "NamePart" + UninterpretedOption_NamePart_message_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.NamePart" +) + +// Field names for google.protobuf.UninterpretedOption.NamePart. +const ( + UninterpretedOption_NamePart_NamePart_field_name protoreflect.Name = "name_part" + UninterpretedOption_NamePart_IsExtension_field_name protoreflect.Name = "is_extension" + + UninterpretedOption_NamePart_NamePart_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.NamePart.name_part" + UninterpretedOption_NamePart_IsExtension_field_fullname protoreflect.FullName = "google.protobuf.UninterpretedOption.NamePart.is_extension" +) + +// Field numbers for google.protobuf.UninterpretedOption.NamePart. +const ( + UninterpretedOption_NamePart_NamePart_field_number protoreflect.FieldNumber = 1 + UninterpretedOption_NamePart_IsExtension_field_number protoreflect.FieldNumber = 2 +) + +// Names for google.protobuf.SourceCodeInfo. +const ( + SourceCodeInfo_message_name protoreflect.Name = "SourceCodeInfo" + SourceCodeInfo_message_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo" +) + +// Field names for google.protobuf.SourceCodeInfo. +const ( + SourceCodeInfo_Location_field_name protoreflect.Name = "location" + + SourceCodeInfo_Location_field_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.location" +) + +// Field numbers for google.protobuf.SourceCodeInfo. +const ( + SourceCodeInfo_Location_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.SourceCodeInfo.Location. +const ( + SourceCodeInfo_Location_message_name protoreflect.Name = "Location" + SourceCodeInfo_Location_message_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.Location" +) + +// Field names for google.protobuf.SourceCodeInfo.Location. +const ( + SourceCodeInfo_Location_Path_field_name protoreflect.Name = "path" + SourceCodeInfo_Location_Span_field_name protoreflect.Name = "span" + SourceCodeInfo_Location_LeadingComments_field_name protoreflect.Name = "leading_comments" + SourceCodeInfo_Location_TrailingComments_field_name protoreflect.Name = "trailing_comments" + SourceCodeInfo_Location_LeadingDetachedComments_field_name protoreflect.Name = "leading_detached_comments" + + SourceCodeInfo_Location_Path_field_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.Location.path" + SourceCodeInfo_Location_Span_field_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.Location.span" + SourceCodeInfo_Location_LeadingComments_field_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.Location.leading_comments" + SourceCodeInfo_Location_TrailingComments_field_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.Location.trailing_comments" + SourceCodeInfo_Location_LeadingDetachedComments_field_fullname protoreflect.FullName = "google.protobuf.SourceCodeInfo.Location.leading_detached_comments" +) + +// Field numbers for google.protobuf.SourceCodeInfo.Location. +const ( + SourceCodeInfo_Location_Path_field_number protoreflect.FieldNumber = 1 + SourceCodeInfo_Location_Span_field_number protoreflect.FieldNumber = 2 + SourceCodeInfo_Location_LeadingComments_field_number protoreflect.FieldNumber = 3 + SourceCodeInfo_Location_TrailingComments_field_number protoreflect.FieldNumber = 4 + SourceCodeInfo_Location_LeadingDetachedComments_field_number protoreflect.FieldNumber = 6 +) + +// Names for google.protobuf.GeneratedCodeInfo. +const ( + GeneratedCodeInfo_message_name protoreflect.Name = "GeneratedCodeInfo" + GeneratedCodeInfo_message_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo" +) + +// Field names for google.protobuf.GeneratedCodeInfo. +const ( + GeneratedCodeInfo_Annotation_field_name protoreflect.Name = "annotation" + + GeneratedCodeInfo_Annotation_field_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.annotation" +) + +// Field numbers for google.protobuf.GeneratedCodeInfo. +const ( + GeneratedCodeInfo_Annotation_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.GeneratedCodeInfo.Annotation. +const ( + GeneratedCodeInfo_Annotation_message_name protoreflect.Name = "Annotation" + GeneratedCodeInfo_Annotation_message_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.Annotation" +) + +// Field names for google.protobuf.GeneratedCodeInfo.Annotation. +const ( + GeneratedCodeInfo_Annotation_Path_field_name protoreflect.Name = "path" + GeneratedCodeInfo_Annotation_SourceFile_field_name protoreflect.Name = "source_file" + GeneratedCodeInfo_Annotation_Begin_field_name protoreflect.Name = "begin" + GeneratedCodeInfo_Annotation_End_field_name protoreflect.Name = "end" + GeneratedCodeInfo_Annotation_Semantic_field_name protoreflect.Name = "semantic" + + GeneratedCodeInfo_Annotation_Path_field_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.Annotation.path" + GeneratedCodeInfo_Annotation_SourceFile_field_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.Annotation.source_file" + GeneratedCodeInfo_Annotation_Begin_field_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.Annotation.begin" + GeneratedCodeInfo_Annotation_End_field_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.Annotation.end" + GeneratedCodeInfo_Annotation_Semantic_field_fullname protoreflect.FullName = "google.protobuf.GeneratedCodeInfo.Annotation.semantic" +) + +// Field numbers for google.protobuf.GeneratedCodeInfo.Annotation. +const ( + GeneratedCodeInfo_Annotation_Path_field_number protoreflect.FieldNumber = 1 + GeneratedCodeInfo_Annotation_SourceFile_field_number protoreflect.FieldNumber = 2 + GeneratedCodeInfo_Annotation_Begin_field_number protoreflect.FieldNumber = 3 + GeneratedCodeInfo_Annotation_End_field_number protoreflect.FieldNumber = 4 + GeneratedCodeInfo_Annotation_Semantic_field_number protoreflect.FieldNumber = 5 +) + +// Full and short names for google.protobuf.GeneratedCodeInfo.Annotation.Semantic. +const ( + GeneratedCodeInfo_Annotation_Semantic_enum_fullname = "google.protobuf.GeneratedCodeInfo.Annotation.Semantic" + GeneratedCodeInfo_Annotation_Semantic_enum_name = "Semantic" +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/doc.go b/vendor/google.golang.org/protobuf/internal/genid/doc.go new file mode 100644 index 0000000..45ccd01 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/doc.go @@ -0,0 +1,11 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package genid contains constants for declarations in descriptor.proto +// and the well-known types. +package genid + +import protoreflect "google.golang.org/protobuf/reflect/protoreflect" + +const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" diff --git a/vendor/google.golang.org/protobuf/internal/genid/duration_gen.go b/vendor/google.golang.org/protobuf/internal/genid/duration_gen.go new file mode 100644 index 0000000..b070ef4 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/duration_gen.go @@ -0,0 +1,34 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_duration_proto = "google/protobuf/duration.proto" + +// Names for google.protobuf.Duration. +const ( + Duration_message_name protoreflect.Name = "Duration" + Duration_message_fullname protoreflect.FullName = "google.protobuf.Duration" +) + +// Field names for google.protobuf.Duration. +const ( + Duration_Seconds_field_name protoreflect.Name = "seconds" + Duration_Nanos_field_name protoreflect.Name = "nanos" + + Duration_Seconds_field_fullname protoreflect.FullName = "google.protobuf.Duration.seconds" + Duration_Nanos_field_fullname protoreflect.FullName = "google.protobuf.Duration.nanos" +) + +// Field numbers for google.protobuf.Duration. +const ( + Duration_Seconds_field_number protoreflect.FieldNumber = 1 + Duration_Nanos_field_number protoreflect.FieldNumber = 2 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/empty_gen.go b/vendor/google.golang.org/protobuf/internal/genid/empty_gen.go new file mode 100644 index 0000000..762abb3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/empty_gen.go @@ -0,0 +1,19 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" + +// Names for google.protobuf.Empty. +const ( + Empty_message_name protoreflect.Name = "Empty" + Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/field_mask_gen.go b/vendor/google.golang.org/protobuf/internal/genid/field_mask_gen.go new file mode 100644 index 0000000..70bed45 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/field_mask_gen.go @@ -0,0 +1,31 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_field_mask_proto = "google/protobuf/field_mask.proto" + +// Names for google.protobuf.FieldMask. +const ( + FieldMask_message_name protoreflect.Name = "FieldMask" + FieldMask_message_fullname protoreflect.FullName = "google.protobuf.FieldMask" +) + +// Field names for google.protobuf.FieldMask. +const ( + FieldMask_Paths_field_name protoreflect.Name = "paths" + + FieldMask_Paths_field_fullname protoreflect.FullName = "google.protobuf.FieldMask.paths" +) + +// Field numbers for google.protobuf.FieldMask. +const ( + FieldMask_Paths_field_number protoreflect.FieldNumber = 1 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/goname.go b/vendor/google.golang.org/protobuf/internal/genid/goname.go new file mode 100644 index 0000000..693d2e9 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/goname.go @@ -0,0 +1,25 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package genid + +// Go names of implementation-specific struct fields in generated messages. +const ( + State_goname = "state" + + SizeCache_goname = "sizeCache" + SizeCacheA_goname = "XXX_sizecache" + + WeakFields_goname = "weakFields" + WeakFieldsA_goname = "XXX_weak" + + UnknownFields_goname = "unknownFields" + UnknownFieldsA_goname = "XXX_unrecognized" + + ExtensionFields_goname = "extensionFields" + ExtensionFieldsA_goname = "XXX_InternalExtensions" + ExtensionFieldsB_goname = "XXX_extensions" + + WeakFieldPrefix_goname = "XXX_weak_" +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/map_entry.go b/vendor/google.golang.org/protobuf/internal/genid/map_entry.go new file mode 100644 index 0000000..8f9ea02 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/map_entry.go @@ -0,0 +1,16 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package genid + +import protoreflect "google.golang.org/protobuf/reflect/protoreflect" + +// Generic field names and numbers for synthetic map entry messages. +const ( + MapEntry_Key_field_name protoreflect.Name = "key" + MapEntry_Value_field_name protoreflect.Name = "value" + + MapEntry_Key_field_number protoreflect.FieldNumber = 1 + MapEntry_Value_field_number protoreflect.FieldNumber = 2 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/source_context_gen.go b/vendor/google.golang.org/protobuf/internal/genid/source_context_gen.go new file mode 100644 index 0000000..3e99ae1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/source_context_gen.go @@ -0,0 +1,31 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_source_context_proto = "google/protobuf/source_context.proto" + +// Names for google.protobuf.SourceContext. +const ( + SourceContext_message_name protoreflect.Name = "SourceContext" + SourceContext_message_fullname protoreflect.FullName = "google.protobuf.SourceContext" +) + +// Field names for google.protobuf.SourceContext. +const ( + SourceContext_FileName_field_name protoreflect.Name = "file_name" + + SourceContext_FileName_field_fullname protoreflect.FullName = "google.protobuf.SourceContext.file_name" +) + +// Field numbers for google.protobuf.SourceContext. +const ( + SourceContext_FileName_field_number protoreflect.FieldNumber = 1 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/struct_gen.go b/vendor/google.golang.org/protobuf/internal/genid/struct_gen.go new file mode 100644 index 0000000..1a38944 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/struct_gen.go @@ -0,0 +1,116 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_struct_proto = "google/protobuf/struct.proto" + +// Full and short names for google.protobuf.NullValue. +const ( + NullValue_enum_fullname = "google.protobuf.NullValue" + NullValue_enum_name = "NullValue" +) + +// Names for google.protobuf.Struct. +const ( + Struct_message_name protoreflect.Name = "Struct" + Struct_message_fullname protoreflect.FullName = "google.protobuf.Struct" +) + +// Field names for google.protobuf.Struct. +const ( + Struct_Fields_field_name protoreflect.Name = "fields" + + Struct_Fields_field_fullname protoreflect.FullName = "google.protobuf.Struct.fields" +) + +// Field numbers for google.protobuf.Struct. +const ( + Struct_Fields_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.Struct.FieldsEntry. +const ( + Struct_FieldsEntry_message_name protoreflect.Name = "FieldsEntry" + Struct_FieldsEntry_message_fullname protoreflect.FullName = "google.protobuf.Struct.FieldsEntry" +) + +// Field names for google.protobuf.Struct.FieldsEntry. +const ( + Struct_FieldsEntry_Key_field_name protoreflect.Name = "key" + Struct_FieldsEntry_Value_field_name protoreflect.Name = "value" + + Struct_FieldsEntry_Key_field_fullname protoreflect.FullName = "google.protobuf.Struct.FieldsEntry.key" + Struct_FieldsEntry_Value_field_fullname protoreflect.FullName = "google.protobuf.Struct.FieldsEntry.value" +) + +// Field numbers for google.protobuf.Struct.FieldsEntry. +const ( + Struct_FieldsEntry_Key_field_number protoreflect.FieldNumber = 1 + Struct_FieldsEntry_Value_field_number protoreflect.FieldNumber = 2 +) + +// Names for google.protobuf.Value. +const ( + Value_message_name protoreflect.Name = "Value" + Value_message_fullname protoreflect.FullName = "google.protobuf.Value" +) + +// Field names for google.protobuf.Value. +const ( + Value_NullValue_field_name protoreflect.Name = "null_value" + Value_NumberValue_field_name protoreflect.Name = "number_value" + Value_StringValue_field_name protoreflect.Name = "string_value" + Value_BoolValue_field_name protoreflect.Name = "bool_value" + Value_StructValue_field_name protoreflect.Name = "struct_value" + Value_ListValue_field_name protoreflect.Name = "list_value" + + Value_NullValue_field_fullname protoreflect.FullName = "google.protobuf.Value.null_value" + Value_NumberValue_field_fullname protoreflect.FullName = "google.protobuf.Value.number_value" + Value_StringValue_field_fullname protoreflect.FullName = "google.protobuf.Value.string_value" + Value_BoolValue_field_fullname protoreflect.FullName = "google.protobuf.Value.bool_value" + Value_StructValue_field_fullname protoreflect.FullName = "google.protobuf.Value.struct_value" + Value_ListValue_field_fullname protoreflect.FullName = "google.protobuf.Value.list_value" +) + +// Field numbers for google.protobuf.Value. +const ( + Value_NullValue_field_number protoreflect.FieldNumber = 1 + Value_NumberValue_field_number protoreflect.FieldNumber = 2 + Value_StringValue_field_number protoreflect.FieldNumber = 3 + Value_BoolValue_field_number protoreflect.FieldNumber = 4 + Value_StructValue_field_number protoreflect.FieldNumber = 5 + Value_ListValue_field_number protoreflect.FieldNumber = 6 +) + +// Oneof names for google.protobuf.Value. +const ( + Value_Kind_oneof_name protoreflect.Name = "kind" + + Value_Kind_oneof_fullname protoreflect.FullName = "google.protobuf.Value.kind" +) + +// Names for google.protobuf.ListValue. +const ( + ListValue_message_name protoreflect.Name = "ListValue" + ListValue_message_fullname protoreflect.FullName = "google.protobuf.ListValue" +) + +// Field names for google.protobuf.ListValue. +const ( + ListValue_Values_field_name protoreflect.Name = "values" + + ListValue_Values_field_fullname protoreflect.FullName = "google.protobuf.ListValue.values" +) + +// Field numbers for google.protobuf.ListValue. +const ( + ListValue_Values_field_number protoreflect.FieldNumber = 1 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/timestamp_gen.go b/vendor/google.golang.org/protobuf/internal/genid/timestamp_gen.go new file mode 100644 index 0000000..f5cd563 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/timestamp_gen.go @@ -0,0 +1,34 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_timestamp_proto = "google/protobuf/timestamp.proto" + +// Names for google.protobuf.Timestamp. +const ( + Timestamp_message_name protoreflect.Name = "Timestamp" + Timestamp_message_fullname protoreflect.FullName = "google.protobuf.Timestamp" +) + +// Field names for google.protobuf.Timestamp. +const ( + Timestamp_Seconds_field_name protoreflect.Name = "seconds" + Timestamp_Nanos_field_name protoreflect.Name = "nanos" + + Timestamp_Seconds_field_fullname protoreflect.FullName = "google.protobuf.Timestamp.seconds" + Timestamp_Nanos_field_fullname protoreflect.FullName = "google.protobuf.Timestamp.nanos" +) + +// Field numbers for google.protobuf.Timestamp. +const ( + Timestamp_Seconds_field_number protoreflect.FieldNumber = 1 + Timestamp_Nanos_field_number protoreflect.FieldNumber = 2 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/type_gen.go b/vendor/google.golang.org/protobuf/internal/genid/type_gen.go new file mode 100644 index 0000000..3bc7101 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/type_gen.go @@ -0,0 +1,184 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_type_proto = "google/protobuf/type.proto" + +// Full and short names for google.protobuf.Syntax. +const ( + Syntax_enum_fullname = "google.protobuf.Syntax" + Syntax_enum_name = "Syntax" +) + +// Names for google.protobuf.Type. +const ( + Type_message_name protoreflect.Name = "Type" + Type_message_fullname protoreflect.FullName = "google.protobuf.Type" +) + +// Field names for google.protobuf.Type. +const ( + Type_Name_field_name protoreflect.Name = "name" + Type_Fields_field_name protoreflect.Name = "fields" + Type_Oneofs_field_name protoreflect.Name = "oneofs" + Type_Options_field_name protoreflect.Name = "options" + Type_SourceContext_field_name protoreflect.Name = "source_context" + Type_Syntax_field_name protoreflect.Name = "syntax" + + Type_Name_field_fullname protoreflect.FullName = "google.protobuf.Type.name" + Type_Fields_field_fullname protoreflect.FullName = "google.protobuf.Type.fields" + Type_Oneofs_field_fullname protoreflect.FullName = "google.protobuf.Type.oneofs" + Type_Options_field_fullname protoreflect.FullName = "google.protobuf.Type.options" + Type_SourceContext_field_fullname protoreflect.FullName = "google.protobuf.Type.source_context" + Type_Syntax_field_fullname protoreflect.FullName = "google.protobuf.Type.syntax" +) + +// Field numbers for google.protobuf.Type. +const ( + Type_Name_field_number protoreflect.FieldNumber = 1 + Type_Fields_field_number protoreflect.FieldNumber = 2 + Type_Oneofs_field_number protoreflect.FieldNumber = 3 + Type_Options_field_number protoreflect.FieldNumber = 4 + Type_SourceContext_field_number protoreflect.FieldNumber = 5 + Type_Syntax_field_number protoreflect.FieldNumber = 6 +) + +// Names for google.protobuf.Field. +const ( + Field_message_name protoreflect.Name = "Field" + Field_message_fullname protoreflect.FullName = "google.protobuf.Field" +) + +// Field names for google.protobuf.Field. +const ( + Field_Kind_field_name protoreflect.Name = "kind" + Field_Cardinality_field_name protoreflect.Name = "cardinality" + Field_Number_field_name protoreflect.Name = "number" + Field_Name_field_name protoreflect.Name = "name" + Field_TypeUrl_field_name protoreflect.Name = "type_url" + Field_OneofIndex_field_name protoreflect.Name = "oneof_index" + Field_Packed_field_name protoreflect.Name = "packed" + Field_Options_field_name protoreflect.Name = "options" + Field_JsonName_field_name protoreflect.Name = "json_name" + Field_DefaultValue_field_name protoreflect.Name = "default_value" + + Field_Kind_field_fullname protoreflect.FullName = "google.protobuf.Field.kind" + Field_Cardinality_field_fullname protoreflect.FullName = "google.protobuf.Field.cardinality" + Field_Number_field_fullname protoreflect.FullName = "google.protobuf.Field.number" + Field_Name_field_fullname protoreflect.FullName = "google.protobuf.Field.name" + Field_TypeUrl_field_fullname protoreflect.FullName = "google.protobuf.Field.type_url" + Field_OneofIndex_field_fullname protoreflect.FullName = "google.protobuf.Field.oneof_index" + Field_Packed_field_fullname protoreflect.FullName = "google.protobuf.Field.packed" + Field_Options_field_fullname protoreflect.FullName = "google.protobuf.Field.options" + Field_JsonName_field_fullname protoreflect.FullName = "google.protobuf.Field.json_name" + Field_DefaultValue_field_fullname protoreflect.FullName = "google.protobuf.Field.default_value" +) + +// Field numbers for google.protobuf.Field. +const ( + Field_Kind_field_number protoreflect.FieldNumber = 1 + Field_Cardinality_field_number protoreflect.FieldNumber = 2 + Field_Number_field_number protoreflect.FieldNumber = 3 + Field_Name_field_number protoreflect.FieldNumber = 4 + Field_TypeUrl_field_number protoreflect.FieldNumber = 6 + Field_OneofIndex_field_number protoreflect.FieldNumber = 7 + Field_Packed_field_number protoreflect.FieldNumber = 8 + Field_Options_field_number protoreflect.FieldNumber = 9 + Field_JsonName_field_number protoreflect.FieldNumber = 10 + Field_DefaultValue_field_number protoreflect.FieldNumber = 11 +) + +// Full and short names for google.protobuf.Field.Kind. +const ( + Field_Kind_enum_fullname = "google.protobuf.Field.Kind" + Field_Kind_enum_name = "Kind" +) + +// Full and short names for google.protobuf.Field.Cardinality. +const ( + Field_Cardinality_enum_fullname = "google.protobuf.Field.Cardinality" + Field_Cardinality_enum_name = "Cardinality" +) + +// Names for google.protobuf.Enum. +const ( + Enum_message_name protoreflect.Name = "Enum" + Enum_message_fullname protoreflect.FullName = "google.protobuf.Enum" +) + +// Field names for google.protobuf.Enum. +const ( + Enum_Name_field_name protoreflect.Name = "name" + Enum_Enumvalue_field_name protoreflect.Name = "enumvalue" + Enum_Options_field_name protoreflect.Name = "options" + Enum_SourceContext_field_name protoreflect.Name = "source_context" + Enum_Syntax_field_name protoreflect.Name = "syntax" + + Enum_Name_field_fullname protoreflect.FullName = "google.protobuf.Enum.name" + Enum_Enumvalue_field_fullname protoreflect.FullName = "google.protobuf.Enum.enumvalue" + Enum_Options_field_fullname protoreflect.FullName = "google.protobuf.Enum.options" + Enum_SourceContext_field_fullname protoreflect.FullName = "google.protobuf.Enum.source_context" + Enum_Syntax_field_fullname protoreflect.FullName = "google.protobuf.Enum.syntax" +) + +// Field numbers for google.protobuf.Enum. +const ( + Enum_Name_field_number protoreflect.FieldNumber = 1 + Enum_Enumvalue_field_number protoreflect.FieldNumber = 2 + Enum_Options_field_number protoreflect.FieldNumber = 3 + Enum_SourceContext_field_number protoreflect.FieldNumber = 4 + Enum_Syntax_field_number protoreflect.FieldNumber = 5 +) + +// Names for google.protobuf.EnumValue. +const ( + EnumValue_message_name protoreflect.Name = "EnumValue" + EnumValue_message_fullname protoreflect.FullName = "google.protobuf.EnumValue" +) + +// Field names for google.protobuf.EnumValue. +const ( + EnumValue_Name_field_name protoreflect.Name = "name" + EnumValue_Number_field_name protoreflect.Name = "number" + EnumValue_Options_field_name protoreflect.Name = "options" + + EnumValue_Name_field_fullname protoreflect.FullName = "google.protobuf.EnumValue.name" + EnumValue_Number_field_fullname protoreflect.FullName = "google.protobuf.EnumValue.number" + EnumValue_Options_field_fullname protoreflect.FullName = "google.protobuf.EnumValue.options" +) + +// Field numbers for google.protobuf.EnumValue. +const ( + EnumValue_Name_field_number protoreflect.FieldNumber = 1 + EnumValue_Number_field_number protoreflect.FieldNumber = 2 + EnumValue_Options_field_number protoreflect.FieldNumber = 3 +) + +// Names for google.protobuf.Option. +const ( + Option_message_name protoreflect.Name = "Option" + Option_message_fullname protoreflect.FullName = "google.protobuf.Option" +) + +// Field names for google.protobuf.Option. +const ( + Option_Name_field_name protoreflect.Name = "name" + Option_Value_field_name protoreflect.Name = "value" + + Option_Name_field_fullname protoreflect.FullName = "google.protobuf.Option.name" + Option_Value_field_fullname protoreflect.FullName = "google.protobuf.Option.value" +) + +// Field numbers for google.protobuf.Option. +const ( + Option_Name_field_number protoreflect.FieldNumber = 1 + Option_Value_field_number protoreflect.FieldNumber = 2 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/wrappers.go b/vendor/google.golang.org/protobuf/internal/genid/wrappers.go new file mode 100644 index 0000000..429384b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/wrappers.go @@ -0,0 +1,13 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package genid + +import protoreflect "google.golang.org/protobuf/reflect/protoreflect" + +// Generic field name and number for messages in wrappers.proto. +const ( + WrapperValue_Value_field_name protoreflect.Name = "value" + WrapperValue_Value_field_number protoreflect.FieldNumber = 1 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/wrappers_gen.go b/vendor/google.golang.org/protobuf/internal/genid/wrappers_gen.go new file mode 100644 index 0000000..72527d2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/genid/wrappers_gen.go @@ -0,0 +1,175 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package genid + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" +) + +const File_google_protobuf_wrappers_proto = "google/protobuf/wrappers.proto" + +// Names for google.protobuf.DoubleValue. +const ( + DoubleValue_message_name protoreflect.Name = "DoubleValue" + DoubleValue_message_fullname protoreflect.FullName = "google.protobuf.DoubleValue" +) + +// Field names for google.protobuf.DoubleValue. +const ( + DoubleValue_Value_field_name protoreflect.Name = "value" + + DoubleValue_Value_field_fullname protoreflect.FullName = "google.protobuf.DoubleValue.value" +) + +// Field numbers for google.protobuf.DoubleValue. +const ( + DoubleValue_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.FloatValue. +const ( + FloatValue_message_name protoreflect.Name = "FloatValue" + FloatValue_message_fullname protoreflect.FullName = "google.protobuf.FloatValue" +) + +// Field names for google.protobuf.FloatValue. +const ( + FloatValue_Value_field_name protoreflect.Name = "value" + + FloatValue_Value_field_fullname protoreflect.FullName = "google.protobuf.FloatValue.value" +) + +// Field numbers for google.protobuf.FloatValue. +const ( + FloatValue_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.Int64Value. +const ( + Int64Value_message_name protoreflect.Name = "Int64Value" + Int64Value_message_fullname protoreflect.FullName = "google.protobuf.Int64Value" +) + +// Field names for google.protobuf.Int64Value. +const ( + Int64Value_Value_field_name protoreflect.Name = "value" + + Int64Value_Value_field_fullname protoreflect.FullName = "google.protobuf.Int64Value.value" +) + +// Field numbers for google.protobuf.Int64Value. +const ( + Int64Value_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.UInt64Value. +const ( + UInt64Value_message_name protoreflect.Name = "UInt64Value" + UInt64Value_message_fullname protoreflect.FullName = "google.protobuf.UInt64Value" +) + +// Field names for google.protobuf.UInt64Value. +const ( + UInt64Value_Value_field_name protoreflect.Name = "value" + + UInt64Value_Value_field_fullname protoreflect.FullName = "google.protobuf.UInt64Value.value" +) + +// Field numbers for google.protobuf.UInt64Value. +const ( + UInt64Value_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.Int32Value. +const ( + Int32Value_message_name protoreflect.Name = "Int32Value" + Int32Value_message_fullname protoreflect.FullName = "google.protobuf.Int32Value" +) + +// Field names for google.protobuf.Int32Value. +const ( + Int32Value_Value_field_name protoreflect.Name = "value" + + Int32Value_Value_field_fullname protoreflect.FullName = "google.protobuf.Int32Value.value" +) + +// Field numbers for google.protobuf.Int32Value. +const ( + Int32Value_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.UInt32Value. +const ( + UInt32Value_message_name protoreflect.Name = "UInt32Value" + UInt32Value_message_fullname protoreflect.FullName = "google.protobuf.UInt32Value" +) + +// Field names for google.protobuf.UInt32Value. +const ( + UInt32Value_Value_field_name protoreflect.Name = "value" + + UInt32Value_Value_field_fullname protoreflect.FullName = "google.protobuf.UInt32Value.value" +) + +// Field numbers for google.protobuf.UInt32Value. +const ( + UInt32Value_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.BoolValue. +const ( + BoolValue_message_name protoreflect.Name = "BoolValue" + BoolValue_message_fullname protoreflect.FullName = "google.protobuf.BoolValue" +) + +// Field names for google.protobuf.BoolValue. +const ( + BoolValue_Value_field_name protoreflect.Name = "value" + + BoolValue_Value_field_fullname protoreflect.FullName = "google.protobuf.BoolValue.value" +) + +// Field numbers for google.protobuf.BoolValue. +const ( + BoolValue_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.StringValue. +const ( + StringValue_message_name protoreflect.Name = "StringValue" + StringValue_message_fullname protoreflect.FullName = "google.protobuf.StringValue" +) + +// Field names for google.protobuf.StringValue. +const ( + StringValue_Value_field_name protoreflect.Name = "value" + + StringValue_Value_field_fullname protoreflect.FullName = "google.protobuf.StringValue.value" +) + +// Field numbers for google.protobuf.StringValue. +const ( + StringValue_Value_field_number protoreflect.FieldNumber = 1 +) + +// Names for google.protobuf.BytesValue. +const ( + BytesValue_message_name protoreflect.Name = "BytesValue" + BytesValue_message_fullname protoreflect.FullName = "google.protobuf.BytesValue" +) + +// Field names for google.protobuf.BytesValue. +const ( + BytesValue_Value_field_name protoreflect.Name = "value" + + BytesValue_Value_field_fullname protoreflect.FullName = "google.protobuf.BytesValue.value" +) + +// Field numbers for google.protobuf.BytesValue. +const ( + BytesValue_Value_field_number protoreflect.FieldNumber = 1 +) diff --git a/vendor/google.golang.org/protobuf/internal/impl/api_export.go b/vendor/google.golang.org/protobuf/internal/impl/api_export.go new file mode 100644 index 0000000..a371f98 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/api_export.go @@ -0,0 +1,177 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strconv" + + "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Export is a zero-length named type that exists only to export a set of +// functions that we do not want to appear in godoc. +type Export struct{} + +// NewError formats a string according to the format specifier and arguments and +// returns an error that has a "proto" prefix. +func (Export) NewError(f string, x ...interface{}) error { + return errors.New(f, x...) +} + +// enum is any enum type generated by protoc-gen-go +// and must be a named int32 type. +type enum = interface{} + +// EnumOf returns the protoreflect.Enum interface over e. +// It returns nil if e is nil. +func (Export) EnumOf(e enum) protoreflect.Enum { + switch e := e.(type) { + case nil: + return nil + case protoreflect.Enum: + return e + default: + return legacyWrapEnum(reflect.ValueOf(e)) + } +} + +// EnumDescriptorOf returns the protoreflect.EnumDescriptor for e. +// It returns nil if e is nil. +func (Export) EnumDescriptorOf(e enum) protoreflect.EnumDescriptor { + switch e := e.(type) { + case nil: + return nil + case protoreflect.Enum: + return e.Descriptor() + default: + return LegacyLoadEnumDesc(reflect.TypeOf(e)) + } +} + +// EnumTypeOf returns the protoreflect.EnumType for e. +// It returns nil if e is nil. +func (Export) EnumTypeOf(e enum) protoreflect.EnumType { + switch e := e.(type) { + case nil: + return nil + case protoreflect.Enum: + return e.Type() + default: + return legacyLoadEnumType(reflect.TypeOf(e)) + } +} + +// EnumStringOf returns the enum value as a string, either as the name if +// the number is resolvable, or the number formatted as a string. +func (Export) EnumStringOf(ed protoreflect.EnumDescriptor, n protoreflect.EnumNumber) string { + ev := ed.Values().ByNumber(n) + if ev != nil { + return string(ev.Name()) + } + return strconv.Itoa(int(n)) +} + +// message is any message type generated by protoc-gen-go +// and must be a pointer to a named struct type. +type message = interface{} + +// legacyMessageWrapper wraps a v2 message as a v1 message. +type legacyMessageWrapper struct{ m protoreflect.ProtoMessage } + +func (m legacyMessageWrapper) Reset() { proto.Reset(m.m) } +func (m legacyMessageWrapper) String() string { return Export{}.MessageStringOf(m.m) } +func (m legacyMessageWrapper) ProtoMessage() {} + +// ProtoMessageV1Of converts either a v1 or v2 message to a v1 message. +// It returns nil if m is nil. +func (Export) ProtoMessageV1Of(m message) protoiface.MessageV1 { + switch mv := m.(type) { + case nil: + return nil + case protoiface.MessageV1: + return mv + case unwrapper: + return Export{}.ProtoMessageV1Of(mv.protoUnwrap()) + case protoreflect.ProtoMessage: + return legacyMessageWrapper{mv} + default: + panic(fmt.Sprintf("message %T is neither a v1 or v2 Message", m)) + } +} + +func (Export) protoMessageV2Of(m message) protoreflect.ProtoMessage { + switch mv := m.(type) { + case nil: + return nil + case protoreflect.ProtoMessage: + return mv + case legacyMessageWrapper: + return mv.m + case protoiface.MessageV1: + return nil + default: + panic(fmt.Sprintf("message %T is neither a v1 or v2 Message", m)) + } +} + +// ProtoMessageV2Of converts either a v1 or v2 message to a v2 message. +// It returns nil if m is nil. +func (Export) ProtoMessageV2Of(m message) protoreflect.ProtoMessage { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv + } + return legacyWrapMessage(reflect.ValueOf(m)).Interface() +} + +// MessageOf returns the protoreflect.Message interface over m. +// It returns nil if m is nil. +func (Export) MessageOf(m message) protoreflect.Message { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect() + } + return legacyWrapMessage(reflect.ValueOf(m)) +} + +// MessageDescriptorOf returns the protoreflect.MessageDescriptor for m. +// It returns nil if m is nil. +func (Export) MessageDescriptorOf(m message) protoreflect.MessageDescriptor { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect().Descriptor() + } + return LegacyLoadMessageDesc(reflect.TypeOf(m)) +} + +// MessageTypeOf returns the protoreflect.MessageType for m. +// It returns nil if m is nil. +func (Export) MessageTypeOf(m message) protoreflect.MessageType { + if m == nil { + return nil + } + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect().Type() + } + return legacyLoadMessageType(reflect.TypeOf(m), "") +} + +// MessageStringOf returns the message value as a string, +// which is the message serialized in the protobuf text format. +func (Export) MessageStringOf(m protoreflect.ProtoMessage) string { + return prototext.MarshalOptions{Multiline: false}.Format(m) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/checkinit.go b/vendor/google.golang.org/protobuf/internal/impl/checkinit.go new file mode 100644 index 0000000..bff041e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/checkinit.go @@ -0,0 +1,141 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "sync" + + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +func (mi *MessageInfo) checkInitialized(in protoiface.CheckInitializedInput) (protoiface.CheckInitializedOutput, error) { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + return protoiface.CheckInitializedOutput{}, mi.checkInitializedPointer(p) +} + +func (mi *MessageInfo) checkInitializedPointer(p pointer) error { + mi.init() + if !mi.needsInitCheck { + return nil + } + if p.IsNil() { + for _, f := range mi.orderedCoderFields { + if f.isRequired { + return errors.RequiredNotSet(string(mi.Desc.Fields().ByNumber(f.num).FullName())) + } + } + return nil + } + if mi.extensionOffset.IsValid() { + e := p.Apply(mi.extensionOffset).Extensions() + if err := mi.isInitExtensions(e); err != nil { + return err + } + } + for _, f := range mi.orderedCoderFields { + if !f.isRequired && f.funcs.isInit == nil { + continue + } + fptr := p.Apply(f.offset) + if f.isPointer && fptr.Elem().IsNil() { + if f.isRequired { + return errors.RequiredNotSet(string(mi.Desc.Fields().ByNumber(f.num).FullName())) + } + continue + } + if f.funcs.isInit == nil { + continue + } + if err := f.funcs.isInit(fptr, f); err != nil { + return err + } + } + return nil +} + +func (mi *MessageInfo) isInitExtensions(ext *map[int32]ExtensionField) error { + if ext == nil { + return nil + } + for _, x := range *ext { + ei := getExtensionFieldInfo(x.Type()) + if ei.funcs.isInit == nil { + continue + } + v := x.Value() + if !v.IsValid() { + continue + } + if err := ei.funcs.isInit(v); err != nil { + return err + } + } + return nil +} + +var ( + needsInitCheckMu sync.Mutex + needsInitCheckMap sync.Map +) + +// needsInitCheck reports whether a message needs to be checked for partial initialization. +// +// It returns true if the message transitively includes any required or extension fields. +func needsInitCheck(md protoreflect.MessageDescriptor) bool { + if v, ok := needsInitCheckMap.Load(md); ok { + if has, ok := v.(bool); ok { + return has + } + } + needsInitCheckMu.Lock() + defer needsInitCheckMu.Unlock() + return needsInitCheckLocked(md) +} + +func needsInitCheckLocked(md protoreflect.MessageDescriptor) (has bool) { + if v, ok := needsInitCheckMap.Load(md); ok { + // If has is true, we've previously determined that this message + // needs init checks. + // + // If has is false, we've previously determined that it can never + // be uninitialized. + // + // If has is not a bool, we've just encountered a cycle in the + // message graph. In this case, it is safe to return false: If + // the message does have required fields, we'll detect them later + // in the graph traversal. + has, ok := v.(bool) + return ok && has + } + needsInitCheckMap.Store(md, struct{}{}) // avoid cycles while descending into this message + defer func() { + needsInitCheckMap.Store(md, has) + }() + if md.RequiredNumbers().Len() > 0 { + return true + } + if md.ExtensionRanges().Len() > 0 { + return true + } + for i := 0; i < md.Fields().Len(); i++ { + fd := md.Fields().Get(i) + // Map keys are never messages, so just consider the map value. + if fd.IsMap() { + fd = fd.MapValue() + } + fmd := fd.Message() + if fmd != nil && needsInitCheckLocked(fmd) { + return true + } + } + return false +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go b/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go new file mode 100644 index 0000000..e74cefd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go @@ -0,0 +1,223 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "sync" + "sync/atomic" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type extensionFieldInfo struct { + wiretag uint64 + tagsize int + unmarshalNeedsValue bool + funcs valueCoderFuncs + validation validationInfo +} + +var legacyExtensionFieldInfoCache sync.Map // map[protoreflect.ExtensionType]*extensionFieldInfo + +func getExtensionFieldInfo(xt protoreflect.ExtensionType) *extensionFieldInfo { + if xi, ok := xt.(*ExtensionInfo); ok { + xi.lazyInit() + return xi.info + } + return legacyLoadExtensionFieldInfo(xt) +} + +// legacyLoadExtensionFieldInfo dynamically loads a *ExtensionInfo for xt. +func legacyLoadExtensionFieldInfo(xt protoreflect.ExtensionType) *extensionFieldInfo { + if xi, ok := legacyExtensionFieldInfoCache.Load(xt); ok { + return xi.(*extensionFieldInfo) + } + e := makeExtensionFieldInfo(xt.TypeDescriptor()) + if e, ok := legacyMessageTypeCache.LoadOrStore(xt, e); ok { + return e.(*extensionFieldInfo) + } + return e +} + +func makeExtensionFieldInfo(xd protoreflect.ExtensionDescriptor) *extensionFieldInfo { + var wiretag uint64 + if !xd.IsPacked() { + wiretag = protowire.EncodeTag(xd.Number(), wireTypes[xd.Kind()]) + } else { + wiretag = protowire.EncodeTag(xd.Number(), protowire.BytesType) + } + e := &extensionFieldInfo{ + wiretag: wiretag, + tagsize: protowire.SizeVarint(wiretag), + funcs: encoderFuncsForValue(xd), + } + // Does the unmarshal function need a value passed to it? + // This is true for composite types, where we pass in a message, list, or map to fill in, + // and for enums, where we pass in a prototype value to specify the concrete enum type. + switch xd.Kind() { + case protoreflect.MessageKind, protoreflect.GroupKind, protoreflect.EnumKind: + e.unmarshalNeedsValue = true + default: + if xd.Cardinality() == protoreflect.Repeated { + e.unmarshalNeedsValue = true + } + } + return e +} + +type lazyExtensionValue struct { + atomicOnce uint32 // atomically set if value is valid + mu sync.Mutex + xi *extensionFieldInfo + value protoreflect.Value + b []byte + fn func() protoreflect.Value +} + +type ExtensionField struct { + typ protoreflect.ExtensionType + + // value is either the value of GetValue, + // or a *lazyExtensionValue that then returns the value of GetValue. + value protoreflect.Value + lazy *lazyExtensionValue +} + +func (f *ExtensionField) appendLazyBytes(xt protoreflect.ExtensionType, xi *extensionFieldInfo, num protowire.Number, wtyp protowire.Type, b []byte) { + if f.lazy == nil { + f.lazy = &lazyExtensionValue{xi: xi} + } + f.typ = xt + f.lazy.xi = xi + f.lazy.b = protowire.AppendTag(f.lazy.b, num, wtyp) + f.lazy.b = append(f.lazy.b, b...) +} + +func (f *ExtensionField) canLazy(xt protoreflect.ExtensionType) bool { + if f.typ == nil { + return true + } + if f.typ == xt && f.lazy != nil && atomic.LoadUint32(&f.lazy.atomicOnce) == 0 { + return true + } + return false +} + +func (f *ExtensionField) lazyInit() { + f.lazy.mu.Lock() + defer f.lazy.mu.Unlock() + if atomic.LoadUint32(&f.lazy.atomicOnce) == 1 { + return + } + if f.lazy.xi != nil { + b := f.lazy.b + val := f.typ.New() + for len(b) > 0 { + var tag uint64 + if b[0] < 0x80 { + tag = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + tag = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + tag, n = protowire.ConsumeVarint(b) + if n < 0 { + panic(errors.New("bad tag in lazy extension decoding")) + } + b = b[n:] + } + num := protowire.Number(tag >> 3) + wtyp := protowire.Type(tag & 7) + var out unmarshalOutput + var err error + val, out, err = f.lazy.xi.funcs.unmarshal(b, val, num, wtyp, lazyUnmarshalOptions) + if err != nil { + panic(errors.New("decode failure in lazy extension decoding: %v", err)) + } + b = b[out.n:] + } + f.lazy.value = val + } else { + f.lazy.value = f.lazy.fn() + } + f.lazy.xi = nil + f.lazy.fn = nil + f.lazy.b = nil + atomic.StoreUint32(&f.lazy.atomicOnce, 1) +} + +// Set sets the type and value of the extension field. +// This must not be called concurrently. +func (f *ExtensionField) Set(t protoreflect.ExtensionType, v protoreflect.Value) { + f.typ = t + f.value = v + f.lazy = nil +} + +// SetLazy sets the type and a value that is to be lazily evaluated upon first use. +// This must not be called concurrently. +func (f *ExtensionField) SetLazy(t protoreflect.ExtensionType, fn func() protoreflect.Value) { + f.typ = t + f.lazy = &lazyExtensionValue{fn: fn} +} + +// Value returns the value of the extension field. +// This may be called concurrently. +func (f *ExtensionField) Value() protoreflect.Value { + if f.lazy != nil { + if atomic.LoadUint32(&f.lazy.atomicOnce) == 0 { + f.lazyInit() + } + return f.lazy.value + } + return f.value +} + +// Type returns the type of the extension field. +// This may be called concurrently. +func (f ExtensionField) Type() protoreflect.ExtensionType { + return f.typ +} + +// IsSet returns whether the extension field is set. +// This may be called concurrently. +func (f ExtensionField) IsSet() bool { + return f.typ != nil +} + +// IsLazy reports whether a field is lazily encoded. +// It is exported for testing. +func IsLazy(m protoreflect.Message, fd protoreflect.FieldDescriptor) bool { + var mi *MessageInfo + var p pointer + switch m := m.(type) { + case *messageState: + mi = m.messageInfo() + p = m.pointer() + case *messageReflectWrapper: + mi = m.messageInfo() + p = m.pointer() + default: + return false + } + xd, ok := fd.(protoreflect.ExtensionTypeDescriptor) + if !ok { + return false + } + xt := xd.Type() + ext := mi.extensionMap(p) + if ext == nil { + return false + } + f, ok := (*ext)[int32(fd.Number())] + if !ok { + return false + } + return f.typ == xt && f.lazy != nil && atomic.LoadUint32(&f.lazy.atomicOnce) == 0 +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_field.go b/vendor/google.golang.org/protobuf/internal/impl/codec_field.go new file mode 100644 index 0000000..3fadd24 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_field.go @@ -0,0 +1,830 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "sync" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" +) + +type errInvalidUTF8 struct{} + +func (errInvalidUTF8) Error() string { return "string field contains invalid UTF-8" } +func (errInvalidUTF8) InvalidUTF8() bool { return true } +func (errInvalidUTF8) Unwrap() error { return errors.Error } + +// initOneofFieldCoders initializes the fast-path functions for the fields in a oneof. +// +// For size, marshal, and isInit operations, functions are set only on the first field +// in the oneof. The functions are called when the oneof is non-nil, and will dispatch +// to the appropriate field-specific function as necessary. +// +// The unmarshal function is set on each field individually as usual. +func (mi *MessageInfo) initOneofFieldCoders(od protoreflect.OneofDescriptor, si structInfo) { + fs := si.oneofsByName[od.Name()] + ft := fs.Type + oneofFields := make(map[reflect.Type]*coderFieldInfo) + needIsInit := false + fields := od.Fields() + for i, lim := 0, fields.Len(); i < lim; i++ { + fd := od.Fields().Get(i) + num := fd.Number() + // Make a copy of the original coderFieldInfo for use in unmarshaling. + // + // oneofFields[oneofType].funcs.marshal is the field-specific marshal function. + // + // mi.coderFields[num].marshal is set on only the first field in the oneof, + // and dispatches to the field-specific marshaler in oneofFields. + cf := *mi.coderFields[num] + ot := si.oneofWrappersByNumber[num] + cf.ft = ot.Field(0).Type + cf.mi, cf.funcs = fieldCoder(fd, cf.ft) + oneofFields[ot] = &cf + if cf.funcs.isInit != nil { + needIsInit = true + } + mi.coderFields[num].funcs.unmarshal = func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + var vw reflect.Value // pointer to wrapper type + vi := p.AsValueOf(ft).Elem() // oneof field value of interface kind + if !vi.IsNil() && !vi.Elem().IsNil() && vi.Elem().Elem().Type() == ot { + vw = vi.Elem() + } else { + vw = reflect.New(ot) + } + out, err := cf.funcs.unmarshal(b, pointerOfValue(vw).Apply(zeroOffset), wtyp, &cf, opts) + if err != nil { + return out, err + } + vi.Set(vw) + return out, nil + } + } + getInfo := func(p pointer) (pointer, *coderFieldInfo) { + v := p.AsValueOf(ft).Elem() + if v.IsNil() { + return pointer{}, nil + } + v = v.Elem() // interface -> *struct + if v.IsNil() { + return pointer{}, nil + } + return pointerOfValue(v).Apply(zeroOffset), oneofFields[v.Elem().Type()] + } + first := mi.coderFields[od.Fields().Get(0).Number()] + first.funcs.size = func(p pointer, _ *coderFieldInfo, opts marshalOptions) int { + p, info := getInfo(p) + if info == nil || info.funcs.size == nil { + return 0 + } + return info.funcs.size(p, info, opts) + } + first.funcs.marshal = func(b []byte, p pointer, _ *coderFieldInfo, opts marshalOptions) ([]byte, error) { + p, info := getInfo(p) + if info == nil || info.funcs.marshal == nil { + return b, nil + } + return info.funcs.marshal(b, p, info, opts) + } + first.funcs.merge = func(dst, src pointer, _ *coderFieldInfo, opts mergeOptions) { + srcp, srcinfo := getInfo(src) + if srcinfo == nil || srcinfo.funcs.merge == nil { + return + } + dstp, dstinfo := getInfo(dst) + if dstinfo != srcinfo { + dst.AsValueOf(ft).Elem().Set(reflect.New(src.AsValueOf(ft).Elem().Elem().Elem().Type())) + dstp = pointerOfValue(dst.AsValueOf(ft).Elem().Elem()).Apply(zeroOffset) + } + srcinfo.funcs.merge(dstp, srcp, srcinfo, opts) + } + if needIsInit { + first.funcs.isInit = func(p pointer, _ *coderFieldInfo) error { + p, info := getInfo(p) + if info == nil || info.funcs.isInit == nil { + return nil + } + return info.funcs.isInit(p, info) + } + } +} + +func makeWeakMessageFieldCoder(fd protoreflect.FieldDescriptor) pointerCoderFuncs { + var once sync.Once + var messageType protoreflect.MessageType + lazyInit := func() { + once.Do(func() { + messageName := fd.Message().FullName() + messageType, _ = protoregistry.GlobalTypes.FindMessageByName(messageName) + }) + } + + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + m, ok := p.WeakFields().get(f.num) + if !ok { + return 0 + } + lazyInit() + if messageType == nil { + panic(fmt.Sprintf("weak message %v is not linked in", fd.Message().FullName())) + } + return sizeMessage(m, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + m, ok := p.WeakFields().get(f.num) + if !ok { + return b, nil + } + lazyInit() + if messageType == nil { + panic(fmt.Sprintf("weak message %v is not linked in", fd.Message().FullName())) + } + return appendMessage(b, m, f.wiretag, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + fs := p.WeakFields() + m, ok := fs.get(f.num) + if !ok { + lazyInit() + if messageType == nil { + return unmarshalOutput{}, errUnknown + } + m = messageType.New().Interface() + fs.set(f.num, m) + } + return consumeMessage(b, m, wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + m, ok := p.WeakFields().get(f.num) + if !ok { + return nil + } + return proto.CheckInitialized(m) + }, + merge: func(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + sm, ok := src.WeakFields().get(f.num) + if !ok { + return + } + dm, ok := dst.WeakFields().get(f.num) + if !ok { + lazyInit() + if messageType == nil { + panic(fmt.Sprintf("weak message %v is not linked in", fd.Message().FullName())) + } + dm = messageType.New().Interface() + dst.WeakFields().set(f.num, dm) + } + opts.Merge(dm, sm) + }, + } +} + +func makeMessageFieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeMessageInfo, + marshal: appendMessageInfo, + unmarshal: consumeMessageInfo, + merge: mergeMessage, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageInfo + } + return funcs + } else { + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + m := asMessage(p.AsValueOf(ft).Elem()) + return sizeMessage(m, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + m := asMessage(p.AsValueOf(ft).Elem()) + return appendMessage(b, m, f.wiretag, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + mp := p.AsValueOf(ft).Elem() + if mp.IsNil() { + mp.Set(reflect.New(ft.Elem())) + } + return consumeMessage(b, asMessage(mp), wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + m := asMessage(p.AsValueOf(ft).Elem()) + return proto.CheckInitialized(m) + }, + merge: mergeMessage, + } + } +} + +func sizeMessageInfo(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return protowire.SizeBytes(f.mi.sizePointer(p.Elem(), opts)) + f.tagsize +} + +func appendMessageInfo(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(f.mi.sizePointer(p.Elem(), opts))) + return f.mi.marshalAppendPointer(b, p.Elem(), opts) +} + +func consumeMessageInfo(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if p.Elem().IsNil() { + p.SetPointer(pointerOfValue(reflect.New(f.mi.GoReflectType.Elem()))) + } + o, err := f.mi.unmarshalPointer(v, p.Elem(), 0, opts) + if err != nil { + return out, err + } + out.n = n + out.initialized = o.initialized + return out, nil +} + +func isInitMessageInfo(p pointer, f *coderFieldInfo) error { + return f.mi.checkInitializedPointer(p.Elem()) +} + +func sizeMessage(m proto.Message, tagsize int, _ marshalOptions) int { + return protowire.SizeBytes(proto.Size(m)) + tagsize +} + +func appendMessage(b []byte, m proto.Message, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(proto.Size(m))) + return opts.Options().MarshalAppend(b, m) +} + +func consumeMessage(b []byte, m proto.Message, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + o, err := opts.Options().UnmarshalState(protoiface.UnmarshalInput{ + Buf: v, + Message: m.ProtoReflect(), + }) + if err != nil { + return out, err + } + out.n = n + out.initialized = o.Flags&protoiface.UnmarshalInitialized != 0 + return out, nil +} + +func sizeMessageValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + m := v.Message().Interface() + return sizeMessage(m, tagsize, opts) +} + +func appendMessageValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + m := v.Message().Interface() + return appendMessage(b, m, wiretag, opts) +} + +func consumeMessageValue(b []byte, v protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (protoreflect.Value, unmarshalOutput, error) { + m := v.Message().Interface() + out, err := consumeMessage(b, m, wtyp, opts) + return v, out, err +} + +func isInitMessageValue(v protoreflect.Value) error { + m := v.Message().Interface() + return proto.CheckInitialized(m) +} + +var coderMessageValue = valueCoderFuncs{ + size: sizeMessageValue, + marshal: appendMessageValue, + unmarshal: consumeMessageValue, + isInit: isInitMessageValue, + merge: mergeMessageValue, +} + +func sizeGroupValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + m := v.Message().Interface() + return sizeGroup(m, tagsize, opts) +} + +func appendGroupValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + m := v.Message().Interface() + return appendGroup(b, m, wiretag, opts) +} + +func consumeGroupValue(b []byte, v protoreflect.Value, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (protoreflect.Value, unmarshalOutput, error) { + m := v.Message().Interface() + out, err := consumeGroup(b, m, num, wtyp, opts) + return v, out, err +} + +var coderGroupValue = valueCoderFuncs{ + size: sizeGroupValue, + marshal: appendGroupValue, + unmarshal: consumeGroupValue, + isInit: isInitMessageValue, + merge: mergeMessageValue, +} + +func makeGroupFieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + num := fd.Number() + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeGroupType, + marshal: appendGroupType, + unmarshal: consumeGroupType, + merge: mergeMessage, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageInfo + } + return funcs + } else { + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + m := asMessage(p.AsValueOf(ft).Elem()) + return sizeGroup(m, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + m := asMessage(p.AsValueOf(ft).Elem()) + return appendGroup(b, m, f.wiretag, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + mp := p.AsValueOf(ft).Elem() + if mp.IsNil() { + mp.Set(reflect.New(ft.Elem())) + } + return consumeGroup(b, asMessage(mp), num, wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + m := asMessage(p.AsValueOf(ft).Elem()) + return proto.CheckInitialized(m) + }, + merge: mergeMessage, + } + } +} + +func sizeGroupType(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return 2*f.tagsize + f.mi.sizePointer(p.Elem(), opts) +} + +func appendGroupType(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, f.wiretag) // start group + b, err := f.mi.marshalAppendPointer(b, p.Elem(), opts) + b = protowire.AppendVarint(b, f.wiretag+1) // end group + return b, err +} + +func consumeGroupType(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.StartGroupType { + return out, errUnknown + } + if p.Elem().IsNil() { + p.SetPointer(pointerOfValue(reflect.New(f.mi.GoReflectType.Elem()))) + } + return f.mi.unmarshalPointer(b, p.Elem(), f.num, opts) +} + +func sizeGroup(m proto.Message, tagsize int, _ marshalOptions) int { + return 2*tagsize + proto.Size(m) +} + +func appendGroup(b []byte, m proto.Message, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) // start group + b, err := opts.Options().MarshalAppend(b, m) + b = protowire.AppendVarint(b, wiretag+1) // end group + return b, err +} + +func consumeGroup(b []byte, m proto.Message, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.StartGroupType { + return out, errUnknown + } + b, n := protowire.ConsumeGroup(num, b) + if n < 0 { + return out, errDecode + } + o, err := opts.Options().UnmarshalState(protoiface.UnmarshalInput{ + Buf: b, + Message: m.ProtoReflect(), + }) + if err != nil { + return out, err + } + out.n = n + out.initialized = o.Flags&protoiface.UnmarshalInitialized != 0 + return out, nil +} + +func makeMessageSliceFieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeMessageSliceInfo, + marshal: appendMessageSliceInfo, + unmarshal: consumeMessageSliceInfo, + merge: mergeMessageSlice, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageSliceInfo + } + return funcs + } + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return sizeMessageSlice(p, ft, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendMessageSlice(b, p, f.wiretag, ft, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + return consumeMessageSlice(b, p, ft, wtyp, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + return isInitMessageSlice(p, ft) + }, + merge: mergeMessageSlice, + } +} + +func sizeMessageSliceInfo(p pointer, f *coderFieldInfo, opts marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + n += protowire.SizeBytes(f.mi.sizePointer(v, opts)) + f.tagsize + } + return n +} + +func appendMessageSliceInfo(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + siz := f.mi.sizePointer(v, opts) + b = protowire.AppendVarint(b, uint64(siz)) + b, err = f.mi.marshalAppendPointer(b, v, opts) + if err != nil { + return b, err + } + } + return b, nil +} + +func consumeMessageSliceInfo(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + m := reflect.New(f.mi.GoReflectType.Elem()).Interface() + mp := pointerOfIface(m) + o, err := f.mi.unmarshalPointer(v, mp, 0, opts) + if err != nil { + return out, err + } + p.AppendPointerSlice(mp) + out.n = n + out.initialized = o.initialized + return out, nil +} + +func isInitMessageSliceInfo(p pointer, f *coderFieldInfo) error { + s := p.PointerSlice() + for _, v := range s { + if err := f.mi.checkInitializedPointer(v); err != nil { + return err + } + } + return nil +} + +func sizeMessageSlice(p pointer, goType reflect.Type, tagsize int, _ marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + m := asMessage(v.AsValueOf(goType.Elem())) + n += protowire.SizeBytes(proto.Size(m)) + tagsize + } + return n +} + +func appendMessageSlice(b []byte, p pointer, wiretag uint64, goType reflect.Type, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + m := asMessage(v.AsValueOf(goType.Elem())) + b = protowire.AppendVarint(b, wiretag) + siz := proto.Size(m) + b = protowire.AppendVarint(b, uint64(siz)) + b, err = opts.Options().MarshalAppend(b, m) + if err != nil { + return b, err + } + } + return b, nil +} + +func consumeMessageSlice(b []byte, p pointer, goType reflect.Type, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + mp := reflect.New(goType.Elem()) + o, err := opts.Options().UnmarshalState(protoiface.UnmarshalInput{ + Buf: v, + Message: asMessage(mp).ProtoReflect(), + }) + if err != nil { + return out, err + } + p.AppendPointerSlice(pointerOfValue(mp)) + out.n = n + out.initialized = o.Flags&protoiface.UnmarshalInitialized != 0 + return out, nil +} + +func isInitMessageSlice(p pointer, goType reflect.Type) error { + s := p.PointerSlice() + for _, v := range s { + m := asMessage(v.AsValueOf(goType.Elem())) + if err := proto.CheckInitialized(m); err != nil { + return err + } + } + return nil +} + +// Slices of messages + +func sizeMessageSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) int { + list := listv.List() + n := 0 + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + n += protowire.SizeBytes(proto.Size(m)) + tagsize + } + return n +} + +func appendMessageSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + mopts := opts.Options() + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + b = protowire.AppendVarint(b, wiretag) + siz := proto.Size(m) + b = protowire.AppendVarint(b, uint64(siz)) + var err error + b, err = mopts.MarshalAppend(b, m) + if err != nil { + return b, err + } + } + return b, nil +} + +func consumeMessageSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + m := list.NewElement() + o, err := opts.Options().UnmarshalState(protoiface.UnmarshalInput{ + Buf: v, + Message: m.Message(), + }) + if err != nil { + return protoreflect.Value{}, out, err + } + list.Append(m) + out.n = n + out.initialized = o.Flags&protoiface.UnmarshalInitialized != 0 + return listv, out, nil +} + +func isInitMessageSliceValue(listv protoreflect.Value) error { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + if err := proto.CheckInitialized(m); err != nil { + return err + } + } + return nil +} + +var coderMessageSliceValue = valueCoderFuncs{ + size: sizeMessageSliceValue, + marshal: appendMessageSliceValue, + unmarshal: consumeMessageSliceValue, + isInit: isInitMessageSliceValue, + merge: mergeMessageListValue, +} + +func sizeGroupSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) int { + list := listv.List() + n := 0 + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + n += 2*tagsize + proto.Size(m) + } + return n +} + +func appendGroupSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + mopts := opts.Options() + for i, llen := 0, list.Len(); i < llen; i++ { + m := list.Get(i).Message().Interface() + b = protowire.AppendVarint(b, wiretag) // start group + var err error + b, err = mopts.MarshalAppend(b, m) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, wiretag+1) // end group + } + return b, nil +} + +func consumeGroupSliceValue(b []byte, listv protoreflect.Value, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.StartGroupType { + return protoreflect.Value{}, out, errUnknown + } + b, n := protowire.ConsumeGroup(num, b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + m := list.NewElement() + o, err := opts.Options().UnmarshalState(protoiface.UnmarshalInput{ + Buf: b, + Message: m.Message(), + }) + if err != nil { + return protoreflect.Value{}, out, err + } + list.Append(m) + out.n = n + out.initialized = o.Flags&protoiface.UnmarshalInitialized != 0 + return listv, out, nil +} + +var coderGroupSliceValue = valueCoderFuncs{ + size: sizeGroupSliceValue, + marshal: appendGroupSliceValue, + unmarshal: consumeGroupSliceValue, + isInit: isInitMessageSliceValue, + merge: mergeMessageListValue, +} + +func makeGroupSliceFieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) pointerCoderFuncs { + num := fd.Number() + if mi := getMessageInfo(ft); mi != nil { + funcs := pointerCoderFuncs{ + size: sizeGroupSliceInfo, + marshal: appendGroupSliceInfo, + unmarshal: consumeGroupSliceInfo, + merge: mergeMessageSlice, + } + if needsInitCheck(mi.Desc) { + funcs.isInit = isInitMessageSliceInfo + } + return funcs + } + return pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return sizeGroupSlice(p, ft, f.tagsize, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendGroupSlice(b, p, f.wiretag, ft, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + return consumeGroupSlice(b, p, num, wtyp, ft, opts) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + return isInitMessageSlice(p, ft) + }, + merge: mergeMessageSlice, + } +} + +func sizeGroupSlice(p pointer, messageType reflect.Type, tagsize int, _ marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + m := asMessage(v.AsValueOf(messageType.Elem())) + n += 2*tagsize + proto.Size(m) + } + return n +} + +func appendGroupSlice(b []byte, p pointer, wiretag uint64, messageType reflect.Type, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + m := asMessage(v.AsValueOf(messageType.Elem())) + b = protowire.AppendVarint(b, wiretag) // start group + b, err = opts.Options().MarshalAppend(b, m) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, wiretag+1) // end group + } + return b, nil +} + +func consumeGroupSlice(b []byte, p pointer, num protowire.Number, wtyp protowire.Type, goType reflect.Type, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.StartGroupType { + return out, errUnknown + } + b, n := protowire.ConsumeGroup(num, b) + if n < 0 { + return out, errDecode + } + mp := reflect.New(goType.Elem()) + o, err := opts.Options().UnmarshalState(protoiface.UnmarshalInput{ + Buf: b, + Message: asMessage(mp).ProtoReflect(), + }) + if err != nil { + return out, err + } + p.AppendPointerSlice(pointerOfValue(mp)) + out.n = n + out.initialized = o.Flags&protoiface.UnmarshalInitialized != 0 + return out, nil +} + +func sizeGroupSliceInfo(p pointer, f *coderFieldInfo, opts marshalOptions) int { + s := p.PointerSlice() + n := 0 + for _, v := range s { + n += 2*f.tagsize + f.mi.sizePointer(v, opts) + } + return n +} + +func appendGroupSliceInfo(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.PointerSlice() + var err error + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) // start group + b, err = f.mi.marshalAppendPointer(b, v, opts) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, f.wiretag+1) // end group + } + return b, nil +} + +func consumeGroupSliceInfo(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + if wtyp != protowire.StartGroupType { + return unmarshalOutput{}, errUnknown + } + m := reflect.New(f.mi.GoReflectType.Elem()).Interface() + mp := pointerOfIface(m) + out, err := f.mi.unmarshalPointer(b, mp, f.num, opts) + if err != nil { + return out, err + } + p.AppendPointerSlice(mp) + return out, nil +} + +func asMessage(v reflect.Value) protoreflect.ProtoMessage { + if m, ok := v.Interface().(protoreflect.ProtoMessage); ok { + return m + } + return legacyWrapMessage(v).Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go b/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go new file mode 100644 index 0000000..1a509b6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_gen.go @@ -0,0 +1,5637 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package impl + +import ( + "math" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// sizeBool returns the size of wire encoding a bool pointer as a Bool. +func sizeBool(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Bool() + return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) +} + +// appendBool wire encodes a bool pointer as a Bool. +func appendBool(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Bool() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + return b, nil +} + +// consumeBool wire decodes a bool pointer as a Bool. +func consumeBool(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Bool() = protowire.DecodeBool(v) + out.n = n + return out, nil +} + +var coderBool = pointerCoderFuncs{ + size: sizeBool, + marshal: appendBool, + unmarshal: consumeBool, + merge: mergeBool, +} + +// sizeBoolNoZero returns the size of wire encoding a bool pointer as a Bool. +// The zero value is not encoded. +func sizeBoolNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Bool() + if v == false { + return 0 + } + return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) +} + +// appendBoolNoZero wire encodes a bool pointer as a Bool. +// The zero value is not encoded. +func appendBoolNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Bool() + if v == false { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + return b, nil +} + +var coderBoolNoZero = pointerCoderFuncs{ + size: sizeBoolNoZero, + marshal: appendBoolNoZero, + unmarshal: consumeBool, + merge: mergeBoolNoZero, +} + +// sizeBoolPtr returns the size of wire encoding a *bool pointer as a Bool. +// It panics if the pointer is nil. +func sizeBoolPtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.BoolPtr() + return f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) +} + +// appendBoolPtr wire encodes a *bool pointer as a Bool. +// It panics if the pointer is nil. +func appendBoolPtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.BoolPtr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + return b, nil +} + +// consumeBoolPtr wire decodes a *bool pointer as a Bool. +func consumeBoolPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.BoolPtr() + if *vp == nil { + *vp = new(bool) + } + **vp = protowire.DecodeBool(v) + out.n = n + return out, nil +} + +var coderBoolPtr = pointerCoderFuncs{ + size: sizeBoolPtr, + marshal: appendBoolPtr, + unmarshal: consumeBoolPtr, + merge: mergeBoolPtr, +} + +// sizeBoolSlice returns the size of wire encoding a []bool pointer as a repeated Bool. +func sizeBoolSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.BoolSlice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(protowire.EncodeBool(v)) + } + return size +} + +// appendBoolSlice encodes a []bool pointer as a repeated Bool. +func appendBoolSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.BoolSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + } + return b, nil +} + +// consumeBoolSlice wire decodes a []bool pointer as a repeated Bool. +func consumeBoolSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.BoolSlice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, protowire.DecodeBool(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, protowire.DecodeBool(v)) + out.n = n + return out, nil +} + +var coderBoolSlice = pointerCoderFuncs{ + size: sizeBoolSlice, + marshal: appendBoolSlice, + unmarshal: consumeBoolSlice, + merge: mergeBoolSlice, +} + +// sizeBoolPackedSlice returns the size of wire encoding a []bool pointer as a packed repeated Bool. +func sizeBoolPackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.BoolSlice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeBool(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendBoolPackedSlice encodes a []bool pointer as a packed repeated Bool. +func appendBoolPackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.BoolSlice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeBool(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, protowire.EncodeBool(v)) + } + return b, nil +} + +var coderBoolPackedSlice = pointerCoderFuncs{ + size: sizeBoolPackedSlice, + marshal: appendBoolPackedSlice, + unmarshal: consumeBoolSlice, + merge: mergeBoolSlice, +} + +// sizeBoolValue returns the size of wire encoding a bool value as a Bool. +func sizeBoolValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(protowire.EncodeBool(v.Bool())) +} + +// appendBoolValue encodes a bool value as a Bool. +func appendBoolValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + return b, nil +} + +// consumeBoolValue decodes a bool value as a Bool. +func consumeBoolValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfBool(protowire.DecodeBool(v)), out, nil +} + +var coderBoolValue = valueCoderFuncs{ + size: sizeBoolValue, + marshal: appendBoolValue, + unmarshal: consumeBoolValue, + merge: mergeScalarValue, +} + +// sizeBoolSliceValue returns the size of wire encoding a []bool value as a repeated Bool. +func sizeBoolSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + } + return size +} + +// appendBoolSliceValue encodes a []bool value as a repeated Bool. +func appendBoolSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + } + return b, nil +} + +// consumeBoolSliceValue wire decodes a []bool value as a repeated Bool. +func consumeBoolSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + out.n = n + return listv, out, nil +} + +var coderBoolSliceValue = valueCoderFuncs{ + size: sizeBoolSliceValue, + marshal: appendBoolSliceValue, + unmarshal: consumeBoolSliceValue, + merge: mergeListValue, +} + +// sizeBoolPackedSliceValue returns the size of wire encoding a []bool value as a packed repeated Bool. +func sizeBoolPackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendBoolPackedSliceValue encodes a []bool value as a packed repeated Bool. +func appendBoolPackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + } + return b, nil +} + +var coderBoolPackedSliceValue = valueCoderFuncs{ + size: sizeBoolPackedSliceValue, + marshal: appendBoolPackedSliceValue, + unmarshal: consumeBoolSliceValue, + merge: mergeListValue, +} + +// sizeEnumValue returns the size of wire encoding a value as a Enum. +func sizeEnumValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(v.Enum())) +} + +// appendEnumValue encodes a value as a Enum. +func appendEnumValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Enum())) + return b, nil +} + +// consumeEnumValue decodes a value as a Enum. +func consumeEnumValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v)), out, nil +} + +var coderEnumValue = valueCoderFuncs{ + size: sizeEnumValue, + marshal: appendEnumValue, + unmarshal: consumeEnumValue, + merge: mergeScalarValue, +} + +// sizeEnumSliceValue returns the size of wire encoding a [] value as a repeated Enum. +func sizeEnumSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(v.Enum())) + } + return size +} + +// appendEnumSliceValue encodes a [] value as a repeated Enum. +func appendEnumSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Enum())) + } + return b, nil +} + +// consumeEnumSliceValue wire decodes a [] value as a repeated Enum. +func consumeEnumSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + out.n = n + return listv, out, nil +} + +var coderEnumSliceValue = valueCoderFuncs{ + size: sizeEnumSliceValue, + marshal: appendEnumSliceValue, + unmarshal: consumeEnumSliceValue, + merge: mergeListValue, +} + +// sizeEnumPackedSliceValue returns the size of wire encoding a [] value as a packed repeated Enum. +func sizeEnumPackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Enum())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendEnumPackedSliceValue encodes a [] value as a packed repeated Enum. +func appendEnumPackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Enum())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(v.Enum())) + } + return b, nil +} + +var coderEnumPackedSliceValue = valueCoderFuncs{ + size: sizeEnumPackedSliceValue, + marshal: appendEnumPackedSliceValue, + unmarshal: consumeEnumSliceValue, + merge: mergeListValue, +} + +// sizeInt32 returns the size of wire encoding a int32 pointer as a Int32. +func sizeInt32(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int32() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt32 wire encodes a int32 pointer as a Int32. +func appendInt32(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt32 wire decodes a int32 pointer as a Int32. +func consumeInt32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Int32() = int32(v) + out.n = n + return out, nil +} + +var coderInt32 = pointerCoderFuncs{ + size: sizeInt32, + marshal: appendInt32, + unmarshal: consumeInt32, + merge: mergeInt32, +} + +// sizeInt32NoZero returns the size of wire encoding a int32 pointer as a Int32. +// The zero value is not encoded. +func sizeInt32NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt32NoZero wire encodes a int32 pointer as a Int32. +// The zero value is not encoded. +func appendInt32NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +var coderInt32NoZero = pointerCoderFuncs{ + size: sizeInt32NoZero, + marshal: appendInt32NoZero, + unmarshal: consumeInt32, + merge: mergeInt32NoZero, +} + +// sizeInt32Ptr returns the size of wire encoding a *int32 pointer as a Int32. +// It panics if the pointer is nil. +func sizeInt32Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.Int32Ptr() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt32Ptr wire encodes a *int32 pointer as a Int32. +// It panics if the pointer is nil. +func appendInt32Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Int32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt32Ptr wire decodes a *int32 pointer as a Int32. +func consumeInt32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.Int32Ptr() + if *vp == nil { + *vp = new(int32) + } + **vp = int32(v) + out.n = n + return out, nil +} + +var coderInt32Ptr = pointerCoderFuncs{ + size: sizeInt32Ptr, + marshal: appendInt32Ptr, + unmarshal: consumeInt32Ptr, + merge: mergeInt32Ptr, +} + +// sizeInt32Slice returns the size of wire encoding a []int32 pointer as a repeated Int32. +func sizeInt32Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int32Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(uint64(v)) + } + return size +} + +// appendInt32Slice encodes a []int32 pointer as a repeated Int32. +func appendInt32Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +// consumeInt32Slice wire decodes a []int32 pointer as a repeated Int32. +func consumeInt32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, int32(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, int32(v)) + out.n = n + return out, nil +} + +var coderInt32Slice = pointerCoderFuncs{ + size: sizeInt32Slice, + marshal: appendInt32Slice, + unmarshal: consumeInt32Slice, + merge: mergeInt32Slice, +} + +// sizeInt32PackedSlice returns the size of wire encoding a []int32 pointer as a packed repeated Int32. +func sizeInt32PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendInt32PackedSlice encodes a []int32 pointer as a packed repeated Int32. +func appendInt32PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +var coderInt32PackedSlice = pointerCoderFuncs{ + size: sizeInt32PackedSlice, + marshal: appendInt32PackedSlice, + unmarshal: consumeInt32Slice, + merge: mergeInt32Slice, +} + +// sizeInt32Value returns the size of wire encoding a int32 value as a Int32. +func sizeInt32Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(int32(v.Int()))) +} + +// appendInt32Value encodes a int32 value as a Int32. +func appendInt32Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + return b, nil +} + +// consumeInt32Value decodes a int32 value as a Int32. +func consumeInt32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfInt32(int32(v)), out, nil +} + +var coderInt32Value = valueCoderFuncs{ + size: sizeInt32Value, + marshal: appendInt32Value, + unmarshal: consumeInt32Value, + merge: mergeScalarValue, +} + +// sizeInt32SliceValue returns the size of wire encoding a []int32 value as a repeated Int32. +func sizeInt32SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(int32(v.Int()))) + } + return size +} + +// appendInt32SliceValue encodes a []int32 value as a repeated Int32. +func appendInt32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + } + return b, nil +} + +// consumeInt32SliceValue wire decodes a []int32 value as a repeated Int32. +func consumeInt32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + out.n = n + return listv, out, nil +} + +var coderInt32SliceValue = valueCoderFuncs{ + size: sizeInt32SliceValue, + marshal: appendInt32SliceValue, + unmarshal: consumeInt32SliceValue, + merge: mergeListValue, +} + +// sizeInt32PackedSliceValue returns the size of wire encoding a []int32 value as a packed repeated Int32. +func sizeInt32PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(int32(v.Int()))) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendInt32PackedSliceValue encodes a []int32 value as a packed repeated Int32. +func appendInt32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(int32(v.Int()))) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + } + return b, nil +} + +var coderInt32PackedSliceValue = valueCoderFuncs{ + size: sizeInt32PackedSliceValue, + marshal: appendInt32PackedSliceValue, + unmarshal: consumeInt32SliceValue, + merge: mergeListValue, +} + +// sizeSint32 returns the size of wire encoding a int32 pointer as a Sint32. +func sizeSint32(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int32() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) +} + +// appendSint32 wire encodes a int32 pointer as a Sint32. +func appendSint32(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + return b, nil +} + +// consumeSint32 wire decodes a int32 pointer as a Sint32. +func consumeSint32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Int32() = int32(protowire.DecodeZigZag(v & math.MaxUint32)) + out.n = n + return out, nil +} + +var coderSint32 = pointerCoderFuncs{ + size: sizeSint32, + marshal: appendSint32, + unmarshal: consumeSint32, + merge: mergeInt32, +} + +// sizeSint32NoZero returns the size of wire encoding a int32 pointer as a Sint32. +// The zero value is not encoded. +func sizeSint32NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) +} + +// appendSint32NoZero wire encodes a int32 pointer as a Sint32. +// The zero value is not encoded. +func appendSint32NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + return b, nil +} + +var coderSint32NoZero = pointerCoderFuncs{ + size: sizeSint32NoZero, + marshal: appendSint32NoZero, + unmarshal: consumeSint32, + merge: mergeInt32NoZero, +} + +// sizeSint32Ptr returns the size of wire encoding a *int32 pointer as a Sint32. +// It panics if the pointer is nil. +func sizeSint32Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.Int32Ptr() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) +} + +// appendSint32Ptr wire encodes a *int32 pointer as a Sint32. +// It panics if the pointer is nil. +func appendSint32Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Int32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + return b, nil +} + +// consumeSint32Ptr wire decodes a *int32 pointer as a Sint32. +func consumeSint32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.Int32Ptr() + if *vp == nil { + *vp = new(int32) + } + **vp = int32(protowire.DecodeZigZag(v & math.MaxUint32)) + out.n = n + return out, nil +} + +var coderSint32Ptr = pointerCoderFuncs{ + size: sizeSint32Ptr, + marshal: appendSint32Ptr, + unmarshal: consumeSint32Ptr, + merge: mergeInt32Ptr, +} + +// sizeSint32Slice returns the size of wire encoding a []int32 pointer as a repeated Sint32. +func sizeSint32Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int32Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) + } + return size +} + +// appendSint32Slice encodes a []int32 pointer as a repeated Sint32. +func appendSint32Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + } + return b, nil +} + +// consumeSint32Slice wire decodes a []int32 pointer as a repeated Sint32. +func consumeSint32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, int32(protowire.DecodeZigZag(v&math.MaxUint32))) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, int32(protowire.DecodeZigZag(v&math.MaxUint32))) + out.n = n + return out, nil +} + +var coderSint32Slice = pointerCoderFuncs{ + size: sizeSint32Slice, + marshal: appendSint32Slice, + unmarshal: consumeSint32Slice, + merge: mergeInt32Slice, +} + +// sizeSint32PackedSlice returns the size of wire encoding a []int32 pointer as a packed repeated Sint32. +func sizeSint32PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSint32PackedSlice encodes a []int32 pointer as a packed repeated Sint32. +func appendSint32PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(v))) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(v))) + } + return b, nil +} + +var coderSint32PackedSlice = pointerCoderFuncs{ + size: sizeSint32PackedSlice, + marshal: appendSint32PackedSlice, + unmarshal: consumeSint32Slice, + merge: mergeInt32Slice, +} + +// sizeSint32Value returns the size of wire encoding a int32 value as a Sint32. +func sizeSint32Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) +} + +// appendSint32Value encodes a int32 value as a Sint32. +func appendSint32Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + return b, nil +} + +// consumeSint32Value decodes a int32 value as a Sint32. +func consumeSint32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32))), out, nil +} + +var coderSint32Value = valueCoderFuncs{ + size: sizeSint32Value, + marshal: appendSint32Value, + unmarshal: consumeSint32Value, + merge: mergeScalarValue, +} + +// sizeSint32SliceValue returns the size of wire encoding a []int32 value as a repeated Sint32. +func sizeSint32SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return size +} + +// appendSint32SliceValue encodes a []int32 value as a repeated Sint32. +func appendSint32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return b, nil +} + +// consumeSint32SliceValue wire decodes a []int32 value as a repeated Sint32. +func consumeSint32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + out.n = n + return listv, out, nil +} + +var coderSint32SliceValue = valueCoderFuncs{ + size: sizeSint32SliceValue, + marshal: appendSint32SliceValue, + unmarshal: consumeSint32SliceValue, + merge: mergeListValue, +} + +// sizeSint32PackedSliceValue returns the size of wire encoding a []int32 value as a packed repeated Sint32. +func sizeSint32PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendSint32PackedSliceValue encodes a []int32 value as a packed repeated Sint32. +func appendSint32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + } + return b, nil +} + +var coderSint32PackedSliceValue = valueCoderFuncs{ + size: sizeSint32PackedSliceValue, + marshal: appendSint32PackedSliceValue, + unmarshal: consumeSint32SliceValue, + merge: mergeListValue, +} + +// sizeUint32 returns the size of wire encoding a uint32 pointer as a Uint32. +func sizeUint32(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Uint32() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendUint32 wire encodes a uint32 pointer as a Uint32. +func appendUint32(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeUint32 wire decodes a uint32 pointer as a Uint32. +func consumeUint32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Uint32() = uint32(v) + out.n = n + return out, nil +} + +var coderUint32 = pointerCoderFuncs{ + size: sizeUint32, + marshal: appendUint32, + unmarshal: consumeUint32, + merge: mergeUint32, +} + +// sizeUint32NoZero returns the size of wire encoding a uint32 pointer as a Uint32. +// The zero value is not encoded. +func sizeUint32NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Uint32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendUint32NoZero wire encodes a uint32 pointer as a Uint32. +// The zero value is not encoded. +func appendUint32NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +var coderUint32NoZero = pointerCoderFuncs{ + size: sizeUint32NoZero, + marshal: appendUint32NoZero, + unmarshal: consumeUint32, + merge: mergeUint32NoZero, +} + +// sizeUint32Ptr returns the size of wire encoding a *uint32 pointer as a Uint32. +// It panics if the pointer is nil. +func sizeUint32Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.Uint32Ptr() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendUint32Ptr wire encodes a *uint32 pointer as a Uint32. +// It panics if the pointer is nil. +func appendUint32Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Uint32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeUint32Ptr wire decodes a *uint32 pointer as a Uint32. +func consumeUint32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.Uint32Ptr() + if *vp == nil { + *vp = new(uint32) + } + **vp = uint32(v) + out.n = n + return out, nil +} + +var coderUint32Ptr = pointerCoderFuncs{ + size: sizeUint32Ptr, + marshal: appendUint32Ptr, + unmarshal: consumeUint32Ptr, + merge: mergeUint32Ptr, +} + +// sizeUint32Slice returns the size of wire encoding a []uint32 pointer as a repeated Uint32. +func sizeUint32Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint32Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(uint64(v)) + } + return size +} + +// appendUint32Slice encodes a []uint32 pointer as a repeated Uint32. +func appendUint32Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +// consumeUint32Slice wire decodes a []uint32 pointer as a repeated Uint32. +func consumeUint32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, uint32(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, uint32(v)) + out.n = n + return out, nil +} + +var coderUint32Slice = pointerCoderFuncs{ + size: sizeUint32Slice, + marshal: appendUint32Slice, + unmarshal: consumeUint32Slice, + merge: mergeUint32Slice, +} + +// sizeUint32PackedSlice returns the size of wire encoding a []uint32 pointer as a packed repeated Uint32. +func sizeUint32PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint32Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendUint32PackedSlice encodes a []uint32 pointer as a packed repeated Uint32. +func appendUint32PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +var coderUint32PackedSlice = pointerCoderFuncs{ + size: sizeUint32PackedSlice, + marshal: appendUint32PackedSlice, + unmarshal: consumeUint32Slice, + merge: mergeUint32Slice, +} + +// sizeUint32Value returns the size of wire encoding a uint32 value as a Uint32. +func sizeUint32Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(uint32(v.Uint()))) +} + +// appendUint32Value encodes a uint32 value as a Uint32. +func appendUint32Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + return b, nil +} + +// consumeUint32Value decodes a uint32 value as a Uint32. +func consumeUint32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfUint32(uint32(v)), out, nil +} + +var coderUint32Value = valueCoderFuncs{ + size: sizeUint32Value, + marshal: appendUint32Value, + unmarshal: consumeUint32Value, + merge: mergeScalarValue, +} + +// sizeUint32SliceValue returns the size of wire encoding a []uint32 value as a repeated Uint32. +func sizeUint32SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(uint32(v.Uint()))) + } + return size +} + +// appendUint32SliceValue encodes a []uint32 value as a repeated Uint32. +func appendUint32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + } + return b, nil +} + +// consumeUint32SliceValue wire decodes a []uint32 value as a repeated Uint32. +func consumeUint32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + out.n = n + return listv, out, nil +} + +var coderUint32SliceValue = valueCoderFuncs{ + size: sizeUint32SliceValue, + marshal: appendUint32SliceValue, + unmarshal: consumeUint32SliceValue, + merge: mergeListValue, +} + +// sizeUint32PackedSliceValue returns the size of wire encoding a []uint32 value as a packed repeated Uint32. +func sizeUint32PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(uint32(v.Uint()))) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendUint32PackedSliceValue encodes a []uint32 value as a packed repeated Uint32. +func appendUint32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(uint32(v.Uint()))) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + } + return b, nil +} + +var coderUint32PackedSliceValue = valueCoderFuncs{ + size: sizeUint32PackedSliceValue, + marshal: appendUint32PackedSliceValue, + unmarshal: consumeUint32SliceValue, + merge: mergeListValue, +} + +// sizeInt64 returns the size of wire encoding a int64 pointer as a Int64. +func sizeInt64(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int64() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt64 wire encodes a int64 pointer as a Int64. +func appendInt64(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt64 wire decodes a int64 pointer as a Int64. +func consumeInt64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Int64() = int64(v) + out.n = n + return out, nil +} + +var coderInt64 = pointerCoderFuncs{ + size: sizeInt64, + marshal: appendInt64, + unmarshal: consumeInt64, + merge: mergeInt64, +} + +// sizeInt64NoZero returns the size of wire encoding a int64 pointer as a Int64. +// The zero value is not encoded. +func sizeInt64NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt64NoZero wire encodes a int64 pointer as a Int64. +// The zero value is not encoded. +func appendInt64NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +var coderInt64NoZero = pointerCoderFuncs{ + size: sizeInt64NoZero, + marshal: appendInt64NoZero, + unmarshal: consumeInt64, + merge: mergeInt64NoZero, +} + +// sizeInt64Ptr returns the size of wire encoding a *int64 pointer as a Int64. +// It panics if the pointer is nil. +func sizeInt64Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.Int64Ptr() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +// appendInt64Ptr wire encodes a *int64 pointer as a Int64. +// It panics if the pointer is nil. +func appendInt64Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Int64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +// consumeInt64Ptr wire decodes a *int64 pointer as a Int64. +func consumeInt64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.Int64Ptr() + if *vp == nil { + *vp = new(int64) + } + **vp = int64(v) + out.n = n + return out, nil +} + +var coderInt64Ptr = pointerCoderFuncs{ + size: sizeInt64Ptr, + marshal: appendInt64Ptr, + unmarshal: consumeInt64Ptr, + merge: mergeInt64Ptr, +} + +// sizeInt64Slice returns the size of wire encoding a []int64 pointer as a repeated Int64. +func sizeInt64Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int64Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(uint64(v)) + } + return size +} + +// appendInt64Slice encodes a []int64 pointer as a repeated Int64. +func appendInt64Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +// consumeInt64Slice wire decodes a []int64 pointer as a repeated Int64. +func consumeInt64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, int64(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, int64(v)) + out.n = n + return out, nil +} + +var coderInt64Slice = pointerCoderFuncs{ + size: sizeInt64Slice, + marshal: appendInt64Slice, + unmarshal: consumeInt64Slice, + merge: mergeInt64Slice, +} + +// sizeInt64PackedSlice returns the size of wire encoding a []int64 pointer as a packed repeated Int64. +func sizeInt64PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendInt64PackedSlice encodes a []int64 pointer as a packed repeated Int64. +func appendInt64PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(uint64(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, uint64(v)) + } + return b, nil +} + +var coderInt64PackedSlice = pointerCoderFuncs{ + size: sizeInt64PackedSlice, + marshal: appendInt64PackedSlice, + unmarshal: consumeInt64Slice, + merge: mergeInt64Slice, +} + +// sizeInt64Value returns the size of wire encoding a int64 value as a Int64. +func sizeInt64Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(uint64(v.Int())) +} + +// appendInt64Value encodes a int64 value as a Int64. +func appendInt64Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Int())) + return b, nil +} + +// consumeInt64Value decodes a int64 value as a Int64. +func consumeInt64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfInt64(int64(v)), out, nil +} + +var coderInt64Value = valueCoderFuncs{ + size: sizeInt64Value, + marshal: appendInt64Value, + unmarshal: consumeInt64Value, + merge: mergeScalarValue, +} + +// sizeInt64SliceValue returns the size of wire encoding a []int64 value as a repeated Int64. +func sizeInt64SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(uint64(v.Int())) + } + return size +} + +// appendInt64SliceValue encodes a []int64 value as a repeated Int64. +func appendInt64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, uint64(v.Int())) + } + return b, nil +} + +// consumeInt64SliceValue wire decodes a []int64 value as a repeated Int64. +func consumeInt64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + out.n = n + return listv, out, nil +} + +var coderInt64SliceValue = valueCoderFuncs{ + size: sizeInt64SliceValue, + marshal: appendInt64SliceValue, + unmarshal: consumeInt64SliceValue, + merge: mergeListValue, +} + +// sizeInt64PackedSliceValue returns the size of wire encoding a []int64 value as a packed repeated Int64. +func sizeInt64PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Int())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendInt64PackedSliceValue encodes a []int64 value as a packed repeated Int64. +func appendInt64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(uint64(v.Int())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, uint64(v.Int())) + } + return b, nil +} + +var coderInt64PackedSliceValue = valueCoderFuncs{ + size: sizeInt64PackedSliceValue, + marshal: appendInt64PackedSliceValue, + unmarshal: consumeInt64SliceValue, + merge: mergeListValue, +} + +// sizeSint64 returns the size of wire encoding a int64 pointer as a Sint64. +func sizeSint64(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int64() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) +} + +// appendSint64 wire encodes a int64 pointer as a Sint64. +func appendSint64(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + return b, nil +} + +// consumeSint64 wire decodes a int64 pointer as a Sint64. +func consumeSint64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Int64() = protowire.DecodeZigZag(v) + out.n = n + return out, nil +} + +var coderSint64 = pointerCoderFuncs{ + size: sizeSint64, + marshal: appendSint64, + unmarshal: consumeSint64, + merge: mergeInt64, +} + +// sizeSint64NoZero returns the size of wire encoding a int64 pointer as a Sint64. +// The zero value is not encoded. +func sizeSint64NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) +} + +// appendSint64NoZero wire encodes a int64 pointer as a Sint64. +// The zero value is not encoded. +func appendSint64NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + return b, nil +} + +var coderSint64NoZero = pointerCoderFuncs{ + size: sizeSint64NoZero, + marshal: appendSint64NoZero, + unmarshal: consumeSint64, + merge: mergeInt64NoZero, +} + +// sizeSint64Ptr returns the size of wire encoding a *int64 pointer as a Sint64. +// It panics if the pointer is nil. +func sizeSint64Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.Int64Ptr() + return f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) +} + +// appendSint64Ptr wire encodes a *int64 pointer as a Sint64. +// It panics if the pointer is nil. +func appendSint64Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Int64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + return b, nil +} + +// consumeSint64Ptr wire decodes a *int64 pointer as a Sint64. +func consumeSint64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.Int64Ptr() + if *vp == nil { + *vp = new(int64) + } + **vp = protowire.DecodeZigZag(v) + out.n = n + return out, nil +} + +var coderSint64Ptr = pointerCoderFuncs{ + size: sizeSint64Ptr, + marshal: appendSint64Ptr, + unmarshal: consumeSint64Ptr, + merge: mergeInt64Ptr, +} + +// sizeSint64Slice returns the size of wire encoding a []int64 pointer as a repeated Sint64. +func sizeSint64Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int64Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v)) + } + return size +} + +// appendSint64Slice encodes a []int64 pointer as a repeated Sint64. +func appendSint64Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + } + return b, nil +} + +// consumeSint64Slice wire decodes a []int64 pointer as a repeated Sint64. +func consumeSint64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, protowire.DecodeZigZag(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, protowire.DecodeZigZag(v)) + out.n = n + return out, nil +} + +var coderSint64Slice = pointerCoderFuncs{ + size: sizeSint64Slice, + marshal: appendSint64Slice, + unmarshal: consumeSint64Slice, + merge: mergeInt64Slice, +} + +// sizeSint64PackedSlice returns the size of wire encoding a []int64 pointer as a packed repeated Sint64. +func sizeSint64PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(v)) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSint64PackedSlice encodes a []int64 pointer as a packed repeated Sint64. +func appendSint64PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(protowire.EncodeZigZag(v)) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v)) + } + return b, nil +} + +var coderSint64PackedSlice = pointerCoderFuncs{ + size: sizeSint64PackedSlice, + marshal: appendSint64PackedSlice, + unmarshal: consumeSint64Slice, + merge: mergeInt64Slice, +} + +// sizeSint64Value returns the size of wire encoding a int64 value as a Sint64. +func sizeSint64Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) +} + +// appendSint64Value encodes a int64 value as a Sint64. +func appendSint64Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + return b, nil +} + +// consumeSint64Value decodes a int64 value as a Sint64. +func consumeSint64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfInt64(protowire.DecodeZigZag(v)), out, nil +} + +var coderSint64Value = valueCoderFuncs{ + size: sizeSint64Value, + marshal: appendSint64Value, + unmarshal: consumeSint64Value, + merge: mergeScalarValue, +} + +// sizeSint64SliceValue returns the size of wire encoding a []int64 value as a repeated Sint64. +func sizeSint64SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + } + return size +} + +// appendSint64SliceValue encodes a []int64 value as a repeated Sint64. +func appendSint64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + } + return b, nil +} + +// consumeSint64SliceValue wire decodes a []int64 value as a repeated Sint64. +func consumeSint64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + out.n = n + return listv, out, nil +} + +var coderSint64SliceValue = valueCoderFuncs{ + size: sizeSint64SliceValue, + marshal: appendSint64SliceValue, + unmarshal: consumeSint64SliceValue, + merge: mergeListValue, +} + +// sizeSint64PackedSliceValue returns the size of wire encoding a []int64 value as a packed repeated Sint64. +func sizeSint64PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendSint64PackedSliceValue encodes a []int64 value as a packed repeated Sint64. +func appendSint64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + } + return b, nil +} + +var coderSint64PackedSliceValue = valueCoderFuncs{ + size: sizeSint64PackedSliceValue, + marshal: appendSint64PackedSliceValue, + unmarshal: consumeSint64SliceValue, + merge: mergeListValue, +} + +// sizeUint64 returns the size of wire encoding a uint64 pointer as a Uint64. +func sizeUint64(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Uint64() + return f.tagsize + protowire.SizeVarint(v) +} + +// appendUint64 wire encodes a uint64 pointer as a Uint64. +func appendUint64(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + return b, nil +} + +// consumeUint64 wire decodes a uint64 pointer as a Uint64. +func consumeUint64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *p.Uint64() = v + out.n = n + return out, nil +} + +var coderUint64 = pointerCoderFuncs{ + size: sizeUint64, + marshal: appendUint64, + unmarshal: consumeUint64, + merge: mergeUint64, +} + +// sizeUint64NoZero returns the size of wire encoding a uint64 pointer as a Uint64. +// The zero value is not encoded. +func sizeUint64NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Uint64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeVarint(v) +} + +// appendUint64NoZero wire encodes a uint64 pointer as a Uint64. +// The zero value is not encoded. +func appendUint64NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + return b, nil +} + +var coderUint64NoZero = pointerCoderFuncs{ + size: sizeUint64NoZero, + marshal: appendUint64NoZero, + unmarshal: consumeUint64, + merge: mergeUint64NoZero, +} + +// sizeUint64Ptr returns the size of wire encoding a *uint64 pointer as a Uint64. +// It panics if the pointer is nil. +func sizeUint64Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.Uint64Ptr() + return f.tagsize + protowire.SizeVarint(v) +} + +// appendUint64Ptr wire encodes a *uint64 pointer as a Uint64. +// It panics if the pointer is nil. +func appendUint64Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Uint64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + return b, nil +} + +// consumeUint64Ptr wire decodes a *uint64 pointer as a Uint64. +func consumeUint64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + vp := p.Uint64Ptr() + if *vp == nil { + *vp = new(uint64) + } + **vp = v + out.n = n + return out, nil +} + +var coderUint64Ptr = pointerCoderFuncs{ + size: sizeUint64Ptr, + marshal: appendUint64Ptr, + unmarshal: consumeUint64Ptr, + merge: mergeUint64Ptr, +} + +// sizeUint64Slice returns the size of wire encoding a []uint64 pointer as a repeated Uint64. +func sizeUint64Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint64Slice() + for _, v := range s { + size += f.tagsize + protowire.SizeVarint(v) + } + return size +} + +// appendUint64Slice encodes a []uint64 pointer as a repeated Uint64. +func appendUint64Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, v) + } + return b, nil +} + +// consumeUint64Slice wire decodes a []uint64 pointer as a repeated Uint64. +func consumeUint64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + s = append(s, v) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return out, errDecode + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderUint64Slice = pointerCoderFuncs{ + size: sizeUint64Slice, + marshal: appendUint64Slice, + unmarshal: consumeUint64Slice, + merge: mergeUint64Slice, +} + +// sizeUint64PackedSlice returns the size of wire encoding a []uint64 pointer as a packed repeated Uint64. +func sizeUint64PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint64Slice() + if len(s) == 0 { + return 0 + } + n := 0 + for _, v := range s { + n += protowire.SizeVarint(v) + } + return f.tagsize + protowire.SizeBytes(n) +} + +// appendUint64PackedSlice encodes a []uint64 pointer as a packed repeated Uint64. +func appendUint64PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for _, v := range s { + n += protowire.SizeVarint(v) + } + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendVarint(b, v) + } + return b, nil +} + +var coderUint64PackedSlice = pointerCoderFuncs{ + size: sizeUint64PackedSlice, + marshal: appendUint64PackedSlice, + unmarshal: consumeUint64Slice, + merge: mergeUint64Slice, +} + +// sizeUint64Value returns the size of wire encoding a uint64 value as a Uint64. +func sizeUint64Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeVarint(v.Uint()) +} + +// appendUint64Value encodes a uint64 value as a Uint64. +func appendUint64Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, v.Uint()) + return b, nil +} + +// consumeUint64Value decodes a uint64 value as a Uint64. +func consumeUint64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfUint64(v), out, nil +} + +var coderUint64Value = valueCoderFuncs{ + size: sizeUint64Value, + marshal: appendUint64Value, + unmarshal: consumeUint64Value, + merge: mergeScalarValue, +} + +// sizeUint64SliceValue returns the size of wire encoding a []uint64 value as a repeated Uint64. +func sizeUint64SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeVarint(v.Uint()) + } + return size +} + +// appendUint64SliceValue encodes a []uint64 value as a repeated Uint64. +func appendUint64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendVarint(b, v.Uint()) + } + return b, nil +} + +// consumeUint64SliceValue wire decodes a []uint64 value as a repeated Uint64. +func consumeUint64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint64(v)) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.VarintType { + return protoreflect.Value{}, out, errUnknown + } + var v uint64 + var n int + if len(b) >= 1 && b[0] < 0x80 { + v = uint64(b[0]) + n = 1 + } else if len(b) >= 2 && b[1] < 128 { + v = uint64(b[0]&0x7f) + uint64(b[1])<<7 + n = 2 + } else { + v, n = protowire.ConsumeVarint(b) + } + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint64(v)) + out.n = n + return listv, out, nil +} + +var coderUint64SliceValue = valueCoderFuncs{ + size: sizeUint64SliceValue, + marshal: appendUint64SliceValue, + unmarshal: consumeUint64SliceValue, + merge: mergeListValue, +} + +// sizeUint64PackedSliceValue returns the size of wire encoding a []uint64 value as a packed repeated Uint64. +func sizeUint64PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := 0 + for i, llen := 0, llen; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(v.Uint()) + } + return tagsize + protowire.SizeBytes(n) +} + +// appendUint64PackedSliceValue encodes a []uint64 value as a packed repeated Uint64. +func appendUint64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := 0 + for i := 0; i < llen; i++ { + v := list.Get(i) + n += protowire.SizeVarint(v.Uint()) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, v.Uint()) + } + return b, nil +} + +var coderUint64PackedSliceValue = valueCoderFuncs{ + size: sizeUint64PackedSliceValue, + marshal: appendUint64PackedSliceValue, + unmarshal: consumeUint64SliceValue, + merge: mergeListValue, +} + +// sizeSfixed32 returns the size of wire encoding a int32 pointer as a Sfixed32. +func sizeSfixed32(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed32() +} + +// appendSfixed32 wire encodes a int32 pointer as a Sfixed32. +func appendSfixed32(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + return b, nil +} + +// consumeSfixed32 wire decodes a int32 pointer as a Sfixed32. +func consumeSfixed32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + *p.Int32() = int32(v) + out.n = n + return out, nil +} + +var coderSfixed32 = pointerCoderFuncs{ + size: sizeSfixed32, + marshal: appendSfixed32, + unmarshal: consumeSfixed32, + merge: mergeInt32, +} + +// sizeSfixed32NoZero returns the size of wire encoding a int32 pointer as a Sfixed32. +// The zero value is not encoded. +func sizeSfixed32NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed32() +} + +// appendSfixed32NoZero wire encodes a int32 pointer as a Sfixed32. +// The zero value is not encoded. +func appendSfixed32NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + return b, nil +} + +var coderSfixed32NoZero = pointerCoderFuncs{ + size: sizeSfixed32NoZero, + marshal: appendSfixed32NoZero, + unmarshal: consumeSfixed32, + merge: mergeInt32NoZero, +} + +// sizeSfixed32Ptr returns the size of wire encoding a *int32 pointer as a Sfixed32. +// It panics if the pointer is nil. +func sizeSfixed32Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed32() +} + +// appendSfixed32Ptr wire encodes a *int32 pointer as a Sfixed32. +// It panics if the pointer is nil. +func appendSfixed32Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Int32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + return b, nil +} + +// consumeSfixed32Ptr wire decodes a *int32 pointer as a Sfixed32. +func consumeSfixed32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + vp := p.Int32Ptr() + if *vp == nil { + *vp = new(int32) + } + **vp = int32(v) + out.n = n + return out, nil +} + +var coderSfixed32Ptr = pointerCoderFuncs{ + size: sizeSfixed32Ptr, + marshal: appendSfixed32Ptr, + unmarshal: consumeSfixed32Ptr, + merge: mergeInt32Ptr, +} + +// sizeSfixed32Slice returns the size of wire encoding a []int32 pointer as a repeated Sfixed32. +func sizeSfixed32Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int32Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed32()) + return size +} + +// appendSfixed32Slice encodes a []int32 pointer as a repeated Sfixed32. +func appendSfixed32Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, uint32(v)) + } + return b, nil +} + +// consumeSfixed32Slice wire decodes a []int32 pointer as a repeated Sfixed32. +func consumeSfixed32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + s = append(s, int32(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, int32(v)) + out.n = n + return out, nil +} + +var coderSfixed32Slice = pointerCoderFuncs{ + size: sizeSfixed32Slice, + marshal: appendSfixed32Slice, + unmarshal: consumeSfixed32Slice, + merge: mergeInt32Slice, +} + +// sizeSfixed32PackedSlice returns the size of wire encoding a []int32 pointer as a packed repeated Sfixed32. +func sizeSfixed32PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int32Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed32() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSfixed32PackedSlice encodes a []int32 pointer as a packed repeated Sfixed32. +func appendSfixed32PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed32(b, uint32(v)) + } + return b, nil +} + +var coderSfixed32PackedSlice = pointerCoderFuncs{ + size: sizeSfixed32PackedSlice, + marshal: appendSfixed32PackedSlice, + unmarshal: consumeSfixed32Slice, + merge: mergeInt32Slice, +} + +// sizeSfixed32Value returns the size of wire encoding a int32 value as a Sfixed32. +func sizeSfixed32Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeFixed32() +} + +// appendSfixed32Value encodes a int32 value as a Sfixed32. +func appendSfixed32Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Int())) + return b, nil +} + +// consumeSfixed32Value decodes a int32 value as a Sfixed32. +func consumeSfixed32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfInt32(int32(v)), out, nil +} + +var coderSfixed32Value = valueCoderFuncs{ + size: sizeSfixed32Value, + marshal: appendSfixed32Value, + unmarshal: consumeSfixed32Value, + merge: mergeScalarValue, +} + +// sizeSfixed32SliceValue returns the size of wire encoding a []int32 value as a repeated Sfixed32. +func sizeSfixed32SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed32()) + return size +} + +// appendSfixed32SliceValue encodes a []int32 value as a repeated Sfixed32. +func appendSfixed32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Int())) + } + return b, nil +} + +// consumeSfixed32SliceValue wire decodes a []int32 value as a repeated Sfixed32. +func consumeSfixed32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + out.n = n + return listv, out, nil +} + +var coderSfixed32SliceValue = valueCoderFuncs{ + size: sizeSfixed32SliceValue, + marshal: appendSfixed32SliceValue, + unmarshal: consumeSfixed32SliceValue, + merge: mergeListValue, +} + +// sizeSfixed32PackedSliceValue returns the size of wire encoding a []int32 value as a packed repeated Sfixed32. +func sizeSfixed32PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed32() + return tagsize + protowire.SizeBytes(n) +} + +// appendSfixed32PackedSliceValue encodes a []int32 value as a packed repeated Sfixed32. +func appendSfixed32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed32(b, uint32(v.Int())) + } + return b, nil +} + +var coderSfixed32PackedSliceValue = valueCoderFuncs{ + size: sizeSfixed32PackedSliceValue, + marshal: appendSfixed32PackedSliceValue, + unmarshal: consumeSfixed32SliceValue, + merge: mergeListValue, +} + +// sizeFixed32 returns the size of wire encoding a uint32 pointer as a Fixed32. +func sizeFixed32(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed32() +} + +// appendFixed32 wire encodes a uint32 pointer as a Fixed32. +func appendFixed32(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + return b, nil +} + +// consumeFixed32 wire decodes a uint32 pointer as a Fixed32. +func consumeFixed32(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + *p.Uint32() = v + out.n = n + return out, nil +} + +var coderFixed32 = pointerCoderFuncs{ + size: sizeFixed32, + marshal: appendFixed32, + unmarshal: consumeFixed32, + merge: mergeUint32, +} + +// sizeFixed32NoZero returns the size of wire encoding a uint32 pointer as a Fixed32. +// The zero value is not encoded. +func sizeFixed32NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Uint32() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed32() +} + +// appendFixed32NoZero wire encodes a uint32 pointer as a Fixed32. +// The zero value is not encoded. +func appendFixed32NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint32() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + return b, nil +} + +var coderFixed32NoZero = pointerCoderFuncs{ + size: sizeFixed32NoZero, + marshal: appendFixed32NoZero, + unmarshal: consumeFixed32, + merge: mergeUint32NoZero, +} + +// sizeFixed32Ptr returns the size of wire encoding a *uint32 pointer as a Fixed32. +// It panics if the pointer is nil. +func sizeFixed32Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed32() +} + +// appendFixed32Ptr wire encodes a *uint32 pointer as a Fixed32. +// It panics if the pointer is nil. +func appendFixed32Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Uint32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + return b, nil +} + +// consumeFixed32Ptr wire decodes a *uint32 pointer as a Fixed32. +func consumeFixed32Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + vp := p.Uint32Ptr() + if *vp == nil { + *vp = new(uint32) + } + **vp = v + out.n = n + return out, nil +} + +var coderFixed32Ptr = pointerCoderFuncs{ + size: sizeFixed32Ptr, + marshal: appendFixed32Ptr, + unmarshal: consumeFixed32Ptr, + merge: mergeUint32Ptr, +} + +// sizeFixed32Slice returns the size of wire encoding a []uint32 pointer as a repeated Fixed32. +func sizeFixed32Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint32Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed32()) + return size +} + +// appendFixed32Slice encodes a []uint32 pointer as a repeated Fixed32. +func appendFixed32Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, v) + } + return b, nil +} + +// consumeFixed32Slice wire decodes a []uint32 pointer as a repeated Fixed32. +func consumeFixed32Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + s = append(s, v) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderFixed32Slice = pointerCoderFuncs{ + size: sizeFixed32Slice, + marshal: appendFixed32Slice, + unmarshal: consumeFixed32Slice, + merge: mergeUint32Slice, +} + +// sizeFixed32PackedSlice returns the size of wire encoding a []uint32 pointer as a packed repeated Fixed32. +func sizeFixed32PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint32Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed32() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendFixed32PackedSlice encodes a []uint32 pointer as a packed repeated Fixed32. +func appendFixed32PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed32(b, v) + } + return b, nil +} + +var coderFixed32PackedSlice = pointerCoderFuncs{ + size: sizeFixed32PackedSlice, + marshal: appendFixed32PackedSlice, + unmarshal: consumeFixed32Slice, + merge: mergeUint32Slice, +} + +// sizeFixed32Value returns the size of wire encoding a uint32 value as a Fixed32. +func sizeFixed32Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeFixed32() +} + +// appendFixed32Value encodes a uint32 value as a Fixed32. +func appendFixed32Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Uint())) + return b, nil +} + +// consumeFixed32Value decodes a uint32 value as a Fixed32. +func consumeFixed32Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfUint32(uint32(v)), out, nil +} + +var coderFixed32Value = valueCoderFuncs{ + size: sizeFixed32Value, + marshal: appendFixed32Value, + unmarshal: consumeFixed32Value, + merge: mergeScalarValue, +} + +// sizeFixed32SliceValue returns the size of wire encoding a []uint32 value as a repeated Fixed32. +func sizeFixed32SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed32()) + return size +} + +// appendFixed32SliceValue encodes a []uint32 value as a repeated Fixed32. +func appendFixed32SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, uint32(v.Uint())) + } + return b, nil +} + +// consumeFixed32SliceValue wire decodes a []uint32 value as a repeated Fixed32. +func consumeFixed32SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + out.n = n + return listv, out, nil +} + +var coderFixed32SliceValue = valueCoderFuncs{ + size: sizeFixed32SliceValue, + marshal: appendFixed32SliceValue, + unmarshal: consumeFixed32SliceValue, + merge: mergeListValue, +} + +// sizeFixed32PackedSliceValue returns the size of wire encoding a []uint32 value as a packed repeated Fixed32. +func sizeFixed32PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed32() + return tagsize + protowire.SizeBytes(n) +} + +// appendFixed32PackedSliceValue encodes a []uint32 value as a packed repeated Fixed32. +func appendFixed32PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed32(b, uint32(v.Uint())) + } + return b, nil +} + +var coderFixed32PackedSliceValue = valueCoderFuncs{ + size: sizeFixed32PackedSliceValue, + marshal: appendFixed32PackedSliceValue, + unmarshal: consumeFixed32SliceValue, + merge: mergeListValue, +} + +// sizeFloat returns the size of wire encoding a float32 pointer as a Float. +func sizeFloat(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed32() +} + +// appendFloat wire encodes a float32 pointer as a Float. +func appendFloat(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Float32() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + return b, nil +} + +// consumeFloat wire decodes a float32 pointer as a Float. +func consumeFloat(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + *p.Float32() = math.Float32frombits(v) + out.n = n + return out, nil +} + +var coderFloat = pointerCoderFuncs{ + size: sizeFloat, + marshal: appendFloat, + unmarshal: consumeFloat, + merge: mergeFloat32, +} + +// sizeFloatNoZero returns the size of wire encoding a float32 pointer as a Float. +// The zero value is not encoded. +func sizeFloatNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Float32() + if v == 0 && !math.Signbit(float64(v)) { + return 0 + } + return f.tagsize + protowire.SizeFixed32() +} + +// appendFloatNoZero wire encodes a float32 pointer as a Float. +// The zero value is not encoded. +func appendFloatNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Float32() + if v == 0 && !math.Signbit(float64(v)) { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + return b, nil +} + +var coderFloatNoZero = pointerCoderFuncs{ + size: sizeFloatNoZero, + marshal: appendFloatNoZero, + unmarshal: consumeFloat, + merge: mergeFloat32NoZero, +} + +// sizeFloatPtr returns the size of wire encoding a *float32 pointer as a Float. +// It panics if the pointer is nil. +func sizeFloatPtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed32() +} + +// appendFloatPtr wire encodes a *float32 pointer as a Float. +// It panics if the pointer is nil. +func appendFloatPtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Float32Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + return b, nil +} + +// consumeFloatPtr wire decodes a *float32 pointer as a Float. +func consumeFloatPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + vp := p.Float32Ptr() + if *vp == nil { + *vp = new(float32) + } + **vp = math.Float32frombits(v) + out.n = n + return out, nil +} + +var coderFloatPtr = pointerCoderFuncs{ + size: sizeFloatPtr, + marshal: appendFloatPtr, + unmarshal: consumeFloatPtr, + merge: mergeFloat32Ptr, +} + +// sizeFloatSlice returns the size of wire encoding a []float32 pointer as a repeated Float. +func sizeFloatSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Float32Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed32()) + return size +} + +// appendFloatSlice encodes a []float32 pointer as a repeated Float. +func appendFloatSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Float32Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(v)) + } + return b, nil +} + +// consumeFloatSlice wire decodes a []float32 pointer as a repeated Float. +func consumeFloatSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Float32Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + s = append(s, math.Float32frombits(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed32Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, math.Float32frombits(v)) + out.n = n + return out, nil +} + +var coderFloatSlice = pointerCoderFuncs{ + size: sizeFloatSlice, + marshal: appendFloatSlice, + unmarshal: consumeFloatSlice, + merge: mergeFloat32Slice, +} + +// sizeFloatPackedSlice returns the size of wire encoding a []float32 pointer as a packed repeated Float. +func sizeFloatPackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Float32Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed32() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendFloatPackedSlice encodes a []float32 pointer as a packed repeated Float. +func appendFloatPackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Float32Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed32(b, math.Float32bits(v)) + } + return b, nil +} + +var coderFloatPackedSlice = pointerCoderFuncs{ + size: sizeFloatPackedSlice, + marshal: appendFloatPackedSlice, + unmarshal: consumeFloatSlice, + merge: mergeFloat32Slice, +} + +// sizeFloatValue returns the size of wire encoding a float32 value as a Float. +func sizeFloatValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeFixed32() +} + +// appendFloatValue encodes a float32 value as a Float. +func appendFloatValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + return b, nil +} + +// consumeFloatValue decodes a float32 value as a Float. +func consumeFloatValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v))), out, nil +} + +var coderFloatValue = valueCoderFuncs{ + size: sizeFloatValue, + marshal: appendFloatValue, + unmarshal: consumeFloatValue, + merge: mergeScalarValue, +} + +// sizeFloatSliceValue returns the size of wire encoding a []float32 value as a repeated Float. +func sizeFloatSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed32()) + return size +} + +// appendFloatSliceValue encodes a []float32 value as a repeated Float. +func appendFloatSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + } + return b, nil +} + +// consumeFloatSliceValue wire decodes a []float32 value as a repeated Float. +func consumeFloatSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed32Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + out.n = n + return listv, out, nil +} + +var coderFloatSliceValue = valueCoderFuncs{ + size: sizeFloatSliceValue, + marshal: appendFloatSliceValue, + unmarshal: consumeFloatSliceValue, + merge: mergeListValue, +} + +// sizeFloatPackedSliceValue returns the size of wire encoding a []float32 value as a packed repeated Float. +func sizeFloatPackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed32() + return tagsize + protowire.SizeBytes(n) +} + +// appendFloatPackedSliceValue encodes a []float32 value as a packed repeated Float. +func appendFloatPackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed32() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + } + return b, nil +} + +var coderFloatPackedSliceValue = valueCoderFuncs{ + size: sizeFloatPackedSliceValue, + marshal: appendFloatPackedSliceValue, + unmarshal: consumeFloatSliceValue, + merge: mergeListValue, +} + +// sizeSfixed64 returns the size of wire encoding a int64 pointer as a Sfixed64. +func sizeSfixed64(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed64() +} + +// appendSfixed64 wire encodes a int64 pointer as a Sfixed64. +func appendSfixed64(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + return b, nil +} + +// consumeSfixed64 wire decodes a int64 pointer as a Sfixed64. +func consumeSfixed64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + *p.Int64() = int64(v) + out.n = n + return out, nil +} + +var coderSfixed64 = pointerCoderFuncs{ + size: sizeSfixed64, + marshal: appendSfixed64, + unmarshal: consumeSfixed64, + merge: mergeInt64, +} + +// sizeSfixed64NoZero returns the size of wire encoding a int64 pointer as a Sfixed64. +// The zero value is not encoded. +func sizeSfixed64NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Int64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed64() +} + +// appendSfixed64NoZero wire encodes a int64 pointer as a Sfixed64. +// The zero value is not encoded. +func appendSfixed64NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Int64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + return b, nil +} + +var coderSfixed64NoZero = pointerCoderFuncs{ + size: sizeSfixed64NoZero, + marshal: appendSfixed64NoZero, + unmarshal: consumeSfixed64, + merge: mergeInt64NoZero, +} + +// sizeSfixed64Ptr returns the size of wire encoding a *int64 pointer as a Sfixed64. +// It panics if the pointer is nil. +func sizeSfixed64Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed64() +} + +// appendSfixed64Ptr wire encodes a *int64 pointer as a Sfixed64. +// It panics if the pointer is nil. +func appendSfixed64Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Int64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + return b, nil +} + +// consumeSfixed64Ptr wire decodes a *int64 pointer as a Sfixed64. +func consumeSfixed64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + vp := p.Int64Ptr() + if *vp == nil { + *vp = new(int64) + } + **vp = int64(v) + out.n = n + return out, nil +} + +var coderSfixed64Ptr = pointerCoderFuncs{ + size: sizeSfixed64Ptr, + marshal: appendSfixed64Ptr, + unmarshal: consumeSfixed64Ptr, + merge: mergeInt64Ptr, +} + +// sizeSfixed64Slice returns the size of wire encoding a []int64 pointer as a repeated Sfixed64. +func sizeSfixed64Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int64Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed64()) + return size +} + +// appendSfixed64Slice encodes a []int64 pointer as a repeated Sfixed64. +func appendSfixed64Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, uint64(v)) + } + return b, nil +} + +// consumeSfixed64Slice wire decodes a []int64 pointer as a repeated Sfixed64. +func consumeSfixed64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Int64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + s = append(s, int64(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, int64(v)) + out.n = n + return out, nil +} + +var coderSfixed64Slice = pointerCoderFuncs{ + size: sizeSfixed64Slice, + marshal: appendSfixed64Slice, + unmarshal: consumeSfixed64Slice, + merge: mergeInt64Slice, +} + +// sizeSfixed64PackedSlice returns the size of wire encoding a []int64 pointer as a packed repeated Sfixed64. +func sizeSfixed64PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Int64Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed64() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendSfixed64PackedSlice encodes a []int64 pointer as a packed repeated Sfixed64. +func appendSfixed64PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Int64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed64(b, uint64(v)) + } + return b, nil +} + +var coderSfixed64PackedSlice = pointerCoderFuncs{ + size: sizeSfixed64PackedSlice, + marshal: appendSfixed64PackedSlice, + unmarshal: consumeSfixed64Slice, + merge: mergeInt64Slice, +} + +// sizeSfixed64Value returns the size of wire encoding a int64 value as a Sfixed64. +func sizeSfixed64Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeFixed64() +} + +// appendSfixed64Value encodes a int64 value as a Sfixed64. +func appendSfixed64Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, uint64(v.Int())) + return b, nil +} + +// consumeSfixed64Value decodes a int64 value as a Sfixed64. +func consumeSfixed64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfInt64(int64(v)), out, nil +} + +var coderSfixed64Value = valueCoderFuncs{ + size: sizeSfixed64Value, + marshal: appendSfixed64Value, + unmarshal: consumeSfixed64Value, + merge: mergeScalarValue, +} + +// sizeSfixed64SliceValue returns the size of wire encoding a []int64 value as a repeated Sfixed64. +func sizeSfixed64SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed64()) + return size +} + +// appendSfixed64SliceValue encodes a []int64 value as a repeated Sfixed64. +func appendSfixed64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, uint64(v.Int())) + } + return b, nil +} + +// consumeSfixed64SliceValue wire decodes a []int64 value as a repeated Sfixed64. +func consumeSfixed64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + out.n = n + return listv, out, nil +} + +var coderSfixed64SliceValue = valueCoderFuncs{ + size: sizeSfixed64SliceValue, + marshal: appendSfixed64SliceValue, + unmarshal: consumeSfixed64SliceValue, + merge: mergeListValue, +} + +// sizeSfixed64PackedSliceValue returns the size of wire encoding a []int64 value as a packed repeated Sfixed64. +func sizeSfixed64PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed64() + return tagsize + protowire.SizeBytes(n) +} + +// appendSfixed64PackedSliceValue encodes a []int64 value as a packed repeated Sfixed64. +func appendSfixed64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed64(b, uint64(v.Int())) + } + return b, nil +} + +var coderSfixed64PackedSliceValue = valueCoderFuncs{ + size: sizeSfixed64PackedSliceValue, + marshal: appendSfixed64PackedSliceValue, + unmarshal: consumeSfixed64SliceValue, + merge: mergeListValue, +} + +// sizeFixed64 returns the size of wire encoding a uint64 pointer as a Fixed64. +func sizeFixed64(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed64() +} + +// appendFixed64 wire encodes a uint64 pointer as a Fixed64. +func appendFixed64(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + return b, nil +} + +// consumeFixed64 wire decodes a uint64 pointer as a Fixed64. +func consumeFixed64(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + *p.Uint64() = v + out.n = n + return out, nil +} + +var coderFixed64 = pointerCoderFuncs{ + size: sizeFixed64, + marshal: appendFixed64, + unmarshal: consumeFixed64, + merge: mergeUint64, +} + +// sizeFixed64NoZero returns the size of wire encoding a uint64 pointer as a Fixed64. +// The zero value is not encoded. +func sizeFixed64NoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Uint64() + if v == 0 { + return 0 + } + return f.tagsize + protowire.SizeFixed64() +} + +// appendFixed64NoZero wire encodes a uint64 pointer as a Fixed64. +// The zero value is not encoded. +func appendFixed64NoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Uint64() + if v == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + return b, nil +} + +var coderFixed64NoZero = pointerCoderFuncs{ + size: sizeFixed64NoZero, + marshal: appendFixed64NoZero, + unmarshal: consumeFixed64, + merge: mergeUint64NoZero, +} + +// sizeFixed64Ptr returns the size of wire encoding a *uint64 pointer as a Fixed64. +// It panics if the pointer is nil. +func sizeFixed64Ptr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed64() +} + +// appendFixed64Ptr wire encodes a *uint64 pointer as a Fixed64. +// It panics if the pointer is nil. +func appendFixed64Ptr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Uint64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + return b, nil +} + +// consumeFixed64Ptr wire decodes a *uint64 pointer as a Fixed64. +func consumeFixed64Ptr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + vp := p.Uint64Ptr() + if *vp == nil { + *vp = new(uint64) + } + **vp = v + out.n = n + return out, nil +} + +var coderFixed64Ptr = pointerCoderFuncs{ + size: sizeFixed64Ptr, + marshal: appendFixed64Ptr, + unmarshal: consumeFixed64Ptr, + merge: mergeUint64Ptr, +} + +// sizeFixed64Slice returns the size of wire encoding a []uint64 pointer as a repeated Fixed64. +func sizeFixed64Slice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint64Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed64()) + return size +} + +// appendFixed64Slice encodes a []uint64 pointer as a repeated Fixed64. +func appendFixed64Slice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, v) + } + return b, nil +} + +// consumeFixed64Slice wire decodes a []uint64 pointer as a repeated Fixed64. +func consumeFixed64Slice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Uint64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + s = append(s, v) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, v) + out.n = n + return out, nil +} + +var coderFixed64Slice = pointerCoderFuncs{ + size: sizeFixed64Slice, + marshal: appendFixed64Slice, + unmarshal: consumeFixed64Slice, + merge: mergeUint64Slice, +} + +// sizeFixed64PackedSlice returns the size of wire encoding a []uint64 pointer as a packed repeated Fixed64. +func sizeFixed64PackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Uint64Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed64() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendFixed64PackedSlice encodes a []uint64 pointer as a packed repeated Fixed64. +func appendFixed64PackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Uint64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed64(b, v) + } + return b, nil +} + +var coderFixed64PackedSlice = pointerCoderFuncs{ + size: sizeFixed64PackedSlice, + marshal: appendFixed64PackedSlice, + unmarshal: consumeFixed64Slice, + merge: mergeUint64Slice, +} + +// sizeFixed64Value returns the size of wire encoding a uint64 value as a Fixed64. +func sizeFixed64Value(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeFixed64() +} + +// appendFixed64Value encodes a uint64 value as a Fixed64. +func appendFixed64Value(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, v.Uint()) + return b, nil +} + +// consumeFixed64Value decodes a uint64 value as a Fixed64. +func consumeFixed64Value(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfUint64(v), out, nil +} + +var coderFixed64Value = valueCoderFuncs{ + size: sizeFixed64Value, + marshal: appendFixed64Value, + unmarshal: consumeFixed64Value, + merge: mergeScalarValue, +} + +// sizeFixed64SliceValue returns the size of wire encoding a []uint64 value as a repeated Fixed64. +func sizeFixed64SliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed64()) + return size +} + +// appendFixed64SliceValue encodes a []uint64 value as a repeated Fixed64. +func appendFixed64SliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, v.Uint()) + } + return b, nil +} + +// consumeFixed64SliceValue wire decodes a []uint64 value as a repeated Fixed64. +func consumeFixed64SliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint64(v)) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfUint64(v)) + out.n = n + return listv, out, nil +} + +var coderFixed64SliceValue = valueCoderFuncs{ + size: sizeFixed64SliceValue, + marshal: appendFixed64SliceValue, + unmarshal: consumeFixed64SliceValue, + merge: mergeListValue, +} + +// sizeFixed64PackedSliceValue returns the size of wire encoding a []uint64 value as a packed repeated Fixed64. +func sizeFixed64PackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed64() + return tagsize + protowire.SizeBytes(n) +} + +// appendFixed64PackedSliceValue encodes a []uint64 value as a packed repeated Fixed64. +func appendFixed64PackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed64(b, v.Uint()) + } + return b, nil +} + +var coderFixed64PackedSliceValue = valueCoderFuncs{ + size: sizeFixed64PackedSliceValue, + marshal: appendFixed64PackedSliceValue, + unmarshal: consumeFixed64SliceValue, + merge: mergeListValue, +} + +// sizeDouble returns the size of wire encoding a float64 pointer as a Double. +func sizeDouble(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + + return f.tagsize + protowire.SizeFixed64() +} + +// appendDouble wire encodes a float64 pointer as a Double. +func appendDouble(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Float64() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + return b, nil +} + +// consumeDouble wire decodes a float64 pointer as a Double. +func consumeDouble(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + *p.Float64() = math.Float64frombits(v) + out.n = n + return out, nil +} + +var coderDouble = pointerCoderFuncs{ + size: sizeDouble, + marshal: appendDouble, + unmarshal: consumeDouble, + merge: mergeFloat64, +} + +// sizeDoubleNoZero returns the size of wire encoding a float64 pointer as a Double. +// The zero value is not encoded. +func sizeDoubleNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Float64() + if v == 0 && !math.Signbit(float64(v)) { + return 0 + } + return f.tagsize + protowire.SizeFixed64() +} + +// appendDoubleNoZero wire encodes a float64 pointer as a Double. +// The zero value is not encoded. +func appendDoubleNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Float64() + if v == 0 && !math.Signbit(float64(v)) { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + return b, nil +} + +var coderDoubleNoZero = pointerCoderFuncs{ + size: sizeDoubleNoZero, + marshal: appendDoubleNoZero, + unmarshal: consumeDouble, + merge: mergeFloat64NoZero, +} + +// sizeDoublePtr returns the size of wire encoding a *float64 pointer as a Double. +// It panics if the pointer is nil. +func sizeDoublePtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return f.tagsize + protowire.SizeFixed64() +} + +// appendDoublePtr wire encodes a *float64 pointer as a Double. +// It panics if the pointer is nil. +func appendDoublePtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.Float64Ptr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + return b, nil +} + +// consumeDoublePtr wire decodes a *float64 pointer as a Double. +func consumeDoublePtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + vp := p.Float64Ptr() + if *vp == nil { + *vp = new(float64) + } + **vp = math.Float64frombits(v) + out.n = n + return out, nil +} + +var coderDoublePtr = pointerCoderFuncs{ + size: sizeDoublePtr, + marshal: appendDoublePtr, + unmarshal: consumeDoublePtr, + merge: mergeFloat64Ptr, +} + +// sizeDoubleSlice returns the size of wire encoding a []float64 pointer as a repeated Double. +func sizeDoubleSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Float64Slice() + size = len(s) * (f.tagsize + protowire.SizeFixed64()) + return size +} + +// appendDoubleSlice encodes a []float64 pointer as a repeated Double. +func appendDoubleSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Float64Slice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v)) + } + return b, nil +} + +// consumeDoubleSlice wire decodes a []float64 pointer as a repeated Double. +func consumeDoubleSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.Float64Slice() + if wtyp == protowire.BytesType { + s := *sp + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + s = append(s, math.Float64frombits(v)) + b = b[n:] + } + *sp = s + out.n = n + return out, nil + } + if wtyp != protowire.Fixed64Type { + return out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, math.Float64frombits(v)) + out.n = n + return out, nil +} + +var coderDoubleSlice = pointerCoderFuncs{ + size: sizeDoubleSlice, + marshal: appendDoubleSlice, + unmarshal: consumeDoubleSlice, + merge: mergeFloat64Slice, +} + +// sizeDoublePackedSlice returns the size of wire encoding a []float64 pointer as a packed repeated Double. +func sizeDoublePackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.Float64Slice() + if len(s) == 0 { + return 0 + } + n := len(s) * protowire.SizeFixed64() + return f.tagsize + protowire.SizeBytes(n) +} + +// appendDoublePackedSlice encodes a []float64 pointer as a packed repeated Double. +func appendDoublePackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.Float64Slice() + if len(s) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := len(s) * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for _, v := range s { + b = protowire.AppendFixed64(b, math.Float64bits(v)) + } + return b, nil +} + +var coderDoublePackedSlice = pointerCoderFuncs{ + size: sizeDoublePackedSlice, + marshal: appendDoublePackedSlice, + unmarshal: consumeDoubleSlice, + merge: mergeFloat64Slice, +} + +// sizeDoubleValue returns the size of wire encoding a float64 value as a Double. +func sizeDoubleValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeFixed64() +} + +// appendDoubleValue encodes a float64 value as a Double. +func appendDoubleValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + return b, nil +} + +// consumeDoubleValue decodes a float64 value as a Double. +func consumeDoubleValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfFloat64(math.Float64frombits(v)), out, nil +} + +var coderDoubleValue = valueCoderFuncs{ + size: sizeDoubleValue, + marshal: appendDoubleValue, + unmarshal: consumeDoubleValue, + merge: mergeScalarValue, +} + +// sizeDoubleSliceValue returns the size of wire encoding a []float64 value as a repeated Double. +func sizeDoubleSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + size = list.Len() * (tagsize + protowire.SizeFixed64()) + return size +} + +// appendDoubleSliceValue encodes a []float64 value as a repeated Double. +func appendDoubleSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + } + return b, nil +} + +// consumeDoubleSliceValue wire decodes a []float64 value as a repeated Double. +func consumeDoubleSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + b = b[n:] + } + out.n = n + return listv, out, nil + } + if wtyp != protowire.Fixed64Type { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + out.n = n + return listv, out, nil +} + +var coderDoubleSliceValue = valueCoderFuncs{ + size: sizeDoubleSliceValue, + marshal: appendDoubleSliceValue, + unmarshal: consumeDoubleSliceValue, + merge: mergeListValue, +} + +// sizeDoublePackedSliceValue returns the size of wire encoding a []float64 value as a packed repeated Double. +func sizeDoublePackedSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return 0 + } + n := llen * protowire.SizeFixed64() + return tagsize + protowire.SizeBytes(n) +} + +// appendDoublePackedSliceValue encodes a []float64 value as a packed repeated Double. +func appendDoublePackedSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + llen := list.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, wiretag) + n := llen * protowire.SizeFixed64() + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + v := list.Get(i) + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + } + return b, nil +} + +var coderDoublePackedSliceValue = valueCoderFuncs{ + size: sizeDoublePackedSliceValue, + marshal: appendDoublePackedSliceValue, + unmarshal: consumeDoubleSliceValue, + merge: mergeListValue, +} + +// sizeString returns the size of wire encoding a string pointer as a String. +func sizeString(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.String() + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendString wire encodes a string pointer as a String. +func appendString(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.String() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + return b, nil +} + +// consumeString wire decodes a string pointer as a String. +func consumeString(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + *p.String() = string(v) + out.n = n + return out, nil +} + +var coderString = pointerCoderFuncs{ + size: sizeString, + marshal: appendString, + unmarshal: consumeString, + merge: mergeString, +} + +// appendStringValidateUTF8 wire encodes a string pointer as a String. +func appendStringValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.String() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeStringValidateUTF8 wire decodes a string pointer as a String. +func consumeStringValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + *p.String() = string(v) + out.n = n + return out, nil +} + +var coderStringValidateUTF8 = pointerCoderFuncs{ + size: sizeString, + marshal: appendStringValidateUTF8, + unmarshal: consumeStringValidateUTF8, + merge: mergeString, +} + +// sizeStringNoZero returns the size of wire encoding a string pointer as a String. +// The zero value is not encoded. +func sizeStringNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.String() + if len(v) == 0 { + return 0 + } + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendStringNoZero wire encodes a string pointer as a String. +// The zero value is not encoded. +func appendStringNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.String() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + return b, nil +} + +var coderStringNoZero = pointerCoderFuncs{ + size: sizeStringNoZero, + marshal: appendStringNoZero, + unmarshal: consumeString, + merge: mergeStringNoZero, +} + +// appendStringNoZeroValidateUTF8 wire encodes a string pointer as a String. +// The zero value is not encoded. +func appendStringNoZeroValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.String() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +var coderStringNoZeroValidateUTF8 = pointerCoderFuncs{ + size: sizeStringNoZero, + marshal: appendStringNoZeroValidateUTF8, + unmarshal: consumeStringValidateUTF8, + merge: mergeStringNoZero, +} + +// sizeStringPtr returns the size of wire encoding a *string pointer as a String. +// It panics if the pointer is nil. +func sizeStringPtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := **p.StringPtr() + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendStringPtr wire encodes a *string pointer as a String. +// It panics if the pointer is nil. +func appendStringPtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.StringPtr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + return b, nil +} + +// consumeStringPtr wire decodes a *string pointer as a String. +func consumeStringPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + vp := p.StringPtr() + if *vp == nil { + *vp = new(string) + } + **vp = string(v) + out.n = n + return out, nil +} + +var coderStringPtr = pointerCoderFuncs{ + size: sizeStringPtr, + marshal: appendStringPtr, + unmarshal: consumeStringPtr, + merge: mergeStringPtr, +} + +// appendStringPtrValidateUTF8 wire encodes a *string pointer as a String. +// It panics if the pointer is nil. +func appendStringPtrValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := **p.StringPtr() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeStringPtrValidateUTF8 wire decodes a *string pointer as a String. +func consumeStringPtrValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + vp := p.StringPtr() + if *vp == nil { + *vp = new(string) + } + **vp = string(v) + out.n = n + return out, nil +} + +var coderStringPtrValidateUTF8 = pointerCoderFuncs{ + size: sizeStringPtr, + marshal: appendStringPtrValidateUTF8, + unmarshal: consumeStringPtrValidateUTF8, + merge: mergeStringPtr, +} + +// sizeStringSlice returns the size of wire encoding a []string pointer as a repeated String. +func sizeStringSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.StringSlice() + for _, v := range s { + size += f.tagsize + protowire.SizeBytes(len(v)) + } + return size +} + +// appendStringSlice encodes a []string pointer as a repeated String. +func appendStringSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.StringSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + } + return b, nil +} + +// consumeStringSlice wire decodes a []string pointer as a repeated String. +func consumeStringSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.StringSlice() + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, string(v)) + out.n = n + return out, nil +} + +var coderStringSlice = pointerCoderFuncs{ + size: sizeStringSlice, + marshal: appendStringSlice, + unmarshal: consumeStringSlice, + merge: mergeStringSlice, +} + +// appendStringSliceValidateUTF8 encodes a []string pointer as a repeated String. +func appendStringSliceValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.StringSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendString(b, v) + if !utf8.ValidString(v) { + return b, errInvalidUTF8{} + } + } + return b, nil +} + +// consumeStringSliceValidateUTF8 wire decodes a []string pointer as a repeated String. +func consumeStringSliceValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + sp := p.StringSlice() + *sp = append(*sp, string(v)) + out.n = n + return out, nil +} + +var coderStringSliceValidateUTF8 = pointerCoderFuncs{ + size: sizeStringSlice, + marshal: appendStringSliceValidateUTF8, + unmarshal: consumeStringSliceValidateUTF8, + merge: mergeStringSlice, +} + +// sizeStringValue returns the size of wire encoding a string value as a String. +func sizeStringValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeBytes(len(v.String())) +} + +// appendStringValue encodes a string value as a String. +func appendStringValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendString(b, v.String()) + return b, nil +} + +// consumeStringValue decodes a string value as a String. +func consumeStringValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfString(string(v)), out, nil +} + +var coderStringValue = valueCoderFuncs{ + size: sizeStringValue, + marshal: appendStringValue, + unmarshal: consumeStringValue, + merge: mergeScalarValue, +} + +// appendStringValueValidateUTF8 encodes a string value as a String. +func appendStringValueValidateUTF8(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendString(b, v.String()) + if !utf8.ValidString(v.String()) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeStringValueValidateUTF8 decodes a string value as a String. +func consumeStringValueValidateUTF8(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + if !utf8.Valid(v) { + return protoreflect.Value{}, out, errInvalidUTF8{} + } + out.n = n + return protoreflect.ValueOfString(string(v)), out, nil +} + +var coderStringValueValidateUTF8 = valueCoderFuncs{ + size: sizeStringValue, + marshal: appendStringValueValidateUTF8, + unmarshal: consumeStringValueValidateUTF8, + merge: mergeScalarValue, +} + +// sizeStringSliceValue returns the size of wire encoding a []string value as a repeated String. +func sizeStringSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeBytes(len(v.String())) + } + return size +} + +// appendStringSliceValue encodes a []string value as a repeated String. +func appendStringSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendString(b, v.String()) + } + return b, nil +} + +// consumeStringSliceValue wire decodes a []string value as a repeated String. +func consumeStringSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfString(string(v))) + out.n = n + return listv, out, nil +} + +var coderStringSliceValue = valueCoderFuncs{ + size: sizeStringSliceValue, + marshal: appendStringSliceValue, + unmarshal: consumeStringSliceValue, + merge: mergeListValue, +} + +// sizeBytes returns the size of wire encoding a []byte pointer as a Bytes. +func sizeBytes(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Bytes() + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendBytes wire encodes a []byte pointer as a Bytes. +func appendBytes(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Bytes() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + return b, nil +} + +// consumeBytes wire decodes a []byte pointer as a Bytes. +func consumeBytes(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + *p.Bytes() = append(emptyBuf[:], v...) + out.n = n + return out, nil +} + +var coderBytes = pointerCoderFuncs{ + size: sizeBytes, + marshal: appendBytes, + unmarshal: consumeBytes, + merge: mergeBytes, +} + +// appendBytesValidateUTF8 wire encodes a []byte pointer as a Bytes. +func appendBytesValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Bytes() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + if !utf8.Valid(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeBytesValidateUTF8 wire decodes a []byte pointer as a Bytes. +func consumeBytesValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + *p.Bytes() = append(emptyBuf[:], v...) + out.n = n + return out, nil +} + +var coderBytesValidateUTF8 = pointerCoderFuncs{ + size: sizeBytes, + marshal: appendBytesValidateUTF8, + unmarshal: consumeBytesValidateUTF8, + merge: mergeBytes, +} + +// sizeBytesNoZero returns the size of wire encoding a []byte pointer as a Bytes. +// The zero value is not encoded. +func sizeBytesNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + v := *p.Bytes() + if len(v) == 0 { + return 0 + } + return f.tagsize + protowire.SizeBytes(len(v)) +} + +// appendBytesNoZero wire encodes a []byte pointer as a Bytes. +// The zero value is not encoded. +func appendBytesNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Bytes() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + return b, nil +} + +// consumeBytesNoZero wire decodes a []byte pointer as a Bytes. +// The zero value is not decoded. +func consumeBytesNoZero(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + *p.Bytes() = append(([]byte)(nil), v...) + out.n = n + return out, nil +} + +var coderBytesNoZero = pointerCoderFuncs{ + size: sizeBytesNoZero, + marshal: appendBytesNoZero, + unmarshal: consumeBytesNoZero, + merge: mergeBytesNoZero, +} + +// appendBytesNoZeroValidateUTF8 wire encodes a []byte pointer as a Bytes. +// The zero value is not encoded. +func appendBytesNoZeroValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := *p.Bytes() + if len(v) == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + if !utf8.Valid(v) { + return b, errInvalidUTF8{} + } + return b, nil +} + +// consumeBytesNoZeroValidateUTF8 wire decodes a []byte pointer as a Bytes. +func consumeBytesNoZeroValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + *p.Bytes() = append(([]byte)(nil), v...) + out.n = n + return out, nil +} + +var coderBytesNoZeroValidateUTF8 = pointerCoderFuncs{ + size: sizeBytesNoZero, + marshal: appendBytesNoZeroValidateUTF8, + unmarshal: consumeBytesNoZeroValidateUTF8, + merge: mergeBytesNoZero, +} + +// sizeBytesSlice returns the size of wire encoding a [][]byte pointer as a repeated Bytes. +func sizeBytesSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := *p.BytesSlice() + for _, v := range s { + size += f.tagsize + protowire.SizeBytes(len(v)) + } + return size +} + +// appendBytesSlice encodes a [][]byte pointer as a repeated Bytes. +func appendBytesSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.BytesSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + } + return b, nil +} + +// consumeBytesSlice wire decodes a [][]byte pointer as a repeated Bytes. +func consumeBytesSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + sp := p.BytesSlice() + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + *sp = append(*sp, append(emptyBuf[:], v...)) + out.n = n + return out, nil +} + +var coderBytesSlice = pointerCoderFuncs{ + size: sizeBytesSlice, + marshal: appendBytesSlice, + unmarshal: consumeBytesSlice, + merge: mergeBytesSlice, +} + +// appendBytesSliceValidateUTF8 encodes a [][]byte pointer as a repeated Bytes. +func appendBytesSliceValidateUTF8(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := *p.BytesSlice() + for _, v := range s { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendBytes(b, v) + if !utf8.Valid(v) { + return b, errInvalidUTF8{} + } + } + return b, nil +} + +// consumeBytesSliceValidateUTF8 wire decodes a [][]byte pointer as a repeated Bytes. +func consumeBytesSliceValidateUTF8(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + if !utf8.Valid(v) { + return out, errInvalidUTF8{} + } + sp := p.BytesSlice() + *sp = append(*sp, append(emptyBuf[:], v...)) + out.n = n + return out, nil +} + +var coderBytesSliceValidateUTF8 = pointerCoderFuncs{ + size: sizeBytesSlice, + marshal: appendBytesSliceValidateUTF8, + unmarshal: consumeBytesSliceValidateUTF8, + merge: mergeBytesSlice, +} + +// sizeBytesValue returns the size of wire encoding a []byte value as a Bytes. +func sizeBytesValue(v protoreflect.Value, tagsize int, opts marshalOptions) int { + return tagsize + protowire.SizeBytes(len(v.Bytes())) +} + +// appendBytesValue encodes a []byte value as a Bytes. +func appendBytesValue(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendBytes(b, v.Bytes()) + return b, nil +} + +// consumeBytesValue decodes a []byte value as a Bytes. +func consumeBytesValue(b []byte, _ protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + out.n = n + return protoreflect.ValueOfBytes(append(emptyBuf[:], v...)), out, nil +} + +var coderBytesValue = valueCoderFuncs{ + size: sizeBytesValue, + marshal: appendBytesValue, + unmarshal: consumeBytesValue, + merge: mergeBytesValue, +} + +// sizeBytesSliceValue returns the size of wire encoding a [][]byte value as a repeated Bytes. +func sizeBytesSliceValue(listv protoreflect.Value, tagsize int, opts marshalOptions) (size int) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + size += tagsize + protowire.SizeBytes(len(v.Bytes())) + } + return size +} + +// appendBytesSliceValue encodes a [][]byte value as a repeated Bytes. +func appendBytesSliceValue(b []byte, listv protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) { + list := listv.List() + for i, llen := 0, list.Len(); i < llen; i++ { + v := list.Get(i) + b = protowire.AppendVarint(b, wiretag) + b = protowire.AppendBytes(b, v.Bytes()) + } + return b, nil +} + +// consumeBytesSliceValue wire decodes a [][]byte value as a repeated Bytes. +func consumeBytesSliceValue(b []byte, listv protoreflect.Value, _ protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (_ protoreflect.Value, out unmarshalOutput, err error) { + list := listv.List() + if wtyp != protowire.BytesType { + return protoreflect.Value{}, out, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return protoreflect.Value{}, out, errDecode + } + list.Append(protoreflect.ValueOfBytes(append(emptyBuf[:], v...))) + out.n = n + return listv, out, nil +} + +var coderBytesSliceValue = valueCoderFuncs{ + size: sizeBytesSliceValue, + marshal: appendBytesSliceValue, + unmarshal: consumeBytesSliceValue, + merge: mergeBytesListValue, +} + +// We append to an empty array rather than a nil []byte to get non-nil zero-length byte slices. +var emptyBuf [0]byte + +var wireTypes = map[protoreflect.Kind]protowire.Type{ + protoreflect.BoolKind: protowire.VarintType, + protoreflect.EnumKind: protowire.VarintType, + protoreflect.Int32Kind: protowire.VarintType, + protoreflect.Sint32Kind: protowire.VarintType, + protoreflect.Uint32Kind: protowire.VarintType, + protoreflect.Int64Kind: protowire.VarintType, + protoreflect.Sint64Kind: protowire.VarintType, + protoreflect.Uint64Kind: protowire.VarintType, + protoreflect.Sfixed32Kind: protowire.Fixed32Type, + protoreflect.Fixed32Kind: protowire.Fixed32Type, + protoreflect.FloatKind: protowire.Fixed32Type, + protoreflect.Sfixed64Kind: protowire.Fixed64Type, + protoreflect.Fixed64Kind: protowire.Fixed64Type, + protoreflect.DoubleKind: protowire.Fixed64Type, + protoreflect.StringKind: protowire.BytesType, + protoreflect.BytesKind: protowire.BytesType, + protoreflect.MessageKind: protowire.BytesType, + protoreflect.GroupKind: protowire.StartGroupType, +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_map.go b/vendor/google.golang.org/protobuf/internal/impl/codec_map.go new file mode 100644 index 0000000..111b9d1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_map.go @@ -0,0 +1,388 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + "sort" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type mapInfo struct { + goType reflect.Type + keyWiretag uint64 + valWiretag uint64 + keyFuncs valueCoderFuncs + valFuncs valueCoderFuncs + keyZero protoreflect.Value + keyKind protoreflect.Kind + conv *mapConverter +} + +func encoderFuncsForMap(fd protoreflect.FieldDescriptor, ft reflect.Type) (valueMessage *MessageInfo, funcs pointerCoderFuncs) { + // TODO: Consider generating specialized map coders. + keyField := fd.MapKey() + valField := fd.MapValue() + keyWiretag := protowire.EncodeTag(1, wireTypes[keyField.Kind()]) + valWiretag := protowire.EncodeTag(2, wireTypes[valField.Kind()]) + keyFuncs := encoderFuncsForValue(keyField) + valFuncs := encoderFuncsForValue(valField) + conv := newMapConverter(ft, fd) + + mapi := &mapInfo{ + goType: ft, + keyWiretag: keyWiretag, + valWiretag: valWiretag, + keyFuncs: keyFuncs, + valFuncs: valFuncs, + keyZero: keyField.Default(), + keyKind: keyField.Kind(), + conv: conv, + } + if valField.Kind() == protoreflect.MessageKind { + valueMessage = getMessageInfo(ft.Elem()) + } + + funcs = pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return sizeMap(p.AsValueOf(ft).Elem(), mapi, f, opts) + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendMap(b, p.AsValueOf(ft).Elem(), mapi, f, opts) + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + mp := p.AsValueOf(ft) + if mp.Elem().IsNil() { + mp.Elem().Set(reflect.MakeMap(mapi.goType)) + } + if f.mi == nil { + return consumeMap(b, mp.Elem(), wtyp, mapi, f, opts) + } else { + return consumeMapOfMessage(b, mp.Elem(), wtyp, mapi, f, opts) + } + }, + } + switch valField.Kind() { + case protoreflect.MessageKind: + funcs.merge = mergeMapOfMessage + case protoreflect.BytesKind: + funcs.merge = mergeMapOfBytes + default: + funcs.merge = mergeMap + } + if valFuncs.isInit != nil { + funcs.isInit = func(p pointer, f *coderFieldInfo) error { + return isInitMap(p.AsValueOf(ft).Elem(), mapi, f) + } + } + return valueMessage, funcs +} + +const ( + mapKeyTagSize = 1 // field 1, tag size 1. + mapValTagSize = 1 // field 2, tag size 2. +) + +func sizeMap(mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) int { + if mapv.Len() == 0 { + return 0 + } + n := 0 + iter := mapRange(mapv) + for iter.Next() { + key := mapi.conv.keyConv.PBValueOf(iter.Key()).MapKey() + keySize := mapi.keyFuncs.size(key.Value(), mapKeyTagSize, opts) + var valSize int + value := mapi.conv.valConv.PBValueOf(iter.Value()) + if f.mi == nil { + valSize = mapi.valFuncs.size(value, mapValTagSize, opts) + } else { + p := pointerOfValue(iter.Value()) + valSize += mapValTagSize + valSize += protowire.SizeBytes(f.mi.sizePointer(p, opts)) + } + n += f.tagsize + protowire.SizeBytes(keySize+valSize) + } + return n +} + +func consumeMap(b []byte, mapv reflect.Value, wtyp protowire.Type, mapi *mapInfo, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + var ( + key = mapi.keyZero + val = mapi.conv.valConv.New() + ) + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return out, errDecode + } + if num > protowire.MaxValidNumber { + return out, errDecode + } + b = b[n:] + err := errUnknown + switch num { + case genid.MapEntry_Key_field_number: + var v protoreflect.Value + var o unmarshalOutput + v, o, err = mapi.keyFuncs.unmarshal(b, key, num, wtyp, opts) + if err != nil { + break + } + key = v + n = o.n + case genid.MapEntry_Value_field_number: + var v protoreflect.Value + var o unmarshalOutput + v, o, err = mapi.valFuncs.unmarshal(b, val, num, wtyp, opts) + if err != nil { + break + } + val = v + n = o.n + } + if err == errUnknown { + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, errDecode + } + } else if err != nil { + return out, err + } + b = b[n:] + } + mapv.SetMapIndex(mapi.conv.keyConv.GoValueOf(key), mapi.conv.valConv.GoValueOf(val)) + out.n = n + return out, nil +} + +func consumeMapOfMessage(b []byte, mapv reflect.Value, wtyp protowire.Type, mapi *mapInfo, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.BytesType { + return out, errUnknown + } + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + var ( + key = mapi.keyZero + val = reflect.New(f.mi.GoReflectType.Elem()) + ) + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return out, errDecode + } + if num > protowire.MaxValidNumber { + return out, errDecode + } + b = b[n:] + err := errUnknown + switch num { + case 1: + var v protoreflect.Value + var o unmarshalOutput + v, o, err = mapi.keyFuncs.unmarshal(b, key, num, wtyp, opts) + if err != nil { + break + } + key = v + n = o.n + case 2: + if wtyp != protowire.BytesType { + break + } + var v []byte + v, n = protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + var o unmarshalOutput + o, err = f.mi.unmarshalPointer(v, pointerOfValue(val), 0, opts) + if o.initialized { + // Consider this map item initialized so long as we see + // an initialized value. + out.initialized = true + } + } + if err == errUnknown { + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, errDecode + } + } else if err != nil { + return out, err + } + b = b[n:] + } + mapv.SetMapIndex(mapi.conv.keyConv.GoValueOf(key), val) + out.n = n + return out, nil +} + +func appendMapItem(b []byte, keyrv, valrv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + if f.mi == nil { + key := mapi.conv.keyConv.PBValueOf(keyrv).MapKey() + val := mapi.conv.valConv.PBValueOf(valrv) + size := 0 + size += mapi.keyFuncs.size(key.Value(), mapKeyTagSize, opts) + size += mapi.valFuncs.size(val, mapValTagSize, opts) + b = protowire.AppendVarint(b, uint64(size)) + b, err := mapi.keyFuncs.marshal(b, key.Value(), mapi.keyWiretag, opts) + if err != nil { + return nil, err + } + return mapi.valFuncs.marshal(b, val, mapi.valWiretag, opts) + } else { + key := mapi.conv.keyConv.PBValueOf(keyrv).MapKey() + val := pointerOfValue(valrv) + valSize := f.mi.sizePointer(val, opts) + size := 0 + size += mapi.keyFuncs.size(key.Value(), mapKeyTagSize, opts) + size += mapValTagSize + protowire.SizeBytes(valSize) + b = protowire.AppendVarint(b, uint64(size)) + b, err := mapi.keyFuncs.marshal(b, key.Value(), mapi.keyWiretag, opts) + if err != nil { + return nil, err + } + b = protowire.AppendVarint(b, mapi.valWiretag) + b = protowire.AppendVarint(b, uint64(valSize)) + return f.mi.marshalAppendPointer(b, val, opts) + } +} + +func appendMap(b []byte, mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + if mapv.Len() == 0 { + return b, nil + } + if opts.Deterministic() { + return appendMapDeterministic(b, mapv, mapi, f, opts) + } + iter := mapRange(mapv) + for iter.Next() { + var err error + b = protowire.AppendVarint(b, f.wiretag) + b, err = appendMapItem(b, iter.Key(), iter.Value(), mapi, f, opts) + if err != nil { + return b, err + } + } + return b, nil +} + +func appendMapDeterministic(b []byte, mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + keys := mapv.MapKeys() + sort.Slice(keys, func(i, j int) bool { + switch keys[i].Kind() { + case reflect.Bool: + return !keys[i].Bool() && keys[j].Bool() + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return keys[i].Int() < keys[j].Int() + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return keys[i].Uint() < keys[j].Uint() + case reflect.Float32, reflect.Float64: + return keys[i].Float() < keys[j].Float() + case reflect.String: + return keys[i].String() < keys[j].String() + default: + panic("invalid kind: " + keys[i].Kind().String()) + } + }) + for _, key := range keys { + var err error + b = protowire.AppendVarint(b, f.wiretag) + b, err = appendMapItem(b, key, mapv.MapIndex(key), mapi, f, opts) + if err != nil { + return b, err + } + } + return b, nil +} + +func isInitMap(mapv reflect.Value, mapi *mapInfo, f *coderFieldInfo) error { + if mi := f.mi; mi != nil { + mi.init() + if !mi.needsInitCheck { + return nil + } + iter := mapRange(mapv) + for iter.Next() { + val := pointerOfValue(iter.Value()) + if err := mi.checkInitializedPointer(val); err != nil { + return err + } + } + } else { + iter := mapRange(mapv) + for iter.Next() { + val := mapi.conv.valConv.PBValueOf(iter.Value()) + if err := mapi.valFuncs.isInit(val); err != nil { + return err + } + } + } + return nil +} + +func mergeMap(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + dstm := dst.AsValueOf(f.ft).Elem() + srcm := src.AsValueOf(f.ft).Elem() + if srcm.Len() == 0 { + return + } + if dstm.IsNil() { + dstm.Set(reflect.MakeMap(f.ft)) + } + iter := mapRange(srcm) + for iter.Next() { + dstm.SetMapIndex(iter.Key(), iter.Value()) + } +} + +func mergeMapOfBytes(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + dstm := dst.AsValueOf(f.ft).Elem() + srcm := src.AsValueOf(f.ft).Elem() + if srcm.Len() == 0 { + return + } + if dstm.IsNil() { + dstm.Set(reflect.MakeMap(f.ft)) + } + iter := mapRange(srcm) + for iter.Next() { + dstm.SetMapIndex(iter.Key(), reflect.ValueOf(append(emptyBuf[:], iter.Value().Bytes()...))) + } +} + +func mergeMapOfMessage(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + dstm := dst.AsValueOf(f.ft).Elem() + srcm := src.AsValueOf(f.ft).Elem() + if srcm.Len() == 0 { + return + } + if dstm.IsNil() { + dstm.Set(reflect.MakeMap(f.ft)) + } + iter := mapRange(srcm) + for iter.Next() { + val := reflect.New(f.ft.Elem().Elem()) + if f.mi != nil { + f.mi.mergePointer(pointerOfValue(val), pointerOfValue(iter.Value()), opts) + } else { + opts.Merge(asMessage(val), asMessage(iter.Value())) + } + dstm.SetMapIndex(iter.Key(), val) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go new file mode 100644 index 0000000..4b15493 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go111.go @@ -0,0 +1,38 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !go1.12 +// +build !go1.12 + +package impl + +import "reflect" + +type mapIter struct { + v reflect.Value + keys []reflect.Value +} + +// mapRange provides a less-efficient equivalent to +// the Go 1.12 reflect.Value.MapRange method. +func mapRange(v reflect.Value) *mapIter { + return &mapIter{v: v} +} + +func (i *mapIter) Next() bool { + if i.keys == nil { + i.keys = i.v.MapKeys() + } else { + i.keys = i.keys[1:] + } + return len(i.keys) > 0 +} + +func (i *mapIter) Key() reflect.Value { + return i.keys[0] +} + +func (i *mapIter) Value() reflect.Value { + return i.v.MapIndex(i.keys[0]) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go new file mode 100644 index 0000000..0b31b66 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go @@ -0,0 +1,12 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.12 +// +build go1.12 + +package impl + +import "reflect" + +func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_message.go b/vendor/google.golang.org/protobuf/internal/impl/codec_message.go new file mode 100644 index 0000000..6b2fdbb --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_message.go @@ -0,0 +1,217 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "sort" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// coderMessageInfo contains per-message information used by the fast-path functions. +// This is a different type from MessageInfo to keep MessageInfo as general-purpose as +// possible. +type coderMessageInfo struct { + methods protoiface.Methods + + orderedCoderFields []*coderFieldInfo + denseCoderFields []*coderFieldInfo + coderFields map[protowire.Number]*coderFieldInfo + sizecacheOffset offset + unknownOffset offset + unknownPtrKind bool + extensionOffset offset + needsInitCheck bool + isMessageSet bool + numRequiredFields uint8 +} + +type coderFieldInfo struct { + funcs pointerCoderFuncs // fast-path per-field functions + mi *MessageInfo // field's message + ft reflect.Type + validation validationInfo // information used by message validation + num protoreflect.FieldNumber // field number + offset offset // struct field offset + wiretag uint64 // field tag (number + wire type) + tagsize int // size of the varint-encoded tag + isPointer bool // true if IsNil may be called on the struct field + isRequired bool // true if field is required +} + +func (mi *MessageInfo) makeCoderMethods(t reflect.Type, si structInfo) { + mi.sizecacheOffset = invalidOffset + mi.unknownOffset = invalidOffset + mi.extensionOffset = invalidOffset + + if si.sizecacheOffset.IsValid() && si.sizecacheType == sizecacheType { + mi.sizecacheOffset = si.sizecacheOffset + } + if si.unknownOffset.IsValid() && (si.unknownType == unknownFieldsAType || si.unknownType == unknownFieldsBType) { + mi.unknownOffset = si.unknownOffset + mi.unknownPtrKind = si.unknownType.Kind() == reflect.Ptr + } + if si.extensionOffset.IsValid() && si.extensionType == extensionFieldsType { + mi.extensionOffset = si.extensionOffset + } + + mi.coderFields = make(map[protowire.Number]*coderFieldInfo) + fields := mi.Desc.Fields() + preallocFields := make([]coderFieldInfo, fields.Len()) + for i := 0; i < fields.Len(); i++ { + fd := fields.Get(i) + + fs := si.fieldsByNumber[fd.Number()] + isOneof := fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic() + if isOneof { + fs = si.oneofsByName[fd.ContainingOneof().Name()] + } + ft := fs.Type + var wiretag uint64 + if !fd.IsPacked() { + wiretag = protowire.EncodeTag(fd.Number(), wireTypes[fd.Kind()]) + } else { + wiretag = protowire.EncodeTag(fd.Number(), protowire.BytesType) + } + var fieldOffset offset + var funcs pointerCoderFuncs + var childMessage *MessageInfo + switch { + case ft == nil: + // This never occurs for generated message types. + // It implies that a hand-crafted type has missing Go fields + // for specific protobuf message fields. + funcs = pointerCoderFuncs{ + size: func(p pointer, f *coderFieldInfo, opts marshalOptions) int { + return 0 + }, + marshal: func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return nil, nil + }, + unmarshal: func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) { + panic("missing Go struct field for " + string(fd.FullName())) + }, + isInit: func(p pointer, f *coderFieldInfo) error { + panic("missing Go struct field for " + string(fd.FullName())) + }, + merge: func(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + panic("missing Go struct field for " + string(fd.FullName())) + }, + } + case isOneof: + fieldOffset = offsetOf(fs, mi.Exporter) + case fd.IsWeak(): + fieldOffset = si.weakOffset + funcs = makeWeakMessageFieldCoder(fd) + default: + fieldOffset = offsetOf(fs, mi.Exporter) + childMessage, funcs = fieldCoder(fd, ft) + } + cf := &preallocFields[i] + *cf = coderFieldInfo{ + num: fd.Number(), + offset: fieldOffset, + wiretag: wiretag, + ft: ft, + tagsize: protowire.SizeVarint(wiretag), + funcs: funcs, + mi: childMessage, + validation: newFieldValidationInfo(mi, si, fd, ft), + isPointer: fd.Cardinality() == protoreflect.Repeated || fd.HasPresence(), + isRequired: fd.Cardinality() == protoreflect.Required, + } + mi.orderedCoderFields = append(mi.orderedCoderFields, cf) + mi.coderFields[cf.num] = cf + } + for i, oneofs := 0, mi.Desc.Oneofs(); i < oneofs.Len(); i++ { + if od := oneofs.Get(i); !od.IsSynthetic() { + mi.initOneofFieldCoders(od, si) + } + } + if messageset.IsMessageSet(mi.Desc) { + if !mi.extensionOffset.IsValid() { + panic(fmt.Sprintf("%v: MessageSet with no extensions field", mi.Desc.FullName())) + } + if !mi.unknownOffset.IsValid() { + panic(fmt.Sprintf("%v: MessageSet with no unknown field", mi.Desc.FullName())) + } + mi.isMessageSet = true + } + sort.Slice(mi.orderedCoderFields, func(i, j int) bool { + return mi.orderedCoderFields[i].num < mi.orderedCoderFields[j].num + }) + + var maxDense protoreflect.FieldNumber + for _, cf := range mi.orderedCoderFields { + if cf.num >= 16 && cf.num >= 2*maxDense { + break + } + maxDense = cf.num + } + mi.denseCoderFields = make([]*coderFieldInfo, maxDense+1) + for _, cf := range mi.orderedCoderFields { + if int(cf.num) >= len(mi.denseCoderFields) { + break + } + mi.denseCoderFields[cf.num] = cf + } + + // To preserve compatibility with historic wire output, marshal oneofs last. + if mi.Desc.Oneofs().Len() > 0 { + sort.Slice(mi.orderedCoderFields, func(i, j int) bool { + fi := fields.ByNumber(mi.orderedCoderFields[i].num) + fj := fields.ByNumber(mi.orderedCoderFields[j].num) + return order.LegacyFieldOrder(fi, fj) + }) + } + + mi.needsInitCheck = needsInitCheck(mi.Desc) + if mi.methods.Marshal == nil && mi.methods.Size == nil { + mi.methods.Flags |= protoiface.SupportMarshalDeterministic + mi.methods.Marshal = mi.marshal + mi.methods.Size = mi.size + } + if mi.methods.Unmarshal == nil { + mi.methods.Flags |= protoiface.SupportUnmarshalDiscardUnknown + mi.methods.Unmarshal = mi.unmarshal + } + if mi.methods.CheckInitialized == nil { + mi.methods.CheckInitialized = mi.checkInitialized + } + if mi.methods.Merge == nil { + mi.methods.Merge = mi.merge + } +} + +// getUnknownBytes returns a *[]byte for the unknown fields. +// It is the caller's responsibility to check whether the pointer is nil. +// This function is specially designed to be inlineable. +func (mi *MessageInfo) getUnknownBytes(p pointer) *[]byte { + if mi.unknownPtrKind { + return *p.Apply(mi.unknownOffset).BytesPtr() + } else { + return p.Apply(mi.unknownOffset).Bytes() + } +} + +// mutableUnknownBytes returns a *[]byte for the unknown fields. +// The returned pointer is guaranteed to not be nil. +func (mi *MessageInfo) mutableUnknownBytes(p pointer) *[]byte { + if mi.unknownPtrKind { + bp := p.Apply(mi.unknownOffset).BytesPtr() + if *bp == nil { + *bp = new([]byte) + } + return *bp + } else { + return p.Apply(mi.unknownOffset).Bytes() + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go b/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go new file mode 100644 index 0000000..b7a23fa --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go @@ -0,0 +1,123 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "sort" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" +) + +func sizeMessageSet(mi *MessageInfo, p pointer, opts marshalOptions) (size int) { + if !flags.ProtoLegacy { + return 0 + } + + ext := *p.Apply(mi.extensionOffset).Extensions() + for _, x := range ext { + xi := getExtensionFieldInfo(x.Type()) + if xi.funcs.size == nil { + continue + } + num, _ := protowire.DecodeTag(xi.wiretag) + size += messageset.SizeField(num) + size += xi.funcs.size(x.Value(), protowire.SizeTag(messageset.FieldMessage), opts) + } + + if u := mi.getUnknownBytes(p); u != nil { + size += messageset.SizeUnknown(*u) + } + + return size +} + +func marshalMessageSet(mi *MessageInfo, b []byte, p pointer, opts marshalOptions) ([]byte, error) { + if !flags.ProtoLegacy { + return b, errors.New("no support for message_set_wire_format") + } + + ext := *p.Apply(mi.extensionOffset).Extensions() + switch len(ext) { + case 0: + case 1: + // Fast-path for one extension: Don't bother sorting the keys. + for _, x := range ext { + var err error + b, err = marshalMessageSetField(mi, b, x, opts) + if err != nil { + return b, err + } + } + default: + // Sort the keys to provide a deterministic encoding. + // Not sure this is required, but the old code does it. + keys := make([]int, 0, len(ext)) + for k := range ext { + keys = append(keys, int(k)) + } + sort.Ints(keys) + for _, k := range keys { + var err error + b, err = marshalMessageSetField(mi, b, ext[int32(k)], opts) + if err != nil { + return b, err + } + } + } + + if u := mi.getUnknownBytes(p); u != nil { + var err error + b, err = messageset.AppendUnknown(b, *u) + if err != nil { + return b, err + } + } + + return b, nil +} + +func marshalMessageSetField(mi *MessageInfo, b []byte, x ExtensionField, opts marshalOptions) ([]byte, error) { + xi := getExtensionFieldInfo(x.Type()) + num, _ := protowire.DecodeTag(xi.wiretag) + b = messageset.AppendFieldStart(b, num) + b, err := xi.funcs.marshal(b, x.Value(), protowire.EncodeTag(messageset.FieldMessage, protowire.BytesType), opts) + if err != nil { + return b, err + } + b = messageset.AppendFieldEnd(b) + return b, nil +} + +func unmarshalMessageSet(mi *MessageInfo, b []byte, p pointer, opts unmarshalOptions) (out unmarshalOutput, err error) { + if !flags.ProtoLegacy { + return out, errors.New("no support for message_set_wire_format") + } + + ep := p.Apply(mi.extensionOffset).Extensions() + if *ep == nil { + *ep = make(map[int32]ExtensionField) + } + ext := *ep + initialized := true + err = messageset.Unmarshal(b, true, func(num protowire.Number, v []byte) error { + o, err := mi.unmarshalExtension(v, num, protowire.BytesType, ext, opts) + if err == errUnknown { + u := mi.mutableUnknownBytes(p) + *u = protowire.AppendTag(*u, num, protowire.BytesType) + *u = append(*u, v...) + return nil + } + if !o.initialized { + initialized = false + } + return err + }) + out.n = len(b) + out.initialized = initialized + return out, err +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go new file mode 100644 index 0000000..145c577 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go @@ -0,0 +1,210 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build purego || appengine +// +build purego appengine + +package impl + +import ( + "reflect" + + "google.golang.org/protobuf/encoding/protowire" +) + +func sizeEnum(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { + v := p.v.Elem().Int() + return f.tagsize + protowire.SizeVarint(uint64(v)) +} + +func appendEnum(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + v := p.v.Elem().Int() + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(v)) + return b, nil +} + +func consumeEnum(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return out, errDecode + } + p.v.Elem().SetInt(int64(v)) + out.n = n + return out, nil +} + +func mergeEnum(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + dst.v.Elem().Set(src.v.Elem()) +} + +var coderEnum = pointerCoderFuncs{ + size: sizeEnum, + marshal: appendEnum, + unmarshal: consumeEnum, + merge: mergeEnum, +} + +func sizeEnumNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + if p.v.Elem().Int() == 0 { + return 0 + } + return sizeEnum(p, f, opts) +} + +func appendEnumNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + if p.v.Elem().Int() == 0 { + return b, nil + } + return appendEnum(b, p, f, opts) +} + +func mergeEnumNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + if src.v.Elem().Int() != 0 { + dst.v.Elem().Set(src.v.Elem()) + } +} + +var coderEnumNoZero = pointerCoderFuncs{ + size: sizeEnumNoZero, + marshal: appendEnumNoZero, + unmarshal: consumeEnum, + merge: mergeEnumNoZero, +} + +func sizeEnumPtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + return sizeEnum(pointer{p.v.Elem()}, f, opts) +} + +func appendEnumPtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + return appendEnum(b, pointer{p.v.Elem()}, f, opts) +} + +func consumeEnumPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + if wtyp != protowire.VarintType { + return out, errUnknown + } + if p.v.Elem().IsNil() { + p.v.Elem().Set(reflect.New(p.v.Elem().Type().Elem())) + } + return consumeEnum(b, pointer{p.v.Elem()}, wtyp, f, opts) +} + +func mergeEnumPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + if !src.v.Elem().IsNil() { + v := reflect.New(dst.v.Type().Elem().Elem()) + v.Elem().Set(src.v.Elem().Elem()) + dst.v.Elem().Set(v) + } +} + +var coderEnumPtr = pointerCoderFuncs{ + size: sizeEnumPtr, + marshal: appendEnumPtr, + unmarshal: consumeEnumPtr, + merge: mergeEnumPtr, +} + +func sizeEnumSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := p.v.Elem() + for i, llen := 0, s.Len(); i < llen; i++ { + size += protowire.SizeVarint(uint64(s.Index(i).Int())) + f.tagsize + } + return size +} + +func appendEnumSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.v.Elem() + for i, llen := 0, s.Len(); i < llen; i++ { + b = protowire.AppendVarint(b, f.wiretag) + b = protowire.AppendVarint(b, uint64(s.Index(i).Int())) + } + return b, nil +} + +func consumeEnumSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { + s := p.v.Elem() + if wtyp == protowire.BytesType { + b, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, errDecode + } + for len(b) > 0 { + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return out, errDecode + } + rv := reflect.New(s.Type().Elem()).Elem() + rv.SetInt(int64(v)) + s.Set(reflect.Append(s, rv)) + b = b[n:] + } + out.n = n + return out, nil + } + if wtyp != protowire.VarintType { + return out, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return out, errDecode + } + rv := reflect.New(s.Type().Elem()).Elem() + rv.SetInt(int64(v)) + s.Set(reflect.Append(s, rv)) + out.n = n + return out, nil +} + +func mergeEnumSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + dst.v.Elem().Set(reflect.AppendSlice(dst.v.Elem(), src.v.Elem())) +} + +var coderEnumSlice = pointerCoderFuncs{ + size: sizeEnumSlice, + marshal: appendEnumSlice, + unmarshal: consumeEnumSlice, + merge: mergeEnumSlice, +} + +func sizeEnumPackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { + s := p.v.Elem() + llen := s.Len() + if llen == 0 { + return 0 + } + n := 0 + for i := 0; i < llen; i++ { + n += protowire.SizeVarint(uint64(s.Index(i).Int())) + } + return f.tagsize + protowire.SizeBytes(n) +} + +func appendEnumPackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { + s := p.v.Elem() + llen := s.Len() + if llen == 0 { + return b, nil + } + b = protowire.AppendVarint(b, f.wiretag) + n := 0 + for i := 0; i < llen; i++ { + n += protowire.SizeVarint(uint64(s.Index(i).Int())) + } + b = protowire.AppendVarint(b, uint64(n)) + for i := 0; i < llen; i++ { + b = protowire.AppendVarint(b, uint64(s.Index(i).Int())) + } + return b, nil +} + +var coderEnumPackedSlice = pointerCoderFuncs{ + size: sizeEnumPackedSlice, + marshal: appendEnumPackedSlice, + unmarshal: consumeEnumSlice, + merge: mergeEnumSlice, +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go b/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go new file mode 100644 index 0000000..576dcf3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_tables.go @@ -0,0 +1,557 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// pointerCoderFuncs is a set of pointer encoding functions. +type pointerCoderFuncs struct { + mi *MessageInfo + size func(p pointer, f *coderFieldInfo, opts marshalOptions) int + marshal func(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) + unmarshal func(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (unmarshalOutput, error) + isInit func(p pointer, f *coderFieldInfo) error + merge func(dst, src pointer, f *coderFieldInfo, opts mergeOptions) +} + +// valueCoderFuncs is a set of protoreflect.Value encoding functions. +type valueCoderFuncs struct { + size func(v protoreflect.Value, tagsize int, opts marshalOptions) int + marshal func(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) + unmarshal func(b []byte, v protoreflect.Value, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (protoreflect.Value, unmarshalOutput, error) + isInit func(v protoreflect.Value) error + merge func(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value +} + +// fieldCoder returns pointer functions for a field, used for operating on +// struct fields. +func fieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) (*MessageInfo, pointerCoderFuncs) { + switch { + case fd.IsMap(): + return encoderFuncsForMap(fd, ft) + case fd.Cardinality() == protoreflect.Repeated && !fd.IsPacked(): + // Repeated fields (not packed). + if ft.Kind() != reflect.Slice { + break + } + ft := ft.Elem() + switch fd.Kind() { + case protoreflect.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolSlice + } + case protoreflect.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumSlice + } + case protoreflect.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32Slice + } + case protoreflect.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32Slice + } + case protoreflect.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32Slice + } + case protoreflect.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64Slice + } + case protoreflect.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64Slice + } + case protoreflect.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64Slice + } + case protoreflect.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32Slice + } + case protoreflect.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32Slice + } + case protoreflect.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatSlice + } + case protoreflect.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64Slice + } + case protoreflect.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64Slice + } + case protoreflect.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoubleSlice + } + case protoreflect.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringSliceValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderStringSlice + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) { + return nil, coderBytesSliceValidateUTF8 + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesSlice + } + case protoreflect.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderStringSlice + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesSlice + } + case protoreflect.MessageKind: + return getMessageInfo(ft), makeMessageSliceFieldCoder(fd, ft) + case protoreflect.GroupKind: + return getMessageInfo(ft), makeGroupSliceFieldCoder(fd, ft) + } + case fd.Cardinality() == protoreflect.Repeated && fd.IsPacked(): + // Packed repeated fields. + // + // Only repeated fields of primitive numeric types + // (Varint, Fixed32, or Fixed64 wire type) can be packed. + if ft.Kind() != reflect.Slice { + break + } + ft := ft.Elem() + switch fd.Kind() { + case protoreflect.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolPackedSlice + } + case protoreflect.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumPackedSlice + } + case protoreflect.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32PackedSlice + } + case protoreflect.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32PackedSlice + } + case protoreflect.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32PackedSlice + } + case protoreflect.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64PackedSlice + } + case protoreflect.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64PackedSlice + } + case protoreflect.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64PackedSlice + } + case protoreflect.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32PackedSlice + } + case protoreflect.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32PackedSlice + } + case protoreflect.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatPackedSlice + } + case protoreflect.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64PackedSlice + } + case protoreflect.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64PackedSlice + } + case protoreflect.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoublePackedSlice + } + } + case fd.Kind() == protoreflect.MessageKind: + return getMessageInfo(ft), makeMessageFieldCoder(fd, ft) + case fd.Kind() == protoreflect.GroupKind: + return getMessageInfo(ft), makeGroupFieldCoder(fd, ft) + case fd.Syntax() == protoreflect.Proto3 && fd.ContainingOneof() == nil: + // Populated oneof fields always encode even if set to the zero value, + // which normally are not encoded in proto3. + switch fd.Kind() { + case protoreflect.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolNoZero + } + case protoreflect.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumNoZero + } + case protoreflect.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32NoZero + } + case protoreflect.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32NoZero + } + case protoreflect.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32NoZero + } + case protoreflect.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64NoZero + } + case protoreflect.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64NoZero + } + case protoreflect.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64NoZero + } + case protoreflect.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32NoZero + } + case protoreflect.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32NoZero + } + case protoreflect.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatNoZero + } + case protoreflect.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64NoZero + } + case protoreflect.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64NoZero + } + case protoreflect.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoubleNoZero + } + case protoreflect.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringNoZeroValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderStringNoZero + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) { + return nil, coderBytesNoZeroValidateUTF8 + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesNoZero + } + case protoreflect.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderStringNoZero + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytesNoZero + } + } + case ft.Kind() == reflect.Ptr: + ft := ft.Elem() + switch fd.Kind() { + case protoreflect.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBoolPtr + } + case protoreflect.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnumPtr + } + case protoreflect.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32Ptr + } + case protoreflect.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32Ptr + } + case protoreflect.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32Ptr + } + case protoreflect.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64Ptr + } + case protoreflect.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64Ptr + } + case protoreflect.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64Ptr + } + case protoreflect.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32Ptr + } + case protoreflect.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32Ptr + } + case protoreflect.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloatPtr + } + case protoreflect.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64Ptr + } + case protoreflect.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64Ptr + } + case protoreflect.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDoublePtr + } + case protoreflect.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringPtrValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderStringPtr + } + case protoreflect.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderStringPtr + } + } + default: + switch fd.Kind() { + case protoreflect.BoolKind: + if ft.Kind() == reflect.Bool { + return nil, coderBool + } + case protoreflect.EnumKind: + if ft.Kind() == reflect.Int32 { + return nil, coderEnum + } + case protoreflect.Int32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderInt32 + } + case protoreflect.Sint32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSint32 + } + case protoreflect.Uint32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderUint32 + } + case protoreflect.Int64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderInt64 + } + case protoreflect.Sint64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSint64 + } + case protoreflect.Uint64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderUint64 + } + case protoreflect.Sfixed32Kind: + if ft.Kind() == reflect.Int32 { + return nil, coderSfixed32 + } + case protoreflect.Fixed32Kind: + if ft.Kind() == reflect.Uint32 { + return nil, coderFixed32 + } + case protoreflect.FloatKind: + if ft.Kind() == reflect.Float32 { + return nil, coderFloat + } + case protoreflect.Sfixed64Kind: + if ft.Kind() == reflect.Int64 { + return nil, coderSfixed64 + } + case protoreflect.Fixed64Kind: + if ft.Kind() == reflect.Uint64 { + return nil, coderFixed64 + } + case protoreflect.DoubleKind: + if ft.Kind() == reflect.Float64 { + return nil, coderDouble + } + case protoreflect.StringKind: + if ft.Kind() == reflect.String && strs.EnforceUTF8(fd) { + return nil, coderStringValidateUTF8 + } + if ft.Kind() == reflect.String { + return nil, coderString + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 && strs.EnforceUTF8(fd) { + return nil, coderBytesValidateUTF8 + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytes + } + case protoreflect.BytesKind: + if ft.Kind() == reflect.String { + return nil, coderString + } + if ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 { + return nil, coderBytes + } + } + } + panic(fmt.Sprintf("invalid type: no encoder for %v %v %v/%v", fd.FullName(), fd.Cardinality(), fd.Kind(), ft)) +} + +// encoderFuncsForValue returns value functions for a field, used for +// extension values and map encoding. +func encoderFuncsForValue(fd protoreflect.FieldDescriptor) valueCoderFuncs { + switch { + case fd.Cardinality() == protoreflect.Repeated && !fd.IsPacked(): + switch fd.Kind() { + case protoreflect.BoolKind: + return coderBoolSliceValue + case protoreflect.EnumKind: + return coderEnumSliceValue + case protoreflect.Int32Kind: + return coderInt32SliceValue + case protoreflect.Sint32Kind: + return coderSint32SliceValue + case protoreflect.Uint32Kind: + return coderUint32SliceValue + case protoreflect.Int64Kind: + return coderInt64SliceValue + case protoreflect.Sint64Kind: + return coderSint64SliceValue + case protoreflect.Uint64Kind: + return coderUint64SliceValue + case protoreflect.Sfixed32Kind: + return coderSfixed32SliceValue + case protoreflect.Fixed32Kind: + return coderFixed32SliceValue + case protoreflect.FloatKind: + return coderFloatSliceValue + case protoreflect.Sfixed64Kind: + return coderSfixed64SliceValue + case protoreflect.Fixed64Kind: + return coderFixed64SliceValue + case protoreflect.DoubleKind: + return coderDoubleSliceValue + case protoreflect.StringKind: + // We don't have a UTF-8 validating coder for repeated string fields. + // Value coders are used for extensions and maps. + // Extensions are never proto3, and maps never contain lists. + return coderStringSliceValue + case protoreflect.BytesKind: + return coderBytesSliceValue + case protoreflect.MessageKind: + return coderMessageSliceValue + case protoreflect.GroupKind: + return coderGroupSliceValue + } + case fd.Cardinality() == protoreflect.Repeated && fd.IsPacked(): + switch fd.Kind() { + case protoreflect.BoolKind: + return coderBoolPackedSliceValue + case protoreflect.EnumKind: + return coderEnumPackedSliceValue + case protoreflect.Int32Kind: + return coderInt32PackedSliceValue + case protoreflect.Sint32Kind: + return coderSint32PackedSliceValue + case protoreflect.Uint32Kind: + return coderUint32PackedSliceValue + case protoreflect.Int64Kind: + return coderInt64PackedSliceValue + case protoreflect.Sint64Kind: + return coderSint64PackedSliceValue + case protoreflect.Uint64Kind: + return coderUint64PackedSliceValue + case protoreflect.Sfixed32Kind: + return coderSfixed32PackedSliceValue + case protoreflect.Fixed32Kind: + return coderFixed32PackedSliceValue + case protoreflect.FloatKind: + return coderFloatPackedSliceValue + case protoreflect.Sfixed64Kind: + return coderSfixed64PackedSliceValue + case protoreflect.Fixed64Kind: + return coderFixed64PackedSliceValue + case protoreflect.DoubleKind: + return coderDoublePackedSliceValue + } + default: + switch fd.Kind() { + default: + case protoreflect.BoolKind: + return coderBoolValue + case protoreflect.EnumKind: + return coderEnumValue + case protoreflect.Int32Kind: + return coderInt32Value + case protoreflect.Sint32Kind: + return coderSint32Value + case protoreflect.Uint32Kind: + return coderUint32Value + case protoreflect.Int64Kind: + return coderInt64Value + case protoreflect.Sint64Kind: + return coderSint64Value + case protoreflect.Uint64Kind: + return coderUint64Value + case protoreflect.Sfixed32Kind: + return coderSfixed32Value + case protoreflect.Fixed32Kind: + return coderFixed32Value + case protoreflect.FloatKind: + return coderFloatValue + case protoreflect.Sfixed64Kind: + return coderSfixed64Value + case protoreflect.Fixed64Kind: + return coderFixed64Value + case protoreflect.DoubleKind: + return coderDoubleValue + case protoreflect.StringKind: + if strs.EnforceUTF8(fd) { + return coderStringValueValidateUTF8 + } + return coderStringValue + case protoreflect.BytesKind: + return coderBytesValue + case protoreflect.MessageKind: + return coderMessageValue + case protoreflect.GroupKind: + return coderGroupValue + } + } + panic(fmt.Sprintf("invalid field: no encoder for %v %v %v", fd.FullName(), fd.Cardinality(), fd.Kind())) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go b/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go new file mode 100644 index 0000000..757642e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go @@ -0,0 +1,18 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !purego && !appengine +// +build !purego,!appengine + +package impl + +// When using unsafe pointers, we can just treat enum values as int32s. + +var ( + coderEnumNoZero = coderInt32NoZero + coderEnum = coderInt32 + coderEnumPtr = coderInt32Ptr + coderEnumSlice = coderInt32Slice + coderEnumPackedSlice = coderInt32PackedSlice +) diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert.go b/vendor/google.golang.org/protobuf/internal/impl/convert.go new file mode 100644 index 0000000..185ef2e --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/convert.go @@ -0,0 +1,495 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +// unwrapper unwraps the value to the underlying value. +// This is implemented by List and Map. +type unwrapper interface { + protoUnwrap() interface{} +} + +// A Converter coverts to/from Go reflect.Value types and protobuf protoreflect.Value types. +type Converter interface { + // PBValueOf converts a reflect.Value to a protoreflect.Value. + PBValueOf(reflect.Value) protoreflect.Value + + // GoValueOf converts a protoreflect.Value to a reflect.Value. + GoValueOf(protoreflect.Value) reflect.Value + + // IsValidPB returns whether a protoreflect.Value is compatible with this type. + IsValidPB(protoreflect.Value) bool + + // IsValidGo returns whether a reflect.Value is compatible with this type. + IsValidGo(reflect.Value) bool + + // New returns a new field value. + // For scalars, it returns the default value of the field. + // For composite types, it returns a new mutable value. + New() protoreflect.Value + + // Zero returns a new field value. + // For scalars, it returns the default value of the field. + // For composite types, it returns an immutable, empty value. + Zero() protoreflect.Value +} + +// NewConverter matches a Go type with a protobuf field and returns a Converter +// that converts between the two. Enums must be a named int32 kind that +// implements protoreflect.Enum, and messages must be pointer to a named +// struct type that implements protoreflect.ProtoMessage. +// +// This matcher deliberately supports a wider range of Go types than what +// protoc-gen-go historically generated to be able to automatically wrap some +// v1 messages generated by other forks of protoc-gen-go. +func NewConverter(t reflect.Type, fd protoreflect.FieldDescriptor) Converter { + switch { + case fd.IsList(): + return newListConverter(t, fd) + case fd.IsMap(): + return newMapConverter(t, fd) + default: + return newSingularConverter(t, fd) + } +} + +var ( + boolType = reflect.TypeOf(bool(false)) + int32Type = reflect.TypeOf(int32(0)) + int64Type = reflect.TypeOf(int64(0)) + uint32Type = reflect.TypeOf(uint32(0)) + uint64Type = reflect.TypeOf(uint64(0)) + float32Type = reflect.TypeOf(float32(0)) + float64Type = reflect.TypeOf(float64(0)) + stringType = reflect.TypeOf(string("")) + bytesType = reflect.TypeOf([]byte(nil)) + byteType = reflect.TypeOf(byte(0)) +) + +var ( + boolZero = protoreflect.ValueOfBool(false) + int32Zero = protoreflect.ValueOfInt32(0) + int64Zero = protoreflect.ValueOfInt64(0) + uint32Zero = protoreflect.ValueOfUint32(0) + uint64Zero = protoreflect.ValueOfUint64(0) + float32Zero = protoreflect.ValueOfFloat32(0) + float64Zero = protoreflect.ValueOfFloat64(0) + stringZero = protoreflect.ValueOfString("") + bytesZero = protoreflect.ValueOfBytes(nil) +) + +func newSingularConverter(t reflect.Type, fd protoreflect.FieldDescriptor) Converter { + defVal := func(fd protoreflect.FieldDescriptor, zero protoreflect.Value) protoreflect.Value { + if fd.Cardinality() == protoreflect.Repeated { + // Default isn't defined for repeated fields. + return zero + } + return fd.Default() + } + switch fd.Kind() { + case protoreflect.BoolKind: + if t.Kind() == reflect.Bool { + return &boolConverter{t, defVal(fd, boolZero)} + } + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + if t.Kind() == reflect.Int32 { + return &int32Converter{t, defVal(fd, int32Zero)} + } + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + if t.Kind() == reflect.Int64 { + return &int64Converter{t, defVal(fd, int64Zero)} + } + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + if t.Kind() == reflect.Uint32 { + return &uint32Converter{t, defVal(fd, uint32Zero)} + } + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + if t.Kind() == reflect.Uint64 { + return &uint64Converter{t, defVal(fd, uint64Zero)} + } + case protoreflect.FloatKind: + if t.Kind() == reflect.Float32 { + return &float32Converter{t, defVal(fd, float32Zero)} + } + case protoreflect.DoubleKind: + if t.Kind() == reflect.Float64 { + return &float64Converter{t, defVal(fd, float64Zero)} + } + case protoreflect.StringKind: + if t.Kind() == reflect.String || (t.Kind() == reflect.Slice && t.Elem() == byteType) { + return &stringConverter{t, defVal(fd, stringZero)} + } + case protoreflect.BytesKind: + if t.Kind() == reflect.String || (t.Kind() == reflect.Slice && t.Elem() == byteType) { + return &bytesConverter{t, defVal(fd, bytesZero)} + } + case protoreflect.EnumKind: + // Handle enums, which must be a named int32 type. + if t.Kind() == reflect.Int32 { + return newEnumConverter(t, fd) + } + case protoreflect.MessageKind, protoreflect.GroupKind: + return newMessageConverter(t) + } + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) +} + +type boolConverter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *boolConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfBool(v.Bool()) +} +func (c *boolConverter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(v.Bool()).Convert(c.goType) +} +func (c *boolConverter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(bool) + return ok +} +func (c *boolConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *boolConverter) New() protoreflect.Value { return c.def } +func (c *boolConverter) Zero() protoreflect.Value { return c.def } + +type int32Converter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *int32Converter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfInt32(int32(v.Int())) +} +func (c *int32Converter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(int32(v.Int())).Convert(c.goType) +} +func (c *int32Converter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(int32) + return ok +} +func (c *int32Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *int32Converter) New() protoreflect.Value { return c.def } +func (c *int32Converter) Zero() protoreflect.Value { return c.def } + +type int64Converter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *int64Converter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfInt64(int64(v.Int())) +} +func (c *int64Converter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(int64(v.Int())).Convert(c.goType) +} +func (c *int64Converter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(int64) + return ok +} +func (c *int64Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *int64Converter) New() protoreflect.Value { return c.def } +func (c *int64Converter) Zero() protoreflect.Value { return c.def } + +type uint32Converter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *uint32Converter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfUint32(uint32(v.Uint())) +} +func (c *uint32Converter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(uint32(v.Uint())).Convert(c.goType) +} +func (c *uint32Converter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(uint32) + return ok +} +func (c *uint32Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *uint32Converter) New() protoreflect.Value { return c.def } +func (c *uint32Converter) Zero() protoreflect.Value { return c.def } + +type uint64Converter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *uint64Converter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfUint64(uint64(v.Uint())) +} +func (c *uint64Converter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(uint64(v.Uint())).Convert(c.goType) +} +func (c *uint64Converter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(uint64) + return ok +} +func (c *uint64Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *uint64Converter) New() protoreflect.Value { return c.def } +func (c *uint64Converter) Zero() protoreflect.Value { return c.def } + +type float32Converter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *float32Converter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfFloat32(float32(v.Float())) +} +func (c *float32Converter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(float32(v.Float())).Convert(c.goType) +} +func (c *float32Converter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(float32) + return ok +} +func (c *float32Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *float32Converter) New() protoreflect.Value { return c.def } +func (c *float32Converter) Zero() protoreflect.Value { return c.def } + +type float64Converter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *float64Converter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfFloat64(float64(v.Float())) +} +func (c *float64Converter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(float64(v.Float())).Convert(c.goType) +} +func (c *float64Converter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(float64) + return ok +} +func (c *float64Converter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *float64Converter) New() protoreflect.Value { return c.def } +func (c *float64Converter) Zero() protoreflect.Value { return c.def } + +type stringConverter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *stringConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfString(v.Convert(stringType).String()) +} +func (c *stringConverter) GoValueOf(v protoreflect.Value) reflect.Value { + // pref.Value.String never panics, so we go through an interface + // conversion here to check the type. + s := v.Interface().(string) + if c.goType.Kind() == reflect.Slice && s == "" { + return reflect.Zero(c.goType) // ensure empty string is []byte(nil) + } + return reflect.ValueOf(s).Convert(c.goType) +} +func (c *stringConverter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(string) + return ok +} +func (c *stringConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *stringConverter) New() protoreflect.Value { return c.def } +func (c *stringConverter) Zero() protoreflect.Value { return c.def } + +type bytesConverter struct { + goType reflect.Type + def protoreflect.Value +} + +func (c *bytesConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + if c.goType.Kind() == reflect.String && v.Len() == 0 { + return protoreflect.ValueOfBytes(nil) // ensure empty string is []byte(nil) + } + return protoreflect.ValueOfBytes(v.Convert(bytesType).Bytes()) +} +func (c *bytesConverter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(v.Bytes()).Convert(c.goType) +} +func (c *bytesConverter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().([]byte) + return ok +} +func (c *bytesConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} +func (c *bytesConverter) New() protoreflect.Value { return c.def } +func (c *bytesConverter) Zero() protoreflect.Value { return c.def } + +type enumConverter struct { + goType reflect.Type + def protoreflect.Value +} + +func newEnumConverter(goType reflect.Type, fd protoreflect.FieldDescriptor) Converter { + var def protoreflect.Value + if fd.Cardinality() == protoreflect.Repeated { + def = protoreflect.ValueOfEnum(fd.Enum().Values().Get(0).Number()) + } else { + def = fd.Default() + } + return &enumConverter{goType, def} +} + +func (c *enumConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v.Int())) +} + +func (c *enumConverter) GoValueOf(v protoreflect.Value) reflect.Value { + return reflect.ValueOf(v.Enum()).Convert(c.goType) +} + +func (c *enumConverter) IsValidPB(v protoreflect.Value) bool { + _, ok := v.Interface().(protoreflect.EnumNumber) + return ok +} + +func (c *enumConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *enumConverter) New() protoreflect.Value { + return c.def +} + +func (c *enumConverter) Zero() protoreflect.Value { + return c.def +} + +type messageConverter struct { + goType reflect.Type +} + +func newMessageConverter(goType reflect.Type) Converter { + return &messageConverter{goType} +} + +func (c *messageConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + if c.isNonPointer() { + if v.CanAddr() { + v = v.Addr() // T => *T + } else { + v = reflect.Zero(reflect.PtrTo(v.Type())) + } + } + if m, ok := v.Interface().(protoreflect.ProtoMessage); ok { + return protoreflect.ValueOfMessage(m.ProtoReflect()) + } + return protoreflect.ValueOfMessage(legacyWrapMessage(v)) +} + +func (c *messageConverter) GoValueOf(v protoreflect.Value) reflect.Value { + m := v.Message() + var rv reflect.Value + if u, ok := m.(unwrapper); ok { + rv = reflect.ValueOf(u.protoUnwrap()) + } else { + rv = reflect.ValueOf(m.Interface()) + } + if c.isNonPointer() { + if rv.Type() != reflect.PtrTo(c.goType) { + panic(fmt.Sprintf("invalid type: got %v, want %v", rv.Type(), reflect.PtrTo(c.goType))) + } + if !rv.IsNil() { + rv = rv.Elem() // *T => T + } else { + rv = reflect.Zero(rv.Type().Elem()) + } + } + if rv.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", rv.Type(), c.goType)) + } + return rv +} + +func (c *messageConverter) IsValidPB(v protoreflect.Value) bool { + m := v.Message() + var rv reflect.Value + if u, ok := m.(unwrapper); ok { + rv = reflect.ValueOf(u.protoUnwrap()) + } else { + rv = reflect.ValueOf(m.Interface()) + } + if c.isNonPointer() { + return rv.Type() == reflect.PtrTo(c.goType) + } + return rv.Type() == c.goType +} + +func (c *messageConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *messageConverter) New() protoreflect.Value { + if c.isNonPointer() { + return c.PBValueOf(reflect.New(c.goType).Elem()) + } + return c.PBValueOf(reflect.New(c.goType.Elem())) +} + +func (c *messageConverter) Zero() protoreflect.Value { + return c.PBValueOf(reflect.Zero(c.goType)) +} + +// isNonPointer reports whether the type is a non-pointer type. +// This never occurs for generated message types. +func (c *messageConverter) isNonPointer() bool { + return c.goType.Kind() != reflect.Ptr +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert_list.go b/vendor/google.golang.org/protobuf/internal/impl/convert_list.go new file mode 100644 index 0000000..f891365 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/convert_list.go @@ -0,0 +1,141 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +func newListConverter(t reflect.Type, fd protoreflect.FieldDescriptor) Converter { + switch { + case t.Kind() == reflect.Ptr && t.Elem().Kind() == reflect.Slice: + return &listPtrConverter{t, newSingularConverter(t.Elem().Elem(), fd)} + case t.Kind() == reflect.Slice: + return &listConverter{t, newSingularConverter(t.Elem(), fd)} + } + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) +} + +type listConverter struct { + goType reflect.Type // []T + c Converter +} + +func (c *listConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + pv := reflect.New(c.goType) + pv.Elem().Set(v) + return protoreflect.ValueOfList(&listReflect{pv, c.c}) +} + +func (c *listConverter) GoValueOf(v protoreflect.Value) reflect.Value { + rv := v.List().(*listReflect).v + if rv.IsNil() { + return reflect.Zero(c.goType) + } + return rv.Elem() +} + +func (c *listConverter) IsValidPB(v protoreflect.Value) bool { + list, ok := v.Interface().(*listReflect) + if !ok { + return false + } + return list.v.Type().Elem() == c.goType +} + +func (c *listConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *listConverter) New() protoreflect.Value { + return protoreflect.ValueOfList(&listReflect{reflect.New(c.goType), c.c}) +} + +func (c *listConverter) Zero() protoreflect.Value { + return protoreflect.ValueOfList(&listReflect{reflect.Zero(reflect.PtrTo(c.goType)), c.c}) +} + +type listPtrConverter struct { + goType reflect.Type // *[]T + c Converter +} + +func (c *listPtrConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfList(&listReflect{v, c.c}) +} + +func (c *listPtrConverter) GoValueOf(v protoreflect.Value) reflect.Value { + return v.List().(*listReflect).v +} + +func (c *listPtrConverter) IsValidPB(v protoreflect.Value) bool { + list, ok := v.Interface().(*listReflect) + if !ok { + return false + } + return list.v.Type() == c.goType +} + +func (c *listPtrConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *listPtrConverter) New() protoreflect.Value { + return c.PBValueOf(reflect.New(c.goType.Elem())) +} + +func (c *listPtrConverter) Zero() protoreflect.Value { + return c.PBValueOf(reflect.Zero(c.goType)) +} + +type listReflect struct { + v reflect.Value // *[]T + conv Converter +} + +func (ls *listReflect) Len() int { + if ls.v.IsNil() { + return 0 + } + return ls.v.Elem().Len() +} +func (ls *listReflect) Get(i int) protoreflect.Value { + return ls.conv.PBValueOf(ls.v.Elem().Index(i)) +} +func (ls *listReflect) Set(i int, v protoreflect.Value) { + ls.v.Elem().Index(i).Set(ls.conv.GoValueOf(v)) +} +func (ls *listReflect) Append(v protoreflect.Value) { + ls.v.Elem().Set(reflect.Append(ls.v.Elem(), ls.conv.GoValueOf(v))) +} +func (ls *listReflect) AppendMutable() protoreflect.Value { + if _, ok := ls.conv.(*messageConverter); !ok { + panic("invalid AppendMutable on list with non-message type") + } + v := ls.NewElement() + ls.Append(v) + return v +} +func (ls *listReflect) Truncate(i int) { + ls.v.Elem().Set(ls.v.Elem().Slice(0, i)) +} +func (ls *listReflect) NewElement() protoreflect.Value { + return ls.conv.New() +} +func (ls *listReflect) IsValid() bool { + return !ls.v.IsNil() +} +func (ls *listReflect) protoUnwrap() interface{} { + return ls.v.Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert_map.go b/vendor/google.golang.org/protobuf/internal/impl/convert_map.go new file mode 100644 index 0000000..f30b0a0 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/convert_map.go @@ -0,0 +1,121 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +type mapConverter struct { + goType reflect.Type // map[K]V + keyConv, valConv Converter +} + +func newMapConverter(t reflect.Type, fd protoreflect.FieldDescriptor) *mapConverter { + if t.Kind() != reflect.Map { + panic(fmt.Sprintf("invalid Go type %v for field %v", t, fd.FullName())) + } + return &mapConverter{ + goType: t, + keyConv: newSingularConverter(t.Key(), fd.MapKey()), + valConv: newSingularConverter(t.Elem(), fd.MapValue()), + } +} + +func (c *mapConverter) PBValueOf(v reflect.Value) protoreflect.Value { + if v.Type() != c.goType { + panic(fmt.Sprintf("invalid type: got %v, want %v", v.Type(), c.goType)) + } + return protoreflect.ValueOfMap(&mapReflect{v, c.keyConv, c.valConv}) +} + +func (c *mapConverter) GoValueOf(v protoreflect.Value) reflect.Value { + return v.Map().(*mapReflect).v +} + +func (c *mapConverter) IsValidPB(v protoreflect.Value) bool { + mapv, ok := v.Interface().(*mapReflect) + if !ok { + return false + } + return mapv.v.Type() == c.goType +} + +func (c *mapConverter) IsValidGo(v reflect.Value) bool { + return v.IsValid() && v.Type() == c.goType +} + +func (c *mapConverter) New() protoreflect.Value { + return c.PBValueOf(reflect.MakeMap(c.goType)) +} + +func (c *mapConverter) Zero() protoreflect.Value { + return c.PBValueOf(reflect.Zero(c.goType)) +} + +type mapReflect struct { + v reflect.Value // map[K]V + keyConv Converter + valConv Converter +} + +func (ms *mapReflect) Len() int { + return ms.v.Len() +} +func (ms *mapReflect) Has(k protoreflect.MapKey) bool { + rk := ms.keyConv.GoValueOf(k.Value()) + rv := ms.v.MapIndex(rk) + return rv.IsValid() +} +func (ms *mapReflect) Get(k protoreflect.MapKey) protoreflect.Value { + rk := ms.keyConv.GoValueOf(k.Value()) + rv := ms.v.MapIndex(rk) + if !rv.IsValid() { + return protoreflect.Value{} + } + return ms.valConv.PBValueOf(rv) +} +func (ms *mapReflect) Set(k protoreflect.MapKey, v protoreflect.Value) { + rk := ms.keyConv.GoValueOf(k.Value()) + rv := ms.valConv.GoValueOf(v) + ms.v.SetMapIndex(rk, rv) +} +func (ms *mapReflect) Clear(k protoreflect.MapKey) { + rk := ms.keyConv.GoValueOf(k.Value()) + ms.v.SetMapIndex(rk, reflect.Value{}) +} +func (ms *mapReflect) Mutable(k protoreflect.MapKey) protoreflect.Value { + if _, ok := ms.valConv.(*messageConverter); !ok { + panic("invalid Mutable on map with non-message value type") + } + v := ms.Get(k) + if !v.IsValid() { + v = ms.NewValue() + ms.Set(k, v) + } + return v +} +func (ms *mapReflect) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + iter := mapRange(ms.v) + for iter.Next() { + k := ms.keyConv.PBValueOf(iter.Key()).MapKey() + v := ms.valConv.PBValueOf(iter.Value()) + if !f(k, v) { + return + } + } +} +func (ms *mapReflect) NewValue() protoreflect.Value { + return ms.valConv.New() +} +func (ms *mapReflect) IsValid() bool { + return !ms.v.IsNil() +} +func (ms *mapReflect) protoUnwrap() interface{} { + return ms.v.Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/decode.go b/vendor/google.golang.org/protobuf/internal/impl/decode.go new file mode 100644 index 0000000..cda0520 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/decode.go @@ -0,0 +1,285 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "math/bits" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" +) + +var errDecode = errors.New("cannot parse invalid wire-format data") +var errRecursionDepth = errors.New("exceeded maximum recursion depth") + +type unmarshalOptions struct { + flags protoiface.UnmarshalInputFlags + resolver interface { + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + } + depth int +} + +func (o unmarshalOptions) Options() proto.UnmarshalOptions { + return proto.UnmarshalOptions{ + Merge: true, + AllowPartial: true, + DiscardUnknown: o.DiscardUnknown(), + Resolver: o.resolver, + } +} + +func (o unmarshalOptions) DiscardUnknown() bool { + return o.flags&protoiface.UnmarshalDiscardUnknown != 0 +} + +func (o unmarshalOptions) IsDefault() bool { + return o.flags == 0 && o.resolver == protoregistry.GlobalTypes +} + +var lazyUnmarshalOptions = unmarshalOptions{ + resolver: protoregistry.GlobalTypes, + depth: protowire.DefaultRecursionLimit, +} + +type unmarshalOutput struct { + n int // number of bytes consumed + initialized bool +} + +// unmarshal is protoreflect.Methods.Unmarshal. +func (mi *MessageInfo) unmarshal(in protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + out, err := mi.unmarshalPointer(in.Buf, p, 0, unmarshalOptions{ + flags: in.Flags, + resolver: in.Resolver, + depth: in.Depth, + }) + var flags protoiface.UnmarshalOutputFlags + if out.initialized { + flags |= protoiface.UnmarshalInitialized + } + return protoiface.UnmarshalOutput{ + Flags: flags, + }, err +} + +// errUnknown is returned during unmarshaling to indicate a parse error that +// should result in a field being placed in the unknown fields section (for example, +// when the wire type doesn't match) as opposed to the entire unmarshal operation +// failing (for example, when a field extends past the available input). +// +// This is a sentinel error which should never be visible to the user. +var errUnknown = errors.New("unknown") + +func (mi *MessageInfo) unmarshalPointer(b []byte, p pointer, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, err error) { + mi.init() + opts.depth-- + if opts.depth < 0 { + return out, errRecursionDepth + } + if flags.ProtoLegacy && mi.isMessageSet { + return unmarshalMessageSet(mi, b, p, opts) + } + initialized := true + var requiredMask uint64 + var exts *map[int32]ExtensionField + start := len(b) + for len(b) > 0 { + // Parse the tag (field number and wire type). + var tag uint64 + if b[0] < 0x80 { + tag = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + tag = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + tag, n = protowire.ConsumeVarint(b) + if n < 0 { + return out, errDecode + } + b = b[n:] + } + var num protowire.Number + if n := tag >> 3; n < uint64(protowire.MinValidNumber) || n > uint64(protowire.MaxValidNumber) { + return out, errDecode + } else { + num = protowire.Number(n) + } + wtyp := protowire.Type(tag & 7) + + if wtyp == protowire.EndGroupType { + if num != groupTag { + return out, errDecode + } + groupTag = 0 + break + } + + var f *coderFieldInfo + if int(num) < len(mi.denseCoderFields) { + f = mi.denseCoderFields[num] + } else { + f = mi.coderFields[num] + } + var n int + err := errUnknown + switch { + case f != nil: + if f.funcs.unmarshal == nil { + break + } + var o unmarshalOutput + o, err = f.funcs.unmarshal(b, p.Apply(f.offset), wtyp, f, opts) + n = o.n + if err != nil { + break + } + requiredMask |= f.validation.requiredBit + if f.funcs.isInit != nil && !o.initialized { + initialized = false + } + default: + // Possible extension. + if exts == nil && mi.extensionOffset.IsValid() { + exts = p.Apply(mi.extensionOffset).Extensions() + if *exts == nil { + *exts = make(map[int32]ExtensionField) + } + } + if exts == nil { + break + } + var o unmarshalOutput + o, err = mi.unmarshalExtension(b, num, wtyp, *exts, opts) + if err != nil { + break + } + n = o.n + if !o.initialized { + initialized = false + } + } + if err != nil { + if err != errUnknown { + return out, err + } + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, errDecode + } + if !opts.DiscardUnknown() && mi.unknownOffset.IsValid() { + u := mi.mutableUnknownBytes(p) + *u = protowire.AppendTag(*u, num, wtyp) + *u = append(*u, b[:n]...) + } + } + b = b[n:] + } + if groupTag != 0 { + return out, errDecode + } + if mi.numRequiredFields > 0 && bits.OnesCount64(requiredMask) != int(mi.numRequiredFields) { + initialized = false + } + if initialized { + out.initialized = true + } + out.n = start - len(b) + return out, nil +} + +func (mi *MessageInfo) unmarshalExtension(b []byte, num protowire.Number, wtyp protowire.Type, exts map[int32]ExtensionField, opts unmarshalOptions) (out unmarshalOutput, err error) { + x := exts[int32(num)] + xt := x.Type() + if xt == nil { + var err error + xt, err = opts.resolver.FindExtensionByNumber(mi.Desc.FullName(), num) + if err != nil { + if err == protoregistry.NotFound { + return out, errUnknown + } + return out, errors.New("%v: unable to resolve extension %v: %v", mi.Desc.FullName(), num, err) + } + } + xi := getExtensionFieldInfo(xt) + if xi.funcs.unmarshal == nil { + return out, errUnknown + } + if flags.LazyUnmarshalExtensions { + if opts.IsDefault() && x.canLazy(xt) { + out, valid := skipExtension(b, xi, num, wtyp, opts) + switch valid { + case ValidationValid: + if out.initialized { + x.appendLazyBytes(xt, xi, num, wtyp, b[:out.n]) + exts[int32(num)] = x + return out, nil + } + case ValidationInvalid: + return out, errDecode + case ValidationUnknown: + } + } + } + ival := x.Value() + if !ival.IsValid() && xi.unmarshalNeedsValue { + // Create a new message, list, or map value to fill in. + // For enums, create a prototype value to let the unmarshal func know the + // concrete type. + ival = xt.New() + } + v, out, err := xi.funcs.unmarshal(b, ival, num, wtyp, opts) + if err != nil { + return out, err + } + if xi.funcs.isInit == nil { + out.initialized = true + } + x.Set(xt, v) + exts[int32(num)] = x + return out, nil +} + +func skipExtension(b []byte, xi *extensionFieldInfo, num protowire.Number, wtyp protowire.Type, opts unmarshalOptions) (out unmarshalOutput, _ ValidationStatus) { + if xi.validation.mi == nil { + return out, ValidationUnknown + } + xi.validation.mi.init() + switch xi.validation.typ { + case validationTypeMessage: + if wtyp != protowire.BytesType { + return out, ValidationUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return out, ValidationUnknown + } + out, st := xi.validation.mi.validate(v, 0, opts) + out.n = n + return out, st + case validationTypeGroup: + if wtyp != protowire.StartGroupType { + return out, ValidationUnknown + } + out, st := xi.validation.mi.validate(b, num, opts) + return out, st + default: + return out, ValidationUnknown + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/encode.go b/vendor/google.golang.org/protobuf/internal/impl/encode.go new file mode 100644 index 0000000..845c67d --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/encode.go @@ -0,0 +1,201 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "math" + "sort" + "sync/atomic" + + "google.golang.org/protobuf/internal/flags" + proto "google.golang.org/protobuf/proto" + piface "google.golang.org/protobuf/runtime/protoiface" +) + +type marshalOptions struct { + flags piface.MarshalInputFlags +} + +func (o marshalOptions) Options() proto.MarshalOptions { + return proto.MarshalOptions{ + AllowPartial: true, + Deterministic: o.Deterministic(), + UseCachedSize: o.UseCachedSize(), + } +} + +func (o marshalOptions) Deterministic() bool { return o.flags&piface.MarshalDeterministic != 0 } +func (o marshalOptions) UseCachedSize() bool { return o.flags&piface.MarshalUseCachedSize != 0 } + +// size is protoreflect.Methods.Size. +func (mi *MessageInfo) size(in piface.SizeInput) piface.SizeOutput { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + size := mi.sizePointer(p, marshalOptions{ + flags: in.Flags, + }) + return piface.SizeOutput{Size: size} +} + +func (mi *MessageInfo) sizePointer(p pointer, opts marshalOptions) (size int) { + mi.init() + if p.IsNil() { + return 0 + } + if opts.UseCachedSize() && mi.sizecacheOffset.IsValid() { + if size := atomic.LoadInt32(p.Apply(mi.sizecacheOffset).Int32()); size >= 0 { + return int(size) + } + } + return mi.sizePointerSlow(p, opts) +} + +func (mi *MessageInfo) sizePointerSlow(p pointer, opts marshalOptions) (size int) { + if flags.ProtoLegacy && mi.isMessageSet { + size = sizeMessageSet(mi, p, opts) + if mi.sizecacheOffset.IsValid() { + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size)) + } + return size + } + if mi.extensionOffset.IsValid() { + e := p.Apply(mi.extensionOffset).Extensions() + size += mi.sizeExtensions(e, opts) + } + for _, f := range mi.orderedCoderFields { + if f.funcs.size == nil { + continue + } + fptr := p.Apply(f.offset) + if f.isPointer && fptr.Elem().IsNil() { + continue + } + size += f.funcs.size(fptr, f, opts) + } + if mi.unknownOffset.IsValid() { + if u := mi.getUnknownBytes(p); u != nil { + size += len(*u) + } + } + if mi.sizecacheOffset.IsValid() { + if size > math.MaxInt32 { + // The size is too large for the int32 sizecache field. + // We will need to recompute the size when encoding; + // unfortunately expensive, but better than invalid output. + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), -1) + } else { + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size)) + } + } + return size +} + +// marshal is protoreflect.Methods.Marshal. +func (mi *MessageInfo) marshal(in piface.MarshalInput) (out piface.MarshalOutput, err error) { + var p pointer + if ms, ok := in.Message.(*messageState); ok { + p = ms.pointer() + } else { + p = in.Message.(*messageReflectWrapper).pointer() + } + b, err := mi.marshalAppendPointer(in.Buf, p, marshalOptions{ + flags: in.Flags, + }) + return piface.MarshalOutput{Buf: b}, err +} + +func (mi *MessageInfo) marshalAppendPointer(b []byte, p pointer, opts marshalOptions) ([]byte, error) { + mi.init() + if p.IsNil() { + return b, nil + } + if flags.ProtoLegacy && mi.isMessageSet { + return marshalMessageSet(mi, b, p, opts) + } + var err error + // The old marshaler encodes extensions at beginning. + if mi.extensionOffset.IsValid() { + e := p.Apply(mi.extensionOffset).Extensions() + // TODO: Special handling for MessageSet? + b, err = mi.appendExtensions(b, e, opts) + if err != nil { + return b, err + } + } + for _, f := range mi.orderedCoderFields { + if f.funcs.marshal == nil { + continue + } + fptr := p.Apply(f.offset) + if f.isPointer && fptr.Elem().IsNil() { + continue + } + b, err = f.funcs.marshal(b, fptr, f, opts) + if err != nil { + return b, err + } + } + if mi.unknownOffset.IsValid() && !mi.isMessageSet { + if u := mi.getUnknownBytes(p); u != nil { + b = append(b, (*u)...) + } + } + return b, nil +} + +func (mi *MessageInfo) sizeExtensions(ext *map[int32]ExtensionField, opts marshalOptions) (n int) { + if ext == nil { + return 0 + } + for _, x := range *ext { + xi := getExtensionFieldInfo(x.Type()) + if xi.funcs.size == nil { + continue + } + n += xi.funcs.size(x.Value(), xi.tagsize, opts) + } + return n +} + +func (mi *MessageInfo) appendExtensions(b []byte, ext *map[int32]ExtensionField, opts marshalOptions) ([]byte, error) { + if ext == nil { + return b, nil + } + + switch len(*ext) { + case 0: + return b, nil + case 1: + // Fast-path for one extension: Don't bother sorting the keys. + var err error + for _, x := range *ext { + xi := getExtensionFieldInfo(x.Type()) + b, err = xi.funcs.marshal(b, x.Value(), xi.wiretag, opts) + } + return b, err + default: + // Sort the keys to provide a deterministic encoding. + // Not sure this is required, but the old code does it. + keys := make([]int, 0, len(*ext)) + for k := range *ext { + keys = append(keys, int(k)) + } + sort.Ints(keys) + var err error + for _, k := range keys { + x := (*ext)[int32(k)] + xi := getExtensionFieldInfo(x.Type()) + b, err = xi.funcs.marshal(b, x.Value(), xi.wiretag, opts) + if err != nil { + return b, err + } + } + return b, nil + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/enum.go b/vendor/google.golang.org/protobuf/internal/impl/enum.go new file mode 100644 index 0000000..5f3ef5a --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/enum.go @@ -0,0 +1,21 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +type EnumInfo struct { + GoReflectType reflect.Type // int32 kind + Desc protoreflect.EnumDescriptor +} + +func (t *EnumInfo) New(n protoreflect.EnumNumber) protoreflect.Enum { + return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum) +} +func (t *EnumInfo) Descriptor() protoreflect.EnumDescriptor { return t.Desc } diff --git a/vendor/google.golang.org/protobuf/internal/impl/extension.go b/vendor/google.golang.org/protobuf/internal/impl/extension.go new file mode 100644 index 0000000..cb25b0b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/extension.go @@ -0,0 +1,156 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + "sync" + "sync/atomic" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// ExtensionInfo implements ExtensionType. +// +// This type contains a number of exported fields for legacy compatibility. +// The only non-deprecated use of this type is through the methods of the +// ExtensionType interface. +type ExtensionInfo struct { + // An ExtensionInfo may exist in several stages of initialization. + // + // extensionInfoUninitialized: Some or all of the legacy exported + // fields may be set, but none of the unexported fields have been + // initialized. This is the starting state for an ExtensionInfo + // in legacy generated code. + // + // extensionInfoDescInit: The desc field is set, but other unexported fields + // may not be initialized. Legacy exported fields may or may not be set. + // This is the starting state for an ExtensionInfo in newly generated code. + // + // extensionInfoFullInit: The ExtensionInfo is fully initialized. + // This state is only entered after lazy initialization is complete. + init uint32 + mu sync.Mutex + + goType reflect.Type + desc extensionTypeDescriptor + conv Converter + info *extensionFieldInfo // for fast-path method implementations + + // ExtendedType is a typed nil-pointer to the parent message type that + // is being extended. It is possible for this to be unpopulated in v2 + // since the message may no longer implement the MessageV1 interface. + // + // Deprecated: Use the ExtendedType method instead. + ExtendedType protoiface.MessageV1 + + // ExtensionType is the zero value of the extension type. + // + // For historical reasons, reflect.TypeOf(ExtensionType) and the + // type returned by InterfaceOf may not be identical. + // + // Deprecated: Use InterfaceOf(xt.Zero()) instead. + ExtensionType interface{} + + // Field is the field number of the extension. + // + // Deprecated: Use the Descriptor().Number method instead. + Field int32 + + // Name is the fully qualified name of extension. + // + // Deprecated: Use the Descriptor().FullName method instead. + Name string + + // Tag is the protobuf struct tag used in the v1 API. + // + // Deprecated: Do not use. + Tag string + + // Filename is the proto filename in which the extension is defined. + // + // Deprecated: Use Descriptor().ParentFile().Path() instead. + Filename string +} + +// Stages of initialization: See the ExtensionInfo.init field. +const ( + extensionInfoUninitialized = 0 + extensionInfoDescInit = 1 + extensionInfoFullInit = 2 +) + +func InitExtensionInfo(xi *ExtensionInfo, xd protoreflect.ExtensionDescriptor, goType reflect.Type) { + xi.goType = goType + xi.desc = extensionTypeDescriptor{xd, xi} + xi.init = extensionInfoDescInit +} + +func (xi *ExtensionInfo) New() protoreflect.Value { + return xi.lazyInit().New() +} +func (xi *ExtensionInfo) Zero() protoreflect.Value { + return xi.lazyInit().Zero() +} +func (xi *ExtensionInfo) ValueOf(v interface{}) protoreflect.Value { + return xi.lazyInit().PBValueOf(reflect.ValueOf(v)) +} +func (xi *ExtensionInfo) InterfaceOf(v protoreflect.Value) interface{} { + return xi.lazyInit().GoValueOf(v).Interface() +} +func (xi *ExtensionInfo) IsValidValue(v protoreflect.Value) bool { + return xi.lazyInit().IsValidPB(v) +} +func (xi *ExtensionInfo) IsValidInterface(v interface{}) bool { + return xi.lazyInit().IsValidGo(reflect.ValueOf(v)) +} +func (xi *ExtensionInfo) TypeDescriptor() protoreflect.ExtensionTypeDescriptor { + if atomic.LoadUint32(&xi.init) < extensionInfoDescInit { + xi.lazyInitSlow() + } + return &xi.desc +} + +func (xi *ExtensionInfo) lazyInit() Converter { + if atomic.LoadUint32(&xi.init) < extensionInfoFullInit { + xi.lazyInitSlow() + } + return xi.conv +} + +func (xi *ExtensionInfo) lazyInitSlow() { + xi.mu.Lock() + defer xi.mu.Unlock() + + if xi.init == extensionInfoFullInit { + return + } + defer atomic.StoreUint32(&xi.init, extensionInfoFullInit) + + if xi.desc.ExtensionDescriptor == nil { + xi.initFromLegacy() + } + if !xi.desc.ExtensionDescriptor.IsPlaceholder() { + if xi.ExtensionType == nil { + xi.initToLegacy() + } + xi.conv = NewConverter(xi.goType, xi.desc.ExtensionDescriptor) + xi.info = makeExtensionFieldInfo(xi.desc.ExtensionDescriptor) + xi.info.validation = newValidationInfo(xi.desc.ExtensionDescriptor, xi.goType) + } +} + +type extensionTypeDescriptor struct { + protoreflect.ExtensionDescriptor + xi *ExtensionInfo +} + +func (xtd *extensionTypeDescriptor) Type() protoreflect.ExtensionType { + return xtd.xi +} +func (xtd *extensionTypeDescriptor) Descriptor() protoreflect.ExtensionDescriptor { + return xtd.ExtensionDescriptor +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go new file mode 100644 index 0000000..c2a803b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go @@ -0,0 +1,218 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strings" + "sync" + + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// legacyEnumName returns the name of enums used in legacy code. +// It is neither the protobuf full name nor the qualified Go name, +// but rather an odd hybrid of both. +func legacyEnumName(ed protoreflect.EnumDescriptor) string { + var protoPkg string + enumName := string(ed.FullName()) + if fd := ed.ParentFile(); fd != nil { + protoPkg = string(fd.Package()) + enumName = strings.TrimPrefix(enumName, protoPkg+".") + } + if protoPkg == "" { + return strs.GoCamelCase(enumName) + } + return protoPkg + "." + strs.GoCamelCase(enumName) +} + +// legacyWrapEnum wraps v as a protoreflect.Enum, +// where v must be a int32 kind and not implement the v2 API already. +func legacyWrapEnum(v reflect.Value) protoreflect.Enum { + et := legacyLoadEnumType(v.Type()) + return et.New(protoreflect.EnumNumber(v.Int())) +} + +var legacyEnumTypeCache sync.Map // map[reflect.Type]protoreflect.EnumType + +// legacyLoadEnumType dynamically loads a protoreflect.EnumType for t, +// where t must be an int32 kind and not implement the v2 API already. +func legacyLoadEnumType(t reflect.Type) protoreflect.EnumType { + // Fast-path: check if a EnumType is cached for this concrete type. + if et, ok := legacyEnumTypeCache.Load(t); ok { + return et.(protoreflect.EnumType) + } + + // Slow-path: derive enum descriptor and initialize EnumType. + var et protoreflect.EnumType + ed := LegacyLoadEnumDesc(t) + et = &legacyEnumType{ + desc: ed, + goType: t, + } + if et, ok := legacyEnumTypeCache.LoadOrStore(t, et); ok { + return et.(protoreflect.EnumType) + } + return et +} + +type legacyEnumType struct { + desc protoreflect.EnumDescriptor + goType reflect.Type + m sync.Map // map[protoreflect.EnumNumber]proto.Enum +} + +func (t *legacyEnumType) New(n protoreflect.EnumNumber) protoreflect.Enum { + if e, ok := t.m.Load(n); ok { + return e.(protoreflect.Enum) + } + e := &legacyEnumWrapper{num: n, pbTyp: t, goTyp: t.goType} + t.m.Store(n, e) + return e +} +func (t *legacyEnumType) Descriptor() protoreflect.EnumDescriptor { + return t.desc +} + +type legacyEnumWrapper struct { + num protoreflect.EnumNumber + pbTyp protoreflect.EnumType + goTyp reflect.Type +} + +func (e *legacyEnumWrapper) Descriptor() protoreflect.EnumDescriptor { + return e.pbTyp.Descriptor() +} +func (e *legacyEnumWrapper) Type() protoreflect.EnumType { + return e.pbTyp +} +func (e *legacyEnumWrapper) Number() protoreflect.EnumNumber { + return e.num +} +func (e *legacyEnumWrapper) ProtoReflect() protoreflect.Enum { + return e +} +func (e *legacyEnumWrapper) protoUnwrap() interface{} { + v := reflect.New(e.goTyp).Elem() + v.SetInt(int64(e.num)) + return v.Interface() +} + +var ( + _ protoreflect.Enum = (*legacyEnumWrapper)(nil) + _ unwrapper = (*legacyEnumWrapper)(nil) +) + +var legacyEnumDescCache sync.Map // map[reflect.Type]protoreflect.EnumDescriptor + +// LegacyLoadEnumDesc returns an EnumDescriptor derived from the Go type, +// which must be an int32 kind and not implement the v2 API already. +// +// This is exported for testing purposes. +func LegacyLoadEnumDesc(t reflect.Type) protoreflect.EnumDescriptor { + // Fast-path: check if an EnumDescriptor is cached for this concrete type. + if ed, ok := legacyEnumDescCache.Load(t); ok { + return ed.(protoreflect.EnumDescriptor) + } + + // Slow-path: initialize EnumDescriptor from the raw descriptor. + ev := reflect.Zero(t).Interface() + if _, ok := ev.(protoreflect.Enum); ok { + panic(fmt.Sprintf("%v already implements proto.Enum", t)) + } + edV1, ok := ev.(enumV1) + if !ok { + return aberrantLoadEnumDesc(t) + } + b, idxs := edV1.EnumDescriptor() + + var ed protoreflect.EnumDescriptor + if len(idxs) == 1 { + ed = legacyLoadFileDesc(b).Enums().Get(idxs[0]) + } else { + md := legacyLoadFileDesc(b).Messages().Get(idxs[0]) + for _, i := range idxs[1 : len(idxs)-1] { + md = md.Messages().Get(i) + } + ed = md.Enums().Get(idxs[len(idxs)-1]) + } + if ed, ok := legacyEnumDescCache.LoadOrStore(t, ed); ok { + return ed.(protoreflect.EnumDescriptor) + } + return ed +} + +var aberrantEnumDescCache sync.Map // map[reflect.Type]protoreflect.EnumDescriptor + +// aberrantLoadEnumDesc returns an EnumDescriptor derived from the Go type, +// which must not implement protoreflect.Enum or enumV1. +// +// If the type does not implement enumV1, then there is no reliable +// way to derive the original protobuf type information. +// We are unable to use the global enum registry since it is +// unfortunately keyed by the protobuf full name, which we also do not know. +// Thus, this produces some bogus enum descriptor based on the Go type name. +func aberrantLoadEnumDesc(t reflect.Type) protoreflect.EnumDescriptor { + // Fast-path: check if an EnumDescriptor is cached for this concrete type. + if ed, ok := aberrantEnumDescCache.Load(t); ok { + return ed.(protoreflect.EnumDescriptor) + } + + // Slow-path: construct a bogus, but unique EnumDescriptor. + ed := &filedesc.Enum{L2: new(filedesc.EnumL2)} + ed.L0.FullName = AberrantDeriveFullName(t) // e.g., github_com.user.repo.MyEnum + ed.L0.ParentFile = filedesc.SurrogateProto3 + ed.L2.Values.List = append(ed.L2.Values.List, filedesc.EnumValue{}) + + // TODO: Use the presence of a UnmarshalJSON method to determine proto2? + + vd := &ed.L2.Values.List[0] + vd.L0.FullName = ed.L0.FullName + "_UNKNOWN" // e.g., github_com.user.repo.MyEnum_UNKNOWN + vd.L0.ParentFile = ed.L0.ParentFile + vd.L0.Parent = ed + + // TODO: We could use the String method to obtain some enum value names by + // starting at 0 and print the enum until it produces invalid identifiers. + // An exhaustive query is clearly impractical, but can be best-effort. + + if ed, ok := aberrantEnumDescCache.LoadOrStore(t, ed); ok { + return ed.(protoreflect.EnumDescriptor) + } + return ed +} + +// AberrantDeriveFullName derives a fully qualified protobuf name for the given Go type +// The provided name is not guaranteed to be stable nor universally unique. +// It should be sufficiently unique within a program. +// +// This is exported for testing purposes. +func AberrantDeriveFullName(t reflect.Type) protoreflect.FullName { + sanitize := func(r rune) rune { + switch { + case r == '/': + return '.' + case 'a' <= r && r <= 'z', 'A' <= r && r <= 'Z', '0' <= r && r <= '9': + return r + default: + return '_' + } + } + prefix := strings.Map(sanitize, t.PkgPath()) + suffix := strings.Map(sanitize, t.Name()) + if suffix == "" { + suffix = fmt.Sprintf("UnknownX%X", reflect.ValueOf(t).Pointer()) + } + + ss := append(strings.Split(prefix, "."), suffix) + for i, s := range ss { + if s == "" || ('0' <= s[0] && s[0] <= '9') { + ss[i] = "x" + s + } + } + return protoreflect.FullName(strings.Join(ss, ".")) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go new file mode 100644 index 0000000..9b64ad5 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_export.go @@ -0,0 +1,92 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "encoding/binary" + "encoding/json" + "hash/crc32" + "math" + "reflect" + + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// These functions exist to support exported APIs in generated protobufs. +// While these are deprecated, they cannot be removed for compatibility reasons. + +// LegacyEnumName returns the name of enums used in legacy code. +func (Export) LegacyEnumName(ed protoreflect.EnumDescriptor) string { + return legacyEnumName(ed) +} + +// LegacyMessageTypeOf returns the protoreflect.MessageType for m, +// with name used as the message name if necessary. +func (Export) LegacyMessageTypeOf(m protoiface.MessageV1, name protoreflect.FullName) protoreflect.MessageType { + if mv := (Export{}).protoMessageV2Of(m); mv != nil { + return mv.ProtoReflect().Type() + } + return legacyLoadMessageType(reflect.TypeOf(m), name) +} + +// UnmarshalJSONEnum unmarshals an enum from a JSON-encoded input. +// The input can either be a string representing the enum value by name, +// or a number representing the enum number itself. +func (Export) UnmarshalJSONEnum(ed protoreflect.EnumDescriptor, b []byte) (protoreflect.EnumNumber, error) { + if b[0] == '"' { + var name protoreflect.Name + if err := json.Unmarshal(b, &name); err != nil { + return 0, errors.New("invalid input for enum %v: %s", ed.FullName(), b) + } + ev := ed.Values().ByName(name) + if ev == nil { + return 0, errors.New("invalid value for enum %v: %s", ed.FullName(), name) + } + return ev.Number(), nil + } else { + var num protoreflect.EnumNumber + if err := json.Unmarshal(b, &num); err != nil { + return 0, errors.New("invalid input for enum %v: %s", ed.FullName(), b) + } + return num, nil + } +} + +// CompressGZIP compresses the input as a GZIP-encoded file. +// The current implementation does no compression. +func (Export) CompressGZIP(in []byte) (out []byte) { + // RFC 1952, section 2.3.1. + var gzipHeader = [10]byte{0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff} + + // RFC 1951, section 3.2.4. + var blockHeader [5]byte + const maxBlockSize = math.MaxUint16 + numBlocks := 1 + len(in)/maxBlockSize + + // RFC 1952, section 2.3.1. + var gzipFooter [8]byte + binary.LittleEndian.PutUint32(gzipFooter[0:4], crc32.ChecksumIEEE(in)) + binary.LittleEndian.PutUint32(gzipFooter[4:8], uint32(len(in))) + + // Encode the input without compression using raw DEFLATE blocks. + out = make([]byte, 0, len(gzipHeader)+len(blockHeader)*numBlocks+len(in)+len(gzipFooter)) + out = append(out, gzipHeader[:]...) + for blockHeader[0] == 0 { + blockSize := maxBlockSize + if blockSize > len(in) { + blockHeader[0] = 0x01 // final bit per RFC 1951, section 3.2.3. + blockSize = len(in) + } + binary.LittleEndian.PutUint16(blockHeader[1:3], uint16(blockSize)) + binary.LittleEndian.PutUint16(blockHeader[3:5], ^uint16(blockSize)) + out = append(out, blockHeader[:]...) + out = append(out, in[:blockSize]...) + in = in[blockSize:] + } + out = append(out, gzipFooter[:]...) + return out +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go new file mode 100644 index 0000000..87b30d0 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go @@ -0,0 +1,176 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "reflect" + + "google.golang.org/protobuf/internal/descopts" + "google.golang.org/protobuf/internal/encoding/messageset" + ptag "google.golang.org/protobuf/internal/encoding/tag" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" +) + +func (xi *ExtensionInfo) initToLegacy() { + xd := xi.desc + var parent protoiface.MessageV1 + messageName := xd.ContainingMessage().FullName() + if mt, _ := protoregistry.GlobalTypes.FindMessageByName(messageName); mt != nil { + // Create a new parent message and unwrap it if possible. + mv := mt.New().Interface() + t := reflect.TypeOf(mv) + if mv, ok := mv.(unwrapper); ok { + t = reflect.TypeOf(mv.protoUnwrap()) + } + + // Check whether the message implements the legacy v1 Message interface. + mz := reflect.Zero(t).Interface() + if mz, ok := mz.(protoiface.MessageV1); ok { + parent = mz + } + } + + // Determine the v1 extension type, which is unfortunately not the same as + // the v2 ExtensionType.GoType. + extType := xi.goType + switch extType.Kind() { + case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: + extType = reflect.PtrTo(extType) // T -> *T for singular scalar fields + } + + // Reconstruct the legacy enum full name. + var enumName string + if xd.Kind() == protoreflect.EnumKind { + enumName = legacyEnumName(xd.Enum()) + } + + // Derive the proto file that the extension was declared within. + var filename string + if fd := xd.ParentFile(); fd != nil { + filename = fd.Path() + } + + // For MessageSet extensions, the name used is the parent message. + name := xd.FullName() + if messageset.IsMessageSetExtension(xd) { + name = name.Parent() + } + + xi.ExtendedType = parent + xi.ExtensionType = reflect.Zero(extType).Interface() + xi.Field = int32(xd.Number()) + xi.Name = string(name) + xi.Tag = ptag.Marshal(xd, enumName) + xi.Filename = filename +} + +// initFromLegacy initializes an ExtensionInfo from +// the contents of the deprecated exported fields of the type. +func (xi *ExtensionInfo) initFromLegacy() { + // The v1 API returns "type incomplete" descriptors where only the + // field number is specified. In such a case, use a placeholder. + if xi.ExtendedType == nil || xi.ExtensionType == nil { + xd := placeholderExtension{ + name: protoreflect.FullName(xi.Name), + number: protoreflect.FieldNumber(xi.Field), + } + xi.desc = extensionTypeDescriptor{xd, xi} + return + } + + // Resolve enum or message dependencies. + var ed protoreflect.EnumDescriptor + var md protoreflect.MessageDescriptor + t := reflect.TypeOf(xi.ExtensionType) + isOptional := t.Kind() == reflect.Ptr && t.Elem().Kind() != reflect.Struct + isRepeated := t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 + if isOptional || isRepeated { + t = t.Elem() + } + switch v := reflect.Zero(t).Interface().(type) { + case protoreflect.Enum: + ed = v.Descriptor() + case enumV1: + ed = LegacyLoadEnumDesc(t) + case protoreflect.ProtoMessage: + md = v.ProtoReflect().Descriptor() + case messageV1: + md = LegacyLoadMessageDesc(t) + } + + // Derive basic field information from the struct tag. + var evs protoreflect.EnumValueDescriptors + if ed != nil { + evs = ed.Values() + } + fd := ptag.Unmarshal(xi.Tag, t, evs).(*filedesc.Field) + + // Construct a v2 ExtensionType. + xd := &filedesc.Extension{L2: new(filedesc.ExtensionL2)} + xd.L0.ParentFile = filedesc.SurrogateProto2 + xd.L0.FullName = protoreflect.FullName(xi.Name) + xd.L1.Number = protoreflect.FieldNumber(xi.Field) + xd.L1.Cardinality = fd.L1.Cardinality + xd.L1.Kind = fd.L1.Kind + xd.L2.IsPacked = fd.L1.IsPacked + xd.L2.Default = fd.L1.Default + xd.L1.Extendee = Export{}.MessageDescriptorOf(xi.ExtendedType) + xd.L2.Enum = ed + xd.L2.Message = md + + // Derive real extension field name for MessageSets. + if messageset.IsMessageSet(xd.L1.Extendee) && md.FullName() == xd.L0.FullName { + xd.L0.FullName = xd.L0.FullName.Append(messageset.ExtensionName) + } + + tt := reflect.TypeOf(xi.ExtensionType) + if isOptional { + tt = tt.Elem() + } + xi.goType = tt + xi.desc = extensionTypeDescriptor{xd, xi} +} + +type placeholderExtension struct { + name protoreflect.FullName + number protoreflect.FieldNumber +} + +func (x placeholderExtension) ParentFile() protoreflect.FileDescriptor { return nil } +func (x placeholderExtension) Parent() protoreflect.Descriptor { return nil } +func (x placeholderExtension) Index() int { return 0 } +func (x placeholderExtension) Syntax() protoreflect.Syntax { return 0 } +func (x placeholderExtension) Name() protoreflect.Name { return x.name.Name() } +func (x placeholderExtension) FullName() protoreflect.FullName { return x.name } +func (x placeholderExtension) IsPlaceholder() bool { return true } +func (x placeholderExtension) Options() protoreflect.ProtoMessage { return descopts.Field } +func (x placeholderExtension) Number() protoreflect.FieldNumber { return x.number } +func (x placeholderExtension) Cardinality() protoreflect.Cardinality { return 0 } +func (x placeholderExtension) Kind() protoreflect.Kind { return 0 } +func (x placeholderExtension) HasJSONName() bool { return false } +func (x placeholderExtension) JSONName() string { return "[" + string(x.name) + "]" } +func (x placeholderExtension) TextName() string { return "[" + string(x.name) + "]" } +func (x placeholderExtension) HasPresence() bool { return false } +func (x placeholderExtension) HasOptionalKeyword() bool { return false } +func (x placeholderExtension) IsExtension() bool { return true } +func (x placeholderExtension) IsWeak() bool { return false } +func (x placeholderExtension) IsPacked() bool { return false } +func (x placeholderExtension) IsList() bool { return false } +func (x placeholderExtension) IsMap() bool { return false } +func (x placeholderExtension) MapKey() protoreflect.FieldDescriptor { return nil } +func (x placeholderExtension) MapValue() protoreflect.FieldDescriptor { return nil } +func (x placeholderExtension) HasDefault() bool { return false } +func (x placeholderExtension) Default() protoreflect.Value { return protoreflect.Value{} } +func (x placeholderExtension) DefaultEnumValue() protoreflect.EnumValueDescriptor { return nil } +func (x placeholderExtension) ContainingOneof() protoreflect.OneofDescriptor { return nil } +func (x placeholderExtension) ContainingMessage() protoreflect.MessageDescriptor { return nil } +func (x placeholderExtension) Enum() protoreflect.EnumDescriptor { return nil } +func (x placeholderExtension) Message() protoreflect.MessageDescriptor { return nil } +func (x placeholderExtension) ProtoType(protoreflect.FieldDescriptor) { return } +func (x placeholderExtension) ProtoInternal(pragma.DoNotImplement) { return } diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go new file mode 100644 index 0000000..9ab0910 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_file.go @@ -0,0 +1,81 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "bytes" + "compress/gzip" + "io/ioutil" + "sync" + + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Every enum and message type generated by protoc-gen-go since commit 2fc053c5 +// on February 25th, 2016 has had a method to get the raw descriptor. +// Types that were not generated by protoc-gen-go or were generated prior +// to that version are not supported. +// +// The []byte returned is the encoded form of a FileDescriptorProto message +// compressed using GZIP. The []int is the path from the top-level file +// to the specific message or enum declaration. +type ( + enumV1 interface { + EnumDescriptor() ([]byte, []int) + } + messageV1 interface { + Descriptor() ([]byte, []int) + } +) + +var legacyFileDescCache sync.Map // map[*byte]protoreflect.FileDescriptor + +// legacyLoadFileDesc unmarshals b as a compressed FileDescriptorProto message. +// +// This assumes that b is immutable and that b does not refer to part of a +// concatenated series of GZIP files (which would require shenanigans that +// rely on the concatenation properties of both protobufs and GZIP). +// File descriptors generated by protoc-gen-go do not rely on that property. +func legacyLoadFileDesc(b []byte) protoreflect.FileDescriptor { + // Fast-path: check whether we already have a cached file descriptor. + if fd, ok := legacyFileDescCache.Load(&b[0]); ok { + return fd.(protoreflect.FileDescriptor) + } + + // Slow-path: decompress and unmarshal the file descriptor proto. + zr, err := gzip.NewReader(bytes.NewReader(b)) + if err != nil { + panic(err) + } + b2, err := ioutil.ReadAll(zr) + if err != nil { + panic(err) + } + + fd := filedesc.Builder{ + RawDescriptor: b2, + FileRegistry: resolverOnly{protoregistry.GlobalFiles}, // do not register back to global registry + }.Build().File + if fd, ok := legacyFileDescCache.LoadOrStore(&b[0], fd); ok { + return fd.(protoreflect.FileDescriptor) + } + return fd +} + +type resolverOnly struct { + reg *protoregistry.Files +} + +func (r resolverOnly) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + return r.reg.FindFileByPath(path) +} +func (r resolverOnly) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + return r.reg.FindDescriptorByName(name) +} +func (resolverOnly) RegisterFile(protoreflect.FileDescriptor) error { + return nil +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go new file mode 100644 index 0000000..61c483f --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go @@ -0,0 +1,563 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strings" + "sync" + + "google.golang.org/protobuf/internal/descopts" + ptag "google.golang.org/protobuf/internal/encoding/tag" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// legacyWrapMessage wraps v as a protoreflect.Message, +// where v must be a *struct kind and not implement the v2 API already. +func legacyWrapMessage(v reflect.Value) protoreflect.Message { + t := v.Type() + if t.Kind() != reflect.Ptr || t.Elem().Kind() != reflect.Struct { + return aberrantMessage{v: v} + } + mt := legacyLoadMessageInfo(t, "") + return mt.MessageOf(v.Interface()) +} + +// legacyLoadMessageType dynamically loads a protoreflect.Type for t, +// where t must be not implement the v2 API already. +// The provided name is used if it cannot be determined from the message. +func legacyLoadMessageType(t reflect.Type, name protoreflect.FullName) protoreflect.MessageType { + if t.Kind() != reflect.Ptr || t.Elem().Kind() != reflect.Struct { + return aberrantMessageType{t} + } + return legacyLoadMessageInfo(t, name) +} + +var legacyMessageTypeCache sync.Map // map[reflect.Type]*MessageInfo + +// legacyLoadMessageInfo dynamically loads a *MessageInfo for t, +// where t must be a *struct kind and not implement the v2 API already. +// The provided name is used if it cannot be determined from the message. +func legacyLoadMessageInfo(t reflect.Type, name protoreflect.FullName) *MessageInfo { + // Fast-path: check if a MessageInfo is cached for this concrete type. + if mt, ok := legacyMessageTypeCache.Load(t); ok { + return mt.(*MessageInfo) + } + + // Slow-path: derive message descriptor and initialize MessageInfo. + mi := &MessageInfo{ + Desc: legacyLoadMessageDesc(t, name), + GoReflectType: t, + } + + var hasMarshal, hasUnmarshal bool + v := reflect.Zero(t).Interface() + if _, hasMarshal = v.(legacyMarshaler); hasMarshal { + mi.methods.Marshal = legacyMarshal + + // We have no way to tell whether the type's Marshal method + // supports deterministic serialization or not, but this + // preserves the v1 implementation's behavior of always + // calling Marshal methods when present. + mi.methods.Flags |= protoiface.SupportMarshalDeterministic + } + if _, hasUnmarshal = v.(legacyUnmarshaler); hasUnmarshal { + mi.methods.Unmarshal = legacyUnmarshal + } + if _, hasMerge := v.(legacyMerger); hasMerge || (hasMarshal && hasUnmarshal) { + mi.methods.Merge = legacyMerge + } + + if mi, ok := legacyMessageTypeCache.LoadOrStore(t, mi); ok { + return mi.(*MessageInfo) + } + return mi +} + +var legacyMessageDescCache sync.Map // map[reflect.Type]protoreflect.MessageDescriptor + +// LegacyLoadMessageDesc returns an MessageDescriptor derived from the Go type, +// which should be a *struct kind and must not implement the v2 API already. +// +// This is exported for testing purposes. +func LegacyLoadMessageDesc(t reflect.Type) protoreflect.MessageDescriptor { + return legacyLoadMessageDesc(t, "") +} +func legacyLoadMessageDesc(t reflect.Type, name protoreflect.FullName) protoreflect.MessageDescriptor { + // Fast-path: check if a MessageDescriptor is cached for this concrete type. + if mi, ok := legacyMessageDescCache.Load(t); ok { + return mi.(protoreflect.MessageDescriptor) + } + + // Slow-path: initialize MessageDescriptor from the raw descriptor. + mv := reflect.Zero(t).Interface() + if _, ok := mv.(protoreflect.ProtoMessage); ok { + panic(fmt.Sprintf("%v already implements proto.Message", t)) + } + mdV1, ok := mv.(messageV1) + if !ok { + return aberrantLoadMessageDesc(t, name) + } + + // If this is a dynamic message type where there isn't a 1-1 mapping between + // Go and protobuf types, calling the Descriptor method on the zero value of + // the message type isn't likely to work. If it panics, swallow the panic and + // continue as if the Descriptor method wasn't present. + b, idxs := func() ([]byte, []int) { + defer func() { + recover() + }() + return mdV1.Descriptor() + }() + if b == nil { + return aberrantLoadMessageDesc(t, name) + } + + // If the Go type has no fields, then this might be a proto3 empty message + // from before the size cache was added. If there are any fields, check to + // see that at least one of them looks like something we generated. + if t.Elem().Kind() == reflect.Struct { + if nfield := t.Elem().NumField(); nfield > 0 { + hasProtoField := false + for i := 0; i < nfield; i++ { + f := t.Elem().Field(i) + if f.Tag.Get("protobuf") != "" || f.Tag.Get("protobuf_oneof") != "" || strings.HasPrefix(f.Name, "XXX_") { + hasProtoField = true + break + } + } + if !hasProtoField { + return aberrantLoadMessageDesc(t, name) + } + } + } + + md := legacyLoadFileDesc(b).Messages().Get(idxs[0]) + for _, i := range idxs[1:] { + md = md.Messages().Get(i) + } + if name != "" && md.FullName() != name { + panic(fmt.Sprintf("mismatching message name: got %v, want %v", md.FullName(), name)) + } + if md, ok := legacyMessageDescCache.LoadOrStore(t, md); ok { + return md.(protoreflect.MessageDescriptor) + } + return md +} + +var ( + aberrantMessageDescLock sync.Mutex + aberrantMessageDescCache map[reflect.Type]protoreflect.MessageDescriptor +) + +// aberrantLoadMessageDesc returns an MessageDescriptor derived from the Go type, +// which must not implement protoreflect.ProtoMessage or messageV1. +// +// This is a best-effort derivation of the message descriptor using the protobuf +// tags on the struct fields. +func aberrantLoadMessageDesc(t reflect.Type, name protoreflect.FullName) protoreflect.MessageDescriptor { + aberrantMessageDescLock.Lock() + defer aberrantMessageDescLock.Unlock() + if aberrantMessageDescCache == nil { + aberrantMessageDescCache = make(map[reflect.Type]protoreflect.MessageDescriptor) + } + return aberrantLoadMessageDescReentrant(t, name) +} +func aberrantLoadMessageDescReentrant(t reflect.Type, name protoreflect.FullName) protoreflect.MessageDescriptor { + // Fast-path: check if an MessageDescriptor is cached for this concrete type. + if md, ok := aberrantMessageDescCache[t]; ok { + return md + } + + // Slow-path: construct a descriptor from the Go struct type (best-effort). + // Cache the MessageDescriptor early on so that we can resolve internal + // cyclic references. + md := &filedesc.Message{L2: new(filedesc.MessageL2)} + md.L0.FullName = aberrantDeriveMessageName(t, name) + md.L0.ParentFile = filedesc.SurrogateProto2 + aberrantMessageDescCache[t] = md + + if t.Kind() != reflect.Ptr || t.Elem().Kind() != reflect.Struct { + return md + } + + // Try to determine if the message is using proto3 by checking scalars. + for i := 0; i < t.Elem().NumField(); i++ { + f := t.Elem().Field(i) + if tag := f.Tag.Get("protobuf"); tag != "" { + switch f.Type.Kind() { + case reflect.Bool, reflect.Int32, reflect.Int64, reflect.Uint32, reflect.Uint64, reflect.Float32, reflect.Float64, reflect.String: + md.L0.ParentFile = filedesc.SurrogateProto3 + } + for _, s := range strings.Split(tag, ",") { + if s == "proto3" { + md.L0.ParentFile = filedesc.SurrogateProto3 + } + } + } + } + + // Obtain a list of oneof wrapper types. + var oneofWrappers []reflect.Type + for _, method := range []string{"XXX_OneofFuncs", "XXX_OneofWrappers"} { + if fn, ok := t.MethodByName(method); ok { + for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) { + if vs, ok := v.Interface().([]interface{}); ok { + for _, v := range vs { + oneofWrappers = append(oneofWrappers, reflect.TypeOf(v)) + } + } + } + } + } + + // Obtain a list of the extension ranges. + if fn, ok := t.MethodByName("ExtensionRangeArray"); ok { + vs := fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))})[0] + for i := 0; i < vs.Len(); i++ { + v := vs.Index(i) + md.L2.ExtensionRanges.List = append(md.L2.ExtensionRanges.List, [2]protoreflect.FieldNumber{ + protoreflect.FieldNumber(v.FieldByName("Start").Int()), + protoreflect.FieldNumber(v.FieldByName("End").Int() + 1), + }) + md.L2.ExtensionRangeOptions = append(md.L2.ExtensionRangeOptions, nil) + } + } + + // Derive the message fields by inspecting the struct fields. + for i := 0; i < t.Elem().NumField(); i++ { + f := t.Elem().Field(i) + if tag := f.Tag.Get("protobuf"); tag != "" { + tagKey := f.Tag.Get("protobuf_key") + tagVal := f.Tag.Get("protobuf_val") + aberrantAppendField(md, f.Type, tag, tagKey, tagVal) + } + if tag := f.Tag.Get("protobuf_oneof"); tag != "" { + n := len(md.L2.Oneofs.List) + md.L2.Oneofs.List = append(md.L2.Oneofs.List, filedesc.Oneof{}) + od := &md.L2.Oneofs.List[n] + od.L0.FullName = md.FullName().Append(protoreflect.Name(tag)) + od.L0.ParentFile = md.L0.ParentFile + od.L0.Parent = md + od.L0.Index = n + + for _, t := range oneofWrappers { + if t.Implements(f.Type) { + f := t.Elem().Field(0) + if tag := f.Tag.Get("protobuf"); tag != "" { + aberrantAppendField(md, f.Type, tag, "", "") + fd := &md.L2.Fields.List[len(md.L2.Fields.List)-1] + fd.L1.ContainingOneof = od + od.L1.Fields.List = append(od.L1.Fields.List, fd) + } + } + } + } + } + + return md +} + +func aberrantDeriveMessageName(t reflect.Type, name protoreflect.FullName) protoreflect.FullName { + if name.IsValid() { + return name + } + func() { + defer func() { recover() }() // swallow possible nil panics + if m, ok := reflect.Zero(t).Interface().(interface{ XXX_MessageName() string }); ok { + name = protoreflect.FullName(m.XXX_MessageName()) + } + }() + if name.IsValid() { + return name + } + if t.Kind() == reflect.Ptr { + t = t.Elem() + } + return AberrantDeriveFullName(t) +} + +func aberrantAppendField(md *filedesc.Message, goType reflect.Type, tag, tagKey, tagVal string) { + t := goType + isOptional := t.Kind() == reflect.Ptr && t.Elem().Kind() != reflect.Struct + isRepeated := t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 + if isOptional || isRepeated { + t = t.Elem() + } + fd := ptag.Unmarshal(tag, t, placeholderEnumValues{}).(*filedesc.Field) + + // Append field descriptor to the message. + n := len(md.L2.Fields.List) + md.L2.Fields.List = append(md.L2.Fields.List, *fd) + fd = &md.L2.Fields.List[n] + fd.L0.FullName = md.FullName().Append(fd.Name()) + fd.L0.ParentFile = md.L0.ParentFile + fd.L0.Parent = md + fd.L0.Index = n + + if fd.L1.IsWeak || fd.L1.HasPacked { + fd.L1.Options = func() protoreflect.ProtoMessage { + opts := descopts.Field.ProtoReflect().New() + if fd.L1.IsWeak { + opts.Set(opts.Descriptor().Fields().ByName("weak"), protoreflect.ValueOfBool(true)) + } + if fd.L1.HasPacked { + opts.Set(opts.Descriptor().Fields().ByName("packed"), protoreflect.ValueOfBool(fd.L1.IsPacked)) + } + return opts.Interface() + } + } + + // Populate Enum and Message. + if fd.Enum() == nil && fd.Kind() == protoreflect.EnumKind { + switch v := reflect.Zero(t).Interface().(type) { + case protoreflect.Enum: + fd.L1.Enum = v.Descriptor() + default: + fd.L1.Enum = LegacyLoadEnumDesc(t) + } + } + if fd.Message() == nil && (fd.Kind() == protoreflect.MessageKind || fd.Kind() == protoreflect.GroupKind) { + switch v := reflect.Zero(t).Interface().(type) { + case protoreflect.ProtoMessage: + fd.L1.Message = v.ProtoReflect().Descriptor() + case messageV1: + fd.L1.Message = LegacyLoadMessageDesc(t) + default: + if t.Kind() == reflect.Map { + n := len(md.L1.Messages.List) + md.L1.Messages.List = append(md.L1.Messages.List, filedesc.Message{L2: new(filedesc.MessageL2)}) + md2 := &md.L1.Messages.List[n] + md2.L0.FullName = md.FullName().Append(protoreflect.Name(strs.MapEntryName(string(fd.Name())))) + md2.L0.ParentFile = md.L0.ParentFile + md2.L0.Parent = md + md2.L0.Index = n + + md2.L1.IsMapEntry = true + md2.L2.Options = func() protoreflect.ProtoMessage { + opts := descopts.Message.ProtoReflect().New() + opts.Set(opts.Descriptor().Fields().ByName("map_entry"), protoreflect.ValueOfBool(true)) + return opts.Interface() + } + + aberrantAppendField(md2, t.Key(), tagKey, "", "") + aberrantAppendField(md2, t.Elem(), tagVal, "", "") + + fd.L1.Message = md2 + break + } + fd.L1.Message = aberrantLoadMessageDescReentrant(t, "") + } + } +} + +type placeholderEnumValues struct { + protoreflect.EnumValueDescriptors +} + +func (placeholderEnumValues) ByNumber(n protoreflect.EnumNumber) protoreflect.EnumValueDescriptor { + return filedesc.PlaceholderEnumValue(protoreflect.FullName(fmt.Sprintf("UNKNOWN_%d", n))) +} + +// legacyMarshaler is the proto.Marshaler interface superseded by protoiface.Methoder. +type legacyMarshaler interface { + Marshal() ([]byte, error) +} + +// legacyUnmarshaler is the proto.Unmarshaler interface superseded by protoiface.Methoder. +type legacyUnmarshaler interface { + Unmarshal([]byte) error +} + +// legacyMerger is the proto.Merger interface superseded by protoiface.Methoder. +type legacyMerger interface { + Merge(protoiface.MessageV1) +} + +var aberrantProtoMethods = &protoiface.Methods{ + Marshal: legacyMarshal, + Unmarshal: legacyUnmarshal, + Merge: legacyMerge, + + // We have no way to tell whether the type's Marshal method + // supports deterministic serialization or not, but this + // preserves the v1 implementation's behavior of always + // calling Marshal methods when present. + Flags: protoiface.SupportMarshalDeterministic, +} + +func legacyMarshal(in protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + v := in.Message.(unwrapper).protoUnwrap() + marshaler, ok := v.(legacyMarshaler) + if !ok { + return protoiface.MarshalOutput{}, errors.New("%T does not implement Marshal", v) + } + out, err := marshaler.Marshal() + if in.Buf != nil { + out = append(in.Buf, out...) + } + return protoiface.MarshalOutput{ + Buf: out, + }, err +} + +func legacyUnmarshal(in protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + v := in.Message.(unwrapper).protoUnwrap() + unmarshaler, ok := v.(legacyUnmarshaler) + if !ok { + return protoiface.UnmarshalOutput{}, errors.New("%T does not implement Unmarshal", v) + } + return protoiface.UnmarshalOutput{}, unmarshaler.Unmarshal(in.Buf) +} + +func legacyMerge(in protoiface.MergeInput) protoiface.MergeOutput { + // Check whether this supports the legacy merger. + dstv := in.Destination.(unwrapper).protoUnwrap() + merger, ok := dstv.(legacyMerger) + if ok { + merger.Merge(Export{}.ProtoMessageV1Of(in.Source)) + return protoiface.MergeOutput{Flags: protoiface.MergeComplete} + } + + // If legacy merger is unavailable, implement merge in terms of + // a marshal and unmarshal operation. + srcv := in.Source.(unwrapper).protoUnwrap() + marshaler, ok := srcv.(legacyMarshaler) + if !ok { + return protoiface.MergeOutput{} + } + dstv = in.Destination.(unwrapper).protoUnwrap() + unmarshaler, ok := dstv.(legacyUnmarshaler) + if !ok { + return protoiface.MergeOutput{} + } + if !in.Source.IsValid() { + // Legacy Marshal methods may not function on nil messages. + // Check for a typed nil source only after we confirm that + // legacy Marshal/Unmarshal methods are present, for + // consistency. + return protoiface.MergeOutput{Flags: protoiface.MergeComplete} + } + b, err := marshaler.Marshal() + if err != nil { + return protoiface.MergeOutput{} + } + err = unmarshaler.Unmarshal(b) + if err != nil { + return protoiface.MergeOutput{} + } + return protoiface.MergeOutput{Flags: protoiface.MergeComplete} +} + +// aberrantMessageType implements MessageType for all types other than pointer-to-struct. +type aberrantMessageType struct { + t reflect.Type +} + +func (mt aberrantMessageType) New() protoreflect.Message { + if mt.t.Kind() == reflect.Ptr { + return aberrantMessage{reflect.New(mt.t.Elem())} + } + return aberrantMessage{reflect.Zero(mt.t)} +} +func (mt aberrantMessageType) Zero() protoreflect.Message { + return aberrantMessage{reflect.Zero(mt.t)} +} +func (mt aberrantMessageType) GoType() reflect.Type { + return mt.t +} +func (mt aberrantMessageType) Descriptor() protoreflect.MessageDescriptor { + return LegacyLoadMessageDesc(mt.t) +} + +// aberrantMessage implements Message for all types other than pointer-to-struct. +// +// When the underlying type implements legacyMarshaler or legacyUnmarshaler, +// the aberrant Message can be marshaled or unmarshaled. Otherwise, there is +// not much that can be done with values of this type. +type aberrantMessage struct { + v reflect.Value +} + +// Reset implements the v1 proto.Message.Reset method. +func (m aberrantMessage) Reset() { + if mr, ok := m.v.Interface().(interface{ Reset() }); ok { + mr.Reset() + return + } + if m.v.Kind() == reflect.Ptr && !m.v.IsNil() { + m.v.Elem().Set(reflect.Zero(m.v.Type().Elem())) + } +} + +func (m aberrantMessage) ProtoReflect() protoreflect.Message { + return m +} + +func (m aberrantMessage) Descriptor() protoreflect.MessageDescriptor { + return LegacyLoadMessageDesc(m.v.Type()) +} +func (m aberrantMessage) Type() protoreflect.MessageType { + return aberrantMessageType{m.v.Type()} +} +func (m aberrantMessage) New() protoreflect.Message { + if m.v.Type().Kind() == reflect.Ptr { + return aberrantMessage{reflect.New(m.v.Type().Elem())} + } + return aberrantMessage{reflect.Zero(m.v.Type())} +} +func (m aberrantMessage) Interface() protoreflect.ProtoMessage { + return m +} +func (m aberrantMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + return +} +func (m aberrantMessage) Has(protoreflect.FieldDescriptor) bool { + return false +} +func (m aberrantMessage) Clear(protoreflect.FieldDescriptor) { + panic("invalid Message.Clear on " + string(m.Descriptor().FullName())) +} +func (m aberrantMessage) Get(fd protoreflect.FieldDescriptor) protoreflect.Value { + if fd.Default().IsValid() { + return fd.Default() + } + panic("invalid Message.Get on " + string(m.Descriptor().FullName())) +} +func (m aberrantMessage) Set(protoreflect.FieldDescriptor, protoreflect.Value) { + panic("invalid Message.Set on " + string(m.Descriptor().FullName())) +} +func (m aberrantMessage) Mutable(protoreflect.FieldDescriptor) protoreflect.Value { + panic("invalid Message.Mutable on " + string(m.Descriptor().FullName())) +} +func (m aberrantMessage) NewField(protoreflect.FieldDescriptor) protoreflect.Value { + panic("invalid Message.NewField on " + string(m.Descriptor().FullName())) +} +func (m aberrantMessage) WhichOneof(protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + panic("invalid Message.WhichOneof descriptor on " + string(m.Descriptor().FullName())) +} +func (m aberrantMessage) GetUnknown() protoreflect.RawFields { + return nil +} +func (m aberrantMessage) SetUnknown(protoreflect.RawFields) { + // SetUnknown discards its input on messages which don't support unknown field storage. +} +func (m aberrantMessage) IsValid() bool { + if m.v.Kind() == reflect.Ptr { + return !m.v.IsNil() + } + return false +} +func (m aberrantMessage) ProtoMethods() *protoiface.Methods { + return aberrantProtoMethods +} +func (m aberrantMessage) protoUnwrap() interface{} { + return m.v.Interface() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/merge.go b/vendor/google.golang.org/protobuf/internal/impl/merge.go new file mode 100644 index 0000000..7e65f64 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/merge.go @@ -0,0 +1,176 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +type mergeOptions struct{} + +func (o mergeOptions) Merge(dst, src proto.Message) { + proto.Merge(dst, src) +} + +// merge is protoreflect.Methods.Merge. +func (mi *MessageInfo) merge(in protoiface.MergeInput) protoiface.MergeOutput { + dp, ok := mi.getPointer(in.Destination) + if !ok { + return protoiface.MergeOutput{} + } + sp, ok := mi.getPointer(in.Source) + if !ok { + return protoiface.MergeOutput{} + } + mi.mergePointer(dp, sp, mergeOptions{}) + return protoiface.MergeOutput{Flags: protoiface.MergeComplete} +} + +func (mi *MessageInfo) mergePointer(dst, src pointer, opts mergeOptions) { + mi.init() + if dst.IsNil() { + panic(fmt.Sprintf("invalid value: merging into nil message")) + } + if src.IsNil() { + return + } + for _, f := range mi.orderedCoderFields { + if f.funcs.merge == nil { + continue + } + sfptr := src.Apply(f.offset) + if f.isPointer && sfptr.Elem().IsNil() { + continue + } + f.funcs.merge(dst.Apply(f.offset), sfptr, f, opts) + } + if mi.extensionOffset.IsValid() { + sext := src.Apply(mi.extensionOffset).Extensions() + dext := dst.Apply(mi.extensionOffset).Extensions() + if *dext == nil { + *dext = make(map[int32]ExtensionField) + } + for num, sx := range *sext { + xt := sx.Type() + xi := getExtensionFieldInfo(xt) + if xi.funcs.merge == nil { + continue + } + dx := (*dext)[num] + var dv protoreflect.Value + if dx.Type() == sx.Type() { + dv = dx.Value() + } + if !dv.IsValid() && xi.unmarshalNeedsValue { + dv = xt.New() + } + dv = xi.funcs.merge(dv, sx.Value(), opts) + dx.Set(sx.Type(), dv) + (*dext)[num] = dx + } + } + if mi.unknownOffset.IsValid() { + su := mi.getUnknownBytes(src) + if su != nil && len(*su) > 0 { + du := mi.mutableUnknownBytes(dst) + *du = append(*du, *su...) + } + } +} + +func mergeScalarValue(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value { + return src +} + +func mergeBytesValue(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value { + return protoreflect.ValueOfBytes(append(emptyBuf[:], src.Bytes()...)) +} + +func mergeListValue(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value { + dstl := dst.List() + srcl := src.List() + for i, llen := 0, srcl.Len(); i < llen; i++ { + dstl.Append(srcl.Get(i)) + } + return dst +} + +func mergeBytesListValue(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value { + dstl := dst.List() + srcl := src.List() + for i, llen := 0, srcl.Len(); i < llen; i++ { + sb := srcl.Get(i).Bytes() + db := append(emptyBuf[:], sb...) + dstl.Append(protoreflect.ValueOfBytes(db)) + } + return dst +} + +func mergeMessageListValue(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value { + dstl := dst.List() + srcl := src.List() + for i, llen := 0, srcl.Len(); i < llen; i++ { + sm := srcl.Get(i).Message() + dm := proto.Clone(sm.Interface()).ProtoReflect() + dstl.Append(protoreflect.ValueOfMessage(dm)) + } + return dst +} + +func mergeMessageValue(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value { + opts.Merge(dst.Message().Interface(), src.Message().Interface()) + return dst +} + +func mergeMessage(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + if f.mi != nil { + if dst.Elem().IsNil() { + dst.SetPointer(pointerOfValue(reflect.New(f.mi.GoReflectType.Elem()))) + } + f.mi.mergePointer(dst.Elem(), src.Elem(), opts) + } else { + dm := dst.AsValueOf(f.ft).Elem() + sm := src.AsValueOf(f.ft).Elem() + if dm.IsNil() { + dm.Set(reflect.New(f.ft.Elem())) + } + opts.Merge(asMessage(dm), asMessage(sm)) + } +} + +func mergeMessageSlice(dst, src pointer, f *coderFieldInfo, opts mergeOptions) { + for _, sp := range src.PointerSlice() { + dm := reflect.New(f.ft.Elem().Elem()) + if f.mi != nil { + f.mi.mergePointer(pointerOfValue(dm), sp, opts) + } else { + opts.Merge(asMessage(dm), asMessage(sp.AsValueOf(f.ft.Elem().Elem()))) + } + dst.AppendPointerSlice(pointerOfValue(dm)) + } +} + +func mergeBytes(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Bytes() = append(emptyBuf[:], *src.Bytes()...) +} + +func mergeBytesNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Bytes() + if len(v) > 0 { + *dst.Bytes() = append(emptyBuf[:], v...) + } +} + +func mergeBytesSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.BytesSlice() + for _, v := range *src.BytesSlice() { + *ds = append(*ds, append(emptyBuf[:], v...)) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go b/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go new file mode 100644 index 0000000..8816c27 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/merge_gen.go @@ -0,0 +1,209 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package impl + +import () + +func mergeBool(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Bool() = *src.Bool() +} + +func mergeBoolNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Bool() + if v != false { + *dst.Bool() = v + } +} + +func mergeBoolPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.BoolPtr() + if p != nil { + v := *p + *dst.BoolPtr() = &v + } +} + +func mergeBoolSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.BoolSlice() + ss := src.BoolSlice() + *ds = append(*ds, *ss...) +} + +func mergeInt32(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Int32() = *src.Int32() +} + +func mergeInt32NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Int32() + if v != 0 { + *dst.Int32() = v + } +} + +func mergeInt32Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Int32Ptr() + if p != nil { + v := *p + *dst.Int32Ptr() = &v + } +} + +func mergeInt32Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Int32Slice() + ss := src.Int32Slice() + *ds = append(*ds, *ss...) +} + +func mergeUint32(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Uint32() = *src.Uint32() +} + +func mergeUint32NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Uint32() + if v != 0 { + *dst.Uint32() = v + } +} + +func mergeUint32Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Uint32Ptr() + if p != nil { + v := *p + *dst.Uint32Ptr() = &v + } +} + +func mergeUint32Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Uint32Slice() + ss := src.Uint32Slice() + *ds = append(*ds, *ss...) +} + +func mergeInt64(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Int64() = *src.Int64() +} + +func mergeInt64NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Int64() + if v != 0 { + *dst.Int64() = v + } +} + +func mergeInt64Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Int64Ptr() + if p != nil { + v := *p + *dst.Int64Ptr() = &v + } +} + +func mergeInt64Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Int64Slice() + ss := src.Int64Slice() + *ds = append(*ds, *ss...) +} + +func mergeUint64(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Uint64() = *src.Uint64() +} + +func mergeUint64NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Uint64() + if v != 0 { + *dst.Uint64() = v + } +} + +func mergeUint64Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Uint64Ptr() + if p != nil { + v := *p + *dst.Uint64Ptr() = &v + } +} + +func mergeUint64Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Uint64Slice() + ss := src.Uint64Slice() + *ds = append(*ds, *ss...) +} + +func mergeFloat32(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Float32() = *src.Float32() +} + +func mergeFloat32NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Float32() + if v != 0 { + *dst.Float32() = v + } +} + +func mergeFloat32Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Float32Ptr() + if p != nil { + v := *p + *dst.Float32Ptr() = &v + } +} + +func mergeFloat32Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Float32Slice() + ss := src.Float32Slice() + *ds = append(*ds, *ss...) +} + +func mergeFloat64(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.Float64() = *src.Float64() +} + +func mergeFloat64NoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.Float64() + if v != 0 { + *dst.Float64() = v + } +} + +func mergeFloat64Ptr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.Float64Ptr() + if p != nil { + v := *p + *dst.Float64Ptr() = &v + } +} + +func mergeFloat64Slice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.Float64Slice() + ss := src.Float64Slice() + *ds = append(*ds, *ss...) +} + +func mergeString(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + *dst.String() = *src.String() +} + +func mergeStringNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + v := *src.String() + if v != "" { + *dst.String() = v + } +} + +func mergeStringPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + p := *src.StringPtr() + if p != nil { + v := *p + *dst.StringPtr() = &v + } +} + +func mergeStringSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { + ds := dst.StringSlice() + ss := src.StringSlice() + *ds = append(*ds, *ss...) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message.go b/vendor/google.golang.org/protobuf/internal/impl/message.go new file mode 100644 index 0000000..4f5fb67 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message.go @@ -0,0 +1,279 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + "strconv" + "strings" + "sync" + "sync/atomic" + + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// MessageInfo provides protobuf related functionality for a given Go type +// that represents a message. A given instance of MessageInfo is tied to +// exactly one Go type, which must be a pointer to a struct type. +// +// The exported fields must be populated before any methods are called +// and cannot be mutated after set. +type MessageInfo struct { + // GoReflectType is the underlying message Go type and must be populated. + GoReflectType reflect.Type // pointer to struct + + // Desc is the underlying message descriptor type and must be populated. + Desc protoreflect.MessageDescriptor + + // Exporter must be provided in a purego environment in order to provide + // access to unexported fields. + Exporter exporter + + // OneofWrappers is list of pointers to oneof wrapper struct types. + OneofWrappers []interface{} + + initMu sync.Mutex // protects all unexported fields + initDone uint32 + + reflectMessageInfo // for reflection implementation + coderMessageInfo // for fast-path method implementations +} + +// exporter is a function that returns a reference to the ith field of v, +// where v is a pointer to a struct. It returns nil if it does not support +// exporting the requested field (e.g., already exported). +type exporter func(v interface{}, i int) interface{} + +// getMessageInfo returns the MessageInfo for any message type that +// is generated by our implementation of protoc-gen-go (for v2 and on). +// If it is unable to obtain a MessageInfo, it returns nil. +func getMessageInfo(mt reflect.Type) *MessageInfo { + m, ok := reflect.Zero(mt).Interface().(protoreflect.ProtoMessage) + if !ok { + return nil + } + mr, ok := m.ProtoReflect().(interface{ ProtoMessageInfo() *MessageInfo }) + if !ok { + return nil + } + return mr.ProtoMessageInfo() +} + +func (mi *MessageInfo) init() { + // This function is called in the hot path. Inline the sync.Once logic, + // since allocating a closure for Once.Do is expensive. + // Keep init small to ensure that it can be inlined. + if atomic.LoadUint32(&mi.initDone) == 0 { + mi.initOnce() + } +} + +func (mi *MessageInfo) initOnce() { + mi.initMu.Lock() + defer mi.initMu.Unlock() + if mi.initDone == 1 { + return + } + + t := mi.GoReflectType + if t.Kind() != reflect.Ptr && t.Elem().Kind() != reflect.Struct { + panic(fmt.Sprintf("got %v, want *struct kind", t)) + } + t = t.Elem() + + si := mi.makeStructInfo(t) + mi.makeReflectFuncs(t, si) + mi.makeCoderMethods(t, si) + + atomic.StoreUint32(&mi.initDone, 1) +} + +// getPointer returns the pointer for a message, which should be of +// the type of the MessageInfo. If the message is of a different type, +// it returns ok==false. +func (mi *MessageInfo) getPointer(m protoreflect.Message) (p pointer, ok bool) { + switch m := m.(type) { + case *messageState: + return m.pointer(), m.messageInfo() == mi + case *messageReflectWrapper: + return m.pointer(), m.messageInfo() == mi + } + return pointer{}, false +} + +type ( + SizeCache = int32 + WeakFields = map[int32]protoreflect.ProtoMessage + UnknownFields = unknownFieldsA // TODO: switch to unknownFieldsB + unknownFieldsA = []byte + unknownFieldsB = *[]byte + ExtensionFields = map[int32]ExtensionField +) + +var ( + sizecacheType = reflect.TypeOf(SizeCache(0)) + weakFieldsType = reflect.TypeOf(WeakFields(nil)) + unknownFieldsAType = reflect.TypeOf(unknownFieldsA(nil)) + unknownFieldsBType = reflect.TypeOf(unknownFieldsB(nil)) + extensionFieldsType = reflect.TypeOf(ExtensionFields(nil)) +) + +type structInfo struct { + sizecacheOffset offset + sizecacheType reflect.Type + weakOffset offset + weakType reflect.Type + unknownOffset offset + unknownType reflect.Type + extensionOffset offset + extensionType reflect.Type + + fieldsByNumber map[protoreflect.FieldNumber]reflect.StructField + oneofsByName map[protoreflect.Name]reflect.StructField + oneofWrappersByType map[reflect.Type]protoreflect.FieldNumber + oneofWrappersByNumber map[protoreflect.FieldNumber]reflect.Type +} + +func (mi *MessageInfo) makeStructInfo(t reflect.Type) structInfo { + si := structInfo{ + sizecacheOffset: invalidOffset, + weakOffset: invalidOffset, + unknownOffset: invalidOffset, + extensionOffset: invalidOffset, + + fieldsByNumber: map[protoreflect.FieldNumber]reflect.StructField{}, + oneofsByName: map[protoreflect.Name]reflect.StructField{}, + oneofWrappersByType: map[reflect.Type]protoreflect.FieldNumber{}, + oneofWrappersByNumber: map[protoreflect.FieldNumber]reflect.Type{}, + } + +fieldLoop: + for i := 0; i < t.NumField(); i++ { + switch f := t.Field(i); f.Name { + case genid.SizeCache_goname, genid.SizeCacheA_goname: + if f.Type == sizecacheType { + si.sizecacheOffset = offsetOf(f, mi.Exporter) + si.sizecacheType = f.Type + } + case genid.WeakFields_goname, genid.WeakFieldsA_goname: + if f.Type == weakFieldsType { + si.weakOffset = offsetOf(f, mi.Exporter) + si.weakType = f.Type + } + case genid.UnknownFields_goname, genid.UnknownFieldsA_goname: + if f.Type == unknownFieldsAType || f.Type == unknownFieldsBType { + si.unknownOffset = offsetOf(f, mi.Exporter) + si.unknownType = f.Type + } + case genid.ExtensionFields_goname, genid.ExtensionFieldsA_goname, genid.ExtensionFieldsB_goname: + if f.Type == extensionFieldsType { + si.extensionOffset = offsetOf(f, mi.Exporter) + si.extensionType = f.Type + } + default: + for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") { + if len(s) > 0 && strings.Trim(s, "0123456789") == "" { + n, _ := strconv.ParseUint(s, 10, 64) + si.fieldsByNumber[protoreflect.FieldNumber(n)] = f + continue fieldLoop + } + } + if s := f.Tag.Get("protobuf_oneof"); len(s) > 0 { + si.oneofsByName[protoreflect.Name(s)] = f + continue fieldLoop + } + } + } + + // Derive a mapping of oneof wrappers to fields. + oneofWrappers := mi.OneofWrappers + for _, method := range []string{"XXX_OneofFuncs", "XXX_OneofWrappers"} { + if fn, ok := reflect.PtrTo(t).MethodByName(method); ok { + for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) { + if vs, ok := v.Interface().([]interface{}); ok { + oneofWrappers = vs + } + } + } + } + for _, v := range oneofWrappers { + tf := reflect.TypeOf(v).Elem() + f := tf.Field(0) + for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") { + if len(s) > 0 && strings.Trim(s, "0123456789") == "" { + n, _ := strconv.ParseUint(s, 10, 64) + si.oneofWrappersByType[tf] = protoreflect.FieldNumber(n) + si.oneofWrappersByNumber[protoreflect.FieldNumber(n)] = tf + break + } + } + } + + return si +} + +func (mi *MessageInfo) New() protoreflect.Message { + m := reflect.New(mi.GoReflectType.Elem()).Interface() + if r, ok := m.(protoreflect.ProtoMessage); ok { + return r.ProtoReflect() + } + return mi.MessageOf(m) +} +func (mi *MessageInfo) Zero() protoreflect.Message { + return mi.MessageOf(reflect.Zero(mi.GoReflectType).Interface()) +} +func (mi *MessageInfo) Descriptor() protoreflect.MessageDescriptor { + return mi.Desc +} +func (mi *MessageInfo) Enum(i int) protoreflect.EnumType { + mi.init() + fd := mi.Desc.Fields().Get(i) + return Export{}.EnumTypeOf(mi.fieldTypes[fd.Number()]) +} +func (mi *MessageInfo) Message(i int) protoreflect.MessageType { + mi.init() + fd := mi.Desc.Fields().Get(i) + switch { + case fd.IsWeak(): + mt, _ := protoregistry.GlobalTypes.FindMessageByName(fd.Message().FullName()) + return mt + case fd.IsMap(): + return mapEntryType{fd.Message(), mi.fieldTypes[fd.Number()]} + default: + return Export{}.MessageTypeOf(mi.fieldTypes[fd.Number()]) + } +} + +type mapEntryType struct { + desc protoreflect.MessageDescriptor + valType interface{} // zero value of enum or message type +} + +func (mt mapEntryType) New() protoreflect.Message { + return nil +} +func (mt mapEntryType) Zero() protoreflect.Message { + return nil +} +func (mt mapEntryType) Descriptor() protoreflect.MessageDescriptor { + return mt.desc +} +func (mt mapEntryType) Enum(i int) protoreflect.EnumType { + fd := mt.desc.Fields().Get(i) + if fd.Enum() == nil { + return nil + } + return Export{}.EnumTypeOf(mt.valType) +} +func (mt mapEntryType) Message(i int) protoreflect.MessageType { + fd := mt.desc.Fields().Get(i) + if fd.Message() == nil { + return nil + } + return Export{}.MessageTypeOf(mt.valType) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go new file mode 100644 index 0000000..d9ea010 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go @@ -0,0 +1,463 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "reflect" + + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +type reflectMessageInfo struct { + fields map[protoreflect.FieldNumber]*fieldInfo + oneofs map[protoreflect.Name]*oneofInfo + + // fieldTypes contains the zero value of an enum or message field. + // For lists, it contains the element type. + // For maps, it contains the entry value type. + fieldTypes map[protoreflect.FieldNumber]interface{} + + // denseFields is a subset of fields where: + // 0 < fieldDesc.Number() < len(denseFields) + // It provides faster access to the fieldInfo, but may be incomplete. + denseFields []*fieldInfo + + // rangeInfos is a list of all fields (not belonging to a oneof) and oneofs. + rangeInfos []interface{} // either *fieldInfo or *oneofInfo + + getUnknown func(pointer) protoreflect.RawFields + setUnknown func(pointer, protoreflect.RawFields) + extensionMap func(pointer) *extensionMap + + nilMessage atomicNilMessage +} + +// makeReflectFuncs generates the set of functions to support reflection. +func (mi *MessageInfo) makeReflectFuncs(t reflect.Type, si structInfo) { + mi.makeKnownFieldsFunc(si) + mi.makeUnknownFieldsFunc(t, si) + mi.makeExtensionFieldsFunc(t, si) + mi.makeFieldTypes(si) +} + +// makeKnownFieldsFunc generates functions for operations that can be performed +// on each protobuf message field. It takes in a reflect.Type representing the +// Go struct and matches message fields with struct fields. +// +// This code assumes that the struct is well-formed and panics if there are +// any discrepancies. +func (mi *MessageInfo) makeKnownFieldsFunc(si structInfo) { + mi.fields = map[protoreflect.FieldNumber]*fieldInfo{} + md := mi.Desc + fds := md.Fields() + for i := 0; i < fds.Len(); i++ { + fd := fds.Get(i) + fs := si.fieldsByNumber[fd.Number()] + isOneof := fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic() + if isOneof { + fs = si.oneofsByName[fd.ContainingOneof().Name()] + } + var fi fieldInfo + switch { + case fs.Type == nil: + fi = fieldInfoForMissing(fd) // never occurs for officially generated message types + case isOneof: + fi = fieldInfoForOneof(fd, fs, mi.Exporter, si.oneofWrappersByNumber[fd.Number()]) + case fd.IsMap(): + fi = fieldInfoForMap(fd, fs, mi.Exporter) + case fd.IsList(): + fi = fieldInfoForList(fd, fs, mi.Exporter) + case fd.IsWeak(): + fi = fieldInfoForWeakMessage(fd, si.weakOffset) + case fd.Message() != nil: + fi = fieldInfoForMessage(fd, fs, mi.Exporter) + default: + fi = fieldInfoForScalar(fd, fs, mi.Exporter) + } + mi.fields[fd.Number()] = &fi + } + + mi.oneofs = map[protoreflect.Name]*oneofInfo{} + for i := 0; i < md.Oneofs().Len(); i++ { + od := md.Oneofs().Get(i) + mi.oneofs[od.Name()] = makeOneofInfo(od, si, mi.Exporter) + } + + mi.denseFields = make([]*fieldInfo, fds.Len()*2) + for i := 0; i < fds.Len(); i++ { + if fd := fds.Get(i); int(fd.Number()) < len(mi.denseFields) { + mi.denseFields[fd.Number()] = mi.fields[fd.Number()] + } + } + + for i := 0; i < fds.Len(); { + fd := fds.Get(i) + if od := fd.ContainingOneof(); od != nil && !od.IsSynthetic() { + mi.rangeInfos = append(mi.rangeInfos, mi.oneofs[od.Name()]) + i += od.Fields().Len() + } else { + mi.rangeInfos = append(mi.rangeInfos, mi.fields[fd.Number()]) + i++ + } + } + + // Introduce instability to iteration order, but keep it deterministic. + if len(mi.rangeInfos) > 1 && detrand.Bool() { + i := detrand.Intn(len(mi.rangeInfos) - 1) + mi.rangeInfos[i], mi.rangeInfos[i+1] = mi.rangeInfos[i+1], mi.rangeInfos[i] + } +} + +func (mi *MessageInfo) makeUnknownFieldsFunc(t reflect.Type, si structInfo) { + switch { + case si.unknownOffset.IsValid() && si.unknownType == unknownFieldsAType: + // Handle as []byte. + mi.getUnknown = func(p pointer) protoreflect.RawFields { + if p.IsNil() { + return nil + } + return *p.Apply(mi.unknownOffset).Bytes() + } + mi.setUnknown = func(p pointer, b protoreflect.RawFields) { + if p.IsNil() { + panic("invalid SetUnknown on nil Message") + } + *p.Apply(mi.unknownOffset).Bytes() = b + } + case si.unknownOffset.IsValid() && si.unknownType == unknownFieldsBType: + // Handle as *[]byte. + mi.getUnknown = func(p pointer) protoreflect.RawFields { + if p.IsNil() { + return nil + } + bp := p.Apply(mi.unknownOffset).BytesPtr() + if *bp == nil { + return nil + } + return **bp + } + mi.setUnknown = func(p pointer, b protoreflect.RawFields) { + if p.IsNil() { + panic("invalid SetUnknown on nil Message") + } + bp := p.Apply(mi.unknownOffset).BytesPtr() + if *bp == nil { + *bp = new([]byte) + } + **bp = b + } + default: + mi.getUnknown = func(pointer) protoreflect.RawFields { + return nil + } + mi.setUnknown = func(p pointer, _ protoreflect.RawFields) { + if p.IsNil() { + panic("invalid SetUnknown on nil Message") + } + } + } +} + +func (mi *MessageInfo) makeExtensionFieldsFunc(t reflect.Type, si structInfo) { + if si.extensionOffset.IsValid() { + mi.extensionMap = func(p pointer) *extensionMap { + if p.IsNil() { + return (*extensionMap)(nil) + } + v := p.Apply(si.extensionOffset).AsValueOf(extensionFieldsType) + return (*extensionMap)(v.Interface().(*map[int32]ExtensionField)) + } + } else { + mi.extensionMap = func(pointer) *extensionMap { + return (*extensionMap)(nil) + } + } +} +func (mi *MessageInfo) makeFieldTypes(si structInfo) { + md := mi.Desc + fds := md.Fields() + for i := 0; i < fds.Len(); i++ { + var ft reflect.Type + fd := fds.Get(i) + fs := si.fieldsByNumber[fd.Number()] + isOneof := fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic() + if isOneof { + fs = si.oneofsByName[fd.ContainingOneof().Name()] + } + var isMessage bool + switch { + case fs.Type == nil: + continue // never occurs for officially generated message types + case isOneof: + if fd.Enum() != nil || fd.Message() != nil { + ft = si.oneofWrappersByNumber[fd.Number()].Field(0).Type + } + case fd.IsMap(): + if fd.MapValue().Enum() != nil || fd.MapValue().Message() != nil { + ft = fs.Type.Elem() + } + isMessage = fd.MapValue().Message() != nil + case fd.IsList(): + if fd.Enum() != nil || fd.Message() != nil { + ft = fs.Type.Elem() + } + isMessage = fd.Message() != nil + case fd.Enum() != nil: + ft = fs.Type + if fd.HasPresence() && ft.Kind() == reflect.Ptr { + ft = ft.Elem() + } + case fd.Message() != nil: + ft = fs.Type + if fd.IsWeak() { + ft = nil + } + isMessage = true + } + if isMessage && ft != nil && ft.Kind() != reflect.Ptr { + ft = reflect.PtrTo(ft) // never occurs for officially generated message types + } + if ft != nil { + if mi.fieldTypes == nil { + mi.fieldTypes = make(map[protoreflect.FieldNumber]interface{}) + } + mi.fieldTypes[fd.Number()] = reflect.Zero(ft).Interface() + } + } +} + +type extensionMap map[int32]ExtensionField + +func (m *extensionMap) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if m != nil { + for _, x := range *m { + xd := x.Type().TypeDescriptor() + v := x.Value() + if xd.IsList() && v.List().Len() == 0 { + continue + } + if !f(xd, v) { + return + } + } + } +} +func (m *extensionMap) Has(xt protoreflect.ExtensionType) (ok bool) { + if m == nil { + return false + } + xd := xt.TypeDescriptor() + x, ok := (*m)[int32(xd.Number())] + if !ok { + return false + } + switch { + case xd.IsList(): + return x.Value().List().Len() > 0 + case xd.IsMap(): + return x.Value().Map().Len() > 0 + case xd.Message() != nil: + return x.Value().Message().IsValid() + } + return true +} +func (m *extensionMap) Clear(xt protoreflect.ExtensionType) { + delete(*m, int32(xt.TypeDescriptor().Number())) +} +func (m *extensionMap) Get(xt protoreflect.ExtensionType) protoreflect.Value { + xd := xt.TypeDescriptor() + if m != nil { + if x, ok := (*m)[int32(xd.Number())]; ok { + return x.Value() + } + } + return xt.Zero() +} +func (m *extensionMap) Set(xt protoreflect.ExtensionType, v protoreflect.Value) { + xd := xt.TypeDescriptor() + isValid := true + switch { + case !xt.IsValidValue(v): + isValid = false + case xd.IsList(): + isValid = v.List().IsValid() + case xd.IsMap(): + isValid = v.Map().IsValid() + case xd.Message() != nil: + isValid = v.Message().IsValid() + } + if !isValid { + panic(fmt.Sprintf("%v: assigning invalid value", xt.TypeDescriptor().FullName())) + } + + if *m == nil { + *m = make(map[int32]ExtensionField) + } + var x ExtensionField + x.Set(xt, v) + (*m)[int32(xd.Number())] = x +} +func (m *extensionMap) Mutable(xt protoreflect.ExtensionType) protoreflect.Value { + xd := xt.TypeDescriptor() + if xd.Kind() != protoreflect.MessageKind && xd.Kind() != protoreflect.GroupKind && !xd.IsList() && !xd.IsMap() { + panic("invalid Mutable on field with non-composite type") + } + if x, ok := (*m)[int32(xd.Number())]; ok { + return x.Value() + } + v := xt.New() + m.Set(xt, v) + return v +} + +// MessageState is a data structure that is nested as the first field in a +// concrete message. It provides a way to implement the ProtoReflect method +// in an allocation-free way without needing to have a shadow Go type generated +// for every message type. This technique only works using unsafe. +// +// Example generated code: +// +// type M struct { +// state protoimpl.MessageState +// +// Field1 int32 +// Field2 string +// Field3 *BarMessage +// ... +// } +// +// func (m *M) ProtoReflect() protoreflect.Message { +// mi := &file_fizz_buzz_proto_msgInfos[5] +// if protoimpl.UnsafeEnabled && m != nil { +// ms := protoimpl.X.MessageStateOf(Pointer(m)) +// if ms.LoadMessageInfo() == nil { +// ms.StoreMessageInfo(mi) +// } +// return ms +// } +// return mi.MessageOf(m) +// } +// +// The MessageState type holds a *MessageInfo, which must be atomically set to +// the message info associated with a given message instance. +// By unsafely converting a *M into a *MessageState, the MessageState object +// has access to all the information needed to implement protobuf reflection. +// It has access to the message info as its first field, and a pointer to the +// MessageState is identical to a pointer to the concrete message value. +// +// Requirements: +// - The type M must implement protoreflect.ProtoMessage. +// - The address of m must not be nil. +// - The address of m and the address of m.state must be equal, +// even though they are different Go types. +type MessageState struct { + pragma.NoUnkeyedLiterals + pragma.DoNotCompare + pragma.DoNotCopy + + atomicMessageInfo *MessageInfo +} + +type messageState MessageState + +var ( + _ protoreflect.Message = (*messageState)(nil) + _ unwrapper = (*messageState)(nil) +) + +// messageDataType is a tuple of a pointer to the message data and +// a pointer to the message type. It is a generalized way of providing a +// reflective view over a message instance. The disadvantage of this approach +// is the need to allocate this tuple of 16B. +type messageDataType struct { + p pointer + mi *MessageInfo +} + +type ( + messageReflectWrapper messageDataType + messageIfaceWrapper messageDataType +) + +var ( + _ protoreflect.Message = (*messageReflectWrapper)(nil) + _ unwrapper = (*messageReflectWrapper)(nil) + _ protoreflect.ProtoMessage = (*messageIfaceWrapper)(nil) + _ unwrapper = (*messageIfaceWrapper)(nil) +) + +// MessageOf returns a reflective view over a message. The input must be a +// pointer to a named Go struct. If the provided type has a ProtoReflect method, +// it must be implemented by calling this method. +func (mi *MessageInfo) MessageOf(m interface{}) protoreflect.Message { + if reflect.TypeOf(m) != mi.GoReflectType { + panic(fmt.Sprintf("type mismatch: got %T, want %v", m, mi.GoReflectType)) + } + p := pointerOfIface(m) + if p.IsNil() { + return mi.nilMessage.Init(mi) + } + return &messageReflectWrapper{p, mi} +} + +func (m *messageReflectWrapper) pointer() pointer { return m.p } +func (m *messageReflectWrapper) messageInfo() *MessageInfo { return m.mi } + +// Reset implements the v1 proto.Message.Reset method. +func (m *messageIfaceWrapper) Reset() { + if mr, ok := m.protoUnwrap().(interface{ Reset() }); ok { + mr.Reset() + return + } + rv := reflect.ValueOf(m.protoUnwrap()) + if rv.Kind() == reflect.Ptr && !rv.IsNil() { + rv.Elem().Set(reflect.Zero(rv.Type().Elem())) + } +} +func (m *messageIfaceWrapper) ProtoReflect() protoreflect.Message { + return (*messageReflectWrapper)(m) +} +func (m *messageIfaceWrapper) protoUnwrap() interface{} { + return m.p.AsIfaceOf(m.mi.GoReflectType.Elem()) +} + +// checkField verifies that the provided field descriptor is valid. +// Exactly one of the returned values is populated. +func (mi *MessageInfo) checkField(fd protoreflect.FieldDescriptor) (*fieldInfo, protoreflect.ExtensionType) { + var fi *fieldInfo + if n := fd.Number(); 0 < n && int(n) < len(mi.denseFields) { + fi = mi.denseFields[n] + } else { + fi = mi.fields[n] + } + if fi != nil { + if fi.fieldDesc != fd { + if got, want := fd.FullName(), fi.fieldDesc.FullName(); got != want { + panic(fmt.Sprintf("mismatching field: got %v, want %v", got, want)) + } + panic(fmt.Sprintf("mismatching field: %v", fd.FullName())) + } + return fi, nil + } + + if fd.IsExtension() { + if got, want := fd.ContainingMessage().FullName(), mi.Desc.FullName(); got != want { + // TODO: Should this be exact containing message descriptor match? + panic(fmt.Sprintf("extension %v has mismatching containing message: got %v, want %v", fd.FullName(), got, want)) + } + if !mi.Desc.ExtensionRanges().Has(fd.Number()) { + panic(fmt.Sprintf("extension %v extends %v outside the extension range", fd.FullName(), mi.Desc.FullName())) + } + xtd, ok := fd.(protoreflect.ExtensionTypeDescriptor) + if !ok { + panic(fmt.Sprintf("extension %v does not implement protoreflect.ExtensionTypeDescriptor", fd.FullName())) + } + return nil, xtd.Type() + } + panic(fmt.Sprintf("field %v is invalid", fd.FullName())) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go new file mode 100644 index 0000000..5e736c6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_field.go @@ -0,0 +1,543 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "math" + "reflect" + "sync" + + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +type fieldInfo struct { + fieldDesc protoreflect.FieldDescriptor + + // These fields are used for protobuf reflection support. + has func(pointer) bool + clear func(pointer) + get func(pointer) protoreflect.Value + set func(pointer, protoreflect.Value) + mutable func(pointer) protoreflect.Value + newMessage func() protoreflect.Message + newField func() protoreflect.Value +} + +func fieldInfoForMissing(fd protoreflect.FieldDescriptor) fieldInfo { + // This never occurs for generated message types. + // It implies that a hand-crafted type has missing Go fields + // for specific protobuf message fields. + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + return false + }, + clear: func(p pointer) { + panic("missing Go struct field for " + string(fd.FullName())) + }, + get: func(p pointer) protoreflect.Value { + return fd.Default() + }, + set: func(p pointer, v protoreflect.Value) { + panic("missing Go struct field for " + string(fd.FullName())) + }, + mutable: func(p pointer) protoreflect.Value { + panic("missing Go struct field for " + string(fd.FullName())) + }, + newMessage: func() protoreflect.Message { + panic("missing Go struct field for " + string(fd.FullName())) + }, + newField: func() protoreflect.Value { + if v := fd.Default(); v.IsValid() { + return v + } + panic("missing Go struct field for " + string(fd.FullName())) + }, + } +} + +func fieldInfoForOneof(fd protoreflect.FieldDescriptor, fs reflect.StructField, x exporter, ot reflect.Type) fieldInfo { + ft := fs.Type + if ft.Kind() != reflect.Interface { + panic(fmt.Sprintf("field %v has invalid type: got %v, want interface kind", fd.FullName(), ft)) + } + if ot.Kind() != reflect.Struct { + panic(fmt.Sprintf("field %v has invalid type: got %v, want struct kind", fd.FullName(), ot)) + } + if !reflect.PtrTo(ot).Implements(ft) { + panic(fmt.Sprintf("field %v has invalid type: %v does not implement %v", fd.FullName(), ot, ft)) + } + conv := NewConverter(ot.Field(0).Type, fd) + isMessage := fd.Message() != nil + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + // NOTE: The logic below intentionally assumes that oneof fields are + // well-formatted. That is, the oneof interface never contains a + // typed nil pointer to one of the wrapper structs. + + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + return false + } + return true + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot { + // NOTE: We intentionally don't check for rv.Elem().IsNil() + // so that (*OneofWrapperType)(nil) gets cleared to nil. + return + } + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) protoreflect.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + return conv.Zero() + } + rv = rv.Elem().Elem().Field(0) + return conv.PBValueOf(rv) + }, + set: func(p pointer, v protoreflect.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + rv.Set(reflect.New(ot)) + } + rv = rv.Elem().Elem().Field(0) + rv.Set(conv.GoValueOf(v)) + }, + mutable: func(p pointer) protoreflect.Value { + if !isMessage { + panic(fmt.Sprintf("field %v with invalid Mutable call on field with non-composite type", fd.FullName())) + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() { + rv.Set(reflect.New(ot)) + } + rv = rv.Elem().Elem().Field(0) + if rv.Kind() == reflect.Ptr && rv.IsNil() { + rv.Set(conv.GoValueOf(protoreflect.ValueOfMessage(conv.New().Message()))) + } + return conv.PBValueOf(rv) + }, + newMessage: func() protoreflect.Message { + return conv.New().Message() + }, + newField: func() protoreflect.Value { + return conv.New() + }, + } +} + +func fieldInfoForMap(fd protoreflect.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + if ft.Kind() != reflect.Map { + panic(fmt.Sprintf("field %v has invalid type: got %v, want map kind", fd.FullName(), ft)) + } + conv := NewConverter(ft, fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return rv.Len() > 0 + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) protoreflect.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.Len() == 0 { + return conv.Zero() + } + return conv.PBValueOf(rv) + }, + set: func(p pointer, v protoreflect.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + pv := conv.GoValueOf(v) + if pv.IsNil() { + panic(fmt.Sprintf("map field %v cannot be set with read-only value", fd.FullName())) + } + rv.Set(pv) + }, + mutable: func(p pointer) protoreflect.Value { + v := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if v.IsNil() { + v.Set(reflect.MakeMap(fs.Type)) + } + return conv.PBValueOf(v) + }, + newField: func() protoreflect.Value { + return conv.New() + }, + } +} + +func fieldInfoForList(fd protoreflect.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + if ft.Kind() != reflect.Slice { + panic(fmt.Sprintf("field %v has invalid type: got %v, want slice kind", fd.FullName(), ft)) + } + conv := NewConverter(reflect.PtrTo(ft), fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return rv.Len() > 0 + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) protoreflect.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type) + if rv.Elem().Len() == 0 { + return conv.Zero() + } + return conv.PBValueOf(rv) + }, + set: func(p pointer, v protoreflect.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + pv := conv.GoValueOf(v) + if pv.IsNil() { + panic(fmt.Sprintf("list field %v cannot be set with read-only value", fd.FullName())) + } + rv.Set(pv.Elem()) + }, + mutable: func(p pointer) protoreflect.Value { + v := p.Apply(fieldOffset).AsValueOf(fs.Type) + return conv.PBValueOf(v) + }, + newField: func() protoreflect.Value { + return conv.New() + }, + } +} + +var ( + nilBytes = reflect.ValueOf([]byte(nil)) + emptyBytes = reflect.ValueOf([]byte{}) +) + +func fieldInfoForScalar(fd protoreflect.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + nullable := fd.HasPresence() + isBytes := ft.Kind() == reflect.Slice && ft.Elem().Kind() == reflect.Uint8 + if nullable { + if ft.Kind() != reflect.Ptr && ft.Kind() != reflect.Slice { + // This never occurs for generated message types. + // Despite the protobuf type system specifying presence, + // the Go field type cannot represent it. + nullable = false + } + if ft.Kind() == reflect.Ptr { + ft = ft.Elem() + } + } + conv := NewConverter(ft, fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if nullable { + return !rv.IsNil() + } + switch rv.Kind() { + case reflect.Bool: + return rv.Bool() + case reflect.Int32, reflect.Int64: + return rv.Int() != 0 + case reflect.Uint32, reflect.Uint64: + return rv.Uint() != 0 + case reflect.Float32, reflect.Float64: + return rv.Float() != 0 || math.Signbit(rv.Float()) + case reflect.String, reflect.Slice: + return rv.Len() > 0 + default: + panic(fmt.Sprintf("field %v has invalid type: %v", fd.FullName(), rv.Type())) // should never happen + } + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) protoreflect.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if nullable { + if rv.IsNil() { + return conv.Zero() + } + if rv.Kind() == reflect.Ptr { + rv = rv.Elem() + } + } + return conv.PBValueOf(rv) + }, + set: func(p pointer, v protoreflect.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if nullable && rv.Kind() == reflect.Ptr { + if rv.IsNil() { + rv.Set(reflect.New(ft)) + } + rv = rv.Elem() + } + rv.Set(conv.GoValueOf(v)) + if isBytes && rv.Len() == 0 { + if nullable { + rv.Set(emptyBytes) // preserve presence + } else { + rv.Set(nilBytes) // do not preserve presence + } + } + }, + newField: func() protoreflect.Value { + return conv.New() + }, + } +} + +func fieldInfoForWeakMessage(fd protoreflect.FieldDescriptor, weakOffset offset) fieldInfo { + if !flags.ProtoLegacy { + panic("no support for proto1 weak fields") + } + + var once sync.Once + var messageType protoreflect.MessageType + lazyInit := func() { + once.Do(func() { + messageName := fd.Message().FullName() + messageType, _ = protoregistry.GlobalTypes.FindMessageByName(messageName) + if messageType == nil { + panic(fmt.Sprintf("weak message %v for field %v is not linked in", messageName, fd.FullName())) + } + }) + } + + num := fd.Number() + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + _, ok := p.Apply(weakOffset).WeakFields().get(num) + return ok + }, + clear: func(p pointer) { + p.Apply(weakOffset).WeakFields().clear(num) + }, + get: func(p pointer) protoreflect.Value { + lazyInit() + if p.IsNil() { + return protoreflect.ValueOfMessage(messageType.Zero()) + } + m, ok := p.Apply(weakOffset).WeakFields().get(num) + if !ok { + return protoreflect.ValueOfMessage(messageType.Zero()) + } + return protoreflect.ValueOfMessage(m.ProtoReflect()) + }, + set: func(p pointer, v protoreflect.Value) { + lazyInit() + m := v.Message() + if m.Descriptor() != messageType.Descriptor() { + if got, want := m.Descriptor().FullName(), messageType.Descriptor().FullName(); got != want { + panic(fmt.Sprintf("field %v has mismatching message descriptor: got %v, want %v", fd.FullName(), got, want)) + } + panic(fmt.Sprintf("field %v has mismatching message descriptor: %v", fd.FullName(), m.Descriptor().FullName())) + } + p.Apply(weakOffset).WeakFields().set(num, m.Interface()) + }, + mutable: func(p pointer) protoreflect.Value { + lazyInit() + fs := p.Apply(weakOffset).WeakFields() + m, ok := fs.get(num) + if !ok { + m = messageType.New().Interface() + fs.set(num, m) + } + return protoreflect.ValueOfMessage(m.ProtoReflect()) + }, + newMessage: func() protoreflect.Message { + lazyInit() + return messageType.New() + }, + newField: func() protoreflect.Value { + lazyInit() + return protoreflect.ValueOfMessage(messageType.New()) + }, + } +} + +func fieldInfoForMessage(fd protoreflect.FieldDescriptor, fs reflect.StructField, x exporter) fieldInfo { + ft := fs.Type + conv := NewConverter(ft, fd) + + // TODO: Implement unsafe fast path? + fieldOffset := offsetOf(fs, x) + return fieldInfo{ + fieldDesc: fd, + has: func(p pointer) bool { + if p.IsNil() { + return false + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if fs.Type.Kind() != reflect.Ptr { + return !isZero(rv) + } + return !rv.IsNil() + }, + clear: func(p pointer) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(reflect.Zero(rv.Type())) + }, + get: func(p pointer) protoreflect.Value { + if p.IsNil() { + return conv.Zero() + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + return conv.PBValueOf(rv) + }, + set: func(p pointer, v protoreflect.Value) { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + rv.Set(conv.GoValueOf(v)) + if fs.Type.Kind() == reflect.Ptr && rv.IsNil() { + panic(fmt.Sprintf("field %v has invalid nil pointer", fd.FullName())) + } + }, + mutable: func(p pointer) protoreflect.Value { + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if fs.Type.Kind() == reflect.Ptr && rv.IsNil() { + rv.Set(conv.GoValueOf(conv.New())) + } + return conv.PBValueOf(rv) + }, + newMessage: func() protoreflect.Message { + return conv.New().Message() + }, + newField: func() protoreflect.Value { + return conv.New() + }, + } +} + +type oneofInfo struct { + oneofDesc protoreflect.OneofDescriptor + which func(pointer) protoreflect.FieldNumber +} + +func makeOneofInfo(od protoreflect.OneofDescriptor, si structInfo, x exporter) *oneofInfo { + oi := &oneofInfo{oneofDesc: od} + if od.IsSynthetic() { + fs := si.fieldsByNumber[od.Fields().Get(0).Number()] + fieldOffset := offsetOf(fs, x) + oi.which = func(p pointer) protoreflect.FieldNumber { + if p.IsNil() { + return 0 + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() { // valid on either *T or []byte + return 0 + } + return od.Fields().Get(0).Number() + } + } else { + fs := si.oneofsByName[od.Name()] + fieldOffset := offsetOf(fs, x) + oi.which = func(p pointer) protoreflect.FieldNumber { + if p.IsNil() { + return 0 + } + rv := p.Apply(fieldOffset).AsValueOf(fs.Type).Elem() + if rv.IsNil() { + return 0 + } + rv = rv.Elem() + if rv.IsNil() { + return 0 + } + return si.oneofWrappersByType[rv.Type().Elem()] + } + } + return oi +} + +// isZero is identical to reflect.Value.IsZero. +// TODO: Remove this when Go1.13 is the minimally supported Go version. +func isZero(v reflect.Value) bool { + switch v.Kind() { + case reflect.Bool: + return !v.Bool() + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return v.Int() == 0 + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return v.Uint() == 0 + case reflect.Float32, reflect.Float64: + return math.Float64bits(v.Float()) == 0 + case reflect.Complex64, reflect.Complex128: + c := v.Complex() + return math.Float64bits(real(c)) == 0 && math.Float64bits(imag(c)) == 0 + case reflect.Array: + for i := 0; i < v.Len(); i++ { + if !isZero(v.Index(i)) { + return false + } + } + return true + case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice, reflect.UnsafePointer: + return v.IsNil() + case reflect.String: + return v.Len() == 0 + case reflect.Struct: + for i := 0; i < v.NumField(); i++ { + if !isZero(v.Field(i)) { + return false + } + } + return true + default: + panic(&reflect.ValueError{"reflect.Value.IsZero", v.Kind()}) + } +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go new file mode 100644 index 0000000..741d6e5 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go @@ -0,0 +1,249 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package impl + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +func (m *messageState) Descriptor() protoreflect.MessageDescriptor { + return m.messageInfo().Desc +} +func (m *messageState) Type() protoreflect.MessageType { + return m.messageInfo() +} +func (m *messageState) New() protoreflect.Message { + return m.messageInfo().New() +} +func (m *messageState) Interface() protoreflect.ProtoMessage { + return m.protoUnwrap().(protoreflect.ProtoMessage) +} +func (m *messageState) protoUnwrap() interface{} { + return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem()) +} +func (m *messageState) ProtoMethods() *protoiface.Methods { + m.messageInfo().init() + return &m.messageInfo().methods +} + +// ProtoMessageInfo is a pseudo-internal API for allowing the v1 code +// to be able to retrieve a v2 MessageInfo struct. +// +// WARNING: This method is exempt from the compatibility promise and +// may be removed in the future without warning. +func (m *messageState) ProtoMessageInfo() *MessageInfo { + return m.messageInfo() +} + +func (m *messageState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + m.messageInfo().init() + for _, ri := range m.messageInfo().rangeInfos { + switch ri := ri.(type) { + case *fieldInfo: + if ri.has(m.pointer()) { + if !f(ri.fieldDesc, ri.get(m.pointer())) { + return + } + } + case *oneofInfo: + if n := ri.which(m.pointer()); n > 0 { + fi := m.messageInfo().fields[n] + if !f(fi.fieldDesc, fi.get(m.pointer())) { + return + } + } + } + } + m.messageInfo().extensionMap(m.pointer()).Range(f) +} +func (m *messageState) Has(fd protoreflect.FieldDescriptor) bool { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.has(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Has(xt) + } +} +func (m *messageState) Clear(fd protoreflect.FieldDescriptor) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.clear(m.pointer()) + } else { + m.messageInfo().extensionMap(m.pointer()).Clear(xt) + } +} +func (m *messageState) Get(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.get(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Get(xt) + } +} +func (m *messageState) Set(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.set(m.pointer(), v) + } else { + m.messageInfo().extensionMap(m.pointer()).Set(xt, v) + } +} +func (m *messageState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.mutable(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Mutable(xt) + } +} +func (m *messageState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.newField() + } else { + return xt.New() + } +} +func (m *messageState) WhichOneof(od protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + m.messageInfo().init() + if oi := m.messageInfo().oneofs[od.Name()]; oi != nil && oi.oneofDesc == od { + return od.Fields().ByNumber(oi.which(m.pointer())) + } + panic("invalid oneof descriptor " + string(od.FullName()) + " for message " + string(m.Descriptor().FullName())) +} +func (m *messageState) GetUnknown() protoreflect.RawFields { + m.messageInfo().init() + return m.messageInfo().getUnknown(m.pointer()) +} +func (m *messageState) SetUnknown(b protoreflect.RawFields) { + m.messageInfo().init() + m.messageInfo().setUnknown(m.pointer(), b) +} +func (m *messageState) IsValid() bool { + return !m.pointer().IsNil() +} + +func (m *messageReflectWrapper) Descriptor() protoreflect.MessageDescriptor { + return m.messageInfo().Desc +} +func (m *messageReflectWrapper) Type() protoreflect.MessageType { + return m.messageInfo() +} +func (m *messageReflectWrapper) New() protoreflect.Message { + return m.messageInfo().New() +} +func (m *messageReflectWrapper) Interface() protoreflect.ProtoMessage { + if m, ok := m.protoUnwrap().(protoreflect.ProtoMessage); ok { + return m + } + return (*messageIfaceWrapper)(m) +} +func (m *messageReflectWrapper) protoUnwrap() interface{} { + return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem()) +} +func (m *messageReflectWrapper) ProtoMethods() *protoiface.Methods { + m.messageInfo().init() + return &m.messageInfo().methods +} + +// ProtoMessageInfo is a pseudo-internal API for allowing the v1 code +// to be able to retrieve a v2 MessageInfo struct. +// +// WARNING: This method is exempt from the compatibility promise and +// may be removed in the future without warning. +func (m *messageReflectWrapper) ProtoMessageInfo() *MessageInfo { + return m.messageInfo() +} + +func (m *messageReflectWrapper) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + m.messageInfo().init() + for _, ri := range m.messageInfo().rangeInfos { + switch ri := ri.(type) { + case *fieldInfo: + if ri.has(m.pointer()) { + if !f(ri.fieldDesc, ri.get(m.pointer())) { + return + } + } + case *oneofInfo: + if n := ri.which(m.pointer()); n > 0 { + fi := m.messageInfo().fields[n] + if !f(fi.fieldDesc, fi.get(m.pointer())) { + return + } + } + } + } + m.messageInfo().extensionMap(m.pointer()).Range(f) +} +func (m *messageReflectWrapper) Has(fd protoreflect.FieldDescriptor) bool { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.has(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Has(xt) + } +} +func (m *messageReflectWrapper) Clear(fd protoreflect.FieldDescriptor) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.clear(m.pointer()) + } else { + m.messageInfo().extensionMap(m.pointer()).Clear(xt) + } +} +func (m *messageReflectWrapper) Get(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.get(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Get(xt) + } +} +func (m *messageReflectWrapper) Set(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + fi.set(m.pointer(), v) + } else { + m.messageInfo().extensionMap(m.pointer()).Set(xt, v) + } +} +func (m *messageReflectWrapper) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.mutable(m.pointer()) + } else { + return m.messageInfo().extensionMap(m.pointer()).Mutable(xt) + } +} +func (m *messageReflectWrapper) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.messageInfo().init() + if fi, xt := m.messageInfo().checkField(fd); fi != nil { + return fi.newField() + } else { + return xt.New() + } +} +func (m *messageReflectWrapper) WhichOneof(od protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + m.messageInfo().init() + if oi := m.messageInfo().oneofs[od.Name()]; oi != nil && oi.oneofDesc == od { + return od.Fields().ByNumber(oi.which(m.pointer())) + } + panic("invalid oneof descriptor " + string(od.FullName()) + " for message " + string(m.Descriptor().FullName())) +} +func (m *messageReflectWrapper) GetUnknown() protoreflect.RawFields { + m.messageInfo().init() + return m.messageInfo().getUnknown(m.pointer()) +} +func (m *messageReflectWrapper) SetUnknown(b protoreflect.RawFields) { + m.messageInfo().init() + m.messageInfo().setUnknown(m.pointer(), b) +} +func (m *messageReflectWrapper) IsValid() bool { + return !m.pointer().IsNil() +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go new file mode 100644 index 0000000..4c491bd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go @@ -0,0 +1,179 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build purego || appengine +// +build purego appengine + +package impl + +import ( + "fmt" + "reflect" + "sync" +) + +const UnsafeEnabled = false + +// Pointer is an opaque pointer type. +type Pointer interface{} + +// offset represents the offset to a struct field, accessible from a pointer. +// The offset is the field index into a struct. +type offset struct { + index int + export exporter +} + +// offsetOf returns a field offset for the struct field. +func offsetOf(f reflect.StructField, x exporter) offset { + if len(f.Index) != 1 { + panic("embedded structs are not supported") + } + if f.PkgPath == "" { + return offset{index: f.Index[0]} // field is already exported + } + if x == nil { + panic("exporter must be provided for unexported field") + } + return offset{index: f.Index[0], export: x} +} + +// IsValid reports whether the offset is valid. +func (f offset) IsValid() bool { return f.index >= 0 } + +// invalidOffset is an invalid field offset. +var invalidOffset = offset{index: -1} + +// zeroOffset is a noop when calling pointer.Apply. +var zeroOffset = offset{index: 0} + +// pointer is an abstract representation of a pointer to a struct or field. +type pointer struct{ v reflect.Value } + +// pointerOf returns p as a pointer. +func pointerOf(p Pointer) pointer { + return pointerOfIface(p) +} + +// pointerOfValue returns v as a pointer. +func pointerOfValue(v reflect.Value) pointer { + return pointer{v: v} +} + +// pointerOfIface returns the pointer portion of an interface. +func pointerOfIface(v interface{}) pointer { + return pointer{v: reflect.ValueOf(v)} +} + +// IsNil reports whether the pointer is nil. +func (p pointer) IsNil() bool { + return p.v.IsNil() +} + +// Apply adds an offset to the pointer to derive a new pointer +// to a specified field. The current pointer must be pointing at a struct. +func (p pointer) Apply(f offset) pointer { + if f.export != nil { + if v := reflect.ValueOf(f.export(p.v.Interface(), f.index)); v.IsValid() { + return pointer{v: v} + } + } + return pointer{v: p.v.Elem().Field(f.index).Addr()} +} + +// AsValueOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to reflect.ValueOf(p.AsIfaceOf(t)) +func (p pointer) AsValueOf(t reflect.Type) reflect.Value { + if got := p.v.Type().Elem(); got != t { + panic(fmt.Sprintf("invalid type: got %v, want %v", got, t)) + } + return p.v +} + +// AsIfaceOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to p.AsValueOf(t).Interface() +func (p pointer) AsIfaceOf(t reflect.Type) interface{} { + return p.AsValueOf(t).Interface() +} + +func (p pointer) Bool() *bool { return p.v.Interface().(*bool) } +func (p pointer) BoolPtr() **bool { return p.v.Interface().(**bool) } +func (p pointer) BoolSlice() *[]bool { return p.v.Interface().(*[]bool) } +func (p pointer) Int32() *int32 { return p.v.Interface().(*int32) } +func (p pointer) Int32Ptr() **int32 { return p.v.Interface().(**int32) } +func (p pointer) Int32Slice() *[]int32 { return p.v.Interface().(*[]int32) } +func (p pointer) Int64() *int64 { return p.v.Interface().(*int64) } +func (p pointer) Int64Ptr() **int64 { return p.v.Interface().(**int64) } +func (p pointer) Int64Slice() *[]int64 { return p.v.Interface().(*[]int64) } +func (p pointer) Uint32() *uint32 { return p.v.Interface().(*uint32) } +func (p pointer) Uint32Ptr() **uint32 { return p.v.Interface().(**uint32) } +func (p pointer) Uint32Slice() *[]uint32 { return p.v.Interface().(*[]uint32) } +func (p pointer) Uint64() *uint64 { return p.v.Interface().(*uint64) } +func (p pointer) Uint64Ptr() **uint64 { return p.v.Interface().(**uint64) } +func (p pointer) Uint64Slice() *[]uint64 { return p.v.Interface().(*[]uint64) } +func (p pointer) Float32() *float32 { return p.v.Interface().(*float32) } +func (p pointer) Float32Ptr() **float32 { return p.v.Interface().(**float32) } +func (p pointer) Float32Slice() *[]float32 { return p.v.Interface().(*[]float32) } +func (p pointer) Float64() *float64 { return p.v.Interface().(*float64) } +func (p pointer) Float64Ptr() **float64 { return p.v.Interface().(**float64) } +func (p pointer) Float64Slice() *[]float64 { return p.v.Interface().(*[]float64) } +func (p pointer) String() *string { return p.v.Interface().(*string) } +func (p pointer) StringPtr() **string { return p.v.Interface().(**string) } +func (p pointer) StringSlice() *[]string { return p.v.Interface().(*[]string) } +func (p pointer) Bytes() *[]byte { return p.v.Interface().(*[]byte) } +func (p pointer) BytesPtr() **[]byte { return p.v.Interface().(**[]byte) } +func (p pointer) BytesSlice() *[][]byte { return p.v.Interface().(*[][]byte) } +func (p pointer) WeakFields() *weakFields { return (*weakFields)(p.v.Interface().(*WeakFields)) } +func (p pointer) Extensions() *map[int32]ExtensionField { + return p.v.Interface().(*map[int32]ExtensionField) +} + +func (p pointer) Elem() pointer { + return pointer{v: p.v.Elem()} +} + +// PointerSlice copies []*T from p as a new []pointer. +// This behavior differs from the implementation in pointer_unsafe.go. +func (p pointer) PointerSlice() []pointer { + // TODO: reconsider this + if p.v.IsNil() { + return nil + } + n := p.v.Elem().Len() + s := make([]pointer, n) + for i := 0; i < n; i++ { + s[i] = pointer{v: p.v.Elem().Index(i)} + } + return s +} + +// AppendPointerSlice appends v to p, which must be a []*T. +func (p pointer) AppendPointerSlice(v pointer) { + sp := p.v.Elem() + sp.Set(reflect.Append(sp, v.v)) +} + +// SetPointer sets *p to v. +func (p pointer) SetPointer(v pointer) { + p.v.Elem().Set(v.v) +} + +func (Export) MessageStateOf(p Pointer) *messageState { panic("not supported") } +func (ms *messageState) pointer() pointer { panic("not supported") } +func (ms *messageState) messageInfo() *MessageInfo { panic("not supported") } +func (ms *messageState) LoadMessageInfo() *MessageInfo { panic("not supported") } +func (ms *messageState) StoreMessageInfo(mi *MessageInfo) { panic("not supported") } + +type atomicNilMessage struct { + once sync.Once + m messageReflectWrapper +} + +func (m *atomicNilMessage) Init(mi *MessageInfo) *messageReflectWrapper { + m.once.Do(func() { + m.m.p = pointerOfIface(reflect.Zero(mi.GoReflectType).Interface()) + m.m.mi = mi + }) + return &m.m +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go b/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go new file mode 100644 index 0000000..ee0e057 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go @@ -0,0 +1,175 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !purego && !appengine +// +build !purego,!appengine + +package impl + +import ( + "reflect" + "sync/atomic" + "unsafe" +) + +const UnsafeEnabled = true + +// Pointer is an opaque pointer type. +type Pointer unsafe.Pointer + +// offset represents the offset to a struct field, accessible from a pointer. +// The offset is the byte offset to the field from the start of the struct. +type offset uintptr + +// offsetOf returns a field offset for the struct field. +func offsetOf(f reflect.StructField, x exporter) offset { + return offset(f.Offset) +} + +// IsValid reports whether the offset is valid. +func (f offset) IsValid() bool { return f != invalidOffset } + +// invalidOffset is an invalid field offset. +var invalidOffset = ^offset(0) + +// zeroOffset is a noop when calling pointer.Apply. +var zeroOffset = offset(0) + +// pointer is a pointer to a message struct or field. +type pointer struct{ p unsafe.Pointer } + +// pointerOf returns p as a pointer. +func pointerOf(p Pointer) pointer { + return pointer{p: unsafe.Pointer(p)} +} + +// pointerOfValue returns v as a pointer. +func pointerOfValue(v reflect.Value) pointer { + return pointer{p: unsafe.Pointer(v.Pointer())} +} + +// pointerOfIface returns the pointer portion of an interface. +func pointerOfIface(v interface{}) pointer { + type ifaceHeader struct { + Type unsafe.Pointer + Data unsafe.Pointer + } + return pointer{p: (*ifaceHeader)(unsafe.Pointer(&v)).Data} +} + +// IsNil reports whether the pointer is nil. +func (p pointer) IsNil() bool { + return p.p == nil +} + +// Apply adds an offset to the pointer to derive a new pointer +// to a specified field. The pointer must be valid and pointing at a struct. +func (p pointer) Apply(f offset) pointer { + if p.IsNil() { + panic("invalid nil pointer") + } + return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))} +} + +// AsValueOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to reflect.ValueOf(p.AsIfaceOf(t)) +func (p pointer) AsValueOf(t reflect.Type) reflect.Value { + return reflect.NewAt(t, p.p) +} + +// AsIfaceOf treats p as a pointer to an object of type t and returns the value. +// It is equivalent to p.AsValueOf(t).Interface() +func (p pointer) AsIfaceOf(t reflect.Type) interface{} { + // TODO: Use tricky unsafe magic to directly create ifaceHeader. + return p.AsValueOf(t).Interface() +} + +func (p pointer) Bool() *bool { return (*bool)(p.p) } +func (p pointer) BoolPtr() **bool { return (**bool)(p.p) } +func (p pointer) BoolSlice() *[]bool { return (*[]bool)(p.p) } +func (p pointer) Int32() *int32 { return (*int32)(p.p) } +func (p pointer) Int32Ptr() **int32 { return (**int32)(p.p) } +func (p pointer) Int32Slice() *[]int32 { return (*[]int32)(p.p) } +func (p pointer) Int64() *int64 { return (*int64)(p.p) } +func (p pointer) Int64Ptr() **int64 { return (**int64)(p.p) } +func (p pointer) Int64Slice() *[]int64 { return (*[]int64)(p.p) } +func (p pointer) Uint32() *uint32 { return (*uint32)(p.p) } +func (p pointer) Uint32Ptr() **uint32 { return (**uint32)(p.p) } +func (p pointer) Uint32Slice() *[]uint32 { return (*[]uint32)(p.p) } +func (p pointer) Uint64() *uint64 { return (*uint64)(p.p) } +func (p pointer) Uint64Ptr() **uint64 { return (**uint64)(p.p) } +func (p pointer) Uint64Slice() *[]uint64 { return (*[]uint64)(p.p) } +func (p pointer) Float32() *float32 { return (*float32)(p.p) } +func (p pointer) Float32Ptr() **float32 { return (**float32)(p.p) } +func (p pointer) Float32Slice() *[]float32 { return (*[]float32)(p.p) } +func (p pointer) Float64() *float64 { return (*float64)(p.p) } +func (p pointer) Float64Ptr() **float64 { return (**float64)(p.p) } +func (p pointer) Float64Slice() *[]float64 { return (*[]float64)(p.p) } +func (p pointer) String() *string { return (*string)(p.p) } +func (p pointer) StringPtr() **string { return (**string)(p.p) } +func (p pointer) StringSlice() *[]string { return (*[]string)(p.p) } +func (p pointer) Bytes() *[]byte { return (*[]byte)(p.p) } +func (p pointer) BytesPtr() **[]byte { return (**[]byte)(p.p) } +func (p pointer) BytesSlice() *[][]byte { return (*[][]byte)(p.p) } +func (p pointer) WeakFields() *weakFields { return (*weakFields)(p.p) } +func (p pointer) Extensions() *map[int32]ExtensionField { return (*map[int32]ExtensionField)(p.p) } + +func (p pointer) Elem() pointer { + return pointer{p: *(*unsafe.Pointer)(p.p)} +} + +// PointerSlice loads []*T from p as a []pointer. +// The value returned is aliased with the original slice. +// This behavior differs from the implementation in pointer_reflect.go. +func (p pointer) PointerSlice() []pointer { + // Super-tricky - p should point to a []*T where T is a + // message type. We load it as []pointer. + return *(*[]pointer)(p.p) +} + +// AppendPointerSlice appends v to p, which must be a []*T. +func (p pointer) AppendPointerSlice(v pointer) { + *(*[]pointer)(p.p) = append(*(*[]pointer)(p.p), v) +} + +// SetPointer sets *p to v. +func (p pointer) SetPointer(v pointer) { + *(*unsafe.Pointer)(p.p) = (unsafe.Pointer)(v.p) +} + +// Static check that MessageState does not exceed the size of a pointer. +const _ = uint(unsafe.Sizeof(unsafe.Pointer(nil)) - unsafe.Sizeof(MessageState{})) + +func (Export) MessageStateOf(p Pointer) *messageState { + // Super-tricky - see documentation on MessageState. + return (*messageState)(unsafe.Pointer(p)) +} +func (ms *messageState) pointer() pointer { + // Super-tricky - see documentation on MessageState. + return pointer{p: unsafe.Pointer(ms)} +} +func (ms *messageState) messageInfo() *MessageInfo { + mi := ms.LoadMessageInfo() + if mi == nil { + panic("invalid nil message info; this suggests memory corruption due to a race or shallow copy on the message struct") + } + return mi +} +func (ms *messageState) LoadMessageInfo() *MessageInfo { + return (*MessageInfo)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&ms.atomicMessageInfo)))) +} +func (ms *messageState) StoreMessageInfo(mi *MessageInfo) { + atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&ms.atomicMessageInfo)), unsafe.Pointer(mi)) +} + +type atomicNilMessage struct{ p unsafe.Pointer } // p is a *messageReflectWrapper + +func (m *atomicNilMessage) Init(mi *MessageInfo) *messageReflectWrapper { + if p := atomic.LoadPointer(&m.p); p != nil { + return (*messageReflectWrapper)(p) + } + w := &messageReflectWrapper{mi: mi} + atomic.CompareAndSwapPointer(&m.p, nil, (unsafe.Pointer)(w)) + return (*messageReflectWrapper)(atomic.LoadPointer(&m.p)) +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/validate.go b/vendor/google.golang.org/protobuf/internal/impl/validate.go new file mode 100644 index 0000000..a24e6bb --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/validate.go @@ -0,0 +1,576 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + "math" + "math/bits" + "reflect" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" +) + +// ValidationStatus is the result of validating the wire-format encoding of a message. +type ValidationStatus int + +const ( + // ValidationUnknown indicates that unmarshaling the message might succeed or fail. + // The validator was unable to render a judgement. + // + // The only causes of this status are an aberrant message type appearing somewhere + // in the message or a failure in the extension resolver. + ValidationUnknown ValidationStatus = iota + 1 + + // ValidationInvalid indicates that unmarshaling the message will fail. + ValidationInvalid + + // ValidationValid indicates that unmarshaling the message will succeed. + ValidationValid +) + +func (v ValidationStatus) String() string { + switch v { + case ValidationUnknown: + return "ValidationUnknown" + case ValidationInvalid: + return "ValidationInvalid" + case ValidationValid: + return "ValidationValid" + default: + return fmt.Sprintf("ValidationStatus(%d)", int(v)) + } +} + +// Validate determines whether the contents of the buffer are a valid wire encoding +// of the message type. +// +// This function is exposed for testing. +func Validate(mt protoreflect.MessageType, in protoiface.UnmarshalInput) (out protoiface.UnmarshalOutput, _ ValidationStatus) { + mi, ok := mt.(*MessageInfo) + if !ok { + return out, ValidationUnknown + } + if in.Resolver == nil { + in.Resolver = protoregistry.GlobalTypes + } + o, st := mi.validate(in.Buf, 0, unmarshalOptions{ + flags: in.Flags, + resolver: in.Resolver, + }) + if o.initialized { + out.Flags |= protoiface.UnmarshalInitialized + } + return out, st +} + +type validationInfo struct { + mi *MessageInfo + typ validationType + keyType, valType validationType + + // For non-required fields, requiredBit is 0. + // + // For required fields, requiredBit's nth bit is set, where n is a + // unique index in the range [0, MessageInfo.numRequiredFields). + // + // If there are more than 64 required fields, requiredBit is 0. + requiredBit uint64 +} + +type validationType uint8 + +const ( + validationTypeOther validationType = iota + validationTypeMessage + validationTypeGroup + validationTypeMap + validationTypeRepeatedVarint + validationTypeRepeatedFixed32 + validationTypeRepeatedFixed64 + validationTypeVarint + validationTypeFixed32 + validationTypeFixed64 + validationTypeBytes + validationTypeUTF8String + validationTypeMessageSetItem +) + +func newFieldValidationInfo(mi *MessageInfo, si structInfo, fd protoreflect.FieldDescriptor, ft reflect.Type) validationInfo { + var vi validationInfo + switch { + case fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic(): + switch fd.Kind() { + case protoreflect.MessageKind: + vi.typ = validationTypeMessage + if ot, ok := si.oneofWrappersByNumber[fd.Number()]; ok { + vi.mi = getMessageInfo(ot.Field(0).Type) + } + case protoreflect.GroupKind: + vi.typ = validationTypeGroup + if ot, ok := si.oneofWrappersByNumber[fd.Number()]; ok { + vi.mi = getMessageInfo(ot.Field(0).Type) + } + case protoreflect.StringKind: + if strs.EnforceUTF8(fd) { + vi.typ = validationTypeUTF8String + } + } + default: + vi = newValidationInfo(fd, ft) + } + if fd.Cardinality() == protoreflect.Required { + // Avoid overflow. The required field check is done with a 64-bit mask, with + // any message containing more than 64 required fields always reported as + // potentially uninitialized, so it is not important to get a precise count + // of the required fields past 64. + if mi.numRequiredFields < math.MaxUint8 { + mi.numRequiredFields++ + vi.requiredBit = 1 << (mi.numRequiredFields - 1) + } + } + return vi +} + +func newValidationInfo(fd protoreflect.FieldDescriptor, ft reflect.Type) validationInfo { + var vi validationInfo + switch { + case fd.IsList(): + switch fd.Kind() { + case protoreflect.MessageKind: + vi.typ = validationTypeMessage + if ft.Kind() == reflect.Slice { + vi.mi = getMessageInfo(ft.Elem()) + } + case protoreflect.GroupKind: + vi.typ = validationTypeGroup + if ft.Kind() == reflect.Slice { + vi.mi = getMessageInfo(ft.Elem()) + } + case protoreflect.StringKind: + vi.typ = validationTypeBytes + if strs.EnforceUTF8(fd) { + vi.typ = validationTypeUTF8String + } + default: + switch wireTypes[fd.Kind()] { + case protowire.VarintType: + vi.typ = validationTypeRepeatedVarint + case protowire.Fixed32Type: + vi.typ = validationTypeRepeatedFixed32 + case protowire.Fixed64Type: + vi.typ = validationTypeRepeatedFixed64 + } + } + case fd.IsMap(): + vi.typ = validationTypeMap + switch fd.MapKey().Kind() { + case protoreflect.StringKind: + if strs.EnforceUTF8(fd) { + vi.keyType = validationTypeUTF8String + } + } + switch fd.MapValue().Kind() { + case protoreflect.MessageKind: + vi.valType = validationTypeMessage + if ft.Kind() == reflect.Map { + vi.mi = getMessageInfo(ft.Elem()) + } + case protoreflect.StringKind: + if strs.EnforceUTF8(fd) { + vi.valType = validationTypeUTF8String + } + } + default: + switch fd.Kind() { + case protoreflect.MessageKind: + vi.typ = validationTypeMessage + if !fd.IsWeak() { + vi.mi = getMessageInfo(ft) + } + case protoreflect.GroupKind: + vi.typ = validationTypeGroup + vi.mi = getMessageInfo(ft) + case protoreflect.StringKind: + vi.typ = validationTypeBytes + if strs.EnforceUTF8(fd) { + vi.typ = validationTypeUTF8String + } + default: + switch wireTypes[fd.Kind()] { + case protowire.VarintType: + vi.typ = validationTypeVarint + case protowire.Fixed32Type: + vi.typ = validationTypeFixed32 + case protowire.Fixed64Type: + vi.typ = validationTypeFixed64 + case protowire.BytesType: + vi.typ = validationTypeBytes + } + } + } + return vi +} + +func (mi *MessageInfo) validate(b []byte, groupTag protowire.Number, opts unmarshalOptions) (out unmarshalOutput, result ValidationStatus) { + mi.init() + type validationState struct { + typ validationType + keyType, valType validationType + endGroup protowire.Number + mi *MessageInfo + tail []byte + requiredMask uint64 + } + + // Pre-allocate some slots to avoid repeated slice reallocation. + states := make([]validationState, 0, 16) + states = append(states, validationState{ + typ: validationTypeMessage, + mi: mi, + }) + if groupTag > 0 { + states[0].typ = validationTypeGroup + states[0].endGroup = groupTag + } + initialized := true + start := len(b) +State: + for len(states) > 0 { + st := &states[len(states)-1] + for len(b) > 0 { + // Parse the tag (field number and wire type). + var tag uint64 + if b[0] < 0x80 { + tag = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + tag = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + tag, n = protowire.ConsumeVarint(b) + if n < 0 { + return out, ValidationInvalid + } + b = b[n:] + } + var num protowire.Number + if n := tag >> 3; n < uint64(protowire.MinValidNumber) || n > uint64(protowire.MaxValidNumber) { + return out, ValidationInvalid + } else { + num = protowire.Number(n) + } + wtyp := protowire.Type(tag & 7) + + if wtyp == protowire.EndGroupType { + if st.endGroup == num { + goto PopState + } + return out, ValidationInvalid + } + var vi validationInfo + switch { + case st.typ == validationTypeMap: + switch num { + case genid.MapEntry_Key_field_number: + vi.typ = st.keyType + case genid.MapEntry_Value_field_number: + vi.typ = st.valType + vi.mi = st.mi + vi.requiredBit = 1 + } + case flags.ProtoLegacy && st.mi.isMessageSet: + switch num { + case messageset.FieldItem: + vi.typ = validationTypeMessageSetItem + } + default: + var f *coderFieldInfo + if int(num) < len(st.mi.denseCoderFields) { + f = st.mi.denseCoderFields[num] + } else { + f = st.mi.coderFields[num] + } + if f != nil { + vi = f.validation + if vi.typ == validationTypeMessage && vi.mi == nil { + // Probable weak field. + // + // TODO: Consider storing the results of this lookup somewhere + // rather than recomputing it on every validation. + fd := st.mi.Desc.Fields().ByNumber(num) + if fd == nil || !fd.IsWeak() { + break + } + messageName := fd.Message().FullName() + messageType, err := protoregistry.GlobalTypes.FindMessageByName(messageName) + switch err { + case nil: + vi.mi, _ = messageType.(*MessageInfo) + case protoregistry.NotFound: + vi.typ = validationTypeBytes + default: + return out, ValidationUnknown + } + } + break + } + // Possible extension field. + // + // TODO: We should return ValidationUnknown when: + // 1. The resolver is not frozen. (More extensions may be added to it.) + // 2. The resolver returns preg.NotFound. + // In this case, a type added to the resolver in the future could cause + // unmarshaling to begin failing. Supporting this requires some way to + // determine if the resolver is frozen. + xt, err := opts.resolver.FindExtensionByNumber(st.mi.Desc.FullName(), num) + if err != nil && err != protoregistry.NotFound { + return out, ValidationUnknown + } + if err == nil { + vi = getExtensionFieldInfo(xt).validation + } + } + if vi.requiredBit != 0 { + // Check that the field has a compatible wire type. + // We only need to consider non-repeated field types, + // since repeated fields (and maps) can never be required. + ok := false + switch vi.typ { + case validationTypeVarint: + ok = wtyp == protowire.VarintType + case validationTypeFixed32: + ok = wtyp == protowire.Fixed32Type + case validationTypeFixed64: + ok = wtyp == protowire.Fixed64Type + case validationTypeBytes, validationTypeUTF8String, validationTypeMessage: + ok = wtyp == protowire.BytesType + case validationTypeGroup: + ok = wtyp == protowire.StartGroupType + } + if ok { + st.requiredMask |= vi.requiredBit + } + } + + switch wtyp { + case protowire.VarintType: + if len(b) >= 10 { + switch { + case b[0] < 0x80: + b = b[1:] + case b[1] < 0x80: + b = b[2:] + case b[2] < 0x80: + b = b[3:] + case b[3] < 0x80: + b = b[4:] + case b[4] < 0x80: + b = b[5:] + case b[5] < 0x80: + b = b[6:] + case b[6] < 0x80: + b = b[7:] + case b[7] < 0x80: + b = b[8:] + case b[8] < 0x80: + b = b[9:] + case b[9] < 0x80 && b[9] < 2: + b = b[10:] + default: + return out, ValidationInvalid + } + } else { + switch { + case len(b) > 0 && b[0] < 0x80: + b = b[1:] + case len(b) > 1 && b[1] < 0x80: + b = b[2:] + case len(b) > 2 && b[2] < 0x80: + b = b[3:] + case len(b) > 3 && b[3] < 0x80: + b = b[4:] + case len(b) > 4 && b[4] < 0x80: + b = b[5:] + case len(b) > 5 && b[5] < 0x80: + b = b[6:] + case len(b) > 6 && b[6] < 0x80: + b = b[7:] + case len(b) > 7 && b[7] < 0x80: + b = b[8:] + case len(b) > 8 && b[8] < 0x80: + b = b[9:] + case len(b) > 9 && b[9] < 2: + b = b[10:] + default: + return out, ValidationInvalid + } + } + continue State + case protowire.BytesType: + var size uint64 + if len(b) >= 1 && b[0] < 0x80 { + size = uint64(b[0]) + b = b[1:] + } else if len(b) >= 2 && b[1] < 128 { + size = uint64(b[0]&0x7f) + uint64(b[1])<<7 + b = b[2:] + } else { + var n int + size, n = protowire.ConsumeVarint(b) + if n < 0 { + return out, ValidationInvalid + } + b = b[n:] + } + if size > uint64(len(b)) { + return out, ValidationInvalid + } + v := b[:size] + b = b[size:] + switch vi.typ { + case validationTypeMessage: + if vi.mi == nil { + return out, ValidationUnknown + } + vi.mi.init() + fallthrough + case validationTypeMap: + if vi.mi != nil { + vi.mi.init() + } + states = append(states, validationState{ + typ: vi.typ, + keyType: vi.keyType, + valType: vi.valType, + mi: vi.mi, + tail: b, + }) + b = v + continue State + case validationTypeRepeatedVarint: + // Packed field. + for len(v) > 0 { + _, n := protowire.ConsumeVarint(v) + if n < 0 { + return out, ValidationInvalid + } + v = v[n:] + } + case validationTypeRepeatedFixed32: + // Packed field. + if len(v)%4 != 0 { + return out, ValidationInvalid + } + case validationTypeRepeatedFixed64: + // Packed field. + if len(v)%8 != 0 { + return out, ValidationInvalid + } + case validationTypeUTF8String: + if !utf8.Valid(v) { + return out, ValidationInvalid + } + } + case protowire.Fixed32Type: + if len(b) < 4 { + return out, ValidationInvalid + } + b = b[4:] + case protowire.Fixed64Type: + if len(b) < 8 { + return out, ValidationInvalid + } + b = b[8:] + case protowire.StartGroupType: + switch { + case vi.typ == validationTypeGroup: + if vi.mi == nil { + return out, ValidationUnknown + } + vi.mi.init() + states = append(states, validationState{ + typ: validationTypeGroup, + mi: vi.mi, + endGroup: num, + }) + continue State + case flags.ProtoLegacy && vi.typ == validationTypeMessageSetItem: + typeid, v, n, err := messageset.ConsumeFieldValue(b, false) + if err != nil { + return out, ValidationInvalid + } + xt, err := opts.resolver.FindExtensionByNumber(st.mi.Desc.FullName(), typeid) + switch { + case err == protoregistry.NotFound: + b = b[n:] + case err != nil: + return out, ValidationUnknown + default: + xvi := getExtensionFieldInfo(xt).validation + if xvi.mi != nil { + xvi.mi.init() + } + states = append(states, validationState{ + typ: xvi.typ, + mi: xvi.mi, + tail: b[n:], + }) + b = v + continue State + } + default: + n := protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return out, ValidationInvalid + } + b = b[n:] + } + default: + return out, ValidationInvalid + } + } + if st.endGroup != 0 { + return out, ValidationInvalid + } + if len(b) != 0 { + return out, ValidationInvalid + } + b = st.tail + PopState: + numRequiredFields := 0 + switch st.typ { + case validationTypeMessage, validationTypeGroup: + numRequiredFields = int(st.mi.numRequiredFields) + case validationTypeMap: + // If this is a map field with a message value that contains + // required fields, require that the value be present. + if st.mi != nil && st.mi.numRequiredFields > 0 { + numRequiredFields = 1 + } + } + // If there are more than 64 required fields, this check will + // always fail and we will report that the message is potentially + // uninitialized. + if numRequiredFields > 0 && bits.OnesCount64(st.requiredMask) != numRequiredFields { + initialized = false + } + states = states[:len(states)-1] + } + out.n = start - len(b) + if initialized { + out.initialized = true + } + return out, ValidationValid +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/weak.go b/vendor/google.golang.org/protobuf/internal/impl/weak.go new file mode 100644 index 0000000..eb79a7b --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/weak.go @@ -0,0 +1,74 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package impl + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// weakFields adds methods to the exported WeakFields type for internal use. +// +// The exported type is an alias to an unnamed type, so methods can't be +// defined directly on it. +type weakFields WeakFields + +func (w weakFields) get(num protoreflect.FieldNumber) (protoreflect.ProtoMessage, bool) { + m, ok := w[int32(num)] + return m, ok +} + +func (w *weakFields) set(num protoreflect.FieldNumber, m protoreflect.ProtoMessage) { + if *w == nil { + *w = make(weakFields) + } + (*w)[int32(num)] = m +} + +func (w *weakFields) clear(num protoreflect.FieldNumber) { + delete(*w, int32(num)) +} + +func (Export) HasWeak(w WeakFields, num protoreflect.FieldNumber) bool { + _, ok := w[int32(num)] + return ok +} + +func (Export) ClearWeak(w *WeakFields, num protoreflect.FieldNumber) { + delete(*w, int32(num)) +} + +func (Export) GetWeak(w WeakFields, num protoreflect.FieldNumber, name protoreflect.FullName) protoreflect.ProtoMessage { + if m, ok := w[int32(num)]; ok { + return m + } + mt, _ := protoregistry.GlobalTypes.FindMessageByName(name) + if mt == nil { + panic(fmt.Sprintf("message %v for weak field is not linked in", name)) + } + return mt.Zero().Interface() +} + +func (Export) SetWeak(w *WeakFields, num protoreflect.FieldNumber, name protoreflect.FullName, m protoreflect.ProtoMessage) { + if m != nil { + mt, _ := protoregistry.GlobalTypes.FindMessageByName(name) + if mt == nil { + panic(fmt.Sprintf("message %v for weak field is not linked in", name)) + } + if mt != m.ProtoReflect().Type() { + panic(fmt.Sprintf("invalid message type for weak field: got %T, want %T", m, mt.Zero().Interface())) + } + } + if m == nil || !m.ProtoReflect().IsValid() { + delete(*w, int32(num)) + return + } + if *w == nil { + *w = make(weakFields) + } + (*w)[int32(num)] = m +} diff --git a/vendor/google.golang.org/protobuf/internal/msgfmt/format.go b/vendor/google.golang.org/protobuf/internal/msgfmt/format.go new file mode 100644 index 0000000..a319550 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/msgfmt/format.go @@ -0,0 +1,261 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package msgfmt implements a text marshaler combining the desirable features +// of both the JSON and proto text formats. +// It is optimized for human readability and has no associated deserializer. +package msgfmt + +import ( + "bytes" + "fmt" + "reflect" + "sort" + "strconv" + "strings" + "time" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/detrand" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +// Format returns a formatted string for the message. +func Format(m proto.Message) string { + return string(appendMessage(nil, m.ProtoReflect())) +} + +// FormatValue returns a formatted string for an arbitrary value. +func FormatValue(v protoreflect.Value, fd protoreflect.FieldDescriptor) string { + return string(appendValue(nil, v, fd)) +} + +func appendValue(b []byte, v protoreflect.Value, fd protoreflect.FieldDescriptor) []byte { + switch v := v.Interface().(type) { + case nil: + return append(b, ""...) + case bool, int32, int64, uint32, uint64, float32, float64: + return append(b, fmt.Sprint(v)...) + case string: + return append(b, strconv.Quote(string(v))...) + case []byte: + return append(b, strconv.Quote(string(v))...) + case protoreflect.EnumNumber: + return appendEnum(b, v, fd) + case protoreflect.Message: + return appendMessage(b, v) + case protoreflect.List: + return appendList(b, v, fd) + case protoreflect.Map: + return appendMap(b, v, fd) + default: + panic(fmt.Sprintf("invalid type: %T", v)) + } +} + +func appendEnum(b []byte, v protoreflect.EnumNumber, fd protoreflect.FieldDescriptor) []byte { + if fd != nil { + if ev := fd.Enum().Values().ByNumber(v); ev != nil { + return append(b, ev.Name()...) + } + } + return strconv.AppendInt(b, int64(v), 10) +} + +func appendMessage(b []byte, m protoreflect.Message) []byte { + if b2 := appendKnownMessage(b, m); b2 != nil { + return b2 + } + + b = append(b, '{') + order.RangeFields(m, order.IndexNameFieldOrder, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + b = append(b, fd.TextName()...) + b = append(b, ':') + b = appendValue(b, v, fd) + b = append(b, delim()...) + return true + }) + b = appendUnknown(b, m.GetUnknown()) + b = bytes.TrimRight(b, delim()) + b = append(b, '}') + return b +} + +var protocmpMessageType = reflect.TypeOf(map[string]interface{}(nil)) + +func appendKnownMessage(b []byte, m protoreflect.Message) []byte { + md := m.Descriptor() + fds := md.Fields() + switch md.FullName() { + case genid.Any_message_fullname: + var msgVal protoreflect.Message + url := m.Get(fds.ByNumber(genid.Any_TypeUrl_field_number)).String() + if v := reflect.ValueOf(m); v.Type().ConvertibleTo(protocmpMessageType) { + // For protocmp.Message, directly obtain the sub-message value + // which is stored in structured form, rather than as raw bytes. + m2 := v.Convert(protocmpMessageType).Interface().(map[string]interface{}) + v, ok := m2[string(genid.Any_Value_field_name)].(proto.Message) + if !ok { + return nil + } + msgVal = v.ProtoReflect() + } else { + val := m.Get(fds.ByNumber(genid.Any_Value_field_number)).Bytes() + mt, err := protoregistry.GlobalTypes.FindMessageByURL(url) + if err != nil { + return nil + } + msgVal = mt.New() + err = proto.UnmarshalOptions{AllowPartial: true}.Unmarshal(val, msgVal.Interface()) + if err != nil { + return nil + } + } + + b = append(b, '{') + b = append(b, "["+url+"]"...) + b = append(b, ':') + b = appendMessage(b, msgVal) + b = append(b, '}') + return b + + case genid.Timestamp_message_fullname: + secs := m.Get(fds.ByNumber(genid.Timestamp_Seconds_field_number)).Int() + nanos := m.Get(fds.ByNumber(genid.Timestamp_Nanos_field_number)).Int() + if nanos < 0 || nanos >= 1e9 { + return nil + } + t := time.Unix(secs, nanos).UTC() + x := t.Format("2006-01-02T15:04:05.000000000") // RFC 3339 + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + return append(b, x+"Z"...) + + case genid.Duration_message_fullname: + sign := "" + secs := m.Get(fds.ByNumber(genid.Duration_Seconds_field_number)).Int() + nanos := m.Get(fds.ByNumber(genid.Duration_Nanos_field_number)).Int() + if nanos <= -1e9 || nanos >= 1e9 || (secs > 0 && nanos < 0) || (secs < 0 && nanos > 0) { + return nil + } + if secs < 0 || nanos < 0 { + sign, secs, nanos = "-", -1*secs, -1*nanos + } + x := fmt.Sprintf("%s%d.%09d", sign, secs, nanos) + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, "000") + x = strings.TrimSuffix(x, ".000") + return append(b, x+"s"...) + + case genid.BoolValue_message_fullname, + genid.Int32Value_message_fullname, + genid.Int64Value_message_fullname, + genid.UInt32Value_message_fullname, + genid.UInt64Value_message_fullname, + genid.FloatValue_message_fullname, + genid.DoubleValue_message_fullname, + genid.StringValue_message_fullname, + genid.BytesValue_message_fullname: + fd := fds.ByNumber(genid.WrapperValue_Value_field_number) + return appendValue(b, m.Get(fd), fd) + } + + return nil +} + +func appendUnknown(b []byte, raw protoreflect.RawFields) []byte { + rs := make(map[protoreflect.FieldNumber][]protoreflect.RawFields) + for len(raw) > 0 { + num, _, n := protowire.ConsumeField(raw) + rs[num] = append(rs[num], raw[:n]) + raw = raw[n:] + } + + var ns []protoreflect.FieldNumber + for n := range rs { + ns = append(ns, n) + } + sort.Slice(ns, func(i, j int) bool { return ns[i] < ns[j] }) + + for _, n := range ns { + var leftBracket, rightBracket string + if len(rs[n]) > 1 { + leftBracket, rightBracket = "[", "]" + } + + b = strconv.AppendInt(b, int64(n), 10) + b = append(b, ':') + b = append(b, leftBracket...) + for _, r := range rs[n] { + num, typ, n := protowire.ConsumeTag(r) + r = r[n:] + switch typ { + case protowire.VarintType: + v, _ := protowire.ConsumeVarint(r) + b = strconv.AppendInt(b, int64(v), 10) + case protowire.Fixed32Type: + v, _ := protowire.ConsumeFixed32(r) + b = append(b, fmt.Sprintf("0x%08x", v)...) + case protowire.Fixed64Type: + v, _ := protowire.ConsumeFixed64(r) + b = append(b, fmt.Sprintf("0x%016x", v)...) + case protowire.BytesType: + v, _ := protowire.ConsumeBytes(r) + b = strconv.AppendQuote(b, string(v)) + case protowire.StartGroupType: + v, _ := protowire.ConsumeGroup(num, r) + b = append(b, '{') + b = appendUnknown(b, v) + b = bytes.TrimRight(b, delim()) + b = append(b, '}') + default: + panic(fmt.Sprintf("invalid type: %v", typ)) + } + b = append(b, delim()...) + } + b = bytes.TrimRight(b, delim()) + b = append(b, rightBracket...) + b = append(b, delim()...) + } + return b +} + +func appendList(b []byte, v protoreflect.List, fd protoreflect.FieldDescriptor) []byte { + b = append(b, '[') + for i := 0; i < v.Len(); i++ { + b = appendValue(b, v.Get(i), fd) + b = append(b, delim()...) + } + b = bytes.TrimRight(b, delim()) + b = append(b, ']') + return b +} + +func appendMap(b []byte, v protoreflect.Map, fd protoreflect.FieldDescriptor) []byte { + b = append(b, '{') + order.RangeEntries(v, order.GenericKeyOrder, func(k protoreflect.MapKey, v protoreflect.Value) bool { + b = appendValue(b, k.Value(), fd.MapKey()) + b = append(b, ':') + b = appendValue(b, v, fd.MapValue()) + b = append(b, delim()...) + return true + }) + b = bytes.TrimRight(b, delim()) + b = append(b, '}') + return b +} + +func delim() string { + // Deliberately introduce instability into the message string to + // discourage users from depending on it. + if detrand.Bool() { + return " " + } + return ", " +} diff --git a/vendor/google.golang.org/protobuf/internal/order/order.go b/vendor/google.golang.org/protobuf/internal/order/order.go new file mode 100644 index 0000000..33745ed --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/order/order.go @@ -0,0 +1,89 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package order + +import ( + "google.golang.org/protobuf/reflect/protoreflect" +) + +// FieldOrder specifies the ordering to visit message fields. +// It is a function that reports whether x is ordered before y. +type FieldOrder func(x, y protoreflect.FieldDescriptor) bool + +var ( + // AnyFieldOrder specifies no specific field ordering. + AnyFieldOrder FieldOrder = nil + + // LegacyFieldOrder sorts fields in the same ordering as emitted by + // wire serialization in the github.com/golang/protobuf implementation. + LegacyFieldOrder FieldOrder = func(x, y protoreflect.FieldDescriptor) bool { + ox, oy := x.ContainingOneof(), y.ContainingOneof() + inOneof := func(od protoreflect.OneofDescriptor) bool { + return od != nil && !od.IsSynthetic() + } + + // Extension fields sort before non-extension fields. + if x.IsExtension() != y.IsExtension() { + return x.IsExtension() && !y.IsExtension() + } + // Fields not within a oneof sort before those within a oneof. + if inOneof(ox) != inOneof(oy) { + return !inOneof(ox) && inOneof(oy) + } + // Fields in disjoint oneof sets are sorted by declaration index. + if ox != nil && oy != nil && ox != oy { + return ox.Index() < oy.Index() + } + // Fields sorted by field number. + return x.Number() < y.Number() + } + + // NumberFieldOrder sorts fields by their field number. + NumberFieldOrder FieldOrder = func(x, y protoreflect.FieldDescriptor) bool { + return x.Number() < y.Number() + } + + // IndexNameFieldOrder sorts non-extension fields before extension fields. + // Non-extensions are sorted according to their declaration index. + // Extensions are sorted according to their full name. + IndexNameFieldOrder FieldOrder = func(x, y protoreflect.FieldDescriptor) bool { + // Non-extension fields sort before extension fields. + if x.IsExtension() != y.IsExtension() { + return !x.IsExtension() && y.IsExtension() + } + // Extensions sorted by fullname. + if x.IsExtension() && y.IsExtension() { + return x.FullName() < y.FullName() + } + // Non-extensions sorted by declaration index. + return x.Index() < y.Index() + } +) + +// KeyOrder specifies the ordering to visit map entries. +// It is a function that reports whether x is ordered before y. +type KeyOrder func(x, y protoreflect.MapKey) bool + +var ( + // AnyKeyOrder specifies no specific key ordering. + AnyKeyOrder KeyOrder = nil + + // GenericKeyOrder sorts false before true, numeric keys in ascending order, + // and strings in lexicographical ordering according to UTF-8 codepoints. + GenericKeyOrder KeyOrder = func(x, y protoreflect.MapKey) bool { + switch x.Interface().(type) { + case bool: + return !x.Bool() && y.Bool() + case int32, int64: + return x.Int() < y.Int() + case uint32, uint64: + return x.Uint() < y.Uint() + case string: + return x.String() < y.String() + default: + panic("invalid map key type") + } + } +) diff --git a/vendor/google.golang.org/protobuf/internal/order/range.go b/vendor/google.golang.org/protobuf/internal/order/range.go new file mode 100644 index 0000000..1665a68 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/order/range.go @@ -0,0 +1,115 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package order provides ordered access to messages and maps. +package order + +import ( + "sort" + "sync" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +type messageField struct { + fd protoreflect.FieldDescriptor + v protoreflect.Value +} + +var messageFieldPool = sync.Pool{ + New: func() interface{} { return new([]messageField) }, +} + +type ( + // FieldRnger is an interface for visiting all fields in a message. + // The protoreflect.Message type implements this interface. + FieldRanger interface{ Range(VisitField) } + // VisitField is called every time a message field is visited. + VisitField = func(protoreflect.FieldDescriptor, protoreflect.Value) bool +) + +// RangeFields iterates over the fields of fs according to the specified order. +func RangeFields(fs FieldRanger, less FieldOrder, fn VisitField) { + if less == nil { + fs.Range(fn) + return + } + + // Obtain a pre-allocated scratch buffer. + p := messageFieldPool.Get().(*[]messageField) + fields := (*p)[:0] + defer func() { + if cap(fields) < 1024 { + *p = fields + messageFieldPool.Put(p) + } + }() + + // Collect all fields in the message and sort them. + fs.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + fields = append(fields, messageField{fd, v}) + return true + }) + sort.Slice(fields, func(i, j int) bool { + return less(fields[i].fd, fields[j].fd) + }) + + // Visit the fields in the specified ordering. + for _, f := range fields { + if !fn(f.fd, f.v) { + return + } + } +} + +type mapEntry struct { + k protoreflect.MapKey + v protoreflect.Value +} + +var mapEntryPool = sync.Pool{ + New: func() interface{} { return new([]mapEntry) }, +} + +type ( + // EntryRanger is an interface for visiting all fields in a message. + // The protoreflect.Map type implements this interface. + EntryRanger interface{ Range(VisitEntry) } + // VisitEntry is called every time a map entry is visited. + VisitEntry = func(protoreflect.MapKey, protoreflect.Value) bool +) + +// RangeEntries iterates over the entries of es according to the specified order. +func RangeEntries(es EntryRanger, less KeyOrder, fn VisitEntry) { + if less == nil { + es.Range(fn) + return + } + + // Obtain a pre-allocated scratch buffer. + p := mapEntryPool.Get().(*[]mapEntry) + entries := (*p)[:0] + defer func() { + if cap(entries) < 1024 { + *p = entries + mapEntryPool.Put(p) + } + }() + + // Collect all entries in the map and sort them. + es.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + entries = append(entries, mapEntry{k, v}) + return true + }) + sort.Slice(entries, func(i, j int) bool { + return less(entries[i].k, entries[j].k) + }) + + // Visit the entries in the specified ordering. + for _, e := range entries { + if !fn(e.k, e.v) { + return + } + } +} diff --git a/vendor/google.golang.org/protobuf/internal/pragma/pragma.go b/vendor/google.golang.org/protobuf/internal/pragma/pragma.go new file mode 100644 index 0000000..49dc4fc --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/pragma/pragma.go @@ -0,0 +1,29 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package pragma provides types that can be embedded into a struct to +// statically enforce or prevent certain language properties. +package pragma + +import "sync" + +// NoUnkeyedLiterals can be embedded in a struct to prevent unkeyed literals. +type NoUnkeyedLiterals struct{} + +// DoNotImplement can be embedded in an interface to prevent trivial +// implementations of the interface. +// +// This is useful to prevent unauthorized implementations of an interface +// so that it can be extended in the future for any protobuf language changes. +type DoNotImplement interface{ ProtoInternal(DoNotImplement) } + +// DoNotCompare can be embedded in a struct to prevent comparability. +type DoNotCompare [0]func() + +// DoNotCopy can be embedded in a struct to help prevent shallow copies. +// This does not rely on a Go language feature, but rather a special case +// within the vet checker. +// +// See https://golang.org/issues/8005. +type DoNotCopy [0]sync.Mutex diff --git a/vendor/google.golang.org/protobuf/internal/set/ints.go b/vendor/google.golang.org/protobuf/internal/set/ints.go new file mode 100644 index 0000000..d3d7f89 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/set/ints.go @@ -0,0 +1,58 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package set provides simple set data structures for uint64s. +package set + +import "math/bits" + +// int64s represents a set of integers within the range of 0..63. +type int64s uint64 + +func (bs *int64s) Len() int { + return bits.OnesCount64(uint64(*bs)) +} +func (bs *int64s) Has(n uint64) bool { + return uint64(*bs)&(uint64(1)< 0 +} +func (bs *int64s) Set(n uint64) { + *(*uint64)(bs) |= uint64(1) << n +} +func (bs *int64s) Clear(n uint64) { + *(*uint64)(bs) &^= uint64(1) << n +} + +// Ints represents a set of integers within the range of 0..math.MaxUint64. +type Ints struct { + lo int64s + hi map[uint64]struct{} +} + +func (bs *Ints) Len() int { + return bs.lo.Len() + len(bs.hi) +} +func (bs *Ints) Has(n uint64) bool { + if n < 64 { + return bs.lo.Has(n) + } + _, ok := bs.hi[n] + return ok +} +func (bs *Ints) Set(n uint64) { + if n < 64 { + bs.lo.Set(n) + return + } + if bs.hi == nil { + bs.hi = make(map[uint64]struct{}) + } + bs.hi[n] = struct{}{} +} +func (bs *Ints) Clear(n uint64) { + if n < 64 { + bs.lo.Clear(n) + return + } + delete(bs.hi, n) +} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings.go b/vendor/google.golang.org/protobuf/internal/strs/strings.go new file mode 100644 index 0000000..0b74e76 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/strs/strings.go @@ -0,0 +1,196 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package strs provides string manipulation functionality specific to protobuf. +package strs + +import ( + "go/token" + "strings" + "unicode" + "unicode/utf8" + + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// EnforceUTF8 reports whether to enforce strict UTF-8 validation. +func EnforceUTF8(fd protoreflect.FieldDescriptor) bool { + if flags.ProtoLegacy { + if fd, ok := fd.(interface{ EnforceUTF8() bool }); ok { + return fd.EnforceUTF8() + } + } + return fd.Syntax() == protoreflect.Proto3 +} + +// GoCamelCase camel-cases a protobuf name for use as a Go identifier. +// +// If there is an interior underscore followed by a lower case letter, +// drop the underscore and convert the letter to upper case. +func GoCamelCase(s string) string { + // Invariant: if the next letter is lower case, it must be converted + // to upper case. + // That is, we process a word at a time, where words are marked by _ or + // upper case letter. Digits are treated as words. + var b []byte + for i := 0; i < len(s); i++ { + c := s[i] + switch { + case c == '.' && i+1 < len(s) && isASCIILower(s[i+1]): + // Skip over '.' in ".{{lowercase}}". + case c == '.': + b = append(b, '_') // convert '.' to '_' + case c == '_' && (i == 0 || s[i-1] == '.'): + // Convert initial '_' to ensure we start with a capital letter. + // Do the same for '_' after '.' to match historic behavior. + b = append(b, 'X') // convert '_' to 'X' + case c == '_' && i+1 < len(s) && isASCIILower(s[i+1]): + // Skip over '_' in "_{{lowercase}}". + case isASCIIDigit(c): + b = append(b, c) + default: + // Assume we have a letter now - if not, it's a bogus identifier. + // The next word is a sequence of characters that must start upper case. + if isASCIILower(c) { + c -= 'a' - 'A' // convert lowercase to uppercase + } + b = append(b, c) + + // Accept lower case sequence that follows. + for ; i+1 < len(s) && isASCIILower(s[i+1]); i++ { + b = append(b, s[i+1]) + } + } + } + return string(b) +} + +// GoSanitized converts a string to a valid Go identifier. +func GoSanitized(s string) string { + // Sanitize the input to the set of valid characters, + // which must be '_' or be in the Unicode L or N categories. + s = strings.Map(func(r rune) rune { + if unicode.IsLetter(r) || unicode.IsDigit(r) { + return r + } + return '_' + }, s) + + // Prepend '_' in the event of a Go keyword conflict or if + // the identifier is invalid (does not start in the Unicode L category). + r, _ := utf8.DecodeRuneInString(s) + if token.Lookup(s).IsKeyword() || !unicode.IsLetter(r) { + return "_" + s + } + return s +} + +// JSONCamelCase converts a snake_case identifier to a camelCase identifier, +// according to the protobuf JSON specification. +func JSONCamelCase(s string) string { + var b []byte + var wasUnderscore bool + for i := 0; i < len(s); i++ { // proto identifiers are always ASCII + c := s[i] + if c != '_' { + if wasUnderscore && isASCIILower(c) { + c -= 'a' - 'A' // convert to uppercase + } + b = append(b, c) + } + wasUnderscore = c == '_' + } + return string(b) +} + +// JSONSnakeCase converts a camelCase identifier to a snake_case identifier, +// according to the protobuf JSON specification. +func JSONSnakeCase(s string) string { + var b []byte + for i := 0; i < len(s); i++ { // proto identifiers are always ASCII + c := s[i] + if isASCIIUpper(c) { + b = append(b, '_') + c += 'a' - 'A' // convert to lowercase + } + b = append(b, c) + } + return string(b) +} + +// MapEntryName derives the name of the map entry message given the field name. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:254-276,6057 +func MapEntryName(s string) string { + var b []byte + upperNext := true + for _, c := range s { + switch { + case c == '_': + upperNext = true + case upperNext: + b = append(b, byte(unicode.ToUpper(c))) + upperNext = false + default: + b = append(b, byte(c)) + } + } + b = append(b, "Entry"...) + return string(b) +} + +// EnumValueName derives the camel-cased enum value name. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:297-313 +func EnumValueName(s string) string { + var b []byte + upperNext := true + for _, c := range s { + switch { + case c == '_': + upperNext = true + case upperNext: + b = append(b, byte(unicode.ToUpper(c))) + upperNext = false + default: + b = append(b, byte(unicode.ToLower(c))) + upperNext = false + } + } + return string(b) +} + +// TrimEnumPrefix trims the enum name prefix from an enum value name, +// where the prefix is all lowercase without underscores. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:330-375 +func TrimEnumPrefix(s, prefix string) string { + s0 := s // original input + for len(s) > 0 && len(prefix) > 0 { + if s[0] == '_' { + s = s[1:] + continue + } + if unicode.ToLower(rune(s[0])) != rune(prefix[0]) { + return s0 // no prefix match + } + s, prefix = s[1:], prefix[1:] + } + if len(prefix) > 0 { + return s0 // no prefix match + } + s = strings.TrimLeft(s, "_") + if len(s) == 0 { + return s0 // avoid returning empty string + } + return s +} + +func isASCIILower(c byte) bool { + return 'a' <= c && c <= 'z' +} +func isASCIIUpper(c byte) bool { + return 'A' <= c && c <= 'Z' +} +func isASCIIDigit(c byte) bool { + return '0' <= c && c <= '9' +} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go b/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go new file mode 100644 index 0000000..a1f6f33 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go @@ -0,0 +1,28 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build purego || appengine +// +build purego appengine + +package strs + +import pref "google.golang.org/protobuf/reflect/protoreflect" + +func UnsafeString(b []byte) string { + return string(b) +} + +func UnsafeBytes(s string) []byte { + return []byte(s) +} + +type Builder struct{} + +func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { + return prefix.Append(name) +} + +func (*Builder) MakeString(b []byte) string { + return string(b) +} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go new file mode 100644 index 0000000..61a84d3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe.go @@ -0,0 +1,95 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !purego && !appengine +// +build !purego,!appengine + +package strs + +import ( + "unsafe" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +type ( + stringHeader struct { + Data unsafe.Pointer + Len int + } + sliceHeader struct { + Data unsafe.Pointer + Len int + Cap int + } +) + +// UnsafeString returns an unsafe string reference of b. +// The caller must treat the input slice as immutable. +// +// WARNING: Use carefully. The returned result must not leak to the end user +// unless the input slice is provably immutable. +func UnsafeString(b []byte) (s string) { + src := (*sliceHeader)(unsafe.Pointer(&b)) + dst := (*stringHeader)(unsafe.Pointer(&s)) + dst.Data = src.Data + dst.Len = src.Len + return s +} + +// UnsafeBytes returns an unsafe bytes slice reference of s. +// The caller must treat returned slice as immutable. +// +// WARNING: Use carefully. The returned result must not leak to the end user. +func UnsafeBytes(s string) (b []byte) { + src := (*stringHeader)(unsafe.Pointer(&s)) + dst := (*sliceHeader)(unsafe.Pointer(&b)) + dst.Data = src.Data + dst.Len = src.Len + dst.Cap = src.Len + return b +} + +// Builder builds a set of strings with shared lifetime. +// This differs from strings.Builder, which is for building a single string. +type Builder struct { + buf []byte +} + +// AppendFullName is equivalent to protoreflect.FullName.Append, +// but optimized for large batches where each name has a shared lifetime. +func (sb *Builder) AppendFullName(prefix protoreflect.FullName, name protoreflect.Name) protoreflect.FullName { + n := len(prefix) + len(".") + len(name) + if len(prefix) == 0 { + n -= len(".") + } + sb.grow(n) + sb.buf = append(sb.buf, prefix...) + sb.buf = append(sb.buf, '.') + sb.buf = append(sb.buf, name...) + return protoreflect.FullName(sb.last(n)) +} + +// MakeString is equivalent to string(b), but optimized for large batches +// with a shared lifetime. +func (sb *Builder) MakeString(b []byte) string { + sb.grow(len(b)) + sb.buf = append(sb.buf, b...) + return sb.last(len(b)) +} + +func (sb *Builder) grow(n int) { + if cap(sb.buf)-len(sb.buf) >= n { + return + } + + // Unlike strings.Builder, we do not need to copy over the contents + // of the old buffer since our builder provides no API for + // retrieving previously created strings. + sb.buf = make([]byte, 0, 2*(cap(sb.buf)+n)) +} + +func (sb *Builder) last(n int) string { + return UnsafeString(sb.buf[len(sb.buf)-n:]) +} diff --git a/vendor/google.golang.org/protobuf/internal/version/version.go b/vendor/google.golang.org/protobuf/internal/version/version.go new file mode 100644 index 0000000..6c25e58 --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/version/version.go @@ -0,0 +1,79 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package version records versioning information about this module. +package version + +import ( + "fmt" + "strings" +) + +// These constants determine the current version of this module. +// +// For our release process, we enforce the following rules: +// - Tagged releases use a tag that is identical to String. +// - Tagged releases never reference a commit where the String +// contains "devel". +// - The set of all commits in this repository where String +// does not contain "devel" must have a unique String. +// +// Steps for tagging a new release: +// +// 1. Create a new CL. +// +// 2. Update Minor, Patch, and/or PreRelease as necessary. +// PreRelease must not contain the string "devel". +// +// 3. Since the last released minor version, have there been any changes to +// generator that relies on new functionality in the runtime? +// If yes, then increment RequiredGenerated. +// +// 4. Since the last released minor version, have there been any changes to +// the runtime that removes support for old .pb.go source code? +// If yes, then increment SupportMinimum. +// +// 5. Send out the CL for review and submit it. +// Note that the next CL in step 8 must be submitted after this CL +// without any other CLs in-between. +// +// 6. Tag a new version, where the tag is is the current String. +// +// 7. Write release notes for all notable changes +// between this release and the last release. +// +// 8. Create a new CL. +// +// 9. Update PreRelease to include the string "devel". +// For example: "" -> "devel" or "rc.1" -> "rc.1.devel" +// +// 10. Send out the CL for review and submit it. +const ( + Major = 1 + Minor = 28 + Patch = 1 + PreRelease = "devel" +) + +// String formats the version string for this module in semver format. +// +// Examples: +// +// v1.20.1 +// v1.21.0-rc.1 +func String() string { + v := fmt.Sprintf("v%d.%d.%d", Major, Minor, Patch) + if PreRelease != "" { + v += "-" + PreRelease + + // TODO: Add metadata about the commit or build hash. + // See https://golang.org/issue/29814 + // See https://golang.org/issue/33533 + var metadata string + if strings.Contains(PreRelease, "devel") && metadata != "" { + v += "+" + metadata + } + } + return v +} diff --git a/vendor/google.golang.org/protobuf/proto/checkinit.go b/vendor/google.golang.org/protobuf/proto/checkinit.go new file mode 100644 index 0000000..3e9a6a2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/checkinit.go @@ -0,0 +1,71 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// CheckInitialized returns an error if any required fields in m are not set. +func CheckInitialized(m Message) error { + // Treat a nil message interface as an "untyped" empty message, + // which we assume to have no required fields. + if m == nil { + return nil + } + + return checkInitialized(m.ProtoReflect()) +} + +// CheckInitialized returns an error if any required fields in m are not set. +func checkInitialized(m protoreflect.Message) error { + if methods := protoMethods(m); methods != nil && methods.CheckInitialized != nil { + _, err := methods.CheckInitialized(protoiface.CheckInitializedInput{ + Message: m, + }) + return err + } + return checkInitializedSlow(m) +} + +func checkInitializedSlow(m protoreflect.Message) error { + md := m.Descriptor() + fds := md.Fields() + for i, nums := 0, md.RequiredNumbers(); i < nums.Len(); i++ { + fd := fds.ByNumber(nums.Get(i)) + if !m.Has(fd) { + return errors.RequiredNotSet(string(fd.FullName())) + } + } + var err error + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + case fd.IsList(): + if fd.Message() == nil { + return true + } + for i, list := 0, v.List(); i < list.Len() && err == nil; i++ { + err = checkInitialized(list.Get(i).Message()) + } + case fd.IsMap(): + if fd.MapValue().Message() == nil { + return true + } + v.Map().Range(func(key protoreflect.MapKey, v protoreflect.Value) bool { + err = checkInitialized(v.Message()) + return err == nil + }) + default: + if fd.Message() == nil { + return true + } + err = checkInitialized(v.Message()) + } + return err == nil + }) + return err +} diff --git a/vendor/google.golang.org/protobuf/proto/decode.go b/vendor/google.golang.org/protobuf/proto/decode.go new file mode 100644 index 0000000..48d4794 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/decode.go @@ -0,0 +1,294 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + "google.golang.org/protobuf/runtime/protoiface" +) + +// UnmarshalOptions configures the unmarshaler. +// +// Example usage: +// +// err := UnmarshalOptions{DiscardUnknown: true}.Unmarshal(b, m) +type UnmarshalOptions struct { + pragma.NoUnkeyedLiterals + + // Merge merges the input into the destination message. + // The default behavior is to always reset the message before unmarshaling, + // unless Merge is specified. + Merge bool + + // AllowPartial accepts input for messages that will result in missing + // required fields. If AllowPartial is false (the default), Unmarshal will + // return an error if there are any missing required fields. + AllowPartial bool + + // If DiscardUnknown is set, unknown fields are ignored. + DiscardUnknown bool + + // Resolver is used for looking up types when unmarshaling extension fields. + // If nil, this defaults to using protoregistry.GlobalTypes. + Resolver interface { + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + } + + // RecursionLimit limits how deeply messages may be nested. + // If zero, a default limit is applied. + RecursionLimit int +} + +// Unmarshal parses the wire-format message in b and places the result in m. +// The provided message must be mutable (e.g., a non-nil pointer to a message). +func Unmarshal(b []byte, m Message) error { + _, err := UnmarshalOptions{RecursionLimit: protowire.DefaultRecursionLimit}.unmarshal(b, m.ProtoReflect()) + return err +} + +// Unmarshal parses the wire-format message in b and places the result in m. +// The provided message must be mutable (e.g., a non-nil pointer to a message). +func (o UnmarshalOptions) Unmarshal(b []byte, m Message) error { + if o.RecursionLimit == 0 { + o.RecursionLimit = protowire.DefaultRecursionLimit + } + _, err := o.unmarshal(b, m.ProtoReflect()) + return err +} + +// UnmarshalState parses a wire-format message and places the result in m. +// +// This method permits fine-grained control over the unmarshaler. +// Most users should use Unmarshal instead. +func (o UnmarshalOptions) UnmarshalState(in protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + if o.RecursionLimit == 0 { + o.RecursionLimit = protowire.DefaultRecursionLimit + } + return o.unmarshal(in.Buf, in.Message) +} + +// unmarshal is a centralized function that all unmarshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for unmarshal that do not go through this. +func (o UnmarshalOptions) unmarshal(b []byte, m protoreflect.Message) (out protoiface.UnmarshalOutput, err error) { + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + if !o.Merge { + Reset(m.Interface()) + } + allowPartial := o.AllowPartial + o.Merge = true + o.AllowPartial = true + methods := protoMethods(m) + if methods != nil && methods.Unmarshal != nil && + !(o.DiscardUnknown && methods.Flags&protoiface.SupportUnmarshalDiscardUnknown == 0) { + in := protoiface.UnmarshalInput{ + Message: m, + Buf: b, + Resolver: o.Resolver, + Depth: o.RecursionLimit, + } + if o.DiscardUnknown { + in.Flags |= protoiface.UnmarshalDiscardUnknown + } + out, err = methods.Unmarshal(in) + } else { + o.RecursionLimit-- + if o.RecursionLimit < 0 { + return out, errors.New("exceeded max recursion depth") + } + err = o.unmarshalMessageSlow(b, m) + } + if err != nil { + return out, err + } + if allowPartial || (out.Flags&protoiface.UnmarshalInitialized != 0) { + return out, nil + } + return out, checkInitialized(m) +} + +func (o UnmarshalOptions) unmarshalMessage(b []byte, m protoreflect.Message) error { + _, err := o.unmarshal(b, m) + return err +} + +func (o UnmarshalOptions) unmarshalMessageSlow(b []byte, m protoreflect.Message) error { + md := m.Descriptor() + if messageset.IsMessageSet(md) { + return o.unmarshalMessageSet(b, m) + } + fields := md.Fields() + for len(b) > 0 { + // Parse the tag (field number and wire type). + num, wtyp, tagLen := protowire.ConsumeTag(b) + if tagLen < 0 { + return errDecode + } + if num > protowire.MaxValidNumber { + return errDecode + } + + // Find the field descriptor for this field number. + fd := fields.ByNumber(num) + if fd == nil && md.ExtensionRanges().Has(num) { + extType, err := o.Resolver.FindExtensionByNumber(md.FullName(), num) + if err != nil && err != protoregistry.NotFound { + return errors.New("%v: unable to resolve extension %v: %v", md.FullName(), num, err) + } + if extType != nil { + fd = extType.TypeDescriptor() + } + } + var err error + if fd == nil { + err = errUnknown + } else if flags.ProtoLegacy { + if fd.IsWeak() && fd.Message().IsPlaceholder() { + err = errUnknown // weak referent is not linked in + } + } + + // Parse the field value. + var valLen int + switch { + case err != nil: + case fd.IsList(): + valLen, err = o.unmarshalList(b[tagLen:], wtyp, m.Mutable(fd).List(), fd) + case fd.IsMap(): + valLen, err = o.unmarshalMap(b[tagLen:], wtyp, m.Mutable(fd).Map(), fd) + default: + valLen, err = o.unmarshalSingular(b[tagLen:], wtyp, m, fd) + } + if err != nil { + if err != errUnknown { + return err + } + valLen = protowire.ConsumeFieldValue(num, wtyp, b[tagLen:]) + if valLen < 0 { + return errDecode + } + if !o.DiscardUnknown { + m.SetUnknown(append(m.GetUnknown(), b[:tagLen+valLen]...)) + } + } + b = b[tagLen+valLen:] + } + return nil +} + +func (o UnmarshalOptions) unmarshalSingular(b []byte, wtyp protowire.Type, m protoreflect.Message, fd protoreflect.FieldDescriptor) (n int, err error) { + v, n, err := o.unmarshalScalar(b, wtyp, fd) + if err != nil { + return 0, err + } + switch fd.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + m2 := m.Mutable(fd).Message() + if err := o.unmarshalMessage(v.Bytes(), m2); err != nil { + return n, err + } + default: + // Non-message scalars replace the previous value. + m.Set(fd, v) + } + return n, nil +} + +func (o UnmarshalOptions) unmarshalMap(b []byte, wtyp protowire.Type, mapv protoreflect.Map, fd protoreflect.FieldDescriptor) (n int, err error) { + if wtyp != protowire.BytesType { + return 0, errUnknown + } + b, n = protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + var ( + keyField = fd.MapKey() + valField = fd.MapValue() + key protoreflect.Value + val protoreflect.Value + haveKey bool + haveVal bool + ) + switch valField.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + val = mapv.NewValue() + } + // Map entries are represented as a two-element message with fields + // containing the key and value. + for len(b) > 0 { + num, wtyp, n := protowire.ConsumeTag(b) + if n < 0 { + return 0, errDecode + } + if num > protowire.MaxValidNumber { + return 0, errDecode + } + b = b[n:] + err = errUnknown + switch num { + case genid.MapEntry_Key_field_number: + key, n, err = o.unmarshalScalar(b, wtyp, keyField) + if err != nil { + break + } + haveKey = true + case genid.MapEntry_Value_field_number: + var v protoreflect.Value + v, n, err = o.unmarshalScalar(b, wtyp, valField) + if err != nil { + break + } + switch valField.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + if err := o.unmarshalMessage(v.Bytes(), val.Message()); err != nil { + return 0, err + } + default: + val = v + } + haveVal = true + } + if err == errUnknown { + n = protowire.ConsumeFieldValue(num, wtyp, b) + if n < 0 { + return 0, errDecode + } + } else if err != nil { + return 0, err + } + b = b[n:] + } + // Every map entry should have entries for key and value, but this is not strictly required. + if !haveKey { + key = keyField.Default() + } + if !haveVal { + switch valField.Kind() { + case protoreflect.GroupKind, protoreflect.MessageKind: + default: + val = valField.Default() + } + } + mapv.Set(key.MapKey(), val) + return n, nil +} + +// errUnknown is used internally to indicate fields which should be added +// to the unknown field set of a message. It is never returned from an exported +// function. +var errUnknown = errors.New("BUG: internal error (unknown)") + +var errDecode = errors.New("cannot parse invalid wire-format data") diff --git a/vendor/google.golang.org/protobuf/proto/decode_gen.go b/vendor/google.golang.org/protobuf/proto/decode_gen.go new file mode 100644 index 0000000..301eeb2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/decode_gen.go @@ -0,0 +1,603 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package proto + +import ( + "math" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// unmarshalScalar decodes a value of the given kind. +// +// Message values are decoded into a []byte which aliases the input data. +func (o UnmarshalOptions) unmarshalScalar(b []byte, wtyp protowire.Type, fd protoreflect.FieldDescriptor) (val protoreflect.Value, n int, err error) { + switch fd.Kind() { + case protoreflect.BoolKind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfBool(protowire.DecodeBool(v)), n, nil + case protoreflect.EnumKind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v)), n, nil + case protoreflect.Int32Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfInt32(int32(v)), n, nil + case protoreflect.Sint32Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32))), n, nil + case protoreflect.Uint32Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfUint32(uint32(v)), n, nil + case protoreflect.Int64Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfInt64(int64(v)), n, nil + case protoreflect.Sint64Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfInt64(protowire.DecodeZigZag(v)), n, nil + case protoreflect.Uint64Kind: + if wtyp != protowire.VarintType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfUint64(v), n, nil + case protoreflect.Sfixed32Kind: + if wtyp != protowire.Fixed32Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfInt32(int32(v)), n, nil + case protoreflect.Fixed32Kind: + if wtyp != protowire.Fixed32Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfUint32(uint32(v)), n, nil + case protoreflect.FloatKind: + if wtyp != protowire.Fixed32Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v))), n, nil + case protoreflect.Sfixed64Kind: + if wtyp != protowire.Fixed64Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfInt64(int64(v)), n, nil + case protoreflect.Fixed64Kind: + if wtyp != protowire.Fixed64Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfUint64(v), n, nil + case protoreflect.DoubleKind: + if wtyp != protowire.Fixed64Type { + return val, 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfFloat64(math.Float64frombits(v)), n, nil + case protoreflect.StringKind: + if wtyp != protowire.BytesType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return val, 0, errDecode + } + if strs.EnforceUTF8(fd) && !utf8.Valid(v) { + return protoreflect.Value{}, 0, errors.InvalidUTF8(string(fd.FullName())) + } + return protoreflect.ValueOfString(string(v)), n, nil + case protoreflect.BytesKind: + if wtyp != protowire.BytesType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfBytes(append(emptyBuf[:], v...)), n, nil + case protoreflect.MessageKind: + if wtyp != protowire.BytesType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfBytes(v), n, nil + case protoreflect.GroupKind: + if wtyp != protowire.StartGroupType { + return val, 0, errUnknown + } + v, n := protowire.ConsumeGroup(fd.Number(), b) + if n < 0 { + return val, 0, errDecode + } + return protoreflect.ValueOfBytes(v), n, nil + default: + return val, 0, errUnknown + } +} + +func (o UnmarshalOptions) unmarshalList(b []byte, wtyp protowire.Type, list protoreflect.List, fd protoreflect.FieldDescriptor) (n int, err error) { + switch fd.Kind() { + case protoreflect.BoolKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfBool(protowire.DecodeBool(v))) + return n, nil + case protoreflect.EnumKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfEnum(protoreflect.EnumNumber(v))) + return n, nil + case protoreflect.Int32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt32(int32(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + return n, nil + case protoreflect.Sint32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32)))) + return n, nil + case protoreflect.Uint32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint32(uint32(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + return n, nil + case protoreflect.Int64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt64(int64(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + return n, nil + case protoreflect.Sint64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfInt64(protowire.DecodeZigZag(v))) + return n, nil + case protoreflect.Uint64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeVarint(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint64(v)) + } + return n, nil + } + if wtyp != protowire.VarintType { + return 0, errUnknown + } + v, n := protowire.ConsumeVarint(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfUint64(v)) + return n, nil + case protoreflect.Sfixed32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed32(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt32(int32(v))) + } + return n, nil + } + if wtyp != protowire.Fixed32Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfInt32(int32(v))) + return n, nil + case protoreflect.Fixed32Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed32(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint32(uint32(v))) + } + return n, nil + } + if wtyp != protowire.Fixed32Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfUint32(uint32(v))) + return n, nil + case protoreflect.FloatKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed32(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + } + return n, nil + } + if wtyp != protowire.Fixed32Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed32(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfFloat32(math.Float32frombits(uint32(v)))) + return n, nil + case protoreflect.Sfixed64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed64(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfInt64(int64(v))) + } + return n, nil + } + if wtyp != protowire.Fixed64Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfInt64(int64(v))) + return n, nil + case protoreflect.Fixed64Kind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed64(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfUint64(v)) + } + return n, nil + } + if wtyp != protowire.Fixed64Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfUint64(v)) + return n, nil + case protoreflect.DoubleKind: + if wtyp == protowire.BytesType { + buf, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + for len(buf) > 0 { + v, n := protowire.ConsumeFixed64(buf) + if n < 0 { + return 0, errDecode + } + buf = buf[n:] + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + } + return n, nil + } + if wtyp != protowire.Fixed64Type { + return 0, errUnknown + } + v, n := protowire.ConsumeFixed64(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfFloat64(math.Float64frombits(v))) + return n, nil + case protoreflect.StringKind: + if wtyp != protowire.BytesType { + return 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + if strs.EnforceUTF8(fd) && !utf8.Valid(v) { + return 0, errors.InvalidUTF8(string(fd.FullName())) + } + list.Append(protoreflect.ValueOfString(string(v))) + return n, nil + case protoreflect.BytesKind: + if wtyp != protowire.BytesType { + return 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + list.Append(protoreflect.ValueOfBytes(append(emptyBuf[:], v...))) + return n, nil + case protoreflect.MessageKind: + if wtyp != protowire.BytesType { + return 0, errUnknown + } + v, n := protowire.ConsumeBytes(b) + if n < 0 { + return 0, errDecode + } + m := list.NewElement() + if err := o.unmarshalMessage(v, m.Message()); err != nil { + return 0, err + } + list.Append(m) + return n, nil + case protoreflect.GroupKind: + if wtyp != protowire.StartGroupType { + return 0, errUnknown + } + v, n := protowire.ConsumeGroup(fd.Number(), b) + if n < 0 { + return 0, errDecode + } + m := list.NewElement() + if err := o.unmarshalMessage(v, m.Message()); err != nil { + return 0, err + } + list.Append(m) + return n, nil + default: + return 0, errUnknown + } +} + +// We append to an empty array rather than a nil []byte to get non-nil zero-length byte slices. +var emptyBuf [0]byte diff --git a/vendor/google.golang.org/protobuf/proto/doc.go b/vendor/google.golang.org/protobuf/proto/doc.go new file mode 100644 index 0000000..ec71e71 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/doc.go @@ -0,0 +1,86 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package proto provides functions operating on protocol buffer messages. +// +// For documentation on protocol buffers in general, see: +// https://protobuf.dev. +// +// For a tutorial on using protocol buffers with Go, see: +// https://protobuf.dev/getting-started/gotutorial. +// +// For a guide to generated Go protocol buffer code, see: +// https://protobuf.dev/reference/go/go-generated. +// +// # Binary serialization +// +// This package contains functions to convert to and from the wire format, +// an efficient binary serialization of protocol buffers. +// +// • Size reports the size of a message in the wire format. +// +// • Marshal converts a message to the wire format. +// The MarshalOptions type provides more control over wire marshaling. +// +// • Unmarshal converts a message from the wire format. +// The UnmarshalOptions type provides more control over wire unmarshaling. +// +// # Basic message operations +// +// • Clone makes a deep copy of a message. +// +// • Merge merges the content of a message into another. +// +// • Equal compares two messages. For more control over comparisons +// and detailed reporting of differences, see package +// "google.golang.org/protobuf/testing/protocmp". +// +// • Reset clears the content of a message. +// +// • CheckInitialized reports whether all required fields in a message are set. +// +// # Optional scalar constructors +// +// The API for some generated messages represents optional scalar fields +// as pointers to a value. For example, an optional string field has the +// Go type *string. +// +// • Bool, Int32, Int64, Uint32, Uint64, Float32, Float64, and String +// take a value and return a pointer to a new instance of it, +// to simplify construction of optional field values. +// +// Generated enum types usually have an Enum method which performs the +// same operation. +// +// Optional scalar fields are only supported in proto2. +// +// # Extension accessors +// +// • HasExtension, GetExtension, SetExtension, and ClearExtension +// access extension field values in a protocol buffer message. +// +// Extension fields are only supported in proto2. +// +// # Related packages +// +// • Package "google.golang.org/protobuf/encoding/protojson" converts messages to +// and from JSON. +// +// • Package "google.golang.org/protobuf/encoding/prototext" converts messages to +// and from the text format. +// +// • Package "google.golang.org/protobuf/reflect/protoreflect" provides a +// reflection interface for protocol buffer data types. +// +// • Package "google.golang.org/protobuf/testing/protocmp" provides features +// to compare protocol buffer messages with the "github.com/google/go-cmp/cmp" +// package. +// +// • Package "google.golang.org/protobuf/types/dynamicpb" provides a dynamic +// message type, suitable for working with messages where the protocol buffer +// type is only known at runtime. +// +// This module contains additional packages for more specialized use cases. +// Consult the individual package documentation for details. +package proto diff --git a/vendor/google.golang.org/protobuf/proto/encode.go b/vendor/google.golang.org/protobuf/proto/encode.go new file mode 100644 index 0000000..bf7f816 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/encode.go @@ -0,0 +1,322 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// MarshalOptions configures the marshaler. +// +// Example usage: +// +// b, err := MarshalOptions{Deterministic: true}.Marshal(m) +type MarshalOptions struct { + pragma.NoUnkeyedLiterals + + // AllowPartial allows messages that have missing required fields to marshal + // without returning an error. If AllowPartial is false (the default), + // Marshal will return an error if there are any missing required fields. + AllowPartial bool + + // Deterministic controls whether the same message will always be + // serialized to the same bytes within the same binary. + // + // Setting this option guarantees that repeated serialization of + // the same message will return the same bytes, and that different + // processes of the same binary (which may be executing on different + // machines) will serialize equal messages to the same bytes. + // It has no effect on the resulting size of the encoded message compared + // to a non-deterministic marshal. + // + // Note that the deterministic serialization is NOT canonical across + // languages. It is not guaranteed to remain stable over time. It is + // unstable across different builds with schema changes due to unknown + // fields. Users who need canonical serialization (e.g., persistent + // storage in a canonical form, fingerprinting, etc.) must define + // their own canonicalization specification and implement their own + // serializer rather than relying on this API. + // + // If deterministic serialization is requested, map entries will be + // sorted by keys in lexographical order. This is an implementation + // detail and subject to change. + Deterministic bool + + // UseCachedSize indicates that the result of a previous Size call + // may be reused. + // + // Setting this option asserts that: + // + // 1. Size has previously been called on this message with identical + // options (except for UseCachedSize itself). + // + // 2. The message and all its submessages have not changed in any + // way since the Size call. + // + // If either of these invariants is violated, + // the results are undefined and may include panics or corrupted output. + // + // Implementations MAY take this option into account to provide + // better performance, but there is no guarantee that they will do so. + // There is absolutely no guarantee that Size followed by Marshal with + // UseCachedSize set will perform equivalently to Marshal alone. + UseCachedSize bool +} + +// Marshal returns the wire-format encoding of m. +func Marshal(m Message) ([]byte, error) { + // Treat nil message interface as an empty message; nothing to output. + if m == nil { + return nil, nil + } + + out, err := MarshalOptions{}.marshal(nil, m.ProtoReflect()) + if len(out.Buf) == 0 && err == nil { + out.Buf = emptyBytesForMessage(m) + } + return out.Buf, err +} + +// Marshal returns the wire-format encoding of m. +func (o MarshalOptions) Marshal(m Message) ([]byte, error) { + // Treat nil message interface as an empty message; nothing to output. + if m == nil { + return nil, nil + } + + out, err := o.marshal(nil, m.ProtoReflect()) + if len(out.Buf) == 0 && err == nil { + out.Buf = emptyBytesForMessage(m) + } + return out.Buf, err +} + +// emptyBytesForMessage returns a nil buffer if and only if m is invalid, +// otherwise it returns a non-nil empty buffer. +// +// This is to assist the edge-case where user-code does the following: +// +// m1.OptionalBytes, _ = proto.Marshal(m2) +// +// where they expect the proto2 "optional_bytes" field to be populated +// if any only if m2 is a valid message. +func emptyBytesForMessage(m Message) []byte { + if m == nil || !m.ProtoReflect().IsValid() { + return nil + } + return emptyBuf[:] +} + +// MarshalAppend appends the wire-format encoding of m to b, +// returning the result. +func (o MarshalOptions) MarshalAppend(b []byte, m Message) ([]byte, error) { + // Treat nil message interface as an empty message; nothing to append. + if m == nil { + return b, nil + } + + out, err := o.marshal(b, m.ProtoReflect()) + return out.Buf, err +} + +// MarshalState returns the wire-format encoding of a message. +// +// This method permits fine-grained control over the marshaler. +// Most users should use Marshal instead. +func (o MarshalOptions) MarshalState(in protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + return o.marshal(in.Buf, in.Message) +} + +// marshal is a centralized function that all marshal operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for marshal that do not go through this. +func (o MarshalOptions) marshal(b []byte, m protoreflect.Message) (out protoiface.MarshalOutput, err error) { + allowPartial := o.AllowPartial + o.AllowPartial = true + if methods := protoMethods(m); methods != nil && methods.Marshal != nil && + !(o.Deterministic && methods.Flags&protoiface.SupportMarshalDeterministic == 0) { + in := protoiface.MarshalInput{ + Message: m, + Buf: b, + } + if o.Deterministic { + in.Flags |= protoiface.MarshalDeterministic + } + if o.UseCachedSize { + in.Flags |= protoiface.MarshalUseCachedSize + } + if methods.Size != nil { + sout := methods.Size(protoiface.SizeInput{ + Message: m, + Flags: in.Flags, + }) + if cap(b) < len(b)+sout.Size { + in.Buf = make([]byte, len(b), growcap(cap(b), len(b)+sout.Size)) + copy(in.Buf, b) + } + in.Flags |= protoiface.MarshalUseCachedSize + } + out, err = methods.Marshal(in) + } else { + out.Buf, err = o.marshalMessageSlow(b, m) + } + if err != nil { + return out, err + } + if allowPartial { + return out, nil + } + return out, checkInitialized(m) +} + +func (o MarshalOptions) marshalMessage(b []byte, m protoreflect.Message) ([]byte, error) { + out, err := o.marshal(b, m) + return out.Buf, err +} + +// growcap scales up the capacity of a slice. +// +// Given a slice with a current capacity of oldcap and a desired +// capacity of wantcap, growcap returns a new capacity >= wantcap. +// +// The algorithm is mostly identical to the one used by append as of Go 1.14. +func growcap(oldcap, wantcap int) (newcap int) { + if wantcap > oldcap*2 { + newcap = wantcap + } else if oldcap < 1024 { + // The Go 1.14 runtime takes this case when len(s) < 1024, + // not when cap(s) < 1024. The difference doesn't seem + // significant here. + newcap = oldcap * 2 + } else { + newcap = oldcap + for 0 < newcap && newcap < wantcap { + newcap += newcap / 4 + } + if newcap <= 0 { + newcap = wantcap + } + } + return newcap +} + +func (o MarshalOptions) marshalMessageSlow(b []byte, m protoreflect.Message) ([]byte, error) { + if messageset.IsMessageSet(m.Descriptor()) { + return o.marshalMessageSet(b, m) + } + fieldOrder := order.AnyFieldOrder + if o.Deterministic { + // TODO: This should use a more natural ordering like NumberFieldOrder, + // but doing so breaks golden tests that make invalid assumption about + // output stability of this implementation. + fieldOrder = order.LegacyFieldOrder + } + var err error + order.RangeFields(m, fieldOrder, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + b, err = o.marshalField(b, fd, v) + return err == nil + }) + if err != nil { + return b, err + } + b = append(b, m.GetUnknown()...) + return b, nil +} + +func (o MarshalOptions) marshalField(b []byte, fd protoreflect.FieldDescriptor, value protoreflect.Value) ([]byte, error) { + switch { + case fd.IsList(): + return o.marshalList(b, fd, value.List()) + case fd.IsMap(): + return o.marshalMap(b, fd, value.Map()) + default: + b = protowire.AppendTag(b, fd.Number(), wireTypes[fd.Kind()]) + return o.marshalSingular(b, fd, value) + } +} + +func (o MarshalOptions) marshalList(b []byte, fd protoreflect.FieldDescriptor, list protoreflect.List) ([]byte, error) { + if fd.IsPacked() && list.Len() > 0 { + b = protowire.AppendTag(b, fd.Number(), protowire.BytesType) + b, pos := appendSpeculativeLength(b) + for i, llen := 0, list.Len(); i < llen; i++ { + var err error + b, err = o.marshalSingular(b, fd, list.Get(i)) + if err != nil { + return b, err + } + } + b = finishSpeculativeLength(b, pos) + return b, nil + } + + kind := fd.Kind() + for i, llen := 0, list.Len(); i < llen; i++ { + var err error + b = protowire.AppendTag(b, fd.Number(), wireTypes[kind]) + b, err = o.marshalSingular(b, fd, list.Get(i)) + if err != nil { + return b, err + } + } + return b, nil +} + +func (o MarshalOptions) marshalMap(b []byte, fd protoreflect.FieldDescriptor, mapv protoreflect.Map) ([]byte, error) { + keyf := fd.MapKey() + valf := fd.MapValue() + keyOrder := order.AnyKeyOrder + if o.Deterministic { + keyOrder = order.GenericKeyOrder + } + var err error + order.RangeEntries(mapv, keyOrder, func(key protoreflect.MapKey, value protoreflect.Value) bool { + b = protowire.AppendTag(b, fd.Number(), protowire.BytesType) + var pos int + b, pos = appendSpeculativeLength(b) + + b, err = o.marshalField(b, keyf, key.Value()) + if err != nil { + return false + } + b, err = o.marshalField(b, valf, value) + if err != nil { + return false + } + b = finishSpeculativeLength(b, pos) + return true + }) + return b, err +} + +// When encoding length-prefixed fields, we speculatively set aside some number of bytes +// for the length, encode the data, and then encode the length (shifting the data if necessary +// to make room). +const speculativeLength = 1 + +func appendSpeculativeLength(b []byte) ([]byte, int) { + pos := len(b) + b = append(b, "\x00\x00\x00\x00"[:speculativeLength]...) + return b, pos +} + +func finishSpeculativeLength(b []byte, pos int) []byte { + mlen := len(b) - pos - speculativeLength + msiz := protowire.SizeVarint(uint64(mlen)) + if msiz != speculativeLength { + for i := 0; i < msiz-speculativeLength; i++ { + b = append(b, 0) + } + copy(b[pos+msiz:], b[pos+speculativeLength:]) + b = b[:pos+msiz+mlen] + } + protowire.AppendVarint(b[:pos], uint64(mlen)) + return b +} diff --git a/vendor/google.golang.org/protobuf/proto/encode_gen.go b/vendor/google.golang.org/protobuf/proto/encode_gen.go new file mode 100644 index 0000000..185dacf --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/encode_gen.go @@ -0,0 +1,97 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package proto + +import ( + "math" + "unicode/utf8" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" +) + +var wireTypes = map[protoreflect.Kind]protowire.Type{ + protoreflect.BoolKind: protowire.VarintType, + protoreflect.EnumKind: protowire.VarintType, + protoreflect.Int32Kind: protowire.VarintType, + protoreflect.Sint32Kind: protowire.VarintType, + protoreflect.Uint32Kind: protowire.VarintType, + protoreflect.Int64Kind: protowire.VarintType, + protoreflect.Sint64Kind: protowire.VarintType, + protoreflect.Uint64Kind: protowire.VarintType, + protoreflect.Sfixed32Kind: protowire.Fixed32Type, + protoreflect.Fixed32Kind: protowire.Fixed32Type, + protoreflect.FloatKind: protowire.Fixed32Type, + protoreflect.Sfixed64Kind: protowire.Fixed64Type, + protoreflect.Fixed64Kind: protowire.Fixed64Type, + protoreflect.DoubleKind: protowire.Fixed64Type, + protoreflect.StringKind: protowire.BytesType, + protoreflect.BytesKind: protowire.BytesType, + protoreflect.MessageKind: protowire.BytesType, + protoreflect.GroupKind: protowire.StartGroupType, +} + +func (o MarshalOptions) marshalSingular(b []byte, fd protoreflect.FieldDescriptor, v protoreflect.Value) ([]byte, error) { + switch fd.Kind() { + case protoreflect.BoolKind: + b = protowire.AppendVarint(b, protowire.EncodeBool(v.Bool())) + case protoreflect.EnumKind: + b = protowire.AppendVarint(b, uint64(v.Enum())) + case protoreflect.Int32Kind: + b = protowire.AppendVarint(b, uint64(int32(v.Int()))) + case protoreflect.Sint32Kind: + b = protowire.AppendVarint(b, protowire.EncodeZigZag(int64(int32(v.Int())))) + case protoreflect.Uint32Kind: + b = protowire.AppendVarint(b, uint64(uint32(v.Uint()))) + case protoreflect.Int64Kind: + b = protowire.AppendVarint(b, uint64(v.Int())) + case protoreflect.Sint64Kind: + b = protowire.AppendVarint(b, protowire.EncodeZigZag(v.Int())) + case protoreflect.Uint64Kind: + b = protowire.AppendVarint(b, v.Uint()) + case protoreflect.Sfixed32Kind: + b = protowire.AppendFixed32(b, uint32(v.Int())) + case protoreflect.Fixed32Kind: + b = protowire.AppendFixed32(b, uint32(v.Uint())) + case protoreflect.FloatKind: + b = protowire.AppendFixed32(b, math.Float32bits(float32(v.Float()))) + case protoreflect.Sfixed64Kind: + b = protowire.AppendFixed64(b, uint64(v.Int())) + case protoreflect.Fixed64Kind: + b = protowire.AppendFixed64(b, v.Uint()) + case protoreflect.DoubleKind: + b = protowire.AppendFixed64(b, math.Float64bits(v.Float())) + case protoreflect.StringKind: + if strs.EnforceUTF8(fd) && !utf8.ValidString(v.String()) { + return b, errors.InvalidUTF8(string(fd.FullName())) + } + b = protowire.AppendString(b, v.String()) + case protoreflect.BytesKind: + b = protowire.AppendBytes(b, v.Bytes()) + case protoreflect.MessageKind: + var pos int + var err error + b, pos = appendSpeculativeLength(b) + b, err = o.marshalMessage(b, v.Message()) + if err != nil { + return b, err + } + b = finishSpeculativeLength(b, pos) + case protoreflect.GroupKind: + var err error + b, err = o.marshalMessage(b, v.Message()) + if err != nil { + return b, err + } + b = protowire.AppendVarint(b, protowire.EncodeTag(fd.Number(), protowire.EndGroupType)) + default: + return b, errors.New("invalid kind %v", fd.Kind()) + } + return b, nil +} diff --git a/vendor/google.golang.org/protobuf/proto/equal.go b/vendor/google.golang.org/protobuf/proto/equal.go new file mode 100644 index 0000000..1a0be1b --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/equal.go @@ -0,0 +1,57 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "reflect" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Equal reports whether two messages are equal, +// by recursively comparing the fields of the message. +// +// - Bytes fields are equal if they contain identical bytes. +// Empty bytes (regardless of nil-ness) are considered equal. +// +// - Floating-point fields are equal if they contain the same value. +// Unlike the == operator, a NaN is equal to another NaN. +// +// - Other scalar fields are equal if they contain the same value. +// +// - Message fields are equal if they have +// the same set of populated known and extension field values, and +// the same set of unknown fields values. +// +// - Lists are equal if they are the same length and +// each corresponding element is equal. +// +// - Maps are equal if they have the same set of keys and +// the corresponding value for each key is equal. +// +// An invalid message is not equal to a valid message. +// An invalid message is only equal to another invalid message of the +// same type. An invalid message often corresponds to a nil pointer +// of the concrete message type. For example, (*pb.M)(nil) is not equal +// to &pb.M{}. +// If two valid messages marshal to the same bytes under deterministic +// serialization, then Equal is guaranteed to report true. +func Equal(x, y Message) bool { + if x == nil || y == nil { + return x == nil && y == nil + } + if reflect.TypeOf(x).Kind() == reflect.Ptr && x == y { + // Avoid an expensive comparison if both inputs are identical pointers. + return true + } + mx := x.ProtoReflect() + my := y.ProtoReflect() + if mx.IsValid() != my.IsValid() { + return false + } + vx := protoreflect.ValueOfMessage(mx) + vy := protoreflect.ValueOfMessage(my) + return vx.Equal(vy) +} diff --git a/vendor/google.golang.org/protobuf/proto/extension.go b/vendor/google.golang.org/protobuf/proto/extension.go new file mode 100644 index 0000000..5f293cd --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/extension.go @@ -0,0 +1,92 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" +) + +// HasExtension reports whether an extension field is populated. +// It returns false if m is invalid or if xt does not extend m. +func HasExtension(m Message, xt protoreflect.ExtensionType) bool { + // Treat nil message interface as an empty message; no populated fields. + if m == nil { + return false + } + + // As a special-case, we reports invalid or mismatching descriptors + // as always not being populated (since they aren't). + if xt == nil || m.ProtoReflect().Descriptor() != xt.TypeDescriptor().ContainingMessage() { + return false + } + + return m.ProtoReflect().Has(xt.TypeDescriptor()) +} + +// ClearExtension clears an extension field such that subsequent +// HasExtension calls return false. +// It panics if m is invalid or if xt does not extend m. +func ClearExtension(m Message, xt protoreflect.ExtensionType) { + m.ProtoReflect().Clear(xt.TypeDescriptor()) +} + +// GetExtension retrieves the value for an extension field. +// If the field is unpopulated, it returns the default value for +// scalars and an immutable, empty value for lists or messages. +// It panics if xt does not extend m. +func GetExtension(m Message, xt protoreflect.ExtensionType) interface{} { + // Treat nil message interface as an empty message; return the default. + if m == nil { + return xt.InterfaceOf(xt.Zero()) + } + + return xt.InterfaceOf(m.ProtoReflect().Get(xt.TypeDescriptor())) +} + +// SetExtension stores the value of an extension field. +// It panics if m is invalid, xt does not extend m, or if type of v +// is invalid for the specified extension field. +func SetExtension(m Message, xt protoreflect.ExtensionType, v interface{}) { + xd := xt.TypeDescriptor() + pv := xt.ValueOf(v) + + // Specially treat an invalid list, map, or message as clear. + isValid := true + switch { + case xd.IsList(): + isValid = pv.List().IsValid() + case xd.IsMap(): + isValid = pv.Map().IsValid() + case xd.Message() != nil: + isValid = pv.Message().IsValid() + } + if !isValid { + m.ProtoReflect().Clear(xd) + return + } + + m.ProtoReflect().Set(xd, pv) +} + +// RangeExtensions iterates over every populated extension field in m in an +// undefined order, calling f for each extension type and value encountered. +// It returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current extension field. +func RangeExtensions(m Message, f func(protoreflect.ExtensionType, interface{}) bool) { + // Treat nil message interface as an empty message; nothing to range over. + if m == nil { + return + } + + m.ProtoReflect().Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + if fd.IsExtension() { + xt := fd.(protoreflect.ExtensionTypeDescriptor).Type() + vi := xt.InterfaceOf(v) + return f(xt, vi) + } + return true + }) +} diff --git a/vendor/google.golang.org/protobuf/proto/merge.go b/vendor/google.golang.org/protobuf/proto/merge.go new file mode 100644 index 0000000..d761ab3 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/merge.go @@ -0,0 +1,139 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Merge merges src into dst, which must be a message with the same descriptor. +// +// Populated scalar fields in src are copied to dst, while populated +// singular messages in src are merged into dst by recursively calling Merge. +// The elements of every list field in src is appended to the corresponded +// list fields in dst. The entries of every map field in src is copied into +// the corresponding map field in dst, possibly replacing existing entries. +// The unknown fields of src are appended to the unknown fields of dst. +// +// It is semantically equivalent to unmarshaling the encoded form of src +// into dst with the UnmarshalOptions.Merge option specified. +func Merge(dst, src Message) { + // TODO: Should nil src be treated as semantically equivalent to a + // untyped, read-only, empty message? What about a nil dst? + + dstMsg, srcMsg := dst.ProtoReflect(), src.ProtoReflect() + if dstMsg.Descriptor() != srcMsg.Descriptor() { + if got, want := dstMsg.Descriptor().FullName(), srcMsg.Descriptor().FullName(); got != want { + panic(fmt.Sprintf("descriptor mismatch: %v != %v", got, want)) + } + panic("descriptor mismatch") + } + mergeOptions{}.mergeMessage(dstMsg, srcMsg) +} + +// Clone returns a deep copy of m. +// If the top-level message is invalid, it returns an invalid message as well. +func Clone(m Message) Message { + // NOTE: Most usages of Clone assume the following properties: + // t := reflect.TypeOf(m) + // t == reflect.TypeOf(m.ProtoReflect().New().Interface()) + // t == reflect.TypeOf(m.ProtoReflect().Type().Zero().Interface()) + // + // Embedding protobuf messages breaks this since the parent type will have + // a forwarded ProtoReflect method, but the Interface method will return + // the underlying embedded message type. + if m == nil { + return nil + } + src := m.ProtoReflect() + if !src.IsValid() { + return src.Type().Zero().Interface() + } + dst := src.New() + mergeOptions{}.mergeMessage(dst, src) + return dst.Interface() +} + +// mergeOptions provides a namespace for merge functions, and can be +// exported in the future if we add user-visible merge options. +type mergeOptions struct{} + +func (o mergeOptions) mergeMessage(dst, src protoreflect.Message) { + methods := protoMethods(dst) + if methods != nil && methods.Merge != nil { + in := protoiface.MergeInput{ + Destination: dst, + Source: src, + } + out := methods.Merge(in) + if out.Flags&protoiface.MergeComplete != 0 { + return + } + } + + if !dst.IsValid() { + panic(fmt.Sprintf("cannot merge into invalid %v message", dst.Descriptor().FullName())) + } + + src.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + case fd.IsList(): + o.mergeList(dst.Mutable(fd).List(), v.List(), fd) + case fd.IsMap(): + o.mergeMap(dst.Mutable(fd).Map(), v.Map(), fd.MapValue()) + case fd.Message() != nil: + o.mergeMessage(dst.Mutable(fd).Message(), v.Message()) + case fd.Kind() == protoreflect.BytesKind: + dst.Set(fd, o.cloneBytes(v)) + default: + dst.Set(fd, v) + } + return true + }) + + if len(src.GetUnknown()) > 0 { + dst.SetUnknown(append(dst.GetUnknown(), src.GetUnknown()...)) + } +} + +func (o mergeOptions) mergeList(dst, src protoreflect.List, fd protoreflect.FieldDescriptor) { + // Merge semantics appends to the end of the existing list. + for i, n := 0, src.Len(); i < n; i++ { + switch v := src.Get(i); { + case fd.Message() != nil: + dstv := dst.NewElement() + o.mergeMessage(dstv.Message(), v.Message()) + dst.Append(dstv) + case fd.Kind() == protoreflect.BytesKind: + dst.Append(o.cloneBytes(v)) + default: + dst.Append(v) + } + } +} + +func (o mergeOptions) mergeMap(dst, src protoreflect.Map, fd protoreflect.FieldDescriptor) { + // Merge semantics replaces, rather than merges into existing entries. + src.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool { + switch { + case fd.Message() != nil: + dstv := dst.NewValue() + o.mergeMessage(dstv.Message(), v.Message()) + dst.Set(k, dstv) + case fd.Kind() == protoreflect.BytesKind: + dst.Set(k, o.cloneBytes(v)) + default: + dst.Set(k, v) + } + return true + }) +} + +func (o mergeOptions) cloneBytes(v protoreflect.Value) protoreflect.Value { + return protoreflect.ValueOfBytes(append([]byte{}, v.Bytes()...)) +} diff --git a/vendor/google.golang.org/protobuf/proto/messageset.go b/vendor/google.golang.org/protobuf/proto/messageset.go new file mode 100644 index 0000000..312d5d4 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/messageset.go @@ -0,0 +1,93 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +func (o MarshalOptions) sizeMessageSet(m protoreflect.Message) (size int) { + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + size += messageset.SizeField(fd.Number()) + size += protowire.SizeTag(messageset.FieldMessage) + size += protowire.SizeBytes(o.size(v.Message())) + return true + }) + size += messageset.SizeUnknown(m.GetUnknown()) + return size +} + +func (o MarshalOptions) marshalMessageSet(b []byte, m protoreflect.Message) ([]byte, error) { + if !flags.ProtoLegacy { + return b, errors.New("no support for message_set_wire_format") + } + fieldOrder := order.AnyFieldOrder + if o.Deterministic { + fieldOrder = order.NumberFieldOrder + } + var err error + order.RangeFields(m, fieldOrder, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + b, err = o.marshalMessageSetField(b, fd, v) + return err == nil + }) + if err != nil { + return b, err + } + return messageset.AppendUnknown(b, m.GetUnknown()) +} + +func (o MarshalOptions) marshalMessageSetField(b []byte, fd protoreflect.FieldDescriptor, value protoreflect.Value) ([]byte, error) { + b = messageset.AppendFieldStart(b, fd.Number()) + b = protowire.AppendTag(b, messageset.FieldMessage, protowire.BytesType) + b = protowire.AppendVarint(b, uint64(o.Size(value.Message().Interface()))) + b, err := o.marshalMessage(b, value.Message()) + if err != nil { + return b, err + } + b = messageset.AppendFieldEnd(b) + return b, nil +} + +func (o UnmarshalOptions) unmarshalMessageSet(b []byte, m protoreflect.Message) error { + if !flags.ProtoLegacy { + return errors.New("no support for message_set_wire_format") + } + return messageset.Unmarshal(b, false, func(num protowire.Number, v []byte) error { + err := o.unmarshalMessageSetField(m, num, v) + if err == errUnknown { + unknown := m.GetUnknown() + unknown = protowire.AppendTag(unknown, num, protowire.BytesType) + unknown = protowire.AppendBytes(unknown, v) + m.SetUnknown(unknown) + return nil + } + return err + }) +} + +func (o UnmarshalOptions) unmarshalMessageSetField(m protoreflect.Message, num protowire.Number, v []byte) error { + md := m.Descriptor() + if !md.ExtensionRanges().Has(num) { + return errUnknown + } + xt, err := o.Resolver.FindExtensionByNumber(md.FullName(), num) + if err == protoregistry.NotFound { + return errUnknown + } + if err != nil { + return errors.New("%v: unable to resolve extension %v: %v", md.FullName(), num, err) + } + xd := xt.TypeDescriptor() + if err := o.unmarshalMessage(v, m.Mutable(xd).Message()); err != nil { + return err + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/proto/proto.go b/vendor/google.golang.org/protobuf/proto/proto.go new file mode 100644 index 0000000..1f0d183 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/proto.go @@ -0,0 +1,43 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Message is the top-level interface that all messages must implement. +// It provides access to a reflective view of a message. +// Any implementation of this interface may be used with all functions in the +// protobuf module that accept a Message, except where otherwise specified. +// +// This is the v2 interface definition for protobuf messages. +// The v1 interface definition is "github.com/golang/protobuf/proto".Message. +// +// To convert a v1 message to a v2 message, +// use "github.com/golang/protobuf/proto".MessageV2. +// To convert a v2 message to a v1 message, +// use "github.com/golang/protobuf/proto".MessageV1. +type Message = protoreflect.ProtoMessage + +// Error matches all errors produced by packages in the protobuf module. +// +// That is, errors.Is(err, Error) reports whether an error is produced +// by this module. +var Error error + +func init() { + Error = errors.Error +} + +// MessageName returns the full name of m. +// If m is nil, it returns an empty string. +func MessageName(m Message) protoreflect.FullName { + if m == nil { + return "" + } + return m.ProtoReflect().Descriptor().FullName() +} diff --git a/vendor/google.golang.org/protobuf/proto/proto_methods.go b/vendor/google.golang.org/protobuf/proto/proto_methods.go new file mode 100644 index 0000000..465e057 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/proto_methods.go @@ -0,0 +1,20 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// The protoreflect build tag disables use of fast-path methods. +//go:build !protoreflect +// +build !protoreflect + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +const hasProtoMethods = true + +func protoMethods(m protoreflect.Message) *protoiface.Methods { + return m.ProtoMethods() +} diff --git a/vendor/google.golang.org/protobuf/proto/proto_reflect.go b/vendor/google.golang.org/protobuf/proto/proto_reflect.go new file mode 100644 index 0000000..494d6ce --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/proto_reflect.go @@ -0,0 +1,20 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// The protoreflect build tag disables use of fast-path methods. +//go:build protoreflect +// +build protoreflect + +package proto + +import ( + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +const hasProtoMethods = false + +func protoMethods(m protoreflect.Message) *protoiface.Methods { + return nil +} diff --git a/vendor/google.golang.org/protobuf/proto/reset.go b/vendor/google.golang.org/protobuf/proto/reset.go new file mode 100644 index 0000000..3d7f894 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/reset.go @@ -0,0 +1,43 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "fmt" + + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Reset clears every field in the message. +// The resulting message shares no observable memory with its previous state +// other than the memory for the message itself. +func Reset(m Message) { + if mr, ok := m.(interface{ Reset() }); ok && hasProtoMethods { + mr.Reset() + return + } + resetMessage(m.ProtoReflect()) +} + +func resetMessage(m protoreflect.Message) { + if !m.IsValid() { + panic(fmt.Sprintf("cannot reset invalid %v message", m.Descriptor().FullName())) + } + + // Clear all known fields. + fds := m.Descriptor().Fields() + for i := 0; i < fds.Len(); i++ { + m.Clear(fds.Get(i)) + } + + // Clear extension fields. + m.Range(func(fd protoreflect.FieldDescriptor, _ protoreflect.Value) bool { + m.Clear(fd) + return true + }) + + // Clear unknown fields. + m.SetUnknown(nil) +} diff --git a/vendor/google.golang.org/protobuf/proto/size.go b/vendor/google.golang.org/protobuf/proto/size.go new file mode 100644 index 0000000..554b9c6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/size.go @@ -0,0 +1,97 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +// Size returns the size in bytes of the wire-format encoding of m. +func Size(m Message) int { + return MarshalOptions{}.Size(m) +} + +// Size returns the size in bytes of the wire-format encoding of m. +func (o MarshalOptions) Size(m Message) int { + // Treat a nil message interface as an empty message; nothing to output. + if m == nil { + return 0 + } + + return o.size(m.ProtoReflect()) +} + +// size is a centralized function that all size operations go through. +// For profiling purposes, avoid changing the name of this function or +// introducing other code paths for size that do not go through this. +func (o MarshalOptions) size(m protoreflect.Message) (size int) { + methods := protoMethods(m) + if methods != nil && methods.Size != nil { + out := methods.Size(protoiface.SizeInput{ + Message: m, + }) + return out.Size + } + if methods != nil && methods.Marshal != nil { + // This is not efficient, but we don't have any choice. + // This case is mainly used for legacy types with a Marshal method. + out, _ := methods.Marshal(protoiface.MarshalInput{ + Message: m, + }) + return len(out.Buf) + } + return o.sizeMessageSlow(m) +} + +func (o MarshalOptions) sizeMessageSlow(m protoreflect.Message) (size int) { + if messageset.IsMessageSet(m.Descriptor()) { + return o.sizeMessageSet(m) + } + m.Range(func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + size += o.sizeField(fd, v) + return true + }) + size += len(m.GetUnknown()) + return size +} + +func (o MarshalOptions) sizeField(fd protoreflect.FieldDescriptor, value protoreflect.Value) (size int) { + num := fd.Number() + switch { + case fd.IsList(): + return o.sizeList(num, fd, value.List()) + case fd.IsMap(): + return o.sizeMap(num, fd, value.Map()) + default: + return protowire.SizeTag(num) + o.sizeSingular(num, fd.Kind(), value) + } +} + +func (o MarshalOptions) sizeList(num protowire.Number, fd protoreflect.FieldDescriptor, list protoreflect.List) (size int) { + if fd.IsPacked() && list.Len() > 0 { + content := 0 + for i, llen := 0, list.Len(); i < llen; i++ { + content += o.sizeSingular(num, fd.Kind(), list.Get(i)) + } + return protowire.SizeTag(num) + protowire.SizeBytes(content) + } + + for i, llen := 0, list.Len(); i < llen; i++ { + size += protowire.SizeTag(num) + o.sizeSingular(num, fd.Kind(), list.Get(i)) + } + return size +} + +func (o MarshalOptions) sizeMap(num protowire.Number, fd protoreflect.FieldDescriptor, mapv protoreflect.Map) (size int) { + mapv.Range(func(key protoreflect.MapKey, value protoreflect.Value) bool { + size += protowire.SizeTag(num) + size += protowire.SizeBytes(o.sizeField(fd.MapKey(), key.Value()) + o.sizeField(fd.MapValue(), value)) + return true + }) + return size +} diff --git a/vendor/google.golang.org/protobuf/proto/size_gen.go b/vendor/google.golang.org/protobuf/proto/size_gen.go new file mode 100644 index 0000000..3cf61a8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/size_gen.go @@ -0,0 +1,55 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-types. DO NOT EDIT. + +package proto + +import ( + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/reflect/protoreflect" +) + +func (o MarshalOptions) sizeSingular(num protowire.Number, kind protoreflect.Kind, v protoreflect.Value) int { + switch kind { + case protoreflect.BoolKind: + return protowire.SizeVarint(protowire.EncodeBool(v.Bool())) + case protoreflect.EnumKind: + return protowire.SizeVarint(uint64(v.Enum())) + case protoreflect.Int32Kind: + return protowire.SizeVarint(uint64(int32(v.Int()))) + case protoreflect.Sint32Kind: + return protowire.SizeVarint(protowire.EncodeZigZag(int64(int32(v.Int())))) + case protoreflect.Uint32Kind: + return protowire.SizeVarint(uint64(uint32(v.Uint()))) + case protoreflect.Int64Kind: + return protowire.SizeVarint(uint64(v.Int())) + case protoreflect.Sint64Kind: + return protowire.SizeVarint(protowire.EncodeZigZag(v.Int())) + case protoreflect.Uint64Kind: + return protowire.SizeVarint(v.Uint()) + case protoreflect.Sfixed32Kind: + return protowire.SizeFixed32() + case protoreflect.Fixed32Kind: + return protowire.SizeFixed32() + case protoreflect.FloatKind: + return protowire.SizeFixed32() + case protoreflect.Sfixed64Kind: + return protowire.SizeFixed64() + case protoreflect.Fixed64Kind: + return protowire.SizeFixed64() + case protoreflect.DoubleKind: + return protowire.SizeFixed64() + case protoreflect.StringKind: + return protowire.SizeBytes(len(v.String())) + case protoreflect.BytesKind: + return protowire.SizeBytes(len(v.Bytes())) + case protoreflect.MessageKind: + return protowire.SizeBytes(o.size(v.Message())) + case protoreflect.GroupKind: + return protowire.SizeGroup(num, o.size(v.Message())) + default: + return 0 + } +} diff --git a/vendor/google.golang.org/protobuf/proto/wrappers.go b/vendor/google.golang.org/protobuf/proto/wrappers.go new file mode 100644 index 0000000..653b12c --- /dev/null +++ b/vendor/google.golang.org/protobuf/proto/wrappers.go @@ -0,0 +1,29 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package proto + +// Bool stores v in a new bool value and returns a pointer to it. +func Bool(v bool) *bool { return &v } + +// Int32 stores v in a new int32 value and returns a pointer to it. +func Int32(v int32) *int32 { return &v } + +// Int64 stores v in a new int64 value and returns a pointer to it. +func Int64(v int64) *int64 { return &v } + +// Float32 stores v in a new float32 value and returns a pointer to it. +func Float32(v float32) *float32 { return &v } + +// Float64 stores v in a new float64 value and returns a pointer to it. +func Float64(v float64) *float64 { return &v } + +// Uint32 stores v in a new uint32 value and returns a pointer to it. +func Uint32(v uint32) *uint32 { return &v } + +// Uint64 stores v in a new uint64 value and returns a pointer to it. +func Uint64(v uint64) *uint64 { return &v } + +// String stores v in a new string value and returns a pointer to it. +func String(v string) *string { return &v } diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go new file mode 100644 index 0000000..e4dfb12 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc.go @@ -0,0 +1,276 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protodesc provides functionality for converting +// FileDescriptorProto messages to/from protoreflect.FileDescriptor values. +// +// The google.protobuf.FileDescriptorProto is a protobuf message that describes +// the type information for a .proto file in a form that is easily serializable. +// The protoreflect.FileDescriptor is a more structured representation of +// the FileDescriptorProto message where references and remote dependencies +// can be directly followed. +package protodesc + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + "google.golang.org/protobuf/types/descriptorpb" +) + +// Resolver is the resolver used by NewFile to resolve dependencies. +// The enums and messages provided must belong to some parent file, +// which is also registered. +// +// It is implemented by protoregistry.Files. +type Resolver interface { + FindFileByPath(string) (protoreflect.FileDescriptor, error) + FindDescriptorByName(protoreflect.FullName) (protoreflect.Descriptor, error) +} + +// FileOptions configures the construction of file descriptors. +type FileOptions struct { + pragma.NoUnkeyedLiterals + + // AllowUnresolvable configures New to permissively allow unresolvable + // file, enum, or message dependencies. Unresolved dependencies are replaced + // by placeholder equivalents. + // + // The following dependencies may be left unresolved: + // • Resolving an imported file. + // • Resolving the type for a message field or extension field. + // If the kind of the field is unknown, then a placeholder is used for both + // the Enum and Message accessors on the protoreflect.FieldDescriptor. + // • Resolving an enum value set as the default for an optional enum field. + // If unresolvable, the protoreflect.FieldDescriptor.Default is set to the + // first value in the associated enum (or zero if the also enum dependency + // is also unresolvable). The protoreflect.FieldDescriptor.DefaultEnumValue + // is populated with a placeholder. + // • Resolving the extended message type for an extension field. + // • Resolving the input or output message type for a service method. + // + // If the unresolved dependency uses a relative name, + // then the placeholder will contain an invalid FullName with a "*." prefix, + // indicating that the starting prefix of the full name is unknown. + AllowUnresolvable bool +} + +// NewFile creates a new protoreflect.FileDescriptor from the provided +// file descriptor message. See FileOptions.New for more information. +func NewFile(fd *descriptorpb.FileDescriptorProto, r Resolver) (protoreflect.FileDescriptor, error) { + return FileOptions{}.New(fd, r) +} + +// NewFiles creates a new protoregistry.Files from the provided +// FileDescriptorSet message. See FileOptions.NewFiles for more information. +func NewFiles(fd *descriptorpb.FileDescriptorSet) (*protoregistry.Files, error) { + return FileOptions{}.NewFiles(fd) +} + +// New creates a new protoreflect.FileDescriptor from the provided +// file descriptor message. The file must represent a valid proto file according +// to protobuf semantics. The returned descriptor is a deep copy of the input. +// +// Any imported files, enum types, or message types referenced in the file are +// resolved using the provided registry. When looking up an import file path, +// the path must be unique. The newly created file descriptor is not registered +// back into the provided file registry. +func (o FileOptions) New(fd *descriptorpb.FileDescriptorProto, r Resolver) (protoreflect.FileDescriptor, error) { + if r == nil { + r = (*protoregistry.Files)(nil) // empty resolver + } + + // Handle the file descriptor content. + f := &filedesc.File{L2: &filedesc.FileL2{}} + switch fd.GetSyntax() { + case "proto2", "": + f.L1.Syntax = protoreflect.Proto2 + case "proto3": + f.L1.Syntax = protoreflect.Proto3 + default: + return nil, errors.New("invalid syntax: %q", fd.GetSyntax()) + } + f.L1.Path = fd.GetName() + if f.L1.Path == "" { + return nil, errors.New("file path must be populated") + } + f.L1.Package = protoreflect.FullName(fd.GetPackage()) + if !f.L1.Package.IsValid() && f.L1.Package != "" { + return nil, errors.New("invalid package: %q", f.L1.Package) + } + if opts := fd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.FileOptions) + f.L2.Options = func() protoreflect.ProtoMessage { return opts } + } + + f.L2.Imports = make(filedesc.FileImports, len(fd.GetDependency())) + for _, i := range fd.GetPublicDependency() { + if !(0 <= i && int(i) < len(f.L2.Imports)) || f.L2.Imports[i].IsPublic { + return nil, errors.New("invalid or duplicate public import index: %d", i) + } + f.L2.Imports[i].IsPublic = true + } + for _, i := range fd.GetWeakDependency() { + if !(0 <= i && int(i) < len(f.L2.Imports)) || f.L2.Imports[i].IsWeak { + return nil, errors.New("invalid or duplicate weak import index: %d", i) + } + f.L2.Imports[i].IsWeak = true + } + imps := importSet{f.Path(): true} + for i, path := range fd.GetDependency() { + imp := &f.L2.Imports[i] + f, err := r.FindFileByPath(path) + if err == protoregistry.NotFound && (o.AllowUnresolvable || imp.IsWeak) { + f = filedesc.PlaceholderFile(path) + } else if err != nil { + return nil, errors.New("could not resolve import %q: %v", path, err) + } + imp.FileDescriptor = f + + if imps[imp.Path()] { + return nil, errors.New("already imported %q", path) + } + imps[imp.Path()] = true + } + for i := range fd.GetDependency() { + imp := &f.L2.Imports[i] + imps.importPublic(imp.Imports()) + } + + // Handle source locations. + f.L2.Locations.File = f + for _, loc := range fd.GetSourceCodeInfo().GetLocation() { + var l protoreflect.SourceLocation + // TODO: Validate that the path points to an actual declaration? + l.Path = protoreflect.SourcePath(loc.GetPath()) + s := loc.GetSpan() + switch len(s) { + case 3: + l.StartLine, l.StartColumn, l.EndLine, l.EndColumn = int(s[0]), int(s[1]), int(s[0]), int(s[2]) + case 4: + l.StartLine, l.StartColumn, l.EndLine, l.EndColumn = int(s[0]), int(s[1]), int(s[2]), int(s[3]) + default: + return nil, errors.New("invalid span: %v", s) + } + // TODO: Validate that the span information is sensible? + // See https://github.com/protocolbuffers/protobuf/issues/6378. + if false && (l.EndLine < l.StartLine || l.StartLine < 0 || l.StartColumn < 0 || l.EndColumn < 0 || + (l.StartLine == l.EndLine && l.EndColumn <= l.StartColumn)) { + return nil, errors.New("invalid span: %v", s) + } + l.LeadingDetachedComments = loc.GetLeadingDetachedComments() + l.LeadingComments = loc.GetLeadingComments() + l.TrailingComments = loc.GetTrailingComments() + f.L2.Locations.List = append(f.L2.Locations.List, l) + } + + // Step 1: Allocate and derive the names for all declarations. + // This copies all fields from the descriptor proto except: + // google.protobuf.FieldDescriptorProto.type_name + // google.protobuf.FieldDescriptorProto.default_value + // google.protobuf.FieldDescriptorProto.oneof_index + // google.protobuf.FieldDescriptorProto.extendee + // google.protobuf.MethodDescriptorProto.input + // google.protobuf.MethodDescriptorProto.output + var err error + sb := new(strs.Builder) + r1 := make(descsByName) + if f.L1.Enums.List, err = r1.initEnumDeclarations(fd.GetEnumType(), f, sb); err != nil { + return nil, err + } + if f.L1.Messages.List, err = r1.initMessagesDeclarations(fd.GetMessageType(), f, sb); err != nil { + return nil, err + } + if f.L1.Extensions.List, err = r1.initExtensionDeclarations(fd.GetExtension(), f, sb); err != nil { + return nil, err + } + if f.L1.Services.List, err = r1.initServiceDeclarations(fd.GetService(), f, sb); err != nil { + return nil, err + } + + // Step 2: Resolve every dependency reference not handled by step 1. + r2 := &resolver{local: r1, remote: r, imports: imps, allowUnresolvable: o.AllowUnresolvable} + if err := r2.resolveMessageDependencies(f.L1.Messages.List, fd.GetMessageType()); err != nil { + return nil, err + } + if err := r2.resolveExtensionDependencies(f.L1.Extensions.List, fd.GetExtension()); err != nil { + return nil, err + } + if err := r2.resolveServiceDependencies(f.L1.Services.List, fd.GetService()); err != nil { + return nil, err + } + + // Step 3: Validate every enum, message, and extension declaration. + if err := validateEnumDeclarations(f.L1.Enums.List, fd.GetEnumType()); err != nil { + return nil, err + } + if err := validateMessageDeclarations(f.L1.Messages.List, fd.GetMessageType()); err != nil { + return nil, err + } + if err := validateExtensionDeclarations(f.L1.Extensions.List, fd.GetExtension()); err != nil { + return nil, err + } + + return f, nil +} + +type importSet map[string]bool + +func (is importSet) importPublic(imps protoreflect.FileImports) { + for i := 0; i < imps.Len(); i++ { + if imp := imps.Get(i); imp.IsPublic { + is[imp.Path()] = true + is.importPublic(imp.Imports()) + } + } +} + +// NewFiles creates a new protoregistry.Files from the provided +// FileDescriptorSet message. The descriptor set must include only +// valid files according to protobuf semantics. The returned descriptors +// are a deep copy of the input. +func (o FileOptions) NewFiles(fds *descriptorpb.FileDescriptorSet) (*protoregistry.Files, error) { + files := make(map[string]*descriptorpb.FileDescriptorProto) + for _, fd := range fds.File { + if _, ok := files[fd.GetName()]; ok { + return nil, errors.New("file appears multiple times: %q", fd.GetName()) + } + files[fd.GetName()] = fd + } + r := &protoregistry.Files{} + for _, fd := range files { + if err := o.addFileDeps(r, fd, files); err != nil { + return nil, err + } + } + return r, nil +} +func (o FileOptions) addFileDeps(r *protoregistry.Files, fd *descriptorpb.FileDescriptorProto, files map[string]*descriptorpb.FileDescriptorProto) error { + // Set the entry to nil while descending into a file's dependencies to detect cycles. + files[fd.GetName()] = nil + for _, dep := range fd.Dependency { + depfd, ok := files[dep] + if depfd == nil { + if ok { + return errors.New("import cycle in file: %q", dep) + } + continue + } + if err := o.addFileDeps(r, depfd, files); err != nil { + return err + } + } + // Delete the entry once dependencies are processed. + delete(files, fd.GetName()) + f, err := o.New(fd, r) + if err != nil { + return err + } + return r.RegisterFile(f) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go new file mode 100644 index 0000000..37efda1 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go @@ -0,0 +1,248 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +type descsByName map[protoreflect.FullName]protoreflect.Descriptor + +func (r descsByName) initEnumDeclarations(eds []*descriptorpb.EnumDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (es []filedesc.Enum, err error) { + es = make([]filedesc.Enum, len(eds)) // allocate up-front to ensure stable pointers + for i, ed := range eds { + e := &es[i] + e.L2 = new(filedesc.EnumL2) + if e.L0, err = r.makeBase(e, parent, ed.GetName(), i, sb); err != nil { + return nil, err + } + if opts := ed.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.EnumOptions) + e.L2.Options = func() protoreflect.ProtoMessage { return opts } + } + for _, s := range ed.GetReservedName() { + e.L2.ReservedNames.List = append(e.L2.ReservedNames.List, protoreflect.Name(s)) + } + for _, rr := range ed.GetReservedRange() { + e.L2.ReservedRanges.List = append(e.L2.ReservedRanges.List, [2]protoreflect.EnumNumber{ + protoreflect.EnumNumber(rr.GetStart()), + protoreflect.EnumNumber(rr.GetEnd()), + }) + } + if e.L2.Values.List, err = r.initEnumValuesFromDescriptorProto(ed.GetValue(), e, sb); err != nil { + return nil, err + } + } + return es, nil +} + +func (r descsByName) initEnumValuesFromDescriptorProto(vds []*descriptorpb.EnumValueDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (vs []filedesc.EnumValue, err error) { + vs = make([]filedesc.EnumValue, len(vds)) // allocate up-front to ensure stable pointers + for i, vd := range vds { + v := &vs[i] + if v.L0, err = r.makeBase(v, parent, vd.GetName(), i, sb); err != nil { + return nil, err + } + if opts := vd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.EnumValueOptions) + v.L1.Options = func() protoreflect.ProtoMessage { return opts } + } + v.L1.Number = protoreflect.EnumNumber(vd.GetNumber()) + } + return vs, nil +} + +func (r descsByName) initMessagesDeclarations(mds []*descriptorpb.DescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (ms []filedesc.Message, err error) { + ms = make([]filedesc.Message, len(mds)) // allocate up-front to ensure stable pointers + for i, md := range mds { + m := &ms[i] + m.L2 = new(filedesc.MessageL2) + if m.L0, err = r.makeBase(m, parent, md.GetName(), i, sb); err != nil { + return nil, err + } + if opts := md.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.MessageOptions) + m.L2.Options = func() protoreflect.ProtoMessage { return opts } + m.L1.IsMapEntry = opts.GetMapEntry() + m.L1.IsMessageSet = opts.GetMessageSetWireFormat() + } + for _, s := range md.GetReservedName() { + m.L2.ReservedNames.List = append(m.L2.ReservedNames.List, protoreflect.Name(s)) + } + for _, rr := range md.GetReservedRange() { + m.L2.ReservedRanges.List = append(m.L2.ReservedRanges.List, [2]protoreflect.FieldNumber{ + protoreflect.FieldNumber(rr.GetStart()), + protoreflect.FieldNumber(rr.GetEnd()), + }) + } + for _, xr := range md.GetExtensionRange() { + m.L2.ExtensionRanges.List = append(m.L2.ExtensionRanges.List, [2]protoreflect.FieldNumber{ + protoreflect.FieldNumber(xr.GetStart()), + protoreflect.FieldNumber(xr.GetEnd()), + }) + var optsFunc func() protoreflect.ProtoMessage + if opts := xr.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.ExtensionRangeOptions) + optsFunc = func() protoreflect.ProtoMessage { return opts } + } + m.L2.ExtensionRangeOptions = append(m.L2.ExtensionRangeOptions, optsFunc) + } + if m.L2.Fields.List, err = r.initFieldsFromDescriptorProto(md.GetField(), m, sb); err != nil { + return nil, err + } + if m.L2.Oneofs.List, err = r.initOneofsFromDescriptorProto(md.GetOneofDecl(), m, sb); err != nil { + return nil, err + } + if m.L1.Enums.List, err = r.initEnumDeclarations(md.GetEnumType(), m, sb); err != nil { + return nil, err + } + if m.L1.Messages.List, err = r.initMessagesDeclarations(md.GetNestedType(), m, sb); err != nil { + return nil, err + } + if m.L1.Extensions.List, err = r.initExtensionDeclarations(md.GetExtension(), m, sb); err != nil { + return nil, err + } + } + return ms, nil +} + +func (r descsByName) initFieldsFromDescriptorProto(fds []*descriptorpb.FieldDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (fs []filedesc.Field, err error) { + fs = make([]filedesc.Field, len(fds)) // allocate up-front to ensure stable pointers + for i, fd := range fds { + f := &fs[i] + if f.L0, err = r.makeBase(f, parent, fd.GetName(), i, sb); err != nil { + return nil, err + } + f.L1.IsProto3Optional = fd.GetProto3Optional() + if opts := fd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.FieldOptions) + f.L1.Options = func() protoreflect.ProtoMessage { return opts } + f.L1.IsWeak = opts.GetWeak() + f.L1.HasPacked = opts.Packed != nil + f.L1.IsPacked = opts.GetPacked() + } + f.L1.Number = protoreflect.FieldNumber(fd.GetNumber()) + f.L1.Cardinality = protoreflect.Cardinality(fd.GetLabel()) + if fd.Type != nil { + f.L1.Kind = protoreflect.Kind(fd.GetType()) + } + if fd.JsonName != nil { + f.L1.StringName.InitJSON(fd.GetJsonName()) + } + } + return fs, nil +} + +func (r descsByName) initOneofsFromDescriptorProto(ods []*descriptorpb.OneofDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (os []filedesc.Oneof, err error) { + os = make([]filedesc.Oneof, len(ods)) // allocate up-front to ensure stable pointers + for i, od := range ods { + o := &os[i] + if o.L0, err = r.makeBase(o, parent, od.GetName(), i, sb); err != nil { + return nil, err + } + if opts := od.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.OneofOptions) + o.L1.Options = func() protoreflect.ProtoMessage { return opts } + } + } + return os, nil +} + +func (r descsByName) initExtensionDeclarations(xds []*descriptorpb.FieldDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (xs []filedesc.Extension, err error) { + xs = make([]filedesc.Extension, len(xds)) // allocate up-front to ensure stable pointers + for i, xd := range xds { + x := &xs[i] + x.L2 = new(filedesc.ExtensionL2) + if x.L0, err = r.makeBase(x, parent, xd.GetName(), i, sb); err != nil { + return nil, err + } + if opts := xd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.FieldOptions) + x.L2.Options = func() protoreflect.ProtoMessage { return opts } + x.L2.IsPacked = opts.GetPacked() + } + x.L1.Number = protoreflect.FieldNumber(xd.GetNumber()) + x.L1.Cardinality = protoreflect.Cardinality(xd.GetLabel()) + if xd.Type != nil { + x.L1.Kind = protoreflect.Kind(xd.GetType()) + } + if xd.JsonName != nil { + x.L2.StringName.InitJSON(xd.GetJsonName()) + } + } + return xs, nil +} + +func (r descsByName) initServiceDeclarations(sds []*descriptorpb.ServiceDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (ss []filedesc.Service, err error) { + ss = make([]filedesc.Service, len(sds)) // allocate up-front to ensure stable pointers + for i, sd := range sds { + s := &ss[i] + s.L2 = new(filedesc.ServiceL2) + if s.L0, err = r.makeBase(s, parent, sd.GetName(), i, sb); err != nil { + return nil, err + } + if opts := sd.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.ServiceOptions) + s.L2.Options = func() protoreflect.ProtoMessage { return opts } + } + if s.L2.Methods.List, err = r.initMethodsFromDescriptorProto(sd.GetMethod(), s, sb); err != nil { + return nil, err + } + } + return ss, nil +} + +func (r descsByName) initMethodsFromDescriptorProto(mds []*descriptorpb.MethodDescriptorProto, parent protoreflect.Descriptor, sb *strs.Builder) (ms []filedesc.Method, err error) { + ms = make([]filedesc.Method, len(mds)) // allocate up-front to ensure stable pointers + for i, md := range mds { + m := &ms[i] + if m.L0, err = r.makeBase(m, parent, md.GetName(), i, sb); err != nil { + return nil, err + } + if opts := md.GetOptions(); opts != nil { + opts = proto.Clone(opts).(*descriptorpb.MethodOptions) + m.L1.Options = func() protoreflect.ProtoMessage { return opts } + } + m.L1.IsStreamingClient = md.GetClientStreaming() + m.L1.IsStreamingServer = md.GetServerStreaming() + } + return ms, nil +} + +func (r descsByName) makeBase(child, parent protoreflect.Descriptor, name string, idx int, sb *strs.Builder) (filedesc.BaseL0, error) { + if !protoreflect.Name(name).IsValid() { + return filedesc.BaseL0{}, errors.New("descriptor %q has an invalid nested name: %q", parent.FullName(), name) + } + + // Derive the full name of the child. + // Note that enum values are a sibling to the enum parent in the namespace. + var fullName protoreflect.FullName + if _, ok := parent.(protoreflect.EnumDescriptor); ok { + fullName = sb.AppendFullName(parent.FullName().Parent(), protoreflect.Name(name)) + } else { + fullName = sb.AppendFullName(parent.FullName(), protoreflect.Name(name)) + } + if _, ok := r[fullName]; ok { + return filedesc.BaseL0{}, errors.New("descriptor %q already declared", fullName) + } + r[fullName] = child + + // TODO: Verify that the full name does not already exist in the resolver? + // This is not as critical since most usages of NewFile will register + // the created file back into the registry, which will perform this check. + + return filedesc.BaseL0{ + FullName: fullName, + ParentFile: parent.ParentFile().(*filedesc.File), + Parent: parent, + Index: idx, + }, nil +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go new file mode 100644 index 0000000..27d7e35 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go @@ -0,0 +1,286 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + "google.golang.org/protobuf/types/descriptorpb" +) + +// resolver is a wrapper around a local registry of declarations within the file +// and the remote resolver. The remote resolver is restricted to only return +// descriptors that have been imported. +type resolver struct { + local descsByName + remote Resolver + imports importSet + + allowUnresolvable bool +} + +func (r *resolver) resolveMessageDependencies(ms []filedesc.Message, mds []*descriptorpb.DescriptorProto) (err error) { + for i, md := range mds { + m := &ms[i] + for j, fd := range md.GetField() { + f := &m.L2.Fields.List[j] + if f.L1.Cardinality == protoreflect.Required { + m.L2.RequiredNumbers.List = append(m.L2.RequiredNumbers.List, f.L1.Number) + } + if fd.OneofIndex != nil { + k := int(fd.GetOneofIndex()) + if !(0 <= k && k < len(md.GetOneofDecl())) { + return errors.New("message field %q has an invalid oneof index: %d", f.FullName(), k) + } + o := &m.L2.Oneofs.List[k] + f.L1.ContainingOneof = o + o.L1.Fields.List = append(o.L1.Fields.List, f) + } + + if f.L1.Kind, f.L1.Enum, f.L1.Message, err = r.findTarget(f.Kind(), f.Parent().FullName(), partialName(fd.GetTypeName()), f.IsWeak()); err != nil { + return errors.New("message field %q cannot resolve type: %v", f.FullName(), err) + } + if fd.DefaultValue != nil { + v, ev, err := unmarshalDefault(fd.GetDefaultValue(), f, r.allowUnresolvable) + if err != nil { + return errors.New("message field %q has invalid default: %v", f.FullName(), err) + } + f.L1.Default = filedesc.DefaultValue(v, ev) + } + } + + if err := r.resolveMessageDependencies(m.L1.Messages.List, md.GetNestedType()); err != nil { + return err + } + if err := r.resolveExtensionDependencies(m.L1.Extensions.List, md.GetExtension()); err != nil { + return err + } + } + return nil +} + +func (r *resolver) resolveExtensionDependencies(xs []filedesc.Extension, xds []*descriptorpb.FieldDescriptorProto) (err error) { + for i, xd := range xds { + x := &xs[i] + if x.L1.Extendee, err = r.findMessageDescriptor(x.Parent().FullName(), partialName(xd.GetExtendee()), false); err != nil { + return errors.New("extension field %q cannot resolve extendee: %v", x.FullName(), err) + } + if x.L1.Kind, x.L2.Enum, x.L2.Message, err = r.findTarget(x.Kind(), x.Parent().FullName(), partialName(xd.GetTypeName()), false); err != nil { + return errors.New("extension field %q cannot resolve type: %v", x.FullName(), err) + } + if xd.DefaultValue != nil { + v, ev, err := unmarshalDefault(xd.GetDefaultValue(), x, r.allowUnresolvable) + if err != nil { + return errors.New("extension field %q has invalid default: %v", x.FullName(), err) + } + x.L2.Default = filedesc.DefaultValue(v, ev) + } + } + return nil +} + +func (r *resolver) resolveServiceDependencies(ss []filedesc.Service, sds []*descriptorpb.ServiceDescriptorProto) (err error) { + for i, sd := range sds { + s := &ss[i] + for j, md := range sd.GetMethod() { + m := &s.L2.Methods.List[j] + m.L1.Input, err = r.findMessageDescriptor(m.Parent().FullName(), partialName(md.GetInputType()), false) + if err != nil { + return errors.New("service method %q cannot resolve input: %v", m.FullName(), err) + } + m.L1.Output, err = r.findMessageDescriptor(s.FullName(), partialName(md.GetOutputType()), false) + if err != nil { + return errors.New("service method %q cannot resolve output: %v", m.FullName(), err) + } + } + } + return nil +} + +// findTarget finds an enum or message descriptor if k is an enum, message, +// group, or unknown. If unknown, and the name could be resolved, the kind +// returned kind is set based on the type of the resolved descriptor. +func (r *resolver) findTarget(k protoreflect.Kind, scope protoreflect.FullName, ref partialName, isWeak bool) (protoreflect.Kind, protoreflect.EnumDescriptor, protoreflect.MessageDescriptor, error) { + switch k { + case protoreflect.EnumKind: + ed, err := r.findEnumDescriptor(scope, ref, isWeak) + if err != nil { + return 0, nil, nil, err + } + return k, ed, nil, nil + case protoreflect.MessageKind, protoreflect.GroupKind: + md, err := r.findMessageDescriptor(scope, ref, isWeak) + if err != nil { + return 0, nil, nil, err + } + return k, nil, md, nil + case 0: + // Handle unspecified kinds (possible with parsers that operate + // on a per-file basis without knowledge of dependencies). + d, err := r.findDescriptor(scope, ref) + if err == protoregistry.NotFound && (r.allowUnresolvable || isWeak) { + return k, filedesc.PlaceholderEnum(ref.FullName()), filedesc.PlaceholderMessage(ref.FullName()), nil + } else if err == protoregistry.NotFound { + return 0, nil, nil, errors.New("%q not found", ref.FullName()) + } else if err != nil { + return 0, nil, nil, err + } + switch d := d.(type) { + case protoreflect.EnumDescriptor: + return protoreflect.EnumKind, d, nil, nil + case protoreflect.MessageDescriptor: + return protoreflect.MessageKind, nil, d, nil + default: + return 0, nil, nil, errors.New("unknown kind") + } + default: + if ref != "" { + return 0, nil, nil, errors.New("target name cannot be specified for %v", k) + } + if !k.IsValid() { + return 0, nil, nil, errors.New("invalid kind: %d", k) + } + return k, nil, nil, nil + } +} + +// findDescriptor finds the descriptor by name, +// which may be a relative name within some scope. +// +// Suppose the scope was "fizz.buzz" and the reference was "Foo.Bar", +// then the following full names are searched: +// - fizz.buzz.Foo.Bar +// - fizz.Foo.Bar +// - Foo.Bar +func (r *resolver) findDescriptor(scope protoreflect.FullName, ref partialName) (protoreflect.Descriptor, error) { + if !ref.IsValid() { + return nil, errors.New("invalid name reference: %q", ref) + } + if ref.IsFull() { + scope, ref = "", ref[1:] + } + var foundButNotImported protoreflect.Descriptor + for { + // Derive the full name to search. + s := protoreflect.FullName(ref) + if scope != "" { + s = scope + "." + s + } + + // Check the current file for the descriptor. + if d, ok := r.local[s]; ok { + return d, nil + } + + // Check the remote registry for the descriptor. + d, err := r.remote.FindDescriptorByName(s) + if err == nil { + // Only allow descriptors covered by one of the imports. + if r.imports[d.ParentFile().Path()] { + return d, nil + } + foundButNotImported = d + } else if err != protoregistry.NotFound { + return nil, errors.Wrap(err, "%q", s) + } + + // Continue on at a higher level of scoping. + if scope == "" { + if d := foundButNotImported; d != nil { + return nil, errors.New("resolved %q, but %q is not imported", d.FullName(), d.ParentFile().Path()) + } + return nil, protoregistry.NotFound + } + scope = scope.Parent() + } +} + +func (r *resolver) findEnumDescriptor(scope protoreflect.FullName, ref partialName, isWeak bool) (protoreflect.EnumDescriptor, error) { + d, err := r.findDescriptor(scope, ref) + if err == protoregistry.NotFound && (r.allowUnresolvable || isWeak) { + return filedesc.PlaceholderEnum(ref.FullName()), nil + } else if err == protoregistry.NotFound { + return nil, errors.New("%q not found", ref.FullName()) + } else if err != nil { + return nil, err + } + ed, ok := d.(protoreflect.EnumDescriptor) + if !ok { + return nil, errors.New("resolved %q, but it is not an enum", d.FullName()) + } + return ed, nil +} + +func (r *resolver) findMessageDescriptor(scope protoreflect.FullName, ref partialName, isWeak bool) (protoreflect.MessageDescriptor, error) { + d, err := r.findDescriptor(scope, ref) + if err == protoregistry.NotFound && (r.allowUnresolvable || isWeak) { + return filedesc.PlaceholderMessage(ref.FullName()), nil + } else if err == protoregistry.NotFound { + return nil, errors.New("%q not found", ref.FullName()) + } else if err != nil { + return nil, err + } + md, ok := d.(protoreflect.MessageDescriptor) + if !ok { + return nil, errors.New("resolved %q, but it is not an message", d.FullName()) + } + return md, nil +} + +// partialName is the partial name. A leading dot means that the name is full, +// otherwise the name is relative to some current scope. +// See google.protobuf.FieldDescriptorProto.type_name. +type partialName string + +func (s partialName) IsFull() bool { + return len(s) > 0 && s[0] == '.' +} + +func (s partialName) IsValid() bool { + if s.IsFull() { + return protoreflect.FullName(s[1:]).IsValid() + } + return protoreflect.FullName(s).IsValid() +} + +const unknownPrefix = "*." + +// FullName converts the partial name to a full name on a best-effort basis. +// If relative, it creates an invalid full name, using a "*." prefix +// to indicate that the start of the full name is unknown. +func (s partialName) FullName() protoreflect.FullName { + if s.IsFull() { + return protoreflect.FullName(s[1:]) + } + return protoreflect.FullName(unknownPrefix + s) +} + +func unmarshalDefault(s string, fd protoreflect.FieldDescriptor, allowUnresolvable bool) (protoreflect.Value, protoreflect.EnumValueDescriptor, error) { + var evs protoreflect.EnumValueDescriptors + if fd.Enum() != nil { + evs = fd.Enum().Values() + } + v, ev, err := defval.Unmarshal(s, fd.Kind(), evs, defval.Descriptor) + if err != nil && allowUnresolvable && evs != nil && protoreflect.Name(s).IsValid() { + v = protoreflect.ValueOfEnum(0) + if evs.Len() > 0 { + v = protoreflect.ValueOfEnum(evs.Get(0).Number()) + } + ev = filedesc.PlaceholderEnumValue(fd.Enum().FullName().Parent().Append(protoreflect.Name(s))) + } else if err != nil { + return v, ev, err + } + if fd.Syntax() == protoreflect.Proto3 { + return v, ev, errors.New("cannot be specified under proto3 semantics") + } + if fd.Kind() == protoreflect.MessageKind || fd.Kind() == protoreflect.GroupKind || fd.Cardinality() == protoreflect.Repeated { + return v, ev, errors.New("cannot be specified on composite types") + } + return v, ev, nil +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go new file mode 100644 index 0000000..9af1d56 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go @@ -0,0 +1,374 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "strings" + "unicode" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +func validateEnumDeclarations(es []filedesc.Enum, eds []*descriptorpb.EnumDescriptorProto) error { + for i, ed := range eds { + e := &es[i] + if err := e.L2.ReservedNames.CheckValid(); err != nil { + return errors.New("enum %q reserved names has %v", e.FullName(), err) + } + if err := e.L2.ReservedRanges.CheckValid(); err != nil { + return errors.New("enum %q reserved ranges has %v", e.FullName(), err) + } + if len(ed.GetValue()) == 0 { + return errors.New("enum %q must contain at least one value declaration", e.FullName()) + } + allowAlias := ed.GetOptions().GetAllowAlias() + foundAlias := false + for i := 0; i < e.Values().Len(); i++ { + v1 := e.Values().Get(i) + if v2 := e.Values().ByNumber(v1.Number()); v1 != v2 { + foundAlias = true + if !allowAlias { + return errors.New("enum %q has conflicting non-aliased values on number %d: %q with %q", e.FullName(), v1.Number(), v1.Name(), v2.Name()) + } + } + } + if allowAlias && !foundAlias { + return errors.New("enum %q allows aliases, but none were found", e.FullName()) + } + if e.Syntax() == protoreflect.Proto3 { + if v := e.Values().Get(0); v.Number() != 0 { + return errors.New("enum %q using proto3 semantics must have zero number for the first value", v.FullName()) + } + // Verify that value names in proto3 do not conflict if the + // case-insensitive prefix is removed. + // See protoc v3.8.0: src/google/protobuf/descriptor.cc:4991-5055 + names := map[string]protoreflect.EnumValueDescriptor{} + prefix := strings.Replace(strings.ToLower(string(e.Name())), "_", "", -1) + for i := 0; i < e.Values().Len(); i++ { + v1 := e.Values().Get(i) + s := strs.EnumValueName(strs.TrimEnumPrefix(string(v1.Name()), prefix)) + if v2, ok := names[s]; ok && v1.Number() != v2.Number() { + return errors.New("enum %q using proto3 semantics has conflict: %q with %q", e.FullName(), v1.Name(), v2.Name()) + } + names[s] = v1 + } + } + + for j, vd := range ed.GetValue() { + v := &e.L2.Values.List[j] + if vd.Number == nil { + return errors.New("enum value %q must have a specified number", v.FullName()) + } + if e.L2.ReservedNames.Has(v.Name()) { + return errors.New("enum value %q must not use reserved name", v.FullName()) + } + if e.L2.ReservedRanges.Has(v.Number()) { + return errors.New("enum value %q must not use reserved number %d", v.FullName(), v.Number()) + } + } + } + return nil +} + +func validateMessageDeclarations(ms []filedesc.Message, mds []*descriptorpb.DescriptorProto) error { + for i, md := range mds { + m := &ms[i] + + // Handle the message descriptor itself. + isMessageSet := md.GetOptions().GetMessageSetWireFormat() + if err := m.L2.ReservedNames.CheckValid(); err != nil { + return errors.New("message %q reserved names has %v", m.FullName(), err) + } + if err := m.L2.ReservedRanges.CheckValid(isMessageSet); err != nil { + return errors.New("message %q reserved ranges has %v", m.FullName(), err) + } + if err := m.L2.ExtensionRanges.CheckValid(isMessageSet); err != nil { + return errors.New("message %q extension ranges has %v", m.FullName(), err) + } + if err := (*filedesc.FieldRanges).CheckOverlap(&m.L2.ReservedRanges, &m.L2.ExtensionRanges); err != nil { + return errors.New("message %q reserved and extension ranges has %v", m.FullName(), err) + } + for i := 0; i < m.Fields().Len(); i++ { + f1 := m.Fields().Get(i) + if f2 := m.Fields().ByNumber(f1.Number()); f1 != f2 { + return errors.New("message %q has conflicting fields: %q with %q", m.FullName(), f1.Name(), f2.Name()) + } + } + if isMessageSet && !flags.ProtoLegacy { + return errors.New("message %q is a MessageSet, which is a legacy proto1 feature that is no longer supported", m.FullName()) + } + if isMessageSet && (m.Syntax() != protoreflect.Proto2 || m.Fields().Len() > 0 || m.ExtensionRanges().Len() == 0) { + return errors.New("message %q is an invalid proto1 MessageSet", m.FullName()) + } + if m.Syntax() == protoreflect.Proto3 { + if m.ExtensionRanges().Len() > 0 { + return errors.New("message %q using proto3 semantics cannot have extension ranges", m.FullName()) + } + // Verify that field names in proto3 do not conflict if lowercased + // with all underscores removed. + // See protoc v3.8.0: src/google/protobuf/descriptor.cc:5830-5847 + names := map[string]protoreflect.FieldDescriptor{} + for i := 0; i < m.Fields().Len(); i++ { + f1 := m.Fields().Get(i) + s := strings.Replace(strings.ToLower(string(f1.Name())), "_", "", -1) + if f2, ok := names[s]; ok { + return errors.New("message %q using proto3 semantics has conflict: %q with %q", m.FullName(), f1.Name(), f2.Name()) + } + names[s] = f1 + } + } + + for j, fd := range md.GetField() { + f := &m.L2.Fields.List[j] + if m.L2.ReservedNames.Has(f.Name()) { + return errors.New("message field %q must not use reserved name", f.FullName()) + } + if !f.Number().IsValid() { + return errors.New("message field %q has an invalid number: %d", f.FullName(), f.Number()) + } + if !f.Cardinality().IsValid() { + return errors.New("message field %q has an invalid cardinality: %d", f.FullName(), f.Cardinality()) + } + if m.L2.ReservedRanges.Has(f.Number()) { + return errors.New("message field %q must not use reserved number %d", f.FullName(), f.Number()) + } + if m.L2.ExtensionRanges.Has(f.Number()) { + return errors.New("message field %q with number %d in extension range", f.FullName(), f.Number()) + } + if fd.Extendee != nil { + return errors.New("message field %q may not have extendee: %q", f.FullName(), fd.GetExtendee()) + } + if f.L1.IsProto3Optional { + if f.Syntax() != protoreflect.Proto3 { + return errors.New("message field %q under proto3 optional semantics must be specified in the proto3 syntax", f.FullName()) + } + if f.Cardinality() != protoreflect.Optional { + return errors.New("message field %q under proto3 optional semantics must have optional cardinality", f.FullName()) + } + if f.ContainingOneof() != nil && f.ContainingOneof().Fields().Len() != 1 { + return errors.New("message field %q under proto3 optional semantics must be within a single element oneof", f.FullName()) + } + } + if f.IsWeak() && !flags.ProtoLegacy { + return errors.New("message field %q is a weak field, which is a legacy proto1 feature that is no longer supported", f.FullName()) + } + if f.IsWeak() && (f.Syntax() != protoreflect.Proto2 || !isOptionalMessage(f) || f.ContainingOneof() != nil) { + return errors.New("message field %q may only be weak for an optional message", f.FullName()) + } + if f.IsPacked() && !isPackable(f) { + return errors.New("message field %q is not packable", f.FullName()) + } + if err := checkValidGroup(f); err != nil { + return errors.New("message field %q is an invalid group: %v", f.FullName(), err) + } + if err := checkValidMap(f); err != nil { + return errors.New("message field %q is an invalid map: %v", f.FullName(), err) + } + if f.Syntax() == protoreflect.Proto3 { + if f.Cardinality() == protoreflect.Required { + return errors.New("message field %q using proto3 semantics cannot be required", f.FullName()) + } + if f.Enum() != nil && !f.Enum().IsPlaceholder() && f.Enum().Syntax() != protoreflect.Proto3 { + return errors.New("message field %q using proto3 semantics may only depend on a proto3 enum", f.FullName()) + } + } + } + seenSynthetic := false // synthetic oneofs for proto3 optional must come after real oneofs + for j := range md.GetOneofDecl() { + o := &m.L2.Oneofs.List[j] + if o.Fields().Len() == 0 { + return errors.New("message oneof %q must contain at least one field declaration", o.FullName()) + } + if n := o.Fields().Len(); n-1 != (o.Fields().Get(n-1).Index() - o.Fields().Get(0).Index()) { + return errors.New("message oneof %q must have consecutively declared fields", o.FullName()) + } + + if o.IsSynthetic() { + seenSynthetic = true + continue + } + if !o.IsSynthetic() && seenSynthetic { + return errors.New("message oneof %q must be declared before synthetic oneofs", o.FullName()) + } + + for i := 0; i < o.Fields().Len(); i++ { + f := o.Fields().Get(i) + if f.Cardinality() != protoreflect.Optional { + return errors.New("message field %q belongs in a oneof and must be optional", f.FullName()) + } + if f.IsWeak() { + return errors.New("message field %q belongs in a oneof and must not be a weak reference", f.FullName()) + } + } + } + + if err := validateEnumDeclarations(m.L1.Enums.List, md.GetEnumType()); err != nil { + return err + } + if err := validateMessageDeclarations(m.L1.Messages.List, md.GetNestedType()); err != nil { + return err + } + if err := validateExtensionDeclarations(m.L1.Extensions.List, md.GetExtension()); err != nil { + return err + } + } + return nil +} + +func validateExtensionDeclarations(xs []filedesc.Extension, xds []*descriptorpb.FieldDescriptorProto) error { + for i, xd := range xds { + x := &xs[i] + // NOTE: Avoid using the IsValid method since extensions to MessageSet + // may have a field number higher than normal. This check only verifies + // that the number is not negative or reserved. We check again later + // if we know that the extendee is definitely not a MessageSet. + if n := x.Number(); n < 0 || (protowire.FirstReservedNumber <= n && n <= protowire.LastReservedNumber) { + return errors.New("extension field %q has an invalid number: %d", x.FullName(), x.Number()) + } + if !x.Cardinality().IsValid() || x.Cardinality() == protoreflect.Required { + return errors.New("extension field %q has an invalid cardinality: %d", x.FullName(), x.Cardinality()) + } + if xd.JsonName != nil { + // A bug in older versions of protoc would always populate the + // "json_name" option for extensions when it is meaningless. + // When it did so, it would always use the camel-cased field name. + if xd.GetJsonName() != strs.JSONCamelCase(string(x.Name())) { + return errors.New("extension field %q may not have an explicitly set JSON name: %q", x.FullName(), xd.GetJsonName()) + } + } + if xd.OneofIndex != nil { + return errors.New("extension field %q may not be part of a oneof", x.FullName()) + } + if md := x.ContainingMessage(); !md.IsPlaceholder() { + if !md.ExtensionRanges().Has(x.Number()) { + return errors.New("extension field %q extends %q with non-extension field number: %d", x.FullName(), md.FullName(), x.Number()) + } + isMessageSet := md.Options().(*descriptorpb.MessageOptions).GetMessageSetWireFormat() + if isMessageSet && !isOptionalMessage(x) { + return errors.New("extension field %q extends MessageSet and must be an optional message", x.FullName()) + } + if !isMessageSet && !x.Number().IsValid() { + return errors.New("extension field %q has an invalid number: %d", x.FullName(), x.Number()) + } + } + if xd.GetOptions().GetWeak() { + return errors.New("extension field %q cannot be a weak reference", x.FullName()) + } + if x.IsPacked() && !isPackable(x) { + return errors.New("extension field %q is not packable", x.FullName()) + } + if err := checkValidGroup(x); err != nil { + return errors.New("extension field %q is an invalid group: %v", x.FullName(), err) + } + if md := x.Message(); md != nil && md.IsMapEntry() { + return errors.New("extension field %q cannot be a map entry", x.FullName()) + } + if x.Syntax() == protoreflect.Proto3 { + switch x.ContainingMessage().FullName() { + case (*descriptorpb.FileOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.EnumOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.EnumValueOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.MessageOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.FieldOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.OneofOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.ExtensionRangeOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.ServiceOptions)(nil).ProtoReflect().Descriptor().FullName(): + case (*descriptorpb.MethodOptions)(nil).ProtoReflect().Descriptor().FullName(): + default: + return errors.New("extension field %q cannot be declared in proto3 unless extended descriptor options", x.FullName()) + } + } + } + return nil +} + +// isOptionalMessage reports whether this is an optional message. +// If the kind is unknown, it is assumed to be a message. +func isOptionalMessage(fd protoreflect.FieldDescriptor) bool { + return (fd.Kind() == 0 || fd.Kind() == protoreflect.MessageKind) && fd.Cardinality() == protoreflect.Optional +} + +// isPackable checks whether the pack option can be specified. +func isPackable(fd protoreflect.FieldDescriptor) bool { + switch fd.Kind() { + case protoreflect.StringKind, protoreflect.BytesKind, protoreflect.MessageKind, protoreflect.GroupKind: + return false + } + return fd.IsList() +} + +// checkValidGroup reports whether fd is a valid group according to the same +// rules that protoc imposes. +func checkValidGroup(fd protoreflect.FieldDescriptor) error { + md := fd.Message() + switch { + case fd.Kind() != protoreflect.GroupKind: + return nil + case fd.Syntax() != protoreflect.Proto2: + return errors.New("invalid under proto2 semantics") + case md == nil || md.IsPlaceholder(): + return errors.New("message must be resolvable") + case fd.FullName().Parent() != md.FullName().Parent(): + return errors.New("message and field must be declared in the same scope") + case !unicode.IsUpper(rune(md.Name()[0])): + return errors.New("message name must start with an uppercase") + case fd.Name() != protoreflect.Name(strings.ToLower(string(md.Name()))): + return errors.New("field name must be lowercased form of the message name") + } + return nil +} + +// checkValidMap checks whether the field is a valid map according to the same +// rules that protoc imposes. +// See protoc v3.8.0: src/google/protobuf/descriptor.cc:6045-6115 +func checkValidMap(fd protoreflect.FieldDescriptor) error { + md := fd.Message() + switch { + case md == nil || !md.IsMapEntry(): + return nil + case fd.FullName().Parent() != md.FullName().Parent(): + return errors.New("message and field must be declared in the same scope") + case md.Name() != protoreflect.Name(strs.MapEntryName(string(fd.Name()))): + return errors.New("incorrect implicit map entry name") + case fd.Cardinality() != protoreflect.Repeated: + return errors.New("field must be repeated") + case md.Fields().Len() != 2: + return errors.New("message must have exactly two fields") + case md.ExtensionRanges().Len() > 0: + return errors.New("message must not have any extension ranges") + case md.Enums().Len()+md.Messages().Len()+md.Extensions().Len() > 0: + return errors.New("message must not have any nested declarations") + } + kf := md.Fields().Get(0) + vf := md.Fields().Get(1) + switch { + case kf.Name() != genid.MapEntry_Key_field_name || kf.Number() != genid.MapEntry_Key_field_number || kf.Cardinality() != protoreflect.Optional || kf.ContainingOneof() != nil || kf.HasDefault(): + return errors.New("invalid key field") + case vf.Name() != genid.MapEntry_Value_field_name || vf.Number() != genid.MapEntry_Value_field_number || vf.Cardinality() != protoreflect.Optional || vf.ContainingOneof() != nil || vf.HasDefault(): + return errors.New("invalid value field") + } + switch kf.Kind() { + case protoreflect.BoolKind: // bool + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: // int32 + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: // int64 + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: // uint32 + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: // uint64 + case protoreflect.StringKind: // string + default: + return errors.New("invalid key kind: %v", kf.Kind()) + } + if e := vf.Enum(); e != nil && e.Values().Len() > 0 && e.Values().Get(0).Number() != 0 { + return errors.New("map enum value must have zero number for the first value") + } + return nil +} diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/proto.go b/vendor/google.golang.org/protobuf/reflect/protodesc/proto.go new file mode 100644 index 0000000..a7c5cef --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/proto.go @@ -0,0 +1,252 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protodesc + +import ( + "fmt" + "strings" + + "google.golang.org/protobuf/internal/encoding/defval" + "google.golang.org/protobuf/internal/strs" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protoreflect" + + "google.golang.org/protobuf/types/descriptorpb" +) + +// ToFileDescriptorProto copies a protoreflect.FileDescriptor into a +// google.protobuf.FileDescriptorProto message. +func ToFileDescriptorProto(file protoreflect.FileDescriptor) *descriptorpb.FileDescriptorProto { + p := &descriptorpb.FileDescriptorProto{ + Name: proto.String(file.Path()), + Options: proto.Clone(file.Options()).(*descriptorpb.FileOptions), + } + if file.Package() != "" { + p.Package = proto.String(string(file.Package())) + } + for i, imports := 0, file.Imports(); i < imports.Len(); i++ { + imp := imports.Get(i) + p.Dependency = append(p.Dependency, imp.Path()) + if imp.IsPublic { + p.PublicDependency = append(p.PublicDependency, int32(i)) + } + if imp.IsWeak { + p.WeakDependency = append(p.WeakDependency, int32(i)) + } + } + for i, locs := 0, file.SourceLocations(); i < locs.Len(); i++ { + loc := locs.Get(i) + l := &descriptorpb.SourceCodeInfo_Location{} + l.Path = append(l.Path, loc.Path...) + if loc.StartLine == loc.EndLine { + l.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndColumn)} + } else { + l.Span = []int32{int32(loc.StartLine), int32(loc.StartColumn), int32(loc.EndLine), int32(loc.EndColumn)} + } + l.LeadingDetachedComments = append([]string(nil), loc.LeadingDetachedComments...) + if loc.LeadingComments != "" { + l.LeadingComments = proto.String(loc.LeadingComments) + } + if loc.TrailingComments != "" { + l.TrailingComments = proto.String(loc.TrailingComments) + } + if p.SourceCodeInfo == nil { + p.SourceCodeInfo = &descriptorpb.SourceCodeInfo{} + } + p.SourceCodeInfo.Location = append(p.SourceCodeInfo.Location, l) + + } + for i, messages := 0, file.Messages(); i < messages.Len(); i++ { + p.MessageType = append(p.MessageType, ToDescriptorProto(messages.Get(i))) + } + for i, enums := 0, file.Enums(); i < enums.Len(); i++ { + p.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i))) + } + for i, services := 0, file.Services(); i < services.Len(); i++ { + p.Service = append(p.Service, ToServiceDescriptorProto(services.Get(i))) + } + for i, exts := 0, file.Extensions(); i < exts.Len(); i++ { + p.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i))) + } + if syntax := file.Syntax(); syntax != protoreflect.Proto2 { + p.Syntax = proto.String(file.Syntax().String()) + } + return p +} + +// ToDescriptorProto copies a protoreflect.MessageDescriptor into a +// google.protobuf.DescriptorProto message. +func ToDescriptorProto(message protoreflect.MessageDescriptor) *descriptorpb.DescriptorProto { + p := &descriptorpb.DescriptorProto{ + Name: proto.String(string(message.Name())), + Options: proto.Clone(message.Options()).(*descriptorpb.MessageOptions), + } + for i, fields := 0, message.Fields(); i < fields.Len(); i++ { + p.Field = append(p.Field, ToFieldDescriptorProto(fields.Get(i))) + } + for i, exts := 0, message.Extensions(); i < exts.Len(); i++ { + p.Extension = append(p.Extension, ToFieldDescriptorProto(exts.Get(i))) + } + for i, messages := 0, message.Messages(); i < messages.Len(); i++ { + p.NestedType = append(p.NestedType, ToDescriptorProto(messages.Get(i))) + } + for i, enums := 0, message.Enums(); i < enums.Len(); i++ { + p.EnumType = append(p.EnumType, ToEnumDescriptorProto(enums.Get(i))) + } + for i, xranges := 0, message.ExtensionRanges(); i < xranges.Len(); i++ { + xrange := xranges.Get(i) + p.ExtensionRange = append(p.ExtensionRange, &descriptorpb.DescriptorProto_ExtensionRange{ + Start: proto.Int32(int32(xrange[0])), + End: proto.Int32(int32(xrange[1])), + Options: proto.Clone(message.ExtensionRangeOptions(i)).(*descriptorpb.ExtensionRangeOptions), + }) + } + for i, oneofs := 0, message.Oneofs(); i < oneofs.Len(); i++ { + p.OneofDecl = append(p.OneofDecl, ToOneofDescriptorProto(oneofs.Get(i))) + } + for i, ranges := 0, message.ReservedRanges(); i < ranges.Len(); i++ { + rrange := ranges.Get(i) + p.ReservedRange = append(p.ReservedRange, &descriptorpb.DescriptorProto_ReservedRange{ + Start: proto.Int32(int32(rrange[0])), + End: proto.Int32(int32(rrange[1])), + }) + } + for i, names := 0, message.ReservedNames(); i < names.Len(); i++ { + p.ReservedName = append(p.ReservedName, string(names.Get(i))) + } + return p +} + +// ToFieldDescriptorProto copies a protoreflect.FieldDescriptor into a +// google.protobuf.FieldDescriptorProto message. +func ToFieldDescriptorProto(field protoreflect.FieldDescriptor) *descriptorpb.FieldDescriptorProto { + p := &descriptorpb.FieldDescriptorProto{ + Name: proto.String(string(field.Name())), + Number: proto.Int32(int32(field.Number())), + Label: descriptorpb.FieldDescriptorProto_Label(field.Cardinality()).Enum(), + Options: proto.Clone(field.Options()).(*descriptorpb.FieldOptions), + } + if field.IsExtension() { + p.Extendee = fullNameOf(field.ContainingMessage()) + } + if field.Kind().IsValid() { + p.Type = descriptorpb.FieldDescriptorProto_Type(field.Kind()).Enum() + } + if field.Enum() != nil { + p.TypeName = fullNameOf(field.Enum()) + } + if field.Message() != nil { + p.TypeName = fullNameOf(field.Message()) + } + if field.HasJSONName() { + // A bug in older versions of protoc would always populate the + // "json_name" option for extensions when it is meaningless. + // When it did so, it would always use the camel-cased field name. + if field.IsExtension() { + p.JsonName = proto.String(strs.JSONCamelCase(string(field.Name()))) + } else { + p.JsonName = proto.String(field.JSONName()) + } + } + if field.Syntax() == protoreflect.Proto3 && field.HasOptionalKeyword() { + p.Proto3Optional = proto.Bool(true) + } + if field.HasDefault() { + def, err := defval.Marshal(field.Default(), field.DefaultEnumValue(), field.Kind(), defval.Descriptor) + if err != nil && field.DefaultEnumValue() != nil { + def = string(field.DefaultEnumValue().Name()) // occurs for unresolved enum values + } else if err != nil { + panic(fmt.Sprintf("%v: %v", field.FullName(), err)) + } + p.DefaultValue = proto.String(def) + } + if oneof := field.ContainingOneof(); oneof != nil { + p.OneofIndex = proto.Int32(int32(oneof.Index())) + } + return p +} + +// ToOneofDescriptorProto copies a protoreflect.OneofDescriptor into a +// google.protobuf.OneofDescriptorProto message. +func ToOneofDescriptorProto(oneof protoreflect.OneofDescriptor) *descriptorpb.OneofDescriptorProto { + return &descriptorpb.OneofDescriptorProto{ + Name: proto.String(string(oneof.Name())), + Options: proto.Clone(oneof.Options()).(*descriptorpb.OneofOptions), + } +} + +// ToEnumDescriptorProto copies a protoreflect.EnumDescriptor into a +// google.protobuf.EnumDescriptorProto message. +func ToEnumDescriptorProto(enum protoreflect.EnumDescriptor) *descriptorpb.EnumDescriptorProto { + p := &descriptorpb.EnumDescriptorProto{ + Name: proto.String(string(enum.Name())), + Options: proto.Clone(enum.Options()).(*descriptorpb.EnumOptions), + } + for i, values := 0, enum.Values(); i < values.Len(); i++ { + p.Value = append(p.Value, ToEnumValueDescriptorProto(values.Get(i))) + } + for i, ranges := 0, enum.ReservedRanges(); i < ranges.Len(); i++ { + rrange := ranges.Get(i) + p.ReservedRange = append(p.ReservedRange, &descriptorpb.EnumDescriptorProto_EnumReservedRange{ + Start: proto.Int32(int32(rrange[0])), + End: proto.Int32(int32(rrange[1])), + }) + } + for i, names := 0, enum.ReservedNames(); i < names.Len(); i++ { + p.ReservedName = append(p.ReservedName, string(names.Get(i))) + } + return p +} + +// ToEnumValueDescriptorProto copies a protoreflect.EnumValueDescriptor into a +// google.protobuf.EnumValueDescriptorProto message. +func ToEnumValueDescriptorProto(value protoreflect.EnumValueDescriptor) *descriptorpb.EnumValueDescriptorProto { + return &descriptorpb.EnumValueDescriptorProto{ + Name: proto.String(string(value.Name())), + Number: proto.Int32(int32(value.Number())), + Options: proto.Clone(value.Options()).(*descriptorpb.EnumValueOptions), + } +} + +// ToServiceDescriptorProto copies a protoreflect.ServiceDescriptor into a +// google.protobuf.ServiceDescriptorProto message. +func ToServiceDescriptorProto(service protoreflect.ServiceDescriptor) *descriptorpb.ServiceDescriptorProto { + p := &descriptorpb.ServiceDescriptorProto{ + Name: proto.String(string(service.Name())), + Options: proto.Clone(service.Options()).(*descriptorpb.ServiceOptions), + } + for i, methods := 0, service.Methods(); i < methods.Len(); i++ { + p.Method = append(p.Method, ToMethodDescriptorProto(methods.Get(i))) + } + return p +} + +// ToMethodDescriptorProto copies a protoreflect.MethodDescriptor into a +// google.protobuf.MethodDescriptorProto message. +func ToMethodDescriptorProto(method protoreflect.MethodDescriptor) *descriptorpb.MethodDescriptorProto { + p := &descriptorpb.MethodDescriptorProto{ + Name: proto.String(string(method.Name())), + InputType: fullNameOf(method.Input()), + OutputType: fullNameOf(method.Output()), + Options: proto.Clone(method.Options()).(*descriptorpb.MethodOptions), + } + if method.IsStreamingClient() { + p.ClientStreaming = proto.Bool(true) + } + if method.IsStreamingServer() { + p.ServerStreaming = proto.Bool(true) + } + return p +} + +func fullNameOf(d protoreflect.Descriptor) *string { + if d == nil { + return nil + } + if strings.HasPrefix(string(d.FullName()), unknownPrefix) { + return proto.String(string(d.FullName()[len(unknownPrefix):])) + } + return proto.String("." + string(d.FullName())) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protopath/path.go b/vendor/google.golang.org/protobuf/reflect/protopath/path.go new file mode 100644 index 0000000..91562a8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protopath/path.go @@ -0,0 +1,122 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protopath provides functionality for +// representing a sequence of protobuf reflection operations on a message. +package protopath + +import ( + "fmt" + + "google.golang.org/protobuf/internal/msgfmt" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// NOTE: The Path and Values are separate types here since there are use cases +// where you would like to "address" some value in a message with just the path +// and don't have the value information available. +// +// This is different from how "github.com/google/go-cmp/cmp".Path operates, +// which combines both path and value information together. +// Since the cmp package itself is the only one ever constructing a cmp.Path, +// it will always have the value available. + +// Path is a sequence of protobuf reflection steps applied to some root +// protobuf message value to arrive at the current value. +// The first step must be a Root step. +type Path []Step + +// TODO: Provide a Parse function that parses something similar to or +// perhaps identical to the output of Path.String. + +// Index returns the ith step in the path and supports negative indexing. +// A negative index starts counting from the tail of the Path such that -1 +// refers to the last step, -2 refers to the second-to-last step, and so on. +// It returns a zero Step value if the index is out-of-bounds. +func (p Path) Index(i int) Step { + if i < 0 { + i = len(p) + i + } + if i < 0 || i >= len(p) { + return Step{} + } + return p[i] +} + +// String returns a structured representation of the path +// by concatenating the string representation of every path step. +func (p Path) String() string { + var b []byte + for _, s := range p { + b = s.appendString(b) + } + return string(b) +} + +// Values is a Path paired with a sequence of values at each step. +// The lengths of Path and Values must be identical. +// The first step must be a Root step and +// the first value must be a concrete message value. +type Values struct { + Path Path + Values []protoreflect.Value +} + +// Len reports the length of the path and values. +// If the path and values have differing length, it returns the minimum length. +func (p Values) Len() int { + n := len(p.Path) + if n > len(p.Values) { + n = len(p.Values) + } + return n +} + +// Index returns the ith step and value and supports negative indexing. +// A negative index starts counting from the tail of the Values such that -1 +// refers to the last pair, -2 refers to the second-to-last pair, and so on. +func (p Values) Index(i int) (out struct { + Step Step + Value protoreflect.Value +}) { + // NOTE: This returns a single struct instead of two return values so that + // callers can make use of the the value in an expression: + // vs.Index(i).Value.Interface() + n := p.Len() + if i < 0 { + i = n + i + } + if i < 0 || i >= n { + return out + } + out.Step = p.Path[i] + out.Value = p.Values[i] + return out +} + +// String returns a humanly readable representation of the path and last value. +// Do not depend on the output being stable. +// +// For example: +// +// (path.to.MyMessage).list_field[5].map_field["hello"] = {hello: "world"} +func (p Values) String() string { + n := p.Len() + if n == 0 { + return "" + } + + // Determine the field descriptor associated with the last step. + var fd protoreflect.FieldDescriptor + last := p.Index(-1) + switch last.Step.kind { + case FieldAccessStep: + fd = last.Step.FieldDescriptor() + case MapIndexStep, ListIndexStep: + fd = p.Index(-2).Step.FieldDescriptor() + } + + // Format the full path with the last value. + return fmt.Sprintf("%v = %v", p.Path[:n], msgfmt.FormatValue(last.Value, fd)) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protopath/step.go b/vendor/google.golang.org/protobuf/reflect/protopath/step.go new file mode 100644 index 0000000..95ae85c --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protopath/step.go @@ -0,0 +1,241 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protopath + +import ( + "fmt" + "strconv" + "strings" + + "google.golang.org/protobuf/internal/encoding/text" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// StepKind identifies the kind of step operation. +// Each kind of step corresponds with some protobuf reflection operation. +type StepKind int + +const ( + invalidStep StepKind = iota + // RootStep identifies a step as the Root step operation. + RootStep + // FieldAccessStep identifies a step as the FieldAccess step operation. + FieldAccessStep + // UnknownAccessStep identifies a step as the UnknownAccess step operation. + UnknownAccessStep + // ListIndexStep identifies a step as the ListIndex step operation. + ListIndexStep + // MapIndexStep identifies a step as the MapIndex step operation. + MapIndexStep + // AnyExpandStep identifies a step as the AnyExpand step operation. + AnyExpandStep +) + +func (k StepKind) String() string { + switch k { + case invalidStep: + return "" + case RootStep: + return "Root" + case FieldAccessStep: + return "FieldAccess" + case UnknownAccessStep: + return "UnknownAccess" + case ListIndexStep: + return "ListIndex" + case MapIndexStep: + return "MapIndex" + case AnyExpandStep: + return "AnyExpand" + default: + return fmt.Sprintf("", k) + } +} + +// Step is a union where only one step operation may be specified at a time. +// The different kinds of steps are specified by the constants defined for +// the StepKind type. +type Step struct { + kind StepKind + desc protoreflect.Descriptor + key protoreflect.Value +} + +// Root indicates the root message that a path is relative to. +// It should always (and only ever) be the first step in a path. +func Root(md protoreflect.MessageDescriptor) Step { + if md == nil { + panic("nil message descriptor") + } + return Step{kind: RootStep, desc: md} +} + +// FieldAccess describes access of a field within a message. +// Extension field accesses are also represented using a FieldAccess and +// must be provided with a protoreflect.FieldDescriptor +// +// Within the context of Values, +// the type of the previous step value is always a message, and +// the type of the current step value is determined by the field descriptor. +func FieldAccess(fd protoreflect.FieldDescriptor) Step { + if fd == nil { + panic("nil field descriptor") + } else if _, ok := fd.(protoreflect.ExtensionTypeDescriptor); !ok && fd.IsExtension() { + panic(fmt.Sprintf("extension field %q must implement protoreflect.ExtensionTypeDescriptor", fd.FullName())) + } + return Step{kind: FieldAccessStep, desc: fd} +} + +// UnknownAccess describes access to the unknown fields within a message. +// +// Within the context of Values, +// the type of the previous step value is always a message, and +// the type of the current step value is always a bytes type. +func UnknownAccess() Step { + return Step{kind: UnknownAccessStep} +} + +// ListIndex describes index of an element within a list. +// +// Within the context of Values, +// the type of the previous, previous step value is always a message, +// the type of the previous step value is always a list, and +// the type of the current step value is determined by the field descriptor. +func ListIndex(i int) Step { + if i < 0 { + panic(fmt.Sprintf("invalid list index: %v", i)) + } + return Step{kind: ListIndexStep, key: protoreflect.ValueOfInt64(int64(i))} +} + +// MapIndex describes index of an entry within a map. +// The key type is determined by field descriptor that the map belongs to. +// +// Within the context of Values, +// the type of the previous previous step value is always a message, +// the type of the previous step value is always a map, and +// the type of the current step value is determined by the field descriptor. +func MapIndex(k protoreflect.MapKey) Step { + if !k.IsValid() { + panic("invalid map index") + } + return Step{kind: MapIndexStep, key: k.Value()} +} + +// AnyExpand describes expansion of a google.protobuf.Any message into +// a structured representation of the underlying message. +// +// Within the context of Values, +// the type of the previous step value is always a google.protobuf.Any message, and +// the type of the current step value is always a message. +func AnyExpand(md protoreflect.MessageDescriptor) Step { + if md == nil { + panic("nil message descriptor") + } + return Step{kind: AnyExpandStep, desc: md} +} + +// MessageDescriptor returns the message descriptor for Root or AnyExpand steps, +// otherwise it returns nil. +func (s Step) MessageDescriptor() protoreflect.MessageDescriptor { + switch s.kind { + case RootStep, AnyExpandStep: + return s.desc.(protoreflect.MessageDescriptor) + default: + return nil + } +} + +// FieldDescriptor returns the field descriptor for FieldAccess steps, +// otherwise it returns nil. +func (s Step) FieldDescriptor() protoreflect.FieldDescriptor { + switch s.kind { + case FieldAccessStep: + return s.desc.(protoreflect.FieldDescriptor) + default: + return nil + } +} + +// ListIndex returns the list index for ListIndex steps, +// otherwise it returns 0. +func (s Step) ListIndex() int { + switch s.kind { + case ListIndexStep: + return int(s.key.Int()) + default: + return 0 + } +} + +// MapIndex returns the map key for MapIndex steps, +// otherwise it returns an invalid map key. +func (s Step) MapIndex() protoreflect.MapKey { + switch s.kind { + case MapIndexStep: + return s.key.MapKey() + default: + return protoreflect.MapKey{} + } +} + +// Kind reports which kind of step this is. +func (s Step) Kind() StepKind { + return s.kind +} + +func (s Step) String() string { + return string(s.appendString(nil)) +} + +func (s Step) appendString(b []byte) []byte { + switch s.kind { + case RootStep: + b = append(b, '(') + b = append(b, s.desc.FullName()...) + b = append(b, ')') + case FieldAccessStep: + b = append(b, '.') + if fd := s.desc.(protoreflect.FieldDescriptor); fd.IsExtension() { + b = append(b, '(') + b = append(b, strings.Trim(fd.TextName(), "[]")...) + b = append(b, ')') + } else { + b = append(b, fd.TextName()...) + } + case UnknownAccessStep: + b = append(b, '.') + b = append(b, '?') + case ListIndexStep: + b = append(b, '[') + b = strconv.AppendInt(b, s.key.Int(), 10) + b = append(b, ']') + case MapIndexStep: + b = append(b, '[') + switch k := s.key.Interface().(type) { + case bool: + b = strconv.AppendBool(b, bool(k)) // e.g., "true" or "false" + case int32: + b = strconv.AppendInt(b, int64(k), 10) // e.g., "-32" + case int64: + b = strconv.AppendInt(b, int64(k), 10) // e.g., "-64" + case uint32: + b = strconv.AppendUint(b, uint64(k), 10) // e.g., "32" + case uint64: + b = strconv.AppendUint(b, uint64(k), 10) // e.g., "64" + case string: + b = text.AppendString(b, k) // e.g., `"hello, world"` + } + b = append(b, ']') + case AnyExpandStep: + b = append(b, '.') + b = append(b, '(') + b = append(b, s.desc.FullName()...) + b = append(b, ')') + default: + b = append(b, ""...) + } + return b +} diff --git a/vendor/google.golang.org/protobuf/reflect/protorange/range.go b/vendor/google.golang.org/protobuf/reflect/protorange/range.go new file mode 100644 index 0000000..6f4c58b --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protorange/range.go @@ -0,0 +1,316 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protorange provides functionality to traverse a message value. +package protorange + +import ( + "bytes" + "errors" + + "google.golang.org/protobuf/internal/genid" + "google.golang.org/protobuf/internal/order" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protopath" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" +) + +var ( + // Break breaks traversal of children in the current value. + // It has no effect when traversing values that are not composite types + // (e.g., messages, lists, and maps). + Break = errors.New("break traversal of children in current value") + + // Terminate terminates the entire range operation. + // All necessary Pop operations continue to be called. + Terminate = errors.New("terminate range operation") +) + +// Range performs a depth-first traversal over reachable values in a message. +// +// See Options.Range for details. +func Range(m protoreflect.Message, f func(protopath.Values) error) error { + return Options{}.Range(m, f, nil) +} + +// Options configures traversal of a message value tree. +type Options struct { + // Stable specifies whether to visit message fields and map entries + // in a stable ordering. If false, then the ordering is undefined and + // may be non-deterministic. + // + // Message fields are visited in ascending order by field number. + // Map entries are visited in ascending order, where + // boolean keys are ordered such that false sorts before true, + // numeric keys are ordered based on the numeric value, and + // string keys are lexicographically ordered by Unicode codepoints. + Stable bool + + // Resolver is used for looking up types when expanding google.protobuf.Any + // messages. If nil, this defaults to using protoregistry.GlobalTypes. + // To prevent expansion of Any messages, pass an empty protoregistry.Types: + // + // Options{Resolver: (*protoregistry.Types)(nil)} + // + Resolver interface { + protoregistry.ExtensionTypeResolver + protoregistry.MessageTypeResolver + } +} + +// Range performs a depth-first traversal over reachable values in a message. +// The first push and the last pop are to push/pop a protopath.Root step. +// If push or pop return any non-nil error (other than Break or Terminate), +// it terminates the traversal and is returned by Range. +// +// The rules for traversing a message is as follows: +// +// • For messages, iterate over every populated known and extension field. +// Each field is preceded by a push of a protopath.FieldAccess step, +// followed by recursive application of the rules on the field value, +// and succeeded by a pop of that step. +// If the message has unknown fields, then push an protopath.UnknownAccess step +// followed immediately by pop of that step. +// +// • As an exception to the above rule, if the current message is a +// google.protobuf.Any message, expand the underlying message (if resolvable). +// The expanded message is preceded by a push of a protopath.AnyExpand step, +// followed by recursive application of the rules on the underlying message, +// and succeeded by a pop of that step. Mutations to the expanded message +// are written back to the Any message when popping back out. +// +// • For lists, iterate over every element. Each element is preceded by a push +// of a protopath.ListIndex step, followed by recursive application of the rules +// on the list element, and succeeded by a pop of that step. +// +// • For maps, iterate over every entry. Each entry is preceded by a push +// of a protopath.MapIndex step, followed by recursive application of the rules +// on the map entry value, and succeeded by a pop of that step. +// +// Mutations should only be made to the last value, otherwise the effects on +// traversal will be undefined. If the mutation is made to the last value +// during to a push, then the effects of the mutation will affect traversal. +// For example, if the last value is currently a message, and the push function +// populates a few fields in that message, then the newly modified fields +// will be traversed. +// +// The protopath.Values provided to push functions is only valid until the +// corresponding pop call and the values provided to a pop call is only valid +// for the duration of the pop call itself. +func (o Options) Range(m protoreflect.Message, push, pop func(protopath.Values) error) error { + var err error + p := new(protopath.Values) + if o.Resolver == nil { + o.Resolver = protoregistry.GlobalTypes + } + + pushStep(p, protopath.Root(m.Descriptor()), protoreflect.ValueOfMessage(m)) + if push != nil { + err = amendError(err, push(*p)) + } + if err == nil { + err = o.rangeMessage(p, m, push, pop) + } + if pop != nil { + err = amendError(err, pop(*p)) + } + popStep(p) + + if err == Break || err == Terminate { + err = nil + } + return err +} + +func (o Options) rangeMessage(p *protopath.Values, m protoreflect.Message, push, pop func(protopath.Values) error) (err error) { + if ok, err := o.rangeAnyMessage(p, m, push, pop); ok { + return err + } + + fieldOrder := order.AnyFieldOrder + if o.Stable { + fieldOrder = order.NumberFieldOrder + } + order.RangeFields(m, fieldOrder, func(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + pushStep(p, protopath.FieldAccess(fd), v) + if push != nil { + err = amendError(err, push(*p)) + } + if err == nil { + switch { + case fd.IsMap(): + err = o.rangeMap(p, fd, v.Map(), push, pop) + case fd.IsList(): + err = o.rangeList(p, fd, v.List(), push, pop) + case fd.Message() != nil: + err = o.rangeMessage(p, v.Message(), push, pop) + } + } + if pop != nil { + err = amendError(err, pop(*p)) + } + popStep(p) + return err == nil + }) + + if b := m.GetUnknown(); len(b) > 0 && err == nil { + pushStep(p, protopath.UnknownAccess(), protoreflect.ValueOfBytes(b)) + if push != nil { + err = amendError(err, push(*p)) + } + if pop != nil { + err = amendError(err, pop(*p)) + } + popStep(p) + } + + if err == Break { + err = nil + } + return err +} + +func (o Options) rangeAnyMessage(p *protopath.Values, m protoreflect.Message, push, pop func(protopath.Values) error) (ok bool, err error) { + md := m.Descriptor() + if md.FullName() != "google.protobuf.Any" { + return false, nil + } + + fds := md.Fields() + url := m.Get(fds.ByNumber(genid.Any_TypeUrl_field_number)).String() + val := m.Get(fds.ByNumber(genid.Any_Value_field_number)).Bytes() + mt, errFind := o.Resolver.FindMessageByURL(url) + if errFind != nil { + return false, nil + } + + // Unmarshal the raw encoded message value into a structured message value. + m2 := mt.New() + errUnmarshal := proto.UnmarshalOptions{ + Merge: true, + AllowPartial: true, + Resolver: o.Resolver, + }.Unmarshal(val, m2.Interface()) + if errUnmarshal != nil { + // If the the underlying message cannot be unmarshaled, + // then just treat this as an normal message type. + return false, nil + } + + // Marshal Any before ranging to detect possible mutations. + b1, errMarshal := proto.MarshalOptions{ + AllowPartial: true, + Deterministic: true, + }.Marshal(m2.Interface()) + if errMarshal != nil { + return true, errMarshal + } + + pushStep(p, protopath.AnyExpand(m2.Descriptor()), protoreflect.ValueOfMessage(m2)) + if push != nil { + err = amendError(err, push(*p)) + } + if err == nil { + err = o.rangeMessage(p, m2, push, pop) + } + if pop != nil { + err = amendError(err, pop(*p)) + } + popStep(p) + + // Marshal Any after ranging to detect possible mutations. + b2, errMarshal := proto.MarshalOptions{ + AllowPartial: true, + Deterministic: true, + }.Marshal(m2.Interface()) + if errMarshal != nil { + return true, errMarshal + } + + // Mutations detected, write the new sequence of bytes to the Any message. + if !bytes.Equal(b1, b2) { + m.Set(fds.ByNumber(genid.Any_Value_field_number), protoreflect.ValueOfBytes(b2)) + } + + if err == Break { + err = nil + } + return true, err +} + +func (o Options) rangeList(p *protopath.Values, fd protoreflect.FieldDescriptor, ls protoreflect.List, push, pop func(protopath.Values) error) (err error) { + for i := 0; i < ls.Len() && err == nil; i++ { + v := ls.Get(i) + pushStep(p, protopath.ListIndex(i), v) + if push != nil { + err = amendError(err, push(*p)) + } + if err == nil && fd.Message() != nil { + err = o.rangeMessage(p, v.Message(), push, pop) + } + if pop != nil { + err = amendError(err, pop(*p)) + } + popStep(p) + } + + if err == Break { + err = nil + } + return err +} + +func (o Options) rangeMap(p *protopath.Values, fd protoreflect.FieldDescriptor, ms protoreflect.Map, push, pop func(protopath.Values) error) (err error) { + keyOrder := order.AnyKeyOrder + if o.Stable { + keyOrder = order.GenericKeyOrder + } + order.RangeEntries(ms, keyOrder, func(k protoreflect.MapKey, v protoreflect.Value) bool { + pushStep(p, protopath.MapIndex(k), v) + if push != nil { + err = amendError(err, push(*p)) + } + if err == nil && fd.MapValue().Message() != nil { + err = o.rangeMessage(p, v.Message(), push, pop) + } + if pop != nil { + err = amendError(err, pop(*p)) + } + popStep(p) + return err == nil + }) + + if err == Break { + err = nil + } + return err +} + +func pushStep(p *protopath.Values, s protopath.Step, v protoreflect.Value) { + p.Path = append(p.Path, s) + p.Values = append(p.Values, v) +} + +func popStep(p *protopath.Values) { + p.Path = p.Path[:len(p.Path)-1] + p.Values = p.Values[:len(p.Values)-1] +} + +// amendError amends the previous error with the current error if it is +// considered more serious. The precedence order for errors is: +// +// nil < Break < Terminate < previous non-nil < current non-nil +func amendError(prev, curr error) error { + switch { + case curr == nil: + return prev + case curr == Break && prev != nil: + return prev + case curr == Terminate && prev != nil && prev != Break: + return prev + default: + return curr + } +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go new file mode 100644 index 0000000..d5d5af6 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go @@ -0,0 +1,78 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import ( + "google.golang.org/protobuf/internal/pragma" +) + +// The following types are used by the fast-path Message.ProtoMethods method. +// +// To avoid polluting the public protoreflect API with types used only by +// low-level implementations, the canonical definitions of these types are +// in the runtime/protoiface package. The definitions here and in protoiface +// must be kept in sync. +type ( + methods = struct { + pragma.NoUnkeyedLiterals + Flags supportFlags + Size func(sizeInput) sizeOutput + Marshal func(marshalInput) (marshalOutput, error) + Unmarshal func(unmarshalInput) (unmarshalOutput, error) + Merge func(mergeInput) mergeOutput + CheckInitialized func(checkInitializedInput) (checkInitializedOutput, error) + } + supportFlags = uint64 + sizeInput = struct { + pragma.NoUnkeyedLiterals + Message Message + Flags uint8 + } + sizeOutput = struct { + pragma.NoUnkeyedLiterals + Size int + } + marshalInput = struct { + pragma.NoUnkeyedLiterals + Message Message + Buf []byte + Flags uint8 + } + marshalOutput = struct { + pragma.NoUnkeyedLiterals + Buf []byte + } + unmarshalInput = struct { + pragma.NoUnkeyedLiterals + Message Message + Buf []byte + Flags uint8 + Resolver interface { + FindExtensionByName(field FullName) (ExtensionType, error) + FindExtensionByNumber(message FullName, field FieldNumber) (ExtensionType, error) + } + Depth int + } + unmarshalOutput = struct { + pragma.NoUnkeyedLiterals + Flags uint8 + } + mergeInput = struct { + pragma.NoUnkeyedLiterals + Source Message + Destination Message + } + mergeOutput = struct { + pragma.NoUnkeyedLiterals + Flags uint8 + } + checkInitializedInput = struct { + pragma.NoUnkeyedLiterals + Message Message + } + checkInitializedOutput = struct { + pragma.NoUnkeyedLiterals + } +) diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go new file mode 100644 index 0000000..55aa149 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go @@ -0,0 +1,508 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoreflect provides interfaces to dynamically manipulate messages. +// +// This package includes type descriptors which describe the structure of types +// defined in proto source files and value interfaces which provide the +// ability to examine and manipulate the contents of messages. +// +// # Protocol Buffer Descriptors +// +// Protobuf descriptors (e.g., EnumDescriptor or MessageDescriptor) +// are immutable objects that represent protobuf type information. +// They are wrappers around the messages declared in descriptor.proto. +// Protobuf descriptors alone lack any information regarding Go types. +// +// Enums and messages generated by this module implement Enum and ProtoMessage, +// where the Descriptor and ProtoReflect.Descriptor accessors respectively +// return the protobuf descriptor for the values. +// +// The protobuf descriptor interfaces are not meant to be implemented by +// user code since they might need to be extended in the future to support +// additions to the protobuf language. +// The "google.golang.org/protobuf/reflect/protodesc" package converts between +// google.protobuf.DescriptorProto messages and protobuf descriptors. +// +// # Go Type Descriptors +// +// A type descriptor (e.g., EnumType or MessageType) is a constructor for +// a concrete Go type that represents the associated protobuf descriptor. +// There is commonly a one-to-one relationship between protobuf descriptors and +// Go type descriptors, but it can potentially be a one-to-many relationship. +// +// Enums and messages generated by this module implement Enum and ProtoMessage, +// where the Type and ProtoReflect.Type accessors respectively +// return the protobuf descriptor for the values. +// +// The "google.golang.org/protobuf/types/dynamicpb" package can be used to +// create Go type descriptors from protobuf descriptors. +// +// # Value Interfaces +// +// The Enum and Message interfaces provide a reflective view over an +// enum or message instance. For enums, it provides the ability to retrieve +// the enum value number for any concrete enum type. For messages, it provides +// the ability to access or manipulate fields of the message. +// +// To convert a proto.Message to a protoreflect.Message, use the +// former's ProtoReflect method. Since the ProtoReflect method is new to the +// v2 message interface, it may not be present on older message implementations. +// The "github.com/golang/protobuf/proto".MessageReflect function can be used +// to obtain a reflective view on older messages. +// +// # Relationships +// +// The following diagrams demonstrate the relationships between +// various types declared in this package. +// +// ┌───────────────────────────────────┐ +// V │ +// ┌────────────── New(n) ─────────────┐ │ +// │ │ │ +// │ ┌──── Descriptor() ──┐ │ ┌── Number() ──┐ │ +// │ │ V V │ V │ +// ╔════════════╗ ╔════════════════╗ ╔════════╗ ╔════════════╗ +// ║ EnumType ║ ║ EnumDescriptor ║ ║ Enum ║ ║ EnumNumber ║ +// ╚════════════╝ ╚════════════════╝ ╚════════╝ ╚════════════╝ +// Λ Λ │ │ +// │ └─── Descriptor() ──┘ │ +// │ │ +// └────────────────── Type() ───────┘ +// +// • An EnumType describes a concrete Go enum type. +// It has an EnumDescriptor and can construct an Enum instance. +// +// • An EnumDescriptor describes an abstract protobuf enum type. +// +// • An Enum is a concrete enum instance. Generated enums implement Enum. +// +// ┌──────────────── New() ─────────────────┐ +// │ │ +// │ ┌─── Descriptor() ─────┐ │ ┌── Interface() ───┐ +// │ │ V V │ V +// ╔═════════════╗ ╔═══════════════════╗ ╔═════════╗ ╔══════════════╗ +// ║ MessageType ║ ║ MessageDescriptor ║ ║ Message ║ ║ ProtoMessage ║ +// ╚═════════════╝ ╚═══════════════════╝ ╚═════════╝ ╚══════════════╝ +// Λ Λ │ │ Λ │ +// │ └──── Descriptor() ────┘ │ └─ ProtoReflect() ─┘ +// │ │ +// └─────────────────── Type() ─────────┘ +// +// • A MessageType describes a concrete Go message type. +// It has a MessageDescriptor and can construct a Message instance. +// Just as how Go's reflect.Type is a reflective description of a Go type, +// a MessageType is a reflective description of a Go type for a protobuf message. +// +// • A MessageDescriptor describes an abstract protobuf message type. +// It has no understanding of Go types. In order to construct a MessageType +// from just a MessageDescriptor, you can consider looking up the message type +// in the global registry using protoregistry.GlobalTypes.FindMessageByName +// or constructing a dynamic MessageType using dynamicpb.NewMessageType. +// +// • A Message is a reflective view over a concrete message instance. +// Generated messages implement ProtoMessage, which can convert to a Message. +// Just as how Go's reflect.Value is a reflective view over a Go value, +// a Message is a reflective view over a concrete protobuf message instance. +// Using Go reflection as an analogy, the ProtoReflect method is similar to +// calling reflect.ValueOf, and the Message.Interface method is similar to +// calling reflect.Value.Interface. +// +// ┌── TypeDescriptor() ──┐ ┌───── Descriptor() ─────┐ +// │ V │ V +// ╔═══════════════╗ ╔═════════════════════════╗ ╔═════════════════════╗ +// ║ ExtensionType ║ ║ ExtensionTypeDescriptor ║ ║ ExtensionDescriptor ║ +// ╚═══════════════╝ ╚═════════════════════════╝ ╚═════════════════════╝ +// Λ │ │ Λ │ Λ +// └─────── Type() ───────┘ │ └─── may implement ────┘ │ +// │ │ +// └────── implements ────────┘ +// +// • An ExtensionType describes a concrete Go implementation of an extension. +// It has an ExtensionTypeDescriptor and can convert to/from +// abstract Values and Go values. +// +// • An ExtensionTypeDescriptor is an ExtensionDescriptor +// which also has an ExtensionType. +// +// • An ExtensionDescriptor describes an abstract protobuf extension field and +// may not always be an ExtensionTypeDescriptor. +package protoreflect + +import ( + "fmt" + "strings" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/internal/pragma" +) + +type doNotImplement pragma.DoNotImplement + +// ProtoMessage is the top-level interface that all proto messages implement. +// This is declared in the protoreflect package to avoid a cyclic dependency; +// use the proto.Message type instead, which aliases this type. +type ProtoMessage interface{ ProtoReflect() Message } + +// Syntax is the language version of the proto file. +type Syntax syntax + +type syntax int8 // keep exact type opaque as the int type may change + +const ( + Proto2 Syntax = 2 + Proto3 Syntax = 3 +) + +// IsValid reports whether the syntax is valid. +func (s Syntax) IsValid() bool { + switch s { + case Proto2, Proto3: + return true + default: + return false + } +} + +// String returns s as a proto source identifier (e.g., "proto2"). +func (s Syntax) String() string { + switch s { + case Proto2: + return "proto2" + case Proto3: + return "proto3" + default: + return fmt.Sprintf("", s) + } +} + +// GoString returns s as a Go source identifier (e.g., "Proto2"). +func (s Syntax) GoString() string { + switch s { + case Proto2: + return "Proto2" + case Proto3: + return "Proto3" + default: + return fmt.Sprintf("Syntax(%d)", s) + } +} + +// Cardinality determines whether a field is optional, required, or repeated. +type Cardinality cardinality + +type cardinality int8 // keep exact type opaque as the int type may change + +// Constants as defined by the google.protobuf.Cardinality enumeration. +const ( + Optional Cardinality = 1 // appears zero or one times + Required Cardinality = 2 // appears exactly one time; invalid with Proto3 + Repeated Cardinality = 3 // appears zero or more times +) + +// IsValid reports whether the cardinality is valid. +func (c Cardinality) IsValid() bool { + switch c { + case Optional, Required, Repeated: + return true + default: + return false + } +} + +// String returns c as a proto source identifier (e.g., "optional"). +func (c Cardinality) String() string { + switch c { + case Optional: + return "optional" + case Required: + return "required" + case Repeated: + return "repeated" + default: + return fmt.Sprintf("", c) + } +} + +// GoString returns c as a Go source identifier (e.g., "Optional"). +func (c Cardinality) GoString() string { + switch c { + case Optional: + return "Optional" + case Required: + return "Required" + case Repeated: + return "Repeated" + default: + return fmt.Sprintf("Cardinality(%d)", c) + } +} + +// Kind indicates the basic proto kind of a field. +type Kind kind + +type kind int8 // keep exact type opaque as the int type may change + +// Constants as defined by the google.protobuf.Field.Kind enumeration. +const ( + BoolKind Kind = 8 + EnumKind Kind = 14 + Int32Kind Kind = 5 + Sint32Kind Kind = 17 + Uint32Kind Kind = 13 + Int64Kind Kind = 3 + Sint64Kind Kind = 18 + Uint64Kind Kind = 4 + Sfixed32Kind Kind = 15 + Fixed32Kind Kind = 7 + FloatKind Kind = 2 + Sfixed64Kind Kind = 16 + Fixed64Kind Kind = 6 + DoubleKind Kind = 1 + StringKind Kind = 9 + BytesKind Kind = 12 + MessageKind Kind = 11 + GroupKind Kind = 10 +) + +// IsValid reports whether the kind is valid. +func (k Kind) IsValid() bool { + switch k { + case BoolKind, EnumKind, + Int32Kind, Sint32Kind, Uint32Kind, + Int64Kind, Sint64Kind, Uint64Kind, + Sfixed32Kind, Fixed32Kind, FloatKind, + Sfixed64Kind, Fixed64Kind, DoubleKind, + StringKind, BytesKind, MessageKind, GroupKind: + return true + default: + return false + } +} + +// String returns k as a proto source identifier (e.g., "bool"). +func (k Kind) String() string { + switch k { + case BoolKind: + return "bool" + case EnumKind: + return "enum" + case Int32Kind: + return "int32" + case Sint32Kind: + return "sint32" + case Uint32Kind: + return "uint32" + case Int64Kind: + return "int64" + case Sint64Kind: + return "sint64" + case Uint64Kind: + return "uint64" + case Sfixed32Kind: + return "sfixed32" + case Fixed32Kind: + return "fixed32" + case FloatKind: + return "float" + case Sfixed64Kind: + return "sfixed64" + case Fixed64Kind: + return "fixed64" + case DoubleKind: + return "double" + case StringKind: + return "string" + case BytesKind: + return "bytes" + case MessageKind: + return "message" + case GroupKind: + return "group" + default: + return fmt.Sprintf("", k) + } +} + +// GoString returns k as a Go source identifier (e.g., "BoolKind"). +func (k Kind) GoString() string { + switch k { + case BoolKind: + return "BoolKind" + case EnumKind: + return "EnumKind" + case Int32Kind: + return "Int32Kind" + case Sint32Kind: + return "Sint32Kind" + case Uint32Kind: + return "Uint32Kind" + case Int64Kind: + return "Int64Kind" + case Sint64Kind: + return "Sint64Kind" + case Uint64Kind: + return "Uint64Kind" + case Sfixed32Kind: + return "Sfixed32Kind" + case Fixed32Kind: + return "Fixed32Kind" + case FloatKind: + return "FloatKind" + case Sfixed64Kind: + return "Sfixed64Kind" + case Fixed64Kind: + return "Fixed64Kind" + case DoubleKind: + return "DoubleKind" + case StringKind: + return "StringKind" + case BytesKind: + return "BytesKind" + case MessageKind: + return "MessageKind" + case GroupKind: + return "GroupKind" + default: + return fmt.Sprintf("Kind(%d)", k) + } +} + +// FieldNumber is the field number in a message. +type FieldNumber = protowire.Number + +// FieldNumbers represent a list of field numbers. +type FieldNumbers interface { + // Len reports the number of fields in the list. + Len() int + // Get returns the ith field number. It panics if out of bounds. + Get(i int) FieldNumber + // Has reports whether n is within the list of fields. + Has(n FieldNumber) bool + + doNotImplement +} + +// FieldRanges represent a list of field number ranges. +type FieldRanges interface { + // Len reports the number of ranges in the list. + Len() int + // Get returns the ith range. It panics if out of bounds. + Get(i int) [2]FieldNumber // start inclusive; end exclusive + // Has reports whether n is within any of the ranges. + Has(n FieldNumber) bool + + doNotImplement +} + +// EnumNumber is the numeric value for an enum. +type EnumNumber int32 + +// EnumRanges represent a list of enum number ranges. +type EnumRanges interface { + // Len reports the number of ranges in the list. + Len() int + // Get returns the ith range. It panics if out of bounds. + Get(i int) [2]EnumNumber // start inclusive; end inclusive + // Has reports whether n is within any of the ranges. + Has(n EnumNumber) bool + + doNotImplement +} + +// Name is the short name for a proto declaration. This is not the name +// as used in Go source code, which might not be identical to the proto name. +type Name string // e.g., "Kind" + +// IsValid reports whether s is a syntactically valid name. +// An empty name is invalid. +func (s Name) IsValid() bool { + return consumeIdent(string(s)) == len(s) +} + +// Names represent a list of names. +type Names interface { + // Len reports the number of names in the list. + Len() int + // Get returns the ith name. It panics if out of bounds. + Get(i int) Name + // Has reports whether s matches any names in the list. + Has(s Name) bool + + doNotImplement +} + +// FullName is a qualified name that uniquely identifies a proto declaration. +// A qualified name is the concatenation of the proto package along with the +// fully-declared name (i.e., name of parent preceding the name of the child), +// with a '.' delimiter placed between each Name. +// +// This should not have any leading or trailing dots. +type FullName string // e.g., "google.protobuf.Field.Kind" + +// IsValid reports whether s is a syntactically valid full name. +// An empty full name is invalid. +func (s FullName) IsValid() bool { + i := consumeIdent(string(s)) + if i < 0 { + return false + } + for len(s) > i { + if s[i] != '.' { + return false + } + i++ + n := consumeIdent(string(s[i:])) + if n < 0 { + return false + } + i += n + } + return true +} + +func consumeIdent(s string) (i int) { + if len(s) == 0 || !isLetter(s[i]) { + return -1 + } + i++ + for len(s) > i && isLetterDigit(s[i]) { + i++ + } + return i +} +func isLetter(c byte) bool { + return c == '_' || ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') +} +func isLetterDigit(c byte) bool { + return isLetter(c) || ('0' <= c && c <= '9') +} + +// Name returns the short name, which is the last identifier segment. +// A single segment FullName is the Name itself. +func (n FullName) Name() Name { + if i := strings.LastIndexByte(string(n), '.'); i >= 0 { + return Name(n[i+1:]) + } + return Name(n) +} + +// Parent returns the full name with the trailing identifier removed. +// A single segment FullName has no parent. +func (n FullName) Parent() FullName { + if i := strings.LastIndexByte(string(n), '.'); i >= 0 { + return n[:i] + } + return "" +} + +// Append returns the qualified name appended with the provided short name. +// +// Invariant: n == n.Parent().Append(n.Name()) // assuming n is valid +func (n FullName) Append(s Name) FullName { + if n == "" { + return FullName(s) + } + return n + "." + FullName(s) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go new file mode 100644 index 0000000..0b99428 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/source.go @@ -0,0 +1,129 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import ( + "strconv" +) + +// SourceLocations is a list of source locations. +type SourceLocations interface { + // Len reports the number of source locations in the proto file. + Len() int + // Get returns the ith SourceLocation. It panics if out of bounds. + Get(int) SourceLocation + + // ByPath returns the SourceLocation for the given path, + // returning the first location if multiple exist for the same path. + // If multiple locations exist for the same path, + // then SourceLocation.Next index can be used to identify the + // index of the next SourceLocation. + // If no location exists for this path, it returns the zero value. + ByPath(path SourcePath) SourceLocation + + // ByDescriptor returns the SourceLocation for the given descriptor, + // returning the first location if multiple exist for the same path. + // If no location exists for this descriptor, it returns the zero value. + ByDescriptor(desc Descriptor) SourceLocation + + doNotImplement +} + +// SourceLocation describes a source location and +// corresponds with the google.protobuf.SourceCodeInfo.Location message. +type SourceLocation struct { + // Path is the path to the declaration from the root file descriptor. + // The contents of this slice must not be mutated. + Path SourcePath + + // StartLine and StartColumn are the zero-indexed starting location + // in the source file for the declaration. + StartLine, StartColumn int + // EndLine and EndColumn are the zero-indexed ending location + // in the source file for the declaration. + // In the descriptor.proto, the end line may be omitted if it is identical + // to the start line. Here, it is always populated. + EndLine, EndColumn int + + // LeadingDetachedComments are the leading detached comments + // for the declaration. The contents of this slice must not be mutated. + LeadingDetachedComments []string + // LeadingComments is the leading attached comment for the declaration. + LeadingComments string + // TrailingComments is the trailing attached comment for the declaration. + TrailingComments string + + // Next is an index into SourceLocations for the next source location that + // has the same Path. It is zero if there is no next location. + Next int +} + +// SourcePath identifies part of a file descriptor for a source location. +// The SourcePath is a sequence of either field numbers or indexes into +// a repeated field that form a path starting from the root file descriptor. +// +// See google.protobuf.SourceCodeInfo.Location.path. +type SourcePath []int32 + +// Equal reports whether p1 equals p2. +func (p1 SourcePath) Equal(p2 SourcePath) bool { + if len(p1) != len(p2) { + return false + } + for i := range p1 { + if p1[i] != p2[i] { + return false + } + } + return true +} + +// String formats the path in a humanly readable manner. +// The output is guaranteed to be deterministic, +// making it suitable for use as a key into a Go map. +// It is not guaranteed to be stable as the exact output could change +// in a future version of this module. +// +// Example output: +// +// .message_type[6].nested_type[15].field[3] +func (p SourcePath) String() string { + b := p.appendFileDescriptorProto(nil) + for _, i := range p { + b = append(b, '.') + b = strconv.AppendInt(b, int64(i), 10) + } + return string(b) +} + +type appendFunc func(*SourcePath, []byte) []byte + +func (p *SourcePath) appendSingularField(b []byte, name string, f appendFunc) []byte { + if len(*p) == 0 { + return b + } + b = append(b, '.') + b = append(b, name...) + *p = (*p)[1:] + if f != nil { + b = f(p, b) + } + return b +} + +func (p *SourcePath) appendRepeatedField(b []byte, name string, f appendFunc) []byte { + b = p.appendSingularField(b, name, nil) + if len(*p) == 0 || (*p)[0] < 0 { + return b + } + b = append(b, '[') + b = strconv.AppendUint(b, uint64((*p)[0]), 10) + b = append(b, ']') + *p = (*p)[1:] + if f != nil { + b = f(p, b) + } + return b +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go new file mode 100644 index 0000000..54ce326 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go @@ -0,0 +1,475 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated by generate-protos. DO NOT EDIT. + +package protoreflect + +func (p *SourcePath) appendFileDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendSingularField(b, "package", nil) + case 3: + b = p.appendRepeatedField(b, "dependency", nil) + case 10: + b = p.appendRepeatedField(b, "public_dependency", nil) + case 11: + b = p.appendRepeatedField(b, "weak_dependency", nil) + case 4: + b = p.appendRepeatedField(b, "message_type", (*SourcePath).appendDescriptorProto) + case 5: + b = p.appendRepeatedField(b, "enum_type", (*SourcePath).appendEnumDescriptorProto) + case 6: + b = p.appendRepeatedField(b, "service", (*SourcePath).appendServiceDescriptorProto) + case 7: + b = p.appendRepeatedField(b, "extension", (*SourcePath).appendFieldDescriptorProto) + case 8: + b = p.appendSingularField(b, "options", (*SourcePath).appendFileOptions) + case 9: + b = p.appendSingularField(b, "source_code_info", (*SourcePath).appendSourceCodeInfo) + case 12: + b = p.appendSingularField(b, "syntax", nil) + case 13: + b = p.appendSingularField(b, "edition", nil) + } + return b +} + +func (p *SourcePath) appendDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendRepeatedField(b, "field", (*SourcePath).appendFieldDescriptorProto) + case 6: + b = p.appendRepeatedField(b, "extension", (*SourcePath).appendFieldDescriptorProto) + case 3: + b = p.appendRepeatedField(b, "nested_type", (*SourcePath).appendDescriptorProto) + case 4: + b = p.appendRepeatedField(b, "enum_type", (*SourcePath).appendEnumDescriptorProto) + case 5: + b = p.appendRepeatedField(b, "extension_range", (*SourcePath).appendDescriptorProto_ExtensionRange) + case 8: + b = p.appendRepeatedField(b, "oneof_decl", (*SourcePath).appendOneofDescriptorProto) + case 7: + b = p.appendSingularField(b, "options", (*SourcePath).appendMessageOptions) + case 9: + b = p.appendRepeatedField(b, "reserved_range", (*SourcePath).appendDescriptorProto_ReservedRange) + case 10: + b = p.appendRepeatedField(b, "reserved_name", nil) + } + return b +} + +func (p *SourcePath) appendEnumDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendRepeatedField(b, "value", (*SourcePath).appendEnumValueDescriptorProto) + case 3: + b = p.appendSingularField(b, "options", (*SourcePath).appendEnumOptions) + case 4: + b = p.appendRepeatedField(b, "reserved_range", (*SourcePath).appendEnumDescriptorProto_EnumReservedRange) + case 5: + b = p.appendRepeatedField(b, "reserved_name", nil) + } + return b +} + +func (p *SourcePath) appendServiceDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendRepeatedField(b, "method", (*SourcePath).appendMethodDescriptorProto) + case 3: + b = p.appendSingularField(b, "options", (*SourcePath).appendServiceOptions) + } + return b +} + +func (p *SourcePath) appendFieldDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 3: + b = p.appendSingularField(b, "number", nil) + case 4: + b = p.appendSingularField(b, "label", nil) + case 5: + b = p.appendSingularField(b, "type", nil) + case 6: + b = p.appendSingularField(b, "type_name", nil) + case 2: + b = p.appendSingularField(b, "extendee", nil) + case 7: + b = p.appendSingularField(b, "default_value", nil) + case 9: + b = p.appendSingularField(b, "oneof_index", nil) + case 10: + b = p.appendSingularField(b, "json_name", nil) + case 8: + b = p.appendSingularField(b, "options", (*SourcePath).appendFieldOptions) + case 17: + b = p.appendSingularField(b, "proto3_optional", nil) + } + return b +} + +func (p *SourcePath) appendFileOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "java_package", nil) + case 8: + b = p.appendSingularField(b, "java_outer_classname", nil) + case 10: + b = p.appendSingularField(b, "java_multiple_files", nil) + case 20: + b = p.appendSingularField(b, "java_generate_equals_and_hash", nil) + case 27: + b = p.appendSingularField(b, "java_string_check_utf8", nil) + case 9: + b = p.appendSingularField(b, "optimize_for", nil) + case 11: + b = p.appendSingularField(b, "go_package", nil) + case 16: + b = p.appendSingularField(b, "cc_generic_services", nil) + case 17: + b = p.appendSingularField(b, "java_generic_services", nil) + case 18: + b = p.appendSingularField(b, "py_generic_services", nil) + case 42: + b = p.appendSingularField(b, "php_generic_services", nil) + case 23: + b = p.appendSingularField(b, "deprecated", nil) + case 31: + b = p.appendSingularField(b, "cc_enable_arenas", nil) + case 36: + b = p.appendSingularField(b, "objc_class_prefix", nil) + case 37: + b = p.appendSingularField(b, "csharp_namespace", nil) + case 39: + b = p.appendSingularField(b, "swift_prefix", nil) + case 40: + b = p.appendSingularField(b, "php_class_prefix", nil) + case 41: + b = p.appendSingularField(b, "php_namespace", nil) + case 44: + b = p.appendSingularField(b, "php_metadata_namespace", nil) + case 45: + b = p.appendSingularField(b, "ruby_package", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendSourceCodeInfo(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendRepeatedField(b, "location", (*SourcePath).appendSourceCodeInfo_Location) + } + return b +} + +func (p *SourcePath) appendDescriptorProto_ExtensionRange(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "start", nil) + case 2: + b = p.appendSingularField(b, "end", nil) + case 3: + b = p.appendSingularField(b, "options", (*SourcePath).appendExtensionRangeOptions) + } + return b +} + +func (p *SourcePath) appendOneofDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendSingularField(b, "options", (*SourcePath).appendOneofOptions) + } + return b +} + +func (p *SourcePath) appendMessageOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "message_set_wire_format", nil) + case 2: + b = p.appendSingularField(b, "no_standard_descriptor_accessor", nil) + case 3: + b = p.appendSingularField(b, "deprecated", nil) + case 7: + b = p.appendSingularField(b, "map_entry", nil) + case 11: + b = p.appendSingularField(b, "deprecated_legacy_json_field_conflicts", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendDescriptorProto_ReservedRange(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "start", nil) + case 2: + b = p.appendSingularField(b, "end", nil) + } + return b +} + +func (p *SourcePath) appendEnumValueDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendSingularField(b, "number", nil) + case 3: + b = p.appendSingularField(b, "options", (*SourcePath).appendEnumValueOptions) + } + return b +} + +func (p *SourcePath) appendEnumOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 2: + b = p.appendSingularField(b, "allow_alias", nil) + case 3: + b = p.appendSingularField(b, "deprecated", nil) + case 6: + b = p.appendSingularField(b, "deprecated_legacy_json_field_conflicts", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendEnumDescriptorProto_EnumReservedRange(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "start", nil) + case 2: + b = p.appendSingularField(b, "end", nil) + } + return b +} + +func (p *SourcePath) appendMethodDescriptorProto(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name", nil) + case 2: + b = p.appendSingularField(b, "input_type", nil) + case 3: + b = p.appendSingularField(b, "output_type", nil) + case 4: + b = p.appendSingularField(b, "options", (*SourcePath).appendMethodOptions) + case 5: + b = p.appendSingularField(b, "client_streaming", nil) + case 6: + b = p.appendSingularField(b, "server_streaming", nil) + } + return b +} + +func (p *SourcePath) appendServiceOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 33: + b = p.appendSingularField(b, "deprecated", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendFieldOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "ctype", nil) + case 2: + b = p.appendSingularField(b, "packed", nil) + case 6: + b = p.appendSingularField(b, "jstype", nil) + case 5: + b = p.appendSingularField(b, "lazy", nil) + case 15: + b = p.appendSingularField(b, "unverified_lazy", nil) + case 3: + b = p.appendSingularField(b, "deprecated", nil) + case 10: + b = p.appendSingularField(b, "weak", nil) + case 16: + b = p.appendSingularField(b, "debug_redact", nil) + case 17: + b = p.appendSingularField(b, "retention", nil) + case 18: + b = p.appendSingularField(b, "target", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendUninterpretedOption(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 2: + b = p.appendRepeatedField(b, "name", (*SourcePath).appendUninterpretedOption_NamePart) + case 3: + b = p.appendSingularField(b, "identifier_value", nil) + case 4: + b = p.appendSingularField(b, "positive_int_value", nil) + case 5: + b = p.appendSingularField(b, "negative_int_value", nil) + case 6: + b = p.appendSingularField(b, "double_value", nil) + case 7: + b = p.appendSingularField(b, "string_value", nil) + case 8: + b = p.appendSingularField(b, "aggregate_value", nil) + } + return b +} + +func (p *SourcePath) appendSourceCodeInfo_Location(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendRepeatedField(b, "path", nil) + case 2: + b = p.appendRepeatedField(b, "span", nil) + case 3: + b = p.appendSingularField(b, "leading_comments", nil) + case 4: + b = p.appendSingularField(b, "trailing_comments", nil) + case 6: + b = p.appendRepeatedField(b, "leading_detached_comments", nil) + } + return b +} + +func (p *SourcePath) appendExtensionRangeOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendOneofOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendEnumValueOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "deprecated", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendMethodOptions(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 33: + b = p.appendSingularField(b, "deprecated", nil) + case 34: + b = p.appendSingularField(b, "idempotency_level", nil) + case 999: + b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) + } + return b +} + +func (p *SourcePath) appendUninterpretedOption_NamePart(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "name_part", nil) + case 2: + b = p.appendSingularField(b, "is_extension", nil) + } + return b +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go new file mode 100644 index 0000000..3867470 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go @@ -0,0 +1,666 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +// Descriptor provides a set of accessors that are common to every descriptor. +// Each descriptor type wraps the equivalent google.protobuf.XXXDescriptorProto, +// but provides efficient lookup and immutability. +// +// Each descriptor is comparable. Equality implies that the two types are +// exactly identical. However, it is possible for the same semantically +// identical proto type to be represented by multiple type descriptors. +// +// For example, suppose we have t1 and t2 which are both MessageDescriptors. +// If t1 == t2, then the types are definitely equal and all accessors return +// the same information. However, if t1 != t2, then it is still possible that +// they still represent the same proto type (e.g., t1.FullName == t2.FullName). +// This can occur if a descriptor type is created dynamically, or multiple +// versions of the same proto type are accidentally linked into the Go binary. +type Descriptor interface { + // ParentFile returns the parent file descriptor that this descriptor + // is declared within. The parent file for the file descriptor is itself. + // + // Support for this functionality is optional and may return nil. + ParentFile() FileDescriptor + + // Parent returns the parent containing this descriptor declaration. + // The following shows the mapping from child type to possible parent types: + // + // ╔═════════════════════╤═══════════════════════════════════╗ + // ║ Child type │ Possible parent types ║ + // ╠═════════════════════╪═══════════════════════════════════╣ + // ║ FileDescriptor │ nil ║ + // ║ MessageDescriptor │ FileDescriptor, MessageDescriptor ║ + // ║ FieldDescriptor │ FileDescriptor, MessageDescriptor ║ + // ║ OneofDescriptor │ MessageDescriptor ║ + // ║ EnumDescriptor │ FileDescriptor, MessageDescriptor ║ + // ║ EnumValueDescriptor │ EnumDescriptor ║ + // ║ ServiceDescriptor │ FileDescriptor ║ + // ║ MethodDescriptor │ ServiceDescriptor ║ + // ╚═════════════════════╧═══════════════════════════════════╝ + // + // Support for this functionality is optional and may return nil. + Parent() Descriptor + + // Index returns the index of this descriptor within its parent. + // It returns 0 if the descriptor does not have a parent or if the parent + // is unknown. + Index() int + + // Syntax is the protobuf syntax. + Syntax() Syntax // e.g., Proto2 or Proto3 + + // Name is the short name of the declaration (i.e., FullName.Name). + Name() Name // e.g., "Any" + + // FullName is the fully-qualified name of the declaration. + // + // The FullName is a concatenation of the full name of the type that this + // type is declared within and the declaration name. For example, + // field "foo_field" in message "proto.package.MyMessage" is + // uniquely identified as "proto.package.MyMessage.foo_field". + // Enum values are an exception to the rule (see EnumValueDescriptor). + FullName() FullName // e.g., "google.protobuf.Any" + + // IsPlaceholder reports whether type information is missing since a + // dependency is not resolved, in which case only name information is known. + // + // Placeholder types may only be returned by the following accessors + // as a result of unresolved dependencies or weak imports: + // + // ╔═══════════════════════════════════╤═════════════════════╗ + // ║ Accessor │ Descriptor ║ + // ╠═══════════════════════════════════╪═════════════════════╣ + // ║ FileImports.FileDescriptor │ FileDescriptor ║ + // ║ FieldDescriptor.Enum │ EnumDescriptor ║ + // ║ FieldDescriptor.Message │ MessageDescriptor ║ + // ║ FieldDescriptor.DefaultEnumValue │ EnumValueDescriptor ║ + // ║ FieldDescriptor.ContainingMessage │ MessageDescriptor ║ + // ║ MethodDescriptor.Input │ MessageDescriptor ║ + // ║ MethodDescriptor.Output │ MessageDescriptor ║ + // ╚═══════════════════════════════════╧═════════════════════╝ + // + // If true, only Name and FullName are valid. + // For FileDescriptor, the Path is also valid. + IsPlaceholder() bool + + // Options returns the descriptor options. The caller must not modify + // the returned value. + // + // To avoid a dependency cycle, this function returns a proto.Message value. + // The proto message type returned for each descriptor type is as follows: + // ╔═════════════════════╤══════════════════════════════════════════╗ + // ║ Go type │ Protobuf message type ║ + // ╠═════════════════════╪══════════════════════════════════════════╣ + // ║ FileDescriptor │ google.protobuf.FileOptions ║ + // ║ EnumDescriptor │ google.protobuf.EnumOptions ║ + // ║ EnumValueDescriptor │ google.protobuf.EnumValueOptions ║ + // ║ MessageDescriptor │ google.protobuf.MessageOptions ║ + // ║ FieldDescriptor │ google.protobuf.FieldOptions ║ + // ║ OneofDescriptor │ google.protobuf.OneofOptions ║ + // ║ ServiceDescriptor │ google.protobuf.ServiceOptions ║ + // ║ MethodDescriptor │ google.protobuf.MethodOptions ║ + // ╚═════════════════════╧══════════════════════════════════════════╝ + // + // This method returns a typed nil-pointer if no options are present. + // The caller must import the descriptorpb package to use this. + Options() ProtoMessage + + doNotImplement +} + +// FileDescriptor describes the types in a complete proto file and +// corresponds with the google.protobuf.FileDescriptorProto message. +// +// Top-level declarations: +// EnumDescriptor, MessageDescriptor, FieldDescriptor, and/or ServiceDescriptor. +type FileDescriptor interface { + Descriptor // Descriptor.FullName is identical to Package + + // Path returns the file name, relative to the source tree root. + Path() string // e.g., "path/to/file.proto" + // Package returns the protobuf package namespace. + Package() FullName // e.g., "google.protobuf" + + // Imports is a list of imported proto files. + Imports() FileImports + + // Enums is a list of the top-level enum declarations. + Enums() EnumDescriptors + // Messages is a list of the top-level message declarations. + Messages() MessageDescriptors + // Extensions is a list of the top-level extension declarations. + Extensions() ExtensionDescriptors + // Services is a list of the top-level service declarations. + Services() ServiceDescriptors + + // SourceLocations is a list of source locations. + SourceLocations() SourceLocations + + isFileDescriptor +} +type isFileDescriptor interface{ ProtoType(FileDescriptor) } + +// FileImports is a list of file imports. +type FileImports interface { + // Len reports the number of files imported by this proto file. + Len() int + // Get returns the ith FileImport. It panics if out of bounds. + Get(i int) FileImport + + doNotImplement +} + +// FileImport is the declaration for a proto file import. +type FileImport struct { + // FileDescriptor is the file type for the given import. + // It is a placeholder descriptor if IsWeak is set or if a dependency has + // not been regenerated to implement the new reflection APIs. + FileDescriptor + + // IsPublic reports whether this is a public import, which causes this file + // to alias declarations within the imported file. The intended use cases + // for this feature is the ability to move proto files without breaking + // existing dependencies. + // + // The current file and the imported file must be within proto package. + IsPublic bool + + // IsWeak reports whether this is a weak import, which does not impose + // a direct dependency on the target file. + // + // Weak imports are a legacy proto1 feature. Equivalent behavior is + // achieved using proto2 extension fields or proto3 Any messages. + IsWeak bool +} + +// MessageDescriptor describes a message and +// corresponds with the google.protobuf.DescriptorProto message. +// +// Nested declarations: +// FieldDescriptor, OneofDescriptor, FieldDescriptor, EnumDescriptor, +// and/or MessageDescriptor. +type MessageDescriptor interface { + Descriptor + + // IsMapEntry indicates that this is an auto-generated message type to + // represent the entry type for a map field. + // + // Map entry messages have only two fields: + // • a "key" field with a field number of 1 + // • a "value" field with a field number of 2 + // The key and value types are determined by these two fields. + // + // If IsMapEntry is true, it implies that FieldDescriptor.IsMap is true + // for some field with this message type. + IsMapEntry() bool + + // Fields is a list of nested field declarations. + Fields() FieldDescriptors + // Oneofs is a list of nested oneof declarations. + Oneofs() OneofDescriptors + + // ReservedNames is a list of reserved field names. + ReservedNames() Names + // ReservedRanges is a list of reserved ranges of field numbers. + ReservedRanges() FieldRanges + // RequiredNumbers is a list of required field numbers. + // In Proto3, it is always an empty list. + RequiredNumbers() FieldNumbers + // ExtensionRanges is the field ranges used for extension fields. + // In Proto3, it is always an empty ranges. + ExtensionRanges() FieldRanges + // ExtensionRangeOptions returns the ith extension range options. + // + // To avoid a dependency cycle, this method returns a proto.Message value, + // which always contains a google.protobuf.ExtensionRangeOptions message. + // This method returns a typed nil-pointer if no options are present. + // The caller must import the descriptorpb package to use this. + ExtensionRangeOptions(i int) ProtoMessage + + // Enums is a list of nested enum declarations. + Enums() EnumDescriptors + // Messages is a list of nested message declarations. + Messages() MessageDescriptors + // Extensions is a list of nested extension declarations. + Extensions() ExtensionDescriptors + + isMessageDescriptor +} +type isMessageDescriptor interface{ ProtoType(MessageDescriptor) } + +// MessageType encapsulates a MessageDescriptor with a concrete Go implementation. +// It is recommended that implementations of this interface also implement the +// MessageFieldTypes interface. +type MessageType interface { + // New returns a newly allocated empty message. + // It may return nil for synthetic messages representing a map entry. + New() Message + + // Zero returns an empty, read-only message. + // It may return nil for synthetic messages representing a map entry. + Zero() Message + + // Descriptor returns the message descriptor. + // + // Invariant: t.Descriptor() == t.New().Descriptor() + Descriptor() MessageDescriptor +} + +// MessageFieldTypes extends a MessageType by providing type information +// regarding enums and messages referenced by the message fields. +type MessageFieldTypes interface { + MessageType + + // Enum returns the EnumType for the ith field in Descriptor.Fields. + // It returns nil if the ith field is not an enum kind. + // It panics if out of bounds. + // + // Invariant: mt.Enum(i).Descriptor() == mt.Descriptor().Fields(i).Enum() + Enum(i int) EnumType + + // Message returns the MessageType for the ith field in Descriptor.Fields. + // It returns nil if the ith field is not a message or group kind. + // It panics if out of bounds. + // + // Invariant: mt.Message(i).Descriptor() == mt.Descriptor().Fields(i).Message() + Message(i int) MessageType +} + +// MessageDescriptors is a list of message declarations. +type MessageDescriptors interface { + // Len reports the number of messages. + Len() int + // Get returns the ith MessageDescriptor. It panics if out of bounds. + Get(i int) MessageDescriptor + // ByName returns the MessageDescriptor for a message named s. + // It returns nil if not found. + ByName(s Name) MessageDescriptor + + doNotImplement +} + +// FieldDescriptor describes a field within a message and +// corresponds with the google.protobuf.FieldDescriptorProto message. +// +// It is used for both normal fields defined within the parent message +// (e.g., MessageDescriptor.Fields) and fields that extend some remote message +// (e.g., FileDescriptor.Extensions or MessageDescriptor.Extensions). +type FieldDescriptor interface { + Descriptor + + // Number reports the unique number for this field. + Number() FieldNumber + // Cardinality reports the cardinality for this field. + Cardinality() Cardinality + // Kind reports the basic kind for this field. + Kind() Kind + + // HasJSONName reports whether this field has an explicitly set JSON name. + HasJSONName() bool + + // JSONName reports the name used for JSON serialization. + // It is usually the camel-cased form of the field name. + // Extension fields are represented by the full name surrounded by brackets. + JSONName() string + + // TextName reports the name used for text serialization. + // It is usually the name of the field, except that groups use the name + // of the inlined message, and extension fields are represented by the + // full name surrounded by brackets. + TextName() string + + // HasPresence reports whether the field distinguishes between unpopulated + // and default values. + HasPresence() bool + + // IsExtension reports whether this is an extension field. If false, + // then Parent and ContainingMessage refer to the same message. + // Otherwise, ContainingMessage and Parent likely differ. + IsExtension() bool + + // HasOptionalKeyword reports whether the "optional" keyword was explicitly + // specified in the source .proto file. + HasOptionalKeyword() bool + + // IsWeak reports whether this is a weak field, which does not impose a + // direct dependency on the target type. + // If true, then Message returns a placeholder type. + IsWeak() bool + + // IsPacked reports whether repeated primitive numeric kinds should be + // serialized using a packed encoding. + // If true, then it implies Cardinality is Repeated. + IsPacked() bool + + // IsList reports whether this field represents a list, + // where the value type for the associated field is a List. + // It is equivalent to checking whether Cardinality is Repeated and + // that IsMap reports false. + IsList() bool + + // IsMap reports whether this field represents a map, + // where the value type for the associated field is a Map. + // It is equivalent to checking whether Cardinality is Repeated, + // that the Kind is MessageKind, and that Message.IsMapEntry reports true. + IsMap() bool + + // MapKey returns the field descriptor for the key in the map entry. + // It returns nil if IsMap reports false. + MapKey() FieldDescriptor + + // MapValue returns the field descriptor for the value in the map entry. + // It returns nil if IsMap reports false. + MapValue() FieldDescriptor + + // HasDefault reports whether this field has a default value. + HasDefault() bool + + // Default returns the default value for scalar fields. + // For proto2, it is the default value as specified in the proto file, + // or the zero value if unspecified. + // For proto3, it is always the zero value of the scalar. + // The Value type is determined by the Kind. + Default() Value + + // DefaultEnumValue returns the enum value descriptor for the default value + // of an enum field, and is nil for any other kind of field. + DefaultEnumValue() EnumValueDescriptor + + // ContainingOneof is the containing oneof that this field belongs to, + // and is nil if this field is not part of a oneof. + ContainingOneof() OneofDescriptor + + // ContainingMessage is the containing message that this field belongs to. + // For extension fields, this may not necessarily be the parent message + // that the field is declared within. + ContainingMessage() MessageDescriptor + + // Enum is the enum descriptor if Kind is EnumKind. + // It returns nil for any other Kind. + Enum() EnumDescriptor + + // Message is the message descriptor if Kind is + // MessageKind or GroupKind. It returns nil for any other Kind. + Message() MessageDescriptor + + isFieldDescriptor +} +type isFieldDescriptor interface{ ProtoType(FieldDescriptor) } + +// FieldDescriptors is a list of field declarations. +type FieldDescriptors interface { + // Len reports the number of fields. + Len() int + // Get returns the ith FieldDescriptor. It panics if out of bounds. + Get(i int) FieldDescriptor + // ByName returns the FieldDescriptor for a field named s. + // It returns nil if not found. + ByName(s Name) FieldDescriptor + // ByJSONName returns the FieldDescriptor for a field with s as the JSON name. + // It returns nil if not found. + ByJSONName(s string) FieldDescriptor + // ByTextName returns the FieldDescriptor for a field with s as the text name. + // It returns nil if not found. + ByTextName(s string) FieldDescriptor + // ByNumber returns the FieldDescriptor for a field numbered n. + // It returns nil if not found. + ByNumber(n FieldNumber) FieldDescriptor + + doNotImplement +} + +// OneofDescriptor describes a oneof field set within a given message and +// corresponds with the google.protobuf.OneofDescriptorProto message. +type OneofDescriptor interface { + Descriptor + + // IsSynthetic reports whether this is a synthetic oneof created to support + // proto3 optional semantics. If true, Fields contains exactly one field + // with HasOptionalKeyword specified. + IsSynthetic() bool + + // Fields is a list of fields belonging to this oneof. + Fields() FieldDescriptors + + isOneofDescriptor +} +type isOneofDescriptor interface{ ProtoType(OneofDescriptor) } + +// OneofDescriptors is a list of oneof declarations. +type OneofDescriptors interface { + // Len reports the number of oneof fields. + Len() int + // Get returns the ith OneofDescriptor. It panics if out of bounds. + Get(i int) OneofDescriptor + // ByName returns the OneofDescriptor for a oneof named s. + // It returns nil if not found. + ByName(s Name) OneofDescriptor + + doNotImplement +} + +// ExtensionDescriptor is an alias of FieldDescriptor for documentation. +type ExtensionDescriptor = FieldDescriptor + +// ExtensionTypeDescriptor is an ExtensionDescriptor with an associated ExtensionType. +type ExtensionTypeDescriptor interface { + ExtensionDescriptor + + // Type returns the associated ExtensionType. + Type() ExtensionType + + // Descriptor returns the plain ExtensionDescriptor without the + // associated ExtensionType. + Descriptor() ExtensionDescriptor +} + +// ExtensionDescriptors is a list of field declarations. +type ExtensionDescriptors interface { + // Len reports the number of fields. + Len() int + // Get returns the ith ExtensionDescriptor. It panics if out of bounds. + Get(i int) ExtensionDescriptor + // ByName returns the ExtensionDescriptor for a field named s. + // It returns nil if not found. + ByName(s Name) ExtensionDescriptor + + doNotImplement +} + +// ExtensionType encapsulates an ExtensionDescriptor with a concrete +// Go implementation. The nested field descriptor must be for a extension field. +// +// While a normal field is a member of the parent message that it is declared +// within (see Descriptor.Parent), an extension field is a member of some other +// target message (see ExtensionDescriptor.Extendee) and may have no +// relationship with the parent. However, the full name of an extension field is +// relative to the parent that it is declared within. +// +// For example: +// +// syntax = "proto2"; +// package example; +// message FooMessage { +// extensions 100 to max; +// } +// message BarMessage { +// extends FooMessage { optional BarMessage bar_field = 100; } +// } +// +// Field "bar_field" is an extension of FooMessage, but its full name is +// "example.BarMessage.bar_field" instead of "example.FooMessage.bar_field". +type ExtensionType interface { + // New returns a new value for the field. + // For scalars, this returns the default value in native Go form. + New() Value + + // Zero returns a new value for the field. + // For scalars, this returns the default value in native Go form. + // For composite types, this returns an empty, read-only message, list, or map. + Zero() Value + + // TypeDescriptor returns the extension type descriptor. + TypeDescriptor() ExtensionTypeDescriptor + + // ValueOf wraps the input and returns it as a Value. + // ValueOf panics if the input value is invalid or not the appropriate type. + // + // ValueOf is more extensive than protoreflect.ValueOf for a given field's + // value as it has more type information available. + ValueOf(interface{}) Value + + // InterfaceOf completely unwraps the Value to the underlying Go type. + // InterfaceOf panics if the input is nil or does not represent the + // appropriate underlying Go type. For composite types, it panics if the + // value is not mutable. + // + // InterfaceOf is able to unwrap the Value further than Value.Interface + // as it has more type information available. + InterfaceOf(Value) interface{} + + // IsValidValue reports whether the Value is valid to assign to the field. + IsValidValue(Value) bool + + // IsValidInterface reports whether the input is valid to assign to the field. + IsValidInterface(interface{}) bool +} + +// EnumDescriptor describes an enum and +// corresponds with the google.protobuf.EnumDescriptorProto message. +// +// Nested declarations: +// EnumValueDescriptor. +type EnumDescriptor interface { + Descriptor + + // Values is a list of nested enum value declarations. + Values() EnumValueDescriptors + + // ReservedNames is a list of reserved enum names. + ReservedNames() Names + // ReservedRanges is a list of reserved ranges of enum numbers. + ReservedRanges() EnumRanges + + isEnumDescriptor +} +type isEnumDescriptor interface{ ProtoType(EnumDescriptor) } + +// EnumType encapsulates an EnumDescriptor with a concrete Go implementation. +type EnumType interface { + // New returns an instance of this enum type with its value set to n. + New(n EnumNumber) Enum + + // Descriptor returns the enum descriptor. + // + // Invariant: t.Descriptor() == t.New(0).Descriptor() + Descriptor() EnumDescriptor +} + +// EnumDescriptors is a list of enum declarations. +type EnumDescriptors interface { + // Len reports the number of enum types. + Len() int + // Get returns the ith EnumDescriptor. It panics if out of bounds. + Get(i int) EnumDescriptor + // ByName returns the EnumDescriptor for an enum named s. + // It returns nil if not found. + ByName(s Name) EnumDescriptor + + doNotImplement +} + +// EnumValueDescriptor describes an enum value and +// corresponds with the google.protobuf.EnumValueDescriptorProto message. +// +// All other proto declarations are in the namespace of the parent. +// However, enum values do not follow this rule and are within the namespace +// of the parent's parent (i.e., they are a sibling of the containing enum). +// Thus, a value named "FOO_VALUE" declared within an enum uniquely identified +// as "proto.package.MyEnum" has a full name of "proto.package.FOO_VALUE". +type EnumValueDescriptor interface { + Descriptor + + // Number returns the enum value as an integer. + Number() EnumNumber + + isEnumValueDescriptor +} +type isEnumValueDescriptor interface{ ProtoType(EnumValueDescriptor) } + +// EnumValueDescriptors is a list of enum value declarations. +type EnumValueDescriptors interface { + // Len reports the number of enum values. + Len() int + // Get returns the ith EnumValueDescriptor. It panics if out of bounds. + Get(i int) EnumValueDescriptor + // ByName returns the EnumValueDescriptor for the enum value named s. + // It returns nil if not found. + ByName(s Name) EnumValueDescriptor + // ByNumber returns the EnumValueDescriptor for the enum value numbered n. + // If multiple have the same number, the first one defined is returned + // It returns nil if not found. + ByNumber(n EnumNumber) EnumValueDescriptor + + doNotImplement +} + +// ServiceDescriptor describes a service and +// corresponds with the google.protobuf.ServiceDescriptorProto message. +// +// Nested declarations: MethodDescriptor. +type ServiceDescriptor interface { + Descriptor + + // Methods is a list of nested message declarations. + Methods() MethodDescriptors + + isServiceDescriptor +} +type isServiceDescriptor interface{ ProtoType(ServiceDescriptor) } + +// ServiceDescriptors is a list of service declarations. +type ServiceDescriptors interface { + // Len reports the number of services. + Len() int + // Get returns the ith ServiceDescriptor. It panics if out of bounds. + Get(i int) ServiceDescriptor + // ByName returns the ServiceDescriptor for a service named s. + // It returns nil if not found. + ByName(s Name) ServiceDescriptor + + doNotImplement +} + +// MethodDescriptor describes a method and +// corresponds with the google.protobuf.MethodDescriptorProto message. +type MethodDescriptor interface { + Descriptor + + // Input is the input message descriptor. + Input() MessageDescriptor + // Output is the output message descriptor. + Output() MessageDescriptor + // IsStreamingClient reports whether the client streams multiple messages. + IsStreamingClient() bool + // IsStreamingServer reports whether the server streams multiple messages. + IsStreamingServer() bool + + isMethodDescriptor +} +type isMethodDescriptor interface{ ProtoType(MethodDescriptor) } + +// MethodDescriptors is a list of method declarations. +type MethodDescriptors interface { + // Len reports the number of methods. + Len() int + // Get returns the ith MethodDescriptor. It panics if out of bounds. + Get(i int) MethodDescriptor + // ByName returns the MethodDescriptor for a service method named s. + // It returns nil if not found. + ByName(s Name) MethodDescriptor + + doNotImplement +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go new file mode 100644 index 0000000..37601b7 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value.go @@ -0,0 +1,285 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import "google.golang.org/protobuf/encoding/protowire" + +// Enum is a reflection interface for a concrete enum value, +// which provides type information and a getter for the enum number. +// Enum does not provide a mutable API since enums are commonly backed by +// Go constants, which are not addressable. +type Enum interface { + // Descriptor returns enum descriptor, which contains only the protobuf + // type information for the enum. + Descriptor() EnumDescriptor + + // Type returns the enum type, which encapsulates both Go and protobuf + // type information. If the Go type information is not needed, + // it is recommended that the enum descriptor be used instead. + Type() EnumType + + // Number returns the enum value as an integer. + Number() EnumNumber +} + +// Message is a reflective interface for a concrete message value, +// encapsulating both type and value information for the message. +// +// Accessor/mutators for individual fields are keyed by FieldDescriptor. +// For non-extension fields, the descriptor must exactly match the +// field known by the parent message. +// For extension fields, the descriptor must implement ExtensionTypeDescriptor, +// extend the parent message (i.e., have the same message FullName), and +// be within the parent's extension range. +// +// Each field Value can be a scalar or a composite type (Message, List, or Map). +// See Value for the Go types associated with a FieldDescriptor. +// Providing a Value that is invalid or of an incorrect type panics. +type Message interface { + // Descriptor returns message descriptor, which contains only the protobuf + // type information for the message. + Descriptor() MessageDescriptor + + // Type returns the message type, which encapsulates both Go and protobuf + // type information. If the Go type information is not needed, + // it is recommended that the message descriptor be used instead. + Type() MessageType + + // New returns a newly allocated and mutable empty message. + New() Message + + // Interface unwraps the message reflection interface and + // returns the underlying ProtoMessage interface. + Interface() ProtoMessage + + // Range iterates over every populated field in an undefined order, + // calling f for each field descriptor and value encountered. + // Range returns immediately if f returns false. + // While iterating, mutating operations may only be performed + // on the current field descriptor. + Range(f func(FieldDescriptor, Value) bool) + + // Has reports whether a field is populated. + // + // Some fields have the property of nullability where it is possible to + // distinguish between the default value of a field and whether the field + // was explicitly populated with the default value. Singular message fields, + // member fields of a oneof, and proto2 scalar fields are nullable. Such + // fields are populated only if explicitly set. + // + // In other cases (aside from the nullable cases above), + // a proto3 scalar field is populated if it contains a non-zero value, and + // a repeated field is populated if it is non-empty. + Has(FieldDescriptor) bool + + // Clear clears the field such that a subsequent Has call reports false. + // + // Clearing an extension field clears both the extension type and value + // associated with the given field number. + // + // Clear is a mutating operation and unsafe for concurrent use. + Clear(FieldDescriptor) + + // Get retrieves the value for a field. + // + // For unpopulated scalars, it returns the default value, where + // the default value of a bytes scalar is guaranteed to be a copy. + // For unpopulated composite types, it returns an empty, read-only view + // of the value; to obtain a mutable reference, use Mutable. + Get(FieldDescriptor) Value + + // Set stores the value for a field. + // + // For a field belonging to a oneof, it implicitly clears any other field + // that may be currently set within the same oneof. + // For extension fields, it implicitly stores the provided ExtensionType. + // When setting a composite type, it is unspecified whether the stored value + // aliases the source's memory in any way. If the composite value is an + // empty, read-only value, then it panics. + // + // Set is a mutating operation and unsafe for concurrent use. + Set(FieldDescriptor, Value) + + // Mutable returns a mutable reference to a composite type. + // + // If the field is unpopulated, it may allocate a composite value. + // For a field belonging to a oneof, it implicitly clears any other field + // that may be currently set within the same oneof. + // For extension fields, it implicitly stores the provided ExtensionType + // if not already stored. + // It panics if the field does not contain a composite type. + // + // Mutable is a mutating operation and unsafe for concurrent use. + Mutable(FieldDescriptor) Value + + // NewField returns a new value that is assignable to the field + // for the given descriptor. For scalars, this returns the default value. + // For lists, maps, and messages, this returns a new, empty, mutable value. + NewField(FieldDescriptor) Value + + // WhichOneof reports which field within the oneof is populated, + // returning nil if none are populated. + // It panics if the oneof descriptor does not belong to this message. + WhichOneof(OneofDescriptor) FieldDescriptor + + // GetUnknown retrieves the entire list of unknown fields. + // The caller may only mutate the contents of the RawFields + // if the mutated bytes are stored back into the message with SetUnknown. + GetUnknown() RawFields + + // SetUnknown stores an entire list of unknown fields. + // The raw fields must be syntactically valid according to the wire format. + // An implementation may panic if this is not the case. + // Once stored, the caller must not mutate the content of the RawFields. + // An empty RawFields may be passed to clear the fields. + // + // SetUnknown is a mutating operation and unsafe for concurrent use. + SetUnknown(RawFields) + + // IsValid reports whether the message is valid. + // + // An invalid message is an empty, read-only value. + // + // An invalid message often corresponds to a nil pointer of the concrete + // message type, but the details are implementation dependent. + // Validity is not part of the protobuf data model, and may not + // be preserved in marshaling or other operations. + IsValid() bool + + // ProtoMethods returns optional fast-path implementations of various operations. + // This method may return nil. + // + // The returned methods type is identical to + // "google.golang.org/protobuf/runtime/protoiface".Methods. + // Consult the protoiface package documentation for details. + ProtoMethods() *methods +} + +// RawFields is the raw bytes for an ordered sequence of fields. +// Each field contains both the tag (representing field number and wire type), +// and also the wire data itself. +type RawFields []byte + +// IsValid reports whether b is syntactically correct wire format. +func (b RawFields) IsValid() bool { + for len(b) > 0 { + _, _, n := protowire.ConsumeField(b) + if n < 0 { + return false + } + b = b[n:] + } + return true +} + +// List is a zero-indexed, ordered list. +// The element Value type is determined by FieldDescriptor.Kind. +// Providing a Value that is invalid or of an incorrect type panics. +type List interface { + // Len reports the number of entries in the List. + // Get, Set, and Truncate panic with out of bound indexes. + Len() int + + // Get retrieves the value at the given index. + // It never returns an invalid value. + Get(int) Value + + // Set stores a value for the given index. + // When setting a composite type, it is unspecified whether the set + // value aliases the source's memory in any way. + // + // Set is a mutating operation and unsafe for concurrent use. + Set(int, Value) + + // Append appends the provided value to the end of the list. + // When appending a composite type, it is unspecified whether the appended + // value aliases the source's memory in any way. + // + // Append is a mutating operation and unsafe for concurrent use. + Append(Value) + + // AppendMutable appends a new, empty, mutable message value to the end + // of the list and returns it. + // It panics if the list does not contain a message type. + AppendMutable() Value + + // Truncate truncates the list to a smaller length. + // + // Truncate is a mutating operation and unsafe for concurrent use. + Truncate(int) + + // NewElement returns a new value for a list element. + // For enums, this returns the first enum value. + // For other scalars, this returns the zero value. + // For messages, this returns a new, empty, mutable value. + NewElement() Value + + // IsValid reports whether the list is valid. + // + // An invalid list is an empty, read-only value. + // + // Validity is not part of the protobuf data model, and may not + // be preserved in marshaling or other operations. + IsValid() bool +} + +// Map is an unordered, associative map. +// The entry MapKey type is determined by FieldDescriptor.MapKey.Kind. +// The entry Value type is determined by FieldDescriptor.MapValue.Kind. +// Providing a MapKey or Value that is invalid or of an incorrect type panics. +type Map interface { + // Len reports the number of elements in the map. + Len() int + + // Range iterates over every map entry in an undefined order, + // calling f for each key and value encountered. + // Range calls f Len times unless f returns false, which stops iteration. + // While iterating, mutating operations may only be performed + // on the current map key. + Range(f func(MapKey, Value) bool) + + // Has reports whether an entry with the given key is in the map. + Has(MapKey) bool + + // Clear clears the entry associated with they given key. + // The operation does nothing if there is no entry associated with the key. + // + // Clear is a mutating operation and unsafe for concurrent use. + Clear(MapKey) + + // Get retrieves the value for an entry with the given key. + // It returns an invalid value for non-existent entries. + Get(MapKey) Value + + // Set stores the value for an entry with the given key. + // It panics when given a key or value that is invalid or the wrong type. + // When setting a composite type, it is unspecified whether the set + // value aliases the source's memory in any way. + // + // Set is a mutating operation and unsafe for concurrent use. + Set(MapKey, Value) + + // Mutable retrieves a mutable reference to the entry for the given key. + // If no entry exists for the key, it creates a new, empty, mutable value + // and stores it as the entry for the key. + // It panics if the map value is not a message. + Mutable(MapKey) Value + + // NewValue returns a new value assignable as a map value. + // For enums, this returns the first enum value. + // For other scalars, this returns the zero value. + // For messages, this returns a new, empty, mutable value. + NewValue() Value + + // IsValid reports whether the map is valid. + // + // An invalid map is an empty, read-only value. + // + // An invalid message often corresponds to a nil Go map value, + // but the details are implementation dependent. + // Validity is not part of the protobuf data model, and may not + // be preserved in marshaling or other operations. + IsValid() bool +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_equal.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_equal.go new file mode 100644 index 0000000..5916525 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_equal.go @@ -0,0 +1,168 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import ( + "bytes" + "fmt" + "math" + "reflect" + + "google.golang.org/protobuf/encoding/protowire" +) + +// Equal reports whether v1 and v2 are recursively equal. +// +// - Values of different types are always unequal. +// +// - Bytes values are equal if they contain identical bytes. +// Empty bytes (regardless of nil-ness) are considered equal. +// +// - Floating point values are equal if they contain the same value. +// Unlike the == operator, a NaN is equal to another NaN. +// +// - Enums are equal if they contain the same number. +// Since Value does not contain an enum descriptor, +// enum values do not consider the type of the enum. +// +// - Other scalar values are equal if they contain the same value. +// +// - Message values are equal if they belong to the same message descriptor, +// have the same set of populated known and extension field values, +// and the same set of unknown fields values. +// +// - Lists are equal if they are the same length and +// each corresponding element is equal. +// +// - Maps are equal if they have the same set of keys and +// the corresponding value for each key is equal. +func (v1 Value) Equal(v2 Value) bool { + return equalValue(v1, v2) +} + +func equalValue(x, y Value) bool { + eqType := x.typ == y.typ + switch x.typ { + case nilType: + return eqType + case boolType: + return eqType && x.Bool() == y.Bool() + case int32Type, int64Type: + return eqType && x.Int() == y.Int() + case uint32Type, uint64Type: + return eqType && x.Uint() == y.Uint() + case float32Type, float64Type: + return eqType && equalFloat(x.Float(), y.Float()) + case stringType: + return eqType && x.String() == y.String() + case bytesType: + return eqType && bytes.Equal(x.Bytes(), y.Bytes()) + case enumType: + return eqType && x.Enum() == y.Enum() + default: + switch x := x.Interface().(type) { + case Message: + y, ok := y.Interface().(Message) + return ok && equalMessage(x, y) + case List: + y, ok := y.Interface().(List) + return ok && equalList(x, y) + case Map: + y, ok := y.Interface().(Map) + return ok && equalMap(x, y) + default: + panic(fmt.Sprintf("unknown type: %T", x)) + } + } +} + +// equalFloat compares two floats, where NaNs are treated as equal. +func equalFloat(x, y float64) bool { + if math.IsNaN(x) || math.IsNaN(y) { + return math.IsNaN(x) && math.IsNaN(y) + } + return x == y +} + +// equalMessage compares two messages. +func equalMessage(mx, my Message) bool { + if mx.Descriptor() != my.Descriptor() { + return false + } + + nx := 0 + equal := true + mx.Range(func(fd FieldDescriptor, vx Value) bool { + nx++ + vy := my.Get(fd) + equal = my.Has(fd) && equalValue(vx, vy) + return equal + }) + if !equal { + return false + } + ny := 0 + my.Range(func(fd FieldDescriptor, vx Value) bool { + ny++ + return true + }) + if nx != ny { + return false + } + + return equalUnknown(mx.GetUnknown(), my.GetUnknown()) +} + +// equalList compares two lists. +func equalList(x, y List) bool { + if x.Len() != y.Len() { + return false + } + for i := x.Len() - 1; i >= 0; i-- { + if !equalValue(x.Get(i), y.Get(i)) { + return false + } + } + return true +} + +// equalMap compares two maps. +func equalMap(x, y Map) bool { + if x.Len() != y.Len() { + return false + } + equal := true + x.Range(func(k MapKey, vx Value) bool { + vy := y.Get(k) + equal = y.Has(k) && equalValue(vx, vy) + return equal + }) + return equal +} + +// equalUnknown compares unknown fields by direct comparison on the raw bytes +// of each individual field number. +func equalUnknown(x, y RawFields) bool { + if len(x) != len(y) { + return false + } + if bytes.Equal([]byte(x), []byte(y)) { + return true + } + + mx := make(map[FieldNumber]RawFields) + my := make(map[FieldNumber]RawFields) + for len(x) > 0 { + fnum, _, n := protowire.ConsumeField(x) + mx[fnum] = append(mx[fnum], x[:n]...) + x = x[n:] + } + for len(y) > 0 { + fnum, _, n := protowire.ConsumeField(y) + my[fnum] = append(my[fnum], y[:n]...) + y = y[n:] + } + return reflect.DeepEqual(mx, my) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go new file mode 100644 index 0000000..7ced876 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go @@ -0,0 +1,60 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build purego || appengine +// +build purego appengine + +package protoreflect + +import "google.golang.org/protobuf/internal/pragma" + +type valueType int + +const ( + nilType valueType = iota + boolType + int32Type + int64Type + uint32Type + uint64Type + float32Type + float64Type + stringType + bytesType + enumType + ifaceType +) + +// value is a union where only one type can be represented at a time. +// This uses a distinct field for each type. This is type safe in Go, but +// occupies more memory than necessary (72B). +type value struct { + pragma.DoNotCompare // 0B + + typ valueType // 8B + num uint64 // 8B + str string // 16B + bin []byte // 24B + iface interface{} // 16B +} + +func valueOfString(v string) Value { + return Value{typ: stringType, str: v} +} +func valueOfBytes(v []byte) Value { + return Value{typ: bytesType, bin: v} +} +func valueOfIface(v interface{}) Value { + return Value{typ: ifaceType, iface: v} +} + +func (v Value) getString() string { + return v.str +} +func (v Value) getBytes() []byte { + return v.bin +} +func (v Value) getIface() interface{} { + return v.iface +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go new file mode 100644 index 0000000..08e5ef7 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go @@ -0,0 +1,438 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoreflect + +import ( + "fmt" + "math" +) + +// Value is a union where only one Go type may be set at a time. +// The Value is used to represent all possible values a field may take. +// The following shows which Go type is used to represent each proto Kind: +// +// ╔════════════╤═════════════════════════════════════╗ +// ║ Go type │ Protobuf kind ║ +// ╠════════════╪═════════════════════════════════════╣ +// ║ bool │ BoolKind ║ +// ║ int32 │ Int32Kind, Sint32Kind, Sfixed32Kind ║ +// ║ int64 │ Int64Kind, Sint64Kind, Sfixed64Kind ║ +// ║ uint32 │ Uint32Kind, Fixed32Kind ║ +// ║ uint64 │ Uint64Kind, Fixed64Kind ║ +// ║ float32 │ FloatKind ║ +// ║ float64 │ DoubleKind ║ +// ║ string │ StringKind ║ +// ║ []byte │ BytesKind ║ +// ║ EnumNumber │ EnumKind ║ +// ║ Message │ MessageKind, GroupKind ║ +// ╚════════════╧═════════════════════════════════════╝ +// +// Multiple protobuf Kinds may be represented by a single Go type if the type +// can losslessly represent the information for the proto kind. For example, +// Int64Kind, Sint64Kind, and Sfixed64Kind are all represented by int64, +// but use different integer encoding methods. +// +// The List or Map types are used if the field cardinality is repeated. +// A field is a List if FieldDescriptor.IsList reports true. +// A field is a Map if FieldDescriptor.IsMap reports true. +// +// Converting to/from a Value and a concrete Go value panics on type mismatch. +// For example, ValueOf("hello").Int() panics because this attempts to +// retrieve an int64 from a string. +// +// List, Map, and Message Values are called "composite" values. +// +// A composite Value may alias (reference) memory at some location, +// such that changes to the Value updates the that location. +// A composite value acquired with a Mutable method, such as Message.Mutable, +// always references the source object. +// +// For example: +// +// // Append a 0 to a "repeated int32" field. +// // Since the Value returned by Mutable is guaranteed to alias +// // the source message, modifying the Value modifies the message. +// message.Mutable(fieldDesc).List().Append(protoreflect.ValueOfInt32(0)) +// +// // Assign [0] to a "repeated int32" field by creating a new Value, +// // modifying it, and assigning it. +// list := message.NewField(fieldDesc).List() +// list.Append(protoreflect.ValueOfInt32(0)) +// message.Set(fieldDesc, list) +// // ERROR: Since it is not defined whether Set aliases the source, +// // appending to the List here may or may not modify the message. +// list.Append(protoreflect.ValueOfInt32(0)) +// +// Some operations, such as Message.Get, may return an "empty, read-only" +// composite Value. Modifying an empty, read-only value panics. +type Value value + +// The protoreflect API uses a custom Value union type instead of interface{} +// to keep the future open for performance optimizations. Using an interface{} +// always incurs an allocation for primitives (e.g., int64) since it needs to +// be boxed on the heap (as interfaces can only contain pointers natively). +// Instead, we represent the Value union as a flat struct that internally keeps +// track of which type is set. Using unsafe, the Value union can be reduced +// down to 24B, which is identical in size to a slice. +// +// The latest compiler (Go1.11) currently suffers from some limitations: +// • With inlining, the compiler should be able to statically prove that +// only one of these switch cases are taken and inline one specific case. +// See https://golang.org/issue/22310. + +// ValueOf returns a Value initialized with the concrete value stored in v. +// This panics if the type does not match one of the allowed types in the +// Value union. +func ValueOf(v interface{}) Value { + switch v := v.(type) { + case nil: + return Value{} + case bool: + return ValueOfBool(v) + case int32: + return ValueOfInt32(v) + case int64: + return ValueOfInt64(v) + case uint32: + return ValueOfUint32(v) + case uint64: + return ValueOfUint64(v) + case float32: + return ValueOfFloat32(v) + case float64: + return ValueOfFloat64(v) + case string: + return ValueOfString(v) + case []byte: + return ValueOfBytes(v) + case EnumNumber: + return ValueOfEnum(v) + case Message, List, Map: + return valueOfIface(v) + case ProtoMessage: + panic(fmt.Sprintf("invalid proto.Message(%T) type, expected a protoreflect.Message type", v)) + default: + panic(fmt.Sprintf("invalid type: %T", v)) + } +} + +// ValueOfBool returns a new boolean value. +func ValueOfBool(v bool) Value { + if v { + return Value{typ: boolType, num: 1} + } else { + return Value{typ: boolType, num: 0} + } +} + +// ValueOfInt32 returns a new int32 value. +func ValueOfInt32(v int32) Value { + return Value{typ: int32Type, num: uint64(v)} +} + +// ValueOfInt64 returns a new int64 value. +func ValueOfInt64(v int64) Value { + return Value{typ: int64Type, num: uint64(v)} +} + +// ValueOfUint32 returns a new uint32 value. +func ValueOfUint32(v uint32) Value { + return Value{typ: uint32Type, num: uint64(v)} +} + +// ValueOfUint64 returns a new uint64 value. +func ValueOfUint64(v uint64) Value { + return Value{typ: uint64Type, num: v} +} + +// ValueOfFloat32 returns a new float32 value. +func ValueOfFloat32(v float32) Value { + return Value{typ: float32Type, num: uint64(math.Float64bits(float64(v)))} +} + +// ValueOfFloat64 returns a new float64 value. +func ValueOfFloat64(v float64) Value { + return Value{typ: float64Type, num: uint64(math.Float64bits(float64(v)))} +} + +// ValueOfString returns a new string value. +func ValueOfString(v string) Value { + return valueOfString(v) +} + +// ValueOfBytes returns a new bytes value. +func ValueOfBytes(v []byte) Value { + return valueOfBytes(v[:len(v):len(v)]) +} + +// ValueOfEnum returns a new enum value. +func ValueOfEnum(v EnumNumber) Value { + return Value{typ: enumType, num: uint64(v)} +} + +// ValueOfMessage returns a new Message value. +func ValueOfMessage(v Message) Value { + return valueOfIface(v) +} + +// ValueOfList returns a new List value. +func ValueOfList(v List) Value { + return valueOfIface(v) +} + +// ValueOfMap returns a new Map value. +func ValueOfMap(v Map) Value { + return valueOfIface(v) +} + +// IsValid reports whether v is populated with a value. +func (v Value) IsValid() bool { + return v.typ != nilType +} + +// Interface returns v as an interface{}. +// +// Invariant: v == ValueOf(v).Interface() +func (v Value) Interface() interface{} { + switch v.typ { + case nilType: + return nil + case boolType: + return v.Bool() + case int32Type: + return int32(v.Int()) + case int64Type: + return int64(v.Int()) + case uint32Type: + return uint32(v.Uint()) + case uint64Type: + return uint64(v.Uint()) + case float32Type: + return float32(v.Float()) + case float64Type: + return float64(v.Float()) + case stringType: + return v.String() + case bytesType: + return v.Bytes() + case enumType: + return v.Enum() + default: + return v.getIface() + } +} + +func (v Value) typeName() string { + switch v.typ { + case nilType: + return "nil" + case boolType: + return "bool" + case int32Type: + return "int32" + case int64Type: + return "int64" + case uint32Type: + return "uint32" + case uint64Type: + return "uint64" + case float32Type: + return "float32" + case float64Type: + return "float64" + case stringType: + return "string" + case bytesType: + return "bytes" + case enumType: + return "enum" + default: + switch v := v.getIface().(type) { + case Message: + return "message" + case List: + return "list" + case Map: + return "map" + default: + return fmt.Sprintf("", v) + } + } +} + +func (v Value) panicMessage(what string) string { + return fmt.Sprintf("type mismatch: cannot convert %v to %s", v.typeName(), what) +} + +// Bool returns v as a bool and panics if the type is not a bool. +func (v Value) Bool() bool { + switch v.typ { + case boolType: + return v.num > 0 + default: + panic(v.panicMessage("bool")) + } +} + +// Int returns v as a int64 and panics if the type is not a int32 or int64. +func (v Value) Int() int64 { + switch v.typ { + case int32Type, int64Type: + return int64(v.num) + default: + panic(v.panicMessage("int")) + } +} + +// Uint returns v as a uint64 and panics if the type is not a uint32 or uint64. +func (v Value) Uint() uint64 { + switch v.typ { + case uint32Type, uint64Type: + return uint64(v.num) + default: + panic(v.panicMessage("uint")) + } +} + +// Float returns v as a float64 and panics if the type is not a float32 or float64. +func (v Value) Float() float64 { + switch v.typ { + case float32Type, float64Type: + return math.Float64frombits(uint64(v.num)) + default: + panic(v.panicMessage("float")) + } +} + +// String returns v as a string. Since this method implements fmt.Stringer, +// this returns the formatted string value for any non-string type. +func (v Value) String() string { + switch v.typ { + case stringType: + return v.getString() + default: + return fmt.Sprint(v.Interface()) + } +} + +// Bytes returns v as a []byte and panics if the type is not a []byte. +func (v Value) Bytes() []byte { + switch v.typ { + case bytesType: + return v.getBytes() + default: + panic(v.panicMessage("bytes")) + } +} + +// Enum returns v as a EnumNumber and panics if the type is not a EnumNumber. +func (v Value) Enum() EnumNumber { + switch v.typ { + case enumType: + return EnumNumber(v.num) + default: + panic(v.panicMessage("enum")) + } +} + +// Message returns v as a Message and panics if the type is not a Message. +func (v Value) Message() Message { + switch vi := v.getIface().(type) { + case Message: + return vi + default: + panic(v.panicMessage("message")) + } +} + +// List returns v as a List and panics if the type is not a List. +func (v Value) List() List { + switch vi := v.getIface().(type) { + case List: + return vi + default: + panic(v.panicMessage("list")) + } +} + +// Map returns v as a Map and panics if the type is not a Map. +func (v Value) Map() Map { + switch vi := v.getIface().(type) { + case Map: + return vi + default: + panic(v.panicMessage("map")) + } +} + +// MapKey returns v as a MapKey and panics for invalid MapKey types. +func (v Value) MapKey() MapKey { + switch v.typ { + case boolType, int32Type, int64Type, uint32Type, uint64Type, stringType: + return MapKey(v) + default: + panic(v.panicMessage("map key")) + } +} + +// MapKey is used to index maps, where the Go type of the MapKey must match +// the specified key Kind (see MessageDescriptor.IsMapEntry). +// The following shows what Go type is used to represent each proto Kind: +// +// ╔═════════╤═════════════════════════════════════╗ +// ║ Go type │ Protobuf kind ║ +// ╠═════════╪═════════════════════════════════════╣ +// ║ bool │ BoolKind ║ +// ║ int32 │ Int32Kind, Sint32Kind, Sfixed32Kind ║ +// ║ int64 │ Int64Kind, Sint64Kind, Sfixed64Kind ║ +// ║ uint32 │ Uint32Kind, Fixed32Kind ║ +// ║ uint64 │ Uint64Kind, Fixed64Kind ║ +// ║ string │ StringKind ║ +// ╚═════════╧═════════════════════════════════════╝ +// +// A MapKey is constructed and accessed through a Value: +// +// k := ValueOf("hash").MapKey() // convert string to MapKey +// s := k.String() // convert MapKey to string +// +// The MapKey is a strict subset of valid types used in Value; +// converting a Value to a MapKey with an invalid type panics. +type MapKey value + +// IsValid reports whether k is populated with a value. +func (k MapKey) IsValid() bool { + return Value(k).IsValid() +} + +// Interface returns k as an interface{}. +func (k MapKey) Interface() interface{} { + return Value(k).Interface() +} + +// Bool returns k as a bool and panics if the type is not a bool. +func (k MapKey) Bool() bool { + return Value(k).Bool() +} + +// Int returns k as a int64 and panics if the type is not a int32 or int64. +func (k MapKey) Int() int64 { + return Value(k).Int() +} + +// Uint returns k as a uint64 and panics if the type is not a uint32 or uint64. +func (k MapKey) Uint() uint64 { + return Value(k).Uint() +} + +// String returns k as a string. Since this method implements fmt.Stringer, +// this returns the formatted string value for any non-string type. +func (k MapKey) String() string { + return Value(k).String() +} + +// Value returns k as a Value. +func (k MapKey) Value() Value { + return Value(k) +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go new file mode 100644 index 0000000..702ddf2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe.go @@ -0,0 +1,99 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !purego && !appengine +// +build !purego,!appengine + +package protoreflect + +import ( + "unsafe" + + "google.golang.org/protobuf/internal/pragma" +) + +type ( + stringHeader struct { + Data unsafe.Pointer + Len int + } + sliceHeader struct { + Data unsafe.Pointer + Len int + Cap int + } + ifaceHeader struct { + Type unsafe.Pointer + Data unsafe.Pointer + } +) + +var ( + nilType = typeOf(nil) + boolType = typeOf(*new(bool)) + int32Type = typeOf(*new(int32)) + int64Type = typeOf(*new(int64)) + uint32Type = typeOf(*new(uint32)) + uint64Type = typeOf(*new(uint64)) + float32Type = typeOf(*new(float32)) + float64Type = typeOf(*new(float64)) + stringType = typeOf(*new(string)) + bytesType = typeOf(*new([]byte)) + enumType = typeOf(*new(EnumNumber)) +) + +// typeOf returns a pointer to the Go type information. +// The pointer is comparable and equal if and only if the types are identical. +func typeOf(t interface{}) unsafe.Pointer { + return (*ifaceHeader)(unsafe.Pointer(&t)).Type +} + +// value is a union where only one type can be represented at a time. +// The struct is 24B large on 64-bit systems and requires the minimum storage +// necessary to represent each possible type. +// +// The Go GC needs to be able to scan variables containing pointers. +// As such, pointers and non-pointers cannot be intermixed. +type value struct { + pragma.DoNotCompare // 0B + + // typ stores the type of the value as a pointer to the Go type. + typ unsafe.Pointer // 8B + + // ptr stores the data pointer for a String, Bytes, or interface value. + ptr unsafe.Pointer // 8B + + // num stores a Bool, Int32, Int64, Uint32, Uint64, Float32, Float64, or + // Enum value as a raw uint64. + // + // It is also used to store the length of a String or Bytes value; + // the capacity is ignored. + num uint64 // 8B +} + +func valueOfString(v string) Value { + p := (*stringHeader)(unsafe.Pointer(&v)) + return Value{typ: stringType, ptr: p.Data, num: uint64(len(v))} +} +func valueOfBytes(v []byte) Value { + p := (*sliceHeader)(unsafe.Pointer(&v)) + return Value{typ: bytesType, ptr: p.Data, num: uint64(len(v))} +} +func valueOfIface(v interface{}) Value { + p := (*ifaceHeader)(unsafe.Pointer(&v)) + return Value{typ: p.Type, ptr: p.Data} +} + +func (v Value) getString() (x string) { + *(*stringHeader)(unsafe.Pointer(&x)) = stringHeader{Data: v.ptr, Len: int(v.num)} + return x +} +func (v Value) getBytes() (x []byte) { + *(*sliceHeader)(unsafe.Pointer(&x)) = sliceHeader{Data: v.ptr, Len: int(v.num), Cap: int(v.num)} + return x +} +func (v Value) getIface() (x interface{}) { + *(*ifaceHeader)(unsafe.Pointer(&x)) = ifaceHeader{Type: v.typ, Data: v.ptr} + return x +} diff --git a/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go b/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go new file mode 100644 index 0000000..aeb5597 --- /dev/null +++ b/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go @@ -0,0 +1,882 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoregistry provides data structures to register and lookup +// protobuf descriptor types. +// +// The Files registry contains file descriptors and provides the ability +// to iterate over the files or lookup a specific descriptor within the files. +// Files only contains protobuf descriptors and has no understanding of Go +// type information that may be associated with each descriptor. +// +// The Types registry contains descriptor types for which there is a known +// Go type associated with that descriptor. It provides the ability to iterate +// over the registered types or lookup a type by name. +package protoregistry + +import ( + "fmt" + "os" + "strings" + "sync" + + "google.golang.org/protobuf/internal/encoding/messageset" + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/internal/flags" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// conflictPolicy configures the policy for handling registration conflicts. +// +// It can be over-written at compile time with a linker-initialized variable: +// +// go build -ldflags "-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn" +// +// It can be over-written at program execution with an environment variable: +// +// GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn ./main +// +// Neither of the above are covered by the compatibility promise and +// may be removed in a future release of this module. +var conflictPolicy = "panic" // "panic" | "warn" | "ignore" + +// ignoreConflict reports whether to ignore a registration conflict +// given the descriptor being registered and the error. +// It is a variable so that the behavior is easily overridden in another file. +var ignoreConflict = func(d protoreflect.Descriptor, err error) bool { + const env = "GOLANG_PROTOBUF_REGISTRATION_CONFLICT" + const faq = "https://protobuf.dev/reference/go/faq#namespace-conflict" + policy := conflictPolicy + if v := os.Getenv(env); v != "" { + policy = v + } + switch policy { + case "panic": + panic(fmt.Sprintf("%v\nSee %v\n", err, faq)) + case "warn": + fmt.Fprintf(os.Stderr, "WARNING: %v\nSee %v\n\n", err, faq) + return true + case "ignore": + return true + default: + panic("invalid " + env + " value: " + os.Getenv(env)) + } +} + +var globalMutex sync.RWMutex + +// GlobalFiles is a global registry of file descriptors. +var GlobalFiles *Files = new(Files) + +// GlobalTypes is the registry used by default for type lookups +// unless a local registry is provided by the user. +var GlobalTypes *Types = new(Types) + +// NotFound is a sentinel error value to indicate that the type was not found. +// +// Since registry lookup can happen in the critical performance path, resolvers +// must return this exact error value, not an error wrapping it. +var NotFound = errors.New("not found") + +// Files is a registry for looking up or iterating over files and the +// descriptors contained within them. +// The Find and Range methods are safe for concurrent use. +type Files struct { + // The map of descsByName contains: + // EnumDescriptor + // EnumValueDescriptor + // MessageDescriptor + // ExtensionDescriptor + // ServiceDescriptor + // *packageDescriptor + // + // Note that files are stored as a slice, since a package may contain + // multiple files. Only top-level declarations are registered. + // Note that enum values are in the top-level since that are in the same + // scope as the parent enum. + descsByName map[protoreflect.FullName]interface{} + filesByPath map[string][]protoreflect.FileDescriptor + numFiles int +} + +type packageDescriptor struct { + files []protoreflect.FileDescriptor +} + +// RegisterFile registers the provided file descriptor. +// +// If any descriptor within the file conflicts with the descriptor of any +// previously registered file (e.g., two enums with the same full name), +// then the file is not registered and an error is returned. +// +// It is permitted for multiple files to have the same file path. +func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error { + if r == GlobalFiles { + globalMutex.Lock() + defer globalMutex.Unlock() + } + if r.descsByName == nil { + r.descsByName = map[protoreflect.FullName]interface{}{ + "": &packageDescriptor{}, + } + r.filesByPath = make(map[string][]protoreflect.FileDescriptor) + } + path := file.Path() + if prev := r.filesByPath[path]; len(prev) > 0 { + r.checkGenProtoConflict(path) + err := errors.New("file %q is already registered", file.Path()) + err = amendErrorWithCaller(err, prev[0], file) + if !(r == GlobalFiles && ignoreConflict(file, err)) { + return err + } + } + + for name := file.Package(); name != ""; name = name.Parent() { + switch prev := r.descsByName[name]; prev.(type) { + case nil, *packageDescriptor: + default: + err := errors.New("file %q has a package name conflict over %v", file.Path(), name) + err = amendErrorWithCaller(err, prev, file) + if r == GlobalFiles && ignoreConflict(file, err) { + err = nil + } + return err + } + } + var err error + var hasConflict bool + rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) { + if prev := r.descsByName[d.FullName()]; prev != nil { + hasConflict = true + err = errors.New("file %q has a name conflict over %v", file.Path(), d.FullName()) + err = amendErrorWithCaller(err, prev, file) + if r == GlobalFiles && ignoreConflict(d, err) { + err = nil + } + } + }) + if hasConflict { + return err + } + + for name := file.Package(); name != ""; name = name.Parent() { + if r.descsByName[name] == nil { + r.descsByName[name] = &packageDescriptor{} + } + } + p := r.descsByName[file.Package()].(*packageDescriptor) + p.files = append(p.files, file) + rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) { + r.descsByName[d.FullName()] = d + }) + r.filesByPath[path] = append(r.filesByPath[path], file) + r.numFiles++ + return nil +} + +// Several well-known types were hosted in the google.golang.org/genproto module +// but were later moved to this module. To avoid a weak dependency on the +// genproto module (and its relatively large set of transitive dependencies), +// we rely on a registration conflict to determine whether the genproto version +// is too old (i.e., does not contain aliases to the new type declarations). +func (r *Files) checkGenProtoConflict(path string) { + if r != GlobalFiles { + return + } + var prevPath string + const prevModule = "google.golang.org/genproto" + const prevVersion = "cb27e3aa (May 26th, 2020)" + switch path { + case "google/protobuf/field_mask.proto": + prevPath = prevModule + "/protobuf/field_mask" + case "google/protobuf/api.proto": + prevPath = prevModule + "/protobuf/api" + case "google/protobuf/type.proto": + prevPath = prevModule + "/protobuf/ptype" + case "google/protobuf/source_context.proto": + prevPath = prevModule + "/protobuf/source_context" + default: + return + } + pkgName := strings.TrimSuffix(strings.TrimPrefix(path, "google/protobuf/"), ".proto") + pkgName = strings.Replace(pkgName, "_", "", -1) + "pb" // e.g., "field_mask" => "fieldmaskpb" + currPath := "google.golang.org/protobuf/types/known/" + pkgName + panic(fmt.Sprintf(""+ + "duplicate registration of %q\n"+ + "\n"+ + "The generated definition for this file has moved:\n"+ + "\tfrom: %q\n"+ + "\tto: %q\n"+ + "A dependency on the %q module must\n"+ + "be at version %v or higher.\n"+ + "\n"+ + "Upgrade the dependency by running:\n"+ + "\tgo get -u %v\n", + path, prevPath, currPath, prevModule, prevVersion, prevPath)) +} + +// FindDescriptorByName looks up a descriptor by the full name. +// +// This returns (nil, NotFound) if not found. +func (r *Files) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + prefix := name + suffix := nameSuffix("") + for prefix != "" { + if d, ok := r.descsByName[prefix]; ok { + switch d := d.(type) { + case protoreflect.EnumDescriptor: + if d.FullName() == name { + return d, nil + } + case protoreflect.EnumValueDescriptor: + if d.FullName() == name { + return d, nil + } + case protoreflect.MessageDescriptor: + if d.FullName() == name { + return d, nil + } + if d := findDescriptorInMessage(d, suffix); d != nil && d.FullName() == name { + return d, nil + } + case protoreflect.ExtensionDescriptor: + if d.FullName() == name { + return d, nil + } + case protoreflect.ServiceDescriptor: + if d.FullName() == name { + return d, nil + } + if d := d.Methods().ByName(suffix.Pop()); d != nil && d.FullName() == name { + return d, nil + } + } + return nil, NotFound + } + prefix = prefix.Parent() + suffix = nameSuffix(name[len(prefix)+len("."):]) + } + return nil, NotFound +} + +func findDescriptorInMessage(md protoreflect.MessageDescriptor, suffix nameSuffix) protoreflect.Descriptor { + name := suffix.Pop() + if suffix == "" { + if ed := md.Enums().ByName(name); ed != nil { + return ed + } + for i := md.Enums().Len() - 1; i >= 0; i-- { + if vd := md.Enums().Get(i).Values().ByName(name); vd != nil { + return vd + } + } + if xd := md.Extensions().ByName(name); xd != nil { + return xd + } + if fd := md.Fields().ByName(name); fd != nil { + return fd + } + if od := md.Oneofs().ByName(name); od != nil { + return od + } + } + if md := md.Messages().ByName(name); md != nil { + if suffix == "" { + return md + } + return findDescriptorInMessage(md, suffix) + } + return nil +} + +type nameSuffix string + +func (s *nameSuffix) Pop() (name protoreflect.Name) { + if i := strings.IndexByte(string(*s), '.'); i >= 0 { + name, *s = protoreflect.Name((*s)[:i]), (*s)[i+1:] + } else { + name, *s = protoreflect.Name((*s)), "" + } + return name +} + +// FindFileByPath looks up a file by the path. +// +// This returns (nil, NotFound) if not found. +// This returns an error if multiple files have the same path. +func (r *Files) FindFileByPath(path string) (protoreflect.FileDescriptor, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + fds := r.filesByPath[path] + switch len(fds) { + case 0: + return nil, NotFound + case 1: + return fds[0], nil + default: + return nil, errors.New("multiple files named %q", path) + } +} + +// NumFiles reports the number of registered files, +// including duplicate files with the same name. +func (r *Files) NumFiles() int { + if r == nil { + return 0 + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numFiles +} + +// RangeFiles iterates over all registered files while f returns true. +// If multiple files have the same name, RangeFiles iterates over all of them. +// The iteration order is undefined. +func (r *Files) RangeFiles(f func(protoreflect.FileDescriptor) bool) { + if r == nil { + return + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, files := range r.filesByPath { + for _, file := range files { + if !f(file) { + return + } + } + } +} + +// NumFilesByPackage reports the number of registered files in a proto package. +func (r *Files) NumFilesByPackage(name protoreflect.FullName) int { + if r == nil { + return 0 + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + p, ok := r.descsByName[name].(*packageDescriptor) + if !ok { + return 0 + } + return len(p.files) +} + +// RangeFilesByPackage iterates over all registered files in a given proto package +// while f returns true. The iteration order is undefined. +func (r *Files) RangeFilesByPackage(name protoreflect.FullName, f func(protoreflect.FileDescriptor) bool) { + if r == nil { + return + } + if r == GlobalFiles { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + p, ok := r.descsByName[name].(*packageDescriptor) + if !ok { + return + } + for _, file := range p.files { + if !f(file) { + return + } + } +} + +// rangeTopLevelDescriptors iterates over all top-level descriptors in a file +// which will be directly entered into the registry. +func rangeTopLevelDescriptors(fd protoreflect.FileDescriptor, f func(protoreflect.Descriptor)) { + eds := fd.Enums() + for i := eds.Len() - 1; i >= 0; i-- { + f(eds.Get(i)) + vds := eds.Get(i).Values() + for i := vds.Len() - 1; i >= 0; i-- { + f(vds.Get(i)) + } + } + mds := fd.Messages() + for i := mds.Len() - 1; i >= 0; i-- { + f(mds.Get(i)) + } + xds := fd.Extensions() + for i := xds.Len() - 1; i >= 0; i-- { + f(xds.Get(i)) + } + sds := fd.Services() + for i := sds.Len() - 1; i >= 0; i-- { + f(sds.Get(i)) + } +} + +// MessageTypeResolver is an interface for looking up messages. +// +// A compliant implementation must deterministically return the same type +// if no error is encountered. +// +// The Types type implements this interface. +type MessageTypeResolver interface { + // FindMessageByName looks up a message by its full name. + // E.g., "google.protobuf.Any" + // + // This return (nil, NotFound) if not found. + FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) + + // FindMessageByURL looks up a message by a URL identifier. + // See documentation on google.protobuf.Any.type_url for the URL format. + // + // This returns (nil, NotFound) if not found. + FindMessageByURL(url string) (protoreflect.MessageType, error) +} + +// ExtensionTypeResolver is an interface for looking up extensions. +// +// A compliant implementation must deterministically return the same type +// if no error is encountered. +// +// The Types type implements this interface. +type ExtensionTypeResolver interface { + // FindExtensionByName looks up a extension field by the field's full name. + // Note that this is the full name of the field as determined by + // where the extension is declared and is unrelated to the full name of the + // message being extended. + // + // This returns (nil, NotFound) if not found. + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + + // FindExtensionByNumber looks up a extension field by the field number + // within some parent message, identified by full name. + // + // This returns (nil, NotFound) if not found. + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) +} + +var ( + _ MessageTypeResolver = (*Types)(nil) + _ ExtensionTypeResolver = (*Types)(nil) +) + +// Types is a registry for looking up or iterating over descriptor types. +// The Find and Range methods are safe for concurrent use. +type Types struct { + typesByName typesByName + extensionsByMessage extensionsByMessage + + numEnums int + numMessages int + numExtensions int +} + +type ( + typesByName map[protoreflect.FullName]interface{} + extensionsByMessage map[protoreflect.FullName]extensionsByNumber + extensionsByNumber map[protoreflect.FieldNumber]protoreflect.ExtensionType +) + +// RegisterMessage registers the provided message type. +// +// If a naming conflict occurs, the type is not registered and an error is returned. +func (r *Types) RegisterMessage(mt protoreflect.MessageType) error { + // Under rare circumstances getting the descriptor might recursively + // examine the registry, so fetch it before locking. + md := mt.Descriptor() + + if r == GlobalTypes { + globalMutex.Lock() + defer globalMutex.Unlock() + } + + if err := r.register("message", md, mt); err != nil { + return err + } + r.numMessages++ + return nil +} + +// RegisterEnum registers the provided enum type. +// +// If a naming conflict occurs, the type is not registered and an error is returned. +func (r *Types) RegisterEnum(et protoreflect.EnumType) error { + // Under rare circumstances getting the descriptor might recursively + // examine the registry, so fetch it before locking. + ed := et.Descriptor() + + if r == GlobalTypes { + globalMutex.Lock() + defer globalMutex.Unlock() + } + + if err := r.register("enum", ed, et); err != nil { + return err + } + r.numEnums++ + return nil +} + +// RegisterExtension registers the provided extension type. +// +// If a naming conflict occurs, the type is not registered and an error is returned. +func (r *Types) RegisterExtension(xt protoreflect.ExtensionType) error { + // Under rare circumstances getting the descriptor might recursively + // examine the registry, so fetch it before locking. + // + // A known case where this can happen: Fetching the TypeDescriptor for a + // legacy ExtensionDesc can consult the global registry. + xd := xt.TypeDescriptor() + + if r == GlobalTypes { + globalMutex.Lock() + defer globalMutex.Unlock() + } + + field := xd.Number() + message := xd.ContainingMessage().FullName() + if prev := r.extensionsByMessage[message][field]; prev != nil { + err := errors.New("extension number %d is already registered on message %v", field, message) + err = amendErrorWithCaller(err, prev, xt) + if !(r == GlobalTypes && ignoreConflict(xd, err)) { + return err + } + } + + if err := r.register("extension", xd, xt); err != nil { + return err + } + if r.extensionsByMessage == nil { + r.extensionsByMessage = make(extensionsByMessage) + } + if r.extensionsByMessage[message] == nil { + r.extensionsByMessage[message] = make(extensionsByNumber) + } + r.extensionsByMessage[message][field] = xt + r.numExtensions++ + return nil +} + +func (r *Types) register(kind string, desc protoreflect.Descriptor, typ interface{}) error { + name := desc.FullName() + prev := r.typesByName[name] + if prev != nil { + err := errors.New("%v %v is already registered", kind, name) + err = amendErrorWithCaller(err, prev, typ) + if !(r == GlobalTypes && ignoreConflict(desc, err)) { + return err + } + } + if r.typesByName == nil { + r.typesByName = make(typesByName) + } + r.typesByName[name] = typ + return nil +} + +// FindEnumByName looks up an enum by its full name. +// E.g., "google.protobuf.Field.Kind". +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindEnumByName(enum protoreflect.FullName) (protoreflect.EnumType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if v := r.typesByName[enum]; v != nil { + if et, _ := v.(protoreflect.EnumType); et != nil { + return et, nil + } + return nil, errors.New("found wrong type: got %v, want enum", typeName(v)) + } + return nil, NotFound +} + +// FindMessageByName looks up a message by its full name, +// e.g. "google.protobuf.Any". +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindMessageByName(message protoreflect.FullName) (protoreflect.MessageType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if v := r.typesByName[message]; v != nil { + if mt, _ := v.(protoreflect.MessageType); mt != nil { + return mt, nil + } + return nil, errors.New("found wrong type: got %v, want message", typeName(v)) + } + return nil, NotFound +} + +// FindMessageByURL looks up a message by a URL identifier. +// See documentation on google.protobuf.Any.type_url for the URL format. +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindMessageByURL(url string) (protoreflect.MessageType, error) { + // This function is similar to FindMessageByName but + // truncates anything before and including '/' in the URL. + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + message := protoreflect.FullName(url) + if i := strings.LastIndexByte(url, '/'); i >= 0 { + message = message[i+len("/"):] + } + + if v := r.typesByName[message]; v != nil { + if mt, _ := v.(protoreflect.MessageType); mt != nil { + return mt, nil + } + return nil, errors.New("found wrong type: got %v, want message", typeName(v)) + } + return nil, NotFound +} + +// FindExtensionByName looks up a extension field by the field's full name. +// Note that this is the full name of the field as determined by +// where the extension is declared and is unrelated to the full name of the +// message being extended. +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if v := r.typesByName[field]; v != nil { + if xt, _ := v.(protoreflect.ExtensionType); xt != nil { + return xt, nil + } + + // MessageSet extensions are special in that the name of the extension + // is the name of the message type used to extend the MessageSet. + // This naming scheme is used by text and JSON serialization. + // + // This feature is protected by the ProtoLegacy flag since MessageSets + // are a proto1 feature that is long deprecated. + if flags.ProtoLegacy { + if _, ok := v.(protoreflect.MessageType); ok { + field := field.Append(messageset.ExtensionName) + if v := r.typesByName[field]; v != nil { + if xt, _ := v.(protoreflect.ExtensionType); xt != nil { + if messageset.IsMessageSetExtension(xt.TypeDescriptor()) { + return xt, nil + } + } + } + } + } + + return nil, errors.New("found wrong type: got %v, want extension", typeName(v)) + } + return nil, NotFound +} + +// FindExtensionByNumber looks up a extension field by the field number +// within some parent message, identified by full name. +// +// This returns (nil, NotFound) if not found. +func (r *Types) FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) { + if r == nil { + return nil, NotFound + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + if xt, ok := r.extensionsByMessage[message][field]; ok { + return xt, nil + } + return nil, NotFound +} + +// NumEnums reports the number of registered enums. +func (r *Types) NumEnums() int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numEnums +} + +// RangeEnums iterates over all registered enums while f returns true. +// Iteration order is undefined. +func (r *Types) RangeEnums(f func(protoreflect.EnumType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, typ := range r.typesByName { + if et, ok := typ.(protoreflect.EnumType); ok { + if !f(et) { + return + } + } + } +} + +// NumMessages reports the number of registered messages. +func (r *Types) NumMessages() int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numMessages +} + +// RangeMessages iterates over all registered messages while f returns true. +// Iteration order is undefined. +func (r *Types) RangeMessages(f func(protoreflect.MessageType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, typ := range r.typesByName { + if mt, ok := typ.(protoreflect.MessageType); ok { + if !f(mt) { + return + } + } + } +} + +// NumExtensions reports the number of registered extensions. +func (r *Types) NumExtensions() int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return r.numExtensions +} + +// RangeExtensions iterates over all registered extensions while f returns true. +// Iteration order is undefined. +func (r *Types) RangeExtensions(f func(protoreflect.ExtensionType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, typ := range r.typesByName { + if xt, ok := typ.(protoreflect.ExtensionType); ok { + if !f(xt) { + return + } + } + } +} + +// NumExtensionsByMessage reports the number of registered extensions for +// a given message type. +func (r *Types) NumExtensionsByMessage(message protoreflect.FullName) int { + if r == nil { + return 0 + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + return len(r.extensionsByMessage[message]) +} + +// RangeExtensionsByMessage iterates over all registered extensions filtered +// by a given message type while f returns true. Iteration order is undefined. +func (r *Types) RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) { + if r == nil { + return + } + if r == GlobalTypes { + globalMutex.RLock() + defer globalMutex.RUnlock() + } + for _, xt := range r.extensionsByMessage[message] { + if !f(xt) { + return + } + } +} + +func typeName(t interface{}) string { + switch t.(type) { + case protoreflect.EnumType: + return "enum" + case protoreflect.MessageType: + return "message" + case protoreflect.ExtensionType: + return "extension" + default: + return fmt.Sprintf("%T", t) + } +} + +func amendErrorWithCaller(err error, prev, curr interface{}) error { + prevPkg := goPackage(prev) + currPkg := goPackage(curr) + if prevPkg == "" || currPkg == "" || prevPkg == currPkg { + return err + } + return errors.New("%s\n\tpreviously from: %q\n\tcurrently from: %q", err, prevPkg, currPkg) +} + +func goPackage(v interface{}) string { + switch d := v.(type) { + case protoreflect.EnumType: + v = d.Descriptor() + case protoreflect.MessageType: + v = d.Descriptor() + case protoreflect.ExtensionType: + v = d.TypeDescriptor() + } + if d, ok := v.(protoreflect.Descriptor); ok { + v = d.ParentFile() + } + if d, ok := v.(interface{ GoPackagePath() string }); ok { + return d.GoPackagePath() + } + return "" +} diff --git a/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go b/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go new file mode 100644 index 0000000..c587276 --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go @@ -0,0 +1,15 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoiface + +type MessageV1 interface { + Reset() + String() string + ProtoMessage() +} + +type ExtensionRangeV1 struct { + Start, End int32 // both inclusive +} diff --git a/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go b/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go new file mode 100644 index 0000000..44cf467 --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go @@ -0,0 +1,168 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoiface contains types referenced or implemented by messages. +// +// WARNING: This package should only be imported by message implementations. +// The functionality found in this package should be accessed through +// higher-level abstractions provided by the proto package. +package protoiface + +import ( + "google.golang.org/protobuf/internal/pragma" + "google.golang.org/protobuf/reflect/protoreflect" +) + +// Methods is a set of optional fast-path implementations of various operations. +type Methods = struct { + pragma.NoUnkeyedLiterals + + // Flags indicate support for optional features. + Flags SupportFlags + + // Size returns the size in bytes of the wire-format encoding of a message. + // Marshal must be provided if a custom Size is provided. + Size func(SizeInput) SizeOutput + + // Marshal formats a message in the wire-format encoding to the provided buffer. + // Size should be provided if a custom Marshal is provided. + // It must not return an error for a partial message. + Marshal func(MarshalInput) (MarshalOutput, error) + + // Unmarshal parses the wire-format encoding and merges the result into a message. + // It must not reset the target message or return an error for a partial message. + Unmarshal func(UnmarshalInput) (UnmarshalOutput, error) + + // Merge merges the contents of a source message into a destination message. + Merge func(MergeInput) MergeOutput + + // CheckInitialized returns an error if any required fields in the message are not set. + CheckInitialized func(CheckInitializedInput) (CheckInitializedOutput, error) +} + +// SupportFlags indicate support for optional features. +type SupportFlags = uint64 + +const ( + // SupportMarshalDeterministic reports whether MarshalOptions.Deterministic is supported. + SupportMarshalDeterministic SupportFlags = 1 << iota + + // SupportUnmarshalDiscardUnknown reports whether UnmarshalOptions.DiscardUnknown is supported. + SupportUnmarshalDiscardUnknown +) + +// SizeInput is input to the Size method. +type SizeInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message + Flags MarshalInputFlags +} + +// SizeOutput is output from the Size method. +type SizeOutput = struct { + pragma.NoUnkeyedLiterals + + Size int +} + +// MarshalInput is input to the Marshal method. +type MarshalInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message + Buf []byte // output is appended to this buffer + Flags MarshalInputFlags +} + +// MarshalOutput is output from the Marshal method. +type MarshalOutput = struct { + pragma.NoUnkeyedLiterals + + Buf []byte // contains marshaled message +} + +// MarshalInputFlags configure the marshaler. +// Most flags correspond to fields in proto.MarshalOptions. +type MarshalInputFlags = uint8 + +const ( + MarshalDeterministic MarshalInputFlags = 1 << iota + MarshalUseCachedSize +) + +// UnmarshalInput is input to the Unmarshal method. +type UnmarshalInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message + Buf []byte // input buffer + Flags UnmarshalInputFlags + Resolver interface { + FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) + FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error) + } + Depth int +} + +// UnmarshalOutput is output from the Unmarshal method. +type UnmarshalOutput = struct { + pragma.NoUnkeyedLiterals + + Flags UnmarshalOutputFlags +} + +// UnmarshalInputFlags configure the unmarshaler. +// Most flags correspond to fields in proto.UnmarshalOptions. +type UnmarshalInputFlags = uint8 + +const ( + UnmarshalDiscardUnknown UnmarshalInputFlags = 1 << iota +) + +// UnmarshalOutputFlags are output from the Unmarshal method. +type UnmarshalOutputFlags = uint8 + +const ( + // UnmarshalInitialized may be set on return if all required fields are known to be set. + // If unset, then it does not necessarily indicate that the message is uninitialized, + // only that its status could not be confirmed. + UnmarshalInitialized UnmarshalOutputFlags = 1 << iota +) + +// MergeInput is input to the Merge method. +type MergeInput = struct { + pragma.NoUnkeyedLiterals + + Source protoreflect.Message + Destination protoreflect.Message +} + +// MergeOutput is output from the Merge method. +type MergeOutput = struct { + pragma.NoUnkeyedLiterals + + Flags MergeOutputFlags +} + +// MergeOutputFlags are output from the Merge method. +type MergeOutputFlags = uint8 + +const ( + // MergeComplete reports whether the merge was performed. + // If unset, the merger must have made no changes to the destination. + MergeComplete MergeOutputFlags = 1 << iota +) + +// CheckInitializedInput is input to the CheckInitialized method. +type CheckInitializedInput = struct { + pragma.NoUnkeyedLiterals + + Message protoreflect.Message +} + +// CheckInitializedOutput is output from the CheckInitialized method. +type CheckInitializedOutput = struct { + pragma.NoUnkeyedLiterals +} diff --git a/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go b/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go new file mode 100644 index 0000000..4a1ab7f --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoimpl/impl.go @@ -0,0 +1,44 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package protoimpl contains the default implementation for messages +// generated by protoc-gen-go. +// +// WARNING: This package should only ever be imported by generated messages. +// The compatibility agreement covers nothing except for functionality needed +// to keep existing generated messages operational. Breakages that occur due +// to unauthorized usages of this package are not the author's responsibility. +package protoimpl + +import ( + "google.golang.org/protobuf/internal/filedesc" + "google.golang.org/protobuf/internal/filetype" + "google.golang.org/protobuf/internal/impl" +) + +// UnsafeEnabled specifies whether package unsafe can be used. +const UnsafeEnabled = impl.UnsafeEnabled + +type ( + // Types used by generated code in init functions. + DescBuilder = filedesc.Builder + TypeBuilder = filetype.Builder + + // Types used by generated code to implement EnumType, MessageType, and ExtensionType. + EnumInfo = impl.EnumInfo + MessageInfo = impl.MessageInfo + ExtensionInfo = impl.ExtensionInfo + + // Types embedded in generated messages. + MessageState = impl.MessageState + SizeCache = impl.SizeCache + WeakFields = impl.WeakFields + UnknownFields = impl.UnknownFields + ExtensionFields = impl.ExtensionFields + ExtensionFieldV1 = impl.ExtensionField + + Pointer = impl.Pointer +) + +var X impl.Export diff --git a/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go b/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go new file mode 100644 index 0000000..a105cb2 --- /dev/null +++ b/vendor/google.golang.org/protobuf/runtime/protoimpl/version.go @@ -0,0 +1,60 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package protoimpl + +import ( + "google.golang.org/protobuf/internal/version" +) + +const ( + // MaxVersion is the maximum supported version for generated .pb.go files. + // It is always the current version of the module. + MaxVersion = version.Minor + + // GenVersion is the runtime version required by generated .pb.go files. + // This is incremented when generated code relies on new functionality + // in the runtime. + GenVersion = 20 + + // MinVersion is the minimum supported version for generated .pb.go files. + // This is incremented when the runtime drops support for old code. + MinVersion = 0 +) + +// EnforceVersion is used by code generated by protoc-gen-go +// to statically enforce minimum and maximum versions of this package. +// A compilation failure implies either that: +// - the runtime package is too old and needs to be updated OR +// - the generated code is too old and needs to be regenerated. +// +// The runtime package can be upgraded by running: +// +// go get google.golang.org/protobuf +// +// The generated code can be regenerated by running: +// +// protoc --go_out=${PROTOC_GEN_GO_ARGS} ${PROTO_FILES} +// +// Example usage by generated code: +// +// const ( +// // Verify that this generated code is sufficiently up-to-date. +// _ = protoimpl.EnforceVersion(genVersion - protoimpl.MinVersion) +// // Verify that runtime/protoimpl is sufficiently up-to-date. +// _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - genVersion) +// ) +// +// The genVersion is the current minor version used to generated the code. +// This compile-time check relies on negative integer overflow of a uint +// being a compilation failure (guaranteed by the Go specification). +type EnforceVersion uint + +// This enforces the following invariant: +// +// MinVersion ≤ GenVersion ≤ MaxVersion +const ( + _ = EnforceVersion(GenVersion - MinVersion) + _ = EnforceVersion(MaxVersion - GenVersion) +) diff --git a/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go new file mode 100644 index 0000000..dac5671 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go @@ -0,0 +1,4350 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/descriptor.proto + +package descriptorpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +type FieldDescriptorProto_Type int32 + +const ( + // 0 is reserved for errors. + // Order is weird for historical reasons. + FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1 + FieldDescriptorProto_TYPE_FLOAT FieldDescriptorProto_Type = 2 + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + FieldDescriptorProto_TYPE_INT64 FieldDescriptorProto_Type = 3 + FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4 + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + FieldDescriptorProto_TYPE_INT32 FieldDescriptorProto_Type = 5 + FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6 + FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7 + FieldDescriptorProto_TYPE_BOOL FieldDescriptorProto_Type = 8 + FieldDescriptorProto_TYPE_STRING FieldDescriptorProto_Type = 9 + // Tag-delimited aggregate. + // Group type is deprecated and not supported in proto3. However, Proto3 + // implementations should still be able to parse the group wire format and + // treat group fields as unknown fields. + FieldDescriptorProto_TYPE_GROUP FieldDescriptorProto_Type = 10 + FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11 // Length-delimited aggregate. + // New in version 2. + FieldDescriptorProto_TYPE_BYTES FieldDescriptorProto_Type = 12 + FieldDescriptorProto_TYPE_UINT32 FieldDescriptorProto_Type = 13 + FieldDescriptorProto_TYPE_ENUM FieldDescriptorProto_Type = 14 + FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15 + FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16 + FieldDescriptorProto_TYPE_SINT32 FieldDescriptorProto_Type = 17 // Uses ZigZag encoding. + FieldDescriptorProto_TYPE_SINT64 FieldDescriptorProto_Type = 18 // Uses ZigZag encoding. +) + +// Enum value maps for FieldDescriptorProto_Type. +var ( + FieldDescriptorProto_Type_name = map[int32]string{ + 1: "TYPE_DOUBLE", + 2: "TYPE_FLOAT", + 3: "TYPE_INT64", + 4: "TYPE_UINT64", + 5: "TYPE_INT32", + 6: "TYPE_FIXED64", + 7: "TYPE_FIXED32", + 8: "TYPE_BOOL", + 9: "TYPE_STRING", + 10: "TYPE_GROUP", + 11: "TYPE_MESSAGE", + 12: "TYPE_BYTES", + 13: "TYPE_UINT32", + 14: "TYPE_ENUM", + 15: "TYPE_SFIXED32", + 16: "TYPE_SFIXED64", + 17: "TYPE_SINT32", + 18: "TYPE_SINT64", + } + FieldDescriptorProto_Type_value = map[string]int32{ + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18, + } +) + +func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type { + p := new(FieldDescriptorProto_Type) + *p = x + return p +} + +func (x FieldDescriptorProto_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldDescriptorProto_Type) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[0].Descriptor() +} + +func (FieldDescriptorProto_Type) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[0] +} + +func (x FieldDescriptorProto_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldDescriptorProto_Type) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldDescriptorProto_Type(num) + return nil +} + +// Deprecated: Use FieldDescriptorProto_Type.Descriptor instead. +func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{4, 0} +} + +type FieldDescriptorProto_Label int32 + +const ( + // 0 is reserved for errors + FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1 + FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2 + FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3 +) + +// Enum value maps for FieldDescriptorProto_Label. +var ( + FieldDescriptorProto_Label_name = map[int32]string{ + 1: "LABEL_OPTIONAL", + 2: "LABEL_REQUIRED", + 3: "LABEL_REPEATED", + } + FieldDescriptorProto_Label_value = map[string]int32{ + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3, + } +) + +func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label { + p := new(FieldDescriptorProto_Label) + *p = x + return p +} + +func (x FieldDescriptorProto_Label) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldDescriptorProto_Label) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[1].Descriptor() +} + +func (FieldDescriptorProto_Label) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[1] +} + +func (x FieldDescriptorProto_Label) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldDescriptorProto_Label) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldDescriptorProto_Label(num) + return nil +} + +// Deprecated: Use FieldDescriptorProto_Label.Descriptor instead. +func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{4, 1} +} + +// Generated classes can be optimized for speed or code size. +type FileOptions_OptimizeMode int32 + +const ( + FileOptions_SPEED FileOptions_OptimizeMode = 1 // Generate complete code for parsing, serialization, + // etc. + FileOptions_CODE_SIZE FileOptions_OptimizeMode = 2 // Use ReflectionOps to implement these methods. + FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3 // Generate code using MessageLite and the lite runtime. +) + +// Enum value maps for FileOptions_OptimizeMode. +var ( + FileOptions_OptimizeMode_name = map[int32]string{ + 1: "SPEED", + 2: "CODE_SIZE", + 3: "LITE_RUNTIME", + } + FileOptions_OptimizeMode_value = map[string]int32{ + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3, + } +) + +func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode { + p := new(FileOptions_OptimizeMode) + *p = x + return p +} + +func (x FileOptions_OptimizeMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FileOptions_OptimizeMode) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[2].Descriptor() +} + +func (FileOptions_OptimizeMode) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[2] +} + +func (x FileOptions_OptimizeMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FileOptions_OptimizeMode) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FileOptions_OptimizeMode(num) + return nil +} + +// Deprecated: Use FileOptions_OptimizeMode.Descriptor instead. +func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10, 0} +} + +type FieldOptions_CType int32 + +const ( + // Default mode. + FieldOptions_STRING FieldOptions_CType = 0 + FieldOptions_CORD FieldOptions_CType = 1 + FieldOptions_STRING_PIECE FieldOptions_CType = 2 +) + +// Enum value maps for FieldOptions_CType. +var ( + FieldOptions_CType_name = map[int32]string{ + 0: "STRING", + 1: "CORD", + 2: "STRING_PIECE", + } + FieldOptions_CType_value = map[string]int32{ + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2, + } +) + +func (x FieldOptions_CType) Enum() *FieldOptions_CType { + p := new(FieldOptions_CType) + *p = x + return p +} + +func (x FieldOptions_CType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldOptions_CType) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[3].Descriptor() +} + +func (FieldOptions_CType) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[3] +} + +func (x FieldOptions_CType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldOptions_CType) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldOptions_CType(num) + return nil +} + +// Deprecated: Use FieldOptions_CType.Descriptor instead. +func (FieldOptions_CType) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 0} +} + +type FieldOptions_JSType int32 + +const ( + // Use the default type. + FieldOptions_JS_NORMAL FieldOptions_JSType = 0 + // Use JavaScript strings. + FieldOptions_JS_STRING FieldOptions_JSType = 1 + // Use JavaScript numbers. + FieldOptions_JS_NUMBER FieldOptions_JSType = 2 +) + +// Enum value maps for FieldOptions_JSType. +var ( + FieldOptions_JSType_name = map[int32]string{ + 0: "JS_NORMAL", + 1: "JS_STRING", + 2: "JS_NUMBER", + } + FieldOptions_JSType_value = map[string]int32{ + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2, + } +) + +func (x FieldOptions_JSType) Enum() *FieldOptions_JSType { + p := new(FieldOptions_JSType) + *p = x + return p +} + +func (x FieldOptions_JSType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldOptions_JSType) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[4].Descriptor() +} + +func (FieldOptions_JSType) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[4] +} + +func (x FieldOptions_JSType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldOptions_JSType) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldOptions_JSType(num) + return nil +} + +// Deprecated: Use FieldOptions_JSType.Descriptor instead. +func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 1} +} + +// If set to RETENTION_SOURCE, the option will be omitted from the binary. +// Note: as of January 2023, support for this is in progress and does not yet +// have an effect (b/264593489). +type FieldOptions_OptionRetention int32 + +const ( + FieldOptions_RETENTION_UNKNOWN FieldOptions_OptionRetention = 0 + FieldOptions_RETENTION_RUNTIME FieldOptions_OptionRetention = 1 + FieldOptions_RETENTION_SOURCE FieldOptions_OptionRetention = 2 +) + +// Enum value maps for FieldOptions_OptionRetention. +var ( + FieldOptions_OptionRetention_name = map[int32]string{ + 0: "RETENTION_UNKNOWN", + 1: "RETENTION_RUNTIME", + 2: "RETENTION_SOURCE", + } + FieldOptions_OptionRetention_value = map[string]int32{ + "RETENTION_UNKNOWN": 0, + "RETENTION_RUNTIME": 1, + "RETENTION_SOURCE": 2, + } +) + +func (x FieldOptions_OptionRetention) Enum() *FieldOptions_OptionRetention { + p := new(FieldOptions_OptionRetention) + *p = x + return p +} + +func (x FieldOptions_OptionRetention) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldOptions_OptionRetention) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[5].Descriptor() +} + +func (FieldOptions_OptionRetention) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[5] +} + +func (x FieldOptions_OptionRetention) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldOptions_OptionRetention) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldOptions_OptionRetention(num) + return nil +} + +// Deprecated: Use FieldOptions_OptionRetention.Descriptor instead. +func (FieldOptions_OptionRetention) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 2} +} + +// This indicates the types of entities that the field may apply to when used +// as an option. If it is unset, then the field may be freely used as an +// option on any kind of entity. Note: as of January 2023, support for this is +// in progress and does not yet have an effect (b/264593489). +type FieldOptions_OptionTargetType int32 + +const ( + FieldOptions_TARGET_TYPE_UNKNOWN FieldOptions_OptionTargetType = 0 + FieldOptions_TARGET_TYPE_FILE FieldOptions_OptionTargetType = 1 + FieldOptions_TARGET_TYPE_EXTENSION_RANGE FieldOptions_OptionTargetType = 2 + FieldOptions_TARGET_TYPE_MESSAGE FieldOptions_OptionTargetType = 3 + FieldOptions_TARGET_TYPE_FIELD FieldOptions_OptionTargetType = 4 + FieldOptions_TARGET_TYPE_ONEOF FieldOptions_OptionTargetType = 5 + FieldOptions_TARGET_TYPE_ENUM FieldOptions_OptionTargetType = 6 + FieldOptions_TARGET_TYPE_ENUM_ENTRY FieldOptions_OptionTargetType = 7 + FieldOptions_TARGET_TYPE_SERVICE FieldOptions_OptionTargetType = 8 + FieldOptions_TARGET_TYPE_METHOD FieldOptions_OptionTargetType = 9 +) + +// Enum value maps for FieldOptions_OptionTargetType. +var ( + FieldOptions_OptionTargetType_name = map[int32]string{ + 0: "TARGET_TYPE_UNKNOWN", + 1: "TARGET_TYPE_FILE", + 2: "TARGET_TYPE_EXTENSION_RANGE", + 3: "TARGET_TYPE_MESSAGE", + 4: "TARGET_TYPE_FIELD", + 5: "TARGET_TYPE_ONEOF", + 6: "TARGET_TYPE_ENUM", + 7: "TARGET_TYPE_ENUM_ENTRY", + 8: "TARGET_TYPE_SERVICE", + 9: "TARGET_TYPE_METHOD", + } + FieldOptions_OptionTargetType_value = map[string]int32{ + "TARGET_TYPE_UNKNOWN": 0, + "TARGET_TYPE_FILE": 1, + "TARGET_TYPE_EXTENSION_RANGE": 2, + "TARGET_TYPE_MESSAGE": 3, + "TARGET_TYPE_FIELD": 4, + "TARGET_TYPE_ONEOF": 5, + "TARGET_TYPE_ENUM": 6, + "TARGET_TYPE_ENUM_ENTRY": 7, + "TARGET_TYPE_SERVICE": 8, + "TARGET_TYPE_METHOD": 9, + } +) + +func (x FieldOptions_OptionTargetType) Enum() *FieldOptions_OptionTargetType { + p := new(FieldOptions_OptionTargetType) + *p = x + return p +} + +func (x FieldOptions_OptionTargetType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FieldOptions_OptionTargetType) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[6].Descriptor() +} + +func (FieldOptions_OptionTargetType) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[6] +} + +func (x FieldOptions_OptionTargetType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *FieldOptions_OptionTargetType) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = FieldOptions_OptionTargetType(num) + return nil +} + +// Deprecated: Use FieldOptions_OptionTargetType.Descriptor instead. +func (FieldOptions_OptionTargetType) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 3} +} + +// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, +// or neither? HTTP based RPC implementation may choose GET verb for safe +// methods, and PUT verb for idempotent methods instead of the default POST. +type MethodOptions_IdempotencyLevel int32 + +const ( + MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0 + MethodOptions_NO_SIDE_EFFECTS MethodOptions_IdempotencyLevel = 1 // implies idempotent + MethodOptions_IDEMPOTENT MethodOptions_IdempotencyLevel = 2 // idempotent, but may have side effects +) + +// Enum value maps for MethodOptions_IdempotencyLevel. +var ( + MethodOptions_IdempotencyLevel_name = map[int32]string{ + 0: "IDEMPOTENCY_UNKNOWN", + 1: "NO_SIDE_EFFECTS", + 2: "IDEMPOTENT", + } + MethodOptions_IdempotencyLevel_value = map[string]int32{ + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2, + } +) + +func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel { + p := new(MethodOptions_IdempotencyLevel) + *p = x + return p +} + +func (x MethodOptions_IdempotencyLevel) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MethodOptions_IdempotencyLevel) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[7].Descriptor() +} + +func (MethodOptions_IdempotencyLevel) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[7] +} + +func (x MethodOptions_IdempotencyLevel) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = MethodOptions_IdempotencyLevel(num) + return nil +} + +// Deprecated: Use MethodOptions_IdempotencyLevel.Descriptor instead. +func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17, 0} +} + +// Represents the identified object's effect on the element in the original +// .proto file. +type GeneratedCodeInfo_Annotation_Semantic int32 + +const ( + // There is no effect or the effect is indescribable. + GeneratedCodeInfo_Annotation_NONE GeneratedCodeInfo_Annotation_Semantic = 0 + // The element is set or otherwise mutated. + GeneratedCodeInfo_Annotation_SET GeneratedCodeInfo_Annotation_Semantic = 1 + // An alias to the element is returned. + GeneratedCodeInfo_Annotation_ALIAS GeneratedCodeInfo_Annotation_Semantic = 2 +) + +// Enum value maps for GeneratedCodeInfo_Annotation_Semantic. +var ( + GeneratedCodeInfo_Annotation_Semantic_name = map[int32]string{ + 0: "NONE", + 1: "SET", + 2: "ALIAS", + } + GeneratedCodeInfo_Annotation_Semantic_value = map[string]int32{ + "NONE": 0, + "SET": 1, + "ALIAS": 2, + } +) + +func (x GeneratedCodeInfo_Annotation_Semantic) Enum() *GeneratedCodeInfo_Annotation_Semantic { + p := new(GeneratedCodeInfo_Annotation_Semantic) + *p = x + return p +} + +func (x GeneratedCodeInfo_Annotation_Semantic) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GeneratedCodeInfo_Annotation_Semantic) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_descriptor_proto_enumTypes[8].Descriptor() +} + +func (GeneratedCodeInfo_Annotation_Semantic) Type() protoreflect.EnumType { + return &file_google_protobuf_descriptor_proto_enumTypes[8] +} + +func (x GeneratedCodeInfo_Annotation_Semantic) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *GeneratedCodeInfo_Annotation_Semantic) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = GeneratedCodeInfo_Annotation_Semantic(num) + return nil +} + +// Deprecated: Use GeneratedCodeInfo_Annotation_Semantic.Descriptor instead. +func (GeneratedCodeInfo_Annotation_Semantic) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{20, 0, 0} +} + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +type FileDescriptorSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` +} + +func (x *FileDescriptorSet) Reset() { + *x = FileDescriptorSet{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileDescriptorSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDescriptorSet) ProtoMessage() {} + +func (x *FileDescriptorSet) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileDescriptorSet.ProtoReflect.Descriptor instead. +func (*FileDescriptorSet) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{0} +} + +func (x *FileDescriptorSet) GetFile() []*FileDescriptorProto { + if x != nil { + return x.File + } + return nil +} + +// Describes a complete .proto file. +type FileDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // file name, relative to root of source tree + Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` // e.g. "foo", "foo.bar", etc. + // Names of files imported by this file. + Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"` + // Indexes of the public imported files in the dependency list above. + PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"` + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"` + // All top-level definitions in this file. + MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"` + EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"` + Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"` + Options *FileOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"` + // The syntax of the proto file. + // The supported values are "proto2", "proto3", and "editions". + // + // If `edition` is present, this value must be "editions". + Syntax *string `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"` + // The edition of the proto file, which is an opaque string. + Edition *string `protobuf:"bytes,13,opt,name=edition" json:"edition,omitempty"` +} + +func (x *FileDescriptorProto) Reset() { + *x = FileDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileDescriptorProto) ProtoMessage() {} + +func (x *FileDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileDescriptorProto.ProtoReflect.Descriptor instead. +func (*FileDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{1} +} + +func (x *FileDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *FileDescriptorProto) GetPackage() string { + if x != nil && x.Package != nil { + return *x.Package + } + return "" +} + +func (x *FileDescriptorProto) GetDependency() []string { + if x != nil { + return x.Dependency + } + return nil +} + +func (x *FileDescriptorProto) GetPublicDependency() []int32 { + if x != nil { + return x.PublicDependency + } + return nil +} + +func (x *FileDescriptorProto) GetWeakDependency() []int32 { + if x != nil { + return x.WeakDependency + } + return nil +} + +func (x *FileDescriptorProto) GetMessageType() []*DescriptorProto { + if x != nil { + return x.MessageType + } + return nil +} + +func (x *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto { + if x != nil { + return x.EnumType + } + return nil +} + +func (x *FileDescriptorProto) GetService() []*ServiceDescriptorProto { + if x != nil { + return x.Service + } + return nil +} + +func (x *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { + if x != nil { + return x.Extension + } + return nil +} + +func (x *FileDescriptorProto) GetOptions() *FileOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo { + if x != nil { + return x.SourceCodeInfo + } + return nil +} + +func (x *FileDescriptorProto) GetSyntax() string { + if x != nil && x.Syntax != nil { + return *x.Syntax + } + return "" +} + +func (x *FileDescriptorProto) GetEdition() string { + if x != nil && x.Edition != nil { + return *x.Edition + } + return "" +} + +// Describes a message type. +type DescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"` + Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"` + NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"` + EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"` + ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"` + OneofDecl []*OneofDescriptorProto `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"` + Options *MessageOptions `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"` + ReservedRange []*DescriptorProto_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` +} + +func (x *DescriptorProto) Reset() { + *x = DescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptorProto) ProtoMessage() {} + +func (x *DescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptorProto.ProtoReflect.Descriptor instead. +func (*DescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{2} +} + +func (x *DescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *DescriptorProto) GetField() []*FieldDescriptorProto { + if x != nil { + return x.Field + } + return nil +} + +func (x *DescriptorProto) GetExtension() []*FieldDescriptorProto { + if x != nil { + return x.Extension + } + return nil +} + +func (x *DescriptorProto) GetNestedType() []*DescriptorProto { + if x != nil { + return x.NestedType + } + return nil +} + +func (x *DescriptorProto) GetEnumType() []*EnumDescriptorProto { + if x != nil { + return x.EnumType + } + return nil +} + +func (x *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange { + if x != nil { + return x.ExtensionRange + } + return nil +} + +func (x *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto { + if x != nil { + return x.OneofDecl + } + return nil +} + +func (x *DescriptorProto) GetOptions() *MessageOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange { + if x != nil { + return x.ReservedRange + } + return nil +} + +func (x *DescriptorProto) GetReservedName() []string { + if x != nil { + return x.ReservedName + } + return nil +} + +type ExtensionRangeOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +func (x *ExtensionRangeOptions) Reset() { + *x = ExtensionRangeOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExtensionRangeOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExtensionRangeOptions) ProtoMessage() {} + +func (x *ExtensionRangeOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExtensionRangeOptions.ProtoReflect.Descriptor instead. +func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{3} +} + +func (x *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +// Describes a field within a message. +type FieldDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Number *int32 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"` + Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"` + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"` + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"` + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"` + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"` + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"` + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + JsonName *string `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"` + Options *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"` + // If true, this is a proto3 "optional". When a proto3 field is optional, it + // tracks presence regardless of field type. + // + // When proto3_optional is true, this field must be belong to a oneof to + // signal to old proto3 clients that presence is tracked for this field. This + // oneof is known as a "synthetic" oneof, and this field must be its sole + // member (each proto3 optional field gets its own synthetic oneof). Synthetic + // oneofs exist in the descriptor only, and do not generate any API. Synthetic + // oneofs must be ordered after all "real" oneofs. + // + // For message fields, proto3_optional doesn't create any semantic change, + // since non-repeated message fields always track presence. However it still + // indicates the semantic detail of whether the user wrote "optional" or not. + // This can be useful for round-tripping the .proto file. For consistency we + // give message fields a synthetic oneof also, even though it is not required + // to track presence. This is especially important because the parser can't + // tell if a field is a message or an enum, so it must always create a + // synthetic oneof. + // + // Proto2 optional fields do not set this flag, because they already indicate + // optional with `LABEL_OPTIONAL`. + Proto3Optional *bool `protobuf:"varint,17,opt,name=proto3_optional,json=proto3Optional" json:"proto3_optional,omitempty"` +} + +func (x *FieldDescriptorProto) Reset() { + *x = FieldDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FieldDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldDescriptorProto) ProtoMessage() {} + +func (x *FieldDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldDescriptorProto.ProtoReflect.Descriptor instead. +func (*FieldDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{4} +} + +func (x *FieldDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *FieldDescriptorProto) GetNumber() int32 { + if x != nil && x.Number != nil { + return *x.Number + } + return 0 +} + +func (x *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label { + if x != nil && x.Label != nil { + return *x.Label + } + return FieldDescriptorProto_LABEL_OPTIONAL +} + +func (x *FieldDescriptorProto) GetType() FieldDescriptorProto_Type { + if x != nil && x.Type != nil { + return *x.Type + } + return FieldDescriptorProto_TYPE_DOUBLE +} + +func (x *FieldDescriptorProto) GetTypeName() string { + if x != nil && x.TypeName != nil { + return *x.TypeName + } + return "" +} + +func (x *FieldDescriptorProto) GetExtendee() string { + if x != nil && x.Extendee != nil { + return *x.Extendee + } + return "" +} + +func (x *FieldDescriptorProto) GetDefaultValue() string { + if x != nil && x.DefaultValue != nil { + return *x.DefaultValue + } + return "" +} + +func (x *FieldDescriptorProto) GetOneofIndex() int32 { + if x != nil && x.OneofIndex != nil { + return *x.OneofIndex + } + return 0 +} + +func (x *FieldDescriptorProto) GetJsonName() string { + if x != nil && x.JsonName != nil { + return *x.JsonName + } + return "" +} + +func (x *FieldDescriptorProto) GetOptions() *FieldOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *FieldDescriptorProto) GetProto3Optional() bool { + if x != nil && x.Proto3Optional != nil { + return *x.Proto3Optional + } + return false +} + +// Describes a oneof. +type OneofDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"` +} + +func (x *OneofDescriptorProto) Reset() { + *x = OneofDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OneofDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OneofDescriptorProto) ProtoMessage() {} + +func (x *OneofDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OneofDescriptorProto.ProtoReflect.Descriptor instead. +func (*OneofDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{5} +} + +func (x *OneofDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *OneofDescriptorProto) GetOptions() *OneofOptions { + if x != nil { + return x.Options + } + return nil +} + +// Describes an enum type. +type EnumDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` + Options *EnumOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` + // Range of reserved numeric values. Reserved numeric values may not be used + // by enum values in the same enum declaration. Reserved ranges may not + // overlap. + ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"` + // Reserved enum value names, which may not be reused. A given name may only + // be reserved once. + ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"` +} + +func (x *EnumDescriptorProto) Reset() { + *x = EnumDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumDescriptorProto) ProtoMessage() {} + +func (x *EnumDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumDescriptorProto.ProtoReflect.Descriptor instead. +func (*EnumDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{6} +} + +func (x *EnumDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto { + if x != nil { + return x.Value + } + return nil +} + +func (x *EnumDescriptorProto) GetOptions() *EnumOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *EnumDescriptorProto) GetReservedRange() []*EnumDescriptorProto_EnumReservedRange { + if x != nil { + return x.ReservedRange + } + return nil +} + +func (x *EnumDescriptorProto) GetReservedName() []string { + if x != nil { + return x.ReservedName + } + return nil +} + +// Describes a value within an enum. +type EnumValueDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Number *int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"` + Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` +} + +func (x *EnumValueDescriptorProto) Reset() { + *x = EnumValueDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumValueDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValueDescriptorProto) ProtoMessage() {} + +func (x *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumValueDescriptorProto.ProtoReflect.Descriptor instead. +func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{7} +} + +func (x *EnumValueDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *EnumValueDescriptorProto) GetNumber() int32 { + if x != nil && x.Number != nil { + return *x.Number + } + return 0 +} + +func (x *EnumValueDescriptorProto) GetOptions() *EnumValueOptions { + if x != nil { + return x.Options + } + return nil +} + +// Describes a service. +type ServiceDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"` + Options *ServiceOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` +} + +func (x *ServiceDescriptorProto) Reset() { + *x = ServiceDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceDescriptorProto) ProtoMessage() {} + +func (x *ServiceDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServiceDescriptorProto.ProtoReflect.Descriptor instead. +func (*ServiceDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{8} +} + +func (x *ServiceDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto { + if x != nil { + return x.Method + } + return nil +} + +func (x *ServiceDescriptorProto) GetOptions() *ServiceOptions { + if x != nil { + return x.Options + } + return nil +} + +// Describes a method of a service. +type MethodDescriptorProto struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + InputType *string `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"` + OutputType *string `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"` + Options *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"` + // Identifies if client streams multiple client messages + ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"` + // Identifies if server streams multiple server messages + ServerStreaming *bool `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"` +} + +// Default values for MethodDescriptorProto fields. +const ( + Default_MethodDescriptorProto_ClientStreaming = bool(false) + Default_MethodDescriptorProto_ServerStreaming = bool(false) +) + +func (x *MethodDescriptorProto) Reset() { + *x = MethodDescriptorProto{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MethodDescriptorProto) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodDescriptorProto) ProtoMessage() {} + +func (x *MethodDescriptorProto) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MethodDescriptorProto.ProtoReflect.Descriptor instead. +func (*MethodDescriptorProto) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{9} +} + +func (x *MethodDescriptorProto) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *MethodDescriptorProto) GetInputType() string { + if x != nil && x.InputType != nil { + return *x.InputType + } + return "" +} + +func (x *MethodDescriptorProto) GetOutputType() string { + if x != nil && x.OutputType != nil { + return *x.OutputType + } + return "" +} + +func (x *MethodDescriptorProto) GetOptions() *MethodOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *MethodDescriptorProto) GetClientStreaming() bool { + if x != nil && x.ClientStreaming != nil { + return *x.ClientStreaming + } + return Default_MethodDescriptorProto_ClientStreaming +} + +func (x *MethodDescriptorProto) GetServerStreaming() bool { + if x != nil && x.ServerStreaming != nil { + return *x.ServerStreaming + } + return Default_MethodDescriptorProto_ServerStreaming +} + +type FileOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"` + // Controls the name of the wrapper Java class generated for the .proto file. + // That class will always contain the .proto file's getDescriptor() method as + // well as any top-level extensions defined in the .proto file. + // If java_multiple_files is disabled, then all the other classes from the + // .proto file will be nested inside the single wrapper outer class. + JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"` + // If enabled, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the wrapper class + // named by java_outer_classname. However, the wrapper class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"` + // This option does nothing. + // + // Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. + JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + JavaStringCheckUtf8 *bool `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"` + OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"` + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"` + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"` + JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"` + PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"` + PhpGenericServices *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"` + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=1" json:"cc_enable_arenas,omitempty"` + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"` + // Namespace for generated classes; defaults to the package. + CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"` + // By default Swift generators will take the proto package and CamelCase it + // replacing '.' with underscore and use that to prefix the types/symbols + // defined. When this options is provided, they will use this value instead + // to prefix the types/symbols defined. + SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"` + // Sets the php class prefix which is prepended to all php generated classes + // from this .proto. Default is empty. + PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"` + // Use this option to change the namespace of php generated classes. Default + // is empty. When this option is empty, the package name will be used for + // determining the namespace. + PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"` + // Use this option to change the namespace of php generated metadata classes. + // Default is empty. When this option is empty, the proto file name will be + // used for determining the namespace. + PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"` + // Use this option to change the package of ruby generated classes. Default + // is empty. When this option is not set, the package name will be used for + // determining the ruby package. + RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"` + // The parser stores options it doesn't recognize here. + // See the documentation for the "Options" section above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for FileOptions fields. +const ( + Default_FileOptions_JavaMultipleFiles = bool(false) + Default_FileOptions_JavaStringCheckUtf8 = bool(false) + Default_FileOptions_OptimizeFor = FileOptions_SPEED + Default_FileOptions_CcGenericServices = bool(false) + Default_FileOptions_JavaGenericServices = bool(false) + Default_FileOptions_PyGenericServices = bool(false) + Default_FileOptions_PhpGenericServices = bool(false) + Default_FileOptions_Deprecated = bool(false) + Default_FileOptions_CcEnableArenas = bool(true) +) + +func (x *FileOptions) Reset() { + *x = FileOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileOptions) ProtoMessage() {} + +func (x *FileOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileOptions.ProtoReflect.Descriptor instead. +func (*FileOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{10} +} + +func (x *FileOptions) GetJavaPackage() string { + if x != nil && x.JavaPackage != nil { + return *x.JavaPackage + } + return "" +} + +func (x *FileOptions) GetJavaOuterClassname() string { + if x != nil && x.JavaOuterClassname != nil { + return *x.JavaOuterClassname + } + return "" +} + +func (x *FileOptions) GetJavaMultipleFiles() bool { + if x != nil && x.JavaMultipleFiles != nil { + return *x.JavaMultipleFiles + } + return Default_FileOptions_JavaMultipleFiles +} + +// Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. +func (x *FileOptions) GetJavaGenerateEqualsAndHash() bool { + if x != nil && x.JavaGenerateEqualsAndHash != nil { + return *x.JavaGenerateEqualsAndHash + } + return false +} + +func (x *FileOptions) GetJavaStringCheckUtf8() bool { + if x != nil && x.JavaStringCheckUtf8 != nil { + return *x.JavaStringCheckUtf8 + } + return Default_FileOptions_JavaStringCheckUtf8 +} + +func (x *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode { + if x != nil && x.OptimizeFor != nil { + return *x.OptimizeFor + } + return Default_FileOptions_OptimizeFor +} + +func (x *FileOptions) GetGoPackage() string { + if x != nil && x.GoPackage != nil { + return *x.GoPackage + } + return "" +} + +func (x *FileOptions) GetCcGenericServices() bool { + if x != nil && x.CcGenericServices != nil { + return *x.CcGenericServices + } + return Default_FileOptions_CcGenericServices +} + +func (x *FileOptions) GetJavaGenericServices() bool { + if x != nil && x.JavaGenericServices != nil { + return *x.JavaGenericServices + } + return Default_FileOptions_JavaGenericServices +} + +func (x *FileOptions) GetPyGenericServices() bool { + if x != nil && x.PyGenericServices != nil { + return *x.PyGenericServices + } + return Default_FileOptions_PyGenericServices +} + +func (x *FileOptions) GetPhpGenericServices() bool { + if x != nil && x.PhpGenericServices != nil { + return *x.PhpGenericServices + } + return Default_FileOptions_PhpGenericServices +} + +func (x *FileOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_FileOptions_Deprecated +} + +func (x *FileOptions) GetCcEnableArenas() bool { + if x != nil && x.CcEnableArenas != nil { + return *x.CcEnableArenas + } + return Default_FileOptions_CcEnableArenas +} + +func (x *FileOptions) GetObjcClassPrefix() string { + if x != nil && x.ObjcClassPrefix != nil { + return *x.ObjcClassPrefix + } + return "" +} + +func (x *FileOptions) GetCsharpNamespace() string { + if x != nil && x.CsharpNamespace != nil { + return *x.CsharpNamespace + } + return "" +} + +func (x *FileOptions) GetSwiftPrefix() string { + if x != nil && x.SwiftPrefix != nil { + return *x.SwiftPrefix + } + return "" +} + +func (x *FileOptions) GetPhpClassPrefix() string { + if x != nil && x.PhpClassPrefix != nil { + return *x.PhpClassPrefix + } + return "" +} + +func (x *FileOptions) GetPhpNamespace() string { + if x != nil && x.PhpNamespace != nil { + return *x.PhpNamespace + } + return "" +} + +func (x *FileOptions) GetPhpMetadataNamespace() string { + if x != nil && x.PhpMetadataNamespace != nil { + return *x.PhpMetadataNamespace + } + return "" +} + +func (x *FileOptions) GetRubyPackage() string { + if x != nil && x.RubyPackage != nil { + return *x.RubyPackage + } + return "" +} + +func (x *FileOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type MessageOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"` + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,json=noStandardDescriptorAccessor,def=0" json:"no_standard_descriptor_accessor,omitempty"` + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + // + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // + // map map_field = 1; + // + // The parsed descriptor looks like: + // + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementations still need to work as + // if the field is a repeated message field. + MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"` + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // + // This should only be used as a temporary measure against broken builds due + // to the change in behavior for JSON field name conflicts. + // + // TODO(b/261750190) This is legacy behavior we plan to remove once downstream + // teams have had time to migrate. + // + // Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. + DeprecatedLegacyJsonFieldConflicts *bool `protobuf:"varint,11,opt,name=deprecated_legacy_json_field_conflicts,json=deprecatedLegacyJsonFieldConflicts" json:"deprecated_legacy_json_field_conflicts,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for MessageOptions fields. +const ( + Default_MessageOptions_MessageSetWireFormat = bool(false) + Default_MessageOptions_NoStandardDescriptorAccessor = bool(false) + Default_MessageOptions_Deprecated = bool(false) +) + +func (x *MessageOptions) Reset() { + *x = MessageOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MessageOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageOptions) ProtoMessage() {} + +func (x *MessageOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead. +func (*MessageOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{11} +} + +func (x *MessageOptions) GetMessageSetWireFormat() bool { + if x != nil && x.MessageSetWireFormat != nil { + return *x.MessageSetWireFormat + } + return Default_MessageOptions_MessageSetWireFormat +} + +func (x *MessageOptions) GetNoStandardDescriptorAccessor() bool { + if x != nil && x.NoStandardDescriptorAccessor != nil { + return *x.NoStandardDescriptorAccessor + } + return Default_MessageOptions_NoStandardDescriptorAccessor +} + +func (x *MessageOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_MessageOptions_Deprecated +} + +func (x *MessageOptions) GetMapEntry() bool { + if x != nil && x.MapEntry != nil { + return *x.MapEntry + } + return false +} + +// Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. +func (x *MessageOptions) GetDeprecatedLegacyJsonFieldConflicts() bool { + if x != nil && x.DeprecatedLegacyJsonFieldConflicts != nil { + return *x.DeprecatedLegacyJsonFieldConflicts + } + return false +} + +func (x *MessageOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type FieldOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is not yet implemented in the open source + // release -- sorry, we'll try to include it in a future version! + Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"` + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"` + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + // is represented as JavaScript string, which avoids loss of precision that + // can happen when a large value is converted to a floating point JavaScript. + // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + // use the JavaScript "number" type. The behavior of the default option + // JS_NORMAL is implementation dependent. + // + // This option is an enum to permit additional types to be added, e.g. + // goog.math.Integer. + Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"` + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outer message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + // + // As of May 2022, lazy verifies the contents of the byte stream during + // parsing. An invalid byte stream will cause the overall parsing to fail. + Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"` + // unverified_lazy does no correctness checks on the byte stream. This should + // only be used where lazy with verification is prohibitive for performance + // reasons. + UnverifiedLazy *bool `protobuf:"varint,15,opt,name=unverified_lazy,json=unverifiedLazy,def=0" json:"unverified_lazy,omitempty"` + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // For Google-internal migration only. Do not use. + Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"` + // Indicate that the field value should not be printed out when using debug + // formats, e.g. when the field contains sensitive credentials. + DebugRedact *bool `protobuf:"varint,16,opt,name=debug_redact,json=debugRedact,def=0" json:"debug_redact,omitempty"` + Retention *FieldOptions_OptionRetention `protobuf:"varint,17,opt,name=retention,enum=google.protobuf.FieldOptions_OptionRetention" json:"retention,omitempty"` + Target *FieldOptions_OptionTargetType `protobuf:"varint,18,opt,name=target,enum=google.protobuf.FieldOptions_OptionTargetType" json:"target,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for FieldOptions fields. +const ( + Default_FieldOptions_Ctype = FieldOptions_STRING + Default_FieldOptions_Jstype = FieldOptions_JS_NORMAL + Default_FieldOptions_Lazy = bool(false) + Default_FieldOptions_UnverifiedLazy = bool(false) + Default_FieldOptions_Deprecated = bool(false) + Default_FieldOptions_Weak = bool(false) + Default_FieldOptions_DebugRedact = bool(false) +) + +func (x *FieldOptions) Reset() { + *x = FieldOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FieldOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldOptions) ProtoMessage() {} + +func (x *FieldOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldOptions.ProtoReflect.Descriptor instead. +func (*FieldOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12} +} + +func (x *FieldOptions) GetCtype() FieldOptions_CType { + if x != nil && x.Ctype != nil { + return *x.Ctype + } + return Default_FieldOptions_Ctype +} + +func (x *FieldOptions) GetPacked() bool { + if x != nil && x.Packed != nil { + return *x.Packed + } + return false +} + +func (x *FieldOptions) GetJstype() FieldOptions_JSType { + if x != nil && x.Jstype != nil { + return *x.Jstype + } + return Default_FieldOptions_Jstype +} + +func (x *FieldOptions) GetLazy() bool { + if x != nil && x.Lazy != nil { + return *x.Lazy + } + return Default_FieldOptions_Lazy +} + +func (x *FieldOptions) GetUnverifiedLazy() bool { + if x != nil && x.UnverifiedLazy != nil { + return *x.UnverifiedLazy + } + return Default_FieldOptions_UnverifiedLazy +} + +func (x *FieldOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_FieldOptions_Deprecated +} + +func (x *FieldOptions) GetWeak() bool { + if x != nil && x.Weak != nil { + return *x.Weak + } + return Default_FieldOptions_Weak +} + +func (x *FieldOptions) GetDebugRedact() bool { + if x != nil && x.DebugRedact != nil { + return *x.DebugRedact + } + return Default_FieldOptions_DebugRedact +} + +func (x *FieldOptions) GetRetention() FieldOptions_OptionRetention { + if x != nil && x.Retention != nil { + return *x.Retention + } + return FieldOptions_RETENTION_UNKNOWN +} + +func (x *FieldOptions) GetTarget() FieldOptions_OptionTargetType { + if x != nil && x.Target != nil { + return *x.Target + } + return FieldOptions_TARGET_TYPE_UNKNOWN +} + +func (x *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type OneofOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +func (x *OneofOptions) Reset() { + *x = OneofOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OneofOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OneofOptions) ProtoMessage() {} + +func (x *OneofOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead. +func (*OneofOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{13} +} + +func (x *OneofOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type EnumOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Set this option to true to allow mapping different tag names to the same + // value. + AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"` + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // Enable the legacy handling of JSON field name conflicts. This lowercases + // and strips underscored from the fields before comparison in proto3 only. + // The new behavior takes `json_name` into account and applies to proto2 as + // well. + // TODO(b/261750190) Remove this legacy behavior once downstream teams have + // had time to migrate. + // + // Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. + DeprecatedLegacyJsonFieldConflicts *bool `protobuf:"varint,6,opt,name=deprecated_legacy_json_field_conflicts,json=deprecatedLegacyJsonFieldConflicts" json:"deprecated_legacy_json_field_conflicts,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for EnumOptions fields. +const ( + Default_EnumOptions_Deprecated = bool(false) +) + +func (x *EnumOptions) Reset() { + *x = EnumOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumOptions) ProtoMessage() {} + +func (x *EnumOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumOptions.ProtoReflect.Descriptor instead. +func (*EnumOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{14} +} + +func (x *EnumOptions) GetAllowAlias() bool { + if x != nil && x.AllowAlias != nil { + return *x.AllowAlias + } + return false +} + +func (x *EnumOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_EnumOptions_Deprecated +} + +// Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. +func (x *EnumOptions) GetDeprecatedLegacyJsonFieldConflicts() bool { + if x != nil && x.DeprecatedLegacyJsonFieldConflicts != nil { + return *x.DeprecatedLegacyJsonFieldConflicts + } + return false +} + +func (x *EnumOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type EnumValueOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for EnumValueOptions fields. +const ( + Default_EnumValueOptions_Deprecated = bool(false) +) + +func (x *EnumValueOptions) Reset() { + *x = EnumValueOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumValueOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValueOptions) ProtoMessage() {} + +func (x *EnumValueOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumValueOptions.ProtoReflect.Descriptor instead. +func (*EnumValueOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{15} +} + +func (x *EnumValueOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_EnumValueOptions_Deprecated +} + +func (x *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type ServiceOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for ServiceOptions fields. +const ( + Default_ServiceOptions_Deprecated = bool(false) +) + +func (x *ServiceOptions) Reset() { + *x = ServiceOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceOptions) ProtoMessage() {} + +func (x *ServiceOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServiceOptions.ProtoReflect.Descriptor instead. +func (*ServiceOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{16} +} + +func (x *ServiceOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_ServiceOptions_Deprecated +} + +func (x *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +type MethodOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + extensionFields protoimpl.ExtensionFields + + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"` + IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"` + // The parser stores options it doesn't recognize here. See above. + UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` +} + +// Default values for MethodOptions fields. +const ( + Default_MethodOptions_Deprecated = bool(false) + Default_MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN +) + +func (x *MethodOptions) Reset() { + *x = MethodOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MethodOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MethodOptions) ProtoMessage() {} + +func (x *MethodOptions) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead. +func (*MethodOptions) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{17} +} + +func (x *MethodOptions) GetDeprecated() bool { + if x != nil && x.Deprecated != nil { + return *x.Deprecated + } + return Default_MethodOptions_Deprecated +} + +func (x *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel { + if x != nil && x.IdempotencyLevel != nil { + return *x.IdempotencyLevel + } + return Default_MethodOptions_IdempotencyLevel +} + +func (x *MethodOptions) GetUninterpretedOption() []*UninterpretedOption { + if x != nil { + return x.UninterpretedOption + } + return nil +} + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +type UninterpretedOption struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"` + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"` + PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"` + NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"` + DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"` + StringValue []byte `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` + AggregateValue *string `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"` +} + +func (x *UninterpretedOption) Reset() { + *x = UninterpretedOption{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UninterpretedOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UninterpretedOption) ProtoMessage() {} + +func (x *UninterpretedOption) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UninterpretedOption.ProtoReflect.Descriptor instead. +func (*UninterpretedOption) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{18} +} + +func (x *UninterpretedOption) GetName() []*UninterpretedOption_NamePart { + if x != nil { + return x.Name + } + return nil +} + +func (x *UninterpretedOption) GetIdentifierValue() string { + if x != nil && x.IdentifierValue != nil { + return *x.IdentifierValue + } + return "" +} + +func (x *UninterpretedOption) GetPositiveIntValue() uint64 { + if x != nil && x.PositiveIntValue != nil { + return *x.PositiveIntValue + } + return 0 +} + +func (x *UninterpretedOption) GetNegativeIntValue() int64 { + if x != nil && x.NegativeIntValue != nil { + return *x.NegativeIntValue + } + return 0 +} + +func (x *UninterpretedOption) GetDoubleValue() float64 { + if x != nil && x.DoubleValue != nil { + return *x.DoubleValue + } + return 0 +} + +func (x *UninterpretedOption) GetStringValue() []byte { + if x != nil { + return x.StringValue + } + return nil +} + +func (x *UninterpretedOption) GetAggregateValue() string { + if x != nil && x.AggregateValue != nil { + return *x.AggregateValue + } + return "" +} + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +type SourceCodeInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // + // message Foo { + // optional string foo = 1; + // } + // + // Let's look at just the field definition: + // + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // + // We have the following locations: + // + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendant. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + Location []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"` +} + +func (x *SourceCodeInfo) Reset() { + *x = SourceCodeInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceCodeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceCodeInfo) ProtoMessage() {} + +func (x *SourceCodeInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceCodeInfo.ProtoReflect.Descriptor instead. +func (*SourceCodeInfo) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{19} +} + +func (x *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location { + if x != nil { + return x.Location + } + return nil +} + +// Describes the relationship between generated code and its original source +// file. A GeneratedCodeInfo message is associated with only one generated +// source file, but may contain references to different source .proto files. +type GeneratedCodeInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // An Annotation connects some span of text in generated code to an element + // of its generating .proto file. + Annotation []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"` +} + +func (x *GeneratedCodeInfo) Reset() { + *x = GeneratedCodeInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GeneratedCodeInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GeneratedCodeInfo) ProtoMessage() {} + +func (x *GeneratedCodeInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GeneratedCodeInfo.ProtoReflect.Descriptor instead. +func (*GeneratedCodeInfo) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{20} +} + +func (x *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation { + if x != nil { + return x.Annotation + } + return nil +} + +type DescriptorProto_ExtensionRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive. + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // Exclusive. + Options *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` +} + +func (x *DescriptorProto_ExtensionRange) Reset() { + *x = DescriptorProto_ExtensionRange{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptorProto_ExtensionRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptorProto_ExtensionRange) ProtoMessage() {} + +func (x *DescriptorProto_ExtensionRange) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptorProto_ExtensionRange.ProtoReflect.Descriptor instead. +func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *DescriptorProto_ExtensionRange) GetStart() int32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *DescriptorProto_ExtensionRange) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +func (x *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions { + if x != nil { + return x.Options + } + return nil +} + +// Range of reserved tag numbers. Reserved tag numbers may not be used by +// fields or extension ranges in the same message. Reserved ranges may +// not overlap. +type DescriptorProto_ReservedRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive. + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // Exclusive. +} + +func (x *DescriptorProto_ReservedRange) Reset() { + *x = DescriptorProto_ReservedRange{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptorProto_ReservedRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptorProto_ReservedRange) ProtoMessage() {} + +func (x *DescriptorProto_ReservedRange) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptorProto_ReservedRange.ProtoReflect.Descriptor instead. +func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *DescriptorProto_ReservedRange) GetStart() int32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *DescriptorProto_ReservedRange) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +// Range of reserved numeric values. Reserved values may not be used by +// entries in the same enum. Reserved ranges may not overlap. +// +// Note that this is distinct from DescriptorProto.ReservedRange in that it +// is inclusive such that it can appropriately represent the entire int32 +// domain. +type EnumDescriptorProto_EnumReservedRange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // Inclusive. + End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // Inclusive. +} + +func (x *EnumDescriptorProto_EnumReservedRange) Reset() { + *x = EnumDescriptorProto_EnumReservedRange{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumDescriptorProto_EnumReservedRange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage() {} + +func (x *EnumDescriptorProto_EnumReservedRange) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumDescriptorProto_EnumReservedRange.ProtoReflect.Descriptor instead. +func (*EnumDescriptorProto_EnumReservedRange) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{6, 0} +} + +func (x *EnumDescriptorProto_EnumReservedRange) GetStart() int32 { + if x != nil && x.Start != nil { + return *x.Start + } + return 0 +} + +func (x *EnumDescriptorProto_EnumReservedRange) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +// The name of the uninterpreted option. Each string represents a segment in +// a dot-separated name. is_extension is true iff a segment represents an +// extension (denoted with parentheses in options specs in .proto files). +// E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents +// "foo.(bar.baz).moo". +type UninterpretedOption_NamePart struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NamePart *string `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"` + IsExtension *bool `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"` +} + +func (x *UninterpretedOption_NamePart) Reset() { + *x = UninterpretedOption_NamePart{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UninterpretedOption_NamePart) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UninterpretedOption_NamePart) ProtoMessage() {} + +func (x *UninterpretedOption_NamePart) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UninterpretedOption_NamePart.ProtoReflect.Descriptor instead. +func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{18, 0} +} + +func (x *UninterpretedOption_NamePart) GetNamePart() string { + if x != nil && x.NamePart != nil { + return *x.NamePart + } + return "" +} + +func (x *UninterpretedOption_NamePart) GetIsExtension() bool { + if x != nil && x.IsExtension != nil { + return *x.IsExtension + } + return false +} + +type SourceCodeInfo_Location struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition occurs. + // For example, this path: + // + // [ 4, 3, 2, 7, 1 ] + // + // refers to: + // + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // + // This is because FileDescriptorProto.message_type has field number 4: + // + // repeated DescriptorProto message_type = 4; + // + // and DescriptorProto.field has field number 2: + // + // repeated FieldDescriptorProto field = 2; + // + // and FieldDescriptorProto.name has field number 1: + // + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // + // [ 4, 3, 2, 7 ] + // + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"` + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to moo. + // // + // // Another line attached to moo. + // optional double moo = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to moo or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + LeadingComments *string `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"` + TrailingComments *string `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"` + LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"` +} + +func (x *SourceCodeInfo_Location) Reset() { + *x = SourceCodeInfo_Location{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceCodeInfo_Location) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceCodeInfo_Location) ProtoMessage() {} + +func (x *SourceCodeInfo_Location) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceCodeInfo_Location.ProtoReflect.Descriptor instead. +func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{19, 0} +} + +func (x *SourceCodeInfo_Location) GetPath() []int32 { + if x != nil { + return x.Path + } + return nil +} + +func (x *SourceCodeInfo_Location) GetSpan() []int32 { + if x != nil { + return x.Span + } + return nil +} + +func (x *SourceCodeInfo_Location) GetLeadingComments() string { + if x != nil && x.LeadingComments != nil { + return *x.LeadingComments + } + return "" +} + +func (x *SourceCodeInfo_Location) GetTrailingComments() string { + if x != nil && x.TrailingComments != nil { + return *x.TrailingComments + } + return "" +} + +func (x *SourceCodeInfo_Location) GetLeadingDetachedComments() []string { + if x != nil { + return x.LeadingDetachedComments + } + return nil +} + +type GeneratedCodeInfo_Annotation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifies the element in the original source .proto file. This field + // is formatted the same as SourceCodeInfo.Location.path. + Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"` + // Identifies the filesystem path to the original source .proto. + SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"` + // Identifies the starting offset in bytes in the generated code + // that relates to the identified object. + Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"` + // Identifies the ending offset in bytes in the generated code that + // relates to the identified object. The end offset should be one past + // the last relevant byte (so the length of the text = end - begin). + End *int32 `protobuf:"varint,4,opt,name=end" json:"end,omitempty"` + Semantic *GeneratedCodeInfo_Annotation_Semantic `protobuf:"varint,5,opt,name=semantic,enum=google.protobuf.GeneratedCodeInfo_Annotation_Semantic" json:"semantic,omitempty"` +} + +func (x *GeneratedCodeInfo_Annotation) Reset() { + *x = GeneratedCodeInfo_Annotation{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_descriptor_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GeneratedCodeInfo_Annotation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} + +func (x *GeneratedCodeInfo_Annotation) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GeneratedCodeInfo_Annotation.ProtoReflect.Descriptor instead. +func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{20, 0} +} + +func (x *GeneratedCodeInfo_Annotation) GetPath() []int32 { + if x != nil { + return x.Path + } + return nil +} + +func (x *GeneratedCodeInfo_Annotation) GetSourceFile() string { + if x != nil && x.SourceFile != nil { + return *x.SourceFile + } + return "" +} + +func (x *GeneratedCodeInfo_Annotation) GetBegin() int32 { + if x != nil && x.Begin != nil { + return *x.Begin + } + return 0 +} + +func (x *GeneratedCodeInfo_Annotation) GetEnd() int32 { + if x != nil && x.End != nil { + return *x.End + } + return 0 +} + +func (x *GeneratedCodeInfo_Annotation) GetSemantic() GeneratedCodeInfo_Annotation_Semantic { + if x != nil && x.Semantic != nil { + return *x.Semantic + } + return GeneratedCodeInfo_Annotation_NONE +} + +var File_google_protobuf_descriptor_proto protoreflect.FileDescriptor + +var file_google_protobuf_descriptor_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x22, 0x4d, 0x0a, 0x11, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x04, 0x66, 0x69, + 0x6c, 0x65, 0x22, 0xfe, 0x04, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x05, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x65, 0x61, 0x6b, 0x5f, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e, + 0x77, 0x65, 0x61, 0x6b, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x43, + 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x08, 0x65, 0x6e, + 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x09, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, + 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x06, 0x0a, 0x0f, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x43, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, + 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x41, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0e, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x44, 0x0a, + 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x18, 0x08, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x44, + 0x65, 0x63, 0x6c, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x55, + 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, + 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, + 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x7a, 0x0a, 0x0e, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x65, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x37, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, + 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, + 0x7c, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xc1, 0x06, + 0x0a, 0x14, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x41, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x05, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x3e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x11, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x22, 0xb6, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, + 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, + 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x03, 0x12, 0x0f, 0x0a, + 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x0e, + 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, + 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, 0x34, 0x10, 0x06, + 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, + 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x10, + 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, + 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, + 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, + 0x47, 0x45, 0x10, 0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x59, 0x54, + 0x45, 0x53, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, + 0x54, 0x33, 0x32, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, + 0x55, 0x4d, 0x10, 0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, + 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x0f, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, 0x34, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x11, 0x12, 0x0f, 0x0a, 0x0b, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x12, 0x22, 0x43, 0x0a, 0x05, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4f, + 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, + 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, + 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, + 0x03, 0x22, 0x63, 0x0a, 0x14, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, + 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x13, 0x45, 0x6e, 0x75, 0x6d, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5d, 0x0a, 0x0e, 0x72, + 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x1a, + 0x3b, 0x0a, 0x11, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, + 0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x83, 0x01, 0x0a, + 0x18, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x16, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x89, 0x02, 0x0a, + 0x15, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x10, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x22, 0x91, 0x09, 0x0a, 0x0b, 0x46, 0x69, 0x6c, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6a, 0x61, 0x76, 0x61, + 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x6a, 0x61, 0x76, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6a, + 0x61, 0x76, 0x61, 0x5f, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6a, 0x61, 0x76, 0x61, 0x4f, + 0x75, 0x74, 0x65, 0x72, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, + 0x13, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x66, + 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x52, 0x11, 0x6a, 0x61, 0x76, 0x61, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x46, + 0x69, 0x6c, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x1d, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x71, 0x75, 0x61, 0x6c, 0x73, 0x5f, 0x61, 0x6e, 0x64, + 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x19, 0x6a, 0x61, 0x76, 0x61, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x71, 0x75, + 0x61, 0x6c, 0x73, 0x41, 0x6e, 0x64, 0x48, 0x61, 0x73, 0x68, 0x12, 0x3a, 0x0a, 0x16, 0x6a, 0x61, + 0x76, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, + 0x75, 0x74, 0x66, 0x38, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x52, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x55, 0x74, 0x66, 0x38, 0x12, 0x53, 0x0a, 0x0c, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, + 0x7a, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6d, + 0x69, 0x7a, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x3a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x52, 0x0b, + 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x46, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x67, + 0x6f, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x67, 0x6f, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x35, 0x0a, 0x13, 0x63, 0x63, + 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x11, + 0x63, 0x63, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x12, 0x39, 0x0a, 0x15, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, + 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, + 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x13, + 0x70, 0x79, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x52, 0x11, 0x70, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x14, 0x70, 0x68, 0x70, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x2a, 0x20, 0x01, 0x28, + 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x12, 0x70, 0x68, 0x70, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0a, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, + 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x63, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x73, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x04, 0x74, + 0x72, 0x75, 0x65, 0x52, 0x0e, 0x63, 0x63, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x72, 0x65, + 0x6e, 0x61, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x62, 0x6a, 0x63, 0x5f, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x6f, 0x62, 0x6a, 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, + 0x29, 0x0a, 0x10, 0x63, 0x73, 0x68, 0x61, 0x72, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x73, 0x68, 0x61, 0x72, + 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x77, + 0x69, 0x66, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x27, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x73, 0x77, 0x69, 0x66, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x28, 0x0a, + 0x10, 0x70, 0x68, 0x70, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x68, 0x70, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x68, 0x70, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x29, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x70, 0x68, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x16, + 0x70, 0x68, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x70, 0x68, + 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x62, 0x79, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x62, 0x79, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, + 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x09, 0x0a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, + 0x44, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x54, + 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x03, 0x2a, 0x09, 0x08, 0xe8, 0x07, + 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x26, 0x10, 0x27, 0x22, 0xbb, 0x03, 0x0a, + 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3c, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x77, + 0x69, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x14, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x4c, 0x0a, + 0x1f, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x5f, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x1c, 0x6e, + 0x6f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, + 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, + 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, + 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4c, + 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, + 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, + 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, + 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0xb7, 0x08, 0x0a, 0x0c, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x54, 0x79, 0x70, 0x65, 0x3a, + 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x52, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x47, 0x0a, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x09, 0x4a, 0x53, + 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x52, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x19, 0x0a, 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x52, 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x12, 0x2e, 0x0a, 0x0f, 0x75, 0x6e, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0e, 0x75, 0x6e, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x19, 0x0a, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, + 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x12, 0x28, 0x0a, 0x0c, + 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0b, 0x64, 0x65, 0x62, 0x75, 0x67, + 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, 0x12, 0x4b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x12, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x58, 0x0a, 0x14, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2f, 0x0a, 0x05, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, + 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, + 0x52, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x50, + 0x49, 0x45, 0x43, 0x45, 0x10, 0x02, 0x22, 0x35, 0x0a, 0x06, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, + 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, + 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x22, 0x55, 0x0a, + 0x0f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x14, + 0x0a, 0x10, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, + 0x43, 0x45, 0x10, 0x02, 0x22, 0x8c, 0x02, 0x0a, 0x10, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x41, 0x52, 0x47, + 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, + 0x4e, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, + 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x4e, 0x45, 0x4f, 0x46, 0x10, 0x05, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x45, 0x4e, 0x54, 0x52, 0x59, + 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x54, + 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, + 0x44, 0x10, 0x09, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, + 0x08, 0x04, 0x10, 0x05, 0x22, 0x73, 0x0a, 0x0c, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, + 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, + 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, + 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x98, 0x02, 0x0a, 0x0b, 0x45, 0x6e, + 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, + 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, + 0x08, 0x05, 0x10, 0x06, 0x22, 0x9e, 0x01, 0x0a, 0x10, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, + 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, + 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, + 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x9c, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, + 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, + 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, + 0x80, 0x80, 0x80, 0x02, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, + 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x71, 0x0a, + 0x11, 0x69, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x65, 0x76, + 0x65, 0x6c, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, + 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x3a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, + 0x4f, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x10, + 0x69, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, + 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, + 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, + 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x50, 0x0a, 0x10, 0x49, 0x64, + 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x17, + 0x0a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x4f, 0x5f, 0x53, 0x49, + 0x44, 0x45, 0x5f, 0x45, 0x46, 0x46, 0x45, 0x43, 0x54, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, + 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x2a, 0x09, 0x08, 0xe8, + 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x9a, 0x03, 0x0a, 0x13, 0x55, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, + 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x69, 0x74, + 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6e, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x75, + 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, + 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x4a, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, + 0x50, 0x61, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, + 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, + 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x02, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x02, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x44, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xce, 0x01, + 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x12, 0x16, 0x0a, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, + 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x65, + 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, + 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, + 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, + 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xd0, + 0x02, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4d, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x1a, 0xeb, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, + 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, + 0x65, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x65, 0x67, 0x69, + 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, + 0x65, 0x6e, 0x64, 0x12, 0x52, 0x0a, 0x08, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x08, 0x73, + 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x22, 0x28, 0x0a, 0x08, 0x53, 0x65, 0x6d, 0x61, 0x6e, + 0x74, 0x69, 0x63, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, + 0x03, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x41, 0x53, 0x10, + 0x02, 0x42, 0x7e, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 0x2d, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, + 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, +} + +var ( + file_google_protobuf_descriptor_proto_rawDescOnce sync.Once + file_google_protobuf_descriptor_proto_rawDescData = file_google_protobuf_descriptor_proto_rawDesc +) + +func file_google_protobuf_descriptor_proto_rawDescGZIP() []byte { + file_google_protobuf_descriptor_proto_rawDescOnce.Do(func() { + file_google_protobuf_descriptor_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_descriptor_proto_rawDescData) + }) + return file_google_protobuf_descriptor_proto_rawDescData +} + +var file_google_protobuf_descriptor_proto_enumTypes = make([]protoimpl.EnumInfo, 9) +var file_google_protobuf_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 27) +var file_google_protobuf_descriptor_proto_goTypes = []interface{}{ + (FieldDescriptorProto_Type)(0), // 0: google.protobuf.FieldDescriptorProto.Type + (FieldDescriptorProto_Label)(0), // 1: google.protobuf.FieldDescriptorProto.Label + (FileOptions_OptimizeMode)(0), // 2: google.protobuf.FileOptions.OptimizeMode + (FieldOptions_CType)(0), // 3: google.protobuf.FieldOptions.CType + (FieldOptions_JSType)(0), // 4: google.protobuf.FieldOptions.JSType + (FieldOptions_OptionRetention)(0), // 5: google.protobuf.FieldOptions.OptionRetention + (FieldOptions_OptionTargetType)(0), // 6: google.protobuf.FieldOptions.OptionTargetType + (MethodOptions_IdempotencyLevel)(0), // 7: google.protobuf.MethodOptions.IdempotencyLevel + (GeneratedCodeInfo_Annotation_Semantic)(0), // 8: google.protobuf.GeneratedCodeInfo.Annotation.Semantic + (*FileDescriptorSet)(nil), // 9: google.protobuf.FileDescriptorSet + (*FileDescriptorProto)(nil), // 10: google.protobuf.FileDescriptorProto + (*DescriptorProto)(nil), // 11: google.protobuf.DescriptorProto + (*ExtensionRangeOptions)(nil), // 12: google.protobuf.ExtensionRangeOptions + (*FieldDescriptorProto)(nil), // 13: google.protobuf.FieldDescriptorProto + (*OneofDescriptorProto)(nil), // 14: google.protobuf.OneofDescriptorProto + (*EnumDescriptorProto)(nil), // 15: google.protobuf.EnumDescriptorProto + (*EnumValueDescriptorProto)(nil), // 16: google.protobuf.EnumValueDescriptorProto + (*ServiceDescriptorProto)(nil), // 17: google.protobuf.ServiceDescriptorProto + (*MethodDescriptorProto)(nil), // 18: google.protobuf.MethodDescriptorProto + (*FileOptions)(nil), // 19: google.protobuf.FileOptions + (*MessageOptions)(nil), // 20: google.protobuf.MessageOptions + (*FieldOptions)(nil), // 21: google.protobuf.FieldOptions + (*OneofOptions)(nil), // 22: google.protobuf.OneofOptions + (*EnumOptions)(nil), // 23: google.protobuf.EnumOptions + (*EnumValueOptions)(nil), // 24: google.protobuf.EnumValueOptions + (*ServiceOptions)(nil), // 25: google.protobuf.ServiceOptions + (*MethodOptions)(nil), // 26: google.protobuf.MethodOptions + (*UninterpretedOption)(nil), // 27: google.protobuf.UninterpretedOption + (*SourceCodeInfo)(nil), // 28: google.protobuf.SourceCodeInfo + (*GeneratedCodeInfo)(nil), // 29: google.protobuf.GeneratedCodeInfo + (*DescriptorProto_ExtensionRange)(nil), // 30: google.protobuf.DescriptorProto.ExtensionRange + (*DescriptorProto_ReservedRange)(nil), // 31: google.protobuf.DescriptorProto.ReservedRange + (*EnumDescriptorProto_EnumReservedRange)(nil), // 32: google.protobuf.EnumDescriptorProto.EnumReservedRange + (*UninterpretedOption_NamePart)(nil), // 33: google.protobuf.UninterpretedOption.NamePart + (*SourceCodeInfo_Location)(nil), // 34: google.protobuf.SourceCodeInfo.Location + (*GeneratedCodeInfo_Annotation)(nil), // 35: google.protobuf.GeneratedCodeInfo.Annotation +} +var file_google_protobuf_descriptor_proto_depIdxs = []int32{ + 10, // 0: google.protobuf.FileDescriptorSet.file:type_name -> google.protobuf.FileDescriptorProto + 11, // 1: google.protobuf.FileDescriptorProto.message_type:type_name -> google.protobuf.DescriptorProto + 15, // 2: google.protobuf.FileDescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 17, // 3: google.protobuf.FileDescriptorProto.service:type_name -> google.protobuf.ServiceDescriptorProto + 13, // 4: google.protobuf.FileDescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto + 19, // 5: google.protobuf.FileDescriptorProto.options:type_name -> google.protobuf.FileOptions + 28, // 6: google.protobuf.FileDescriptorProto.source_code_info:type_name -> google.protobuf.SourceCodeInfo + 13, // 7: google.protobuf.DescriptorProto.field:type_name -> google.protobuf.FieldDescriptorProto + 13, // 8: google.protobuf.DescriptorProto.extension:type_name -> google.protobuf.FieldDescriptorProto + 11, // 9: google.protobuf.DescriptorProto.nested_type:type_name -> google.protobuf.DescriptorProto + 15, // 10: google.protobuf.DescriptorProto.enum_type:type_name -> google.protobuf.EnumDescriptorProto + 30, // 11: google.protobuf.DescriptorProto.extension_range:type_name -> google.protobuf.DescriptorProto.ExtensionRange + 14, // 12: google.protobuf.DescriptorProto.oneof_decl:type_name -> google.protobuf.OneofDescriptorProto + 20, // 13: google.protobuf.DescriptorProto.options:type_name -> google.protobuf.MessageOptions + 31, // 14: google.protobuf.DescriptorProto.reserved_range:type_name -> google.protobuf.DescriptorProto.ReservedRange + 27, // 15: google.protobuf.ExtensionRangeOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 1, // 16: google.protobuf.FieldDescriptorProto.label:type_name -> google.protobuf.FieldDescriptorProto.Label + 0, // 17: google.protobuf.FieldDescriptorProto.type:type_name -> google.protobuf.FieldDescriptorProto.Type + 21, // 18: google.protobuf.FieldDescriptorProto.options:type_name -> google.protobuf.FieldOptions + 22, // 19: google.protobuf.OneofDescriptorProto.options:type_name -> google.protobuf.OneofOptions + 16, // 20: google.protobuf.EnumDescriptorProto.value:type_name -> google.protobuf.EnumValueDescriptorProto + 23, // 21: google.protobuf.EnumDescriptorProto.options:type_name -> google.protobuf.EnumOptions + 32, // 22: google.protobuf.EnumDescriptorProto.reserved_range:type_name -> google.protobuf.EnumDescriptorProto.EnumReservedRange + 24, // 23: google.protobuf.EnumValueDescriptorProto.options:type_name -> google.protobuf.EnumValueOptions + 18, // 24: google.protobuf.ServiceDescriptorProto.method:type_name -> google.protobuf.MethodDescriptorProto + 25, // 25: google.protobuf.ServiceDescriptorProto.options:type_name -> google.protobuf.ServiceOptions + 26, // 26: google.protobuf.MethodDescriptorProto.options:type_name -> google.protobuf.MethodOptions + 2, // 27: google.protobuf.FileOptions.optimize_for:type_name -> google.protobuf.FileOptions.OptimizeMode + 27, // 28: google.protobuf.FileOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 27, // 29: google.protobuf.MessageOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 3, // 30: google.protobuf.FieldOptions.ctype:type_name -> google.protobuf.FieldOptions.CType + 4, // 31: google.protobuf.FieldOptions.jstype:type_name -> google.protobuf.FieldOptions.JSType + 5, // 32: google.protobuf.FieldOptions.retention:type_name -> google.protobuf.FieldOptions.OptionRetention + 6, // 33: google.protobuf.FieldOptions.target:type_name -> google.protobuf.FieldOptions.OptionTargetType + 27, // 34: google.protobuf.FieldOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 27, // 35: google.protobuf.OneofOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 27, // 36: google.protobuf.EnumOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 27, // 37: google.protobuf.EnumValueOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 27, // 38: google.protobuf.ServiceOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 7, // 39: google.protobuf.MethodOptions.idempotency_level:type_name -> google.protobuf.MethodOptions.IdempotencyLevel + 27, // 40: google.protobuf.MethodOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 33, // 41: google.protobuf.UninterpretedOption.name:type_name -> google.protobuf.UninterpretedOption.NamePart + 34, // 42: google.protobuf.SourceCodeInfo.location:type_name -> google.protobuf.SourceCodeInfo.Location + 35, // 43: google.protobuf.GeneratedCodeInfo.annotation:type_name -> google.protobuf.GeneratedCodeInfo.Annotation + 12, // 44: google.protobuf.DescriptorProto.ExtensionRange.options:type_name -> google.protobuf.ExtensionRangeOptions + 8, // 45: google.protobuf.GeneratedCodeInfo.Annotation.semantic:type_name -> google.protobuf.GeneratedCodeInfo.Annotation.Semantic + 46, // [46:46] is the sub-list for method output_type + 46, // [46:46] is the sub-list for method input_type + 46, // [46:46] is the sub-list for extension type_name + 46, // [46:46] is the sub-list for extension extendee + 0, // [0:46] is the sub-list for field type_name +} + +func init() { file_google_protobuf_descriptor_proto_init() } +func file_google_protobuf_descriptor_proto_init() { + if File_google_protobuf_descriptor_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_descriptor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileDescriptorSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExtensionRangeOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FieldDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OneofDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumValueDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MethodDescriptorProto); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessageOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FieldOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OneofOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumValueOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MethodOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + case 3: + return &v.extensionFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UninterpretedOption); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceCodeInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeneratedCodeInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptorProto_ExtensionRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptorProto_ReservedRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumDescriptorProto_EnumReservedRange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UninterpretedOption_NamePart); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceCodeInfo_Location); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_descriptor_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeneratedCodeInfo_Annotation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_descriptor_proto_rawDesc, + NumEnums: 9, + NumMessages: 27, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_descriptor_proto_goTypes, + DependencyIndexes: file_google_protobuf_descriptor_proto_depIdxs, + EnumInfos: file_google_protobuf_descriptor_proto_enumTypes, + MessageInfos: file_google_protobuf_descriptor_proto_msgTypes, + }.Build() + File_google_protobuf_descriptor_proto = out.File + file_google_protobuf_descriptor_proto_rawDesc = nil + file_google_protobuf_descriptor_proto_goTypes = nil + file_google_protobuf_descriptor_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/dynamicpb/dynamic.go b/vendor/google.golang.org/protobuf/types/dynamicpb/dynamic.go new file mode 100644 index 0000000..f77ef0d --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/dynamicpb/dynamic.go @@ -0,0 +1,717 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package dynamicpb creates protocol buffer messages using runtime type information. +package dynamicpb + +import ( + "math" + + "google.golang.org/protobuf/internal/errors" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" + "google.golang.org/protobuf/runtime/protoimpl" +) + +// enum is a dynamic protoreflect.Enum. +type enum struct { + num protoreflect.EnumNumber + typ protoreflect.EnumType +} + +func (e enum) Descriptor() protoreflect.EnumDescriptor { return e.typ.Descriptor() } +func (e enum) Type() protoreflect.EnumType { return e.typ } +func (e enum) Number() protoreflect.EnumNumber { return e.num } + +// enumType is a dynamic protoreflect.EnumType. +type enumType struct { + desc protoreflect.EnumDescriptor +} + +// NewEnumType creates a new EnumType with the provided descriptor. +// +// EnumTypes created by this package are equal if their descriptors are equal. +// That is, if ed1 == ed2, then NewEnumType(ed1) == NewEnumType(ed2). +// +// Enum values created by the EnumType are equal if their numbers are equal. +func NewEnumType(desc protoreflect.EnumDescriptor) protoreflect.EnumType { + return enumType{desc} +} + +func (et enumType) New(n protoreflect.EnumNumber) protoreflect.Enum { return enum{n, et} } +func (et enumType) Descriptor() protoreflect.EnumDescriptor { return et.desc } + +// extensionType is a dynamic protoreflect.ExtensionType. +type extensionType struct { + desc extensionTypeDescriptor +} + +// A Message is a dynamically constructed protocol buffer message. +// +// Message implements the proto.Message interface, and may be used with all +// standard proto package functions such as Marshal, Unmarshal, and so forth. +// +// Message also implements the protoreflect.Message interface. See the protoreflect +// package documentation for that interface for how to get and set fields and +// otherwise interact with the contents of a Message. +// +// Reflection API functions which construct messages, such as NewField, +// return new dynamic messages of the appropriate type. Functions which take +// messages, such as Set for a message-value field, will accept any message +// with a compatible type. +// +// Operations which modify a Message are not safe for concurrent use. +type Message struct { + typ messageType + known map[protoreflect.FieldNumber]protoreflect.Value + ext map[protoreflect.FieldNumber]protoreflect.FieldDescriptor + unknown protoreflect.RawFields +} + +var ( + _ protoreflect.Message = (*Message)(nil) + _ protoreflect.ProtoMessage = (*Message)(nil) + _ protoiface.MessageV1 = (*Message)(nil) +) + +// NewMessage creates a new message with the provided descriptor. +func NewMessage(desc protoreflect.MessageDescriptor) *Message { + return &Message{ + typ: messageType{desc}, + known: make(map[protoreflect.FieldNumber]protoreflect.Value), + ext: make(map[protoreflect.FieldNumber]protoreflect.FieldDescriptor), + } +} + +// ProtoMessage implements the legacy message interface. +func (m *Message) ProtoMessage() {} + +// ProtoReflect implements the protoreflect.ProtoMessage interface. +func (m *Message) ProtoReflect() protoreflect.Message { + return m +} + +// String returns a string representation of a message. +func (m *Message) String() string { + return protoimpl.X.MessageStringOf(m) +} + +// Reset clears the message to be empty, but preserves the dynamic message type. +func (m *Message) Reset() { + m.known = make(map[protoreflect.FieldNumber]protoreflect.Value) + m.ext = make(map[protoreflect.FieldNumber]protoreflect.FieldDescriptor) + m.unknown = nil +} + +// Descriptor returns the message descriptor. +func (m *Message) Descriptor() protoreflect.MessageDescriptor { + return m.typ.desc +} + +// Type returns the message type. +func (m *Message) Type() protoreflect.MessageType { + return m.typ +} + +// New returns a newly allocated empty message with the same descriptor. +// See protoreflect.Message for details. +func (m *Message) New() protoreflect.Message { + return m.Type().New() +} + +// Interface returns the message. +// See protoreflect.Message for details. +func (m *Message) Interface() protoreflect.ProtoMessage { + return m +} + +// ProtoMethods is an internal detail of the protoreflect.Message interface. +// Users should never call this directly. +func (m *Message) ProtoMethods() *protoiface.Methods { + return nil +} + +// Range visits every populated field in undefined order. +// See protoreflect.Message for details. +func (m *Message) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + for num, v := range m.known { + fd := m.ext[num] + if fd == nil { + fd = m.Descriptor().Fields().ByNumber(num) + } + if !isSet(fd, v) { + continue + } + if !f(fd, v) { + return + } + } +} + +// Has reports whether a field is populated. +// See protoreflect.Message for details. +func (m *Message) Has(fd protoreflect.FieldDescriptor) bool { + m.checkField(fd) + if fd.IsExtension() && m.ext[fd.Number()] != fd { + return false + } + v, ok := m.known[fd.Number()] + if !ok { + return false + } + return isSet(fd, v) +} + +// Clear clears a field. +// See protoreflect.Message for details. +func (m *Message) Clear(fd protoreflect.FieldDescriptor) { + m.checkField(fd) + num := fd.Number() + delete(m.known, num) + delete(m.ext, num) +} + +// Get returns the value of a field. +// See protoreflect.Message for details. +func (m *Message) Get(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.checkField(fd) + num := fd.Number() + if fd.IsExtension() { + if fd != m.ext[num] { + return fd.(protoreflect.ExtensionTypeDescriptor).Type().Zero() + } + return m.known[num] + } + if v, ok := m.known[num]; ok { + switch { + case fd.IsMap(): + if v.Map().Len() > 0 { + return v + } + case fd.IsList(): + if v.List().Len() > 0 { + return v + } + default: + return v + } + } + switch { + case fd.IsMap(): + return protoreflect.ValueOfMap(&dynamicMap{desc: fd}) + case fd.IsList(): + return protoreflect.ValueOfList(emptyList{desc: fd}) + case fd.Message() != nil: + return protoreflect.ValueOfMessage(&Message{typ: messageType{fd.Message()}}) + case fd.Kind() == protoreflect.BytesKind: + return protoreflect.ValueOfBytes(append([]byte(nil), fd.Default().Bytes()...)) + default: + return fd.Default() + } +} + +// Mutable returns a mutable reference to a repeated, map, or message field. +// See protoreflect.Message for details. +func (m *Message) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.checkField(fd) + if !fd.IsMap() && !fd.IsList() && fd.Message() == nil { + panic(errors.New("%v: getting mutable reference to non-composite type", fd.FullName())) + } + if m.known == nil { + panic(errors.New("%v: modification of read-only message", fd.FullName())) + } + num := fd.Number() + if fd.IsExtension() { + if fd != m.ext[num] { + m.ext[num] = fd + m.known[num] = fd.(protoreflect.ExtensionTypeDescriptor).Type().New() + } + return m.known[num] + } + if v, ok := m.known[num]; ok { + return v + } + m.clearOtherOneofFields(fd) + m.known[num] = m.NewField(fd) + if fd.IsExtension() { + m.ext[num] = fd + } + return m.known[num] +} + +// Set stores a value in a field. +// See protoreflect.Message for details. +func (m *Message) Set(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + m.checkField(fd) + if m.known == nil { + panic(errors.New("%v: modification of read-only message", fd.FullName())) + } + if fd.IsExtension() { + isValid := true + switch { + case !fd.(protoreflect.ExtensionTypeDescriptor).Type().IsValidValue(v): + isValid = false + case fd.IsList(): + isValid = v.List().IsValid() + case fd.IsMap(): + isValid = v.Map().IsValid() + case fd.Message() != nil: + isValid = v.Message().IsValid() + } + if !isValid { + panic(errors.New("%v: assigning invalid type %T", fd.FullName(), v.Interface())) + } + m.ext[fd.Number()] = fd + } else { + typecheck(fd, v) + } + m.clearOtherOneofFields(fd) + m.known[fd.Number()] = v +} + +func (m *Message) clearOtherOneofFields(fd protoreflect.FieldDescriptor) { + od := fd.ContainingOneof() + if od == nil { + return + } + num := fd.Number() + for i := 0; i < od.Fields().Len(); i++ { + if n := od.Fields().Get(i).Number(); n != num { + delete(m.known, n) + } + } +} + +// NewField returns a new value for assignable to the field of a given descriptor. +// See protoreflect.Message for details. +func (m *Message) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + m.checkField(fd) + switch { + case fd.IsExtension(): + return fd.(protoreflect.ExtensionTypeDescriptor).Type().New() + case fd.IsMap(): + return protoreflect.ValueOfMap(&dynamicMap{ + desc: fd, + mapv: make(map[interface{}]protoreflect.Value), + }) + case fd.IsList(): + return protoreflect.ValueOfList(&dynamicList{desc: fd}) + case fd.Message() != nil: + return protoreflect.ValueOfMessage(NewMessage(fd.Message()).ProtoReflect()) + default: + return fd.Default() + } +} + +// WhichOneof reports which field in a oneof is populated, returning nil if none are populated. +// See protoreflect.Message for details. +func (m *Message) WhichOneof(od protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + for i := 0; i < od.Fields().Len(); i++ { + fd := od.Fields().Get(i) + if m.Has(fd) { + return fd + } + } + return nil +} + +// GetUnknown returns the raw unknown fields. +// See protoreflect.Message for details. +func (m *Message) GetUnknown() protoreflect.RawFields { + return m.unknown +} + +// SetUnknown sets the raw unknown fields. +// See protoreflect.Message for details. +func (m *Message) SetUnknown(r protoreflect.RawFields) { + if m.known == nil { + panic(errors.New("%v: modification of read-only message", m.typ.desc.FullName())) + } + m.unknown = r +} + +// IsValid reports whether the message is valid. +// See protoreflect.Message for details. +func (m *Message) IsValid() bool { + return m.known != nil +} + +func (m *Message) checkField(fd protoreflect.FieldDescriptor) { + if fd.IsExtension() && fd.ContainingMessage().FullName() == m.Descriptor().FullName() { + if _, ok := fd.(protoreflect.ExtensionTypeDescriptor); !ok { + panic(errors.New("%v: extension field descriptor does not implement ExtensionTypeDescriptor", fd.FullName())) + } + return + } + if fd.Parent() == m.Descriptor() { + return + } + fields := m.Descriptor().Fields() + index := fd.Index() + if index >= fields.Len() || fields.Get(index) != fd { + panic(errors.New("%v: field descriptor does not belong to this message", fd.FullName())) + } +} + +type messageType struct { + desc protoreflect.MessageDescriptor +} + +// NewMessageType creates a new MessageType with the provided descriptor. +// +// MessageTypes created by this package are equal if their descriptors are equal. +// That is, if md1 == md2, then NewMessageType(md1) == NewMessageType(md2). +func NewMessageType(desc protoreflect.MessageDescriptor) protoreflect.MessageType { + return messageType{desc} +} + +func (mt messageType) New() protoreflect.Message { return NewMessage(mt.desc) } +func (mt messageType) Zero() protoreflect.Message { return &Message{typ: messageType{mt.desc}} } +func (mt messageType) Descriptor() protoreflect.MessageDescriptor { return mt.desc } +func (mt messageType) Enum(i int) protoreflect.EnumType { + if ed := mt.desc.Fields().Get(i).Enum(); ed != nil { + return NewEnumType(ed) + } + return nil +} +func (mt messageType) Message(i int) protoreflect.MessageType { + if md := mt.desc.Fields().Get(i).Message(); md != nil { + return NewMessageType(md) + } + return nil +} + +type emptyList struct { + desc protoreflect.FieldDescriptor +} + +func (x emptyList) Len() int { return 0 } +func (x emptyList) Get(n int) protoreflect.Value { panic(errors.New("out of range")) } +func (x emptyList) Set(n int, v protoreflect.Value) { + panic(errors.New("modification of immutable list")) +} +func (x emptyList) Append(v protoreflect.Value) { panic(errors.New("modification of immutable list")) } +func (x emptyList) AppendMutable() protoreflect.Value { + panic(errors.New("modification of immutable list")) +} +func (x emptyList) Truncate(n int) { panic(errors.New("modification of immutable list")) } +func (x emptyList) NewElement() protoreflect.Value { return newListEntry(x.desc) } +func (x emptyList) IsValid() bool { return false } + +type dynamicList struct { + desc protoreflect.FieldDescriptor + list []protoreflect.Value +} + +func (x *dynamicList) Len() int { + return len(x.list) +} + +func (x *dynamicList) Get(n int) protoreflect.Value { + return x.list[n] +} + +func (x *dynamicList) Set(n int, v protoreflect.Value) { + typecheckSingular(x.desc, v) + x.list[n] = v +} + +func (x *dynamicList) Append(v protoreflect.Value) { + typecheckSingular(x.desc, v) + x.list = append(x.list, v) +} + +func (x *dynamicList) AppendMutable() protoreflect.Value { + if x.desc.Message() == nil { + panic(errors.New("%v: invalid AppendMutable on list with non-message type", x.desc.FullName())) + } + v := x.NewElement() + x.Append(v) + return v +} + +func (x *dynamicList) Truncate(n int) { + // Zero truncated elements to avoid keeping data live. + for i := n; i < len(x.list); i++ { + x.list[i] = protoreflect.Value{} + } + x.list = x.list[:n] +} + +func (x *dynamicList) NewElement() protoreflect.Value { + return newListEntry(x.desc) +} + +func (x *dynamicList) IsValid() bool { + return true +} + +type dynamicMap struct { + desc protoreflect.FieldDescriptor + mapv map[interface{}]protoreflect.Value +} + +func (x *dynamicMap) Get(k protoreflect.MapKey) protoreflect.Value { return x.mapv[k.Interface()] } +func (x *dynamicMap) Set(k protoreflect.MapKey, v protoreflect.Value) { + typecheckSingular(x.desc.MapKey(), k.Value()) + typecheckSingular(x.desc.MapValue(), v) + x.mapv[k.Interface()] = v +} +func (x *dynamicMap) Has(k protoreflect.MapKey) bool { return x.Get(k).IsValid() } +func (x *dynamicMap) Clear(k protoreflect.MapKey) { delete(x.mapv, k.Interface()) } +func (x *dynamicMap) Mutable(k protoreflect.MapKey) protoreflect.Value { + if x.desc.MapValue().Message() == nil { + panic(errors.New("%v: invalid Mutable on map with non-message value type", x.desc.FullName())) + } + v := x.Get(k) + if !v.IsValid() { + v = x.NewValue() + x.Set(k, v) + } + return v +} +func (x *dynamicMap) Len() int { return len(x.mapv) } +func (x *dynamicMap) NewValue() protoreflect.Value { + if md := x.desc.MapValue().Message(); md != nil { + return protoreflect.ValueOfMessage(NewMessage(md).ProtoReflect()) + } + return x.desc.MapValue().Default() +} +func (x *dynamicMap) IsValid() bool { + return x.mapv != nil +} + +func (x *dynamicMap) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { + for k, v := range x.mapv { + if !f(protoreflect.ValueOf(k).MapKey(), v) { + return + } + } +} + +func isSet(fd protoreflect.FieldDescriptor, v protoreflect.Value) bool { + switch { + case fd.IsMap(): + return v.Map().Len() > 0 + case fd.IsList(): + return v.List().Len() > 0 + case fd.ContainingOneof() != nil: + return true + case fd.Syntax() == protoreflect.Proto3 && !fd.IsExtension(): + switch fd.Kind() { + case protoreflect.BoolKind: + return v.Bool() + case protoreflect.EnumKind: + return v.Enum() != 0 + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed32Kind, protoreflect.Sfixed64Kind: + return v.Int() != 0 + case protoreflect.Uint32Kind, protoreflect.Uint64Kind, protoreflect.Fixed32Kind, protoreflect.Fixed64Kind: + return v.Uint() != 0 + case protoreflect.FloatKind, protoreflect.DoubleKind: + return v.Float() != 0 || math.Signbit(v.Float()) + case protoreflect.StringKind: + return v.String() != "" + case protoreflect.BytesKind: + return len(v.Bytes()) > 0 + } + } + return true +} + +func typecheck(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + if err := typeIsValid(fd, v); err != nil { + panic(err) + } +} + +func typeIsValid(fd protoreflect.FieldDescriptor, v protoreflect.Value) error { + switch { + case !v.IsValid(): + return errors.New("%v: assigning invalid value", fd.FullName()) + case fd.IsMap(): + if mapv, ok := v.Interface().(*dynamicMap); !ok || mapv.desc != fd || !mapv.IsValid() { + return errors.New("%v: assigning invalid type %T", fd.FullName(), v.Interface()) + } + return nil + case fd.IsList(): + switch list := v.Interface().(type) { + case *dynamicList: + if list.desc == fd && list.IsValid() { + return nil + } + case emptyList: + if list.desc == fd && list.IsValid() { + return nil + } + } + return errors.New("%v: assigning invalid type %T", fd.FullName(), v.Interface()) + default: + return singularTypeIsValid(fd, v) + } +} + +func typecheckSingular(fd protoreflect.FieldDescriptor, v protoreflect.Value) { + if err := singularTypeIsValid(fd, v); err != nil { + panic(err) + } +} + +func singularTypeIsValid(fd protoreflect.FieldDescriptor, v protoreflect.Value) error { + vi := v.Interface() + var ok bool + switch fd.Kind() { + case protoreflect.BoolKind: + _, ok = vi.(bool) + case protoreflect.EnumKind: + // We could check against the valid set of enum values, but do not. + _, ok = vi.(protoreflect.EnumNumber) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + _, ok = vi.(int32) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + _, ok = vi.(uint32) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + _, ok = vi.(int64) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + _, ok = vi.(uint64) + case protoreflect.FloatKind: + _, ok = vi.(float32) + case protoreflect.DoubleKind: + _, ok = vi.(float64) + case protoreflect.StringKind: + _, ok = vi.(string) + case protoreflect.BytesKind: + _, ok = vi.([]byte) + case protoreflect.MessageKind, protoreflect.GroupKind: + var m protoreflect.Message + m, ok = vi.(protoreflect.Message) + if ok && m.Descriptor().FullName() != fd.Message().FullName() { + return errors.New("%v: assigning invalid message type %v", fd.FullName(), m.Descriptor().FullName()) + } + if dm, ok := vi.(*Message); ok && dm.known == nil { + return errors.New("%v: assigning invalid zero-value message", fd.FullName()) + } + } + if !ok { + return errors.New("%v: assigning invalid type %T", fd.FullName(), v.Interface()) + } + return nil +} + +func newListEntry(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.Kind() { + case protoreflect.BoolKind: + return protoreflect.ValueOfBool(false) + case protoreflect.EnumKind: + return protoreflect.ValueOfEnum(fd.Enum().Values().Get(0).Number()) + case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: + return protoreflect.ValueOfInt32(0) + case protoreflect.Uint32Kind, protoreflect.Fixed32Kind: + return protoreflect.ValueOfUint32(0) + case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: + return protoreflect.ValueOfInt64(0) + case protoreflect.Uint64Kind, protoreflect.Fixed64Kind: + return protoreflect.ValueOfUint64(0) + case protoreflect.FloatKind: + return protoreflect.ValueOfFloat32(0) + case protoreflect.DoubleKind: + return protoreflect.ValueOfFloat64(0) + case protoreflect.StringKind: + return protoreflect.ValueOfString("") + case protoreflect.BytesKind: + return protoreflect.ValueOfBytes(nil) + case protoreflect.MessageKind, protoreflect.GroupKind: + return protoreflect.ValueOfMessage(NewMessage(fd.Message()).ProtoReflect()) + } + panic(errors.New("%v: unknown kind %v", fd.FullName(), fd.Kind())) +} + +// NewExtensionType creates a new ExtensionType with the provided descriptor. +// +// Dynamic ExtensionTypes with the same descriptor compare as equal. That is, +// if xd1 == xd2, then NewExtensionType(xd1) == NewExtensionType(xd2). +// +// The InterfaceOf and ValueOf methods of the extension type are defined as: +// +// func (xt extensionType) ValueOf(iv interface{}) protoreflect.Value { +// return protoreflect.ValueOf(iv) +// } +// +// func (xt extensionType) InterfaceOf(v protoreflect.Value) interface{} { +// return v.Interface() +// } +// +// The Go type used by the proto.GetExtension and proto.SetExtension functions +// is determined by these methods, and is therefore equivalent to the Go type +// used to represent a protoreflect.Value. See the protoreflect.Value +// documentation for more details. +func NewExtensionType(desc protoreflect.ExtensionDescriptor) protoreflect.ExtensionType { + if xt, ok := desc.(protoreflect.ExtensionTypeDescriptor); ok { + desc = xt.Descriptor() + } + return extensionType{extensionTypeDescriptor{desc}} +} + +func (xt extensionType) New() protoreflect.Value { + switch { + case xt.desc.IsMap(): + return protoreflect.ValueOfMap(&dynamicMap{ + desc: xt.desc, + mapv: make(map[interface{}]protoreflect.Value), + }) + case xt.desc.IsList(): + return protoreflect.ValueOfList(&dynamicList{desc: xt.desc}) + case xt.desc.Message() != nil: + return protoreflect.ValueOfMessage(NewMessage(xt.desc.Message())) + default: + return xt.desc.Default() + } +} + +func (xt extensionType) Zero() protoreflect.Value { + switch { + case xt.desc.IsMap(): + return protoreflect.ValueOfMap(&dynamicMap{desc: xt.desc}) + case xt.desc.Cardinality() == protoreflect.Repeated: + return protoreflect.ValueOfList(emptyList{desc: xt.desc}) + case xt.desc.Message() != nil: + return protoreflect.ValueOfMessage(&Message{typ: messageType{xt.desc.Message()}}) + default: + return xt.desc.Default() + } +} + +func (xt extensionType) TypeDescriptor() protoreflect.ExtensionTypeDescriptor { + return xt.desc +} + +func (xt extensionType) ValueOf(iv interface{}) protoreflect.Value { + v := protoreflect.ValueOf(iv) + typecheck(xt.desc, v) + return v +} + +func (xt extensionType) InterfaceOf(v protoreflect.Value) interface{} { + typecheck(xt.desc, v) + return v.Interface() +} + +func (xt extensionType) IsValidInterface(iv interface{}) bool { + return typeIsValid(xt.desc, protoreflect.ValueOf(iv)) == nil +} + +func (xt extensionType) IsValidValue(v protoreflect.Value) bool { + return typeIsValid(xt.desc, v) == nil +} + +type extensionTypeDescriptor struct { + protoreflect.ExtensionDescriptor +} + +func (xt extensionTypeDescriptor) Type() protoreflect.ExtensionType { + return extensionType{xt} +} + +func (xt extensionTypeDescriptor) Descriptor() protoreflect.ExtensionDescriptor { + return xt.ExtensionDescriptor +} diff --git a/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go new file mode 100644 index 0000000..a6c7a33 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go @@ -0,0 +1,495 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/any.proto + +// Package anypb contains generated types for google/protobuf/any.proto. +// +// The Any message is a dynamic representation of any other message value. +// It is functionally a tuple of the full name of the remote message type and +// the serialized bytes of the remote message value. +// +// # Constructing an Any +// +// An Any message containing another message value is constructed using New: +// +// any, err := anypb.New(m) +// if err != nil { +// ... // handle error +// } +// ... // make use of any +// +// # Unmarshaling an Any +// +// With a populated Any message, the underlying message can be serialized into +// a remote concrete message value in a few ways. +// +// If the exact concrete type is known, then a new (or pre-existing) instance +// of that message can be passed to the UnmarshalTo method: +// +// m := new(foopb.MyMessage) +// if err := any.UnmarshalTo(m); err != nil { +// ... // handle error +// } +// ... // make use of m +// +// If the exact concrete type is not known, then the UnmarshalNew method can be +// used to unmarshal the contents into a new instance of the remote message type: +// +// m, err := any.UnmarshalNew() +// if err != nil { +// ... // handle error +// } +// ... // make use of m +// +// UnmarshalNew uses the global type registry to resolve the message type and +// construct a new instance of that message to unmarshal into. In order for a +// message type to appear in the global registry, the Go type representing that +// protobuf message type must be linked into the Go binary. For messages +// generated by protoc-gen-go, this is achieved through an import of the +// generated Go package representing a .proto file. +// +// A common pattern with UnmarshalNew is to use a type switch with the resulting +// proto.Message value: +// +// switch m := m.(type) { +// case *foopb.MyMessage: +// ... // make use of m as a *foopb.MyMessage +// case *barpb.OtherMessage: +// ... // make use of m as a *barpb.OtherMessage +// case *bazpb.SomeMessage: +// ... // make use of m as a *bazpb.SomeMessage +// } +// +// This pattern ensures that the generated packages containing the message types +// listed in the case clauses are linked into the Go binary and therefore also +// registered in the global registry. +// +// # Type checking an Any +// +// In order to type check whether an Any message represents some other message, +// then use the MessageIs method: +// +// if any.MessageIs((*foopb.MyMessage)(nil)) { +// ... // make use of any, knowing that it contains a foopb.MyMessage +// } +// +// The MessageIs method can also be used with an allocated instance of the target +// message type if the intention is to unmarshal into it if the type matches: +// +// m := new(foopb.MyMessage) +// if any.MessageIs(m) { +// if err := any.UnmarshalTo(m); err != nil { +// ... // handle error +// } +// ... // make use of m +// } +package anypb + +import ( + proto "google.golang.org/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoregistry "google.golang.org/protobuf/reflect/protoregistry" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + strings "strings" + sync "sync" +) + +// `Any` contains an arbitrary serialized protocol buffer message along with a +// URL that describes the type of the serialized message. +// +// Protobuf library provides support to pack/unpack Any values in the form +// of utility functions or additional generated methods of the Any type. +// +// Example 1: Pack and unpack a message in C++. +// +// Foo foo = ...; +// Any any; +// any.PackFrom(foo); +// ... +// if (any.UnpackTo(&foo)) { +// ... +// } +// +// Example 2: Pack and unpack a message in Java. +// +// Foo foo = ...; +// Any any = Any.pack(foo); +// ... +// if (any.is(Foo.class)) { +// foo = any.unpack(Foo.class); +// } +// // or ... +// if (any.isSameTypeAs(Foo.getDefaultInstance())) { +// foo = any.unpack(Foo.getDefaultInstance()); +// } +// +// Example 3: Pack and unpack a message in Python. +// +// foo = Foo(...) +// any = Any() +// any.Pack(foo) +// ... +// if any.Is(Foo.DESCRIPTOR): +// any.Unpack(foo) +// ... +// +// Example 4: Pack and unpack a message in Go +// +// foo := &pb.Foo{...} +// any, err := anypb.New(foo) +// if err != nil { +// ... +// } +// ... +// foo := &pb.Foo{} +// if err := any.UnmarshalTo(foo); err != nil { +// ... +// } +// +// The pack methods provided by protobuf library will by default use +// 'type.googleapis.com/full.type.name' as the type URL and the unpack +// methods only use the fully qualified type name after the last '/' +// in the type URL, for example "foo.bar.com/x/y.z" will yield type +// name "y.z". +// +// # JSON +// +// The JSON representation of an `Any` value uses the regular +// representation of the deserialized, embedded message, with an +// additional field `@type` which contains the type URL. Example: +// +// package google.profile; +// message Person { +// string first_name = 1; +// string last_name = 2; +// } +// +// { +// "@type": "type.googleapis.com/google.profile.Person", +// "firstName": , +// "lastName": +// } +// +// If the embedded message type is well-known and has a custom JSON +// representation, that representation will be embedded adding a field +// `value` which holds the custom JSON in addition to the `@type` +// field. Example (for message [google.protobuf.Duration][]): +// +// { +// "@type": "type.googleapis.com/google.protobuf.Duration", +// "value": "1.212s" +// } +type Any struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A URL/resource name that uniquely identifies the type of the serialized + // protocol buffer message. This string must contain at least + // one "/" character. The last segment of the URL's path must represent + // the fully qualified name of the type (as in + // `path/google.protobuf.Duration`). The name should be in a canonical form + // (e.g., leading "." is not accepted). + // + // In practice, teams usually precompile into the binary all types that they + // expect it to use in the context of Any. However, for URLs which use the + // scheme `http`, `https`, or no scheme, one can optionally set up a type + // server that maps type URLs to message definitions as follows: + // + // - If no scheme is provided, `https` is assumed. + // - An HTTP GET on the URL must yield a [google.protobuf.Type][] + // value in binary format, or produce an error. + // - Applications are allowed to cache lookup results based on the + // URL, or have them precompiled into a binary to avoid any + // lookup. Therefore, binary compatibility needs to be preserved + // on changes to types. (Use versioned type names to manage + // breaking changes.) + // + // Note: this functionality is not currently available in the official + // protobuf release, and it is not used for type URLs beginning with + // type.googleapis.com. + // + // Schemes other than `http`, `https` (or the empty scheme) might be + // used with implementation specific semantics. + TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` + // Must be a valid serialized protocol buffer of the above specified type. + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +// New marshals src into a new Any instance. +func New(src proto.Message) (*Any, error) { + dst := new(Any) + if err := dst.MarshalFrom(src); err != nil { + return nil, err + } + return dst, nil +} + +// MarshalFrom marshals src into dst as the underlying message +// using the provided marshal options. +// +// If no options are specified, call dst.MarshalFrom instead. +func MarshalFrom(dst *Any, src proto.Message, opts proto.MarshalOptions) error { + const urlPrefix = "type.googleapis.com/" + if src == nil { + return protoimpl.X.NewError("invalid nil source message") + } + b, err := opts.Marshal(src) + if err != nil { + return err + } + dst.TypeUrl = urlPrefix + string(src.ProtoReflect().Descriptor().FullName()) + dst.Value = b + return nil +} + +// UnmarshalTo unmarshals the underlying message from src into dst +// using the provided unmarshal options. +// It reports an error if dst is not of the right message type. +// +// If no options are specified, call src.UnmarshalTo instead. +func UnmarshalTo(src *Any, dst proto.Message, opts proto.UnmarshalOptions) error { + if src == nil { + return protoimpl.X.NewError("invalid nil source message") + } + if !src.MessageIs(dst) { + got := dst.ProtoReflect().Descriptor().FullName() + want := src.MessageName() + return protoimpl.X.NewError("mismatched message type: got %q, want %q", got, want) + } + return opts.Unmarshal(src.GetValue(), dst) +} + +// UnmarshalNew unmarshals the underlying message from src into dst, +// which is newly created message using a type resolved from the type URL. +// The message type is resolved according to opt.Resolver, +// which should implement protoregistry.MessageTypeResolver. +// It reports an error if the underlying message type could not be resolved. +// +// If no options are specified, call src.UnmarshalNew instead. +func UnmarshalNew(src *Any, opts proto.UnmarshalOptions) (dst proto.Message, err error) { + if src.GetTypeUrl() == "" { + return nil, protoimpl.X.NewError("invalid empty type URL") + } + if opts.Resolver == nil { + opts.Resolver = protoregistry.GlobalTypes + } + r, ok := opts.Resolver.(protoregistry.MessageTypeResolver) + if !ok { + return nil, protoregistry.NotFound + } + mt, err := r.FindMessageByURL(src.GetTypeUrl()) + if err != nil { + if err == protoregistry.NotFound { + return nil, err + } + return nil, protoimpl.X.NewError("could not resolve %q: %v", src.GetTypeUrl(), err) + } + dst = mt.New().Interface() + return dst, opts.Unmarshal(src.GetValue(), dst) +} + +// MessageIs reports whether the underlying message is of the same type as m. +func (x *Any) MessageIs(m proto.Message) bool { + if m == nil { + return false + } + url := x.GetTypeUrl() + name := string(m.ProtoReflect().Descriptor().FullName()) + if !strings.HasSuffix(url, name) { + return false + } + return len(url) == len(name) || url[len(url)-len(name)-1] == '/' +} + +// MessageName reports the full name of the underlying message, +// returning an empty string if invalid. +func (x *Any) MessageName() protoreflect.FullName { + url := x.GetTypeUrl() + name := protoreflect.FullName(url) + if i := strings.LastIndexByte(url, '/'); i >= 0 { + name = name[i+len("/"):] + } + if !name.IsValid() { + return "" + } + return name +} + +// MarshalFrom marshals m into x as the underlying message. +func (x *Any) MarshalFrom(m proto.Message) error { + return MarshalFrom(x, m, proto.MarshalOptions{}) +} + +// UnmarshalTo unmarshals the contents of the underlying message of x into m. +// It resets m before performing the unmarshal operation. +// It reports an error if m is not of the right message type. +func (x *Any) UnmarshalTo(m proto.Message) error { + return UnmarshalTo(x, m, proto.UnmarshalOptions{}) +} + +// UnmarshalNew unmarshals the contents of the underlying message of x into +// a newly allocated message of the specified type. +// It reports an error if the underlying message type could not be resolved. +func (x *Any) UnmarshalNew() (proto.Message, error) { + return UnmarshalNew(x, proto.UnmarshalOptions{}) +} + +func (x *Any) Reset() { + *x = Any{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_any_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Any) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Any) ProtoMessage() {} + +func (x *Any) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_any_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Any.ProtoReflect.Descriptor instead. +func (*Any) Descriptor() ([]byte, []int) { + return file_google_protobuf_any_proto_rawDescGZIP(), []int{0} +} + +func (x *Any) GetTypeUrl() string { + if x != nil { + return x.TypeUrl + } + return "" +} + +func (x *Any) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +var File_google_protobuf_any_proto protoreflect.FileDescriptor + +var file_google_protobuf_any_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x36, 0x0a, 0x03, + 0x41, 0x6e, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x76, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x08, 0x41, 0x6e, 0x79, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, + 0x61, 0x6e, 0x79, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, + 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_any_proto_rawDescOnce sync.Once + file_google_protobuf_any_proto_rawDescData = file_google_protobuf_any_proto_rawDesc +) + +func file_google_protobuf_any_proto_rawDescGZIP() []byte { + file_google_protobuf_any_proto_rawDescOnce.Do(func() { + file_google_protobuf_any_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_any_proto_rawDescData) + }) + return file_google_protobuf_any_proto_rawDescData +} + +var file_google_protobuf_any_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_any_proto_goTypes = []interface{}{ + (*Any)(nil), // 0: google.protobuf.Any +} +var file_google_protobuf_any_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_any_proto_init() } +func file_google_protobuf_any_proto_init() { + if File_google_protobuf_any_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_any_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Any); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_any_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_any_proto_goTypes, + DependencyIndexes: file_google_protobuf_any_proto_depIdxs, + MessageInfos: file_google_protobuf_any_proto_msgTypes, + }.Build() + File_google_protobuf_any_proto = out.File + file_google_protobuf_any_proto_rawDesc = nil + file_google_protobuf_any_proto_goTypes = nil + file_google_protobuf_any_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/apipb/api.pb.go b/vendor/google.golang.org/protobuf/types/known/apipb/api.pb.go new file mode 100644 index 0000000..9685a45 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/apipb/api.pb.go @@ -0,0 +1,575 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/api.proto + +package apipb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + sourcecontextpb "google.golang.org/protobuf/types/known/sourcecontextpb" + typepb "google.golang.org/protobuf/types/known/typepb" + reflect "reflect" + sync "sync" +) + +// Api is a light-weight descriptor for an API Interface. +// +// Interfaces are also described as "protocol buffer services" in some contexts, +// such as by the "service" keyword in a .proto file, but they are different +// from API Services, which represent a concrete implementation of an interface +// as opposed to simply a description of methods and bindings. They are also +// sometimes simply referred to as "APIs" in other contexts, such as the name of +// this message itself. See https://cloud.google.com/apis/design/glossary for +// detailed terminology. +type Api struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fully qualified name of this interface, including package name + // followed by the interface's simple name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The methods of this interface, in unspecified order. + Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"` + // Any metadata attached to the interface. + Options []*typepb.Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` + // A version string for this interface. If specified, must have the form + // `major-version.minor-version`, as in `1.10`. If the minor version is + // omitted, it defaults to zero. If the entire version field is empty, the + // major version is derived from the package name, as outlined below. If the + // field is not empty, the version in the package name will be verified to be + // consistent with what is provided here. + // + // The versioning schema uses [semantic + // versioning](http://semver.org) where the major version number + // indicates a breaking change and the minor version an additive, + // non-breaking change. Both version numbers are signals to users + // what to expect from different versions, and should be carefully + // chosen based on the product plan. + // + // The major version is also reflected in the package name of the + // interface, which must end in `v`, as in + // `google.feature.v1`. For major versions 0 and 1, the suffix can + // be omitted. Zero major versions must only be used for + // experimental, non-GA interfaces. + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + // Source context for the protocol buffer service represented by this + // message. + SourceContext *sourcecontextpb.SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"` + // Included interfaces. See [Mixin][]. + Mixins []*Mixin `protobuf:"bytes,6,rep,name=mixins,proto3" json:"mixins,omitempty"` + // The source syntax of the service. + Syntax typepb.Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"` +} + +func (x *Api) Reset() { + *x = Api{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Api) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Api) ProtoMessage() {} + +func (x *Api) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_api_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Api.ProtoReflect.Descriptor instead. +func (*Api) Descriptor() ([]byte, []int) { + return file_google_protobuf_api_proto_rawDescGZIP(), []int{0} +} + +func (x *Api) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Api) GetMethods() []*Method { + if x != nil { + return x.Methods + } + return nil +} + +func (x *Api) GetOptions() []*typepb.Option { + if x != nil { + return x.Options + } + return nil +} + +func (x *Api) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Api) GetSourceContext() *sourcecontextpb.SourceContext { + if x != nil { + return x.SourceContext + } + return nil +} + +func (x *Api) GetMixins() []*Mixin { + if x != nil { + return x.Mixins + } + return nil +} + +func (x *Api) GetSyntax() typepb.Syntax { + if x != nil { + return x.Syntax + } + return typepb.Syntax(0) +} + +// Method represents a method of an API interface. +type Method struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The simple name of this method. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // A URL of the input message type. + RequestTypeUrl string `protobuf:"bytes,2,opt,name=request_type_url,json=requestTypeUrl,proto3" json:"request_type_url,omitempty"` + // If true, the request is streamed. + RequestStreaming bool `protobuf:"varint,3,opt,name=request_streaming,json=requestStreaming,proto3" json:"request_streaming,omitempty"` + // The URL of the output message type. + ResponseTypeUrl string `protobuf:"bytes,4,opt,name=response_type_url,json=responseTypeUrl,proto3" json:"response_type_url,omitempty"` + // If true, the response is streamed. + ResponseStreaming bool `protobuf:"varint,5,opt,name=response_streaming,json=responseStreaming,proto3" json:"response_streaming,omitempty"` + // Any metadata attached to the method. + Options []*typepb.Option `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"` + // The source syntax of this method. + Syntax typepb.Syntax `protobuf:"varint,7,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"` +} + +func (x *Method) Reset() { + *x = Method{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Method) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Method) ProtoMessage() {} + +func (x *Method) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_api_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Method.ProtoReflect.Descriptor instead. +func (*Method) Descriptor() ([]byte, []int) { + return file_google_protobuf_api_proto_rawDescGZIP(), []int{1} +} + +func (x *Method) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Method) GetRequestTypeUrl() string { + if x != nil { + return x.RequestTypeUrl + } + return "" +} + +func (x *Method) GetRequestStreaming() bool { + if x != nil { + return x.RequestStreaming + } + return false +} + +func (x *Method) GetResponseTypeUrl() string { + if x != nil { + return x.ResponseTypeUrl + } + return "" +} + +func (x *Method) GetResponseStreaming() bool { + if x != nil { + return x.ResponseStreaming + } + return false +} + +func (x *Method) GetOptions() []*typepb.Option { + if x != nil { + return x.Options + } + return nil +} + +func (x *Method) GetSyntax() typepb.Syntax { + if x != nil { + return x.Syntax + } + return typepb.Syntax(0) +} + +// Declares an API Interface to be included in this interface. The including +// interface must redeclare all the methods from the included interface, but +// documentation and options are inherited as follows: +// +// - If after comment and whitespace stripping, the documentation +// string of the redeclared method is empty, it will be inherited +// from the original method. +// +// - Each annotation belonging to the service config (http, +// visibility) which is not set in the redeclared method will be +// inherited. +// +// - If an http annotation is inherited, the path pattern will be +// modified as follows. Any version prefix will be replaced by the +// version of the including interface plus the [root][] path if +// specified. +// +// Example of a simple mixin: +// +// package google.acl.v1; +// service AccessControl { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v1/{resource=**}:getAcl"; +// } +// } +// +// package google.storage.v2; +// service Storage { +// rpc GetAcl(GetAclRequest) returns (Acl); +// +// // Get a data record. +// rpc GetData(GetDataRequest) returns (Data) { +// option (google.api.http).get = "/v2/{resource=**}"; +// } +// } +// +// Example of a mixin configuration: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// +// The mixin construct implies that all methods in `AccessControl` are +// also declared with same name and request/response types in +// `Storage`. A documentation generator or annotation processor will +// see the effective `Storage.GetAcl` method after inheriting +// documentation and annotations as follows: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/{resource=**}:getAcl"; +// } +// ... +// } +// +// Note how the version in the path pattern changed from `v1` to `v2`. +// +// If the `root` field in the mixin is specified, it should be a +// relative path under which inherited HTTP paths are placed. Example: +// +// apis: +// - name: google.storage.v2.Storage +// mixins: +// - name: google.acl.v1.AccessControl +// root: acls +// +// This implies the following inherited HTTP annotation: +// +// service Storage { +// // Get the underlying ACL object. +// rpc GetAcl(GetAclRequest) returns (Acl) { +// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; +// } +// ... +// } +type Mixin struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fully qualified name of the interface which is included. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // If non-empty specifies a path under which inherited HTTP paths + // are rooted. + Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` +} + +func (x *Mixin) Reset() { + *x = Mixin{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Mixin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Mixin) ProtoMessage() {} + +func (x *Mixin) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_api_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Mixin.ProtoReflect.Descriptor instead. +func (*Mixin) Descriptor() ([]byte, []int) { + return file_google_protobuf_api_proto_rawDescGZIP(), []int{2} +} + +func (x *Mixin) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Mixin) GetRoot() string { + if x != nil { + return x.Root + } + return "" +} + +var File_google_protobuf_api_proto protoreflect.FileDescriptor + +var file_google_protobuf_api_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x24, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, + 0x02, 0x0a, 0x03, 0x41, 0x70, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x6d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x31, 0x0a, + 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x0e, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x6d, 0x69, 0x78, 0x69, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x69, 0x78, 0x69, 0x6e, 0x52, 0x06, 0x6d, 0x69, 0x78, 0x69, 0x6e, + 0x73, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x74, + 0x61, 0x78, 0x22, 0xb2, 0x02, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x2b, 0x0a, 0x11, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x55, 0x72, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x11, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x69, 0x6e, 0x67, 0x12, 0x31, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x52, + 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x22, 0x2f, 0x0a, 0x05, 0x4d, 0x69, 0x78, 0x69, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x42, 0x76, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, + 0x08, 0x41, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, + 0x6f, 0x77, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, + 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_api_proto_rawDescOnce sync.Once + file_google_protobuf_api_proto_rawDescData = file_google_protobuf_api_proto_rawDesc +) + +func file_google_protobuf_api_proto_rawDescGZIP() []byte { + file_google_protobuf_api_proto_rawDescOnce.Do(func() { + file_google_protobuf_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_api_proto_rawDescData) + }) + return file_google_protobuf_api_proto_rawDescData +} + +var file_google_protobuf_api_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_google_protobuf_api_proto_goTypes = []interface{}{ + (*Api)(nil), // 0: google.protobuf.Api + (*Method)(nil), // 1: google.protobuf.Method + (*Mixin)(nil), // 2: google.protobuf.Mixin + (*typepb.Option)(nil), // 3: google.protobuf.Option + (*sourcecontextpb.SourceContext)(nil), // 4: google.protobuf.SourceContext + (typepb.Syntax)(0), // 5: google.protobuf.Syntax +} +var file_google_protobuf_api_proto_depIdxs = []int32{ + 1, // 0: google.protobuf.Api.methods:type_name -> google.protobuf.Method + 3, // 1: google.protobuf.Api.options:type_name -> google.protobuf.Option + 4, // 2: google.protobuf.Api.source_context:type_name -> google.protobuf.SourceContext + 2, // 3: google.protobuf.Api.mixins:type_name -> google.protobuf.Mixin + 5, // 4: google.protobuf.Api.syntax:type_name -> google.protobuf.Syntax + 3, // 5: google.protobuf.Method.options:type_name -> google.protobuf.Option + 5, // 6: google.protobuf.Method.syntax:type_name -> google.protobuf.Syntax + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_google_protobuf_api_proto_init() } +func file_google_protobuf_api_proto_init() { + if File_google_protobuf_api_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Api); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Method); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Mixin); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_api_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_api_proto_goTypes, + DependencyIndexes: file_google_protobuf_api_proto_depIdxs, + MessageInfos: file_google_protobuf_api_proto_msgTypes, + }.Build() + File_google_protobuf_api_proto = out.File + file_google_protobuf_api_proto_rawDesc = nil + file_google_protobuf_api_proto_goTypes = nil + file_google_protobuf_api_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go new file mode 100644 index 0000000..df709a8 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go @@ -0,0 +1,374 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/duration.proto + +// Package durationpb contains generated types for google/protobuf/duration.proto. +// +// The Duration message represents a signed span of time. +// +// # Conversion to a Go Duration +// +// The AsDuration method can be used to convert a Duration message to a +// standard Go time.Duration value: +// +// d := dur.AsDuration() +// ... // make use of d as a time.Duration +// +// Converting to a time.Duration is a common operation so that the extensive +// set of time-based operations provided by the time package can be leveraged. +// See https://golang.org/pkg/time for more information. +// +// The AsDuration method performs the conversion on a best-effort basis. +// Durations with denormal values (e.g., nanoseconds beyond -99999999 and +// +99999999, inclusive; or seconds and nanoseconds with opposite signs) +// are normalized during the conversion to a time.Duration. To manually check for +// invalid Duration per the documented limitations in duration.proto, +// additionally call the CheckValid method: +// +// if err := dur.CheckValid(); err != nil { +// ... // handle error +// } +// +// Note that the documented limitations in duration.proto does not protect a +// Duration from overflowing the representable range of a time.Duration in Go. +// The AsDuration method uses saturation arithmetic such that an overflow clamps +// the resulting value to the closest representable value (e.g., math.MaxInt64 +// for positive overflow and math.MinInt64 for negative overflow). +// +// # Conversion from a Go Duration +// +// The durationpb.New function can be used to construct a Duration message +// from a standard Go time.Duration value: +// +// dur := durationpb.New(d) +// ... // make use of d as a *durationpb.Duration +package durationpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + math "math" + reflect "reflect" + sync "sync" + time "time" +) + +// A Duration represents a signed, fixed-length span of time represented +// as a count of seconds and fractions of seconds at nanosecond +// resolution. It is independent of any calendar and concepts like "day" +// or "month". It is related to Timestamp in that the difference between +// two Timestamp values is a Duration and it can be added or subtracted +// from a Timestamp. Range is approximately +-10,000 years. +// +// # Examples +// +// Example 1: Compute Duration from two Timestamps in pseudo code. +// +// Timestamp start = ...; +// Timestamp end = ...; +// Duration duration = ...; +// +// duration.seconds = end.seconds - start.seconds; +// duration.nanos = end.nanos - start.nanos; +// +// if (duration.seconds < 0 && duration.nanos > 0) { +// duration.seconds += 1; +// duration.nanos -= 1000000000; +// } else if (duration.seconds > 0 && duration.nanos < 0) { +// duration.seconds -= 1; +// duration.nanos += 1000000000; +// } +// +// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. +// +// Timestamp start = ...; +// Duration duration = ...; +// Timestamp end = ...; +// +// end.seconds = start.seconds + duration.seconds; +// end.nanos = start.nanos + duration.nanos; +// +// if (end.nanos < 0) { +// end.seconds -= 1; +// end.nanos += 1000000000; +// } else if (end.nanos >= 1000000000) { +// end.seconds += 1; +// end.nanos -= 1000000000; +// } +// +// Example 3: Compute Duration from datetime.timedelta in Python. +// +// td = datetime.timedelta(days=3, minutes=10) +// duration = Duration() +// duration.FromTimedelta(td) +// +// # JSON Mapping +// +// In JSON format, the Duration type is encoded as a string rather than an +// object, where the string ends in the suffix "s" (indicating seconds) and +// is preceded by the number of seconds, with nanoseconds expressed as +// fractional seconds. For example, 3 seconds with 0 nanoseconds should be +// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +// microsecond should be expressed in JSON format as "3.000001s". +type Duration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Signed seconds of the span of time. Must be from -315,576,000,000 + // to +315,576,000,000 inclusive. Note: these bounds are computed from: + // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + // Signed fractions of a second at nanosecond resolution of the span + // of time. Durations less than one second are represented with a 0 + // `seconds` field and a positive or negative `nanos` field. For durations + // of one second or more, a non-zero value for the `nanos` field must be + // of the same sign as the `seconds` field. Must be from -999,999,999 + // to +999,999,999 inclusive. + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +// New constructs a new Duration from the provided time.Duration. +func New(d time.Duration) *Duration { + nanos := d.Nanoseconds() + secs := nanos / 1e9 + nanos -= secs * 1e9 + return &Duration{Seconds: int64(secs), Nanos: int32(nanos)} +} + +// AsDuration converts x to a time.Duration, +// returning the closest duration value in the event of overflow. +func (x *Duration) AsDuration() time.Duration { + secs := x.GetSeconds() + nanos := x.GetNanos() + d := time.Duration(secs) * time.Second + overflow := d/time.Second != time.Duration(secs) + d += time.Duration(nanos) * time.Nanosecond + overflow = overflow || (secs < 0 && nanos < 0 && d > 0) + overflow = overflow || (secs > 0 && nanos > 0 && d < 0) + if overflow { + switch { + case secs < 0: + return time.Duration(math.MinInt64) + case secs > 0: + return time.Duration(math.MaxInt64) + } + } + return d +} + +// IsValid reports whether the duration is valid. +// It is equivalent to CheckValid == nil. +func (x *Duration) IsValid() bool { + return x.check() == 0 +} + +// CheckValid returns an error if the duration is invalid. +// In particular, it checks whether the value is within the range of +// -10000 years to +10000 years inclusive. +// An error is reported for a nil Duration. +func (x *Duration) CheckValid() error { + switch x.check() { + case invalidNil: + return protoimpl.X.NewError("invalid nil Duration") + case invalidUnderflow: + return protoimpl.X.NewError("duration (%v) exceeds -10000 years", x) + case invalidOverflow: + return protoimpl.X.NewError("duration (%v) exceeds +10000 years", x) + case invalidNanosRange: + return protoimpl.X.NewError("duration (%v) has out-of-range nanos", x) + case invalidNanosSign: + return protoimpl.X.NewError("duration (%v) has seconds and nanos with different signs", x) + default: + return nil + } +} + +const ( + _ = iota + invalidNil + invalidUnderflow + invalidOverflow + invalidNanosRange + invalidNanosSign +) + +func (x *Duration) check() uint { + const absDuration = 315576000000 // 10000yr * 365.25day/yr * 24hr/day * 60min/hr * 60sec/min + secs := x.GetSeconds() + nanos := x.GetNanos() + switch { + case x == nil: + return invalidNil + case secs < -absDuration: + return invalidUnderflow + case secs > +absDuration: + return invalidOverflow + case nanos <= -1e9 || nanos >= +1e9: + return invalidNanosRange + case (secs > 0 && nanos < 0) || (secs < 0 && nanos > 0): + return invalidNanosSign + default: + return 0 + } +} + +func (x *Duration) Reset() { + *x = Duration{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_duration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Duration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Duration) ProtoMessage() {} + +func (x *Duration) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_duration_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Duration.ProtoReflect.Descriptor instead. +func (*Duration) Descriptor() ([]byte, []int) { + return file_google_protobuf_duration_proto_rawDescGZIP(), []int{0} +} + +func (x *Duration) GetSeconds() int64 { + if x != nil { + return x.Seconds + } + return 0 +} + +func (x *Duration) GetNanos() int32 { + if x != nil { + return x.Nanos + } + return 0 +} + +var File_google_protobuf_duration_proto protoreflect.FileDescriptor + +var file_google_protobuf_duration_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x22, 0x3a, 0x0a, 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x83, 0x01, + 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0d, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, + 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, + 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_duration_proto_rawDescOnce sync.Once + file_google_protobuf_duration_proto_rawDescData = file_google_protobuf_duration_proto_rawDesc +) + +func file_google_protobuf_duration_proto_rawDescGZIP() []byte { + file_google_protobuf_duration_proto_rawDescOnce.Do(func() { + file_google_protobuf_duration_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_duration_proto_rawDescData) + }) + return file_google_protobuf_duration_proto_rawDescData +} + +var file_google_protobuf_duration_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_duration_proto_goTypes = []interface{}{ + (*Duration)(nil), // 0: google.protobuf.Duration +} +var file_google_protobuf_duration_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_duration_proto_init() } +func file_google_protobuf_duration_proto_init() { + if File_google_protobuf_duration_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_duration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Duration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_duration_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_duration_proto_goTypes, + DependencyIndexes: file_google_protobuf_duration_proto_depIdxs, + MessageInfos: file_google_protobuf_duration_proto_msgTypes, + }.Build() + File_google_protobuf_duration_proto = out.File + file_google_protobuf_duration_proto_rawDesc = nil + file_google_protobuf_duration_proto_goTypes = nil + file_google_protobuf_duration_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go new file mode 100644 index 0000000..9a7277b --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go @@ -0,0 +1,166 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/empty.proto + +package emptypb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// A generic empty message that you can re-use to avoid defining duplicated +// empty messages in your APIs. A typical example is to use it as the request +// or the response type of an API method. For instance: +// +// service Foo { +// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); +// } +type Empty struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Empty) Reset() { + *x = Empty{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_empty_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Empty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Empty) ProtoMessage() {} + +func (x *Empty) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_empty_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Empty.ProtoReflect.Descriptor instead. +func (*Empty) Descriptor() ([]byte, []int) { + return file_google_protobuf_empty_proto_rawDescGZIP(), []int{0} +} + +var File_google_protobuf_empty_proto protoreflect.FileDescriptor + +var file_google_protobuf_empty_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x07, + 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x7d, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0a, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, + 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, + 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_empty_proto_rawDescOnce sync.Once + file_google_protobuf_empty_proto_rawDescData = file_google_protobuf_empty_proto_rawDesc +) + +func file_google_protobuf_empty_proto_rawDescGZIP() []byte { + file_google_protobuf_empty_proto_rawDescOnce.Do(func() { + file_google_protobuf_empty_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_empty_proto_rawDescData) + }) + return file_google_protobuf_empty_proto_rawDescData +} + +var file_google_protobuf_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_empty_proto_goTypes = []interface{}{ + (*Empty)(nil), // 0: google.protobuf.Empty +} +var file_google_protobuf_empty_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_empty_proto_init() } +func file_google_protobuf_empty_proto_init() { + if File_google_protobuf_empty_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Empty); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_empty_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_empty_proto_goTypes, + DependencyIndexes: file_google_protobuf_empty_proto_depIdxs, + MessageInfos: file_google_protobuf_empty_proto_msgTypes, + }.Build() + File_google_protobuf_empty_proto = out.File + file_google_protobuf_empty_proto_rawDesc = nil + file_google_protobuf_empty_proto_goTypes = nil + file_google_protobuf_empty_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go b/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go new file mode 100644 index 0000000..e8789cb --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/fieldmaskpb/field_mask.pb.go @@ -0,0 +1,588 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/field_mask.proto + +// Package fieldmaskpb contains generated types for google/protobuf/field_mask.proto. +// +// The FieldMask message represents a set of symbolic field paths. +// The paths are specific to some target message type, +// which is not stored within the FieldMask message itself. +// +// # Constructing a FieldMask +// +// The New function is used construct a FieldMask: +// +// var messageType *descriptorpb.DescriptorProto +// fm, err := fieldmaskpb.New(messageType, "field.name", "field.number") +// if err != nil { +// ... // handle error +// } +// ... // make use of fm +// +// The "field.name" and "field.number" paths are valid paths according to the +// google.protobuf.DescriptorProto message. Use of a path that does not correlate +// to valid fields reachable from DescriptorProto would result in an error. +// +// Once a FieldMask message has been constructed, +// the Append method can be used to insert additional paths to the path set: +// +// var messageType *descriptorpb.DescriptorProto +// if err := fm.Append(messageType, "options"); err != nil { +// ... // handle error +// } +// +// # Type checking a FieldMask +// +// In order to verify that a FieldMask represents a set of fields that are +// reachable from some target message type, use the IsValid method: +// +// var messageType *descriptorpb.DescriptorProto +// if fm.IsValid(messageType) { +// ... // make use of fm +// } +// +// IsValid needs to be passed the target message type as an input since the +// FieldMask message itself does not store the message type that the set of paths +// are for. +package fieldmaskpb + +import ( + proto "google.golang.org/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sort "sort" + strings "strings" + sync "sync" +) + +// `FieldMask` represents a set of symbolic field paths, for example: +// +// paths: "f.a" +// paths: "f.b.d" +// +// Here `f` represents a field in some root message, `a` and `b` +// fields in the message found in `f`, and `d` a field found in the +// message in `f.b`. +// +// Field masks are used to specify a subset of fields that should be +// returned by a get operation or modified by an update operation. +// Field masks also have a custom JSON encoding (see below). +// +// # Field Masks in Projections +// +// When used in the context of a projection, a response message or +// sub-message is filtered by the API to only contain those fields as +// specified in the mask. For example, if the mask in the previous +// example is applied to a response message as follows: +// +// f { +// a : 22 +// b { +// d : 1 +// x : 2 +// } +// y : 13 +// } +// z: 8 +// +// The result will not contain specific values for fields x,y and z +// (their value will be set to the default, and omitted in proto text +// output): +// +// f { +// a : 22 +// b { +// d : 1 +// } +// } +// +// A repeated field is not allowed except at the last position of a +// paths string. +// +// If a FieldMask object is not present in a get operation, the +// operation applies to all fields (as if a FieldMask of all fields +// had been specified). +// +// Note that a field mask does not necessarily apply to the +// top-level response message. In case of a REST get operation, the +// field mask applies directly to the response, but in case of a REST +// list operation, the mask instead applies to each individual message +// in the returned resource list. In case of a REST custom method, +// other definitions may be used. Where the mask applies will be +// clearly documented together with its declaration in the API. In +// any case, the effect on the returned resource/resources is required +// behavior for APIs. +// +// # Field Masks in Update Operations +// +// A field mask in update operations specifies which fields of the +// targeted resource are going to be updated. The API is required +// to only change the values of the fields as specified in the mask +// and leave the others untouched. If a resource is passed in to +// describe the updated values, the API ignores the values of all +// fields not covered by the mask. +// +// If a repeated field is specified for an update operation, new values will +// be appended to the existing repeated field in the target resource. Note that +// a repeated field is only allowed in the last position of a `paths` string. +// +// If a sub-message is specified in the last position of the field mask for an +// update operation, then new value will be merged into the existing sub-message +// in the target resource. +// +// For example, given the target message: +// +// f { +// b { +// d: 1 +// x: 2 +// } +// c: [1] +// } +// +// And an update message: +// +// f { +// b { +// d: 10 +// } +// c: [2] +// } +// +// then if the field mask is: +// +// paths: ["f.b", "f.c"] +// +// then the result will be: +// +// f { +// b { +// d: 10 +// x: 2 +// } +// c: [1, 2] +// } +// +// An implementation may provide options to override this default behavior for +// repeated and message fields. +// +// In order to reset a field's value to the default, the field must +// be in the mask and set to the default value in the provided resource. +// Hence, in order to reset all fields of a resource, provide a default +// instance of the resource and set all fields in the mask, or do +// not provide a mask as described below. +// +// If a field mask is not present on update, the operation applies to +// all fields (as if a field mask of all fields has been specified). +// Note that in the presence of schema evolution, this may mean that +// fields the client does not know and has therefore not filled into +// the request will be reset to their default. If this is unwanted +// behavior, a specific service may require a client to always specify +// a field mask, producing an error if not. +// +// As with get operations, the location of the resource which +// describes the updated values in the request message depends on the +// operation kind. In any case, the effect of the field mask is +// required to be honored by the API. +// +// ## Considerations for HTTP REST +// +// The HTTP kind of an update operation which uses a field mask must +// be set to PATCH instead of PUT in order to satisfy HTTP semantics +// (PUT must only be used for full updates). +// +// # JSON Encoding of Field Masks +// +// In JSON, a field mask is encoded as a single string where paths are +// separated by a comma. Fields name in each path are converted +// to/from lower-camel naming conventions. +// +// As an example, consider the following message declarations: +// +// message Profile { +// User user = 1; +// Photo photo = 2; +// } +// message User { +// string display_name = 1; +// string address = 2; +// } +// +// In proto a field mask for `Profile` may look as such: +// +// mask { +// paths: "user.display_name" +// paths: "photo" +// } +// +// In JSON, the same mask is represented as below: +// +// { +// mask: "user.displayName,photo" +// } +// +// # Field Masks and Oneof Fields +// +// Field masks treat fields in oneofs just as regular fields. Consider the +// following message: +// +// message SampleMessage { +// oneof test_oneof { +// string name = 4; +// SubMessage sub_message = 9; +// } +// } +// +// The field mask can be: +// +// mask { +// paths: "name" +// } +// +// Or: +// +// mask { +// paths: "sub_message" +// } +// +// Note that oneof type names ("test_oneof" in this case) cannot be used in +// paths. +// +// ## Field Mask Verification +// +// The implementation of any API method which has a FieldMask type field in the +// request should verify the included field paths, and return an +// `INVALID_ARGUMENT` error if any path is unmappable. +type FieldMask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The set of field mask paths. + Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` +} + +// New constructs a field mask from a list of paths and verifies that +// each one is valid according to the specified message type. +func New(m proto.Message, paths ...string) (*FieldMask, error) { + x := new(FieldMask) + return x, x.Append(m, paths...) +} + +// Union returns the union of all the paths in the input field masks. +func Union(mx *FieldMask, my *FieldMask, ms ...*FieldMask) *FieldMask { + var out []string + out = append(out, mx.GetPaths()...) + out = append(out, my.GetPaths()...) + for _, m := range ms { + out = append(out, m.GetPaths()...) + } + return &FieldMask{Paths: normalizePaths(out)} +} + +// Intersect returns the intersection of all the paths in the input field masks. +func Intersect(mx *FieldMask, my *FieldMask, ms ...*FieldMask) *FieldMask { + var ss1, ss2 []string // reused buffers for performance + intersect := func(out, in []string) []string { + ss1 = normalizePaths(append(ss1[:0], in...)) + ss2 = normalizePaths(append(ss2[:0], out...)) + out = out[:0] + for i1, i2 := 0, 0; i1 < len(ss1) && i2 < len(ss2); { + switch s1, s2 := ss1[i1], ss2[i2]; { + case hasPathPrefix(s1, s2): + out = append(out, s1) + i1++ + case hasPathPrefix(s2, s1): + out = append(out, s2) + i2++ + case lessPath(s1, s2): + i1++ + case lessPath(s2, s1): + i2++ + } + } + return out + } + + out := Union(mx, my, ms...).GetPaths() + out = intersect(out, mx.GetPaths()) + out = intersect(out, my.GetPaths()) + for _, m := range ms { + out = intersect(out, m.GetPaths()) + } + return &FieldMask{Paths: normalizePaths(out)} +} + +// IsValid reports whether all the paths are syntactically valid and +// refer to known fields in the specified message type. +// It reports false for a nil FieldMask. +func (x *FieldMask) IsValid(m proto.Message) bool { + paths := x.GetPaths() + return x != nil && numValidPaths(m, paths) == len(paths) +} + +// Append appends a list of paths to the mask and verifies that each one +// is valid according to the specified message type. +// An invalid path is not appended and breaks insertion of subsequent paths. +func (x *FieldMask) Append(m proto.Message, paths ...string) error { + numValid := numValidPaths(m, paths) + x.Paths = append(x.Paths, paths[:numValid]...) + paths = paths[numValid:] + if len(paths) > 0 { + name := m.ProtoReflect().Descriptor().FullName() + return protoimpl.X.NewError("invalid path %q for message %q", paths[0], name) + } + return nil +} + +func numValidPaths(m proto.Message, paths []string) int { + md0 := m.ProtoReflect().Descriptor() + for i, path := range paths { + md := md0 + if !rangeFields(path, func(field string) bool { + // Search the field within the message. + if md == nil { + return false // not within a message + } + fd := md.Fields().ByName(protoreflect.Name(field)) + // The real field name of a group is the message name. + if fd == nil { + gd := md.Fields().ByName(protoreflect.Name(strings.ToLower(field))) + if gd != nil && gd.Kind() == protoreflect.GroupKind && string(gd.Message().Name()) == field { + fd = gd + } + } else if fd.Kind() == protoreflect.GroupKind && string(fd.Message().Name()) != field { + fd = nil + } + if fd == nil { + return false // message has does not have this field + } + + // Identify the next message to search within. + md = fd.Message() // may be nil + + // Repeated fields are only allowed at the last position. + if fd.IsList() || fd.IsMap() { + md = nil + } + + return true + }) { + return i + } + } + return len(paths) +} + +// Normalize converts the mask to its canonical form where all paths are sorted +// and redundant paths are removed. +func (x *FieldMask) Normalize() { + x.Paths = normalizePaths(x.Paths) +} + +func normalizePaths(paths []string) []string { + sort.Slice(paths, func(i, j int) bool { + return lessPath(paths[i], paths[j]) + }) + + // Elide any path that is a prefix match on the previous. + out := paths[:0] + for _, path := range paths { + if len(out) > 0 && hasPathPrefix(path, out[len(out)-1]) { + continue + } + out = append(out, path) + } + return out +} + +// hasPathPrefix is like strings.HasPrefix, but further checks for either +// an exact matche or that the prefix is delimited by a dot. +func hasPathPrefix(path, prefix string) bool { + return strings.HasPrefix(path, prefix) && (len(path) == len(prefix) || path[len(prefix)] == '.') +} + +// lessPath is a lexicographical comparison where dot is specially treated +// as the smallest symbol. +func lessPath(x, y string) bool { + for i := 0; i < len(x) && i < len(y); i++ { + if x[i] != y[i] { + return (x[i] - '.') < (y[i] - '.') + } + } + return len(x) < len(y) +} + +// rangeFields is like strings.Split(path, "."), but avoids allocations by +// iterating over each field in place and calling a iterator function. +func rangeFields(path string, f func(field string) bool) bool { + for { + var field string + if i := strings.IndexByte(path, '.'); i >= 0 { + field, path = path[:i], path[i:] + } else { + field, path = path, "" + } + + if !f(field) { + return false + } + + if len(path) == 0 { + return true + } + path = strings.TrimPrefix(path, ".") + } +} + +func (x *FieldMask) Reset() { + *x = FieldMask{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_field_mask_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FieldMask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldMask) ProtoMessage() {} + +func (x *FieldMask) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_field_mask_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldMask.ProtoReflect.Descriptor instead. +func (*FieldMask) Descriptor() ([]byte, []int) { + return file_google_protobuf_field_mask_proto_rawDescGZIP(), []int{0} +} + +func (x *FieldMask) GetPaths() []string { + if x != nil { + return x.Paths + } + return nil +} + +var File_google_protobuf_field_mask_proto protoreflect.FileDescriptor + +var file_google_protobuf_field_mask_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x22, 0x21, 0x0a, 0x09, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x42, 0x85, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, + 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x6d, 0x61, + 0x73, 0x6b, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, + 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_field_mask_proto_rawDescOnce sync.Once + file_google_protobuf_field_mask_proto_rawDescData = file_google_protobuf_field_mask_proto_rawDesc +) + +func file_google_protobuf_field_mask_proto_rawDescGZIP() []byte { + file_google_protobuf_field_mask_proto_rawDescOnce.Do(func() { + file_google_protobuf_field_mask_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_field_mask_proto_rawDescData) + }) + return file_google_protobuf_field_mask_proto_rawDescData +} + +var file_google_protobuf_field_mask_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_field_mask_proto_goTypes = []interface{}{ + (*FieldMask)(nil), // 0: google.protobuf.FieldMask +} +var file_google_protobuf_field_mask_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_field_mask_proto_init() } +func file_google_protobuf_field_mask_proto_init() { + if File_google_protobuf_field_mask_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_field_mask_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FieldMask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_field_mask_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_field_mask_proto_goTypes, + DependencyIndexes: file_google_protobuf_field_mask_proto_depIdxs, + MessageInfos: file_google_protobuf_field_mask_proto_msgTypes, + }.Build() + File_google_protobuf_field_mask_proto = out.File + file_google_protobuf_field_mask_proto_rawDesc = nil + file_google_protobuf_field_mask_proto_goTypes = nil + file_google_protobuf_field_mask_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/sourcecontextpb/source_context.pb.go b/vendor/google.golang.org/protobuf/types/known/sourcecontextpb/source_context.pb.go new file mode 100644 index 0000000..0980d5a --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/sourcecontextpb/source_context.pb.go @@ -0,0 +1,176 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/source_context.proto + +package sourcecontextpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// `SourceContext` represents information about the source of a +// protobuf element, like the file in which it is defined. +type SourceContext struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The path-qualified name of the .proto file that contained the associated + // protobuf element. For example: `"google/protobuf/source_context.proto"`. + FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` +} + +func (x *SourceContext) Reset() { + *x = SourceContext{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_source_context_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceContext) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceContext) ProtoMessage() {} + +func (x *SourceContext) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_source_context_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceContext.ProtoReflect.Descriptor instead. +func (*SourceContext) Descriptor() ([]byte, []int) { + return file_google_protobuf_source_context_proto_rawDescGZIP(), []int{0} +} + +func (x *SourceContext) GetFileName() string { + if x != nil { + return x.FileName + } + return "" +} + +var File_google_protobuf_source_context_proto protoreflect.FileDescriptor + +var file_google_protobuf_source_context_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x8a, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x12, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, + 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x47, 0x50, + 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_source_context_proto_rawDescOnce sync.Once + file_google_protobuf_source_context_proto_rawDescData = file_google_protobuf_source_context_proto_rawDesc +) + +func file_google_protobuf_source_context_proto_rawDescGZIP() []byte { + file_google_protobuf_source_context_proto_rawDescOnce.Do(func() { + file_google_protobuf_source_context_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_source_context_proto_rawDescData) + }) + return file_google_protobuf_source_context_proto_rawDescData +} + +var file_google_protobuf_source_context_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_source_context_proto_goTypes = []interface{}{ + (*SourceContext)(nil), // 0: google.protobuf.SourceContext +} +var file_google_protobuf_source_context_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_source_context_proto_init() } +func file_google_protobuf_source_context_proto_init() { + if File_google_protobuf_source_context_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_source_context_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceContext); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_source_context_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_source_context_proto_goTypes, + DependencyIndexes: file_google_protobuf_source_context_proto_depIdxs, + MessageInfos: file_google_protobuf_source_context_proto_msgTypes, + }.Build() + File_google_protobuf_source_context_proto = out.File + file_google_protobuf_source_context_proto_rawDesc = nil + file_google_protobuf_source_context_proto_goTypes = nil + file_google_protobuf_source_context_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go b/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go new file mode 100644 index 0000000..9577ed5 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/structpb/struct.pb.go @@ -0,0 +1,810 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/struct.proto + +// Package structpb contains generated types for google/protobuf/struct.proto. +// +// The messages (i.e., Value, Struct, and ListValue) defined in struct.proto are +// used to represent arbitrary JSON. The Value message represents a JSON value, +// the Struct message represents a JSON object, and the ListValue message +// represents a JSON array. See https://json.org for more information. +// +// The Value, Struct, and ListValue types have generated MarshalJSON and +// UnmarshalJSON methods such that they serialize JSON equivalent to what the +// messages themselves represent. Use of these types with the +// "google.golang.org/protobuf/encoding/protojson" package +// ensures that they will be serialized as their JSON equivalent. +// +// # Conversion to and from a Go interface +// +// The standard Go "encoding/json" package has functionality to serialize +// arbitrary types to a large degree. The Value.AsInterface, Struct.AsMap, and +// ListValue.AsSlice methods can convert the protobuf message representation into +// a form represented by interface{}, map[string]interface{}, and []interface{}. +// This form can be used with other packages that operate on such data structures +// and also directly with the standard json package. +// +// In order to convert the interface{}, map[string]interface{}, and []interface{} +// forms back as Value, Struct, and ListValue messages, use the NewStruct, +// NewList, and NewValue constructor functions. +// +// # Example usage +// +// Consider the following example JSON object: +// +// { +// "firstName": "John", +// "lastName": "Smith", +// "isAlive": true, +// "age": 27, +// "address": { +// "streetAddress": "21 2nd Street", +// "city": "New York", +// "state": "NY", +// "postalCode": "10021-3100" +// }, +// "phoneNumbers": [ +// { +// "type": "home", +// "number": "212 555-1234" +// }, +// { +// "type": "office", +// "number": "646 555-4567" +// } +// ], +// "children": [], +// "spouse": null +// } +// +// To construct a Value message representing the above JSON object: +// +// m, err := structpb.NewValue(map[string]interface{}{ +// "firstName": "John", +// "lastName": "Smith", +// "isAlive": true, +// "age": 27, +// "address": map[string]interface{}{ +// "streetAddress": "21 2nd Street", +// "city": "New York", +// "state": "NY", +// "postalCode": "10021-3100", +// }, +// "phoneNumbers": []interface{}{ +// map[string]interface{}{ +// "type": "home", +// "number": "212 555-1234", +// }, +// map[string]interface{}{ +// "type": "office", +// "number": "646 555-4567", +// }, +// }, +// "children": []interface{}{}, +// "spouse": nil, +// }) +// if err != nil { +// ... // handle error +// } +// ... // make use of m as a *structpb.Value +package structpb + +import ( + base64 "encoding/base64" + protojson "google.golang.org/protobuf/encoding/protojson" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + math "math" + reflect "reflect" + sync "sync" + utf8 "unicode/utf8" +) + +// `NullValue` is a singleton enumeration to represent the null value for the +// `Value` type union. +// +// The JSON representation for `NullValue` is JSON `null`. +type NullValue int32 + +const ( + // Null value. + NullValue_NULL_VALUE NullValue = 0 +) + +// Enum value maps for NullValue. +var ( + NullValue_name = map[int32]string{ + 0: "NULL_VALUE", + } + NullValue_value = map[string]int32{ + "NULL_VALUE": 0, + } +) + +func (x NullValue) Enum() *NullValue { + p := new(NullValue) + *p = x + return p +} + +func (x NullValue) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NullValue) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_struct_proto_enumTypes[0].Descriptor() +} + +func (NullValue) Type() protoreflect.EnumType { + return &file_google_protobuf_struct_proto_enumTypes[0] +} + +func (x NullValue) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NullValue.Descriptor instead. +func (NullValue) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_struct_proto_rawDescGZIP(), []int{0} +} + +// `Struct` represents a structured data value, consisting of fields +// which map to dynamically typed values. In some languages, `Struct` +// might be supported by a native representation. For example, in +// scripting languages like JS a struct is represented as an +// object. The details of that representation are described together +// with the proto support for the language. +// +// The JSON representation for `Struct` is JSON object. +type Struct struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unordered map of dynamically typed values. + Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +// NewStruct constructs a Struct from a general-purpose Go map. +// The map keys must be valid UTF-8. +// The map values are converted using NewValue. +func NewStruct(v map[string]interface{}) (*Struct, error) { + x := &Struct{Fields: make(map[string]*Value, len(v))} + for k, v := range v { + if !utf8.ValidString(k) { + return nil, protoimpl.X.NewError("invalid UTF-8 in string: %q", k) + } + var err error + x.Fields[k], err = NewValue(v) + if err != nil { + return nil, err + } + } + return x, nil +} + +// AsMap converts x to a general-purpose Go map. +// The map values are converted by calling Value.AsInterface. +func (x *Struct) AsMap() map[string]interface{} { + f := x.GetFields() + vs := make(map[string]interface{}, len(f)) + for k, v := range f { + vs[k] = v.AsInterface() + } + return vs +} + +func (x *Struct) MarshalJSON() ([]byte, error) { + return protojson.Marshal(x) +} + +func (x *Struct) UnmarshalJSON(b []byte) error { + return protojson.Unmarshal(b, x) +} + +func (x *Struct) Reset() { + *x = Struct{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_struct_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Struct) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Struct) ProtoMessage() {} + +func (x *Struct) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_struct_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Struct.ProtoReflect.Descriptor instead. +func (*Struct) Descriptor() ([]byte, []int) { + return file_google_protobuf_struct_proto_rawDescGZIP(), []int{0} +} + +func (x *Struct) GetFields() map[string]*Value { + if x != nil { + return x.Fields + } + return nil +} + +// `Value` represents a dynamically typed value which can be either +// null, a number, a string, a boolean, a recursive struct value, or a +// list of values. A producer of value is expected to set one of these +// variants. Absence of any variant indicates an error. +// +// The JSON representation for `Value` is JSON value. +type Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The kind of value. + // + // Types that are assignable to Kind: + // + // *Value_NullValue + // *Value_NumberValue + // *Value_StringValue + // *Value_BoolValue + // *Value_StructValue + // *Value_ListValue + Kind isValue_Kind `protobuf_oneof:"kind"` +} + +// NewValue constructs a Value from a general-purpose Go interface. +// +// ╔════════════════════════╤════════════════════════════════════════════╗ +// ║ Go type │ Conversion ║ +// ╠════════════════════════╪════════════════════════════════════════════╣ +// ║ nil │ stored as NullValue ║ +// ║ bool │ stored as BoolValue ║ +// ║ int, int32, int64 │ stored as NumberValue ║ +// ║ uint, uint32, uint64 │ stored as NumberValue ║ +// ║ float32, float64 │ stored as NumberValue ║ +// ║ string │ stored as StringValue; must be valid UTF-8 ║ +// ║ []byte │ stored as StringValue; base64-encoded ║ +// ║ map[string]interface{} │ stored as StructValue ║ +// ║ []interface{} │ stored as ListValue ║ +// ╚════════════════════════╧════════════════════════════════════════════╝ +// +// When converting an int64 or uint64 to a NumberValue, numeric precision loss +// is possible since they are stored as a float64. +func NewValue(v interface{}) (*Value, error) { + switch v := v.(type) { + case nil: + return NewNullValue(), nil + case bool: + return NewBoolValue(v), nil + case int: + return NewNumberValue(float64(v)), nil + case int32: + return NewNumberValue(float64(v)), nil + case int64: + return NewNumberValue(float64(v)), nil + case uint: + return NewNumberValue(float64(v)), nil + case uint32: + return NewNumberValue(float64(v)), nil + case uint64: + return NewNumberValue(float64(v)), nil + case float32: + return NewNumberValue(float64(v)), nil + case float64: + return NewNumberValue(float64(v)), nil + case string: + if !utf8.ValidString(v) { + return nil, protoimpl.X.NewError("invalid UTF-8 in string: %q", v) + } + return NewStringValue(v), nil + case []byte: + s := base64.StdEncoding.EncodeToString(v) + return NewStringValue(s), nil + case map[string]interface{}: + v2, err := NewStruct(v) + if err != nil { + return nil, err + } + return NewStructValue(v2), nil + case []interface{}: + v2, err := NewList(v) + if err != nil { + return nil, err + } + return NewListValue(v2), nil + default: + return nil, protoimpl.X.NewError("invalid type: %T", v) + } +} + +// NewNullValue constructs a new null Value. +func NewNullValue() *Value { + return &Value{Kind: &Value_NullValue{NullValue: NullValue_NULL_VALUE}} +} + +// NewBoolValue constructs a new boolean Value. +func NewBoolValue(v bool) *Value { + return &Value{Kind: &Value_BoolValue{BoolValue: v}} +} + +// NewNumberValue constructs a new number Value. +func NewNumberValue(v float64) *Value { + return &Value{Kind: &Value_NumberValue{NumberValue: v}} +} + +// NewStringValue constructs a new string Value. +func NewStringValue(v string) *Value { + return &Value{Kind: &Value_StringValue{StringValue: v}} +} + +// NewStructValue constructs a new struct Value. +func NewStructValue(v *Struct) *Value { + return &Value{Kind: &Value_StructValue{StructValue: v}} +} + +// NewListValue constructs a new list Value. +func NewListValue(v *ListValue) *Value { + return &Value{Kind: &Value_ListValue{ListValue: v}} +} + +// AsInterface converts x to a general-purpose Go interface. +// +// Calling Value.MarshalJSON and "encoding/json".Marshal on this output produce +// semantically equivalent JSON (assuming no errors occur). +// +// Floating-point values (i.e., "NaN", "Infinity", and "-Infinity") are +// converted as strings to remain compatible with MarshalJSON. +func (x *Value) AsInterface() interface{} { + switch v := x.GetKind().(type) { + case *Value_NumberValue: + if v != nil { + switch { + case math.IsNaN(v.NumberValue): + return "NaN" + case math.IsInf(v.NumberValue, +1): + return "Infinity" + case math.IsInf(v.NumberValue, -1): + return "-Infinity" + default: + return v.NumberValue + } + } + case *Value_StringValue: + if v != nil { + return v.StringValue + } + case *Value_BoolValue: + if v != nil { + return v.BoolValue + } + case *Value_StructValue: + if v != nil { + return v.StructValue.AsMap() + } + case *Value_ListValue: + if v != nil { + return v.ListValue.AsSlice() + } + } + return nil +} + +func (x *Value) MarshalJSON() ([]byte, error) { + return protojson.Marshal(x) +} + +func (x *Value) UnmarshalJSON(b []byte) error { + return protojson.Unmarshal(b, x) +} + +func (x *Value) Reset() { + *x = Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_struct_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Value) ProtoMessage() {} + +func (x *Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_struct_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Value.ProtoReflect.Descriptor instead. +func (*Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_struct_proto_rawDescGZIP(), []int{1} +} + +func (m *Value) GetKind() isValue_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (x *Value) GetNullValue() NullValue { + if x, ok := x.GetKind().(*Value_NullValue); ok { + return x.NullValue + } + return NullValue_NULL_VALUE +} + +func (x *Value) GetNumberValue() float64 { + if x, ok := x.GetKind().(*Value_NumberValue); ok { + return x.NumberValue + } + return 0 +} + +func (x *Value) GetStringValue() string { + if x, ok := x.GetKind().(*Value_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *Value) GetBoolValue() bool { + if x, ok := x.GetKind().(*Value_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (x *Value) GetStructValue() *Struct { + if x, ok := x.GetKind().(*Value_StructValue); ok { + return x.StructValue + } + return nil +} + +func (x *Value) GetListValue() *ListValue { + if x, ok := x.GetKind().(*Value_ListValue); ok { + return x.ListValue + } + return nil +} + +type isValue_Kind interface { + isValue_Kind() +} + +type Value_NullValue struct { + // Represents a null value. + NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` +} + +type Value_NumberValue struct { + // Represents a double value. + NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +type Value_StringValue struct { + // Represents a string value. + StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Value_BoolValue struct { + // Represents a boolean value. + BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type Value_StructValue struct { + // Represents a structured value. + StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"` +} + +type Value_ListValue struct { + // Represents a repeated `Value`. + ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof"` +} + +func (*Value_NullValue) isValue_Kind() {} + +func (*Value_NumberValue) isValue_Kind() {} + +func (*Value_StringValue) isValue_Kind() {} + +func (*Value_BoolValue) isValue_Kind() {} + +func (*Value_StructValue) isValue_Kind() {} + +func (*Value_ListValue) isValue_Kind() {} + +// `ListValue` is a wrapper around a repeated field of values. +// +// The JSON representation for `ListValue` is JSON array. +type ListValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Repeated field of dynamically typed values. + Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +// NewList constructs a ListValue from a general-purpose Go slice. +// The slice elements are converted using NewValue. +func NewList(v []interface{}) (*ListValue, error) { + x := &ListValue{Values: make([]*Value, len(v))} + for i, v := range v { + var err error + x.Values[i], err = NewValue(v) + if err != nil { + return nil, err + } + } + return x, nil +} + +// AsSlice converts x to a general-purpose Go slice. +// The slice elements are converted by calling Value.AsInterface. +func (x *ListValue) AsSlice() []interface{} { + vals := x.GetValues() + vs := make([]interface{}, len(vals)) + for i, v := range vals { + vs[i] = v.AsInterface() + } + return vs +} + +func (x *ListValue) MarshalJSON() ([]byte, error) { + return protojson.Marshal(x) +} + +func (x *ListValue) UnmarshalJSON(b []byte) error { + return protojson.Unmarshal(b, x) +} + +func (x *ListValue) Reset() { + *x = ListValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_struct_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValue) ProtoMessage() {} + +func (x *ListValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_struct_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListValue.ProtoReflect.Descriptor instead. +func (*ListValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_struct_proto_rawDescGZIP(), []int{2} +} + +func (x *ListValue) GetValues() []*Value { + if x != nil { + return x.Values + } + return nil +} + +var File_google_protobuf_struct_proto protoreflect.FileDescriptor + +var file_google_protobuf_struct_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, + 0x98, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x1a, 0x51, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb2, 0x02, 0x0a, 0x05, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, + 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, + 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x0c, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6c, 0x69, + 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, + 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, + 0x3b, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x2a, 0x1b, 0x0a, 0x09, + 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x55, 0x4c, + 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x42, 0x7f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x42, 0x0b, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, + 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x70, 0x62, + 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, + 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_google_protobuf_struct_proto_rawDescOnce sync.Once + file_google_protobuf_struct_proto_rawDescData = file_google_protobuf_struct_proto_rawDesc +) + +func file_google_protobuf_struct_proto_rawDescGZIP() []byte { + file_google_protobuf_struct_proto_rawDescOnce.Do(func() { + file_google_protobuf_struct_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_struct_proto_rawDescData) + }) + return file_google_protobuf_struct_proto_rawDescData +} + +var file_google_protobuf_struct_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_protobuf_struct_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_google_protobuf_struct_proto_goTypes = []interface{}{ + (NullValue)(0), // 0: google.protobuf.NullValue + (*Struct)(nil), // 1: google.protobuf.Struct + (*Value)(nil), // 2: google.protobuf.Value + (*ListValue)(nil), // 3: google.protobuf.ListValue + nil, // 4: google.protobuf.Struct.FieldsEntry +} +var file_google_protobuf_struct_proto_depIdxs = []int32{ + 4, // 0: google.protobuf.Struct.fields:type_name -> google.protobuf.Struct.FieldsEntry + 0, // 1: google.protobuf.Value.null_value:type_name -> google.protobuf.NullValue + 1, // 2: google.protobuf.Value.struct_value:type_name -> google.protobuf.Struct + 3, // 3: google.protobuf.Value.list_value:type_name -> google.protobuf.ListValue + 2, // 4: google.protobuf.ListValue.values:type_name -> google.protobuf.Value + 2, // 5: google.protobuf.Struct.FieldsEntry.value:type_name -> google.protobuf.Value + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_google_protobuf_struct_proto_init() } +func file_google_protobuf_struct_proto_init() { + if File_google_protobuf_struct_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_struct_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Struct); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_struct_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_struct_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_google_protobuf_struct_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Value_NullValue)(nil), + (*Value_NumberValue)(nil), + (*Value_StringValue)(nil), + (*Value_BoolValue)(nil), + (*Value_StructValue)(nil), + (*Value_ListValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_struct_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_struct_proto_goTypes, + DependencyIndexes: file_google_protobuf_struct_proto_depIdxs, + EnumInfos: file_google_protobuf_struct_proto_enumTypes, + MessageInfos: file_google_protobuf_struct_proto_msgTypes, + }.Build() + File_google_protobuf_struct_proto = out.File + file_google_protobuf_struct_proto_rawDesc = nil + file_google_protobuf_struct_proto_goTypes = nil + file_google_protobuf_struct_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go new file mode 100644 index 0000000..61f69fc --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go @@ -0,0 +1,383 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/timestamp.proto + +// Package timestamppb contains generated types for google/protobuf/timestamp.proto. +// +// The Timestamp message represents a timestamp, +// an instant in time since the Unix epoch (January 1st, 1970). +// +// # Conversion to a Go Time +// +// The AsTime method can be used to convert a Timestamp message to a +// standard Go time.Time value in UTC: +// +// t := ts.AsTime() +// ... // make use of t as a time.Time +// +// Converting to a time.Time is a common operation so that the extensive +// set of time-based operations provided by the time package can be leveraged. +// See https://golang.org/pkg/time for more information. +// +// The AsTime method performs the conversion on a best-effort basis. Timestamps +// with denormal values (e.g., nanoseconds beyond 0 and 99999999, inclusive) +// are normalized during the conversion to a time.Time. To manually check for +// invalid Timestamps per the documented limitations in timestamp.proto, +// additionally call the CheckValid method: +// +// if err := ts.CheckValid(); err != nil { +// ... // handle error +// } +// +// # Conversion from a Go Time +// +// The timestamppb.New function can be used to construct a Timestamp message +// from a standard Go time.Time value: +// +// ts := timestamppb.New(t) +// ... // make use of ts as a *timestamppb.Timestamp +// +// In order to construct a Timestamp representing the current time, use Now: +// +// ts := timestamppb.Now() +// ... // make use of ts as a *timestamppb.Timestamp +package timestamppb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + time "time" +) + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// Example 5: Compute Timestamp from Java `Instant.now()`. +// +// Instant now = Instant.now(); +// +// Timestamp timestamp = +// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +// .setNanos(now.getNano()).build(); +// +// Example 6: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D +// ) to obtain a formatter capable of generating timestamps in this format. +type Timestamp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` +} + +// Now constructs a new Timestamp from the current time. +func Now() *Timestamp { + return New(time.Now()) +} + +// New constructs a new Timestamp from the provided time.Time. +func New(t time.Time) *Timestamp { + return &Timestamp{Seconds: int64(t.Unix()), Nanos: int32(t.Nanosecond())} +} + +// AsTime converts x to a time.Time. +func (x *Timestamp) AsTime() time.Time { + return time.Unix(int64(x.GetSeconds()), int64(x.GetNanos())).UTC() +} + +// IsValid reports whether the timestamp is valid. +// It is equivalent to CheckValid == nil. +func (x *Timestamp) IsValid() bool { + return x.check() == 0 +} + +// CheckValid returns an error if the timestamp is invalid. +// In particular, it checks whether the value represents a date that is +// in the range of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. +// An error is reported for a nil Timestamp. +func (x *Timestamp) CheckValid() error { + switch x.check() { + case invalidNil: + return protoimpl.X.NewError("invalid nil Timestamp") + case invalidUnderflow: + return protoimpl.X.NewError("timestamp (%v) before 0001-01-01", x) + case invalidOverflow: + return protoimpl.X.NewError("timestamp (%v) after 9999-12-31", x) + case invalidNanos: + return protoimpl.X.NewError("timestamp (%v) has out-of-range nanos", x) + default: + return nil + } +} + +const ( + _ = iota + invalidNil + invalidUnderflow + invalidOverflow + invalidNanos +) + +func (x *Timestamp) check() uint { + const minTimestamp = -62135596800 // Seconds between 1970-01-01T00:00:00Z and 0001-01-01T00:00:00Z, inclusive + const maxTimestamp = +253402300799 // Seconds between 1970-01-01T00:00:00Z and 9999-12-31T23:59:59Z, inclusive + secs := x.GetSeconds() + nanos := x.GetNanos() + switch { + case x == nil: + return invalidNil + case secs < minTimestamp: + return invalidUnderflow + case secs > maxTimestamp: + return invalidOverflow + case nanos < 0 || nanos >= 1e9: + return invalidNanos + default: + return 0 + } +} + +func (x *Timestamp) Reset() { + *x = Timestamp{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_timestamp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Timestamp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Timestamp) ProtoMessage() {} + +func (x *Timestamp) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_timestamp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Timestamp.ProtoReflect.Descriptor instead. +func (*Timestamp) Descriptor() ([]byte, []int) { + return file_google_protobuf_timestamp_proto_rawDescGZIP(), []int{0} +} + +func (x *Timestamp) GetSeconds() int64 { + if x != nil { + return x.Seconds + } + return 0 +} + +func (x *Timestamp) GetNanos() int32 { + if x != nil { + return x.Nanos + } + return 0 +} + +var File_google_protobuf_timestamp_proto protoreflect.FileDescriptor + +var file_google_protobuf_timestamp_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x22, 0x3b, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, + 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, + 0x85, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x70, 0x62, 0xf8, 0x01, 0x01, + 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, + 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_timestamp_proto_rawDescOnce sync.Once + file_google_protobuf_timestamp_proto_rawDescData = file_google_protobuf_timestamp_proto_rawDesc +) + +func file_google_protobuf_timestamp_proto_rawDescGZIP() []byte { + file_google_protobuf_timestamp_proto_rawDescOnce.Do(func() { + file_google_protobuf_timestamp_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_timestamp_proto_rawDescData) + }) + return file_google_protobuf_timestamp_proto_rawDescData +} + +var file_google_protobuf_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_google_protobuf_timestamp_proto_goTypes = []interface{}{ + (*Timestamp)(nil), // 0: google.protobuf.Timestamp +} +var file_google_protobuf_timestamp_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_timestamp_proto_init() } +func file_google_protobuf_timestamp_proto_init() { + if File_google_protobuf_timestamp_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_timestamp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Timestamp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_timestamp_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_timestamp_proto_goTypes, + DependencyIndexes: file_google_protobuf_timestamp_proto_depIdxs, + MessageInfos: file_google_protobuf_timestamp_proto_msgTypes, + }.Build() + File_google_protobuf_timestamp_proto = out.File + file_google_protobuf_timestamp_proto_rawDesc = nil + file_google_protobuf_timestamp_proto_goTypes = nil + file_google_protobuf_timestamp_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/typepb/type.pb.go b/vendor/google.golang.org/protobuf/types/known/typepb/type.pb.go new file mode 100644 index 0000000..a42c8fc --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/typepb/type.pb.go @@ -0,0 +1,964 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/type.proto + +package typepb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + sourcecontextpb "google.golang.org/protobuf/types/known/sourcecontextpb" + reflect "reflect" + sync "sync" +) + +// The syntax in which a protocol buffer element is defined. +type Syntax int32 + +const ( + // Syntax `proto2`. + Syntax_SYNTAX_PROTO2 Syntax = 0 + // Syntax `proto3`. + Syntax_SYNTAX_PROTO3 Syntax = 1 +) + +// Enum value maps for Syntax. +var ( + Syntax_name = map[int32]string{ + 0: "SYNTAX_PROTO2", + 1: "SYNTAX_PROTO3", + } + Syntax_value = map[string]int32{ + "SYNTAX_PROTO2": 0, + "SYNTAX_PROTO3": 1, + } +) + +func (x Syntax) Enum() *Syntax { + p := new(Syntax) + *p = x + return p +} + +func (x Syntax) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Syntax) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_type_proto_enumTypes[0].Descriptor() +} + +func (Syntax) Type() protoreflect.EnumType { + return &file_google_protobuf_type_proto_enumTypes[0] +} + +func (x Syntax) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Syntax.Descriptor instead. +func (Syntax) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{0} +} + +// Basic field types. +type Field_Kind int32 + +const ( + // Field type unknown. + Field_TYPE_UNKNOWN Field_Kind = 0 + // Field type double. + Field_TYPE_DOUBLE Field_Kind = 1 + // Field type float. + Field_TYPE_FLOAT Field_Kind = 2 + // Field type int64. + Field_TYPE_INT64 Field_Kind = 3 + // Field type uint64. + Field_TYPE_UINT64 Field_Kind = 4 + // Field type int32. + Field_TYPE_INT32 Field_Kind = 5 + // Field type fixed64. + Field_TYPE_FIXED64 Field_Kind = 6 + // Field type fixed32. + Field_TYPE_FIXED32 Field_Kind = 7 + // Field type bool. + Field_TYPE_BOOL Field_Kind = 8 + // Field type string. + Field_TYPE_STRING Field_Kind = 9 + // Field type group. Proto2 syntax only, and deprecated. + Field_TYPE_GROUP Field_Kind = 10 + // Field type message. + Field_TYPE_MESSAGE Field_Kind = 11 + // Field type bytes. + Field_TYPE_BYTES Field_Kind = 12 + // Field type uint32. + Field_TYPE_UINT32 Field_Kind = 13 + // Field type enum. + Field_TYPE_ENUM Field_Kind = 14 + // Field type sfixed32. + Field_TYPE_SFIXED32 Field_Kind = 15 + // Field type sfixed64. + Field_TYPE_SFIXED64 Field_Kind = 16 + // Field type sint32. + Field_TYPE_SINT32 Field_Kind = 17 + // Field type sint64. + Field_TYPE_SINT64 Field_Kind = 18 +) + +// Enum value maps for Field_Kind. +var ( + Field_Kind_name = map[int32]string{ + 0: "TYPE_UNKNOWN", + 1: "TYPE_DOUBLE", + 2: "TYPE_FLOAT", + 3: "TYPE_INT64", + 4: "TYPE_UINT64", + 5: "TYPE_INT32", + 6: "TYPE_FIXED64", + 7: "TYPE_FIXED32", + 8: "TYPE_BOOL", + 9: "TYPE_STRING", + 10: "TYPE_GROUP", + 11: "TYPE_MESSAGE", + 12: "TYPE_BYTES", + 13: "TYPE_UINT32", + 14: "TYPE_ENUM", + 15: "TYPE_SFIXED32", + 16: "TYPE_SFIXED64", + 17: "TYPE_SINT32", + 18: "TYPE_SINT64", + } + Field_Kind_value = map[string]int32{ + "TYPE_UNKNOWN": 0, + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18, + } +) + +func (x Field_Kind) Enum() *Field_Kind { + p := new(Field_Kind) + *p = x + return p +} + +func (x Field_Kind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Field_Kind) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_type_proto_enumTypes[1].Descriptor() +} + +func (Field_Kind) Type() protoreflect.EnumType { + return &file_google_protobuf_type_proto_enumTypes[1] +} + +func (x Field_Kind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Field_Kind.Descriptor instead. +func (Field_Kind) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{1, 0} +} + +// Whether a field is optional, required, or repeated. +type Field_Cardinality int32 + +const ( + // For fields with unknown cardinality. + Field_CARDINALITY_UNKNOWN Field_Cardinality = 0 + // For optional fields. + Field_CARDINALITY_OPTIONAL Field_Cardinality = 1 + // For required fields. Proto2 syntax only. + Field_CARDINALITY_REQUIRED Field_Cardinality = 2 + // For repeated fields. + Field_CARDINALITY_REPEATED Field_Cardinality = 3 +) + +// Enum value maps for Field_Cardinality. +var ( + Field_Cardinality_name = map[int32]string{ + 0: "CARDINALITY_UNKNOWN", + 1: "CARDINALITY_OPTIONAL", + 2: "CARDINALITY_REQUIRED", + 3: "CARDINALITY_REPEATED", + } + Field_Cardinality_value = map[string]int32{ + "CARDINALITY_UNKNOWN": 0, + "CARDINALITY_OPTIONAL": 1, + "CARDINALITY_REQUIRED": 2, + "CARDINALITY_REPEATED": 3, + } +) + +func (x Field_Cardinality) Enum() *Field_Cardinality { + p := new(Field_Cardinality) + *p = x + return p +} + +func (x Field_Cardinality) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Field_Cardinality) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_type_proto_enumTypes[2].Descriptor() +} + +func (Field_Cardinality) Type() protoreflect.EnumType { + return &file_google_protobuf_type_proto_enumTypes[2] +} + +func (x Field_Cardinality) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Field_Cardinality.Descriptor instead. +func (Field_Cardinality) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{1, 1} +} + +// A protocol buffer message type. +type Type struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fully qualified message name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The list of fields. + Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` + // The list of types appearing in `oneof` definitions in this type. + Oneofs []string `protobuf:"bytes,3,rep,name=oneofs,proto3" json:"oneofs,omitempty"` + // The protocol buffer options. + Options []*Option `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` + // The source context. + SourceContext *sourcecontextpb.SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"` + // The source syntax. + Syntax Syntax `protobuf:"varint,6,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"` +} + +func (x *Type) Reset() { + *x = Type{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_type_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Type) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Type) ProtoMessage() {} + +func (x *Type) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_type_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Type.ProtoReflect.Descriptor instead. +func (*Type) Descriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{0} +} + +func (x *Type) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Type) GetFields() []*Field { + if x != nil { + return x.Fields + } + return nil +} + +func (x *Type) GetOneofs() []string { + if x != nil { + return x.Oneofs + } + return nil +} + +func (x *Type) GetOptions() []*Option { + if x != nil { + return x.Options + } + return nil +} + +func (x *Type) GetSourceContext() *sourcecontextpb.SourceContext { + if x != nil { + return x.SourceContext + } + return nil +} + +func (x *Type) GetSyntax() Syntax { + if x != nil { + return x.Syntax + } + return Syntax_SYNTAX_PROTO2 +} + +// A single field of a message type. +type Field struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The field type. + Kind Field_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.protobuf.Field_Kind" json:"kind,omitempty"` + // The field cardinality. + Cardinality Field_Cardinality `protobuf:"varint,2,opt,name=cardinality,proto3,enum=google.protobuf.Field_Cardinality" json:"cardinality,omitempty"` + // The field number. + Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` + // The field name. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // The field type URL, without the scheme, for message or enumeration + // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. + TypeUrl string `protobuf:"bytes,6,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` + // The index of the field type in `Type.oneofs`, for message or enumeration + // types. The first type has index 1; zero means the type is not in the list. + OneofIndex int32 `protobuf:"varint,7,opt,name=oneof_index,json=oneofIndex,proto3" json:"oneof_index,omitempty"` + // Whether to use alternative packed wire representation. + Packed bool `protobuf:"varint,8,opt,name=packed,proto3" json:"packed,omitempty"` + // The protocol buffer options. + Options []*Option `protobuf:"bytes,9,rep,name=options,proto3" json:"options,omitempty"` + // The field JSON name. + JsonName string `protobuf:"bytes,10,opt,name=json_name,json=jsonName,proto3" json:"json_name,omitempty"` + // The string value of the default value of this field. Proto2 syntax only. + DefaultValue string `protobuf:"bytes,11,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (x *Field) Reset() { + *x = Field{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_type_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Field) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Field) ProtoMessage() {} + +func (x *Field) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_type_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Field.ProtoReflect.Descriptor instead. +func (*Field) Descriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{1} +} + +func (x *Field) GetKind() Field_Kind { + if x != nil { + return x.Kind + } + return Field_TYPE_UNKNOWN +} + +func (x *Field) GetCardinality() Field_Cardinality { + if x != nil { + return x.Cardinality + } + return Field_CARDINALITY_UNKNOWN +} + +func (x *Field) GetNumber() int32 { + if x != nil { + return x.Number + } + return 0 +} + +func (x *Field) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Field) GetTypeUrl() string { + if x != nil { + return x.TypeUrl + } + return "" +} + +func (x *Field) GetOneofIndex() int32 { + if x != nil { + return x.OneofIndex + } + return 0 +} + +func (x *Field) GetPacked() bool { + if x != nil { + return x.Packed + } + return false +} + +func (x *Field) GetOptions() []*Option { + if x != nil { + return x.Options + } + return nil +} + +func (x *Field) GetJsonName() string { + if x != nil { + return x.JsonName + } + return "" +} + +func (x *Field) GetDefaultValue() string { + if x != nil { + return x.DefaultValue + } + return "" +} + +// Enum type definition. +type Enum struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Enum type name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Enum value definitions. + Enumvalue []*EnumValue `protobuf:"bytes,2,rep,name=enumvalue,proto3" json:"enumvalue,omitempty"` + // Protocol buffer options. + Options []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` + // The source context. + SourceContext *sourcecontextpb.SourceContext `protobuf:"bytes,4,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"` + // The source syntax. + Syntax Syntax `protobuf:"varint,5,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"` +} + +func (x *Enum) Reset() { + *x = Enum{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_type_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Enum) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Enum) ProtoMessage() {} + +func (x *Enum) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_type_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Enum.ProtoReflect.Descriptor instead. +func (*Enum) Descriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{2} +} + +func (x *Enum) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Enum) GetEnumvalue() []*EnumValue { + if x != nil { + return x.Enumvalue + } + return nil +} + +func (x *Enum) GetOptions() []*Option { + if x != nil { + return x.Options + } + return nil +} + +func (x *Enum) GetSourceContext() *sourcecontextpb.SourceContext { + if x != nil { + return x.SourceContext + } + return nil +} + +func (x *Enum) GetSyntax() Syntax { + if x != nil { + return x.Syntax + } + return Syntax_SYNTAX_PROTO2 +} + +// Enum value definition. +type EnumValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Enum value name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Enum value number. + Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` + // Protocol buffer options. + Options []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` +} + +func (x *EnumValue) Reset() { + *x = EnumValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_type_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumValue) ProtoMessage() {} + +func (x *EnumValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_type_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumValue.ProtoReflect.Descriptor instead. +func (*EnumValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{3} +} + +func (x *EnumValue) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *EnumValue) GetNumber() int32 { + if x != nil { + return x.Number + } + return 0 +} + +func (x *EnumValue) GetOptions() []*Option { + if x != nil { + return x.Options + } + return nil +} + +// A protocol buffer option, which can be attached to a message, field, +// enumeration, etc. +type Option struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The option's name. For protobuf built-in options (options defined in + // descriptor.proto), this is the short name. For example, `"map_entry"`. + // For custom options, it should be the fully-qualified name. For example, + // `"google.api.http"`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The option's value packed in an Any message. If the value is a primitive, + // the corresponding wrapper type defined in google/protobuf/wrappers.proto + // should be used. If the value is an enum, it should be stored as an int32 + // value using the google.protobuf.Int32Value type. + Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Option) Reset() { + *x = Option{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_type_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Option) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Option) ProtoMessage() {} + +func (x *Option) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_type_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Option.ProtoReflect.Descriptor instead. +func (*Option) Descriptor() ([]byte, []int) { + return file_google_protobuf_type_proto_rawDescGZIP(), []int{4} +} + +func (x *Option) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Option) GetValue() *anypb.Any { + if x != nil { + return x.Value + } + return nil +} + +var File_google_protobuf_type_proto protoreflect.FileDescriptor + +var file_google_protobuf_type_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x19, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, + 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, + 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, + 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x6e, 0x65, + 0x6f, 0x66, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0d, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x2f, 0x0a, + 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x53, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x22, 0xb4, + 0x06, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x4b, + 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x44, 0x0a, 0x0b, 0x63, 0x61, 0x72, + 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, + 0x74, 0x79, 0x52, 0x0b, 0x63, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, + 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, + 0x79, 0x70, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6f, 0x6e, 0x65, + 0x6f, 0x66, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, + 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x12, + 0x31, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc8, 0x02, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x10, 0x0a, + 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x01, + 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, + 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x03, + 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, + 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, + 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, + 0x34, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, + 0x44, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, + 0x4f, 0x4c, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, + 0x49, 0x4e, 0x47, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, + 0x4f, 0x55, 0x50, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, + 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x0f, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, 0x34, 0x10, 0x10, 0x12, 0x0f, 0x0a, + 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x11, 0x12, 0x0f, + 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x12, 0x22, + 0x74, 0x0a, 0x0b, 0x43, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x17, + 0x0a, 0x13, 0x43, 0x41, 0x52, 0x44, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, 0x52, 0x44, 0x49, + 0x4e, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10, + 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, 0x52, 0x44, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x54, 0x59, + 0x5f, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x43, + 0x41, 0x52, 0x44, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x50, 0x45, 0x41, + 0x54, 0x45, 0x44, 0x10, 0x03, 0x22, 0xff, 0x01, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x31, 0x0a, 0x07, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x45, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x52, + 0x06, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x22, 0x6a, 0x0a, 0x09, 0x45, 0x6e, 0x75, 0x6d, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x31, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x48, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x2e, 0x0a, + 0x06, 0x53, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x59, 0x4e, 0x54, 0x41, + 0x58, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x32, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x59, + 0x4e, 0x54, 0x41, 0x58, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x10, 0x01, 0x42, 0x7b, 0x0a, + 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x42, 0x09, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x70, 0x62, + 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x57, 0x65, 0x6c, 0x6c, + 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_google_protobuf_type_proto_rawDescOnce sync.Once + file_google_protobuf_type_proto_rawDescData = file_google_protobuf_type_proto_rawDesc +) + +func file_google_protobuf_type_proto_rawDescGZIP() []byte { + file_google_protobuf_type_proto_rawDescOnce.Do(func() { + file_google_protobuf_type_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_type_proto_rawDescData) + }) + return file_google_protobuf_type_proto_rawDescData +} + +var file_google_protobuf_type_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_google_protobuf_type_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_google_protobuf_type_proto_goTypes = []interface{}{ + (Syntax)(0), // 0: google.protobuf.Syntax + (Field_Kind)(0), // 1: google.protobuf.Field.Kind + (Field_Cardinality)(0), // 2: google.protobuf.Field.Cardinality + (*Type)(nil), // 3: google.protobuf.Type + (*Field)(nil), // 4: google.protobuf.Field + (*Enum)(nil), // 5: google.protobuf.Enum + (*EnumValue)(nil), // 6: google.protobuf.EnumValue + (*Option)(nil), // 7: google.protobuf.Option + (*sourcecontextpb.SourceContext)(nil), // 8: google.protobuf.SourceContext + (*anypb.Any)(nil), // 9: google.protobuf.Any +} +var file_google_protobuf_type_proto_depIdxs = []int32{ + 4, // 0: google.protobuf.Type.fields:type_name -> google.protobuf.Field + 7, // 1: google.protobuf.Type.options:type_name -> google.protobuf.Option + 8, // 2: google.protobuf.Type.source_context:type_name -> google.protobuf.SourceContext + 0, // 3: google.protobuf.Type.syntax:type_name -> google.protobuf.Syntax + 1, // 4: google.protobuf.Field.kind:type_name -> google.protobuf.Field.Kind + 2, // 5: google.protobuf.Field.cardinality:type_name -> google.protobuf.Field.Cardinality + 7, // 6: google.protobuf.Field.options:type_name -> google.protobuf.Option + 6, // 7: google.protobuf.Enum.enumvalue:type_name -> google.protobuf.EnumValue + 7, // 8: google.protobuf.Enum.options:type_name -> google.protobuf.Option + 8, // 9: google.protobuf.Enum.source_context:type_name -> google.protobuf.SourceContext + 0, // 10: google.protobuf.Enum.syntax:type_name -> google.protobuf.Syntax + 7, // 11: google.protobuf.EnumValue.options:type_name -> google.protobuf.Option + 9, // 12: google.protobuf.Option.value:type_name -> google.protobuf.Any + 13, // [13:13] is the sub-list for method output_type + 13, // [13:13] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_google_protobuf_type_proto_init() } +func file_google_protobuf_type_proto_init() { + if File_google_protobuf_type_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_type_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Type); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_type_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Field); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_type_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Enum); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_type_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_type_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Option); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_type_proto_rawDesc, + NumEnums: 3, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_type_proto_goTypes, + DependencyIndexes: file_google_protobuf_type_proto_depIdxs, + EnumInfos: file_google_protobuf_type_proto_enumTypes, + MessageInfos: file_google_protobuf_type_proto_msgTypes, + }.Build() + File_google_protobuf_type_proto = out.File + file_google_protobuf_type_proto_rawDesc = nil + file_google_protobuf_type_proto_goTypes = nil + file_google_protobuf_type_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go b/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go new file mode 100644 index 0000000..762a871 --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/known/wrapperspb/wrappers.pb.go @@ -0,0 +1,760 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Wrappers for primitive (non-message) types. These types are useful +// for embedding primitives in the `google.protobuf.Any` type and for places +// where we need to distinguish between the absence of a primitive +// typed field and its default value. +// +// These wrappers have no meaningful use within repeated fields as they lack +// the ability to detect presence on individual elements. +// These wrappers have no meaningful use within a map or a oneof since +// individual entries of a map or fields of a oneof can already detect presence. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/wrappers.proto + +package wrapperspb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +// Wrapper message for `double`. +// +// The JSON representation for `DoubleValue` is JSON number. +type DoubleValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The double value. + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// Double stores v in a new DoubleValue and returns a pointer to it. +func Double(v float64) *DoubleValue { + return &DoubleValue{Value: v} +} + +func (x *DoubleValue) Reset() { + *x = DoubleValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DoubleValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DoubleValue) ProtoMessage() {} + +func (x *DoubleValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DoubleValue.ProtoReflect.Descriptor instead. +func (*DoubleValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{0} +} + +func (x *DoubleValue) GetValue() float64 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `float`. +// +// The JSON representation for `FloatValue` is JSON number. +type FloatValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The float value. + Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// Float stores v in a new FloatValue and returns a pointer to it. +func Float(v float32) *FloatValue { + return &FloatValue{Value: v} +} + +func (x *FloatValue) Reset() { + *x = FloatValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FloatValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FloatValue) ProtoMessage() {} + +func (x *FloatValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FloatValue.ProtoReflect.Descriptor instead. +func (*FloatValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{1} +} + +func (x *FloatValue) GetValue() float32 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `int64`. +// +// The JSON representation for `Int64Value` is JSON string. +type Int64Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The int64 value. + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// Int64 stores v in a new Int64Value and returns a pointer to it. +func Int64(v int64) *Int64Value { + return &Int64Value{Value: v} +} + +func (x *Int64Value) Reset() { + *x = Int64Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Int64Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int64Value) ProtoMessage() {} + +func (x *Int64Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Int64Value.ProtoReflect.Descriptor instead. +func (*Int64Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{2} +} + +func (x *Int64Value) GetValue() int64 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `uint64`. +// +// The JSON representation for `UInt64Value` is JSON string. +type UInt64Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The uint64 value. + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// UInt64 stores v in a new UInt64Value and returns a pointer to it. +func UInt64(v uint64) *UInt64Value { + return &UInt64Value{Value: v} +} + +func (x *UInt64Value) Reset() { + *x = UInt64Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UInt64Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UInt64Value) ProtoMessage() {} + +func (x *UInt64Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UInt64Value.ProtoReflect.Descriptor instead. +func (*UInt64Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{3} +} + +func (x *UInt64Value) GetValue() uint64 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `int32`. +// +// The JSON representation for `Int32Value` is JSON number. +type Int32Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The int32 value. + Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// Int32 stores v in a new Int32Value and returns a pointer to it. +func Int32(v int32) *Int32Value { + return &Int32Value{Value: v} +} + +func (x *Int32Value) Reset() { + *x = Int32Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Int32Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int32Value) ProtoMessage() {} + +func (x *Int32Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Int32Value.ProtoReflect.Descriptor instead. +func (*Int32Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{4} +} + +func (x *Int32Value) GetValue() int32 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `uint32`. +// +// The JSON representation for `UInt32Value` is JSON number. +type UInt32Value struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The uint32 value. + Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// UInt32 stores v in a new UInt32Value and returns a pointer to it. +func UInt32(v uint32) *UInt32Value { + return &UInt32Value{Value: v} +} + +func (x *UInt32Value) Reset() { + *x = UInt32Value{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UInt32Value) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UInt32Value) ProtoMessage() {} + +func (x *UInt32Value) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UInt32Value.ProtoReflect.Descriptor instead. +func (*UInt32Value) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{5} +} + +func (x *UInt32Value) GetValue() uint32 { + if x != nil { + return x.Value + } + return 0 +} + +// Wrapper message for `bool`. +// +// The JSON representation for `BoolValue` is JSON `true` and `false`. +type BoolValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The bool value. + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// Bool stores v in a new BoolValue and returns a pointer to it. +func Bool(v bool) *BoolValue { + return &BoolValue{Value: v} +} + +func (x *BoolValue) Reset() { + *x = BoolValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BoolValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolValue) ProtoMessage() {} + +func (x *BoolValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoolValue.ProtoReflect.Descriptor instead. +func (*BoolValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{6} +} + +func (x *BoolValue) GetValue() bool { + if x != nil { + return x.Value + } + return false +} + +// Wrapper message for `string`. +// +// The JSON representation for `StringValue` is JSON string. +type StringValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The string value. + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// String stores v in a new StringValue and returns a pointer to it. +func String(v string) *StringValue { + return &StringValue{Value: v} +} + +func (x *StringValue) Reset() { + *x = StringValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StringValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringValue) ProtoMessage() {} + +func (x *StringValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StringValue.ProtoReflect.Descriptor instead. +func (*StringValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{7} +} + +func (x *StringValue) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// Wrapper message for `bytes`. +// +// The JSON representation for `BytesValue` is JSON string. +type BytesValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The bytes value. + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +// Bytes stores v in a new BytesValue and returns a pointer to it. +func Bytes(v []byte) *BytesValue { + return &BytesValue{Value: v} +} + +func (x *BytesValue) Reset() { + *x = BytesValue{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_wrappers_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BytesValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BytesValue) ProtoMessage() {} + +func (x *BytesValue) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_wrappers_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BytesValue.ProtoReflect.Descriptor instead. +func (*BytesValue) Descriptor() ([]byte, []int) { + return file_google_protobuf_wrappers_proto_rawDescGZIP(), []int{8} +} + +func (x *BytesValue) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +var File_google_protobuf_wrappers_proto protoreflect.FileDescriptor + +var file_google_protobuf_wrappers_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x22, 0x23, 0x0a, 0x0b, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, + 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, + 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x33, + 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x09, + 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x23, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x83, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x42, 0x0d, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, + 0x72, 0x73, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, 0x02, 0x1e, + 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_google_protobuf_wrappers_proto_rawDescOnce sync.Once + file_google_protobuf_wrappers_proto_rawDescData = file_google_protobuf_wrappers_proto_rawDesc +) + +func file_google_protobuf_wrappers_proto_rawDescGZIP() []byte { + file_google_protobuf_wrappers_proto_rawDescOnce.Do(func() { + file_google_protobuf_wrappers_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_wrappers_proto_rawDescData) + }) + return file_google_protobuf_wrappers_proto_rawDescData +} + +var file_google_protobuf_wrappers_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_google_protobuf_wrappers_proto_goTypes = []interface{}{ + (*DoubleValue)(nil), // 0: google.protobuf.DoubleValue + (*FloatValue)(nil), // 1: google.protobuf.FloatValue + (*Int64Value)(nil), // 2: google.protobuf.Int64Value + (*UInt64Value)(nil), // 3: google.protobuf.UInt64Value + (*Int32Value)(nil), // 4: google.protobuf.Int32Value + (*UInt32Value)(nil), // 5: google.protobuf.UInt32Value + (*BoolValue)(nil), // 6: google.protobuf.BoolValue + (*StringValue)(nil), // 7: google.protobuf.StringValue + (*BytesValue)(nil), // 8: google.protobuf.BytesValue +} +var file_google_protobuf_wrappers_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_google_protobuf_wrappers_proto_init() } +func file_google_protobuf_wrappers_proto_init() { + if File_google_protobuf_wrappers_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_wrappers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DoubleValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FloatValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Int64Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UInt64Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Int32Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UInt32Value); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoolValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StringValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_wrappers_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BytesValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_wrappers_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_wrappers_proto_goTypes, + DependencyIndexes: file_google_protobuf_wrappers_proto_depIdxs, + MessageInfos: file_google_protobuf_wrappers_proto_msgTypes, + }.Build() + File_google_protobuf_wrappers_proto = out.File + file_google_protobuf_wrappers_proto_rawDesc = nil + file_google_protobuf_wrappers_proto_goTypes = nil + file_google_protobuf_wrappers_proto_depIdxs = nil +} diff --git a/vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go b/vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go new file mode 100644 index 0000000..d0bb96a --- /dev/null +++ b/vendor/google.golang.org/protobuf/types/pluginpb/plugin.pb.go @@ -0,0 +1,656 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// +// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is +// just a program that reads a CodeGeneratorRequest from stdin and writes a +// CodeGeneratorResponse to stdout. +// +// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead +// of dealing with the raw protocol defined here. +// +// A plugin executable needs only to be placed somewhere in the path. The +// plugin should be named "protoc-gen-$NAME", and will then be used when the +// flag "--${NAME}_out" is passed to protoc. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/protobuf/compiler/plugin.proto + +package pluginpb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" + sync "sync" +) + +// Sync with code_generator.h. +type CodeGeneratorResponse_Feature int32 + +const ( + CodeGeneratorResponse_FEATURE_NONE CodeGeneratorResponse_Feature = 0 + CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL CodeGeneratorResponse_Feature = 1 +) + +// Enum value maps for CodeGeneratorResponse_Feature. +var ( + CodeGeneratorResponse_Feature_name = map[int32]string{ + 0: "FEATURE_NONE", + 1: "FEATURE_PROTO3_OPTIONAL", + } + CodeGeneratorResponse_Feature_value = map[string]int32{ + "FEATURE_NONE": 0, + "FEATURE_PROTO3_OPTIONAL": 1, + } +) + +func (x CodeGeneratorResponse_Feature) Enum() *CodeGeneratorResponse_Feature { + p := new(CodeGeneratorResponse_Feature) + *p = x + return p +} + +func (x CodeGeneratorResponse_Feature) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CodeGeneratorResponse_Feature) Descriptor() protoreflect.EnumDescriptor { + return file_google_protobuf_compiler_plugin_proto_enumTypes[0].Descriptor() +} + +func (CodeGeneratorResponse_Feature) Type() protoreflect.EnumType { + return &file_google_protobuf_compiler_plugin_proto_enumTypes[0] +} + +func (x CodeGeneratorResponse_Feature) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *CodeGeneratorResponse_Feature) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = CodeGeneratorResponse_Feature(num) + return nil +} + +// Deprecated: Use CodeGeneratorResponse_Feature.Descriptor instead. +func (CodeGeneratorResponse_Feature) EnumDescriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0} +} + +// The version number of protocol compiler. +type Version struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"` + Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"` + Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"` + // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should + // be empty for mainline stable releases. + Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"` +} + +func (x *Version) Reset() { + *x = Version{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Version) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Version) ProtoMessage() {} + +func (x *Version) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Version.ProtoReflect.Descriptor instead. +func (*Version) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{0} +} + +func (x *Version) GetMajor() int32 { + if x != nil && x.Major != nil { + return *x.Major + } + return 0 +} + +func (x *Version) GetMinor() int32 { + if x != nil && x.Minor != nil { + return *x.Minor + } + return 0 +} + +func (x *Version) GetPatch() int32 { + if x != nil && x.Patch != nil { + return *x.Patch + } + return 0 +} + +func (x *Version) GetSuffix() string { + if x != nil && x.Suffix != nil { + return *x.Suffix + } + return "" +} + +// An encoded CodeGeneratorRequest is written to the plugin's stdin. +type CodeGeneratorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The .proto files that were explicitly listed on the command-line. The + // code generator should generate code only for these files. Each file's + // descriptor will be included in proto_file, below. + FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"` + // The generator parameter passed on the command-line. + Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"` + // FileDescriptorProtos for all files in files_to_generate and everything + // they import. The files will appear in topological order, so each file + // appears before any file that imports it. + // + // protoc guarantees that all proto_files will be written after + // the fields above, even though this is not technically guaranteed by the + // protobuf wire format. This theoretically could allow a plugin to stream + // in the FileDescriptorProtos and handle them one by one rather than read + // the entire set into memory at once. However, as of this writing, this + // is not similarly optimized on protoc's end -- it will store all fields in + // memory at once before sending them to the plugin. + // + // Type names of fields and extensions in the FileDescriptorProto are always + // fully qualified. + ProtoFile []*descriptorpb.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"` + // The version number of protocol compiler. + CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"` +} + +func (x *CodeGeneratorRequest) Reset() { + *x = CodeGeneratorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CodeGeneratorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CodeGeneratorRequest) ProtoMessage() {} + +func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CodeGeneratorRequest.ProtoReflect.Descriptor instead. +func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{1} +} + +func (x *CodeGeneratorRequest) GetFileToGenerate() []string { + if x != nil { + return x.FileToGenerate + } + return nil +} + +func (x *CodeGeneratorRequest) GetParameter() string { + if x != nil && x.Parameter != nil { + return *x.Parameter + } + return "" +} + +func (x *CodeGeneratorRequest) GetProtoFile() []*descriptorpb.FileDescriptorProto { + if x != nil { + return x.ProtoFile + } + return nil +} + +func (x *CodeGeneratorRequest) GetCompilerVersion() *Version { + if x != nil { + return x.CompilerVersion + } + return nil +} + +// The plugin writes an encoded CodeGeneratorResponse to stdout. +type CodeGeneratorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Error message. If non-empty, code generation failed. The plugin process + // should exit with status code zero even if it reports an error in this way. + // + // This should be used to indicate errors in .proto files which prevent the + // code generator from generating correct code. Errors which indicate a + // problem in protoc itself -- such as the input CodeGeneratorRequest being + // unparseable -- should be reported by writing a message to stderr and + // exiting with a non-zero status code. + Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` + // A bitmask of supported features that the code generator supports. + // This is a bitwise "or" of values from the Feature enum. + SupportedFeatures *uint64 `protobuf:"varint,2,opt,name=supported_features,json=supportedFeatures" json:"supported_features,omitempty"` + File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"` +} + +func (x *CodeGeneratorResponse) Reset() { + *x = CodeGeneratorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CodeGeneratorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CodeGeneratorResponse) ProtoMessage() {} + +func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead. +func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2} +} + +func (x *CodeGeneratorResponse) GetError() string { + if x != nil && x.Error != nil { + return *x.Error + } + return "" +} + +func (x *CodeGeneratorResponse) GetSupportedFeatures() uint64 { + if x != nil && x.SupportedFeatures != nil { + return *x.SupportedFeatures + } + return 0 +} + +func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File { + if x != nil { + return x.File + } + return nil +} + +// Represents a single generated file. +type CodeGeneratorResponse_File struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The file name, relative to the output directory. The name must not + // contain "." or ".." components and must be relative, not be absolute (so, + // the file cannot lie outside the output directory). "/" must be used as + // the path separator, not "\". + // + // If the name is omitted, the content will be appended to the previous + // file. This allows the generator to break large files into small chunks, + // and allows the generated text to be streamed back to protoc so that large + // files need not reside completely in memory at one time. Note that as of + // this writing protoc does not optimize for this -- it will read the entire + // CodeGeneratorResponse before writing files to disk. + Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + // If non-empty, indicates that the named file should already exist, and the + // content here is to be inserted into that file at a defined insertion + // point. This feature allows a code generator to extend the output + // produced by another code generator. The original generator may provide + // insertion points by placing special annotations in the file that look + // like: + // + // @@protoc_insertion_point(NAME) + // + // The annotation can have arbitrary text before and after it on the line, + // which allows it to be placed in a comment. NAME should be replaced with + // an identifier naming the point -- this is what other generators will use + // as the insertion_point. Code inserted at this point will be placed + // immediately above the line containing the insertion point (thus multiple + // insertions to the same point will come out in the order they were added). + // The double-@ is intended to make it unlikely that the generated code + // could contain things that look like insertion points by accident. + // + // For example, the C++ code generator places the following line in the + // .pb.h files that it generates: + // + // // @@protoc_insertion_point(namespace_scope) + // + // This line appears within the scope of the file's package namespace, but + // outside of any particular class. Another plugin can then specify the + // insertion_point "namespace_scope" to generate additional classes or + // other declarations that should be placed in this scope. + // + // Note that if the line containing the insertion point begins with + // whitespace, the same whitespace will be added to every line of the + // inserted text. This is useful for languages like Python, where + // indentation matters. In these languages, the insertion point comment + // should be indented the same amount as any inserted code will need to be + // in order to work correctly in that context. + // + // The code generator that generates the initial file and the one which + // inserts into it must both run as part of a single invocation of protoc. + // Code generators are executed in the order in which they appear on the + // command line. + // + // If |insertion_point| is present, |name| must also be present. + InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"` + // The file contents. + Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"` + // Information describing the file content being inserted. If an insertion + // point is used, this information will be appropriately offset and inserted + // into the code generation metadata for the generated files. + GeneratedCodeInfo *descriptorpb.GeneratedCodeInfo `protobuf:"bytes,16,opt,name=generated_code_info,json=generatedCodeInfo" json:"generated_code_info,omitempty"` +} + +func (x *CodeGeneratorResponse_File) Reset() { + *x = CodeGeneratorResponse_File{} + if protoimpl.UnsafeEnabled { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CodeGeneratorResponse_File) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CodeGeneratorResponse_File) ProtoMessage() {} + +func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead. +func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) { + return file_google_protobuf_compiler_plugin_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *CodeGeneratorResponse_File) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + +func (x *CodeGeneratorResponse_File) GetInsertionPoint() string { + if x != nil && x.InsertionPoint != nil { + return *x.InsertionPoint + } + return "" +} + +func (x *CodeGeneratorResponse_File) GetContent() string { + if x != nil && x.Content != nil { + return *x.Content + } + return "" +} + +func (x *CodeGeneratorResponse_File) GetGeneratedCodeInfo() *descriptorpb.GeneratedCodeInfo { + if x != nil { + return x.GeneratedCodeInfo + } + return nil +} + +var File_google_protobuf_compiler_plugin_proto protoreflect.FileDescriptor + +var file_google_protobuf_compiler_plugin_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x72, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, + 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, + 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x22, 0xf1, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x64, + 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x66, 0x69, 0x6c, + 0x65, 0x54, 0x6f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x4c, + 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x94, 0x03, 0x0a, + 0x15, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x12, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x04, 0x66, + 0x69, 0x6c, 0x65, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x52, + 0x04, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0xb1, 0x01, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, + 0x65, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x38, 0x0a, 0x07, 0x46, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, + 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x46, 0x45, 0x41, 0x54, 0x55, 0x52, + 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, + 0x4c, 0x10, 0x01, 0x42, 0x72, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x72, 0x42, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x73, 0x5a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, + 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, +} + +var ( + file_google_protobuf_compiler_plugin_proto_rawDescOnce sync.Once + file_google_protobuf_compiler_plugin_proto_rawDescData = file_google_protobuf_compiler_plugin_proto_rawDesc +) + +func file_google_protobuf_compiler_plugin_proto_rawDescGZIP() []byte { + file_google_protobuf_compiler_plugin_proto_rawDescOnce.Do(func() { + file_google_protobuf_compiler_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_protobuf_compiler_plugin_proto_rawDescData) + }) + return file_google_protobuf_compiler_plugin_proto_rawDescData +} + +var file_google_protobuf_compiler_plugin_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_google_protobuf_compiler_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_google_protobuf_compiler_plugin_proto_goTypes = []interface{}{ + (CodeGeneratorResponse_Feature)(0), // 0: google.protobuf.compiler.CodeGeneratorResponse.Feature + (*Version)(nil), // 1: google.protobuf.compiler.Version + (*CodeGeneratorRequest)(nil), // 2: google.protobuf.compiler.CodeGeneratorRequest + (*CodeGeneratorResponse)(nil), // 3: google.protobuf.compiler.CodeGeneratorResponse + (*CodeGeneratorResponse_File)(nil), // 4: google.protobuf.compiler.CodeGeneratorResponse.File + (*descriptorpb.FileDescriptorProto)(nil), // 5: google.protobuf.FileDescriptorProto + (*descriptorpb.GeneratedCodeInfo)(nil), // 6: google.protobuf.GeneratedCodeInfo +} +var file_google_protobuf_compiler_plugin_proto_depIdxs = []int32{ + 5, // 0: google.protobuf.compiler.CodeGeneratorRequest.proto_file:type_name -> google.protobuf.FileDescriptorProto + 1, // 1: google.protobuf.compiler.CodeGeneratorRequest.compiler_version:type_name -> google.protobuf.compiler.Version + 4, // 2: google.protobuf.compiler.CodeGeneratorResponse.file:type_name -> google.protobuf.compiler.CodeGeneratorResponse.File + 6, // 3: google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info:type_name -> google.protobuf.GeneratedCodeInfo + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_google_protobuf_compiler_plugin_proto_init() } +func file_google_protobuf_compiler_plugin_proto_init() { + if File_google_protobuf_compiler_plugin_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_google_protobuf_compiler_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Version); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_compiler_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CodeGeneratorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_compiler_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CodeGeneratorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_protobuf_compiler_plugin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CodeGeneratorResponse_File); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_google_protobuf_compiler_plugin_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_google_protobuf_compiler_plugin_proto_goTypes, + DependencyIndexes: file_google_protobuf_compiler_plugin_proto_depIdxs, + EnumInfos: file_google_protobuf_compiler_plugin_proto_enumTypes, + MessageInfos: file_google_protobuf_compiler_plugin_proto_msgTypes, + }.Build() + File_google_protobuf_compiler_plugin_proto = out.File + file_google_protobuf_compiler_plugin_proto_rawDesc = nil + file_google_protobuf_compiler_plugin_proto_goTypes = nil + file_google_protobuf_compiler_plugin_proto_depIdxs = nil +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 382bbd8..f2f16d6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,68 +1,120 @@ +# github.com/Juniper/jtimon/schema v0.0.0 => ./schema +## explicit; go 1.19 +github.com/Juniper/jtimon/schema +github.com/Juniper/jtimon/schema/telemetry_top # github.com/Shopify/sarama v1.26.1 +## explicit; go 1.13 github.com/Shopify/sarama -# github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 +# github.com/beorn7/perks v1.0.1 +## explicit; go 1.11 github.com/beorn7/perks/quantile +# github.com/bufbuild/protocompile v0.4.0 +## explicit; go 1.18 +github.com/bufbuild/protocompile +github.com/bufbuild/protocompile/ast +github.com/bufbuild/protocompile/internal +github.com/bufbuild/protocompile/linker +github.com/bufbuild/protocompile/options +github.com/bufbuild/protocompile/parser +github.com/bufbuild/protocompile/protoutil +github.com/bufbuild/protocompile/reporter +github.com/bufbuild/protocompile/sourceinfo +github.com/bufbuild/protocompile/walk # github.com/davecgh/go-spew v1.1.1 +## explicit github.com/davecgh/go-spew/spew # github.com/eapache/go-resiliency v1.2.0 +## explicit github.com/eapache/go-resiliency/breaker # github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 +## explicit github.com/eapache/go-xerial-snappy # github.com/eapache/queue v1.1.0 +## explicit github.com/eapache/queue -# github.com/golang/protobuf v1.0.0 +# github.com/gogo/protobuf v1.3.2 +## explicit; go 1.15 +github.com/gogo/protobuf/proto +github.com/gogo/protobuf/protoc-gen-gogo/descriptor +# github.com/golang/protobuf v1.5.2 +## explicit; go 1.9 +github.com/golang/protobuf/jsonpb github.com/golang/protobuf/proto github.com/golang/protobuf/protoc-gen-go/descriptor github.com/golang/protobuf/ptypes github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/golang/protobuf/ptypes/timestamp -# github.com/golang/snappy v0.0.1 +# github.com/golang/snappy v0.0.3 +## explicit github.com/golang/snappy # github.com/gorilla/mux v1.8.0 +## explicit; go 1.12 github.com/gorilla/mux # github.com/hashicorp/go-uuid v1.0.2 +## explicit github.com/hashicorp/go-uuid # github.com/influxdata/influxdb v1.5.2 +## explicit github.com/influxdata/influxdb/client/v2 github.com/influxdata/influxdb/models github.com/influxdata/influxdb/pkg/escape # github.com/jcmturner/gofork v1.0.0 +## explicit github.com/jcmturner/gofork/encoding/asn1 github.com/jcmturner/gofork/x/crypto/pbkdf2 +# github.com/jhump/protoreflect v1.15.1 +## explicit; go 1.18 +github.com/jhump/protoreflect/desc +github.com/jhump/protoreflect/desc/internal +github.com/jhump/protoreflect/desc/protoparse +github.com/jhump/protoreflect/desc/protoparse/ast +github.com/jhump/protoreflect/desc/sourceinfo +github.com/jhump/protoreflect/internal # github.com/klauspost/compress v1.9.8 +## explicit github.com/klauspost/compress/fse github.com/klauspost/compress/huff0 github.com/klauspost/compress/snappy github.com/klauspost/compress/zstd github.com/klauspost/compress/zstd/internal/xxhash -# github.com/matttproud/golang_protobuf_extensions v1.0.0 +# github.com/matttproud/golang_protobuf_extensions v1.0.4 +## explicit; go 1.9 github.com/matttproud/golang_protobuf_extensions/pbutil # github.com/pierrec/lz4 v2.4.1+incompatible +## explicit github.com/pierrec/lz4 github.com/pierrec/lz4/internal/xxh32 # github.com/prometheus/client_golang v0.8.0 +## explicit github.com/prometheus/client_golang/prometheus github.com/prometheus/client_golang/prometheus/promhttp -# github.com/prometheus/client_model v0.0.0-20171117100541-99fa1f4be8e5 +# github.com/prometheus/client_model v0.2.0 +## explicit; go 1.9 github.com/prometheus/client_model/go # github.com/prometheus/common v0.0.0-20180413074202-d0f7cd64bda4 +## explicit github.com/prometheus/common/expfmt github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg github.com/prometheus/common/model # github.com/prometheus/procfs v0.0.0-20180408092902-8b1c2da0d56d +## explicit github.com/prometheus/procfs github.com/prometheus/procfs/internal/util github.com/prometheus/procfs/nfs github.com/prometheus/procfs/xfs # github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 +## explicit github.com/rcrowley/go-metrics # github.com/spf13/pflag v1.0.1 +## explicit github.com/spf13/pflag -# golang.org/x/crypto v0.0.0-20200204104054-c9f3fb736b72 +# golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa +## explicit; go 1.17 golang.org/x/crypto/md4 golang.org/x/crypto/pbkdf2 -# golang.org/x/net v0.0.0-20210917221730-978cfadd31cf +# golang.org/x/net v0.7.0 +## explicit; go 1.17 golang.org/x/net/context golang.org/x/net/http/httpguts golang.org/x/net/http2 @@ -72,43 +124,126 @@ golang.org/x/net/internal/socks golang.org/x/net/internal/timeseries golang.org/x/net/proxy golang.org/x/net/trace -# golang.org/x/text v0.3.6 +# golang.org/x/sync v0.1.0 +## explicit +golang.org/x/sync/semaphore +# golang.org/x/sys v0.5.0 +## explicit; go 1.17 +golang.org/x/sys/unix +# golang.org/x/text v0.7.0 +## explicit; go 1.17 golang.org/x/text/secure/bidirule golang.org/x/text/transform golang.org/x/text/unicode/bidi golang.org/x/text/unicode/norm -# google.golang.org/genproto v0.0.0-20180413175816-7fd901a49ba6 +# google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f +## explicit; go 1.19 google.golang.org/genproto/googleapis/rpc/status -# google.golang.org/grpc v1.11.3 +# google.golang.org/grpc v1.53.0 +## explicit; go 1.17 google.golang.org/grpc +google.golang.org/grpc/attributes +google.golang.org/grpc/backoff google.golang.org/grpc/balancer google.golang.org/grpc/balancer/base +google.golang.org/grpc/balancer/grpclb/state google.golang.org/grpc/balancer/roundrobin +google.golang.org/grpc/binarylog/grpc_binarylog_v1 +google.golang.org/grpc/channelz google.golang.org/grpc/codes google.golang.org/grpc/connectivity google.golang.org/grpc/credentials +google.golang.org/grpc/credentials/insecure google.golang.org/grpc/encoding google.golang.org/grpc/encoding/gzip google.golang.org/grpc/encoding/proto -google.golang.org/grpc/grpclb/grpc_lb_v1/messages google.golang.org/grpc/grpclog google.golang.org/grpc/internal +google.golang.org/grpc/internal/backoff +google.golang.org/grpc/internal/balancer/gracefulswitch +google.golang.org/grpc/internal/balancerload +google.golang.org/grpc/internal/binarylog +google.golang.org/grpc/internal/buffer +google.golang.org/grpc/internal/channelz +google.golang.org/grpc/internal/credentials +google.golang.org/grpc/internal/envconfig +google.golang.org/grpc/internal/grpclog +google.golang.org/grpc/internal/grpcrand +google.golang.org/grpc/internal/grpcsync +google.golang.org/grpc/internal/grpcutil +google.golang.org/grpc/internal/metadata +google.golang.org/grpc/internal/pretty +google.golang.org/grpc/internal/resolver +google.golang.org/grpc/internal/resolver/dns +google.golang.org/grpc/internal/resolver/passthrough +google.golang.org/grpc/internal/resolver/unix +google.golang.org/grpc/internal/serviceconfig +google.golang.org/grpc/internal/status +google.golang.org/grpc/internal/syscall +google.golang.org/grpc/internal/transport +google.golang.org/grpc/internal/transport/networktype google.golang.org/grpc/keepalive google.golang.org/grpc/metadata -google.golang.org/grpc/naming google.golang.org/grpc/peer google.golang.org/grpc/resolver -google.golang.org/grpc/resolver/dns -google.golang.org/grpc/resolver/passthrough +google.golang.org/grpc/serviceconfig google.golang.org/grpc/stats google.golang.org/grpc/status google.golang.org/grpc/tap -google.golang.org/grpc/transport +# google.golang.org/protobuf v1.28.2-0.20230222093303-bc1253ad3743 +## explicit; go 1.11 +google.golang.org/protobuf/encoding/protojson +google.golang.org/protobuf/encoding/prototext +google.golang.org/protobuf/encoding/protowire +google.golang.org/protobuf/internal/descfmt +google.golang.org/protobuf/internal/descopts +google.golang.org/protobuf/internal/detrand +google.golang.org/protobuf/internal/encoding/defval +google.golang.org/protobuf/internal/encoding/json +google.golang.org/protobuf/internal/encoding/messageset +google.golang.org/protobuf/internal/encoding/tag +google.golang.org/protobuf/internal/encoding/text +google.golang.org/protobuf/internal/errors +google.golang.org/protobuf/internal/filedesc +google.golang.org/protobuf/internal/filetype +google.golang.org/protobuf/internal/flags +google.golang.org/protobuf/internal/genid +google.golang.org/protobuf/internal/impl +google.golang.org/protobuf/internal/msgfmt +google.golang.org/protobuf/internal/order +google.golang.org/protobuf/internal/pragma +google.golang.org/protobuf/internal/set +google.golang.org/protobuf/internal/strs +google.golang.org/protobuf/internal/version +google.golang.org/protobuf/proto +google.golang.org/protobuf/reflect/protodesc +google.golang.org/protobuf/reflect/protopath +google.golang.org/protobuf/reflect/protorange +google.golang.org/protobuf/reflect/protoreflect +google.golang.org/protobuf/reflect/protoregistry +google.golang.org/protobuf/runtime/protoiface +google.golang.org/protobuf/runtime/protoimpl +google.golang.org/protobuf/types/descriptorpb +google.golang.org/protobuf/types/dynamicpb +google.golang.org/protobuf/types/known/anypb +google.golang.org/protobuf/types/known/apipb +google.golang.org/protobuf/types/known/durationpb +google.golang.org/protobuf/types/known/emptypb +google.golang.org/protobuf/types/known/fieldmaskpb +google.golang.org/protobuf/types/known/sourcecontextpb +google.golang.org/protobuf/types/known/structpb +google.golang.org/protobuf/types/known/timestamppb +google.golang.org/protobuf/types/known/typepb +google.golang.org/protobuf/types/known/wrapperspb +google.golang.org/protobuf/types/pluginpb # gopkg.in/jcmturner/aescts.v1 v1.0.1 +## explicit gopkg.in/jcmturner/aescts.v1 # gopkg.in/jcmturner/dnsutils.v1 v1.0.1 +## explicit gopkg.in/jcmturner/dnsutils.v1 # gopkg.in/jcmturner/gokrb5.v7 v7.5.0 +## explicit gopkg.in/jcmturner/gokrb5.v7/asn1tools gopkg.in/jcmturner/gokrb5.v7/client gopkg.in/jcmturner/gokrb5.v7/config @@ -140,5 +275,8 @@ gopkg.in/jcmturner/gokrb5.v7/messages gopkg.in/jcmturner/gokrb5.v7/pac gopkg.in/jcmturner/gokrb5.v7/types # gopkg.in/jcmturner/rpc.v1 v1.1.0 +## explicit gopkg.in/jcmturner/rpc.v1/mstypes gopkg.in/jcmturner/rpc.v1/ndr +# github.com/Juniper/jtimon/schema => ./schema +# github.com/Juniper/jtimon/schema/telemetry_top => ./schema/telemetry_top From 6c4a483710f728af3f3737ef4077a4677d4bcd27 Mon Sep 17 00:00:00 2001 From: weijiage Date: Fri, 21 Apr 2023 10:34:18 +0530 Subject: [PATCH 2/2] remove udp CLI option --- main.go | 5 ++--- udp.go | 17 ++++++++++------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/main.go b/main.go index 191abff..03e8f38 100644 --- a/main.go +++ b/main.go @@ -74,9 +74,8 @@ func main() { return } - if *udp { - udpWork(configFiles) - } else { + isUdp := udpWork(configFiles) + if !isUdp { workers := NewJWorkers(*configFiles, *configFileList, *maxRun) workers.StartWorkers() workers.Wait() diff --git a/udp.go b/udp.go index 02daf89..7ea89ed 100644 --- a/udp.go +++ b/udp.go @@ -457,12 +457,6 @@ func udpAddIDB(mData map[string]map[string]interface{}, jctx *JCtx, rtime time.T func udpInit(jctx *JCtx) error { udpdial: - err := ConfigRead(jctx, true, nil) - if err != nil { - log.Println(err) - return err - } - udpHostname := jctx.config.UDP.Host + ":" + strconv.Itoa(jctx.config.UDP.Port) go jctx.udpSignalHandler() @@ -490,7 +484,7 @@ udpdial: return nil } -func udpWork(configFiles *[]string) { +func udpWork(configFiles *[]string) bool { var wg sync.WaitGroup jctx := JCtx{ wg: &wg, @@ -500,9 +494,18 @@ func udpWork(configFiles *[]string) { jctx.stats = statsCtx{ startTime: time.Now(), } + err := ConfigRead(&jctx, true, nil) + if err != nil { + jLog(&jctx, fmt.Sprintf("%v ConfigRead err %s", fileName, err)) + return false + } + if jctx.config.UDP.Host == "" || jctx.config.UDP.Port == 0 { + return false + } if err := udpInit(&jctx); err == nil { jctx.wg.Add(1) } } jctx.wg.Wait() + return true }